@univerjs-pro/collaboration-client 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x5581(){const _0x10a4d3=['split','_instanceService','_notificationService','subscribe','registerHTTPInterceptor','XHRHTTPImplementation','close','size','string','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_getSnapshotAPIPrefix','SheetSkeletonManagerService','clearTimeout','_toggleOffline','icon','USERS_ENTER','get','_getUndoStack','CHANGESET_ACK','from','operators','YUUMI_UNABLE_LOAD_URL','Undefined','isInternalEditorID','USERS_LEAVE','getActiveSheet','RECV','_collaborationPaused','_registerRenderDependencies','colorChannel1','getCellPositionByOffset','permission.content','_replaceFileID','file','BuiltInUIPart','YUUMI_SUBSCRIPTION_NOT_FOUND','[UniverCollaborationClientPlugin]','activeSheet$','_selfUnitIDs','FromArray','trim','getRenderById','JOIN','updateCursorEvent','arc','error','_showConflictNotification','reqId','complete','key','ImageSourceType','clipPath','SNAPSHOT_URL_KEY','Optional','CONFLICT','appendMutation','RETRY_CONNECTING_MAX_COUNT_KEY','COLLAB_SUBMIT_CHANGESET_URL','ThresholdInterceptorFactory','unshift','_stopTelemetryCollaborationNewChangeset','mapDocumentTypeToUniverType','setParam','ThemeService','UUID','cursorInfo$','DesktopCollaborationStatusDisplayController','mapTo','serializeCombRequest','@univerjs/sheets-ui','collaboration.closeRoom','enableAuthServer','getAncestorScale','LIVESHARE_FETCH_OPERATIONS','skeleton','update','focused$','getCollabCursors$','sheets','[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.','_colorIndex','permissionRejEvent','asObservable','_getAPIPrefix','_initModules','NOT_FOUND','_backgroundColor','_getCtorByUniverType','makeDirty','path','push','IPermissionService','_decreaseWaiting','getImage','_onUserLeave','collab-rect-range-','getImageSourceCache','getUnhiddenWorksheets','ERROR_EXCEED_SIZE','_remoteChangesetQueue','handleIRemoveRow','createSocket','csAckEvent','concat','FETCH_MISS','listRoles','getParam','getUnitStatus$','saveSheetBlock','_config','53992NrAwgP','SNAPSHOT_SERVER_URL_KEY','JOINING','connectInjector','history','InsertRowCommandId','error$','getMember','_getSheetObject','BehaviorSubject','loginUrlKey','status','addEventListener','129caCVeu','_color','replace','CollaborationStatus','_socket$','body','purple300','_HTTPService','collaboration-client.offline-data-not-saved','PERMISSION_REJ','UnitEmbedded','rxjs/operators','delay','MergeInterceptorFactory','_changesetReqId','defIds','[CollaborationSessionService]:\x20socket\x20error','\x0aAfter:\x20','_handleHover','/allowed','_collaborationSessionService','baseRev','_refreshCollabCursors','take','_urlService','_getAPIPrefixPath','getRangePointData','UniverNetwork','NO_OTHER_CLIENTS_EDITING','headers','searchParams','_sessionStatus$','&assign=','routeKey','EffectRefRangId','isValidRectRange','AWAITING','transform','onStateChange','startRow','collab-text-anchor-','handleMoveRange','@univerjs/engine-formula','className','TEXT_RANGE_LAYER_INDEX','Shape','getVpScrollXYInfoByPosToVp','InsertSheetMutation','uploadFileServerUrl','_beforeCloseService','_disableEditing','xlink:href','APPLY_NON_SEQUENTIAL_REVISION','2719381EmVRQG','VIEWPORT_KEY','Injector','session','_socketService','_onRefRangeChange','post','UniverSheetsUi','snapshotServerUrl','onPointerEnter$','labelPosition','_initMergeInterceptor','sheetId','removeMember','/universer-api/stream/file/upload','_status$','_themeService','_shapes','socket$','div','isTransformMutationFailure','_substituteRedoStack','findNodePositionByCharIndex','_clearHeartbeatTimer','range','_cursors','downloadEndpointUrl','_univerInstanceService','includes','UNRECOGNIZED','onCommentUpdate','FileId','_commentUpdate$','getRandomValues','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_change$','onRemoteRej','updateMember','_onConnectionOpen','_unitID','createCollaborator','getTime','forwardRef','_docTransformSelectionsService','_clearCollaborationTimeoutTimer','add','UNIVER_UNKNOWN','addObjects','_shouldReportTelemetry','userID','_updateLocalCursor','prototype','_undoStacks','CollaborationEvent','merge','_initCommandExecutedListener','parse','synced','\x0aCurrent:\x20','HTTPService','origin','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','conflict.title','_uiPartsService','registerRenderModule','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','[CollaborationSessionService]','_initStatusListener','_docSkeletonManagerService','_entityInit$','_scheduleClearOtherTimer','lineTo','getFocusedUnit','debounce','rev','Tools','deleteCollaborator','image/png','LIVESHARE_OPERATION','Rectangle','onMouseMove','FAIL','UniverSheets','objectType','forEach','url(#$1','_clearOtherTimers','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','originalMeta','[OfflineState]:\x20received\x20changeset.','_incrementRevisionNumber','rng','members','length','COLORS','_transformService','handleInsertRangeMoveRight','UPDATE_PERMISSION_OBJ','_commandService','SNAPSHOT_HAS_BEEN_REMOVED','not_collab','transformSelections','backgroundColor','/unit/','getTypeOfUnitDisposed$','amd','_exhaustRemoteChangesetQueue','_sendHeartbeat','registerRefRange','UniverInstanceType','editingUnit','transformStack\x20failed!','rgba(255,\x20255,\x20255,\x200.01)','closePath','@univerjs/telemetry','_cursorInfo$','APPLY_DUPLICATED','_listenToOfflineEvent','_anchorDot','setInterval','SheetsSelectionsService','8920uYDwJU','socket\x20open.','number','PENDING','onSyncEditingCollabCursor','assign','failed\x20to\x20apply\x20missed\x20changesets!','roles','IRenderManagerService','_removeCollabCursors','fill','commentUpdateEvent','fillRule','attrs','_clearRedo','ISnapshotServerService','min','INGEST','_saveCache','IDLE','CollaborationSessionService','defs','substring','@univerjs-pro/license','_waitCount','_updateCollabCursors','socketService','LocalUndoRedoService','getColor','1em','_substituteUndoStack','WebSocketService','dispose$','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','reject','listCollaborators','round','/collaborator','onload','[CollaborationEntity]','c1Prime','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','subUnitId','drawWith','_getDownloadEndpointURL','fillText','closeSession','_localCacheService','collaboration-session-retry','allowed','_hideTimer','SEND_CHANGESET_TIMEOUT','clearInterval','_docSyncEditingCollabCursorService','_injector','_localStorageService','CollaborationSession','_onUserJoin','onSendChangeset','getTypeOfUnitAdded$','message$','collabWebSocketUrl','saveImage','show','collaboration-client.config','transformUndoRedo','isPermissionRej','COMPRESS_MUTATION_APPLY','toggleOffline','HttpExport','getUnitId','Error\x20on\x20receiving\x20event','COMPLETION_FINISHED','debounceTime','with','syncEditingCollabCursor','_startDocCollabCursor','UniverDrawing','find','transformChangesets','_onMessage','unsubscribe','image/jpg','off-line-single_clip0_910_343','_drawRectRange','&to=','_updateSubUnitFromURLParams','COLLAB_WEB_SOCKET_URL_KEY','cursorInfo','UNIVER_DOC','_transformSelections','_cachedData','_unitOnClients','_heartbeatTimer','NodePositionConvertToCursor','INTERNAL_ERROR','unitId','APPLY_REVISION_CONFILICT','_logService','LICENSE_EXPORT_SIZE_EXCEEDED','WebURLService','_drawAnchor','Warning','blue400','sequenceExecute','_createInitialStateImpl','DocIMEInputManagerService','CONNECTOR_DATA_TOO_LARGE','_anchor','_scheduleTimestamp','deepClone','_onConnectionFailed','verdancy600','getOwnPropertySymbols','Module','COMMENT_UPDATE','[CollaborationUndoRedoService]','initWorkbookPermissionChange','univer-offline','shouldCloseConn','m2Prime','subscribeEvent','text','batchAllowed','black','ICollaborationSocketService','concatMap','_replayCachedMutations','revision','loadOfflineData','_state$','ICommandService','LEAVE','_socket','_lastPointer','_type','/block/','_tryEnsureSocket','toString','_textBubble','[FetchMissState]','gold400','Subject','ERROR_IMAGE','Error','currentSkeleton$','has','memberID','Inject','/fetchmissing?from=','isActive','_eventUnsubscribe','children','531378omaGHE','_sessions','parseProtocolChangeset','_retryCount','InsertColCommandId','retryConnectingInterval','unit-cache-','on-line-single','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','unit','getCurrentUnitForType','_messageService','@univerjs/ui','create','_labelPosition','getCollabEntity$','NOT_COLLAB','_undoRedoService','measureText','UniverUi','params','roomMembers','currentTheme$','onTransformSelections','getRelativeToViewportCoord','currentColor','compose','_redoStacks','liveShareOperation','_initEventListeners','_startTelemetryCollaborationNewChangeset','OffLineSingle','LOGIN_URL_KEY','localeService','UniverCollaboration','unitId\x20is\x20not\x20found','_pendingMutations','_changesetSessionId','_event$','/-/object/-/batch_allowed','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_cursor','onMissedChangesetFetched','saveOfflineData','_range','generateRandomId','DependentOn','_onCursorDelete','propertyIsEnumerable','awaiting','react','_createInitialState','_startSheetCollabCursor','ALREADY_EXISTS','\x20in\x20_schedule.','LocaleService','sessionStatus$','mutations','onlineStatusIcon','exhaustSavingTask','apply','submit\x20changeset\x20error!','getSheetBySheetId','_waitForHeartbeatResponse','getCurrentUser','target','toRgbString','@univerjs/sheets','addImageSourceCache','UniverTelemetry','shareReplay','_saveTaskMap','setAlpha','withCredentials','HttpImport','putCollaborators','resize','fromEventSubject','CollaborationController','doc.mutation.rich-text-editing','@univerjs/network','_sheetTransformSelectionsService','PERMISSION_DENIED','LIVESHARE_REQUEST_HOST','getCurrentSelections','fetchThroughInterceptors','_syncEditingCollabCursorService','session.connection-failed','textEncoder','object','stopTime','_listenToOnlineEvent','enableSingleActiveInstanceLock','_revisionService','_rescheduleHeartbeat','session.will-retry','hasOwnProperty','filter','@univerjs/design','init','{fileID}','_executeRemoteChangeset','_roomMembers','_onFetchMissResult','_timeoutTimer','toggleOnline','collab-text-range-','SYNCED','authzUrl','sendChangesetTimeout','_removeClearOtherTimer','UNIVER_SLIDE','bind','useDependency','switchMap','IContextService','getUnitOnRev','conflict','updatePermissionPoint','getValue','createElement','debug','_assignedColors','put','none','symbol','onTransformIME','_toggleOnline','workbook','EmptyMutation','confirm','_loadDoc','transformByState','pauseCollaboration','getActiveRange','AWAITING_WITH_PENDING','svg','_isPermissionRej','_tryReconnect','_getUploadFileURL','objectID','/universer-api/snapshot/','use','getViewport','actions','image/jpeg','now','LICENSE_DISTRO_REJECTED','selection','getUnit','_submitChangeset','_collabCursorController','_updateURLWithCurrentState','/object/','onTransformChange$','_loadSheet','_renderManagerService','getCollabEntity','endRow','session.room-full','popstate','takeUntil','_singleActiveUnitService','9JBQPpJ','_scheduleCollaborationTimeoutTimer','extend','SEND_CHANGESET_TIMEOUT_KEY','joinRsp','result','column','/universer-api/file/{fileID}/sign-url','map','EXCHANGE_SIGN_URL_SERVER_URL_KEY','off-line-single','exports','BASE64','fromCollab','_transformUndoRedoStack','_initRequestHeader','onPointerLeave$','selections','change$','SnapshotServerOverHTTPService','transformMutation','fetchMiss','UniverCollaborationClient','_imageSourceCache','pushState','_joinRoom','requireSession','_members','CommentService','SetDocZoomRatioOperation','INVALID_ARGUMENT','_sendingTimer','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','fetching\x20missing\x20changesets\x20from\x20','_getScale','getOffsetConfig','roomInfos','_name','reverse','assignAColorForMemberID','&source=','onRendered','SetSelectionsOperation','b64DecodeUnicode','getCoordByCell','getResourcesRequest','collabStatus.conflict','onReady','eventID','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_initCloseConn','_scheduleSaving','socket\x20close','_roomMembers$','UniverDesign','setTimeout','save','evenodd','_snapshotService','_clearScheduledTask','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','set','NodePositionConvertToRectRange','getUnitType','data','?url=','url(#on-line-single_clip0_910_349)','pipe','setWaitCount','HEARTBEAT_INTERVAL_KEY','width','SetTextSelectionsOperation','...','_render','[DataLoaderController]','_onConflict','@univerjs-pro/collaboration','0\x200\x2017\x2016','APPLY_PERMISSION_DENIED','replaceState','getCurrentRevOfUnit','_initUnitPermissionChange','connection\x20error','createInstance','collaboration.single-unit.warning','_draw','online','_commentService','IUndoRedoService','fetch_missing','restore','random','setUndoRedoMutationParamsCache','_docSkeleton','values','event$','on-line-single_clip0_910_349','updateOfflineData','_onJoinRoomEvent','ACTIVE_UNIT_EVENT_CHANNEL','_localeService','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','_http','IUniverInstanceService','LOCAL_CACHE_INTERVAL_KEY','\x20to\x20','_hover','isTransformMutationsWithChangesetFailure','_collaborationController','getLatestCsReqIdBySid','ranges','_checkMissing','_updateState','getAttachHeader','newValue','_telemetryService','LIVESHARE_NEW_HOST','RegularPolygon','@univerjs/docs-ui','_online','/universer-api/authz','location','getSkeleton','fetchMissingChangesets','UNKNOWN_CMD','editing\x20status\x20changed\x20to','@univerjs/docs','ENSURE_SNAPSHOT_EXECUTION','objectActions','_applyRemoteChangeset','_clearUndo','duration','_removeRoom','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_transformPreviousActiveRange','_onOffline','conflict.content','_hovered','onMissingChangesets','_memberService','SUBMIT_CHANGESET','contains','setCurrentUser','bottom','_onCursorUpdate','docStateChange$','_onCombEvent','name','open$','_disabled','subunit','UNIVER_SHEET','HELLO','changesets','close$','_updateLocalCache','handleIRemoveCol','_userManagerService','sid','addObject','_transformUndoredo','FETCH_MISSING','[CollaborationSession]','_awaitingChangeset','_session','univerjs-icon\x20univerjs-icon-','updateCollaborator','_syncEditingCollabCursor','_httpService','saveChangeset','sheetID','_docTransformIMECacheService','distinctUntilChanged','hovered','offline','Rect','_handleJoinEvent','DeleteRangeMoveUpCommandId','setConfig','setShapeProps','_getSaveTimeout','CollaborationStatusDisplay','_setupBeforeClosingHandler','getCurrent','_createSocket','rxjs','univer-pro.collaboration-client.single-active-unit-service','next','OFFLINE','@univerjs/drawing','_candidateSocket','/rev/','collabCursorState$','_permissionService','RxDisposable','top','_retryConnectingTimer','reduce','@univerjs/core','getInterceptPoints','_transformIMECache','CHANGESET_REJ','interceptor','_compressMutationService','auth.needGotoLoginAlert','_refRangeService','_handleHeartbeatEvent','_configService','getMergeData','_initResize','UNIVER_PROJECT','_ws','Disposable','_getSendChangesetTimeout','WorkbookEditablePermission','unitID','stringify','_sendHeartbeatTimer','tag','registerBeforeClose','setActiveRange','href','[OfflineState]:\x20received\x20acknowledgement.','IMessageService','unknown','DisposableCollection','/resources','encodeURIComponent','title','_createHandler','_transformRemoteChangesetByIMECache','pending','_scheduleHeartbeat','onRemoteAck','ILogService','Unknown\x20user','_handleLeaveEvent','YUUMI_URL_COL_OUT_OF_RANGE','jiqing500','Univer','ColorKit','getConfig','max','_send','textRanges','then','IConfigService','fromEvent','handleDeleteRangeMoveUp','disableLocalCache','pluginName','RichTextEditingMutation','touchDependencies','displayName','enableOfflineEditing','sessionStatus','onCommandExecuted','triggerDblclick','transformIMECache','_getCurrentRevision','_collaborationTimeoutTimer','useCallback','send','HEADER_MENU','_socketReady','UserManagerService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','objects','UPDATE_CURSOR','_collabCursorState$','startColumn','PSEUDO_FETCH_MISSING_RESULT','onStarting','_handler','MUTATION','transformRemoteChangeset','VIEW_MAIN','_getRedoStack','_scene','setItem','_onLocalMutation','SetWorksheetActivateCommand','CommandType','_state','DEFAULT_FILE_NAME','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','fillStyle','DocSkeletonManagerService','useObservable','getDocRanges','_socketMessageSubscription','font','toDisposable','status$','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[CollaborationState]:\x20apply\x20error!','HEARTBEAT_TIMEOUT','type','2194400wPXsdq','createIdentifier','toLowerCase','DataLoaderController','executeCommand','MoveRangeCommandId','newCsEvent','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','ImageIoService','_initStatusComponent','@univerjs/rpc','randomUUID','RemoveRowCommandId','_sheetSkeletonManagerService','SessionStatus','_acknowledgedAwaitingChangeset','function','_onRemoteACK','getMemberID','hidden','disposeWithMe','readAsDataURL','UniverCollaborationClientPlugin','_ensureSubject','IURLService','_colorAssignService','/new_changes','isArray','onRemoteChangeset','liveShareNewHost','resourceIDs','slice','DocSelectionManagerService','dispose','_transitionLocked','isTransformChangesetsSuccess','NEW_CHANGESETS','_unlockTransition','RevisionService','_fetchMissChangesets','getUndoRedoMutationParamsCache','_init','_getAnchorBounding','updatePermissionObjEvent','\x20-\x20','some','OnLineSingle','getSheetBlock','catch','image/gif','entries','_transformStack','[OfflineState]:\x20received\x20rejection.','ITransformService','getOwnPropertyDescriptor','_collabSessionService','useRef','InsertRangeMoveRightCommandId','UNIVER_COLLABORATION_CLIENT_PLUGIN','LocalCacheService','_context','CHANGESET_REVISION_CONFILICT','row','@univerjs/engine-render','CollaborationSocketService','idSuffix','[PendingState]:\x20received\x20rejection.','runRefRangeMutations','_getSignURL','COMPRESS_MUTATION_SEND','m1Prime','call','SheetCollaborationEntity','collaboratorID','_updateStatus','POST','841386ivTeaO','isTransformMutationsWithChangesetSuccess','requestParams','MSG_FOR_ERROR','UNDEFINED','[SyncedState]:\x20received\x20rejection.','_snapshotServerService','IAuthzIoService','resend','univer-pro.collaboration-client-socket-service','_id','SnapshotService','AUTHZ_URL_KEY','getItem','_lockTransition','current','_cursorShapes','HEARTBEAT','onlineStatusTitle','delete','IUIPartsService','indexOf','combineLatest','awaiting_with_pending','univer-online-status-title','ITelemetryService','loadSheet','UNKNOWN_CODE','_queuedRemoteChangesets','1338zZADED','_entities','ImageUploadStatusType','storage','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','getUniverSheetInstance','roomMembers$','whenReady','_telemetryInfo','getRoom','univer-online-status','_clearTimeoutTimer','_onRemoteRejected','OTHER_CLIENTS_EDITING','code','_docStateChangeManagerService','disposeUnit','urlChange$','transformMutationsWithChangeset','UniverDocs','#FFF','Plugin','height','list','MessageType','deserializeRangeWithSheet','mergeOverrideWithDependencies','collaboration_new_changeset','color','LICENSE_IMPORT_SIZE_EXCEEDED','joinEvent','_getMergeRange','AuthzIoHttpService','method','engine','startsWith','onPointerMove$','M0\x200H16V16H0z','SheetCollabCursorShape','_unitStatus','SHOULD_CLOSE_CONN','CollaborationEntity','ONLINE','_getLoginPath','state$','UniverEngineRender','_clearLocalCache','onTransformRemoteChangesetByIMECache','/-/object/list','reconnect','getSheetId','onlyLocal','ILocalStorageService','_drawTextRange','Tooltip','_schedule','encode','flatMap','awaitingChangeset','_startCollaboration','DocCollaborationEntity','1387664NCyxwq','defineProperty','LICENSE_MAX_UNITS_EXCEEDED','cmd','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_setupSubUnitSync','saveSnapshot','LIVESHARE_TERMINATE','_throwTelemetryCollaborationNewChangeset','collabStatus.fetchMiss','_onRecvEvent','_handleEvent'];_0x5581=function(){return _0x10a4d3;};return _0x5581();}function _0x2d25(_0xe26e1d,_0x14bae4){const _0x5581d8=_0x5581();return _0x2d25=function(_0x2d2585,_0x32236a){_0x2d2585=_0x2d2585-0x68;let _0x20131a=_0x5581d8[_0x2d2585];return _0x20131a;},_0x2d25(_0xe26e1d,_0x14bae4);}(function(_0x3fa6a2,_0x5ed810){const _0x1aceab=_0x2d25,_0x73d6b6=_0x3fa6a2();while(!![]){try{const _0x2a8a8b=-parseInt(_0x1aceab(0x170))/0x1+-parseInt(_0x1aceab(0x389))/0x2+-parseInt(_0x1aceab(0x46b))/0x3*(-parseInt(_0x1aceab(0x45e))/0x4)+-parseInt(_0x1aceab(0xd7))/0x5*(-parseInt(_0x1aceab(0x3a6))/0x6)+parseInt(_0x1aceab(0x4a0))/0x7+parseInt(_0x1aceab(0x3e3))/0x8*(-parseInt(_0x1aceab(0x213))/0x9)+parseInt(_0x1aceab(0x33d))/0xa;if(_0x2a8a8b===_0x5ed810)break;else _0x73d6b6['push'](_0x73d6b6['shift']());}catch(_0x2c2188){_0x73d6b6['push'](_0x73d6b6['shift']());}}}(_0x5581,0x70760),function(_0x508118,_0x5d0095){const _0x5b92fd=_0x2d25;typeof exports==_0x5b92fd(0x1c9)&&typeof module<'u'?_0x5d0095(exports,require(_0x5b92fd(0x2d9)),require(_0x5b92fd(0x2cc)),require(_0x5b92fd(0x476)),require(_0x5b92fd(0x1d2)),require('@univerjs/ui'),require(_0x5b92fd(0x1c0)),require(_0x5b92fd(0x25f)),require('@univerjs/telemetry'),require(_0x5b92fd(0x289)),require(_0x5b92fd(0x1b3)),require('@univerjs/engine-render'),require(_0x5b92fd(0x291)),require(_0x5b92fd(0x2d0)),require(_0x5b92fd(0x495)),require('@univerjs/sheets-ui'),require(_0x5b92fd(0x1a2)),require(_0x5b92fd(0x347)),require(_0x5b92fd(0xee))):typeof define==_0x5b92fd(0x34d)&&define[_0x5b92fd(0xc7)]?define([_0x5b92fd(0x21e),'@univerjs/core','rxjs',_0x5b92fd(0x476),'@univerjs/design',_0x5b92fd(0x17c),_0x5b92fd(0x1c0),_0x5b92fd(0x25f),_0x5b92fd(0xd0),_0x5b92fd(0x289),_0x5b92fd(0x1b3),_0x5b92fd(0x37c),_0x5b92fd(0x291),_0x5b92fd(0x2d0),_0x5b92fd(0x495),_0x5b92fd(0x435),'react',_0x5b92fd(0x347),'@univerjs-pro/license'],_0x5d0095):(_0x508118=typeof globalThis<'u'?globalThis:_0x508118||self,_0x5d0095(_0x508118[_0x5b92fd(0x229)]={},_0x508118['UniverCore'],_0x508118[_0x5b92fd(0x2cc)],_0x508118[_0x5b92fd(0x2cc)][_0x5b92fd(0x404)],_0x508118[_0x5b92fd(0x249)],_0x508118[_0x5b92fd(0x183)],_0x508118[_0x5b92fd(0x486)],_0x508118[_0x5b92fd(0x192)],_0x508118[_0x5b92fd(0x1b5)],_0x508118['UniverDocsUi'],_0x508118[_0x5b92fd(0xb0)],_0x508118[_0x5b92fd(0x3d3)],_0x508118[_0x5b92fd(0x3b9)],_0x508118[_0x5b92fd(0x124)],_0x508118['UniverEngineFormula'],_0x508118[_0x5b92fd(0x4a7)],_0x508118['React'],_0x508118['UniverRpc'],_0x508118['UniverLicense']));}(this,function(_0x594fe1,_0x2c7fed,_0x1fc547,_0x2eca2e,_0x4d689c,_0x4b403d,_0x4893ce,_0x2856d7,_0x15ef2d,_0x21cef1,_0x244249,_0x180dc9,_0x7ac583,_0x48fa70,_0x172d10,_0x3f13ec,_0x18f464,_0x214b0d,_0x3cd408){'use strict';const _0x291ba3=_0x2d25;var _0x215d66=Object[_0x291ba3(0x3e4)],_0x412f35=(_0x13200a,_0x51bbca,_0x581086)=>_0x51bbca in _0x13200a?_0x215d66(_0x13200a,_0x51bbca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x581086}):_0x13200a[_0x51bbca]=_0x581086,_0x24cbc7=(_0x4469c5,_0x2ba6da,_0x30809e)=>_0x412f35(_0x4469c5,typeof _0x2ba6da!=_0x291ba3(0x1ed)?_0x2ba6da+'':_0x2ba6da,_0x30809e);const _0x2e8c6c='SNAPSHOT_SERVER_URL_KEY',_0x5dad33='/universer-api/snapshot',_0x5615fb=_0x291ba3(0x424),_0xf30628=_0x291ba3(0x10a),_0x8abbe0='COLLAB_WEB_SOCKET_URL',_0x30eb17='ws://127.0.0.1:8000/universer-api/comb/connect',_0x16f4d4='HEARTBEAT_INTERVAL',_0x56c1a7=_0x291ba3(0x33b),_0x42be50='RETRY_CONNECTING_MAX_COUNT',_0x3085a4='LOCAL_CACHE_INTERVAL',_0x16814e=_0x291ba3(0x429),_0x7001e1='/universer-api/comb',_0x52fcac='LOGIN_URL_KEY',_0x18b7b1='/universer-api/oidc/authpage';var _0x2bbf52=(_0x3695ae=>(_0x3695ae[_0x3695ae[_0x291ba3(0x38d)]=0x0]='UNDEFINED',_0x3695ae[_0x3695ae['OK']=0x1]='OK',_0x3695ae[_0x3695ae['INTERNAL_ERROR']=0x2]=_0x291ba3(0x136),_0x3695ae[_0x3695ae[_0x291ba3(0x1c2)]=0x3]=_0x291ba3(0x1c2),_0x3695ae[_0x3695ae[_0x291ba3(0x445)]=0x4]=_0x291ba3(0x445),_0x3695ae[_0x3695ae['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x3695ae[_0x3695ae[_0x291ba3(0x1a5)]=0x6]=_0x291ba3(0x1a5),_0x3695ae[_0x3695ae[_0x291ba3(0x231)]=0x7]=_0x291ba3(0x231),_0x3695ae[_0x3695ae['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x3695ae[_0x3695ae[_0x291ba3(0x11f)]=0x9]=_0x291ba3(0x11f),_0x3695ae[_0x3695ae[_0x291ba3(0x37a)]=0x1389]=_0x291ba3(0x37a),_0x3695ae[_0x3695ae['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x3695ae[_0x3695ae['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x291ba3(0xc1),_0x3695ae[_0x3695ae['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x291ba3(0x292),_0x3695ae[_0x3695ae['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x3695ae[_0x3695ae[_0x291ba3(0x49f)]=0x1b5a]=_0x291ba3(0x49f),_0x3695ae[_0x3695ae[_0x291ba3(0x138)]=0x1b5b]=_0x291ba3(0x138),_0x3695ae[_0x3695ae['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x291ba3(0x261),_0x3695ae[_0x3695ae[_0x291ba3(0xd2)]=0x1b5d]=_0x291ba3(0xd2),_0x3695ae[_0x3695ae['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x291ba3(0x142),_0x3695ae[_0x3695ae[_0x291ba3(0x3e5)]=0x2329]=_0x291ba3(0x3e5),_0x3695ae[_0x3695ae[_0x291ba3(0x244)]=0x232a]=_0x291ba3(0x244),_0x3695ae[_0x3695ae[_0x291ba3(0x3c3)]=0x232b]=_0x291ba3(0x3c3),_0x3695ae[_0x3695ae['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x291ba3(0x13a),_0x3695ae[_0x3695ae[_0x291ba3(0x203)]=0x232d]=_0x291ba3(0x203),_0x3695ae[_0x3695ae[_0x291ba3(0x405)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x3695ae[_0x3695ae[_0x291ba3(0x300)]=0x2712]=_0x291ba3(0x300),_0x3695ae[_0x3695ae['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x3695ae[_0x3695ae[_0x291ba3(0x413)]=0x2714]=_0x291ba3(0x413),_0x3695ae[_0x3695ae[_0x291ba3(0x7b)]=-0x1]=_0x291ba3(0x7b),_0x3695ae))(_0x2bbf52||{}),_0x4cd70d=(_0x2fb581=>(_0x2fb581[_0x2fb581[_0x291ba3(0x8c)]=0x0]=_0x291ba3(0x8c),_0x2fb581[_0x2fb581[_0x291ba3(0x130)]=0x1]='UNIVER_DOC',_0x2fb581[_0x2fb581[_0x291ba3(0x2aa)]=0x2]=_0x291ba3(0x2aa),_0x2fb581[_0x2fb581['UNIVER_SLIDE']=0x3]=_0x291ba3(0x1df),_0x2fb581[_0x2fb581[_0x291ba3(0x2e5)]=0x4]=_0x291ba3(0x2e5),_0x2fb581[_0x2fb581[_0x291ba3(0x7b)]=-0x1]=_0x291ba3(0x7b),_0x2fb581))(_0x4cd70d||{}),_0x153a81=(_0x2a9b05=>(_0x2a9b05[_0x2a9b05[_0x291ba3(0x28f)]=0x0]=_0x291ba3(0x28f),_0x2a9b05[_0x2a9b05[_0x291ba3(0x2ab)]=0x1]=_0x291ba3(0x2ab),_0x2a9b05[_0x2a9b05[_0x291ba3(0x41a)]=0x2]='JOIN',_0x2a9b05[_0x2a9b05[_0x291ba3(0x15b)]=0x3]=_0x291ba3(0x15b),_0x2a9b05[_0x2a9b05[_0x291ba3(0xe8)]=0x4]=_0x291ba3(0xe8),_0x2a9b05[_0x2a9b05[_0x291ba3(0x39a)]=0x5]='HEARTBEAT',_0x2a9b05[_0x2a9b05[_0x291ba3(0x40a)]=0x6]=_0x291ba3(0x40a),_0x2a9b05[_0x2a9b05[_0x291ba3(0x7b)]=-0x1]=_0x291ba3(0x7b),_0x2a9b05))(_0x153a81||{}),_0xb7a022=(_0x360f39=>(_0x360f39[_0x360f39[_0x291ba3(0x3a4)]=0x0]='UNKNOWN_CODE',_0x360f39[_0x360f39['OK']=0x1]='OK',_0x360f39[_0x360f39[_0x291ba3(0xaf)]=0x2]=_0x291ba3(0xaf),_0x360f39[_0x360f39[_0x291ba3(0x7b)]=-0x1]=_0x291ba3(0x7b),_0x360f39))(_0xb7a022||{}),_0x1c10fa=(_0x26a863=>(_0x26a863[_0x26a863['Undefined']=0x0]=_0x291ba3(0x406),_0x26a863[_0x26a863['HttpImport']=0x1]=_0x291ba3(0x1ba),_0x26a863[_0x26a863[_0x291ba3(0x11c)]=0x2]='HttpExport',_0x26a863[_0x26a863[_0x291ba3(0x475)]=0x3]=_0x291ba3(0x475),_0x26a863[_0x26a863['UnitSnapshot']=0x4]='UnitSnapshot',_0x26a863[_0x26a863[_0x291ba3(0x7b)]=-0x1]=_0x291ba3(0x7b),_0x26a863))(_0x1c10fa||{});const _0x229401=_0x291ba3(0x117),_0x357162={};function _0xd87005(_0x55e76e){const _0xa343fa=_0x291ba3;var _0x575db1,_0x1dfb69,_0x97ae0f,_0x2ef5d7;const _0x3f0c17=_0x55e76e[_0xa343fa(0x253)],_0x3edb54=JSON['parse'](_0x3f0c17);switch(_0x3edb54[_0xa343fa(0x3e6)]){case _0x153a81[_0xa343fa(0x39a)]:case _0x153a81['HELLO']:{const _0x3d4d04=_0x3edb54['infoRsp'];return{..._0x3edb54,'data':_0x3d4d04,'cmd':_0x3edb54[_0xa343fa(0x3e6)]};}case _0x153a81[_0xa343fa(0x41a)]:{const _0x4ebb5f=_0x3edb54[_0xa343fa(0x217)];return{..._0x3edb54,'data':_0x4ebb5f,'cmd':_0x3edb54['cmd']};}case _0x153a81[_0xa343fa(0x40a)]:{const _0x470201=_0x3edb54['collaMsg'];switch(_0x470201[_0xa343fa(0x243)]){case _0x2856d7[_0xa343fa(0x93)][_0xa343fa(0x474)]:return{..._0x3edb54,'data':{..._0x470201,'data':(_0x575db1=_0x470201[_0xa343fa(0x441)])==null?void 0x0:_0x575db1['cs']},'cmd':_0x3edb54['cmd']};case _0x2856d7[_0xa343fa(0x93)][_0xa343fa(0x402)]:return{..._0x3edb54,'data':{..._0x470201,'data':(_0x1dfb69=_0x470201[_0xa343fa(0x456)])==null?void 0x0:_0x1dfb69['cs']},'cmd':_0x3edb54['cmd']};case _0x2856d7['CollaborationEvent']['NEW_CHANGESETS']:return{..._0x3edb54,'data':{..._0x470201,'data':(_0x97ae0f=_0x470201[_0xa343fa(0x343)])==null?void 0x0:_0x97ae0f['cs']},'cmd':_0x3edb54[_0xa343fa(0x3e6)]};case _0x2856d7[_0xa343fa(0x93)][_0xa343fa(0x2dc)]:return{..._0x3edb54,'data':{..._0x470201,'data':(_0x2ef5d7=_0x470201['csRejEvent'])==null?void 0x0:_0x2ef5d7['cs']},'cmd':_0x3edb54['cmd']};case _0x2856d7['CollaborationEvent'][_0xa343fa(0x31f)]:return{..._0x3edb54,'data':{..._0x470201,'data':_0x470201[_0xa343fa(0x41b)]},'cmd':_0x3edb54['cmd']};case _0x2856d7[_0xa343fa(0x93)][_0xa343fa(0x3ff)]:return{..._0x3edb54,'data':{..._0x470201,'data':_0x470201[_0xa343fa(0x3c4)]},'cmd':_0x3edb54[_0xa343fa(0x3e6)]};case _0x2856d7[_0xa343fa(0x93)]['USERS_LEAVE']:return{..._0x3edb54,'data':{..._0x470201,'data':_0x470201['leaveEvent']},'cmd':_0x3edb54['cmd']};case _0x2856d7['CollaborationEvent'][_0xa343fa(0x287)]:return{..._0x3edb54,'data':{..._0x470201,'data':_0x470201[_0xa343fa(0x35a)]},'cmd':_0x3edb54[_0xa343fa(0x3e6)]};case _0x2856d7[_0xa343fa(0x93)][_0xa343fa(0x439)]:case _0x2856d7[_0xa343fa(0x93)][_0xa343fa(0xac)]:return{..._0x3edb54,'data':{..._0x470201,'data':_0x470201[_0xa343fa(0x18c)]},'cmd':_0x3edb54['cmd']};case _0x2856d7[_0xa343fa(0x93)][_0xa343fa(0x3ea)]:return{..._0x3edb54,'data':{..._0x470201,'data':_0x470201[_0xa343fa(0x35a)]},'cmd':_0x3edb54[_0xa343fa(0x3e6)]};case _0x2856d7[_0xa343fa(0x93)][_0xa343fa(0x38c)]:return{..._0x3edb54,'data':_0x470201,'cmd':_0x3edb54[_0xa343fa(0x3e6)]};case _0x2856d7['CollaborationEvent'][_0xa343fa(0x14a)]:return{..._0x3edb54,'data':{..._0x470201,'data':_0x470201[_0xa343fa(0xe2)]},'cmd':_0x3edb54[_0xa343fa(0x3e6)]};case _0x2856d7[_0xa343fa(0x93)][_0xa343fa(0xbf)]:return{..._0x3edb54,'data':{..._0x470201,'data':_0x470201[_0xa343fa(0x368)]},'cmd':_0x3edb54['cmd']};case _0x2856d7[_0xa343fa(0x93)][_0xa343fa(0x3ce)]:return{..._0x3edb54,'data':{..._0x470201,'data':_0x470201[_0xa343fa(0x14e)]},'cmd':_0x3edb54[_0xa343fa(0x3e6)]};default:return _0x3edb54;}}default:return _0x3edb54;}}function _0x8a6853(_0x170204){const _0x2f18bc=_0x291ba3;switch(_0x170204[_0x2f18bc(0x3e6)]){case _0x153a81[_0x2f18bc(0x39a)]:case _0x153a81['HELLO']:return JSON[_0x2f18bc(0x2eb)]({'cmd':_0x170204['cmd'],'routeKey':_0x170204['routeKey']});case _0x153a81[_0x2f18bc(0xe8)]:{let _0x484327;switch(_0x170204[_0x2f18bc(0x253)]['eventID']){case _0x2856d7[_0x2f18bc(0x93)]['UPDATE_CURSOR']:{_0x484327={'eventID':_0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0x31f)],'updateCursorEvent':_0x170204[_0x2f18bc(0x253)][_0x2f18bc(0x253)]};break;}case _0x2856d7['CollaborationEvent'][_0x2f18bc(0x408)]:{_0x484327={'eventID':_0x2856d7['CollaborationEvent']['USERS_LEAVE'],'leaveEvent':_0x170204[_0x2f18bc(0x253)][_0x2f18bc(0x253)]};break;}case _0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0x3ff)]:{_0x484327={'eventID':_0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0x3ff)],'joinEvent':_0x170204[_0x2f18bc(0x253)][_0x2f18bc(0x253)]};break;}case _0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0x287)]:{_0x484327={'eventID':_0x2856d7['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x170204[_0x2f18bc(0x253)][_0x2f18bc(0x253)]};break;}case _0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0xac)]:{_0x484327={'eventID':_0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0xac)],'liveShareOperation':_0x170204[_0x2f18bc(0x253)][_0x2f18bc(0x253)]};break;}case _0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0x3ea)]:{_0x484327={'eventID':_0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0x3ea)],'liveShareTerminate':_0x170204[_0x2f18bc(0x253)][_0x2f18bc(0x253)]};break;}case _0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0x1c3)]:{_0x484327={'eventID':_0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0x1c3)],'liveShareRequestHost':_0x170204['data'][_0x2f18bc(0x253)]};break;}case _0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0x439)]:{_0x484327={'eventID':_0x2856d7['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x484327={'eventID':_0x170204[_0x2f18bc(0x253)][_0x2f18bc(0x243)]};}return JSON[_0x2f18bc(0x2eb)]({'cmd':_0x170204[_0x2f18bc(0x3e6)],'routeKey':_0x170204[_0x2f18bc(0x48c)],'collaMsg':_0x484327});}case _0x153a81['JOIN']:return JSON[_0x2f18bc(0x2eb)]({'cmd':_0x170204[_0x2f18bc(0x3e6)],'routeKey':_0x170204[_0x2f18bc(0x48c)],'joinReq':_0x170204['data']});case _0x153a81[_0x2f18bc(0x15b)]:return JSON[_0x2f18bc(0x2eb)]({'cmd':_0x170204['cmd'],'routeKey':_0x170204[_0x2f18bc(0x48c)],'leaveReq':_0x170204[_0x2f18bc(0x253)]});default:throw new Error(_0x2f18bc(0x9b));}}var _0x40b90e=Object[_0x291ba3(0x3e4)],_0x50755b=Object[_0x291ba3(0x373)],_0x70ba07=(_0x1f13e2,_0x33cdcf,_0x48e4db,_0x4aabe8)=>{const _0x5ecb4b=_0x291ba3;for(var _0x39fac6=_0x4aabe8>0x1?void 0x0:_0x4aabe8?_0x50755b(_0x33cdcf,_0x48e4db):_0x33cdcf,_0x367e47=_0x1f13e2[_0x5ecb4b(0xbb)]-0x1,_0x1ba9ba;_0x367e47>=0x0;_0x367e47--)(_0x1ba9ba=_0x1f13e2[_0x367e47])&&(_0x39fac6=(_0x4aabe8?_0x1ba9ba(_0x33cdcf,_0x48e4db,_0x39fac6):_0x1ba9ba(_0x39fac6))||_0x39fac6);return _0x4aabe8&&_0x39fac6&&_0x40b90e(_0x33cdcf,_0x48e4db,_0x39fac6),_0x39fac6;},_0x2ca0b1=(_0x52f114,_0x26ef2b)=>(_0x2659f9,_0x3ecfb4)=>_0x26ef2b(_0x2659f9,_0x3ecfb4,_0x52f114);const _0x268546=_0x2c7fed[_0x291ba3(0x33e)](_0x291ba3(0x392));function _0x31d6b1(_0x52f470,_0x9c5ba0,_0x562ffc){const _0x43f2cf=_0x291ba3;return _0x52f470+'/'+_0x9c5ba0+'/unit/'+_0x562ffc+_0x43f2cf(0x357);}_0x594fe1[_0x291ba3(0x37d)]=class extends _0x2c7fed[_0x291ba3(0x2e7)]{constructor(_0x33b555,_0x4aaac9,_0x4448cc,_0x111e88,_0x34feb2){const _0x2c5d95=_0x291ba3;super(),this['_http']=_0x33b555,this[_0x2c5d95(0x2e6)]=_0x4aaac9,this[_0x2c5d95(0x2e2)]=_0x4448cc,this[_0x2c5d95(0x139)]=_0x111e88,this[_0x2c5d95(0x38f)]=_0x34feb2;}['createSocket'](_0x1020a9){const _0x48ae37=_0x291ba3,_0x123743=this[_0x48ae37(0x2e6)][_0x48ae37(0x455)](_0x1020a9);if(!_0x123743)throw new Error(_0x48ae37(0x80));const _0x1d4a9b=new _0x2c7fed[(_0x48ae37(0x2f4))](),_0x1989f9=new _0x1fc547[(_0x48ae37(0x165))]();_0x1d4a9b[_0x48ae37(0x8b)](_0x123743[_0x48ae37(0x2ad)][_0x48ae37(0x3f2)](_0x2268ec=>_0x1989f9[_0x48ae37(0x2ce)](_0x2268ec))),_0x1d4a9b['add'](_0x2c7fed['toDisposable'](()=>_0x1989f9[_0x48ae37(0x420)]()));const _0x40212c=new _0x1fc547[(_0x48ae37(0x165))]();_0x1d4a9b[_0x48ae37(0x8b)](_0x123743[_0x48ae37(0x464)]['subscribe'](_0x2ba614=>_0x40212c[_0x48ae37(0x2ce)](_0x2ba614))),_0x1d4a9b[_0x48ae37(0x8b)](_0x2c7fed[_0x48ae37(0x337)](()=>_0x40212c[_0x48ae37(0x420)]()));const _0xa0c637=new _0x1fc547[(_0x48ae37(0x165))]();_0x1d4a9b[_0x48ae37(0x8b)](_0x123743[_0x48ae37(0x113)][_0x48ae37(0x3f2)](_0xca01c0=>{const _0x36c937=_0x48ae37,_0xeb208=_0xd87005(_0xca01c0);_0xa0c637[_0x36c937(0x2ce)](_0xeb208);})),_0x1d4a9b[_0x48ae37(0x8b)](_0x2c7fed[_0x48ae37(0x337)](()=>_0xa0c637[_0x48ae37(0x420)]()));let _0x25d2bb;const _0x187a88=()=>{const _0xca204f=_0x48ae37;_0x40212c['next'](new Event(_0xca204f(0x265))),_0x1989f9[_0xca204f(0x2ce)](new CloseEvent(_0xca204f(0x265))),_0x25d2bb[_0xca204f(0x3f5)]();};return _0x25d2bb={'memberID':'','close$':_0x1989f9[_0x48ae37(0x442)](),'error$':_0x40212c[_0x48ae37(0x442)](),'open$':_0x123743[_0x48ae37(0x2a7)],'message$':_0xa0c637[_0x48ae37(0x442)](),'send':_0x4d9e18=>{const _0x328f32=_0x48ae37;if(_0x4d9e18[_0x328f32(0x3e6)]===_0x153a81[_0x328f32(0xe8)]){if(_0x4d9e18[_0x328f32(0x253)][_0x328f32(0x243)]===_0x2856d7[_0x328f32(0x93)][_0x328f32(0x29f)]){this[_0x328f32(0x206)](_0x25d2bb,_0x4d9e18[_0x328f32(0x253)])[_0x328f32(0x36d)](_0x3edace=>{const _0x2f7691=_0x328f32;this['_logService'][_0x2f7691(0x41d)](_0x3edace),_0x187a88();});return;}if(_0x4d9e18[_0x328f32(0x253)][_0x328f32(0x243)]===_0x2856d7[_0x328f32(0x93)]['FETCH_MISSING']){const _0x5c9521=_0x4d9e18[_0x328f32(0x253)];this[_0x328f32(0x364)](_0x5c9521)[_0x328f32(0x308)](_0x19890c=>{const _0x4bee1a=_0x328f32;_0xa0c637[_0x4bee1a(0x2ce)]({'cmd':_0x153a81[_0x4bee1a(0x40a)],'code':_0xb7a022['OK'],'routeKey':_0x5c9521['data']['unitID'],'routeType':'','data':{'eventID':_0x2856d7['CollaborationEvent'][_0x4bee1a(0x322)],'data':{'changesets':_0x19890c}}});})[_0x328f32(0x36d)](_0x411704=>{const _0x1ac132=_0x328f32;this[_0x1ac132(0x139)]['error'](_0x411704),_0x187a88();});return;}}_0x123743['send'](_0x8a6853(_0x4d9e18));},'close':()=>{_0x123743['close'](),_0x1d4a9b['dispose']();}},_0x25d2bb;}async[_0x291ba3(0x206)](_0x140e6d,_0x45c5c4){const _0x1a26cd=_0x291ba3;var _0x4eba44,_0x291b81;const {unitType:_0x3ceecf,unitID:_0x34b315,changeset:_0x298954}=_0x45c5c4[_0x1a26cd(0x253)],_0x346887={'unitID':_0x34b315,'memberID':_0x140e6d['memberID'],'type':_0x3ceecf,'changeset':_0x2856d7['parseChangesetToProtocol'](_0x298954)},_0x2a82a7=this[_0x1a26cd(0x2e2)][_0x1a26cd(0x304)](_0x16814e),_0xf7ec4e=this[_0x1a26cd(0x2e2)][_0x1a26cd(0x304)](_0x229401),_0x24b3d7=_0x31d6b1((_0x291b81=(_0x4eba44=_0xf7ec4e==null?void 0x0:_0xf7ec4e['collabSubmitChangesetUrl'])!=null?_0x4eba44:_0x2a82a7)!=null?_0x291b81:_0x7001e1,_0x3ceecf,_0x34b315);try{await this[_0x1a26cd(0x279)][_0x1a26cd(0x4a6)](_0x24b3d7,{'body':_0x346887});}catch(_0x1c2c52){throw this[_0x1a26cd(0x139)]['error']('[CollaborationSession]',_0x1a26cd(0x1ad)),_0x1c2c52;}}async[_0x291ba3(0x364)](_0x2b0db0){const _0x5535e8=_0x291ba3,{unitID:_0xaf04ca,from:_0x2dde98,to:_0x4bcbad,unitType:_0x20a425}=_0x2b0db0[_0x5535e8(0x253)];return(await this['_snapshotServerService'][_0x5535e8(0x28e)]({'metadata':void 0x0},{'unitID':_0xaf04ca,'type':_0x20a425,'from':_0x2dde98,'to':_0x4bcbad}))[_0x5535e8(0x2ac)];}},_0x594fe1[_0x291ba3(0x37d)]=_0x70ba07([_0x2ca0b1(0x0,_0x2c7fed['Inject'](_0x4893ce[_0x291ba3(0x99)])),_0x2ca0b1(0x1,_0x2c7fed[_0x291ba3(0x16b)](_0x4893ce[_0x291ba3(0xf6)])),_0x2ca0b1(0x2,_0x2c7fed[_0x291ba3(0x309)]),_0x2ca0b1(0x3,_0x2c7fed['ILogService']),_0x2ca0b1(0x4,_0x2856d7[_0x291ba3(0xe6)])],_0x594fe1[_0x291ba3(0x37d)]);const _0x447475=_0x291ba3(0x3c1);function _0x11e35a(_0x34b605){const _0x1d0d2a=_0x291ba3;return JSON['stringify'](_0x34b605)[_0x1d0d2a(0xbb)];}class _0x1ab0de{constructor(){const _0x3d3345=_0x291ba3;_0x24cbc7(this,_0x3d3345(0x7e),new _0x1fc547[(_0x3d3345(0x165))]()),_0x24cbc7(this,'commentUpdate$',this[_0x3d3345(0x7e)]['asObservable']());}[_0x291ba3(0x7c)](_0x113af5){const _0xa4e03d=_0x291ba3;this[_0xa4e03d(0x7e)][_0xa4e03d(0x2ce)](_0x113af5);}}var _0x27ba10=Object[_0x291ba3(0x3e4)],_0xed637d=Object[_0x291ba3(0x373)],_0x4bacb4=(_0x2f7940,_0x19ec8b,_0x2c15e5,_0x375ca2)=>{for(var _0x3a122d=_0x375ca2>0x1?void 0x0:_0x375ca2?_0xed637d(_0x19ec8b,_0x2c15e5):_0x19ec8b,_0x4c87f5=_0x2f7940['length']-0x1,_0x1a4650;_0x4c87f5>=0x0;_0x4c87f5--)(_0x1a4650=_0x2f7940[_0x4c87f5])&&(_0x3a122d=(_0x375ca2?_0x1a4650(_0x19ec8b,_0x2c15e5,_0x3a122d):_0x1a4650(_0x3a122d))||_0x3a122d);return _0x375ca2&&_0x3a122d&&_0x27ba10(_0x19ec8b,_0x2c15e5,_0x3a122d),_0x3a122d;},_0x45a087=(_0x2b0ec9,_0x2eda3b)=>(_0xc13a8,_0xf6646a)=>_0x2eda3b(_0xc13a8,_0xf6646a,_0x2b0ec9);let _0x4d411d=class extends _0x2c7fed['Disposable']{constructor(_0x1d3508,_0xfc2339){const _0x3afb10=_0x291ba3;super(),_0x24cbc7(this,'_roomMembers',new Map()),(this['_univerInstanceService']=_0x1d3508,this[_0x3afb10(0x2b0)]=_0xfc2339,this[_0x3afb10(0x351)](_0x2c7fed['toDisposable'](_0x1fc547[_0x3afb10(0x94)](this[_0x3afb10(0x79)][_0x3afb10(0xc6)](_0x2c7fed[_0x3afb10(0xcb)][_0x3afb10(0x2aa)])[_0x3afb10(0x256)](_0x2eca2e[_0x3afb10(0x21b)](_0x43f1d1=>_0x43f1d1[_0x3afb10(0x11d)]())),this['_univerInstanceService'][_0x3afb10(0xc6)](_0x2c7fed['UniverInstanceType'][_0x3afb10(0x130)])['pipe'](_0x2eca2e[_0x3afb10(0x21b)](_0x25793d=>_0x25793d[_0x3afb10(0x11d)]())),this['_univerInstanceService'][_0x3afb10(0xc6)](_0x2c7fed[_0x3afb10(0xcb)]['UNIVER_SLIDE'])['pipe'](_0x2eca2e[_0x3afb10(0x21b)](_0x12e08d=>_0x12e08d[_0x3afb10(0x11d)]())))[_0x3afb10(0x3f2)](_0x2d13b8=>this[_0x3afb10(0x297)](_0x2d13b8)))));}[_0x291ba3(0x2a1)](_0x215ed3){const _0x229f7e=_0x291ba3;this[_0x229f7e(0x2b0)][_0x229f7e(0x2a1)](_0x215ed3);}[_0x291ba3(0x1b0)](){const _0x16a4ee=_0x291ba3;return this[_0x16a4ee(0x2b0)]['getCurrentUser']();}['updateMember'](_0x7b86ef,_0x976c2c){const _0x525218=_0x291ba3;let _0x3b973c=this[_0x525218(0x1d6)][_0x525218(0x400)](_0x7b86ef);_0x3b973c||(_0x3b973c=new _0x31de47(),this[_0x525218(0x1d6)][_0x525218(0x250)](_0x7b86ef,_0x3b973c)),_0x3b973c[_0x525218(0x83)](_0x976c2c);}[_0x291ba3(0x6b)](_0x46c1f0,_0x333ca4){const _0x142279=_0x291ba3,_0x3b47b0=this['_roomMembers']['get'](_0x46c1f0);_0x3b47b0&&_0x3b47b0[_0x142279(0x6b)](_0x333ca4);}[_0x291ba3(0x3af)](_0x291cf6){const _0x4c157a=_0x291ba3;return this[_0x4c157a(0x1d6)]['get'](_0x291cf6);}[_0x291ba3(0x465)](_0x40ce48,_0x26e9c9){const _0x21e591=_0x291ba3,_0x2ff027=this[_0x21e591(0x1d6)][_0x21e591(0x400)](_0x40ce48);if(_0x2ff027)return _0x2ff027[_0x21e591(0x465)](_0x26e9c9);}['_removeRoom'](_0x412d3f){const _0x4ae231=_0x291ba3,_0x51eb33=this['_roomMembers'][_0x4ae231(0x400)](_0x412d3f);_0x51eb33&&(_0x51eb33['dispose'](),this[_0x4ae231(0x1d6)]['delete'](_0x412d3f));}[_0x291ba3(0x35e)](){const _0x3e84f2=_0x291ba3;this[_0x3e84f2(0x1d6)][_0x3e84f2(0xb2)](_0x435192=>_0x435192['dispose']()),this['_roomMembers']['clear']();}};_0x4d411d=_0x4bacb4([_0x45a087(0x0,_0x2c7fed['IUniverInstanceService']),_0x45a087(0x1,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x31c)]))],_0x4d411d);class _0x31de47 extends _0x2c7fed[_0x291ba3(0x2e7)]{constructor(){const _0x1cf9db=_0x291ba3;super(...arguments),_0x24cbc7(this,_0x1cf9db(0x22e),new Map());}['dispose'](){const _0x467dba=_0x291ba3;this[_0x467dba(0x22e)]['clear']();}['updateMember'](_0x5f494b){const _0x4872fc=_0x291ba3;this[_0x4872fc(0x22e)][_0x4872fc(0x250)](_0x5f494b['memberID'],_0x5f494b);}[_0x291ba3(0x6b)](_0x4d63ca){const _0x5dbc8a=_0x291ba3;this[_0x5dbc8a(0x22e)]['delete'](_0x4d63ca);}[_0x291ba3(0x465)](_0x5e4cc8){const _0x4a5f5b=_0x291ba3;return this['_members'][_0x4a5f5b(0x400)](_0x5e4cc8);}}var _0x392bd0=Object[_0x291ba3(0x3e4)],_0x14bb27=Object['getOwnPropertyDescriptor'],_0x4d1096=(_0x2e1c8f,_0x3e1c5e,_0x10186c,_0x233704)=>{const _0x31c986=_0x291ba3;for(var _0x2dd305=_0x233704>0x1?void 0x0:_0x233704?_0x14bb27(_0x3e1c5e,_0x10186c):_0x3e1c5e,_0xb72ad1=_0x2e1c8f[_0x31c986(0xbb)]-0x1,_0xa3ce3b;_0xb72ad1>=0x0;_0xb72ad1--)(_0xa3ce3b=_0x2e1c8f[_0xb72ad1])&&(_0x2dd305=(_0x233704?_0xa3ce3b(_0x3e1c5e,_0x10186c,_0x2dd305):_0xa3ce3b(_0x2dd305))||_0x2dd305);return _0x233704&&_0x2dd305&&_0x392bd0(_0x3e1c5e,_0x10186c,_0x2dd305),_0x2dd305;},_0x54ef2b=(_0x33159d,_0xeabd56)=>(_0x455334,_0x22d25e)=>_0xeabd56(_0x455334,_0x22d25e,_0x33159d),_0x11a57f=(_0x2cb805=>(_0x2cb805[_0x2cb805[_0x291ba3(0xea)]=0x0]=_0x291ba3(0xea),_0x2cb805[_0x2cb805[_0x291ba3(0x460)]=0x1]='JOINING',_0x2cb805[_0x2cb805[_0x291ba3(0x2cf)]=0x2]=_0x291ba3(0x2cf),_0x2cb805[_0x2cb805['ONLINE']=0x3]=_0x291ba3(0x3d0),_0x2cb805))(_0x11a57f||{});_0x594fe1['CollaborationSession']=class extends _0x2c7fed['RxDisposable']{constructor(_0x5b5513,_0x4b2255,_0x4e1dba,_0x47c9e6,_0xab58b,_0x314785,_0x585ebd,_0x5ee6d1,_0x3eec1,_0x3ff1c9){const _0x8c12aa=_0x291ba3;super(),_0x24cbc7(this,_0x8c12aa(0x48a),new _0x1fc547[(_0x8c12aa(0x467))](0x0)),_0x24cbc7(this,_0x8c12aa(0x1a8),this[_0x8c12aa(0x48a)][_0x8c12aa(0x442)]()),_0x24cbc7(this,_0x8c12aa(0x196),new _0x1fc547[(_0x8c12aa(0x165))]()),_0x24cbc7(this,_0x8c12aa(0x272),this[_0x8c12aa(0x196)][_0x8c12aa(0x442)]()),_0x24cbc7(this,_0x8c12aa(0x15c)),_0x24cbc7(this,_0x8c12aa(0x335)),_0x24cbc7(this,'_collaborationTimeoutTimer'),_0x24cbc7(this,_0x8c12aa(0x8e),!0x1),_0x24cbc7(this,_0x8c12aa(0x3ae),null),(this[_0x8c12aa(0x85)]=_0x5b5513,this[_0x8c12aa(0x139)]=_0x4e1dba,this[_0x8c12aa(0x49c)]=_0x47c9e6,this[_0x8c12aa(0x17b)]=_0xab58b,this[_0x8c12aa(0x2e2)]=_0x314785,this[_0x8c12aa(0x277)]=_0x585ebd,this[_0x8c12aa(0x29e)]=_0x5ee6d1,this[_0x8c12aa(0x26a)]=_0x3eec1,this['_telemetryService']=_0x3ff1c9,this['_shouldReportTelemetry']=!!this[_0x8c12aa(0x286)],_0x4b2255[_0x8c12aa(0x256)](_0x1fc547[_0x8c12aa(0x211)](this['dispose$']))[_0x8c12aa(0x3f2)](_0x55d40d=>{const _0x14eb27=_0x8c12aa;var _0x510c54;typeof _0x55d40d>'u'||(this[_0x14eb27(0x15c)]=_0x55d40d,_0x55d40d?(this[_0x14eb27(0x22c)](_0x55d40d),this[_0x14eb27(0x335)]=_0x55d40d[_0x14eb27(0x113)][_0x14eb27(0x3f2)](_0x588875=>{const _0x74de32=_0x14eb27;_0x588875[_0x74de32(0x48c)]===this[_0x74de32(0x85)]&&this[_0x74de32(0x2a5)](_0x588875);})):(this[_0x14eb27(0x3eb)](),this[_0x14eb27(0x48a)][_0x14eb27(0x2ce)](0x2),(_0x510c54=this[_0x14eb27(0x335)])==null||_0x510c54[_0x14eb27(0x128)](),this['_socketMessageSubscription']=null));}),this[_0x8c12aa(0x351)](this['_beforeCloseService']['registerOnClose'](()=>{const _0x431eb9=_0x8c12aa;var _0x55d841;(_0x55d841=this[_0x431eb9(0x15c)])==null||_0x55d841[_0x431eb9(0x319)]({'cmd':_0x153a81['LEAVE'],'data':{'roomID':this[_0x431eb9(0x85)]}});})));}get[_0x291ba3(0x312)](){const _0x4f46e2=_0x291ba3;return this[_0x4f46e2(0x48a)][_0x4f46e2(0x1e7)]();}[_0x291ba3(0x34f)](){const _0x5d3e56=_0x291ba3;var _0x5909cf,_0x16b790;return(_0x16b790=(_0x5909cf=this[_0x5d3e56(0x15c)])==null?void 0x0:_0x5909cf[_0x5d3e56(0x16a)])!=null?_0x16b790:null;}['dispose'](){const _0x56c955=_0x291ba3;super[_0x56c955(0x35e)](),this[_0x56c955(0xf7)][_0x56c955(0x2ce)](),this[_0x56c955(0xf7)]['complete']();}['close'](){const _0x10eef0=_0x291ba3;var _0xd06b82,_0xb74229;this[_0x10eef0(0x3eb)](),(_0xd06b82=this[_0x10eef0(0x15c)])==null||_0xd06b82[_0x10eef0(0x319)]({'cmd':_0x153a81[_0x10eef0(0x15b)],'data':{'roomID':this[_0x10eef0(0x85)]}}),(_0xb74229=this[_0x10eef0(0x15c)])==null||_0xb74229[_0x10eef0(0x3f5)](),this[_0x10eef0(0x196)]['complete'](),this[_0x10eef0(0x48a)][_0x10eef0(0x420)](),this[_0x10eef0(0x35e)]();}['_onCombEvent'](_0x332467){const _0x3e0780=_0x291ba3;_0x332467[_0x3e0780(0x3e6)]===_0x153a81[_0x3e0780(0x41a)]?this['_onJoinRoomEvent'](_0x332467):_0x332467[_0x3e0780(0x3e6)]===_0x153a81[_0x3e0780(0x40a)]&&this[_0x3e0780(0x3ed)](_0x332467);}[_0x291ba3(0x22c)](_0x5968d0){const _0x1077ab=_0x291ba3;this[_0x1077ab(0x48a)]['next'](0x1),_0x5968d0[_0x1077ab(0x319)]({'cmd':_0x153a81['JOIN'],'routeKey':this[_0x1077ab(0x85)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x291ba3(0x275)](_0x4419f5){const _0x1e1bef=_0x291ba3;var _0x464ebc;if(_0x4419f5[_0x1e1bef(0x3b4)]===_0xb7a022[_0x1e1bef(0xaf)]){this[_0x1e1bef(0x17b)][_0x1e1bef(0x116)]({'type':_0x4d689c[_0x1e1bef(0x3be)]['Warning'],'content':this['_localeService']['t'](_0x1e1bef(0x20f))}),this[_0x1e1bef(0x48a)][_0x1e1bef(0x2ce)](0x2);return;}this[_0x1e1bef(0x48a)][_0x1e1bef(0x2ce)](0x3);const _0x2ec711=(_0x464ebc=_0x4419f5[_0x1e1bef(0x253)][_0x1e1bef(0x237)][this[_0x1e1bef(0x85)]])==null?void 0x0:_0x464ebc[_0x1e1bef(0xba)];_0x2ec711&&_0x2ec711[_0x1e1bef(0xb2)](_0x3181b8=>this['_memberService']['updateMember'](this[_0x1e1bef(0x85)],_0x3181b8));}[_0x291ba3(0x3ed)](_0x4d9d22){const _0xbd600c=_0x291ba3;try{const _0x95bec4=_0x4d9d22['data'];switch(_0x95bec4[_0xbd600c(0x243)]){case _0x2856d7['CollaborationEvent'][_0xbd600c(0x3ff)]:this[_0xbd600c(0x110)](_0x95bec4),this[_0xbd600c(0x196)][_0xbd600c(0x2ce)](_0x95bec4);break;case _0x2856d7[_0xbd600c(0x93)][_0xbd600c(0x408)]:this['_onUserLeave'](_0x95bec4),this[_0xbd600c(0x196)][_0xbd600c(0x2ce)](_0x95bec4);break;case _0x2856d7['CollaborationEvent'][_0xbd600c(0x402)]:this[_0xbd600c(0x42c)](),this['_clearCollaborationTimeoutTimer'](),this[_0xbd600c(0x196)][_0xbd600c(0x2ce)](_0x95bec4);break;case _0x2856d7[_0xbd600c(0x93)][_0xbd600c(0x38c)]:this[_0xbd600c(0x139)][_0xbd600c(0x41d)]('save\x20fail\x20reason\x20is\x20'+JSON[_0xbd600c(0x2eb)](_0x95bec4)),this[_0xbd600c(0x196)][_0xbd600c(0x2ce)](_0x95bec4);break;case _0x2856d7[_0xbd600c(0x93)][_0xbd600c(0x14a)]:this[_0xbd600c(0x26a)][_0xbd600c(0x7c)](_0x95bec4[_0xbd600c(0x253)]),this[_0xbd600c(0x196)][_0xbd600c(0x2ce)](_0x95bec4);break;default:this[_0xbd600c(0x196)][_0xbd600c(0x2ce)](_0x95bec4);}}catch(_0x98a960){this['_logService'][_0xbd600c(0x41d)](_0x98a960,_0x4d9d22);}}[_0x291ba3(0x110)](_0x1f3462){const _0x3755b0=_0x291ba3;this[_0x3755b0(0x29e)][_0x3755b0(0x83)](this[_0x3755b0(0x85)],_0x1f3462[_0x3755b0(0x253)]);}[_0x291ba3(0x44e)](_0x2ce0e8){const _0x14a971=_0x291ba3;this[_0x14a971(0x29e)][_0x14a971(0x6b)](this[_0x14a971(0x85)],_0x2ce0e8[_0x14a971(0x253)]['memberID']);}async['send'](_0x19df46,_0xcf669){const _0x1e5c81=_0x291ba3;if(this[_0x1e5c81(0x312)]!==0x3||!this[_0x1e5c81(0x15c)])throw new Error(_0x1e5c81(0x3f9));try{_0x19df46[_0x1e5c81(0x243)]===_0x2856d7['CollaborationEvent'][_0x1e5c81(0x29f)]&&(this[_0x1e5c81(0x214)](),this['_startTelemetryCollaborationNewChangeset'](_0x19df46)),this[_0x1e5c81(0x15c)]['send']({'cmd':_0x153a81['INGEST'],'routeKey':_0xcf669,'routeType':'','data':_0x19df46});}catch(_0x537c59){this[_0x1e5c81(0x139)][_0x1e5c81(0x41d)](_0x537c59);}}[_0x291ba3(0x214)](){const _0x14b670=_0x291ba3;var _0x10a27c;this[_0x14b670(0x317)]=window[_0x14b670(0x24a)](()=>{const _0x2125cc=_0x14b670;this[_0x2125cc(0x317)]=null,this[_0x2125cc(0x17b)][_0x2125cc(0x116)]({'type':_0x4d689c[_0x2125cc(0x3be)][_0x2125cc(0x167)],'content':this[_0x2125cc(0x277)]['t']('session.collaboration-timeout')});},(_0x10a27c=this[_0x14b670(0x2e2)]['getConfig'](_0x56c1a7))!=null?_0x10a27c:0x4e20);}[_0x291ba3(0x8a)](){const _0x3d6761=_0x291ba3;this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x3d6761(0x317)]=null);}[_0x291ba3(0x18e)](_0x31cfa6){const _0xa1cf9c=_0x291ba3;if(!this[_0xa1cf9c(0x8e)])return;const {data:_0x1c471}=_0x31cfa6,{unitID:_0x9869a4,changeset:_0x16b2b8}=_0x1c471,{mutations:_0x157679,type:_0x3e56f9}=_0x16b2b8;this[_0xa1cf9c(0x3ae)]={'unitId':_0x9869a4,'type':_0x3e56f9,'startTime':performance[_0xa1cf9c(0x202)](),'stopTime':0x0,'duration':0x0,'size':_0x11e35a(_0x157679)};}[_0x291ba3(0x42c)](){const _0xce2d56=_0x291ba3;if(this[_0xce2d56(0x8e)]){if(!this[_0xce2d56(0x3ae)]){this['_logService'][_0xce2d56(0x41d)](_0xce2d56(0x2b5),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0xce2d56(0x3ae)][_0xce2d56(0x1ca)]=performance[_0xce2d56(0x202)](),this[_0xce2d56(0x3ae)][_0xce2d56(0x296)]=this[_0xce2d56(0x3ae)][_0xce2d56(0x1ca)]-this[_0xce2d56(0x3ae)]['startTime'],this[_0xce2d56(0x286)]['capture'](_0x447475,this['_telemetryInfo']),this['_telemetryInfo']=null;}}[_0x291ba3(0x3eb)](){const _0x18ecd5=_0x291ba3;this[_0x18ecd5(0x3ae)]=null;}},_0x594fe1[_0x291ba3(0x10f)]=_0x4d1096([_0x54ef2b(0x2,_0x2c7fed[_0x291ba3(0x2fd)]),_0x54ef2b(0x3,_0x4b403d['IBeforeCloseService']),_0x54ef2b(0x4,_0x4b403d[_0x291ba3(0x2f2)]),_0x54ef2b(0x5,_0x2c7fed[_0x291ba3(0x309)]),_0x54ef2b(0x6,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x1a7)])),_0x54ef2b(0x7,_0x2c7fed['Inject'](_0x4d411d)),_0x54ef2b(0x8,_0x2c7fed[_0x291ba3(0x16b)](_0x1ab0de)),_0x54ef2b(0x9,_0x2c7fed[_0x291ba3(0x425)](_0x15ef2d[_0x291ba3(0x3a2)]))],_0x594fe1[_0x291ba3(0x10f)]);var _0x5459d7=Object[_0x291ba3(0x3e4)],_0x2f5612=Object['getOwnPropertyDescriptor'],_0x248764=(_0x290a03,_0x12c65b,_0x3f418f,_0x147132)=>{const _0x1ceee1=_0x291ba3;for(var _0x481c92=_0x147132>0x1?void 0x0:_0x147132?_0x2f5612(_0x12c65b,_0x3f418f):_0x12c65b,_0x41965b=_0x290a03[_0x1ceee1(0xbb)]-0x1,_0xc30ad9;_0x41965b>=0x0;_0x41965b--)(_0xc30ad9=_0x290a03[_0x41965b])&&(_0x481c92=(_0x147132?_0xc30ad9(_0x12c65b,_0x3f418f,_0x481c92):_0xc30ad9(_0x481c92))||_0x481c92);return _0x147132&&_0x481c92&&_0x5459d7(_0x12c65b,_0x3f418f,_0x481c92),_0x481c92;},_0x4d099e=(_0x13174f,_0x9d8cc9)=>(_0x58910e,_0x85c007)=>_0x9d8cc9(_0x58910e,_0x85c007,_0x13174f);_0x594fe1[_0x291ba3(0xeb)]=class extends _0x2c7fed[_0x291ba3(0x2e7)]{constructor(_0x2c1d99,_0x1852bb,_0x41155b,_0x49b093,_0x356a1b,_0x1e236e){const _0x3709dc=_0x291ba3;super(),_0x24cbc7(this,'_socket$',new _0x1fc547[(_0x3709dc(0x467))](void 0x0)),_0x24cbc7(this,_0x3709dc(0x70),this[_0x3709dc(0x46f)][_0x3709dc(0x442)]()),_0x24cbc7(this,_0x3709dc(0x2d1),null),_0x24cbc7(this,'_sessions',new Map()),_0x24cbc7(this,_0x3709dc(0x6d),new _0x1fc547[(_0x3709dc(0x467))](_0x11a57f['IDLE'])),_0x24cbc7(this,_0x3709dc(0x338),this[_0x3709dc(0x6d)]['asObservable']()),_0x24cbc7(this,'_socketReady',!0x1),_0x24cbc7(this,_0x3709dc(0x2d7)),_0x24cbc7(this,_0x3709dc(0x173),0x0),_0x24cbc7(this,'_sendHeartbeatTimer'),_0x24cbc7(this,_0x3709dc(0x1d8)),(this['_injector']=_0x2c1d99,this[_0x3709dc(0x277)]=_0x1852bb,this[_0x3709dc(0x17b)]=_0x41155b,this['_logService']=_0x49b093,this['_configService']=_0x356a1b,this[_0x3709dc(0x4a4)]=_0x1e236e,this[_0x3709dc(0x18d)]());}get['_socket'](){const _0x50efe2=_0x291ba3;return this[_0x50efe2(0x46f)][_0x50efe2(0x1e7)]();}['_initEventListeners'](){const _0x5bc9b3=_0x291ba3;this[_0x5bc9b3(0xd3)](),this[_0x5bc9b3(0x1cb)]();}[_0x291ba3(0x35e)](){const _0x42c35b=_0x291ba3;super[_0x42c35b(0x35e)](),this[_0x42c35b(0x171)][_0x42c35b(0xb2)](_0x5aa856=>_0x5aa856['dispose']()),this['_sessions']['clear'](),this[_0x42c35b(0x6d)][_0x42c35b(0x420)]();}async[_0x291ba3(0x22d)](_0x3423a3){const _0x33fa73=_0x291ba3;if(this[_0x33fa73(0x171)][_0x33fa73(0x169)](_0x3423a3))return this['_sessions'][_0x33fa73(0x400)](_0x3423a3);this[_0x33fa73(0x160)]();const _0x1d3e3f=this[_0x33fa73(0x10d)][_0x33fa73(0x266)](_0x594fe1[_0x33fa73(0x10f)],_0x3423a3,this[_0x33fa73(0x46f)][_0x33fa73(0x442)]());return this[_0x33fa73(0x171)][_0x33fa73(0x250)](_0x3423a3,_0x1d3e3f),_0x1d3e3f;}[_0x291ba3(0x105)](_0x4e6cb6){const _0x3b6607=_0x291ba3;var _0xcdfecd;const _0x1f8f0e=this['_sessions'][_0x3b6607(0x400)](_0x4e6cb6);_0x1f8f0e&&(this[_0x3b6607(0x171)][_0x3b6607(0x39c)](_0x4e6cb6),_0x1f8f0e[_0x3b6607(0x3f5)]()),this['_sessions'][_0x3b6607(0x3f6)]||(_0xcdfecd=this[_0x3b6607(0x15c)])==null||_0xcdfecd[_0x3b6607(0x3f5)]();}[_0x291ba3(0x3d7)](){const _0x3681dc=_0x291ba3;this[_0x3681dc(0x173)]=0x0,this[_0x3681dc(0x2d7)]!=null&&(clearTimeout(this[_0x3681dc(0x2d7)]),this[_0x3681dc(0x2d7)]=null),this['_tryReconnect']();}[_0x291ba3(0x2cb)](){const _0x44e354=_0x291ba3;var _0x2e13c1,_0x47f217;const _0x4e72c9=this[_0x44e354(0x2e2)][_0x44e354(0x304)](_0x8abbe0),_0x1fd35c=this[_0x44e354(0x2e2)]['getConfig'](_0x229401),_0x32e70e=(_0x47f217=(_0x2e13c1=_0x1fd35c==null?void 0x0:_0x1fd35c[_0x44e354(0x114)])!=null?_0x2e13c1:_0x4e72c9)!=null?_0x47f217:_0x30eb17,_0x1f5983=this[_0x44e354(0x4a4)]['createSocket'](_0x32e70e);return this[_0x44e354(0x2d1)]=_0x1f5983,_0x1f5983;}[_0x291ba3(0x160)](){const _0x56bc0c=_0x291ba3;var _0x4fd25e,_0x18ba9d;try{const _0x3685e6=(_0x18ba9d=(_0x4fd25e=this[_0x56bc0c(0x15c)])!=null?_0x4fd25e:this[_0x56bc0c(0x2d1)])!=null?_0x18ba9d:this[_0x56bc0c(0x2cb)]();if(_0x3685e6){const _0x40596d=_0x3685e6['send'];_0x3685e6[_0x56bc0c(0x319)]=_0xb0d463=>(this[_0x56bc0c(0x1ce)](),_0x40596d[_0x56bc0c(0x1ac)](_0x3685e6,[_0xb0d463])),_0x3685e6[_0x56bc0c(0x113)][_0x56bc0c(0x3f2)](_0x8f4ec9=>this[_0x56bc0c(0x127)](_0x3685e6,_0x8f4ec9)),_0x3685e6[_0x56bc0c(0x464)][_0x56bc0c(0x256)](_0x2eca2e[_0x56bc0c(0x482)](0x1))[_0x56bc0c(0x3f2)](_0x27e2f9=>this[_0x56bc0c(0x139)][_0x56bc0c(0x41d)](_0x56bc0c(0x47b),_0x27e2f9)),_0x3685e6['open$']['pipe'](_0x2eca2e[_0x56bc0c(0x482)](0x1))[_0x56bc0c(0x3f2)](()=>{const _0x201782=_0x56bc0c;this[_0x201782(0x84)](_0x3685e6);}),_0x3685e6['close$'][_0x56bc0c(0x256)](_0x2eca2e[_0x56bc0c(0x482)](0x1))['subscribe'](_0x468a0d=>{const _0x5c4a0c=_0x56bc0c;this[_0x5c4a0c(0x139)][_0x5c4a0c(0x1e9)](_0x5c4a0c(0xa0),_0x5c4a0c(0x247),_0x468a0d),this[_0x5c4a0c(0x146)]();});}}catch(_0x365ea3){this[_0x56bc0c(0x139)][_0x56bc0c(0x41d)](_0x365ea3),this[_0x56bc0c(0x146)]();}}['_onConnectionOpen'](_0x4933bd){const _0x5653b3=_0x291ba3;this[_0x5653b3(0x139)]['debug'](_0x5653b3(0xa0),_0x5653b3(0xd8)),_0x4933bd[_0x5653b3(0x319)]({'cmd':_0x153a81[_0x5653b3(0x2ab)]}),this[_0x5653b3(0x1ce)]();}[_0x291ba3(0xd3)](){window['addEventListener']('offline',()=>this['_onOffline']());}[_0x291ba3(0x29a)](){const _0x292b61=_0x291ba3;this[_0x292b61(0x31b)]=!0x1,this[_0x292b61(0x2d1)]=null,this[_0x292b61(0x6d)]['next'](_0x11a57f[_0x292b61(0x2cf)]),this[_0x292b61(0x46f)][_0x292b61(0x2ce)](null),this[_0x292b61(0x3b1)](),this[_0x292b61(0x75)]();}['_onConnectionFailed'](){const _0xe08242=_0x291ba3;var _0x285dab;this['_onOffline'](),this[_0xe08242(0x173)]<((_0x285dab=this[_0xe08242(0x2e2)][_0xe08242(0x304)](_0x42be50))!=null?_0x285dab:0x3)?(this[_0xe08242(0x17b)][_0xe08242(0x116)]({'key':_0xe08242(0x107),'type':_0x4d689c[_0xe08242(0x3be)][_0xe08242(0x13d)],'content':this[_0xe08242(0x277)]['t'](_0xe08242(0x1cf))}),this[_0xe08242(0x1fa)]()):this[_0xe08242(0x17b)][_0xe08242(0x116)]({'key':_0xe08242(0x107),'type':_0x4d689c[_0xe08242(0x3be)][_0xe08242(0x167)],'content':this[_0xe08242(0x277)]['t'](_0xe08242(0x1c7))});}[_0x291ba3(0x1cb)](){const _0xdf4a02=_0x291ba3,_0x1137ec=()=>{const _0x1b29b4=_0x2d25;this[_0x1b29b4(0x15c)]||this[_0x1b29b4(0x3d7)]();},_0x475782=()=>{const _0x1b3126=_0x2d25;this[_0x1b3126(0x15c)]||document['visibilityState']===_0x1b3126(0x350)||this[_0x1b3126(0x3d7)]();};window[_0xdf4a02(0x46a)](_0xdf4a02(0x269),_0x1137ec),document[_0xdf4a02(0x46a)]('visibilitychange',_0x475782);}[_0x291ba3(0x1fa)](){const _0x1555b4=_0x291ba3;var _0x3597a4;const _0x619cfb=this[_0x1555b4(0x173)],_0x4f3a4c=this[_0x1555b4(0x2e2)]['getConfig'](_0x229401),_0x126423=_0x619cfb===0x0?0x0:((_0x3597a4=_0x4f3a4c==null?void 0x0:_0x4f3a4c[_0x1555b4(0x175)])!=null?_0x3597a4:0x4e20)*0x2**_0x619cfb;this[_0x1555b4(0x2d7)]=window[_0x1555b4(0x24a)](()=>{const _0x4aa4ec=_0x1555b4;clearTimeout(this[_0x4aa4ec(0x2d7)]),this[_0x4aa4ec(0x2d7)]=null,this[_0x4aa4ec(0x160)]();},_0x126423),this[_0x1555b4(0x173)]+=0x1;}[_0x291ba3(0x127)](_0x1ac3f8,_0x2b6f01){const _0x3630c9=_0x291ba3,{cmd:_0x4b3957}=_0x2b6f01;_0x4b3957===_0x153a81[_0x3630c9(0x2ab)]&&!this[_0x3630c9(0x31b)]&&(_0x1ac3f8[_0x3630c9(0x16a)]=_0x2b6f01[_0x3630c9(0x253)][_0x3630c9(0x16a)],this[_0x3630c9(0x46f)][_0x3630c9(0x2ce)](_0x1ac3f8),this['_status$'][_0x3630c9(0x2ce)](_0x11a57f[_0x3630c9(0x3d0)]),this[_0x3630c9(0x31b)]=!0x0,this[_0x3630c9(0x2d1)]=null),_0x4b3957===_0x153a81['HEARTBEAT']&&this[_0x3630c9(0x3b1)](),this[_0x3630c9(0x1ce)]();}[_0x291ba3(0x1ce)](){const _0x4b62ea=_0x291ba3;var _0x47dd57;this[_0x4b62ea(0x75)](),this['_sendHeartbeatTimer']=window[_0x4b62ea(0x24a)](()=>this[_0x4b62ea(0xc9)](),(_0x47dd57=this[_0x4b62ea(0x2e2)][_0x4b62ea(0x304)](_0x16f4d4))!=null?_0x47dd57:0x7530);}[_0x291ba3(0xc9)](){const _0x2720b9=_0x291ba3;this[_0x2720b9(0x15c)]['send']({'cmd':_0x153a81[_0x2720b9(0x39a)]}),this[_0x2720b9(0x1af)]();}[_0x291ba3(0x1af)](){const _0xc72f38=_0x291ba3;var _0x50cc13;this[_0xc72f38(0x1d8)]=window[_0xc72f38(0x24a)](()=>this[_0xc72f38(0x146)](),(_0x50cc13=this[_0xc72f38(0x2e2)]['getConfig'](_0x56c1a7))!=null?_0x50cc13:0x4e20);}['_clearHeartbeatTimer'](){const _0x245a08=_0x291ba3;this[_0x245a08(0x2ec)]!=null&&(clearTimeout(this[_0x245a08(0x2ec)]),this[_0x245a08(0x2ec)]=null);}[_0x291ba3(0x3b1)](){const _0x45263d=_0x291ba3;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x45263d(0x1d8)]),this[_0x45263d(0x1d8)]=null);}},_0x594fe1['CollaborationSessionService']=_0x248764([_0x4d099e(0x0,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x4d099e(0x1,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x1a7)])),_0x4d099e(0x2,_0x4b403d['IMessageService']),_0x4d099e(0x3,_0x2c7fed[_0x291ba3(0x2fd)]),_0x4d099e(0x4,_0x2c7fed[_0x291ba3(0x309)]),_0x4d099e(0x5,_0x268546)],_0x594fe1[_0x291ba3(0xeb)]);for(var _0x41d1ae=[],_0x339f29=0x0;_0x339f29<0x100;++_0x339f29)_0x41d1ae[_0x291ba3(0x44a)]((_0x339f29+0x100)[_0x291ba3(0x161)](0x10)['slice'](0x1));function _0x5a63bb(_0x555a28,_0x527ac0=0x0){const _0x5356c9=_0x291ba3;return(_0x41d1ae[_0x555a28[_0x527ac0+0x0]]+_0x41d1ae[_0x555a28[_0x527ac0+0x1]]+_0x41d1ae[_0x555a28[_0x527ac0+0x2]]+_0x41d1ae[_0x555a28[_0x527ac0+0x3]]+'-'+_0x41d1ae[_0x555a28[_0x527ac0+0x4]]+_0x41d1ae[_0x555a28[_0x527ac0+0x5]]+'-'+_0x41d1ae[_0x555a28[_0x527ac0+0x6]]+_0x41d1ae[_0x555a28[_0x527ac0+0x7]]+'-'+_0x41d1ae[_0x555a28[_0x527ac0+0x8]]+_0x41d1ae[_0x555a28[_0x527ac0+0x9]]+'-'+_0x41d1ae[_0x555a28[_0x527ac0+0xa]]+_0x41d1ae[_0x555a28[_0x527ac0+0xb]]+_0x41d1ae[_0x555a28[_0x527ac0+0xc]]+_0x41d1ae[_0x555a28[_0x527ac0+0xd]]+_0x41d1ae[_0x555a28[_0x527ac0+0xe]]+_0x41d1ae[_0x555a28[_0x527ac0+0xf]])[_0x5356c9(0x33f)]();}var _0x253a7d,_0x3c7c72=new Uint8Array(0x10);function _0x53a2f5(){const _0x56a472=_0x291ba3;if(!_0x253a7d&&(_0x253a7d=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x56a472(0x7f)]['bind'](crypto),!_0x253a7d))throw new Error(_0x56a472(0x278));return _0x253a7d(_0x3c7c72);}var _0x2560a7=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x291ba3(0x348)][_0x291ba3(0x1e0)](crypto);const _0x41af28={'randomUUID':_0x2560a7};function _0x2e2226(_0x37d8a7,_0x42d0ec,_0xbaa4c){const _0xf31ef9=_0x291ba3;if(_0x41af28[_0xf31ef9(0x348)]&&!_0x42d0ec&&!_0x37d8a7)return _0x41af28[_0xf31ef9(0x348)]();_0x37d8a7=_0x37d8a7||{};var _0x7ea660=_0x37d8a7[_0xf31ef9(0x26e)]||(_0x37d8a7[_0xf31ef9(0xb9)]||_0x53a2f5)();return _0x7ea660[0x6]=_0x7ea660[0x6]&0xf|0x40,_0x7ea660[0x8]=_0x7ea660[0x8]&0x3f|0x80,_0x5a63bb(_0x7ea660);}var _0x551cd4=Object[_0x291ba3(0x3e4)],_0x5d5de5=Object[_0x291ba3(0x373)],_0x2e8d7d=(_0x448adb,_0x540d12,_0xb27598,_0x3f2b75)=>{for(var _0x19a359=_0x3f2b75>0x1?void 0x0:_0x3f2b75?_0x5d5de5(_0x540d12,_0xb27598):_0x540d12,_0x400f7f=_0x448adb['length']-0x1,_0x3385fb;_0x400f7f>=0x0;_0x400f7f--)(_0x3385fb=_0x448adb[_0x400f7f])&&(_0x19a359=(_0x3f2b75?_0x3385fb(_0x540d12,_0xb27598,_0x19a359):_0x3385fb(_0x19a359))||_0x19a359);return _0x3f2b75&&_0x19a359&&_0x551cd4(_0x540d12,_0xb27598,_0x19a359),_0x19a359;},_0x4d3149=(_0x3bf7b3,_0x563ad3)=>(_0x4484f3,_0x585da4)=>_0x563ad3(_0x4484f3,_0x585da4,_0x3bf7b3);let _0x5bc594=class{constructor(_0x2400e7,_0x2473ed,_0x2ccc43){const _0x4c25ff=_0x291ba3;this[_0x4c25ff(0x10d)]=_0x2400e7,this['_transformService']=_0x2473ed,this[_0x4c25ff(0x20c)]=_0x2ccc43;}[_0x291ba3(0x315)](_0x5810f1){const _0x5cc501=_0x291ba3;this[_0x5cc501(0x221)](_0x5810f1),this[_0x5cc501(0x299)](_0x5810f1);}[_0x291ba3(0x326)](_0x332bf2){const _0x12c2f6=_0x291ba3,{unitID:_0x4d7c64}=_0x332bf2,_0x118d27=this[_0x12c2f6(0x20c)]['getRenderById'](_0x4d7c64)['with'](_0x21cef1[_0x12c2f6(0x141)]),{redoCache:_0x1a82c4}=_0x118d27[_0x12c2f6(0x365)]();if(_0x1a82c4[_0x12c2f6(0xbb)]===0x0)return _0x332bf2;let _0x59ce1f=_0x2c7fed[_0x12c2f6(0xa9)]['deepClone'](_0x332bf2[_0x12c2f6(0x1a9)][0x0]);for(let _0x18b723=0x0;_0x18b723<_0x1a82c4['length'];_0x18b723++){const _0x456b1c={'id':_0x12c2f6(0x1bf),'params':{..._0x1a82c4[_0x18b723]}},_0x4893ed=this[_0x12c2f6(0xbd)][_0x12c2f6(0x227)](_0x59ce1f,_0x456b1c,!0x1);if(_0x2856d7[_0x12c2f6(0x72)](_0x4893ed))throw _0x4893ed[_0x12c2f6(0x41d)];_0x59ce1f=_0x4893ed[_0x12c2f6(0x383)];}return{..._0x2c7fed['Tools']['deepClone'](_0x332bf2),'mutations':[_0x59ce1f]};}['_transformUndoRedoStack'](_0xc883bd){const _0x4c14f7=_0x291ba3,{unitID:_0x374b1b}=_0xc883bd,_0x6aa86c=this[_0x4c14f7(0x20c)][_0x4c14f7(0x419)](_0x374b1b)[_0x4c14f7(0x121)](_0x21cef1[_0x4c14f7(0x141)]),{undoCache:_0x37fe88,redoCache:_0x347d5d}=_0x6aa86c[_0x4c14f7(0x365)]();if(_0x37fe88['length']===0x0||_0x347d5d['length']===0x0)return;const _0x1b1343=[],_0x33c05e=[];let _0x47d2f2=_0x2c7fed[_0x4c14f7(0xa9)][_0x4c14f7(0x145)](_0xc883bd[_0x4c14f7(0x1a9)][0x0]),_0x468641=_0x2c7fed['Tools'][_0x4c14f7(0x145)](_0xc883bd[_0x4c14f7(0x1a9)][0x0]);for(let _0x282e63=_0x37fe88[_0x4c14f7(0xbb)]-0x1;_0x282e63>=0x0;_0x282e63--){const _0x4f51ed={'id':_0x4c14f7(0x1bf),'params':{..._0x37fe88[_0x282e63]}},_0x45a3bb={'id':_0x4c14f7(0x1bf),'params':{..._0x347d5d[_0x282e63]}},_0xc2a57c=this[_0x4c14f7(0xbd)][_0x4c14f7(0x227)](_0x47d2f2,_0x4f51ed,!0x1),_0x2b98b2=this['_transformService'][_0x4c14f7(0x227)](_0x468641,_0x45a3bb,!0x1);if(_0x2856d7[_0x4c14f7(0x72)](_0xc2a57c))throw _0xc2a57c[_0x4c14f7(0x41d)];if(_0x2856d7[_0x4c14f7(0x72)](_0x2b98b2))throw _0x2b98b2['error'];_0x1b1343[_0x4c14f7(0x42b)](_0xc2a57c['m2Prime'][_0x4c14f7(0x184)]),_0x33c05e['unshift'](_0x2b98b2['m2Prime'][_0x4c14f7(0x184)]),_0x47d2f2=_0xc2a57c['m1Prime'],_0x468641=_0x2b98b2['m1Prime'];}_0x6aa86c[_0x4c14f7(0x26f)]({'undoCache':_0x1b1343,'redoCache':_0x33c05e});}[_0x291ba3(0x299)](_0x26e081){const _0x3e2302=_0x291ba3,{unitID:_0x362298}=_0x26e081,_0x3c5705=this[_0x3e2302(0x20c)][_0x3e2302(0x419)](_0x362298)[_0x3e2302(0x121)](_0x21cef1[_0x3e2302(0x141)]),_0x45dfec=_0x3c5705[_0x3e2302(0x1f6)]();if(_0x45dfec==null)return;const _0x5ddfc2=[{'id':_0x3e2302(0x1bf),'params':{'unitId':_0x26e081[_0x3e2302(0x2ea)],'actions':null,'textRanges':[_0x45dfec]}}],_0x22e863=this['_transformService'][_0x3e2302(0x3b8)](_0x26e081,_0x5ddfc2);if(!_0x2856d7[_0x3e2302(0x38a)](_0x22e863))throw _0x22e863['error'];const _0x3eb6cc=_0x22e863[_0x3e2302(0x14f)][0x0]['params'][_0x3e2302(0x307)];Array[_0x3e2302(0x358)](_0x3eb6cc)&&_0x3eb6cc[_0x3e2302(0xbb)]&&_0x3c5705[_0x3e2302(0x2ef)](_0x3eb6cc[0x0]);}};_0x5bc594=_0x2e8d7d([_0x4d3149(0x0,_0x2c7fed['Inject'](_0x2c7fed[_0x291ba3(0x4a2)])),_0x4d3149(0x1,_0x2856d7[_0x291ba3(0x372)]),_0x4d3149(0x2,_0x180dc9['IRenderManagerService'])],_0x5bc594);var _0x1f2393=Object[_0x291ba3(0x3e4)],_0x351ad6=Object[_0x291ba3(0x373)],_0x418e78=(_0x1be24b,_0x259072,_0x96f942,_0x429805)=>{const _0x6ef026=_0x291ba3;for(var _0x407c80=_0x429805>0x1?void 0x0:_0x429805?_0x351ad6(_0x259072,_0x96f942):_0x259072,_0x5312a8=_0x1be24b[_0x6ef026(0xbb)]-0x1,_0x54e20d;_0x5312a8>=0x0;_0x5312a8--)(_0x54e20d=_0x1be24b[_0x5312a8])&&(_0x407c80=(_0x429805?_0x54e20d(_0x259072,_0x96f942,_0x407c80):_0x54e20d(_0x407c80))||_0x407c80);return _0x429805&&_0x407c80&&_0x1f2393(_0x259072,_0x96f942,_0x407c80),_0x407c80;},_0x2ceaef=(_0x4e0927,_0x5a013d)=>(_0x2d90ee,_0x2b5447)=>_0x5a013d(_0x2d90ee,_0x2b5447,_0x4e0927);_0x594fe1[_0x291ba3(0x378)]=class extends _0x2c7fed[_0x291ba3(0x2e7)]{constructor(_0xaa294c,_0x6996c4,_0x2a1ea1,_0x3797b8,_0x2cc7f5){const _0x5286bd=_0x291ba3;super(),_0x24cbc7(this,_0x5286bd(0x132),new Map()),_0x24cbc7(this,_0x5286bd(0x1b7),new Map()),_0x24cbc7(this,_0x5286bd(0x2a8),!0x1),(this[_0x5286bd(0x2e2)]=_0xaa294c,this[_0x5286bd(0x10e)]=_0x6996c4,this[_0x5286bd(0x49c)]=_0x2a1ea1,this['_localeService']=_0x3797b8,this['_revisionService']=_0x2cc7f5,this[_0x5286bd(0x2c9)]());}['disableLocalCache'](){const _0x347ae7=_0x291ba3;this[_0x347ae7(0x2a8)]=!0x0;}['enableLocalCache'](){const _0x5093b6=_0x291ba3;this[_0x5093b6(0x2a8)]=!0x1;}[_0x291ba3(0x35e)](){const _0x3726cb=_0x291ba3;this[_0x3726cb(0x1ab)]()[_0x3726cb(0x308)](()=>super[_0x3726cb(0x35e)]());}async['loadOfflineData'](_0x2fabf4){const _0x4c68a2=_0x291ba3;return this[_0x4c68a2(0x2a8)]?null:this[_0x4c68a2(0x10e)][_0x4c68a2(0x396)](_0x2d83a1(_0x2fabf4));}async[_0x291ba3(0x19b)](_0x5e501a,_0x4afa43){const _0x2ec6f5=_0x291ba3;return!!this['_localStorageService'][_0x2ec6f5(0x32a)](_0x5e501a,_0x4afa43);}[_0x291ba3(0x274)](_0x1e8b3c,_0x3cedca,_0x2ce7bb,_0x1ab20b){const _0x45d467=_0x291ba3,_0x5dc1e0=this['_revisionService'][_0x45d467(0x263)](_0x1e8b3c);this[_0x45d467(0x132)][_0x45d467(0x250)](_0x1e8b3c,{'unitID':_0x1e8b3c,'type':_0x3cedca,'awaitingChangeset':_0x2ce7bb,'mutations':_0x1ab20b,'rev':_0x5dc1e0}),this[_0x45d467(0x1b7)]['has'](_0x1e8b3c)||this[_0x45d467(0x246)](_0x1e8b3c);}['_scheduleSaving'](_0x240590){const _0xd74776=_0x291ba3,_0x52dd77=this[_0xd74776(0x2c7)]();_0x52dd77===0x0?this['_saveCache'](_0x240590):this[_0xd74776(0x1b7)][_0xd74776(0x250)](_0x240590,setTimeout(()=>this['_saveCache'](_0x240590),_0x52dd77));}[_0x291ba3(0x2c7)](){const _0x2b0105=_0x291ba3;var _0x46fa6a;return(_0x46fa6a=this[_0x2b0105(0x2e2)][_0x2b0105(0x304)](_0x3085a4))!=null?_0x46fa6a:0x3e8;}['_saveCache'](_0x1f299c){const _0x3ae7ec=_0x291ba3,_0x5971ed=this['_saveTaskMap'][_0x3ae7ec(0x400)](_0x1f299c);return _0x5971ed!==void 0x0&&window['clearTimeout'](_0x5971ed),this['_localStorageService'][_0x3ae7ec(0x32a)](_0x2d83a1(_0x1f299c),this['_cachedData'][_0x3ae7ec(0x400)](_0x1f299c))[_0x3ae7ec(0x308)](()=>this[_0x3ae7ec(0x1b7)][_0x3ae7ec(0x39c)](_0x1f299c));}async[_0x291ba3(0x1ab)](){const _0x3c10fa=_0x291ba3,_0x1b6e3a=[];this[_0x3c10fa(0x1b7)][_0x3c10fa(0xb2)]((_0x19368a,_0x523a7d)=>{const _0x1f36d4=_0x3c10fa;window[_0x1f36d4(0x3fc)](_0x19368a),_0x1b6e3a[_0x1f36d4(0x44a)](this[_0x1f36d4(0xe9)](_0x523a7d)[_0x1f36d4(0x308)](()=>{const _0x156ea4=_0x1f36d4;this[_0x156ea4(0x1b7)]['delete'](_0x523a7d);}));}),await Promise['all'](_0x1b6e3a);}['_setupBeforeClosingHandler'](){const _0x2a0efd=_0x291ba3;this['disposeWithMe'](this[_0x2a0efd(0x49c)][_0x2a0efd(0x2ee)](()=>{const _0x58a976=_0x2a0efd;if(this['_saveTaskMap'][_0x58a976(0x3f6)])return this[_0x58a976(0x277)]['t'](_0x58a976(0x473));}));}},_0x594fe1[_0x291ba3(0x378)]=_0x418e78([_0x2ceaef(0x0,_0x2c7fed['IConfigService']),_0x2ceaef(0x1,_0x2c7fed[_0x291ba3(0x3da)]),_0x2ceaef(0x2,_0x4b403d['IBeforeCloseService']),_0x2ceaef(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x1a7)])),_0x2ceaef(0x4,_0x2c7fed['Inject'](_0x2856d7[_0x291ba3(0x363)]))],_0x594fe1[_0x291ba3(0x378)]);function _0x2d83a1(_0x2ea9b7){const _0x4071da=_0x291ba3;return _0x4071da(0x176)+_0x2ea9b7;}var _0x10da0b=Object[_0x291ba3(0x3e4)],_0x96a46a=Object[_0x291ba3(0x373)],_0x562d84=(_0xcc9740,_0x3edce7,_0x4d0997,_0x423703)=>{const _0x4d912f=_0x291ba3;for(var _0x1b48ab=_0x423703>0x1?void 0x0:_0x423703?_0x96a46a(_0x3edce7,_0x4d0997):_0x3edce7,_0x38eb99=_0xcc9740[_0x4d912f(0xbb)]-0x1,_0xc80501;_0x38eb99>=0x0;_0x38eb99--)(_0xc80501=_0xcc9740[_0x38eb99])&&(_0x1b48ab=(_0x423703?_0xc80501(_0x3edce7,_0x4d0997,_0x1b48ab):_0xc80501(_0x1b48ab))||_0x1b48ab);return _0x423703&&_0x1b48ab&&_0x10da0b(_0x3edce7,_0x4d0997,_0x1b48ab),_0x1b48ab;},_0x50614c=(_0x4137b4,_0x25d10e)=>(_0x1d44a9,_0x569dd8)=>_0x25d10e(_0x1d44a9,_0x569dd8,_0x4137b4);function _0x3212ce(_0x827278){const _0x20ed57=_0x291ba3,{unitID:_0x3e39f1,mutations:_0x4fa7e6}=_0x827278;return{'unitId':_0x3e39f1,'subUnitId':_0x4fa7e6[0x0]['params'][_0x20ed57(0x101)]};}let _0x1b1a48=class{constructor(_0x355a34,_0x30661b,_0x4533a2){const _0x127bea=_0x291ba3;this[_0x127bea(0x10d)]=_0x355a34,this['_transformService']=_0x30661b,this['_instanceService']=_0x4533a2;}[_0x291ba3(0xc3)](_0x449a5d){const _0x2c6326=_0x291ba3;var _0x2a8ba8,_0x540909,_0x2217e6,_0x2e7b8c;const _0x1217b0=this[_0x2c6326(0x10d)][_0x2c6326(0x400)](_0x244249['SheetsSelectionsService']),{unitId:_0x1c0d3c,subUnitId:_0x558730}=_0x3212ce(_0x449a5d),_0x3ff168=_0x1217b0['getWorkbookSelections'](_0x1c0d3c)[_0x2c6326(0x1c4)](),_0x53113f=(_0x540909=(_0x2a8ba8=this[_0x2c6326(0x3f0)][_0x2c6326(0x205)](_0x1c0d3c))==null?void 0x0:_0x2a8ba8['getActiveSheet']())==null?void 0x0:_0x540909[_0x2c6326(0x3d8)]();if(_0x3ff168['length']===0x0||!_0x1c0d3c||!_0x558730)return;const _0x16c53d=[{'id':_0x244249[_0x2c6326(0x23d)]['id'],'params':{'unitId':_0x1c0d3c,'subUnitId':_0x53113f,'selections':_0x2c7fed['Tools']['deepClone'](_0x3ff168)}}],_0x2630cd=this[_0x2c6326(0xbd)][_0x2c6326(0x3b8)](_0x449a5d,_0x16c53d);if(!_0x2856d7[_0x2c6326(0x38a)](_0x2630cd))throw _0x2630cd[_0x2c6326(0x41d)];const _0x264a48=(_0x2e7b8c=(_0x2217e6=_0x2630cd['m2Prime'][0x0])==null?void 0x0:_0x2217e6['params'])==null?void 0x0:_0x2e7b8c[_0x2c6326(0x224)];Array['isArray'](_0x264a48)&&_0x264a48[_0x2c6326(0xbb)]&&this['_injector']['get'](_0x2c7fed['ICommandService'])[_0x2c6326(0x341)](_0x244249[_0x2c6326(0x23d)]['id'],{'unitId':_0x1c0d3c,'subUnitId':_0x53113f,'selections':_0x264a48});}};_0x1b1a48=_0x562d84([_0x50614c(0x0,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x50614c(0x1,_0x2856d7[_0x291ba3(0x372)]),_0x50614c(0x2,_0x2c7fed[_0x291ba3(0x27a)])],_0x1b1a48);const _0x4ba495=_0x2c7fed[_0x291ba3(0x33e)](_0x291ba3(0x2cd));var _0x16b602=(_0x33236a=>(_0x33236a[_0x33236a[_0x291ba3(0x487)]=0x0]=_0x291ba3(0x487),_0x33236a[_0x33236a[_0x291ba3(0x3b3)]=0x1]=_0x291ba3(0x3b3),_0x33236a))(_0x16b602||{});const _0x47ecfb=0x7530,_0x22d271=_0x291ba3(0x276);class _0x1986bf extends _0x2c7fed[_0x291ba3(0x2e7)]{constructor(){const _0x47b155=_0x291ba3;super(),_0x24cbc7(this,_0x47b155(0x393),_0x2c7fed[_0x47b155(0xa9)]['generateRandomId']()),_0x24cbc7(this,_0x47b155(0x416),new Set()),_0x24cbc7(this,_0x47b155(0x133),new Map()),_0x24cbc7(this,_0x47b155(0x134),null),_0x24cbc7(this,_0x47b155(0xb4),new Map()),_0x24cbc7(this,'_unitStatus',new Map()),this[_0x47b155(0x366)]();}['dispose'](){const _0x327a68=_0x291ba3;super['dispose'](),this[_0x327a68(0xb4)][_0x327a68(0xb2)]((_0x2977b9,_0x4c255b)=>this[_0x327a68(0x1de)](_0x4c255b)),this[_0x327a68(0x134)]&&window[_0x327a68(0x10b)](this[_0x327a68(0x134)]);}[_0x291ba3(0x45b)](_0x65c10a){const _0x3924ab=_0x291ba3;return this[_0x3924ab(0x354)](_0x65c10a)[_0x3924ab(0x256)](_0x1fc547[_0x3924ab(0x2bf)]());}['editingUnit'](_0x582f03){const _0x20366c=_0x291ba3;this[_0x20366c(0x416)][_0x20366c(0x3f6)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x20366c(0x8b)](_0x582f03),this[_0x20366c(0x306)]({'type':0x0,'memberID':this[_0x20366c(0x393)],'unitIDs':[_0x582f03],'isForwarded':!0x1});}[_0x291ba3(0x3b6)](_0x2406b1){const _0x4c2ed3=_0x291ba3;this[_0x4c2ed3(0x416)][_0x4c2ed3(0x39c)](_0x2406b1),this[_0x4c2ed3(0x416)][_0x4c2ed3(0x3f6)]===0x0&&this[_0x4c2ed3(0x134)]&&window[_0x4c2ed3(0x10b)](this[_0x4c2ed3(0x134)]);}[_0x291ba3(0x366)](){const _0x350f48=_0x291ba3;this['disposeWithMe'](_0x2c7fed[_0x350f48(0x337)](_0x1fc547[_0x350f48(0x30a)](window,_0x350f48(0x3a9))[_0x350f48(0x3f2)](_0x5306e8=>{const _0x3f01c8=_0x350f48;if(_0x5306e8[_0x3f01c8(0x421)]!==_0x22d271||!_0x5306e8['newValue'])return;const _0xc6cd88=JSON[_0x3f01c8(0x96)](_0x5306e8[_0x3f01c8(0x285)]);this['_handleEvent'](_0xc6cd88);}))),window[_0x350f48(0x46a)]('unload',()=>this[_0x350f48(0x306)]({'type':0x1,'memberID':this[_0x350f48(0x393)],'unitIDs':Array[_0x350f48(0x403)](this[_0x350f48(0x416)])}));}[_0x291ba3(0x3ee)](_0xd63a41){const _0x1259c4=_0x291ba3;switch(_0xd63a41['type']){case 0x0:this[_0x1259c4(0x2c3)](_0xd63a41);break;case 0x1:this[_0x1259c4(0x2ff)](_0xd63a41);break;case 0x2:this[_0x1259c4(0x2e1)](_0xd63a41);break;}}[_0x291ba3(0x2c3)](_0x3292d3){const _0x559788=_0x291ba3,{unitIDs:_0x4e30fa,memberID:_0x20c74c,isForwarded:_0x32e25e}=_0x3292d3;_0x4e30fa[_0x559788(0xb2)](_0x5dcaee=>{const _0xbccd9b=_0x559788;if(!_0x32e25e&&this[_0xbccd9b(0x133)][_0xbccd9b(0x169)](_0x5dcaee)&&this['_ensureSubject'](_0x5dcaee)['next'](0x1),!this[_0xbccd9b(0x133)][_0xbccd9b(0x169)](_0x5dcaee)||!this['_unitOnClients'][_0xbccd9b(0x400)](_0x5dcaee)[_0xbccd9b(0x169)](_0x20c74c)){const _0x44468e=this[_0xbccd9b(0x133)][_0xbccd9b(0x400)](_0x5dcaee)||new Set();_0x44468e[_0xbccd9b(0x8b)](_0x20c74c),this[_0xbccd9b(0x133)][_0xbccd9b(0x250)](_0x5dcaee,_0x44468e),this[_0xbccd9b(0xa4)](_0x20c74c);}}),_0x32e25e||this[_0x559788(0x306)]({'type':0x0,'memberID':this[_0x559788(0x393)],'unitIDs':[...this[_0x559788(0x416)]],'isForwarded':!0x0});}[_0x291ba3(0xa4)](_0x55be74){const _0x5771b9=_0x291ba3;this['_removeClearOtherTimer'](_0x55be74);const _0x2d5e67=window[_0x5771b9(0x24a)](()=>{const _0x20c6a8=_0x5771b9;this[_0x20c6a8(0x133)]['forEach'](_0x53f392=>{const _0x316982=_0x20c6a8;_0x53f392[_0x316982(0x39c)](_0x55be74);});},_0x47ecfb*0x2);this['_clearOtherTimers'][_0x5771b9(0x250)](_0x55be74,_0x2d5e67);}['_removeClearOtherTimer'](_0x58c662){const _0x90e82e=_0x291ba3;if(this['_clearOtherTimers']['has'](_0x58c662)){const _0x52107c=this['_clearOtherTimers']['get'](_0x58c662);_0x52107c&&window[_0x90e82e(0x3fc)](_0x52107c),this[_0x90e82e(0xb4)][_0x90e82e(0x250)](_0x58c662,null);}}[_0x291ba3(0x2ff)](_0x350031){const _0x5dc376=_0x291ba3,{memberID:_0xc8245f,unitIDs:_0x340273}=_0x350031;_0x340273['forEach'](_0x1c7cbb=>{const _0x4b0f41=_0x2d25;var _0x652aa7;const _0x498743=this[_0x4b0f41(0x133)][_0x4b0f41(0x400)](_0x1c7cbb);_0x498743&&(_0x498743[_0x4b0f41(0x39c)](_0xc8245f),(_0x652aa7=this['_ensureSubject'](_0x1c7cbb))==null||_0x652aa7['next'](_0x498743[_0x4b0f41(0x3f6)]===0x0?0x0:0x1));}),this[_0x5dc376(0x1de)](_0xc8245f);}[_0x291ba3(0x2e1)](_0x21af7b){const _0x52533e=_0x291ba3;this[_0x52533e(0xa4)](_0x21af7b[_0x52533e(0x16a)]);}['_send'](_0x4e1273){const _0x2a8079=_0x291ba3;localStorage[_0x2a8079(0x32a)](_0x22d271,JSON['stringify'](_0x4e1273));}[_0x291ba3(0x2fb)](){const _0x2e79c9=_0x291ba3;this['_heartbeatTimer']=window[_0x2e79c9(0xd5)](()=>{const _0x20d38b=_0x2e79c9;this[_0x20d38b(0x306)]({'type':0x2,'memberID':this[_0x20d38b(0x393)]});},_0x47ecfb);}[_0x291ba3(0x354)](_0xc6241d){const _0x184801=_0x291ba3;return this[_0x184801(0x3cd)][_0x184801(0x169)](_0xc6241d)||this[_0x184801(0x3cd)][_0x184801(0x250)](_0xc6241d,new _0x1fc547[(_0x184801(0x467))](0x0)),this['_unitStatus'][_0x184801(0x400)](_0xc6241d);}}function _0x5a4515(_0x3bf076){let _0x4de61e='';for(const _0x36f738 of _0x3bf076){const {startOffset:_0x8f3ce5,endOffset:_0x3dde83,isActive:_0x1597d3}=_0x36f738;_0x4de61e['length']&&(_0x4de61e+=','),_0x4de61e+=_0x8f3ce5+':'+_0x3dde83+':'+(_0x1597d3?'1':'0');}return _0x4de61e;}function _0x3a9cc2(_0x509607){const _0x3e4bc1=_0x291ba3,_0x1f9423=_0x509607[_0x3e4bc1(0x3ef)](','),_0x483d68=[];for(const _0x5293ca of _0x1f9423){const [_0x95fcb7,_0x5ee31e,_0x3f1be6]=_0x5293ca[_0x3e4bc1(0x3ef)](':');_0x483d68['push']({'startOffset':Number(_0x95fcb7),'endOffset':Number(_0x5ee31e),'collapsed':_0x95fcb7===_0x5ee31e,'isActive':_0x3f1be6==='1'});}return _0x483d68[_0x3e4bc1(0x36a)](_0x4ce219=>_0x4ce219[_0x3e4bc1(0x16d)])||(_0x483d68[0x0][_0x3e4bc1(0x16d)]=!0x0),_0x483d68;}class _0x2f34a3 extends _0x2c7fed[_0x291ba3(0x2d5)]{constructor(){const _0x3b6696=_0x291ba3;super(...arguments),_0x24cbc7(this,'_collabCursorState$',new _0x1fc547[(_0x3b6696(0x467))](null)),_0x24cbc7(this,_0x3b6696(0x2d3),this[_0x3b6696(0x320)][_0x3b6696(0x442)]());}[_0x291ba3(0x122)](_0x4e2a77){const _0x2b86eb=_0x291ba3,{unitID:_0x1d161f,memberID:_0x4c2296,textRanges:_0x5ae8e4}=_0x4e2a77,_0x584f3f=_0x5a4515(_0x5ae8e4),_0x453179={'unitID':_0x1d161f,'memberID':_0x4c2296,'selection':_0x584f3f};this[_0x2b86eb(0x320)][_0x2b86eb(0x2ce)](_0x453179);}}var _0x556053=Object['defineProperty'],_0x18b2b3=Object[_0x291ba3(0x373)],_0x57f39a=(_0x5b274b,_0x1529f1,_0x156031,_0x16d1fe)=>{const _0x5a1f8c=_0x291ba3;for(var _0x11513c=_0x16d1fe>0x1?void 0x0:_0x16d1fe?_0x18b2b3(_0x1529f1,_0x156031):_0x1529f1,_0x3b3291=_0x5b274b[_0x5a1f8c(0xbb)]-0x1,_0x2837c8;_0x3b3291>=0x0;_0x3b3291--)(_0x2837c8=_0x5b274b[_0x3b3291])&&(_0x11513c=(_0x16d1fe?_0x2837c8(_0x1529f1,_0x156031,_0x11513c):_0x2837c8(_0x11513c))||_0x11513c);return _0x16d1fe&&_0x11513c&&_0x556053(_0x1529f1,_0x156031,_0x11513c),_0x11513c;},_0xaf4576=(_0x4397d6,_0x44afaf)=>(_0x5a1882,_0x523b70)=>_0x44afaf(_0x5a1882,_0x523b70,_0x4397d6);let _0x4bc5bd=class{constructor(_0x1f9a93,_0x26f42a){this['_injector']=_0x1f9a93,this['_transformService']=_0x26f42a;}[_0x291ba3(0xc3)](_0x49be5b){const _0x4df270=_0x291ba3;var _0x191308;const _0x75dee5=this[_0x4df270(0x10d)][_0x4df270(0x400)](_0x7ac583[_0x4df270(0x35d)]),_0x523926=(_0x191308=_0x75dee5[_0x4df270(0x334)]())!=null?_0x191308:[];if(_0x523926[_0x4df270(0xbb)]===0x0)return;const _0x193c0d=[{'id':_0x4df270(0x1bf),'params':{'unitId':_0x49be5b[_0x4df270(0x2ea)],'actions':null,'textRanges':_0x523926}}],_0x31f206=this[_0x4df270(0xbd)]['transformMutationsWithChangeset'](_0x49be5b,_0x193c0d);if(!_0x2856d7['isTransformMutationsWithChangesetSuccess'](_0x31f206))throw _0x31f206[_0x4df270(0x41d)];const _0x1fc84a=_0x31f206[_0x4df270(0x14f)][0x0][_0x4df270(0x184)][_0x4df270(0x307)];Array[_0x4df270(0x358)](_0x1fc84a)&&_0x1fc84a[_0x4df270(0xbb)]&&_0x75dee5['replaceTextRanges'](_0x1fc84a,!0x1);}};_0x4bc5bd=_0x57f39a([_0xaf4576(0x0,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0xaf4576(0x1,_0x2856d7[_0x291ba3(0x372)])],_0x4bc5bd);const _0x287e60=new Set([_0x244249[_0x291ba3(0x49a)]['id']]);function _0x542440(_0x279dec,_0x145e46,_0x3328bb,_0x158ecd,_0x6cf261){const _0x24789d=_0x291ba3;var _0x3a1747,_0x2df442,_0x2ccb25,_0x37029d;const _0x4e5b28=[];for(const _0x49591 of _0x279dec)if(_0x287e60[_0x24789d(0x169)](_0x49591['id'])){if(_0x4e5b28[_0x24789d(0xbb)]>0x0)break;_0x4e5b28['push'](_0x49591);break;}else _0x4e5b28[_0x24789d(0x44a)](_0x49591);const _0x2e9374=(_0x2df442=(_0x3a1747=_0x6cf261[_0x24789d(0x1b0)]())==null?void 0x0:_0x3a1747[_0x24789d(0x8f)])!=null?_0x2df442:'unknown',_0xb2bb7f=(_0x37029d=(_0x2ccb25=_0x6cf261[_0x24789d(0x1b0)]())==null?void 0x0:_0x2ccb25['memberID'])!=null?_0x37029d:_0x24789d(0x2f3);return{'changeset':{'unitID':_0x145e46,'type':_0x2856d7['mapDocumentTypeToUniverType'](_0x3328bb[_0x24789d(0x252)](_0x145e46)),'baseRev':_0x158ecd[_0x24789d(0x263)](_0x145e46),'revision':0x0,'userID':_0x2e9374,'memberID':_0xb2bb7f,'mutations':_0x4e5b28},'pendingMutations':_0x279dec[_0x24789d(0x35c)](_0x4e5b28[_0x24789d(0xbb)])};}function _0x5235fe(_0x3db2ba,_0x21215a,_0x5c9dea,_0x5d6cc5,_0x3c7d84){const _0x2b61d4=_0x291ba3;var _0x19d3e4,_0x37b2d2,_0x1f0330,_0x5753b0;const _0x29ec18=[_0x3db2ba['reduce']((_0x4c6d06,_0x31c4f2)=>{const _0x52ae9d=_0x2d25;var _0x19e22f;const {id:_0x3ba781}=_0x4c6d06,{id:_0x27f815,type:_0x531d45}=_0x31c4f2,_0x28f927=(_0x19e22f=_0x4c6d06[_0x52ae9d(0x184)])!=null?_0x19e22f:{'actions':null},_0xf1fcb7=_0x31c4f2[_0x52ae9d(0x184)];if(_0x3ba781&&_0x3ba781!==_0x27f815)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x3ba781+_0x52ae9d(0x369)+_0x27f815+'.');return{..._0x4c6d06,'id':_0x27f815,'type':_0x531d45,'params':{'unitId':_0xf1fcb7[_0x52ae9d(0x137)],'textRanges':_0xf1fcb7[_0x52ae9d(0x307)],'actions':_0x2c7fed['JSONX'][_0x52ae9d(0x18a)](_0x28f927['actions'],_0xf1fcb7['actions'])}};},{})],_0x5118e4=(_0x37b2d2=(_0x19d3e4=_0x3c7d84[_0x2b61d4(0x1b0)]())==null?void 0x0:_0x19d3e4[_0x2b61d4(0x8f)])!=null?_0x37b2d2:'unknown',_0x17985a=(_0x5753b0=(_0x1f0330=_0x3c7d84[_0x2b61d4(0x1b0)]())==null?void 0x0:_0x1f0330[_0x2b61d4(0x16a)])!=null?_0x5753b0:_0x2b61d4(0x2f3);return{'changeset':{'unitID':_0x21215a,'type':_0x2856d7[_0x2b61d4(0x42d)](_0x5c9dea[_0x2b61d4(0x252)](_0x21215a)),'baseRev':_0x5d6cc5[_0x2b61d4(0x263)](_0x21215a),'revision':0x0,'userID':_0x5118e4,'memberID':_0x17985a,'mutations':_0x29ec18},'pendingMutations':[]};}const _0x5abf1f={'id':_0x244249[_0x291ba3(0x1f1)]['id'],'type':_0x2c7fed['CommandType'][_0x291ba3(0x325)],'params':{}};var _0x105459=Object[_0x291ba3(0x3e4)],_0x50986=Object[_0x291ba3(0x373)],_0x428496=(_0x47b892,_0x2daf2a,_0xdbadbe,_0x89985f)=>{const _0x5e5dfd=_0x291ba3;for(var _0x571f7b=_0x89985f>0x1?void 0x0:_0x89985f?_0x50986(_0x2daf2a,_0xdbadbe):_0x2daf2a,_0x39ea56=_0x47b892[_0x5e5dfd(0xbb)]-0x1,_0x578888;_0x39ea56>=0x0;_0x39ea56--)(_0x578888=_0x47b892[_0x39ea56])&&(_0x571f7b=(_0x89985f?_0x578888(_0x2daf2a,_0xdbadbe,_0x571f7b):_0x578888(_0x571f7b))||_0x571f7b);return _0x89985f&&_0x571f7b&&_0x105459(_0x2daf2a,_0xdbadbe,_0x571f7b),_0x571f7b;},_0x4d1e63=(_0x2e49b0,_0x5dc1ea)=>(_0x4a8fb9,_0x43e90a)=>_0x5dc1ea(_0x4a8fb9,_0x43e90a,_0x2e49b0),_0x5b6195=(_0x153984=>(_0x153984[_0x291ba3(0x180)]=_0x291ba3(0xc2),_0x153984[_0x291ba3(0x1db)]=_0x291ba3(0x97),_0x153984[_0x291ba3(0xda)]=_0x291ba3(0x2fa),_0x153984[_0x291ba3(0x48f)]=_0x291ba3(0x1a1),_0x153984['AWAITING_WITH_PENDING']=_0x291ba3(0x3a0),_0x153984[_0x291ba3(0x458)]=_0x291ba3(0x26c),_0x153984[_0x291ba3(0x426)]='conflict',_0x153984['OFFLINE']=_0x291ba3(0x2c1),_0x153984))(_0x5b6195||{});class _0x4d1d97{constructor(_0xd710ca,_0x1a5267,_0x11636a,_0xb9085c,_0x4c2bfa,_0x4f3978,_0x1f82c7,_0x582ce7,_0x191683){const _0x5ef4cf=_0x291ba3;_0x24cbc7(this,_0x5ef4cf(0x2b6),null),_0x24cbc7(this,'_pendingMutations',[]),(this['unitID']=_0xd710ca,this[_0x5ef4cf(0x33c)]=_0x1a5267,this['_handler']=_0x4c2bfa,this[_0x5ef4cf(0xc0)]=_0x4f3978,this['_undoRedoService']=_0x1f82c7,this[_0x5ef4cf(0x1cd)]=_0x582ce7,this[_0x5ef4cf(0x106)]=_0x191683,this[_0x5ef4cf(0x2b6)]=_0x11636a,this[_0x5ef4cf(0x194)]=_0xb9085c);}[_0x291ba3(0x282)](_0xed25d6){const _0x1ddfd6=_0x291ba3,_0x6a9360=this[_0x1ddfd6(0x1cd)][_0x1ddfd6(0x263)](this[_0x1ddfd6(0x2ea)]);return _0xed25d6[_0x1ddfd6(0x157)]>_0x6a9360+0x1?(this[_0x1ddfd6(0x324)][_0x1ddfd6(0x29d)]({'from':_0x6a9360,'to':_0xed25d6['revision']-0x1}),!0x0):!0x1;}[_0x291ba3(0x2b3)](_0x948d63){const _0x10c2ca=_0x291ba3;this[_0x10c2ca(0x181)][_0x10c2ca(0x118)](this[_0x10c2ca(0x2ea)],_0x948d63);}[_0x291ba3(0x131)](_0x53ca8e){const _0x14330a=_0x291ba3;var _0x6a8a55,_0x16fad5;(_0x16fad5=(_0x6a8a55=this[_0x14330a(0x324)])[_0x14330a(0x187)])==null||_0x16fad5[_0x14330a(0x384)](_0x6a8a55,_0x53ca8e);}[_0x291ba3(0x2db)](_0x27eed0){const _0x19b0b8=_0x291ba3;var _0x5c2b4c,_0x43e6ce;return(_0x43e6ce=(_0x5c2b4c=this[_0x19b0b8(0x324)])[_0x19b0b8(0x1ee)])==null?void 0x0:_0x43e6ce[_0x19b0b8(0x384)](_0x5c2b4c,_0x27eed0);}[_0x291ba3(0x2f9)](_0x22dae6){const _0xd69a12=_0x291ba3;var _0x368bcf,_0x4be4e7,_0x5543c7;return(_0x5543c7=(_0x4be4e7=(_0x368bcf=this[_0xd69a12(0x324)])[_0xd69a12(0x3d5)])==null?void 0x0:_0x4be4e7[_0xd69a12(0x384)](_0x368bcf,_0x22dae6))!=null?_0x5543c7:_0x22dae6;}[_0x291ba3(0x2ba)](_0x30aa89){const _0x5f31d4=_0x291ba3;var _0x102fb2,_0x1d9ef2;if(this[_0x5f31d4(0x33c)]===_0x4cd70d['UNIVER_DOC']){const {unitID:_0x40c90f,mutations:_0x51868d,memberID:_0xc11e2b}=_0x30aa89,_0x454153=_0x51868d[0x0][_0x5f31d4(0x184)]['textRanges'];Array['isArray'](_0x454153)&&_0x454153['length']>0x0&&((_0x1d9ef2=(_0x102fb2=this[_0x5f31d4(0x324)])[_0x5f31d4(0xdb)])==null||_0x1d9ef2[_0x5f31d4(0x384)](_0x102fb2,{'unitID':_0x40c90f,'memberID':_0xc11e2b,'textRanges':_0x454153}));}}['_updateLocalCache'](){const _0xf03584=_0x291ba3;this[_0xf03584(0x106)]['updateOfflineData'](this[_0xf03584(0x2ea)],this['type'],this[_0xf03584(0x2b6)],this['_pendingMutations']);}[_0x291ba3(0x316)](){const _0x5aa533=_0x291ba3;return this[_0x5aa533(0x1cd)][_0x5aa533(0x263)](this[_0x5aa533(0x2ea)]);}['_incrementRevisionNumber'](){const _0x123a70=_0x291ba3;this['_revisionService']['incrementRevOfUnit'](this[_0x123a70(0x2ea)]);}['_executeRemoteChangeset'](_0x47e053){const _0x5ad7cf=_0x291ba3;var _0x413e32;const _0x120101=this[_0x5ad7cf(0x2f9)](_0x47e053),_0x3dbaf1=_0x2c7fed[_0x5ad7cf(0x13f)](_0x120101[_0x5ad7cf(0x1a9)],this[_0x5ad7cf(0xc0)],{'fromCollab':!0x0});if(!_0x3dbaf1[_0x5ad7cf(0x218)])throw _0x3dbaf1['error']instanceof Error?_0x3dbaf1[_0x5ad7cf(0x41d)]:new Error((_0x413e32=_0x3dbaf1[_0x5ad7cf(0x41d)])!=null?_0x413e32:_0x5ad7cf(0x33a));this[_0x5ad7cf(0x2db)](_0x120101),this[_0x5ad7cf(0x2b3)](_0x47e053),this[_0x5ad7cf(0x131)](_0x120101),this[_0x5ad7cf(0x2ba)](_0x120101),this[_0x5ad7cf(0xb8)]();}}let _0x157452=class extends _0x4d1d97{constructor(_0x4bdbf6,_0x24d772,_0x166aab,_0x281f95,_0x3c7b7d,_0x1ebc76,_0x55468d,_0x548bc1,_0x472ca0,_0x369a8e){const _0x30bac6=_0x291ba3;super(_0x4bdbf6,_0x24d772,null,[],_0x166aab,_0x548bc1,_0x55468d,_0x281f95,_0x3c7b7d),_0x24cbc7(this,_0x30bac6(0x469),'synced'),(this[_0x30bac6(0x10d)]=_0x1ebc76,this[_0x30bac6(0x139)]=_0x472ca0,this[_0x30bac6(0xbd)]=_0x369a8e);}[_0x291ba3(0x427)](_0x579085){const _0x324724=_0x291ba3,_0x3c9bd7=this[_0x324724(0x10d)][_0x324724(0x266)](_0x571839,this[_0x324724(0x2ea)],this[_0x324724(0x33c)],[_0x579085],this[_0x324724(0x324)]);return _0x3c9bd7[_0x324724(0x3dd)](),_0x3c9bd7[_0x324724(0x2ae)](),_0x3c9bd7;}[_0x291ba3(0x359)](_0x13bedc){const _0x5b965b=_0x291ba3;if(this['_checkMissing'](_0x13bedc))return this[_0x5b965b(0x10d)][_0x5b965b(0x266)](_0x3feb1e,this['unitID'],this[_0x5b965b(0x33c)],null,[],null,[_0x13bedc],this[_0x5b965b(0x324)]);try{const _0x5d9f11=this[_0x5b965b(0xbd)][_0x5b965b(0x3b8)](_0x13bedc,[_0x5abf1f]);if(_0x2856d7[_0x5b965b(0x38a)](_0x5d9f11)){const {c1Prime:_0x5ba223}=_0x5d9f11;return this[_0x5b965b(0x1d5)](_0x5ba223),this;}throw _0x5d9f11[_0x5b965b(0x41d)];}catch(_0x34c268){return this[_0x5b965b(0x139)][_0x5b965b(0x41d)](_0x34c268),this['_onConflict'](!0x1);}}[_0x291ba3(0x25e)](_0x779231){const _0x550d82=_0x291ba3;return this[_0x550d82(0x10d)][_0x550d82(0x266)](_0x55ee11,this[_0x550d82(0x2ea)],this[_0x550d82(0x33c)],null,[],this[_0x550d82(0x324)],_0x779231);}[_0x291ba3(0x2fc)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x40ae69=_0x291ba3;throw new Error(_0x40ae69(0x38e));}['toggleOffline'](){const _0x534772=_0x291ba3;return this['_injector'][_0x534772(0x266)](_0x2b854c,this['unitID'],this[_0x534772(0x33c)],null,[],this[_0x534772(0x324)]);}[_0x291ba3(0x1d9)](){return this;}[_0x291ba3(0x391)](){const _0x483d7c=_0x291ba3;throw new Error(_0x483d7c(0x330));}[_0x291ba3(0x228)](){const _0x40ee86=_0x291ba3,_0x174fa7=this[_0x40ee86(0x1cd)][_0x40ee86(0x263)](this[_0x40ee86(0x2ea)]);return this[_0x40ee86(0x324)][_0x40ee86(0x29d)]({'from':_0x174fa7,'to':0x0}),this[_0x40ee86(0x10d)]['createInstance'](_0x3feb1e,this[_0x40ee86(0x2ea)],this['type'],null,[],null,[],this[_0x40ee86(0x324)]);}};_0x157452=_0x428496([_0x4d1e63(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7[_0x291ba3(0x363)])),_0x4d1e63(0x4,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1[_0x291ba3(0x378)])),_0x4d1e63(0x5,_0x2c7fed['Inject'](_0x2c7fed[_0x291ba3(0x4a2)])),_0x4d1e63(0x6,_0x2c7fed['IUndoRedoService']),_0x4d1e63(0x7,_0x2c7fed[_0x291ba3(0x15a)]),_0x4d1e63(0x8,_0x2c7fed[_0x291ba3(0x2fd)]),_0x4d1e63(0x9,_0x2856d7['ITransformService'])],_0x157452);let _0x571839=class extends _0x4d1d97{constructor(_0x1f3d52,_0x5b01c5,_0x3a8df7,_0x16f98b,_0x42ef4c,_0x28e75d,_0x36c4ee,_0x406631,_0x45933d,_0x285591,_0x3ade0d,_0x3da333,_0x23ca6a,_0x417bb7){const _0x23c5a7=_0x291ba3;super(_0x1f3d52,_0x5b01c5,null,_0x3a8df7,_0x16f98b,_0x285591,_0x417bb7,_0x28e75d,_0x36c4ee),_0x24cbc7(this,_0x23c5a7(0x469),'pending'),_0x24cbc7(this,'_scheduleTimestamp',null),_0x24cbc7(this,_0x23c5a7(0x232),null),(this[_0x23c5a7(0x10d)]=_0x42ef4c,this[_0x23c5a7(0x29e)]=_0x406631,this[_0x23c5a7(0x139)]=_0x45933d,this['_configService']=_0x3ade0d,this[_0x23c5a7(0xbd)]=_0x3da333,this[_0x23c5a7(0x79)]=_0x23ca6a);}[_0x291ba3(0x427)](_0x173d37){const _0x3cf8c9=_0x291ba3;return this[_0x3cf8c9(0x194)][_0x3cf8c9(0x44a)](_0x173d37),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0xe4ef31){const _0x33e8ca=_0x291ba3;if(this[_0x33e8ca(0x282)](_0xe4ef31))return this[_0x33e8ca(0x24e)](),this[_0x33e8ca(0x10d)][_0x33e8ca(0x266)](_0x3feb1e,this[_0x33e8ca(0x2ea)],this[_0x33e8ca(0x33c)],null,this[_0x33e8ca(0x194)],null,[_0xe4ef31],this[_0x33e8ca(0x324)]);try{const _0xff9694=this[_0x33e8ca(0xbd)][_0x33e8ca(0x3b8)](_0xe4ef31,this[_0x33e8ca(0x194)]);if(_0x2856d7[_0x33e8ca(0x38a)](_0xff9694)){const {c1Prime:_0x25c0e1,m2Prime:_0x147f2c}=_0xff9694;this[_0x33e8ca(0x1d5)](_0x25c0e1);const _0x29a5ad=this[_0x33e8ca(0x10d)]['createInstance'](_0x571839,this[_0x33e8ca(0x2ea)],this[_0x33e8ca(0x33c)],_0x147f2c,this['_handler']);return this[_0x33e8ca(0x24e)](),_0x29a5ad['_schedule'](this[_0x33e8ca(0x144)]?Math[_0x33e8ca(0x305)](0x0,new Date()['getTime']()-this[_0x33e8ca(0x144)]):this[_0x33e8ca(0x2e8)]()),_0x29a5ad;}throw _0xff9694['error'];}catch(_0x5a734d){return this[_0x33e8ca(0x139)][_0x33e8ca(0x41d)](_0x5a734d),this['_onConflict'](!0x1);}}[_0x291ba3(0x2fc)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x291ba3(0x82)](){const _0x14cdb3=_0x291ba3;throw new Error(_0x14cdb3(0x37f));}['toggleOffline'](){const _0x3c2e75=_0x291ba3;return this[_0x3c2e75(0x24e)](),this['_injector'][_0x3c2e75(0x266)](_0x2b854c,this[_0x3c2e75(0x2ea)],this[_0x3c2e75(0x33c)],null,this[_0x3c2e75(0x194)],this[_0x3c2e75(0x324)]);}[_0x291ba3(0x1d9)](){return this;}['_schedule'](_0x2b7001){const _0x5d43f8=_0x291ba3,_0x20519e=_0x2b7001!=null?_0x2b7001:this[_0x5d43f8(0x2e8)]();this[_0x5d43f8(0x144)]=new Date()[_0x5d43f8(0x87)](),this[_0x5d43f8(0x232)]=window['setTimeout'](()=>{const _0x17c098=_0x5d43f8;this[_0x17c098(0x24e)]();let _0x289e55=null;switch(this[_0x17c098(0x33c)]){case _0x4cd70d[_0x17c098(0x2aa)]:{_0x289e55=_0x542440(this[_0x17c098(0x194)],this[_0x17c098(0x2ea)],this['_univerInstanceService'],this['_revisionService'],this[_0x17c098(0x29e)]);break;}case _0x4cd70d['UNIVER_DOC']:{this[_0x17c098(0x194)]['every'](_0x182948=>_0x182948['id']===_0x7ac583[_0x17c098(0x30e)]['id'])?_0x289e55=_0x5235fe(this['_pendingMutations'],this[_0x17c098(0x2ea)],this[_0x17c098(0x79)],this[_0x17c098(0x1cd)],this['_memberService']):_0x289e55=_0x542440(this[_0x17c098(0x194)],this[_0x17c098(0x2ea)],this['_univerInstanceService'],this[_0x17c098(0x1cd)],this[_0x17c098(0x29e)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x17c098(0x33c)]+_0x17c098(0x1a6));}const {changeset:_0x4c8634,pendingMutations:_0x33d42e}=_0x289e55;this[_0x17c098(0x324)][_0x17c098(0x111)](_0x4c8634);const _0x5e69be=_0x33d42e[_0x17c098(0xbb)]?this[_0x17c098(0x10d)][_0x17c098(0x266)](_0x3d3aee,this[_0x17c098(0x2ea)],this[_0x17c098(0x33c)],_0x4c8634,_0x33d42e,this[_0x17c098(0x324)]):this[_0x17c098(0x10d)]['createInstance'](_0x56fd74,this[_0x17c098(0x2ea)],this[_0x17c098(0x33c)],_0x4c8634,this[_0x17c098(0x324)]);_0x5e69be[_0x17c098(0x2ae)](),this[_0x17c098(0x324)][_0x17c098(0x491)](this,_0x5e69be);},_0x20519e);}[_0x291ba3(0x2e8)](){const _0x56c441=_0x291ba3;var _0x21bb9d;const _0x4413e4=this['_configService'][_0x56c441(0x304)](_0x229401);return(_0x21bb9d=_0x4413e4==null?void 0x0:_0x4413e4[_0x56c441(0x1dd)])!=null?_0x21bb9d:0x7d0;}[_0x291ba3(0x391)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x291ba3(0x24e)](){const _0x8629c6=_0x291ba3;this[_0x8629c6(0x232)]!=null&&(clearTimeout(this[_0x8629c6(0x232)]),this[_0x8629c6(0x232)]=null);}[_0x291ba3(0x25e)](_0x4c763d){const _0x18450d=_0x291ba3;return this[_0x18450d(0x24e)](),this[_0x18450d(0x10d)][_0x18450d(0x266)](_0x55ee11,this[_0x18450d(0x2ea)],this['type'],null,this[_0x18450d(0x194)],this['_handler'],_0x4c763d);}};_0x571839=_0x428496([_0x4d1e63(0x4,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed['Injector'])),_0x4d1e63(0x5,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7[_0x291ba3(0x363)])),_0x4d1e63(0x6,_0x2c7fed['Inject'](_0x594fe1[_0x291ba3(0x378)])),_0x4d1e63(0x7,_0x2c7fed['Inject'](_0x4d411d)),_0x4d1e63(0x8,_0x2c7fed['ILogService']),_0x4d1e63(0x9,_0x2c7fed[_0x291ba3(0x15a)]),_0x4d1e63(0xa,_0x2c7fed[_0x291ba3(0x309)]),_0x4d1e63(0xb,_0x2856d7['ITransformService']),_0x4d1e63(0xc,_0x2c7fed[_0x291ba3(0x27a)]),_0x4d1e63(0xd,_0x2c7fed[_0x291ba3(0x26b)])],_0x571839);let _0x56fd74=class extends _0x4d1d97{constructor(_0x5c90a0,_0xec94d8,_0xabb68e,_0x3c6cb7,_0x465b38,_0x484365,_0x219be3,_0x49227c,_0x3f1bd4,_0xf06e52,_0x2049db){const _0x1760ac=_0x291ba3;super(_0x5c90a0,_0xec94d8,_0xabb68e,[],_0x3c6cb7,_0x49227c,_0x2049db,_0x484365,_0x219be3),_0x24cbc7(this,_0x1760ac(0x469),_0x1760ac(0x1a1)),(this[_0x1760ac(0x10d)]=_0x465b38,this[_0x1760ac(0x139)]=_0x3f1bd4,this['_transformService']=_0xf06e52);}[_0x291ba3(0x427)](_0x56069f){const _0x387f74=_0x291ba3,_0x1d2050=this[_0x387f74(0x10d)]['createInstance'](_0x3d3aee,this['unitID'],this[_0x387f74(0x33c)],this[_0x387f74(0x2b6)],[_0x56069f],this[_0x387f74(0x324)]);return _0x1d2050[_0x387f74(0x2ae)](),_0x1d2050;}[_0x291ba3(0x359)](_0x3a0bd7){const _0x32e228=_0x291ba3;if(this['_checkMissing'](_0x3a0bd7))return this[_0x32e228(0x10d)][_0x32e228(0x266)](_0x3feb1e,this[_0x32e228(0x2ea)],this[_0x32e228(0x33c)],this['_awaitingChangeset'],[],null,[_0x3a0bd7],this['_handler']);try{const _0x2f3b6d=this[_0x32e228(0xbd)][_0x32e228(0x126)]([_0x3a0bd7],[this[_0x32e228(0x2b6)]],!0x1);if(_0x2856d7[_0x32e228(0x360)](_0x2f3b6d)){const {c1Prime:_0x595cc3,c2Prime:_0x32ecee}=_0x2f3b6d;this[_0x32e228(0x1d5)](_0x595cc3[0x0]),_0x32ecee[0x0]['baseRev']=this[_0x32e228(0x316)]();const _0x2408c1=this[_0x32e228(0x10d)][_0x32e228(0x266)](_0x56fd74,this[_0x32e228(0x2ea)],this[_0x32e228(0x33c)],_0x32ecee[0x0],this[_0x32e228(0x324)]);return _0x2408c1[_0x32e228(0x2ae)](),_0x2408c1;}return this[_0x32e228(0x25e)](!0x1);}catch(_0x166a73){return this['_logService'][_0x32e228(0x41d)](_0x166a73),this[_0x32e228(0x25e)](!0x1);}}[_0x291ba3(0x2fc)](_0x3889d5){const _0x151ad4=_0x291ba3,_0x3c65f0=this[_0x151ad4(0x1cd)][_0x151ad4(0x263)](this[_0x151ad4(0x2ea)]);if(_0x3889d5[_0x151ad4(0x157)]<_0x3c65f0-0x1)return this;if(this[_0x151ad4(0x282)](_0x3889d5))return this[_0x151ad4(0x10d)][_0x151ad4(0x266)](_0x3feb1e,this[_0x151ad4(0x2ea)],this[_0x151ad4(0x33c)],null,[],this['_awaitingChangeset'],[],this[_0x151ad4(0x324)]);this[_0x151ad4(0xb8)]();const _0x5b5982=this['_injector'][_0x151ad4(0x266)](_0x157452,this[_0x151ad4(0x2ea)],this[_0x151ad4(0x33c)],this[_0x151ad4(0x324)]);return _0x5b5982[_0x151ad4(0x2ae)](),_0x5b5982;}[_0x291ba3(0x82)](_0x366bad){const _0x56bbc0=_0x291ba3;return this['_onConflict'](!!(_0x366bad!=null&&_0x366bad[_0x56bbc0(0x119)]));}['toggleOffline'](){const _0x23a23c=_0x291ba3;return this['_injector']['createInstance'](_0x2b854c,this[_0x23a23c(0x2ea)],this['type'],this[_0x23a23c(0x2b6)],[],this[_0x23a23c(0x324)]);}[_0x291ba3(0x1d9)](){return this;}[_0x291ba3(0x391)](){const _0x11d71e=_0x291ba3;this['_handler']['onSendChangeset'](this[_0x11d71e(0x2b6)]);}[_0x291ba3(0x25e)](_0x4ed196){const _0x5a1f9d=_0x291ba3;return this['_injector'][_0x5a1f9d(0x266)](_0x55ee11,this[_0x5a1f9d(0x2ea)],this[_0x5a1f9d(0x33c)],this['_awaitingChangeset'],[],this['_handler'],_0x4ed196);}};_0x56fd74=_0x428496([_0x4d1e63(0x4,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x4d1e63(0x5,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7['RevisionService'])),_0x4d1e63(0x6,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1['LocalCacheService'])),_0x4d1e63(0x7,_0x2c7fed[_0x291ba3(0x15a)]),_0x4d1e63(0x8,_0x2c7fed['ILogService']),_0x4d1e63(0x9,_0x2856d7[_0x291ba3(0x372)]),_0x4d1e63(0xa,_0x2c7fed[_0x291ba3(0x26b)])],_0x56fd74);let _0x3d3aee=class extends _0x4d1d97{constructor(_0x2ca5b8,_0xd1ec8a,_0x40c39b,_0x4c8de4,_0x545961,_0x492fa1,_0x2e7c44,_0xc911e0,_0x290984,_0x5b35b5,_0x147667,_0x3e47db){const _0x29afb9=_0x291ba3;super(_0x2ca5b8,_0xd1ec8a,_0x40c39b,_0x4c8de4,_0x545961,_0x290984,_0x3e47db,_0x2e7c44,_0xc911e0),_0x24cbc7(this,'status',_0x29afb9(0x3a0)),(this['_injector']=_0x492fa1,this['_logService']=_0x5b35b5,this[_0x29afb9(0xbd)]=_0x147667);}[_0x291ba3(0x427)](_0x2dda45){const _0x98f84a=_0x291ba3;return this['_pendingMutations'][_0x98f84a(0x44a)](_0x2dda45),this;}[_0x291ba3(0x359)](_0x1fc705){const _0x258efc=_0x291ba3;if(this['_checkMissing'](_0x1fc705))return this['_injector'][_0x258efc(0x266)](_0x3feb1e,this[_0x258efc(0x2ea)],this[_0x258efc(0x33c)],this[_0x258efc(0x2b6)],this['_pendingMutations'],null,[_0x1fc705],this['_handler']);try{const _0x42f967=this['_transformService']['transformChangesets']([_0x1fc705],[this[_0x258efc(0x2b6)]],!0x1);if(_0x2856d7[_0x258efc(0x360)](_0x42f967)){const {c1Prime:_0x1e6440,c2Prime:_0x597c65}=_0x42f967,_0x32116e=this[_0x258efc(0xbd)][_0x258efc(0x3b8)](_0x1e6440[0x0],this['_pendingMutations']);if(_0x2856d7[_0x258efc(0x38a)](_0x32116e)){const {c1Prime:_0x2f77c8,m2Prime:_0x13f79a}=_0x32116e;return this[_0x258efc(0x1d5)](_0x2f77c8),_0x597c65[0x0][_0x258efc(0x480)]=this[_0x258efc(0x316)](),this[_0x258efc(0x10d)][_0x258efc(0x266)](_0x3d3aee,this['unitID'],this['type'],_0x597c65[0x0],_0x13f79a,this[_0x258efc(0x324)]);}throw _0x32116e[_0x258efc(0x41d)];}throw _0x42f967[_0x258efc(0x41d)];}catch(_0x4097b2){return this[_0x258efc(0x139)]['error'](_0x4097b2),this['_onConflict'](!0x1);}}[_0x291ba3(0x2fc)](_0x3f3677){const _0x1e01bc=_0x291ba3;if(this['_checkMissing'](_0x3f3677))return this['_injector'][_0x1e01bc(0x266)](_0x3feb1e,this[_0x1e01bc(0x2ea)],this[_0x1e01bc(0x33c)],null,this['_pendingMutations'],this[_0x1e01bc(0x2b6)],[],this[_0x1e01bc(0x324)]);this['_incrementRevisionNumber']();const _0xf5921d=this['_injector']['createInstance'](_0x571839,this[_0x1e01bc(0x2ea)],this[_0x1e01bc(0x33c)],this['_pendingMutations'],this[_0x1e01bc(0x324)]);return _0xf5921d[_0x1e01bc(0x3dd)](),_0xf5921d[_0x1e01bc(0x2ae)](),_0xf5921d;}[_0x291ba3(0x82)](_0x209498){const _0x494064=_0x291ba3;return this[_0x494064(0x25e)](!!(_0x209498!=null&&_0x209498[_0x494064(0x119)]));}[_0x291ba3(0x11b)](){const _0x4fe95a=_0x291ba3;return this[_0x4fe95a(0x10d)][_0x4fe95a(0x266)](_0x2b854c,this[_0x4fe95a(0x2ea)],this[_0x4fe95a(0x33c)],this['_awaitingChangeset'],this[_0x4fe95a(0x194)],this['_handler']);}[_0x291ba3(0x1d9)](){return this;}[_0x291ba3(0x391)](){const _0x631add=_0x291ba3;this[_0x631add(0x324)][_0x631add(0x111)](this[_0x631add(0x2b6)]);}[_0x291ba3(0x25e)](_0x38cac7){const _0x15100e=_0x291ba3;return this['_injector'][_0x15100e(0x266)](_0x55ee11,this[_0x15100e(0x2ea)],this['type'],null,this[_0x15100e(0x194)],this[_0x15100e(0x324)],_0x38cac7);}};_0x3d3aee=_0x428496([_0x4d1e63(0x5,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x4d1e63(0x6,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7[_0x291ba3(0x363)])),_0x4d1e63(0x7,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1[_0x291ba3(0x378)])),_0x4d1e63(0x8,_0x2c7fed['ICommandService']),_0x4d1e63(0x9,_0x2c7fed[_0x291ba3(0x2fd)]),_0x4d1e63(0xa,_0x2856d7[_0x291ba3(0x372)]),_0x4d1e63(0xb,_0x2c7fed[_0x291ba3(0x26b)])],_0x3d3aee);let _0x55ee11=class extends _0x4d1d97{constructor(_0x178047,_0x45a5ba,_0x270f2e,_0x108a93,_0x2dc6bf,_0x2a5d0c=!0x1,_0xa79901,_0x347a0c,_0x5a025b,_0x188747,_0x469e28,_0x57e278,_0x28207e){const _0xe40bfc=_0x291ba3;super(_0x178047,_0x45a5ba,_0x270f2e,_0x108a93,_0x2dc6bf,_0x347a0c,_0x5a025b,_0x469e28,_0x188747),_0x24cbc7(this,_0xe40bfc(0x469),_0xe40bfc(0x1e5)),(this['_isPermissionRej']=_0x2a5d0c,this[_0xe40bfc(0x2d4)]=_0xa79901,this['_localeService']=_0x57e278,this[_0xe40bfc(0x3f1)]=_0x28207e,this[_0xe40bfc(0x41e)](),this[_0xe40bfc(0x3d4)](),this[_0xe40bfc(0x49d)]());}['appendMutation'](){return this;}[_0x291ba3(0x359)](){return this;}[_0x291ba3(0x2fc)](){return this;}[_0x291ba3(0x82)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x291ba3(0x391)](){const _0x3fd8bc=_0x291ba3;throw new Error(_0x3fd8bc(0x24f));}[_0x291ba3(0x3d4)](){const _0x57e4e0=_0x291ba3;this['_localCacheService'][_0x57e4e0(0x274)](this[_0x57e4e0(0x2ea)],this[_0x57e4e0(0x33c)],null,[]);}['_showConflictNotification'](){const _0x1d83ef=_0x291ba3;this[_0x1d83ef(0x1f9)]?this[_0x1d83ef(0x3f1)][_0x1d83ef(0x116)]({'title':this[_0x1d83ef(0x277)]['t']('permission.title'),'content':this[_0x1d83ef(0x277)]['t'](_0x1d83ef(0x40f)),'type':_0x1d83ef(0x41d),'duration':0x0}):this[_0x1d83ef(0x3f1)][_0x1d83ef(0x116)]({'title':this['_localeService']['t'](_0x1d83ef(0x9c)),'content':this[_0x1d83ef(0x277)]['t'](_0x1d83ef(0x29b)),'type':_0x1d83ef(0x41d),'duration':0x0});}['_disableEditing'](){const _0x275a60=_0x291ba3;this[_0x275a60(0x2d4)][_0x275a60(0x1e6)](new _0x244249[(_0x275a60(0x2e9))](this[_0x275a60(0x2ea)])['id'],!0x1);}};_0x55ee11=_0x428496([_0x4d1e63(0x6,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed['IPermissionService'])),_0x4d1e63(0x7,_0x2c7fed[_0x291ba3(0x15a)]),_0x4d1e63(0x8,_0x2c7fed[_0x291ba3(0x26b)]),_0x4d1e63(0x9,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1[_0x291ba3(0x378)])),_0x4d1e63(0xa,_0x2c7fed['Inject'](_0x2856d7['RevisionService'])),_0x4d1e63(0xb,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x1a7)])),_0x4d1e63(0xc,_0x4b403d['INotificationService'])],_0x55ee11);let _0x2b854c=class extends _0x4d1d97{constructor(_0x1ceb5e,_0x29eb7d,_0x1f269b,_0x4ea222,_0x48135a,_0x5d8f5f,_0x42b532,_0xbc2b49,_0x366603,_0x2bbb47){const _0x5f4346=_0x291ba3;super(_0x1ceb5e,_0x29eb7d,_0x1f269b,_0x4ea222,_0x48135a,_0x366603,_0x2bbb47,_0x42b532,_0xbc2b49),_0x24cbc7(this,_0x5f4346(0x469),'offline'),this[_0x5f4346(0x10d)]=_0x5d8f5f;}['appendMutation'](_0x43b301){const _0x15b432=_0x291ba3;return this['_pendingMutations'][_0x15b432(0x44a)](_0x43b301),this[_0x15b432(0x2ae)](),this;}[_0x291ba3(0x359)](_0x201e09){const _0x394b04=_0x291ba3;throw new Error(_0x394b04(0xb7));}['onRemoteAck'](){const _0x3c0204=_0x291ba3;throw new Error(_0x3c0204(0x2f1));}[_0x291ba3(0x82)](){const _0x2b3406=_0x291ba3;throw new Error(_0x2b3406(0x371));}[_0x291ba3(0x11b)](){return this;}[_0x291ba3(0x1d9)](){const _0x39c753=_0x291ba3,{_injector:_0x1639a3,_pendingMutations:_0x3a0c31,_awaitingChangeset:_0x3ae867,unitID:_0x20616e,_handler:_0x19e64a,type:_0x5047b6}=this,_0x4c6db7=_0x1b045c(_0x1639a3,_0x20616e,_0x5047b6,_0x3ae867,_0x3a0c31,_0x19e64a);return _0x4c6db7 instanceof _0x571839?_0x4c6db7[_0x39c753(0x3dd)]():(_0x4c6db7 instanceof _0x3d3aee||_0x4c6db7 instanceof _0x56fd74)&&_0x4c6db7['resend'](),_0x4c6db7;}['resend'](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x2b854c=_0x428496([_0x4d1e63(0x5,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed['Injector'])),_0x4d1e63(0x6,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7['RevisionService'])),_0x4d1e63(0x7,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1[_0x291ba3(0x378)])),_0x4d1e63(0x8,_0x2c7fed['ICommandService']),_0x4d1e63(0x9,_0x2c7fed[_0x291ba3(0x26b)])],_0x2b854c);let _0x3feb1e=class extends _0x4d1d97{constructor(_0x1f6502,_0x2ff155,_0x16d0dd,_0x4807d2,_0x3e971c,_0x2c2900,_0x252e07,_0x5d5d75,_0x57ebb7,_0x5d6363,_0x549340,_0x1b2350,_0xba0d0e,_0x209e24){const _0x55ee3c=_0x291ba3;super(_0x1f6502,_0x2ff155,_0x16d0dd,_0x4807d2,_0x252e07,_0x1b2350,_0xba0d0e,_0x57ebb7,_0x5d6363),_0x24cbc7(this,'status',_0x55ee3c(0x26c)),(this[_0x55ee3c(0x34c)]=_0x3e971c,this[_0x55ee3c(0x3a5)]=_0x2c2900,this[_0x55ee3c(0x10d)]=_0x5d5d75,this[_0x55ee3c(0x139)]=_0x549340,this[_0x55ee3c(0xbd)]=_0x209e24);}[_0x291ba3(0x19a)](_0x5013ee){const _0x167301=_0x291ba3;try{const _0x57f43c=[..._0x5013ee,...this[_0x167301(0x3a5)]],_0x937558=[this[_0x167301(0x2b6)]||this[_0x167301(0x34c)]][_0x167301(0x1d1)](_0x5df8e3=>!!_0x5df8e3);let _0x21cbca,_0x461e7d;if(_0x937558['length']){const _0x2279dd=this['_transformService'][_0x167301(0x126)](_0x57f43c,_0x937558,!0x1);if(!_0x2856d7['isTransformChangesetsSuccess'](_0x2279dd))throw _0x2279dd[_0x167301(0x41d)];_0x21cbca=_0x2279dd['c1Prime'],_0x461e7d=_0x2279dd['c2Prime'];}else _0x21cbca=_0x57f43c,_0x461e7d=[];let _0x3a880d=this[_0x167301(0x194)];_0x21cbca[_0x167301(0xb2)](_0x23f0b7=>{const _0x4db7bd=_0x167301;let _0x7f30d2;if(_0x3a880d['length']){const _0xb3acae=this[_0x4db7bd(0xbd)][_0x4db7bd(0x3b8)](_0x23f0b7,_0x3a880d);if(!_0x2856d7[_0x4db7bd(0x38a)](_0xb3acae))throw _0xb3acae[_0x4db7bd(0x41d)];_0x7f30d2=_0xb3acae[_0x4db7bd(0xff)],_0x3a880d=_0xb3acae['m2Prime'];}else _0x7f30d2=_0x23f0b7;this[_0x4db7bd(0x1d5)](_0x7f30d2);}),this[_0x167301(0x34c)]&&this[_0x167301(0xb8)](),this['_awaitingChangeset']&&_0x461e7d[_0x167301(0xbb)]&&(_0x461e7d[0x0][_0x167301(0x480)]=this[_0x167301(0x316)]());let _0x22d259;if(this[_0x167301(0x2b6)]&&_0x3a880d[_0x167301(0xbb)]!==0x0)_0x22d259=this[_0x167301(0x10d)][_0x167301(0x266)](_0x3d3aee,this['unitID'],this[_0x167301(0x33c)],_0x461e7d[0x0],_0x3a880d,this[_0x167301(0x324)]);else{if(this[_0x167301(0x2b6)]&&_0x3a880d[_0x167301(0xbb)]===0x0)_0x461e7d[0x0][_0x167301(0x480)]=this[_0x167301(0x316)](),_0x22d259=this[_0x167301(0x10d)][_0x167301(0x266)](_0x56fd74,this['unitID'],this[_0x167301(0x33c)],_0x461e7d[0x0],this[_0x167301(0x324)]);else{if(_0x3a880d['length']!==0x0){const _0x29f87c=this[_0x167301(0x10d)][_0x167301(0x266)](_0x571839,this[_0x167301(0x2ea)],this[_0x167301(0x33c)],_0x3a880d,this[_0x167301(0x324)]);_0x29f87c['_schedule'](),_0x22d259=_0x29f87c;}else _0x22d259=this[_0x167301(0x10d)][_0x167301(0x266)](_0x157452,this[_0x167301(0x2ea)],this[_0x167301(0x33c)],this[_0x167301(0x324)]);}}return _0x22d259[_0x167301(0x2ae)](),_0x22d259;}catch(_0x3d7a97){return this[_0x167301(0x139)][_0x167301(0x41d)](_0x167301(0x163),_0x167301(0xdd),_0x3d7a97),this[_0x167301(0x10d)][_0x167301(0x266)](_0x55ee11,this[_0x167301(0x2ea)],this[_0x167301(0x33c)],this[_0x167301(0x2b6)],this[_0x167301(0x194)],this[_0x167301(0x324)],!0x1);}}[_0x291ba3(0x391)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x291ba3(0x427)](_0x226f98){return this['_pendingMutations']['push'](_0x226f98),this;}[_0x291ba3(0x359)](_0x287ddf){const _0x3abda2=_0x291ba3;return this[_0x3abda2(0x3a5)][_0x3abda2(0x44a)](_0x287ddf),this;}[_0x291ba3(0x2fc)](_0x3bdae8){const _0x49cad6=_0x291ba3;if(this['_awaitingChangeset'])return this['_acknowledgedAwaitingChangeset']=this['_awaitingChangeset'],this[_0x49cad6(0x2b6)]=null,this;throw new Error(_0x49cad6(0xf8));}[_0x291ba3(0x82)](_0x5b501d){const _0x2dedef=_0x291ba3;return this['_onConflict'](!!(_0x5b501d!=null&&_0x5b501d[_0x2dedef(0x119)]));}[_0x291ba3(0x11b)](){const _0xd77321=_0x291ba3;return this[_0xd77321(0x10d)][_0xd77321(0x266)](_0x2b854c,this[_0xd77321(0x2ea)],this[_0xd77321(0x33c)],this['_awaitingChangeset'],this[_0xd77321(0x194)],this[_0xd77321(0x324)]);}[_0x291ba3(0x1d9)](){return this;}[_0x291ba3(0x25e)](_0x3661cc){const _0x2b8125=_0x291ba3;return this[_0x2b8125(0x10d)][_0x2b8125(0x266)](_0x55ee11,this['unitID'],this['type'],this[_0x2b8125(0x2b6)],this['_pendingMutations'],this[_0x2b8125(0x324)],_0x3661cc);}};_0x3feb1e=_0x428496([_0x4d1e63(0x7,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x4d1e63(0x8,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7[_0x291ba3(0x363)])),_0x4d1e63(0x9,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1[_0x291ba3(0x378)])),_0x4d1e63(0xa,_0x2c7fed['ILogService']),_0x4d1e63(0xb,_0x2c7fed[_0x291ba3(0x15a)]),_0x4d1e63(0xc,_0x2c7fed[_0x291ba3(0x26b)]),_0x4d1e63(0xd,_0x2856d7[_0x291ba3(0x372)])],_0x3feb1e);function _0x1b045c(_0x816506,_0xe61136,_0x55c6d5,_0x31e232,_0x5a2eb3,_0x26484b){const _0x33f613=_0x291ba3;return _0x31e232&&_0x5a2eb3['length']?_0x816506['createInstance'](_0x3d3aee,_0xe61136,_0x55c6d5,_0x31e232,_0x5a2eb3,_0x26484b):_0x31e232?_0x816506['createInstance'](_0x56fd74,_0xe61136,_0x55c6d5,_0x31e232,_0x26484b):_0x5a2eb3[_0x33f613(0xbb)]?_0x816506['createInstance'](_0x571839,_0xe61136,_0x55c6d5,_0x5a2eb3,_0x26484b):_0x816506['createInstance'](_0x157452,_0xe61136,_0x55c6d5,_0x26484b);}var _0x556dd5=Object[_0x291ba3(0x3e4)],_0x10b9c3=Object[_0x291ba3(0x373)],_0x4282cb=(_0x569a10,_0x33fa98,_0x4bd662,_0x4e441e)=>{for(var _0x1c8dd4=_0x4e441e>0x1?void 0x0:_0x4e441e?_0x10b9c3(_0x33fa98,_0x4bd662):_0x33fa98,_0x12dfb7=_0x569a10['length']-0x1,_0x29eb00;_0x12dfb7>=0x0;_0x12dfb7--)(_0x29eb00=_0x569a10[_0x12dfb7])&&(_0x1c8dd4=(_0x4e441e?_0x29eb00(_0x33fa98,_0x4bd662,_0x1c8dd4):_0x29eb00(_0x1c8dd4))||_0x1c8dd4);return _0x4e441e&&_0x1c8dd4&&_0x556dd5(_0x33fa98,_0x4bd662,_0x1c8dd4),_0x1c8dd4;},_0x285850=(_0x3b44c0,_0x57dd9c)=>(_0x2059a7,_0x5bb9a2)=>_0x57dd9c(_0x2059a7,_0x5bb9a2,_0x3b44c0);_0x594fe1[_0x291ba3(0x3cf)]=class extends _0x2c7fed[_0x291ba3(0x2d5)]{constructor(_0x479d22,_0x2bfbe7,_0x7d6b99,_0x715356,_0x40b17,_0x701c9b,_0x515192,_0x5b5dbe,_0x4b1c96,_0x45300c,_0x1397e8,_0x170d9f,_0x2dd3cd){const _0x2e1180=_0x291ba3;super(),_0x24cbc7(this,'_state$',new _0x1fc547[(_0x2e1180(0x467))](null)),_0x24cbc7(this,_0x2e1180(0x3d2),this[_0x2e1180(0x159)][_0x2e1180(0x442)]()),_0x24cbc7(this,_0x2e1180(0x32e)),_0x24cbc7(this,_0x2e1180(0x40b),!0x1),_0x24cbc7(this,_0x2e1180(0x195),''),_0x24cbc7(this,_0x2e1180(0x479),0x0),_0x24cbc7(this,_0x2e1180(0x338),this['state$']['pipe'](_0x1fc547['map'](_0x3b96f5=>_0x3b96f5?_0x3b96f5[_0x2e1180(0x469)]:_0x5b6195[_0x2e1180(0x2cf)]),_0x1fc547['shareReplay'](0x1))),_0x24cbc7(this,_0x2e1180(0x35f),!0x1),_0x24cbc7(this,_0x2e1180(0x453),[]),(this[_0x2e1180(0x2ea)]=_0x479d22,this['session']=_0x2bfbe7,this[_0x2e1180(0x15e)]=_0x7d6b99,this[_0x2e1180(0x10d)]=_0x715356,this[_0x2e1180(0x106)]=_0x40b17,this[_0x2e1180(0x2de)]=_0x701c9b,this[_0x2e1180(0x277)]=_0x515192,this['_revisionService']=_0x5b5dbe,this[_0x2e1180(0x139)]=_0x4b1c96,this[_0x2e1180(0xc0)]=_0x45300c,this[_0x2e1180(0x17b)]=_0x1397e8,this[_0x2e1180(0x2d4)]=_0x170d9f,this[_0x2e1180(0x212)]=_0x2dd3cd);}get['state'](){const _0x4bd5de=_0x291ba3;return this[_0x4bd5de(0x32e)];}async[_0x291ba3(0x1d3)](){const _0x549e98=_0x291ba3;if(this['state'])throw new Error(_0x549e98(0x100));await this[_0x549e98(0x366)]();}[_0x291ba3(0x1f5)](){const _0x46d10d=_0x291ba3;return this[_0x46d10d(0x40b)]=!0x0,_0x2c7fed[_0x46d10d(0x337)](()=>{const _0x442c66=_0x46d10d;this[_0x442c66(0x40b)]=!0x1,this[_0x442c66(0xc8)]();});}[_0x291ba3(0x283)](_0x3f2211){const _0x138ce2=_0x291ba3;this[_0x138ce2(0x32e)]=_0x3f2211,this['_state$'][_0x138ce2(0x2ce)](_0x3f2211);}async[_0x291ba3(0x366)](){const _0x328d8d=_0x291ba3;var _0x51bda8;this[_0x328d8d(0x283)](await this[_0x328d8d(0x1a3)]()),this[_0x328d8d(0x212)]&&((_0x51bda8=this[_0x328d8d(0x212)])==null||_0x51bda8[_0x328d8d(0xcc)](this[_0x328d8d(0x2ea)]),this[_0x328d8d(0x351)](this[_0x328d8d(0x212)][_0x328d8d(0x45b)](this['unitID'])['subscribe'](_0x6a7571=>{const _0x588de3=_0x328d8d;this[_0x588de3(0x139)]['debug'](_0x588de3(0xfe),_0x588de3(0x290),_0x6a7571),_0x6a7571===_0x16b602[_0x588de3(0x3b3)]?(this[_0x588de3(0x17b)][_0x588de3(0x116)]({'content':this[_0x588de3(0x277)]['t'](_0x588de3(0x267)),'type':_0x4d689c[_0x588de3(0x3be)][_0x588de3(0x13d)]}),this[_0x588de3(0x2d4)][_0x588de3(0x1e6)](new _0x244249[(_0x588de3(0x2e9))](this['unitID'])['id'],!0x1)):this[_0x588de3(0x2d4)][_0x588de3(0x1e6)](new _0x244249[(_0x588de3(0x2e9))](this['unitID'])['id'],!0x0);})));let _0x29071a=!0x1;return this[_0x328d8d(0x351)](this['session'][_0x328d8d(0x1a8)][_0x328d8d(0x3f2)](_0x159564=>{const _0x53a627=_0x328d8d;_0x159564===_0x11a57f[_0x53a627(0x3d0)]?this[_0x53a627(0x1ef)](_0x29071a):_0x159564===_0x11a57f[_0x53a627(0x2cf)]&&(_0x29071a=!0x0,this[_0x53a627(0x3fd)]());})),this['disposeWithMe'](this[_0x328d8d(0x4a3)][_0x328d8d(0x272)][_0x328d8d(0x3f2)](_0x412c35=>{const _0x33f6b9=_0x328d8d;try{switch(_0x412c35[_0x33f6b9(0x243)]){case _0x2856d7[_0x33f6b9(0x93)][_0x33f6b9(0x361)]:{this['_onRemoteChangeset'](_0x2856d7[_0x33f6b9(0x172)](_0x412c35[_0x33f6b9(0x253)]));break;}case _0x2856d7[_0x33f6b9(0x93)]['CHANGESET_ACK']:{this[_0x33f6b9(0x34e)](_0x412c35[_0x33f6b9(0x253)]);break;}case _0x2856d7[_0x33f6b9(0x93)]['CHANGESET_REJ']:{this[_0x33f6b9(0x3b2)]();break;}case _0x2856d7['CollaborationEvent'][_0x33f6b9(0x322)]:{this[_0x33f6b9(0x1d7)](_0x412c35[_0x33f6b9(0x253)][_0x33f6b9(0x2ac)][_0x33f6b9(0x21b)](_0xf69f90=>_0x2856d7[_0x33f6b9(0x172)](_0xf69f90)));break;}case _0x2856d7[_0x33f6b9(0x93)]['PERMISSION_REJ']:this[_0x33f6b9(0x3b2)]({'isPermissionRej':!0x0});}}catch(_0x52c441){throw console[_0x33f6b9(0x41d)](_0x33f6b9(0x11e),_0x52c441),_0x52c441;}})),this[_0x328d8d(0x32e)];}[_0x291ba3(0x362)](){const _0x20a6a9=_0x291ba3;this[_0x20a6a9(0x35f)]=!0x1;}[_0x291ba3(0x397)](){const _0x588bdd=_0x291ba3;if(this[_0x588bdd(0x35f)])throw new Error(_0x588bdd(0x43f));this[_0x588bdd(0x35f)]=!0x0;}[_0x291ba3(0x32b)](_0x44e0d6){const _0x40dcec=_0x291ba3;this[_0x40dcec(0x397)](),this[_0x40dcec(0x283)](this['_state'][_0x40dcec(0x427)](_0x44e0d6)),this[_0x40dcec(0x362)]();}['_onRemoteChangeset'](_0x2def24){const _0x7dbf3c=_0x291ba3;if(!(_0x2def24[_0x7dbf3c(0x157)]<=this['_revisionService']['getCurrentRevOfUnit'](this[_0x7dbf3c(0x2ea)]))){if(this[_0x7dbf3c(0x40b)]){this[_0x7dbf3c(0x453)]['push'](_0x2def24);return;}this[_0x7dbf3c(0x294)](_0x2def24);}}[_0x291ba3(0xc8)](){const _0x8c4cd0=_0x291ba3;this[_0x8c4cd0(0x453)][_0x8c4cd0(0xb2)](_0x4ac537=>this[_0x8c4cd0(0x294)](_0x4ac537)),this[_0x8c4cd0(0x453)]=[];}[_0x291ba3(0x294)](_0x3c4520){const _0x1807dd=_0x291ba3,_0x5a312e=this[_0x1807dd(0x2de)][_0x1807dd(0x2dd)][_0x1807dd(0x1c5)](this[_0x1807dd(0x2de)][_0x1807dd(0x2dd)][_0x1807dd(0x2da)]()[_0x1807dd(0x11a)])(_0x3c4520['mutations'],null)||_0x3c4520['mutations'],_0x2a5d86={..._0x3c4520,'mutations':_0x5a312e};this[_0x1807dd(0x397)](),this[_0x1807dd(0x283)](this[_0x1807dd(0x32e)][_0x1807dd(0x359)](_0x2a5d86)),this[_0x1807dd(0x362)]();}[_0x291ba3(0x34e)](_0x4a40a4){const _0x4e79cf=_0x291ba3;this[_0x4e79cf(0x397)](),this[_0x4e79cf(0x283)](this[_0x4e79cf(0x32e)]['onRemoteAck'](_0x4a40a4)),this[_0x4e79cf(0x362)]();}[_0x291ba3(0x3b2)](_0x162a38){const _0x83ce98=_0x291ba3;this[_0x83ce98(0x397)](),this[_0x83ce98(0x283)](this[_0x83ce98(0x32e)][_0x83ce98(0x82)](_0x162a38)),this['_unlockTransition']();}[_0x291ba3(0x1d7)](_0x4386ce){const _0xf00c0e=_0x291ba3;if(!(this[_0xf00c0e(0x32e)]instanceof _0x3feb1e))throw new TypeError(_0xf00c0e(0x344));const _0x4822ac=_0x4386ce[_0xf00c0e(0x21b)](_0x233f85=>{const _0xb5fb32=_0xf00c0e,_0xb3f245=this['_compressMutationService']['interceptor'][_0xb5fb32(0x1c5)](this[_0xb5fb32(0x2de)]['interceptor'][_0xb5fb32(0x2da)]()[_0xb5fb32(0x11a)])(_0x233f85[_0xb5fb32(0x1a9)],null)||_0x233f85[_0xb5fb32(0x1a9)];return{..._0x233f85,'mutations':_0xb3f245};});this[_0xf00c0e(0x397)](),this['_updateState'](this[_0xf00c0e(0x32e)][_0xf00c0e(0x19a)](_0x4822ac)),this[_0xf00c0e(0x362)]();}[_0x291ba3(0x3fd)](){const _0x3f1c46=_0x291ba3;this[_0x3f1c46(0x397)](),this['_updateState'](this['_state'][_0x3f1c46(0x11b)]()),this[_0x3f1c46(0x362)]();}[_0x291ba3(0x1ef)](_0x8734b4=!0x1){const _0x38b0cc=_0x291ba3;this['_lockTransition'](),this[_0x38b0cc(0x283)](this[_0x38b0cc(0x32e)][_0x38b0cc(0x1d9)]()),this[_0x38b0cc(0x362)]();const _0x45c755=this[_0x38b0cc(0x32e)];_0x8734b4&&_0x45c755 instanceof _0x157452&&(this[_0x38b0cc(0x397)](),this[_0x38b0cc(0x283)](_0x45c755[_0x38b0cc(0x228)]()),this[_0x38b0cc(0x362)]());}async['_createInitialState'](){return new Promise(_0x16dba5=>{const _0x39727b=_0x2d25;this['session'][_0x39727b(0x1a8)][_0x39727b(0x256)](_0x1fc547[_0x39727b(0x482)](0x1))[_0x39727b(0x3f2)](async _0x5c02e4=>{const _0x476d45=_0x39727b;_0x16dba5(await this[_0x476d45(0x140)](_0x5c02e4===_0x11a57f['ONLINE']));});});}[_0x291ba3(0x2f8)](){const _0x2c1f59=_0x291ba3,_0x19a772=this[_0x2c1f59(0x2ea)];return{'onStateChange':(_0x225600,_0x43f1a5)=>{const _0x5261b5=_0x2c1f59;if(_0x225600!==this[_0x5261b5(0x32e)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x225600[_0x5261b5(0x469)]+_0x5261b5(0x47c)+_0x43f1a5[_0x5261b5(0x469)]+_0x5261b5(0x98)+this[_0x5261b5(0x32e)][_0x5261b5(0x469)]);this[_0x5261b5(0x283)](_0x43f1a5);},'onSendChangeset':_0x26d436=>{const _0xc06380=_0x2c1f59;_0x26d436[_0xc06380(0x2b1)]||(_0x26d436[_0xc06380(0x2b1)]=this['_changesetSessionId'],_0x26d436[_0xc06380(0x41f)]=++this[_0xc06380(0x479)]);const _0x888c27={'eventID':_0x2856d7[_0xc06380(0x93)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x26d436['unitID'],'unitType':this[_0xc06380(0x15e)],'changeset':_0x26d436,'memberID':this[_0xc06380(0x4a3)][_0xc06380(0x34f)]()}};this[_0xc06380(0x4a3)]['send'](_0x888c27,this[_0xc06380(0x2ea)]);},'onMissingChangesets':({from:_0x246e64,to:_0x1b3de8})=>{const _0x910e47=_0x2c1f59;this['_logService'][_0x910e47(0x1e9)](_0x910e47(0xfe),_0x910e47(0x234)+_0x246e64+_0x910e47(0x27c)+_0x1b3de8);const _0xdd9f51={'eventID':_0x2856d7[_0x910e47(0x93)][_0x910e47(0x2b4)],'data':{'unitID':_0x19a772,'unitType':this[_0x910e47(0x15e)],'from':_0x246e64,'to':_0x1b3de8}};this[_0x910e47(0x4a3)][_0x910e47(0x319)](_0xdd9f51,this[_0x910e47(0x2ea)]);}};}async[_0x291ba3(0x140)](_0x5303a8){const _0x2fd8b8=_0x291ba3;var _0x44b519,_0x26b5a3;const _0x30514b=await this[_0x2fd8b8(0x106)][_0x2fd8b8(0x158)](this[_0x2fd8b8(0x2ea)]),_0xe755f4=(_0x44b519=_0x30514b==null?void 0x0:_0x30514b['mutations'])!=null?_0x44b519:[],_0xf753c2=(_0x26b5a3=_0x30514b==null?void 0x0:_0x30514b['awaitingChangeset'])!=null?_0x26b5a3:null,_0x2359cc=!!(_0xf753c2!=null&&_0xf753c2['sid'])&&!!(_0xf753c2!=null&&_0xf753c2[_0x2fd8b8(0x41f)]);this[_0x2fd8b8(0x195)]=_0x2359cc?_0xf753c2[_0x2fd8b8(0x2b1)]:_0x2e2226(),this[_0x2fd8b8(0x479)]=_0x2359cc?_0xf753c2[_0x2fd8b8(0x41f)]:0x0;const _0xaf0869=this[_0x2fd8b8(0x2ea)];try{this['_replayCachedMutations'](_0xf753c2,_0xe755f4);}catch(_0x49475c){this[_0x2fd8b8(0x139)][_0x2fd8b8(0x41d)](_0x49475c);}const _0x519b2e=this[_0x2fd8b8(0x2f8)]();if(_0x5303a8){const _0xf457b6=_0x1b045c(this['_injector'],_0xaf0869,this['_type'],_0xf753c2,_0xe755f4,_0x519b2e);return _0xf457b6 instanceof _0x571839?_0xf457b6[_0x2fd8b8(0x3dd)]():(_0xf457b6 instanceof _0x3d3aee||_0xf457b6 instanceof _0x56fd74)&&_0xf457b6['resend'](),_0xf457b6;}return this[_0x2fd8b8(0x10d)]['createInstance'](_0x2b854c,_0xaf0869,this[_0x2fd8b8(0x15e)],_0xf753c2,_0xe755f4,_0x519b2e);}[_0x291ba3(0x156)](_0x3791a9,_0x508afa){const _0x1fe137=_0x291ba3;var _0x5dc07e,_0x5c246a;const _0x5afab8=this[_0x1fe137(0x2de)]['interceptor']['fetchThroughInterceptors'](this[_0x1fe137(0x2de)][_0x1fe137(0x2dd)][_0x1fe137(0x2da)]()[_0x1fe137(0x11a)]);(_0x5dc07e=_0x5afab8((_0x3791a9==null?void 0x0:_0x3791a9[_0x1fe137(0x1a9)])||[],null))==null||_0x5dc07e[_0x1fe137(0xb2)](_0x2128fd=>this[_0x1fe137(0xc0)][_0x1fe137(0x341)](_0x2128fd['id'],_0x2128fd[_0x1fe137(0x184)])),(_0x5c246a=_0x5afab8(_0x508afa||[],null))==null||_0x5c246a['forEach'](_0x5caacf=>this[_0x1fe137(0xc0)]['executeCommand'](_0x5caacf['id'],_0x5caacf['params']));}},_0x594fe1[_0x291ba3(0x3cf)]=_0x4282cb([_0x285850(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x285850(0x4,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1[_0x291ba3(0x378)])),_0x285850(0x5,_0x2c7fed['Inject'](_0x2856d7['CompressMutationService'])),_0x285850(0x6,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x1a7)])),_0x285850(0x7,_0x2c7fed['Inject'](_0x2856d7['RevisionService'])),_0x285850(0x8,_0x2c7fed[_0x291ba3(0x2fd)]),_0x285850(0x9,_0x2c7fed['ICommandService']),_0x285850(0xa,_0x4b403d[_0x291ba3(0x2f2)]),_0x285850(0xb,_0x2c7fed[_0x291ba3(0x44b)]),_0x285850(0xc,_0x2c7fed[_0x291ba3(0x425)](_0x4ba495))],_0x594fe1['CollaborationEntity']),_0x594fe1['DocCollaborationEntity']=class extends _0x594fe1[_0x291ba3(0x3cf)]{constructor(_0xad519e,_0x3b5b5c,_0x5e1577,_0x271635,_0x163848,_0x34ea38,_0x34ef15,_0x440302,_0x4c9918,_0x247443,_0x13e485,_0x2082a7,_0x1c4c07,_0x7f9f64,_0x360e7d,_0x46810a,_0x51876b){const _0x582641=_0x291ba3;super(_0xad519e,_0x5e1577,_0x3b5b5c,_0x271635,_0x163848,_0x34ea38,_0x34ef15,_0x440302,_0x1c4c07,_0x7f9f64,_0x360e7d,_0x46810a,_0x51876b),this[_0x582641(0x2ea)]=_0xad519e,this[_0x582641(0x33c)]=_0x3b5b5c,this[_0x582641(0x3b5)]=_0x4c9918,this[_0x582641(0x2be)]=_0x247443,this[_0x582641(0x89)]=_0x13e485,this[_0x582641(0x10c)]=_0x2082a7;}['_createHandler'](){const _0x52be6b=_0x291ba3,_0x9cb5e4=super[_0x52be6b(0x2f8)]();return _0x9cb5e4['onTransformIME']=_0x5eac25=>this[_0x52be6b(0x2be)][_0x52be6b(0x315)](_0x5eac25),_0x9cb5e4['onTransformSelections']=_0x2bd05a=>this[_0x52be6b(0x89)][_0x52be6b(0xc3)](_0x2bd05a),_0x9cb5e4[_0x52be6b(0xdb)]=_0xcde52a=>this[_0x52be6b(0x10c)][_0x52be6b(0x122)](_0xcde52a),_0x9cb5e4[_0x52be6b(0x3d5)]=_0x31242d=>this[_0x52be6b(0x2be)][_0x52be6b(0x326)](_0x31242d),_0x9cb5e4;}async[_0x291ba3(0x366)](){const _0x1128f2=_0x291ba3,_0x24e597=await super[_0x1128f2(0x366)]();return this[_0x1128f2(0x3b5)][_0x1128f2(0x2a4)]['pipe'](_0x1fc547[_0x1128f2(0x211)](this[_0x1128f2(0xf7)]))['subscribe'](_0x314525=>{const _0x181d0e=_0x1128f2;if(_0x314525==null)return;const {unitId:_0x1a9b4e,redoState:_0x2cc9f1,commandId:_0x3ab0ec}=_0x314525;if(_0x1a9b4e!==this['unitID'])return;const _0x3b192d={'id':_0x3ab0ec,'type':_0x2c7fed['CommandType']['MUTATION'],'params':{'unitId':_0x1a9b4e,'actions':_0x2cc9f1[_0x181d0e(0x200)],'textRanges':null}};this[_0x181d0e(0x32b)](_0x3b192d);}),_0x24e597;}},_0x594fe1[_0x291ba3(0x3e2)]=_0x4282cb([_0x285850(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x285850(0x4,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1['LocalCacheService'])),_0x285850(0x5,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7['CompressMutationService'])),_0x285850(0x6,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x1a7)])),_0x285850(0x7,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7['RevisionService'])),_0x285850(0x8,_0x2c7fed[_0x291ba3(0x16b)](_0x21cef1['DocStateChangeManagerService'])),_0x285850(0x9,_0x2c7fed[_0x291ba3(0x16b)](_0x5bc594)),_0x285850(0xa,_0x2c7fed[_0x291ba3(0x16b)](_0x4bc5bd)),_0x285850(0xb,_0x2c7fed[_0x291ba3(0x16b)](_0x2f34a3)),_0x285850(0xc,_0x2c7fed[_0x291ba3(0x2fd)]),_0x285850(0xd,_0x2c7fed['ICommandService']),_0x285850(0xe,_0x4b403d[_0x291ba3(0x2f2)]),_0x285850(0xf,_0x2c7fed[_0x291ba3(0x44b)]),_0x285850(0x10,_0x2c7fed['Optional'](_0x4ba495))],_0x594fe1['DocCollaborationEntity']),_0x594fe1['SheetCollaborationEntity']=class extends _0x594fe1[_0x291ba3(0x3cf)]{constructor(_0x3c689e,_0x362635,_0x5a02d3,_0x357f34,_0x132311,_0x37ce4e,_0x35eb22,_0xc428a7,_0x3a4e39,_0xced3ce,_0x53d195,_0x4f56e5,_0x15812c,_0x1b5e40){const _0x1a8d8f=_0x291ba3;super(_0x3c689e,_0x5a02d3,_0x362635,_0x357f34,_0x132311,_0x37ce4e,_0x35eb22,_0xc428a7,_0xced3ce,_0x53d195,_0x4f56e5,_0x15812c,_0x1b5e40),this['unitID']=_0x3c689e,this[_0x1a8d8f(0x33c)]=_0x362635,this['_sheetTransformSelectionsService']=_0x3a4e39;}[_0x291ba3(0x2f8)](){const _0x1ccee8=_0x291ba3,_0x3992a4=super[_0x1ccee8(0x2f8)]();return _0x3992a4[_0x1ccee8(0x187)]=_0x1e26e8=>this[_0x1ccee8(0x1c1)][_0x1ccee8(0xc3)](_0x1e26e8),_0x3992a4;}async['_init'](){const _0x1070da=_0x291ba3,_0x3845bc=await super['_init']();return this[_0x1070da(0x351)](this[_0x1070da(0xc0)][_0x1070da(0x313)]((_0x5b6686,_0x29ec6f)=>{const _0x563517=_0x1070da;if(_0x5b6686['type']!==_0x2c7fed[_0x563517(0x32d)]['MUTATION']||_0x29ec6f!=null&&_0x29ec6f[_0x563517(0x220)]||_0x29ec6f!=null&&_0x29ec6f[_0x563517(0x3d9)])return;const _0x3b4a4f=_0x5b6686[_0x563517(0x184)];if((_0x3b4a4f==null?void 0x0:_0x3b4a4f[_0x563517(0x137)])!==this[_0x563517(0x2ea)])return;const _0x17f530=_0x5b6686,_0x205acb=this[_0x563517(0x2de)][_0x563517(0x2dd)][_0x563517(0x1c5)](this[_0x563517(0x2de)]['interceptor']['getInterceptPoints']()[_0x563517(0x382)])([_0x17f530],null)||[_0x17f530];this[_0x563517(0x32b)](_0x205acb[0x0]);})),_0x3845bc;}},_0x594fe1[_0x291ba3(0x385)]=_0x4282cb([_0x285850(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x285850(0x4,_0x2c7fed['Inject'](_0x594fe1[_0x291ba3(0x378)])),_0x285850(0x5,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7['CompressMutationService'])),_0x285850(0x6,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x1a7)])),_0x285850(0x7,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7[_0x291ba3(0x363)])),_0x285850(0x8,_0x2c7fed['Inject'](_0x1b1a48)),_0x285850(0x9,_0x2c7fed[_0x291ba3(0x2fd)]),_0x285850(0xa,_0x2c7fed[_0x291ba3(0x15a)]),_0x285850(0xb,_0x4b403d['IMessageService']),_0x285850(0xc,_0x2c7fed[_0x291ba3(0x44b)]),_0x285850(0xd,_0x2c7fed[_0x291ba3(0x425)](_0x4ba495))],_0x594fe1[_0x291ba3(0x385)]);var _0x32e6da=Object[_0x291ba3(0x3e4)],_0x11b293=Object[_0x291ba3(0x373)],_0x55b4f7=(_0x422a27,_0x3c29e8,_0x31bdc2,_0x4c3e59)=>{const _0x3e863b=_0x291ba3;for(var _0x3b904b=_0x4c3e59>0x1?void 0x0:_0x4c3e59?_0x11b293(_0x3c29e8,_0x31bdc2):_0x3c29e8,_0x1bf0b7=_0x422a27[_0x3e863b(0xbb)]-0x1,_0x4778b3;_0x1bf0b7>=0x0;_0x1bf0b7--)(_0x4778b3=_0x422a27[_0x1bf0b7])&&(_0x3b904b=(_0x4c3e59?_0x4778b3(_0x3c29e8,_0x31bdc2,_0x3b904b):_0x4778b3(_0x3b904b))||_0x3b904b);return _0x4c3e59&&_0x3b904b&&_0x32e6da(_0x3c29e8,_0x31bdc2,_0x3b904b),_0x3b904b;},_0x4e156a=(_0x4d3fbe,_0x24d879)=>(_0x5b1c2c,_0x23a798)=>_0x24d879(_0x5b1c2c,_0x23a798,_0x4d3fbe);_0x594fe1['CollaborationController']=class extends _0x2c7fed['RxDisposable']{constructor(_0x57d1cc,_0x3c36d2,_0x202510){const _0x3e1eb2=_0x291ba3;super(),_0x24cbc7(this,_0x3e1eb2(0x3a7),new Map()),_0x24cbc7(this,_0x3e1eb2(0xa3),new _0x1fc547[(_0x3e1eb2(0x165))]()),(this[_0x3e1eb2(0x10d)]=_0x57d1cc,this['_collabSessionService']=_0x3c36d2,this[_0x3e1eb2(0x79)]=_0x202510,this['_init']());}['dispose'](){const _0x313b91=_0x291ba3;super[_0x313b91(0x35e)](),this[_0x313b91(0x3a7)]['forEach'](_0x4241f1=>_0x4241f1['dispose']()),this[_0x313b91(0x3a7)]['clear']();}['getCollabEntity'](_0x222beb){const _0x56d7f6=_0x291ba3;var _0x26106f;return(_0x26106f=this[_0x56d7f6(0x3a7)][_0x56d7f6(0x400)](_0x222beb))!=null?_0x26106f:null;}[_0x291ba3(0x17f)](_0x46db4e){const _0x319b5f=_0x291ba3,_0xa0c71d=this[_0x319b5f(0x20d)](_0x46db4e);return _0xa0c71d?_0x1fc547['of'](_0xa0c71d):this[_0x319b5f(0xa3)]['pipe'](_0x2eca2e[_0x319b5f(0x1d1)](_0x53fcbc=>_0x53fcbc[_0x319b5f(0x2ea)]===_0x46db4e));}[_0x291ba3(0x366)](){const _0x358e28=_0x291ba3;this[_0x358e28(0x79)][_0x358e28(0x112)](_0x2c7fed[_0x358e28(0xcb)]['UNIVER_SHEET'])[_0x358e28(0x256)](_0x1fc547[_0x358e28(0x211)](this[_0x358e28(0xf7)]),_0x2eca2e[_0x358e28(0x477)](0x10))[_0x358e28(0x3f2)](async _0x3ae660=>{const _0x2a90a6=_0x358e28,_0x5983af=_0x3ae660[_0x2a90a6(0x11d)](),_0x3ad4cb=await this[_0x2a90a6(0x3e1)](_0x5983af,_0x4cd70d['UNIVER_SHEET']);this[_0x2a90a6(0x3a7)]['set'](_0x5983af,_0x3ad4cb);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2c7fed['UniverInstanceType'][_0x358e28(0x130)])['pipe'](_0x1fc547[_0x358e28(0x211)](this[_0x358e28(0xf7)]),_0x2eca2e[_0x358e28(0x477)](0x10))['pipe'](_0x2eca2e['filter'](_0x10108a=>!_0x10108a[_0x358e28(0x11d)]()['startsWith']('__')))[_0x358e28(0x3f2)](async _0x5f3b02=>{const _0x4e7443=_0x358e28,_0x4e7e0b=_0x5f3b02[_0x4e7443(0x11d)](),_0x55fd25=await this['_startCollaboration'](_0x4e7e0b,_0x4cd70d['UNIVER_DOC']);this[_0x4e7443(0x3a7)][_0x4e7443(0x250)](_0x4e7e0b,_0x55fd25);}),_0x1fc547[_0x358e28(0x94)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x2c7fed['UniverInstanceType'][_0x358e28(0x2aa)]),this['_univerInstanceService'][_0x358e28(0xc6)](_0x2c7fed[_0x358e28(0xcb)][_0x358e28(0x130)]))[_0x358e28(0x256)](_0x1fc547[_0x358e28(0x211)](this[_0x358e28(0xf7)]))[_0x358e28(0x3f2)](_0x3ada6=>{const _0x4f75e8=_0x358e28,_0x372c68=_0x3ada6['getUnitId'](),_0x246156=this['_entities']['get'](_0x372c68);_0x246156&&(_0x246156[_0x4f75e8(0x35e)](),this[_0x4f75e8(0x3a7)][_0x4f75e8(0x39c)](_0x372c68));});}async[_0x291ba3(0x3e1)](_0x5aff0b,_0x28eeff){const _0x2413da=_0x291ba3,_0x50bd03=await this[_0x2413da(0x374)][_0x2413da(0x22d)](_0x5aff0b),_0x40d2a1=this['_injector'][_0x2413da(0x266)](this[_0x2413da(0x447)](_0x28eeff),_0x5aff0b,_0x28eeff,_0x50bd03);return await _0x40d2a1[_0x2413da(0x1d3)](),this['_entityInit$'][_0x2413da(0x2ce)](_0x40d2a1),_0x40d2a1;}[_0x291ba3(0x447)](_0x26957a){const _0x2bd9b7=_0x291ba3;switch(_0x26957a){case _0x4cd70d[_0x2bd9b7(0x130)]:return _0x594fe1[_0x2bd9b7(0x3e2)];case _0x4cd70d[_0x2bd9b7(0x2aa)]:return _0x594fe1[_0x2bd9b7(0x385)];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x26957a);}}},_0x594fe1[_0x291ba3(0x1be)]=_0x55b4f7([_0x4e156a(0x0,_0x2c7fed['Inject'](_0x2c7fed[_0x291ba3(0x4a2)])),_0x4e156a(0x1,_0x2c7fed['Inject'](_0x594fe1[_0x291ba3(0xeb)])),_0x4e156a(0x2,_0x2c7fed[_0x291ba3(0x27a)])],_0x594fe1[_0x291ba3(0x1be)]);const _0x1b14e2=[_0x291ba3(0x471),_0x291ba3(0x301),_0x291ba3(0x147),'red300',_0x291ba3(0x13e),_0x291ba3(0x164)];class _0x45b0e2 extends _0x2c7fed[_0x291ba3(0x2e7)]{constructor(){const _0x35d32b=_0x291ba3;super(...arguments),_0x24cbc7(this,_0x35d32b(0x1ea),new Map()),_0x24cbc7(this,'_colorIndex',0x0);}[_0x291ba3(0x23a)](_0x5e3fab){const _0x56925c=_0x291ba3;if(this[_0x56925c(0x1ea)]['has'](_0x5e3fab))return this[_0x56925c(0x1ea)][_0x56925c(0x400)](_0x5e3fab);const _0xb861b8=_0x1b14e2[this['_colorIndex']];return this[_0x56925c(0x440)]=(this[_0x56925c(0x440)]+0x1)%_0x1b14e2[_0x56925c(0xbb)],this[_0x56925c(0x1ea)][_0x56925c(0x250)](_0x5e3fab,_0xb861b8),_0xb861b8;}}var _0x4d5309=Object[_0x291ba3(0x3e4)],_0x912570=Object[_0x291ba3(0x373)],_0x4da21f=(_0x50c57b,_0x26b836,_0x1ac3c1,_0xc3f8d1)=>{for(var _0x4fdb5b=_0xc3f8d1>0x1?void 0x0:_0xc3f8d1?_0x912570(_0x26b836,_0x1ac3c1):_0x26b836,_0x2176c1=_0x50c57b['length']-0x1,_0x57cf3d;_0x2176c1>=0x0;_0x2176c1--)(_0x57cf3d=_0x50c57b[_0x2176c1])&&(_0x4fdb5b=(_0xc3f8d1?_0x57cf3d(_0x26b836,_0x1ac3c1,_0x4fdb5b):_0x57cf3d(_0x4fdb5b))||_0x4fdb5b);return _0xc3f8d1&&_0x4fdb5b&&_0x4d5309(_0x26b836,_0x1ac3c1,_0x4fdb5b),_0x4fdb5b;},_0x4082bf=(_0x2d8f4b,_0x43a858)=>(_0x27a223,_0x34d061)=>_0x43a858(_0x27a223,_0x34d061,_0x2d8f4b);const _0x540883=0x12c,_0x5d04f6=0x64;let _0x45d401=class extends _0x2c7fed[_0x291ba3(0x2d5)]{constructor(_0x32468a,_0x30d459,_0xdfe3c,_0x487141,_0x13d86d,_0x33f617,_0x41a4c8,_0x53e094,_0x57f906){const _0x3bae90=_0x291ba3;super(),_0x24cbc7(this,_0x3bae90(0x28a),!0x1),_0x24cbc7(this,'_init',!0x1),_0x24cbc7(this,'_cursorInfo$',new _0x1fc547[(_0x3bae90(0x467))](new Map())),_0x24cbc7(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),_0x24cbc7(this,_0x3bae90(0x248),new _0x1fc547[(_0x3bae90(0x467))]([])),_0x24cbc7(this,'roomMembers$',this['_roomMembers$'][_0x3bae90(0x256)](_0x1fc547[_0x3bae90(0x120)](_0x540883))),_0x24cbc7(this,_0x3bae90(0x90),_0x2c7fed[_0x3bae90(0xa7)](_0x443910=>{const _0x2e74c9=_0x3bae90,_0x18057f={'eventID':_0x2856d7['CollaborationEvent'][_0x2e74c9(0x31f)],'data':{'unitID':this[_0x2e74c9(0x2ea)],'memberID':this['_session'][_0x2e74c9(0x34f)](),'selection':_0x5a4515(_0x443910)}};this[_0x2e74c9(0x2b7)][_0x2e74c9(0x319)](_0x18057f,this[_0x2e74c9(0x2ea)]);},_0x5d04f6)),(this[_0x3bae90(0x2ea)]=_0x32468a,this[_0x3bae90(0x2b7)]=_0x30d459,this[_0x3bae90(0x10d)]=_0xdfe3c,this[_0x3bae90(0x356)]=_0x487141,this[_0x3bae90(0x29e)]=_0x13d86d,this[_0x3bae90(0x1c6)]=_0x33f617,this[_0x3bae90(0xbd)]=_0x41a4c8,this[_0x3bae90(0x79)]=_0x53e094,this[_0x3bae90(0xc0)]=_0x57f906);}get[_0x291ba3(0x12f)](){const _0x3a4414=_0x291ba3;return this[_0x3a4414(0xd1)][_0x3a4414(0x1e7)]();}get['roomMembers'](){const _0x4b6d15=_0x291ba3;return this[_0x4b6d15(0x248)][_0x4b6d15(0x1e7)]();}['dispose'](){const _0x2699f0=_0x291ba3;super[_0x2699f0(0x35e)](),this[_0x2699f0(0xd1)]['next'](new Map()),this[_0x2699f0(0xd1)][_0x2699f0(0x420)](),this[_0x2699f0(0x248)]['next']([]),this[_0x2699f0(0x248)][_0x2699f0(0x420)]();}[_0x291ba3(0x1d3)](){const _0x45ed7f=_0x291ba3;this[_0x45ed7f(0x366)]||(this[_0x45ed7f(0x366)]=!0x0,this['_session'][_0x45ed7f(0x1a8)]['pipe'](_0x1fc547[_0x45ed7f(0x211)](this[_0x45ed7f(0xf7)]))[_0x45ed7f(0x3f2)](_0x472fad=>{const _0x4accc8=_0x45ed7f;_0x472fad===_0x11a57f['ONLINE']?this[_0x4accc8(0x1ef)]():this[_0x4accc8(0x3fd)]();}),this['_session'][_0x45ed7f(0x272)][_0x45ed7f(0x256)](_0x1fc547['takeUntil'](this[_0x45ed7f(0xf7)]))[_0x45ed7f(0x3f2)](_0x1e2e14=>{const _0x35f404=_0x45ed7f,_0x14e9bf=_0x1e2e14[_0x35f404(0x243)];_0x14e9bf===_0x2856d7[_0x35f404(0x93)][_0x35f404(0x31f)]&&this[_0x35f404(0x2a3)](_0x1e2e14),_0x14e9bf===_0x2856d7[_0x35f404(0x93)][_0x35f404(0x408)]&&this[_0x35f404(0x19f)](_0x1e2e14);}),this['disposeWithMe'](this[_0x45ed7f(0xc0)][_0x45ed7f(0x313)](_0x3f579d=>{const _0x16475f=_0x45ed7f,_0x1db874=_0x3f579d['params'];_0x1db874!=null&&this['_online']&&_0x3f579d['id']===_0x7ac583[_0x16475f(0x25a)]['id']&&_0x1db874['unitId']===this[_0x16475f(0x2ea)]&&_0x1db874['isEditing']===!0x1&&this[_0x16475f(0x90)](_0x1db874[_0x16475f(0x281)]);})),this[_0x45ed7f(0x1c6)][_0x45ed7f(0x2d3)]['pipe'](_0x1fc547[_0x45ed7f(0x211)](this[_0x45ed7f(0xf7)]))[_0x45ed7f(0x3f2)](_0x41b9ea=>{const _0x110b22=_0x45ed7f;if((_0x41b9ea==null?void 0x0:_0x41b9ea[_0x110b22(0x2ea)])!==this[_0x110b22(0x2ea)])return;const _0x45d5ec={'eventID':_0x2856d7[_0x110b22(0x93)][_0x110b22(0x31f)],'data':_0x41b9ea};this[_0x110b22(0x2a3)](_0x45d5ec);}),this[_0x45ed7f(0x351)](this[_0x45ed7f(0xc0)][_0x45ed7f(0x313)](_0x361007=>{const _0x4a7717=_0x45ed7f;if(_0x361007[_0x4a7717(0x184)]==null)return;const _0x5dcd73=_0x361007['params'];if(_0x361007['id']!==_0x7ac583[_0x4a7717(0x30e)]['id']||_0x5dcd73[_0x4a7717(0x137)]!==this[_0x4a7717(0x2ea)])return;const _0x127dd0={'id':_0x4a7717(0x1bf),'params':_0x5dcd73},_0x12a308=this[_0x4a7717(0x12f)];for(const [_0x1711b0,_0x4503f6]of _0x12a308){const _0x14ec54={'id':_0x4a7717(0x1bf),'params':{'unitId':this[_0x4a7717(0x2ea)],'actions':null,'textRanges':_0x4503f6[_0x4a7717(0x281)]}},_0x11b68e=this[_0x4a7717(0xbd)][_0x4a7717(0x227)](_0x127dd0,_0x14ec54,!0x1);if(_0x2856d7[_0x4a7717(0x72)](_0x11b68e))throw _0x11b68e['error'];_0x12a308['set'](_0x1711b0,{..._0x4503f6,'ranges':_0x11b68e['m2Prime'][_0x4a7717(0x184)][_0x4a7717(0x307)]});}queueMicrotask(()=>{const _0x3f14e1=_0x4a7717;this[_0x3f14e1(0xd1)]['next'](_0x12a308);});})));}['_onCursorUpdate'](_0x83cc14){const _0x6d3e16=_0x291ba3;var _0x52266f,_0x3cbdc4;const {memberID:_0x3596e0,selection:_0x5886b8}=_0x83cc14[_0x6d3e16(0x253)],_0x5f24bf=_0x3a9cc2(_0x5886b8),_0x178a04=(_0x3cbdc4=(_0x52266f=this[_0x6d3e16(0x29e)][_0x6d3e16(0x465)](this[_0x6d3e16(0x2ea)],_0x3596e0))==null?void 0x0:_0x52266f[_0x6d3e16(0x2a6)])!=null?_0x3cbdc4:_0x6d3e16(0x2fe),_0x7a675c={'color':this[_0x6d3e16(0x356)][_0x6d3e16(0x23a)](_0x3596e0),'name':_0x178a04,'ranges':_0x5f24bf},_0x4fbd27=this[_0x6d3e16(0x12f)];_0x4fbd27[_0x6d3e16(0x250)](_0x3596e0,_0x7a675c),this[_0x6d3e16(0xd1)][_0x6d3e16(0x2ce)](_0x4fbd27);}['_onCursorDelete'](_0x4e47cd){const _0x581f98=_0x291ba3,{memberID:_0x5bc1c3}=_0x4e47cd[_0x581f98(0x253)],_0x219a25=this[_0x581f98(0x12f)];_0x219a25[_0x581f98(0x39c)](_0x5bc1c3),this[_0x581f98(0xd1)][_0x581f98(0x2ce)](_0x219a25);}[_0x291ba3(0x1ef)](){const _0x2f6ce8=_0x291ba3;var _0x25b948;if(this[_0x2f6ce8(0x28a)]=!0x0,((_0x25b948=this['_univerInstanceService'][_0x2f6ce8(0xa6)]())==null?void 0x0:_0x25b948[_0x2f6ce8(0x11d)]())!==this[_0x2f6ce8(0x2ea)])return;const _0x392a32=this[_0x2f6ce8(0x10d)][_0x2f6ce8(0x400)](_0x7ac583[_0x2f6ce8(0x35d)])[_0x2f6ce8(0x334)]();Array[_0x2f6ce8(0x358)](_0x392a32)&&_0x392a32[_0x2f6ce8(0xbb)]>0x0&&this[_0x2f6ce8(0x90)](_0x392a32);}[_0x291ba3(0x3fd)](){const _0x3fb1f8=_0x291ba3;this[_0x3fb1f8(0x28a)]=!0x1;}};_0x45d401=_0x4da21f([_0x4082bf(0x2,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x4082bf(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x45b0e2)),_0x4082bf(0x4,_0x2c7fed['Inject'](_0x4d411d)),_0x4082bf(0x5,_0x2c7fed['Inject'](_0x2f34a3)),_0x4082bf(0x6,_0x2856d7[_0x291ba3(0x372)]),_0x4082bf(0x7,_0x2c7fed[_0x291ba3(0x27a)]),_0x4082bf(0x8,_0x2c7fed[_0x291ba3(0x15a)])],_0x45d401);var _0x2f30f7=Object[_0x291ba3(0x3e4)],_0x1de566=Object['getOwnPropertyDescriptor'],_0x3c30d3=(_0x5aeddc,_0x262de5,_0x173c16,_0x1ecfd5)=>{for(var _0x524f76=_0x1ecfd5>0x1?void 0x0:_0x1ecfd5?_0x1de566(_0x262de5,_0x173c16):_0x262de5,_0x1d0b63=_0x5aeddc['length']-0x1,_0x4defe3;_0x1d0b63>=0x0;_0x1d0b63--)(_0x4defe3=_0x5aeddc[_0x1d0b63])&&(_0x524f76=(_0x1ecfd5?_0x4defe3(_0x262de5,_0x173c16,_0x524f76):_0x4defe3(_0x524f76))||_0x524f76);return _0x1ecfd5&&_0x524f76&&_0x2f30f7(_0x262de5,_0x173c16,_0x524f76),_0x524f76;},_0x5a668f=(_0x12f690,_0x529a7d)=>(_0x38913b,_0x37d4e6)=>_0x529a7d(_0x38913b,_0x37d4e6,_0x12f690);const _0x3f4ae5=0x12c,_0x5aa6a7=0x64,_0x28d91a=()=>{let _0xe8c96b=[],_0x1714cd=!0x1;return _0x365f74=>{const _0xf8e15c=_0x2d25;_0xe8c96b[_0xf8e15c(0x44a)](_0x365f74),_0x1714cd||(_0x1714cd=!0x0,setTimeout(()=>{_0xe8c96b['forEach'](_0x319f30=>_0x319f30()),_0xe8c96b=[],_0x1714cd=!0x1;}));};};let _0xba4728=class extends _0x2c7fed[_0x291ba3(0x2d5)]{constructor(_0x353b2d,_0x3bd780,_0x41cd2c,_0x503b2a,_0x2e1c9f,_0x5eeaf2,_0x5388b4,_0x51122d){const _0x2287da=_0x291ba3;super(),_0x24cbc7(this,_0x2287da(0x28a),!0x1),_0x24cbc7(this,_0x2287da(0x366),!0x1),_0x24cbc7(this,_0x2287da(0xd1),new _0x1fc547['BehaviorSubject'](new Map())),_0x24cbc7(this,_0x2287da(0x431),this[_0x2287da(0xd1)]['asObservable']()),_0x24cbc7(this,_0x2287da(0x248),new _0x1fc547[(_0x2287da(0x467))]([])),_0x24cbc7(this,_0x2287da(0x3ac),this[_0x2287da(0x248)]['pipe'](_0x1fc547['debounceTime'](_0x3f4ae5))),_0x24cbc7(this,'_updateLocalCursor',_0x2c7fed[_0x2287da(0xa7)]((_0x1b92f5,_0x207c66)=>{const _0x1627b7=_0x2287da,_0x247f43={'eventID':_0x2856d7[_0x1627b7(0x93)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x1627b7(0x2b7)]['getMemberID'](),'selection':_0x172d10['serializeRangeWithSheet'](_0x1b92f5,_0x207c66[_0x1627b7(0x76)])}};this['_session']['send'](_0x247f43,this['unitID']);},_0x5aa6a7)),(this['unitID']=_0x353b2d,this[_0x2287da(0x2b7)]=_0x3bd780,this['_injector']=_0x41cd2c,this[_0x2287da(0x356)]=_0x503b2a,this['_memberService']=_0x2e1c9f,this['_univerInstanceService']=_0x5eeaf2,this[_0x2287da(0xc0)]=_0x5388b4,this[_0x2287da(0x2e0)]=_0x51122d);}get[_0x291ba3(0x12f)](){const _0x5caca4=_0x291ba3;return this[_0x5caca4(0xd1)]['getValue']();}get[_0x291ba3(0x185)](){const _0x33f764=_0x291ba3;return this[_0x33f764(0x248)][_0x33f764(0x1e7)]();}[_0x291ba3(0x35e)](){const _0x4837b4=_0x291ba3;super[_0x4837b4(0x35e)](),this[_0x4837b4(0xd1)][_0x4837b4(0x2ce)](new Map()),this['_cursorInfo$'][_0x4837b4(0x420)](),this[_0x4837b4(0x248)][_0x4837b4(0x2ce)]([]),this[_0x4837b4(0x248)][_0x4837b4(0x420)]();}[_0x291ba3(0x1d3)](){const _0x440dc4=_0x291ba3;this['_init']||(this[_0x440dc4(0x366)]=!0x0,this[_0x440dc4(0x2b7)][_0x440dc4(0x1a8)][_0x440dc4(0x256)](_0x1fc547[_0x440dc4(0x211)](this[_0x440dc4(0xf7)]))[_0x440dc4(0x3f2)](_0x16cda3=>{const _0x56f58d=_0x440dc4;_0x16cda3===_0x11a57f['ONLINE']?this[_0x56f58d(0x1ef)]():this[_0x56f58d(0x3fd)]();}),this[_0x440dc4(0x2b7)][_0x440dc4(0x272)][_0x440dc4(0x256)](_0x1fc547['takeUntil'](this[_0x440dc4(0xf7)]))[_0x440dc4(0x3f2)](_0x2bbe82=>{const _0x5416f8=_0x440dc4,_0x1f6135=_0x2bbe82[_0x5416f8(0x243)];_0x1f6135===_0x2856d7['CollaborationEvent'][_0x5416f8(0x31f)]&&this[_0x5416f8(0x2a3)](_0x2bbe82),_0x1f6135===_0x2856d7[_0x5416f8(0x93)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x2bbe82);}),this[_0x440dc4(0x4a5)](),this['disposeWithMe'](this[_0x440dc4(0xc0)][_0x440dc4(0x313)](_0x439735=>{const _0x1b1f53=_0x440dc4;if(this['_online']&&_0x439735['id']===_0x244249[_0x1b1f53(0x23d)]['id']&&_0x439735[_0x1b1f53(0x184)][_0x1b1f53(0x137)]===this['unitID']){const _0x602691=_0x439735['params'];this[_0x1b1f53(0x90)](_0x602691[_0x1b1f53(0x101)],_0x602691['selections'][0x0]);}})));}['_onCursorUpdate'](_0x47d7d5){const _0x34c703=_0x291ba3;var _0x5d911e,_0x3aa192;const {memberID:_0x4274c9,selection:_0x2f726b}=_0x47d7d5[_0x34c703(0x253)],{sheetName:_0x61e311,range:_0x533220}=_0x172d10[_0x34c703(0x3bf)](_0x2f726b),_0x52cc60={'name':(_0x3aa192=(_0x5d911e=this[_0x34c703(0x29e)][_0x34c703(0x465)](this[_0x34c703(0x2ea)],_0x4274c9))==null?void 0x0:_0x5d911e['name'])!=null?_0x3aa192:_0x34c703(0x2fe),'range':this[_0x34c703(0x3c5)](_0x61e311,_0x533220),'sheetID':_0x61e311,'color':this[_0x34c703(0x356)][_0x34c703(0x23a)](_0x4274c9),'selection':_0x2f726b},_0x264bfb=this['cursorInfo'];_0x264bfb[_0x34c703(0x250)](_0x4274c9,_0x52cc60),this[_0x34c703(0xd1)][_0x34c703(0x2ce)](_0x264bfb);}['_onCursorDelete'](_0x5a5a20){const _0xca7e9a=_0x291ba3,{memberID:_0x3f9dce}=_0x5a5a20['data'],_0x56e8e6=this[_0xca7e9a(0x12f)];_0x56e8e6[_0xca7e9a(0x39c)](_0x3f9dce),this['_cursorInfo$'][_0xca7e9a(0x2ce)](_0x56e8e6);}[_0x291ba3(0x3c5)](_0x5d561b,_0x49fdac){const _0x50e718=_0x291ba3;var _0x3b7775,_0x5ca2ce;const _0x375961=(_0x5ca2ce=(_0x3b7775=this[_0x50e718(0x79)][_0x50e718(0x3ab)](this[_0x50e718(0x2ea)]))==null?void 0x0:_0x3b7775[_0x50e718(0x1ae)](_0x5d561b))==null?void 0x0:_0x5ca2ce[_0x50e718(0x2e3)]();return(_0x375961==null?void 0x0:_0x375961[_0x50e718(0x125)](_0x4b8f76=>_0x2c7fed[_0x50e718(0xad)][_0x50e718(0x2a0)](_0x4b8f76,_0x49fdac)))||_0x49fdac;}['_onRefRangeChange'](){const _0x3efc49=_0x291ba3,_0x1dffac=new _0x2c7fed['DisposableCollection'](),_0x1e1f22=_0x28d91a(),_0x11b6ae=()=>{const _0x3a3b60=_0x2d25;_0x1dffac[_0x3a3b60(0x35e)]();const _0x46e4db=(_0x11a43c,_0x28d5a0,_0x760262,_0x3b519b)=>{const _0x27134c=_0x3a3b60;let _0x598469=[];switch(_0x11a43c['id']){case _0x244249['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:{_0x598469=_0x244249['handleDeleteRangeMoveLeft'](_0x11a43c,_0x3b519b);break;}case _0x244249[_0x27134c(0x48d)][_0x27134c(0x2c4)]:{_0x598469=_0x244249[_0x27134c(0x30b)](_0x11a43c,_0x3b519b);break;}case _0x244249[_0x27134c(0x48d)][_0x27134c(0x174)]:{_0x598469=_0x244249['handleInsertCol'](_0x11a43c,_0x3b519b);break;}case _0x244249[_0x27134c(0x48d)]['InsertRangeMoveDownCommandId']:{_0x598469=_0x244249['handleInsertRangeMoveDown'](_0x11a43c,_0x3b519b);break;}case _0x244249['EffectRefRangId'][_0x27134c(0x376)]:{_0x598469=_0x244249[_0x27134c(0xbe)](_0x11a43c,_0x3b519b);break;}case _0x244249[_0x27134c(0x48d)][_0x27134c(0x463)]:{_0x598469=_0x244249['handleInsertRow'](_0x11a43c,_0x3b519b);break;}case _0x244249[_0x27134c(0x48d)][_0x27134c(0x342)]:{_0x598469=_0x244249[_0x27134c(0x494)](_0x11a43c,_0x3b519b);break;}case _0x244249['EffectRefRangId']['RemoveColCommandId']:{_0x598469=_0x244249[_0x27134c(0x2af)](_0x11a43c,_0x3b519b);break;}case _0x244249[_0x27134c(0x48d)][_0x27134c(0x349)]:{_0x598469=_0x244249[_0x27134c(0x454)](_0x11a43c,_0x3b519b);break;}}const _0x5c9f58=_0x244249[_0x27134c(0x380)](_0x598469,_0x3b519b),_0x39b63c=this['cursorInfo'][_0x27134c(0x400)](_0x28d5a0);if(_0x39b63c&&_0x5c9f58){const _0x1abc85={..._0x39b63c,'range':_0x5c9f58};this[_0x27134c(0x12f)][_0x27134c(0x250)](_0x28d5a0,_0x1abc85),_0x1e1f22(()=>{const _0x4b673f=_0x27134c,_0x3a1e10=this[_0x4b673f(0x2e0)][_0x4b673f(0xca)](_0x5c9f58,_0x590696=>(_0x3a1e10[_0x4b673f(0x35e)](),_0x46e4db(_0x590696,_0x28d5a0,_0x760262,_0x5c9f58)));_0x1dffac[_0x4b673f(0x8b)](_0x3a1e10);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x3a3b60(0xb2)]((_0x1071f0,_0x5bb3a4)=>{const _0x3c4053=_0x3a3b60,{range:_0x358082,sheetID:_0x102f0b}=_0x1071f0,_0x33c23e=this['_refRangeService'][_0x3c4053(0xca)](_0x358082,_0x3ac13e=>(_0x33c23e[_0x3c4053(0x35e)](),_0x46e4db(_0x3ac13e,_0x5bb3a4,_0x102f0b,_0x358082)));_0x1dffac[_0x3c4053(0x8b)](_0x33c23e);});};this[_0x3efc49(0x351)](_0x2c7fed[_0x3efc49(0x337)](this['_cursorInfo$']['subscribe'](()=>{_0x11b6ae();})));}[_0x291ba3(0x1ef)](){const _0x5abd8e=_0x291ba3;var _0x1b28ff,_0x2b925d;if(this['_online']=!0x0,((_0x1b28ff=this[_0x5abd8e(0x79)]['getFocusedUnit']())==null?void 0x0:_0x1b28ff[_0x5abd8e(0x11d)]())!==this[_0x5abd8e(0x2ea)])return;const _0x1b6b41=(_0x2b925d=this[_0x5abd8e(0x10d)][_0x5abd8e(0x400)](_0x244249[_0x5abd8e(0xd6)])[_0x5abd8e(0x1c4)]())==null?void 0x0:_0x2b925d[0x0],_0x502f7e=this[_0x5abd8e(0x79)][_0x5abd8e(0x17a)](_0x2c7fed[_0x5abd8e(0xcb)][_0x5abd8e(0x2aa)])[_0x5abd8e(0x409)]();_0x1b6b41&&_0x502f7e&&this[_0x5abd8e(0x90)](_0x502f7e['getSheetId'](),_0x1b6b41);}['_toggleOffline'](){const _0xea14ee=_0x291ba3;this[_0xea14ee(0x28a)]=!0x1;}};_0xba4728=_0x3c30d3([_0x5a668f(0x2,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x5a668f(0x3,_0x2c7fed['Inject'](_0x45b0e2)),_0x5a668f(0x4,_0x2c7fed['Inject'](_0x4d411d)),_0x5a668f(0x5,_0x2c7fed[_0x291ba3(0x27a)]),_0x5a668f(0x6,_0x2c7fed['ICommandService']),_0x5a668f(0x7,_0x2c7fed[_0x291ba3(0x16b)](_0x244249['RefRangeService']))],_0xba4728);var _0xe0d908=Object['defineProperty'],_0x576920=Object[_0x291ba3(0x373)],_0x3afca8=(_0x4edb78,_0x10775f,_0x4508d4,_0x2d1b5a)=>{const _0x22b76d=_0x291ba3;for(var _0x5f4084=_0x2d1b5a>0x1?void 0x0:_0x2d1b5a?_0x576920(_0x10775f,_0x4508d4):_0x10775f,_0x297fda=_0x4edb78[_0x22b76d(0xbb)]-0x1,_0x5bd9c9;_0x297fda>=0x0;_0x297fda--)(_0x5bd9c9=_0x4edb78[_0x297fda])&&(_0x5f4084=(_0x2d1b5a?_0x5bd9c9(_0x10775f,_0x4508d4,_0x5f4084):_0x5bd9c9(_0x5f4084))||_0x5f4084);return _0x2d1b5a&&_0x5f4084&&_0xe0d908(_0x10775f,_0x4508d4,_0x5f4084),_0x5f4084;},_0x59e0d1=(_0x1007ca,_0x53094a)=>(_0x389344,_0x312136)=>_0x53094a(_0x389344,_0x312136,_0x1007ca);let _0x47d88=class extends _0x2c7fed[_0x291ba3(0x2d5)]{constructor(_0x5518e9,_0xab01d9,_0x1c6ebb){const _0x3b6de8=_0x291ba3;super(),_0x24cbc7(this,_0x3b6de8(0x3a7),new Map()),_0x24cbc7(this,'_entityInit$',new _0x1fc547[(_0x3b6de8(0x165))]()),(this[_0x3b6de8(0x79)]=_0x5518e9,this[_0x3b6de8(0x10d)]=_0xab01d9,this[_0x3b6de8(0x374)]=_0x1c6ebb,this[_0x3b6de8(0x366)]());}[_0x291ba3(0x35e)](){const _0x2f687e=_0x291ba3;super['dispose'](),this['_entityInit$'][_0x2f687e(0x420)](),this[_0x2f687e(0x3a7)][_0x2f687e(0xb2)](_0x532d1a=>_0x532d1a[_0x2f687e(0x35e)]());}['getCollabCursors$'](_0x805631){const _0x54d3e7=_0x291ba3;return this[_0x54d3e7(0x3a7)][_0x54d3e7(0x169)](_0x805631)?this['_entities']['get'](_0x805631)[_0x54d3e7(0x431)]:this[_0x54d3e7(0xa3)][_0x54d3e7(0x256)](_0x1fc547[_0x54d3e7(0x1d1)](_0x37d84a=>_0x37d84a['unitID']===_0x805631),_0x1fc547[_0x54d3e7(0x1e2)](_0x3e9380=>_0x3e9380['cursorInfo$']));}['_init'](){const _0x3ad44b=_0x291ba3;this[_0x3ad44b(0x79)][_0x3ad44b(0x112)](_0x2c7fed[_0x3ad44b(0xcb)][_0x3ad44b(0x2aa)])[_0x3ad44b(0x256)](_0x1fc547[_0x3ad44b(0x211)](this[_0x3ad44b(0xf7)]))[_0x3ad44b(0x3f2)](async _0x3480be=>{const _0x3b9bee=_0x3ad44b,_0x37b08f=_0x3480be['getUnitId'](),_0x1ad32c=await this[_0x3b9bee(0x1a4)](_0x37b08f);this[_0x3b9bee(0xa3)]['next'](_0x1ad32c),this[_0x3b9bee(0x3a7)]['set'](_0x37b08f,_0x1ad32c);}),this[_0x3ad44b(0x79)]['getTypeOfUnitAdded$'](_0x2c7fed['UniverInstanceType']['UNIVER_DOC'])[_0x3ad44b(0x256)](_0x1fc547[_0x3ad44b(0x211)](this[_0x3ad44b(0xf7)]))[_0x3ad44b(0x256)](_0x1fc547['filter'](_0xb63c78=>!_0xb63c78['getUnitId']()[_0x3ad44b(0x3c9)]('__')))[_0x3ad44b(0x3f2)](async _0x31633e=>{const _0x20c831=_0x3ad44b,_0x5ed5b7=_0x31633e[_0x20c831(0x11d)](),_0x2dfa9f=await this['_startDocCollabCursor'](_0x5ed5b7);this[_0x20c831(0xa3)][_0x20c831(0x2ce)](_0x2dfa9f),this[_0x20c831(0x3a7)][_0x20c831(0x250)](_0x5ed5b7,_0x2dfa9f);}),_0x1fc547[_0x3ad44b(0x94)](this['_univerInstanceService'][_0x3ad44b(0xc6)](_0x2c7fed['UniverInstanceType'][_0x3ad44b(0x130)]),this[_0x3ad44b(0x79)]['getTypeOfUnitDisposed$'](_0x2c7fed[_0x3ad44b(0xcb)][_0x3ad44b(0x2aa)]))['pipe'](_0x1fc547[_0x3ad44b(0x211)](this[_0x3ad44b(0xf7)]))[_0x3ad44b(0x3f2)](_0x595bf3=>{const _0x3a85f8=_0x3ad44b,_0x124ee3=_0x595bf3['getUnitId'](),_0x3f772f=this[_0x3a85f8(0x3a7)][_0x3a85f8(0x400)](_0x124ee3);_0x3f772f&&(_0x3f772f[_0x3a85f8(0x35e)](),this[_0x3a85f8(0x3a7)][_0x3a85f8(0x39c)](_0x124ee3));});}async['_startSheetCollabCursor'](_0x468d96){const _0x567cfd=_0x291ba3,_0x12330c=await this[_0x567cfd(0x374)][_0x567cfd(0x22d)](_0x468d96),_0x1dbb14=this[_0x567cfd(0x10d)][_0x567cfd(0x266)](_0xba4728,_0x468d96,_0x12330c);return _0x1dbb14[_0x567cfd(0x1d3)](),_0x1dbb14;}async[_0x291ba3(0x123)](_0x7c047a){const _0x16d523=_0x291ba3,_0x5f5b47=await this[_0x16d523(0x374)][_0x16d523(0x22d)](_0x7c047a),_0x4fe3c8=this[_0x16d523(0x10d)]['createInstance'](_0x45d401,_0x7c047a,_0x5f5b47);return _0x4fe3c8[_0x16d523(0x1d3)](),_0x4fe3c8;}};_0x47d88=_0x3afca8([_0x59e0d1(0x0,_0x2c7fed[_0x291ba3(0x27a)]),_0x59e0d1(0x1,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x59e0d1(0x2,_0x2c7fed['Inject'](_0x594fe1[_0x291ba3(0xeb)]))],_0x47d88);const _0x34a5d2=0x14,_0x3b3c2c=0xc8,_0xf37e8f=0x4,_0xf24552=0x5;function _0x5bd8ab(_0x1b6ae3,_0x566ac8){const _0x49ec46=_0x291ba3;let {radius:_0x217ef4,width:_0x17f06b,height:_0x561bf7}=_0x566ac8;_0x217ef4=_0x217ef4!=null?_0x217ef4:0x0,_0x17f06b=_0x17f06b!=null?_0x17f06b:0x1e,_0x561bf7=_0x561bf7!=null?_0x561bf7:0x1e;let _0x21bacc=0x0,_0xa3ff30=0x0,_0x301c76=0x0;_0x21bacc=_0xa3ff30=_0x301c76=Math[_0x49ec46(0xe7)](_0x217ef4,_0x17f06b/0x2,_0x561bf7/0x2),_0x1b6ae3['beginPath'](),_0x1b6ae3['moveTo'](_0x21bacc,0x0),_0x1b6ae3[_0x49ec46(0xa5)](_0x17f06b-_0xa3ff30,0x0),_0x1b6ae3[_0x49ec46(0x41c)](_0x17f06b-_0xa3ff30,_0xa3ff30,_0xa3ff30,Math['PI']*0x3/0x2,0x0,!0x1),_0x1b6ae3['lineTo'](_0x17f06b,_0x561bf7-_0x301c76),_0x1b6ae3[_0x49ec46(0x41c)](_0x17f06b-_0x301c76,_0x561bf7-_0x301c76,_0x301c76,0x0,Math['PI']/0x2,!0x1),_0x1b6ae3[_0x49ec46(0xa5)](0x0,_0x561bf7),_0x1b6ae3[_0x49ec46(0xa5)](0x0,_0x21bacc),_0x1b6ae3[_0x49ec46(0x41c)](_0x21bacc,_0x21bacc,_0x21bacc,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1b6ae3[_0x49ec46(0xcf)](),_0x566ac8[_0x49ec46(0xe1)]&&(_0x1b6ae3[_0x49ec46(0x24b)](),_0x1b6ae3[_0x49ec46(0x331)]=_0x566ac8['fill'],_0x566ac8[_0x49ec46(0xe3)]===_0x49ec46(0x24c)?_0x1b6ae3[_0x49ec46(0xe1)](_0x49ec46(0x24c)):_0x1b6ae3[_0x49ec46(0xe1)](),_0x1b6ae3['restore']());}class _0xcb27d6 extends _0x180dc9[_0x291ba3(0x498)]{constructor(_0xee0783,_0x34ffc1){const _0x58838c=_0x291ba3;super(_0xee0783,_0x34ffc1),_0x24cbc7(this,_0x58838c(0x3c2)),_0x24cbc7(this,_0x58838c(0x151)),(this[_0x58838c(0x3c2)]=_0x34ffc1==null?void 0x0:_0x34ffc1['color'],this[_0x58838c(0x151)]=_0x34ffc1==null?void 0x0:_0x34ffc1[_0x58838c(0x151)]);}static['drawWith'](_0xd9750f,_0x26dbec){const _0x301fcb=_0x291ba3,{text:_0x3df19c,color:_0x59a744}=_0x26dbec;_0xd9750f[_0x301fcb(0x24b)](),_0xd9750f[_0x301fcb(0x336)]=_0x301fcb(0x31d);const _0x2ffbfa=_0xd9750f[_0x301fcb(0x182)](_0x3df19c)[_0x301fcb(0x259)],_0x105519=Math[_0x301fcb(0xe7)](_0x2ffbfa+0x2*_0xf37e8f,_0x3b3c2c);_0x5bd8ab(_0xd9750f,{'height':_0x34a5d2,'radius':0x4,'width':_0x105519,'fill':_0x59a744,'evented':!0x1}),_0xd9750f['fillStyle']=_0x301fcb(0x3ba);const _0x110cea=_0xf37e8f,_0x5b81e2=_0x34a5d2-_0xf24552,_0x5169b5=_0x3b3c2c-0x2*_0xf37e8f;if(_0x2ffbfa>_0x5169b5){let _0x4ad2af='',_0x17edd4=0x0;for(const _0x29b343 of _0x3df19c){const _0x418af8=_0xd9750f[_0x301fcb(0x182)](_0x29b343)[_0x301fcb(0x259)];if(_0x17edd4+_0x418af8<=_0x5169b5-_0xd9750f[_0x301fcb(0x182)](_0x301fcb(0x25b))['width'])_0x4ad2af+=_0x29b343,_0x17edd4+=_0x418af8;else{_0x4ad2af+=_0x301fcb(0x25b);break;}}_0xd9750f['fillText'](_0x4ad2af,_0x110cea,_0x5b81e2);}else _0xd9750f[_0x301fcb(0x104)](_0x3df19c,_0x110cea,_0x5b81e2);_0xd9750f[_0x301fcb(0x26d)]();}[_0x291ba3(0x268)](_0x267ce2){const _0xeb58a4=_0x291ba3;_0xcb27d6[_0xeb58a4(0x102)](_0x267ce2,this);}}const _0x5e78d2=_0x291ba3(0x493),_0x1b93c8=_0x291ba3(0x1da),_0x1ad5bd=_0x291ba3(0x44f),_0x341708=0x6,_0x4f64da=1.5,_0x34ee2d=0x4,_0x5532b8=1.5,_0x3f4aa8=_0x291ba3(0xce);class _0x1ac9b5{constructor(_0x24a690,_0x2c69d0,_0x4898f2,_0x8647e9){const _0x47b0dc=_0x291ba3;_0x24cbc7(this,_0x47b0dc(0x6f),[]),_0x24cbc7(this,'_anchor',null),_0x24cbc7(this,'_textBubble',null),_0x24cbc7(this,_0x47b0dc(0xd4),null),_0x24cbc7(this,'_hideTimer',null),_0x24cbc7(this,_0x47b0dc(0x16e),null),(this[_0x47b0dc(0x199)]=_0x24a690,this[_0x47b0dc(0x329)]=_0x2c69d0,this[_0x47b0dc(0x270)]=_0x4898f2,this['_document']=_0x8647e9,this[_0x47b0dc(0x25c)]());}set[_0x291ba3(0x27d)](_0x2894de){const _0x9cb90=_0x291ba3;_0x2894de?(this[_0x9cb90(0xd4)]&&this[_0x9cb90(0xd4)]['hide'](),this[_0x9cb90(0x162)]&&this[_0x9cb90(0x162)][_0x9cb90(0x116)]()):(this[_0x9cb90(0xd4)]&&this[_0x9cb90(0xd4)][_0x9cb90(0x116)](),this[_0x9cb90(0x162)]&&this[_0x9cb90(0x162)]['hide']());}['dispose'](){const _0x5ef317=_0x291ba3;for(const _0x3e72bc of this[_0x5ef317(0x6f)])_0x3e72bc[_0x5ef317(0x35e)]();this[_0x5ef317(0x162)]&&this[_0x5ef317(0x162)][_0x5ef317(0x35e)](),this[_0x5ef317(0xd4)]&&this[_0x5ef317(0xd4)][_0x5ef317(0x35e)](),this[_0x5ef317(0x143)]&&this[_0x5ef317(0x143)][_0x5ef317(0x35e)](),this['_eventUnsubscribe']&&this[_0x5ef317(0x16e)]();}[_0x291ba3(0x25c)](){const _0x9b36c9=_0x291ba3;var _0x1d17ae;const {_docSkeleton:_0x388180,_document:_0x4baa88}=this,{color:_0x520c99,name:_0x2c9c3e,ranges:_0x1b9aac}=this[_0x9b36c9(0x199)],_0x408890=_0x4baa88[_0x9b36c9(0x236)](),{docsLeft:_0x39673e,docsTop:_0x384fc1}=_0x408890,_0x20df9b=new _0x21cef1[(_0x9b36c9(0x135))](_0x408890,_0x388180);for(const {startOffset:_0x2fd13b,endOffset:_0x44b26f,collapsed:_0xbd55,isActive:_0x24ca69}of _0x1b9aac){const _0x2dbe0a=_0x388180[_0x9b36c9(0x74)](_0x2fd13b),_0x9f607b=_0x388180['findNodePositionByCharIndex'](_0x44b26f);if(_0x24ca69){const {contentBoxPointGroup:_0x2ef866}=_0x20df9b[_0x9b36c9(0x485)](_0x9f607b,_0x9f607b);if(_0x2ef866[_0x9b36c9(0xbb)]===0x0)continue;this['_drawAnchor'](_0x520c99,_0x2ef866,_0x39673e,_0x384fc1,_0x2c9c3e),this[_0x9b36c9(0x16e)]=this[_0x9b36c9(0x47d)]();}if(!_0xbd55&&_0x2dbe0a&&_0x9f607b){if(_0x21cef1[_0x9b36c9(0x48e)](_0x2dbe0a,_0x9f607b)){const _0xcb116b=new _0x21cef1[(_0x9b36c9(0x251))](_0x408890,_0x388180),{pointGroup:_0x4f45ac}=(_0x1d17ae=_0xcb116b['getRangePointData'](_0x2dbe0a,_0x9f607b))!=null?_0x1d17ae:{};if(_0x4f45ac==null||_0x4f45ac[_0x9b36c9(0xbb)]===0x0)continue;this[_0x9b36c9(0x12b)](_0x520c99,_0x4f45ac,_0x39673e,_0x384fc1);}else{const {contentBoxPointGroup:_0x469ae1}=_0x20df9b[_0x9b36c9(0x485)](_0x2dbe0a,_0x9f607b);if(_0x469ae1[_0x9b36c9(0xbb)]===0x0)continue;this[_0x9b36c9(0x3db)](_0x520c99,_0x469ae1,_0x39673e,_0x384fc1);}}}}[_0x291ba3(0x13c)](_0x419219,_0x1d4700,_0x35aa04,_0x542985,_0x28fc5f){const _0x3a1865=_0x291ba3,_0x516a7a=this[_0x3a1865(0x367)](_0x1d4700),{left:_0x4ab370,top:_0x31431b,height:_0x3d3b18}=_0x516a7a,_0x56531c=this[_0x3a1865(0x235)](),_0x327317=_0x5532b8/_0x56531c,_0x73465e=new _0x180dc9['Rect'](_0x5e78d2+_0x2c7fed[_0x3a1865(0xa9)][_0x3a1865(0x19d)](_0x341708),{'left':_0x4ab370+_0x35aa04-_0x327317,'top':_0x31431b+_0x542985,'height':_0x3d3b18,'width':_0x4f64da,'fill':_0x419219||_0x180dc9[_0x3a1865(0xf3)](_0x2c7fed['COLORS'][_0x3a1865(0x153)],0x0),'strokeWidth':_0x327317,'stroke':_0x3f4aa8,'evented':!0x0});this[_0x3a1865(0x143)]=_0x73465e,this[_0x3a1865(0x329)][_0x3a1865(0x2b2)](_0x73465e,_0x21cef1['TEXT_RANGE_LAYER_INDEX']);const _0x676fdb=new _0x180dc9[(_0x3a1865(0x2c2))](_0x5e78d2+_0x2c7fed['Tools'][_0x3a1865(0x19d)](_0x341708),{'left':_0x4ab370+_0x35aa04-_0x327317,'top':_0x31431b+_0x542985-_0x34ee2d/0x2,'height':_0x34ee2d,'width':_0x34ee2d,'fill':_0x419219||_0x180dc9['getColor'](_0x2c7fed[_0x3a1865(0xbc)][_0x3a1865(0x153)],0x0),'strokeWidth':0x0,'stroke':_0x419219||_0x180dc9[_0x3a1865(0xf3)](_0x2c7fed[_0x3a1865(0xbc)][_0x3a1865(0x153)],0x0),'evented':!0x1});this[_0x3a1865(0xd4)]=_0x676fdb,this[_0x3a1865(0x329)][_0x3a1865(0x2b2)](_0x676fdb,_0x21cef1[_0x3a1865(0x497)]);const _0x283af7=new _0xcb27d6(_0x5e78d2+_0x2c7fed['Tools']['generateRandomId'](_0x341708),{'left':_0x4ab370+_0x35aa04-_0x327317,'top':_0x31431b+_0x542985-_0x34a5d2,'text':_0x28fc5f,'color':_0x419219});this[_0x3a1865(0x162)]=_0x283af7,this['_scene'][_0x3a1865(0x2b2)](_0x283af7,_0x21cef1['TEXT_RANGE_LAYER_INDEX']),this[_0x3a1865(0x27d)]=!0x1;}[_0x291ba3(0x47d)](){const _0x6e7036=_0x291ba3,_0x115249=this['_anchor'][_0x6e7036(0x4a9)][_0x6e7036(0x150)](()=>{const _0x56ae3f=_0x6e7036;this[_0x56ae3f(0x27d)]=!0x0;}),_0x19a83e=this[_0x6e7036(0x143)][_0x6e7036(0x223)][_0x6e7036(0x150)](()=>{const _0x25f9cd=_0x6e7036;this['_hideTimer']&&clearTimeout(this[_0x25f9cd(0x109)]),this[_0x25f9cd(0x109)]=setTimeout(()=>{const _0x47b37b=_0x25f9cd;this[_0x47b37b(0x27d)]=!0x1;},0x7d0);});return()=>{_0x115249['unsubscribe'](),_0x19a83e['unsubscribe']();};}[_0x291ba3(0x3db)](_0xf966db,_0x4d17f8,_0x2d3469,_0x20afe9){const _0x9a9b05=_0x291ba3,_0x239cae=new _0x2c7fed[(_0x9a9b05(0x303))](_0xf966db)['setAlpha'](0.2)[_0x9a9b05(0x1b2)](),_0x5ae95b=new _0x180dc9[(_0x9a9b05(0x288))](_0x1b93c8+_0x2c7fed[_0x9a9b05(0xa9)][_0x9a9b05(0x19d)](_0x341708),{'pointsGroup':_0x4d17f8,'fill':_0x239cae||_0x180dc9[_0x9a9b05(0xf3)](_0x2c7fed[_0x9a9b05(0xbc)]['black'],0.2),'left':_0x2d3469,'top':_0x20afe9,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x9a9b05(0x6f)][_0x9a9b05(0x44a)](_0x5ae95b),this[_0x9a9b05(0x329)][_0x9a9b05(0x2b2)](_0x5ae95b,_0x21cef1[_0x9a9b05(0x497)]);}['_drawRectRange'](_0x496563,_0x465318,_0x8b8dfa,_0x1d99e8){const _0x2cd3e9=_0x291ba3,_0x301e5c=new _0x2c7fed['ColorKit'](_0x496563)[_0x2cd3e9(0x1b8)](0.2)[_0x2cd3e9(0x1b2)](),_0x176c32=new _0x180dc9[(_0x2cd3e9(0x288))](_0x1ad5bd+_0x2c7fed[_0x2cd3e9(0xa9)]['generateRandomId'](_0x341708),{'pointsGroup':_0x465318,'fill':_0x301e5c||_0x180dc9['getColor'](_0x2c7fed[_0x2cd3e9(0xbc)][_0x2cd3e9(0x153)],0.2),'left':_0x8b8dfa,'top':_0x1d99e8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2cd3e9(0x6f)]['push'](_0x176c32),this[_0x2cd3e9(0x329)]['addObject'](_0x176c32,_0x21cef1[_0x2cd3e9(0x497)]);}[_0x291ba3(0x367)](_0x28e05c){const _0x3c6577=_0x28e05c[0x0],_0x11edc7=_0x3c6577[0x0],_0x573524=_0x3c6577[0x2],{x:_0x3d8342,y:_0x5ad13b}=_0x11edc7,{x:_0x17ab07,y:_0x4e3309}=_0x573524;return{'left':_0x3d8342,'top':_0x5ad13b,'width':_0x17ab07-_0x3d8342,'height':_0x4e3309-_0x5ad13b};}[_0x291ba3(0x235)](){const _0x39cb04=_0x291ba3,{scaleX:_0xced2a3,scaleY:_0x317d8d}=this['_scene'][_0x39cb04(0x438)]();return Math[_0x39cb04(0x305)](_0xced2a3,_0x317d8d);}}var _0x12f19f=Object['defineProperty'],_0x58d1eb=Object[_0x291ba3(0x373)],_0x2557a9=(_0x10b01a,_0x4ce9b7,_0x324a84,_0x36ca4a)=>{const _0x3dc407=_0x291ba3;for(var _0x18ffcc=_0x36ca4a>0x1?void 0x0:_0x36ca4a?_0x58d1eb(_0x4ce9b7,_0x324a84):_0x4ce9b7,_0x3f065a=_0x10b01a[_0x3dc407(0xbb)]-0x1,_0xd71299;_0x3f065a>=0x0;_0x3f065a--)(_0xd71299=_0x10b01a[_0x3f065a])&&(_0x18ffcc=(_0x36ca4a?_0xd71299(_0x4ce9b7,_0x324a84,_0x18ffcc):_0xd71299(_0x18ffcc))||_0x18ffcc);return _0x36ca4a&&_0x18ffcc&&_0x12f19f(_0x4ce9b7,_0x324a84,_0x18ffcc),_0x18ffcc;},_0x32a4e8=(_0x3ce41f,_0x144cf3)=>(_0x2d19ea,_0x52b723)=>_0x144cf3(_0x2d19ea,_0x52b723,_0x3ce41f);let _0x2d5972=class extends _0x2c7fed[_0x291ba3(0x2d5)]{constructor(_0x4c673a,_0x283c47,_0x532a3d,_0x24f905,_0x418140){const _0x1da996=_0x291ba3;super(),_0x24cbc7(this,_0x1da996(0x399),[]),_0x24cbc7(this,_0x1da996(0x77),[]),(this[_0x1da996(0x379)]=_0x4c673a,this['_docSkeletonManagerService']=_0x283c47,this['_collabCursorController']=_0x532a3d,this[_0x1da996(0xc0)]=_0x24f905,this['_themeService']=_0x418140,this[_0x1da996(0x366)]());}['_init'](){const _0x18aa5a=_0x291ba3,_0x169580=this['_context'][_0x18aa5a(0x137)],_0x196d0b=this[_0x18aa5a(0xa2)];this[_0x18aa5a(0x351)](_0x1fc547[_0x18aa5a(0x39f)]([this[_0x18aa5a(0x207)][_0x18aa5a(0x43d)](_0x169580),this['_themeService'][_0x18aa5a(0x186)]])['pipe'](_0x2eca2e[_0x18aa5a(0x21b)](([_0x34f21f,_0x5cfffd])=>({'skeleton':_0x196d0b['getSkeleton'](),'cursors':[..._0x34f21f['values']()][_0x18aa5a(0x3df)](_0x3f0911=>({..._0x3f0911,'color':_0x5cfffd[_0x3f0911['color']]}))})))[_0x18aa5a(0x3f2)](_0xa45e38=>{if(this['_removeCollabCursors'](),_0xa45e38){const {skeleton:_0x5de936,cursors:_0x11749f}=_0xa45e38;this['_updateCollabCursors'](_0x5de936,_0x11749f);}})),this[_0x18aa5a(0x2e4)](),this[_0x18aa5a(0x95)]();}[_0x291ba3(0xf0)](_0x574621,_0x251470){const _0x38b761=_0x291ba3,{scene:_0x59d589,mainComponent:_0x58e99}=this[_0x38b761(0x379)],_0x34cff6=_0x251470[_0x38b761(0x21b)](_0x181f2e=>new _0x1ac9b5(_0x181f2e,_0x59d589,_0x574621,_0x58e99));this['_cursorShapes']=_0x34cff6,this[_0x38b761(0x77)]=_0x251470;}[_0x291ba3(0x481)](){const _0x3db8a5=_0x291ba3;this[_0x3db8a5(0xe0)]();const {scene:_0x2d87ec,mainComponent:_0x5d0580}=this[_0x3db8a5(0x379)],_0x3ac1c2=this['_docSkeletonManagerService'][_0x3db8a5(0x28d)](),_0x32e08c=this['_cursors'][_0x3db8a5(0x21b)](_0x2ee3c2=>new _0x1ac9b5(_0x2ee3c2,_0x2d87ec,_0x3ac1c2,_0x5d0580));this[_0x3db8a5(0x399)]=_0x32e08c;}[_0x291ba3(0xe0)](){const _0x152ee0=_0x291ba3;this[_0x152ee0(0x399)][_0x152ee0(0xb2)](_0x3cb4ae=>_0x3cb4ae[_0x152ee0(0x35e)]()),this[_0x152ee0(0x399)]=[];}[_0x291ba3(0x95)](){const _0x49474f=_0x291ba3,_0x1f811e=[_0x21cef1[_0x49474f(0x230)]['id']];this[_0x49474f(0x351)](this[_0x49474f(0xc0)][_0x49474f(0x313)](_0x149127=>{const _0x4fc4b1=_0x49474f;_0x1f811e['includes'](_0x149127['id'])&&_0x149127[_0x4fc4b1(0x184)][_0x4fc4b1(0x137)]===this['_context'][_0x4fc4b1(0x137)]&&this[_0x4fc4b1(0x481)]();}));}[_0x291ba3(0x2e4)](){const _0x102cd2=_0x291ba3;this[_0x102cd2(0x351)](_0x2c7fed[_0x102cd2(0x1bd)](this[_0x102cd2(0x379)][_0x102cd2(0x3c8)][_0x102cd2(0x20a)])[_0x102cd2(0x256)](_0x2eca2e['filter'](_0x4b8c5b=>_0x4b8c5b[_0x102cd2(0x33c)]===_0x180dc9[_0x102cd2(0x298)][_0x102cd2(0x1bc)]),_0x2eca2e['throttleTime'](0x10))[_0x102cd2(0x3f2)](()=>{const _0xa9994d=_0x102cd2;this[_0xa9994d(0x481)]();}));}};_0x2d5972=_0x2557a9([_0x32a4e8(0x1,_0x2c7fed['Inject'](_0x7ac583[_0x291ba3(0x332)])),_0x32a4e8(0x2,_0x2c7fed[_0x291ba3(0x16b)](_0x47d88)),_0x32a4e8(0x3,_0x2c7fed[_0x291ba3(0x15a)]),_0x32a4e8(0x4,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x42f)]))],_0x2d5972);const _0xe6c732=0x1,_0x52413b=1.5;class _0x54131f extends _0x180dc9[_0x291ba3(0x498)]{constructor(_0x11cac9,_0x796d02){const _0x1a4433=_0x291ba3;super(_0x11cac9,_0x796d02),_0x24cbc7(this,_0x1a4433(0x46c)),_0x24cbc7(this,_0x1a4433(0x29c),!0x1),_0x24cbc7(this,_0x1a4433(0x19c)),_0x24cbc7(this,_0x1a4433(0x238),''),_0x24cbc7(this,_0x1a4433(0x17e),_0x1a4433(0x2d6)),_0x24cbc7(this,_0x1a4433(0x446)),(_0x796d02&&this[_0x1a4433(0x2c6)](_0x796d02),this[_0x1a4433(0x4a9)][_0x1a4433(0x150)](()=>this[_0x1a4433(0x2c6)]({'hovered':!0x0})),this[_0x1a4433(0x223)][_0x1a4433(0x150)](()=>this[_0x1a4433(0x2c6)]({'hovered':!0x1})));}[_0x291ba3(0x2c6)](_0x35675c){const _0x2d28af=_0x291ba3;var _0x495808,_0x1c64b0,_0x35bdef,_0x524d0a,_0x7936f6,_0x3004b3;this[_0x2d28af(0x46c)]=(_0x495808=_0x35675c[_0x2d28af(0x3c2)])!=null?_0x495808:this['_color'],this[_0x2d28af(0x29c)]=(_0x1c64b0=_0x35675c[_0x2d28af(0x2c0)])!=null?_0x1c64b0:this['_hovered'],this[_0x2d28af(0x19c)]=(_0x35bdef=_0x35675c['range'])!=null?_0x35bdef:this[_0x2d28af(0x19c)],this['_name']=(_0x524d0a=_0x35675c[_0x2d28af(0x2a6)])!=null?_0x524d0a:this[_0x2d28af(0x238)],this[_0x2d28af(0x17e)]=(_0x7936f6=_0x35675c[_0x2d28af(0x68)])!=null?_0x7936f6:this[_0x2d28af(0x17e)],this['_backgroundColor']=(_0x3004b3=_0x35675c[_0x2d28af(0xc4)])!=null?_0x3004b3:this[_0x2d28af(0x446)],this[_0x2d28af(0x1f4)]({'width':_0x35675c[_0x2d28af(0x259)],'height':_0x35675c[_0x2d28af(0x3bc)]});}[_0x291ba3(0xae)](_0x4e7f42){const _0x4eeb2a=_0x291ba3,{row:_0x4c2e71,column:_0x24807d}=_0x4e7f42;if(_0x4c2e71>=this['_range'][_0x4eeb2a(0x492)]&&_0x4c2e71<=this[_0x4eeb2a(0x19c)][_0x4eeb2a(0x20e)]&&_0x24807d>=this[_0x4eeb2a(0x19c)][_0x4eeb2a(0x321)]&&_0x24807d<=this['_range']['endColumn']){this[_0x4eeb2a(0x2c6)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x291ba3(0x314)](_0x2802af){return!0x1;}[_0x291ba3(0x268)](_0x459434){const _0x3ea3ff=_0x291ba3;_0x180dc9[_0x3ea3ff(0x2c2)][_0x3ea3ff(0x102)](_0x459434,{'width':this[_0x3ea3ff(0x259)],'height':this['height'],'strokeWidth':_0x52413b,'stroke':this[_0x3ea3ff(0x46c)],'evented':!0x1,'fill':this[_0x3ea3ff(0x446)]}),this[_0x3ea3ff(0x29c)]&&(_0x459434[_0x3ea3ff(0x24b)](),_0x459434[_0x3ea3ff(0x490)](0x1,0x0,0x0,0x1,this[_0x3ea3ff(0x259)],this[_0x3ea3ff(0x17e)]===_0x3ea3ff(0x2a2)?0x0:-_0x34a5d2),_0xcb27d6['drawWith'](_0x459434,{'text':this[_0x3ea3ff(0x238)],'color':this[_0x3ea3ff(0x46c)]}),_0x459434['restore']());}}var _0x501e5d=Object['defineProperty'],_0x266d1d=Object[_0x291ba3(0x373)],_0xcbb32f=(_0x26d599,_0x5a0241,_0x2ef03f,_0x392a29)=>{for(var _0x44abb3=_0x392a29>0x1?void 0x0:_0x392a29?_0x266d1d(_0x5a0241,_0x2ef03f):_0x5a0241,_0x3b6938=_0x26d599['length']-0x1,_0x3a9b59;_0x3b6938>=0x0;_0x3b6938--)(_0x3a9b59=_0x26d599[_0x3b6938])&&(_0x44abb3=(_0x392a29?_0x3a9b59(_0x5a0241,_0x2ef03f,_0x44abb3):_0x3a9b59(_0x44abb3))||_0x44abb3);return _0x392a29&&_0x44abb3&&_0x501e5d(_0x5a0241,_0x2ef03f,_0x44abb3),_0x44abb3;},_0x418f93=(_0x2ffc52,_0x1d4885)=>(_0x308794,_0x382ca8)=>_0x1d4885(_0x308794,_0x382ca8,_0x2ffc52);const _0x2116ef=0x1389;let _0x56e595=class extends _0x2c7fed['RxDisposable']{constructor(_0x5b1aa0,_0x1689d6,_0x1838a5,_0x443980){const _0x4172f8=_0x291ba3;super(),_0x24cbc7(this,'_cursors',new Set()),_0x24cbc7(this,_0x4172f8(0x15d),null),(this[_0x4172f8(0x379)]=_0x5b1aa0,this[_0x4172f8(0x34a)]=_0x1689d6,this[_0x4172f8(0x207)]=_0x1838a5,this[_0x4172f8(0x6e)]=_0x443980,this[_0x4172f8(0x366)]());}[_0x291ba3(0x366)](){const _0x42b4b1=_0x291ba3;this[_0x42b4b1(0x34a)][_0x42b4b1(0x168)][_0x42b4b1(0x256)](_0x2eca2e[_0x42b4b1(0x211)](this[_0x42b4b1(0xf7)]),_0x2eca2e[_0x42b4b1(0x1e2)](_0x2c252c=>{const _0x3fb844=_0x42b4b1;if(_0x2c252c){const _0x153fb7=_0x2c252c[_0x3fb844(0x6a)];return _0x1fc547[_0x3fb844(0x39f)](this[_0x3fb844(0x207)][_0x3fb844(0x43d)](this['_context']['unitId']),this[_0x3fb844(0x6e)][_0x3fb844(0x186)])['pipe'](_0x2eca2e[_0x3fb844(0x21b)](([_0xd744b6,_0x26bfe4])=>{const _0x159c97=_0x3fb844,_0x1f28fc=new Map();return _0xd744b6[_0x159c97(0xb2)]((_0x2f90f8,_0x4445c4)=>{const _0x5e308e=_0x159c97;if(_0x2f90f8[_0x5e308e(0x2bd)]===_0x153fb7){const _0x10e522={..._0x2f90f8};_0x10e522[_0x5e308e(0x3c2)]=_0x26bfe4[_0x2f90f8['color']],_0x1f28fc[_0x5e308e(0x250)](_0x4445c4,_0x10e522);}}),{'skeleton':_0x2c252c,'cursors':_0x1f28fc};}));}return _0x1fc547['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x367ffe,cursors:_0x192262})=>{const _0x5548d3=_0x42b4b1;this[_0x5548d3(0xe0)](),_0x367ffe&&this[_0x5548d3(0xf0)](_0x367ffe,_0x192262);}),this[_0x42b4b1(0x34a)][_0x42b4b1(0x168)]['subscribe'](_0x1765bd=>{const _0x21fb1e=_0x42b4b1;if(_0x1765bd==null)return;const {skeleton:_0x1bef7c}=_0x1765bd,{scene:_0x298957}=this[_0x21fb1e(0x379)];_0x298957[_0x21fb1e(0x3ca)][_0x21fb1e(0x150)](_0x2c7fed[_0x21fb1e(0xa7)](_0x27a62f=>{const _0x13d6aa=_0x21fb1e;var _0x25fcea,_0x4429d6;const {offsetX:_0x470880,offsetY:_0x2ee81b}=_0x27a62f,{x:_0x46bd52,y:_0x2e7e8c}=_0x298957[_0x13d6aa(0x188)](_0x180dc9['Vector2'][_0x13d6aa(0x417)]([_0x470880,_0x2ee81b])),{scaleX:_0x2107a6,scaleY:_0x244558}=_0x298957[_0x13d6aa(0x438)](),_0x29d74c=_0x298957[_0x13d6aa(0x1ff)](_0x3f13ec[_0x13d6aa(0x4a1)][_0x13d6aa(0x327)]),_0x498c6f=_0x298957[_0x13d6aa(0x499)](_0x180dc9['Vector2']['FromArray']([_0x46bd52,_0x2e7e8c]),_0x29d74c),_0x83b5a9=_0x1bef7c[_0x13d6aa(0x40e)](_0x470880,_0x2ee81b,_0x2107a6,_0x244558,_0x498c6f);((_0x25fcea=this[_0x13d6aa(0x15d)])==null?void 0x0:_0x25fcea[_0x13d6aa(0x219)])===_0x83b5a9[_0x13d6aa(0x219)]&&((_0x4429d6=this[_0x13d6aa(0x15d)])==null?void 0x0:_0x4429d6[_0x13d6aa(0x37b)])===_0x83b5a9['row']||this['_cursors'][_0x13d6aa(0xb2)](_0x35f326=>{const _0x3ebfff=_0x13d6aa;_0x35f326[_0x3ebfff(0xae)](_0x83b5a9);});},0x64));});}[_0x291ba3(0xf0)](_0x31f27a,_0x5a44e5){const _0x4d9220=_0x291ba3;var _0x34ed4b;const _0x4001f5=(_0x34ed4b=this[_0x4d9220(0x34a)][_0x4d9220(0x2ca)]())==null?void 0x0:_0x34ed4b[_0x4d9220(0x43a)];if(!_0x4001f5)return;const _0x3a34a2=this[_0x4d9220(0x466)]();if(!_0x3a34a2)return;this[_0x4d9220(0x77)][_0x4d9220(0xb2)](_0x4a73e8=>{const _0x24ccbd=_0x4d9220;_0x4a73e8[_0x24ccbd(0x448)]();});const {scene:_0x5e8b9a}=_0x3a34a2,_0x25b731=_0x4a8764(Array[_0x4d9220(0x403)](_0x5a44e5[_0x4d9220(0x271)]()))[_0x4d9220(0x21b)](_0x579500=>{const _0x3e2ff1=_0x4d9220,{color:_0x55878c,range:_0x3ae6c7,name:_0x24abf0,selection:_0x2c4da9,sheetID:_0x1e9ed1}=_0x579500,{startColumn:_0x14b072,startRow:_0x277a14,endColumn:_0x55041c,endRow:_0xda1dce}=_0x3ae6c7,_0x3a86f8=_0x3f13ec[_0x3e2ff1(0x23f)](_0x277a14,_0x14b072,_0x5e8b9a,_0x4001f5),_0x1a0189=_0x3f13ec['getCoordByCell'](_0xda1dce,_0x55041c,_0x5e8b9a,_0x4001f5),{columnHeaderHeightAndMarginTop:_0x572984}=_0x4001f5,{startX:_0x5d2408,startY:_0x35ae8b}=_0x3a86f8,{endX:_0x115ece,endY:_0x33862a}=_0x1a0189,_0x431064=_0x115ece-_0x5d2408,_0x3734e3=_0x33862a-_0x35ae8b,_0x38837c={'labelPosition':_0x35ae8b-_0x572984>=_0x34a5d2?_0x3e2ff1(0x2d6):_0x3e2ff1(0x2a2),'sheetID':_0x1e9ed1,'range':_0x3ae6c7,'color':_0x55878c,'name':_0x24abf0,'selection':_0x2c4da9,'left':_0x5d2408,'top':_0x35ae8b,'width':_0x431064,'height':_0x3734e3,'evented':!0x1,'zIndex':_0x2116ef};return new _0x54131f(_0x24abf0,_0x38837c);});_0x5e8b9a[_0x4d9220(0x8d)](_0x25b731,_0xe6c732),this[_0x4d9220(0x77)]=new Set(_0x25b731);}[_0x291ba3(0xe0)](){const _0x2ef330=_0x291ba3;var _0x557577;(_0x557577=this[_0x2ef330(0x77)])==null||_0x557577['forEach'](_0x18989=>_0x18989[_0x2ef330(0x35e)]());}[_0x291ba3(0x466)](){const _0x2a5954=_0x291ba3;return _0x3f13ec['getSheetObject'](this[_0x2a5954(0x379)][_0x2a5954(0x179)],this[_0x2a5954(0x379)]);}};_0x56e595=_0xcbb32f([_0x418f93(0x1,_0x2c7fed[_0x291ba3(0x16b)](_0x3f13ec[_0x291ba3(0x3fb)])),_0x418f93(0x2,_0x2c7fed[_0x291ba3(0x16b)](_0x47d88)),_0x418f93(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x42f)]))],_0x56e595);function _0x4a8764(_0x49ff6b){const _0x45901d=_0x291ba3,_0x3555a2=new Map();return _0x49ff6b[_0x45901d(0xb2)](_0xdb352d=>{const _0x3791ec=_0x45901d;if(_0x3555a2[_0x3791ec(0x169)](_0xdb352d[_0x3791ec(0x204)])){const _0x4ece57=_0x3555a2[_0x3791ec(0x400)](_0xdb352d[_0x3791ec(0x204)]);_0x4ece57[_0x3791ec(0x2a6)]+=',\x20'+_0xdb352d[_0x3791ec(0x2a6)];}else _0x3555a2[_0x3791ec(0x250)](_0xdb352d[_0x3791ec(0x204)],_0xdb352d);}),Array['from'](_0x3555a2[_0x45901d(0x271)]());}var _0x513779=function(){const _0x5f29fd=_0x291ba3;return _0x513779=Object[_0x5f29fd(0xdc)]||function(_0x4937b3){const _0x51db1c=_0x5f29fd;for(var _0x532646,_0x4dcc45=0x1,_0x5dd634=arguments[_0x51db1c(0xbb)];_0x4dcc45<_0x5dd634;_0x4dcc45++){_0x532646=arguments[_0x4dcc45];for(var _0x38de18 in _0x532646)Object['prototype']['hasOwnProperty']['call'](_0x532646,_0x38de18)&&(_0x4937b3[_0x38de18]=_0x532646[_0x38de18]);}return _0x4937b3;},_0x513779['apply'](this,arguments);},_0x413aa7=function(_0x5c3abe,_0x4e5b64){const _0x1b2c74=_0x291ba3;var _0x211526={};for(var _0x1e0a86 in _0x5c3abe)Object[_0x1b2c74(0x91)][_0x1b2c74(0x1d0)][_0x1b2c74(0x384)](_0x5c3abe,_0x1e0a86)&&_0x4e5b64[_0x1b2c74(0x39e)](_0x1e0a86)<0x0&&(_0x211526[_0x1e0a86]=_0x5c3abe[_0x1e0a86]);if(_0x5c3abe!=null&&typeof Object[_0x1b2c74(0x148)]==_0x1b2c74(0x34d)){for(var _0x164bab=0x0,_0x1e0a86=Object[_0x1b2c74(0x148)](_0x5c3abe);_0x164bab<_0x1e0a86[_0x1b2c74(0xbb)];_0x164bab++)_0x4e5b64[_0x1b2c74(0x39e)](_0x1e0a86[_0x164bab])<0x0&&Object[_0x1b2c74(0x91)][_0x1b2c74(0x1a0)]['call'](_0x5c3abe,_0x1e0a86[_0x164bab])&&(_0x211526[_0x1e0a86[_0x164bab]]=_0x5c3abe[_0x1e0a86[_0x164bab]]);}return _0x211526;},_0x5079ab=_0x18f464[_0x291ba3(0x88)](function(_0xd1606e,_0x35a29c){const _0x283310=_0x291ba3;var _0x5c58be=_0xd1606e[_0x283310(0x3fe)],_0x4e2a53=_0xd1606e['id'],_0x446574=_0xd1606e[_0x283310(0x496)],_0x1ca785=_0xd1606e[_0x283310(0x215)],_0x3fd017=_0x413aa7(_0xd1606e,['icon','id',_0x283310(0x496),'extend']),_0x5a6a3b=_0x283310(0x2b8)[_0x283310(0x457)](_0x4e2a53,'\x20')[_0x283310(0x457)](_0x446574||'')[_0x283310(0x418)](),_0x2a731e=_0x18f464[_0x283310(0x375)]('_'[_0x283310(0x457)](_0x44e9c6()));return _0x3c663b(_0x5c58be,''[_0x283310(0x457)](_0x4e2a53),{'defIds':_0x5c58be[_0x283310(0x47a)],'idSuffix':_0x2a731e[_0x283310(0x398)]},_0x513779({'ref':_0x35a29c,'className':_0x5a6a3b},_0x3fd017),_0x1ca785);});function _0x3c663b(_0x1f8364,_0x5a164a,_0x1e52d7,_0x36088f,_0x5c1765){const _0x459a36=_0x291ba3;return _0x18f464[_0x459a36(0x1e8)](_0x1f8364['tag'],_0x513779(_0x513779({'key':_0x5a164a},_0x158d39(_0x1f8364,_0x1e52d7,_0x5c1765)),_0x36088f),(_0x4a8638(_0x1f8364,_0x1e52d7)[_0x459a36(0x16f)]||[])[_0x459a36(0x21b)](function(_0x502b1e,_0x2cf348){const _0x33d481=_0x459a36;return _0x3c663b(_0x502b1e,''[_0x33d481(0x457)](_0x5a164a,'-')['concat'](_0x1f8364[_0x33d481(0x2ed)],'-')[_0x33d481(0x457)](_0x2cf348),_0x1e52d7,void 0x0,_0x5c1765);}));}function _0x158d39(_0xbcebf5,_0x42516c,_0x1e6573){const _0x4cbd82=_0x291ba3;var _0x3cbe2e=_0x513779({},_0xbcebf5[_0x4cbd82(0xe4)]);_0x1e6573!=null&&_0x1e6573[_0x4cbd82(0x40d)]&&_0x3cbe2e[_0x4cbd82(0xe1)]===_0x4cbd82(0x40d)&&(_0x3cbe2e['fill']=_0x1e6573['colorChannel1']);var _0x217193=_0x42516c['defIds'];return!_0x217193||_0x217193[_0x4cbd82(0xbb)]===0x0||(_0xbcebf5['tag']===_0x4cbd82(0x1fe)&&_0x3cbe2e[_0x4cbd82(0x49e)]&&(_0x3cbe2e[_0x4cbd82(0x49e)]=_0x3cbe2e[_0x4cbd82(0x49e)]+_0x42516c[_0x4cbd82(0x37e)]),Object[_0x4cbd82(0x36f)](_0x3cbe2e)[_0x4cbd82(0xb2)](function(_0x538d63){const _0x5b4a7d=_0x4cbd82;var _0x3d4574=_0x538d63[0x0],_0x5a2653=_0x538d63[0x1];typeof _0x5a2653==_0x5b4a7d(0x3f7)&&(_0x3cbe2e[_0x3d4574]=_0x5a2653[_0x5b4a7d(0x46d)](/url\(#(.*)\)/,_0x5b4a7d(0xb3)[_0x5b4a7d(0x457)](_0x42516c[_0x5b4a7d(0x37e)],')')));})),_0x3cbe2e;}function _0x4a8638(_0x45ad17,_0x1c9197){const _0x739f21=_0x291ba3;var _0x4565b0,_0x390568=_0x1c9197['defIds'];return!_0x390568||_0x390568[_0x739f21(0xbb)]===0x0?_0x45ad17:_0x45ad17[_0x739f21(0x2ed)]===_0x739f21(0xec)&&(!((_0x4565b0=_0x45ad17['children'])===null||_0x4565b0===void 0x0)&&_0x4565b0[_0x739f21(0xbb)])?_0x513779(_0x513779({},_0x45ad17),{'children':_0x45ad17[_0x739f21(0x16f)]['map'](function(_0xb6ed3b){const _0x116ffa=_0x739f21;return typeof _0xb6ed3b[_0x116ffa(0xe4)]['id']==_0x116ffa(0x3f7)&&_0x390568&&_0x390568[_0x116ffa(0x39e)](_0xb6ed3b[_0x116ffa(0xe4)]['id'])>-0x1?_0x513779(_0x513779({},_0xb6ed3b),{'attrs':_0x513779(_0x513779({},_0xb6ed3b[_0x116ffa(0xe4)]),{'id':_0xb6ed3b['attrs']['id']+_0x1c9197[_0x116ffa(0x37e)]})}):_0xb6ed3b;})}):_0x45ad17;}function _0x44e9c6(){const _0x562437=_0x291ba3;return Math[_0x562437(0x26e)]()['toString'](0x24)[_0x562437(0xed)](0x2,0x8);}_0x5079ab[_0x291ba3(0x310)]='UniverIcon';var _0x526a20={'tag':_0x291ba3(0x1f8),'attrs':{'fill':_0x291ba3(0x1ec),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x291ba3(0xf4)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x291ba3(0x449),'attrs':{'stroke':_0x291ba3(0x189),'d':_0x291ba3(0xb5),'strokeLinecap':'round','strokeLinejoin':_0x291ba3(0xfb),'strokeWidth':1.2}}]},{'tag':_0x291ba3(0xec),'attrs':{},'children':[{'tag':_0x291ba3(0x423),'attrs':{'id':_0x291ba3(0x12a)},'children':[{'tag':_0x291ba3(0x449),'attrs':{'fill':'#fff','d':_0x291ba3(0x3cb)}}]}]}],'defIds':[_0x291ba3(0x12a)]},_0x5eee6c=_0x18f464[_0x291ba3(0x88)](function(_0x57b830,_0x21c743){const _0x1be698=_0x291ba3;return _0x18f464['createElement'](_0x5079ab,Object[_0x1be698(0xdc)]({},_0x57b830,{'id':_0x1be698(0x21d),'ref':_0x21c743,'icon':_0x526a20}));});_0x5eee6c[_0x291ba3(0x310)]=_0x291ba3(0x18f);var _0x1c6981={'tag':_0x291ba3(0x1f8),'attrs':{'fill':'none','viewBox':_0x291ba3(0x260),'width':'1em','height':_0x291ba3(0xf4)},'children':[{'tag':'g','attrs':{'clipPath':_0x291ba3(0x255)},'children':[{'tag':_0x291ba3(0x449),'attrs':{'stroke':_0x291ba3(0x189),'d':_0x291ba3(0x233),'strokeLinecap':_0x291ba3(0xfb),'strokeLinejoin':_0x291ba3(0xfb),'strokeWidth':1.2}}]},{'tag':_0x291ba3(0xec),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x291ba3(0x3cb),'transform':'translate(.97)'}}]}]}],'defIds':[_0x291ba3(0x273)]},_0x44b724=_0x18f464['forwardRef'](function(_0x3ac275,_0x453630){const _0x4eff99=_0x291ba3;return _0x18f464[_0x4eff99(0x1e8)](_0x5079ab,Object[_0x4eff99(0xdc)]({},_0x3ac275,{'id':_0x4eff99(0x177),'ref':_0x453630,'icon':_0x1c6981}));});_0x44b724['displayName']=_0x291ba3(0x36b);function _0x3618fd(_0x2fcbc8){const _0x4aaa6b=_0x291ba3;var _0xf3e3b8,_0x3fe12f,_0x3ec107='';if(typeof _0x2fcbc8==_0x4aaa6b(0x3f7)||typeof _0x2fcbc8==_0x4aaa6b(0xd9))_0x3ec107+=_0x2fcbc8;else{if(typeof _0x2fcbc8=='object'){if(Array[_0x4aaa6b(0x358)](_0x2fcbc8)){var _0x13eaaf=_0x2fcbc8[_0x4aaa6b(0xbb)];for(_0xf3e3b8=0x0;_0xf3e3b8<_0x13eaaf;_0xf3e3b8++)_0x2fcbc8[_0xf3e3b8]&&(_0x3fe12f=_0x3618fd(_0x2fcbc8[_0xf3e3b8]))&&(_0x3ec107&&(_0x3ec107+='\x20'),_0x3ec107+=_0x3fe12f);}else{for(_0x3fe12f in _0x2fcbc8)_0x2fcbc8[_0x3fe12f]&&(_0x3ec107&&(_0x3ec107+='\x20'),_0x3ec107+=_0x3fe12f);}}}return _0x3ec107;}function _0x42303b(){for(var _0xb237ad,_0x22d5e3,_0x3d9189=0x0,_0x24fce4='',_0xb641f8=arguments['length'];_0x3d9189<_0xb641f8;_0x3d9189++)(_0xb237ad=arguments[_0x3d9189])&&(_0x22d5e3=_0x3618fd(_0xb237ad))&&(_0x24fce4&&(_0x24fce4+='\x20'),_0x24fce4+=_0x22d5e3);return _0x24fce4;}const _0x4b4c5c={'onlineStatusIcon':'univer-online-status-icon','onlineStatusTitle':_0x291ba3(0x3a1),'onlineStatus':_0x291ba3(0x3b0),'online':'univer-online','offline':_0x291ba3(0x14d)};function _0x45e6da(_0x1fda2d){const _0x59fc4e=_0x291ba3;switch(_0x1fda2d){case _0x5b6195[_0x59fc4e(0x2cf)]:return'collabStatus.offline';case _0x5b6195[_0x59fc4e(0x426)]:return _0x59fc4e(0x241);case _0x5b6195[_0x59fc4e(0x458)]:return _0x59fc4e(0x3ec);case _0x5b6195[_0x59fc4e(0x180)]:return'collabStatus.notCollab';case _0x5b6195[_0x59fc4e(0xda)]:case _0x5b6195[_0x59fc4e(0x48f)]:case _0x5b6195[_0x59fc4e(0x1f7)]:return'collabStatus.syncing';case _0x5b6195['SYNCED']:return'collabStatus.synced';}}function _0x3603b1(_0x2afe92){const _0x51854b=_0x291ba3,{status$:_0x517037}=_0x2afe92,_0x3418c2=_0x4b403d[_0x51854b(0x333)](_0x517037,_0x5b6195[_0x51854b(0x180)]),_0x10d4e9=_0x2c7fed[_0x51854b(0x1e1)](_0x2c7fed[_0x51854b(0x1a7)]),_0x992728=_0x2c7fed[_0x51854b(0x1e1)](_0x594fe1['CollaborationSessionService']),_0x124254=_0x3418c2!==_0x5b6195[_0x51854b(0x2cf)],_0x58c067=_0x10d4e9['t'](_0x45e6da(_0x3418c2)),_0x2400c7=_0x42303b(_0x4b4c5c['onlineStatus'],{[_0x4b4c5c[_0x51854b(0x269)]]:_0x124254,[_0x4b4c5c['offline']]:!_0x124254}),_0x26f5c7=_0x124254?_0x18f464[_0x51854b(0x1e8)](_0x44b724,null):_0x18f464[_0x51854b(0x1e8)](_0x5eee6c,null),_0x120cc6=_0x18f464[_0x51854b(0x318)](()=>{const _0x403cf1=_0x51854b;_0x124254||_0x992728[_0x403cf1(0x3d7)]();},[_0x124254,_0x992728]);function _0x5f3d35(){const _0x34c5be=_0x51854b;return _0x18f464[_0x34c5be(0x1e8)](_0x34c5be(0x71),{'className':_0x2400c7,'onClick':_0x120cc6},_0x18f464[_0x34c5be(0x1e8)]('div',{'className':_0x4b4c5c[_0x34c5be(0x1aa)]},_0x26f5c7),_0x18f464[_0x34c5be(0x1e8)]('div',{'className':_0x4b4c5c[_0x34c5be(0x39b)]},_0x58c067));}return _0x124254?_0x5f3d35():_0x18f464['createElement'](_0x4d689c[_0x51854b(0x3dc)],{'title':_0x10d4e9['t']('collab-client.tooltip.reconnect')},_0x5f3d35());}var _0x1bcc55=Object[_0x291ba3(0x3e4)],_0x12a26c=Object[_0x291ba3(0x373)],_0x27207c=(_0x42d3f0,_0x513ff5,_0x139d6c,_0x93c2ec)=>{const _0x295751=_0x291ba3;for(var _0x24f36e=_0x93c2ec>0x1?void 0x0:_0x93c2ec?_0x12a26c(_0x513ff5,_0x139d6c):_0x513ff5,_0xf470e0=_0x42d3f0[_0x295751(0xbb)]-0x1,_0x5779fc;_0xf470e0>=0x0;_0xf470e0--)(_0x5779fc=_0x42d3f0[_0xf470e0])&&(_0x24f36e=(_0x93c2ec?_0x5779fc(_0x513ff5,_0x139d6c,_0x24f36e):_0x5779fc(_0x24f36e))||_0x24f36e);return _0x93c2ec&&_0x24f36e&&_0x1bcc55(_0x513ff5,_0x139d6c,_0x24f36e),_0x24f36e;},_0x5e989c=(_0x25faeb,_0xec88cb)=>(_0x1f0756,_0x519394)=>_0xec88cb(_0x1f0756,_0x519394,_0x25faeb);_0x594fe1[_0x291ba3(0x432)]=class extends _0x2c7fed['Disposable']{constructor(_0x5f2bf4,_0x363343,_0x56d0a1,_0x2b6c5a){const _0x4aab57=_0x291ba3;super(),_0x24cbc7(this,_0x4aab57(0x6d),new _0x1fc547[(_0x4aab57(0x467))](_0x5b6195[_0x4aab57(0x180)])),(this[_0x4aab57(0x79)]=_0x5f2bf4,this[_0x4aab57(0x9d)]=_0x363343,this['_injector']=_0x56d0a1,this[_0x4aab57(0x27f)]=_0x2b6c5a,this[_0x4aab57(0x346)](),this[_0x4aab57(0xa1)]());}['_initStatusListener'](){const _0x84492=_0x291ba3;this['disposeWithMe'](this[_0x84492(0x79)][_0x84492(0x43c)][_0x84492(0x256)](_0x1fc547['switchMap'](()=>{const _0x1933a3=_0x84492,_0x13951b=this[_0x1933a3(0x79)][_0x1933a3(0xa6)]();return _0x13951b?this[_0x1933a3(0x27f)][_0x1933a3(0x17f)](_0x13951b[_0x1933a3(0x11d)]()):_0x1fc547['of'](null);}),_0x1fc547[_0x84492(0x1e2)](_0x274cf1=>_0x274cf1?_0x274cf1['status$']:_0x1fc547['of'](_0x5b6195[_0x84492(0x180)])))['subscribe'](_0x314b55=>{const _0x19bc1f=_0x84492;this[_0x19bc1f(0x6d)]['next'](_0x314b55);}));}['_initStatusComponent'](){const _0x43d190=_0x291ba3;this[_0x43d190(0x351)](this[_0x43d190(0x9d)]['registerComponent'](_0x4b403d[_0x43d190(0x412)][_0x43d190(0x31a)],()=>_0x2c7fed[_0x43d190(0x461)](_0x6545f3({'status$':this['_status$'][_0x43d190(0x442)]()}),this[_0x43d190(0x10d)])));}},_0x594fe1['DesktopCollaborationStatusDisplayController']=_0x27207c([_0x5e989c(0x0,_0x2c7fed[_0x291ba3(0x27a)]),_0x5e989c(0x1,_0x4b403d[_0x291ba3(0x39d)]),_0x5e989c(0x2,_0x2c7fed['Inject'](_0x2c7fed[_0x291ba3(0x4a2)])),_0x5e989c(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1[_0x291ba3(0x1be)]))],_0x594fe1[_0x291ba3(0x432)]);function _0x6545f3(_0x5412dc){const {status$:_0x3b5dfb}=_0x5412dc;return function(){return _0x18f464['createElement'](_0x3603b1,{'status$':_0x3b5dfb});};}const _0x47e3f7=_0x2c7fed[_0x291ba3(0x33e)]('uni.network.url-service');var _0x28c600=Object[_0x291ba3(0x3e4)],_0x20ead4=Object['getOwnPropertyDescriptor'],_0x311fac=(_0x187596,_0x435c34,_0x187cef,_0x10c0bb)=>{const _0x518fc8=_0x291ba3;for(var _0x2fa654=_0x10c0bb>0x1?void 0x0:_0x10c0bb?_0x20ead4(_0x435c34,_0x187cef):_0x435c34,_0xe0563e=_0x187596[_0x518fc8(0xbb)]-0x1,_0x4e17d4;_0xe0563e>=0x0;_0xe0563e--)(_0x4e17d4=_0x187596[_0xe0563e])&&(_0x2fa654=(_0x10c0bb?_0x4e17d4(_0x435c34,_0x187cef,_0x2fa654):_0x4e17d4(_0x2fa654))||_0x2fa654);return _0x10c0bb&&_0x2fa654&&_0x28c600(_0x435c34,_0x187cef,_0x2fa654),_0x2fa654;},_0x2444ed=(_0x59c500,_0x3f0dd4)=>(_0x1a2b42,_0x50dff1)=>_0x3f0dd4(_0x1a2b42,_0x50dff1,_0x59c500);_0x594fe1['DataLoaderController']=class extends _0x2c7fed[_0x291ba3(0x2d5)]{constructor(_0x4389e3,_0x99b4c,_0x235280,_0x13db5a,_0x470453,_0x1d4ddb){const _0x31f833=_0x291ba3;super(),this['_urlService']=_0x4389e3,this[_0x31f833(0x139)]=_0x99b4c,this['_commandService']=_0x235280,this[_0x31f833(0x106)]=_0x13db5a,this[_0x31f833(0x24d)]=_0x470453,_0x1d4ddb?_0x1d4ddb==null||_0x1d4ddb[_0x31f833(0x3ad)]()['then'](()=>this[_0x31f833(0x366)]()):(this['_logService'][_0x31f833(0x1e9)]('[DataLoaderController]',_0x31f833(0x9f)),this['_init']());}async[_0x291ba3(0x366)](){const _0x2b50d6=_0x291ba3,_0x17b442=this['_urlService'][_0x2b50d6(0x45a)]('unit'),_0x4ecdb6=this[_0x2b50d6(0x483)][_0x2b50d6(0x45a)](_0x2b50d6(0x33c));if(!_0x17b442||!_0x4ecdb6){this[_0x2b50d6(0x139)]['debug'](_0x2b50d6(0x25d),_0x2b50d6(0x3e7));return;}switch(Number(_0x4ecdb6)){case _0x4cd70d[_0x2b50d6(0x2aa)]:{const _0x20ea77=await this[_0x2b50d6(0x20b)](_0x17b442);this[_0x2b50d6(0x3e8)](_0x20ea77);break;}case _0x4cd70d[_0x2b50d6(0x130)]:{await this[_0x2b50d6(0x1f3)](_0x17b442);break;}default:{this['_logService'][_0x2b50d6(0x41d)]('[DataLoaderController]',_0x2b50d6(0x198));break;}}}async[_0x291ba3(0x3e8)](_0x63e48d){const _0x5d2245=_0x291ba3;await this[_0x5d2245(0x12d)](_0x63e48d),_0x63e48d[_0x5d2245(0x415)][_0x5d2245(0x256)](_0x1fc547['takeUntil'](this[_0x5d2245(0xf7)]))[_0x5d2245(0x3f2)](_0xeb0028=>{const _0x3f7fca=_0x5d2245;_0xeb0028&&this[_0x3f7fca(0x208)](_0xeb0028);}),this[_0x5d2245(0x483)][_0x5d2245(0x3b7)][_0x5d2245(0x256)](_0x1fc547['takeUntil'](this[_0x5d2245(0xf7)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x63e48d));}[_0x291ba3(0x208)](_0x20fa2c,_0x30047a=!0x1){const _0x373259=_0x291ba3,_0x2cf208=this['_urlService'][_0x373259(0x45a)](_0x373259(0x2a9));_0x20fa2c[_0x373259(0x3d8)]()!==_0x2cf208&&this[_0x373259(0x483)][_0x373259(0x42e)](_0x373259(0x2a9),_0x20fa2c[_0x373259(0x3d8)](),_0x30047a);}async['_updateSubUnitFromURLParams'](_0x541028){const _0xac578b=_0x291ba3;var _0x2ee61c;const _0x4f2341=this['_urlService'][_0xac578b(0x45a)](_0xac578b(0x2a9));if(!_0x4f2341||!_0x541028[_0xac578b(0x1ae)](_0x4f2341)){const _0x425a0a=_0x541028[_0xac578b(0x451)]()[0x0],_0x19bf52=_0x541028[_0xac578b(0x1ae)](_0x425a0a);if(!_0x19bf52)return;this[_0xac578b(0x208)](_0x19bf52,!0x0),await this['_commandService'][_0xac578b(0x341)](_0x244249[_0xac578b(0x32c)]['id'],{'unitId':_0x541028[_0xac578b(0x11d)](),'subUnitId':_0x425a0a});return;}((_0x2ee61c=_0x541028[_0xac578b(0x409)]())==null?void 0x0:_0x2ee61c[_0xac578b(0x3d8)]())!==_0x4f2341&&await this['_commandService'][_0xac578b(0x341)](_0x244249[_0xac578b(0x32c)]['id'],{'unitId':_0x541028[_0xac578b(0x11d)](),'subUnitId':_0x4f2341});}async[_0x291ba3(0x20b)](_0x1ce6f2){const _0xe83a03=_0x291ba3;let _0x109636=0x0;const _0x597f8a=await this[_0xe83a03(0x106)][_0xe83a03(0x158)](_0x1ce6f2);return _0x597f8a&&(_0x597f8a['awaitingChangeset']||_0x597f8a[_0xe83a03(0x1a9)][_0xe83a03(0xbb)]!==0x0)&&(_0x109636=_0x597f8a[_0xe83a03(0xa8)]),_0x109636===0x0&&this[_0xe83a03(0x139)][_0xe83a03(0x1e9)](_0xe83a03(0x25d),_0xe83a03(0x178)),this['_snapshotService'][_0xe83a03(0x3a3)](_0x1ce6f2,_0x109636);}async[_0x291ba3(0x1f3)](_0x51fbfa){const _0x1d492e=_0x291ba3;let _0x50c161=0x0;const _0xae207b=await this[_0x1d492e(0x106)][_0x1d492e(0x158)](_0x51fbfa);return _0xae207b&&(_0xae207b[_0x1d492e(0x3e0)]||_0xae207b[_0x1d492e(0x1a9)][_0x1d492e(0xbb)]!==0x0)&&(_0x50c161=_0xae207b[_0x1d492e(0xa8)]),_0x50c161===0x0&&this[_0x1d492e(0x139)]['debug'](_0x1d492e(0x25d),_0x1d492e(0x178)),this[_0x1d492e(0x24d)]['loadDoc'](_0x51fbfa,_0x50c161);}},_0x594fe1[_0x291ba3(0x340)]=_0x311fac([_0x2444ed(0x0,_0x47e3f7),_0x2444ed(0x1,_0x2c7fed[_0x291ba3(0x2fd)]),_0x2444ed(0x2,_0x2c7fed['ICommandService']),_0x2444ed(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1[_0x291ba3(0x378)])),_0x2444ed(0x4,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7[_0x291ba3(0x394)])),_0x2444ed(0x5,_0x2c7fed[_0x291ba3(0x425)](_0x214b0d['IRemoteInstanceService']))],_0x594fe1['DataLoaderController']);var _0x14f78c=Object[_0x291ba3(0x3e4)],_0x2888a7=Object[_0x291ba3(0x373)],_0x3d5547=(_0x14cec8,_0x46de64,_0x1b6bd0,_0x577cd4)=>{const _0x16eb8a=_0x291ba3;for(var _0x2495da=_0x577cd4>0x1?void 0x0:_0x577cd4?_0x2888a7(_0x46de64,_0x1b6bd0):_0x46de64,_0x37d385=_0x14cec8[_0x16eb8a(0xbb)]-0x1,_0x37809c;_0x37d385>=0x0;_0x37d385--)(_0x37809c=_0x14cec8[_0x37d385])&&(_0x2495da=(_0x577cd4?_0x37809c(_0x46de64,_0x1b6bd0,_0x2495da):_0x37809c(_0x2495da))||_0x2495da);return _0x577cd4&&_0x2495da&&_0x14f78c(_0x46de64,_0x1b6bd0,_0x2495da),_0x2495da;},_0x268554=(_0x2577f0,_0xb246b0)=>(_0x184418,_0x11056d)=>_0xb246b0(_0x184418,_0x11056d,_0x2577f0);const _0x1bc910=_0x291ba3(0x32f),_0x45252c=_0x291ba3(0x302);let _0x19c2c9=class extends _0x2c7fed['Disposable']{constructor(_0x4e9971,_0x41b69c){const _0x3c196e=_0x291ba3;super(),this['_univerInstanceService']=_0x4e9971,this['_configService']=_0x41b69c,this[_0x3c196e(0x366)]();}[_0x291ba3(0x366)](){const _0x2ef1e1=_0x291ba3;this[_0x2ef1e1(0x351)](this['_univerInstanceService'][_0x2ef1e1(0x43c)][_0x2ef1e1(0x3f2)](()=>{const _0x3df928=_0x2ef1e1;var _0x214c97;const _0x51997f=this[_0x3df928(0x79)][_0x3df928(0xa6)]();let _0x8b000f=(_0x214c97=this[_0x3df928(0x2e2)][_0x3df928(0x304)](_0x1bc910))!=null?_0x214c97:_0x45252c;_0x51997f instanceof _0x2c7fed['Workbook']&&(_0x8b000f=_0x51997f[_0x3df928(0x2a6)]),document[_0x3df928(0x2f7)]=_0x8b000f;}));}};_0x19c2c9=_0x3d5547([_0x268554(0x0,_0x2c7fed[_0x291ba3(0x27a)]),_0x268554(0x1,_0x2c7fed[_0x291ba3(0x309)])],_0x19c2c9);var _0x503f9d=Object[_0x291ba3(0x3e4)],_0x95abd6=Object[_0x291ba3(0x373)],_0x3519ff=(_0x30865e,_0x2ba075,_0x3e67d7,_0x26b469)=>{for(var _0x2ea2f6=_0x26b469>0x1?void 0x0:_0x26b469?_0x95abd6(_0x2ba075,_0x3e67d7):_0x2ba075,_0x13fc8a=_0x30865e['length']-0x1,_0x43e9eb;_0x13fc8a>=0x0;_0x13fc8a--)(_0x43e9eb=_0x30865e[_0x13fc8a])&&(_0x2ea2f6=(_0x26b469?_0x43e9eb(_0x2ba075,_0x3e67d7,_0x2ea2f6):_0x43e9eb(_0x2ea2f6))||_0x2ea2f6);return _0x26b469&&_0x2ea2f6&&_0x503f9d(_0x2ba075,_0x3e67d7,_0x2ea2f6),_0x2ea2f6;},_0x559668=(_0x4b9fce,_0x2438ec)=>(_0x18dbd4,_0x55fd21)=>_0x2438ec(_0x18dbd4,_0x55fd21,_0x4b9fce);let _0x1d743a=class{constructor(_0x12e0b3,_0x4a9e62,_0x203997){const _0x58eb6e=_0x291ba3;this[_0x58eb6e(0x2e2)]=_0x12e0b3,this[_0x58eb6e(0x2bb)]=_0x4a9e62,this[_0x58eb6e(0x191)]=_0x203997,this[_0x58eb6e(0x1d3)]();}[_0x291ba3(0x1d3)](){const _0x384ef3=_0x291ba3;this[_0x384ef3(0x2bb)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x5a5cdb,_0x253a78)=>_0x253a78(_0x5a5cdb)[_0x384ef3(0x256)](_0x1fc547[_0x384ef3(0x155)](async _0x19bf5a=>{const _0x4ecb4e=_0x384ef3,_0x3ed286=_0x19bf5a;if(_0x3ed286[_0x4ecb4e(0x469)]===0x191&&window[_0x4ecb4e(0x1f2)](this[_0x4ecb4e(0x191)]['t'](_0x4ecb4e(0x2df)))){const _0x986881=window[_0x4ecb4e(0x2f6)](window[_0x4ecb4e(0x28c)][_0x4ecb4e(0x2f0)]);window['location'][_0x4ecb4e(0x2f0)]=this[_0x4ecb4e(0x3d1)]()+_0x4ecb4e(0x254)+_0x986881;}return _0x3ed286;}))});}['_getLoginPath'](){const _0x11a95a=_0x291ba3;var _0x28c116,_0x3b3eb1;const _0x26539f=this[_0x11a95a(0x2e2)]['getConfig'](_0x52fcac),_0x1cd042=this[_0x11a95a(0x2e2)][_0x11a95a(0x304)](_0x229401);return(_0x3b3eb1=(_0x28c116=_0x1cd042==null?void 0x0:_0x1cd042[_0x11a95a(0x468)])!=null?_0x28c116:_0x26539f)!=null?_0x3b3eb1:_0x18b7b1;}};_0x1d743a=_0x3519ff([_0x559668(0x0,_0x2c7fed[_0x291ba3(0x309)]),_0x559668(0x1,_0x2c7fed['Inject'](_0x4893ce[_0x291ba3(0x99)])),_0x559668(0x2,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x1a7)]))],_0x1d743a);var _0x5e8f44=Object[_0x291ba3(0x3e4)],_0x375008=Object['getOwnPropertyDescriptor'],_0x3c247c=(_0x29aef5,_0x4ee5d7,_0x1e6479,_0x1378e2)=>{const _0x168eaf=_0x291ba3;for(var _0x430a40=_0x1378e2>0x1?void 0x0:_0x1378e2?_0x375008(_0x4ee5d7,_0x1e6479):_0x4ee5d7,_0x1f5de0=_0x29aef5[_0x168eaf(0xbb)]-0x1,_0x26bce3;_0x1f5de0>=0x0;_0x1f5de0--)(_0x26bce3=_0x29aef5[_0x1f5de0])&&(_0x430a40=(_0x1378e2?_0x26bce3(_0x4ee5d7,_0x1e6479,_0x430a40):_0x26bce3(_0x430a40))||_0x430a40);return _0x1378e2&&_0x430a40&&_0x5e8f44(_0x4ee5d7,_0x1e6479,_0x430a40),_0x430a40;},_0x5e3316=(_0x370081,_0x297ae)=>(_0x16b61,_0x4820d8)=>_0x297ae(_0x16b61,_0x4820d8,_0x370081);const _0x54f2cb=_0x291ba3(0x395),_0x40d131=_0x291ba3(0x28b);_0x594fe1[_0x291ba3(0x3c6)]=class extends _0x2c7fed[_0x291ba3(0x2e7)]{constructor(_0x242f36,_0x531705){const _0x349687=_0x291ba3;super(),this[_0x349687(0x472)]=_0x242f36,this[_0x349687(0x2e2)]=_0x531705,this[_0x349687(0x69)]();}[_0x291ba3(0x69)](){const _0x58771a=_0x291ba3,_0x1b3d7c=this;this[_0x58771a(0x351)](this[_0x58771a(0x472)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x4893ce[_0x58771a(0x478)]({'isMatch'(_0x5541e7){const _0x23b729=_0x58771a;var _0x5af42b;if(_0x5541e7[_0x23b729(0x3c7)]===_0x23b729(0x388)&&((_0x5af42b=_0x5541e7[_0x23b729(0x38b)])!=null&&_0x5af42b['body'])){const {objectID:_0x435334,objectType:_0x53fe90}=_0x5541e7['requestParams'][_0x23b729(0x470)]||{};if(!_0x435334||_0x53fe90===void 0x0)return!0x1;const _0x1aae1c=_0x1b3d7c[_0x23b729(0x484)]()+'/'+_0x53fe90+_0x23b729(0x209)+_0x435334+_0x23b729(0x47e);if(_0x5541e7['url']===_0x1aae1c)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x23bae2){const _0xae4956=_0x58771a;var _0x27b231;return(_0x27b231=_0x23bae2[_0xae4956(0x38b)])==null?void 0x0:_0x27b231[_0xae4956(0x470)];},'mergeParamsToRequest'(_0x53b691,_0x409a5b){const _0xb8d872=_0x58771a,_0x2091b8=_0x1b3d7c['_getAPIPrefixPath']()+_0xb8d872(0x197),_0xfdd35e=_0x53b691[_0xb8d872(0x2d8)]((_0x38dc0d,_0x4f18f3)=>{const {unitID:_0x1952e2,objectID:_0x5c3db7,objectType:_0x40670e,actions:_0x4a37ac}=_0x4f18f3;return _0x38dc0d[_0x1952e2]||(_0x38dc0d[_0x1952e2]={}),_0x38dc0d[_0x1952e2][_0x5c3db7]||(_0x38dc0d[_0x1952e2][_0x5c3db7]={'objectID':_0x5c3db7,'objectType':_0x40670e,'actions':[]}),_0x38dc0d[_0x1952e2][_0x5c3db7]['actions']['push'](..._0x4a37ac),_0x38dc0d;},{}),_0x45c07d=[];for(const _0x258267 in _0xfdd35e)for(const _0xbdcc69 in _0xfdd35e[_0x258267]){const {actions:_0x18d8b3,objectType:_0x629a7e}=_0xfdd35e[_0x258267][_0xbdcc69],_0x1a5179=[...new Set(_0x18d8b3)];_0x45c07d['push']({'unitID':_0x258267,'objectID':_0xbdcc69,'objectType':_0x629a7e,'actions':_0x1a5179});}return new _0x4893ce['HTTPRequest']('POST',_0x2091b8,{'headers':_0x409a5b['headers'],'withCredentials':_0x409a5b[_0xb8d872(0x1b9)],'responseType':_0x409a5b['responseType'],'body':{'requests':_0x45c07d}});}},{'distributeResult'(_0x2098d9,_0x4b6eb3){const _0x4b9e2c=_0x58771a,{objectActions:_0x26d303}=_0x2098d9;return _0x4b6eb3[_0x4b9e2c(0x21b)](_0x103c6c=>{const _0x2c7f68=_0x4b9e2c,{unitID:_0x188373,objectID:_0x3fb41d,actions:_0x500617}=_0x103c6c,_0x7e8462=_0x26d303['find'](_0xcfc40=>_0xcfc40[_0x2c7f68(0x2ea)]===_0x188373&&_0xcfc40[_0x2c7f68(0x1fc)]===_0x3fb41d),_0x1f13b1=_0x500617[_0x2c7f68(0x21b)](_0x315926=>_0x7e8462==null?void 0x0:_0x7e8462[_0x2c7f68(0x200)][_0x2c7f68(0x125)](_0x129775=>_0x129775['action']===_0x315926))[_0x2c7f68(0x1d1)](_0x5ef4c9=>!!_0x5ef4c9);return{'config':_0x103c6c,'result':{'actions':_0x1f13b1,'error':_0x2098d9[_0x2c7f68(0x41d)]}};});}})}));}[_0x291ba3(0x484)](){const _0x37f2b5=_0x291ba3;var _0x1a20bd,_0x4b0f13;const _0x21fb55=this[_0x37f2b5(0x2e2)][_0x37f2b5(0x304)](_0x54f2cb),_0x29863c=this[_0x37f2b5(0x2e2)][_0x37f2b5(0x304)](_0x229401);return(_0x4b0f13=(_0x1a20bd=_0x29863c==null?void 0x0:_0x29863c[_0x37f2b5(0x1dc)])!=null?_0x1a20bd:_0x21fb55)!=null?_0x4b0f13:_0x40d131;}async[_0x291ba3(0x17d)](_0x11a915){const _0x5a01ba=_0x291ba3,_0x2bebec=this[_0x5a01ba(0x484)]()+'/'+_0x11a915['objectType']+'/object';return(await this['_HTTPService'][_0x5a01ba(0x4a6)](_0x2bebec,{'body':_0x11a915}))[_0x5a01ba(0x470)][_0x5a01ba(0x1fc)]||'';}async[_0x291ba3(0x3bd)](_0x148861){const _0x3aab37=_0x291ba3,_0x5bd14e=this[_0x3aab37(0x484)]()+_0x3aab37(0x3d6);return(await this[_0x3aab37(0x472)]['post'](_0x5bd14e,{'body':_0x148861}))[_0x3aab37(0x470)][_0x3aab37(0x31e)];}async[_0x291ba3(0x43b)](_0x585ab3){const _0x611949=_0x291ba3,_0xeaa9ee=this[_0x611949(0x484)]()+'/'+_0x585ab3[_0x611949(0xb1)]+_0x611949(0x209)+_0x585ab3['objectID'];await this[_0x611949(0x472)][_0x611949(0x1eb)](_0xeaa9ee,{'body':_0x585ab3});}async[_0x291ba3(0x108)](_0x3267ff){const _0x2605de=_0x291ba3,_0x259456=this['_getAPIPrefixPath']()+'/'+_0x3267ff['objectType']+_0x2605de(0x209)+_0x3267ff[_0x2605de(0x1fc)]+_0x2605de(0x47e);return(await this['_HTTPService']['post'](_0x259456,{'body':_0x3267ff}))[_0x2605de(0x470)]['actions'];}async[_0x291ba3(0x152)](_0x56fa4c){const _0x3dc0e0=_0x291ba3,_0x39304c=this[_0x3dc0e0(0x484)]()+_0x3dc0e0(0x197);return(await this[_0x3dc0e0(0x472)]['post'](_0x39304c,{'body':{'requests':_0x56fa4c}}))['body'][_0x3dc0e0(0x293)];}async[_0x291ba3(0x459)](_0x3a0b6c){const _0x47c402=_0x291ba3,_0x3eb163=this[_0x47c402(0x484)]()+'/'+_0x3a0b6c[_0x47c402(0xb1)]+'/role',_0x4942fd=await this[_0x47c402(0x472)][_0x47c402(0x4a6)](_0x3eb163,{'body':_0x3a0b6c});return{'roles':_0x4942fd[_0x47c402(0x470)][_0x47c402(0xde)],'actions':_0x4942fd['body'][_0x47c402(0x200)]};}async[_0x291ba3(0xaa)](_0x2cc480){const _0x31b660=_0x291ba3,_0x211cb8=this[_0x31b660(0x484)]()+_0x31b660(0xfc);await this[_0x31b660(0x472)][_0x31b660(0x39c)](_0x211cb8,{'params':{'collaboratorID':_0x2cc480[_0x31b660(0x386)],'objectID':_0x2cc480[_0x31b660(0x1fc)],'unitID':_0x2cc480[_0x31b660(0x2ea)]}});}async[_0x291ba3(0x2b9)](_0x1e73a5){const _0x5ee192=_0x291ba3,_0x3ca6ce=this[_0x5ee192(0x484)]()+'/collaborator';await this[_0x5ee192(0x472)]['patch'](_0x3ca6ce,{'body':_0x1e73a5});}async[_0x291ba3(0x86)](_0x226d46){const _0x5ddef7=_0x291ba3,_0x170b4d=this[_0x5ddef7(0x484)]()+_0x5ddef7(0xfc);await this[_0x5ddef7(0x472)][_0x5ddef7(0x4a6)](_0x170b4d,{'body':_0x226d46});}async[_0x291ba3(0xfa)](_0x2e6cf7){const _0x4855b9=_0x291ba3,_0x1a38a7=this[_0x4855b9(0x484)]()+_0x4855b9(0xfc);return(await this[_0x4855b9(0x472)][_0x4855b9(0x400)](_0x1a38a7,{'params':{'objectID':_0x2e6cf7[_0x4855b9(0x1fc)],'unitID':_0x2e6cf7[_0x4855b9(0x2ea)]}}))['body']['collaborators'];}async[_0x291ba3(0x1bb)](_0x5c32fb){const _0x1fbe54=_0x291ba3,_0x178a5b=this[_0x1fbe54(0x484)]()+_0x1fbe54(0xfc);await this[_0x1fbe54(0x472)][_0x1fbe54(0x1eb)](_0x178a5b,{'body':_0x5c32fb});}},_0x594fe1['AuthzIoHttpService']=_0x3c247c([_0x5e3316(0x0,_0x2c7fed[_0x291ba3(0x16b)](_0x4893ce[_0x291ba3(0x99)])),_0x5e3316(0x1,_0x2c7fed['Inject'](_0x2c7fed['IConfigService']))],_0x594fe1['AuthzIoHttpService']);var _0x3e03f2=Object[_0x291ba3(0x3e4)],_0x5b8a91=Object['getOwnPropertyDescriptor'],_0x21906d=(_0xb6a741,_0x29d5b2,_0x213252,_0x4e74da)=>{const _0x41a687=_0x291ba3;for(var _0x66882e=_0x4e74da>0x1?void 0x0:_0x4e74da?_0x5b8a91(_0x29d5b2,_0x213252):_0x29d5b2,_0x4ecf4e=_0xb6a741[_0x41a687(0xbb)]-0x1,_0x531003;_0x4ecf4e>=0x0;_0x4ecf4e--)(_0x531003=_0xb6a741[_0x4ecf4e])&&(_0x66882e=(_0x4e74da?_0x531003(_0x29d5b2,_0x213252,_0x66882e):_0x531003(_0x66882e))||_0x66882e);return _0x4e74da&&_0x66882e&&_0x3e03f2(_0x29d5b2,_0x213252,_0x66882e),_0x66882e;},_0x3b716c=(_0x4c7650,_0x447a23)=>(_0x2349fb,_0x100aea)=>_0x447a23(_0x2349fb,_0x100aea,_0x4c7650);let _0x58fe3e=class{constructor(_0x2d6d01){const _0x3d2fbb=_0x291ba3;this[_0x3d2fbb(0x2bb)]=_0x2d6d01,this[_0x3d2fbb(0x222)]();}[_0x291ba3(0x222)](){const _0x4ff525=_0x291ba3;this[_0x4ff525(0x2bb)][_0x4ff525(0x3f3)]({'interceptor':(_0x36b4df,_0x3e7f94)=>{const _0x1c8299=_0x4ff525,_0x188cf1=_0x36b4df[_0x1c8299(0x488)],_0x43aa9d=_0x3cd408[_0x1c8299(0x284)]();return _0x43aa9d&&_0x188cf1['set']('x-univer-host',_0x43aa9d),_0x3e7f94(_0x36b4df);}});}};_0x58fe3e=_0x21906d([_0x3b716c(0x0,_0x2c7fed['Inject'](_0x4893ce['HTTPService']))],_0x58fe3e);var _0x21de1c=Object[_0x291ba3(0x3e4)],_0x5ce4f6=Object[_0x291ba3(0x373)],_0x291374=(_0x210712,_0x36e102,_0x5c20a7,_0x3b3cda)=>{const _0x1858d5=_0x291ba3;for(var _0x2eb671=_0x3b3cda>0x1?void 0x0:_0x3b3cda?_0x5ce4f6(_0x36e102,_0x5c20a7):_0x36e102,_0x243997=_0x210712[_0x1858d5(0xbb)]-0x1,_0x46fb25;_0x243997>=0x0;_0x243997--)(_0x46fb25=_0x210712[_0x243997])&&(_0x2eb671=(_0x3b3cda?_0x46fb25(_0x36e102,_0x5c20a7,_0x2eb671):_0x46fb25(_0x2eb671))||_0x2eb671);return _0x3b3cda&&_0x2eb671&&_0x21de1c(_0x36e102,_0x5c20a7,_0x2eb671),_0x2eb671;},_0x52249d=(_0x143edb,_0x5e465d)=>(_0x536132,_0x6467a7)=>_0x5e465d(_0x536132,_0x6467a7,_0x143edb);const _0x1b239b=[_0x291ba3(0xab),_0x291ba3(0x201),_0x291ba3(0x129),_0x291ba3(0x36e),'image/bmp'],_0x1b0f14=0x5*0x400*0x400,_0x201da9=_0x291ba3(0x3f8),_0x46508c=_0x291ba3(0x6c),_0x1a95b2=_0x291ba3(0x21c),_0x2b939c=_0x291ba3(0x21a);_0x594fe1[_0x291ba3(0x345)]=class{constructor(_0x278291,_0x4ebae0,_0x24ad16){const _0x192cc4=_0x291ba3;_0x24cbc7(this,_0x192cc4(0xef),0x0),_0x24cbc7(this,_0x192cc4(0x81),new _0x1fc547[(_0x192cc4(0x165))]()),_0x24cbc7(this,_0x192cc4(0x225),this['_change$']),_0x24cbc7(this,_0x192cc4(0x22a),new Map()),(this[_0x192cc4(0x2bb)]=_0x278291,this[_0x192cc4(0x2e2)]=_0x4ebae0,this['_univerInstanceService']=_0x24ad16);}[_0x291ba3(0x257)](_0x3dbcef){const _0xe4fdde=_0x291ba3;this[_0xe4fdde(0xef)]=_0x3dbcef,this[_0xe4fdde(0x81)][_0xe4fdde(0x2ce)](_0x3dbcef);}[_0x291ba3(0x450)](_0x1e3fdb,_0x2e50c9){const _0x4d8bc2=_0x291ba3;if(_0x2e50c9===_0x48fa70['ImageSourceType'][_0x4d8bc2(0x21f)]){const _0x1c2eb6=new Image();return _0x1c2eb6['src']=_0x1e3fdb,_0x1c2eb6;}return this[_0x4d8bc2(0x22a)]['get'](_0x1e3fdb);}[_0x291ba3(0x1b4)](_0x49be77,_0x168470,_0x3b3c35){const _0x32b1e4=_0x291ba3;_0x168470===_0x48fa70[_0x32b1e4(0x422)][_0x32b1e4(0x21f)]||_0x3b3c35==null||this[_0x32b1e4(0x22a)][_0x32b1e4(0x250)](_0x49be77,_0x3b3c35);}async[_0x291ba3(0x44d)](_0x12664e){const _0x1e9e08=_0x291ba3;try{const _0x11dc35=this[_0x1e9e08(0x410)](this['_getSignURL'](),''+_0x12664e),_0x122d0d=(await this[_0x1e9e08(0x2bb)][_0x1e9e08(0x400)](_0x11dc35))[_0x1e9e08(0x470)];if(_0x122d0d[_0x1e9e08(0x41d)]&&_0x122d0d[_0x1e9e08(0x41d)][_0x1e9e08(0x3b4)]===_0x2bbf52['OK']){const _0x4dcd6c=new URL(_0x122d0d['url'],this[_0x1e9e08(0x103)]())['toString']();return Promise['resolve'](_0x4dcd6c);}return Promise[_0x1e9e08(0xf9)](_0x122d0d[_0x1e9e08(0x41d)]);}catch(_0x2f7814){return Promise[_0x1e9e08(0xf9)](_0x2f7814);}}async[_0x291ba3(0x115)](_0x3f2656){const _0xa66327=_0x291ba3;let _0x3de089='';if(!_0x1b239b[_0xa66327(0x7a)](_0x3f2656['type']))return this[_0xa66327(0x44c)](),Promise[_0xa66327(0xf9)](new Error(_0x48fa70[_0xa66327(0x3a8)]['ERROR_IMAGE_TYPE']));if(_0x3f2656['size']>_0x1b0f14)return this[_0xa66327(0x44c)](),Promise[_0xa66327(0xf9)](new Error(_0x48fa70[_0xa66327(0x3a8)][_0xa66327(0x452)]));try{const _0x1be302=new FormData();_0x1be302['append'](_0xa66327(0x411),_0x3f2656);const _0x4af192=this[_0xa66327(0x79)]['getFocusedUnit'](),_0x4ecf50=_0x4af192==null?void 0x0:_0x4af192['getUnitId']();if(!_0x4ecf50)throw new Error(_0xa66327(0x193));const _0x386c30=this[_0xa66327(0x1fb)]()+'?size='+_0x3f2656[_0xa66327(0x3f6)][_0xa66327(0x161)]()+_0xa66327(0x23b)+_0x1c10fa[_0xa66327(0x475)]+_0xa66327(0x48b)+encodeURIComponent(_0x4ecf50),_0x2de774=await(await fetch(_0x386c30,{'method':_0xa66327(0x388),'body':_0x1be302}))['json']();if(typeof _0x2de774[_0xa66327(0x7d)]!=_0xa66327(0x3f7))return this[_0xa66327(0x44c)](),Promise[_0xa66327(0xf9)](new Error(_0x48fa70['ImageUploadStatusType']['ERROR_IMAGE']));_0x3de089=_0x2de774['FileId'];}catch{return this[_0xa66327(0x44c)](),Promise[_0xa66327(0xf9)](new Error(_0x48fa70['ImageUploadStatusType'][_0xa66327(0x166)]));}return new Promise((_0x59a907,_0x13a22f)=>{const _0x397902=_0xa66327,_0x42db11=new FileReader();_0x42db11[_0x397902(0x352)](_0x3f2656),_0x42db11[_0x397902(0xfd)]=_0x842c4a=>{const _0x117188=_0x397902;var _0x4ba400;const _0x753605=(_0x4ba400=_0x842c4a[_0x117188(0x1b1)])==null?void 0x0:_0x4ba400[_0x117188(0x218)];if(_0x753605==null){this['_decreaseWaiting'](),_0x13a22f(new Error(_0x48fa70[_0x117188(0x3a8)][_0x117188(0x166)]));return;}const _0x1c0436=_0x2c7fed[_0x117188(0xa9)]['generateRandomId'](0x6);_0x59a907({'imageId':_0x1c0436,'imageSourceType':_0x48fa70['ImageSourceType'][_0x117188(0x430)],'source':_0x3de089,'base64Cache':_0x753605,'status':_0x48fa70[_0x117188(0x3a8)]['SUCCUSS']}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x3b2ac0=_0x291ba3;var _0x150f2a,_0x316ca2;const _0x53d7c9=this[_0x3b2ac0(0x2e2)][_0x3b2ac0(0x304)](_0x201da9),_0x5ef0b7=this[_0x3b2ac0(0x2e2)][_0x3b2ac0(0x304)](_0x229401);return(_0x316ca2=(_0x150f2a=_0x5ef0b7==null?void 0x0:_0x5ef0b7[_0x3b2ac0(0x49b)])!=null?_0x150f2a:_0x53d7c9)!=null?_0x316ca2:_0x46508c;}[_0x291ba3(0x381)](){const _0x5586f1=_0x291ba3;var _0x2e3b06,_0x47d6fb;const _0x2e0a4b=this['_configService'][_0x5586f1(0x304)](_0x1a95b2),_0x4fe1ea=this[_0x5586f1(0x2e2)]['getConfig'](_0x229401);return(_0x47d6fb=(_0x2e3b06=_0x4fe1ea==null?void 0x0:_0x4fe1ea['signUrlServerUrl'])!=null?_0x2e3b06:_0x2e0a4b)!=null?_0x47d6fb:_0x2b939c;}['_getDownloadEndpointURL'](){const _0x560ae2=_0x291ba3;var _0x7e9649;const _0x5deb2d=this[_0x560ae2(0x2e2)][_0x560ae2(0x304)](_0x229401);return(_0x7e9649=_0x5deb2d==null?void 0x0:_0x5deb2d[_0x560ae2(0x78)])!=null?_0x7e9649:location[_0x560ae2(0x9a)];}[_0x291ba3(0x410)](_0x449049,_0x10e107){const _0x5d25c2=_0x291ba3;return _0x449049['replace'](_0x5d25c2(0x1d4),_0x10e107);}[_0x291ba3(0x44c)](){const _0x106473=_0x291ba3;this[_0x106473(0xef)]-=0x1,this[_0x106473(0x81)][_0x106473(0x2ce)](this[_0x106473(0xef)]);}},_0x594fe1[_0x291ba3(0x345)]=_0x291374([_0x52249d(0x0,_0x2c7fed[_0x291ba3(0x16b)](_0x4893ce[_0x291ba3(0x99)])),_0x52249d(0x1,_0x2c7fed[_0x291ba3(0x309)]),_0x52249d(0x2,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x27a)]))],_0x594fe1[_0x291ba3(0x345)]);var _0x20e8a4=Object['defineProperty'],_0x13026d=Object[_0x291ba3(0x373)],_0x8c420d=(_0x35981f,_0x238df8,_0x1f76f7,_0x1a3970)=>{const _0xcea19=_0x291ba3;for(var _0x295af0=_0x1a3970>0x1?void 0x0:_0x1a3970?_0x13026d(_0x238df8,_0x1f76f7):_0x238df8,_0x55726f=_0x35981f[_0xcea19(0xbb)]-0x1,_0x120f85;_0x55726f>=0x0;_0x55726f--)(_0x120f85=_0x35981f[_0x55726f])&&(_0x295af0=(_0x1a3970?_0x120f85(_0x238df8,_0x1f76f7,_0x295af0):_0x120f85(_0x295af0))||_0x295af0);return _0x1a3970&&_0x295af0&&_0x20e8a4(_0x238df8,_0x1f76f7,_0x295af0),_0x295af0;},_0x158fe5=(_0x236c51,_0x19a3b6)=>(_0x1c138f,_0x234c70)=>_0x19a3b6(_0x1c138f,_0x234c70,_0x236c51);let _0x21a916=class extends _0x2c7fed['RxDisposable']{constructor(_0xcd5117,_0x3f8ad0,_0x5b8ff4,_0x14ce77,_0x824d25){const _0x495c82=_0x291ba3;super(),this[_0x495c82(0x10d)]=_0xcd5117,this[_0x495c82(0x79)]=_0x3f8ad0,this[_0x495c82(0x2d4)]=_0x5b8ff4,this[_0x495c82(0x47f)]=_0x14ce77,this[_0x495c82(0x277)]=_0x824d25,this[_0x495c82(0x264)](),this[_0x495c82(0x245)]();}[_0x291ba3(0x245)](){const _0x49a534=_0x291ba3,_0x17acf9=async _0x469ff9=>{const _0x594b25=_0x2d25;(await this[_0x594b25(0x47f)][_0x594b25(0x22d)](_0x469ff9))[_0x594b25(0x272)][_0x594b25(0x256)](_0x2eca2e[_0x594b25(0x1d1)](_0x1ec6c0=>_0x1ec6c0['eventID']===_0x2856d7[_0x594b25(0x93)]['SHOULD_CLOSE_CONN']),_0x2eca2e[_0x594b25(0x211)](this[_0x594b25(0xf7)]))[_0x594b25(0x3f2)](_0x317179=>{const _0x45d11c=_0x594b25,_0x309913=_0x317179,{reason:_0x336000}=_0x309913[_0x45d11c(0x253)];this[_0x45d11c(0x10d)][_0x45d11c(0x400)](_0x4b403d[_0x45d11c(0x2f2)])[_0x45d11c(0x116)]({'type':_0x4d689c[_0x45d11c(0x3be)]['Error'],'content':this[_0x45d11c(0x277)]['t'](_0x45d11c(0x436))+'('+_0x336000+')'}),this[_0x45d11c(0x2d4)]['updatePermissionPoint'](new _0x244249[(_0x45d11c(0x2e9))](_0x469ff9)['id'],!0x1),this[_0x45d11c(0x47f)][_0x45d11c(0x105)](_0x469ff9);});};_0x1fc547[_0x49a534(0x94)](this['_univerInstanceService'][_0x49a534(0x112)](_0x2c7fed[_0x49a534(0xcb)][_0x49a534(0x2aa)]),this[_0x49a534(0x79)][_0x49a534(0x112)](_0x2c7fed['UniverInstanceType'][_0x49a534(0x130)]))[_0x49a534(0x256)](_0x2eca2e[_0x49a534(0x21b)](_0x1bdb86=>_0x1bdb86[_0x49a534(0x11d)]()),_0x2eca2e[_0x49a534(0x1d1)](_0x5e7738=>!_0x2c7fed[_0x49a534(0x407)](_0x5e7738)),_0x2eca2e['takeUntil'](this['dispose$']))['subscribe'](_0x2c3df0=>{_0x17acf9(_0x2c3df0);});}[_0x291ba3(0x264)](){const _0x5466f7=_0x291ba3,_0x50483c=async _0x3608b4=>{const _0x3728a1=_0x2d25;(await this[_0x3728a1(0x47f)]['requireSession'](_0x3608b4))[_0x3728a1(0x272)][_0x3728a1(0x256)](_0x2eca2e[_0x3728a1(0x1d1)](_0x4d2acf=>_0x4d2acf[_0x3728a1(0x243)]===_0x2856d7['CollaborationEvent'][_0x3728a1(0xbf)]),_0x2eca2e[_0x3728a1(0x211)](this['dispose$']))[_0x3728a1(0x3f2)](_0x3abb10=>{const _0x5298fb=_0x3728a1,_0x5cc8e6=_0x3abb10,{objectId:_0x1481ef}=_0x5cc8e6[_0x5298fb(0x253)],_0x583f14=this['_injector'][_0x5298fb(0x400)](_0x3f13ec['SheetPermissionInitController']);_0x1481ef===_0x3608b4?_0x583f14[_0x5298fb(0x14c)](_0x3608b4):_0x583f14['refreshPermission'](_0x3608b4,_0x1481ef);});};_0x1fc547[_0x5466f7(0x94)](this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2c7fed['UniverInstanceType'][_0x5466f7(0x2aa)]),this[_0x5466f7(0x79)][_0x5466f7(0x112)](_0x2c7fed[_0x5466f7(0xcb)][_0x5466f7(0x130)]))['pipe'](_0x2eca2e[_0x5466f7(0x21b)](_0x44b026=>_0x44b026[_0x5466f7(0x11d)]()),_0x2eca2e['filter'](_0x445e84=>!_0x2c7fed[_0x5466f7(0x407)](_0x445e84)),_0x2eca2e[_0x5466f7(0x211)](this[_0x5466f7(0xf7)]))[_0x5466f7(0x3f2)](_0x3111a6=>{_0x50483c(_0x3111a6);});}};_0x21a916=_0x8c420d([_0x158fe5(0x0,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x158fe5(0x1,_0x2c7fed[_0x291ba3(0x27a)]),_0x158fe5(0x2,_0x2c7fed[_0x291ba3(0x44b)]),_0x158fe5(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1[_0x291ba3(0xeb)])),_0x158fe5(0x4,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x1a7)]))],_0x21a916);var _0x48d406=Object[_0x291ba3(0x3e4)],_0x46a0f=Object[_0x291ba3(0x373)],_0x52b411=(_0x3da9e2,_0x713417,_0x5096e1,_0x29b176)=>{const _0x86e61c=_0x291ba3;for(var _0x2a98af=_0x29b176>0x1?void 0x0:_0x29b176?_0x46a0f(_0x713417,_0x5096e1):_0x713417,_0x4d9d5a=_0x3da9e2[_0x86e61c(0xbb)]-0x1,_0x1576fc;_0x4d9d5a>=0x0;_0x4d9d5a--)(_0x1576fc=_0x3da9e2[_0x4d9d5a])&&(_0x2a98af=(_0x29b176?_0x1576fc(_0x713417,_0x5096e1,_0x2a98af):_0x1576fc(_0x2a98af))||_0x2a98af);return _0x29b176&&_0x2a98af&&_0x48d406(_0x713417,_0x5096e1,_0x2a98af),_0x2a98af;},_0x476027=(_0x19abc5,_0x26d0e3)=>(_0x2ea956,_0x5c56e6)=>_0x26d0e3(_0x2ea956,_0x5c56e6,_0x19abc5);_0x594fe1[_0x291ba3(0x226)]=class{constructor(_0x34d0bc,_0x450861){const _0x50cd0b=_0x291ba3;this[_0x50cd0b(0x2e2)]=_0x34d0bc,this[_0x50cd0b(0x2bb)]=_0x450861;}async[_0x291ba3(0x1e4)](_0x59b267,_0x53c7f9){const _0x2b3e63=_0x291ba3;var _0x181510;const {unitID:_0x3e431f,type:_0x3017f5,revision:_0x4ecc18=0x0}=_0x53c7f9,_0xa6173f=this[_0x2b3e63(0x3fa)]()+'/'+_0x3017f5+'/unit/'+_0x3e431f+_0x2b3e63(0x2d2)+_0x4ecc18,_0x1a9142=(await this[_0x2b3e63(0x2bb)][_0x2b3e63(0x400)](_0xa6173f))[_0x2b3e63(0x470)],_0x421fc2=(_0x181510=_0x1a9142['snapshot'])==null?void 0x0:_0x181510[_0x2b3e63(0x1f0)];if(_0x421fc2){const _0x3f98ef=_0x421fc2==null?void 0x0:_0x421fc2[_0x2b3e63(0xb6)],_0x2fb4d5=_0x2856d7[_0x2b3e63(0x1c8)][_0x2b3e63(0x3de)](_0x2856d7[_0x2b3e63(0x23e)](_0x3f98ef));_0x421fc2[_0x2b3e63(0xb6)]=_0x2fb4d5,Object[_0x2b3e63(0x36f)](_0x421fc2[_0x2b3e63(0x43e)])[_0x2b3e63(0xb2)](([,_0x109d06])=>{const _0x415c82=_0x2b3e63,_0x24df03=_0x109d06[_0x415c82(0xb6)],_0x4f4cd7=_0x2856d7[_0x415c82(0x1c8)][_0x415c82(0x3de)](_0x2856d7[_0x415c82(0x23e)](_0x24df03));_0x109d06[_0x415c82(0xb6)]=_0x4f4cd7;});}return _0x1a9142;}async[_0x291ba3(0x36c)](_0x47d20b,_0x1c34c6){const _0x14cc3e=_0x291ba3,{unitID:_0x5c219f,type:_0x5ad923,blockID:_0x285e2f}=_0x1c34c6,_0x13b859=this[_0x14cc3e(0x443)]()+'/'+_0x5ad923+_0x14cc3e(0xc5)+_0x5c219f+_0x14cc3e(0x15f)+_0x285e2f;return(await this['_httpService']['get'](_0x13b859))[_0x14cc3e(0x470)];}async['getDeserializedSheetBlock'](_0x2882c1,_0x33dbd1){const _0x254fd7=_0x291ba3,{unitID:_0x525c36,type:_0x1986a7,blockID:_0x4ab1d2}=_0x33dbd1,_0x590194=this[_0x254fd7(0x443)]()+_0x254fd7(0x15f)+_0x1986a7+_0x254fd7(0xc5)+_0x525c36+_0x254fd7(0x15f)+_0x4ab1d2;return(await this['_httpService'][_0x254fd7(0x400)](_0x590194))[_0x254fd7(0x470)];}async['fetchMissingChangesets'](_0x36d326,_0x443e4e){const _0x2c4965=_0x291ba3,{unitID:_0x23d8c7,type:_0xfd0bdb,from:_0xd694ee,to:_0x5b2221}=_0x443e4e,_0x2f8bd5=this[_0x2c4965(0x443)]()+'/'+_0xfd0bdb+'/unit/'+_0x23d8c7+_0x2c4965(0x16c)+_0xd694ee+_0x2c4965(0x12c)+_0x5b2221;return(await this[_0x2c4965(0x2bb)][_0x2c4965(0x400)](_0x2f8bd5))[_0x2c4965(0x470)];}[_0x291ba3(0x3fa)](){const _0x1b8c65=_0x291ba3;var _0x4e9a6c;return(_0x4e9a6c=this[_0x1b8c65(0x2e2)]['getConfig'](_0x5615fb))!=null?_0x4e9a6c:this['_getAPIPrefix']();}[_0x291ba3(0x443)](){const _0x1f7d34=_0x291ba3;var _0x3067da,_0x356452;const _0x552fbe=this['_configService']['getConfig'](_0x2e8c6c),_0x938458=this[_0x1f7d34(0x2e2)]['getConfig'](_0x229401);return(_0x356452=(_0x3067da=_0x938458==null?void 0x0:_0x938458[_0x1f7d34(0x4a8)])!=null?_0x3067da:_0x552fbe)!=null?_0x356452:_0x5dad33;}async[_0x291ba3(0x240)](_0xa4eced,_0x1ab9e6){const _0xe6464b=_0x291ba3,_0x5123a9=_0xe6464b(0x1fd)+_0x1ab9e6[_0xe6464b(0x33c)]+'/unit/'+_0x1ab9e6[_0xe6464b(0x2ea)]+_0xe6464b(0x2f5);return(await this[_0xe6464b(0x2bb)]['get'](_0x5123a9,{'params':{'resourceId':JSON['stringify'](_0x1ab9e6[_0xe6464b(0x35b)])}}))['body'];}[_0x291ba3(0x3e9)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x291ba3(0x45c)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x291ba3(0x2bc)](){const _0x1b141f=_0x291ba3;throw new Error(_0x1b141f(0x3aa));}['copyFileMeta'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x291ba3(0x280)](){const _0x1e584f=_0x291ba3;throw new Error(_0x1e584f(0x3aa));}},_0x594fe1[_0x291ba3(0x226)]=_0x52b411([_0x476027(0x0,_0x2c7fed[_0x291ba3(0x309)]),_0x476027(0x1,_0x2c7fed[_0x291ba3(0x16b)](_0x4893ce[_0x291ba3(0x99)]))],_0x594fe1['SnapshotServerOverHTTPService']);var _0x4c71f5=Object[_0x291ba3(0x3e4)],_0x336fbd=Object[_0x291ba3(0x373)],_0x1d418b=(_0x5e214b,_0x1daccf,_0x254a4e,_0x232231)=>{const _0x171aad=_0x291ba3;for(var _0x509f95=_0x232231>0x1?void 0x0:_0x232231?_0x336fbd(_0x1daccf,_0x254a4e):_0x1daccf,_0x3fb44d=_0x5e214b[_0x171aad(0xbb)]-0x1,_0x4adb6b;_0x3fb44d>=0x0;_0x3fb44d--)(_0x4adb6b=_0x5e214b[_0x3fb44d])&&(_0x509f95=(_0x232231?_0x4adb6b(_0x1daccf,_0x254a4e,_0x509f95):_0x4adb6b(_0x509f95))||_0x509f95);return _0x232231&&_0x509f95&&_0x4c71f5(_0x1daccf,_0x254a4e,_0x509f95),_0x509f95;},_0x228c44=(_0x102fe4,_0xd32d7)=>(_0x1a7ca1,_0x58aeb0)=>_0xd32d7(_0x1a7ca1,_0x58aeb0,_0x102fe4);let _0x2e9e74=class extends _0x2c7fed[_0x291ba3(0xf2)]{constructor(_0x702e82,_0x26df0a,_0x9a6ea6,_0x2a9de1,_0x4218e7){const _0x229eca=_0x291ba3;super(_0x702e82,_0x26df0a,_0x9a6ea6),this[_0x229eca(0xbd)]=_0x2a9de1,this[_0x229eca(0x139)]=_0x4218e7;}['transformUndoRedo'](_0x2603e7,_0x2fe06f){const _0x2e692d=_0x291ba3,_0x1e52c6=this[_0x2e692d(0x401)](_0x2603e7);if(_0x1e52c6)try{const _0x2e7b07=this[_0x2e692d(0x370)](_0x1e52c6,_0x2fe06f);this[_0x2e692d(0xf5)](_0x2603e7,_0x2e7b07);}catch(_0x21c017){this[_0x2e692d(0x139)][_0x2e692d(0x41d)](_0x2e692d(0x14b),_0x21c017),this['_clearUndo'](_0x2603e7);}const _0x9cb764=this['_getRedoStack'](_0x2603e7);if(_0x9cb764)try{const _0x3b15f4=this[_0x2e692d(0x370)](_0x9cb764,_0x2fe06f);this['_substituteRedoStack'](_0x2603e7,_0x3b15f4);}catch(_0x1093a1){this[_0x2e692d(0x139)]['error'](_0x1093a1),this[_0x2e692d(0xe5)](_0x2603e7);}}[_0x291ba3(0x295)](_0x4a117b){const _0x9d4b2a=_0x291ba3,_0xa0dff2=this['_getUndoStack'](_0x4a117b);_0xa0dff2&&(_0xa0dff2[_0x9d4b2a(0xbb)]=0x0,this[_0x9d4b2a(0x387)]());}['_clearRedo'](_0x38bb25){const _0x4e30c2=_0x291ba3,_0x381987=this[_0x4e30c2(0x328)](_0x38bb25);_0x381987&&(_0x381987['length']=0x0,this[_0x4e30c2(0x387)]());}[_0x291ba3(0xf5)](_0x303d97,_0x1bf0bd){const _0x237f1b=_0x291ba3;this[_0x237f1b(0x92)]['set'](_0x303d97,_0x1bf0bd),this[_0x237f1b(0x387)]();}[_0x291ba3(0x73)](_0x2c0ec2,_0x486819){const _0x36360e=_0x291ba3;this[_0x36360e(0x18b)]['set'](_0x2c0ec2,_0x486819),this['_updateStatus']();}[_0x291ba3(0x370)](_0x11b5eb,_0x4cdecf){const _0x6ef308=_0x291ba3,_0x4f2735=[];let _0x32a8c2=_0x4cdecf,_0x4c1501=_0x4cdecf;for(let _0x479f3c=_0x11b5eb[_0x6ef308(0xbb)]-0x1;_0x479f3c>=0x0;_0x479f3c--){const {unitID:_0x588d9d,undoMutations:_0x2d644e,redoMutations:_0x1f71d8}=_0x11b5eb[_0x479f3c],_0x484f41=this[_0x6ef308(0xbd)][_0x6ef308(0x3b8)](_0x32a8c2,_0x2d644e),_0x1fbddc=this[_0x6ef308(0xbd)][_0x6ef308(0x3b8)](_0x4c1501,_0x1f71d8);if(_0x2856d7[_0x6ef308(0x27e)](_0x484f41)||_0x2856d7[_0x6ef308(0x27e)](_0x1fbddc)){this[_0x6ef308(0x139)][_0x6ef308(0x41d)](_0x6ef308(0x14b),_0x6ef308(0xcd),_0x484f41,_0x1fbddc);break;}_0x32a8c2=_0x484f41[_0x6ef308(0xff)],_0x4c1501=_0x1fbddc['c1Prime'],_0x4f2735[_0x6ef308(0x44a)]({'unitID':_0x588d9d,'undoMutations':_0x484f41['m2Prime'],'redoMutations':_0x1fbddc['m2Prime']});}return _0x4f2735[_0x6ef308(0x239)]();}};_0x2e9e74=_0x1d418b([_0x228c44(0x0,_0x2c7fed['IUniverInstanceService']),_0x228c44(0x1,_0x2c7fed['ICommandService']),_0x228c44(0x2,_0x2c7fed[_0x291ba3(0x1e3)]),_0x228c44(0x3,_0x2856d7[_0x291ba3(0x372)]),_0x228c44(0x4,_0x2c7fed[_0x291ba3(0x2fd)])],_0x2e9e74);class _0x246e60 extends _0x2c7fed[_0x291ba3(0x2d5)]{constructor(){const _0x23489f=_0x291ba3;super(),_0x24cbc7(this,_0x23489f(0x3b7)),this[_0x23489f(0x3b7)]=_0x1fc547['fromEvent'](window,_0x23489f(0x210))[_0x23489f(0x256)](_0x1fc547[_0x23489f(0x211)](this['dispose$']),_0x1fc547[_0x23489f(0x1b6)](0x1),_0x1fc547[_0x23489f(0x433)](void 0x0));}[_0x291ba3(0x42e)](_0x1c55cd,_0x493a26,_0x117619=!0x1){const _0x3a49e8=_0x291ba3,_0x40187f=new URL(window['location'][_0x3a49e8(0x2f0)]);_0x40187f[_0x3a49e8(0x489)][_0x3a49e8(0x250)](_0x1c55cd,_0x493a26),_0x117619?window[_0x3a49e8(0x462)][_0x3a49e8(0x262)]('','',_0x40187f[_0x3a49e8(0x161)]()):window[_0x3a49e8(0x462)]['pushState']('','',_0x40187f[_0x3a49e8(0x161)]());}['removeParam'](_0x22d721,_0x29d46d=!0x1){const _0x4b5d98=_0x291ba3,_0x3f3714=new URL(window['location'][_0x4b5d98(0x2f0)]);_0x3f3714[_0x4b5d98(0x489)]['delete'](_0x22d721),_0x29d46d?window[_0x4b5d98(0x462)][_0x4b5d98(0x262)]('','',_0x3f3714[_0x4b5d98(0x161)]()):window['history'][_0x4b5d98(0x22b)]('','',_0x3f3714[_0x4b5d98(0x161)]());}['getParam'](_0x30998f){const _0x1ecc33=_0x291ba3;var _0x9c06f2;return(_0x9c06f2=new URL(window[_0x1ecc33(0x28c)]['href'])[_0x1ecc33(0x489)][_0x1ecc33(0x400)](_0x30998f))!=null?_0x9c06f2:void 0x0;}}var _0x7d33a9=Object[_0x291ba3(0x3e4)],_0x5f0b76=Object['getOwnPropertyDescriptor'],_0x24f583=(_0xd52bd,_0x45a562,_0x4cb988)=>_0x45a562 in _0xd52bd?_0x7d33a9(_0xd52bd,_0x45a562,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4cb988}):_0xd52bd[_0x45a562]=_0x4cb988,_0x513ffe=(_0x4ad2fe,_0x497a77,_0x245908,_0x1d7335)=>{const _0x2ea7e4=_0x291ba3;for(var _0x46ae35=_0x1d7335>0x1?void 0x0:_0x1d7335?_0x5f0b76(_0x497a77,_0x245908):_0x497a77,_0x2d1c77=_0x4ad2fe[_0x2ea7e4(0xbb)]-0x1,_0x5b37fd;_0x2d1c77>=0x0;_0x2d1c77--)(_0x5b37fd=_0x4ad2fe[_0x2d1c77])&&(_0x46ae35=(_0x1d7335?_0x5b37fd(_0x497a77,_0x245908,_0x46ae35):_0x5b37fd(_0x46ae35))||_0x46ae35);return _0x1d7335&&_0x46ae35&&_0x7d33a9(_0x497a77,_0x245908,_0x46ae35),_0x46ae35;},_0x481692=(_0x36db3c,_0x367bcf)=>(_0x3fac56,_0x583759)=>_0x367bcf(_0x3fac56,_0x583759,_0x36db3c),_0x690ac=(_0x32fbc7,_0x342c05,_0x156943)=>_0x24f583(_0x32fbc7,_0x342c05+'',_0x156943);const _0x1b58ab=_0x291ba3(0x377);_0x594fe1[_0x291ba3(0x353)]=class extends _0x2c7fed[_0x291ba3(0x3bb)]{constructor(_0x425ba8=_0x357162,_0x264aef,_0x3ae44c,_0x466b5f,_0x2ea3b0){const _0x16c8e1=_0x291ba3;super(),this[_0x16c8e1(0x45d)]=_0x425ba8,this['_logService']=_0x264aef,this[_0x16c8e1(0x20c)]=_0x3ae44c,this[_0x16c8e1(0x10d)]=_0x466b5f,this['_configService']=_0x2ea3b0;const {..._0x15947d}=this[_0x16c8e1(0x45d)];this[_0x16c8e1(0x2e2)][_0x16c8e1(0x2c5)](_0x229401,_0x15947d);}[_0x291ba3(0x323)](){const _0x1ac39d=_0x291ba3;this['_registerDependencies'](),_0x2c7fed[_0x1ac39d(0x30f)](this[_0x1ac39d(0x10d)],[[_0x47d88],[_0x594fe1[_0x1ac39d(0x340)]],[_0x21a916]]);}[_0x291ba3(0x242)](){const _0x97ba46=_0x291ba3;_0x2c7fed['touchDependencies'](this[_0x97ba46(0x10d)],[[_0x19c2c9]]);}[_0x291ba3(0x23c)](){const _0x481700=_0x291ba3;this[_0x481700(0x40c)]();}['_registerDependencies'](){const _0x44f6b9=_0x291ba3;var _0x2f1b8c,_0x2433bc,_0x550e74,_0x346bd2;this[_0x44f6b9(0x10d)][_0x44f6b9(0x169)](_0x2c7fed[_0x44f6b9(0x26b)])&&this[_0x44f6b9(0x139)][_0x44f6b9(0x41d)](_0x44f6b9(0x414),_0x44f6b9(0x339));let _0x3bb3cc=[[_0x2c7fed[_0x44f6b9(0x26b)],{'useClass':_0x2e9e74}],[_0x594fe1[_0x44f6b9(0xeb)]],[_0x45b0e2],[_0x4893ce['HTTPService']],[_0x47e3f7,{'useClass':_0x246e60}],[_0x4d411d],[_0x594fe1[_0x44f6b9(0x378)]],[_0x4893ce[_0x44f6b9(0xf6)]],[_0x1b1a48],[_0x4bc5bd],[_0x5bc594],[_0x2f34a3],[_0x1d743a],[_0x58fe3e],[_0x1ab0de],[_0x21a916],[_0x268546,{'useClass':(_0x2433bc=(_0x2f1b8c=this[_0x44f6b9(0x45d)])==null?void 0x0:_0x2f1b8c[_0x44f6b9(0xf1)])!=null?_0x2433bc:_0x594fe1[_0x44f6b9(0x37d)]}],[_0x4893ce['IHTTPImplementation'],{'useClass':_0x4893ce[_0x44f6b9(0x3f4)]}],[_0x2856d7[_0x44f6b9(0xe6)],{'useClass':_0x594fe1[_0x44f6b9(0x226)]}],[_0x2c7fed[_0x44f6b9(0x390)],{'useClass':_0x594fe1[_0x44f6b9(0x3c6)]}],[_0x48fa70['IImageIoService'],{'useClass':_0x594fe1[_0x44f6b9(0x345)]}],[_0x594fe1[_0x44f6b9(0x1be)]],[_0x594fe1[_0x44f6b9(0x340)]],[_0x594fe1[_0x44f6b9(0x432)]],[_0x19c2c9],[_0x47d88]];(_0x550e74=this['_config'])!=null&&_0x550e74[_0x44f6b9(0x1cc)]&&_0x3bb3cc[_0x44f6b9(0x44a)]([_0x4ba495,{'useClass':_0x1986bf}]),_0x3bb3cc=_0x2c7fed[_0x44f6b9(0x3c0)](_0x3bb3cc,(_0x346bd2=this[_0x44f6b9(0x45d)])==null?void 0x0:_0x346bd2['override']),_0x3bb3cc[_0x44f6b9(0xb2)](_0x4ae71b=>this['_injector'][_0x44f6b9(0x8b)](_0x4ae71b)),this[_0x44f6b9(0x444)]();}[_0x291ba3(0x40c)](){const _0x255ae7=_0x291ba3;this[_0x255ae7(0x351)](this[_0x255ae7(0x20c)][_0x255ae7(0x9e)](_0x2c7fed[_0x255ae7(0xcb)]['UNIVER_DOC'],[_0x2d5972])),this[_0x255ae7(0x351)](this[_0x255ae7(0x20c)]['registerRenderModule'](_0x2c7fed[_0x255ae7(0xcb)][_0x255ae7(0x2aa)],[_0x56e595]));}[_0x291ba3(0x444)](){const _0x18654a=_0x291ba3;var _0x207fc1,_0x4b3a91;this['_injector'][_0x18654a(0x400)](_0x4893ce['HTTPService'])[_0x18654a(0x3f3)]({'priority':0x14,'interceptor':_0x4893ce[_0x18654a(0x42a)]({'maxParallel':0x6})}),this['_injector']['get'](_0x58fe3e),(_0x207fc1=this['_config'])!=null&&_0x207fc1[_0x18654a(0x311)]||this[_0x18654a(0x10d)][_0x18654a(0x400)](_0x594fe1['LocalCacheService'])[_0x18654a(0x30c)](),(_0x4b3a91=this[_0x18654a(0x45d)])!=null&&_0x4b3a91[_0x18654a(0x437)]&&this[_0x18654a(0x10d)][_0x18654a(0x400)](_0x1d743a),this[_0x18654a(0x10d)]['get'](_0x594fe1[_0x18654a(0x1be)]),this[_0x18654a(0x10d)]['has'](_0x594fe1[_0x18654a(0x432)])&&this['_injector'][_0x18654a(0x400)](_0x594fe1[_0x18654a(0x432)]);}},_0x690ac(_0x594fe1[_0x291ba3(0x353)],_0x291ba3(0x30d),_0x1b58ab),_0x594fe1['UniverCollaborationClientPlugin']=_0x513ffe([_0x2c7fed[_0x291ba3(0x19e)](_0x2856d7['UniverCollaborationPlugin']),_0x481692(0x1,_0x2c7fed[_0x291ba3(0x2fd)]),_0x481692(0x2,_0x180dc9[_0x291ba3(0xdf)]),_0x481692(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed['Injector'])),_0x481692(0x4,_0x2c7fed[_0x291ba3(0x309)])],_0x594fe1[_0x291ba3(0x353)]),_0x594fe1[_0x291ba3(0x395)]=_0x54f2cb,_0x594fe1['COLLAB_SUBMIT_CHANGESET_URL_KEY']=_0x16814e,_0x594fe1[_0x291ba3(0x12e)]=_0x8abbe0,_0x594fe1[_0x291ba3(0x46e)]=_0x5b6195,_0x594fe1[_0x291ba3(0x2c8)]=_0x3603b1,_0x594fe1[_0x291ba3(0x22f)]=_0x1ab0de,_0x594fe1[_0x291ba3(0x258)]=_0x16f4d4,_0x594fe1['HEARTBEAT_TIMEOUT_KEY']=_0x56c1a7,_0x594fe1[_0x291ba3(0x154)]=_0x268546,_0x594fe1[_0x291ba3(0x355)]=_0x47e3f7,_0x594fe1[_0x291ba3(0x27b)]=_0x3085a4,_0x594fe1[_0x291ba3(0x190)]=_0x52fcac,_0x594fe1[_0x291ba3(0x428)]=_0x42be50,_0x594fe1[_0x291ba3(0x216)]=_0xf30628,_0x594fe1[_0x291ba3(0x45f)]=_0x2e8c6c,_0x594fe1[_0x291ba3(0x424)]=_0x5615fb,_0x594fe1[_0x291ba3(0x34b)]=_0x11a57f,_0x594fe1[_0x291ba3(0x3cc)]=_0x54131f,_0x594fe1[_0x291ba3(0x13b)]=_0x246e60,_0x594fe1['deserializeToCombResponse']=_0xd87005,_0x594fe1[_0x291ba3(0x434)]=_0x8a6853,Object[_0x291ba3(0x3e4)](_0x594fe1,Symbol['toStringTag'],{'value':_0x291ba3(0x149)});}));
1
+ function _0x4c16(_0x551b44,_0x5238ab){const _0x4e79bc=_0x4e79();return _0x4c16=function(_0x4c16bb,_0x20ef04){_0x4c16bb=_0x4c16bb-0xa8;let _0x3ec4fc=_0x4e79bc[_0x4c16bb];return _0x3ec4fc;},_0x4c16(_0x551b44,_0x5238ab);}function _0x4e79(){const _0xff2bf7=['signUrlServerUrl','_syncEditingCollabCursorService','saveOfflineData','exports','ALREADY_EXISTS','@univerjs/docs','registerComponent','clearInterval','VIEW_MAIN','HELLO','getTime','onMissingChangesets','_getScale','row','actions','_socketReady','USERS_LEAVE','searchParams','session','_state','_init','collabWebSocketUrl','_getSendChangesetTimeout','getRandomValues','COLORS','parse','_startSheetCollabCursor','getConfig','AuthzIoHttpService','rgba(255,\x20255,\x20255,\x200.01)','useDependency','collab-rect-range-','_hover','collabStatus.conflict','_shouldReportTelemetry','routeKey','_heartbeatTimer','[CollaborationUndoRedoService]','getOwnPropertySymbols','getWorkbookSelections','startColumn','rxjs','uni.network.url-service','LIVESHARE_FETCH_OPERATIONS','HttpExport','transformIMECache','trim','IUndoRedoService','duration','onCommentUpdate','error$','_handleEvent','_changesetSessionId','bottom','onSendChangeset','isTransformMutationsWithChangesetFailure','_handleHeartbeatEvent','UUID','setCurrentUser','clear','_executeRemoteChangeset','_logService','isInternalEditorID','[PendingState]:\x20received\x20rejection.','useObservable','clearTimeout','257557OBjnVF','_drawTextRange','CommandType','column','selection','_getLoginPath','saveImage','UnitSnapshot','backgroundColor','displayName','updateMember','pending','number','/role','online','isTransformMutationsWithChangesetSuccess','_context','_telemetryInfo','state$','COLLAB_SUBMIT_CHANGESET_URL_KEY','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','action','univer-online','_cursorInfo$','_docSkeleton','switchMap','getUnhiddenWorksheets','/universer-api/snapshot','toggleOnline','unit-cache-','_ensureSubject','SheetPermissionInitController','setUndoRedoMutationParamsCache','getAncestorScale','DeleteRangeMoveLeftCommandId','_undoRedoService','distinctUntilChanged','_onRecvEvent','handleInsertRow','toggleOffline','AWAITING','onRendered','propertyIsEnumerable','Error','top','substring','stopTime','_candidateSocket','_commentUpdate$','ITransformService','arc','@univerjs/rpc','synced','JOIN','getResourcesRequest','_getCtorByUniverType','_colorAssignService','_stopTelemetryCollaborationNewChangeset','react','HEARTBEAT_TIMEOUT_KEY','executeCommand','entries','conflict','getAttachHeader','_getSaveTimeout','_onMessage','HTTPService','COLLAB_SUBMIT_CHANGESET_URL','onPointerMove$','...','\x0aCurrent:\x20','_themeService','getSkeleton','attrs','operators','IAuthzIoService','docStateChange$','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','beginPath','generateRandomId','UNIVER_PROJECT','onPointerLeave$','@univerjs-pro/license','_transformRemoteChangesetByIMECache','INotificationService','_queuedRemoteChangesets','CONFLICT','LIVESHARE_TERMINATE','push','location','_backgroundColor','length','PERMISSION_DENIED','_initUnitPermissionChange','_commentService','setItem','defIds','InsertColCommandId','_awaitingChangeset','skeleton','listRoles','UNKNOWN_CMD','/resources','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','onTransformChange$','event$','CollaborationSession','COMPLETION_FINISHED','UNIVER_UNKNOWN','SHOULD_CLOSE_CONN','onTransformIME','loadOfflineData','[CollaborationSessionService]:\x20socket\x20error','startRow','ImageIoService','status$','Error\x20on\x20receiving\x20event','objectType','div','assign','sessionStatus$','collaMsg','M0\x200H16V16H0z','BASE64','reverse','_setupBeforeClosingHandler','UserManagerService','getCurrentSelections','_tryReconnect','FileId','[CollaborationSessionService]','_onRemoteACK','session.room-full','YUUMI_UNABLE_LOAD_URL','changesets','_clearScheduledTask','subunit','registerRenderModule','DocSelectionManagerService','XHRHTTPImplementation','/block/','fetchMissingChangesets','on-line-single','_handler','all','APPLY_REJECT','[CollaborationSession]','take','_schedule','onlineStatusTitle','getCollabEntity','current','cursorInfo$','_createInitialStateImpl','_anchorDot','split','_syncEditingCollabCursor','NEW_CHANGESETS','_joinRoom','_unitID','@univerjs/design','ENSURE_SNAPSHOT_EXECUTION','/universer-api/stream/file/upload','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','COMPRESS_MUTATION_SEND','includes','_transformSelections','hide','@univerjs/ui','PSEUDO_FETCH_MISSING_RESULT','conflict.content','evenodd','_document','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','fetchMiss','[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.','src','_clearLocalCache','_transformService','save','PENDING','JSONX','defineProperty','getActiveSheet','pipe','from','_timeoutTimer','\x20-\x20','InsertRangeMoveDownCommandId','originalMeta','name','size','_saveCache','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','SnapshotServerOverHTTPService','random','getMember','not_collab','@univerjs-pro/collaboration','font','_initStatusListener','_cachedData','LICENSE_IMPORT_SIZE_EXCEEDED','hovered','univer-online-status-icon','_submitChangeset','10BsDIIg','sheetID','CollaborationStatusDisplay','values','ImageSourceType','setShapeProps','_updateState','apply','_online','equals','_socketMessageSubscription','disableLocalCache','saveSnapshot','memberID','getUnitId','4487697oylEMz','OTHER_CLIENTS_EDITING','PERMISSION_REJ','unshift','_acknowledgedAwaitingChangeset','syncEditingCollabCursor','getCoordByCell','SNAPSHOT_SERVER_URL_KEY','subUnitId','SetTextSelectionsOperation','textRanges','create','target','send','CompressMutationService','shouldCloseConn','_sheetTransformSelectionsService','permission.content','_clearHeartbeatTimer','dispose$','focused$','cursorInfo','override','range','collabStatus.syncing','_replayCachedMutations','WebURLService','tag','_isPermissionRej','_send','ws://127.0.0.1:8000/universer-api/comb/connect','IImageIoService','UNIVER_DOC','onStateChange','_textBubble','debounce','image/jpeg','next','_onUserJoin','addObjects','IHTTPImplementation','_notificationService','OFFLINE','Injector','ERROR_IMAGE_TYPE','_disableEditing','[SyncedState]:\x20received\x20rejection.','UniverEngineRender','loadDoc','EmptyMutation','UniverInstanceType','_onRemoteRejected','onTransformSelections','_singleActiveUnitService','m2Prime','createInstance','_snapshotService','deserializeToCombResponse','Rectangle','_collabCursorState$','Inject','state','result','CollaborationEvent','univer-online-status','connection\x20error','infoRsp','_range','stringify','unitId\x20is\x20not\x20found','_name','_anchor','fetch_missing','csRejEvent','_event$','Optional','createElement','appendMutation','?size=','RegularPolygon','cmd','socket\x20close','colorChannel1','2712096thaKFE','incrementRevOfUnit','LocalCacheService','/collaborator','members','InsertSheetMutation','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','Plugin','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','getUnitStatus$','fill','_sheetSkeletonManagerService','_getAPIPrefix','_configService','_id','_removeRoom','ILocalStorageService','_updateLocalCursor','_change$','UniverCore','_scheduleClearOtherTimer','RevisionService','CollaborationEntity','IConfigService','transformRemoteChangeset','save\x20fail\x20reason\x20is\x20','activeSheet$','_sendHeartbeat','SetWorksheetActivateCommand','min','getInterceptPoints','UNRECOGNIZED','xlink:href','_injector','_onFetchMissResult','/object/','collabStatus.offline','_drawRectRange','add','MUTATION','height','_messageService','getImage','setActiveRange','_localCacheService','_collaborationTimeoutTimer','_imageSourceCache','45WnDWdh','LOCAL_CACHE_INTERVAL_KEY','_scheduleSaving','#fff','_clearTimeoutTimer','currentSkeleton$','fillRule','clipPath','bind','joinEvent','React','eventID','FromArray','isArray','sendChangesetTimeout','UniverDocs','selections','collab-text-range-','assignAColorForMemberID','setTimeout','_onOffline','put','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','createSocket','deepClone','CONNECTOR_DATA_TOO_LARGE','roomMembers','withCredentials','isValidRectRange','HttpImport','_entities','commentUpdate$','DocCollaborationEntity','resourceIDs','interceptor','resolve','_getSignURL','commentUpdateEvent','_getDownloadEndpointURL','onMouseMove','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','rxjs/operators','_collabSessionService','collaboration_new_changeset','InsertRangeMoveRightCommandId','off-line-single','baseRev','UNIVER_SHEET','82040WlmrSa','RxDisposable','DependentOn','_listenToOfflineEvent','UNAUTHENTICATED','newValue','RETRY_CONNECTING_MAX_COUNT','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','univer-pro.collaboration-client.single-active-unit-service','HEARTBEAT','_initModules','asObservable','_docStateChangeManagerService','post','toString','TOO_MANY_REQUESTS','touchDependencies','_roomMembers$','rev','takeUntil','onRemoteRej','_cursors','getUndoRedoMutationParamsCache','collaboration-session-retry','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','APPLY_DUPLICATED','@univerjs/docs-ui','univer-offline','[OfflineState]:\x20received\x20acknowledgement.','resize','_HTTPService','get','indexOf','href','sid','mutations','UniverRpc','object','registerHTTPInterceptor','_drawAnchor','parseProtocolChangeset','awaiting_with_pending','getValue','LICENSE_EXPORT_SIZE_EXCEEDED','_hideTimer','OnLineSingle','initWorkbookPermissionChange','history','[SyncedState]:\x20received\x20acknowledgement.','transformByState','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_saveTaskMap','58634cMngMV','RECV','reconnect','image/gif','reject','use','unload','Disposable','prototype','getSheetBySheetId','_ws','handleDeleteRangeMoveUp','_state$','AUTHZ_URL_KEY','getDeserializedSheetBlock','[DataLoaderController]','_sessions','subscribeEvent','ColorKit','onlineStatusIcon','debug','NO_OTHER_CLIENTS_EDITING','unit','DocSkeletonManagerService','type','collaborators','_waitForHeartbeatResponse','getCurrentUnitForType','sessionStatus','EffectRefRangId','_initEventListeners','DisposableCollection','SnapshotService','_refRangeService','_initCommandExecutedListener','IRenderManagerService','session.connection-failed','subscribe','TEXT_RANGE_LAYER_INDEX','verdancy600','text','transformMutation','UPDATE_CURSOR','univer-pro.collaboration-client-socket-service','_onConnectionFailed','sequenceExecute','IPermissionService','BuiltInUIPart','x-univer-host','transformUndoRedo','SetSelectionsOperation','disposeWithMe','SYNCED','storage','ThemeService','getUniverSheetInstance','unsubscribe','getTypeOfUnitAdded$','doc.mutation.rich-text-editing','UNKNOWN_CODE','width','RemoveRowCommandId','Warning','downloadEndpointUrl','Undefined','LIVESHARE_NEW_HOST','_clearRedo','authzUrl','rng','APPLY_NON_SEQUENTIAL_REVISION','_toggleOffline','onSyncEditingCollabCursor','_docTransformIMECacheService','DeleteRangeMoveUpCommandId','key','MessageType','CHANGESET_REVISION_CONFILICT','_http','handleIRemoveRow','_onCombEvent','?url=','snapshotServerUrl','getVpScrollXYInfoByPosToVp','pushState','INVALID_ARGUMENT','replaceState','toStringTag','setInterval','closeSession','SheetCollaborationEntity','SNAPSHOT_INVALID_SNAPSHOT','_decreaseWaiting','SEND_CHANGESET_TIMEOUT','SNAPSHOT_URL_KEY','getLatestCsReqIdBySid','_updateStatus','IDLE','8UfUWHZ','_collaborationSessionService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','close$','DocStateChangeManagerService','SheetSkeletonManagerService','replaceTextRanges','_collaborationController','univerjs-icon\x20univerjs-icon-','icon','objectID','title','_getAnchorBounding','collaboration.closeRoom','WorkbookEditablePermission','\x20in\x20_schedule.','auth.needGotoLoginAlert','COLLAB_WEB_SOCKET_URL','SheetCollabCursorShape','APPLY_REVISION_CONFILICT','COMMENT_UPDATE','UNDEFINED','CollaborationStatus','parseChangesetToProtocol','IUniverInstanceService','collaboration-client.config','map','addImageSourceCache','_setupSubUnitSync','isTransformMutationFailure','concat','getCollabEntity$','_socketService','@univerjs/engine-formula','dispose','startsWith','_socket','purple300','_telemetryService','[CollaborationEntity]','UniverSheets','roomInfos','updatePermissionPoint','isPermissionRej','visibilityState','_loadSheet','has','DataLoaderController','_initResize','ranges','getFocusedUnit','UniverTelemetry','SUBMIT_CHANGESET','CHANGESET_REJ','_replaceFileID','getCurrentRevOfUnit','_toggleOnline','find','_roomMembers','UniverCollaborationPlugin','LIVESHARE_REQUEST_HOST','hidden','combineLatest','getRenderById','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','Tools','_onCursorDelete','on-line-single_clip0_910_349','JOINING','DEFAULT_FILE_NAME','_cursorShapes','_assignedColors','Subject','idSuffix','_status$','_createHandler','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','_getUndoStack','restore','YUUMI_RATE_OVER_LIMIT','registerOnClose','_scheduleTimestamp','collabStatus.notCollab','_sessionStatus$','filter','0\x200\x2016\x2016','_getSheetObject','getRangePointData','@univerjs/telemetry','useCallback','UniverCollaboration','_createInitialState','UniverEngineFormula','hasOwnProperty','now','getCurrent','LIVESHARE_OPERATION','DesktopCollaborationStatusDisplayController','collabStatus.synced','copyFileMeta','_instanceService','readAsDataURL','UniverDocsUi','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','getCellPositionByOffset','_config','encode','_sendingTimer','_lastPointer','url(#off-line-single_clip0_910_343)','localeService','round','roles','concatMap','_changesetReqId','_revisionService','onRemoteAck','url','_updateURLWithCurrentState','_startCollaboration','NOT_COLLAB','&to=','_userManagerService','_applyRemoteChangeset','_transformUndoredo','_onUserLeave','NodePositionConvertToCursor','LICENSE_DISTRO_REJECTED','measureText','whenReady','collabStatus.fetchMiss','Rect','setAlpha','serializeRangeWithSheet','_registerRenderDependencies','extend','1em','@univerjs/drawing','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','enableAuthServer','ICollaborationSocketService','_removeCollabCursors','_shapes','_sendHeartbeatTimer','throttleTime','enableLocalCache','body','_snapshotServerService','_socket$','complete','reqId','leaveEvent','NOT_FOUND','className','_docSyncEditingCollabCursorService','UniverIcon','function','children','_members','MSG_FOR_ERROR','_draw','_commandService','update','change$','startTime','collaboratorID','mergeOverrideWithDependencies','translate(.97)','useRef','onReady','updateOfflineData','[OfflineState]:\x20received\x20rejection.','_startTelemetryCollaborationNewChangeset','onRemoteChangeset','workbook','path','session.collaboration-timeout','_refreshCollabCursors','_univerInstanceService','_memberService','_beforeCloseService','UniverNetwork','getTypeOfUnitDisposed$','fromEventSubject','onMissedChangesetFetched','_onCursorUpdate','_collaborationPaused','merge','collabSubmitChangesetUrl','sheets','_undoStacks','collabCursorState$','_transformIMECache','_initRequestHeader','UnitEmbedded','capture','#FFF','_pendingMutations','compose','_unlockTransition','flatMap','/universer-api/authz','_color','transformSelections','_colorIndex','refreshPermission','_retryCount','_eventUnsubscribe','_onJoinRoomEvent','SheetsSelectionsService','requireSession','svg','data','UPDATE_PERMISSION_OBJ','forwardRef','DocIMEInputManagerService','fromEvent','_transformStack','permission.title','black','forEach','socket\x20open.','collaboration.single-unit.warning','code','UNIVER_SLIDE','urlChange$','color','_exhaustRemoteChangesetQueue','string','_unitOnClients','_renderManagerService','getViewport','unknown','_onConnectionOpen','isActive','ONLINE','engine','UniverLicense','LOCAL_CACHE_INTERVAL','_getMergeRange','toDisposable','_urlService','contains','textEncoder','_throwTelemetryCollaborationNewChangeset','UNIVER_COLLABORATION_CLIENT_PLUGIN','unitID','init','LocaleService','set','_httpService','POST','fillStyle','_startDocCollabCursor','SNAPSHOT_HAS_BEEN_REMOVED','saveChangeset','amd','joinRsp','_handleJoinEvent','lineTo','params','getOffsetConfig','m1Prime','findNodePositionByCharIndex','[FetchMissState]','transformStack\x20failed!','_getCurrentRevision','_incrementRevisionNumber','objectActions','every','session.will-retry','@univerjs/sheets-ui','handleInsertRangeMoveDown','_clearUndo','IMessageService','/new_changes','getRoom','_getAPIPrefixPath','_rescheduleHeartbeat','drawWith','handleDeleteRangeMoveLeft','[PendingState]:\x20unhandled\x20univer\x20type:\x20','HEARTBEAT_INTERVAL_KEY','_labelPosition','removeMember','{fileID}','sheetId','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','currentTheme$','/unit/','defs','_updateCollabCursors','transformChangesets','isTransformChangesetsSuccess','removeParam','blue400','CollaborationSocketService','_handleHover','toRgbString','message$','list','onPointerEnter$','IBeforeCloseService','ERROR_IMAGE','with','HTTPRequest','_collabCursorController','setParam','ImageUploadStatusType','BehaviorSubject','call','/-/object/-/batch_allowed','SessionStatus','/allowed','fillText','_initStatusComponent','_onRemoteChangeset','_updateSubUnitFromURLParams','error','YUUMI_SUBSCRIPTION_NOT_FOUND','_docTransformSelectionsService','CommentService','debounceTime','disposeUnit','Vector2','_selfUnitIDs','endRow','_compressMutationService','_lockTransition','ThresholdInterceptorFactory','_type','Unknown\x20user','transformMutationsWithChangeset','CHANGESET_ACK','_tryEnsureSocket','_checkMissing','snapshot','unitId','3359839DGZMKV','/universer-api/snapshot/','FETCH_MISSING','_localStorageService','_retryConnectingTimer','registerBeforeClose','onTransformRemoteChangesetByIMECache','RETRY_CONNECTING_MAX_COUNT_KEY','close','_uiPartsService','revision','_handleLeaveEvent','offline','_registerDependencies','getItem','_onRefRangeChange','loadSheet','uploadFileServerUrl','_substituteRedoStack','_cursor','editingUnit','awaitingChangeset','HEARTBEAT_INTERVAL','randomUUID','deleteCollaborator','[PendingState]:\x20received\x20acknowledgement.','IUIPartsService','handleInsertRangeMoveRight','json','getCurrentUser','[UniverCollaborationClientPlugin]','/fetchmissing?from=','COMPRESS_MUTATION_APPLY','\x20to\x20','url(#$1','status','_unitStatus','ERROR_EXCEED_SIZE','onCommandExecuted','RemoveColCommandId','shareReplay','_session','HEARTBEAT_TIMEOUT','handleInsertCol','createCollaborator','_onConflict','_entityInit$','_hovered','@univerjs/engine-render','updatePermissionObjEvent','show','USERS_ENTER','INGEST','max','fetchThroughInterceptors','image/bmp','_initCloseConn','_substituteUndoStack','permissionRejEvent','30116185aqRmNM','_scheduleHeartbeat','getSheetId','LocalUndoRedoService','/object','LOGIN_URL_KEY','WebSocketService','createIdentifier','mapTo','off-line-single_clip0_910_343','responseType','_clearOtherTimers','image/png','delay','newCsEvent','failed\x20to\x20apply\x20missed\x20changesets!','currentColor','reduce','collab-client.tooltip.reconnect','LEAVE','_clearCollaborationTimeoutTimer','allowed','YUUMI_URL_COL_OUT_OF_RANGE','requestParams','ISnapshotServerService','getUnitType','enableOfflineEditing','closePath','UniverCollaborationClientPlugin','RichTextEditingMutation','_localeService','CollaborationSessionService','_transitionLocked','then','CollaborationController','_updateLocalCache','_docSkeletonManagerService','_remoteChangesetQueue','catch','Shape','exhaustSavingTask','file','serializeCombRequest','SEND_CHANGESET_TIMEOUT_KEY','getParam','_waitCount','12KLlFrd','ILogService','getOwnPropertyDescriptor','_disabled','addEventListener','getDocRanges','_listenToOnlineEvent','getColor','registerRefRange','_onLocalMutation','_removeClearOtherTimer','UniverSheetsUi','objects','handleIRemoveCol','ICommandService','addObject','getSheetBlock','fetching\x20missing\x20changesets\x20from\x20','getMemberID','_transformUndoRedoStack','delete','liveShareNewHost','onlineStatus','onload','_permissionService','roomMembers$','fromCollab','FAIL','none','resend','_scene','awaiting','c1Prime','_getRedoStack','FETCH_MISS'];_0x4e79=function(){return _0xff2bf7;};return _0x4e79();}(function(_0x3a008e,_0x4c79b8){const _0x3a1748=_0x4c16,_0x1ff51f=_0x3a008e();while(!![]){try{const _0x50fa55=-parseInt(_0x3a1748(0x3e4))/0x1+-parseInt(_0x3a1748(0x163))/0x2*(parseInt(_0x3a1748(0xff))/0x3)+-parseInt(_0x3a1748(0xd0))/0x4+parseInt(_0x3a1748(0x12f))/0x5*(-parseInt(_0x3a1748(0x37f))/0x6)+-parseInt(_0x3a1748(0x316))/0x7*(parseInt(_0x3a1748(0x1c4))/0x8)+-parseInt(_0x3a1748(0x4c1))/0x9+parseInt(_0x3a1748(0x4b2))/0xa*(parseInt(_0x3a1748(0x351))/0xb);if(_0x50fa55===_0x4c79b8)break;else _0x1ff51f['push'](_0x1ff51f['shift']());}catch(_0x344b92){_0x1ff51f['push'](_0x1ff51f['shift']());}}}(_0x4e79,0x55b61),function(_0x316310,_0x1f3c60){const _0xc9db33=_0x4c16;typeof exports==_0xc9db33(0x154)&&typeof module<'u'?_0x1f3c60(exports,require('@univerjs/core'),require('rxjs'),require(_0xc9db33(0x128)),require(_0xc9db33(0x484)),require(_0xc9db33(0x48c)),require('@univerjs/network'),require('@univerjs-pro/collaboration'),require(_0xc9db33(0x21c)),require(_0xc9db33(0x149)),require('@univerjs/sheets'),require(_0xc9db33(0x346)),require('@univerjs/docs'),require('@univerjs/drawing'),require(_0xc9db33(0x1e5)),require(_0xc9db33(0x2d3)),require(_0xc9db33(0x41e)),require('@univerjs/rpc'),require(_0xc9db33(0x436))):typeof define=='function'&&define[_0xc9db33(0x2c4)]?define([_0xc9db33(0x3a5),'@univerjs/core',_0xc9db33(0x3cb),_0xc9db33(0x128),_0xc9db33(0x484),_0xc9db33(0x48c),'@univerjs/network',_0xc9db33(0x4aa),_0xc9db33(0x21c),_0xc9db33(0x149),'@univerjs/sheets',_0xc9db33(0x346),_0xc9db33(0x3a7),_0xc9db33(0x24d),_0xc9db33(0x1e5),'@univerjs/sheets-ui',_0xc9db33(0x41e),_0xc9db33(0x417),'@univerjs-pro/license'],_0x1f3c60):(_0x316310=typeof globalThis<'u'?globalThis:_0x316310||self,_0x1f3c60(_0x316310['UniverCollaborationClient']={},_0x316310[_0xc9db33(0xe3)],_0x316310[_0xc9db33(0x3cb)],_0x316310[_0xc9db33(0x3cb)][_0xc9db33(0x42e)],_0x316310['UniverDesign'],_0x316310['UniverUi'],_0x316310[_0xc9db33(0x279)],_0x316310[_0xc9db33(0x21e)],_0x316310[_0xc9db33(0x1f7)],_0x316310[_0xc9db33(0x22a)],_0x316310[_0xc9db33(0x1ec)],_0x316310[_0xc9db33(0xac)],_0x316310[_0xc9db33(0x10e)],_0x316310['UniverDrawing'],_0x316310[_0xc9db33(0x220)],_0x316310[_0xc9db33(0x38a)],_0x316310[_0xc9db33(0x109)],_0x316310[_0xc9db33(0x153)],_0x316310[_0xc9db33(0x2b1)]));}(this,function(_0x4238fe,_0x593949,_0x30c949,_0x218e56,_0x2b27fc,_0xc44033,_0x4c2b25,_0x4968b4,_0x3d9685,_0x5c6469,_0xec6805,_0xa07e34,_0x4aa7be,_0x2b881e,_0x399ee2,_0x35ed85,_0x111993,_0x172174,_0x56e63b){'use strict';const _0x36f281=_0x4c16;var _0x58cbf7=Object[_0x36f281(0x49a)],_0x1c3be4=(_0x5abf15,_0x3e7d75,_0x401faf)=>_0x3e7d75 in _0x5abf15?_0x58cbf7(_0x5abf15,_0x3e7d75,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x401faf}):_0x5abf15[_0x3e7d75]=_0x401faf,_0x3e0772=(_0x19dc06,_0x3968c0,_0xe1b1)=>_0x1c3be4(_0x19dc06,typeof _0x3968c0!='symbol'?_0x3968c0+'':_0x3968c0,_0xe1b1);const _0x3f5413=_0x36f281(0x4c8),_0x227a95=_0x36f281(0x3ff),_0x418a13=_0x36f281(0x1c0),_0x2b528f=_0x36f281(0x1bf),_0x3db6d8=_0x36f281(0x1d5),_0x270218=_0x36f281(0x4df),_0xec8683=_0x36f281(0x32c),_0x512ef2=_0x36f281(0x340),_0x428723=_0x36f281(0x135),_0x443bb=_0x36f281(0x2b2),_0x51e7c0=_0x36f281(0x427),_0x16783a='/universer-api/comb',_0x40bc0f=_0x36f281(0x356),_0x945847='/universer-api/oidc/authpage';var _0x52baf3=(_0x2c772e=>(_0x2c772e[_0x2c772e['UNDEFINED']=0x0]=_0x36f281(0x1d9),_0x2c772e[_0x2c772e['OK']=0x1]='OK',_0x2c772e[_0x2c772e['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x2c772e[_0x2c772e[_0x36f281(0x440)]=0x3]=_0x36f281(0x440),_0x2c772e[_0x2c772e[_0x36f281(0x25c)]=0x4]='NOT_FOUND',_0x2c772e[_0x2c772e[_0x36f281(0x133)]=0x5]=_0x36f281(0x133),_0x2c772e[_0x2c772e[_0x36f281(0x3a6)]=0x6]=_0x36f281(0x3a6),_0x2c772e[_0x2c772e[_0x36f281(0x1b7)]=0x7]=_0x36f281(0x1b7),_0x2c772e[_0x2c772e[_0x36f281(0x13e)]=0x8]=_0x36f281(0x13e),_0x2c772e[_0x2c772e[_0x36f281(0x44f)]=0x9]=_0x36f281(0x44f),_0x2c772e[_0x2c772e[_0x36f281(0x1af)]=0x1389]=_0x36f281(0x1af),_0x2c772e[_0x2c772e['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x36f281(0x1bd),_0x2c772e[_0x2c772e[_0x36f281(0x2c2)]=0x1772]=_0x36f281(0x2c2),_0x2c772e[_0x2c772e['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x36f281(0x485),_0x2c772e[_0x2c772e[_0x36f281(0x475)]=0x1b59]=_0x36f281(0x475),_0x2c772e[_0x2c772e['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x36f281(0x1a8),_0x2c772e[_0x2c772e[_0x36f281(0x1d7)]=0x1b5b]=_0x36f281(0x1d7),_0x2c772e[_0x2c772e['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x2c772e[_0x2c772e[_0x36f281(0x148)]=0x1b5d]='APPLY_DUPLICATED',_0x2c772e[_0x2c772e[_0x36f281(0x118)]=0x1f41]=_0x36f281(0x118),_0x2c772e[_0x2c772e['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2c772e[_0x2c772e[_0x36f281(0x487)]=0x232a]=_0x36f281(0x487),_0x2c772e[_0x2c772e[_0x36f281(0x4ae)]=0x232b]=_0x36f281(0x4ae),_0x2c772e[_0x2c772e[_0x36f281(0x15a)]=0x232c]=_0x36f281(0x15a),_0x2c772e[_0x2c772e[_0x36f281(0x243)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x2c772e[_0x2c772e['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x36f281(0x469),_0x2c772e[_0x2c772e['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x36f281(0x367),_0x2c772e[_0x2c772e[_0x36f281(0x213)]=0x2713]=_0x36f281(0x213),_0x2c772e[_0x2c772e['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x36f281(0x303),_0x2c772e[_0x2c772e[_0x36f281(0xef)]=-0x1]='UNRECOGNIZED',_0x2c772e))(_0x52baf3||{}),_0x4775b3=(_0x5f3409=>(_0x5f3409[_0x5f3409[_0x36f281(0x450)]=0x0]=_0x36f281(0x450),_0x5f3409[_0x5f3409[_0x36f281(0x4e1)]=0x1]=_0x36f281(0x4e1),_0x5f3409[_0x5f3409[_0x36f281(0x12e)]=0x2]=_0x36f281(0x12e),_0x5f3409[_0x5f3409[_0x36f281(0x2a4)]=0x3]=_0x36f281(0x2a4),_0x5f3409[_0x5f3409[_0x36f281(0x434)]=0x4]='UNIVER_PROJECT',_0x5f3409[_0x5f3409['UNRECOGNIZED']=-0x1]=_0x36f281(0xef),_0x5f3409))(_0x4775b3||{}),_0x5e3ac2=(_0x3c0399=>(_0x3c0399[_0x3c0399[_0x36f281(0x449)]=0x0]=_0x36f281(0x449),_0x3c0399[_0x3c0399[_0x36f281(0x3ab)]=0x1]=_0x36f281(0x3ab),_0x3c0399[_0x3c0399[_0x36f281(0x419)]=0x2]=_0x36f281(0x419),_0x3c0399[_0x3c0399[_0x36f281(0x364)]=0x3]=_0x36f281(0x364),_0x3c0399[_0x3c0399[_0x36f281(0x34a)]=0x4]=_0x36f281(0x34a),_0x3c0399[_0x3c0399[_0x36f281(0x138)]=0x5]=_0x36f281(0x138),_0x3c0399[_0x3c0399[_0x36f281(0x164)]=0x6]=_0x36f281(0x164),_0x3c0399[_0x3c0399[_0x36f281(0xef)]=-0x1]=_0x36f281(0xef),_0x3c0399))(_0x5e3ac2||{}),_0xd96311=(_0x4c0504=>(_0x4c0504[_0x4c0504[_0x36f281(0x19e)]=0x0]=_0x36f281(0x19e),_0x4c0504[_0x4c0504['OK']=0x1]='OK',_0x4c0504[_0x4c0504[_0x36f281(0x39a)]=0x2]=_0x36f281(0x39a),_0x4c0504[_0x4c0504[_0x36f281(0xef)]=-0x1]=_0x36f281(0xef),_0x4c0504))(_0xd96311||{}),_0x34a97d=(_0x108334=>(_0x108334[_0x108334[_0x36f281(0x1a3)]=0x0]=_0x36f281(0x1a3),_0x108334[_0x108334[_0x36f281(0x11c)]=0x1]=_0x36f281(0x11c),_0x108334[_0x108334['HttpExport']=0x2]=_0x36f281(0x3ce),_0x108334[_0x108334[_0x36f281(0x286)]=0x3]=_0x36f281(0x286),_0x108334[_0x108334[_0x36f281(0x3eb)]=0x4]=_0x36f281(0x3eb),_0x108334[_0x108334[_0x36f281(0xef)]=-0x1]=_0x36f281(0xef),_0x108334))(_0x34a97d||{});const _0xfe6e3e=_0x36f281(0x1dd),_0x57fe04={};function _0x49635b(_0x25a445){const _0xa6a016=_0x36f281;var _0x4ff51e,_0x811e04,_0x6da64c,_0x186137;const _0xa517db=_0x25a445[_0xa6a016(0x298)],_0x69971a=JSON[_0xa6a016(0x3bb)](_0xa517db);switch(_0x69971a[_0xa6a016(0xcd)]){case _0x5e3ac2[_0xa6a016(0x138)]:case _0x5e3ac2['HELLO']:{const _0x3c1cbc=_0x69971a[_0xa6a016(0xbf)];return{..._0x69971a,'data':_0x3c1cbc,'cmd':_0x69971a[_0xa6a016(0xcd)]};}case _0x5e3ac2[_0xa6a016(0x419)]:{const _0x465780=_0x69971a[_0xa6a016(0x2c5)];return{..._0x69971a,'data':_0x465780,'cmd':_0x69971a[_0xa6a016(0xcd)]};}case _0x5e3ac2[_0xa6a016(0x164)]:{const _0x6b2b10=_0x69971a[_0xa6a016(0x45d)];switch(_0x6b2b10[_0xa6a016(0x10a)]){case _0x4968b4['CollaborationEvent'][_0xa6a016(0x4c3)]:return{..._0x69971a,'data':{..._0x6b2b10,'data':(_0x4ff51e=_0x6b2b10[_0xa6a016(0x350)])==null?void 0x0:_0x4ff51e['cs']},'cmd':_0x69971a['cmd']};case _0x4968b4[_0xa6a016(0xbc)][_0xa6a016(0x311)]:return{..._0x69971a,'data':{..._0x6b2b10,'data':(_0x811e04=_0x6b2b10['csAckEvent'])==null?void 0x0:_0x811e04['cs']},'cmd':_0x69971a[_0xa6a016(0xcd)]};case _0x4968b4[_0xa6a016(0xbc)][_0xa6a016(0x481)]:return{..._0x69971a,'data':{..._0x6b2b10,'data':(_0x6da64c=_0x6b2b10[_0xa6a016(0x35f)])==null?void 0x0:_0x6da64c['cs']},'cmd':_0x69971a[_0xa6a016(0xcd)]};case _0x4968b4[_0xa6a016(0xbc)][_0xa6a016(0x1f9)]:return{..._0x69971a,'data':{..._0x6b2b10,'data':(_0x186137=_0x6b2b10[_0xa6a016(0xc6)])==null?void 0x0:_0x186137['cs']},'cmd':_0x69971a[_0xa6a016(0xcd)]};case _0x4968b4['CollaborationEvent']['UPDATE_CURSOR']:return{..._0x69971a,'data':{..._0x6b2b10,'data':_0x6b2b10['updateCursorEvent']},'cmd':_0x69971a[_0xa6a016(0xcd)]};case _0x4968b4[_0xa6a016(0xbc)][_0xa6a016(0x349)]:return{..._0x69971a,'data':{..._0x6b2b10,'data':_0x6b2b10[_0xa6a016(0x108)]},'cmd':_0x69971a[_0xa6a016(0xcd)]};case _0x4968b4[_0xa6a016(0xbc)][_0xa6a016(0x3b2)]:return{..._0x69971a,'data':{..._0x6b2b10,'data':_0x6b2b10[_0xa6a016(0x25b)]},'cmd':_0x69971a[_0xa6a016(0xcd)]};case _0x4968b4[_0xa6a016(0xbc)][_0xa6a016(0x1a4)]:return{..._0x69971a,'data':{..._0x6b2b10,'data':_0x6b2b10['liveShareNewHost']},'cmd':_0x69971a[_0xa6a016(0xcd)]};case _0x4968b4['CollaborationEvent'][_0xa6a016(0x3cd)]:case _0x4968b4['CollaborationEvent'][_0xa6a016(0x224)]:return{..._0x69971a,'data':{..._0x6b2b10,'data':_0x6b2b10['liveShareOperation']},'cmd':_0x69971a[_0xa6a016(0xcd)]};case _0x4968b4[_0xa6a016(0xbc)]['LIVESHARE_TERMINATE']:return{..._0x69971a,'data':{..._0x6b2b10,'data':_0x6b2b10[_0xa6a016(0x394)]},'cmd':_0x69971a[_0xa6a016(0xcd)]};case _0x4968b4[_0xa6a016(0xbc)]['MSG_FOR_ERROR']:return{..._0x69971a,'data':_0x6b2b10,'cmd':_0x69971a[_0xa6a016(0xcd)]};case _0x4968b4[_0xa6a016(0xbc)][_0xa6a016(0x1d8)]:return{..._0x69971a,'data':{..._0x6b2b10,'data':_0x6b2b10[_0xa6a016(0x124)]},'cmd':_0x69971a[_0xa6a016(0xcd)]};case _0x4968b4[_0xa6a016(0xbc)][_0xa6a016(0x299)]:return{..._0x69971a,'data':{..._0x6b2b10,'data':_0x6b2b10[_0xa6a016(0x347)]},'cmd':_0x69971a[_0xa6a016(0xcd)]};case _0x4968b4[_0xa6a016(0xbc)][_0xa6a016(0x451)]:return{..._0x69971a,'data':{..._0x6b2b10,'data':_0x6b2b10[_0xa6a016(0x4d0)]},'cmd':_0x69971a[_0xa6a016(0xcd)]};default:return _0x69971a;}}default:return _0x69971a;}}function _0x59173a(_0x5829b4){const _0x2c54c4=_0x36f281;switch(_0x5829b4[_0x2c54c4(0xcd)]){case _0x5e3ac2['HEARTBEAT']:case _0x5e3ac2[_0x2c54c4(0x3ab)]:return JSON[_0x2c54c4(0xc1)]({'cmd':_0x5829b4[_0x2c54c4(0xcd)],'routeKey':_0x5829b4[_0x2c54c4(0x3c5)]});case _0x5e3ac2[_0x2c54c4(0x34a)]:{let _0x2c46b0;switch(_0x5829b4[_0x2c54c4(0x298)][_0x2c54c4(0x10a)]){case _0x4968b4[_0x2c54c4(0xbc)][_0x2c54c4(0x18d)]:{_0x2c46b0={'eventID':_0x4968b4['CollaborationEvent'][_0x2c54c4(0x18d)],'updateCursorEvent':_0x5829b4[_0x2c54c4(0x298)]['data']};break;}case _0x4968b4['CollaborationEvent'][_0x2c54c4(0x3b2)]:{_0x2c46b0={'eventID':_0x4968b4[_0x2c54c4(0xbc)][_0x2c54c4(0x3b2)],'leaveEvent':_0x5829b4[_0x2c54c4(0x298)][_0x2c54c4(0x298)]};break;}case _0x4968b4[_0x2c54c4(0xbc)][_0x2c54c4(0x349)]:{_0x2c46b0={'eventID':_0x4968b4[_0x2c54c4(0xbc)][_0x2c54c4(0x349)],'joinEvent':_0x5829b4['data'][_0x2c54c4(0x298)]};break;}case _0x4968b4[_0x2c54c4(0xbc)]['LIVESHARE_NEW_HOST']:{_0x2c46b0={'eventID':_0x4968b4[_0x2c54c4(0xbc)][_0x2c54c4(0x1a4)],'liveShareNewHost':_0x5829b4[_0x2c54c4(0x298)][_0x2c54c4(0x298)]};break;}case _0x4968b4[_0x2c54c4(0xbc)][_0x2c54c4(0x224)]:{_0x2c46b0={'eventID':_0x4968b4['CollaborationEvent'][_0x2c54c4(0x224)],'liveShareOperation':_0x5829b4[_0x2c54c4(0x298)][_0x2c54c4(0x298)]};break;}case _0x4968b4[_0x2c54c4(0xbc)][_0x2c54c4(0x43b)]:{_0x2c46b0={'eventID':_0x4968b4[_0x2c54c4(0xbc)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x5829b4['data'][_0x2c54c4(0x298)]};break;}case _0x4968b4[_0x2c54c4(0xbc)][_0x2c54c4(0x200)]:{_0x2c46b0={'eventID':_0x4968b4[_0x2c54c4(0xbc)][_0x2c54c4(0x200)],'liveShareRequestHost':_0x5829b4[_0x2c54c4(0x298)][_0x2c54c4(0x298)]};break;}case _0x4968b4[_0x2c54c4(0xbc)]['LIVESHARE_FETCH_OPERATIONS']:{_0x2c46b0={'eventID':_0x4968b4[_0x2c54c4(0xbc)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x2c46b0={'eventID':_0x5829b4[_0x2c54c4(0x298)]['eventID']};}return JSON[_0x2c54c4(0xc1)]({'cmd':_0x5829b4[_0x2c54c4(0xcd)],'routeKey':_0x5829b4['routeKey'],'collaMsg':_0x2c46b0});}case _0x5e3ac2[_0x2c54c4(0x419)]:return JSON[_0x2c54c4(0xc1)]({'cmd':_0x5829b4[_0x2c54c4(0xcd)],'routeKey':_0x5829b4[_0x2c54c4(0x3c5)],'joinReq':_0x5829b4[_0x2c54c4(0x298)]});case _0x5e3ac2[_0x2c54c4(0x364)]:return JSON['stringify']({'cmd':_0x5829b4[_0x2c54c4(0xcd)],'routeKey':_0x5829b4['routeKey'],'leaveReq':_0x5829b4[_0x2c54c4(0x298)]});default:throw new Error(_0x2c54c4(0x4a5));}}var _0xe19ba4=Object[_0x36f281(0x49a)],_0xf1f4f2=Object[_0x36f281(0x381)],_0x215bca=(_0x4b9c60,_0xee6bfd,_0x4d38aa,_0x2a801e)=>{const _0x1f9c17=_0x36f281;for(var _0x14f640=_0x2a801e>0x1?void 0x0:_0x2a801e?_0xf1f4f2(_0xee6bfd,_0x4d38aa):_0xee6bfd,_0x2f2d0c=_0x4b9c60[_0x1f9c17(0x43f)]-0x1,_0x173441;_0x2f2d0c>=0x0;_0x2f2d0c--)(_0x173441=_0x4b9c60[_0x2f2d0c])&&(_0x14f640=(_0x2a801e?_0x173441(_0xee6bfd,_0x4d38aa,_0x14f640):_0x173441(_0x14f640))||_0x14f640);return _0x2a801e&&_0x14f640&&_0xe19ba4(_0xee6bfd,_0x4d38aa,_0x14f640),_0x14f640;},_0xdc1482=(_0x123ccc,_0x2139f0)=>(_0x3e9781,_0x226928)=>_0x2139f0(_0x3e9781,_0x226928,_0x123ccc);const _0x2d8f92=_0x593949[_0x36f281(0x358)](_0x36f281(0x18e));function _0x5733a0(_0x4c0fa1,_0x3367a0,_0x510b61){const _0x1f51fc=_0x36f281;return _0x4c0fa1+'/'+_0x3367a0+_0x1f51fc(0x2e5)+_0x510b61+_0x1f51fc(0x2d7);}_0x4238fe[_0x36f281(0x2ec)]=class extends _0x593949[_0x36f281(0x16a)]{constructor(_0x24b84f,_0x274acc,_0x3ab662,_0x14b696,_0x2f0dbd){const _0x14e2e2=_0x36f281;super(),this[_0x14e2e2(0x1b0)]=_0x24b84f,this[_0x14e2e2(0x16d)]=_0x274acc,this[_0x14e2e2(0xdd)]=_0x3ab662,this[_0x14e2e2(0x3df)]=_0x14b696,this['_snapshotServerService']=_0x2f0dbd;}[_0x36f281(0x116)](_0x6d2e2f){const _0x4c75df=_0x36f281,_0x14e55c=this[_0x4c75df(0x16d)]['createSocket'](_0x6d2e2f);if(!_0x14e55c)throw new Error(_0x4c75df(0x491));const _0x5d7205=new _0x593949[(_0x4c75df(0x182))](),_0xd9e3b8=new _0x30c949[(_0x4c75df(0x20c))]();_0x5d7205[_0x4c75df(0xf6)](_0x14e55c[_0x4c75df(0x1c7)][_0x4c75df(0x188)](_0x2f9f33=>_0xd9e3b8[_0x4c75df(0x4e6)](_0x2f9f33))),_0x5d7205[_0x4c75df(0xf6)](_0x593949[_0x4c75df(0x2b4)](()=>_0xd9e3b8[_0x4c75df(0x259)]()));const _0x37bd24=new _0x30c949[(_0x4c75df(0x20c))]();_0x5d7205['add'](_0x14e55c[_0x4c75df(0x3d4)]['subscribe'](_0x4f5d00=>_0x37bd24[_0x4c75df(0x4e6)](_0x4f5d00))),_0x5d7205['add'](_0x593949['toDisposable'](()=>_0x37bd24['complete']()));const _0x1fa915=new _0x30c949[(_0x4c75df(0x20c))]();_0x5d7205['add'](_0x14e55c['message$'][_0x4c75df(0x188)](_0x390264=>{const _0x5abdb6=_0x49635b(_0x390264);_0x1fa915['next'](_0x5abdb6);})),_0x5d7205[_0x4c75df(0xf6)](_0x593949[_0x4c75df(0x2b4)](()=>_0x1fa915[_0x4c75df(0x259)]()));let _0x1b817b;const _0x1dbd77=()=>{const _0x183326=_0x4c75df;_0x37bd24['next'](new Event(_0x183326(0xbe))),_0xd9e3b8['next'](new CloseEvent(_0x183326(0xbe))),_0x1b817b[_0x183326(0x31e)]();};return _0x1b817b={'memberID':'','close$':_0xd9e3b8[_0x4c75df(0x13a)](),'error$':_0x37bd24[_0x4c75df(0x13a)](),'open$':_0x14e55c['open$'],'message$':_0x1fa915[_0x4c75df(0x13a)](),'send':_0x50badc=>{const _0x50c072=_0x4c75df;if(_0x50badc['cmd']===_0x5e3ac2[_0x50c072(0x34a)]){if(_0x50badc[_0x50c072(0x298)][_0x50c072(0x10a)]===_0x4968b4[_0x50c072(0xbc)][_0x50c072(0x1f8)]){this[_0x50c072(0x4b1)](_0x1b817b,_0x50badc[_0x50c072(0x298)])[_0x50c072(0x377)](_0x5b25cd=>{const _0x39a16c=_0x50c072;this[_0x39a16c(0x3df)][_0x39a16c(0x302)](_0x5b25cd),_0x1dbd77();});return;}if(_0x50badc[_0x50c072(0x298)][_0x50c072(0x10a)]===_0x4968b4[_0x50c072(0xbc)][_0x50c072(0x318)]){const _0x4b2410=_0x50badc[_0x50c072(0x298)];this['_fetchMissChangesets'](_0x4b2410)['then'](_0x1d0149=>{const _0x5942c8=_0x50c072;_0x1fa915['next']({'cmd':_0x5e3ac2['RECV'],'code':_0xd96311['OK'],'routeKey':_0x4b2410['data'][_0x5942c8(0x2ba)],'routeType':'','data':{'eventID':_0x4968b4[_0x5942c8(0xbc)][_0x5942c8(0x48d)],'data':{'changesets':_0x1d0149}}});})['catch'](_0x3599b4=>{const _0x163556=_0x50c072;this[_0x163556(0x3df)][_0x163556(0x302)](_0x3599b4),_0x1dbd77();});return;}}_0x14e55c['send'](_0x59173a(_0x50badc));},'close':()=>{const _0x26e669=_0x4c75df;_0x14e55c[_0x26e669(0x31e)](),_0x5d7205[_0x26e669(0x1e6)]();}},_0x1b817b;}async['_submitChangeset'](_0x3cfcef,_0x474e17){const _0x4404bf=_0x36f281;var _0x2d1493,_0x544ab0;const {unitType:_0x5cfbaa,unitID:_0x539f19,changeset:_0x1113d7}=_0x474e17[_0x4404bf(0x298)],_0x56559f={'unitID':_0x539f19,'memberID':_0x3cfcef[_0x4404bf(0x4bf)],'type':_0x5cfbaa,'changeset':_0x4968b4[_0x4404bf(0x1db)](_0x1113d7)},_0x2fdc4d=this[_0x4404bf(0xdd)][_0x4404bf(0x3bd)](_0x51e7c0),_0x3380f4=this[_0x4404bf(0xdd)][_0x4404bf(0x3bd)](_0xfe6e3e),_0xc377f2=_0x5733a0((_0x544ab0=(_0x2d1493=_0x3380f4==null?void 0x0:_0x3380f4[_0x4404bf(0x280)])!=null?_0x2d1493:_0x2fdc4d)!=null?_0x544ab0:_0x16783a,_0x5cfbaa,_0x539f19);try{await this[_0x4404bf(0x1b0)][_0x4404bf(0x13c)](_0xc377f2,{'body':_0x56559f});}catch(_0x4bf9d0){throw this[_0x4404bf(0x3df)][_0x4404bf(0x302)](_0x4404bf(0x476),'submit\x20changeset\x20error!'),_0x4bf9d0;}}async['_fetchMissChangesets'](_0x4dd89c){const _0x280ca6=_0x36f281,{unitID:_0x7ed550,from:_0xecca16,to:_0x29bd20,unitType:_0x91e7de}=_0x4dd89c['data'];return(await this[_0x280ca6(0x257)][_0x280ca6(0x471)]({'metadata':void 0x0},{'unitID':_0x7ed550,'type':_0x91e7de,'from':_0xecca16,'to':_0x29bd20}))[_0x280ca6(0x46a)];}},_0x4238fe[_0x36f281(0x2ec)]=_0x215bca([_0xdc1482(0x0,_0x593949[_0x36f281(0xb9)](_0x4c2b25[_0x36f281(0x426)])),_0xdc1482(0x1,_0x593949[_0x36f281(0xb9)](_0x4c2b25[_0x36f281(0x357)])),_0xdc1482(0x2,_0x593949[_0x36f281(0xe7)]),_0xdc1482(0x3,_0x593949[_0x36f281(0x380)]),_0xdc1482(0x4,_0x4968b4[_0x36f281(0x369)])],_0x4238fe[_0x36f281(0x2ec)]);const _0x5df521=_0x36f281(0x12a);function _0x12263b(_0x1767e3){const _0x2681af=_0x36f281;return JSON[_0x2681af(0xc1)](_0x1767e3)[_0x2681af(0x43f)];}class _0x5a515d{constructor(){const _0x15fbd7=_0x36f281;_0x3e0772(this,_0x15fbd7(0x414),new _0x30c949[(_0x15fbd7(0x20c))]()),_0x3e0772(this,_0x15fbd7(0x11e),this[_0x15fbd7(0x414)][_0x15fbd7(0x13a)]());}[_0x36f281(0x3d3)](_0x590e2c){const _0x6d21d5=_0x36f281;this[_0x6d21d5(0x414)][_0x6d21d5(0x4e6)](_0x590e2c);}}var _0x330acb=Object[_0x36f281(0x49a)],_0x58a3ea=Object[_0x36f281(0x381)],_0x38f98d=(_0x4eae2b,_0x186693,_0x34bc9b,_0x47face)=>{for(var _0x26b05c=_0x47face>0x1?void 0x0:_0x47face?_0x58a3ea(_0x186693,_0x34bc9b):_0x186693,_0x14e7ae=_0x4eae2b['length']-0x1,_0x4f25dd;_0x14e7ae>=0x0;_0x14e7ae--)(_0x4f25dd=_0x4eae2b[_0x14e7ae])&&(_0x26b05c=(_0x47face?_0x4f25dd(_0x186693,_0x34bc9b,_0x26b05c):_0x4f25dd(_0x26b05c))||_0x26b05c);return _0x47face&&_0x26b05c&&_0x330acb(_0x186693,_0x34bc9b,_0x26b05c),_0x26b05c;},_0x2120a7=(_0x2c6ebf,_0x4755e2)=>(_0x2a6e91,_0x5a02f6)=>_0x4755e2(_0x2a6e91,_0x5a02f6,_0x2c6ebf);let _0x40c14d=class extends _0x593949['Disposable']{constructor(_0x4a7d17,_0x251e8a){const _0x2e283e=_0x36f281;super(),_0x3e0772(this,_0x2e283e(0x1fe),new Map()),(this[_0x2e283e(0x276)]=_0x4a7d17,this[_0x2e283e(0x23e)]=_0x251e8a,this['disposeWithMe'](_0x593949[_0x2e283e(0x2b4)](_0x30c949[_0x2e283e(0x27f)](this[_0x2e283e(0x276)][_0x2e283e(0x27a)](_0x593949[_0x2e283e(0xaf)][_0x2e283e(0x12e)])[_0x2e283e(0x49c)](_0x218e56['map'](_0x3d367f=>_0x3d367f[_0x2e283e(0x4c0)]())),this['_univerInstanceService'][_0x2e283e(0x27a)](_0x593949['UniverInstanceType']['UNIVER_DOC'])[_0x2e283e(0x49c)](_0x218e56[_0x2e283e(0x1de)](_0x170bc0=>_0x170bc0[_0x2e283e(0x4c0)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x593949[_0x2e283e(0xaf)][_0x2e283e(0x2a4)])[_0x2e283e(0x49c)](_0x218e56[_0x2e283e(0x1de)](_0x2ed886=>_0x2ed886[_0x2e283e(0x4c0)]())))[_0x2e283e(0x188)](_0x34ccd6=>this[_0x2e283e(0xdf)](_0x34ccd6)))));}[_0x36f281(0x3dc)](_0xaeb29d){const _0x25bfc4=_0x36f281;this[_0x25bfc4(0x23e)][_0x25bfc4(0x3dc)](_0xaeb29d);}[_0x36f281(0x333)](){const _0x464953=_0x36f281;return this['_userManagerService'][_0x464953(0x333)]();}[_0x36f281(0x3ee)](_0x5d2823,_0x21af41){const _0x2f6482=_0x36f281;let _0x95fd27=this['_roomMembers'][_0x2f6482(0x14e)](_0x5d2823);_0x95fd27||(_0x95fd27=new _0x28292f(),this['_roomMembers'][_0x2f6482(0x2bd)](_0x5d2823,_0x95fd27)),_0x95fd27[_0x2f6482(0x3ee)](_0x21af41);}['removeMember'](_0x50b453,_0x3b6b13){const _0x575569=_0x36f281,_0x8b00d9=this['_roomMembers'][_0x575569(0x14e)](_0x50b453);_0x8b00d9&&_0x8b00d9[_0x575569(0x2e0)](_0x3b6b13);}[_0x36f281(0x2d8)](_0xe2ba86){const _0x117d8e=_0x36f281;return this[_0x117d8e(0x1fe)][_0x117d8e(0x14e)](_0xe2ba86);}['getMember'](_0x5c95bf,_0x554e8d){const _0x3f1943=_0x36f281,_0x1fb94a=this[_0x3f1943(0x1fe)][_0x3f1943(0x14e)](_0x5c95bf);if(_0x1fb94a)return _0x1fb94a[_0x3f1943(0x4a8)](_0x554e8d);}[_0x36f281(0xdf)](_0x445d70){const _0xb9f525=_0x36f281,_0x3f0aad=this[_0xb9f525(0x1fe)]['get'](_0x445d70);_0x3f0aad&&(_0x3f0aad['dispose'](),this['_roomMembers'][_0xb9f525(0x393)](_0x445d70));}[_0x36f281(0x1e6)](){const _0x5d9ccc=_0x36f281;this[_0x5d9ccc(0x1fe)][_0x5d9ccc(0x2a0)](_0x22195d=>_0x22195d['dispose']()),this[_0x5d9ccc(0x1fe)]['clear']();}};_0x40c14d=_0x38f98d([_0x2120a7(0x0,_0x593949[_0x36f281(0x1dc)]),_0x2120a7(0x1,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0x462)]))],_0x40c14d);class _0x28292f extends _0x593949[_0x36f281(0x16a)]{constructor(){const _0x1b238a=_0x36f281;super(...arguments),_0x3e0772(this,_0x1b238a(0x262),new Map());}[_0x36f281(0x1e6)](){const _0x132429=_0x36f281;this[_0x132429(0x262)]['clear']();}['updateMember'](_0x26103b){const _0x5196c4=_0x36f281;this[_0x5196c4(0x262)][_0x5196c4(0x2bd)](_0x26103b[_0x5196c4(0x4bf)],_0x26103b);}[_0x36f281(0x2e0)](_0x27f60e){const _0x41f7f9=_0x36f281;this[_0x41f7f9(0x262)][_0x41f7f9(0x393)](_0x27f60e);}[_0x36f281(0x4a8)](_0x4cc07a){const _0x5469c9=_0x36f281;return this[_0x5469c9(0x262)][_0x5469c9(0x14e)](_0x4cc07a);}}var _0x615e3a=Object[_0x36f281(0x49a)],_0x9bac3f=Object[_0x36f281(0x381)],_0x34d061=(_0x25e602,_0x35f20f,_0x11d3a3,_0x317200)=>{const _0x4c405f=_0x36f281;for(var _0x5b8600=_0x317200>0x1?void 0x0:_0x317200?_0x9bac3f(_0x35f20f,_0x11d3a3):_0x35f20f,_0x2498f9=_0x25e602[_0x4c405f(0x43f)]-0x1,_0x1ec42b;_0x2498f9>=0x0;_0x2498f9--)(_0x1ec42b=_0x25e602[_0x2498f9])&&(_0x5b8600=(_0x317200?_0x1ec42b(_0x35f20f,_0x11d3a3,_0x5b8600):_0x1ec42b(_0x5b8600))||_0x5b8600);return _0x317200&&_0x5b8600&&_0x615e3a(_0x35f20f,_0x11d3a3,_0x5b8600),_0x5b8600;},_0x316683=(_0xfc6983,_0x28220c)=>(_0x27cd37,_0x2e778b)=>_0x28220c(_0x27cd37,_0x2e778b,_0xfc6983),_0x108499=(_0x5e083c=>(_0x5e083c[_0x5e083c[_0x36f281(0x1c3)]=0x0]=_0x36f281(0x1c3),_0x5e083c[_0x5e083c['JOINING']=0x1]=_0x36f281(0x208),_0x5e083c[_0x5e083c[_0x36f281(0x4eb)]=0x2]=_0x36f281(0x4eb),_0x5e083c[_0x5e083c[_0x36f281(0x2af)]=0x3]='ONLINE',_0x5e083c))(_0x108499||{});_0x4238fe[_0x36f281(0x44e)]=class extends _0x593949['RxDisposable']{constructor(_0x497be2,_0x380f58,_0x39156d,_0x2f181e,_0x171c91,_0x1acef6,_0x2707ef,_0x283826,_0x8e688f,_0x14cc3e){const _0xf301a7=_0x36f281;super(),_0x3e0772(this,_0xf301a7(0x217),new _0x30c949[(_0xf301a7(0x2f9))](0x0)),_0x3e0772(this,_0xf301a7(0x45c),this[_0xf301a7(0x217)]['asObservable']()),_0x3e0772(this,'_event$',new _0x30c949[(_0xf301a7(0x20c))]()),_0x3e0772(this,_0xf301a7(0x44d),this[_0xf301a7(0xc7)][_0xf301a7(0x13a)]()),_0x3e0772(this,_0xf301a7(0x1e8)),_0x3e0772(this,_0xf301a7(0x4bc)),_0x3e0772(this,'_collaborationTimeoutTimer'),_0x3e0772(this,'_shouldReportTelemetry',!0x1),_0x3e0772(this,_0xf301a7(0x3f5),null),(this[_0xf301a7(0x483)]=_0x497be2,this[_0xf301a7(0x3df)]=_0x39156d,this['_beforeCloseService']=_0x2f181e,this[_0xf301a7(0xf9)]=_0x171c91,this[_0xf301a7(0xdd)]=_0x1acef6,this['_localeService']=_0x2707ef,this['_memberService']=_0x283826,this[_0xf301a7(0x442)]=_0x8e688f,this['_telemetryService']=_0x14cc3e,this['_shouldReportTelemetry']=!!this[_0xf301a7(0x1ea)],_0x380f58[_0xf301a7(0x49c)](_0x30c949[_0xf301a7(0x142)](this[_0xf301a7(0x4d4)]))['subscribe'](_0x4d716f=>{const _0x2ad420=_0xf301a7;var _0x42338f;typeof _0x4d716f>'u'||(this[_0x2ad420(0x1e8)]=_0x4d716f,_0x4d716f?(this[_0x2ad420(0x482)](_0x4d716f),this[_0x2ad420(0x4bc)]=_0x4d716f[_0x2ad420(0x2ef)][_0x2ad420(0x188)](_0x28c267=>{const _0x2979c3=_0x2ad420;_0x28c267[_0x2979c3(0x3c5)]===this[_0x2979c3(0x483)]&&this[_0x2979c3(0x1b2)](_0x28c267);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x2ad420(0x217)][_0x2ad420(0x4e6)](0x2),(_0x42338f=this[_0x2ad420(0x4bc)])==null||_0x42338f[_0x2ad420(0x19b)](),this[_0x2ad420(0x4bc)]=null));}),this[_0xf301a7(0x196)](this[_0xf301a7(0x278)][_0xf301a7(0x214)](()=>{const _0x2e4707=_0xf301a7;var _0xd26b3f;(_0xd26b3f=this[_0x2e4707(0x1e8)])==null||_0xd26b3f[_0x2e4707(0x4ce)]({'cmd':_0x5e3ac2['LEAVE'],'data':{'roomID':this[_0x2e4707(0x483)]}});})));}get[_0x36f281(0x17f)](){const _0x1826f6=_0x36f281;return this[_0x1826f6(0x217)][_0x1826f6(0x159)]();}[_0x36f281(0x391)](){const _0x36bfa5=_0x36f281;var _0x5428a0,_0x35cac8;return(_0x35cac8=(_0x5428a0=this['_socket'])==null?void 0x0:_0x5428a0[_0x36bfa5(0x4bf)])!=null?_0x35cac8:null;}[_0x36f281(0x1e6)](){const _0x57d516=_0x36f281;super['dispose'](),this[_0x57d516(0x4d4)][_0x57d516(0x4e6)](),this[_0x57d516(0x4d4)]['complete']();}[_0x36f281(0x31e)](){const _0x51c534=_0x36f281;var _0x5a77b3,_0x5b6b7f;this['_throwTelemetryCollaborationNewChangeset'](),(_0x5a77b3=this[_0x51c534(0x1e8)])==null||_0x5a77b3['send']({'cmd':_0x5e3ac2[_0x51c534(0x364)],'data':{'roomID':this[_0x51c534(0x483)]}}),(_0x5b6b7f=this[_0x51c534(0x1e8)])==null||_0x5b6b7f['close'](),this['_event$'][_0x51c534(0x259)](),this[_0x51c534(0x217)][_0x51c534(0x259)](),this[_0x51c534(0x1e6)]();}[_0x36f281(0x1b2)](_0x51f18d){const _0x33a9fe=_0x36f281;_0x51f18d[_0x33a9fe(0xcd)]===_0x5e3ac2[_0x33a9fe(0x419)]?this[_0x33a9fe(0x294)](_0x51f18d):_0x51f18d[_0x33a9fe(0xcd)]===_0x5e3ac2[_0x33a9fe(0x164)]&&this[_0x33a9fe(0x409)](_0x51f18d);}[_0x36f281(0x482)](_0x346d47){const _0x56ff61=_0x36f281;this[_0x56ff61(0x217)]['next'](0x1),_0x346d47['send']({'cmd':_0x5e3ac2[_0x56ff61(0x419)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x56ff61(0x483)]}]}});}[_0x36f281(0x294)](_0x5f46c1){const _0x222aa8=_0x36f281;var _0x161c75;if(_0x5f46c1[_0x222aa8(0x2a3)]===_0xd96311[_0x222aa8(0x39a)]){this['_messageService'][_0x222aa8(0x348)]({'type':_0x2b27fc['MessageType']['Warning'],'content':this[_0x222aa8(0x36f)]['t'](_0x222aa8(0x468))}),this[_0x222aa8(0x217)]['next'](0x2);return;}this[_0x222aa8(0x217)][_0x222aa8(0x4e6)](0x3);const _0x1a7490=(_0x161c75=_0x5f46c1['data'][_0x222aa8(0x1ed)][this[_0x222aa8(0x483)]])==null?void 0x0:_0x161c75[_0x222aa8(0xd4)];_0x1a7490&&_0x1a7490[_0x222aa8(0x2a0)](_0x4538ed=>this['_memberService'][_0x222aa8(0x3ee)](this[_0x222aa8(0x483)],_0x4538ed));}['_onRecvEvent'](_0x4fcdce){const _0x5ebf71=_0x36f281;try{const _0x2fd9aa=_0x4fcdce[_0x5ebf71(0x298)];switch(_0x2fd9aa[_0x5ebf71(0x10a)]){case _0x4968b4['CollaborationEvent']['USERS_ENTER']:this['_onUserJoin'](_0x2fd9aa),this['_event$'][_0x5ebf71(0x4e6)](_0x2fd9aa);break;case _0x4968b4[_0x5ebf71(0xbc)][_0x5ebf71(0x3b2)]:this['_onUserLeave'](_0x2fd9aa),this[_0x5ebf71(0xc7)][_0x5ebf71(0x4e6)](_0x2fd9aa);break;case _0x4968b4['CollaborationEvent']['CHANGESET_ACK']:this[_0x5ebf71(0x41d)](),this[_0x5ebf71(0x365)](),this['_event$'][_0x5ebf71(0x4e6)](_0x2fd9aa);break;case _0x4968b4[_0x5ebf71(0xbc)][_0x5ebf71(0x263)]:this['_logService'][_0x5ebf71(0x302)](_0x5ebf71(0xe9)+JSON[_0x5ebf71(0xc1)](_0x2fd9aa)),this[_0x5ebf71(0xc7)][_0x5ebf71(0x4e6)](_0x2fd9aa);break;case _0x4968b4[_0x5ebf71(0xbc)]['COMMENT_UPDATE']:this[_0x5ebf71(0x442)][_0x5ebf71(0x3d3)](_0x2fd9aa[_0x5ebf71(0x298)]),this['_event$'][_0x5ebf71(0x4e6)](_0x2fd9aa);break;default:this[_0x5ebf71(0xc7)]['next'](_0x2fd9aa);}}catch(_0x59ece1){this[_0x5ebf71(0x3df)][_0x5ebf71(0x302)](_0x59ece1,_0x4fcdce);}}[_0x36f281(0x4e7)](_0xb1b7e5){const _0x14cc5a=_0x36f281;this[_0x14cc5a(0x277)][_0x14cc5a(0x3ee)](this[_0x14cc5a(0x483)],_0xb1b7e5[_0x14cc5a(0x298)]);}[_0x36f281(0x241)](_0x242588){const _0x4a2342=_0x36f281;this[_0x4a2342(0x277)][_0x4a2342(0x2e0)](this[_0x4a2342(0x483)],_0x242588[_0x4a2342(0x298)][_0x4a2342(0x4bf)]);}async[_0x36f281(0x4ce)](_0x49643f,_0x3d02e3){const _0x4d6964=_0x36f281;if(this[_0x4d6964(0x17f)]!==0x3||!this[_0x4d6964(0x1e8)])throw new Error(_0x4d6964(0xd6));try{_0x49643f['eventID']===_0x4968b4[_0x4d6964(0xbc)]['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x49643f)),this[_0x4d6964(0x1e8)][_0x4d6964(0x4ce)]({'cmd':_0x5e3ac2['INGEST'],'routeKey':_0x3d02e3,'routeType':'','data':_0x49643f});}catch(_0x1ccc7a){this['_logService']['error'](_0x1ccc7a);}}['_scheduleCollaborationTimeoutTimer'](){const _0x17060d=_0x36f281;var _0x4996cd;this[_0x17060d(0xfd)]=window[_0x17060d(0x112)](()=>{const _0x255bfd=_0x17060d;this[_0x255bfd(0xfd)]=null,this[_0x255bfd(0xf9)][_0x255bfd(0x348)]({'type':_0x2b27fc['MessageType'][_0x255bfd(0x40f)],'content':this[_0x255bfd(0x36f)]['t'](_0x255bfd(0x274))});},(_0x4996cd=this['_configService'][_0x17060d(0x3bd)](_0x512ef2))!=null?_0x4996cd:0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0x516f6e=_0x36f281;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x516f6e(0xfd)]),this[_0x516f6e(0xfd)]=null);}[_0x36f281(0x270)](_0x52a553){const _0x493cd7=_0x36f281;if(!this[_0x493cd7(0x3c4)])return;const {data:_0x28c41a}=_0x52a553,{unitID:_0x877298,changeset:_0x3709a4}=_0x28c41a,{mutations:_0x27c87d,type:_0x5aebba}=_0x3709a4;this[_0x493cd7(0x3f5)]={'unitId':_0x877298,'type':_0x5aebba,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x12263b(_0x27c87d)};}[_0x36f281(0x41d)](){const _0x2cc29f=_0x36f281;if(this[_0x2cc29f(0x3c4)]){if(!this[_0x2cc29f(0x3f5)]){this[_0x2cc29f(0x3df)][_0x2cc29f(0x302)](_0x2cc29f(0x476),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x2cc29f(0x3f5)][_0x2cc29f(0x412)]=performance[_0x2cc29f(0x222)](),this[_0x2cc29f(0x3f5)][_0x2cc29f(0x3d2)]=this[_0x2cc29f(0x3f5)][_0x2cc29f(0x412)]-this[_0x2cc29f(0x3f5)][_0x2cc29f(0x268)],this[_0x2cc29f(0x1ea)][_0x2cc29f(0x287)](_0x5df521,this[_0x2cc29f(0x3f5)]),this[_0x2cc29f(0x3f5)]=null;}}[_0x36f281(0x2b8)](){const _0x3127c4=_0x36f281;this[_0x3127c4(0x3f5)]=null;}},_0x4238fe[_0x36f281(0x44e)]=_0x34d061([_0x316683(0x2,_0x593949[_0x36f281(0x380)]),_0x316683(0x3,_0xc44033[_0x36f281(0x2f2)]),_0x316683(0x4,_0xc44033[_0x36f281(0x2d6)]),_0x316683(0x5,_0x593949[_0x36f281(0xe7)]),_0x316683(0x6,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0x2bc)])),_0x316683(0x7,_0x593949['Inject'](_0x40c14d)),_0x316683(0x8,_0x593949[_0x36f281(0xb9)](_0x5a515d)),_0x316683(0x9,_0x593949['Optional'](_0x3d9685['ITelemetryService']))],_0x4238fe['CollaborationSession']);var _0x46b98f=Object[_0x36f281(0x49a)],_0x18deb2=Object['getOwnPropertyDescriptor'],_0x10893d=(_0x306305,_0xdbfcc7,_0x250387,_0x3046c6)=>{const _0xde93cc=_0x36f281;for(var _0x7c9676=_0x3046c6>0x1?void 0x0:_0x3046c6?_0x18deb2(_0xdbfcc7,_0x250387):_0xdbfcc7,_0x1b5570=_0x306305[_0xde93cc(0x43f)]-0x1,_0x21d58e;_0x1b5570>=0x0;_0x1b5570--)(_0x21d58e=_0x306305[_0x1b5570])&&(_0x7c9676=(_0x3046c6?_0x21d58e(_0xdbfcc7,_0x250387,_0x7c9676):_0x21d58e(_0x7c9676))||_0x7c9676);return _0x3046c6&&_0x7c9676&&_0x46b98f(_0xdbfcc7,_0x250387,_0x7c9676),_0x7c9676;},_0x3ea66b=(_0x334e2a,_0x3ee436)=>(_0x3f746a,_0x2f2894)=>_0x3ee436(_0x3f746a,_0x2f2894,_0x334e2a);_0x4238fe[_0x36f281(0x370)]=class extends _0x593949[_0x36f281(0x16a)]{constructor(_0x326dab,_0x5afe4d,_0x1a76ed,_0x2b0423,_0x54c732,_0x4fb963){const _0xcb21ca=_0x36f281;super(),_0x3e0772(this,_0xcb21ca(0x258),new _0x30c949[(_0xcb21ca(0x2f9))](void 0x0)),_0x3e0772(this,'socket$',this[_0xcb21ca(0x258)][_0xcb21ca(0x13a)]()),_0x3e0772(this,'_candidateSocket',null),_0x3e0772(this,'_sessions',new Map()),_0x3e0772(this,'_status$',new _0x30c949[(_0xcb21ca(0x2f9))](_0x108499[_0xcb21ca(0x1c3)])),_0x3e0772(this,_0xcb21ca(0x457),this[_0xcb21ca(0x20e)][_0xcb21ca(0x13a)]()),_0x3e0772(this,'_socketReady',!0x1),_0x3e0772(this,_0xcb21ca(0x31a)),_0x3e0772(this,'_retryCount',0x0),_0x3e0772(this,'_sendHeartbeatTimer'),_0x3e0772(this,'_timeoutTimer'),(this[_0xcb21ca(0xf1)]=_0x326dab,this[_0xcb21ca(0x36f)]=_0x5afe4d,this[_0xcb21ca(0xf9)]=_0x1a76ed,this[_0xcb21ca(0x3df)]=_0x2b0423,this[_0xcb21ca(0xdd)]=_0x54c732,this['_socketService']=_0x4fb963,this['_initEventListeners']());}get[_0x36f281(0x1e8)](){const _0x55fee8=_0x36f281;return this['_socket$'][_0x55fee8(0x159)]();}[_0x36f281(0x181)](){const _0x28056e=_0x36f281;this[_0x28056e(0x132)](),this[_0x28056e(0x385)]();}[_0x36f281(0x1e6)](){const _0x87884c=_0x36f281;super[_0x87884c(0x1e6)](),this[_0x87884c(0x173)]['forEach'](_0x3386a5=>_0x3386a5[_0x87884c(0x1e6)]()),this[_0x87884c(0x173)][_0x87884c(0x3dd)](),this[_0x87884c(0x20e)]['complete']();}async[_0x36f281(0x296)](_0x3d2f90){const _0x4fbeb2=_0x36f281;if(this['_sessions'][_0x4fbeb2(0x1f2)](_0x3d2f90))return this[_0x4fbeb2(0x173)][_0x4fbeb2(0x14e)](_0x3d2f90);this[_0x4fbeb2(0x312)]();const _0x10cf5f=this[_0x4fbeb2(0xf1)][_0x4fbeb2(0xb4)](_0x4238fe[_0x4fbeb2(0x44e)],_0x3d2f90,this[_0x4fbeb2(0x258)][_0x4fbeb2(0x13a)]());return this[_0x4fbeb2(0x173)]['set'](_0x3d2f90,_0x10cf5f),_0x10cf5f;}[_0x36f281(0x1bb)](_0x12c67f){const _0x48ea34=_0x36f281;var _0xf7e07b;const _0x94386a=this[_0x48ea34(0x173)]['get'](_0x12c67f);_0x94386a&&(this[_0x48ea34(0x173)][_0x48ea34(0x393)](_0x12c67f),_0x94386a[_0x48ea34(0x31e)]()),this[_0x48ea34(0x173)][_0x48ea34(0x4a3)]||(_0xf7e07b=this[_0x48ea34(0x1e8)])==null||_0xf7e07b[_0x48ea34(0x31e)]();}[_0x36f281(0x165)](){const _0x4079ee=_0x36f281;this[_0x4079ee(0x292)]=0x0,this[_0x4079ee(0x31a)]!=null&&(clearTimeout(this[_0x4079ee(0x31a)]),this[_0x4079ee(0x31a)]=null),this[_0x4079ee(0x464)]();}['_createSocket'](){const _0x1ca232=_0x36f281;var _0x3cd9ee,_0x566430;const _0x4e4c42=this[_0x1ca232(0xdd)][_0x1ca232(0x3bd)](_0x3db6d8),_0x5d51a1=this[_0x1ca232(0xdd)]['getConfig'](_0xfe6e3e),_0x5a20f5=(_0x566430=(_0x3cd9ee=_0x5d51a1==null?void 0x0:_0x5d51a1[_0x1ca232(0x3b7)])!=null?_0x3cd9ee:_0x4e4c42)!=null?_0x566430:_0x270218,_0x355bf5=this[_0x1ca232(0x1e4)][_0x1ca232(0x116)](_0x5a20f5);return this[_0x1ca232(0x413)]=_0x355bf5,_0x355bf5;}[_0x36f281(0x312)](){const _0x28755a=_0x36f281;var _0x52de7f,_0x679fcc;try{const _0x2b4e82=(_0x679fcc=(_0x52de7f=this[_0x28755a(0x1e8)])!=null?_0x52de7f:this[_0x28755a(0x413)])!=null?_0x679fcc:this['_createSocket']();if(_0x2b4e82){const _0x3e6575=_0x2b4e82[_0x28755a(0x4ce)];_0x2b4e82[_0x28755a(0x4ce)]=_0x47fa73=>(this[_0x28755a(0x2da)](),_0x3e6575[_0x28755a(0x4b9)](_0x2b4e82,[_0x47fa73])),_0x2b4e82[_0x28755a(0x2ef)][_0x28755a(0x188)](_0x4b4253=>this[_0x28755a(0x425)](_0x2b4e82,_0x4b4253)),_0x2b4e82['error$'][_0x28755a(0x49c)](_0x218e56[_0x28755a(0x477)](0x1))[_0x28755a(0x188)](_0x2ab0a3=>this[_0x28755a(0x3df)][_0x28755a(0x302)](_0x28755a(0x454),_0x2ab0a3)),_0x2b4e82['open$']['pipe'](_0x218e56['take'](0x1))[_0x28755a(0x188)](()=>{const _0x3ca260=_0x28755a;this[_0x3ca260(0x2ad)](_0x2b4e82);}),_0x2b4e82['close$'][_0x28755a(0x49c)](_0x218e56['take'](0x1))[_0x28755a(0x188)](_0x4b8758=>{const _0x28fad3=_0x28755a;this['_logService'][_0x28fad3(0x177)](_0x28fad3(0x466),_0x28fad3(0xce),_0x4b8758),this[_0x28fad3(0x18f)]();});}}catch(_0x26a9ef){this[_0x28755a(0x3df)]['error'](_0x26a9ef),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0x473bda){const _0x3ce5de=_0x36f281;this[_0x3ce5de(0x3df)][_0x3ce5de(0x177)]('[CollaborationSessionService]',_0x3ce5de(0x2a1)),_0x473bda[_0x3ce5de(0x4ce)]({'cmd':_0x5e3ac2[_0x3ce5de(0x3ab)]}),this[_0x3ce5de(0x2da)]();}['_listenToOfflineEvent'](){const _0x3cbb46=_0x36f281;window['addEventListener']('offline',()=>this[_0x3cbb46(0x113)]());}['_onOffline'](){const _0xca808f=_0x36f281;this[_0xca808f(0x3b1)]=!0x1,this[_0xca808f(0x413)]=null,this[_0xca808f(0x20e)][_0xca808f(0x4e6)](_0x108499['OFFLINE']),this[_0xca808f(0x258)]['next'](null),this[_0xca808f(0x103)](),this[_0xca808f(0x4d3)]();}['_onConnectionFailed'](){const _0x252ba0=_0x36f281;var _0x535b35;this[_0x252ba0(0x113)](),this[_0x252ba0(0x292)]<((_0x535b35=this[_0x252ba0(0xdd)][_0x252ba0(0x3bd)](_0x428723))!=null?_0x535b35:0x3)?(this[_0x252ba0(0xf9)]['show']({'key':_0x252ba0(0x146),'type':_0x2b27fc[_0x252ba0(0x1ae)][_0x252ba0(0x1a1)],'content':this[_0x252ba0(0x36f)]['t'](_0x252ba0(0x2d2))}),this[_0x252ba0(0x464)]()):this[_0x252ba0(0xf9)][_0x252ba0(0x348)]({'key':_0x252ba0(0x146),'type':_0x2b27fc[_0x252ba0(0x1ae)][_0x252ba0(0x40f)],'content':this[_0x252ba0(0x36f)]['t'](_0x252ba0(0x187))});}[_0x36f281(0x385)](){const _0x2a5ff3=_0x36f281,_0x276751=()=>{const _0x21128e=_0x4c16;this[_0x21128e(0x1e8)]||this[_0x21128e(0x165)]();},_0x504355=()=>{const _0x448960=_0x4c16;this[_0x448960(0x1e8)]||document[_0x448960(0x1f0)]===_0x448960(0x201)||this[_0x448960(0x165)]();};window['addEventListener']('online',_0x276751),document[_0x2a5ff3(0x383)]('visibilitychange',_0x504355);}[_0x36f281(0x464)](){const _0x11e36f=_0x36f281;var _0x2229df;const _0x11ca5c=this[_0x11e36f(0x292)],_0x30d2c8=this[_0x11e36f(0xdd)][_0x11e36f(0x3bd)](_0xfe6e3e),_0x2c11a0=_0x11ca5c===0x0?0x0:((_0x2229df=_0x30d2c8==null?void 0x0:_0x30d2c8['retryConnectingInterval'])!=null?_0x2229df:0x4e20)*0x2**_0x11ca5c;this[_0x11e36f(0x31a)]=window[_0x11e36f(0x112)](()=>{const _0x3bc988=_0x11e36f;clearTimeout(this[_0x3bc988(0x31a)]),this[_0x3bc988(0x31a)]=null,this[_0x3bc988(0x312)]();},_0x2c11a0),this[_0x11e36f(0x292)]+=0x1;}[_0x36f281(0x425)](_0x113915,_0x4e54c3){const _0x48f973=_0x36f281,{cmd:_0x512ce0}=_0x4e54c3;_0x512ce0===_0x5e3ac2['HELLO']&&!this[_0x48f973(0x3b1)]&&(_0x113915['memberID']=_0x4e54c3['data']['memberID'],this[_0x48f973(0x258)][_0x48f973(0x4e6)](_0x113915),this[_0x48f973(0x20e)][_0x48f973(0x4e6)](_0x108499[_0x48f973(0x2af)]),this[_0x48f973(0x3b1)]=!0x0,this['_candidateSocket']=null),_0x512ce0===_0x5e3ac2['HEARTBEAT']&&this[_0x48f973(0x103)](),this[_0x48f973(0x2da)]();}['_rescheduleHeartbeat'](){const _0x5f290e=_0x36f281;var _0x593bd3;this[_0x5f290e(0x4d3)](),this['_sendHeartbeatTimer']=window[_0x5f290e(0x112)](()=>this[_0x5f290e(0xeb)](),(_0x593bd3=this[_0x5f290e(0xdd)][_0x5f290e(0x3bd)](_0xec8683))!=null?_0x593bd3:0x7530);}[_0x36f281(0xeb)](){const _0x58a76e=_0x36f281;this[_0x58a76e(0x1e8)][_0x58a76e(0x4ce)]({'cmd':_0x5e3ac2['HEARTBEAT']}),this[_0x58a76e(0x17d)]();}['_waitForHeartbeatResponse'](){const _0x1d4b59=_0x36f281;var _0x40b7c1;this[_0x1d4b59(0x49e)]=window['setTimeout'](()=>this[_0x1d4b59(0x18f)](),(_0x40b7c1=this['_configService'][_0x1d4b59(0x3bd)](_0x512ef2))!=null?_0x40b7c1:0x4e20);}[_0x36f281(0x4d3)](){const _0x4eafdc=_0x36f281;this[_0x4eafdc(0x253)]!=null&&(clearTimeout(this[_0x4eafdc(0x253)]),this[_0x4eafdc(0x253)]=null);}[_0x36f281(0x103)](){const _0x7a8f4=_0x36f281;this[_0x7a8f4(0x49e)]!=null&&(clearTimeout(this[_0x7a8f4(0x49e)]),this[_0x7a8f4(0x49e)]=null);}},_0x4238fe[_0x36f281(0x370)]=_0x10893d([_0x3ea66b(0x0,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0xa8)])),_0x3ea66b(0x1,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0x2bc)])),_0x3ea66b(0x2,_0xc44033['IMessageService']),_0x3ea66b(0x3,_0x593949[_0x36f281(0x380)]),_0x3ea66b(0x4,_0x593949[_0x36f281(0xe7)]),_0x3ea66b(0x5,_0x2d8f92)],_0x4238fe[_0x36f281(0x370)]);for(var _0x5e0049=[],_0x5ada10=0x0;_0x5ada10<0x100;++_0x5ada10)_0x5e0049['push']((_0x5ada10+0x100)[_0x36f281(0x13d)](0x10)['slice'](0x1));function _0x47f13c(_0x4945e4,_0x3c2e26=0x0){return(_0x5e0049[_0x4945e4[_0x3c2e26+0x0]]+_0x5e0049[_0x4945e4[_0x3c2e26+0x1]]+_0x5e0049[_0x4945e4[_0x3c2e26+0x2]]+_0x5e0049[_0x4945e4[_0x3c2e26+0x3]]+'-'+_0x5e0049[_0x4945e4[_0x3c2e26+0x4]]+_0x5e0049[_0x4945e4[_0x3c2e26+0x5]]+'-'+_0x5e0049[_0x4945e4[_0x3c2e26+0x6]]+_0x5e0049[_0x4945e4[_0x3c2e26+0x7]]+'-'+_0x5e0049[_0x4945e4[_0x3c2e26+0x8]]+_0x5e0049[_0x4945e4[_0x3c2e26+0x9]]+'-'+_0x5e0049[_0x4945e4[_0x3c2e26+0xa]]+_0x5e0049[_0x4945e4[_0x3c2e26+0xb]]+_0x5e0049[_0x4945e4[_0x3c2e26+0xc]]+_0x5e0049[_0x4945e4[_0x3c2e26+0xd]]+_0x5e0049[_0x4945e4[_0x3c2e26+0xe]]+_0x5e0049[_0x4945e4[_0x3c2e26+0xf]])['toLowerCase']();}var _0x3aef1e,_0xb6f1cc=new Uint8Array(0x10);function _0x40c750(){const _0x248cd9=_0x36f281;if(!_0x3aef1e&&(_0x3aef1e=typeof crypto<'u'&&crypto[_0x248cd9(0x3b9)]&&crypto[_0x248cd9(0x3b9)]['bind'](crypto),!_0x3aef1e))throw new Error(_0x248cd9(0x210));return _0x3aef1e(_0xb6f1cc);}var _0x5a3577=typeof crypto<'u'&&crypto[_0x36f281(0x32d)]&&crypto[_0x36f281(0x32d)][_0x36f281(0x107)](crypto);const _0x5eee52={'randomUUID':_0x5a3577};function _0x1b3228(_0x1626f2,_0x46939d,_0x26675c){const _0x4a3645=_0x36f281;if(_0x5eee52[_0x4a3645(0x32d)]&&!_0x46939d&&!_0x1626f2)return _0x5eee52[_0x4a3645(0x32d)]();_0x1626f2=_0x1626f2||{};var _0x432de1=_0x1626f2[_0x4a3645(0x4a7)]||(_0x1626f2[_0x4a3645(0x1a7)]||_0x40c750)();return _0x432de1[0x6]=_0x432de1[0x6]&0xf|0x40,_0x432de1[0x8]=_0x432de1[0x8]&0x3f|0x80,_0x47f13c(_0x432de1);}var _0x3157ab=Object[_0x36f281(0x49a)],_0x5067f6=Object[_0x36f281(0x381)],_0x20fb2f=(_0x519160,_0x4fd969,_0x474905,_0x4a89e1)=>{const _0x4063cf=_0x36f281;for(var _0x435f86=_0x4a89e1>0x1?void 0x0:_0x4a89e1?_0x5067f6(_0x4fd969,_0x474905):_0x4fd969,_0x5a0123=_0x519160[_0x4063cf(0x43f)]-0x1,_0x4d5ef0;_0x5a0123>=0x0;_0x5a0123--)(_0x4d5ef0=_0x519160[_0x5a0123])&&(_0x435f86=(_0x4a89e1?_0x4d5ef0(_0x4fd969,_0x474905,_0x435f86):_0x4d5ef0(_0x435f86))||_0x435f86);return _0x4a89e1&&_0x435f86&&_0x3157ab(_0x4fd969,_0x474905,_0x435f86),_0x435f86;},_0x462723=(_0x46e6ca,_0x4ff296)=>(_0x278daa,_0x23e988)=>_0x4ff296(_0x278daa,_0x23e988,_0x46e6ca);let _0x249d79=class{constructor(_0x4d9ff5,_0x10fe01,_0x492b17){const _0x211280=_0x36f281;this[_0x211280(0xf1)]=_0x4d9ff5,this[_0x211280(0x496)]=_0x10fe01,this['_renderManagerService']=_0x492b17;}[_0x36f281(0x3cf)](_0x19797a){const _0x358001=_0x36f281;this[_0x358001(0x392)](_0x19797a),this['_transformPreviousActiveRange'](_0x19797a);}[_0x36f281(0xe8)](_0x236d9d){const _0xdfab5b=_0x36f281,{unitID:_0x57a615}=_0x236d9d,_0x1b4895=this['_renderManagerService']['getRenderById'](_0x57a615)[_0xdfab5b(0x2f4)](_0x5c6469[_0xdfab5b(0x29b)]),{redoCache:_0x75e52d}=_0x1b4895[_0xdfab5b(0x145)]();if(_0x75e52d[_0xdfab5b(0x43f)]===0x0)return _0x236d9d;let _0x11449a=_0x593949[_0xdfab5b(0x205)][_0xdfab5b(0x117)](_0x236d9d['mutations'][0x0]);for(let _0x35e6c7=0x0;_0x35e6c7<_0x75e52d['length'];_0x35e6c7++){const _0x2c7133={'id':'doc.mutation.rich-text-editing','params':{..._0x75e52d[_0x35e6c7]}},_0x113c46=this[_0xdfab5b(0x496)][_0xdfab5b(0x18c)](_0x11449a,_0x2c7133,!0x1);if(_0x4968b4[_0xdfab5b(0x1e1)](_0x113c46))throw _0x113c46['error'];_0x11449a=_0x113c46[_0xdfab5b(0x2ca)];}return{..._0x593949[_0xdfab5b(0x205)][_0xdfab5b(0x117)](_0x236d9d),'mutations':[_0x11449a]};}[_0x36f281(0x392)](_0x1ccfc8){const _0x10c69f=_0x36f281,{unitID:_0x49ad82}=_0x1ccfc8,_0x43ba61=this[_0x10c69f(0x2aa)][_0x10c69f(0x203)](_0x49ad82)[_0x10c69f(0x2f4)](_0x5c6469['DocIMEInputManagerService']),{undoCache:_0x31e075,redoCache:_0x239b3c}=_0x43ba61[_0x10c69f(0x145)]();if(_0x31e075[_0x10c69f(0x43f)]===0x0||_0x239b3c[_0x10c69f(0x43f)]===0x0)return;const _0x1b5c7c=[],_0x41827d=[];let _0x43c244=_0x593949[_0x10c69f(0x205)][_0x10c69f(0x117)](_0x1ccfc8['mutations'][0x0]),_0x550a0b=_0x593949['Tools'][_0x10c69f(0x117)](_0x1ccfc8[_0x10c69f(0x152)][0x0]);for(let _0x16336b=_0x31e075[_0x10c69f(0x43f)]-0x1;_0x16336b>=0x0;_0x16336b--){const _0x4fe04e={'id':_0x10c69f(0x19d),'params':{..._0x31e075[_0x16336b]}},_0x4d0194={'id':'doc.mutation.rich-text-editing','params':{..._0x239b3c[_0x16336b]}},_0x108f84=this['_transformService'][_0x10c69f(0x18c)](_0x43c244,_0x4fe04e,!0x1),_0x17d5d4=this['_transformService'][_0x10c69f(0x18c)](_0x550a0b,_0x4d0194,!0x1);if(_0x4968b4['isTransformMutationFailure'](_0x108f84))throw _0x108f84[_0x10c69f(0x302)];if(_0x4968b4['isTransformMutationFailure'](_0x17d5d4))throw _0x17d5d4[_0x10c69f(0x302)];_0x1b5c7c[_0x10c69f(0x4c4)](_0x108f84['m2Prime'][_0x10c69f(0x2c8)]),_0x41827d[_0x10c69f(0x4c4)](_0x17d5d4['m2Prime'][_0x10c69f(0x2c8)]),_0x43c244=_0x108f84[_0x10c69f(0x2ca)],_0x550a0b=_0x17d5d4[_0x10c69f(0x2ca)];}_0x43ba61[_0x10c69f(0x404)]({'undoCache':_0x1b5c7c,'redoCache':_0x41827d});}['_transformPreviousActiveRange'](_0x11dccb){const _0x3c436f=_0x36f281,{unitID:_0x5a48bf}=_0x11dccb,_0x24716a=this[_0x3c436f(0x2aa)][_0x3c436f(0x203)](_0x5a48bf)['with'](_0x5c6469['DocIMEInputManagerService']),_0x1efde7=_0x24716a['getActiveRange']();if(_0x1efde7==null)return;const _0x2b9638=[{'id':_0x3c436f(0x19d),'params':{'unitId':_0x11dccb[_0x3c436f(0x2ba)],'actions':null,'textRanges':[_0x1efde7]}}],_0x5850a2=this[_0x3c436f(0x496)][_0x3c436f(0x310)](_0x11dccb,_0x2b9638);if(!_0x4968b4[_0x3c436f(0x3f3)](_0x5850a2))throw _0x5850a2[_0x3c436f(0x302)];const _0x4c198b=_0x5850a2[_0x3c436f(0xb3)][0x0][_0x3c436f(0x2c8)]['textRanges'];Array[_0x3c436f(0x10c)](_0x4c198b)&&_0x4c198b[_0x3c436f(0x43f)]&&_0x24716a[_0x3c436f(0xfb)](_0x4c198b[0x0]);}};_0x249d79=_0x20fb2f([_0x462723(0x0,_0x593949['Inject'](_0x593949['Injector'])),_0x462723(0x1,_0x4968b4[_0x36f281(0x415)]),_0x462723(0x2,_0xa07e34[_0x36f281(0x186)])],_0x249d79);var _0x37c40d=Object[_0x36f281(0x49a)],_0x1a9f3e=Object[_0x36f281(0x381)],_0x2b79f2=(_0x3f1d95,_0x47760a,_0xb4ddba,_0x2e8800)=>{const _0x1ddcc4=_0x36f281;for(var _0xb2c9c1=_0x2e8800>0x1?void 0x0:_0x2e8800?_0x1a9f3e(_0x47760a,_0xb4ddba):_0x47760a,_0xae5725=_0x3f1d95[_0x1ddcc4(0x43f)]-0x1,_0x5f5ca6;_0xae5725>=0x0;_0xae5725--)(_0x5f5ca6=_0x3f1d95[_0xae5725])&&(_0xb2c9c1=(_0x2e8800?_0x5f5ca6(_0x47760a,_0xb4ddba,_0xb2c9c1):_0x5f5ca6(_0xb2c9c1))||_0xb2c9c1);return _0x2e8800&&_0xb2c9c1&&_0x37c40d(_0x47760a,_0xb4ddba,_0xb2c9c1),_0xb2c9c1;},_0x4d845a=(_0x6bb76e,_0x5b2d03)=>(_0x4974ca,_0x448a19)=>_0x5b2d03(_0x4974ca,_0x448a19,_0x6bb76e);_0x4238fe[_0x36f281(0xd2)]=class extends _0x593949[_0x36f281(0x16a)]{constructor(_0x55d5e0,_0x1caa68,_0x26df50,_0x1e10bf,_0x5a75bf){const _0xfeb3fc=_0x36f281;super(),_0x3e0772(this,_0xfeb3fc(0x4ad),new Map()),_0x3e0772(this,'_saveTaskMap',new Map()),_0x3e0772(this,_0xfeb3fc(0x382),!0x1),(this[_0xfeb3fc(0xdd)]=_0x55d5e0,this['_localStorageService']=_0x1caa68,this[_0xfeb3fc(0x278)]=_0x26df50,this[_0xfeb3fc(0x36f)]=_0x1e10bf,this['_revisionService']=_0x5a75bf,this[_0xfeb3fc(0x461)]());}['disableLocalCache'](){const _0x5ed23e=_0x36f281;this[_0x5ed23e(0x382)]=!0x0;}[_0x36f281(0x255)](){const _0x695b02=_0x36f281;this[_0x695b02(0x382)]=!0x1;}['dispose'](){const _0x4dc051=_0x36f281;this[_0x4dc051(0x379)]()['then'](()=>super[_0x4dc051(0x1e6)]());}async['loadOfflineData'](_0x4288cd){const _0x2af859=_0x36f281;return this[_0x2af859(0x382)]?null:this[_0x2af859(0x319)][_0x2af859(0x324)](_0x20ff64(_0x4288cd));}async[_0x36f281(0x3a4)](_0x244506,_0xf3e9d1){const _0x529f0a=_0x36f281;return!!this[_0x529f0a(0x319)][_0x529f0a(0x443)](_0x244506,_0xf3e9d1);}['updateOfflineData'](_0x3ce7fc,_0x2d8210,_0x1d177,_0x48eb39){const _0x3b67d4=_0x36f281,_0x49e322=this[_0x3b67d4(0x237)]['getCurrentRevOfUnit'](_0x3ce7fc);this[_0x3b67d4(0x4ad)][_0x3b67d4(0x2bd)](_0x3ce7fc,{'unitID':_0x3ce7fc,'type':_0x2d8210,'awaitingChangeset':_0x1d177,'mutations':_0x48eb39,'rev':_0x49e322}),this[_0x3b67d4(0x162)]['has'](_0x3ce7fc)||this[_0x3b67d4(0x101)](_0x3ce7fc);}[_0x36f281(0x101)](_0x26954e){const _0x16557d=_0x36f281,_0x830fbe=this[_0x16557d(0x424)]();_0x830fbe===0x0?this[_0x16557d(0x4a4)](_0x26954e):this['_saveTaskMap'][_0x16557d(0x2bd)](_0x26954e,setTimeout(()=>this[_0x16557d(0x4a4)](_0x26954e),_0x830fbe));}['_getSaveTimeout'](){const _0x29ff7f=_0x36f281;var _0x5b80fa;return(_0x5b80fa=this['_configService'][_0x29ff7f(0x3bd)](_0x443bb))!=null?_0x5b80fa:0x3e8;}[_0x36f281(0x4a4)](_0x1eb8b3){const _0x5499b4=_0x36f281,_0x15e72e=this[_0x5499b4(0x162)][_0x5499b4(0x14e)](_0x1eb8b3);return _0x15e72e!==void 0x0&&window[_0x5499b4(0x3e3)](_0x15e72e),this['_localStorageService']['setItem'](_0x20ff64(_0x1eb8b3),this[_0x5499b4(0x4ad)][_0x5499b4(0x14e)](_0x1eb8b3))['then'](()=>this[_0x5499b4(0x162)][_0x5499b4(0x393)](_0x1eb8b3));}async[_0x36f281(0x379)](){const _0x251e0b=_0x36f281,_0x5e45ac=[];this['_saveTaskMap'][_0x251e0b(0x2a0)]((_0x4d24b3,_0x3095ec)=>{const _0x41badd=_0x251e0b;window[_0x41badd(0x3e3)](_0x4d24b3),_0x5e45ac[_0x41badd(0x43c)](this[_0x41badd(0x4a4)](_0x3095ec)[_0x41badd(0x372)](()=>{const _0x12dd9c=_0x41badd;this[_0x12dd9c(0x162)][_0x12dd9c(0x393)](_0x3095ec);}));}),await Promise[_0x251e0b(0x474)](_0x5e45ac);}[_0x36f281(0x461)](){const _0xd66237=_0x36f281;this[_0xd66237(0x196)](this[_0xd66237(0x278)][_0xd66237(0x31b)](()=>{const _0x29454f=_0xd66237;if(this['_saveTaskMap'][_0x29454f(0x4a3)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}},_0x4238fe[_0x36f281(0xd2)]=_0x2b79f2([_0x4d845a(0x0,_0x593949[_0x36f281(0xe7)]),_0x4d845a(0x1,_0x593949[_0x36f281(0xe0)]),_0x4d845a(0x2,_0xc44033[_0x36f281(0x2f2)]),_0x4d845a(0x3,_0x593949[_0x36f281(0xb9)](_0x593949['LocaleService'])),_0x4d845a(0x4,_0x593949[_0x36f281(0xb9)](_0x4968b4[_0x36f281(0xe5)]))],_0x4238fe[_0x36f281(0xd2)]);function _0x20ff64(_0x47dd39){const _0x284ea2=_0x36f281;return _0x284ea2(0x401)+_0x47dd39;}var _0xbda6ec=Object['defineProperty'],_0x3b08e0=Object[_0x36f281(0x381)],_0x439222=(_0x313d9b,_0x2c4d82,_0x409d5a,_0x49b629)=>{const _0x3b7c21=_0x36f281;for(var _0x247215=_0x49b629>0x1?void 0x0:_0x49b629?_0x3b08e0(_0x2c4d82,_0x409d5a):_0x2c4d82,_0x41d22e=_0x313d9b[_0x3b7c21(0x43f)]-0x1,_0x3c1c8f;_0x41d22e>=0x0;_0x41d22e--)(_0x3c1c8f=_0x313d9b[_0x41d22e])&&(_0x247215=(_0x49b629?_0x3c1c8f(_0x2c4d82,_0x409d5a,_0x247215):_0x3c1c8f(_0x247215))||_0x247215);return _0x49b629&&_0x247215&&_0xbda6ec(_0x2c4d82,_0x409d5a,_0x247215),_0x247215;},_0x501656=(_0x38b95b,_0x31bc85)=>(_0x42b124,_0x4cc18b)=>_0x31bc85(_0x42b124,_0x4cc18b,_0x38b95b);function _0x19f63f(_0x388d7d){const _0x3b0858=_0x36f281,{unitID:_0x1274f2,mutations:_0x281e6d}=_0x388d7d;return{'unitId':_0x1274f2,'subUnitId':_0x281e6d[0x0][_0x3b0858(0x2c8)]['subUnitId']};}let _0x29a18f=class{constructor(_0xea8e3,_0x5cf779,_0x456a43){const _0x1194be=_0x36f281;this[_0x1194be(0xf1)]=_0xea8e3,this[_0x1194be(0x496)]=_0x5cf779,this[_0x1194be(0x228)]=_0x456a43;}[_0x36f281(0x28f)](_0x10f299){const _0x5935df=_0x36f281;var _0x4916d6,_0x45ecce,_0x49eec0,_0x706554;const _0x237812=this[_0x5935df(0xf1)][_0x5935df(0x14e)](_0xec6805['SheetsSelectionsService']),{unitId:_0x5e622f,subUnitId:_0x3266a4}=_0x19f63f(_0x10f299),_0x20853a=_0x237812[_0x5935df(0x3c9)](_0x5e622f)[_0x5935df(0x463)](),_0x4d90f9=(_0x45ecce=(_0x4916d6=this['_instanceService']['getUnit'](_0x5e622f))==null?void 0x0:_0x4916d6[_0x5935df(0x49b)]())==null?void 0x0:_0x45ecce[_0x5935df(0x353)]();if(_0x20853a[_0x5935df(0x43f)]===0x0||!_0x5e622f||!_0x3266a4)return;const _0x22b246=[{'id':_0xec6805[_0x5935df(0x195)]['id'],'params':{'unitId':_0x5e622f,'subUnitId':_0x4d90f9,'selections':_0x593949['Tools'][_0x5935df(0x117)](_0x20853a)}}],_0x1ca94b=this[_0x5935df(0x496)][_0x5935df(0x310)](_0x10f299,_0x22b246);if(!_0x4968b4[_0x5935df(0x3f3)](_0x1ca94b))throw _0x1ca94b[_0x5935df(0x302)];const _0x52ef73=(_0x706554=(_0x49eec0=_0x1ca94b[_0x5935df(0xb3)][0x0])==null?void 0x0:_0x49eec0[_0x5935df(0x2c8)])==null?void 0x0:_0x706554[_0x5935df(0x10f)];if(Array[_0x5935df(0x10c)](_0x52ef73)&&_0x52ef73[_0x5935df(0x43f)]){if(_0x52ef73[_0x5935df(0x43f)]===_0x22b246[0x0]['params'][_0x5935df(0x10f)][_0x5935df(0x43f)]&&_0x52ef73[_0x5935df(0x2d1)]((_0x5ec9c0,_0x278442)=>_0x593949[_0x5935df(0xb7)][_0x5935df(0x4bb)](_0x5ec9c0[_0x5935df(0x4d8)],_0x22b246[0x0]['params']['selections'][_0x278442][_0x5935df(0x4d8)])))return;this['_injector'][_0x5935df(0x14e)](_0x593949[_0x5935df(0x38d)])[_0x5935df(0x420)](_0xec6805[_0x5935df(0x195)]['id'],{'unitId':_0x5e622f,'subUnitId':_0x4d90f9,'selections':_0x52ef73});}}};_0x29a18f=_0x439222([_0x501656(0x0,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0xa8)])),_0x501656(0x1,_0x4968b4[_0x36f281(0x415)]),_0x501656(0x2,_0x593949[_0x36f281(0x1dc)])],_0x29a18f);const _0x34b236=_0x593949['createIdentifier'](_0x36f281(0x137));var _0x3e0c16=(_0x43962a=>(_0x43962a[_0x43962a[_0x36f281(0x178)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x43962a[_0x43962a[_0x36f281(0x4c2)]=0x1]=_0x36f281(0x4c2),_0x43962a))(_0x3e0c16||{});const _0x2c0f60=0x7530,_0x535abf='ACTIVE_UNIT_EVENT_CHANNEL';class _0x34a490 extends _0x593949[_0x36f281(0x16a)]{constructor(){const _0x5da2f5=_0x36f281;super(),_0x3e0772(this,_0x5da2f5(0xde),_0x593949['Tools'][_0x5da2f5(0x433)]()),_0x3e0772(this,_0x5da2f5(0x309),new Set()),_0x3e0772(this,_0x5da2f5(0x2a9),new Map()),_0x3e0772(this,_0x5da2f5(0x3c6),null),_0x3e0772(this,_0x5da2f5(0x35c),new Map()),_0x3e0772(this,_0x5da2f5(0x33a),new Map()),this[_0x5da2f5(0x3b6)]();}[_0x36f281(0x1e6)](){const _0x2c791a=_0x36f281;super[_0x2c791a(0x1e6)](),this[_0x2c791a(0x35c)][_0x2c791a(0x2a0)]((_0x3ae17b,_0x5ccf6e)=>this[_0x2c791a(0x389)](_0x5ccf6e)),this['_heartbeatTimer']&&window['clearInterval'](this[_0x2c791a(0x3c6)]);}[_0x36f281(0xd9)](_0x41db91){const _0x410874=_0x36f281;return this[_0x410874(0x402)](_0x41db91)['pipe'](_0x30c949[_0x410874(0x408)]());}[_0x36f281(0x32a)](_0x2c5760){const _0x22ccf4=_0x36f281;this[_0x22ccf4(0x309)][_0x22ccf4(0x4a3)]===0x0&&this[_0x22ccf4(0x352)](),this[_0x22ccf4(0x309)][_0x22ccf4(0xf6)](_0x2c5760),this[_0x22ccf4(0x4de)]({'type':0x0,'memberID':this[_0x22ccf4(0xde)],'unitIDs':[_0x2c5760],'isForwarded':!0x1});}[_0x36f281(0x307)](_0x51c2ec){const _0x42aec8=_0x36f281;this[_0x42aec8(0x309)][_0x42aec8(0x393)](_0x51c2ec),this[_0x42aec8(0x309)]['size']===0x0&&this[_0x42aec8(0x3c6)]&&window[_0x42aec8(0x3a9)](this[_0x42aec8(0x3c6)]);}[_0x36f281(0x3b6)](){const _0x4a3376=_0x36f281;this[_0x4a3376(0x196)](_0x593949[_0x4a3376(0x2b4)](_0x30c949[_0x4a3376(0x29c)](window,_0x4a3376(0x198))[_0x4a3376(0x188)](_0x52903e=>{const _0x140e63=_0x4a3376;if(_0x52903e[_0x140e63(0x1ad)]!==_0x535abf||!_0x52903e[_0x140e63(0x134)])return;const _0x408231=JSON['parse'](_0x52903e[_0x140e63(0x134)]);this[_0x140e63(0x3d5)](_0x408231);}))),window[_0x4a3376(0x383)](_0x4a3376(0x169),()=>this['_send']({'type':0x1,'memberID':this[_0x4a3376(0xde)],'unitIDs':Array[_0x4a3376(0x49d)](this[_0x4a3376(0x309)])}));}['_handleEvent'](_0x53f877){const _0x52af9c=_0x36f281;switch(_0x53f877[_0x52af9c(0x17b)]){case 0x0:this[_0x52af9c(0x2c6)](_0x53f877);break;case 0x1:this[_0x52af9c(0x321)](_0x53f877);break;case 0x2:this['_handleHeartbeatEvent'](_0x53f877);break;}}[_0x36f281(0x2c6)](_0x507f7c){const _0x5470f1=_0x36f281,{unitIDs:_0x1b5bac,memberID:_0x7a6c37,isForwarded:_0x16de66}=_0x507f7c;_0x1b5bac[_0x5470f1(0x2a0)](_0x424607=>{const _0x1e73b7=_0x5470f1;if(!_0x16de66&&this['_unitOnClients']['has'](_0x424607)&&this[_0x1e73b7(0x402)](_0x424607)[_0x1e73b7(0x4e6)](0x1),!this['_unitOnClients']['has'](_0x424607)||!this[_0x1e73b7(0x2a9)][_0x1e73b7(0x14e)](_0x424607)['has'](_0x7a6c37)){const _0xd5aa7b=this[_0x1e73b7(0x2a9)][_0x1e73b7(0x14e)](_0x424607)||new Set();_0xd5aa7b[_0x1e73b7(0xf6)](_0x7a6c37),this[_0x1e73b7(0x2a9)]['set'](_0x424607,_0xd5aa7b),this['_scheduleClearOtherTimer'](_0x7a6c37);}}),_0x16de66||this['_send']({'type':0x0,'memberID':this[_0x5470f1(0xde)],'unitIDs':[...this[_0x5470f1(0x309)]],'isForwarded':!0x0});}[_0x36f281(0xe4)](_0x35c573){const _0x4c8056=_0x36f281;this[_0x4c8056(0x389)](_0x35c573);const _0x3275da=window[_0x4c8056(0x112)](()=>{const _0x2eec7f=_0x4c8056;this[_0x2eec7f(0x2a9)]['forEach'](_0x4b016e=>{const _0x5660e2=_0x2eec7f;_0x4b016e[_0x5660e2(0x393)](_0x35c573);});},_0x2c0f60*0x2);this[_0x4c8056(0x35c)][_0x4c8056(0x2bd)](_0x35c573,_0x3275da);}[_0x36f281(0x389)](_0xefe167){const _0x3d13e8=_0x36f281;if(this[_0x3d13e8(0x35c)]['has'](_0xefe167)){const _0x3f1f96=this['_clearOtherTimers']['get'](_0xefe167);_0x3f1f96&&window[_0x3d13e8(0x3e3)](_0x3f1f96),this[_0x3d13e8(0x35c)][_0x3d13e8(0x2bd)](_0xefe167,null);}}[_0x36f281(0x321)](_0x4e3feb){const _0x352f81=_0x36f281,{memberID:_0x8405cb,unitIDs:_0x3b9781}=_0x4e3feb;_0x3b9781[_0x352f81(0x2a0)](_0x1f34e3=>{const _0x53ca0d=_0x352f81;var _0xb145bc;const _0x164297=this[_0x53ca0d(0x2a9)][_0x53ca0d(0x14e)](_0x1f34e3);_0x164297&&(_0x164297[_0x53ca0d(0x393)](_0x8405cb),(_0xb145bc=this['_ensureSubject'](_0x1f34e3))==null||_0xb145bc['next'](_0x164297['size']===0x0?0x0:0x1));}),this[_0x352f81(0x389)](_0x8405cb);}[_0x36f281(0x3da)](_0x4247c7){const _0x293ec7=_0x36f281;this['_scheduleClearOtherTimer'](_0x4247c7[_0x293ec7(0x4bf)]);}[_0x36f281(0x4de)](_0x26b5b1){const _0x1e9f3e=_0x36f281;localStorage[_0x1e9f3e(0x443)](_0x535abf,JSON[_0x1e9f3e(0xc1)](_0x26b5b1));}[_0x36f281(0x352)](){const _0x4b468c=_0x36f281;this[_0x4b468c(0x3c6)]=window[_0x4b468c(0x1ba)](()=>{const _0x554923=_0x4b468c;this['_send']({'type':0x2,'memberID':this[_0x554923(0xde)]});},_0x2c0f60);}[_0x36f281(0x402)](_0x59e518){const _0x123afb=_0x36f281;return this[_0x123afb(0x33a)]['has'](_0x59e518)||this[_0x123afb(0x33a)][_0x123afb(0x2bd)](_0x59e518,new _0x30c949[(_0x123afb(0x2f9))](0x0)),this[_0x123afb(0x33a)][_0x123afb(0x14e)](_0x59e518);}}function _0x2cec55(_0x1fcc0d){const _0xa034ca=_0x36f281;let _0x3b7600='';for(const _0x479228 of _0x1fcc0d){const {startOffset:_0x2e6bf9,endOffset:_0x327d5d,isActive:_0x5eb202}=_0x479228;_0x3b7600[_0xa034ca(0x43f)]&&(_0x3b7600+=','),_0x3b7600+=_0x2e6bf9+':'+_0x327d5d+':'+(_0x5eb202?'1':'0');}return _0x3b7600;}function _0x36aa49(_0x47bee1){const _0x43802a=_0x36f281,_0x573ec0=_0x47bee1['split'](','),_0x5258e8=[];for(const _0x160ded of _0x573ec0){const [_0x530506,_0x4f0a69,_0x5d4ba7]=_0x160ded[_0x43802a(0x47f)](':');_0x5258e8['push']({'startOffset':Number(_0x530506),'endOffset':Number(_0x4f0a69),'collapsed':_0x530506===_0x4f0a69,'isActive':_0x5d4ba7==='1'});}return _0x5258e8['some'](_0x282c54=>_0x282c54['isActive'])||(_0x5258e8[0x0][_0x43802a(0x2ae)]=!0x0),_0x5258e8;}class _0x337544 extends _0x593949[_0x36f281(0x130)]{constructor(){const _0x5021c6=_0x36f281;super(...arguments),_0x3e0772(this,_0x5021c6(0xb8),new _0x30c949[(_0x5021c6(0x2f9))](null)),_0x3e0772(this,_0x5021c6(0x283),this[_0x5021c6(0xb8)][_0x5021c6(0x13a)]());}[_0x36f281(0x4c6)](_0x20a898){const _0x358bb0=_0x36f281,{unitID:_0x2c11c1,memberID:_0x5691c6,textRanges:_0x537c13}=_0x20a898,_0x4fa47e=_0x2cec55(_0x537c13),_0x4ad810={'unitID':_0x2c11c1,'memberID':_0x5691c6,'selection':_0x4fa47e};this[_0x358bb0(0xb8)]['next'](_0x4ad810);}}var _0x3ecdc3=Object[_0x36f281(0x49a)],_0x4c1073=Object[_0x36f281(0x381)],_0x216986=(_0x15c6bb,_0xc99e77,_0x3fc2ec,_0x748638)=>{const _0x46e0ac=_0x36f281;for(var _0x5dfc20=_0x748638>0x1?void 0x0:_0x748638?_0x4c1073(_0xc99e77,_0x3fc2ec):_0xc99e77,_0x445051=_0x15c6bb[_0x46e0ac(0x43f)]-0x1,_0x8bed;_0x445051>=0x0;_0x445051--)(_0x8bed=_0x15c6bb[_0x445051])&&(_0x5dfc20=(_0x748638?_0x8bed(_0xc99e77,_0x3fc2ec,_0x5dfc20):_0x8bed(_0x5dfc20))||_0x5dfc20);return _0x748638&&_0x5dfc20&&_0x3ecdc3(_0xc99e77,_0x3fc2ec,_0x5dfc20),_0x5dfc20;},_0x3c4d8e=(_0x4815dd,_0x575ea9)=>(_0x5c390a,_0x60d294)=>_0x575ea9(_0x5c390a,_0x60d294,_0x4815dd);let _0x2ffd8e=class{constructor(_0x4d4ae1,_0x32b2ab){const _0x5ad6f4=_0x36f281;this[_0x5ad6f4(0xf1)]=_0x4d4ae1,this[_0x5ad6f4(0x496)]=_0x32b2ab;}[_0x36f281(0x28f)](_0x19461a){const _0x5560c0=_0x36f281;var _0x53103b;const _0x312f39=this[_0x5560c0(0xf1)][_0x5560c0(0x14e)](_0x4aa7be['DocSelectionManagerService']),_0x541d1b=(_0x53103b=_0x312f39[_0x5560c0(0x384)]())!=null?_0x53103b:[];if(_0x541d1b[_0x5560c0(0x43f)]===0x0)return;const _0x4d9b33=[{'id':_0x5560c0(0x19d),'params':{'unitId':_0x19461a[_0x5560c0(0x2ba)],'actions':null,'textRanges':_0x541d1b}}],_0x59d9c5=this['_transformService'][_0x5560c0(0x310)](_0x19461a,_0x4d9b33);if(!_0x4968b4[_0x5560c0(0x3f3)](_0x59d9c5))throw _0x59d9c5[_0x5560c0(0x302)];const _0x25ff06=_0x59d9c5[_0x5560c0(0xb3)][0x0][_0x5560c0(0x2c8)][_0x5560c0(0x4cb)];Array[_0x5560c0(0x10c)](_0x25ff06)&&_0x25ff06['length']&&_0x312f39[_0x5560c0(0x1ca)](_0x25ff06,!0x1);}};_0x2ffd8e=_0x216986([_0x3c4d8e(0x0,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0xa8)])),_0x3c4d8e(0x1,_0x4968b4['ITransformService'])],_0x2ffd8e);const _0x40b5ae=new Set([_0xec6805[_0x36f281(0xd5)]['id']]);function _0x36aad1(_0x518f1b,_0x61569f,_0x168704,_0x338706,_0x57f936){const _0x52ce42=_0x36f281;var _0x18a5ec,_0x356d9c,_0x5825c8,_0x1e14a7;const _0x46f11f=[];for(const _0x52461b of _0x518f1b)if(_0x40b5ae[_0x52ce42(0x1f2)](_0x52461b['id'])){if(_0x46f11f[_0x52ce42(0x43f)]>0x0)break;_0x46f11f[_0x52ce42(0x43c)](_0x52461b);break;}else _0x46f11f[_0x52ce42(0x43c)](_0x52461b);const _0x22a6cb=(_0x356d9c=(_0x18a5ec=_0x57f936['getCurrentUser']())==null?void 0x0:_0x18a5ec['userID'])!=null?_0x356d9c:'unknown',_0x2917f4=(_0x1e14a7=(_0x5825c8=_0x57f936[_0x52ce42(0x333)]())==null?void 0x0:_0x5825c8[_0x52ce42(0x4bf)])!=null?_0x1e14a7:_0x52ce42(0x2ac);return{'changeset':{'unitID':_0x61569f,'type':_0x4968b4['mapDocumentTypeToUniverType'](_0x168704[_0x52ce42(0x36a)](_0x61569f)),'baseRev':_0x338706[_0x52ce42(0x1fb)](_0x61569f),'revision':0x0,'userID':_0x22a6cb,'memberID':_0x2917f4,'mutations':_0x46f11f},'pendingMutations':_0x518f1b['slice'](_0x46f11f[_0x52ce42(0x43f)])};}function _0xeb2f45(_0x5a77ad,_0x25d1a2,_0x2c0293,_0x87eef7,_0x236bf9){const _0x733102=_0x36f281;var _0x5c7a85,_0x1e1ea5,_0x4d9dc8,_0xcfbc2;const _0x1495ac=[_0x5a77ad[_0x733102(0x362)]((_0x440081,_0x2156b4)=>{const _0x22bf1b=_0x733102;var _0x258b01;const {id:_0x155d3a}=_0x440081,{id:_0x27e62e,type:_0x270d79}=_0x2156b4,_0x2b9adb=(_0x258b01=_0x440081[_0x22bf1b(0x2c8)])!=null?_0x258b01:{'actions':null},_0x6f9fb8=_0x2156b4['params'];if(_0x155d3a&&_0x155d3a!==_0x27e62e)throw new Error(_0x22bf1b(0x204)+_0x155d3a+_0x22bf1b(0x49f)+_0x27e62e+'.');return{..._0x440081,'id':_0x27e62e,'type':_0x270d79,'params':{'unitId':_0x6f9fb8[_0x22bf1b(0x315)],'textRanges':_0x6f9fb8[_0x22bf1b(0x4cb)],'actions':_0x593949[_0x22bf1b(0x499)][_0x22bf1b(0x28a)](_0x2b9adb[_0x22bf1b(0x3b0)],_0x6f9fb8[_0x22bf1b(0x3b0)])}};},{})],_0x445a8d=(_0x1e1ea5=(_0x5c7a85=_0x236bf9['getCurrentUser']())==null?void 0x0:_0x5c7a85['userID'])!=null?_0x1e1ea5:_0x733102(0x2ac),_0x16a734=(_0xcfbc2=(_0x4d9dc8=_0x236bf9[_0x733102(0x333)]())==null?void 0x0:_0x4d9dc8[_0x733102(0x4bf)])!=null?_0xcfbc2:'unknown';return{'changeset':{'unitID':_0x25d1a2,'type':_0x4968b4['mapDocumentTypeToUniverType'](_0x2c0293[_0x733102(0x36a)](_0x25d1a2)),'baseRev':_0x87eef7['getCurrentRevOfUnit'](_0x25d1a2),'revision':0x0,'userID':_0x445a8d,'memberID':_0x16a734,'mutations':_0x1495ac},'pendingMutations':[]};}const _0xea11e5={'id':_0xec6805[_0x36f281(0xae)]['id'],'type':_0x593949[_0x36f281(0x3e6)][_0x36f281(0xf7)],'params':{}};var _0x594cc4=Object[_0x36f281(0x49a)],_0x5e41ff=Object[_0x36f281(0x381)],_0x1a64a2=(_0x94cb9e,_0x5b142e,_0x4d54af,_0x467c68)=>{const _0x39c437=_0x36f281;for(var _0x5768c6=_0x467c68>0x1?void 0x0:_0x467c68?_0x5e41ff(_0x5b142e,_0x4d54af):_0x5b142e,_0x5e5dd6=_0x94cb9e[_0x39c437(0x43f)]-0x1,_0x4cf395;_0x5e5dd6>=0x0;_0x5e5dd6--)(_0x4cf395=_0x94cb9e[_0x5e5dd6])&&(_0x5768c6=(_0x467c68?_0x4cf395(_0x5b142e,_0x4d54af,_0x5768c6):_0x4cf395(_0x5768c6))||_0x5768c6);return _0x467c68&&_0x5768c6&&_0x594cc4(_0x5b142e,_0x4d54af,_0x5768c6),_0x5768c6;},_0x418d5f=(_0xbd3e43,_0x4bd33d)=>(_0x4d0bbe,_0x25c70e)=>_0x4bd33d(_0x4d0bbe,_0x25c70e,_0xbd3e43),_0x2d65dc=(_0x3cbbd2=>(_0x3cbbd2['NOT_COLLAB']=_0x36f281(0x4a9),_0x3cbbd2['SYNCED']=_0x36f281(0x418),_0x3cbbd2[_0x36f281(0x498)]='pending',_0x3cbbd2['AWAITING']='awaiting',_0x3cbbd2['AWAITING_WITH_PENDING']='awaiting_with_pending',_0x3cbbd2[_0x36f281(0x3a1)]=_0x36f281(0xc5),_0x3cbbd2[_0x36f281(0x43a)]='conflict',_0x3cbbd2[_0x36f281(0x4eb)]=_0x36f281(0x322),_0x3cbbd2))(_0x2d65dc||{});class _0x3595bc{constructor(_0x11a4b9,_0x55ade5,_0x4464b3,_0x4082d3,_0x156e93,_0x155c84,_0x3aa855,_0x362f49,_0xf8ac74){const _0x3c08b6=_0x36f281;_0x3e0772(this,'_awaitingChangeset',null),_0x3e0772(this,_0x3c08b6(0x289),[]),(this[_0x3c08b6(0x2ba)]=_0x11a4b9,this[_0x3c08b6(0x17b)]=_0x55ade5,this['_handler']=_0x156e93,this[_0x3c08b6(0x265)]=_0x155c84,this[_0x3c08b6(0x407)]=_0x3aa855,this[_0x3c08b6(0x237)]=_0x362f49,this[_0x3c08b6(0xfc)]=_0xf8ac74,this[_0x3c08b6(0x446)]=_0x4464b3,this[_0x3c08b6(0x289)]=_0x4082d3);}['_checkMissing'](_0x499097){const _0x27ecad=_0x36f281,_0xe7ccdb=this[_0x27ecad(0x237)][_0x27ecad(0x1fb)](this[_0x27ecad(0x2ba)]);return _0x499097[_0x27ecad(0x320)]>_0xe7ccdb+0x1?(this[_0x27ecad(0x473)][_0x27ecad(0x3ad)]({'from':_0xe7ccdb,'to':_0x499097[_0x27ecad(0x320)]-0x1}),!0x0):!0x1;}[_0x36f281(0x240)](_0x3c921a){const _0x1f8abf=_0x36f281;this['_undoRedoService'][_0x1f8abf(0x194)](this[_0x1f8abf(0x2ba)],_0x3c921a);}[_0x36f281(0x48a)](_0x17390a){const _0x2e7a68=_0x36f281;var _0x5d9517,_0x154eb3;(_0x154eb3=(_0x5d9517=this[_0x2e7a68(0x473)])[_0x2e7a68(0xb1)])==null||_0x154eb3['call'](_0x5d9517,_0x17390a);}[_0x36f281(0x284)](_0x12fbc2){const _0x494ed2=_0x36f281;var _0x44ba26,_0x502ded;return(_0x502ded=(_0x44ba26=this[_0x494ed2(0x473)])[_0x494ed2(0x452)])==null?void 0x0:_0x502ded[_0x494ed2(0x2fa)](_0x44ba26,_0x12fbc2);}[_0x36f281(0x437)](_0x5306b9){const _0x3ee711=_0x36f281;var _0x5d4d66,_0x95e5d2,_0x1c0f1c;return(_0x1c0f1c=(_0x95e5d2=(_0x5d4d66=this[_0x3ee711(0x473)])[_0x3ee711(0x31c)])==null?void 0x0:_0x95e5d2[_0x3ee711(0x2fa)](_0x5d4d66,_0x5306b9))!=null?_0x1c0f1c:_0x5306b9;}[_0x36f281(0x480)](_0x175aac){const _0x2643d8=_0x36f281;var _0x1a1468,_0x224232;if(this[_0x2643d8(0x17b)]===_0x4775b3[_0x2643d8(0x4e1)]){const {unitID:_0x1aa9c8,mutations:_0x29b6f7,memberID:_0xc0003a}=_0x175aac,_0x7b4a8f=_0x29b6f7[0x0]['params'][_0x2643d8(0x4cb)];Array[_0x2643d8(0x10c)](_0x7b4a8f)&&_0x7b4a8f['length']>0x0&&((_0x224232=(_0x1a1468=this['_handler'])[_0x2643d8(0x1aa)])==null||_0x224232['call'](_0x1a1468,{'unitID':_0x1aa9c8,'memberID':_0xc0003a,'textRanges':_0x7b4a8f}));}}[_0x36f281(0x374)](){const _0xe831f8=_0x36f281;this[_0xe831f8(0xfc)]['updateOfflineData'](this['unitID'],this['type'],this[_0xe831f8(0x446)],this['_pendingMutations']);}[_0x36f281(0x2ce)](){const _0x2468ef=_0x36f281;return this['_revisionService'][_0x2468ef(0x1fb)](this[_0x2468ef(0x2ba)]);}[_0x36f281(0x2cf)](){const _0x342ddc=_0x36f281;this[_0x342ddc(0x237)][_0x342ddc(0xd1)](this['unitID']);}[_0x36f281(0x3de)](_0x45f862){const _0x34d139=_0x36f281;var _0x4160e2;const _0x2fe95e=this[_0x34d139(0x437)](_0x45f862),_0x163e9e=_0x593949[_0x34d139(0x190)](_0x2fe95e['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x163e9e[_0x34d139(0xbb)])throw _0x163e9e['error']instanceof Error?_0x163e9e[_0x34d139(0x302)]:new Error((_0x4160e2=_0x163e9e[_0x34d139(0x302)])!=null?_0x4160e2:'[CollaborationState]:\x20apply\x20error!');this[_0x34d139(0x284)](_0x2fe95e),this[_0x34d139(0x240)](_0x45f862),this[_0x34d139(0x48a)](_0x2fe95e),this[_0x34d139(0x480)](_0x2fe95e),this[_0x34d139(0x2cf)]();}}let _0x333ccd=class extends _0x3595bc{constructor(_0x25a245,_0xd47142,_0x456452,_0x121c50,_0x33d6d4,_0x1e9a28,_0x55bc33,_0x7156a5,_0x2ebc54,_0x33bfb9){const _0x10a57a=_0x36f281;super(_0x25a245,_0xd47142,null,[],_0x456452,_0x7156a5,_0x55bc33,_0x121c50,_0x33d6d4),_0x3e0772(this,'status',_0x10a57a(0x418)),(this[_0x10a57a(0xf1)]=_0x1e9a28,this['_logService']=_0x2ebc54,this[_0x10a57a(0x496)]=_0x33bfb9);}[_0x36f281(0xca)](_0x2584d7){const _0x384ef1=_0x36f281,_0x50c7f6=this[_0x384ef1(0xf1)]['createInstance'](_0x5f011e,this['unitID'],this[_0x384ef1(0x17b)],[_0x2584d7],this[_0x384ef1(0x473)]);return _0x50c7f6[_0x384ef1(0x478)](),_0x50c7f6['_updateLocalCache'](),_0x50c7f6;}[_0x36f281(0x271)](_0x3f7a97){const _0x35d5e5=_0x36f281;if(this[_0x35d5e5(0x313)](_0x3f7a97))return this['_injector'][_0x35d5e5(0xb4)](_0x486ba5,this[_0x35d5e5(0x2ba)],this[_0x35d5e5(0x17b)],null,[],null,[_0x3f7a97],this['_handler']);try{const _0x333569=this[_0x35d5e5(0x496)][_0x35d5e5(0x310)](_0x3f7a97,[_0xea11e5]);if(_0x4968b4['isTransformMutationsWithChangesetSuccess'](_0x333569)){const {c1Prime:_0x1c9ff5}=_0x333569;return this[_0x35d5e5(0x3de)](_0x1c9ff5),this;}throw _0x333569[_0x35d5e5(0x302)];}catch(_0x5eb085){return this['_logService'][_0x35d5e5(0x302)](_0x5eb085),this['_onConflict'](!0x1);}}[_0x36f281(0x343)](_0x4caf6b){const _0x170deb=_0x36f281;return this['_injector'][_0x170deb(0xb4)](_0x24fcd1,this[_0x170deb(0x2ba)],this[_0x170deb(0x17b)],null,[],this[_0x170deb(0x473)],_0x4caf6b);}['onRemoteAck'](){const _0x10eb0d=_0x36f281;throw new Error(_0x10eb0d(0x15f));}[_0x36f281(0x143)](){const _0x472319=_0x36f281;throw new Error(_0x472319(0xab));}[_0x36f281(0x40b)](){const _0x595b41=_0x36f281;return this[_0x595b41(0xf1)][_0x595b41(0xb4)](_0x4519aa,this[_0x595b41(0x2ba)],this[_0x595b41(0x17b)],null,[],this['_handler']);}[_0x36f281(0x400)](){return this;}[_0x36f281(0x39c)](){const _0x236037=_0x36f281;throw new Error(_0x236037(0x115));}[_0x36f281(0x492)](){const _0x4501f2=_0x36f281,_0x52dfa2=this['_revisionService']['getCurrentRevOfUnit'](this['unitID']);return this[_0x4501f2(0x473)][_0x4501f2(0x3ad)]({'from':_0x52dfa2,'to':0x0}),this[_0x4501f2(0xf1)][_0x4501f2(0xb4)](_0x486ba5,this[_0x4501f2(0x2ba)],this[_0x4501f2(0x17b)],null,[],null,[],this['_handler']);}};_0x333ccd=_0x1a64a2([_0x418d5f(0x3,_0x593949[_0x36f281(0xb9)](_0x4968b4[_0x36f281(0xe5)])),_0x418d5f(0x4,_0x593949['Inject'](_0x4238fe['LocalCacheService'])),_0x418d5f(0x5,_0x593949[_0x36f281(0xb9)](_0x593949['Injector'])),_0x418d5f(0x6,_0x593949[_0x36f281(0x3d1)]),_0x418d5f(0x7,_0x593949[_0x36f281(0x38d)]),_0x418d5f(0x8,_0x593949[_0x36f281(0x380)]),_0x418d5f(0x9,_0x4968b4[_0x36f281(0x415)])],_0x333ccd);let _0x5f011e=class extends _0x3595bc{constructor(_0x2e9d75,_0x9c2b0d,_0x377eac,_0x340ee5,_0x404305,_0x380968,_0x31d643,_0xdb9e77,_0x844249,_0x4e2ca6,_0x2f2a3a,_0x199268,_0x5df6de,_0x4f42de){const _0x2058ef=_0x36f281;super(_0x2e9d75,_0x9c2b0d,null,_0x377eac,_0x340ee5,_0x4e2ca6,_0x4f42de,_0x380968,_0x31d643),_0x3e0772(this,_0x2058ef(0x339),_0x2058ef(0x3ef)),_0x3e0772(this,_0x2058ef(0x215),null),_0x3e0772(this,_0x2058ef(0x22f),null),(this[_0x2058ef(0xf1)]=_0x404305,this['_memberService']=_0xdb9e77,this['_logService']=_0x844249,this[_0x2058ef(0xdd)]=_0x2f2a3a,this[_0x2058ef(0x496)]=_0x199268,this['_univerInstanceService']=_0x5df6de);}[_0x36f281(0xca)](_0x38102c){const _0x5ddeea=_0x36f281;return this['_pendingMutations'][_0x5ddeea(0x43c)](_0x38102c),this[_0x5ddeea(0x374)](),this;}['onRemoteChangeset'](_0x29c7c2){const _0x3068e8=_0x36f281;if(this[_0x3068e8(0x313)](_0x29c7c2))return this['_clearScheduledTask'](),this['_injector'][_0x3068e8(0xb4)](_0x486ba5,this[_0x3068e8(0x2ba)],this['type'],null,this[_0x3068e8(0x289)],null,[_0x29c7c2],this[_0x3068e8(0x473)]);try{const _0x91701a=this[_0x3068e8(0x496)][_0x3068e8(0x310)](_0x29c7c2,this[_0x3068e8(0x289)]);if(_0x4968b4[_0x3068e8(0x3f3)](_0x91701a)){const {c1Prime:_0x2d1287,m2Prime:_0x1f445e}=_0x91701a;this[_0x3068e8(0x3de)](_0x2d1287);const _0x4fdbc8=this[_0x3068e8(0xf1)][_0x3068e8(0xb4)](_0x5f011e,this[_0x3068e8(0x2ba)],this[_0x3068e8(0x17b)],_0x1f445e,this['_handler']);return this[_0x3068e8(0x46b)](),_0x4fdbc8[_0x3068e8(0x478)](this[_0x3068e8(0x215)]?Math[_0x3068e8(0x34b)](0x0,new Date()[_0x3068e8(0x3ac)]()-this[_0x3068e8(0x215)]):this[_0x3068e8(0x3b8)]()),_0x4fdbc8;}throw _0x91701a[_0x3068e8(0x302)];}catch(_0x303418){return this[_0x3068e8(0x3df)][_0x3068e8(0x302)](_0x303418),this['_onConflict'](!0x1);}}[_0x36f281(0x238)](){const _0x28dd51=_0x36f281;throw new Error(_0x28dd51(0x32f));}['onRemoteRej'](){const _0x7df85c=_0x36f281;throw new Error(_0x7df85c(0x3e1));}[_0x36f281(0x40b)](){const _0x825773=_0x36f281;return this[_0x825773(0x46b)](),this[_0x825773(0xf1)][_0x825773(0xb4)](_0x4519aa,this[_0x825773(0x2ba)],this[_0x825773(0x17b)],null,this[_0x825773(0x289)],this['_handler']);}['toggleOnline'](){return this;}[_0x36f281(0x478)](_0x3e577c){const _0x18a147=_0x36f281,_0x426214=_0x3e577c!=null?_0x3e577c:this[_0x18a147(0x3b8)]();this[_0x18a147(0x215)]=new Date()['getTime'](),this['_sendingTimer']=window['setTimeout'](()=>{const _0x5a820c=_0x18a147;this[_0x5a820c(0x46b)]();let _0x384dd1=null;switch(this['type']){case _0x4775b3[_0x5a820c(0x12e)]:{_0x384dd1=_0x36aad1(this[_0x5a820c(0x289)],this[_0x5a820c(0x2ba)],this[_0x5a820c(0x276)],this['_revisionService'],this[_0x5a820c(0x277)]);break;}case _0x4775b3[_0x5a820c(0x4e1)]:{this[_0x5a820c(0x289)][_0x5a820c(0x2d1)](_0xc95aa7=>_0xc95aa7['id']===_0x4aa7be[_0x5a820c(0x36e)]['id'])?_0x384dd1=_0xeb2f45(this[_0x5a820c(0x289)],this[_0x5a820c(0x2ba)],this['_univerInstanceService'],this['_revisionService'],this['_memberService']):_0x384dd1=_0x36aad1(this[_0x5a820c(0x289)],this[_0x5a820c(0x2ba)],this[_0x5a820c(0x276)],this[_0x5a820c(0x237)],this[_0x5a820c(0x277)]);break;}default:throw new Error(_0x5a820c(0x2dd)+this[_0x5a820c(0x17b)]+_0x5a820c(0x1d3));}const {changeset:_0x47915a,pendingMutations:_0x2a7c06}=_0x384dd1;this[_0x5a820c(0x473)]['onSendChangeset'](_0x47915a);const _0x5edde7=_0x2a7c06['length']?this['_injector'][_0x5a820c(0xb4)](_0x165ad8,this[_0x5a820c(0x2ba)],this[_0x5a820c(0x17b)],_0x47915a,_0x2a7c06,this['_handler']):this['_injector']['createInstance'](_0x5165c0,this['unitID'],this[_0x5a820c(0x17b)],_0x47915a,this[_0x5a820c(0x473)]);_0x5edde7['_updateLocalCache'](),this['_handler'][_0x5a820c(0x4e2)](this,_0x5edde7);},_0x426214);}['_getSendChangesetTimeout'](){const _0x3dbcc1=_0x36f281;var _0x4543fc;const _0x2e78af=this[_0x3dbcc1(0xdd)]['getConfig'](_0xfe6e3e);return(_0x4543fc=_0x2e78af==null?void 0x0:_0x2e78af[_0x3dbcc1(0x10d)])!=null?_0x4543fc:0x7d0;}[_0x36f281(0x39c)](){const _0x1ab89a=_0x36f281;throw new Error(_0x1ab89a(0xd8));}[_0x36f281(0x46b)](){const _0x3109fd=_0x36f281;this['_sendingTimer']!=null&&(clearTimeout(this[_0x3109fd(0x22f)]),this[_0x3109fd(0x22f)]=null);}[_0x36f281(0x343)](_0x2c1a23){const _0x2c5189=_0x36f281;return this[_0x2c5189(0x46b)](),this[_0x2c5189(0xf1)][_0x2c5189(0xb4)](_0x24fcd1,this[_0x2c5189(0x2ba)],this[_0x2c5189(0x17b)],null,this['_pendingMutations'],this[_0x2c5189(0x473)],_0x2c1a23);}};_0x5f011e=_0x1a64a2([_0x418d5f(0x4,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0xa8)])),_0x418d5f(0x5,_0x593949['Inject'](_0x4968b4[_0x36f281(0xe5)])),_0x418d5f(0x6,_0x593949[_0x36f281(0xb9)](_0x4238fe[_0x36f281(0xd2)])),_0x418d5f(0x7,_0x593949[_0x36f281(0xb9)](_0x40c14d)),_0x418d5f(0x8,_0x593949['ILogService']),_0x418d5f(0x9,_0x593949[_0x36f281(0x38d)]),_0x418d5f(0xa,_0x593949['IConfigService']),_0x418d5f(0xb,_0x4968b4[_0x36f281(0x415)]),_0x418d5f(0xc,_0x593949[_0x36f281(0x1dc)]),_0x418d5f(0xd,_0x593949[_0x36f281(0x3d1)])],_0x5f011e);let _0x5165c0=class extends _0x3595bc{constructor(_0xad17f2,_0x1671a,_0x2208ce,_0x4f5f88,_0x224ebb,_0x235a60,_0x5ae4c5,_0x1578c2,_0x3d8002,_0x310c0d,_0x3cc62a){const _0x17333f=_0x36f281;super(_0xad17f2,_0x1671a,_0x2208ce,[],_0x4f5f88,_0x1578c2,_0x3cc62a,_0x235a60,_0x5ae4c5),_0x3e0772(this,_0x17333f(0x339),_0x17333f(0x39e)),(this[_0x17333f(0xf1)]=_0x224ebb,this['_logService']=_0x3d8002,this[_0x17333f(0x496)]=_0x310c0d);}['appendMutation'](_0x296462){const _0x1c0908=_0x36f281,_0x25e8bf=this[_0x1c0908(0xf1)][_0x1c0908(0xb4)](_0x165ad8,this[_0x1c0908(0x2ba)],this[_0x1c0908(0x17b)],this['_awaitingChangeset'],[_0x296462],this['_handler']);return _0x25e8bf[_0x1c0908(0x374)](),_0x25e8bf;}[_0x36f281(0x271)](_0x468773){const _0x44e221=_0x36f281;if(this[_0x44e221(0x313)](_0x468773))return this[_0x44e221(0xf1)]['createInstance'](_0x486ba5,this[_0x44e221(0x2ba)],this[_0x44e221(0x17b)],this[_0x44e221(0x446)],[],null,[_0x468773],this[_0x44e221(0x473)]);try{const _0x4601f0=this['_transformService'][_0x44e221(0x2e8)]([_0x468773],[this['_awaitingChangeset']],!0x1);if(_0x4968b4[_0x44e221(0x2e9)](_0x4601f0)){const {c1Prime:_0x185285,c2Prime:_0x52b3b1}=_0x4601f0;this[_0x44e221(0x3de)](_0x185285[0x0]),_0x52b3b1[0x0]['baseRev']=this[_0x44e221(0x2ce)]();const _0x4a09e1=this['_injector'][_0x44e221(0xb4)](_0x5165c0,this[_0x44e221(0x2ba)],this['type'],_0x52b3b1[0x0],this[_0x44e221(0x473)]);return _0x4a09e1[_0x44e221(0x374)](),_0x4a09e1;}return this[_0x44e221(0x343)](!0x1);}catch(_0x3b2adb){return this[_0x44e221(0x3df)][_0x44e221(0x302)](_0x3b2adb),this[_0x44e221(0x343)](!0x1);}}[_0x36f281(0x238)](_0x1a1fc3){const _0x29f683=_0x36f281,_0x52f40b=this[_0x29f683(0x237)][_0x29f683(0x1fb)](this[_0x29f683(0x2ba)]);if(_0x1a1fc3[_0x29f683(0x320)]<_0x52f40b-0x1)return this;if(this[_0x29f683(0x313)](_0x1a1fc3))return this[_0x29f683(0xf1)][_0x29f683(0xb4)](_0x486ba5,this[_0x29f683(0x2ba)],this[_0x29f683(0x17b)],null,[],this[_0x29f683(0x446)],[],this[_0x29f683(0x473)]);this[_0x29f683(0x2cf)]();const _0x4b5547=this[_0x29f683(0xf1)][_0x29f683(0xb4)](_0x333ccd,this['unitID'],this[_0x29f683(0x17b)],this[_0x29f683(0x473)]);return _0x4b5547[_0x29f683(0x374)](),_0x4b5547;}[_0x36f281(0x143)](_0x48d8ce){const _0x2a9e3c=_0x36f281;return this[_0x2a9e3c(0x343)](!!(_0x48d8ce!=null&&_0x48d8ce['isPermissionRej']));}[_0x36f281(0x40b)](){const _0x4ba02e=_0x36f281;return this['_injector'][_0x4ba02e(0xb4)](_0x4519aa,this['unitID'],this['type'],this['_awaitingChangeset'],[],this[_0x4ba02e(0x473)]);}[_0x36f281(0x400)](){return this;}[_0x36f281(0x39c)](){const _0x203f6a=_0x36f281;this[_0x203f6a(0x473)]['onSendChangeset'](this['_awaitingChangeset']);}['_onConflict'](_0x21a79e){const _0x5e3fc7=_0x36f281;return this[_0x5e3fc7(0xf1)][_0x5e3fc7(0xb4)](_0x24fcd1,this[_0x5e3fc7(0x2ba)],this['type'],this[_0x5e3fc7(0x446)],[],this[_0x5e3fc7(0x473)],_0x21a79e);}};_0x5165c0=_0x1a64a2([_0x418d5f(0x4,_0x593949['Inject'](_0x593949[_0x36f281(0xa8)])),_0x418d5f(0x5,_0x593949[_0x36f281(0xb9)](_0x4968b4[_0x36f281(0xe5)])),_0x418d5f(0x6,_0x593949[_0x36f281(0xb9)](_0x4238fe[_0x36f281(0xd2)])),_0x418d5f(0x7,_0x593949['ICommandService']),_0x418d5f(0x8,_0x593949[_0x36f281(0x380)]),_0x418d5f(0x9,_0x4968b4[_0x36f281(0x415)]),_0x418d5f(0xa,_0x593949['IUndoRedoService'])],_0x5165c0);let _0x165ad8=class extends _0x3595bc{constructor(_0x585f59,_0x450bc4,_0x12ce61,_0x5cfbf0,_0x318e88,_0x3148c6,_0x51c88f,_0x2b494d,_0xb7b8ca,_0x7d9f75,_0x520cfa,_0x2ea744){const _0x5704c8=_0x36f281;super(_0x585f59,_0x450bc4,_0x12ce61,_0x5cfbf0,_0x318e88,_0xb7b8ca,_0x2ea744,_0x51c88f,_0x2b494d),_0x3e0772(this,'status',_0x5704c8(0x158)),(this['_injector']=_0x3148c6,this[_0x5704c8(0x3df)]=_0x7d9f75,this['_transformService']=_0x520cfa);}['appendMutation'](_0xa0a491){const _0x23a7ac=_0x36f281;return this['_pendingMutations'][_0x23a7ac(0x43c)](_0xa0a491),this;}[_0x36f281(0x271)](_0x4d72b1){const _0x2f1407=_0x36f281;if(this[_0x2f1407(0x313)](_0x4d72b1))return this[_0x2f1407(0xf1)][_0x2f1407(0xb4)](_0x486ba5,this[_0x2f1407(0x2ba)],this[_0x2f1407(0x17b)],this[_0x2f1407(0x446)],this[_0x2f1407(0x289)],null,[_0x4d72b1],this[_0x2f1407(0x473)]);try{const _0x3a9144=this[_0x2f1407(0x496)][_0x2f1407(0x2e8)]([_0x4d72b1],[this['_awaitingChangeset']],!0x1);if(_0x4968b4['isTransformChangesetsSuccess'](_0x3a9144)){const {c1Prime:_0x2b6167,c2Prime:_0x5ab062}=_0x3a9144,_0x46ae56=this[_0x2f1407(0x496)][_0x2f1407(0x310)](_0x2b6167[0x0],this[_0x2f1407(0x289)]);if(_0x4968b4[_0x2f1407(0x3f3)](_0x46ae56)){const {c1Prime:_0x37cc9b,m2Prime:_0x21485b}=_0x46ae56;return this[_0x2f1407(0x3de)](_0x37cc9b),_0x5ab062[0x0][_0x2f1407(0x12d)]=this[_0x2f1407(0x2ce)](),this[_0x2f1407(0xf1)][_0x2f1407(0xb4)](_0x165ad8,this[_0x2f1407(0x2ba)],this[_0x2f1407(0x17b)],_0x5ab062[0x0],_0x21485b,this['_handler']);}throw _0x46ae56[_0x2f1407(0x302)];}throw _0x3a9144['error'];}catch(_0x346228){return this[_0x2f1407(0x3df)][_0x2f1407(0x302)](_0x346228),this[_0x2f1407(0x343)](!0x1);}}[_0x36f281(0x238)](_0x403aa9){const _0x14a630=_0x36f281;if(this[_0x14a630(0x313)](_0x403aa9))return this[_0x14a630(0xf1)][_0x14a630(0xb4)](_0x486ba5,this['unitID'],this['type'],null,this[_0x14a630(0x289)],this[_0x14a630(0x446)],[],this[_0x14a630(0x473)]);this[_0x14a630(0x2cf)]();const _0x18a12f=this[_0x14a630(0xf1)]['createInstance'](_0x5f011e,this[_0x14a630(0x2ba)],this['type'],this[_0x14a630(0x289)],this[_0x14a630(0x473)]);return _0x18a12f[_0x14a630(0x478)](),_0x18a12f['_updateLocalCache'](),_0x18a12f;}[_0x36f281(0x143)](_0x2dea48){const _0x258217=_0x36f281;return this[_0x258217(0x343)](!!(_0x2dea48!=null&&_0x2dea48['isPermissionRej']));}[_0x36f281(0x40b)](){const _0x10bc6d=_0x36f281;return this[_0x10bc6d(0xf1)]['createInstance'](_0x4519aa,this[_0x10bc6d(0x2ba)],this[_0x10bc6d(0x17b)],this[_0x10bc6d(0x446)],this[_0x10bc6d(0x289)],this[_0x10bc6d(0x473)]);}[_0x36f281(0x400)](){return this;}[_0x36f281(0x39c)](){const _0x44326b=_0x36f281;this[_0x44326b(0x473)][_0x44326b(0x3d8)](this[_0x44326b(0x446)]);}['_onConflict'](_0x5c85d1){const _0x1af3a5=_0x36f281;return this['_injector'][_0x1af3a5(0xb4)](_0x24fcd1,this['unitID'],this[_0x1af3a5(0x17b)],null,this[_0x1af3a5(0x289)],this[_0x1af3a5(0x473)],_0x5c85d1);}};_0x165ad8=_0x1a64a2([_0x418d5f(0x5,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0xa8)])),_0x418d5f(0x6,_0x593949[_0x36f281(0xb9)](_0x4968b4[_0x36f281(0xe5)])),_0x418d5f(0x7,_0x593949['Inject'](_0x4238fe[_0x36f281(0xd2)])),_0x418d5f(0x8,_0x593949['ICommandService']),_0x418d5f(0x9,_0x593949[_0x36f281(0x380)]),_0x418d5f(0xa,_0x4968b4[_0x36f281(0x415)]),_0x418d5f(0xb,_0x593949[_0x36f281(0x3d1)])],_0x165ad8);let _0x24fcd1=class extends _0x3595bc{constructor(_0x248ccf,_0x5e517a,_0x8a71f8,_0x1b837f,_0x199ef8,_0x3ced7f=!0x1,_0x254d48,_0x5c6a53,_0x50f869,_0x408cd5,_0x55b962,_0x49987b,_0x5df862){const _0xa9b98=_0x36f281;super(_0x248ccf,_0x5e517a,_0x8a71f8,_0x1b837f,_0x199ef8,_0x5c6a53,_0x50f869,_0x55b962,_0x408cd5),_0x3e0772(this,_0xa9b98(0x339),_0xa9b98(0x422)),(this[_0xa9b98(0x4dd)]=_0x3ced7f,this[_0xa9b98(0x397)]=_0x254d48,this['_localeService']=_0x49987b,this[_0xa9b98(0x4ea)]=_0x5df862,this['_showConflictNotification'](),this[_0xa9b98(0x495)](),this[_0xa9b98(0xaa)]());}[_0x36f281(0xca)](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}[_0x36f281(0x40b)](){return this;}['toggleOnline'](){return this;}[_0x36f281(0x39c)](){const _0x3ca38e=_0x36f281;throw new Error(_0x3ca38e(0x44b));}[_0x36f281(0x495)](){const _0x391e9f=_0x36f281;this[_0x391e9f(0xfc)][_0x391e9f(0x26e)](this[_0x391e9f(0x2ba)],this['type'],null,[]);}['_showConflictNotification'](){const _0x4aefea=_0x36f281;this[_0x4aefea(0x4dd)]?this[_0x4aefea(0x4ea)]['show']({'title':this[_0x4aefea(0x36f)]['t'](_0x4aefea(0x29e)),'content':this[_0x4aefea(0x36f)]['t'](_0x4aefea(0x4d2)),'type':_0x4aefea(0x302),'duration':0x0}):this[_0x4aefea(0x4ea)][_0x4aefea(0x348)]({'title':this[_0x4aefea(0x36f)]['t']('conflict.title'),'content':this[_0x4aefea(0x36f)]['t'](_0x4aefea(0x48e)),'type':_0x4aefea(0x302),'duration':0x0});}[_0x36f281(0xaa)](){const _0x3a333a=_0x36f281;this['_permissionService'][_0x3a333a(0x1ee)](new _0xec6805[(_0x3a333a(0x1d2))](this['unitID'])['id'],!0x1);}};_0x24fcd1=_0x1a64a2([_0x418d5f(0x6,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0x191)])),_0x418d5f(0x7,_0x593949[_0x36f281(0x38d)]),_0x418d5f(0x8,_0x593949[_0x36f281(0x3d1)]),_0x418d5f(0x9,_0x593949[_0x36f281(0xb9)](_0x4238fe[_0x36f281(0xd2)])),_0x418d5f(0xa,_0x593949['Inject'](_0x4968b4[_0x36f281(0xe5)])),_0x418d5f(0xb,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0x2bc)])),_0x418d5f(0xc,_0xc44033[_0x36f281(0x438)])],_0x24fcd1);let _0x4519aa=class extends _0x3595bc{constructor(_0x26d1eb,_0x571fa8,_0x44ee0e,_0x130cbc,_0x2c9116,_0x44ef86,_0x365a56,_0x24ec76,_0x59c328,_0x1edbd4){const _0x55d361=_0x36f281;super(_0x26d1eb,_0x571fa8,_0x44ee0e,_0x130cbc,_0x2c9116,_0x59c328,_0x1edbd4,_0x365a56,_0x24ec76),_0x3e0772(this,_0x55d361(0x339),'offline'),this['_injector']=_0x44ef86;}['appendMutation'](_0x561504){const _0xe9d4a9=_0x36f281;return this[_0xe9d4a9(0x289)]['push'](_0x561504),this[_0xe9d4a9(0x374)](),this;}[_0x36f281(0x271)](_0x43dc0c){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x968aa8=_0x36f281;throw new Error(_0x968aa8(0x14b));}['onRemoteRej'](){const _0x4a1f79=_0x36f281;throw new Error(_0x4a1f79(0x26f));}[_0x36f281(0x40b)](){return this;}[_0x36f281(0x400)](){const _0x527d65=_0x36f281,{_injector:_0x5e05fd,_pendingMutations:_0x4b40b4,_awaitingChangeset:_0x300cd7,unitID:_0x35577b,_handler:_0x2338a0,type:_0x191c1c}=this,_0x4dce49=_0x4d8d4e(_0x5e05fd,_0x35577b,_0x191c1c,_0x300cd7,_0x4b40b4,_0x2338a0);return _0x4dce49 instanceof _0x5f011e?_0x4dce49[_0x527d65(0x478)]():(_0x4dce49 instanceof _0x165ad8||_0x4dce49 instanceof _0x5165c0)&&_0x4dce49['resend'](),_0x4dce49;}[_0x36f281(0x39c)](){const _0x19f337=_0x36f281;throw new Error(_0x19f337(0x3f8));}};_0x4519aa=_0x1a64a2([_0x418d5f(0x5,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0xa8)])),_0x418d5f(0x6,_0x593949[_0x36f281(0xb9)](_0x4968b4['RevisionService'])),_0x418d5f(0x7,_0x593949[_0x36f281(0xb9)](_0x4238fe[_0x36f281(0xd2)])),_0x418d5f(0x8,_0x593949[_0x36f281(0x38d)]),_0x418d5f(0x9,_0x593949['IUndoRedoService'])],_0x4519aa);let _0x486ba5=class extends _0x3595bc{constructor(_0x76d557,_0x4e60c4,_0x54c14d,_0x5f48bf,_0x3bb5b7,_0x52da86,_0x2fc433,_0x543c5e,_0x24423f,_0x368089,_0x2db470,_0x2ee923,_0x12f11b,_0x33b341){const _0x3b2b59=_0x36f281;super(_0x76d557,_0x4e60c4,_0x54c14d,_0x5f48bf,_0x2fc433,_0x2ee923,_0x12f11b,_0x24423f,_0x368089),_0x3e0772(this,_0x3b2b59(0x339),_0x3b2b59(0xc5)),(this['_acknowledgedAwaitingChangeset']=_0x3bb5b7,this[_0x3b2b59(0x439)]=_0x52da86,this['_injector']=_0x543c5e,this[_0x3b2b59(0x3df)]=_0x2db470,this[_0x3b2b59(0x496)]=_0x33b341);}[_0x36f281(0x27c)](_0x3d7cf6){const _0x447301=_0x36f281;try{const _0x4098b8=[..._0x3d7cf6,...this[_0x447301(0x439)]],_0x23650c=[this[_0x447301(0x446)]||this[_0x447301(0x4c5)]][_0x447301(0x218)](_0x9f1207=>!!_0x9f1207);let _0x195b53,_0x57c617;if(_0x23650c[_0x447301(0x43f)]){const _0x334ddf=this[_0x447301(0x496)]['transformChangesets'](_0x4098b8,_0x23650c,!0x1);if(!_0x4968b4['isTransformChangesetsSuccess'](_0x334ddf))throw _0x334ddf[_0x447301(0x302)];_0x195b53=_0x334ddf[_0x447301(0x39f)],_0x57c617=_0x334ddf['c2Prime'];}else _0x195b53=_0x4098b8,_0x57c617=[];let _0x47431e=this['_pendingMutations'];_0x195b53[_0x447301(0x2a0)](_0x2a1a3b=>{const _0x261695=_0x447301;let _0xdc1c72;if(_0x47431e['length']){const _0x4e2b5c=this[_0x261695(0x496)][_0x261695(0x310)](_0x2a1a3b,_0x47431e);if(!_0x4968b4['isTransformMutationsWithChangesetSuccess'](_0x4e2b5c))throw _0x4e2b5c['error'];_0xdc1c72=_0x4e2b5c[_0x261695(0x39f)],_0x47431e=_0x4e2b5c[_0x261695(0xb3)];}else _0xdc1c72=_0x2a1a3b;this[_0x261695(0x3de)](_0xdc1c72);}),this[_0x447301(0x4c5)]&&this[_0x447301(0x2cf)](),this[_0x447301(0x446)]&&_0x57c617[_0x447301(0x43f)]&&(_0x57c617[0x0][_0x447301(0x12d)]=this[_0x447301(0x2ce)]());let _0x89d84;if(this[_0x447301(0x446)]&&_0x47431e[_0x447301(0x43f)]!==0x0)_0x89d84=this[_0x447301(0xf1)][_0x447301(0xb4)](_0x165ad8,this['unitID'],this[_0x447301(0x17b)],_0x57c617[0x0],_0x47431e,this[_0x447301(0x473)]);else{if(this[_0x447301(0x446)]&&_0x47431e['length']===0x0)_0x57c617[0x0]['baseRev']=this[_0x447301(0x2ce)](),_0x89d84=this['_injector'][_0x447301(0xb4)](_0x5165c0,this[_0x447301(0x2ba)],this[_0x447301(0x17b)],_0x57c617[0x0],this['_handler']);else{if(_0x47431e[_0x447301(0x43f)]!==0x0){const _0x58acae=this[_0x447301(0xf1)]['createInstance'](_0x5f011e,this[_0x447301(0x2ba)],this[_0x447301(0x17b)],_0x47431e,this[_0x447301(0x473)]);_0x58acae[_0x447301(0x478)](),_0x89d84=_0x58acae;}else _0x89d84=this[_0x447301(0xf1)][_0x447301(0xb4)](_0x333ccd,this['unitID'],this[_0x447301(0x17b)],this[_0x447301(0x473)]);}}return _0x89d84['_updateLocalCache'](),_0x89d84;}catch(_0x13f2dd){return this[_0x447301(0x3df)][_0x447301(0x302)](_0x447301(0x2cc),_0x447301(0x360),_0x13f2dd),this['_injector']['createInstance'](_0x24fcd1,this['unitID'],this[_0x447301(0x17b)],this[_0x447301(0x446)],this[_0x447301(0x289)],this[_0x447301(0x473)],!0x1);}}['resend'](){const _0x5ae767=_0x36f281;throw new Error(_0x5ae767(0x2e3));}[_0x36f281(0xca)](_0x26138d){const _0x38dd37=_0x36f281;return this[_0x38dd37(0x289)]['push'](_0x26138d),this;}[_0x36f281(0x271)](_0x37a742){const _0x1c2d45=_0x36f281;return this[_0x1c2d45(0x439)][_0x1c2d45(0x43c)](_0x37a742),this;}[_0x36f281(0x238)](_0x3b7ac9){const _0x2f6fd0=_0x36f281;if(this[_0x2f6fd0(0x446)])return this[_0x2f6fd0(0x4c5)]=this[_0x2f6fd0(0x446)],this['_awaitingChangeset']=null,this;throw new Error(_0x2f6fd0(0x161));}[_0x36f281(0x143)](_0x3a32ae){const _0x1fa43d=_0x36f281;return this[_0x1fa43d(0x343)](!!(_0x3a32ae!=null&&_0x3a32ae[_0x1fa43d(0x1ef)]));}[_0x36f281(0x40b)](){const _0x1286af=_0x36f281;return this[_0x1286af(0xf1)]['createInstance'](_0x4519aa,this[_0x1286af(0x2ba)],this['type'],this[_0x1286af(0x446)],this['_pendingMutations'],this[_0x1286af(0x473)]);}[_0x36f281(0x400)](){return this;}['_onConflict'](_0x3413eb){const _0xca43ec=_0x36f281;return this[_0xca43ec(0xf1)][_0xca43ec(0xb4)](_0x24fcd1,this[_0xca43ec(0x2ba)],this[_0xca43ec(0x17b)],this[_0xca43ec(0x446)],this[_0xca43ec(0x289)],this[_0xca43ec(0x473)],_0x3413eb);}};_0x486ba5=_0x1a64a2([_0x418d5f(0x7,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0xa8)])),_0x418d5f(0x8,_0x593949['Inject'](_0x4968b4[_0x36f281(0xe5)])),_0x418d5f(0x9,_0x593949[_0x36f281(0xb9)](_0x4238fe[_0x36f281(0xd2)])),_0x418d5f(0xa,_0x593949['ILogService']),_0x418d5f(0xb,_0x593949[_0x36f281(0x38d)]),_0x418d5f(0xc,_0x593949[_0x36f281(0x3d1)]),_0x418d5f(0xd,_0x4968b4['ITransformService'])],_0x486ba5);function _0x4d8d4e(_0x346e58,_0x5b5882,_0x4aa32c,_0x30d623,_0x220a6a,_0x1f1b60){const _0x26cefb=_0x36f281;return _0x30d623&&_0x220a6a[_0x26cefb(0x43f)]?_0x346e58[_0x26cefb(0xb4)](_0x165ad8,_0x5b5882,_0x4aa32c,_0x30d623,_0x220a6a,_0x1f1b60):_0x30d623?_0x346e58[_0x26cefb(0xb4)](_0x5165c0,_0x5b5882,_0x4aa32c,_0x30d623,_0x1f1b60):_0x220a6a['length']?_0x346e58[_0x26cefb(0xb4)](_0x5f011e,_0x5b5882,_0x4aa32c,_0x220a6a,_0x1f1b60):_0x346e58[_0x26cefb(0xb4)](_0x333ccd,_0x5b5882,_0x4aa32c,_0x1f1b60);}var _0x670b4=Object[_0x36f281(0x49a)],_0x2c911d=Object[_0x36f281(0x381)],_0x220de1=(_0x3beece,_0x353f56,_0x4bab18,_0x2f0dcc)=>{for(var _0x2cba5b=_0x2f0dcc>0x1?void 0x0:_0x2f0dcc?_0x2c911d(_0x353f56,_0x4bab18):_0x353f56,_0x57dc51=_0x3beece['length']-0x1,_0x1d1762;_0x57dc51>=0x0;_0x57dc51--)(_0x1d1762=_0x3beece[_0x57dc51])&&(_0x2cba5b=(_0x2f0dcc?_0x1d1762(_0x353f56,_0x4bab18,_0x2cba5b):_0x1d1762(_0x2cba5b))||_0x2cba5b);return _0x2f0dcc&&_0x2cba5b&&_0x670b4(_0x353f56,_0x4bab18,_0x2cba5b),_0x2cba5b;},_0x3d2353=(_0x34e84b,_0x35b4e2)=>(_0x276307,_0x68127f)=>_0x35b4e2(_0x276307,_0x68127f,_0x34e84b);_0x4238fe['CollaborationEntity']=class extends _0x593949[_0x36f281(0x130)]{constructor(_0x26ed7e,_0x5cfe36,_0x32c0e1,_0xaf57ea,_0x2eb07b,_0x256b2d,_0xe2eb97,_0x40e780,_0x29f02b,_0x28a4a3,_0xabcbde,_0x198afa,_0x367ea5){const _0x45aa5e=_0x36f281;super(),_0x3e0772(this,_0x45aa5e(0x16f),new _0x30c949[(_0x45aa5e(0x2f9))](null)),_0x3e0772(this,_0x45aa5e(0x3f6),this['_state$'][_0x45aa5e(0x13a)]()),_0x3e0772(this,_0x45aa5e(0x3b5)),_0x3e0772(this,_0x45aa5e(0x27e),!0x1),_0x3e0772(this,_0x45aa5e(0x3d6),''),_0x3e0772(this,_0x45aa5e(0x236),0x0),_0x3e0772(this,'status$',this[_0x45aa5e(0x3f6)]['pipe'](_0x30c949['map'](_0x45dfb6=>_0x45dfb6?_0x45dfb6[_0x45aa5e(0x339)]:_0x2d65dc[_0x45aa5e(0x4eb)]),_0x30c949[_0x45aa5e(0x33e)](0x1))),_0x3e0772(this,'_transitionLocked',!0x1),_0x3e0772(this,_0x45aa5e(0x376),[]),(this[_0x45aa5e(0x2ba)]=_0x26ed7e,this[_0x45aa5e(0x3b4)]=_0x5cfe36,this[_0x45aa5e(0x30e)]=_0x32c0e1,this[_0x45aa5e(0xf1)]=_0xaf57ea,this[_0x45aa5e(0xfc)]=_0x2eb07b,this[_0x45aa5e(0x30b)]=_0x256b2d,this[_0x45aa5e(0x36f)]=_0xe2eb97,this['_revisionService']=_0x40e780,this['_logService']=_0x29f02b,this[_0x45aa5e(0x265)]=_0x28a4a3,this[_0x45aa5e(0xf9)]=_0xabcbde,this[_0x45aa5e(0x397)]=_0x198afa,this[_0x45aa5e(0xb2)]=_0x367ea5);}get['state'](){const _0x14a5be=_0x36f281;return this[_0x14a5be(0x3b5)];}async[_0x36f281(0x2bb)](){const _0x3482c3=_0x36f281;if(this[_0x3482c3(0xba)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x3482c3(0x3b6)]();}['pauseCollaboration'](){return this['_collaborationPaused']=!0x0,_0x593949['toDisposable'](()=>{const _0x528c3c=_0x4c16;this['_collaborationPaused']=!0x1,this[_0x528c3c(0x2a7)]();});}['_updateState'](_0x17bb8d){const _0x13a181=_0x36f281;this[_0x13a181(0x3b5)]=_0x17bb8d,this[_0x13a181(0x16f)][_0x13a181(0x4e6)](_0x17bb8d);}async[_0x36f281(0x3b6)](){const _0x147b98=_0x36f281;var _0x1b0e92;this['_updateState'](await this[_0x147b98(0x21f)]()),this[_0x147b98(0xb2)]&&((_0x1b0e92=this['_singleActiveUnitService'])==null||_0x1b0e92[_0x147b98(0x32a)](this['unitID']),this[_0x147b98(0x196)](this[_0x147b98(0xb2)][_0x147b98(0xd9)](this['unitID'])['subscribe'](_0x3cc1ee=>{const _0x5d3fc8=_0x147b98;this[_0x5d3fc8(0x3df)][_0x5d3fc8(0x177)](_0x5d3fc8(0x1eb),'editing\x20status\x20changed\x20to',_0x3cc1ee),_0x3cc1ee===_0x3e0c16[_0x5d3fc8(0x4c2)]?(this[_0x5d3fc8(0xf9)][_0x5d3fc8(0x348)]({'content':this[_0x5d3fc8(0x36f)]['t'](_0x5d3fc8(0x2a2)),'type':_0x2b27fc[_0x5d3fc8(0x1ae)]['Warning']}),this['_permissionService'][_0x5d3fc8(0x1ee)](new _0xec6805[(_0x5d3fc8(0x1d2))](this[_0x5d3fc8(0x2ba)])['id'],!0x1)):this[_0x5d3fc8(0x397)][_0x5d3fc8(0x1ee)](new _0xec6805[(_0x5d3fc8(0x1d2))](this['unitID'])['id'],!0x0);})));let _0x3cc0bd=!0x1;return this[_0x147b98(0x196)](this[_0x147b98(0x3b4)][_0x147b98(0x45c)][_0x147b98(0x188)](_0x33a102=>{const _0x5f0ac5=_0x147b98;_0x33a102===_0x108499[_0x5f0ac5(0x2af)]?this[_0x5f0ac5(0x1fc)](_0x3cc0bd):_0x33a102===_0x108499[_0x5f0ac5(0x4eb)]&&(_0x3cc0bd=!0x0,this[_0x5f0ac5(0x1a9)]());})),this[_0x147b98(0x196)](this['session'][_0x147b98(0x44d)]['subscribe'](_0x52055c=>{const _0x162549=_0x147b98;try{switch(_0x52055c['eventID']){case _0x4968b4[_0x162549(0xbc)]['NEW_CHANGESETS']:{this[_0x162549(0x300)](_0x4968b4['parseProtocolChangeset'](_0x52055c[_0x162549(0x298)]));break;}case _0x4968b4[_0x162549(0xbc)]['CHANGESET_ACK']:{this[_0x162549(0x467)](_0x52055c[_0x162549(0x298)]);break;}case _0x4968b4[_0x162549(0xbc)][_0x162549(0x1f9)]:{this['_onRemoteRejected']();break;}case _0x4968b4[_0x162549(0xbc)][_0x162549(0x48d)]:{this[_0x162549(0xf2)](_0x52055c['data'][_0x162549(0x46a)][_0x162549(0x1de)](_0xfd94b1=>_0x4968b4[_0x162549(0x157)](_0xfd94b1)));break;}case _0x4968b4[_0x162549(0xbc)][_0x162549(0x4c3)]:this[_0x162549(0xb0)]({'isPermissionRej':!0x0});}}catch(_0x4d909c){throw console[_0x162549(0x302)](_0x162549(0x458),_0x4d909c),_0x4d909c;}})),this[_0x147b98(0x3b5)];}[_0x36f281(0x28b)](){const _0x2c0a65=_0x36f281;this[_0x2c0a65(0x371)]=!0x1;}['_lockTransition'](){const _0x497b09=_0x36f281;if(this[_0x497b09(0x371)])throw new Error(_0x497b09(0x493));this['_transitionLocked']=!0x0;}[_0x36f281(0x388)](_0x39b1b1){const _0x3d63e1=_0x36f281;this[_0x3d63e1(0x30c)](),this[_0x3d63e1(0x4b8)](this['_state'][_0x3d63e1(0xca)](_0x39b1b1)),this[_0x3d63e1(0x28b)]();}[_0x36f281(0x300)](_0x375f3d){const _0xe0f96a=_0x36f281;if(!(_0x375f3d[_0xe0f96a(0x320)]<=this[_0xe0f96a(0x237)][_0xe0f96a(0x1fb)](this[_0xe0f96a(0x2ba)]))){if(this[_0xe0f96a(0x27e)]){this[_0xe0f96a(0x376)][_0xe0f96a(0x43c)](_0x375f3d);return;}this[_0xe0f96a(0x23f)](_0x375f3d);}}[_0x36f281(0x2a7)](){const _0x4eaf79=_0x36f281;this['_remoteChangesetQueue']['forEach'](_0xa4ad1b=>this[_0x4eaf79(0x23f)](_0xa4ad1b)),this[_0x4eaf79(0x376)]=[];}[_0x36f281(0x23f)](_0x5e9b9c){const _0x57a7c4=_0x36f281,_0xe04b13=this['_compressMutationService'][_0x57a7c4(0x121)]['fetchThroughInterceptors'](this[_0x57a7c4(0x30b)][_0x57a7c4(0x121)][_0x57a7c4(0xee)]()[_0x57a7c4(0x336)])(_0x5e9b9c[_0x57a7c4(0x152)],null)||_0x5e9b9c['mutations'],_0x5dfdd4={..._0x5e9b9c,'mutations':_0xe04b13};this[_0x57a7c4(0x30c)](),this[_0x57a7c4(0x4b8)](this['_state'][_0x57a7c4(0x271)](_0x5dfdd4)),this['_unlockTransition']();}[_0x36f281(0x467)](_0x36c5f8){const _0x1f70cb=_0x36f281;this[_0x1f70cb(0x30c)](),this[_0x1f70cb(0x4b8)](this[_0x1f70cb(0x3b5)][_0x1f70cb(0x238)](_0x36c5f8)),this['_unlockTransition']();}['_onRemoteRejected'](_0x2f5eff){const _0x2e6409=_0x36f281;this[_0x2e6409(0x30c)](),this['_updateState'](this[_0x2e6409(0x3b5)][_0x2e6409(0x143)](_0x2f5eff)),this[_0x2e6409(0x28b)]();}[_0x36f281(0xf2)](_0x165107){const _0xa3e221=_0x36f281;if(!(this[_0xa3e221(0x3b5)]instanceof _0x486ba5))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0xd44b21=_0x165107[_0xa3e221(0x1de)](_0x52c932=>{const _0x3603cb=_0xa3e221,_0x5c0af0=this[_0x3603cb(0x30b)][_0x3603cb(0x121)][_0x3603cb(0x34c)](this[_0x3603cb(0x30b)][_0x3603cb(0x121)][_0x3603cb(0xee)]()[_0x3603cb(0x336)])(_0x52c932[_0x3603cb(0x152)],null)||_0x52c932[_0x3603cb(0x152)];return{..._0x52c932,'mutations':_0x5c0af0};});this['_lockTransition'](),this[_0xa3e221(0x4b8)](this['_state']['onMissedChangesetFetched'](_0xd44b21)),this[_0xa3e221(0x28b)]();}['_toggleOffline'](){const _0x5e7fc8=_0x36f281;this[_0x5e7fc8(0x30c)](),this[_0x5e7fc8(0x4b8)](this['_state'][_0x5e7fc8(0x40b)]()),this[_0x5e7fc8(0x28b)]();}[_0x36f281(0x1fc)](_0x4a2c38=!0x1){const _0x13e9dd=_0x36f281;this[_0x13e9dd(0x30c)](),this[_0x13e9dd(0x4b8)](this['_state'][_0x13e9dd(0x400)]()),this[_0x13e9dd(0x28b)]();const _0x3e88c9=this[_0x13e9dd(0x3b5)];_0x4a2c38&&_0x3e88c9 instanceof _0x333ccd&&(this[_0x13e9dd(0x30c)](),this[_0x13e9dd(0x4b8)](_0x3e88c9[_0x13e9dd(0x492)]()),this[_0x13e9dd(0x28b)]());}async[_0x36f281(0x21f)](){return new Promise(_0x4b6ffe=>{const _0x11acd2=_0x4c16;this[_0x11acd2(0x3b4)][_0x11acd2(0x45c)][_0x11acd2(0x49c)](_0x30c949[_0x11acd2(0x477)](0x1))['subscribe'](async _0x1f33c6=>{const _0x1b7271=_0x11acd2;_0x4b6ffe(await this[_0x1b7271(0x47d)](_0x1f33c6===_0x108499['ONLINE']));});});}['_createHandler'](){const _0x11225e=_0x36f281,_0x11e877=this[_0x11225e(0x2ba)];return{'onStateChange':(_0x4038d9,_0x7d182c)=>{const _0x547d9a=_0x11225e;if(_0x4038d9!==this[_0x547d9a(0x3b5)])throw new Error(_0x547d9a(0x127)+_0x4038d9[_0x547d9a(0x339)]+'\x0aAfter:\x20'+_0x7d182c['status']+_0x547d9a(0x42a)+this[_0x547d9a(0x3b5)]['status']);this[_0x547d9a(0x4b8)](_0x7d182c);},'onSendChangeset':_0x25c6e6=>{const _0x127e0b=_0x11225e;_0x25c6e6[_0x127e0b(0x151)]||(_0x25c6e6[_0x127e0b(0x151)]=this['_changesetSessionId'],_0x25c6e6[_0x127e0b(0x25a)]=++this[_0x127e0b(0x236)]);const _0x24692a={'eventID':_0x4968b4[_0x127e0b(0xbc)][_0x127e0b(0x1f8)],'data':{'unitID':_0x25c6e6[_0x127e0b(0x2ba)],'unitType':this[_0x127e0b(0x30e)],'changeset':_0x25c6e6,'memberID':this[_0x127e0b(0x3b4)][_0x127e0b(0x391)]()}};this['session']['send'](_0x24692a,this[_0x127e0b(0x2ba)]);},'onMissingChangesets':({from:_0x737fc6,to:_0x35ff8d})=>{const _0x365e75=_0x11225e;this[_0x365e75(0x3df)][_0x365e75(0x177)](_0x365e75(0x1eb),_0x365e75(0x390)+_0x737fc6+_0x365e75(0x337)+_0x35ff8d);const _0x5d4407={'eventID':_0x4968b4['CollaborationEvent'][_0x365e75(0x318)],'data':{'unitID':_0x11e877,'unitType':this['_type'],'from':_0x737fc6,'to':_0x35ff8d}};this[_0x365e75(0x3b4)][_0x365e75(0x4ce)](_0x5d4407,this['unitID']);}};}async['_createInitialStateImpl'](_0x3fa656){const _0x4b4f20=_0x36f281;var _0x1c52ff,_0x236a9f;const _0x5d2e8e=await this[_0x4b4f20(0xfc)][_0x4b4f20(0x453)](this['unitID']),_0x3c8ab1=(_0x1c52ff=_0x5d2e8e==null?void 0x0:_0x5d2e8e[_0x4b4f20(0x152)])!=null?_0x1c52ff:[],_0x2ab73c=(_0x236a9f=_0x5d2e8e==null?void 0x0:_0x5d2e8e[_0x4b4f20(0x32b)])!=null?_0x236a9f:null,_0x5724a3=!!(_0x2ab73c!=null&&_0x2ab73c[_0x4b4f20(0x151)])&&!!(_0x2ab73c!=null&&_0x2ab73c[_0x4b4f20(0x25a)]);this['_changesetSessionId']=_0x5724a3?_0x2ab73c[_0x4b4f20(0x151)]:_0x1b3228(),this[_0x4b4f20(0x236)]=_0x5724a3?_0x2ab73c[_0x4b4f20(0x25a)]:0x0;const _0x361eec=this[_0x4b4f20(0x2ba)];try{this[_0x4b4f20(0x4da)](_0x2ab73c,_0x3c8ab1);}catch(_0x228ad3){this[_0x4b4f20(0x3df)]['error'](_0x228ad3);}const _0x2eac9d=this[_0x4b4f20(0x20f)]();if(_0x3fa656){const _0x1f1746=_0x4d8d4e(this[_0x4b4f20(0xf1)],_0x361eec,this[_0x4b4f20(0x30e)],_0x2ab73c,_0x3c8ab1,_0x2eac9d);return _0x1f1746 instanceof _0x5f011e?_0x1f1746[_0x4b4f20(0x478)]():(_0x1f1746 instanceof _0x165ad8||_0x1f1746 instanceof _0x5165c0)&&_0x1f1746[_0x4b4f20(0x39c)](),_0x1f1746;}return this[_0x4b4f20(0xf1)][_0x4b4f20(0xb4)](_0x4519aa,_0x361eec,this[_0x4b4f20(0x30e)],_0x2ab73c,_0x3c8ab1,_0x2eac9d);}['_replayCachedMutations'](_0x44c5bd,_0x59d8fb){const _0x5b8907=_0x36f281;var _0x4782b6,_0x481dd0;const _0x36f288=this['_compressMutationService'][_0x5b8907(0x121)][_0x5b8907(0x34c)](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0x5b8907(0x336)]);(_0x4782b6=_0x36f288((_0x44c5bd==null?void 0x0:_0x44c5bd[_0x5b8907(0x152)])||[],null))==null||_0x4782b6[_0x5b8907(0x2a0)](_0x3730f6=>this[_0x5b8907(0x265)][_0x5b8907(0x420)](_0x3730f6['id'],_0x3730f6['params'])),(_0x481dd0=_0x36f288(_0x59d8fb||[],null))==null||_0x481dd0[_0x5b8907(0x2a0)](_0x35faaa=>this['_commandService'][_0x5b8907(0x420)](_0x35faaa['id'],_0x35faaa[_0x5b8907(0x2c8)]));}},_0x4238fe[_0x36f281(0xe6)]=_0x220de1([_0x3d2353(0x3,_0x593949['Inject'](_0x593949['Injector'])),_0x3d2353(0x4,_0x593949[_0x36f281(0xb9)](_0x4238fe[_0x36f281(0xd2)])),_0x3d2353(0x5,_0x593949[_0x36f281(0xb9)](_0x4968b4['CompressMutationService'])),_0x3d2353(0x6,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0x2bc)])),_0x3d2353(0x7,_0x593949['Inject'](_0x4968b4[_0x36f281(0xe5)])),_0x3d2353(0x8,_0x593949['ILogService']),_0x3d2353(0x9,_0x593949[_0x36f281(0x38d)]),_0x3d2353(0xa,_0xc44033[_0x36f281(0x2d6)]),_0x3d2353(0xb,_0x593949['IPermissionService']),_0x3d2353(0xc,_0x593949[_0x36f281(0xc8)](_0x34b236))],_0x4238fe[_0x36f281(0xe6)]),_0x4238fe[_0x36f281(0x11f)]=class extends _0x4238fe[_0x36f281(0xe6)]{constructor(_0x2cec67,_0x2e1b7d,_0x41431b,_0x4a0fac,_0x4bea74,_0x77e0b,_0x38ab13,_0x210b29,_0x2238a0,_0x2c13e3,_0xfca7bc,_0x57cf36,_0x5891dd,_0x10b662,_0x228716,_0x4a8da3,_0x4e64f0){const _0x57e820=_0x36f281;super(_0x2cec67,_0x41431b,_0x2e1b7d,_0x4a0fac,_0x4bea74,_0x77e0b,_0x38ab13,_0x210b29,_0x5891dd,_0x10b662,_0x228716,_0x4a8da3,_0x4e64f0),this[_0x57e820(0x2ba)]=_0x2cec67,this[_0x57e820(0x17b)]=_0x2e1b7d,this[_0x57e820(0x13b)]=_0x2238a0,this[_0x57e820(0x1ab)]=_0x2c13e3,this[_0x57e820(0x304)]=_0xfca7bc,this[_0x57e820(0x25e)]=_0x57cf36;}[_0x36f281(0x20f)](){const _0x56a942=_0x36f281,_0x4c7cda=super[_0x56a942(0x20f)]();return _0x4c7cda[_0x56a942(0x452)]=_0x1a4ab8=>this['_docTransformIMECacheService'][_0x56a942(0x3cf)](_0x1a4ab8),_0x4c7cda[_0x56a942(0xb1)]=_0x1a1310=>this[_0x56a942(0x304)][_0x56a942(0x28f)](_0x1a1310),_0x4c7cda['onSyncEditingCollabCursor']=_0x30f6e0=>this[_0x56a942(0x25e)][_0x56a942(0x4c6)](_0x30f6e0),_0x4c7cda[_0x56a942(0x31c)]=_0x2db4cb=>this['_docTransformIMECacheService'][_0x56a942(0xe8)](_0x2db4cb),_0x4c7cda;}async[_0x36f281(0x3b6)](){const _0x5312e7=_0x36f281,_0x2885de=await super[_0x5312e7(0x3b6)]();return this[_0x5312e7(0x13b)][_0x5312e7(0x430)]['pipe'](_0x30c949[_0x5312e7(0x142)](this[_0x5312e7(0x4d4)]))[_0x5312e7(0x188)](_0x4f6ff7=>{const _0x452166=_0x5312e7;if(_0x4f6ff7==null)return;const {unitId:_0xe50e87,redoState:_0x16ea4d,commandId:_0x503d8d}=_0x4f6ff7;if(_0xe50e87!==this[_0x452166(0x2ba)])return;const _0x2ef758={'id':_0x503d8d,'type':_0x593949[_0x452166(0x3e6)]['MUTATION'],'params':{'unitId':_0xe50e87,'actions':_0x16ea4d[_0x452166(0x3b0)],'textRanges':null}};this[_0x452166(0x388)](_0x2ef758);}),_0x2885de;}},_0x4238fe[_0x36f281(0x11f)]=_0x220de1([_0x3d2353(0x3,_0x593949['Inject'](_0x593949['Injector'])),_0x3d2353(0x4,_0x593949[_0x36f281(0xb9)](_0x4238fe[_0x36f281(0xd2)])),_0x3d2353(0x5,_0x593949[_0x36f281(0xb9)](_0x4968b4[_0x36f281(0x4cf)])),_0x3d2353(0x6,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0x2bc)])),_0x3d2353(0x7,_0x593949['Inject'](_0x4968b4[_0x36f281(0xe5)])),_0x3d2353(0x8,_0x593949[_0x36f281(0xb9)](_0x5c6469[_0x36f281(0x1c8)])),_0x3d2353(0x9,_0x593949[_0x36f281(0xb9)](_0x249d79)),_0x3d2353(0xa,_0x593949['Inject'](_0x2ffd8e)),_0x3d2353(0xb,_0x593949[_0x36f281(0xb9)](_0x337544)),_0x3d2353(0xc,_0x593949['ILogService']),_0x3d2353(0xd,_0x593949[_0x36f281(0x38d)]),_0x3d2353(0xe,_0xc44033[_0x36f281(0x2d6)]),_0x3d2353(0xf,_0x593949[_0x36f281(0x191)]),_0x3d2353(0x10,_0x593949[_0x36f281(0xc8)](_0x34b236))],_0x4238fe['DocCollaborationEntity']),_0x4238fe[_0x36f281(0x1bc)]=class extends _0x4238fe[_0x36f281(0xe6)]{constructor(_0x3c1c05,_0x13d324,_0x217420,_0x336cc5,_0x4d16d8,_0x54cc1a,_0x29dbda,_0x405250,_0x291890,_0x40fdeb,_0x3667be,_0x5bf1f8,_0x75772e,_0x202d52){const _0x27ef71=_0x36f281;super(_0x3c1c05,_0x217420,_0x13d324,_0x336cc5,_0x4d16d8,_0x54cc1a,_0x29dbda,_0x405250,_0x40fdeb,_0x3667be,_0x5bf1f8,_0x75772e,_0x202d52),this[_0x27ef71(0x2ba)]=_0x3c1c05,this[_0x27ef71(0x17b)]=_0x13d324,this[_0x27ef71(0x4d1)]=_0x291890;}[_0x36f281(0x20f)](){const _0x18984b=_0x36f281,_0xa5af5f=super[_0x18984b(0x20f)]();return _0xa5af5f[_0x18984b(0xb1)]=_0x35bd5c=>this[_0x18984b(0x4d1)]['transformSelections'](_0x35bd5c),_0xa5af5f;}async[_0x36f281(0x3b6)](){const _0x23fab2=_0x36f281,_0x223ddf=await super[_0x23fab2(0x3b6)]();return this[_0x23fab2(0x196)](this[_0x23fab2(0x265)][_0x23fab2(0x33c)]((_0x335e5e,_0x36d62e)=>{const _0x2363ff=_0x23fab2;if(_0x335e5e[_0x2363ff(0x17b)]!==_0x593949[_0x2363ff(0x3e6)]['MUTATION']||_0x36d62e!=null&&_0x36d62e[_0x2363ff(0x399)]||_0x36d62e!=null&&_0x36d62e['onlyLocal'])return;const _0x1e30bd=_0x335e5e['params'];if((_0x1e30bd==null?void 0x0:_0x1e30bd[_0x2363ff(0x315)])!==this[_0x2363ff(0x2ba)])return;const _0x3c6471=_0x335e5e,_0x49af38=this[_0x2363ff(0x30b)][_0x2363ff(0x121)][_0x2363ff(0x34c)](this[_0x2363ff(0x30b)][_0x2363ff(0x121)][_0x2363ff(0xee)]()[_0x2363ff(0x488)])([_0x3c6471],null)||[_0x3c6471];this[_0x2363ff(0x388)](_0x49af38[0x0]);})),_0x223ddf;}},_0x4238fe[_0x36f281(0x1bc)]=_0x220de1([_0x3d2353(0x3,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0xa8)])),_0x3d2353(0x4,_0x593949[_0x36f281(0xb9)](_0x4238fe[_0x36f281(0xd2)])),_0x3d2353(0x5,_0x593949[_0x36f281(0xb9)](_0x4968b4[_0x36f281(0x4cf)])),_0x3d2353(0x6,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0x2bc)])),_0x3d2353(0x7,_0x593949['Inject'](_0x4968b4[_0x36f281(0xe5)])),_0x3d2353(0x8,_0x593949[_0x36f281(0xb9)](_0x29a18f)),_0x3d2353(0x9,_0x593949[_0x36f281(0x380)]),_0x3d2353(0xa,_0x593949[_0x36f281(0x38d)]),_0x3d2353(0xb,_0xc44033[_0x36f281(0x2d6)]),_0x3d2353(0xc,_0x593949[_0x36f281(0x191)]),_0x3d2353(0xd,_0x593949[_0x36f281(0xc8)](_0x34b236))],_0x4238fe[_0x36f281(0x1bc)]);var _0x167169=Object['defineProperty'],_0x1723ad=Object[_0x36f281(0x381)],_0x2df128=(_0x2fcbd3,_0x3e6266,_0x4c5e78,_0x5ad821)=>{const _0x799e1f=_0x36f281;for(var _0x656052=_0x5ad821>0x1?void 0x0:_0x5ad821?_0x1723ad(_0x3e6266,_0x4c5e78):_0x3e6266,_0x2cba86=_0x2fcbd3[_0x799e1f(0x43f)]-0x1,_0x9a26f9;_0x2cba86>=0x0;_0x2cba86--)(_0x9a26f9=_0x2fcbd3[_0x2cba86])&&(_0x656052=(_0x5ad821?_0x9a26f9(_0x3e6266,_0x4c5e78,_0x656052):_0x9a26f9(_0x656052))||_0x656052);return _0x5ad821&&_0x656052&&_0x167169(_0x3e6266,_0x4c5e78,_0x656052),_0x656052;},_0x33b5f1=(_0x1c917f,_0x4ea40b)=>(_0x40fc0,_0xfda460)=>_0x4ea40b(_0x40fc0,_0xfda460,_0x1c917f);_0x4238fe[_0x36f281(0x373)]=class extends _0x593949[_0x36f281(0x130)]{constructor(_0xd38ed6,_0x4ba227,_0x3d0dc2){const _0x443cd2=_0x36f281;super(),_0x3e0772(this,'_entities',new Map()),_0x3e0772(this,_0x443cd2(0x344),new _0x30c949['Subject']()),(this[_0x443cd2(0xf1)]=_0xd38ed6,this[_0x443cd2(0x129)]=_0x4ba227,this[_0x443cd2(0x276)]=_0x3d0dc2,this['_init']());}['dispose'](){const _0x541432=_0x36f281;super['dispose'](),this[_0x541432(0x11d)][_0x541432(0x2a0)](_0x23e797=>_0x23e797[_0x541432(0x1e6)]()),this[_0x541432(0x11d)][_0x541432(0x3dd)]();}[_0x36f281(0x47a)](_0x4e2eca){const _0x2b9f1a=_0x36f281;var _0x367457;return(_0x367457=this[_0x2b9f1a(0x11d)][_0x2b9f1a(0x14e)](_0x4e2eca))!=null?_0x367457:null;}[_0x36f281(0x1e3)](_0xee5c18){const _0x131455=_0x36f281,_0x83c5f4=this['getCollabEntity'](_0xee5c18);return _0x83c5f4?_0x30c949['of'](_0x83c5f4):this[_0x131455(0x344)][_0x131455(0x49c)](_0x218e56[_0x131455(0x218)](_0x26f982=>_0x26f982['unitID']===_0xee5c18));}[_0x36f281(0x3b6)](){const _0x4d529b=_0x36f281;this[_0x4d529b(0x276)]['getTypeOfUnitAdded$'](_0x593949['UniverInstanceType'][_0x4d529b(0x12e)])[_0x4d529b(0x49c)](_0x30c949['takeUntil'](this['dispose$']),_0x218e56[_0x4d529b(0x35e)](0x10))['subscribe'](async _0x30f206=>{const _0x2df253=_0x4d529b,_0x3f553d=_0x30f206['getUnitId'](),_0x1b790e=await this[_0x2df253(0x23b)](_0x3f553d,_0x4775b3[_0x2df253(0x12e)]);this[_0x2df253(0x11d)][_0x2df253(0x2bd)](_0x3f553d,_0x1b790e);}),this['_univerInstanceService'][_0x4d529b(0x19c)](_0x593949['UniverInstanceType'][_0x4d529b(0x4e1)])[_0x4d529b(0x49c)](_0x30c949[_0x4d529b(0x142)](this[_0x4d529b(0x4d4)]),_0x218e56['delay'](0x10))[_0x4d529b(0x49c)](_0x218e56['filter'](_0x479b01=>!_0x479b01[_0x4d529b(0x4c0)]()[_0x4d529b(0x1e7)]('__')))['subscribe'](async _0x1b9bb4=>{const _0x5834f5=_0x4d529b,_0x1f3cbf=_0x1b9bb4[_0x5834f5(0x4c0)](),_0x2c2ac=await this[_0x5834f5(0x23b)](_0x1f3cbf,_0x4775b3[_0x5834f5(0x4e1)]);this['_entities'][_0x5834f5(0x2bd)](_0x1f3cbf,_0x2c2ac);}),_0x30c949[_0x4d529b(0x27f)](this[_0x4d529b(0x276)][_0x4d529b(0x27a)](_0x593949['UniverInstanceType'][_0x4d529b(0x12e)]),this[_0x4d529b(0x276)][_0x4d529b(0x27a)](_0x593949[_0x4d529b(0xaf)]['UNIVER_DOC']))['pipe'](_0x30c949['takeUntil'](this[_0x4d529b(0x4d4)]))[_0x4d529b(0x188)](_0x2d09e3=>{const _0x54e5e6=_0x4d529b,_0x4c2b57=_0x2d09e3[_0x54e5e6(0x4c0)](),_0x4be5ff=this[_0x54e5e6(0x11d)][_0x54e5e6(0x14e)](_0x4c2b57);_0x4be5ff&&(_0x4be5ff[_0x54e5e6(0x1e6)](),this[_0x54e5e6(0x11d)]['delete'](_0x4c2b57));});}async['_startCollaboration'](_0x4dff58,_0x1aa679){const _0x3c2f13=_0x36f281,_0x46e037=await this['_collabSessionService'][_0x3c2f13(0x296)](_0x4dff58),_0x2f4764=this['_injector'][_0x3c2f13(0xb4)](this['_getCtorByUniverType'](_0x1aa679),_0x4dff58,_0x1aa679,_0x46e037);return await _0x2f4764[_0x3c2f13(0x2bb)](),this[_0x3c2f13(0x344)][_0x3c2f13(0x4e6)](_0x2f4764),_0x2f4764;}[_0x36f281(0x41b)](_0x3069f0){const _0x576d9d=_0x36f281;switch(_0x3069f0){case _0x4775b3['UNIVER_DOC']:return _0x4238fe['DocCollaborationEntity'];case _0x4775b3[_0x576d9d(0x12e)]:return _0x4238fe['SheetCollaborationEntity'];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x3069f0);}}},_0x4238fe['CollaborationController']=_0x2df128([_0x33b5f1(0x0,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0xa8)])),_0x33b5f1(0x1,_0x593949[_0x36f281(0xb9)](_0x4238fe[_0x36f281(0x370)])),_0x33b5f1(0x2,_0x593949[_0x36f281(0x1dc)])],_0x4238fe[_0x36f281(0x373)]);const _0xcf1d41=[_0x36f281(0x1e9),'jiqing500',_0x36f281(0x18a),'red300',_0x36f281(0x2eb),'gold400'];class _0x5d0f13 extends _0x593949['Disposable']{constructor(){const _0x5c9cf7=_0x36f281;super(...arguments),_0x3e0772(this,_0x5c9cf7(0x20b),new Map()),_0x3e0772(this,'_colorIndex',0x0);}[_0x36f281(0x111)](_0x40f67b){const _0x89e2c8=_0x36f281;if(this[_0x89e2c8(0x20b)][_0x89e2c8(0x1f2)](_0x40f67b))return this[_0x89e2c8(0x20b)][_0x89e2c8(0x14e)](_0x40f67b);const _0x247f39=_0xcf1d41[this['_colorIndex']];return this[_0x89e2c8(0x290)]=(this[_0x89e2c8(0x290)]+0x1)%_0xcf1d41[_0x89e2c8(0x43f)],this[_0x89e2c8(0x20b)][_0x89e2c8(0x2bd)](_0x40f67b,_0x247f39),_0x247f39;}}var _0x6a9dd6=Object[_0x36f281(0x49a)],_0x49738b=Object['getOwnPropertyDescriptor'],_0x281bab=(_0x2bb776,_0x4a970f,_0x103c51,_0x51b5d9)=>{const _0xd243a8=_0x36f281;for(var _0x48dbbb=_0x51b5d9>0x1?void 0x0:_0x51b5d9?_0x49738b(_0x4a970f,_0x103c51):_0x4a970f,_0x2cfff2=_0x2bb776[_0xd243a8(0x43f)]-0x1,_0x53d7a6;_0x2cfff2>=0x0;_0x2cfff2--)(_0x53d7a6=_0x2bb776[_0x2cfff2])&&(_0x48dbbb=(_0x51b5d9?_0x53d7a6(_0x4a970f,_0x103c51,_0x48dbbb):_0x53d7a6(_0x48dbbb))||_0x48dbbb);return _0x51b5d9&&_0x48dbbb&&_0x6a9dd6(_0x4a970f,_0x103c51,_0x48dbbb),_0x48dbbb;},_0x1bee55=(_0x3259a3,_0x518a3d)=>(_0x4f7c58,_0x222892)=>_0x518a3d(_0x4f7c58,_0x222892,_0x3259a3);const _0x16296b=0x12c,_0x345133=0x64;let _0x3353fc=class extends _0x593949[_0x36f281(0x130)]{constructor(_0x5cfa84,_0x4b7016,_0x4a1d8b,_0x369efc,_0x6aa3a2,_0x51526f,_0x3cd3d1,_0x16530f,_0x5b4645){const _0x419366=_0x36f281;super(),_0x3e0772(this,'_online',!0x1),_0x3e0772(this,_0x419366(0x3b6),!0x1),_0x3e0772(this,'_cursorInfo$',new _0x30c949[(_0x419366(0x2f9))](new Map())),_0x3e0772(this,'cursorInfo$',this[_0x419366(0x3fb)][_0x419366(0x13a)]()),_0x3e0772(this,'_roomMembers$',new _0x30c949[(_0x419366(0x2f9))]([])),_0x3e0772(this,_0x419366(0x398),this[_0x419366(0x140)]['pipe'](_0x30c949[_0x419366(0x306)](_0x16296b))),_0x3e0772(this,'_updateLocalCursor',_0x593949[_0x419366(0x4e4)](_0xa54372=>{const _0x228a73=_0x419366,_0x4c7569={'eventID':_0x4968b4[_0x228a73(0xbc)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x228a73(0x2ba)],'memberID':this['_session'][_0x228a73(0x391)](),'selection':_0x2cec55(_0xa54372)}};this[_0x228a73(0x33f)][_0x228a73(0x4ce)](_0x4c7569,this[_0x228a73(0x2ba)]);},_0x345133)),(this[_0x419366(0x2ba)]=_0x5cfa84,this['_session']=_0x4b7016,this[_0x419366(0xf1)]=_0x4a1d8b,this[_0x419366(0x41c)]=_0x369efc,this['_memberService']=_0x6aa3a2,this[_0x419366(0x3a3)]=_0x51526f,this[_0x419366(0x496)]=_0x3cd3d1,this[_0x419366(0x276)]=_0x16530f,this[_0x419366(0x265)]=_0x5b4645);}get[_0x36f281(0x4d6)](){const _0x59a7df=_0x36f281;return this['_cursorInfo$'][_0x59a7df(0x159)]();}get[_0x36f281(0x119)](){const _0x16b1a4=_0x36f281;return this[_0x16b1a4(0x140)][_0x16b1a4(0x159)]();}[_0x36f281(0x1e6)](){const _0x41685e=_0x36f281;super[_0x41685e(0x1e6)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x41685e(0x259)](),this[_0x41685e(0x140)][_0x41685e(0x4e6)]([]),this[_0x41685e(0x140)][_0x41685e(0x259)]();}[_0x36f281(0x2bb)](){const _0x58ccd1=_0x36f281;this[_0x58ccd1(0x3b6)]||(this['_init']=!0x0,this[_0x58ccd1(0x33f)][_0x58ccd1(0x45c)]['pipe'](_0x30c949['takeUntil'](this['dispose$']))[_0x58ccd1(0x188)](_0x4855cd=>{const _0x5bd986=_0x58ccd1;_0x4855cd===_0x108499['ONLINE']?this['_toggleOnline']():this[_0x5bd986(0x1a9)]();}),this[_0x58ccd1(0x33f)]['event$']['pipe'](_0x30c949[_0x58ccd1(0x142)](this[_0x58ccd1(0x4d4)]))[_0x58ccd1(0x188)](_0x3d7f00=>{const _0x5b34de=_0x58ccd1,_0x2c13de=_0x3d7f00[_0x5b34de(0x10a)];_0x2c13de===_0x4968b4[_0x5b34de(0xbc)][_0x5b34de(0x18d)]&&this[_0x5b34de(0x27d)](_0x3d7f00),_0x2c13de===_0x4968b4[_0x5b34de(0xbc)][_0x5b34de(0x3b2)]&&this[_0x5b34de(0x206)](_0x3d7f00);}),this['disposeWithMe'](this[_0x58ccd1(0x265)]['onCommandExecuted'](_0x4278b3=>{const _0x50cf98=_0x58ccd1,_0x5a595f=_0x4278b3[_0x50cf98(0x2c8)];_0x5a595f!=null&&this['_online']&&_0x4278b3['id']===_0x4aa7be[_0x50cf98(0x4ca)]['id']&&_0x5a595f[_0x50cf98(0x315)]===this[_0x50cf98(0x2ba)]&&_0x5a595f['isEditing']===!0x1&&this['_updateLocalCursor'](_0x5a595f[_0x50cf98(0x1f5)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x58ccd1(0x49c)](_0x30c949[_0x58ccd1(0x142)](this['dispose$']))[_0x58ccd1(0x188)](_0x2c9b73=>{const _0x1353a4=_0x58ccd1;if((_0x2c9b73==null?void 0x0:_0x2c9b73[_0x1353a4(0x2ba)])!==this['unitID'])return;const _0x385597={'eventID':_0x4968b4[_0x1353a4(0xbc)]['UPDATE_CURSOR'],'data':_0x2c9b73};this['_onCursorUpdate'](_0x385597);}),this['disposeWithMe'](this[_0x58ccd1(0x265)]['onCommandExecuted'](_0x38edc0=>{const _0x524ea2=_0x58ccd1;if(_0x38edc0['params']==null)return;const _0x5cf42f=_0x38edc0[_0x524ea2(0x2c8)];if(_0x38edc0['id']!==_0x4aa7be[_0x524ea2(0x36e)]['id']||_0x5cf42f[_0x524ea2(0x315)]!==this['unitID'])return;const _0x57f644={'id':_0x524ea2(0x19d),'params':_0x5cf42f},_0x45e658=this[_0x524ea2(0x4d6)];for(const [_0x6b4c0b,_0x5059f7]of _0x45e658){const _0x43a3f4={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x524ea2(0x2ba)],'actions':null,'textRanges':_0x5059f7[_0x524ea2(0x1f5)]}},_0x3e5ced=this['_transformService'][_0x524ea2(0x18c)](_0x57f644,_0x43a3f4,!0x1);if(_0x4968b4[_0x524ea2(0x1e1)](_0x3e5ced))throw _0x3e5ced[_0x524ea2(0x302)];_0x45e658[_0x524ea2(0x2bd)](_0x6b4c0b,{..._0x5059f7,'ranges':_0x3e5ced[_0x524ea2(0xb3)][_0x524ea2(0x2c8)][_0x524ea2(0x4cb)]});}queueMicrotask(()=>{const _0x3cb674=_0x524ea2;this['_cursorInfo$'][_0x3cb674(0x4e6)](_0x45e658);});})));}[_0x36f281(0x27d)](_0x5cb68c){const _0x18480b=_0x36f281;var _0x515c46,_0x5684f3;const {memberID:_0x4eeb96,selection:_0x455db9}=_0x5cb68c[_0x18480b(0x298)],_0x56b15b=_0x36aa49(_0x455db9),_0x41da3f=(_0x5684f3=(_0x515c46=this[_0x18480b(0x277)][_0x18480b(0x4a8)](this[_0x18480b(0x2ba)],_0x4eeb96))==null?void 0x0:_0x515c46[_0x18480b(0x4a2)])!=null?_0x5684f3:'Unknown\x20user',_0x20deaa={'color':this[_0x18480b(0x41c)][_0x18480b(0x111)](_0x4eeb96),'name':_0x41da3f,'ranges':_0x56b15b},_0x3b5066=this[_0x18480b(0x4d6)];_0x3b5066['set'](_0x4eeb96,_0x20deaa),this[_0x18480b(0x3fb)][_0x18480b(0x4e6)](_0x3b5066);}['_onCursorDelete'](_0x5f22fb){const _0x4e90d1=_0x36f281,{memberID:_0x201ce8}=_0x5f22fb['data'],_0x1c4a9f=this['cursorInfo'];_0x1c4a9f['delete'](_0x201ce8),this[_0x4e90d1(0x3fb)]['next'](_0x1c4a9f);}['_toggleOnline'](){const _0xaaa334=_0x36f281;var _0x3be34c;if(this[_0xaaa334(0x4ba)]=!0x0,((_0x3be34c=this['_univerInstanceService'][_0xaaa334(0x1f6)]())==null?void 0x0:_0x3be34c['getUnitId']())!==this[_0xaaa334(0x2ba)])return;const _0x1d7205=this['_injector']['get'](_0x4aa7be[_0xaaa334(0x46e)])[_0xaaa334(0x384)]();Array[_0xaaa334(0x10c)](_0x1d7205)&&_0x1d7205['length']>0x0&&this[_0xaaa334(0xe1)](_0x1d7205);}[_0x36f281(0x1a9)](){const _0x2d78e8=_0x36f281;this[_0x2d78e8(0x4ba)]=!0x1;}};_0x3353fc=_0x281bab([_0x1bee55(0x2,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0xa8)])),_0x1bee55(0x3,_0x593949['Inject'](_0x5d0f13)),_0x1bee55(0x4,_0x593949['Inject'](_0x40c14d)),_0x1bee55(0x5,_0x593949[_0x36f281(0xb9)](_0x337544)),_0x1bee55(0x6,_0x4968b4[_0x36f281(0x415)]),_0x1bee55(0x7,_0x593949['IUniverInstanceService']),_0x1bee55(0x8,_0x593949['ICommandService'])],_0x3353fc);var _0x1d9f75=Object[_0x36f281(0x49a)],_0x4414bb=Object['getOwnPropertyDescriptor'],_0x39b844=(_0x46865c,_0x175fa8,_0x4d2871,_0x5b4a87)=>{const _0x4a9556=_0x36f281;for(var _0x431599=_0x5b4a87>0x1?void 0x0:_0x5b4a87?_0x4414bb(_0x175fa8,_0x4d2871):_0x175fa8,_0x3e54c8=_0x46865c[_0x4a9556(0x43f)]-0x1,_0x596120;_0x3e54c8>=0x0;_0x3e54c8--)(_0x596120=_0x46865c[_0x3e54c8])&&(_0x431599=(_0x5b4a87?_0x596120(_0x175fa8,_0x4d2871,_0x431599):_0x596120(_0x431599))||_0x431599);return _0x5b4a87&&_0x431599&&_0x1d9f75(_0x175fa8,_0x4d2871,_0x431599),_0x431599;},_0x48ea6d=(_0x45e313,_0x5a9de9)=>(_0x46d533,_0x477e6e)=>_0x5a9de9(_0x46d533,_0x477e6e,_0x45e313);const _0x3e52a8=0x12c,_0x322fbb=0x64,_0x3817ab=()=>{let _0x482cbf=[],_0xf9e2b0=!0x1;return _0x3828bb=>{const _0x444026=_0x4c16;_0x482cbf[_0x444026(0x43c)](_0x3828bb),_0xf9e2b0||(_0xf9e2b0=!0x0,setTimeout(()=>{_0x482cbf['forEach'](_0x3e9b83=>_0x3e9b83()),_0x482cbf=[],_0xf9e2b0=!0x1;}));};};let _0x58677e=class extends _0x593949[_0x36f281(0x130)]{constructor(_0x71d2a3,_0x264990,_0x18276c,_0x5e9132,_0x3b41ff,_0x3a2be2,_0x4afb54,_0x587c6e){const _0x71230c=_0x36f281;super(),_0x3e0772(this,_0x71230c(0x4ba),!0x1),_0x3e0772(this,_0x71230c(0x3b6),!0x1),_0x3e0772(this,'_cursorInfo$',new _0x30c949[(_0x71230c(0x2f9))](new Map())),_0x3e0772(this,_0x71230c(0x47c),this[_0x71230c(0x3fb)][_0x71230c(0x13a)]()),_0x3e0772(this,_0x71230c(0x140),new _0x30c949[(_0x71230c(0x2f9))]([])),_0x3e0772(this,_0x71230c(0x398),this['_roomMembers$'][_0x71230c(0x49c)](_0x30c949[_0x71230c(0x306)](_0x3e52a8))),_0x3e0772(this,_0x71230c(0xe1),_0x593949[_0x71230c(0x4e4)]((_0x4c2661,_0x2eb24e)=>{const _0x1514bf=_0x71230c,_0x5902bc={'eventID':_0x4968b4[_0x1514bf(0xbc)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x1514bf(0x2ba)],'memberID':this[_0x1514bf(0x33f)][_0x1514bf(0x391)](),'selection':_0x399ee2[_0x1514bf(0x249)](_0x4c2661,_0x2eb24e['range'])}};this[_0x1514bf(0x33f)][_0x1514bf(0x4ce)](_0x5902bc,this[_0x1514bf(0x2ba)]);},_0x322fbb)),(this[_0x71230c(0x2ba)]=_0x71d2a3,this[_0x71230c(0x33f)]=_0x264990,this[_0x71230c(0xf1)]=_0x18276c,this['_colorAssignService']=_0x5e9132,this[_0x71230c(0x277)]=_0x3b41ff,this['_univerInstanceService']=_0x3a2be2,this[_0x71230c(0x265)]=_0x4afb54,this[_0x71230c(0x184)]=_0x587c6e);}get[_0x36f281(0x4d6)](){const _0x18c9aa=_0x36f281;return this[_0x18c9aa(0x3fb)][_0x18c9aa(0x159)]();}get[_0x36f281(0x119)](){const _0x4aed0b=_0x36f281;return this[_0x4aed0b(0x140)][_0x4aed0b(0x159)]();}[_0x36f281(0x1e6)](){const _0x172cae=_0x36f281;super['dispose'](),this[_0x172cae(0x3fb)][_0x172cae(0x4e6)](new Map()),this['_cursorInfo$'][_0x172cae(0x259)](),this[_0x172cae(0x140)][_0x172cae(0x4e6)]([]),this[_0x172cae(0x140)][_0x172cae(0x259)]();}['init'](){const _0x1b5e34=_0x36f281;this[_0x1b5e34(0x3b6)]||(this['_init']=!0x0,this[_0x1b5e34(0x33f)][_0x1b5e34(0x45c)][_0x1b5e34(0x49c)](_0x30c949[_0x1b5e34(0x142)](this[_0x1b5e34(0x4d4)]))['subscribe'](_0x2dad08=>{const _0x199066=_0x1b5e34;_0x2dad08===_0x108499['ONLINE']?this['_toggleOnline']():this[_0x199066(0x1a9)]();}),this[_0x1b5e34(0x33f)][_0x1b5e34(0x44d)][_0x1b5e34(0x49c)](_0x30c949['takeUntil'](this['dispose$']))[_0x1b5e34(0x188)](_0x52b9e4=>{const _0x1a0b74=_0x1b5e34,_0x37c1d7=_0x52b9e4['eventID'];_0x37c1d7===_0x4968b4[_0x1a0b74(0xbc)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x52b9e4),_0x37c1d7===_0x4968b4[_0x1a0b74(0xbc)]['USERS_LEAVE']&&this[_0x1a0b74(0x206)](_0x52b9e4);}),this[_0x1b5e34(0x325)](),this['disposeWithMe'](this[_0x1b5e34(0x265)][_0x1b5e34(0x33c)](_0x2df047=>{const _0x338d1c=_0x1b5e34;if(this[_0x338d1c(0x4ba)]&&_0x2df047['id']===_0xec6805[_0x338d1c(0x195)]['id']&&_0x2df047[_0x338d1c(0x2c8)][_0x338d1c(0x315)]===this[_0x338d1c(0x2ba)]){const _0x5b7d7d=_0x2df047[_0x338d1c(0x2c8)];this[_0x338d1c(0xe1)](_0x5b7d7d[_0x338d1c(0x4c9)],_0x5b7d7d[_0x338d1c(0x10f)][0x0]);}})));}[_0x36f281(0x27d)](_0x17b102){const _0x314e7f=_0x36f281;var _0x32d874,_0x581a9b;const {memberID:_0x56b398,selection:_0x8cbfb5}=_0x17b102[_0x314e7f(0x298)],{sheetName:_0x5d31e8,range:_0xd4f0d2}=_0x399ee2['deserializeRangeWithSheet'](_0x8cbfb5),_0x3215ef={'name':(_0x581a9b=(_0x32d874=this[_0x314e7f(0x277)][_0x314e7f(0x4a8)](this[_0x314e7f(0x2ba)],_0x56b398))==null?void 0x0:_0x32d874['name'])!=null?_0x581a9b:_0x314e7f(0x30f),'range':this[_0x314e7f(0x2b3)](_0x5d31e8,_0xd4f0d2),'sheetID':_0x5d31e8,'color':this[_0x314e7f(0x41c)]['assignAColorForMemberID'](_0x56b398),'selection':_0x8cbfb5},_0x3254aa=this[_0x314e7f(0x4d6)];_0x3254aa[_0x314e7f(0x2bd)](_0x56b398,_0x3215ef),this['_cursorInfo$']['next'](_0x3254aa);}['_onCursorDelete'](_0x3c5c86){const _0x5a9576=_0x36f281,{memberID:_0x403250}=_0x3c5c86[_0x5a9576(0x298)],_0x460741=this[_0x5a9576(0x4d6)];_0x460741['delete'](_0x403250),this[_0x5a9576(0x3fb)][_0x5a9576(0x4e6)](_0x460741);}[_0x36f281(0x2b3)](_0x579039,_0x3b2040){const _0xbeba5e=_0x36f281;var _0xbf3825,_0x23f561;const _0x4683d0=(_0x23f561=(_0xbf3825=this['_univerInstanceService'][_0xbeba5e(0x19a)](this[_0xbeba5e(0x2ba)]))==null?void 0x0:_0xbf3825[_0xbeba5e(0x16c)](_0x579039))==null?void 0x0:_0x23f561['getMergeData']();return(_0x4683d0==null?void 0x0:_0x4683d0[_0xbeba5e(0x1fd)](_0x3376b8=>_0x593949['Rectangle'][_0xbeba5e(0x2b6)](_0x3376b8,_0x3b2040)))||_0x3b2040;}[_0x36f281(0x325)](){const _0x114e1e=_0x36f281,_0x1e635c=new _0x593949[(_0x114e1e(0x182))](),_0xb518f0=_0x3817ab(),_0x1525a3=()=>{const _0x175f3b=_0x114e1e;_0x1e635c['dispose']();const _0x443a95=(_0xb95c8b,_0x553428,_0x4c8270,_0x52093a)=>{const _0x1e2140=_0x4c16;let _0x260351=[];switch(_0xb95c8b['id']){case _0xec6805[_0x1e2140(0x180)][_0x1e2140(0x406)]:{_0x260351=_0xec6805[_0x1e2140(0x2dc)](_0xb95c8b,_0x52093a);break;}case _0xec6805[_0x1e2140(0x180)][_0x1e2140(0x1ac)]:{_0x260351=_0xec6805[_0x1e2140(0x16e)](_0xb95c8b,_0x52093a);break;}case _0xec6805[_0x1e2140(0x180)][_0x1e2140(0x445)]:{_0x260351=_0xec6805[_0x1e2140(0x341)](_0xb95c8b,_0x52093a);break;}case _0xec6805[_0x1e2140(0x180)][_0x1e2140(0x4a0)]:{_0x260351=_0xec6805[_0x1e2140(0x2d4)](_0xb95c8b,_0x52093a);break;}case _0xec6805[_0x1e2140(0x180)][_0x1e2140(0x12b)]:{_0x260351=_0xec6805[_0x1e2140(0x331)](_0xb95c8b,_0x52093a);break;}case _0xec6805['EffectRefRangId']['InsertRowCommandId']:{_0x260351=_0xec6805[_0x1e2140(0x40a)](_0xb95c8b,_0x52093a);break;}case _0xec6805[_0x1e2140(0x180)]['MoveRangeCommandId']:{_0x260351=_0xec6805['handleMoveRange'](_0xb95c8b,_0x52093a);break;}case _0xec6805[_0x1e2140(0x180)][_0x1e2140(0x33d)]:{_0x260351=_0xec6805[_0x1e2140(0x38c)](_0xb95c8b,_0x52093a);break;}case _0xec6805[_0x1e2140(0x180)][_0x1e2140(0x1a0)]:{_0x260351=_0xec6805[_0x1e2140(0x1b1)](_0xb95c8b,_0x52093a);break;}}const _0x474b21=_0xec6805['runRefRangeMutations'](_0x260351,_0x52093a),_0x11909d=this['cursorInfo'][_0x1e2140(0x14e)](_0x553428);if(_0x11909d&&_0x474b21){const _0x24ca6c={..._0x11909d,'range':_0x474b21};this[_0x1e2140(0x4d6)][_0x1e2140(0x2bd)](_0x553428,_0x24ca6c),_0xb518f0(()=>{const _0x646c1a=_0x1e2140,_0x3f921c=this[_0x646c1a(0x184)]['registerRefRange'](_0x474b21,_0x520105=>(_0x3f921c[_0x646c1a(0x1e6)](),_0x443a95(_0x520105,_0x553428,_0x4c8270,_0x474b21)));_0x1e635c[_0x646c1a(0xf6)](_0x3f921c);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x175f3b(0x2a0)]((_0x5f2a14,_0x5af517)=>{const _0x1d1983=_0x175f3b,{range:_0x3bbfd0,sheetID:_0x18ca9a}=_0x5f2a14,_0x14dfad=this[_0x1d1983(0x184)][_0x1d1983(0x387)](_0x3bbfd0,_0x19ca34=>(_0x14dfad[_0x1d1983(0x1e6)](),_0x443a95(_0x19ca34,_0x5af517,_0x18ca9a,_0x3bbfd0)));_0x1e635c[_0x1d1983(0xf6)](_0x14dfad);});};this['disposeWithMe'](_0x593949['toDisposable'](this[_0x114e1e(0x3fb)]['subscribe'](()=>{_0x1525a3();})));}[_0x36f281(0x1fc)](){const _0x14b443=_0x36f281;var _0x1dd0f5,_0x127574;if(this[_0x14b443(0x4ba)]=!0x0,((_0x1dd0f5=this[_0x14b443(0x276)]['getFocusedUnit']())==null?void 0x0:_0x1dd0f5[_0x14b443(0x4c0)]())!==this[_0x14b443(0x2ba)])return;const _0x367863=(_0x127574=this[_0x14b443(0xf1)][_0x14b443(0x14e)](_0xec6805[_0x14b443(0x295)])['getCurrentSelections']())==null?void 0x0:_0x127574[0x0],_0x10be53=this[_0x14b443(0x276)][_0x14b443(0x17e)](_0x593949[_0x14b443(0xaf)]['UNIVER_SHEET'])[_0x14b443(0x49b)]();_0x367863&&_0x10be53&&this[_0x14b443(0xe1)](_0x10be53[_0x14b443(0x353)](),_0x367863);}[_0x36f281(0x1a9)](){this['_online']=!0x1;}};_0x58677e=_0x39b844([_0x48ea6d(0x2,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0xa8)])),_0x48ea6d(0x3,_0x593949['Inject'](_0x5d0f13)),_0x48ea6d(0x4,_0x593949['Inject'](_0x40c14d)),_0x48ea6d(0x5,_0x593949[_0x36f281(0x1dc)]),_0x48ea6d(0x6,_0x593949['ICommandService']),_0x48ea6d(0x7,_0x593949[_0x36f281(0xb9)](_0xec6805['RefRangeService']))],_0x58677e);var _0x483cdd=Object[_0x36f281(0x49a)],_0x516b07=Object[_0x36f281(0x381)],_0x219bc0=(_0x28978c,_0x51b5b6,_0x6e3059,_0x34a477)=>{const _0x23f572=_0x36f281;for(var _0x511b19=_0x34a477>0x1?void 0x0:_0x34a477?_0x516b07(_0x51b5b6,_0x6e3059):_0x51b5b6,_0x4ed6b9=_0x28978c[_0x23f572(0x43f)]-0x1,_0x4f743a;_0x4ed6b9>=0x0;_0x4ed6b9--)(_0x4f743a=_0x28978c[_0x4ed6b9])&&(_0x511b19=(_0x34a477?_0x4f743a(_0x51b5b6,_0x6e3059,_0x511b19):_0x4f743a(_0x511b19))||_0x511b19);return _0x34a477&&_0x511b19&&_0x483cdd(_0x51b5b6,_0x6e3059,_0x511b19),_0x511b19;},_0x247f3a=(_0x1c7a21,_0x4a6a0b)=>(_0x1cf001,_0x425725)=>_0x4a6a0b(_0x1cf001,_0x425725,_0x1c7a21);let _0x455914=class extends _0x593949[_0x36f281(0x130)]{constructor(_0x458715,_0x37d396,_0x333756){const _0xc02a3=_0x36f281;super(),_0x3e0772(this,_0xc02a3(0x11d),new Map()),_0x3e0772(this,_0xc02a3(0x344),new _0x30c949[(_0xc02a3(0x20c))]()),(this[_0xc02a3(0x276)]=_0x458715,this['_injector']=_0x37d396,this['_collabSessionService']=_0x333756,this[_0xc02a3(0x3b6)]());}[_0x36f281(0x1e6)](){const _0x303e6a=_0x36f281;super[_0x303e6a(0x1e6)](),this[_0x303e6a(0x344)][_0x303e6a(0x259)](),this[_0x303e6a(0x11d)][_0x303e6a(0x2a0)](_0x12fbd3=>_0x12fbd3['dispose']());}['getCollabCursors$'](_0x1f4aa1){const _0x1504a1=_0x36f281;return this[_0x1504a1(0x11d)]['has'](_0x1f4aa1)?this[_0x1504a1(0x11d)]['get'](_0x1f4aa1)[_0x1504a1(0x47c)]:this['_entityInit$'][_0x1504a1(0x49c)](_0x30c949[_0x1504a1(0x218)](_0x37ba47=>_0x37ba47['unitID']===_0x1f4aa1),_0x30c949['switchMap'](_0x4c61bd=>_0x4c61bd[_0x1504a1(0x47c)]));}[_0x36f281(0x3b6)](){const _0x5518cd=_0x36f281;this[_0x5518cd(0x276)][_0x5518cd(0x19c)](_0x593949['UniverInstanceType'][_0x5518cd(0x12e)])[_0x5518cd(0x49c)](_0x30c949['takeUntil'](this[_0x5518cd(0x4d4)]))[_0x5518cd(0x188)](async _0x3dbe2d=>{const _0x4dfcbd=_0x5518cd,_0x140e2b=_0x3dbe2d['getUnitId'](),_0x17259b=await this[_0x4dfcbd(0x3bc)](_0x140e2b);this['_entityInit$'][_0x4dfcbd(0x4e6)](_0x17259b),this[_0x4dfcbd(0x11d)][_0x4dfcbd(0x2bd)](_0x140e2b,_0x17259b);}),this[_0x5518cd(0x276)][_0x5518cd(0x19c)](_0x593949[_0x5518cd(0xaf)][_0x5518cd(0x4e1)])[_0x5518cd(0x49c)](_0x30c949['takeUntil'](this[_0x5518cd(0x4d4)]))['pipe'](_0x30c949['filter'](_0x24065c=>!_0x24065c['getUnitId']()[_0x5518cd(0x1e7)]('__')))['subscribe'](async _0x2dc820=>{const _0x2f99de=_0x5518cd,_0x240c80=_0x2dc820[_0x2f99de(0x4c0)](),_0x4826b2=await this[_0x2f99de(0x2c1)](_0x240c80);this[_0x2f99de(0x344)][_0x2f99de(0x4e6)](_0x4826b2),this[_0x2f99de(0x11d)][_0x2f99de(0x2bd)](_0x240c80,_0x4826b2);}),_0x30c949[_0x5518cd(0x27f)](this[_0x5518cd(0x276)][_0x5518cd(0x27a)](_0x593949[_0x5518cd(0xaf)]['UNIVER_DOC']),this[_0x5518cd(0x276)][_0x5518cd(0x27a)](_0x593949[_0x5518cd(0xaf)]['UNIVER_SHEET']))[_0x5518cd(0x49c)](_0x30c949[_0x5518cd(0x142)](this['dispose$']))[_0x5518cd(0x188)](_0x452be7=>{const _0x45549c=_0x5518cd,_0x831745=_0x452be7[_0x45549c(0x4c0)](),_0x3d350c=this[_0x45549c(0x11d)][_0x45549c(0x14e)](_0x831745);_0x3d350c&&(_0x3d350c['dispose'](),this[_0x45549c(0x11d)][_0x45549c(0x393)](_0x831745));});}async[_0x36f281(0x3bc)](_0x3bf126){const _0x11a51c=_0x36f281,_0x5d17c3=await this[_0x11a51c(0x129)][_0x11a51c(0x296)](_0x3bf126),_0x1ae8e5=this[_0x11a51c(0xf1)][_0x11a51c(0xb4)](_0x58677e,_0x3bf126,_0x5d17c3);return _0x1ae8e5[_0x11a51c(0x2bb)](),_0x1ae8e5;}async[_0x36f281(0x2c1)](_0x19e878){const _0x4925a4=_0x36f281,_0x44e459=await this[_0x4925a4(0x129)][_0x4925a4(0x296)](_0x19e878),_0x8c3331=this[_0x4925a4(0xf1)][_0x4925a4(0xb4)](_0x3353fc,_0x19e878,_0x44e459);return _0x8c3331['init'](),_0x8c3331;}};_0x455914=_0x219bc0([_0x247f3a(0x0,_0x593949['IUniverInstanceService']),_0x247f3a(0x1,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0xa8)])),_0x247f3a(0x2,_0x593949['Inject'](_0x4238fe[_0x36f281(0x370)]))],_0x455914);const _0x60143b=0x14,_0x339035=0xc8,_0x130ec4=0x4,_0x3a331a=0x5;function _0x57a00a(_0x5b2740,_0x345029){const _0x150a37=_0x36f281;let {radius:_0xe713c4,width:_0x4942f4,height:_0x212996}=_0x345029;_0xe713c4=_0xe713c4!=null?_0xe713c4:0x0,_0x4942f4=_0x4942f4!=null?_0x4942f4:0x1e,_0x212996=_0x212996!=null?_0x212996:0x1e;let _0x19fb50=0x0,_0xb67f4c=0x0,_0x20eff2=0x0;_0x19fb50=_0xb67f4c=_0x20eff2=Math[_0x150a37(0xed)](_0xe713c4,_0x4942f4/0x2,_0x212996/0x2),_0x5b2740[_0x150a37(0x432)](),_0x5b2740['moveTo'](_0x19fb50,0x0),_0x5b2740['lineTo'](_0x4942f4-_0xb67f4c,0x0),_0x5b2740[_0x150a37(0x416)](_0x4942f4-_0xb67f4c,_0xb67f4c,_0xb67f4c,Math['PI']*0x3/0x2,0x0,!0x1),_0x5b2740[_0x150a37(0x2c7)](_0x4942f4,_0x212996-_0x20eff2),_0x5b2740[_0x150a37(0x416)](_0x4942f4-_0x20eff2,_0x212996-_0x20eff2,_0x20eff2,0x0,Math['PI']/0x2,!0x1),_0x5b2740['lineTo'](0x0,_0x212996),_0x5b2740['lineTo'](0x0,_0x19fb50),_0x5b2740[_0x150a37(0x416)](_0x19fb50,_0x19fb50,_0x19fb50,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5b2740[_0x150a37(0x36c)](),_0x345029[_0x150a37(0xda)]&&(_0x5b2740[_0x150a37(0x497)](),_0x5b2740[_0x150a37(0x2c0)]=_0x345029[_0x150a37(0xda)],_0x345029[_0x150a37(0x105)]==='evenodd'?_0x5b2740[_0x150a37(0xda)](_0x150a37(0x48f)):_0x5b2740[_0x150a37(0xda)](),_0x5b2740[_0x150a37(0x212)]());}class _0xc05a02 extends _0xa07e34[_0x36f281(0x378)]{constructor(_0x331bfa,_0x2875a2){const _0x269962=_0x36f281;super(_0x331bfa,_0x2875a2),_0x3e0772(this,_0x269962(0x2a6)),_0x3e0772(this,_0x269962(0x18b)),(this[_0x269962(0x2a6)]=_0x2875a2==null?void 0x0:_0x2875a2[_0x269962(0x2a6)],this['text']=_0x2875a2==null?void 0x0:_0x2875a2[_0x269962(0x18b)]);}static[_0x36f281(0x2db)](_0x46d1d2,_0x2c1b62){const _0x568ea2=_0x36f281,{text:_0x3ef2c,color:_0x57d863}=_0x2c1b62;_0x46d1d2[_0x568ea2(0x497)](),_0x46d1d2[_0x568ea2(0x4ab)]=_0x568ea2(0x147);const _0x1b2a6c=_0x46d1d2[_0x568ea2(0x244)](_0x3ef2c)[_0x568ea2(0x19f)],_0x45d9c1=Math[_0x568ea2(0xed)](_0x1b2a6c+0x2*_0x130ec4,_0x339035);_0x57a00a(_0x46d1d2,{'height':_0x60143b,'radius':0x4,'width':_0x45d9c1,'fill':_0x57d863,'evented':!0x1}),_0x46d1d2[_0x568ea2(0x2c0)]=_0x568ea2(0x288);const _0x17af1e=_0x130ec4,_0x5bb34a=_0x60143b-_0x3a331a,_0x1199b3=_0x339035-0x2*_0x130ec4;if(_0x1b2a6c>_0x1199b3){let _0x26d1f5='',_0x2299f5=0x0;for(const _0x1ddfe8 of _0x3ef2c){const _0x43027b=_0x46d1d2[_0x568ea2(0x244)](_0x1ddfe8)[_0x568ea2(0x19f)];if(_0x2299f5+_0x43027b<=_0x1199b3-_0x46d1d2['measureText'](_0x568ea2(0x429))[_0x568ea2(0x19f)])_0x26d1f5+=_0x1ddfe8,_0x2299f5+=_0x43027b;else{_0x26d1f5+=_0x568ea2(0x429);break;}}_0x46d1d2['fillText'](_0x26d1f5,_0x17af1e,_0x5bb34a);}else _0x46d1d2[_0x568ea2(0x2fe)](_0x3ef2c,_0x17af1e,_0x5bb34a);_0x46d1d2[_0x568ea2(0x212)]();}[_0x36f281(0x264)](_0x3f8fdb){_0xc05a02['drawWith'](_0x3f8fdb,this);}}const _0x3fd1e2='collab-text-anchor-',_0xfcf932=_0x36f281(0x110),_0x5b6e09=_0x36f281(0x3c1),_0xd11e0e=0x6,_0x28f04e=1.5,_0x1aa8bf=0x4,_0x50e2ac=1.5,_0x28dfe7=_0x36f281(0x3bf);class _0x4747cd{constructor(_0x2a73e9,_0x25fffb,_0x372bdd,_0x4b7a9c){const _0x159d29=_0x36f281;_0x3e0772(this,_0x159d29(0x252),[]),_0x3e0772(this,_0x159d29(0xc4),null),_0x3e0772(this,_0x159d29(0x4e3),null),_0x3e0772(this,_0x159d29(0x47e),null),_0x3e0772(this,'_hideTimer',null),_0x3e0772(this,_0x159d29(0x293),null),(this[_0x159d29(0x329)]=_0x2a73e9,this[_0x159d29(0x39d)]=_0x25fffb,this[_0x159d29(0x3fc)]=_0x372bdd,this[_0x159d29(0x490)]=_0x4b7a9c,this['_render']());}set[_0x36f281(0x3c2)](_0x3e6152){const _0x26d97f=_0x36f281;_0x3e6152?(this[_0x26d97f(0x47e)]&&this['_anchorDot']['hide'](),this['_textBubble']&&this[_0x26d97f(0x4e3)][_0x26d97f(0x348)]()):(this[_0x26d97f(0x47e)]&&this[_0x26d97f(0x47e)][_0x26d97f(0x348)](),this[_0x26d97f(0x4e3)]&&this[_0x26d97f(0x4e3)][_0x26d97f(0x48b)]());}[_0x36f281(0x1e6)](){const _0x111ef8=_0x36f281;for(const _0x3c9b31 of this['_shapes'])_0x3c9b31[_0x111ef8(0x1e6)]();this[_0x111ef8(0x4e3)]&&this[_0x111ef8(0x4e3)]['dispose'](),this[_0x111ef8(0x47e)]&&this['_anchorDot'][_0x111ef8(0x1e6)](),this[_0x111ef8(0xc4)]&&this['_anchor']['dispose'](),this[_0x111ef8(0x293)]&&this['_eventUnsubscribe']();}['_render'](){const _0x46971e=_0x36f281;var _0x1845a8;const {_docSkeleton:_0x272d25,_document:_0x4593ad}=this,{color:_0x25edc4,name:_0x13d85c,ranges:_0x1c20d2}=this[_0x46971e(0x329)],_0x4c01b4=_0x4593ad[_0x46971e(0x2c9)](),{docsLeft:_0x2649a0,docsTop:_0x2e45e3}=_0x4c01b4,_0x2d1aa7=new _0x5c6469[(_0x46971e(0x242))](_0x4c01b4,_0x272d25);for(const {startOffset:_0x302bd3,endOffset:_0x2e2a3b,collapsed:_0x23fa1c,isActive:_0x1c3f9c}of _0x1c20d2){const _0x149e5e=_0x272d25[_0x46971e(0x2cb)](_0x302bd3),_0x21ebf8=_0x272d25[_0x46971e(0x2cb)](_0x2e2a3b);if(_0x1c3f9c){const {contentBoxPointGroup:_0x5e5baa}=_0x2d1aa7[_0x46971e(0x21b)](_0x21ebf8,_0x21ebf8);if(_0x5e5baa[_0x46971e(0x43f)]===0x0)continue;this[_0x46971e(0x156)](_0x25edc4,_0x5e5baa,_0x2649a0,_0x2e45e3,_0x13d85c),this[_0x46971e(0x293)]=this[_0x46971e(0x2ed)]();}if(!_0x23fa1c&&_0x149e5e&&_0x21ebf8){if(_0x5c6469[_0x46971e(0x11b)](_0x149e5e,_0x21ebf8)){const _0xd9de8c=new _0x5c6469['NodePositionConvertToRectRange'](_0x4c01b4,_0x272d25),{pointGroup:_0x3c891f}=(_0x1845a8=_0xd9de8c['getRangePointData'](_0x149e5e,_0x21ebf8))!=null?_0x1845a8:{};if(_0x3c891f==null||_0x3c891f[_0x46971e(0x43f)]===0x0)continue;this[_0x46971e(0xf5)](_0x25edc4,_0x3c891f,_0x2649a0,_0x2e45e3);}else{const {contentBoxPointGroup:_0x3d219c}=_0x2d1aa7[_0x46971e(0x21b)](_0x149e5e,_0x21ebf8);if(_0x3d219c[_0x46971e(0x43f)]===0x0)continue;this[_0x46971e(0x3e5)](_0x25edc4,_0x3d219c,_0x2649a0,_0x2e45e3);}}}}[_0x36f281(0x156)](_0x2edf17,_0x43ef65,_0x4ab47b,_0x1fb6a9,_0x17d738){const _0x506741=_0x36f281,_0x1c5d4f=this[_0x506741(0x1d0)](_0x43ef65),{left:_0x2609cd,top:_0x35842e,height:_0x2aae52}=_0x1c5d4f,_0xa93bb9=this[_0x506741(0x3ae)](),_0x219d99=_0x50e2ac/_0xa93bb9,_0x39ef26=new _0xa07e34['Rect'](_0x3fd1e2+_0x593949['Tools'][_0x506741(0x433)](_0xd11e0e),{'left':_0x2609cd+_0x4ab47b-_0x219d99,'top':_0x35842e+_0x1fb6a9,'height':_0x2aae52,'width':_0x28f04e,'fill':_0x2edf17||_0xa07e34[_0x506741(0x386)](_0x593949['COLORS']['black'],0x0),'strokeWidth':_0x219d99,'stroke':_0x28dfe7,'evented':!0x0});this['_anchor']=_0x39ef26,this[_0x506741(0x39d)][_0x506741(0x38e)](_0x39ef26,_0x5c6469['TEXT_RANGE_LAYER_INDEX']);const _0x47b763=new _0xa07e34[(_0x506741(0x247))](_0x3fd1e2+_0x593949['Tools'][_0x506741(0x433)](_0xd11e0e),{'left':_0x2609cd+_0x4ab47b-_0x219d99,'top':_0x35842e+_0x1fb6a9-_0x1aa8bf/0x2,'height':_0x1aa8bf,'width':_0x1aa8bf,'fill':_0x2edf17||_0xa07e34[_0x506741(0x386)](_0x593949[_0x506741(0x3ba)][_0x506741(0x29f)],0x0),'strokeWidth':0x0,'stroke':_0x2edf17||_0xa07e34[_0x506741(0x386)](_0x593949[_0x506741(0x3ba)][_0x506741(0x29f)],0x0),'evented':!0x1});this['_anchorDot']=_0x47b763,this['_scene']['addObject'](_0x47b763,_0x5c6469['TEXT_RANGE_LAYER_INDEX']);const _0x4568e1=new _0xc05a02(_0x3fd1e2+_0x593949[_0x506741(0x205)]['generateRandomId'](_0xd11e0e),{'left':_0x2609cd+_0x4ab47b-_0x219d99,'top':_0x35842e+_0x1fb6a9-_0x60143b,'text':_0x17d738,'color':_0x2edf17});this[_0x506741(0x4e3)]=_0x4568e1,this[_0x506741(0x39d)][_0x506741(0x38e)](_0x4568e1,_0x5c6469[_0x506741(0x189)]),this[_0x506741(0x3c2)]=!0x1;}[_0x36f281(0x2ed)](){const _0x4ad1d3=_0x36f281,_0x5be4d6=this['_anchor'][_0x4ad1d3(0x2f1)][_0x4ad1d3(0x174)](()=>{const _0x533ce5=_0x4ad1d3;this[_0x533ce5(0x3c2)]=!0x0;}),_0x57961f=this[_0x4ad1d3(0xc4)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x10b3c=_0x4ad1d3;this['_hideTimer']&&clearTimeout(this[_0x10b3c(0x15b)]),this[_0x10b3c(0x15b)]=setTimeout(()=>{const _0x48da71=_0x10b3c;this[_0x48da71(0x3c2)]=!0x1;},0x7d0);});return()=>{const _0x1f3cb8=_0x4ad1d3;_0x5be4d6[_0x1f3cb8(0x19b)](),_0x57961f[_0x1f3cb8(0x19b)]();};}[_0x36f281(0x3e5)](_0x4098e0,_0x201e5c,_0x1381b3,_0x116dc5){const _0xbe1059=_0x36f281,_0x170f24=new _0x593949[(_0xbe1059(0x175))](_0x4098e0)[_0xbe1059(0x248)](0.2)[_0xbe1059(0x2ee)](),_0x313d7e=new _0xa07e34[(_0xbe1059(0xcc))](_0xfcf932+_0x593949[_0xbe1059(0x205)][_0xbe1059(0x433)](_0xd11e0e),{'pointsGroup':_0x201e5c,'fill':_0x170f24||_0xa07e34['getColor'](_0x593949[_0xbe1059(0x3ba)][_0xbe1059(0x29f)],0.2),'left':_0x1381b3,'top':_0x116dc5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xbe1059(0x252)][_0xbe1059(0x43c)](_0x313d7e),this[_0xbe1059(0x39d)][_0xbe1059(0x38e)](_0x313d7e,_0x5c6469[_0xbe1059(0x189)]);}['_drawRectRange'](_0x246807,_0x30a282,_0x49b1c0,_0x1f2a42){const _0x11beb3=_0x36f281,_0x25f96c=new _0x593949[(_0x11beb3(0x175))](_0x246807)[_0x11beb3(0x248)](0.2)[_0x11beb3(0x2ee)](),_0x510691=new _0xa07e34['RegularPolygon'](_0x5b6e09+_0x593949['Tools']['generateRandomId'](_0xd11e0e),{'pointsGroup':_0x30a282,'fill':_0x25f96c||_0xa07e34[_0x11beb3(0x386)](_0x593949[_0x11beb3(0x3ba)]['black'],0.2),'left':_0x49b1c0,'top':_0x1f2a42,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x11beb3(0x252)][_0x11beb3(0x43c)](_0x510691),this[_0x11beb3(0x39d)]['addObject'](_0x510691,_0x5c6469[_0x11beb3(0x189)]);}[_0x36f281(0x1d0)](_0x16f037){const _0xe987fe=_0x16f037[0x0],_0x23513f=_0xe987fe[0x0],_0x3f42e0=_0xe987fe[0x2],{x:_0xd80600,y:_0x474ac9}=_0x23513f,{x:_0x446be2,y:_0x2c0ea7}=_0x3f42e0;return{'left':_0xd80600,'top':_0x474ac9,'width':_0x446be2-_0xd80600,'height':_0x2c0ea7-_0x474ac9};}[_0x36f281(0x3ae)](){const _0x34d14e=_0x36f281,{scaleX:_0x128683,scaleY:_0x33d338}=this['_scene'][_0x34d14e(0x405)]();return Math[_0x34d14e(0x34b)](_0x128683,_0x33d338);}}var _0x1cba8d=Object[_0x36f281(0x49a)],_0x1cf060=Object[_0x36f281(0x381)],_0x362d85=(_0x1a0621,_0x2069f7,_0x51efaa,_0x29ef5f)=>{const _0x20a999=_0x36f281;for(var _0x2028f8=_0x29ef5f>0x1?void 0x0:_0x29ef5f?_0x1cf060(_0x2069f7,_0x51efaa):_0x2069f7,_0x53cb0b=_0x1a0621[_0x20a999(0x43f)]-0x1,_0x2cc151;_0x53cb0b>=0x0;_0x53cb0b--)(_0x2cc151=_0x1a0621[_0x53cb0b])&&(_0x2028f8=(_0x29ef5f?_0x2cc151(_0x2069f7,_0x51efaa,_0x2028f8):_0x2cc151(_0x2028f8))||_0x2028f8);return _0x29ef5f&&_0x2028f8&&_0x1cba8d(_0x2069f7,_0x51efaa,_0x2028f8),_0x2028f8;},_0x2479a2=(_0x3f81c2,_0x53a390)=>(_0x32a65a,_0x1afcae)=>_0x53a390(_0x32a65a,_0x1afcae,_0x3f81c2);let _0x12fd25=class extends _0x593949[_0x36f281(0x130)]{constructor(_0x1cc65b,_0x252c4a,_0x157eb4,_0x56c148,_0x1762f9){const _0x318720=_0x36f281;super(),_0x3e0772(this,'_cursorShapes',[]),_0x3e0772(this,_0x318720(0x144),[]),(this['_context']=_0x1cc65b,this[_0x318720(0x375)]=_0x252c4a,this[_0x318720(0x2f6)]=_0x157eb4,this['_commandService']=_0x56c148,this[_0x318720(0x42b)]=_0x1762f9,this['_init']());}['_init'](){const _0x493c28=_0x36f281,_0x4a4b34=this[_0x493c28(0x3f4)]['unitId'],_0x2fcad3=this['_docSkeletonManagerService'];this[_0x493c28(0x196)](_0x30c949[_0x493c28(0x202)]([this[_0x493c28(0x2f6)]['getCollabCursors$'](_0x4a4b34),this[_0x493c28(0x42b)][_0x493c28(0x2e4)]])[_0x493c28(0x49c)](_0x218e56['map'](([_0x2a0c70,_0x114b24])=>({'skeleton':_0x2fcad3[_0x493c28(0x42c)](),'cursors':[..._0x2a0c70[_0x493c28(0x4b5)]()][_0x493c28(0x28c)](_0x131c13=>({..._0x131c13,'color':_0x114b24[_0x131c13['color']]}))})))[_0x493c28(0x188)](_0x492d67=>{const _0x3cce66=_0x493c28;if(this[_0x3cce66(0x251)](),_0x492d67){const {skeleton:_0x44a39b,cursors:_0x2f5d41}=_0x492d67;this[_0x3cce66(0x2e7)](_0x44a39b,_0x2f5d41);}})),this['_initResize'](),this[_0x493c28(0x185)]();}[_0x36f281(0x2e7)](_0xafec4a,_0x45ed8d){const _0x5e99f3=_0x36f281,{scene:_0x33c821,mainComponent:_0x473315}=this[_0x5e99f3(0x3f4)],_0x3bd3d9=_0x45ed8d['map'](_0xeea877=>new _0x4747cd(_0xeea877,_0x33c821,_0xafec4a,_0x473315));this[_0x5e99f3(0x20a)]=_0x3bd3d9,this[_0x5e99f3(0x144)]=_0x45ed8d;}['_refreshCollabCursors'](){const _0x2cd444=_0x36f281;this[_0x2cd444(0x251)]();const {scene:_0x4dad7a,mainComponent:_0x4bc129}=this[_0x2cd444(0x3f4)],_0xcd0982=this[_0x2cd444(0x375)][_0x2cd444(0x42c)](),_0x1d6526=this[_0x2cd444(0x144)][_0x2cd444(0x1de)](_0x2222ad=>new _0x4747cd(_0x2222ad,_0x4dad7a,_0xcd0982,_0x4bc129));this['_cursorShapes']=_0x1d6526;}[_0x36f281(0x251)](){const _0x18d6cb=_0x36f281;this[_0x18d6cb(0x20a)]['forEach'](_0x585b52=>_0x585b52['dispose']()),this[_0x18d6cb(0x20a)]=[];}[_0x36f281(0x185)](){const _0x3ebba0=_0x36f281,_0x4eb0f2=[_0x5c6469['SetDocZoomRatioOperation']['id']];this[_0x3ebba0(0x196)](this[_0x3ebba0(0x265)]['onCommandExecuted'](_0x109e94=>{const _0x238ff9=_0x3ebba0;_0x4eb0f2['includes'](_0x109e94['id'])&&_0x109e94[_0x238ff9(0x2c8)]['unitId']===this[_0x238ff9(0x3f4)][_0x238ff9(0x315)]&&this['_refreshCollabCursors']();}));}[_0x36f281(0x1f4)](){const _0xef6910=_0x36f281;this[_0xef6910(0x196)](_0x593949[_0xef6910(0x27b)](this[_0xef6910(0x3f4)][_0xef6910(0x2b0)][_0xef6910(0x44c)])['pipe'](_0x218e56[_0xef6910(0x218)](_0x1ebb47=>_0x1ebb47[_0xef6910(0x17b)]===_0xa07e34['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0xef6910(0x14c)]),_0x218e56[_0xef6910(0x254)](0x10))[_0xef6910(0x188)](()=>{const _0x4a1c52=_0xef6910;this[_0x4a1c52(0x275)]();}));}};_0x12fd25=_0x362d85([_0x2479a2(0x1,_0x593949['Inject'](_0x4aa7be[_0x36f281(0x17a)])),_0x2479a2(0x2,_0x593949[_0x36f281(0xb9)](_0x455914)),_0x2479a2(0x3,_0x593949[_0x36f281(0x38d)]),_0x2479a2(0x4,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0x199)]))],_0x12fd25);const _0x2631a6=0x1,_0x35876c=1.5;class _0x55e027 extends _0xa07e34[_0x36f281(0x378)]{constructor(_0x21c154,_0x3102ee){const _0x409f4d=_0x36f281;super(_0x21c154,_0x3102ee),_0x3e0772(this,_0x409f4d(0x28e)),_0x3e0772(this,_0x409f4d(0x345),!0x1),_0x3e0772(this,_0x409f4d(0xc0)),_0x3e0772(this,_0x409f4d(0xc3),''),_0x3e0772(this,'_labelPosition',_0x409f4d(0x410)),_0x3e0772(this,_0x409f4d(0x43e)),(_0x3102ee&&this[_0x409f4d(0x4b7)](_0x3102ee),this[_0x409f4d(0x2f1)][_0x409f4d(0x174)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x409f4d(0x435)][_0x409f4d(0x174)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x36f281(0x4b7)](_0x11b155){const _0x5e973f=_0x36f281;var _0x324799,_0x619d23,_0x467ee4,_0x965c44,_0x50a00d,_0x1238f5;this[_0x5e973f(0x28e)]=(_0x324799=_0x11b155['color'])!=null?_0x324799:this[_0x5e973f(0x28e)],this[_0x5e973f(0x345)]=(_0x619d23=_0x11b155[_0x5e973f(0x4af)])!=null?_0x619d23:this['_hovered'],this[_0x5e973f(0xc0)]=(_0x467ee4=_0x11b155[_0x5e973f(0x4d8)])!=null?_0x467ee4:this[_0x5e973f(0xc0)],this['_name']=(_0x965c44=_0x11b155[_0x5e973f(0x4a2)])!=null?_0x965c44:this[_0x5e973f(0xc3)],this[_0x5e973f(0x2df)]=(_0x50a00d=_0x11b155['labelPosition'])!=null?_0x50a00d:this['_labelPosition'],this['_backgroundColor']=(_0x1238f5=_0x11b155[_0x5e973f(0x3ec)])!=null?_0x1238f5:this[_0x5e973f(0x43e)],this[_0x5e973f(0x160)]({'width':_0x11b155['width'],'height':_0x11b155[_0x5e973f(0xf8)]});}[_0x36f281(0x126)](_0x5b051d){const _0x535188=_0x36f281,{row:_0x4652a6,column:_0x30f166}=_0x5b051d;if(_0x4652a6>=this[_0x535188(0xc0)][_0x535188(0x455)]&&_0x4652a6<=this[_0x535188(0xc0)][_0x535188(0x30a)]&&_0x30f166>=this[_0x535188(0xc0)][_0x535188(0x3ca)]&&_0x30f166<=this[_0x535188(0xc0)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x16400d){return!0x1;}[_0x36f281(0x264)](_0x2e90b9){const _0x4068fc=_0x36f281;_0xa07e34[_0x4068fc(0x247)][_0x4068fc(0x2db)](_0x2e90b9,{'width':this['width'],'height':this['height'],'strokeWidth':_0x35876c,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x4068fc(0x43e)]}),this[_0x4068fc(0x345)]&&(_0x2e90b9[_0x4068fc(0x497)](),_0x2e90b9['transform'](0x1,0x0,0x0,0x1,this[_0x4068fc(0x19f)],this[_0x4068fc(0x2df)]===_0x4068fc(0x3d7)?0x0:-_0x60143b),_0xc05a02[_0x4068fc(0x2db)](_0x2e90b9,{'text':this[_0x4068fc(0xc3)],'color':this[_0x4068fc(0x28e)]}),_0x2e90b9[_0x4068fc(0x212)]());}}var _0x5640fa=Object[_0x36f281(0x49a)],_0x37634a=Object['getOwnPropertyDescriptor'],_0x5eadd4=(_0x5472c3,_0x2000fe,_0x3baec5,_0x32d152)=>{const _0x3e5b44=_0x36f281;for(var _0x28089b=_0x32d152>0x1?void 0x0:_0x32d152?_0x37634a(_0x2000fe,_0x3baec5):_0x2000fe,_0x5ee4f0=_0x5472c3[_0x3e5b44(0x43f)]-0x1,_0x48e37d;_0x5ee4f0>=0x0;_0x5ee4f0--)(_0x48e37d=_0x5472c3[_0x5ee4f0])&&(_0x28089b=(_0x32d152?_0x48e37d(_0x2000fe,_0x3baec5,_0x28089b):_0x48e37d(_0x28089b))||_0x28089b);return _0x32d152&&_0x28089b&&_0x5640fa(_0x2000fe,_0x3baec5,_0x28089b),_0x28089b;},_0x473f8b=(_0x1e85cc,_0x447422)=>(_0x8c5ecc,_0x22b16b)=>_0x447422(_0x8c5ecc,_0x22b16b,_0x1e85cc);const _0x200e77=0x1389;let _0x11cefc=class extends _0x593949[_0x36f281(0x130)]{constructor(_0x4aa855,_0x420559,_0x53d866,_0x3ab31d){const _0x12e463=_0x36f281;super(),_0x3e0772(this,_0x12e463(0x144),new Set()),_0x3e0772(this,'_lastPointer',null),(this[_0x12e463(0x3f4)]=_0x4aa855,this['_sheetSkeletonManagerService']=_0x420559,this[_0x12e463(0x2f6)]=_0x53d866,this[_0x12e463(0x42b)]=_0x3ab31d,this['_init']());}[_0x36f281(0x3b6)](){const _0x5b548a=_0x36f281;this[_0x5b548a(0xdb)]['currentSkeleton$'][_0x5b548a(0x49c)](_0x218e56[_0x5b548a(0x142)](this[_0x5b548a(0x4d4)]),_0x218e56['switchMap'](_0x1d6887=>{const _0x12c434=_0x5b548a;if(_0x1d6887){const _0x4dbd4d=_0x1d6887[_0x12c434(0x2e2)];return _0x30c949[_0x12c434(0x202)](this[_0x12c434(0x2f6)]['getCollabCursors$'](this['_context'][_0x12c434(0x315)]),this['_themeService'][_0x12c434(0x2e4)])[_0x12c434(0x49c)](_0x218e56[_0x12c434(0x1de)](([_0x1b82d2,_0x2c41e6])=>{const _0xe8a6bb=_0x12c434,_0x16f6af=new Map();return _0x1b82d2[_0xe8a6bb(0x2a0)]((_0x38e98f,_0x5cd08d)=>{const _0x1c8836=_0xe8a6bb;if(_0x38e98f[_0x1c8836(0x4b3)]===_0x4dbd4d){const _0x32b622={..._0x38e98f};_0x32b622[_0x1c8836(0x2a6)]=_0x2c41e6[_0x38e98f['color']],_0x16f6af['set'](_0x5cd08d,_0x32b622);}}),{'skeleton':_0x1d6887,'cursors':_0x16f6af};}));}return _0x30c949['of']({'skeleton':null,'cursors':new Map()});}))[_0x5b548a(0x188)](({skeleton:_0x3dc132,cursors:_0x4e5c5e})=>{const _0x3fc0d1=_0x5b548a;this[_0x3fc0d1(0x251)](),_0x3dc132&&this['_updateCollabCursors'](_0x3dc132,_0x4e5c5e);}),this['_sheetSkeletonManagerService'][_0x5b548a(0x104)][_0x5b548a(0x188)](_0x1892c1=>{const _0x2a56a0=_0x5b548a;if(_0x1892c1==null)return;const {skeleton:_0xc4e574}=_0x1892c1,{scene:_0x33e693}=this[_0x2a56a0(0x3f4)];_0x33e693[_0x2a56a0(0x428)][_0x2a56a0(0x174)](_0x593949[_0x2a56a0(0x4e4)](_0x18f5dd=>{const _0x2e45ad=_0x2a56a0;var _0x48b553,_0x4cff8e;const {offsetX:_0x5d0443,offsetY:_0x550fe0}=_0x18f5dd,{x:_0x5825c0,y:_0x38e267}=_0x33e693['getRelativeToViewportCoord'](_0xa07e34['Vector2'][_0x2e45ad(0x10b)]([_0x5d0443,_0x550fe0])),{scaleX:_0xac21ad,scaleY:_0x3d2c37}=_0x33e693[_0x2e45ad(0x405)](),_0x672f18=_0x33e693[_0x2e45ad(0x2ab)](_0x35ed85['VIEWPORT_KEY'][_0x2e45ad(0x3aa)]),_0x26fa0a=_0x33e693[_0x2e45ad(0x1b5)](_0xa07e34[_0x2e45ad(0x308)][_0x2e45ad(0x10b)]([_0x5825c0,_0x38e267]),_0x672f18),_0x5c4ece=_0xc4e574[_0x2e45ad(0x22c)](_0x5d0443,_0x550fe0,_0xac21ad,_0x3d2c37,_0x26fa0a);((_0x48b553=this[_0x2e45ad(0x230)])==null?void 0x0:_0x48b553['column'])===_0x5c4ece[_0x2e45ad(0x3e7)]&&((_0x4cff8e=this['_lastPointer'])==null?void 0x0:_0x4cff8e[_0x2e45ad(0x3af)])===_0x5c4ece[_0x2e45ad(0x3af)]||this[_0x2e45ad(0x144)][_0x2e45ad(0x2a0)](_0x37c399=>{const _0x77efc=_0x2e45ad;_0x37c399[_0x77efc(0x126)](_0x5c4ece);});},0x64));});}[_0x36f281(0x2e7)](_0x4f6458,_0x1e0685){const _0xe68280=_0x36f281;var _0x50d18d;const _0x588b53=(_0x50d18d=this[_0xe68280(0xdb)][_0xe68280(0x223)]())==null?void 0x0:_0x50d18d[_0xe68280(0x447)];if(!_0x588b53)return;const _0x483eff=this['_getSheetObject']();if(!_0x483eff)return;this[_0xe68280(0x144)][_0xe68280(0x2a0)](_0x1e79a6=>{_0x1e79a6['makeDirty']();});const {scene:_0x421d88}=_0x483eff,_0x4cb1c1=_0x14e1b7(Array['from'](_0x1e0685[_0xe68280(0x4b5)]()))['map'](_0x5e82da=>{const _0xca0a35=_0xe68280,{color:_0x20f548,range:_0x34ee6a,name:_0x24a3dd,selection:_0x1258b8,sheetID:_0x222760}=_0x5e82da,{startColumn:_0x3a1343,startRow:_0x260a97,endColumn:_0x425841,endRow:_0x4be5cd}=_0x34ee6a,_0x289950=_0x35ed85[_0xca0a35(0x4c7)](_0x260a97,_0x3a1343,_0x421d88,_0x588b53),_0x3a6f31=_0x35ed85[_0xca0a35(0x4c7)](_0x4be5cd,_0x425841,_0x421d88,_0x588b53),{columnHeaderHeightAndMarginTop:_0x2c151d}=_0x588b53,{startX:_0x35e7a7,startY:_0x46971b}=_0x289950,{endX:_0x50f142,endY:_0x15105a}=_0x3a6f31,_0x17cc20=_0x50f142-_0x35e7a7,_0x3f0e84=_0x15105a-_0x46971b,_0x41a737={'labelPosition':_0x46971b-_0x2c151d>=_0x60143b?_0xca0a35(0x410):'bottom','sheetID':_0x222760,'range':_0x34ee6a,'color':_0x20f548,'name':_0x24a3dd,'selection':_0x1258b8,'left':_0x35e7a7,'top':_0x46971b,'width':_0x17cc20,'height':_0x3f0e84,'evented':!0x1,'zIndex':_0x200e77};return new _0x55e027(_0x24a3dd,_0x41a737);});_0x421d88[_0xe68280(0x4e8)](_0x4cb1c1,_0x2631a6),this['_cursors']=new Set(_0x4cb1c1);}[_0x36f281(0x251)](){const _0x4c6ef3=_0x36f281;var _0x23a289;(_0x23a289=this[_0x4c6ef3(0x144)])==null||_0x23a289[_0x4c6ef3(0x2a0)](_0x43b12c=>_0x43b12c[_0x4c6ef3(0x1e6)]());}[_0x36f281(0x21a)](){const _0x2ab8a2=_0x36f281;return _0x35ed85['getSheetObject'](this[_0x2ab8a2(0x3f4)][_0x2ab8a2(0x179)],this['_context']);}};_0x11cefc=_0x5eadd4([_0x473f8b(0x1,_0x593949[_0x36f281(0xb9)](_0x35ed85[_0x36f281(0x1c9)])),_0x473f8b(0x2,_0x593949['Inject'](_0x455914)),_0x473f8b(0x3,_0x593949[_0x36f281(0xb9)](_0x593949['ThemeService']))],_0x11cefc);function _0x14e1b7(_0x4a61f3){const _0x41d85e=_0x36f281,_0x2fd401=new Map();return _0x4a61f3[_0x41d85e(0x2a0)](_0x525127=>{const _0x37471e=_0x41d85e;if(_0x2fd401[_0x37471e(0x1f2)](_0x525127[_0x37471e(0x3e8)])){const _0x2a7716=_0x2fd401[_0x37471e(0x14e)](_0x525127['selection']);_0x2a7716['name']+=',\x20'+_0x525127['name'];}else _0x2fd401[_0x37471e(0x2bd)](_0x525127['selection'],_0x525127);}),Array['from'](_0x2fd401[_0x41d85e(0x4b5)]());}var _0x3e8e60=function(){const _0x2b7802=_0x36f281;return _0x3e8e60=Object[_0x2b7802(0x45b)]||function(_0x349ac7){const _0x299d7e=_0x2b7802;for(var _0x5c642d,_0x2a2db9=0x1,_0x52e281=arguments[_0x299d7e(0x43f)];_0x2a2db9<_0x52e281;_0x2a2db9++){_0x5c642d=arguments[_0x2a2db9];for(var _0x3b0e58 in _0x5c642d)Object['prototype'][_0x299d7e(0x221)]['call'](_0x5c642d,_0x3b0e58)&&(_0x349ac7[_0x3b0e58]=_0x5c642d[_0x3b0e58]);}return _0x349ac7;},_0x3e8e60[_0x2b7802(0x4b9)](this,arguments);},_0x4386da=function(_0x31138c,_0x352856){const _0x12a3cf=_0x36f281;var _0x522c24={};for(var _0x5578a2 in _0x31138c)Object[_0x12a3cf(0x16b)][_0x12a3cf(0x221)][_0x12a3cf(0x2fa)](_0x31138c,_0x5578a2)&&_0x352856[_0x12a3cf(0x14f)](_0x5578a2)<0x0&&(_0x522c24[_0x5578a2]=_0x31138c[_0x5578a2]);if(_0x31138c!=null&&typeof Object[_0x12a3cf(0x3c8)]==_0x12a3cf(0x260)){for(var _0x20c285=0x0,_0x5578a2=Object[_0x12a3cf(0x3c8)](_0x31138c);_0x20c285<_0x5578a2[_0x12a3cf(0x43f)];_0x20c285++)_0x352856[_0x12a3cf(0x14f)](_0x5578a2[_0x20c285])<0x0&&Object[_0x12a3cf(0x16b)][_0x12a3cf(0x40e)][_0x12a3cf(0x2fa)](_0x31138c,_0x5578a2[_0x20c285])&&(_0x522c24[_0x5578a2[_0x20c285]]=_0x31138c[_0x5578a2[_0x20c285]]);}return _0x522c24;},_0x2e418b=_0x111993['forwardRef'](function(_0x11b39b,_0x3906dc){const _0x4fca90=_0x36f281;var _0x4f0297=_0x11b39b[_0x4fca90(0x1cd)],_0x24bb2e=_0x11b39b['id'],_0x5073e6=_0x11b39b[_0x4fca90(0x25d)],_0x2d4d08=_0x11b39b[_0x4fca90(0x24b)],_0x39c96c=_0x4386da(_0x11b39b,[_0x4fca90(0x1cd),'id','className',_0x4fca90(0x24b)]),_0x54fed8=_0x4fca90(0x1cc)['concat'](_0x24bb2e,'\x20')[_0x4fca90(0x1e2)](_0x5073e6||'')[_0x4fca90(0x3d0)](),_0x2b4258=_0x111993[_0x4fca90(0x26c)]('_'[_0x4fca90(0x1e2)](_0x48dcdb()));return _0x127c3b(_0x4f0297,''[_0x4fca90(0x1e2)](_0x24bb2e),{'defIds':_0x4f0297[_0x4fca90(0x444)],'idSuffix':_0x2b4258[_0x4fca90(0x47b)]},_0x3e8e60({'ref':_0x3906dc,'className':_0x54fed8},_0x39c96c),_0x2d4d08);});function _0x127c3b(_0x4e7289,_0x38f4ae,_0x50655f,_0x3c9bd4,_0x31121f){const _0xb89455=_0x36f281;return _0x111993[_0xb89455(0xc9)](_0x4e7289[_0xb89455(0x4dc)],_0x3e8e60(_0x3e8e60({'key':_0x38f4ae},_0x34a09c(_0x4e7289,_0x50655f,_0x31121f)),_0x3c9bd4),(_0x1a4f60(_0x4e7289,_0x50655f)[_0xb89455(0x261)]||[])[_0xb89455(0x1de)](function(_0x4e4540,_0x52ae11){const _0x1b4baa=_0xb89455;return _0x127c3b(_0x4e4540,''[_0x1b4baa(0x1e2)](_0x38f4ae,'-')[_0x1b4baa(0x1e2)](_0x4e7289['tag'],'-')[_0x1b4baa(0x1e2)](_0x52ae11),_0x50655f,void 0x0,_0x31121f);}));}function _0x34a09c(_0x1a1967,_0x5a21c4,_0x25fba7){const _0x2e4aba=_0x36f281;var _0x35dede=_0x3e8e60({},_0x1a1967[_0x2e4aba(0x42d)]);_0x25fba7!=null&&_0x25fba7['colorChannel1']&&_0x35dede[_0x2e4aba(0xda)]===_0x2e4aba(0xcf)&&(_0x35dede[_0x2e4aba(0xda)]=_0x25fba7[_0x2e4aba(0xcf)]);var _0x1af388=_0x5a21c4[_0x2e4aba(0x444)];return!_0x1af388||_0x1af388[_0x2e4aba(0x43f)]===0x0||(_0x1a1967[_0x2e4aba(0x4dc)]===_0x2e4aba(0x168)&&_0x35dede[_0x2e4aba(0xf0)]&&(_0x35dede[_0x2e4aba(0xf0)]=_0x35dede['xlink:href']+_0x5a21c4[_0x2e4aba(0x20d)]),Object[_0x2e4aba(0x421)](_0x35dede)[_0x2e4aba(0x2a0)](function(_0x4faf3a){const _0x232a69=_0x2e4aba;var _0x3457f4=_0x4faf3a[0x0],_0x2dc370=_0x4faf3a[0x1];typeof _0x2dc370==_0x232a69(0x2a8)&&(_0x35dede[_0x3457f4]=_0x2dc370['replace'](/url\(#(.*)\)/,_0x232a69(0x338)[_0x232a69(0x1e2)](_0x5a21c4[_0x232a69(0x20d)],')')));})),_0x35dede;}function _0x1a4f60(_0x34a091,_0x9e0fb4){const _0x302fbf=_0x36f281;var _0xb4f16f,_0x40059b=_0x9e0fb4[_0x302fbf(0x444)];return!_0x40059b||_0x40059b[_0x302fbf(0x43f)]===0x0?_0x34a091:_0x34a091[_0x302fbf(0x4dc)]===_0x302fbf(0x2e6)&&(!((_0xb4f16f=_0x34a091[_0x302fbf(0x261)])===null||_0xb4f16f===void 0x0)&&_0xb4f16f['length'])?_0x3e8e60(_0x3e8e60({},_0x34a091),{'children':_0x34a091[_0x302fbf(0x261)][_0x302fbf(0x1de)](function(_0x45348e){const _0x29ee77=_0x302fbf;return typeof _0x45348e[_0x29ee77(0x42d)]['id']==_0x29ee77(0x2a8)&&_0x40059b&&_0x40059b[_0x29ee77(0x14f)](_0x45348e[_0x29ee77(0x42d)]['id'])>-0x1?_0x3e8e60(_0x3e8e60({},_0x45348e),{'attrs':_0x3e8e60(_0x3e8e60({},_0x45348e['attrs']),{'id':_0x45348e[_0x29ee77(0x42d)]['id']+_0x9e0fb4[_0x29ee77(0x20d)]})}):_0x45348e;})}):_0x34a091;}function _0x48dcdb(){const _0x1cf14e=_0x36f281;return Math[_0x1cf14e(0x4a7)]()[_0x1cf14e(0x13d)](0x24)[_0x1cf14e(0x411)](0x2,0x8);}_0x2e418b['displayName']=_0x36f281(0x25f);var _0x4c4b77={'tag':_0x36f281(0x297),'attrs':{'fill':'none','viewBox':_0x36f281(0x219),'width':_0x36f281(0x24c),'height':_0x36f281(0x24c)},'children':[{'tag':'g','attrs':{'clipPath':_0x36f281(0x231)},'children':[{'tag':_0x36f281(0x273),'attrs':{'stroke':_0x36f281(0x361),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x36f281(0x233),'strokeLinejoin':_0x36f281(0x233),'strokeWidth':1.2}}]},{'tag':_0x36f281(0x2e6),'attrs':{},'children':[{'tag':_0x36f281(0x106),'attrs':{'id':_0x36f281(0x35a)},'children':[{'tag':_0x36f281(0x273),'attrs':{'fill':'#fff','d':_0x36f281(0x45e)}}]}]}],'defIds':['off-line-single_clip0_910_343']},_0x447b96=_0x111993[_0x36f281(0x29a)](function(_0x171e8d,_0x4cbf99){const _0x249289=_0x36f281;return _0x111993[_0x249289(0xc9)](_0x2e418b,Object['assign']({},_0x171e8d,{'id':_0x249289(0x12c),'ref':_0x4cbf99,'icon':_0x4c4b77}));});_0x447b96[_0x36f281(0x3ed)]='OffLineSingle';var _0x467f00={'tag':_0x36f281(0x297),'attrs':{'fill':_0x36f281(0x39b),'viewBox':'0\x200\x2017\x2016','width':_0x36f281(0x24c),'height':_0x36f281(0x24c)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x36f281(0x361),'d':'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','strokeLinecap':_0x36f281(0x233),'strokeLinejoin':_0x36f281(0x233),'strokeWidth':1.2}}]},{'tag':_0x36f281(0x2e6),'attrs':{},'children':[{'tag':_0x36f281(0x106),'attrs':{'id':_0x36f281(0x207)},'children':[{'tag':_0x36f281(0x273),'attrs':{'fill':_0x36f281(0x102),'d':_0x36f281(0x45e),'transform':_0x36f281(0x26b)}}]}]}],'defIds':[_0x36f281(0x207)]},_0x5544d1=_0x111993[_0x36f281(0x29a)](function(_0x41fb91,_0x2ef276){const _0x7be90d=_0x36f281;return _0x111993[_0x7be90d(0xc9)](_0x2e418b,Object['assign']({},_0x41fb91,{'id':_0x7be90d(0x472),'ref':_0x2ef276,'icon':_0x467f00}));});_0x5544d1[_0x36f281(0x3ed)]=_0x36f281(0x15c);function _0x1db50c(_0x13c0bf){const _0x582747=_0x36f281;var _0x1a8624,_0x392b7a,_0xd6a04a='';if(typeof _0x13c0bf==_0x582747(0x2a8)||typeof _0x13c0bf==_0x582747(0x3f0))_0xd6a04a+=_0x13c0bf;else{if(typeof _0x13c0bf=='object'){if(Array[_0x582747(0x10c)](_0x13c0bf)){var _0x2dfb42=_0x13c0bf[_0x582747(0x43f)];for(_0x1a8624=0x0;_0x1a8624<_0x2dfb42;_0x1a8624++)_0x13c0bf[_0x1a8624]&&(_0x392b7a=_0x1db50c(_0x13c0bf[_0x1a8624]))&&(_0xd6a04a&&(_0xd6a04a+='\x20'),_0xd6a04a+=_0x392b7a);}else{for(_0x392b7a in _0x13c0bf)_0x13c0bf[_0x392b7a]&&(_0xd6a04a&&(_0xd6a04a+='\x20'),_0xd6a04a+=_0x392b7a);}}}return _0xd6a04a;}function _0x3cdde9(){const _0x53b700=_0x36f281;for(var _0x26b794,_0x3033e6,_0x33a043=0x0,_0x12a9a2='',_0x59f557=arguments[_0x53b700(0x43f)];_0x33a043<_0x59f557;_0x33a043++)(_0x26b794=arguments[_0x33a043])&&(_0x3033e6=_0x1db50c(_0x26b794))&&(_0x12a9a2&&(_0x12a9a2+='\x20'),_0x12a9a2+=_0x3033e6);return _0x12a9a2;}const _0x379f92={'onlineStatusIcon':_0x36f281(0x4b0),'onlineStatusTitle':'univer-online-status-title','onlineStatus':_0x36f281(0xbd),'online':_0x36f281(0x3fa),'offline':_0x36f281(0x14a)};function _0x425cdd(_0x14b273){const _0x9bf82e=_0x36f281;switch(_0x14b273){case _0x2d65dc[_0x9bf82e(0x4eb)]:return _0x9bf82e(0xf4);case _0x2d65dc[_0x9bf82e(0x43a)]:return _0x9bf82e(0x3c3);case _0x2d65dc[_0x9bf82e(0x3a1)]:return _0x9bf82e(0x246);case _0x2d65dc[_0x9bf82e(0x23c)]:return _0x9bf82e(0x216);case _0x2d65dc[_0x9bf82e(0x498)]:case _0x2d65dc[_0x9bf82e(0x40c)]:case _0x2d65dc['AWAITING_WITH_PENDING']:return _0x9bf82e(0x4d9);case _0x2d65dc[_0x9bf82e(0x197)]:return _0x9bf82e(0x226);}}function _0x580fae(_0x423c72){const _0x4e5856=_0x36f281,{status$:_0x44e188}=_0x423c72,_0xa0d3a7=_0xc44033[_0x4e5856(0x3e2)](_0x44e188,_0x2d65dc[_0x4e5856(0x23c)]),_0x5198c7=_0x593949['useDependency'](_0x593949[_0x4e5856(0x2bc)]),_0x35e760=_0x593949[_0x4e5856(0x3c0)](_0x4238fe[_0x4e5856(0x370)]),_0x2b7012=_0xa0d3a7!==_0x2d65dc['OFFLINE'],_0x468898=_0x5198c7['t'](_0x425cdd(_0xa0d3a7)),_0x4383a=_0x3cdde9(_0x379f92[_0x4e5856(0x395)],{[_0x379f92[_0x4e5856(0x3f2)]]:_0x2b7012,[_0x379f92[_0x4e5856(0x322)]]:!_0x2b7012}),_0x39283a=_0x2b7012?_0x111993['createElement'](_0x5544d1,null):_0x111993['createElement'](_0x447b96,null),_0x283cfb=_0x111993[_0x4e5856(0x21d)](()=>{const _0x172e14=_0x4e5856;_0x2b7012||_0x35e760[_0x172e14(0x165)]();},[_0x2b7012,_0x35e760]);function _0x3ab32e(){const _0x60504=_0x4e5856;return _0x111993['createElement'](_0x60504(0x45a),{'className':_0x4383a,'onClick':_0x283cfb},_0x111993['createElement']('div',{'className':_0x379f92[_0x60504(0x176)]},_0x39283a),_0x111993[_0x60504(0xc9)](_0x60504(0x45a),{'className':_0x379f92[_0x60504(0x479)]},_0x468898));}return _0x2b7012?_0x3ab32e():_0x111993[_0x4e5856(0xc9)](_0x2b27fc['Tooltip'],{'title':_0x5198c7['t'](_0x4e5856(0x363))},_0x3ab32e());}var _0x3c501b=Object[_0x36f281(0x49a)],_0x57c4e7=Object['getOwnPropertyDescriptor'],_0x5b0b55=(_0x559cf1,_0x51cd97,_0x5ebcd6,_0x2769d6)=>{const _0x3a9ff3=_0x36f281;for(var _0x1aaf82=_0x2769d6>0x1?void 0x0:_0x2769d6?_0x57c4e7(_0x51cd97,_0x5ebcd6):_0x51cd97,_0x389429=_0x559cf1[_0x3a9ff3(0x43f)]-0x1,_0x393053;_0x389429>=0x0;_0x389429--)(_0x393053=_0x559cf1[_0x389429])&&(_0x1aaf82=(_0x2769d6?_0x393053(_0x51cd97,_0x5ebcd6,_0x1aaf82):_0x393053(_0x1aaf82))||_0x1aaf82);return _0x2769d6&&_0x1aaf82&&_0x3c501b(_0x51cd97,_0x5ebcd6,_0x1aaf82),_0x1aaf82;},_0x52cd6b=(_0x1e135b,_0x17211e)=>(_0x38b629,_0x5c2605)=>_0x17211e(_0x38b629,_0x5c2605,_0x1e135b);_0x4238fe[_0x36f281(0x225)]=class extends _0x593949['Disposable']{constructor(_0x2ab502,_0x11de22,_0x339ecc,_0x4ba3a3){const _0x2c37dc=_0x36f281;super(),_0x3e0772(this,_0x2c37dc(0x20e),new _0x30c949[(_0x2c37dc(0x2f9))](_0x2d65dc[_0x2c37dc(0x23c)])),(this[_0x2c37dc(0x276)]=_0x2ab502,this[_0x2c37dc(0x31f)]=_0x11de22,this[_0x2c37dc(0xf1)]=_0x339ecc,this[_0x2c37dc(0x1cb)]=_0x4ba3a3,this[_0x2c37dc(0x2ff)](),this[_0x2c37dc(0x4ac)]());}[_0x36f281(0x4ac)](){const _0x108005=_0x36f281;this[_0x108005(0x196)](this[_0x108005(0x276)][_0x108005(0x4d5)]['pipe'](_0x30c949[_0x108005(0x3fd)](()=>{const _0x1cb576=_0x108005,_0x4c32e0=this['_univerInstanceService']['getFocusedUnit']();return _0x4c32e0?this['_collaborationController'][_0x1cb576(0x1e3)](_0x4c32e0[_0x1cb576(0x4c0)]()):_0x30c949['of'](null);}),_0x30c949['switchMap'](_0x43af13=>_0x43af13?_0x43af13[_0x108005(0x457)]:_0x30c949['of'](_0x2d65dc[_0x108005(0x23c)])))[_0x108005(0x188)](_0x190eca=>{const _0x3157d9=_0x108005;this[_0x3157d9(0x20e)]['next'](_0x190eca);}));}[_0x36f281(0x2ff)](){const _0x53dc03=_0x36f281;this[_0x53dc03(0x196)](this['_uiPartsService'][_0x53dc03(0x3a8)](_0xc44033[_0x53dc03(0x192)]['HEADER_MENU'],()=>_0x593949['connectInjector'](_0x113a75({'status$':this[_0x53dc03(0x20e)][_0x53dc03(0x13a)]()}),this[_0x53dc03(0xf1)])));}},_0x4238fe[_0x36f281(0x225)]=_0x5b0b55([_0x52cd6b(0x0,_0x593949[_0x36f281(0x1dc)]),_0x52cd6b(0x1,_0xc44033[_0x36f281(0x330)]),_0x52cd6b(0x2,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0xa8)])),_0x52cd6b(0x3,_0x593949['Inject'](_0x4238fe[_0x36f281(0x373)]))],_0x4238fe[_0x36f281(0x225)]);function _0x113a75(_0x2da8a3){const {status$:_0x26b701}=_0x2da8a3;return function(){const _0x53f4f8=_0x4c16;return _0x111993[_0x53f4f8(0xc9)](_0x580fae,{'status$':_0x26b701});};}const _0x2863a7=_0x593949[_0x36f281(0x358)](_0x36f281(0x3cc));var _0x4371b0=Object[_0x36f281(0x49a)],_0x5d27b4=Object[_0x36f281(0x381)],_0xbe49a9=(_0x5e290f,_0x53f14f,_0x37d43c,_0x113436)=>{const _0xe1f861=_0x36f281;for(var _0x41525b=_0x113436>0x1?void 0x0:_0x113436?_0x5d27b4(_0x53f14f,_0x37d43c):_0x53f14f,_0x466d02=_0x5e290f[_0xe1f861(0x43f)]-0x1,_0x3eee9e;_0x466d02>=0x0;_0x466d02--)(_0x3eee9e=_0x5e290f[_0x466d02])&&(_0x41525b=(_0x113436?_0x3eee9e(_0x53f14f,_0x37d43c,_0x41525b):_0x3eee9e(_0x41525b))||_0x41525b);return _0x113436&&_0x41525b&&_0x4371b0(_0x53f14f,_0x37d43c,_0x41525b),_0x41525b;},_0x1a8666=(_0x178208,_0x5ed952)=>(_0xb713d,_0x3a1bed)=>_0x5ed952(_0xb713d,_0x3a1bed,_0x178208);_0x4238fe['DataLoaderController']=class extends _0x593949['RxDisposable']{constructor(_0x4e95dd,_0x284a98,_0x25c309,_0x1c6541,_0x3d6198,_0x21be4e){const _0x63c86e=_0x36f281;super(),this['_urlService']=_0x4e95dd,this[_0x63c86e(0x3df)]=_0x284a98,this[_0x63c86e(0x265)]=_0x25c309,this[_0x63c86e(0xfc)]=_0x1c6541,this[_0x63c86e(0xb5)]=_0x3d6198,_0x21be4e?_0x21be4e==null||_0x21be4e[_0x63c86e(0x245)]()[_0x63c86e(0x372)](()=>this[_0x63c86e(0x3b6)]()):(this[_0x63c86e(0x3df)]['debug'](_0x63c86e(0x172),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x63c86e(0x3b6)]());}async[_0x36f281(0x3b6)](){const _0xb3d370=_0x36f281,_0x3a74ab=this[_0xb3d370(0x2b5)][_0xb3d370(0x37d)](_0xb3d370(0x179)),_0x17691e=this[_0xb3d370(0x2b5)][_0xb3d370(0x37d)]('type');if(!_0x3a74ab||!_0x17691e){this[_0xb3d370(0x3df)][_0xb3d370(0x177)](_0xb3d370(0x172),_0xb3d370(0x1c6));return;}switch(Number(_0x17691e)){case _0x4775b3[_0xb3d370(0x12e)]:{const _0x340c54=await this[_0xb3d370(0x1f1)](_0x3a74ab);this[_0xb3d370(0x1e0)](_0x340c54);break;}case _0x4775b3[_0xb3d370(0x4e1)]:{await this['_loadDoc'](_0x3a74ab);break;}default:{this[_0xb3d370(0x3df)][_0xb3d370(0x302)](_0xb3d370(0x172),_0xb3d370(0x431));break;}}}async[_0x36f281(0x1e0)](_0x4a9d42){const _0x4eb71e=_0x36f281;await this[_0x4eb71e(0x301)](_0x4a9d42),_0x4a9d42[_0x4eb71e(0xea)][_0x4eb71e(0x49c)](_0x30c949[_0x4eb71e(0x142)](this[_0x4eb71e(0x4d4)]))[_0x4eb71e(0x188)](_0x1a325a=>{const _0x43ca18=_0x4eb71e;_0x1a325a&&this[_0x43ca18(0x23a)](_0x1a325a);}),this['_urlService'][_0x4eb71e(0x2a5)][_0x4eb71e(0x49c)](_0x30c949['takeUntil'](this['dispose$']))[_0x4eb71e(0x188)](()=>this[_0x4eb71e(0x301)](_0x4a9d42));}[_0x36f281(0x23a)](_0x141aab,_0x35cb92=!0x1){const _0x5b6323=_0x36f281,_0x5b9a22=this[_0x5b6323(0x2b5)][_0x5b6323(0x37d)](_0x5b6323(0x46c));_0x141aab[_0x5b6323(0x353)]()!==_0x5b9a22&&this['_urlService'][_0x5b6323(0x2f7)](_0x5b6323(0x46c),_0x141aab[_0x5b6323(0x353)](),_0x35cb92);}async['_updateSubUnitFromURLParams'](_0x47797f){const _0x3d27f5=_0x36f281;var _0x3a4dbd;const _0x9ce911=this['_urlService']['getParam']('subunit');if(!_0x9ce911||!_0x47797f['getSheetBySheetId'](_0x9ce911)){const _0x773178=_0x47797f[_0x3d27f5(0x3fe)]()[0x0],_0x3055b1=_0x47797f[_0x3d27f5(0x16c)](_0x773178);if(!_0x3055b1)return;this['_updateURLWithCurrentState'](_0x3055b1,!0x0),await this[_0x3d27f5(0x265)]['executeCommand'](_0xec6805[_0x3d27f5(0xec)]['id'],{'unitId':_0x47797f[_0x3d27f5(0x4c0)](),'subUnitId':_0x773178});return;}((_0x3a4dbd=_0x47797f[_0x3d27f5(0x49b)]())==null?void 0x0:_0x3a4dbd['getSheetId']())!==_0x9ce911&&await this[_0x3d27f5(0x265)][_0x3d27f5(0x420)](_0xec6805['SetWorksheetActivateCommand']['id'],{'unitId':_0x47797f[_0x3d27f5(0x4c0)](),'subUnitId':_0x9ce911});}async[_0x36f281(0x1f1)](_0x2272ca){const _0x5d4e27=_0x36f281;let _0x4942c2=0x0;const _0x4b5fcb=await this[_0x5d4e27(0xfc)][_0x5d4e27(0x453)](_0x2272ca);return _0x4b5fcb&&(_0x4b5fcb['awaitingChangeset']||_0x4b5fcb['mutations']['length']!==0x0)&&(_0x4942c2=_0x4b5fcb[_0x5d4e27(0x141)]),_0x4942c2===0x0&&this[_0x5d4e27(0x3df)][_0x5d4e27(0x177)]('[DataLoaderController]',_0x5d4e27(0x136)),this[_0x5d4e27(0xb5)][_0x5d4e27(0x326)](_0x2272ca,_0x4942c2);}async['_loadDoc'](_0x4d81ba){const _0x23f046=_0x36f281;let _0x30dace=0x0;const _0x2f4093=await this[_0x23f046(0xfc)]['loadOfflineData'](_0x4d81ba);return _0x2f4093&&(_0x2f4093[_0x23f046(0x32b)]||_0x2f4093[_0x23f046(0x152)][_0x23f046(0x43f)]!==0x0)&&(_0x30dace=_0x2f4093[_0x23f046(0x141)]),_0x30dace===0x0&&this[_0x23f046(0x3df)][_0x23f046(0x177)]('[DataLoaderController]',_0x23f046(0x136)),this['_snapshotService'][_0x23f046(0xad)](_0x4d81ba,_0x30dace);}},_0x4238fe[_0x36f281(0x1f3)]=_0xbe49a9([_0x1a8666(0x0,_0x2863a7),_0x1a8666(0x1,_0x593949[_0x36f281(0x380)]),_0x1a8666(0x2,_0x593949[_0x36f281(0x38d)]),_0x1a8666(0x3,_0x593949[_0x36f281(0xb9)](_0x4238fe[_0x36f281(0xd2)])),_0x1a8666(0x4,_0x593949[_0x36f281(0xb9)](_0x4968b4[_0x36f281(0x183)])),_0x1a8666(0x5,_0x593949[_0x36f281(0xc8)](_0x172174['IRemoteInstanceService']))],_0x4238fe[_0x36f281(0x1f3)]);var _0x20ae76=Object[_0x36f281(0x49a)],_0x34aaf1=Object[_0x36f281(0x381)],_0x301c2a=(_0x558118,_0x578b1a,_0x5a5892,_0x37a179)=>{const _0x5ef9e1=_0x36f281;for(var _0x52f210=_0x37a179>0x1?void 0x0:_0x37a179?_0x34aaf1(_0x578b1a,_0x5a5892):_0x578b1a,_0x407111=_0x558118[_0x5ef9e1(0x43f)]-0x1,_0x421074;_0x407111>=0x0;_0x407111--)(_0x421074=_0x558118[_0x407111])&&(_0x52f210=(_0x37a179?_0x421074(_0x578b1a,_0x5a5892,_0x52f210):_0x421074(_0x52f210))||_0x52f210);return _0x37a179&&_0x52f210&&_0x20ae76(_0x578b1a,_0x5a5892,_0x52f210),_0x52f210;},_0x129d22=(_0x5bbd49,_0x1ed2a5)=>(_0x367205,_0x5bc9e9)=>_0x1ed2a5(_0x367205,_0x5bc9e9,_0x5bbd49);const _0x480b3c=_0x36f281(0x209),_0x2a3669='Univer';let _0x471f41=class extends _0x593949[_0x36f281(0x16a)]{constructor(_0x46f433,_0xbd49fc){const _0xdc7a65=_0x36f281;super(),this['_univerInstanceService']=_0x46f433,this[_0xdc7a65(0xdd)]=_0xbd49fc,this[_0xdc7a65(0x3b6)]();}[_0x36f281(0x3b6)](){const _0x378dc0=_0x36f281;this[_0x378dc0(0x196)](this[_0x378dc0(0x276)][_0x378dc0(0x4d5)][_0x378dc0(0x188)](()=>{const _0x31558b=_0x378dc0;var _0x1be989;const _0x705adc=this[_0x31558b(0x276)][_0x31558b(0x1f6)]();let _0x221b9f=(_0x1be989=this[_0x31558b(0xdd)][_0x31558b(0x3bd)](_0x480b3c))!=null?_0x1be989:_0x2a3669;_0x705adc instanceof _0x593949['Workbook']&&(_0x221b9f=_0x705adc['name']),document[_0x31558b(0x1cf)]=_0x221b9f;}));}};_0x471f41=_0x301c2a([_0x129d22(0x0,_0x593949[_0x36f281(0x1dc)]),_0x129d22(0x1,_0x593949[_0x36f281(0xe7)])],_0x471f41);var _0x3b0555=Object['defineProperty'],_0x5a3fd6=Object[_0x36f281(0x381)],_0x3f03ee=(_0x3f36d4,_0x2dbc98,_0x13635d,_0x47c883)=>{const _0x4ee004=_0x36f281;for(var _0x4f5dcc=_0x47c883>0x1?void 0x0:_0x47c883?_0x5a3fd6(_0x2dbc98,_0x13635d):_0x2dbc98,_0x228166=_0x3f36d4[_0x4ee004(0x43f)]-0x1,_0xd4624e;_0x228166>=0x0;_0x228166--)(_0xd4624e=_0x3f36d4[_0x228166])&&(_0x4f5dcc=(_0x47c883?_0xd4624e(_0x2dbc98,_0x13635d,_0x4f5dcc):_0xd4624e(_0x4f5dcc))||_0x4f5dcc);return _0x47c883&&_0x4f5dcc&&_0x3b0555(_0x2dbc98,_0x13635d,_0x4f5dcc),_0x4f5dcc;},_0x713913=(_0x451119,_0x457478)=>(_0x12f28e,_0x8cba67)=>_0x457478(_0x12f28e,_0x8cba67,_0x451119);let _0x2e20af=class{constructor(_0x215234,_0x3a3f04,_0x34cf3e){const _0x5f4a56=_0x36f281;this[_0x5f4a56(0xdd)]=_0x215234,this[_0x5f4a56(0x2be)]=_0x3a3f04,this[_0x5f4a56(0x232)]=_0x34cf3e,this['init']();}[_0x36f281(0x2bb)](){const _0x1bee5a=_0x36f281;this[_0x1bee5a(0x2be)][_0x1bee5a(0x155)]({'priority':0x1,'interceptor':(_0x4f4e07,_0x48f015)=>_0x48f015(_0x4f4e07)['pipe'](_0x30c949[_0x1bee5a(0x235)](async _0x36dff1=>{const _0x51fb82=_0x1bee5a,_0x353e98=_0x36dff1;if(_0x353e98[_0x51fb82(0x339)]===0x191&&window['confirm'](this[_0x51fb82(0x232)]['t'](_0x51fb82(0x1d4)))){const _0x251aa7=window['encodeURIComponent'](window[_0x51fb82(0x43d)][_0x51fb82(0x150)]);window[_0x51fb82(0x43d)]['href']=this[_0x51fb82(0x3e9)]()+_0x51fb82(0x1b3)+_0x251aa7;}return _0x353e98;}))});}['_getLoginPath'](){const _0x11ea38=_0x36f281;var _0x38d931,_0x38f758;const _0x36fdc6=this['_configService'][_0x11ea38(0x3bd)](_0x40bc0f),_0x4fdfb7=this[_0x11ea38(0xdd)][_0x11ea38(0x3bd)](_0xfe6e3e);return(_0x38f758=(_0x38d931=_0x4fdfb7==null?void 0x0:_0x4fdfb7['loginUrlKey'])!=null?_0x38d931:_0x36fdc6)!=null?_0x38f758:_0x945847;}};_0x2e20af=_0x3f03ee([_0x713913(0x0,_0x593949[_0x36f281(0xe7)]),_0x713913(0x1,_0x593949[_0x36f281(0xb9)](_0x4c2b25[_0x36f281(0x426)])),_0x713913(0x2,_0x593949['Inject'](_0x593949[_0x36f281(0x2bc)]))],_0x2e20af);var _0x2ef9f4=Object['defineProperty'],_0x35d30e=Object['getOwnPropertyDescriptor'],_0x19d738=(_0xe952c2,_0x42d7d0,_0x18d7c8,_0x126883)=>{for(var _0x532d5d=_0x126883>0x1?void 0x0:_0x126883?_0x35d30e(_0x42d7d0,_0x18d7c8):_0x42d7d0,_0x145281=_0xe952c2['length']-0x1,_0x4d9ba7;_0x145281>=0x0;_0x145281--)(_0x4d9ba7=_0xe952c2[_0x145281])&&(_0x532d5d=(_0x126883?_0x4d9ba7(_0x42d7d0,_0x18d7c8,_0x532d5d):_0x4d9ba7(_0x532d5d))||_0x532d5d);return _0x126883&&_0x532d5d&&_0x2ef9f4(_0x42d7d0,_0x18d7c8,_0x532d5d),_0x532d5d;},_0x5db52a=(_0x55f7f2,_0x1928ef)=>(_0x204525,_0x3092b7)=>_0x1928ef(_0x204525,_0x3092b7,_0x55f7f2);const _0x53a088=_0x36f281(0x170),_0x4bf1ad=_0x36f281(0x28d);_0x4238fe['AuthzIoHttpService']=class extends _0x593949[_0x36f281(0x16a)]{constructor(_0x1113f1,_0x507a73){const _0x12e57b=_0x36f281;super(),this[_0x12e57b(0x14d)]=_0x1113f1,this[_0x12e57b(0xdd)]=_0x507a73,this['_initMergeInterceptor']();}['_initMergeInterceptor'](){const _0x384d6b=_0x36f281,_0x3ec204=this;this['disposeWithMe'](this[_0x384d6b(0x14d)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x4c2b25['MergeInterceptorFactory']({'isMatch'(_0x643bce){const _0x52b067=_0x384d6b;var _0x250efc;if(_0x643bce['method']===_0x52b067(0x2bf)&&((_0x250efc=_0x643bce[_0x52b067(0x368)])!=null&&_0x250efc[_0x52b067(0x256)])){const {objectID:_0x3dcfd7,objectType:_0x12fc75}=_0x643bce[_0x52b067(0x368)][_0x52b067(0x256)]||{};if(!_0x3dcfd7||_0x12fc75===void 0x0)return!0x1;const _0x5cc48b=_0x3ec204[_0x52b067(0x2d9)]()+'/'+_0x12fc75+'/object/'+_0x3dcfd7+_0x52b067(0x2fd);if(_0x643bce[_0x52b067(0x239)]===_0x5cc48b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5b6b23){const _0x4beaf4=_0x384d6b;var _0x4857fb;return(_0x4857fb=_0x5b6b23[_0x4beaf4(0x368)])==null?void 0x0:_0x4857fb[_0x4beaf4(0x256)];},'mergeParamsToRequest'(_0x3a38e7,_0x170ec8){const _0x46de2e=_0x384d6b,_0x249111=_0x3ec204[_0x46de2e(0x2d9)]()+_0x46de2e(0x2fb),_0x4131e8=_0x3a38e7['reduce']((_0x2c5faf,_0x3e55a9)=>{const _0x1f5362=_0x46de2e,{unitID:_0x1600e1,objectID:_0x5bb0b6,objectType:_0x266af9,actions:_0x5d31da}=_0x3e55a9;return _0x2c5faf[_0x1600e1]||(_0x2c5faf[_0x1600e1]={}),_0x2c5faf[_0x1600e1][_0x5bb0b6]||(_0x2c5faf[_0x1600e1][_0x5bb0b6]={'objectID':_0x5bb0b6,'objectType':_0x266af9,'actions':[]}),_0x2c5faf[_0x1600e1][_0x5bb0b6][_0x1f5362(0x3b0)][_0x1f5362(0x43c)](..._0x5d31da),_0x2c5faf;},{}),_0x5f4493=[];for(const _0x4fa5e7 in _0x4131e8)for(const _0x2ec48e in _0x4131e8[_0x4fa5e7]){const {actions:_0x336563,objectType:_0x32de66}=_0x4131e8[_0x4fa5e7][_0x2ec48e],_0x338537=[...new Set(_0x336563)];_0x5f4493[_0x46de2e(0x43c)]({'unitID':_0x4fa5e7,'objectID':_0x2ec48e,'objectType':_0x32de66,'actions':_0x338537});}return new _0x4c2b25[(_0x46de2e(0x2f5))](_0x46de2e(0x2bf),_0x249111,{'headers':_0x170ec8['headers'],'withCredentials':_0x170ec8[_0x46de2e(0x11a)],'responseType':_0x170ec8[_0x46de2e(0x35b)],'body':{'requests':_0x5f4493}});}},{'distributeResult'(_0x2cd386,_0x4160eb){const _0x1836c4=_0x384d6b,{objectActions:_0x2286aa}=_0x2cd386;return _0x4160eb[_0x1836c4(0x1de)](_0x5265d2=>{const _0x5c4bce=_0x1836c4,{unitID:_0x59deee,objectID:_0x57700b,actions:_0x46dfa4}=_0x5265d2,_0x394281=_0x2286aa[_0x5c4bce(0x1fd)](_0x37cda5=>_0x37cda5[_0x5c4bce(0x2ba)]===_0x59deee&&_0x37cda5['objectID']===_0x57700b),_0x53fd15=_0x46dfa4['map'](_0x438057=>_0x394281==null?void 0x0:_0x394281['actions'][_0x5c4bce(0x1fd)](_0x11de9e=>_0x11de9e[_0x5c4bce(0x3f9)]===_0x438057))[_0x5c4bce(0x218)](_0xe648c3=>!!_0xe648c3);return{'config':_0x5265d2,'result':{'actions':_0x53fd15,'error':_0x2cd386[_0x5c4bce(0x302)]}};});}})}));}['_getAPIPrefixPath'](){const _0x50e21e=_0x36f281;var _0x2d01f3,_0x22d8e5;const _0x12e0d3=this['_configService']['getConfig'](_0x53a088),_0x5ab16a=this[_0x50e21e(0xdd)]['getConfig'](_0xfe6e3e);return(_0x22d8e5=(_0x2d01f3=_0x5ab16a==null?void 0x0:_0x5ab16a[_0x50e21e(0x1a6)])!=null?_0x2d01f3:_0x12e0d3)!=null?_0x22d8e5:_0x4bf1ad;}async[_0x36f281(0x4cc)](_0x3e9298){const _0xf9fed5=_0x36f281,_0x4a3af5=this[_0xf9fed5(0x2d9)]()+'/'+_0x3e9298[_0xf9fed5(0x459)]+_0xf9fed5(0x355);return(await this['_HTTPService'][_0xf9fed5(0x13c)](_0x4a3af5,{'body':_0x3e9298}))['body'][_0xf9fed5(0x1ce)]||'';}async[_0x36f281(0x2f0)](_0x1b54dd){const _0x373c36=_0x36f281,_0x5a30ab=this[_0x373c36(0x2d9)]()+'/-/object/list';return(await this['_HTTPService']['post'](_0x5a30ab,{'body':_0x1b54dd}))[_0x373c36(0x256)][_0x373c36(0x38b)];}async[_0x36f281(0x266)](_0x5cf139){const _0x3f1c31=_0x36f281,_0x56cc06=this[_0x3f1c31(0x2d9)]()+'/'+_0x5cf139[_0x3f1c31(0x459)]+_0x3f1c31(0xf3)+_0x5cf139[_0x3f1c31(0x1ce)];await this['_HTTPService'][_0x3f1c31(0x114)](_0x56cc06,{'body':_0x5cf139});}async[_0x36f281(0x366)](_0x2cd959){const _0x23215=_0x36f281,_0x1c9231=this['_getAPIPrefixPath']()+'/'+_0x2cd959[_0x23215(0x459)]+_0x23215(0xf3)+_0x2cd959[_0x23215(0x1ce)]+'/allowed';return(await this[_0x23215(0x14d)][_0x23215(0x13c)](_0x1c9231,{'body':_0x2cd959}))['body'][_0x23215(0x3b0)];}async['batchAllowed'](_0x10f539){const _0x23d250=_0x36f281,_0x2cffa9=this[_0x23d250(0x2d9)]()+_0x23d250(0x2fb);return(await this[_0x23d250(0x14d)][_0x23d250(0x13c)](_0x2cffa9,{'body':{'requests':_0x10f539}}))[_0x23d250(0x256)][_0x23d250(0x2d0)];}async[_0x36f281(0x448)](_0x285d63){const _0x446177=_0x36f281,_0x490f26=this[_0x446177(0x2d9)]()+'/'+_0x285d63[_0x446177(0x459)]+_0x446177(0x3f1),_0x20267d=await this[_0x446177(0x14d)][_0x446177(0x13c)](_0x490f26,{'body':_0x285d63});return{'roles':_0x20267d[_0x446177(0x256)][_0x446177(0x234)],'actions':_0x20267d[_0x446177(0x256)]['actions']};}async[_0x36f281(0x32e)](_0x3da400){const _0x1b018b=_0x36f281,_0x4d61b0=this[_0x1b018b(0x2d9)]()+_0x1b018b(0xd3);await this[_0x1b018b(0x14d)][_0x1b018b(0x393)](_0x4d61b0,{'params':{'collaboratorID':_0x3da400[_0x1b018b(0x269)],'objectID':_0x3da400[_0x1b018b(0x1ce)],'unitID':_0x3da400['unitID']}});}async['updateCollaborator'](_0x2d344f){const _0x530329=_0x36f281,_0x164129=this['_getAPIPrefixPath']()+_0x530329(0xd3);await this[_0x530329(0x14d)]['patch'](_0x164129,{'body':_0x2d344f});}async[_0x36f281(0x342)](_0xbac71e){const _0x5b8922=_0x36f281,_0x221e79=this['_getAPIPrefixPath']()+_0x5b8922(0xd3);await this['_HTTPService'][_0x5b8922(0x13c)](_0x221e79,{'body':_0xbac71e});}async['listCollaborators'](_0x3ee79b){const _0x1d9192=_0x36f281,_0x416c86=this[_0x1d9192(0x2d9)]()+'/collaborator';return(await this[_0x1d9192(0x14d)][_0x1d9192(0x14e)](_0x416c86,{'params':{'objectID':_0x3ee79b[_0x1d9192(0x1ce)],'unitID':_0x3ee79b[_0x1d9192(0x2ba)]}}))[_0x1d9192(0x256)][_0x1d9192(0x17c)];}async['putCollaborators'](_0x5222ac){const _0xbb1f4a=_0x36f281,_0x596dea=this[_0xbb1f4a(0x2d9)]()+_0xbb1f4a(0xd3);await this[_0xbb1f4a(0x14d)]['put'](_0x596dea,{'body':_0x5222ac});}},_0x4238fe[_0x36f281(0x3be)]=_0x19d738([_0x5db52a(0x0,_0x593949[_0x36f281(0xb9)](_0x4c2b25[_0x36f281(0x426)])),_0x5db52a(0x1,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0xe7)]))],_0x4238fe['AuthzIoHttpService']);var _0x20fef0=Object[_0x36f281(0x49a)],_0xbc48c0=Object[_0x36f281(0x381)],_0x3cdb4f=(_0x1a5d5c,_0xec4aa5,_0x2deea3,_0x5513fc)=>{const _0x3dae9b=_0x36f281;for(var _0xdafab1=_0x5513fc>0x1?void 0x0:_0x5513fc?_0xbc48c0(_0xec4aa5,_0x2deea3):_0xec4aa5,_0x2800b4=_0x1a5d5c[_0x3dae9b(0x43f)]-0x1,_0x5ef953;_0x2800b4>=0x0;_0x2800b4--)(_0x5ef953=_0x1a5d5c[_0x2800b4])&&(_0xdafab1=(_0x5513fc?_0x5ef953(_0xec4aa5,_0x2deea3,_0xdafab1):_0x5ef953(_0xdafab1))||_0xdafab1);return _0x5513fc&&_0xdafab1&&_0x20fef0(_0xec4aa5,_0x2deea3,_0xdafab1),_0xdafab1;},_0x4dbfb4=(_0xb2ed15,_0x53384a)=>(_0x4adfd9,_0x367a29)=>_0x53384a(_0x4adfd9,_0x367a29,_0xb2ed15);let _0x131dae=class{constructor(_0xc64324){const _0x429a3d=_0x36f281;this[_0x429a3d(0x2be)]=_0xc64324,this[_0x429a3d(0x285)]();}[_0x36f281(0x285)](){const _0x417ba8=_0x36f281;this[_0x417ba8(0x2be)][_0x417ba8(0x155)]({'interceptor':(_0x523ec0,_0x5c5c29)=>{const _0x33559a=_0x417ba8,_0x1965bb=_0x523ec0['headers'],_0x483c81=_0x56e63b[_0x33559a(0x423)]();return _0x483c81&&_0x1965bb[_0x33559a(0x2bd)](_0x33559a(0x193),_0x483c81),_0x5c5c29(_0x523ec0);}});}};_0x131dae=_0x3cdb4f([_0x4dbfb4(0x0,_0x593949[_0x36f281(0xb9)](_0x4c2b25['HTTPService']))],_0x131dae);var _0x35b515=Object[_0x36f281(0x49a)],_0x325f4d=Object[_0x36f281(0x381)],_0xf6657c=(_0x21834c,_0x41b5f2,_0x3d9b44,_0x3fb083)=>{const _0x1e0a95=_0x36f281;for(var _0x2348f5=_0x3fb083>0x1?void 0x0:_0x3fb083?_0x325f4d(_0x41b5f2,_0x3d9b44):_0x41b5f2,_0x152c2d=_0x21834c[_0x1e0a95(0x43f)]-0x1,_0x35e828;_0x152c2d>=0x0;_0x152c2d--)(_0x35e828=_0x21834c[_0x152c2d])&&(_0x2348f5=(_0x3fb083?_0x35e828(_0x41b5f2,_0x3d9b44,_0x2348f5):_0x35e828(_0x2348f5))||_0x2348f5);return _0x3fb083&&_0x2348f5&&_0x35b515(_0x41b5f2,_0x3d9b44,_0x2348f5),_0x2348f5;},_0x123bae=(_0x5883d5,_0x5644c4)=>(_0x4c1a4d,_0x50b306)=>_0x5644c4(_0x4c1a4d,_0x50b306,_0x5883d5);const _0xe87d0b=[_0x36f281(0x35d),_0x36f281(0x4e5),'image/jpg',_0x36f281(0x166),_0x36f281(0x34d)],_0x3b066f=0x5*0x400*0x400,_0x7cb682='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',_0x3dff72=_0x36f281(0x486),_0x4b4605='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_0xfd321b='/universer-api/file/{fileID}/sign-url';_0x4238fe[_0x36f281(0x456)]=class{constructor(_0x5d3bec,_0x298387,_0x43305e){const _0x2e7312=_0x36f281;_0x3e0772(this,_0x2e7312(0x37e),0x0),_0x3e0772(this,_0x2e7312(0xe2),new _0x30c949[(_0x2e7312(0x20c))]()),_0x3e0772(this,_0x2e7312(0x267),this['_change$']),_0x3e0772(this,_0x2e7312(0xfe),new Map()),(this[_0x2e7312(0x2be)]=_0x5d3bec,this[_0x2e7312(0xdd)]=_0x298387,this[_0x2e7312(0x276)]=_0x43305e);}['setWaitCount'](_0x4dc761){const _0x149359=_0x36f281;this[_0x149359(0x37e)]=_0x4dc761,this[_0x149359(0xe2)][_0x149359(0x4e6)](_0x4dc761);}['getImageSourceCache'](_0x2878ea,_0x496607){const _0x403262=_0x36f281;if(_0x496607===_0x2b881e[_0x403262(0x4b6)][_0x403262(0x45f)]){const _0x4b1449=new Image();return _0x4b1449[_0x403262(0x494)]=_0x2878ea,_0x4b1449;}return this[_0x403262(0xfe)][_0x403262(0x14e)](_0x2878ea);}[_0x36f281(0x1df)](_0x351f98,_0x2ffc72,_0x15f1a8){const _0x29e8cc=_0x36f281;_0x2ffc72===_0x2b881e['ImageSourceType'][_0x29e8cc(0x45f)]||_0x15f1a8==null||this[_0x29e8cc(0xfe)][_0x29e8cc(0x2bd)](_0x351f98,_0x15f1a8);}async[_0x36f281(0xfa)](_0x2cfb1b){const _0x4e9ca3=_0x36f281;try{const _0x1721ab=this[_0x4e9ca3(0x1fa)](this[_0x4e9ca3(0x123)](),''+_0x2cfb1b),_0x596ce7=(await this['_httpService'][_0x4e9ca3(0x14e)](_0x1721ab))[_0x4e9ca3(0x256)];if(_0x596ce7[_0x4e9ca3(0x302)]&&_0x596ce7[_0x4e9ca3(0x302)][_0x4e9ca3(0x2a3)]===_0x52baf3['OK']){const _0x18d3d7=new URL(_0x596ce7[_0x4e9ca3(0x239)],this[_0x4e9ca3(0x125)]())['toString']();return Promise[_0x4e9ca3(0x122)](_0x18d3d7);}return Promise[_0x4e9ca3(0x167)](_0x596ce7[_0x4e9ca3(0x302)]);}catch(_0x4cca9b){return Promise[_0x4e9ca3(0x167)](_0x4cca9b);}}async[_0x36f281(0x3ea)](_0x29e84b){const _0x319acd=_0x36f281;let _0x5d4641='';if(!_0xe87d0b[_0x319acd(0x489)](_0x29e84b[_0x319acd(0x17b)]))return this[_0x319acd(0x1be)](),Promise[_0x319acd(0x167)](new Error(_0x2b881e['ImageUploadStatusType'][_0x319acd(0xa9)]));if(_0x29e84b[_0x319acd(0x4a3)]>_0x3b066f)return this[_0x319acd(0x1be)](),Promise[_0x319acd(0x167)](new Error(_0x2b881e[_0x319acd(0x2f8)][_0x319acd(0x33b)]));try{const _0x41c1e0=new FormData();_0x41c1e0['append'](_0x319acd(0x37a),_0x29e84b);const _0x34e478=this[_0x319acd(0x276)][_0x319acd(0x1f6)](),_0x5eeec6=_0x34e478==null?void 0x0:_0x34e478[_0x319acd(0x4c0)]();if(!_0x5eeec6)throw new Error(_0x319acd(0xc2));const _0xdbc19=this['_getUploadFileURL']()+_0x319acd(0xcb)+_0x29e84b['size'][_0x319acd(0x13d)]()+'&source='+_0x34a97d[_0x319acd(0x286)]+'&assign='+encodeURIComponent(_0x5eeec6),_0x550bc3=await(await fetch(_0xdbc19,{'method':'POST','body':_0x41c1e0}))[_0x319acd(0x332)]();if(typeof _0x550bc3['FileId']!=_0x319acd(0x2a8))return this[_0x319acd(0x1be)](),Promise['reject'](new Error(_0x2b881e[_0x319acd(0x2f8)][_0x319acd(0x2f3)]));_0x5d4641=_0x550bc3[_0x319acd(0x465)];}catch{return this[_0x319acd(0x1be)](),Promise['reject'](new Error(_0x2b881e[_0x319acd(0x2f8)][_0x319acd(0x2f3)]));}return new Promise((_0x47120c,_0x18592a)=>{const _0x1a947a=_0x319acd,_0x4399d7=new FileReader();_0x4399d7[_0x1a947a(0x229)](_0x29e84b),_0x4399d7[_0x1a947a(0x396)]=_0x628fce=>{const _0x289cfb=_0x1a947a;var _0x702fb8;const _0x37d28e=(_0x702fb8=_0x628fce[_0x289cfb(0x4cd)])==null?void 0x0:_0x702fb8['result'];if(_0x37d28e==null){this[_0x289cfb(0x1be)](),_0x18592a(new Error(_0x2b881e['ImageUploadStatusType'][_0x289cfb(0x2f3)]));return;}const _0x4eb02d=_0x593949[_0x289cfb(0x205)][_0x289cfb(0x433)](0x6);_0x47120c({'imageId':_0x4eb02d,'imageSourceType':_0x2b881e[_0x289cfb(0x4b6)][_0x289cfb(0x3db)],'source':_0x5d4641,'base64Cache':_0x37d28e,'status':_0x2b881e[_0x289cfb(0x2f8)]['SUCCUSS']}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x20f35a=_0x36f281;var _0x258005,_0x43350a;const _0x246352=this[_0x20f35a(0xdd)]['getConfig'](_0x7cb682),_0x4dd29f=this[_0x20f35a(0xdd)]['getConfig'](_0xfe6e3e);return(_0x43350a=(_0x258005=_0x4dd29f==null?void 0x0:_0x4dd29f[_0x20f35a(0x327)])!=null?_0x258005:_0x246352)!=null?_0x43350a:_0x3dff72;}[_0x36f281(0x123)](){const _0x820333=_0x36f281;var _0x3d0af6,_0x301bb8;const _0x43526c=this[_0x820333(0xdd)][_0x820333(0x3bd)](_0x4b4605),_0x5adeeb=this[_0x820333(0xdd)][_0x820333(0x3bd)](_0xfe6e3e);return(_0x301bb8=(_0x3d0af6=_0x5adeeb==null?void 0x0:_0x5adeeb[_0x820333(0x3a2)])!=null?_0x3d0af6:_0x43526c)!=null?_0x301bb8:_0xfd321b;}[_0x36f281(0x125)](){const _0x14af70=_0x36f281;var _0x146ffd;const _0x513572=this['_configService'][_0x14af70(0x3bd)](_0xfe6e3e);return(_0x146ffd=_0x513572==null?void 0x0:_0x513572[_0x14af70(0x1a2)])!=null?_0x146ffd:location['origin'];}[_0x36f281(0x1fa)](_0x172508,_0x264036){const _0x5f4e77=_0x36f281;return _0x172508['replace'](_0x5f4e77(0x2e1),_0x264036);}[_0x36f281(0x1be)](){const _0x9d77b=_0x36f281;this[_0x9d77b(0x37e)]-=0x1,this['_change$']['next'](this['_waitCount']);}},_0x4238fe[_0x36f281(0x456)]=_0xf6657c([_0x123bae(0x0,_0x593949[_0x36f281(0xb9)](_0x4c2b25[_0x36f281(0x426)])),_0x123bae(0x1,_0x593949[_0x36f281(0xe7)]),_0x123bae(0x2,_0x593949['Inject'](_0x593949[_0x36f281(0x1dc)]))],_0x4238fe[_0x36f281(0x456)]);var _0x31305b=Object[_0x36f281(0x49a)],_0xf6f75d=Object[_0x36f281(0x381)],_0x4f444a=(_0x2bc589,_0x9ad8dd,_0x256b5d,_0x2bd06b)=>{const _0x284c0b=_0x36f281;for(var _0x17f36f=_0x2bd06b>0x1?void 0x0:_0x2bd06b?_0xf6f75d(_0x9ad8dd,_0x256b5d):_0x9ad8dd,_0x537158=_0x2bc589[_0x284c0b(0x43f)]-0x1,_0x122f5f;_0x537158>=0x0;_0x537158--)(_0x122f5f=_0x2bc589[_0x537158])&&(_0x17f36f=(_0x2bd06b?_0x122f5f(_0x9ad8dd,_0x256b5d,_0x17f36f):_0x122f5f(_0x17f36f))||_0x17f36f);return _0x2bd06b&&_0x17f36f&&_0x31305b(_0x9ad8dd,_0x256b5d,_0x17f36f),_0x17f36f;},_0x20bc53=(_0x63f27a,_0x57fef2)=>(_0x5afcc5,_0x44565c)=>_0x57fef2(_0x5afcc5,_0x44565c,_0x63f27a);let _0x33dc8d=class extends _0x593949[_0x36f281(0x130)]{constructor(_0x5f473c,_0x593c73,_0x222804,_0x245b3e,_0x51ba14){const _0x1e7dbb=_0x36f281;super(),this[_0x1e7dbb(0xf1)]=_0x5f473c,this['_univerInstanceService']=_0x593c73,this[_0x1e7dbb(0x397)]=_0x222804,this[_0x1e7dbb(0x1c5)]=_0x245b3e,this[_0x1e7dbb(0x36f)]=_0x51ba14,this['_initUnitPermissionChange'](),this[_0x1e7dbb(0x34e)]();}[_0x36f281(0x34e)](){const _0xb445a7=_0x36f281,_0x2c1503=async _0x56856f=>{const _0x19373a=_0x4c16;(await this['_collaborationSessionService']['requireSession'](_0x56856f))[_0x19373a(0x44d)][_0x19373a(0x49c)](_0x218e56['filter'](_0x18e6ef=>_0x18e6ef[_0x19373a(0x10a)]===_0x4968b4['CollaborationEvent'][_0x19373a(0x451)]),_0x218e56[_0x19373a(0x142)](this[_0x19373a(0x4d4)]))[_0x19373a(0x188)](_0x3f548e=>{const _0x5aed58=_0x19373a,_0x40d162=_0x3f548e,{reason:_0x3ac3e8}=_0x40d162[_0x5aed58(0x298)];this['_injector']['get'](_0xc44033['IMessageService'])[_0x5aed58(0x348)]({'type':_0x2b27fc['MessageType'][_0x5aed58(0x40f)],'content':this['_localeService']['t'](_0x5aed58(0x1d1))+'('+_0x3ac3e8+')'}),this[_0x5aed58(0x397)]['updatePermissionPoint'](new _0xec6805[(_0x5aed58(0x1d2))](_0x56856f)['id'],!0x1),this[_0x5aed58(0x1c5)][_0x5aed58(0x1bb)](_0x56856f);});};_0x30c949['merge'](this[_0xb445a7(0x276)]['getTypeOfUnitAdded$'](_0x593949[_0xb445a7(0xaf)]['UNIVER_SHEET']),this[_0xb445a7(0x276)][_0xb445a7(0x19c)](_0x593949[_0xb445a7(0xaf)][_0xb445a7(0x4e1)]))[_0xb445a7(0x49c)](_0x218e56[_0xb445a7(0x1de)](_0x3951d8=>_0x3951d8['getUnitId']()),_0x218e56['filter'](_0x5d6c5a=>!_0x593949[_0xb445a7(0x3e0)](_0x5d6c5a)),_0x218e56[_0xb445a7(0x142)](this['dispose$']))[_0xb445a7(0x188)](_0x502efe=>{_0x2c1503(_0x502efe);});}[_0x36f281(0x441)](){const _0x5f217e=_0x36f281,_0x47c5a1=async _0x27b88d=>{const _0x3fdd36=_0x4c16;(await this[_0x3fdd36(0x1c5)]['requireSession'](_0x27b88d))['event$'][_0x3fdd36(0x49c)](_0x218e56[_0x3fdd36(0x218)](_0x4dbcd6=>_0x4dbcd6[_0x3fdd36(0x10a)]===_0x4968b4['CollaborationEvent'][_0x3fdd36(0x299)]),_0x218e56[_0x3fdd36(0x142)](this[_0x3fdd36(0x4d4)]))['subscribe'](_0x270a1e=>{const _0x22560e=_0x3fdd36,_0x35a299=_0x270a1e,{objectId:_0x5eb797}=_0x35a299[_0x22560e(0x298)],_0x4bf781=this[_0x22560e(0xf1)][_0x22560e(0x14e)](_0x35ed85[_0x22560e(0x403)]);_0x5eb797===_0x27b88d?_0x4bf781[_0x22560e(0x15d)](_0x27b88d):_0x4bf781[_0x22560e(0x291)](_0x27b88d,_0x5eb797);});};_0x30c949[_0x5f217e(0x27f)](this[_0x5f217e(0x276)][_0x5f217e(0x19c)](_0x593949[_0x5f217e(0xaf)]['UNIVER_SHEET']),this[_0x5f217e(0x276)]['getTypeOfUnitAdded$'](_0x593949[_0x5f217e(0xaf)][_0x5f217e(0x4e1)]))[_0x5f217e(0x49c)](_0x218e56[_0x5f217e(0x1de)](_0x5d9710=>_0x5d9710[_0x5f217e(0x4c0)]()),_0x218e56[_0x5f217e(0x218)](_0x434d29=>!_0x593949['isInternalEditorID'](_0x434d29)),_0x218e56[_0x5f217e(0x142)](this[_0x5f217e(0x4d4)]))[_0x5f217e(0x188)](_0x1809ad=>{_0x47c5a1(_0x1809ad);});}};_0x33dc8d=_0x4f444a([_0x20bc53(0x0,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0xa8)])),_0x20bc53(0x1,_0x593949[_0x36f281(0x1dc)]),_0x20bc53(0x2,_0x593949[_0x36f281(0x191)]),_0x20bc53(0x3,_0x593949[_0x36f281(0xb9)](_0x4238fe['CollaborationSessionService'])),_0x20bc53(0x4,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0x2bc)]))],_0x33dc8d);var _0x2989cb=Object[_0x36f281(0x49a)],_0xbb894a=Object[_0x36f281(0x381)],_0x456626=(_0x38d2fc,_0x1e1d4d,_0x1ee3fe,_0x422f4c)=>{const _0x30d443=_0x36f281;for(var _0x51b643=_0x422f4c>0x1?void 0x0:_0x422f4c?_0xbb894a(_0x1e1d4d,_0x1ee3fe):_0x1e1d4d,_0x47379d=_0x38d2fc[_0x30d443(0x43f)]-0x1,_0x58b95d;_0x47379d>=0x0;_0x47379d--)(_0x58b95d=_0x38d2fc[_0x47379d])&&(_0x51b643=(_0x422f4c?_0x58b95d(_0x1e1d4d,_0x1ee3fe,_0x51b643):_0x58b95d(_0x51b643))||_0x51b643);return _0x422f4c&&_0x51b643&&_0x2989cb(_0x1e1d4d,_0x1ee3fe,_0x51b643),_0x51b643;},_0x3700e5=(_0x4b077e,_0x555f73)=>(_0x3943d2,_0x450dfa)=>_0x555f73(_0x3943d2,_0x450dfa,_0x4b077e);_0x4238fe['SnapshotServerOverHTTPService']=class{constructor(_0xca42da,_0x509503){const _0x1c951d=_0x36f281;this[_0x1c951d(0xdd)]=_0xca42da,this['_httpService']=_0x509503;}async['getUnitOnRev'](_0x4a5db2,_0x58edfa){const _0x2239ff=_0x36f281;var _0x33f7b8;const {unitID:_0x54ca0b,type:_0x4b0611,revision:_0x10c6d4=0x0}=_0x58edfa,_0x1e5c5b=this['_getSnapshotAPIPrefix']()+'/'+_0x4b0611+'/unit/'+_0x54ca0b+'/rev/'+_0x10c6d4,_0x3ebad3=(await this['_httpService']['get'](_0x1e5c5b))[_0x2239ff(0x256)],_0x48b967=(_0x33f7b8=_0x3ebad3[_0x2239ff(0x314)])==null?void 0x0:_0x33f7b8[_0x2239ff(0x272)];if(_0x48b967){const _0x466cef=_0x48b967==null?void 0x0:_0x48b967[_0x2239ff(0x4a1)],_0x5070dc=_0x4968b4[_0x2239ff(0x2b7)][_0x2239ff(0x22e)](_0x4968b4['b64DecodeUnicode'](_0x466cef));_0x48b967[_0x2239ff(0x4a1)]=_0x5070dc,Object['entries'](_0x48b967[_0x2239ff(0x281)])['forEach'](([,_0xdef50b])=>{const _0x430376=_0x2239ff,_0x25db27=_0xdef50b['originalMeta'],_0x85e57e=_0x4968b4['textEncoder'][_0x430376(0x22e)](_0x4968b4['b64DecodeUnicode'](_0x25db27));_0xdef50b['originalMeta']=_0x85e57e;});}return _0x3ebad3;}async[_0x36f281(0x38f)](_0x2c42f9,_0x385631){const _0x2ea763=_0x36f281,{unitID:_0x5b5500,type:_0x6ed45b,blockID:_0x1b3888}=_0x385631,_0xac2995=this[_0x2ea763(0xdc)]()+'/'+_0x6ed45b+_0x2ea763(0x2e5)+_0x5b5500+_0x2ea763(0x470)+_0x1b3888;return(await this['_httpService'][_0x2ea763(0x14e)](_0xac2995))['body'];}async[_0x36f281(0x171)](_0x59146d,_0x249f1e){const _0x236344=_0x36f281,{unitID:_0x182823,type:_0x4e1407,blockID:_0x179510}=_0x249f1e,_0x86b84b=this['_getAPIPrefix']()+_0x236344(0x470)+_0x4e1407+_0x236344(0x2e5)+_0x182823+'/block/'+_0x179510;return(await this[_0x236344(0x2be)][_0x236344(0x14e)](_0x86b84b))[_0x236344(0x256)];}async[_0x36f281(0x471)](_0x312df6,_0x28ecab){const _0x1da5b7=_0x36f281,{unitID:_0x9178b2,type:_0x390ecf,from:_0x9b9422,to:_0x22e39d}=_0x28ecab,_0x5d3439=this[_0x1da5b7(0xdc)]()+'/'+_0x390ecf+_0x1da5b7(0x2e5)+_0x9178b2+_0x1da5b7(0x335)+_0x9b9422+_0x1da5b7(0x23d)+_0x22e39d;return(await this[_0x1da5b7(0x2be)][_0x1da5b7(0x14e)](_0x5d3439))[_0x1da5b7(0x256)];}['_getSnapshotAPIPrefix'](){const _0x39d0a5=_0x36f281;var _0x1d94ae;return(_0x1d94ae=this[_0x39d0a5(0xdd)]['getConfig'](_0x418a13))!=null?_0x1d94ae:this[_0x39d0a5(0xdc)]();}['_getAPIPrefix'](){const _0x42b2f1=_0x36f281;var _0x56ee07,_0x569b9c;const _0x57e47c=this[_0x42b2f1(0xdd)][_0x42b2f1(0x3bd)](_0x3f5413),_0x3a5033=this[_0x42b2f1(0xdd)][_0x42b2f1(0x3bd)](_0xfe6e3e);return(_0x569b9c=(_0x56ee07=_0x3a5033==null?void 0x0:_0x3a5033[_0x42b2f1(0x1b4)])!=null?_0x56ee07:_0x57e47c)!=null?_0x569b9c:_0x227a95;}async[_0x36f281(0x41a)](_0x50ecc5,_0x3d253b){const _0x177602=_0x36f281,_0x4ad7cd=_0x177602(0x317)+_0x3d253b['type']+_0x177602(0x2e5)+_0x3d253b['unitID']+_0x177602(0x44a);return(await this['_httpService'][_0x177602(0x14e)](_0x4ad7cd,{'params':{'resourceId':JSON[_0x177602(0xc1)](_0x3d253b[_0x177602(0x120)])}}))['body'];}[_0x36f281(0x4be)](){const _0x2a96c9=_0x36f281;throw new Error(_0x2a96c9(0x24e));}['saveSheetBlock'](){const _0x4cf5de=_0x36f281;throw new Error(_0x4cf5de(0x24e));}[_0x36f281(0x2c3)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x36f281(0x227)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x36f281(0x1c1)](){const _0x3c8a9f=_0x36f281;throw new Error(_0x3c8a9f(0x24e));}},_0x4238fe[_0x36f281(0x4a6)]=_0x456626([_0x3700e5(0x0,_0x593949[_0x36f281(0xe7)]),_0x3700e5(0x1,_0x593949[_0x36f281(0xb9)](_0x4c2b25['HTTPService']))],_0x4238fe['SnapshotServerOverHTTPService']);var _0x3f71a6=Object[_0x36f281(0x49a)],_0x51dea4=Object[_0x36f281(0x381)],_0xf42ea2=(_0x1720d1,_0x262048,_0xf64f20,_0x2b8803)=>{const _0x46962d=_0x36f281;for(var _0x1aa46f=_0x2b8803>0x1?void 0x0:_0x2b8803?_0x51dea4(_0x262048,_0xf64f20):_0x262048,_0x22e82b=_0x1720d1[_0x46962d(0x43f)]-0x1,_0x2d5e81;_0x22e82b>=0x0;_0x22e82b--)(_0x2d5e81=_0x1720d1[_0x22e82b])&&(_0x1aa46f=(_0x2b8803?_0x2d5e81(_0x262048,_0xf64f20,_0x1aa46f):_0x2d5e81(_0x1aa46f))||_0x1aa46f);return _0x2b8803&&_0x1aa46f&&_0x3f71a6(_0x262048,_0xf64f20,_0x1aa46f),_0x1aa46f;},_0x363352=(_0x123431,_0x51ba8d)=>(_0x5b2994,_0x307e4e)=>_0x51ba8d(_0x5b2994,_0x307e4e,_0x123431);let _0x360146=class extends _0x593949[_0x36f281(0x354)]{constructor(_0x41acf8,_0x587449,_0x4eb896,_0x1c9a6c,_0x488392){const _0x3adde9=_0x36f281;super(_0x41acf8,_0x587449,_0x4eb896),this[_0x3adde9(0x496)]=_0x1c9a6c,this[_0x3adde9(0x3df)]=_0x488392;}[_0x36f281(0x194)](_0x7b5d78,_0x38dfc3){const _0x29e28d=_0x36f281,_0x490090=this[_0x29e28d(0x211)](_0x7b5d78);if(_0x490090)try{const _0x1ac054=this[_0x29e28d(0x29d)](_0x490090,_0x38dfc3);this[_0x29e28d(0x34f)](_0x7b5d78,_0x1ac054);}catch(_0x3a3061){this[_0x29e28d(0x3df)][_0x29e28d(0x302)](_0x29e28d(0x3c7),_0x3a3061),this[_0x29e28d(0x2d5)](_0x7b5d78);}const _0x480ca9=this[_0x29e28d(0x3a0)](_0x7b5d78);if(_0x480ca9)try{const _0x2d579e=this[_0x29e28d(0x29d)](_0x480ca9,_0x38dfc3);this[_0x29e28d(0x328)](_0x7b5d78,_0x2d579e);}catch(_0x49389a){this[_0x29e28d(0x3df)]['error'](_0x49389a),this[_0x29e28d(0x1a5)](_0x7b5d78);}}[_0x36f281(0x2d5)](_0x4cd7b7){const _0x34a157=_0x36f281,_0x47c61e=this[_0x34a157(0x211)](_0x4cd7b7);_0x47c61e&&(_0x47c61e[_0x34a157(0x43f)]=0x0,this[_0x34a157(0x1c2)]());}[_0x36f281(0x1a5)](_0x19093f){const _0x377fed=_0x36f281,_0x422b0e=this[_0x377fed(0x3a0)](_0x19093f);_0x422b0e&&(_0x422b0e['length']=0x0,this[_0x377fed(0x1c2)]());}[_0x36f281(0x34f)](_0x3193b6,_0x598c70){const _0x24213a=_0x36f281;this[_0x24213a(0x282)]['set'](_0x3193b6,_0x598c70),this[_0x24213a(0x1c2)]();}[_0x36f281(0x328)](_0x16e176,_0x1fdb02){const _0x2cd1fc=_0x36f281;this['_redoStacks'][_0x2cd1fc(0x2bd)](_0x16e176,_0x1fdb02),this['_updateStatus']();}[_0x36f281(0x29d)](_0xadf77,_0x5316e5){const _0x4b9d73=_0x36f281,_0x1e0bd7=[];let _0xccdf7=_0x5316e5,_0x4750b7=_0x5316e5;for(let _0x484733=_0xadf77[_0x4b9d73(0x43f)]-0x1;_0x484733>=0x0;_0x484733--){const {unitID:_0x1186ec,undoMutations:_0x54ec7c,redoMutations:_0x402ae4}=_0xadf77[_0x484733],_0xc2a2d5=this[_0x4b9d73(0x496)]['transformMutationsWithChangeset'](_0xccdf7,_0x54ec7c),_0x3209fc=this[_0x4b9d73(0x496)][_0x4b9d73(0x310)](_0x4750b7,_0x402ae4);if(_0x4968b4[_0x4b9d73(0x3d9)](_0xc2a2d5)||_0x4968b4['isTransformMutationsWithChangesetFailure'](_0x3209fc)){this[_0x4b9d73(0x3df)][_0x4b9d73(0x302)](_0x4b9d73(0x3c7),_0x4b9d73(0x2cd),_0xc2a2d5,_0x3209fc);break;}_0xccdf7=_0xc2a2d5['c1Prime'],_0x4750b7=_0x3209fc[_0x4b9d73(0x39f)],_0x1e0bd7[_0x4b9d73(0x43c)]({'unitID':_0x1186ec,'undoMutations':_0xc2a2d5[_0x4b9d73(0xb3)],'redoMutations':_0x3209fc[_0x4b9d73(0xb3)]});}return _0x1e0bd7[_0x4b9d73(0x460)]();}};_0x360146=_0xf42ea2([_0x363352(0x0,_0x593949['IUniverInstanceService']),_0x363352(0x1,_0x593949['ICommandService']),_0x363352(0x2,_0x593949['IContextService']),_0x363352(0x3,_0x4968b4['ITransformService']),_0x363352(0x4,_0x593949[_0x36f281(0x380)])],_0x360146);class _0x4e05d9 extends _0x593949['RxDisposable']{constructor(){const _0x2b8516=_0x36f281;super(),_0x3e0772(this,_0x2b8516(0x2a5)),this[_0x2b8516(0x2a5)]=_0x30c949[_0x2b8516(0x29c)](window,'popstate')[_0x2b8516(0x49c)](_0x30c949['takeUntil'](this[_0x2b8516(0x4d4)]),_0x30c949[_0x2b8516(0x33e)](0x1),_0x30c949[_0x2b8516(0x359)](void 0x0));}[_0x36f281(0x2f7)](_0x3cd934,_0x3ea483,_0x46d38d=!0x1){const _0x1fc9a0=_0x36f281,_0x31c885=new URL(window[_0x1fc9a0(0x43d)][_0x1fc9a0(0x150)]);_0x31c885['searchParams'][_0x1fc9a0(0x2bd)](_0x3cd934,_0x3ea483),_0x46d38d?window[_0x1fc9a0(0x15e)]['replaceState']('','',_0x31c885[_0x1fc9a0(0x13d)]()):window[_0x1fc9a0(0x15e)][_0x1fc9a0(0x1b6)]('','',_0x31c885[_0x1fc9a0(0x13d)]());}[_0x36f281(0x2ea)](_0x4027ab,_0x325d78=!0x1){const _0x213cdd=_0x36f281,_0x1a5ea1=new URL(window[_0x213cdd(0x43d)][_0x213cdd(0x150)]);_0x1a5ea1['searchParams']['delete'](_0x4027ab),_0x325d78?window[_0x213cdd(0x15e)][_0x213cdd(0x1b8)]('','',_0x1a5ea1['toString']()):window[_0x213cdd(0x15e)][_0x213cdd(0x1b6)]('','',_0x1a5ea1[_0x213cdd(0x13d)]());}[_0x36f281(0x37d)](_0x3246e9){const _0x139134=_0x36f281;var _0x4c34c6;return(_0x4c34c6=new URL(window[_0x139134(0x43d)][_0x139134(0x150)])[_0x139134(0x3b3)][_0x139134(0x14e)](_0x3246e9))!=null?_0x4c34c6:void 0x0;}}var _0x44b24b=Object['defineProperty'],_0x281df3=Object[_0x36f281(0x381)],_0x462610=(_0xe7e8d1,_0x1a183e,_0x27a2ac)=>_0x1a183e in _0xe7e8d1?_0x44b24b(_0xe7e8d1,_0x1a183e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27a2ac}):_0xe7e8d1[_0x1a183e]=_0x27a2ac,_0x284ccd=(_0x3a4153,_0x54db1f,_0x598a9b,_0x4083c0)=>{const _0x68440d=_0x36f281;for(var _0x420da9=_0x4083c0>0x1?void 0x0:_0x4083c0?_0x281df3(_0x54db1f,_0x598a9b):_0x54db1f,_0x445a48=_0x3a4153[_0x68440d(0x43f)]-0x1,_0x184089;_0x445a48>=0x0;_0x445a48--)(_0x184089=_0x3a4153[_0x445a48])&&(_0x420da9=(_0x4083c0?_0x184089(_0x54db1f,_0x598a9b,_0x420da9):_0x184089(_0x420da9))||_0x420da9);return _0x4083c0&&_0x420da9&&_0x44b24b(_0x54db1f,_0x598a9b,_0x420da9),_0x420da9;},_0x1436ea=(_0x453111,_0x67652d)=>(_0x38f055,_0x4714ac)=>_0x67652d(_0x38f055,_0x4714ac,_0x453111),_0x2cafe3=(_0x403c08,_0x3ff4ee,_0x37e253)=>_0x462610(_0x403c08,_0x3ff4ee+'',_0x37e253);const _0x23e748=_0x36f281(0x2b9);_0x4238fe[_0x36f281(0x36d)]=class extends _0x593949[_0x36f281(0xd7)]{constructor(_0x41e574=_0x57fe04,_0x3fb56b,_0x4b4dea,_0x262a5a,_0x542e28){const _0x470fd4=_0x36f281;super(),this['_config']=_0x41e574,this[_0x470fd4(0x3df)]=_0x3fb56b,this[_0x470fd4(0x2aa)]=_0x4b4dea,this[_0x470fd4(0xf1)]=_0x262a5a,this[_0x470fd4(0xdd)]=_0x542e28;const {..._0x2e3e0e}=this[_0x470fd4(0x22d)];this[_0x470fd4(0xdd)]['setConfig'](_0xfe6e3e,_0x2e3e0e);}['onStarting'](){const _0x3d69be=_0x36f281;this['_registerDependencies'](),_0x593949[_0x3d69be(0x13f)](this[_0x3d69be(0xf1)],[[_0x455914],[_0x4238fe['DataLoaderController']],[_0x33dc8d]]);}[_0x36f281(0x26d)](){const _0x5ae054=_0x36f281;_0x593949[_0x5ae054(0x13f)](this['_injector'],[[_0x471f41]]);}[_0x36f281(0x40d)](){this['_registerRenderDependencies']();}[_0x36f281(0x323)](){const _0x506e3a=_0x36f281;var _0xf0f809,_0x1fd45a,_0x543f0e,_0xfc073;this[_0x506e3a(0xf1)][_0x506e3a(0x1f2)](_0x593949[_0x506e3a(0x3d1)])&&this[_0x506e3a(0x3df)][_0x506e3a(0x302)](_0x506e3a(0x334),_0x506e3a(0x22b));let _0x112f28=[[_0x593949[_0x506e3a(0x3d1)],{'useClass':_0x360146}],[_0x4238fe[_0x506e3a(0x370)]],[_0x5d0f13],[_0x4c2b25[_0x506e3a(0x426)]],[_0x2863a7,{'useClass':_0x4e05d9}],[_0x40c14d],[_0x4238fe[_0x506e3a(0xd2)]],[_0x4c2b25[_0x506e3a(0x357)]],[_0x29a18f],[_0x2ffd8e],[_0x249d79],[_0x337544],[_0x2e20af],[_0x131dae],[_0x5a515d],[_0x33dc8d],[_0x2d8f92,{'useClass':(_0x1fd45a=(_0xf0f809=this[_0x506e3a(0x22d)])==null?void 0x0:_0xf0f809['socketService'])!=null?_0x1fd45a:_0x4238fe['CollaborationSocketService']}],[_0x4c2b25[_0x506e3a(0x4e9)],{'useClass':_0x4c2b25[_0x506e3a(0x46f)]}],[_0x4968b4[_0x506e3a(0x369)],{'useClass':_0x4238fe['SnapshotServerOverHTTPService']}],[_0x593949[_0x506e3a(0x42f)],{'useClass':_0x4238fe['AuthzIoHttpService']}],[_0x2b881e[_0x506e3a(0x4e0)],{'useClass':_0x4238fe['ImageIoService']}],[_0x4238fe['CollaborationController']],[_0x4238fe[_0x506e3a(0x1f3)]],[_0x4238fe[_0x506e3a(0x225)]],[_0x471f41],[_0x455914]];(_0x543f0e=this['_config'])!=null&&_0x543f0e['enableSingleActiveInstanceLock']&&_0x112f28[_0x506e3a(0x43c)]([_0x34b236,{'useClass':_0x34a490}]),_0x112f28=_0x593949[_0x506e3a(0x26a)](_0x112f28,(_0xfc073=this[_0x506e3a(0x22d)])==null?void 0x0:_0xfc073[_0x506e3a(0x4d7)]),_0x112f28['forEach'](_0x469ef6=>this[_0x506e3a(0xf1)][_0x506e3a(0xf6)](_0x469ef6)),this[_0x506e3a(0x139)]();}[_0x36f281(0x24a)](){const _0x42e125=_0x36f281;this['disposeWithMe'](this[_0x42e125(0x2aa)][_0x42e125(0x46d)](_0x593949[_0x42e125(0xaf)]['UNIVER_DOC'],[_0x12fd25])),this[_0x42e125(0x196)](this[_0x42e125(0x2aa)]['registerRenderModule'](_0x593949[_0x42e125(0xaf)][_0x42e125(0x12e)],[_0x11cefc]));}[_0x36f281(0x139)](){const _0x2b4314=_0x36f281;var _0x5013dc,_0x12a765;this[_0x2b4314(0xf1)][_0x2b4314(0x14e)](_0x4c2b25[_0x2b4314(0x426)])[_0x2b4314(0x155)]({'priority':0x14,'interceptor':_0x4c2b25[_0x2b4314(0x30d)]({'maxParallel':0x6})}),this[_0x2b4314(0xf1)][_0x2b4314(0x14e)](_0x131dae),(_0x5013dc=this[_0x2b4314(0x22d)])!=null&&_0x5013dc[_0x2b4314(0x36b)]||this['_injector'][_0x2b4314(0x14e)](_0x4238fe[_0x2b4314(0xd2)])[_0x2b4314(0x4bd)](),(_0x12a765=this[_0x2b4314(0x22d)])!=null&&_0x12a765[_0x2b4314(0x24f)]&&this[_0x2b4314(0xf1)]['get'](_0x2e20af),this['_injector'][_0x2b4314(0x14e)](_0x4238fe['CollaborationController']),this[_0x2b4314(0xf1)][_0x2b4314(0x1f2)](_0x4238fe['DesktopCollaborationStatusDisplayController'])&&this[_0x2b4314(0xf1)][_0x2b4314(0x14e)](_0x4238fe[_0x2b4314(0x225)]);}},_0x2cafe3(_0x4238fe[_0x36f281(0x36d)],'pluginName',_0x23e748),_0x4238fe[_0x36f281(0x36d)]=_0x284ccd([_0x593949[_0x36f281(0x131)](_0x4968b4[_0x36f281(0x1ff)]),_0x1436ea(0x1,_0x593949[_0x36f281(0x380)]),_0x1436ea(0x2,_0xa07e34[_0x36f281(0x186)]),_0x1436ea(0x3,_0x593949[_0x36f281(0xb9)](_0x593949[_0x36f281(0xa8)])),_0x1436ea(0x4,_0x593949[_0x36f281(0xe7)])],_0x4238fe[_0x36f281(0x36d)]),_0x4238fe['AUTHZ_URL_KEY']=_0x53a088,_0x4238fe[_0x36f281(0x3f7)]=_0x51e7c0,_0x4238fe['COLLAB_WEB_SOCKET_URL_KEY']=_0x3db6d8,_0x4238fe[_0x36f281(0x1da)]=_0x2d65dc,_0x4238fe[_0x36f281(0x4b4)]=_0x580fae,_0x4238fe[_0x36f281(0x305)]=_0x5a515d,_0x4238fe[_0x36f281(0x2de)]=_0xec8683,_0x4238fe[_0x36f281(0x41f)]=_0x512ef2,_0x4238fe[_0x36f281(0x250)]=_0x2d8f92,_0x4238fe['IURLService']=_0x2863a7,_0x4238fe[_0x36f281(0x100)]=_0x443bb,_0x4238fe[_0x36f281(0x356)]=_0x40bc0f,_0x4238fe[_0x36f281(0x31d)]=_0x428723,_0x4238fe[_0x36f281(0x37c)]=_0x2b528f,_0x4238fe[_0x36f281(0x4c8)]=_0x3f5413,_0x4238fe[_0x36f281(0x1c0)]=_0x418a13,_0x4238fe[_0x36f281(0x2fc)]=_0x108499,_0x4238fe[_0x36f281(0x1d6)]=_0x55e027,_0x4238fe[_0x36f281(0x4db)]=_0x4e05d9,_0x4238fe[_0x36f281(0xb6)]=_0x49635b,_0x4238fe[_0x36f281(0x37b)]=_0x59173a,Object[_0x36f281(0x49a)](_0x4238fe,Symbol[_0x36f281(0x1b9)],{'value':'Module'});}));