@univerjs-pro/collaboration-client 0.2.13 → 0.2.14
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/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +30 -30
package/lib/umd/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function _0x3242(_0x3d34f1,_0x177d6e){const _0x41204f=_0x4120();return _0x3242=function(_0x324287,_0x5eac9d){_0x324287=_0x324287-0x115;let _0x25395e=_0x41204f[_0x324287];return _0x25395e;},_0x3242(_0x3d34f1,_0x177d6e);}function _0x4120(){const _0xe92048=['rev','HELLO','_onMessage','debug','m2Prime','substring','newValue','transformIMECache','React','HEARTBEAT_TIMEOUT_KEY','FileId','permission.content','onSendChangeset','_remoteChangesetQueue','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_shouldReportTelemetry','_removeCollabCursors','serializeCombRequest','SUCCUSS','_tryEnsureSocket','IAuthzIoService','_queuedRemoteChangesets','_timeoutTimer','_online','blue400','_state','_onConnectionOpen','_removeRoom','reconnect','Optional','_startDocCollabCursor','/role','actions','SEND_CHANGESET_TIMEOUT','[PendingState]:\x20received\x20rejection.','deserializeToCombResponse','shareReplay','onSyncEditingCollabCursor','urlChange$','UniverInstanceType','getActiveRange','_status$','popstate','_initStatusListener','UPDATE_CURSOR','assignAColorForMemberID','_undoStacks','SUBMIT_CHANGESET','selections','_collabCursorController','_handleJoinEvent','c1Prime','duration','UniverCollaborationPlugin','liveShareNewHost','collaboration-client.offline-data-not-saved','off-line-single','parseChangesetToProtocol','collaboration_new_changeset','univerjs-icon\x20univerjs-icon-','collabStatus.notCollab','_unitOnClients','transformStack\x20failed!','_collabCursorState$','toRgbString','IRenderManagerService','_handleEvent','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','editing\x20status\x20changed\x20to','saveImage','send','getUniverSheetInstance','from','_saveTaskMap','_send','Error','_incrementRevisionNumber','sessionStatus','collaborators','sheetId','SetTextSelectionsOperation','_getSendChangesetTimeout','setCurrentUser','isPermissionRej','_renderManagerService','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_cachedData','_replaceFileID','startTime','_scheduleSaving','updateCollaborator','UPDATE_PERMISSION_OBJ','UniverCore','_onRemoteACK','push','removeMember','disableLocalCache','ISnapshotServerService','UnitEmbedded','getOwnPropertyDescriptor','hovered','LIVESHARE_REQUEST_HOST','addEventListener','CollaborationSocketService','_labelPosition','LocalUndoRedoService','apply','_socket$','_localCacheService','b64DecodeUnicode','COLORS','submit\x20changeset\x20error!','_initCloseConn','RETRY_CONNECTING_INTERVAL_KEY','measureText','setInterval','useDependency','3048471ZiCZyY','BASE64','add','_type','find','encode','univer-offline','PERMISSION_REJ','InsertRangeMoveDownCommandId','univer-online-status','_loadDoc','awaiting','replace','FAIL','[CollaborationState]:\x20apply\x20error!','_transformUndoRedoStack','_docTransformSelectionsService','cursorInfo$','_updateStatus','parseProtocolChangeset','_sendingTimer','getUnitType','_transformRemoteChangesetByIMECache','session.connection-failed','string','univer-online-status-icon','_createHandler','_configService','onlineStatusTitle','takeUntil','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_collaborationSessionService','_startSheetCollabCursor','unload','CONNECTOR_DATA_TOO_LARGE','commentUpdate$','_stopTelemetryCollaborationNewChangeset','connectInjector','file','MessageType','_id','DocIMEInputManagerService','_refreshCollabCursors','result','LocaleService','getRelativeToViewportCoord','history','parse','0\x200\x2017\x2016','onPointerMove$','_executeRemoteChangeset','_disableEditing','objectActions','onlyLocal','UNKNOWN_CODE','lodash/debounce','fill','@univerjs/drawing','MoveRangeCommandId','@univerjs/docs-ui','_registerDependencies','connection\x20error','generateRandomId','_onConflict','_startTelemetryCollaborationNewChangeset','call','NodePositionConvertToRectRange','_colorIndex','/allowed','changesets','sequenceExecute','addObjects','RefRangeService','onPointerLeave$','RichTextEditingMutation','[PendingState]:\x20unhandled\x20univer\x20type:\x20','createCollaborator','useCallback','rxjs','_updateSubUnitFromURLParams','IRemoteInstanceService','failed\x20to\x20apply\x20missed\x20changesets!','DEFAULT_FILE_NAME','ImageIoService','textEncoder','_getMergeRange','JOIN','_snapshotService','_socket','_urlService','_unlockTransition','image/png','XHRHTTPImplementation','_startCollaboration','getActiveSheet','/universer-api/authz','isValidRectRange','state','_transformUndoredo','replaceState','get','_listenToOfflineEvent','[CollaborationSession]','transformByState','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','red300','APPLY_REVISION_CONFILICT','registerRenderModule','_telemetryService','_lockTransition','_transformPreviousActiveRange','_scheduleTimestamp','univer-pro.collaboration-client-socket-service','DocStateChangeManagerService','LIVESHARE_OPERATION','_handler','DataLoaderController','_onFetchMissResult','NO_OTHER_CLIENTS_EDITING','requestParams','_initResize','target','reject','liveShareOperation','debounce','onStarting','type','assign','color','AuthzIoHttpService','range','_getAPIPrefixPath','_hovered','session.collaboration-timeout','LICENSE_EXPORT_SIZE_EXCEEDED','UNIVER_SLIDE','objectID','subscribeEvent','state$','[CollaborationUndoRedoService]','trim','/resources','onRemoteRej','subscribe','clear','on-line-single_clip0_910_349','_scheduleCollaborationTimeoutTimer','@univerjs/sheets-ui','_awaitingChangeset','unknown','COMPRESS_MUTATION_APPLY','Shape','getImageSourceCache','reverse','onTransformRemoteChangesetByIMECache','editingUnit','text','_collabSessionService','_sessionStatus$','COMPLETION_FINISHED','Starting','INGEST','disposeWithMe','SheetSkeletonManagerService','_cursors','LEAVE','isArray','_entityInit$','onMouseMove','slice','awaitingChangeset','headers','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','458642YNKPUt','onStateChange','_handleLeaveEvent','row','UniverCollaborationClientPlugin','YUUMI_RATE_OVER_LIMIT','not_collab','includes','YUUMI_UNABLE_LOAD_URL','current','VIEW_MAIN','fetchMissingChangesets','then','body','doc.mutation.rich-text-editing','getCurrentUser','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','collabStatus.offline','_syncEditingCollabCursorService','_sessions','getAncestorScale','symbol','/object/','pushState','LICENSE_DISTRO_REJECTED','collaboratorID','TOO_MANY_REQUESTS','RegularPolygon','registerHTTPInterceptor','_substituteUndoStack','USERS_ENTER','font','onMissedChangesetFetched','fromCollab','[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.','onRemoteAck','create','filter','clipPath','override','CollaborationEvent','exhaustSavingTask','params','_drawRectRange','displayName','_onRemoteRejected','newCsEvent','Rectangle','_onJoinRoomEvent','IHTTPImplementation','name','pipe','UNAUTHENTICATED','_substituteRedoStack','_localStorageService','3EmZuKt','_colorAssignService','delete','code','ERROR_IMAGE_TYPE','height','OFFLINE','removeEventListener','transformSelections','transformUndoRedo','1867160iIrJmF','MergeInterceptorFactory','members','handleMoveRange','PERMISSION_DENIED','Steady','getMemberID','_createInitialState','sessionStatus$','_docTransformIMECacheService','error','transformChangesets','beginPath','getOwnPropertySymbols','contains','clsx','revision','resize','SNAPSHOT_INVALID_SNAPSHOT','allowed','eventID','?url=','#fff','drawWith','ColorKit','/new_changes','currentTheme$','_onOffline','sheetID','rxjs/operators','unshift','offline','_scheduleClearOtherTimer','_httpService','_isPermissionRej','[DataLoaderController]','_http','_snapshotServerService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','COLLAB_SUBMIT_CHANGESET_URL','_session','focused$','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','_docSkeletonManagerService','csRejEvent','throttleTime','CHANGESET_REVISION_CONFILICT','useRef','dispose$','_clearOtherTimers','selection','UNIVER_PROJECT','Inject','jiqing500','getCoordByCell','unitID','skeleton','_initModules','_loadSheet','_clearRedo','_onConnectionFailed','collab-text-anchor-','top','univer-online-status-title','merge','_roomMembers$','_messageService','createElement','@univerjs/engine-render','update','_getSignURL','@univerjs/core','listCollaborators','toString','_initUnitPermissionChange','close','@univerjs/ui','_createInitialStateImpl','fillRule','UnitSnapshot','src','_eventUnsubscribe','event$','_handleHover','UniverDocs','_updateState','disposeUnit','_getCtorByUniverType','_getRedoStack','subunit','updateMember','_onLocalMutation','HEARTBEAT_INTERVAL','LICENSE_MAX_UNITS_EXCEEDED','@univerjs/sheets','_scheduleHeartbeat','IUIPartsService','status','_getScale','VIEWPORT_KEY','key','indexOf','_assignedColors','_unitID','_updateLocalCache','CollaborationController','getMember','_updateLocalCursor','deserializeRangeWithSheet','deleteCollaborator','_init','setItem','getCurrentRevForDocument','updatePermissionObjEvent','registerOnClose','/collaborator','executeCommand','location','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','delay','baseRev','_cursorShapes','conflict.title','asObservable','mergeOverrideWithDependencies','_cursorInfo$','socket\x20open.','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_toggleOffline','COLLAB_SUBMIT_CHANGESET_URL_KEY','collab-rect-range-','stopTime','JSONX','idSuffix','_updateCollabCursors','collaboration-session-retry','_textBubble','defIds','UNIVER_UNKNOWN','url','_clearUndo','_change$','_lastPointer','fromEvent','updateCursorEvent','isTransformMutationFailure','_onCursorUpdate','getColor','M0\x200H16V16H0z','\x20to\x20','currentSkeleton$','_onRemoteChangeset','enableOfflineEditing','textRanges','infoRsp','AWAITING','getUndoRedoMutationParamsCache','ThemeService','length','SnapshotServerOverHTTPService','_onRecvEvent','Workbook','ThresholdInterceptorFactory','PENDING','_name','map','collaboration.single-unit.warning','_acknowledgedAwaitingChangeset','arc','_disabled','with','width','onCommentUpdate','726174GJaAHd','onTransformChange$','children','set','setAlpha','_roomMembers','svg','_handleHeartbeatEvent','distinctUntilChanged','getCollabEntity','LOGIN_URL_KEY','registerBeforeClose','synced','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_decreaseWaiting','interceptor','getItem','rgba(255,\x20255,\x20255,\x200.01)','_retryCount','mapTo','UniverTelemetry','_getSaveTimeout','memberID','handleInsertCol','black','_collaborationTimeoutTimer','setActiveRange','createSocket','href','now','complete','json','loadOfflineData','addObject','HEADER_MENU','/-/object/-/batch_allowed','_undoRedoService','fetchThroughInterceptors','_getSnapshotAPIPrefix','_singleActiveUnitService','_transformIMECache','take','isTransformMutationsWithChangesetSuccess','on-line-single','error$','put','Rect','JOINING','924759cHubce','[CollaborationEntity]','FromArray','MSG_FOR_ERROR','#FFF','ImageUploadStatusType','max','_memberService','SheetCollaborationEntity','_sendHeartbeat','OnLifecycle','appendMutation','collab-text-range-','IDLE','/universer-api/snapshot/','initWorkbookPermissionChange','_getSheetObject','CollaborationSession','getRenderById','endColumn','_anchor','Plugin','getImage','responseType','HttpImport','bottom','conflict','@univerjs/engine-formula','USERS_LEAVE','enableSingleActiveInstanceLock','_saveCache','APPLY_PERMISSION_DENIED','makeDirty','socket$','_transformSelections','translate(.97)','COMMENT_UPDATE','getUnitOnRev','UniverCollaborationClient','LOCAL_CACHE_INTERVAL_KEY','_imageSourceCache','DisposableCollection','getResourcesRequest','RevisionService','DependentOn','collabStatus.synced','handleDeleteRangeMoveUp','loadDoc','Undefined','_docSyncEditingCollabCursorService','[SyncedState]:\x20received\x20acknowledgement.','handleInsertRow','colorChannel1','backgroundColor','ERROR_EXCEED_SIZE','batchAllowed','SetDocZoomRatioOperation','Tools','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','IBeforeCloseService','setWaitCount','_exhaustRemoteChangesetQueue','clearInterval','save\x20fail\x20reason\x20is\x20','status$','/rev/','[FetchMissState]','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','/block/','registerRefRange','UniverCollaboration','/-/object/list','FETCH_MISSING','getConfig','saveSnapshot','setUndoRedoMutationParamsCache','dispose','_rescheduleHeartbeat','saveSheetBlock','Univer','uni.network.url-service','getSheetBlock','xlink:href','_collaborationController','NodePositionConvertToCursor','runRefRangeMutations','_collaborationPaused','_syncEditingCollabCursor','_removeClearOtherTimer','resend','[SyncedState]:\x20received\x20rejection.','_waitForHeartbeatResponse','Module','defs','defineProperty','BehaviorSubject','_getUploadFileURL','transformMutation','DocSelectionManagerService','SetSelectionsOperation','_injector','_onRefRangeChange','className','&assign=','clearTimeout','RemoveRowCommandId','OffLineSingle','operators','createIdentifier','_scene','method','readAsDataURL','HEARTBEAT','switchMap','_getLoginPath','collabStatus.syncing','[UniverCollaborationClientPlugin]','getSkeleton','url(#on-line-single_clip0_910_349)','IConfigService','_transformStack','searchParams','_getAnchorBounding','_uiPartsService','LIVESHARE_FETCH_OPERATIONS','enableAuthServer','_transformService','session','deepClone','incrementRevForDocument','_drawTextRange','POST','UNIVER_DOC','_onUserLeave','SNAPSHOT_HAS_BEEN_REMOVED','HEARTBEAT_TIMEOUT','refreshPermission','compose','getCollabEntity$','some','onCommandExecuted','prototype','_socketService','CollaborationEntity','TEXT_RANGE_LAYER_INDEX','HTTPRequest','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','forwardRef','_heartbeatTimer','EffectRefRangId','transformMutationsWithChangeset','fillStyle','snapshot','getUnitStatus$','collaboration-client.config','collab-client.tooltip.reconnect','isTransformChangesetsSuccess','_event$','DocSkeletonManagerService','cmd','syncEditingCollabCursor','getUnitId','_render','routeKey','cursorInfo','_waitCount','size','_permissionService','useObservable','objects','UNIVER_SHEET','path','_state$','IImageIoService','every','sheets','div','post','InsertRowCommandId','getFocusedUnit','_entities','reduce','_getCurrentRevision','/unit/','1em','RECV','CHANGESET_REJ','DeleteRangeMoveLeftCommandId','function','univer-online','getUnhiddenWorksheets','_notificationService','\x0aAfter:\x20','Disposable','has','_docSkeleton','SNAPSHOT_SERVER_URL_KEY','handleDeleteRangeMoveLeft','random','unitId','/universer-api/snapshot','_commentUpdate$','_initStatusComponent','INotificationService','IUniverInstanceService','INVALID_ARGUMENT','ICommandService','_onCursorDelete','createInstance','YUUMI_URL_COL_OUT_OF_RANGE','COLLAB_WEB_SOCKET_URL_KEY','_themeService','_joinRoom','_document','_range','_userManagerService','_clearScheduledTask','image/jpg','unitId\x20is\x20not\x20found','_commentService','userID','UniverIcon','combineLatest','hide','unit-cache-','LICENSE_IMPORT_SIZE_EXCEEDED','_localeService','_initCommandExecutedListener','MUTATION','requireSession','_clearCollaborationTimeoutTimer','roomInfos','getRangePointData','purple300','0\x200\x2016\x2016','RemoveColCommandId','...','next','_showConflictNotification','open$','SnapshotService','ERROR_IMAGE','@univerjs/design','Tooltip','_getAPIPrefix','entries','CompressMutationService','off-line-single_clip0_910_343','verdancy600','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','serializeRangeWithSheet','_ensureSubject','UniverEngineRender','NOT_FOUND','onRemoteChangeset','closeSession','activeSheet$','onlineStatusIcon','close$','toggleOffline','addImageSourceCache','Ready','_updateURLWithCurrentState','setConfig','AWAITING_WITH_PENDING','stringify','56lDROQA','APPLY_REJECT','LIVESHARE_TERMINATE','list','telemetry\x20info\x20is\x20not\x20initialized','ITelemetryService','getDocRanges','_members','append','icon','SYNCED','Warning','triggerDblclick','attrs','getCollabCursors$','RETRY_CONNECTING_MAX_COUNT_KEY','isEditing','DesktopCollaborationStatusDisplayController','getCurrentSelections','getSheetId','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','currentColor','_transitionLocked','forEach','Subject','UNIVER_COLLABORATION_CLIENT_PLUGIN','UNRECOGNIZED','_commandService','onTransformSelections','_onUserJoin','_clearLocalCache','_unitStatus','YUUMI_SUBSCRIPTION_NOT_FOUND','getInterceptPoints','round','_submitChangeset','mutations','online','setTimeout','message$','_socketMessageSubscription','_beforeCloseService','4195035JqlPyg','permissionRejEvent','onPointerEnter$','none','_logService','PSEUDO_FETCH_MISSING_RESULT','getValue','\x20in\x20_schedule.','c2Prime','_drawAnchor','image/jpeg','DocCollaborationEntity','_socketReady','transform','labelPosition','@univerjs/rpc','roomMembers$','[CollaborationSessionService]','InsertSheetMutation','CommandType','listRoles','conflict.content','lineTo','_sendHeartbeatTimer','onload','CollaborationSessionService','toggleOnline','_pendingMutations','_anchorDot','WorkbookEditablePermission','NEW_CHANGESETS','_color','_univerInstanceService','getCurrent','evenodd','_sheetSkeletonManagerService','data','/universer-api/comb','IUndoRedoService','toDisposable','_clearHeartbeatTimer','min','onlineStatus','updateOfflineData','_draw','_candidateSocket','pluginName','replaceTextRanges','_shapes','setParam','_getUndoStack','SNAPSHOT_URL_KEY','getParam','fromEventSubject','_throwTelemetryCollaborationNewChangeset','collabStatus.conflict','save','init','findNodePositionByCharIndex','UniverSheetsUi','8bvDbYB','HttpExport','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','extend','ALREADY_EXISTS','_compressMutationService','confirm','setShapeProps','ranges','&source=','joinRsp','concat','_backgroundColor','getTypeOfUnitAdded$','image/bmp','_hideTimer','LIVESHARE_NEW_HOST','storage','moveTo','Injector','COMPRESS_MUTATION_SEND','_HTTPService','_toggleOnline','tag','getCurrentUnitForType','commentUpdateEvent','/universer-api/file/{fileID}/sign-url','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_sheetTransformSelectionsService','SheetCollabCursorShape','LocalCacheService','m1Prime','onMissingChangesets','UniverDocsUi','LifecycleStages','catch','_selfUnitIDs','RxDisposable','originalMeta','_tryReconnect','[PendingState]:\x20received\x20acknowledgement.','getSheetBySheetId','_context','CollaborationStatusDisplay','APPLY_NON_SEQUENTIAL_REVISION','toStringTag','_retryConnectingTimer','FETCH_MISS','react','socketService','fetch_missing','handleInsertRangeMoveDown','split','saveChangeset','transformRemoteChangeset','localeService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_revisionService','@univerjs-pro/collaboration','url(#off-line-single_clip0_910_343)','ILogService','ILocalStorageService','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','IMessageService','_checkMissing','startsWith','debounceTime','_onCombEvent','updatePermissionPoint','lodash','hasOwnProperty','awaiting_with_pending','collabStatus.fetchMiss','_hover','@univerjs/telemetry','amd','_telemetryInfo','values','pending','14711070jzvRoO','getTypeOfUnitDisposed$','roomMembers','ImageSourceType','UniverUi','IPermissionService','ITransformService','_registerRenderDependencies','_clearTimeoutTimer','fetching\x20missing\x20changesets\x20from\x20','unit','image/gif','mapDocumentTypeToUniverType','_setupBeforeClosingHandler','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','column','restore','_schedule','_fetchMissChangesets','@univerjs/docs','_listenToOnlineEvent','SheetPermissionInitController','{fileID}','title','SetWorksheetActivateCommand','_docStateChangeManagerService','CHANGESET_ACK','_initMergeInterceptor','isInternalEditorID','collabCursorState$','objectType','_applyRemoteChangeset','handleIRemoveCol','UniverDrawing','NOT_COLLAB','SHOULD_CLOSE_CONN','_config','Unknown\x20user','getViewport','removeParam','ONLINE','_refRangeService','HTTPService','isTransformMutationsWithChangesetFailure','getRoom','getTime','UNKNOWN_CMD','OTHER_CLIENTS_EDITING','unsubscribe','show'];_0x4120=function(){return _0xe92048;};return _0x4120();}(function(_0x31114d,_0x2a6816){const _0x11b25d=_0x3242,_0x37db2a=_0x31114d();while(!![]){try{const _0x3d1cb6=parseInt(_0x11b25d(0x52f))/0x1*(parseInt(_0x11b25d(0x4f8))/0x2)+parseInt(_0x11b25d(0x1e5))/0x3+-parseInt(_0x11b25d(0x539))/0x4+-parseInt(_0x11b25d(0x319))/0x5+parseInt(_0x11b25d(0x1b5))/0x6*(-parseInt(_0x11b25d(0x2ef))/0x7)+parseInt(_0x11b25d(0x355))/0x8*(parseInt(_0x11b25d(0x44b))/0x9)+parseInt(_0x11b25d(0x3a4))/0xa;if(_0x3d1cb6===_0x2a6816)break;else _0x37db2a['push'](_0x37db2a['shift']());}catch(_0x3dd087){_0x37db2a['push'](_0x37db2a['shift']());}}}(_0x4120,0x81e2d),function(_0x5d3e6e,_0x38363d){const _0x4735e4=_0x3242;typeof exports=='object'&&typeof module<'u'?_0x38363d(exports,require('@univerjs/core'),require('rxjs'),require(_0x4735e4(0x125)),require(_0x4735e4(0x2d7)),require(_0x4735e4(0x154)),require('@univerjs/network'),require(_0x4735e4(0x38f)),require(_0x4735e4(0x39f)),require('@univerjs/docs'),require(_0x4735e4(0x166)),require('@univerjs/docs-ui'),require(_0x4735e4(0x14c)),require('@univerjs/drawing'),require(_0x4735e4(0x200)),require(_0x4735e4(0x482)),require('@univerjs/sheets-ui'),require(_0x4735e4(0x385)),require(_0x4735e4(0x117)),require(_0x4735e4(0x328))):typeof define==_0x4735e4(0x2a1)&&define[_0x4735e4(0x3a0)]?define(['exports',_0x4735e4(0x14f),_0x4735e4(0x499),_0x4735e4(0x125),_0x4735e4(0x2d7),_0x4735e4(0x154),'@univerjs/network',_0x4735e4(0x38f),_0x4735e4(0x39f),_0x4735e4(0x3b7),_0x4735e4(0x166),_0x4735e4(0x486),'@univerjs/engine-render',_0x4735e4(0x484),'@univerjs/engine-formula',_0x4735e4(0x482),_0x4735e4(0x4de),_0x4735e4(0x385),_0x4735e4(0x117),_0x4735e4(0x328)],_0x38363d):(_0x5d3e6e=typeof globalThis<'u'?globalThis:_0x5d3e6e||self,_0x38363d(_0x5d3e6e[_0x4735e4(0x20b)]={},_0x5d3e6e[_0x4735e4(0x432)],_0x5d3e6e[_0x4735e4(0x499)],_0x5d3e6e['rxjs'][_0x4735e4(0x250)],_0x5d3e6e['UniverDesign'],_0x5d3e6e[_0x4735e4(0x3a8)],_0x5d3e6e['UniverNetwork'],_0x5d3e6e[_0x4735e4(0x22b)],_0x5d3e6e[_0x4735e4(0x1c9)],_0x5d3e6e[_0x4735e4(0x15c)],_0x5d3e6e['UniverSheets'],_0x5d3e6e[_0x4735e4(0x376)],_0x5d3e6e[_0x4735e4(0x2e1)],_0x5d3e6e[_0x4735e4(0x3c5)],_0x5d3e6e['UniverEngineFormula'],_0x5d3e6e[_0x4735e4(0x39a)][_0x4735e4(0x4c7)],_0x5d3e6e[_0x4735e4(0x354)],_0x5d3e6e[_0x4735e4(0x3de)],_0x5d3e6e['clsx'],_0x5d3e6e['UniverRpc']));}(this,function(_0x2509f1,_0x3eca57,_0x199df4,_0x46f2f0,_0xf694dc,_0x2ede89,_0x1c2884,_0x1474a0,_0x257ca1,_0x5a15a4,_0x9f218b,_0x58059b,_0x29e386,_0x2a024d,_0x2568c2,_0x7f76a4,_0x346aeb,_0x2b3f02,_0x4b450e,_0x2b3044){'use strict';const _0x3e84f8=_0x3242;var _0x15be70=Object[_0x3e84f8(0x243)],_0x530d6e=(_0x2a040e,_0xfbd25f,_0x46500c)=>_0xfbd25f in _0x2a040e?_0x15be70(_0x2a040e,_0xfbd25f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46500c}):_0x2a040e[_0xfbd25f]=_0x46500c,_0x1de933=(_0x3b741a,_0x5d04a6,_0x3568c8)=>_0x530d6e(_0x3b741a,typeof _0x5d04a6!=_0x3e84f8(0x50d)?_0x5d04a6+'':_0x5d04a6,_0x3568c8);const _0x3ec466='SNAPSHOT_SERVER_URL_KEY',_0xd20306=_0x3e84f8(0x2ad),_0x48129e=_0x3e84f8(0x34c),_0x3580e7=_0x3e84f8(0x3f7),_0x2e0e5e='COLLAB_WEB_SOCKET_URL',_0x640fc5='ws://127.0.0.1:8000/universer-api/comb/connect',_0x14a4f4=_0x3e84f8(0x164),_0x4d3ef7=_0x3e84f8(0x26c),_0x276e46='RETRY_CONNECTING_INTERVAL',_0x424e1f='RETRY_CONNECTING_MAX_COUNT',_0x55047c='LOCAL_CACHE_INTERVAL',_0x11b9bd=_0x3e84f8(0x12f),_0x19d6d8=_0x3e84f8(0x33e),_0x14e0af=_0x3e84f8(0x1bf),_0x3bbd51='/universer-api/oidc/authpage';var _0x121659=(_0x400f94=>(_0x400f94[_0x400f94['UNDEFINED']=0x0]='UNDEFINED',_0x400f94[_0x400f94['OK']=0x1]='OK',_0x400f94[_0x400f94['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x400f94[_0x400f94[_0x3e84f8(0x53d)]=0x3]=_0x3e84f8(0x53d),_0x400f94[_0x400f94[_0x3e84f8(0x2e2)]=0x4]=_0x3e84f8(0x2e2),_0x400f94[_0x400f94[_0x3e84f8(0x52c)]=0x5]=_0x3e84f8(0x52c),_0x400f94[_0x400f94[_0x3e84f8(0x359)]=0x6]=_0x3e84f8(0x359),_0x400f94[_0x400f94[_0x3e84f8(0x2b2)]=0x7]=_0x3e84f8(0x2b2),_0x400f94[_0x400f94[_0x3e84f8(0x512)]=0x8]=_0x3e84f8(0x512),_0x400f94[_0x400f94[_0x3e84f8(0x4ea)]=0x9]=_0x3e84f8(0x4ea),_0x400f94[_0x400f94['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x3e84f8(0x136),_0x400f94[_0x400f94[_0x3e84f8(0x11a)]=0x1771]=_0x3e84f8(0x11a),_0x400f94[_0x400f94[_0x3e84f8(0x26b)]=0x1772]=_0x3e84f8(0x26b),_0x400f94[_0x400f94['APPLY_REJECT']=0x1b59]=_0x3e84f8(0x2f0),_0x400f94[_0x400f94[_0x3e84f8(0x381)]=0x1b5a]=_0x3e84f8(0x381),_0x400f94[_0x400f94[_0x3e84f8(0x4b5)]=0x1b5b]=_0x3e84f8(0x4b5),_0x400f94[_0x400f94[_0x3e84f8(0x204)]=0x1b5c]=_0x3e84f8(0x204),_0x400f94[_0x400f94['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3e84f8(0x46d),_0x400f94[_0x400f94['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3e84f8(0x165),_0x400f94[_0x400f94[_0x3e84f8(0x277)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x400f94[_0x400f94[_0x3e84f8(0x2c6)]=0x232b]=_0x3e84f8(0x2c6),_0x400f94[_0x400f94[_0x3e84f8(0x4d1)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x400f94[_0x400f94[_0x3e84f8(0x510)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x400f94[_0x400f94[_0x3e84f8(0x500)]=0x2711]=_0x3e84f8(0x500),_0x400f94[_0x400f94[_0x3e84f8(0x2b6)]=0x2712]=_0x3e84f8(0x2b6),_0x400f94[_0x400f94[_0x3e84f8(0x4fd)]=0x2713]=_0x3e84f8(0x4fd),_0x400f94[_0x400f94[_0x3e84f8(0x30f)]=0x2714]=_0x3e84f8(0x30f),_0x400f94[_0x400f94[_0x3e84f8(0x309)]=-0x1]=_0x3e84f8(0x309),_0x400f94))(_0x121659||{}),_0x588a36=(_0x374077=>(_0x374077[_0x374077[_0x3e84f8(0x192)]=0x0]=_0x3e84f8(0x192),_0x374077[_0x374077[_0x3e84f8(0x269)]=0x1]='UNIVER_DOC',_0x374077[_0x374077[_0x3e84f8(0x28f)]=0x2]=_0x3e84f8(0x28f),_0x374077[_0x374077[_0x3e84f8(0x4d2)]=0x3]=_0x3e84f8(0x4d2),_0x374077[_0x374077[_0x3e84f8(0x13b)]=0x4]='UNIVER_PROJECT',_0x374077[_0x374077[_0x3e84f8(0x309)]=-0x1]=_0x3e84f8(0x309),_0x374077))(_0x588a36||{}),_0x2c56e2=(_0x2acd9f=>(_0x2acd9f[_0x2acd9f[_0x3e84f8(0x3d2)]=0x0]=_0x3e84f8(0x3d2),_0x2acd9f[_0x2acd9f['HELLO']=0x1]=_0x3e84f8(0x3d7),_0x2acd9f[_0x2acd9f[_0x3e84f8(0x4a1)]=0x2]=_0x3e84f8(0x4a1),_0x2acd9f[_0x2acd9f[_0x3e84f8(0x4f0)]=0x3]=_0x3e84f8(0x4f0),_0x2acd9f[_0x2acd9f[_0x3e84f8(0x4ec)]=0x4]=_0x3e84f8(0x4ec),_0x2acd9f[_0x2acd9f[_0x3e84f8(0x255)]=0x5]=_0x3e84f8(0x255),_0x2acd9f[_0x2acd9f[_0x3e84f8(0x29e)]=0x6]='RECV',_0x2acd9f[_0x2acd9f[_0x3e84f8(0x309)]=-0x1]='UNRECOGNIZED',_0x2acd9f))(_0x2c56e2||{}),_0x4c0f4a=(_0x10dae5=>(_0x10dae5[_0x10dae5[_0x3e84f8(0x481)]=0x0]=_0x3e84f8(0x481),_0x10dae5[_0x10dae5['OK']=0x1]='OK',_0x10dae5[_0x10dae5['FAIL']=0x2]='FAIL',_0x10dae5[_0x10dae5[_0x3e84f8(0x309)]=-0x1]=_0x3e84f8(0x309),_0x10dae5))(_0x4c0f4a||{}),_0x39a188=(_0x42aa35=>(_0x42aa35[_0x42aa35['Undefined']=0x0]=_0x3e84f8(0x215),_0x42aa35[_0x42aa35[_0x3e84f8(0x1fd)]=0x1]='HttpImport',_0x42aa35[_0x42aa35[_0x3e84f8(0x356)]=0x2]=_0x3e84f8(0x356),_0x42aa35[_0x42aa35[_0x3e84f8(0x438)]=0x3]=_0x3e84f8(0x438),_0x42aa35[_0x42aa35['UnitSnapshot']=0x4]=_0x3e84f8(0x157),_0x42aa35[_0x42aa35['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x42aa35))(_0x39a188||{});function _0x588539(_0x592a2a){const _0x29fda5=_0x3e84f8;var _0x8e4b8a,_0xb4d034,_0xe78a86,_0xcca33a;const _0x470673=_0x592a2a[_0x29fda5(0x33d)],_0x1b7fcd=JSON[_0x29fda5(0x47a)](_0x470673);switch(_0x1b7fcd[_0x29fda5(0x284)]){case _0x2c56e2[_0x29fda5(0x255)]:case _0x2c56e2['HELLO']:{const _0x4b4e2d=_0x1b7fcd[_0x29fda5(0x1a2)];return{..._0x1b7fcd,'data':_0x4b4e2d,'cmd':_0x1b7fcd[_0x29fda5(0x284)]};}case _0x2c56e2[_0x29fda5(0x4a1)]:{const _0x319a68=_0x1b7fcd[_0x29fda5(0x35f)];return{..._0x1b7fcd,'data':_0x319a68,'cmd':_0x1b7fcd['cmd']};}case _0x2c56e2[_0x29fda5(0x29e)]:{const _0x2148f8=_0x1b7fcd['collaMsg'];switch(_0x2148f8[_0x29fda5(0x11c)]){case _0x1474a0[_0x29fda5(0x520)][_0x29fda5(0x452)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':(_0x8e4b8a=_0x2148f8[_0x29fda5(0x31a)])==null?void 0x0:_0x8e4b8a['cs']},'cmd':_0x1b7fcd[_0x29fda5(0x284)]};case _0x1474a0[_0x29fda5(0x520)][_0x29fda5(0x3be)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':(_0xb4d034=_0x2148f8['csAckEvent'])==null?void 0x0:_0xb4d034['cs']},'cmd':_0x1b7fcd[_0x29fda5(0x284)]};case _0x1474a0['CollaborationEvent'][_0x29fda5(0x337)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':(_0xe78a86=_0x2148f8[_0x29fda5(0x526)])==null?void 0x0:_0xe78a86['cs']},'cmd':_0x1b7fcd['cmd']};case _0x1474a0[_0x29fda5(0x520)][_0x29fda5(0x29f)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':(_0xcca33a=_0x2148f8[_0x29fda5(0x134)])==null?void 0x0:_0xcca33a['cs']},'cmd':_0x1b7fcd[_0x29fda5(0x284)]};case _0x1474a0[_0x29fda5(0x520)]['UPDATE_CURSOR']:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':_0x2148f8[_0x29fda5(0x198)]},'cmd':_0x1b7fcd['cmd']};case _0x1474a0[_0x29fda5(0x520)][_0x29fda5(0x516)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':_0x2148f8['joinEvent']},'cmd':_0x1b7fcd['cmd']};case _0x1474a0[_0x29fda5(0x520)][_0x29fda5(0x201)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':_0x2148f8['leaveEvent']},'cmd':_0x1b7fcd[_0x29fda5(0x284)]};case _0x1474a0[_0x29fda5(0x520)][_0x29fda5(0x365)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':_0x2148f8[_0x29fda5(0x40c)]},'cmd':_0x1b7fcd[_0x29fda5(0x284)]};case _0x1474a0[_0x29fda5(0x520)][_0x29fda5(0x261)]:case _0x1474a0[_0x29fda5(0x520)][_0x29fda5(0x4bd)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':_0x2148f8[_0x29fda5(0x4c6)]},'cmd':_0x1b7fcd[_0x29fda5(0x284)]};case _0x1474a0[_0x29fda5(0x520)][_0x29fda5(0x2f1)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':_0x2148f8['liveShareNewHost']},'cmd':_0x1b7fcd[_0x29fda5(0x284)]};case _0x1474a0['CollaborationEvent'][_0x29fda5(0x1e8)]:return{..._0x1b7fcd,'data':_0x2148f8,'cmd':_0x1b7fcd[_0x29fda5(0x284)]};case _0x1474a0[_0x29fda5(0x520)][_0x29fda5(0x209)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':_0x2148f8[_0x29fda5(0x36e)]},'cmd':_0x1b7fcd[_0x29fda5(0x284)]};case _0x1474a0['CollaborationEvent'][_0x29fda5(0x431)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':_0x2148f8[_0x29fda5(0x179)]},'cmd':_0x1b7fcd['cmd']};case _0x1474a0[_0x29fda5(0x520)]['SHOULD_CLOSE_CONN']:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':_0x2148f8['shouldCloseConn']},'cmd':_0x1b7fcd[_0x29fda5(0x284)]};default:return _0x1b7fcd;}}default:return _0x1b7fcd;}}function _0x40c916(_0x5b69f2){const _0x411ebc=_0x3e84f8;switch(_0x5b69f2['cmd']){case _0x2c56e2[_0x411ebc(0x255)]:case _0x2c56e2[_0x411ebc(0x3d7)]:return JSON['stringify']({'cmd':_0x5b69f2[_0x411ebc(0x284)],'routeKey':_0x5b69f2['routeKey']});case _0x2c56e2[_0x411ebc(0x4ec)]:{let _0x3c7cec;switch(_0x5b69f2[_0x411ebc(0x33d)]['eventID']){case _0x1474a0[_0x411ebc(0x520)][_0x411ebc(0x402)]:{_0x3c7cec={'eventID':_0x1474a0[_0x411ebc(0x520)][_0x411ebc(0x402)],'updateCursorEvent':_0x5b69f2[_0x411ebc(0x33d)][_0x411ebc(0x33d)]};break;}case _0x1474a0['CollaborationEvent'][_0x411ebc(0x201)]:{_0x3c7cec={'eventID':_0x1474a0[_0x411ebc(0x520)][_0x411ebc(0x201)],'leaveEvent':_0x5b69f2[_0x411ebc(0x33d)][_0x411ebc(0x33d)]};break;}case _0x1474a0[_0x411ebc(0x520)]['USERS_ENTER']:{_0x3c7cec={'eventID':_0x1474a0[_0x411ebc(0x520)][_0x411ebc(0x516)],'joinEvent':_0x5b69f2[_0x411ebc(0x33d)][_0x411ebc(0x33d)]};break;}case _0x1474a0[_0x411ebc(0x520)]['LIVESHARE_NEW_HOST']:{_0x3c7cec={'eventID':_0x1474a0['CollaborationEvent'][_0x411ebc(0x365)],'liveShareNewHost':_0x5b69f2[_0x411ebc(0x33d)][_0x411ebc(0x33d)]};break;}case _0x1474a0[_0x411ebc(0x520)][_0x411ebc(0x4bd)]:{_0x3c7cec={'eventID':_0x1474a0['CollaborationEvent'][_0x411ebc(0x4bd)],'liveShareOperation':_0x5b69f2[_0x411ebc(0x33d)]['data']};break;}case _0x1474a0[_0x411ebc(0x520)][_0x411ebc(0x2f1)]:{_0x3c7cec={'eventID':_0x1474a0['CollaborationEvent'][_0x411ebc(0x2f1)],'liveShareTerminate':_0x5b69f2['data'][_0x411ebc(0x33d)]};break;}case _0x1474a0[_0x411ebc(0x520)][_0x411ebc(0x43b)]:{_0x3c7cec={'eventID':_0x1474a0['CollaborationEvent'][_0x411ebc(0x43b)],'liveShareRequestHost':_0x5b69f2[_0x411ebc(0x33d)][_0x411ebc(0x33d)]};break;}case _0x1474a0[_0x411ebc(0x520)][_0x411ebc(0x261)]:{_0x3c7cec={'eventID':_0x1474a0['CollaborationEvent'][_0x411ebc(0x261)]};break;}default:_0x3c7cec={'eventID':_0x5b69f2[_0x411ebc(0x33d)][_0x411ebc(0x11c)]};}return JSON[_0x411ebc(0x2ee)]({'cmd':_0x5b69f2[_0x411ebc(0x284)],'routeKey':_0x5b69f2[_0x411ebc(0x288)],'collaMsg':_0x3c7cec});}case _0x2c56e2[_0x411ebc(0x4a1)]:return JSON[_0x411ebc(0x2ee)]({'cmd':_0x5b69f2['cmd'],'routeKey':_0x5b69f2[_0x411ebc(0x288)],'joinReq':_0x5b69f2['data']});case _0x2c56e2[_0x411ebc(0x4f0)]:return JSON[_0x411ebc(0x2ee)]({'cmd':_0x5b69f2[_0x411ebc(0x284)],'routeKey':_0x5b69f2[_0x411ebc(0x288)],'leaveReq':_0x5b69f2['data']});default:throw new Error(_0x411ebc(0x508));}}var _0x4f5cb9=Object[_0x3e84f8(0x243)],_0x363018=Object[_0x3e84f8(0x439)],_0x113178=(_0x3aa472,_0x5d7ccd,_0x1d8b30,_0x23e786)=>{for(var _0x25ad6f=_0x23e786>0x1?void 0x0:_0x23e786?_0x363018(_0x5d7ccd,_0x1d8b30):_0x5d7ccd,_0x5589da=_0x3aa472['length']-0x1,_0x369c28;_0x5589da>=0x0;_0x5589da--)(_0x369c28=_0x3aa472[_0x5589da])&&(_0x25ad6f=(_0x23e786?_0x369c28(_0x5d7ccd,_0x1d8b30,_0x25ad6f):_0x369c28(_0x25ad6f))||_0x25ad6f);return _0x23e786&&_0x25ad6f&&_0x4f5cb9(_0x5d7ccd,_0x1d8b30,_0x25ad6f),_0x25ad6f;},_0x12522c=(_0x36417b,_0x2f22f4)=>(_0x4d6e8e,_0x4ba615)=>_0x2f22f4(_0x4d6e8e,_0x4ba615,_0x36417b);const _0x484b9f=_0x3eca57[_0x3e84f8(0x251)](_0x3e84f8(0x4bb));function _0x8fa044(_0x3a9430,_0x3dc574,_0x2f0618){const _0x43ebb2=_0x3e84f8;return _0x3a9430+'/'+_0x3dc574+_0x43ebb2(0x29c)+_0x2f0618+_0x43ebb2(0x121);}_0x2509f1['CollaborationSocketService']=class extends _0x3eca57[_0x3e84f8(0x2a6)]{constructor(_0x3486cc,_0x83e9e0,_0x3b2228,_0x2551ed,_0xe4fe5b){const _0x103724=_0x3e84f8;super(),this[_0x103724(0x12c)]=_0x3486cc,this['_ws']=_0x83e9e0,this['_configService']=_0x3b2228,this[_0x103724(0x31d)]=_0x2551ed,this[_0x103724(0x12d)]=_0xe4fe5b;}[_0x3e84f8(0x1d0)](_0x43e8c1){const _0x3d8fe0=_0x3e84f8,_0xd9ca2c=this['_ws'][_0x3d8fe0(0x1d0)](_0x43e8c1);if(!_0xd9ca2c)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x1f6fd0=new _0x3eca57[(_0x3d8fe0(0x20e))](),_0x4fa577=new _0x199df4[(_0x3d8fe0(0x307))]();_0x1f6fd0[_0x3d8fe0(0x44d)](_0xd9ca2c[_0x3d8fe0(0x2e7)]['subscribe'](_0x3c7606=>_0x4fa577[_0x3d8fe0(0x2d2)](_0x3c7606))),_0x1f6fd0[_0x3d8fe0(0x44d)](_0x3eca57[_0x3d8fe0(0x340)](()=>_0x4fa577[_0x3d8fe0(0x1d3)]()));const _0x377239=new _0x199df4[(_0x3d8fe0(0x307))]();_0x1f6fd0[_0x3d8fe0(0x44d)](_0xd9ca2c[_0x3d8fe0(0x1e1)]['subscribe'](_0x432e47=>_0x377239[_0x3d8fe0(0x2d2)](_0x432e47))),_0x1f6fd0[_0x3d8fe0(0x44d)](_0x3eca57['toDisposable'](()=>_0x377239[_0x3d8fe0(0x1d3)]()));const _0x182b00=new _0x199df4['Subject']();_0x1f6fd0['add'](_0xd9ca2c[_0x3d8fe0(0x316)][_0x3d8fe0(0x4da)](_0x3d7fb3=>{const _0x3d173d=_0x588539(_0x3d7fb3);_0x182b00['next'](_0x3d173d);})),_0x1f6fd0[_0x3d8fe0(0x44d)](_0x3eca57[_0x3d8fe0(0x340)](()=>_0x182b00['complete']()));let _0x5a7b3b;const _0xdb9fb4=()=>{const _0x1ae2b5=_0x3d8fe0;_0x377239[_0x1ae2b5(0x2d2)](new Event(_0x1ae2b5(0x488))),_0x4fa577['next'](new CloseEvent(_0x1ae2b5(0x488))),_0x5a7b3b['close']();};return _0x5a7b3b={'memberID':'','close$':_0x4fa577[_0x3d8fe0(0x183)](),'error$':_0x377239[_0x3d8fe0(0x183)](),'open$':_0xd9ca2c[_0x3d8fe0(0x2d4)],'message$':_0x182b00[_0x3d8fe0(0x183)](),'send':_0x1d0448=>{const _0x443be2=_0x3d8fe0;if(_0x1d0448[_0x443be2(0x284)]===_0x2c56e2[_0x443be2(0x4ec)]){if(_0x1d0448[_0x443be2(0x33d)][_0x443be2(0x11c)]===_0x1474a0[_0x443be2(0x520)]['SUBMIT_CHANGESET']){this[_0x443be2(0x312)](_0x5a7b3b,_0x1d0448[_0x443be2(0x33d)])[_0x443be2(0x378)](_0x2d2568=>{const _0x905df8=_0x443be2;this[_0x905df8(0x31d)][_0x905df8(0x543)](_0x2d2568),_0xdb9fb4();});return;}if(_0x1d0448[_0x443be2(0x33d)][_0x443be2(0x11c)]===_0x1474a0[_0x443be2(0x520)][_0x443be2(0x22d)]){const _0x5a362a=_0x1d0448['data'];this['_fetchMissChangesets'](_0x5a362a)[_0x443be2(0x504)](_0x41af08=>{const _0x334c52=_0x443be2;_0x182b00[_0x334c52(0x2d2)]({'cmd':_0x2c56e2['RECV'],'code':_0x4c0f4a['OK'],'routeKey':_0x5a362a[_0x334c52(0x33d)][_0x334c52(0x13f)],'routeType':'','data':{'eventID':_0x1474a0['CollaborationEvent'][_0x334c52(0x31e)],'data':{'changesets':_0x41af08}}});})[_0x443be2(0x378)](_0x271dba=>{const _0x369811=_0x443be2;this['_logService'][_0x369811(0x543)](_0x271dba),_0xdb9fb4();});return;}}_0xd9ca2c[_0x443be2(0x41c)](_0x40c916(_0x1d0448));},'close':()=>{const _0x46593d=_0x3d8fe0;_0xd9ca2c[_0x46593d(0x153)](),_0x1f6fd0[_0x46593d(0x231)]();}},_0x5a7b3b;}async[_0x3e84f8(0x312)](_0x365a52,_0x4a554b){const _0x3aae15=_0x3e84f8;var _0x287638;const {unitType:_0x456319,unitID:_0x41b2c7,changeset:_0x1a238f}=_0x4a554b[_0x3aae15(0x33d)],_0x3f56eb={'unitID':_0x41b2c7,'memberID':_0x365a52[_0x3aae15(0x1cb)],'type':_0x456319,'changeset':_0x1474a0[_0x3aae15(0x40f)](_0x1a238f)},_0x14b25c=_0x8fa044((_0x287638=this[_0x3aae15(0x466)]['getConfig'](_0x11b9bd))!=null?_0x287638:_0x19d6d8,_0x456319,_0x41b2c7);try{await this[_0x3aae15(0x12c)][_0x3aae15(0x296)](_0x14b25c,{'body':_0x3f56eb});}catch(_0x4ce169){throw this[_0x3aae15(0x31d)]['error'](_0x3aae15(0x4b1),_0x3aae15(0x445)),_0x4ce169;}}async[_0x3e84f8(0x3b6)](_0x1b87bb){const _0x462c00=_0x3e84f8,{unitID:_0xcda16a,from:_0x349ba4,to:_0x33af28,unitType:_0x4a527f}=_0x1b87bb[_0x462c00(0x33d)];return(await this[_0x462c00(0x12d)][_0x462c00(0x503)]({'metadata':void 0x0},{'unitID':_0xcda16a,'type':_0x4a527f,'from':_0x349ba4,'to':_0x33af28}))[_0x462c00(0x490)];}},_0x2509f1[_0x3e84f8(0x43d)]=_0x113178([_0x12522c(0x0,_0x3eca57[_0x3e84f8(0x13c)](_0x1c2884[_0x3e84f8(0x3ce)])),_0x12522c(0x1,_0x3eca57[_0x3e84f8(0x13c)](_0x1c2884['WebSocketService'])),_0x12522c(0x2,_0x3eca57[_0x3e84f8(0x25c)]),_0x12522c(0x3,_0x3eca57['ILogService']),_0x12522c(0x4,_0x1474a0[_0x3e84f8(0x437)])],_0x2509f1['CollaborationSocketService']);const _0x5075d6=_0x3e84f8(0x410);function _0x59c7e3(_0x4e5b6d){const _0x531564=_0x3e84f8;return JSON['stringify'](_0x4e5b6d)[_0x531564(0x1a6)];}class _0x1c6422{constructor(){const _0xa123cd=_0x3e84f8;_0x1de933(this,_0xa123cd(0x2ae),new _0x199df4[(_0xa123cd(0x307))]()),_0x1de933(this,_0xa123cd(0x46e),this['_commentUpdate$'][_0xa123cd(0x183)]());}[_0x3e84f8(0x1b4)](_0x2869aa){const _0x103a71=_0x3e84f8;this[_0x103a71(0x2ae)]['next'](_0x2869aa);}}var _0x407f80=Object[_0x3e84f8(0x243)],_0x27bcf4=Object[_0x3e84f8(0x439)],_0x153085=(_0x284084,_0x3892dc,_0xfe51ff,_0x218d70)=>{const _0x49d47d=_0x3e84f8;for(var _0x2b7c09=_0x218d70>0x1?void 0x0:_0x218d70?_0x27bcf4(_0x3892dc,_0xfe51ff):_0x3892dc,_0x4b5096=_0x284084[_0x49d47d(0x1a6)]-0x1,_0x7669cc;_0x4b5096>=0x0;_0x4b5096--)(_0x7669cc=_0x284084[_0x4b5096])&&(_0x2b7c09=(_0x218d70?_0x7669cc(_0x3892dc,_0xfe51ff,_0x2b7c09):_0x7669cc(_0x2b7c09))||_0x2b7c09);return _0x218d70&&_0x2b7c09&&_0x407f80(_0x3892dc,_0xfe51ff,_0x2b7c09),_0x2b7c09;},_0x57210c=(_0x3fbdf3,_0x2f7009)=>(_0x1b64cf,_0x21eb40)=>_0x2f7009(_0x1b64cf,_0x21eb40,_0x3fbdf3);let _0x5df92e=class extends _0x3eca57[_0x3e84f8(0x2a6)]{constructor(_0x2abce,_0x491579){const _0x3f5ce7=_0x3e84f8;super(),_0x1de933(this,_0x3f5ce7(0x1ba),new Map()),(this[_0x3f5ce7(0x339)]=_0x2abce,this['_userManagerService']=_0x491579,this[_0x3f5ce7(0x4ed)](_0x3eca57[_0x3f5ce7(0x340)](_0x199df4[_0x3f5ce7(0x148)](this[_0x3f5ce7(0x339)][_0x3f5ce7(0x3a5)](_0x3eca57['UniverInstanceType']['UNIVER_SHEET'])[_0x3f5ce7(0x52b)](_0x46f2f0[_0x3f5ce7(0x1ad)](_0x4d77bd=>_0x4d77bd['getUnitId']())),this[_0x3f5ce7(0x339)]['getTypeOfUnitDisposed$'](_0x3eca57[_0x3f5ce7(0x3fd)][_0x3f5ce7(0x269)])[_0x3f5ce7(0x52b)](_0x46f2f0['map'](_0x5ac6cc=>_0x5ac6cc[_0x3f5ce7(0x286)]())),this['_univerInstanceService'][_0x3f5ce7(0x3a5)](_0x3eca57[_0x3f5ce7(0x3fd)][_0x3f5ce7(0x4d2)])[_0x3f5ce7(0x52b)](_0x46f2f0[_0x3f5ce7(0x1ad)](_0x5be102=>_0x5be102[_0x3f5ce7(0x286)]())))['subscribe'](_0x1bf140=>this[_0x3f5ce7(0x3f1)](_0x1bf140)))));}[_0x3e84f8(0x428)](_0x3c1f1e){const _0x528b3a=_0x3e84f8;this[_0x528b3a(0x2bc)]['setCurrentUser'](_0x3c1f1e);}[_0x3e84f8(0x507)](){const _0x1c2507=_0x3e84f8;return this[_0x1c2507(0x2bc)][_0x1c2507(0x507)]();}[_0x3e84f8(0x162)](_0x19ecc1,_0x3050de){const _0x1fed1b=_0x3e84f8;let _0x4e9690=this[_0x1fed1b(0x1ba)][_0x1fed1b(0x4af)](_0x19ecc1);_0x4e9690||(_0x4e9690=new _0x214de7(),this[_0x1fed1b(0x1ba)]['set'](_0x19ecc1,_0x4e9690)),_0x4e9690[_0x1fed1b(0x162)](_0x3050de);}[_0x3e84f8(0x435)](_0x2500ed,_0x4d0377){const _0x551d3f=_0x3e84f8,_0x382e45=this[_0x551d3f(0x1ba)][_0x551d3f(0x4af)](_0x2500ed);_0x382e45&&_0x382e45[_0x551d3f(0x435)](_0x4d0377);}[_0x3e84f8(0x3d0)](_0x5e2c90){const _0x35ee0b=_0x3e84f8;return this[_0x35ee0b(0x1ba)][_0x35ee0b(0x4af)](_0x5e2c90);}[_0x3e84f8(0x172)](_0x36324a,_0x5b0d7d){const _0x14d06c=_0x3e84f8,_0xc9eb26=this['_roomMembers'][_0x14d06c(0x4af)](_0x36324a);if(_0xc9eb26)return _0xc9eb26[_0x14d06c(0x172)](_0x5b0d7d);}[_0x3e84f8(0x3f1)](_0x5cdaf0){const _0x417e0f=_0x3e84f8,_0x48ecfd=this[_0x417e0f(0x1ba)][_0x417e0f(0x4af)](_0x5cdaf0);_0x48ecfd&&(_0x48ecfd[_0x417e0f(0x231)](),this[_0x417e0f(0x1ba)][_0x417e0f(0x531)](_0x5cdaf0));}[_0x3e84f8(0x231)](){const _0x40edc4=_0x3e84f8;this[_0x40edc4(0x1ba)][_0x40edc4(0x306)](_0x31dc50=>_0x31dc50[_0x40edc4(0x231)]()),this[_0x40edc4(0x1ba)][_0x40edc4(0x4db)]();}};_0x5df92e=_0x153085([_0x57210c(0x0,_0x3eca57['IUniverInstanceService']),_0x57210c(0x1,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['UserManagerService']))],_0x5df92e);class _0x214de7 extends _0x3eca57[_0x3e84f8(0x2a6)]{constructor(){const _0x4bc0f5=_0x3e84f8;super(...arguments),_0x1de933(this,_0x4bc0f5(0x2f6),new Map());}[_0x3e84f8(0x231)](){const _0x565e82=_0x3e84f8;this[_0x565e82(0x2f6)]['clear']();}[_0x3e84f8(0x162)](_0x4b32fc){const _0xbde22e=_0x3e84f8;this['_members'][_0xbde22e(0x1b8)](_0x4b32fc[_0xbde22e(0x1cb)],_0x4b32fc);}[_0x3e84f8(0x435)](_0x292621){const _0x362cac=_0x3e84f8;this['_members'][_0x362cac(0x531)](_0x292621);}[_0x3e84f8(0x172)](_0x4dbe28){const _0x4b53af=_0x3e84f8;return this['_members'][_0x4b53af(0x4af)](_0x4dbe28);}}var _0x21d5ce=Object[_0x3e84f8(0x243)],_0x1de96a=Object[_0x3e84f8(0x439)],_0x259844=(_0x54126b,_0x33458c,_0x4e97ce,_0x6873ef)=>{const _0x13a540=_0x3e84f8;for(var _0x24d2c8=_0x6873ef>0x1?void 0x0:_0x6873ef?_0x1de96a(_0x33458c,_0x4e97ce):_0x33458c,_0x4eeea9=_0x54126b[_0x13a540(0x1a6)]-0x1,_0x23215f;_0x4eeea9>=0x0;_0x4eeea9--)(_0x23215f=_0x54126b[_0x4eeea9])&&(_0x24d2c8=(_0x6873ef?_0x23215f(_0x33458c,_0x4e97ce,_0x24d2c8):_0x23215f(_0x24d2c8))||_0x24d2c8);return _0x6873ef&&_0x24d2c8&&_0x21d5ce(_0x33458c,_0x4e97ce,_0x24d2c8),_0x24d2c8;},_0x5c74fa=(_0x3a2a94,_0x5a30e2)=>(_0x509337,_0x14254d)=>_0x5a30e2(_0x509337,_0x14254d,_0x3a2a94),_0x39f403=(_0x2f0a3a=>(_0x2f0a3a[_0x2f0a3a[_0x3e84f8(0x1f2)]=0x0]='IDLE',_0x2f0a3a[_0x2f0a3a[_0x3e84f8(0x1e4)]=0x1]='JOINING',_0x2f0a3a[_0x2f0a3a[_0x3e84f8(0x535)]=0x2]=_0x3e84f8(0x535),_0x2f0a3a[_0x2f0a3a[_0x3e84f8(0x3cc)]=0x3]=_0x3e84f8(0x3cc),_0x2f0a3a))(_0x39f403||{});_0x2509f1[_0x3e84f8(0x1f6)]=class extends _0x3eca57['RxDisposable']{constructor(_0x33d4be,_0x4233ce,_0x1cee48,_0x3fc549,_0x513e49,_0x4cf44c,_0x5cd6fe,_0x18757d,_0x4b7e0a,_0x5d0ca8){const _0x82d874=_0x3e84f8;super(),_0x1de933(this,_0x82d874(0x4e9),new _0x199df4[(_0x82d874(0x244))](0x0)),_0x1de933(this,'sessionStatus$',this[_0x82d874(0x4e9)][_0x82d874(0x183)]()),_0x1de933(this,_0x82d874(0x282),new _0x199df4[(_0x82d874(0x307))]()),_0x1de933(this,_0x82d874(0x15a),this['_event$'][_0x82d874(0x183)]()),_0x1de933(this,_0x82d874(0x4a3)),_0x1de933(this,_0x82d874(0x317)),_0x1de933(this,'_collaborationTimeoutTimer'),_0x1de933(this,_0x82d874(0x3e5),!0x1),_0x1de933(this,'_telemetryInfo',null),(this[_0x82d874(0x16f)]=_0x33d4be,this['_logService']=_0x1cee48,this['_beforeCloseService']=_0x3fc549,this[_0x82d874(0x14a)]=_0x513e49,this[_0x82d874(0x466)]=_0x4cf44c,this[_0x82d874(0x2c7)]=_0x5cd6fe,this[_0x82d874(0x1ec)]=_0x18757d,this[_0x82d874(0x2c0)]=_0x4b7e0a,this['_telemetryService']=_0x5d0ca8,this['_shouldReportTelemetry']=!!this[_0x82d874(0x4b7)],_0x4233ce[_0x82d874(0x52b)](_0x199df4[_0x82d874(0x468)](this['dispose$']))[_0x82d874(0x4da)](_0x228dd6=>{const _0x4c485a=_0x82d874;var _0x2f60d3;typeof _0x228dd6>'u'||(this[_0x4c485a(0x4a3)]=_0x228dd6,_0x228dd6?(this[_0x4c485a(0x2b9)](_0x228dd6),this['_socketMessageSubscription']=_0x228dd6[_0x4c485a(0x316)][_0x4c485a(0x4da)](_0x3df310=>{const _0x2d9dd1=_0x4c485a;_0x3df310[_0x2d9dd1(0x288)]===this[_0x2d9dd1(0x16f)]&&this[_0x2d9dd1(0x398)](_0x3df310);})):(this[_0x4c485a(0x34f)](),this[_0x4c485a(0x4e9)]['next'](0x2),(_0x2f60d3=this['_socketMessageSubscription'])==null||_0x2f60d3[_0x4c485a(0x3d4)](),this[_0x4c485a(0x317)]=null));}),this[_0x82d874(0x4ed)](this['_beforeCloseService'][_0x82d874(0x17a)](()=>{const _0x2f9acb=_0x82d874;var _0x3ad064;(_0x3ad064=this[_0x2f9acb(0x4a3)])==null||_0x3ad064[_0x2f9acb(0x41c)]({'cmd':_0x2c56e2[_0x2f9acb(0x4f0)],'data':{'roomID':this[_0x2f9acb(0x16f)]}});})));}get['sessionStatus'](){const _0x1febf7=_0x3e84f8;return this[_0x1febf7(0x4e9)][_0x1febf7(0x31f)]();}[_0x3e84f8(0x53f)](){const _0x41c078=_0x3e84f8;var _0x3b638f,_0x4dbe51;return(_0x4dbe51=(_0x3b638f=this[_0x41c078(0x4a3)])==null?void 0x0:_0x3b638f[_0x41c078(0x1cb)])!=null?_0x4dbe51:null;}[_0x3e84f8(0x231)](){const _0x16a846=_0x3e84f8;super[_0x16a846(0x231)](),this['dispose$'][_0x16a846(0x2d2)](),this['dispose$'][_0x16a846(0x1d3)]();}['close'](){const _0x4d589c=_0x3e84f8;var _0x342331,_0x2dfbfb;this[_0x4d589c(0x34f)](),(_0x342331=this[_0x4d589c(0x4a3)])==null||_0x342331['send']({'cmd':_0x2c56e2[_0x4d589c(0x4f0)],'data':{'roomID':this[_0x4d589c(0x16f)]}}),(_0x2dfbfb=this[_0x4d589c(0x4a3)])==null||_0x2dfbfb[_0x4d589c(0x153)](),this['_event$']['complete'](),this['_sessionStatus$'][_0x4d589c(0x1d3)](),this[_0x4d589c(0x231)]();}[_0x3e84f8(0x398)](_0x3da5ae){const _0x551269=_0x3e84f8;_0x3da5ae[_0x551269(0x284)]===_0x2c56e2['JOIN']?this['_onJoinRoomEvent'](_0x3da5ae):_0x3da5ae[_0x551269(0x284)]===_0x2c56e2[_0x551269(0x29e)]&&this[_0x551269(0x1a8)](_0x3da5ae);}[_0x3e84f8(0x2b9)](_0x1a5f63){const _0x28ad1e=_0x3e84f8;this[_0x28ad1e(0x4e9)]['next'](0x1),_0x1a5f63['send']({'cmd':_0x2c56e2[_0x28ad1e(0x4a1)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x28ad1e(0x16f)]}]}});}[_0x3e84f8(0x528)](_0x4a0c11){const _0x4dee5f=_0x3e84f8;var _0x52721a;if(_0x4a0c11[_0x4dee5f(0x532)]===_0x4c0f4a[_0x4dee5f(0x458)]){this[_0x4dee5f(0x14a)][_0x4dee5f(0x3d5)]({'type':_0xf694dc[_0x4dee5f(0x472)]['Warning'],'content':this[_0x4dee5f(0x2c7)]['t']('session.room-full')}),this[_0x4dee5f(0x4e9)][_0x4dee5f(0x2d2)](0x2);return;}this[_0x4dee5f(0x4e9)][_0x4dee5f(0x2d2)](0x3);const _0x4fc76d=(_0x52721a=_0x4a0c11['data'][_0x4dee5f(0x2cc)][this['_unitID']])==null?void 0x0:_0x52721a[_0x4dee5f(0x53b)];_0x4fc76d&&_0x4fc76d[_0x4dee5f(0x306)](_0x3d6aed=>this[_0x4dee5f(0x1ec)][_0x4dee5f(0x162)](this[_0x4dee5f(0x16f)],_0x3d6aed));}['_onRecvEvent'](_0x2af009){const _0x26edf6=_0x3e84f8;try{const _0x4f8ccd=_0x2af009['data'];switch(_0x4f8ccd[_0x26edf6(0x11c)]){case _0x1474a0[_0x26edf6(0x520)][_0x26edf6(0x516)]:this[_0x26edf6(0x30c)](_0x4f8ccd),this[_0x26edf6(0x282)][_0x26edf6(0x2d2)](_0x4f8ccd);break;case _0x1474a0[_0x26edf6(0x520)][_0x26edf6(0x201)]:this[_0x26edf6(0x26a)](_0x4f8ccd),this[_0x26edf6(0x282)][_0x26edf6(0x2d2)](_0x4f8ccd);break;case _0x1474a0[_0x26edf6(0x520)][_0x26edf6(0x3be)]:this[_0x26edf6(0x46f)](),this[_0x26edf6(0x2cb)](),this['_event$'][_0x26edf6(0x2d2)](_0x4f8ccd);break;case _0x1474a0[_0x26edf6(0x520)]['MSG_FOR_ERROR']:this[_0x26edf6(0x31d)][_0x26edf6(0x543)](_0x26edf6(0x224)+JSON[_0x26edf6(0x2ee)](_0x4f8ccd)),this['_event$'][_0x26edf6(0x2d2)](_0x4f8ccd);break;case _0x1474a0['CollaborationEvent'][_0x26edf6(0x209)]:this[_0x26edf6(0x2c0)][_0x26edf6(0x1b4)](_0x4f8ccd[_0x26edf6(0x33d)]),this['_event$'][_0x26edf6(0x2d2)](_0x4f8ccd);break;default:this[_0x26edf6(0x282)][_0x26edf6(0x2d2)](_0x4f8ccd);}}catch(_0x135c6f){this[_0x26edf6(0x31d)][_0x26edf6(0x543)](_0x135c6f,_0x2af009);}}[_0x3e84f8(0x30c)](_0x572d0d){const _0xd5d516=_0x3e84f8;this[_0xd5d516(0x1ec)][_0xd5d516(0x162)](this[_0xd5d516(0x16f)],_0x572d0d['data']);}['_onUserLeave'](_0xd2a1dd){const _0x41f04b=_0x3e84f8;this[_0x41f04b(0x1ec)][_0x41f04b(0x435)](this[_0x41f04b(0x16f)],_0xd2a1dd[_0x41f04b(0x33d)][_0x41f04b(0x1cb)]);}async[_0x3e84f8(0x41c)](_0x12c553,_0x58c9c0){const _0x448f06=_0x3e84f8;if(this[_0x448f06(0x423)]!==0x3||!this[_0x448f06(0x4a3)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x12c553[_0x448f06(0x11c)]===_0x1474a0[_0x448f06(0x520)][_0x448f06(0x405)]&&(this[_0x448f06(0x4dd)](),this['_startTelemetryCollaborationNewChangeset'](_0x12c553)),this[_0x448f06(0x4a3)][_0x448f06(0x41c)]({'cmd':_0x2c56e2[_0x448f06(0x4ec)],'routeKey':_0x58c9c0,'routeType':'','data':_0x12c553});}catch(_0x3b0ef5){this[_0x448f06(0x31d)][_0x448f06(0x543)](_0x3b0ef5);}}['_scheduleCollaborationTimeoutTimer'](){const _0x49e88e=_0x3e84f8;var _0x13fbcf;this[_0x49e88e(0x1ce)]=window[_0x49e88e(0x315)](()=>{const _0xf89743=_0x49e88e;this['_collaborationTimeoutTimer']=null,this[_0xf89743(0x14a)][_0xf89743(0x3d5)]({'type':_0xf694dc[_0xf89743(0x472)][_0xf89743(0x421)],'content':this[_0xf89743(0x2c7)]['t'](_0xf89743(0x4d0))});},(_0x13fbcf=this[_0x49e88e(0x466)][_0x49e88e(0x22e)](_0x4d3ef7))!=null?_0x13fbcf:0x4e20);}[_0x3e84f8(0x2cb)](){const _0x3ff365=_0x3e84f8;this[_0x3ff365(0x1ce)]&&(clearTimeout(this[_0x3ff365(0x1ce)]),this[_0x3ff365(0x1ce)]=null);}[_0x3e84f8(0x48b)](_0x23b378){const _0x88266=_0x3e84f8;if(!this[_0x88266(0x3e5)])return;const {data:_0x1bf163}=_0x23b378,{unitID:_0x241a9b,changeset:_0x5d0091}=_0x1bf163,{mutations:_0x59af77,type:_0x37ef65}=_0x5d0091;this[_0x88266(0x3a1)]={'unitId':_0x241a9b,'type':_0x37ef65,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x59c7e3(_0x59af77)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x30932b=_0x3e84f8;if(this[_0x30932b(0x3e5)]){if(!this[_0x30932b(0x3a1)]){this[_0x30932b(0x31d)][_0x30932b(0x543)](_0x30932b(0x4b1),_0x30932b(0x2f3));return;}this[_0x30932b(0x3a1)][_0x30932b(0x18b)]=performance[_0x30932b(0x1d2)](),this[_0x30932b(0x3a1)][_0x30932b(0x40a)]=this[_0x30932b(0x3a1)]['stopTime']-this[_0x30932b(0x3a1)][_0x30932b(0x42e)],this[_0x30932b(0x4b7)]['capture'](_0x5075d6,this[_0x30932b(0x3a1)]),this['_telemetryInfo']=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x35f37d=_0x3e84f8;this[_0x35f37d(0x3a1)]=null;}},_0x2509f1[_0x3e84f8(0x1f6)]=_0x259844([_0x5c74fa(0x2,_0x3eca57[_0x3e84f8(0x391)]),_0x5c74fa(0x3,_0x2ede89['IBeforeCloseService']),_0x5c74fa(0x4,_0x2ede89[_0x3e84f8(0x394)]),_0x5c74fa(0x5,_0x3eca57[_0x3e84f8(0x25c)]),_0x5c74fa(0x6,_0x3eca57['Inject'](_0x3eca57[_0x3e84f8(0x477)])),_0x5c74fa(0x7,_0x3eca57['Inject'](_0x5df92e)),_0x5c74fa(0x8,_0x3eca57[_0x3e84f8(0x13c)](_0x1c6422)),_0x5c74fa(0x9,_0x3eca57[_0x3e84f8(0x3f3)](_0x257ca1[_0x3e84f8(0x2f4)]))],_0x2509f1[_0x3e84f8(0x1f6)]);var _0x3b24d0=Object[_0x3e84f8(0x243)],_0x3b1a34=Object['getOwnPropertyDescriptor'],_0xb79613=(_0x4bab46,_0x1ab6c6,_0x1c7ba8,_0x4f15f5)=>{const _0x217af5=_0x3e84f8;for(var _0x477a8f=_0x4f15f5>0x1?void 0x0:_0x4f15f5?_0x3b1a34(_0x1ab6c6,_0x1c7ba8):_0x1ab6c6,_0x14da9b=_0x4bab46[_0x217af5(0x1a6)]-0x1,_0x57c295;_0x14da9b>=0x0;_0x14da9b--)(_0x57c295=_0x4bab46[_0x14da9b])&&(_0x477a8f=(_0x4f15f5?_0x57c295(_0x1ab6c6,_0x1c7ba8,_0x477a8f):_0x57c295(_0x477a8f))||_0x477a8f);return _0x4f15f5&&_0x477a8f&&_0x3b24d0(_0x1ab6c6,_0x1c7ba8,_0x477a8f),_0x477a8f;},_0x8d7f88=(_0x1dcca5,_0x2ca24f)=>(_0x1db838,_0x5895dc)=>_0x2ca24f(_0x1db838,_0x5895dc,_0x1dcca5);_0x2509f1[_0x3e84f8(0x332)]=class extends _0x3eca57[_0x3e84f8(0x2a6)]{constructor(_0x4accc3,_0x208ab9,_0x3b2399,_0x43f559,_0x48de7d,_0x752a4b){const _0x4fdc70=_0x3e84f8;super(),_0x1de933(this,_0x4fdc70(0x441),new _0x199df4[(_0x4fdc70(0x244))](void 0x0)),_0x1de933(this,_0x4fdc70(0x206),this[_0x4fdc70(0x441)]['asObservable']()),_0x1de933(this,_0x4fdc70(0x346),null),_0x1de933(this,_0x4fdc70(0x50b),new Map()),_0x1de933(this,'_status$',new _0x199df4[(_0x4fdc70(0x244))](_0x39f403[_0x4fdc70(0x1f2)])),_0x1de933(this,'status$',this[_0x4fdc70(0x3ff)][_0x4fdc70(0x183)]()),_0x1de933(this,_0x4fdc70(0x325),!0x1),_0x1de933(this,_0x4fdc70(0x383)),_0x1de933(this,_0x4fdc70(0x1c7),0x0),_0x1de933(this,_0x4fdc70(0x330)),_0x1de933(this,_0x4fdc70(0x3ec)),(this[_0x4fdc70(0x249)]=_0x4accc3,this[_0x4fdc70(0x2c7)]=_0x208ab9,this['_messageService']=_0x3b2399,this[_0x4fdc70(0x31d)]=_0x43f559,this[_0x4fdc70(0x466)]=_0x48de7d,this[_0x4fdc70(0x273)]=_0x752a4b);}get[_0x3e84f8(0x4a3)](){const _0x139661=_0x3e84f8;return this[_0x139661(0x441)][_0x139661(0x31f)]();}[_0x3e84f8(0x231)](){const _0x5e905b=_0x3e84f8;super['dispose'](),this[_0x5e905b(0x50b)][_0x5e905b(0x306)](_0x2c180c=>_0x2c180c[_0x5e905b(0x231)]()),this[_0x5e905b(0x50b)]['clear'](),this[_0x5e905b(0x3ff)]['complete']();}async[_0x3e84f8(0x2ca)](_0x1bc9f6){const _0x4d2011=_0x3e84f8;if(this['_sessions'][_0x4d2011(0x2a7)](_0x1bc9f6))return this[_0x4d2011(0x50b)]['get'](_0x1bc9f6);this[_0x4d2011(0x3e9)]();const _0x310f14=this['_injector']['createInstance'](_0x2509f1['CollaborationSession'],_0x1bc9f6,this[_0x4d2011(0x441)][_0x4d2011(0x183)]());return this[_0x4d2011(0x50b)][_0x4d2011(0x1b8)](_0x1bc9f6,_0x310f14),_0x310f14;}[_0x3e84f8(0x2e4)](_0x1f23bd){const _0x20e09e=_0x3e84f8;var _0x51880f;const _0x2e0404=this[_0x20e09e(0x50b)][_0x20e09e(0x4af)](_0x1f23bd);_0x2e0404&&(this['_sessions']['delete'](_0x1f23bd),_0x2e0404[_0x20e09e(0x153)]()),this[_0x20e09e(0x50b)]['size']||(_0x51880f=this[_0x20e09e(0x4a3)])==null||_0x51880f[_0x20e09e(0x153)]();}[_0x3e84f8(0x3f2)](){const _0x2506f4=_0x3e84f8;this[_0x2506f4(0x1c7)]=0x0,this[_0x2506f4(0x383)]!=null&&(clearTimeout(this[_0x2506f4(0x383)]),this[_0x2506f4(0x383)]=null),this[_0x2506f4(0x37c)]();}['_createSocket'](){const _0x2958bf=_0x3e84f8;var _0x4b2ebb;const _0x1a2681=(_0x4b2ebb=this[_0x2958bf(0x466)][_0x2958bf(0x22e)](_0x2e0e5e))!=null?_0x4b2ebb:_0x640fc5,_0x173c1e=this[_0x2958bf(0x273)][_0x2958bf(0x1d0)](_0x1a2681);return this[_0x2958bf(0x346)]=_0x173c1e,_0x173c1e;}[_0x3e84f8(0x3e9)](){const _0x3ee741=_0x3e84f8;var _0x5c3536,_0xf47da8;try{const _0x9ad06=(_0xf47da8=(_0x5c3536=this[_0x3ee741(0x4a3)])!=null?_0x5c3536:this['_candidateSocket'])!=null?_0xf47da8:this['_createSocket']();if(_0x9ad06){const _0xb6bc91=_0x9ad06[_0x3ee741(0x41c)];_0x9ad06[_0x3ee741(0x41c)]=_0x2b3c71=>(this[_0x3ee741(0x232)](),_0xb6bc91[_0x3ee741(0x440)](_0x9ad06,[_0x2b3c71])),_0x9ad06[_0x3ee741(0x316)][_0x3ee741(0x4da)](_0x4dbfda=>this[_0x3ee741(0x3d8)](_0x9ad06,_0x4dbfda)),_0x9ad06[_0x3ee741(0x1e1)][_0x3ee741(0x52b)](_0x46f2f0['take'](0x1))[_0x3ee741(0x4da)](_0x5313bf=>this[_0x3ee741(0x31d)][_0x3ee741(0x543)]('[CollaborationSessionService]:\x20socket\x20error',_0x5313bf)),_0x9ad06['open$'][_0x3ee741(0x52b)](_0x46f2f0['take'](0x1))[_0x3ee741(0x4da)](()=>{this['_onConnectionOpen'](_0x9ad06);}),_0x9ad06[_0x3ee741(0x2e7)]['pipe'](_0x46f2f0[_0x3ee741(0x1de)](0x1))[_0x3ee741(0x4da)](_0x36923d=>{const _0x482391=_0x3ee741;this[_0x482391(0x31d)][_0x482391(0x3d9)](_0x482391(0x32a),'socket\x20close',_0x36923d),this[_0x482391(0x144)]();});}}catch(_0x21d29e){this[_0x3ee741(0x31d)][_0x3ee741(0x543)](_0x21d29e),this[_0x3ee741(0x144)]();}}[_0x3e84f8(0x3f0)](_0x57686e){const _0x50ef97=_0x3e84f8;this[_0x50ef97(0x31d)][_0x50ef97(0x3d9)]('[CollaborationSessionService]',_0x50ef97(0x186)),_0x57686e[_0x50ef97(0x41c)]({'cmd':_0x2c56e2[_0x50ef97(0x3d7)]}),this['_rescheduleHeartbeat'](),this[_0x50ef97(0x4b0)]();}[_0x3e84f8(0x4b0)](){const _0x3b11f2=_0x3e84f8,_0xf261d=()=>{const _0x110156=_0x3242;this[_0x110156(0x123)](),this[_0x110156(0x3b8)](),window[_0x110156(0x536)](_0x110156(0x127),_0xf261d);};window[_0x3b11f2(0x43c)](_0x3b11f2(0x127),_0xf261d);}[_0x3e84f8(0x123)](){const _0x11876d=_0x3e84f8;this[_0x11876d(0x325)]=!0x1,this['_status$']['next'](_0x39f403[_0x11876d(0x535)]),this[_0x11876d(0x441)][_0x11876d(0x2d2)](null),this[_0x11876d(0x3ac)](),this[_0x11876d(0x341)]();}[_0x3e84f8(0x144)](){const _0x3d4aa8=_0x3e84f8;var _0x20ad49;this[_0x3d4aa8(0x123)](),this[_0x3d4aa8(0x1c7)]<((_0x20ad49=this['_configService']['getConfig'](_0x424e1f))!=null?_0x20ad49:0x3)?(this[_0x3d4aa8(0x14a)][_0x3d4aa8(0x3d5)]({'key':_0x3d4aa8(0x18f),'type':_0xf694dc[_0x3d4aa8(0x472)][_0x3d4aa8(0x2fa)],'content':this[_0x3d4aa8(0x2c7)]['t']('session.will-retry')}),this[_0x3d4aa8(0x37c)]()):(this[_0x3d4aa8(0x14a)][_0x3d4aa8(0x3d5)]({'key':_0x3d4aa8(0x18f),'type':_0xf694dc[_0x3d4aa8(0x472)][_0x3d4aa8(0x421)],'content':this['_localeService']['t'](_0x3d4aa8(0x462))}),this[_0x3d4aa8(0x3b8)]());}[_0x3e84f8(0x3b8)](){const _0x1ea8ca=_0x3e84f8,_0x577367=()=>{const _0x42a53c=_0x3242;this[_0x42a53c(0x3f2)](),window[_0x42a53c(0x536)](_0x42a53c(0x314),_0x577367);};window[_0x1ea8ca(0x43c)](_0x1ea8ca(0x314),_0x577367),this[_0x1ea8ca(0x441)][_0x1ea8ca(0x52b)](_0x46f2f0[_0x1ea8ca(0x51d)](_0x174602=>!!_0x174602),_0x46f2f0[_0x1ea8ca(0x1de)](0x1))[_0x1ea8ca(0x4da)](()=>{const _0x3325f0=_0x1ea8ca;window[_0x3325f0(0x536)]('online',_0x577367);});}[_0x3e84f8(0x37c)](){const _0x3e0d82=_0x3e84f8;var _0x46c31e;const _0x47a5f5=this[_0x3e0d82(0x1c7)],_0xf70137=_0x47a5f5===0x0?0x0:((_0x46c31e=this[_0x3e0d82(0x466)][_0x3e0d82(0x22e)](_0x276e46))!=null?_0x46c31e:0x4e20)*0x2**_0x47a5f5;this[_0x3e0d82(0x383)]=window['setTimeout'](()=>{const _0x3fa73d=_0x3e0d82;clearTimeout(this[_0x3fa73d(0x383)]),this['_retryConnectingTimer']=null,this[_0x3fa73d(0x3e9)]();},_0xf70137),this[_0x3e0d82(0x1c7)]+=0x1;}[_0x3e84f8(0x3d8)](_0x247c6c,_0xe0f9e7){const _0x1b8117=_0x3e84f8,{cmd:_0x6f78c}=_0xe0f9e7;_0x6f78c===_0x2c56e2[_0x1b8117(0x3d7)]&&!this[_0x1b8117(0x325)]&&(_0x247c6c[_0x1b8117(0x1cb)]=_0xe0f9e7['data']['memberID'],this['_socket$'][_0x1b8117(0x2d2)](_0x247c6c),this[_0x1b8117(0x3ff)][_0x1b8117(0x2d2)](_0x39f403[_0x1b8117(0x3cc)]),this['_socketReady']=!0x0,this[_0x1b8117(0x346)]=null),_0x6f78c===_0x2c56e2['HEARTBEAT']&&this['_clearTimeoutTimer'](),this[_0x1b8117(0x232)]();}[_0x3e84f8(0x232)](){const _0x5d2c63=_0x3e84f8;var _0x2e04c0;this[_0x5d2c63(0x341)](),this['_sendHeartbeatTimer']=window[_0x5d2c63(0x315)](()=>this['_sendHeartbeat'](),(_0x2e04c0=this[_0x5d2c63(0x466)][_0x5d2c63(0x22e)](_0x14a4f4))!=null?_0x2e04c0:0x7530);}[_0x3e84f8(0x1ee)](){const _0x1c9f29=_0x3e84f8;this[_0x1c9f29(0x4a3)][_0x1c9f29(0x41c)]({'cmd':_0x2c56e2['HEARTBEAT']}),this[_0x1c9f29(0x240)]();}[_0x3e84f8(0x240)](){const _0x13d305=_0x3e84f8;var _0x415767;this[_0x13d305(0x3ec)]=window[_0x13d305(0x315)](()=>this[_0x13d305(0x144)](),(_0x415767=this[_0x13d305(0x466)][_0x13d305(0x22e)](_0x4d3ef7))!=null?_0x415767:0x4e20);}[_0x3e84f8(0x341)](){const _0x3a4b59=_0x3e84f8;this[_0x3a4b59(0x330)]!=null&&(clearTimeout(this[_0x3a4b59(0x330)]),this['_sendHeartbeatTimer']=null);}[_0x3e84f8(0x3ac)](){const _0x4ec255=_0x3e84f8;this[_0x4ec255(0x3ec)]!=null&&(clearTimeout(this[_0x4ec255(0x3ec)]),this[_0x4ec255(0x3ec)]=null);}},_0x2509f1[_0x3e84f8(0x332)]=_0xb79613([_0x8d7f88(0x0,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x368)])),_0x8d7f88(0x1,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x477)])),_0x8d7f88(0x2,_0x2ede89['IMessageService']),_0x8d7f88(0x3,_0x3eca57[_0x3e84f8(0x391)]),_0x8d7f88(0x4,_0x3eca57[_0x3e84f8(0x25c)]),_0x8d7f88(0x5,_0x484b9f)],_0x2509f1[_0x3e84f8(0x332)]);var _0x5cb0ec=Object[_0x3e84f8(0x243)],_0x5b63c5=Object[_0x3e84f8(0x439)],_0x3515c7=(_0x3fde08,_0x1b41ba,_0x38c198,_0x42c373)=>{const _0x5019ca=_0x3e84f8;for(var _0x2de4a2=_0x42c373>0x1?void 0x0:_0x42c373?_0x5b63c5(_0x1b41ba,_0x38c198):_0x1b41ba,_0x588b15=_0x3fde08[_0x5019ca(0x1a6)]-0x1,_0x9676f8;_0x588b15>=0x0;_0x588b15--)(_0x9676f8=_0x3fde08[_0x588b15])&&(_0x2de4a2=(_0x42c373?_0x9676f8(_0x1b41ba,_0x38c198,_0x2de4a2):_0x9676f8(_0x2de4a2))||_0x2de4a2);return _0x42c373&&_0x2de4a2&&_0x5cb0ec(_0x1b41ba,_0x38c198,_0x2de4a2),_0x2de4a2;},_0x30f3eb=(_0x18513d,_0x558814)=>(_0xb23e79,_0x49098a)=>_0x558814(_0xb23e79,_0x49098a,_0x18513d);let _0xd6db42=class{constructor(_0x4bce44,_0x101ff1,_0x196e12){const _0xb33281=_0x3e84f8;this['_injector']=_0x4bce44,this[_0xb33281(0x263)]=_0x101ff1,this[_0xb33281(0x42a)]=_0x196e12;}[_0x3e84f8(0x3dd)](_0x3c56f5){const _0x5f535d=_0x3e84f8;this[_0x5f535d(0x45a)](_0x3c56f5),this['_transformPreviousActiveRange'](_0x3c56f5);}[_0x3e84f8(0x38b)](_0x2447e2){const _0x543be6=_0x3e84f8,{unitID:_0xa23b3}=_0x2447e2,_0x259266=this[_0x543be6(0x42a)][_0x543be6(0x1f7)](_0xa23b3)[_0x543be6(0x1b2)](_0x58059b[_0x543be6(0x474)]),{redoCache:_0x32539f}=_0x259266[_0x543be6(0x1a4)]();if(_0x32539f[_0x543be6(0x1a6)]===0x0)return _0x2447e2;let _0x4c2fcd=_0x3eca57[_0x543be6(0x21e)]['deepClone'](_0x2447e2[_0x543be6(0x313)][0x0]);for(let _0x29a196=0x0;_0x29a196<_0x32539f[_0x543be6(0x1a6)];_0x29a196++){const _0x256743={'id':_0x543be6(0x506),'params':{..._0x32539f[_0x29a196]}},_0x279933=this[_0x543be6(0x263)][_0x543be6(0x246)](_0x4c2fcd,_0x256743,!0x1);if(_0x1474a0[_0x543be6(0x199)](_0x279933))throw _0x279933[_0x543be6(0x543)];_0x4c2fcd=_0x279933[_0x543be6(0x374)];}return{..._0x3eca57[_0x543be6(0x21e)]['deepClone'](_0x2447e2),'mutations':[_0x4c2fcd]};}[_0x3e84f8(0x45a)](_0xba8c7){const _0x2375b1=_0x3e84f8,{unitID:_0x26f96a}=_0xba8c7,_0x48bac7=this['_renderManagerService'][_0x2375b1(0x1f7)](_0x26f96a)[_0x2375b1(0x1b2)](_0x58059b['DocIMEInputManagerService']),{undoCache:_0x4042e1,redoCache:_0x213e9e}=_0x48bac7[_0x2375b1(0x1a4)]();if(_0x4042e1['length']===0x0||_0x213e9e[_0x2375b1(0x1a6)]===0x0)return;const _0x5ca2ac=[],_0x2a5a62=[];let _0x468b3a=_0x3eca57[_0x2375b1(0x21e)][_0x2375b1(0x265)](_0xba8c7[_0x2375b1(0x313)][0x0]),_0x10e007=_0x3eca57[_0x2375b1(0x21e)][_0x2375b1(0x265)](_0xba8c7['mutations'][0x0]);for(let _0x2b914c=_0x4042e1[_0x2375b1(0x1a6)]-0x1;_0x2b914c>=0x0;_0x2b914c--){const _0x1f0e45={'id':'doc.mutation.rich-text-editing','params':{..._0x4042e1[_0x2b914c]}},_0x110a85={'id':_0x2375b1(0x506),'params':{..._0x213e9e[_0x2b914c]}},_0x3c3f49=this[_0x2375b1(0x263)][_0x2375b1(0x246)](_0x468b3a,_0x1f0e45,!0x1),_0x5a7574=this['_transformService'][_0x2375b1(0x246)](_0x10e007,_0x110a85,!0x1);if(_0x1474a0[_0x2375b1(0x199)](_0x3c3f49))throw _0x3c3f49[_0x2375b1(0x543)];if(_0x1474a0[_0x2375b1(0x199)](_0x5a7574))throw _0x5a7574[_0x2375b1(0x543)];_0x5ca2ac['unshift'](_0x3c3f49['m2Prime'][_0x2375b1(0x522)]),_0x2a5a62[_0x2375b1(0x126)](_0x5a7574['m2Prime'][_0x2375b1(0x522)]),_0x468b3a=_0x3c3f49[_0x2375b1(0x374)],_0x10e007=_0x5a7574[_0x2375b1(0x374)];}_0x48bac7[_0x2375b1(0x230)]({'undoCache':_0x5ca2ac,'redoCache':_0x2a5a62});}[_0x3e84f8(0x4b9)](_0x38948f){const _0x45e7cb=_0x3e84f8,{unitID:_0x481154}=_0x38948f,_0x5a78b7=this[_0x45e7cb(0x42a)]['getRenderById'](_0x481154)[_0x45e7cb(0x1b2)](_0x58059b[_0x45e7cb(0x474)]),_0xb7b26c=_0x5a78b7[_0x45e7cb(0x3fe)]();if(_0xb7b26c==null)return;const _0x4242d4=[{'id':_0x45e7cb(0x506),'params':{'unitId':_0x38948f[_0x45e7cb(0x13f)],'actions':null,'textRanges':[_0xb7b26c]}}],_0x300b05=this['_transformService'][_0x45e7cb(0x27b)](_0x38948f,_0x4242d4);if(!_0x1474a0[_0x45e7cb(0x1df)](_0x300b05))throw _0x300b05['error'];const _0x5d4429=_0x300b05['m2Prime'][0x0][_0x45e7cb(0x522)][_0x45e7cb(0x1a1)];Array[_0x45e7cb(0x4f1)](_0x5d4429)&&_0x5d4429[_0x45e7cb(0x1a6)]&&_0x5a78b7[_0x45e7cb(0x1cf)](_0x5d4429[0x0]);}};_0xd6db42=_0x3515c7([_0x30f3eb(0x0,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['Injector'])),_0x30f3eb(0x1,_0x1474a0[_0x3e84f8(0x3aa)]),_0x30f3eb(0x2,_0x29e386[_0x3e84f8(0x417)])],_0xd6db42);var _0x5c3a8a=Object[_0x3e84f8(0x243)],_0xac3277=Object[_0x3e84f8(0x439)],_0x52f689=(_0x4bb3e4,_0x19859d,_0x5d9c44,_0x1665f5)=>{const _0x303676=_0x3e84f8;for(var _0x388e4f=_0x1665f5>0x1?void 0x0:_0x1665f5?_0xac3277(_0x19859d,_0x5d9c44):_0x19859d,_0xe141e=_0x4bb3e4[_0x303676(0x1a6)]-0x1,_0x24cf82;_0xe141e>=0x0;_0xe141e--)(_0x24cf82=_0x4bb3e4[_0xe141e])&&(_0x388e4f=(_0x1665f5?_0x24cf82(_0x19859d,_0x5d9c44,_0x388e4f):_0x24cf82(_0x388e4f))||_0x388e4f);return _0x1665f5&&_0x388e4f&&_0x5c3a8a(_0x19859d,_0x5d9c44,_0x388e4f),_0x388e4f;},_0x11682c=(_0x50da3d,_0x2a5e8f)=>(_0x1633c3,_0x3ff22d)=>_0x2a5e8f(_0x1633c3,_0x3ff22d,_0x50da3d);_0x2509f1['LocalCacheService']=class extends _0x3eca57[_0x3e84f8(0x2a6)]{constructor(_0x5974f3,_0x14e3d9,_0x5085d9,_0x5d1e92,_0x10c26c){const _0x4b088a=_0x3e84f8;super(),_0x1de933(this,_0x4b088a(0x42c),new Map()),_0x1de933(this,_0x4b088a(0x41f),new Map()),_0x1de933(this,_0x4b088a(0x1b1),!0x1),(this['_configService']=_0x5974f3,this[_0x4b088a(0x52e)]=_0x14e3d9,this[_0x4b088a(0x318)]=_0x5085d9,this[_0x4b088a(0x2c7)]=_0x5d1e92,this[_0x4b088a(0x38e)]=_0x10c26c,this[_0x4b088a(0x3b1)]());}[_0x3e84f8(0x436)](){const _0xb60015=_0x3e84f8;this[_0xb60015(0x1b1)]=!0x0;}['enableLocalCache'](){const _0x551b7f=_0x3e84f8;this[_0x551b7f(0x1b1)]=!0x1;}[_0x3e84f8(0x231)](){const _0x4d778b=_0x3e84f8;this[_0x4d778b(0x521)]()[_0x4d778b(0x504)](()=>super[_0x4d778b(0x231)]());}async[_0x3e84f8(0x1d5)](_0x1bfff9){const _0xa74683=_0x3e84f8;return this[_0xa74683(0x1b1)]?null:this[_0xa74683(0x52e)][_0xa74683(0x1c5)](_0x144825(_0x1bfff9));}async['saveOfflineData'](_0x5f198e,_0x6c7a8b){const _0x7633e5=_0x3e84f8;return!!this[_0x7633e5(0x52e)]['setItem'](_0x5f198e,_0x6c7a8b);}['updateOfflineData'](_0x3444d7,_0xfb30a2,_0x1e3221,_0x39701b){const _0x464296=_0x3e84f8,_0x1b7d8c=this[_0x464296(0x38e)][_0x464296(0x178)](_0x3444d7);this[_0x464296(0x42c)][_0x464296(0x1b8)](_0x3444d7,{'unitID':_0x3444d7,'type':_0xfb30a2,'awaitingChangeset':_0x1e3221,'mutations':_0x39701b,'rev':_0x1b7d8c}),this['_saveTaskMap']['has'](_0x3444d7)||this[_0x464296(0x42f)](_0x3444d7);}[_0x3e84f8(0x42f)](_0xbb5e4c){const _0x97be0e=_0x3e84f8,_0x1dbc98=this[_0x97be0e(0x1ca)]();_0x1dbc98===0x0?this[_0x97be0e(0x203)](_0xbb5e4c):this[_0x97be0e(0x41f)][_0x97be0e(0x1b8)](_0xbb5e4c,setTimeout(()=>this['_saveCache'](_0xbb5e4c),_0x1dbc98));}[_0x3e84f8(0x1ca)](){const _0xac4202=_0x3e84f8;var _0xd70ca5;return(_0xd70ca5=this[_0xac4202(0x466)][_0xac4202(0x22e)](_0x55047c))!=null?_0xd70ca5:0x3e8;}[_0x3e84f8(0x203)](_0x3b1f3a){const _0x3cb54d=_0x3e84f8,_0x16ed1e=this['_saveTaskMap'][_0x3cb54d(0x4af)](_0x3b1f3a);return _0x16ed1e!==void 0x0&&window[_0x3cb54d(0x24d)](_0x16ed1e),this[_0x3cb54d(0x52e)][_0x3cb54d(0x177)](_0x144825(_0x3b1f3a),this['_cachedData'][_0x3cb54d(0x4af)](_0x3b1f3a))[_0x3cb54d(0x504)](()=>this[_0x3cb54d(0x41f)][_0x3cb54d(0x531)](_0x3b1f3a));}async[_0x3e84f8(0x521)](){const _0x30bfdf=_0x3e84f8,_0x182b79=[];this[_0x30bfdf(0x41f)][_0x30bfdf(0x306)]((_0x2d2e37,_0x227994)=>{const _0xeefb6d=_0x30bfdf;window[_0xeefb6d(0x24d)](_0x2d2e37),_0x182b79[_0xeefb6d(0x434)](this[_0xeefb6d(0x203)](_0x227994)['then'](()=>{const _0x30274e=_0xeefb6d;this[_0x30274e(0x41f)][_0x30274e(0x531)](_0x227994);}));}),await Promise['all'](_0x182b79);}[_0x3e84f8(0x3b1)](){const _0x37791f=_0x3e84f8;this[_0x37791f(0x4ed)](this[_0x37791f(0x318)][_0x37791f(0x1c0)](()=>{const _0x1b7a3e=_0x37791f;if(this['_saveTaskMap'][_0x1b7a3e(0x28b)])return this[_0x1b7a3e(0x2c7)]['t'](_0x1b7a3e(0x40d));}));}},_0x2509f1['LocalCacheService']=_0x52f689([_0x11682c(0x0,_0x3eca57[_0x3e84f8(0x25c)]),_0x11682c(0x1,_0x3eca57[_0x3e84f8(0x392)]),_0x11682c(0x2,_0x2ede89[_0x3e84f8(0x220)]),_0x11682c(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x477)])),_0x11682c(0x4,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x210)]))],_0x2509f1[_0x3e84f8(0x373)]);function _0x144825(_0x340879){const _0x1a9f1c=_0x3e84f8;return _0x1a9f1c(0x2c5)+_0x340879;}var _0x14fb21=Object[_0x3e84f8(0x243)],_0x591908=Object[_0x3e84f8(0x439)],_0xbbafa5=(_0x2bad3f,_0x30b181,_0x1a7411,_0xf3d99c)=>{const _0x8b10b9=_0x3e84f8;for(var _0x4d01e2=_0xf3d99c>0x1?void 0x0:_0xf3d99c?_0x591908(_0x30b181,_0x1a7411):_0x30b181,_0x15648c=_0x2bad3f[_0x8b10b9(0x1a6)]-0x1,_0x2e9eec;_0x15648c>=0x0;_0x15648c--)(_0x2e9eec=_0x2bad3f[_0x15648c])&&(_0x4d01e2=(_0xf3d99c?_0x2e9eec(_0x30b181,_0x1a7411,_0x4d01e2):_0x2e9eec(_0x4d01e2))||_0x4d01e2);return _0xf3d99c&&_0x4d01e2&&_0x14fb21(_0x30b181,_0x1a7411,_0x4d01e2),_0x4d01e2;},_0xafd83=(_0x29de47,_0x34b72d)=>(_0x46f4df,_0x17d6c7)=>_0x34b72d(_0x46f4df,_0x17d6c7,_0x29de47);function _0x2afc8d(_0x1ef8ef){const _0x169334=_0x3e84f8,{unitID:_0x2caa7f,mutations:_0x351621}=_0x1ef8ef;return{'unitId':_0x2caa7f,'subUnitId':_0x351621[0x0][_0x169334(0x522)]['subUnitId']};}let _0x322a21=class{constructor(_0x560e60,_0x244b14,_0x3dd8a4){this['_injector']=_0x560e60,this['_transformService']=_0x244b14,this['_instanceService']=_0x3dd8a4;}['transformSelections'](_0x58985e){const _0x1e74b1=_0x3e84f8;var _0x3a38cc,_0xda9287,_0xc42cf9,_0x4be2a3,_0xc9473a;const _0x1055fc=this['_injector'][_0x1e74b1(0x4af)](_0x9f218b['SheetsSelectionsService']),{unitId:_0x19176f,subUnitId:_0x14a4d2}=_0x2afc8d(_0x58985e),_0x1a4e84=_0x1055fc['getWorkbookSelections'](_0x19176f)[_0x1e74b1(0x301)](),_0x9f457b=(_0xda9287=(_0x3a38cc=this['_instanceService']['getUnit'](_0x19176f))==null?void 0x0:_0x3a38cc['getActiveSheet']())==null?void 0x0:_0xda9287[_0x1e74b1(0x302)]();if(_0x1a4e84[_0x1e74b1(0x1a6)]===0x0||!_0x19176f||!_0x14a4d2)return;const _0x47ca90=[{'id':_0x9f218b[_0x1e74b1(0x248)]['id'],'params':{'unitId':_0x19176f,'subUnitId':_0x9f457b,'selections':_0x3eca57[_0x1e74b1(0x21e)][_0x1e74b1(0x265)](_0x1a4e84)}}],_0x4fcc7f=this[_0x1e74b1(0x263)][_0x1e74b1(0x27b)](_0x58985e,_0x47ca90);if(!_0x1474a0['isTransformMutationsWithChangesetSuccess'](_0x4fcc7f))throw _0x4fcc7f[_0x1e74b1(0x543)];const _0x47e380=(_0xc9473a=(_0x4be2a3=(_0xc42cf9=_0x4fcc7f[_0x1e74b1(0x3da)][0x0])==null?void 0x0:_0xc42cf9[_0x1e74b1(0x522)])==null?void 0x0:_0x4be2a3[_0x1e74b1(0x406)])!=null?_0xc9473a:_0x1a4e84;Array[_0x1e74b1(0x4f1)](_0x47e380)&&_0x47e380[_0x1e74b1(0x1a6)]&&this[_0x1e74b1(0x249)][_0x1e74b1(0x4af)](_0x3eca57[_0x1e74b1(0x2b3)])[_0x1e74b1(0x17c)](_0x9f218b[_0x1e74b1(0x248)]['id'],{'unitId':_0x19176f,'subUnitId':_0x14a4d2,'selections':_0x47e380});}};_0x322a21=_0xbbafa5([_0xafd83(0x0,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x368)])),_0xafd83(0x1,_0x1474a0[_0x3e84f8(0x3aa)]),_0xafd83(0x2,_0x3eca57['IUniverInstanceService'])],_0x322a21);const _0x39225f=_0x3eca57[_0x3e84f8(0x251)]('univer-pro.collaboration-client.single-active-unit-service');var _0x25e60f=(_0x45867b=>(_0x45867b[_0x45867b['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x3e84f8(0x4c1),_0x45867b[_0x45867b[_0x3e84f8(0x3d3)]=0x1]=_0x3e84f8(0x3d3),_0x45867b))(_0x25e60f||{});const _0x5c56c2=0x7530,_0x5d8ef3='ACTIVE_UNIT_EVENT_CHANNEL';class _0x1bad77 extends _0x3eca57[_0x3e84f8(0x2a6)]{constructor(){const _0x302c57=_0x3e84f8;super(),_0x1de933(this,_0x302c57(0x473),_0x3eca57[_0x302c57(0x21e)][_0x302c57(0x489)]()),_0x1de933(this,'_selfUnitIDs',new Set()),_0x1de933(this,_0x302c57(0x413),new Map()),_0x1de933(this,_0x302c57(0x279),null),_0x1de933(this,_0x302c57(0x139),new Map()),_0x1de933(this,_0x302c57(0x30e),new Map()),this[_0x302c57(0x176)]();}[_0x3e84f8(0x231)](){const _0x382191=_0x3e84f8;super[_0x382191(0x231)](),this[_0x382191(0x139)]['forEach']((_0x5ddb5b,_0x5ac5e3)=>this[_0x382191(0x23d)](_0x5ac5e3)),this[_0x382191(0x279)]&&window[_0x382191(0x223)](this[_0x382191(0x279)]);}[_0x3e84f8(0x27e)](_0x14b5e4){const _0x2ff470=_0x3e84f8;return this['_ensureSubject'](_0x14b5e4)['pipe'](_0x199df4[_0x2ff470(0x1bd)]());}[_0x3e84f8(0x4e6)](_0x1df912){const _0x420fb7=_0x3e84f8;this[_0x420fb7(0x379)][_0x420fb7(0x28b)]===0x0&&this[_0x420fb7(0x167)](),this['_selfUnitIDs'][_0x420fb7(0x44d)](_0x1df912),this[_0x420fb7(0x420)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x1df912],'isForwarded':!0x1});}[_0x3e84f8(0x15e)](_0x185b50){const _0x1eb714=_0x3e84f8;this[_0x1eb714(0x379)]['delete'](_0x185b50),this[_0x1eb714(0x379)][_0x1eb714(0x28b)]===0x0&&this[_0x1eb714(0x279)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x3e84f8(0x176)](){const _0x48716b=_0x3e84f8;this[_0x48716b(0x4ed)](_0x3eca57[_0x48716b(0x340)](_0x199df4[_0x48716b(0x197)](window,_0x48716b(0x366))[_0x48716b(0x4da)](_0x32f4ef=>{const _0x519ac0=_0x48716b;if(_0x32f4ef[_0x519ac0(0x16c)]!==_0x5d8ef3||!_0x32f4ef[_0x519ac0(0x3dc)])return;const _0x190621=JSON[_0x519ac0(0x47a)](_0x32f4ef[_0x519ac0(0x3dc)]);this[_0x519ac0(0x418)](_0x190621);}))),window['addEventListener'](_0x48716b(0x46c),()=>this[_0x48716b(0x420)]({'type':0x1,'memberID':this[_0x48716b(0x473)],'unitIDs':Array[_0x48716b(0x41e)](this[_0x48716b(0x379)])}));}[_0x3e84f8(0x418)](_0x272c15){const _0x9ed315=_0x3e84f8;switch(_0x272c15[_0x9ed315(0x4c9)]){case 0x0:this[_0x9ed315(0x408)](_0x272c15);break;case 0x1:this[_0x9ed315(0x4fa)](_0x272c15);break;case 0x2:this['_handleHeartbeatEvent'](_0x272c15);break;}}['_handleJoinEvent'](_0x42f64c){const _0xd2ce85=_0x3e84f8,{unitIDs:_0x4b62e8,memberID:_0x526718,isForwarded:_0x4d94b8}=_0x42f64c;_0x4b62e8[_0xd2ce85(0x306)](_0x611f9e=>{const _0x7b3865=_0xd2ce85;if(!_0x4d94b8&&this['_unitOnClients']['has'](_0x611f9e)&&this[_0x7b3865(0x2e0)](_0x611f9e)[_0x7b3865(0x2d2)](0x1),!this[_0x7b3865(0x413)][_0x7b3865(0x2a7)](_0x611f9e)||!this[_0x7b3865(0x413)][_0x7b3865(0x4af)](_0x611f9e)[_0x7b3865(0x2a7)](_0x526718)){const _0x1f8fc3=this[_0x7b3865(0x413)]['get'](_0x611f9e)||new Set();_0x1f8fc3[_0x7b3865(0x44d)](_0x526718),this[_0x7b3865(0x413)]['set'](_0x611f9e,_0x1f8fc3),this['_scheduleClearOtherTimer'](_0x526718);}}),_0x4d94b8||this[_0xd2ce85(0x420)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0xd2ce85(0x379)]],'isForwarded':!0x0});}[_0x3e84f8(0x128)](_0x33c5da){const _0xb95003=_0x3e84f8;this[_0xb95003(0x23d)](_0x33c5da);const _0x286456=window['setTimeout'](()=>{const _0x579983=_0xb95003;this[_0x579983(0x413)][_0x579983(0x306)](_0x2e270e=>{const _0x3bc980=_0x579983;_0x2e270e[_0x3bc980(0x531)](_0x33c5da);});},_0x5c56c2*0x2);this[_0xb95003(0x139)][_0xb95003(0x1b8)](_0x33c5da,_0x286456);}[_0x3e84f8(0x23d)](_0x512e9c){const _0x39ce9b=_0x3e84f8;if(this['_clearOtherTimers']['has'](_0x512e9c)){const _0x3a293d=this[_0x39ce9b(0x139)]['get'](_0x512e9c);_0x3a293d&&window[_0x39ce9b(0x24d)](_0x3a293d),this[_0x39ce9b(0x139)][_0x39ce9b(0x1b8)](_0x512e9c,null);}}['_handleLeaveEvent'](_0x517069){const _0xbdf052=_0x3e84f8,{memberID:_0x252695,unitIDs:_0x3f21d5}=_0x517069;_0x3f21d5[_0xbdf052(0x306)](_0x4219b3=>{const _0x504691=_0xbdf052;var _0x7fc5fe;const _0x12a459=this[_0x504691(0x413)][_0x504691(0x4af)](_0x4219b3);_0x12a459&&(_0x12a459[_0x504691(0x531)](_0x252695),(_0x7fc5fe=this[_0x504691(0x2e0)](_0x4219b3))==null||_0x7fc5fe['next'](_0x12a459[_0x504691(0x28b)]===0x0?0x0:0x1));}),this[_0xbdf052(0x23d)](_0x252695);}[_0x3e84f8(0x1bc)](_0x49e5a9){const _0x1c16d5=_0x3e84f8;this[_0x1c16d5(0x128)](_0x49e5a9['memberID']);}[_0x3e84f8(0x420)](_0x54963b){const _0x6bf876=_0x3e84f8;localStorage[_0x6bf876(0x177)](_0x5d8ef3,JSON[_0x6bf876(0x2ee)](_0x54963b));}['_scheduleHeartbeat'](){const _0x4e1e96=_0x3e84f8;this[_0x4e1e96(0x279)]=window[_0x4e1e96(0x449)](()=>{const _0xd588e3=_0x4e1e96;this[_0xd588e3(0x420)]({'type':0x2,'memberID':this['_id']});},_0x5c56c2);}[_0x3e84f8(0x2e0)](_0x353fed){const _0x370441=_0x3e84f8;return this[_0x370441(0x30e)][_0x370441(0x2a7)](_0x353fed)||this[_0x370441(0x30e)]['set'](_0x353fed,new _0x199df4[(_0x370441(0x244))](0x0)),this['_unitStatus']['get'](_0x353fed);}}function _0x2d22be(_0x3b725){const _0x19525f=_0x3e84f8;let _0xbb678b='';for(const _0x17fe3f of _0x3b725){const {startOffset:_0x22623d,endOffset:_0x2d9375,isActive:_0x5376ce}=_0x17fe3f;_0xbb678b[_0x19525f(0x1a6)]&&(_0xbb678b+=','),_0xbb678b+=_0x22623d+':'+_0x2d9375+':'+(_0x5376ce?'1':'0');}return _0xbb678b;}function _0x17e635(_0xf68e59){const _0x2296f2=_0x3e84f8,_0x58db9b=_0xf68e59['split'](','),_0x1cae2a=[];for(const _0x3caa4c of _0x58db9b){const [_0xc44fff,_0x1302f1,_0x4842fc]=_0x3caa4c[_0x2296f2(0x389)](':');_0x1cae2a[_0x2296f2(0x434)]({'startOffset':Number(_0xc44fff),'endOffset':Number(_0x1302f1),'collapsed':_0xc44fff===_0x1302f1,'isActive':_0x4842fc==='1'});}return _0x1cae2a[_0x2296f2(0x270)](_0xb8a0b0=>_0xb8a0b0['isActive'])||(_0x1cae2a[0x0]['isActive']=!0x0),_0x1cae2a;}class _0x2436eb extends _0x3eca57[_0x3e84f8(0x37a)]{constructor(){const _0x38386a=_0x3e84f8;super(...arguments),_0x1de933(this,_0x38386a(0x415),new _0x199df4['BehaviorSubject'](null)),_0x1de933(this,_0x38386a(0x3c1),this[_0x38386a(0x415)][_0x38386a(0x183)]());}['syncEditingCollabCursor'](_0x3a74b8){const _0x5dca99=_0x3e84f8,{unitID:_0x565afa,memberID:_0x258575,textRanges:_0x324797}=_0x3a74b8,_0x6e4bb4=_0x2d22be(_0x324797),_0x5b00c5={'unitID':_0x565afa,'memberID':_0x258575,'selection':_0x6e4bb4};this[_0x5dca99(0x415)]['next'](_0x5b00c5);}}var _0x4cb80f=Object[_0x3e84f8(0x243)],_0x244476=Object[_0x3e84f8(0x439)],_0x23bf96=(_0x2291f9,_0x429101,_0x29d92a,_0x241523)=>{const _0x4e21c2=_0x3e84f8;for(var _0x289159=_0x241523>0x1?void 0x0:_0x241523?_0x244476(_0x429101,_0x29d92a):_0x429101,_0x152e50=_0x2291f9[_0x4e21c2(0x1a6)]-0x1,_0xcdd2f5;_0x152e50>=0x0;_0x152e50--)(_0xcdd2f5=_0x2291f9[_0x152e50])&&(_0x289159=(_0x241523?_0xcdd2f5(_0x429101,_0x29d92a,_0x289159):_0xcdd2f5(_0x289159))||_0x289159);return _0x241523&&_0x289159&&_0x4cb80f(_0x429101,_0x29d92a,_0x289159),_0x289159;},_0x1c824c=(_0x4e06b5,_0x239df2)=>(_0x4c5ee3,_0x121966)=>_0x239df2(_0x4c5ee3,_0x121966,_0x4e06b5);let _0x1fbfda=class{constructor(_0x30c456,_0xb15bcf){const _0x2ce444=_0x3e84f8;this[_0x2ce444(0x249)]=_0x30c456,this[_0x2ce444(0x263)]=_0xb15bcf;}[_0x3e84f8(0x537)](_0x223433){const _0x388a0c=_0x3e84f8;var _0x3bfcc2;const _0x30f788=this[_0x388a0c(0x249)]['get'](_0x5a15a4[_0x388a0c(0x247)]),_0x2bfa28=(_0x3bfcc2=_0x30f788[_0x388a0c(0x2f5)]())!=null?_0x3bfcc2:[];if(_0x2bfa28['length']===0x0)return;const _0xf8f89f=[{'id':_0x388a0c(0x506),'params':{'unitId':_0x223433[_0x388a0c(0x13f)],'actions':null,'textRanges':_0x2bfa28}}],_0x5aef07=this['_transformService'][_0x388a0c(0x27b)](_0x223433,_0xf8f89f);if(!_0x1474a0['isTransformMutationsWithChangesetSuccess'](_0x5aef07))throw _0x5aef07[_0x388a0c(0x543)];const _0x573eea=_0x5aef07[_0x388a0c(0x3da)][0x0]['params']['textRanges'];Array[_0x388a0c(0x4f1)](_0x573eea)&&_0x573eea['length']&&_0x30f788[_0x388a0c(0x348)](_0x573eea,!0x1);}};_0x1fbfda=_0x23bf96([_0x1c824c(0x0,_0x3eca57['Inject'](_0x3eca57['Injector'])),_0x1c824c(0x1,_0x1474a0[_0x3e84f8(0x3aa)])],_0x1fbfda);const _0x2ebfc7=new Set([_0x9f218b[_0x3e84f8(0x32b)]['id']]);function _0x14af56(_0x3120e9,_0x77e837,_0x59ecc4,_0x420dac,_0x4e5630){const _0x349f07=_0x3e84f8;var _0x10dcc4,_0x301297,_0xeea1a6,_0x2596a6;const _0x45c31d=[];for(const _0x4d5e88 of _0x3120e9)if(_0x2ebfc7['has'](_0x4d5e88['id'])){if(_0x45c31d[_0x349f07(0x1a6)]>0x0)break;_0x45c31d[_0x349f07(0x434)](_0x4d5e88);break;}else _0x45c31d[_0x349f07(0x434)](_0x4d5e88);const _0x1eb19b=(_0x301297=(_0x10dcc4=_0x4e5630['getCurrentUser']())==null?void 0x0:_0x10dcc4['userID'])!=null?_0x301297:'unknown',_0xcfbe7=(_0x2596a6=(_0xeea1a6=_0x4e5630[_0x349f07(0x507)]())==null?void 0x0:_0xeea1a6[_0x349f07(0x1cb)])!=null?_0x2596a6:_0x349f07(0x4e0);return{'changeset':{'unitID':_0x77e837,'type':_0x1474a0[_0x349f07(0x3b0)](_0x59ecc4[_0x349f07(0x460)](_0x77e837)),'baseRev':_0x420dac['getCurrentRevForDocument'](_0x77e837),'revision':0x0,'userID':_0x1eb19b,'memberID':_0xcfbe7,'mutations':_0x45c31d},'pendingMutations':_0x3120e9[_0x349f07(0x4f4)](_0x45c31d[_0x349f07(0x1a6)])};}function _0x200bd1(_0x45fecf,_0x34aac0,_0x46e18a,_0x1c7af9,_0x9890ae){const _0x1f2bcf=_0x3e84f8;var _0x4f9fed,_0x18aa8c,_0xbfb22c,_0x40db34;const _0xad6613=[_0x45fecf[_0x1f2bcf(0x29a)]((_0x2f23c4,_0x2572a1)=>{const _0x560587=_0x1f2bcf;var _0x35a62a;const {id:_0x2a8b5f}=_0x2f23c4,{id:_0x343978,type:_0x2c55e2}=_0x2572a1,_0x5bf135=(_0x35a62a=_0x2f23c4[_0x560587(0x522)])!=null?_0x35a62a:{'actions':null},_0x203b4f=_0x2572a1[_0x560587(0x522)];if(_0x2a8b5f&&_0x2a8b5f!==_0x343978)throw new Error(_0x560587(0x419)+_0x2a8b5f+'\x20-\x20'+_0x343978+'.');return{..._0x2f23c4,'id':_0x343978,'type':_0x2c55e2,'params':{'unitId':_0x203b4f['unitId'],'textRanges':_0x203b4f['textRanges'],'actions':_0x3eca57[_0x560587(0x18c)][_0x560587(0x26e)](_0x5bf135[_0x560587(0x3f6)],_0x203b4f['actions'])}};},{})],_0x3645bc=(_0x18aa8c=(_0x4f9fed=_0x9890ae['getCurrentUser']())==null?void 0x0:_0x4f9fed[_0x1f2bcf(0x2c1)])!=null?_0x18aa8c:_0x1f2bcf(0x4e0),_0x11f848=(_0x40db34=(_0xbfb22c=_0x9890ae['getCurrentUser']())==null?void 0x0:_0xbfb22c[_0x1f2bcf(0x1cb)])!=null?_0x40db34:_0x1f2bcf(0x4e0);return{'changeset':{'unitID':_0x34aac0,'type':_0x1474a0[_0x1f2bcf(0x3b0)](_0x46e18a[_0x1f2bcf(0x460)](_0x34aac0)),'baseRev':_0x1c7af9[_0x1f2bcf(0x178)](_0x34aac0),'revision':0x0,'userID':_0x3645bc,'memberID':_0x11f848,'mutations':_0xad6613},'pendingMutations':[]};}const _0x528ed9={'id':_0x9f218b['EmptyMutation']['id'],'type':_0x3eca57[_0x3e84f8(0x32c)]['MUTATION'],'params':{}};var _0x793f6d=Object['defineProperty'],_0x4e7913=Object['getOwnPropertyDescriptor'],_0x17b63f=(_0x2c00ea,_0x3ead92,_0x4ec9b9,_0x588971)=>{const _0x3c6f32=_0x3e84f8;for(var _0x5707d8=_0x588971>0x1?void 0x0:_0x588971?_0x4e7913(_0x3ead92,_0x4ec9b9):_0x3ead92,_0x5e8687=_0x2c00ea[_0x3c6f32(0x1a6)]-0x1,_0x1b89d3;_0x5e8687>=0x0;_0x5e8687--)(_0x1b89d3=_0x2c00ea[_0x5e8687])&&(_0x5707d8=(_0x588971?_0x1b89d3(_0x3ead92,_0x4ec9b9,_0x5707d8):_0x1b89d3(_0x5707d8))||_0x5707d8);return _0x588971&&_0x5707d8&&_0x793f6d(_0x3ead92,_0x4ec9b9,_0x5707d8),_0x5707d8;},_0x66e8c4=(_0x1a82d1,_0x54dd15)=>(_0x57db21,_0x7ceaae)=>_0x54dd15(_0x57db21,_0x7ceaae,_0x1a82d1),_0x4bd68c=(_0x297a7c=>(_0x297a7c[_0x3e84f8(0x3c6)]=_0x3e84f8(0x4fe),_0x297a7c[_0x3e84f8(0x2f9)]=_0x3e84f8(0x1c1),_0x297a7c[_0x3e84f8(0x1ab)]=_0x3e84f8(0x3a3),_0x297a7c[_0x3e84f8(0x1a3)]=_0x3e84f8(0x456),_0x297a7c[_0x3e84f8(0x2ed)]=_0x3e84f8(0x39c),_0x297a7c[_0x3e84f8(0x384)]=_0x3e84f8(0x387),_0x297a7c['CONFLICT']=_0x3e84f8(0x1ff),_0x297a7c[_0x3e84f8(0x535)]='offline',_0x297a7c))(_0x4bd68c||{});class _0x3c556b{constructor(_0x574ffc,_0x58e07c,_0x2d4f9e,_0x52c2d7,_0x4663f5,_0x387c46,_0x227d79,_0x25b4e6,_0x5ef576){const _0x87006c=_0x3e84f8;_0x1de933(this,_0x87006c(0x4df),null),_0x1de933(this,_0x87006c(0x334),[]),(this[_0x87006c(0x13f)]=_0x574ffc,this['type']=_0x58e07c,this[_0x87006c(0x4be)]=_0x4663f5,this[_0x87006c(0x30a)]=_0x387c46,this[_0x87006c(0x1d9)]=_0x227d79,this['_revisionService']=_0x25b4e6,this[_0x87006c(0x442)]=_0x5ef576,this['_awaitingChangeset']=_0x2d4f9e,this[_0x87006c(0x334)]=_0x52c2d7);}[_0x3e84f8(0x395)](_0x390775){const _0x7fe952=_0x3e84f8,_0x5298a3=this[_0x7fe952(0x38e)]['getCurrentRevForDocument'](this[_0x7fe952(0x13f)]);return _0x390775['revision']>_0x5298a3+0x1?(this['_handler'][_0x7fe952(0x375)]({'from':_0x5298a3,'to':_0x390775['revision']-0x1}),!0x0):!0x1;}[_0x3e84f8(0x4ad)](_0x27e4e0){const _0x30a267=_0x3e84f8;this[_0x30a267(0x1d9)][_0x30a267(0x538)](this[_0x30a267(0x13f)],_0x27e4e0);}[_0x3e84f8(0x207)](_0x3c3501){const _0x4b66c7=_0x3e84f8;var _0x12fb1d,_0x576a06;(_0x576a06=(_0x12fb1d=this[_0x4b66c7(0x4be)])[_0x4b66c7(0x30b)])==null||_0x576a06[_0x4b66c7(0x48c)](_0x12fb1d,_0x3c3501);}[_0x3e84f8(0x1dd)](_0x25129d){const _0x5b3949=_0x3e84f8;var _0x484bc3,_0x568c45;return(_0x568c45=(_0x484bc3=this['_handler'])['onTransformIME'])==null?void 0x0:_0x568c45[_0x5b3949(0x48c)](_0x484bc3,_0x25129d);}[_0x3e84f8(0x461)](_0x1dae7b){const _0x52994f=_0x3e84f8;var _0x60a754,_0x2c8549,_0x25f25e;return(_0x25f25e=(_0x2c8549=(_0x60a754=this[_0x52994f(0x4be)])[_0x52994f(0x4e5)])==null?void 0x0:_0x2c8549['call'](_0x60a754,_0x1dae7b))!=null?_0x25f25e:_0x1dae7b;}[_0x3e84f8(0x23c)](_0x31c9f1){const _0x236394=_0x3e84f8;var _0x589898,_0x529b81;if(this[_0x236394(0x4c9)]===_0x588a36[_0x236394(0x269)]){const {unitID:_0x3d1790,mutations:_0x26035f,memberID:_0x272d7c}=_0x31c9f1,_0x236e8a=_0x26035f[0x0][_0x236394(0x522)][_0x236394(0x1a1)];Array[_0x236394(0x4f1)](_0x236e8a)&&_0x236e8a[_0x236394(0x1a6)]>0x0&&((_0x529b81=(_0x589898=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x529b81[_0x236394(0x48c)](_0x589898,{'unitID':_0x3d1790,'memberID':_0x272d7c,'textRanges':_0x236e8a}));}}[_0x3e84f8(0x170)](){const _0x1311bb=_0x3e84f8;this[_0x1311bb(0x442)][_0x1311bb(0x344)](this[_0x1311bb(0x13f)],this[_0x1311bb(0x4c9)],this['_awaitingChangeset'],this[_0x1311bb(0x334)]);}['_getCurrentRevision'](){const _0x1fde57=_0x3e84f8;return this[_0x1fde57(0x38e)][_0x1fde57(0x178)](this[_0x1fde57(0x13f)]);}['_incrementRevisionNumber'](){const _0x3b4b76=_0x3e84f8;this[_0x3b4b76(0x38e)][_0x3b4b76(0x266)](this['unitID']);}['_executeRemoteChangeset'](_0x4ac9ab){const _0x4ceebf=_0x3e84f8;var _0x39d599;const _0x1af30b=this['_transformRemoteChangesetByIMECache'](_0x4ac9ab),_0x1e2d47=_0x3eca57[_0x4ceebf(0x491)](_0x1af30b['mutations'],this[_0x4ceebf(0x30a)],{'fromCollab':!0x0});if(!_0x1e2d47[_0x4ceebf(0x476)])throw _0x1e2d47['error']instanceof Error?_0x1e2d47[_0x4ceebf(0x543)]:new Error((_0x39d599=_0x1e2d47[_0x4ceebf(0x543)])!=null?_0x39d599:_0x4ceebf(0x459));this['_transformIMECache'](_0x1af30b),this[_0x4ceebf(0x4ad)](_0x4ac9ab),this[_0x4ceebf(0x207)](_0x1af30b),this['_syncEditingCollabCursor'](_0x1af30b),this[_0x4ceebf(0x422)]();}}let _0x400828=class extends _0x3c556b{constructor(_0x101c90,_0xd921bb,_0x473662,_0x266b2e,_0x362b26,_0x385af3,_0x3c7bd3,_0x19ad99,_0x200f31,_0x4f5dc6){const _0x15878a=_0x3e84f8;super(_0x101c90,_0xd921bb,null,[],_0x473662,_0x19ad99,_0x3c7bd3,_0x266b2e,_0x362b26),_0x1de933(this,_0x15878a(0x169),_0x15878a(0x1c1)),(this['_injector']=_0x385af3,this[_0x15878a(0x31d)]=_0x200f31,this[_0x15878a(0x263)]=_0x4f5dc6);}['appendMutation'](_0x471e4d){const _0x52e65=_0x3e84f8,_0xd2fd86=this['_injector'][_0x52e65(0x2b5)](_0x5f5d23,this[_0x52e65(0x13f)],this[_0x52e65(0x4c9)],[_0x471e4d],this['_handler']);return _0xd2fd86[_0x52e65(0x3b5)](),_0xd2fd86[_0x52e65(0x170)](),_0xd2fd86;}[_0x3e84f8(0x2e3)](_0x411233){const _0x49df76=_0x3e84f8;if(this[_0x49df76(0x395)](_0x411233))return this[_0x49df76(0x249)]['createInstance'](_0x3d21ae,this[_0x49df76(0x13f)],this['type'],null,[],null,[_0x411233],this[_0x49df76(0x4be)]);try{const _0x99cf6c=this[_0x49df76(0x263)][_0x49df76(0x27b)](_0x411233,[_0x528ed9]);if(_0x1474a0[_0x49df76(0x1df)](_0x99cf6c)){const {c1Prime:_0x3e246c}=_0x99cf6c;return this[_0x49df76(0x47d)](_0x3e246c),this;}throw _0x99cf6c['error'];}catch(_0x28b2a8){return this[_0x49df76(0x31d)][_0x49df76(0x543)](_0x28b2a8),this[_0x49df76(0x48a)](!0x1);}}['_onConflict'](_0x379bdd){const _0x402f91=_0x3e84f8;return this[_0x402f91(0x249)][_0x402f91(0x2b5)](_0x35c7cc,this[_0x402f91(0x13f)],this[_0x402f91(0x4c9)],null,[],this[_0x402f91(0x4be)],_0x379bdd);}[_0x3e84f8(0x51b)](){const _0x45ae45=_0x3e84f8;throw new Error(_0x45ae45(0x217));}[_0x3e84f8(0x4d9)](){const _0xa47771=_0x3e84f8;throw new Error(_0xa47771(0x23f));}[_0x3e84f8(0x2e8)](){const _0x4a221d=_0x3e84f8;return this[_0x4a221d(0x249)][_0x4a221d(0x2b5)](_0x3f060c,this['unitID'],this[_0x4a221d(0x4c9)],null,[],this[_0x4a221d(0x4be)]);}[_0x3e84f8(0x333)](){return this;}[_0x3e84f8(0x23e)](){const _0xdcf8ef=_0x3e84f8;throw new Error(_0xdcf8ef(0x3b2));}['fetchMiss'](){const _0x3169a7=_0x3e84f8,_0x43af52=this[_0x3169a7(0x38e)][_0x3169a7(0x178)](this[_0x3169a7(0x13f)]);return this[_0x3169a7(0x4be)][_0x3169a7(0x375)]({'from':_0x43af52,'to':0x0}),this[_0x3169a7(0x249)]['createInstance'](_0x3d21ae,this[_0x3169a7(0x13f)],this[_0x3169a7(0x4c9)],null,[],null,[],this[_0x3169a7(0x4be)]);}};_0x400828=_0x17b63f([_0x66e8c4(0x3,_0x3eca57['Inject'](_0x1474a0['RevisionService'])),_0x66e8c4(0x4,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1['LocalCacheService'])),_0x66e8c4(0x5,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['Injector'])),_0x66e8c4(0x6,_0x3eca57[_0x3e84f8(0x33f)]),_0x66e8c4(0x7,_0x3eca57[_0x3e84f8(0x2b3)]),_0x66e8c4(0x8,_0x3eca57[_0x3e84f8(0x391)]),_0x66e8c4(0x9,_0x1474a0[_0x3e84f8(0x3aa)])],_0x400828);let _0x5f5d23=class extends _0x3c556b{constructor(_0x7e923c,_0x3fa4eb,_0x3ff6ae,_0x25c654,_0x33bb3b,_0x25d341,_0x5cede5,_0x3cbbba,_0xe7636c,_0x3b2445,_0x5f5389,_0x337937,_0x4bebfd,_0x2ed4f3){const _0x23a8a4=_0x3e84f8;super(_0x7e923c,_0x3fa4eb,null,_0x3ff6ae,_0x25c654,_0x3b2445,_0x2ed4f3,_0x25d341,_0x5cede5),_0x1de933(this,_0x23a8a4(0x169),_0x23a8a4(0x3a3)),_0x1de933(this,_0x23a8a4(0x4ba),null),_0x1de933(this,_0x23a8a4(0x45f),null),(this[_0x23a8a4(0x249)]=_0x33bb3b,this[_0x23a8a4(0x1ec)]=_0x3cbbba,this[_0x23a8a4(0x31d)]=_0xe7636c,this[_0x23a8a4(0x466)]=_0x5f5389,this[_0x23a8a4(0x263)]=_0x337937,this['_univerInstanceService']=_0x4bebfd);}[_0x3e84f8(0x1f0)](_0x5a51b3){const _0x38180e=_0x3e84f8;return this[_0x38180e(0x334)][_0x38180e(0x434)](_0x5a51b3),this[_0x38180e(0x170)](),this;}['onRemoteChangeset'](_0x219f4c){const _0x5e855c=_0x3e84f8;if(this[_0x5e855c(0x395)](_0x219f4c))return this[_0x5e855c(0x2bd)](),this['_injector'][_0x5e855c(0x2b5)](_0x3d21ae,this[_0x5e855c(0x13f)],this[_0x5e855c(0x4c9)],null,this[_0x5e855c(0x334)],null,[_0x219f4c],this[_0x5e855c(0x4be)]);try{const _0x45330b=this[_0x5e855c(0x263)][_0x5e855c(0x27b)](_0x219f4c,this[_0x5e855c(0x334)]);if(_0x1474a0[_0x5e855c(0x1df)](_0x45330b)){const {c1Prime:_0x41a3b7,m2Prime:_0x4874e9}=_0x45330b;this[_0x5e855c(0x47d)](_0x41a3b7);const _0x1a5fc6=this[_0x5e855c(0x249)][_0x5e855c(0x2b5)](_0x5f5d23,this[_0x5e855c(0x13f)],this[_0x5e855c(0x4c9)],_0x4874e9,this[_0x5e855c(0x4be)]);return this[_0x5e855c(0x2bd)](),_0x1a5fc6[_0x5e855c(0x3b5)](this[_0x5e855c(0x4ba)]?Math[_0x5e855c(0x1eb)](0x0,new Date()[_0x5e855c(0x3d1)]()-this[_0x5e855c(0x4ba)]):this[_0x5e855c(0x427)]()),_0x1a5fc6;}throw _0x45330b[_0x5e855c(0x543)];}catch(_0x41af70){return this['_logService'][_0x5e855c(0x543)](_0x41af70),this['_onConflict'](!0x1);}}['onRemoteAck'](){const _0x26906e=_0x3e84f8;throw new Error(_0x26906e(0x37d));}[_0x3e84f8(0x4d9)](){const _0x3d149d=_0x3e84f8;throw new Error(_0x3d149d(0x3f8));}['toggleOffline'](){const _0x23544f=_0x3e84f8;return this['_clearScheduledTask'](),this[_0x23544f(0x249)][_0x23544f(0x2b5)](_0x3f060c,this['unitID'],this[_0x23544f(0x4c9)],null,this[_0x23544f(0x334)],this['_handler']);}['toggleOnline'](){return this;}[_0x3e84f8(0x3b5)](_0x41850b){const _0x421127=_0x3e84f8,_0xfdd4ce=_0x41850b!=null?_0x41850b:this[_0x421127(0x427)]();this[_0x421127(0x4ba)]=new Date()[_0x421127(0x3d1)](),this['_sendingTimer']=window[_0x421127(0x315)](()=>{const _0x1889b3=_0x421127;this[_0x1889b3(0x2bd)]();let _0x3a2ab7=null;switch(this[_0x1889b3(0x4c9)]){case _0x588a36[_0x1889b3(0x28f)]:{_0x3a2ab7=_0x14af56(this[_0x1889b3(0x334)],this[_0x1889b3(0x13f)],this[_0x1889b3(0x339)],this[_0x1889b3(0x38e)],this[_0x1889b3(0x1ec)]);break;}case _0x588a36[_0x1889b3(0x269)]:{this[_0x1889b3(0x334)][_0x1889b3(0x293)](_0x4f3634=>_0x4f3634['id']===_0x5a15a4[_0x1889b3(0x495)]['id'])?_0x3a2ab7=_0x200bd1(this[_0x1889b3(0x334)],this[_0x1889b3(0x13f)],this[_0x1889b3(0x339)],this['_revisionService'],this['_memberService']):_0x3a2ab7=_0x14af56(this[_0x1889b3(0x334)],this['unitID'],this[_0x1889b3(0x339)],this['_revisionService'],this[_0x1889b3(0x1ec)]);break;}default:throw new Error(_0x1889b3(0x496)+this[_0x1889b3(0x4c9)]+_0x1889b3(0x320));}const {changeset:_0x110e3f,pendingMutations:_0x27567e}=_0x3a2ab7;this['_handler'][_0x1889b3(0x3e2)](_0x110e3f);const _0x3dbdc6=_0x27567e[_0x1889b3(0x1a6)]?this[_0x1889b3(0x249)][_0x1889b3(0x2b5)](_0x5018e3,this[_0x1889b3(0x13f)],this[_0x1889b3(0x4c9)],_0x110e3f,_0x27567e,this[_0x1889b3(0x4be)]):this[_0x1889b3(0x249)]['createInstance'](_0x22fd24,this[_0x1889b3(0x13f)],this[_0x1889b3(0x4c9)],_0x110e3f,this['_handler']);_0x3dbdc6[_0x1889b3(0x170)](),this[_0x1889b3(0x4be)][_0x1889b3(0x4f9)](this,_0x3dbdc6);},_0xfdd4ce);}[_0x3e84f8(0x427)](){const _0x37c092=_0x3e84f8;var _0x51439d;return(_0x51439d=this[_0x37c092(0x466)][_0x37c092(0x22e)](_0x3580e7))!=null?_0x51439d:0x7d0;}[_0x3e84f8(0x23e)](){const _0x492732=_0x3e84f8;throw new Error(_0x492732(0x17e));}[_0x3e84f8(0x2bd)](){const _0x3c8768=_0x3e84f8;this[_0x3c8768(0x45f)]!=null&&(clearTimeout(this[_0x3c8768(0x45f)]),this[_0x3c8768(0x45f)]=null);}[_0x3e84f8(0x48a)](_0xe65e51){const _0x5e0ad9=_0x3e84f8;return this[_0x5e0ad9(0x2bd)](),this['_injector'][_0x5e0ad9(0x2b5)](_0x35c7cc,this[_0x5e0ad9(0x13f)],this[_0x5e0ad9(0x4c9)],null,this[_0x5e0ad9(0x334)],this['_handler'],_0xe65e51);}};_0x5f5d23=_0x17b63f([_0x66e8c4(0x4,_0x3eca57['Inject'](_0x3eca57['Injector'])),_0x66e8c4(0x5,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x210)])),_0x66e8c4(0x6,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x373)])),_0x66e8c4(0x7,_0x3eca57[_0x3e84f8(0x13c)](_0x5df92e)),_0x66e8c4(0x8,_0x3eca57[_0x3e84f8(0x391)]),_0x66e8c4(0x9,_0x3eca57[_0x3e84f8(0x2b3)]),_0x66e8c4(0xa,_0x3eca57[_0x3e84f8(0x25c)]),_0x66e8c4(0xb,_0x1474a0[_0x3e84f8(0x3aa)]),_0x66e8c4(0xc,_0x3eca57[_0x3e84f8(0x2b1)]),_0x66e8c4(0xd,_0x3eca57[_0x3e84f8(0x33f)])],_0x5f5d23);let _0x22fd24=class extends _0x3c556b{constructor(_0x2efb0e,_0x2f7790,_0xa45e3f,_0x2ba5e4,_0x2d37b2,_0x34a164,_0x551598,_0x3a6e17,_0x4ab52b,_0x5ea894,_0x1e29f6){const _0x1ba069=_0x3e84f8;super(_0x2efb0e,_0x2f7790,_0xa45e3f,[],_0x2ba5e4,_0x3a6e17,_0x1e29f6,_0x34a164,_0x551598),_0x1de933(this,_0x1ba069(0x169),_0x1ba069(0x456)),(this[_0x1ba069(0x249)]=_0x2d37b2,this[_0x1ba069(0x31d)]=_0x4ab52b,this[_0x1ba069(0x263)]=_0x5ea894);}[_0x3e84f8(0x1f0)](_0x10b281){const _0x1dd200=_0x3e84f8,_0x57fb81=this[_0x1dd200(0x249)]['createInstance'](_0x5018e3,this['unitID'],this['type'],this[_0x1dd200(0x4df)],[_0x10b281],this['_handler']);return _0x57fb81[_0x1dd200(0x170)](),_0x57fb81;}[_0x3e84f8(0x2e3)](_0x12b867){const _0x1ec367=_0x3e84f8;if(this[_0x1ec367(0x395)](_0x12b867))return this[_0x1ec367(0x249)][_0x1ec367(0x2b5)](_0x3d21ae,this[_0x1ec367(0x13f)],this[_0x1ec367(0x4c9)],this['_awaitingChangeset'],[],null,[_0x12b867],this[_0x1ec367(0x4be)]);try{const _0x557b77=this[_0x1ec367(0x263)]['transformChangesets']([_0x12b867],[this['_awaitingChangeset']],!0x1);if(_0x1474a0['isTransformChangesetsSuccess'](_0x557b77)){const {c1Prime:_0x21a396,c2Prime:_0x173692}=_0x557b77;this['_executeRemoteChangeset'](_0x21a396[0x0]),_0x173692[0x0]['baseRev']=this[_0x1ec367(0x29b)]();const _0x5832ed=this[_0x1ec367(0x249)]['createInstance'](_0x22fd24,this[_0x1ec367(0x13f)],this[_0x1ec367(0x4c9)],_0x173692[0x0],this['_handler']);return _0x5832ed['_updateLocalCache'](),_0x5832ed;}return this[_0x1ec367(0x48a)](!0x1);}catch(_0x36ab90){return this[_0x1ec367(0x31d)][_0x1ec367(0x543)](_0x36ab90),this['_onConflict'](!0x1);}}[_0x3e84f8(0x51b)](_0x11c775){const _0x5f262c=_0x3e84f8,_0x20e48c=this[_0x5f262c(0x38e)][_0x5f262c(0x178)](this['unitID']);if(_0x11c775[_0x5f262c(0x118)]<_0x20e48c-0x1)return this;if(this[_0x5f262c(0x395)](_0x11c775))return this[_0x5f262c(0x249)][_0x5f262c(0x2b5)](_0x3d21ae,this['unitID'],this[_0x5f262c(0x4c9)],null,[],this[_0x5f262c(0x4df)],[],this[_0x5f262c(0x4be)]);this['_incrementRevisionNumber']();const _0x443c43=this['_injector'][_0x5f262c(0x2b5)](_0x400828,this[_0x5f262c(0x13f)],this['type'],this[_0x5f262c(0x4be)]);return _0x443c43[_0x5f262c(0x170)](),_0x443c43;}['onRemoteRej'](_0x2fbfd9){const _0x49ce3b=_0x3e84f8;return this[_0x49ce3b(0x48a)](!!(_0x2fbfd9!=null&&_0x2fbfd9[_0x49ce3b(0x429)]));}[_0x3e84f8(0x2e8)](){const _0x5602e8=_0x3e84f8;return this[_0x5602e8(0x249)][_0x5602e8(0x2b5)](_0x3f060c,this[_0x5602e8(0x13f)],this[_0x5602e8(0x4c9)],this['_awaitingChangeset'],[],this['_handler']);}[_0x3e84f8(0x333)](){return this;}[_0x3e84f8(0x23e)](){const _0x19989c=_0x3e84f8;this['_handler'][_0x19989c(0x3e2)](this[_0x19989c(0x4df)]);}[_0x3e84f8(0x48a)](_0xec8dce){const _0x60bf9=_0x3e84f8;return this[_0x60bf9(0x249)]['createInstance'](_0x35c7cc,this[_0x60bf9(0x13f)],this[_0x60bf9(0x4c9)],this['_awaitingChangeset'],[],this[_0x60bf9(0x4be)],_0xec8dce);}};_0x22fd24=_0x17b63f([_0x66e8c4(0x4,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['Injector'])),_0x66e8c4(0x5,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0['RevisionService'])),_0x66e8c4(0x6,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x373)])),_0x66e8c4(0x7,_0x3eca57[_0x3e84f8(0x2b3)]),_0x66e8c4(0x8,_0x3eca57[_0x3e84f8(0x391)]),_0x66e8c4(0x9,_0x1474a0[_0x3e84f8(0x3aa)]),_0x66e8c4(0xa,_0x3eca57['IUndoRedoService'])],_0x22fd24);let _0x5018e3=class extends _0x3c556b{constructor(_0x43c0fd,_0x4dd1a0,_0x276971,_0xf5efd6,_0x3bb5ca,_0x3285da,_0x4a0305,_0x17839b,_0x125928,_0x26466d,_0x427a83,_0x41f8b3){const _0x48c5b6=_0x3e84f8;super(_0x43c0fd,_0x4dd1a0,_0x276971,_0xf5efd6,_0x3bb5ca,_0x125928,_0x41f8b3,_0x4a0305,_0x17839b),_0x1de933(this,_0x48c5b6(0x169),_0x48c5b6(0x39c)),(this[_0x48c5b6(0x249)]=_0x3285da,this['_logService']=_0x26466d,this[_0x48c5b6(0x263)]=_0x427a83);}[_0x3e84f8(0x1f0)](_0x2abcd7){return this['_pendingMutations']['push'](_0x2abcd7),this;}[_0x3e84f8(0x2e3)](_0x420e90){const _0x27be5f=_0x3e84f8;if(this[_0x27be5f(0x395)](_0x420e90))return this[_0x27be5f(0x249)][_0x27be5f(0x2b5)](_0x3d21ae,this[_0x27be5f(0x13f)],this['type'],this[_0x27be5f(0x4df)],this[_0x27be5f(0x334)],null,[_0x420e90],this[_0x27be5f(0x4be)]);try{const _0x27e8aa=this[_0x27be5f(0x263)][_0x27be5f(0x544)]([_0x420e90],[this[_0x27be5f(0x4df)]],!0x1);if(_0x1474a0['isTransformChangesetsSuccess'](_0x27e8aa)){const {c1Prime:_0x2ea8d4,c2Prime:_0x4d898d}=_0x27e8aa,_0x463ac0=this['_transformService'][_0x27be5f(0x27b)](_0x2ea8d4[0x0],this[_0x27be5f(0x334)]);if(_0x1474a0[_0x27be5f(0x1df)](_0x463ac0)){const {c1Prime:_0x6a32b0,m2Prime:_0x18cfa7}=_0x463ac0;return this[_0x27be5f(0x47d)](_0x6a32b0),_0x4d898d[0x0]['baseRev']=this[_0x27be5f(0x29b)](),this['_injector']['createInstance'](_0x5018e3,this['unitID'],this[_0x27be5f(0x4c9)],_0x4d898d[0x0],_0x18cfa7,this[_0x27be5f(0x4be)]);}throw _0x463ac0[_0x27be5f(0x543)];}throw _0x27e8aa['error'];}catch(_0x389c80){return this[_0x27be5f(0x31d)][_0x27be5f(0x543)](_0x389c80),this['_onConflict'](!0x1);}}[_0x3e84f8(0x51b)](_0x1d88c3){const _0x511530=_0x3e84f8;if(this[_0x511530(0x395)](_0x1d88c3))return this[_0x511530(0x249)]['createInstance'](_0x3d21ae,this['unitID'],this[_0x511530(0x4c9)],null,this['_pendingMutations'],this[_0x511530(0x4df)],[],this[_0x511530(0x4be)]);this[_0x511530(0x422)]();const _0x4cc073=this['_injector'][_0x511530(0x2b5)](_0x5f5d23,this[_0x511530(0x13f)],this['type'],this['_pendingMutations'],this[_0x511530(0x4be)]);return _0x4cc073[_0x511530(0x3b5)](),_0x4cc073['_updateLocalCache'](),_0x4cc073;}['onRemoteRej'](_0x4d34b7){const _0x46a6fd=_0x3e84f8;return this[_0x46a6fd(0x48a)](!!(_0x4d34b7!=null&&_0x4d34b7['isPermissionRej']));}[_0x3e84f8(0x2e8)](){const _0x383ab8=_0x3e84f8;return this['_injector'][_0x383ab8(0x2b5)](_0x3f060c,this['unitID'],this[_0x383ab8(0x4c9)],this[_0x383ab8(0x4df)],this[_0x383ab8(0x334)],this[_0x383ab8(0x4be)]);}['toggleOnline'](){return this;}[_0x3e84f8(0x23e)](){const _0x175e13=_0x3e84f8;this[_0x175e13(0x4be)][_0x175e13(0x3e2)](this[_0x175e13(0x4df)]);}[_0x3e84f8(0x48a)](_0x41cea9){const _0x250039=_0x3e84f8;return this[_0x250039(0x249)]['createInstance'](_0x35c7cc,this[_0x250039(0x13f)],this[_0x250039(0x4c9)],null,this[_0x250039(0x334)],this['_handler'],_0x41cea9);}};_0x5018e3=_0x17b63f([_0x66e8c4(0x5,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['Injector'])),_0x66e8c4(0x6,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x210)])),_0x66e8c4(0x7,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x373)])),_0x66e8c4(0x8,_0x3eca57[_0x3e84f8(0x2b3)]),_0x66e8c4(0x9,_0x3eca57[_0x3e84f8(0x391)]),_0x66e8c4(0xa,_0x1474a0[_0x3e84f8(0x3aa)]),_0x66e8c4(0xb,_0x3eca57[_0x3e84f8(0x33f)])],_0x5018e3);let _0x35c7cc=class extends _0x3c556b{constructor(_0x49d393,_0x4fb005,_0x46dd82,_0xfb0f6b,_0x1a3247,_0x5ef0f6=!0x1,_0xd5bc63,_0x1a757f,_0x1afea1,_0xcf9be7,_0x49ec2f,_0x131f8f,_0x360985){const _0x1653a1=_0x3e84f8;super(_0x49d393,_0x4fb005,_0x46dd82,_0xfb0f6b,_0x1a3247,_0x1a757f,_0x1afea1,_0x49ec2f,_0xcf9be7),_0x1de933(this,_0x1653a1(0x169),_0x1653a1(0x1ff)),(this[_0x1653a1(0x12a)]=_0x5ef0f6,this[_0x1653a1(0x28c)]=_0xd5bc63,this[_0x1653a1(0x2c7)]=_0x131f8f,this[_0x1653a1(0x2a4)]=_0x360985,this['_showConflictNotification'](),this[_0x1653a1(0x30d)](),this[_0x1653a1(0x47e)]());}[_0x3e84f8(0x1f0)](){return this;}[_0x3e84f8(0x2e3)](){return this;}['onRemoteAck'](){return this;}[_0x3e84f8(0x4d9)](){return this;}[_0x3e84f8(0x2e8)](){return this;}[_0x3e84f8(0x333)](){return this;}['resend'](){const _0xd211c7=_0x3e84f8;throw new Error(_0xd211c7(0x4f7));}[_0x3e84f8(0x30d)](){const _0x51debe=_0x3e84f8;this[_0x51debe(0x442)][_0x51debe(0x344)](this[_0x51debe(0x13f)],this['type'],null,[]);}[_0x3e84f8(0x2d3)](){const _0xfb65df=_0x3e84f8;this[_0xfb65df(0x12a)]?this['_notificationService'][_0xfb65df(0x3d5)]({'title':this[_0xfb65df(0x2c7)]['t']('permission.title'),'content':this[_0xfb65df(0x2c7)]['t'](_0xfb65df(0x3e1)),'type':_0xfb65df(0x543),'duration':0x0}):this[_0xfb65df(0x2a4)][_0xfb65df(0x3d5)]({'title':this[_0xfb65df(0x2c7)]['t'](_0xfb65df(0x182)),'content':this['_localeService']['t'](_0xfb65df(0x32e)),'type':_0xfb65df(0x543),'duration':0x0});}[_0x3e84f8(0x47e)](){const _0x3e4ec8=_0x3e84f8;this['_permissionService'][_0x3e4ec8(0x399)](new _0x9f218b[(_0x3e4ec8(0x336))](this[_0x3e4ec8(0x13f)])['id'],!0x1);}};_0x35c7cc=_0x17b63f([_0x66e8c4(0x6,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['IPermissionService'])),_0x66e8c4(0x7,_0x3eca57['ICommandService']),_0x66e8c4(0x8,_0x3eca57[_0x3e84f8(0x33f)]),_0x66e8c4(0x9,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x373)])),_0x66e8c4(0xa,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x210)])),_0x66e8c4(0xb,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x477)])),_0x66e8c4(0xc,_0x2ede89[_0x3e84f8(0x2b0)])],_0x35c7cc);let _0x3f060c=class extends _0x3c556b{constructor(_0xf22b10,_0x506ade,_0x2319ef,_0x482686,_0x5b1f6e,_0x14b92d,_0x16ccef,_0x5074ce,_0x43c8bf,_0x20873f){const _0x47b19d=_0x3e84f8;super(_0xf22b10,_0x506ade,_0x2319ef,_0x482686,_0x5b1f6e,_0x43c8bf,_0x20873f,_0x16ccef,_0x5074ce),_0x1de933(this,_0x47b19d(0x169),_0x47b19d(0x127)),this['_injector']=_0x14b92d;}['appendMutation'](_0x205a2e){const _0x3f8fd0=_0x3e84f8;return this['_pendingMutations'][_0x3f8fd0(0x434)](_0x205a2e),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x16f75d){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x3e84f8(0x4d9)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x3e84f8(0x2e8)](){return this;}[_0x3e84f8(0x333)](){const _0x88c234=_0x3e84f8,{_injector:_0x5e02ab,_pendingMutations:_0x41ac12,_awaitingChangeset:_0x2860d4,unitID:_0x3b3590,_handler:_0x4c2c35,type:_0x4a6fc4}=this,_0x637a13=_0x53f727(_0x5e02ab,_0x3b3590,_0x4a6fc4,_0x2860d4,_0x41ac12,_0x4c2c35);return _0x637a13 instanceof _0x5f5d23?_0x637a13['_schedule']():(_0x637a13 instanceof _0x5018e3||_0x637a13 instanceof _0x22fd24)&&_0x637a13[_0x88c234(0x23e)](),_0x637a13;}[_0x3e84f8(0x23e)](){const _0x4e1c88=_0x3e84f8;throw new Error(_0x4e1c88(0x3e4));}};_0x3f060c=_0x17b63f([_0x66e8c4(0x5,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x368)])),_0x66e8c4(0x6,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x210)])),_0x66e8c4(0x7,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x373)])),_0x66e8c4(0x8,_0x3eca57[_0x3e84f8(0x2b3)]),_0x66e8c4(0x9,_0x3eca57[_0x3e84f8(0x33f)])],_0x3f060c);let _0x3d21ae=class extends _0x3c556b{constructor(_0x54f41d,_0xb0457a,_0x128c0a,_0x3a4533,_0x17bc82,_0x310342,_0x3a8db2,_0x1a6e1b,_0x2b2739,_0x482a17,_0x5416fa,_0x73f5b9,_0x12d42b,_0x58ab5f){const _0x4ce41b=_0x3e84f8;super(_0x54f41d,_0xb0457a,_0x128c0a,_0x3a4533,_0x3a8db2,_0x73f5b9,_0x12d42b,_0x2b2739,_0x482a17),_0x1de933(this,_0x4ce41b(0x169),'fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x17bc82,this[_0x4ce41b(0x3eb)]=_0x310342,this[_0x4ce41b(0x249)]=_0x1a6e1b,this[_0x4ce41b(0x31d)]=_0x5416fa,this[_0x4ce41b(0x263)]=_0x58ab5f);}[_0x3e84f8(0x518)](_0x5604c0){const _0x233ccf=_0x3e84f8;try{const _0x2f0ec0=[..._0x5604c0,...this['_queuedRemoteChangesets']],_0x299557=[this['_awaitingChangeset']||this[_0x233ccf(0x1af)]][_0x233ccf(0x51d)](_0x5a33af=>!!_0x5a33af);let _0x3c3567,_0x114dc0;if(_0x299557['length']){const _0x49634c=this[_0x233ccf(0x263)]['transformChangesets'](_0x2f0ec0,_0x299557,!0x1);if(!_0x1474a0[_0x233ccf(0x281)](_0x49634c))throw _0x49634c[_0x233ccf(0x543)];_0x3c3567=_0x49634c['c1Prime'],_0x114dc0=_0x49634c[_0x233ccf(0x321)];}else _0x3c3567=_0x2f0ec0,_0x114dc0=[];let _0x48135c=this[_0x233ccf(0x334)];_0x3c3567[_0x233ccf(0x306)](_0x4cc23c=>{const _0x1597cf=_0x233ccf;let _0x2260e0;if(_0x48135c[_0x1597cf(0x1a6)]){const _0xf670cd=this['_transformService'][_0x1597cf(0x27b)](_0x4cc23c,_0x48135c);if(!_0x1474a0[_0x1597cf(0x1df)](_0xf670cd))throw _0xf670cd[_0x1597cf(0x543)];_0x2260e0=_0xf670cd[_0x1597cf(0x409)],_0x48135c=_0xf670cd['m2Prime'];}else _0x2260e0=_0x4cc23c;this['_executeRemoteChangeset'](_0x2260e0);}),this[_0x233ccf(0x1af)]&&this[_0x233ccf(0x422)](),this['_awaitingChangeset']&&_0x114dc0[_0x233ccf(0x1a6)]&&(_0x114dc0[0x0][_0x233ccf(0x180)]=this[_0x233ccf(0x29b)]());let _0x56ebec;if(this[_0x233ccf(0x4df)]&&_0x48135c[_0x233ccf(0x1a6)]!==0x0)_0x56ebec=this[_0x233ccf(0x249)][_0x233ccf(0x2b5)](_0x5018e3,this[_0x233ccf(0x13f)],this[_0x233ccf(0x4c9)],_0x114dc0[0x0],_0x48135c,this[_0x233ccf(0x4be)]);else{if(this[_0x233ccf(0x4df)]&&_0x48135c[_0x233ccf(0x1a6)]===0x0)_0x114dc0[0x0]['baseRev']=this[_0x233ccf(0x29b)](),_0x56ebec=this[_0x233ccf(0x249)][_0x233ccf(0x2b5)](_0x22fd24,this[_0x233ccf(0x13f)],this[_0x233ccf(0x4c9)],_0x114dc0[0x0],this['_handler']);else{if(_0x48135c[_0x233ccf(0x1a6)]!==0x0){const _0x20c330=this[_0x233ccf(0x249)][_0x233ccf(0x2b5)](_0x5f5d23,this[_0x233ccf(0x13f)],this[_0x233ccf(0x4c9)],_0x48135c,this[_0x233ccf(0x4be)]);_0x20c330[_0x233ccf(0x3b5)](),_0x56ebec=_0x20c330;}else _0x56ebec=this[_0x233ccf(0x249)][_0x233ccf(0x2b5)](_0x400828,this[_0x233ccf(0x13f)],this['type'],this[_0x233ccf(0x4be)]);}}return _0x56ebec[_0x233ccf(0x170)](),_0x56ebec;}catch(_0x47e54e){return this[_0x233ccf(0x31d)]['error'](_0x233ccf(0x227),_0x233ccf(0x49c),_0x47e54e),this['_injector'][_0x233ccf(0x2b5)](_0x35c7cc,this[_0x233ccf(0x13f)],this[_0x233ccf(0x4c9)],this[_0x233ccf(0x4df)],this[_0x233ccf(0x334)],this[_0x233ccf(0x4be)],!0x1);}}[_0x3e84f8(0x23e)](){const _0xa37ff=_0x3e84f8;throw new Error(_0xa37ff(0x228));}['appendMutation'](_0x13c9c7){const _0x40afbe=_0x3e84f8;return this[_0x40afbe(0x334)]['push'](_0x13c9c7),this;}[_0x3e84f8(0x2e3)](_0x339157){const _0x28372f=_0x3e84f8;return this[_0x28372f(0x3eb)][_0x28372f(0x434)](_0x339157),this;}[_0x3e84f8(0x51b)](_0x940d69){const _0x43e154=_0x3e84f8;if(this[_0x43e154(0x4df)])return this[_0x43e154(0x1af)]=this[_0x43e154(0x4df)],this[_0x43e154(0x4df)]=null,this;throw new Error(_0x43e154(0x42b));}['onRemoteRej'](_0x5aee35){const _0x3a2bfb=_0x3e84f8;return this[_0x3a2bfb(0x48a)](!!(_0x5aee35!=null&&_0x5aee35[_0x3a2bfb(0x429)]));}['toggleOffline'](){const _0x27d9cc=_0x3e84f8;return this[_0x27d9cc(0x249)][_0x27d9cc(0x2b5)](_0x3f060c,this[_0x27d9cc(0x13f)],this['type'],this[_0x27d9cc(0x4df)],this['_pendingMutations'],this[_0x27d9cc(0x4be)]);}[_0x3e84f8(0x333)](){return this;}[_0x3e84f8(0x48a)](_0x202307){const _0x33ed43=_0x3e84f8;return this[_0x33ed43(0x249)][_0x33ed43(0x2b5)](_0x35c7cc,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x33ed43(0x334)],this['_handler'],_0x202307);}};_0x3d21ae=_0x17b63f([_0x66e8c4(0x7,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x368)])),_0x66e8c4(0x8,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x210)])),_0x66e8c4(0x9,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x373)])),_0x66e8c4(0xa,_0x3eca57[_0x3e84f8(0x391)]),_0x66e8c4(0xb,_0x3eca57[_0x3e84f8(0x2b3)]),_0x66e8c4(0xc,_0x3eca57[_0x3e84f8(0x33f)]),_0x66e8c4(0xd,_0x1474a0[_0x3e84f8(0x3aa)])],_0x3d21ae);function _0x53f727(_0x54f448,_0x127ae9,_0x3425ee,_0x412cc6,_0x1eb5e9,_0x132afa){const _0x2c994c=_0x3e84f8;return _0x412cc6&&_0x1eb5e9[_0x2c994c(0x1a6)]?_0x54f448[_0x2c994c(0x2b5)](_0x5018e3,_0x127ae9,_0x3425ee,_0x412cc6,_0x1eb5e9,_0x132afa):_0x412cc6?_0x54f448[_0x2c994c(0x2b5)](_0x22fd24,_0x127ae9,_0x3425ee,_0x412cc6,_0x132afa):_0x1eb5e9[_0x2c994c(0x1a6)]?_0x54f448[_0x2c994c(0x2b5)](_0x5f5d23,_0x127ae9,_0x3425ee,_0x1eb5e9,_0x132afa):_0x54f448[_0x2c994c(0x2b5)](_0x400828,_0x127ae9,_0x3425ee,_0x132afa);}var _0x7d80fb=Object[_0x3e84f8(0x243)],_0x224a0d=Object[_0x3e84f8(0x439)],_0x493d58=(_0x154cdc,_0x4bc367,_0x3afe53,_0x1bdf0e)=>{const _0x511c57=_0x3e84f8;for(var _0x5f5e0d=_0x1bdf0e>0x1?void 0x0:_0x1bdf0e?_0x224a0d(_0x4bc367,_0x3afe53):_0x4bc367,_0x38cd90=_0x154cdc[_0x511c57(0x1a6)]-0x1,_0x2c2c9c;_0x38cd90>=0x0;_0x38cd90--)(_0x2c2c9c=_0x154cdc[_0x38cd90])&&(_0x5f5e0d=(_0x1bdf0e?_0x2c2c9c(_0x4bc367,_0x3afe53,_0x5f5e0d):_0x2c2c9c(_0x5f5e0d))||_0x5f5e0d);return _0x1bdf0e&&_0x5f5e0d&&_0x7d80fb(_0x4bc367,_0x3afe53,_0x5f5e0d),_0x5f5e0d;},_0x3394e7=(_0x532890,_0x355e78)=>(_0x18427f,_0x4c55c7)=>_0x355e78(_0x18427f,_0x4c55c7,_0x532890);_0x2509f1['CollaborationEntity']=class extends _0x3eca57[_0x3e84f8(0x37a)]{constructor(_0x33d69a,_0x425038,_0x71d33e,_0xa922b7,_0x543a05,_0x3ea494,_0x229db8,_0x9c3648,_0x4f6d79,_0x549a47,_0x9f38b5,_0x551c30,_0xfd5b9e){const _0x20a1fe=_0x3e84f8;super(),_0x1de933(this,_0x20a1fe(0x291),new _0x199df4[(_0x20a1fe(0x244))](null)),_0x1de933(this,_0x20a1fe(0x4d5),this[_0x20a1fe(0x291)]['asObservable']()),_0x1de933(this,_0x20a1fe(0x3ef)),_0x1de933(this,_0x20a1fe(0x23b),!0x1),_0x1de933(this,_0x20a1fe(0x225),this['state$'][_0x20a1fe(0x52b)](_0x199df4[_0x20a1fe(0x1ad)](_0x4165f6=>_0x4165f6?_0x4165f6[_0x20a1fe(0x169)]:_0x4bd68c['OFFLINE']),_0x199df4['shareReplay'](0x1))),_0x1de933(this,_0x20a1fe(0x305),!0x1),_0x1de933(this,_0x20a1fe(0x3e3),[]),(this[_0x20a1fe(0x13f)]=_0x33d69a,this[_0x20a1fe(0x264)]=_0x425038,this['_type']=_0x71d33e,this[_0x20a1fe(0x249)]=_0xa922b7,this[_0x20a1fe(0x442)]=_0x543a05,this[_0x20a1fe(0x35a)]=_0x3ea494,this[_0x20a1fe(0x2c7)]=_0x229db8,this[_0x20a1fe(0x38e)]=_0x9c3648,this['_logService']=_0x4f6d79,this[_0x20a1fe(0x30a)]=_0x549a47,this[_0x20a1fe(0x14a)]=_0x9f38b5,this['_permissionService']=_0x551c30,this[_0x20a1fe(0x1dc)]=_0xfd5b9e);}get[_0x3e84f8(0x4ac)](){const _0x14f57b=_0x3e84f8;return this[_0x14f57b(0x3ef)];}async[_0x3e84f8(0x352)](){const _0x54381d=_0x3e84f8;if(this['state'])throw new Error(_0x54381d(0x1c2));await this[_0x54381d(0x176)]();}['pauseCollaboration'](){const _0x3ba557=_0x3e84f8;return this[_0x3ba557(0x23b)]=!0x0,_0x3eca57['toDisposable'](()=>{const _0x1fca09=_0x3ba557;this[_0x1fca09(0x23b)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x3e84f8(0x15d)](_0xd36caf){const _0x394665=_0x3e84f8;this[_0x394665(0x3ef)]=_0xd36caf,this[_0x394665(0x291)][_0x394665(0x2d2)](_0xd36caf);}async[_0x3e84f8(0x176)](){const _0x421623=_0x3e84f8;var _0x2f3516;this[_0x421623(0x15d)](await this[_0x421623(0x540)]()),this[_0x421623(0x1dc)]&&((_0x2f3516=this[_0x421623(0x1dc)])==null||_0x2f3516[_0x421623(0x4e6)](this[_0x421623(0x13f)]),this[_0x421623(0x4ed)](this[_0x421623(0x1dc)][_0x421623(0x27e)](this['unitID'])[_0x421623(0x4da)](_0x2a962b=>{const _0xf6b20c=_0x421623;this[_0xf6b20c(0x31d)]['debug']('[CollaborationEntity]',_0xf6b20c(0x41a),_0x2a962b),_0x2a962b===_0x25e60f[_0xf6b20c(0x3d3)]?(this[_0xf6b20c(0x14a)][_0xf6b20c(0x3d5)]({'content':this[_0xf6b20c(0x2c7)]['t'](_0xf6b20c(0x1ae)),'type':_0xf694dc['MessageType']['Warning']}),this[_0xf6b20c(0x28c)][_0xf6b20c(0x399)](new _0x9f218b['WorkbookEditablePermission'](this[_0xf6b20c(0x13f)])['id'],!0x1)):this[_0xf6b20c(0x28c)][_0xf6b20c(0x399)](new _0x9f218b[(_0xf6b20c(0x336))](this[_0xf6b20c(0x13f)])['id'],!0x0);})));let _0x4a47db=!0x1;return this[_0x421623(0x4ed)](this[_0x421623(0x264)][_0x421623(0x541)]['subscribe'](_0x6b4ee=>{const _0x4562b1=_0x421623;_0x6b4ee===_0x39f403['ONLINE']?this['_toggleOnline'](_0x4a47db):_0x6b4ee===_0x39f403['OFFLINE']&&(_0x4a47db=!0x0,this[_0x4562b1(0x188)]());})),this[_0x421623(0x4ed)](this[_0x421623(0x264)][_0x421623(0x15a)][_0x421623(0x4da)](_0x177247=>{const _0x36a472=_0x421623;try{switch(_0x177247[_0x36a472(0x11c)]){case _0x1474a0[_0x36a472(0x520)]['NEW_CHANGESETS']:{this[_0x36a472(0x19f)](_0x1474a0[_0x36a472(0x45e)](_0x177247[_0x36a472(0x33d)]));break;}case _0x1474a0['CollaborationEvent'][_0x36a472(0x3be)]:{this[_0x36a472(0x433)](_0x177247[_0x36a472(0x33d)]);break;}case _0x1474a0[_0x36a472(0x520)][_0x36a472(0x29f)]:{this[_0x36a472(0x525)]();break;}case _0x1474a0['CollaborationEvent'][_0x36a472(0x31e)]:{this['_onFetchMissResult'](_0x177247[_0x36a472(0x33d)]['changesets'][_0x36a472(0x1ad)](_0x18c144=>_0x1474a0[_0x36a472(0x45e)](_0x18c144)));break;}case _0x1474a0['CollaborationEvent'][_0x36a472(0x452)]:this[_0x36a472(0x525)]({'isPermissionRej':!0x0});}}catch(_0x400ec8){throw console[_0x36a472(0x543)]('Error\x20on\x20receiving\x20event',_0x400ec8),_0x400ec8;}})),this[_0x421623(0x3ef)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x3e84f8(0x4b8)](){const _0x340a2e=_0x3e84f8;if(this[_0x340a2e(0x305)])throw new Error(_0x340a2e(0x51a));this[_0x340a2e(0x305)]=!0x0;}['_onLocalMutation'](_0x3293f1){const _0x4bb267=_0x3e84f8;this[_0x4bb267(0x4b8)](),this['_updateState'](this[_0x4bb267(0x3ef)][_0x4bb267(0x1f0)](_0x3293f1)),this[_0x4bb267(0x4a5)]();}['_onRemoteChangeset'](_0x35bd52){const _0x36a8dd=_0x3e84f8;if(!(_0x35bd52[_0x36a8dd(0x118)]<=this[_0x36a8dd(0x38e)][_0x36a8dd(0x178)](this[_0x36a8dd(0x13f)]))){if(this[_0x36a8dd(0x23b)]){this[_0x36a8dd(0x3e3)][_0x36a8dd(0x434)](_0x35bd52);return;}this[_0x36a8dd(0x3c3)](_0x35bd52);}}[_0x3e84f8(0x222)](){const _0x3d228b=_0x3e84f8;this[_0x3d228b(0x3e3)][_0x3d228b(0x306)](_0x2075e1=>this[_0x3d228b(0x3c3)](_0x2075e1)),this[_0x3d228b(0x3e3)]=[];}['_applyRemoteChangeset'](_0x131308){const _0x3ddaad=_0x3e84f8,_0x6fbc6c=this[_0x3ddaad(0x35a)][_0x3ddaad(0x1c4)]['fetchThroughInterceptors'](this[_0x3ddaad(0x35a)][_0x3ddaad(0x1c4)][_0x3ddaad(0x310)]()[_0x3ddaad(0x4e1)])(_0x131308[_0x3ddaad(0x313)],null)||_0x131308[_0x3ddaad(0x313)],_0x2545c8={..._0x131308,'mutations':_0x6fbc6c};this[_0x3ddaad(0x4b8)](),this[_0x3ddaad(0x15d)](this[_0x3ddaad(0x3ef)][_0x3ddaad(0x2e3)](_0x2545c8)),this[_0x3ddaad(0x4a5)]();}['_onRemoteACK'](_0x57ff7f){const _0x159399=_0x3e84f8;this['_lockTransition'](),this['_updateState'](this[_0x159399(0x3ef)]['onRemoteAck'](_0x57ff7f)),this[_0x159399(0x4a5)]();}['_onRemoteRejected'](_0x5039ae){const _0x3776e9=_0x3e84f8;this['_lockTransition'](),this['_updateState'](this[_0x3776e9(0x3ef)]['onRemoteRej'](_0x5039ae)),this['_unlockTransition']();}[_0x3e84f8(0x4c0)](_0x394478){const _0x5ca04e=_0x3e84f8;if(!(this[_0x5ca04e(0x3ef)]instanceof _0x3d21ae))throw new TypeError(_0x5ca04e(0x12e));const _0x9a3e6c=_0x394478[_0x5ca04e(0x1ad)](_0x566e6d=>{const _0x446ea=_0x5ca04e,_0x428abc=this[_0x446ea(0x35a)][_0x446ea(0x1c4)]['fetchThroughInterceptors'](this[_0x446ea(0x35a)][_0x446ea(0x1c4)][_0x446ea(0x310)]()['COMPRESS_MUTATION_APPLY'])(_0x566e6d[_0x446ea(0x313)],null)||_0x566e6d[_0x446ea(0x313)];return{..._0x566e6d,'mutations':_0x428abc};});this[_0x5ca04e(0x4b8)](),this[_0x5ca04e(0x15d)](this[_0x5ca04e(0x3ef)][_0x5ca04e(0x518)](_0x9a3e6c)),this[_0x5ca04e(0x4a5)]();}[_0x3e84f8(0x188)](){const _0x437f0d=_0x3e84f8;this[_0x437f0d(0x4b8)](),this[_0x437f0d(0x15d)](this[_0x437f0d(0x3ef)][_0x437f0d(0x2e8)]()),this[_0x437f0d(0x4a5)]();}[_0x3e84f8(0x36b)](_0xe56709=!0x1){const _0x169ea0=_0x3e84f8;this['_lockTransition'](),this['_updateState'](this[_0x169ea0(0x3ef)][_0x169ea0(0x333)]()),this[_0x169ea0(0x4a5)]();const _0x49108c=this[_0x169ea0(0x3ef)];_0xe56709&&_0x49108c instanceof _0x400828&&(this['_lockTransition'](),this[_0x169ea0(0x15d)](_0x49108c['fetchMiss']()),this['_unlockTransition']());}async[_0x3e84f8(0x540)](){return new Promise(_0xf4986b=>{const _0x463ed0=_0x3242;this[_0x463ed0(0x264)][_0x463ed0(0x541)][_0x463ed0(0x52b)](_0x199df4[_0x463ed0(0x1de)](0x1))[_0x463ed0(0x4da)](async _0x3cbf80=>{const _0x3f222a=_0x463ed0;_0xf4986b(await this[_0x3f222a(0x155)](_0x3cbf80===_0x39f403['ONLINE']));});});}[_0x3e84f8(0x465)](){const _0x48ad3f=this['unitID'];return{'onStateChange':(_0xd45400,_0x1e0c8b)=>{const _0x12804e=_0x3242;if(_0xd45400!==this[_0x12804e(0x3ef)])throw new Error(_0x12804e(0x2de)+_0xd45400[_0x12804e(0x169)]+_0x12804e(0x2a5)+_0x1e0c8b[_0x12804e(0x169)]+'\x0aCurrent:\x20'+this['_state']['status']);this[_0x12804e(0x15d)](_0x1e0c8b);},'onSendChangeset':_0x2604ac=>{const _0x4df307=_0x3242,_0x18eaad={'eventID':_0x1474a0[_0x4df307(0x520)][_0x4df307(0x405)],'data':{'unitID':_0x2604ac['unitID'],'unitType':this[_0x4df307(0x44e)],'changeset':_0x2604ac,'memberID':this[_0x4df307(0x264)][_0x4df307(0x53f)]()}};this[_0x4df307(0x264)][_0x4df307(0x41c)](_0x18eaad,this[_0x4df307(0x13f)]);},'onMissingChangesets':({from:_0x3ceae1,to:_0x5ce62c})=>{const _0x18103f=_0x3242;this[_0x18103f(0x31d)][_0x18103f(0x3d9)](_0x18103f(0x1e6),_0x18103f(0x3ad)+_0x3ceae1+_0x18103f(0x19d)+_0x5ce62c);const _0x202157={'eventID':_0x1474a0[_0x18103f(0x520)]['FETCH_MISSING'],'data':{'unitID':_0x48ad3f,'unitType':this['_type'],'from':_0x3ceae1,'to':_0x5ce62c}};this['session'][_0x18103f(0x41c)](_0x202157,this[_0x18103f(0x13f)]);}};}async[_0x3e84f8(0x155)](_0x561814){const _0x2b6d6f=_0x3e84f8;var _0x22d558,_0xa17578;const _0x36ef04=await this[_0x2b6d6f(0x442)]['loadOfflineData'](this['unitID']),_0x56f070=(_0x22d558=_0x36ef04==null?void 0x0:_0x36ef04['mutations'])!=null?_0x22d558:[],_0x113362=(_0xa17578=_0x36ef04==null?void 0x0:_0x36ef04[_0x2b6d6f(0x4f5)])!=null?_0xa17578:null,_0x261181=this[_0x2b6d6f(0x13f)];try{this['_replayCachedMutations'](_0x113362,_0x56f070);}catch(_0x3db04f){this[_0x2b6d6f(0x31d)][_0x2b6d6f(0x543)](_0x3db04f);}const _0x523608=this['_createHandler']();if(_0x561814){const _0x430fe3=_0x53f727(this[_0x2b6d6f(0x249)],_0x261181,this[_0x2b6d6f(0x44e)],_0x113362,_0x56f070,_0x523608);return _0x430fe3 instanceof _0x5f5d23?_0x430fe3[_0x2b6d6f(0x3b5)]():(_0x430fe3 instanceof _0x5018e3||_0x430fe3 instanceof _0x22fd24)&&_0x430fe3[_0x2b6d6f(0x23e)](),_0x430fe3;}return this['_injector'][_0x2b6d6f(0x2b5)](_0x3f060c,_0x261181,this['_type'],_0x113362,_0x56f070,_0x523608);}['_replayCachedMutations'](_0x4bd624,_0x401efa){const _0xdf50ce=_0x3e84f8;var _0xd30187,_0x44914c;const _0x11fa2f=this[_0xdf50ce(0x35a)]['interceptor'][_0xdf50ce(0x1da)](this['_compressMutationService'][_0xdf50ce(0x1c4)][_0xdf50ce(0x310)]()[_0xdf50ce(0x4e1)]);(_0xd30187=_0x11fa2f((_0x4bd624==null?void 0x0:_0x4bd624['mutations'])||[],null))==null||_0xd30187[_0xdf50ce(0x306)](_0x3cbc8b=>this[_0xdf50ce(0x30a)][_0xdf50ce(0x17c)](_0x3cbc8b['id'],_0x3cbc8b[_0xdf50ce(0x522)])),(_0x44914c=_0x11fa2f(_0x401efa||[],null))==null||_0x44914c[_0xdf50ce(0x306)](_0x59a7c6=>this[_0xdf50ce(0x30a)][_0xdf50ce(0x17c)](_0x59a7c6['id'],_0x59a7c6[_0xdf50ce(0x522)]));}},_0x2509f1[_0x3e84f8(0x274)]=_0x493d58([_0x3394e7(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['Injector'])),_0x3394e7(0x4,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x373)])),_0x3394e7(0x5,_0x3eca57['Inject'](_0x1474a0[_0x3e84f8(0x2db)])),_0x3394e7(0x6,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x477)])),_0x3394e7(0x7,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x210)])),_0x3394e7(0x8,_0x3eca57[_0x3e84f8(0x391)]),_0x3394e7(0x9,_0x3eca57['ICommandService']),_0x3394e7(0xa,_0x2ede89['IMessageService']),_0x3394e7(0xb,_0x3eca57[_0x3e84f8(0x3a9)]),_0x3394e7(0xc,_0x3eca57[_0x3e84f8(0x3f3)](_0x39225f))],_0x2509f1['CollaborationEntity']),_0x2509f1[_0x3e84f8(0x324)]=class extends _0x2509f1[_0x3e84f8(0x274)]{constructor(_0x5516ee,_0x2792c0,_0x4ebf08,_0x100d13,_0x16b010,_0x35392f,_0x1c9a59,_0x21f2a4,_0x3f32e1,_0xcc7b3a,_0xe35957,_0x1c48c5,_0x538435,_0x10fa10,_0x2659b4,_0x3a0a33,_0x53cb5c){const _0x324209=_0x3e84f8;super(_0x5516ee,_0x4ebf08,_0x2792c0,_0x100d13,_0x16b010,_0x35392f,_0x1c9a59,_0x21f2a4,_0x538435,_0x10fa10,_0x2659b4,_0x3a0a33,_0x53cb5c),this[_0x324209(0x13f)]=_0x5516ee,this[_0x324209(0x4c9)]=_0x2792c0,this[_0x324209(0x3bd)]=_0x3f32e1,this[_0x324209(0x542)]=_0xcc7b3a,this['_docTransformSelectionsService']=_0xe35957,this[_0x324209(0x216)]=_0x1c48c5;}[_0x3e84f8(0x465)](){const _0x302241=_0x3e84f8,_0x48296e=super[_0x302241(0x465)]();return _0x48296e['onTransformIME']=_0x20b784=>this[_0x302241(0x542)][_0x302241(0x3dd)](_0x20b784),_0x48296e[_0x302241(0x30b)]=_0x4bbb41=>this[_0x302241(0x45b)]['transformSelections'](_0x4bbb41),_0x48296e[_0x302241(0x3fb)]=_0x5a9aa3=>this[_0x302241(0x216)][_0x302241(0x285)](_0x5a9aa3),_0x48296e[_0x302241(0x4e5)]=_0x5e8ad2=>this[_0x302241(0x542)][_0x302241(0x38b)](_0x5e8ad2),_0x48296e;}async[_0x3e84f8(0x176)](){const _0x515f47=_0x3e84f8,_0x20d2ef=await super['_init']();return this[_0x515f47(0x4ed)](this[_0x515f47(0x30a)][_0x515f47(0x271)]((_0x5ab4c4,_0x3fa284)=>{const _0x43936e=_0x515f47;if(_0x5ab4c4[_0x43936e(0x4c9)]!==_0x3eca57[_0x43936e(0x32c)][_0x43936e(0x2c9)]||_0x3fa284!=null&&_0x3fa284[_0x43936e(0x519)]||_0x3fa284!=null&&_0x3fa284['onlyLocal'])return;const _0xf95a49=_0x5ab4c4[_0x43936e(0x522)];if((_0xf95a49==null?void 0x0:_0xf95a49['unitId'])!==this['unitID'])return;let _0x658497=_0x5ab4c4;if(_0x658497['id']===_0x5a15a4[_0x43936e(0x495)]['id']){const _0x570a8c=_0x658497[_0x43936e(0x522)];_0x658497={'id':_0x5a15a4[_0x43936e(0x495)]['id'],'type':_0x3eca57['CommandType'][_0x43936e(0x2c9)],'params':{'unitId':_0x570a8c['unitId'],'actions':_0x570a8c[_0x43936e(0x3f6)],'textRanges':null}};}const _0x70d626=this[_0x43936e(0x35a)][_0x43936e(0x1c4)][_0x43936e(0x1da)](this['_compressMutationService'][_0x43936e(0x1c4)][_0x43936e(0x310)]()[_0x43936e(0x369)])([_0x658497],null)||[_0x658497];this[_0x43936e(0x163)](_0x70d626[0x0]);})),_0x20d2ef;}},_0x2509f1[_0x3e84f8(0x324)]=_0x493d58([_0x3394e7(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['Injector'])),_0x3394e7(0x4,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x373)])),_0x3394e7(0x5,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0['CompressMutationService'])),_0x3394e7(0x6,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['LocaleService'])),_0x3394e7(0x7,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x210)])),_0x3394e7(0x8,_0x3eca57[_0x3e84f8(0x13c)](_0x58059b[_0x3e84f8(0x4bc)])),_0x3394e7(0x9,_0x3eca57[_0x3e84f8(0x13c)](_0xd6db42)),_0x3394e7(0xa,_0x3eca57[_0x3e84f8(0x13c)](_0x1fbfda)),_0x3394e7(0xb,_0x3eca57[_0x3e84f8(0x13c)](_0x2436eb)),_0x3394e7(0xc,_0x3eca57[_0x3e84f8(0x391)]),_0x3394e7(0xd,_0x3eca57[_0x3e84f8(0x2b3)]),_0x3394e7(0xe,_0x2ede89[_0x3e84f8(0x394)]),_0x3394e7(0xf,_0x3eca57[_0x3e84f8(0x3a9)]),_0x3394e7(0x10,_0x3eca57[_0x3e84f8(0x3f3)](_0x39225f))],_0x2509f1['DocCollaborationEntity']),_0x2509f1['SheetCollaborationEntity']=class extends _0x2509f1[_0x3e84f8(0x274)]{constructor(_0x3eefe7,_0x3cb3d4,_0x51b298,_0x1b1416,_0x3e3548,_0x3dcd69,_0x1e4a53,_0x511399,_0x222630,_0x32273d,_0xc6ba0e,_0x4609b7,_0x39234f,_0x1f70c5){const _0x3fc4de=_0x3e84f8;super(_0x3eefe7,_0x51b298,_0x3cb3d4,_0x1b1416,_0x3e3548,_0x3dcd69,_0x1e4a53,_0x511399,_0x32273d,_0xc6ba0e,_0x4609b7,_0x39234f,_0x1f70c5),this[_0x3fc4de(0x13f)]=_0x3eefe7,this[_0x3fc4de(0x4c9)]=_0x3cb3d4,this['_sheetTransformSelectionsService']=_0x222630;}[_0x3e84f8(0x465)](){const _0x1e3624=_0x3e84f8,_0x5624de=super[_0x1e3624(0x465)]();return _0x5624de[_0x1e3624(0x30b)]=_0x2d4453=>this[_0x1e3624(0x371)][_0x1e3624(0x537)](_0x2d4453),_0x5624de;}async[_0x3e84f8(0x176)](){const _0x1cc76b=_0x3e84f8,_0xadeab0=await super[_0x1cc76b(0x176)]();return this[_0x1cc76b(0x4ed)](this[_0x1cc76b(0x30a)][_0x1cc76b(0x271)]((_0x1a1ba5,_0x985ffb)=>{const _0x1cbf09=_0x1cc76b;if(_0x1a1ba5[_0x1cbf09(0x4c9)]!==_0x3eca57['CommandType']['MUTATION']||_0x985ffb!=null&&_0x985ffb[_0x1cbf09(0x519)]||_0x985ffb!=null&&_0x985ffb[_0x1cbf09(0x480)])return;const _0x429cbb=_0x1a1ba5[_0x1cbf09(0x522)];if((_0x429cbb==null?void 0x0:_0x429cbb[_0x1cbf09(0x2ac)])!==this['unitID'])return;const _0x50dc81=_0x1a1ba5,_0x19e3eb=this['_compressMutationService']['interceptor']['fetchThroughInterceptors'](this[_0x1cbf09(0x35a)][_0x1cbf09(0x1c4)][_0x1cbf09(0x310)]()[_0x1cbf09(0x369)])([_0x50dc81],null)||[_0x50dc81];this['_onLocalMutation'](_0x19e3eb[0x0]);})),_0xadeab0;}},_0x2509f1[_0x3e84f8(0x1ed)]=_0x493d58([_0x3394e7(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x368)])),_0x3394e7(0x4,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x373)])),_0x3394e7(0x5,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x2db)])),_0x3394e7(0x6,_0x3eca57['Inject'](_0x3eca57[_0x3e84f8(0x477)])),_0x3394e7(0x7,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x210)])),_0x3394e7(0x8,_0x3eca57[_0x3e84f8(0x13c)](_0x322a21)),_0x3394e7(0x9,_0x3eca57[_0x3e84f8(0x391)]),_0x3394e7(0xa,_0x3eca57[_0x3e84f8(0x2b3)]),_0x3394e7(0xb,_0x2ede89['IMessageService']),_0x3394e7(0xc,_0x3eca57[_0x3e84f8(0x3a9)]),_0x3394e7(0xd,_0x3eca57[_0x3e84f8(0x3f3)](_0x39225f))],_0x2509f1['SheetCollaborationEntity']);var _0xc0da08=Object[_0x3e84f8(0x243)],_0x4d69c6=Object[_0x3e84f8(0x439)],_0x3b070a=(_0x2b80ce,_0x579770,_0x5badde,_0x23ad53)=>{const _0x570e50=_0x3e84f8;for(var _0x3776db=_0x23ad53>0x1?void 0x0:_0x23ad53?_0x4d69c6(_0x579770,_0x5badde):_0x579770,_0xaaae02=_0x2b80ce[_0x570e50(0x1a6)]-0x1,_0x272f12;_0xaaae02>=0x0;_0xaaae02--)(_0x272f12=_0x2b80ce[_0xaaae02])&&(_0x3776db=(_0x23ad53?_0x272f12(_0x579770,_0x5badde,_0x3776db):_0x272f12(_0x3776db))||_0x3776db);return _0x23ad53&&_0x3776db&&_0xc0da08(_0x579770,_0x5badde,_0x3776db),_0x3776db;},_0x2429e3=(_0x47309a,_0x244c0f)=>(_0x45005a,_0xca835f)=>_0x244c0f(_0x45005a,_0xca835f,_0x47309a);_0x2509f1[_0x3e84f8(0x171)]=class extends _0x3eca57[_0x3e84f8(0x37a)]{constructor(_0x4b46c9,_0x50f2dc,_0x3899e5){const _0x47ba04=_0x3e84f8;super(),_0x1de933(this,_0x47ba04(0x299),new Map()),_0x1de933(this,_0x47ba04(0x4f2),new _0x199df4['Subject']()),(this['_injector']=_0x4b46c9,this[_0x47ba04(0x4e8)]=_0x50f2dc,this[_0x47ba04(0x339)]=_0x3899e5,this[_0x47ba04(0x176)]());}[_0x3e84f8(0x231)](){const _0x32afbc=_0x3e84f8;super[_0x32afbc(0x231)](),this[_0x32afbc(0x299)][_0x32afbc(0x306)](_0x62e05a=>_0x62e05a[_0x32afbc(0x231)]()),this[_0x32afbc(0x299)][_0x32afbc(0x4db)]();}[_0x3e84f8(0x1be)](_0x470ad8){const _0x183cc2=_0x3e84f8;var _0x434119;return(_0x434119=this['_entities'][_0x183cc2(0x4af)](_0x470ad8))!=null?_0x434119:null;}[_0x3e84f8(0x26f)](_0x2e9fef){const _0x227c8d=_0x3e84f8,_0x24e2ea=this[_0x227c8d(0x1be)](_0x2e9fef);return _0x24e2ea?_0x199df4['of'](_0x24e2ea):this[_0x227c8d(0x4f2)][_0x227c8d(0x52b)](_0x46f2f0[_0x227c8d(0x51d)](_0x3c995c=>_0x3c995c[_0x227c8d(0x13f)]===_0x2e9fef));}[_0x3e84f8(0x176)](){const _0x54ab44=_0x3e84f8;this[_0x54ab44(0x339)][_0x54ab44(0x362)](_0x3eca57[_0x54ab44(0x3fd)]['UNIVER_SHEET'])[_0x54ab44(0x52b)](_0x199df4[_0x54ab44(0x468)](this['dispose$']),_0x46f2f0[_0x54ab44(0x17f)](0x10))[_0x54ab44(0x4da)](async _0x45c115=>{const _0x5a34f5=_0x54ab44,_0x13aa1d=_0x45c115['getUnitId'](),_0x17d675=await this['_startCollaboration'](_0x13aa1d,_0x588a36['UNIVER_SHEET']);this[_0x5a34f5(0x299)]['set'](_0x13aa1d,_0x17d675);}),this[_0x54ab44(0x339)][_0x54ab44(0x362)](_0x3eca57['UniverInstanceType'][_0x54ab44(0x269)])['pipe'](_0x199df4['takeUntil'](this['dispose$']),_0x46f2f0[_0x54ab44(0x17f)](0x10))['pipe'](_0x46f2f0['filter'](_0x13a551=>!_0x13a551[_0x54ab44(0x286)]()[_0x54ab44(0x396)]('__')))[_0x54ab44(0x4da)](async _0x108374=>{const _0x198d7c=_0x54ab44,_0x3c089b=_0x108374[_0x198d7c(0x286)](),_0x2f0e8f=await this[_0x198d7c(0x4a8)](_0x3c089b,_0x588a36[_0x198d7c(0x269)]);this[_0x198d7c(0x299)][_0x198d7c(0x1b8)](_0x3c089b,_0x2f0e8f);}),_0x199df4[_0x54ab44(0x148)](this[_0x54ab44(0x339)][_0x54ab44(0x3a5)](_0x3eca57[_0x54ab44(0x3fd)][_0x54ab44(0x28f)]),this[_0x54ab44(0x339)][_0x54ab44(0x3a5)](_0x3eca57['UniverInstanceType'][_0x54ab44(0x269)]))[_0x54ab44(0x52b)](_0x199df4[_0x54ab44(0x468)](this['dispose$']))[_0x54ab44(0x4da)](_0xbb2754=>{const _0x5242c9=_0x54ab44,_0x17edb9=_0xbb2754[_0x5242c9(0x286)](),_0x1d0465=this['_entities'][_0x5242c9(0x4af)](_0x17edb9);_0x1d0465&&(_0x1d0465[_0x5242c9(0x231)](),this[_0x5242c9(0x299)][_0x5242c9(0x531)](_0x17edb9));});}async['_startCollaboration'](_0x58454f,_0x2094ef){const _0x261106=_0x3e84f8,_0x2be2e8=await this['_collabSessionService'][_0x261106(0x2ca)](_0x58454f),_0x236f4b=this[_0x261106(0x249)]['createInstance'](this[_0x261106(0x15f)](_0x2094ef),_0x58454f,_0x2094ef,_0x2be2e8);return await _0x236f4b['init'](),this[_0x261106(0x4f2)][_0x261106(0x2d2)](_0x236f4b),_0x236f4b;}['_getCtorByUniverType'](_0x1c961a){const _0x1cac62=_0x3e84f8;switch(_0x1c961a){case _0x588a36['UNIVER_DOC']:return _0x2509f1[_0x1cac62(0x324)];case _0x588a36[_0x1cac62(0x28f)]:return _0x2509f1['SheetCollaborationEntity'];default:throw new Error(_0x1cac62(0x21f)+_0x1c961a);}}},_0x2509f1['CollaborationController']=_0x3b070a([_0x2429e3(0x0,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['Injector'])),_0x2429e3(0x1,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x332)])),_0x2429e3(0x2,_0x3eca57[_0x3e84f8(0x2b1)])],_0x2509f1[_0x3e84f8(0x171)]);const _0x143b00=[_0x3e84f8(0x2ce),_0x3e84f8(0x13d),_0x3e84f8(0x2dd),_0x3e84f8(0x4b4),_0x3e84f8(0x3ee),'gold400'];class _0x29d267 extends _0x3eca57[_0x3e84f8(0x2a6)]{constructor(){const _0x4549b7=_0x3e84f8;super(...arguments),_0x1de933(this,_0x4549b7(0x16e),new Map()),_0x1de933(this,_0x4549b7(0x48e),0x0);}[_0x3e84f8(0x403)](_0x598f49){const _0x15a1da=_0x3e84f8;if(this[_0x15a1da(0x16e)][_0x15a1da(0x2a7)](_0x598f49))return this[_0x15a1da(0x16e)]['get'](_0x598f49);const _0x3f1048=_0x143b00[this[_0x15a1da(0x48e)]];return this[_0x15a1da(0x48e)]=(this[_0x15a1da(0x48e)]+0x1)%_0x143b00[_0x15a1da(0x1a6)],this[_0x15a1da(0x16e)][_0x15a1da(0x1b8)](_0x598f49,_0x3f1048),_0x3f1048;}}var _0x74a1a8=Object[_0x3e84f8(0x243)],_0x4cfb88=Object[_0x3e84f8(0x439)],_0x1c37ec=(_0x35da26,_0x3a85ba,_0x59993a,_0x46dcaf)=>{const _0x553a7d=_0x3e84f8;for(var _0x538013=_0x46dcaf>0x1?void 0x0:_0x46dcaf?_0x4cfb88(_0x3a85ba,_0x59993a):_0x3a85ba,_0x50912c=_0x35da26[_0x553a7d(0x1a6)]-0x1,_0x2ad234;_0x50912c>=0x0;_0x50912c--)(_0x2ad234=_0x35da26[_0x50912c])&&(_0x538013=(_0x46dcaf?_0x2ad234(_0x3a85ba,_0x59993a,_0x538013):_0x2ad234(_0x538013))||_0x538013);return _0x46dcaf&&_0x538013&&_0x74a1a8(_0x3a85ba,_0x59993a,_0x538013),_0x538013;},_0x17cacb=(_0x31d9de,_0x15ba1f)=>(_0x3f1aec,_0x56740d)=>_0x15ba1f(_0x3f1aec,_0x56740d,_0x31d9de);const _0x668fad=0x12c,_0x18d423=0x64,_0x5b224e=()=>{let _0x2fa4f1=[],_0x599d70=!0x1;return _0x48efc7=>{const _0x5d6408=_0x3242;_0x2fa4f1[_0x5d6408(0x434)](_0x48efc7),_0x599d70||(_0x599d70=!0x0,setTimeout(()=>{const _0x486f89=_0x5d6408;_0x2fa4f1[_0x486f89(0x306)](_0x315113=>_0x315113()),_0x2fa4f1=[],_0x599d70=!0x1;}));};};let _0x380593=class extends _0x3eca57['RxDisposable']{constructor(_0x1d0757,_0x20572e,_0x477f97,_0x138578,_0x368150,_0x3fac99,_0xc1dbea,_0x187e56){const _0x2b9035=_0x3e84f8;super(),_0x1de933(this,_0x2b9035(0x3ed),!0x1),_0x1de933(this,_0x2b9035(0x176),!0x1),_0x1de933(this,_0x2b9035(0x185),new _0x199df4[(_0x2b9035(0x244))](new Map())),_0x1de933(this,_0x2b9035(0x45c),this[_0x2b9035(0x185)]['asObservable']()),_0x1de933(this,_0x2b9035(0x149),new _0x199df4['BehaviorSubject']([])),_0x1de933(this,_0x2b9035(0x329),this[_0x2b9035(0x149)][_0x2b9035(0x52b)](_0x199df4[_0x2b9035(0x397)](_0x668fad))),_0x1de933(this,_0x2b9035(0x173),_0x7f76a4((_0x2532d4,_0x3600ad)=>{const _0x229273=_0x2b9035,_0x29dbbc={'eventID':_0x1474a0[_0x229273(0x520)][_0x229273(0x402)],'data':{'unitID':this[_0x229273(0x13f)],'memberID':this[_0x229273(0x130)]['getMemberID'](),'selection':_0x2568c2[_0x229273(0x2df)](_0x2532d4,_0x3600ad[_0x229273(0x4cd)])}};this[_0x229273(0x130)][_0x229273(0x41c)](_0x29dbbc,this[_0x229273(0x13f)]);},_0x18d423)),(this['unitID']=_0x1d0757,this[_0x2b9035(0x130)]=_0x20572e,this[_0x2b9035(0x249)]=_0x477f97,this[_0x2b9035(0x530)]=_0x138578,this['_memberService']=_0x368150,this['_univerInstanceService']=_0x3fac99,this[_0x2b9035(0x30a)]=_0xc1dbea,this[_0x2b9035(0x3cd)]=_0x187e56);}get['cursorInfo'](){const _0x3ce7cc=_0x3e84f8;return this[_0x3ce7cc(0x185)][_0x3ce7cc(0x31f)]();}get[_0x3e84f8(0x3a6)](){const _0x9bfd7e=_0x3e84f8;return this['_roomMembers$'][_0x9bfd7e(0x31f)]();}['dispose'](){const _0x3ceb5e=_0x3e84f8;super[_0x3ceb5e(0x231)](),this[_0x3ceb5e(0x185)][_0x3ceb5e(0x2d2)](new Map()),this[_0x3ceb5e(0x185)][_0x3ceb5e(0x1d3)](),this[_0x3ceb5e(0x149)][_0x3ceb5e(0x2d2)]([]),this[_0x3ceb5e(0x149)]['complete']();}['init'](){const _0x973e83=_0x3e84f8;this[_0x973e83(0x176)]||(this['_init']=!0x0,this[_0x973e83(0x130)][_0x973e83(0x541)]['pipe'](_0x199df4[_0x973e83(0x468)](this[_0x973e83(0x138)]))['subscribe'](_0x44528d=>{const _0x11a4c3=_0x973e83;_0x44528d===_0x39f403['ONLINE']?this[_0x11a4c3(0x36b)]():this[_0x11a4c3(0x188)]();}),this[_0x973e83(0x130)]['event$']['pipe'](_0x199df4[_0x973e83(0x468)](this[_0x973e83(0x138)]))[_0x973e83(0x4da)](_0x4d3c8c=>{const _0x57d5b1=_0x973e83,_0x5b9329=_0x4d3c8c[_0x57d5b1(0x11c)];_0x5b9329===_0x1474a0[_0x57d5b1(0x520)][_0x57d5b1(0x402)]&&this['_onCursorUpdate'](_0x4d3c8c),_0x5b9329===_0x1474a0[_0x57d5b1(0x520)]['USERS_LEAVE']&&this[_0x57d5b1(0x2b4)](_0x4d3c8c);}),this['_onRefRangeChange'](),this[_0x973e83(0x4ed)](this[_0x973e83(0x30a)][_0x973e83(0x271)](_0x59a871=>{const _0x5396c2=_0x973e83;if(this[_0x5396c2(0x3ed)]&&_0x59a871['id']===_0x9f218b[_0x5396c2(0x248)]['id']&&_0x59a871['params'][_0x5396c2(0x2ac)]===this[_0x5396c2(0x13f)]){const _0x3c17eb=_0x59a871['params'];this[_0x5396c2(0x173)](_0x3c17eb['subUnitId'],_0x3c17eb[_0x5396c2(0x406)][0x0]);}})));}['_onCursorUpdate'](_0x352013){const _0x5126a7=_0x3e84f8;var _0x58e073,_0x57c9cb;const {memberID:_0x40b5bb,selection:_0x1165ae}=_0x352013[_0x5126a7(0x33d)],{sheetName:_0x11d430,range:_0x4e1798}=_0x2568c2[_0x5126a7(0x174)](_0x1165ae),_0x51f864={'name':(_0x57c9cb=(_0x58e073=this[_0x5126a7(0x1ec)]['getMember'](this[_0x5126a7(0x13f)],_0x40b5bb))==null?void 0x0:_0x58e073[_0x5126a7(0x52a)])!=null?_0x57c9cb:_0x5126a7(0x3c9),'range':this[_0x5126a7(0x4a0)](_0x11d430,_0x4e1798),'sheetID':_0x11d430,'color':this[_0x5126a7(0x530)][_0x5126a7(0x403)](_0x40b5bb),'selection':_0x1165ae},_0x3dfa5a=this[_0x5126a7(0x289)];_0x3dfa5a[_0x5126a7(0x1b8)](_0x40b5bb,_0x51f864),this[_0x5126a7(0x185)][_0x5126a7(0x2d2)](_0x3dfa5a);}[_0x3e84f8(0x2b4)](_0x5334f4){const _0x33e7d1=_0x3e84f8,{memberID:_0x5c3e28}=_0x5334f4['data'],_0x58c6aa=this[_0x33e7d1(0x289)];_0x58c6aa['delete'](_0x5c3e28),this[_0x33e7d1(0x185)]['next'](_0x58c6aa);}['_getMergeRange'](_0x2c48e9,_0x472286){const _0x1ddbbd=_0x3e84f8;var _0x22edf3,_0x38dabb;const _0x1db39b=(_0x38dabb=(_0x22edf3=this['_univerInstanceService'][_0x1ddbbd(0x41d)](this[_0x1ddbbd(0x13f)]))==null?void 0x0:_0x22edf3[_0x1ddbbd(0x37e)](_0x2c48e9))==null?void 0x0:_0x38dabb['getMergeData']();return(_0x1db39b==null?void 0x0:_0x1db39b[_0x1ddbbd(0x44f)](_0x164111=>_0x3eca57[_0x1ddbbd(0x527)][_0x1ddbbd(0x116)](_0x164111,_0x472286)))||_0x472286;}[_0x3e84f8(0x24a)](){const _0x3070de=_0x3e84f8,_0x3b50a1=new _0x3eca57[(_0x3070de(0x20e))](),_0x3a39bf=_0x5b224e(),_0x475fae=()=>{const _0x3af61f=_0x3070de;_0x3b50a1['dispose']();const _0x4cea91=(_0x3ead2b,_0x5227d7,_0x55fe00,_0x4e1c3c)=>{const _0x5c8b79=_0x3242;let _0xd968f9=[];switch(_0x3ead2b['id']){case _0x9f218b[_0x5c8b79(0x27a)][_0x5c8b79(0x2a0)]:{_0xd968f9=_0x9f218b[_0x5c8b79(0x2aa)](_0x3ead2b,_0x4e1c3c);break;}case _0x9f218b[_0x5c8b79(0x27a)]['DeleteRangeMoveUpCommandId']:{_0xd968f9=_0x9f218b[_0x5c8b79(0x213)](_0x3ead2b,_0x4e1c3c);break;}case _0x9f218b[_0x5c8b79(0x27a)]['InsertColCommandId']:{_0xd968f9=_0x9f218b[_0x5c8b79(0x1cc)](_0x3ead2b,_0x4e1c3c);break;}case _0x9f218b[_0x5c8b79(0x27a)][_0x5c8b79(0x453)]:{_0xd968f9=_0x9f218b[_0x5c8b79(0x388)](_0x3ead2b,_0x4e1c3c);break;}case _0x9f218b[_0x5c8b79(0x27a)]['InsertRangeMoveRightCommandId']:{_0xd968f9=_0x9f218b['handleInsertRangeMoveRight'](_0x3ead2b,_0x4e1c3c);break;}case _0x9f218b[_0x5c8b79(0x27a)][_0x5c8b79(0x297)]:{_0xd968f9=_0x9f218b[_0x5c8b79(0x218)](_0x3ead2b,_0x4e1c3c);break;}case _0x9f218b[_0x5c8b79(0x27a)][_0x5c8b79(0x485)]:{_0xd968f9=_0x9f218b[_0x5c8b79(0x53c)](_0x3ead2b,_0x4e1c3c);break;}case _0x9f218b['EffectRefRangId'][_0x5c8b79(0x2d0)]:{_0xd968f9=_0x9f218b[_0x5c8b79(0x3c4)](_0x3ead2b,_0x4e1c3c);break;}case _0x9f218b[_0x5c8b79(0x27a)][_0x5c8b79(0x24e)]:{_0xd968f9=_0x9f218b['handleIRemoveRow'](_0x3ead2b,_0x4e1c3c);break;}}const _0x2537f5=_0x9f218b[_0x5c8b79(0x23a)](_0xd968f9,_0x4e1c3c),_0x10f24e=this['cursorInfo']['get'](_0x5227d7);if(_0x10f24e&&_0x2537f5){const _0x4cd233={..._0x10f24e,'range':_0x2537f5};this[_0x5c8b79(0x289)][_0x5c8b79(0x1b8)](_0x5227d7,_0x4cd233),_0x3a39bf(()=>{const _0x5296a7=_0x5c8b79,_0x14e06d=this[_0x5296a7(0x3cd)][_0x5296a7(0x22a)](_0x2537f5,_0x1cbbfc=>(_0x14e06d[_0x5296a7(0x231)](),_0x4cea91(_0x1cbbfc,_0x5227d7,_0x55fe00,_0x2537f5)));_0x3b50a1[_0x5296a7(0x44d)](_0x14e06d);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x3af61f(0x306)]((_0x179913,_0x2c7850)=>{const _0x58e126=_0x3af61f,{range:_0x4fa478,sheetID:_0x2b3c26}=_0x179913,_0x27ebb1=this['_refRangeService'][_0x58e126(0x22a)](_0x4fa478,_0x2a6093=>(_0x27ebb1[_0x58e126(0x231)](),_0x4cea91(_0x2a6093,_0x2c7850,_0x2b3c26,_0x4fa478)));_0x3b50a1[_0x58e126(0x44d)](_0x27ebb1);});};this['disposeWithMe'](_0x3eca57[_0x3070de(0x340)](this[_0x3070de(0x185)][_0x3070de(0x4da)](()=>{_0x475fae();})));}[_0x3e84f8(0x36b)](){const _0x51d295=_0x3e84f8;var _0x27e048,_0x3557b3;if(this[_0x51d295(0x3ed)]=!0x0,((_0x27e048=this['_univerInstanceService'][_0x51d295(0x298)]())==null?void 0x0:_0x27e048[_0x51d295(0x286)]())!==this[_0x51d295(0x13f)])return;const _0x46cafa=(_0x3557b3=this['_injector']['get'](_0x9f218b['SheetsSelectionsService'])[_0x51d295(0x301)]())==null?void 0x0:_0x3557b3[0x0],_0x1bd338=this[_0x51d295(0x339)][_0x51d295(0x36d)](_0x3eca57['UniverInstanceType'][_0x51d295(0x28f)])['getActiveSheet']();_0x46cafa&&_0x1bd338&&this['_updateLocalCursor'](_0x1bd338[_0x51d295(0x302)](),_0x46cafa);}['_toggleOffline'](){this['_online']=!0x1;}};_0x380593=_0x1c37ec([_0x17cacb(0x2,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x368)])),_0x17cacb(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x29d267)),_0x17cacb(0x4,_0x3eca57[_0x3e84f8(0x13c)](_0x5df92e)),_0x17cacb(0x5,_0x3eca57[_0x3e84f8(0x2b1)]),_0x17cacb(0x6,_0x3eca57[_0x3e84f8(0x2b3)]),_0x17cacb(0x7,_0x3eca57[_0x3e84f8(0x13c)](_0x9f218b[_0x3e84f8(0x493)]))],_0x380593);var _0x48a602=Object[_0x3e84f8(0x243)],_0x901f46=Object[_0x3e84f8(0x439)],_0xabbe23=(_0xec41a,_0x1ee975,_0x1971e3,_0x7b9fe4)=>{const _0x5aa502=_0x3e84f8;for(var _0xf14d62=_0x7b9fe4>0x1?void 0x0:_0x7b9fe4?_0x901f46(_0x1ee975,_0x1971e3):_0x1ee975,_0x585373=_0xec41a[_0x5aa502(0x1a6)]-0x1,_0x301e71;_0x585373>=0x0;_0x585373--)(_0x301e71=_0xec41a[_0x585373])&&(_0xf14d62=(_0x7b9fe4?_0x301e71(_0x1ee975,_0x1971e3,_0xf14d62):_0x301e71(_0xf14d62))||_0xf14d62);return _0x7b9fe4&&_0xf14d62&&_0x48a602(_0x1ee975,_0x1971e3,_0xf14d62),_0xf14d62;},_0xf5146b=(_0x5121e6,_0x2d9529)=>(_0x1af565,_0x9713c8)=>_0x2d9529(_0x1af565,_0x9713c8,_0x5121e6);const _0x349d85=0x12c,_0x4e5015=0x64;let _0x23da87=class extends _0x3eca57[_0x3e84f8(0x37a)]{constructor(_0x9ef61e,_0x5281c4,_0x1e82d7,_0x2ec0c5,_0x1b46d7,_0x4162c5,_0x2b4980,_0x1b642f,_0x4997e4){const _0x303f10=_0x3e84f8;super(),_0x1de933(this,_0x303f10(0x3ed),!0x1),_0x1de933(this,_0x303f10(0x176),!0x1),_0x1de933(this,_0x303f10(0x185),new _0x199df4[(_0x303f10(0x244))](new Map())),_0x1de933(this,_0x303f10(0x45c),this[_0x303f10(0x185)][_0x303f10(0x183)]()),_0x1de933(this,_0x303f10(0x149),new _0x199df4[(_0x303f10(0x244))]([])),_0x1de933(this,'roomMembers$',this[_0x303f10(0x149)][_0x303f10(0x52b)](_0x199df4['debounceTime'](_0x349d85))),_0x1de933(this,_0x303f10(0x173),_0x7f76a4(_0x5dffb5=>{const _0x1706ff=_0x303f10,_0x34a12={'eventID':_0x1474a0[_0x1706ff(0x520)][_0x1706ff(0x402)],'data':{'unitID':this[_0x1706ff(0x13f)],'memberID':this[_0x1706ff(0x130)][_0x1706ff(0x53f)](),'selection':_0x2d22be(_0x5dffb5)}};this['_session'][_0x1706ff(0x41c)](_0x34a12,this[_0x1706ff(0x13f)]);},_0x4e5015)),(this[_0x303f10(0x13f)]=_0x9ef61e,this[_0x303f10(0x130)]=_0x5281c4,this[_0x303f10(0x249)]=_0x1e82d7,this[_0x303f10(0x530)]=_0x2ec0c5,this[_0x303f10(0x1ec)]=_0x1b46d7,this[_0x303f10(0x50a)]=_0x4162c5,this[_0x303f10(0x263)]=_0x2b4980,this[_0x303f10(0x339)]=_0x1b642f,this[_0x303f10(0x30a)]=_0x4997e4);}get[_0x3e84f8(0x289)](){const _0x15b731=_0x3e84f8;return this[_0x15b731(0x185)][_0x15b731(0x31f)]();}get[_0x3e84f8(0x3a6)](){const _0x3b53f6=_0x3e84f8;return this[_0x3b53f6(0x149)][_0x3b53f6(0x31f)]();}[_0x3e84f8(0x231)](){const _0x2c6c6d=_0x3e84f8;super[_0x2c6c6d(0x231)](),this[_0x2c6c6d(0x185)][_0x2c6c6d(0x2d2)](new Map()),this[_0x2c6c6d(0x185)][_0x2c6c6d(0x1d3)](),this[_0x2c6c6d(0x149)][_0x2c6c6d(0x2d2)]([]),this[_0x2c6c6d(0x149)][_0x2c6c6d(0x1d3)]();}[_0x3e84f8(0x352)](){const _0x280870=_0x3e84f8;this['_init']||(this['_init']=!0x0,this[_0x280870(0x130)]['sessionStatus$'][_0x280870(0x52b)](_0x199df4[_0x280870(0x468)](this['dispose$']))['subscribe'](_0x31a24b=>{const _0x76bd8e=_0x280870;_0x31a24b===_0x39f403[_0x76bd8e(0x3cc)]?this['_toggleOnline']():this[_0x76bd8e(0x188)]();}),this['_session']['event$']['pipe'](_0x199df4[_0x280870(0x468)](this[_0x280870(0x138)]))[_0x280870(0x4da)](_0x375cb8=>{const _0x1a12c8=_0x280870,_0x34fb7e=_0x375cb8[_0x1a12c8(0x11c)];_0x34fb7e===_0x1474a0[_0x1a12c8(0x520)][_0x1a12c8(0x402)]&&this['_onCursorUpdate'](_0x375cb8),_0x34fb7e===_0x1474a0[_0x1a12c8(0x520)]['USERS_LEAVE']&&this[_0x1a12c8(0x2b4)](_0x375cb8);}),this[_0x280870(0x4ed)](this[_0x280870(0x30a)]['onCommandExecuted'](_0x7b0a4=>{const _0xe89b1c=_0x280870,_0x221424=_0x7b0a4[_0xe89b1c(0x522)];_0x221424!=null&&this[_0xe89b1c(0x3ed)]&&_0x7b0a4['id']===_0x5a15a4[_0xe89b1c(0x426)]['id']&&_0x221424[_0xe89b1c(0x2ac)]===this[_0xe89b1c(0x13f)]&&_0x221424[_0xe89b1c(0x2ff)]===!0x1&&this[_0xe89b1c(0x173)](_0x221424[_0xe89b1c(0x35d)]);})),this[_0x280870(0x50a)][_0x280870(0x3c1)]['pipe'](_0x199df4[_0x280870(0x468)](this[_0x280870(0x138)]))[_0x280870(0x4da)](_0x4e9585=>{const _0x13abd0=_0x280870;if((_0x4e9585==null?void 0x0:_0x4e9585[_0x13abd0(0x13f)])!==this[_0x13abd0(0x13f)])return;const _0x417ef9={'eventID':_0x1474a0[_0x13abd0(0x520)][_0x13abd0(0x402)],'data':_0x4e9585};this[_0x13abd0(0x19a)](_0x417ef9);}),this[_0x280870(0x4ed)](this[_0x280870(0x30a)][_0x280870(0x271)](_0x15a6f3=>{const _0x2e88d5=_0x280870;if(_0x15a6f3['params']==null)return;const _0x236924=_0x15a6f3['params'];if(_0x15a6f3['id']!==_0x5a15a4[_0x2e88d5(0x495)]['id']||_0x236924[_0x2e88d5(0x2ac)]!==this[_0x2e88d5(0x13f)])return;const _0x358860={'id':_0x2e88d5(0x506),'params':_0x236924},_0x1c5b15=this['cursorInfo'];for(const [_0x4d7d7b,_0x134b04]of _0x1c5b15){const _0x52b634={'id':_0x2e88d5(0x506),'params':{'unitId':this[_0x2e88d5(0x13f)],'actions':null,'textRanges':_0x134b04[_0x2e88d5(0x35d)]}},_0x4753c1=this[_0x2e88d5(0x263)][_0x2e88d5(0x246)](_0x358860,_0x52b634,!0x1);if(_0x1474a0[_0x2e88d5(0x199)](_0x4753c1))throw _0x4753c1[_0x2e88d5(0x543)];_0x1c5b15[_0x2e88d5(0x1b8)](_0x4d7d7b,{..._0x134b04,'ranges':_0x4753c1['m2Prime'][_0x2e88d5(0x522)][_0x2e88d5(0x1a1)]});}queueMicrotask(()=>{const _0x364917=_0x2e88d5;this['_cursorInfo$'][_0x364917(0x2d2)](_0x1c5b15);});})));}[_0x3e84f8(0x19a)](_0x587482){const _0x1da244=_0x3e84f8;var _0x299e17,_0x1a8ce3;const {memberID:_0x63909e,selection:_0x28c8a9}=_0x587482[_0x1da244(0x33d)],_0x226b34=_0x17e635(_0x28c8a9),_0x481f0b=(_0x1a8ce3=(_0x299e17=this['_memberService'][_0x1da244(0x172)](this['unitID'],_0x63909e))==null?void 0x0:_0x299e17[_0x1da244(0x52a)])!=null?_0x1a8ce3:_0x1da244(0x3c9),_0x698eb={'color':this[_0x1da244(0x530)]['assignAColorForMemberID'](_0x63909e),'name':_0x481f0b,'ranges':_0x226b34},_0x280b5b=this['cursorInfo'];_0x280b5b[_0x1da244(0x1b8)](_0x63909e,_0x698eb),this[_0x1da244(0x185)]['next'](_0x280b5b);}[_0x3e84f8(0x2b4)](_0xc40c46){const _0x4e2684=_0x3e84f8,{memberID:_0x5a6fae}=_0xc40c46['data'],_0x3c34b8=this[_0x4e2684(0x289)];_0x3c34b8[_0x4e2684(0x531)](_0x5a6fae),this[_0x4e2684(0x185)][_0x4e2684(0x2d2)](_0x3c34b8);}[_0x3e84f8(0x36b)](){const _0x1252ef=_0x3e84f8;var _0x28de0a;if(this[_0x1252ef(0x3ed)]=!0x0,((_0x28de0a=this['_univerInstanceService'][_0x1252ef(0x298)]())==null?void 0x0:_0x28de0a[_0x1252ef(0x286)]())!==this[_0x1252ef(0x13f)])return;const _0x44780c=this[_0x1252ef(0x249)][_0x1252ef(0x4af)](_0x5a15a4[_0x1252ef(0x247)])[_0x1252ef(0x2f5)]();Array[_0x1252ef(0x4f1)](_0x44780c)&&_0x44780c[_0x1252ef(0x1a6)]>0x0&&this[_0x1252ef(0x173)](_0x44780c);}['_toggleOffline'](){this['_online']=!0x1;}};_0x23da87=_0xabbe23([_0xf5146b(0x2,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['Injector'])),_0xf5146b(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x29d267)),_0xf5146b(0x4,_0x3eca57[_0x3e84f8(0x13c)](_0x5df92e)),_0xf5146b(0x5,_0x3eca57[_0x3e84f8(0x13c)](_0x2436eb)),_0xf5146b(0x6,_0x1474a0['ITransformService']),_0xf5146b(0x7,_0x3eca57['IUniverInstanceService']),_0xf5146b(0x8,_0x3eca57[_0x3e84f8(0x2b3)])],_0x23da87);var _0x58d990=Object[_0x3e84f8(0x243)],_0x56ad79=Object[_0x3e84f8(0x439)],_0x4183b1=(_0x25abfa,_0x58a97f,_0x27b84f,_0x59b11e)=>{const _0x5c4c44=_0x3e84f8;for(var _0x3457cc=_0x59b11e>0x1?void 0x0:_0x59b11e?_0x56ad79(_0x58a97f,_0x27b84f):_0x58a97f,_0x346b6e=_0x25abfa[_0x5c4c44(0x1a6)]-0x1,_0x4febef;_0x346b6e>=0x0;_0x346b6e--)(_0x4febef=_0x25abfa[_0x346b6e])&&(_0x3457cc=(_0x59b11e?_0x4febef(_0x58a97f,_0x27b84f,_0x3457cc):_0x4febef(_0x3457cc))||_0x3457cc);return _0x59b11e&&_0x3457cc&&_0x58d990(_0x58a97f,_0x27b84f,_0x3457cc),_0x3457cc;},_0x4732a7=(_0x33b54d,_0x2676b9)=>(_0x4d6ad8,_0x370be3)=>_0x2676b9(_0x4d6ad8,_0x370be3,_0x33b54d);let _0x1fb14c=class extends _0x3eca57['RxDisposable']{constructor(_0x103fa9,_0xb26e01,_0x58f442){const _0x5a3382=_0x3e84f8;super(),_0x1de933(this,_0x5a3382(0x299),new Map()),_0x1de933(this,_0x5a3382(0x4f2),new _0x199df4[(_0x5a3382(0x307))]()),(this[_0x5a3382(0x339)]=_0x103fa9,this[_0x5a3382(0x249)]=_0xb26e01,this['_collabSessionService']=_0x58f442,this[_0x5a3382(0x176)]());}[_0x3e84f8(0x231)](){const _0x95807c=_0x3e84f8;super[_0x95807c(0x231)](),this['_entityInit$'][_0x95807c(0x1d3)](),this[_0x95807c(0x299)][_0x95807c(0x306)](_0x32ff4a=>_0x32ff4a['dispose']());}[_0x3e84f8(0x2fd)](_0x3db88d){const _0x3a9877=_0x3e84f8;return this[_0x3a9877(0x299)][_0x3a9877(0x2a7)](_0x3db88d)?this['_entities'][_0x3a9877(0x4af)](_0x3db88d)['cursorInfo$']:this[_0x3a9877(0x4f2)][_0x3a9877(0x52b)](_0x199df4[_0x3a9877(0x51d)](_0x3b93a5=>_0x3b93a5[_0x3a9877(0x13f)]===_0x3db88d),_0x199df4[_0x3a9877(0x256)](_0x16e40d=>_0x16e40d[_0x3a9877(0x45c)]));}[_0x3e84f8(0x176)](){const _0x31e4f8=_0x3e84f8;this['_univerInstanceService'][_0x31e4f8(0x362)](_0x3eca57[_0x31e4f8(0x3fd)][_0x31e4f8(0x28f)])[_0x31e4f8(0x52b)](_0x199df4[_0x31e4f8(0x468)](this['dispose$']))[_0x31e4f8(0x4da)](async _0x18befc=>{const _0x407de3=_0x31e4f8,_0x399f80=_0x18befc[_0x407de3(0x286)](),_0x561560=await this['_startSheetCollabCursor'](_0x399f80);this[_0x407de3(0x4f2)]['next'](_0x561560),this[_0x407de3(0x299)][_0x407de3(0x1b8)](_0x399f80,_0x561560);}),this['_univerInstanceService'][_0x31e4f8(0x362)](_0x3eca57[_0x31e4f8(0x3fd)][_0x31e4f8(0x269)])[_0x31e4f8(0x52b)](_0x199df4[_0x31e4f8(0x468)](this['dispose$']))[_0x31e4f8(0x52b)](_0x199df4[_0x31e4f8(0x51d)](_0x29e12e=>!_0x29e12e['getUnitId']()['startsWith']('__')))[_0x31e4f8(0x4da)](async _0x225b17=>{const _0x2589aa=_0x31e4f8,_0x983811=_0x225b17['getUnitId'](),_0x19ae07=await this[_0x2589aa(0x3f4)](_0x983811);this['_entityInit$'][_0x2589aa(0x2d2)](_0x19ae07),this['_entities'][_0x2589aa(0x1b8)](_0x983811,_0x19ae07);}),_0x199df4[_0x31e4f8(0x148)](this['_univerInstanceService'][_0x31e4f8(0x3a5)](_0x3eca57[_0x31e4f8(0x3fd)][_0x31e4f8(0x269)]),this[_0x31e4f8(0x339)][_0x31e4f8(0x3a5)](_0x3eca57['UniverInstanceType'][_0x31e4f8(0x28f)]))[_0x31e4f8(0x52b)](_0x199df4[_0x31e4f8(0x468)](this[_0x31e4f8(0x138)]))[_0x31e4f8(0x4da)](_0x1f0d44=>{const _0x1c8819=_0x31e4f8,_0x4551b4=_0x1f0d44[_0x1c8819(0x286)](),_0x21b5a3=this[_0x1c8819(0x299)][_0x1c8819(0x4af)](_0x4551b4);_0x21b5a3&&(_0x21b5a3['dispose'](),this[_0x1c8819(0x299)][_0x1c8819(0x531)](_0x4551b4));});}async[_0x3e84f8(0x46b)](_0x458013){const _0x4693c5=_0x3e84f8,_0x25314c=await this[_0x4693c5(0x4e8)][_0x4693c5(0x2ca)](_0x458013),_0x6954a0=this['_injector'][_0x4693c5(0x2b5)](_0x380593,_0x458013,_0x25314c);return _0x6954a0['init'](),_0x6954a0;}async[_0x3e84f8(0x3f4)](_0x3da3ac){const _0xefa6f2=_0x3e84f8,_0x25a922=await this[_0xefa6f2(0x4e8)]['requireSession'](_0x3da3ac),_0x108e3b=this[_0xefa6f2(0x249)]['createInstance'](_0x23da87,_0x3da3ac,_0x25a922);return _0x108e3b[_0xefa6f2(0x352)](),_0x108e3b;}};_0x1fb14c=_0x4183b1([_0x3eca57[_0x3e84f8(0x1ef)](_0x3eca57['LifecycleStages'][_0x3e84f8(0x4eb)],_0x1fb14c),_0x4732a7(0x0,_0x3eca57[_0x3e84f8(0x2b1)]),_0x4732a7(0x1,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x368)])),_0x4732a7(0x2,_0x3eca57['Inject'](_0x2509f1[_0x3e84f8(0x332)]))],_0x1fb14c);const _0x10a292=0x14,_0x23912b=0xc8,_0x4ed291=0x4,_0x330d3c=0x5;function _0x2b3881(_0x263081,_0x519a2c){const _0xcc9c92=_0x3e84f8;let {radius:_0x4b34b7,width:_0x220d6f,height:_0x21bb15}=_0x519a2c;_0x4b34b7=_0x4b34b7!=null?_0x4b34b7:0x0,_0x220d6f=_0x220d6f!=null?_0x220d6f:0x1e,_0x21bb15=_0x21bb15!=null?_0x21bb15:0x1e;let _0x365684=0x0,_0xf83037=0x0,_0x58ee8b=0x0;_0x365684=_0xf83037=_0x58ee8b=Math[_0xcc9c92(0x342)](_0x4b34b7,_0x220d6f/0x2,_0x21bb15/0x2),_0x263081[_0xcc9c92(0x545)](),_0x263081[_0xcc9c92(0x367)](_0x365684,0x0),_0x263081[_0xcc9c92(0x32f)](_0x220d6f-_0xf83037,0x0),_0x263081['arc'](_0x220d6f-_0xf83037,_0xf83037,_0xf83037,Math['PI']*0x3/0x2,0x0,!0x1),_0x263081['lineTo'](_0x220d6f,_0x21bb15-_0x58ee8b),_0x263081[_0xcc9c92(0x1b0)](_0x220d6f-_0x58ee8b,_0x21bb15-_0x58ee8b,_0x58ee8b,0x0,Math['PI']/0x2,!0x1),_0x263081['lineTo'](0x0,_0x21bb15),_0x263081['lineTo'](0x0,_0x365684),_0x263081[_0xcc9c92(0x1b0)](_0x365684,_0x365684,_0x365684,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x263081['closePath'](),_0x519a2c[_0xcc9c92(0x483)]&&(_0x263081[_0xcc9c92(0x351)](),_0x263081[_0xcc9c92(0x27c)]=_0x519a2c[_0xcc9c92(0x483)],_0x519a2c[_0xcc9c92(0x156)]==='evenodd'?_0x263081[_0xcc9c92(0x483)](_0xcc9c92(0x33b)):_0x263081[_0xcc9c92(0x483)](),_0x263081[_0xcc9c92(0x3b4)]());}class _0x11a31 extends _0x29e386[_0x3e84f8(0x4e2)]{constructor(_0x34bbc0,_0x2e0b93){const _0x4f9b9e=_0x3e84f8;super(_0x34bbc0,_0x2e0b93),_0x1de933(this,'color'),_0x1de933(this,_0x4f9b9e(0x4e7)),(this[_0x4f9b9e(0x4cb)]=_0x2e0b93==null?void 0x0:_0x2e0b93[_0x4f9b9e(0x4cb)],this[_0x4f9b9e(0x4e7)]=_0x2e0b93==null?void 0x0:_0x2e0b93[_0x4f9b9e(0x4e7)]);}static[_0x3e84f8(0x11f)](_0x3b0682,_0x39f670){const _0x3d6bd3=_0x3e84f8,{text:_0x30efed,color:_0x530630}=_0x39f670;_0x3b0682[_0x3d6bd3(0x351)](),_0x3b0682[_0x3d6bd3(0x517)]=_0x3d6bd3(0x370);const _0x586a02=_0x3b0682[_0x3d6bd3(0x448)](_0x30efed)[_0x3d6bd3(0x1b3)],_0x598223=Math['min'](_0x586a02+0x2*_0x4ed291,_0x23912b);_0x2b3881(_0x3b0682,{'height':_0x10a292,'radius':0x4,'width':_0x598223,'fill':_0x530630,'evented':!0x1}),_0x3b0682['fillStyle']=_0x3d6bd3(0x1e9);const _0x4cfa7d=_0x4ed291,_0x4de797=_0x10a292-_0x330d3c,_0x14745a=_0x23912b-0x2*_0x4ed291;if(_0x586a02>_0x14745a){let _0x34df3f='',_0x4dbd2b=0x0;for(const _0x5049d6 of _0x30efed){const _0x4753e5=_0x3b0682[_0x3d6bd3(0x448)](_0x5049d6)['width'];if(_0x4dbd2b+_0x4753e5<=_0x14745a-_0x3b0682[_0x3d6bd3(0x448)](_0x3d6bd3(0x2d1))[_0x3d6bd3(0x1b3)])_0x34df3f+=_0x5049d6,_0x4dbd2b+=_0x4753e5;else{_0x34df3f+=_0x3d6bd3(0x2d1);break;}}_0x3b0682['fillText'](_0x34df3f,_0x4cfa7d,_0x4de797);}else _0x3b0682['fillText'](_0x30efed,_0x4cfa7d,_0x4de797);_0x3b0682[_0x3d6bd3(0x3b4)]();}[_0x3e84f8(0x345)](_0x552c75){_0x11a31['drawWith'](_0x552c75,this);}}const _0x1a2191=0x1,_0x4f986a=1.5;class _0x677fb extends _0x29e386[_0x3e84f8(0x4e2)]{constructor(_0x477b67,_0x507a94){const _0xd328c=_0x3e84f8;super(_0x477b67,_0x507a94),_0x1de933(this,_0xd328c(0x338)),_0x1de933(this,_0xd328c(0x4cf),!0x1),_0x1de933(this,_0xd328c(0x2bb)),_0x1de933(this,'_name',''),_0x1de933(this,'_labelPosition',_0xd328c(0x146)),_0x1de933(this,'_backgroundColor'),(_0x507a94&&this[_0xd328c(0x35c)](_0x507a94),this[_0xd328c(0x31b)]['subscribeEvent'](()=>this[_0xd328c(0x35c)]({'hovered':!0x0})),this[_0xd328c(0x494)]['subscribeEvent'](()=>this[_0xd328c(0x35c)]({'hovered':!0x1})));}[_0x3e84f8(0x35c)](_0x39c56d){const _0x6dd665=_0x3e84f8;var _0x5d79ae,_0x24e926,_0x4b3d78,_0x283cd0,_0x5b143e,_0x32a14d;this[_0x6dd665(0x338)]=(_0x5d79ae=_0x39c56d[_0x6dd665(0x4cb)])!=null?_0x5d79ae:this['_color'],this[_0x6dd665(0x4cf)]=(_0x24e926=_0x39c56d[_0x6dd665(0x43a)])!=null?_0x24e926:this[_0x6dd665(0x4cf)],this[_0x6dd665(0x2bb)]=(_0x4b3d78=_0x39c56d[_0x6dd665(0x4cd)])!=null?_0x4b3d78:this[_0x6dd665(0x2bb)],this['_name']=(_0x283cd0=_0x39c56d[_0x6dd665(0x52a)])!=null?_0x283cd0:this[_0x6dd665(0x1ac)],this[_0x6dd665(0x43e)]=(_0x5b143e=_0x39c56d[_0x6dd665(0x327)])!=null?_0x5b143e:this[_0x6dd665(0x43e)],this[_0x6dd665(0x361)]=(_0x32a14d=_0x39c56d[_0x6dd665(0x21a)])!=null?_0x32a14d:this[_0x6dd665(0x361)],this[_0x6dd665(0x4b2)]({'width':_0x39c56d[_0x6dd665(0x1b3)],'height':_0x39c56d[_0x6dd665(0x534)]});}[_0x3e84f8(0x4f3)](_0x5ab1d4){const _0x4f465c=_0x3e84f8,{row:_0x549fa9,column:_0x1c3bd7}=_0x5ab1d4;if(_0x549fa9>=this[_0x4f465c(0x2bb)]['startRow']&&_0x549fa9<=this[_0x4f465c(0x2bb)]['endRow']&&_0x1c3bd7>=this[_0x4f465c(0x2bb)]['startColumn']&&_0x1c3bd7<=this['_range'][_0x4f465c(0x1f8)]){this[_0x4f465c(0x35c)]({'hovered':!0x0});return;}this[_0x4f465c(0x35c)]({'hovered':!0x1});}[_0x3e84f8(0x2fb)](_0x5e369c){return!0x1;}[_0x3e84f8(0x345)](_0x3e3737){const _0x3208b6=_0x3e84f8;_0x29e386[_0x3208b6(0x1e3)][_0x3208b6(0x11f)](_0x3e3737,{'width':this[_0x3208b6(0x1b3)],'height':this[_0x3208b6(0x534)],'strokeWidth':_0x4f986a,'stroke':this[_0x3208b6(0x338)],'evented':!0x1,'fill':this[_0x3208b6(0x361)]}),this['_hovered']&&(_0x3e3737[_0x3208b6(0x351)](),_0x3e3737[_0x3208b6(0x326)](0x1,0x0,0x0,0x1,this[_0x3208b6(0x1b3)],this[_0x3208b6(0x43e)]===_0x3208b6(0x1fe)?0x0:-_0x10a292),_0x11a31[_0x3208b6(0x11f)](_0x3e3737,{'text':this['_name'],'color':this[_0x3208b6(0x338)]}),_0x3e3737[_0x3208b6(0x3b4)]());}}var _0x4fd88a=Object[_0x3e84f8(0x243)],_0x1ad23b=Object['getOwnPropertyDescriptor'],_0x141e00=(_0x26d8b8,_0x3d8416,_0x962129,_0x5f1b13)=>{const _0x428c29=_0x3e84f8;for(var _0x1f6f64=_0x5f1b13>0x1?void 0x0:_0x5f1b13?_0x1ad23b(_0x3d8416,_0x962129):_0x3d8416,_0x4a107c=_0x26d8b8[_0x428c29(0x1a6)]-0x1,_0x1b703d;_0x4a107c>=0x0;_0x4a107c--)(_0x1b703d=_0x26d8b8[_0x4a107c])&&(_0x1f6f64=(_0x5f1b13?_0x1b703d(_0x3d8416,_0x962129,_0x1f6f64):_0x1b703d(_0x1f6f64))||_0x1f6f64);return _0x5f1b13&&_0x1f6f64&&_0x4fd88a(_0x3d8416,_0x962129,_0x1f6f64),_0x1f6f64;},_0x5a7e34=(_0x48150a,_0x591dce)=>(_0x24d710,_0x3f7f00)=>_0x591dce(_0x24d710,_0x3f7f00,_0x48150a);const _0x19043c=0x1389;let _0x4d9935=class extends _0x3eca57['RxDisposable']{constructor(_0x4b94b8,_0x2dc91f,_0x2fa9fa,_0x3d5b0b){const _0x39026c=_0x3e84f8;super(),_0x1de933(this,'_cursors',new Set()),_0x1de933(this,_0x39026c(0x196),null),(this[_0x39026c(0x37f)]=_0x4b94b8,this[_0x39026c(0x33c)]=_0x2dc91f,this[_0x39026c(0x407)]=_0x2fa9fa,this[_0x39026c(0x2b8)]=_0x3d5b0b,this[_0x39026c(0x176)]());}[_0x3e84f8(0x176)](){const _0x20154d=_0x3e84f8;this['_sheetSkeletonManagerService'][_0x20154d(0x19e)]['pipe'](_0x46f2f0[_0x20154d(0x468)](this['dispose$']),_0x46f2f0[_0x20154d(0x256)](_0x1282e7=>{const _0x20cf2c=_0x20154d;if(_0x1282e7){const _0x23f2e4=_0x1282e7[_0x20cf2c(0x425)];return _0x199df4['combineLatest'](this[_0x20cf2c(0x407)][_0x20cf2c(0x2fd)](this[_0x20cf2c(0x37f)]['unitId']),this[_0x20cf2c(0x2b8)][_0x20cf2c(0x122)])[_0x20cf2c(0x52b)](_0x46f2f0[_0x20cf2c(0x1ad)](([_0x2798bb,_0x5efcbd])=>{const _0x178f90=new Map();return _0x2798bb['forEach']((_0x30cd59,_0x16a550)=>{const _0x116da4=_0x3242;if(_0x30cd59[_0x116da4(0x124)]===_0x23f2e4){const _0xe1e121={..._0x30cd59};_0xe1e121['color']=_0x5efcbd[_0x30cd59[_0x116da4(0x4cb)]],_0x178f90[_0x116da4(0x1b8)](_0x16a550,_0xe1e121);}}),{'skeleton':_0x1282e7,'cursors':_0x178f90};}));}return _0x199df4['of']({'skeleton':null,'cursors':new Map()});}))[_0x20154d(0x4da)](({skeleton:_0x484956,cursors:_0x53a1b9})=>{const _0x25a8e9=_0x20154d;this[_0x25a8e9(0x3e6)](),_0x484956&&this[_0x25a8e9(0x18e)](_0x484956,_0x53a1b9);}),this[_0x20154d(0x33c)]['currentSkeleton$'][_0x20154d(0x4da)](_0x2f6e68=>{const _0xd389e6=_0x20154d;if(_0x2f6e68==null)return;const {skeleton:_0xee1654}=_0x2f6e68,{scene:_0x1ed8ff}=this[_0xd389e6(0x37f)];_0x1ed8ff[_0xd389e6(0x47c)][_0xd389e6(0x4d4)](_0x7f76a4(_0x5a762a=>{const _0x509102=_0xd389e6;var _0x34a246,_0x3c621b;const {offsetX:_0x48b596,offsetY:_0x54e42c}=_0x5a762a,{x:_0x5b9d61,y:_0x5a3980}=_0x1ed8ff[_0x509102(0x478)](_0x29e386['Vector2'][_0x509102(0x1e7)]([_0x48b596,_0x54e42c])),{scaleX:_0x5572f1,scaleY:_0x9cc6fb}=_0x1ed8ff[_0x509102(0x50c)](),_0x5c571f=_0x1ed8ff[_0x509102(0x3ca)](_0x346aeb[_0x509102(0x16b)][_0x509102(0x502)]),_0x5e2e99=_0x1ed8ff['getVpScrollXYInfoByPosToVp'](_0x29e386['Vector2'][_0x509102(0x1e7)]([_0x5b9d61,_0x5a3980]),_0x5c571f),_0x4315c6=_0xee1654['getCellPositionByOffset'](_0x48b596,_0x54e42c,_0x5572f1,_0x9cc6fb,_0x5e2e99);((_0x34a246=this['_lastPointer'])==null?void 0x0:_0x34a246[_0x509102(0x3b3)])===_0x4315c6[_0x509102(0x3b3)]&&((_0x3c621b=this[_0x509102(0x196)])==null?void 0x0:_0x3c621b[_0x509102(0x4fb)])===_0x4315c6[_0x509102(0x4fb)]||this[_0x509102(0x4ef)][_0x509102(0x306)](_0x43f38e=>{const _0x518dcc=_0x509102;_0x43f38e[_0x518dcc(0x4f3)](_0x4315c6);});},0x64));});}[_0x3e84f8(0x18e)](_0x59f0fe,_0x1fc848){const _0x52e17e=_0x3e84f8;var _0x3e9ebd;const _0x3c68ea=(_0x3e9ebd=this[_0x52e17e(0x33c)][_0x52e17e(0x33a)]())==null?void 0x0:_0x3e9ebd[_0x52e17e(0x140)];if(!_0x3c68ea)return;const _0x5aa1b3=this[_0x52e17e(0x1f5)]();if(!_0x5aa1b3)return;this[_0x52e17e(0x4ef)][_0x52e17e(0x306)](_0x395b44=>{const _0x2b53ee=_0x52e17e;_0x395b44[_0x2b53ee(0x205)]();});const {scene:_0x21b6f0}=_0x5aa1b3,_0x143704=_0x4c1950(Array[_0x52e17e(0x41e)](_0x1fc848[_0x52e17e(0x3a2)]()))[_0x52e17e(0x1ad)](_0x2dc0a7=>{const _0x36b8fa=_0x52e17e,{color:_0x45f80f,range:_0x5eb2f6,name:_0x191fd9,selection:_0x37fdca,sheetID:_0x378fc8}=_0x2dc0a7,{startColumn:_0x129846,startRow:_0x4ff87a,endColumn:_0x16b920,endRow:_0x43f370}=_0x5eb2f6,_0x5cef7d=_0x346aeb['getCoordByCell'](_0x4ff87a,_0x129846,_0x21b6f0,_0x3c68ea),_0x52b984=_0x346aeb[_0x36b8fa(0x13e)](_0x43f370,_0x16b920,_0x21b6f0,_0x3c68ea),{columnHeaderHeightAndMarginTop:_0x50fc5f}=_0x3c68ea,{startX:_0x4d8cb0,startY:_0xcf4424}=_0x5cef7d,{endX:_0x393d5f,endY:_0x5739a9}=_0x52b984,_0x4709f7=_0x393d5f-_0x4d8cb0,_0x386c7f=_0x5739a9-_0xcf4424,_0x193cd9={'labelPosition':_0xcf4424-_0x50fc5f>=_0x10a292?_0x36b8fa(0x146):_0x36b8fa(0x1fe),'sheetID':_0x378fc8,'range':_0x5eb2f6,'color':_0x45f80f,'name':_0x191fd9,'selection':_0x37fdca,'left':_0x4d8cb0,'top':_0xcf4424,'width':_0x4709f7,'height':_0x386c7f,'evented':!0x1,'zIndex':_0x19043c};return new _0x677fb(_0x191fd9,_0x193cd9);});_0x21b6f0[_0x52e17e(0x492)](_0x143704,_0x1a2191),this[_0x52e17e(0x4ef)]=new Set(_0x143704);}[_0x3e84f8(0x3e6)](){const _0xe0b5c=_0x3e84f8;var _0x2db0cc;(_0x2db0cc=this[_0xe0b5c(0x4ef)])==null||_0x2db0cc[_0xe0b5c(0x306)](_0x2b5be9=>_0x2b5be9[_0xe0b5c(0x231)]());}[_0x3e84f8(0x1f5)](){const _0x274c93=_0x3e84f8;return _0x346aeb['getSheetObject'](this['_context'][_0x274c93(0x3ae)],this[_0x274c93(0x37f)]);}};_0x4d9935=_0x141e00([_0x5a7e34(0x1,_0x3eca57[_0x3e84f8(0x13c)](_0x346aeb[_0x3e84f8(0x4ee)])),_0x5a7e34(0x2,_0x3eca57[_0x3e84f8(0x13c)](_0x1fb14c)),_0x5a7e34(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x1a5)]))],_0x4d9935);function _0x4c1950(_0x2eb7f4){const _0x4149d9=_0x3e84f8,_0x1e8221=new Map();return _0x2eb7f4[_0x4149d9(0x306)](_0x548f23=>{const _0x3e01a1=_0x4149d9;if(_0x1e8221[_0x3e01a1(0x2a7)](_0x548f23[_0x3e01a1(0x13a)])){const _0x5d3985=_0x1e8221[_0x3e01a1(0x4af)](_0x548f23[_0x3e01a1(0x13a)]);_0x5d3985[_0x3e01a1(0x52a)]+=',\x20'+_0x548f23[_0x3e01a1(0x52a)];}else _0x1e8221['set'](_0x548f23['selection'],_0x548f23);}),Array['from'](_0x1e8221[_0x4149d9(0x3a2)]());}var _0x1bcb4a=function(){const _0xa8173e=_0x3e84f8;return _0x1bcb4a=Object['assign']||function(_0x5d00be){const _0x42639f=_0x3242;for(var _0x2cd8d8,_0x3fbe73=0x1,_0x5de969=arguments[_0x42639f(0x1a6)];_0x3fbe73<_0x5de969;_0x3fbe73++){_0x2cd8d8=arguments[_0x3fbe73];for(var _0x258d00 in _0x2cd8d8)Object['prototype'][_0x42639f(0x39b)][_0x42639f(0x48c)](_0x2cd8d8,_0x258d00)&&(_0x5d00be[_0x258d00]=_0x2cd8d8[_0x258d00]);}return _0x5d00be;},_0x1bcb4a[_0xa8173e(0x440)](this,arguments);},_0x496380=function(_0x7abeb2,_0x31a919){const _0x118b13=_0x3e84f8;var _0x446f63={};for(var _0x553082 in _0x7abeb2)Object[_0x118b13(0x272)][_0x118b13(0x39b)]['call'](_0x7abeb2,_0x553082)&&_0x31a919[_0x118b13(0x16d)](_0x553082)<0x0&&(_0x446f63[_0x553082]=_0x7abeb2[_0x553082]);if(_0x7abeb2!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x2463c9=0x0,_0x553082=Object[_0x118b13(0x115)](_0x7abeb2);_0x2463c9<_0x553082[_0x118b13(0x1a6)];_0x2463c9++)_0x31a919[_0x118b13(0x16d)](_0x553082[_0x2463c9])<0x0&&Object[_0x118b13(0x272)]['propertyIsEnumerable'][_0x118b13(0x48c)](_0x7abeb2,_0x553082[_0x2463c9])&&(_0x446f63[_0x553082[_0x2463c9]]=_0x7abeb2[_0x553082[_0x2463c9]]);}return _0x446f63;},_0x4e5e5b=_0x2b3f02['forwardRef'](function(_0x24e5d6,_0x10d0a8){const _0x168d0a=_0x3e84f8;var _0x469c54=_0x24e5d6[_0x168d0a(0x2f8)],_0x1e506b=_0x24e5d6['id'],_0x314697=_0x24e5d6['className'],_0x2df842=_0x24e5d6[_0x168d0a(0x358)],_0x1da037=_0x496380(_0x24e5d6,[_0x168d0a(0x2f8),'id',_0x168d0a(0x24b),_0x168d0a(0x358)]),_0x44a803=_0x168d0a(0x411)[_0x168d0a(0x360)](_0x1e506b,'\x20')[_0x168d0a(0x360)](_0x314697||'')[_0x168d0a(0x4d7)](),_0x7c4b4e=_0x2b3f02[_0x168d0a(0x137)]('_'[_0x168d0a(0x360)](_0x457770()));return _0x44e28b(_0x469c54,''[_0x168d0a(0x360)](_0x1e506b),{'defIds':_0x469c54[_0x168d0a(0x191)],'idSuffix':_0x7c4b4e[_0x168d0a(0x501)]},_0x1bcb4a({'ref':_0x10d0a8,'className':_0x44a803},_0x1da037),_0x2df842);});function _0x44e28b(_0x55af5e,_0x2b47ae,_0x5adc09,_0x4201ba,_0x502ea2){const _0x129eed=_0x3e84f8;return _0x2b3f02[_0x129eed(0x14b)](_0x55af5e[_0x129eed(0x36c)],_0x1bcb4a(_0x1bcb4a({'key':_0x2b47ae},_0x5ab4e1(_0x55af5e,_0x5adc09,_0x502ea2)),_0x4201ba),(_0x52a72d(_0x55af5e,_0x5adc09)['children']||[])[_0x129eed(0x1ad)](function(_0x446654,_0x197ca2){const _0x2b5932=_0x129eed;return _0x44e28b(_0x446654,''['concat'](_0x2b47ae,'-')[_0x2b5932(0x360)](_0x55af5e[_0x2b5932(0x36c)],'-')['concat'](_0x197ca2),_0x5adc09,void 0x0,_0x502ea2);}));}function _0x5ab4e1(_0x6bceda,_0xf46b01,_0x3d8d0f){const _0x303117=_0x3e84f8;var _0x1ee3a7=_0x1bcb4a({},_0x6bceda[_0x303117(0x2fc)]);_0x3d8d0f!=null&&_0x3d8d0f[_0x303117(0x219)]&&_0x1ee3a7[_0x303117(0x483)]===_0x303117(0x219)&&(_0x1ee3a7[_0x303117(0x483)]=_0x3d8d0f[_0x303117(0x219)]);var _0x46eddb=_0xf46b01['defIds'];return!_0x46eddb||_0x46eddb[_0x303117(0x1a6)]===0x0||(_0x6bceda['tag']==='use'&&_0x1ee3a7[_0x303117(0x237)]&&(_0x1ee3a7[_0x303117(0x237)]=_0x1ee3a7['xlink:href']+_0xf46b01[_0x303117(0x18d)]),Object['entries'](_0x1ee3a7)[_0x303117(0x306)](function(_0x3eb263){var _0x476b6a=_0x3eb263[0x0],_0x541faa=_0x3eb263[0x1];typeof _0x541faa=='string'&&(_0x1ee3a7[_0x476b6a]=_0x541faa['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0xf46b01['idSuffix'],')')));})),_0x1ee3a7;}function _0x52a72d(_0x49491d,_0x58c469){const _0x2d9452=_0x3e84f8;var _0x339227,_0x51509c=_0x58c469[_0x2d9452(0x191)];return!_0x51509c||_0x51509c[_0x2d9452(0x1a6)]===0x0?_0x49491d:_0x49491d['tag']==='defs'&&(!((_0x339227=_0x49491d[_0x2d9452(0x1b7)])===null||_0x339227===void 0x0)&&_0x339227[_0x2d9452(0x1a6)])?_0x1bcb4a(_0x1bcb4a({},_0x49491d),{'children':_0x49491d[_0x2d9452(0x1b7)][_0x2d9452(0x1ad)](function(_0x4d8a2b){const _0xc9f6f=_0x2d9452;return typeof _0x4d8a2b[_0xc9f6f(0x2fc)]['id']==_0xc9f6f(0x463)&&_0x51509c&&_0x51509c[_0xc9f6f(0x16d)](_0x4d8a2b[_0xc9f6f(0x2fc)]['id'])>-0x1?_0x1bcb4a(_0x1bcb4a({},_0x4d8a2b),{'attrs':_0x1bcb4a(_0x1bcb4a({},_0x4d8a2b[_0xc9f6f(0x2fc)]),{'id':_0x4d8a2b[_0xc9f6f(0x2fc)]['id']+_0x58c469[_0xc9f6f(0x18d)]})}):_0x4d8a2b;})}):_0x49491d;}function _0x457770(){const _0x9f37d2=_0x3e84f8;return Math[_0x9f37d2(0x2ab)]()[_0x9f37d2(0x151)](0x24)[_0x9f37d2(0x3db)](0x2,0x8);}_0x4e5e5b[_0x3e84f8(0x524)]=_0x3e84f8(0x2c2);var _0x27e7f8={'tag':_0x3e84f8(0x1bb),'attrs':{'fill':'none','viewBox':_0x3e84f8(0x2cf),'width':_0x3e84f8(0x29d),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3e84f8(0x390)},'children':[{'tag':_0x3e84f8(0x290),'attrs':{'stroke':_0x3e84f8(0x304),'d':_0x3e84f8(0x132),'strokeLinecap':_0x3e84f8(0x311),'strokeLinejoin':_0x3e84f8(0x311),'strokeWidth':1.2}}]},{'tag':_0x3e84f8(0x242),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x3e84f8(0x290),'attrs':{'fill':_0x3e84f8(0x11e),'d':_0x3e84f8(0x19c)}}]}]}],'defIds':[_0x3e84f8(0x2dc)]},_0x5dd05b=_0x2b3f02[_0x3e84f8(0x278)](function(_0xd9b66b,_0x138308){const _0x14b3c4=_0x3e84f8;return _0x2b3f02['createElement'](_0x4e5e5b,Object[_0x14b3c4(0x4ca)]({},_0xd9b66b,{'id':_0x14b3c4(0x40e),'ref':_0x138308,'icon':_0x27e7f8}));});_0x5dd05b['displayName']=_0x3e84f8(0x24f);var _0x59a786={'tag':_0x3e84f8(0x1bb),'attrs':{'fill':_0x3e84f8(0x31c),'viewBox':_0x3e84f8(0x47b),'width':_0x3e84f8(0x29d),'height':_0x3e84f8(0x29d)},'children':[{'tag':'g','attrs':{'clipPath':_0x3e84f8(0x25b)},'children':[{'tag':_0x3e84f8(0x290),'attrs':{'stroke':_0x3e84f8(0x304),'d':_0x3e84f8(0x393),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3e84f8(0x242),'attrs':{},'children':[{'tag':_0x3e84f8(0x51e),'attrs':{'id':_0x3e84f8(0x4dc)},'children':[{'tag':_0x3e84f8(0x290),'attrs':{'fill':_0x3e84f8(0x11e),'d':_0x3e84f8(0x19c),'transform':_0x3e84f8(0x208)}}]}]}],'defIds':[_0x3e84f8(0x4dc)]},_0x423869=_0x2b3f02[_0x3e84f8(0x278)](function(_0x26f900,_0x1c6db5){const _0x3d210d=_0x3e84f8;return _0x2b3f02['createElement'](_0x4e5e5b,Object[_0x3d210d(0x4ca)]({},_0x26f900,{'id':_0x3d210d(0x1e0),'ref':_0x1c6db5,'icon':_0x59a786}));});_0x423869[_0x3e84f8(0x524)]='OnLineSingle';const _0x369528={'onlineStatusIcon':_0x3e84f8(0x464),'onlineStatusTitle':_0x3e84f8(0x147),'onlineStatus':_0x3e84f8(0x454),'online':_0x3e84f8(0x2a2),'offline':_0x3e84f8(0x451)};function _0x2a1322(_0x20cef1){const _0x50a4ae=_0x3e84f8;switch(_0x20cef1){case _0x4bd68c[_0x50a4ae(0x535)]:return _0x50a4ae(0x509);case _0x4bd68c['CONFLICT']:return _0x50a4ae(0x350);case _0x4bd68c[_0x50a4ae(0x384)]:return _0x50a4ae(0x39d);case _0x4bd68c[_0x50a4ae(0x3c6)]:return _0x50a4ae(0x412);case _0x4bd68c[_0x50a4ae(0x1ab)]:case _0x4bd68c[_0x50a4ae(0x1a3)]:case _0x4bd68c[_0x50a4ae(0x2ed)]:return _0x50a4ae(0x258);case _0x4bd68c[_0x50a4ae(0x2f9)]:return _0x50a4ae(0x212);}}function _0x352a6e(_0x209098){const _0x562e95=_0x3e84f8,{status$:_0x2cfb8c}=_0x209098,_0xbfce78=_0x2ede89[_0x562e95(0x28d)](_0x2cfb8c,_0x4bd68c[_0x562e95(0x3c6)]),_0x18a696=_0x3eca57[_0x562e95(0x44a)](_0x3eca57[_0x562e95(0x477)]),_0x34f4b1=_0x3eca57[_0x562e95(0x44a)](_0x2509f1[_0x562e95(0x332)]),_0x575339=_0xbfce78!==_0x4bd68c[_0x562e95(0x535)],_0x365044=_0x18a696['t'](_0x2a1322(_0xbfce78)),_0xbc7ac6=_0x4b450e(_0x369528[_0x562e95(0x343)],{[_0x369528[_0x562e95(0x314)]]:_0x575339,[_0x369528[_0x562e95(0x127)]]:!_0x575339}),_0x596a7d=_0x575339?_0x2b3f02[_0x562e95(0x14b)](_0x423869,null):_0x2b3f02['createElement'](_0x5dd05b,null),_0x2dd308=_0x2b3f02[_0x562e95(0x498)](()=>{const _0x3aa60b=_0x562e95;_0x575339||_0x34f4b1[_0x3aa60b(0x3f2)]();},[_0x575339,_0x34f4b1]);function _0x48227a(){const _0x156c10=_0x562e95;return _0x2b3f02['createElement']('div',{'className':_0xbc7ac6,'onClick':_0x2dd308},_0x2b3f02['createElement'](_0x156c10(0x295),{'className':_0x369528[_0x156c10(0x2e6)]},_0x596a7d),_0x2b3f02['createElement'](_0x156c10(0x295),{'className':_0x369528[_0x156c10(0x467)]},_0x365044));}return _0x575339?_0x48227a():_0x2b3f02[_0x562e95(0x14b)](_0xf694dc[_0x562e95(0x2d8)],{'title':_0x18a696['t'](_0x562e95(0x280))},_0x48227a());}var _0x5f1ec7=Object[_0x3e84f8(0x243)],_0x294e71=Object[_0x3e84f8(0x439)],_0x3302a2=(_0xe003d8,_0x5eefc9,_0x24745b,_0x20ea36)=>{const _0x261daa=_0x3e84f8;for(var _0x220d07=_0x20ea36>0x1?void 0x0:_0x20ea36?_0x294e71(_0x5eefc9,_0x24745b):_0x5eefc9,_0x2d82d1=_0xe003d8[_0x261daa(0x1a6)]-0x1,_0xbeb73e;_0x2d82d1>=0x0;_0x2d82d1--)(_0xbeb73e=_0xe003d8[_0x2d82d1])&&(_0x220d07=(_0x20ea36?_0xbeb73e(_0x5eefc9,_0x24745b,_0x220d07):_0xbeb73e(_0x220d07))||_0x220d07);return _0x20ea36&&_0x220d07&&_0x5f1ec7(_0x5eefc9,_0x24745b,_0x220d07),_0x220d07;},_0x25fec0=(_0x578ed4,_0x4e0747)=>(_0x590ec8,_0x5c0291)=>_0x4e0747(_0x590ec8,_0x5c0291,_0x578ed4);_0x2509f1[_0x3e84f8(0x300)]=class extends _0x3eca57[_0x3e84f8(0x2a6)]{constructor(_0x689103,_0x27e74b,_0x3b37a2,_0x25dc4d){const _0x49da18=_0x3e84f8;super(),_0x1de933(this,_0x49da18(0x3ff),new _0x199df4[(_0x49da18(0x244))](_0x4bd68c[_0x49da18(0x3c6)])),(this[_0x49da18(0x339)]=_0x689103,this[_0x49da18(0x260)]=_0x27e74b,this['_injector']=_0x3b37a2,this[_0x49da18(0x238)]=_0x25dc4d,this[_0x49da18(0x2af)](),this[_0x49da18(0x401)]());}[_0x3e84f8(0x401)](){const _0x347334=_0x3e84f8;this[_0x347334(0x4ed)](this[_0x347334(0x339)][_0x347334(0x131)]['pipe'](_0x199df4[_0x347334(0x256)](()=>{const _0x4316d4=_0x347334,_0x978408=this[_0x4316d4(0x339)]['getFocusedUnit']();return _0x978408?this[_0x4316d4(0x238)][_0x4316d4(0x26f)](_0x978408[_0x4316d4(0x286)]()):_0x199df4['of'](null);}),_0x199df4[_0x347334(0x256)](_0x551b63=>_0x551b63?_0x551b63[_0x347334(0x225)]:_0x199df4['of'](_0x4bd68c[_0x347334(0x3c6)])))[_0x347334(0x4da)](_0x2a2066=>{const _0x5e8d97=_0x347334;this[_0x5e8d97(0x3ff)][_0x5e8d97(0x2d2)](_0x2a2066);}));}[_0x3e84f8(0x2af)](){const _0x1ef437=_0x3e84f8;this[_0x1ef437(0x4ed)](this[_0x1ef437(0x260)]['registerComponent'](_0x2ede89['BuiltInUIPart'][_0x1ef437(0x1d7)],()=>_0x3eca57[_0x1ef437(0x470)](_0x23e810({'status$':this['_status$'][_0x1ef437(0x183)]()}),this[_0x1ef437(0x249)])));}},_0x2509f1[_0x3e84f8(0x300)]=_0x3302a2([_0x25fec0(0x0,_0x3eca57[_0x3e84f8(0x2b1)]),_0x25fec0(0x1,_0x2ede89[_0x3e84f8(0x168)]),_0x25fec0(0x2,_0x3eca57['Inject'](_0x3eca57['Injector'])),_0x25fec0(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x171)]))],_0x2509f1[_0x3e84f8(0x300)]);function _0x23e810(_0x4a57d5){const {status$:_0x5e805d}=_0x4a57d5;return function(){const _0x59fde8=_0x3242;return _0x2b3f02[_0x59fde8(0x14b)](_0x352a6e,{'status$':_0x5e805d});};}const _0xd144bd=_0x3eca57['createIdentifier'](_0x3e84f8(0x235));var _0x14d98d=Object[_0x3e84f8(0x243)],_0x235553=Object[_0x3e84f8(0x439)],_0x4e0f5a=(_0x3d9f63,_0x2b7534,_0xf6cb93,_0x44d2e6)=>{const _0x5b6995=_0x3e84f8;for(var _0x46a45a=_0x44d2e6>0x1?void 0x0:_0x44d2e6?_0x235553(_0x2b7534,_0xf6cb93):_0x2b7534,_0x14c047=_0x3d9f63[_0x5b6995(0x1a6)]-0x1,_0x3ea887;_0x14c047>=0x0;_0x14c047--)(_0x3ea887=_0x3d9f63[_0x14c047])&&(_0x46a45a=(_0x44d2e6?_0x3ea887(_0x2b7534,_0xf6cb93,_0x46a45a):_0x3ea887(_0x46a45a))||_0x46a45a);return _0x44d2e6&&_0x46a45a&&_0x14d98d(_0x2b7534,_0xf6cb93,_0x46a45a),_0x46a45a;},_0x359087=(_0x31b04c,_0x200e75)=>(_0xf6d122,_0x2915fb)=>_0x200e75(_0xf6d122,_0x2915fb,_0x31b04c);_0x2509f1[_0x3e84f8(0x4bf)]=class extends _0x3eca57[_0x3e84f8(0x37a)]{constructor(_0x3bc42e,_0x2a2198,_0x18577f,_0x437b5d,_0x42f2d0,_0x579867){const _0x37bf19=_0x3e84f8;super(),this['_urlService']=_0x3bc42e,this['_logService']=_0x2a2198,this['_commandService']=_0x18577f,this[_0x37bf19(0x442)]=_0x437b5d,this['_snapshotService']=_0x42f2d0,_0x579867?_0x579867==null||_0x579867['whenReady']()[_0x37bf19(0x504)](()=>this[_0x37bf19(0x176)]()):(this[_0x37bf19(0x31d)][_0x37bf19(0x3d9)](_0x37bf19(0x12b),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x37bf19(0x176)]());}async[_0x3e84f8(0x176)](){const _0x1324c2=_0x3e84f8,_0x212714=this[_0x1324c2(0x4a4)][_0x1324c2(0x34d)]('unit'),_0x2b7836=this[_0x1324c2(0x4a4)][_0x1324c2(0x34d)]('type');if(!_0x212714||!_0x2b7836){this[_0x1324c2(0x31d)][_0x1324c2(0x3d9)](_0x1324c2(0x12b),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x2b7836)){case _0x588a36[_0x1324c2(0x28f)]:{const _0x5543d8=await this[_0x1324c2(0x142)](_0x212714);this['_setupSubUnitSync'](_0x5543d8);break;}case _0x588a36[_0x1324c2(0x269)]:{await this['_loadDoc'](_0x212714);break;}default:{this[_0x1324c2(0x31d)][_0x1324c2(0x543)](_0x1324c2(0x12b),_0x1324c2(0x187));break;}}}async['_setupSubUnitSync'](_0x2d82a5){const _0x435476=_0x3e84f8;await this[_0x435476(0x49a)](_0x2d82a5),_0x2d82a5[_0x435476(0x2e5)][_0x435476(0x52b)](_0x199df4['takeUntil'](this['dispose$']))[_0x435476(0x4da)](_0x511829=>{_0x511829&&this['_updateURLWithCurrentState'](_0x511829);}),this[_0x435476(0x4a4)][_0x435476(0x3fc)][_0x435476(0x52b)](_0x199df4['takeUntil'](this[_0x435476(0x138)]))[_0x435476(0x4da)](()=>this[_0x435476(0x49a)](_0x2d82a5));}['_updateURLWithCurrentState'](_0x15bcc3,_0x1cec05=!0x1){const _0x5f81ec=_0x3e84f8,_0x43ec8a=this[_0x5f81ec(0x4a4)]['getParam'](_0x5f81ec(0x161));_0x15bcc3['getSheetId']()!==_0x43ec8a&&this['_urlService']['setParam'](_0x5f81ec(0x161),_0x15bcc3[_0x5f81ec(0x302)](),_0x1cec05);}async[_0x3e84f8(0x49a)](_0x5029d8){const _0x4bdbe1=_0x3e84f8;var _0x390e01;const _0x2dd88e=this[_0x4bdbe1(0x4a4)][_0x4bdbe1(0x34d)](_0x4bdbe1(0x161));if(!_0x2dd88e||!_0x5029d8[_0x4bdbe1(0x37e)](_0x2dd88e)){const _0x5607a4=_0x5029d8[_0x4bdbe1(0x2a3)]()[0x0],_0x26d3e9=_0x5029d8[_0x4bdbe1(0x37e)](_0x5607a4);if(!_0x26d3e9)return;this[_0x4bdbe1(0x2eb)](_0x26d3e9,!0x0),await this[_0x4bdbe1(0x30a)]['executeCommand'](_0x9f218b['SetWorksheetActivateCommand']['id'],{'unitId':_0x5029d8['getUnitId'](),'subUnitId':_0x5607a4});return;}((_0x390e01=_0x5029d8[_0x4bdbe1(0x4a9)]())==null?void 0x0:_0x390e01[_0x4bdbe1(0x302)]())!==_0x2dd88e&&await this[_0x4bdbe1(0x30a)][_0x4bdbe1(0x17c)](_0x9f218b[_0x4bdbe1(0x3bc)]['id'],{'unitId':_0x5029d8[_0x4bdbe1(0x286)](),'subUnitId':_0x2dd88e});}async[_0x3e84f8(0x142)](_0x31a4a0){const _0x75f70e=_0x3e84f8;let _0x3cce6e=0x0;const _0x36e174=await this[_0x75f70e(0x442)]['loadOfflineData'](_0x31a4a0);return _0x36e174&&(_0x36e174[_0x75f70e(0x4f5)]||_0x36e174[_0x75f70e(0x313)][_0x75f70e(0x1a6)]!==0x0)&&(_0x3cce6e=_0x36e174[_0x75f70e(0x3d6)]),_0x3cce6e===0x0&&this[_0x75f70e(0x31d)][_0x75f70e(0x3d9)](_0x75f70e(0x12b),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService']['loadSheet'](_0x31a4a0,_0x3cce6e);}async[_0x3e84f8(0x455)](_0x4af6e5){const _0x266866=_0x3e84f8;let _0x1c4f7f=0x0;const _0x4db6c7=await this[_0x266866(0x442)][_0x266866(0x1d5)](_0x4af6e5);return _0x4db6c7&&(_0x4db6c7['awaitingChangeset']||_0x4db6c7[_0x266866(0x313)]['length']!==0x0)&&(_0x1c4f7f=_0x4db6c7[_0x266866(0x3d6)]),_0x1c4f7f===0x0&&this[_0x266866(0x31d)][_0x266866(0x3d9)]('[DataLoaderController]',_0x266866(0x38d)),this[_0x266866(0x4a2)][_0x266866(0x214)](_0x4af6e5,_0x1c4f7f);}},_0x2509f1[_0x3e84f8(0x4bf)]=_0x4e0f5a([_0x3eca57['OnLifecycle'](_0x3eca57[_0x3e84f8(0x377)][_0x3e84f8(0x4eb)],_0x2509f1[_0x3e84f8(0x4bf)]),_0x359087(0x0,_0xd144bd),_0x359087(0x1,_0x3eca57[_0x3e84f8(0x391)]),_0x359087(0x2,_0x3eca57['ICommandService']),_0x359087(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x373)])),_0x359087(0x4,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x2d5)])),_0x359087(0x5,_0x3eca57[_0x3e84f8(0x3f3)](_0x2b3044[_0x3e84f8(0x49b)]))],_0x2509f1[_0x3e84f8(0x4bf)]);var _0x374249=Object['defineProperty'],_0x368361=Object[_0x3e84f8(0x439)],_0x38207f=(_0x1891c5,_0x4ee11b,_0x2bfe93,_0x4caab9)=>{const _0x5b3850=_0x3e84f8;for(var _0x3676ee=_0x4caab9>0x1?void 0x0:_0x4caab9?_0x368361(_0x4ee11b,_0x2bfe93):_0x4ee11b,_0x3b18ca=_0x1891c5[_0x5b3850(0x1a6)]-0x1,_0x4325d7;_0x3b18ca>=0x0;_0x3b18ca--)(_0x4325d7=_0x1891c5[_0x3b18ca])&&(_0x3676ee=(_0x4caab9?_0x4325d7(_0x4ee11b,_0x2bfe93,_0x3676ee):_0x4325d7(_0x3676ee))||_0x3676ee);return _0x4caab9&&_0x3676ee&&_0x374249(_0x4ee11b,_0x2bfe93,_0x3676ee),_0x3676ee;},_0x33d75f=(_0x12572f,_0x71fbc)=>(_0x10a6c5,_0x310664)=>_0x71fbc(_0x10a6c5,_0x310664,_0x12572f);const _0x141b2d=_0x3e84f8(0x49d),_0x45dee9=_0x3e84f8(0x234);let _0x495f33=class extends _0x3eca57['Disposable']{constructor(_0x1a2b52,_0x5e6e5b){const _0x17f95c=_0x3e84f8;super(),this[_0x17f95c(0x339)]=_0x1a2b52,this['_configService']=_0x5e6e5b,this['_init']();}['_init'](){const _0x16dc9e=_0x3e84f8;this['disposeWithMe'](_0x3eca57[_0x16dc9e(0x340)](this[_0x16dc9e(0x339)]['focused$'][_0x16dc9e(0x4da)](()=>{const _0x11d25e=_0x16dc9e;var _0x1a5357;const _0x1db00d=this[_0x11d25e(0x339)][_0x11d25e(0x298)]();let _0x457433=(_0x1a5357=this[_0x11d25e(0x466)][_0x11d25e(0x22e)](_0x141b2d))!=null?_0x1a5357:_0x45dee9;_0x1db00d instanceof _0x3eca57[_0x11d25e(0x1a9)]&&(_0x457433=_0x1db00d[_0x11d25e(0x52a)]),document[_0x11d25e(0x3bb)]=_0x457433;})));}};_0x495f33=_0x38207f([_0x3eca57[_0x3e84f8(0x1ef)](_0x3eca57[_0x3e84f8(0x377)][_0x3e84f8(0x2ea)],_0x495f33),_0x33d75f(0x0,_0x3eca57[_0x3e84f8(0x2b1)]),_0x33d75f(0x1,_0x3eca57['IConfigService'])],_0x495f33);var _0x108153=Object[_0x3e84f8(0x243)],_0x2b7e46=Object[_0x3e84f8(0x439)],_0x213777=(_0x14aa0b,_0x22bbdc,_0x5af95c,_0xea1db)=>{const _0x30d0e4=_0x3e84f8;for(var _0x24e741=_0xea1db>0x1?void 0x0:_0xea1db?_0x2b7e46(_0x22bbdc,_0x5af95c):_0x22bbdc,_0x4f0d81=_0x14aa0b[_0x30d0e4(0x1a6)]-0x1,_0xb16eac;_0x4f0d81>=0x0;_0x4f0d81--)(_0xb16eac=_0x14aa0b[_0x4f0d81])&&(_0x24e741=(_0xea1db?_0xb16eac(_0x22bbdc,_0x5af95c,_0x24e741):_0xb16eac(_0x24e741))||_0x24e741);return _0xea1db&&_0x24e741&&_0x108153(_0x22bbdc,_0x5af95c,_0x24e741),_0x24e741;},_0x19126c=(_0x48c7d5,_0x41700a)=>(_0x4ddedc,_0x5e9fe7)=>_0x41700a(_0x4ddedc,_0x5e9fe7,_0x48c7d5);_0x2509f1[_0x3e84f8(0x1a7)]=class{constructor(_0xdedb7e,_0x44a2d8){const _0x476910=_0x3e84f8;this[_0x476910(0x466)]=_0xdedb7e,this['_httpService']=_0x44a2d8;}async[_0x3e84f8(0x20a)](_0x3b9343,_0x558168){const _0x2d479a=_0x3e84f8;var _0x5cdaba;const {unitID:_0x3882af,type:_0x2f06a5,revision:_0x21bd6d=0x0}=_0x558168,_0x407c0d=this[_0x2d479a(0x1db)]()+'/'+_0x2f06a5+_0x2d479a(0x29c)+_0x3882af+_0x2d479a(0x226)+_0x21bd6d,_0x17a88a=(await this[_0x2d479a(0x129)][_0x2d479a(0x4af)](_0x407c0d))[_0x2d479a(0x505)],_0x565c9d=(_0x5cdaba=_0x17a88a[_0x2d479a(0x27d)])==null?void 0x0:_0x5cdaba['workbook'];if(_0x565c9d){const _0x34b7a7=_0x565c9d==null?void 0x0:_0x565c9d['originalMeta'],_0x497a2d=_0x1474a0[_0x2d479a(0x49f)]['encode'](_0x1474a0[_0x2d479a(0x443)](_0x34b7a7));_0x565c9d[_0x2d479a(0x37b)]=_0x497a2d,Object[_0x2d479a(0x2da)](_0x565c9d[_0x2d479a(0x294)])['forEach'](([,_0x22109b])=>{const _0x3584a7=_0x2d479a,_0x579263=_0x22109b['originalMeta'],_0x56f76a=_0x1474a0[_0x3584a7(0x49f)][_0x3584a7(0x450)](_0x1474a0[_0x3584a7(0x443)](_0x579263));_0x22109b[_0x3584a7(0x37b)]=_0x56f76a;});}return _0x17a88a;}async[_0x3e84f8(0x236)](_0x37b687,_0x1c7e7b){const _0x287278=_0x3e84f8,{unitID:_0x1cc170,type:_0x3d279f,blockID:_0x6f0df}=_0x1c7e7b,_0x5d22f9=this['_getAPIPrefix']()+'/'+_0x3d279f+'/unit/'+_0x1cc170+_0x287278(0x229)+_0x6f0df;return(await this[_0x287278(0x129)]['get'](_0x5d22f9))['body'];}async[_0x3e84f8(0x503)](_0xe81f6c,_0x2df19b){const _0x369b95=_0x3e84f8,{unitID:_0x40b092,type:_0x4e71b9,from:_0x1f0d57,to:_0x2ac1cc}=_0x2df19b,_0x5678e8=this[_0x369b95(0x2d9)]()+'/'+_0x4e71b9+_0x369b95(0x29c)+_0x40b092+'/fetchmissing?from='+_0x1f0d57+'&to='+_0x2ac1cc;return(await this[_0x369b95(0x129)]['get'](_0x5678e8))[_0x369b95(0x505)];}[_0x3e84f8(0x1db)](){const _0x103256=_0x3e84f8;var _0x2a2a12;return(_0x2a2a12=this['_configService']['getConfig'](_0x48129e))!=null?_0x2a2a12:this[_0x103256(0x2d9)]();}['_getAPIPrefix'](){const _0x450664=_0x3e84f8;var _0x4969a6;return(_0x4969a6=this[_0x450664(0x466)]['getConfig'](_0x3ec466))!=null?_0x4969a6:_0xd20306;}async[_0x3e84f8(0x20f)](_0x1b8e60,_0x4b7732){const _0x5af1b8=_0x3e84f8,_0xaafbab=_0x5af1b8(0x1f3)+_0x4b7732[_0x5af1b8(0x4c9)]+_0x5af1b8(0x29c)+_0x4b7732['unitID']+_0x5af1b8(0x4d8);return(await this[_0x5af1b8(0x129)][_0x5af1b8(0x4af)](_0xaafbab,{'params':{'resourceId':JSON[_0x5af1b8(0x2ee)](_0x4b7732['resourceIDs'])}}))['body'];}[_0x3e84f8(0x22f)](){const _0x298f25=_0x3e84f8;throw new Error(_0x298f25(0x4b3));}[_0x3e84f8(0x233)](){const _0x43c7f9=_0x3e84f8;throw new Error(_0x43c7f9(0x4b3));}[_0x3e84f8(0x38a)](){const _0x1e5801=_0x3e84f8;throw new Error(_0x1e5801(0x4b3));}},_0x2509f1[_0x3e84f8(0x1a7)]=_0x213777([_0x19126c(0x0,_0x3eca57[_0x3e84f8(0x25c)]),_0x19126c(0x1,_0x3eca57[_0x3e84f8(0x13c)](_0x1c2884[_0x3e84f8(0x3ce)]))],_0x2509f1[_0x3e84f8(0x1a7)]);var _0x512a5a=Object['defineProperty'],_0x1e957b=Object[_0x3e84f8(0x439)],_0x2f958e=(_0x2f014c,_0x9a6277,_0x349feb,_0x3beb71)=>{const _0x1c5796=_0x3e84f8;for(var _0x42bf45=_0x3beb71>0x1?void 0x0:_0x3beb71?_0x1e957b(_0x9a6277,_0x349feb):_0x9a6277,_0xfb371=_0x2f014c[_0x1c5796(0x1a6)]-0x1,_0x2253ff;_0xfb371>=0x0;_0xfb371--)(_0x2253ff=_0x2f014c[_0xfb371])&&(_0x42bf45=(_0x3beb71?_0x2253ff(_0x9a6277,_0x349feb,_0x42bf45):_0x2253ff(_0x42bf45))||_0x42bf45);return _0x3beb71&&_0x42bf45&&_0x512a5a(_0x9a6277,_0x349feb,_0x42bf45),_0x42bf45;},_0x5dc62b=(_0x379b56,_0x1353a4)=>(_0x4d9604,_0x526dcc)=>_0x1353a4(_0x4d9604,_0x526dcc,_0x379b56);let _0x142f05=class extends _0x3eca57[_0x3e84f8(0x43f)]{constructor(_0x1625db,_0x388156,_0x5d3227,_0x9942ff,_0x4c5b47){super(_0x1625db,_0x388156,_0x5d3227),this['_transformService']=_0x9942ff,this['_logService']=_0x4c5b47;}[_0x3e84f8(0x538)](_0x18b56b,_0x4765af){const _0x4765e3=_0x3e84f8,_0x53ef51=this[_0x4765e3(0x34b)](_0x18b56b);if(_0x53ef51)try{const _0x5d83c5=this['_transformStack'](_0x53ef51,_0x4765af);this[_0x4765e3(0x515)](_0x18b56b,_0x5d83c5);}catch(_0x1262c1){this['_logService']['error'](_0x4765e3(0x4d6),_0x1262c1),this[_0x4765e3(0x194)](_0x18b56b);}const _0x47892a=this[_0x4765e3(0x160)](_0x18b56b);if(_0x47892a)try{const _0x23ea7d=this[_0x4765e3(0x25d)](_0x47892a,_0x4765af);this[_0x4765e3(0x52d)](_0x18b56b,_0x23ea7d);}catch(_0x1b4f2b){this[_0x4765e3(0x31d)]['error'](_0x1b4f2b),this['_clearRedo'](_0x18b56b);}}['_clearUndo'](_0x2bdf41){const _0x18d1f7=_0x3e84f8,_0x465c34=this[_0x18d1f7(0x34b)](_0x2bdf41);_0x465c34&&(_0x465c34['length']=0x0,this['_updateStatus']());}[_0x3e84f8(0x143)](_0x1c04ec){const _0x5635d5=_0x3e84f8,_0xad50f8=this['_getRedoStack'](_0x1c04ec);_0xad50f8&&(_0xad50f8[_0x5635d5(0x1a6)]=0x0,this[_0x5635d5(0x45d)]());}[_0x3e84f8(0x515)](_0x701b8f,_0x3b00e1){const _0x47f32b=_0x3e84f8;this[_0x47f32b(0x404)]['set'](_0x701b8f,_0x3b00e1),this[_0x47f32b(0x45d)]();}[_0x3e84f8(0x52d)](_0x57dad4,_0x50fe06){const _0x562210=_0x3e84f8;this['_redoStacks'][_0x562210(0x1b8)](_0x57dad4,_0x50fe06),this[_0x562210(0x45d)]();}[_0x3e84f8(0x25d)](_0x5f23cf,_0x11ae59){const _0x234eae=_0x3e84f8,_0x5b4dec=[];let _0x3499d4=_0x11ae59,_0x4ae743=_0x11ae59;for(let _0x63f6be=_0x5f23cf['length']-0x1;_0x63f6be>=0x0;_0x63f6be--){const {unitID:_0x1f8f3d,undoMutations:_0x1b6509,redoMutations:_0x2da7df}=_0x5f23cf[_0x63f6be],_0x1d8e13=this[_0x234eae(0x263)]['transformMutationsWithChangeset'](_0x3499d4,_0x1b6509),_0x5023ff=this['_transformService'][_0x234eae(0x27b)](_0x4ae743,_0x2da7df);if(_0x1474a0[_0x234eae(0x3cf)](_0x1d8e13)||_0x1474a0[_0x234eae(0x3cf)](_0x5023ff)){this[_0x234eae(0x31d)][_0x234eae(0x543)](_0x234eae(0x4d6),_0x234eae(0x414),_0x1d8e13,_0x5023ff);break;}_0x3499d4=_0x1d8e13[_0x234eae(0x409)],_0x4ae743=_0x5023ff[_0x234eae(0x409)],_0x5b4dec[_0x234eae(0x434)]({'unitID':_0x1f8f3d,'undoMutations':_0x1d8e13[_0x234eae(0x3da)],'redoMutations':_0x5023ff['m2Prime']});}return _0x5b4dec[_0x234eae(0x4e4)]();}};_0x142f05=_0x2f958e([_0x5dc62b(0x0,_0x3eca57[_0x3e84f8(0x2b1)]),_0x5dc62b(0x1,_0x3eca57[_0x3e84f8(0x2b3)]),_0x5dc62b(0x2,_0x3eca57['IContextService']),_0x5dc62b(0x3,_0x1474a0[_0x3e84f8(0x3aa)]),_0x5dc62b(0x4,_0x3eca57[_0x3e84f8(0x391)])],_0x142f05);class _0x506bde extends _0x3eca57[_0x3e84f8(0x37a)]{constructor(){const _0x2ac30f=_0x3e84f8;super(),_0x1de933(this,'urlChange$'),this['urlChange$']=_0x199df4['fromEvent'](window,_0x2ac30f(0x400))[_0x2ac30f(0x52b)](_0x199df4['takeUntil'](this['dispose$']),_0x199df4[_0x2ac30f(0x3fa)](0x1),_0x199df4[_0x2ac30f(0x1c8)](void 0x0));}[_0x3e84f8(0x34a)](_0xba7fc1,_0x3a182b,_0x4ecf55=!0x1){const _0x2d6b64=_0x3e84f8,_0x1ef2d5=new URL(window[_0x2d6b64(0x17d)]['href']);_0x1ef2d5[_0x2d6b64(0x25e)][_0x2d6b64(0x1b8)](_0xba7fc1,_0x3a182b),_0x4ecf55?window[_0x2d6b64(0x479)][_0x2d6b64(0x4ae)]('','',_0x1ef2d5['toString']()):window['history'][_0x2d6b64(0x50f)]('','',_0x1ef2d5['toString']());}[_0x3e84f8(0x3cb)](_0xa68f38,_0x4c1b85=!0x1){const _0x518a8e=_0x3e84f8,_0x38c458=new URL(window[_0x518a8e(0x17d)][_0x518a8e(0x1d1)]);_0x38c458[_0x518a8e(0x25e)]['delete'](_0xa68f38),_0x4c1b85?window[_0x518a8e(0x479)][_0x518a8e(0x4ae)]('','',_0x38c458[_0x518a8e(0x151)]()):window[_0x518a8e(0x479)][_0x518a8e(0x50f)]('','',_0x38c458[_0x518a8e(0x151)]());}['getParam'](_0x3e292e){const _0x3c7343=_0x3e84f8;var _0x26b53e;return(_0x26b53e=new URL(window[_0x3c7343(0x17d)][_0x3c7343(0x1d1)])['searchParams']['get'](_0x3e292e))!=null?_0x26b53e:void 0x0;}}const _0x2938a5=_0x3e84f8(0x145),_0x3e7950=_0x3e84f8(0x1f1),_0x3e013f=_0x3e84f8(0x18a),_0x53c3f5=0x6,_0x30546e=1.5,_0x3f9d24=0x4,_0x473921=1.5,_0x143714=_0x3e84f8(0x1c6);class _0x4720aa{constructor(_0x32edc3,_0x50c40c,_0x4b6146,_0x32e46f){const _0x57d22f=_0x3e84f8;_0x1de933(this,'_shapes',[]),_0x1de933(this,_0x57d22f(0x1f9),null),_0x1de933(this,'_textBubble',null),_0x1de933(this,'_anchorDot',null),_0x1de933(this,_0x57d22f(0x364),null),_0x1de933(this,'_eventUnsubscribe',null),(this['_cursor']=_0x32edc3,this[_0x57d22f(0x252)]=_0x50c40c,this[_0x57d22f(0x2a8)]=_0x4b6146,this[_0x57d22f(0x2ba)]=_0x32e46f,this[_0x57d22f(0x287)]());}set[_0x3e84f8(0x39e)](_0x1ff561){const _0x522c52=_0x3e84f8;_0x1ff561?(this[_0x522c52(0x335)]&&this[_0x522c52(0x335)]['hide'](),this[_0x522c52(0x190)]&&this['_textBubble']['show']()):(this[_0x522c52(0x335)]&&this[_0x522c52(0x335)][_0x522c52(0x3d5)](),this[_0x522c52(0x190)]&&this[_0x522c52(0x190)][_0x522c52(0x2c4)]());}[_0x3e84f8(0x231)](){const _0x21b35d=_0x3e84f8;for(const _0x1a71d7 of this[_0x21b35d(0x349)])_0x1a71d7['dispose']();this[_0x21b35d(0x190)]&&this[_0x21b35d(0x190)]['dispose'](),this[_0x21b35d(0x335)]&&this['_anchorDot'][_0x21b35d(0x231)](),this['_anchor']&&this[_0x21b35d(0x1f9)][_0x21b35d(0x231)](),this[_0x21b35d(0x159)]&&this[_0x21b35d(0x159)]();}['_render'](){const _0x521a3e=_0x3e84f8;var _0x332628;const {_docSkeleton:_0x4b0acf,_document:_0x149b54}=this,{color:_0x14b710,name:_0x22877d,ranges:_0x4219af}=this['_cursor'],_0x1197d9=_0x149b54['getOffsetConfig'](),{docsLeft:_0x530549,docsTop:_0x1b5946}=_0x1197d9,_0x522ebe=new _0x58059b[(_0x521a3e(0x239))](_0x1197d9,_0x4b0acf);for(const {startOffset:_0x4ff864,endOffset:_0xbc5db9,collapsed:_0x3c65b1,isActive:_0x4f236e}of _0x4219af){const _0x1cde4e=_0x4b0acf[_0x521a3e(0x353)](_0x4ff864),_0x98bcbf=_0x4b0acf['findNodePositionByCharIndex'](_0xbc5db9);if(_0x4f236e){const {contentBoxPointGroup:_0x36eb86}=_0x522ebe[_0x521a3e(0x2cd)](_0x98bcbf,_0x98bcbf);if(_0x36eb86['length']===0x0)continue;this[_0x521a3e(0x322)](_0x14b710,_0x36eb86,_0x530549,_0x1b5946,_0x22877d),this[_0x521a3e(0x159)]=this[_0x521a3e(0x15b)]();}if(!_0x3c65b1&&_0x1cde4e&&_0x98bcbf){if(_0x58059b[_0x521a3e(0x4ab)](_0x1cde4e,_0x98bcbf)){const _0x4d68ac=new _0x58059b[(_0x521a3e(0x48d))](_0x1197d9,_0x4b0acf),{pointGroup:_0x46d3d5}=(_0x332628=_0x4d68ac[_0x521a3e(0x2cd)](_0x1cde4e,_0x98bcbf))!=null?_0x332628:{};if(_0x46d3d5==null||_0x46d3d5['length']===0x0)continue;this[_0x521a3e(0x523)](_0x14b710,_0x46d3d5,_0x530549,_0x1b5946);}else{const {contentBoxPointGroup:_0x17b5b7}=_0x522ebe[_0x521a3e(0x2cd)](_0x1cde4e,_0x98bcbf);if(_0x17b5b7[_0x521a3e(0x1a6)]===0x0)continue;this['_drawTextRange'](_0x14b710,_0x17b5b7,_0x530549,_0x1b5946);}}}}[_0x3e84f8(0x322)](_0x322c57,_0x630acc,_0x180840,_0x48c88f,_0x5e505f){const _0x1eb27f=_0x3e84f8,_0x452eb5=this['_getAnchorBounding'](_0x630acc),{left:_0x457676,top:_0x2d4add,height:_0x2d2b9f}=_0x452eb5,_0x9ea9cd=this[_0x1eb27f(0x16a)](),_0x4f839e=_0x473921/_0x9ea9cd,_0x5b6a44=new _0x29e386[(_0x1eb27f(0x1e3))](_0x2938a5+_0x3eca57[_0x1eb27f(0x21e)][_0x1eb27f(0x489)](_0x53c3f5),{'left':_0x457676+_0x180840-_0x4f839e,'top':_0x2d4add+_0x48c88f,'height':_0x2d2b9f,'width':_0x30546e,'fill':_0x322c57||_0x29e386[_0x1eb27f(0x19b)](_0x3eca57['COLORS']['black'],0x0),'strokeWidth':_0x4f839e,'stroke':_0x143714,'evented':!0x0});this[_0x1eb27f(0x1f9)]=_0x5b6a44,this[_0x1eb27f(0x252)][_0x1eb27f(0x1d6)](_0x5b6a44,_0x58059b['TEXT_RANGE_LAYER_INDEX']);const _0x47d972=new _0x29e386[(_0x1eb27f(0x1e3))](_0x2938a5+_0x3eca57[_0x1eb27f(0x21e)][_0x1eb27f(0x489)](_0x53c3f5),{'left':_0x457676+_0x180840-_0x4f839e,'top':_0x2d4add+_0x48c88f-_0x3f9d24/0x2,'height':_0x3f9d24,'width':_0x3f9d24,'fill':_0x322c57||_0x29e386[_0x1eb27f(0x19b)](_0x3eca57[_0x1eb27f(0x444)][_0x1eb27f(0x1cd)],0x0),'strokeWidth':0x0,'stroke':_0x322c57||_0x29e386[_0x1eb27f(0x19b)](_0x3eca57[_0x1eb27f(0x444)][_0x1eb27f(0x1cd)],0x0),'evented':!0x1});this[_0x1eb27f(0x335)]=_0x47d972,this[_0x1eb27f(0x252)][_0x1eb27f(0x1d6)](_0x47d972,_0x58059b[_0x1eb27f(0x275)]);const _0x55a0ee=new _0x11a31(_0x2938a5+_0x3eca57['Tools'][_0x1eb27f(0x489)](_0x53c3f5),{'left':_0x457676+_0x180840-_0x4f839e,'top':_0x2d4add+_0x48c88f-_0x10a292,'text':_0x5e505f,'color':_0x322c57});this[_0x1eb27f(0x190)]=_0x55a0ee,this[_0x1eb27f(0x252)][_0x1eb27f(0x1d6)](_0x55a0ee,_0x58059b['TEXT_RANGE_LAYER_INDEX']),this[_0x1eb27f(0x39e)]=!0x1;}[_0x3e84f8(0x15b)](){const _0xdb1d68=_0x3e84f8,_0x242068=this[_0xdb1d68(0x1f9)][_0xdb1d68(0x31b)][_0xdb1d68(0x4d4)](()=>{const _0x293acb=_0xdb1d68;this[_0x293acb(0x39e)]=!0x0;}),_0x479446=this[_0xdb1d68(0x1f9)][_0xdb1d68(0x494)][_0xdb1d68(0x4d4)](()=>{const _0xbd77c7=_0xdb1d68;this['_hideTimer']&&clearTimeout(this[_0xbd77c7(0x364)]),this[_0xbd77c7(0x364)]=setTimeout(()=>{const _0x34f401=_0xbd77c7;this[_0x34f401(0x39e)]=!0x1;},0x7d0);});return()=>{const _0x21cc74=_0xdb1d68;_0x242068[_0x21cc74(0x3d4)](),_0x479446[_0x21cc74(0x3d4)]();};}[_0x3e84f8(0x267)](_0x32d188,_0x43962a,_0x154ae7,_0x158255){const _0x4200d0=_0x3e84f8,_0x4ef487=new _0x3eca57[(_0x4200d0(0x120))](_0x32d188)[_0x4200d0(0x1b9)](0.2)[_0x4200d0(0x416)](),_0x4f8f1e=new _0x29e386[(_0x4200d0(0x513))](_0x3e7950+_0x3eca57[_0x4200d0(0x21e)][_0x4200d0(0x489)](_0x53c3f5),{'pointsGroup':_0x43962a,'fill':_0x4ef487||_0x29e386['getColor'](_0x3eca57[_0x4200d0(0x444)]['black'],0.2),'left':_0x154ae7,'top':_0x158255,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x4f8f1e),this[_0x4200d0(0x252)][_0x4200d0(0x1d6)](_0x4f8f1e,_0x58059b[_0x4200d0(0x275)]);}[_0x3e84f8(0x523)](_0x5a2c81,_0x5151e2,_0x3866c1,_0x1cc5fe){const _0x1cd1bf=_0x3e84f8,_0x45c890=new _0x3eca57[(_0x1cd1bf(0x120))](_0x5a2c81)[_0x1cd1bf(0x1b9)](0.2)[_0x1cd1bf(0x416)](),_0x1b1cc3=new _0x29e386['RegularPolygon'](_0x3e013f+_0x3eca57[_0x1cd1bf(0x21e)]['generateRandomId'](_0x53c3f5),{'pointsGroup':_0x5151e2,'fill':_0x45c890||_0x29e386[_0x1cd1bf(0x19b)](_0x3eca57[_0x1cd1bf(0x444)][_0x1cd1bf(0x1cd)],0.2),'left':_0x3866c1,'top':_0x1cc5fe,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x1b1cc3),this[_0x1cd1bf(0x252)][_0x1cd1bf(0x1d6)](_0x1b1cc3,_0x58059b['TEXT_RANGE_LAYER_INDEX']);}[_0x3e84f8(0x25f)](_0x4dcb9e){const _0x53ef6a=_0x4dcb9e[0x0],_0x4dc366=_0x53ef6a[0x0],_0x6f5c92=_0x53ef6a[0x2],{x:_0x3b51ce,y:_0x277d83}=_0x4dc366,{x:_0x10ecd6,y:_0x2fd295}=_0x6f5c92;return{'left':_0x3b51ce,'top':_0x277d83,'width':_0x10ecd6-_0x3b51ce,'height':_0x2fd295-_0x277d83};}['_getScale'](){const _0x4431f8=_0x3e84f8,{scaleX:_0x1abd7f,scaleY:_0x30dcee}=this['_scene'][_0x4431f8(0x50c)]();return Math[_0x4431f8(0x1eb)](_0x1abd7f,_0x30dcee);}}var _0x170b52=Object['defineProperty'],_0x24cca1=Object[_0x3e84f8(0x439)],_0x3322ea=(_0x245d5c,_0x41e25d,_0x42233c,_0x3afed9)=>{const _0x8ff757=_0x3e84f8;for(var _0x32fe64=_0x3afed9>0x1?void 0x0:_0x3afed9?_0x24cca1(_0x41e25d,_0x42233c):_0x41e25d,_0x244d8d=_0x245d5c[_0x8ff757(0x1a6)]-0x1,_0x2c4866;_0x244d8d>=0x0;_0x244d8d--)(_0x2c4866=_0x245d5c[_0x244d8d])&&(_0x32fe64=(_0x3afed9?_0x2c4866(_0x41e25d,_0x42233c,_0x32fe64):_0x2c4866(_0x32fe64))||_0x32fe64);return _0x3afed9&&_0x32fe64&&_0x170b52(_0x41e25d,_0x42233c,_0x32fe64),_0x32fe64;},_0x28534b=(_0xf1f9e,_0x372e65)=>(_0x49b400,_0x11ae24)=>_0x372e65(_0x49b400,_0x11ae24,_0xf1f9e);let _0x19948e=class extends _0x3eca57[_0x3e84f8(0x37a)]{constructor(_0x306b90,_0x54c7c9,_0x3eadaa,_0x45813d,_0x39d451){const _0x1fff73=_0x3e84f8;super(),_0x1de933(this,'_cursorShapes',[]),_0x1de933(this,_0x1fff73(0x4ef),[]),(this[_0x1fff73(0x37f)]=_0x306b90,this[_0x1fff73(0x133)]=_0x54c7c9,this['_collabCursorController']=_0x3eadaa,this[_0x1fff73(0x30a)]=_0x45813d,this[_0x1fff73(0x2b8)]=_0x39d451,this[_0x1fff73(0x176)]());}['_init'](){const _0x1c6dde=_0x3e84f8,_0x2df632=this[_0x1c6dde(0x37f)][_0x1c6dde(0x2ac)],_0x12cde2=this[_0x1c6dde(0x133)];this[_0x1c6dde(0x4ed)](_0x199df4[_0x1c6dde(0x2c3)]([this[_0x1c6dde(0x407)]['getCollabCursors$'](_0x2df632),this[_0x1c6dde(0x2b8)]['currentTheme$']])[_0x1c6dde(0x52b)](_0x46f2f0[_0x1c6dde(0x1ad)](([_0x247f35,_0x198677])=>({'skeleton':_0x12cde2[_0x1c6dde(0x25a)](),'cursors':[..._0x247f35[_0x1c6dde(0x3a2)]()]['flatMap'](_0x58dea2=>({..._0x58dea2,'color':_0x198677[_0x58dea2[_0x1c6dde(0x4cb)]]}))})))['subscribe'](_0x167e22=>{const _0xfe800e=_0x1c6dde;if(this[_0xfe800e(0x3e6)](),_0x167e22){const {skeleton:_0x10270d,cursors:_0x1e396c}=_0x167e22;this[_0xfe800e(0x18e)](_0x10270d,_0x1e396c);}})),this[_0x1c6dde(0x4c3)](),this[_0x1c6dde(0x2c8)]();}[_0x3e84f8(0x18e)](_0x1f0859,_0x248642){const _0x3ea653=_0x3e84f8,{scene:_0x3ef0b6,mainComponent:_0x52ac4b}=this[_0x3ea653(0x37f)],_0x3f8d87=_0x248642[_0x3ea653(0x1ad)](_0x550dae=>new _0x4720aa(_0x550dae,_0x3ef0b6,_0x1f0859,_0x52ac4b));this[_0x3ea653(0x181)]=_0x3f8d87,this[_0x3ea653(0x4ef)]=_0x248642;}[_0x3e84f8(0x475)](){const _0x5b832e=_0x3e84f8;this[_0x5b832e(0x3e6)]();const {scene:_0x102be9,mainComponent:_0x1b05ee}=this[_0x5b832e(0x37f)],_0x363fe8=this[_0x5b832e(0x133)]['getSkeleton'](),_0x1b3c71=this['_cursors'][_0x5b832e(0x1ad)](_0x2eae15=>new _0x4720aa(_0x2eae15,_0x102be9,_0x363fe8,_0x1b05ee));this[_0x5b832e(0x181)]=_0x1b3c71;}['_removeCollabCursors'](){const _0x1165cd=_0x3e84f8;this[_0x1165cd(0x181)][_0x1165cd(0x306)](_0x45ea15=>_0x45ea15['dispose']()),this['_cursorShapes']=[];}[_0x3e84f8(0x2c8)](){const _0x4f947e=_0x3e84f8,_0x20834d=[_0x58059b[_0x4f947e(0x21d)]['id']];this[_0x4f947e(0x4ed)](this[_0x4f947e(0x30a)][_0x4f947e(0x271)](_0x30970a=>{const _0x53b6a4=_0x4f947e;_0x20834d[_0x53b6a4(0x4ff)](_0x30970a['id'])&&_0x30970a['params'][_0x53b6a4(0x2ac)]===this[_0x53b6a4(0x37f)][_0x53b6a4(0x2ac)]&&this[_0x53b6a4(0x475)]();}));}[_0x3e84f8(0x4c3)](){const _0x59a17c=_0x3e84f8;this[_0x59a17c(0x4ed)](_0x3eca57[_0x59a17c(0x34e)](this[_0x59a17c(0x37f)]['engine'][_0x59a17c(0x1b6)])[_0x59a17c(0x52b)](_0x46f2f0['filter'](_0x4e4d33=>_0x4e4d33[_0x59a17c(0x4c9)]===_0x29e386[_0x59a17c(0x469)][_0x59a17c(0x119)]),_0x46f2f0[_0x59a17c(0x135)](0x10))['subscribe'](()=>{const _0x3ba856=_0x59a17c;this[_0x3ba856(0x475)]();}));}};_0x19948e=_0x3322ea([_0x3eca57[_0x3e84f8(0x1ef)](_0x3eca57[_0x3e84f8(0x377)][_0x3e84f8(0x53e)],_0x19948e),_0x28534b(0x1,_0x3eca57['Inject'](_0x5a15a4[_0x3e84f8(0x283)])),_0x28534b(0x2,_0x3eca57[_0x3e84f8(0x13c)](_0x1fb14c)),_0x28534b(0x3,_0x3eca57[_0x3e84f8(0x2b3)]),_0x28534b(0x4,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x1a5)]))],_0x19948e);var _0x5bf126=Object[_0x3e84f8(0x243)],_0x36cdfc=Object['getOwnPropertyDescriptor'],_0x3b359e=(_0x54d18f,_0x2870b5,_0x16d024,_0x3069ce)=>{for(var _0x32be5e=_0x3069ce>0x1?void 0x0:_0x3069ce?_0x36cdfc(_0x2870b5,_0x16d024):_0x2870b5,_0x2c648=_0x54d18f['length']-0x1,_0x184762;_0x2c648>=0x0;_0x2c648--)(_0x184762=_0x54d18f[_0x2c648])&&(_0x32be5e=(_0x3069ce?_0x184762(_0x2870b5,_0x16d024,_0x32be5e):_0x184762(_0x32be5e))||_0x32be5e);return _0x3069ce&&_0x32be5e&&_0x5bf126(_0x2870b5,_0x16d024,_0x32be5e),_0x32be5e;},_0x5e225e=(_0x838718,_0x1f6330)=>(_0x228b66,_0x47ad83)=>_0x1f6330(_0x228b66,_0x47ad83,_0x838718);let _0x367805=class{constructor(_0xbfc705,_0x56d6f3,_0x1640f3){const _0xe6bc3=_0x3e84f8;this['_configService']=_0xbfc705,this[_0xe6bc3(0x129)]=_0x56d6f3,this[_0xe6bc3(0x38c)]=_0x1640f3,this[_0xe6bc3(0x352)]();}[_0x3e84f8(0x352)](){const _0x26dd6e=_0x3e84f8;this[_0x26dd6e(0x129)][_0x26dd6e(0x514)]({'priority':0x1,'interceptor':(_0x1ae3c9,_0x29e2)=>_0x29e2(_0x1ae3c9)[_0x26dd6e(0x52b)](_0x199df4['concatMap'](async _0x5ea016=>{const _0x2dd69a=_0x26dd6e,_0x33d9af=_0x5ea016;if(_0x33d9af['status']===0x191&&window[_0x2dd69a(0x35b)](this[_0x2dd69a(0x38c)]['t']('auth.needGotoLoginAlert'))){const _0x2761e7=window['encodeURIComponent'](window[_0x2dd69a(0x17d)][_0x2dd69a(0x1d1)]);window[_0x2dd69a(0x17d)][_0x2dd69a(0x1d1)]=this[_0x2dd69a(0x257)]()+_0x2dd69a(0x11d)+_0x2761e7;}return _0x33d9af;}))});}[_0x3e84f8(0x257)](){const _0x469744=_0x3e84f8;var _0x154af2;return(_0x154af2=this['_configService'][_0x469744(0x22e)](_0x14e0af))!=null?_0x154af2:_0x3bbd51;}};_0x367805=_0x3b359e([_0x5e225e(0x0,_0x3eca57[_0x3e84f8(0x25c)]),_0x5e225e(0x1,_0x3eca57[_0x3e84f8(0x13c)](_0x1c2884['HTTPService'])),_0x5e225e(0x2,_0x3eca57['Inject'](_0x3eca57[_0x3e84f8(0x477)]))],_0x367805);var _0x5b076a=Object['defineProperty'],_0x31cee5=Object[_0x3e84f8(0x439)],_0x201b29=(_0x88faed,_0x5ee90e,_0x26cc45,_0x21d2dd)=>{const _0x39a2e7=_0x3e84f8;for(var _0x556ded=_0x21d2dd>0x1?void 0x0:_0x21d2dd?_0x31cee5(_0x5ee90e,_0x26cc45):_0x5ee90e,_0x506a44=_0x88faed[_0x39a2e7(0x1a6)]-0x1,_0x2a1f64;_0x506a44>=0x0;_0x506a44--)(_0x2a1f64=_0x88faed[_0x506a44])&&(_0x556ded=(_0x21d2dd?_0x2a1f64(_0x5ee90e,_0x26cc45,_0x556ded):_0x2a1f64(_0x556ded))||_0x556ded);return _0x21d2dd&&_0x556ded&&_0x5b076a(_0x5ee90e,_0x26cc45,_0x556ded),_0x556ded;},_0x43fec1=(_0x2d1c11,_0x2554ad)=>(_0xc1bb0e,_0x581faa)=>_0x2554ad(_0xc1bb0e,_0x581faa,_0x2d1c11);const _0x5d08cd='AUTHZ_URL_KEY',_0xc2536f=_0x3e84f8(0x4aa);_0x2509f1['AuthzIoHttpService']=class extends _0x3eca57[_0x3e84f8(0x2a6)]{constructor(_0x57c090,_0x37b1cf){const _0x25c2a2=_0x3e84f8;super(),this[_0x25c2a2(0x36a)]=_0x57c090,this['_configService']=_0x37b1cf,this[_0x25c2a2(0x3bf)]();}[_0x3e84f8(0x3bf)](){const _0x209509=_0x3e84f8,_0x3c2920=this;this['disposeWithMe'](this[_0x209509(0x36a)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x1c2884[_0x209509(0x53a)]({'isMatch'(_0x38f0d9){const _0x160247=_0x209509;var _0x58246e;if(_0x38f0d9[_0x160247(0x253)]==='POST'&&((_0x58246e=_0x38f0d9[_0x160247(0x4c2)])!=null&&_0x58246e[_0x160247(0x505)])){const {objectID:_0xa8f74,objectType:_0x3d1338}=_0x38f0d9['requestParams']['body']||{};if(!_0xa8f74||_0x3d1338===void 0x0)return!0x1;const _0x2d2ed4=_0x3c2920[_0x160247(0x4ce)]()+'/'+_0x3d1338+_0x160247(0x50e)+_0xa8f74+_0x160247(0x48f);if(_0x38f0d9[_0x160247(0x193)]===_0x2d2ed4)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5103f8){const _0x580dc5=_0x209509;var _0x5517c3;return(_0x5517c3=_0x5103f8[_0x580dc5(0x4c2)])==null?void 0x0:_0x5517c3[_0x580dc5(0x505)];},'mergeParamsToRequest'(_0x107c32,_0x24056e){const _0x5c1013=_0x209509,_0xc5c00d=_0x3c2920[_0x5c1013(0x4ce)]()+_0x5c1013(0x1d8),_0x496471=_0x107c32[_0x5c1013(0x29a)]((_0x172896,_0xf09e7f)=>{const _0x3353fd=_0x5c1013,{unitID:_0x351114,objectID:_0x39f559,objectType:_0x220595,actions:_0x5a2f67}=_0xf09e7f;return _0x172896[_0x351114]||(_0x172896[_0x351114]={}),_0x172896[_0x351114][_0x39f559]||(_0x172896[_0x351114][_0x39f559]={'objectID':_0x39f559,'objectType':_0x220595,'actions':[]}),_0x172896[_0x351114][_0x39f559][_0x3353fd(0x3f6)]['push'](..._0x5a2f67),_0x172896;},{}),_0x203d68=[];for(const _0x19641f in _0x496471)for(const _0x186c95 in _0x496471[_0x19641f]){const {actions:_0x4f97cd,objectType:_0x1f7949}=_0x496471[_0x19641f][_0x186c95],_0x3ffc1b=[...new Set(_0x4f97cd)];_0x203d68[_0x5c1013(0x434)]({'unitID':_0x19641f,'objectID':_0x186c95,'objectType':_0x1f7949,'actions':_0x3ffc1b});}return new _0x1c2884[(_0x5c1013(0x276))](_0x5c1013(0x268),_0xc5c00d,{'headers':_0x24056e[_0x5c1013(0x4f6)],'withCredentials':_0x24056e['withCredentials'],'responseType':_0x24056e[_0x5c1013(0x1fc)],'body':{'requests':_0x203d68}});}},{'distributeResult'(_0x36f5a2,_0x41fd04){const _0x3e3c00=_0x209509,{objectActions:_0x15717f}=_0x36f5a2;return _0x41fd04[_0x3e3c00(0x1ad)](_0x287c24=>{const _0x142924=_0x3e3c00,{unitID:_0xa35b40,objectID:_0x45a364,actions:_0x39acbb}=_0x287c24,_0x5f247c=_0x15717f['find'](_0x5d8aac=>_0x5d8aac[_0x142924(0x13f)]===_0xa35b40&&_0x5d8aac[_0x142924(0x4d3)]===_0x45a364),_0x36c44e=_0x39acbb[_0x142924(0x1ad)](_0x2806ff=>_0x5f247c==null?void 0x0:_0x5f247c[_0x142924(0x3f6)][_0x142924(0x44f)](_0x495159=>_0x495159['action']===_0x2806ff))[_0x142924(0x51d)](_0x5cd106=>!!_0x5cd106);return{'config':_0x287c24,'result':{'actions':_0x36c44e,'error':_0x36f5a2[_0x142924(0x543)]}};});}})}));}[_0x3e84f8(0x4ce)](){const _0x3f3695=_0x3e84f8;var _0x419999;return(_0x419999=this[_0x3f3695(0x466)][_0x3f3695(0x22e)](_0x5d08cd))!=null?_0x419999:_0xc2536f;}async[_0x3e84f8(0x51c)](_0xea3354){const _0x41e760=_0x3e84f8,_0x33130f=this[_0x41e760(0x4ce)]()+'/'+_0xea3354['objectType']+'/object';return(await this[_0x41e760(0x36a)][_0x41e760(0x296)](_0x33130f,{'body':_0xea3354}))['body'][_0x41e760(0x4d3)]||'';}async[_0x3e84f8(0x2f2)](_0x47fbe1){const _0xb908ae=_0x3e84f8,_0x374acc=this['_getAPIPrefixPath']()+_0xb908ae(0x22c);return(await this[_0xb908ae(0x36a)][_0xb908ae(0x296)](_0x374acc,{'body':_0x47fbe1}))[_0xb908ae(0x505)][_0xb908ae(0x28e)];}async[_0x3e84f8(0x14d)](_0x26b602){const _0x3f9466=_0x3e84f8,_0x1e902d=this['_getAPIPrefixPath']()+'/'+_0x26b602[_0x3f9466(0x3c2)]+'/object/'+_0x26b602[_0x3f9466(0x4d3)];await this['_HTTPService'][_0x3f9466(0x1e2)](_0x1e902d,{'body':_0x26b602});}async[_0x3e84f8(0x11b)](_0x4e794c){const _0xa30aed=_0x3e84f8,_0x183204=this[_0xa30aed(0x4ce)]()+'/'+_0x4e794c[_0xa30aed(0x3c2)]+_0xa30aed(0x50e)+_0x4e794c[_0xa30aed(0x4d3)]+_0xa30aed(0x48f);return(await this[_0xa30aed(0x36a)]['post'](_0x183204,{'body':_0x4e794c}))[_0xa30aed(0x505)][_0xa30aed(0x3f6)];}async[_0x3e84f8(0x21c)](_0x4f1dfc){const _0x8228a4=_0x3e84f8,_0x34dccd=this['_getAPIPrefixPath']()+_0x8228a4(0x1d8);return(await this[_0x8228a4(0x36a)]['post'](_0x34dccd,{'body':{'requests':_0x4f1dfc}}))[_0x8228a4(0x505)][_0x8228a4(0x47f)];}async[_0x3e84f8(0x32d)](_0x41bf51){const _0x811141=_0x3e84f8,_0x1b9ca8=this[_0x811141(0x4ce)]()+'/'+_0x41bf51[_0x811141(0x3c2)]+_0x811141(0x3f5),_0x2715a3=await this[_0x811141(0x36a)][_0x811141(0x296)](_0x1b9ca8,{'body':_0x41bf51});return{'roles':_0x2715a3[_0x811141(0x505)]['roles'],'actions':_0x2715a3['body'][_0x811141(0x3f6)]};}async[_0x3e84f8(0x175)](_0xcc4154){const _0x4cbdad=_0x3e84f8,_0x504afb=this[_0x4cbdad(0x4ce)]()+_0x4cbdad(0x17b);await this[_0x4cbdad(0x36a)]['delete'](_0x504afb,{'params':{'collaboratorID':_0xcc4154[_0x4cbdad(0x511)],'objectID':_0xcc4154[_0x4cbdad(0x4d3)],'unitID':_0xcc4154[_0x4cbdad(0x13f)]}});}async[_0x3e84f8(0x430)](_0x26d67a){const _0x4e7a1e=_0x3e84f8,_0x2e1b19=this[_0x4e7a1e(0x4ce)]()+_0x4e7a1e(0x17b);await this[_0x4e7a1e(0x36a)]['patch'](_0x2e1b19,{'body':_0x26d67a});}async[_0x3e84f8(0x497)](_0x20f76b){const _0x446e67=_0x3e84f8,_0x3736e5=this[_0x446e67(0x4ce)]()+'/collaborator';await this[_0x446e67(0x36a)][_0x446e67(0x296)](_0x3736e5,{'body':_0x20f76b});}async[_0x3e84f8(0x150)](_0x228617){const _0x2f2426=_0x3e84f8,_0x47d11a=this['_getAPIPrefixPath']()+_0x2f2426(0x17b);return(await this[_0x2f2426(0x36a)][_0x2f2426(0x4af)](_0x47d11a,{'params':{'objectID':_0x228617[_0x2f2426(0x4d3)],'unitID':_0x228617[_0x2f2426(0x13f)]}}))[_0x2f2426(0x505)][_0x2f2426(0x424)];}async['putCollaborators'](_0x17729d){const _0x3a387b=_0x3e84f8,_0xe24f7=this[_0x3a387b(0x4ce)]()+'/collaborator';await this['_HTTPService']['put'](_0xe24f7,{'body':_0x17729d});}},_0x2509f1[_0x3e84f8(0x4cc)]=_0x201b29([_0x43fec1(0x0,_0x3eca57[_0x3e84f8(0x13c)](_0x1c2884[_0x3e84f8(0x3ce)])),_0x43fec1(0x1,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x25c)]))],_0x2509f1[_0x3e84f8(0x4cc)]);var _0x3950ee=Object[_0x3e84f8(0x243)],_0x449c3f=Object['getOwnPropertyDescriptor'],_0x5143bf=(_0x5cb2d7,_0x2b686a,_0x23a605,_0xc6b517)=>{const _0x4838a3=_0x3e84f8;for(var _0x1d0849=_0xc6b517>0x1?void 0x0:_0xc6b517?_0x449c3f(_0x2b686a,_0x23a605):_0x2b686a,_0x5e7edc=_0x5cb2d7[_0x4838a3(0x1a6)]-0x1,_0x8dc339;_0x5e7edc>=0x0;_0x5e7edc--)(_0x8dc339=_0x5cb2d7[_0x5e7edc])&&(_0x1d0849=(_0xc6b517?_0x8dc339(_0x2b686a,_0x23a605,_0x1d0849):_0x8dc339(_0x1d0849))||_0x1d0849);return _0xc6b517&&_0x1d0849&&_0x3950ee(_0x2b686a,_0x23a605,_0x1d0849),_0x1d0849;},_0x2110cf=(_0x38cd7f,_0x1065ea)=>(_0x5e1375,_0x225195)=>_0x1065ea(_0x5e1375,_0x225195,_0x38cd7f);const _0x32df5c=[_0x3e84f8(0x4a6),_0x3e84f8(0x323),_0x3e84f8(0x2be),_0x3e84f8(0x3af),_0x3e84f8(0x363)],_0x44c774=0x5*0x400*0x400,_0x415728=_0x3e84f8(0x303),_0x8ddd14='/universer-api/stream/file/upload',_0x4d6544='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_0x398a77=_0x3e84f8(0x36f);_0x2509f1['ImageIoService']=class{constructor(_0x513b35,_0x50d3fe,_0x1523f4){const _0xae56c=_0x3e84f8;_0x1de933(this,_0xae56c(0x28a),0x0),_0x1de933(this,_0xae56c(0x195),new _0x199df4[(_0xae56c(0x307))]()),_0x1de933(this,'change$',this[_0xae56c(0x195)]),_0x1de933(this,_0xae56c(0x20d),new Map()),(this[_0xae56c(0x129)]=_0x513b35,this[_0xae56c(0x466)]=_0x50d3fe,this[_0xae56c(0x339)]=_0x1523f4);}[_0x3e84f8(0x221)](_0x5e63f8){const _0x1e92fa=_0x3e84f8;this['_waitCount']=_0x5e63f8,this[_0x1e92fa(0x195)][_0x1e92fa(0x2d2)](_0x5e63f8);}[_0x3e84f8(0x4e3)](_0x1d2f8b,_0x21c17f){const _0x312a9d=_0x3e84f8;if(_0x21c17f===_0x2a024d[_0x312a9d(0x3a7)]['BASE64']){const _0x579f76=new Image();return _0x579f76[_0x312a9d(0x158)]=_0x1d2f8b,_0x579f76;}return this[_0x312a9d(0x20d)]['get'](_0x1d2f8b);}[_0x3e84f8(0x2e9)](_0x16b44d,_0x3774b7,_0x52f2d0){const _0x417970=_0x3e84f8;_0x3774b7===_0x2a024d['ImageSourceType'][_0x417970(0x44c)]||_0x52f2d0==null||this[_0x417970(0x20d)][_0x417970(0x1b8)](_0x16b44d,_0x52f2d0);}async[_0x3e84f8(0x1fb)](_0x56e7b6){const _0x18bac2=_0x3e84f8;try{const _0x29b5af=this[_0x18bac2(0x42d)](this[_0x18bac2(0x14e)](),''+_0x56e7b6),_0x5b6171=(await this['_httpService'][_0x18bac2(0x4af)](_0x29b5af))[_0x18bac2(0x505)];return _0x5b6171['error']&&_0x5b6171[_0x18bac2(0x543)][_0x18bac2(0x532)]===_0x121659['OK']?Promise['resolve'](_0x5b6171[_0x18bac2(0x193)]):Promise[_0x18bac2(0x4c5)](_0x5b6171[_0x18bac2(0x543)]);}catch(_0x3f82ae){return Promise[_0x18bac2(0x4c5)](_0x3f82ae);}}async[_0x3e84f8(0x41b)](_0x34a4b9){const _0x49094b=_0x3e84f8;let _0x260628='';if(!_0x32df5c[_0x49094b(0x4ff)](_0x34a4b9[_0x49094b(0x4c9)]))return this[_0x49094b(0x1c3)](),Promise[_0x49094b(0x4c5)](new Error(_0x2a024d[_0x49094b(0x1ea)][_0x49094b(0x533)]));if(_0x34a4b9[_0x49094b(0x28b)]>_0x44c774)return this[_0x49094b(0x1c3)](),Promise[_0x49094b(0x4c5)](new Error(_0x2a024d[_0x49094b(0x1ea)][_0x49094b(0x21b)]));try{const _0x294b2b=new FormData();_0x294b2b[_0x49094b(0x2f7)](_0x49094b(0x471),_0x34a4b9);const _0x1d4a76=this[_0x49094b(0x339)][_0x49094b(0x298)](),_0x26902a=_0x1d4a76==null?void 0x0:_0x1d4a76[_0x49094b(0x286)]();if(!_0x26902a)throw new Error(_0x49094b(0x2bf));const _0x27552c=this[_0x49094b(0x245)]()+'?size='+_0x34a4b9['size'][_0x49094b(0x151)]()+_0x49094b(0x35e)+_0x39a188[_0x49094b(0x438)]+_0x49094b(0x24c)+encodeURIComponent(_0x26902a),_0x13af20=await(await fetch(_0x27552c,{'method':_0x49094b(0x268),'body':_0x294b2b}))[_0x49094b(0x1d4)]();if(typeof _0x13af20['FileId']!='string')return this['_decreaseWaiting'](),Promise[_0x49094b(0x4c5)](new Error(_0x2a024d[_0x49094b(0x1ea)][_0x49094b(0x2d6)]));_0x260628=_0x13af20[_0x49094b(0x3e0)];}catch{return this[_0x49094b(0x1c3)](),Promise[_0x49094b(0x4c5)](new Error(_0x2a024d[_0x49094b(0x1ea)]['ERROR_IMAGE']));}return new Promise((_0x7ea7d1,_0x2719ab)=>{const _0x5a1682=_0x49094b,_0x3b06c8=new FileReader();_0x3b06c8[_0x5a1682(0x254)](_0x34a4b9),_0x3b06c8[_0x5a1682(0x331)]=_0x39ddb6=>{const _0x57a9c3=_0x5a1682;var _0x2989f4;const _0x7d9229=(_0x2989f4=_0x39ddb6[_0x57a9c3(0x4c4)])==null?void 0x0:_0x2989f4['result'];if(_0x7d9229==null){this[_0x57a9c3(0x1c3)](),_0x2719ab(new Error(_0x2a024d['ImageUploadStatusType'][_0x57a9c3(0x2d6)]));return;}const _0x19f678=_0x3eca57[_0x57a9c3(0x21e)][_0x57a9c3(0x489)](0x6);_0x7ea7d1({'imageId':_0x19f678,'imageSourceType':_0x2a024d[_0x57a9c3(0x3a7)]['UUID'],'source':_0x260628,'base64Cache':_0x7d9229,'status':_0x2a024d['ImageUploadStatusType'][_0x57a9c3(0x3e8)]}),this[_0x57a9c3(0x1c3)]();};});}['_getUploadFileURL'](){const _0x420fa5=_0x3e84f8;var _0x5fcf1b;return(_0x5fcf1b=this[_0x420fa5(0x466)][_0x420fa5(0x22e)](_0x415728))!=null?_0x5fcf1b:_0x8ddd14;}[_0x3e84f8(0x14e)](){const _0x48d6b0=_0x3e84f8;var _0x45d928;return(_0x45d928=this[_0x48d6b0(0x466)][_0x48d6b0(0x22e)](_0x4d6544))!=null?_0x45d928:_0x398a77;}[_0x3e84f8(0x42d)](_0x3329ce,_0x47f3b7){const _0x24406f=_0x3e84f8;return _0x3329ce[_0x24406f(0x457)](_0x24406f(0x3ba),_0x47f3b7);}[_0x3e84f8(0x1c3)](){const _0x1352ac=_0x3e84f8;this[_0x1352ac(0x28a)]-=0x1,this[_0x1352ac(0x195)][_0x1352ac(0x2d2)](this[_0x1352ac(0x28a)]);}},_0x2509f1['ImageIoService']=_0x5143bf([_0x2110cf(0x0,_0x3eca57[_0x3e84f8(0x13c)](_0x1c2884['HTTPService'])),_0x2110cf(0x1,_0x3eca57['IConfigService']),_0x2110cf(0x2,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x2b1)]))],_0x2509f1[_0x3e84f8(0x49e)]);var _0x15566a=Object[_0x3e84f8(0x243)],_0x471a81=Object[_0x3e84f8(0x439)],_0x18f1b9=(_0x3777af,_0x478247,_0x5e7b1a,_0x3e64c1)=>{const _0x4aa342=_0x3e84f8;for(var _0x3057ac=_0x3e64c1>0x1?void 0x0:_0x3e64c1?_0x471a81(_0x478247,_0x5e7b1a):_0x478247,_0x2fb5f1=_0x3777af[_0x4aa342(0x1a6)]-0x1,_0x2ee8fe;_0x2fb5f1>=0x0;_0x2fb5f1--)(_0x2ee8fe=_0x3777af[_0x2fb5f1])&&(_0x3057ac=(_0x3e64c1?_0x2ee8fe(_0x478247,_0x5e7b1a,_0x3057ac):_0x2ee8fe(_0x3057ac))||_0x3057ac);return _0x3e64c1&&_0x3057ac&&_0x15566a(_0x478247,_0x5e7b1a,_0x3057ac),_0x3057ac;},_0xbe2a30=(_0x5ddc79,_0x131b37)=>(_0x451fb8,_0x25bc12)=>_0x131b37(_0x451fb8,_0x25bc12,_0x5ddc79);let _0x18b628=class extends _0x3eca57[_0x3e84f8(0x37a)]{constructor(_0xc31e08,_0x50929f,_0x52aca6,_0x4de141,_0x406dba){const _0x31cf34=_0x3e84f8;super(),this['_injector']=_0xc31e08,this['_univerInstanceService']=_0x50929f,this[_0x31cf34(0x28c)]=_0x52aca6,this['_collaborationSessionService']=_0x4de141,this[_0x31cf34(0x2c7)]=_0x406dba,this[_0x31cf34(0x152)](),this[_0x31cf34(0x446)]();}[_0x3e84f8(0x446)](){const _0x4234fb=_0x3e84f8,_0x346a8c=async _0x9b978d=>{const _0x5cb978=_0x3242;(await this[_0x5cb978(0x46a)][_0x5cb978(0x2ca)](_0x9b978d))[_0x5cb978(0x15a)][_0x5cb978(0x52b)](_0x46f2f0[_0x5cb978(0x51d)](_0x449493=>_0x449493['eventID']===_0x1474a0[_0x5cb978(0x520)][_0x5cb978(0x3c7)]),_0x46f2f0['takeUntil'](this[_0x5cb978(0x138)]))[_0x5cb978(0x4da)](_0x4615c2=>{const _0x3639cf=_0x5cb978,_0x3f1a39=_0x4615c2,{reason:_0x203bb7}=_0x3f1a39[_0x3639cf(0x33d)];this[_0x3639cf(0x249)][_0x3639cf(0x4af)](_0x2ede89[_0x3639cf(0x394)])['show']({'type':_0xf694dc[_0x3639cf(0x472)]['Error'],'content':this[_0x3639cf(0x2c7)]['t']('collaboration.closeRoom')+'('+_0x203bb7+')'}),this[_0x3639cf(0x28c)]['updatePermissionPoint'](new _0x9f218b[(_0x3639cf(0x336))](_0x9b978d)['id'],!0x1),this['_collaborationSessionService'][_0x3639cf(0x2e4)](_0x9b978d);});};_0x199df4[_0x4234fb(0x148)](this[_0x4234fb(0x339)][_0x4234fb(0x362)](_0x3eca57[_0x4234fb(0x3fd)][_0x4234fb(0x28f)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x3eca57[_0x4234fb(0x3fd)][_0x4234fb(0x269)]))['pipe'](_0x46f2f0[_0x4234fb(0x1ad)](_0x3376d6=>_0x3376d6[_0x4234fb(0x286)]()),_0x46f2f0[_0x4234fb(0x51d)](_0x86d6f5=>!_0x3eca57[_0x4234fb(0x3c0)](_0x86d6f5)),_0x46f2f0[_0x4234fb(0x468)](this[_0x4234fb(0x138)]))[_0x4234fb(0x4da)](_0xfeec23=>{_0x346a8c(_0xfeec23);});}[_0x3e84f8(0x152)](){const _0x3d355f=_0x3e84f8,_0x1be495=async _0x41bce8=>{const _0xc8508e=_0x3242;(await this[_0xc8508e(0x46a)][_0xc8508e(0x2ca)](_0x41bce8))['event$'][_0xc8508e(0x52b)](_0x46f2f0[_0xc8508e(0x51d)](_0x13dfe1=>_0x13dfe1[_0xc8508e(0x11c)]===_0x1474a0['CollaborationEvent'][_0xc8508e(0x431)]),_0x46f2f0['takeUntil'](this[_0xc8508e(0x138)]))[_0xc8508e(0x4da)](_0x28f804=>{const _0x86d00=_0xc8508e,_0x7147=_0x28f804,{objectId:_0x5e74ca}=_0x7147[_0x86d00(0x33d)],_0x579409=this[_0x86d00(0x249)]['get'](_0x346aeb[_0x86d00(0x3b9)]);_0x5e74ca===_0x41bce8?_0x579409[_0x86d00(0x1f4)](_0x41bce8):_0x579409[_0x86d00(0x26d)](_0x41bce8,_0x5e74ca);});};_0x199df4['merge'](this[_0x3d355f(0x339)]['getTypeOfUnitAdded$'](_0x3eca57[_0x3d355f(0x3fd)][_0x3d355f(0x28f)]),this[_0x3d355f(0x339)]['getTypeOfUnitAdded$'](_0x3eca57[_0x3d355f(0x3fd)][_0x3d355f(0x269)]))[_0x3d355f(0x52b)](_0x46f2f0[_0x3d355f(0x1ad)](_0x49b61e=>_0x49b61e[_0x3d355f(0x286)]()),_0x46f2f0['filter'](_0x160610=>!_0x3eca57[_0x3d355f(0x3c0)](_0x160610)),_0x46f2f0[_0x3d355f(0x468)](this['dispose$']))[_0x3d355f(0x4da)](_0x39cd12=>{_0x1be495(_0x39cd12);});}};_0x18b628=_0x18f1b9([_0x3eca57[_0x3e84f8(0x1ef)](_0x3eca57[_0x3e84f8(0x377)]['Starting'],_0x18b628),_0xbe2a30(0x0,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x368)])),_0xbe2a30(0x1,_0x3eca57[_0x3e84f8(0x2b1)]),_0xbe2a30(0x2,_0x3eca57[_0x3e84f8(0x3a9)]),_0xbe2a30(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1['CollaborationSessionService'])),_0xbe2a30(0x4,_0x3eca57['Inject'](_0x3eca57[_0x3e84f8(0x477)]))],_0x18b628);const _0x1dc639=_0x3e84f8(0x27f);var _0x251f6e=Object[_0x3e84f8(0x243)],_0x158f5c=Object[_0x3e84f8(0x439)],_0x2cf9f5=(_0x5c5500,_0x37a2b1,_0x1d3f3c)=>_0x37a2b1 in _0x5c5500?_0x251f6e(_0x5c5500,_0x37a2b1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d3f3c}):_0x5c5500[_0x37a2b1]=_0x1d3f3c,_0x5bfd05=(_0x4b5148,_0x1edbcb,_0x508133,_0x5de38f)=>{for(var _0x491ac0=_0x5de38f>0x1?void 0x0:_0x5de38f?_0x158f5c(_0x1edbcb,_0x508133):_0x1edbcb,_0x3bcd18=_0x4b5148['length']-0x1,_0x5f384b;_0x3bcd18>=0x0;_0x3bcd18--)(_0x5f384b=_0x4b5148[_0x3bcd18])&&(_0x491ac0=(_0x5de38f?_0x5f384b(_0x1edbcb,_0x508133,_0x491ac0):_0x5f384b(_0x491ac0))||_0x491ac0);return _0x5de38f&&_0x491ac0&&_0x251f6e(_0x1edbcb,_0x508133,_0x491ac0),_0x491ac0;},_0x14b702=(_0x10f11f,_0x4a5816)=>(_0x3b4d51,_0x46a1b9)=>_0x4a5816(_0x3b4d51,_0x46a1b9,_0x10f11f),_0x2ac310=(_0x5e4682,_0x3d905b,_0x104c58)=>_0x2cf9f5(_0x5e4682,_0x3d905b+'',_0x104c58);const _0x3ecf66=_0x3e84f8(0x308);_0x2509f1[_0x3e84f8(0x4fc)]=class extends _0x3eca57[_0x3e84f8(0x1fa)]{constructor(_0x34f59a={},_0x457f24,_0x5a083a,_0x36a44b,_0xb32d4e){const _0x5cf98f=_0x3e84f8;super(),this[_0x5cf98f(0x3c8)]=_0x34f59a,this[_0x5cf98f(0x31d)]=_0x457f24,this[_0x5cf98f(0x42a)]=_0x5a083a,this['_injector']=_0x36a44b,this[_0x5cf98f(0x466)]=_0xb32d4e;const {..._0x4886c1}=this[_0x5cf98f(0x3c8)];this['_configService'][_0x5cf98f(0x2ec)](_0x1dc639,_0x4886c1);}[_0x3e84f8(0x4c8)](){const _0x39732c=_0x3e84f8;this[_0x39732c(0x487)]();}['onRendered'](){const _0x35c653=_0x3e84f8;this[_0x35c653(0x3ab)]();}[_0x3e84f8(0x487)](){const _0x4b31e0=_0x3e84f8;var _0x499f2d,_0x3b3513,_0x2b9c17,_0x3ac50;this[_0x4b31e0(0x249)][_0x4b31e0(0x2a7)](_0x3eca57[_0x4b31e0(0x33f)])&&this[_0x4b31e0(0x31d)][_0x4b31e0(0x543)](_0x4b31e0(0x259),_0x4b31e0(0x357));let _0x31c57e=[[_0x3eca57[_0x4b31e0(0x33f)],{'useClass':_0x142f05}],[_0x2509f1[_0x4b31e0(0x332)]],[_0x29d267],[_0x1c2884['HTTPService']],[_0xd144bd,{'useClass':_0x506bde}],[_0x5df92e],[_0x2509f1[_0x4b31e0(0x373)]],[_0x1c2884['WebSocketService']],[_0x322a21],[_0x1fbfda],[_0xd6db42],[_0x2436eb],[_0x367805],[_0x1c6422],[_0x18b628],[_0x484b9f,{'useClass':(_0x3b3513=(_0x499f2d=this[_0x4b31e0(0x3c8)])==null?void 0x0:_0x499f2d[_0x4b31e0(0x386)])!=null?_0x3b3513:_0x2509f1['CollaborationSocketService']}],[_0x1c2884[_0x4b31e0(0x529)],{'useClass':_0x1c2884[_0x4b31e0(0x4a7)]}],[_0x1474a0[_0x4b31e0(0x437)],{'useClass':_0x2509f1[_0x4b31e0(0x1a7)]}],[_0x3eca57[_0x4b31e0(0x3ea)],{'useClass':_0x2509f1[_0x4b31e0(0x4cc)]}],[_0x2a024d[_0x4b31e0(0x292)],{'useClass':_0x2509f1['ImageIoService']}],[_0x2509f1[_0x4b31e0(0x171)]],[_0x2509f1[_0x4b31e0(0x4bf)]],[_0x2509f1[_0x4b31e0(0x300)]],[_0x495f33],[_0x1fb14c]];(_0x2b9c17=this[_0x4b31e0(0x3c8)])!=null&&_0x2b9c17[_0x4b31e0(0x202)]&&_0x31c57e[_0x4b31e0(0x434)]([_0x39225f,{'useClass':_0x1bad77}]),_0x31c57e=_0x3eca57[_0x4b31e0(0x184)](_0x31c57e,(_0x3ac50=this[_0x4b31e0(0x3c8)])==null?void 0x0:_0x3ac50[_0x4b31e0(0x51f)]),_0x31c57e[_0x4b31e0(0x306)](_0x596b7f=>this[_0x4b31e0(0x249)][_0x4b31e0(0x44d)](_0x596b7f)),this[_0x4b31e0(0x141)]();}[_0x3e84f8(0x3ab)](){const _0x5a3b9d=_0x3e84f8;this[_0x5a3b9d(0x4ed)](this['_renderManagerService'][_0x5a3b9d(0x4b6)](_0x3eca57[_0x5a3b9d(0x3fd)][_0x5a3b9d(0x269)],[_0x19948e])),this[_0x5a3b9d(0x4ed)](this[_0x5a3b9d(0x42a)]['registerRenderModule'](_0x3eca57[_0x5a3b9d(0x3fd)]['UNIVER_SHEET'],[_0x4d9935]));}[_0x3e84f8(0x141)](){const _0x5f04d8=_0x3e84f8;var _0x490127,_0xf2dc8d;this['_injector']['get'](_0x1c2884['HTTPService'])[_0x5f04d8(0x514)]({'priority':0x14,'interceptor':_0x1c2884[_0x5f04d8(0x1aa)]({'maxParallel':0x6})}),(_0x490127=this[_0x5f04d8(0x3c8)])!=null&&_0x490127[_0x5f04d8(0x1a0)]||this[_0x5f04d8(0x249)][_0x5f04d8(0x4af)](_0x2509f1[_0x5f04d8(0x373)])['disableLocalCache'](),(_0xf2dc8d=this['_config'])!=null&&_0xf2dc8d[_0x5f04d8(0x262)]&&this[_0x5f04d8(0x249)][_0x5f04d8(0x4af)](_0x367805),this[_0x5f04d8(0x249)][_0x5f04d8(0x4af)](_0x2509f1[_0x5f04d8(0x171)]),this[_0x5f04d8(0x249)][_0x5f04d8(0x2a7)](_0x2509f1[_0x5f04d8(0x300)])&&this[_0x5f04d8(0x249)]['get'](_0x2509f1[_0x5f04d8(0x300)]);}},_0x2ac310(_0x2509f1[_0x3e84f8(0x4fc)],_0x3e84f8(0x347),_0x3ecf66),_0x2509f1['UniverCollaborationClientPlugin']=_0x5bfd05([_0x3eca57[_0x3e84f8(0x211)](_0x1474a0[_0x3e84f8(0x40b)]),_0x14b702(0x1,_0x3eca57[_0x3e84f8(0x391)]),_0x14b702(0x2,_0x29e386[_0x3e84f8(0x417)]),_0x14b702(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x368)])),_0x14b702(0x4,_0x3eca57[_0x3e84f8(0x25c)])],_0x2509f1[_0x3e84f8(0x4fc)]),_0x2509f1['AUTHZ_URL_KEY']=_0x5d08cd,_0x2509f1[_0x3e84f8(0x189)]=_0x11b9bd,_0x2509f1[_0x3e84f8(0x2b7)]=_0x2e0e5e,_0x2509f1['CollaborationStatus']=_0x4bd68c,_0x2509f1[_0x3e84f8(0x380)]=_0x352a6e,_0x2509f1['CommentService']=_0x1c6422,_0x2509f1['HEARTBEAT_INTERVAL_KEY']=_0x14a4f4,_0x2509f1[_0x3e84f8(0x3df)]=_0x4d3ef7,_0x2509f1['ICollaborationSocketService']=_0x484b9f,_0x2509f1['IURLService']=_0xd144bd,_0x2509f1[_0x3e84f8(0x20c)]=_0x55047c,_0x2509f1[_0x3e84f8(0x1bf)]=_0x14e0af,_0x2509f1[_0x3e84f8(0x447)]=_0x276e46,_0x2509f1[_0x3e84f8(0x2fe)]=_0x424e1f,_0x2509f1['SEND_CHANGESET_TIMEOUT_KEY']=_0x3580e7,_0x2509f1[_0x3e84f8(0x2a9)]=_0x3ec466,_0x2509f1[_0x3e84f8(0x34c)]=_0x48129e,_0x2509f1['SessionStatus']=_0x39f403,_0x2509f1[_0x3e84f8(0x372)]=_0x677fb,_0x2509f1['WebURLService']=_0x506bde,_0x2509f1[_0x3e84f8(0x3f9)]=_0x588539,_0x2509f1[_0x3e84f8(0x3e7)]=_0x40c916,Object[_0x3e84f8(0x243)](_0x2509f1,Symbol[_0x3e84f8(0x382)],{'value':_0x3e84f8(0x241)});}));
|
1
|
+
(function(_0x5ad21a,_0x38cdda){const _0x14c8e9=_0x47c1,_0x1119d0=_0x5ad21a();while(!![]){try{const _0x34a121=-parseInt(_0x14c8e9(0x219))/0x1*(parseInt(_0x14c8e9(0x482))/0x2)+-parseInt(_0x14c8e9(0x24c))/0x3*(parseInt(_0x14c8e9(0x492))/0x4)+parseInt(_0x14c8e9(0x403))/0x5*(-parseInt(_0x14c8e9(0xf6))/0x6)+parseInt(_0x14c8e9(0x2ea))/0x7*(parseInt(_0x14c8e9(0x1d0))/0x8)+-parseInt(_0x14c8e9(0x48f))/0x9*(-parseInt(_0x14c8e9(0x20c))/0xa)+parseInt(_0x14c8e9(0x248))/0xb+-parseInt(_0x14c8e9(0x122))/0xc*(-parseInt(_0x14c8e9(0x301))/0xd);if(_0x34a121===_0x38cdda)break;else _0x1119d0['push'](_0x1119d0['shift']());}catch(_0x6e8f9){_0x1119d0['push'](_0x1119d0['shift']());}}}(_0xd8ee,0xc38c1),function(_0x297fc5,_0x301638){const _0x58fe5b=_0x47c1;typeof exports==_0x58fe5b(0x290)&&typeof module<'u'?_0x301638(exports,require('@univerjs/core'),require(_0x58fe5b(0x3df)),require(_0x58fe5b(0x360)),require(_0x58fe5b(0x3ab)),require(_0x58fe5b(0x30a)),require(_0x58fe5b(0x287)),require(_0x58fe5b(0x393)),require(_0x58fe5b(0x3c9)),require(_0x58fe5b(0x147)),require(_0x58fe5b(0x3d4)),require(_0x58fe5b(0x23a)),require('@univerjs/engine-render'),require(_0x58fe5b(0x11e)),require(_0x58fe5b(0x30c)),require('lodash/debounce'),require(_0x58fe5b(0x329)),require('react'),require(_0x58fe5b(0x29d)),require(_0x58fe5b(0x389))):typeof define==_0x58fe5b(0x4bb)&&define[_0x58fe5b(0x448)]?define([_0x58fe5b(0x491),'@univerjs/core',_0x58fe5b(0x3df),'rxjs/operators',_0x58fe5b(0x3ab),'@univerjs/ui',_0x58fe5b(0x287),_0x58fe5b(0x393),'@univerjs/telemetry',_0x58fe5b(0x147),'@univerjs/sheets',_0x58fe5b(0x23a),_0x58fe5b(0x267),_0x58fe5b(0x11e),_0x58fe5b(0x30c),'lodash/debounce',_0x58fe5b(0x329),_0x58fe5b(0x121),_0x58fe5b(0x29d),_0x58fe5b(0x389)],_0x301638):(_0x297fc5=typeof globalThis<'u'?globalThis:_0x297fc5||self,_0x301638(_0x297fc5[_0x58fe5b(0x495)]={},_0x297fc5['UniverCore'],_0x297fc5[_0x58fe5b(0x3df)],_0x297fc5['rxjs'][_0x58fe5b(0x24b)],_0x297fc5[_0x58fe5b(0x45b)],_0x297fc5[_0x58fe5b(0x2ed)],_0x297fc5[_0x58fe5b(0x4f0)],_0x297fc5['UniverCollaboration'],_0x297fc5['UniverTelemetry'],_0x297fc5[_0x58fe5b(0x2d9)],_0x297fc5[_0x58fe5b(0x232)],_0x297fc5['UniverDocsUi'],_0x297fc5['UniverEngineRender'],_0x297fc5[_0x58fe5b(0x171)],_0x297fc5['UniverEngineFormula'],_0x297fc5[_0x58fe5b(0x4ea)][_0x58fe5b(0x49e)],_0x297fc5[_0x58fe5b(0x1a4)],_0x297fc5['React'],_0x297fc5[_0x58fe5b(0x29d)],_0x297fc5[_0x58fe5b(0x35d)]));}(this,function(_0x3723aa,_0x44f3cf,_0x1837c6,_0x3ab9e8,_0x1c0df8,_0x90d6c1,_0x43b7e7,_0x5c3399,_0x2b7353,_0x495201,_0x5848ce,_0x50f029,_0x278226,_0xaa685a,_0x3dc1ae,_0xb2aa35,_0x2c9d11,_0x5efe28,_0x491e99,_0x1436cb){'use strict';const _0x4deb9c=_0x47c1;var _0x350dec=Object[_0x4deb9c(0x4f6)],_0x207b82=(_0xfe0a99,_0x526426,_0x284520)=>_0x526426 in _0xfe0a99?_0x350dec(_0xfe0a99,_0x526426,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x284520}):_0xfe0a99[_0x526426]=_0x284520,_0x434a2a=(_0x36de95,_0x3f2760,_0x5c54ae)=>_0x207b82(_0x36de95,typeof _0x3f2760!=_0x4deb9c(0x4c4)?_0x3f2760+'':_0x3f2760,_0x5c54ae);const _0x4007f7=_0x4deb9c(0x15e),_0x5d4c8b='/universer-api/snapshot',_0x1691bd=_0x4deb9c(0x3f1),_0x5bb06f='SEND_CHANGESET_TIMEOUT',_0x58c006=_0x4deb9c(0x373),_0x2fe1b1=_0x4deb9c(0x2c6),_0x4175a2=_0x4deb9c(0x39b),_0x1bc3ee=_0x4deb9c(0x3cc),_0x31135c=_0x4deb9c(0x223),_0x3eddeb=_0x4deb9c(0x19a),_0x4c3652=_0x4deb9c(0x43e),_0x1b950d='COLLAB_SUBMIT_CHANGESET_URL',_0x162f44=_0x4deb9c(0x2ba),_0x1fff0c=_0x4deb9c(0x2ec),_0x5040cd=_0x4deb9c(0x32d);var _0x46986a=(_0x544f6c=>(_0x544f6c[_0x544f6c[_0x4deb9c(0x229)]=0x0]=_0x4deb9c(0x229),_0x544f6c[_0x544f6c['OK']=0x1]='OK',_0x544f6c[_0x544f6c[_0x4deb9c(0x42f)]=0x2]=_0x4deb9c(0x42f),_0x544f6c[_0x544f6c['PERMISSION_DENIED']=0x3]=_0x4deb9c(0x339),_0x544f6c[_0x544f6c[_0x4deb9c(0x47f)]=0x4]=_0x4deb9c(0x47f),_0x544f6c[_0x544f6c[_0x4deb9c(0x31e)]=0x5]=_0x4deb9c(0x31e),_0x544f6c[_0x544f6c[_0x4deb9c(0x50e)]=0x6]='ALREADY_EXISTS',_0x544f6c[_0x544f6c['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x544f6c[_0x544f6c[_0x4deb9c(0x3a0)]=0x8]=_0x4deb9c(0x3a0),_0x544f6c[_0x544f6c['COMPLETION_FINISHED']=0x9]=_0x4deb9c(0x13d),_0x544f6c[_0x544f6c[_0x4deb9c(0x40d)]=0x1389]=_0x4deb9c(0x40d),_0x544f6c[_0x544f6c['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x544f6c[_0x544f6c[_0x4deb9c(0x449)]=0x1772]=_0x4deb9c(0x449),_0x544f6c[_0x544f6c[_0x4deb9c(0x418)]=0x1b59]='APPLY_REJECT',_0x544f6c[_0x544f6c['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x4deb9c(0x2f4),_0x544f6c[_0x544f6c['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x4deb9c(0x306),_0x544f6c[_0x544f6c['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x4deb9c(0x26d),_0x544f6c[_0x544f6c['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x544f6c[_0x544f6c[_0x4deb9c(0x1c1)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x544f6c[_0x544f6c[_0x4deb9c(0x101)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x544f6c[_0x544f6c[_0x4deb9c(0x34a)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x544f6c[_0x544f6c[_0x4deb9c(0x228)]=0x232c]=_0x4deb9c(0x228),_0x544f6c[_0x544f6c['LICENSE_DISTRO_REJECTED']=0x232d]=_0x4deb9c(0x113),_0x544f6c[_0x544f6c[_0x4deb9c(0x200)]=0x2711]=_0x4deb9c(0x200),_0x544f6c[_0x544f6c[_0x4deb9c(0x39c)]=0x2712]=_0x4deb9c(0x39c),_0x544f6c[_0x544f6c[_0x4deb9c(0x4a2)]=0x2713]=_0x4deb9c(0x4a2),_0x544f6c[_0x544f6c[_0x4deb9c(0x384)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x544f6c[_0x544f6c[_0x4deb9c(0x255)]=-0x1]=_0x4deb9c(0x255),_0x544f6c))(_0x46986a||{}),_0x3bfee1=(_0x5da0e3=>(_0x5da0e3[_0x5da0e3['UNIVER_UNKNOWN']=0x0]=_0x4deb9c(0x413),_0x5da0e3[_0x5da0e3[_0x4deb9c(0x350)]=0x1]=_0x4deb9c(0x350),_0x5da0e3[_0x5da0e3[_0x4deb9c(0x402)]=0x2]=_0x4deb9c(0x402),_0x5da0e3[_0x5da0e3['UNIVER_SLIDE']=0x3]=_0x4deb9c(0x4ad),_0x5da0e3[_0x5da0e3[_0x4deb9c(0x2d3)]=0x4]='UNIVER_PROJECT',_0x5da0e3[_0x5da0e3[_0x4deb9c(0x255)]=-0x1]=_0x4deb9c(0x255),_0x5da0e3))(_0x3bfee1||{}),_0x1779e6=(_0x2d8d98=>(_0x2d8d98[_0x2d8d98[_0x4deb9c(0x166)]=0x0]=_0x4deb9c(0x166),_0x2d8d98[_0x2d8d98[_0x4deb9c(0x303)]=0x1]=_0x4deb9c(0x303),_0x2d8d98[_0x2d8d98[_0x4deb9c(0x39a)]=0x2]=_0x4deb9c(0x39a),_0x2d8d98[_0x2d8d98[_0x4deb9c(0x22d)]=0x3]=_0x4deb9c(0x22d),_0x2d8d98[_0x2d8d98['INGEST']=0x4]=_0x4deb9c(0xf4),_0x2d8d98[_0x2d8d98[_0x4deb9c(0x3d5)]=0x5]=_0x4deb9c(0x3d5),_0x2d8d98[_0x2d8d98[_0x4deb9c(0x4fd)]=0x6]='RECV',_0x2d8d98[_0x2d8d98[_0x4deb9c(0x255)]=-0x1]='UNRECOGNIZED',_0x2d8d98))(_0x1779e6||{}),_0x456623=(_0x268a0e=>(_0x268a0e[_0x268a0e['UNKNOWN_CODE']=0x0]='UNKNOWN_CODE',_0x268a0e[_0x268a0e['OK']=0x1]='OK',_0x268a0e[_0x268a0e[_0x4deb9c(0x486)]=0x2]=_0x4deb9c(0x486),_0x268a0e[_0x268a0e[_0x4deb9c(0x255)]=-0x1]=_0x4deb9c(0x255),_0x268a0e))(_0x456623||{}),_0x47077b=(_0x495f9d=>(_0x495f9d[_0x495f9d['Undefined']=0x0]='Undefined',_0x495f9d[_0x495f9d[_0x4deb9c(0x4a4)]=0x1]='HttpImport',_0x495f9d[_0x495f9d[_0x4deb9c(0x4e2)]=0x2]=_0x4deb9c(0x4e2),_0x495f9d[_0x495f9d[_0x4deb9c(0x251)]=0x3]='UnitEmbedded',_0x495f9d[_0x495f9d[_0x4deb9c(0x1de)]=0x4]='UnitSnapshot',_0x495f9d[_0x495f9d[_0x4deb9c(0x255)]=-0x1]='UNRECOGNIZED',_0x495f9d))(_0x47077b||{});function _0x2eb665(_0x5dac1d){const _0xa35a8f=_0x4deb9c;var _0x44bed0,_0x5a0664,_0x48e5c2,_0x431294;const _0x44a2fe=_0x5dac1d[_0xa35a8f(0xf9)],_0x184d47=JSON[_0xa35a8f(0x4ab)](_0x44a2fe);switch(_0x184d47[_0xa35a8f(0x38b)]){case _0x1779e6[_0xa35a8f(0x3d5)]:case _0x1779e6[_0xa35a8f(0x303)]:{const _0x1a710a=_0x184d47['infoRsp'];return{..._0x184d47,'data':_0x1a710a,'cmd':_0x184d47[_0xa35a8f(0x38b)]};}case _0x1779e6['JOIN']:{const _0x57e534=_0x184d47[_0xa35a8f(0x364)];return{..._0x184d47,'data':_0x57e534,'cmd':_0x184d47[_0xa35a8f(0x38b)]};}case _0x1779e6['RECV']:{const _0x34cd3d=_0x184d47[_0xa35a8f(0x1d6)];switch(_0x34cd3d['eventID']){case _0x5c3399[_0xa35a8f(0x3d6)]['PERMISSION_REJ']:return{..._0x184d47,'data':{..._0x34cd3d,'data':(_0x44bed0=_0x34cd3d[_0xa35a8f(0x2f6)])==null?void 0x0:_0x44bed0['cs']},'cmd':_0x184d47[_0xa35a8f(0x38b)]};case _0x5c3399[_0xa35a8f(0x3d6)][_0xa35a8f(0x333)]:return{..._0x184d47,'data':{..._0x34cd3d,'data':(_0x5a0664=_0x34cd3d['csAckEvent'])==null?void 0x0:_0x5a0664['cs']},'cmd':_0x184d47['cmd']};case _0x5c3399[_0xa35a8f(0x3d6)][_0xa35a8f(0x4a7)]:return{..._0x184d47,'data':{..._0x34cd3d,'data':(_0x48e5c2=_0x34cd3d[_0xa35a8f(0x124)])==null?void 0x0:_0x48e5c2['cs']},'cmd':_0x184d47[_0xa35a8f(0x38b)]};case _0x5c3399['CollaborationEvent']['CHANGESET_REJ']:return{..._0x184d47,'data':{..._0x34cd3d,'data':(_0x431294=_0x34cd3d[_0xa35a8f(0x4da)])==null?void 0x0:_0x431294['cs']},'cmd':_0x184d47[_0xa35a8f(0x38b)]};case _0x5c3399[_0xa35a8f(0x3d6)][_0xa35a8f(0x1c5)]:return{..._0x184d47,'data':{..._0x34cd3d,'data':_0x34cd3d[_0xa35a8f(0x414)]},'cmd':_0x184d47[_0xa35a8f(0x38b)]};case _0x5c3399[_0xa35a8f(0x3d6)][_0xa35a8f(0x1c3)]:return{..._0x184d47,'data':{..._0x34cd3d,'data':_0x34cd3d[_0xa35a8f(0x1d1)]},'cmd':_0x184d47[_0xa35a8f(0x38b)]};case _0x5c3399[_0xa35a8f(0x3d6)][_0xa35a8f(0x203)]:return{..._0x184d47,'data':{..._0x34cd3d,'data':_0x34cd3d[_0xa35a8f(0x279)]},'cmd':_0x184d47['cmd']};case _0x5c3399[_0xa35a8f(0x3d6)][_0xa35a8f(0x409)]:return{..._0x184d47,'data':{..._0x34cd3d,'data':_0x34cd3d[_0xa35a8f(0x32b)]},'cmd':_0x184d47['cmd']};case _0x5c3399['CollaborationEvent'][_0xa35a8f(0x478)]:case _0x5c3399['CollaborationEvent'][_0xa35a8f(0x46d)]:return{..._0x184d47,'data':{..._0x34cd3d,'data':_0x34cd3d['liveShareOperation']},'cmd':_0x184d47[_0xa35a8f(0x38b)]};case _0x5c3399[_0xa35a8f(0x3d6)][_0xa35a8f(0x4ef)]:return{..._0x184d47,'data':{..._0x34cd3d,'data':_0x34cd3d[_0xa35a8f(0x32b)]},'cmd':_0x184d47[_0xa35a8f(0x38b)]};case _0x5c3399[_0xa35a8f(0x3d6)]['MSG_FOR_ERROR']:return{..._0x184d47,'data':_0x34cd3d,'cmd':_0x184d47[_0xa35a8f(0x38b)]};case _0x5c3399[_0xa35a8f(0x3d6)]['COMMENT_UPDATE']:return{..._0x184d47,'data':{..._0x34cd3d,'data':_0x34cd3d['commentUpdateEvent']},'cmd':_0x184d47[_0xa35a8f(0x38b)]};case _0x5c3399['CollaborationEvent'][_0xa35a8f(0x1d9)]:return{..._0x184d47,'data':{..._0x34cd3d,'data':_0x34cd3d[_0xa35a8f(0x216)]},'cmd':_0x184d47['cmd']};case _0x5c3399[_0xa35a8f(0x3d6)][_0xa35a8f(0x50b)]:return{..._0x184d47,'data':{..._0x34cd3d,'data':_0x34cd3d['shouldCloseConn']},'cmd':_0x184d47['cmd']};default:return _0x184d47;}}default:return _0x184d47;}}function _0x266df0(_0x1cae6f){const _0x18dd82=_0x4deb9c;switch(_0x1cae6f[_0x18dd82(0x38b)]){case _0x1779e6['HEARTBEAT']:case _0x1779e6['HELLO']:return JSON[_0x18dd82(0x428)]({'cmd':_0x1cae6f['cmd'],'routeKey':_0x1cae6f[_0x18dd82(0x16b)]});case _0x1779e6['INGEST']:{let _0x1da585;switch(_0x1cae6f[_0x18dd82(0xf9)][_0x18dd82(0x2aa)]){case _0x5c3399[_0x18dd82(0x3d6)][_0x18dd82(0x1c5)]:{_0x1da585={'eventID':_0x5c3399[_0x18dd82(0x3d6)][_0x18dd82(0x1c5)],'updateCursorEvent':_0x1cae6f[_0x18dd82(0xf9)][_0x18dd82(0xf9)]};break;}case _0x5c3399[_0x18dd82(0x3d6)][_0x18dd82(0x203)]:{_0x1da585={'eventID':_0x5c3399[_0x18dd82(0x3d6)][_0x18dd82(0x203)],'leaveEvent':_0x1cae6f[_0x18dd82(0xf9)][_0x18dd82(0xf9)]};break;}case _0x5c3399['CollaborationEvent'][_0x18dd82(0x1c3)]:{_0x1da585={'eventID':_0x5c3399[_0x18dd82(0x3d6)][_0x18dd82(0x1c3)],'joinEvent':_0x1cae6f[_0x18dd82(0xf9)][_0x18dd82(0xf9)]};break;}case _0x5c3399[_0x18dd82(0x3d6)][_0x18dd82(0x409)]:{_0x1da585={'eventID':_0x5c3399['CollaborationEvent'][_0x18dd82(0x409)],'liveShareNewHost':_0x1cae6f[_0x18dd82(0xf9)]['data']};break;}case _0x5c3399['CollaborationEvent'][_0x18dd82(0x46d)]:{_0x1da585={'eventID':_0x5c3399[_0x18dd82(0x3d6)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x1cae6f[_0x18dd82(0xf9)]['data']};break;}case _0x5c3399[_0x18dd82(0x3d6)][_0x18dd82(0x4ef)]:{_0x1da585={'eventID':_0x5c3399['CollaborationEvent']['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x1cae6f['data'][_0x18dd82(0xf9)]};break;}case _0x5c3399[_0x18dd82(0x3d6)][_0x18dd82(0x343)]:{_0x1da585={'eventID':_0x5c3399[_0x18dd82(0x3d6)][_0x18dd82(0x343)],'liveShareRequestHost':_0x1cae6f[_0x18dd82(0xf9)][_0x18dd82(0xf9)]};break;}case _0x5c3399[_0x18dd82(0x3d6)]['LIVESHARE_FETCH_OPERATIONS']:{_0x1da585={'eventID':_0x5c3399[_0x18dd82(0x3d6)][_0x18dd82(0x478)]};break;}default:_0x1da585={'eventID':_0x1cae6f['data'][_0x18dd82(0x2aa)]};}return JSON[_0x18dd82(0x428)]({'cmd':_0x1cae6f['cmd'],'routeKey':_0x1cae6f[_0x18dd82(0x16b)],'collaMsg':_0x1da585});}case _0x1779e6[_0x18dd82(0x39a)]:return JSON['stringify']({'cmd':_0x1cae6f[_0x18dd82(0x38b)],'routeKey':_0x1cae6f[_0x18dd82(0x16b)],'joinReq':_0x1cae6f['data']});case _0x1779e6['LEAVE']:return JSON[_0x18dd82(0x428)]({'cmd':_0x1cae6f[_0x18dd82(0x38b)],'routeKey':_0x1cae6f[_0x18dd82(0x16b)],'leaveReq':_0x1cae6f[_0x18dd82(0xf9)]});default:throw new Error(_0x18dd82(0x283));}}var _0xb63cbc=Object[_0x4deb9c(0x4f6)],_0x1f8f1c=Object['getOwnPropertyDescriptor'],_0x3cc0db=(_0x6e211d,_0x320d4c,_0x2a2a7f,_0x685a22)=>{const _0x168c05=_0x4deb9c;for(var _0x1c3ef6=_0x685a22>0x1?void 0x0:_0x685a22?_0x1f8f1c(_0x320d4c,_0x2a2a7f):_0x320d4c,_0x400bdd=_0x6e211d[_0x168c05(0x17a)]-0x1,_0x1a19d3;_0x400bdd>=0x0;_0x400bdd--)(_0x1a19d3=_0x6e211d[_0x400bdd])&&(_0x1c3ef6=(_0x685a22?_0x1a19d3(_0x320d4c,_0x2a2a7f,_0x1c3ef6):_0x1a19d3(_0x1c3ef6))||_0x1c3ef6);return _0x685a22&&_0x1c3ef6&&_0xb63cbc(_0x320d4c,_0x2a2a7f,_0x1c3ef6),_0x1c3ef6;},_0x2ce446=(_0x7a15e7,_0x5eef3c)=>(_0x4f7d2e,_0x53b71b)=>_0x5eef3c(_0x4f7d2e,_0x53b71b,_0x7a15e7);const _0x2f8f8b=_0x44f3cf[_0x4deb9c(0x1e3)](_0x4deb9c(0x13f));function _0x216777(_0x450584,_0xfb4a0c,_0x4ae949){const _0x331580=_0x4deb9c;return _0x450584+'/'+_0xfb4a0c+_0x331580(0x3da)+_0x4ae949+_0x331580(0x415);}_0x3723aa[_0x4deb9c(0x395)]=class extends _0x44f3cf[_0x4deb9c(0x50a)]{constructor(_0x421d77,_0x214033,_0x349109,_0x489696,_0x357afc){const _0x582ae7=_0x4deb9c;super(),this[_0x582ae7(0x388)]=_0x421d77,this[_0x582ae7(0x105)]=_0x214033,this[_0x582ae7(0x494)]=_0x349109,this[_0x582ae7(0x1aa)]=_0x489696,this[_0x582ae7(0x278)]=_0x357afc;}[_0x4deb9c(0x1c4)](_0x2cf8eb){const _0xae524f=_0x4deb9c,_0x47894f=this[_0xae524f(0x105)]['createSocket'](_0x2cf8eb);if(!_0x47894f)throw new Error(_0xae524f(0x131));const _0x3ed4ac=new _0x44f3cf['DisposableCollection'](),_0x22642d=new _0x1837c6[(_0xae524f(0x4a0))]();_0x3ed4ac[_0xae524f(0x117)](_0x47894f[_0xae524f(0x144)][_0xae524f(0x138)](_0x5be081=>_0x22642d['next'](_0x5be081))),_0x3ed4ac[_0xae524f(0x117)](_0x44f3cf[_0xae524f(0x133)](()=>_0x22642d[_0xae524f(0x4d3)]()));const _0x27dc8a=new _0x1837c6[(_0xae524f(0x4a0))]();_0x3ed4ac['add'](_0x47894f['error$']['subscribe'](_0x569a0e=>_0x27dc8a[_0xae524f(0x3e8)](_0x569a0e))),_0x3ed4ac[_0xae524f(0x117)](_0x44f3cf['toDisposable'](()=>_0x27dc8a['complete']()));const _0x2cc238=new _0x1837c6[(_0xae524f(0x4a0))]();_0x3ed4ac[_0xae524f(0x117)](_0x47894f[_0xae524f(0x421)][_0xae524f(0x138)](_0xcce866=>{const _0x502889=_0xae524f,_0x22b749=_0x2eb665(_0xcce866);_0x2cc238[_0x502889(0x3e8)](_0x22b749);})),_0x3ed4ac[_0xae524f(0x117)](_0x44f3cf[_0xae524f(0x133)](()=>_0x2cc238['complete']()));let _0x56d3dd;const _0x1c07c6=()=>{const _0x4dff72=_0xae524f;_0x27dc8a[_0x4dff72(0x3e8)](new Event('connection\x20error')),_0x22642d[_0x4dff72(0x3e8)](new CloseEvent('connection\x20error')),_0x56d3dd[_0x4dff72(0x44e)]();};return _0x56d3dd={'memberID':'','close$':_0x22642d[_0xae524f(0x4eb)](),'error$':_0x27dc8a[_0xae524f(0x4eb)](),'open$':_0x47894f[_0xae524f(0x13a)],'message$':_0x2cc238['asObservable'](),'send':_0x108120=>{const _0x5d6e41=_0xae524f;if(_0x108120[_0x5d6e41(0x38b)]===_0x1779e6[_0x5d6e41(0xf4)]){if(_0x108120[_0x5d6e41(0xf9)][_0x5d6e41(0x2aa)]===_0x5c3399['CollaborationEvent'][_0x5d6e41(0x29c)]){this[_0x5d6e41(0x2f7)](_0x56d3dd,_0x108120[_0x5d6e41(0xf9)])[_0x5d6e41(0x1ad)](_0x292bac=>{const _0x1d1413=_0x5d6e41;this[_0x1d1413(0x1aa)][_0x1d1413(0x46e)](_0x292bac),_0x1c07c6();});return;}if(_0x108120[_0x5d6e41(0xf9)]['eventID']===_0x5c3399[_0x5d6e41(0x3d6)][_0x5d6e41(0x236)]){const _0x4d788a=_0x108120['data'];this[_0x5d6e41(0x321)](_0x4d788a)[_0x5d6e41(0x15b)](_0x6c0a93=>{const _0x24fedb=_0x5d6e41;_0x2cc238[_0x24fedb(0x3e8)]({'cmd':_0x1779e6[_0x24fedb(0x4fd)],'code':_0x456623['OK'],'routeKey':_0x4d788a[_0x24fedb(0xf9)]['unitID'],'routeType':'','data':{'eventID':_0x5c3399[_0x24fedb(0x3d6)][_0x24fedb(0x338)],'data':{'changesets':_0x6c0a93}}});})[_0x5d6e41(0x1ad)](_0xe69a61=>{const _0x118edf=_0x5d6e41;this[_0x118edf(0x1aa)][_0x118edf(0x46e)](_0xe69a61),_0x1c07c6();});return;}}_0x47894f['send'](_0x266df0(_0x108120));},'close':()=>{const _0x278080=_0xae524f;_0x47894f['close'](),_0x3ed4ac[_0x278080(0x241)]();}},_0x56d3dd;}async[_0x4deb9c(0x2f7)](_0x4461a2,_0x8d8740){const _0x19c167=_0x4deb9c;var _0x43c1a5;const {unitType:_0x12a032,unitID:_0xfac86f,changeset:_0x5af68c}=_0x8d8740[_0x19c167(0xf9)],_0xea004={'unitID':_0xfac86f,'memberID':_0x4461a2[_0x19c167(0x217)],'type':_0x12a032,'changeset':_0x5c3399[_0x19c167(0x126)](_0x5af68c)},_0x537f68=_0x216777((_0x43c1a5=this[_0x19c167(0x494)]['getConfig'](_0x1b950d))!=null?_0x43c1a5:_0x162f44,_0x12a032,_0xfac86f);try{await this[_0x19c167(0x388)][_0x19c167(0x239)](_0x537f68,{'body':_0xea004});}catch(_0x1cdfca){throw this[_0x19c167(0x1aa)][_0x19c167(0x46e)](_0x19c167(0x118),_0x19c167(0x276)),_0x1cdfca;}}async['_fetchMissChangesets'](_0x56520e){const _0x332e7e=_0x4deb9c,{unitID:_0x127a2e,from:_0x48f912,to:_0x1f1945,unitType:_0x167c23}=_0x56520e['data'];return(await this[_0x332e7e(0x278)][_0x332e7e(0x371)]({'metadata':void 0x0},{'unitID':_0x127a2e,'type':_0x167c23,'from':_0x48f912,'to':_0x1f1945}))[_0x332e7e(0x50f)];}},_0x3723aa['CollaborationSocketService']=_0x3cc0db([_0x2ce446(0x0,_0x44f3cf[_0x4deb9c(0x2a6)](_0x43b7e7['HTTPService'])),_0x2ce446(0x1,_0x44f3cf[_0x4deb9c(0x2a6)](_0x43b7e7['WebSocketService'])),_0x2ce446(0x2,_0x44f3cf[_0x4deb9c(0x150)]),_0x2ce446(0x3,_0x44f3cf['ILogService']),_0x2ce446(0x4,_0x5c3399[_0x4deb9c(0x257)])],_0x3723aa['CollaborationSocketService']);const _0x4a3b8e=_0x4deb9c(0x2cc);function _0x5d818b(_0x3e48c8){const _0x3f169c=_0x4deb9c;return JSON['stringify'](_0x3e48c8)[_0x3f169c(0x17a)];}class _0x523579{constructor(){const _0xdb744f=_0x4deb9c;_0x434a2a(this,_0xdb744f(0x37d),new _0x1837c6['Subject']()),_0x434a2a(this,_0xdb744f(0x30f),this[_0xdb744f(0x37d)]['asObservable']());}[_0x4deb9c(0x4c3)](_0x3dbb9c){const _0x2084e2=_0x4deb9c;this[_0x2084e2(0x37d)]['next'](_0x3dbb9c);}}var _0x251910=Object[_0x4deb9c(0x4f6)],_0x1572f4=Object[_0x4deb9c(0x3d9)],_0x523a67=(_0x5eca66,_0x214e67,_0x2cda6d,_0x1d39f6)=>{const _0x1baf44=_0x4deb9c;for(var _0x4e8b62=_0x1d39f6>0x1?void 0x0:_0x1d39f6?_0x1572f4(_0x214e67,_0x2cda6d):_0x214e67,_0x332433=_0x5eca66[_0x1baf44(0x17a)]-0x1,_0x3f2246;_0x332433>=0x0;_0x332433--)(_0x3f2246=_0x5eca66[_0x332433])&&(_0x4e8b62=(_0x1d39f6?_0x3f2246(_0x214e67,_0x2cda6d,_0x4e8b62):_0x3f2246(_0x4e8b62))||_0x4e8b62);return _0x1d39f6&&_0x4e8b62&&_0x251910(_0x214e67,_0x2cda6d,_0x4e8b62),_0x4e8b62;},_0xb1f92a=(_0x426ba6,_0x7e29ba)=>(_0x2567b9,_0x46f70d)=>_0x7e29ba(_0x2567b9,_0x46f70d,_0x426ba6);let _0x32fe7e=class extends _0x44f3cf[_0x4deb9c(0x50a)]{constructor(_0x559cb5,_0xaba5be){const _0x2b83a2=_0x4deb9c;super(),_0x434a2a(this,'_roomMembers',new Map()),(this[_0x2b83a2(0x391)]=_0x559cb5,this[_0x2b83a2(0x442)]=_0xaba5be,this[_0x2b83a2(0x446)](_0x44f3cf[_0x2b83a2(0x133)](_0x1837c6[_0x2b83a2(0xfb)](this[_0x2b83a2(0x391)][_0x2b83a2(0x4a5)](_0x44f3cf[_0x2b83a2(0x1bb)][_0x2b83a2(0x402)])[_0x2b83a2(0x4f9)](_0x3ab9e8[_0x2b83a2(0x269)](_0x57e4bc=>_0x57e4bc[_0x2b83a2(0x43f)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x44f3cf[_0x2b83a2(0x1bb)][_0x2b83a2(0x350)])['pipe'](_0x3ab9e8[_0x2b83a2(0x269)](_0x253d92=>_0x253d92['getUnitId']())),this[_0x2b83a2(0x391)][_0x2b83a2(0x4a5)](_0x44f3cf[_0x2b83a2(0x1bb)][_0x2b83a2(0x4ad)])['pipe'](_0x3ab9e8[_0x2b83a2(0x269)](_0x2a610a=>_0x2a610a[_0x2b83a2(0x43f)]())))[_0x2b83a2(0x138)](_0x2180ca=>this[_0x2b83a2(0x263)](_0x2180ca)))));}[_0x4deb9c(0x11f)](_0x54ee1c){this['_userManagerService']['setCurrentUser'](_0x54ee1c);}[_0x4deb9c(0x2d2)](){const _0x242d54=_0x4deb9c;return this[_0x242d54(0x442)][_0x242d54(0x2d2)]();}[_0x4deb9c(0x1e8)](_0x473b87,_0x4c3399){const _0x59efb6=_0x4deb9c;let _0x5a4899=this[_0x59efb6(0x21a)]['get'](_0x473b87);_0x5a4899||(_0x5a4899=new _0x5a6ed1(),this['_roomMembers'][_0x59efb6(0x2b2)](_0x473b87,_0x5a4899)),_0x5a4899[_0x59efb6(0x1e8)](_0x4c3399);}[_0x4deb9c(0x44f)](_0x5bc8f9,_0x16b553){const _0x4f7ffa=_0x4deb9c,_0x5ecb98=this[_0x4f7ffa(0x21a)][_0x4f7ffa(0x38c)](_0x5bc8f9);_0x5ecb98&&_0x5ecb98[_0x4f7ffa(0x44f)](_0x16b553);}[_0x4deb9c(0x349)](_0x1cfbf9){const _0x1b4de9=_0x4deb9c;return this[_0x1b4de9(0x21a)][_0x1b4de9(0x38c)](_0x1cfbf9);}['getMember'](_0x5abc3e,_0x2d4fe9){const _0x1dcb87=_0x4deb9c,_0x450493=this[_0x1dcb87(0x21a)]['get'](_0x5abc3e);if(_0x450493)return _0x450493['getMember'](_0x2d4fe9);}[_0x4deb9c(0x263)](_0x35e75d){const _0x655f21=_0x4deb9c,_0x61820d=this[_0x655f21(0x21a)][_0x655f21(0x38c)](_0x35e75d);_0x61820d&&(_0x61820d[_0x655f21(0x241)](),this[_0x655f21(0x21a)][_0x655f21(0x312)](_0x35e75d));}[_0x4deb9c(0x241)](){const _0xee9238=_0x4deb9c;this[_0xee9238(0x21a)][_0xee9238(0x4cc)](_0x3368b5=>_0x3368b5[_0xee9238(0x241)]()),this[_0xee9238(0x21a)][_0xee9238(0x3fa)]();}};_0x32fe7e=_0x523a67([_0xb1f92a(0x0,_0x44f3cf[_0x4deb9c(0x165)]),_0xb1f92a(0x1,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x11c)]))],_0x32fe7e);class _0x5a6ed1 extends _0x44f3cf['Disposable']{constructor(){const _0x111bf0=_0x4deb9c;super(...arguments),_0x434a2a(this,_0x111bf0(0x502),new Map());}[_0x4deb9c(0x241)](){const _0x14f8dd=_0x4deb9c;this[_0x14f8dd(0x502)][_0x14f8dd(0x3fa)]();}[_0x4deb9c(0x1e8)](_0x359d58){const _0x21ee13=_0x4deb9c;this[_0x21ee13(0x502)]['set'](_0x359d58[_0x21ee13(0x217)],_0x359d58);}[_0x4deb9c(0x44f)](_0xd62fbc){this['_members']['delete'](_0xd62fbc);}[_0x4deb9c(0x438)](_0x2e3ccf){const _0x4822c8=_0x4deb9c;return this[_0x4822c8(0x502)][_0x4822c8(0x38c)](_0x2e3ccf);}}var _0x216b25=Object[_0x4deb9c(0x4f6)],_0x41d891=Object[_0x4deb9c(0x3d9)],_0x50f615=(_0x275d54,_0x3b7ca1,_0x2854bd,_0x21eb4c)=>{for(var _0x3a4ed5=_0x21eb4c>0x1?void 0x0:_0x21eb4c?_0x41d891(_0x3b7ca1,_0x2854bd):_0x3b7ca1,_0x6ac933=_0x275d54['length']-0x1,_0x1fe5c2;_0x6ac933>=0x0;_0x6ac933--)(_0x1fe5c2=_0x275d54[_0x6ac933])&&(_0x3a4ed5=(_0x21eb4c?_0x1fe5c2(_0x3b7ca1,_0x2854bd,_0x3a4ed5):_0x1fe5c2(_0x3a4ed5))||_0x3a4ed5);return _0x21eb4c&&_0x3a4ed5&&_0x216b25(_0x3b7ca1,_0x2854bd,_0x3a4ed5),_0x3a4ed5;},_0x29b6c4=(_0x24b038,_0x1062b5)=>(_0x764662,_0x288fb3)=>_0x1062b5(_0x764662,_0x288fb3,_0x24b038),_0x4388c5=(_0x55dc03=>(_0x55dc03[_0x55dc03[_0x4deb9c(0x462)]=0x0]=_0x4deb9c(0x462),_0x55dc03[_0x55dc03[_0x4deb9c(0x1d3)]=0x1]='JOINING',_0x55dc03[_0x55dc03[_0x4deb9c(0x135)]=0x2]=_0x4deb9c(0x135),_0x55dc03[_0x55dc03[_0x4deb9c(0x1df)]=0x3]=_0x4deb9c(0x1df),_0x55dc03))(_0x4388c5||{});_0x3723aa[_0x4deb9c(0x404)]=class extends _0x44f3cf['RxDisposable']{constructor(_0x34e8e3,_0x535b9d,_0x26296d,_0x5939c9,_0x269bd3,_0x596625,_0x44f970,_0x24c606,_0x1346b5,_0x10e5d0){const _0x2b1125=_0x4deb9c;super(),_0x434a2a(this,_0x2b1125(0x336),new _0x1837c6[(_0x2b1125(0x17d))](0x0)),_0x434a2a(this,_0x2b1125(0x501),this[_0x2b1125(0x336)][_0x2b1125(0x4eb)]()),_0x434a2a(this,_0x2b1125(0x14a),new _0x1837c6[(_0x2b1125(0x4a0))]()),_0x434a2a(this,_0x2b1125(0x458),this[_0x2b1125(0x14a)][_0x2b1125(0x4eb)]()),_0x434a2a(this,_0x2b1125(0xfa)),_0x434a2a(this,_0x2b1125(0x3b3)),_0x434a2a(this,'_collaborationTimeoutTimer'),_0x434a2a(this,'_shouldReportTelemetry',!0x1),_0x434a2a(this,_0x2b1125(0x212),null),(this[_0x2b1125(0x497)]=_0x34e8e3,this[_0x2b1125(0x1aa)]=_0x26296d,this[_0x2b1125(0x4ec)]=_0x5939c9,this[_0x2b1125(0x31a)]=_0x269bd3,this[_0x2b1125(0x494)]=_0x596625,this['_localeService']=_0x44f970,this[_0x2b1125(0x4d4)]=_0x24c606,this[_0x2b1125(0x4bc)]=_0x1346b5,this[_0x2b1125(0x112)]=_0x10e5d0,this[_0x2b1125(0x30b)]=!!this[_0x2b1125(0x112)],_0x535b9d[_0x2b1125(0x4f9)](_0x1837c6[_0x2b1125(0x23e)](this[_0x2b1125(0x423)]))[_0x2b1125(0x138)](_0x23189b=>{const _0x21ecc5=_0x2b1125;var _0x146c01;typeof _0x23189b>'u'||(this[_0x21ecc5(0xfa)]=_0x23189b,_0x23189b?(this[_0x21ecc5(0x4c8)](_0x23189b),this['_socketMessageSubscription']=_0x23189b[_0x21ecc5(0x421)]['subscribe'](_0x485e73=>{const _0x2227bc=_0x21ecc5;_0x485e73[_0x2227bc(0x16b)]===this[_0x2227bc(0x497)]&&this[_0x2227bc(0x163)](_0x485e73);})):(this[_0x21ecc5(0x412)](),this[_0x21ecc5(0x336)][_0x21ecc5(0x3e8)](0x2),(_0x146c01=this[_0x21ecc5(0x3b3)])==null||_0x146c01['unsubscribe'](),this[_0x21ecc5(0x3b3)]=null));}),this['disposeWithMe'](this[_0x2b1125(0x4ec)][_0x2b1125(0x198)](()=>{const _0x42d3a0=_0x2b1125;var _0x104b53;(_0x104b53=this['_socket'])==null||_0x104b53[_0x42d3a0(0x151)]({'cmd':_0x1779e6[_0x42d3a0(0x22d)],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0x55148c=_0x4deb9c;return this[_0x55148c(0x336)][_0x55148c(0x22e)]();}[_0x4deb9c(0x146)](){const _0x15e2ea=_0x4deb9c;var _0x25de0d,_0x402649;return(_0x402649=(_0x25de0d=this['_socket'])==null?void 0x0:_0x25de0d[_0x15e2ea(0x217)])!=null?_0x402649:null;}['dispose'](){const _0x5ab8e2=_0x4deb9c;super['dispose'](),this[_0x5ab8e2(0x423)][_0x5ab8e2(0x3e8)](),this['dispose$'][_0x5ab8e2(0x4d3)]();}[_0x4deb9c(0x44e)](){const _0x47dcef=_0x4deb9c;var _0x5c7457,_0x1cc5e5;this['_throwTelemetryCollaborationNewChangeset'](),(_0x5c7457=this[_0x47dcef(0xfa)])==null||_0x5c7457['send']({'cmd':_0x1779e6[_0x47dcef(0x22d)],'data':{'roomID':this[_0x47dcef(0x497)]}}),(_0x1cc5e5=this['_socket'])==null||_0x1cc5e5[_0x47dcef(0x44e)](),this[_0x47dcef(0x14a)][_0x47dcef(0x4d3)](),this[_0x47dcef(0x336)]['complete'](),this[_0x47dcef(0x241)]();}[_0x4deb9c(0x163)](_0x37be80){const _0x2729d0=_0x4deb9c;_0x37be80['cmd']===_0x1779e6[_0x2729d0(0x39a)]?this[_0x2729d0(0x481)](_0x37be80):_0x37be80[_0x2729d0(0x38b)]===_0x1779e6['RECV']&&this[_0x2729d0(0x3dc)](_0x37be80);}[_0x4deb9c(0x4c8)](_0x6cab2d){const _0x1307d1=_0x4deb9c;this[_0x1307d1(0x336)]['next'](0x1),_0x6cab2d[_0x1307d1(0x151)]({'cmd':_0x1779e6[_0x1307d1(0x39a)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x4deb9c(0x481)](_0x16a310){const _0x10a035=_0x4deb9c;var _0x72b688;if(_0x16a310['code']===_0x456623[_0x10a035(0x486)]){this[_0x10a035(0x31a)][_0x10a035(0x2a7)]({'type':_0x1c0df8[_0x10a035(0x25c)][_0x10a035(0x435)],'content':this['_localeService']['t']('session.room-full')}),this['_sessionStatus$'][_0x10a035(0x3e8)](0x2);return;}this[_0x10a035(0x336)][_0x10a035(0x3e8)](0x3);const _0x1bc12f=(_0x72b688=_0x16a310[_0x10a035(0xf9)][_0x10a035(0x176)][this['_unitID']])==null?void 0x0:_0x72b688['members'];_0x1bc12f&&_0x1bc12f[_0x10a035(0x4cc)](_0x3e8b5e=>this[_0x10a035(0x4d4)][_0x10a035(0x1e8)](this[_0x10a035(0x497)],_0x3e8b5e));}[_0x4deb9c(0x3dc)](_0x380f9a){const _0x5436d1=_0x4deb9c;try{const _0x57c871=_0x380f9a[_0x5436d1(0xf9)];switch(_0x57c871[_0x5436d1(0x2aa)]){case _0x5c3399['CollaborationEvent']['USERS_ENTER']:this[_0x5436d1(0x1a7)](_0x57c871),this[_0x5436d1(0x14a)][_0x5436d1(0x3e8)](_0x57c871);break;case _0x5c3399[_0x5436d1(0x3d6)][_0x5436d1(0x203)]:this[_0x5436d1(0x148)](_0x57c871),this[_0x5436d1(0x14a)][_0x5436d1(0x3e8)](_0x57c871);break;case _0x5c3399[_0x5436d1(0x3d6)]['CHANGESET_ACK']:this[_0x5436d1(0x3cb)](),this[_0x5436d1(0x4b8)](),this[_0x5436d1(0x14a)]['next'](_0x57c871);break;case _0x5c3399[_0x5436d1(0x3d6)][_0x5436d1(0x174)]:this[_0x5436d1(0x1aa)][_0x5436d1(0x46e)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x5436d1(0x428)](_0x57c871)),this[_0x5436d1(0x14a)]['next'](_0x57c871);break;case _0x5c3399[_0x5436d1(0x3d6)][_0x5436d1(0x1ec)]:this[_0x5436d1(0x4bc)][_0x5436d1(0x4c3)](_0x57c871[_0x5436d1(0xf9)]),this[_0x5436d1(0x14a)]['next'](_0x57c871);break;default:this[_0x5436d1(0x14a)][_0x5436d1(0x3e8)](_0x57c871);}}catch(_0x354056){this[_0x5436d1(0x1aa)][_0x5436d1(0x46e)](_0x354056,_0x380f9a);}}[_0x4deb9c(0x1a7)](_0x16d7d6){const _0x4ba95c=_0x4deb9c;this[_0x4ba95c(0x4d4)][_0x4ba95c(0x1e8)](this['_unitID'],_0x16d7d6[_0x4ba95c(0xf9)]);}[_0x4deb9c(0x148)](_0x315329){const _0x49246f=_0x4deb9c;this['_memberService'][_0x49246f(0x44f)](this['_unitID'],_0x315329[_0x49246f(0xf9)]['memberID']);}async[_0x4deb9c(0x151)](_0x1747bb,_0x19e30b){const _0x18025a=_0x4deb9c;if(this[_0x18025a(0x230)]!==0x3||!this['_socket'])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x1747bb[_0x18025a(0x2aa)]===_0x5c3399[_0x18025a(0x3d6)]['SUBMIT_CHANGESET']&&(this[_0x18025a(0x43c)](),this[_0x18025a(0x390)](_0x1747bb)),this[_0x18025a(0xfa)][_0x18025a(0x151)]({'cmd':_0x1779e6[_0x18025a(0xf4)],'routeKey':_0x19e30b,'routeType':'','data':_0x1747bb});}catch(_0x352bab){this[_0x18025a(0x1aa)]['error'](_0x352bab);}}[_0x4deb9c(0x43c)](){const _0x205765=_0x4deb9c;var _0x5c6b31;this['_collaborationTimeoutTimer']=window[_0x205765(0x479)](()=>{const _0x2a1691=_0x205765;this[_0x2a1691(0x4ed)]=null,this['_messageService'][_0x2a1691(0x2a7)]({'type':_0x1c0df8['MessageType'][_0x2a1691(0x2b7)],'content':this[_0x2a1691(0x182)]['t']('session.collaboration-timeout')});},(_0x5c6b31=this[_0x205765(0x494)]['getConfig'](_0x1bc3ee))!=null?_0x5c6b31:0x4e20);}[_0x4deb9c(0x4b8)](){const _0x31e8d5=_0x4deb9c;this[_0x31e8d5(0x4ed)]&&(clearTimeout(this[_0x31e8d5(0x4ed)]),this[_0x31e8d5(0x4ed)]=null);}[_0x4deb9c(0x390)](_0x4e9edf){const _0x5b3c90=_0x4deb9c;if(!this[_0x5b3c90(0x30b)])return;const {data:_0x180616}=_0x4e9edf,{unitID:_0x59e238,changeset:_0x407749}=_0x180616,{mutations:_0x159c22,type:_0xe6ccf8}=_0x407749;this['_telemetryInfo']={'unitId':_0x59e238,'type':_0xe6ccf8,'startTime':performance[_0x5b3c90(0x3d8)](),'stopTime':0x0,'duration':0x0,'size':_0x5d818b(_0x159c22)};}[_0x4deb9c(0x3cb)](){const _0x1f2406=_0x4deb9c;if(this[_0x1f2406(0x30b)]){if(!this[_0x1f2406(0x212)]){this['_logService'][_0x1f2406(0x46e)]('[CollaborationSession]',_0x1f2406(0x26e));return;}this[_0x1f2406(0x212)][_0x1f2406(0x35c)]=performance[_0x1f2406(0x3d8)](),this[_0x1f2406(0x212)][_0x1f2406(0x2c9)]=this[_0x1f2406(0x212)][_0x1f2406(0x35c)]-this[_0x1f2406(0x212)][_0x1f2406(0x26a)],this[_0x1f2406(0x112)][_0x1f2406(0x211)](_0x4a3b8e,this[_0x1f2406(0x212)]),this['_telemetryInfo']=null;}}[_0x4deb9c(0x412)](){const _0x578f5a=_0x4deb9c;this[_0x578f5a(0x212)]=null;}},_0x3723aa['CollaborationSession']=_0x50f615([_0x29b6c4(0x2,_0x44f3cf['ILogService']),_0x29b6c4(0x3,_0x90d6c1[_0x4deb9c(0x27d)]),_0x29b6c4(0x4,_0x90d6c1[_0x4deb9c(0x1b2)]),_0x29b6c4(0x5,_0x44f3cf['IConfigService']),_0x29b6c4(0x6,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x440)])),_0x29b6c4(0x7,_0x44f3cf['Inject'](_0x32fe7e)),_0x29b6c4(0x8,_0x44f3cf['Inject'](_0x523579)),_0x29b6c4(0x9,_0x44f3cf['Optional'](_0x2b7353['ITelemetryService']))],_0x3723aa['CollaborationSession']);var _0x286d1b=Object[_0x4deb9c(0x4f6)],_0x324b66=Object[_0x4deb9c(0x3d9)],_0x516b21=(_0x4b6291,_0x4b1a52,_0xb3b596,_0x60539a)=>{const _0xa34792=_0x4deb9c;for(var _0x5e61b5=_0x60539a>0x1?void 0x0:_0x60539a?_0x324b66(_0x4b1a52,_0xb3b596):_0x4b1a52,_0x2852d1=_0x4b6291[_0xa34792(0x17a)]-0x1,_0xcd57ea;_0x2852d1>=0x0;_0x2852d1--)(_0xcd57ea=_0x4b6291[_0x2852d1])&&(_0x5e61b5=(_0x60539a?_0xcd57ea(_0x4b1a52,_0xb3b596,_0x5e61b5):_0xcd57ea(_0x5e61b5))||_0x5e61b5);return _0x60539a&&_0x5e61b5&&_0x286d1b(_0x4b1a52,_0xb3b596,_0x5e61b5),_0x5e61b5;},_0x3fc46d=(_0x57a3e3,_0x3eaef7)=>(_0xe4bbe9,_0x2405e1)=>_0x3eaef7(_0xe4bbe9,_0x2405e1,_0x57a3e3);_0x3723aa[_0x4deb9c(0x433)]=class extends _0x44f3cf[_0x4deb9c(0x50a)]{constructor(_0x75d050,_0x265f7d,_0x236c39,_0x296d7b,_0xbb4fc3,_0x414ac0){const _0x39a7d7=_0x4deb9c;super(),_0x434a2a(this,'_socket$',new _0x1837c6[(_0x39a7d7(0x17d))](void 0x0)),_0x434a2a(this,_0x39a7d7(0x18b),this[_0x39a7d7(0x246)][_0x39a7d7(0x4eb)]()),_0x434a2a(this,_0x39a7d7(0x475),null),_0x434a2a(this,_0x39a7d7(0x108),new Map()),_0x434a2a(this,_0x39a7d7(0xf7),new _0x1837c6[(_0x39a7d7(0x17d))](_0x4388c5['IDLE'])),_0x434a2a(this,_0x39a7d7(0x43a),this[_0x39a7d7(0xf7)][_0x39a7d7(0x4eb)]()),_0x434a2a(this,_0x39a7d7(0x315),!0x1),_0x434a2a(this,_0x39a7d7(0x2a3)),_0x434a2a(this,_0x39a7d7(0x22a),0x0),_0x434a2a(this,_0x39a7d7(0x1b6)),_0x434a2a(this,'_timeoutTimer'),(this[_0x39a7d7(0x25f)]=_0x75d050,this[_0x39a7d7(0x182)]=_0x265f7d,this[_0x39a7d7(0x31a)]=_0x236c39,this['_logService']=_0x296d7b,this['_configService']=_0xbb4fc3,this[_0x39a7d7(0x11a)]=_0x414ac0);}get[_0x4deb9c(0xfa)](){const _0x863027=_0x4deb9c;return this['_socket$'][_0x863027(0x22e)]();}['dispose'](){const _0xd7ea13=_0x4deb9c;super['dispose'](),this[_0xd7ea13(0x108)][_0xd7ea13(0x4cc)](_0x216336=>_0x216336[_0xd7ea13(0x241)]()),this[_0xd7ea13(0x108)]['clear'](),this[_0xd7ea13(0xf7)]['complete']();}async[_0x4deb9c(0x10f)](_0x5be3e2){const _0x27e100=_0x4deb9c;if(this[_0x27e100(0x108)]['has'](_0x5be3e2))return this[_0x27e100(0x108)][_0x27e100(0x38c)](_0x5be3e2);this[_0x27e100(0x27e)]();const _0x1e4ae2=this[_0x27e100(0x25f)]['createInstance'](_0x3723aa[_0x27e100(0x404)],_0x5be3e2,this['_socket$']['asObservable']());return this[_0x27e100(0x108)][_0x27e100(0x2b2)](_0x5be3e2,_0x1e4ae2),_0x1e4ae2;}[_0x4deb9c(0x2fb)](_0x342a4f){const _0x34bf1e=_0x4deb9c;var _0x1dc9f9;const _0x300bc4=this[_0x34bf1e(0x108)][_0x34bf1e(0x38c)](_0x342a4f);_0x300bc4&&(this[_0x34bf1e(0x108)][_0x34bf1e(0x312)](_0x342a4f),_0x300bc4[_0x34bf1e(0x44e)]()),this[_0x34bf1e(0x108)][_0x34bf1e(0x23b)]||(_0x1dc9f9=this['_socket'])==null||_0x1dc9f9[_0x34bf1e(0x44e)]();}[_0x4deb9c(0x489)](){const _0x12d322=_0x4deb9c;this[_0x12d322(0x22a)]=0x0,this[_0x12d322(0x2a3)]!=null&&(clearTimeout(this[_0x12d322(0x2a3)]),this[_0x12d322(0x2a3)]=null),this[_0x12d322(0x2d1)]();}[_0x4deb9c(0x396)](){const _0x3eba98=_0x4deb9c;var _0x24f371;const _0x219268=(_0x24f371=this['_configService'][_0x3eba98(0x2cd)](_0x58c006))!=null?_0x24f371:_0x2fe1b1,_0x5c3896=this[_0x3eba98(0x11a)][_0x3eba98(0x1c4)](_0x219268);return this[_0x3eba98(0x475)]=_0x5c3896,_0x5c3896;}[_0x4deb9c(0x27e)](){const _0x2cc51f=_0x4deb9c;var _0x45b91c,_0x347e7f;try{const _0xc71eed=(_0x347e7f=(_0x45b91c=this[_0x2cc51f(0xfa)])!=null?_0x45b91c:this[_0x2cc51f(0x475)])!=null?_0x347e7f:this[_0x2cc51f(0x396)]();if(_0xc71eed){const _0x144524=_0xc71eed[_0x2cc51f(0x151)];_0xc71eed[_0x2cc51f(0x151)]=_0x314158=>(this[_0x2cc51f(0x2e9)](),_0x144524[_0x2cc51f(0x3ba)](_0xc71eed,[_0x314158])),_0xc71eed[_0x2cc51f(0x421)][_0x2cc51f(0x138)](_0x6231f1=>this[_0x2cc51f(0x351)](_0xc71eed,_0x6231f1)),_0xc71eed[_0x2cc51f(0x1e7)][_0x2cc51f(0x4f9)](_0x3ab9e8[_0x2cc51f(0x215)](0x1))[_0x2cc51f(0x138)](_0x5de836=>this['_logService'][_0x2cc51f(0x46e)](_0x2cc51f(0x345),_0x5de836)),_0xc71eed[_0x2cc51f(0x13a)][_0x2cc51f(0x4f9)](_0x3ab9e8[_0x2cc51f(0x215)](0x1))[_0x2cc51f(0x138)](()=>{this['_onConnectionOpen'](_0xc71eed);}),_0xc71eed[_0x2cc51f(0x144)][_0x2cc51f(0x4f9)](_0x3ab9e8['take'](0x1))['subscribe'](_0x3f0f68=>{const _0x5c231d=_0x2cc51f;this[_0x5c231d(0x1aa)]['debug'](_0x5c231d(0x1ca),_0x5c231d(0x2bd),_0x3f0f68),this[_0x5c231d(0x218)]();});}}catch(_0x3146d2){this[_0x2cc51f(0x1aa)][_0x2cc51f(0x46e)](_0x3146d2),this[_0x2cc51f(0x218)]();}}['_onConnectionOpen'](_0x2bbf84){const _0x5c3323=_0x4deb9c;this[_0x5c3323(0x1aa)][_0x5c3323(0x3e6)](_0x5c3323(0x1ca),_0x5c3323(0x4b3)),_0x2bbf84[_0x5c3323(0x151)]({'cmd':_0x1779e6['HELLO']}),this[_0x5c3323(0x2e9)](),this['_listenToOfflineEvent']();}[_0x4deb9c(0x2ff)](){const _0x43bece=_0x4deb9c,_0x2b91af=()=>{const _0x447ac7=_0x47c1;this[_0x447ac7(0x1d7)](),this['_listenToOnlineEvent'](),window[_0x447ac7(0x400)](_0x447ac7(0x143),_0x2b91af);};window[_0x43bece(0x168)](_0x43bece(0x143),_0x2b91af);}[_0x4deb9c(0x1d7)](){const _0x23d80d=_0x4deb9c;this['_socketReady']=!0x1,this[_0x23d80d(0xf7)]['next'](_0x4388c5[_0x23d80d(0x135)]),this[_0x23d80d(0x246)][_0x23d80d(0x3e8)](null),this['_clearTimeoutTimer'](),this[_0x23d80d(0x37b)]();}['_onConnectionFailed'](){const _0x5c25d8=_0x4deb9c;var _0x2c046b;this[_0x5c25d8(0x1d7)](),this[_0x5c25d8(0x22a)]<((_0x2c046b=this[_0x5c25d8(0x494)][_0x5c25d8(0x2cd)](_0x3eddeb))!=null?_0x2c046b:0x3)?(this[_0x5c25d8(0x31a)][_0x5c25d8(0x2a7)]({'key':_0x5c25d8(0x2b0),'type':_0x1c0df8[_0x5c25d8(0x25c)][_0x5c25d8(0x435)],'content':this['_localeService']['t'](_0x5c25d8(0x325))}),this[_0x5c25d8(0x2d1)]()):(this[_0x5c25d8(0x31a)][_0x5c25d8(0x2a7)]({'key':_0x5c25d8(0x2b0),'type':_0x1c0df8[_0x5c25d8(0x25c)][_0x5c25d8(0x2b7)],'content':this['_localeService']['t']('session.connection-failed')}),this[_0x5c25d8(0x149)]());}[_0x4deb9c(0x149)](){const _0x3a5125=_0x4deb9c,_0x2596d8=()=>{const _0x351cdf=_0x47c1;this[_0x351cdf(0x489)](),window['removeEventListener'](_0x351cdf(0x1b5),_0x2596d8);};window[_0x3a5125(0x168)]('online',_0x2596d8),this[_0x3a5125(0x246)]['pipe'](_0x3ab9e8[_0x3a5125(0x39e)](_0x4085c=>!!_0x4085c),_0x3ab9e8['take'](0x1))[_0x3a5125(0x138)](()=>{window['removeEventListener']('online',_0x2596d8);});}['_tryReconnect'](){const _0x57e9d3=_0x4deb9c;var _0xb5602a;const _0x2f8258=this[_0x57e9d3(0x22a)],_0xba76e=_0x2f8258===0x0?0x0:((_0xb5602a=this[_0x57e9d3(0x494)]['getConfig'](_0x31135c))!=null?_0xb5602a:0x4e20)*0x2**_0x2f8258;this[_0x57e9d3(0x2a3)]=window[_0x57e9d3(0x479)](()=>{const _0x10adb1=_0x57e9d3;clearTimeout(this[_0x10adb1(0x2a3)]),this[_0x10adb1(0x2a3)]=null,this[_0x10adb1(0x27e)]();},_0xba76e),this[_0x57e9d3(0x22a)]+=0x1;}[_0x4deb9c(0x351)](_0x1851d0,_0x105c48){const _0x599d8e=_0x4deb9c,{cmd:_0x2e1937}=_0x105c48;_0x2e1937===_0x1779e6[_0x599d8e(0x303)]&&!this['_socketReady']&&(_0x1851d0[_0x599d8e(0x217)]=_0x105c48[_0x599d8e(0xf9)]['memberID'],this[_0x599d8e(0x246)][_0x599d8e(0x3e8)](_0x1851d0),this[_0x599d8e(0xf7)][_0x599d8e(0x3e8)](_0x4388c5[_0x599d8e(0x1df)]),this[_0x599d8e(0x315)]=!0x0,this[_0x599d8e(0x475)]=null),_0x2e1937===_0x1779e6[_0x599d8e(0x3d5)]&&this[_0x599d8e(0x11d)](),this['_rescheduleHeartbeat']();}[_0x4deb9c(0x2e9)](){const _0xb153b2=_0x4deb9c;var _0x42ab33;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=window[_0xb153b2(0x479)](()=>this[_0xb153b2(0x234)](),(_0x42ab33=this[_0xb153b2(0x494)]['getConfig'](_0x4175a2))!=null?_0x42ab33:0x7530);}[_0x4deb9c(0x234)](){const _0x1ef863=_0x4deb9c;this[_0x1ef863(0xfa)][_0x1ef863(0x151)]({'cmd':_0x1779e6[_0x1ef863(0x3d5)]}),this[_0x1ef863(0x1a2)]();}[_0x4deb9c(0x1a2)](){const _0x507b2c=_0x4deb9c;var _0x5d7553;this['_timeoutTimer']=window['setTimeout'](()=>this[_0x507b2c(0x218)](),(_0x5d7553=this['_configService'][_0x507b2c(0x2cd)](_0x1bc3ee))!=null?_0x5d7553:0x4e20);}[_0x4deb9c(0x37b)](){const _0xd00934=_0x4deb9c;this[_0xd00934(0x1b6)]!=null&&(clearTimeout(this[_0xd00934(0x1b6)]),this[_0xd00934(0x1b6)]=null);}[_0x4deb9c(0x11d)](){const _0x2d51db=_0x4deb9c;this[_0x2d51db(0x41c)]!=null&&(clearTimeout(this[_0x2d51db(0x41c)]),this[_0x2d51db(0x41c)]=null);}},_0x3723aa['CollaborationSessionService']=_0x516b21([_0x3fc46d(0x0,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x3fc46d(0x1,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf['LocaleService'])),_0x3fc46d(0x2,_0x90d6c1['IMessageService']),_0x3fc46d(0x3,_0x44f3cf[_0x4deb9c(0x4e5)]),_0x3fc46d(0x4,_0x44f3cf[_0x4deb9c(0x150)]),_0x3fc46d(0x5,_0x2f8f8b)],_0x3723aa[_0x4deb9c(0x433)]);var _0x5e68c6=Object[_0x4deb9c(0x4f6)],_0x43bdb4=Object[_0x4deb9c(0x3d9)],_0x40d14a=(_0x433e6e,_0x431152,_0x51fdc6,_0x146579)=>{const _0x3c692c=_0x4deb9c;for(var _0x2af9d3=_0x146579>0x1?void 0x0:_0x146579?_0x43bdb4(_0x431152,_0x51fdc6):_0x431152,_0x496305=_0x433e6e[_0x3c692c(0x17a)]-0x1,_0x13cb53;_0x496305>=0x0;_0x496305--)(_0x13cb53=_0x433e6e[_0x496305])&&(_0x2af9d3=(_0x146579?_0x13cb53(_0x431152,_0x51fdc6,_0x2af9d3):_0x13cb53(_0x2af9d3))||_0x2af9d3);return _0x146579&&_0x2af9d3&&_0x5e68c6(_0x431152,_0x51fdc6,_0x2af9d3),_0x2af9d3;},_0x58267a=(_0x212041,_0x4ec43e)=>(_0x485797,_0x3ffa6e)=>_0x4ec43e(_0x485797,_0x3ffa6e,_0x212041);let _0x8239a3=class{constructor(_0x43e74c,_0x1effe1,_0x4a787e){const _0x54eca2=_0x4deb9c;this[_0x54eca2(0x25f)]=_0x43e74c,this['_transformService']=_0x1effe1,this['_renderManagerService']=_0x4a787e;}[_0x4deb9c(0x178)](_0x47b940){const _0x88c90d=_0x4deb9c;this[_0x88c90d(0x4ce)](_0x47b940),this[_0x88c90d(0x17c)](_0x47b940);}[_0x4deb9c(0x3d0)](_0x4d5385){const _0x55ed70=_0x4deb9c,{unitID:_0x8479c1}=_0x4d5385,_0x3de0e8=this['_renderManagerService'][_0x55ed70(0x119)](_0x8479c1)['with'](_0x50f029[_0x55ed70(0x202)]),{redoCache:_0x28292c}=_0x3de0e8[_0x55ed70(0x35e)]();if(_0x28292c[_0x55ed70(0x17a)]===0x0)return _0x4d5385;let _0x4aa705=_0x44f3cf[_0x55ed70(0x45a)][_0x55ed70(0x2c4)](_0x4d5385[_0x55ed70(0x367)][0x0]);for(let _0x4b0737=0x0;_0x4b0737<_0x28292c[_0x55ed70(0x17a)];_0x4b0737++){const _0x2c1018={'id':'doc.mutation.rich-text-editing','params':{..._0x28292c[_0x4b0737]}},_0x3df697=this[_0x55ed70(0x3c2)][_0x55ed70(0x3ea)](_0x4aa705,_0x2c1018,!0x1);if(_0x5c3399['isTransformMutationFailure'](_0x3df697))throw _0x3df697['error'];_0x4aa705=_0x3df697['m1Prime'];}return{..._0x44f3cf[_0x55ed70(0x45a)][_0x55ed70(0x2c4)](_0x4d5385),'mutations':[_0x4aa705]};}['_transformUndoRedoStack'](_0x43d0cb){const _0x2262aa=_0x4deb9c,{unitID:_0xda7b3c}=_0x43d0cb,_0xcc212c=this[_0x2262aa(0x47c)]['getRenderById'](_0xda7b3c)['with'](_0x50f029['DocIMEInputManagerService']),{undoCache:_0x17d966,redoCache:_0x268480}=_0xcc212c[_0x2262aa(0x35e)]();if(_0x17d966[_0x2262aa(0x17a)]===0x0||_0x268480['length']===0x0)return;const _0x3f925a=[],_0x238014=[];let _0x386eab=_0x44f3cf[_0x2262aa(0x45a)][_0x2262aa(0x2c4)](_0x43d0cb[_0x2262aa(0x367)][0x0]),_0x31db24=_0x44f3cf['Tools'][_0x2262aa(0x2c4)](_0x43d0cb['mutations'][0x0]);for(let _0x36721c=_0x17d966[_0x2262aa(0x17a)]-0x1;_0x36721c>=0x0;_0x36721c--){const _0x15a5fd={'id':'doc.mutation.rich-text-editing','params':{..._0x17d966[_0x36721c]}},_0x27d60f={'id':_0x2262aa(0x190),'params':{..._0x268480[_0x36721c]}},_0x4082ea=this[_0x2262aa(0x3c2)][_0x2262aa(0x3ea)](_0x386eab,_0x15a5fd,!0x1),_0x30a959=this['_transformService']['transformMutation'](_0x31db24,_0x27d60f,!0x1);if(_0x5c3399['isTransformMutationFailure'](_0x4082ea))throw _0x4082ea[_0x2262aa(0x46e)];if(_0x5c3399[_0x2262aa(0x128)](_0x30a959))throw _0x30a959[_0x2262aa(0x46e)];_0x3f925a[_0x2262aa(0x103)](_0x4082ea[_0x2262aa(0x499)][_0x2262aa(0x3fd)]),_0x238014[_0x2262aa(0x103)](_0x30a959[_0x2262aa(0x499)][_0x2262aa(0x3fd)]),_0x386eab=_0x4082ea[_0x2262aa(0x3bb)],_0x31db24=_0x30a959[_0x2262aa(0x3bb)];}_0xcc212c[_0x2262aa(0x48d)]({'undoCache':_0x3f925a,'redoCache':_0x238014});}[_0x4deb9c(0x17c)](_0x34ed31){const _0x16acc4=_0x4deb9c,{unitID:_0x55b5a3}=_0x34ed31,_0x82c89a=this[_0x16acc4(0x47c)]['getRenderById'](_0x55b5a3)[_0x16acc4(0x3ee)](_0x50f029[_0x16acc4(0x202)]),_0x25edd1=_0x82c89a[_0x16acc4(0x1b0)]();if(_0x25edd1==null)return;const _0x2e7f21=[{'id':_0x16acc4(0x190),'params':{'unitId':_0x34ed31[_0x16acc4(0x282)],'actions':null,'textRanges':[_0x25edd1]}}],_0x4ff4e8=this[_0x16acc4(0x3c2)]['transformMutationsWithChangeset'](_0x34ed31,_0x2e7f21);if(!_0x5c3399[_0x16acc4(0x264)](_0x4ff4e8))throw _0x4ff4e8['error'];const _0x34b2f4=_0x4ff4e8['m2Prime'][0x0]['params']['textRanges'];Array[_0x16acc4(0x4be)](_0x34b2f4)&&_0x34b2f4[_0x16acc4(0x17a)]&&_0x82c89a[_0x16acc4(0x1a8)](_0x34b2f4[0x0]);}};_0x8239a3=_0x40d14a([_0x58267a(0x0,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf['Injector'])),_0x58267a(0x1,_0x5c3399[_0x4deb9c(0x453)]),_0x58267a(0x2,_0x278226[_0x4deb9c(0x2db)])],_0x8239a3);var _0xc36bab=Object[_0x4deb9c(0x4f6)],_0x594613=Object[_0x4deb9c(0x3d9)],_0x564be3=(_0x2cf51f,_0x23fb40,_0x1958a2,_0x6c8e4a)=>{const _0x432a09=_0x4deb9c;for(var _0x47ef9d=_0x6c8e4a>0x1?void 0x0:_0x6c8e4a?_0x594613(_0x23fb40,_0x1958a2):_0x23fb40,_0x58faf4=_0x2cf51f[_0x432a09(0x17a)]-0x1,_0x2e8340;_0x58faf4>=0x0;_0x58faf4--)(_0x2e8340=_0x2cf51f[_0x58faf4])&&(_0x47ef9d=(_0x6c8e4a?_0x2e8340(_0x23fb40,_0x1958a2,_0x47ef9d):_0x2e8340(_0x47ef9d))||_0x47ef9d);return _0x6c8e4a&&_0x47ef9d&&_0xc36bab(_0x23fb40,_0x1958a2,_0x47ef9d),_0x47ef9d;},_0x99bb1b=(_0x27a986,_0x266929)=>(_0x318fd7,_0xd3c972)=>_0x266929(_0x318fd7,_0xd3c972,_0x27a986);_0x3723aa[_0x4deb9c(0x1d5)]=class extends _0x44f3cf[_0x4deb9c(0x50a)]{constructor(_0x4c3fba,_0x28e381,_0x3833f2,_0x59a1bd,_0x34d09b){const _0x2d500c=_0x4deb9c;super(),_0x434a2a(this,'_cachedData',new Map()),_0x434a2a(this,_0x2d500c(0x38d),new Map()),_0x434a2a(this,_0x2d500c(0x102),!0x1),(this[_0x2d500c(0x494)]=_0x4c3fba,this[_0x2d500c(0x496)]=_0x28e381,this['_beforeCloseService']=_0x3833f2,this['_localeService']=_0x59a1bd,this[_0x2d500c(0x2af)]=_0x34d09b,this[_0x2d500c(0x4d0)]());}['disableLocalCache'](){this['_disabled']=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}[_0x4deb9c(0x241)](){const _0x43fe24=_0x4deb9c;this['exhaustSavingTask']()[_0x43fe24(0x15b)](()=>super[_0x43fe24(0x241)]());}async[_0x4deb9c(0x286)](_0x4764ab){const _0x143cd3=_0x4deb9c;return this[_0x143cd3(0x102)]?null:this['_localStorageService'][_0x143cd3(0x195)](_0x5cae74(_0x4764ab));}async[_0x4deb9c(0x106)](_0xd45abf,_0x1c5ca0){const _0x22c5f4=_0x4deb9c;return!!this['_localStorageService'][_0x22c5f4(0x3db)](_0xd45abf,_0x1c5ca0);}[_0x4deb9c(0x2c8)](_0xc4c36a,_0x58cc49,_0x42ec12,_0x146b43){const _0x2c7d97=_0x4deb9c,_0x50251d=this[_0x2c7d97(0x2af)][_0x2c7d97(0x3a3)](_0xc4c36a);this[_0x2c7d97(0x16f)]['set'](_0xc4c36a,{'unitID':_0xc4c36a,'type':_0x58cc49,'awaitingChangeset':_0x42ec12,'mutations':_0x146b43,'rev':_0x50251d}),this[_0x2c7d97(0x38d)][_0x2c7d97(0x17f)](_0xc4c36a)||this['_scheduleSaving'](_0xc4c36a);}[_0x4deb9c(0x354)](_0x189523){const _0x57c251=_0x4deb9c,_0x36be57=this['_getSaveTimeout']();_0x36be57===0x0?this[_0x57c251(0x1e5)](_0x189523):this['_saveTaskMap'][_0x57c251(0x2b2)](_0x189523,setTimeout(()=>this[_0x57c251(0x1e5)](_0x189523),_0x36be57));}[_0x4deb9c(0x4df)](){const _0x4bac40=_0x4deb9c;var _0x7005d9;return(_0x7005d9=this['_configService'][_0x4bac40(0x2cd)](_0x4c3652))!=null?_0x7005d9:0x3e8;}['_saveCache'](_0x30ac25){const _0x1154d2=_0x4deb9c,_0x552956=this[_0x1154d2(0x38d)][_0x1154d2(0x38c)](_0x30ac25);return _0x552956!==void 0x0&&window[_0x1154d2(0x19e)](_0x552956),this[_0x1154d2(0x496)][_0x1154d2(0x3db)](_0x5cae74(_0x30ac25),this[_0x1154d2(0x16f)][_0x1154d2(0x38c)](_0x30ac25))['then'](()=>this[_0x1154d2(0x38d)]['delete'](_0x30ac25));}async[_0x4deb9c(0x40e)](){const _0x24ebaf=_0x4deb9c,_0x4d6198=[];this[_0x24ebaf(0x38d)][_0x24ebaf(0x4cc)]((_0x155847,_0x197250)=>{const _0x17d87c=_0x24ebaf;window[_0x17d87c(0x19e)](_0x155847),_0x4d6198[_0x17d87c(0x4c0)](this[_0x17d87c(0x1e5)](_0x197250)[_0x17d87c(0x15b)](()=>{const _0x2a821e=_0x17d87c;this[_0x2a821e(0x38d)][_0x2a821e(0x312)](_0x197250);}));}),await Promise['all'](_0x4d6198);}[_0x4deb9c(0x4d0)](){const _0x2e0ec8=_0x4deb9c;this[_0x2e0ec8(0x446)](this['_beforeCloseService'][_0x2e0ec8(0x292)](()=>{const _0x3a275d=_0x2e0ec8;if(this[_0x3a275d(0x38d)][_0x3a275d(0x23b)])return this[_0x3a275d(0x182)]['t'](_0x3a275d(0x209));}));}},_0x3723aa[_0x4deb9c(0x1d5)]=_0x564be3([_0x99bb1b(0x0,_0x44f3cf[_0x4deb9c(0x150)]),_0x99bb1b(0x1,_0x44f3cf[_0x4deb9c(0x2ee)]),_0x99bb1b(0x2,_0x90d6c1[_0x4deb9c(0x27d)]),_0x99bb1b(0x3,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x440)])),_0x99bb1b(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399[_0x4deb9c(0x3b2)]))],_0x3723aa[_0x4deb9c(0x1d5)]);function _0x5cae74(_0x52a918){const _0x3340f6=_0x4deb9c;return _0x3340f6(0x45c)+_0x52a918;}var _0x430a8d=Object['defineProperty'],_0x29db52=Object['getOwnPropertyDescriptor'],_0x22a330=(_0x588d1e,_0x37a8ca,_0x1b125a,_0x28408)=>{const _0x2dafcd=_0x4deb9c;for(var _0x227644=_0x28408>0x1?void 0x0:_0x28408?_0x29db52(_0x37a8ca,_0x1b125a):_0x37a8ca,_0x3de7f1=_0x588d1e[_0x2dafcd(0x17a)]-0x1,_0x3a08a2;_0x3de7f1>=0x0;_0x3de7f1--)(_0x3a08a2=_0x588d1e[_0x3de7f1])&&(_0x227644=(_0x28408?_0x3a08a2(_0x37a8ca,_0x1b125a,_0x227644):_0x3a08a2(_0x227644))||_0x227644);return _0x28408&&_0x227644&&_0x430a8d(_0x37a8ca,_0x1b125a,_0x227644),_0x227644;},_0xc37208=(_0x269b7b,_0x36cdcc)=>(_0x5134f2,_0x3578dc)=>_0x36cdcc(_0x5134f2,_0x3578dc,_0x269b7b);function _0x3ff505(_0x867f1d){const _0x5390e6=_0x4deb9c,{unitID:_0x2cee13,mutations:_0x3fc665}=_0x867f1d;return{'unitId':_0x2cee13,'subUnitId':_0x3fc665[0x0]['params'][_0x5390e6(0x1cd)]};}let _0x356d67=class{constructor(_0x3c343e,_0x582672,_0x500f50){const _0x106713=_0x4deb9c;this[_0x106713(0x25f)]=_0x3c343e,this[_0x106713(0x3c2)]=_0x582672,this[_0x106713(0x4b9)]=_0x500f50;}[_0x4deb9c(0x3f8)](_0x42428a){const _0xcd4eb8=_0x4deb9c;var _0x3e1556,_0x5f0575,_0x58e004,_0x3a60b3,_0x350f45;const _0x499684=this[_0xcd4eb8(0x25f)][_0xcd4eb8(0x38c)](_0x5848ce['SheetsSelectionsService']),{unitId:_0x5ecfc1,subUnitId:_0x2543c7}=_0x3ff505(_0x42428a),_0x3501ef=_0x499684[_0xcd4eb8(0x4fa)](_0x5ecfc1)[_0xcd4eb8(0x141)](),_0xecac5a=(_0x5f0575=(_0x3e1556=this[_0xcd4eb8(0x4b9)][_0xcd4eb8(0x100)](_0x5ecfc1))==null?void 0x0:_0x3e1556[_0xcd4eb8(0x4c5)]())==null?void 0x0:_0x5f0575[_0xcd4eb8(0x456)]();if(_0x3501ef[_0xcd4eb8(0x17a)]===0x0||!_0x5ecfc1||!_0x2543c7)return;const _0x5af539=[{'id':_0x5848ce[_0xcd4eb8(0x3b8)]['id'],'params':{'unitId':_0x5ecfc1,'subUnitId':_0xecac5a,'selections':_0x44f3cf[_0xcd4eb8(0x45a)][_0xcd4eb8(0x2c4)](_0x3501ef)}}],_0x277ebe=this[_0xcd4eb8(0x3c2)][_0xcd4eb8(0x394)](_0x42428a,_0x5af539);if(!_0x5c3399[_0xcd4eb8(0x264)](_0x277ebe))throw _0x277ebe[_0xcd4eb8(0x46e)];const _0x37bf84=(_0x350f45=(_0x3a60b3=(_0x58e004=_0x277ebe[_0xcd4eb8(0x499)][0x0])==null?void 0x0:_0x58e004[_0xcd4eb8(0x3fd)])==null?void 0x0:_0x3a60b3[_0xcd4eb8(0x34d)])!=null?_0x350f45:_0x3501ef;Array[_0xcd4eb8(0x4be)](_0x37bf84)&&_0x37bf84[_0xcd4eb8(0x17a)]&&this['_injector'][_0xcd4eb8(0x38c)](_0x44f3cf[_0xcd4eb8(0x243)])[_0xcd4eb8(0x450)](_0x5848ce['SetSelectionsOperation']['id'],{'unitId':_0x5ecfc1,'subUnitId':_0x2543c7,'selections':_0x37bf84});}};_0x356d67=_0x22a330([_0xc37208(0x0,_0x44f3cf['Inject'](_0x44f3cf[_0x4deb9c(0x483)])),_0xc37208(0x1,_0x5c3399[_0x4deb9c(0x453)]),_0xc37208(0x2,_0x44f3cf[_0x4deb9c(0x165)])],_0x356d67);const _0x27229c=_0x44f3cf[_0x4deb9c(0x1e3)](_0x4deb9c(0x332));var _0x14af59=(_0x220786=>(_0x220786[_0x220786[_0x4deb9c(0x2a9)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x220786[_0x220786[_0x4deb9c(0x270)]=0x1]=_0x4deb9c(0x270),_0x220786))(_0x14af59||{});const _0x27b9ff=0x7530,_0x34df9e=_0x4deb9c(0x183);class _0x19a53f extends _0x44f3cf['Disposable']{constructor(){const _0x3fe698=_0x4deb9c;super(),_0x434a2a(this,_0x3fe698(0x331),_0x44f3cf[_0x3fe698(0x45a)][_0x3fe698(0x4f7)]()),_0x434a2a(this,_0x3fe698(0x158),new Set()),_0x434a2a(this,_0x3fe698(0x36c),new Map()),_0x434a2a(this,_0x3fe698(0x488),null),_0x434a2a(this,_0x3fe698(0x18e),new Map()),_0x434a2a(this,_0x3fe698(0x280),new Map()),this[_0x3fe698(0x4fb)]();}['dispose'](){const _0x52591b=_0x4deb9c;super[_0x52591b(0x241)](),this['_clearOtherTimers'][_0x52591b(0x4cc)]((_0x417abc,_0x71dc0)=>this['_removeClearOtherTimer'](_0x71dc0)),this[_0x52591b(0x488)]&&window[_0x52591b(0x2ac)](this[_0x52591b(0x488)]);}[_0x4deb9c(0x1ea)](_0x759504){const _0x412b99=_0x4deb9c;return this['_ensureSubject'](_0x759504)[_0x412b99(0x4f9)](_0x1837c6[_0x412b99(0x4bf)]());}['editingUnit'](_0x9e4c5d){const _0x2c368b=_0x4deb9c;this[_0x2c368b(0x158)][_0x2c368b(0x23b)]===0x0&&this[_0x2c368b(0x4b0)](),this[_0x2c368b(0x158)]['add'](_0x9e4c5d),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x9e4c5d],'isForwarded':!0x1});}['disposeUnit'](_0x2ce064){const _0x12ce25=_0x4deb9c;this[_0x12ce25(0x158)][_0x12ce25(0x312)](_0x2ce064),this['_selfUnitIDs'][_0x12ce25(0x23b)]===0x0&&this[_0x12ce25(0x488)]&&window[_0x12ce25(0x2ac)](this[_0x12ce25(0x488)]);}[_0x4deb9c(0x4fb)](){const _0x1c325e=_0x4deb9c;this[_0x1c325e(0x446)](_0x44f3cf[_0x1c325e(0x133)](_0x1837c6[_0x1c325e(0x4db)](window,_0x1c325e(0x188))[_0x1c325e(0x138)](_0x37e158=>{const _0x3b14a6=_0x1c325e;if(_0x37e158[_0x3b14a6(0x2e0)]!==_0x34df9e||!_0x37e158['newValue'])return;const _0x458366=JSON[_0x3b14a6(0x4ab)](_0x37e158['newValue']);this['_handleEvent'](_0x458366);}))),window[_0x1c325e(0x168)](_0x1c325e(0x3e3),()=>this[_0x1c325e(0x352)]({'type':0x1,'memberID':this[_0x1c325e(0x331)],'unitIDs':Array[_0x1c325e(0x4de)](this[_0x1c325e(0x158)])}));}[_0x4deb9c(0x3bc)](_0x570ed5){const _0x6d299e=_0x4deb9c;switch(_0x570ed5[_0x6d299e(0x4f1)]){case 0x0:this['_handleJoinEvent'](_0x570ed5);break;case 0x1:this[_0x6d299e(0x123)](_0x570ed5);break;case 0x2:this[_0x6d299e(0x132)](_0x570ed5);break;}}[_0x4deb9c(0x26c)](_0x3ff48c){const _0x500b02=_0x4deb9c,{unitIDs:_0x1431b8,memberID:_0x53cb24,isForwarded:_0x4ba938}=_0x3ff48c;_0x1431b8[_0x500b02(0x4cc)](_0x23e4d1=>{const _0xabb020=_0x500b02;if(!_0x4ba938&&this[_0xabb020(0x36c)]['has'](_0x23e4d1)&&this[_0xabb020(0x3c3)](_0x23e4d1)[_0xabb020(0x3e8)](0x1),!this['_unitOnClients']['has'](_0x23e4d1)||!this[_0xabb020(0x36c)][_0xabb020(0x38c)](_0x23e4d1)[_0xabb020(0x17f)](_0x53cb24)){const _0x1df859=this[_0xabb020(0x36c)][_0xabb020(0x38c)](_0x23e4d1)||new Set();_0x1df859[_0xabb020(0x117)](_0x53cb24),this[_0xabb020(0x36c)][_0xabb020(0x2b2)](_0x23e4d1,_0x1df859),this['_scheduleClearOtherTimer'](_0x53cb24);}}),_0x4ba938||this[_0x500b02(0x352)]({'type':0x0,'memberID':this[_0x500b02(0x331)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x32c2cd){const _0x1ddd7a=_0x4deb9c;this['_removeClearOtherTimer'](_0x32c2cd);const _0x32e55b=window[_0x1ddd7a(0x479)](()=>{const _0x36fce2=_0x1ddd7a;this[_0x36fce2(0x36c)][_0x36fce2(0x4cc)](_0xc087a5=>{const _0x4c1b78=_0x36fce2;_0xc087a5[_0x4c1b78(0x312)](_0x32c2cd);});},_0x27b9ff*0x2);this[_0x1ddd7a(0x18e)]['set'](_0x32c2cd,_0x32e55b);}[_0x4deb9c(0x2ef)](_0x1558ac){const _0x19dba9=_0x4deb9c;if(this[_0x19dba9(0x18e)]['has'](_0x1558ac)){const _0x2c512c=this[_0x19dba9(0x18e)][_0x19dba9(0x38c)](_0x1558ac);_0x2c512c&&window[_0x19dba9(0x19e)](_0x2c512c),this[_0x19dba9(0x18e)][_0x19dba9(0x2b2)](_0x1558ac,null);}}[_0x4deb9c(0x123)](_0x8dd8d9){const _0x3f66b5=_0x4deb9c,{memberID:_0x5e6f45,unitIDs:_0x181f5e}=_0x8dd8d9;_0x181f5e[_0x3f66b5(0x4cc)](_0x1876f8=>{const _0x323530=_0x3f66b5;var _0x2b4621;const _0x3b8133=this[_0x323530(0x36c)][_0x323530(0x38c)](_0x1876f8);_0x3b8133&&(_0x3b8133['delete'](_0x5e6f45),(_0x2b4621=this[_0x323530(0x3c3)](_0x1876f8))==null||_0x2b4621[_0x323530(0x3e8)](_0x3b8133[_0x323530(0x23b)]===0x0?0x0:0x1));}),this[_0x3f66b5(0x2ef)](_0x5e6f45);}['_handleHeartbeatEvent'](_0x4829c2){const _0x2272e7=_0x4deb9c;this[_0x2272e7(0x170)](_0x4829c2[_0x2272e7(0x217)]);}[_0x4deb9c(0x352)](_0x148dfa){const _0xf62a57=_0x4deb9c;localStorage[_0xf62a57(0x3db)](_0x34df9e,JSON['stringify'](_0x148dfa));}[_0x4deb9c(0x4b0)](){const _0x1e5b12=_0x4deb9c;this['_heartbeatTimer']=window[_0x1e5b12(0x4c9)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},_0x27b9ff);}[_0x4deb9c(0x3c3)](_0x18c19f){const _0x3d62e4=_0x4deb9c;return this[_0x3d62e4(0x280)][_0x3d62e4(0x17f)](_0x18c19f)||this[_0x3d62e4(0x280)][_0x3d62e4(0x2b2)](_0x18c19f,new _0x1837c6['BehaviorSubject'](0x0)),this[_0x3d62e4(0x280)][_0x3d62e4(0x38c)](_0x18c19f);}}function _0x540863(_0x5539a6){const _0x104b5c=_0x4deb9c;let _0x20984c='';for(const _0x344eb8 of _0x5539a6){const {startOffset:_0x466a45,endOffset:_0x3389a5,isActive:_0x53e0e6}=_0x344eb8;_0x20984c[_0x104b5c(0x17a)]&&(_0x20984c+=','),_0x20984c+=_0x466a45+':'+_0x3389a5+':'+(_0x53e0e6?'1':'0');}return _0x20984c;}function _0x58a905(_0x4036a8){const _0x29071c=_0x4deb9c,_0x9e0e88=_0x4036a8['split'](','),_0x51486d=[];for(const _0x5190c5 of _0x9e0e88){const [_0x263eba,_0x47c492,_0x28e8d4]=_0x5190c5['split'](':');_0x51486d[_0x29071c(0x4c0)]({'startOffset':Number(_0x263eba),'endOffset':Number(_0x47c492),'collapsed':_0x263eba===_0x47c492,'isActive':_0x28e8d4==='1'});}return _0x51486d[_0x29071c(0x50c)](_0x99ea32=>_0x99ea32[_0x29071c(0x2d5)])||(_0x51486d[0x0][_0x29071c(0x2d5)]=!0x0),_0x51486d;}class _0x47cf83 extends _0x44f3cf[_0x4deb9c(0x48b)]{constructor(){const _0x18e5e6=_0x4deb9c;super(...arguments),_0x434a2a(this,_0x18e5e6(0x392),new _0x1837c6[(_0x18e5e6(0x17d))](null)),_0x434a2a(this,_0x18e5e6(0x14b),this[_0x18e5e6(0x392)]['asObservable']());}[_0x4deb9c(0x2ca)](_0x2967e1){const _0x404b6b=_0x4deb9c,{unitID:_0x29f118,memberID:_0x31fd24,textRanges:_0x9934a5}=_0x2967e1,_0x4d03be=_0x540863(_0x9934a5),_0x4e13ca={'unitID':_0x29f118,'memberID':_0x31fd24,'selection':_0x4d03be};this[_0x404b6b(0x392)]['next'](_0x4e13ca);}}var _0x248887=Object[_0x4deb9c(0x4f6)],_0x4d0ba3=Object[_0x4deb9c(0x3d9)],_0x10db0d=(_0x46f1f5,_0x3da4f0,_0x47ea89,_0x11e717)=>{const _0x11ff1d=_0x4deb9c;for(var _0x32dc79=_0x11e717>0x1?void 0x0:_0x11e717?_0x4d0ba3(_0x3da4f0,_0x47ea89):_0x3da4f0,_0x388655=_0x46f1f5[_0x11ff1d(0x17a)]-0x1,_0x2eb188;_0x388655>=0x0;_0x388655--)(_0x2eb188=_0x46f1f5[_0x388655])&&(_0x32dc79=(_0x11e717?_0x2eb188(_0x3da4f0,_0x47ea89,_0x32dc79):_0x2eb188(_0x32dc79))||_0x32dc79);return _0x11e717&&_0x32dc79&&_0x248887(_0x3da4f0,_0x47ea89,_0x32dc79),_0x32dc79;},_0xe82381=(_0x182c57,_0x16851e)=>(_0x57bee1,_0x4d3073)=>_0x16851e(_0x57bee1,_0x4d3073,_0x182c57);let _0x2c5796=class{constructor(_0x659310,_0x5c09c6){const _0x5c0175=_0x4deb9c;this[_0x5c0175(0x25f)]=_0x659310,this['_transformService']=_0x5c09c6;}['transformSelections'](_0x50d82f){const _0x399978=_0x4deb9c;var _0x193442;const _0x57f499=this['_injector'][_0x399978(0x38c)](_0x495201[_0x399978(0x432)]),_0x443bd3=(_0x193442=_0x57f499[_0x399978(0x21f)]())!=null?_0x193442:[];if(_0x443bd3['length']===0x0)return;const _0x38508a=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x50d82f[_0x399978(0x282)],'actions':null,'textRanges':_0x443bd3}}],_0x4f804b=this['_transformService']['transformMutationsWithChangeset'](_0x50d82f,_0x38508a);if(!_0x5c3399[_0x399978(0x264)](_0x4f804b))throw _0x4f804b[_0x399978(0x46e)];const _0xa68ee=_0x4f804b[_0x399978(0x499)][0x0][_0x399978(0x3fd)][_0x399978(0x23f)];Array['isArray'](_0xa68ee)&&_0xa68ee[_0x399978(0x17a)]&&_0x57f499[_0x399978(0x314)](_0xa68ee,!0x1);}};_0x2c5796=_0x10db0d([_0xe82381(0x0,_0x44f3cf['Inject'](_0x44f3cf[_0x4deb9c(0x483)])),_0xe82381(0x1,_0x5c3399[_0x4deb9c(0x453)])],_0x2c5796);const _0x3f0bb1=new Set([_0x5848ce[_0x4deb9c(0x45d)]['id']]);function _0x12777d(_0x1241bd,_0x212f45,_0x538879,_0x11391a,_0x34f810){const _0x5c2eef=_0x4deb9c;var _0x4c0309,_0x299771,_0x4df2c0,_0x446caa;const _0x533f94=[];for(const _0x1bfb68 of _0x1241bd)if(_0x3f0bb1[_0x5c2eef(0x17f)](_0x1bfb68['id'])){if(_0x533f94[_0x5c2eef(0x17a)]>0x0)break;_0x533f94['push'](_0x1bfb68);break;}else _0x533f94[_0x5c2eef(0x4c0)](_0x1bfb68);const _0x2997f0=(_0x299771=(_0x4c0309=_0x34f810[_0x5c2eef(0x2d2)]())==null?void 0x0:_0x4c0309[_0x5c2eef(0x12f)])!=null?_0x299771:_0x5c2eef(0x273),_0x63ccfe=(_0x446caa=(_0x4df2c0=_0x34f810[_0x5c2eef(0x2d2)]())==null?void 0x0:_0x4df2c0['memberID'])!=null?_0x446caa:_0x5c2eef(0x273);return{'changeset':{'unitID':_0x212f45,'type':_0x5c3399['mapDocumentTypeToUniverType'](_0x538879[_0x5c2eef(0x175)](_0x212f45)),'baseRev':_0x11391a[_0x5c2eef(0x3a3)](_0x212f45),'revision':0x0,'userID':_0x2997f0,'memberID':_0x63ccfe,'mutations':_0x533f94},'pendingMutations':_0x1241bd[_0x5c2eef(0x2fa)](_0x533f94[_0x5c2eef(0x17a)])};}function _0x125c7e(_0x33725d,_0x476e04,_0x4e4ce5,_0x227bdd,_0x423e30){const _0x47d668=_0x4deb9c;var _0xb9ae40,_0x1bac5f,_0x2668f,_0x3db905;const _0x2c69e0=[_0x33725d['reduce']((_0x3dd6a5,_0x15fa9e)=>{const _0x40ff8d=_0x47c1;var _0x5a3381;const {id:_0x2f1182}=_0x3dd6a5,{id:_0x540bbe,type:_0x757b90}=_0x15fa9e,_0x136c36=(_0x5a3381=_0x3dd6a5['params'])!=null?_0x5a3381:{'actions':null},_0x37ca9c=_0x15fa9e[_0x40ff8d(0x3fd)];if(_0x2f1182&&_0x2f1182!==_0x540bbe)throw new Error(_0x40ff8d(0x41d)+_0x2f1182+_0x40ff8d(0x293)+_0x540bbe+'.');return{..._0x3dd6a5,'id':_0x540bbe,'type':_0x757b90,'params':{'unitId':_0x37ca9c[_0x40ff8d(0x380)],'textRanges':_0x37ca9c[_0x40ff8d(0x23f)],'actions':_0x44f3cf[_0x40ff8d(0x44c)]['compose'](_0x136c36['actions'],_0x37ca9c[_0x40ff8d(0x3fe)])}};},{})],_0xa348cb=(_0x1bac5f=(_0xb9ae40=_0x423e30['getCurrentUser']())==null?void 0x0:_0xb9ae40[_0x47d668(0x12f)])!=null?_0x1bac5f:_0x47d668(0x273),_0x4e50bf=(_0x3db905=(_0x2668f=_0x423e30[_0x47d668(0x2d2)]())==null?void 0x0:_0x2668f[_0x47d668(0x217)])!=null?_0x3db905:_0x47d668(0x273);return{'changeset':{'unitID':_0x476e04,'type':_0x5c3399[_0x47d668(0x205)](_0x4e4ce5[_0x47d668(0x175)](_0x476e04)),'baseRev':_0x227bdd['getCurrentRevForDocument'](_0x476e04),'revision':0x0,'userID':_0xa348cb,'memberID':_0x4e50bf,'mutations':_0x2c69e0},'pendingMutations':[]};}const _0x4f7f45={'id':_0x5848ce[_0x4deb9c(0x139)]['id'],'type':_0x44f3cf['CommandType'][_0x4deb9c(0x3b0)],'params':{}};var _0x56aa93=Object['defineProperty'],_0x8750b4=Object['getOwnPropertyDescriptor'],_0x2bdc29=(_0x471ef3,_0x7fcaa1,_0x28ed6c,_0x342e67)=>{for(var _0x1b799c=_0x342e67>0x1?void 0x0:_0x342e67?_0x8750b4(_0x7fcaa1,_0x28ed6c):_0x7fcaa1,_0x3f6b66=_0x471ef3['length']-0x1,_0x5dd859;_0x3f6b66>=0x0;_0x3f6b66--)(_0x5dd859=_0x471ef3[_0x3f6b66])&&(_0x1b799c=(_0x342e67?_0x5dd859(_0x7fcaa1,_0x28ed6c,_0x1b799c):_0x5dd859(_0x1b799c))||_0x1b799c);return _0x342e67&&_0x1b799c&&_0x56aa93(_0x7fcaa1,_0x28ed6c,_0x1b799c),_0x1b799c;},_0x56d55b=(_0x339f58,_0x29c2c0)=>(_0x37f78a,_0x5349d8)=>_0x29c2c0(_0x37f78a,_0x5349d8,_0x339f58),_0x1a5e20=(_0x376ebe=>(_0x376ebe['NOT_COLLAB']='not_collab',_0x376ebe['SYNCED']=_0x4deb9c(0x2a8),_0x376ebe[_0x4deb9c(0x3ff)]='pending',_0x376ebe[_0x4deb9c(0x224)]='awaiting',_0x376ebe['AWAITING_WITH_PENDING']=_0x4deb9c(0x3a9),_0x376ebe[_0x4deb9c(0x28a)]=_0x4deb9c(0x4d9),_0x376ebe[_0x4deb9c(0x3d2)]='conflict',_0x376ebe[_0x4deb9c(0x135)]=_0x4deb9c(0x143),_0x376ebe))(_0x1a5e20||{});class _0x53c60b{constructor(_0xd1865d,_0x144aee,_0x36d06d,_0x184ff7,_0x9e161f,_0x377714,_0x286db7,_0x5eb5d4,_0x702fcf){const _0x164e07=_0x4deb9c;_0x434a2a(this,_0x164e07(0x12d),null),_0x434a2a(this,'_pendingMutations',[]),(this['unitID']=_0xd1865d,this['type']=_0x144aee,this['_handler']=_0x9e161f,this['_commandService']=_0x377714,this[_0x164e07(0x3ef)]=_0x286db7,this[_0x164e07(0x2af)]=_0x5eb5d4,this[_0x164e07(0x3d7)]=_0x702fcf,this[_0x164e07(0x12d)]=_0x36d06d,this[_0x164e07(0x268)]=_0x184ff7);}[_0x4deb9c(0x2d4)](_0x4d745a){const _0x3adc43=_0x4deb9c,_0x362aa8=this[_0x3adc43(0x2af)][_0x3adc43(0x3a3)](this['unitID']);return _0x4d745a[_0x3adc43(0x194)]>_0x362aa8+0x1?(this[_0x3adc43(0x323)][_0x3adc43(0x32f)]({'from':_0x362aa8,'to':_0x4d745a[_0x3adc43(0x194)]-0x1}),!0x0):!0x1;}[_0x4deb9c(0x309)](_0x2f5d43){const _0x4b2c97=_0x4deb9c;this[_0x4b2c97(0x3ef)][_0x4b2c97(0x24a)](this[_0x4b2c97(0x282)],_0x2f5d43);}['_transformSelections'](_0x5a10d1){const _0x3e34b8=_0x4deb9c;var _0x254788,_0x56f793;(_0x56f793=(_0x254788=this[_0x3e34b8(0x323)])[_0x3e34b8(0x49c)])==null||_0x56f793[_0x3e34b8(0x2d0)](_0x254788,_0x5a10d1);}[_0x4deb9c(0x4d2)](_0x4f474c){const _0x10d8ac=_0x4deb9c;var _0x57d24a,_0x429985;return(_0x429985=(_0x57d24a=this[_0x10d8ac(0x323)])['onTransformIME'])==null?void 0x0:_0x429985[_0x10d8ac(0x2d0)](_0x57d24a,_0x4f474c);}[_0x4deb9c(0x436)](_0x2848d9){const _0x319755=_0x4deb9c;var _0x5e75fe,_0x31a45f,_0x137cb4;return(_0x137cb4=(_0x31a45f=(_0x5e75fe=this[_0x319755(0x323)])[_0x319755(0x37f)])==null?void 0x0:_0x31a45f['call'](_0x5e75fe,_0x2848d9))!=null?_0x137cb4:_0x2848d9;}['_syncEditingCollabCursor'](_0x5dfd65){const _0x40cd04=_0x4deb9c;var _0x2deeed,_0x5efea7;if(this[_0x40cd04(0x4f1)]===_0x3bfee1[_0x40cd04(0x350)]){const {unitID:_0x49f99b,mutations:_0x5d35e6,memberID:_0x177f7a}=_0x5dfd65,_0x55a583=_0x5d35e6[0x0]['params'][_0x40cd04(0x23f)];Array[_0x40cd04(0x4be)](_0x55a583)&&_0x55a583[_0x40cd04(0x17a)]>0x0&&((_0x5efea7=(_0x2deeed=this[_0x40cd04(0x323)])[_0x40cd04(0x2da)])==null||_0x5efea7[_0x40cd04(0x2d0)](_0x2deeed,{'unitID':_0x49f99b,'memberID':_0x177f7a,'textRanges':_0x55a583}));}}[_0x4deb9c(0x2f9)](){const _0x425173=_0x4deb9c;this['_localCacheService'][_0x425173(0x2c8)](this[_0x425173(0x282)],this['type'],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x4deb9c(0x3c4)](){const _0x2ecc2d=_0x4deb9c;return this[_0x2ecc2d(0x2af)][_0x2ecc2d(0x3a3)](this[_0x2ecc2d(0x282)]);}[_0x4deb9c(0x1b9)](){const _0x3cf11f=_0x4deb9c;this[_0x3cf11f(0x2af)][_0x3cf11f(0x25a)](this[_0x3cf11f(0x282)]);}[_0x4deb9c(0x261)](_0x5c6b00){const _0x5f3960=_0x4deb9c;var _0x5a5184;const _0x7c0eea=this['_transformRemoteChangesetByIMECache'](_0x5c6b00),_0xdc0312=_0x44f3cf[_0x5f3960(0x274)](_0x7c0eea[_0x5f3960(0x367)],this[_0x5f3960(0x484)],{'fromCollab':!0x0});if(!_0xdc0312[_0x5f3960(0x1a0)])throw _0xdc0312[_0x5f3960(0x46e)]instanceof Error?_0xdc0312[_0x5f3960(0x46e)]:new Error((_0x5a5184=_0xdc0312[_0x5f3960(0x46e)])!=null?_0x5a5184:_0x5f3960(0x208));this['_transformIMECache'](_0x7c0eea),this['_transformUndoredo'](_0x5c6b00),this[_0x5f3960(0x1db)](_0x7c0eea),this[_0x5f3960(0x319)](_0x7c0eea),this[_0x5f3960(0x1b9)]();}}let _0x194137=class extends _0x53c60b{constructor(_0x57ec75,_0x4c85a6,_0x2a8a62,_0x4ba491,_0x394259,_0x575693,_0x16ed64,_0x5461db,_0x12a7ca,_0x292bb2){const _0x481bee=_0x4deb9c;super(_0x57ec75,_0x4c85a6,null,[],_0x2a8a62,_0x5461db,_0x16ed64,_0x4ba491,_0x394259),_0x434a2a(this,_0x481bee(0x111),_0x481bee(0x2a8)),(this[_0x481bee(0x25f)]=_0x575693,this[_0x481bee(0x1aa)]=_0x12a7ca,this[_0x481bee(0x3c2)]=_0x292bb2);}[_0x4deb9c(0x295)](_0x8f2bbf){const _0x2569a0=_0x4deb9c,_0x465742=this[_0x2569a0(0x25f)][_0x2569a0(0x427)](_0x418dd0,this['unitID'],this['type'],[_0x8f2bbf],this['_handler']);return _0x465742[_0x2569a0(0x445)](),_0x465742[_0x2569a0(0x2f9)](),_0x465742;}[_0x4deb9c(0x25e)](_0x4b5153){const _0x4eff70=_0x4deb9c;if(this['_checkMissing'](_0x4b5153))return this[_0x4eff70(0x25f)][_0x4eff70(0x427)](_0x3ae8e5,this[_0x4eff70(0x282)],this[_0x4eff70(0x4f1)],null,[],null,[_0x4b5153],this[_0x4eff70(0x323)]);try{const _0x3d16a1=this['_transformService'][_0x4eff70(0x394)](_0x4b5153,[_0x4f7f45]);if(_0x5c3399[_0x4eff70(0x264)](_0x3d16a1)){const {c1Prime:_0x539027}=_0x3d16a1;return this[_0x4eff70(0x261)](_0x539027),this;}throw _0x3d16a1[_0x4eff70(0x46e)];}catch(_0x9d7d3c){return this[_0x4eff70(0x1aa)][_0x4eff70(0x46e)](_0x9d7d3c),this[_0x4eff70(0x411)](!0x1);}}[_0x4deb9c(0x411)](_0x3afa00){const _0x48ae2f=_0x4deb9c;return this['_injector'][_0x48ae2f(0x427)](_0x39b563,this[_0x48ae2f(0x282)],this[_0x48ae2f(0x4f1)],null,[],this[_0x48ae2f(0x323)],_0x3afa00);}[_0x4deb9c(0x304)](){const _0x5c6774=_0x4deb9c;throw new Error(_0x5c6774(0x503));}[_0x4deb9c(0x4d8)](){const _0x11b71c=_0x4deb9c;throw new Error(_0x11b71c(0x4b5));}[_0x4deb9c(0x476)](){const _0x5ee75d=_0x4deb9c;return this['_injector'][_0x5ee75d(0x427)](_0x4fba74,this[_0x5ee75d(0x282)],this[_0x5ee75d(0x4f1)],null,[],this[_0x5ee75d(0x323)]);}[_0x4deb9c(0x335)](){return this;}[_0x4deb9c(0x4e0)](){const _0x214a8f=_0x4deb9c;throw new Error(_0x214a8f(0x426));}[_0x4deb9c(0x1e4)](){const _0x1b1273=_0x4deb9c,_0x4d495f=this[_0x1b1273(0x2af)][_0x1b1273(0x3a3)](this[_0x1b1273(0x282)]);return this[_0x1b1273(0x323)]['onMissingChangesets']({'from':_0x4d495f,'to':0x0}),this[_0x1b1273(0x25f)][_0x1b1273(0x427)](_0x3ae8e5,this[_0x1b1273(0x282)],this[_0x1b1273(0x4f1)],null,[],null,[],this[_0x1b1273(0x323)]);}};_0x194137=_0x2bdc29([_0x56d55b(0x3,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399['RevisionService'])),_0x56d55b(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x1d5)])),_0x56d55b(0x5,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf['Injector'])),_0x56d55b(0x6,_0x44f3cf[_0x4deb9c(0x4b7)]),_0x56d55b(0x7,_0x44f3cf['ICommandService']),_0x56d55b(0x8,_0x44f3cf['ILogService']),_0x56d55b(0x9,_0x5c3399[_0x4deb9c(0x453)])],_0x194137);let _0x418dd0=class extends _0x53c60b{constructor(_0x5b92ae,_0x2c68ab,_0x187e22,_0x6d6f01,_0x6bb04d,_0x2563a5,_0x4c20d8,_0x42205b,_0x39717b,_0x354ee1,_0x4995e4,_0x5be3af,_0x15b5bd,_0x4ef6c3){const _0x352b27=_0x4deb9c;super(_0x5b92ae,_0x2c68ab,null,_0x187e22,_0x6d6f01,_0x354ee1,_0x4ef6c3,_0x2563a5,_0x4c20d8),_0x434a2a(this,_0x352b27(0x111),_0x352b27(0x14f)),_0x434a2a(this,_0x352b27(0x3cd),null),_0x434a2a(this,'_sendingTimer',null),(this[_0x352b27(0x25f)]=_0x6bb04d,this[_0x352b27(0x4d4)]=_0x42205b,this[_0x352b27(0x1aa)]=_0x39717b,this[_0x352b27(0x494)]=_0x4995e4,this[_0x352b27(0x3c2)]=_0x5be3af,this[_0x352b27(0x391)]=_0x15b5bd);}[_0x4deb9c(0x295)](_0x1a7e02){const _0x185825=_0x4deb9c;return this[_0x185825(0x268)][_0x185825(0x4c0)](_0x1a7e02),this[_0x185825(0x2f9)](),this;}[_0x4deb9c(0x25e)](_0x259c52){const _0x430cb0=_0x4deb9c;if(this[_0x430cb0(0x2d4)](_0x259c52))return this[_0x430cb0(0x1ee)](),this[_0x430cb0(0x25f)][_0x430cb0(0x427)](_0x3ae8e5,this['unitID'],this[_0x430cb0(0x4f1)],null,this[_0x430cb0(0x268)],null,[_0x259c52],this['_handler']);try{const _0x166e37=this[_0x430cb0(0x3c2)][_0x430cb0(0x394)](_0x259c52,this[_0x430cb0(0x268)]);if(_0x5c3399[_0x430cb0(0x264)](_0x166e37)){const {c1Prime:_0x577411,m2Prime:_0x2d4e5f}=_0x166e37;this[_0x430cb0(0x261)](_0x577411);const _0xf6a588=this['_injector'][_0x430cb0(0x427)](_0x418dd0,this['unitID'],this[_0x430cb0(0x4f1)],_0x2d4e5f,this[_0x430cb0(0x323)]);return this[_0x430cb0(0x1ee)](),_0xf6a588[_0x430cb0(0x445)](this['_scheduleTimestamp']?Math[_0x430cb0(0x43d)](0x0,new Date()[_0x430cb0(0x2bf)]()-this['_scheduleTimestamp']):this[_0x430cb0(0x472)]()),_0xf6a588;}throw _0x166e37[_0x430cb0(0x46e)];}catch(_0x4b3d0c){return this[_0x430cb0(0x1aa)][_0x430cb0(0x46e)](_0x4b3d0c),this[_0x430cb0(0x411)](!0x1);}}[_0x4deb9c(0x304)](){const _0x2a50d9=_0x4deb9c;throw new Error(_0x2a50d9(0x154));}[_0x4deb9c(0x4d8)](){const _0x361fc0=_0x4deb9c;throw new Error(_0x361fc0(0x1e1));}[_0x4deb9c(0x476)](){const _0x297bf5=_0x4deb9c;return this[_0x297bf5(0x1ee)](),this[_0x297bf5(0x25f)][_0x297bf5(0x427)](_0x4fba74,this[_0x297bf5(0x282)],this['type'],null,this[_0x297bf5(0x268)],this[_0x297bf5(0x323)]);}['toggleOnline'](){return this;}['_schedule'](_0x235cee){const _0x26c49f=_0x4deb9c,_0x1bef23=_0x235cee!=null?_0x235cee:this[_0x26c49f(0x472)]();this[_0x26c49f(0x3cd)]=new Date()['getTime'](),this[_0x26c49f(0x1ae)]=window[_0x26c49f(0x479)](()=>{const _0x3f0481=_0x26c49f;this[_0x3f0481(0x1ee)]();let _0x4e63c2=null;switch(this[_0x3f0481(0x4f1)]){case _0x3bfee1[_0x3f0481(0x402)]:{_0x4e63c2=_0x12777d(this[_0x3f0481(0x268)],this[_0x3f0481(0x282)],this[_0x3f0481(0x391)],this[_0x3f0481(0x2af)],this[_0x3f0481(0x4d4)]);break;}case _0x3bfee1[_0x3f0481(0x350)]:{this['_pendingMutations'][_0x3f0481(0x220)](_0x364b01=>_0x364b01['id']===_0x495201[_0x3f0481(0x41b)]['id'])?_0x4e63c2=_0x125c7e(this[_0x3f0481(0x268)],this['unitID'],this[_0x3f0481(0x391)],this[_0x3f0481(0x2af)],this[_0x3f0481(0x4d4)]):_0x4e63c2=_0x12777d(this['_pendingMutations'],this[_0x3f0481(0x282)],this['_univerInstanceService'],this[_0x3f0481(0x2af)],this[_0x3f0481(0x4d4)]);break;}default:throw new Error(_0x3f0481(0x44a)+this[_0x3f0481(0x4f1)]+_0x3f0481(0x21c));}const {changeset:_0x4f6e6b,pendingMutations:_0x62f7f}=_0x4e63c2;this[_0x3f0481(0x323)][_0x3f0481(0x500)](_0x4f6e6b);const _0xea88a2=_0x62f7f[_0x3f0481(0x17a)]?this['_injector'][_0x3f0481(0x427)](_0x29239e,this[_0x3f0481(0x282)],this[_0x3f0481(0x4f1)],_0x4f6e6b,_0x62f7f,this[_0x3f0481(0x323)]):this[_0x3f0481(0x25f)][_0x3f0481(0x427)](_0x2aa63e,this[_0x3f0481(0x282)],this[_0x3f0481(0x4f1)],_0x4f6e6b,this[_0x3f0481(0x323)]);_0xea88a2[_0x3f0481(0x2f9)](),this['_handler'][_0x3f0481(0x4e1)](this,_0xea88a2);},_0x1bef23);}[_0x4deb9c(0x472)](){const _0x85be13=_0x4deb9c;var _0x223516;return(_0x223516=this[_0x85be13(0x494)][_0x85be13(0x2cd)](_0x5bb06f))!=null?_0x223516:0x7d0;}['resend'](){const _0x509854=_0x4deb9c;throw new Error(_0x509854(0x19f));}[_0x4deb9c(0x1ee)](){const _0x527df1=_0x4deb9c;this['_sendingTimer']!=null&&(clearTimeout(this[_0x527df1(0x1ae)]),this[_0x527df1(0x1ae)]=null);}[_0x4deb9c(0x411)](_0x1a19c1){const _0x5d63c0=_0x4deb9c;return this[_0x5d63c0(0x1ee)](),this[_0x5d63c0(0x25f)][_0x5d63c0(0x427)](_0x39b563,this[_0x5d63c0(0x282)],this[_0x5d63c0(0x4f1)],null,this[_0x5d63c0(0x268)],this['_handler'],_0x1a19c1);}};_0x418dd0=_0x2bdc29([_0x56d55b(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x56d55b(0x5,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399[_0x4deb9c(0x3b2)])),_0x56d55b(0x6,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x1d5)])),_0x56d55b(0x7,_0x44f3cf[_0x4deb9c(0x2a6)](_0x32fe7e)),_0x56d55b(0x8,_0x44f3cf[_0x4deb9c(0x4e5)]),_0x56d55b(0x9,_0x44f3cf[_0x4deb9c(0x243)]),_0x56d55b(0xa,_0x44f3cf[_0x4deb9c(0x150)]),_0x56d55b(0xb,_0x5c3399['ITransformService']),_0x56d55b(0xc,_0x44f3cf[_0x4deb9c(0x165)]),_0x56d55b(0xd,_0x44f3cf['IUndoRedoService'])],_0x418dd0);let _0x2aa63e=class extends _0x53c60b{constructor(_0x2f5970,_0x4787f1,_0x31aa39,_0x567fef,_0x48aef9,_0x4a7302,_0x1ada2a,_0x155b5e,_0x92cb76,_0xba4983,_0xbb9d0e){const _0x127b16=_0x4deb9c;super(_0x2f5970,_0x4787f1,_0x31aa39,[],_0x567fef,_0x155b5e,_0xbb9d0e,_0x4a7302,_0x1ada2a),_0x434a2a(this,_0x127b16(0x111),'awaiting'),(this[_0x127b16(0x25f)]=_0x48aef9,this[_0x127b16(0x1aa)]=_0x92cb76,this[_0x127b16(0x3c2)]=_0xba4983);}[_0x4deb9c(0x295)](_0x5f2120){const _0x273784=_0x4deb9c,_0x1c1e1d=this[_0x273784(0x25f)][_0x273784(0x427)](_0x29239e,this[_0x273784(0x282)],this['type'],this['_awaitingChangeset'],[_0x5f2120],this[_0x273784(0x323)]);return _0x1c1e1d['_updateLocalCache'](),_0x1c1e1d;}[_0x4deb9c(0x25e)](_0x32df1e){const _0x52b0db=_0x4deb9c;if(this[_0x52b0db(0x2d4)](_0x32df1e))return this['_injector'][_0x52b0db(0x427)](_0x3ae8e5,this[_0x52b0db(0x282)],this[_0x52b0db(0x4f1)],this[_0x52b0db(0x12d)],[],null,[_0x32df1e],this['_handler']);try{const _0x5b2a16=this[_0x52b0db(0x3c2)][_0x52b0db(0x14e)]([_0x32df1e],[this[_0x52b0db(0x12d)]],!0x1);if(_0x5c3399[_0x52b0db(0x444)](_0x5b2a16)){const {c1Prime:_0x53dd3d,c2Prime:_0x33da9f}=_0x5b2a16;this[_0x52b0db(0x261)](_0x53dd3d[0x0]),_0x33da9f[0x0][_0x52b0db(0x186)]=this[_0x52b0db(0x3c4)]();const _0x4cf54a=this[_0x52b0db(0x25f)][_0x52b0db(0x427)](_0x2aa63e,this[_0x52b0db(0x282)],this[_0x52b0db(0x4f1)],_0x33da9f[0x0],this['_handler']);return _0x4cf54a[_0x52b0db(0x2f9)](),_0x4cf54a;}return this[_0x52b0db(0x411)](!0x1);}catch(_0x101d95){return this[_0x52b0db(0x1aa)][_0x52b0db(0x46e)](_0x101d95),this['_onConflict'](!0x1);}}[_0x4deb9c(0x304)](_0x462100){const _0x2e68c0=_0x4deb9c,_0x1a993b=this[_0x2e68c0(0x2af)][_0x2e68c0(0x3a3)](this['unitID']);if(_0x462100[_0x2e68c0(0x194)]<_0x1a993b-0x1)return this;if(this['_checkMissing'](_0x462100))return this[_0x2e68c0(0x25f)]['createInstance'](_0x3ae8e5,this[_0x2e68c0(0x282)],this[_0x2e68c0(0x4f1)],null,[],this[_0x2e68c0(0x12d)],[],this['_handler']);this[_0x2e68c0(0x1b9)]();const _0x36dce5=this[_0x2e68c0(0x25f)]['createInstance'](_0x194137,this[_0x2e68c0(0x282)],this[_0x2e68c0(0x4f1)],this[_0x2e68c0(0x323)]);return _0x36dce5[_0x2e68c0(0x2f9)](),_0x36dce5;}['onRemoteRej'](_0x285eb7){const _0x469e54=_0x4deb9c;return this['_onConflict'](!!(_0x285eb7!=null&&_0x285eb7[_0x469e54(0x318)]));}['toggleOffline'](){const _0x2354cc=_0x4deb9c;return this['_injector']['createInstance'](_0x4fba74,this[_0x2354cc(0x282)],this['type'],this['_awaitingChangeset'],[],this[_0x2354cc(0x323)]);}[_0x4deb9c(0x335)](){return this;}[_0x4deb9c(0x4e0)](){const _0xc46f5e=_0x4deb9c;this[_0xc46f5e(0x323)][_0xc46f5e(0x500)](this[_0xc46f5e(0x12d)]);}['_onConflict'](_0x23db92){const _0x59eb4a=_0x4deb9c;return this['_injector'][_0x59eb4a(0x427)](_0x39b563,this[_0x59eb4a(0x282)],this[_0x59eb4a(0x4f1)],this[_0x59eb4a(0x12d)],[],this['_handler'],_0x23db92);}};_0x2aa63e=_0x2bdc29([_0x56d55b(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x56d55b(0x5,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399[_0x4deb9c(0x3b2)])),_0x56d55b(0x6,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x1d5)])),_0x56d55b(0x7,_0x44f3cf[_0x4deb9c(0x243)]),_0x56d55b(0x8,_0x44f3cf[_0x4deb9c(0x4e5)]),_0x56d55b(0x9,_0x5c3399[_0x4deb9c(0x453)]),_0x56d55b(0xa,_0x44f3cf[_0x4deb9c(0x4b7)])],_0x2aa63e);let _0x29239e=class extends _0x53c60b{constructor(_0x2ef99a,_0x1cb90d,_0x1dcb14,_0x5901a8,_0x50813e,_0x498df4,_0x3fac3e,_0x244366,_0x149c85,_0x1da361,_0x433f7b,_0x4356bc){const _0x115cba=_0x4deb9c;super(_0x2ef99a,_0x1cb90d,_0x1dcb14,_0x5901a8,_0x50813e,_0x149c85,_0x4356bc,_0x3fac3e,_0x244366),_0x434a2a(this,'status',_0x115cba(0x3a9)),(this[_0x115cba(0x25f)]=_0x498df4,this[_0x115cba(0x1aa)]=_0x1da361,this['_transformService']=_0x433f7b);}[_0x4deb9c(0x295)](_0x3a81de){const _0x7607b8=_0x4deb9c;return this[_0x7607b8(0x268)][_0x7607b8(0x4c0)](_0x3a81de),this;}['onRemoteChangeset'](_0x426c2c){const _0x46cf35=_0x4deb9c;if(this['_checkMissing'](_0x426c2c))return this[_0x46cf35(0x25f)]['createInstance'](_0x3ae8e5,this[_0x46cf35(0x282)],this[_0x46cf35(0x4f1)],this[_0x46cf35(0x12d)],this[_0x46cf35(0x268)],null,[_0x426c2c],this['_handler']);try{const _0x28fdde=this['_transformService'][_0x46cf35(0x14e)]([_0x426c2c],[this[_0x46cf35(0x12d)]],!0x1);if(_0x5c3399[_0x46cf35(0x444)](_0x28fdde)){const {c1Prime:_0x1ccb87,c2Prime:_0x5935cf}=_0x28fdde,_0x5bf5a5=this[_0x46cf35(0x3c2)][_0x46cf35(0x394)](_0x1ccb87[0x0],this[_0x46cf35(0x268)]);if(_0x5c3399[_0x46cf35(0x264)](_0x5bf5a5)){const {c1Prime:_0x3d6993,m2Prime:_0x539f73}=_0x5bf5a5;return this[_0x46cf35(0x261)](_0x3d6993),_0x5935cf[0x0][_0x46cf35(0x186)]=this['_getCurrentRevision'](),this[_0x46cf35(0x25f)]['createInstance'](_0x29239e,this[_0x46cf35(0x282)],this['type'],_0x5935cf[0x0],_0x539f73,this['_handler']);}throw _0x5bf5a5[_0x46cf35(0x46e)];}throw _0x28fdde['error'];}catch(_0x4865ee){return this['_logService'][_0x46cf35(0x46e)](_0x4865ee),this['_onConflict'](!0x1);}}[_0x4deb9c(0x304)](_0x263174){const _0x200294=_0x4deb9c;if(this[_0x200294(0x2d4)](_0x263174))return this[_0x200294(0x25f)][_0x200294(0x427)](_0x3ae8e5,this['unitID'],this['type'],null,this[_0x200294(0x268)],this[_0x200294(0x12d)],[],this[_0x200294(0x323)]);this[_0x200294(0x1b9)]();const _0x139213=this[_0x200294(0x25f)][_0x200294(0x427)](_0x418dd0,this[_0x200294(0x282)],this[_0x200294(0x4f1)],this['_pendingMutations'],this['_handler']);return _0x139213[_0x200294(0x445)](),_0x139213[_0x200294(0x2f9)](),_0x139213;}['onRemoteRej'](_0xae3fb4){const _0x5eccad=_0x4deb9c;return this[_0x5eccad(0x411)](!!(_0xae3fb4!=null&&_0xae3fb4['isPermissionRej']));}[_0x4deb9c(0x476)](){const _0x4a3fa6=_0x4deb9c;return this[_0x4a3fa6(0x25f)][_0x4a3fa6(0x427)](_0x4fba74,this[_0x4a3fa6(0x282)],this[_0x4a3fa6(0x4f1)],this[_0x4a3fa6(0x12d)],this[_0x4a3fa6(0x268)],this[_0x4a3fa6(0x323)]);}[_0x4deb9c(0x335)](){return this;}[_0x4deb9c(0x4e0)](){const _0x1a3fd3=_0x4deb9c;this['_handler'][_0x1a3fd3(0x500)](this[_0x1a3fd3(0x12d)]);}[_0x4deb9c(0x411)](_0x42547f){const _0x596b2c=_0x4deb9c;return this[_0x596b2c(0x25f)][_0x596b2c(0x427)](_0x39b563,this[_0x596b2c(0x282)],this[_0x596b2c(0x4f1)],null,this[_0x596b2c(0x268)],this[_0x596b2c(0x323)],_0x42547f);}};_0x29239e=_0x2bdc29([_0x56d55b(0x5,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x56d55b(0x6,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399[_0x4deb9c(0x3b2)])),_0x56d55b(0x7,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x1d5)])),_0x56d55b(0x8,_0x44f3cf[_0x4deb9c(0x243)]),_0x56d55b(0x9,_0x44f3cf[_0x4deb9c(0x4e5)]),_0x56d55b(0xa,_0x5c3399[_0x4deb9c(0x453)]),_0x56d55b(0xb,_0x44f3cf[_0x4deb9c(0x4b7)])],_0x29239e);let _0x39b563=class extends _0x53c60b{constructor(_0x4665fc,_0x21427f,_0x32d6b5,_0x335af5,_0x23d164,_0x14f5f9=!0x1,_0x1dde2f,_0x18a5d4,_0xf3d3ae,_0x44a497,_0x5237ed,_0x3e4dfe,_0x585141){const _0x35c732=_0x4deb9c;super(_0x4665fc,_0x21427f,_0x32d6b5,_0x335af5,_0x23d164,_0x18a5d4,_0xf3d3ae,_0x5237ed,_0x44a497),_0x434a2a(this,_0x35c732(0x111),_0x35c732(0x2de)),(this[_0x35c732(0x399)]=_0x14f5f9,this[_0x35c732(0x20f)]=_0x1dde2f,this['_localeService']=_0x3e4dfe,this[_0x35c732(0x3f7)]=_0x585141,this['_showConflictNotification'](),this[_0x35c732(0x4dd)](),this[_0x35c732(0x3af)]());}[_0x4deb9c(0x295)](){return this;}[_0x4deb9c(0x25e)](){return this;}[_0x4deb9c(0x304)](){return this;}[_0x4deb9c(0x4d8)](){return this;}[_0x4deb9c(0x476)](){return this;}['toggleOnline'](){return this;}['resend'](){const _0x4fe1be=_0x4deb9c;throw new Error(_0x4fe1be(0x26b));}['_clearLocalCache'](){const _0x3c71d8=_0x4deb9c;this[_0x3c71d8(0x3d7)]['updateOfflineData'](this['unitID'],this[_0x3c71d8(0x4f1)],null,[]);}[_0x4deb9c(0x3a5)](){const _0x5aff5e=_0x4deb9c;this[_0x5aff5e(0x399)]?this[_0x5aff5e(0x3f7)][_0x5aff5e(0x2a7)]({'title':this[_0x5aff5e(0x182)]['t'](_0x5aff5e(0x305)),'content':this[_0x5aff5e(0x182)]['t'](_0x5aff5e(0x355)),'type':'error','duration':0x0}):this[_0x5aff5e(0x3f7)]['show']({'title':this[_0x5aff5e(0x182)]['t'](_0x5aff5e(0x29a)),'content':this[_0x5aff5e(0x182)]['t']('conflict.content'),'type':_0x5aff5e(0x46e),'duration':0x0});}[_0x4deb9c(0x3af)](){const _0x4b0173=_0x4deb9c;this[_0x4b0173(0x20f)][_0x4b0173(0x420)](new _0x5848ce[(_0x4b0173(0x356))](this[_0x4b0173(0x282)])['id'],!0x1);}};_0x39b563=_0x2bdc29([_0x56d55b(0x6,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x4d1)])),_0x56d55b(0x7,_0x44f3cf[_0x4deb9c(0x243)]),_0x56d55b(0x8,_0x44f3cf['IUndoRedoService']),_0x56d55b(0x9,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x1d5)])),_0x56d55b(0xa,_0x44f3cf['Inject'](_0x5c3399['RevisionService'])),_0x56d55b(0xb,_0x44f3cf['Inject'](_0x44f3cf['LocaleService'])),_0x56d55b(0xc,_0x90d6c1[_0x4deb9c(0x437)])],_0x39b563);let _0x4fba74=class extends _0x53c60b{constructor(_0x674df5,_0x274887,_0x8648ef,_0x4aa14b,_0x1cd735,_0x3b8cc,_0x4e1bb7,_0x4fed0b,_0x25d992,_0x5e05fb){const _0x36ea9e=_0x4deb9c;super(_0x674df5,_0x274887,_0x8648ef,_0x4aa14b,_0x1cd735,_0x25d992,_0x5e05fb,_0x4e1bb7,_0x4fed0b),_0x434a2a(this,_0x36ea9e(0x111),_0x36ea9e(0x143)),this['_injector']=_0x3b8cc;}['appendMutation'](_0x3b491f){const _0x563410=_0x4deb9c;return this[_0x563410(0x268)][_0x563410(0x4c0)](_0x3b491f),this[_0x563410(0x2f9)](),this;}[_0x4deb9c(0x25e)](_0x15ddde){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x26f702=_0x4deb9c;throw new Error(_0x26f702(0x10e));}[_0x4deb9c(0x4d8)](){const _0x9959ba=_0x4deb9c;throw new Error(_0x9959ba(0x145));}[_0x4deb9c(0x476)](){return this;}[_0x4deb9c(0x335)](){const _0x4d1237=_0x4deb9c,{_injector:_0x5bd9fa,_pendingMutations:_0x23b287,_awaitingChangeset:_0x257e47,unitID:_0x5ee019,_handler:_0xf373ac,type:_0x19d49a}=this,_0x536d83=_0x4facb1(_0x5bd9fa,_0x5ee019,_0x19d49a,_0x257e47,_0x23b287,_0xf373ac);return _0x536d83 instanceof _0x418dd0?_0x536d83[_0x4d1237(0x445)]():(_0x536d83 instanceof _0x29239e||_0x536d83 instanceof _0x2aa63e)&&_0x536d83[_0x4d1237(0x4e0)](),_0x536d83;}[_0x4deb9c(0x4e0)](){const _0x58b3bd=_0x4deb9c;throw new Error(_0x58b3bd(0x2f0));}};_0x4fba74=_0x2bdc29([_0x56d55b(0x5,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x56d55b(0x6,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399[_0x4deb9c(0x3b2)])),_0x56d55b(0x7,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa['LocalCacheService'])),_0x56d55b(0x8,_0x44f3cf[_0x4deb9c(0x243)]),_0x56d55b(0x9,_0x44f3cf[_0x4deb9c(0x4b7)])],_0x4fba74);let _0x3ae8e5=class extends _0x53c60b{constructor(_0x55bd48,_0x5dfb5c,_0x30815a,_0x399780,_0x1d3d60,_0x372087,_0x4350e5,_0x6de680,_0x2ae3ad,_0x40ce34,_0x5f0994,_0x15bad7,_0x3af06b,_0x4e7061){const _0x4fc7b1=_0x4deb9c;super(_0x55bd48,_0x5dfb5c,_0x30815a,_0x399780,_0x4350e5,_0x15bad7,_0x3af06b,_0x2ae3ad,_0x40ce34),_0x434a2a(this,_0x4fc7b1(0x111),'fetch_missing'),(this[_0x4fc7b1(0x159)]=_0x1d3d60,this[_0x4fc7b1(0x1f5)]=_0x372087,this[_0x4fc7b1(0x25f)]=_0x6de680,this['_logService']=_0x5f0994,this['_transformService']=_0x4e7061);}[_0x4deb9c(0x2a2)](_0x56ccbe){const _0x45b637=_0x4deb9c;try{const _0x1e1ca1=[..._0x56ccbe,...this[_0x45b637(0x1f5)]],_0x171ed4=[this[_0x45b637(0x12d)]||this['_acknowledgedAwaitingChangeset']][_0x45b637(0x39e)](_0xd0d1d6=>!!_0xd0d1d6);let _0x34d525,_0x353103;if(_0x171ed4['length']){const _0x455bc2=this[_0x45b637(0x3c2)]['transformChangesets'](_0x1e1ca1,_0x171ed4,!0x1);if(!_0x5c3399['isTransformChangesetsSuccess'](_0x455bc2))throw _0x455bc2[_0x45b637(0x46e)];_0x34d525=_0x455bc2[_0x45b637(0x47d)],_0x353103=_0x455bc2[_0x45b637(0x372)];}else _0x34d525=_0x1e1ca1,_0x353103=[];let _0x222548=this[_0x45b637(0x268)];_0x34d525[_0x45b637(0x4cc)](_0x94f4ee=>{const _0x4d884c=_0x45b637;let _0x2e3d18;if(_0x222548['length']){const _0x1e449e=this[_0x4d884c(0x3c2)][_0x4d884c(0x394)](_0x94f4ee,_0x222548);if(!_0x5c3399['isTransformMutationsWithChangesetSuccess'](_0x1e449e))throw _0x1e449e[_0x4d884c(0x46e)];_0x2e3d18=_0x1e449e[_0x4d884c(0x47d)],_0x222548=_0x1e449e[_0x4d884c(0x499)];}else _0x2e3d18=_0x94f4ee;this[_0x4d884c(0x261)](_0x2e3d18);}),this[_0x45b637(0x159)]&&this[_0x45b637(0x1b9)](),this[_0x45b637(0x12d)]&&_0x353103['length']&&(_0x353103[0x0]['baseRev']=this['_getCurrentRevision']());let _0x1953a3;if(this[_0x45b637(0x12d)]&&_0x222548['length']!==0x0)_0x1953a3=this[_0x45b637(0x25f)][_0x45b637(0x427)](_0x29239e,this['unitID'],this[_0x45b637(0x4f1)],_0x353103[0x0],_0x222548,this[_0x45b637(0x323)]);else{if(this[_0x45b637(0x12d)]&&_0x222548[_0x45b637(0x17a)]===0x0)_0x353103[0x0]['baseRev']=this[_0x45b637(0x3c4)](),_0x1953a3=this[_0x45b637(0x25f)][_0x45b637(0x427)](_0x2aa63e,this[_0x45b637(0x282)],this['type'],_0x353103[0x0],this[_0x45b637(0x323)]);else{if(_0x222548[_0x45b637(0x17a)]!==0x0){const _0x576daa=this[_0x45b637(0x25f)][_0x45b637(0x427)](_0x418dd0,this[_0x45b637(0x282)],this[_0x45b637(0x4f1)],_0x222548,this['_handler']);_0x576daa[_0x45b637(0x445)](),_0x1953a3=_0x576daa;}else _0x1953a3=this[_0x45b637(0x25f)][_0x45b637(0x427)](_0x194137,this['unitID'],this[_0x45b637(0x4f1)],this['_handler']);}}return _0x1953a3[_0x45b637(0x2f9)](),_0x1953a3;}catch(_0x152b78){return this[_0x45b637(0x1aa)][_0x45b637(0x46e)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x152b78),this[_0x45b637(0x25f)][_0x45b637(0x427)](_0x39b563,this[_0x45b637(0x282)],this[_0x45b637(0x4f1)],this[_0x45b637(0x12d)],this[_0x45b637(0x268)],this['_handler'],!0x1);}}[_0x4deb9c(0x4e0)](){const _0x441783=_0x4deb9c;throw new Error(_0x441783(0x3e0));}['appendMutation'](_0x4e7f6a){const _0x4a0608=_0x4deb9c;return this['_pendingMutations'][_0x4a0608(0x4c0)](_0x4e7f6a),this;}[_0x4deb9c(0x25e)](_0x21c2b4){const _0x441d7f=_0x4deb9c;return this[_0x441d7f(0x1f5)][_0x441d7f(0x4c0)](_0x21c2b4),this;}['onRemoteAck'](_0x40eb4b){const _0x8eb151=_0x4deb9c;if(this[_0x8eb151(0x12d)])return this[_0x8eb151(0x159)]=this['_awaitingChangeset'],this[_0x8eb151(0x12d)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x4deb9c(0x4d8)](_0x36c2ce){const _0x5d55cb=_0x4deb9c;return this['_onConflict'](!!(_0x36c2ce!=null&&_0x36c2ce[_0x5d55cb(0x318)]));}[_0x4deb9c(0x476)](){const _0xd5e7cf=_0x4deb9c;return this[_0xd5e7cf(0x25f)][_0xd5e7cf(0x427)](_0x4fba74,this['unitID'],this['type'],this[_0xd5e7cf(0x12d)],this['_pendingMutations'],this['_handler']);}[_0x4deb9c(0x335)](){return this;}[_0x4deb9c(0x411)](_0x1401d9){const _0x147ec6=_0x4deb9c;return this[_0x147ec6(0x25f)][_0x147ec6(0x427)](_0x39b563,this[_0x147ec6(0x282)],this[_0x147ec6(0x4f1)],this['_awaitingChangeset'],this[_0x147ec6(0x268)],this[_0x147ec6(0x323)],_0x1401d9);}};_0x3ae8e5=_0x2bdc29([_0x56d55b(0x7,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x56d55b(0x8,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399[_0x4deb9c(0x3b2)])),_0x56d55b(0x9,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x1d5)])),_0x56d55b(0xa,_0x44f3cf[_0x4deb9c(0x4e5)]),_0x56d55b(0xb,_0x44f3cf[_0x4deb9c(0x243)]),_0x56d55b(0xc,_0x44f3cf[_0x4deb9c(0x4b7)]),_0x56d55b(0xd,_0x5c3399['ITransformService'])],_0x3ae8e5);function _0x4facb1(_0x285c69,_0x29de25,_0x1a2df1,_0x4f7e30,_0x4f1598,_0x4c7f0c){const _0x549272=_0x4deb9c;return _0x4f7e30&&_0x4f1598[_0x549272(0x17a)]?_0x285c69['createInstance'](_0x29239e,_0x29de25,_0x1a2df1,_0x4f7e30,_0x4f1598,_0x4c7f0c):_0x4f7e30?_0x285c69[_0x549272(0x427)](_0x2aa63e,_0x29de25,_0x1a2df1,_0x4f7e30,_0x4c7f0c):_0x4f1598['length']?_0x285c69['createInstance'](_0x418dd0,_0x29de25,_0x1a2df1,_0x4f1598,_0x4c7f0c):_0x285c69['createInstance'](_0x194137,_0x29de25,_0x1a2df1,_0x4c7f0c);}var _0x1fb41f=Object['defineProperty'],_0x325ea4=Object[_0x4deb9c(0x3d9)],_0x380a6a=(_0x37a751,_0x400501,_0x234223,_0xf70333)=>{const _0x510ee9=_0x4deb9c;for(var _0x5a97af=_0xf70333>0x1?void 0x0:_0xf70333?_0x325ea4(_0x400501,_0x234223):_0x400501,_0x50ef62=_0x37a751[_0x510ee9(0x17a)]-0x1,_0x256d4f;_0x50ef62>=0x0;_0x50ef62--)(_0x256d4f=_0x37a751[_0x50ef62])&&(_0x5a97af=(_0xf70333?_0x256d4f(_0x400501,_0x234223,_0x5a97af):_0x256d4f(_0x5a97af))||_0x5a97af);return _0xf70333&&_0x5a97af&&_0x1fb41f(_0x400501,_0x234223,_0x5a97af),_0x5a97af;},_0x1ac0b4=(_0x253902,_0x36859f)=>(_0x3f5237,_0x512b37)=>_0x36859f(_0x3f5237,_0x512b37,_0x253902);_0x3723aa['CollaborationEntity']=class extends _0x44f3cf[_0x4deb9c(0x48b)]{constructor(_0x5328d0,_0x39053b,_0x6aa4d7,_0x985f1,_0x173d29,_0x30f1f3,_0x515807,_0x3a2a7a,_0x116374,_0x1d65d8,_0x530909,_0x543c09,_0x511e4c){const _0x3f9d46=_0x4deb9c;super(),_0x434a2a(this,'_state$',new _0x1837c6['BehaviorSubject'](null)),_0x434a2a(this,'state$',this[_0x3f9d46(0x227)][_0x3f9d46(0x4eb)]()),_0x434a2a(this,_0x3f9d46(0x16c)),_0x434a2a(this,_0x3f9d46(0x4a3),!0x1),_0x434a2a(this,_0x3f9d46(0x43a),this[_0x3f9d46(0x465)][_0x3f9d46(0x4f9)](_0x1837c6[_0x3f9d46(0x269)](_0x32c13a=>_0x32c13a?_0x32c13a[_0x3f9d46(0x111)]:_0x1a5e20['OFFLINE']),_0x1837c6[_0x3f9d46(0x3c8)](0x1))),_0x434a2a(this,_0x3f9d46(0x285),!0x1),_0x434a2a(this,'_remoteChangesetQueue',[]),(this[_0x3f9d46(0x282)]=_0x5328d0,this[_0x3f9d46(0x4ba)]=_0x39053b,this[_0x3f9d46(0x19c)]=_0x6aa4d7,this[_0x3f9d46(0x25f)]=_0x985f1,this[_0x3f9d46(0x3d7)]=_0x173d29,this['_compressMutationService']=_0x30f1f3,this[_0x3f9d46(0x182)]=_0x515807,this['_revisionService']=_0x3a2a7a,this[_0x3f9d46(0x1aa)]=_0x116374,this[_0x3f9d46(0x484)]=_0x1d65d8,this[_0x3f9d46(0x31a)]=_0x530909,this[_0x3f9d46(0x20f)]=_0x543c09,this[_0x3f9d46(0x2e3)]=_0x511e4c);}get[_0x4deb9c(0x4aa)](){const _0xa81ade=_0x4deb9c;return this[_0xa81ade(0x16c)];}async[_0x4deb9c(0x36a)](){const _0x1e589b=_0x4deb9c;if(this[_0x1e589b(0x4aa)])throw new Error(_0x1e589b(0x508));await this['_init']();}[_0x4deb9c(0x1a9)](){const _0x5c1648=_0x4deb9c;return this[_0x5c1648(0x4a3)]=!0x0,_0x44f3cf[_0x5c1648(0x133)](()=>{const _0x25f1f6=_0x5c1648;this[_0x25f1f6(0x4a3)]=!0x1,this[_0x25f1f6(0x49a)]();});}[_0x4deb9c(0x1ab)](_0x439ae9){const _0x2bfc93=_0x4deb9c;this[_0x2bfc93(0x16c)]=_0x439ae9,this['_state$'][_0x2bfc93(0x3e8)](_0x439ae9);}async[_0x4deb9c(0x4fb)](){const _0x3a6049=_0x4deb9c;var _0xdc50d4;this[_0x3a6049(0x1ab)](await this['_createInitialState']()),this[_0x3a6049(0x2e3)]&&((_0xdc50d4=this['_singleActiveUnitService'])==null||_0xdc50d4[_0x3a6049(0x2d7)](this[_0x3a6049(0x282)]),this[_0x3a6049(0x446)](this[_0x3a6049(0x2e3)][_0x3a6049(0x1ea)](this[_0x3a6049(0x282)])['subscribe'](_0x5aee62=>{const _0x15bc49=_0x3a6049;this[_0x15bc49(0x1aa)]['debug'](_0x15bc49(0x24f),_0x15bc49(0x15c),_0x5aee62),_0x5aee62===_0x14af59['OTHER_CLIENTS_EDITING']?(this[_0x15bc49(0x31a)]['show']({'content':this[_0x15bc49(0x182)]['t'](_0x15bc49(0x199)),'type':_0x1c0df8[_0x15bc49(0x25c)]['Warning']}),this[_0x15bc49(0x20f)]['updatePermissionPoint'](new _0x5848ce[(_0x15bc49(0x356))](this[_0x15bc49(0x282)])['id'],!0x1)):this[_0x15bc49(0x20f)][_0x15bc49(0x420)](new _0x5848ce[(_0x15bc49(0x356))](this[_0x15bc49(0x282)])['id'],!0x0);})));let _0x486b04=!0x1;return this[_0x3a6049(0x446)](this[_0x3a6049(0x4ba)][_0x3a6049(0x501)][_0x3a6049(0x138)](_0x143316=>{const _0x993edd=_0x3a6049;_0x143316===_0x4388c5[_0x993edd(0x1df)]?this[_0x993edd(0x346)](_0x486b04):_0x143316===_0x4388c5[_0x993edd(0x135)]&&(_0x486b04=!0x0,this[_0x993edd(0x327)]());})),this[_0x3a6049(0x446)](this[_0x3a6049(0x4ba)]['event$'][_0x3a6049(0x138)](_0x3cd1f1=>{const _0x214f0e=_0x3a6049;try{switch(_0x3cd1f1[_0x214f0e(0x2aa)]){case _0x5c3399[_0x214f0e(0x3d6)][_0x214f0e(0x4a7)]:{this[_0x214f0e(0x490)](_0x5c3399['parseProtocolChangeset'](_0x3cd1f1[_0x214f0e(0xf9)]));break;}case _0x5c3399['CollaborationEvent'][_0x214f0e(0x333)]:{this[_0x214f0e(0x24d)](_0x3cd1f1['data']);break;}case _0x5c3399[_0x214f0e(0x3d6)][_0x214f0e(0x4bd)]:{this['_onRemoteRejected']();break;}case _0x5c3399['CollaborationEvent'][_0x214f0e(0x338)]:{this[_0x214f0e(0x460)](_0x3cd1f1['data']['changesets'][_0x214f0e(0x269)](_0x2d00ff=>_0x5c3399['parseProtocolChangeset'](_0x2d00ff)));break;}case _0x5c3399['CollaborationEvent']['PERMISSION_REJ']:this[_0x214f0e(0x18c)]({'isPermissionRej':!0x0});}}catch(_0x138b29){throw console['error'](_0x214f0e(0x1fd),_0x138b29),_0x138b29;}})),this[_0x3a6049(0x16c)];}['_unlockTransition'](){const _0x303661=_0x4deb9c;this[_0x303661(0x285)]=!0x1;}[_0x4deb9c(0x3d3)](){const _0xeb86f2=_0x4deb9c;if(this[_0xeb86f2(0x285)])throw new Error(_0xeb86f2(0x310));this['_transitionLocked']=!0x0;}[_0x4deb9c(0x27f)](_0x164e30){const _0x4508b8=_0x4deb9c;this[_0x4508b8(0x3d3)](),this[_0x4508b8(0x1ab)](this['_state']['appendMutation'](_0x164e30)),this[_0x4508b8(0x1cc)]();}['_onRemoteChangeset'](_0x26fc5c){const _0x35fda9=_0x4deb9c;if(!(_0x26fc5c['revision']<=this['_revisionService'][_0x35fda9(0x3a3)](this[_0x35fda9(0x282)]))){if(this[_0x35fda9(0x4a3)]){this['_remoteChangesetQueue'][_0x35fda9(0x4c0)](_0x26fc5c);return;}this['_applyRemoteChangeset'](_0x26fc5c);}}[_0x4deb9c(0x49a)](){const _0x5b7f11=_0x4deb9c;this['_remoteChangesetQueue'][_0x5b7f11(0x4cc)](_0x13958f=>this[_0x5b7f11(0x1e6)](_0x13958f)),this[_0x5b7f11(0x25d)]=[];}[_0x4deb9c(0x1e6)](_0x18722d){const _0x1c6fc9=_0x4deb9c,_0x4dbb8b=this[_0x1c6fc9(0x155)][_0x1c6fc9(0x3b4)]['fetchThroughInterceptors'](this[_0x1c6fc9(0x155)][_0x1c6fc9(0x3b4)][_0x1c6fc9(0x3a4)]()['COMPRESS_MUTATION_APPLY'])(_0x18722d[_0x1c6fc9(0x367)],null)||_0x18722d[_0x1c6fc9(0x367)],_0x434ff9={..._0x18722d,'mutations':_0x4dbb8b};this[_0x1c6fc9(0x3d3)](),this[_0x1c6fc9(0x1ab)](this[_0x1c6fc9(0x16c)]['onRemoteChangeset'](_0x434ff9)),this['_unlockTransition']();}['_onRemoteACK'](_0x5102bb){const _0x389e61=_0x4deb9c;this['_lockTransition'](),this['_updateState'](this[_0x389e61(0x16c)][_0x389e61(0x304)](_0x5102bb)),this['_unlockTransition']();}[_0x4deb9c(0x18c)](_0x1373a2){const _0x22abb9=_0x4deb9c;this[_0x22abb9(0x3d3)](),this['_updateState'](this[_0x22abb9(0x16c)][_0x22abb9(0x4d8)](_0x1373a2)),this[_0x22abb9(0x1cc)]();}[_0x4deb9c(0x460)](_0x1a58c7){const _0x59b8b7=_0x4deb9c;if(!(this[_0x59b8b7(0x16c)]instanceof _0x3ae8e5))throw new TypeError(_0x59b8b7(0x298));const _0x3bc60e=_0x1a58c7[_0x59b8b7(0x269)](_0x301782=>{const _0x5f365d=_0x59b8b7,_0x384f3e=this[_0x5f365d(0x155)][_0x5f365d(0x3b4)][_0x5f365d(0x1f1)](this[_0x5f365d(0x155)]['interceptor'][_0x5f365d(0x3a4)]()[_0x5f365d(0x429)])(_0x301782[_0x5f365d(0x367)],null)||_0x301782[_0x5f365d(0x367)];return{..._0x301782,'mutations':_0x384f3e};});this[_0x59b8b7(0x3d3)](),this[_0x59b8b7(0x1ab)](this[_0x59b8b7(0x16c)][_0x59b8b7(0x2a2)](_0x3bc60e)),this['_unlockTransition']();}['_toggleOffline'](){const _0x1c9b9f=_0x4deb9c;this[_0x1c9b9f(0x3d3)](),this[_0x1c9b9f(0x1ab)](this[_0x1c9b9f(0x16c)][_0x1c9b9f(0x476)]()),this['_unlockTransition']();}['_toggleOnline'](_0x156d6b=!0x1){const _0x3ccca5=_0x4deb9c;this[_0x3ccca5(0x3d3)](),this[_0x3ccca5(0x1ab)](this['_state'][_0x3ccca5(0x335)]()),this[_0x3ccca5(0x1cc)]();const _0x5636a9=this['_state'];_0x156d6b&&_0x5636a9 instanceof _0x194137&&(this[_0x3ccca5(0x3d3)](),this['_updateState'](_0x5636a9[_0x3ccca5(0x1e4)]()),this[_0x3ccca5(0x1cc)]());}async[_0x4deb9c(0x2e4)](){return new Promise(_0x5294d6=>{const _0x41de42=_0x47c1;this[_0x41de42(0x4ba)][_0x41de42(0x501)][_0x41de42(0x4f9)](_0x1837c6[_0x41de42(0x215)](0x1))[_0x41de42(0x138)](async _0x2a2030=>{const _0x309444=_0x41de42;_0x5294d6(await this['_createInitialStateImpl'](_0x2a2030===_0x4388c5[_0x309444(0x1df)]));});});}[_0x4deb9c(0x3e7)](){const _0x5bc9f5=_0x4deb9c,_0x407cb4=this[_0x5bc9f5(0x282)];return{'onStateChange':(_0x28617d,_0x2545fd)=>{const _0x4ee7ce=_0x5bc9f5;if(_0x28617d!==this[_0x4ee7ce(0x16c)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x28617d[_0x4ee7ce(0x111)]+_0x4ee7ce(0x247)+_0x2545fd[_0x4ee7ce(0x111)]+'\x0aCurrent:\x20'+this[_0x4ee7ce(0x16c)][_0x4ee7ce(0x111)]);this[_0x4ee7ce(0x1ab)](_0x2545fd);},'onSendChangeset':_0x15ad5d=>{const _0x112cb0=_0x5bc9f5,_0x4ac8a2={'eventID':_0x5c3399[_0x112cb0(0x3d6)][_0x112cb0(0x29c)],'data':{'unitID':_0x15ad5d[_0x112cb0(0x282)],'unitType':this[_0x112cb0(0x19c)],'changeset':_0x15ad5d,'memberID':this['session'][_0x112cb0(0x146)]()}};this[_0x112cb0(0x4ba)][_0x112cb0(0x151)](_0x4ac8a2,this[_0x112cb0(0x282)]);},'onMissingChangesets':({from:_0x10c862,to:_0x446e64})=>{const _0x4312c2=_0x5bc9f5;this['_logService'][_0x4312c2(0x3e6)](_0x4312c2(0x24f),_0x4312c2(0xfc)+_0x10c862+_0x4312c2(0x16d)+_0x446e64);const _0x59a658={'eventID':_0x5c3399[_0x4312c2(0x3d6)][_0x4312c2(0x236)],'data':{'unitID':_0x407cb4,'unitType':this['_type'],'from':_0x10c862,'to':_0x446e64}};this[_0x4312c2(0x4ba)][_0x4312c2(0x151)](_0x59a658,this[_0x4312c2(0x282)]);}};}async[_0x4deb9c(0x10b)](_0x35e3cc){const _0x497153=_0x4deb9c;var _0x8ea952,_0x1f9a4a;const _0xc9c213=await this[_0x497153(0x3d7)][_0x497153(0x286)](this[_0x497153(0x282)]),_0x151057=(_0x8ea952=_0xc9c213==null?void 0x0:_0xc9c213[_0x497153(0x367)])!=null?_0x8ea952:[],_0x4bd199=(_0x1f9a4a=_0xc9c213==null?void 0x0:_0xc9c213[_0x497153(0x32c)])!=null?_0x1f9a4a:null,_0x314718=this['unitID'];try{this[_0x497153(0x26f)](_0x4bd199,_0x151057);}catch(_0x188941){this[_0x497153(0x1aa)][_0x497153(0x46e)](_0x188941);}const _0x3f988a=this[_0x497153(0x3e7)]();if(_0x35e3cc){const _0x1964fe=_0x4facb1(this[_0x497153(0x25f)],_0x314718,this[_0x497153(0x19c)],_0x4bd199,_0x151057,_0x3f988a);return _0x1964fe instanceof _0x418dd0?_0x1964fe[_0x497153(0x445)]():(_0x1964fe instanceof _0x29239e||_0x1964fe instanceof _0x2aa63e)&&_0x1964fe[_0x497153(0x4e0)](),_0x1964fe;}return this[_0x497153(0x25f)][_0x497153(0x427)](_0x4fba74,_0x314718,this[_0x497153(0x19c)],_0x4bd199,_0x151057,_0x3f988a);}[_0x4deb9c(0x26f)](_0x3cb3d8,_0x4239d7){const _0x3ab043=_0x4deb9c;var _0x4f2baa,_0x28372a;const _0x55943e=this[_0x3ab043(0x155)]['interceptor'][_0x3ab043(0x1f1)](this[_0x3ab043(0x155)][_0x3ab043(0x3b4)][_0x3ab043(0x3a4)]()[_0x3ab043(0x429)]);(_0x4f2baa=_0x55943e((_0x3cb3d8==null?void 0x0:_0x3cb3d8[_0x3ab043(0x367)])||[],null))==null||_0x4f2baa[_0x3ab043(0x4cc)](_0x206187=>this['_commandService'][_0x3ab043(0x450)](_0x206187['id'],_0x206187[_0x3ab043(0x3fd)])),(_0x28372a=_0x55943e(_0x4239d7||[],null))==null||_0x28372a[_0x3ab043(0x4cc)](_0x612144=>this['_commandService'][_0x3ab043(0x450)](_0x612144['id'],_0x612144[_0x3ab043(0x3fd)]));}},_0x3723aa['CollaborationEntity']=_0x380a6a([_0x1ac0b4(0x3,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x1ac0b4(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x1d5)])),_0x1ac0b4(0x5,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399[_0x4deb9c(0x4a6)])),_0x1ac0b4(0x6,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf['LocaleService'])),_0x1ac0b4(0x7,_0x44f3cf['Inject'](_0x5c3399['RevisionService'])),_0x1ac0b4(0x8,_0x44f3cf[_0x4deb9c(0x4e5)]),_0x1ac0b4(0x9,_0x44f3cf[_0x4deb9c(0x243)]),_0x1ac0b4(0xa,_0x90d6c1[_0x4deb9c(0x1b2)]),_0x1ac0b4(0xb,_0x44f3cf[_0x4deb9c(0x4d1)]),_0x1ac0b4(0xc,_0x44f3cf[_0x4deb9c(0x12e)](_0x27229c))],_0x3723aa[_0x4deb9c(0x3ed)]),_0x3723aa[_0x4deb9c(0x3c1)]=class extends _0x3723aa['CollaborationEntity']{constructor(_0x1548d8,_0x1b8675,_0x9a9fb9,_0x353395,_0x584227,_0x74d483,_0x56f8fc,_0x45a8e6,_0x214b04,_0x3b045b,_0x4670bb,_0xae565f,_0x4bbe13,_0x487554,_0x15c605,_0x3bbd9f,_0xb2633c){const _0x1a887f=_0x4deb9c;super(_0x1548d8,_0x9a9fb9,_0x1b8675,_0x353395,_0x584227,_0x74d483,_0x56f8fc,_0x45a8e6,_0x4bbe13,_0x487554,_0x15c605,_0x3bbd9f,_0xb2633c),this[_0x1a887f(0x282)]=_0x1548d8,this[_0x1a887f(0x4f1)]=_0x1b8675,this[_0x1a887f(0x22b)]=_0x214b04,this[_0x1a887f(0x322)]=_0x3b045b,this[_0x1a887f(0x1f8)]=_0x4670bb,this[_0x1a887f(0x40a)]=_0xae565f;}[_0x4deb9c(0x3e7)](){const _0x506e80=_0x4deb9c,_0x4ec5be=super[_0x506e80(0x3e7)]();return _0x4ec5be[_0x506e80(0x127)]=_0x30958c=>this[_0x506e80(0x322)]['transformIMECache'](_0x30958c),_0x4ec5be[_0x506e80(0x49c)]=_0x3beea5=>this[_0x506e80(0x1f8)][_0x506e80(0x3f8)](_0x3beea5),_0x4ec5be['onSyncEditingCollabCursor']=_0x5a937d=>this[_0x506e80(0x40a)][_0x506e80(0x2ca)](_0x5a937d),_0x4ec5be[_0x506e80(0x37f)]=_0x3acb57=>this[_0x506e80(0x322)][_0x506e80(0x3d0)](_0x3acb57),_0x4ec5be;}async[_0x4deb9c(0x4fb)](){const _0x36ecaf=_0x4deb9c,_0x5c4d10=await super['_init']();return this[_0x36ecaf(0x446)](this[_0x36ecaf(0x484)][_0x36ecaf(0x27a)]((_0x15beba,_0x6966d)=>{const _0x398624=_0x36ecaf;if(_0x15beba[_0x398624(0x4f1)]!==_0x44f3cf[_0x398624(0x2c1)][_0x398624(0x3b0)]||_0x6966d!=null&&_0x6966d['fromCollab']||_0x6966d!=null&&_0x6966d[_0x398624(0x313)])return;const _0x1a431b=_0x15beba[_0x398624(0x3fd)];if((_0x1a431b==null?void 0x0:_0x1a431b[_0x398624(0x380)])!==this[_0x398624(0x282)])return;let _0x4f963a=_0x15beba;if(_0x4f963a['id']===_0x495201[_0x398624(0x41b)]['id']){const _0xcca6a=_0x4f963a[_0x398624(0x3fd)];_0x4f963a={'id':_0x495201[_0x398624(0x41b)]['id'],'type':_0x44f3cf['CommandType'][_0x398624(0x3b0)],'params':{'unitId':_0xcca6a[_0x398624(0x380)],'actions':_0xcca6a[_0x398624(0x3fe)],'textRanges':null}};}const _0x2c29f9=this['_compressMutationService'][_0x398624(0x3b4)][_0x398624(0x1f1)](this['_compressMutationService']['interceptor'][_0x398624(0x3a4)]()['COMPRESS_MUTATION_SEND'])([_0x4f963a],null)||[_0x4f963a];this[_0x398624(0x27f)](_0x2c29f9[0x0]);})),_0x5c4d10;}},_0x3723aa[_0x4deb9c(0x3c1)]=_0x380a6a([_0x1ac0b4(0x3,_0x44f3cf['Inject'](_0x44f3cf[_0x4deb9c(0x483)])),_0x1ac0b4(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x1d5)])),_0x1ac0b4(0x5,_0x44f3cf['Inject'](_0x5c3399[_0x4deb9c(0x4a6)])),_0x1ac0b4(0x6,_0x44f3cf['Inject'](_0x44f3cf['LocaleService'])),_0x1ac0b4(0x7,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399[_0x4deb9c(0x3b2)])),_0x1ac0b4(0x8,_0x44f3cf[_0x4deb9c(0x2a6)](_0x50f029[_0x4deb9c(0x320)])),_0x1ac0b4(0x9,_0x44f3cf[_0x4deb9c(0x2a6)](_0x8239a3)),_0x1ac0b4(0xa,_0x44f3cf[_0x4deb9c(0x2a6)](_0x2c5796)),_0x1ac0b4(0xb,_0x44f3cf[_0x4deb9c(0x2a6)](_0x47cf83)),_0x1ac0b4(0xc,_0x44f3cf[_0x4deb9c(0x4e5)]),_0x1ac0b4(0xd,_0x44f3cf[_0x4deb9c(0x243)]),_0x1ac0b4(0xe,_0x90d6c1[_0x4deb9c(0x1b2)]),_0x1ac0b4(0xf,_0x44f3cf['IPermissionService']),_0x1ac0b4(0x10,_0x44f3cf[_0x4deb9c(0x12e)](_0x27229c))],_0x3723aa[_0x4deb9c(0x3c1)]),_0x3723aa[_0x4deb9c(0x1a5)]=class extends _0x3723aa['CollaborationEntity']{constructor(_0x573f2b,_0x41c349,_0x429a5b,_0x27014a,_0x5dfe4d,_0x5c7d0c,_0x2218b4,_0x9e0e7d,_0x2671c6,_0x2bb391,_0x3739bc,_0x3126e6,_0x1061fd,_0xb6c11c){const _0x5eb547=_0x4deb9c;super(_0x573f2b,_0x429a5b,_0x41c349,_0x27014a,_0x5dfe4d,_0x5c7d0c,_0x2218b4,_0x9e0e7d,_0x2bb391,_0x3739bc,_0x3126e6,_0x1061fd,_0xb6c11c),this[_0x5eb547(0x282)]=_0x573f2b,this[_0x5eb547(0x4f1)]=_0x41c349,this[_0x5eb547(0x18a)]=_0x2671c6;}[_0x4deb9c(0x3e7)](){const _0x219226=_0x4deb9c,_0x45ea8f=super[_0x219226(0x3e7)]();return _0x45ea8f[_0x219226(0x49c)]=_0x33071a=>this[_0x219226(0x18a)][_0x219226(0x3f8)](_0x33071a),_0x45ea8f;}async[_0x4deb9c(0x4fb)](){const _0x430f6b=_0x4deb9c,_0x1e8837=await super[_0x430f6b(0x4fb)]();return this[_0x430f6b(0x446)](this[_0x430f6b(0x484)][_0x430f6b(0x27a)]((_0x299cd5,_0x1fe484)=>{const _0x2d7f80=_0x430f6b;if(_0x299cd5['type']!==_0x44f3cf[_0x2d7f80(0x2c1)][_0x2d7f80(0x3b0)]||_0x1fe484!=null&&_0x1fe484[_0x2d7f80(0x362)]||_0x1fe484!=null&&_0x1fe484[_0x2d7f80(0x313)])return;const _0x5eabba=_0x299cd5[_0x2d7f80(0x3fd)];if((_0x5eabba==null?void 0x0:_0x5eabba[_0x2d7f80(0x380)])!==this['unitID'])return;const _0x4c5ef5=_0x299cd5,_0x33570d=this[_0x2d7f80(0x155)][_0x2d7f80(0x3b4)][_0x2d7f80(0x1f1)](this[_0x2d7f80(0x155)]['interceptor'][_0x2d7f80(0x3a4)]()[_0x2d7f80(0x505)])([_0x4c5ef5],null)||[_0x4c5ef5];this['_onLocalMutation'](_0x33570d[0x0]);})),_0x1e8837;}},_0x3723aa[_0x4deb9c(0x1a5)]=_0x380a6a([_0x1ac0b4(0x3,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x1ac0b4(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x1d5)])),_0x1ac0b4(0x5,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399['CompressMutationService'])),_0x1ac0b4(0x6,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf['LocaleService'])),_0x1ac0b4(0x7,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399[_0x4deb9c(0x3b2)])),_0x1ac0b4(0x8,_0x44f3cf[_0x4deb9c(0x2a6)](_0x356d67)),_0x1ac0b4(0x9,_0x44f3cf[_0x4deb9c(0x4e5)]),_0x1ac0b4(0xa,_0x44f3cf[_0x4deb9c(0x243)]),_0x1ac0b4(0xb,_0x90d6c1[_0x4deb9c(0x1b2)]),_0x1ac0b4(0xc,_0x44f3cf[_0x4deb9c(0x4d1)]),_0x1ac0b4(0xd,_0x44f3cf[_0x4deb9c(0x12e)](_0x27229c))],_0x3723aa[_0x4deb9c(0x1a5)]);var _0x530eec=Object[_0x4deb9c(0x4f6)],_0x43fcad=Object[_0x4deb9c(0x3d9)],_0x1f689e=(_0x6b7f5b,_0x3dc376,_0x54fc35,_0x42e573)=>{const _0x346f86=_0x4deb9c;for(var _0x22e1c0=_0x42e573>0x1?void 0x0:_0x42e573?_0x43fcad(_0x3dc376,_0x54fc35):_0x3dc376,_0x2b0484=_0x6b7f5b[_0x346f86(0x17a)]-0x1,_0xbe370d;_0x2b0484>=0x0;_0x2b0484--)(_0xbe370d=_0x6b7f5b[_0x2b0484])&&(_0x22e1c0=(_0x42e573?_0xbe370d(_0x3dc376,_0x54fc35,_0x22e1c0):_0xbe370d(_0x22e1c0))||_0x22e1c0);return _0x42e573&&_0x22e1c0&&_0x530eec(_0x3dc376,_0x54fc35,_0x22e1c0),_0x22e1c0;},_0x16377b=(_0x9bed5a,_0x244e6d)=>(_0x307e05,_0x53802)=>_0x244e6d(_0x307e05,_0x53802,_0x9bed5a);_0x3723aa['CollaborationController']=class extends _0x44f3cf[_0x4deb9c(0x48b)]{constructor(_0x1b2fe4,_0xec2621,_0x2e026c){const _0x5476c3=_0x4deb9c;super(),_0x434a2a(this,_0x5476c3(0x2b6),new Map()),_0x434a2a(this,'_entityInit$',new _0x1837c6['Subject']()),(this[_0x5476c3(0x25f)]=_0x1b2fe4,this[_0x5476c3(0x359)]=_0xec2621,this[_0x5476c3(0x391)]=_0x2e026c,this[_0x5476c3(0x4fb)]());}[_0x4deb9c(0x241)](){const _0x207c48=_0x4deb9c;super[_0x207c48(0x241)](),this[_0x207c48(0x2b6)][_0x207c48(0x4cc)](_0xaf4f7c=>_0xaf4f7c['dispose']()),this[_0x207c48(0x2b6)]['clear']();}[_0x4deb9c(0x204)](_0x427953){const _0x10eb2f=_0x4deb9c;var _0x2b6fc0;return(_0x2b6fc0=this[_0x10eb2f(0x2b6)][_0x10eb2f(0x38c)](_0x427953))!=null?_0x2b6fc0:null;}[_0x4deb9c(0x2d6)](_0xd98d5c){const _0x27f634=_0x4deb9c,_0x5b275f=this[_0x27f634(0x204)](_0xd98d5c);return _0x5b275f?_0x1837c6['of'](_0x5b275f):this[_0x27f634(0x284)][_0x27f634(0x4f9)](_0x3ab9e8[_0x27f634(0x39e)](_0x5ce19c=>_0x5ce19c[_0x27f634(0x282)]===_0xd98d5c));}[_0x4deb9c(0x4fb)](){const _0x4320c6=_0x4deb9c;this[_0x4320c6(0x391)]['getTypeOfUnitAdded$'](_0x44f3cf['UniverInstanceType'][_0x4320c6(0x402)])[_0x4320c6(0x4f9)](_0x1837c6['takeUntil'](this['dispose$']),_0x3ab9e8[_0x4320c6(0x3a6)](0x10))[_0x4320c6(0x138)](async _0x39ab01=>{const _0x308d3a=_0x4320c6,_0x38b976=_0x39ab01[_0x308d3a(0x43f)](),_0x58bac7=await this[_0x308d3a(0x18d)](_0x38b976,_0x3bfee1['UNIVER_SHEET']);this[_0x308d3a(0x2b6)][_0x308d3a(0x2b2)](_0x38b976,_0x58bac7);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x44f3cf[_0x4320c6(0x1bb)][_0x4320c6(0x350)])['pipe'](_0x1837c6['takeUntil'](this[_0x4320c6(0x423)]),_0x3ab9e8[_0x4320c6(0x3a6)](0x10))[_0x4320c6(0x4f9)](_0x3ab9e8[_0x4320c6(0x39e)](_0x3f8352=>!_0x3f8352[_0x4320c6(0x43f)]()[_0x4320c6(0x513)]('__')))[_0x4320c6(0x138)](async _0x1e2cdd=>{const _0x378164=_0x4320c6,_0x4193c6=_0x1e2cdd[_0x378164(0x43f)](),_0x4c2464=await this[_0x378164(0x18d)](_0x4193c6,_0x3bfee1[_0x378164(0x350)]);this[_0x378164(0x2b6)][_0x378164(0x2b2)](_0x4193c6,_0x4c2464);}),_0x1837c6[_0x4320c6(0xfb)](this['_univerInstanceService'][_0x4320c6(0x4a5)](_0x44f3cf[_0x4320c6(0x1bb)][_0x4320c6(0x402)]),this[_0x4320c6(0x391)]['getTypeOfUnitDisposed$'](_0x44f3cf[_0x4320c6(0x1bb)][_0x4320c6(0x350)]))['pipe'](_0x1837c6[_0x4320c6(0x23e)](this[_0x4320c6(0x423)]))[_0x4320c6(0x138)](_0x17c031=>{const _0x5b6aee=_0x4320c6,_0x5c08ef=_0x17c031[_0x5b6aee(0x43f)](),_0x489766=this[_0x5b6aee(0x2b6)][_0x5b6aee(0x38c)](_0x5c08ef);_0x489766&&(_0x489766['dispose'](),this[_0x5b6aee(0x2b6)][_0x5b6aee(0x312)](_0x5c08ef));});}async[_0x4deb9c(0x18d)](_0x449c8c,_0x46ab49){const _0x2dea41=_0x4deb9c,_0x302e4d=await this['_collabSessionService'][_0x2dea41(0x10f)](_0x449c8c),_0x35d18f=this[_0x2dea41(0x25f)][_0x2dea41(0x427)](this['_getCtorByUniverType'](_0x46ab49),_0x449c8c,_0x46ab49,_0x302e4d);return await _0x35d18f[_0x2dea41(0x36a)](),this[_0x2dea41(0x284)][_0x2dea41(0x3e8)](_0x35d18f),_0x35d18f;}['_getCtorByUniverType'](_0x2f8747){const _0x50e3b5=_0x4deb9c;switch(_0x2f8747){case _0x3bfee1[_0x50e3b5(0x350)]:return _0x3723aa[_0x50e3b5(0x3c1)];case _0x3bfee1[_0x50e3b5(0x402)]:return _0x3723aa['SheetCollaborationEntity'];default:throw new Error(_0x50e3b5(0x2fd)+_0x2f8747);}}},_0x3723aa[_0x4deb9c(0x3ac)]=_0x1f689e([_0x16377b(0x0,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x16377b(0x1,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x433)])),_0x16377b(0x2,_0x44f3cf[_0x4deb9c(0x165)])],_0x3723aa[_0x4deb9c(0x3ac)]);const _0x2634fe=[_0x4deb9c(0x3de),_0x4deb9c(0x2f1),_0x4deb9c(0x480),_0x4deb9c(0x3eb),_0x4deb9c(0x2fc),_0x4deb9c(0x3ec)];class _0x491fbd extends _0x44f3cf['Disposable']{constructor(){const _0x3f60b4=_0x4deb9c;super(...arguments),_0x434a2a(this,_0x3f60b4(0x42b),new Map()),_0x434a2a(this,_0x3f60b4(0x152),0x0);}['assignAColorForMemberID'](_0x51b118){const _0x171c87=_0x4deb9c;if(this[_0x171c87(0x42b)][_0x171c87(0x17f)](_0x51b118))return this[_0x171c87(0x42b)][_0x171c87(0x38c)](_0x51b118);const _0x2b3e2d=_0x2634fe[this[_0x171c87(0x152)]];return this['_colorIndex']=(this[_0x171c87(0x152)]+0x1)%_0x2634fe['length'],this[_0x171c87(0x42b)][_0x171c87(0x2b2)](_0x51b118,_0x2b3e2d),_0x2b3e2d;}}var _0x4c3d5c=Object[_0x4deb9c(0x4f6)],_0x14616e=Object[_0x4deb9c(0x3d9)],_0x24ddc6=(_0x19dfed,_0x15bbfa,_0x1c2c6c,_0x12a5d4)=>{const _0x32ebaa=_0x4deb9c;for(var _0xebb030=_0x12a5d4>0x1?void 0x0:_0x12a5d4?_0x14616e(_0x15bbfa,_0x1c2c6c):_0x15bbfa,_0x3961c2=_0x19dfed[_0x32ebaa(0x17a)]-0x1,_0x725590;_0x3961c2>=0x0;_0x3961c2--)(_0x725590=_0x19dfed[_0x3961c2])&&(_0xebb030=(_0x12a5d4?_0x725590(_0x15bbfa,_0x1c2c6c,_0xebb030):_0x725590(_0xebb030))||_0xebb030);return _0x12a5d4&&_0xebb030&&_0x4c3d5c(_0x15bbfa,_0x1c2c6c,_0xebb030),_0xebb030;},_0x2c344e=(_0x233a7b,_0x55f833)=>(_0xd47a5f,_0x19640f)=>_0x55f833(_0xd47a5f,_0x19640f,_0x233a7b);const _0x3408cd=0x12c,_0x525db6=0x64,_0x19a090=()=>{let _0x12d745=[],_0x2f98b7=!0x1;return _0x1336e9=>{const _0x3d7392=_0x47c1;_0x12d745[_0x3d7392(0x4c0)](_0x1336e9),_0x2f98b7||(_0x2f98b7=!0x0,setTimeout(()=>{const _0x20464b=_0x3d7392;_0x12d745[_0x20464b(0x4cc)](_0x23ba86=>_0x23ba86()),_0x12d745=[],_0x2f98b7=!0x1;}));};};let _0x593318=class extends _0x44f3cf[_0x4deb9c(0x48b)]{constructor(_0x7fc96,_0x4653db,_0x159941,_0xd39d78,_0x287b85,_0x4056f7,_0x1a57e6,_0x1ba556){const _0x391c72=_0x4deb9c;super(),_0x434a2a(this,'_online',!0x1),_0x434a2a(this,_0x391c72(0x4fb),!0x1),_0x434a2a(this,_0x391c72(0x36b),new _0x1837c6[(_0x391c72(0x17d))](new Map())),_0x434a2a(this,_0x391c72(0x23c),this[_0x391c72(0x36b)][_0x391c72(0x4eb)]()),_0x434a2a(this,_0x391c72(0x4f3),new _0x1837c6[(_0x391c72(0x17d))]([])),_0x434a2a(this,_0x391c72(0x3c0),this[_0x391c72(0x4f3)][_0x391c72(0x4f9)](_0x1837c6[_0x391c72(0x2a0)](_0x3408cd))),_0x434a2a(this,_0x391c72(0x4cd),_0xb2aa35((_0x11f8c1,_0x58e957)=>{const _0x5cbdce=_0x391c72,_0x1a324c={'eventID':_0x5c3399['CollaborationEvent'][_0x5cbdce(0x1c5)],'data':{'unitID':this[_0x5cbdce(0x282)],'memberID':this['_session'][_0x5cbdce(0x146)](),'selection':_0x3dc1ae[_0x5cbdce(0x3a8)](_0x11f8c1,_0x58e957[_0x5cbdce(0x408)])}};this[_0x5cbdce(0x39d)][_0x5cbdce(0x151)](_0x1a324c,this[_0x5cbdce(0x282)]);},_0x525db6)),(this['unitID']=_0x7fc96,this['_session']=_0x4653db,this[_0x391c72(0x25f)]=_0x159941,this['_colorAssignService']=_0xd39d78,this['_memberService']=_0x287b85,this[_0x391c72(0x391)]=_0x4056f7,this[_0x391c72(0x484)]=_0x1a57e6,this[_0x391c72(0x2a4)]=_0x1ba556);}get[_0x4deb9c(0x464)](){const _0x9e3ac6=_0x4deb9c;return this[_0x9e3ac6(0x36b)]['getValue']();}get[_0x4deb9c(0x281)](){const _0x3119a8=_0x4deb9c;return this[_0x3119a8(0x4f3)][_0x3119a8(0x22e)]();}['dispose'](){const _0x5e2042=_0x4deb9c;super[_0x5e2042(0x241)](),this[_0x5e2042(0x36b)][_0x5e2042(0x3e8)](new Map()),this[_0x5e2042(0x36b)][_0x5e2042(0x4d3)](),this['_roomMembers$']['next']([]),this['_roomMembers$']['complete']();}[_0x4deb9c(0x36a)](){const _0x5b9f1b=_0x4deb9c;this[_0x5b9f1b(0x4fb)]||(this[_0x5b9f1b(0x4fb)]=!0x0,this[_0x5b9f1b(0x39d)][_0x5b9f1b(0x501)][_0x5b9f1b(0x4f9)](_0x1837c6[_0x5b9f1b(0x23e)](this[_0x5b9f1b(0x423)]))[_0x5b9f1b(0x138)](_0x312591=>{const _0x541375=_0x5b9f1b;_0x312591===_0x4388c5[_0x541375(0x1df)]?this['_toggleOnline']():this[_0x541375(0x327)]();}),this[_0x5b9f1b(0x39d)][_0x5b9f1b(0x458)][_0x5b9f1b(0x4f9)](_0x1837c6[_0x5b9f1b(0x23e)](this['dispose$']))[_0x5b9f1b(0x138)](_0x4973d4=>{const _0x2e1614=_0x5b9f1b,_0x1e4d22=_0x4973d4[_0x2e1614(0x2aa)];_0x1e4d22===_0x5c3399['CollaborationEvent'][_0x2e1614(0x1c5)]&&this[_0x2e1614(0x181)](_0x4973d4),_0x1e4d22===_0x5c3399['CollaborationEvent'][_0x2e1614(0x203)]&&this[_0x2e1614(0x466)](_0x4973d4);}),this['_onRefRangeChange'](),this[_0x5b9f1b(0x446)](this[_0x5b9f1b(0x484)][_0x5b9f1b(0x27a)](_0x17c228=>{const _0x274211=_0x5b9f1b;if(this['_online']&&_0x17c228['id']===_0x5848ce[_0x274211(0x3b8)]['id']&&_0x17c228['params'][_0x274211(0x380)]===this[_0x274211(0x282)]){const _0x1e32d8=_0x17c228[_0x274211(0x3fd)];this[_0x274211(0x4cd)](_0x1e32d8['subUnitId'],_0x1e32d8[_0x274211(0x34d)][0x0]);}})));}[_0x4deb9c(0x181)](_0x38e7f5){const _0x59c7f3=_0x4deb9c;var _0x38a6b0,_0x5bab02;const {memberID:_0x295fd6,selection:_0x3811f3}=_0x38e7f5[_0x59c7f3(0xf9)],{sheetName:_0x41edb1,range:_0x6141a7}=_0x3dc1ae[_0x59c7f3(0x4e9)](_0x3811f3),_0x4c58aa={'name':(_0x5bab02=(_0x38a6b0=this[_0x59c7f3(0x4d4)][_0x59c7f3(0x438)](this[_0x59c7f3(0x282)],_0x295fd6))==null?void 0x0:_0x38a6b0[_0x59c7f3(0x2e1)])!=null?_0x5bab02:'Unknown\x20user','range':this[_0x59c7f3(0x296)](_0x41edb1,_0x6141a7),'sheetID':_0x41edb1,'color':this[_0x59c7f3(0x162)][_0x59c7f3(0x42e)](_0x295fd6),'selection':_0x3811f3},_0x32bc96=this['cursorInfo'];_0x32bc96[_0x59c7f3(0x2b2)](_0x295fd6,_0x4c58aa),this[_0x59c7f3(0x36b)]['next'](_0x32bc96);}[_0x4deb9c(0x466)](_0x3e8dc8){const _0x25ef15=_0x4deb9c,{memberID:_0x40f4f4}=_0x3e8dc8[_0x25ef15(0xf9)],_0x24491d=this[_0x25ef15(0x464)];_0x24491d[_0x25ef15(0x312)](_0x40f4f4),this['_cursorInfo$']['next'](_0x24491d);}[_0x4deb9c(0x296)](_0x5b7510,_0x1dcde3){const _0x20216f=_0x4deb9c;var _0x591fe5,_0x34bb3d;const _0x35d26f=(_0x34bb3d=(_0x591fe5=this[_0x20216f(0x391)][_0x20216f(0x471)](this[_0x20216f(0x282)]))==null?void 0x0:_0x591fe5[_0x20216f(0x3bf)](_0x5b7510))==null?void 0x0:_0x34bb3d[_0x20216f(0x302)]();return(_0x35d26f==null?void 0x0:_0x35d26f[_0x20216f(0x340)](_0x61ef93=>_0x44f3cf[_0x20216f(0x1b8)][_0x20216f(0x47b)](_0x61ef93,_0x1dcde3)))||_0x1dcde3;}['_onRefRangeChange'](){const _0x3db532=_0x4deb9c,_0x312234=new _0x44f3cf[(_0x3db532(0x1c7))](),_0x5dca43=_0x19a090(),_0x2f461d=()=>{const _0x245b69=_0x3db532;_0x312234['dispose']();const _0x590199=(_0x508228,_0x4d5be1,_0x4a3aa4,_0x1246ef)=>{const _0x14fbfc=_0x47c1;let _0x415944=[];switch(_0x508228['id']){case _0x5848ce[_0x14fbfc(0x2f2)]['DeleteRangeMoveLeftCommandId']:{_0x415944=_0x5848ce[_0x14fbfc(0x35b)](_0x508228,_0x1246ef);break;}case _0x5848ce['EffectRefRangId'][_0x14fbfc(0x245)]:{_0x415944=_0x5848ce['handleDeleteRangeMoveUp'](_0x508228,_0x1246ef);break;}case _0x5848ce['EffectRefRangId'][_0x14fbfc(0x250)]:{_0x415944=_0x5848ce['handleInsertCol'](_0x508228,_0x1246ef);break;}case _0x5848ce[_0x14fbfc(0x2f2)]['InsertRangeMoveDownCommandId']:{_0x415944=_0x5848ce[_0x14fbfc(0x36d)](_0x508228,_0x1246ef);break;}case _0x5848ce['EffectRefRangId'][_0x14fbfc(0x1d8)]:{_0x415944=_0x5848ce['handleInsertRangeMoveRight'](_0x508228,_0x1246ef);break;}case _0x5848ce[_0x14fbfc(0x2f2)]['InsertRowCommandId']:{_0x415944=_0x5848ce[_0x14fbfc(0x363)](_0x508228,_0x1246ef);break;}case _0x5848ce[_0x14fbfc(0x2f2)]['MoveRangeCommandId']:{_0x415944=_0x5848ce[_0x14fbfc(0x20d)](_0x508228,_0x1246ef);break;}case _0x5848ce[_0x14fbfc(0x2f2)][_0x14fbfc(0x1c9)]:{_0x415944=_0x5848ce['handleIRemoveCol'](_0x508228,_0x1246ef);break;}case _0x5848ce[_0x14fbfc(0x2f2)][_0x14fbfc(0x419)]:{_0x415944=_0x5848ce[_0x14fbfc(0x1ba)](_0x508228,_0x1246ef);break;}}const _0x5d992c=_0x5848ce[_0x14fbfc(0x44d)](_0x415944,_0x1246ef),_0x1966e2=this[_0x14fbfc(0x464)]['get'](_0x4d5be1);if(_0x1966e2&&_0x5d992c){const _0x2d0685={..._0x1966e2,'range':_0x5d992c};this['cursorInfo'][_0x14fbfc(0x2b2)](_0x4d5be1,_0x2d0685),_0x5dca43(()=>{const _0x3c5856=_0x14fbfc,_0x23c1fa=this[_0x3c5856(0x2a4)][_0x3c5856(0x3aa)](_0x5d992c,_0x43438d=>(_0x23c1fa['dispose'](),_0x590199(_0x43438d,_0x4d5be1,_0x4a3aa4,_0x5d992c)));_0x312234[_0x3c5856(0x117)](_0x23c1fa);});}return{'redos':[],'undos':[]};};this[_0x245b69(0x464)][_0x245b69(0x4cc)]((_0x1c40a7,_0x478e89)=>{const _0x370c35=_0x245b69,{range:_0x46b310,sheetID:_0x23d139}=_0x1c40a7,_0x2f1fde=this[_0x370c35(0x2a4)][_0x370c35(0x3aa)](_0x46b310,_0x8340f8=>(_0x2f1fde[_0x370c35(0x241)](),_0x590199(_0x8340f8,_0x478e89,_0x23d139,_0x46b310)));_0x312234[_0x370c35(0x117)](_0x2f1fde);});};this[_0x3db532(0x446)](_0x44f3cf[_0x3db532(0x133)](this['_cursorInfo$'][_0x3db532(0x138)](()=>{_0x2f461d();})));}[_0x4deb9c(0x346)](){const _0x4dfd6f=_0x4deb9c;var _0x56ac54,_0x2f120f;if(this[_0x4dfd6f(0x258)]=!0x0,((_0x56ac54=this[_0x4dfd6f(0x391)][_0x4dfd6f(0x1af)]())==null?void 0x0:_0x56ac54[_0x4dfd6f(0x43f)]())!==this[_0x4dfd6f(0x282)])return;const _0x554c8b=(_0x2f120f=this[_0x4dfd6f(0x25f)][_0x4dfd6f(0x38c)](_0x5848ce[_0x4dfd6f(0x13c)])[_0x4dfd6f(0x141)]())==null?void 0x0:_0x2f120f[0x0],_0x23eaba=this['_univerInstanceService']['getCurrentUnitForType'](_0x44f3cf[_0x4dfd6f(0x1bb)][_0x4dfd6f(0x402)])[_0x4dfd6f(0x4c5)]();_0x554c8b&&_0x23eaba&&this['_updateLocalCursor'](_0x23eaba['getSheetId'](),_0x554c8b);}[_0x4deb9c(0x327)](){const _0x5bfe39=_0x4deb9c;this[_0x5bfe39(0x258)]=!0x1;}};_0x593318=_0x24ddc6([_0x2c344e(0x2,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x2c344e(0x3,_0x44f3cf['Inject'](_0x491fbd)),_0x2c344e(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x32fe7e)),_0x2c344e(0x5,_0x44f3cf[_0x4deb9c(0x165)]),_0x2c344e(0x6,_0x44f3cf[_0x4deb9c(0x243)]),_0x2c344e(0x7,_0x44f3cf['Inject'](_0x5848ce[_0x4deb9c(0x22c)]))],_0x593318);var _0x2f359f=Object[_0x4deb9c(0x4f6)],_0x421005=Object[_0x4deb9c(0x3d9)],_0x4e045b=(_0x2d0cd9,_0x2f8ef5,_0x199a3e,_0x108cac)=>{const _0x17f646=_0x4deb9c;for(var _0x5c0b0b=_0x108cac>0x1?void 0x0:_0x108cac?_0x421005(_0x2f8ef5,_0x199a3e):_0x2f8ef5,_0x53fe09=_0x2d0cd9[_0x17f646(0x17a)]-0x1,_0x155396;_0x53fe09>=0x0;_0x53fe09--)(_0x155396=_0x2d0cd9[_0x53fe09])&&(_0x5c0b0b=(_0x108cac?_0x155396(_0x2f8ef5,_0x199a3e,_0x5c0b0b):_0x155396(_0x5c0b0b))||_0x5c0b0b);return _0x108cac&&_0x5c0b0b&&_0x2f359f(_0x2f8ef5,_0x199a3e,_0x5c0b0b),_0x5c0b0b;},_0x1ad801=(_0x490038,_0x1c2d0f)=>(_0x2ac74,_0x12f46b)=>_0x1c2d0f(_0x2ac74,_0x12f46b,_0x490038);const _0x12db7d=0x12c,_0x239aaf=0x64;let _0x35e6b3=class extends _0x44f3cf['RxDisposable']{constructor(_0x5062b8,_0x735f9d,_0x5ef33b,_0x2abb0b,_0x43ca58,_0xd97582,_0x5aa57a,_0x286a5d,_0xa71e45){const _0x3c2df1=_0x4deb9c;super(),_0x434a2a(this,_0x3c2df1(0x258),!0x1),_0x434a2a(this,_0x3c2df1(0x4fb),!0x1),_0x434a2a(this,_0x3c2df1(0x36b),new _0x1837c6['BehaviorSubject'](new Map())),_0x434a2a(this,_0x3c2df1(0x23c),this['_cursorInfo$'][_0x3c2df1(0x4eb)]()),_0x434a2a(this,'_roomMembers$',new _0x1837c6['BehaviorSubject']([])),_0x434a2a(this,_0x3c2df1(0x3c0),this[_0x3c2df1(0x4f3)][_0x3c2df1(0x4f9)](_0x1837c6[_0x3c2df1(0x2a0)](_0x12db7d))),_0x434a2a(this,'_updateLocalCursor',_0xb2aa35(_0x281fe3=>{const _0x594975=_0x3c2df1,_0x49f47b={'eventID':_0x5c3399[_0x594975(0x3d6)][_0x594975(0x1c5)],'data':{'unitID':this[_0x594975(0x282)],'memberID':this['_session'][_0x594975(0x146)](),'selection':_0x540863(_0x281fe3)}};this['_session'][_0x594975(0x151)](_0x49f47b,this[_0x594975(0x282)]);},_0x239aaf)),(this[_0x3c2df1(0x282)]=_0x5062b8,this[_0x3c2df1(0x39d)]=_0x735f9d,this[_0x3c2df1(0x25f)]=_0x5ef33b,this[_0x3c2df1(0x162)]=_0x2abb0b,this[_0x3c2df1(0x4d4)]=_0x43ca58,this[_0x3c2df1(0x177)]=_0xd97582,this[_0x3c2df1(0x3c2)]=_0x5aa57a,this[_0x3c2df1(0x391)]=_0x286a5d,this[_0x3c2df1(0x484)]=_0xa71e45);}get[_0x4deb9c(0x464)](){const _0x491286=_0x4deb9c;return this[_0x491286(0x36b)][_0x491286(0x22e)]();}get[_0x4deb9c(0x281)](){const _0x1e0cbb=_0x4deb9c;return this[_0x1e0cbb(0x4f3)][_0x1e0cbb(0x22e)]();}[_0x4deb9c(0x241)](){const _0x57a1ff=_0x4deb9c;super[_0x57a1ff(0x241)](),this[_0x57a1ff(0x36b)]['next'](new Map()),this[_0x57a1ff(0x36b)]['complete'](),this[_0x57a1ff(0x4f3)][_0x57a1ff(0x3e8)]([]),this['_roomMembers$'][_0x57a1ff(0x4d3)]();}[_0x4deb9c(0x36a)](){const _0x294f25=_0x4deb9c;this['_init']||(this['_init']=!0x0,this[_0x294f25(0x39d)][_0x294f25(0x501)][_0x294f25(0x4f9)](_0x1837c6[_0x294f25(0x23e)](this[_0x294f25(0x423)]))['subscribe'](_0x238623=>{const _0x1651eb=_0x294f25;_0x238623===_0x4388c5[_0x1651eb(0x1df)]?this[_0x1651eb(0x346)]():this[_0x1651eb(0x327)]();}),this[_0x294f25(0x39d)][_0x294f25(0x458)][_0x294f25(0x4f9)](_0x1837c6[_0x294f25(0x23e)](this[_0x294f25(0x423)]))['subscribe'](_0x4c3e2c=>{const _0x37c082=_0x294f25,_0x221f4b=_0x4c3e2c[_0x37c082(0x2aa)];_0x221f4b===_0x5c3399[_0x37c082(0x3d6)][_0x37c082(0x1c5)]&&this[_0x37c082(0x181)](_0x4c3e2c),_0x221f4b===_0x5c3399[_0x37c082(0x3d6)][_0x37c082(0x203)]&&this[_0x37c082(0x466)](_0x4c3e2c);}),this[_0x294f25(0x446)](this[_0x294f25(0x484)][_0x294f25(0x27a)](_0x1b54de=>{const _0x414c16=_0x294f25,_0xfb334=_0x1b54de[_0x414c16(0x3fd)];_0xfb334!=null&&this[_0x414c16(0x258)]&&_0x1b54de['id']===_0x495201[_0x414c16(0x3dd)]['id']&&_0xfb334['unitId']===this[_0x414c16(0x282)]&&_0xfb334[_0x414c16(0x401)]===!0x1&&this[_0x414c16(0x4cd)](_0xfb334[_0x414c16(0x29b)]);})),this['_syncEditingCollabCursorService'][_0x294f25(0x14b)][_0x294f25(0x4f9)](_0x1837c6[_0x294f25(0x23e)](this['dispose$']))[_0x294f25(0x138)](_0x2e275b=>{const _0x3d4b25=_0x294f25;if((_0x2e275b==null?void 0x0:_0x2e275b[_0x3d4b25(0x282)])!==this[_0x3d4b25(0x282)])return;const _0x48840d={'eventID':_0x5c3399[_0x3d4b25(0x3d6)][_0x3d4b25(0x1c5)],'data':_0x2e275b};this[_0x3d4b25(0x181)](_0x48840d);}),this[_0x294f25(0x446)](this[_0x294f25(0x484)][_0x294f25(0x27a)](_0x4408a1=>{const _0x2396d0=_0x294f25;if(_0x4408a1[_0x2396d0(0x3fd)]==null)return;const _0x3c3329=_0x4408a1['params'];if(_0x4408a1['id']!==_0x495201[_0x2396d0(0x41b)]['id']||_0x3c3329['unitId']!==this[_0x2396d0(0x282)])return;const _0x402c4b={'id':_0x2396d0(0x190),'params':_0x3c3329},_0x22dfac=this[_0x2396d0(0x464)];for(const [_0x265292,_0x5e897b]of _0x22dfac){const _0x4e7eaf={'id':_0x2396d0(0x190),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x5e897b['ranges']}},_0x57ec9a=this['_transformService'][_0x2396d0(0x3ea)](_0x402c4b,_0x4e7eaf,!0x1);if(_0x5c3399['isTransformMutationFailure'](_0x57ec9a))throw _0x57ec9a[_0x2396d0(0x46e)];_0x22dfac[_0x2396d0(0x2b2)](_0x265292,{..._0x5e897b,'ranges':_0x57ec9a[_0x2396d0(0x499)][_0x2396d0(0x3fd)][_0x2396d0(0x23f)]});}queueMicrotask(()=>{const _0x4ac7f7=_0x2396d0;this[_0x4ac7f7(0x36b)]['next'](_0x22dfac);});})));}[_0x4deb9c(0x181)](_0x4cf95b){const _0x219461=_0x4deb9c;var _0x1b74cf,_0x209945;const {memberID:_0x5b3cd9,selection:_0x5869e7}=_0x4cf95b[_0x219461(0xf9)],_0x565829=_0x58a905(_0x5869e7),_0xf03fee=(_0x209945=(_0x1b74cf=this[_0x219461(0x4d4)][_0x219461(0x438)](this[_0x219461(0x282)],_0x5b3cd9))==null?void 0x0:_0x1b74cf['name'])!=null?_0x209945:_0x219461(0x207),_0x32f608={'color':this['_colorAssignService'][_0x219461(0x42e)](_0x5b3cd9),'name':_0xf03fee,'ranges':_0x565829},_0x5334b6=this['cursorInfo'];_0x5334b6['set'](_0x5b3cd9,_0x32f608),this[_0x219461(0x36b)][_0x219461(0x3e8)](_0x5334b6);}['_onCursorDelete'](_0x170477){const _0x1ffa57=_0x4deb9c,{memberID:_0x4a332a}=_0x170477[_0x1ffa57(0xf9)],_0x554916=this['cursorInfo'];_0x554916['delete'](_0x4a332a),this[_0x1ffa57(0x36b)]['next'](_0x554916);}[_0x4deb9c(0x346)](){const _0x4c5e92=_0x4deb9c;var _0x120d62;if(this[_0x4c5e92(0x258)]=!0x0,((_0x120d62=this['_univerInstanceService'][_0x4c5e92(0x1af)]())==null?void 0x0:_0x120d62[_0x4c5e92(0x43f)]())!==this[_0x4c5e92(0x282)])return;const _0x6fcaec=this[_0x4c5e92(0x25f)][_0x4c5e92(0x38c)](_0x495201[_0x4c5e92(0x432)])['getDocRanges']();Array[_0x4c5e92(0x4be)](_0x6fcaec)&&_0x6fcaec['length']>0x0&&this[_0x4c5e92(0x4cd)](_0x6fcaec);}[_0x4deb9c(0x327)](){const _0x27b010=_0x4deb9c;this[_0x27b010(0x258)]=!0x1;}};_0x35e6b3=_0x4e045b([_0x1ad801(0x2,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x1ad801(0x3,_0x44f3cf['Inject'](_0x491fbd)),_0x1ad801(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x32fe7e)),_0x1ad801(0x5,_0x44f3cf[_0x4deb9c(0x2a6)](_0x47cf83)),_0x1ad801(0x6,_0x5c3399[_0x4deb9c(0x453)]),_0x1ad801(0x7,_0x44f3cf[_0x4deb9c(0x165)]),_0x1ad801(0x8,_0x44f3cf[_0x4deb9c(0x243)])],_0x35e6b3);var _0x34e90d=Object[_0x4deb9c(0x4f6)],_0x33b98e=Object['getOwnPropertyDescriptor'],_0x4633df=(_0x482dc5,_0x3f66e2,_0xd7723b,_0x57a441)=>{const _0x1a2510=_0x4deb9c;for(var _0x31b0c8=_0x57a441>0x1?void 0x0:_0x57a441?_0x33b98e(_0x3f66e2,_0xd7723b):_0x3f66e2,_0x224b7f=_0x482dc5[_0x1a2510(0x17a)]-0x1,_0x17ba10;_0x224b7f>=0x0;_0x224b7f--)(_0x17ba10=_0x482dc5[_0x224b7f])&&(_0x31b0c8=(_0x57a441?_0x17ba10(_0x3f66e2,_0xd7723b,_0x31b0c8):_0x17ba10(_0x31b0c8))||_0x31b0c8);return _0x57a441&&_0x31b0c8&&_0x34e90d(_0x3f66e2,_0xd7723b,_0x31b0c8),_0x31b0c8;},_0x5605e8=(_0x3e106f,_0x239ce8)=>(_0x5c8c84,_0x5ae3a5)=>_0x239ce8(_0x5c8c84,_0x5ae3a5,_0x3e106f);let _0xdbf3eb=class extends _0x44f3cf[_0x4deb9c(0x48b)]{constructor(_0x191894,_0x4e8abd,_0x3b363f){const _0x86dbb5=_0x4deb9c;super(),_0x434a2a(this,_0x86dbb5(0x2b6),new Map()),_0x434a2a(this,_0x86dbb5(0x284),new _0x1837c6[(_0x86dbb5(0x4a0))]()),(this['_univerInstanceService']=_0x191894,this[_0x86dbb5(0x25f)]=_0x4e8abd,this['_collabSessionService']=_0x3b363f,this[_0x86dbb5(0x4fb)]());}[_0x4deb9c(0x241)](){const _0x4ae702=_0x4deb9c;super[_0x4ae702(0x241)](),this['_entityInit$'][_0x4ae702(0x4d3)](),this[_0x4ae702(0x2b6)][_0x4ae702(0x4cc)](_0x6b2fb9=>_0x6b2fb9[_0x4ae702(0x241)]());}[_0x4deb9c(0x28e)](_0x553233){const _0x408f4b=_0x4deb9c;return this[_0x408f4b(0x2b6)][_0x408f4b(0x17f)](_0x553233)?this[_0x408f4b(0x2b6)][_0x408f4b(0x38c)](_0x553233)['cursorInfo$']:this[_0x408f4b(0x284)]['pipe'](_0x1837c6[_0x408f4b(0x39e)](_0x3b6048=>_0x3b6048[_0x408f4b(0x282)]===_0x553233),_0x1837c6['switchMap'](_0x10975d=>_0x10975d['cursorInfo$']));}[_0x4deb9c(0x4fb)](){const _0x23bfdf=_0x4deb9c;this['_univerInstanceService'][_0x23bfdf(0x3e1)](_0x44f3cf['UniverInstanceType'][_0x23bfdf(0x402)])[_0x23bfdf(0x4f9)](_0x1837c6[_0x23bfdf(0x23e)](this[_0x23bfdf(0x423)]))['subscribe'](async _0x29467b=>{const _0x3b1953=_0x23bfdf,_0x3289ca=_0x29467b[_0x3b1953(0x43f)](),_0x3af9da=await this['_startSheetCollabCursor'](_0x3289ca);this[_0x3b1953(0x284)][_0x3b1953(0x3e8)](_0x3af9da),this['_entities'][_0x3b1953(0x2b2)](_0x3289ca,_0x3af9da);}),this['_univerInstanceService'][_0x23bfdf(0x3e1)](_0x44f3cf[_0x23bfdf(0x1bb)][_0x23bfdf(0x350)])[_0x23bfdf(0x4f9)](_0x1837c6['takeUntil'](this['dispose$']))[_0x23bfdf(0x4f9)](_0x1837c6[_0x23bfdf(0x39e)](_0x8e948c=>!_0x8e948c[_0x23bfdf(0x43f)]()[_0x23bfdf(0x513)]('__')))['subscribe'](async _0x288e7f=>{const _0x594dc3=_0x23bfdf,_0x1d90e0=_0x288e7f[_0x594dc3(0x43f)](),_0x255e52=await this[_0x594dc3(0x115)](_0x1d90e0);this[_0x594dc3(0x284)][_0x594dc3(0x3e8)](_0x255e52),this[_0x594dc3(0x2b6)]['set'](_0x1d90e0,_0x255e52);}),_0x1837c6[_0x23bfdf(0xfb)](this[_0x23bfdf(0x391)]['getTypeOfUnitDisposed$'](_0x44f3cf[_0x23bfdf(0x1bb)][_0x23bfdf(0x350)]),this[_0x23bfdf(0x391)][_0x23bfdf(0x4a5)](_0x44f3cf[_0x23bfdf(0x1bb)]['UNIVER_SHEET']))[_0x23bfdf(0x4f9)](_0x1837c6[_0x23bfdf(0x23e)](this[_0x23bfdf(0x423)]))[_0x23bfdf(0x138)](_0x3d5729=>{const _0x12a6ca=_0x23bfdf,_0x4f2561=_0x3d5729[_0x12a6ca(0x43f)](),_0x5dc737=this[_0x12a6ca(0x2b6)][_0x12a6ca(0x38c)](_0x4f2561);_0x5dc737&&(_0x5dc737[_0x12a6ca(0x241)](),this[_0x12a6ca(0x2b6)][_0x12a6ca(0x312)](_0x4f2561));});}async[_0x4deb9c(0x3f9)](_0x4803fc){const _0x84157b=_0x4deb9c,_0x25b1db=await this['_collabSessionService'][_0x84157b(0x10f)](_0x4803fc),_0x2b8a36=this[_0x84157b(0x25f)][_0x84157b(0x427)](_0x593318,_0x4803fc,_0x25b1db);return _0x2b8a36[_0x84157b(0x36a)](),_0x2b8a36;}async[_0x4deb9c(0x115)](_0x3ab9aa){const _0x4f3d00=_0x4deb9c,_0x2790dc=await this[_0x4f3d00(0x359)]['requireSession'](_0x3ab9aa),_0x470510=this[_0x4f3d00(0x25f)]['createInstance'](_0x35e6b3,_0x3ab9aa,_0x2790dc);return _0x470510[_0x4f3d00(0x36a)](),_0x470510;}};_0xdbf3eb=_0x4633df([_0x44f3cf[_0x4deb9c(0x33b)](_0x44f3cf[_0x4deb9c(0x2b4)][_0x4deb9c(0x341)],_0xdbf3eb),_0x5605e8(0x0,_0x44f3cf[_0x4deb9c(0x165)]),_0x5605e8(0x1,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x5605e8(0x2,_0x44f3cf['Inject'](_0x3723aa[_0x4deb9c(0x433)]))],_0xdbf3eb);const _0x3c5a01=0x14,_0x3dd400=0xc8,_0x4ce1de=0x4,_0x28c3b4=0x5;function _0x157a19(_0x1b2458,_0x5a6a22){const _0x396393=_0x4deb9c;let {radius:_0x26f991,width:_0x51c0a8,height:_0x266bdd}=_0x5a6a22;_0x26f991=_0x26f991!=null?_0x26f991:0x0,_0x51c0a8=_0x51c0a8!=null?_0x51c0a8:0x1e,_0x266bdd=_0x266bdd!=null?_0x266bdd:0x1e;let _0x38a063=0x0,_0x8af395=0x0,_0x25af4b=0x0;_0x38a063=_0x8af395=_0x25af4b=Math[_0x396393(0x110)](_0x26f991,_0x51c0a8/0x2,_0x266bdd/0x2),_0x1b2458[_0x396393(0x38e)](),_0x1b2458[_0x396393(0x1b4)](_0x38a063,0x0),_0x1b2458[_0x396393(0x185)](_0x51c0a8-_0x8af395,0x0),_0x1b2458[_0x396393(0x308)](_0x51c0a8-_0x8af395,_0x8af395,_0x8af395,Math['PI']*0x3/0x2,0x0,!0x1),_0x1b2458['lineTo'](_0x51c0a8,_0x266bdd-_0x25af4b),_0x1b2458[_0x396393(0x308)](_0x51c0a8-_0x25af4b,_0x266bdd-_0x25af4b,_0x25af4b,0x0,Math['PI']/0x2,!0x1),_0x1b2458['lineTo'](0x0,_0x266bdd),_0x1b2458[_0x396393(0x185)](0x0,_0x38a063),_0x1b2458['arc'](_0x38a063,_0x38a063,_0x38a063,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1b2458['closePath'](),_0x5a6a22[_0x396393(0x38f)]&&(_0x1b2458['save'](),_0x1b2458[_0x396393(0x21d)]=_0x5a6a22[_0x396393(0x38f)],_0x5a6a22['fillRule']===_0x396393(0x43b)?_0x1b2458[_0x396393(0x38f)](_0x396393(0x43b)):_0x1b2458[_0x396393(0x38f)](),_0x1b2458[_0x396393(0x1cb)]());}class _0x535b1d extends _0x278226[_0x4deb9c(0x2ce)]{constructor(_0x258abf,_0x5d81e2){const _0x2e4255=_0x4deb9c;super(_0x258abf,_0x5d81e2),_0x434a2a(this,_0x2e4255(0x2ad)),_0x434a2a(this,'text'),(this[_0x2e4255(0x2ad)]=_0x5d81e2==null?void 0x0:_0x5d81e2[_0x2e4255(0x2ad)],this['text']=_0x5d81e2==null?void 0x0:_0x5d81e2[_0x2e4255(0x4c1)]);}static[_0x4deb9c(0x368)](_0x47351e,_0x3c5072){const _0x3e42fc=_0x4deb9c,{text:_0x1e208e,color:_0x159e1e}=_0x3c5072;_0x47351e[_0x3e42fc(0x455)](),_0x47351e[_0x3e42fc(0x1a6)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x39a96e=_0x47351e[_0x3e42fc(0x3f6)](_0x1e208e)[_0x3e42fc(0x357)],_0xbba0a3=Math[_0x3e42fc(0x110)](_0x39a96e+0x2*_0x4ce1de,_0x3dd400);_0x157a19(_0x47351e,{'height':_0x3c5a01,'radius':0x4,'width':_0xbba0a3,'fill':_0x159e1e,'evented':!0x1}),_0x47351e['fillStyle']='#FFF';const _0x46b31e=_0x4ce1de,_0x2d4a4b=_0x3c5a01-_0x28c3b4,_0x57ae1c=_0x3dd400-0x2*_0x4ce1de;if(_0x39a96e>_0x57ae1c){let _0x188318='',_0x8f9de4=0x0;for(const _0x5f59a4 of _0x1e208e){const _0x5d7277=_0x47351e[_0x3e42fc(0x3f6)](_0x5f59a4)[_0x3e42fc(0x357)];if(_0x8f9de4+_0x5d7277<=_0x57ae1c-_0x47351e[_0x3e42fc(0x3f6)](_0x3e42fc(0x272))[_0x3e42fc(0x357)])_0x188318+=_0x5f59a4,_0x8f9de4+=_0x5d7277;else{_0x188318+=_0x3e42fc(0x272);break;}}_0x47351e[_0x3e42fc(0x1fc)](_0x188318,_0x46b31e,_0x2d4a4b);}else _0x47351e[_0x3e42fc(0x1fc)](_0x1e208e,_0x46b31e,_0x2d4a4b);_0x47351e[_0x3e42fc(0x1cb)]();}[_0x4deb9c(0x2b9)](_0x58efe3){const _0x4ec558=_0x4deb9c;_0x535b1d[_0x4ec558(0x368)](_0x58efe3,this);}}const _0x3db88a=0x1,_0x4a663e=1.5;class _0x1fe35d extends _0x278226['Shape']{constructor(_0x3a01ea,_0x2e8107){const _0x41676b=_0x4deb9c;super(_0x3a01ea,_0x2e8107),_0x434a2a(this,_0x41676b(0x2bc)),_0x434a2a(this,'_hovered',!0x1),_0x434a2a(this,'_range'),_0x434a2a(this,_0x41676b(0x3a7),''),_0x434a2a(this,'_labelPosition',_0x41676b(0x452)),_0x434a2a(this,'_backgroundColor'),(_0x2e8107&&this[_0x41676b(0x35a)](_0x2e8107),this[_0x41676b(0x30d)][_0x41676b(0xff)](()=>this[_0x41676b(0x35a)]({'hovered':!0x0})),this[_0x41676b(0x1b7)]['subscribeEvent'](()=>this[_0x41676b(0x35a)]({'hovered':!0x1})));}['setShapeProps'](_0x46902a){const _0x537cd8=_0x4deb9c;var _0x173d66,_0x2e8130,_0x3251ce,_0x53744a,_0x4d12b3,_0x3315c0;this[_0x537cd8(0x2bc)]=(_0x173d66=_0x46902a[_0x537cd8(0x2ad)])!=null?_0x173d66:this[_0x537cd8(0x2bc)],this[_0x537cd8(0x463)]=(_0x2e8130=_0x46902a[_0x537cd8(0x4f4)])!=null?_0x2e8130:this['_hovered'],this[_0x537cd8(0x376)]=(_0x3251ce=_0x46902a['range'])!=null?_0x3251ce:this[_0x537cd8(0x376)],this[_0x537cd8(0x3a7)]=(_0x53744a=_0x46902a[_0x537cd8(0x2e1)])!=null?_0x53744a:this[_0x537cd8(0x3a7)],this['_labelPosition']=(_0x4d12b3=_0x46902a[_0x537cd8(0x1c6)])!=null?_0x4d12b3:this[_0x537cd8(0x348)],this[_0x537cd8(0x48c)]=(_0x3315c0=_0x46902a['backgroundColor'])!=null?_0x3315c0:this[_0x537cd8(0x48c)],this[_0x537cd8(0x398)]({'width':_0x46902a[_0x537cd8(0x357)],'height':_0x46902a[_0x537cd8(0x324)]});}[_0x4deb9c(0x27b)](_0x468185){const _0xec4d64=_0x4deb9c,{row:_0x2ad78f,column:_0x5a2b71}=_0x468185;if(_0x2ad78f>=this[_0xec4d64(0x376)][_0xec4d64(0x22f)]&&_0x2ad78f<=this[_0xec4d64(0x376)][_0xec4d64(0x2c5)]&&_0x5a2b71>=this['_range']['startColumn']&&_0x5a2b71<=this['_range']['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0xec4d64(0x35a)]({'hovered':!0x1});}[_0x4deb9c(0x447)](_0x1bccac){return!0x1;}[_0x4deb9c(0x2b9)](_0x130bb5){const _0x4a4327=_0x4deb9c;_0x278226[_0x4a4327(0xfe)][_0x4a4327(0x368)](_0x130bb5,{'width':this['width'],'height':this[_0x4a4327(0x324)],'strokeWidth':_0x4a663e,'stroke':this[_0x4a4327(0x2bc)],'evented':!0x1,'fill':this[_0x4a4327(0x48c)]}),this['_hovered']&&(_0x130bb5[_0x4a4327(0x455)](),_0x130bb5[_0x4a4327(0x37a)](0x1,0x0,0x0,0x1,this[_0x4a4327(0x357)],this[_0x4a4327(0x348)]===_0x4a4327(0x3f2)?0x0:-_0x3c5a01),_0x535b1d[_0x4a4327(0x368)](_0x130bb5,{'text':this[_0x4a4327(0x3a7)],'color':this[_0x4a4327(0x2bc)]}),_0x130bb5[_0x4a4327(0x1cb)]());}}var _0x57aa9a=Object[_0x4deb9c(0x4f6)],_0x33ab00=Object['getOwnPropertyDescriptor'],_0x51fa76=(_0x3ce237,_0x42266d,_0x16eaaa,_0x5bd5f8)=>{const _0x4cb1d4=_0x4deb9c;for(var _0x18f3d1=_0x5bd5f8>0x1?void 0x0:_0x5bd5f8?_0x33ab00(_0x42266d,_0x16eaaa):_0x42266d,_0x4fdabb=_0x3ce237[_0x4cb1d4(0x17a)]-0x1,_0xb60084;_0x4fdabb>=0x0;_0x4fdabb--)(_0xb60084=_0x3ce237[_0x4fdabb])&&(_0x18f3d1=(_0x5bd5f8?_0xb60084(_0x42266d,_0x16eaaa,_0x18f3d1):_0xb60084(_0x18f3d1))||_0x18f3d1);return _0x5bd5f8&&_0x18f3d1&&_0x57aa9a(_0x42266d,_0x16eaaa,_0x18f3d1),_0x18f3d1;},_0x1de15f=(_0x4b6bd3,_0x31a7b9)=>(_0x461617,_0x5c1674)=>_0x31a7b9(_0x461617,_0x5c1674,_0x4b6bd3);const _0x5a6f0a=0x1389;let _0x626aa7=class extends _0x44f3cf[_0x4deb9c(0x48b)]{constructor(_0x108019,_0x47d048,_0x31369e,_0x3b69c0){const _0x1ae99f=_0x4deb9c;super(),_0x434a2a(this,_0x1ae99f(0x2b3),new Set()),_0x434a2a(this,_0x1ae99f(0x13b),null),(this[_0x1ae99f(0x1fb)]=_0x108019,this[_0x1ae99f(0x1be)]=_0x47d048,this['_collabCursorController']=_0x31369e,this['_themeService']=_0x3b69c0,this['_init']());}[_0x4deb9c(0x4fb)](){const _0xe37264=_0x4deb9c;this[_0xe37264(0x1be)]['currentSkeleton$'][_0xe37264(0x4f9)](_0x3ab9e8['takeUntil'](this[_0xe37264(0x423)]),_0x3ab9e8[_0xe37264(0x477)](_0x4c02ca=>{const _0x57bf83=_0xe37264;if(_0x4c02ca){const _0x389e57=_0x4c02ca[_0x57bf83(0x37c)];return _0x1837c6[_0x57bf83(0x167)](this[_0x57bf83(0x35f)]['getCollabCursors$'](this['_context']['unitId']),this['_themeService'][_0x57bf83(0x485)])[_0x57bf83(0x4f9)](_0x3ab9e8['map'](([_0x582b9f,_0x131a98])=>{const _0x4d2c98=new Map();return _0x582b9f['forEach']((_0x2ee13c,_0x2e4a02)=>{const _0x1bc5df=_0x47c1;if(_0x2ee13c[_0x1bc5df(0x422)]===_0x389e57){const _0xdf65b0={..._0x2ee13c};_0xdf65b0[_0x1bc5df(0x2ad)]=_0x131a98[_0x2ee13c['color']],_0x4d2c98[_0x1bc5df(0x2b2)](_0x2e4a02,_0xdf65b0);}}),{'skeleton':_0x4c02ca,'cursors':_0x4d2c98};}));}return _0x1837c6['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x5013b6,cursors:_0x48d593})=>{const _0x2cc966=_0xe37264;this[_0x2cc966(0x192)](),_0x5013b6&&this[_0x2cc966(0x10a)](_0x5013b6,_0x48d593);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0xe37264(0x138)](_0x345b86=>{const _0x1624b6=_0xe37264;if(_0x345b86==null)return;const {skeleton:_0x22f0e5}=_0x345b86,{scene:_0x4c7364}=this[_0x1624b6(0x1fb)];_0x4c7364[_0x1624b6(0x19d)][_0x1624b6(0xff)](_0xb2aa35(_0x1835fa=>{const _0x46cf92=_0x1624b6;var _0x16e2ff,_0x4ac0c8;const {offsetX:_0x17ee82,offsetY:_0x14b7bb}=_0x1835fa,{x:_0x516f0d,y:_0x4a4dce}=_0x4c7364[_0x46cf92(0x157)](_0x278226[_0x46cf92(0x114)][_0x46cf92(0x197)]([_0x17ee82,_0x14b7bb])),{scaleX:_0xa74dda,scaleY:_0x1c3179}=_0x4c7364[_0x46cf92(0x107)](),_0x12e351=_0x4c7364[_0x46cf92(0x326)](_0x2c9d11[_0x46cf92(0x2a1)][_0x46cf92(0x514)]),_0x593c95=_0x4c7364['getVpScrollXYInfoByPosToVp'](_0x278226[_0x46cf92(0x114)][_0x46cf92(0x197)]([_0x516f0d,_0x4a4dce]),_0x12e351),_0x427d27=_0x22f0e5[_0x46cf92(0x137)](_0x17ee82,_0x14b7bb,_0xa74dda,_0x1c3179,_0x593c95);((_0x16e2ff=this[_0x46cf92(0x13b)])==null?void 0x0:_0x16e2ff['column'])===_0x427d27['column']&&((_0x4ac0c8=this[_0x46cf92(0x13b)])==null?void 0x0:_0x4ac0c8[_0x46cf92(0x4c2)])===_0x427d27[_0x46cf92(0x4c2)]||this[_0x46cf92(0x2b3)]['forEach'](_0x3b093a=>{_0x3b093a['onMouseMove'](_0x427d27);});},0x64));});}[_0x4deb9c(0x10a)](_0x535f61,_0x152b6e){const _0x3b7e36=_0x4deb9c;var _0x2376f3;const _0x3bafb5=(_0x2376f3=this[_0x3b7e36(0x1be)]['getCurrent']())==null?void 0x0:_0x2376f3[_0x3b7e36(0x369)];if(!_0x3bafb5)return;const _0x1f4a76=this['_getSheetObject']();if(!_0x1f4a76)return;this[_0x3b7e36(0x2b3)][_0x3b7e36(0x4cc)](_0x50c885=>{const _0x304ba9=_0x3b7e36;_0x50c885[_0x304ba9(0x2e2)]();});const {scene:_0x342e9a}=_0x1f4a76,_0x9aeb4d=_0x34fd32(Array[_0x3b7e36(0x4de)](_0x152b6e[_0x3b7e36(0x4f5)]()))['map'](_0x180ae6=>{const _0x579e99=_0x3b7e36,{color:_0x17b6d2,range:_0x27c6b1,name:_0x2383e9,selection:_0x8bb3a1,sheetID:_0x581ed9}=_0x180ae6,{startColumn:_0x3f5e2f,startRow:_0x29d3cd,endColumn:_0x1da928,endRow:_0x4217dd}=_0x27c6b1,_0x512e8b=_0x2c9d11[_0x579e99(0x2cf)](_0x29d3cd,_0x3f5e2f,_0x342e9a,_0x3bafb5),_0x57e8ce=_0x2c9d11[_0x579e99(0x2cf)](_0x4217dd,_0x1da928,_0x342e9a,_0x3bafb5),{columnHeaderHeightAndMarginTop:_0x5c559b}=_0x3bafb5,{startX:_0x5444ee,startY:_0x317718}=_0x512e8b,{endX:_0x1d33ba,endY:_0xc2e08}=_0x57e8ce,_0x1fad52=_0x1d33ba-_0x5444ee,_0x3819d4=_0xc2e08-_0x317718,_0x1435aa={'labelPosition':_0x317718-_0x5c559b>=_0x3c5a01?_0x579e99(0x452):_0x579e99(0x3f2),'sheetID':_0x581ed9,'range':_0x27c6b1,'color':_0x17b6d2,'name':_0x2383e9,'selection':_0x8bb3a1,'left':_0x5444ee,'top':_0x317718,'width':_0x1fad52,'height':_0x3819d4,'evented':!0x1,'zIndex':_0x5a6f0a};return new _0x1fe35d(_0x2383e9,_0x1435aa);});_0x342e9a[_0x3b7e36(0x164)](_0x9aeb4d,_0x3db88a),this[_0x3b7e36(0x2b3)]=new Set(_0x9aeb4d);}[_0x4deb9c(0x192)](){const _0xbdfac3=_0x4deb9c;var _0x3f1b7b;(_0x3f1b7b=this[_0xbdfac3(0x2b3)])==null||_0x3f1b7b['forEach'](_0x353d45=>_0x353d45[_0xbdfac3(0x241)]());}[_0x4deb9c(0x2ae)](){const _0x2e53c4=_0x4deb9c;return _0x2c9d11[_0x2e53c4(0x28c)](this[_0x2e53c4(0x1fb)]['unit'],this[_0x2e53c4(0x1fb)]);}};_0x626aa7=_0x51fa76([_0x1de15f(0x1,_0x44f3cf['Inject'](_0x2c9d11['SheetSkeletonManagerService'])),_0x1de15f(0x2,_0x44f3cf[_0x4deb9c(0x2a6)](_0xdbf3eb)),_0x1de15f(0x3,_0x44f3cf['Inject'](_0x44f3cf[_0x4deb9c(0x379)]))],_0x626aa7);function _0x34fd32(_0x5a8f28){const _0x37123a=_0x4deb9c,_0x35567a=new Map();return _0x5a8f28['forEach'](_0x496c97=>{const _0x5d44e7=_0x47c1;if(_0x35567a[_0x5d44e7(0x17f)](_0x496c97['selection'])){const _0x6d2cc4=_0x35567a[_0x5d44e7(0x38c)](_0x496c97['selection']);_0x6d2cc4[_0x5d44e7(0x2e1)]+=',\x20'+_0x496c97[_0x5d44e7(0x2e1)];}else _0x35567a['set'](_0x496c97[_0x5d44e7(0x3e5)],_0x496c97);}),Array['from'](_0x35567a[_0x37123a(0x4f5)]());}var _0xff5128=function(){const _0x5729b4=_0x4deb9c;return _0xff5128=Object[_0x5729b4(0x378)]||function(_0x5e7774){const _0x25408f=_0x5729b4;for(var _0x873cb1,_0x13b4f5=0x1,_0x3e2b23=arguments[_0x25408f(0x17a)];_0x13b4f5<_0x3e2b23;_0x13b4f5++){_0x873cb1=arguments[_0x13b4f5];for(var _0x4b433c in _0x873cb1)Object[_0x25408f(0x235)][_0x25408f(0x366)][_0x25408f(0x2d0)](_0x873cb1,_0x4b433c)&&(_0x5e7774[_0x4b433c]=_0x873cb1[_0x4b433c]);}return _0x5e7774;},_0xff5128[_0x5729b4(0x3ba)](this,arguments);},_0x5a22df=function(_0x29513b,_0x34a14b){const _0x4ba66b=_0x4deb9c;var _0x543cb0={};for(var _0x49c1c8 in _0x29513b)Object[_0x4ba66b(0x235)]['hasOwnProperty'][_0x4ba66b(0x2d0)](_0x29513b,_0x49c1c8)&&_0x34a14b['indexOf'](_0x49c1c8)<0x0&&(_0x543cb0[_0x49c1c8]=_0x29513b[_0x49c1c8]);if(_0x29513b!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x35eea8=0x0,_0x49c1c8=Object[_0x4ba66b(0x10d)](_0x29513b);_0x35eea8<_0x49c1c8[_0x4ba66b(0x17a)];_0x35eea8++)_0x34a14b[_0x4ba66b(0x377)](_0x49c1c8[_0x35eea8])<0x0&&Object['prototype'][_0x4ba66b(0x240)][_0x4ba66b(0x2d0)](_0x29513b,_0x49c1c8[_0x35eea8])&&(_0x543cb0[_0x49c1c8[_0x35eea8]]=_0x29513b[_0x49c1c8[_0x35eea8]]);}return _0x543cb0;},_0x2c75a8=_0x5efe28[_0x4deb9c(0x328)](function(_0x5d37ed,_0x59c3c5){const _0x4be049=_0x4deb9c;var _0x54ca87=_0x5d37ed[_0x4be049(0x2fe)],_0x4c8ba1=_0x5d37ed['id'],_0x3c4dce=_0x5d37ed[_0x4be049(0x512)],_0x6d4293=_0x5d37ed[_0x4be049(0x370)],_0x2844a1=_0x5a22df(_0x5d37ed,['icon','id','className',_0x4be049(0x370)]),_0x5a49d0=_0x4be049(0x498)[_0x4be049(0x4cf)](_0x4c8ba1,'\x20')[_0x4be049(0x4cf)](_0x3c4dce||'')[_0x4be049(0x2f3)](),_0x2befb8=_0x5efe28[_0x4be049(0x12c)]('_'[_0x4be049(0x4cf)](_0x70fd2a()));return _0x1e6e71(_0x54ca87,''['concat'](_0x4c8ba1),{'defIds':_0x54ca87['defIds'],'idSuffix':_0x2befb8[_0x4be049(0x2be)]},_0xff5128({'ref':_0x59c3c5,'className':_0x5a49d0},_0x2844a1),_0x6d4293);});function _0x1e6e71(_0x3236cc,_0x462a31,_0x160a19,_0x113f00,_0xfa079d){const _0x914b8d=_0x4deb9c;return _0x5efe28[_0x914b8d(0x36e)](_0x3236cc[_0x914b8d(0x2f5)],_0xff5128(_0xff5128({'key':_0x462a31},_0x5b94ce(_0x3236cc,_0x160a19,_0xfa079d)),_0x113f00),(_0x5a7bd3(_0x3236cc,_0x160a19)[_0x914b8d(0x461)]||[])[_0x914b8d(0x269)](function(_0x5c4025,_0x55f95a){const _0x160bca=_0x914b8d;return _0x1e6e71(_0x5c4025,''[_0x160bca(0x4cf)](_0x462a31,'-')['concat'](_0x3236cc[_0x160bca(0x2f5)],'-')[_0x160bca(0x4cf)](_0x55f95a),_0x160a19,void 0x0,_0xfa079d);}));}function _0x5b94ce(_0x25e1b9,_0x149b2c,_0x28e5ec){const _0x5c3d1c=_0x4deb9c;var _0x217bb8=_0xff5128({},_0x25e1b9[_0x5c3d1c(0x142)]);_0x28e5ec!=null&&_0x28e5ec[_0x5c3d1c(0x187)]&&_0x217bb8[_0x5c3d1c(0x38f)]===_0x5c3d1c(0x187)&&(_0x217bb8[_0x5c3d1c(0x38f)]=_0x28e5ec[_0x5c3d1c(0x187)]);var _0x30b50b=_0x149b2c[_0x5c3d1c(0x201)];return!_0x30b50b||_0x30b50b[_0x5c3d1c(0x17a)]===0x0||(_0x25e1b9[_0x5c3d1c(0x2f5)]===_0x5c3d1c(0x15d)&&_0x217bb8[_0x5c3d1c(0x266)]&&(_0x217bb8[_0x5c3d1c(0x266)]=_0x217bb8[_0x5c3d1c(0x266)]+_0x149b2c[_0x5c3d1c(0x49d)]),Object[_0x5c3d1c(0x443)](_0x217bb8)[_0x5c3d1c(0x4cc)](function(_0xc07c21){const _0x2ac366=_0x5c3d1c;var _0x4971ed=_0xc07c21[0x0],_0x2f7c46=_0xc07c21[0x1];typeof _0x2f7c46=='string'&&(_0x217bb8[_0x4971ed]=_0x2f7c46['replace'](/url\(#(.*)\)/,_0x2ac366(0x4c7)['concat'](_0x149b2c['idSuffix'],')')));})),_0x217bb8;}function _0x5a7bd3(_0x37af2b,_0x9ba020){const _0x34f837=_0x4deb9c;var _0x5e5832,_0x39ef70=_0x9ba020[_0x34f837(0x201)];return!_0x39ef70||_0x39ef70[_0x34f837(0x17a)]===0x0?_0x37af2b:_0x37af2b['tag']==='defs'&&(!((_0x5e5832=_0x37af2b['children'])===null||_0x5e5832===void 0x0)&&_0x5e5832[_0x34f837(0x17a)])?_0xff5128(_0xff5128({},_0x37af2b),{'children':_0x37af2b[_0x34f837(0x461)][_0x34f837(0x269)](function(_0x51512e){const _0x4cdc10=_0x34f837;return typeof _0x51512e[_0x4cdc10(0x142)]['id']=='string'&&_0x39ef70&&_0x39ef70[_0x4cdc10(0x377)](_0x51512e[_0x4cdc10(0x142)]['id'])>-0x1?_0xff5128(_0xff5128({},_0x51512e),{'attrs':_0xff5128(_0xff5128({},_0x51512e[_0x4cdc10(0x142)]),{'id':_0x51512e[_0x4cdc10(0x142)]['id']+_0x9ba020[_0x4cdc10(0x49d)]})}):_0x51512e;})}):_0x37af2b;}function _0x70fd2a(){const _0x3180e9=_0x4deb9c;return Math[_0x3180e9(0x244)]()[_0x3180e9(0x23d)](0x24)[_0x3180e9(0x20a)](0x2,0x8);}_0x2c75a8[_0x4deb9c(0x2b5)]=_0x4deb9c(0x3e4);var _0x226108={'tag':_0x4deb9c(0x425),'attrs':{'fill':'none','viewBox':_0x4deb9c(0x457),'width':_0x4deb9c(0x424),'height':_0x4deb9c(0x424)},'children':[{'tag':'g','attrs':{'clipPath':_0x4deb9c(0x4a9)},'children':[{'tag':_0x4deb9c(0x342),'attrs':{'stroke':_0x4deb9c(0x225),'d':_0x4deb9c(0x33a),'strokeLinecap':'round','strokeLinejoin':_0x4deb9c(0x1f4),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4deb9c(0x406),'attrs':{'id':_0x4deb9c(0x3f0)},'children':[{'tag':_0x4deb9c(0x342),'attrs':{'fill':_0x4deb9c(0x32a),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x4deb9c(0x3f0)]},_0x3d73d5=_0x5efe28[_0x4deb9c(0x328)](function(_0x40de8b,_0x2030d2){const _0x39ce3b=_0x4deb9c;return _0x5efe28['createElement'](_0x2c75a8,Object[_0x39ce3b(0x378)]({},_0x40de8b,{'id':_0x39ce3b(0x31b),'ref':_0x2030d2,'icon':_0x226108}));});_0x3d73d5[_0x4deb9c(0x2b5)]=_0x4deb9c(0x49b);var _0x443c44={'tag':_0x4deb9c(0x425),'attrs':{'fill':_0x4deb9c(0x2b1),'viewBox':_0x4deb9c(0x1e9),'width':'1em','height':_0x4deb9c(0x424)},'children':[{'tag':'g','attrs':{'clipPath':_0x4deb9c(0x136)},'children':[{'tag':_0x4deb9c(0x342),'attrs':{'stroke':_0x4deb9c(0x225),'d':_0x4deb9c(0x3a2),'strokeLinecap':_0x4deb9c(0x1f4),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4deb9c(0x231)},'children':[{'tag':_0x4deb9c(0x342),'attrs':{'fill':_0x4deb9c(0x32a),'d':_0x4deb9c(0xf8),'transform':_0x4deb9c(0x19b)}}]}]}],'defIds':[_0x4deb9c(0x231)]},_0x1f8a81=_0x5efe28[_0x4deb9c(0x328)](function(_0x358350,_0x19a8ae){const _0x3dc8ed=_0x4deb9c;return _0x5efe28[_0x3dc8ed(0x36e)](_0x2c75a8,Object[_0x3dc8ed(0x378)]({},_0x358350,{'id':_0x3dc8ed(0x3ce),'ref':_0x19a8ae,'icon':_0x443c44}));});_0x1f8a81[_0x4deb9c(0x2b5)]='OnLineSingle';const _0x33fb47={'onlineStatusIcon':_0x4deb9c(0x307),'onlineStatusTitle':'univer-online-status-title','onlineStatus':_0x4deb9c(0x1b1),'online':'univer-online','offline':_0x4deb9c(0x34c)};function _0x2688e4(_0x19be52){const _0xb032cd=_0x4deb9c;switch(_0x19be52){case _0x1a5e20['OFFLINE']:return _0xb032cd(0x1c8);case _0x1a5e20[_0xb032cd(0x3d2)]:return _0xb032cd(0x161);case _0x1a5e20[_0xb032cd(0x28a)]:return _0xb032cd(0x4e6);case _0x1a5e20['NOT_COLLAB']:return _0xb032cd(0x179);case _0x1a5e20[_0xb032cd(0x3ff)]:case _0x1a5e20['AWAITING']:case _0x1a5e20[_0xb032cd(0x410)]:return'collabStatus.syncing';case _0x1a5e20[_0xb032cd(0x206)]:return'collabStatus.synced';}}function _0x1e6808(_0x1e6367){const _0x33069f=_0x4deb9c,{status$:_0x4b4974}=_0x1e6367,_0x4cc21d=_0x90d6c1[_0x33069f(0x430)](_0x4b4974,_0x1a5e20[_0x33069f(0x1c0)]),_0x3b7a5e=_0x44f3cf[_0x33069f(0x125)](_0x44f3cf[_0x33069f(0x440)]),_0x1e31bc=_0x44f3cf[_0x33069f(0x125)](_0x3723aa[_0x33069f(0x433)]),_0x4014cf=_0x4cc21d!==_0x1a5e20['OFFLINE'],_0x38f87d=_0x3b7a5e['t'](_0x2688e4(_0x4cc21d)),_0x11829e=_0x491e99(_0x33fb47[_0x33069f(0x4fe)],{[_0x33fb47[_0x33069f(0x1b5)]]:_0x4014cf,[_0x33fb47[_0x33069f(0x143)]]:!_0x4014cf}),_0x387e38=_0x4014cf?_0x5efe28[_0x33069f(0x36e)](_0x1f8a81,null):_0x5efe28[_0x33069f(0x36e)](_0x3d73d5,null),_0x3f06a9=_0x5efe28[_0x33069f(0x291)](()=>{const _0x220f15=_0x33069f;_0x4014cf||_0x1e31bc[_0x220f15(0x489)]();},[_0x4014cf,_0x1e31bc]);function _0x59b758(){const _0x6024a4=_0x33069f;return _0x5efe28['createElement'](_0x6024a4(0x265),{'className':_0x11829e,'onClick':_0x3f06a9},_0x5efe28[_0x6024a4(0x36e)](_0x6024a4(0x265),{'className':_0x33fb47[_0x6024a4(0x47a)]},_0x387e38),_0x5efe28[_0x6024a4(0x36e)](_0x6024a4(0x265),{'className':_0x33fb47[_0x6024a4(0x2c0)]},_0x38f87d));}return _0x4014cf?_0x59b758():_0x5efe28[_0x33069f(0x36e)](_0x1c0df8[_0x33069f(0x39f)],{'title':_0x3b7a5e['t']('collab-client.tooltip.reconnect')},_0x59b758());}var _0xffc496=Object[_0x4deb9c(0x4f6)],_0x4d27da=Object[_0x4deb9c(0x3d9)],_0x1b384f=(_0x4dca24,_0x2a4c02,_0x3ffd86,_0x2dc0b0)=>{for(var _0x2e5c2a=_0x2dc0b0>0x1?void 0x0:_0x2dc0b0?_0x4d27da(_0x2a4c02,_0x3ffd86):_0x2a4c02,_0x2b13d2=_0x4dca24['length']-0x1,_0x1ffcb6;_0x2b13d2>=0x0;_0x2b13d2--)(_0x1ffcb6=_0x4dca24[_0x2b13d2])&&(_0x2e5c2a=(_0x2dc0b0?_0x1ffcb6(_0x2a4c02,_0x3ffd86,_0x2e5c2a):_0x1ffcb6(_0x2e5c2a))||_0x2e5c2a);return _0x2dc0b0&&_0x2e5c2a&&_0xffc496(_0x2a4c02,_0x3ffd86,_0x2e5c2a),_0x2e5c2a;},_0x33b7e7=(_0x4d505e,_0x43b40c)=>(_0x314a75,_0x51be2c)=>_0x43b40c(_0x314a75,_0x51be2c,_0x4d505e);_0x3723aa['DesktopCollaborationStatusDisplayController']=class extends _0x44f3cf[_0x4deb9c(0x50a)]{constructor(_0x45ae17,_0x306827,_0x491ce8,_0x27b566){const _0x1486ac=_0x4deb9c;super(),_0x434a2a(this,'_status$',new _0x1837c6['BehaviorSubject'](_0x1a5e20[_0x1486ac(0x1c0)])),(this[_0x1486ac(0x391)]=_0x45ae17,this[_0x1486ac(0x44b)]=_0x306827,this['_injector']=_0x491ce8,this[_0x1486ac(0x120)]=_0x27b566,this[_0x1486ac(0x104)](),this['_initStatusListener']());}[_0x4deb9c(0x4f8)](){const _0x449198=_0x4deb9c;this[_0x449198(0x446)](this[_0x449198(0x391)][_0x449198(0x1e2)][_0x449198(0x4f9)](_0x1837c6['switchMap'](()=>{const _0x1f716=_0x449198,_0x1d2749=this[_0x1f716(0x391)]['getFocusedUnit']();return _0x1d2749?this[_0x1f716(0x120)][_0x1f716(0x2d6)](_0x1d2749[_0x1f716(0x43f)]()):_0x1837c6['of'](null);}),_0x1837c6['switchMap'](_0x592264=>_0x592264?_0x592264[_0x449198(0x43a)]:_0x1837c6['of'](_0x1a5e20[_0x449198(0x1c0)])))[_0x449198(0x138)](_0x40ae67=>{const _0x3a5718=_0x449198;this['_status$'][_0x3a5718(0x3e8)](_0x40ae67);}));}[_0x4deb9c(0x104)](){const _0x357b94=_0x4deb9c;this[_0x357b94(0x446)](this['_uiPartsService']['registerComponent'](_0x90d6c1['BuiltInUIPart']['HEADER_MENU'],()=>_0x44f3cf[_0x357b94(0x3bd)](_0x21d7b1({'status$':this['_status$']['asObservable']()}),this[_0x357b94(0x25f)])));}},_0x3723aa[_0x4deb9c(0x221)]=_0x1b384f([_0x33b7e7(0x0,_0x44f3cf[_0x4deb9c(0x165)]),_0x33b7e7(0x1,_0x90d6c1[_0x4deb9c(0x2df)]),_0x33b7e7(0x2,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x33b7e7(0x3,_0x44f3cf['Inject'](_0x3723aa['CollaborationController']))],_0x3723aa['DesktopCollaborationStatusDisplayController']);function _0x21d7b1(_0x2fa9ea){const {status$:_0x405d1e}=_0x2fa9ea;return function(){return _0x5efe28['createElement'](_0x1e6808,{'status$':_0x405d1e});};}const _0x3be97f=_0x44f3cf['createIdentifier']('uni.network.url-service');var _0xc5fb64=Object[_0x4deb9c(0x4f6)],_0x41a67b=Object[_0x4deb9c(0x3d9)],_0x352192=(_0x40b998,_0x2f3bca,_0x4ec9a6,_0x5bc2f7)=>{const _0x231135=_0x4deb9c;for(var _0x387ffe=_0x5bc2f7>0x1?void 0x0:_0x5bc2f7?_0x41a67b(_0x2f3bca,_0x4ec9a6):_0x2f3bca,_0x2f702f=_0x40b998[_0x231135(0x17a)]-0x1,_0x443ec1;_0x2f702f>=0x0;_0x2f702f--)(_0x443ec1=_0x40b998[_0x2f702f])&&(_0x387ffe=(_0x5bc2f7?_0x443ec1(_0x2f3bca,_0x4ec9a6,_0x387ffe):_0x443ec1(_0x387ffe))||_0x387ffe);return _0x5bc2f7&&_0x387ffe&&_0xc5fb64(_0x2f3bca,_0x4ec9a6,_0x387ffe),_0x387ffe;},_0x47bac7=(_0x23388a,_0x45c17b)=>(_0x27354c,_0x30a0d2)=>_0x45c17b(_0x27354c,_0x30a0d2,_0x23388a);_0x3723aa[_0x4deb9c(0x374)]=class extends _0x44f3cf[_0x4deb9c(0x48b)]{constructor(_0x2faee3,_0x190066,_0x4ee9df,_0x48a9a4,_0x1171be,_0x4f16bf){const _0x17134f=_0x4deb9c;super(),this[_0x17134f(0x50d)]=_0x2faee3,this[_0x17134f(0x1aa)]=_0x190066,this[_0x17134f(0x484)]=_0x4ee9df,this[_0x17134f(0x3d7)]=_0x48a9a4,this['_snapshotService']=_0x1171be,_0x4f16bf?_0x4f16bf==null||_0x4f16bf['whenReady']()[_0x17134f(0x15b)](()=>this[_0x17134f(0x4fb)]()):(this[_0x17134f(0x1aa)][_0x17134f(0x3e6)]('[DataLoaderController]',_0x17134f(0x2c2)),this[_0x17134f(0x4fb)]());}async[_0x4deb9c(0x4fb)](){const _0x48929e=_0x4deb9c,_0x4362ff=this['_urlService'][_0x48929e(0x254)](_0x48929e(0x210)),_0x2f74e7=this[_0x48929e(0x50d)][_0x48929e(0x254)](_0x48929e(0x4f1));if(!_0x4362ff||!_0x2f74e7){this[_0x48929e(0x1aa)][_0x48929e(0x3e6)]('[DataLoaderController]',_0x48929e(0x48a));return;}switch(Number(_0x2f74e7)){case _0x3bfee1[_0x48929e(0x402)]:{const _0x5e1fb7=await this['_loadSheet'](_0x4362ff);this[_0x48929e(0x45e)](_0x5e1fb7);break;}case _0x3bfee1[_0x48929e(0x350)]:{await this['_loadDoc'](_0x4362ff);break;}default:{this[_0x48929e(0x1aa)][_0x48929e(0x46e)](_0x48929e(0x4c6),_0x48929e(0x3ae));break;}}}async['_setupSubUnitSync'](_0x25c330){const _0x1fad74=_0x4deb9c;await this[_0x1fad74(0x28b)](_0x25c330),_0x25c330['activeSheet$']['pipe'](_0x1837c6[_0x1fad74(0x23e)](this['dispose$']))[_0x1fad74(0x138)](_0x344664=>{const _0x2e729b=_0x1fad74;_0x344664&&this[_0x2e729b(0x40b)](_0x344664);}),this[_0x1fad74(0x50d)][_0x1fad74(0x386)][_0x1fad74(0x4f9)](_0x1837c6[_0x1fad74(0x23e)](this['dispose$']))[_0x1fad74(0x138)](()=>this[_0x1fad74(0x28b)](_0x25c330));}['_updateURLWithCurrentState'](_0x5e3aef,_0x14c91d=!0x1){const _0x4bda8a=_0x4deb9c,_0x3c0fd5=this['_urlService']['getParam'](_0x4bda8a(0x1d2));_0x5e3aef[_0x4bda8a(0x456)]()!==_0x3c0fd5&&this[_0x4bda8a(0x50d)][_0x4bda8a(0x511)](_0x4bda8a(0x1d2),_0x5e3aef[_0x4bda8a(0x456)](),_0x14c91d);}async[_0x4deb9c(0x28b)](_0x27a67c){const _0x9f97c1=_0x4deb9c;var _0x2a0930;const _0x848857=this[_0x9f97c1(0x50d)]['getParam']('subunit');if(!_0x848857||!_0x27a67c['getSheetBySheetId'](_0x848857)){const _0x58004a=_0x27a67c[_0x9f97c1(0x4e8)]()[0x0],_0x22856=_0x27a67c['getSheetBySheetId'](_0x58004a);if(!_0x22856)return;this['_updateURLWithCurrentState'](_0x22856,!0x0),await this[_0x9f97c1(0x484)][_0x9f97c1(0x450)](_0x5848ce['SetWorksheetActivateCommand']['id'],{'unitId':_0x27a67c['getUnitId'](),'subUnitId':_0x58004a});return;}((_0x2a0930=_0x27a67c[_0x9f97c1(0x4c5)]())==null?void 0x0:_0x2a0930[_0x9f97c1(0x456)]())!==_0x848857&&await this[_0x9f97c1(0x484)][_0x9f97c1(0x450)](_0x5848ce[_0x9f97c1(0x2f8)]['id'],{'unitId':_0x27a67c[_0x9f97c1(0x43f)](),'subUnitId':_0x848857});}async['_loadSheet'](_0x2d95ba){const _0x4b54f0=_0x4deb9c;let _0xce3cd=0x0;const _0x1db7e2=await this[_0x4b54f0(0x3d7)][_0x4b54f0(0x286)](_0x2d95ba);return _0x1db7e2&&(_0x1db7e2[_0x4b54f0(0x32c)]||_0x1db7e2['mutations']['length']!==0x0)&&(_0xce3cd=_0x1db7e2['rev']),_0xce3cd===0x0&&this[_0x4b54f0(0x1aa)][_0x4b54f0(0x3e6)](_0x4b54f0(0x4c6),_0x4b54f0(0x226)),this[_0x4b54f0(0x468)][_0x4b54f0(0x294)](_0x2d95ba,_0xce3cd);}async[_0x4deb9c(0x222)](_0x1ad650){const _0x43e527=_0x4deb9c;let _0x2a5c84=0x0;const _0x5de5ba=await this['_localCacheService'][_0x43e527(0x286)](_0x1ad650);return _0x5de5ba&&(_0x5de5ba['awaitingChangeset']||_0x5de5ba[_0x43e527(0x367)][_0x43e527(0x17a)]!==0x0)&&(_0x2a5c84=_0x5de5ba[_0x43e527(0x4f2)]),_0x2a5c84===0x0&&this[_0x43e527(0x1aa)][_0x43e527(0x3e6)](_0x43e527(0x4c6),_0x43e527(0x226)),this[_0x43e527(0x468)][_0x43e527(0x34e)](_0x1ad650,_0x2a5c84);}},_0x3723aa[_0x4deb9c(0x374)]=_0x352192([_0x44f3cf[_0x4deb9c(0x33b)](_0x44f3cf[_0x4deb9c(0x2b4)][_0x4deb9c(0x341)],_0x3723aa[_0x4deb9c(0x374)]),_0x47bac7(0x0,_0x3be97f),_0x47bac7(0x1,_0x44f3cf['ILogService']),_0x47bac7(0x2,_0x44f3cf[_0x4deb9c(0x243)]),_0x47bac7(0x3,_0x44f3cf['Inject'](_0x3723aa[_0x4deb9c(0x1d5)])),_0x47bac7(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399['SnapshotService'])),_0x47bac7(0x5,_0x44f3cf[_0x4deb9c(0x12e)](_0x1436cb[_0x4deb9c(0x46f)]))],_0x3723aa[_0x4deb9c(0x374)]);var _0x3708a7=Object['defineProperty'],_0x25a9c1=Object[_0x4deb9c(0x3d9)],_0x3af8db=(_0x1897f5,_0x4e3c98,_0x57d4d2,_0x429a76)=>{for(var _0x35379b=_0x429a76>0x1?void 0x0:_0x429a76?_0x25a9c1(_0x4e3c98,_0x57d4d2):_0x4e3c98,_0x34cc9b=_0x1897f5['length']-0x1,_0x120ae8;_0x34cc9b>=0x0;_0x34cc9b--)(_0x120ae8=_0x1897f5[_0x34cc9b])&&(_0x35379b=(_0x429a76?_0x120ae8(_0x4e3c98,_0x57d4d2,_0x35379b):_0x120ae8(_0x35379b))||_0x35379b);return _0x429a76&&_0x35379b&&_0x3708a7(_0x4e3c98,_0x57d4d2,_0x35379b),_0x35379b;},_0x3a83da=(_0x55da7a,_0x120f56)=>(_0x535cfb,_0x3f2cf8)=>_0x120f56(_0x535cfb,_0x3f2cf8,_0x55da7a);const _0xa389cb=_0x4deb9c(0x3ca),_0xa4aac2=_0x4deb9c(0x1fe);let _0x46e5fc=class extends _0x44f3cf['Disposable']{constructor(_0x46f4a4,_0x3e8e9b){const _0x13cd10=_0x4deb9c;super(),this[_0x13cd10(0x391)]=_0x46f4a4,this[_0x13cd10(0x494)]=_0x3e8e9b,this[_0x13cd10(0x4fb)]();}['_init'](){const _0x387bc2=_0x4deb9c;this[_0x387bc2(0x446)](_0x44f3cf[_0x387bc2(0x133)](this[_0x387bc2(0x391)][_0x387bc2(0x1e2)][_0x387bc2(0x138)](()=>{const _0x4f139c=_0x387bc2;var _0x19f75c;const _0x5bc7b6=this[_0x4f139c(0x391)][_0x4f139c(0x1af)]();let _0x17686f=(_0x19f75c=this['_configService']['getConfig'](_0xa389cb))!=null?_0x19f75c:_0xa4aac2;_0x5bc7b6 instanceof _0x44f3cf['Workbook']&&(_0x17686f=_0x5bc7b6[_0x4f139c(0x2e1)]),document[_0x4f139c(0x45f)]=_0x17686f;})));}};_0x46e5fc=_0x3af8db([_0x44f3cf[_0x4deb9c(0x33b)](_0x44f3cf['LifecycleStages']['Ready'],_0x46e5fc),_0x3a83da(0x0,_0x44f3cf['IUniverInstanceService']),_0x3a83da(0x1,_0x44f3cf[_0x4deb9c(0x150)])],_0x46e5fc);var _0x32208f=Object[_0x4deb9c(0x4f6)],_0x4496e4=Object['getOwnPropertyDescriptor'],_0x78c6c7=(_0x4b8b64,_0x234915,_0x494f29,_0x24ebf8)=>{const _0x516c91=_0x4deb9c;for(var _0x2344da=_0x24ebf8>0x1?void 0x0:_0x24ebf8?_0x4496e4(_0x234915,_0x494f29):_0x234915,_0x29dff6=_0x4b8b64[_0x516c91(0x17a)]-0x1,_0x571ab1;_0x29dff6>=0x0;_0x29dff6--)(_0x571ab1=_0x4b8b64[_0x29dff6])&&(_0x2344da=(_0x24ebf8?_0x571ab1(_0x234915,_0x494f29,_0x2344da):_0x571ab1(_0x2344da))||_0x2344da);return _0x24ebf8&&_0x2344da&&_0x32208f(_0x234915,_0x494f29,_0x2344da),_0x2344da;},_0x1713cf=(_0xcab495,_0x2e495f)=>(_0x44d3a0,_0x58d951)=>_0x2e495f(_0x44d3a0,_0x58d951,_0xcab495);_0x3723aa[_0x4deb9c(0x262)]=class{constructor(_0x14aa6e,_0x14baa6){const _0x53c022=_0x4deb9c;this[_0x53c022(0x494)]=_0x14aa6e,this[_0x53c022(0x330)]=_0x14baa6;}async[_0x4deb9c(0x3d1)](_0x467be7,_0x38b5d9){const _0x52c247=_0x4deb9c;var _0x43656a;const {unitID:_0x253662,type:_0x431875,revision:_0x3d7c3f=0x0}=_0x38b5d9,_0x472607=this[_0x52c247(0x140)]()+'/'+_0x431875+'/unit/'+_0x253662+_0x52c247(0x41a)+_0x3d7c3f,_0x3e41aa=(await this[_0x52c247(0x330)][_0x52c247(0x38c)](_0x472607))[_0x52c247(0x317)],_0x3aed77=(_0x43656a=_0x3e41aa[_0x52c247(0x259)])==null?void 0x0:_0x43656a[_0x52c247(0x49f)];if(_0x3aed77){const _0x2ab3d4=_0x3aed77==null?void 0x0:_0x3aed77[_0x52c247(0x24e)],_0x119e35=_0x5c3399[_0x52c247(0x375)][_0x52c247(0x32e)](_0x5c3399[_0x52c247(0x173)](_0x2ab3d4));_0x3aed77[_0x52c247(0x24e)]=_0x119e35,Object['entries'](_0x3aed77[_0x52c247(0x2dd)])[_0x52c247(0x4cc)](([,_0x182886])=>{const _0xb1eb46=_0x52c247,_0x345532=_0x182886[_0xb1eb46(0x24e)],_0x499e1c=_0x5c3399['textEncoder'][_0xb1eb46(0x32e)](_0x5c3399[_0xb1eb46(0x173)](_0x345532));_0x182886[_0xb1eb46(0x24e)]=_0x499e1c;});}return _0x3e41aa;}async[_0x4deb9c(0x431)](_0xa5bc6,_0x32ae21){const _0x3c7433=_0x4deb9c,{unitID:_0x1d1610,type:_0x3d616c,blockID:_0x2dd063}=_0x32ae21,_0x484fc1=this['_getAPIPrefix']()+'/'+_0x3d616c+_0x3c7433(0x3da)+_0x1d1610+_0x3c7433(0x28d)+_0x2dd063;return(await this['_httpService']['get'](_0x484fc1))['body'];}async[_0x4deb9c(0x371)](_0x26f4c0,_0x20f767){const _0x1df9c8=_0x4deb9c,{unitID:_0x5a2123,type:_0x33a7d4,from:_0x37b7f7,to:_0x15ed58}=_0x20f767,_0x3991ed=this['_getAPIPrefix']()+'/'+_0x33a7d4+_0x1df9c8(0x3da)+_0x5a2123+_0x1df9c8(0x299)+_0x37b7f7+_0x1df9c8(0x434)+_0x15ed58;return(await this['_httpService'][_0x1df9c8(0x38c)](_0x3991ed))['body'];}[_0x4deb9c(0x140)](){const _0x54f50d=_0x4deb9c;var _0x3be465;return(_0x3be465=this['_configService'][_0x54f50d(0x2cd)](_0x1691bd))!=null?_0x3be465:this[_0x54f50d(0x3be)]();}['_getAPIPrefix'](){const _0x1e125e=_0x4deb9c;var _0x453669;return(_0x453669=this['_configService'][_0x1e125e(0x2cd)](_0x4007f7))!=null?_0x453669:_0x5d4c8b;}async[_0x4deb9c(0x2e8)](_0x1c7066,_0x1aad6c){const _0x2b7c40=_0x4deb9c,_0x160bb3=_0x2b7c40(0x4d6)+_0x1aad6c[_0x2b7c40(0x4f1)]+'/unit/'+_0x1aad6c['unitID']+_0x2b7c40(0x29f);return(await this[_0x2b7c40(0x330)][_0x2b7c40(0x38c)](_0x160bb3,{'params':{'resourceId':JSON[_0x2b7c40(0x428)](_0x1aad6c[_0x2b7c40(0x17b)])}}))[_0x2b7c40(0x317)];}[_0x4deb9c(0x34b)](){const _0x5d0158=_0x4deb9c;throw new Error(_0x5d0158(0x3b5));}[_0x4deb9c(0x27c)](){const _0x5450e9=_0x4deb9c;throw new Error(_0x5450e9(0x3b5));}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},_0x3723aa[_0x4deb9c(0x262)]=_0x78c6c7([_0x1713cf(0x0,_0x44f3cf['IConfigService']),_0x1713cf(0x1,_0x44f3cf[_0x4deb9c(0x2a6)](_0x43b7e7['HTTPService']))],_0x3723aa[_0x4deb9c(0x262)]);var _0x20a526=Object[_0x4deb9c(0x4f6)],_0x442112=Object[_0x4deb9c(0x3d9)],_0x4b41a0=(_0xcec04,_0x48167a,_0x5701a5,_0x4980ec)=>{const _0x347f53=_0x4deb9c;for(var _0x35e650=_0x4980ec>0x1?void 0x0:_0x4980ec?_0x442112(_0x48167a,_0x5701a5):_0x48167a,_0x8e7709=_0xcec04[_0x347f53(0x17a)]-0x1,_0x29854f;_0x8e7709>=0x0;_0x8e7709--)(_0x29854f=_0xcec04[_0x8e7709])&&(_0x35e650=(_0x4980ec?_0x29854f(_0x48167a,_0x5701a5,_0x35e650):_0x29854f(_0x35e650))||_0x35e650);return _0x4980ec&&_0x35e650&&_0x20a526(_0x48167a,_0x5701a5,_0x35e650),_0x35e650;},_0x56c63d=(_0x2377f4,_0x2ddec8)=>(_0x358ec2,_0x3f8c93)=>_0x2ddec8(_0x358ec2,_0x3f8c93,_0x2377f4);let _0x3129e0=class extends _0x44f3cf[_0x4deb9c(0x397)]{constructor(_0x5dfe3e,_0x25cbaf,_0x446e62,_0x3f31bf,_0x4ddbdf){super(_0x5dfe3e,_0x25cbaf,_0x446e62),this['_transformService']=_0x3f31bf,this['_logService']=_0x4ddbdf;}[_0x4deb9c(0x24a)](_0x1f1e19,_0x457d07){const _0x134a39=_0x4deb9c,_0x4a308c=this[_0x134a39(0x4d7)](_0x1f1e19);if(_0x4a308c)try{const _0x51d0e0=this[_0x134a39(0x470)](_0x4a308c,_0x457d07);this[_0x134a39(0x156)](_0x1f1e19,_0x51d0e0);}catch(_0x1d07a9){this[_0x134a39(0x1aa)][_0x134a39(0x46e)](_0x134a39(0x1ff),_0x1d07a9),this[_0x134a39(0x46c)](_0x1f1e19);}const _0x4b5df5=this[_0x134a39(0x297)](_0x1f1e19);if(_0x4b5df5)try{const _0x5c9d4c=this[_0x134a39(0x470)](_0x4b5df5,_0x457d07);this[_0x134a39(0x30e)](_0x1f1e19,_0x5c9d4c);}catch(_0x182600){this['_logService'][_0x134a39(0x46e)](_0x182600),this[_0x134a39(0x3e2)](_0x1f1e19);}}['_clearUndo'](_0x122f43){const _0x1dfe93=_0x4deb9c,_0x4cca14=this[_0x1dfe93(0x4d7)](_0x122f43);_0x4cca14&&(_0x4cca14['length']=0x0,this['_updateStatus']());}[_0x4deb9c(0x3e2)](_0x285205){const _0x15253b=_0x4deb9c,_0xdc77d4=this['_getRedoStack'](_0x285205);_0xdc77d4&&(_0xdc77d4[_0x15253b(0x17a)]=0x0,this[_0x15253b(0x17e)]());}[_0x4deb9c(0x156)](_0x58d425,_0x30acde){const _0x5eb900=_0x4deb9c;this[_0x5eb900(0x385)][_0x5eb900(0x2b2)](_0x58d425,_0x30acde),this['_updateStatus']();}[_0x4deb9c(0x30e)](_0x28640e,_0x48d8be){const _0x1c6403=_0x4deb9c;this[_0x1c6403(0xf5)][_0x1c6403(0x2b2)](_0x28640e,_0x48d8be),this['_updateStatus']();}['_transformStack'](_0x3d96a2,_0x1933b6){const _0x8bc57a=_0x4deb9c,_0x4ed0e0=[];let _0x4cf71d=_0x1933b6,_0xea464=_0x1933b6;for(let _0x334450=_0x3d96a2[_0x8bc57a(0x17a)]-0x1;_0x334450>=0x0;_0x334450--){const {unitID:_0x26ff46,undoMutations:_0x1bf369,redoMutations:_0x551bf6}=_0x3d96a2[_0x334450],_0x28a254=this[_0x8bc57a(0x3c2)][_0x8bc57a(0x394)](_0x4cf71d,_0x1bf369),_0x5b3d59=this['_transformService'][_0x8bc57a(0x394)](_0xea464,_0x551bf6);if(_0x5c3399[_0x8bc57a(0x15a)](_0x28a254)||_0x5c3399[_0x8bc57a(0x15a)](_0x5b3d59)){this[_0x8bc57a(0x1aa)][_0x8bc57a(0x46e)](_0x8bc57a(0x1ff),_0x8bc57a(0x4ac),_0x28a254,_0x5b3d59);break;}_0x4cf71d=_0x28a254[_0x8bc57a(0x47d)],_0xea464=_0x5b3d59['c1Prime'],_0x4ed0e0[_0x8bc57a(0x4c0)]({'unitID':_0x26ff46,'undoMutations':_0x28a254[_0x8bc57a(0x499)],'redoMutations':_0x5b3d59[_0x8bc57a(0x499)]});}return _0x4ed0e0[_0x8bc57a(0x1d4)]();}};_0x3129e0=_0x4b41a0([_0x56c63d(0x0,_0x44f3cf[_0x4deb9c(0x165)]),_0x56c63d(0x1,_0x44f3cf['ICommandService']),_0x56c63d(0x2,_0x44f3cf['IContextService']),_0x56c63d(0x3,_0x5c3399['ITransformService']),_0x56c63d(0x4,_0x44f3cf[_0x4deb9c(0x4e5)])],_0x3129e0);class _0x3492f1 extends _0x44f3cf['RxDisposable']{constructor(){const _0x592a1c=_0x4deb9c;super(),_0x434a2a(this,_0x592a1c(0x386)),this[_0x592a1c(0x386)]=_0x1837c6[_0x592a1c(0x4db)](window,'popstate')[_0x592a1c(0x4f9)](_0x1837c6[_0x592a1c(0x23e)](this[_0x592a1c(0x423)]),_0x1837c6[_0x592a1c(0x3c8)](0x1),_0x1837c6['mapTo'](void 0x0));}[_0x4deb9c(0x511)](_0x5ce565,_0x1520ee,_0x1634e8=!0x1){const _0x474cff=_0x4deb9c,_0x2e30b0=new URL(window[_0x474cff(0x33d)][_0x474cff(0x2a5)]);_0x2e30b0[_0x474cff(0x405)][_0x474cff(0x2b2)](_0x5ce565,_0x1520ee),_0x1634e8?window[_0x474cff(0x361)][_0x474cff(0x454)]('','',_0x2e30b0[_0x474cff(0x23d)]()):window['history'][_0x474cff(0xfd)]('','',_0x2e30b0['toString']());}[_0x4deb9c(0x33f)](_0x28f73c,_0xe7f950=!0x1){const _0x41d806=_0x4deb9c,_0x223bb8=new URL(window['location'][_0x41d806(0x2a5)]);_0x223bb8[_0x41d806(0x405)][_0x41d806(0x312)](_0x28f73c),_0xe7f950?window['history'][_0x41d806(0x454)]('','',_0x223bb8['toString']()):window[_0x41d806(0x361)]['pushState']('','',_0x223bb8[_0x41d806(0x23d)]());}[_0x4deb9c(0x254)](_0x2240d0){const _0x4a231b=_0x4deb9c;var _0x506059;return(_0x506059=new URL(window[_0x4a231b(0x33d)]['href'])[_0x4a231b(0x405)][_0x4a231b(0x38c)](_0x2240d0))!=null?_0x506059:void 0x0;}}const _0x37c6cf='collab-text-anchor-',_0x49aa38='collab-text-range-',_0x3a0e1c=_0x4deb9c(0x260),_0x54da0e=0x6,_0xbd2478=1.5,_0x402894=0x4,_0x2574c1=1.5,_0x488f2b=_0x4deb9c(0x130);class _0x29a1ea{constructor(_0x1fcbed,_0x513db9,_0x2316c0,_0xf510ef){const _0xca0eb6=_0x4deb9c;_0x434a2a(this,_0xca0eb6(0x252),[]),_0x434a2a(this,'_anchor',null),_0x434a2a(this,_0xca0eb6(0x451),null),_0x434a2a(this,_0xca0eb6(0x3f5),null),_0x434a2a(this,_0xca0eb6(0x4cb),null),_0x434a2a(this,_0xca0eb6(0x347),null),(this[_0xca0eb6(0x1f6)]=_0x1fcbed,this[_0xca0eb6(0x353)]=_0x513db9,this[_0xca0eb6(0x33c)]=_0x2316c0,this[_0xca0eb6(0x36f)]=_0xf510ef,this[_0xca0eb6(0x4fc)]());}set['_hover'](_0x51fa17){const _0x5d6d07=_0x4deb9c;_0x51fa17?(this[_0x5d6d07(0x3f5)]&&this[_0x5d6d07(0x3f5)][_0x5d6d07(0x487)](),this[_0x5d6d07(0x451)]&&this['_textBubble'][_0x5d6d07(0x2a7)]()):(this[_0x5d6d07(0x3f5)]&&this[_0x5d6d07(0x3f5)]['show'](),this[_0x5d6d07(0x451)]&&this[_0x5d6d07(0x451)][_0x5d6d07(0x487)]());}[_0x4deb9c(0x241)](){const _0x5adbfb=_0x4deb9c;for(const _0x4c230b of this[_0x5adbfb(0x252)])_0x4c230b[_0x5adbfb(0x241)]();this['_textBubble']&&this[_0x5adbfb(0x451)][_0x5adbfb(0x241)](),this[_0x5adbfb(0x3f5)]&&this[_0x5adbfb(0x3f5)]['dispose'](),this[_0x5adbfb(0x2c3)]&&this['_anchor'][_0x5adbfb(0x241)](),this['_eventUnsubscribe']&&this[_0x5adbfb(0x347)]();}[_0x4deb9c(0x4fc)](){const _0x3e0e19=_0x4deb9c;var _0x47a003;const {_docSkeleton:_0x579fa5,_document:_0x140f38}=this,{color:_0x206c1f,name:_0x511be1,ranges:_0x480850}=this[_0x3e0e19(0x1f6)],_0x18df65=_0x140f38[_0x3e0e19(0x3f3)](),{docsLeft:_0x4e0bf8,docsTop:_0x565895}=_0x18df65,_0x5ae61c=new _0x50f029['NodePositionConvertToCursor'](_0x18df65,_0x579fa5);for(const {startOffset:_0x374123,endOffset:_0x56f8f2,collapsed:_0x23b4cc,isActive:_0x49f94f}of _0x480850){const _0x8fef1d=_0x579fa5[_0x3e0e19(0x1dd)](_0x374123),_0x25cd3d=_0x579fa5[_0x3e0e19(0x1dd)](_0x56f8f2);if(_0x49f94f){const {contentBoxPointGroup:_0x568702}=_0x5ae61c['getRangePointData'](_0x25cd3d,_0x25cd3d);if(_0x568702[_0x3e0e19(0x17a)]===0x0)continue;this['_drawAnchor'](_0x206c1f,_0x568702,_0x4e0bf8,_0x565895,_0x511be1),this[_0x3e0e19(0x347)]=this[_0x3e0e19(0x20b)]();}if(!_0x23b4cc&&_0x8fef1d&&_0x25cd3d){if(_0x50f029[_0x3e0e19(0x1c2)](_0x8fef1d,_0x25cd3d)){const _0x1e2942=new _0x50f029[(_0x3e0e19(0x3b9))](_0x18df65,_0x579fa5),{pointGroup:_0x4d3f74}=(_0x47a003=_0x1e2942[_0x3e0e19(0x277)](_0x8fef1d,_0x25cd3d))!=null?_0x47a003:{};if(_0x4d3f74==null||_0x4d3f74[_0x3e0e19(0x17a)]===0x0)continue;this[_0x3e0e19(0x2e5)](_0x206c1f,_0x4d3f74,_0x4e0bf8,_0x565895);}else{const {contentBoxPointGroup:_0x1f367d}=_0x5ae61c['getRangePointData'](_0x8fef1d,_0x25cd3d);if(_0x1f367d[_0x3e0e19(0x17a)]===0x0)continue;this['_drawTextRange'](_0x206c1f,_0x1f367d,_0x4e0bf8,_0x565895);}}}}['_drawAnchor'](_0x2af871,_0x39e900,_0x308d98,_0x5831c2,_0x3cfe4e){const _0xb472e1=_0x4deb9c,_0x5d023c=this[_0xb472e1(0x4e4)](_0x39e900),{left:_0x2d86f0,top:_0x4a3229,height:_0x476152}=_0x5d023c,_0xc2eb67=this['_getScale'](),_0x4ba253=_0x2574c1/_0xc2eb67,_0x579b80=new _0x278226[(_0xb472e1(0xfe))](_0x37c6cf+_0x44f3cf['Tools']['generateRandomId'](_0x54da0e),{'left':_0x2d86f0+_0x308d98-_0x4ba253,'top':_0x4a3229+_0x5831c2,'height':_0x476152,'width':_0xbd2478,'fill':_0x2af871||_0x278226[_0xb472e1(0x506)](_0x44f3cf[_0xb472e1(0x2ab)][_0xb472e1(0x1ac)],0x0),'strokeWidth':_0x4ba253,'stroke':_0x488f2b,'evented':!0x0});this['_anchor']=_0x579b80,this['_scene'][_0xb472e1(0x1bc)](_0x579b80,_0x50f029[_0xb472e1(0x34f)]);const _0x4bb2bc=new _0x278226[(_0xb472e1(0xfe))](_0x37c6cf+_0x44f3cf[_0xb472e1(0x45a)][_0xb472e1(0x4f7)](_0x54da0e),{'left':_0x2d86f0+_0x308d98-_0x4ba253,'top':_0x4a3229+_0x5831c2-_0x402894/0x2,'height':_0x402894,'width':_0x402894,'fill':_0x2af871||_0x278226[_0xb472e1(0x506)](_0x44f3cf[_0xb472e1(0x2ab)][_0xb472e1(0x1ac)],0x0),'strokeWidth':0x0,'stroke':_0x2af871||_0x278226[_0xb472e1(0x506)](_0x44f3cf[_0xb472e1(0x2ab)][_0xb472e1(0x1ac)],0x0),'evented':!0x1});this[_0xb472e1(0x3f5)]=_0x4bb2bc,this[_0xb472e1(0x353)][_0xb472e1(0x1bc)](_0x4bb2bc,_0x50f029['TEXT_RANGE_LAYER_INDEX']);const _0x25e00d=new _0x535b1d(_0x37c6cf+_0x44f3cf[_0xb472e1(0x45a)][_0xb472e1(0x4f7)](_0x54da0e),{'left':_0x2d86f0+_0x308d98-_0x4ba253,'top':_0x4a3229+_0x5831c2-_0x3c5a01,'text':_0x3cfe4e,'color':_0x2af871});this[_0xb472e1(0x451)]=_0x25e00d,this[_0xb472e1(0x353)][_0xb472e1(0x1bc)](_0x25e00d,_0x50f029[_0xb472e1(0x34f)]),this[_0xb472e1(0x31d)]=!0x1;}[_0x4deb9c(0x20b)](){const _0x9fba99=_0x4deb9c,_0x2263eb=this['_anchor'][_0x9fba99(0x30d)]['subscribeEvent'](()=>{const _0x5e0d9c=_0x9fba99;this[_0x5e0d9c(0x31d)]=!0x0;}),_0x215523=this['_anchor']['onPointerLeave$']['subscribeEvent'](()=>{const _0x103b1e=_0x9fba99;this[_0x103b1e(0x4cb)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x32c67d=_0x103b1e;this[_0x32c67d(0x31d)]=!0x1;},0x7d0);});return()=>{const _0x578014=_0x9fba99;_0x2263eb[_0x578014(0x184)](),_0x215523[_0x578014(0x184)]();};}[_0x4deb9c(0x42d)](_0x14440d,_0x40ed77,_0xec6f84,_0x4e16b8){const _0x2016ca=_0x4deb9c,_0x28378f=new _0x44f3cf[(_0x2016ca(0x3fc))](_0x14440d)[_0x2016ca(0x289)](0.2)[_0x2016ca(0x3e9)](),_0x24abb4=new _0x278226['RegularPolygon'](_0x49aa38+_0x44f3cf[_0x2016ca(0x45a)][_0x2016ca(0x4f7)](_0x54da0e),{'pointsGroup':_0x40ed77,'fill':_0x28378f||_0x278226[_0x2016ca(0x506)](_0x44f3cf[_0x2016ca(0x2ab)][_0x2016ca(0x1ac)],0.2),'left':_0xec6f84,'top':_0x4e16b8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2016ca(0x252)]['push'](_0x24abb4),this['_scene']['addObject'](_0x24abb4,_0x50f029[_0x2016ca(0x34f)]);}['_drawRectRange'](_0x1623db,_0x3729d6,_0x3d14ab,_0x2162b8){const _0x2df27b=_0x4deb9c,_0x14f63b=new _0x44f3cf[(_0x2df27b(0x3fc))](_0x1623db)['setAlpha'](0.2)['toRgbString'](),_0x223d64=new _0x278226[(_0x2df27b(0x46a))](_0x3a0e1c+_0x44f3cf['Tools']['generateRandomId'](_0x54da0e),{'pointsGroup':_0x3729d6,'fill':_0x14f63b||_0x278226[_0x2df27b(0x506)](_0x44f3cf[_0x2df27b(0x2ab)][_0x2df27b(0x1ac)],0.2),'left':_0x3d14ab,'top':_0x2162b8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2df27b(0x252)]['push'](_0x223d64),this['_scene']['addObject'](_0x223d64,_0x50f029[_0x2df27b(0x34f)]);}[_0x4deb9c(0x4e4)](_0xca8af6){const _0x1ba91c=_0xca8af6[0x0],_0xc1a3a4=_0x1ba91c[0x0],_0x5cd505=_0x1ba91c[0x2],{x:_0x1fd15c,y:_0x51332d}=_0xc1a3a4,{x:_0x849c95,y:_0x2de3c6}=_0x5cd505;return{'left':_0x1fd15c,'top':_0x51332d,'width':_0x849c95-_0x1fd15c,'height':_0x2de3c6-_0x51332d};}[_0x4deb9c(0x271)](){const _0x4851da=_0x4deb9c,{scaleX:_0x3f7c8f,scaleY:_0x31f46e}=this['_scene'][_0x4851da(0x107)]();return Math[_0x4851da(0x43d)](_0x3f7c8f,_0x31f46e);}}var _0x556a0e=Object['defineProperty'],_0x2c246a=Object[_0x4deb9c(0x3d9)],_0x1346fb=(_0x3972fe,_0x20e826,_0x21766a,_0xe20829)=>{const _0x4c7a1d=_0x4deb9c;for(var _0x4e8727=_0xe20829>0x1?void 0x0:_0xe20829?_0x2c246a(_0x20e826,_0x21766a):_0x20e826,_0x30038d=_0x3972fe[_0x4c7a1d(0x17a)]-0x1,_0x25cbe4;_0x30038d>=0x0;_0x30038d--)(_0x25cbe4=_0x3972fe[_0x30038d])&&(_0x4e8727=(_0xe20829?_0x25cbe4(_0x20e826,_0x21766a,_0x4e8727):_0x25cbe4(_0x4e8727))||_0x4e8727);return _0xe20829&&_0x4e8727&&_0x556a0e(_0x20e826,_0x21766a,_0x4e8727),_0x4e8727;},_0x397f3a=(_0x47ca32,_0x2e624a)=>(_0x3f2d20,_0xc6d3ef)=>_0x2e624a(_0x3f2d20,_0xc6d3ef,_0x47ca32);let _0x58fc0b=class extends _0x44f3cf['RxDisposable']{constructor(_0x3e7607,_0x3ce4cf,_0xccd55d,_0x567380,_0x2fd9e1){const _0x18d119=_0x4deb9c;super(),_0x434a2a(this,_0x18d119(0x1eb),[]),_0x434a2a(this,'_cursors',[]),(this[_0x18d119(0x1fb)]=_0x3e7607,this[_0x18d119(0x1b3)]=_0x3ce4cf,this['_collabCursorController']=_0xccd55d,this['_commandService']=_0x567380,this['_themeService']=_0x2fd9e1,this[_0x18d119(0x4fb)]());}['_init'](){const _0x5a6021=_0x4deb9c,_0x2f5b1c=this['_context']['unitId'],_0x5cedc5=this[_0x5a6021(0x1b3)];this[_0x5a6021(0x446)](_0x1837c6['combineLatest']([this['_collabCursorController'][_0x5a6021(0x28e)](_0x2f5b1c),this['_themeService'][_0x5a6021(0x485)]])[_0x5a6021(0x4f9)](_0x3ab9e8[_0x5a6021(0x269)](([_0x16dda2,_0x2f1e0d])=>({'skeleton':_0x5cedc5[_0x5a6021(0x337)](),'cursors':[..._0x16dda2[_0x5a6021(0x4f5)]()][_0x5a6021(0x33e)](_0x2d95a9=>({..._0x2d95a9,'color':_0x2f1e0d[_0x2d95a9[_0x5a6021(0x2ad)]]}))})))[_0x5a6021(0x138)](_0x4bced9=>{const _0x4e9f18=_0x5a6021;if(this[_0x4e9f18(0x192)](),_0x4bced9){const {skeleton:_0x2f964f,cursors:_0x14a822}=_0x4bced9;this['_updateCollabCursors'](_0x2f964f,_0x14a822);}})),this[_0x5a6021(0x1bd)](),this['_initCommandExecutedListener']();}[_0x4deb9c(0x10a)](_0x1750d2,_0x5a6bc8){const _0x706077=_0x4deb9c,{scene:_0xec7dbd,mainComponent:_0x5397d4}=this[_0x706077(0x1fb)],_0x5540f6=_0x5a6bc8['map'](_0x29cbe8=>new _0x29a1ea(_0x29cbe8,_0xec7dbd,_0x1750d2,_0x5397d4));this[_0x706077(0x1eb)]=_0x5540f6,this[_0x706077(0x2b3)]=_0x5a6bc8;}['_refreshCollabCursors'](){const _0x1f5753=_0x4deb9c;this[_0x1f5753(0x192)]();const {scene:_0x61215a,mainComponent:_0x4033b7}=this['_context'],_0x112645=this[_0x1f5753(0x1b3)][_0x1f5753(0x337)](),_0x5e7c90=this['_cursors'][_0x1f5753(0x269)](_0x593e74=>new _0x29a1ea(_0x593e74,_0x61215a,_0x112645,_0x4033b7));this[_0x1f5753(0x1eb)]=_0x5e7c90;}[_0x4deb9c(0x192)](){const _0x561005=_0x4deb9c;this['_cursorShapes']['forEach'](_0x137172=>_0x137172[_0x561005(0x241)]()),this['_cursorShapes']=[];}[_0x4deb9c(0x509)](){const _0x53f220=_0x4deb9c,_0x226f1e=[_0x50f029['SetDocZoomRatioOperation']['id']];this[_0x53f220(0x446)](this[_0x53f220(0x484)][_0x53f220(0x27a)](_0x5dd4d3=>{const _0x42bfa3=_0x53f220;_0x226f1e[_0x42bfa3(0x4ff)](_0x5dd4d3['id'])&&_0x5dd4d3[_0x42bfa3(0x3fd)][_0x42bfa3(0x380)]===this[_0x42bfa3(0x1fb)]['unitId']&&this[_0x42bfa3(0x4ca)]();}));}['_initResize'](){const _0x45e1b2=_0x4deb9c;this[_0x45e1b2(0x446)](_0x44f3cf['fromEventSubject'](this['_context'][_0x45e1b2(0x2eb)]['onTransformChange$'])[_0x45e1b2(0x4f9)](_0x3ab9e8['filter'](_0x3f62dc=>_0x3f62dc[_0x45e1b2(0x4f1)]===_0x278226['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x45e1b2(0x40c)]),_0x3ab9e8['throttleTime'](0x10))[_0x45e1b2(0x138)](()=>{const _0x5b0e1d=_0x45e1b2;this[_0x5b0e1d(0x4ca)]();}));}};_0x58fc0b=_0x1346fb([_0x44f3cf[_0x4deb9c(0x33b)](_0x44f3cf['LifecycleStages'][_0x4deb9c(0x47e)],_0x58fc0b),_0x397f3a(0x1,_0x44f3cf['Inject'](_0x495201['DocSkeletonManagerService'])),_0x397f3a(0x2,_0x44f3cf['Inject'](_0xdbf3eb)),_0x397f3a(0x3,_0x44f3cf['ICommandService']),_0x397f3a(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf['ThemeService']))],_0x58fc0b);var _0x12b7d1=Object[_0x4deb9c(0x4f6)],_0x4f9580=Object[_0x4deb9c(0x3d9)],_0x57842f=(_0x198ee1,_0x2f0b88,_0x387dfc,_0x466a4)=>{const _0x297094=_0x4deb9c;for(var _0x130059=_0x466a4>0x1?void 0x0:_0x466a4?_0x4f9580(_0x2f0b88,_0x387dfc):_0x2f0b88,_0x43c875=_0x198ee1[_0x297094(0x17a)]-0x1,_0x4ad9e5;_0x43c875>=0x0;_0x43c875--)(_0x4ad9e5=_0x198ee1[_0x43c875])&&(_0x130059=(_0x466a4?_0x4ad9e5(_0x2f0b88,_0x387dfc,_0x130059):_0x4ad9e5(_0x130059))||_0x130059);return _0x466a4&&_0x130059&&_0x12b7d1(_0x2f0b88,_0x387dfc,_0x130059),_0x130059;},_0x1a0084=(_0x543fbf,_0x26fdc6)=>(_0x2d4b9b,_0x3ebcba)=>_0x26fdc6(_0x2d4b9b,_0x3ebcba,_0x543fbf);let _0x41b47c=class{constructor(_0x20c0ef,_0x5f494e,_0x46f678){const _0x33d92d=_0x4deb9c;this['_configService']=_0x20c0ef,this['_httpService']=_0x5f494e,this[_0x33d92d(0x417)]=_0x46f678,this[_0x33d92d(0x36a)]();}[_0x4deb9c(0x36a)](){const _0x3bda10=_0x4deb9c;this[_0x3bda10(0x330)][_0x3bda10(0x169)]({'priority':0x1,'interceptor':(_0x11eb35,_0x2e3415)=>_0x2e3415(_0x11eb35)[_0x3bda10(0x4f9)](_0x1837c6[_0x3bda10(0x233)](async _0x2f10ac=>{const _0x423053=_0x3bda10,_0x51344d=_0x2f10ac;if(_0x51344d[_0x423053(0x111)]===0x191&&window[_0x423053(0x12b)](this[_0x423053(0x417)]['t'](_0x423053(0x4b6)))){const _0x246b7f=window['encodeURIComponent'](window['location'][_0x423053(0x2a5)]);window[_0x423053(0x33d)][_0x423053(0x2a5)]=this[_0x423053(0x504)]()+_0x423053(0x387)+_0x246b7f;}return _0x51344d;}))});}[_0x4deb9c(0x504)](){const _0x1014c5=_0x4deb9c;var _0x5461a3;return(_0x5461a3=this[_0x1014c5(0x494)][_0x1014c5(0x2cd)](_0x1fff0c))!=null?_0x5461a3:_0x5040cd;}};_0x41b47c=_0x57842f([_0x1a0084(0x0,_0x44f3cf[_0x4deb9c(0x150)]),_0x1a0084(0x1,_0x44f3cf[_0x4deb9c(0x2a6)](_0x43b7e7[_0x4deb9c(0x15f)])),_0x1a0084(0x2,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x440)]))],_0x41b47c);var _0x19cfd0=Object[_0x4deb9c(0x4f6)],_0x35b5b6=Object[_0x4deb9c(0x3d9)],_0x3d4fdd=(_0x4d2bc9,_0x598808,_0x573868,_0x1ef085)=>{const _0x2caab4=_0x4deb9c;for(var _0x56c75c=_0x1ef085>0x1?void 0x0:_0x1ef085?_0x35b5b6(_0x598808,_0x573868):_0x598808,_0x1df93e=_0x4d2bc9[_0x2caab4(0x17a)]-0x1,_0x198f8e;_0x1df93e>=0x0;_0x1df93e--)(_0x198f8e=_0x4d2bc9[_0x1df93e])&&(_0x56c75c=(_0x1ef085?_0x198f8e(_0x598808,_0x573868,_0x56c75c):_0x198f8e(_0x56c75c))||_0x56c75c);return _0x1ef085&&_0x56c75c&&_0x19cfd0(_0x598808,_0x573868,_0x56c75c),_0x56c75c;},_0x39f5ac=(_0x3c006c,_0x45e71c)=>(_0x19ef8b,_0x2489bf)=>_0x45e71c(_0x19ef8b,_0x2489bf,_0x3c006c);const _0x4aaaa6=_0x4deb9c(0x1f3),_0x3f4480=_0x4deb9c(0x4b4);_0x3723aa[_0x4deb9c(0x3a1)]=class extends _0x44f3cf[_0x4deb9c(0x50a)]{constructor(_0x123bf1,_0x410e04){const _0x19484f=_0x4deb9c;super(),this['_HTTPService']=_0x123bf1,this[_0x19484f(0x494)]=_0x410e04,this[_0x19484f(0x4ae)]();}['_initMergeInterceptor'](){const _0x48a59d=_0x4deb9c,_0x1d8917=this;this[_0x48a59d(0x446)](this[_0x48a59d(0x242)][_0x48a59d(0x169)]({'priority':0x3e7,'interceptor':_0x43b7e7['MergeInterceptorFactory']({'isMatch'(_0x4e0e68){const _0x428954=_0x48a59d;var _0x35c190;if(_0x4e0e68['method']===_0x428954(0x473)&&((_0x35c190=_0x4e0e68['requestParams'])!=null&&_0x35c190[_0x428954(0x317)])){const {objectID:_0x3ac19d,objectType:_0x41235c}=_0x4e0e68['requestParams'][_0x428954(0x317)]||{};if(!_0x3ac19d||_0x41235c===void 0x0)return!0x1;const _0xbe59b9=_0x1d8917[_0x428954(0x11b)]()+'/'+_0x41235c+_0x428954(0x21e)+_0x3ac19d+_0x428954(0x4af);if(_0x4e0e68[_0x428954(0x407)]===_0xbe59b9)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xb46fc5){const _0x5db2cb=_0x48a59d;var _0x43db1c;return(_0x43db1c=_0xb46fc5[_0x5db2cb(0x4ee)])==null?void 0x0:_0x43db1c[_0x5db2cb(0x317)];},'mergeParamsToRequest'(_0x5b3fc4,_0x44c27c){const _0x5d5904=_0x48a59d,_0x15be02=_0x1d8917[_0x5d5904(0x11b)]()+'/-/object/-/batch_allowed',_0x58428d=_0x5b3fc4[_0x5d5904(0x1f2)]((_0x4d6d2f,_0x59e50b)=>{const _0x4b22b1=_0x5d5904,{unitID:_0x577032,objectID:_0x1bfc52,objectType:_0x5e425b,actions:_0x3fcc47}=_0x59e50b;return _0x4d6d2f[_0x577032]||(_0x4d6d2f[_0x577032]={}),_0x4d6d2f[_0x577032][_0x1bfc52]||(_0x4d6d2f[_0x577032][_0x1bfc52]={'objectID':_0x1bfc52,'objectType':_0x5e425b,'actions':[]}),_0x4d6d2f[_0x577032][_0x1bfc52][_0x4b22b1(0x3fe)]['push'](..._0x3fcc47),_0x4d6d2f;},{}),_0x2c3120=[];for(const _0x508860 in _0x58428d)for(const _0x3266e9 in _0x58428d[_0x508860]){const {actions:_0x1a9b68,objectType:_0x3df29b}=_0x58428d[_0x508860][_0x3266e9],_0x337bf0=[...new Set(_0x1a9b68)];_0x2c3120['push']({'unitID':_0x508860,'objectID':_0x3266e9,'objectType':_0x3df29b,'actions':_0x337bf0});}return new _0x43b7e7['HTTPRequest'](_0x5d5904(0x473),_0x15be02,{'headers':_0x44c27c['headers'],'withCredentials':_0x44c27c['withCredentials'],'responseType':_0x44c27c[_0x5d5904(0x28f)],'body':{'requests':_0x2c3120}});}},{'distributeResult'(_0x3f893d,_0x2cf5a0){const {objectActions:_0x315b96}=_0x3f893d;return _0x2cf5a0['map'](_0xd8b074=>{const _0x4be3fb=_0x47c1,{unitID:_0x9bd0b8,objectID:_0x209403,actions:_0x2c7a88}=_0xd8b074,_0x153e20=_0x315b96[_0x4be3fb(0x340)](_0x10082b=>_0x10082b['unitID']===_0x9bd0b8&&_0x10082b[_0x4be3fb(0x237)]===_0x209403),_0xfcceba=_0x2c7a88[_0x4be3fb(0x269)](_0xc69ab2=>_0x153e20==null?void 0x0:_0x153e20[_0x4be3fb(0x3fe)][_0x4be3fb(0x340)](_0x2abf48=>_0x2abf48[_0x4be3fb(0x365)]===_0xc69ab2))[_0x4be3fb(0x39e)](_0x552308=>!!_0x552308);return{'config':_0xd8b074,'result':{'actions':_0xfcceba,'error':_0x3f893d['error']}};});}})}));}[_0x4deb9c(0x11b)](){const _0x1d877=_0x4deb9c;var _0x34903d;return(_0x34903d=this['_configService'][_0x1d877(0x2cd)](_0x4aaaa6))!=null?_0x34903d:_0x3f4480;}async[_0x4deb9c(0x12a)](_0x120405){const _0xb492e1=_0x4deb9c,_0x5ada1e=this[_0xb492e1(0x11b)]()+'/'+_0x120405[_0xb492e1(0x3ad)]+_0xb492e1(0x20e);return(await this['_HTTPService'][_0xb492e1(0x239)](_0x5ada1e,{'body':_0x120405}))['body'][_0xb492e1(0x237)]||'';}async[_0x4deb9c(0x334)](_0x796dad){const _0x10b088=_0x4deb9c,_0x4ee4f0=this['_getAPIPrefixPath']()+_0x10b088(0x381);return(await this['_HTTPService']['post'](_0x4ee4f0,{'body':_0x796dad}))[_0x10b088(0x317)]['objects'];}async[_0x4deb9c(0x193)](_0x7bc57d){const _0x4acf78=_0x4deb9c,_0x51f3f8=this[_0x4acf78(0x11b)]()+'/'+_0x7bc57d[_0x4acf78(0x3ad)]+_0x4acf78(0x21e)+_0x7bc57d[_0x4acf78(0x237)];await this[_0x4acf78(0x242)]['put'](_0x51f3f8,{'body':_0x7bc57d});}async['allowed'](_0x32c35a){const _0x75e491=_0x4deb9c,_0x3b644f=this[_0x75e491(0x11b)]()+'/'+_0x32c35a['objectType']+_0x75e491(0x21e)+_0x32c35a[_0x75e491(0x237)]+_0x75e491(0x4af);return(await this['_HTTPService'][_0x75e491(0x239)](_0x3b644f,{'body':_0x32c35a}))[_0x75e491(0x317)][_0x75e491(0x3fe)];}async[_0x4deb9c(0x3b7)](_0x2e563c){const _0x41e74f=_0x4deb9c,_0x21cb7a=this[_0x41e74f(0x11b)]()+'/-/object/-/batch_allowed';return(await this[_0x41e74f(0x242)][_0x41e74f(0x239)](_0x21cb7a,{'body':{'requests':_0x2e563c}}))[_0x41e74f(0x317)][_0x41e74f(0x2cb)];}async['listRoles'](_0x5b2f63){const _0xbbcb86=_0x4deb9c,_0x1886f4=this[_0xbbcb86(0x11b)]()+'/'+_0x5b2f63[_0xbbcb86(0x3ad)]+_0xbbcb86(0x344),_0x8d7a0e=await this[_0xbbcb86(0x242)][_0xbbcb86(0x239)](_0x1886f4,{'body':_0x5b2f63});return{'roles':_0x8d7a0e[_0xbbcb86(0x317)][_0xbbcb86(0x1a1)],'actions':_0x8d7a0e['body']['actions']};}async[_0x4deb9c(0x441)](_0x39507d){const _0x368d76=_0x4deb9c,_0x1c5377=this[_0x368d76(0x11b)]()+_0x368d76(0x41e);await this['_HTTPService'][_0x368d76(0x312)](_0x1c5377,{'params':{'collaboratorID':_0x39507d['collaboratorID'],'objectID':_0x39507d[_0x368d76(0x237)],'unitID':_0x39507d[_0x368d76(0x282)]}});}async[_0x4deb9c(0x16e)](_0x4bfc11){const _0x448662=_0x4deb9c,_0x38c1b3=this['_getAPIPrefixPath']()+_0x448662(0x41e);await this[_0x448662(0x242)][_0x448662(0x311)](_0x38c1b3,{'body':_0x4bfc11});}async[_0x4deb9c(0x29e)](_0x2c0f2a){const _0x7b9454=_0x4deb9c,_0x5897de=this['_getAPIPrefixPath']()+_0x7b9454(0x41e);await this[_0x7b9454(0x242)]['post'](_0x5897de,{'body':_0x2c0f2a});}async[_0x4deb9c(0x1f9)](_0x5ddcd0){const _0x32087f=_0x4deb9c,_0x4a768a=this[_0x32087f(0x11b)]()+'/collaborator';return(await this[_0x32087f(0x242)][_0x32087f(0x38c)](_0x4a768a,{'params':{'objectID':_0x5ddcd0[_0x32087f(0x237)],'unitID':_0x5ddcd0[_0x32087f(0x282)]}}))[_0x32087f(0x317)]['collaborators'];}async['putCollaborators'](_0x3b2bee){const _0xfe1e18=_0x4deb9c,_0x5baf3e=this[_0xfe1e18(0x11b)]()+_0xfe1e18(0x41e);await this[_0xfe1e18(0x242)]['put'](_0x5baf3e,{'body':_0x3b2bee});}},_0x3723aa[_0x4deb9c(0x3a1)]=_0x3d4fdd([_0x39f5ac(0x0,_0x44f3cf[_0x4deb9c(0x2a6)](_0x43b7e7[_0x4deb9c(0x15f)])),_0x39f5ac(0x1,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf['IConfigService']))],_0x3723aa[_0x4deb9c(0x3a1)]);var _0x288006=Object[_0x4deb9c(0x4f6)],_0x4d3dd2=Object['getOwnPropertyDescriptor'],_0x3dbf03=(_0x57ef7f,_0x41c825,_0x1f9594,_0x4c4d4a)=>{const _0x2499b1=_0x4deb9c;for(var _0x5212f8=_0x4c4d4a>0x1?void 0x0:_0x4c4d4a?_0x4d3dd2(_0x41c825,_0x1f9594):_0x41c825,_0x1ebf01=_0x57ef7f[_0x2499b1(0x17a)]-0x1,_0x1c2007;_0x1ebf01>=0x0;_0x1ebf01--)(_0x1c2007=_0x57ef7f[_0x1ebf01])&&(_0x5212f8=(_0x4c4d4a?_0x1c2007(_0x41c825,_0x1f9594,_0x5212f8):_0x1c2007(_0x5212f8))||_0x5212f8);return _0x4c4d4a&&_0x5212f8&&_0x288006(_0x41c825,_0x1f9594,_0x5212f8),_0x5212f8;},_0x3a6037=(_0x4b71f4,_0x23208d)=>(_0x3ea9e7,_0x359bee)=>_0x23208d(_0x3ea9e7,_0x359bee,_0x4b71f4);const _0x1c9843=[_0x4deb9c(0x40f),_0x4deb9c(0x510),'image/jpg','image/gif',_0x4deb9c(0x46b)],_0xc5a976=0x5*0x400*0x400,_0x1985dc=_0x4deb9c(0x4b1),_0x34bc4a=_0x4deb9c(0x1e0),_0x23c9f4=_0x4deb9c(0x2e6),_0x4b70f9=_0x4deb9c(0x4d5);_0x3723aa['ImageIoService']=class{constructor(_0x3eb9ef,_0x20c1c6,_0x1432c9){const _0x2c2740=_0x4deb9c;_0x434a2a(this,_0x2c2740(0x38a),0x0),_0x434a2a(this,_0x2c2740(0x493),new _0x1837c6[(_0x2c2740(0x4a0))]()),_0x434a2a(this,_0x2c2740(0x196),this['_change$']),_0x434a2a(this,_0x2c2740(0x2c7),new Map()),(this[_0x2c2740(0x330)]=_0x3eb9ef,this[_0x2c2740(0x494)]=_0x20c1c6,this[_0x2c2740(0x391)]=_0x1432c9);}['setWaitCount'](_0x46a8a8){const _0x433e0f=_0x4deb9c;this[_0x433e0f(0x38a)]=_0x46a8a8,this[_0x433e0f(0x493)][_0x433e0f(0x3e8)](_0x46a8a8);}[_0x4deb9c(0x467)](_0x112cc2,_0x35a21f){const _0x51b951=_0x4deb9c;if(_0x35a21f===_0xaa685a[_0x51b951(0x116)]['BASE64']){const _0x8d509=new Image();return _0x8d509[_0x51b951(0x42c)]=_0x112cc2,_0x8d509;}return this[_0x51b951(0x2c7)][_0x51b951(0x38c)](_0x112cc2);}[_0x4deb9c(0x4e3)](_0x551acf,_0x2c42f3,_0x5031d2){const _0x1a9408=_0x4deb9c;_0x2c42f3===_0xaa685a[_0x1a9408(0x116)][_0x1a9408(0x160)]||_0x5031d2==null||this[_0x1a9408(0x2c7)][_0x1a9408(0x2b2)](_0x551acf,_0x5031d2);}async[_0x4deb9c(0x256)](_0x2bfc5d){const _0x3596ec=_0x4deb9c;try{const _0x230411=this['_replaceFileID'](this[_0x3596ec(0x42a)](),''+_0x2bfc5d),_0x1d3890=(await this[_0x3596ec(0x330)][_0x3596ec(0x38c)](_0x230411))[_0x3596ec(0x317)];return _0x1d3890[_0x3596ec(0x46e)]&&_0x1d3890[_0x3596ec(0x46e)]['code']===_0x46986a['OK']?Promise['resolve'](_0x1d3890[_0x3596ec(0x407)]):Promise[_0x3596ec(0x382)](_0x1d3890[_0x3596ec(0x46e)]);}catch(_0x189c61){return Promise[_0x3596ec(0x382)](_0x189c61);}}async[_0x4deb9c(0x31f)](_0x45bd27){const _0x434372=_0x4deb9c;let _0x3dc71c='';if(!_0x1c9843['includes'](_0x45bd27[_0x434372(0x4f1)]))return this[_0x434372(0x3c6)](),Promise['reject'](new Error(_0xaa685a[_0x434372(0x189)][_0x434372(0x3c7)]));if(_0x45bd27[_0x434372(0x23b)]>_0xc5a976)return this[_0x434372(0x3c6)](),Promise[_0x434372(0x382)](new Error(_0xaa685a[_0x434372(0x189)][_0x434372(0x153)]));try{const _0x196f84=new FormData();_0x196f84[_0x434372(0x358)](_0x434372(0x316),_0x45bd27);const _0x4d0acc=this[_0x434372(0x391)]['getFocusedUnit'](),_0x5bc879=_0x4d0acc==null?void 0x0:_0x4d0acc['getUnitId']();if(!_0x5bc879)throw new Error(_0x434372(0x13e));const _0x136d5b=this[_0x434372(0x4a1)]()+_0x434372(0x439)+_0x45bd27[_0x434372(0x23b)][_0x434372(0x23d)]()+_0x434372(0x474)+_0x47077b[_0x434372(0x251)]+_0x434372(0x14c)+encodeURIComponent(_0x5bc879),_0x4fd74b=await(await fetch(_0x136d5b,{'method':_0x434372(0x473),'body':_0x196f84}))[_0x434372(0x507)]();if(typeof _0x4fd74b[_0x434372(0x129)]!=_0x434372(0x1cf))return this[_0x434372(0x3c6)](),Promise[_0x434372(0x382)](new Error(_0xaa685a['ImageUploadStatusType'][_0x434372(0x2bb)]));_0x3dc71c=_0x4fd74b[_0x434372(0x129)];}catch{return this['_decreaseWaiting'](),Promise[_0x434372(0x382)](new Error(_0xaa685a[_0x434372(0x189)][_0x434372(0x2bb)]));}return new Promise((_0x3d674b,_0x14622b)=>{const _0x11d577=_0x434372,_0x17333c=new FileReader();_0x17333c['readAsDataURL'](_0x45bd27),_0x17333c[_0x11d577(0x1f0)]=_0x21dc55=>{const _0x2c7014=_0x11d577;var _0x5986a8;const _0x1e11da=(_0x5986a8=_0x21dc55[_0x2c7014(0x10c)])==null?void 0x0:_0x5986a8['result'];if(_0x1e11da==null){this['_decreaseWaiting'](),_0x14622b(new Error(_0xaa685a['ImageUploadStatusType'][_0x2c7014(0x2bb)]));return;}const _0x1947c5=_0x44f3cf[_0x2c7014(0x45a)][_0x2c7014(0x4f7)](0x6);_0x3d674b({'imageId':_0x1947c5,'imageSourceType':_0xaa685a[_0x2c7014(0x116)][_0x2c7014(0x4b2)],'source':_0x3dc71c,'base64Cache':_0x1e11da,'status':_0xaa685a['ImageUploadStatusType'][_0x2c7014(0x16a)]}),this['_decreaseWaiting']();};});}[_0x4deb9c(0x4a1)](){const _0xc72e6c=_0x4deb9c;var _0x2dd7f2;return(_0x2dd7f2=this[_0xc72e6c(0x494)][_0xc72e6c(0x2cd)](_0x1985dc))!=null?_0x2dd7f2:_0x34bc4a;}['_getSignURL'](){const _0x3b98bc=_0x4deb9c;var _0x351ba4;return(_0x351ba4=this[_0x3b98bc(0x494)][_0x3b98bc(0x2cd)](_0x23c9f4))!=null?_0x351ba4:_0x4b70f9;}[_0x4deb9c(0x2dc)](_0x4f99f7,_0x2537d2){return _0x4f99f7['replace']('{fileID}',_0x2537d2);}[_0x4deb9c(0x3c6)](){const _0x1bead3=_0x4deb9c;this[_0x1bead3(0x38a)]-=0x1,this[_0x1bead3(0x493)][_0x1bead3(0x3e8)](this[_0x1bead3(0x38a)]);}},_0x3723aa[_0x4deb9c(0x238)]=_0x3dbf03([_0x3a6037(0x0,_0x44f3cf[_0x4deb9c(0x2a6)](_0x43b7e7[_0x4deb9c(0x15f)])),_0x3a6037(0x1,_0x44f3cf[_0x4deb9c(0x150)]),_0x3a6037(0x2,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x165)]))],_0x3723aa[_0x4deb9c(0x238)]);var _0x3a6b4b=Object[_0x4deb9c(0x4f6)],_0x1aa19e=Object[_0x4deb9c(0x3d9)],_0x177dd7=(_0x3f8dc0,_0x5799a9,_0x1ff104,_0x34a189)=>{for(var _0x3d3bbf=_0x34a189>0x1?void 0x0:_0x34a189?_0x1aa19e(_0x5799a9,_0x1ff104):_0x5799a9,_0x3bef6e=_0x3f8dc0['length']-0x1,_0x36d3aa;_0x3bef6e>=0x0;_0x3bef6e--)(_0x36d3aa=_0x3f8dc0[_0x3bef6e])&&(_0x3d3bbf=(_0x34a189?_0x36d3aa(_0x5799a9,_0x1ff104,_0x3d3bbf):_0x36d3aa(_0x3d3bbf))||_0x3d3bbf);return _0x34a189&&_0x3d3bbf&&_0x3a6b4b(_0x5799a9,_0x1ff104,_0x3d3bbf),_0x3d3bbf;},_0x43671c=(_0x2fb9a7,_0x56de52)=>(_0x25826f,_0x25feda)=>_0x56de52(_0x25826f,_0x25feda,_0x2fb9a7);let _0x18c06b=class extends _0x44f3cf[_0x4deb9c(0x48b)]{constructor(_0x324a21,_0x436cda,_0x45af03,_0x481995,_0x2f18b7){const _0x320557=_0x4deb9c;super(),this[_0x320557(0x25f)]=_0x324a21,this[_0x320557(0x391)]=_0x436cda,this[_0x320557(0x20f)]=_0x45af03,this[_0x320557(0x4a8)]=_0x481995,this['_localeService']=_0x2f18b7,this[_0x320557(0x459)](),this[_0x320557(0x3fb)]();}['_initCloseConn'](){const _0x315d94=_0x4deb9c,_0x5a6002=async _0x445a81=>{const _0x4835bb=_0x47c1;(await this['_collaborationSessionService'][_0x4835bb(0x10f)](_0x445a81))[_0x4835bb(0x458)]['pipe'](_0x3ab9e8['filter'](_0x240c74=>_0x240c74[_0x4835bb(0x2aa)]===_0x5c3399[_0x4835bb(0x3d6)][_0x4835bb(0x50b)]),_0x3ab9e8[_0x4835bb(0x23e)](this[_0x4835bb(0x423)]))[_0x4835bb(0x138)](_0x26ca6b=>{const _0xb8cb34=_0x4835bb,_0x5d737c=_0x26ca6b,{reason:_0x4e9964}=_0x5d737c[_0xb8cb34(0xf9)];this[_0xb8cb34(0x25f)][_0xb8cb34(0x38c)](_0x90d6c1[_0xb8cb34(0x1b2)])['show']({'type':_0x1c0df8[_0xb8cb34(0x25c)][_0xb8cb34(0x2b7)],'content':this[_0xb8cb34(0x182)]['t']('collaboration.closeRoom')+'('+_0x4e9964+')'}),this[_0xb8cb34(0x20f)][_0xb8cb34(0x420)](new _0x5848ce[(_0xb8cb34(0x356))](_0x445a81)['id'],!0x1),this['_collaborationSessionService'][_0xb8cb34(0x2fb)](_0x445a81);});};_0x1837c6[_0x315d94(0xfb)](this[_0x315d94(0x391)][_0x315d94(0x3e1)](_0x44f3cf[_0x315d94(0x1bb)][_0x315d94(0x402)]),this[_0x315d94(0x391)][_0x315d94(0x3e1)](_0x44f3cf[_0x315d94(0x1bb)]['UNIVER_DOC']))[_0x315d94(0x4f9)](_0x3ab9e8[_0x315d94(0x269)](_0x2a4452=>_0x2a4452['getUnitId']()),_0x3ab9e8[_0x315d94(0x39e)](_0x257983=>!_0x44f3cf[_0x315d94(0x191)](_0x257983)),_0x3ab9e8['takeUntil'](this['dispose$']))[_0x315d94(0x138)](_0x15d0a0=>{_0x5a6002(_0x15d0a0);});}[_0x4deb9c(0x459)](){const _0x39fd4c=_0x4deb9c,_0x4ff903=async _0x40539e=>{const _0x1d2065=_0x47c1;(await this[_0x1d2065(0x4a8)][_0x1d2065(0x10f)](_0x40539e))[_0x1d2065(0x458)][_0x1d2065(0x4f9)](_0x3ab9e8[_0x1d2065(0x39e)](_0x476d6e=>_0x476d6e[_0x1d2065(0x2aa)]===_0x5c3399[_0x1d2065(0x3d6)][_0x1d2065(0x1d9)]),_0x3ab9e8['takeUntil'](this['dispose$']))[_0x1d2065(0x138)](_0x33c739=>{const _0x269129=_0x1d2065,_0x167b52=_0x33c739,{objectId:_0x5e6fbb}=_0x167b52[_0x269129(0xf9)],_0x366920=this[_0x269129(0x25f)]['get'](_0x2c9d11[_0x269129(0x275)]);_0x5e6fbb===_0x40539e?_0x366920[_0x269129(0x1fa)](_0x40539e):_0x366920['refreshPermission'](_0x40539e,_0x5e6fbb);});};_0x1837c6['merge'](this[_0x39fd4c(0x391)]['getTypeOfUnitAdded$'](_0x44f3cf[_0x39fd4c(0x1bb)]['UNIVER_SHEET']),this[_0x39fd4c(0x391)][_0x39fd4c(0x3e1)](_0x44f3cf[_0x39fd4c(0x1bb)][_0x39fd4c(0x350)]))['pipe'](_0x3ab9e8[_0x39fd4c(0x269)](_0x5e93d2=>_0x5e93d2[_0x39fd4c(0x43f)]()),_0x3ab9e8[_0x39fd4c(0x39e)](_0x40e186=>!_0x44f3cf['isInternalEditorID'](_0x40e186)),_0x3ab9e8[_0x39fd4c(0x23e)](this[_0x39fd4c(0x423)]))[_0x39fd4c(0x138)](_0x2956a5=>{_0x4ff903(_0x2956a5);});}};_0x18c06b=_0x177dd7([_0x44f3cf[_0x4deb9c(0x33b)](_0x44f3cf['LifecycleStages'][_0x4deb9c(0x341)],_0x18c06b),_0x43671c(0x0,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x43671c(0x1,_0x44f3cf[_0x4deb9c(0x165)]),_0x43671c(0x2,_0x44f3cf[_0x4deb9c(0x4d1)]),_0x43671c(0x3,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x433)])),_0x43671c(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf['LocaleService']))],_0x18c06b);const _0x3fbccb=_0x4deb9c(0x1da);var _0x5a750d=Object[_0x4deb9c(0x4f6)],_0x137911=Object['getOwnPropertyDescriptor'],_0x21eb9f=(_0x3849f2,_0x20b852,_0x306100)=>_0x20b852 in _0x3849f2?_0x5a750d(_0x3849f2,_0x20b852,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x306100}):_0x3849f2[_0x20b852]=_0x306100,_0x265f00=(_0x3d5a7e,_0x309624,_0x40dfd0,_0x45122e)=>{for(var _0x3f582b=_0x45122e>0x1?void 0x0:_0x45122e?_0x137911(_0x309624,_0x40dfd0):_0x309624,_0x418d85=_0x3d5a7e['length']-0x1,_0x4f690d;_0x418d85>=0x0;_0x418d85--)(_0x4f690d=_0x3d5a7e[_0x418d85])&&(_0x3f582b=(_0x45122e?_0x4f690d(_0x309624,_0x40dfd0,_0x3f582b):_0x4f690d(_0x3f582b))||_0x3f582b);return _0x45122e&&_0x3f582b&&_0x5a750d(_0x309624,_0x40dfd0,_0x3f582b),_0x3f582b;},_0x3e16a7=(_0x121bbe,_0x2b6b66)=>(_0x3ed1cf,_0x3a81ac)=>_0x2b6b66(_0x3ed1cf,_0x3a81ac,_0x121bbe),_0x70ea35=(_0x2e73a9,_0x2cd6f6,_0x4f8332)=>_0x21eb9f(_0x2e73a9,_0x2cd6f6+'',_0x4f8332);const _0x493296='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x3723aa[_0x4deb9c(0x3f4)]=class extends _0x44f3cf[_0x4deb9c(0x4dc)]{constructor(_0x151753={},_0x18fa79,_0x5c6ab1,_0x174745,_0x15c371){const _0x40e79a=_0x4deb9c;super(),this[_0x40e79a(0x4e7)]=_0x151753,this[_0x40e79a(0x1aa)]=_0x18fa79,this[_0x40e79a(0x47c)]=_0x5c6ab1,this[_0x40e79a(0x25f)]=_0x174745,this[_0x40e79a(0x494)]=_0x15c371;const {..._0x5ccbbd}=this[_0x40e79a(0x4e7)];this[_0x40e79a(0x494)][_0x40e79a(0x25b)](_0x3fbccb,_0x5ccbbd);}[_0x4deb9c(0x2b8)](){const _0x3ec12b=_0x4deb9c;this[_0x3ec12b(0x1bf)]();}['onRendered'](){const _0x5c225a=_0x4deb9c;this[_0x5c225a(0x3c5)]();}[_0x4deb9c(0x1bf)](){const _0x53bc21=_0x4deb9c;var _0x5bde3e,_0x11512c,_0x2d10ea,_0x167ae1;this[_0x53bc21(0x25f)]['has'](_0x44f3cf[_0x53bc21(0x4b7)])&&this[_0x53bc21(0x1aa)][_0x53bc21(0x46e)](_0x53bc21(0x469),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x579eb8=[[_0x44f3cf[_0x53bc21(0x4b7)],{'useClass':_0x3129e0}],[_0x3723aa[_0x53bc21(0x433)]],[_0x491fbd],[_0x43b7e7[_0x53bc21(0x15f)]],[_0x3be97f,{'useClass':_0x3492f1}],[_0x32fe7e],[_0x3723aa[_0x53bc21(0x1d5)]],[_0x43b7e7['WebSocketService']],[_0x356d67],[_0x2c5796],[_0x8239a3],[_0x47cf83],[_0x41b47c],[_0x523579],[_0x18c06b],[_0x2f8f8b,{'useClass':(_0x11512c=(_0x5bde3e=this['_config'])==null?void 0x0:_0x5bde3e[_0x53bc21(0x109)])!=null?_0x11512c:_0x3723aa[_0x53bc21(0x395)]}],[_0x43b7e7[_0x53bc21(0x1ef)],{'useClass':_0x43b7e7[_0x53bc21(0x213)]}],[_0x5c3399[_0x53bc21(0x257)],{'useClass':_0x3723aa[_0x53bc21(0x262)]}],[_0x44f3cf[_0x53bc21(0x249)],{'useClass':_0x3723aa[_0x53bc21(0x3a1)]}],[_0xaa685a[_0x53bc21(0x2d8)],{'useClass':_0x3723aa[_0x53bc21(0x238)]}],[_0x3723aa[_0x53bc21(0x3ac)]],[_0x3723aa[_0x53bc21(0x374)]],[_0x3723aa['DesktopCollaborationStatusDisplayController']],[_0x46e5fc],[_0xdbf3eb]];(_0x2d10ea=this[_0x53bc21(0x4e7)])!=null&&_0x2d10ea[_0x53bc21(0x253)]&&_0x579eb8[_0x53bc21(0x4c0)]([_0x27229c,{'useClass':_0x19a53f}]),_0x579eb8=_0x44f3cf['mergeOverrideWithDependencies'](_0x579eb8,(_0x167ae1=this[_0x53bc21(0x4e7)])==null?void 0x0:_0x167ae1[_0x53bc21(0x48e)]),_0x579eb8[_0x53bc21(0x4cc)](_0x33f860=>this[_0x53bc21(0x25f)][_0x53bc21(0x117)](_0x33f860)),this[_0x53bc21(0x383)]();}[_0x4deb9c(0x3c5)](){const _0x2309d1=_0x4deb9c;this[_0x2309d1(0x446)](this[_0x2309d1(0x47c)][_0x2309d1(0x21b)](_0x44f3cf['UniverInstanceType'][_0x2309d1(0x350)],[_0x58fc0b])),this[_0x2309d1(0x446)](this['_renderManagerService'][_0x2309d1(0x21b)](_0x44f3cf[_0x2309d1(0x1bb)][_0x2309d1(0x402)],[_0x626aa7]));}[_0x4deb9c(0x383)](){const _0x10bffe=_0x4deb9c;var _0x317101,_0x24249e;this[_0x10bffe(0x25f)][_0x10bffe(0x38c)](_0x43b7e7[_0x10bffe(0x15f)])[_0x10bffe(0x169)]({'priority':0x14,'interceptor':_0x43b7e7[_0x10bffe(0x300)]({'maxParallel':0x6})}),(_0x317101=this['_config'])!=null&&_0x317101[_0x10bffe(0x1a3)]||this[_0x10bffe(0x25f)]['get'](_0x3723aa[_0x10bffe(0x1d5)])[_0x10bffe(0x1f7)](),(_0x24249e=this['_config'])!=null&&_0x24249e[_0x10bffe(0x41f)]&&this[_0x10bffe(0x25f)][_0x10bffe(0x38c)](_0x41b47c),this[_0x10bffe(0x25f)][_0x10bffe(0x38c)](_0x3723aa[_0x10bffe(0x3ac)]),this['_injector']['has'](_0x3723aa[_0x10bffe(0x221)])&&this[_0x10bffe(0x25f)][_0x10bffe(0x38c)](_0x3723aa[_0x10bffe(0x221)]);}},_0x70ea35(_0x3723aa[_0x4deb9c(0x3f4)],_0x4deb9c(0x134),_0x493296),_0x3723aa[_0x4deb9c(0x3f4)]=_0x265f00([_0x44f3cf[_0x4deb9c(0x1ce)](_0x5c3399[_0x4deb9c(0x288)]),_0x3e16a7(0x1,_0x44f3cf['ILogService']),_0x3e16a7(0x2,_0x278226['IRenderManagerService']),_0x3e16a7(0x3,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x3e16a7(0x4,_0x44f3cf['IConfigService'])],_0x3723aa[_0x4deb9c(0x3f4)]),_0x3723aa[_0x4deb9c(0x1f3)]=_0x4aaaa6,_0x3723aa[_0x4deb9c(0x180)]=_0x1b950d,_0x3723aa['COLLAB_WEB_SOCKET_URL_KEY']=_0x58c006,_0x3723aa[_0x4deb9c(0x3b6)]=_0x1a5e20,_0x3723aa['CollaborationStatusDisplay']=_0x1e6808,_0x3723aa[_0x4deb9c(0x37e)]=_0x523579,_0x3723aa[_0x4deb9c(0x18f)]=_0x4175a2,_0x3723aa[_0x4deb9c(0x172)]=_0x1bc3ee,_0x3723aa[_0x4deb9c(0x14d)]=_0x2f8f8b,_0x3723aa[_0x4deb9c(0x3b1)]=_0x3be97f,_0x3723aa['LOCAL_CACHE_INTERVAL_KEY']=_0x4c3652,_0x3723aa['LOGIN_URL_KEY']=_0x1fff0c,_0x3723aa['RETRY_CONNECTING_INTERVAL_KEY']=_0x31135c,_0x3723aa[_0x4deb9c(0x214)]=_0x3eddeb,_0x3723aa[_0x4deb9c(0x2e7)]=_0x5bb06f,_0x3723aa[_0x4deb9c(0x15e)]=_0x4007f7,_0x3723aa[_0x4deb9c(0x3f1)]=_0x1691bd,_0x3723aa['SessionStatus']=_0x4388c5,_0x3723aa[_0x4deb9c(0x1dc)]=_0x1fe35d,_0x3723aa[_0x4deb9c(0x31c)]=_0x3492f1,_0x3723aa[_0x4deb9c(0x3cf)]=_0x2eb665,_0x3723aa[_0x4deb9c(0x1ed)]=_0x266df0,Object['defineProperty'](_0x3723aa,Symbol[_0x4deb9c(0x416)],{'value':'Module'});}));function _0x47c1(_0x531da3,_0x255a66){const _0xd8ee3c=_0xd8ee();return _0x47c1=function(_0x47c13d,_0x231168){_0x47c13d=_0x47c13d-0xf4;let _0xa42bb2=_0xd8ee3c[_0x47c13d];return _0xa42bb2;},_0x47c1(_0x531da3,_0x255a66);}function _0xd8ee(){const _0x2b9b28=['createElement','_document','extend','fetchMissingChangesets','c2Prime','COLLAB_WEB_SOCKET_URL','DataLoaderController','textEncoder','_range','indexOf','assign','ThemeService','transform','_clearHeartbeatTimer','sheetId','_commentUpdate$','CommentService','onTransformRemoteChangesetByIMECache','unitId','/-/object/list','reject','_initModules','YUUMI_SUBSCRIPTION_NOT_FOUND','_undoStacks','urlChange$','?url=','_http','@univerjs/rpc','_waitCount','cmd','get','_saveTaskMap','beginPath','fill','_startTelemetryCollaborationNewChangeset','_univerInstanceService','_collabCursorState$','@univerjs-pro/collaboration','transformMutationsWithChangeset','CollaborationSocketService','_createSocket','LocalUndoRedoService','transformByState','_isPermissionRej','JOIN','HEARTBEAT_INTERVAL','YUUMI_URL_COL_OUT_OF_RANGE','_session','filter','Tooltip','TOO_MANY_REQUESTS','AuthzIoHttpService','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','getCurrentRevForDocument','getInterceptPoints','_showConflictNotification','delay','_name','serializeRangeWithSheet','awaiting_with_pending','registerRefRange','@univerjs/design','CollaborationController','objectType','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_disableEditing','MUTATION','IURLService','RevisionService','_socketMessageSubscription','interceptor','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','CollaborationStatus','batchAllowed','SetSelectionsOperation','NodePositionConvertToRectRange','apply','m1Prime','_handleEvent','connectInjector','_getAPIPrefix','getSheetBySheetId','roomMembers$','DocCollaborationEntity','_transformService','_ensureSubject','_getCurrentRevision','_registerRenderDependencies','_decreaseWaiting','ERROR_IMAGE_TYPE','shareReplay','@univerjs/telemetry','DEFAULT_FILE_NAME','_stopTelemetryCollaborationNewChangeset','HEARTBEAT_TIMEOUT','_scheduleTimestamp','on-line-single','deserializeToCombResponse','transformRemoteChangeset','getUnitOnRev','CONFLICT','_lockTransition','@univerjs/sheets','HEARTBEAT','CollaborationEvent','_localCacheService','now','getOwnPropertyDescriptor','/unit/','setItem','_onRecvEvent','SetTextSelectionsOperation','purple300','rxjs','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','getTypeOfUnitAdded$','_clearRedo','unload','UniverIcon','selection','debug','_createHandler','next','toRgbString','transformMutation','red300','gold400','CollaborationEntity','with','_undoRedoService','off-line-single_clip0_910_343','SNAPSHOT_URL_KEY','bottom','getOffsetConfig','UniverCollaborationClientPlugin','_anchorDot','measureText','_notificationService','transformSelections','_startSheetCollabCursor','clear','_initCloseConn','ColorKit','params','actions','PENDING','removeEventListener','isEditing','UNIVER_SHEET','15zXSnhi','CollaborationSession','searchParams','clipPath','url','range','LIVESHARE_NEW_HOST','_docSyncEditingCollabCursorService','_updateURLWithCurrentState','resize','CHANGESET_REVISION_CONFILICT','exhaustSavingTask','image/png','AWAITING_WITH_PENDING','_onConflict','_throwTelemetryCollaborationNewChangeset','UNIVER_UNKNOWN','updateCursorEvent','/new_changes','toStringTag','localeService','APPLY_REJECT','RemoveRowCommandId','/rev/','RichTextEditingMutation','_timeoutTimer','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','/collaborator','enableAuthServer','updatePermissionPoint','message$','sheetID','dispose$','1em','svg','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','createInstance','stringify','COMPRESS_MUTATION_APPLY','_getSignURL','_assignedColors','src','_drawTextRange','assignAColorForMemberID','INTERNAL_ERROR','useObservable','getSheetBlock','DocSelectionManagerService','CollaborationSessionService','&to=','Warning','_transformRemoteChangesetByIMECache','INotificationService','getMember','?size=','status$','evenodd','_scheduleCollaborationTimeoutTimer','max','LOCAL_CACHE_INTERVAL','getUnitId','LocaleService','deleteCollaborator','_userManagerService','entries','isTransformChangesetsSuccess','_schedule','disposeWithMe','triggerDblclick','amd','SNAPSHOT_HAS_BEEN_REMOVED','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_uiPartsService','JSONX','runRefRangeMutations','close','removeMember','executeCommand','_textBubble','top','ITransformService','replaceState','save','getSheetId','0\x200\x2016\x2016','event$','_initUnitPermissionChange','Tools','UniverDesign','unit-cache-','InsertSheetMutation','_setupSubUnitSync','title','_onFetchMissResult','children','IDLE','_hovered','cursorInfo','state$','_onCursorDelete','getImageSourceCache','_snapshotService','[UniverCollaborationClientPlugin]','RegularPolygon','image/bmp','_clearUndo','LIVESHARE_OPERATION','error','IRemoteInstanceService','_transformStack','getUniverSheetInstance','_getSendChangesetTimeout','POST','&source=','_candidateSocket','toggleOffline','switchMap','LIVESHARE_FETCH_OPERATIONS','setTimeout','onlineStatusIcon','contains','_renderManagerService','c1Prime','Steady','NOT_FOUND','verdancy600','_onJoinRoomEvent','429446WsbsHP','Injector','_commandService','currentTheme$','FAIL','hide','_heartbeatTimer','reconnect','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','RxDisposable','_backgroundColor','setUndoRedoMutationParamsCache','override','56268FIFgVN','_onRemoteChangeset','exports','293716DMUuXN','_change$','_configService','UniverCollaborationClient','_localStorageService','_unitID','univerjs-icon\x20univerjs-icon-','m2Prime','_exhaustRemoteChangesetQueue','OffLineSingle','onTransformSelections','idSuffix','debounce','workbook','Subject','_getUploadFileURL','YUUMI_RATE_OVER_LIMIT','_collaborationPaused','HttpImport','getTypeOfUnitDisposed$','CompressMutationService','NEW_CHANGESETS','_collaborationSessionService','url(#off-line-single_clip0_910_343)','state','parse','transformStack\x20failed!','UNIVER_SLIDE','_initMergeInterceptor','/allowed','_scheduleHeartbeat','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','UUID','socket\x20open.','/universer-api/authz','[SyncedState]:\x20received\x20rejection.','auth.needGotoLoginAlert','IUndoRedoService','_clearCollaborationTimeoutTimer','_instanceService','session','function','_commentService','CHANGESET_REJ','isArray','distinctUntilChanged','push','text','row','onCommentUpdate','symbol','getActiveSheet','[DataLoaderController]','url(#$1','_joinRoom','setInterval','_refreshCollabCursors','_hideTimer','forEach','_updateLocalCursor','_transformUndoRedoStack','concat','_setupBeforeClosingHandler','IPermissionService','_transformIMECache','complete','_memberService','/universer-api/file/{fileID}/sign-url','/universer-api/snapshot/','_getUndoStack','onRemoteRej','fetch_missing','csRejEvent','fromEvent','Plugin','_clearLocalCache','from','_getSaveTimeout','resend','onStateChange','HttpExport','addImageSourceCache','_getAnchorBounding','ILogService','collabStatus.fetchMiss','_config','getUnhiddenWorksheets','deserializeRangeWithSheet','lodash','asObservable','_beforeCloseService','_collaborationTimeoutTimer','requestParams','LIVESHARE_TERMINATE','UniverNetwork','type','rev','_roomMembers$','hovered','values','defineProperty','generateRandomId','_initStatusListener','pipe','getWorkbookSelections','_init','_render','RECV','onlineStatus','includes','onSendChangeset','sessionStatus$','_members','[SyncedState]:\x20received\x20acknowledgement.','_getLoginPath','COMPRESS_MUTATION_SEND','getColor','json','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_initCommandExecutedListener','Disposable','SHOULD_CLOSE_CONN','some','_urlService','ALREADY_EXISTS','changesets','image/jpeg','setParam','className','startsWith','VIEW_MAIN','INGEST','_redoStacks','375576aNoxTY','_status$','M0\x200H16V16H0z','data','_socket','merge','fetching\x20missing\x20changesets\x20from\x20','pushState','Rect','subscribeEvent','getUnit','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_disabled','unshift','_initStatusComponent','_ws','saveOfflineData','getAncestorScale','_sessions','socketService','_updateCollabCursors','_createInitialStateImpl','target','getOwnPropertySymbols','[OfflineState]:\x20received\x20acknowledgement.','requireSession','min','status','_telemetryService','LICENSE_DISTRO_REJECTED','Vector2','_startDocCollabCursor','ImageSourceType','add','[CollaborationSession]','getRenderById','_socketService','_getAPIPrefixPath','UserManagerService','_clearTimeoutTimer','@univerjs/drawing','setCurrentUser','_collaborationController','react','448884msqERT','_handleLeaveEvent','newCsEvent','useDependency','parseChangesetToProtocol','onTransformIME','isTransformMutationFailure','FileId','create','confirm','useRef','_awaitingChangeset','Optional','userID','rgba(255,\x20255,\x20255,\x200.01)','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_handleHeartbeatEvent','toDisposable','pluginName','OFFLINE','url(#on-line-single_clip0_910_349)','getCellPositionByOffset','subscribe','EmptyMutation','open$','_lastPointer','SheetsSelectionsService','COMPLETION_FINISHED','unitId\x20is\x20not\x20found','univer-pro.collaboration-client-socket-service','_getSnapshotAPIPrefix','getCurrentSelections','attrs','offline','close$','[OfflineState]:\x20received\x20rejection.','getMemberID','@univerjs/docs','_onUserLeave','_listenToOnlineEvent','_event$','collabCursorState$','&assign=','ICollaborationSocketService','transformChangesets','pending','IConfigService','send','_colorIndex','ERROR_EXCEED_SIZE','[PendingState]:\x20received\x20acknowledgement.','_compressMutationService','_substituteUndoStack','getRelativeToViewportCoord','_selfUnitIDs','_acknowledgedAwaitingChangeset','isTransformMutationsWithChangesetFailure','then','editing\x20status\x20changed\x20to','use','SNAPSHOT_SERVER_URL_KEY','HTTPService','BASE64','collabStatus.conflict','_colorAssignService','_onCombEvent','addObjects','IUniverInstanceService','UNKNOWN_CMD','combineLatest','addEventListener','registerHTTPInterceptor','SUCCUSS','routeKey','_state','\x20to\x20','updateCollaborator','_cachedData','_scheduleClearOtherTimer','UniverDrawing','HEARTBEAT_TIMEOUT_KEY','b64DecodeUnicode','MSG_FOR_ERROR','getUnitType','roomInfos','_syncEditingCollabCursorService','transformIMECache','collabStatus.notCollab','length','resourceIDs','_transformPreviousActiveRange','BehaviorSubject','_updateStatus','has','COLLAB_SUBMIT_CHANGESET_URL_KEY','_onCursorUpdate','_localeService','ACTIVE_UNIT_EVENT_CHANNEL','unsubscribe','lineTo','baseRev','colorChannel1','storage','ImageUploadStatusType','_sheetTransformSelectionsService','socket$','_onRemoteRejected','_startCollaboration','_clearOtherTimers','HEARTBEAT_INTERVAL_KEY','doc.mutation.rich-text-editing','isInternalEditorID','_removeCollabCursors','update','revision','getItem','change$','FromArray','registerOnClose','collaboration.single-unit.warning','RETRY_CONNECTING_MAX_COUNT','translate(.97)','_type','onPointerMove$','clearTimeout','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','result','roles','_waitForHeartbeatResponse','enableOfflineEditing','UniverSheetsUi','SheetCollaborationEntity','font','_onUserJoin','setActiveRange','pauseCollaboration','_logService','_updateState','black','catch','_sendingTimer','getFocusedUnit','getActiveRange','univer-online-status','IMessageService','_docSkeletonManagerService','moveTo','online','_sendHeartbeatTimer','onPointerLeave$','Rectangle','_incrementRevisionNumber','handleIRemoveRow','UniverInstanceType','addObject','_initResize','_sheetSkeletonManagerService','_registerDependencies','NOT_COLLAB','LICENSE_MAX_UNITS_EXCEEDED','isValidRectRange','USERS_ENTER','createSocket','UPDATE_CURSOR','labelPosition','DisposableCollection','collabStatus.offline','RemoveColCommandId','[CollaborationSessionService]','restore','_unlockTransition','subUnitId','DependentOn','string','122088vLRsCO','joinEvent','subunit','JOINING','reverse','LocalCacheService','collaMsg','_onOffline','InsertRangeMoveRightCommandId','UPDATE_PERMISSION_OBJ','collaboration-client.config','_transformSelections','SheetCollabCursorShape','findNodePositionByCharIndex','UnitSnapshot','ONLINE','/universer-api/stream/file/upload','[PendingState]:\x20received\x20rejection.','focused$','createIdentifier','fetchMiss','_saveCache','_applyRemoteChangeset','error$','updateMember','0\x200\x2017\x2016','getUnitStatus$','_cursorShapes','COMMENT_UPDATE','serializeCombRequest','_clearScheduledTask','IHTTPImplementation','onload','fetchThroughInterceptors','reduce','AUTHZ_URL_KEY','round','_queuedRemoteChangesets','_cursor','disableLocalCache','_docTransformSelectionsService','listCollaborators','initWorkbookPermissionChange','_context','fillText','Error\x20on\x20receiving\x20event','Univer','[CollaborationUndoRedoService]','YUUMI_UNABLE_LOAD_URL','defIds','DocIMEInputManagerService','USERS_LEAVE','getCollabEntity','mapDocumentTypeToUniverType','SYNCED','Unknown\x20user','[CollaborationState]:\x20apply\x20error!','collaboration-client.offline-data-not-saved','substring','_handleHover','1610GPfhBp','handleMoveRange','/object','_permissionService','unit','capture','_telemetryInfo','XHRHTTPImplementation','RETRY_CONNECTING_MAX_COUNT_KEY','take','updatePermissionObjEvent','memberID','_onConnectionFailed','2mSzcaG','_roomMembers','registerRenderModule','\x20in\x20_schedule.','fillStyle','/object/','getDocRanges','every','DesktopCollaborationStatusDisplayController','_loadDoc','RETRY_CONNECTING_INTERVAL','AWAITING','currentColor','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_state$','LICENSE_EXPORT_SIZE_EXCEEDED','UNDEFINED','_retryCount','_docStateChangeManagerService','RefRangeService','LEAVE','getValue','startRow','sessionStatus','on-line-single_clip0_910_349','UniverSheets','concatMap','_sendHeartbeat','prototype','FETCH_MISSING','objectID','ImageIoService','post','@univerjs/docs-ui','size','cursorInfo$','toString','takeUntil','textRanges','propertyIsEnumerable','dispose','_HTTPService','ICommandService','random','DeleteRangeMoveUpCommandId','_socket$','\x0aAfter:\x20','3948065UacEEo','IAuthzIoService','transformUndoRedo','operators','15CUiEuj','_onRemoteACK','originalMeta','[CollaborationEntity]','InsertColCommandId','UnitEmbedded','_shapes','enableSingleActiveInstanceLock','getParam','UNRECOGNIZED','getImage','ISnapshotServerService','_online','snapshot','incrementRevForDocument','setConfig','MessageType','_remoteChangesetQueue','onRemoteChangeset','_injector','collab-rect-range-','_executeRemoteChangeset','SnapshotServerOverHTTPService','_removeRoom','isTransformMutationsWithChangesetSuccess','div','xlink:href','@univerjs/engine-render','_pendingMutations','map','startTime','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_handleJoinEvent','APPLY_PERMISSION_DENIED','telemetry\x20info\x20is\x20not\x20initialized','_replayCachedMutations','OTHER_CLIENTS_EDITING','_getScale','...','unknown','sequenceExecute','SheetPermissionInitController','submit\x20changeset\x20error!','getRangePointData','_snapshotServerService','leaveEvent','onCommandExecuted','onMouseMove','saveSheetBlock','IBeforeCloseService','_tryEnsureSocket','_onLocalMutation','_unitStatus','roomMembers','unitID','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_entityInit$','_transitionLocked','loadOfflineData','@univerjs/network','UniverCollaborationPlugin','setAlpha','FETCH_MISS','_updateSubUnitFromURLParams','getSheetObject','/block/','getCollabCursors$','responseType','object','useCallback','registerBeforeClose','\x20-\x20','loadSheet','appendMutation','_getMergeRange','_getRedoStack','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','/fetchmissing?from=','conflict.title','ranges','SUBMIT_CHANGESET','clsx','createCollaborator','/resources','debounceTime','VIEWPORT_KEY','onMissedChangesetFetched','_retryConnectingTimer','_refRangeService','href','Inject','show','synced','NO_OTHER_CLIENTS_EDITING','eventID','COLORS','clearInterval','color','_getSheetObject','_revisionService','collaboration-session-retry','none','set','_cursors','LifecycleStages','displayName','_entities','Error','onStarting','_draw','/universer-api/comb','ERROR_IMAGE','_color','socket\x20close','current','getTime','onlineStatusTitle','CommandType','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_anchor','deepClone','endRow','ws://127.0.0.1:8000/universer-api/comb/connect','_imageSourceCache','updateOfflineData','duration','syncEditingCollabCursor','objectActions','collaboration_new_changeset','getConfig','Shape','getCoordByCell','call','_tryReconnect','getCurrentUser','UNIVER_PROJECT','_checkMissing','isActive','getCollabEntity$','editingUnit','IImageIoService','UniverDocs','onSyncEditingCollabCursor','IRenderManagerService','_replaceFileID','sheets','conflict','IUIPartsService','key','name','makeDirty','_singleActiveUnitService','_createInitialState','_drawRectRange','EXCHANGE_SIGN_URL_SERVER_URL_KEY','SEND_CHANGESET_TIMEOUT_KEY','getResourcesRequest','_rescheduleHeartbeat','21gXWULM','engine','LOGIN_URL_KEY','UniverUi','ILocalStorageService','_removeClearOtherTimer','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','jiqing500','EffectRefRangId','trim','APPLY_NON_SEQUENTIAL_REVISION','tag','permissionRejEvent','_submitChangeset','SetWorksheetActivateCommand','_updateLocalCache','slice','closeSession','blue400','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','icon','_listenToOfflineEvent','ThresholdInterceptorFactory','130lDfShP','getMergeData','HELLO','onRemoteAck','permission.title','APPLY_REVISION_CONFILICT','univer-online-status-icon','arc','_transformUndoredo','@univerjs/ui','_shouldReportTelemetry','@univerjs/engine-formula','onPointerEnter$','_substituteRedoStack','commentUpdate$','[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.','patch','delete','onlyLocal','replaceTextRanges','_socketReady','file','body','isPermissionRej','_syncEditingCollabCursor','_messageService','off-line-single','WebURLService','_hover','UNAUTHENTICATED','saveImage','DocStateChangeManagerService','_fetchMissChangesets','_docTransformIMECacheService','_handler','height','session.will-retry','getViewport','_toggleOffline','forwardRef','@univerjs/sheets-ui','#fff','liveShareNewHost','awaitingChangeset','/universer-api/oidc/authpage','encode','onMissingChangesets','_httpService','_id','univer-pro.collaboration-client.single-active-unit-service','CHANGESET_ACK','list','toggleOnline','_sessionStatus$','getSkeleton','PSEUDO_FETCH_MISSING_RESULT','PERMISSION_DENIED','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','OnLifecycle','_docSkeleton','location','flatMap','removeParam','find','Starting','path','LIVESHARE_REQUEST_HOST','/role','[CollaborationSessionService]:\x20socket\x20error','_toggleOnline','_eventUnsubscribe','_labelPosition','getRoom','LICENSE_IMPORT_SIZE_EXCEEDED','saveSnapshot','univer-offline','selections','loadDoc','TEXT_RANGE_LAYER_INDEX','UNIVER_DOC','_onMessage','_send','_scene','_scheduleSaving','permission.content','WorkbookEditablePermission','width','append','_collabSessionService','setShapeProps','handleDeleteRangeMoveLeft','stopTime','UniverRpc','getUndoRedoMutationParamsCache','_collabCursorController','rxjs/operators','history','fromCollab','handleInsertRow','joinRsp','action','hasOwnProperty','mutations','drawWith','skeleton','init','_cursorInfo$','_unitOnClients','handleInsertRangeMoveDown'];_0xd8ee=function(){return _0x2b9b28;};return _0xd8ee();}
|