@univerjs-pro/collaboration-client 0.1.12 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4733(_0x3775e2,_0x35ff5f){const _0x4b7e7e=_0x4b7e();return _0x4733=function(_0x47337a,_0x25140b){_0x47337a=_0x47337a-0xbb;let _0x202488=_0x4b7e7e[_0x47337a];return _0x202488;},_0x4733(_0x3775e2,_0x35ff5f);}function _0x4b7e(){const _0x2b7dec=['data','getRelativeCoord','UniverSheets','getActiveSheet','csRejEvent','_document','arc','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_roomMembers$','_transformIMECache','_onRefRangeChange','UniverCollaboration','getConfig','mapTo','Edit\x20conflicts','getViewport','_type','clear','_hover','getScrollXYByRelativeCoords','auth.needGotoLoginAlert','conflict','\x20to\x20','CollaborationStatusDisplay','FromArray','appendMutation','currentSkeleton$','RevisionService','collabStatus.offline','code','handleInsertRangeMoveRight','hasOwnProperty','_pendingMutations','_submitChangeset','LIVESHARE_OPERATION','addObject','getParam','_handler','serializeTextRange','activeSheet$','@wendellhu/redi/react-bindings','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','generateRandomId','_saveTaskMap','LocaleService','_loadSheet','DocSkeletonManagerService','top','onPointerEnterObserver','IUniverInstanceService','requireSession','_unlockTransition','show','_localCacheService','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_socket$','getUnitId','getCollabEntity$','COLLAB_SUBMIT_CHANGESET_URL','selections','Disposable','skeleton','userID','getCoordByCell','InsertRowCommandId','replaceTextRanges','set','Warning','asObservable','_incrementRevisionNumber','DesktopCollaborationStatusDisplayController','selection','workbook','_sheetSkeletonManagerService','_univerPermissionService','searchParams','unitId','529304LPPNGW','removeParam','collaboration-client','submit\x20changeset\x20error!','rgba(255,\x20255,\x20255,\x200.01)','_removeCollabCursors','_color','joinEvent','measureText','some','sessionStatus','RxDisposable','getCurrentRevForDocument','_createInitialState','/universer-api/comb','[OfflineState]:\x20received\x20rejection.','toggleOnline','MSG_FOR_ERROR','_unitID','_event$','onlineStatusIcon','_snapshotService','fetching\x20missing\x20changesets\x20from\x20','getTime','object','onTransformIME','IContextService','socket\x20close','_onRemoteACK','_getSaveTimeout','IMEInputManagerService','65196eipiim','trim','_draw','IUIPartsService','_session','take','_revisionService','rev','getFocusedUnit','_handleHeartbeatEvent','open$','RETRY_CONNECTING_MAX_COUNT','getMergeData','revision','react','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','_entities','Shape','_scheduleCollaborationTimeoutTimer','max','@univerjs-pro/collaboration','m1Prime','_members','substring','originalMeta','已保存','conflict.title','Subject','RegularPolygon','black','status','EffectRefRangId','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','handleIRemoveRow','RichTextEditingMutation','univer-pro.collaboration-client-socket-service','UNIVER_SLIDE','sessionStatus$','save','_injector','_exhaustRemoteChangesetQueue','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_singleActiveUnitService','resourceIDs','283032kadyUk','fromEvent','Connection\x20failed,\x20please\x20check\x20your\x20network.','Tools','_updateStatus','/resources','_onRecvEvent','call','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','transform','collabStatus.fetchMiss','LocalCacheService','1141tIgHZL','_updateURLWithCurrentState','_currentUser','loadDoc','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_socketMessageSubscription','_refRangeService','unshift','_init','operators','syncEditingCollabCursor','_getSendChangesetTimeout','DataLoaderController','entries','_state','catch','@univerjs/engine-formula','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','event$','session','_getScale','_socketReady','_onCursorDelete','forEach','Inject','add','tag','saveSnapshot','send','distinctUntilChanged','awaitingChangeset','LEAVE','_updateLocalCursor','amd','UniverIcon','_sheetTransformSelectionsService','rxjs/operators','1em','clearTimeout','Error','collaborationUniverTypes','_getCtorByUniverType','_schedule','BuiltInUIPart','socketService','_timeoutTimer','next','你的本地文档和服务器的文档存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','state','dispose$','_clearUndo','override','_updateSubUnitFromURLParams','_name','_beforeCloseService','loadOfflineData','transformUndoRedo','onlineStatusTitle','unit','rxjs','getCurrentUnitForType','OnLifecycle','isTransformChangesetsSuccess','onMissedChangesetFetched','0\x200\x2016\x2016','enableOfflineEditing','getUndoRedoMutationParamsCache','setCurrentUser','updateMember','RefRangeService','_getDocObject','mergeOverrideWithDependencies','setParam','_onRemoteRejected','close','IRenderManagerService','_getUndoStack','IUndoRedoService','[OfflineState]:\x20received\x20acknowledgement.','Starting','_transformService','CHANGESET_REJ','IDLE','url(#$1','_collaborationTimeoutTimer','parse','pauseCollaboration','url(#off-line-single_clip0_910_343)','unknown','@univerjs/network','_retryCount','name','LifecycleStages','_loadDoc','getCurrent','/universer-api/oidc/authpage','UniverEngineFormula','PENDING','filter','onRemoteAck','InsertSheetMutation','fillText','_snapshotServerService','transformIMECache','handleMoveRange','mapDocumentTypeToUniverType','reverse','post','then','_docTransformIMECacheService','createIdentifier','removeMember','type','remove','combineLatest','AWAITING','getOffsetConfig','[PendingState]:\x20received\x20rejection.','_colorIndex','collabCursorState$','#fff','newValue','sheets','getAncestorScale','[CollaborationSessionService]','Injector','assignAColorForMemberID','_scheduleReconnection','_transformUndoredo','[FetchMissState]','[OfflineState]:\x20received\x20changeset.','isEditing','blue400','onMouseMove','协同房间已满,你的编辑将在本地保存','doc.mutation.rich-text-editing','@univerjs/engine-render','storage','_onCursorUpdate','delay','registerOnClose','_onConflict','length','FAIL','_clearOtherTimers','onPointerLeaveObserver','_scheduleTimestamp','_urlService','handleIRemoveCol','_undoStacks','b64DecodeUnicode','_applyRemoteChangeset','UniverRpc','getItem','univer-pro.collaboration-client.single-active-unit-service','executeCommand','[CollaborationUndoRedoService]','size','_tryEnsureSocket','_scheduleHeartbeat','_startSheetCollabCursor','_drawRange','_transformUndoRedoStack','_lastPointer','runRefRangeMutations','_startDocCollabCursor','_docSkeletonManagerService','UNKNOWN_CMD','handleInsertRow','1912McDTPO','_cachedData','Module','_onUserLeave','enableLocalCache','zhCN','saveOfflineData','InsertRangeMoveDownCommandId','off-line-single','CollaborationClientPlugin','MoveRangeCommandId','IBeforeCloseService','hide','_saveCache','TEXT_RANGE_LAYER_INDEX','eventID','_socketService','transformMutation','error$','div','encode','font','@univerjs/sheets-ui','_handleEvent','c1Prime','debug','registerRefRange','RECV','InsertColCommandId','fetchThroughInterceptors','_initModules','disposeWithMe','LIVESHARE_REQUEST_HOST','conflict.content','?url=','setShapeProps','serializeCombRequest','@univerjs/design','_substituteUndoStack','prototype','split','round','_labelPosition','_scheduleSaving','subunit','addEventListener','CollaborationEvent','AWAITING_WITH_PENDING','_cursors','_clearTimeoutTimer','_substituteRedoStack','dispose','_renderManagerService','_disableEditing','_selfUnitIDs','collabStatus.conflict','isActive','subscribe','textRanges','path','_eventUnsubscribe','_render','startsWith','Univer','_onJoinRoomEvent','all','toRgbString','includes','_scene','LIVESHARE_FETCH_OPERATIONS','_collabSessionService','saveSheetBlock','_sessionStatus$','_initStatusListener','_createInitialStateImpl','_assignedColors','LIVESHARE_NEW_HOST','roomMembers$','LIVESHARE_TERMINATE','_ensureSubject','ranges','Optional','INGEST','collab-text-range-','COLLAB_WEB_SOCKET_URL_KEY','SEND_CHANGESET_TIMEOUT_KEY','clipPath','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','COMPRESS_MUTATION_APPLY','transformMutationsWithChangeset','getUnitStatus$','ONLINE','COMPRESS_MUTATION_SEND','unsubscribe','UNIVER_SHEET','_onUserJoin','LOGIN_URL_KEY','textEncoder','svg','key','toString','reduce','@wendellhu/redi','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','translate(.97)','_transformRemoteChangesetByIMECache','COLORS','memberID','fetchMissingChangesets','FETCH_MISSING','USERS_LEAVE','_getLoginPath','isTransformMutationFailure','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','pluginName','_hideTimer','SelectionManagerService','exports','565065ivECZL','_socket','SYNCED','members','CollaborationSocketService','VIEWPORT_KEY','[PendingState]:\x20received\x20acknowledgement.','parseProtocolChangeset','getColor','routeKey','fill','USERS_ENTER','shareReplay','UniverDesign','_removeRoom','synced','_transformPreviousActiveRange','SetWorksheetActivateCommand','popstate','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','_onFetchMissResult','leaveEvent','UNKNOWN_CODE','defineProperty','SetSelectionsOperation','height','_shapes','roomInfos','baseRev','delete','onTransformSelections','connectInjector','init','concat','parseChangesetToProtocol','_handleHover','668492avMTJi','handleInsertCol','incrementRevForDocument','_clearScheduledTask','snapshot','handleDeleteRangeMoveLeft','UniverCore','session.room-full','_rescheduleHeartbeatEvent','[SyncedState]:\x20received\x20rejection.','unitID','_localeService','className','_send','cursorInfo','newCsEvent','_startCollaboration','_createSocket','transformByState','on-line-single_clip0_910_349','NO_OTHER_CLIENTS_EDITING','Vector2','_updateCollabCursors','lodash/debounce','location','setEditable','changesets','_id','univer-online','_removeClearOtherTimer','_lockTransition','JOINING','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','_anchor','href','transformSelections','params','_toggleOffline','你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。','contains','registerBeforeClose','_getAPIPrefixPath','onTransformRemoteChangesetByIMECache','collaboration-client.offline-data-not-saved','正在同步服务端数据...','fetch_missing','_sendHeartbeat','_configService','_onMessage','IRemoteInstanceService','function','_logService','updateOfflineData','你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。','roomMembers','_getAnchorBounding','_joinRoom','TextX','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','_syncEditingCollabCursor','_cursorInfo$','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','row','univer-online-status','off-line-single_clip0_910_343','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','_disabled','_getCurrentRevision','218107LHmCGV','takeUntil','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_unitStatus','restore','HEARTBEAT_INTERVAL','bottom','onRemoteRej','replace','connection\x20error','_docTransformSelectionsService','collab-text-anchor-','onSendChangeset','getMemberID','UniverDocs','_textBubble','React','currentTheme$','10SbqwVH','confirm','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getRangePointData','_setupSubUnitSync','XHRHTTPImplementation','/rev/','_sendingTimer','use','_retryConnectingTimer','/unit/','invoke','_compressMutationService','CollaborationSessionService','width','transformRemoteChangeset','xlink:href','uni.network.url-service','onMissingChangesets','useObservable','本地文件','verdancy600','RemoveRowCommandId','OTHER_CLIENTS_EDITING','getValue','values','handleInsertRangeMoveDown','IConfigService','transformChangesets','BehaviorSubject','_anchorDot','_config','body','_onCombEvent','debounce','transformStack\x20failed!','findNodePositionByCharIndex','save\x20fail\x20reason\x20is\x20','_getSheetObject','clsx','currentColor','univerjs-icon\x20univerjs-icon-','fromCollab','CHANGESET_ACK','SUBMIT_CHANGESET','保存中...','extend','on-line-single','_acknowledgedAwaitingChangeset','[SyncedState]:\x20received\x20acknowledgement.','_showConflictNotification','pushState','apply','HEARTBEAT','createElement','[CollaborationEntity]','_httpService','useDependency','_updateLocalCache','_cursor','handleDeleteRangeMoveUp','debounceTime','switchMap','setItem','replaceState','INotificationService','colorChannel1','_clearCollaborationTimeoutTimer','VIEW_MAIN','IHTTPImplementation','_remoteChangesetQueue','registerHTTPInterceptor','ACTIVE_UNIT_EVENT_CHANNEL','evenodd','from','/new_changes','useRef','Syncing\x20server\x20data...','OnLineSingle','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','_commandService','onCommandExecuted','SNAPSHOT_SERVER_URL_KEY','result','getMember','color','whenReady','getUniverSheetInstance','_status$','UNRECOGNIZED','UNIVER_UNKNOWN','_unitOnClients','_sessions','isTransformMutationsWithChangesetFailure','DisposableCollection','mutations','_collaborationController','_collabCursorState$','JOIN','NEW_CHANGESETS','UniverInstanceType','isArray','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','saveChangeset','UniverUi','_clearRedo','ColorKit','_awaitingChangeset','getUnitOnRev','triggerDblclick','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','_transitionLocked','_executeRemoteChangeset','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','getCollabCursors$','_transformSelections','getUnitType','range','_memberService','jiqing500','SEND_CHANGESET_TIMEOUT','defs','_http','_themeService','getSheetId','HTTPService','ThemeService','_range','\x0aCurrent:\x20','UniverEngineRender','_state$','@univerjs/sheets','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_undoRedoService','WebSocketService','map','UniverCollaborationClient','_localStorageService','cmd','online','OFFLINE','Steady','NodePositionConvertToCursor','univer-online-status-icon','updateCursorEvent','assign','enableAuthServer','_collaborationPaused','_exhaustSavingTask','_collabCursorController','get','getCellPositionByOffset','RETRY_CONNECTING_INTERVAL','_scheduleClearOtherTimer','@univerjs/rpc','_clearHeartbeatTimer','@univerjs/docs','toStringTag','onStateChange','m2Prime','_messageService','focused$','NOT_COLLAB','DEFAULT_FILE_NAME','_docSkeleton','TextSelectionManagerService','_colorAssignService','current','getSheetBySheetId','_waitForHeartbeatResponse','_onLocalMutation','_heartbeatTimer','createInstance','enUS','_online','_univerInstanceService','_checkMissing','ISnapshotServerService','getTypeOfUnitDisposed$','fillStyle','UPDATE_CURSOR','complete','red300','_sendHeartbeatTimer','subUnitId','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','state$','COLLAB_SUBMIT_CHANGESET_URL_KEY','setTimeout','stringify','serializeRangeWithSheet','DocStateChangeManagerService','pending','awaiting','...','Rectangle','_onConnectionFailed','DeleteRangeMoveLeftCommandId','RemoveColCommandId','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','getTypeOfUnitAdded$','getOwnPropertySymbols','_docStateChangeManagerService','clearInterval','CollaborationController','CONFLICT','toggleOffline','HELLO','forwardRef','ILocalStorageService','_clearLocalCache','ILogService','getDocObject','UniverPermissionService','_syncEditingCollabCursorService','hovered','getResourcesRequest','indexOf','collaMsg','MessageType','awaiting_with_pending','min','offline','cursorInfo$','slice','_getRedoStack','isTransformMutationsWithChangesetSuccess','toDisposable','deepClone','LocalUndoRedoService','DeleteRangeMoveUpCommandId','urlChange$','flatMap','icon','makeDirty','[DataLoaderController]','text','_handleLeaveEvent','80ajlbsI','createSocket','UniverNetwork','displayName','concatMap','closePath','@univerjs/core','defIds','resend','_updateState','_createHandler','_entityInit$','_uiPartsService','editing\x20status\x20changed\x20to','_docSyncEditingCollabCursorService','_toggleOnline','push','SessionStatus','getInterceptPoints','pipe','ICommandService','/block/','children','_hovered','_roomMembers','lineTo','idSuffix','deserializeRangeWithSheet','collabStatus.syncing','_setupBeforeClosingHandler','Synced','_queuedRemoteChangesets','_drawAnchor','Ready','disableLocalCache','symbol','Unknown\x20user','ITransformService','gold400','has','0\x200\x2017\x2016','collaboration.single-unit.warning','getCurrentUser','IMessageService','interceptor','COLLAB_WEB_SOCKET_URL','@univerjs/ui','error','[CollaborationState]:\x20apply\x20error!','Syncing...','onRemoteChangeset','liveShareNewHost','_getMergeRange','_replayCachedMutations','status$','Rect','SheetSkeletonManagerService','_onRemoteChangeset','onSyncEditingCollabCursor','getSelections','merge','getSheetBlock','session.will-retry','_transformStack','UNIVER_DOC','setActiveRange','HEADER_MENU','history','message$','CollaborationSession','localeService','连接失败,请检查你的网络','sheetID','/fetchmissing?from=','actions','attrs','drawWith'];_0x4b7e=function(){return _0x2b7dec;};return _0x4b7e();}(function(_0x1c15d7,_0x459cae){const _0x51d39d=_0x4733,_0x20e6dd=_0x1c15d7();while(!![]){try{const _0x3ed8b2=parseInt(_0x51d39d(0x1b7))/0x1+-parseInt(_0x51d39d(0x351))/0x2+parseInt(_0x51d39d(0x39c))/0x3+-parseInt(_0x51d39d(0x173))/0x4+-parseInt(_0x51d39d(0x2b7))/0x5*(-parseInt(_0x51d39d(0x370))/0x6)+parseInt(_0x51d39d(0x3a8))/0x7*(parseInt(_0x51d39d(0xd9))/0x8)+-parseInt(_0x51d39d(0x14f))/0x9*(-parseInt(_0x51d39d(0x1c9))/0xa);if(_0x3ed8b2===_0x459cae)break;else _0x20e6dd['push'](_0x20e6dd['shift']());}catch(_0x5ddfe2){_0x20e6dd['push'](_0x20e6dd['shift']());}}}(_0x4b7e,0x26272),function(_0x2881f0,_0x3d8471){const _0x4a5e9b=_0x4733;typeof exports==_0x4a5e9b(0x369)&&typeof module<'u'?_0x3d8471(exports,require(_0x4a5e9b(0x2bd)),require(_0x4a5e9b(0xfe)),require(_0x4a5e9b(0x2e5)),require(_0x4a5e9b(0x384)),require('@wendellhu/redi'),require('rxjs'),require(_0x4a5e9b(0x3cc)),require(_0x4a5e9b(0x265)),require(_0x4a5e9b(0x401)),require(_0x4a5e9b(0x24c)),require(_0x4a5e9b(0x3b8)),require('lodash/debounce'),require(_0x4a5e9b(0x430)),require(_0x4a5e9b(0xef)),require(_0x4a5e9b(0x32c)),require(_0x4a5e9b(0x37e)),require(_0x4a5e9b(0x1f0)),require(_0x4a5e9b(0x263))):typeof define=='function'&&define[_0x4a5e9b(0x3c9)]?define([_0x4a5e9b(0x14e),_0x4a5e9b(0x2bd),_0x4a5e9b(0xfe),_0x4a5e9b(0x2e5),_0x4a5e9b(0x384),_0x4a5e9b(0x13f),_0x4a5e9b(0x3e3),_0x4a5e9b(0x3cc),_0x4a5e9b(0x265),_0x4a5e9b(0x401),_0x4a5e9b(0x24c),'@univerjs/engine-formula',_0x4a5e9b(0x18a),_0x4a5e9b(0x430),'@univerjs/sheets-ui','@wendellhu/redi/react-bindings',_0x4a5e9b(0x37e),_0x4a5e9b(0x1f0),_0x4a5e9b(0x263)],_0x3d8471):(_0x2881f0=typeof globalThis<'u'?globalThis:_0x2881f0||self,_0x3d8471(_0x2881f0[_0x4a5e9b(0x251)]={},_0x2881f0[_0x4a5e9b(0x179)],_0x2881f0[_0x4a5e9b(0x15c)],_0x2881f0[_0x4a5e9b(0x231)],_0x2881f0[_0x4a5e9b(0x30f)],_0x2881f0[_0x4a5e9b(0x13f)],_0x2881f0['rxjs'],_0x2881f0[_0x4a5e9b(0x3e3)][_0x4a5e9b(0x3b1)],_0x2881f0[_0x4a5e9b(0x1c5)],_0x2881f0[_0x4a5e9b(0x2b9)],_0x2881f0[_0x4a5e9b(0x306)],_0x2881f0[_0x4a5e9b(0x408)],_0x2881f0['lodash'][_0x4a5e9b(0x1eb)],_0x2881f0[_0x4a5e9b(0x24a)],_0x2881f0['UniverSheetsUi'],_0x2881f0['@wendellhu/redi/react-bindings'],_0x2881f0[_0x4a5e9b(0x1c7)],_0x2881f0[_0x4a5e9b(0x1f0)],_0x2881f0[_0x4a5e9b(0xc8)]));}(this,function(_0x588091,_0x1b3401,_0x350456,_0x47170c,_0x30a695,_0x5c7b32,_0x414952,_0x3151c5,_0x54860c,_0x2b3eab,_0x51f05a,_0x446c2d,_0x2c0384,_0x24a900,_0x3c430e,_0x5396c4,_0x2abb2f,_0x167f4a,_0xce538){'use strict';const _0x72f170=_0x4733;var _0x46af82=Object[_0x72f170(0x166)],_0x19b809=(_0xd449e3,_0x1d1063,_0x30cdc2)=>_0x1d1063 in _0xd449e3?_0x46af82(_0xd449e3,_0x1d1063,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30cdc2}):_0xd449e3[_0x1d1063]=_0x30cdc2,_0x51e1d8=(_0x4a8174,_0x499eab,_0x2881e9)=>(_0x19b809(_0x4a8174,typeof _0x499eab!=_0x72f170(0x2da)?_0x499eab+'':_0x499eab,_0x2881e9),_0x2881e9),_0x15f489,_0x2b3b4b=(_0x245c64=>(_0x245c64[_0x245c64[_0x72f170(0x223)]=0x0]=_0x72f170(0x223),_0x245c64[_0x245c64['UNIVER_DOC']=0x1]=_0x72f170(0x2f7),_0x245c64[_0x245c64[_0x72f170(0x137)]=0x2]=_0x72f170(0x137),_0x245c64[_0x245c64[_0x72f170(0x394)]=0x3]=_0x72f170(0x394),_0x245c64[_0x245c64['UNRECOGNIZED']=-0x1]=_0x72f170(0x222),_0x245c64))(_0x2b3b4b||{}),_0x1da09a=(_0x31f609=>(_0x31f609[_0x31f609[_0x72f170(0xd7)]=0x0]='UNKNOWN_CMD',_0x31f609[_0x31f609['HELLO']=0x1]='HELLO',_0x31f609[_0x31f609[_0x72f170(0x22b)]=0x2]=_0x72f170(0x22b),_0x31f609[_0x31f609[_0x72f170(0x3c7)]=0x3]=_0x72f170(0x3c7),_0x31f609[_0x31f609[_0x72f170(0x12b)]=0x4]='INGEST',_0x31f609[_0x31f609[_0x72f170(0x1fe)]=0x5]=_0x72f170(0x1fe),_0x31f609[_0x31f609[_0x72f170(0xf4)]=0x6]=_0x72f170(0xf4),_0x31f609[_0x31f609[_0x72f170(0x222)]=-0x1]='UNRECOGNIZED',_0x31f609))(_0x1da09a||{}),_0x527bb7=(_0x3122d6=>(_0x3122d6[_0x3122d6[_0x72f170(0x165)]=0x0]=_0x72f170(0x165),_0x3122d6[_0x3122d6['OK']=0x1]='OK',_0x3122d6[_0x3122d6[_0x72f170(0xbf)]=0x2]=_0x72f170(0xbf),_0x3122d6[_0x3122d6[_0x72f170(0x222)]=-0x1]=_0x72f170(0x222),_0x3122d6))(_0x527bb7||{}),_0x55138e=(_0x55f50b,_0x3af339,_0x24098c,_0x5f09da)=>{const _0x1d77de=_0x72f170;for(var _0x1977b3=_0x3af339,_0x1934b8=_0x55f50b[_0x1d77de(0xbe)]-0x1,_0x4ec7d8;_0x1934b8>=0x0;_0x1934b8--)(_0x4ec7d8=_0x55f50b[_0x1934b8])&&(_0x1977b3=_0x4ec7d8(_0x1977b3)||_0x1977b3);return _0x1977b3;},_0x2a1bf0=(_0x20ed9d,_0x4c3065)=>(_0x5eaa11,_0x5da68b)=>_0x4c3065(_0x5eaa11,_0x5da68b,_0x20ed9d);let _0x3f8747=class extends _0x1b3401[_0x72f170(0x340)]{constructor(_0x1e5c6f){const _0x44c0be=_0x72f170;super(),_0x51e1d8(this,_0x44c0be(0x2cf),new Map()),_0x51e1d8(this,_0x44c0be(0x3aa),null),(this[_0x44c0be(0x278)]=_0x1e5c6f,this[_0x44c0be(0xf8)](_0x1b3401[_0x44c0be(0x2ac)](_0x414952[_0x44c0be(0x2f3)](this[_0x44c0be(0x278)][_0x44c0be(0x27b)](_0x1b3401[_0x44c0be(0x22d)][_0x44c0be(0x137)])[_0x44c0be(0x2ca)](_0x3151c5[_0x44c0be(0x250)](_0x3363b9=>_0x3363b9[_0x44c0be(0x33c)]())),this[_0x44c0be(0x278)][_0x44c0be(0x27b)](_0x1b3401[_0x44c0be(0x22d)]['UNIVER_DOC'])[_0x44c0be(0x2ca)](_0x3151c5[_0x44c0be(0x250)](_0x352fe2=>_0x352fe2[_0x44c0be(0x33c)]())),this['_univerInstanceService'][_0x44c0be(0x27b)](_0x1b3401[_0x44c0be(0x22d)][_0x44c0be(0x394)])[_0x44c0be(0x2ca)](_0x3151c5[_0x44c0be(0x250)](_0x3379da=>_0x3379da['getUnitId']())))['subscribe'](_0x3ce0b9=>this['_removeRoom'](_0x3ce0b9)))));}[_0x72f170(0x3eb)](_0x5c2678){const _0x43ba00=_0x72f170;this[_0x43ba00(0x3aa)]=_0x5c2678;}[_0x72f170(0x2e1)](){const _0x4b9477=_0x72f170;return this[_0x4b9477(0x3aa)];}['updateMember'](_0x37742d,_0x29c022){const _0x46937a=_0x72f170;let _0x1e802c=this[_0x46937a(0x2cf)][_0x46937a(0x25f)](_0x37742d);_0x1e802c||(_0x1e802c=new _0x50e3c2(),this[_0x46937a(0x2cf)][_0x46937a(0x346)](_0x37742d,_0x1e802c)),_0x1e802c[_0x46937a(0x3ec)](_0x29c022);}[_0x72f170(0x417)](_0x2cf7cd,_0x336726){const _0x419674=_0x72f170,_0x29e09c=this['_roomMembers'][_0x419674(0x25f)](_0x2cf7cd);_0x29e09c&&_0x29e09c[_0x419674(0x417)](_0x336726);}['getRoom'](_0x194b0a){const _0x1b6573=_0x72f170;return this['_roomMembers'][_0x1b6573(0x25f)](_0x194b0a);}[_0x72f170(0x21d)](_0x39446e,_0x1539ec){const _0x28b59c=_0x72f170,_0x11b405=this[_0x28b59c(0x2cf)][_0x28b59c(0x25f)](_0x39446e);if(_0x11b405)return _0x11b405['getMember'](_0x1539ec);}[_0x72f170(0x15d)](_0x2fedd0){const _0x463d98=_0x72f170,_0x1e83f0=this[_0x463d98(0x2cf)][_0x463d98(0x25f)](_0x2fedd0);_0x1e83f0&&(_0x1e83f0[_0x463d98(0x10c)](),this[_0x463d98(0x2cf)][_0x463d98(0x16c)](_0x2fedd0));}['dispose'](){const _0x47e815=_0x72f170;this['_roomMembers'][_0x47e815(0x3bf)](_0x5a7a4e=>_0x5a7a4e[_0x47e815(0x10c)]()),this[_0x47e815(0x2cf)][_0x47e815(0x315)]();}};_0x3f8747=_0x55138e([_0x2a1bf0(0x0,_0x1b3401[_0x72f170(0x335)])],_0x3f8747);class _0x50e3c2 extends _0x1b3401['Disposable']{constructor(){const _0x482c8b=_0x72f170;super(...arguments),_0x51e1d8(this,_0x482c8b(0x386),new Map());}[_0x72f170(0x10c)](){const _0x389063=_0x72f170;this[_0x389063(0x386)][_0x389063(0x315)]();}['updateMember'](_0x1d9660){const _0x5f2243=_0x72f170;this[_0x5f2243(0x386)][_0x5f2243(0x346)](_0x1d9660[_0x5f2243(0x144)],_0x1d9660);}[_0x72f170(0x417)](_0x244e1e){const _0x56c94a=_0x72f170;this[_0x56c94a(0x386)][_0x56c94a(0x16c)](_0x244e1e);}['getMember'](_0x5bca1c){const _0x446c84=_0x72f170;return this['_members'][_0x446c84(0x25f)](_0x5bca1c);}}function _0x18d27e(_0x3f876e){const _0xa12e3f=_0x72f170;var _0xa379f5,_0xe283bb,_0x451de2;const _0x15996f=_0x3f876e[_0xa12e3f(0x304)],_0x3daf63=JSON[_0xa12e3f(0x3fd)](_0x15996f);switch(_0x3daf63['cmd']){case _0x1da09a[_0xa12e3f(0x1fe)]:case _0x1da09a[_0xa12e3f(0x298)]:{const _0x13b926=_0x3daf63['infoRsp'];return{..._0x3daf63,'data':_0x13b926,'cmd':_0x3daf63[_0xa12e3f(0x253)]};}case _0x1da09a['JOIN']:{const _0xec9f73=_0x3daf63['joinRsp'];return{..._0x3daf63,'data':_0xec9f73,'cmd':_0x3daf63[_0xa12e3f(0x253)]};}case _0x1da09a[_0xa12e3f(0xf4)]:{const _0xddf16d=_0x3daf63[_0xa12e3f(0x2a3)];switch(_0xddf16d[_0xa12e3f(0xe8)]){case _0x30a695[_0xa12e3f(0x107)][_0xa12e3f(0x1f4)]:return{..._0x3daf63,'data':{..._0xddf16d,'data':(_0xa379f5=_0xddf16d['csAckEvent'])==null?void 0x0:_0xa379f5['cs']},'cmd':_0x3daf63[_0xa12e3f(0x253)]};case _0x30a695[_0xa12e3f(0x107)]['NEW_CHANGESETS']:return{..._0x3daf63,'data':{..._0xddf16d,'data':(_0xe283bb=_0xddf16d[_0xa12e3f(0x182)])==null?void 0x0:_0xe283bb['cs']},'cmd':_0x3daf63[_0xa12e3f(0x253)]};case _0x30a695['CollaborationEvent'][_0xa12e3f(0x3f9)]:return{..._0x3daf63,'data':{..._0xddf16d,'data':(_0x451de2=_0xddf16d[_0xa12e3f(0x308)])==null?void 0x0:_0x451de2['cs']},'cmd':_0x3daf63[_0xa12e3f(0x253)]};case _0x30a695[_0xa12e3f(0x107)][_0xa12e3f(0x27d)]:return{..._0x3daf63,'data':{..._0xddf16d,'data':_0xddf16d[_0xa12e3f(0x259)]},'cmd':_0x3daf63['cmd']};case _0x30a695[_0xa12e3f(0x107)][_0xa12e3f(0x15a)]:return{..._0x3daf63,'data':{..._0xddf16d,'data':_0xddf16d[_0xa12e3f(0x358)]},'cmd':_0x3daf63[_0xa12e3f(0x253)]};case _0x30a695['CollaborationEvent']['USERS_LEAVE']:return{..._0x3daf63,'data':{..._0xddf16d,'data':_0xddf16d[_0xa12e3f(0x164)]},'cmd':_0x3daf63[_0xa12e3f(0x253)]};case _0x30a695[_0xa12e3f(0x107)][_0xa12e3f(0x125)]:return{..._0x3daf63,'data':{..._0xddf16d,'data':_0xddf16d[_0xa12e3f(0x2ea)]},'cmd':_0x3daf63[_0xa12e3f(0x253)]};case _0x30a695[_0xa12e3f(0x107)][_0xa12e3f(0x11e)]:case _0x30a695[_0xa12e3f(0x107)]['LIVESHARE_OPERATION']:return{..._0x3daf63,'data':{..._0xddf16d,'data':_0xddf16d['liveShareOperation']},'cmd':_0x3daf63[_0xa12e3f(0x253)]};case _0x30a695[_0xa12e3f(0x107)][_0xa12e3f(0x127)]:return{..._0x3daf63,'data':{..._0xddf16d,'data':_0xddf16d[_0xa12e3f(0x2ea)]},'cmd':_0x3daf63[_0xa12e3f(0x253)]};case _0x30a695[_0xa12e3f(0x107)][_0xa12e3f(0x362)]:return{..._0x3daf63,'data':_0xddf16d,'cmd':_0x3daf63[_0xa12e3f(0x253)]};default:return _0x3daf63;}}default:return _0x3daf63;}}function _0x4ec68d(_0x123c1e){const _0x1bda5d=_0x72f170;switch(_0x123c1e[_0x1bda5d(0x253)]){case _0x1da09a[_0x1bda5d(0x1fe)]:case _0x1da09a['HELLO']:return JSON[_0x1bda5d(0x286)]({'cmd':_0x123c1e[_0x1bda5d(0x253)],'routeKey':_0x123c1e[_0x1bda5d(0x158)]});case _0x1da09a['INGEST']:{let _0x20f266;switch(_0x123c1e['data'][_0x1bda5d(0xe8)]){case _0x30a695[_0x1bda5d(0x107)][_0x1bda5d(0x27d)]:{_0x20f266={'eventID':_0x30a695[_0x1bda5d(0x107)][_0x1bda5d(0x27d)],'updateCursorEvent':_0x123c1e['data'][_0x1bda5d(0x304)]};break;}case _0x30a695[_0x1bda5d(0x107)]['USERS_LEAVE']:{_0x20f266={'eventID':_0x30a695[_0x1bda5d(0x107)][_0x1bda5d(0x147)],'leaveEvent':_0x123c1e[_0x1bda5d(0x304)][_0x1bda5d(0x304)]};break;}case _0x30a695[_0x1bda5d(0x107)][_0x1bda5d(0x15a)]:{_0x20f266={'eventID':_0x30a695[_0x1bda5d(0x107)][_0x1bda5d(0x15a)],'joinEvent':_0x123c1e['data'][_0x1bda5d(0x304)]};break;}case _0x30a695['CollaborationEvent']['LIVESHARE_NEW_HOST']:{_0x20f266={'eventID':_0x30a695['CollaborationEvent'][_0x1bda5d(0x125)],'liveShareNewHost':_0x123c1e['data'][_0x1bda5d(0x304)]};break;}case _0x30a695[_0x1bda5d(0x107)][_0x1bda5d(0x326)]:{_0x20f266={'eventID':_0x30a695['CollaborationEvent'][_0x1bda5d(0x326)],'liveShareOperation':_0x123c1e[_0x1bda5d(0x304)]['data']};break;}case _0x30a695[_0x1bda5d(0x107)]['LIVESHARE_TERMINATE']:{_0x20f266={'eventID':_0x30a695[_0x1bda5d(0x107)][_0x1bda5d(0x127)],'liveShareTerminate':_0x123c1e[_0x1bda5d(0x304)]['data']};break;}case _0x30a695['CollaborationEvent'][_0x1bda5d(0xf9)]:{_0x20f266={'eventID':_0x30a695[_0x1bda5d(0x107)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x123c1e[_0x1bda5d(0x304)]['data']};break;}case _0x30a695[_0x1bda5d(0x107)]['LIVESHARE_FETCH_OPERATIONS']:{_0x20f266={'eventID':_0x30a695[_0x1bda5d(0x107)][_0x1bda5d(0x11e)]};break;}default:_0x20f266={'eventID':_0x123c1e[_0x1bda5d(0x304)][_0x1bda5d(0xe8)]};}return JSON['stringify']({'cmd':_0x123c1e[_0x1bda5d(0x253)],'routeKey':_0x123c1e['routeKey'],'collaMsg':_0x20f266});}case _0x1da09a[_0x1bda5d(0x22b)]:return JSON[_0x1bda5d(0x286)]({'cmd':_0x123c1e['cmd'],'routeKey':_0x123c1e[_0x1bda5d(0x158)],'joinReq':_0x123c1e[_0x1bda5d(0x304)]});case _0x1da09a[_0x1bda5d(0x3c7)]:return JSON[_0x1bda5d(0x286)]({'cmd':_0x123c1e['cmd'],'routeKey':_0x123c1e[_0x1bda5d(0x158)],'leaveReq':_0x123c1e[_0x1bda5d(0x304)]});default:throw new Error(_0x1bda5d(0x24d));}}var _0x1d2dec=(_0x5be7cf,_0x466296,_0x16f20b,_0x4fa324)=>{const _0x8e3ec6=_0x72f170;for(var _0xc1242a=_0x466296,_0x57117c=_0x5be7cf[_0x8e3ec6(0xbe)]-0x1,_0x4680ef;_0x57117c>=0x0;_0x57117c--)(_0x4680ef=_0x5be7cf[_0x57117c])&&(_0xc1242a=_0x4680ef(_0xc1242a)||_0xc1242a);return _0xc1242a;},_0x30369f=(_0x36404e,_0x3c59d3)=>(_0x4ef3bb,_0x1029dc)=>_0x3c59d3(_0x4ef3bb,_0x1029dc,_0x36404e);const _0x1083e0=_0x5c7b32[_0x72f170(0x416)](_0x72f170(0x393)),_0x202f36=_0x72f170(0x33e),_0x37c10e=_0x72f170(0x35f);function _0x5a4f95(_0x3a0bb1,_0x44e5a6,_0x3ecaed){const _0x5284fc=_0x72f170;return _0x3a0bb1+'/'+_0x44e5a6+'/unit/'+_0x3ecaed+_0x5284fc(0x214);}_0x588091[_0x72f170(0x153)]=class{constructor(_0x11d9b0,_0x4f2c94,_0x2a70b0,_0x20504b,_0x15c875){const _0x23f524=_0x72f170;this[_0x23f524(0x243)]=_0x11d9b0,this['_ws']=_0x4f2c94,this[_0x23f524(0x1a2)]=_0x2a70b0,this[_0x23f524(0x1a6)]=_0x20504b,this[_0x23f524(0x40e)]=_0x15c875;}[_0x72f170(0x2b8)](_0x10f78f){const _0x59535d=_0x72f170,_0x2ca3e0=this['_ws']['createSocket'](_0x10f78f);if(!_0x2ca3e0)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x1d39ed=new _0x1b3401[(_0x59535d(0x227))](),_0x4146d0=new _0x414952['Subject']();_0x1d39ed['add'](_0x1b3401[_0x59535d(0x2ac)](_0x2ca3e0['close$'][_0x59535d(0x112)](_0x36c2fb=>_0x4146d0[_0x59535d(0x3d6)](_0x36c2fb)))),_0x1d39ed[_0x59535d(0x3c1)](_0x1b3401[_0x59535d(0x2ac)](()=>_0x4146d0[_0x59535d(0x27e)]()));const _0x5e6211=new _0x414952[(_0x59535d(0x38b))]();_0x1d39ed[_0x59535d(0x3c1)](_0x1b3401[_0x59535d(0x2ac)](_0x2ca3e0[_0x59535d(0xeb)][_0x59535d(0x112)](_0x13a8b5=>_0x5e6211[_0x59535d(0x3d6)](_0x13a8b5)))),_0x1d39ed[_0x59535d(0x3c1)](_0x1b3401['toDisposable'](()=>_0x5e6211[_0x59535d(0x27e)]()));const _0x24fb68=new _0x414952[(_0x59535d(0x38b))]();_0x1d39ed[_0x59535d(0x3c1)](_0x1b3401['toDisposable'](_0x2ca3e0[_0x59535d(0x2fb)][_0x59535d(0x112)](_0x15f16=>{const _0x2fed4c=_0x59535d,_0x474bf8=_0x18d27e(_0x15f16);_0x24fb68[_0x2fed4c(0x3d6)](_0x474bf8);}))),_0x1d39ed[_0x59535d(0x3c1)](_0x1b3401[_0x59535d(0x2ac)](()=>_0x24fb68[_0x59535d(0x27e)]()));const _0x2f4ee6=()=>{const _0x567084=_0x59535d;_0x5e6211[_0x567084(0x3d6)](new Event(_0x567084(0x1c0))),_0x4146d0['next'](new CloseEvent('connection\x20error')),_0x55847b['close']();},_0x55847b={'memberID':'','close$':_0x4146d0[_0x59535d(0x348)](),'error$':_0x5e6211[_0x59535d(0x348)](),'open$':_0x2ca3e0['open$'],'message$':_0x24fb68[_0x59535d(0x348)](),'send':_0x1e6f1f=>{const _0x156a85=_0x59535d;if(_0x1e6f1f[_0x156a85(0x253)]===_0x1da09a[_0x156a85(0x12b)]){if(_0x1e6f1f[_0x156a85(0x304)][_0x156a85(0xe8)]===_0x30a695[_0x156a85(0x107)][_0x156a85(0x1f5)]){this['_submitChangeset'](_0x55847b,_0x1e6f1f[_0x156a85(0x304)])['catch'](_0x4d9008=>{const _0x16902b=_0x156a85;this[_0x16902b(0x1a6)][_0x16902b(0x2e6)](_0x4d9008),_0x2f4ee6();});return;}if(_0x1e6f1f[_0x156a85(0x304)][_0x156a85(0xe8)]===_0x30a695[_0x156a85(0x107)][_0x156a85(0x146)]){const _0x4edb83=_0x1e6f1f[_0x156a85(0x304)];this['_fetchMissChangesets'](_0x4edb83)[_0x156a85(0x414)](_0xd649f9=>{const _0x531f40=_0x156a85;_0x24fb68[_0x531f40(0x3d6)]({'cmd':_0x1da09a['RECV'],'code':_0x527bb7['OK'],'routeKey':_0x4edb83['data'][_0x531f40(0x17d)],'routeType':'','data':{'eventID':_0x30a695[_0x531f40(0x107)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0xd649f9}}});})[_0x156a85(0x3b7)](_0x18d6a7=>{const _0x4da640=_0x156a85;this[_0x4da640(0x1a6)][_0x4da640(0x2e6)](_0x18d6a7),_0x2f4ee6();});return;}}_0x2ca3e0[_0x156a85(0x3c4)](_0x4ec68d(_0x1e6f1f));},'close':()=>{const _0x35930b=_0x59535d;_0x2ca3e0[_0x35930b(0x3f2)](),_0x1d39ed[_0x35930b(0x10c)]();}};return _0x55847b;}async[_0x72f170(0x325)](_0x4082db,_0x548311){const _0x2daf4c=_0x72f170;var _0x14de7e;const {unitType:_0x176906,unitID:_0x4c820e,changeset:_0x75fe50}=_0x548311[_0x2daf4c(0x304)],_0x373a55={'unitID':_0x4c820e,'memberID':_0x4082db[_0x2daf4c(0x144)],'type':_0x176906,'changeset':_0x30a695[_0x2daf4c(0x171)](_0x75fe50)},_0x2dbba7=_0x5a4f95((_0x14de7e=this[_0x2daf4c(0x1a2)]['getConfig'](_0x202f36))!=null?_0x14de7e:_0x37c10e,_0x176906,_0x4c820e);try{await this['_http'][_0x2daf4c(0x413)](_0x2dbba7,{'body':_0x373a55});}catch(_0x417072){throw this[_0x2daf4c(0x1a6)][_0x2daf4c(0x2e6)]('[CollaborationSession]',_0x2daf4c(0x354)),_0x417072;}}async['_fetchMissChangesets'](_0x327535){const _0xcbaef5=_0x72f170,{unitID:_0x41c701,from:_0x2fb087,to:_0x30fa19,unitType:_0x1fd82c}=_0x327535[_0xcbaef5(0x304)];return(await this[_0xcbaef5(0x40e)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x41c701,'type':_0x1fd82c,'from':_0x2fb087,'to':_0x30fa19}))[_0xcbaef5(0x18d)];}},_0x588091['CollaborationSocketService']=_0x1d2dec([_0x30369f(0x0,_0x5c7b32[_0x72f170(0x3c0)](_0x2b3eab[_0x72f170(0x246)])),_0x30369f(0x1,_0x5c7b32[_0x72f170(0x3c0)](_0x2b3eab['WebSocketService'])),_0x30369f(0x2,_0x1b3401[_0x72f170(0x1e4)]),_0x30369f(0x3,_0x1b3401[_0x72f170(0x29c)]),_0x30369f(0x4,_0x1b3401[_0x72f170(0x27a)])],_0x588091[_0x72f170(0x153)]);var _0x4ec6dc=(_0x5c4911,_0x23803d,_0x5f5090,_0x4d0e10)=>{const _0x596ba2=_0x72f170;for(var _0x6e1eb0=_0x23803d,_0x15d91b=_0x5c4911[_0x596ba2(0xbe)]-0x1,_0x24722d;_0x15d91b>=0x0;_0x15d91b--)(_0x24722d=_0x5c4911[_0x15d91b])&&(_0x6e1eb0=_0x24722d(_0x6e1eb0)||_0x6e1eb0);return _0x6e1eb0;},_0x903a07=(_0x2ec0b5,_0x575929)=>(_0x7277e0,_0x5047c1)=>_0x575929(_0x7277e0,_0x5047c1,_0x2ec0b5),_0x4457b3=(_0x3fb6d0=>(_0x3fb6d0[_0x3fb6d0[_0x72f170(0x3fa)]=0x0]=_0x72f170(0x3fa),_0x3fb6d0[_0x3fb6d0['JOINING']=0x1]=_0x72f170(0x192),_0x3fb6d0[_0x3fb6d0['OFFLINE']=0x2]=_0x72f170(0x255),_0x3fb6d0[_0x3fb6d0['ONLINE']=0x3]='ONLINE',_0x3fb6d0))(_0x4457b3||{});const _0x575e39=_0x72f170(0x2e4),_0x323e3c='ws://127.0.0.1:8000/universer-api/comb/connect',_0x5d723c=_0x72f170(0x1bc),_0x433e9c=0x7530,_0x855346='HEARTBEAT_TIMEOUT',_0x5f5a4b=0x2710,_0x4c9d62=_0x72f170(0x261),_0xde0e3f=0x4e20,_0x4e5356=_0x72f170(0x37b),_0x2f694c=0x3;_0x588091[_0x72f170(0x2fc)]=class extends _0x1b3401[_0x72f170(0x35c)]{constructor(_0x3c4aa5,_0x185ad1,_0x106842,_0xaf72d1,_0x1489c6,_0x20f79d,_0x4aaa46,_0x27cab8){const _0x444114=_0x72f170;super(),_0x51e1d8(this,_0x444114(0x121),new _0x414952[(_0x444114(0x1e6))](0x0)),_0x51e1d8(this,'sessionStatus$',this[_0x444114(0x121)][_0x444114(0x348)]()),_0x51e1d8(this,'_event$',new _0x414952[(_0x444114(0x38b))]()),_0x51e1d8(this,_0x444114(0x3ba),this[_0x444114(0x364)][_0x444114(0x348)]()),_0x51e1d8(this,_0x444114(0x150)),_0x51e1d8(this,_0x444114(0x3ad)),_0x51e1d8(this,_0x444114(0x3fc)),(this[_0x444114(0x363)]=_0x3c4aa5,this['_logService']=_0x106842,this[_0x444114(0x3de)]=_0xaf72d1,this['_messageService']=_0x1489c6,this['_configService']=_0x20f79d,this[_0x444114(0x17e)]=_0x4aaa46,this[_0x444114(0x23f)]=_0x27cab8,_0x185ad1[_0x444114(0x2ca)](_0x3151c5[_0x444114(0x1b8)](this[_0x444114(0x3d9)]))[_0x444114(0x112)](_0x2d277e=>{const _0x22bc76=_0x444114;var _0x2938a2;typeof _0x2d277e>'u'||(this[_0x22bc76(0x150)]=_0x2d277e,_0x2d277e?(this[_0x22bc76(0x1ab)](_0x2d277e),this[_0x22bc76(0x3ad)]=this[_0x22bc76(0x150)][_0x22bc76(0x2fb)][_0x22bc76(0x112)](_0x451ee6=>{const _0x4b94a0=_0x22bc76;_0x451ee6[_0x4b94a0(0x158)]===this['_unitID']&&this[_0x4b94a0(0x1ea)](_0x451ee6);})):(this[_0x22bc76(0x121)][_0x22bc76(0x3d6)](0x2),(_0x2938a2=this[_0x22bc76(0x3ad)])==null||_0x2938a2[_0x22bc76(0x136)](),this['_socketMessageSubscription']=null));}),this[_0x444114(0xf8)](this[_0x444114(0x3de)][_0x444114(0xbc)](()=>{const _0x1eab2e=_0x444114;var _0x39d147;(_0x39d147=this[_0x1eab2e(0x150)])==null||_0x39d147[_0x1eab2e(0x3c4)]({'cmd':_0x1da09a[_0x1eab2e(0x3c7)],'data':{'roomID':this[_0x1eab2e(0x363)]}});})));}get[_0x72f170(0x35b)](){const _0x51094e=_0x72f170;return this['_sessionStatus$'][_0x51094e(0x1e1)]();}[_0x72f170(0x1c4)](){const _0x1294bf=_0x72f170;var _0x312ccd,_0x344417;return(_0x344417=(_0x312ccd=this[_0x1294bf(0x150)])==null?void 0x0:_0x312ccd[_0x1294bf(0x144)])!=null?_0x344417:null;}[_0x72f170(0x10c)](){const _0x1ae2ee=_0x72f170;super[_0x1ae2ee(0x10c)](),this[_0x1ae2ee(0x3d9)][_0x1ae2ee(0x3d6)](),this['dispose$'][_0x1ae2ee(0x27e)]();}['_onCombEvent'](_0x448958){const _0x596349=_0x72f170;_0x448958['cmd']===_0x1da09a[_0x596349(0x22b)]?this[_0x596349(0x119)](_0x448958):_0x448958['cmd']===_0x1da09a['RECV']&&this[_0x596349(0x3a2)](_0x448958);}[_0x72f170(0x1ab)](_0x23223f){const _0x584d08=_0x72f170;this[_0x584d08(0x121)][_0x584d08(0x3d6)](0x1),_0x23223f[_0x584d08(0x3c4)]({'cmd':_0x1da09a['JOIN'],'routeKey':this[_0x584d08(0x363)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x72f170(0x119)](_0x51b1b9){const _0xd5899a=_0x72f170;var _0x595c7b;if(_0x51b1b9[_0xd5899a(0x321)]===_0x527bb7[_0xd5899a(0xbf)]){this[_0xd5899a(0x269)]['show']({'type':_0x350456[_0xd5899a(0x2a4)][_0xd5899a(0x347)],'content':this['_localeService']['t'](_0xd5899a(0x17a))}),this['_sessionStatus$']['next'](0x2);return;}this[_0xd5899a(0x121)]['next'](0x3);const _0x4f2aaa=(_0x595c7b=_0x51b1b9[_0xd5899a(0x304)][_0xd5899a(0x16a)][this[_0xd5899a(0x363)]])==null?void 0x0:_0x595c7b[_0xd5899a(0x152)];_0x4f2aaa&&_0x4f2aaa[_0xd5899a(0x3bf)](_0x1ec53=>this[_0xd5899a(0x23f)][_0xd5899a(0x3ec)](this[_0xd5899a(0x363)],_0x1ec53));}[_0x72f170(0x3a2)](_0x2cad16){const _0x26e39b=_0x72f170;try{const _0x4a9a14=_0x2cad16[_0x26e39b(0x304)];switch(_0x4a9a14[_0x26e39b(0xe8)]){case _0x30a695[_0x26e39b(0x107)][_0x26e39b(0x15a)]:this[_0x26e39b(0x138)](_0x4a9a14),this[_0x26e39b(0x364)][_0x26e39b(0x3d6)](_0x4a9a14);break;case _0x30a695[_0x26e39b(0x107)][_0x26e39b(0x147)]:this[_0x26e39b(0xdc)](_0x4a9a14),this[_0x26e39b(0x364)]['next'](_0x4a9a14);break;case _0x30a695[_0x26e39b(0x107)][_0x26e39b(0x1f4)]:this[_0x26e39b(0x20c)](),this[_0x26e39b(0x364)]['next'](_0x4a9a14);break;case _0x30a695['CollaborationEvent'][_0x26e39b(0x362)]:this[_0x26e39b(0x1a6)][_0x26e39b(0x2e6)](_0x26e39b(0x1ee)+JSON[_0x26e39b(0x286)](_0x4a9a14)),this[_0x26e39b(0x364)]['next'](_0x4a9a14);break;default:this[_0x26e39b(0x364)][_0x26e39b(0x3d6)](_0x4a9a14);}}catch(_0x38bd8c){this[_0x26e39b(0x1a6)][_0x26e39b(0x2e6)](_0x38bd8c,_0x2cad16);}}[_0x72f170(0x138)](_0x535701){const _0x48e03a=_0x72f170;this['_memberService'][_0x48e03a(0x3ec)](this[_0x48e03a(0x363)],_0x535701[_0x48e03a(0x304)]);}[_0x72f170(0xdc)](_0x1de2e2){const _0x9799b=_0x72f170;this[_0x9799b(0x23f)][_0x9799b(0x417)](this[_0x9799b(0x363)],_0x1de2e2[_0x9799b(0x304)]['memberID']);}async['send'](_0x14248f,_0x368e83){const _0x2ae7be=_0x72f170;if(this['sessionStatus']!==0x3||!this[_0x2ae7be(0x150)])throw new Error(_0x2ae7be(0x1b9));try{_0x14248f['eventID']===_0x30a695['CollaborationEvent'][_0x2ae7be(0x22c)]&&this[_0x2ae7be(0x382)](),this[_0x2ae7be(0x150)]['send']({'cmd':_0x1da09a[_0x2ae7be(0x12b)],'routeKey':_0x368e83,'routeType':'','data':_0x14248f});}catch(_0x280afa){this[_0x2ae7be(0x1a6)]['error'](_0x280afa);}}[_0x72f170(0x382)](){const _0x2fc5e9=_0x72f170;var _0x527608;this[_0x2fc5e9(0x3fc)]=window[_0x2fc5e9(0x285)](()=>{const _0x4daa88=_0x2fc5e9;this[_0x4daa88(0x3fc)]=null,this['_messageService'][_0x4daa88(0x338)]({'type':_0x350456[_0x4daa88(0x2a4)][_0x4daa88(0x3cf)],'content':this[_0x4daa88(0x17e)]['t']('session.collaboration-timeout')});},(_0x527608=this['_configService']['getConfig'](_0x855346))!=null?_0x527608:_0x5f5a4b);}['_clearCollaborationTimeoutTimer'](){const _0x56c81e=_0x72f170;this[_0x56c81e(0x3fc)]&&(clearTimeout(this[_0x56c81e(0x3fc)]),this[_0x56c81e(0x3fc)]=null);}},_0x588091['CollaborationSession']=_0x4ec6dc([_0x903a07(0x2,_0x1b3401[_0x72f170(0x29c)]),_0x903a07(0x3,_0x47170c[_0x72f170(0xe4)]),_0x903a07(0x4,_0x47170c[_0x72f170(0x2e2)]),_0x903a07(0x5,_0x1b3401[_0x72f170(0x1e4)]),_0x903a07(0x6,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401[_0x72f170(0x330)])),_0x903a07(0x7,_0x5c7b32[_0x72f170(0x3c0)](_0x3f8747))],_0x588091[_0x72f170(0x2fc)]),_0x588091['CollaborationSessionService']=class extends _0x1b3401[_0x72f170(0x340)]{constructor(_0x2147f6,_0x115a64,_0x184353,_0x11dd1c,_0x29501b,_0x23e3e9){const _0x2fadf6=_0x72f170;super(),_0x51e1d8(this,_0x2fadf6(0x33b),new _0x414952[(_0x2fadf6(0x1e6))](void 0x0)),_0x51e1d8(this,_0x2fadf6(0x225),new Map()),_0x51e1d8(this,_0x2fadf6(0x221),new _0x414952[(_0x2fadf6(0x1e6))](0x0)),_0x51e1d8(this,'status$',this['_status$']['asObservable']()),_0x51e1d8(this,_0x2fadf6(0x3bd),!0x1),_0x51e1d8(this,_0x2fadf6(0x280)),_0x51e1d8(this,'_timeoutTimer'),_0x51e1d8(this,'_retryConnectingTimer'),_0x51e1d8(this,_0x2fadf6(0x402),0x0),(this[_0x2fadf6(0x397)]=_0x2147f6,this['_localeService']=_0x115a64,this[_0x2fadf6(0x269)]=_0x184353,this[_0x2fadf6(0x1a6)]=_0x11dd1c,this[_0x2fadf6(0x1a2)]=_0x29501b,this[_0x2fadf6(0xe9)]=_0x23e3e9);}get[_0x72f170(0x150)](){const _0x121dab=_0x72f170;return this[_0x121dab(0x33b)][_0x121dab(0x1e1)]();}['dispose'](){const _0x3f7baa=_0x72f170;super[_0x3f7baa(0x10c)](),this[_0x3f7baa(0x225)][_0x3f7baa(0x3bf)](_0x204638=>_0x204638[_0x3f7baa(0x10c)]()),this[_0x3f7baa(0x225)]['clear'](),this[_0x3f7baa(0x221)][_0x3f7baa(0x27e)]();}async[_0x72f170(0x336)](_0x2ed0d5){const _0x181625=_0x72f170;if(this['_sessions'][_0x181625(0x2de)](_0x2ed0d5))return this[_0x181625(0x225)]['get'](_0x2ed0d5);this[_0x181625(0xce)]();const _0x5cc090=this[_0x181625(0x397)]['createInstance'](_0x588091['CollaborationSession'],_0x2ed0d5,this[_0x181625(0x33b)][_0x181625(0x348)]());return this[_0x181625(0x225)][_0x181625(0x346)](_0x2ed0d5,_0x5cc090),_0x5cc090;}[_0x72f170(0x184)](){const _0x17b9c9=_0x72f170;var _0x133c13;const _0x1171ad=(_0x133c13=this[_0x17b9c9(0x1a2)][_0x17b9c9(0x310)](_0x575e39))!=null?_0x133c13:_0x323e3c;return this[_0x17b9c9(0xe9)][_0x17b9c9(0x2b8)](_0x1171ad);}['_tryEnsureSocket'](){const _0x76ac3c=_0x72f170;try{const _0x5c199b=this[_0x76ac3c(0x184)]();if(_0x5c199b){const _0x5510ed=_0x5c199b[_0x76ac3c(0x3c4)];_0x5c199b[_0x76ac3c(0x3c4)]=_0x577473=>(this[_0x76ac3c(0x17b)](),_0x5510ed[_0x76ac3c(0x1fd)](_0x5c199b,[_0x577473])),_0x5c199b[_0x76ac3c(0x2fb)][_0x76ac3c(0x112)](_0x5e716d=>this[_0x76ac3c(0x1a3)](_0x5c199b,_0x5e716d)),_0x5c199b[_0x76ac3c(0xeb)][_0x76ac3c(0x2ca)](_0x3151c5['take'](0x1))[_0x76ac3c(0x112)](_0xc04a0a=>this[_0x76ac3c(0x1a6)][_0x76ac3c(0x2e6)]('[CollaborationSessionService]:\x20socket\x20error',_0xc04a0a)),_0x5c199b[_0x76ac3c(0x37a)]['pipe'](_0x3151c5[_0x76ac3c(0x375)](0x1))[_0x76ac3c(0x112)](()=>{this['_onConnectionOpen'](_0x5c199b);}),_0x5c199b['close$'][_0x76ac3c(0x2ca)](_0x3151c5[_0x76ac3c(0x375)](0x1))[_0x76ac3c(0x112)](_0x2c0e16=>{const _0x4c0cbd=_0x76ac3c;this[_0x4c0cbd(0x1a6)][_0x4c0cbd(0xf2)]('[CollaborationSessionService]',_0x4c0cbd(0x36c),_0x2c0e16),this['_onConnectionFailed']();});}}catch(_0x12ecaf){this['_logService']['error'](_0x12ecaf),this[_0x76ac3c(0x28d)]();}}['_onConnectionOpen'](_0x1b9caa){const _0x31b2c2=_0x72f170;this[_0x31b2c2(0x1a6)][_0x31b2c2(0xf2)](_0x31b2c2(0x424),'socket\x20open.'),_0x1b9caa[_0x31b2c2(0x3c4)]({'cmd':_0x1da09a[_0x31b2c2(0x298)]}),this[_0x31b2c2(0x17b)]();}[_0x72f170(0x28d)](){const _0x47c2da=_0x72f170;var _0x2af522;this[_0x47c2da(0x221)][_0x47c2da(0x3d6)](0x2),this[_0x47c2da(0x33b)][_0x47c2da(0x3d6)](null),this[_0x47c2da(0x10a)](),this[_0x47c2da(0x264)](),this[_0x47c2da(0x3bd)]=!0x1,this[_0x47c2da(0x402)]<((_0x2af522=this['_configService'][_0x47c2da(0x310)](_0x4e5356))!=null?_0x2af522:_0x2f694c)?(this['_scheduleReconnection'](this['_retryCount']),this[_0x47c2da(0x402)]+=0x1):this['_messageService'][_0x47c2da(0x338)]({'type':_0x350456[_0x47c2da(0x2a4)][_0x47c2da(0x3cf)],'content':this[_0x47c2da(0x17e)]['t']('session.connection-failed')});}[_0x72f170(0x427)](_0x5f10d4){const _0x385853=_0x72f170;var _0x257a97;const _0x4ac3ef=((_0x257a97=this[_0x385853(0x1a2)]['getConfig'](_0x4c9d62))!=null?_0x257a97:_0xde0e3f)*0x2**_0x5f10d4;this[_0x385853(0x269)][_0x385853(0x338)]({'type':_0x350456[_0x385853(0x2a4)][_0x385853(0x347)],'content':this[_0x385853(0x17e)]['t'](_0x385853(0x2f5))}),this[_0x385853(0x1d2)]=setTimeout(()=>{const _0x3674ee=_0x385853;this[_0x3674ee(0xce)](),clearTimeout(this[_0x3674ee(0x1d2)]),this[_0x3674ee(0x1d2)]=null;},_0x4ac3ef);}[_0x72f170(0x17b)](){const _0x5730c9=_0x72f170;var _0x5230ec;this['_clearHeartbeatTimer'](),this[_0x5730c9(0x280)]=setTimeout(()=>this[_0x5730c9(0x1a1)](),(_0x5230ec=this[_0x5730c9(0x1a2)][_0x5730c9(0x310)](_0x5d723c))!=null?_0x5230ec:_0x433e9c);}['_sendHeartbeat'](){const _0x48115a=_0x72f170;this[_0x48115a(0x150)][_0x48115a(0x3c4)]({'cmd':_0x1da09a[_0x48115a(0x1fe)]}),this[_0x48115a(0x272)]();}[_0x72f170(0x272)](){const _0x51a3fd=_0x72f170;var _0x4c8ff5;this['_timeoutTimer']=setTimeout(()=>this[_0x51a3fd(0x28d)](),(_0x4c8ff5=this[_0x51a3fd(0x1a2)][_0x51a3fd(0x310)](_0x855346))!=null?_0x4c8ff5:_0x5f5a4b);}[_0x72f170(0x1a3)](_0x41d243,_0x3bcf6a){const _0x26d186=_0x72f170,{cmd:_0x1159ef}=_0x3bcf6a;_0x1159ef===_0x1da09a['HELLO']&&!this[_0x26d186(0x3bd)]&&(_0x41d243[_0x26d186(0x144)]=_0x3bcf6a[_0x26d186(0x304)][_0x26d186(0x144)],this[_0x26d186(0x33b)][_0x26d186(0x3d6)](_0x41d243),this[_0x26d186(0x221)][_0x26d186(0x3d6)](0x3),this[_0x26d186(0x3bd)]=!0x0),_0x1159ef===_0x1da09a[_0x26d186(0x1fe)]&&this[_0x26d186(0x10a)](),this['_rescheduleHeartbeatEvent']();}[_0x72f170(0x264)](){const _0x313ee6=_0x72f170;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x313ee6(0x280)]),this[_0x313ee6(0x280)]=null);}[_0x72f170(0x10a)](){const _0x2f211e=_0x72f170;this[_0x2f211e(0x3d5)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x2f211e(0x3d5)]=null);}},_0x588091[_0x72f170(0x1d6)]=_0x4ec6dc([_0x903a07(0x0,_0x5c7b32['Inject'](_0x5c7b32[_0x72f170(0x425)])),_0x903a07(0x1,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401[_0x72f170(0x330)])),_0x903a07(0x2,_0x47170c['IMessageService']),_0x903a07(0x3,_0x1b3401[_0x72f170(0x29c)]),_0x903a07(0x4,_0x1b3401[_0x72f170(0x1e4)]),_0x903a07(0x5,_0x1083e0)],_0x588091['CollaborationSessionService']);var _0x7701e4=(_0x3c3470,_0x57e5dc,_0x323976,_0x1604b3)=>{const _0x569b1a=_0x72f170;for(var _0x29aba6=_0x57e5dc,_0x1c9ad8=_0x3c3470[_0x569b1a(0xbe)]-0x1,_0x75a79c;_0x1c9ad8>=0x0;_0x1c9ad8--)(_0x75a79c=_0x3c3470[_0x1c9ad8])&&(_0x29aba6=_0x75a79c(_0x29aba6)||_0x29aba6);return _0x29aba6;},_0x2c73ec=(_0x1f708e,_0x4fd38a)=>(_0x2f4520,_0x20f195)=>_0x4fd38a(_0x2f4520,_0x20f195,_0x1f708e);const _0x33701a='LOCAL_CACHE_INTERVAL',_0x335856=0x3e8;_0x588091[_0x72f170(0x3a7)]=class extends _0x1b3401[_0x72f170(0x340)]{constructor(_0x398342,_0x5b5b69,_0x154f0d,_0x4198db,_0x47878a){const _0x7eff4f=_0x72f170;super(),_0x51e1d8(this,_0x7eff4f(0xda),new Map()),_0x51e1d8(this,_0x7eff4f(0x32f),new Map()),_0x51e1d8(this,'_disabled',!0x1),(this['_configService']=_0x398342,this[_0x7eff4f(0x252)]=_0x5b5b69,this[_0x7eff4f(0x3de)]=_0x154f0d,this[_0x7eff4f(0x17e)]=_0x4198db,this['_revisionService']=_0x47878a,this['_setupBeforeClosingHandler']());}[_0x72f170(0x2d9)](){this['_disabled']=!0x0;}[_0x72f170(0xdd)](){this['_disabled']=!0x1;}[_0x72f170(0x10c)](){const _0x13f35b=_0x72f170;this[_0x13f35b(0x25d)]()[_0x13f35b(0x414)](()=>super[_0x13f35b(0x10c)]());}async[_0x72f170(0x3df)](_0x2abdaa){const _0x24e401=_0x72f170;return this[_0x24e401(0x1b5)]?null:this['_localStorageService'][_0x24e401(0xc9)](_0x3b3fa0(_0x2abdaa));}async[_0x72f170(0xdf)](_0x1294f1,_0x42553c){return!!this['_localStorageService']['setItem'](_0x1294f1,_0x42553c);}[_0x72f170(0x1a7)](_0xddb8b5,_0x1e01fc,_0x3aeb3e,_0x1d7534){const _0x4091fa=_0x72f170,_0x42104b=this[_0x4091fa(0x376)][_0x4091fa(0x35d)](_0xddb8b5);this[_0x4091fa(0xda)][_0x4091fa(0x346)](_0xddb8b5,{'unitID':_0xddb8b5,'type':_0x1e01fc,'awaitingChangeset':_0x3aeb3e,'mutations':_0x1d7534,'rev':_0x42104b}),this[_0x4091fa(0x32f)][_0x4091fa(0x2de)](_0xddb8b5)||this[_0x4091fa(0x104)](_0xddb8b5);}[_0x72f170(0x104)](_0x488afc){const _0x35533d=_0x72f170,_0x26d5fc=this[_0x35533d(0x36e)]();_0x26d5fc===0x0?this[_0x35533d(0xe6)](_0x488afc):this['_saveTaskMap']['set'](_0x488afc,setTimeout(()=>this[_0x35533d(0xe6)](_0x488afc),_0x26d5fc));}[_0x72f170(0x36e)](){const _0x479e65=_0x72f170;var _0x27000b;return(_0x27000b=this[_0x479e65(0x1a2)][_0x479e65(0x310)](_0x33701a))!=null?_0x27000b:_0x335856;}[_0x72f170(0xe6)](_0x513c8c){const _0x23a3aa=_0x72f170,_0x55d794=this['_saveTaskMap']['get'](_0x513c8c);return _0x55d794!==void 0x0&&window[_0x23a3aa(0x3ce)](_0x55d794),this[_0x23a3aa(0x252)][_0x23a3aa(0x208)](_0x3b3fa0(_0x513c8c),this['_cachedData'][_0x23a3aa(0x25f)](_0x513c8c))[_0x23a3aa(0x414)](()=>this[_0x23a3aa(0x32f)]['delete'](_0x513c8c));}async[_0x72f170(0x25d)](){const _0x4f8518=_0x72f170,_0x3773cb=[];this[_0x4f8518(0x32f)][_0x4f8518(0x3bf)]((_0x1863bb,_0x4a41ee)=>{const _0x24060=_0x4f8518;window[_0x24060(0x3ce)](_0x1863bb),_0x3773cb[_0x24060(0x2c7)](this[_0x24060(0xe6)](_0x4a41ee)[_0x24060(0x414)](()=>{const _0x31ce99=_0x24060;this[_0x31ce99(0x32f)][_0x31ce99(0x16c)](_0x4a41ee);}));}),await Promise[_0x4f8518(0x11a)](_0x3773cb);}[_0x72f170(0x2d4)](){const _0x4a5ca9=_0x72f170;this['disposeWithMe'](this['_beforeCloseService'][_0x4a5ca9(0x19b)](()=>{const _0x1a6984=_0x4a5ca9;if(this[_0x1a6984(0x32f)][_0x1a6984(0xcd)])return this[_0x1a6984(0x17e)]['t'](_0x1a6984(0x19e));}));}},_0x588091[_0x72f170(0x3a7)]=_0x7701e4([_0x2c73ec(0x0,_0x1b3401[_0x72f170(0x1e4)]),_0x2c73ec(0x1,_0x1b3401[_0x72f170(0x29a)]),_0x2c73ec(0x2,_0x47170c[_0x72f170(0xe4)]),_0x2c73ec(0x3,_0x5c7b32['Inject'](_0x1b3401['LocaleService'])),_0x2c73ec(0x4,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695[_0x72f170(0x31f)]))],_0x588091['LocalCacheService']);function _0x3b3fa0(_0x16d1db){return'unit-cache-'+_0x16d1db;}const _0x345c46=_0x5c7b32['createIdentifier'](_0x72f170(0xca));var _0x215e18=(_0x2eb1d5=>(_0x2eb1d5[_0x2eb1d5[_0x72f170(0x187)]=0x0]=_0x72f170(0x187),_0x2eb1d5[_0x2eb1d5[_0x72f170(0x1e0)]=0x1]=_0x72f170(0x1e0),_0x2eb1d5))(_0x215e18||{});const _0x2ab6cc=0x7530,_0x3d96db=_0x72f170(0x211);class _0x502148 extends _0x1b3401[_0x72f170(0x340)]{constructor(){const _0x48f146=_0x72f170;super(),_0x51e1d8(this,_0x48f146(0x18e),_0x1b3401[_0x48f146(0x39f)][_0x48f146(0x32e)]()),_0x51e1d8(this,_0x48f146(0x10f),new Set()),_0x51e1d8(this,_0x48f146(0x224),new Map()),_0x51e1d8(this,'_heartbeatTimer',null),_0x51e1d8(this,_0x48f146(0xc0),new Map()),_0x51e1d8(this,'_unitStatus',new Map()),this[_0x48f146(0x3b0)]();}['dispose'](){const _0x25224e=_0x72f170;super[_0x25224e(0x10c)](),this[_0x25224e(0xc0)][_0x25224e(0x3bf)]((_0x384851,_0x36b876)=>this[_0x25224e(0x190)](_0x36b876)),this[_0x25224e(0x274)]&&window[_0x25224e(0x294)](this[_0x25224e(0x274)]);}[_0x72f170(0x133)](_0x7aecf5){const _0x27596f=_0x72f170;return this['_ensureSubject'](_0x7aecf5)[_0x27596f(0x2ca)](_0x414952[_0x27596f(0x3c5)]());}['editingUnit'](_0x30acab){const _0x1cb400=_0x72f170;this[_0x1cb400(0x10f)]['size']===0x0&&this[_0x1cb400(0xcf)](),this[_0x1cb400(0x10f)][_0x1cb400(0x3c1)](_0x30acab),this[_0x1cb400(0x180)]({'type':0x0,'memberID':this[_0x1cb400(0x18e)],'unitID':_0x30acab});}['disposeUnit'](_0x10bb21){const _0x389ce6=_0x72f170;this[_0x389ce6(0x10f)][_0x389ce6(0x16c)](_0x10bb21),this['_selfUnitIDs'][_0x389ce6(0xcd)]===0x0&&this['_heartbeatTimer']&&window[_0x389ce6(0x294)](this[_0x389ce6(0x274)]);}['_init'](){const _0x719348=_0x72f170;this[_0x719348(0xf8)](_0x1b3401[_0x719348(0x2ac)](_0x414952[_0x719348(0x39d)](window,_0x719348(0x431))[_0x719348(0x112)](_0x5ad107=>{const _0x48a7ef=_0x719348;if(_0x5ad107[_0x48a7ef(0x13c)]!==_0x3d96db||!_0x5ad107[_0x48a7ef(0x421)])return;const _0x20a907=JSON[_0x48a7ef(0x3fd)](_0x5ad107[_0x48a7ef(0x421)]);this[_0x48a7ef(0xf0)](_0x20a907);}))),window[_0x719348(0x106)]('unload',()=>this[_0x719348(0x180)]({'type':0x1,'memberID':this[_0x719348(0x18e)],'unitIDs':Array[_0x719348(0x213)](this[_0x719348(0x10f)])}));}[_0x72f170(0xf0)](_0x270a50){const _0x4f6a6c=_0x72f170;switch(_0x270a50[_0x4f6a6c(0x418)]){case 0x0:this['_handleJoinEvent'](_0x270a50);break;case 0x1:this[_0x4f6a6c(0x2b6)](_0x270a50);break;case 0x2:this[_0x4f6a6c(0x379)](_0x270a50);break;}}['_handleJoinEvent'](_0x5a223d){const _0x2003b1=_0x72f170,{unitID:_0x3c944f,memberID:_0x2a30ee}=_0x5a223d;if(!this['_unitOnClients'][_0x2003b1(0x2de)](_0x3c944f)||!this[_0x2003b1(0x224)][_0x2003b1(0x25f)](_0x3c944f)['has'](_0x2a30ee)){const _0x290cfd=this[_0x2003b1(0x224)][_0x2003b1(0x25f)](_0x3c944f)||new Set();_0x290cfd[_0x2003b1(0x3c1)](_0x2a30ee),this[_0x2003b1(0x224)][_0x2003b1(0x346)](_0x3c944f,_0x290cfd),this[_0x2003b1(0x262)](_0x2a30ee),this[_0x2003b1(0x180)]({'type':0x0,'memberID':this[_0x2003b1(0x18e)],'unitID':_0x3c944f});}else this[_0x2003b1(0x128)](_0x3c944f)[_0x2003b1(0x3d6)](0x1);}[_0x72f170(0x262)](_0x31f8e4){this['_removeClearOtherTimer'](_0x31f8e4);const _0x2c94c9=window['setTimeout'](()=>{const _0x3745dc=_0x4733;this[_0x3745dc(0x224)]['forEach'](_0x18fdde=>{const _0x21d247=_0x3745dc;_0x18fdde[_0x21d247(0x16c)](_0x31f8e4);});},_0x2ab6cc*0x2);this['_clearOtherTimers']['set'](_0x31f8e4,_0x2c94c9);}['_removeClearOtherTimer'](_0x343c1f){const _0x54e88f=_0x72f170;if(this[_0x54e88f(0xc0)][_0x54e88f(0x2de)](_0x343c1f)){const _0x3a2429=this[_0x54e88f(0xc0)][_0x54e88f(0x25f)](_0x343c1f);_0x3a2429&&window['clearTimeout'](_0x3a2429),this[_0x54e88f(0xc0)][_0x54e88f(0x346)](_0x343c1f,null);}}[_0x72f170(0x2b6)](_0xeabc4a){const _0x3666a0=_0x72f170,{memberID:_0x52d946,unitIDs:_0x5880ab}=_0xeabc4a;_0x5880ab[_0x3666a0(0x3bf)](_0x493142=>{const _0xc1741=_0x3666a0;var _0x5f5d05;const _0xb6bd70=this[_0xc1741(0x224)][_0xc1741(0x25f)](_0x493142);_0xb6bd70&&(_0xb6bd70[_0xc1741(0x16c)](_0x52d946),(_0x5f5d05=this['_ensureSubject'](_0x493142))==null||_0x5f5d05['next'](_0xb6bd70[_0xc1741(0xcd)]===0x0?0x0:0x1));}),this[_0x3666a0(0x190)](_0x52d946);}[_0x72f170(0x379)](_0x294302){const _0x204b8c=_0x72f170;this[_0x204b8c(0x262)](_0x294302['memberID']);}[_0x72f170(0x180)](_0x2f520a){const _0x340403=_0x72f170;localStorage[_0x340403(0x208)](_0x3d96db,JSON[_0x340403(0x286)](_0x2f520a));}[_0x72f170(0xcf)](){const _0x24d8ae=_0x72f170;this[_0x24d8ae(0x274)]=window['setInterval'](()=>{const _0x2124c3=_0x24d8ae;this[_0x2124c3(0x180)]({'type':0x2,'memberID':this[_0x2124c3(0x18e)]});},_0x2ab6cc);}[_0x72f170(0x128)](_0x4b9944){const _0x555411=_0x72f170;return this['_unitStatus']['has'](_0x4b9944)||this[_0x555411(0x1ba)][_0x555411(0x346)](_0x4b9944,new _0x414952[(_0x555411(0x1e6))](0x0)),this['_unitStatus'][_0x555411(0x25f)](_0x4b9944);}}var _0x2f97fb=(_0x51fb0c,_0x1f770f,_0x2f7447,_0x647592)=>{const _0x3b44b8=_0x72f170;for(var _0x454d21=_0x1f770f,_0x15202b=_0x51fb0c[_0x3b44b8(0xbe)]-0x1,_0x2d6853;_0x15202b>=0x0;_0x15202b--)(_0x2d6853=_0x51fb0c[_0x15202b])&&(_0x454d21=_0x2d6853(_0x454d21)||_0x454d21);return _0x454d21;},_0x341c78=(_0x2c6775,_0x320594)=>(_0x4becb8,_0x1d9793)=>_0x320594(_0x4becb8,_0x1d9793,_0x2c6775);let _0x1a629c=class{constructor(_0xc13ad0,_0x263301){const _0x1752cb=_0x72f170;this[_0x1752cb(0x397)]=_0xc13ad0,this[_0x1752cb(0x3f8)]=_0x263301;}[_0x72f170(0x40f)](_0x719a5c){const _0x1cf1a1=_0x72f170;this['_transformUndoRedoStack'](_0x719a5c),this[_0x1cf1a1(0x15f)](_0x719a5c);}[_0x72f170(0x1d8)](_0x4cf5e4){const _0xb357b3=_0x72f170,_0x572ecc=this['_injector'][_0xb357b3(0x25f)](_0x54860c[_0xb357b3(0x36f)]),{redoCache:_0x28f86d}=_0x572ecc[_0xb357b3(0x3ea)]();if(_0x28f86d[_0xb357b3(0xbe)]===0x0)return _0x4cf5e4;let _0xec03bd=_0x1b3401[_0xb357b3(0x39f)][_0xb357b3(0x2ad)](_0x4cf5e4['mutations'][0x0]);for(let _0x3a9072=0x0;_0x3a9072<_0x28f86d[_0xb357b3(0xbe)];_0x3a9072++){const _0x2304db={'id':_0xb357b3(0x42f),'params':{..._0x28f86d[_0x3a9072]}},_0x1238d2=this[_0xb357b3(0x3f8)]['transformMutation'](_0xec03bd,_0x2304db,!0x1);if(_0x30a695[_0xb357b3(0x149)](_0x1238d2))throw _0x1238d2[_0xb357b3(0x2e6)];_0xec03bd=_0x1238d2[_0xb357b3(0x385)];}return{..._0x1b3401[_0xb357b3(0x39f)][_0xb357b3(0x2ad)](_0x4cf5e4),'mutations':[_0xec03bd]};}[_0x72f170(0xd2)](_0x1f91bb){const _0x946217=_0x72f170,_0x404c95=this[_0x946217(0x397)][_0x946217(0x25f)](_0x54860c[_0x946217(0x36f)]),{undoCache:_0x179cbc,redoCache:_0x4d3bc7}=_0x404c95[_0x946217(0x3ea)]();if(_0x179cbc[_0x946217(0xbe)]===0x0||_0x4d3bc7['length']===0x0)return;const _0x4dd8e8=[],_0x2ba86b=[];let _0x40e8d7=_0x1b3401[_0x946217(0x39f)][_0x946217(0x2ad)](_0x1f91bb['mutations'][0x0]),_0x430c29=_0x1b3401['Tools'][_0x946217(0x2ad)](_0x1f91bb['mutations'][0x0]);for(let _0x6d4bf4=_0x179cbc[_0x946217(0xbe)]-0x1;_0x6d4bf4>=0x0;_0x6d4bf4--){const _0x514f83={'id':_0x946217(0x42f),'params':{..._0x179cbc[_0x6d4bf4]}},_0x293d32={'id':_0x946217(0x42f),'params':{..._0x4d3bc7[_0x6d4bf4]}},_0x30ef54=this[_0x946217(0x3f8)]['transformMutation'](_0x40e8d7,_0x514f83,!0x1),_0x1b12e9=this[_0x946217(0x3f8)][_0x946217(0xea)](_0x430c29,_0x293d32,!0x1);if(_0x30a695[_0x946217(0x149)](_0x30ef54))throw _0x30ef54[_0x946217(0x2e6)];if(_0x30a695['isTransformMutationFailure'](_0x1b12e9))throw _0x1b12e9[_0x946217(0x2e6)];_0x4dd8e8['unshift'](_0x30ef54[_0x946217(0x268)][_0x946217(0x197)]),_0x2ba86b[_0x946217(0x3af)](_0x1b12e9[_0x946217(0x268)]['params']),_0x40e8d7=_0x30ef54[_0x946217(0x385)],_0x430c29=_0x1b12e9['m1Prime'];}_0x404c95['setUndoRedoMutationParamsCache']({'undoCache':_0x4dd8e8,'redoCache':_0x2ba86b});}[_0x72f170(0x15f)](_0x79fa10){const _0xac53d0=_0x72f170,_0x59fee8=this[_0xac53d0(0x397)]['get'](_0x54860c[_0xac53d0(0x36f)]),_0x51a65d=_0x59fee8['getActiveRange']();if(_0x51a65d==null)return;const _0x2feea1=[{'id':_0xac53d0(0x42f),'params':{'unitId':_0x79fa10[_0xac53d0(0x17d)],'actions':[],'textRanges':[_0x51a65d]}}],_0x48ce4a=this['_transformService'][_0xac53d0(0x132)](_0x79fa10,_0x2feea1);if(!_0x30a695[_0xac53d0(0x2ab)](_0x48ce4a))throw _0x48ce4a[_0xac53d0(0x2e6)];const _0x48e336=_0x48ce4a[_0xac53d0(0x268)][0x0][_0xac53d0(0x197)][_0xac53d0(0x113)];Array['isArray'](_0x48e336)&&_0x48e336[_0xac53d0(0xbe)]&&_0x59fee8[_0xac53d0(0x2f8)](_0x48e336[0x0]);}};_0x1a629c=_0x2f97fb([_0x341c78(0x0,_0x5c7b32['Inject'](_0x5c7b32[_0x72f170(0x425)])),_0x341c78(0x1,_0x30a695[_0x72f170(0x2dc)])],_0x1a629c);var _0x75b11b=(_0x39ca3a,_0x9bad3a,_0x7f6aea,_0x359da7)=>{const _0x2983bc=_0x72f170;for(var _0x10e740=_0x9bad3a,_0x5ca64c=_0x39ca3a[_0x2983bc(0xbe)]-0x1,_0x1351c2;_0x5ca64c>=0x0;_0x5ca64c--)(_0x1351c2=_0x39ca3a[_0x5ca64c])&&(_0x10e740=_0x1351c2(_0x10e740)||_0x10e740);return _0x10e740;},_0x56f40f=(_0x5c1975,_0x153b33)=>(_0x23c311,_0x254d1a)=>_0x153b33(_0x23c311,_0x254d1a,_0x5c1975);let _0x1505a5=class{constructor(_0x15646b,_0x561f1d){this['_injector']=_0x15646b,this['_transformService']=_0x561f1d;}[_0x72f170(0x196)](_0x3a15cb){const _0x5be384=_0x72f170;var _0x95d99e;const _0xa66f03=this[_0x5be384(0x397)]['get'](_0x54860c[_0x5be384(0x26e)]),_0x2aa2ec=(_0x95d99e=_0xa66f03[_0x5be384(0x2f2)]())!=null?_0x95d99e:[],_0x561e95=_0x2aa2ec==null?void 0x0:_0x2aa2ec[_0x5be384(0x250)](_0x54860c[_0x5be384(0x32a)]);if(_0x561e95[_0x5be384(0xbe)]===0x0)return;const _0x39278d=[{'id':_0x5be384(0x42f),'params':{'unitId':_0x3a15cb[_0x5be384(0x17d)],'actions':[],'textRanges':_0x561e95}}],_0xff7372=this[_0x5be384(0x3f8)][_0x5be384(0x132)](_0x3a15cb,_0x39278d);if(!_0x30a695[_0x5be384(0x2ab)](_0xff7372))throw _0xff7372['error'];const _0x3f92ac=_0xff7372['m2Prime'][0x0][_0x5be384(0x197)][_0x5be384(0x113)];Array[_0x5be384(0x22e)](_0x3f92ac)&&_0x3f92ac[_0x5be384(0xbe)]&&_0xa66f03[_0x5be384(0x345)](_0x3f92ac,!0x1);}};_0x1505a5=_0x75b11b([_0x56f40f(0x0,_0x5c7b32['Inject'](_0x5c7b32[_0x72f170(0x425)])),_0x56f40f(0x1,_0x30a695['ITransformService'])],_0x1505a5);function _0xbfbaaa(_0x258eae){const _0x8283ce=_0x72f170;let _0x49ffd2='';for(const _0x2764b5 of _0x258eae){const {startOffset:_0x39f12e,endOffset:_0x3ec633,isActive:_0x55245b}=_0x2764b5;_0x49ffd2[_0x8283ce(0xbe)]&&(_0x49ffd2+=','),_0x49ffd2+=_0x39f12e+':'+_0x3ec633+':'+(_0x55245b?'1':'0');}return _0x49ffd2;}function _0x9114c9(_0x518084){const _0x5ae58c=_0x72f170,_0x975acb=_0x518084[_0x5ae58c(0x101)](','),_0xdab2f3=[];for(const _0x2ed54d of _0x975acb){const [_0x502c58,_0xfa05e,_0x5857cb]=_0x2ed54d[_0x5ae58c(0x101)](':');_0xdab2f3[_0x5ae58c(0x2c7)]({'startOffset':Number(_0x502c58),'endOffset':Number(_0xfa05e),'collapsed':_0x502c58===_0xfa05e,'isActive':_0x5857cb==='1'});}return _0xdab2f3[_0x5ae58c(0x35a)](_0x4e2e50=>_0x4e2e50[_0x5ae58c(0x111)])||(_0xdab2f3[0x0][_0x5ae58c(0x111)]=!0x0),_0xdab2f3;}class _0x21c0b5 extends _0x1b3401['RxDisposable']{constructor(){const _0x301dc6=_0x72f170;super(...arguments),_0x51e1d8(this,_0x301dc6(0x22a),new _0x414952[(_0x301dc6(0x1e6))](null)),_0x51e1d8(this,_0x301dc6(0x41f),this[_0x301dc6(0x22a)][_0x301dc6(0x348)]());}[_0x72f170(0x3b2)](_0x1ba9ce){const _0x3692e6=_0x72f170,{unitID:_0x5452a3,memberID:_0x464789,textRanges:_0x1dd842}=_0x1ba9ce,_0x2ad981=_0xbfbaaa(_0x1dd842),_0x2c33a2={'unitID':_0x5452a3,'memberID':_0x464789,'selection':_0x2ad981};this[_0x3692e6(0x22a)][_0x3692e6(0x3d6)](_0x2c33a2);}}var _0x4317d1=(_0x591ef6,_0x534a82,_0x3edc37,_0x449e27)=>{const _0x3ebc98=_0x72f170;for(var _0xc56bd7=_0x534a82,_0x3c871e=_0x591ef6[_0x3ebc98(0xbe)]-0x1,_0x5c167b;_0x3c871e>=0x0;_0x3c871e--)(_0x5c167b=_0x591ef6[_0x3c871e])&&(_0xc56bd7=_0x5c167b(_0xc56bd7)||_0xc56bd7);return _0xc56bd7;},_0x560cc3=(_0x4497da,_0x26971c)=>(_0x24a47c,_0x36fbaa)=>_0x26971c(_0x24a47c,_0x36fbaa,_0x4497da);let _0x211af0=class{constructor(_0x1863e2,_0x3192bc){const _0xfc78f8=_0x72f170;this[_0xfc78f8(0x397)]=_0x1863e2,this[_0xfc78f8(0x3f8)]=_0x3192bc;}[_0x72f170(0x196)](_0x401d80){const _0x2efd54=_0x72f170;var _0x1cbce9,_0x6dda65,_0x251a95,_0x1cb56c;const _0x37ab22=this['_injector'][_0x2efd54(0x25f)](_0x51f05a[_0x2efd54(0x14d)]),{pluginName:_0xf1d163,unitId:_0x23a78f,sheetId:_0x1fa24f}=_0x37ab22[_0x2efd54(0x406)]()||{},_0x19f016=(_0x1cbce9=_0x37ab22[_0x2efd54(0x2f2)]())!=null?_0x1cbce9:[];if(_0x19f016[_0x2efd54(0xbe)]===0x0||!_0xf1d163||!_0x23a78f||!_0x1fa24f)return;const _0x1cfc9d=[{'id':_0x51f05a[_0x2efd54(0x167)]['id'],'params':{'unitId':_0x23a78f,'subUnitId':_0x1fa24f,'pluginName':_0xf1d163,'selections':_0x1b3401[_0x2efd54(0x39f)]['deepClone'](_0x19f016)}}],_0x596862=this['_transformService'][_0x2efd54(0x132)](_0x401d80,_0x1cfc9d);if(!_0x30a695['isTransformMutationsWithChangesetSuccess'](_0x596862))throw _0x596862[_0x2efd54(0x2e6)];const _0x2f5500=(_0x1cb56c=(_0x251a95=(_0x6dda65=_0x596862[_0x2efd54(0x268)][0x0])==null?void 0x0:_0x6dda65[_0x2efd54(0x197)])==null?void 0x0:_0x251a95['selections'])!=null?_0x1cb56c:_0x19f016;Array['isArray'](_0x2f5500)&&_0x2f5500[_0x2efd54(0xbe)]&&this['_injector']['get'](_0x1b3401['ICommandService'])['executeCommand'](_0x51f05a['SetSelectionsOperation']['id'],{'unitId':_0x23a78f,'subUnitId':_0x1fa24f,'pluginName':_0xf1d163,'selections':_0x2f5500});}};_0x211af0=_0x4317d1([_0x560cc3(0x0,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32['Injector'])),_0x560cc3(0x1,_0x30a695[_0x72f170(0x2dc)])],_0x211af0);const _0x2c64f1=new Set([_0x51f05a[_0x72f170(0x40c)]['id']]);function _0x1ef1f3(_0x3c033c,_0x1a2084,_0x51b56d,_0x5d86c0,_0x5f4ff3){const _0x5fd269=_0x72f170;var _0x486352,_0x410951,_0x4c4752,_0x93d30c;const _0x5c09ec=[];for(const _0x17426c of _0x3c033c)if(_0x2c64f1[_0x5fd269(0x2de)](_0x17426c['id'])){if(_0x5c09ec['length']>0x0)break;_0x5c09ec[_0x5fd269(0x2c7)](_0x17426c);break;}else _0x5c09ec[_0x5fd269(0x2c7)](_0x17426c);const _0x19301d=(_0x410951=(_0x486352=_0x5f4ff3['getCurrentUser']())==null?void 0x0:_0x486352[_0x5fd269(0x342)])!=null?_0x410951:_0x5fd269(0x400),_0x28c656=(_0x93d30c=(_0x4c4752=_0x5f4ff3[_0x5fd269(0x2e1)]())==null?void 0x0:_0x4c4752[_0x5fd269(0x144)])!=null?_0x93d30c:_0x5fd269(0x400);return{'changeset':{'unitID':_0x1a2084,'type':_0x30a695[_0x5fd269(0x411)](_0x51b56d[_0x5fd269(0x23d)](_0x1a2084)),'baseRev':_0x5d86c0['getCurrentRevForDocument'](_0x1a2084),'revision':0x0,'userID':_0x19301d,'memberID':_0x28c656,'mutations':_0x5c09ec},'pendingMutations':_0x3c033c[_0x5fd269(0x2a9)](_0x5c09ec[_0x5fd269(0xbe)])};}function _0x191741(_0x1e75ae,_0x2744b2,_0x38a562,_0x3a0954,_0x3d0dda){const _0x586afd=_0x72f170;var _0x28cbf3,_0x530a8f,_0x32d85c,_0x3ce003;const _0x289113=[_0x1e75ae[_0x586afd(0x13e)]((_0x5db2d7,_0x17b7b7)=>{const _0x1c5cc3=_0x586afd;var _0x3b18ba;const {id:_0x48e0ef}=_0x5db2d7,{id:_0x596443,type:_0x19c87a}=_0x17b7b7,_0x3765fe=(_0x3b18ba=_0x5db2d7['params'])!=null?_0x3b18ba:{'actions':[]},_0xa67456=_0x17b7b7[_0x1c5cc3(0x197)];if(_0x48e0ef&&_0x48e0ef!==_0x596443)throw new Error(_0x1c5cc3(0x30b)+_0x48e0ef+'\x20-\x20'+_0x596443+'.');return{..._0x5db2d7,'id':_0x596443,'type':_0x19c87a,'params':{'unitId':_0xa67456[_0x1c5cc3(0x350)],'textRanges':_0xa67456[_0x1c5cc3(0x113)],'actions':_0x1b3401[_0x1c5cc3(0x1ac)]['compose'](_0x3765fe[_0x1c5cc3(0x301)],_0xa67456['actions'])}};},{})],_0x13ffb2=(_0x530a8f=(_0x28cbf3=_0x3d0dda[_0x586afd(0x2e1)]())==null?void 0x0:_0x28cbf3[_0x586afd(0x342)])!=null?_0x530a8f:_0x586afd(0x400),_0xb4b921=(_0x3ce003=(_0x32d85c=_0x3d0dda[_0x586afd(0x2e1)]())==null?void 0x0:_0x32d85c['memberID'])!=null?_0x3ce003:_0x586afd(0x400);return{'changeset':{'unitID':_0x2744b2,'type':_0x30a695[_0x586afd(0x411)](_0x38a562['getUnitType'](_0x2744b2)),'baseRev':_0x3a0954['getCurrentRevForDocument'](_0x2744b2),'revision':0x0,'userID':_0x13ffb2,'memberID':_0xb4b921,'mutations':_0x289113},'pendingMutations':[]};}var _0x2d92ac=(_0x3d4cd4,_0x38ab59,_0x407f7e,_0x34d866)=>{const _0xbc5af2=_0x72f170;for(var _0x4624f3=_0x38ab59,_0x26f934=_0x3d4cd4[_0xbc5af2(0xbe)]-0x1,_0x5d9ff4;_0x26f934>=0x0;_0x26f934--)(_0x5d9ff4=_0x3d4cd4[_0x26f934])&&(_0x4624f3=_0x5d9ff4(_0x4624f3)||_0x4624f3);return _0x4624f3;},_0x3d5183=(_0x4c429b,_0x431fdc)=>(_0x4bd2ee,_0x2cfc9c)=>_0x431fdc(_0x4bd2ee,_0x2cfc9c,_0x4c429b);const _0x4d10b3=_0x72f170(0x241),_0x46ffdc=0x7d0;var _0x3a3bdf=(_0x200754=>(_0x200754[_0x72f170(0x26b)]='not_collab',_0x200754[_0x72f170(0x151)]=_0x72f170(0x15e),_0x200754[_0x72f170(0x409)]=_0x72f170(0x289),_0x200754[_0x72f170(0x41b)]=_0x72f170(0x28a),_0x200754[_0x72f170(0x108)]=_0x72f170(0x2a5),_0x200754['FETCH_MISS']='fetch_missing',_0x200754[_0x72f170(0x296)]=_0x72f170(0x319),_0x200754['OFFLINE']=_0x72f170(0x2a7),_0x200754))(_0x3a3bdf||{});class _0x39adef{constructor(_0x32efba,_0x5b7987,_0x5eec45,_0x19be7f,_0x2dd77b,_0x5423,_0x4f759b,_0x3f9539,_0x1865ef){const _0x2d9ed1=_0x72f170;_0x51e1d8(this,'_awaitingChangeset',null),_0x51e1d8(this,_0x2d9ed1(0x324),[]),(this[_0x2d9ed1(0x17d)]=_0x32efba,this[_0x2d9ed1(0x418)]=_0x5b7987,this['_handler']=_0x2dd77b,this[_0x2d9ed1(0x219)]=_0x5423,this['_undoRedoService']=_0x4f759b,this[_0x2d9ed1(0x376)]=_0x3f9539,this['_localCacheService']=_0x1865ef,this[_0x2d9ed1(0x234)]=_0x5eec45,this[_0x2d9ed1(0x324)]=_0x19be7f);}[_0x72f170(0x279)](_0x4b109b){const _0x443e8e=_0x72f170,_0x59bbef=this['_revisionService'][_0x443e8e(0x35d)](this['unitID']);return _0x4b109b[_0x443e8e(0x37d)]>_0x59bbef+0x1?(this[_0x443e8e(0x329)][_0x443e8e(0x1db)]({'from':_0x59bbef,'to':_0x4b109b[_0x443e8e(0x37d)]-0x1}),!0x0):!0x1;}[_0x72f170(0x428)](_0x4c9a56){const _0x5c6134=_0x72f170;this[_0x5c6134(0x24e)]['transformUndoRedo'](this[_0x5c6134(0x17d)],_0x4c9a56);}[_0x72f170(0x23c)](_0x25a901){const _0x2285f1=_0x72f170;var _0x271fd9,_0x5ce0c3;(_0x5ce0c3=(_0x271fd9=this[_0x2285f1(0x329)])[_0x2285f1(0x16d)])==null||_0x5ce0c3[_0x2285f1(0x3a3)](_0x271fd9,_0x25a901);}[_0x72f170(0x30d)](_0x21e8f3){const _0x4f7a8d=_0x72f170;var _0x878b4b,_0x5c392a;return(_0x5c392a=(_0x878b4b=this[_0x4f7a8d(0x329)])[_0x4f7a8d(0x36a)])==null?void 0x0:_0x5c392a[_0x4f7a8d(0x3a3)](_0x878b4b,_0x21e8f3);}['_transformRemoteChangesetByIMECache'](_0x360590){const _0x15beb1=_0x72f170;var _0x55740f,_0x6c45a8,_0x5507e1;return(_0x5507e1=(_0x6c45a8=(_0x55740f=this[_0x15beb1(0x329)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x6c45a8[_0x15beb1(0x3a3)](_0x55740f,_0x360590))!=null?_0x5507e1:_0x360590;}[_0x72f170(0x1ae)](_0x9983e8){const _0x2e1551=_0x72f170;var _0x4cbfde,_0xe7ab24;if(this[_0x2e1551(0x418)]===_0x2b3b4b[_0x2e1551(0x2f7)]){const {unitID:_0x3ba728,mutations:_0x3e94e6,memberID:_0x4adf76}=_0x9983e8,_0xd7c299=_0x3e94e6[0x0][_0x2e1551(0x197)][_0x2e1551(0x113)];Array[_0x2e1551(0x22e)](_0xd7c299)&&_0xd7c299[_0x2e1551(0xbe)]>0x0&&((_0xe7ab24=(_0x4cbfde=this[_0x2e1551(0x329)])[_0x2e1551(0x2f1)])==null||_0xe7ab24[_0x2e1551(0x3a3)](_0x4cbfde,{'unitID':_0x3ba728,'memberID':_0x4adf76,'textRanges':_0xd7c299}));}}[_0x72f170(0x203)](){const _0x2c6331=_0x72f170;this['_localCacheService']['updateOfflineData'](this['unitID'],this[_0x2c6331(0x418)],this[_0x2c6331(0x234)],this[_0x2c6331(0x324)]);}['_getCurrentRevision'](){const _0x294ee6=_0x72f170;return this[_0x294ee6(0x376)][_0x294ee6(0x35d)](this[_0x294ee6(0x17d)]);}['_incrementRevisionNumber'](){const _0x486c59=_0x72f170;this[_0x486c59(0x376)][_0x486c59(0x175)](this[_0x486c59(0x17d)]);}[_0x72f170(0x239)](_0x573861){const _0x484737=_0x72f170;var _0x4cf557;const _0x378ece=this[_0x484737(0x142)](_0x573861),_0x154020=_0x1b3401['sequenceExecute'](_0x378ece['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x154020[_0x484737(0x21c)])throw _0x154020[_0x484737(0x2e6)]instanceof Error?_0x154020[_0x484737(0x2e6)]:new Error((_0x4cf557=_0x154020[_0x484737(0x2e6)])!=null?_0x4cf557:_0x484737(0x2e7));this[_0x484737(0x30d)](_0x378ece),this[_0x484737(0x428)](_0x573861),this['_transformSelections'](_0x378ece),this[_0x484737(0x1ae)](_0x378ece),this[_0x484737(0x349)]();}}let _0x1c5522=class extends _0x39adef{constructor(_0x5269ca,_0x4e7352,_0x3ef82e,_0x4ce20b,_0x405efe,_0x6cd5df,_0x4a0b37,_0x13b6dd,_0x532a58){super(_0x5269ca,_0x4e7352,null,[],_0x3ef82e,_0x13b6dd,_0x4a0b37,_0x4ce20b,_0x405efe),_0x51e1d8(this,'status','synced'),(this['_injector']=_0x6cd5df,this['_logService']=_0x532a58);}[_0x72f170(0x31d)](_0x2749b1){const _0x37b85f=_0x72f170,_0x2c2df3=this['_injector'][_0x37b85f(0x275)](_0x20573d,this[_0x37b85f(0x17d)],this['type'],[_0x2749b1],this[_0x37b85f(0x329)]);return _0x2c2df3[_0x37b85f(0x3d2)](),_0x2c2df3[_0x37b85f(0x203)](),_0x2c2df3;}[_0x72f170(0x2e9)](_0x13a1c1){const _0x340642=_0x72f170;if(this[_0x340642(0x279)](_0x13a1c1))return this['_injector'][_0x340642(0x275)](_0x6d27fb,this[_0x340642(0x17d)],this[_0x340642(0x418)],null,[],null,[_0x13a1c1],this[_0x340642(0x329)]);try{return this[_0x340642(0x239)](_0x13a1c1),this;}catch(_0x28c48b){return this[_0x340642(0x1a6)]['error'](_0x340642(0x237),_0x28c48b),this;}}[_0x72f170(0x40b)](){const _0x38f3ee=_0x72f170;throw new Error(_0x38f3ee(0x1fa));}['onRemoteRej'](){const _0x1d145a=_0x72f170;throw new Error(_0x1d145a(0x17c));}[_0x72f170(0x297)](){const _0x4f36b1=_0x72f170;return this[_0x4f36b1(0x397)][_0x4f36b1(0x275)](_0xb2d7cf,this['unitID'],this[_0x4f36b1(0x418)],null,[],this[_0x4f36b1(0x329)]);}[_0x72f170(0x361)](){return this;}[_0x72f170(0x2bf)](){const _0x3a60b1=_0x72f170;throw new Error(_0x3a60b1(0x140));}};_0x1c5522=_0x2d92ac([_0x3d5183(0x3,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695[_0x72f170(0x31f)])),_0x3d5183(0x4,_0x5c7b32['Inject'](_0x588091[_0x72f170(0x3a7)])),_0x3d5183(0x5,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32[_0x72f170(0x425)])),_0x3d5183(0x6,_0x1b3401['IUndoRedoService']),_0x3d5183(0x7,_0x1b3401[_0x72f170(0x2cb)]),_0x3d5183(0x8,_0x1b3401[_0x72f170(0x29c)])],_0x1c5522);let _0x20573d=class extends _0x39adef{constructor(_0x12d70f,_0x55d86e,_0x31ec75,_0x46a44c,_0x33813f,_0x241b05,_0x346e00,_0x14d53d,_0xe319ae,_0x339a23,_0x2cc9dd,_0x2f2b28,_0x54ab74,_0x5f4eb5){const _0x1b3b8c=_0x72f170;super(_0x12d70f,_0x55d86e,null,_0x31ec75,_0x46a44c,_0x339a23,_0x5f4eb5,_0x241b05,_0x346e00),_0x51e1d8(this,'status',_0x1b3b8c(0x289)),_0x51e1d8(this,_0x1b3b8c(0xc2),null),_0x51e1d8(this,_0x1b3b8c(0x1d0),null),(this['_injector']=_0x33813f,this[_0x1b3b8c(0x23f)]=_0x14d53d,this[_0x1b3b8c(0x1a6)]=_0xe319ae,this[_0x1b3b8c(0x1a2)]=_0x2cc9dd,this[_0x1b3b8c(0x3f8)]=_0x2f2b28,this['_univerInstanceService']=_0x54ab74);}[_0x72f170(0x31d)](_0x3885f6){const _0x53cfd2=_0x72f170;return this[_0x53cfd2(0x324)][_0x53cfd2(0x2c7)](_0x3885f6),this[_0x53cfd2(0x203)](),this;}[_0x72f170(0x2e9)](_0x5089e8){const _0x4cc57a=_0x72f170;if(this['_checkMissing'](_0x5089e8))return this['_clearScheduledTask'](),this[_0x4cc57a(0x397)][_0x4cc57a(0x275)](_0x6d27fb,this[_0x4cc57a(0x17d)],this['type'],null,this[_0x4cc57a(0x324)],null,[_0x5089e8],this['_handler']);try{const _0x3cfeb5=this[_0x4cc57a(0x3f8)][_0x4cc57a(0x132)](_0x5089e8,this[_0x4cc57a(0x324)]);if(_0x30a695[_0x4cc57a(0x2ab)](_0x3cfeb5)){const {c1Prime:_0x2f037d,m2Prime:_0x25a98e}=_0x3cfeb5;this[_0x4cc57a(0x239)](_0x2f037d);const _0x1fe1f2=this[_0x4cc57a(0x397)]['createInstance'](_0x20573d,this[_0x4cc57a(0x17d)],this[_0x4cc57a(0x418)],_0x25a98e,this['_handler']);return this[_0x4cc57a(0x176)](),_0x1fe1f2['_schedule'](this['_scheduleTimestamp']?Math[_0x4cc57a(0x383)](0x0,new Date()[_0x4cc57a(0x368)]()-this[_0x4cc57a(0xc2)]):this[_0x4cc57a(0x3b3)]()),_0x1fe1f2;}throw _0x3cfeb5[_0x4cc57a(0x2e6)];}catch(_0x37d1fc){return this[_0x4cc57a(0x1a6)][_0x4cc57a(0x2e6)](_0x37d1fc),this['_onConflict']();}}[_0x72f170(0x40b)](){const _0x3939b4=_0x72f170;throw new Error(_0x3939b4(0x155));}['onRemoteRej'](){const _0x280541=_0x72f170;throw new Error(_0x280541(0x41d));}[_0x72f170(0x297)](){const _0x54e17f=_0x72f170;return this[_0x54e17f(0x176)](),this[_0x54e17f(0x397)][_0x54e17f(0x275)](_0xb2d7cf,this[_0x54e17f(0x17d)],this[_0x54e17f(0x418)],null,this['_pendingMutations'],this['_handler']);}[_0x72f170(0x361)](){return this;}['_schedule'](_0x55c264){const _0x3e9e0c=_0x72f170;_0x55c264=_0x55c264!=null?_0x55c264:this[_0x3e9e0c(0x3b3)](),this['_scheduleTimestamp']=new Date()[_0x3e9e0c(0x368)](),this[_0x3e9e0c(0x1d0)]=setTimeout(()=>{const _0x339e34=_0x3e9e0c;this['_clearScheduledTask']();let _0x229728=null;switch(this[_0x339e34(0x418)]){case _0x2b3b4b[_0x339e34(0x137)]:{_0x229728=_0x1ef1f3(this['_pendingMutations'],this[_0x339e34(0x17d)],this[_0x339e34(0x278)],this[_0x339e34(0x376)],this['_memberService']);break;}case _0x2b3b4b[_0x339e34(0x2f7)]:{_0x229728=_0x191741(this['_pendingMutations'],this[_0x339e34(0x17d)],this[_0x339e34(0x278)],this[_0x339e34(0x376)],this['_memberService']);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x339e34(0x418)]+'\x20in\x20_schedule.');}const {changeset:_0x4c8f0f,pendingMutations:_0x426877}=_0x229728;this[_0x339e34(0x329)][_0x339e34(0x1c3)](_0x4c8f0f);const _0xf82303=_0x426877[_0x339e34(0xbe)]?this[_0x339e34(0x397)]['createInstance'](_0xcf58a3,this[_0x339e34(0x17d)],this['type'],_0x4c8f0f,_0x426877,this[_0x339e34(0x329)]):this['_injector']['createInstance'](_0x1f25e3,this[_0x339e34(0x17d)],this['type'],_0x4c8f0f,this[_0x339e34(0x329)]);_0xf82303[_0x339e34(0x203)](),this[_0x339e34(0x329)][_0x339e34(0x267)](this,_0xf82303);},_0x55c264);}[_0x72f170(0x3b3)](){var _0x171563;return(_0x171563=this['_configService']['getConfig'](_0x4d10b3))!=null?_0x171563:_0x46ffdc;}[_0x72f170(0x2bf)](){const _0x2109b3=_0x72f170;throw new Error(_0x2109b3(0x3ac));}[_0x72f170(0x176)](){const _0x217640=_0x72f170;this[_0x217640(0x1d0)]!=null&&(clearTimeout(this[_0x217640(0x1d0)]),this[_0x217640(0x1d0)]=null);}[_0x72f170(0xbd)](){const _0x3a00bf=_0x72f170;return this[_0x3a00bf(0x176)](),this[_0x3a00bf(0x397)][_0x3a00bf(0x275)](_0x40fd05,this['unitID'],this[_0x3a00bf(0x418)],null,this[_0x3a00bf(0x324)],this['_handler']);}};_0x20573d=_0x2d92ac([_0x3d5183(0x4,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32[_0x72f170(0x425)])),_0x3d5183(0x5,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695[_0x72f170(0x31f)])),_0x3d5183(0x6,_0x5c7b32[_0x72f170(0x3c0)](_0x588091[_0x72f170(0x3a7)])),_0x3d5183(0x7,_0x5c7b32['Inject'](_0x3f8747)),_0x3d5183(0x8,_0x1b3401[_0x72f170(0x29c)]),_0x3d5183(0x9,_0x1b3401['ICommandService']),_0x3d5183(0xa,_0x1b3401[_0x72f170(0x1e4)]),_0x3d5183(0xb,_0x30a695['ITransformService']),_0x3d5183(0xc,_0x1b3401['IUniverInstanceService']),_0x3d5183(0xd,_0x1b3401['IUndoRedoService'])],_0x20573d);let _0x1f25e3=class extends _0x39adef{constructor(_0x16fd73,_0x3769ad,_0x5b3933,_0x18010c,_0x410b8e,_0x5cac88,_0x21eaeb,_0x3ffafa,_0x89fc22,_0x4e9663,_0x186c25){const _0x51f32e=_0x72f170;super(_0x16fd73,_0x3769ad,_0x5b3933,[],_0x18010c,_0x3ffafa,_0x186c25,_0x5cac88,_0x21eaeb),_0x51e1d8(this,_0x51f32e(0x38e),_0x51f32e(0x28a)),(this[_0x51f32e(0x397)]=_0x410b8e,this[_0x51f32e(0x1a6)]=_0x89fc22,this[_0x51f32e(0x3f8)]=_0x4e9663);}['appendMutation'](_0x22ad00){const _0x2632c9=_0x72f170,_0x233415=this[_0x2632c9(0x397)][_0x2632c9(0x275)](_0xcf58a3,this[_0x2632c9(0x17d)],this[_0x2632c9(0x418)],this['_awaitingChangeset'],[_0x22ad00],this['_handler']);return _0x233415['_updateLocalCache'](),_0x233415;}[_0x72f170(0x2e9)](_0x5f4ba4){const _0x545fbb=_0x72f170;if(this[_0x545fbb(0x279)](_0x5f4ba4))return this[_0x545fbb(0x397)]['createInstance'](_0x6d27fb,this[_0x545fbb(0x17d)],this[_0x545fbb(0x418)],this[_0x545fbb(0x234)],[],null,[_0x5f4ba4],this['_handler']);try{const _0x185bee=this['_transformService'][_0x545fbb(0x1e5)]([_0x5f4ba4],[this['_awaitingChangeset']],!0x1);if(_0x30a695[_0x545fbb(0x3e6)](_0x185bee)){const {c1Prime:_0xfdf17e,c2Prime:_0x179014}=_0x185bee;this['_executeRemoteChangeset'](_0xfdf17e[0x0]),_0x179014[0x0][_0x545fbb(0x16b)]=this['_getCurrentRevision']();const _0x1ddd66=this[_0x545fbb(0x397)][_0x545fbb(0x275)](_0x1f25e3,this[_0x545fbb(0x17d)],this[_0x545fbb(0x418)],_0x179014[0x0],this[_0x545fbb(0x329)]);return _0x1ddd66[_0x545fbb(0x203)](),_0x1ddd66;}return this[_0x545fbb(0xbd)]();}catch(_0x1b5b3a){return this['_logService'][_0x545fbb(0x2e6)](_0x1b5b3a),this[_0x545fbb(0xbd)]();}}[_0x72f170(0x40b)](_0xa10605){const _0x3a530d=_0x72f170,_0x1e3e8a=this['_revisionService']['getCurrentRevForDocument'](this[_0x3a530d(0x17d)]);if(_0xa10605['revision']<_0x1e3e8a-0x1)return this;if(this[_0x3a530d(0x279)](_0xa10605))return this['_injector'][_0x3a530d(0x275)](_0x6d27fb,this['unitID'],this['type'],null,[],this['_awaitingChangeset'],[],this[_0x3a530d(0x329)]);this[_0x3a530d(0x349)]();const _0x47efee=this[_0x3a530d(0x397)][_0x3a530d(0x275)](_0x1c5522,this['unitID'],this[_0x3a530d(0x418)],this['_handler']);return _0x47efee[_0x3a530d(0x203)](),_0x47efee;}[_0x72f170(0x1be)](){const _0x3dc891=_0x72f170;return this[_0x3dc891(0xbd)]();}['toggleOffline'](){const _0x39ecad=_0x72f170;return this[_0x39ecad(0x397)][_0x39ecad(0x275)](_0xb2d7cf,this[_0x39ecad(0x17d)],this[_0x39ecad(0x418)],this['_awaitingChangeset'],[],this[_0x39ecad(0x329)]);}[_0x72f170(0x361)](){return this;}[_0x72f170(0x2bf)](){const _0x567ad0=_0x72f170;this[_0x567ad0(0x329)][_0x567ad0(0x1c3)](this['_awaitingChangeset']);}['_onConflict'](){const _0x1d1eca=_0x72f170;return this[_0x1d1eca(0x397)][_0x1d1eca(0x275)](_0x40fd05,this['unitID'],this[_0x1d1eca(0x418)],this[_0x1d1eca(0x234)],[],this[_0x1d1eca(0x329)]);}};_0x1f25e3=_0x2d92ac([_0x3d5183(0x4,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32['Injector'])),_0x3d5183(0x5,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695[_0x72f170(0x31f)])),_0x3d5183(0x6,_0x5c7b32[_0x72f170(0x3c0)](_0x588091[_0x72f170(0x3a7)])),_0x3d5183(0x7,_0x1b3401[_0x72f170(0x2cb)]),_0x3d5183(0x8,_0x1b3401[_0x72f170(0x29c)]),_0x3d5183(0x9,_0x30a695['ITransformService']),_0x3d5183(0xa,_0x1b3401['IUndoRedoService'])],_0x1f25e3);let _0xcf58a3=class extends _0x39adef{constructor(_0x146bf6,_0x599135,_0x65f35,_0x3e7de7,_0x47da92,_0x2f3eb2,_0x34b7e2,_0x3280f9,_0x42a1b5,_0x1af030,_0xcf0ac5,_0x87f7f8){const _0x47d76c=_0x72f170;super(_0x146bf6,_0x599135,_0x65f35,_0x3e7de7,_0x47da92,_0x42a1b5,_0x87f7f8,_0x34b7e2,_0x3280f9),_0x51e1d8(this,'status',_0x47d76c(0x2a5)),(this['_injector']=_0x2f3eb2,this['_logService']=_0x1af030,this[_0x47d76c(0x3f8)]=_0xcf0ac5);}[_0x72f170(0x31d)](_0x2f794b){const _0x163ec9=_0x72f170;return this['_pendingMutations'][_0x163ec9(0x2c7)](_0x2f794b),this;}['onRemoteChangeset'](_0x4cc668){const _0x37bdce=_0x72f170;if(this[_0x37bdce(0x279)](_0x4cc668))return this['_injector']['createInstance'](_0x6d27fb,this[_0x37bdce(0x17d)],this[_0x37bdce(0x418)],this[_0x37bdce(0x234)],this[_0x37bdce(0x324)],null,[_0x4cc668],this[_0x37bdce(0x329)]);try{const _0xa40576=this['_transformService'][_0x37bdce(0x1e5)]([_0x4cc668],[this[_0x37bdce(0x234)]],!0x1);if(_0x30a695[_0x37bdce(0x3e6)](_0xa40576)){const {c1Prime:_0x6c141c,c2Prime:_0x26fca3}=_0xa40576,_0x23d085=this[_0x37bdce(0x3f8)][_0x37bdce(0x132)](_0x6c141c[0x0],this[_0x37bdce(0x324)]);if(_0x30a695['isTransformMutationsWithChangesetSuccess'](_0x23d085)){const {c1Prime:_0x36a98f,m2Prime:_0x2ab8fd}=_0x23d085;return this[_0x37bdce(0x239)](_0x36a98f),_0x26fca3[0x0][_0x37bdce(0x16b)]=this[_0x37bdce(0x1b6)](),this[_0x37bdce(0x397)][_0x37bdce(0x275)](_0xcf58a3,this['unitID'],this[_0x37bdce(0x418)],_0x26fca3[0x0],_0x2ab8fd,this[_0x37bdce(0x329)]);}throw _0x23d085[_0x37bdce(0x2e6)];}throw _0xa40576['error'];}catch(_0x1146b7){return this[_0x37bdce(0x1a6)]['error'](_0x1146b7),this[_0x37bdce(0xbd)]();}}['onRemoteAck'](_0x5791de){const _0xf71190=_0x72f170;if(this['_checkMissing'](_0x5791de))return this[_0xf71190(0x397)][_0xf71190(0x275)](_0x6d27fb,this[_0xf71190(0x17d)],this[_0xf71190(0x418)],null,this[_0xf71190(0x324)],this[_0xf71190(0x234)],[],this[_0xf71190(0x329)]);this[_0xf71190(0x349)]();const _0x18ca09=this['_injector'][_0xf71190(0x275)](_0x20573d,this[_0xf71190(0x17d)],this['type'],this['_pendingMutations'],this[_0xf71190(0x329)]);return _0x18ca09[_0xf71190(0x3d2)](),_0x18ca09[_0xf71190(0x203)](),_0x18ca09;}['onRemoteRej'](){const _0x2eedb0=_0x72f170;return this[_0x2eedb0(0xbd)]();}[_0x72f170(0x297)](){const _0x4774ea=_0x72f170;return this[_0x4774ea(0x397)][_0x4774ea(0x275)](_0xb2d7cf,this[_0x4774ea(0x17d)],this[_0x4774ea(0x418)],this['_awaitingChangeset'],this[_0x4774ea(0x324)],this[_0x4774ea(0x329)]);}[_0x72f170(0x361)](){return this;}[_0x72f170(0x2bf)](){const _0x5c808b=_0x72f170;this['_handler'][_0x5c808b(0x1c3)](this[_0x5c808b(0x234)]);}[_0x72f170(0xbd)](){const _0x2b83a5=_0x72f170;return this[_0x2b83a5(0x397)][_0x2b83a5(0x275)](_0x40fd05,this[_0x2b83a5(0x17d)],this[_0x2b83a5(0x418)],null,this['_pendingMutations'],this['_handler']);}};_0xcf58a3=_0x2d92ac([_0x3d5183(0x5,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32['Injector'])),_0x3d5183(0x6,_0x5c7b32['Inject'](_0x30a695[_0x72f170(0x31f)])),_0x3d5183(0x7,_0x5c7b32['Inject'](_0x588091[_0x72f170(0x3a7)])),_0x3d5183(0x8,_0x1b3401[_0x72f170(0x2cb)]),_0x3d5183(0x9,_0x1b3401[_0x72f170(0x29c)]),_0x3d5183(0xa,_0x30a695[_0x72f170(0x2dc)]),_0x3d5183(0xb,_0x1b3401[_0x72f170(0x3f5)])],_0xcf58a3);let _0x40fd05=class extends _0x39adef{constructor(_0x3de21c,_0x24d5ba,_0x13a103,_0xa528c4,_0x379f56,_0x4461ab,_0x17fc73,_0x2c3ca1,_0x588632,_0x5e7036,_0x278426,_0x370688){const _0x543c99=_0x72f170;super(_0x3de21c,_0x24d5ba,_0x13a103,_0xa528c4,_0x379f56,_0x17fc73,_0x2c3ca1,_0x5e7036,_0x588632),_0x51e1d8(this,_0x543c99(0x38e),_0x543c99(0x319)),(this[_0x543c99(0x34e)]=_0x4461ab,this['_localeService']=_0x278426,this['_notificationService']=_0x370688,this[_0x543c99(0x1fb)](),this['_clearLocalCache'](),this[_0x543c99(0x10e)]());}[_0x72f170(0x31d)](){return this;}[_0x72f170(0x2e9)](){return this;}[_0x72f170(0x40b)](){return this;}[_0x72f170(0x1be)](){return this;}[_0x72f170(0x297)](){return this;}[_0x72f170(0x361)](){return this;}[_0x72f170(0x2bf)](){const _0x377304=_0x72f170;throw new Error(_0x377304(0x390));}[_0x72f170(0x29b)](){const _0x47cd9a=_0x72f170;this['_localCacheService'][_0x47cd9a(0x1a7)](this[_0x47cd9a(0x17d)],this['type'],null,[]);}['_showConflictNotification'](){const _0x1fb0ab=_0x72f170;this['_notificationService'][_0x1fb0ab(0x338)]({'title':this['_localeService']['t'](_0x1fb0ab(0x38a)),'content':this[_0x1fb0ab(0x17e)]['t'](_0x1fb0ab(0xfa)),'type':_0x1fb0ab(0x2e6),'duration':0x0});}[_0x72f170(0x10e)](){const _0x238370=_0x72f170;this['_univerPermissionService']['setEditable'](this[_0x238370(0x17d)],!0x1);}};_0x40fd05=_0x2d92ac([_0x3d5183(0x5,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401[_0x72f170(0x29e)])),_0x3d5183(0x6,_0x1b3401[_0x72f170(0x2cb)]),_0x3d5183(0x7,_0x1b3401[_0x72f170(0x3f5)]),_0x3d5183(0x8,_0x5c7b32[_0x72f170(0x3c0)](_0x588091['LocalCacheService'])),_0x3d5183(0x9,_0x5c7b32['Inject'](_0x30a695['RevisionService'])),_0x3d5183(0xa,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401[_0x72f170(0x330)])),_0x3d5183(0xb,_0x47170c[_0x72f170(0x20a)])],_0x40fd05);let _0xb2d7cf=class extends _0x39adef{constructor(_0x5e1586,_0x29663f,_0x306f3b,_0xfb13f3,_0x259ec9,_0x5ac1d9,_0x1d97a6,_0x4c7278,_0x502dd1,_0x2efa39){const _0xb4b272=_0x72f170;super(_0x5e1586,_0x29663f,_0x306f3b,_0xfb13f3,_0x259ec9,_0x502dd1,_0x2efa39,_0x1d97a6,_0x4c7278),_0x51e1d8(this,_0xb4b272(0x38e),_0xb4b272(0x2a7)),this[_0xb4b272(0x397)]=_0x5ac1d9;}[_0x72f170(0x31d)](_0x177f24){const _0x119e6=_0x72f170;return this[_0x119e6(0x324)][_0x119e6(0x2c7)](_0x177f24),this['_updateLocalCache'](),this;}[_0x72f170(0x2e9)](_0x3a7a2e){const _0x157c49=_0x72f170;throw new Error(_0x157c49(0x42a));}[_0x72f170(0x40b)](){const _0x4bf2a7=_0x72f170;throw new Error(_0x4bf2a7(0x3f6));}[_0x72f170(0x1be)](){const _0x51a9f9=_0x72f170;throw new Error(_0x51a9f9(0x360));}[_0x72f170(0x297)](){return this;}[_0x72f170(0x361)](){const _0x1d3993=_0x72f170,{_injector:_0x117377,_pendingMutations:_0x391b5c,_awaitingChangeset:_0x1e80b8,unitID:_0x1d2fb6,_handler:_0x54cc8f,type:_0x25e1cf}=this,_0x144aee=_0x534446(_0x117377,_0x1d2fb6,_0x25e1cf,_0x1e80b8,_0x391b5c,_0x54cc8f);return _0x144aee instanceof _0x20573d?_0x144aee[_0x1d3993(0x3d2)]():(_0x144aee instanceof _0xcf58a3||_0x144aee instanceof _0x1f25e3)&&_0x144aee[_0x1d3993(0x2bf)](),_0x144aee;}[_0x72f170(0x2bf)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0xb2d7cf=_0x2d92ac([_0x3d5183(0x5,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32['Injector'])),_0x3d5183(0x6,_0x5c7b32['Inject'](_0x30a695[_0x72f170(0x31f)])),_0x3d5183(0x7,_0x5c7b32[_0x72f170(0x3c0)](_0x588091[_0x72f170(0x3a7)])),_0x3d5183(0x8,_0x1b3401[_0x72f170(0x2cb)]),_0x3d5183(0x9,_0x1b3401[_0x72f170(0x3f5)])],_0xb2d7cf);let _0x6d27fb=class extends _0x39adef{constructor(_0x3e0020,_0x3b5d0b,_0x449409,_0x73abe4,_0x53079e,_0x240f12,_0x226e53,_0x19ca40,_0x4a72f0,_0x541cd6,_0xb6c0c2,_0x26c717,_0x14d6f5,_0x3eda4d){const _0x113762=_0x72f170;super(_0x3e0020,_0x3b5d0b,_0x449409,_0x73abe4,_0x226e53,_0x26c717,_0x14d6f5,_0x4a72f0,_0x541cd6),_0x51e1d8(this,_0x113762(0x38e),_0x113762(0x1a0)),(this['_acknowledgedAwaitingChangeset']=_0x53079e,this[_0x113762(0x2d6)]=_0x240f12,this[_0x113762(0x397)]=_0x19ca40,this['_logService']=_0xb6c0c2,this[_0x113762(0x3f8)]=_0x3eda4d);}[_0x72f170(0x3e7)](_0x81ddf1){const _0x24feec=_0x72f170;try{const _0x1b1b4a=[..._0x81ddf1,...this[_0x24feec(0x2d6)]],_0x2464d4=[this[_0x24feec(0x234)]||this[_0x24feec(0x1f9)]][_0x24feec(0x40a)](_0x4b0c8f=>!!_0x4b0c8f);let _0x32a775,_0x967f45;if(_0x2464d4[_0x24feec(0xbe)]){const _0x48765c=this[_0x24feec(0x3f8)][_0x24feec(0x1e5)](_0x1b1b4a,_0x2464d4,!0x1);if(!_0x30a695['isTransformChangesetsSuccess'](_0x48765c))throw _0x48765c[_0x24feec(0x2e6)];_0x32a775=_0x48765c[_0x24feec(0xf1)],_0x967f45=_0x48765c['c2Prime'];}else _0x32a775=_0x1b1b4a,_0x967f45=[];let _0xdd09d3=this[_0x24feec(0x324)];_0x32a775[_0x24feec(0x3bf)](_0x436bb1=>{const _0x2799ef=_0x24feec;let _0x234175;if(_0xdd09d3[_0x2799ef(0xbe)]){const _0x4c9cbb=this[_0x2799ef(0x3f8)][_0x2799ef(0x132)](_0x436bb1,_0xdd09d3);if(!_0x30a695['isTransformMutationsWithChangesetSuccess'](_0x4c9cbb))throw _0x4c9cbb['error'];_0x234175=_0x4c9cbb[_0x2799ef(0xf1)],_0xdd09d3=_0x4c9cbb[_0x2799ef(0x268)];}else _0x234175=_0x436bb1;this[_0x2799ef(0x239)](_0x234175);}),this[_0x24feec(0x1f9)]&&this[_0x24feec(0x349)](),this['_awaitingChangeset']&&_0x967f45['length']&&(_0x967f45[0x0]['baseRev']=this[_0x24feec(0x1b6)]());let _0x48d612;if(this[_0x24feec(0x234)]&&_0xdd09d3[_0x24feec(0xbe)]!==0x0)_0x48d612=this[_0x24feec(0x397)][_0x24feec(0x275)](_0xcf58a3,this[_0x24feec(0x17d)],this[_0x24feec(0x418)],_0x967f45[0x0],_0xdd09d3,this['_handler']);else{if(this[_0x24feec(0x234)]&&_0xdd09d3[_0x24feec(0xbe)]===0x0)_0x967f45[0x0][_0x24feec(0x16b)]=this[_0x24feec(0x1b6)](),_0x48d612=this['_injector'][_0x24feec(0x275)](_0x1f25e3,this['unitID'],this['type'],_0x967f45[0x0],this[_0x24feec(0x329)]);else{if(_0xdd09d3[_0x24feec(0xbe)]!==0x0){const _0x25e412=this[_0x24feec(0x397)][_0x24feec(0x275)](_0x20573d,this['unitID'],this[_0x24feec(0x418)],_0xdd09d3,this['_handler']);_0x25e412[_0x24feec(0x3d2)](),_0x48d612=_0x25e412;}else _0x48d612=this[_0x24feec(0x397)]['createInstance'](_0x1c5522,this[_0x24feec(0x17d)],this[_0x24feec(0x418)],this[_0x24feec(0x329)]);}}return _0x48d612[_0x24feec(0x203)](),_0x48d612;}catch(_0x351f7b){return this[_0x24feec(0x1a6)][_0x24feec(0x2e6)](_0x24feec(0x429),'failed\x20to\x20apply\x20missed\x20changesets!',_0x351f7b),this['_injector'][_0x24feec(0x275)](_0x40fd05,this[_0x24feec(0x17d)],this[_0x24feec(0x418)],this[_0x24feec(0x234)],this[_0x24feec(0x324)],this[_0x24feec(0x329)]);}}[_0x72f170(0x2bf)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x72f170(0x31d)](_0x197e86){const _0x308688=_0x72f170;return this[_0x308688(0x324)]['push'](_0x197e86),this;}[_0x72f170(0x2e9)](_0x2a0ee6){const _0x2a0e72=_0x72f170;return this[_0x2a0e72(0x2d6)]['push'](_0x2a0ee6),this;}[_0x72f170(0x40b)](_0x1aa5f1){const _0x180e2c=_0x72f170;if(this[_0x180e2c(0x234)])return this['_acknowledgedAwaitingChangeset']=this['_awaitingChangeset'],this[_0x180e2c(0x234)]=null,this;throw new Error(_0x180e2c(0x399));}[_0x72f170(0x1be)](){return this['_onConflict']();}['toggleOffline'](){const _0x4fc46d=_0x72f170;return this[_0x4fc46d(0x397)]['createInstance'](_0xb2d7cf,this['unitID'],this[_0x4fc46d(0x418)],this[_0x4fc46d(0x234)],this[_0x4fc46d(0x324)],this[_0x4fc46d(0x329)]);}[_0x72f170(0x361)](){return this;}[_0x72f170(0xbd)](){const _0x234c8c=_0x72f170;return this[_0x234c8c(0x397)]['createInstance'](_0x40fd05,this['unitID'],this[_0x234c8c(0x418)],this[_0x234c8c(0x234)],this[_0x234c8c(0x324)],this[_0x234c8c(0x329)]);}};_0x6d27fb=_0x2d92ac([_0x3d5183(0x7,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32['Injector'])),_0x3d5183(0x8,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695[_0x72f170(0x31f)])),_0x3d5183(0x9,_0x5c7b32['Inject'](_0x588091['LocalCacheService'])),_0x3d5183(0xa,_0x1b3401[_0x72f170(0x29c)]),_0x3d5183(0xb,_0x1b3401[_0x72f170(0x2cb)]),_0x3d5183(0xc,_0x1b3401['IUndoRedoService']),_0x3d5183(0xd,_0x30a695[_0x72f170(0x2dc)])],_0x6d27fb);function _0x534446(_0x2ed83a,_0x2252c2,_0x2aa654,_0x4c4e99,_0x42b8b5,_0x4b64b6){const _0x4a3523=_0x72f170;return _0x4c4e99&&_0x42b8b5['length']?_0x2ed83a[_0x4a3523(0x275)](_0xcf58a3,_0x2252c2,_0x2aa654,_0x4c4e99,_0x42b8b5,_0x4b64b6):_0x4c4e99?_0x2ed83a[_0x4a3523(0x275)](_0x1f25e3,_0x2252c2,_0x2aa654,_0x4c4e99,_0x4b64b6):_0x42b8b5[_0x4a3523(0xbe)]?_0x2ed83a[_0x4a3523(0x275)](_0x20573d,_0x2252c2,_0x2aa654,_0x42b8b5,_0x4b64b6):_0x2ed83a[_0x4a3523(0x275)](_0x1c5522,_0x2252c2,_0x2aa654,_0x4b64b6);}var _0x16deca=(_0x1091ac,_0x3fd7e6,_0x50fe27,_0x1a4afb)=>{const _0x2e3f2a=_0x72f170;for(var _0x279e3d=_0x3fd7e6,_0x2d14ab=_0x1091ac[_0x2e3f2a(0xbe)]-0x1,_0x54e97a;_0x2d14ab>=0x0;_0x2d14ab--)(_0x54e97a=_0x1091ac[_0x2d14ab])&&(_0x279e3d=_0x54e97a(_0x279e3d)||_0x279e3d);return _0x279e3d;},_0x2783dd=(_0x44bff3,_0x19e110)=>(_0x2350a4,_0xbcbca0)=>_0x19e110(_0x2350a4,_0xbcbca0,_0x44bff3);_0x588091['CollaborationController']=class extends _0x1b3401['RxDisposable']{constructor(_0x2eeb8d,_0x52890a,_0x3b5d8e){const _0x4ec36f=_0x72f170;super(),_0x51e1d8(this,_0x4ec36f(0x380),new Map()),_0x51e1d8(this,_0x4ec36f(0x2c2),new _0x414952[(_0x4ec36f(0x38b))]()),(this[_0x4ec36f(0x397)]=_0x2eeb8d,this['_collabSessionService']=_0x52890a,this[_0x4ec36f(0x278)]=_0x3b5d8e,this[_0x4ec36f(0x3b0)]());}[_0x72f170(0x10c)](){const _0x15f08d=_0x72f170;super['dispose'](),this[_0x15f08d(0x380)]['forEach'](_0x47bc6d=>_0x47bc6d[_0x15f08d(0x10c)]()),this[_0x15f08d(0x380)][_0x15f08d(0x315)]();}['getCollabEntity'](_0x4fea86){const _0x47e7e1=_0x72f170;var _0x452de9;return(_0x452de9=this['_entities'][_0x47e7e1(0x25f)](_0x4fea86))!=null?_0x452de9:null;}[_0x72f170(0x33d)](_0x351c83){const _0x2ba0e4=_0x72f170,_0x499bd9=this['getCollabEntity'](_0x351c83);return _0x499bd9?_0x414952['of'](_0x499bd9):this[_0x2ba0e4(0x2c2)]['pipe'](_0x3151c5[_0x2ba0e4(0x40a)](_0x1b6410=>_0x1b6410['unitID']===_0x351c83));}['_init'](){const _0x2d9d54=_0x72f170;this[_0x2d9d54(0x278)]['getTypeOfUnitAdded$'](_0x1b3401[_0x2d9d54(0x22d)][_0x2d9d54(0x137)])[_0x2d9d54(0x2ca)](_0x414952[_0x2d9d54(0x1b8)](this['dispose$']),_0x3151c5[_0x2d9d54(0xbb)](0x10))[_0x2d9d54(0x112)](async _0x14af1d=>{const _0x5879d8=_0x2d9d54,_0x3c27e1=_0x14af1d[_0x5879d8(0x33c)](),_0x3040aa=await this['_startCollaboration'](_0x3c27e1,_0x2b3b4b[_0x5879d8(0x137)]);this[_0x5879d8(0x380)][_0x5879d8(0x346)](_0x3c27e1,_0x3040aa);}),this[_0x2d9d54(0x278)][_0x2d9d54(0x291)](_0x1b3401[_0x2d9d54(0x22d)]['UNIVER_DOC'])['pipe'](_0x414952[_0x2d9d54(0x1b8)](this['dispose$']),_0x3151c5['delay'](0x10))['pipe'](_0x3151c5[_0x2d9d54(0x40a)](_0x5caa84=>!_0x5caa84[_0x2d9d54(0x33c)]()[_0x2d9d54(0x117)]('__')))[_0x2d9d54(0x112)](async _0x5471ea=>{const _0x274b16=_0x2d9d54,_0x3ca157=_0x5471ea[_0x274b16(0x33c)](),_0x4a0611=await this[_0x274b16(0x183)](_0x3ca157,_0x2b3b4b[_0x274b16(0x2f7)]);this[_0x274b16(0x380)][_0x274b16(0x346)](_0x3ca157,_0x4a0611);}),_0x414952[_0x2d9d54(0x2f3)](this['_univerInstanceService'][_0x2d9d54(0x27b)](_0x1b3401[_0x2d9d54(0x22d)]['UNIVER_SHEET']),this[_0x2d9d54(0x278)][_0x2d9d54(0x27b)](_0x1b3401[_0x2d9d54(0x22d)][_0x2d9d54(0x2f7)]))['pipe'](_0x414952[_0x2d9d54(0x1b8)](this[_0x2d9d54(0x3d9)]))['subscribe'](_0x4e25a7=>{const _0x450def=_0x2d9d54,_0x272b7c=_0x4e25a7[_0x450def(0x33c)](),_0xee9a65=this[_0x450def(0x380)]['get'](_0x272b7c);_0xee9a65&&(_0xee9a65[_0x450def(0x10c)](),this['_entities']['delete'](_0x272b7c));});}async[_0x72f170(0x183)](_0x54389e,_0x198a21){const _0x5c3871=_0x72f170,_0x222d03=await this['_collabSessionService']['requireSession'](_0x54389e),_0x7f49eb=this[_0x5c3871(0x397)]['createInstance'](this[_0x5c3871(0x3d1)](_0x198a21),_0x54389e,_0x198a21,_0x222d03);return await _0x7f49eb[_0x5c3871(0x16f)](),this[_0x5c3871(0x2c2)][_0x5c3871(0x3d6)](_0x7f49eb),_0x7f49eb;}[_0x72f170(0x3d1)](_0x3760f7){const _0x5f53aa=_0x72f170;switch(_0x3760f7){case _0x2b3b4b[_0x5f53aa(0x2f7)]:return _0x132eb1;case _0x2b3b4b[_0x5f53aa(0x137)]:return _0x519d58;default:throw new Error(_0x5f53aa(0x32d)+_0x3760f7);}}},_0x588091[_0x72f170(0x295)]=_0x16deca([_0x1b3401[_0x72f170(0x3e5)](_0x1b3401['LifecycleStages']['Starting'],_0x588091[_0x72f170(0x295)]),_0x2783dd(0x0,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32[_0x72f170(0x425)])),_0x2783dd(0x1,_0x5c7b32[_0x72f170(0x3c0)](_0x588091[_0x72f170(0x1d6)])),_0x2783dd(0x2,_0x1b3401[_0x72f170(0x335)])],_0x588091[_0x72f170(0x295)]);let _0x1c81d4=class extends _0x1b3401[_0x72f170(0x35c)]{constructor(_0x11f585,_0x3c1bff,_0x58f767,_0x560686,_0x16d060,_0x2e1941,_0x638466,_0x3e34f3,_0x3a898c,_0x358757,_0x45360b,_0x2172fa,_0x5d5204){const _0x5821ea=_0x72f170;super(),_0x51e1d8(this,_0x5821ea(0x24b),new _0x414952[(_0x5821ea(0x1e6))](null)),_0x51e1d8(this,_0x5821ea(0x283),this[_0x5821ea(0x24b)][_0x5821ea(0x348)]()),_0x51e1d8(this,_0x5821ea(0x3b6)),_0x51e1d8(this,_0x5821ea(0x25c),!0x1),_0x51e1d8(this,_0x5821ea(0x2ed),this[_0x5821ea(0x283)][_0x5821ea(0x2ca)](_0x3151c5[_0x5821ea(0x250)](_0x4c8aa5=>_0x4c8aa5?_0x4c8aa5[_0x5821ea(0x38e)]:_0x3a3bdf[_0x5821ea(0x255)]),_0x3151c5['shareReplay'](0x1))),_0x51e1d8(this,'_transitionLocked',!0x1),_0x51e1d8(this,'_remoteChangesetQueue',[]),(this[_0x5821ea(0x17d)]=_0x11f585,this[_0x5821ea(0x314)]=_0x3c1bff,this[_0x5821ea(0x374)]=_0x58f767,this[_0x5821ea(0x397)]=_0x560686,this[_0x5821ea(0x339)]=_0x16d060,this[_0x5821ea(0x34e)]=_0x2e1941,this[_0x5821ea(0x1d5)]=_0x638466,this[_0x5821ea(0x17e)]=_0x3e34f3,this[_0x5821ea(0x376)]=_0x3a898c,this[_0x5821ea(0x1a6)]=_0x358757,this[_0x5821ea(0x219)]=_0x45360b,this['_messageService']=_0x2172fa,this[_0x5821ea(0x39a)]=_0x5d5204);}get['state'](){return this['_state'];}async[_0x72f170(0x16f)](){const _0x42f025=_0x72f170;if(this[_0x42f025(0x3d8)])throw new Error(_0x42f025(0x14a));await this[_0x42f025(0x3b0)]();}[_0x72f170(0x3fe)](){const _0x3245e6=_0x72f170;return this[_0x3245e6(0x25c)]=!0x0,_0x1b3401['toDisposable'](()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x72f170(0x2c0)](_0x77274f){const _0x2a8fab=_0x72f170;this[_0x2a8fab(0x3b6)]=_0x77274f,this['_state$'][_0x2a8fab(0x3d6)](_0x77274f);}async['_init'](){const _0x5bbfc3=_0x72f170;var _0xb6fe43;return this[_0x5bbfc3(0x2c0)](await this[_0x5bbfc3(0x35e)]()),this[_0x5bbfc3(0x39a)]&&((_0xb6fe43=this[_0x5bbfc3(0x39a)])==null||_0xb6fe43['editingUnit'](this[_0x5bbfc3(0x17d)]),this[_0x5bbfc3(0xf8)](_0x1b3401[_0x5bbfc3(0x2ac)](this[_0x5bbfc3(0x39a)]['getUnitStatus$'](this[_0x5bbfc3(0x17d)])[_0x5bbfc3(0x112)](_0x40eb41=>{const _0x2f9bf4=_0x5bbfc3;this['_logService']['debug']('[CollaborationEntity]',_0x2f9bf4(0x2c4),_0x40eb41),_0x40eb41===_0x215e18[_0x2f9bf4(0x1e0)]?(this['_messageService'][_0x2f9bf4(0x338)]({'content':this[_0x2f9bf4(0x17e)]['t'](_0x2f9bf4(0x2e0)),'type':_0x350456[_0x2f9bf4(0x2a4)][_0x2f9bf4(0x347)]}),this[_0x2f9bf4(0x34e)][_0x2f9bf4(0x18c)](this['unitID'],!0x1)):this[_0x2f9bf4(0x34e)][_0x2f9bf4(0x18c)](this['unitID'],!0x0);})))),this[_0x5bbfc3(0xf8)](_0x1b3401['toDisposable'](this['_session'][_0x5bbfc3(0x395)][_0x5bbfc3(0x112)](_0x282a1c=>{const _0x2c6bcd=_0x5bbfc3;_0x282a1c===_0x4457b3[_0x2c6bcd(0x134)]?this[_0x2c6bcd(0x2c6)]():_0x282a1c===_0x4457b3['OFFLINE']&&this[_0x2c6bcd(0x198)]();}))),this[_0x5bbfc3(0xf8)](_0x1b3401[_0x5bbfc3(0x2ac)](this[_0x5bbfc3(0x374)][_0x5bbfc3(0x3ba)]['subscribe'](_0x10e1a3=>{const _0x20dded=_0x5bbfc3;try{const _0x5a9508=_0x10e1a3[_0x20dded(0xe8)];_0x5a9508===_0x30a695[_0x20dded(0x107)]['NEW_CHANGESETS']?this['_onRemoteChangeset'](_0x30a695[_0x20dded(0x156)](_0x10e1a3[_0x20dded(0x304)])):_0x5a9508===_0x30a695[_0x20dded(0x107)]['CHANGESET_ACK']?this[_0x20dded(0x36d)](_0x10e1a3[_0x20dded(0x304)]):_0x5a9508===_0x30a695[_0x20dded(0x107)][_0x20dded(0x3f9)]?this['_onRemoteRejected']():_0x5a9508===_0x30a695[_0x20dded(0x107)]['PSEUDO_FETCH_MISSING_RESULT']&&this[_0x20dded(0x163)](_0x10e1a3[_0x20dded(0x304)][_0x20dded(0x18d)]['map'](_0xa747d1=>_0x30a695[_0x20dded(0x156)](_0xa747d1)));}catch(_0x20640c){throw console['error']('Error\x20on\x20receiving\x20event',_0x20640c),_0x20640c;}}))),this[_0x5bbfc3(0x3b6)];}[_0x72f170(0x337)](){const _0x831a0f=_0x72f170;this[_0x831a0f(0x238)]=!0x1;}['_lockTransition'](){const _0x9cba95=_0x72f170;if(this[_0x9cba95(0x238)])throw new Error(_0x9cba95(0x3b9));this[_0x9cba95(0x238)]=!0x0;}['_onLocalMutation'](_0x40aa6a){const _0x5b6c38=_0x72f170;this['_lockTransition'](),this[_0x5b6c38(0x2c0)](this['_state'][_0x5b6c38(0x31d)](_0x40aa6a)),this[_0x5b6c38(0x337)]();}[_0x72f170(0x2f0)](_0x4e5f47){const _0x1ca754=_0x72f170;if(!(_0x4e5f47['revision']<=this[_0x1ca754(0x376)][_0x1ca754(0x35d)](this[_0x1ca754(0x17d)]))){if(this[_0x1ca754(0x25c)]){this[_0x1ca754(0x20f)]['push'](_0x4e5f47);return;}this[_0x1ca754(0xc7)](_0x4e5f47);}}[_0x72f170(0x398)](){const _0x403e14=_0x72f170;this[_0x403e14(0x20f)]['forEach'](_0x59c1bf=>this[_0x403e14(0xc7)](_0x59c1bf)),this['_remoteChangesetQueue']=[];}[_0x72f170(0xc7)](_0x3280c8){const _0x52fdc9=_0x72f170,_0x56cad5=this[_0x52fdc9(0x1d5)][_0x52fdc9(0x2e3)][_0x52fdc9(0xf6)](this[_0x52fdc9(0x1d5)]['interceptor'][_0x52fdc9(0x2c9)]()[_0x52fdc9(0x131)])(_0x3280c8[_0x52fdc9(0x228)],null)||_0x3280c8[_0x52fdc9(0x228)],_0x30e59d={..._0x3280c8,'mutations':_0x56cad5};this[_0x52fdc9(0x191)](),this[_0x52fdc9(0x2c0)](this[_0x52fdc9(0x3b6)][_0x52fdc9(0x2e9)](_0x30e59d)),this[_0x52fdc9(0x337)]();}['_onRemoteACK'](_0xf30ebd){const _0x1c21d1=_0x72f170;this[_0x1c21d1(0x191)](),this['_updateState'](this[_0x1c21d1(0x3b6)]['onRemoteAck'](_0xf30ebd)),this[_0x1c21d1(0x337)]();}[_0x72f170(0x3f1)](){const _0x5a4757=_0x72f170;this['_lockTransition'](),this[_0x5a4757(0x2c0)](this[_0x5a4757(0x3b6)][_0x5a4757(0x1be)]()),this[_0x5a4757(0x337)]();}[_0x72f170(0x163)](_0x4a3ff3){const _0x575dbc=_0x72f170;if(!(this['_state']instanceof _0x6d27fb))throw new TypeError(_0x575dbc(0x1b0));const _0x525419=_0x4a3ff3[_0x575dbc(0x250)](_0x5800e0=>{const _0xdbf39a=_0x575dbc,_0x4b4109=this[_0xdbf39a(0x1d5)][_0xdbf39a(0x2e3)]['fetchThroughInterceptors'](this[_0xdbf39a(0x1d5)][_0xdbf39a(0x2e3)][_0xdbf39a(0x2c9)]()[_0xdbf39a(0x131)])(_0x5800e0[_0xdbf39a(0x228)],null)||_0x5800e0[_0xdbf39a(0x228)];return{..._0x5800e0,'mutations':_0x4b4109};});this[_0x575dbc(0x191)](),this[_0x575dbc(0x2c0)](this[_0x575dbc(0x3b6)]['onMissedChangesetFetched'](_0x525419)),this['_unlockTransition']();}[_0x72f170(0x198)](){const _0x3ba7c7=_0x72f170;this[_0x3ba7c7(0x191)](),this[_0x3ba7c7(0x2c0)](this[_0x3ba7c7(0x3b6)][_0x3ba7c7(0x297)]()),this[_0x3ba7c7(0x337)]();}[_0x72f170(0x2c6)](){const _0x26586f=_0x72f170;this[_0x26586f(0x191)](),this[_0x26586f(0x2c0)](this['_state'][_0x26586f(0x361)]()),this[_0x26586f(0x337)]();}async[_0x72f170(0x35e)](){return new Promise(_0x15d34d=>{const _0x2cf08e=_0x4733;this[_0x2cf08e(0x374)][_0x2cf08e(0x395)][_0x2cf08e(0x2ca)](_0x3151c5[_0x2cf08e(0x375)](0x1))[_0x2cf08e(0x112)](async _0x434819=>{const _0xd19b5a=_0x2cf08e;_0x15d34d(await this[_0xd19b5a(0x123)](_0x434819===_0x4457b3['ONLINE']));});});}['_createHandler'](){const _0x2e54b3=_0x72f170,_0x23f10a=this[_0x2e54b3(0x17d)];return{'onStateChange':(_0x5a70fd,_0x532349)=>{const _0x305716=_0x2e54b3;if(_0x5a70fd!==this[_0x305716(0x3b6)])throw new Error(_0x305716(0x33a)+_0x5a70fd['status']+'\x0aAfter:\x20'+_0x532349[_0x305716(0x38e)]+_0x305716(0x249)+this[_0x305716(0x3b6)][_0x305716(0x38e)]);this[_0x305716(0x2c0)](_0x532349);},'onSendChangeset':_0x2d5cb3=>{const _0x3a7eb7=_0x2e54b3,_0x4e6bf9={'eventID':_0x30a695['CollaborationEvent'][_0x3a7eb7(0x1f5)],'data':{'unitID':_0x2d5cb3[_0x3a7eb7(0x17d)],'unitType':this[_0x3a7eb7(0x314)],'changeset':_0x2d5cb3,'memberID':this[_0x3a7eb7(0x374)]['getMemberID']()}};this['_session']['send'](_0x4e6bf9,this[_0x3a7eb7(0x17d)]);},'onMissingChangesets':({from:_0xd43dd0,to:_0x542241})=>{const _0xa3901d=_0x2e54b3;this[_0xa3901d(0x1a6)][_0xa3901d(0xf2)](_0xa3901d(0x200),_0xa3901d(0x367)+_0xd43dd0+_0xa3901d(0x31a)+_0x542241);const _0x3ed9bb={'eventID':_0x30a695[_0xa3901d(0x107)][_0xa3901d(0x146)],'data':{'unitID':_0x23f10a,'unitType':this[_0xa3901d(0x314)],'from':_0xd43dd0,'to':_0x542241}};this[_0xa3901d(0x374)][_0xa3901d(0x3c4)](_0x3ed9bb,this['unitID']);}};}async[_0x72f170(0x123)](_0x1ded3f){const _0x9cb2e1=_0x72f170;var _0x52077c,_0x36661c;const _0x3c5d11=await this[_0x9cb2e1(0x339)][_0x9cb2e1(0x3df)](this['unitID']),_0x1d8259=(_0x52077c=_0x3c5d11==null?void 0x0:_0x3c5d11[_0x9cb2e1(0x228)])!=null?_0x52077c:[],_0x318747=(_0x36661c=_0x3c5d11==null?void 0x0:_0x3c5d11[_0x9cb2e1(0x3c6)])!=null?_0x36661c:null,_0x563a9c=this[_0x9cb2e1(0x17d)];try{this[_0x9cb2e1(0x2ec)](_0x318747,_0x1d8259);}catch(_0x9f288b){this[_0x9cb2e1(0x1a6)][_0x9cb2e1(0x2e6)](_0x9f288b);}const _0x25b065=this['_createHandler']();if(_0x1ded3f){const _0x3d22ab=_0x534446(this['_injector'],_0x563a9c,this[_0x9cb2e1(0x314)],_0x318747,_0x1d8259,_0x25b065);return _0x3d22ab instanceof _0x20573d?_0x3d22ab[_0x9cb2e1(0x3d2)]():(_0x3d22ab instanceof _0xcf58a3||_0x3d22ab instanceof _0x1f25e3)&&_0x3d22ab[_0x9cb2e1(0x2bf)](),_0x3d22ab;}return this[_0x9cb2e1(0x397)][_0x9cb2e1(0x275)](_0xb2d7cf,_0x563a9c,this[_0x9cb2e1(0x314)],_0x318747,_0x1d8259,_0x25b065);}[_0x72f170(0x2ec)](_0x468107,_0x39b670){const _0x3a6194=_0x72f170;var _0x359d3d,_0x2bdee7;const _0x2da650=this[_0x3a6194(0x1d5)]['interceptor']['fetchThroughInterceptors'](this[_0x3a6194(0x1d5)][_0x3a6194(0x2e3)][_0x3a6194(0x2c9)]()[_0x3a6194(0x131)]);(_0x359d3d=_0x2da650((_0x468107==null?void 0x0:_0x468107['mutations'])||[],null))==null||_0x359d3d[_0x3a6194(0x3bf)](_0x521204=>this[_0x3a6194(0x219)][_0x3a6194(0xcb)](_0x521204['id'],_0x521204[_0x3a6194(0x197)])),(_0x2bdee7=_0x2da650(_0x39b670||[],null))==null||_0x2bdee7[_0x3a6194(0x3bf)](_0x176da6=>this['_commandService'][_0x3a6194(0xcb)](_0x176da6['id'],_0x176da6[_0x3a6194(0x197)]));}};_0x1c81d4=_0x16deca([_0x2783dd(0x3,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32[_0x72f170(0x425)])),_0x2783dd(0x4,_0x5c7b32['Inject'](_0x588091[_0x72f170(0x3a7)])),_0x2783dd(0x5,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401[_0x72f170(0x29e)])),_0x2783dd(0x6,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695['CompressMutationService'])),_0x2783dd(0x7,_0x5c7b32['Inject'](_0x1b3401[_0x72f170(0x330)])),_0x2783dd(0x8,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695[_0x72f170(0x31f)])),_0x2783dd(0x9,_0x1b3401[_0x72f170(0x29c)]),_0x2783dd(0xa,_0x1b3401[_0x72f170(0x2cb)]),_0x2783dd(0xb,_0x47170c['IMessageService']),_0x2783dd(0xc,_0x5c7b32[_0x72f170(0x12a)](_0x345c46))],_0x1c81d4);let _0x132eb1=class extends _0x1c81d4{constructor(_0x23b967,_0x4f0de9,_0x4c4c76,_0x1848cd,_0x2cc60a,_0x23397f,_0x2449e7,_0x3c4710,_0x4bd863,_0x515f42,_0x20d3a1,_0x34ffb6,_0xa0a8ed,_0x3d3028,_0x3ae5dc,_0x4d868f,_0x423b57){const _0x1f25f0=_0x72f170;super(_0x23b967,_0x4f0de9,_0x4c4c76,_0x1848cd,_0x2cc60a,_0x23397f,_0x2449e7,_0x3c4710,_0x4bd863,_0x3d3028,_0x3ae5dc,_0x4d868f,_0x423b57),this['unitID']=_0x23b967,this[_0x1f25f0(0x418)]=_0x4f0de9,this[_0x1f25f0(0x3bb)]=_0x4c4c76,this[_0x1f25f0(0x293)]=_0x515f42,this[_0x1f25f0(0x415)]=_0x20d3a1,this[_0x1f25f0(0x1c1)]=_0x34ffb6,this['_docSyncEditingCollabCursorService']=_0xa0a8ed;}['_createHandler'](){const _0x4418bf=_0x72f170,_0x3343e9=super[_0x4418bf(0x2c1)]();return _0x3343e9[_0x4418bf(0x36a)]=_0x46788e=>this[_0x4418bf(0x415)]['transformIMECache'](_0x46788e),_0x3343e9[_0x4418bf(0x16d)]=_0x5bfd55=>this[_0x4418bf(0x1c1)][_0x4418bf(0x196)](_0x5bfd55),_0x3343e9[_0x4418bf(0x2f1)]=_0x5e8a63=>this[_0x4418bf(0x2c5)][_0x4418bf(0x3b2)](_0x5e8a63),_0x3343e9[_0x4418bf(0x19d)]=_0x215744=>this[_0x4418bf(0x415)][_0x4418bf(0x1d8)](_0x215744),_0x3343e9;}async['_init'](){const _0x28ac8c=_0x72f170,_0x1b5d23=await super[_0x28ac8c(0x3b0)]();return this[_0x28ac8c(0x293)]['docStateChange$'][_0x28ac8c(0x2ca)](_0x414952[_0x28ac8c(0x1b8)](this[_0x28ac8c(0x3d9)]))[_0x28ac8c(0x112)](_0x33de78=>{const _0x336016=_0x28ac8c;if(_0x33de78==null)return;const {unitId:_0xa4656b,redoState:_0x420173,commandId:_0x4be807}=_0x33de78;if(_0xa4656b!==this[_0x336016(0x17d)])return;const _0xdc3e86={'id':_0x4be807,'type':_0x1b3401['CommandType']['MUTATION'],'params':{'unitId':_0xa4656b,'actions':_0x420173[_0x336016(0x301)],'textRanges':null}};this['_onLocalMutation'](_0xdc3e86);}),_0x1b5d23;}};_0x132eb1=_0x16deca([_0x2783dd(0x3,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32[_0x72f170(0x425)])),_0x2783dd(0x4,_0x5c7b32[_0x72f170(0x3c0)](_0x588091[_0x72f170(0x3a7)])),_0x2783dd(0x5,_0x5c7b32['Inject'](_0x1b3401[_0x72f170(0x29e)])),_0x2783dd(0x6,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695['CompressMutationService'])),_0x2783dd(0x7,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401['LocaleService'])),_0x2783dd(0x8,_0x5c7b32['Inject'](_0x30a695['RevisionService'])),_0x2783dd(0x9,_0x5c7b32['Inject'](_0x54860c[_0x72f170(0x288)])),_0x2783dd(0xa,_0x5c7b32[_0x72f170(0x3c0)](_0x1a629c)),_0x2783dd(0xb,_0x5c7b32[_0x72f170(0x3c0)](_0x1505a5)),_0x2783dd(0xc,_0x5c7b32[_0x72f170(0x3c0)](_0x21c0b5)),_0x2783dd(0xd,_0x1b3401[_0x72f170(0x29c)]),_0x2783dd(0xe,_0x1b3401[_0x72f170(0x2cb)]),_0x2783dd(0xf,_0x47170c[_0x72f170(0x2e2)]),_0x2783dd(0x10,_0x5c7b32[_0x72f170(0x12a)](_0x345c46))],_0x132eb1);let _0x519d58=class extends _0x1c81d4{constructor(_0x465b4f,_0x20f6e7,_0x3a8866,_0x60c313,_0x40b58c,_0x4138cd,_0x2cb17e,_0x5d0b1c,_0x345357,_0x19ca5d,_0x4cafd8,_0x415343,_0x4d44c4,_0x120bf0){const _0x2fab22=_0x72f170;super(_0x465b4f,_0x20f6e7,_0x3a8866,_0x60c313,_0x40b58c,_0x4138cd,_0x2cb17e,_0x5d0b1c,_0x345357,_0x4cafd8,_0x415343,_0x4d44c4,_0x120bf0),this[_0x2fab22(0x17d)]=_0x465b4f,this[_0x2fab22(0x418)]=_0x20f6e7,this[_0x2fab22(0x3bb)]=_0x3a8866,this[_0x2fab22(0x3cb)]=_0x19ca5d;}['_createHandler'](){const _0xcbbdfc=_0x72f170,_0x38d101=super[_0xcbbdfc(0x2c1)]();return _0x38d101[_0xcbbdfc(0x16d)]=_0x3af499=>this[_0xcbbdfc(0x3cb)][_0xcbbdfc(0x196)](_0x3af499),_0x38d101;}async['_init'](){const _0x387d0f=_0x72f170,_0xa9f817=await super[_0x387d0f(0x3b0)]();return this[_0x387d0f(0xf8)](this[_0x387d0f(0x219)][_0x387d0f(0x21a)]((_0x558efc,_0x5e3dc6)=>{const _0x283254=_0x387d0f;if(_0x558efc[_0x283254(0x418)]!==_0x1b3401['CommandType']['MUTATION']||_0x5e3dc6!=null&&_0x5e3dc6[_0x283254(0x1f3)]||_0x5e3dc6!=null&&_0x5e3dc6['onlyLocal'])return;const _0x3a583f=_0x558efc['params'];if((_0x3a583f==null?void 0x0:_0x3a583f[_0x283254(0x350)])!==this[_0x283254(0x17d)])return;const _0x5ab0a9=_0x558efc,_0x45a33d=this[_0x283254(0x1d5)][_0x283254(0x2e3)]['fetchThroughInterceptors'](this[_0x283254(0x1d5)][_0x283254(0x2e3)][_0x283254(0x2c9)]()[_0x283254(0x135)])([_0x5ab0a9],null)||[_0x5ab0a9];this[_0x283254(0x273)](_0x45a33d[0x0]);})),_0xa9f817;}};_0x519d58=_0x16deca([_0x2783dd(0x3,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32['Injector'])),_0x2783dd(0x4,_0x5c7b32['Inject'](_0x588091['LocalCacheService'])),_0x2783dd(0x5,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401[_0x72f170(0x29e)])),_0x2783dd(0x6,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695['CompressMutationService'])),_0x2783dd(0x7,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401[_0x72f170(0x330)])),_0x2783dd(0x8,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695[_0x72f170(0x31f)])),_0x2783dd(0x9,_0x5c7b32[_0x72f170(0x3c0)](_0x211af0)),_0x2783dd(0xa,_0x1b3401[_0x72f170(0x29c)]),_0x2783dd(0xb,_0x1b3401['ICommandService']),_0x2783dd(0xc,_0x47170c[_0x72f170(0x2e2)]),_0x2783dd(0xd,_0x5c7b32[_0x72f170(0x12a)](_0x345c46))],_0x519d58);const _0x17ff65=['purple300',_0x72f170(0x240),_0x72f170(0x1de),_0x72f170(0x27f),_0x72f170(0x42c),_0x72f170(0x2dd)];class _0x239e9b extends _0x1b3401['Disposable']{constructor(){const _0x103ade=_0x72f170;super(...arguments),_0x51e1d8(this,_0x103ade(0x124),new Map()),_0x51e1d8(this,_0x103ade(0x41e),0x0);}[_0x72f170(0x426)](_0x3548ae){const _0x41ed1c=_0x72f170;if(this['_assignedColors']['has'](_0x3548ae))return this[_0x41ed1c(0x124)][_0x41ed1c(0x25f)](_0x3548ae);const _0x529259=_0x17ff65[this['_colorIndex']];return this[_0x41ed1c(0x41e)]=(this[_0x41ed1c(0x41e)]+0x1)%_0x17ff65[_0x41ed1c(0xbe)],this[_0x41ed1c(0x124)][_0x41ed1c(0x346)](_0x3548ae,_0x529259),_0x529259;}}var _0x525fc4=(_0x5ec4be,_0x1b7c5a,_0x3ce6de,_0x5337e5)=>{const _0x5dcaa0=_0x72f170;for(var _0x572434=_0x1b7c5a,_0x3c13bf=_0x5ec4be[_0x5dcaa0(0xbe)]-0x1,_0x374040;_0x3c13bf>=0x0;_0x3c13bf--)(_0x374040=_0x5ec4be[_0x3c13bf])&&(_0x572434=_0x374040(_0x572434)||_0x572434);return _0x572434;},_0xaa0c89=(_0x30e3f0,_0x56e42c)=>(_0x47ee9a,_0x361805)=>_0x56e42c(_0x47ee9a,_0x361805,_0x30e3f0);const _0x41c75f=0x12c,_0x11c469=0x64,_0x861e22=()=>{let _0x5304f8=[],_0x2bbb40=!0x1;return _0x20bfb5=>{const _0x267b3b=_0x4733;_0x5304f8[_0x267b3b(0x2c7)](_0x20bfb5),_0x2bbb40||(_0x2bbb40=!0x0,setTimeout(()=>{const _0x382fdc=_0x267b3b;_0x5304f8[_0x382fdc(0x3bf)](_0x3ef0a6=>_0x3ef0a6()),_0x5304f8=[],_0x2bbb40=!0x1;}));};};let _0x5ad150=class extends _0x1b3401['RxDisposable']{constructor(_0x9c897e,_0x3ea48e,_0x6b8d,_0x10dbcf,_0x38dd56,_0x4d31ab,_0x9f3175,_0xf9739c){const _0x45f79f=_0x72f170;super(),_0x51e1d8(this,_0x45f79f(0x277),!0x1),_0x51e1d8(this,_0x45f79f(0x3b0),!0x1),_0x51e1d8(this,'_cursorInfo$',new _0x414952[(_0x45f79f(0x1e6))](new Map())),_0x51e1d8(this,_0x45f79f(0x2a8),this['_cursorInfo$'][_0x45f79f(0x348)]()),_0x51e1d8(this,'_roomMembers$',new _0x414952[(_0x45f79f(0x1e6))]([])),_0x51e1d8(this,_0x45f79f(0x126),this[_0x45f79f(0x30c)][_0x45f79f(0x2ca)](_0x414952[_0x45f79f(0x206)](_0x41c75f))),_0x51e1d8(this,_0x45f79f(0x3c8),_0x2c0384((_0x2ddd53,_0x174443)=>{const _0x74f492=_0x45f79f,_0x157b3f={'eventID':_0x30a695[_0x74f492(0x107)][_0x74f492(0x27d)],'data':{'unitID':this[_0x74f492(0x17d)],'memberID':this[_0x74f492(0x374)][_0x74f492(0x1c4)](),'selection':_0x446c2d[_0x74f492(0x287)](_0x2ddd53,_0x174443[_0x74f492(0x23e)])}};this[_0x74f492(0x374)][_0x74f492(0x3c4)](_0x157b3f,this[_0x74f492(0x17d)]);},_0x11c469)),(this[_0x45f79f(0x17d)]=_0x9c897e,this[_0x45f79f(0x374)]=_0x3ea48e,this['_injector']=_0x6b8d,this[_0x45f79f(0x26f)]=_0x10dbcf,this[_0x45f79f(0x23f)]=_0x38dd56,this[_0x45f79f(0x278)]=_0x4d31ab,this[_0x45f79f(0x219)]=_0x9f3175,this['_refRangeService']=_0xf9739c);}get[_0x72f170(0x181)](){const _0x4602a0=_0x72f170;return this['_cursorInfo$'][_0x4602a0(0x1e1)]();}get[_0x72f170(0x1a9)](){const _0x39286e=_0x72f170;return this[_0x39286e(0x30c)][_0x39286e(0x1e1)]();}[_0x72f170(0x10c)](){const _0x46be19=_0x72f170;super['dispose'](),this['_cursorInfo$'][_0x46be19(0x3d6)](new Map()),this[_0x46be19(0x1af)][_0x46be19(0x27e)](),this[_0x46be19(0x30c)][_0x46be19(0x3d6)]([]),this[_0x46be19(0x30c)][_0x46be19(0x27e)]();}[_0x72f170(0x16f)](){const _0x472581=_0x72f170;this[_0x472581(0x3b0)]||(this[_0x472581(0x3b0)]=!0x0,this[_0x472581(0x374)][_0x472581(0x395)][_0x472581(0x2ca)](_0x414952['takeUntil'](this[_0x472581(0x3d9)]))[_0x472581(0x112)](_0x3eafb1=>{const _0x53d9d3=_0x472581;_0x3eafb1===_0x4457b3[_0x53d9d3(0x134)]?this['_toggleOnline']():this[_0x53d9d3(0x198)]();}),this[_0x472581(0x374)]['event$'][_0x472581(0x2ca)](_0x414952[_0x472581(0x1b8)](this[_0x472581(0x3d9)]))[_0x472581(0x112)](_0x5c7599=>{const _0x4e0045=_0x472581,_0x1b43d1=_0x5c7599[_0x4e0045(0xe8)];_0x1b43d1===_0x30a695[_0x4e0045(0x107)]['UPDATE_CURSOR']&&this[_0x4e0045(0x432)](_0x5c7599),_0x1b43d1===_0x30a695[_0x4e0045(0x107)][_0x4e0045(0x147)]&&this[_0x4e0045(0x3be)](_0x5c7599);}),this[_0x472581(0x30e)](),this[_0x472581(0xf8)](this[_0x472581(0x219)]['onCommandExecuted'](_0x47dca6=>{const _0x143a86=_0x472581;if(this[_0x143a86(0x277)]&&_0x47dca6['id']===_0x51f05a[_0x143a86(0x167)]['id']&&_0x47dca6[_0x143a86(0x197)][_0x143a86(0x350)]===this[_0x143a86(0x17d)]){const _0x5a37d6=_0x47dca6[_0x143a86(0x197)];this['_updateLocalCursor'](_0x5a37d6[_0x143a86(0x281)],_0x5a37d6[_0x143a86(0x33f)][0x0]);}})));}[_0x72f170(0x432)](_0x2b000e){const _0x1466fc=_0x72f170;var _0x52dae3,_0x2ba282;const {memberID:_0x32e055,selection:_0x262916}=_0x2b000e[_0x1466fc(0x304)],{sheetName:_0x5f04c3,range:_0x4f1e95}=_0x446c2d[_0x1466fc(0x2d2)](_0x262916),_0xd69443={'name':(_0x2ba282=(_0x52dae3=this['_memberService'][_0x1466fc(0x21d)](this[_0x1466fc(0x17d)],_0x32e055))==null?void 0x0:_0x52dae3[_0x1466fc(0x403)])!=null?_0x2ba282:_0x1466fc(0x2db),'range':this['_getMergeRange'](_0x5f04c3,_0x4f1e95),'sheetID':_0x5f04c3,'color':this[_0x1466fc(0x26f)][_0x1466fc(0x426)](_0x32e055),'selection':_0x262916},_0x41b193=this[_0x1466fc(0x181)];_0x41b193[_0x1466fc(0x346)](_0x32e055,_0xd69443),this[_0x1466fc(0x1af)][_0x1466fc(0x3d6)](_0x41b193);}['_onCursorDelete'](_0xe4724a){const _0x3464df=_0x72f170,{memberID:_0x5d99d1}=_0xe4724a['data'],_0x28c2ba=this['cursorInfo'];_0x28c2ba[_0x3464df(0x16c)](_0x5d99d1),this[_0x3464df(0x1af)][_0x3464df(0x3d6)](_0x28c2ba);}[_0x72f170(0x2eb)](_0x165789,_0x242194){const _0x26007b=_0x72f170;var _0xb8b8d2,_0x1e8c60;const _0x13f82d=(_0x1e8c60=(_0xb8b8d2=this[_0x26007b(0x278)][_0x26007b(0x220)](this['unitID']))==null?void 0x0:_0xb8b8d2[_0x26007b(0x271)](_0x165789))==null?void 0x0:_0x1e8c60[_0x26007b(0x37c)]();return(_0x13f82d==null?void 0x0:_0x13f82d['find'](_0x14cad2=>_0x1b3401[_0x26007b(0x28c)][_0x26007b(0x19a)](_0x14cad2,_0x242194)))||_0x242194;}['_onRefRangeChange'](){const _0x13f683=_0x72f170,_0x317f45=new _0x1b3401[(_0x13f683(0x227))](),_0x1c507e=_0x861e22(),_0x4b5b5d=()=>{const _0x4c82d9=_0x13f683;_0x317f45[_0x4c82d9(0x10c)]();const _0x11e5f1=(_0x4e9740,_0x5dfb8a,_0x243d9f,_0x44b407)=>{const _0x1c8492=_0x4c82d9;let _0x1ddbad=[];switch(_0x4e9740['id']){case _0x51f05a[_0x1c8492(0x38f)][_0x1c8492(0x28e)]:{_0x1ddbad=_0x51f05a[_0x1c8492(0x178)](_0x4e9740,_0x44b407);break;}case _0x51f05a[_0x1c8492(0x38f)][_0x1c8492(0x2af)]:{_0x1ddbad=_0x51f05a[_0x1c8492(0x205)](_0x4e9740,_0x44b407);break;}case _0x51f05a[_0x1c8492(0x38f)][_0x1c8492(0xf5)]:{_0x1ddbad=_0x51f05a[_0x1c8492(0x174)](_0x4e9740,_0x44b407);break;}case _0x51f05a['EffectRefRangId'][_0x1c8492(0xe0)]:{_0x1ddbad=_0x51f05a[_0x1c8492(0x1e3)](_0x4e9740,_0x44b407);break;}case _0x51f05a['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x1ddbad=_0x51f05a[_0x1c8492(0x322)](_0x4e9740,_0x44b407);break;}case _0x51f05a[_0x1c8492(0x38f)][_0x1c8492(0x344)]:{_0x1ddbad=_0x51f05a[_0x1c8492(0xd8)](_0x4e9740,_0x44b407);break;}case _0x51f05a[_0x1c8492(0x38f)][_0x1c8492(0xe3)]:{_0x1ddbad=_0x51f05a[_0x1c8492(0x410)](_0x4e9740,_0x44b407);break;}case _0x51f05a[_0x1c8492(0x38f)][_0x1c8492(0x28f)]:{_0x1ddbad=_0x51f05a[_0x1c8492(0xc4)](_0x4e9740,_0x44b407);break;}case _0x51f05a[_0x1c8492(0x38f)][_0x1c8492(0x1df)]:{_0x1ddbad=_0x51f05a[_0x1c8492(0x391)](_0x4e9740,_0x44b407);break;}}const _0x5316ef=_0x51f05a[_0x1c8492(0xd4)](_0x1ddbad,_0x44b407),_0x58f147=this[_0x1c8492(0x181)][_0x1c8492(0x25f)](_0x5dfb8a);if(_0x58f147&&_0x5316ef){const _0x3b04a3={..._0x58f147,'range':_0x5316ef};this[_0x1c8492(0x181)]['set'](_0x5dfb8a,_0x3b04a3),_0x1c507e(()=>{const _0x329657=_0x1c8492,_0x24e24b=this[_0x329657(0x3ae)][_0x329657(0xf3)](_0x5316ef,_0x27235c=>(_0x24e24b[_0x329657(0x10c)](),_0x11e5f1(_0x27235c,_0x5dfb8a,_0x243d9f,_0x5316ef)));_0x317f45[_0x329657(0x3c1)](_0x24e24b);});}return{'redos':[],'undos':[]};};this[_0x4c82d9(0x181)][_0x4c82d9(0x3bf)]((_0x4bf7d5,_0x367be9)=>{const _0x2b8b5c=_0x4c82d9,{range:_0x35b3d8,sheetID:_0xb95694}=_0x4bf7d5,_0x5d1b55=this['_refRangeService'][_0x2b8b5c(0xf3)](_0x35b3d8,_0x2010e8=>(_0x5d1b55[_0x2b8b5c(0x10c)](),_0x11e5f1(_0x2010e8,_0x367be9,_0xb95694,_0x35b3d8)));_0x317f45['add'](_0x5d1b55);});};this[_0x13f683(0xf8)](_0x1b3401[_0x13f683(0x2ac)](this['_cursorInfo$'][_0x13f683(0x112)](()=>{_0x4b5b5d();})));}[_0x72f170(0x2c6)](){const _0x2d771e=_0x72f170;var _0x6d3998,_0x48e3f1;if(this[_0x2d771e(0x277)]=!0x0,((_0x6d3998=this[_0x2d771e(0x278)][_0x2d771e(0x378)]())==null?void 0x0:_0x6d3998[_0x2d771e(0x33c)]())!==this['unitID'])return;const _0x5c9256=(_0x48e3f1=this[_0x2d771e(0x397)][_0x2d771e(0x25f)](_0x51f05a[_0x2d771e(0x14d)])[_0x2d771e(0x2f2)]())==null?void 0x0:_0x48e3f1[0x0];_0x5c9256&&this[_0x2d771e(0x3c8)](this['_univerInstanceService'][_0x2d771e(0x3e4)](_0x1b3401[_0x2d771e(0x22d)]['UNIVER_SHEET'])['getActiveSheet']()[_0x2d771e(0x245)](),_0x5c9256);}[_0x72f170(0x198)](){const _0x2f05a3=_0x72f170;this[_0x2f05a3(0x277)]=!0x1;}};_0x5ad150=_0x525fc4([_0xaa0c89(0x2,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32[_0x72f170(0x425)])),_0xaa0c89(0x3,_0x5c7b32[_0x72f170(0x3c0)](_0x239e9b)),_0xaa0c89(0x4,_0x5c7b32[_0x72f170(0x3c0)](_0x3f8747)),_0xaa0c89(0x5,_0x1b3401[_0x72f170(0x335)]),_0xaa0c89(0x6,_0x1b3401[_0x72f170(0x2cb)]),_0xaa0c89(0x7,_0x5c7b32[_0x72f170(0x3c0)](_0x51f05a[_0x72f170(0x3ed)]))],_0x5ad150);var _0x1c3db3=(_0x141834,_0x3caf44,_0x114dea,_0x4c2458)=>{const _0x4ad5b5=_0x72f170;for(var _0x39f6da=_0x3caf44,_0x37f069=_0x141834[_0x4ad5b5(0xbe)]-0x1,_0x1843cd;_0x37f069>=0x0;_0x37f069--)(_0x1843cd=_0x141834[_0x37f069])&&(_0x39f6da=_0x1843cd(_0x39f6da)||_0x39f6da);return _0x39f6da;},_0x1db506=(_0x2e71d9,_0xa3e36a)=>(_0x39892c,_0x584f49)=>_0xa3e36a(_0x39892c,_0x584f49,_0x2e71d9);const _0x3f97bc=0x12c,_0xfb1b0=0x64;let _0x1cbd9f=class extends _0x1b3401[_0x72f170(0x35c)]{constructor(_0x4516a9,_0x1001cd,_0x16b8a2,_0x4e5900,_0x2fd287,_0x32bc36,_0x35afa4,_0x623de1,_0x45b665){const _0x8c4351=_0x72f170;super(),_0x51e1d8(this,'_online',!0x1),_0x51e1d8(this,'_init',!0x1),_0x51e1d8(this,_0x8c4351(0x1af),new _0x414952[(_0x8c4351(0x1e6))](new Map())),_0x51e1d8(this,'cursorInfo$',this[_0x8c4351(0x1af)][_0x8c4351(0x348)]()),_0x51e1d8(this,_0x8c4351(0x30c),new _0x414952[(_0x8c4351(0x1e6))]([])),_0x51e1d8(this,_0x8c4351(0x126),this['_roomMembers$'][_0x8c4351(0x2ca)](_0x414952[_0x8c4351(0x206)](_0x3f97bc))),_0x51e1d8(this,_0x8c4351(0x3c8),_0x2c0384(_0x320eaf=>{const _0x38dbb8=_0x8c4351,_0x2eefc0={'eventID':_0x30a695[_0x38dbb8(0x107)][_0x38dbb8(0x27d)],'data':{'unitID':this['unitID'],'memberID':this[_0x38dbb8(0x374)][_0x38dbb8(0x1c4)](),'selection':_0xbfbaaa(_0x320eaf)}};this[_0x38dbb8(0x374)][_0x38dbb8(0x3c4)](_0x2eefc0,this[_0x38dbb8(0x17d)]);},_0xfb1b0)),(this['unitID']=_0x4516a9,this['_session']=_0x1001cd,this[_0x8c4351(0x397)]=_0x16b8a2,this['_colorAssignService']=_0x4e5900,this[_0x8c4351(0x23f)]=_0x2fd287,this[_0x8c4351(0x29f)]=_0x32bc36,this[_0x8c4351(0x3f8)]=_0x35afa4,this[_0x8c4351(0x278)]=_0x623de1,this[_0x8c4351(0x219)]=_0x45b665);}get[_0x72f170(0x181)](){const _0x4832ce=_0x72f170;return this[_0x4832ce(0x1af)]['getValue']();}get['roomMembers'](){const _0x102cff=_0x72f170;return this[_0x102cff(0x30c)]['getValue']();}['dispose'](){const _0x1afb30=_0x72f170;super['dispose'](),this[_0x1afb30(0x1af)][_0x1afb30(0x3d6)](new Map()),this[_0x1afb30(0x1af)][_0x1afb30(0x27e)](),this[_0x1afb30(0x30c)][_0x1afb30(0x3d6)]([]),this[_0x1afb30(0x30c)]['complete']();}[_0x72f170(0x16f)](){const _0x57242a=_0x72f170;this['_init']||(this[_0x57242a(0x3b0)]=!0x0,this['_session'][_0x57242a(0x395)][_0x57242a(0x2ca)](_0x414952[_0x57242a(0x1b8)](this[_0x57242a(0x3d9)]))[_0x57242a(0x112)](_0x19f1d1=>{const _0x3400c8=_0x57242a;_0x19f1d1===_0x4457b3['ONLINE']?this[_0x3400c8(0x2c6)]():this[_0x3400c8(0x198)]();}),this[_0x57242a(0x374)]['event$'][_0x57242a(0x2ca)](_0x414952[_0x57242a(0x1b8)](this[_0x57242a(0x3d9)]))[_0x57242a(0x112)](_0x2ca6e3=>{const _0x22a5c4=_0x57242a,_0x226583=_0x2ca6e3['eventID'];_0x226583===_0x30a695[_0x22a5c4(0x107)][_0x22a5c4(0x27d)]&&this['_onCursorUpdate'](_0x2ca6e3),_0x226583===_0x30a695[_0x22a5c4(0x107)]['USERS_LEAVE']&&this[_0x22a5c4(0x3be)](_0x2ca6e3);}),this['disposeWithMe'](this[_0x57242a(0x219)]['onCommandExecuted'](_0x246ad5=>{const _0x1ca9de=_0x57242a,_0x514356=_0x246ad5[_0x1ca9de(0x197)];_0x514356!=null&&this[_0x1ca9de(0x277)]&&_0x246ad5['id']===_0x54860c['SetTextSelectionsOperation']['id']&&_0x514356[_0x1ca9de(0x350)]===this[_0x1ca9de(0x17d)]&&_0x514356[_0x1ca9de(0x42b)]===!0x1&&this[_0x1ca9de(0x3c8)](_0x514356[_0x1ca9de(0x129)]);})),this[_0x57242a(0x29f)][_0x57242a(0x41f)][_0x57242a(0x2ca)](_0x414952['takeUntil'](this[_0x57242a(0x3d9)]))['subscribe'](_0x165475=>{const _0x43bf8a=_0x57242a;if((_0x165475==null?void 0x0:_0x165475[_0x43bf8a(0x17d)])!==this[_0x43bf8a(0x17d)])return;const _0x34e022={'eventID':_0x30a695['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x165475};this[_0x43bf8a(0x432)](_0x34e022);}),this[_0x57242a(0xf8)](this[_0x57242a(0x219)][_0x57242a(0x21a)](_0xd4f6f9=>{const _0x108240=_0x57242a;if(_0xd4f6f9[_0x108240(0x197)]==null)return;const _0x31cc07=_0xd4f6f9[_0x108240(0x197)];if(_0xd4f6f9['id']!==_0x54860c[_0x108240(0x392)]['id']||_0x31cc07[_0x108240(0x350)]!==this[_0x108240(0x17d)])return;const _0x4ebb2e={'id':_0x108240(0x42f),'params':_0x31cc07},_0xf5fc4f=this['cursorInfo'];for(const [_0x5f57c2,_0x496130]of _0xf5fc4f){const _0x43c8c7={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x108240(0x17d)],'actions':[],'textRanges':_0x496130[_0x108240(0x129)]}},_0x55aef5=this[_0x108240(0x3f8)]['transformMutation'](_0x4ebb2e,_0x43c8c7,!0x1);if(_0x30a695[_0x108240(0x149)](_0x55aef5))throw _0x55aef5[_0x108240(0x2e6)];_0xf5fc4f[_0x108240(0x346)](_0x5f57c2,{..._0x496130,'ranges':_0x55aef5[_0x108240(0x268)][_0x108240(0x197)][_0x108240(0x113)]});}queueMicrotask(()=>{const _0x49a4bc=_0x108240;this['_cursorInfo$'][_0x49a4bc(0x3d6)](_0xf5fc4f);});})));}['_onCursorUpdate'](_0x53c7ae){const _0x486802=_0x72f170;var _0x552b3c,_0x4cefd6;const {memberID:_0x20eb68,selection:_0x290c9a}=_0x53c7ae['data'],_0x2714f1=_0x9114c9(_0x290c9a),_0x3e60e6=(_0x4cefd6=(_0x552b3c=this['_memberService'][_0x486802(0x21d)](this['unitID'],_0x20eb68))==null?void 0x0:_0x552b3c[_0x486802(0x403)])!=null?_0x4cefd6:_0x486802(0x2db),_0x179c11={'color':this[_0x486802(0x26f)][_0x486802(0x426)](_0x20eb68),'name':_0x3e60e6,'ranges':_0x2714f1},_0xa266c=this[_0x486802(0x181)];_0xa266c[_0x486802(0x346)](_0x20eb68,_0x179c11),this[_0x486802(0x1af)][_0x486802(0x3d6)](_0xa266c);}['_onCursorDelete'](_0x5316ed){const _0x29ab12=_0x72f170,{memberID:_0x231b37}=_0x5316ed[_0x29ab12(0x304)],_0x575bc2=this[_0x29ab12(0x181)];_0x575bc2[_0x29ab12(0x16c)](_0x231b37),this[_0x29ab12(0x1af)][_0x29ab12(0x3d6)](_0x575bc2);}[_0x72f170(0x2c6)](){const _0x594898=_0x72f170;var _0x366372;if(this[_0x594898(0x277)]=!0x0,((_0x366372=this[_0x594898(0x278)][_0x594898(0x378)]())==null?void 0x0:_0x366372['getUnitId']())!==this[_0x594898(0x17d)])return;const _0x29e523=this[_0x594898(0x397)]['get'](_0x54860c['TextSelectionManagerService'])[_0x594898(0x2f2)](),_0x3217d8=_0x29e523==null?void 0x0:_0x29e523[_0x594898(0x250)](_0x54860c['serializeTextRange']);Array['isArray'](_0x3217d8)&&_0x3217d8[_0x594898(0xbe)]>0x0&&this[_0x594898(0x3c8)](_0x3217d8);}[_0x72f170(0x198)](){this['_online']=!0x1;}};_0x1cbd9f=_0x1c3db3([_0x1db506(0x2,_0x5c7b32['Inject'](_0x5c7b32[_0x72f170(0x425)])),_0x1db506(0x3,_0x5c7b32['Inject'](_0x239e9b)),_0x1db506(0x4,_0x5c7b32['Inject'](_0x3f8747)),_0x1db506(0x5,_0x5c7b32[_0x72f170(0x3c0)](_0x21c0b5)),_0x1db506(0x6,_0x30a695[_0x72f170(0x2dc)]),_0x1db506(0x7,_0x1b3401['IUniverInstanceService']),_0x1db506(0x8,_0x1b3401['ICommandService'])],_0x1cbd9f);var _0x2949c4=(_0x266e6c,_0x3c405a,_0x522c35,_0x1674a5)=>{for(var _0x41c09e=_0x3c405a,_0x3e9c14=_0x266e6c['length']-0x1,_0xf87458;_0x3e9c14>=0x0;_0x3e9c14--)(_0xf87458=_0x266e6c[_0x3e9c14])&&(_0x41c09e=_0xf87458(_0x41c09e)||_0x41c09e);return _0x41c09e;},_0x5edc2f=(_0xf97196,_0x22ccac)=>(_0x26ca7c,_0x4ab9a1)=>_0x22ccac(_0x26ca7c,_0x4ab9a1,_0xf97196);let _0x16c4ba=class extends _0x1b3401[_0x72f170(0x35c)]{constructor(_0x3ebb09,_0x5052bc,_0x5f27ac){const _0x22b93c=_0x72f170;super(),_0x51e1d8(this,_0x22b93c(0x380),new Map()),_0x51e1d8(this,'_entityInit$',new _0x414952[(_0x22b93c(0x38b))]()),(this[_0x22b93c(0x278)]=_0x3ebb09,this[_0x22b93c(0x397)]=_0x5052bc,this[_0x22b93c(0x11f)]=_0x5f27ac,this[_0x22b93c(0x3b0)]());}[_0x72f170(0x10c)](){const _0x248ab6=_0x72f170;super['dispose'](),this[_0x248ab6(0x2c2)][_0x248ab6(0x27e)](),this['_entities'][_0x248ab6(0x3bf)](_0x233256=>_0x233256[_0x248ab6(0x10c)]());}[_0x72f170(0x23b)](_0x311a2e){const _0xf753a3=_0x72f170;return this[_0xf753a3(0x380)][_0xf753a3(0x2de)](_0x311a2e)?this[_0xf753a3(0x380)][_0xf753a3(0x25f)](_0x311a2e)[_0xf753a3(0x2a8)]:this[_0xf753a3(0x2c2)][_0xf753a3(0x2ca)](_0x414952[_0xf753a3(0x40a)](_0x3cb136=>_0x3cb136[_0xf753a3(0x17d)]===_0x311a2e),_0x414952[_0xf753a3(0x207)](_0x12a632=>_0x12a632['cursorInfo$']));}[_0x72f170(0x3b0)](){const _0x25c3f0=_0x72f170;this[_0x25c3f0(0x278)][_0x25c3f0(0x291)](_0x1b3401[_0x25c3f0(0x22d)]['UNIVER_SHEET'])[_0x25c3f0(0x2ca)](_0x414952[_0x25c3f0(0x1b8)](this[_0x25c3f0(0x3d9)]))['subscribe'](async _0x53a6f2=>{const _0x433a50=_0x25c3f0,_0x8990dc=_0x53a6f2[_0x433a50(0x33c)](),_0x134201=await this[_0x433a50(0xd0)](_0x8990dc);this[_0x433a50(0x2c2)]['next'](_0x134201),this['_entities'][_0x433a50(0x346)](_0x8990dc,_0x134201);}),this[_0x25c3f0(0x278)][_0x25c3f0(0x291)](_0x1b3401[_0x25c3f0(0x22d)][_0x25c3f0(0x2f7)])[_0x25c3f0(0x2ca)](_0x414952[_0x25c3f0(0x1b8)](this[_0x25c3f0(0x3d9)]))['pipe'](_0x414952[_0x25c3f0(0x40a)](_0x1c0f0f=>!_0x1c0f0f[_0x25c3f0(0x33c)]()[_0x25c3f0(0x117)]('__')))[_0x25c3f0(0x112)](async _0x42ae75=>{const _0x259f19=_0x25c3f0,_0x227fb8=_0x42ae75[_0x259f19(0x33c)](),_0x20df97=await this['_startDocCollabCursor'](_0x227fb8);this[_0x259f19(0x2c2)][_0x259f19(0x3d6)](_0x20df97),this[_0x259f19(0x380)][_0x259f19(0x346)](_0x227fb8,_0x20df97);}),_0x414952['merge'](this[_0x25c3f0(0x278)][_0x25c3f0(0x27b)](_0x1b3401[_0x25c3f0(0x22d)][_0x25c3f0(0x2f7)]),this[_0x25c3f0(0x278)][_0x25c3f0(0x27b)](_0x1b3401[_0x25c3f0(0x22d)]['UNIVER_SHEET']))[_0x25c3f0(0x2ca)](_0x414952[_0x25c3f0(0x1b8)](this[_0x25c3f0(0x3d9)]))[_0x25c3f0(0x112)](_0x7fc65e=>{const _0x44f4b3=_0x25c3f0,_0xfeb755=_0x7fc65e[_0x44f4b3(0x33c)](),_0x4b15f1=this[_0x44f4b3(0x380)]['get'](_0xfeb755);_0x4b15f1&&(_0x4b15f1[_0x44f4b3(0x10c)](),this[_0x44f4b3(0x380)][_0x44f4b3(0x16c)](_0xfeb755));});}async[_0x72f170(0xd0)](_0x5ae2eb){const _0x5ecaf0=_0x72f170,_0x3da0bd=await this['_collabSessionService'][_0x5ecaf0(0x336)](_0x5ae2eb),_0x225bf2=this[_0x5ecaf0(0x397)]['createInstance'](_0x5ad150,_0x5ae2eb,_0x3da0bd);return _0x225bf2[_0x5ecaf0(0x16f)](),_0x225bf2;}async[_0x72f170(0xd5)](_0x3d934a){const _0x104a2f=_0x72f170,_0x122f93=await this[_0x104a2f(0x11f)][_0x104a2f(0x336)](_0x3d934a),_0x461c87=this['_injector']['createInstance'](_0x1cbd9f,_0x3d934a,_0x122f93);return _0x461c87[_0x104a2f(0x16f)](),_0x461c87;}};_0x16c4ba=_0x2949c4([_0x1b3401['OnLifecycle'](_0x1b3401[_0x72f170(0x404)][_0x72f170(0x3f7)],_0x16c4ba),_0x5edc2f(0x0,_0x1b3401[_0x72f170(0x335)]),_0x5edc2f(0x1,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32[_0x72f170(0x425)])),_0x5edc2f(0x2,_0x5c7b32[_0x72f170(0x3c0)](_0x588091[_0x72f170(0x1d6)]))],_0x16c4ba);const _0xe76e1b=0x14,_0x14aa67=0xc8,_0x5740f6=0x4,_0x3d1383=0x5;function _0x2577c2(_0x34da36,_0x1e9ef6){const _0x2613b8=_0x72f170;let {radius:_0x488fa9,width:_0x53978e,height:_0x201bbc}=_0x1e9ef6;_0x488fa9=_0x488fa9!=null?_0x488fa9:0x0,_0x53978e=_0x53978e!=null?_0x53978e:0x1e,_0x201bbc=_0x201bbc!=null?_0x201bbc:0x1e;let _0x5e4302=0x0,_0x51b5a6=0x0,_0x25039c=0x0;_0x5e4302=_0x51b5a6=_0x25039c=Math[_0x2613b8(0x2a6)](_0x488fa9,_0x53978e/0x2,_0x201bbc/0x2),_0x34da36['beginPath'](),_0x34da36['moveTo'](_0x5e4302,0x0),_0x34da36[_0x2613b8(0x2d0)](_0x53978e-_0x51b5a6,0x0),_0x34da36[_0x2613b8(0x30a)](_0x53978e-_0x51b5a6,_0x51b5a6,_0x51b5a6,Math['PI']*0x3/0x2,0x0,!0x1),_0x34da36[_0x2613b8(0x2d0)](_0x53978e,_0x201bbc-_0x25039c),_0x34da36[_0x2613b8(0x30a)](_0x53978e-_0x25039c,_0x201bbc-_0x25039c,_0x25039c,0x0,Math['PI']/0x2,!0x1),_0x34da36[_0x2613b8(0x2d0)](0x0,_0x201bbc),_0x34da36[_0x2613b8(0x2d0)](0x0,_0x5e4302),_0x34da36[_0x2613b8(0x30a)](_0x5e4302,_0x5e4302,_0x5e4302,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x34da36[_0x2613b8(0x2bc)](),_0x1e9ef6['fill']&&(_0x34da36['save'](),_0x34da36[_0x2613b8(0x27c)]=_0x1e9ef6[_0x2613b8(0x159)],_0x1e9ef6['fillRule']==='evenodd'?_0x34da36[_0x2613b8(0x159)](_0x2613b8(0x212)):_0x34da36[_0x2613b8(0x159)](),_0x34da36['restore']());}class _0x2d908c extends _0x24a900['Shape']{constructor(_0x45275e,_0x5363dd){const _0x399b46=_0x72f170;super(_0x45275e,_0x5363dd),_0x51e1d8(this,_0x399b46(0x21e)),_0x51e1d8(this,_0x399b46(0x2b5)),(this[_0x399b46(0x21e)]=_0x5363dd==null?void 0x0:_0x5363dd[_0x399b46(0x21e)],this['text']=_0x5363dd==null?void 0x0:_0x5363dd['text']);}static[_0x72f170(0x303)](_0x672154,_0x5475ff){const _0x5468f3=_0x72f170,{text:_0x2bbf0d,color:_0x94eacb}=_0x5475ff;_0x672154[_0x5468f3(0x396)](),_0x672154[_0x5468f3(0xee)]=_0x5468f3(0x1cb);const _0x22d39c=_0x672154['measureText'](_0x2bbf0d)[_0x5468f3(0x1d7)],_0x192043=Math[_0x5468f3(0x2a6)](_0x22d39c+0x2*_0x5740f6,_0x14aa67);_0x2577c2(_0x672154,{'height':_0xe76e1b,'radius':0x4,'width':_0x192043,'fill':_0x94eacb,'evented':!0x1}),_0x672154['fillStyle']='#FFF';const _0xcb094f=_0x5740f6,_0x472c28=_0xe76e1b-_0x3d1383,_0x9d75af=_0x14aa67-0x2*_0x5740f6;if(_0x22d39c>_0x9d75af){let _0xedd78b='',_0x4069a0=0x0;for(const _0x12049a of _0x2bbf0d){const _0x573c0b=_0x672154[_0x5468f3(0x359)](_0x12049a)[_0x5468f3(0x1d7)];if(_0x4069a0+_0x573c0b<=_0x9d75af-_0x672154[_0x5468f3(0x359)](_0x5468f3(0x28b))[_0x5468f3(0x1d7)])_0xedd78b+=_0x12049a,_0x4069a0+=_0x573c0b;else{_0xedd78b+=_0x5468f3(0x28b);break;}}_0x672154['fillText'](_0xedd78b,_0xcb094f,_0x472c28);}else _0x672154[_0x5468f3(0x40d)](_0x2bbf0d,_0xcb094f,_0x472c28);_0x672154[_0x5468f3(0x1bb)]();}[_0x72f170(0x372)](_0x2f69de){const _0x1cddeb=_0x72f170;_0x2d908c[_0x1cddeb(0x303)](_0x2f69de,this);}}const _0x4084be=0x1,_0x136d31=1.5;class _0x38c714 extends _0x24a900[_0x72f170(0x381)]{constructor(_0x4c6e84,_0x38cae4){const _0x10a462=_0x72f170;super(_0x4c6e84,_0x38cae4),_0x51e1d8(this,_0x10a462(0x357)),_0x51e1d8(this,_0x10a462(0x2ce),!0x1),_0x51e1d8(this,'_range'),_0x51e1d8(this,_0x10a462(0x3dd),''),_0x51e1d8(this,_0x10a462(0x103),'top'),(_0x38cae4&&this[_0x10a462(0xfc)](_0x38cae4),this['onPointerEnterObserver'][_0x10a462(0x3c1)](()=>this[_0x10a462(0xfc)]({'hovered':!0x0})),this[_0x10a462(0xc1)]['add'](()=>this[_0x10a462(0xfc)]({'hovered':!0x1})));}[_0x72f170(0xfc)](_0x2d1117){const _0x5b510d=_0x72f170;var _0x2a2988,_0x281609,_0x546f26,_0x405567,_0x3881d0;this['_color']=(_0x2a2988=_0x2d1117[_0x5b510d(0x21e)])!=null?_0x2a2988:this[_0x5b510d(0x357)],this[_0x5b510d(0x2ce)]=(_0x281609=_0x2d1117[_0x5b510d(0x2a0)])!=null?_0x281609:this[_0x5b510d(0x2ce)],this[_0x5b510d(0x248)]=(_0x546f26=_0x2d1117[_0x5b510d(0x23e)])!=null?_0x546f26:this[_0x5b510d(0x248)],this[_0x5b510d(0x3dd)]=(_0x405567=_0x2d1117['name'])!=null?_0x405567:this[_0x5b510d(0x3dd)],this[_0x5b510d(0x103)]=(_0x3881d0=_0x2d1117['labelPosition'])!=null?_0x3881d0:this['_labelPosition'],this[_0x5b510d(0x185)]({'width':_0x2d1117[_0x5b510d(0x1d7)],'height':_0x2d1117[_0x5b510d(0x168)]});}[_0x72f170(0x42d)](_0x4c5dcd){const _0x296069=_0x72f170,{row:_0x161b4f,column:_0x127f81}=_0x4c5dcd;if(_0x161b4f>=this[_0x296069(0x248)]['startRow']&&_0x161b4f<=this['_range']['endRow']&&_0x127f81>=this[_0x296069(0x248)]['startColumn']&&_0x127f81<=this[_0x296069(0x248)]['endColumn']){this[_0x296069(0xfc)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x72f170(0x236)](_0xfb6f5b){return!0x1;}[_0x72f170(0x372)](_0x52b52c){const _0x2b4c55=_0x72f170;_0x24a900[_0x2b4c55(0x2ee)][_0x2b4c55(0x303)](_0x52b52c,{'width':this['width'],'height':this[_0x2b4c55(0x168)],'strokeWidth':_0x136d31,'stroke':this[_0x2b4c55(0x357)],'evented':!0x1}),this['_hovered']&&(_0x52b52c[_0x2b4c55(0x396)](),_0x52b52c[_0x2b4c55(0x3a5)](0x1,0x0,0x0,0x1,this['width'],this[_0x2b4c55(0x103)]===_0x2b4c55(0x1bd)?0x0:-_0xe76e1b),_0x2d908c[_0x2b4c55(0x303)](_0x52b52c,{'text':this[_0x2b4c55(0x3dd)],'color':this['_color']}),_0x52b52c[_0x2b4c55(0x1bb)]());}}var _0xe46c5f=(_0x79ed88,_0x9ea320,_0x9eeabc,_0x47e825)=>{const _0x2f181e=_0x72f170;for(var _0x47237d=_0x9ea320,_0x240a60=_0x79ed88[_0x2f181e(0xbe)]-0x1,_0x51de72;_0x240a60>=0x0;_0x240a60--)(_0x51de72=_0x79ed88[_0x240a60])&&(_0x47237d=_0x51de72(_0x47237d)||_0x47237d);return _0x47237d;},_0x648114=(_0x25c2be,_0x3ef1f1)=>(_0x3ad0da,_0xc07d21)=>_0x3ef1f1(_0x3ad0da,_0xc07d21,_0x25c2be);let _0x26bb41=class extends _0x1b3401[_0x72f170(0x35c)]{constructor(_0xebff5e,_0x4a5968,_0x5045a6,_0x4df501,_0x557ebf){const _0x2d4b46=_0x72f170;super(),_0x51e1d8(this,_0x2d4b46(0x109),new Set()),_0x51e1d8(this,_0x2d4b46(0xd3),null),(this[_0x2d4b46(0x25e)]=_0xebff5e,this[_0x2d4b46(0x278)]=_0x4a5968,this['_renderManagerService']=_0x5045a6,this['_sheetSkeletonManagerService']=_0x4df501,this[_0x2d4b46(0x244)]=_0x557ebf,this['_init']());}[_0x72f170(0x3b0)](){const _0x565bbb=_0x72f170;this[_0x565bbb(0x34d)][_0x565bbb(0x31e)]['pipe'](_0x3151c5['takeUntil'](this['dispose$']),_0x3151c5[_0x565bbb(0x207)](_0xe7e8a7=>{const _0x41d001=_0x565bbb;if(_0xe7e8a7){const _0x5743f2=_0xe7e8a7['sheetId'];return _0x414952[_0x41d001(0x41a)](this[_0x41d001(0x25e)][_0x41d001(0x23b)](_0xe7e8a7[_0x41d001(0x350)]),this[_0x41d001(0x244)][_0x41d001(0x1c8)])[_0x41d001(0x2ca)](_0x3151c5[_0x41d001(0x250)](([_0x1bd1a8,_0x536662])=>{const _0x3736b3=_0x41d001,_0x2be1fc=new Map();return _0x1bd1a8[_0x3736b3(0x3bf)]((_0x2b7ba8,_0x1c4d8f)=>{const _0x4510ed=_0x3736b3;if(_0x2b7ba8[_0x4510ed(0x2ff)]===_0x5743f2){const _0xa331e5={..._0x2b7ba8};_0xa331e5[_0x4510ed(0x21e)]=_0x536662[_0x2b7ba8[_0x4510ed(0x21e)]],_0x2be1fc[_0x4510ed(0x346)](_0x1c4d8f,_0xa331e5);}}),{'skeleton':_0xe7e8a7,'cursors':_0x2be1fc};}));}return _0x414952['of']({'skeleton':null,'cursors':new Map()});}))[_0x565bbb(0x112)](({skeleton:_0x501519,cursors:_0x49dc23})=>{const _0x1bf16f=_0x565bbb;this[_0x1bf16f(0x356)](),_0x501519&&this['_updateCollabCursors'](_0x501519,_0x49dc23);}),this[_0x565bbb(0x34d)][_0x565bbb(0x31e)][_0x565bbb(0x112)](_0x40e761=>{const _0x5414a4=_0x565bbb;if(_0x40e761==null)return;const {unitId:_0x3a45ee,skeleton:_0x6d3fa9}=_0x40e761,_0x46ac65=this[_0x5414a4(0x10d)]['getRenderById'](_0x3a45ee);if(_0x46ac65==null)return;const {scene:_0x25dafe}=_0x46ac65;_0x25dafe['onPointerMoveObserver'][_0x5414a4(0x3c1)](_0x2c0384(_0x4ea05b=>{const _0x8e5c39=_0x5414a4;var _0xb98976,_0x139e90;const {offsetX:_0x2c5525,offsetY:_0x314a48}=_0x4ea05b,{x:_0x22fb73,y:_0x3cc17a}=_0x25dafe[_0x8e5c39(0x305)](_0x24a900[_0x8e5c39(0x188)][_0x8e5c39(0x31c)]([_0x2c5525,_0x314a48])),{scaleX:_0x541f1c,scaleY:_0xd45524}=_0x25dafe['getAncestorScale'](),_0x215cdb=_0x25dafe[_0x8e5c39(0x313)](_0x3c430e[_0x8e5c39(0x154)][_0x8e5c39(0x20d)]),_0x28f267=_0x25dafe[_0x8e5c39(0x317)](_0x24a900[_0x8e5c39(0x188)]['FromArray']([_0x22fb73,_0x3cc17a]),_0x215cdb),_0x473e7e=_0x6d3fa9[_0x8e5c39(0x260)](_0x2c5525,_0x314a48,_0x541f1c,_0xd45524,_0x28f267);((_0xb98976=this[_0x8e5c39(0xd3)])==null?void 0x0:_0xb98976['column'])===_0x473e7e['column']&&((_0x139e90=this['_lastPointer'])==null?void 0x0:_0x139e90[_0x8e5c39(0x1b1)])===_0x473e7e[_0x8e5c39(0x1b1)]||this['_cursors'][_0x8e5c39(0x3bf)](_0x58ab45=>{const _0x44c419=_0x8e5c39;_0x58ab45[_0x44c419(0x42d)](_0x473e7e);});},0x64));});}[_0x72f170(0x189)](_0x5b33e7,_0x4b0237){const _0x216356=_0x72f170;var _0xce444d;const _0x19d01a=(_0xce444d=this[_0x216356(0x34d)][_0x216356(0x406)]())==null?void 0x0:_0xce444d[_0x216356(0x341)];if(!_0x19d01a)return;const _0xaf3254=this[_0x216356(0x1ef)]();if(!_0xaf3254)return;this['_cursors']['forEach'](_0x79f1ef=>{const _0x5cf7e4=_0x216356;_0x79f1ef[_0x5cf7e4(0x2b3)]();});const {scene:_0x4d2eda}=_0xaf3254,_0x2247db=_0x4ebf97(Array[_0x216356(0x213)](_0x4b0237[_0x216356(0x1e2)]()))[_0x216356(0x250)](_0x449a02=>{const _0x114f16=_0x216356,{color:_0x311e91,range:_0x55480a,name:_0x42e7f8,selection:_0x9adfde,sheetID:_0x1ce55b}=_0x449a02,{startColumn:_0x3da37e,startRow:_0x43b9aa,endColumn:_0x482686,endRow:_0x5e5dac}=_0x55480a,_0x39ddf9=_0x3c430e[_0x114f16(0x343)](_0x43b9aa,_0x3da37e,_0x4d2eda,_0x19d01a),_0x393d99=_0x3c430e[_0x114f16(0x343)](_0x5e5dac,_0x482686,_0x4d2eda,_0x19d01a),{columnHeaderHeightAndMarginTop:_0x29b90c}=_0x19d01a,{startX:_0x4b6f15,startY:_0x275357}=_0x39ddf9,{endX:_0x5a9bd8,endY:_0xd19b5b}=_0x393d99,_0x19b9d2=_0x5a9bd8-_0x4b6f15,_0x34d4d3=_0xd19b5b-_0x275357,_0x5be05b={'labelPosition':_0x275357-_0x29b90c>=_0xe76e1b?_0x114f16(0x333):_0x114f16(0x1bd),'sheetID':_0x1ce55b,'range':_0x55480a,'color':_0x311e91,'name':_0x42e7f8,'selection':_0x9adfde,'left':_0x4b6f15,'top':_0x275357,'width':_0x19b9d2,'height':_0x34d4d3,'evented':!0x1};return new _0x38c714(_0x42e7f8,_0x5be05b);});_0x4d2eda['addObjects'](_0x2247db,_0x4084be),this[_0x216356(0x109)]=new Set(_0x2247db);}[_0x72f170(0x356)](){const _0x3fa588=_0x72f170;var _0x40e407;(_0x40e407=this[_0x3fa588(0x109)])==null||_0x40e407[_0x3fa588(0x3bf)](_0x46e6d1=>_0x46e6d1[_0x3fa588(0x10c)]());}[_0x72f170(0x1ef)](){const _0x2cae97=_0x72f170;return _0x3c430e['getSheetObject'](this[_0x2cae97(0x278)],this[_0x2cae97(0x10d)]);}};_0x26bb41=_0xe46c5f([_0x1b3401[_0x72f170(0x3e5)](_0x1b3401[_0x72f170(0x404)][_0x72f170(0x256)],_0x26bb41),_0x648114(0x0,_0x5c7b32[_0x72f170(0x3c0)](_0x16c4ba)),_0x648114(0x1,_0x1b3401[_0x72f170(0x335)]),_0x648114(0x2,_0x24a900[_0x72f170(0x3f3)]),_0x648114(0x3,_0x5c7b32['Inject'](_0x3c430e[_0x72f170(0x2ef)])),_0x648114(0x4,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401[_0x72f170(0x247)]))],_0x26bb41);function _0x4ebf97(_0x365aaa){const _0x537fb3=_0x72f170,_0x34f3cd=new Map();return _0x365aaa['forEach'](_0x327202=>{const _0x1abd92=_0x4733;if(_0x34f3cd[_0x1abd92(0x2de)](_0x327202[_0x1abd92(0x34b)])){const _0x1a97a2=_0x34f3cd[_0x1abd92(0x25f)](_0x327202[_0x1abd92(0x34b)]);_0x1a97a2['name']+=',\x20'+_0x327202['name'];}else _0x34f3cd['set'](_0x327202[_0x1abd92(0x34b)],_0x327202);}),Array[_0x537fb3(0x213)](_0x34f3cd['values']());}var _0x257c51=function(){const _0x542863=_0x72f170;return _0x257c51=Object[_0x542863(0x25a)]||function(_0x2b1fa2){const _0x359432=_0x542863;for(var _0xbd9fb5,_0x4c4821=0x1,_0x3f785d=arguments['length'];_0x4c4821<_0x3f785d;_0x4c4821++){_0xbd9fb5=arguments[_0x4c4821];for(var _0x477dda in _0xbd9fb5)Object[_0x359432(0x100)][_0x359432(0x323)][_0x359432(0x3a3)](_0xbd9fb5,_0x477dda)&&(_0x2b1fa2[_0x477dda]=_0xbd9fb5[_0x477dda]);}return _0x2b1fa2;},_0x257c51[_0x542863(0x1fd)](this,arguments);},_0x1bf748=function(_0x5e64d1,_0x5b2739){const _0x20fc48=_0x72f170;var _0x36fb22={};for(var _0x17de85 in _0x5e64d1)Object[_0x20fc48(0x100)][_0x20fc48(0x323)][_0x20fc48(0x3a3)](_0x5e64d1,_0x17de85)&&_0x5b2739['indexOf'](_0x17de85)<0x0&&(_0x36fb22[_0x17de85]=_0x5e64d1[_0x17de85]);if(_0x5e64d1!=null&&typeof Object[_0x20fc48(0x292)]==_0x20fc48(0x1a5)){for(var _0x49eb68=0x0,_0x17de85=Object['getOwnPropertySymbols'](_0x5e64d1);_0x49eb68<_0x17de85[_0x20fc48(0xbe)];_0x49eb68++)_0x5b2739[_0x20fc48(0x2a2)](_0x17de85[_0x49eb68])<0x0&&Object[_0x20fc48(0x100)]['propertyIsEnumerable'][_0x20fc48(0x3a3)](_0x5e64d1,_0x17de85[_0x49eb68])&&(_0x36fb22[_0x17de85[_0x49eb68]]=_0x5e64d1[_0x17de85[_0x49eb68]]);}return _0x36fb22;},_0x29fc60=_0x2abb2f['forwardRef'](function(_0x2110fd,_0x4ee516){const _0x458d63=_0x72f170;var _0x32ce08=_0x2110fd['icon'],_0x39017a=_0x2110fd['id'],_0x3e3a19=_0x2110fd[_0x458d63(0x17f)],_0x50c856=_0x2110fd[_0x458d63(0x1f7)],_0x36fc10=_0x1bf748(_0x2110fd,[_0x458d63(0x2b2),'id','className',_0x458d63(0x1f7)]),_0x47cca7=_0x458d63(0x1f2)['concat'](_0x39017a,'\x20')[_0x458d63(0x170)](_0x3e3a19||'')[_0x458d63(0x371)](),_0x119bf2=_0x2abb2f[_0x458d63(0x215)]('_'[_0x458d63(0x170)](_0x1a4fa5()));return _0x53a8c7(_0x32ce08,''[_0x458d63(0x170)](_0x39017a),{'defIds':_0x32ce08['defIds'],'idSuffix':_0x119bf2[_0x458d63(0x270)]},_0x257c51({'ref':_0x4ee516,'className':_0x47cca7},_0x36fc10),_0x50c856);});function _0x53a8c7(_0x2ecde0,_0x154ce0,_0x16ada0,_0xe373fe,_0x136d5f){const _0x1f9a36=_0x72f170;return _0x2abb2f['createElement'](_0x2ecde0[_0x1f9a36(0x3c2)],_0x257c51(_0x257c51({'key':_0x154ce0},_0x4e7848(_0x2ecde0,_0x16ada0,_0x136d5f)),_0xe373fe),(_0x5c5aab(_0x2ecde0,_0x16ada0)[_0x1f9a36(0x2cd)]||[])[_0x1f9a36(0x250)](function(_0x1bc159,_0x281f69){const _0x2b7911=_0x1f9a36;return _0x53a8c7(_0x1bc159,''[_0x2b7911(0x170)](_0x154ce0,'-')[_0x2b7911(0x170)](_0x2ecde0[_0x2b7911(0x3c2)],'-')[_0x2b7911(0x170)](_0x281f69),_0x16ada0,void 0x0,_0x136d5f);}));}function _0x4e7848(_0x3ecbb6,_0x2390c8,_0x34d241){const _0x1505e8=_0x72f170;var _0x36b409=_0x257c51({},_0x3ecbb6['attrs']);_0x34d241!=null&&_0x34d241[_0x1505e8(0x20b)]&&_0x36b409[_0x1505e8(0x159)]===_0x1505e8(0x20b)&&(_0x36b409[_0x1505e8(0x159)]=_0x34d241['colorChannel1']);var _0x43ed16=_0x2390c8[_0x1505e8(0x2be)];return!_0x43ed16||_0x43ed16[_0x1505e8(0xbe)]===0x0||(_0x3ecbb6['tag']===_0x1505e8(0x1d1)&&_0x36b409[_0x1505e8(0x1d9)]&&(_0x36b409[_0x1505e8(0x1d9)]=_0x36b409[_0x1505e8(0x1d9)]+_0x2390c8[_0x1505e8(0x2d1)]),Object['entries'](_0x36b409)[_0x1505e8(0x3bf)](function(_0x166a96){const _0x5f13ed=_0x1505e8;var _0x2f26df=_0x166a96[0x0],_0x3f88d0=_0x166a96[0x1];typeof _0x3f88d0=='string'&&(_0x36b409[_0x2f26df]=_0x3f88d0[_0x5f13ed(0x1bf)](/url\(#(.*)\)/,_0x5f13ed(0x3fb)['concat'](_0x2390c8[_0x5f13ed(0x2d1)],')')));})),_0x36b409;}function _0x5c5aab(_0x173044,_0x1e2cbf){const _0xc10b64=_0x72f170;var _0xdd10d9,_0x39d662=_0x1e2cbf[_0xc10b64(0x2be)];return!_0x39d662||_0x39d662[_0xc10b64(0xbe)]===0x0?_0x173044:_0x173044['tag']===_0xc10b64(0x242)&&(!((_0xdd10d9=_0x173044['children'])===null||_0xdd10d9===void 0x0)&&_0xdd10d9[_0xc10b64(0xbe)])?_0x257c51(_0x257c51({},_0x173044),{'children':_0x173044['children'][_0xc10b64(0x250)](function(_0x2a4700){const _0x785467=_0xc10b64;return typeof _0x2a4700[_0x785467(0x302)]['id']=='string'&&_0x39d662&&_0x39d662[_0x785467(0x2a2)](_0x2a4700['attrs']['id'])>-0x1?_0x257c51(_0x257c51({},_0x2a4700),{'attrs':_0x257c51(_0x257c51({},_0x2a4700[_0x785467(0x302)]),{'id':_0x2a4700['attrs']['id']+_0x1e2cbf[_0x785467(0x2d1)]})}):_0x2a4700;})}):_0x173044;}function _0x1a4fa5(){const _0x50547e=_0x72f170;return Math['random']()[_0x50547e(0x13d)](0x24)[_0x50547e(0x387)](0x2,0x8);}_0x29fc60[_0x72f170(0x2ba)]=_0x72f170(0x3ca);var _0x50ca98={'tag':_0x72f170(0x13b),'attrs':{'fill':'none','viewBox':_0x72f170(0x3e8),'width':'1em','height':_0x72f170(0x3cd)},'children':[{'tag':'g','attrs':{'clipPath':_0x72f170(0x3ff)},'children':[{'tag':_0x72f170(0x114),'attrs':{'stroke':_0x72f170(0x1f1),'d':_0x72f170(0x1b4),'strokeLinecap':_0x72f170(0x102),'strokeLinejoin':_0x72f170(0x102),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x72f170(0x12f),'attrs':{'id':_0x72f170(0x1b3)},'children':[{'tag':'path','attrs':{'fill':_0x72f170(0x420),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x72f170(0x1b3)]},_0x5a6176=_0x2abb2f[_0x72f170(0x299)](function(_0x516ffb,_0x844ff1){const _0x28b5ba=_0x72f170;return _0x2abb2f['createElement'](_0x29fc60,Object[_0x28b5ba(0x25a)]({},_0x516ffb,{'id':_0x28b5ba(0xe1),'ref':_0x844ff1,'icon':_0x50ca98}));});_0x5a6176[_0x72f170(0x2ba)]='OffLineSingle';var _0x1c9bd2={'tag':_0x72f170(0x13b),'attrs':{'fill':'none','viewBox':_0x72f170(0x2df),'width':'1em','height':_0x72f170(0x3cd)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x72f170(0x1f1),'d':_0x72f170(0x23a),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x72f170(0x242),'attrs':{},'children':[{'tag':_0x72f170(0x12f),'attrs':{'id':_0x72f170(0x186)},'children':[{'tag':'path','attrs':{'fill':_0x72f170(0x420),'d':'M0\x200H16V16H0z','transform':_0x72f170(0x141)}}]}]}],'defIds':[_0x72f170(0x186)]},_0x58eaa7=_0x2abb2f[_0x72f170(0x299)](function(_0x264612,_0x34a437){const _0x5eb5f2=_0x72f170;return _0x2abb2f[_0x5eb5f2(0x1ff)](_0x29fc60,Object[_0x5eb5f2(0x25a)]({},_0x264612,{'id':_0x5eb5f2(0x1f8),'ref':_0x34a437,'icon':_0x1c9bd2}));});_0x58eaa7['displayName']=_0x72f170(0x217);const _0x5f1593={'onlineStatusIcon':_0x72f170(0x258),'onlineStatusTitle':'univer-online-status-title','onlineStatus':_0x72f170(0x1b2),'online':_0x72f170(0x18f),'offline':'univer-offline'};function _0x4ab2a9(_0x525738){const _0x57506d=_0x72f170;switch(_0x525738){case _0x3a3bdf[_0x57506d(0x255)]:return _0x57506d(0x320);case _0x3a3bdf[_0x57506d(0x296)]:return _0x57506d(0x110);case _0x3a3bdf['FETCH_MISS']:return _0x57506d(0x3a6);case _0x3a3bdf[_0x57506d(0x26b)]:return'collabStatus.notCollab';case _0x3a3bdf[_0x57506d(0x409)]:case _0x3a3bdf[_0x57506d(0x41b)]:case _0x3a3bdf[_0x57506d(0x108)]:return _0x57506d(0x2d3);case _0x3a3bdf[_0x57506d(0x151)]:return'collabStatus.synced';}}function _0x27a980(_0x5adf38){const _0x23ed45=_0x72f170,{status$:_0x64fc68}=_0x5adf38,_0x51e032=_0x47170c[_0x23ed45(0x1dc)](_0x64fc68,_0x3a3bdf['NOT_COLLAB']),_0x1d1e66=_0x5396c4[_0x23ed45(0x202)](_0x1b3401[_0x23ed45(0x330)]),_0x23303e=_0x51e032!==_0x3a3bdf[_0x23ed45(0x255)],_0x6aca23=_0x1d1e66['t'](_0x4ab2a9(_0x51e032)),_0x50b30e=_0x167f4a(_0x5f1593['onlineStatus'],{[_0x5f1593[_0x23ed45(0x254)]]:_0x23303e,[_0x5f1593[_0x23ed45(0x2a7)]]:!_0x23303e}),_0x5ea34b=_0x23303e?_0x2abb2f['createElement'](_0x58eaa7,null):_0x2abb2f[_0x23ed45(0x1ff)](_0x5a6176,null);return _0x2abb2f['createElement'](_0x23ed45(0xec),{'className':_0x50b30e},_0x2abb2f['createElement'](_0x23ed45(0xec),{'className':_0x5f1593[_0x23ed45(0x365)]},_0x5ea34b),_0x2abb2f[_0x23ed45(0x1ff)](_0x23ed45(0xec),{'className':_0x5f1593[_0x23ed45(0x3e1)]},_0x6aca23));}var _0x285c50=(_0x262808,_0x40cc44,_0x33eea2,_0xf8fb0c)=>{const _0x61eae6=_0x72f170;for(var _0x2f74ad=_0x40cc44,_0x3990f2=_0x262808[_0x61eae6(0xbe)]-0x1,_0x567283;_0x3990f2>=0x0;_0x3990f2--)(_0x567283=_0x262808[_0x3990f2])&&(_0x2f74ad=_0x567283(_0x2f74ad)||_0x2f74ad);return _0x2f74ad;},_0x539b53=(_0x481894,_0x43814c)=>(_0x430cf8,_0x5f45bb)=>_0x43814c(_0x430cf8,_0x5f45bb,_0x481894);_0x588091[_0x72f170(0x34a)]=class extends _0x1b3401['Disposable']{constructor(_0x4cda94,_0x3ada9d,_0x1700ee,_0x4a2be0){const _0x4de01a=_0x72f170;super(),_0x51e1d8(this,_0x4de01a(0x221),new _0x414952['BehaviorSubject'](_0x3a3bdf['NOT_COLLAB'])),(this['_univerInstanceService']=_0x4cda94,this[_0x4de01a(0x2c3)]=_0x3ada9d,this[_0x4de01a(0x397)]=_0x1700ee,this[_0x4de01a(0x229)]=_0x4a2be0,this['_initStatusComponent'](),this['_initStatusListener']());}['_initStatusComponent'](){const _0x1a516b=_0x72f170;this[_0x1a516b(0xf8)](this['_uiPartsService']['registerComponent'](_0x47170c[_0x1a516b(0x3d3)][_0x1a516b(0x2f9)],()=>_0x5396c4[_0x1a516b(0x16e)](_0xb710f4({'status$':this[_0x1a516b(0x221)][_0x1a516b(0x348)]()}),this['_injector'])));}[_0x72f170(0x122)](){const _0x58cca3=_0x72f170;this[_0x58cca3(0xf8)](_0x1b3401[_0x58cca3(0x2ac)](this[_0x58cca3(0x278)][_0x58cca3(0x26a)]['pipe'](_0x414952[_0x58cca3(0x207)](()=>{const _0x1d607b=_0x58cca3,_0x4f2970=this[_0x1d607b(0x278)][_0x1d607b(0x378)]();return _0x4f2970?this[_0x1d607b(0x229)][_0x1d607b(0x33d)](_0x4f2970[_0x1d607b(0x33c)]()):_0x414952['of'](null);}),_0x414952[_0x58cca3(0x207)](_0x1867ca=>_0x1867ca?_0x1867ca[_0x58cca3(0x2ed)]:_0x414952['of'](_0x3a3bdf['NOT_COLLAB'])))[_0x58cca3(0x112)](_0x2abbe7=>{const _0x116a4f=_0x58cca3;this['_status$'][_0x116a4f(0x3d6)](_0x2abbe7);})));}},_0x588091['DesktopCollaborationStatusDisplayController']=_0x285c50([_0x1b3401['OnLifecycle'](_0x1b3401[_0x72f170(0x404)]['Starting'],_0x588091[_0x72f170(0x34a)]),_0x539b53(0x0,_0x1b3401[_0x72f170(0x335)]),_0x539b53(0x1,_0x47170c[_0x72f170(0x373)]),_0x539b53(0x2,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32['Injector'])),_0x539b53(0x3,_0x5c7b32[_0x72f170(0x3c0)](_0x588091[_0x72f170(0x295)]))],_0x588091[_0x72f170(0x34a)]);function _0xb710f4(_0x1ec5b6){const {status$:_0x485e58}=_0x1ec5b6;return function(){const _0x555511=_0x4733;return _0x2abb2f[_0x555511(0x1ff)](_0x27a980,{'status$':_0x485e58});};}const _0x159654=_0x5c7b32[_0x72f170(0x416)](_0x72f170(0x1da));var _0x3aca43=(_0x4ac5aa,_0x5326a0,_0x4eeebe,_0x49798f)=>{const _0x15a91e=_0x72f170;for(var _0x21881b=_0x5326a0,_0x10d1f9=_0x4ac5aa[_0x15a91e(0xbe)]-0x1,_0x216a28;_0x10d1f9>=0x0;_0x10d1f9--)(_0x216a28=_0x4ac5aa[_0x10d1f9])&&(_0x21881b=_0x216a28(_0x21881b)||_0x21881b);return _0x21881b;},_0x58466e=(_0x3f93f2,_0x3100e1)=>(_0x22351a,_0x4d8131)=>_0x3100e1(_0x22351a,_0x4d8131,_0x3f93f2);_0x588091[_0x72f170(0x3b4)]=class extends _0x1b3401['RxDisposable']{constructor(_0x496898,_0x5b7210,_0x14cb69,_0x3f5028,_0x3d5cf9,_0x69a37){const _0x496d68=_0x72f170;super(),this[_0x496d68(0xc3)]=_0x496898,this['_logService']=_0x5b7210,this[_0x496d68(0x219)]=_0x14cb69,this[_0x496d68(0x339)]=_0x3f5028,this[_0x496d68(0x366)]=_0x3d5cf9,_0x69a37?_0x69a37==null||_0x69a37[_0x496d68(0x21f)]()[_0x496d68(0x414)](()=>this[_0x496d68(0x3b0)]()):(this[_0x496d68(0x1a6)][_0x496d68(0xf2)](_0x496d68(0x2b4),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x496d68(0x3b0)]());}async['_init'](){const _0xe7806a=_0x72f170,_0xb75565=this[_0xe7806a(0xc3)]['getParam'](_0xe7806a(0x3e2)),_0x1736f8=this['_urlService'][_0xe7806a(0x328)](_0xe7806a(0x418));if(!_0xb75565||!_0x1736f8){this[_0xe7806a(0x1a6)][_0xe7806a(0xf2)]('[DataLoaderController]',_0xe7806a(0x282));return;}switch(Number(_0x1736f8)){case _0x2b3b4b['UNIVER_SHEET']:{const _0x2197d6=await this[_0xe7806a(0x331)](_0xb75565);this['_setupSubUnitSync'](_0x2197d6);break;}case _0x2b3b4b[_0xe7806a(0x2f7)]:{await this['_loadDoc'](_0xb75565);break;}default:{this[_0xe7806a(0x1a6)][_0xe7806a(0x2e6)]('[DataLoaderController]',_0xe7806a(0x130));break;}}}async[_0x72f170(0x1cd)](_0x259912){const _0x4b19b2=_0x72f170;await this[_0x4b19b2(0x3dc)](_0x259912),_0x259912[_0x4b19b2(0x32b)][_0x4b19b2(0x2ca)](_0x414952[_0x4b19b2(0x1b8)](this[_0x4b19b2(0x3d9)]))[_0x4b19b2(0x112)](_0x4f149a=>{const _0x302b49=_0x4b19b2;_0x4f149a&&this[_0x302b49(0x3a9)](_0x4f149a);}),this[_0x4b19b2(0xc3)][_0x4b19b2(0x2b0)][_0x4b19b2(0x2ca)](_0x414952[_0x4b19b2(0x1b8)](this[_0x4b19b2(0x3d9)]))['subscribe'](()=>this[_0x4b19b2(0x3dc)](_0x259912));}[_0x72f170(0x3a9)](_0x4a8778,_0x43f1df=!0x1){const _0x161e61=_0x72f170,_0x5335cf=this[_0x161e61(0xc3)][_0x161e61(0x328)]('subunit');_0x4a8778[_0x161e61(0x245)]()!==_0x5335cf&&this[_0x161e61(0xc3)][_0x161e61(0x3f0)](_0x161e61(0x105),_0x4a8778[_0x161e61(0x245)](),_0x43f1df);}async[_0x72f170(0x3dc)](_0x3e8a0a){const _0x593c02=_0x72f170,_0x3ba842=this[_0x593c02(0xc3)][_0x593c02(0x328)](_0x593c02(0x105));if(!_0x3ba842||!_0x3e8a0a[_0x593c02(0x271)](_0x3ba842)){this[_0x593c02(0x3a9)](_0x3e8a0a['getActiveSheet'](),!0x0);return;}_0x3e8a0a[_0x593c02(0x307)]()[_0x593c02(0x245)]()!==_0x3ba842&&await this[_0x593c02(0x219)]['executeCommand'](_0x51f05a[_0x593c02(0x160)]['id'],{'unitId':_0x3e8a0a[_0x593c02(0x33c)](),'subUnitId':_0x3ba842});}async['_loadSheet'](_0x3936ea){const _0x2eed01=_0x72f170;let _0x10b314=0x0;const _0x4414f0=await this[_0x2eed01(0x339)][_0x2eed01(0x3df)](_0x3936ea);return _0x4414f0&&(_0x4414f0[_0x2eed01(0x3c6)]||_0x4414f0['mutations'][_0x2eed01(0xbe)]!==0x0)&&(_0x10b314=_0x4414f0[_0x2eed01(0x377)]),_0x10b314===0x0&&this[_0x2eed01(0x1a6)][_0x2eed01(0xf2)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x2eed01(0x366)]['loadSheet'](_0x3936ea,_0x10b314);}async[_0x72f170(0x405)](_0x26dea8){const _0x8e9c1c=_0x72f170;let _0x568ca6=0x0;const _0x552047=await this[_0x8e9c1c(0x339)][_0x8e9c1c(0x3df)](_0x26dea8);return _0x552047&&(_0x552047[_0x8e9c1c(0x3c6)]||_0x552047[_0x8e9c1c(0x228)]['length']!==0x0)&&(_0x568ca6=_0x552047['rev']),_0x568ca6===0x0&&this['_logService'][_0x8e9c1c(0xf2)](_0x8e9c1c(0x2b4),_0x8e9c1c(0x22f)),this['_snapshotService'][_0x8e9c1c(0x3ab)](_0x26dea8,_0x568ca6);}},_0x588091[_0x72f170(0x3b4)]=_0x3aca43([_0x1b3401[_0x72f170(0x3e5)](_0x1b3401[_0x72f170(0x404)]['Starting'],_0x588091['DataLoaderController']),_0x58466e(0x0,_0x159654),_0x58466e(0x1,_0x1b3401['ILogService']),_0x58466e(0x2,_0x1b3401[_0x72f170(0x2cb)]),_0x58466e(0x3,_0x5c7b32[_0x72f170(0x3c0)](_0x588091[_0x72f170(0x3a7)])),_0x58466e(0x4,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695['SnapshotService'])),_0x58466e(0x5,_0x5c7b32[_0x72f170(0x12a)](_0xce538[_0x72f170(0x1a4)]))],_0x588091['DataLoaderController']);var _0x2253ab=(_0x50efc2,_0x2d6ad0,_0x41a6c0,_0x182afe)=>{const _0x3ccaf6=_0x72f170;for(var _0x12fc84=_0x2d6ad0,_0x1c9b88=_0x50efc2[_0x3ccaf6(0xbe)]-0x1,_0x4c7ba6;_0x1c9b88>=0x0;_0x1c9b88--)(_0x4c7ba6=_0x50efc2[_0x1c9b88])&&(_0x12fc84=_0x4c7ba6(_0x12fc84)||_0x12fc84);return _0x12fc84;},_0x2c120f=(_0x47811a,_0x4e2906)=>(_0x51f898,_0x5b0003)=>_0x4e2906(_0x51f898,_0x5b0003,_0x47811a);const _0x534228=_0x72f170(0x26c),_0x48dd98=_0x72f170(0x118);let _0x1e047e=class extends _0x1b3401['Disposable']{constructor(_0x2434a0,_0x13c141){const _0x5cc5b1=_0x72f170;super(),this['_univerInstanceService']=_0x2434a0,this['_configService']=_0x13c141,this[_0x5cc5b1(0x3b0)]();}[_0x72f170(0x3b0)](){const _0xca0dd9=_0x72f170;this[_0xca0dd9(0xf8)](_0x1b3401['toDisposable'](this[_0xca0dd9(0x278)][_0xca0dd9(0x26a)][_0xca0dd9(0x112)](()=>{const _0x570fc5=_0xca0dd9;var _0x14b77d;const _0x568db8=this[_0x570fc5(0x278)][_0x570fc5(0x378)]();let _0x508376=(_0x14b77d=this['_configService'][_0x570fc5(0x310)](_0x534228))!=null?_0x14b77d:_0x48dd98;_0x568db8 instanceof _0x1b3401['Workbook']&&(_0x508376=_0x568db8[_0x570fc5(0x403)]),document['title']=_0x508376;})));}};_0x1e047e=_0x2253ab([_0x1b3401[_0x72f170(0x3e5)](_0x1b3401[_0x72f170(0x404)][_0x72f170(0x2d8)],_0x1e047e),_0x2c120f(0x0,_0x1b3401['IUniverInstanceService']),_0x2c120f(0x1,_0x1b3401['IConfigService'])],_0x1e047e);const _0x588fab={'collabStatus':{'fetchMiss':_0x72f170(0x19f),'conflict':'编辑冲突','notCollab':_0x72f170(0x1dd),'synced':_0x72f170(0x389),'syncing':_0x72f170(0x1f6),'offline':'编辑将在本地保存'},'session':{'connection-failed':_0x72f170(0x2fe),'will-retry':'连接失败,将在一会儿之后重试','room-full':_0x72f170(0x42e),'collaboration-timeout':'服务器未响应你的协同请求,你的编辑将在本地保存'},'conflict':{'title':'协同冲突','content':_0x72f170(0x3d7)},'collaboration':{'single-unit':{'warning':_0x72f170(0x199)}},'auth':{'needGotoLoginAlert':_0x72f170(0x1a8)}};var _0x4b4207=(_0x46c2fb,_0x1ea0ae,_0x4bf9ad,_0x5d0237)=>{const _0x1b0e61=_0x72f170;for(var _0x5a3893=_0x1ea0ae,_0x1d12a6=_0x46c2fb[_0x1b0e61(0xbe)]-0x1,_0x3bf162;_0x1d12a6>=0x0;_0x1d12a6--)(_0x3bf162=_0x46c2fb[_0x1d12a6])&&(_0x5a3893=_0x3bf162(_0x5a3893)||_0x5a3893);return _0x5a3893;},_0x51d23b=(_0xeb0012,_0x12b077)=>(_0x5cd0b0,_0x5e6620)=>_0x12b077(_0x5cd0b0,_0x5e6620,_0xeb0012);const _0x256873='SNAPSHOT_SERVER_URL_KEY',_0x19f043='/universer-api/snapshot';let _0x4748a6=class{constructor(_0x176820,_0x12e4d4){const _0x389287=_0x72f170;this[_0x389287(0x1a2)]=_0x176820,this[_0x389287(0x201)]=_0x12e4d4;}async[_0x72f170(0x235)](_0x41bd23,_0x34227a){const _0x596d73=_0x72f170;var _0x4e892b;const {unitID:_0x1c2916,type:_0x258aa7,revision:_0x289b7b=0x0}=_0x34227a,_0x9611d4=this[_0x596d73(0x19c)]()+'/'+_0x258aa7+_0x596d73(0x1d3)+_0x1c2916+_0x596d73(0x1cf)+(_0x289b7b===0x1?0x0:_0x289b7b),_0x38bd84=(await this[_0x596d73(0x201)][_0x596d73(0x25f)](_0x9611d4))[_0x596d73(0x1e9)],_0x2e5c9e=(_0x4e892b=_0x38bd84[_0x596d73(0x177)])==null?void 0x0:_0x4e892b[_0x596d73(0x34c)];if(_0x2e5c9e){const _0x18a1e3=_0x2e5c9e==null?void 0x0:_0x2e5c9e[_0x596d73(0x388)],_0x95c543=_0x1b3401['textEncoder'][_0x596d73(0xed)](_0x1b3401[_0x596d73(0xc6)](_0x18a1e3));_0x2e5c9e[_0x596d73(0x388)]=_0x95c543,Object[_0x596d73(0x3b5)](_0x2e5c9e[_0x596d73(0x422)])[_0x596d73(0x3bf)](([,_0x3df12d])=>{const _0x34eacc=_0x596d73,_0xfae7d8=_0x3df12d[_0x34eacc(0x388)],_0x11beb4=_0x1b3401[_0x34eacc(0x13a)]['encode'](_0x1b3401[_0x34eacc(0xc6)](_0xfae7d8));_0x3df12d[_0x34eacc(0x388)]=_0x11beb4;});}return _0x38bd84;}async[_0x72f170(0x2f4)](_0x46eed6,_0x3ffc95){const _0x6ab602=_0x72f170,{unitID:_0x19513f,type:_0x55c3a2,blockID:_0x104c87}=_0x3ffc95,_0x4b782f=this[_0x6ab602(0x19c)]()+'/'+_0x55c3a2+'/unit/'+_0x19513f+_0x6ab602(0x2cc)+_0x104c87;return(await this[_0x6ab602(0x201)][_0x6ab602(0x25f)](_0x4b782f))['body'];}async[_0x72f170(0x145)](_0x4e2198,_0x3facb8){const _0x5d8901=_0x72f170,{unitID:_0x497995,type:_0x38cadf,from:_0x14543f,to:_0x3c9b39}=_0x3facb8,_0x2ddfc6=this[_0x5d8901(0x19c)]()+'/'+_0x38cadf+_0x5d8901(0x1d3)+_0x497995+_0x5d8901(0x300)+_0x14543f+'&to='+_0x3c9b39;return(await this[_0x5d8901(0x201)][_0x5d8901(0x25f)](_0x2ddfc6))[_0x5d8901(0x1e9)];}[_0x72f170(0x19c)](){var _0x2b09c8;return(_0x2b09c8=this['_configService']['getConfig'](_0x256873))!=null?_0x2b09c8:_0x19f043;}async[_0x72f170(0x2a1)](_0xd3b970,_0x44ff3e){const _0x438fbe=_0x72f170,_0x432226='/universer-api/snapshot/'+_0x44ff3e[_0x438fbe(0x418)]+_0x438fbe(0x1d3)+_0x44ff3e[_0x438fbe(0x17d)]+_0x438fbe(0x3a1);return(await this[_0x438fbe(0x201)][_0x438fbe(0x25f)](_0x432226,{'params':{'resourceId':JSON['stringify'](_0x44ff3e[_0x438fbe(0x39b)])}}))[_0x438fbe(0x1e9)];}[_0x72f170(0x3c3)](){const _0x5e4fa3=_0x72f170;throw new Error(_0x5e4fa3(0x3a4));}[_0x72f170(0x120)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x72f170(0x230)](){const _0x1a2fde=_0x72f170;throw new Error(_0x1a2fde(0x3a4));}};_0x4748a6=_0x4b4207([_0x51d23b(0x0,_0x1b3401[_0x72f170(0x1e4)]),_0x51d23b(0x1,_0x5c7b32[_0x72f170(0x3c0)](_0x2b3eab[_0x72f170(0x246)]))],_0x4748a6);var _0x12e6f4=(_0xceaa57,_0x30cdf8,_0x34c5f0,_0x1b4560)=>{for(var _0x9a7d65=_0x30cdf8,_0x4bb1c4=_0xceaa57['length']-0x1,_0x519975;_0x4bb1c4>=0x0;_0x4bb1c4--)(_0x519975=_0xceaa57[_0x4bb1c4])&&(_0x9a7d65=_0x519975(_0x9a7d65)||_0x9a7d65);return _0x9a7d65;},_0x28f285=(_0x1181d7,_0x43065f)=>(_0x4d2f6e,_0x3b819f)=>_0x43065f(_0x4d2f6e,_0x3b819f,_0x1181d7);let _0x2ff833=class extends _0x1b3401[_0x72f170(0x2ae)]{constructor(_0x242fc4,_0x563e81,_0x51004a,_0x39e7d0,_0x4bb9b0){const _0xddb3a7=_0x72f170;super(_0x242fc4,_0x563e81,_0x51004a),this[_0xddb3a7(0x3f8)]=_0x39e7d0,this[_0xddb3a7(0x1a6)]=_0x4bb9b0;}[_0x72f170(0x3e0)](_0x4f30ad,_0x2e6824){const _0x4ab4a8=_0x72f170,_0x4b4d94=this['_getUndoStack'](_0x4f30ad);if(_0x4b4d94)try{const _0x5d4dfd=this[_0x4ab4a8(0x2f6)](_0x4b4d94,_0x2e6824);this[_0x4ab4a8(0xff)](_0x4f30ad,_0x5d4dfd);}catch(_0x3f7279){this[_0x4ab4a8(0x1a6)][_0x4ab4a8(0x2e6)]('[CollaborationUndoRedoService]',_0x3f7279),this[_0x4ab4a8(0x3da)](_0x4f30ad);}const _0x4b4d9d=this[_0x4ab4a8(0x2aa)](_0x4f30ad);if(_0x4b4d9d)try{const _0x2e1417=this[_0x4ab4a8(0x2f6)](_0x4b4d9d,_0x2e6824);this[_0x4ab4a8(0x10b)](_0x4f30ad,_0x2e1417);}catch(_0x504888){this['_logService'][_0x4ab4a8(0x2e6)](_0x504888),this[_0x4ab4a8(0x232)](_0x4f30ad);}}[_0x72f170(0x3da)](_0x2e29bd){const _0x5c7cb0=_0x72f170,_0x58b119=this[_0x5c7cb0(0x3f4)](_0x2e29bd);_0x58b119&&(_0x58b119['length']=0x0,this[_0x5c7cb0(0x3a0)]());}[_0x72f170(0x232)](_0x28bd7d){const _0x4845ef=_0x72f170,_0x3aa482=this['_getRedoStack'](_0x28bd7d);_0x3aa482&&(_0x3aa482[_0x4845ef(0xbe)]=0x0,this[_0x4845ef(0x3a0)]());}[_0x72f170(0xff)](_0x2c60b5,_0x36dd1a){const _0x5197ff=_0x72f170;this[_0x5197ff(0xc5)][_0x5197ff(0x346)](_0x2c60b5,_0x36dd1a),this['_updateStatus']();}[_0x72f170(0x10b)](_0x5f2f1b,_0x136f5b){this['_redoStacks']['set'](_0x5f2f1b,_0x136f5b),this['_updateStatus']();}[_0x72f170(0x2f6)](_0x4c6d61,_0x420e07){const _0x15f870=_0x72f170,_0x175007=[];let _0x1e9660=_0x420e07,_0x2ac037=_0x420e07;for(let _0x2a08d2=_0x4c6d61[_0x15f870(0xbe)]-0x1;_0x2a08d2>=0x0;_0x2a08d2--){const {unitID:_0x344105,undoMutations:_0x5b9582,redoMutations:_0x3d49a2}=_0x4c6d61[_0x2a08d2],_0x573674=this[_0x15f870(0x3f8)][_0x15f870(0x132)](_0x1e9660,_0x5b9582),_0x235da6=this[_0x15f870(0x3f8)][_0x15f870(0x132)](_0x2ac037,_0x3d49a2);if(_0x30a695[_0x15f870(0x226)](_0x573674)||_0x30a695['isTransformMutationsWithChangesetFailure'](_0x235da6)){this[_0x15f870(0x1a6)][_0x15f870(0x2e6)](_0x15f870(0xcc),_0x15f870(0x1ec),_0x573674,_0x235da6);break;}_0x1e9660=_0x573674['c1Prime'],_0x2ac037=_0x235da6['c1Prime'],_0x175007['push']({'unitID':_0x344105,'undoMutations':_0x573674['m2Prime'],'redoMutations':_0x235da6[_0x15f870(0x268)]});}return _0x175007[_0x15f870(0x412)]();}};_0x2ff833=_0x12e6f4([_0x28f285(0x0,_0x1b3401[_0x72f170(0x335)]),_0x28f285(0x1,_0x1b3401['ICommandService']),_0x28f285(0x2,_0x1b3401[_0x72f170(0x36b)]),_0x28f285(0x3,_0x30a695[_0x72f170(0x2dc)]),_0x28f285(0x4,_0x1b3401[_0x72f170(0x29c)])],_0x2ff833);class _0xd91f6d extends _0x1b3401[_0x72f170(0x35c)]{constructor(){const _0x431fc7=_0x72f170;super(),_0x51e1d8(this,_0x431fc7(0x2b0)),this[_0x431fc7(0x2b0)]=_0x414952['fromEvent'](window,_0x431fc7(0x161))['pipe'](_0x414952['takeUntil'](this['dispose$']),_0x414952[_0x431fc7(0x15b)](0x1),_0x414952[_0x431fc7(0x311)](void 0x0));}[_0x72f170(0x3f0)](_0x211cf2,_0x5aba2a,_0x302953=!0x1){const _0x3a1ec0=_0x72f170,_0x13aebc=new URL(window[_0x3a1ec0(0x18b)][_0x3a1ec0(0x195)]);_0x13aebc['searchParams'][_0x3a1ec0(0x346)](_0x211cf2,_0x5aba2a),_0x302953?window[_0x3a1ec0(0x2fa)][_0x3a1ec0(0x209)]('','',_0x13aebc[_0x3a1ec0(0x13d)]()):window[_0x3a1ec0(0x2fa)][_0x3a1ec0(0x1fc)]('','',_0x13aebc[_0x3a1ec0(0x13d)]());}[_0x72f170(0x352)](_0x16b546,_0x254a7c=!0x1){const _0x5a3e=_0x72f170,_0x194cdd=new URL(window[_0x5a3e(0x18b)]['href']);_0x194cdd[_0x5a3e(0x34f)][_0x5a3e(0x16c)](_0x16b546),_0x254a7c?window[_0x5a3e(0x2fa)][_0x5a3e(0x209)]('','',_0x194cdd[_0x5a3e(0x13d)]()):window[_0x5a3e(0x2fa)][_0x5a3e(0x1fc)]('','',_0x194cdd[_0x5a3e(0x13d)]());}[_0x72f170(0x328)](_0x56f05f){const _0x23e5f0=_0x72f170;var _0x4f758a;return(_0x4f758a=new URL(window[_0x23e5f0(0x18b)]['href'])[_0x23e5f0(0x34f)][_0x23e5f0(0x25f)](_0x56f05f))!=null?_0x4f758a:void 0x0;}}const _0x3c7281=_0x72f170(0x1c2),_0x502986=_0x72f170(0x12c),_0xa9bee3=0x6,_0x3bcbcd=1.5,_0x3621ef=0x4,_0x3a3862=1.5,_0x23f052=_0x72f170(0x355);class _0x3df4b6{constructor(_0x23c682,_0x5047b1,_0xebffb9,_0x39523d){const _0xc86a5a=_0x72f170;_0x51e1d8(this,'_shapes',[]),_0x51e1d8(this,'_anchor',null),_0x51e1d8(this,'_textBubble',null),_0x51e1d8(this,_0xc86a5a(0x1e7),null),_0x51e1d8(this,_0xc86a5a(0x14c),null),_0x51e1d8(this,'_eventUnsubscribe',null),(this[_0xc86a5a(0x204)]=_0x23c682,this['_scene']=_0x5047b1,this[_0xc86a5a(0x26d)]=_0xebffb9,this[_0xc86a5a(0x309)]=_0x39523d,this[_0xc86a5a(0x116)]());}set[_0x72f170(0x316)](_0xdfeb33){const _0x361e55=_0x72f170;_0xdfeb33?(this['_anchorDot']&&this[_0x361e55(0x1e7)][_0x361e55(0xe5)](),this[_0x361e55(0x1c6)]&&this['_textBubble']['show']()):(this[_0x361e55(0x1e7)]&&this['_anchorDot'][_0x361e55(0x338)](),this[_0x361e55(0x1c6)]&&this['_textBubble'][_0x361e55(0xe5)]());}[_0x72f170(0x10c)](){const _0xcf08d8=_0x72f170;for(const _0x56df62 of this['_shapes'])_0x56df62[_0xcf08d8(0x10c)]();this[_0xcf08d8(0x1c6)]&&this[_0xcf08d8(0x1c6)][_0xcf08d8(0x10c)](),this['_anchorDot']&&this[_0xcf08d8(0x1e7)]['dispose'](),this['_anchor']&&this[_0xcf08d8(0x194)][_0xcf08d8(0x10c)](),this[_0xcf08d8(0x115)]&&this['_eventUnsubscribe']();}['_render'](){const _0x3e878a=_0x72f170,{_docSkeleton:_0xb3375f,_document:_0x2b8091}=this,{color:_0x462fc6,name:_0x5714a6,ranges:_0x1c851c}=this[_0x3e878a(0x204)],_0x3e6ed8=_0x2b8091[_0x3e878a(0x41c)](),{docsLeft:_0x5c8913,docsTop:_0x1dbc50}=_0x3e6ed8,_0x5531b5=new _0x24a900[(_0x3e878a(0x257))](_0x3e6ed8,_0xb3375f);for(const {startOffset:_0x3d9f07,endOffset:_0x537a78,collapsed:_0x5b1d48,isActive:_0xfed8f6}of _0x1c851c){const _0x3d771e=_0xb3375f[_0x3e878a(0x1ed)](_0x3d9f07),_0x189285=_0xb3375f[_0x3e878a(0x1ed)](_0x537a78);if(_0xfed8f6){const {contentBoxPointGroup:_0x476d94}=_0x5531b5[_0x3e878a(0x1cc)](_0x189285,_0x189285);if(_0x476d94[_0x3e878a(0xbe)]===0x0)continue;this[_0x3e878a(0x2d7)](_0x462fc6,_0x476d94,_0x5c8913,_0x1dbc50,_0x5714a6),this['_eventUnsubscribe']=this['_handleHover']();}if(!_0x5b1d48){const {contentBoxPointGroup:_0x43d93c}=_0x5531b5['getRangePointData'](_0x3d771e,_0x189285);if(_0x43d93c[_0x3e878a(0xbe)]===0x0)continue;this[_0x3e878a(0xd1)](_0x462fc6,_0x43d93c,_0x5c8913,_0x1dbc50);}}}[_0x72f170(0x2d7)](_0x1a1323,_0x33fe88,_0x19e9c1,_0x4b4711,_0x3cc03b){const _0x311a76=_0x72f170,_0x3ddd38=this[_0x311a76(0x1aa)](_0x33fe88),{left:_0x1e50d1,top:_0x33fce6,height:_0xd16da0}=_0x3ddd38,_0x5530c9=this[_0x311a76(0x3bc)](),_0x4c2daf=_0x3a3862/_0x5530c9,_0x5248a3=new _0x24a900[(_0x311a76(0x2ee))](_0x3c7281+_0x1b3401[_0x311a76(0x39f)][_0x311a76(0x32e)](_0xa9bee3),{'left':_0x1e50d1+_0x19e9c1-_0x4c2daf,'top':_0x33fce6+_0x4b4711,'height':_0xd16da0,'width':_0x3bcbcd,'fill':_0x1a1323||_0x24a900['getColor'](_0x1b3401[_0x311a76(0x143)][_0x311a76(0x38d)],0x0),'strokeWidth':_0x4c2daf,'stroke':_0x23f052,'evented':!0x0});this[_0x311a76(0x194)]=_0x5248a3,this['_scene'][_0x311a76(0x327)](_0x5248a3,_0x24a900['TEXT_RANGE_LAYER_INDEX']);const _0x24741e=new _0x24a900['Rect'](_0x3c7281+_0x1b3401[_0x311a76(0x39f)][_0x311a76(0x32e)](_0xa9bee3),{'left':_0x1e50d1+_0x19e9c1-_0x4c2daf,'top':_0x33fce6+_0x4b4711-_0x3621ef/0x2,'height':_0x3621ef,'width':_0x3621ef,'fill':_0x1a1323||_0x24a900[_0x311a76(0x157)](_0x1b3401[_0x311a76(0x143)][_0x311a76(0x38d)],0x0),'strokeWidth':0x0,'stroke':_0x1a1323||_0x24a900[_0x311a76(0x157)](_0x1b3401['COLORS'][_0x311a76(0x38d)],0x0),'evented':!0x1});this['_anchorDot']=_0x24741e,this[_0x311a76(0x11d)][_0x311a76(0x327)](_0x24741e,_0x24a900[_0x311a76(0xe7)]);const _0x45b6a3=new _0x2d908c(_0x3c7281+_0x1b3401[_0x311a76(0x39f)][_0x311a76(0x32e)](_0xa9bee3),{'left':_0x1e50d1+_0x19e9c1-_0x4c2daf,'top':_0x33fce6+_0x4b4711-_0xe76e1b,'text':_0x3cc03b,'color':_0x1a1323});this[_0x311a76(0x1c6)]=_0x45b6a3,this['_scene'][_0x311a76(0x327)](_0x45b6a3,_0x24a900[_0x311a76(0xe7)]),this['_hover']=!0x1;}[_0x72f170(0x172)](){const _0x476bbf=_0x72f170,_0x2284df=this[_0x476bbf(0x194)][_0x476bbf(0x334)][_0x476bbf(0x3c1)](()=>{const _0x23f3bd=_0x476bbf;this[_0x23f3bd(0x316)]=!0x0;}),_0x17ff3a=this[_0x476bbf(0x194)][_0x476bbf(0xc1)][_0x476bbf(0x3c1)](()=>{const _0x45b160=_0x476bbf;this[_0x45b160(0x14c)]&&clearTimeout(this['_hideTimer']),this[_0x45b160(0x14c)]=setTimeout(()=>{const _0x2f7295=_0x45b160;this[_0x2f7295(0x316)]=!0x1;},0x7d0);});return()=>{const _0x1f029a=_0x476bbf;var _0x22e113,_0x82cb2f;(_0x22e113=this[_0x1f029a(0x194)])==null||_0x22e113['onPointerEnterObserver'][_0x1f029a(0x419)](_0x2284df),(_0x82cb2f=this[_0x1f029a(0x194)])==null||_0x82cb2f[_0x1f029a(0xc1)][_0x1f029a(0x419)](_0x17ff3a);};}[_0x72f170(0xd1)](_0x3d4bcb,_0x402e3f,_0xcac117,_0x2f9c93){const _0x1ef113=_0x72f170,_0x1d2fea=new _0x1b3401[(_0x1ef113(0x233))](_0x3d4bcb)['setAlpha'](0.2)[_0x1ef113(0x11b)](),_0x18118d=new _0x24a900[(_0x1ef113(0x38c))](_0x502986+_0x1b3401[_0x1ef113(0x39f)][_0x1ef113(0x32e)](_0xa9bee3),{'pointsGroup':_0x402e3f,'fill':_0x1d2fea||_0x24a900[_0x1ef113(0x157)](_0x1b3401[_0x1ef113(0x143)][_0x1ef113(0x38d)],0.2),'left':_0xcac117,'top':_0x2f9c93,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1ef113(0x169)][_0x1ef113(0x2c7)](_0x18118d),this[_0x1ef113(0x11d)]['addObject'](_0x18118d,_0x24a900[_0x1ef113(0xe7)]);}[_0x72f170(0x1aa)](_0x5b2352){const _0x460a92=_0x5b2352[0x0],_0x4fdcdf=_0x460a92[0x0],_0x7f72e7=_0x460a92[0x2],{x:_0x2b8f0f,y:_0x16ec89}=_0x4fdcdf,{x:_0x175752,y:_0x2540a4}=_0x7f72e7;return{'left':_0x2b8f0f,'top':_0x16ec89,'width':_0x175752-_0x2b8f0f,'height':_0x2540a4-_0x16ec89};}['_getScale'](){const _0x433f89=_0x72f170,{scaleX:_0x27eca5,scaleY:_0x5d49b3}=this[_0x433f89(0x11d)][_0x433f89(0x423)]();return Math[_0x433f89(0x383)](_0x27eca5,_0x5d49b3);}}var _0x372152=(_0x976448,_0x379980,_0xd5f30e,_0x147f59)=>{const _0x54a7bc=_0x72f170;for(var _0x3fadfc=_0x379980,_0x2ed2ef=_0x976448[_0x54a7bc(0xbe)]-0x1,_0x55c949;_0x2ed2ef>=0x0;_0x2ed2ef--)(_0x55c949=_0x976448[_0x2ed2ef])&&(_0x3fadfc=_0x55c949(_0x3fadfc)||_0x3fadfc);return _0x3fadfc;},_0x42d0f7=(_0x136881,_0x8545b1)=>(_0xef9b03,_0x1d657d)=>_0x8545b1(_0xef9b03,_0x1d657d,_0x136881);let _0x3bebf7=class extends _0x1b3401[_0x72f170(0x35c)]{constructor(_0x5f925,_0x508748,_0x422c69,_0x5f0de3,_0x2b0071){const _0x58701b=_0x72f170;super(),_0x51e1d8(this,'_cursors',[]),(this['_collabCursorController']=_0x5f925,this['_univerInstanceService']=_0x508748,this[_0x58701b(0x10d)]=_0x422c69,this[_0x58701b(0xd6)]=_0x5f0de3,this[_0x58701b(0x244)]=_0x2b0071,this[_0x58701b(0x3b0)]());}[_0x72f170(0x3b0)](){const _0x336668=_0x72f170;this[_0x336668(0xd6)][_0x336668(0x31e)]['pipe'](_0x3151c5[_0x336668(0x1b8)](this[_0x336668(0x3d9)]),_0x3151c5[_0x336668(0x207)](_0x111a3a=>{const _0x10e955=_0x336668;if(_0x111a3a){const {unitId:_0x44a008}=_0x111a3a;return _0x414952[_0x10e955(0x41a)](this[_0x10e955(0x25e)][_0x10e955(0x23b)](_0x44a008),this[_0x10e955(0x244)][_0x10e955(0x1c8)])[_0x10e955(0x2ca)](_0x3151c5[_0x10e955(0x250)](([_0x38bb6a,_0x4a2623])=>({'skeleton':_0x111a3a,'cursors':[..._0x38bb6a['values']()][_0x10e955(0x2b1)](_0x4df5df=>({..._0x4df5df,'color':_0x4a2623[_0x4df5df['color']]}))})));}return _0x414952['of']({'skeleton':null,'cursors':[]});}))[_0x336668(0x112)](({skeleton:_0x5f5290,cursors:_0xe481ae})=>{const _0x20f51d=_0x336668;this['_removeCollabCursors'](),_0x5f5290&&this[_0x20f51d(0x189)](_0x5f5290[_0x20f51d(0x341)],_0xe481ae);});}[_0x72f170(0x189)](_0x52e5bb,_0x3d77ea){const _0x345b79=_0x72f170,_0x3d2c3a=this[_0x345b79(0x3ee)]();if(_0x3d2c3a==null)return;const {scene:_0x1edfd2,document:_0x2fc04a}=_0x3d2c3a,_0x7df044=_0x3d77ea[_0x345b79(0x250)](_0x15d640=>new _0x3df4b6(_0x15d640,_0x1edfd2,_0x52e5bb,_0x2fc04a));this[_0x345b79(0x109)]=_0x7df044;}[_0x72f170(0x356)](){const _0x39d8f5=_0x72f170;this['_cursors'][_0x39d8f5(0x3bf)](_0x30c779=>_0x30c779[_0x39d8f5(0x10c)]()),this[_0x39d8f5(0x109)]=[];}[_0x72f170(0x3ee)](){const _0x3016cc=_0x72f170;return _0x54860c[_0x3016cc(0x29d)](this['_univerInstanceService'],this[_0x3016cc(0x10d)]);}};_0x3bebf7=_0x372152([_0x1b3401[_0x72f170(0x3e5)](_0x1b3401['LifecycleStages']['Steady'],_0x3bebf7),_0x42d0f7(0x0,_0x5c7b32[_0x72f170(0x3c0)](_0x16c4ba)),_0x42d0f7(0x1,_0x1b3401[_0x72f170(0x335)]),_0x42d0f7(0x2,_0x24a900[_0x72f170(0x3f3)]),_0x42d0f7(0x3,_0x5c7b32[_0x72f170(0x3c0)](_0x54860c[_0x72f170(0x332)])),_0x42d0f7(0x4,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401['ThemeService']))],_0x3bebf7);var _0x474aee=(_0x3caac9,_0x4fa296,_0x4fe607,_0x32ffe0)=>{const _0x73e352=_0x72f170;for(var _0xaa971a=_0x4fa296,_0x2c0803=_0x3caac9[_0x73e352(0xbe)]-0x1,_0x4ad022;_0x2c0803>=0x0;_0x2c0803--)(_0x4ad022=_0x3caac9[_0x2c0803])&&(_0xaa971a=_0x4ad022(_0xaa971a)||_0xaa971a);return _0xaa971a;},_0x4d01bc=(_0x2e8df0,_0x51284a)=>(_0x4e15f9,_0x3cfc5d)=>_0x51284a(_0x4e15f9,_0x3cfc5d,_0x2e8df0);const _0x3395c8=_0x72f170(0x139),_0x334f37=_0x72f170(0x407);let _0x2f5fe9=class{constructor(_0x17500e,_0x8a45e0,_0x56b77e){const _0x3e419d=_0x72f170;this[_0x3e419d(0x1a2)]=_0x17500e,this[_0x3e419d(0x201)]=_0x8a45e0,this['localeService']=_0x56b77e,this[_0x3e419d(0x16f)]();}['init'](){const _0x599df9=_0x72f170;this[_0x599df9(0x201)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x36208b,_0x41904b)=>_0x41904b(_0x36208b)[_0x599df9(0x2ca)](_0x414952[_0x599df9(0x2bb)](async _0x3106a3=>{const _0x4ecb2f=_0x599df9;if(_0x3106a3[_0x4ecb2f(0x38e)]===0x191&&window[_0x4ecb2f(0x1ca)](this[_0x4ecb2f(0x2fd)]['t'](_0x4ecb2f(0x318)))){const _0x2e089d=window['encodeURIComponent'](window['location'][_0x4ecb2f(0x195)]);window['location'][_0x4ecb2f(0x195)]=this[_0x4ecb2f(0x148)]()+_0x4ecb2f(0xfb)+_0x2e089d;}return _0x3106a3;}))});}[_0x72f170(0x148)](){const _0x53f997=_0x72f170;var _0x1cedf8;return(_0x1cedf8=this[_0x53f997(0x1a2)][_0x53f997(0x310)](_0x3395c8))!=null?_0x1cedf8:_0x334f37;}};_0x2f5fe9=_0x474aee([_0x4d01bc(0x0,_0x1b3401[_0x72f170(0x1e4)]),_0x4d01bc(0x1,_0x5c7b32['Inject'](_0x2b3eab['HTTPService'])),_0x4d01bc(0x2,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401[_0x72f170(0x330)]))],_0x2f5fe9);var _0x259b4a=(_0x4b3d30,_0x49a8ad,_0x53efd7,_0x227269)=>{const _0x49510e=_0x72f170;for(var _0xd09767=_0x49a8ad,_0x433dc5=_0x4b3d30[_0x49510e(0xbe)]-0x1,_0x580259;_0x433dc5>=0x0;_0x433dc5--)(_0x580259=_0x4b3d30[_0x433dc5])&&(_0xd09767=_0x580259(_0xd09767)||_0xd09767);return _0xd09767;},_0x410205=(_0x41bcab,_0x134e63)=>(_0x3f788a,_0x5f1915)=>_0x134e63(_0x3f788a,_0x5f1915,_0x41bcab);const _0x566ed2=_0x72f170(0x353);_0x588091[_0x72f170(0xe2)]=(_0x15f489=class extends _0x1b3401['Plugin']{constructor(_0x55461f,_0x4f021c,_0x679c8b){const _0x597da9=_0x72f170;super(),this[_0x597da9(0x1e8)]=_0x55461f,this[_0x597da9(0x397)]=_0x4f021c,this['_localeService']=_0x679c8b,this[_0x597da9(0x17e)]['load']({'zhCN':_0x588fab});}['onStarting'](_0x37f115){const _0x112d2b=_0x72f170;var _0x410f0d,_0x5455f7,_0x311ba4,_0x4989ce,_0x26ce36;_0x37f115[_0x112d2b(0x1bf)]([_0x1b3401[_0x112d2b(0x3f5)],{'useClass':_0x2ff833}]);let _0x4bea56=[[_0x588091[_0x112d2b(0x1d6)]],[_0x239e9b],[_0x2b3eab[_0x112d2b(0x246)]],[_0x159654,{'useClass':_0xd91f6d}],[_0x3f8747],[_0x588091[_0x112d2b(0x3a7)]],[_0x2b3eab[_0x112d2b(0x24f)]],[_0x211af0],[_0x1505a5],[_0x1a629c],[_0x21c0b5],[_0x2f5fe9],[_0x1083e0,{'useClass':(_0x5455f7=(_0x410f0d=this[_0x112d2b(0x1e8)])==null?void 0x0:_0x410f0d[_0x112d2b(0x3d4)])!=null?_0x5455f7:_0x588091[_0x112d2b(0x153)]}],[_0x2b3eab[_0x112d2b(0x20e)],{'useClass':_0x2b3eab[_0x112d2b(0x1ce)]}],[_0x1b3401[_0x112d2b(0x27a)],{'useClass':_0x4748a6}],[_0x588091[_0x112d2b(0x295)]],[_0x588091['DataLoaderController']],[_0x588091[_0x112d2b(0x34a)]],[_0x1e047e],[_0x16c4ba]];(_0x311ba4=this[_0x112d2b(0x1e8)])!=null&&_0x311ba4['enableSingleActiveInstanceLock']&&_0x4bea56[_0x112d2b(0x2c7)]([_0x345c46,{'useClass':_0x502148}]),((_0x4989ce=this[_0x112d2b(0x1e8)])==null?void 0x0:_0x4989ce['collaborationUniverTypes'])==null||this[_0x112d2b(0x1e8)][_0x112d2b(0x3d0)][_0x112d2b(0x11c)](_0x1b3401[_0x112d2b(0x22d)][_0x112d2b(0x137)])?_0x4bea56[_0x112d2b(0x2c7)]([_0x26bb41]):this[_0x112d2b(0x1e8)]['collaborationUniverTypes'][_0x112d2b(0x11c)](_0x1b3401[_0x112d2b(0x22d)][_0x112d2b(0x2f7)])&&_0x4bea56[_0x112d2b(0x2c7)]([_0x3bebf7]),_0x4bea56=_0x1b3401[_0x112d2b(0x3ef)](_0x4bea56,(_0x26ce36=this[_0x112d2b(0x1e8)])==null?void 0x0:_0x26ce36[_0x112d2b(0x3db)]),_0x4bea56[_0x112d2b(0x3bf)](_0x54ee96=>_0x37f115['add'](_0x54ee96)),_0x37f115[_0x112d2b(0x25f)](_0x2b3eab[_0x112d2b(0x246)])[_0x112d2b(0x210)]({'priority':0x14,'interceptor':_0x37f115[_0x112d2b(0x1d4)](_0x2b3eab['ThresholdInterceptorFactory'],{'maxParallel':0x6})}),this[_0x112d2b(0xf7)]();}[_0x72f170(0xf7)](){const _0x203ec1=_0x72f170;var _0x25d6a5,_0x181655;(_0x25d6a5=this[_0x203ec1(0x1e8)])!=null&&_0x25d6a5[_0x203ec1(0x3e9)]||this[_0x203ec1(0x397)][_0x203ec1(0x25f)](_0x588091[_0x203ec1(0x3a7)])[_0x203ec1(0x2d9)](),(_0x181655=this['_config'])!=null&&_0x181655[_0x203ec1(0x25b)]&&this[_0x203ec1(0x397)][_0x203ec1(0x25f)](_0x2f5fe9);}},_0x51e1d8(_0x15f489,_0x72f170(0x14b),_0x566ed2),_0x15f489),_0x588091['CollaborationClientPlugin']=_0x259b4a([_0x410205(0x1,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32['Injector'])),_0x410205(0x2,_0x5c7b32['Inject'](_0x1b3401[_0x72f170(0x330)]))],_0x588091[_0x72f170(0xe2)]);const _0x2c0824={'collabStatus':{'fetchMiss':_0x72f170(0x216),'conflict':_0x72f170(0x312),'notCollab':'Local\x20file','synced':_0x72f170(0x2d5),'syncing':_0x72f170(0x2e8),'offline':_0x72f170(0x193)},'session':{'connection-failed':_0x72f170(0x39e),'will-retry':_0x72f170(0x218),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x72f170(0x1ad)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x72f170(0x37f)},'collaboration':{'single-unit':{'warning':_0x72f170(0x290)}},'auth':{'needGotoLoginAlert':_0x72f170(0x162)}};_0x588091[_0x72f170(0x284)]=_0x202f36,_0x588091[_0x72f170(0x12d)]=_0x575e39,_0x588091['CollaborationStatus']=_0x3a3bdf,_0x588091[_0x72f170(0x31b)]=_0x27a980,_0x588091['HEARTBEAT_INTERVAL_KEY']=_0x5d723c,_0x588091['HEARTBEAT_TIMEOUT_KEY']=_0x855346,_0x588091['ICollaborationSocketService']=_0x1083e0,_0x588091['IURLService']=_0x159654,_0x588091['LOCAL_CACHE_INTERVAL_KEY']=_0x33701a,_0x588091[_0x72f170(0x139)]=_0x3395c8,_0x588091[_0x72f170(0x12e)]=_0x4d10b3,_0x588091[_0x72f170(0x21b)]=_0x256873,_0x588091[_0x72f170(0x2c8)]=_0x4457b3,_0x588091['WebURLService']=_0xd91f6d,_0x588091['deserializeToCombResponse']=_0x18d27e,_0x588091[_0x72f170(0x276)]=_0x2c0824,_0x588091[_0x72f170(0xfd)]=_0x4ec68d,_0x588091[_0x72f170(0xde)]=_0x588fab,Object[_0x72f170(0x166)](_0x588091,Symbol[_0x72f170(0x266)],{'value':_0x72f170(0xdb)});}));
1
+ function _0x572c(_0x2ef492,_0x170dcc){const _0x5a71ee=_0x5a71();return _0x572c=function(_0x572c37,_0x147b96){_0x572c37=_0x572c37-0x12a;let _0x2781db=_0x5a71ee[_0x572c37];return _0x2781db;},_0x572c(_0x2ef492,_0x170dcc);}(function(_0x86d8a,_0x15c541){const _0x1b8b4e=_0x572c,_0x198681=_0x86d8a();while(!![]){try{const _0x244ff2=parseInt(_0x1b8b4e(0x257))/0x1*(-parseInt(_0x1b8b4e(0x391))/0x2)+-parseInt(_0x1b8b4e(0x240))/0x3+-parseInt(_0x1b8b4e(0x4a1))/0x4+parseInt(_0x1b8b4e(0x352))/0x5+parseInt(_0x1b8b4e(0x2ee))/0x6+-parseInt(_0x1b8b4e(0x326))/0x7+parseInt(_0x1b8b4e(0x40b))/0x8;if(_0x244ff2===_0x15c541)break;else _0x198681['push'](_0x198681['shift']());}catch(_0x51cb22){_0x198681['push'](_0x198681['shift']());}}}(_0x5a71,0x7aeb6),function(_0x15a14c,_0x9ec0ec){const _0x40436b=_0x572c;typeof exports==_0x40436b(0x38d)&&typeof module<'u'?_0x9ec0ec(exports,require(_0x40436b(0x148)),require(_0x40436b(0x47c)),require(_0x40436b(0x46b)),require('@univerjs/ui'),require(_0x40436b(0x40c)),require('@wendellhu/redi'),require(_0x40436b(0x165)),require(_0x40436b(0x18d)),require(_0x40436b(0x368)),require(_0x40436b(0x38b)),require(_0x40436b(0x1cb)),require(_0x40436b(0x2da)),require(_0x40436b(0x1d3)),require(_0x40436b(0x151)),require(_0x40436b(0x3cf)),require(_0x40436b(0x465)),require(_0x40436b(0x3ca)),require(_0x40436b(0x3a8)),require('@univerjs/rpc')):typeof define==_0x40436b(0x3e3)&&define['amd']?define([_0x40436b(0x309),_0x40436b(0x148),_0x40436b(0x47c),_0x40436b(0x46b),_0x40436b(0x187),'@univerjs-pro/collaboration',_0x40436b(0x2f8),_0x40436b(0x165),_0x40436b(0x18d),_0x40436b(0x368),_0x40436b(0x38b),'@univerjs/drawing',_0x40436b(0x2da),'lodash/debounce','@univerjs/engine-render','@univerjs/sheets-ui',_0x40436b(0x465),_0x40436b(0x3ca),_0x40436b(0x3a8),_0x40436b(0x3eb)],_0x9ec0ec):(_0x15a14c=typeof globalThis<'u'?globalThis:_0x15a14c||self,_0x9ec0ec(_0x15a14c[_0x40436b(0x359)]={},_0x15a14c[_0x40436b(0x3b6)],_0x15a14c[_0x40436b(0x32f)],_0x15a14c['UniverDesign'],_0x15a14c[_0x40436b(0x1fd)],_0x15a14c['UniverCollaboration'],_0x15a14c[_0x40436b(0x2f8)],_0x15a14c[_0x40436b(0x165)],_0x15a14c[_0x40436b(0x165)]['operators'],_0x15a14c['UniverDocs'],_0x15a14c[_0x40436b(0x28f)],_0x15a14c['UniverDrawing'],_0x15a14c[_0x40436b(0x164)],_0x15a14c[_0x40436b(0x2f1)]['debounce'],_0x15a14c[_0x40436b(0x247)],_0x15a14c[_0x40436b(0x3f3)],_0x15a14c[_0x40436b(0x465)],_0x15a14c[_0x40436b(0x2f3)],_0x15a14c['clsx'],_0x15a14c[_0x40436b(0x36d)]));}(this,function(_0x431c6f,_0x226a7e,_0x3acf4c,_0x2d5606,_0x15005b,_0x1e8c75,_0x49bc9,_0x4e5e3f,_0x4d72f4,_0x534040,_0x353e30,_0x57ff02,_0x2ca513,_0x270255,_0x5b613a,_0x1a2a28,_0x3c1409,_0x53ebe1,_0xb8caad,_0x5cea30){'use strict';const _0x228849=_0x572c;var _0x2d1587=Object[_0x228849(0x1fc)],_0x3ab982=(_0x357c9f,_0x2e3b1e,_0x4eecc0)=>_0x2e3b1e in _0x357c9f?_0x2d1587(_0x357c9f,_0x2e3b1e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4eecc0}):_0x357c9f[_0x2e3b1e]=_0x4eecc0,_0xaa2177=(_0x42f7fa,_0x355341,_0x38a73f)=>(_0x3ab982(_0x42f7fa,typeof _0x355341!=_0x228849(0x35b)?_0x355341+'':_0x355341,_0x38a73f),_0x38a73f);const _0x299079=_0x228849(0x229),_0x22538d=_0x228849(0x26a),_0x2e8975=_0x228849(0x23b),_0x6128a1=_0x228849(0x2ab),_0x54323b=_0x228849(0x2ce),_0x53cf5e='ws://127.0.0.1:8000/universer-api/comb/connect',_0x18051e='HEARTBEAT_INTERVAL',_0x2c7ffa=_0x228849(0x25a),_0x4c064c=_0x228849(0x3b2),_0x3dfce0=_0x228849(0x2ca),_0x109348='LOCAL_CACHE_INTERVAL',_0xe983e2=_0x228849(0x2fa),_0x3c52f6=_0x228849(0x1f2),_0x16f267=_0x228849(0x303),_0x1dc009=_0x228849(0x3f7);var _0x4a5019=(_0x58ed5e=>(_0x58ed5e[_0x58ed5e[_0x228849(0x2e9)]=0x0]=_0x228849(0x2e9),_0x58ed5e[_0x58ed5e['OK']=0x1]='OK',_0x58ed5e[_0x58ed5e[_0x228849(0x30e)]=0x2]=_0x228849(0x30e),_0x58ed5e[_0x58ed5e['PERMISSION_DENIED']=0x3]=_0x228849(0x489),_0x58ed5e[_0x58ed5e[_0x228849(0x4a0)]=0x4]='NOT_FOUND',_0x58ed5e[_0x58ed5e[_0x228849(0x205)]=0x5]='UNAUTHENTICATED',_0x58ed5e[_0x58ed5e[_0x228849(0x1dc)]=0x6]='ALREADY_EXISTS',_0x58ed5e[_0x58ed5e[_0x228849(0x287)]=0x7]=_0x228849(0x287),_0x58ed5e[_0x58ed5e[_0x228849(0x4e5)]=0x8]=_0x228849(0x4e5),_0x58ed5e[_0x58ed5e[_0x228849(0x194)]=0x9]=_0x228849(0x194),_0x58ed5e[_0x58ed5e[_0x228849(0x4f1)]=0x1389]=_0x228849(0x4f1),_0x58ed5e[_0x58ed5e[_0x228849(0x408)]=0x1771]=_0x228849(0x408),_0x58ed5e[_0x58ed5e[_0x228849(0x270)]=0x1b59]='APPLY_REJECT',_0x58ed5e[_0x58ed5e[_0x228849(0x3dc)]=0x1b5a]=_0x228849(0x3dc),_0x58ed5e[_0x58ed5e['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x228849(0x2c4),_0x58ed5e[_0x58ed5e[_0x228849(0x4bd)]=0x1b5c]=_0x228849(0x4bd),_0x58ed5e[_0x58ed5e[_0x228849(0x298)]=0x1f41]=_0x228849(0x298),_0x58ed5e[_0x58ed5e[_0x228849(0x227)]=0x2329]=_0x228849(0x227),_0x58ed5e[_0x58ed5e[_0x228849(0x3e5)]=0x232a]=_0x228849(0x3e5),_0x58ed5e[_0x58ed5e[_0x228849(0x4e4)]=0x232b]=_0x228849(0x4e4),_0x58ed5e[_0x58ed5e[_0x228849(0x139)]=0x232c]=_0x228849(0x139),_0x58ed5e[_0x58ed5e[_0x228849(0x362)]=0x232d]=_0x228849(0x362),_0x58ed5e[_0x58ed5e[_0x228849(0x12f)]=0x2711]=_0x228849(0x12f),_0x58ed5e[_0x58ed5e['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x228849(0x222),_0x58ed5e[_0x58ed5e['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x58ed5e))(_0x4a5019||{}),_0xf0e06f=(_0x51ea28=>(_0x51ea28[_0x51ea28[_0x228849(0x376)]=0x0]=_0x228849(0x376),_0x51ea28[_0x51ea28[_0x228849(0x138)]=0x1]='UNIVER_DOC',_0x51ea28[_0x51ea28[_0x228849(0x390)]=0x2]=_0x228849(0x390),_0x51ea28[_0x51ea28[_0x228849(0x35d)]=0x3]=_0x228849(0x35d),_0x51ea28[_0x51ea28[_0x228849(0x4a8)]=-0x1]=_0x228849(0x4a8),_0x51ea28))(_0xf0e06f||{}),_0x3d5b02=(_0x2f6da7=>(_0x2f6da7[_0x2f6da7[_0x228849(0x22f)]=0x0]=_0x228849(0x22f),_0x2f6da7[_0x2f6da7[_0x228849(0x483)]=0x1]='HELLO',_0x2f6da7[_0x2f6da7['JOIN']=0x2]='JOIN',_0x2f6da7[_0x2f6da7[_0x228849(0x228)]=0x3]=_0x228849(0x228),_0x2f6da7[_0x2f6da7[_0x228849(0x14a)]=0x4]=_0x228849(0x14a),_0x2f6da7[_0x2f6da7[_0x228849(0x4a6)]=0x5]=_0x228849(0x4a6),_0x2f6da7[_0x2f6da7[_0x228849(0x290)]=0x6]='RECV',_0x2f6da7[_0x2f6da7[_0x228849(0x4a8)]=-0x1]='UNRECOGNIZED',_0x2f6da7))(_0x3d5b02||{}),_0x2e25ef=(_0x140195=>(_0x140195[_0x140195[_0x228849(0x16d)]=0x0]=_0x228849(0x16d),_0x140195[_0x140195['OK']=0x1]='OK',_0x140195[_0x140195[_0x228849(0x18e)]=0x2]=_0x228849(0x18e),_0x140195[_0x140195[_0x228849(0x4a8)]=-0x1]=_0x228849(0x4a8),_0x140195))(_0x2e25ef||{}),_0x239318=Object[_0x228849(0x1fc)],_0x5898eb=Object[_0x228849(0x1b4)],_0x595c27=(_0x252177,_0xa99a7f,_0x4e200f,_0x352a93)=>{const _0x106e83=_0x228849;for(var _0x1e0cf9=_0x352a93>0x1?void 0x0:_0x352a93?_0x5898eb(_0xa99a7f,_0x4e200f):_0xa99a7f,_0x1db8f6=_0x252177[_0x106e83(0x430)]-0x1,_0x4f07e5;_0x1db8f6>=0x0;_0x1db8f6--)(_0x4f07e5=_0x252177[_0x1db8f6])&&(_0x1e0cf9=(_0x352a93?_0x4f07e5(_0xa99a7f,_0x4e200f,_0x1e0cf9):_0x4f07e5(_0x1e0cf9))||_0x1e0cf9);return _0x352a93&&_0x1e0cf9&&_0x239318(_0xa99a7f,_0x4e200f,_0x1e0cf9),_0x1e0cf9;},_0x80eb64=(_0x5475b8,_0x5d0595)=>(_0x30f1a6,_0x2d173c)=>_0x5d0595(_0x30f1a6,_0x2d173c,_0x5475b8);let _0x2f6a5d=class extends _0x226a7e[_0x228849(0x484)]{constructor(_0x453100,_0x359275){const _0x18fb58=_0x228849;super(),_0xaa2177(this,_0x18fb58(0x487),new Map()),(this[_0x18fb58(0x1ad)]=_0x453100,this[_0x18fb58(0x255)]=_0x359275,this['disposeWithMe'](_0x226a7e[_0x18fb58(0x14b)](_0x4e5e3f[_0x18fb58(0x3d0)](this[_0x18fb58(0x1ad)]['getTypeOfUnitDisposed$'](_0x226a7e[_0x18fb58(0x27d)]['UNIVER_SHEET'])['pipe'](_0x4d72f4[_0x18fb58(0x4db)](_0x3b5bf1=>_0x3b5bf1['getUnitId']())),this[_0x18fb58(0x1ad)]['getTypeOfUnitDisposed$'](_0x226a7e['UniverInstanceType'][_0x18fb58(0x138)])[_0x18fb58(0x450)](_0x4d72f4[_0x18fb58(0x4db)](_0x385ade=>_0x385ade[_0x18fb58(0x2d1)]())),this[_0x18fb58(0x1ad)]['getTypeOfUnitDisposed$'](_0x226a7e['UniverInstanceType'][_0x18fb58(0x35d)])['pipe'](_0x4d72f4[_0x18fb58(0x4db)](_0x2a942b=>_0x2a942b[_0x18fb58(0x2d1)]())))[_0x18fb58(0x22c)](_0x1475ca=>this['_removeRoom'](_0x1475ca)))));}[_0x228849(0x48e)](_0xda2110){const _0x17cc63=_0x228849;this[_0x17cc63(0x255)][_0x17cc63(0x48e)](_0xda2110);}['getCurrentUser'](){const _0x3626d9=_0x228849;return this[_0x3626d9(0x255)]['getCurrentUser']();}[_0x228849(0x433)](_0x5cab59,_0x5e1a55){const _0x5f1dd9=_0x228849;let _0x4eec17=this['_roomMembers'][_0x5f1dd9(0x24c)](_0x5cab59);_0x4eec17||(_0x4eec17=new _0x17f5da(),this['_roomMembers'][_0x5f1dd9(0x4f3)](_0x5cab59,_0x4eec17)),_0x4eec17[_0x5f1dd9(0x433)](_0x5e1a55);}[_0x228849(0x17f)](_0x35013e,_0x16cf0d){const _0x43c86e=_0x228849,_0x4b3263=this[_0x43c86e(0x487)][_0x43c86e(0x24c)](_0x35013e);_0x4b3263&&_0x4b3263[_0x43c86e(0x17f)](_0x16cf0d);}[_0x228849(0x220)](_0xaf1673){const _0x1320a0=_0x228849;return this[_0x1320a0(0x487)]['get'](_0xaf1673);}['getMember'](_0x46d521,_0xece04e){const _0x1982db=_0x228849,_0x56dd1a=this[_0x1982db(0x487)][_0x1982db(0x24c)](_0x46d521);if(_0x56dd1a)return _0x56dd1a[_0x1982db(0x250)](_0xece04e);}[_0x228849(0x342)](_0x29724e){const _0x23439d=_0x228849,_0x12f68f=this['_roomMembers'][_0x23439d(0x24c)](_0x29724e);_0x12f68f&&(_0x12f68f[_0x23439d(0x485)](),this[_0x23439d(0x487)]['delete'](_0x29724e));}[_0x228849(0x485)](){const _0x2705f5=_0x228849;this[_0x2705f5(0x487)][_0x2705f5(0x3ad)](_0x1a6da0=>_0x1a6da0[_0x2705f5(0x485)]()),this['_roomMembers']['clear']();}};_0x2f6a5d=_0x595c27([_0x80eb64(0x0,_0x226a7e['IUniverInstanceService']),_0x80eb64(0x1,_0x49bc9['Inject'](_0x226a7e['UserManagerService']))],_0x2f6a5d);class _0x17f5da extends _0x226a7e['Disposable']{constructor(){super(...arguments),_0xaa2177(this,'_members',new Map());}['dispose'](){this['_members']['clear']();}[_0x228849(0x433)](_0x467380){const _0x5ddf92=_0x228849;this[_0x5ddf92(0x146)][_0x5ddf92(0x4f3)](_0x467380[_0x5ddf92(0x25d)],_0x467380);}[_0x228849(0x17f)](_0x590042){const _0x337d42=_0x228849;this[_0x337d42(0x146)][_0x337d42(0x2b1)](_0x590042);}['getMember'](_0x4f2ac3){const _0x9b80f7=_0x228849;return this[_0x9b80f7(0x146)][_0x9b80f7(0x24c)](_0x4f2ac3);}}function _0x37fba9(_0x1181a4){const _0x39e601=_0x228849;var _0x46b0d8,_0x1f4ea0,_0x119603,_0x366a4f;const _0x5676a4=_0x1181a4['data'],_0x3dcf58=JSON['parse'](_0x5676a4);switch(_0x3dcf58[_0x39e601(0x27c)]){case _0x3d5b02[_0x39e601(0x4a6)]:case _0x3d5b02[_0x39e601(0x483)]:{const _0x434f2d=_0x3dcf58[_0x39e601(0x2ec)];return{..._0x3dcf58,'data':_0x434f2d,'cmd':_0x3dcf58[_0x39e601(0x27c)]};}case _0x3d5b02[_0x39e601(0x424)]:{const _0x4a53c8=_0x3dcf58[_0x39e601(0x311)];return{..._0x3dcf58,'data':_0x4a53c8,'cmd':_0x3dcf58[_0x39e601(0x27c)]};}case _0x3d5b02['RECV']:{const _0x1fb0d3=_0x3dcf58[_0x39e601(0x249)];switch(_0x1fb0d3['eventID']){case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x143)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':(_0x46b0d8=_0x1fb0d3[_0x39e601(0x399)])==null?void 0x0:_0x46b0d8['cs']},'cmd':_0x3dcf58[_0x39e601(0x27c)]};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x29c)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':(_0x1f4ea0=_0x1fb0d3[_0x39e601(0x449)])==null?void 0x0:_0x1f4ea0['cs']},'cmd':_0x3dcf58['cmd']};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x213)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':(_0x119603=_0x1fb0d3[_0x39e601(0x141)])==null?void 0x0:_0x119603['cs']},'cmd':_0x3dcf58['cmd']};case _0x1e8c75['CollaborationEvent'][_0x39e601(0x4df)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':(_0x366a4f=_0x1fb0d3[_0x39e601(0x4c7)])==null?void 0x0:_0x366a4f['cs']},'cmd':_0x3dcf58[_0x39e601(0x27c)]};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x253)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':_0x1fb0d3['updateCursorEvent']},'cmd':_0x3dcf58[_0x39e601(0x27c)]};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x177)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':_0x1fb0d3[_0x39e601(0x2a3)]},'cmd':_0x3dcf58['cmd']};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x42f)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':_0x1fb0d3[_0x39e601(0x4d8)]},'cmd':_0x3dcf58[_0x39e601(0x27c)]};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x455)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':_0x1fb0d3['liveShareNewHost']},'cmd':_0x3dcf58[_0x39e601(0x27c)]};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x417)]:case _0x1e8c75[_0x39e601(0x198)]['LIVESHARE_OPERATION']:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':_0x1fb0d3[_0x39e601(0x413)]},'cmd':_0x3dcf58[_0x39e601(0x27c)]};case _0x1e8c75[_0x39e601(0x198)]['LIVESHARE_TERMINATE']:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':_0x1fb0d3['liveShareNewHost']},'cmd':_0x3dcf58[_0x39e601(0x27c)]};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x37c)]:return{..._0x3dcf58,'data':_0x1fb0d3,'cmd':_0x3dcf58[_0x39e601(0x27c)]};default:return _0x3dcf58;}}default:return _0x3dcf58;}}function _0x543e7b(_0xc86e32){const _0x580aa7=_0x228849;switch(_0xc86e32[_0x580aa7(0x27c)]){case _0x3d5b02['HEARTBEAT']:case _0x3d5b02['HELLO']:return JSON[_0x580aa7(0x1d4)]({'cmd':_0xc86e32[_0x580aa7(0x27c)],'routeKey':_0xc86e32['routeKey']});case _0x3d5b02[_0x580aa7(0x14a)]:{let _0x53c6e2;switch(_0xc86e32[_0x580aa7(0x1f8)]['eventID']){case _0x1e8c75[_0x580aa7(0x198)][_0x580aa7(0x253)]:{_0x53c6e2={'eventID':_0x1e8c75[_0x580aa7(0x198)][_0x580aa7(0x253)],'updateCursorEvent':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x1f8)]};break;}case _0x1e8c75[_0x580aa7(0x198)]['USERS_LEAVE']:{_0x53c6e2={'eventID':_0x1e8c75[_0x580aa7(0x198)][_0x580aa7(0x42f)],'leaveEvent':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x1f8)]};break;}case _0x1e8c75['CollaborationEvent'][_0x580aa7(0x177)]:{_0x53c6e2={'eventID':_0x1e8c75[_0x580aa7(0x198)]['USERS_ENTER'],'joinEvent':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x1f8)]};break;}case _0x1e8c75[_0x580aa7(0x198)][_0x580aa7(0x455)]:{_0x53c6e2={'eventID':_0x1e8c75['CollaborationEvent'][_0x580aa7(0x455)],'liveShareNewHost':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x1f8)]};break;}case _0x1e8c75[_0x580aa7(0x198)]['LIVESHARE_OPERATION']:{_0x53c6e2={'eventID':_0x1e8c75['CollaborationEvent'][_0x580aa7(0x312)],'liveShareOperation':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x1f8)]};break;}case _0x1e8c75[_0x580aa7(0x198)][_0x580aa7(0x2cf)]:{_0x53c6e2={'eventID':_0x1e8c75[_0x580aa7(0x198)][_0x580aa7(0x2cf)],'liveShareTerminate':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x1f8)]};break;}case _0x1e8c75[_0x580aa7(0x198)][_0x580aa7(0x2d8)]:{_0x53c6e2={'eventID':_0x1e8c75['CollaborationEvent'][_0x580aa7(0x2d8)],'liveShareRequestHost':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x1f8)]};break;}case _0x1e8c75[_0x580aa7(0x198)]['LIVESHARE_FETCH_OPERATIONS']:{_0x53c6e2={'eventID':_0x1e8c75['CollaborationEvent'][_0x580aa7(0x417)]};break;}default:_0x53c6e2={'eventID':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x325)]};}return JSON[_0x580aa7(0x1d4)]({'cmd':_0xc86e32[_0x580aa7(0x27c)],'routeKey':_0xc86e32[_0x580aa7(0x3e2)],'collaMsg':_0x53c6e2});}case _0x3d5b02['JOIN']:return JSON[_0x580aa7(0x1d4)]({'cmd':_0xc86e32[_0x580aa7(0x27c)],'routeKey':_0xc86e32[_0x580aa7(0x3e2)],'joinReq':_0xc86e32['data']});case _0x3d5b02[_0x580aa7(0x228)]:return JSON['stringify']({'cmd':_0xc86e32[_0x580aa7(0x27c)],'routeKey':_0xc86e32[_0x580aa7(0x3e2)],'leaveReq':_0xc86e32[_0x580aa7(0x1f8)]});default:throw new Error(_0x580aa7(0x3fa));}}var _0x39c973=Object['defineProperty'],_0x3df336=Object[_0x228849(0x1b4)],_0x5e3f76=(_0x264933,_0x4504ae,_0x10b028,_0x4d9bd9)=>{for(var _0x4cb445=_0x4d9bd9>0x1?void 0x0:_0x4d9bd9?_0x3df336(_0x4504ae,_0x10b028):_0x4504ae,_0x34529d=_0x264933['length']-0x1,_0x564b27;_0x34529d>=0x0;_0x34529d--)(_0x564b27=_0x264933[_0x34529d])&&(_0x4cb445=(_0x4d9bd9?_0x564b27(_0x4504ae,_0x10b028,_0x4cb445):_0x564b27(_0x4cb445))||_0x4cb445);return _0x4d9bd9&&_0x4cb445&&_0x39c973(_0x4504ae,_0x10b028,_0x4cb445),_0x4cb445;},_0x59d6ec=(_0x20144b,_0x2da1a2)=>(_0xd82da2,_0x1ca520)=>_0x2da1a2(_0xd82da2,_0x1ca520,_0x20144b);const _0x970e64=_0x49bc9[_0x228849(0x175)]('univer-pro.collaboration-client-socket-service');function _0x58f9a1(_0x41f4b3,_0x197aeb,_0xc06b37){const _0x2d01a4=_0x228849;return _0x41f4b3+'/'+_0x197aeb+'/unit/'+_0xc06b37+_0x2d01a4(0x4e2);}_0x431c6f[_0x228849(0x207)]=class{constructor(_0x3dd2e9,_0x36ef21,_0x5c2af1,_0x155c39,_0x54c644){const _0x50eb4c=_0x228849;this[_0x50eb4c(0x2db)]=_0x3dd2e9,this[_0x50eb4c(0x389)]=_0x36ef21,this[_0x50eb4c(0x12b)]=_0x5c2af1,this[_0x50eb4c(0x464)]=_0x155c39,this[_0x50eb4c(0x28e)]=_0x54c644;}[_0x228849(0x4c9)](_0x5dd9b2){const _0x217da6=_0x228849,_0x38f9d7=this[_0x217da6(0x389)]['createSocket'](_0x5dd9b2);if(!_0x38f9d7)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x119ea6=new _0x226a7e[(_0x217da6(0x4b3))](),_0x19576c=new _0x4e5e3f[(_0x217da6(0x4bc))]();_0x119ea6[_0x217da6(0x33d)](_0x226a7e[_0x217da6(0x14b)](_0x38f9d7[_0x217da6(0x1e7)][_0x217da6(0x22c)](_0x23823c=>_0x19576c[_0x217da6(0x488)](_0x23823c)))),_0x119ea6[_0x217da6(0x33d)](_0x226a7e[_0x217da6(0x14b)](()=>_0x19576c[_0x217da6(0x1dd)]()));const _0x1253eb=new _0x4e5e3f[(_0x217da6(0x4bc))]();_0x119ea6[_0x217da6(0x33d)](_0x226a7e['toDisposable'](_0x38f9d7['error$'][_0x217da6(0x22c)](_0x1a64b5=>_0x1253eb['next'](_0x1a64b5)))),_0x119ea6['add'](_0x226a7e[_0x217da6(0x14b)](()=>_0x1253eb[_0x217da6(0x1dd)]()));const _0x9cfd9e=new _0x4e5e3f[(_0x217da6(0x4bc))]();_0x119ea6[_0x217da6(0x33d)](_0x226a7e[_0x217da6(0x14b)](_0x38f9d7[_0x217da6(0x160)]['subscribe'](_0x5b5578=>{const _0x85ce79=_0x217da6,_0x2b44b2=_0x37fba9(_0x5b5578);_0x9cfd9e[_0x85ce79(0x488)](_0x2b44b2);}))),_0x119ea6[_0x217da6(0x33d)](_0x226a7e['toDisposable'](()=>_0x9cfd9e[_0x217da6(0x1dd)]()));const _0x330a24=()=>{const _0x409625=_0x217da6;_0x1253eb[_0x409625(0x488)](new Event(_0x409625(0x476))),_0x19576c[_0x409625(0x488)](new CloseEvent(_0x409625(0x476))),_0x30284c['close']();},_0x30284c={'memberID':'','close$':_0x19576c[_0x217da6(0x1fe)](),'error$':_0x1253eb[_0x217da6(0x1fe)](),'open$':_0x38f9d7[_0x217da6(0x24b)],'message$':_0x9cfd9e[_0x217da6(0x1fe)](),'send':_0x503705=>{const _0x2beeca=_0x217da6;if(_0x503705[_0x2beeca(0x27c)]===_0x3d5b02[_0x2beeca(0x14a)]){if(_0x503705[_0x2beeca(0x1f8)]['eventID']===_0x1e8c75['CollaborationEvent'][_0x2beeca(0x2b5)]){this[_0x2beeca(0x1f4)](_0x30284c,_0x503705[_0x2beeca(0x1f8)])['catch'](_0xbd6fcd=>{const _0x31ad66=_0x2beeca;this[_0x31ad66(0x464)][_0x31ad66(0x24e)](_0xbd6fcd),_0x330a24();});return;}if(_0x503705[_0x2beeca(0x1f8)]['eventID']===_0x1e8c75['CollaborationEvent']['FETCH_MISSING']){const _0x1440c6=_0x503705[_0x2beeca(0x1f8)];this['_fetchMissChangesets'](_0x1440c6)[_0x2beeca(0x1ae)](_0x44fbea=>{const _0x3e5836=_0x2beeca;_0x9cfd9e[_0x3e5836(0x488)]({'cmd':_0x3d5b02[_0x3e5836(0x290)],'code':_0x2e25ef['OK'],'routeKey':_0x1440c6[_0x3e5836(0x1f8)][_0x3e5836(0x340)],'routeType':'','data':{'eventID':_0x1e8c75[_0x3e5836(0x198)][_0x3e5836(0x34e)],'data':{'changesets':_0x44fbea}}});})[_0x2beeca(0x280)](_0x3e744c=>{const _0x634178=_0x2beeca;this['_logService'][_0x634178(0x24e)](_0x3e744c),_0x330a24();});return;}}_0x38f9d7['send'](_0x543e7b(_0x503705));},'close':()=>{const _0x382d17=_0x217da6;_0x38f9d7[_0x382d17(0x158)](),_0x119ea6[_0x382d17(0x485)]();}};return _0x30284c;}async[_0x228849(0x1f4)](_0x30b51c,_0x7d5a61){const _0x2248a4=_0x228849;var _0x2bce14;const {unitType:_0x19ed75,unitID:_0x103fef,changeset:_0x56934b}=_0x7d5a61[_0x2248a4(0x1f8)],_0x11b604={'unitID':_0x103fef,'memberID':_0x30b51c['memberID'],'type':_0x19ed75,'changeset':_0x1e8c75[_0x2248a4(0x15f)](_0x56934b)},_0x48dbea=_0x58f9a1((_0x2bce14=this[_0x2248a4(0x12b)][_0x2248a4(0x176)](_0xe983e2))!=null?_0x2bce14:_0x3c52f6,_0x19ed75,_0x103fef);try{await this[_0x2248a4(0x2db)][_0x2248a4(0x32b)](_0x48dbea,{'body':_0x11b604});}catch(_0x3e56ca){throw this['_logService']['error'](_0x2248a4(0x3aa),_0x2248a4(0x423)),_0x3e56ca;}}async['_fetchMissChangesets'](_0x174ebc){const _0x53b07e=_0x228849,{unitID:_0x1f4e09,from:_0x5b4342,to:_0x1ea1ee,unitType:_0x1c5496}=_0x174ebc[_0x53b07e(0x1f8)];return(await this[_0x53b07e(0x28e)][_0x53b07e(0x1c4)]({'metadata':void 0x0},{'unitID':_0x1f4e09,'type':_0x1c5496,'from':_0x5b4342,'to':_0x1ea1ee}))[_0x53b07e(0x2bf)];}},_0x431c6f[_0x228849(0x207)]=_0x5e3f76([_0x59d6ec(0x0,_0x49bc9['Inject'](_0x353e30[_0x228849(0x26c)])),_0x59d6ec(0x1,_0x49bc9[_0x228849(0x31c)](_0x353e30[_0x228849(0x174)])),_0x59d6ec(0x2,_0x226a7e['IConfigService']),_0x59d6ec(0x3,_0x226a7e['ILogService']),_0x59d6ec(0x4,_0x226a7e[_0x228849(0x2ff)])],_0x431c6f[_0x228849(0x207)]);var _0x448773=Object[_0x228849(0x1fc)],_0x1c616b=Object[_0x228849(0x1b4)],_0x47e7b2=(_0x4c841e,_0x4bcacd,_0x367d1e,_0x174a52)=>{const _0x155e93=_0x228849;for(var _0x2ffdd9=_0x174a52>0x1?void 0x0:_0x174a52?_0x1c616b(_0x4bcacd,_0x367d1e):_0x4bcacd,_0x2f8e03=_0x4c841e[_0x155e93(0x430)]-0x1,_0x4a6c11;_0x2f8e03>=0x0;_0x2f8e03--)(_0x4a6c11=_0x4c841e[_0x2f8e03])&&(_0x2ffdd9=(_0x174a52?_0x4a6c11(_0x4bcacd,_0x367d1e,_0x2ffdd9):_0x4a6c11(_0x2ffdd9))||_0x2ffdd9);return _0x174a52&&_0x2ffdd9&&_0x448773(_0x4bcacd,_0x367d1e,_0x2ffdd9),_0x2ffdd9;},_0x30544e=(_0xfe29f4,_0x42c9d2)=>(_0x1512ba,_0x38ef24)=>_0x42c9d2(_0x1512ba,_0x38ef24,_0xfe29f4),_0x2d0945=(_0x58d0b5=>(_0x58d0b5[_0x58d0b5[_0x228849(0x1f7)]=0x0]='IDLE',_0x58d0b5[_0x58d0b5[_0x228849(0x3fd)]=0x1]=_0x228849(0x3fd),_0x58d0b5[_0x58d0b5[_0x228849(0x26d)]=0x2]=_0x228849(0x26d),_0x58d0b5[_0x58d0b5['ONLINE']=0x3]=_0x228849(0x4cc),_0x58d0b5))(_0x2d0945||{});_0x431c6f[_0x228849(0x2d6)]=class extends _0x226a7e['RxDisposable']{constructor(_0x353dad,_0x28f5aa,_0x518948,_0xd96d30,_0x55e9e6,_0x3dc0d6,_0x13ece2,_0x542434){const _0x2e5fcc=_0x228849;super(),_0xaa2177(this,_0x2e5fcc(0x19b),new _0x4e5e3f['BehaviorSubject'](0x0)),_0xaa2177(this,_0x2e5fcc(0x2b7),this[_0x2e5fcc(0x19b)][_0x2e5fcc(0x1fe)]()),_0xaa2177(this,'_event$',new _0x4e5e3f[(_0x2e5fcc(0x4bc))]()),_0xaa2177(this,'event$',this['_event$'][_0x2e5fcc(0x1fe)]()),_0xaa2177(this,_0x2e5fcc(0x39b)),_0xaa2177(this,'_socketMessageSubscription'),_0xaa2177(this,_0x2e5fcc(0x2d3)),(this[_0x2e5fcc(0x3e1)]=_0x353dad,this[_0x2e5fcc(0x464)]=_0x518948,this['_beforeCloseService']=_0xd96d30,this[_0x2e5fcc(0x306)]=_0x55e9e6,this[_0x2e5fcc(0x12b)]=_0x3dc0d6,this[_0x2e5fcc(0x401)]=_0x13ece2,this[_0x2e5fcc(0x2c7)]=_0x542434,_0x28f5aa[_0x2e5fcc(0x450)](_0x4d72f4[_0x2e5fcc(0x2e4)](this['dispose$']))[_0x2e5fcc(0x22c)](_0x1d4e89=>{const _0x342df9=_0x2e5fcc;var _0x279d03;typeof _0x1d4e89>'u'||(this[_0x342df9(0x39b)]=_0x1d4e89,_0x1d4e89?(this[_0x342df9(0x3e7)](_0x1d4e89),this[_0x342df9(0x20d)]=this['_socket'][_0x342df9(0x160)][_0x342df9(0x22c)](_0x42188b=>{const _0x5ab5c1=_0x342df9;_0x42188b[_0x5ab5c1(0x3e2)]===this[_0x5ab5c1(0x3e1)]&&this[_0x5ab5c1(0x27b)](_0x42188b);})):(this[_0x342df9(0x19b)]['next'](0x2),(_0x279d03=this['_socketMessageSubscription'])==null||_0x279d03[_0x342df9(0x23d)](),this[_0x342df9(0x20d)]=null));}),this[_0x2e5fcc(0x231)](this['_beforeCloseService'][_0x2e5fcc(0x289)](()=>{const _0x32138d=_0x2e5fcc;var _0x546909;(_0x546909=this[_0x32138d(0x39b)])==null||_0x546909[_0x32138d(0x4ed)]({'cmd':_0x3d5b02[_0x32138d(0x228)],'data':{'roomID':this[_0x32138d(0x3e1)]}});})));}get[_0x228849(0x396)](){const _0x3e5e82=_0x228849;return this[_0x3e5e82(0x19b)]['getValue']();}[_0x228849(0x2e1)](){const _0x1609b0=_0x228849;var _0x423b5d,_0x2cd990;return(_0x2cd990=(_0x423b5d=this[_0x1609b0(0x39b)])==null?void 0x0:_0x423b5d[_0x1609b0(0x25d)])!=null?_0x2cd990:null;}['dispose'](){const _0x466973=_0x228849;super[_0x466973(0x485)](),this['dispose$'][_0x466973(0x488)](),this[_0x466973(0x1ec)][_0x466973(0x1dd)]();}[_0x228849(0x27b)](_0x2032c8){const _0x4a8449=_0x228849;_0x2032c8[_0x4a8449(0x27c)]===_0x3d5b02['JOIN']?this['_onJoinRoomEvent'](_0x2032c8):_0x2032c8[_0x4a8449(0x27c)]===_0x3d5b02[_0x4a8449(0x290)]&&this[_0x4a8449(0x239)](_0x2032c8);}[_0x228849(0x3e7)](_0x5d9412){const _0xc7c4f1=_0x228849;this[_0xc7c4f1(0x19b)][_0xc7c4f1(0x488)](0x1),_0x5d9412[_0xc7c4f1(0x4ed)]({'cmd':_0x3d5b02[_0xc7c4f1(0x424)],'routeKey':this[_0xc7c4f1(0x3e1)],'routeType':'','data':{'rooms':[{'roomID':this[_0xc7c4f1(0x3e1)]}]}});}[_0x228849(0x2c6)](_0x43a12a){const _0x43dac1=_0x228849;var _0x132362;if(_0x43a12a['code']===_0x2e25ef[_0x43dac1(0x18e)]){this[_0x43dac1(0x306)][_0x43dac1(0x333)]({'type':_0x2d5606[_0x43dac1(0x481)][_0x43dac1(0x14e)],'content':this['_localeService']['t'](_0x43dac1(0x2d9))}),this[_0x43dac1(0x19b)][_0x43dac1(0x488)](0x2);return;}this[_0x43dac1(0x19b)][_0x43dac1(0x488)](0x3);const _0x4ef2e9=(_0x132362=_0x43a12a[_0x43dac1(0x1f8)][_0x43dac1(0x20c)][this[_0x43dac1(0x3e1)]])==null?void 0x0:_0x132362[_0x43dac1(0x269)];_0x4ef2e9&&_0x4ef2e9[_0x43dac1(0x3ad)](_0x42177a=>this[_0x43dac1(0x2c7)][_0x43dac1(0x433)](this[_0x43dac1(0x3e1)],_0x42177a));}[_0x228849(0x239)](_0x2a259b){const _0x1fa4f8=_0x228849;try{const _0x3bc9ca=_0x2a259b[_0x1fa4f8(0x1f8)];switch(_0x3bc9ca[_0x1fa4f8(0x325)]){case _0x1e8c75['CollaborationEvent']['USERS_ENTER']:this[_0x1fa4f8(0x337)](_0x3bc9ca),this[_0x1fa4f8(0x2a2)][_0x1fa4f8(0x488)](_0x3bc9ca);break;case _0x1e8c75[_0x1fa4f8(0x198)][_0x1fa4f8(0x42f)]:this[_0x1fa4f8(0x1da)](_0x3bc9ca),this['_event$']['next'](_0x3bc9ca);break;case _0x1e8c75[_0x1fa4f8(0x198)][_0x1fa4f8(0x29c)]:this[_0x1fa4f8(0x136)](),this[_0x1fa4f8(0x2a2)][_0x1fa4f8(0x488)](_0x3bc9ca);break;case _0x1e8c75[_0x1fa4f8(0x198)][_0x1fa4f8(0x37c)]:this[_0x1fa4f8(0x464)][_0x1fa4f8(0x24e)](_0x1fa4f8(0x3f1)+JSON['stringify'](_0x3bc9ca)),this[_0x1fa4f8(0x2a2)]['next'](_0x3bc9ca);break;default:this[_0x1fa4f8(0x2a2)][_0x1fa4f8(0x488)](_0x3bc9ca);}}catch(_0x4b0b07){this[_0x1fa4f8(0x464)][_0x1fa4f8(0x24e)](_0x4b0b07,_0x2a259b);}}[_0x228849(0x337)](_0x55dab4){const _0x3beb1b=_0x228849;this[_0x3beb1b(0x2c7)]['updateMember'](this[_0x3beb1b(0x3e1)],_0x55dab4[_0x3beb1b(0x1f8)]);}[_0x228849(0x1da)](_0x44b3d0){const _0x1b0a83=_0x228849;this['_memberService'][_0x1b0a83(0x17f)](this['_unitID'],_0x44b3d0[_0x1b0a83(0x1f8)][_0x1b0a83(0x25d)]);}async[_0x228849(0x4ed)](_0x56bfcd,_0x181f54){const _0x51cdfe=_0x228849;if(this[_0x51cdfe(0x396)]!==0x3||!this[_0x51cdfe(0x39b)])throw new Error(_0x51cdfe(0x15a));try{_0x56bfcd[_0x51cdfe(0x325)]===_0x1e8c75[_0x51cdfe(0x198)]['NEW_CHANGESETS']&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x51cdfe(0x39b)][_0x51cdfe(0x4ed)]({'cmd':_0x3d5b02[_0x51cdfe(0x14a)],'routeKey':_0x181f54,'routeType':'','data':_0x56bfcd});}catch(_0x3428db){this[_0x51cdfe(0x464)]['error'](_0x3428db);}}['_scheduleCollaborationTimeoutTimer'](){const _0x5a3abc=_0x228849;var _0x18723f;this[_0x5a3abc(0x2d3)]=window[_0x5a3abc(0x46a)](()=>{const _0x361875=_0x5a3abc;this[_0x361875(0x2d3)]=null,this[_0x361875(0x306)][_0x361875(0x333)]({'type':_0x2d5606[_0x361875(0x481)]['Error'],'content':this[_0x361875(0x401)]['t'](_0x361875(0x28c))});},(_0x18723f=this['_configService'][_0x5a3abc(0x176)](_0x2c7ffa))!=null?_0x18723f:0x2710);}[_0x228849(0x136)](){this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}},_0x431c6f['CollaborationSession']=_0x47e7b2([_0x30544e(0x2,_0x226a7e[_0x228849(0x212)]),_0x30544e(0x3,_0x15005b[_0x228849(0x4c2)]),_0x30544e(0x4,_0x15005b['IMessageService']),_0x30544e(0x5,_0x226a7e[_0x228849(0x26f)]),_0x30544e(0x6,_0x49bc9[_0x228849(0x31c)](_0x226a7e['LocaleService'])),_0x30544e(0x7,_0x49bc9[_0x228849(0x31c)](_0x2f6a5d))],_0x431c6f['CollaborationSession']),_0x431c6f['CollaborationSessionService']=class extends _0x226a7e[_0x228849(0x484)]{constructor(_0x44e410,_0x4aa2b0,_0x138b98,_0x5a0f35,_0x49cdf8,_0x17f301){const _0x417949=_0x228849;super(),_0xaa2177(this,'_socket$',new _0x4e5e3f[(_0x417949(0x2e7))](void 0x0)),_0xaa2177(this,_0x417949(0x1d0),new Map()),_0xaa2177(this,'_status$',new _0x4e5e3f['BehaviorSubject'](0x0)),_0xaa2177(this,'status$',this[_0x417949(0x3ee)][_0x417949(0x1fe)]()),_0xaa2177(this,_0x417949(0x1b7),!0x1),_0xaa2177(this,_0x417949(0x2be)),_0xaa2177(this,_0x417949(0x2cd)),_0xaa2177(this,_0x417949(0x1f1)),_0xaa2177(this,_0x417949(0x20f),0x0),(this[_0x417949(0x28b)]=_0x44e410,this[_0x417949(0x401)]=_0x4aa2b0,this[_0x417949(0x306)]=_0x138b98,this['_logService']=_0x5a0f35,this[_0x417949(0x12b)]=_0x49cdf8,this[_0x417949(0x3c3)]=_0x17f301);}get['_socket'](){const _0x2d1418=_0x228849;return this[_0x2d1418(0x36a)][_0x2d1418(0x181)]();}[_0x228849(0x485)](){const _0x409b1b=_0x228849;super['dispose'](),this[_0x409b1b(0x1d0)][_0x409b1b(0x3ad)](_0x438e8a=>_0x438e8a[_0x409b1b(0x485)]()),this[_0x409b1b(0x1d0)]['clear'](),this[_0x409b1b(0x3ee)][_0x409b1b(0x1dd)]();}async['requireSession'](_0x364513){const _0x7e05ae=_0x228849;if(this[_0x7e05ae(0x1d0)][_0x7e05ae(0x1b2)](_0x364513))return this[_0x7e05ae(0x1d0)][_0x7e05ae(0x24c)](_0x364513);this[_0x7e05ae(0x4b5)]();const _0x276be3=this['_injector']['createInstance'](_0x431c6f[_0x7e05ae(0x2d6)],_0x364513,this[_0x7e05ae(0x36a)][_0x7e05ae(0x1fe)]());return this[_0x7e05ae(0x1d0)]['set'](_0x364513,_0x276be3),_0x276be3;}['_createSocket'](){const _0x4f626e=_0x228849;var _0x219b58;const _0x4143bb=(_0x219b58=this[_0x4f626e(0x12b)][_0x4f626e(0x176)](_0x54323b))!=null?_0x219b58:_0x53cf5e;return this[_0x4f626e(0x3c3)][_0x4f626e(0x4c9)](_0x4143bb);}['_tryEnsureSocket'](){const _0xecc7cc=_0x228849;try{const _0x2fa52d=this[_0xecc7cc(0x472)]();if(_0x2fa52d){const _0x27a03b=_0x2fa52d['send'];_0x2fa52d[_0xecc7cc(0x4ed)]=_0x305ec0=>(this['_rescheduleHeartbeatEvent'](),_0x27a03b[_0xecc7cc(0x4eb)](_0x2fa52d,[_0x305ec0])),_0x2fa52d[_0xecc7cc(0x160)][_0xecc7cc(0x22c)](_0x125092=>this[_0xecc7cc(0x3b9)](_0x2fa52d,_0x125092)),_0x2fa52d[_0xecc7cc(0x22b)]['pipe'](_0x4d72f4[_0xecc7cc(0x1db)](0x1))[_0xecc7cc(0x22c)](_0x23239f=>this[_0xecc7cc(0x464)][_0xecc7cc(0x24e)](_0xecc7cc(0x19e),_0x23239f)),_0x2fa52d['open$'][_0xecc7cc(0x450)](_0x4d72f4[_0xecc7cc(0x1db)](0x1))[_0xecc7cc(0x22c)](()=>{const _0x52df8a=_0xecc7cc;this[_0x52df8a(0x22e)](_0x2fa52d);}),_0x2fa52d['close$'][_0xecc7cc(0x450)](_0x4d72f4[_0xecc7cc(0x1db)](0x1))[_0xecc7cc(0x22c)](_0x1e1773=>{const _0x31d687=_0xecc7cc;this[_0x31d687(0x464)]['debug'](_0x31d687(0x242),'socket\x20close',_0x1e1773),this[_0x31d687(0x3b0)]();});}}catch(_0x35a88b){this[_0xecc7cc(0x464)][_0xecc7cc(0x24e)](_0x35a88b),this['_onConnectionFailed']();}}[_0x228849(0x22e)](_0x5a2fcb){const _0xf0e5e=_0x228849;this['_logService'][_0xf0e5e(0x434)](_0xf0e5e(0x242),_0xf0e5e(0x2f6)),_0x5a2fcb['send']({'cmd':_0x3d5b02[_0xf0e5e(0x483)]}),this['_rescheduleHeartbeatEvent']();}[_0x228849(0x3b0)](){const _0x3358c5=_0x228849;var _0x33430d;this[_0x3358c5(0x3ee)]['next'](0x2),this[_0x3358c5(0x36a)][_0x3358c5(0x488)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer'](),this['_socketReady']=!0x1,this[_0x3358c5(0x20f)]<((_0x33430d=this[_0x3358c5(0x12b)][_0x3358c5(0x176)](_0x3dfce0))!=null?_0x33430d:0x3)?(this[_0x3358c5(0x2ef)](this[_0x3358c5(0x20f)]),this['_retryCount']+=0x1):this['_messageService'][_0x3358c5(0x333)]({'type':_0x2d5606['MessageType'][_0x3358c5(0x45b)],'content':this['_localeService']['t'](_0x3358c5(0x304))});}[_0x228849(0x2ef)](_0x28e772){const _0x4d500c=_0x228849;var _0x517859;const _0x3f0be6=((_0x517859=this[_0x4d500c(0x12b)]['getConfig'](_0x4c064c))!=null?_0x517859:0x4e20)*0x2**_0x28e772;this['_messageService'][_0x4d500c(0x333)]({'type':_0x2d5606[_0x4d500c(0x481)]['Warning'],'content':this[_0x4d500c(0x401)]['t'](_0x4d500c(0x3e9))}),this[_0x4d500c(0x1f1)]=setTimeout(()=>{const _0x512202=_0x4d500c;this[_0x512202(0x4b5)](),clearTimeout(this[_0x512202(0x1f1)]),this[_0x512202(0x1f1)]=null;},_0x3f0be6);}['_rescheduleHeartbeatEvent'](){const _0x34cd58=_0x228849;var _0xc7ae4;this['_clearHeartbeatTimer'](),this[_0x34cd58(0x2be)]=setTimeout(()=>this[_0x34cd58(0x3b7)](),(_0xc7ae4=this['_configService'][_0x34cd58(0x176)](_0x18051e))!=null?_0xc7ae4:0x7530);}['_sendHeartbeat'](){const _0x54b2eb=_0x228849;this[_0x54b2eb(0x39b)][_0x54b2eb(0x4ed)]({'cmd':_0x3d5b02[_0x54b2eb(0x4a6)]}),this['_waitForHeartbeatResponse']();}[_0x228849(0x3c4)](){const _0x5d64f8=_0x228849;var _0x51ebb2;this['_timeoutTimer']=setTimeout(()=>this[_0x5d64f8(0x3b0)](),(_0x51ebb2=this[_0x5d64f8(0x12b)][_0x5d64f8(0x176)](_0x2c7ffa))!=null?_0x51ebb2:0x2710);}[_0x228849(0x3b9)](_0x40a3b2,_0xc5a11d){const _0x3df058=_0x228849,{cmd:_0x660b9d}=_0xc5a11d;_0x660b9d===_0x3d5b02[_0x3df058(0x483)]&&!this[_0x3df058(0x1b7)]&&(_0x40a3b2[_0x3df058(0x25d)]=_0xc5a11d[_0x3df058(0x1f8)][_0x3df058(0x25d)],this['_socket$'][_0x3df058(0x488)](_0x40a3b2),this[_0x3df058(0x3ee)][_0x3df058(0x488)](0x3),this[_0x3df058(0x1b7)]=!0x0),_0x660b9d===_0x3d5b02[_0x3df058(0x4a6)]&&this[_0x3df058(0x38a)](),this[_0x3df058(0x37d)]();}[_0x228849(0x3f5)](){const _0x3c28f0=_0x228849;this[_0x3c28f0(0x2be)]!=null&&(clearTimeout(this[_0x3c28f0(0x2be)]),this['_sendHeartbeatTimer']=null);}[_0x228849(0x38a)](){const _0x49c8ff=_0x228849;this[_0x49c8ff(0x2cd)]!=null&&(clearTimeout(this[_0x49c8ff(0x2cd)]),this[_0x49c8ff(0x2cd)]=null);}},_0x431c6f[_0x228849(0x192)]=_0x47e7b2([_0x30544e(0x0,_0x49bc9[_0x228849(0x31c)](_0x49bc9['Injector'])),_0x30544e(0x1,_0x49bc9[_0x228849(0x31c)](_0x226a7e[_0x228849(0x355)])),_0x30544e(0x2,_0x15005b[_0x228849(0x4f8)]),_0x30544e(0x3,_0x226a7e[_0x228849(0x212)]),_0x30544e(0x4,_0x226a7e[_0x228849(0x26f)]),_0x30544e(0x5,_0x970e64)],_0x431c6f[_0x228849(0x192)]);var _0x55b5d1=Object['defineProperty'],_0x5a4fcb=Object[_0x228849(0x1b4)],_0x14dad1=(_0x1e0865,_0x62f70f,_0x3f7658,_0x5dc0b9)=>{for(var _0x5dd832=_0x5dc0b9>0x1?void 0x0:_0x5dc0b9?_0x5a4fcb(_0x62f70f,_0x3f7658):_0x62f70f,_0x10ef2b=_0x1e0865['length']-0x1,_0x467203;_0x10ef2b>=0x0;_0x10ef2b--)(_0x467203=_0x1e0865[_0x10ef2b])&&(_0x5dd832=(_0x5dc0b9?_0x467203(_0x62f70f,_0x3f7658,_0x5dd832):_0x467203(_0x5dd832))||_0x5dd832);return _0x5dc0b9&&_0x5dd832&&_0x55b5d1(_0x62f70f,_0x3f7658,_0x5dd832),_0x5dd832;},_0x5bb635=(_0x47cedc,_0x197f57)=>(_0x591666,_0x5245cf)=>_0x197f57(_0x591666,_0x5245cf,_0x47cedc);_0x431c6f[_0x228849(0x361)]=class extends _0x226a7e[_0x228849(0x484)]{constructor(_0x1456eb,_0x4eb3b7,_0x45f12b,_0x24d5c4,_0x5c823b){const _0x147bf1=_0x228849;super(),_0xaa2177(this,_0x147bf1(0x217),new Map()),_0xaa2177(this,_0x147bf1(0x1c9),new Map()),_0xaa2177(this,'_disabled',!0x1),(this[_0x147bf1(0x12b)]=_0x1456eb,this['_localStorageService']=_0x4eb3b7,this[_0x147bf1(0x384)]=_0x45f12b,this['_localeService']=_0x24d5c4,this[_0x147bf1(0x230)]=_0x5c823b,this[_0x147bf1(0x37a)]());}[_0x228849(0x486)](){const _0x1d84f6=_0x228849;this[_0x1d84f6(0x2c5)]=!0x0;}[_0x228849(0x2d4)](){const _0x379cd7=_0x228849;this[_0x379cd7(0x2c5)]=!0x1;}['dispose'](){const _0x128cf9=_0x228849;this['_exhaustSavingTask']()['then'](()=>super[_0x128cf9(0x485)]());}async[_0x228849(0x33c)](_0x46449f){const _0x7d8f44=_0x228849;return this[_0x7d8f44(0x2c5)]?null:this[_0x7d8f44(0x271)][_0x7d8f44(0x416)](_0x5429d1(_0x46449f));}async['saveOfflineData'](_0x101239,_0x57baaf){const _0x409dc0=_0x228849;return!!this[_0x409dc0(0x271)][_0x409dc0(0x4ca)](_0x101239,_0x57baaf);}[_0x228849(0x323)](_0x48fbbb,_0x428bfa,_0x24629f,_0x24f414){const _0x17f096=_0x228849,_0x4ae350=this[_0x17f096(0x230)][_0x17f096(0x45e)](_0x48fbbb);this[_0x17f096(0x217)]['set'](_0x48fbbb,{'unitID':_0x48fbbb,'type':_0x428bfa,'awaitingChangeset':_0x24629f,'mutations':_0x24f414,'rev':_0x4ae350}),this[_0x17f096(0x1c9)]['has'](_0x48fbbb)||this[_0x17f096(0x29b)](_0x48fbbb);}[_0x228849(0x29b)](_0x556a80){const _0x4efdc6=_0x228849,_0xd47ea5=this[_0x4efdc6(0x35f)]();_0xd47ea5===0x0?this[_0x4efdc6(0x16a)](_0x556a80):this[_0x4efdc6(0x1c9)][_0x4efdc6(0x4f3)](_0x556a80,setTimeout(()=>this[_0x4efdc6(0x16a)](_0x556a80),_0xd47ea5));}[_0x228849(0x35f)](){const _0x2c50cf=_0x228849;var _0x4d7123;return(_0x4d7123=this[_0x2c50cf(0x12b)]['getConfig'](_0x109348))!=null?_0x4d7123:0x3e8;}['_saveCache'](_0x171731){const _0x42b488=_0x228849,_0x30232f=this[_0x42b488(0x1c9)][_0x42b488(0x24c)](_0x171731);return _0x30232f!==void 0x0&&window[_0x42b488(0x2c9)](_0x30232f),this[_0x42b488(0x271)]['setItem'](_0x5429d1(_0x171731),this[_0x42b488(0x217)]['get'](_0x171731))[_0x42b488(0x1ae)](()=>this[_0x42b488(0x1c9)][_0x42b488(0x2b1)](_0x171731));}async[_0x228849(0x3a7)](){const _0x3eed20=_0x228849,_0x173279=[];this[_0x3eed20(0x1c9)][_0x3eed20(0x3ad)]((_0x3fb521,_0xbeceb5)=>{const _0x2d6a03=_0x3eed20;window['clearTimeout'](_0x3fb521),_0x173279[_0x2d6a03(0x4cb)](this[_0x2d6a03(0x16a)](_0xbeceb5)[_0x2d6a03(0x1ae)](()=>{const _0x5968c6=_0x2d6a03;this[_0x5968c6(0x1c9)][_0x5968c6(0x2b1)](_0xbeceb5);}));}),await Promise[_0x3eed20(0x456)](_0x173279);}[_0x228849(0x37a)](){const _0x4abe93=_0x228849;this['disposeWithMe'](this[_0x4abe93(0x384)][_0x4abe93(0x317)](()=>{const _0x58cb86=_0x4abe93;if(this[_0x58cb86(0x1c9)][_0x58cb86(0x3bb)])return this[_0x58cb86(0x401)]['t'](_0x58cb86(0x41f));}));}},_0x431c6f['LocalCacheService']=_0x14dad1([_0x5bb635(0x0,_0x226a7e['IConfigService']),_0x5bb635(0x1,_0x226a7e['ILocalStorageService']),_0x5bb635(0x2,_0x15005b[_0x228849(0x4c2)]),_0x5bb635(0x3,_0x49bc9[_0x228849(0x31c)](_0x226a7e['LocaleService'])),_0x5bb635(0x4,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)]))],_0x431c6f['LocalCacheService']);function _0x5429d1(_0x4d551e){const _0x42df8f=_0x228849;return _0x42df8f(0x283)+_0x4d551e;}const _0x53b064=_0x49bc9['createIdentifier'](_0x228849(0x2ed));var _0x46ab2b=(_0x97ce1b=>(_0x97ce1b[_0x97ce1b[_0x228849(0x2a9)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x97ce1b[_0x97ce1b['OTHER_CLIENTS_EDITING']=0x1]=_0x228849(0x243),_0x97ce1b))(_0x46ab2b||{});const _0x1eefa8=0x7530,_0xd8fae=_0x228849(0x334);class _0x5d66f4 extends _0x226a7e[_0x228849(0x484)]{constructor(){const _0x16a6b6=_0x228849;super(),_0xaa2177(this,_0x16a6b6(0x39e),_0x226a7e[_0x16a6b6(0x144)][_0x16a6b6(0x34b)]()),_0xaa2177(this,_0x16a6b6(0x388),new Set()),_0xaa2177(this,_0x16a6b6(0x1c7),new Map()),_0xaa2177(this,_0x16a6b6(0x1cd),null),_0xaa2177(this,_0x16a6b6(0x49c),new Map()),_0xaa2177(this,_0x16a6b6(0x16b),new Map()),this[_0x16a6b6(0x285)]();}[_0x228849(0x485)](){const _0xcb464=_0x228849;super[_0xcb464(0x485)](),this['_clearOtherTimers'][_0xcb464(0x3ad)]((_0x57c1eb,_0xcba5f2)=>this[_0xcb464(0x282)](_0xcba5f2)),this[_0xcb464(0x1cd)]&&window['clearInterval'](this[_0xcb464(0x1cd)]);}['getUnitStatus$'](_0x245aa4){const _0x4419d4=_0x228849;return this['_ensureSubject'](_0x245aa4)[_0x4419d4(0x450)](_0x4e5e3f[_0x4419d4(0x196)]());}[_0x228849(0x18f)](_0x4abfdb){const _0x4fe829=_0x228849;this[_0x4fe829(0x388)][_0x4fe829(0x3bb)]===0x0&&this[_0x4fe829(0x40a)](),this[_0x4fe829(0x388)]['add'](_0x4abfdb),this[_0x4fe829(0x226)]({'type':0x0,'memberID':this[_0x4fe829(0x39e)],'unitIDs':[_0x4abfdb],'isForwarded':!0x1});}[_0x228849(0x1e4)](_0x2ebfbe){const _0x1f14e3=_0x228849;this[_0x1f14e3(0x388)][_0x1f14e3(0x2b1)](_0x2ebfbe),this['_selfUnitIDs'][_0x1f14e3(0x3bb)]===0x0&&this[_0x1f14e3(0x1cd)]&&window[_0x1f14e3(0x3b8)](this[_0x1f14e3(0x1cd)]);}[_0x228849(0x285)](){const _0x546105=_0x228849;this[_0x546105(0x231)](_0x226a7e[_0x546105(0x14b)](_0x4e5e3f[_0x546105(0x324)](window,_0x546105(0x1af))[_0x546105(0x22c)](_0x373e1b=>{const _0x4b6246=_0x546105;if(_0x373e1b[_0x4b6246(0x170)]!==_0xd8fae||!_0x373e1b['newValue'])return;const _0x5e0447=JSON[_0x4b6246(0x1f9)](_0x373e1b[_0x4b6246(0x2f5)]);this['_handleEvent'](_0x5e0447);}))),window[_0x546105(0x266)](_0x546105(0x215),()=>this[_0x546105(0x226)]({'type':0x1,'memberID':this[_0x546105(0x39e)],'unitIDs':Array[_0x546105(0x41c)](this[_0x546105(0x388)])}));}[_0x228849(0x4c4)](_0x5f0bff){const _0x4330e1=_0x228849;switch(_0x5f0bff['type']){case 0x0:this[_0x4330e1(0x20e)](_0x5f0bff);break;case 0x1:this[_0x4330e1(0x2c8)](_0x5f0bff);break;case 0x2:this['_handleHeartbeatEvent'](_0x5f0bff);break;}}['_handleJoinEvent'](_0x28cb7e){const _0x103c5c=_0x228849,{unitIDs:_0x2cfc16,memberID:_0x59861b,isForwarded:_0x57ecc2}=_0x28cb7e;_0x2cfc16[_0x103c5c(0x3ad)](_0x380f7a=>{const _0x39839e=_0x103c5c;if(!_0x57ecc2&&this[_0x39839e(0x1c7)][_0x39839e(0x1b2)](_0x380f7a)&&this[_0x39839e(0x428)](_0x380f7a)['next'](0x1),!this[_0x39839e(0x1c7)][_0x39839e(0x1b2)](_0x380f7a)||!this[_0x39839e(0x1c7)][_0x39839e(0x24c)](_0x380f7a)[_0x39839e(0x1b2)](_0x59861b)){const _0x5f0d40=this[_0x39839e(0x1c7)][_0x39839e(0x24c)](_0x380f7a)||new Set();_0x5f0d40['add'](_0x59861b),this[_0x39839e(0x1c7)][_0x39839e(0x4f3)](_0x380f7a,_0x5f0d40),this['_scheduleClearOtherTimer'](_0x59861b);}}),_0x57ecc2||this[_0x103c5c(0x226)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x103c5c(0x388)]],'isForwarded':!0x0});}[_0x228849(0x321)](_0x3f2ca7){const _0x590acc=_0x228849;this[_0x590acc(0x282)](_0x3f2ca7);const _0x52eec8=window[_0x590acc(0x46a)](()=>{const _0x37768a=_0x590acc;this['_unitOnClients'][_0x37768a(0x3ad)](_0x22b565=>{const _0x19aa4e=_0x37768a;_0x22b565[_0x19aa4e(0x2b1)](_0x3f2ca7);});},_0x1eefa8*0x2);this[_0x590acc(0x49c)][_0x590acc(0x4f3)](_0x3f2ca7,_0x52eec8);}[_0x228849(0x282)](_0xa022b2){const _0x2528ac=_0x228849;if(this['_clearOtherTimers']['has'](_0xa022b2)){const _0x4fe091=this['_clearOtherTimers'][_0x2528ac(0x24c)](_0xa022b2);_0x4fe091&&window[_0x2528ac(0x2c9)](_0x4fe091),this[_0x2528ac(0x49c)][_0x2528ac(0x4f3)](_0xa022b2,null);}}[_0x228849(0x2c8)](_0x1c96d5){const _0x148fa7=_0x228849,{memberID:_0x350d15,unitIDs:_0x11ced8}=_0x1c96d5;_0x11ced8[_0x148fa7(0x3ad)](_0x320344=>{const _0x585916=_0x148fa7;var _0x23d5fe;const _0x1e31ef=this['_unitOnClients'][_0x585916(0x24c)](_0x320344);_0x1e31ef&&(_0x1e31ef[_0x585916(0x2b1)](_0x350d15),(_0x23d5fe=this['_ensureSubject'](_0x320344))==null||_0x23d5fe['next'](_0x1e31ef[_0x585916(0x3bb)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x350d15);}['_handleHeartbeatEvent'](_0x40ab8d){const _0x6aac71=_0x228849;this[_0x6aac71(0x321)](_0x40ab8d[_0x6aac71(0x25d)]);}[_0x228849(0x226)](_0x3a9731){const _0x44c912=_0x228849;localStorage[_0x44c912(0x4ca)](_0xd8fae,JSON[_0x44c912(0x1d4)](_0x3a9731));}[_0x228849(0x40a)](){const _0x41d2fc=_0x228849;this[_0x41d2fc(0x1cd)]=window[_0x41d2fc(0x4c6)](()=>{const _0xdbf3f0=_0x41d2fc;this[_0xdbf3f0(0x226)]({'type':0x2,'memberID':this[_0xdbf3f0(0x39e)]});},_0x1eefa8);}['_ensureSubject'](_0x3c3b81){const _0x51eff1=_0x228849;return this[_0x51eff1(0x16b)]['has'](_0x3c3b81)||this[_0x51eff1(0x16b)][_0x51eff1(0x4f3)](_0x3c3b81,new _0x4e5e3f[(_0x51eff1(0x2e7))](0x0)),this['_unitStatus'][_0x51eff1(0x24c)](_0x3c3b81);}}var _0x32fd2e=Object[_0x228849(0x1fc)],_0x288fea=Object[_0x228849(0x1b4)],_0x3f9188=(_0x4055aa,_0x2361cb,_0x6002a1,_0xf35d)=>{const _0xe58150=_0x228849;for(var _0x673332=_0xf35d>0x1?void 0x0:_0xf35d?_0x288fea(_0x2361cb,_0x6002a1):_0x2361cb,_0x4347f2=_0x4055aa[_0xe58150(0x430)]-0x1,_0x2cf49d;_0x4347f2>=0x0;_0x4347f2--)(_0x2cf49d=_0x4055aa[_0x4347f2])&&(_0x673332=(_0xf35d?_0x2cf49d(_0x2361cb,_0x6002a1,_0x673332):_0x2cf49d(_0x673332))||_0x673332);return _0xf35d&&_0x673332&&_0x32fd2e(_0x2361cb,_0x6002a1,_0x673332),_0x673332;},_0x1c3c0b=(_0x31e1ba,_0x1468a5)=>(_0x234faa,_0x130ad4)=>_0x1468a5(_0x234faa,_0x130ad4,_0x31e1ba);let _0x1f5fb3=class{constructor(_0x3ebc38,_0x553002){const _0x5cbca2=_0x228849;this[_0x5cbca2(0x28b)]=_0x3ebc38,this[_0x5cbca2(0x1b9)]=_0x553002;}[_0x228849(0x328)](_0x441013){const _0x17f7db=_0x228849;this['_transformUndoRedoStack'](_0x441013),this[_0x17f7db(0x48a)](_0x441013);}[_0x228849(0x440)](_0xfa0413){const _0xa838c=_0x228849,_0x55a478=this[_0xa838c(0x28b)][_0xa838c(0x24c)](_0x534040[_0xa838c(0x238)]),{redoCache:_0x15a11a}=_0x55a478[_0xa838c(0x150)]();if(_0x15a11a[_0xa838c(0x430)]===0x0)return _0xfa0413;let _0x5e6d0e=_0x226a7e[_0xa838c(0x144)][_0xa838c(0x473)](_0xfa0413['mutations'][0x0]);for(let _0xecbcde=0x0;_0xecbcde<_0x15a11a[_0xa838c(0x430)];_0xecbcde++){const _0x58ed71={'id':_0xa838c(0x15e),'params':{..._0x15a11a[_0xecbcde]}},_0x34b4c6=this[_0xa838c(0x1b9)][_0xa838c(0x278)](_0x5e6d0e,_0x58ed71,!0x1);if(_0x1e8c75[_0xa838c(0x499)](_0x34b4c6))throw _0x34b4c6[_0xa838c(0x24e)];_0x5e6d0e=_0x34b4c6[_0xa838c(0x44b)];}return{..._0x226a7e[_0xa838c(0x144)][_0xa838c(0x473)](_0xfa0413),'mutations':[_0x5e6d0e]};}[_0x228849(0x29f)](_0x1cfc18){const _0x46d1b2=_0x228849,_0x8d69e5=this['_injector'][_0x46d1b2(0x24c)](_0x534040[_0x46d1b2(0x238)]),{undoCache:_0x342091,redoCache:_0x4be1a7}=_0x8d69e5[_0x46d1b2(0x150)]();if(_0x342091[_0x46d1b2(0x430)]===0x0||_0x4be1a7['length']===0x0)return;const _0x293e69=[],_0xa74c3=[];let _0x1726b1=_0x226a7e[_0x46d1b2(0x144)]['deepClone'](_0x1cfc18[_0x46d1b2(0x357)][0x0]),_0x4e317e=_0x226a7e[_0x46d1b2(0x144)]['deepClone'](_0x1cfc18[_0x46d1b2(0x357)][0x0]);for(let _0x5f06a4=_0x342091[_0x46d1b2(0x430)]-0x1;_0x5f06a4>=0x0;_0x5f06a4--){const _0x20ae91={'id':_0x46d1b2(0x15e),'params':{..._0x342091[_0x5f06a4]}},_0x5b267e={'id':_0x46d1b2(0x15e),'params':{..._0x4be1a7[_0x5f06a4]}},_0x25713d=this[_0x46d1b2(0x1b9)][_0x46d1b2(0x278)](_0x1726b1,_0x20ae91,!0x1),_0x5a719e=this[_0x46d1b2(0x1b9)][_0x46d1b2(0x278)](_0x4e317e,_0x5b267e,!0x1);if(_0x1e8c75[_0x46d1b2(0x499)](_0x25713d))throw _0x25713d[_0x46d1b2(0x24e)];if(_0x1e8c75[_0x46d1b2(0x499)](_0x5a719e))throw _0x5a719e[_0x46d1b2(0x24e)];_0x293e69['unshift'](_0x25713d['m2Prime'][_0x46d1b2(0x2f4)]),_0xa74c3[_0x46d1b2(0x47a)](_0x5a719e[_0x46d1b2(0x260)][_0x46d1b2(0x2f4)]),_0x1726b1=_0x25713d[_0x46d1b2(0x44b)],_0x4e317e=_0x5a719e[_0x46d1b2(0x44b)];}_0x8d69e5[_0x46d1b2(0x48b)]({'undoCache':_0x293e69,'redoCache':_0xa74c3});}[_0x228849(0x48a)](_0x4c7888){const _0x57077e=_0x228849,_0x27b03b=this['_injector'][_0x57077e(0x24c)](_0x534040[_0x57077e(0x238)]),_0x38f94d=_0x27b03b[_0x57077e(0x345)]();if(_0x38f94d==null)return;const _0x1ad0b7=[{'id':_0x57077e(0x15e),'params':{'unitId':_0x4c7888[_0x57077e(0x340)],'actions':null,'textRanges':[_0x38f94d]}}],_0x41450e=this[_0x57077e(0x1b9)][_0x57077e(0x2dd)](_0x4c7888,_0x1ad0b7);if(!_0x1e8c75['isTransformMutationsWithChangesetSuccess'](_0x41450e))throw _0x41450e[_0x57077e(0x24e)];const _0x19d0fe=_0x41450e[_0x57077e(0x260)][0x0]['params']['textRanges'];Array[_0x57077e(0x441)](_0x19d0fe)&&_0x19d0fe[_0x57077e(0x430)]&&_0x27b03b['setActiveRange'](_0x19d0fe[0x0]);}};_0x1f5fb3=_0x3f9188([_0x1c3c0b(0x0,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x1c3c0b(0x1,_0x1e8c75[_0x228849(0x184)])],_0x1f5fb3);var _0x4a819e=Object[_0x228849(0x1fc)],_0x2dcf53=Object[_0x228849(0x1b4)],_0x465daf=(_0x4f0ecc,_0xae0fbb,_0x4ca48b,_0x10c007)=>{for(var _0x4b7ba9=_0x10c007>0x1?void 0x0:_0x10c007?_0x2dcf53(_0xae0fbb,_0x4ca48b):_0xae0fbb,_0xd77cac=_0x4f0ecc['length']-0x1,_0x167312;_0xd77cac>=0x0;_0xd77cac--)(_0x167312=_0x4f0ecc[_0xd77cac])&&(_0x4b7ba9=(_0x10c007?_0x167312(_0xae0fbb,_0x4ca48b,_0x4b7ba9):_0x167312(_0x4b7ba9))||_0x4b7ba9);return _0x10c007&&_0x4b7ba9&&_0x4a819e(_0xae0fbb,_0x4ca48b,_0x4b7ba9),_0x4b7ba9;},_0x1b760=(_0x35cbaf,_0x45f08d)=>(_0x475093,_0x1429e0)=>_0x45f08d(_0x475093,_0x1429e0,_0x35cbaf);let _0x35da09=class{constructor(_0x221f89,_0xaefbc4){const _0x5d73e8=_0x228849;this['_injector']=_0x221f89,this[_0x5d73e8(0x1b9)]=_0xaefbc4;}[_0x228849(0x23c)](_0x2ba8bd){const _0x1f7900=_0x228849;var _0x1d03fc;const _0x44a455=this[_0x1f7900(0x28b)][_0x1f7900(0x24c)](_0x534040['TextSelectionManagerService']),_0x364300=(_0x1d03fc=_0x44a455['getSelections']())!=null?_0x1d03fc:[],_0x3da2a1=_0x364300==null?void 0x0:_0x364300['map'](_0x534040[_0x1f7900(0x446)]);if(_0x3da2a1[_0x1f7900(0x430)]===0x0)return;const _0x1acd29=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2ba8bd[_0x1f7900(0x340)],'actions':null,'textRanges':_0x3da2a1}}],_0x5135ab=this[_0x1f7900(0x1b9)][_0x1f7900(0x2dd)](_0x2ba8bd,_0x1acd29);if(!_0x1e8c75[_0x1f7900(0x4f6)](_0x5135ab))throw _0x5135ab[_0x1f7900(0x24e)];const _0x3ee0af=_0x5135ab['m2Prime'][0x0][_0x1f7900(0x2f4)][_0x1f7900(0x47f)];Array['isArray'](_0x3ee0af)&&_0x3ee0af[_0x1f7900(0x430)]&&_0x44a455[_0x1f7900(0x2b4)](_0x3ee0af,!0x1);}};_0x35da09=_0x465daf([_0x1b760(0x0,_0x49bc9[_0x228849(0x31c)](_0x49bc9['Injector'])),_0x1b760(0x1,_0x1e8c75['ITransformService'])],_0x35da09);function _0x26d119(_0x42ca8e){const _0x4dd53d=_0x228849;let _0x111409='';for(const _0x3a43da of _0x42ca8e){const {startOffset:_0x5dbf8a,endOffset:_0x5e589d,isActive:_0x3bd28f}=_0x3a43da;_0x111409[_0x4dd53d(0x430)]&&(_0x111409+=','),_0x111409+=_0x5dbf8a+':'+_0x5e589d+':'+(_0x3bd28f?'1':'0');}return _0x111409;}function _0x500cfa(_0x4e1bd8){const _0xca9ff2=_0x228849,_0x5b710c=_0x4e1bd8['split'](','),_0x271912=[];for(const _0x4a6807 of _0x5b710c){const [_0x1dfe7c,_0x22e7a6,_0x2785f8]=_0x4a6807[_0xca9ff2(0x457)](':');_0x271912[_0xca9ff2(0x4cb)]({'startOffset':Number(_0x1dfe7c),'endOffset':Number(_0x22e7a6),'collapsed':_0x1dfe7c===_0x22e7a6,'isActive':_0x2785f8==='1'});}return _0x271912[_0xca9ff2(0x369)](_0x228998=>_0x228998[_0xca9ff2(0x2cc)])||(_0x271912[0x0][_0xca9ff2(0x2cc)]=!0x0),_0x271912;}class _0x372338 extends _0x226a7e[_0x228849(0x2ac)]{constructor(){const _0x3c068c=_0x228849;super(...arguments),_0xaa2177(this,_0x3c068c(0x4b1),new _0x4e5e3f[(_0x3c068c(0x2e7))](null)),_0xaa2177(this,'collabCursorState$',this[_0x3c068c(0x4b1)][_0x3c068c(0x1fe)]());}[_0x228849(0x48d)](_0x325257){const _0x22e2fc=_0x228849,{unitID:_0x5edd85,memberID:_0x3dd469,textRanges:_0x1a8fd9}=_0x325257,_0x176ef9=_0x26d119(_0x1a8fd9),_0x8a81f6={'unitID':_0x5edd85,'memberID':_0x3dd469,'selection':_0x176ef9};this[_0x22e2fc(0x4b1)][_0x22e2fc(0x488)](_0x8a81f6);}}var _0x396ed7=Object[_0x228849(0x1fc)],_0x362520=Object[_0x228849(0x1b4)],_0x432c74=(_0x543a09,_0x1abe42,_0x24acd8,_0x479441)=>{const _0x170c34=_0x228849;for(var _0x1c043f=_0x479441>0x1?void 0x0:_0x479441?_0x362520(_0x1abe42,_0x24acd8):_0x1abe42,_0x5bbd84=_0x543a09[_0x170c34(0x430)]-0x1,_0x5c7a23;_0x5bbd84>=0x0;_0x5bbd84--)(_0x5c7a23=_0x543a09[_0x5bbd84])&&(_0x1c043f=(_0x479441?_0x5c7a23(_0x1abe42,_0x24acd8,_0x1c043f):_0x5c7a23(_0x1c043f))||_0x1c043f);return _0x479441&&_0x1c043f&&_0x396ed7(_0x1abe42,_0x24acd8,_0x1c043f),_0x1c043f;},_0x46c381=(_0x3140c1,_0x43680b)=>(_0x421c45,_0x22cdcd)=>_0x43680b(_0x421c45,_0x22cdcd,_0x3140c1);let _0x362b05=class{constructor(_0x475c22,_0x536bc4){const _0x24774f=_0x228849;this[_0x24774f(0x28b)]=_0x475c22,this['_transformService']=_0x536bc4;}['transformSelections'](_0x2289a1){const _0x522c86=_0x228849;var _0x24761a,_0x2060ac,_0x385e6f,_0x5c7350;const _0x4aed9f=this[_0x522c86(0x28b)]['get'](_0x3acf4c[_0x522c86(0x35c)]),{pluginName:_0x4497a0,unitId:_0x2cc692,sheetId:_0x5adb56}=_0x4aed9f[_0x522c86(0x259)]()||{},_0x2caf72=(_0x24761a=_0x4aed9f[_0x522c86(0x2e0)]())!=null?_0x24761a:[];if(_0x2caf72[_0x522c86(0x430)]===0x0||!_0x4497a0||!_0x2cc692||!_0x5adb56)return;const _0x3e31be=[{'id':_0x3acf4c[_0x522c86(0x21b)]['id'],'params':{'unitId':_0x2cc692,'subUnitId':_0x5adb56,'pluginName':_0x4497a0,'selections':_0x226a7e[_0x522c86(0x144)][_0x522c86(0x473)](_0x2caf72)}}],_0x49826c=this[_0x522c86(0x1b9)][_0x522c86(0x2dd)](_0x2289a1,_0x3e31be);if(!_0x1e8c75[_0x522c86(0x4f6)](_0x49826c))throw _0x49826c['error'];const _0x18ef6d=(_0x5c7350=(_0x385e6f=(_0x2060ac=_0x49826c[_0x522c86(0x260)][0x0])==null?void 0x0:_0x2060ac[_0x522c86(0x2f4)])==null?void 0x0:_0x385e6f[_0x522c86(0x3a6)])!=null?_0x5c7350:_0x2caf72;Array[_0x522c86(0x441)](_0x18ef6d)&&_0x18ef6d[_0x522c86(0x430)]&&this['_injector']['get'](_0x226a7e[_0x522c86(0x48f)])[_0x522c86(0x12c)](_0x3acf4c[_0x522c86(0x21b)]['id'],{'unitId':_0x2cc692,'subUnitId':_0x5adb56,'pluginName':_0x4497a0,'selections':_0x18ef6d});}};_0x362b05=_0x432c74([_0x46c381(0x0,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x46c381(0x1,_0x1e8c75['ITransformService'])],_0x362b05);const _0x3756ee=new Set([_0x3acf4c['InsertSheetMutation']['id']]);function _0x2fa4c4(_0x22617b,_0x47be3e,_0x29ecdd,_0x4d5143,_0x987e1b){const _0x1cc24a=_0x228849;var _0x3132fc,_0x56389c,_0x353957,_0x33602c;const _0x100ea6=[];for(const _0x489882 of _0x22617b)if(_0x3756ee['has'](_0x489882['id'])){if(_0x100ea6[_0x1cc24a(0x430)]>0x0)break;_0x100ea6[_0x1cc24a(0x4cb)](_0x489882);break;}else _0x100ea6['push'](_0x489882);const _0x42dcaa=(_0x56389c=(_0x3132fc=_0x987e1b['getCurrentUser']())==null?void 0x0:_0x3132fc[_0x1cc24a(0x1c6)])!=null?_0x56389c:_0x1cc24a(0x1e8),_0x55415d=(_0x33602c=(_0x353957=_0x987e1b[_0x1cc24a(0x347)]())==null?void 0x0:_0x353957[_0x1cc24a(0x25d)])!=null?_0x33602c:'unknown';return{'changeset':{'unitID':_0x47be3e,'type':_0x1e8c75['mapDocumentTypeToUniverType'](_0x29ecdd[_0x1cc24a(0x156)](_0x47be3e)),'baseRev':_0x4d5143['getCurrentRevForDocument'](_0x47be3e),'revision':0x0,'userID':_0x42dcaa,'memberID':_0x55415d,'mutations':_0x100ea6},'pendingMutations':_0x22617b[_0x1cc24a(0x3c0)](_0x100ea6[_0x1cc24a(0x430)])};}function _0x22706f(_0x123f9c,_0x50d035,_0x20a6cd,_0x449d7b,_0x175ecc){const _0x30e621=_0x228849;var _0x4c3b1a,_0x5b8026,_0x3e5723,_0x2c1c7e;const _0x57c533=[_0x123f9c[_0x30e621(0x3df)]((_0x4cd5fb,_0x45fc56)=>{const _0x582772=_0x30e621;var _0x28d7ca;const {id:_0x122058}=_0x4cd5fb,{id:_0x55239a,type:_0x4b2681}=_0x45fc56,_0x2e6025=(_0x28d7ca=_0x4cd5fb[_0x582772(0x2f4)])!=null?_0x28d7ca:{'actions':null},_0x3d6749=_0x45fc56[_0x582772(0x2f4)];if(_0x122058&&_0x122058!==_0x55239a)throw new Error(_0x582772(0x41d)+_0x122058+_0x582772(0x4c8)+_0x55239a+'.');return{..._0x4cd5fb,'id':_0x55239a,'type':_0x4b2681,'params':{'unitId':_0x3d6749[_0x582772(0x3c5)],'textRanges':_0x3d6749[_0x582772(0x47f)],'actions':_0x226a7e['JSONX'][_0x582772(0x4de)](_0x2e6025[_0x582772(0x274)],_0x3d6749[_0x582772(0x274)])}};},{})],_0x276319=(_0x5b8026=(_0x4c3b1a=_0x175ecc[_0x30e621(0x347)]())==null?void 0x0:_0x4c3b1a[_0x30e621(0x1c6)])!=null?_0x5b8026:_0x30e621(0x1e8),_0x4b59f9=(_0x2c1c7e=(_0x3e5723=_0x175ecc[_0x30e621(0x347)]())==null?void 0x0:_0x3e5723[_0x30e621(0x25d)])!=null?_0x2c1c7e:_0x30e621(0x1e8);return{'changeset':{'unitID':_0x50d035,'type':_0x1e8c75['mapDocumentTypeToUniverType'](_0x20a6cd[_0x30e621(0x156)](_0x50d035)),'baseRev':_0x449d7b[_0x30e621(0x45e)](_0x50d035),'revision':0x0,'userID':_0x276319,'memberID':_0x4b59f9,'mutations':_0x57c533},'pendingMutations':[]};}var _0x238228=Object['defineProperty'],_0x4ed4b9=Object[_0x228849(0x1b4)],_0x2b9fdb=(_0x14b3ec,_0x3d0685,_0x2bb070,_0x546db2)=>{const _0x30267b=_0x228849;for(var _0x18fe4f=_0x546db2>0x1?void 0x0:_0x546db2?_0x4ed4b9(_0x3d0685,_0x2bb070):_0x3d0685,_0x24b366=_0x14b3ec[_0x30267b(0x430)]-0x1,_0x59a928;_0x24b366>=0x0;_0x24b366--)(_0x59a928=_0x14b3ec[_0x24b366])&&(_0x18fe4f=(_0x546db2?_0x59a928(_0x3d0685,_0x2bb070,_0x18fe4f):_0x59a928(_0x18fe4f))||_0x18fe4f);return _0x546db2&&_0x18fe4f&&_0x238228(_0x3d0685,_0x2bb070,_0x18fe4f),_0x18fe4f;},_0x3e73d5=(_0x3c8a3d,_0x570c5e)=>(_0x1b7611,_0x3215ab)=>_0x570c5e(_0x1b7611,_0x3215ab,_0x3c8a3d),_0x4577df=(_0x2b1ca8=>(_0x2b1ca8[_0x228849(0x4e8)]='not_collab',_0x2b1ca8[_0x228849(0x310)]=_0x228849(0x1c1),_0x2b1ca8[_0x228849(0x44f)]=_0x228849(0x350),_0x2b1ca8[_0x228849(0x1b3)]=_0x228849(0x13a),_0x2b1ca8[_0x228849(0x19c)]=_0x228849(0x4ba),_0x2b1ca8[_0x228849(0x3d5)]=_0x228849(0x218),_0x2b1ca8['CONFLICT']=_0x228849(0x1ce),_0x2b1ca8[_0x228849(0x26d)]=_0x228849(0x297),_0x2b1ca8))(_0x4577df||{});class _0x1abe13{constructor(_0x14703e,_0x48a461,_0x4a1bdd,_0x286d3b,_0x47d3f7,_0x180a77,_0x372f0d,_0x52a973,_0x13d7b3){const _0x5d2ee1=_0x228849;_0xaa2177(this,_0x5d2ee1(0x14f),null),_0xaa2177(this,_0x5d2ee1(0x454),[]),(this['unitID']=_0x14703e,this[_0x5d2ee1(0x354)]=_0x48a461,this['_handler']=_0x47d3f7,this['_commandService']=_0x180a77,this[_0x5d2ee1(0x1bd)]=_0x372f0d,this[_0x5d2ee1(0x230)]=_0x52a973,this[_0x5d2ee1(0x3ef)]=_0x13d7b3,this[_0x5d2ee1(0x14f)]=_0x4a1bdd,this[_0x5d2ee1(0x454)]=_0x286d3b);}['_checkMissing'](_0x43fe7f){const _0x31973a=_0x228849,_0x22304f=this['_revisionService'][_0x31973a(0x45e)](this[_0x31973a(0x340)]);return _0x43fe7f[_0x31973a(0x437)]>_0x22304f+0x1?(this[_0x31973a(0x3d2)][_0x31973a(0x2b0)]({'from':_0x22304f,'to':_0x43fe7f[_0x31973a(0x437)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x57cb5a){const _0x42093f=_0x228849;this[_0x42093f(0x1bd)]['transformUndoRedo'](this[_0x42093f(0x340)],_0x57cb5a);}['_transformSelections'](_0x4c4eb5){const _0x5079cc=_0x228849;var _0x10c064,_0x8c4b2a;(_0x8c4b2a=(_0x10c064=this[_0x5079cc(0x3d2)])[_0x5079cc(0x482)])==null||_0x8c4b2a['call'](_0x10c064,_0x4c4eb5);}[_0x228849(0x4ab)](_0x2eb867){const _0x381885=_0x228849;var _0x38321e,_0x582ac5;return(_0x582ac5=(_0x38321e=this[_0x381885(0x3d2)])['onTransformIME'])==null?void 0x0:_0x582ac5['call'](_0x38321e,_0x2eb867);}[_0x228849(0x4d1)](_0x1708e2){const _0x33179f=_0x228849;var _0x40aea5,_0x48fd91,_0x307bc3;return(_0x307bc3=(_0x48fd91=(_0x40aea5=this[_0x33179f(0x3d2)])[_0x33179f(0x3f2)])==null?void 0x0:_0x48fd91[_0x33179f(0x3d8)](_0x40aea5,_0x1708e2))!=null?_0x307bc3:_0x1708e2;}['_syncEditingCollabCursor'](_0x5cbd5f){const _0x2ad3ec=_0x228849;var _0xb50024,_0xd783c5;if(this[_0x2ad3ec(0x354)]===_0xf0e06f['UNIVER_DOC']){const {unitID:_0x2afb41,mutations:_0x5ded76,memberID:_0x5865a6}=_0x5cbd5f,_0x435a82=_0x5ded76[0x0][_0x2ad3ec(0x2f4)]['textRanges'];Array[_0x2ad3ec(0x441)](_0x435a82)&&_0x435a82[_0x2ad3ec(0x430)]>0x0&&((_0xd783c5=(_0xb50024=this[_0x2ad3ec(0x3d2)])[_0x2ad3ec(0x216)])==null||_0xd783c5[_0x2ad3ec(0x3d8)](_0xb50024,{'unitID':_0x2afb41,'memberID':_0x5865a6,'textRanges':_0x435a82}));}}[_0x228849(0x12a)](){const _0x40f81c=_0x228849;this[_0x40f81c(0x3ef)][_0x40f81c(0x323)](this[_0x40f81c(0x340)],this[_0x40f81c(0x354)],this[_0x40f81c(0x14f)],this[_0x40f81c(0x454)]);}[_0x228849(0x2e5)](){const _0x20434d=_0x228849;return this[_0x20434d(0x230)][_0x20434d(0x45e)](this['unitID']);}[_0x228849(0x4a7)](){const _0x1459a3=_0x228849;this[_0x1459a3(0x230)][_0x1459a3(0x2eb)](this[_0x1459a3(0x340)]);}[_0x228849(0x42c)](_0xf5b302){const _0x1ba692=_0x228849;var _0x47b104;const _0x834bca=this[_0x1ba692(0x4d1)](_0xf5b302),_0x323eda=_0x226a7e[_0x1ba692(0x20a)](_0x834bca['mutations'],this[_0x1ba692(0x4b6)],{'fromCollab':!0x0});if(!_0x323eda['result'])throw _0x323eda[_0x1ba692(0x24e)]instanceof Error?_0x323eda['error']:new Error((_0x47b104=_0x323eda[_0x1ba692(0x24e)])!=null?_0x47b104:'[CollaborationState]:\x20apply\x20error!');this[_0x1ba692(0x4ab)](_0x834bca),this[_0x1ba692(0x320)](_0xf5b302),this['_transformSelections'](_0x834bca),this[_0x1ba692(0x41e)](_0x834bca),this[_0x1ba692(0x4a7)]();}}let _0x3368ab=class extends _0x1abe13{constructor(_0x5e0a39,_0x5be39c,_0x138ed5,_0x380e50,_0x38b355,_0xb334fb,_0x5cc7a8,_0x20dd6e,_0x443f12){const _0x43a102=_0x228849;super(_0x5e0a39,_0x5be39c,null,[],_0x138ed5,_0x20dd6e,_0x5cc7a8,_0x380e50,_0x38b355),_0xaa2177(this,_0x43a102(0x418),_0x43a102(0x1c1)),(this[_0x43a102(0x28b)]=_0xb334fb,this[_0x43a102(0x464)]=_0x443f12);}[_0x228849(0x3dd)](_0x5b31a6){const _0x4dbf0c=_0x228849,_0x1b5f10=this[_0x4dbf0c(0x28b)][_0x4dbf0c(0x178)](_0x25c1eb,this[_0x4dbf0c(0x340)],this['type'],[_0x5b31a6],this[_0x4dbf0c(0x3d2)]);return _0x1b5f10['_schedule'](),_0x1b5f10[_0x4dbf0c(0x12a)](),_0x1b5f10;}['onRemoteChangeset'](_0x435654){const _0x3dd2bb=_0x228849;if(this[_0x3dd2bb(0x351)](_0x435654))return this[_0x3dd2bb(0x28b)]['createInstance'](_0x378adc,this[_0x3dd2bb(0x340)],this[_0x3dd2bb(0x354)],null,[],null,[_0x435654],this['_handler']);try{return this['_executeRemoteChangeset'](_0x435654),this;}catch(_0x368bdc){return this[_0x3dd2bb(0x464)][_0x3dd2bb(0x24e)](_0x3dd2bb(0x2c3),_0x368bdc),this;}}[_0x228849(0x25e)](){const _0x3c5fe9=_0x228849;throw new Error(_0x3c5fe9(0x2b6));}[_0x228849(0x4e1)](){const _0x2fb1de=_0x228849;throw new Error(_0x2fb1de(0x37b));}[_0x228849(0x147)](){const _0x340bf3=_0x228849;return this[_0x340bf3(0x28b)][_0x340bf3(0x178)](_0x424af3,this[_0x340bf3(0x340)],this[_0x340bf3(0x354)],null,[],this['_handler']);}['toggleOnline'](){return this;}[_0x228849(0x3c6)](){const _0x398117=_0x228849;throw new Error(_0x398117(0x33f));}};_0x3368ab=_0x2b9fdb([_0x3e73d5(0x3,_0x49bc9[_0x228849(0x31c)](_0x1e8c75['RevisionService'])),_0x3e73d5(0x4,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x361)])),_0x3e73d5(0x5,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x3e73d5(0x6,_0x226a7e[_0x228849(0x3af)]),_0x3e73d5(0x7,_0x226a7e[_0x228849(0x48f)]),_0x3e73d5(0x8,_0x226a7e['ILogService'])],_0x3368ab);let _0x25c1eb=class extends _0x1abe13{constructor(_0x311897,_0x706113,_0x20db0a,_0x7a80dd,_0x1349e7,_0x1c2f09,_0x407e45,_0x5db514,_0x41694c,_0x173b68,_0x1caab5,_0x1eacdc,_0x22f65f,_0x5266e8){const _0x1727d6=_0x228849;super(_0x311897,_0x706113,null,_0x20db0a,_0x7a80dd,_0x173b68,_0x5266e8,_0x1c2f09,_0x407e45),_0xaa2177(this,'status',_0x1727d6(0x350)),_0xaa2177(this,'_scheduleTimestamp',null),_0xaa2177(this,_0x1727d6(0x2e6),null),(this[_0x1727d6(0x28b)]=_0x1349e7,this[_0x1727d6(0x2c7)]=_0x5db514,this[_0x1727d6(0x464)]=_0x41694c,this['_configService']=_0x1caab5,this[_0x1727d6(0x1b9)]=_0x1eacdc,this['_univerInstanceService']=_0x22f65f);}['appendMutation'](_0x29920a){const _0xa803f3=_0x228849;return this[_0xa803f3(0x454)][_0xa803f3(0x4cb)](_0x29920a),this[_0xa803f3(0x12a)](),this;}[_0x228849(0x453)](_0x5a8fb1){const _0x3287ad=_0x228849;if(this[_0x3287ad(0x351)](_0x5a8fb1))return this['_clearScheduledTask'](),this[_0x3287ad(0x28b)][_0x3287ad(0x178)](_0x378adc,this[_0x3287ad(0x340)],this[_0x3287ad(0x354)],null,this['_pendingMutations'],null,[_0x5a8fb1],this[_0x3287ad(0x3d2)]);try{const _0x246a06=this['_transformService'][_0x3287ad(0x2dd)](_0x5a8fb1,this['_pendingMutations']);if(_0x1e8c75['isTransformMutationsWithChangesetSuccess'](_0x246a06)){const {c1Prime:_0x1d5dd2,m2Prime:_0x33ff83}=_0x246a06;this[_0x3287ad(0x42c)](_0x1d5dd2);const _0x3eca7c=this[_0x3287ad(0x28b)][_0x3287ad(0x178)](_0x25c1eb,this[_0x3287ad(0x340)],this[_0x3287ad(0x354)],_0x33ff83,this[_0x3287ad(0x3d2)]);return this[_0x3287ad(0x392)](),_0x3eca7c[_0x3287ad(0x3ff)](this['_scheduleTimestamp']?Math[_0x3287ad(0x4d7)](0x0,new Date()[_0x3287ad(0x4ce)]()-this['_scheduleTimestamp']):this[_0x3287ad(0x386)]()),_0x3eca7c;}throw _0x246a06[_0x3287ad(0x24e)];}catch(_0xe1d6df){return this[_0x3287ad(0x464)]['error'](_0xe1d6df),this[_0x3287ad(0x1a9)](!0x1);}}[_0x228849(0x25e)](){const _0x4fc6ea=_0x228849;throw new Error(_0x4fc6ea(0x398));}['onRemoteRej'](){const _0x4728e3=_0x228849;throw new Error(_0x4728e3(0x130));}['toggleOffline'](){const _0x22f4a2=_0x228849;return this[_0x22f4a2(0x392)](),this[_0x22f4a2(0x28b)][_0x22f4a2(0x178)](_0x424af3,this[_0x22f4a2(0x340)],this[_0x22f4a2(0x354)],null,this[_0x22f4a2(0x454)],this[_0x22f4a2(0x3d2)]);}[_0x228849(0x4ee)](){return this;}[_0x228849(0x3ff)](_0x584fc2){const _0x26e4f8=_0x228849;_0x584fc2=_0x584fc2!=null?_0x584fc2:this[_0x26e4f8(0x386)](),this[_0x26e4f8(0x25c)]=new Date()[_0x26e4f8(0x4ce)](),this[_0x26e4f8(0x2e6)]=setTimeout(()=>{const _0x39b717=_0x26e4f8;this[_0x39b717(0x392)]();let _0x48e86e=null;switch(this[_0x39b717(0x354)]){case _0xf0e06f[_0x39b717(0x390)]:{_0x48e86e=_0x2fa4c4(this[_0x39b717(0x454)],this[_0x39b717(0x340)],this['_univerInstanceService'],this[_0x39b717(0x230)],this[_0x39b717(0x2c7)]);break;}case _0xf0e06f[_0x39b717(0x138)]:{_0x48e86e=_0x22706f(this[_0x39b717(0x454)],this['unitID'],this[_0x39b717(0x1ad)],this[_0x39b717(0x230)],this[_0x39b717(0x2c7)]);break;}default:throw new Error(_0x39b717(0x448)+this[_0x39b717(0x354)]+_0x39b717(0x21d));}const {changeset:_0x55b543,pendingMutations:_0x4314ca}=_0x48e86e;this['_handler']['onSendChangeset'](_0x55b543);const _0x4c7787=_0x4314ca['length']?this['_injector'][_0x39b717(0x178)](_0x3f26f2,this['unitID'],this[_0x39b717(0x354)],_0x55b543,_0x4314ca,this[_0x39b717(0x3d2)]):this['_injector'][_0x39b717(0x178)](_0x190be0,this[_0x39b717(0x340)],this[_0x39b717(0x354)],_0x55b543,this[_0x39b717(0x3d2)]);_0x4c7787[_0x39b717(0x12a)](),this['_handler'][_0x39b717(0x162)](this,_0x4c7787);},_0x584fc2);}[_0x228849(0x386)](){const _0x5bb52f=_0x228849;var _0x41268d;return(_0x41268d=this[_0x5bb52f(0x12b)][_0x5bb52f(0x176)](_0x6128a1))!=null?_0x41268d:0x7d0;}[_0x228849(0x3c6)](){const _0x61fbfb=_0x228849;throw new Error(_0x61fbfb(0x4d5));}[_0x228849(0x392)](){const _0x1d160a=_0x228849;this[_0x1d160a(0x2e6)]!=null&&(clearTimeout(this[_0x1d160a(0x2e6)]),this[_0x1d160a(0x2e6)]=null);}[_0x228849(0x1a9)](_0x30aa26){const _0x1ef0f5=_0x228849;return this[_0x1ef0f5(0x392)](),this[_0x1ef0f5(0x28b)]['createInstance'](_0x493854,this[_0x1ef0f5(0x340)],this[_0x1ef0f5(0x354)],null,this[_0x1ef0f5(0x454)],this[_0x1ef0f5(0x3d2)],_0x30aa26);}};_0x25c1eb=_0x2b9fdb([_0x3e73d5(0x4,_0x49bc9['Inject'](_0x49bc9[_0x228849(0x36c)])),_0x3e73d5(0x5,_0x49bc9['Inject'](_0x1e8c75[_0x228849(0x366)])),_0x3e73d5(0x6,_0x49bc9[_0x228849(0x31c)](_0x431c6f['LocalCacheService'])),_0x3e73d5(0x7,_0x49bc9[_0x228849(0x31c)](_0x2f6a5d)),_0x3e73d5(0x8,_0x226a7e[_0x228849(0x212)]),_0x3e73d5(0x9,_0x226a7e[_0x228849(0x48f)]),_0x3e73d5(0xa,_0x226a7e[_0x228849(0x26f)]),_0x3e73d5(0xb,_0x1e8c75[_0x228849(0x184)]),_0x3e73d5(0xc,_0x226a7e[_0x228849(0x4aa)]),_0x3e73d5(0xd,_0x226a7e[_0x228849(0x3af)])],_0x25c1eb);let _0x190be0=class extends _0x1abe13{constructor(_0x45bcec,_0x285d6b,_0x286ba5,_0x13992c,_0x562064,_0x6c82cc,_0x5d0384,_0x17ba1f,_0x5be1f1,_0xa4f08e,_0x4c083b){const _0x25cd14=_0x228849;super(_0x45bcec,_0x285d6b,_0x286ba5,[],_0x13992c,_0x17ba1f,_0x4c083b,_0x6c82cc,_0x5d0384),_0xaa2177(this,_0x25cd14(0x418),_0x25cd14(0x13a)),(this['_injector']=_0x562064,this['_logService']=_0x5be1f1,this[_0x25cd14(0x1b9)]=_0xa4f08e);}[_0x228849(0x3dd)](_0x3c71f2){const _0x37e935=_0x228849,_0x5ac0c0=this[_0x37e935(0x28b)][_0x37e935(0x178)](_0x3f26f2,this[_0x37e935(0x340)],this[_0x37e935(0x354)],this[_0x37e935(0x14f)],[_0x3c71f2],this[_0x37e935(0x3d2)]);return _0x5ac0c0[_0x37e935(0x12a)](),_0x5ac0c0;}['onRemoteChangeset'](_0x349e80){const _0x299f81=_0x228849;if(this['_checkMissing'](_0x349e80))return this[_0x299f81(0x28b)][_0x299f81(0x178)](_0x378adc,this[_0x299f81(0x340)],this['type'],this[_0x299f81(0x14f)],[],null,[_0x349e80],this[_0x299f81(0x3d2)]);try{const _0x449958=this[_0x299f81(0x1b9)][_0x299f81(0x468)]([_0x349e80],[this[_0x299f81(0x14f)]],!0x1);if(_0x1e8c75[_0x299f81(0x30f)](_0x449958)){const {c1Prime:_0xd697f0,c2Prime:_0x15c2b5}=_0x449958;this[_0x299f81(0x42c)](_0xd697f0[0x0]),_0x15c2b5[0x0][_0x299f81(0x204)]=this[_0x299f81(0x2e5)]();const _0x467183=this[_0x299f81(0x28b)]['createInstance'](_0x190be0,this[_0x299f81(0x340)],this[_0x299f81(0x354)],_0x15c2b5[0x0],this['_handler']);return _0x467183[_0x299f81(0x12a)](),_0x467183;}return this[_0x299f81(0x1a9)](!0x1);}catch(_0x3ef993){return this[_0x299f81(0x464)][_0x299f81(0x24e)](_0x3ef993),this[_0x299f81(0x1a9)](!0x1);}}[_0x228849(0x25e)](_0x3d3b6f){const _0x59721a=_0x228849,_0x756c7e=this[_0x59721a(0x230)][_0x59721a(0x45e)](this[_0x59721a(0x340)]);if(_0x3d3b6f[_0x59721a(0x437)]<_0x756c7e-0x1)return this;if(this['_checkMissing'](_0x3d3b6f))return this[_0x59721a(0x28b)][_0x59721a(0x178)](_0x378adc,this[_0x59721a(0x340)],this[_0x59721a(0x354)],null,[],this['_awaitingChangeset'],[],this[_0x59721a(0x3d2)]);this[_0x59721a(0x4a7)]();const _0x3cd5de=this[_0x59721a(0x28b)][_0x59721a(0x178)](_0x3368ab,this['unitID'],this[_0x59721a(0x354)],this[_0x59721a(0x3d2)]);return _0x3cd5de['_updateLocalCache'](),_0x3cd5de;}['onRemoteRej'](_0x31d9f6){const _0x465bd3=_0x228849;return this['_onConflict'](!!(_0x31d9f6!=null&&_0x31d9f6[_0x465bd3(0x42b)]));}['toggleOffline'](){const _0x1520e1=_0x228849;return this[_0x1520e1(0x28b)][_0x1520e1(0x178)](_0x424af3,this['unitID'],this[_0x1520e1(0x354)],this[_0x1520e1(0x14f)],[],this[_0x1520e1(0x3d2)]);}[_0x228849(0x4ee)](){return this;}['resend'](){const _0x3f0959=_0x228849;this[_0x3f0959(0x3d2)][_0x3f0959(0x4d3)](this['_awaitingChangeset']);}[_0x228849(0x1a9)](_0x1735bf){const _0x6bd5f5=_0x228849;return this[_0x6bd5f5(0x28b)]['createInstance'](_0x493854,this[_0x6bd5f5(0x340)],this[_0x6bd5f5(0x354)],this['_awaitingChangeset'],[],this[_0x6bd5f5(0x3d2)],_0x1735bf);}};_0x190be0=_0x2b9fdb([_0x3e73d5(0x4,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x3e73d5(0x5,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)])),_0x3e73d5(0x6,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x361)])),_0x3e73d5(0x7,_0x226a7e[_0x228849(0x48f)]),_0x3e73d5(0x8,_0x226a7e[_0x228849(0x212)]),_0x3e73d5(0x9,_0x1e8c75['ITransformService']),_0x3e73d5(0xa,_0x226a7e['IUndoRedoService'])],_0x190be0);let _0x3f26f2=class extends _0x1abe13{constructor(_0x36ab9f,_0x1666a5,_0x2ca1f8,_0x274071,_0x27dd62,_0x16e1b1,_0x22059c,_0x224bc2,_0x3712f1,_0x31ee9b,_0x5d2bdc,_0x2decef){const _0x3df97f=_0x228849;super(_0x36ab9f,_0x1666a5,_0x2ca1f8,_0x274071,_0x27dd62,_0x3712f1,_0x2decef,_0x22059c,_0x224bc2),_0xaa2177(this,_0x3df97f(0x418),_0x3df97f(0x4ba)),(this['_injector']=_0x16e1b1,this[_0x3df97f(0x464)]=_0x31ee9b,this[_0x3df97f(0x1b9)]=_0x5d2bdc);}[_0x228849(0x3dd)](_0x19a84f){const _0xec7d25=_0x228849;return this[_0xec7d25(0x454)][_0xec7d25(0x4cb)](_0x19a84f),this;}[_0x228849(0x453)](_0xdf0a5a){const _0x1b888b=_0x228849;if(this[_0x1b888b(0x351)](_0xdf0a5a))return this[_0x1b888b(0x28b)][_0x1b888b(0x178)](_0x378adc,this[_0x1b888b(0x340)],this[_0x1b888b(0x354)],this[_0x1b888b(0x14f)],this[_0x1b888b(0x454)],null,[_0xdf0a5a],this['_handler']);try{const _0x1499d0=this['_transformService'][_0x1b888b(0x468)]([_0xdf0a5a],[this['_awaitingChangeset']],!0x1);if(_0x1e8c75[_0x1b888b(0x30f)](_0x1499d0)){const {c1Prime:_0x39aa5c,c2Prime:_0xad01bd}=_0x1499d0,_0x75def8=this[_0x1b888b(0x1b9)][_0x1b888b(0x2dd)](_0x39aa5c[0x0],this[_0x1b888b(0x454)]);if(_0x1e8c75[_0x1b888b(0x4f6)](_0x75def8)){const {c1Prime:_0x2b9b48,m2Prime:_0x606f66}=_0x75def8;return this[_0x1b888b(0x42c)](_0x2b9b48),_0xad01bd[0x0]['baseRev']=this[_0x1b888b(0x2e5)](),this['_injector'][_0x1b888b(0x178)](_0x3f26f2,this[_0x1b888b(0x340)],this[_0x1b888b(0x354)],_0xad01bd[0x0],_0x606f66,this[_0x1b888b(0x3d2)]);}throw _0x75def8[_0x1b888b(0x24e)];}throw _0x1499d0['error'];}catch(_0x2fa5cc){return this[_0x1b888b(0x464)][_0x1b888b(0x24e)](_0x2fa5cc),this[_0x1b888b(0x1a9)](!0x1);}}[_0x228849(0x25e)](_0x50a69c){const _0x3f18cc=_0x228849;if(this[_0x3f18cc(0x351)](_0x50a69c))return this['_injector'][_0x3f18cc(0x178)](_0x378adc,this['unitID'],this[_0x3f18cc(0x354)],null,this[_0x3f18cc(0x454)],this[_0x3f18cc(0x14f)],[],this[_0x3f18cc(0x3d2)]);this[_0x3f18cc(0x4a7)]();const _0x5cea4c=this['_injector'][_0x3f18cc(0x178)](_0x25c1eb,this[_0x3f18cc(0x340)],this[_0x3f18cc(0x354)],this[_0x3f18cc(0x454)],this[_0x3f18cc(0x3d2)]);return _0x5cea4c['_schedule'](),_0x5cea4c[_0x3f18cc(0x12a)](),_0x5cea4c;}[_0x228849(0x4e1)](_0x41a898){const _0x42e002=_0x228849;return this[_0x42e002(0x1a9)](!!(_0x41a898!=null&&_0x41a898[_0x42e002(0x42b)]));}[_0x228849(0x147)](){const _0x32ee1d=_0x228849;return this[_0x32ee1d(0x28b)][_0x32ee1d(0x178)](_0x424af3,this[_0x32ee1d(0x340)],this[_0x32ee1d(0x354)],this[_0x32ee1d(0x14f)],this[_0x32ee1d(0x454)],this['_handler']);}[_0x228849(0x4ee)](){return this;}[_0x228849(0x3c6)](){const _0x36cfc7=_0x228849;this[_0x36cfc7(0x3d2)][_0x36cfc7(0x4d3)](this['_awaitingChangeset']);}[_0x228849(0x1a9)](_0x2893c6){const _0x10f92a=_0x228849;return this[_0x10f92a(0x28b)]['createInstance'](_0x493854,this[_0x10f92a(0x340)],this[_0x10f92a(0x354)],null,this[_0x10f92a(0x454)],this[_0x10f92a(0x3d2)],_0x2893c6);}};_0x3f26f2=_0x2b9fdb([_0x3e73d5(0x5,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x3e73d5(0x6,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)])),_0x3e73d5(0x7,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x361)])),_0x3e73d5(0x8,_0x226a7e['ICommandService']),_0x3e73d5(0x9,_0x226a7e[_0x228849(0x212)]),_0x3e73d5(0xa,_0x1e8c75[_0x228849(0x184)]),_0x3e73d5(0xb,_0x226a7e[_0x228849(0x3af)])],_0x3f26f2);let _0x493854=class extends _0x1abe13{constructor(_0x5c2625,_0x5da533,_0x3203f6,_0x1447d3,_0x21be4b,_0x5db4f9=!0x1,_0x8940f0,_0x1efeb7,_0x3b9521,_0x2d39ab,_0x5f2117,_0x5a0f4b,_0x1d527e){const _0x1c7ce2=_0x228849;super(_0x5c2625,_0x5da533,_0x3203f6,_0x1447d3,_0x21be4b,_0x1efeb7,_0x3b9521,_0x5f2117,_0x2d39ab),_0xaa2177(this,'status','conflict'),(this[_0x1c7ce2(0x494)]=_0x5db4f9,this[_0x1c7ce2(0x1c8)]=_0x8940f0,this[_0x1c7ce2(0x401)]=_0x5a0f4b,this['_notificationService']=_0x1d527e,this[_0x1c7ce2(0x4e9)](),this[_0x1c7ce2(0x409)](),this[_0x1c7ce2(0x1e6)]());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x228849(0x25e)](){return this;}[_0x228849(0x4e1)](){return this;}['toggleOffline'](){return this;}[_0x228849(0x4ee)](){return this;}['resend'](){const _0x43b21e=_0x228849;throw new Error(_0x43b21e(0x40f));}[_0x228849(0x409)](){const _0x3063ab=_0x228849;this['_localCacheService'][_0x3063ab(0x323)](this[_0x3063ab(0x340)],this[_0x3063ab(0x354)],null,[]);}[_0x228849(0x4e9)](){const _0x3a89ad=_0x228849;this[_0x3a89ad(0x494)]?this[_0x3a89ad(0x36e)]['show']({'title':this[_0x3a89ad(0x401)]['t'](_0x3a89ad(0x163)),'content':this[_0x3a89ad(0x401)]['t'](_0x3a89ad(0x3f6)),'type':'error','duration':0x0}):this[_0x3a89ad(0x36e)][_0x3a89ad(0x333)]({'title':this[_0x3a89ad(0x401)]['t']('conflict.title'),'content':this[_0x3a89ad(0x401)]['t'](_0x3a89ad(0x171)),'type':_0x3a89ad(0x24e),'duration':0x0});}[_0x228849(0x1e6)](){const _0x5cc915=_0x228849;this[_0x5cc915(0x1c8)][_0x5cc915(0x202)](new _0x3acf4c[(_0x5cc915(0x39f))](this[_0x5cc915(0x340)])['id'],!0x1);}};_0x493854=_0x2b9fdb([_0x3e73d5(0x6,_0x49bc9['Inject'](_0x226a7e[_0x228849(0x182)])),_0x3e73d5(0x7,_0x226a7e[_0x228849(0x48f)]),_0x3e73d5(0x8,_0x226a7e[_0x228849(0x3af)]),_0x3e73d5(0x9,_0x49bc9['Inject'](_0x431c6f[_0x228849(0x361)])),_0x3e73d5(0xa,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)])),_0x3e73d5(0xb,_0x49bc9[_0x228849(0x31c)](_0x226a7e[_0x228849(0x355)])),_0x3e73d5(0xc,_0x15005b[_0x228849(0x24f)])],_0x493854);let _0x424af3=class extends _0x1abe13{constructor(_0x4081b2,_0x3651b6,_0x5199d0,_0x856941,_0x49e2b2,_0x37743d,_0x589794,_0x2d794d,_0x27adb9,_0x5af585){const _0x800af1=_0x228849;super(_0x4081b2,_0x3651b6,_0x5199d0,_0x856941,_0x49e2b2,_0x27adb9,_0x5af585,_0x589794,_0x2d794d),_0xaa2177(this,_0x800af1(0x418),_0x800af1(0x297)),this[_0x800af1(0x28b)]=_0x37743d;}[_0x228849(0x3dd)](_0xeaeccd){const _0x27151c=_0x228849;return this[_0x27151c(0x454)]['push'](_0xeaeccd),this['_updateLocalCache'](),this;}[_0x228849(0x453)](_0x172825){const _0x14283d=_0x228849;throw new Error(_0x14283d(0x133));}['onRemoteAck'](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x228849(0x4e1)](){const _0x539794=_0x228849;throw new Error(_0x539794(0x429));}[_0x228849(0x147)](){return this;}[_0x228849(0x4ee)](){const _0x48e7fe=_0x228849,{_injector:_0x5ea738,_pendingMutations:_0x1d8272,_awaitingChangeset:_0x46be77,unitID:_0x575c76,_handler:_0x1f690f,type:_0xd69296}=this,_0x4d52cc=_0x21ef26(_0x5ea738,_0x575c76,_0xd69296,_0x46be77,_0x1d8272,_0x1f690f);return _0x4d52cc instanceof _0x25c1eb?_0x4d52cc[_0x48e7fe(0x3ff)]():(_0x4d52cc instanceof _0x3f26f2||_0x4d52cc instanceof _0x190be0)&&_0x4d52cc[_0x48e7fe(0x3c6)](),_0x4d52cc;}[_0x228849(0x3c6)](){const _0x1f877a=_0x228849;throw new Error(_0x1f877a(0x410));}};_0x424af3=_0x2b9fdb([_0x3e73d5(0x5,_0x49bc9['Inject'](_0x49bc9[_0x228849(0x36c)])),_0x3e73d5(0x6,_0x49bc9['Inject'](_0x1e8c75[_0x228849(0x366)])),_0x3e73d5(0x7,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x361)])),_0x3e73d5(0x8,_0x226a7e[_0x228849(0x48f)]),_0x3e73d5(0x9,_0x226a7e[_0x228849(0x3af)])],_0x424af3);let _0x378adc=class extends _0x1abe13{constructor(_0x5a32fb,_0x96944c,_0x3e3342,_0x3639d6,_0x1222b0,_0x437ee5,_0x45f310,_0x23119c,_0x1be064,_0x3ab87a,_0x18c22c,_0x1490af,_0xaf497f,_0x523ac4){const _0x1a3435=_0x228849;super(_0x5a32fb,_0x96944c,_0x3e3342,_0x3639d6,_0x45f310,_0x1490af,_0xaf497f,_0x1be064,_0x3ab87a),_0xaa2177(this,'status','fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x1222b0,this[_0x1a3435(0x478)]=_0x437ee5,this[_0x1a3435(0x28b)]=_0x23119c,this['_logService']=_0x18c22c,this[_0x1a3435(0x1b9)]=_0x523ac4);}[_0x228849(0x1e5)](_0x40fb6b){const _0x5319fb=_0x228849;try{const _0x32ea65=[..._0x40fb6b,...this[_0x5319fb(0x478)]],_0x17260e=[this[_0x5319fb(0x14f)]||this[_0x5319fb(0x42a)]]['filter'](_0x512a2b=>!!_0x512a2b);let _0x141f01,_0x396e07;if(_0x17260e[_0x5319fb(0x430)]){const _0x5361ad=this[_0x5319fb(0x1b9)][_0x5319fb(0x468)](_0x32ea65,_0x17260e,!0x1);if(!_0x1e8c75['isTransformChangesetsSuccess'](_0x5361ad))throw _0x5361ad[_0x5319fb(0x24e)];_0x141f01=_0x5361ad[_0x5319fb(0x356)],_0x396e07=_0x5361ad[_0x5319fb(0x381)];}else _0x141f01=_0x32ea65,_0x396e07=[];let _0x47e9e8=this[_0x5319fb(0x454)];_0x141f01[_0x5319fb(0x3ad)](_0x1eaaed=>{const _0x2d4e00=_0x5319fb;let _0x326d88;if(_0x47e9e8[_0x2d4e00(0x430)]){const _0x1421b5=this['_transformService']['transformMutationsWithChangeset'](_0x1eaaed,_0x47e9e8);if(!_0x1e8c75[_0x2d4e00(0x4f6)](_0x1421b5))throw _0x1421b5[_0x2d4e00(0x24e)];_0x326d88=_0x1421b5[_0x2d4e00(0x356)],_0x47e9e8=_0x1421b5[_0x2d4e00(0x260)];}else _0x326d88=_0x1eaaed;this[_0x2d4e00(0x42c)](_0x326d88);}),this[_0x5319fb(0x42a)]&&this['_incrementRevisionNumber'](),this[_0x5319fb(0x14f)]&&_0x396e07[_0x5319fb(0x430)]&&(_0x396e07[0x0][_0x5319fb(0x204)]=this[_0x5319fb(0x2e5)]());let _0x1ad957;if(this[_0x5319fb(0x14f)]&&_0x47e9e8['length']!==0x0)_0x1ad957=this[_0x5319fb(0x28b)][_0x5319fb(0x178)](_0x3f26f2,this[_0x5319fb(0x340)],this['type'],_0x396e07[0x0],_0x47e9e8,this['_handler']);else{if(this[_0x5319fb(0x14f)]&&_0x47e9e8[_0x5319fb(0x430)]===0x0)_0x396e07[0x0][_0x5319fb(0x204)]=this['_getCurrentRevision'](),_0x1ad957=this[_0x5319fb(0x28b)][_0x5319fb(0x178)](_0x190be0,this[_0x5319fb(0x340)],this['type'],_0x396e07[0x0],this[_0x5319fb(0x3d2)]);else{if(_0x47e9e8['length']!==0x0){const _0x3f242e=this[_0x5319fb(0x28b)][_0x5319fb(0x178)](_0x25c1eb,this['unitID'],this[_0x5319fb(0x354)],_0x47e9e8,this['_handler']);_0x3f242e[_0x5319fb(0x3ff)](),_0x1ad957=_0x3f242e;}else _0x1ad957=this['_injector'][_0x5319fb(0x178)](_0x3368ab,this[_0x5319fb(0x340)],this[_0x5319fb(0x354)],this[_0x5319fb(0x3d2)]);}}return _0x1ad957[_0x5319fb(0x12a)](),_0x1ad957;}catch(_0x1dfdce){return this['_logService'][_0x5319fb(0x24e)](_0x5319fb(0x29e),_0x5319fb(0x25f),_0x1dfdce),this[_0x5319fb(0x28b)][_0x5319fb(0x178)](_0x493854,this[_0x5319fb(0x340)],this[_0x5319fb(0x354)],this[_0x5319fb(0x14f)],this[_0x5319fb(0x454)],this[_0x5319fb(0x3d2)],!0x1);}}['resend'](){const _0x40ffbc=_0x228849;throw new Error(_0x40ffbc(0x155));}['appendMutation'](_0x260d79){const _0x9104e5=_0x228849;return this[_0x9104e5(0x454)][_0x9104e5(0x4cb)](_0x260d79),this;}[_0x228849(0x453)](_0x5a3b4d){const _0x58a4a9=_0x228849;return this[_0x58a4a9(0x478)]['push'](_0x5a3b4d),this;}[_0x228849(0x25e)](_0x3fd852){const _0x234370=_0x228849;if(this[_0x234370(0x14f)])return this[_0x234370(0x42a)]=this['_awaitingChangeset'],this[_0x234370(0x14f)]=null,this;throw new Error(_0x234370(0x1ea));}['onRemoteRej'](_0x7ecfba){return this['_onConflict'](!!(_0x7ecfba!=null&&_0x7ecfba['isPermissionRej']));}['toggleOffline'](){const _0x50eea8=_0x228849;return this[_0x50eea8(0x28b)]['createInstance'](_0x424af3,this[_0x50eea8(0x340)],this[_0x50eea8(0x354)],this[_0x50eea8(0x14f)],this['_pendingMutations'],this[_0x50eea8(0x3d2)]);}['toggleOnline'](){return this;}[_0x228849(0x1a9)](_0x5a8e93){const _0x8a1753=_0x228849;return this['_injector'][_0x8a1753(0x178)](_0x493854,this[_0x8a1753(0x340)],this[_0x8a1753(0x354)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x8a1753(0x3d2)],_0x5a8e93);}};_0x378adc=_0x2b9fdb([_0x3e73d5(0x7,_0x49bc9['Inject'](_0x49bc9[_0x228849(0x36c)])),_0x3e73d5(0x8,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)])),_0x3e73d5(0x9,_0x49bc9[_0x228849(0x31c)](_0x431c6f['LocalCacheService'])),_0x3e73d5(0xa,_0x226a7e[_0x228849(0x212)]),_0x3e73d5(0xb,_0x226a7e[_0x228849(0x48f)]),_0x3e73d5(0xc,_0x226a7e[_0x228849(0x3af)]),_0x3e73d5(0xd,_0x1e8c75[_0x228849(0x184)])],_0x378adc);function _0x21ef26(_0x3f6c8d,_0x2cb18b,_0x59b81c,_0x43bd62,_0x2a78ad,_0x316559){const _0x5848c6=_0x228849;return _0x43bd62&&_0x2a78ad['length']?_0x3f6c8d[_0x5848c6(0x178)](_0x3f26f2,_0x2cb18b,_0x59b81c,_0x43bd62,_0x2a78ad,_0x316559):_0x43bd62?_0x3f6c8d[_0x5848c6(0x178)](_0x190be0,_0x2cb18b,_0x59b81c,_0x43bd62,_0x316559):_0x2a78ad[_0x5848c6(0x430)]?_0x3f6c8d[_0x5848c6(0x178)](_0x25c1eb,_0x2cb18b,_0x59b81c,_0x2a78ad,_0x316559):_0x3f6c8d['createInstance'](_0x3368ab,_0x2cb18b,_0x59b81c,_0x316559);}var _0x21052e=Object[_0x228849(0x1fc)],_0x111717=Object['getOwnPropertyDescriptor'],_0x19eb46=(_0x3f143d,_0x5c0ad8,_0xfc27d8,_0x533ca1)=>{const _0x177dab=_0x228849;for(var _0x26ac15=_0x533ca1>0x1?void 0x0:_0x533ca1?_0x111717(_0x5c0ad8,_0xfc27d8):_0x5c0ad8,_0x29d27c=_0x3f143d[_0x177dab(0x430)]-0x1,_0x2f28ad;_0x29d27c>=0x0;_0x29d27c--)(_0x2f28ad=_0x3f143d[_0x29d27c])&&(_0x26ac15=(_0x533ca1?_0x2f28ad(_0x5c0ad8,_0xfc27d8,_0x26ac15):_0x2f28ad(_0x26ac15))||_0x26ac15);return _0x533ca1&&_0x26ac15&&_0x21052e(_0x5c0ad8,_0xfc27d8,_0x26ac15),_0x26ac15;},_0x51c041=(_0x374b79,_0x1ed2ec)=>(_0x5c599d,_0x542fd8)=>_0x1ed2ec(_0x5c599d,_0x542fd8,_0x374b79);_0x431c6f[_0x228849(0x2cb)]=class extends _0x226a7e[_0x228849(0x2ac)]{constructor(_0xeb813a,_0x16cd66,_0x1dda23){const _0x1b9e21=_0x228849;super(),_0xaa2177(this,_0x1b9e21(0x339),new Map()),_0xaa2177(this,_0x1b9e21(0x24a),new _0x4e5e3f['Subject']()),(this[_0x1b9e21(0x28b)]=_0xeb813a,this['_collabSessionService']=_0x16cd66,this[_0x1b9e21(0x1ad)]=_0x1dda23,this[_0x1b9e21(0x285)]());}[_0x228849(0x485)](){const _0x28e873=_0x228849;super[_0x28e873(0x485)](),this[_0x28e873(0x339)]['forEach'](_0x13843e=>_0x13843e[_0x28e873(0x485)]()),this['_entities'][_0x28e873(0x33b)]();}[_0x228849(0x265)](_0x4c878a){const _0x3e0460=_0x228849;var _0x3588d4;return(_0x3588d4=this[_0x3e0460(0x339)]['get'](_0x4c878a))!=null?_0x3588d4:null;}[_0x228849(0x40d)](_0x342179){const _0x264078=_0x228849,_0x2df7f9=this[_0x264078(0x265)](_0x342179);return _0x2df7f9?_0x4e5e3f['of'](_0x2df7f9):this[_0x264078(0x24a)][_0x264078(0x450)](_0x4d72f4['filter'](_0x2395a3=>_0x2395a3[_0x264078(0x340)]===_0x342179));}[_0x228849(0x285)](){const _0x1cba60=_0x228849;this['_univerInstanceService'][_0x1cba60(0x135)](_0x226a7e[_0x1cba60(0x27d)][_0x1cba60(0x390)])[_0x1cba60(0x450)](_0x4e5e3f[_0x1cba60(0x2e4)](this[_0x1cba60(0x1ec)]),_0x4d72f4[_0x1cba60(0x2f0)](0x10))[_0x1cba60(0x22c)](async _0x168ce4=>{const _0x1305b2=_0x1cba60,_0x92949=_0x168ce4[_0x1305b2(0x2d1)](),_0x44d575=await this[_0x1305b2(0x3bc)](_0x92949,_0xf0e06f['UNIVER_SHEET']);this['_entities'][_0x1305b2(0x4f3)](_0x92949,_0x44d575);}),this[_0x1cba60(0x1ad)][_0x1cba60(0x135)](_0x226a7e[_0x1cba60(0x27d)][_0x1cba60(0x138)])[_0x1cba60(0x450)](_0x4e5e3f[_0x1cba60(0x2e4)](this[_0x1cba60(0x1ec)]),_0x4d72f4[_0x1cba60(0x2f0)](0x10))[_0x1cba60(0x450)](_0x4d72f4['filter'](_0x52f6ec=>!_0x52f6ec[_0x1cba60(0x2d1)]()[_0x1cba60(0x16c)]('__')))[_0x1cba60(0x22c)](async _0x3d7dbb=>{const _0x3e8a3b=_0x1cba60,_0x39c353=_0x3d7dbb[_0x3e8a3b(0x2d1)](),_0x20852c=await this['_startCollaboration'](_0x39c353,_0xf0e06f[_0x3e8a3b(0x138)]);this[_0x3e8a3b(0x339)][_0x3e8a3b(0x4f3)](_0x39c353,_0x20852c);}),_0x4e5e3f[_0x1cba60(0x3d0)](this[_0x1cba60(0x1ad)][_0x1cba60(0x19d)](_0x226a7e[_0x1cba60(0x27d)][_0x1cba60(0x390)]),this[_0x1cba60(0x1ad)]['getTypeOfUnitDisposed$'](_0x226a7e[_0x1cba60(0x27d)][_0x1cba60(0x138)]))[_0x1cba60(0x450)](_0x4e5e3f[_0x1cba60(0x2e4)](this[_0x1cba60(0x1ec)]))[_0x1cba60(0x22c)](_0x5d7952=>{const _0x105dc6=_0x1cba60,_0x4f665c=_0x5d7952[_0x105dc6(0x2d1)](),_0x5873fd=this[_0x105dc6(0x339)][_0x105dc6(0x24c)](_0x4f665c);_0x5873fd&&(_0x5873fd[_0x105dc6(0x485)](),this[_0x105dc6(0x339)][_0x105dc6(0x2b1)](_0x4f665c));});}async[_0x228849(0x3bc)](_0x1381c3,_0x4819ec){const _0x48a54b=_0x228849,_0x264bda=await this['_collabSessionService'][_0x48a54b(0x3a3)](_0x1381c3),_0x3e6d0d=this[_0x48a54b(0x28b)][_0x48a54b(0x178)](this[_0x48a54b(0x3e8)](_0x4819ec),_0x1381c3,_0x4819ec,_0x264bda);return await _0x3e6d0d[_0x48a54b(0x3bd)](),this[_0x48a54b(0x24a)][_0x48a54b(0x488)](_0x3e6d0d),_0x3e6d0d;}[_0x228849(0x3e8)](_0x179d32){const _0x59b618=_0x228849;switch(_0x179d32){case _0xf0e06f[_0x59b618(0x138)]:return _0x289e3a;case _0xf0e06f[_0x59b618(0x390)]:return _0x332233;default:throw new Error(_0x59b618(0x39c)+_0x179d32);}}},_0x431c6f[_0x228849(0x2cb)]=_0x19eb46([_0x226a7e[_0x228849(0x4f0)](_0x226a7e[_0x228849(0x179)][_0x228849(0x31d)],_0x431c6f[_0x228849(0x2cb)]),_0x51c041(0x0,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x51c041(0x1,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x192)])),_0x51c041(0x2,_0x226a7e[_0x228849(0x4aa)])],_0x431c6f[_0x228849(0x2cb)]);let _0x3771b3=class extends _0x226a7e[_0x228849(0x2ac)]{constructor(_0xc077a4,_0x32d7b3,_0x5229dc,_0x2902fd,_0x58b35c,_0x2e6549,_0x23db4f,_0x305e12,_0x1b3921,_0x5384b7,_0x40e7fb,_0x319a9e,_0x4f4f91){const _0x24c07e=_0x228849;super(),_0xaa2177(this,'_state$',new _0x4e5e3f['BehaviorSubject'](null)),_0xaa2177(this,'state$',this[_0x24c07e(0x1d1)][_0x24c07e(0x1fe)]()),_0xaa2177(this,'_state'),_0xaa2177(this,_0x24c07e(0x372),!0x1),_0xaa2177(this,_0x24c07e(0x168),this[_0x24c07e(0x415)][_0x24c07e(0x450)](_0x4d72f4[_0x24c07e(0x4db)](_0x1ebe9f=>_0x1ebe9f?_0x1ebe9f['status']:_0x4577df[_0x24c07e(0x26d)]),_0x4d72f4[_0x24c07e(0x495)](0x1))),_0xaa2177(this,_0x24c07e(0x1ee),!0x1),_0xaa2177(this,_0x24c07e(0x172),[]),(this['unitID']=_0xc077a4,this['_type']=_0x32d7b3,this[_0x24c07e(0x3c9)]=_0x5229dc,this[_0x24c07e(0x28b)]=_0x2902fd,this[_0x24c07e(0x3ef)]=_0x58b35c,this[_0x24c07e(0x338)]=_0x2e6549,this['_localeService']=_0x23db4f,this[_0x24c07e(0x230)]=_0x305e12,this[_0x24c07e(0x464)]=_0x1b3921,this[_0x24c07e(0x4b6)]=_0x5384b7,this[_0x24c07e(0x306)]=_0x40e7fb,this['_permissionService']=_0x319a9e,this[_0x24c07e(0x1fb)]=_0x4f4f91);}get['state'](){const _0x4370c6=_0x228849;return this[_0x4370c6(0x1eb)];}async[_0x228849(0x3bd)](){const _0x40468e=_0x228849;if(this[_0x40468e(0x373)])throw new Error(_0x40468e(0x2ba));await this[_0x40468e(0x285)]();}[_0x228849(0x4f9)](){const _0x5ec076=_0x228849;return this[_0x5ec076(0x372)]=!0x0,_0x226a7e[_0x5ec076(0x14b)](()=>{const _0x45a294=_0x5ec076;this[_0x45a294(0x372)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x1a8a95){const _0x19f061=_0x228849;this[_0x19f061(0x1eb)]=_0x1a8a95,this[_0x19f061(0x1d1)][_0x19f061(0x488)](_0x1a8a95);}async['_init'](){const _0x30118e=_0x228849;var _0x34e314;return this[_0x30118e(0x4c1)](await this[_0x30118e(0x237)]()),this['_singleActiveUnitService']&&((_0x34e314=this['_singleActiveUnitService'])==null||_0x34e314[_0x30118e(0x18f)](this['unitID']),this[_0x30118e(0x231)](_0x226a7e['toDisposable'](this['_singleActiveUnitService'][_0x30118e(0x17d)](this['unitID'])['subscribe'](_0xd4dbf8=>{const _0x49de1a=_0x30118e;this[_0x49de1a(0x464)]['debug'](_0x49de1a(0x4fc),'editing\x20status\x20changed\x20to',_0xd4dbf8),_0xd4dbf8===_0x46ab2b[_0x49de1a(0x243)]?(this[_0x49de1a(0x306)][_0x49de1a(0x333)]({'content':this[_0x49de1a(0x401)]['t']('collaboration.single-unit.warning'),'type':_0x2d5606['MessageType']['Warning']}),this[_0x49de1a(0x1c8)][_0x49de1a(0x202)](new _0x3acf4c[(_0x49de1a(0x39f))](this['unitID'])['id'],!0x1)):this[_0x49de1a(0x1c8)][_0x49de1a(0x202)](new _0x3acf4c[(_0x49de1a(0x39f))](this['unitID'])['id'],!0x0);})))),this[_0x30118e(0x231)](_0x226a7e[_0x30118e(0x14b)](this['_session'][_0x30118e(0x2b7)][_0x30118e(0x22c)](_0x1d59c2=>{const _0x587cfd=_0x30118e;_0x1d59c2===_0x2d0945['ONLINE']?this[_0x587cfd(0x49f)]():_0x1d59c2===_0x2d0945[_0x587cfd(0x26d)]&&this[_0x587cfd(0x23f)]();}))),this[_0x30118e(0x231)](_0x226a7e[_0x30118e(0x14b)](this[_0x30118e(0x3c9)][_0x30118e(0x3a4)][_0x30118e(0x22c)](_0x1b84e4=>{const _0x16aaa4=_0x30118e;try{switch(_0x1b84e4[_0x16aaa4(0x325)]){case _0x1e8c75['CollaborationEvent']['NEW_CHANGESETS']:{this[_0x16aaa4(0x419)](_0x1e8c75['parseProtocolChangeset'](_0x1b84e4['data']));break;}case _0x1e8c75[_0x16aaa4(0x198)]['CHANGESET_ACK']:{this['_onRemoteACK'](_0x1b84e4['data']);break;}case _0x1e8c75['CollaborationEvent'][_0x16aaa4(0x4df)]:{this[_0x16aaa4(0x2f9)]();break;}case _0x1e8c75[_0x16aaa4(0x198)]['PSEUDO_FETCH_MISSING_RESULT']:{this['_onFetchMissResult'](_0x1b84e4[_0x16aaa4(0x1f8)][_0x16aaa4(0x2bf)][_0x16aaa4(0x4db)](_0xe2abfa=>_0x1e8c75[_0x16aaa4(0x4dd)](_0xe2abfa)));break;}case _0x1e8c75[_0x16aaa4(0x198)][_0x16aaa4(0x143)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x28a273){throw console[_0x16aaa4(0x24e)]('Error\x20on\x20receiving\x20event',_0x28a273),_0x28a273;}}))),this[_0x30118e(0x1eb)];}[_0x228849(0x210)](){const _0xb49a55=_0x228849;this[_0xb49a55(0x1ee)]=!0x1;}[_0x228849(0x193)](){const _0x293b55=_0x228849;if(this['_transitionLocked'])throw new Error(_0x293b55(0x248));this[_0x293b55(0x1ee)]=!0x0;}[_0x228849(0x2d7)](_0xe4897e){const _0x3c051b=_0x228849;this[_0x3c051b(0x193)](),this[_0x3c051b(0x4c1)](this[_0x3c051b(0x1eb)][_0x3c051b(0x3dd)](_0xe4897e)),this['_unlockTransition']();}[_0x228849(0x419)](_0x2f8006){const _0x48cfe7=_0x228849;if(!(_0x2f8006[_0x48cfe7(0x437)]<=this[_0x48cfe7(0x230)]['getCurrentRevForDocument'](this['unitID']))){if(this['_collaborationPaused']){this[_0x48cfe7(0x172)][_0x48cfe7(0x4cb)](_0x2f8006);return;}this[_0x48cfe7(0x1ff)](_0x2f8006);}}['_exhaustRemoteChangesetQueue'](){const _0x4bc153=_0x228849;this[_0x4bc153(0x172)][_0x4bc153(0x3ad)](_0x14a6cc=>this[_0x4bc153(0x1ff)](_0x14a6cc)),this[_0x4bc153(0x172)]=[];}['_applyRemoteChangeset'](_0x4b1f84){const _0x25dbb5=_0x228849,_0xb9e82d=this[_0x25dbb5(0x338)][_0x25dbb5(0x1d5)][_0x25dbb5(0x1c3)](this[_0x25dbb5(0x338)][_0x25dbb5(0x1d5)][_0x25dbb5(0x348)]()[_0x25dbb5(0x32e)])(_0x4b1f84[_0x25dbb5(0x357)],null)||_0x4b1f84[_0x25dbb5(0x357)],_0x4a8376={..._0x4b1f84,'mutations':_0xb9e82d};this['_lockTransition'](),this['_updateState'](this[_0x25dbb5(0x1eb)]['onRemoteChangeset'](_0x4a8376)),this[_0x25dbb5(0x210)]();}[_0x228849(0x189)](_0x32b1a9){const _0x321745=_0x228849;this['_lockTransition'](),this['_updateState'](this[_0x321745(0x1eb)][_0x321745(0x25e)](_0x32b1a9)),this[_0x321745(0x210)]();}[_0x228849(0x2f9)](_0x4e22da){const _0x46534e=_0x228849;this[_0x46534e(0x193)](),this['_updateState'](this[_0x46534e(0x1eb)]['onRemoteRej'](_0x4e22da)),this[_0x46534e(0x210)]();}['_onFetchMissResult'](_0x52b3c3){const _0x359a49=_0x228849;if(!(this['_state']instanceof _0x378adc))throw new TypeError(_0x359a49(0x3cb));const _0x3e20f0=_0x52b3c3[_0x359a49(0x4db)](_0x1f1b08=>{const _0x183a26=_0x359a49,_0x3899ad=this[_0x183a26(0x338)]['interceptor']['fetchThroughInterceptors'](this[_0x183a26(0x338)][_0x183a26(0x1d5)][_0x183a26(0x348)]()['COMPRESS_MUTATION_APPLY'])(_0x1f1b08[_0x183a26(0x357)],null)||_0x1f1b08[_0x183a26(0x357)];return{..._0x1f1b08,'mutations':_0x3899ad};});this[_0x359a49(0x193)](),this[_0x359a49(0x4c1)](this['_state'][_0x359a49(0x1e5)](_0x3e20f0)),this[_0x359a49(0x210)]();}[_0x228849(0x23f)](){const _0x447c29=_0x228849;this[_0x447c29(0x193)](),this[_0x447c29(0x4c1)](this['_state'][_0x447c29(0x147)]()),this['_unlockTransition']();}['_toggleOnline'](){const _0x216be1=_0x228849;this[_0x216be1(0x193)](),this['_updateState'](this['_state'][_0x216be1(0x4ee)]()),this[_0x216be1(0x210)]();}async[_0x228849(0x237)](){return new Promise(_0x441c2a=>{const _0x463c75=_0x572c;this[_0x463c75(0x3c9)]['sessionStatus$'][_0x463c75(0x450)](_0x4d72f4[_0x463c75(0x1db)](0x1))[_0x463c75(0x22c)](async _0x560697=>{const _0x1e9028=_0x463c75;_0x441c2a(await this[_0x1e9028(0x277)](_0x560697===_0x2d0945[_0x1e9028(0x4cc)]));});});}['_createHandler'](){const _0x41eb5b=this['unitID'];return{'onStateChange':(_0x3852f5,_0x4f3fc8)=>{const _0xafedfc=_0x572c;if(_0x3852f5!==this['_state'])throw new Error(_0xafedfc(0x44a)+_0x3852f5[_0xafedfc(0x418)]+'\x0aAfter:\x20'+_0x4f3fc8[_0xafedfc(0x418)]+_0xafedfc(0x360)+this[_0xafedfc(0x1eb)][_0xafedfc(0x418)]);this[_0xafedfc(0x4c1)](_0x4f3fc8);},'onSendChangeset':_0x2c1f01=>{const _0x3a8d42=_0x572c,_0xe17cb={'eventID':_0x1e8c75[_0x3a8d42(0x198)][_0x3a8d42(0x2b5)],'data':{'unitID':_0x2c1f01[_0x3a8d42(0x340)],'unitType':this[_0x3a8d42(0x403)],'changeset':_0x2c1f01,'memberID':this['_session'][_0x3a8d42(0x2e1)]()}};this[_0x3a8d42(0x3c9)][_0x3a8d42(0x4ed)](_0xe17cb,this[_0x3a8d42(0x340)]);},'onMissingChangesets':({from:_0x592169,to:_0xeff23a})=>{const _0x44ba28=_0x572c;this[_0x44ba28(0x464)]['debug']('[CollaborationEntity]',_0x44ba28(0x3ce)+_0x592169+_0x44ba28(0x3ab)+_0xeff23a);const _0x4efd8c={'eventID':_0x1e8c75[_0x44ba28(0x198)][_0x44ba28(0x2bb)],'data':{'unitID':_0x41eb5b,'unitType':this[_0x44ba28(0x403)],'from':_0x592169,'to':_0xeff23a}};this[_0x44ba28(0x3c9)][_0x44ba28(0x4ed)](_0x4efd8c,this['unitID']);}};}async['_createInitialStateImpl'](_0x7acf36){const _0x409d6a=_0x228849;var _0x125d70,_0x38e64b;const _0x204f45=await this[_0x409d6a(0x3ef)][_0x409d6a(0x33c)](this[_0x409d6a(0x340)]),_0x37d00e=(_0x125d70=_0x204f45==null?void 0x0:_0x204f45['mutations'])!=null?_0x125d70:[],_0x361f62=(_0x38e64b=_0x204f45==null?void 0x0:_0x204f45[_0x409d6a(0x27a)])!=null?_0x38e64b:null,_0x5cc68c=this[_0x409d6a(0x340)];try{this[_0x409d6a(0x18b)](_0x361f62,_0x37d00e);}catch(_0x2b772b){this['_logService']['error'](_0x2b772b);}const _0x5de8b0=this['_createHandler']();if(_0x7acf36){const _0xa7c2bf=_0x21ef26(this[_0x409d6a(0x28b)],_0x5cc68c,this[_0x409d6a(0x403)],_0x361f62,_0x37d00e,_0x5de8b0);return _0xa7c2bf instanceof _0x25c1eb?_0xa7c2bf[_0x409d6a(0x3ff)]():(_0xa7c2bf instanceof _0x3f26f2||_0xa7c2bf instanceof _0x190be0)&&_0xa7c2bf[_0x409d6a(0x3c6)](),_0xa7c2bf;}return this[_0x409d6a(0x28b)]['createInstance'](_0x424af3,_0x5cc68c,this['_type'],_0x361f62,_0x37d00e,_0x5de8b0);}[_0x228849(0x18b)](_0xdd50f2,_0x3e9a38){const _0x429a96=_0x228849;var _0x9955cc,_0x2218a1;const _0x21bfe0=this[_0x429a96(0x338)]['interceptor']['fetchThroughInterceptors'](this[_0x429a96(0x338)][_0x429a96(0x1d5)][_0x429a96(0x348)]()['COMPRESS_MUTATION_APPLY']);(_0x9955cc=_0x21bfe0((_0xdd50f2==null?void 0x0:_0xdd50f2[_0x429a96(0x357)])||[],null))==null||_0x9955cc[_0x429a96(0x3ad)](_0x4d0693=>this['_commandService'][_0x429a96(0x12c)](_0x4d0693['id'],_0x4d0693[_0x429a96(0x2f4)])),(_0x2218a1=_0x21bfe0(_0x3e9a38||[],null))==null||_0x2218a1[_0x429a96(0x3ad)](_0x2bfeb0=>this[_0x429a96(0x4b6)][_0x429a96(0x12c)](_0x2bfeb0['id'],_0x2bfeb0[_0x429a96(0x2f4)]));}};_0x3771b3=_0x19eb46([_0x51c041(0x3,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x51c041(0x4,_0x49bc9[_0x228849(0x31c)](_0x431c6f['LocalCacheService'])),_0x51c041(0x5,_0x49bc9['Inject'](_0x1e8c75[_0x228849(0x411)])),_0x51c041(0x6,_0x49bc9[_0x228849(0x31c)](_0x226a7e[_0x228849(0x355)])),_0x51c041(0x7,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)])),_0x51c041(0x8,_0x226a7e[_0x228849(0x212)]),_0x51c041(0x9,_0x226a7e['ICommandService']),_0x51c041(0xa,_0x15005b[_0x228849(0x4f8)]),_0x51c041(0xb,_0x226a7e[_0x228849(0x182)]),_0x51c041(0xc,_0x49bc9[_0x228849(0x195)](_0x53b064))],_0x3771b3);let _0x289e3a=class extends _0x3771b3{constructor(_0x26b9d5,_0x4113e8,_0x389153,_0x42fbb8,_0x139b2c,_0x10dda5,_0x36e8c7,_0x3706c6,_0x299c72,_0x352828,_0x1294f2,_0x269a69,_0x13a101,_0x2ac74d,_0x2aac19,_0x12d961,_0x55eb6b){const _0x33315d=_0x228849;super(_0x26b9d5,_0x4113e8,_0x389153,_0x42fbb8,_0x139b2c,_0x10dda5,_0x36e8c7,_0x3706c6,_0x13a101,_0x2ac74d,_0x2aac19,_0x12d961,_0x55eb6b),this['unitID']=_0x26b9d5,this[_0x33315d(0x354)]=_0x4113e8,this[_0x33315d(0x159)]=_0x389153,this[_0x33315d(0x3ac)]=_0x299c72,this[_0x33315d(0x474)]=_0x352828,this[_0x33315d(0x3f8)]=_0x1294f2,this[_0x33315d(0x142)]=_0x269a69;}[_0x228849(0x2ea)](){const _0x375b16=_0x228849,_0x576c51=super[_0x375b16(0x2ea)]();return _0x576c51['onTransformIME']=_0x1ef95e=>this[_0x375b16(0x474)][_0x375b16(0x328)](_0x1ef95e),_0x576c51[_0x375b16(0x482)]=_0x4a8c96=>this[_0x375b16(0x3f8)][_0x375b16(0x23c)](_0x4a8c96),_0x576c51[_0x375b16(0x216)]=_0x3d94d3=>this[_0x375b16(0x142)][_0x375b16(0x48d)](_0x3d94d3),_0x576c51['onTransformRemoteChangesetByIMECache']=_0x4ec453=>this[_0x375b16(0x474)]['transformRemoteChangeset'](_0x4ec453),_0x576c51;}async[_0x228849(0x285)](){const _0x1dc424=_0x228849,_0x11d050=await super[_0x1dc424(0x285)]();return this[_0x1dc424(0x3ac)][_0x1dc424(0x4f2)][_0x1dc424(0x450)](_0x4e5e3f[_0x1dc424(0x2e4)](this[_0x1dc424(0x1ec)]))[_0x1dc424(0x22c)](_0x43391e=>{const _0x2dad01=_0x1dc424;if(_0x43391e==null)return;const {unitId:_0x587936,redoState:_0xda0199,commandId:_0x3b8368}=_0x43391e;if(_0x587936!==this[_0x2dad01(0x340)])return;const _0x42032b={'id':_0x3b8368,'type':_0x226a7e[_0x2dad01(0x22d)]['MUTATION'],'params':{'unitId':_0x587936,'actions':_0xda0199[_0x2dad01(0x274)],'textRanges':null}};this[_0x2dad01(0x2d7)](_0x42032b);}),_0x11d050;}};_0x289e3a=_0x19eb46([_0x51c041(0x3,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x51c041(0x4,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x361)])),_0x51c041(0x5,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x411)])),_0x51c041(0x6,_0x49bc9[_0x228849(0x31c)](_0x226a7e['LocaleService'])),_0x51c041(0x7,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)])),_0x51c041(0x8,_0x49bc9[_0x228849(0x31c)](_0x534040['DocStateChangeManagerService'])),_0x51c041(0x9,_0x49bc9[_0x228849(0x31c)](_0x1f5fb3)),_0x51c041(0xa,_0x49bc9[_0x228849(0x31c)](_0x35da09)),_0x51c041(0xb,_0x49bc9[_0x228849(0x31c)](_0x372338)),_0x51c041(0xc,_0x226a7e[_0x228849(0x212)]),_0x51c041(0xd,_0x226a7e[_0x228849(0x48f)]),_0x51c041(0xe,_0x15005b[_0x228849(0x4f8)]),_0x51c041(0xf,_0x226a7e[_0x228849(0x182)]),_0x51c041(0x10,_0x49bc9[_0x228849(0x195)](_0x53b064))],_0x289e3a);let _0x332233=class extends _0x3771b3{constructor(_0x25ffec,_0x17a15e,_0x486a6b,_0x227331,_0x45ff13,_0x1f92d3,_0x1ba972,_0x259116,_0x6185d4,_0x1fdddc,_0x698b51,_0x2d2dcc,_0x3cc1a8,_0x14c67e){const _0x80b692=_0x228849;super(_0x25ffec,_0x17a15e,_0x486a6b,_0x227331,_0x45ff13,_0x1f92d3,_0x1ba972,_0x259116,_0x1fdddc,_0x698b51,_0x2d2dcc,_0x3cc1a8,_0x14c67e),this[_0x80b692(0x340)]=_0x25ffec,this[_0x80b692(0x354)]=_0x17a15e,this[_0x80b692(0x159)]=_0x486a6b,this[_0x80b692(0x49a)]=_0x6185d4;}[_0x228849(0x2ea)](){const _0x540ea3=_0x228849,_0x151e3b=super['_createHandler']();return _0x151e3b[_0x540ea3(0x482)]=_0x4f8a6a=>this[_0x540ea3(0x49a)]['transformSelections'](_0x4f8a6a),_0x151e3b;}async[_0x228849(0x285)](){const _0xa6154d=_0x228849,_0x41bdce=await super[_0xa6154d(0x285)]();return this[_0xa6154d(0x231)](this[_0xa6154d(0x4b6)][_0xa6154d(0x4b7)]((_0x3b5251,_0x1ff249)=>{const _0x52c850=_0xa6154d;if(_0x3b5251[_0x52c850(0x354)]!==_0x226a7e[_0x52c850(0x22d)][_0x52c850(0x3e0)]||_0x1ff249!=null&&_0x1ff249[_0x52c850(0x414)]||_0x1ff249!=null&&_0x1ff249[_0x52c850(0x31b)])return;const _0x38fba4=_0x3b5251[_0x52c850(0x2f4)];if((_0x38fba4==null?void 0x0:_0x38fba4[_0x52c850(0x3c5)])!==this[_0x52c850(0x340)])return;const _0x1a36b1=_0x3b5251,_0x2f2021=this[_0x52c850(0x338)][_0x52c850(0x1d5)]['fetchThroughInterceptors'](this[_0x52c850(0x338)]['interceptor'][_0x52c850(0x348)]()[_0x52c850(0x46f)])([_0x1a36b1],null)||[_0x1a36b1];this[_0x52c850(0x2d7)](_0x2f2021[0x0]);})),_0x41bdce;}};_0x332233=_0x19eb46([_0x51c041(0x3,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x51c041(0x4,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x361)])),_0x51c041(0x5,_0x49bc9[_0x228849(0x31c)](_0x1e8c75['CompressMutationService'])),_0x51c041(0x6,_0x49bc9[_0x228849(0x31c)](_0x226a7e[_0x228849(0x355)])),_0x51c041(0x7,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)])),_0x51c041(0x8,_0x49bc9[_0x228849(0x31c)](_0x362b05)),_0x51c041(0x9,_0x226a7e[_0x228849(0x212)]),_0x51c041(0xa,_0x226a7e[_0x228849(0x48f)]),_0x51c041(0xb,_0x15005b[_0x228849(0x4f8)]),_0x51c041(0xc,_0x226a7e[_0x228849(0x182)]),_0x51c041(0xd,_0x49bc9['Optional'](_0x53b064))],_0x332233);const _0x316fe0=[_0x228849(0x329),_0x228849(0x4ea),_0x228849(0x28a),_0x228849(0x203),'blue400',_0x228849(0x30c)];class _0x237467 extends _0x226a7e[_0x228849(0x484)]{constructor(){const _0xf17a0e=_0x228849;super(...arguments),_0xaa2177(this,'_assignedColors',new Map()),_0xaa2177(this,_0xf17a0e(0x490),0x0);}['assignAColorForMemberID'](_0x448685){const _0x195169=_0x228849;if(this['_assignedColors']['has'](_0x448685))return this[_0x195169(0x21e)][_0x195169(0x24c)](_0x448685);const _0x424f8a=_0x316fe0[this[_0x195169(0x490)]];return this[_0x195169(0x490)]=(this[_0x195169(0x490)]+0x1)%_0x316fe0['length'],this[_0x195169(0x21e)][_0x195169(0x4f3)](_0x448685,_0x424f8a),_0x424f8a;}}var _0x2d574c=Object[_0x228849(0x1fc)],_0x1f4c48=Object[_0x228849(0x1b4)],_0x58a19e=(_0x5c1b2f,_0x17ec0d,_0x43b62d,_0x2e8d9c)=>{const _0x1556e4=_0x228849;for(var _0x2e36bd=_0x2e8d9c>0x1?void 0x0:_0x2e8d9c?_0x1f4c48(_0x17ec0d,_0x43b62d):_0x17ec0d,_0x5a7e5d=_0x5c1b2f[_0x1556e4(0x430)]-0x1,_0x132f46;_0x5a7e5d>=0x0;_0x5a7e5d--)(_0x132f46=_0x5c1b2f[_0x5a7e5d])&&(_0x2e36bd=(_0x2e8d9c?_0x132f46(_0x17ec0d,_0x43b62d,_0x2e36bd):_0x132f46(_0x2e36bd))||_0x2e36bd);return _0x2e8d9c&&_0x2e36bd&&_0x2d574c(_0x17ec0d,_0x43b62d,_0x2e36bd),_0x2e36bd;},_0x3aa8b8=(_0x5d939,_0x457294)=>(_0x5ad275,_0x1e22b8)=>_0x457294(_0x5ad275,_0x1e22b8,_0x5d939);const _0x3e28a6=0x12c,_0x2ff8dd=0x64,_0x493a4d=()=>{let _0x2965bf=[],_0x14f5fb=!0x1;return _0x2c463f=>{const _0x35a789=_0x572c;_0x2965bf[_0x35a789(0x4cb)](_0x2c463f),_0x14f5fb||(_0x14f5fb=!0x0,setTimeout(()=>{const _0x36e301=_0x35a789;_0x2965bf[_0x36e301(0x3ad)](_0x40480d=>_0x40480d()),_0x2965bf=[],_0x14f5fb=!0x1;}));};};let _0x4c09e8=class extends _0x226a7e[_0x228849(0x2ac)]{constructor(_0x5a4597,_0x21442f,_0x1cf9f2,_0x1575c2,_0x376c6c,_0x217c90,_0x281f8e,_0x4f63f3){const _0x25038d=_0x228849;super(),_0xaa2177(this,_0x25038d(0x332),!0x1),_0xaa2177(this,_0x25038d(0x285),!0x1),_0xaa2177(this,_0x25038d(0x479),new _0x4e5e3f[(_0x25038d(0x2e7))](new Map())),_0xaa2177(this,_0x25038d(0x183),this[_0x25038d(0x479)][_0x25038d(0x1fe)]()),_0xaa2177(this,_0x25038d(0x45c),new _0x4e5e3f[(_0x25038d(0x2e7))]([])),_0xaa2177(this,_0x25038d(0x1e9),this['_roomMembers$'][_0x25038d(0x450)](_0x4e5e3f[_0x25038d(0x3b5)](_0x3e28a6))),_0xaa2177(this,_0x25038d(0x470),_0x270255((_0x175a95,_0x1ac8fb)=>{const _0x5de189=_0x25038d,_0x4ee9d1={'eventID':_0x1e8c75[_0x5de189(0x198)][_0x5de189(0x253)],'data':{'unitID':this[_0x5de189(0x340)],'memberID':this['_session'][_0x5de189(0x2e1)](),'selection':_0x2ca513[_0x5de189(0x273)](_0x175a95,_0x1ac8fb[_0x5de189(0x2a6)])}};this[_0x5de189(0x3c9)]['send'](_0x4ee9d1,this[_0x5de189(0x340)]);},_0x2ff8dd)),(this[_0x25038d(0x340)]=_0x5a4597,this[_0x25038d(0x3c9)]=_0x21442f,this['_injector']=_0x1cf9f2,this['_colorAssignService']=_0x1575c2,this[_0x25038d(0x2c7)]=_0x376c6c,this[_0x25038d(0x1ad)]=_0x217c90,this[_0x25038d(0x4b6)]=_0x281f8e,this[_0x25038d(0x244)]=_0x4f63f3);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x228849(0x402)](){const _0x4d0217=_0x228849;return this[_0x4d0217(0x45c)]['getValue']();}[_0x228849(0x485)](){const _0x38f8e6=_0x228849;super[_0x38f8e6(0x485)](),this[_0x38f8e6(0x479)][_0x38f8e6(0x488)](new Map()),this['_cursorInfo$']['complete'](),this[_0x38f8e6(0x45c)]['next']([]),this[_0x38f8e6(0x45c)][_0x38f8e6(0x1dd)]();}[_0x228849(0x3bd)](){const _0x55467e=_0x228849;this['_init']||(this[_0x55467e(0x285)]=!0x0,this[_0x55467e(0x3c9)][_0x55467e(0x2b7)][_0x55467e(0x450)](_0x4e5e3f[_0x55467e(0x2e4)](this['dispose$']))[_0x55467e(0x22c)](_0x49bfce=>{const _0x171cbf=_0x55467e;_0x49bfce===_0x2d0945[_0x171cbf(0x4cc)]?this['_toggleOnline']():this[_0x171cbf(0x23f)]();}),this[_0x55467e(0x3c9)][_0x55467e(0x3a4)][_0x55467e(0x450)](_0x4e5e3f[_0x55467e(0x2e4)](this[_0x55467e(0x1ec)]))[_0x55467e(0x22c)](_0x19f823=>{const _0x5a960d=_0x55467e,_0x281510=_0x19f823[_0x5a960d(0x325)];_0x281510===_0x1e8c75[_0x5a960d(0x198)][_0x5a960d(0x253)]&&this[_0x5a960d(0x1d6)](_0x19f823),_0x281510===_0x1e8c75['CollaborationEvent']['USERS_LEAVE']&&this[_0x5a960d(0x2d5)](_0x19f823);}),this[_0x55467e(0x1d8)](),this['disposeWithMe'](this[_0x55467e(0x4b6)][_0x55467e(0x4b7)](_0x363a8e=>{const _0x4cae10=_0x55467e;if(this[_0x4cae10(0x332)]&&_0x363a8e['id']===_0x3acf4c[_0x4cae10(0x21b)]['id']&&_0x363a8e[_0x4cae10(0x2f4)][_0x4cae10(0x3c5)]===this['unitID']){const _0xa0dc34=_0x363a8e['params'];this[_0x4cae10(0x470)](_0xa0dc34[_0x4cae10(0x4ec)],_0xa0dc34[_0x4cae10(0x3a6)][0x0]);}})));}['_onCursorUpdate'](_0x576ede){const _0x359f4f=_0x228849;var _0x5ce774,_0x255dc2;const {memberID:_0x1ab517,selection:_0x21cb80}=_0x576ede['data'],{sheetName:_0x183ce3,range:_0x251f78}=_0x2ca513[_0x359f4f(0x3ec)](_0x21cb80),_0x27a8b1={'name':(_0x255dc2=(_0x5ce774=this[_0x359f4f(0x2c7)][_0x359f4f(0x250)](this[_0x359f4f(0x340)],_0x1ab517))==null?void 0x0:_0x5ce774[_0x359f4f(0x268)])!=null?_0x255dc2:_0x359f4f(0x3c1),'range':this['_getMergeRange'](_0x183ce3,_0x251f78),'sheetID':_0x183ce3,'color':this['_colorAssignService'][_0x359f4f(0x4cf)](_0x1ab517),'selection':_0x21cb80},_0x33a157=this[_0x359f4f(0x261)];_0x33a157[_0x359f4f(0x4f3)](_0x1ab517,_0x27a8b1),this['_cursorInfo$'][_0x359f4f(0x488)](_0x33a157);}[_0x228849(0x2d5)](_0x422bb6){const _0x3014d9=_0x228849,{memberID:_0x6226ed}=_0x422bb6[_0x3014d9(0x1f8)],_0x35daf8=this[_0x3014d9(0x261)];_0x35daf8[_0x3014d9(0x2b1)](_0x6226ed),this['_cursorInfo$'][_0x3014d9(0x488)](_0x35daf8);}[_0x228849(0x493)](_0x487fcd,_0x12f6ba){const _0x14ace2=_0x228849;var _0x56f560,_0x591b21;const _0x51877c=(_0x591b21=(_0x56f560=this[_0x14ace2(0x1ad)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x56f560[_0x14ace2(0x140)](_0x487fcd))==null?void 0x0:_0x591b21[_0x14ace2(0x38f)]();return(_0x51877c==null?void 0x0:_0x51877c[_0x14ace2(0x232)](_0x3d0a0a=>_0x226a7e[_0x14ace2(0x1be)]['contains'](_0x3d0a0a,_0x12f6ba)))||_0x12f6ba;}['_onRefRangeChange'](){const _0x149518=_0x228849,_0x2f9951=new _0x226a7e[(_0x149518(0x4b3))](),_0x2103d3=_0x493a4d(),_0x3f1f6c=()=>{const _0x548953=_0x149518;_0x2f9951[_0x548953(0x485)]();const _0x296519=(_0x214e30,_0xe350b5,_0x25904e,_0x2aa590)=>{const _0x244806=_0x548953;let _0x475c4f=[];switch(_0x214e30['id']){case _0x3acf4c[_0x244806(0x15d)]['DeleteRangeMoveLeftCommandId']:{_0x475c4f=_0x3acf4c[_0x244806(0x33e)](_0x214e30,_0x2aa590);break;}case _0x3acf4c[_0x244806(0x15d)][_0x244806(0x378)]:{_0x475c4f=_0x3acf4c['handleDeleteRangeMoveUp'](_0x214e30,_0x2aa590);break;}case _0x3acf4c[_0x244806(0x15d)][_0x244806(0x2fe)]:{_0x475c4f=_0x3acf4c[_0x244806(0x3c8)](_0x214e30,_0x2aa590);break;}case _0x3acf4c[_0x244806(0x15d)][_0x244806(0x166)]:{_0x475c4f=_0x3acf4c[_0x244806(0x445)](_0x214e30,_0x2aa590);break;}case _0x3acf4c[_0x244806(0x15d)][_0x244806(0x313)]:{_0x475c4f=_0x3acf4c[_0x244806(0x425)](_0x214e30,_0x2aa590);break;}case _0x3acf4c['EffectRefRangId'][_0x244806(0x2e3)]:{_0x475c4f=_0x3acf4c[_0x244806(0x2f7)](_0x214e30,_0x2aa590);break;}case _0x3acf4c['EffectRefRangId'][_0x244806(0x4b4)]:{_0x475c4f=_0x3acf4c[_0x244806(0x1b5)](_0x214e30,_0x2aa590);break;}case _0x3acf4c[_0x244806(0x15d)][_0x244806(0x15c)]:{_0x475c4f=_0x3acf4c[_0x244806(0x13b)](_0x214e30,_0x2aa590);break;}case _0x3acf4c['EffectRefRangId'][_0x244806(0x471)]:{_0x475c4f=_0x3acf4c['handleIRemoveRow'](_0x214e30,_0x2aa590);break;}}const _0x44779f=_0x3acf4c[_0x244806(0x1a5)](_0x475c4f,_0x2aa590),_0x4443cd=this['cursorInfo'][_0x244806(0x24c)](_0xe350b5);if(_0x4443cd&&_0x44779f){const _0x5a8174={..._0x4443cd,'range':_0x44779f};this[_0x244806(0x261)]['set'](_0xe350b5,_0x5a8174),_0x2103d3(()=>{const _0x4aaa42=_0x244806,_0x3ac908=this['_refRangeService'][_0x4aaa42(0x29d)](_0x44779f,_0x2b6eb0=>(_0x3ac908[_0x4aaa42(0x485)](),_0x296519(_0x2b6eb0,_0xe350b5,_0x25904e,_0x44779f)));_0x2f9951['add'](_0x3ac908);});}return{'redos':[],'undos':[]};};this[_0x548953(0x261)][_0x548953(0x3ad)]((_0x531e61,_0x14cfe6)=>{const _0x18a933=_0x548953,{range:_0x22a954,sheetID:_0x411e29}=_0x531e61,_0x1a03a8=this[_0x18a933(0x244)][_0x18a933(0x29d)](_0x22a954,_0x2700f0=>(_0x1a03a8['dispose'](),_0x296519(_0x2700f0,_0x14cfe6,_0x411e29,_0x22a954)));_0x2f9951[_0x18a933(0x33d)](_0x1a03a8);});};this[_0x149518(0x231)](_0x226a7e['toDisposable'](this[_0x149518(0x479)][_0x149518(0x22c)](()=>{_0x3f1f6c();})));}[_0x228849(0x49f)](){const _0x5d632a=_0x228849;var _0x5106c0,_0x1cfc93;if(this['_online']=!0x0,((_0x5106c0=this[_0x5d632a(0x1ad)][_0x5d632a(0x43f)]())==null?void 0x0:_0x5106c0[_0x5d632a(0x2d1)]())!==this['unitID'])return;const _0x2b114c=(_0x1cfc93=this['_injector']['get'](_0x3acf4c[_0x5d632a(0x35c)])[_0x5d632a(0x2e0)]())==null?void 0x0:_0x1cfc93[0x0];_0x2b114c&&this[_0x5d632a(0x470)](this[_0x5d632a(0x1ad)]['getCurrentUnitForType'](_0x226a7e[_0x5d632a(0x27d)][_0x5d632a(0x390)])[_0x5d632a(0x4a3)]()['getSheetId'](),_0x2b114c);}['_toggleOffline'](){this['_online']=!0x1;}};_0x4c09e8=_0x58a19e([_0x3aa8b8(0x2,_0x49bc9[_0x228849(0x31c)](_0x49bc9['Injector'])),_0x3aa8b8(0x3,_0x49bc9['Inject'](_0x237467)),_0x3aa8b8(0x4,_0x49bc9[_0x228849(0x31c)](_0x2f6a5d)),_0x3aa8b8(0x5,_0x226a7e['IUniverInstanceService']),_0x3aa8b8(0x6,_0x226a7e[_0x228849(0x48f)]),_0x3aa8b8(0x7,_0x49bc9[_0x228849(0x31c)](_0x3acf4c['RefRangeService']))],_0x4c09e8);var _0x1245ca=Object['defineProperty'],_0x229826=Object['getOwnPropertyDescriptor'],_0x1bdabf=(_0x4115d5,_0x5cc928,_0x2e7c99,_0x1408ff)=>{const _0x17b97e=_0x228849;for(var _0x22c768=_0x1408ff>0x1?void 0x0:_0x1408ff?_0x229826(_0x5cc928,_0x2e7c99):_0x5cc928,_0x12c8aa=_0x4115d5[_0x17b97e(0x430)]-0x1,_0x1b9c2f;_0x12c8aa>=0x0;_0x12c8aa--)(_0x1b9c2f=_0x4115d5[_0x12c8aa])&&(_0x22c768=(_0x1408ff?_0x1b9c2f(_0x5cc928,_0x2e7c99,_0x22c768):_0x1b9c2f(_0x22c768))||_0x22c768);return _0x1408ff&&_0x22c768&&_0x1245ca(_0x5cc928,_0x2e7c99,_0x22c768),_0x22c768;},_0x3a8e95=(_0x3f7cb4,_0x3104fd)=>(_0x3d2385,_0x5ddcfa)=>_0x3104fd(_0x3d2385,_0x5ddcfa,_0x3f7cb4);const _0x386b95=0x12c,_0x37f7d5=0x64;let _0x23d36a=class extends _0x226a7e[_0x228849(0x2ac)]{constructor(_0x5b1ee6,_0x10f02c,_0x402648,_0x2fd2da,_0x5b425d,_0x3a7a32,_0x1c0323,_0x4b7b4b,_0x2f03d7){const _0x243445=_0x228849;super(),_0xaa2177(this,_0x243445(0x332),!0x1),_0xaa2177(this,'_init',!0x1),_0xaa2177(this,_0x243445(0x479),new _0x4e5e3f['BehaviorSubject'](new Map())),_0xaa2177(this,_0x243445(0x183),this[_0x243445(0x479)][_0x243445(0x1fe)]()),_0xaa2177(this,_0x243445(0x45c),new _0x4e5e3f[(_0x243445(0x2e7))]([])),_0xaa2177(this,'roomMembers$',this[_0x243445(0x45c)][_0x243445(0x450)](_0x4e5e3f[_0x243445(0x3b5)](_0x386b95))),_0xaa2177(this,_0x243445(0x470),_0x270255(_0x32eca1=>{const _0x576e0d=_0x243445,_0x2fac59={'eventID':_0x1e8c75['CollaborationEvent'][_0x576e0d(0x253)],'data':{'unitID':this[_0x576e0d(0x340)],'memberID':this['_session'][_0x576e0d(0x2e1)](),'selection':_0x26d119(_0x32eca1)}};this['_session'][_0x576e0d(0x4ed)](_0x2fac59,this[_0x576e0d(0x340)]);},_0x37f7d5)),(this[_0x243445(0x340)]=_0x5b1ee6,this['_session']=_0x10f02c,this[_0x243445(0x28b)]=_0x402648,this[_0x243445(0x38e)]=_0x2fd2da,this['_memberService']=_0x5b425d,this[_0x243445(0x44d)]=_0x3a7a32,this[_0x243445(0x1b9)]=_0x1c0323,this[_0x243445(0x1ad)]=_0x4b7b4b,this[_0x243445(0x4b6)]=_0x2f03d7);}get[_0x228849(0x261)](){return this['_cursorInfo$']['getValue']();}get[_0x228849(0x402)](){const _0x17b4d5=_0x228849;return this[_0x17b4d5(0x45c)][_0x17b4d5(0x181)]();}[_0x228849(0x485)](){const _0x28b30b=_0x228849;super[_0x28b30b(0x485)](),this[_0x28b30b(0x479)][_0x28b30b(0x488)](new Map()),this[_0x28b30b(0x479)][_0x28b30b(0x1dd)](),this[_0x28b30b(0x45c)][_0x28b30b(0x488)]([]),this[_0x28b30b(0x45c)][_0x28b30b(0x1dd)]();}[_0x228849(0x3bd)](){const _0x44e664=_0x228849;this[_0x44e664(0x285)]||(this[_0x44e664(0x285)]=!0x0,this[_0x44e664(0x3c9)]['sessionStatus$'][_0x44e664(0x450)](_0x4e5e3f[_0x44e664(0x2e4)](this[_0x44e664(0x1ec)]))['subscribe'](_0x134824=>{const _0x15f71a=_0x44e664;_0x134824===_0x2d0945[_0x15f71a(0x4cc)]?this[_0x15f71a(0x49f)]():this[_0x15f71a(0x23f)]();}),this[_0x44e664(0x3c9)][_0x44e664(0x3a4)][_0x44e664(0x450)](_0x4e5e3f[_0x44e664(0x2e4)](this[_0x44e664(0x1ec)]))[_0x44e664(0x22c)](_0xbc0b81=>{const _0x295318=_0x44e664,_0x2957fb=_0xbc0b81[_0x295318(0x325)];_0x2957fb===_0x1e8c75['CollaborationEvent'][_0x295318(0x253)]&&this[_0x295318(0x1d6)](_0xbc0b81),_0x2957fb===_0x1e8c75[_0x295318(0x198)]['USERS_LEAVE']&&this['_onCursorDelete'](_0xbc0b81);}),this[_0x44e664(0x231)](this[_0x44e664(0x4b6)][_0x44e664(0x4b7)](_0x214718=>{const _0x566451=_0x44e664,_0x2e2a71=_0x214718[_0x566451(0x2f4)];_0x2e2a71!=null&&this['_online']&&_0x214718['id']===_0x534040[_0x566451(0x3e6)]['id']&&_0x2e2a71[_0x566451(0x3c5)]===this[_0x566451(0x340)]&&_0x2e2a71[_0x566451(0x26e)]===!0x1&&this['_updateLocalCursor'](_0x2e2a71[_0x566451(0x341)]);})),this['_syncEditingCollabCursorService'][_0x44e664(0x477)][_0x44e664(0x450)](_0x4e5e3f[_0x44e664(0x2e4)](this['dispose$']))[_0x44e664(0x22c)](_0xa5f10e=>{const _0x202b1d=_0x44e664;if((_0xa5f10e==null?void 0x0:_0xa5f10e[_0x202b1d(0x340)])!==this[_0x202b1d(0x340)])return;const _0x10cd38={'eventID':_0x1e8c75['CollaborationEvent'][_0x202b1d(0x253)],'data':_0xa5f10e};this[_0x202b1d(0x1d6)](_0x10cd38);}),this[_0x44e664(0x231)](this[_0x44e664(0x4b6)][_0x44e664(0x4b7)](_0x37845f=>{const _0x2a4e14=_0x44e664;if(_0x37845f[_0x2a4e14(0x2f4)]==null)return;const _0x5deda5=_0x37845f[_0x2a4e14(0x2f4)];if(_0x37845f['id']!==_0x534040[_0x2a4e14(0x4b8)]['id']||_0x5deda5['unitId']!==this[_0x2a4e14(0x340)])return;const _0x4538b9={'id':_0x2a4e14(0x15e),'params':_0x5deda5},_0x435acd=this[_0x2a4e14(0x261)];for(const [_0x5eb281,_0x355768]of _0x435acd){const _0x44e480={'id':_0x2a4e14(0x15e),'params':{'unitId':this[_0x2a4e14(0x340)],'actions':null,'textRanges':_0x355768[_0x2a4e14(0x341)]}},_0x4feca9=this[_0x2a4e14(0x1b9)]['transformMutation'](_0x4538b9,_0x44e480,!0x1);if(_0x1e8c75[_0x2a4e14(0x499)](_0x4feca9))throw _0x4feca9[_0x2a4e14(0x24e)];_0x435acd[_0x2a4e14(0x4f3)](_0x5eb281,{..._0x355768,'ranges':_0x4feca9['m2Prime'][_0x2a4e14(0x2f4)][_0x2a4e14(0x47f)]});}queueMicrotask(()=>{const _0x2c58cd=_0x2a4e14;this[_0x2c58cd(0x479)][_0x2c58cd(0x488)](_0x435acd);});})));}[_0x228849(0x1d6)](_0x28e4c2){const _0xe5752f=_0x228849;var _0x4e8fe0,_0x362cd3;const {memberID:_0x4445ca,selection:_0x457349}=_0x28e4c2['data'],_0x1536be=_0x500cfa(_0x457349),_0x3708de=(_0x362cd3=(_0x4e8fe0=this[_0xe5752f(0x2c7)][_0xe5752f(0x250)](this[_0xe5752f(0x340)],_0x4445ca))==null?void 0x0:_0x4e8fe0[_0xe5752f(0x268)])!=null?_0x362cd3:_0xe5752f(0x3c1),_0x5167ca={'color':this[_0xe5752f(0x38e)][_0xe5752f(0x4cf)](_0x4445ca),'name':_0x3708de,'ranges':_0x1536be},_0x4dc444=this[_0xe5752f(0x261)];_0x4dc444[_0xe5752f(0x4f3)](_0x4445ca,_0x5167ca),this[_0xe5752f(0x479)][_0xe5752f(0x488)](_0x4dc444);}[_0x228849(0x2d5)](_0x53e46a){const _0x205668=_0x228849,{memberID:_0x3b3b79}=_0x53e46a[_0x205668(0x1f8)],_0x2ded8c=this[_0x205668(0x261)];_0x2ded8c[_0x205668(0x2b1)](_0x3b3b79),this[_0x205668(0x479)][_0x205668(0x488)](_0x2ded8c);}[_0x228849(0x49f)](){const _0x584d60=_0x228849;var _0x37ed31;if(this[_0x584d60(0x332)]=!0x0,((_0x37ed31=this[_0x584d60(0x1ad)][_0x584d60(0x43f)]())==null?void 0x0:_0x37ed31[_0x584d60(0x2d1)]())!==this[_0x584d60(0x340)])return;const _0x3c3ace=this['_injector'][_0x584d60(0x24c)](_0x534040[_0x584d60(0x2f2)])['getSelections'](),_0x4d2691=_0x3c3ace==null?void 0x0:_0x3c3ace[_0x584d60(0x4db)](_0x534040[_0x584d60(0x446)]);Array[_0x584d60(0x441)](_0x4d2691)&&_0x4d2691[_0x584d60(0x430)]>0x0&&this['_updateLocalCursor'](_0x4d2691);}['_toggleOffline'](){const _0x3c48ec=_0x228849;this[_0x3c48ec(0x332)]=!0x1;}};_0x23d36a=_0x1bdabf([_0x3a8e95(0x2,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x3a8e95(0x3,_0x49bc9[_0x228849(0x31c)](_0x237467)),_0x3a8e95(0x4,_0x49bc9[_0x228849(0x31c)](_0x2f6a5d)),_0x3a8e95(0x5,_0x49bc9[_0x228849(0x31c)](_0x372338)),_0x3a8e95(0x6,_0x1e8c75['ITransformService']),_0x3a8e95(0x7,_0x226a7e[_0x228849(0x4aa)]),_0x3a8e95(0x8,_0x226a7e[_0x228849(0x48f)])],_0x23d36a);var _0x113942=Object[_0x228849(0x1fc)],_0x5e63f4=Object[_0x228849(0x1b4)],_0x52f132=(_0x2b1357,_0x48909d,_0x48b18d,_0x422e9a)=>{const _0x271ab2=_0x228849;for(var _0x509de8=_0x422e9a>0x1?void 0x0:_0x422e9a?_0x5e63f4(_0x48909d,_0x48b18d):_0x48909d,_0x51f39d=_0x2b1357[_0x271ab2(0x430)]-0x1,_0x5ab0e1;_0x51f39d>=0x0;_0x51f39d--)(_0x5ab0e1=_0x2b1357[_0x51f39d])&&(_0x509de8=(_0x422e9a?_0x5ab0e1(_0x48909d,_0x48b18d,_0x509de8):_0x5ab0e1(_0x509de8))||_0x509de8);return _0x422e9a&&_0x509de8&&_0x113942(_0x48909d,_0x48b18d,_0x509de8),_0x509de8;},_0x48838e=(_0x595699,_0xe6d144)=>(_0x273516,_0x2cb113)=>_0xe6d144(_0x273516,_0x2cb113,_0x595699);let _0x1ed5eb=class extends _0x226a7e[_0x228849(0x2ac)]{constructor(_0x17802c,_0xa983c9,_0x88ebdb){const _0x5145df=_0x228849;super(),_0xaa2177(this,_0x5145df(0x339),new Map()),_0xaa2177(this,_0x5145df(0x24a),new _0x4e5e3f['Subject']()),(this['_univerInstanceService']=_0x17802c,this[_0x5145df(0x28b)]=_0xa983c9,this[_0x5145df(0x1e3)]=_0x88ebdb,this['_init']());}[_0x228849(0x485)](){const _0x549e6f=_0x228849;super[_0x549e6f(0x485)](),this[_0x549e6f(0x24a)][_0x549e6f(0x1dd)](),this[_0x549e6f(0x339)][_0x549e6f(0x3ad)](_0x43031f=>_0x43031f[_0x549e6f(0x485)]());}[_0x228849(0x254)](_0x46cbaf){const _0x9cacf9=_0x228849;return this[_0x9cacf9(0x339)][_0x9cacf9(0x1b2)](_0x46cbaf)?this[_0x9cacf9(0x339)][_0x9cacf9(0x24c)](_0x46cbaf)[_0x9cacf9(0x183)]:this[_0x9cacf9(0x24a)][_0x9cacf9(0x450)](_0x4e5e3f[_0x9cacf9(0x452)](_0xe6059b=>_0xe6059b[_0x9cacf9(0x340)]===_0x46cbaf),_0x4e5e3f[_0x9cacf9(0x32d)](_0x23c3ff=>_0x23c3ff['cursorInfo$']));}[_0x228849(0x285)](){const _0x3f9af8=_0x228849;this[_0x3f9af8(0x1ad)][_0x3f9af8(0x135)](_0x226a7e[_0x3f9af8(0x27d)]['UNIVER_SHEET'])['pipe'](_0x4e5e3f[_0x3f9af8(0x2e4)](this[_0x3f9af8(0x1ec)]))['subscribe'](async _0x512d8b=>{const _0x26e40d=_0x3f9af8,_0x7853a=_0x512d8b['getUnitId'](),_0x2c6a07=await this[_0x26e40d(0x397)](_0x7853a);this[_0x26e40d(0x24a)]['next'](_0x2c6a07),this[_0x26e40d(0x339)][_0x26e40d(0x4f3)](_0x7853a,_0x2c6a07);}),this[_0x3f9af8(0x1ad)][_0x3f9af8(0x135)](_0x226a7e[_0x3f9af8(0x27d)][_0x3f9af8(0x138)])[_0x3f9af8(0x450)](_0x4e5e3f[_0x3f9af8(0x2e4)](this[_0x3f9af8(0x1ec)]))[_0x3f9af8(0x450)](_0x4e5e3f['filter'](_0x393559=>!_0x393559['getUnitId']()['startsWith']('__')))[_0x3f9af8(0x22c)](async _0xd33699=>{const _0x503412=_0x3f9af8,_0x10ff4a=_0xd33699['getUnitId'](),_0x4c7be8=await this[_0x503412(0x439)](_0x10ff4a);this['_entityInit$']['next'](_0x4c7be8),this[_0x503412(0x339)][_0x503412(0x4f3)](_0x10ff4a,_0x4c7be8);}),_0x4e5e3f[_0x3f9af8(0x3d0)](this[_0x3f9af8(0x1ad)][_0x3f9af8(0x19d)](_0x226a7e[_0x3f9af8(0x27d)][_0x3f9af8(0x138)]),this['_univerInstanceService'][_0x3f9af8(0x19d)](_0x226a7e[_0x3f9af8(0x27d)][_0x3f9af8(0x390)]))[_0x3f9af8(0x450)](_0x4e5e3f[_0x3f9af8(0x2e4)](this[_0x3f9af8(0x1ec)]))[_0x3f9af8(0x22c)](_0x2ae575=>{const _0x18e27c=_0x3f9af8,_0x2492ea=_0x2ae575[_0x18e27c(0x2d1)](),_0x21de7f=this[_0x18e27c(0x339)][_0x18e27c(0x24c)](_0x2492ea);_0x21de7f&&(_0x21de7f[_0x18e27c(0x485)](),this[_0x18e27c(0x339)][_0x18e27c(0x2b1)](_0x2492ea));});}async[_0x228849(0x397)](_0x468053){const _0x291860=_0x228849,_0x415933=await this[_0x291860(0x1e3)]['requireSession'](_0x468053),_0x1b593c=this[_0x291860(0x28b)]['createInstance'](_0x4c09e8,_0x468053,_0x415933);return _0x1b593c[_0x291860(0x3bd)](),_0x1b593c;}async[_0x228849(0x439)](_0x3f72b5){const _0x58f6d5=_0x228849,_0x3986c1=await this['_collabSessionService'][_0x58f6d5(0x3a3)](_0x3f72b5),_0xa0abeb=this[_0x58f6d5(0x28b)][_0x58f6d5(0x178)](_0x23d36a,_0x3f72b5,_0x3986c1);return _0xa0abeb[_0x58f6d5(0x3bd)](),_0xa0abeb;}};_0x1ed5eb=_0x52f132([_0x226a7e['OnLifecycle'](_0x226a7e[_0x228849(0x179)][_0x228849(0x31d)],_0x1ed5eb),_0x48838e(0x0,_0x226a7e[_0x228849(0x4aa)]),_0x48838e(0x1,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x48838e(0x2,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x192)]))],_0x1ed5eb);const _0x4a66ac=0x14,_0x4eb8eb=0xc8,_0x32ce78=0x4,_0x1db62e=0x5;function _0x1566f8(_0x36aa68,_0x56eee6){const _0x51db1d=_0x228849;let {radius:_0x9e38c0,width:_0x148e4f,height:_0x56d88e}=_0x56eee6;_0x9e38c0=_0x9e38c0!=null?_0x9e38c0:0x0,_0x148e4f=_0x148e4f!=null?_0x148e4f:0x1e,_0x56d88e=_0x56d88e!=null?_0x56d88e:0x1e;let _0xfa4394=0x0,_0x84a859=0x0,_0x37c151=0x0;_0xfa4394=_0x84a859=_0x37c151=Math[_0x51db1d(0x18a)](_0x9e38c0,_0x148e4f/0x2,_0x56d88e/0x2),_0x36aa68['beginPath'](),_0x36aa68[_0x51db1d(0x385)](_0xfa4394,0x0),_0x36aa68[_0x51db1d(0x2ad)](_0x148e4f-_0x84a859,0x0),_0x36aa68['arc'](_0x148e4f-_0x84a859,_0x84a859,_0x84a859,Math['PI']*0x3/0x2,0x0,!0x1),_0x36aa68[_0x51db1d(0x2ad)](_0x148e4f,_0x56d88e-_0x37c151),_0x36aa68['arc'](_0x148e4f-_0x37c151,_0x56d88e-_0x37c151,_0x37c151,0x0,Math['PI']/0x2,!0x1),_0x36aa68['lineTo'](0x0,_0x56d88e),_0x36aa68[_0x51db1d(0x2ad)](0x0,_0xfa4394),_0x36aa68[_0x51db1d(0x34a)](_0xfa4394,_0xfa4394,_0xfa4394,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x36aa68[_0x51db1d(0x211)](),_0x56eee6['fill']&&(_0x36aa68[_0x51db1d(0x1e0)](),_0x36aa68[_0x51db1d(0x4a9)]=_0x56eee6[_0x51db1d(0x44c)],_0x56eee6['fillRule']==='evenodd'?_0x36aa68[_0x51db1d(0x44c)](_0x51db1d(0x208)):_0x36aa68[_0x51db1d(0x44c)](),_0x36aa68[_0x51db1d(0x1a4)]());}class _0x548988 extends _0x5b613a[_0x228849(0x30a)]{constructor(_0x27a74f,_0x19bbdf){const _0x579404=_0x228849;super(_0x27a74f,_0x19bbdf),_0xaa2177(this,'color'),_0xaa2177(this,_0x579404(0x48c)),(this[_0x579404(0x4dc)]=_0x19bbdf==null?void 0x0:_0x19bbdf[_0x579404(0x4dc)],this['text']=_0x19bbdf==null?void 0x0:_0x19bbdf[_0x579404(0x48c)]);}static[_0x228849(0x322)](_0x3390e8,_0x36e0ea){const _0x4a4b0c=_0x228849,{text:_0x17c4ee,color:_0x369c17}=_0x36e0ea;_0x3390e8['save'](),_0x3390e8[_0x4a4b0c(0x305)]=_0x4a4b0c(0x3bf);const _0x4075b9=_0x3390e8[_0x4a4b0c(0x3c7)](_0x17c4ee)['width'],_0x41e0a2=Math[_0x4a4b0c(0x18a)](_0x4075b9+0x2*_0x32ce78,_0x4eb8eb);_0x1566f8(_0x3390e8,{'height':_0x4a66ac,'radius':0x4,'width':_0x41e0a2,'fill':_0x369c17,'evented':!0x1}),_0x3390e8['fillStyle']=_0x4a4b0c(0x233);const _0x210205=_0x32ce78,_0x2dc182=_0x4a66ac-_0x1db62e,_0x59b4cd=_0x4eb8eb-0x2*_0x32ce78;if(_0x4075b9>_0x59b4cd){let _0x406bc0='',_0x5d02a0=0x0;for(const _0x88d082 of _0x17c4ee){const _0x2d03a7=_0x3390e8[_0x4a4b0c(0x3c7)](_0x88d082)[_0x4a4b0c(0x20b)];if(_0x5d02a0+_0x2d03a7<=_0x59b4cd-_0x3390e8['measureText'](_0x4a4b0c(0x132))[_0x4a4b0c(0x20b)])_0x406bc0+=_0x88d082,_0x5d02a0+=_0x2d03a7;else{_0x406bc0+=_0x4a4b0c(0x132);break;}}_0x3390e8['fillText'](_0x406bc0,_0x210205,_0x2dc182);}else _0x3390e8[_0x4a4b0c(0x258)](_0x17c4ee,_0x210205,_0x2dc182);_0x3390e8[_0x4a4b0c(0x1a4)]();}[_0x228849(0x1ba)](_0x2120de){const _0x33f7c5=_0x228849;_0x548988[_0x33f7c5(0x322)](_0x2120de,this);}}const _0x21324e=0x1,_0x422286=1.5;class _0x17e6ba extends _0x5b613a[_0x228849(0x30a)]{constructor(_0x8760e9,_0x1138de){const _0x5255e6=_0x228849;super(_0x8760e9,_0x1138de),_0xaa2177(this,_0x5255e6(0x4f7)),_0xaa2177(this,'_hovered',!0x1),_0xaa2177(this,_0x5255e6(0x380)),_0xaa2177(this,'_name',''),_0xaa2177(this,'_labelPosition',_0x5255e6(0x43c)),(_0x1138de&&this[_0x5255e6(0x2fc)](_0x1138de),this['onPointerEnterObserver']['add'](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeaveObserver']['add'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x228849(0x2fc)](_0x348e20){const _0x443c24=_0x228849;var _0x26b8ba,_0x432efb,_0x47da9b,_0x3575f8,_0x36bc8e;this[_0x443c24(0x4f7)]=(_0x26b8ba=_0x348e20['color'])!=null?_0x26b8ba:this[_0x443c24(0x4f7)],this[_0x443c24(0x153)]=(_0x432efb=_0x348e20['hovered'])!=null?_0x432efb:this[_0x443c24(0x153)],this['_range']=(_0x47da9b=_0x348e20['range'])!=null?_0x47da9b:this[_0x443c24(0x380)],this[_0x443c24(0x27f)]=(_0x3575f8=_0x348e20[_0x443c24(0x268)])!=null?_0x3575f8:this[_0x443c24(0x27f)],this[_0x443c24(0x2bc)]=(_0x36bc8e=_0x348e20[_0x443c24(0x1bf)])!=null?_0x36bc8e:this[_0x443c24(0x2bc)],this[_0x443c24(0x267)]({'width':_0x348e20[_0x443c24(0x20b)],'height':_0x348e20[_0x443c24(0x180)]});}['onMouseMove'](_0x7089e1){const _0x230caf=_0x228849,{row:_0x890dc4,column:_0x50c9b3}=_0x7089e1;if(_0x890dc4>=this[_0x230caf(0x380)][_0x230caf(0x41b)]&&_0x890dc4<=this[_0x230caf(0x380)][_0x230caf(0x2fd)]&&_0x50c9b3>=this['_range'][_0x230caf(0x42e)]&&_0x50c9b3<=this[_0x230caf(0x380)][_0x230caf(0x492)]){this[_0x230caf(0x2fc)]({'hovered':!0x0});return;}this[_0x230caf(0x2fc)]({'hovered':!0x1});}[_0x228849(0x3de)](_0x573811){return!0x1;}[_0x228849(0x1ba)](_0x48b518){const _0x52b3ec=_0x228849;_0x5b613a[_0x52b3ec(0x47e)]['drawWith'](_0x48b518,{'width':this[_0x52b3ec(0x20b)],'height':this[_0x52b3ec(0x180)],'strokeWidth':_0x422286,'stroke':this[_0x52b3ec(0x4f7)],'evented':!0x1}),this[_0x52b3ec(0x153)]&&(_0x48b518['save'](),_0x48b518[_0x52b3ec(0x331)](0x1,0x0,0x0,0x1,this[_0x52b3ec(0x20b)],this[_0x52b3ec(0x2bc)]===_0x52b3ec(0x3fe)?0x0:-_0x4a66ac),_0x548988[_0x52b3ec(0x322)](_0x48b518,{'text':this[_0x52b3ec(0x27f)],'color':this['_color']}),_0x48b518[_0x52b3ec(0x1a4)]());}}var _0x2962f4=Object[_0x228849(0x1fc)],_0x1ed94a=Object[_0x228849(0x1b4)],_0x5a872f=(_0x3f90d0,_0x32f458,_0x956d75,_0x56c7a6)=>{const _0x525ce7=_0x228849;for(var _0x1021d3=_0x56c7a6>0x1?void 0x0:_0x56c7a6?_0x1ed94a(_0x32f458,_0x956d75):_0x32f458,_0x486d05=_0x3f90d0[_0x525ce7(0x430)]-0x1,_0x5e3ab2;_0x486d05>=0x0;_0x486d05--)(_0x5e3ab2=_0x3f90d0[_0x486d05])&&(_0x1021d3=(_0x56c7a6?_0x5e3ab2(_0x32f458,_0x956d75,_0x1021d3):_0x5e3ab2(_0x1021d3))||_0x1021d3);return _0x56c7a6&&_0x1021d3&&_0x2962f4(_0x32f458,_0x956d75,_0x1021d3),_0x1021d3;},_0x5cba14=(_0x42a66e,_0x369ae3)=>(_0x23f110,_0x3d2299)=>_0x369ae3(_0x23f110,_0x3d2299,_0x42a66e);let _0x7ed5d=class extends _0x226a7e[_0x228849(0x2ac)]{constructor(_0x5c7535,_0x28f412,_0x575157,_0x49a2a7){const _0x291253=_0x228849;super(),_0xaa2177(this,_0x291253(0x4bb),new Set()),_0xaa2177(this,_0x291253(0x3a9),null),(this[_0x291253(0x3c2)]=_0x5c7535,this[_0x291253(0x1ad)]=_0x28f412,this['_renderManagerService']=_0x575157,this['_themeService']=_0x49a2a7,this[_0x291253(0x285)]());}get[_0x228849(0x2c0)](){const _0x885a37=_0x228849;return this[_0x885a37(0x4c0)]['getRenderById'](this[_0x885a37(0x1ad)][_0x885a37(0x1e1)](_0x226a7e[_0x885a37(0x27d)][_0x885a37(0x390)])[_0x885a37(0x2d1)]())[_0x885a37(0x186)](_0x1a2a28[_0x885a37(0x3b3)]);}get[_0x228849(0x30b)](){const _0x407cf0=_0x228849;return this['_univerInstanceService']['getCurrentUnitForType'](_0x226a7e[_0x407cf0(0x27d)][_0x407cf0(0x390)])['getUnitId']();}[_0x228849(0x285)](){const _0x4baef5=_0x228849;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x4baef5(0x450)](_0x4d72f4[_0x4baef5(0x2e4)](this[_0x4baef5(0x1ec)]),_0x4d72f4[_0x4baef5(0x32d)](_0x306235=>{const _0xcbfd4c=_0x4baef5;if(_0x306235){const _0xf4e939=_0x306235['sheetId'];return _0x4e5e3f['combineLatest'](this['_collabCursorController'][_0xcbfd4c(0x254)](this[_0xcbfd4c(0x30b)]),this['_themeService'][_0xcbfd4c(0x301)])['pipe'](_0x4d72f4[_0xcbfd4c(0x4db)](([_0xacca2e,_0x1a852a])=>{const _0xf36e8a=_0xcbfd4c,_0x486021=new Map();return _0xacca2e[_0xf36e8a(0x3ad)]((_0x998205,_0x5707f9)=>{const _0x53cac0=_0xf36e8a;if(_0x998205[_0x53cac0(0x234)]===_0xf4e939){const _0x55e242={..._0x998205};_0x55e242[_0x53cac0(0x4dc)]=_0x1a852a[_0x998205[_0x53cac0(0x4dc)]],_0x486021['set'](_0x5707f9,_0x55e242);}}),{'skeleton':_0x306235,'cursors':_0x486021};}));}return _0x4e5e3f['of']({'skeleton':null,'cursors':new Map()});}))[_0x4baef5(0x22c)](({skeleton:_0x277814,cursors:_0x1b5b9b})=>{const _0x354ce9=_0x4baef5;this[_0x354ce9(0x1ed)](),_0x277814&&this['_updateCollabCursors'](_0x277814,_0x1b5b9b);}),this[_0x4baef5(0x2c0)][_0x4baef5(0x34d)][_0x4baef5(0x22c)](_0x23efbe=>{const _0x41b22c=_0x4baef5;if(_0x23efbe==null)return;const {skeleton:_0x2805fd}=_0x23efbe,_0x5841cb=this['_renderManagerService']['getRenderById'](this[_0x41b22c(0x30b)]),{scene:_0x2aeb04}=_0x5841cb;_0x2aeb04[_0x41b22c(0x4e6)]['add'](_0x270255(_0x3e79f1=>{const _0x3b7e25=_0x41b22c;var _0x2959be,_0x3c4090;const {offsetX:_0x1b3b9f,offsetY:_0x5721f9}=_0x3e79f1,{x:_0x4caf8e,y:_0x29427f}=_0x2aeb04[_0x3b7e25(0x353)](_0x5b613a[_0x3b7e25(0x2aa)][_0x3b7e25(0x3f9)]([_0x1b3b9f,_0x5721f9])),{scaleX:_0x364361,scaleY:_0x36865f}=_0x2aeb04[_0x3b7e25(0x190)](),_0x29e94c=_0x2aeb04[_0x3b7e25(0x206)](_0x1a2a28[_0x3b7e25(0x315)][_0x3b7e25(0x451)]),_0x3d1412=_0x2aeb04[_0x3b7e25(0x1a2)](_0x5b613a['Vector2'][_0x3b7e25(0x3f9)]([_0x4caf8e,_0x29427f]),_0x29e94c),_0x377c68=_0x2805fd[_0x3b7e25(0x3f0)](_0x1b3b9f,_0x5721f9,_0x364361,_0x36865f,_0x3d1412);((_0x2959be=this[_0x3b7e25(0x3a9)])==null?void 0x0:_0x2959be[_0x3b7e25(0x47d)])===_0x377c68[_0x3b7e25(0x47d)]&&((_0x3c4090=this['_lastPointer'])==null?void 0x0:_0x3c4090['row'])===_0x377c68[_0x3b7e25(0x444)]||this[_0x3b7e25(0x4bb)][_0x3b7e25(0x3ad)](_0x271b2f=>{_0x271b2f['onMouseMove'](_0x377c68);});},0x64));});}['_updateCollabCursors'](_0xca3589,_0x27a368){const _0x133963=_0x228849;var _0x307384;const _0x5cd0be=(_0x307384=this[_0x133963(0x2c0)][_0x133963(0x259)]())==null?void 0x0:_0x307384['skeleton'];if(!_0x5cd0be)return;const _0x387c5e=this[_0x133963(0x1bb)]();if(!_0x387c5e)return;this['_cursors'][_0x133963(0x3ad)](_0xa612a3=>{const _0x10b9cd=_0x133963;_0xa612a3[_0x10b9cd(0x1f3)]();});const {scene:_0xf3e0b1}=_0x387c5e,_0x6d256=_0x4d7979(Array[_0x133963(0x41c)](_0x27a368[_0x133963(0x2a5)]()))[_0x133963(0x4db)](_0x23b310=>{const _0xe21ce6=_0x133963,{color:_0x181d1f,range:_0x576e78,name:_0x184591,selection:_0x523571,sheetID:_0x22f210}=_0x23b310,{startColumn:_0x270935,startRow:_0x1049cb,endColumn:_0x5c184b,endRow:_0xbf488e}=_0x576e78,_0x5611f8=_0x1a2a28[_0xe21ce6(0x335)](_0x1049cb,_0x270935,_0xf3e0b1,_0x5cd0be),_0x2427a9=_0x1a2a28['getCoordByCell'](_0xbf488e,_0x5c184b,_0xf3e0b1,_0x5cd0be),{columnHeaderHeightAndMarginTop:_0x523f79}=_0x5cd0be,{startX:_0x10bfc6,startY:_0x196ce0}=_0x5611f8,{endX:_0xc78d04,endY:_0x2ef3a4}=_0x2427a9,_0x194040=_0xc78d04-_0x10bfc6,_0x9c917d=_0x2ef3a4-_0x196ce0,_0x21ccb4={'labelPosition':_0x196ce0-_0x523f79>=_0x4a66ac?_0xe21ce6(0x43c):_0xe21ce6(0x3fe),'sheetID':_0x22f210,'range':_0x576e78,'color':_0x181d1f,'name':_0x184591,'selection':_0x523571,'left':_0x10bfc6,'top':_0x196ce0,'width':_0x194040,'height':_0x9c917d,'evented':!0x1};return new _0x17e6ba(_0x184591,_0x21ccb4);});_0xf3e0b1[_0x133963(0x3a2)](_0x6d256,_0x21324e),this[_0x133963(0x4bb)]=new Set(_0x6d256);}[_0x228849(0x1ed)](){const _0x1482cf=_0x228849;var _0x487c61;(_0x487c61=this[_0x1482cf(0x4bb)])==null||_0x487c61[_0x1482cf(0x3ad)](_0x578e9d=>_0x578e9d[_0x1482cf(0x485)]());}[_0x228849(0x1bb)](){const _0x18a33b=_0x228849;return _0x1a2a28[_0x18a33b(0x364)](this[_0x18a33b(0x1ad)],this['_renderManagerService']);}};_0x7ed5d=_0x5a872f([_0x226a7e['OnLifecycle'](_0x226a7e[_0x228849(0x179)]['Steady'],_0x7ed5d),_0x5cba14(0x0,_0x49bc9[_0x228849(0x31c)](_0x1ed5eb)),_0x5cba14(0x1,_0x226a7e[_0x228849(0x4aa)]),_0x5cba14(0x2,_0x5b613a[_0x228849(0x4ac)]),_0x5cba14(0x3,_0x49bc9[_0x228849(0x31c)](_0x226a7e[_0x228849(0x201)]))],_0x7ed5d);function _0x4d7979(_0x4595e1){const _0x4ccf15=_0x228849,_0x550e1b=new Map();return _0x4595e1[_0x4ccf15(0x3ad)](_0x1aa886=>{const _0x1c4abc=_0x4ccf15;if(_0x550e1b['has'](_0x1aa886[_0x1c4abc(0x224)])){const _0x2dc464=_0x550e1b[_0x1c4abc(0x24c)](_0x1aa886[_0x1c4abc(0x224)]);_0x2dc464[_0x1c4abc(0x268)]+=',\x20'+_0x1aa886[_0x1c4abc(0x268)];}else _0x550e1b['set'](_0x1aa886[_0x1c4abc(0x224)],_0x1aa886);}),Array[_0x4ccf15(0x41c)](_0x550e1b[_0x4ccf15(0x2a5)]());}var _0x55a227=function(){return _0x55a227=Object['assign']||function(_0x2dfbc7){const _0x60f4a3=_0x572c;for(var _0x26da07,_0x3c95f3=0x1,_0x3bea7e=arguments[_0x60f4a3(0x430)];_0x3c95f3<_0x3bea7e;_0x3c95f3++){_0x26da07=arguments[_0x3c95f3];for(var _0x2b413d in _0x26da07)Object['prototype'][_0x60f4a3(0x223)][_0x60f4a3(0x3d8)](_0x26da07,_0x2b413d)&&(_0x2dfbc7[_0x2b413d]=_0x26da07[_0x2b413d]);}return _0x2dfbc7;},_0x55a227['apply'](this,arguments);},_0x5e9d41=function(_0x858f26,_0x1b9a70){const _0x53eebb=_0x228849;var _0x5bc732={};for(var _0x6ae6d8 in _0x858f26)Object[_0x53eebb(0x47b)]['hasOwnProperty'][_0x53eebb(0x3d8)](_0x858f26,_0x6ae6d8)&&_0x1b9a70[_0x53eebb(0x39a)](_0x6ae6d8)<0x0&&(_0x5bc732[_0x6ae6d8]=_0x858f26[_0x6ae6d8]);if(_0x858f26!=null&&typeof Object['getOwnPropertySymbols']==_0x53eebb(0x3e3)){for(var _0xc3b0cc=0x0,_0x6ae6d8=Object[_0x53eebb(0x22a)](_0x858f26);_0xc3b0cc<_0x6ae6d8[_0x53eebb(0x430)];_0xc3b0cc++)_0x1b9a70[_0x53eebb(0x39a)](_0x6ae6d8[_0xc3b0cc])<0x0&&Object[_0x53eebb(0x47b)]['propertyIsEnumerable'][_0x53eebb(0x3d8)](_0x858f26,_0x6ae6d8[_0xc3b0cc])&&(_0x5bc732[_0x6ae6d8[_0xc3b0cc]]=_0x858f26[_0x6ae6d8[_0xc3b0cc]]);}return _0x5bc732;},_0x45b96a=_0x53ebe1[_0x228849(0x235)](function(_0x3b763e,_0xb7a019){const _0x591d1c=_0x228849;var _0x2bb9b3=_0x3b763e['icon'],_0x1c5953=_0x3b763e['id'],_0x965ef=_0x3b763e['className'],_0x244b7c=_0x3b763e['extend'],_0x271e84=_0x5e9d41(_0x3b763e,['icon','id',_0x591d1c(0x219),_0x591d1c(0x480)]),_0x4e8d5a=_0x591d1c(0x236)[_0x591d1c(0x405)](_0x1c5953,'\x20')[_0x591d1c(0x405)](_0x965ef||'')[_0x591d1c(0x1ca)](),_0x1207ab=_0x53ebe1[_0x591d1c(0x15b)]('_'[_0x591d1c(0x405)](_0x296f64()));return _0x5f3d81(_0x2bb9b3,''[_0x591d1c(0x405)](_0x1c5953),{'defIds':_0x2bb9b3[_0x591d1c(0x45f)],'idSuffix':_0x1207ab[_0x591d1c(0x1f5)]},_0x55a227({'ref':_0xb7a019,'className':_0x4e8d5a},_0x271e84),_0x244b7c);});function _0x5f3d81(_0x161c2c,_0x450ed5,_0x3ef759,_0x3f4330,_0x5c464f){const _0x570343=_0x228849;return _0x53ebe1[_0x570343(0x436)](_0x161c2c[_0x570343(0x262)],_0x55a227(_0x55a227({'key':_0x450ed5},_0x5b7bb7(_0x161c2c,_0x3ef759,_0x5c464f)),_0x3f4330),(_0x37132d(_0x161c2c,_0x3ef759)['children']||[])[_0x570343(0x4db)](function(_0x248624,_0x4d2df4){const _0x479de5=_0x570343;return _0x5f3d81(_0x248624,''[_0x479de5(0x405)](_0x450ed5,'-')[_0x479de5(0x405)](_0x161c2c['tag'],'-')[_0x479de5(0x405)](_0x4d2df4),_0x3ef759,void 0x0,_0x5c464f);}));}function _0x5b7bb7(_0x57fc72,_0xd71d47,_0x4d4d99){const _0x244142=_0x228849;var _0x242cce=_0x55a227({},_0x57fc72['attrs']);_0x4d4d99!=null&&_0x4d4d99[_0x244142(0x2b8)]&&_0x242cce[_0x244142(0x44c)]===_0x244142(0x2b8)&&(_0x242cce[_0x244142(0x44c)]=_0x4d4d99['colorChannel1']);var _0x359174=_0xd71d47['defIds'];return!_0x359174||_0x359174[_0x244142(0x430)]===0x0||(_0x57fc72['tag']===_0x244142(0x149)&&_0x242cce[_0x244142(0x251)]&&(_0x242cce[_0x244142(0x251)]=_0x242cce[_0x244142(0x251)]+_0xd71d47[_0x244142(0x308)]),Object[_0x244142(0x4bf)](_0x242cce)['forEach'](function(_0xffa0ba){const _0x2c186f=_0x244142;var _0x16fa32=_0xffa0ba[0x0],_0x1f3f70=_0xffa0ba[0x1];typeof _0x1f3f70==_0x2c186f(0x1a8)&&(_0x242cce[_0x16fa32]=_0x1f3f70[_0x2c186f(0x281)](/url\(#(.*)\)/,_0x2c186f(0x25b)['concat'](_0xd71d47[_0x2c186f(0x308)],')')));})),_0x242cce;}function _0x37132d(_0x47e736,_0x249593){const _0x4fb3d9=_0x228849;var _0x9f0345,_0x575e00=_0x249593[_0x4fb3d9(0x45f)];return!_0x575e00||_0x575e00[_0x4fb3d9(0x430)]===0x0?_0x47e736:_0x47e736['tag']===_0x4fb3d9(0x1f6)&&(!((_0x9f0345=_0x47e736[_0x4fb3d9(0x46d)])===null||_0x9f0345===void 0x0)&&_0x9f0345[_0x4fb3d9(0x430)])?_0x55a227(_0x55a227({},_0x47e736),{'children':_0x47e736[_0x4fb3d9(0x46d)][_0x4fb3d9(0x4db)](function(_0x3a9333){const _0x3a37a3=_0x4fb3d9;return typeof _0x3a9333['attrs']['id']==_0x3a37a3(0x1a8)&&_0x575e00&&_0x575e00[_0x3a37a3(0x39a)](_0x3a9333[_0x3a37a3(0x252)]['id'])>-0x1?_0x55a227(_0x55a227({},_0x3a9333),{'attrs':_0x55a227(_0x55a227({},_0x3a9333['attrs']),{'id':_0x3a9333['attrs']['id']+_0x249593[_0x3a37a3(0x308)]})}):_0x3a9333;})}):_0x47e736;}function _0x296f64(){const _0x4fb737=_0x228849;return Math[_0x4fb737(0x14c)]()[_0x4fb737(0x31a)](0x24)['substring'](0x2,0x8);}_0x45b96a[_0x228849(0x4e3)]=_0x228849(0x13d);var _0x1cacce={'tag':_0x228849(0x17c),'attrs':{'fill':_0x228849(0x3ae),'viewBox':_0x228849(0x3b4),'width':_0x228849(0x245),'height':_0x228849(0x245)},'children':[{'tag':'g','attrs':{'clipPath':_0x228849(0x31f)},'children':[{'tag':'path','attrs':{'stroke':_0x228849(0x4b9),'d':_0x228849(0x37e),'strokeLinecap':_0x228849(0x314),'strokeLinejoin':_0x228849(0x314),'strokeWidth':1.2}}]},{'tag':_0x228849(0x1f6),'attrs':{},'children':[{'tag':_0x228849(0x1b8),'attrs':{'id':_0x228849(0x221)},'children':[{'tag':_0x228849(0x2d2),'attrs':{'fill':_0x228849(0x370),'d':_0x228849(0x3ba)}}]}]}],'defIds':['off-line-single_clip0_910_343']},_0x153d57=_0x53ebe1[_0x228849(0x235)](function(_0x5726b6,_0x3051ee){const _0x192473=_0x228849;return _0x53ebe1[_0x192473(0x436)](_0x45b96a,Object[_0x192473(0x2fb)]({},_0x5726b6,{'id':'off-line-single','ref':_0x3051ee,'icon':_0x1cacce}));});_0x153d57['displayName']='OffLineSingle';var _0x27b51d={'tag':'svg','attrs':{'fill':_0x228849(0x3ae),'viewBox':_0x228849(0x343),'width':_0x228849(0x245),'height':_0x228849(0x245)},'children':[{'tag':'g','attrs':{'clipPath':_0x228849(0x4b0)},'children':[{'tag':'path','attrs':{'stroke':_0x228849(0x4b9),'d':_0x228849(0x466),'strokeLinecap':_0x228849(0x314),'strokeLinejoin':_0x228849(0x314),'strokeWidth':1.2}}]},{'tag':_0x228849(0x1f6),'attrs':{},'children':[{'tag':_0x228849(0x1b8),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x228849(0x2d2),'attrs':{'fill':_0x228849(0x370),'d':_0x228849(0x3ba),'transform':_0x228849(0x349)}}]}]}],'defIds':[_0x228849(0x469)]},_0x5d5fb5=_0x53ebe1[_0x228849(0x235)](function(_0x336a3c,_0x49bfba){const _0x103179=_0x228849;return _0x53ebe1[_0x103179(0x436)](_0x45b96a,Object[_0x103179(0x2fb)]({},_0x336a3c,{'id':_0x103179(0x404),'ref':_0x49bfba,'icon':_0x27b51d}));});_0x5d5fb5[_0x228849(0x4e3)]=_0x228849(0x3ea);const _0x4f39b2={'onlineStatusIcon':_0x228849(0x49e),'onlineStatusTitle':_0x228849(0x3cd),'onlineStatus':_0x228849(0x421),'online':_0x228849(0x3a5),'offline':_0x228849(0x167)};function _0x2a03b0(_0x49fda4){const _0x34ed16=_0x228849;switch(_0x49fda4){case _0x4577df['OFFLINE']:return _0x34ed16(0x4b2);case _0x4577df['CONFLICT']:return _0x34ed16(0x264);case _0x4577df[_0x34ed16(0x3d5)]:return _0x34ed16(0x426);case _0x4577df[_0x34ed16(0x4e8)]:return'collabStatus.notCollab';case _0x4577df[_0x34ed16(0x44f)]:case _0x4577df[_0x34ed16(0x1b3)]:case _0x4577df[_0x34ed16(0x19c)]:return _0x34ed16(0x28d);case _0x4577df['SYNCED']:return'collabStatus.synced';}}function _0x10b395(_0x4394da){const _0x17dfe5=_0x228849,{status$:_0x2e943b}=_0x4394da,_0x17bd3f=_0x15005b[_0x17dfe5(0x43a)](_0x2e943b,_0x4577df[_0x17dfe5(0x4e8)]),_0x3a6f8b=_0x3c1409[_0x17dfe5(0x12d)](_0x226a7e[_0x17dfe5(0x355)]),_0x5dff16=_0x17bd3f!==_0x4577df[_0x17dfe5(0x26d)],_0x3ed565=_0x3a6f8b['t'](_0x2a03b0(_0x17bd3f)),_0x5024ff=_0xb8caad(_0x4f39b2[_0x17dfe5(0x3d4)],{[_0x4f39b2[_0x17dfe5(0x4cd)]]:_0x5dff16,[_0x4f39b2[_0x17dfe5(0x297)]]:!_0x5dff16}),_0x1e25ca=_0x5dff16?_0x53ebe1[_0x17dfe5(0x436)](_0x5d5fb5,null):_0x53ebe1['createElement'](_0x153d57,null);return _0x53ebe1[_0x17dfe5(0x436)](_0x17dfe5(0x4af),{'className':_0x5024ff},_0x53ebe1[_0x17dfe5(0x436)]('div',{'className':_0x4f39b2[_0x17dfe5(0x1b0)]},_0x1e25ca),_0x53ebe1['createElement'](_0x17dfe5(0x4af),{'className':_0x4f39b2[_0x17dfe5(0x19f)]},_0x3ed565));}var _0x3574b5=Object['defineProperty'],_0x1acfd1=Object[_0x228849(0x1b4)],_0x165386=(_0x2b37db,_0x5ed972,_0x2f7e87,_0x34a6ad)=>{for(var _0x10c5fd=_0x34a6ad>0x1?void 0x0:_0x34a6ad?_0x1acfd1(_0x5ed972,_0x2f7e87):_0x5ed972,_0x2e3c15=_0x2b37db['length']-0x1,_0x597063;_0x2e3c15>=0x0;_0x2e3c15--)(_0x597063=_0x2b37db[_0x2e3c15])&&(_0x10c5fd=(_0x34a6ad?_0x597063(_0x5ed972,_0x2f7e87,_0x10c5fd):_0x597063(_0x10c5fd))||_0x10c5fd);return _0x34a6ad&&_0x10c5fd&&_0x3574b5(_0x5ed972,_0x2f7e87,_0x10c5fd),_0x10c5fd;},_0x16193c=(_0x4affc0,_0x43f8ec)=>(_0x8a5b98,_0x3318ff)=>_0x43f8ec(_0x8a5b98,_0x3318ff,_0x4affc0);_0x431c6f['DesktopCollaborationStatusDisplayController']=class extends _0x226a7e[_0x228849(0x484)]{constructor(_0x3b2da7,_0x3fef30,_0xe46040,_0x442d96){const _0x5e2f6b=_0x228849;super(),_0xaa2177(this,_0x5e2f6b(0x3ee),new _0x4e5e3f[(_0x5e2f6b(0x2e7))](_0x4577df['NOT_COLLAB'])),(this[_0x5e2f6b(0x1ad)]=_0x3b2da7,this[_0x5e2f6b(0x3d6)]=_0x3fef30,this[_0x5e2f6b(0x28b)]=_0xe46040,this[_0x5e2f6b(0x318)]=_0x442d96,this[_0x5e2f6b(0x4d0)](),this['_initStatusListener']());}[_0x228849(0x4d0)](){const _0x1bcdae=_0x228849;this[_0x1bcdae(0x231)](this[_0x1bcdae(0x3d6)][_0x1bcdae(0x3fb)](_0x15005b[_0x1bcdae(0x31e)][_0x1bcdae(0x191)],()=>_0x3c1409[_0x1bcdae(0x33a)](_0x20ec41({'status$':this['_status$'][_0x1bcdae(0x1fe)]()}),this[_0x1bcdae(0x28b)])));}[_0x228849(0x387)](){const _0xf467f5=_0x228849;this[_0xf467f5(0x231)](_0x226a7e['toDisposable'](this[_0xf467f5(0x1ad)][_0xf467f5(0x1c0)][_0xf467f5(0x450)](_0x4e5e3f['switchMap'](()=>{const _0x14a312=_0xf467f5,_0x1e2c8f=this[_0x14a312(0x1ad)]['getFocusedUnit']();return _0x1e2c8f?this[_0x14a312(0x318)][_0x14a312(0x40d)](_0x1e2c8f[_0x14a312(0x2d1)]()):_0x4e5e3f['of'](null);}),_0x4e5e3f['switchMap'](_0xa31bc0=>_0xa31bc0?_0xa31bc0[_0xf467f5(0x168)]:_0x4e5e3f['of'](_0x4577df['NOT_COLLAB'])))[_0xf467f5(0x22c)](_0x5e7fe5=>{const _0x324dd0=_0xf467f5;this[_0x324dd0(0x3ee)][_0x324dd0(0x488)](_0x5e7fe5);})));}},_0x431c6f[_0x228849(0x422)]=_0x165386([_0x226a7e[_0x228849(0x4f0)](_0x226a7e[_0x228849(0x179)][_0x228849(0x31d)],_0x431c6f[_0x228849(0x422)]),_0x16193c(0x0,_0x226a7e['IUniverInstanceService']),_0x16193c(0x1,_0x15005b[_0x228849(0x21a)]),_0x16193c(0x2,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x16193c(0x3,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x2cb)]))],_0x431c6f[_0x228849(0x422)]);function _0x20ec41(_0xe67217){const {status$:_0x4a4d0b}=_0xe67217;return function(){const _0x4a4755=_0x572c;return _0x53ebe1[_0x4a4755(0x436)](_0x10b395,{'status$':_0x4a4d0b});};}const _0x445d9f=_0x49bc9[_0x228849(0x175)](_0x228849(0x2df));var _0x5dc4d8=Object[_0x228849(0x1fc)],_0x5226f4=Object[_0x228849(0x1b4)],_0x5bdb34=(_0x3c1dbf,_0x3ec1bd,_0x42dcd7,_0x33cca7)=>{const _0x3509d8=_0x228849;for(var _0x2bc739=_0x33cca7>0x1?void 0x0:_0x33cca7?_0x5226f4(_0x3ec1bd,_0x42dcd7):_0x3ec1bd,_0x2d4220=_0x3c1dbf[_0x3509d8(0x430)]-0x1,_0x1fa549;_0x2d4220>=0x0;_0x2d4220--)(_0x1fa549=_0x3c1dbf[_0x2d4220])&&(_0x2bc739=(_0x33cca7?_0x1fa549(_0x3ec1bd,_0x42dcd7,_0x2bc739):_0x1fa549(_0x2bc739))||_0x2bc739);return _0x33cca7&&_0x2bc739&&_0x5dc4d8(_0x3ec1bd,_0x42dcd7,_0x2bc739),_0x2bc739;},_0x1baa29=(_0x344342,_0x5bbb33)=>(_0x47fc9c,_0x40f1b5)=>_0x5bbb33(_0x47fc9c,_0x40f1b5,_0x344342);_0x431c6f['DataLoaderController']=class extends _0x226a7e[_0x228849(0x2ac)]{constructor(_0x27ec9c,_0x1b712e,_0x530a33,_0x533e12,_0x332585,_0x4b5348){const _0x4f5162=_0x228849;super(),this[_0x4f5162(0x2a4)]=_0x27ec9c,this[_0x4f5162(0x464)]=_0x1b712e,this['_commandService']=_0x530a33,this[_0x4f5162(0x3ef)]=_0x533e12,this[_0x4f5162(0x4d6)]=_0x332585,_0x4b5348?_0x4b5348==null||_0x4b5348[_0x4f5162(0x358)]()[_0x4f5162(0x1ae)](()=>this['_init']()):(this['_logService'][_0x4f5162(0x434)](_0x4f5162(0x40e),_0x4f5162(0x2b2)),this[_0x4f5162(0x285)]());}async[_0x228849(0x285)](){const _0x3b11bc=_0x228849,_0x36e5a6=this[_0x3b11bc(0x2a4)][_0x3b11bc(0x1ac)](_0x3b11bc(0x43b)),_0x19c3a1=this[_0x3b11bc(0x2a4)]['getParam'](_0x3b11bc(0x354));if(!_0x36e5a6||!_0x19c3a1){this['_logService'][_0x3b11bc(0x434)]('[DataLoaderController]',_0x3b11bc(0x145));return;}switch(Number(_0x19c3a1)){case _0xf0e06f[_0x3b11bc(0x390)]:{const _0x3e82f6=await this[_0x3b11bc(0x2e2)](_0x36e5a6);this['_setupSubUnitSync'](_0x3e82f6);break;}case _0xf0e06f['UNIVER_DOC']:{await this[_0x3b11bc(0x316)](_0x36e5a6);break;}default:{this[_0x3b11bc(0x464)][_0x3b11bc(0x24e)](_0x3b11bc(0x40e),_0x3b11bc(0x4e7));break;}}}async['_setupSubUnitSync'](_0x2f0498){const _0x45945d=_0x228849;await this[_0x45945d(0x438)](_0x2f0498),_0x2f0498[_0x45945d(0x2a7)]['pipe'](_0x4e5e3f[_0x45945d(0x2e4)](this[_0x45945d(0x1ec)]))[_0x45945d(0x22c)](_0x5d96f2=>{const _0x4781dd=_0x45945d;_0x5d96f2&&this[_0x4781dd(0x2c2)](_0x5d96f2);}),this[_0x45945d(0x2a4)][_0x45945d(0x1d2)][_0x45945d(0x450)](_0x4e5e3f['takeUntil'](this[_0x45945d(0x1ec)]))[_0x45945d(0x22c)](()=>this['_updateSubUnitFromURLParams'](_0x2f0498));}[_0x228849(0x2c2)](_0x2b7dba,_0x5139ba=!0x1){const _0x2628ea=_0x228849,_0x1c23b5=this[_0x2628ea(0x2a4)]['getParam'](_0x2628ea(0x288));_0x2b7dba[_0x2628ea(0x1a6)]()!==_0x1c23b5&&this[_0x2628ea(0x2a4)]['setParam'](_0x2628ea(0x288),_0x2b7dba[_0x2628ea(0x1a6)](),_0x5139ba);}async[_0x228849(0x438)](_0x1eb3c5){const _0x5e52d2=_0x228849,_0x41e33e=this[_0x5e52d2(0x2a4)][_0x5e52d2(0x1ac)](_0x5e52d2(0x288));if(!_0x41e33e||!_0x1eb3c5[_0x5e52d2(0x140)](_0x41e33e)){this[_0x5e52d2(0x2c2)](_0x1eb3c5[_0x5e52d2(0x4a3)](),!0x0);return;}_0x1eb3c5[_0x5e52d2(0x4a3)]()[_0x5e52d2(0x1a6)]()!==_0x41e33e&&await this[_0x5e52d2(0x4b6)][_0x5e52d2(0x12c)](_0x3acf4c[_0x5e52d2(0x2dc)]['id'],{'unitId':_0x1eb3c5['getUnitId'](),'subUnitId':_0x41e33e});}async[_0x228849(0x2e2)](_0x446d35){const _0x242ae0=_0x228849;let _0x18cb66=0x0;const _0x329041=await this[_0x242ae0(0x3ef)][_0x242ae0(0x33c)](_0x446d35);return _0x329041&&(_0x329041[_0x242ae0(0x27a)]||_0x329041[_0x242ae0(0x357)][_0x242ae0(0x430)]!==0x0)&&(_0x18cb66=_0x329041['rev']),_0x18cb66===0x0&&this[_0x242ae0(0x464)][_0x242ae0(0x434)](_0x242ae0(0x40e),_0x242ae0(0x1ef)),this[_0x242ae0(0x4d6)]['loadSheet'](_0x446d35,_0x18cb66);}async['_loadDoc'](_0x4954c7){const _0x410f53=_0x228849;let _0x717872=0x0;const _0x464787=await this['_localCacheService']['loadOfflineData'](_0x4954c7);return _0x464787&&(_0x464787[_0x410f53(0x27a)]||_0x464787[_0x410f53(0x357)][_0x410f53(0x430)]!==0x0)&&(_0x717872=_0x464787[_0x410f53(0x43d)]),_0x717872===0x0&&this[_0x410f53(0x464)][_0x410f53(0x434)]('[DataLoaderController]',_0x410f53(0x1ef)),this[_0x410f53(0x4d6)]['loadDoc'](_0x4954c7,_0x717872);}},_0x431c6f['DataLoaderController']=_0x5bdb34([_0x226a7e['OnLifecycle'](_0x226a7e['LifecycleStages']['Starting'],_0x431c6f['DataLoaderController']),_0x1baa29(0x0,_0x445d9f),_0x1baa29(0x1,_0x226a7e['ILogService']),_0x1baa29(0x2,_0x226a7e[_0x228849(0x48f)]),_0x1baa29(0x3,_0x49bc9['Inject'](_0x431c6f[_0x228849(0x361)])),_0x1baa29(0x4,_0x49bc9['Inject'](_0x1e8c75[_0x228849(0x35e)])),_0x1baa29(0x5,_0x49bc9[_0x228849(0x195)](_0x5cea30['IRemoteInstanceService']))],_0x431c6f[_0x228849(0x276)]);var _0xa1ed34=Object[_0x228849(0x1fc)],_0x2e14a9=Object[_0x228849(0x1b4)],_0x392950=(_0x474cef,_0x371d18,_0xdf4b14,_0x31c5f4)=>{const _0x2b111e=_0x228849;for(var _0x1d4622=_0x31c5f4>0x1?void 0x0:_0x31c5f4?_0x2e14a9(_0x371d18,_0xdf4b14):_0x371d18,_0x3c5f4c=_0x474cef[_0x2b111e(0x430)]-0x1,_0x22faa3;_0x3c5f4c>=0x0;_0x3c5f4c--)(_0x22faa3=_0x474cef[_0x3c5f4c])&&(_0x1d4622=(_0x31c5f4?_0x22faa3(_0x371d18,_0xdf4b14,_0x1d4622):_0x22faa3(_0x1d4622))||_0x1d4622);return _0x31c5f4&&_0x1d4622&&_0xa1ed34(_0x371d18,_0xdf4b14,_0x1d4622),_0x1d4622;},_0xb3d37c=(_0x55e80d,_0x6959dd)=>(_0x1f7d22,_0x37294a)=>_0x6959dd(_0x1f7d22,_0x37294a,_0x55e80d);const _0x2e1ac0='DEFAULT_FILE_NAME',_0xec1139=_0x228849(0x1ab);let _0x46b6ae=class extends _0x226a7e[_0x228849(0x484)]{constructor(_0x4b7407,_0x4d92f5){const _0x46d9bf=_0x228849;super(),this[_0x46d9bf(0x1ad)]=_0x4b7407,this[_0x46d9bf(0x12b)]=_0x4d92f5,this[_0x46d9bf(0x285)]();}[_0x228849(0x285)](){const _0x180346=_0x228849;this[_0x180346(0x231)](_0x226a7e[_0x180346(0x14b)](this[_0x180346(0x1ad)]['focused$'][_0x180346(0x22c)](()=>{const _0x5535b0=_0x180346;var _0x12a967;const _0x4e9b5f=this[_0x5535b0(0x1ad)][_0x5535b0(0x43f)]();let _0x17bb73=(_0x12a967=this[_0x5535b0(0x12b)][_0x5535b0(0x176)](_0x2e1ac0))!=null?_0x12a967:_0xec1139;_0x4e9b5f instanceof _0x226a7e[_0x5535b0(0x131)]&&(_0x17bb73=_0x4e9b5f[_0x5535b0(0x268)]),document['title']=_0x17bb73;})));}};_0x46b6ae=_0x392950([_0x226a7e[_0x228849(0x4f0)](_0x226a7e[_0x228849(0x179)]['Ready'],_0x46b6ae),_0xb3d37c(0x0,_0x226a7e['IUniverInstanceService']),_0xb3d37c(0x1,_0x226a7e['IConfigService'])],_0x46b6ae);var _0x3ddb2b=Object[_0x228849(0x1fc)],_0x14c7b8=Object[_0x228849(0x1b4)],_0x32d0cd=(_0x3b7718,_0x479dde,_0x42e135,_0x46492c)=>{const _0x2d5bec=_0x228849;for(var _0xc4a6e5=_0x46492c>0x1?void 0x0:_0x46492c?_0x14c7b8(_0x479dde,_0x42e135):_0x479dde,_0x19b262=_0x3b7718[_0x2d5bec(0x430)]-0x1,_0x57a509;_0x19b262>=0x0;_0x19b262--)(_0x57a509=_0x3b7718[_0x19b262])&&(_0xc4a6e5=(_0x46492c?_0x57a509(_0x479dde,_0x42e135,_0xc4a6e5):_0x57a509(_0xc4a6e5))||_0xc4a6e5);return _0x46492c&&_0xc4a6e5&&_0x3ddb2b(_0x479dde,_0x42e135,_0xc4a6e5),_0xc4a6e5;},_0x368dde=(_0x7676c8,_0x8d6834)=>(_0x4e6051,_0x3d8429)=>_0x8d6834(_0x4e6051,_0x3d8429,_0x7676c8);let _0x5b8358=class{constructor(_0x158854,_0x86da64){const _0x5c492d=_0x228849;this[_0x5c492d(0x12b)]=_0x158854,this[_0x5c492d(0x412)]=_0x86da64;}async[_0x228849(0x4ae)](_0x319fc0,_0x4db211){const _0x3f9a10=_0x228849;var _0x47e176;const {unitID:_0x609245,type:_0x4de80f,revision:_0x396da3=0x0}=_0x4db211,_0x54b4c8=this[_0x3f9a10(0x16e)]()+'/'+_0x4de80f+_0x3f9a10(0x137)+_0x609245+_0x3f9a10(0x3d1)+(_0x396da3===0x1?0x0:_0x396da3),_0x36d0cf=(await this['_httpService'][_0x3f9a10(0x24c)](_0x54b4c8))[_0x3f9a10(0x161)],_0x74c8d1=(_0x47e176=_0x36d0cf[_0x3f9a10(0x3ed)])==null?void 0x0:_0x47e176[_0x3f9a10(0x46e)];if(_0x74c8d1){const _0x32fd02=_0x74c8d1==null?void 0x0:_0x74c8d1['originalMeta'],_0x1458d4=_0x226a7e[_0x3f9a10(0x467)]['encode'](_0x226a7e[_0x3f9a10(0x214)](_0x32fd02));_0x74c8d1['originalMeta']=_0x1458d4,Object['entries'](_0x74c8d1[_0x3f9a10(0x1cf)])[_0x3f9a10(0x3ad)](([,_0x391ef1])=>{const _0x1ba697=_0x3f9a10,_0x491bcd=_0x391ef1[_0x1ba697(0x21c)],_0x5ce211=_0x226a7e[_0x1ba697(0x467)][_0x1ba697(0x319)](_0x226a7e[_0x1ba697(0x214)](_0x491bcd));_0x391ef1['originalMeta']=_0x5ce211;});}return _0x36d0cf;}async[_0x228849(0x4be)](_0x5bc46e,_0x258a96){const _0x537453=_0x228849,{unitID:_0x29e896,type:_0x2bc4cb,blockID:_0x286bbd}=_0x258a96,_0x4aa6a3=this['_getAPIPrefix']()+'/'+_0x2bc4cb+_0x537453(0x137)+_0x29e896+_0x537453(0x246)+_0x286bbd;return(await this[_0x537453(0x412)][_0x537453(0x24c)](_0x4aa6a3))[_0x537453(0x161)];}async['fetchMissingChangesets'](_0x4dfd90,_0x3cb5bd){const _0x36a1df=_0x228849,{unitID:_0x328906,type:_0x962ad4,from:_0x1e0f7d,to:_0x2884f2}=_0x3cb5bd,_0x1982c1=this[_0x36a1df(0x431)]()+'/'+_0x962ad4+_0x36a1df(0x137)+_0x328906+'/fetchmissing?from='+_0x1e0f7d+_0x36a1df(0x16f)+_0x2884f2;return(await this['_httpService']['get'](_0x1982c1))[_0x36a1df(0x161)];}[_0x228849(0x16e)](){const _0x13e9ae=_0x228849;var _0x378cf2;return(_0x378cf2=this[_0x13e9ae(0x12b)][_0x13e9ae(0x176)](_0x2e8975))!=null?_0x378cf2:this[_0x13e9ae(0x431)]();}[_0x228849(0x431)](){const _0x151f8c=_0x228849;var _0x132d46;return(_0x132d46=this[_0x151f8c(0x12b)][_0x151f8c(0x176)](_0x299079))!=null?_0x132d46:_0x22538d;}async[_0x228849(0x23a)](_0x2a7c73,_0x9a29fe){const _0x56d0a9=_0x228849,_0x58acbf='/universer-api/snapshot/'+_0x9a29fe[_0x56d0a9(0x354)]+_0x56d0a9(0x137)+_0x9a29fe[_0x56d0a9(0x340)]+'/resources';return(await this[_0x56d0a9(0x412)]['get'](_0x58acbf,{'params':{'resourceId':JSON[_0x56d0a9(0x1d4)](_0x9a29fe[_0x56d0a9(0x407)])}}))[_0x56d0a9(0x161)];}['saveSnapshot'](){const _0x2142df=_0x228849;throw new Error(_0x2142df(0x37f));}[_0x228849(0x4fb)](){const _0x3d6b04=_0x228849;throw new Error(_0x3d6b04(0x37f));}[_0x228849(0x3fc)](){const _0x1a2a54=_0x228849;throw new Error(_0x1a2a54(0x37f));}};_0x5b8358=_0x32d0cd([_0x368dde(0x0,_0x226a7e[_0x228849(0x26f)]),_0x368dde(0x1,_0x49bc9[_0x228849(0x31c)](_0x353e30['HTTPService']))],_0x5b8358);var _0xd63962=Object[_0x228849(0x1fc)],_0xf263cc=Object[_0x228849(0x1b4)],_0x4a6f2b=(_0x4ed324,_0x496634,_0x470f7d,_0x201f5c)=>{const _0x3dbb5a=_0x228849;for(var _0x28f82c=_0x201f5c>0x1?void 0x0:_0x201f5c?_0xf263cc(_0x496634,_0x470f7d):_0x496634,_0x43141c=_0x4ed324[_0x3dbb5a(0x430)]-0x1,_0x1d026e;_0x43141c>=0x0;_0x43141c--)(_0x1d026e=_0x4ed324[_0x43141c])&&(_0x28f82c=(_0x201f5c?_0x1d026e(_0x496634,_0x470f7d,_0x28f82c):_0x1d026e(_0x28f82c))||_0x28f82c);return _0x201f5c&&_0x28f82c&&_0xd63962(_0x496634,_0x470f7d,_0x28f82c),_0x28f82c;},_0x2340e7=(_0x4ae0d3,_0x52e4a8)=>(_0x1d4fee,_0x3841d8)=>_0x52e4a8(_0x1d4fee,_0x3841d8,_0x4ae0d3);let _0x370e1f=class extends _0x226a7e[_0x228849(0x291)]{constructor(_0x562474,_0x5bada9,_0x255f59,_0x1c6f94,_0x1550a4){const _0x28f936=_0x228849;super(_0x562474,_0x5bada9,_0x255f59),this[_0x28f936(0x1b9)]=_0x1c6f94,this[_0x28f936(0x464)]=_0x1550a4;}[_0x228849(0x4f4)](_0x4f5608,_0x1a725c){const _0x2389a7=_0x228849,_0x47b117=this['_getUndoStack'](_0x4f5608);if(_0x47b117)try{const _0x49742a=this[_0x2389a7(0x1a3)](_0x47b117,_0x1a725c);this[_0x2389a7(0x2bd)](_0x4f5608,_0x49742a);}catch(_0x1cbd9a){this[_0x2389a7(0x464)][_0x2389a7(0x24e)](_0x2389a7(0x284),_0x1cbd9a),this[_0x2389a7(0x458)](_0x4f5608);}const _0x44751b=this[_0x2389a7(0x4d4)](_0x4f5608);if(_0x44751b)try{const _0x27dbc6=this['_transformStack'](_0x44751b,_0x1a725c);this[_0x2389a7(0x49d)](_0x4f5608,_0x27dbc6);}catch(_0x5e81eb){this[_0x2389a7(0x464)][_0x2389a7(0x24e)](_0x5e81eb),this[_0x2389a7(0x209)](_0x4f5608);}}[_0x228849(0x458)](_0x4b4a55){const _0x33115f=_0x228849,_0x520c40=this[_0x33115f(0x19a)](_0x4b4a55);_0x520c40&&(_0x520c40[_0x33115f(0x430)]=0x0,this[_0x33115f(0x1c2)]());}['_clearRedo'](_0x32464d){const _0x5606c1=_0x228849,_0x3d0c0b=this[_0x5606c1(0x4d4)](_0x32464d);_0x3d0c0b&&(_0x3d0c0b['length']=0x0,this[_0x5606c1(0x1c2)]());}[_0x228849(0x2bd)](_0x4994c6,_0x5adf79){const _0x5f2bfa=_0x228849;this[_0x5f2bfa(0x36b)]['set'](_0x4994c6,_0x5adf79),this[_0x5f2bfa(0x1c2)]();}[_0x228849(0x49d)](_0x4d99c4,_0x3d1ec8){const _0x87e07f=_0x228849;this[_0x87e07f(0x36f)][_0x87e07f(0x4f3)](_0x4d99c4,_0x3d1ec8),this['_updateStatus']();}[_0x228849(0x1a3)](_0x5207e2,_0x5ca2ed){const _0x115c8d=_0x228849,_0x32856b=[];let _0x20b436=_0x5ca2ed,_0x1227e9=_0x5ca2ed;for(let _0x46178a=_0x5207e2[_0x115c8d(0x430)]-0x1;_0x46178a>=0x0;_0x46178a--){const {unitID:_0x421c7c,undoMutations:_0x3e1e2a,redoMutations:_0x2eee45}=_0x5207e2[_0x46178a],_0x16411a=this[_0x115c8d(0x1b9)][_0x115c8d(0x2dd)](_0x20b436,_0x3e1e2a),_0x1d6e61=this[_0x115c8d(0x1b9)][_0x115c8d(0x2dd)](_0x1227e9,_0x2eee45);if(_0x1e8c75[_0x115c8d(0x307)](_0x16411a)||_0x1e8c75['isTransformMutationsWithChangesetFailure'](_0x1d6e61)){this['_logService'][_0x115c8d(0x24e)](_0x115c8d(0x284),_0x115c8d(0x463),_0x16411a,_0x1d6e61);break;}_0x20b436=_0x16411a['c1Prime'],_0x1227e9=_0x1d6e61['c1Prime'],_0x32856b[_0x115c8d(0x4cb)]({'unitID':_0x421c7c,'undoMutations':_0x16411a[_0x115c8d(0x260)],'redoMutations':_0x1d6e61['m2Prime']});}return _0x32856b['reverse']();}};_0x370e1f=_0x4a6f2b([_0x2340e7(0x0,_0x226a7e['IUniverInstanceService']),_0x2340e7(0x1,_0x226a7e[_0x228849(0x48f)]),_0x2340e7(0x2,_0x226a7e['IContextService']),_0x2340e7(0x3,_0x1e8c75[_0x228849(0x184)]),_0x2340e7(0x4,_0x226a7e[_0x228849(0x212)])],_0x370e1f);class _0x3ceb40 extends _0x226a7e[_0x228849(0x2ac)]{constructor(){const _0x3395e1=_0x228849;super(),_0xaa2177(this,_0x3395e1(0x1d2)),this['urlChange$']=_0x4e5e3f['fromEvent'](window,_0x3395e1(0x18c))[_0x3395e1(0x450)](_0x4e5e3f[_0x3395e1(0x2e4)](this[_0x3395e1(0x1ec)]),_0x4e5e3f[_0x3395e1(0x495)](0x1),_0x4e5e3f[_0x3395e1(0x13f)](void 0x0));}[_0x228849(0x4a5)](_0xfb2a83,_0x12085d,_0xc28425=!0x1){const _0x3f4ecf=_0x228849,_0x5e7b0b=new URL(window[_0x3f4ecf(0x32c)][_0x3f4ecf(0x185)]);_0x5e7b0b[_0x3f4ecf(0x24d)]['set'](_0xfb2a83,_0x12085d),_0xc28425?window[_0x3f4ecf(0x241)]['replaceState']('','',_0x5e7b0b[_0x3f4ecf(0x31a)]()):window[_0x3f4ecf(0x241)][_0x3f4ecf(0x1df)]('','',_0x5e7b0b[_0x3f4ecf(0x31a)]());}[_0x228849(0x1de)](_0x36b8ca,_0x338cea=!0x1){const _0x429b9b=_0x228849,_0x47f306=new URL(window[_0x429b9b(0x32c)][_0x429b9b(0x185)]);_0x47f306[_0x429b9b(0x24d)][_0x429b9b(0x2b1)](_0x36b8ca),_0x338cea?window[_0x429b9b(0x241)]['replaceState']('','',_0x47f306[_0x429b9b(0x31a)]()):window[_0x429b9b(0x241)][_0x429b9b(0x1df)]('','',_0x47f306[_0x429b9b(0x31a)]());}[_0x228849(0x1ac)](_0x4dd469){const _0x45ab59=_0x228849;var _0x5c54f8;return(_0x5c54f8=new URL(window[_0x45ab59(0x32c)][_0x45ab59(0x185)])['searchParams']['get'](_0x4dd469))!=null?_0x5c54f8:void 0x0;}}const _0x122028=_0x228849(0x459),_0x29f453=_0x228849(0x4d2),_0x50865c=0x6,_0x1d604b=1.5,_0x1d37d8=0x4,_0x270890=1.5,_0x104e47='rgba(255,\x20255,\x20255,\x200.01)';class _0x2cd52a{constructor(_0x9d861b,_0x33f539,_0x216b39,_0x33aec8){const _0xe7b4c4=_0x228849;_0xaa2177(this,'_shapes',[]),_0xaa2177(this,'_anchor',null),_0xaa2177(this,_0xe7b4c4(0x26b),null),_0xaa2177(this,_0xe7b4c4(0x295),null),_0xaa2177(this,_0xe7b4c4(0x491),null),_0xaa2177(this,_0xe7b4c4(0x432),null),(this[_0xe7b4c4(0x263)]=_0x9d861b,this[_0xe7b4c4(0x2af)]=_0x33f539,this[_0xe7b4c4(0x152)]=_0x216b39,this[_0xe7b4c4(0x2a8)]=_0x33aec8,this[_0xe7b4c4(0x17b)]());}set[_0x228849(0x375)](_0x17ffc3){const _0x252a41=_0x228849;_0x17ffc3?(this[_0x252a41(0x295)]&&this[_0x252a41(0x295)][_0x252a41(0x2a1)](),this[_0x252a41(0x26b)]&&this[_0x252a41(0x26b)]['show']()):(this[_0x252a41(0x295)]&&this[_0x252a41(0x295)][_0x252a41(0x333)](),this[_0x252a41(0x26b)]&&this[_0x252a41(0x26b)][_0x252a41(0x2a1)]());}[_0x228849(0x485)](){const _0xbc702=_0x228849;for(const _0x5acbd2 of this[_0xbc702(0x4da)])_0x5acbd2[_0xbc702(0x485)]();this['_textBubble']&&this[_0xbc702(0x26b)][_0xbc702(0x485)](),this[_0xbc702(0x295)]&&this[_0xbc702(0x295)][_0xbc702(0x485)](),this[_0xbc702(0x4e0)]&&this['_anchor'][_0xbc702(0x485)](),this['_eventUnsubscribe']&&this[_0xbc702(0x432)]();}['_render'](){const _0x4aaffd=_0x228849,{_docSkeleton:_0x506167,_document:_0x5c519f}=this,{color:_0x51e022,name:_0x24c42d,ranges:_0x2441f5}=this[_0x4aaffd(0x263)],_0x3505dd=_0x5c519f['getOffsetConfig'](),{docsLeft:_0x4913b0,docsTop:_0x1dc4af}=_0x3505dd,_0x274b2a=new _0x5b613a[(_0x4aaffd(0x134))](_0x3505dd,_0x506167);for(const {startOffset:_0x1fdc14,endOffset:_0xcdd81c,collapsed:_0xa57e24,isActive:_0x35544a}of _0x2441f5){const _0x521191=_0x506167[_0x4aaffd(0x200)](_0x1fdc14),_0x1b4ce3=_0x506167[_0x4aaffd(0x200)](_0xcdd81c);if(_0x35544a){const {contentBoxPointGroup:_0x269a49}=_0x274b2a[_0x4aaffd(0x475)](_0x1b4ce3,_0x1b4ce3);if(_0x269a49[_0x4aaffd(0x430)]===0x0)continue;this[_0x4aaffd(0x2b9)](_0x51e022,_0x269a49,_0x4913b0,_0x1dc4af,_0x24c42d),this[_0x4aaffd(0x432)]=this['_handleHover']();}if(!_0xa57e24){const {contentBoxPointGroup:_0x1e9f9d}=_0x274b2a['getRangePointData'](_0x521191,_0x1b4ce3);if(_0x1e9f9d[_0x4aaffd(0x430)]===0x0)continue;this[_0x4aaffd(0x300)](_0x51e022,_0x1e9f9d,_0x4913b0,_0x1dc4af);}}}['_drawAnchor'](_0x543e44,_0x29e5c9,_0x513fc7,_0x30c3c3,_0x35c8fc){const _0x1fe2d8=_0x228849,_0x253648=this[_0x1fe2d8(0x435)](_0x29e5c9),{left:_0x3178f6,top:_0x70b750,height:_0x366405}=_0x253648,_0x2371bf=this[_0x1fe2d8(0x292)](),_0x84328b=_0x270890/_0x2371bf,_0x24aabe=new _0x5b613a['Rect'](_0x122028+_0x226a7e[_0x1fe2d8(0x144)][_0x1fe2d8(0x34b)](_0x50865c),{'left':_0x3178f6+_0x513fc7-_0x84328b,'top':_0x70b750+_0x30c3c3,'height':_0x366405,'width':_0x1d604b,'fill':_0x543e44||_0x5b613a[_0x1fe2d8(0x406)](_0x226a7e[_0x1fe2d8(0x344)][_0x1fe2d8(0x1c5)],0x0),'strokeWidth':_0x84328b,'stroke':_0x104e47,'evented':!0x0});this[_0x1fe2d8(0x4e0)]=_0x24aabe,this[_0x1fe2d8(0x2af)][_0x1fe2d8(0x43e)](_0x24aabe,_0x5b613a[_0x1fe2d8(0x4ef)]);const _0xb5e32c=new _0x5b613a[(_0x1fe2d8(0x47e))](_0x122028+_0x226a7e[_0x1fe2d8(0x144)][_0x1fe2d8(0x34b)](_0x50865c),{'left':_0x3178f6+_0x513fc7-_0x84328b,'top':_0x70b750+_0x30c3c3-_0x1d37d8/0x2,'height':_0x1d37d8,'width':_0x1d37d8,'fill':_0x543e44||_0x5b613a[_0x1fe2d8(0x406)](_0x226a7e[_0x1fe2d8(0x344)][_0x1fe2d8(0x1c5)],0x0),'strokeWidth':0x0,'stroke':_0x543e44||_0x5b613a[_0x1fe2d8(0x406)](_0x226a7e['COLORS'][_0x1fe2d8(0x1c5)],0x0),'evented':!0x1});this[_0x1fe2d8(0x295)]=_0xb5e32c,this[_0x1fe2d8(0x2af)][_0x1fe2d8(0x43e)](_0xb5e32c,_0x5b613a[_0x1fe2d8(0x4ef)]);const _0x377915=new _0x548988(_0x122028+_0x226a7e['Tools']['generateRandomId'](_0x50865c),{'left':_0x3178f6+_0x513fc7-_0x84328b,'top':_0x70b750+_0x30c3c3-_0x4a66ac,'text':_0x35c8fc,'color':_0x543e44});this[_0x1fe2d8(0x26b)]=_0x377915,this[_0x1fe2d8(0x2af)][_0x1fe2d8(0x43e)](_0x377915,_0x5b613a[_0x1fe2d8(0x4ef)]),this[_0x1fe2d8(0x375)]=!0x1;}[_0x228849(0x394)](){const _0x594bf7=_0x228849,_0x12d890=this[_0x594bf7(0x4e0)][_0x594bf7(0x2b3)]['add'](()=>{const _0x4f11d3=_0x594bf7;this[_0x4f11d3(0x375)]=!0x0;}),_0x558051=this[_0x594bf7(0x4e0)][_0x594bf7(0x302)][_0x594bf7(0x33d)](()=>{const _0x366065=_0x594bf7;this[_0x366065(0x491)]&&clearTimeout(this[_0x366065(0x491)]),this[_0x366065(0x491)]=setTimeout(()=>{const _0x2c794d=_0x366065;this[_0x2c794d(0x375)]=!0x1;},0x7d0);});return()=>{const _0x433aac=_0x594bf7;var _0x15dac4,_0x461a47;(_0x15dac4=this[_0x433aac(0x4e0)])==null||_0x15dac4[_0x433aac(0x2b3)][_0x433aac(0x169)](_0x12d890),(_0x461a47=this['_anchor'])==null||_0x461a47[_0x433aac(0x302)][_0x433aac(0x169)](_0x558051);};}['_drawRange'](_0x21ebc3,_0x4affc2,_0x3bfcfa,_0x4674c8){const _0x4a3369=_0x228849,_0x337e1d=new _0x226a7e[(_0x4a3369(0x38c))](_0x21ebc3)[_0x4a3369(0x13c)](0.2)[_0x4a3369(0x371)](),_0xa0940a=new _0x5b613a[(_0x4a3369(0x279))](_0x29f453+_0x226a7e['Tools'][_0x4a3369(0x34b)](_0x50865c),{'pointsGroup':_0x4affc2,'fill':_0x337e1d||_0x5b613a[_0x4a3369(0x406)](_0x226a7e[_0x4a3369(0x344)]['black'],0.2),'left':_0x3bfcfa,'top':_0x4674c8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4a3369(0x4da)][_0x4a3369(0x4cb)](_0xa0940a),this[_0x4a3369(0x2af)][_0x4a3369(0x43e)](_0xa0940a,_0x5b613a['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x1fda51){const _0x59c4e5=_0x1fda51[0x0],_0x16028d=_0x59c4e5[0x0],_0x6c348d=_0x59c4e5[0x2],{x:_0x3b8bd,y:_0x45f0f0}=_0x16028d,{x:_0x20ef09,y:_0x2779d7}=_0x6c348d;return{'left':_0x3b8bd,'top':_0x45f0f0,'width':_0x20ef09-_0x3b8bd,'height':_0x2779d7-_0x45f0f0};}['_getScale'](){const _0x4f4c95=_0x228849,{scaleX:_0x63c0b8,scaleY:_0x29776a}=this[_0x4f4c95(0x2af)]['getAncestorScale']();return Math[_0x4f4c95(0x4d7)](_0x63c0b8,_0x29776a);}}var _0x243c34=Object['defineProperty'],_0x4d2a7b=Object[_0x228849(0x1b4)],_0x396f09=(_0x28c3bb,_0x4e143b,_0x3913ff,_0x583189)=>{for(var _0x133601=_0x583189>0x1?void 0x0:_0x583189?_0x4d2a7b(_0x4e143b,_0x3913ff):_0x4e143b,_0x1eae96=_0x28c3bb['length']-0x1,_0xa532a1;_0x1eae96>=0x0;_0x1eae96--)(_0xa532a1=_0x28c3bb[_0x1eae96])&&(_0x133601=(_0x583189?_0xa532a1(_0x4e143b,_0x3913ff,_0x133601):_0xa532a1(_0x133601))||_0x133601);return _0x583189&&_0x133601&&_0x243c34(_0x4e143b,_0x3913ff,_0x133601),_0x133601;},_0x4ad9b1=(_0x223e21,_0xe53e22)=>(_0x5e429e,_0x13be51)=>_0xe53e22(_0x5e429e,_0x13be51,_0x223e21);let _0x2ecdf6=class extends _0x226a7e['RxDisposable']{constructor(_0x22d61e,_0x3ee36e,_0xc1ddcd,_0x3ad7ec,_0x439e6a){const _0x4256cc=_0x228849;super(),_0xaa2177(this,_0x4256cc(0x4bb),[]),(this[_0x4256cc(0x3c2)]=_0x22d61e,this['_univerInstanceService']=_0x3ee36e,this[_0x4256cc(0x4c0)]=_0xc1ddcd,this[_0x4256cc(0x1d9)]=_0x3ad7ec,this['_themeService']=_0x439e6a,this[_0x4256cc(0x285)]());}[_0x228849(0x285)](){const _0x510255=_0x228849;this['_docSkeletonManagerService'][_0x510255(0x34d)][_0x510255(0x450)](_0x4d72f4['takeUntil'](this[_0x510255(0x1ec)]),_0x4d72f4['switchMap'](_0x22ae45=>{const _0x4808dc=_0x510255;if(_0x22ae45){const {unitId:_0x497ee2}=_0x22ae45;return _0x4e5e3f['combineLatest'](this[_0x4808dc(0x3c2)]['getCollabCursors$'](_0x497ee2),this[_0x4808dc(0x363)]['currentTheme$'])[_0x4808dc(0x450)](_0x4d72f4[_0x4808dc(0x4db)](([_0x2d0854,_0x27752d])=>({'skeleton':_0x22ae45,'cursors':[..._0x2d0854[_0x4808dc(0x2a5)]()]['flatMap'](_0x3a7f44=>({..._0x3a7f44,'color':_0x27752d[_0x3a7f44[_0x4808dc(0x4dc)]]}))})));}return _0x4e5e3f['of']({'skeleton':null,'cursors':[]});}))[_0x510255(0x22c)](({skeleton:_0x239b5e,cursors:_0x5c5e77})=>{const _0x3024c2=_0x510255;this[_0x3024c2(0x1ed)](),_0x239b5e&&this[_0x3024c2(0x154)](_0x239b5e[_0x3024c2(0x3a0)],_0x5c5e77);});}[_0x228849(0x154)](_0x130a06,_0x322d4e){const _0x3d312a=_0x228849,_0x1a6a59=this[_0x3d312a(0x1aa)]();if(_0x1a6a59==null)return;const {scene:_0x90a67a,document:_0x59ea6b}=_0x1a6a59,_0x331ec9=_0x322d4e[_0x3d312a(0x4db)](_0x31b989=>new _0x2cd52a(_0x31b989,_0x90a67a,_0x130a06,_0x59ea6b));this[_0x3d312a(0x4bb)]=_0x331ec9;}[_0x228849(0x1ed)](){const _0x3fe297=_0x228849;this[_0x3fe297(0x4bb)][_0x3fe297(0x3ad)](_0x1385cb=>_0x1385cb[_0x3fe297(0x485)]()),this[_0x3fe297(0x4bb)]=[];}[_0x228849(0x1aa)](){const _0x2a47c8=_0x228849;return _0x534040[_0x2a47c8(0x3d9)](this[_0x2a47c8(0x1ad)],this[_0x2a47c8(0x4c0)]);}};_0x2ecdf6=_0x396f09([_0x226a7e[_0x228849(0x4f0)](_0x226a7e[_0x228849(0x179)][_0x228849(0x382)],_0x2ecdf6),_0x4ad9b1(0x0,_0x49bc9[_0x228849(0x31c)](_0x1ed5eb)),_0x4ad9b1(0x1,_0x226a7e['IUniverInstanceService']),_0x4ad9b1(0x2,_0x5b613a[_0x228849(0x4ac)]),_0x4ad9b1(0x3,_0x49bc9[_0x228849(0x31c)](_0x534040['DocSkeletonManagerService'])),_0x4ad9b1(0x4,_0x49bc9[_0x228849(0x31c)](_0x226a7e[_0x228849(0x201)]))],_0x2ecdf6);var _0x57846d=Object[_0x228849(0x1fc)],_0x433746=Object[_0x228849(0x1b4)],_0x28a0b0=(_0x2e9b54,_0x197379,_0x1a6b34,_0x2d65a0)=>{for(var _0xcda98f=_0x2d65a0>0x1?void 0x0:_0x2d65a0?_0x433746(_0x197379,_0x1a6b34):_0x197379,_0x5d5252=_0x2e9b54['length']-0x1,_0x1e510b;_0x5d5252>=0x0;_0x5d5252--)(_0x1e510b=_0x2e9b54[_0x5d5252])&&(_0xcda98f=(_0x2d65a0?_0x1e510b(_0x197379,_0x1a6b34,_0xcda98f):_0x1e510b(_0xcda98f))||_0xcda98f);return _0x2d65a0&&_0xcda98f&&_0x57846d(_0x197379,_0x1a6b34,_0xcda98f),_0xcda98f;},_0x31df4c=(_0xd51e03,_0x2858a2)=>(_0x396a3a,_0xf143f5)=>_0x2858a2(_0x396a3a,_0xf143f5,_0xd51e03);let _0x36b668=class{constructor(_0x245d29,_0x256212,_0x2970ee){const _0x4ae9ad=_0x228849;this[_0x4ae9ad(0x12b)]=_0x245d29,this[_0x4ae9ad(0x412)]=_0x256212,this[_0x4ae9ad(0x173)]=_0x2970ee,this[_0x4ae9ad(0x3bd)]();}[_0x228849(0x3bd)](){const _0xeb2893=_0x228849;this[_0xeb2893(0x412)][_0xeb2893(0x293)]({'priority':0x1,'interceptor':(_0xa47f4e,_0xcb0cbf)=>_0xcb0cbf(_0xa47f4e)[_0xeb2893(0x450)](_0x4e5e3f[_0xeb2893(0x2a0)](async _0x1cc661=>{const _0x6f348a=_0xeb2893,_0x20f165=_0x1cc661;if(_0x20f165['status']===0x191&&window[_0x6f348a(0x3d7)](this[_0x6f348a(0x173)]['t'](_0x6f348a(0x14d)))){const _0x2308e3=window[_0x6f348a(0x294)](window[_0x6f348a(0x32c)]['href']);window[_0x6f348a(0x32c)][_0x6f348a(0x185)]=this[_0x6f348a(0x383)]()+'?url='+_0x2308e3;}return _0x20f165;}))});}['_getLoginPath'](){const _0x170d5e=_0x228849;var _0x2be9c1;return(_0x2be9c1=this[_0x170d5e(0x12b)][_0x170d5e(0x176)](_0x16f267))!=null?_0x2be9c1:_0x1dc009;}};_0x36b668=_0x28a0b0([_0x31df4c(0x0,_0x226a7e[_0x228849(0x26f)]),_0x31df4c(0x1,_0x49bc9[_0x228849(0x31c)](_0x353e30[_0x228849(0x26c)])),_0x31df4c(0x2,_0x49bc9[_0x228849(0x31c)](_0x226a7e[_0x228849(0x355)]))],_0x36b668);var _0x1f172d=Object['defineProperty'],_0x5a7c7e=Object[_0x228849(0x1b4)],_0x3613ca=(_0xa29005,_0x2ce608,_0x5585c3,_0x3dc39f)=>{const _0x119fa5=_0x228849;for(var _0x5dd05d=_0x3dc39f>0x1?void 0x0:_0x3dc39f?_0x5a7c7e(_0x2ce608,_0x5585c3):_0x2ce608,_0x1ebe4d=_0xa29005[_0x119fa5(0x430)]-0x1,_0x2f7e5c;_0x1ebe4d>=0x0;_0x1ebe4d--)(_0x2f7e5c=_0xa29005[_0x1ebe4d])&&(_0x5dd05d=(_0x3dc39f?_0x2f7e5c(_0x2ce608,_0x5585c3,_0x5dd05d):_0x2f7e5c(_0x5dd05d))||_0x5dd05d);return _0x3dc39f&&_0x5dd05d&&_0x1f172d(_0x2ce608,_0x5585c3,_0x5dd05d),_0x5dd05d;},_0x3d7530=(_0x21ce64,_0x66a7e8)=>(_0x4790f8,_0x2fe45a)=>_0x66a7e8(_0x4790f8,_0x2fe45a,_0x21ce64);const _0x40122f=_0x228849(0x1d7),_0x322420=_0x228849(0x225);_0x431c6f[_0x228849(0x12e)]=class{constructor(_0xc4d39f,_0x259030){const _0x5a8d20=_0x228849;this[_0x5a8d20(0x461)]=_0xc4d39f,this[_0x5a8d20(0x12b)]=_0x259030;}[_0x228849(0x35a)](){const _0x4e28cd=_0x228849;var _0x186b19;return(_0x186b19=this[_0x4e28cd(0x12b)][_0x4e28cd(0x176)](_0x40122f))!=null?_0x186b19:_0x322420;}async[_0x228849(0x2c1)](_0x1a8bf6){const _0x49263e=_0x228849,_0x10633d=this['_getAPIPrefixPath']()+'/'+_0x1a8bf6['objectType']+_0x49263e(0x336);return(await this[_0x49263e(0x461)]['post'](_0x10633d,{'body':_0x1a8bf6}))[_0x49263e(0x161)][_0x49263e(0x256)]||'';}async[_0x228849(0x41a)](_0x32223a){const _0x40536c=_0x228849,_0x323022=this[_0x40536c(0x35a)]()+'/-/object/list';return(await this[_0x40536c(0x461)][_0x40536c(0x32b)](_0x323022,{'body':_0x32223a}))[_0x40536c(0x161)]['objects'];}async[_0x228849(0x4d9)](_0x6459ed){const _0x48537d=_0x228849,_0x225fe7=this[_0x48537d(0x35a)]()+'/'+_0x6459ed[_0x48537d(0x286)]+_0x48537d(0x1a1)+_0x6459ed[_0x48537d(0x256)];await this[_0x48537d(0x461)]['put'](_0x225fe7,{'body':_0x6459ed});}async[_0x228849(0x275)](_0x1459c6){const _0x233c7d=_0x228849,_0xdc806a=this[_0x233c7d(0x35a)]()+'/'+_0x1459c6['objectType']+_0x233c7d(0x1a1)+_0x1459c6[_0x233c7d(0x256)]+'/allowed';return(await this[_0x233c7d(0x461)][_0x233c7d(0x32b)](_0xdc806a,{'body':_0x1459c6}))['body'][_0x233c7d(0x274)];}async[_0x228849(0x30d)](_0x21d22e){const _0x450c08=_0x228849,_0x940021=this[_0x450c08(0x35a)]()+'/-/object/-/batch_allowed';return(await this[_0x450c08(0x461)]['post'](_0x940021,{'body':{'requests':_0x21d22e}}))[_0x450c08(0x161)][_0x450c08(0x4fa)];}async[_0x228849(0x4a4)](_0x519386){const _0xe49bd2=_0x228849,_0x5eddb8=this['_getAPIPrefixPath']()+'/'+_0x519386[_0xe49bd2(0x286)]+_0xe49bd2(0x443),_0x5bd979=await this[_0xe49bd2(0x461)][_0xe49bd2(0x32b)](_0x5eddb8,{'body':_0x519386});return{'roles':_0x5bd979[_0xe49bd2(0x161)]['roles'],'actions':_0x5bd979['body'][_0xe49bd2(0x274)]};}async[_0x228849(0x3db)](_0x17d140){const _0x7b34ea=_0x228849,_0x451abd=this[_0x7b34ea(0x35a)]()+'/collaborator';await this['_HTTPService'][_0x7b34ea(0x2b1)](_0x451abd,{'params':{'collaboratorID':_0x17d140[_0x7b34ea(0x27e)],'objectID':_0x17d140['objectID'],'unitID':_0x17d140[_0x7b34ea(0x340)]}});}async[_0x228849(0x4fd)](_0x9330f4){const _0x2fd229=_0x228849,_0x3cd1ab=this[_0x2fd229(0x35a)]()+'/collaborator';await this['_HTTPService']['patch'](_0x3cd1ab,{'body':_0x9330f4});}async['createCollaborator'](_0x18c986){const _0x414714=_0x228849,_0x37abc1=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x414714(0x461)]['post'](_0x37abc1,{'body':_0x18c986});}async['listCollaborators'](_0xc00285){const _0x5e7400=_0x228849,_0x9a1228=this[_0x5e7400(0x35a)]()+'/collaborator';return(await this[_0x5e7400(0x461)][_0x5e7400(0x24c)](_0x9a1228,{'params':{'objectID':_0xc00285['objectID'],'unitID':_0xc00285[_0x5e7400(0x340)]}}))[_0x5e7400(0x161)]['collaborators'];}async[_0x228849(0x379)](_0x333a48){const _0x4e3de1=_0x228849,_0xd97ac5=this[_0x4e3de1(0x35a)]()+'/collaborator';await this[_0x4e3de1(0x461)][_0x4e3de1(0x3b1)](_0xd97ac5,{'body':_0x333a48});}},_0x431c6f['AuthzIoHttpService']=_0x3613ca([_0x3d7530(0x0,_0x49bc9[_0x228849(0x31c)](_0x353e30['HTTPService'])),_0x3d7530(0x1,_0x49bc9[_0x228849(0x31c)](_0x226a7e['IConfigService']))],_0x431c6f[_0x228849(0x12e)]);var _0x1eed85=Object['defineProperty'],_0x64705b=Object[_0x228849(0x1b4)],_0x219850=(_0x2f932d,_0x53d78c,_0x395523,_0x34061e)=>{const _0x313f84=_0x228849;for(var _0x4ebad2=_0x34061e>0x1?void 0x0:_0x34061e?_0x64705b(_0x53d78c,_0x395523):_0x53d78c,_0x3ef363=_0x2f932d[_0x313f84(0x430)]-0x1,_0x5994bb;_0x3ef363>=0x0;_0x3ef363--)(_0x5994bb=_0x2f932d[_0x3ef363])&&(_0x4ebad2=(_0x34061e?_0x5994bb(_0x53d78c,_0x395523,_0x4ebad2):_0x5994bb(_0x4ebad2))||_0x4ebad2);return _0x34061e&&_0x4ebad2&&_0x1eed85(_0x53d78c,_0x395523,_0x4ebad2),_0x4ebad2;},_0x58c2d6=(_0x41dba0,_0x3c416e)=>(_0x4cbbb6,_0x149045)=>_0x3c416e(_0x4cbbb6,_0x149045,_0x41dba0);const _0xd1969=['image/png','image/jpeg',_0x228849(0x1a0),_0x228849(0x1a7),_0x228849(0x327)],_0x2214a7=0x5*0x400*0x400,_0x64fb6a=_0x228849(0x442),_0x38f56a=_0x228849(0x2e8),_0x51e6a2='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_0x5030b1=_0x228849(0x460);let _0x3002a0=class{constructor(_0x1925c3,_0x211534){const _0x390add=_0x228849;_0xaa2177(this,_0x390add(0x21f),0x0),_0xaa2177(this,_0x390add(0x4a2),new _0x4e5e3f[(_0x390add(0x4bc))]()),_0xaa2177(this,_0x390add(0x427),this[_0x390add(0x4a2)]),_0xaa2177(this,_0x390add(0x34f),new Map()),(this[_0x390add(0x412)]=_0x1925c3,this[_0x390add(0x12b)]=_0x211534);}['setWaitCount'](_0xebc4eb){const _0x1241aa=_0x228849;this[_0x1241aa(0x21f)]=_0xebc4eb,this[_0x1241aa(0x4a2)][_0x1241aa(0x488)](_0xebc4eb);}[_0x228849(0x330)](_0x471c1b,_0x374c7a){const _0xa6eaf4=_0x228849;if(_0x374c7a===_0x57ff02[_0xa6eaf4(0x1f0)]['BASE64']){const _0x1450fd=new Image();return _0x1450fd['src']=_0x471c1b,_0x1450fd;}return this['_imageSourceCache']['get'](_0x471c1b);}[_0x228849(0x420)](_0x1f0aa0,_0x458c9e,_0x1565a8){const _0xbbd060=_0x228849;_0x458c9e===_0x57ff02[_0xbbd060(0x1f0)][_0xbbd060(0x2d0)]||_0x1565a8==null||this['_imageSourceCache'][_0xbbd060(0x4f3)](_0x1f0aa0,_0x1565a8);}async[_0x228849(0x1e2)](_0x5138e1){const _0x4f3546=_0x228849;try{const _0x3005ad=this['_replaceFileID'](this[_0x4f3546(0x497)](),''+_0x5138e1),_0x3899dc=(await this[_0x4f3546(0x412)][_0x4f3546(0x24c)](_0x3005ad))['body'];return _0x3899dc[_0x4f3546(0x24e)]&&_0x3899dc[_0x4f3546(0x24e)]['code']===_0x4a5019['OK']?Promise[_0x4f3546(0x44e)](_0x3899dc[_0x4f3546(0x374)]):Promise[_0x4f3546(0x377)](_0x3899dc[_0x4f3546(0x24e)]);}catch(_0xf91542){return Promise[_0x4f3546(0x377)](_0xf91542);}}async[_0x228849(0x157)](_0xb700b1){const _0xe5c9=_0x228849;let _0x43b708='';if(!_0xd1969[_0xe5c9(0x45a)](_0xb700b1[_0xe5c9(0x354)]))return this[_0xe5c9(0x2de)](),Promise[_0xe5c9(0x377)](new Error(_0x57ff02[_0xe5c9(0x4f5)][_0xe5c9(0x23e)]));if(_0xb700b1[_0xe5c9(0x3bb)]>_0x2214a7)return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x57ff02['ImageUploadStatusType'][_0xe5c9(0x496)]));try{const _0x1da24d=new FormData();_0x1da24d[_0xe5c9(0x3f4)](_0xe5c9(0x4c5),_0xb700b1);const _0x314c69=this[_0xe5c9(0x49b)]()+'?size='+_0xb700b1[_0xe5c9(0x3bb)]['toString'](),_0x30bf4f=await(await fetch(_0x314c69,{'method':_0xe5c9(0x34c),'body':_0x1da24d}))[_0xe5c9(0x3cc)]();if(typeof _0x30bf4f[_0xe5c9(0x393)]!='string')return this[_0xe5c9(0x2de)](),Promise[_0xe5c9(0x377)](new Error(_0x57ff02[_0xe5c9(0x4f5)][_0xe5c9(0x346)]));_0x43b708=_0x30bf4f[_0xe5c9(0x393)];}catch{return this[_0xe5c9(0x2de)](),Promise[_0xe5c9(0x377)](new Error(_0x57ff02[_0xe5c9(0x4f5)][_0xe5c9(0x346)]));}return new Promise((_0x46a570,_0x59b7d8)=>{const _0x56fd45=_0xe5c9,_0xcc418b=new FileReader();_0xcc418b[_0x56fd45(0x45d)](_0xb700b1),_0xcc418b['onload']=_0x5501bc=>{const _0x4edf27=_0x56fd45;var _0x4de8a4;const _0x126e6b=(_0x4de8a4=_0x5501bc[_0x4edf27(0x1fa)])==null?void 0x0:_0x4de8a4['result'];if(_0x126e6b==null){this[_0x4edf27(0x2de)](),_0x59b7d8(new Error(_0x57ff02[_0x4edf27(0x4f5)][_0x4edf27(0x346)]));return;}const _0x36362b=_0x226a7e['Tools'][_0x4edf27(0x34b)](0x6);_0x46a570({'imageId':_0x36362b,'imageSourceType':_0x57ff02['ImageSourceType']['UUID'],'source':_0x43b708,'base64Cache':_0x126e6b,'status':_0x57ff02[_0x4edf27(0x4f5)]['SUCCUSS']}),this[_0x4edf27(0x2de)]();};});}[_0x228849(0x49b)](){const _0x2ed2d7=_0x228849;var _0x54d5b9;return(_0x54d5b9=this[_0x2ed2d7(0x12b)][_0x2ed2d7(0x176)](_0x64fb6a))!=null?_0x54d5b9:_0x38f56a;}[_0x228849(0x497)](){const _0x350d34=_0x228849;var _0x2eddba;return(_0x2eddba=this[_0x350d34(0x12b)][_0x350d34(0x176)](_0x51e6a2))!=null?_0x2eddba:_0x5030b1;}[_0x228849(0x32a)](_0xe2d786,_0x2187f3){const _0x58af98=_0x228849;return _0xe2d786[_0x58af98(0x281)](_0x58af98(0x3da),_0x2187f3);}['_decreaseWaiting'](){const _0x1169b6=_0x228849;this[_0x1169b6(0x21f)]-=0x1,this[_0x1169b6(0x4a2)][_0x1169b6(0x488)](this[_0x1169b6(0x21f)]);}};_0x3002a0=_0x219850([_0x58c2d6(0x0,_0x49bc9[_0x228849(0x31c)](_0x353e30[_0x228849(0x26c)])),_0x58c2d6(0x1,_0x226a7e[_0x228849(0x26f)])],_0x3002a0);var _0x10451b=Object[_0x228849(0x1fc)],_0x4f2602=Object[_0x228849(0x1b4)],_0x477c7f=(_0x41234c,_0x1bdc2a,_0x38a6e5)=>_0x1bdc2a in _0x41234c?_0x10451b(_0x41234c,_0x1bdc2a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38a6e5}):_0x41234c[_0x1bdc2a]=_0x38a6e5,_0x3ad023=(_0xf269e5,_0x1fdef2,_0x16fb28,_0x47d4dc)=>{const _0xbf6d9c=_0x228849;for(var _0x3fd208=_0x47d4dc>0x1?void 0x0:_0x47d4dc?_0x4f2602(_0x1fdef2,_0x16fb28):_0x1fdef2,_0x2a3bc1=_0xf269e5[_0xbf6d9c(0x430)]-0x1,_0x4c89dd;_0x2a3bc1>=0x0;_0x2a3bc1--)(_0x4c89dd=_0xf269e5[_0x2a3bc1])&&(_0x3fd208=(_0x47d4dc?_0x4c89dd(_0x1fdef2,_0x16fb28,_0x3fd208):_0x4c89dd(_0x3fd208))||_0x3fd208);return _0x47d4dc&&_0x3fd208&&_0x10451b(_0x1fdef2,_0x16fb28,_0x3fd208),_0x3fd208;},_0x28db8f=(_0x7dda03,_0x2168f1)=>(_0x18729f,_0x150b6f)=>_0x2168f1(_0x18729f,_0x150b6f,_0x7dda03),_0x11a023=(_0x34b14f,_0x115e30,_0x4f4ff6)=>(_0x477c7f(_0x34b14f,_0x115e30+'',_0x4f4ff6),_0x4f4ff6);const _0x40bfe7=_0x228849(0x1cc);_0x431c6f[_0x228849(0x3e4)]=class extends _0x226a7e[_0x228849(0x1bc)]{constructor(_0x34b026,_0xb6f0a8,_0x37095c){const _0x4932a3=_0x228849;super(),this[_0x4932a3(0x46c)]=_0x34b026,this[_0x4932a3(0x464)]=_0xb6f0a8,this[_0x4932a3(0x28b)]=_0x37095c;}['onStarting'](_0x359884){const _0x1e917d=_0x228849;var _0x311d2b,_0x4e924a,_0x2103f2,_0x3c68ec,_0x22c6ea;_0x359884['has'](_0x226a7e[_0x1e917d(0x3af)])&&this[_0x1e917d(0x464)]['error']('[UniverCollaborationClientPlugin]',_0x1e917d(0x13e));let _0x2c87cd=[[_0x226a7e[_0x1e917d(0x3af)],{'useClass':_0x370e1f}],[_0x431c6f[_0x1e917d(0x192)]],[_0x237467],[_0x353e30['HTTPService']],[_0x445d9f,{'useClass':_0x3ceb40}],[_0x2f6a5d],[_0x431c6f[_0x1e917d(0x361)]],[_0x353e30[_0x1e917d(0x174)]],[_0x362b05],[_0x35da09],[_0x1f5fb3],[_0x372338],[_0x36b668],[_0x970e64,{'useClass':(_0x4e924a=(_0x311d2b=this[_0x1e917d(0x46c)])==null?void 0x0:_0x311d2b['socketService'])!=null?_0x4e924a:_0x431c6f[_0x1e917d(0x207)]}],[_0x353e30[_0x1e917d(0x299)],{'useClass':_0x353e30[_0x1e917d(0x29a)]}],[_0x226a7e[_0x1e917d(0x2ff)],{'useClass':_0x5b8358}],[_0x226a7e[_0x1e917d(0x1b1)],{'useClass':_0x431c6f['AuthzIoHttpService']}],[_0x57ff02[_0x1e917d(0x395)],{'useClass':_0x3002a0}],[_0x431c6f['CollaborationController']],[_0x431c6f[_0x1e917d(0x276)]],[_0x431c6f[_0x1e917d(0x422)]],[_0x46b6ae],[_0x1ed5eb]];(_0x2103f2=this[_0x1e917d(0x46c)])!=null&&_0x2103f2[_0x1e917d(0x365)]&&_0x2c87cd[_0x1e917d(0x4cb)]([_0x53b064,{'useClass':_0x5d66f4}]),((_0x3c68ec=this['_config'])==null?void 0x0:_0x3c68ec[_0x1e917d(0x42d)])==null||this[_0x1e917d(0x46c)][_0x1e917d(0x42d)]['includes'](_0x226a7e[_0x1e917d(0x27d)]['UNIVER_SHEET'])?_0x2c87cd[_0x1e917d(0x4cb)]([_0x7ed5d]):this[_0x1e917d(0x46c)][_0x1e917d(0x42d)][_0x1e917d(0x45a)](_0x226a7e[_0x1e917d(0x27d)][_0x1e917d(0x138)])&&_0x2c87cd[_0x1e917d(0x4cb)]([_0x2ecdf6]),_0x2c87cd=_0x226a7e[_0x1e917d(0x498)](_0x2c87cd,(_0x22c6ea=this['_config'])==null?void 0x0:_0x22c6ea[_0x1e917d(0x2ae)]),_0x2c87cd['forEach'](_0x34d424=>_0x359884[_0x1e917d(0x33d)](_0x34d424)),_0x359884['get'](_0x353e30[_0x1e917d(0x26c)])[_0x1e917d(0x293)]({'priority':0x14,'interceptor':_0x353e30[_0x1e917d(0x17e)]({'maxParallel':0x6})}),this[_0x1e917d(0x197)]();}[_0x228849(0x197)](){const _0x400b24=_0x228849;var _0x14ee35,_0x177838;(_0x14ee35=this[_0x400b24(0x46c)])!=null&&_0x14ee35[_0x400b24(0x462)]||this[_0x400b24(0x28b)][_0x400b24(0x24c)](_0x431c6f[_0x400b24(0x361)])['disableLocalCache'](),(_0x177838=this[_0x400b24(0x46c)])!=null&&_0x177838[_0x400b24(0x3d3)]&&this[_0x400b24(0x28b)]['get'](_0x36b668);}},_0x11a023(_0x431c6f[_0x228849(0x3e4)],_0x228849(0x272),_0x40bfe7),_0x431c6f[_0x228849(0x3e4)]=_0x3ad023([_0x226a7e[_0x228849(0x17a)](_0x1e8c75[_0x228849(0x367)]),_0x28db8f(0x1,_0x226a7e[_0x228849(0x212)]),_0x28db8f(0x2,_0x49bc9[_0x228849(0x31c)](_0x49bc9['Injector']))],_0x431c6f[_0x228849(0x3e4)]),_0x431c6f[_0x228849(0x1d7)]=_0x40122f,_0x431c6f['COLLAB_SUBMIT_CHANGESET_URL_KEY']=_0xe983e2,_0x431c6f[_0x228849(0x39d)]=_0x54323b,_0x431c6f['CollaborationStatus']=_0x4577df,_0x431c6f[_0x228849(0x4c3)]=_0x10b395,_0x431c6f[_0x228849(0x296)]=_0x18051e,_0x431c6f[_0x228849(0x4ad)]=_0x2c7ffa,_0x431c6f[_0x228849(0x400)]=_0x970e64,_0x431c6f[_0x228849(0x199)]=_0x445d9f,_0x431c6f['LOCAL_CACHE_INTERVAL_KEY']=_0x109348,_0x431c6f[_0x228849(0x303)]=_0x16f267,_0x431c6f['SEND_CHANGESET_TIMEOUT_KEY']=_0x6128a1,_0x431c6f[_0x228849(0x229)]=_0x299079,_0x431c6f[_0x228849(0x23b)]=_0x2e8975,_0x431c6f[_0x228849(0x188)]=_0x2d0945,_0x431c6f[_0x228849(0x447)]=_0x3ceb40,_0x431c6f[_0x228849(0x1b6)]=_0x37fba9,_0x431c6f[_0x228849(0x3a1)]=_0x543e7b,Object[_0x228849(0x1fc)](_0x431c6f,Symbol['toStringTag'],{'value':_0x228849(0x3be)});}));function _0x5a71(){const _0x20aa42=['merge','/rev/','_handler','enableAuthServer','onlineStatus','FETCH_MISS','_uiPartsService','confirm','call','getDocObject','{fileID}','deleteCollaborator','APPLY_NON_SEQUENTIAL_REVISION','appendMutation','triggerDblclick','reduce','MUTATION','_unitID','routeKey','function','UniverCollaborationClientPlugin','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','SetTextSelectionsOperation','_joinRoom','_getCtorByUniverType','session.will-retry','OnLineSingle','@univerjs/rpc','deserializeRangeWithSheet','snapshot','_status$','_localCacheService','getCellPositionByOffset','save\x20fail\x20reason\x20is\x20','onTransformRemoteChangesetByIMECache','UniverSheetsUi','append','_clearHeartbeatTimer','permission.content','/universer-api/oidc/authpage','_docTransformSelectionsService','FromArray','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','registerComponent','saveChangeset','JOINING','bottom','_schedule','ICollaborationSocketService','_localeService','roomMembers','_type','on-line-single','concat','getColor','resourceIDs','SNAPSHOT_INVALID_SNAPSHOT','_clearLocalCache','_scheduleHeartbeat','3687592koGrDH','@univerjs-pro/collaboration','getCollabEntity$','[DataLoaderController]','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','CompressMutationService','_httpService','liveShareOperation','fromCollab','state$','getItem','LIVESHARE_FETCH_OPERATIONS','status','_onRemoteChangeset','list','startRow','from','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_syncEditingCollabCursor','collaboration-client.offline-data-not-saved','addImageSourceCache','univer-online-status','DesktopCollaborationStatusDisplayController','submit\x20changeset\x20error!','JOIN','handleInsertRangeMoveRight','collabStatus.fetchMiss','change$','_ensureSubject','[OfflineState]:\x20received\x20rejection.','_acknowledgedAwaitingChangeset','isPermissionRej','_executeRemoteChangeset','collaborationUniverTypes','startColumn','USERS_LEAVE','length','_getAPIPrefix','_eventUnsubscribe','updateMember','debug','_getAnchorBounding','createElement','revision','_updateSubUnitFromURLParams','_startDocCollabCursor','useObservable','unit','top','rev','addObject','getFocusedUnit','transformRemoteChangeset','isArray','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','/role','row','handleInsertRangeMoveDown','serializeTextRange','WebURLService','[PendingState]:\x20unhandled\x20univer\x20type:\x20','csAckEvent','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','m1Prime','fill','_syncEditingCollabCursorService','resolve','PENDING','pipe','VIEW_MAIN','filter','onRemoteChangeset','_pendingMutations','LIVESHARE_NEW_HOST','all','split','_clearUndo','collab-text-anchor-','includes','Error','_roomMembers$','readAsDataURL','getCurrentRevForDocument','defIds','/universer-api/file/{fileID}/sign-url','_HTTPService','enableOfflineEditing','transformStack\x20failed!','_logService','@wendellhu/redi/react-bindings','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','textEncoder','transformChangesets','on-line-single_clip0_910_349','setTimeout','@univerjs/design','_config','children','workbook','COMPRESS_MUTATION_SEND','_updateLocalCursor','RemoveRowCommandId','_createSocket','deepClone','_docTransformIMECacheService','getRangePointData','connection\x20error','collabCursorState$','_queuedRemoteChangesets','_cursorInfo$','unshift','prototype','@univerjs/sheets','column','Rect','textRanges','extend','MessageType','onTransformSelections','HELLO','Disposable','dispose','disableLocalCache','_roomMembers','next','PERMISSION_DENIED','_transformPreviousActiveRange','setUndoRedoMutationParamsCache','text','syncEditingCollabCursor','setCurrentUser','ICommandService','_colorIndex','_hideTimer','endColumn','_getMergeRange','_isPermissionRej','shareReplay','ERROR_EXCEED_SIZE','_getSignURL','mergeOverrideWithDependencies','isTransformMutationFailure','_sheetTransformSelectionsService','_getUploadFileURL','_clearOtherTimers','_substituteRedoStack','univer-online-status-icon','_toggleOnline','NOT_FOUND','895380IfjYtx','_change$','getActiveSheet','listRoles','setParam','HEARTBEAT','_incrementRevisionNumber','UNRECOGNIZED','fillStyle','IUniverInstanceService','_transformIMECache','IRenderManagerService','HEARTBEAT_TIMEOUT_KEY','getUnitOnRev','div','url(#on-line-single_clip0_910_349)','_collabCursorState$','collabStatus.offline','DisposableCollection','MoveRangeCommandId','_tryEnsureSocket','_commandService','onCommandExecuted','RichTextEditingMutation','currentColor','awaiting_with_pending','_cursors','Subject','APPLY_PERMISSION_DENIED','getSheetBlock','entries','_renderManagerService','_updateState','IBeforeCloseService','CollaborationStatusDisplay','_handleEvent','file','setInterval','csRejEvent','\x20-\x20','createSocket','setItem','push','ONLINE','online','getTime','assignAColorForMemberID','_initStatusComponent','_transformRemoteChangesetByIMECache','collab-text-range-','onSendChangeset','_getRedoStack','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_snapshotService','max','leaveEvent','update','_shapes','map','color','parseProtocolChangeset','compose','CHANGESET_REJ','_anchor','onRemoteRej','/new_changes','displayName','LICENSE_IMPORT_SIZE_EXCEEDED','TOO_MANY_REQUESTS','onPointerMoveObserver','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','NOT_COLLAB','_showConflictNotification','jiqing500','apply','subUnitId','send','toggleOnline','TEXT_RANGE_LAYER_INDEX','OnLifecycle','CHANGESET_REVISION_CONFILICT','docStateChange$','set','transformUndoRedo','ImageUploadStatusType','isTransformMutationsWithChangesetSuccess','_color','IMessageService','pauseCollaboration','objectActions','saveSheetBlock','[CollaborationEntity]','updateCollaborator','_updateLocalCache','_configService','executeCommand','useDependency','AuthzIoHttpService','YUUMI_UNABLE_LOAD_URL','[PendingState]:\x20received\x20rejection.','Workbook','...','[OfflineState]:\x20received\x20changeset.','NodePositionConvertToCursor','getTypeOfUnitAdded$','_clearCollaborationTimeoutTimer','/unit/','UNIVER_DOC','LICENSE_EXPORT_SIZE_EXCEEDED','awaiting','handleIRemoveCol','setAlpha','UniverIcon','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','mapTo','getSheetBySheetId','newCsEvent','_docSyncEditingCollabCursorService','PERMISSION_REJ','Tools','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_members','toggleOffline','@univerjs/core','use','INGEST','toDisposable','random','auth.needGotoLoginAlert','Warning','_awaitingChangeset','getUndoRedoMutationParamsCache','@univerjs/engine-render','_docSkeleton','_hovered','_updateCollabCursors','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','getUnitType','saveImage','close','session','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','useRef','RemoveColCommandId','EffectRefRangId','doc.mutation.rich-text-editing','parseChangesetToProtocol','message$','body','onStateChange','permission.title','UniverEngineFormula','rxjs','InsertRangeMoveDownCommandId','univer-offline','status$','remove','_saveCache','_unitStatus','startsWith','UNKNOWN_CODE','_getSnapshotAPIPrefix','&to=','key','conflict.content','_remoteChangesetQueue','localeService','WebSocketService','createIdentifier','getConfig','USERS_ENTER','createInstance','LifecycleStages','DependentOn','_render','svg','getUnitStatus$','ThresholdInterceptorFactory','removeMember','height','getValue','IPermissionService','cursorInfo$','ITransformService','href','with','@univerjs/ui','SessionStatus','_onRemoteACK','min','_replayCachedMutations','popstate','rxjs/operators','FAIL','editingUnit','getAncestorScale','HEADER_MENU','CollaborationSessionService','_lockTransition','COMPLETION_FINISHED','Optional','distinctUntilChanged','_initModules','CollaborationEvent','IURLService','_getUndoStack','_sessionStatus$','AWAITING_WITH_PENDING','getTypeOfUnitDisposed$','[CollaborationSessionService]:\x20socket\x20error','onlineStatusTitle','image/jpg','/object/','getScrollXYByRelativeCoords','_transformStack','restore','runRefRangeMutations','getSheetId','image/gif','string','_onConflict','_getDocObject','Univer','getParam','_univerInstanceService','then','storage','onlineStatusIcon','IAuthzIoService','has','AWAITING','getOwnPropertyDescriptor','handleMoveRange','deserializeToCombResponse','_socketReady','clipPath','_transformService','_draw','_getSheetObject','Plugin','_undoRedoService','Rectangle','labelPosition','focused$','synced','_updateStatus','fetchThroughInterceptors','fetchMissingChangesets','black','userID','_unitOnClients','_permissionService','_saveTaskMap','trim','@univerjs/drawing','UNIVER_COLLABORATION_CLIENT_PLUGIN','_heartbeatTimer','conflict','sheets','_sessions','_state$','urlChange$','lodash/debounce','stringify','interceptor','_onCursorUpdate','AUTHZ_URL_KEY','_onRefRangeChange','_docSkeletonManagerService','_onUserLeave','take','ALREADY_EXISTS','complete','removeParam','pushState','save','getCurrentUnitForType','getImage','_collabSessionService','disposeUnit','onMissedChangesetFetched','_disableEditing','close$','unknown','roomMembers$','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_state','dispose$','_removeCollabCursors','_transitionLocked','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','ImageSourceType','_retryConnectingTimer','/universer-api/comb','makeDirty','_submitChangeset','current','defs','IDLE','data','parse','target','_singleActiveUnitService','defineProperty','UniverUi','asObservable','_applyRemoteChangeset','findNodePositionByCharIndex','ThemeService','updatePermissionPoint','red300','baseRev','UNAUTHENTICATED','getViewport','CollaborationSocketService','evenodd','_clearRedo','sequenceExecute','width','roomInfos','_socketMessageSubscription','_handleJoinEvent','_retryCount','_unlockTransition','closePath','ILogService','NEW_CHANGESETS','b64DecodeUnicode','unload','onSyncEditingCollabCursor','_cachedData','fetch_missing','className','IUIPartsService','SetSelectionsOperation','originalMeta','\x20in\x20_schedule.','_assignedColors','_waitCount','getRoom','off-line-single_clip0_910_343','YUUMI_URL_COL_OUT_OF_RANGE','hasOwnProperty','selection','/universer-api/authz','_send','LICENSE_MAX_UNITS_EXCEEDED','LEAVE','SNAPSHOT_SERVER_URL_KEY','getOwnPropertySymbols','error$','subscribe','CommandType','_onConnectionOpen','UNKNOWN_CMD','_revisionService','disposeWithMe','find','#FFF','sheetID','forwardRef','univerjs-icon\x20univerjs-icon-','_createInitialState','IMEInputManagerService','_onRecvEvent','getResourcesRequest','SNAPSHOT_URL_KEY','transformSelections','unsubscribe','ERROR_IMAGE_TYPE','_toggleOffline','2012082GPsqED','history','[CollaborationSessionService]','OTHER_CLIENTS_EDITING','_refRangeService','1em','/block/','UniverEngineRender','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','collaMsg','_entityInit$','open$','get','searchParams','error','INotificationService','getMember','xlink:href','attrs','UPDATE_CURSOR','getCollabCursors$','_userManagerService','objectID','562931EJniKv','fillText','getCurrent','HEARTBEAT_TIMEOUT','url(#$1','_scheduleTimestamp','memberID','onRemoteAck','failed\x20to\x20apply\x20missed\x20changesets!','m2Prime','cursorInfo','tag','_cursor','collabStatus.conflict','getCollabEntity','addEventListener','transformByState','name','members','/universer-api/snapshot','_textBubble','HTTPService','OFFLINE','isEditing','IConfigService','APPLY_REJECT','_localStorageService','pluginName','serializeRangeWithSheet','actions','allowed','DataLoaderController','_createInitialStateImpl','transformMutation','RegularPolygon','awaitingChangeset','_onCombEvent','cmd','UniverInstanceType','collaboratorID','_name','catch','replace','_removeClearOtherTimer','unit-cache-','[CollaborationUndoRedoService]','_init','objectType','INVALID_ARGUMENT','subunit','registerOnClose','verdancy600','_injector','session.collaboration-timeout','collabStatus.syncing','_snapshotServerService','UniverNetwork','RECV','LocalUndoRedoService','_getScale','registerHTTPInterceptor','encodeURIComponent','_anchorDot','HEARTBEAT_INTERVAL_KEY','offline','CONNECTOR_DATA_TOO_LARGE','IHTTPImplementation','XHRHTTPImplementation','_scheduleSaving','CHANGESET_ACK','registerRefRange','[FetchMissState]','_transformUndoRedoStack','concatMap','hide','_event$','joinEvent','_urlService','values','range','activeSheet$','_document','NO_OTHER_CLIENTS_EDITING','Vector2','SEND_CHANGESET_TIMEOUT','RxDisposable','lineTo','override','_scene','onMissingChangesets','delete','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','onPointerEnterObserver','replaceTextRanges','SUBMIT_CHANGESET','[SyncedState]:\x20received\x20acknowledgement.','sessionStatus$','colorChannel1','_drawAnchor','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','FETCH_MISSING','_labelPosition','_substituteUndoStack','_sendHeartbeatTimer','changesets','_sheetSkeletonManagerService','create','_updateURLWithCurrentState','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','APPLY_REVISION_CONFILICT','_disabled','_onJoinRoomEvent','_memberService','_handleLeaveEvent','clearTimeout','RETRY_CONNECTING_MAX_COUNT','CollaborationController','isActive','_timeoutTimer','COLLAB_WEB_SOCKET_URL','LIVESHARE_TERMINATE','BASE64','getUnitId','path','_collaborationTimeoutTimer','enableLocalCache','_onCursorDelete','CollaborationSession','_onLocalMutation','LIVESHARE_REQUEST_HOST','session.room-full','@univerjs/engine-formula','_http','SetWorksheetActivateCommand','transformMutationsWithChangeset','_decreaseWaiting','uni.network.url-service','getSelections','getMemberID','_loadSheet','InsertRowCommandId','takeUntil','_getCurrentRevision','_sendingTimer','BehaviorSubject','/universer-api/stream/file/upload','UNDEFINED','_createHandler','incrementRevForDocument','infoRsp','univer-pro.collaboration-client.single-active-unit-service','4751184OsIxXJ','_scheduleReconnection','delay','lodash','TextSelectionManagerService','React','params','newValue','socket\x20open.','handleInsertRow','@wendellhu/redi','_onRemoteRejected','COLLAB_SUBMIT_CHANGESET_URL','assign','setShapeProps','endRow','InsertColCommandId','ISnapshotServerService','_drawRange','currentTheme$','onPointerLeaveObserver','LOGIN_URL_KEY','session.connection-failed','font','_messageService','isTransformMutationsWithChangesetFailure','idSuffix','exports','Shape','_unitId','gold400','batchAllowed','INTERNAL_ERROR','isTransformChangesetsSuccess','SYNCED','joinRsp','LIVESHARE_OPERATION','InsertRangeMoveRightCommandId','round','VIEWPORT_KEY','_loadDoc','registerBeforeClose','_collaborationController','encode','toString','onlyLocal','Inject','Starting','BuiltInUIPart','url(#off-line-single_clip0_910_343)','_transformUndoredo','_scheduleClearOtherTimer','drawWith','updateOfflineData','fromEvent','eventID','1338960qTbhIA','image/bmp','transformIMECache','purple300','_replaceFileID','post','location','switchMap','COMPRESS_MUTATION_APPLY','UniverSheets','getImageSourceCache','transform','_online','show','ACTIVE_UNIT_EVENT_CHANNEL','getCoordByCell','/object','_onUserJoin','_compressMutationService','_entities','connectInjector','clear','loadOfflineData','add','handleDeleteRangeMoveLeft','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','unitID','ranges','_removeRoom','0\x200\x2017\x2016','COLORS','getActiveRange','ERROR_IMAGE','getCurrentUser','getInterceptPoints','translate(.97)','arc','generateRandomId','POST','currentSkeleton$','PSEUDO_FETCH_MISSING_RESULT','_imageSourceCache','pending','_checkMissing','4497075pgzvwb','getRelativeCoord','type','LocaleService','c1Prime','mutations','whenReady','UniverCollaborationClient','_getAPIPrefixPath','symbol','SelectionManagerService','UNIVER_SLIDE','SnapshotService','_getSaveTimeout','\x0aCurrent:\x20','LocalCacheService','LICENSE_DISTRO_REJECTED','_themeService','getSheetObject','enableSingleActiveInstanceLock','RevisionService','UniverCollaborationPlugin','@univerjs/docs','some','_socket$','_undoStacks','Injector','UniverRpc','_notificationService','_redoStacks','#fff','toRgbString','_collaborationPaused','state','url','_hover','UNIVER_UNKNOWN','reject','DeleteRangeMoveUpCommandId','putCollaborators','_setupBeforeClosingHandler','[SyncedState]:\x20received\x20rejection.','MSG_FOR_ERROR','_rescheduleHeartbeatEvent','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','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_range','c2Prime','Steady','_getLoginPath','_beforeCloseService','moveTo','_getSendChangesetTimeout','_initStatusListener','_selfUnitIDs','_ws','_clearTimeoutTimer','@univerjs/network','ColorKit','object','_colorAssignService','getMergeData','UNIVER_SHEET','2PlYSUb','_clearScheduledTask','FileId','_handleHover','IImageIoService','sessionStatus','_startSheetCollabCursor','[PendingState]:\x20received\x20acknowledgement.','permissionRejEvent','indexOf','_socket','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','COLLAB_WEB_SOCKET_URL_KEY','_id','WorkbookEditablePermission','skeleton','serializeCombRequest','addObjects','requireSession','event$','univer-online','selections','_exhaustSavingTask','clsx','_lastPointer','[CollaborationSession]','\x20to\x20','_docStateChangeManagerService','forEach','none','IUndoRedoService','_onConnectionFailed','put','RETRY_CONNECTING_INTERVAL','SheetSkeletonManagerService','0\x200\x2016\x2016','debounceTime','UniverCore','_sendHeartbeat','clearInterval','_onMessage','M0\x200H16V16H0z','size','_startCollaboration','init','Module','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','slice','Unknown\x20user','_collabCursorController','_socketService','_waitForHeartbeatResponse','unitId','resend','measureText','handleInsertCol','_session','react','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','json','univer-online-status-title','fetching\x20missing\x20changesets\x20from\x20','@univerjs/sheets-ui'];_0x5a71=function(){return _0x20aa42;};return _0x5a71();}