@univerjs-pro/collaboration-client 0.4.0-nightly.202410141606 → 0.4.0-nightly.202410151606

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 _0x1c68(_0x47b03e,_0x5c39dc){const _0x2c0e12=_0x2c0e();return _0x1c68=function(_0x1c68e7,_0x54917f){_0x1c68e7=_0x1c68e7-0x1e1;let _0x14c18a=_0x2c0e12[_0x1c68e7];return _0x14c18a;},_0x1c68(_0x47b03e,_0x5c39dc);}function _0x2c0e(){const _0x3a82f3=['IAuthzIoService','compose','handleDeleteRangeMoveUp','[CollaborationEntity]','_textBubble','handleIRemoveRow','_cursor','workbook','ILogService','_getDownloadEndpointURL','_onFetchMissResult','setItem','addObject','transformSelections','closePath','getVpScrollXYInfoByPosToVp','updateOfflineData','onMissingChangesets','_localeService','Tools','cmd','concatMap','mutations','withCredentials','setTimeout','IURLService','SetTextSelectionsOperation','whenReady','addEventListener','Univer','IUndoRedoService','_replaceFileID','getCollabCursors$','online','HEARTBEAT_INTERVAL','_fetchMissChangesets','getUniverSheetInstance','getRangePointData','_ws','awaiting_with_pending','restore','_onOffline','measureText','ACTIVE_UNIT_EVENT_CHANNEL','DocSelectionManagerService','_updateCollabCursors','parseProtocolChangeset','_lockTransition','_colorIndex','LICENSE_DISTRO_REJECTED','session.collaboration-timeout','permission.title','handleInsertRangeMoveRight','defs','_updateState','DeleteRangeMoveUpCommandId','Undefined','_roomMembers$','SheetCollaborationEntity','getActiveSheet','_transformService','take','/-/object/-/batch_allowed','unitID','_transformUndoredo','DocCollaborationEntity','assign','EmptyMutation','permission.content','clearTimeout','replaceState','headers','_isPermissionRej','_rescheduleHeartbeat','_onCursorDelete','runRefRangeMutations','not_collab','filter','_themeService','selections','requireSession','has','INVALID_ARGUMENT','endRow','IBeforeCloseService','onRemoteChangeset','asObservable','getCurrentUser','touchDependencies','gold400','MUTATION','DocIMEInputManagerService','getRelativeToViewportCoord','indexOf','PERMISSION_REJ','_listenToOnlineEvent','_snapshotServerService','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','init','image/jpg','disposeUnit','{fileID}','_scene','_awaitingChangeset','_renderManagerService','OffLineSingle','joinEvent','string','delay','next','image/jpeg','OTHER_CLIENTS_EDITING','CONFLICT','&source=','unshift','CompressMutationService','startTime','onTransformChange$','permissionRejEvent','connection\x20error','ThresholdInterceptorFactory','LOGIN_URL_KEY','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','routeKey','_name','delete','rxjs/operators','b64DecodeUnicode','all','name','call','distinctUntilChanged','_entities','length','uni.network.url-service','_type','startRow','IContextService','#fff','UniverUi','concat','unitId','none','loginUrlKey','[PendingState]:\x20received\x20rejection.','_getSaveTimeout','sendChangesetTimeout','/resources','univer-online','createElement','text','_messageService','method','[UniverCollaborationClientPlugin]','then','getCurrent','UnitSnapshot','_unitStatus','_onConflict','/universer-api/snapshot/','changesets','_saveCache','SetSelectionsOperation','univer-pro.collaboration-client.single-active-unit-service','_assignedColors','joinRsp','_urlService','IMessageService','makeDirty','_socketService','getActiveRange','icon','jiqing500','MoveRangeCommandId','[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.','_sessionStatus$','UNIVER_UNKNOWN','getSheetBySheetId','_roomMembers','UPDATE_CURSOR','onlineStatusTitle','defineProperty','objects','hasOwnProperty','_startSheetCollabCursor','Rectangle','transformMutationsWithChangeset','CollaborationController','merge','RevisionService','getSkeleton','LIVESHARE_OPERATION','getValue','pluginName','deserializeToCombResponse','M0\x200H16V16H0z','collabCursorState$','max','SNAPSHOT_INVALID_SNAPSHOT','_collabCursorState$','BehaviorSubject','unitId\x20is\x20not\x20found','_disabled','current','file','Error','collab-rect-range-','LICENSE_EXPORT_SIZE_EXCEEDED','dispose$','resolve','_onRemoteRejected','operators','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','switchMap','body','ICollaborationSocketService','setCurrentUser','UniverCollaborationClientPlugin','_handleHover','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','ImageIoService','IPermissionService','UPDATE_PERMISSION_OBJ','_transformPreviousActiveRange','apply','_onConnectionFailed','_refreshCollabCursors','EffectRefRangId','collabStatus.fetchMiss','_HTTPService','startsWith','conflict','UniverCore','cursorInfo','UniverDesign','_hideTimer','HttpImport','RETRY_CONNECTING_MAX_COUNT_KEY','collaborators','collabSubmitChangesetUrl','_loadDoc','telemetry\x20info\x20is\x20not\x20initialized','/universer-api/stream/file/upload','_showConflictNotification','getMemberID','deepClone','fetchMiss','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','275850BuSPkB','@univerjs/core','COMPRESS_MUTATION_APPLY','Module','getOffsetConfig','UniverSheetsUi','color','generateRandomId','refreshPermission','getCollabEntity','triggerDblclick','_lastPointer','HTTPService','COLORS','mapTo','set','AuthzIoHttpService','_getRedoStack','onMouseMove','top','onStarting','_getSendChangesetTimeout','onTransformSelections','_collabSessionService','_http','href','_clearLocalCache','_logService','_handleLeaveEvent','auth.needGotoLoginAlert','width','transformMutation','@univerjs/telemetry','_schedule','toDisposable','React','copyFileMeta','_session','editingUnit','_docSkeletonManagerService','_telemetryService','collabStatus.syncing','toString','_anchor','_syncEditingCollabCursorService','url(#$1','rgba(255,\x20255,\x20255,\x200.01)','title','error','COMPLETION_FINISHED','registerOnClose','@univerjs/docs','_acknowledgedAwaitingChangeset','propertyIsEnumerable','LIVESHARE_FETCH_OPERATIONS','toRgbString','evenodd','find','Inject','serializeCombRequest','_substituteUndoStack','_updateLocalCursor','_cursorInfo$','onTransformIME','_online','save','CommandType','0\x200\x2017\x2016','_socket$','c2Prime','_localCacheService','subunit','_cachedData','POST','UNAUTHENTICATED','...','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','doc.mutation.rich-text-editing','@univerjs/rpc','idSuffix','_initStatusListener','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','defIds','currentColor','_notificationService','data','LICENSE_IMPORT_SIZE_EXCEEDED','putCollaborators','isTransformMutationsWithChangesetFailure','focused$','map','collab-text-anchor-','_change$','_range','_commandService','contains','loadDoc','_memberService','TOO_MANY_REQUESTS','enableLocalCache','_applyRemoteChangeset','combineLatest','XHRHTTPImplementation','setInterval','confirm','verdancy600','HttpExport','_clearScheduledTask','_clearCollaborationTimeoutTimer','getConfig','getCellPositionByOffset','liveShareOperation','getUndoRedoMutationParamsCache','_redoStacks','UniverEngineFormula','_updateLocalCache','getOwnPropertySymbols','_getAPIPrefixPath','drawWith','_injector','exports','@univerjs-pro/license','column','revision','VIEWPORT_KEY','[PendingState]:\x20unhandled\x20univer\x20type:\x20','setUndoRedoMutationParamsCache','setParam','append','DataLoaderController','UniverCollaboration','FileId','RefRangeService','split','/block/','encode','_transformRemoteChangesetByIMECache','patch','APPLY_PERMISSION_DENIED','SetWorksheetActivateCommand','_onRefRangeChange','_status$','fillStyle','round','_cursorShapes','interceptor','_revisionService','catch','searchParams','_checkMissing','isTransformMutationsWithChangesetSuccess','_handleHeartbeatEvent','x-univer-host','\x0aCurrent:\x20','cursorInfo$','_hover','UNIVER_SLIDE','fromEvent','YUUMI_RATE_OVER_LIMIT','onMissedChangesetFetched','setAlpha','ranges','DisposableCollection','roomMembers$','_onUserLeave','getUnitType','on-line-single_clip0_910_349','onTransformRemoteChangesetByIMECache','_setupBeforeClosingHandler','FETCH_MISSING','PERMISSION_DENIED','function','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','params','updateMember','_initUnitPermissionChange','_httpService','HELLO','\x20in\x20_schedule.','_shapes','_draw','IRenderManagerService','_candidateSocket','RemoveColCommandId','_anchorDot','[OfflineState]:\x20received\x20changeset.','LIVESHARE_REQUEST_HOST','EXCHANGE_SIGN_URL_SERVER_URL_KEY','saveSheetBlock','closeSession','save\x20fail\x20reason\x20is\x20','12979719RrbzeF','_createSocket','_scheduleClearOtherTimer','handleIRemoveCol','storage','[CollaborationUndoRedoService]','SheetsSelectionsService','complete','get','_clearUndo','_clearTimeoutTimer','_beforeCloseService','DEFAULT_FILE_NAME','_clearRedo','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','sessionStatus$','682161EdXIVQ','m1Prime','DesktopCollaborationStatusDisplayController','_updateStatus','1em','_joinRoom','8eWKPxC','from','startColumn','sheetId','_onJoinRoomEvent','CHANGESET_REVISION_CONFILICT','isEditing','entries','newValue','_removeRoom','COMPRESS_MUTATION_SEND','/-/object/list','UniverDocsUi','infoRsp','getCurrentRevOfUnit','_onLocalMutation','HEARTBEAT_INTERVAL_KEY','_scheduleSaving','session','PSEUDO_FETCH_MISSING_RESULT','@univerjs/drawing','getSheetId','SheetPermissionInitController','_updateSubUnitFromURLParams','_uiPartsService','_render','TEXT_RANGE_LAYER_INDEX','commentUpdate$','?url=','target','collaMsg','offline','_sendHeartbeatTimer','_members','rxjs','_scheduleTimestamp','5837925aOsPPH','isArray','univer-online-status','_clearHeartbeatTimer','activeSheet$','IUIPartsService','reject','transformStack\x20failed!','debounceTime','_permissionService','_scheduleCollaborationTimeoutTimer','getParam','HEARTBEAT','selection','arc','react','ERROR_IMAGE_TYPE','getCollabEntity$','CONNECTOR_DATA_TOO_LARGE','_color','7214774uNnkrr','findNodePositionByCharIndex','updatePermissionPoint','isInternalEditorID','BASE64','onRemoteRej','CHANGESET_REJ','FromArray','trim','eventID','_getLoginPath','UniverDrawing','IDLE','_scheduleHeartbeat','/unit/','hovered','stopTime','USERS_LEAVE','getResourcesRequest','change$','SetDocZoomRatioOperation','session.will-retry','_shouldReportTelemetry','_queuedRemoteChangesets','_imageSourceCache','getAttachHeader','_transformIMECache','disableLocalCache','_exhaustRemoteChangesetQueue','CollaborationSession','_id','unknown','UNKNOWN_CODE','_initRequestHeader','Injector','currentTheme$','flatMap','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','type','_docTransformSelectionsService','onRemoteAck','unsubscribe','ONLINE','_getSheetObject','red300','forwardRef','_waitForHeartbeatResponse','collab-client.tooltip.reconnect','SnapshotServerOverHTTPService','WorkbookEditablePermission','amd','collaboratorID','_tryReconnect','fetchThroughInterceptors','_heartbeatTimer','SNAPSHOT_HAS_BEEN_REMOVED','_initModules','SYNCED','NOT_COLLAB','_sendHeartbeat','NOT_FOUND','newCsEvent','_remoteChangesetQueue','setShapeProps','_instanceService','result','getRenderById','csAckEvent','WebSocketService','sheets','YUUMI_URL_COL_OUT_OF_RANGE','[SyncedState]:\x20received\x20rejection.','_collaborationSessionService','range','downloadEndpointUrl','LOCAL_CACHE_INTERVAL_KEY','lineTo','off-line-single_clip0_910_343','_userManagerService','InsertColCommandId','@univerjs/engine-render','_clearOtherTimers','Warning','SheetCollabCursorShape','reduce','_selfUnitIDs','collabStatus.notCollab','ThemeService','collabStatus.synced','_transformStack','AWAITING_WITH_PENDING','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','attrs','unload','colorChannel1','addImageSourceCache','baseRev','removeParam','location','getMergeData','UnitEmbedded','AUTHZ_URL_KEY','/new_changes','HEADER_MENU','_document','getSheetObject','_collabCursorController','_colorAssignService','_tryEnsureSocket','APPLY_NON_SEQUENTIAL_REVISION','_sheetTransformSelectionsService','_getUndoStack','leaveEvent','[OfflineState]:\x20received\x20acknowledgement.','error$','fetchMissingChangesets','COMMENT_UPDATE','dispose','ICommandService','RECV','isTransformChangesetsSuccess','subscribe','getCoordByCell','transformUndoRedo','purple300','SEND_CHANGESET_TIMEOUT','CollaborationStatusDisplay','allowed','blue400','roles','/universer-api/oidc/authpage','sessionStatus','/role','COLLAB_SUBMIT_CHANGESET_URL','[SyncedState]:\x20received\x20acknowledgement.','url(#off-line-single_clip0_910_343)','_send','_createInitialStateImpl','size','[CollaborationSessionService]','onRendered','LocaleService','PENDING','_removeClearOtherTimer','_socketReady','roomInfos','getImage','_socket','failed\x20to\x20apply\x20missed\x20changesets!','_transformUndoRedoStack','LIVESHARE_NEW_HOST','object','_undoRedoService','UniverCollaborationPlugin','extend','INTERNAL_ERROR','createSocket','unit','6vHbNZU','_getCtorByUniverType','_substituteRedoStack','JOINING','Shape','UserManagerService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','pipe','endColumn','MSG_FOR_ERROR','update','INGEST','_ensureSubject','114oLvevX','collaboration-client.offline-data-not-saved','awaiting','socket$','reverse','history','InsertRowCommandId','Subject','_onUserJoin','CollaborationSessionService','getDocRanges','with','takeUntil','_docStateChangeManagerService','Plugin','synced','ALREADY_EXISTS','syncEditingCollabCursor','_state$','_createInitialState','FETCH_MISS','_transitionLocked','add','status','editing\x20status\x20changed\x20to','[DataLoaderController]','UniverTelemetry','_docSkeleton','_state','registerRenderModule','_replayCachedMutations','unit-cache-','univerjs-icon\x20univerjs-icon-','SNAPSHOT_URL_KEY','IUniverInstanceService','InsertSheetMutation','bottom','LocalUndoRedoService','onload','_setupSubUnitSync','_stopTelemetryCollaborationNewChangeset','_sheetSkeletonManagerService','memberID','className','_cursors','_handleJoinEvent','awaitingChangeset','_snapshotService','pending','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_waitCount','_listenToOfflineEvent','_decreaseWaiting','enableOfflineEditing','actions','_telemetryInfo','getUnitId','div','_collaborationController','OFFLINE','_syncEditingCollabCursor','Vector2','CollaborationEvent','fetch_missing','/universer-api/comb','random','DocStateChangeManagerService','ERROR_IMAGE','_compressMutationService','message$','_eventUnsubscribe','_docSyncEditingCollabCursorService','_initMergeInterceptor','black','_throwTelemetryCollaborationNewChangeset','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','row','/allowed','UNDEFINED','roomMembers','BuiltInUIPart','children','_sessions','[CollaborationSession]','_onRemoteChangeset','CollaborationSocketService','clearInterval','ColorKit','45219lggOaB','DependentOn','reconnect','VIEW_MAIN','/object/','subscribeEvent','off-line-single','getUnhiddenWorksheets','_submitChangeset','objectActions','toggleOnline','_drawAnchor','close','snapshot','1485LMpNUs','labelPosition','CollaborationEntity','_getScale','SnapshotService','getInterceptPoints','[FetchMissState]','_disableEditing','fromCollab','disposeWithMe','_commentUpdate$','getCurrentSelections','SessionStatus','LICENSE_MAX_UNITS_EXCEEDED','/universer-api/file/{fileID}/sign-url','session.room-full','transformRemoteChangeset','_backgroundColor','getOwnPropertyDescriptor','Unknown\x20user','_onRemoteACK','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','APPLY_REJECT','getImageSourceCache','session.connection-failed','Workbook','resend','forEach','_initResize','ImageSourceType','close$','slice','handleMoveRange','@univerjs/sheets-ui','@univerjs-pro/collaboration','state','getTypeOfUnitAdded$','Optional','_startCollaboration','univer-online-status-icon','\x20to\x20','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','m2Prime','registerHTTPInterceptor','#FFF','useDependency','_event$','number','SUCCUSS','registerBeforeClose','_updateURLWithCurrentState','post','UniverEngineRender','onlineStatus','substring','symbol','loadSheet','url','onCommandExecuted','_pendingMutations','saveOfflineData','&to=','_removeCollabCursors','UNKNOWN_CMD','replace','batchAllowed','every','_getUploadFileURL','transformChangesets','origin','ERROR_EXCEED_SIZE','open$','UniverRpc','image/png','_unitID','stringify','_refRangeService','getRoom','LEAVE','moveTo','createInstance','_toggleOnline','Rect','textEncoder','onPointerLeave$','RichTextEditingMutation','getUnit','readAsDataURL','_handler','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_startDocCollabCursor','_registerRenderDependencies','toggleOffline','isPermissionRej','textRanges','transformByState','/rev/','getWorkbookSelections','USERS_ENTER','_getMergeRange','key','_commentService','/collaborator','SHOULD_CLOSE_CONN','FAIL','executeCommand','visibilityState','registerRefRange','RxDisposable','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_context','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','fillRule','deserializeRangeWithSheet','_collaborationPaused','fetching\x20missing\x20changesets\x20from\x20','path','UNIVER_PROJECT','UNIVER_DOC','InsertRangeMoveDownCommandId','updatePermissionObjEvent','isTransformMutationFailure','getFocusedUnit','liveShareNewHost','Disposable','UNRECOGNIZED','univer-offline','_getAPIPrefix','_onRecvEvent','collabStatus.offline','hidden','IImageIoService','UniverCollaborationClient','collaboration_new_changeset','create','ITelemetryService','removeMember','tag','_getCurrentRevision','handleInsertCol','CHANGESET_ACK','debounce','includes','_retryConnectingTimer','getMember','urlChange$','getAncestorScale','_labelPosition','backgroundColor','state$','min','_localStorageService','_init','action','status$','loadOfflineData','listCollaborators','WebURLService','enableSingleActiveInstanceLock','IConfigService','exhaustSavingTask','@univerjs/docs-ui','fromEventSubject','JSONX','font','mapDocumentTypeToUniverType','ImageUploadStatusType','DeleteRangeMoveLeftCommandId','requestParams','SUBMIT_CHANGESET','_getSignURL','objectID','collaboration.single-unit.warning','some','/fetchmissing?from=','SEND_CHANGESET_TIMEOUT_KEY','currentSkeleton$','parseChangesetToProtocol','localeService','APPLY_REVISION_CONFILICT','socketService','getItem','_loadSheet','event$','@univerjs/ui','_transformSelections','send','createCollaborator','signUrlServerUrl','_singleActiveUnitService','transform','_collaborationTimeoutTimer','now','_undoStacks','_drawTextRange','_unlockTransition','createIdentifier','originalMeta','_handleEvent','RegularPolygon','onPointerEnter$','put','@univerjs/sheets','CollaborationStatus','_toggleOffline','ITransformService','appendMutation','on-line-single','fill','collaboration-session-retry','LocalCacheService','getTime','subUnitId','mergeOverrideWithDependencies','skeleton','NEW_CHANGESETS','INotificationService','onCommentUpdate','onSendChangeset','members','debug','LIVESHARE_TERMINATE','visibilitychange','_unitOnClients','_initCloseConn','clear','_registerDependencies','rev','resourceIDs','_configService','YUUMI_SUBSCRIPTION_NOT_FOUND','connectInjector','shareReplay','svg','onStateChange','_hovered','MessageType','_config','parse','getColor','2581208RzITeB','_sendingTimer','displayName','image/bmp','RETRY_CONNECTING_MAX_COUNT','_onConnectionOpen','_timeoutTimer','getUnitStatus$','_initCommandExecutedListener','_getAnchorBounding','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_saveTaskMap','_entityInit$','_onMessage','hide','Error\x20on\x20receiving\x20event','push','list','_socketMessageSubscription','Tooltip','onlyLocal','NO_OTHER_CLIENTS_EDITING','onSyncEditingCollabCursor','saveImage','userID','sheetID','JOIN','_retryCount','UniverSheets','pushState','_incrementRevisionNumber','_createHandler','UniverIcon','ISnapshotServerService','objectType','values','transformIMECache','getSheetBlock','_univerInstanceService','prototype','SheetSkeletonManagerService','replaceTextRanges','assignAColorForMemberID','_executeRemoteChangeset','responseType','getTypeOfUnitDisposed$','show','collab-text-range-','COLLAB_WEB_SOCKET_URL','c1Prime','UniverInstanceType','UNIVER_SHEET'];_0x2c0e=function(){return _0x3a82f3;};return _0x2c0e();}(function(_0x4fc922,_0x20357f){const _0x2f3135=_0x1c68,_0x4754af=_0x4fc922();while(!![]){try{const _0x308d70=parseInt(_0x2f3135(0x22a))/0x1+parseInt(_0x2f3135(0x313))/0x2*(parseInt(_0x2f3135(0x36b))/0x3)+-parseInt(_0x2f3135(0x469))/0x4+parseInt(_0x2f3135(0x254))/0x5*(parseInt(_0x2f3135(0x306))/0x6)+parseInt(_0x2f3135(0x268))/0x7+-parseInt(_0x2f3135(0x230))/0x8*(-parseInt(_0x2f3135(0x21a))/0x9)+-parseInt(_0x2f3135(0x595))/0xa*(parseInt(_0x2f3135(0x379))/0xb);if(_0x308d70===_0x20357f)break;else _0x4754af['push'](_0x4754af['shift']());}catch(_0x4810ea){_0x4754af['push'](_0x4754af['shift']());}}}(_0x2c0e,0xc65d7),function(_0x562937,_0x563e49){const _0x2aa3a1=_0x1c68;typeof exports==_0x2aa3a1(0x2ff)&&typeof module<'u'?_0x563e49(exports,require(_0x2aa3a1(0x596)),require(_0x2aa3a1(0x252)),require(_0x2aa3a1(0x51b)),require('@univerjs/design'),require('@univerjs/ui'),require('@univerjs/network'),require(_0x2aa3a1(0x39b)),require(_0x2aa3a1(0x5b5)),require('@univerjs/docs'),require(_0x2aa3a1(0x41a)),require(_0x2aa3a1(0x443)),require(_0x2aa3a1(0x2b8)),require(_0x2aa3a1(0x244)),require('@univerjs/engine-formula'),require('@univerjs/sheets-ui'),require(_0x2aa3a1(0x263)),require(_0x2aa3a1(0x5e3)),require(_0x2aa3a1(0x60e))):typeof define==_0x2aa3a1(0x206)&&define[_0x2aa3a1(0x29a)]?define([_0x2aa3a1(0x60d),_0x2aa3a1(0x596),'rxjs',_0x2aa3a1(0x51b),'@univerjs/design',_0x2aa3a1(0x431),'@univerjs/network',_0x2aa3a1(0x39b),_0x2aa3a1(0x5b5),_0x2aa3a1(0x5c8),_0x2aa3a1(0x41a),_0x2aa3a1(0x443),_0x2aa3a1(0x2b8),_0x2aa3a1(0x244),'@univerjs/engine-formula',_0x2aa3a1(0x39a),_0x2aa3a1(0x263),'@univerjs/rpc',_0x2aa3a1(0x60e)],_0x563e49):(_0x562937=typeof globalThis<'u'?globalThis:_0x562937||self,_0x563e49(_0x562937[_0x2aa3a1(0x3fd)]={},_0x562937[_0x2aa3a1(0x585)],_0x562937[_0x2aa3a1(0x252)],_0x562937[_0x2aa3a1(0x252)][_0x2aa3a1(0x570)],_0x562937[_0x2aa3a1(0x587)],_0x562937[_0x2aa3a1(0x528)],_0x562937['UniverNetwork'],_0x562937[_0x2aa3a1(0x617)],_0x562937[_0x2aa3a1(0x32d)],_0x562937['UniverDocs'],_0x562937[_0x2aa3a1(0x23c)],_0x562937[_0x2aa3a1(0x485)],_0x562937[_0x2aa3a1(0x3ad)],_0x562937[_0x2aa3a1(0x273)],_0x562937[_0x2aa3a1(0x607)],_0x562937[_0x2aa3a1(0x59a)],_0x562937[_0x2aa3a1(0x5b8)],_0x562937[_0x2aa3a1(0x3c1)],_0x562937['UniverLicense']));}(this,function(_0x52f4d9,_0x204831,_0x2ea3f3,_0x452c71,_0x53bcf5,_0x1e1361,_0x59f944,_0x292f17,_0x3afb77,_0x1d1bc4,_0x2435e3,_0x2850a0,_0x98dfd7,_0xf94d17,_0x13853d,_0x58dbff,_0x4d8650,_0x517f68,_0x3642e){'use strict';const _0x5ebc5d=_0x1c68;var _0x1e5a9f=Object[_0x5ebc5d(0x552)],_0x2416d0=(_0x3a6592,_0x306122,_0x3e401)=>_0x306122 in _0x3a6592?_0x1e5a9f(_0x3a6592,_0x306122,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e401}):_0x3a6592[_0x306122]=_0x3e401,_0x3d4e20=(_0x12da45,_0x4d277a,_0x413b60)=>_0x2416d0(_0x12da45,typeof _0x4d277a!=_0x5ebc5d(0x3b0)?_0x4d277a+'':_0x4d277a,_0x413b60);const _0x225bd6='SNAPSHOT_SERVER_URL_KEY',_0x839084='/universer-api/snapshot',_0x2cc68c=_0x5ebc5d(0x334),_0x453db9=_0x5ebc5d(0x2e5),_0x5e1249=_0x5ebc5d(0x499),_0x3d2e75='ws://127.0.0.1:8000/universer-api/comb/connect',_0x10433d=_0x5ebc5d(0x4bf),_0x1e8dea='HEARTBEAT_TIMEOUT',_0x5aece4=_0x5ebc5d(0x46d),_0xb98bd4='LOCAL_CACHE_INTERVAL',_0x500ffa=_0x5ebc5d(0x2ed),_0x91580e=_0x5ebc5d(0x353),_0x4d3acb='LOGIN_URL_KEY',_0x1c8cfb=_0x5ebc5d(0x2ea);var _0x57fda0=(_0x3d5c0d=>(_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x361)]=0x0]=_0x5ebc5d(0x361),_0x3d5c0d[_0x3d5c0d['OK']=0x1]='OK',_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x303)]=0x2]=_0x5ebc5d(0x303),_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x205)]=0x3]=_0x5ebc5d(0x205),_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x2a4)]=0x4]=_0x5ebc5d(0x2a4),_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x5df)]=0x5]=_0x5ebc5d(0x5df),_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x323)]=0x6]=_0x5ebc5d(0x323),_0x3d5c0d[_0x3d5c0d['INVALID_ARGUMENT']=0x7]=_0x5ebc5d(0x4ef),_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x5f7)]=0x8]=_0x5ebc5d(0x5f7),_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x5c6)]=0x9]=_0x5ebc5d(0x5c6),_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x235)]=0x1389]=_0x5ebc5d(0x235),_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x563)]=0x1771]=_0x5ebc5d(0x563),_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x29f)]=0x1772]=_0x5ebc5d(0x29f),_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x38f)]=0x1b59]=_0x5ebc5d(0x38f),_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x2d5)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x42c)]=0x1b5b]=_0x5ebc5d(0x42c),_0x3d5c0d[_0x3d5c0d['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x5ebc5d(0x1e5),_0x3d5c0d[_0x3d5c0d['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x5ebc5d(0x266),_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x386)]=0x2329]=_0x5ebc5d(0x386),_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x2c3)]=0x232a]=_0x5ebc5d(0x2c3),_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x5eb)]=0x232b]=_0x5ebc5d(0x5eb),_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x56c)]=0x232c]=_0x5ebc5d(0x56c),_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x4ce)]=0x232d]=_0x5ebc5d(0x4ce),_0x3d5c0d[_0x3d5c0d['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x2ae)]=0x2712]=_0x5ebc5d(0x2ae),_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x1f9)]=0x2713]=_0x5ebc5d(0x1f9),_0x3d5c0d[_0x3d5c0d[_0x5ebc5d(0x45f)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x3d5c0d[_0x3d5c0d['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x3d5c0d))(_0x57fda0||{}),_0x38b124=(_0x6454b=>(_0x6454b[_0x6454b[_0x5ebc5d(0x54d)]=0x0]=_0x5ebc5d(0x54d),_0x6454b[_0x6454b[_0x5ebc5d(0x3ef)]=0x1]='UNIVER_DOC',_0x6454b[_0x6454b[_0x5ebc5d(0x49c)]=0x2]=_0x5ebc5d(0x49c),_0x6454b[_0x6454b['UNIVER_SLIDE']=0x3]=_0x5ebc5d(0x1f7),_0x6454b[_0x6454b[_0x5ebc5d(0x3ee)]=0x4]=_0x5ebc5d(0x3ee),_0x6454b[_0x6454b[_0x5ebc5d(0x3f6)]=-0x1]=_0x5ebc5d(0x3f6),_0x6454b))(_0x38b124||{}),_0x2d5504=(_0x9de2e=>(_0x9de2e[_0x9de2e[_0x5ebc5d(0x3b8)]=0x0]='UNKNOWN_CMD',_0x9de2e[_0x9de2e[_0x5ebc5d(0x20c)]=0x1]='HELLO',_0x9de2e[_0x9de2e[_0x5ebc5d(0x483)]=0x2]='JOIN',_0x9de2e[_0x9de2e[_0x5ebc5d(0x3c7)]=0x3]=_0x5ebc5d(0x3c7),_0x9de2e[_0x9de2e[_0x5ebc5d(0x311)]=0x4]=_0x5ebc5d(0x311),_0x9de2e[_0x9de2e[_0x5ebc5d(0x260)]=0x5]='HEARTBEAT',_0x9de2e[_0x9de2e[_0x5ebc5d(0x2df)]=0x6]=_0x5ebc5d(0x2df),_0x9de2e[_0x9de2e[_0x5ebc5d(0x3f6)]=-0x1]=_0x5ebc5d(0x3f6),_0x9de2e))(_0x2d5504||{}),_0x59d188=(_0x35fb47=>(_0x35fb47[_0x35fb47[_0x5ebc5d(0x288)]=0x0]=_0x5ebc5d(0x288),_0x35fb47[_0x35fb47['OK']=0x1]='OK',_0x35fb47[_0x35fb47['FAIL']=0x2]=_0x5ebc5d(0x3e1),_0x35fb47[_0x35fb47[_0x5ebc5d(0x3f6)]=-0x1]=_0x5ebc5d(0x3f6),_0x35fb47))(_0x59d188||{}),_0x3ee7c8=(_0x1f0ee2=>(_0x1f0ee2[_0x1f0ee2[_0x5ebc5d(0x4d5)]=0x0]=_0x5ebc5d(0x4d5),_0x1f0ee2[_0x1f0ee2[_0x5ebc5d(0x589)]=0x1]=_0x5ebc5d(0x589),_0x1f0ee2[_0x1f0ee2[_0x5ebc5d(0x5ff)]=0x2]=_0x5ebc5d(0x5ff),_0x1f0ee2[_0x1f0ee2['UnitEmbedded']=0x3]=_0x5ebc5d(0x2cc),_0x1f0ee2[_0x1f0ee2[_0x5ebc5d(0x539)]=0x4]=_0x5ebc5d(0x539),_0x1f0ee2[_0x1f0ee2[_0x5ebc5d(0x3f6)]=-0x1]='UNRECOGNIZED',_0x1f0ee2))(_0x3ee7c8||{});const _0x5dd0cc='collaboration-client.config',_0x5c6234={};function _0xee418d(_0x46f836){const _0xbcb68e=_0x5ebc5d;var _0x37761b,_0x58ffdd,_0x29c0b5,_0x347bb4;const _0xeadff0=_0x46f836[_0xbcb68e(0x5ea)],_0x4ca782=JSON[_0xbcb68e(0x467)](_0xeadff0);switch(_0x4ca782[_0xbcb68e(0x4b1)]){case _0x2d5504[_0xbcb68e(0x260)]:case _0x2d5504[_0xbcb68e(0x20c)]:{const _0x33b72e=_0x4ca782[_0xbcb68e(0x23d)];return{..._0x4ca782,'data':_0x33b72e,'cmd':_0x4ca782['cmd']};}case _0x2d5504['JOIN']:{const _0x49cea9=_0x4ca782[_0xbcb68e(0x542)];return{..._0x4ca782,'data':_0x49cea9,'cmd':_0x4ca782['cmd']};}case _0x2d5504[_0xbcb68e(0x2df)]:{const _0x229a5f=_0x4ca782[_0xbcb68e(0x24e)];switch(_0x229a5f[_0xbcb68e(0x271)]){case _0x292f17['CollaborationEvent']['PERMISSION_REJ']:return{..._0x4ca782,'data':{..._0x229a5f,'data':(_0x37761b=_0x229a5f[_0xbcb68e(0x513)])==null?void 0x0:_0x37761b['cs']},'cmd':_0x4ca782['cmd']};case _0x292f17[_0xbcb68e(0x351)][_0xbcb68e(0x405)]:return{..._0x4ca782,'data':{..._0x229a5f,'data':(_0x58ffdd=_0x229a5f[_0xbcb68e(0x2ab)])==null?void 0x0:_0x58ffdd['cs']},'cmd':_0x4ca782[_0xbcb68e(0x4b1)]};case _0x292f17[_0xbcb68e(0x351)][_0xbcb68e(0x450)]:return{..._0x4ca782,'data':{..._0x229a5f,'data':(_0x29c0b5=_0x229a5f[_0xbcb68e(0x2a5)])==null?void 0x0:_0x29c0b5['cs']},'cmd':_0x4ca782[_0xbcb68e(0x4b1)]};case _0x292f17[_0xbcb68e(0x351)][_0xbcb68e(0x26e)]:return{..._0x4ca782,'data':{..._0x229a5f,'data':(_0x347bb4=_0x229a5f['csRejEvent'])==null?void 0x0:_0x347bb4['cs']},'cmd':_0x4ca782[_0xbcb68e(0x4b1)]};case _0x292f17['CollaborationEvent'][_0xbcb68e(0x550)]:return{..._0x4ca782,'data':{..._0x229a5f,'data':_0x229a5f['updateCursorEvent']},'cmd':_0x4ca782[_0xbcb68e(0x4b1)]};case _0x292f17[_0xbcb68e(0x351)]['USERS_ENTER']:return{..._0x4ca782,'data':{..._0x229a5f,'data':_0x229a5f[_0xbcb68e(0x507)]},'cmd':_0x4ca782['cmd']};case _0x292f17['CollaborationEvent'][_0xbcb68e(0x279)]:return{..._0x4ca782,'data':{..._0x229a5f,'data':_0x229a5f[_0xbcb68e(0x2d8)]},'cmd':_0x4ca782[_0xbcb68e(0x4b1)]};case _0x292f17[_0xbcb68e(0x351)]['LIVESHARE_NEW_HOST']:return{..._0x4ca782,'data':{..._0x229a5f,'data':_0x229a5f[_0xbcb68e(0x3f4)]},'cmd':_0x4ca782[_0xbcb68e(0x4b1)]};case _0x292f17[_0xbcb68e(0x351)][_0xbcb68e(0x5cb)]:case _0x292f17['CollaborationEvent'][_0xbcb68e(0x55c)]:return{..._0x4ca782,'data':{..._0x229a5f,'data':_0x229a5f[_0xbcb68e(0x604)]},'cmd':_0x4ca782[_0xbcb68e(0x4b1)]};case _0x292f17[_0xbcb68e(0x351)][_0xbcb68e(0x456)]:return{..._0x4ca782,'data':{..._0x229a5f,'data':_0x229a5f[_0xbcb68e(0x3f4)]},'cmd':_0x4ca782[_0xbcb68e(0x4b1)]};case _0x292f17[_0xbcb68e(0x351)]['MSG_FOR_ERROR']:return{..._0x4ca782,'data':_0x229a5f,'cmd':_0x4ca782[_0xbcb68e(0x4b1)]};case _0x292f17[_0xbcb68e(0x351)][_0xbcb68e(0x2dc)]:return{..._0x4ca782,'data':{..._0x229a5f,'data':_0x229a5f['commentUpdateEvent']},'cmd':_0x4ca782[_0xbcb68e(0x4b1)]};case _0x292f17[_0xbcb68e(0x351)][_0xbcb68e(0x57b)]:return{..._0x4ca782,'data':{..._0x229a5f,'data':_0x229a5f[_0xbcb68e(0x3f1)]},'cmd':_0x4ca782[_0xbcb68e(0x4b1)]};case _0x292f17['CollaborationEvent'][_0xbcb68e(0x3e0)]:return{..._0x4ca782,'data':{..._0x229a5f,'data':_0x229a5f['shouldCloseConn']},'cmd':_0x4ca782[_0xbcb68e(0x4b1)]};default:return _0x4ca782;}}default:return _0x4ca782;}}function _0x45f385(_0x1a9999){const _0x554b22=_0x5ebc5d;switch(_0x1a9999[_0x554b22(0x4b1)]){case _0x2d5504['HEARTBEAT']:case _0x2d5504[_0x554b22(0x20c)]:return JSON[_0x554b22(0x3c4)]({'cmd':_0x1a9999['cmd'],'routeKey':_0x1a9999[_0x554b22(0x518)]});case _0x2d5504['INGEST']:{let _0x5b1406;switch(_0x1a9999['data']['eventID']){case _0x292f17[_0x554b22(0x351)][_0x554b22(0x550)]:{_0x5b1406={'eventID':_0x292f17[_0x554b22(0x351)]['UPDATE_CURSOR'],'updateCursorEvent':_0x1a9999[_0x554b22(0x5ea)][_0x554b22(0x5ea)]};break;}case _0x292f17['CollaborationEvent']['USERS_LEAVE']:{_0x5b1406={'eventID':_0x292f17[_0x554b22(0x351)][_0x554b22(0x279)],'leaveEvent':_0x1a9999[_0x554b22(0x5ea)][_0x554b22(0x5ea)]};break;}case _0x292f17[_0x554b22(0x351)][_0x554b22(0x3db)]:{_0x5b1406={'eventID':_0x292f17[_0x554b22(0x351)][_0x554b22(0x3db)],'joinEvent':_0x1a9999[_0x554b22(0x5ea)][_0x554b22(0x5ea)]};break;}case _0x292f17[_0x554b22(0x351)][_0x554b22(0x2fe)]:{_0x5b1406={'eventID':_0x292f17[_0x554b22(0x351)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x1a9999[_0x554b22(0x5ea)][_0x554b22(0x5ea)]};break;}case _0x292f17[_0x554b22(0x351)][_0x554b22(0x55c)]:{_0x5b1406={'eventID':_0x292f17[_0x554b22(0x351)][_0x554b22(0x55c)],'liveShareOperation':_0x1a9999['data']['data']};break;}case _0x292f17[_0x554b22(0x351)]['LIVESHARE_TERMINATE']:{_0x5b1406={'eventID':_0x292f17[_0x554b22(0x351)][_0x554b22(0x456)],'liveShareTerminate':_0x1a9999['data'][_0x554b22(0x5ea)]};break;}case _0x292f17[_0x554b22(0x351)][_0x554b22(0x215)]:{_0x5b1406={'eventID':_0x292f17[_0x554b22(0x351)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x1a9999[_0x554b22(0x5ea)]['data']};break;}case _0x292f17['CollaborationEvent'][_0x554b22(0x5cb)]:{_0x5b1406={'eventID':_0x292f17[_0x554b22(0x351)][_0x554b22(0x5cb)]};break;}default:_0x5b1406={'eventID':_0x1a9999['data'][_0x554b22(0x271)]};}return JSON[_0x554b22(0x3c4)]({'cmd':_0x1a9999['cmd'],'routeKey':_0x1a9999[_0x554b22(0x518)],'collaMsg':_0x5b1406});}case _0x2d5504[_0x554b22(0x483)]:return JSON[_0x554b22(0x3c4)]({'cmd':_0x1a9999[_0x554b22(0x4b1)],'routeKey':_0x1a9999[_0x554b22(0x518)],'joinReq':_0x1a9999[_0x554b22(0x5ea)]});case _0x2d5504[_0x554b22(0x3c7)]:return JSON[_0x554b22(0x3c4)]({'cmd':_0x1a9999[_0x554b22(0x4b1)],'routeKey':_0x1a9999['routeKey'],'leaveReq':_0x1a9999[_0x554b22(0x5ea)]});default:throw new Error(_0x554b22(0x228));}}var _0x509e95=Object[_0x5ebc5d(0x552)],_0x8594b1=Object[_0x5ebc5d(0x38b)],_0x21a271=(_0x186de7,_0x18dc84,_0x1329c4,_0x2752e2)=>{const _0x3bd92a=_0x5ebc5d;for(var _0x3d01ac=_0x2752e2>0x1?void 0x0:_0x2752e2?_0x8594b1(_0x18dc84,_0x1329c4):_0x18dc84,_0x5d84aa=_0x186de7[_0x3bd92a(0x522)]-0x1,_0x304738;_0x5d84aa>=0x0;_0x5d84aa--)(_0x304738=_0x186de7[_0x5d84aa])&&(_0x3d01ac=(_0x2752e2?_0x304738(_0x18dc84,_0x1329c4,_0x3d01ac):_0x304738(_0x3d01ac))||_0x3d01ac);return _0x2752e2&&_0x3d01ac&&_0x509e95(_0x18dc84,_0x1329c4,_0x3d01ac),_0x3d01ac;},_0x5d80a8=(_0x3f4b47,_0x51f700)=>(_0x51e04c,_0x21daec)=>_0x51f700(_0x51e04c,_0x21daec,_0x3f4b47);const _0x2fd48c=_0x204831[_0x5ebc5d(0x43d)]('univer-pro.collaboration-client-socket-service');function _0x3933ba(_0x3ef53b,_0x32f079,_0x488269){const _0x44fffe=_0x5ebc5d;return _0x3ef53b+'/'+_0x32f079+_0x44fffe(0x276)+_0x488269+_0x44fffe(0x2ce);}_0x52f4d9['CollaborationSocketService']=class extends _0x204831['Disposable']{constructor(_0x5bb067,_0x15996a,_0x294145,_0x18f8f4,_0x59a21f){const _0x222be6=_0x5ebc5d;super(),this[_0x222be6(0x5ad)]=_0x5bb067,this[_0x222be6(0x4c3)]=_0x15996a,this[_0x222be6(0x45e)]=_0x294145,this['_logService']=_0x18f8f4,this[_0x222be6(0x4fd)]=_0x59a21f;}[_0x5ebc5d(0x304)](_0xe59d10){const _0x11b4e7=_0x5ebc5d,_0x53353d=this[_0x11b4e7(0x4c3)]['createSocket'](_0xe59d10);if(!_0x53353d)throw new Error(_0x11b4e7(0x28d));const _0x4243c6=new _0x204831['DisposableCollection'](),_0x2dd314=new _0x2ea3f3[(_0x11b4e7(0x31a))]();_0x4243c6[_0x11b4e7(0x329)](_0x53353d[_0x11b4e7(0x397)][_0x11b4e7(0x2e1)](_0x320332=>_0x2dd314[_0x11b4e7(0x50a)](_0x320332))),_0x4243c6['add'](_0x204831[_0x11b4e7(0x5b7)](()=>_0x2dd314[_0x11b4e7(0x221)]()));const _0x4b133b=new _0x2ea3f3[(_0x11b4e7(0x31a))]();_0x4243c6['add'](_0x53353d[_0x11b4e7(0x2da)][_0x11b4e7(0x2e1)](_0x4db2f4=>_0x4b133b[_0x11b4e7(0x50a)](_0x4db2f4))),_0x4243c6[_0x11b4e7(0x329)](_0x204831['toDisposable'](()=>_0x4b133b[_0x11b4e7(0x221)]()));const _0x3d32d5=new _0x2ea3f3[(_0x11b4e7(0x31a))]();_0x4243c6['add'](_0x53353d['message$'][_0x11b4e7(0x2e1)](_0x3391d7=>{const _0x4d7230=_0x11b4e7,_0x8c6e64=_0xee418d(_0x3391d7);_0x3d32d5[_0x4d7230(0x50a)](_0x8c6e64);})),_0x4243c6[_0x11b4e7(0x329)](_0x204831[_0x11b4e7(0x5b7)](()=>_0x3d32d5[_0x11b4e7(0x221)]()));let _0x591256;const _0x3a161d=()=>{const _0x465167=_0x11b4e7;_0x4b133b[_0x465167(0x50a)](new Event(_0x465167(0x514))),_0x2dd314[_0x465167(0x50a)](new CloseEvent(_0x465167(0x514))),_0x591256[_0x465167(0x377)]();};return _0x591256={'memberID':'','close$':_0x2dd314[_0x11b4e7(0x4f3)](),'error$':_0x4b133b['asObservable'](),'open$':_0x53353d['open$'],'message$':_0x3d32d5[_0x11b4e7(0x4f3)](),'send':_0x2c5e29=>{const _0x455bd7=_0x11b4e7;if(_0x2c5e29[_0x455bd7(0x4b1)]===_0x2d5504[_0x455bd7(0x311)]){if(_0x2c5e29[_0x455bd7(0x5ea)][_0x455bd7(0x271)]===_0x292f17[_0x455bd7(0x351)][_0x455bd7(0x422)]){this['_submitChangeset'](_0x591256,_0x2c5e29[_0x455bd7(0x5ea)])['catch'](_0x1227a4=>{const _0x9f24cc=_0x455bd7;this[_0x9f24cc(0x5b0)][_0x9f24cc(0x5c5)](_0x1227a4),_0x3a161d();});return;}if(_0x2c5e29[_0x455bd7(0x5ea)]['eventID']===_0x292f17[_0x455bd7(0x351)]['FETCH_MISSING']){const _0x2dff49=_0x2c5e29[_0x455bd7(0x5ea)];this['_fetchMissChangesets'](_0x2dff49)[_0x455bd7(0x537)](_0x52c8c9=>{const _0x2efd47=_0x455bd7;_0x3d32d5[_0x2efd47(0x50a)]({'cmd':_0x2d5504[_0x2efd47(0x2df)],'code':_0x59d188['OK'],'routeKey':_0x2dff49[_0x2efd47(0x5ea)]['unitID'],'routeType':'','data':{'eventID':_0x292f17['CollaborationEvent'][_0x2efd47(0x243)],'data':{'changesets':_0x52c8c9}}});})[_0x455bd7(0x1ee)](_0x28f98e=>{const _0x18cbe4=_0x455bd7;this[_0x18cbe4(0x5b0)][_0x18cbe4(0x5c5)](_0x28f98e),_0x3a161d();});return;}}_0x53353d['send'](_0x45f385(_0x2c5e29));},'close':()=>{const _0x296965=_0x11b4e7;_0x53353d[_0x296965(0x377)](),_0x4243c6[_0x296965(0x2dd)]();}},_0x591256;}async[_0x5ebc5d(0x373)](_0x4ed88b,_0x4ae37a){const _0x3893a5=_0x5ebc5d;var _0x4b1f26,_0x4ac7be;const {unitType:_0x442171,unitID:_0x2fb342,changeset:_0x3f69dd}=_0x4ae37a[_0x3893a5(0x5ea)],_0x4a1854={'unitID':_0x2fb342,'memberID':_0x4ed88b[_0x3893a5(0x33d)],'type':_0x442171,'changeset':_0x292f17[_0x3893a5(0x42a)](_0x3f69dd)},_0x1a0798=this[_0x3893a5(0x45e)]['getConfig'](_0x500ffa),_0x1faf39=this[_0x3893a5(0x45e)]['getConfig'](_0x5dd0cc),_0x52d33d=_0x3933ba((_0x4ac7be=(_0x4b1f26=_0x1faf39==null?void 0x0:_0x1faf39[_0x3893a5(0x58c)])!=null?_0x4b1f26:_0x1a0798)!=null?_0x4ac7be:_0x91580e,_0x442171,_0x2fb342);try{await this[_0x3893a5(0x5ad)][_0x3893a5(0x3ac)](_0x52d33d,{'body':_0x4a1854});}catch(_0x5d36e4){throw this['_logService']['error']('[CollaborationSession]','submit\x20changeset\x20error!'),_0x5d36e4;}}async[_0x5ebc5d(0x4c0)](_0x234d96){const _0x440d32=_0x5ebc5d,{unitID:_0xdd9b7a,from:_0x451438,to:_0x505d9c,unitType:_0x573e6b}=_0x234d96[_0x440d32(0x5ea)];return(await this[_0x440d32(0x4fd)][_0x440d32(0x2db)]({'metadata':void 0x0},{'unitID':_0xdd9b7a,'type':_0x573e6b,'from':_0x451438,'to':_0x505d9c}))[_0x440d32(0x53d)];}},_0x52f4d9[_0x5ebc5d(0x368)]=_0x21a271([_0x5d80a8(0x0,_0x204831[_0x5ebc5d(0x5cf)](_0x59f944[_0x5ebc5d(0x5a1)])),_0x5d80a8(0x1,_0x204831[_0x5ebc5d(0x5cf)](_0x59f944[_0x5ebc5d(0x2ac)])),_0x5d80a8(0x2,_0x204831[_0x5ebc5d(0x418)]),_0x5d80a8(0x3,_0x204831[_0x5ebc5d(0x4a5)]),_0x5d80a8(0x4,_0x292f17[_0x5ebc5d(0x48a)])],_0x52f4d9[_0x5ebc5d(0x368)]);const _0x1eb711=_0x5ebc5d(0x3fe);function _0x5d4e79(_0x7dd106){const _0x241232=_0x5ebc5d;return JSON[_0x241232(0x3c4)](_0x7dd106)[_0x241232(0x522)];}class _0x43bd59{constructor(){const _0x4cbe8f=_0x5ebc5d;_0x3d4e20(this,_0x4cbe8f(0x383),new _0x2ea3f3[(_0x4cbe8f(0x31a))]()),_0x3d4e20(this,_0x4cbe8f(0x24b),this[_0x4cbe8f(0x383)]['asObservable']());}['onCommentUpdate'](_0x59bc0e){const _0x851861=_0x5ebc5d;this[_0x851861(0x383)][_0x851861(0x50a)](_0x59bc0e);}}var _0x2f5ec4=Object[_0x5ebc5d(0x552)],_0x1677e3=Object[_0x5ebc5d(0x38b)],_0x589580=(_0x2354f0,_0x4530e1,_0x33271f,_0x37ab25)=>{for(var _0x24b7c7=_0x37ab25>0x1?void 0x0:_0x37ab25?_0x1677e3(_0x4530e1,_0x33271f):_0x4530e1,_0x4e5c74=_0x2354f0['length']-0x1,_0x4e9cca;_0x4e5c74>=0x0;_0x4e5c74--)(_0x4e9cca=_0x2354f0[_0x4e5c74])&&(_0x24b7c7=(_0x37ab25?_0x4e9cca(_0x4530e1,_0x33271f,_0x24b7c7):_0x4e9cca(_0x24b7c7))||_0x24b7c7);return _0x37ab25&&_0x24b7c7&&_0x2f5ec4(_0x4530e1,_0x33271f,_0x24b7c7),_0x24b7c7;},_0x43f39c=(_0x5e55a5,_0x181d65)=>(_0x530e0c,_0x4eb973)=>_0x181d65(_0x530e0c,_0x4eb973,_0x5e55a5);let _0x3796d3=class extends _0x204831[_0x5ebc5d(0x3f5)]{constructor(_0x3f9d5f,_0x1da299){const _0x581dd0=_0x5ebc5d;super(),_0x3d4e20(this,_0x581dd0(0x54f),new Map()),(this[_0x581dd0(0x48f)]=_0x3f9d5f,this[_0x581dd0(0x2b6)]=_0x1da299,this['disposeWithMe'](_0x204831[_0x581dd0(0x5b7)](_0x2ea3f3[_0x581dd0(0x559)](this[_0x581dd0(0x48f)]['getTypeOfUnitDisposed$'](_0x204831['UniverInstanceType'][_0x581dd0(0x49c)])[_0x581dd0(0x30d)](_0x452c71[_0x581dd0(0x5ef)](_0x53c6c1=>_0x53c6c1[_0x581dd0(0x34b)]())),this['_univerInstanceService'][_0x581dd0(0x496)](_0x204831[_0x581dd0(0x49b)][_0x581dd0(0x3ef)])[_0x581dd0(0x30d)](_0x452c71[_0x581dd0(0x5ef)](_0x4166fe=>_0x4166fe[_0x581dd0(0x34b)]())),this[_0x581dd0(0x48f)]['getTypeOfUnitDisposed$'](_0x204831[_0x581dd0(0x49b)][_0x581dd0(0x1f7)])[_0x581dd0(0x30d)](_0x452c71[_0x581dd0(0x5ef)](_0x3533e0=>_0x3533e0['getUnitId']())))['subscribe'](_0x31314d=>this[_0x581dd0(0x239)](_0x31314d)))));}[_0x5ebc5d(0x575)](_0x3cfce9){const _0x2e0e8a=_0x5ebc5d;this[_0x2e0e8a(0x2b6)][_0x2e0e8a(0x575)](_0x3cfce9);}[_0x5ebc5d(0x4f4)](){const _0x5bfda0=_0x5ebc5d;return this[_0x5bfda0(0x2b6)][_0x5bfda0(0x4f4)]();}[_0x5ebc5d(0x209)](_0x1e47c3,_0x127492){const _0x567213=_0x5ebc5d;let _0x14fbf9=this[_0x567213(0x54f)][_0x567213(0x222)](_0x1e47c3);_0x14fbf9||(_0x14fbf9=new _0x3e08d1(),this[_0x567213(0x54f)]['set'](_0x1e47c3,_0x14fbf9)),_0x14fbf9[_0x567213(0x209)](_0x127492);}['removeMember'](_0x1d67d6,_0x24b0e9){const _0x17fce2=_0x5ebc5d,_0x473f41=this[_0x17fce2(0x54f)][_0x17fce2(0x222)](_0x1d67d6);_0x473f41&&_0x473f41[_0x17fce2(0x401)](_0x24b0e9);}[_0x5ebc5d(0x3c6)](_0x56716f){const _0x19b18a=_0x5ebc5d;return this[_0x19b18a(0x54f)][_0x19b18a(0x222)](_0x56716f);}['getMember'](_0x5c7e94,_0x381b20){const _0x5aa2bd=_0x5ebc5d,_0x1d1663=this[_0x5aa2bd(0x54f)][_0x5aa2bd(0x222)](_0x5c7e94);if(_0x1d1663)return _0x1d1663[_0x5aa2bd(0x409)](_0x381b20);}['_removeRoom'](_0x3e68a0){const _0x2229cc=_0x5ebc5d,_0x5512a=this[_0x2229cc(0x54f)][_0x2229cc(0x222)](_0x3e68a0);_0x5512a&&(_0x5512a['dispose'](),this[_0x2229cc(0x54f)]['delete'](_0x3e68a0));}['dispose'](){const _0x11fc6e=_0x5ebc5d;this[_0x11fc6e(0x54f)][_0x11fc6e(0x394)](_0x11234c=>_0x11234c[_0x11fc6e(0x2dd)]()),this[_0x11fc6e(0x54f)][_0x11fc6e(0x45a)]();}};_0x3796d3=_0x589580([_0x43f39c(0x0,_0x204831[_0x5ebc5d(0x335)]),_0x43f39c(0x1,_0x204831[_0x5ebc5d(0x5cf)](_0x204831[_0x5ebc5d(0x30b)]))],_0x3796d3);class _0x3e08d1 extends _0x204831[_0x5ebc5d(0x3f5)]{constructor(){super(...arguments),_0x3d4e20(this,'_members',new Map());}['dispose'](){const _0x25e5ff=_0x5ebc5d;this[_0x25e5ff(0x251)][_0x25e5ff(0x45a)]();}[_0x5ebc5d(0x209)](_0x4978bf){const _0x312713=_0x5ebc5d;this[_0x312713(0x251)][_0x312713(0x5a4)](_0x4978bf['memberID'],_0x4978bf);}[_0x5ebc5d(0x401)](_0x411cac){const _0x5efb46=_0x5ebc5d;this[_0x5efb46(0x251)][_0x5efb46(0x51a)](_0x411cac);}['getMember'](_0x36a307){const _0x149e42=_0x5ebc5d;return this['_members'][_0x149e42(0x222)](_0x36a307);}}var _0x27df8b=Object['defineProperty'],_0x17aa2c=Object[_0x5ebc5d(0x38b)],_0xe131d5=(_0x52c1b7,_0x4ff9fc,_0xf7b016,_0x1cf095)=>{const _0x5763c8=_0x5ebc5d;for(var _0x1670bd=_0x1cf095>0x1?void 0x0:_0x1cf095?_0x17aa2c(_0x4ff9fc,_0xf7b016):_0x4ff9fc,_0x254d29=_0x52c1b7[_0x5763c8(0x522)]-0x1,_0x552c41;_0x254d29>=0x0;_0x254d29--)(_0x552c41=_0x52c1b7[_0x254d29])&&(_0x1670bd=(_0x1cf095?_0x552c41(_0x4ff9fc,_0xf7b016,_0x1670bd):_0x552c41(_0x1670bd))||_0x1670bd);return _0x1cf095&&_0x1670bd&&_0x27df8b(_0x4ff9fc,_0xf7b016,_0x1670bd),_0x1670bd;},_0x9b576a=(_0xd07c70,_0x206187)=>(_0x24505d,_0x43ca0b)=>_0x206187(_0x24505d,_0x43ca0b,_0xd07c70),_0x52ce60=(_0x2ad52c=>(_0x2ad52c[_0x2ad52c[_0x5ebc5d(0x274)]=0x0]=_0x5ebc5d(0x274),_0x2ad52c[_0x2ad52c[_0x5ebc5d(0x309)]=0x1]=_0x5ebc5d(0x309),_0x2ad52c[_0x2ad52c[_0x5ebc5d(0x34e)]=0x2]=_0x5ebc5d(0x34e),_0x2ad52c[_0x2ad52c[_0x5ebc5d(0x292)]=0x3]=_0x5ebc5d(0x292),_0x2ad52c))(_0x52ce60||{});_0x52f4d9[_0x5ebc5d(0x285)]=class extends _0x204831[_0x5ebc5d(0x3e5)]{constructor(_0x3c1253,_0x3c0173,_0x5bab63,_0x5d8e7f,_0x2b1ecb,_0x3a2e72,_0x257985,_0x1530fd,_0x3e7c50,_0x27c5d1){const _0x3f12ab=_0x5ebc5d;super(),_0x3d4e20(this,_0x3f12ab(0x54c),new _0x2ea3f3[(_0x3f12ab(0x565))](0x0)),_0x3d4e20(this,_0x3f12ab(0x229),this[_0x3f12ab(0x54c)][_0x3f12ab(0x4f3)]()),_0x3d4e20(this,'_event$',new _0x2ea3f3['Subject']()),_0x3d4e20(this,'event$',this['_event$'][_0x3f12ab(0x4f3)]()),_0x3d4e20(this,_0x3f12ab(0x2fb)),_0x3d4e20(this,_0x3f12ab(0x47b)),_0x3d4e20(this,_0x3f12ab(0x438)),_0x3d4e20(this,_0x3f12ab(0x27e),!0x1),_0x3d4e20(this,_0x3f12ab(0x34a),null),(this['_unitID']=_0x3c1253,this[_0x3f12ab(0x5b0)]=_0x5bab63,this['_beforeCloseService']=_0x5d8e7f,this[_0x3f12ab(0x534)]=_0x2b1ecb,this['_configService']=_0x3a2e72,this[_0x3f12ab(0x4af)]=_0x257985,this[_0x3f12ab(0x5f6)]=_0x1530fd,this[_0x3f12ab(0x3de)]=_0x3e7c50,this[_0x3f12ab(0x5bd)]=_0x27c5d1,this[_0x3f12ab(0x27e)]=!!this[_0x3f12ab(0x5bd)],_0x3c0173[_0x3f12ab(0x30d)](_0x2ea3f3[_0x3f12ab(0x31f)](this[_0x3f12ab(0x56d)]))[_0x3f12ab(0x2e1)](_0x58632c=>{const _0x544bcb=_0x3f12ab;var _0x429906;typeof _0x58632c>'u'||(this[_0x544bcb(0x2fb)]=_0x58632c,_0x58632c?(this[_0x544bcb(0x22f)](_0x58632c),this[_0x544bcb(0x47b)]=_0x58632c[_0x544bcb(0x358)][_0x544bcb(0x2e1)](_0x61478c=>{const _0xadb287=_0x544bcb;_0x61478c[_0xadb287(0x518)]===this[_0xadb287(0x3c3)]&&this['_onCombEvent'](_0x61478c);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x544bcb(0x54c)][_0x544bcb(0x50a)](0x2),(_0x429906=this['_socketMessageSubscription'])==null||_0x429906['unsubscribe'](),this[_0x544bcb(0x47b)]=null));}),this[_0x3f12ab(0x382)](this['_beforeCloseService'][_0x3f12ab(0x5c7)](()=>{const _0x2bc033=_0x3f12ab;var _0x1a13f5;(_0x1a13f5=this[_0x2bc033(0x2fb)])==null||_0x1a13f5['send']({'cmd':_0x2d5504['LEAVE'],'data':{'roomID':this[_0x2bc033(0x3c3)]}});})));}get[_0x5ebc5d(0x2eb)](){const _0x2f980a=_0x5ebc5d;return this[_0x2f980a(0x54c)][_0x2f980a(0x55d)]();}['getMemberID'](){const _0xd5625b=_0x5ebc5d;var _0x5b31f6,_0x4a36e9;return(_0x4a36e9=(_0x5b31f6=this[_0xd5625b(0x2fb)])==null?void 0x0:_0x5b31f6[_0xd5625b(0x33d)])!=null?_0x4a36e9:null;}[_0x5ebc5d(0x2dd)](){const _0x4d1bbc=_0x5ebc5d;super[_0x4d1bbc(0x2dd)](),this['dispose$']['next'](),this[_0x4d1bbc(0x56d)]['complete']();}[_0x5ebc5d(0x377)](){const _0x3efa90=_0x5ebc5d;var _0x4d09a3,_0xad7eb7;this[_0x3efa90(0x35d)](),(_0x4d09a3=this[_0x3efa90(0x2fb)])==null||_0x4d09a3[_0x3efa90(0x433)]({'cmd':_0x2d5504['LEAVE'],'data':{'roomID':this['_unitID']}}),(_0xad7eb7=this[_0x3efa90(0x2fb)])==null||_0xad7eb7[_0x3efa90(0x377)](),this[_0x3efa90(0x3a7)][_0x3efa90(0x221)](),this['_sessionStatus$'][_0x3efa90(0x221)](),this[_0x3efa90(0x2dd)]();}['_onCombEvent'](_0x391d58){const _0x5c7093=_0x5ebc5d;_0x391d58[_0x5c7093(0x4b1)]===_0x2d5504['JOIN']?this[_0x5c7093(0x234)](_0x391d58):_0x391d58[_0x5c7093(0x4b1)]===_0x2d5504['RECV']&&this[_0x5c7093(0x3f9)](_0x391d58);}[_0x5ebc5d(0x22f)](_0x1cb8d9){const _0x67a107=_0x5ebc5d;this[_0x67a107(0x54c)][_0x67a107(0x50a)](0x1),_0x1cb8d9['send']({'cmd':_0x2d5504[_0x67a107(0x483)],'routeKey':this[_0x67a107(0x3c3)],'routeType':'','data':{'rooms':[{'roomID':this[_0x67a107(0x3c3)]}]}});}[_0x5ebc5d(0x234)](_0x57677b){const _0x2d9d83=_0x5ebc5d;var _0x2059ab;if(_0x57677b['code']===_0x59d188[_0x2d9d83(0x3e1)]){this['_messageService'][_0x2d9d83(0x497)]({'type':_0x53bcf5[_0x2d9d83(0x465)]['Warning'],'content':this[_0x2d9d83(0x4af)]['t'](_0x2d9d83(0x388))}),this[_0x2d9d83(0x54c)]['next'](0x2);return;}this[_0x2d9d83(0x54c)][_0x2d9d83(0x50a)](0x3);const _0x22fd22=(_0x2059ab=_0x57677b[_0x2d9d83(0x5ea)][_0x2d9d83(0x2f9)][this[_0x2d9d83(0x3c3)]])==null?void 0x0:_0x2059ab[_0x2d9d83(0x454)];_0x22fd22&&_0x22fd22[_0x2d9d83(0x394)](_0x208c60=>this[_0x2d9d83(0x5f6)]['updateMember'](this[_0x2d9d83(0x3c3)],_0x208c60));}['_onRecvEvent'](_0x37a59c){const _0x359928=_0x5ebc5d;try{const _0x142779=_0x37a59c[_0x359928(0x5ea)];switch(_0x142779['eventID']){case _0x292f17[_0x359928(0x351)][_0x359928(0x3db)]:this[_0x359928(0x31b)](_0x142779),this['_event$']['next'](_0x142779);break;case _0x292f17[_0x359928(0x351)][_0x359928(0x279)]:this[_0x359928(0x1ff)](_0x142779),this[_0x359928(0x3a7)][_0x359928(0x50a)](_0x142779);break;case _0x292f17[_0x359928(0x351)][_0x359928(0x405)]:this[_0x359928(0x33b)](),this[_0x359928(0x601)](),this[_0x359928(0x3a7)]['next'](_0x142779);break;case _0x292f17[_0x359928(0x351)][_0x359928(0x30f)]:this[_0x359928(0x5b0)][_0x359928(0x5c5)](_0x359928(0x219)+JSON[_0x359928(0x3c4)](_0x142779)),this['_event$'][_0x359928(0x50a)](_0x142779);break;case _0x292f17[_0x359928(0x351)][_0x359928(0x2dc)]:this['_commentService'][_0x359928(0x452)](_0x142779[_0x359928(0x5ea)]),this[_0x359928(0x3a7)][_0x359928(0x50a)](_0x142779);break;default:this['_event$'][_0x359928(0x50a)](_0x142779);}}catch(_0x1e4a12){this[_0x359928(0x5b0)][_0x359928(0x5c5)](_0x1e4a12,_0x37a59c);}}[_0x5ebc5d(0x31b)](_0x12992e){const _0x5e06a0=_0x5ebc5d;this[_0x5e06a0(0x5f6)][_0x5e06a0(0x209)](this[_0x5e06a0(0x3c3)],_0x12992e['data']);}[_0x5ebc5d(0x1ff)](_0x23673e){const _0x36d332=_0x5ebc5d;this[_0x36d332(0x5f6)][_0x36d332(0x401)](this['_unitID'],_0x23673e[_0x36d332(0x5ea)]['memberID']);}async[_0x5ebc5d(0x433)](_0x151b2c,_0x5d3e6f){const _0xe98800=_0x5ebc5d;if(this[_0xe98800(0x2eb)]!==0x3||!this[_0xe98800(0x2fb)])throw new Error(_0xe98800(0x3e6));try{_0x151b2c[_0xe98800(0x271)]===_0x292f17[_0xe98800(0x351)][_0xe98800(0x422)]&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x151b2c)),this[_0xe98800(0x2fb)]['send']({'cmd':_0x2d5504[_0xe98800(0x311)],'routeKey':_0x5d3e6f,'routeType':'','data':_0x151b2c});}catch(_0x4b38f7){this['_logService'][_0xe98800(0x5c5)](_0x4b38f7);}}[_0x5ebc5d(0x25e)](){const _0x3bc6c4=_0x5ebc5d;var _0x1e77a8;this[_0x3bc6c4(0x438)]=window[_0x3bc6c4(0x4b5)](()=>{const _0xe89724=_0x3bc6c4;this[_0xe89724(0x438)]=null,this[_0xe89724(0x534)]['show']({'type':_0x53bcf5[_0xe89724(0x465)][_0xe89724(0x56a)],'content':this[_0xe89724(0x4af)]['t'](_0xe89724(0x4cf))});},(_0x1e77a8=this[_0x3bc6c4(0x45e)]['getConfig'](_0x1e8dea))!=null?_0x1e77a8:0x4e20);}[_0x5ebc5d(0x601)](){const _0x8d57e=_0x5ebc5d;this[_0x8d57e(0x438)]&&(clearTimeout(this[_0x8d57e(0x438)]),this[_0x8d57e(0x438)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x4de6ef){const _0x2f5b31=_0x5ebc5d;if(!this[_0x2f5b31(0x27e)])return;const {data:_0x5d9549}=_0x4de6ef,{unitID:_0x57d9fe,changeset:_0x367b63}=_0x5d9549,{mutations:_0x47a3b3,type:_0x13ba81}=_0x367b63;this[_0x2f5b31(0x34a)]={'unitId':_0x57d9fe,'type':_0x13ba81,'startTime':performance[_0x2f5b31(0x439)](),'stopTime':0x0,'duration':0x0,'size':_0x5d4e79(_0x47a3b3)};}[_0x5ebc5d(0x33b)](){const _0x3807ea=_0x5ebc5d;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this['_logService'][_0x3807ea(0x5c5)](_0x3807ea(0x366),_0x3807ea(0x58e));return;}this[_0x3807ea(0x34a)][_0x3807ea(0x278)]=performance['now'](),this['_telemetryInfo']['duration']=this[_0x3807ea(0x34a)][_0x3807ea(0x278)]-this[_0x3807ea(0x34a)][_0x3807ea(0x511)],this[_0x3807ea(0x5bd)]['capture'](_0x1eb711,this['_telemetryInfo']),this[_0x3807ea(0x34a)]=null;}}[_0x5ebc5d(0x35d)](){const _0x59c5cd=_0x5ebc5d;this[_0x59c5cd(0x34a)]=null;}},_0x52f4d9[_0x5ebc5d(0x285)]=_0xe131d5([_0x9b576a(0x2,_0x204831[_0x5ebc5d(0x4a5)]),_0x9b576a(0x3,_0x1e1361[_0x5ebc5d(0x4f1)]),_0x9b576a(0x4,_0x1e1361[_0x5ebc5d(0x544)]),_0x9b576a(0x5,_0x204831[_0x5ebc5d(0x418)]),_0x9b576a(0x6,_0x204831[_0x5ebc5d(0x5cf)](_0x204831[_0x5ebc5d(0x2f5)])),_0x9b576a(0x7,_0x204831[_0x5ebc5d(0x5cf)](_0x3796d3)),_0x9b576a(0x8,_0x204831[_0x5ebc5d(0x5cf)](_0x43bd59)),_0x9b576a(0x9,_0x204831[_0x5ebc5d(0x39e)](_0x3afb77[_0x5ebc5d(0x400)]))],_0x52f4d9[_0x5ebc5d(0x285)]);var _0x29eb5a=Object[_0x5ebc5d(0x552)],_0x1d961b=Object[_0x5ebc5d(0x38b)],_0xa2b100=(_0x33012b,_0x185bc1,_0x4220bf,_0x14a531)=>{const _0x594d19=_0x5ebc5d;for(var _0x4cbe9f=_0x14a531>0x1?void 0x0:_0x14a531?_0x1d961b(_0x185bc1,_0x4220bf):_0x185bc1,_0x1d0fec=_0x33012b[_0x594d19(0x522)]-0x1,_0x6a5819;_0x1d0fec>=0x0;_0x1d0fec--)(_0x6a5819=_0x33012b[_0x1d0fec])&&(_0x4cbe9f=(_0x14a531?_0x6a5819(_0x185bc1,_0x4220bf,_0x4cbe9f):_0x6a5819(_0x4cbe9f))||_0x4cbe9f);return _0x14a531&&_0x4cbe9f&&_0x29eb5a(_0x185bc1,_0x4220bf,_0x4cbe9f),_0x4cbe9f;},_0x2c7865=(_0x204042,_0x19f07c)=>(_0x77d506,_0x1a4638)=>_0x19f07c(_0x77d506,_0x1a4638,_0x204042);_0x52f4d9[_0x5ebc5d(0x31c)]=class extends _0x204831[_0x5ebc5d(0x3f5)]{constructor(_0x1898c4,_0x419c8e,_0x35bee1,_0x2c7410,_0x9d1c55,_0x4e7ab5){const _0x5da5d6=_0x5ebc5d;super(),_0x3d4e20(this,_0x5da5d6(0x5d9),new _0x2ea3f3[(_0x5da5d6(0x565))](void 0x0)),_0x3d4e20(this,_0x5da5d6(0x316),this[_0x5da5d6(0x5d9)]['asObservable']()),_0x3d4e20(this,_0x5da5d6(0x211),null),_0x3d4e20(this,'_sessions',new Map()),_0x3d4e20(this,_0x5da5d6(0x1e8),new _0x2ea3f3[(_0x5da5d6(0x565))](_0x52ce60[_0x5da5d6(0x274)])),_0x3d4e20(this,_0x5da5d6(0x413),this[_0x5da5d6(0x1e8)][_0x5da5d6(0x4f3)]()),_0x3d4e20(this,_0x5da5d6(0x2f8),!0x1),_0x3d4e20(this,_0x5da5d6(0x408)),_0x3d4e20(this,_0x5da5d6(0x484),0x0),_0x3d4e20(this,_0x5da5d6(0x250)),_0x3d4e20(this,_0x5da5d6(0x46f)),(this[_0x5da5d6(0x60c)]=_0x1898c4,this[_0x5da5d6(0x4af)]=_0x419c8e,this['_messageService']=_0x35bee1,this[_0x5da5d6(0x5b0)]=_0x2c7410,this[_0x5da5d6(0x45e)]=_0x9d1c55,this['_socketService']=_0x4e7ab5,this['_initEventListeners']());}get[_0x5ebc5d(0x2fb)](){const _0x1b6c2d=_0x5ebc5d;return this[_0x1b6c2d(0x5d9)][_0x1b6c2d(0x55d)]();}['_initEventListeners'](){const _0x25130e=_0x5ebc5d;this[_0x25130e(0x346)](),this[_0x25130e(0x4fc)]();}[_0x5ebc5d(0x2dd)](){const _0x36d0b2=_0x5ebc5d;super[_0x36d0b2(0x2dd)](),this['_sessions'][_0x36d0b2(0x394)](_0x2fcabd=>_0x2fcabd[_0x36d0b2(0x2dd)]()),this[_0x36d0b2(0x365)][_0x36d0b2(0x45a)](),this[_0x36d0b2(0x1e8)]['complete']();}async[_0x5ebc5d(0x4ed)](_0x153070){const _0x36a8e5=_0x5ebc5d;if(this[_0x36a8e5(0x365)][_0x36a8e5(0x4ee)](_0x153070))return this['_sessions'][_0x36a8e5(0x222)](_0x153070);this[_0x36a8e5(0x2d4)]();const _0x279544=this[_0x36a8e5(0x60c)][_0x36a8e5(0x3c9)](_0x52f4d9[_0x36a8e5(0x285)],_0x153070,this['_socket$']['asObservable']());return this[_0x36a8e5(0x365)]['set'](_0x153070,_0x279544),_0x279544;}[_0x5ebc5d(0x218)](_0x23cc53){const _0x1ade3d=_0x5ebc5d;var _0x119dbf;const _0x435b15=this[_0x1ade3d(0x365)][_0x1ade3d(0x222)](_0x23cc53);_0x435b15&&(this[_0x1ade3d(0x365)][_0x1ade3d(0x51a)](_0x23cc53),_0x435b15[_0x1ade3d(0x377)]()),this['_sessions'][_0x1ade3d(0x2f2)]||(_0x119dbf=this[_0x1ade3d(0x2fb)])==null||_0x119dbf['close']();}[_0x5ebc5d(0x36d)](){const _0x15bde3=_0x5ebc5d;this[_0x15bde3(0x484)]=0x0,this[_0x15bde3(0x408)]!=null&&(clearTimeout(this[_0x15bde3(0x408)]),this[_0x15bde3(0x408)]=null),this[_0x15bde3(0x29c)]();}[_0x5ebc5d(0x21b)](){const _0x35123f=_0x5ebc5d;var _0x30a8de,_0x466027;const _0x198580=this['_configService'][_0x35123f(0x602)](_0x5e1249),_0x16d3fe=this['_configService'][_0x35123f(0x602)](_0x5dd0cc),_0x47a987=(_0x466027=(_0x30a8de=_0x16d3fe==null?void 0x0:_0x16d3fe['collabWebSocketUrl'])!=null?_0x30a8de:_0x198580)!=null?_0x466027:_0x3d2e75,_0x47a205=this[_0x35123f(0x546)][_0x35123f(0x304)](_0x47a987);return this['_candidateSocket']=_0x47a205,_0x47a205;}[_0x5ebc5d(0x2d4)](){const _0xcd4856=_0x5ebc5d;var _0x2ae62b,_0xacf4bf;try{const _0x144688=(_0xacf4bf=(_0x2ae62b=this['_socket'])!=null?_0x2ae62b:this[_0xcd4856(0x211)])!=null?_0xacf4bf:this[_0xcd4856(0x21b)]();if(_0x144688){const _0x168d16=_0x144688[_0xcd4856(0x433)];_0x144688[_0xcd4856(0x433)]=_0x547734=>(this[_0xcd4856(0x4e6)](),_0x168d16[_0xcd4856(0x57d)](_0x144688,[_0x547734])),_0x144688[_0xcd4856(0x358)][_0xcd4856(0x2e1)](_0x4a12fd=>this[_0xcd4856(0x476)](_0x144688,_0x4a12fd)),_0x144688['error$'][_0xcd4856(0x30d)](_0x452c71[_0xcd4856(0x4da)](0x1))[_0xcd4856(0x2e1)](_0x586287=>this[_0xcd4856(0x5b0)][_0xcd4856(0x5c5)]('[CollaborationSessionService]:\x20socket\x20error',_0x586287)),_0x144688[_0xcd4856(0x3c0)]['pipe'](_0x452c71['take'](0x1))[_0xcd4856(0x2e1)](()=>{const _0x131e15=_0xcd4856;this[_0x131e15(0x46e)](_0x144688);}),_0x144688[_0xcd4856(0x397)]['pipe'](_0x452c71[_0xcd4856(0x4da)](0x1))[_0xcd4856(0x2e1)](_0x16ddff=>{const _0x221591=_0xcd4856;this['_logService'][_0x221591(0x455)](_0x221591(0x2f3),'socket\x20close',_0x16ddff),this[_0x221591(0x57e)]();});}}catch(_0x18b02){this[_0xcd4856(0x5b0)][_0xcd4856(0x5c5)](_0x18b02),this[_0xcd4856(0x57e)]();}}[_0x5ebc5d(0x46e)](_0x1e7706){const _0x29c7f3=_0x5ebc5d;this[_0x29c7f3(0x5b0)][_0x29c7f3(0x455)](_0x29c7f3(0x2f3),'socket\x20open.'),_0x1e7706[_0x29c7f3(0x433)]({'cmd':_0x2d5504[_0x29c7f3(0x20c)]}),this[_0x29c7f3(0x4e6)]();}[_0x5ebc5d(0x346)](){const _0x5e1fc9=_0x5ebc5d;window['addEventListener'](_0x5e1fc9(0x24f),()=>this['_onOffline']());}['_onOffline'](){const _0x43ce4d=_0x5ebc5d;this[_0x43ce4d(0x2f8)]=!0x1,this[_0x43ce4d(0x211)]=null,this[_0x43ce4d(0x1e8)][_0x43ce4d(0x50a)](_0x52ce60[_0x43ce4d(0x34e)]),this[_0x43ce4d(0x5d9)][_0x43ce4d(0x50a)](null),this['_clearTimeoutTimer'](),this[_0x43ce4d(0x257)]();}[_0x5ebc5d(0x57e)](){const _0x2d572a=_0x5ebc5d;var _0x2b7db8;this[_0x2d572a(0x4c6)](),this['_retryCount']<((_0x2b7db8=this[_0x2d572a(0x45e)][_0x2d572a(0x602)](_0x5aece4))!=null?_0x2b7db8:0x3)?(this[_0x2d572a(0x534)][_0x2d572a(0x497)]({'key':'collaboration-session-retry','type':_0x53bcf5[_0x2d572a(0x465)]['Warning'],'content':this[_0x2d572a(0x4af)]['t'](_0x2d572a(0x27d))}),this['_tryReconnect']()):this[_0x2d572a(0x534)]['show']({'key':_0x2d572a(0x44a),'type':_0x53bcf5[_0x2d572a(0x465)][_0x2d572a(0x56a)],'content':this[_0x2d572a(0x4af)]['t'](_0x2d572a(0x391))});}[_0x5ebc5d(0x4fc)](){const _0x50fafc=_0x5ebc5d,_0x39dfb5=()=>{const _0x523d6a=_0x1c68;this[_0x523d6a(0x2fb)]||this[_0x523d6a(0x36d)]();},_0x312bfc=()=>{const _0x1a10ee=_0x1c68;this['_socket']||document[_0x1a10ee(0x3e3)]===_0x1a10ee(0x3fb)||this[_0x1a10ee(0x36d)]();};window[_0x50fafc(0x4b9)]('online',_0x39dfb5),document[_0x50fafc(0x4b9)](_0x50fafc(0x457),_0x312bfc);}[_0x5ebc5d(0x29c)](){const _0x56e79a=_0x5ebc5d;var _0x4e695e;const _0x5cea3e=this['_retryCount'],_0x4f1138=this[_0x56e79a(0x45e)][_0x56e79a(0x602)](_0x5dd0cc),_0x16b4d1=_0x5cea3e===0x0?0x0:((_0x4e695e=_0x4f1138==null?void 0x0:_0x4f1138['retryConnectingInterval'])!=null?_0x4e695e:0x4e20)*0x2**_0x5cea3e;this[_0x56e79a(0x408)]=window[_0x56e79a(0x4b5)](()=>{const _0x613f6d=_0x56e79a;clearTimeout(this[_0x613f6d(0x408)]),this[_0x613f6d(0x408)]=null,this[_0x613f6d(0x2d4)]();},_0x16b4d1),this[_0x56e79a(0x484)]+=0x1;}[_0x5ebc5d(0x476)](_0x3b7094,_0x1ddcf8){const _0x10d8e4=_0x5ebc5d,{cmd:_0x50e78b}=_0x1ddcf8;_0x50e78b===_0x2d5504['HELLO']&&!this['_socketReady']&&(_0x3b7094[_0x10d8e4(0x33d)]=_0x1ddcf8[_0x10d8e4(0x5ea)][_0x10d8e4(0x33d)],this[_0x10d8e4(0x5d9)]['next'](_0x3b7094),this[_0x10d8e4(0x1e8)][_0x10d8e4(0x50a)](_0x52ce60[_0x10d8e4(0x292)]),this[_0x10d8e4(0x2f8)]=!0x0,this[_0x10d8e4(0x211)]=null),_0x50e78b===_0x2d5504['HEARTBEAT']&&this[_0x10d8e4(0x224)](),this[_0x10d8e4(0x4e6)]();}['_rescheduleHeartbeat'](){const _0x24361f=_0x5ebc5d;var _0xc15e8b;this[_0x24361f(0x257)](),this['_sendHeartbeatTimer']=window[_0x24361f(0x4b5)](()=>this['_sendHeartbeat'](),(_0xc15e8b=this[_0x24361f(0x45e)][_0x24361f(0x602)](_0x10433d))!=null?_0xc15e8b:0x7530);}[_0x5ebc5d(0x2a3)](){const _0x33b2dd=_0x5ebc5d;this[_0x33b2dd(0x2fb)][_0x33b2dd(0x433)]({'cmd':_0x2d5504[_0x33b2dd(0x260)]}),this[_0x33b2dd(0x296)]();}['_waitForHeartbeatResponse'](){const _0x244015=_0x5ebc5d;var _0x794a5;this[_0x244015(0x46f)]=window['setTimeout'](()=>this[_0x244015(0x57e)](),(_0x794a5=this['_configService'][_0x244015(0x602)](_0x1e8dea))!=null?_0x794a5:0x4e20);}['_clearHeartbeatTimer'](){const _0x1f68d1=_0x5ebc5d;this[_0x1f68d1(0x250)]!=null&&(clearTimeout(this[_0x1f68d1(0x250)]),this[_0x1f68d1(0x250)]=null);}[_0x5ebc5d(0x224)](){const _0x594c73=_0x5ebc5d;this[_0x594c73(0x46f)]!=null&&(clearTimeout(this['_timeoutTimer']),this['_timeoutTimer']=null);}},_0x52f4d9[_0x5ebc5d(0x31c)]=_0xa2b100([_0x2c7865(0x0,_0x204831[_0x5ebc5d(0x5cf)](_0x204831['Injector'])),_0x2c7865(0x1,_0x204831[_0x5ebc5d(0x5cf)](_0x204831['LocaleService'])),_0x2c7865(0x2,_0x1e1361[_0x5ebc5d(0x544)]),_0x2c7865(0x3,_0x204831[_0x5ebc5d(0x4a5)]),_0x2c7865(0x4,_0x204831[_0x5ebc5d(0x418)]),_0x2c7865(0x5,_0x2fd48c)],_0x52f4d9[_0x5ebc5d(0x31c)]);var _0x39843e=Object[_0x5ebc5d(0x552)],_0x783f23=Object[_0x5ebc5d(0x38b)],_0x344462=(_0x204b30,_0x5376a1,_0xf8a41,_0x8822ba)=>{const _0x2e8b19=_0x5ebc5d;for(var _0x400103=_0x8822ba>0x1?void 0x0:_0x8822ba?_0x783f23(_0x5376a1,_0xf8a41):_0x5376a1,_0x1f4319=_0x204b30[_0x2e8b19(0x522)]-0x1,_0x5acc52;_0x1f4319>=0x0;_0x1f4319--)(_0x5acc52=_0x204b30[_0x1f4319])&&(_0x400103=(_0x8822ba?_0x5acc52(_0x5376a1,_0xf8a41,_0x400103):_0x5acc52(_0x400103))||_0x400103);return _0x8822ba&&_0x400103&&_0x39843e(_0x5376a1,_0xf8a41,_0x400103),_0x400103;},_0xe016d=(_0x2e1f20,_0x1df3c3)=>(_0x4ace1d,_0x42d6f4)=>_0x1df3c3(_0x4ace1d,_0x42d6f4,_0x2e1f20);let _0x4065da=class{constructor(_0x39a824,_0x5078dd,_0x25eabb){const _0x1ccd2f=_0x5ebc5d;this['_injector']=_0x39a824,this[_0x1ccd2f(0x4d9)]=_0x5078dd,this[_0x1ccd2f(0x505)]=_0x25eabb;}[_0x5ebc5d(0x48d)](_0x251334){const _0x33aa22=_0x5ebc5d;this['_transformUndoRedoStack'](_0x251334),this[_0x33aa22(0x57c)](_0x251334);}[_0x5ebc5d(0x389)](_0x4d9247){const _0x3b366c=_0x5ebc5d,{unitID:_0xc1ec3d}=_0x4d9247,_0x59009b=this[_0x3b366c(0x505)][_0x3b366c(0x2aa)](_0xc1ec3d)[_0x3b366c(0x31e)](_0x2435e3[_0x3b366c(0x4f8)]),{redoCache:_0x568f6e}=_0x59009b[_0x3b366c(0x605)]();if(_0x568f6e[_0x3b366c(0x522)]===0x0)return _0x4d9247;let _0x192d93=_0x204831['Tools']['deepClone'](_0x4d9247['mutations'][0x0]);for(let _0x8ee1e9=0x0;_0x8ee1e9<_0x568f6e[_0x3b366c(0x522)];_0x8ee1e9++){const _0x51ebce={'id':_0x3b366c(0x5e2),'params':{..._0x568f6e[_0x8ee1e9]}},_0x283208=this[_0x3b366c(0x4d9)][_0x3b366c(0x5b4)](_0x192d93,_0x51ebce,!0x1);if(_0x292f17[_0x3b366c(0x3f2)](_0x283208))throw _0x283208[_0x3b366c(0x5c5)];_0x192d93=_0x283208[_0x3b366c(0x22b)];}return{..._0x204831[_0x3b366c(0x4b0)][_0x3b366c(0x592)](_0x4d9247),'mutations':[_0x192d93]};}[_0x5ebc5d(0x2fd)](_0x32906a){const _0x25a943=_0x5ebc5d,{unitID:_0xddbcb0}=_0x32906a,_0x3b47e9=this[_0x25a943(0x505)][_0x25a943(0x2aa)](_0xddbcb0)[_0x25a943(0x31e)](_0x2435e3[_0x25a943(0x4f8)]),{undoCache:_0x222d64,redoCache:_0x2c85a5}=_0x3b47e9[_0x25a943(0x605)]();if(_0x222d64[_0x25a943(0x522)]===0x0||_0x2c85a5[_0x25a943(0x522)]===0x0)return;const _0x481c65=[],_0x38d2a5=[];let _0x316b8e=_0x204831[_0x25a943(0x4b0)][_0x25a943(0x592)](_0x32906a[_0x25a943(0x4b3)][0x0]),_0xe173f3=_0x204831[_0x25a943(0x4b0)][_0x25a943(0x592)](_0x32906a[_0x25a943(0x4b3)][0x0]);for(let _0x20bbaf=_0x222d64['length']-0x1;_0x20bbaf>=0x0;_0x20bbaf--){const _0x574e4d={'id':_0x25a943(0x5e2),'params':{..._0x222d64[_0x20bbaf]}},_0x2bb70b={'id':_0x25a943(0x5e2),'params':{..._0x2c85a5[_0x20bbaf]}},_0x49c955=this[_0x25a943(0x4d9)][_0x25a943(0x5b4)](_0x316b8e,_0x574e4d,!0x1),_0x58012b=this[_0x25a943(0x4d9)][_0x25a943(0x5b4)](_0xe173f3,_0x2bb70b,!0x1);if(_0x292f17[_0x25a943(0x3f2)](_0x49c955))throw _0x49c955['error'];if(_0x292f17[_0x25a943(0x3f2)](_0x58012b))throw _0x58012b['error'];_0x481c65[_0x25a943(0x50f)](_0x49c955[_0x25a943(0x3a3)][_0x25a943(0x208)]),_0x38d2a5[_0x25a943(0x50f)](_0x58012b[_0x25a943(0x3a3)][_0x25a943(0x208)]),_0x316b8e=_0x49c955[_0x25a943(0x22b)],_0xe173f3=_0x58012b[_0x25a943(0x22b)];}_0x3b47e9[_0x25a943(0x613)]({'undoCache':_0x481c65,'redoCache':_0x38d2a5});}[_0x5ebc5d(0x57c)](_0x5dafac){const _0x19362a=_0x5ebc5d,{unitID:_0x2a41d6}=_0x5dafac,_0x153dfb=this[_0x19362a(0x505)]['getRenderById'](_0x2a41d6)[_0x19362a(0x31e)](_0x2435e3[_0x19362a(0x4f8)]),_0x46828d=_0x153dfb[_0x19362a(0x547)]();if(_0x46828d==null)return;const _0xc8bb92=[{'id':_0x19362a(0x5e2),'params':{'unitId':_0x5dafac[_0x19362a(0x4dc)],'actions':null,'textRanges':[_0x46828d]}}],_0xd502ed=this['_transformService']['transformMutationsWithChangeset'](_0x5dafac,_0xc8bb92);if(!_0x292f17[_0x19362a(0x1f1)](_0xd502ed))throw _0xd502ed['error'];const _0xfadf5f=_0xd502ed[_0x19362a(0x3a3)][0x0]['params'][_0x19362a(0x3d7)];Array[_0x19362a(0x255)](_0xfadf5f)&&_0xfadf5f['length']&&_0x153dfb['setActiveRange'](_0xfadf5f[0x0]);}};_0x4065da=_0x344462([_0xe016d(0x0,_0x204831['Inject'](_0x204831[_0x5ebc5d(0x28a)])),_0xe016d(0x1,_0x292f17[_0x5ebc5d(0x446)]),_0xe016d(0x2,_0x98dfd7[_0x5ebc5d(0x210)])],_0x4065da);var _0x48875b=Object[_0x5ebc5d(0x552)],_0x881955=Object[_0x5ebc5d(0x38b)],_0xcd9d2d=(_0x21d4dc,_0x2b59bb,_0x398127,_0x3f6273)=>{for(var _0x3f2201=_0x3f6273>0x1?void 0x0:_0x3f6273?_0x881955(_0x2b59bb,_0x398127):_0x2b59bb,_0xc54e83=_0x21d4dc['length']-0x1,_0x203dd9;_0xc54e83>=0x0;_0xc54e83--)(_0x203dd9=_0x21d4dc[_0xc54e83])&&(_0x3f2201=(_0x3f6273?_0x203dd9(_0x2b59bb,_0x398127,_0x3f2201):_0x203dd9(_0x3f2201))||_0x3f2201);return _0x3f6273&&_0x3f2201&&_0x48875b(_0x2b59bb,_0x398127,_0x3f2201),_0x3f2201;},_0x1b2732=(_0x4c32cd,_0x182ad9)=>(_0x1fc237,_0x42a70f)=>_0x182ad9(_0x1fc237,_0x42a70f,_0x4c32cd);_0x52f4d9['LocalCacheService']=class extends _0x204831['Disposable']{constructor(_0x56dbef,_0x50233f,_0x28f914,_0x4ff398,_0x18012d){const _0x47159b=_0x5ebc5d;super(),_0x3d4e20(this,_0x47159b(0x5dd),new Map()),_0x3d4e20(this,_0x47159b(0x474),new Map()),_0x3d4e20(this,'_disabled',!0x1),(this[_0x47159b(0x45e)]=_0x56dbef,this[_0x47159b(0x410)]=_0x50233f,this[_0x47159b(0x225)]=_0x28f914,this[_0x47159b(0x4af)]=_0x4ff398,this['_revisionService']=_0x18012d,this[_0x47159b(0x203)]());}[_0x5ebc5d(0x283)](){this['_disabled']=!0x0;}[_0x5ebc5d(0x5f8)](){const _0x1dbee1=_0x5ebc5d;this[_0x1dbee1(0x567)]=!0x1;}[_0x5ebc5d(0x2dd)](){const _0x1b2f3e=_0x5ebc5d;this[_0x1b2f3e(0x419)]()[_0x1b2f3e(0x537)](()=>super['dispose']());}async[_0x5ebc5d(0x414)](_0x4bbeca){const _0x109fbd=_0x5ebc5d;return this[_0x109fbd(0x567)]?null:this[_0x109fbd(0x410)][_0x109fbd(0x42e)](_0x1fe398(_0x4bbeca));}async[_0x5ebc5d(0x3b5)](_0x2bf95e,_0x790654){const _0x41b0b0=_0x5ebc5d;return!!this['_localStorageService'][_0x41b0b0(0x4a8)](_0x2bf95e,_0x790654);}[_0x5ebc5d(0x4ad)](_0x131846,_0x3e68c2,_0x3083f6,_0x2ae0a0){const _0x92d3cc=_0x5ebc5d,_0x48c447=this[_0x92d3cc(0x1ed)]['getCurrentRevOfUnit'](_0x131846);this[_0x92d3cc(0x5dd)][_0x92d3cc(0x5a4)](_0x131846,{'unitID':_0x131846,'type':_0x3e68c2,'awaitingChangeset':_0x3083f6,'mutations':_0x2ae0a0,'rev':_0x48c447}),this[_0x92d3cc(0x474)]['has'](_0x131846)||this[_0x92d3cc(0x241)](_0x131846);}['_scheduleSaving'](_0x16afab){const _0x388d71=_0x5ebc5d,_0xd5911b=this['_getSaveTimeout']();_0xd5911b===0x0?this['_saveCache'](_0x16afab):this[_0x388d71(0x474)][_0x388d71(0x5a4)](_0x16afab,setTimeout(()=>this[_0x388d71(0x53e)](_0x16afab),_0xd5911b));}[_0x5ebc5d(0x52e)](){const _0x5457e5=_0x5ebc5d;var _0x14921f;return(_0x14921f=this['_configService'][_0x5457e5(0x602)](_0xb98bd4))!=null?_0x14921f:0x3e8;}[_0x5ebc5d(0x53e)](_0x219647){const _0x18a667=_0x5ebc5d,_0x3da8e5=this[_0x18a667(0x474)]['get'](_0x219647);return _0x3da8e5!==void 0x0&&window[_0x18a667(0x4e2)](_0x3da8e5),this[_0x18a667(0x410)][_0x18a667(0x4a8)](_0x1fe398(_0x219647),this[_0x18a667(0x5dd)][_0x18a667(0x222)](_0x219647))['then'](()=>this[_0x18a667(0x474)]['delete'](_0x219647));}async['exhaustSavingTask'](){const _0x2809f7=_0x5ebc5d,_0x139d18=[];this['_saveTaskMap']['forEach']((_0x163579,_0x2209fa)=>{const _0x20df9d=_0x1c68;window[_0x20df9d(0x4e2)](_0x163579),_0x139d18['push'](this[_0x20df9d(0x53e)](_0x2209fa)[_0x20df9d(0x537)](()=>{const _0x5afb4d=_0x20df9d;this[_0x5afb4d(0x474)][_0x5afb4d(0x51a)](_0x2209fa);}));}),await Promise[_0x2809f7(0x51d)](_0x139d18);}[_0x5ebc5d(0x203)](){const _0x4ff862=_0x5ebc5d;this[_0x4ff862(0x382)](this['_beforeCloseService'][_0x4ff862(0x3aa)](()=>{const _0x5bf970=_0x4ff862;if(this['_saveTaskMap'][_0x5bf970(0x2f2)])return this['_localeService']['t'](_0x5bf970(0x314));}));}},_0x52f4d9['LocalCacheService']=_0xcd9d2d([_0x1b2732(0x0,_0x204831[_0x5ebc5d(0x418)]),_0x1b2732(0x1,_0x204831['ILocalStorageService']),_0x1b2732(0x2,_0x1e1361[_0x5ebc5d(0x4f1)]),_0x1b2732(0x3,_0x204831[_0x5ebc5d(0x5cf)](_0x204831['LocaleService'])),_0x1b2732(0x4,_0x204831[_0x5ebc5d(0x5cf)](_0x292f17[_0x5ebc5d(0x55a)]))],_0x52f4d9[_0x5ebc5d(0x44b)]);function _0x1fe398(_0x4ac935){const _0x2da437=_0x5ebc5d;return _0x2da437(0x332)+_0x4ac935;}var _0x58f3fd=Object[_0x5ebc5d(0x552)],_0x390943=Object[_0x5ebc5d(0x38b)],_0x225f84=(_0x1d7a8c,_0x498652,_0x4d71f2,_0x31634c)=>{const _0x3284b2=_0x5ebc5d;for(var _0x765dd5=_0x31634c>0x1?void 0x0:_0x31634c?_0x390943(_0x498652,_0x4d71f2):_0x498652,_0x240c9f=_0x1d7a8c[_0x3284b2(0x522)]-0x1,_0x3311b5;_0x240c9f>=0x0;_0x240c9f--)(_0x3311b5=_0x1d7a8c[_0x240c9f])&&(_0x765dd5=(_0x31634c?_0x3311b5(_0x498652,_0x4d71f2,_0x765dd5):_0x3311b5(_0x765dd5))||_0x765dd5);return _0x31634c&&_0x765dd5&&_0x58f3fd(_0x498652,_0x4d71f2,_0x765dd5),_0x765dd5;},_0x135569=(_0x27355f,_0x47880f)=>(_0x41a66e,_0x38faac)=>_0x47880f(_0x41a66e,_0x38faac,_0x27355f);function _0x474ac3(_0xfa373d){const _0x3deda5=_0x5ebc5d,{unitID:_0x2ad281,mutations:_0x24077b}=_0xfa373d;return{'unitId':_0x2ad281,'subUnitId':_0x24077b[0x0]['params'][_0x3deda5(0x44d)]};}let _0x59f474=class{constructor(_0x295f5f,_0x2f75ca,_0x23aa85){const _0x3f6789=_0x5ebc5d;this[_0x3f6789(0x60c)]=_0x295f5f,this['_transformService']=_0x2f75ca,this['_instanceService']=_0x23aa85;}[_0x5ebc5d(0x4aa)](_0x555445){const _0x2e0b76=_0x5ebc5d;var _0x308cc4,_0x384622,_0x5b0f92,_0x17b4b1;const _0x3b9b5c=this[_0x2e0b76(0x60c)]['get'](_0x2850a0[_0x2e0b76(0x220)]),{unitId:_0x23a46e,subUnitId:_0x30ae47}=_0x474ac3(_0x555445),_0x2ff895=_0x3b9b5c[_0x2e0b76(0x3da)](_0x23a46e)[_0x2e0b76(0x384)](),_0x1203a1=(_0x384622=(_0x308cc4=this[_0x2e0b76(0x2a8)][_0x2e0b76(0x3cf)](_0x23a46e))==null?void 0x0:_0x308cc4[_0x2e0b76(0x4d8)]())==null?void 0x0:_0x384622[_0x2e0b76(0x245)]();if(_0x2ff895[_0x2e0b76(0x522)]===0x0||!_0x23a46e||!_0x30ae47)return;const _0x4feb0e=[{'id':_0x2850a0[_0x2e0b76(0x53f)]['id'],'params':{'unitId':_0x23a46e,'subUnitId':_0x1203a1,'selections':_0x204831['Tools'][_0x2e0b76(0x592)](_0x2ff895)}}],_0x217670=this[_0x2e0b76(0x4d9)]['transformMutationsWithChangeset'](_0x555445,_0x4feb0e);if(!_0x292f17[_0x2e0b76(0x1f1)](_0x217670))throw _0x217670[_0x2e0b76(0x5c5)];const _0x2f84ff=(_0x17b4b1=(_0x5b0f92=_0x217670[_0x2e0b76(0x3a3)][0x0])==null?void 0x0:_0x5b0f92['params'])==null?void 0x0:_0x17b4b1[_0x2e0b76(0x4ec)];Array['isArray'](_0x2f84ff)&&_0x2f84ff['length']&&this[_0x2e0b76(0x60c)][_0x2e0b76(0x222)](_0x204831[_0x2e0b76(0x2de)])[_0x2e0b76(0x3e2)](_0x2850a0[_0x2e0b76(0x53f)]['id'],{'unitId':_0x23a46e,'subUnitId':_0x1203a1,'selections':_0x2f84ff});}};_0x59f474=_0x225f84([_0x135569(0x0,_0x204831['Inject'](_0x204831[_0x5ebc5d(0x28a)])),_0x135569(0x1,_0x292f17[_0x5ebc5d(0x446)]),_0x135569(0x2,_0x204831[_0x5ebc5d(0x335)])],_0x59f474);const _0x4bdb01=_0x204831[_0x5ebc5d(0x43d)](_0x5ebc5d(0x540));var _0x2d477a=(_0x100cf4=>(_0x100cf4[_0x100cf4[_0x5ebc5d(0x47e)]=0x0]=_0x5ebc5d(0x47e),_0x100cf4[_0x100cf4[_0x5ebc5d(0x50c)]=0x1]=_0x5ebc5d(0x50c),_0x100cf4))(_0x2d477a||{});const _0x34ede0=0x7530,_0x3db2af=_0x5ebc5d(0x4c8);class _0x2cd1f1 extends _0x204831[_0x5ebc5d(0x3f5)]{constructor(){const _0x409835=_0x5ebc5d;super(),_0x3d4e20(this,_0x409835(0x286),_0x204831[_0x409835(0x4b0)][_0x409835(0x59c)]()),_0x3d4e20(this,'_selfUnitIDs',new Set()),_0x3d4e20(this,_0x409835(0x458),new Map()),_0x3d4e20(this,_0x409835(0x29e),null),_0x3d4e20(this,_0x409835(0x2b9),new Map()),_0x3d4e20(this,'_unitStatus',new Map()),this[_0x409835(0x411)]();}[_0x5ebc5d(0x2dd)](){const _0x35328c=_0x5ebc5d;super['dispose'](),this[_0x35328c(0x2b9)][_0x35328c(0x394)]((_0x1dab76,_0x449b3d)=>this[_0x35328c(0x2f7)](_0x449b3d)),this[_0x35328c(0x29e)]&&window[_0x35328c(0x369)](this[_0x35328c(0x29e)]);}[_0x5ebc5d(0x470)](_0x9b10f8){const _0x4ea252=_0x5ebc5d;return this[_0x4ea252(0x312)](_0x9b10f8)[_0x4ea252(0x30d)](_0x2ea3f3[_0x4ea252(0x520)]());}[_0x5ebc5d(0x5bb)](_0x29a935){const _0xe249ef=_0x5ebc5d;this[_0xe249ef(0x2bd)]['size']===0x0&&this[_0xe249ef(0x275)](),this['_selfUnitIDs'][_0xe249ef(0x329)](_0x29a935),this['_send']({'type':0x0,'memberID':this[_0xe249ef(0x286)],'unitIDs':[_0x29a935],'isForwarded':!0x1});}[_0x5ebc5d(0x501)](_0x32f114){const _0x22ddad=_0x5ebc5d;this[_0x22ddad(0x2bd)][_0x22ddad(0x51a)](_0x32f114),this['_selfUnitIDs'][_0x22ddad(0x2f2)]===0x0&&this[_0x22ddad(0x29e)]&&window[_0x22ddad(0x369)](this[_0x22ddad(0x29e)]);}[_0x5ebc5d(0x411)](){const _0x32de12=_0x5ebc5d;this[_0x32de12(0x382)](_0x204831['toDisposable'](_0x2ea3f3[_0x32de12(0x1f8)](window,_0x32de12(0x21e))[_0x32de12(0x2e1)](_0x210d43=>{const _0x13dfde=_0x32de12;if(_0x210d43[_0x13dfde(0x3dd)]!==_0x3db2af||!_0x210d43[_0x13dfde(0x238)])return;const _0x15f3bd=JSON[_0x13dfde(0x467)](_0x210d43[_0x13dfde(0x238)]);this[_0x13dfde(0x43f)](_0x15f3bd);}))),window[_0x32de12(0x4b9)](_0x32de12(0x2c5),()=>this[_0x32de12(0x2f0)]({'type':0x1,'memberID':this[_0x32de12(0x286)],'unitIDs':Array['from'](this[_0x32de12(0x2bd)])}));}[_0x5ebc5d(0x43f)](_0x364c38){const _0x200eff=_0x5ebc5d;switch(_0x364c38[_0x200eff(0x28e)]){case 0x0:this[_0x200eff(0x340)](_0x364c38);break;case 0x1:this['_handleLeaveEvent'](_0x364c38);break;case 0x2:this[_0x200eff(0x1f2)](_0x364c38);break;}}['_handleJoinEvent'](_0x237c91){const _0x244751=_0x5ebc5d,{unitIDs:_0x136015,memberID:_0x305b7e,isForwarded:_0x177a23}=_0x237c91;_0x136015['forEach'](_0x104a6a=>{const _0x2fbb1c=_0x1c68;if(!_0x177a23&&this['_unitOnClients'][_0x2fbb1c(0x4ee)](_0x104a6a)&&this[_0x2fbb1c(0x312)](_0x104a6a)['next'](0x1),!this[_0x2fbb1c(0x458)]['has'](_0x104a6a)||!this[_0x2fbb1c(0x458)][_0x2fbb1c(0x222)](_0x104a6a)[_0x2fbb1c(0x4ee)](_0x305b7e)){const _0x52aa62=this['_unitOnClients']['get'](_0x104a6a)||new Set();_0x52aa62['add'](_0x305b7e),this['_unitOnClients'][_0x2fbb1c(0x5a4)](_0x104a6a,_0x52aa62),this[_0x2fbb1c(0x21c)](_0x305b7e);}}),_0x177a23||this[_0x244751(0x2f0)]({'type':0x0,'memberID':this[_0x244751(0x286)],'unitIDs':[...this[_0x244751(0x2bd)]],'isForwarded':!0x0});}[_0x5ebc5d(0x21c)](_0x453ff1){const _0x522540=_0x5ebc5d;this[_0x522540(0x2f7)](_0x453ff1);const _0x460059=window[_0x522540(0x4b5)](()=>{const _0x9ed1d4=_0x522540;this[_0x9ed1d4(0x458)][_0x9ed1d4(0x394)](_0xb12523=>{const _0x3bbd81=_0x9ed1d4;_0xb12523[_0x3bbd81(0x51a)](_0x453ff1);});},_0x34ede0*0x2);this['_clearOtherTimers'][_0x522540(0x5a4)](_0x453ff1,_0x460059);}[_0x5ebc5d(0x2f7)](_0x180557){const _0x43d7fa=_0x5ebc5d;if(this[_0x43d7fa(0x2b9)][_0x43d7fa(0x4ee)](_0x180557)){const _0x253bed=this[_0x43d7fa(0x2b9)][_0x43d7fa(0x222)](_0x180557);_0x253bed&&window[_0x43d7fa(0x4e2)](_0x253bed),this[_0x43d7fa(0x2b9)][_0x43d7fa(0x5a4)](_0x180557,null);}}[_0x5ebc5d(0x5b1)](_0x910f5){const _0x324b39=_0x5ebc5d,{memberID:_0xd17ab1,unitIDs:_0xa94e2e}=_0x910f5;_0xa94e2e[_0x324b39(0x394)](_0x57974a=>{const _0x57a763=_0x324b39;var _0x2bdfd9;const _0x4c093d=this['_unitOnClients']['get'](_0x57974a);_0x4c093d&&(_0x4c093d[_0x57a763(0x51a)](_0xd17ab1),(_0x2bdfd9=this[_0x57a763(0x312)](_0x57974a))==null||_0x2bdfd9[_0x57a763(0x50a)](_0x4c093d[_0x57a763(0x2f2)]===0x0?0x0:0x1));}),this[_0x324b39(0x2f7)](_0xd17ab1);}[_0x5ebc5d(0x1f2)](_0x17db76){const _0x157b04=_0x5ebc5d;this[_0x157b04(0x21c)](_0x17db76[_0x157b04(0x33d)]);}[_0x5ebc5d(0x2f0)](_0x42e611){const _0x3ed4e8=_0x5ebc5d;localStorage[_0x3ed4e8(0x4a8)](_0x3db2af,JSON['stringify'](_0x42e611));}[_0x5ebc5d(0x275)](){const _0x5377bd=_0x5ebc5d;this[_0x5377bd(0x29e)]=window[_0x5377bd(0x5fc)](()=>{const _0x1b3257=_0x5377bd;this['_send']({'type':0x2,'memberID':this[_0x1b3257(0x286)]});},_0x34ede0);}['_ensureSubject'](_0x160d71){const _0x160629=_0x5ebc5d;return this['_unitStatus']['has'](_0x160d71)||this[_0x160629(0x53a)][_0x160629(0x5a4)](_0x160d71,new _0x2ea3f3['BehaviorSubject'](0x0)),this[_0x160629(0x53a)][_0x160629(0x222)](_0x160d71);}}function _0x41efd3(_0x121a82){const _0x2d6d0e=_0x5ebc5d;let _0x366b4f='';for(const _0x19bb39 of _0x121a82){const {startOffset:_0x4e9c47,endOffset:_0x3b107e,isActive:_0x440934}=_0x19bb39;_0x366b4f[_0x2d6d0e(0x522)]&&(_0x366b4f+=','),_0x366b4f+=_0x4e9c47+':'+_0x3b107e+':'+(_0x440934?'1':'0');}return _0x366b4f;}function _0x13f0b4(_0x35c0e7){const _0x1a2473=_0x5ebc5d,_0x4f404d=_0x35c0e7[_0x1a2473(0x61a)](','),_0x3d7536=[];for(const _0x597f72 of _0x4f404d){const [_0x12130d,_0x2c7539,_0x2c8886]=_0x597f72[_0x1a2473(0x61a)](':');_0x3d7536[_0x1a2473(0x479)]({'startOffset':Number(_0x12130d),'endOffset':Number(_0x2c7539),'collapsed':_0x12130d===_0x2c7539,'isActive':_0x2c8886==='1'});}return _0x3d7536[_0x1a2473(0x426)](_0x249fa6=>_0x249fa6['isActive'])||(_0x3d7536[0x0]['isActive']=!0x0),_0x3d7536;}class _0x3c4160 extends _0x204831[_0x5ebc5d(0x3e5)]{constructor(){const _0x24fcb3=_0x5ebc5d;super(...arguments),_0x3d4e20(this,_0x24fcb3(0x564),new _0x2ea3f3['BehaviorSubject'](null)),_0x3d4e20(this,'collabCursorState$',this[_0x24fcb3(0x564)][_0x24fcb3(0x4f3)]());}[_0x5ebc5d(0x324)](_0x9fd236){const _0x3df16f=_0x5ebc5d,{unitID:_0x1dd2da,memberID:_0x26b2bc,textRanges:_0x1b0218}=_0x9fd236,_0x334508=_0x41efd3(_0x1b0218),_0xb13ea8={'unitID':_0x1dd2da,'memberID':_0x26b2bc,'selection':_0x334508};this[_0x3df16f(0x564)][_0x3df16f(0x50a)](_0xb13ea8);}}var _0x10a7f2=Object['defineProperty'],_0x5af177=Object['getOwnPropertyDescriptor'],_0x532519=(_0x5e4ab3,_0x2c3c6d,_0x5b9040,_0x1bfe84)=>{const _0x575737=_0x5ebc5d;for(var _0x2b4037=_0x1bfe84>0x1?void 0x0:_0x1bfe84?_0x5af177(_0x2c3c6d,_0x5b9040):_0x2c3c6d,_0x22c95f=_0x5e4ab3[_0x575737(0x522)]-0x1,_0x434e11;_0x22c95f>=0x0;_0x22c95f--)(_0x434e11=_0x5e4ab3[_0x22c95f])&&(_0x2b4037=(_0x1bfe84?_0x434e11(_0x2c3c6d,_0x5b9040,_0x2b4037):_0x434e11(_0x2b4037))||_0x2b4037);return _0x1bfe84&&_0x2b4037&&_0x10a7f2(_0x2c3c6d,_0x5b9040,_0x2b4037),_0x2b4037;},_0x51de82=(_0x8b556e,_0x4aa56e)=>(_0xdb82fc,_0x7a0433)=>_0x4aa56e(_0xdb82fc,_0x7a0433,_0x8b556e);let _0x21c497=class{constructor(_0x5e7c78,_0x4b5445){const _0xf1b310=_0x5ebc5d;this[_0xf1b310(0x60c)]=_0x5e7c78,this[_0xf1b310(0x4d9)]=_0x4b5445;}[_0x5ebc5d(0x4aa)](_0x157f60){const _0x15a83b=_0x5ebc5d;var _0x38527f;const _0x2a13f6=this[_0x15a83b(0x60c)][_0x15a83b(0x222)](_0x1d1bc4['DocSelectionManagerService']),_0x1bf31b=(_0x38527f=_0x2a13f6[_0x15a83b(0x31d)]())!=null?_0x38527f:[];if(_0x1bf31b[_0x15a83b(0x522)]===0x0)return;const _0x5ddf65=[{'id':_0x15a83b(0x5e2),'params':{'unitId':_0x157f60['unitID'],'actions':null,'textRanges':_0x1bf31b}}],_0x1f2d1c=this[_0x15a83b(0x4d9)]['transformMutationsWithChangeset'](_0x157f60,_0x5ddf65);if(!_0x292f17['isTransformMutationsWithChangesetSuccess'](_0x1f2d1c))throw _0x1f2d1c[_0x15a83b(0x5c5)];const _0x42cf74=_0x1f2d1c[_0x15a83b(0x3a3)][0x0][_0x15a83b(0x208)][_0x15a83b(0x3d7)];Array[_0x15a83b(0x255)](_0x42cf74)&&_0x42cf74['length']&&_0x2a13f6[_0x15a83b(0x492)](_0x42cf74,!0x1);}};_0x21c497=_0x532519([_0x51de82(0x0,_0x204831[_0x5ebc5d(0x5cf)](_0x204831[_0x5ebc5d(0x28a)])),_0x51de82(0x1,_0x292f17[_0x5ebc5d(0x446)])],_0x21c497);const _0x21b5e4=new Set([_0x2850a0[_0x5ebc5d(0x336)]['id']]);function _0x22d0ab(_0x5b9156,_0x274615,_0x29e66c,_0xbeb65a,_0xf8453b){const _0x21bf28=_0x5ebc5d;var _0x43ea07,_0x1d12d4,_0x5a2695,_0x5b93d0;const _0x4bfa63=[];for(const _0x4050ea of _0x5b9156)if(_0x21b5e4[_0x21bf28(0x4ee)](_0x4050ea['id'])){if(_0x4bfa63[_0x21bf28(0x522)]>0x0)break;_0x4bfa63[_0x21bf28(0x479)](_0x4050ea);break;}else _0x4bfa63[_0x21bf28(0x479)](_0x4050ea);const _0x3a18ec=(_0x1d12d4=(_0x43ea07=_0xf8453b[_0x21bf28(0x4f4)]())==null?void 0x0:_0x43ea07[_0x21bf28(0x481)])!=null?_0x1d12d4:_0x21bf28(0x287),_0x3efda7=(_0x5b93d0=(_0x5a2695=_0xf8453b[_0x21bf28(0x4f4)]())==null?void 0x0:_0x5a2695['memberID'])!=null?_0x5b93d0:_0x21bf28(0x287);return{'changeset':{'unitID':_0x274615,'type':_0x292f17[_0x21bf28(0x41e)](_0x29e66c[_0x21bf28(0x200)](_0x274615)),'baseRev':_0xbeb65a['getCurrentRevOfUnit'](_0x274615),'revision':0x0,'userID':_0x3a18ec,'memberID':_0x3efda7,'mutations':_0x4bfa63},'pendingMutations':_0x5b9156[_0x21bf28(0x398)](_0x4bfa63[_0x21bf28(0x522)])};}function _0x2c2772(_0xe08a14,_0x126a1c,_0x5018fe,_0x4d4abc,_0x381a17){const _0x18541e=_0x5ebc5d;var _0x22542c,_0xe9907b,_0x420b74,_0x31b85d;const _0x14f4e9=[_0xe08a14[_0x18541e(0x2bc)]((_0x2596cd,_0x4ec74b)=>{const _0x4c454e=_0x18541e;var _0x505956;const {id:_0x16b784}=_0x2596cd,{id:_0x2caeda,type:_0x480a6e}=_0x4ec74b,_0x217bf2=(_0x505956=_0x2596cd[_0x4c454e(0x208)])!=null?_0x505956:{'actions':null},_0x30c7c0=_0x4ec74b[_0x4c454e(0x208)];if(_0x16b784&&_0x16b784!==_0x2caeda)throw new Error(_0x4c454e(0x517)+_0x16b784+'\x20-\x20'+_0x2caeda+'.');return{..._0x2596cd,'id':_0x2caeda,'type':_0x480a6e,'params':{'unitId':_0x30c7c0[_0x4c454e(0x52a)],'textRanges':_0x30c7c0[_0x4c454e(0x3d7)],'actions':_0x204831[_0x4c454e(0x41c)][_0x4c454e(0x49e)](_0x217bf2['actions'],_0x30c7c0[_0x4c454e(0x349)])}};},{})],_0x13001f=(_0xe9907b=(_0x22542c=_0x381a17['getCurrentUser']())==null?void 0x0:_0x22542c['userID'])!=null?_0xe9907b:_0x18541e(0x287),_0x84a579=(_0x31b85d=(_0x420b74=_0x381a17['getCurrentUser']())==null?void 0x0:_0x420b74[_0x18541e(0x33d)])!=null?_0x31b85d:_0x18541e(0x287);return{'changeset':{'unitID':_0x126a1c,'type':_0x292f17[_0x18541e(0x41e)](_0x5018fe[_0x18541e(0x200)](_0x126a1c)),'baseRev':_0x4d4abc[_0x18541e(0x23e)](_0x126a1c),'revision':0x0,'userID':_0x13001f,'memberID':_0x84a579,'mutations':_0x14f4e9},'pendingMutations':[]};}const _0x585400={'id':_0x2850a0[_0x5ebc5d(0x4e0)]['id'],'type':_0x204831[_0x5ebc5d(0x5d7)]['MUTATION'],'params':{}};var _0x399cb0=Object[_0x5ebc5d(0x552)],_0x1db350=Object[_0x5ebc5d(0x38b)],_0x39335c=(_0xe33325,_0x5e33ec,_0x5bc133,_0x44edbc)=>{const _0x2c0c71=_0x5ebc5d;for(var _0x36146e=_0x44edbc>0x1?void 0x0:_0x44edbc?_0x1db350(_0x5e33ec,_0x5bc133):_0x5e33ec,_0x195596=_0xe33325[_0x2c0c71(0x522)]-0x1,_0x49f25b;_0x195596>=0x0;_0x195596--)(_0x49f25b=_0xe33325[_0x195596])&&(_0x36146e=(_0x44edbc?_0x49f25b(_0x5e33ec,_0x5bc133,_0x36146e):_0x49f25b(_0x36146e))||_0x36146e);return _0x44edbc&&_0x36146e&&_0x399cb0(_0x5e33ec,_0x5bc133,_0x36146e),_0x36146e;},_0x3bd0ab=(_0x5c7a5b,_0x414b68)=>(_0xf06acc,_0x16c49c)=>_0x414b68(_0xf06acc,_0x16c49c,_0x5c7a5b),_0x4ebacb=(_0x1bff2a=>(_0x1bff2a[_0x5ebc5d(0x2a2)]=_0x5ebc5d(0x4e9),_0x1bff2a[_0x5ebc5d(0x2a1)]=_0x5ebc5d(0x322),_0x1bff2a[_0x5ebc5d(0x2f6)]='pending',_0x1bff2a['AWAITING']=_0x5ebc5d(0x315),_0x1bff2a[_0x5ebc5d(0x2c2)]='awaiting_with_pending',_0x1bff2a[_0x5ebc5d(0x327)]=_0x5ebc5d(0x352),_0x1bff2a[_0x5ebc5d(0x50d)]=_0x5ebc5d(0x584),_0x1bff2a[_0x5ebc5d(0x34e)]='offline',_0x1bff2a))(_0x4ebacb||{});class _0x1c3a5c{constructor(_0x23d2d0,_0x132c90,_0x2e43e9,_0x7b2241,_0x332d3d,_0xe0ab0f,_0x384a24,_0x564b1d,_0x174b1c){const _0x40d916=_0x5ebc5d;_0x3d4e20(this,'_awaitingChangeset',null),_0x3d4e20(this,_0x40d916(0x3b4),[]),(this[_0x40d916(0x4dc)]=_0x23d2d0,this['type']=_0x132c90,this[_0x40d916(0x3d1)]=_0x332d3d,this[_0x40d916(0x5f3)]=_0xe0ab0f,this[_0x40d916(0x300)]=_0x384a24,this[_0x40d916(0x1ed)]=_0x564b1d,this[_0x40d916(0x5db)]=_0x174b1c,this['_awaitingChangeset']=_0x2e43e9,this[_0x40d916(0x3b4)]=_0x7b2241);}[_0x5ebc5d(0x1f0)](_0x5ec7e4){const _0x2d301a=_0x5ebc5d,_0x4b1abd=this[_0x2d301a(0x1ed)][_0x2d301a(0x23e)](this[_0x2d301a(0x4dc)]);return _0x5ec7e4[_0x2d301a(0x610)]>_0x4b1abd+0x1?(this['_handler'][_0x2d301a(0x4ae)]({'from':_0x4b1abd,'to':_0x5ec7e4[_0x2d301a(0x610)]-0x1}),!0x0):!0x1;}[_0x5ebc5d(0x4dd)](_0x1058d1){const _0x21b2e3=_0x5ebc5d;this[_0x21b2e3(0x300)]['transformUndoRedo'](this['unitID'],_0x1058d1);}['_transformSelections'](_0x16b944){const _0x44e091=_0x5ebc5d;var _0x194c38,_0x5c8c57;(_0x5c8c57=(_0x194c38=this[_0x44e091(0x3d1)])[_0x44e091(0x5ab)])==null||_0x5c8c57['call'](_0x194c38,_0x16b944);}[_0x5ebc5d(0x282)](_0x1f0971){const _0x5be977=_0x5ebc5d;var _0x5ab6dd,_0x5ac3b7;return(_0x5ac3b7=(_0x5ab6dd=this[_0x5be977(0x3d1)])[_0x5be977(0x5d4)])==null?void 0x0:_0x5ac3b7[_0x5be977(0x51f)](_0x5ab6dd,_0x1f0971);}[_0x5ebc5d(0x1e3)](_0x3c2a3f){const _0x1ed0bb=_0x5ebc5d;var _0x30d5a2,_0x1b0f4f,_0x3c1861;return(_0x3c1861=(_0x1b0f4f=(_0x30d5a2=this[_0x1ed0bb(0x3d1)])[_0x1ed0bb(0x202)])==null?void 0x0:_0x1b0f4f[_0x1ed0bb(0x51f)](_0x30d5a2,_0x3c2a3f))!=null?_0x3c1861:_0x3c2a3f;}[_0x5ebc5d(0x34f)](_0x2bb3dc){const _0x1581e8=_0x5ebc5d;var _0x5a1616,_0x1a2053;if(this[_0x1581e8(0x28e)]===_0x38b124[_0x1581e8(0x3ef)]){const {unitID:_0x278804,mutations:_0x43a762,memberID:_0x16b7ad}=_0x2bb3dc,_0x582e82=_0x43a762[0x0][_0x1581e8(0x208)][_0x1581e8(0x3d7)];Array['isArray'](_0x582e82)&&_0x582e82[_0x1581e8(0x522)]>0x0&&((_0x1a2053=(_0x5a1616=this['_handler'])[_0x1581e8(0x47f)])==null||_0x1a2053['call'](_0x5a1616,{'unitID':_0x278804,'memberID':_0x16b7ad,'textRanges':_0x582e82}));}}[_0x5ebc5d(0x608)](){const _0x4c4700=_0x5ebc5d;this['_localCacheService'][_0x4c4700(0x4ad)](this['unitID'],this[_0x4c4700(0x28e)],this[_0x4c4700(0x504)],this[_0x4c4700(0x3b4)]);}[_0x5ebc5d(0x403)](){const _0x2262af=_0x5ebc5d;return this[_0x2262af(0x1ed)][_0x2262af(0x23e)](this['unitID']);}['_incrementRevisionNumber'](){const _0x40ad87=_0x5ebc5d;this['_revisionService']['incrementRevOfUnit'](this[_0x40ad87(0x4dc)]);}[_0x5ebc5d(0x494)](_0x16a245){const _0x203417=_0x5ebc5d;var _0x59e780;const _0x1f0beb=this['_transformRemoteChangesetByIMECache'](_0x16a245),_0x2ba157=_0x204831['sequenceExecute'](_0x1f0beb[_0x203417(0x4b3)],this['_commandService'],{'fromCollab':!0x0});if(!_0x2ba157[_0x203417(0x2a9)])throw _0x2ba157[_0x203417(0x5c5)]instanceof Error?_0x2ba157[_0x203417(0x5c5)]:new Error((_0x59e780=_0x2ba157['error'])!=null?_0x59e780:'[CollaborationState]:\x20apply\x20error!');this[_0x203417(0x282)](_0x1f0beb),this[_0x203417(0x4dd)](_0x16a245),this[_0x203417(0x432)](_0x1f0beb),this['_syncEditingCollabCursor'](_0x1f0beb),this[_0x203417(0x487)]();}}let _0x5c4efe=class extends _0x1c3a5c{constructor(_0x529f07,_0x2049b5,_0x35771c,_0x23cef7,_0x15e02c,_0xdcf417,_0x2b47db,_0x4f7be7,_0x8ef6ae,_0x394d20){const _0x2b3242=_0x5ebc5d;super(_0x529f07,_0x2049b5,null,[],_0x35771c,_0x4f7be7,_0x2b47db,_0x23cef7,_0x15e02c),_0x3d4e20(this,_0x2b3242(0x32a),'synced'),(this[_0x2b3242(0x60c)]=_0xdcf417,this['_logService']=_0x8ef6ae,this[_0x2b3242(0x4d9)]=_0x394d20);}['appendMutation'](_0x1fc679){const _0x4a5e75=_0x5ebc5d,_0x127032=this['_injector'][_0x4a5e75(0x3c9)](_0x3d8a1c,this[_0x4a5e75(0x4dc)],this[_0x4a5e75(0x28e)],[_0x1fc679],this[_0x4a5e75(0x3d1)]);return _0x127032[_0x4a5e75(0x5b6)](),_0x127032[_0x4a5e75(0x608)](),_0x127032;}[_0x5ebc5d(0x4f2)](_0x23a037){const _0x4476e6=_0x5ebc5d;if(this[_0x4476e6(0x1f0)](_0x23a037))return this['_injector']['createInstance'](_0x38b177,this[_0x4476e6(0x4dc)],this[_0x4476e6(0x28e)],null,[],null,[_0x23a037],this[_0x4476e6(0x3d1)]);try{const _0x441e47=this[_0x4476e6(0x4d9)][_0x4476e6(0x557)](_0x23a037,[_0x585400]);if(_0x292f17['isTransformMutationsWithChangesetSuccess'](_0x441e47)){const {c1Prime:_0x18db80}=_0x441e47;return this['_executeRemoteChangeset'](_0x18db80),this;}throw _0x441e47[_0x4476e6(0x5c5)];}catch(_0x13226a){return this[_0x4476e6(0x5b0)]['error'](_0x13226a),this[_0x4476e6(0x53b)](!0x1);}}[_0x5ebc5d(0x53b)](_0x225f2a){const _0x1e3e4b=_0x5ebc5d;return this['_injector']['createInstance'](_0x51236a,this[_0x1e3e4b(0x4dc)],this['type'],null,[],this['_handler'],_0x225f2a);}['onRemoteAck'](){const _0x336924=_0x5ebc5d;throw new Error(_0x336924(0x2ee));}[_0x5ebc5d(0x26d)](){const _0x34a56d=_0x5ebc5d;throw new Error(_0x34a56d(0x2af));}[_0x5ebc5d(0x3d5)](){const _0x5c4844=_0x5ebc5d;return this[_0x5c4844(0x60c)][_0x5c4844(0x3c9)](_0x90f657,this['unitID'],this['type'],null,[],this[_0x5c4844(0x3d1)]);}[_0x5ebc5d(0x375)](){return this;}['resend'](){const _0x1dc8b3=_0x5ebc5d;throw new Error(_0x1dc8b3(0x473));}[_0x5ebc5d(0x593)](){const _0x41c52d=_0x5ebc5d,_0x321e10=this['_revisionService'][_0x41c52d(0x23e)](this['unitID']);return this['_handler']['onMissingChangesets']({'from':_0x321e10,'to':0x0}),this[_0x41c52d(0x60c)][_0x41c52d(0x3c9)](_0x38b177,this[_0x41c52d(0x4dc)],this[_0x41c52d(0x28e)],null,[],null,[],this['_handler']);}};_0x5c4efe=_0x39335c([_0x3bd0ab(0x3,_0x204831[_0x5ebc5d(0x5cf)](_0x292f17[_0x5ebc5d(0x55a)])),_0x3bd0ab(0x4,_0x204831[_0x5ebc5d(0x5cf)](_0x52f4d9[_0x5ebc5d(0x44b)])),_0x3bd0ab(0x5,_0x204831[_0x5ebc5d(0x5cf)](_0x204831[_0x5ebc5d(0x28a)])),_0x3bd0ab(0x6,_0x204831[_0x5ebc5d(0x4bb)]),_0x3bd0ab(0x7,_0x204831[_0x5ebc5d(0x2de)]),_0x3bd0ab(0x8,_0x204831[_0x5ebc5d(0x4a5)]),_0x3bd0ab(0x9,_0x292f17[_0x5ebc5d(0x446)])],_0x5c4efe);let _0x3d8a1c=class extends _0x1c3a5c{constructor(_0x221279,_0x54d30c,_0x3a1f86,_0x84bd8d,_0x3d5c3e,_0x240f30,_0x10db93,_0x5228c0,_0x33fcee,_0x396a99,_0x267426,_0x1479ae,_0x3f1374,_0x437ebc){const _0x11f405=_0x5ebc5d;super(_0x221279,_0x54d30c,null,_0x3a1f86,_0x84bd8d,_0x396a99,_0x437ebc,_0x240f30,_0x10db93),_0x3d4e20(this,_0x11f405(0x32a),_0x11f405(0x343)),_0x3d4e20(this,_0x11f405(0x253),null),_0x3d4e20(this,_0x11f405(0x46a),null),(this[_0x11f405(0x60c)]=_0x3d5c3e,this[_0x11f405(0x5f6)]=_0x5228c0,this[_0x11f405(0x5b0)]=_0x33fcee,this[_0x11f405(0x45e)]=_0x267426,this[_0x11f405(0x4d9)]=_0x1479ae,this[_0x11f405(0x48f)]=_0x3f1374);}[_0x5ebc5d(0x447)](_0x28e85b){const _0x2cd175=_0x5ebc5d;return this['_pendingMutations'][_0x2cd175(0x479)](_0x28e85b),this[_0x2cd175(0x608)](),this;}[_0x5ebc5d(0x4f2)](_0x3b33a3){const _0x2ecbed=_0x5ebc5d;if(this[_0x2ecbed(0x1f0)](_0x3b33a3))return this[_0x2ecbed(0x600)](),this[_0x2ecbed(0x60c)][_0x2ecbed(0x3c9)](_0x38b177,this['unitID'],this[_0x2ecbed(0x28e)],null,this[_0x2ecbed(0x3b4)],null,[_0x3b33a3],this[_0x2ecbed(0x3d1)]);try{const _0x5960f8=this[_0x2ecbed(0x4d9)][_0x2ecbed(0x557)](_0x3b33a3,this[_0x2ecbed(0x3b4)]);if(_0x292f17['isTransformMutationsWithChangesetSuccess'](_0x5960f8)){const {c1Prime:_0x52296e,m2Prime:_0x443ce3}=_0x5960f8;this[_0x2ecbed(0x494)](_0x52296e);const _0x123ebd=this[_0x2ecbed(0x60c)][_0x2ecbed(0x3c9)](_0x3d8a1c,this[_0x2ecbed(0x4dc)],this[_0x2ecbed(0x28e)],_0x443ce3,this[_0x2ecbed(0x3d1)]);return this['_clearScheduledTask'](),_0x123ebd[_0x2ecbed(0x5b6)](this[_0x2ecbed(0x253)]?Math[_0x2ecbed(0x562)](0x0,new Date()[_0x2ecbed(0x44c)]()-this[_0x2ecbed(0x253)]):this['_getSendChangesetTimeout']()),_0x123ebd;}throw _0x5960f8[_0x2ecbed(0x5c5)];}catch(_0x3f3d03){return this['_logService'][_0x2ecbed(0x5c5)](_0x3f3d03),this['_onConflict'](!0x1);}}[_0x5ebc5d(0x290)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x5ebc5d(0x26d)](){const _0x509bd2=_0x5ebc5d;throw new Error(_0x509bd2(0x52d));}['toggleOffline'](){const _0x1a0726=_0x5ebc5d;return this[_0x1a0726(0x600)](),this['_injector'][_0x1a0726(0x3c9)](_0x90f657,this[_0x1a0726(0x4dc)],this[_0x1a0726(0x28e)],null,this[_0x1a0726(0x3b4)],this['_handler']);}[_0x5ebc5d(0x375)](){return this;}[_0x5ebc5d(0x5b6)](_0x1ca4a1){const _0x3e8488=_0x5ebc5d,_0x5e1adf=_0x1ca4a1!=null?_0x1ca4a1:this['_getSendChangesetTimeout']();this[_0x3e8488(0x253)]=new Date()[_0x3e8488(0x44c)](),this[_0x3e8488(0x46a)]=window[_0x3e8488(0x4b5)](()=>{const _0x500279=_0x3e8488;this[_0x500279(0x600)]();let _0x55c677=null;switch(this[_0x500279(0x28e)]){case _0x38b124[_0x500279(0x49c)]:{_0x55c677=_0x22d0ab(this['_pendingMutations'],this[_0x500279(0x4dc)],this[_0x500279(0x48f)],this[_0x500279(0x1ed)],this[_0x500279(0x5f6)]);break;}case _0x38b124[_0x500279(0x3ef)]:{this['_pendingMutations'][_0x500279(0x3bb)](_0x41e292=>_0x41e292['id']===_0x1d1bc4[_0x500279(0x3ce)]['id'])?_0x55c677=_0x2c2772(this[_0x500279(0x3b4)],this[_0x500279(0x4dc)],this['_univerInstanceService'],this[_0x500279(0x1ed)],this[_0x500279(0x5f6)]):_0x55c677=_0x22d0ab(this['_pendingMutations'],this[_0x500279(0x4dc)],this[_0x500279(0x48f)],this[_0x500279(0x1ed)],this[_0x500279(0x5f6)]);break;}default:throw new Error(_0x500279(0x612)+this[_0x500279(0x28e)]+_0x500279(0x20d));}const {changeset:_0x38a2c9,pendingMutations:_0x4f6418}=_0x55c677;this[_0x500279(0x3d1)][_0x500279(0x453)](_0x38a2c9);const _0x4a260d=_0x4f6418[_0x500279(0x522)]?this[_0x500279(0x60c)][_0x500279(0x3c9)](_0x35d7af,this[_0x500279(0x4dc)],this['type'],_0x38a2c9,_0x4f6418,this['_handler']):this['_injector'][_0x500279(0x3c9)](_0x5b648b,this[_0x500279(0x4dc)],this[_0x500279(0x28e)],_0x38a2c9,this[_0x500279(0x3d1)]);_0x4a260d[_0x500279(0x608)](),this[_0x500279(0x3d1)][_0x500279(0x463)](this,_0x4a260d);},_0x5e1adf);}[_0x5ebc5d(0x5aa)](){const _0x1e2189=_0x5ebc5d;var _0x91ebad;const _0x157199=this['_configService'][_0x1e2189(0x602)](_0x5dd0cc);return(_0x91ebad=_0x157199==null?void 0x0:_0x157199[_0x1e2189(0x52f)])!=null?_0x91ebad:0x7d0;}[_0x5ebc5d(0x393)](){const _0x1f2f59=_0x5ebc5d;throw new Error(_0x1f2f59(0x5e6));}['_clearScheduledTask'](){const _0x256730=_0x5ebc5d;this[_0x256730(0x46a)]!=null&&(clearTimeout(this[_0x256730(0x46a)]),this[_0x256730(0x46a)]=null);}[_0x5ebc5d(0x53b)](_0x1a8ee7){const _0x4d2aae=_0x5ebc5d;return this[_0x4d2aae(0x600)](),this[_0x4d2aae(0x60c)]['createInstance'](_0x51236a,this[_0x4d2aae(0x4dc)],this[_0x4d2aae(0x28e)],null,this[_0x4d2aae(0x3b4)],this[_0x4d2aae(0x3d1)],_0x1a8ee7);}};_0x3d8a1c=_0x39335c([_0x3bd0ab(0x4,_0x204831[_0x5ebc5d(0x5cf)](_0x204831[_0x5ebc5d(0x28a)])),_0x3bd0ab(0x5,_0x204831['Inject'](_0x292f17['RevisionService'])),_0x3bd0ab(0x6,_0x204831['Inject'](_0x52f4d9[_0x5ebc5d(0x44b)])),_0x3bd0ab(0x7,_0x204831['Inject'](_0x3796d3)),_0x3bd0ab(0x8,_0x204831['ILogService']),_0x3bd0ab(0x9,_0x204831[_0x5ebc5d(0x2de)]),_0x3bd0ab(0xa,_0x204831[_0x5ebc5d(0x418)]),_0x3bd0ab(0xb,_0x292f17[_0x5ebc5d(0x446)]),_0x3bd0ab(0xc,_0x204831[_0x5ebc5d(0x335)]),_0x3bd0ab(0xd,_0x204831['IUndoRedoService'])],_0x3d8a1c);let _0x5b648b=class extends _0x1c3a5c{constructor(_0x21b321,_0x474bc4,_0x119cef,_0x556db7,_0x1291e0,_0x4d2ce1,_0x52576d,_0x19228a,_0xc8fb1b,_0x5b51e7,_0x46f406){const _0x2f7d8e=_0x5ebc5d;super(_0x21b321,_0x474bc4,_0x119cef,[],_0x556db7,_0x19228a,_0x46f406,_0x4d2ce1,_0x52576d),_0x3d4e20(this,_0x2f7d8e(0x32a),_0x2f7d8e(0x315)),(this[_0x2f7d8e(0x60c)]=_0x1291e0,this[_0x2f7d8e(0x5b0)]=_0xc8fb1b,this['_transformService']=_0x5b51e7);}[_0x5ebc5d(0x447)](_0x25e81a){const _0xdbdf22=_0x5ebc5d,_0x3a5890=this[_0xdbdf22(0x60c)][_0xdbdf22(0x3c9)](_0x35d7af,this[_0xdbdf22(0x4dc)],this[_0xdbdf22(0x28e)],this['_awaitingChangeset'],[_0x25e81a],this['_handler']);return _0x3a5890[_0xdbdf22(0x608)](),_0x3a5890;}['onRemoteChangeset'](_0x5a9c4a){const _0x4896cd=_0x5ebc5d;if(this[_0x4896cd(0x1f0)](_0x5a9c4a))return this[_0x4896cd(0x60c)][_0x4896cd(0x3c9)](_0x38b177,this[_0x4896cd(0x4dc)],this['type'],this['_awaitingChangeset'],[],null,[_0x5a9c4a],this[_0x4896cd(0x3d1)]);try{const _0x6413e4=this[_0x4896cd(0x4d9)][_0x4896cd(0x3bd)]([_0x5a9c4a],[this[_0x4896cd(0x504)]],!0x1);if(_0x292f17[_0x4896cd(0x2e0)](_0x6413e4)){const {c1Prime:_0x305d8e,c2Prime:_0x5652d1}=_0x6413e4;this[_0x4896cd(0x494)](_0x305d8e[0x0]),_0x5652d1[0x0][_0x4896cd(0x2c8)]=this[_0x4896cd(0x403)]();const _0x52d575=this['_injector'][_0x4896cd(0x3c9)](_0x5b648b,this[_0x4896cd(0x4dc)],this[_0x4896cd(0x28e)],_0x5652d1[0x0],this[_0x4896cd(0x3d1)]);return _0x52d575['_updateLocalCache'](),_0x52d575;}return this['_onConflict'](!0x1);}catch(_0x328d11){return this[_0x4896cd(0x5b0)][_0x4896cd(0x5c5)](_0x328d11),this[_0x4896cd(0x53b)](!0x1);}}[_0x5ebc5d(0x290)](_0x1d0792){const _0x5f1d4d=_0x5ebc5d,_0x132816=this[_0x5f1d4d(0x1ed)][_0x5f1d4d(0x23e)](this[_0x5f1d4d(0x4dc)]);if(_0x1d0792[_0x5f1d4d(0x610)]<_0x132816-0x1)return this;if(this['_checkMissing'](_0x1d0792))return this[_0x5f1d4d(0x60c)]['createInstance'](_0x38b177,this['unitID'],this[_0x5f1d4d(0x28e)],null,[],this['_awaitingChangeset'],[],this[_0x5f1d4d(0x3d1)]);this[_0x5f1d4d(0x487)]();const _0x357d61=this[_0x5f1d4d(0x60c)][_0x5f1d4d(0x3c9)](_0x5c4efe,this[_0x5f1d4d(0x4dc)],this[_0x5f1d4d(0x28e)],this[_0x5f1d4d(0x3d1)]);return _0x357d61['_updateLocalCache'](),_0x357d61;}['onRemoteRej'](_0x44199b){const _0x402ae4=_0x5ebc5d;return this[_0x402ae4(0x53b)](!!(_0x44199b!=null&&_0x44199b[_0x402ae4(0x3d6)]));}[_0x5ebc5d(0x3d5)](){const _0x24d1b7=_0x5ebc5d;return this[_0x24d1b7(0x60c)]['createInstance'](_0x90f657,this[_0x24d1b7(0x4dc)],this[_0x24d1b7(0x28e)],this[_0x24d1b7(0x504)],[],this['_handler']);}[_0x5ebc5d(0x375)](){return this;}[_0x5ebc5d(0x393)](){const _0x2ddfdb=_0x5ebc5d;this[_0x2ddfdb(0x3d1)][_0x2ddfdb(0x453)](this[_0x2ddfdb(0x504)]);}[_0x5ebc5d(0x53b)](_0x3ead4a){const _0x1ca060=_0x5ebc5d;return this[_0x1ca060(0x60c)][_0x1ca060(0x3c9)](_0x51236a,this[_0x1ca060(0x4dc)],this[_0x1ca060(0x28e)],this[_0x1ca060(0x504)],[],this[_0x1ca060(0x3d1)],_0x3ead4a);}};_0x5b648b=_0x39335c([_0x3bd0ab(0x4,_0x204831['Inject'](_0x204831[_0x5ebc5d(0x28a)])),_0x3bd0ab(0x5,_0x204831[_0x5ebc5d(0x5cf)](_0x292f17['RevisionService'])),_0x3bd0ab(0x6,_0x204831[_0x5ebc5d(0x5cf)](_0x52f4d9[_0x5ebc5d(0x44b)])),_0x3bd0ab(0x7,_0x204831[_0x5ebc5d(0x2de)]),_0x3bd0ab(0x8,_0x204831[_0x5ebc5d(0x4a5)]),_0x3bd0ab(0x9,_0x292f17[_0x5ebc5d(0x446)]),_0x3bd0ab(0xa,_0x204831[_0x5ebc5d(0x4bb)])],_0x5b648b);let _0x35d7af=class extends _0x1c3a5c{constructor(_0x8257dc,_0x4139b1,_0x4a9c15,_0x349626,_0x52b385,_0x4b6b62,_0x27dd66,_0x3ea825,_0x2fc15d,_0x5d36fd,_0x425ab4,_0x2c1e41){const _0x199f9f=_0x5ebc5d;super(_0x8257dc,_0x4139b1,_0x4a9c15,_0x349626,_0x52b385,_0x2fc15d,_0x2c1e41,_0x27dd66,_0x3ea825),_0x3d4e20(this,_0x199f9f(0x32a),_0x199f9f(0x4c4)),(this[_0x199f9f(0x60c)]=_0x4b6b62,this[_0x199f9f(0x5b0)]=_0x5d36fd,this[_0x199f9f(0x4d9)]=_0x425ab4);}[_0x5ebc5d(0x447)](_0x52c024){const _0x3ea770=_0x5ebc5d;return this[_0x3ea770(0x3b4)][_0x3ea770(0x479)](_0x52c024),this;}[_0x5ebc5d(0x4f2)](_0x2a58e5){const _0x4d9189=_0x5ebc5d;if(this['_checkMissing'](_0x2a58e5))return this[_0x4d9189(0x60c)][_0x4d9189(0x3c9)](_0x38b177,this[_0x4d9189(0x4dc)],this['type'],this[_0x4d9189(0x504)],this['_pendingMutations'],null,[_0x2a58e5],this[_0x4d9189(0x3d1)]);try{const _0x16be1b=this[_0x4d9189(0x4d9)][_0x4d9189(0x3bd)]([_0x2a58e5],[this[_0x4d9189(0x504)]],!0x1);if(_0x292f17[_0x4d9189(0x2e0)](_0x16be1b)){const {c1Prime:_0x58d32e,c2Prime:_0x50fd39}=_0x16be1b,_0x53090d=this[_0x4d9189(0x4d9)]['transformMutationsWithChangeset'](_0x58d32e[0x0],this['_pendingMutations']);if(_0x292f17[_0x4d9189(0x1f1)](_0x53090d)){const {c1Prime:_0x4e9d67,m2Prime:_0x54f001}=_0x53090d;return this[_0x4d9189(0x494)](_0x4e9d67),_0x50fd39[0x0]['baseRev']=this[_0x4d9189(0x403)](),this[_0x4d9189(0x60c)][_0x4d9189(0x3c9)](_0x35d7af,this[_0x4d9189(0x4dc)],this[_0x4d9189(0x28e)],_0x50fd39[0x0],_0x54f001,this[_0x4d9189(0x3d1)]);}throw _0x53090d[_0x4d9189(0x5c5)];}throw _0x16be1b[_0x4d9189(0x5c5)];}catch(_0x22cac7){return this[_0x4d9189(0x5b0)][_0x4d9189(0x5c5)](_0x22cac7),this[_0x4d9189(0x53b)](!0x1);}}[_0x5ebc5d(0x290)](_0x139c4c){const _0x1c6378=_0x5ebc5d;if(this['_checkMissing'](_0x139c4c))return this[_0x1c6378(0x60c)]['createInstance'](_0x38b177,this[_0x1c6378(0x4dc)],this[_0x1c6378(0x28e)],null,this[_0x1c6378(0x3b4)],this['_awaitingChangeset'],[],this[_0x1c6378(0x3d1)]);this['_incrementRevisionNumber']();const _0x3b0a31=this[_0x1c6378(0x60c)][_0x1c6378(0x3c9)](_0x3d8a1c,this[_0x1c6378(0x4dc)],this[_0x1c6378(0x28e)],this[_0x1c6378(0x3b4)],this[_0x1c6378(0x3d1)]);return _0x3b0a31[_0x1c6378(0x5b6)](),_0x3b0a31[_0x1c6378(0x608)](),_0x3b0a31;}[_0x5ebc5d(0x26d)](_0x2407fc){const _0x1ebafe=_0x5ebc5d;return this['_onConflict'](!!(_0x2407fc!=null&&_0x2407fc[_0x1ebafe(0x3d6)]));}['toggleOffline'](){const _0x442406=_0x5ebc5d;return this['_injector'][_0x442406(0x3c9)](_0x90f657,this['unitID'],this[_0x442406(0x28e)],this['_awaitingChangeset'],this[_0x442406(0x3b4)],this['_handler']);}[_0x5ebc5d(0x375)](){return this;}['resend'](){const _0xc13315=_0x5ebc5d;this[_0xc13315(0x3d1)][_0xc13315(0x453)](this[_0xc13315(0x504)]);}[_0x5ebc5d(0x53b)](_0x4a18b8){const _0x5475be=_0x5ebc5d;return this['_injector'][_0x5475be(0x3c9)](_0x51236a,this[_0x5475be(0x4dc)],this[_0x5475be(0x28e)],null,this[_0x5475be(0x3b4)],this['_handler'],_0x4a18b8);}};_0x35d7af=_0x39335c([_0x3bd0ab(0x5,_0x204831[_0x5ebc5d(0x5cf)](_0x204831[_0x5ebc5d(0x28a)])),_0x3bd0ab(0x6,_0x204831[_0x5ebc5d(0x5cf)](_0x292f17[_0x5ebc5d(0x55a)])),_0x3bd0ab(0x7,_0x204831[_0x5ebc5d(0x5cf)](_0x52f4d9[_0x5ebc5d(0x44b)])),_0x3bd0ab(0x8,_0x204831['ICommandService']),_0x3bd0ab(0x9,_0x204831[_0x5ebc5d(0x4a5)]),_0x3bd0ab(0xa,_0x292f17[_0x5ebc5d(0x446)]),_0x3bd0ab(0xb,_0x204831[_0x5ebc5d(0x4bb)])],_0x35d7af);let _0x51236a=class extends _0x1c3a5c{constructor(_0x9b68bc,_0x3722cc,_0x4d90d6,_0x2ad79b,_0x47eb69,_0xbe218f=!0x1,_0x53105d,_0x3a35bb,_0x37a370,_0x1dcd92,_0x3d3584,_0x443dca,_0x4551b0){const _0x128f3a=_0x5ebc5d;super(_0x9b68bc,_0x3722cc,_0x4d90d6,_0x2ad79b,_0x47eb69,_0x3a35bb,_0x37a370,_0x3d3584,_0x1dcd92),_0x3d4e20(this,_0x128f3a(0x32a),_0x128f3a(0x584)),(this['_isPermissionRej']=_0xbe218f,this[_0x128f3a(0x25d)]=_0x53105d,this[_0x128f3a(0x4af)]=_0x443dca,this[_0x128f3a(0x5e9)]=_0x4551b0,this[_0x128f3a(0x590)](),this[_0x128f3a(0x5af)](),this[_0x128f3a(0x380)]());}[_0x5ebc5d(0x447)](){return this;}[_0x5ebc5d(0x4f2)](){return this;}[_0x5ebc5d(0x290)](){return this;}[_0x5ebc5d(0x26d)](){return this;}[_0x5ebc5d(0x3d5)](){return this;}[_0x5ebc5d(0x375)](){return this;}[_0x5ebc5d(0x393)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x5ebc5d(0x5af)](){const _0x574aca=_0x5ebc5d;this[_0x574aca(0x5db)]['updateOfflineData'](this[_0x574aca(0x4dc)],this[_0x574aca(0x28e)],null,[]);}['_showConflictNotification'](){const _0x5aea60=_0x5ebc5d;this[_0x5aea60(0x4e5)]?this[_0x5aea60(0x5e9)]['show']({'title':this[_0x5aea60(0x4af)]['t'](_0x5aea60(0x4d0)),'content':this['_localeService']['t'](_0x5aea60(0x4e1)),'type':_0x5aea60(0x5c5),'duration':0x0}):this[_0x5aea60(0x5e9)][_0x5aea60(0x497)]({'title':this[_0x5aea60(0x4af)]['t']('conflict.title'),'content':this['_localeService']['t']('conflict.content'),'type':'error','duration':0x0});}['_disableEditing'](){const _0xc8f0eb=_0x5ebc5d;this[_0xc8f0eb(0x25d)][_0xc8f0eb(0x26a)](new _0x2850a0['WorkbookEditablePermission'](this[_0xc8f0eb(0x4dc)])['id'],!0x1);}};_0x51236a=_0x39335c([_0x3bd0ab(0x6,_0x204831[_0x5ebc5d(0x5cf)](_0x204831['IPermissionService'])),_0x3bd0ab(0x7,_0x204831[_0x5ebc5d(0x2de)]),_0x3bd0ab(0x8,_0x204831['IUndoRedoService']),_0x3bd0ab(0x9,_0x204831[_0x5ebc5d(0x5cf)](_0x52f4d9[_0x5ebc5d(0x44b)])),_0x3bd0ab(0xa,_0x204831['Inject'](_0x292f17[_0x5ebc5d(0x55a)])),_0x3bd0ab(0xb,_0x204831[_0x5ebc5d(0x5cf)](_0x204831['LocaleService'])),_0x3bd0ab(0xc,_0x1e1361[_0x5ebc5d(0x451)])],_0x51236a);let _0x90f657=class extends _0x1c3a5c{constructor(_0x88d797,_0x510ab6,_0x4c197f,_0x5f45fa,_0x122107,_0x3ecb48,_0x48b0cd,_0x5286b6,_0x56e5e8,_0x3e1577){const _0x49afb8=_0x5ebc5d;super(_0x88d797,_0x510ab6,_0x4c197f,_0x5f45fa,_0x122107,_0x56e5e8,_0x3e1577,_0x48b0cd,_0x5286b6),_0x3d4e20(this,'status',_0x49afb8(0x24f)),this[_0x49afb8(0x60c)]=_0x3ecb48;}['appendMutation'](_0x167c38){const _0x5141ef=_0x5ebc5d;return this[_0x5141ef(0x3b4)][_0x5141ef(0x479)](_0x167c38),this[_0x5141ef(0x608)](),this;}[_0x5ebc5d(0x4f2)](_0x315c73){const _0x52d79b=_0x5ebc5d;throw new Error(_0x52d79b(0x214));}[_0x5ebc5d(0x290)](){const _0x312f4c=_0x5ebc5d;throw new Error(_0x312f4c(0x2d9));}[_0x5ebc5d(0x26d)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x5ebc5d(0x3d5)](){return this;}[_0x5ebc5d(0x375)](){const _0x3cb787=_0x5ebc5d,{_injector:_0x5c8c09,_pendingMutations:_0x2dea6e,_awaitingChangeset:_0x2cd2bc,unitID:_0x1d094f,_handler:_0x5e0c,type:_0x52f692}=this,_0x4a1709=_0x152169(_0x5c8c09,_0x1d094f,_0x52f692,_0x2cd2bc,_0x2dea6e,_0x5e0c);return _0x4a1709 instanceof _0x3d8a1c?_0x4a1709['_schedule']():(_0x4a1709 instanceof _0x35d7af||_0x4a1709 instanceof _0x5b648b)&&_0x4a1709[_0x3cb787(0x393)](),_0x4a1709;}['resend'](){const _0x4d1ccf=_0x5ebc5d;throw new Error(_0x4d1ccf(0x3d2));}};_0x90f657=_0x39335c([_0x3bd0ab(0x5,_0x204831[_0x5ebc5d(0x5cf)](_0x204831[_0x5ebc5d(0x28a)])),_0x3bd0ab(0x6,_0x204831[_0x5ebc5d(0x5cf)](_0x292f17[_0x5ebc5d(0x55a)])),_0x3bd0ab(0x7,_0x204831[_0x5ebc5d(0x5cf)](_0x52f4d9['LocalCacheService'])),_0x3bd0ab(0x8,_0x204831[_0x5ebc5d(0x2de)]),_0x3bd0ab(0x9,_0x204831[_0x5ebc5d(0x4bb)])],_0x90f657);let _0x38b177=class extends _0x1c3a5c{constructor(_0x288c5b,_0x4af6e2,_0x2f31c2,_0x1fc36b,_0x547ae,_0x33aedb,_0x4c287e,_0x5c6ce4,_0x406fa4,_0x2dfc7d,_0x98101a,_0x460dad,_0x416fd7,_0x14a887){const _0xd2442a=_0x5ebc5d;super(_0x288c5b,_0x4af6e2,_0x2f31c2,_0x1fc36b,_0x4c287e,_0x460dad,_0x416fd7,_0x406fa4,_0x2dfc7d),_0x3d4e20(this,_0xd2442a(0x32a),_0xd2442a(0x352)),(this['_acknowledgedAwaitingChangeset']=_0x547ae,this[_0xd2442a(0x27f)]=_0x33aedb,this[_0xd2442a(0x60c)]=_0x5c6ce4,this['_logService']=_0x98101a,this[_0xd2442a(0x4d9)]=_0x14a887);}[_0x5ebc5d(0x1fa)](_0x17957e){const _0x1b75f1=_0x5ebc5d;try{const _0x4921fc=[..._0x17957e,...this['_queuedRemoteChangesets']],_0x518984=[this['_awaitingChangeset']||this[_0x1b75f1(0x5c9)]][_0x1b75f1(0x4ea)](_0x30559f=>!!_0x30559f);let _0x4d5bdf,_0x1fec6b;if(_0x518984['length']){const _0x76aadb=this[_0x1b75f1(0x4d9)][_0x1b75f1(0x3bd)](_0x4921fc,_0x518984,!0x1);if(!_0x292f17[_0x1b75f1(0x2e0)](_0x76aadb))throw _0x76aadb[_0x1b75f1(0x5c5)];_0x4d5bdf=_0x76aadb['c1Prime'],_0x1fec6b=_0x76aadb[_0x1b75f1(0x5da)];}else _0x4d5bdf=_0x4921fc,_0x1fec6b=[];let _0x1f8a02=this[_0x1b75f1(0x3b4)];_0x4d5bdf[_0x1b75f1(0x394)](_0x564c64=>{const _0x18c224=_0x1b75f1;let _0x5eba0e;if(_0x1f8a02['length']){const _0x46a28c=this[_0x18c224(0x4d9)]['transformMutationsWithChangeset'](_0x564c64,_0x1f8a02);if(!_0x292f17[_0x18c224(0x1f1)](_0x46a28c))throw _0x46a28c[_0x18c224(0x5c5)];_0x5eba0e=_0x46a28c['c1Prime'],_0x1f8a02=_0x46a28c['m2Prime'];}else _0x5eba0e=_0x564c64;this['_executeRemoteChangeset'](_0x5eba0e);}),this['_acknowledgedAwaitingChangeset']&&this[_0x1b75f1(0x487)](),this[_0x1b75f1(0x504)]&&_0x1fec6b[_0x1b75f1(0x522)]&&(_0x1fec6b[0x0]['baseRev']=this[_0x1b75f1(0x403)]());let _0x229a74;if(this['_awaitingChangeset']&&_0x1f8a02[_0x1b75f1(0x522)]!==0x0)_0x229a74=this[_0x1b75f1(0x60c)][_0x1b75f1(0x3c9)](_0x35d7af,this[_0x1b75f1(0x4dc)],this[_0x1b75f1(0x28e)],_0x1fec6b[0x0],_0x1f8a02,this['_handler']);else{if(this[_0x1b75f1(0x504)]&&_0x1f8a02['length']===0x0)_0x1fec6b[0x0][_0x1b75f1(0x2c8)]=this[_0x1b75f1(0x403)](),_0x229a74=this[_0x1b75f1(0x60c)][_0x1b75f1(0x3c9)](_0x5b648b,this[_0x1b75f1(0x4dc)],this[_0x1b75f1(0x28e)],_0x1fec6b[0x0],this[_0x1b75f1(0x3d1)]);else{if(_0x1f8a02[_0x1b75f1(0x522)]!==0x0){const _0x11498b=this[_0x1b75f1(0x60c)][_0x1b75f1(0x3c9)](_0x3d8a1c,this[_0x1b75f1(0x4dc)],this[_0x1b75f1(0x28e)],_0x1f8a02,this[_0x1b75f1(0x3d1)]);_0x11498b[_0x1b75f1(0x5b6)](),_0x229a74=_0x11498b;}else _0x229a74=this[_0x1b75f1(0x60c)]['createInstance'](_0x5c4efe,this['unitID'],this['type'],this['_handler']);}}return _0x229a74['_updateLocalCache'](),_0x229a74;}catch(_0x3e6ca3){return this[_0x1b75f1(0x5b0)][_0x1b75f1(0x5c5)](_0x1b75f1(0x37f),_0x1b75f1(0x2fc),_0x3e6ca3),this['_injector'][_0x1b75f1(0x3c9)](_0x51236a,this['unitID'],this[_0x1b75f1(0x28e)],this[_0x1b75f1(0x504)],this[_0x1b75f1(0x3b4)],this[_0x1b75f1(0x3d1)],!0x1);}}[_0x5ebc5d(0x393)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x574e87){const _0x3f5ed6=_0x5ebc5d;return this[_0x3f5ed6(0x3b4)]['push'](_0x574e87),this;}[_0x5ebc5d(0x4f2)](_0x23ff2e){const _0x10e80b=_0x5ebc5d;return this['_queuedRemoteChangesets'][_0x10e80b(0x479)](_0x23ff2e),this;}[_0x5ebc5d(0x290)](_0x5aae4a){const _0x3382c4=_0x5ebc5d;if(this[_0x3382c4(0x504)])return this[_0x3382c4(0x5c9)]=this[_0x3382c4(0x504)],this[_0x3382c4(0x504)]=null,this;throw new Error(_0x3382c4(0x344));}['onRemoteRej'](_0x28c52f){const _0x16e7af=_0x5ebc5d;return this[_0x16e7af(0x53b)](!!(_0x28c52f!=null&&_0x28c52f[_0x16e7af(0x3d6)]));}[_0x5ebc5d(0x3d5)](){const _0x60c93=_0x5ebc5d;return this[_0x60c93(0x60c)][_0x60c93(0x3c9)](_0x90f657,this[_0x60c93(0x4dc)],this[_0x60c93(0x28e)],this[_0x60c93(0x504)],this['_pendingMutations'],this[_0x60c93(0x3d1)]);}[_0x5ebc5d(0x375)](){return this;}['_onConflict'](_0x2e4377){const _0x22cf4e=_0x5ebc5d;return this[_0x22cf4e(0x60c)]['createInstance'](_0x51236a,this[_0x22cf4e(0x4dc)],this[_0x22cf4e(0x28e)],this[_0x22cf4e(0x504)],this[_0x22cf4e(0x3b4)],this[_0x22cf4e(0x3d1)],_0x2e4377);}};_0x38b177=_0x39335c([_0x3bd0ab(0x7,_0x204831[_0x5ebc5d(0x5cf)](_0x204831['Injector'])),_0x3bd0ab(0x8,_0x204831[_0x5ebc5d(0x5cf)](_0x292f17[_0x5ebc5d(0x55a)])),_0x3bd0ab(0x9,_0x204831[_0x5ebc5d(0x5cf)](_0x52f4d9[_0x5ebc5d(0x44b)])),_0x3bd0ab(0xa,_0x204831[_0x5ebc5d(0x4a5)]),_0x3bd0ab(0xb,_0x204831[_0x5ebc5d(0x2de)]),_0x3bd0ab(0xc,_0x204831[_0x5ebc5d(0x4bb)]),_0x3bd0ab(0xd,_0x292f17[_0x5ebc5d(0x446)])],_0x38b177);function _0x152169(_0xb06828,_0x12bfe9,_0x58f7b7,_0x40c39b,_0x3f6421,_0x283924){const _0x1a420d=_0x5ebc5d;return _0x40c39b&&_0x3f6421[_0x1a420d(0x522)]?_0xb06828[_0x1a420d(0x3c9)](_0x35d7af,_0x12bfe9,_0x58f7b7,_0x40c39b,_0x3f6421,_0x283924):_0x40c39b?_0xb06828[_0x1a420d(0x3c9)](_0x5b648b,_0x12bfe9,_0x58f7b7,_0x40c39b,_0x283924):_0x3f6421[_0x1a420d(0x522)]?_0xb06828['createInstance'](_0x3d8a1c,_0x12bfe9,_0x58f7b7,_0x3f6421,_0x283924):_0xb06828[_0x1a420d(0x3c9)](_0x5c4efe,_0x12bfe9,_0x58f7b7,_0x283924);}var _0x1c65dd=Object[_0x5ebc5d(0x552)],_0xaa4d9b=Object[_0x5ebc5d(0x38b)],_0x45bf96=(_0x581aa7,_0xcfe705,_0x178178,_0x5efbc7)=>{const _0x119221=_0x5ebc5d;for(var _0x2fd190=_0x5efbc7>0x1?void 0x0:_0x5efbc7?_0xaa4d9b(_0xcfe705,_0x178178):_0xcfe705,_0x21e736=_0x581aa7[_0x119221(0x522)]-0x1,_0x2c51ba;_0x21e736>=0x0;_0x21e736--)(_0x2c51ba=_0x581aa7[_0x21e736])&&(_0x2fd190=(_0x5efbc7?_0x2c51ba(_0xcfe705,_0x178178,_0x2fd190):_0x2c51ba(_0x2fd190))||_0x2fd190);return _0x5efbc7&&_0x2fd190&&_0x1c65dd(_0xcfe705,_0x178178,_0x2fd190),_0x2fd190;},_0x337ade=(_0x50d9f6,_0x1bf322)=>(_0x3bd1db,_0xbbfab7)=>_0x1bf322(_0x3bd1db,_0xbbfab7,_0x50d9f6);_0x52f4d9[_0x5ebc5d(0x37b)]=class extends _0x204831[_0x5ebc5d(0x3e5)]{constructor(_0x10df2d,_0x24105e,_0x290563,_0x59fdae,_0x4ac450,_0x493145,_0x118050,_0x54f695,_0x50ced8,_0xc5f9a,_0x26e571,_0x445395,_0x39a013){const _0x364167=_0x5ebc5d;super(),_0x3d4e20(this,'_state$',new _0x2ea3f3[(_0x364167(0x565))](null)),_0x3d4e20(this,_0x364167(0x40e),this[_0x364167(0x325)][_0x364167(0x4f3)]()),_0x3d4e20(this,'_state'),_0x3d4e20(this,_0x364167(0x3eb),!0x1),_0x3d4e20(this,_0x364167(0x413),this[_0x364167(0x40e)][_0x364167(0x30d)](_0x2ea3f3['map'](_0x2fa525=>_0x2fa525?_0x2fa525[_0x364167(0x32a)]:_0x4ebacb[_0x364167(0x34e)]),_0x2ea3f3[_0x364167(0x461)](0x1))),_0x3d4e20(this,_0x364167(0x328),!0x1),_0x3d4e20(this,'_remoteChangesetQueue',[]),(this[_0x364167(0x4dc)]=_0x10df2d,this['session']=_0x24105e,this[_0x364167(0x524)]=_0x290563,this['_injector']=_0x59fdae,this[_0x364167(0x5db)]=_0x4ac450,this[_0x364167(0x357)]=_0x493145,this['_localeService']=_0x118050,this[_0x364167(0x1ed)]=_0x54f695,this['_logService']=_0x50ced8,this[_0x364167(0x5f3)]=_0xc5f9a,this['_messageService']=_0x26e571,this[_0x364167(0x25d)]=_0x445395,this[_0x364167(0x436)]=_0x39a013);}get[_0x5ebc5d(0x39c)](){return this['_state'];}async[_0x5ebc5d(0x4ff)](){const _0x455930=_0x5ebc5d;if(this[_0x455930(0x39c)])throw new Error(_0x455930(0x594));await this[_0x455930(0x411)]();}['pauseCollaboration'](){const _0x4df456=_0x5ebc5d;return this[_0x4df456(0x3eb)]=!0x0,_0x204831['toDisposable'](()=>{const _0x46e749=_0x4df456;this[_0x46e749(0x3eb)]=!0x1,this[_0x46e749(0x284)]();});}[_0x5ebc5d(0x4d3)](_0x119cf8){const _0x1d362b=_0x5ebc5d;this[_0x1d362b(0x32f)]=_0x119cf8,this[_0x1d362b(0x325)][_0x1d362b(0x50a)](_0x119cf8);}async['_init'](){const _0x1cb3f1=_0x5ebc5d;var _0xf92629;this[_0x1cb3f1(0x4d3)](await this[_0x1cb3f1(0x326)]()),this[_0x1cb3f1(0x436)]&&((_0xf92629=this[_0x1cb3f1(0x436)])==null||_0xf92629[_0x1cb3f1(0x5bb)](this['unitID']),this[_0x1cb3f1(0x382)](this[_0x1cb3f1(0x436)][_0x1cb3f1(0x470)](this[_0x1cb3f1(0x4dc)])[_0x1cb3f1(0x2e1)](_0x3c8d68=>{const _0x256b3f=_0x1cb3f1;this[_0x256b3f(0x5b0)][_0x256b3f(0x455)](_0x256b3f(0x4a0),_0x256b3f(0x32b),_0x3c8d68),_0x3c8d68===_0x2d477a[_0x256b3f(0x50c)]?(this[_0x256b3f(0x534)][_0x256b3f(0x497)]({'content':this[_0x256b3f(0x4af)]['t'](_0x256b3f(0x425)),'type':_0x53bcf5[_0x256b3f(0x465)][_0x256b3f(0x2ba)]}),this['_permissionService'][_0x256b3f(0x26a)](new _0x2850a0[(_0x256b3f(0x299))](this[_0x256b3f(0x4dc)])['id'],!0x1)):this[_0x256b3f(0x25d)][_0x256b3f(0x26a)](new _0x2850a0[(_0x256b3f(0x299))](this[_0x256b3f(0x4dc)])['id'],!0x0);})));let _0x4bc010=!0x1;return this[_0x1cb3f1(0x382)](this[_0x1cb3f1(0x242)][_0x1cb3f1(0x229)][_0x1cb3f1(0x2e1)](_0x6d96a3=>{const _0x5ae261=_0x1cb3f1;_0x6d96a3===_0x52ce60['ONLINE']?this['_toggleOnline'](_0x4bc010):_0x6d96a3===_0x52ce60[_0x5ae261(0x34e)]&&(_0x4bc010=!0x0,this[_0x5ae261(0x445)]());})),this[_0x1cb3f1(0x382)](this['session'][_0x1cb3f1(0x430)][_0x1cb3f1(0x2e1)](_0x4a0b8b=>{const _0x374d86=_0x1cb3f1;try{switch(_0x4a0b8b['eventID']){case _0x292f17[_0x374d86(0x351)]['NEW_CHANGESETS']:{this[_0x374d86(0x367)](_0x292f17[_0x374d86(0x4cb)](_0x4a0b8b[_0x374d86(0x5ea)]));break;}case _0x292f17['CollaborationEvent'][_0x374d86(0x405)]:{this[_0x374d86(0x38d)](_0x4a0b8b[_0x374d86(0x5ea)]);break;}case _0x292f17[_0x374d86(0x351)]['CHANGESET_REJ']:{this[_0x374d86(0x56f)]();break;}case _0x292f17[_0x374d86(0x351)][_0x374d86(0x243)]:{this[_0x374d86(0x4a7)](_0x4a0b8b['data'][_0x374d86(0x53d)][_0x374d86(0x5ef)](_0x191c2e=>_0x292f17[_0x374d86(0x4cb)](_0x191c2e)));break;}case _0x292f17['CollaborationEvent'][_0x374d86(0x4fb)]:this[_0x374d86(0x56f)]({'isPermissionRej':!0x0});}}catch(_0x337ec0){throw console[_0x374d86(0x5c5)](_0x374d86(0x478),_0x337ec0),_0x337ec0;}})),this['_state'];}[_0x5ebc5d(0x43c)](){const _0xf27388=_0x5ebc5d;this[_0xf27388(0x328)]=!0x1;}[_0x5ebc5d(0x4cc)](){const _0x105da5=_0x5ebc5d;if(this[_0x105da5(0x328)])throw new Error(_0x105da5(0x54b));this[_0x105da5(0x328)]=!0x0;}[_0x5ebc5d(0x23f)](_0x36a34e){const _0x56912d=_0x5ebc5d;this[_0x56912d(0x4cc)](),this[_0x56912d(0x4d3)](this[_0x56912d(0x32f)][_0x56912d(0x447)](_0x36a34e)),this['_unlockTransition']();}[_0x5ebc5d(0x367)](_0x44b98e){const _0x284448=_0x5ebc5d;if(!(_0x44b98e['revision']<=this['_revisionService'][_0x284448(0x23e)](this[_0x284448(0x4dc)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue']['push'](_0x44b98e);return;}this[_0x284448(0x5f9)](_0x44b98e);}}[_0x5ebc5d(0x284)](){const _0xf8ea0c=_0x5ebc5d;this[_0xf8ea0c(0x2a6)]['forEach'](_0x448e32=>this[_0xf8ea0c(0x5f9)](_0x448e32)),this[_0xf8ea0c(0x2a6)]=[];}[_0x5ebc5d(0x5f9)](_0x3de5a4){const _0x8adb58=_0x5ebc5d,_0x587b8d=this[_0x8adb58(0x357)]['interceptor'][_0x8adb58(0x29d)](this[_0x8adb58(0x357)][_0x8adb58(0x1ec)][_0x8adb58(0x37e)]()[_0x8adb58(0x597)])(_0x3de5a4['mutations'],null)||_0x3de5a4[_0x8adb58(0x4b3)],_0x5b87a2={..._0x3de5a4,'mutations':_0x587b8d};this[_0x8adb58(0x4cc)](),this[_0x8adb58(0x4d3)](this[_0x8adb58(0x32f)][_0x8adb58(0x4f2)](_0x5b87a2)),this['_unlockTransition']();}['_onRemoteACK'](_0x2bbe22){const _0x5bf90f=_0x5ebc5d;this[_0x5bf90f(0x4cc)](),this[_0x5bf90f(0x4d3)](this['_state'][_0x5bf90f(0x290)](_0x2bbe22)),this['_unlockTransition']();}[_0x5ebc5d(0x56f)](_0x5033ec){const _0x200ccc=_0x5ebc5d;this[_0x200ccc(0x4cc)](),this[_0x200ccc(0x4d3)](this[_0x200ccc(0x32f)][_0x200ccc(0x26d)](_0x5033ec)),this[_0x200ccc(0x43c)]();}[_0x5ebc5d(0x4a7)](_0x42cd6e){const _0x4aff88=_0x5ebc5d;if(!(this[_0x4aff88(0x32f)]instanceof _0x38b177))throw new TypeError(_0x4aff88(0x5e1));const _0x5b1cc4=_0x42cd6e[_0x4aff88(0x5ef)](_0x333412=>{const _0x14fffa=_0x4aff88,_0x138d49=this[_0x14fffa(0x357)][_0x14fffa(0x1ec)][_0x14fffa(0x29d)](this['_compressMutationService'][_0x14fffa(0x1ec)]['getInterceptPoints']()[_0x14fffa(0x597)])(_0x333412[_0x14fffa(0x4b3)],null)||_0x333412[_0x14fffa(0x4b3)];return{..._0x333412,'mutations':_0x138d49};});this[_0x4aff88(0x4cc)](),this[_0x4aff88(0x4d3)](this[_0x4aff88(0x32f)][_0x4aff88(0x1fa)](_0x5b1cc4)),this['_unlockTransition']();}['_toggleOffline'](){const _0x55ef15=_0x5ebc5d;this[_0x55ef15(0x4cc)](),this[_0x55ef15(0x4d3)](this['_state'][_0x55ef15(0x3d5)]()),this['_unlockTransition']();}[_0x5ebc5d(0x3ca)](_0x54813d=!0x1){const _0x109c84=_0x5ebc5d;this['_lockTransition'](),this[_0x109c84(0x4d3)](this[_0x109c84(0x32f)]['toggleOnline']()),this['_unlockTransition']();const _0x113f9a=this[_0x109c84(0x32f)];_0x54813d&&_0x113f9a instanceof _0x5c4efe&&(this[_0x109c84(0x4cc)](),this['_updateState'](_0x113f9a[_0x109c84(0x593)]()),this[_0x109c84(0x43c)]());}async[_0x5ebc5d(0x326)](){return new Promise(_0x26e7db=>{const _0x54a205=_0x1c68;this['session'][_0x54a205(0x229)][_0x54a205(0x30d)](_0x2ea3f3[_0x54a205(0x4da)](0x1))[_0x54a205(0x2e1)](async _0x257a26=>{const _0x4c67ed=_0x54a205;_0x26e7db(await this['_createInitialStateImpl'](_0x257a26===_0x52ce60[_0x4c67ed(0x292)]));});});}[_0x5ebc5d(0x488)](){const _0x384702=_0x5ebc5d,_0x5a2cf9=this[_0x384702(0x4dc)];return{'onStateChange':(_0x1951fa,_0x7da05a)=>{const _0x2ae353=_0x384702;if(_0x1951fa!==this[_0x2ae353(0x32f)])throw new Error(_0x2ae353(0x4fe)+_0x1951fa[_0x2ae353(0x32a)]+'\x0aAfter:\x20'+_0x7da05a[_0x2ae353(0x32a)]+_0x2ae353(0x1f4)+this[_0x2ae353(0x32f)][_0x2ae353(0x32a)]);this[_0x2ae353(0x4d3)](_0x7da05a);},'onSendChangeset':_0x917e4e=>{const _0x3928b0=_0x384702,_0x8b0f29={'eventID':_0x292f17[_0x3928b0(0x351)][_0x3928b0(0x422)],'data':{'unitID':_0x917e4e[_0x3928b0(0x4dc)],'unitType':this[_0x3928b0(0x524)],'changeset':_0x917e4e,'memberID':this[_0x3928b0(0x242)]['getMemberID']()}};this[_0x3928b0(0x242)][_0x3928b0(0x433)](_0x8b0f29,this['unitID']);},'onMissingChangesets':({from:_0x1443f9,to:_0xcbe2a9})=>{const _0x38fb9e=_0x384702;this[_0x38fb9e(0x5b0)]['debug'](_0x38fb9e(0x4a0),_0x38fb9e(0x3ec)+_0x1443f9+_0x38fb9e(0x3a1)+_0xcbe2a9);const _0x31f90e={'eventID':_0x292f17[_0x38fb9e(0x351)][_0x38fb9e(0x204)],'data':{'unitID':_0x5a2cf9,'unitType':this[_0x38fb9e(0x524)],'from':_0x1443f9,'to':_0xcbe2a9}};this[_0x38fb9e(0x242)][_0x38fb9e(0x433)](_0x31f90e,this['unitID']);}};}async[_0x5ebc5d(0x2f1)](_0x305a85){const _0x348ab5=_0x5ebc5d;var _0x266bee,_0x441303;const _0x22e436=await this[_0x348ab5(0x5db)]['loadOfflineData'](this[_0x348ab5(0x4dc)]),_0xa88500=(_0x266bee=_0x22e436==null?void 0x0:_0x22e436[_0x348ab5(0x4b3)])!=null?_0x266bee:[],_0x162064=(_0x441303=_0x22e436==null?void 0x0:_0x22e436[_0x348ab5(0x341)])!=null?_0x441303:null,_0x4159a8=this[_0x348ab5(0x4dc)];try{this[_0x348ab5(0x331)](_0x162064,_0xa88500);}catch(_0x5a4534){this[_0x348ab5(0x5b0)]['error'](_0x5a4534);}const _0x57276f=this['_createHandler']();if(_0x305a85){const _0x1042c1=_0x152169(this['_injector'],_0x4159a8,this[_0x348ab5(0x524)],_0x162064,_0xa88500,_0x57276f);return _0x1042c1 instanceof _0x3d8a1c?_0x1042c1[_0x348ab5(0x5b6)]():(_0x1042c1 instanceof _0x35d7af||_0x1042c1 instanceof _0x5b648b)&&_0x1042c1[_0x348ab5(0x393)](),_0x1042c1;}return this[_0x348ab5(0x60c)]['createInstance'](_0x90f657,_0x4159a8,this[_0x348ab5(0x524)],_0x162064,_0xa88500,_0x57276f);}[_0x5ebc5d(0x331)](_0x477aaa,_0x50b571){const _0x4180e1=_0x5ebc5d;var _0x3ed675,_0x155497;const _0x1260e6=this[_0x4180e1(0x357)][_0x4180e1(0x1ec)][_0x4180e1(0x29d)](this['_compressMutationService']['interceptor'][_0x4180e1(0x37e)]()['COMPRESS_MUTATION_APPLY']);(_0x3ed675=_0x1260e6((_0x477aaa==null?void 0x0:_0x477aaa[_0x4180e1(0x4b3)])||[],null))==null||_0x3ed675[_0x4180e1(0x394)](_0x4e494f=>this[_0x4180e1(0x5f3)][_0x4180e1(0x3e2)](_0x4e494f['id'],_0x4e494f['params'])),(_0x155497=_0x1260e6(_0x50b571||[],null))==null||_0x155497[_0x4180e1(0x394)](_0x24ebd9=>this[_0x4180e1(0x5f3)][_0x4180e1(0x3e2)](_0x24ebd9['id'],_0x24ebd9[_0x4180e1(0x208)]));}},_0x52f4d9[_0x5ebc5d(0x37b)]=_0x45bf96([_0x337ade(0x3,_0x204831[_0x5ebc5d(0x5cf)](_0x204831['Injector'])),_0x337ade(0x4,_0x204831[_0x5ebc5d(0x5cf)](_0x52f4d9[_0x5ebc5d(0x44b)])),_0x337ade(0x5,_0x204831[_0x5ebc5d(0x5cf)](_0x292f17[_0x5ebc5d(0x510)])),_0x337ade(0x6,_0x204831[_0x5ebc5d(0x5cf)](_0x204831['LocaleService'])),_0x337ade(0x7,_0x204831[_0x5ebc5d(0x5cf)](_0x292f17['RevisionService'])),_0x337ade(0x8,_0x204831['ILogService']),_0x337ade(0x9,_0x204831[_0x5ebc5d(0x2de)]),_0x337ade(0xa,_0x1e1361['IMessageService']),_0x337ade(0xb,_0x204831['IPermissionService']),_0x337ade(0xc,_0x204831[_0x5ebc5d(0x39e)](_0x4bdb01))],_0x52f4d9[_0x5ebc5d(0x37b)]),_0x52f4d9[_0x5ebc5d(0x4de)]=class extends _0x52f4d9[_0x5ebc5d(0x37b)]{constructor(_0x47d22f,_0x200b3d,_0xc6af66,_0x2f92b9,_0x1bb1f2,_0x2cd904,_0x402b99,_0x5ac89a,_0x2a4339,_0x3e57d0,_0x207b6d,_0x3f3a03,_0x57f3cb,_0x348dd2,_0x11cecc,_0x14528a,_0x4c4ca1){const _0x40c4a2=_0x5ebc5d;super(_0x47d22f,_0xc6af66,_0x200b3d,_0x2f92b9,_0x1bb1f2,_0x2cd904,_0x402b99,_0x5ac89a,_0x57f3cb,_0x348dd2,_0x11cecc,_0x14528a,_0x4c4ca1),this['unitID']=_0x47d22f,this['type']=_0x200b3d,this[_0x40c4a2(0x320)]=_0x2a4339,this['_docTransformIMECacheService']=_0x3e57d0,this[_0x40c4a2(0x28f)]=_0x207b6d,this[_0x40c4a2(0x35a)]=_0x3f3a03;}['_createHandler'](){const _0x5891d0=_0x5ebc5d,_0x4ca6fe=super[_0x5891d0(0x488)]();return _0x4ca6fe['onTransformIME']=_0x4fba9f=>this['_docTransformIMECacheService'][_0x5891d0(0x48d)](_0x4fba9f),_0x4ca6fe[_0x5891d0(0x5ab)]=_0x374914=>this[_0x5891d0(0x28f)]['transformSelections'](_0x374914),_0x4ca6fe['onSyncEditingCollabCursor']=_0x240aa4=>this['_docSyncEditingCollabCursorService'][_0x5891d0(0x324)](_0x240aa4),_0x4ca6fe[_0x5891d0(0x202)]=_0x15808c=>this['_docTransformIMECacheService'][_0x5891d0(0x389)](_0x15808c),_0x4ca6fe;}async[_0x5ebc5d(0x411)](){const _0x4ce993=_0x5ebc5d,_0x519629=await super[_0x4ce993(0x411)]();return this[_0x4ce993(0x382)](this[_0x4ce993(0x5f3)][_0x4ce993(0x3b3)]((_0x591798,_0x39215b)=>{const _0x52fb25=_0x4ce993;if(_0x591798[_0x52fb25(0x28e)]!==_0x204831[_0x52fb25(0x5d7)][_0x52fb25(0x4f7)]||_0x39215b!=null&&_0x39215b['fromCollab']||_0x39215b!=null&&_0x39215b[_0x52fb25(0x47d)])return;const _0x3bee4f=_0x591798[_0x52fb25(0x208)];if((_0x3bee4f==null?void 0x0:_0x3bee4f['unitId'])!==this[_0x52fb25(0x4dc)])return;let _0x3b4954=_0x591798;if(_0x3b4954['id']===_0x1d1bc4[_0x52fb25(0x3ce)]['id']){const _0x5caeb5=_0x3b4954[_0x52fb25(0x208)];_0x3b4954={'id':_0x1d1bc4[_0x52fb25(0x3ce)]['id'],'type':_0x204831[_0x52fb25(0x5d7)][_0x52fb25(0x4f7)],'params':{'unitId':_0x5caeb5['unitId'],'actions':_0x5caeb5[_0x52fb25(0x349)],'textRanges':null}};}const _0x2335eb=this[_0x52fb25(0x357)][_0x52fb25(0x1ec)][_0x52fb25(0x29d)](this[_0x52fb25(0x357)][_0x52fb25(0x1ec)][_0x52fb25(0x37e)]()['COMPRESS_MUTATION_SEND'])([_0x3b4954],null)||[_0x3b4954];this['_onLocalMutation'](_0x2335eb[0x0]);})),_0x519629;}},_0x52f4d9[_0x5ebc5d(0x4de)]=_0x45bf96([_0x337ade(0x3,_0x204831[_0x5ebc5d(0x5cf)](_0x204831[_0x5ebc5d(0x28a)])),_0x337ade(0x4,_0x204831[_0x5ebc5d(0x5cf)](_0x52f4d9[_0x5ebc5d(0x44b)])),_0x337ade(0x5,_0x204831[_0x5ebc5d(0x5cf)](_0x292f17['CompressMutationService'])),_0x337ade(0x6,_0x204831[_0x5ebc5d(0x5cf)](_0x204831[_0x5ebc5d(0x2f5)])),_0x337ade(0x7,_0x204831[_0x5ebc5d(0x5cf)](_0x292f17[_0x5ebc5d(0x55a)])),_0x337ade(0x8,_0x204831[_0x5ebc5d(0x5cf)](_0x2435e3[_0x5ebc5d(0x355)])),_0x337ade(0x9,_0x204831[_0x5ebc5d(0x5cf)](_0x4065da)),_0x337ade(0xa,_0x204831[_0x5ebc5d(0x5cf)](_0x21c497)),_0x337ade(0xb,_0x204831['Inject'](_0x3c4160)),_0x337ade(0xc,_0x204831[_0x5ebc5d(0x4a5)]),_0x337ade(0xd,_0x204831[_0x5ebc5d(0x2de)]),_0x337ade(0xe,_0x1e1361[_0x5ebc5d(0x544)]),_0x337ade(0xf,_0x204831[_0x5ebc5d(0x57a)]),_0x337ade(0x10,_0x204831[_0x5ebc5d(0x39e)](_0x4bdb01))],_0x52f4d9[_0x5ebc5d(0x4de)]),_0x52f4d9[_0x5ebc5d(0x4d7)]=class extends _0x52f4d9['CollaborationEntity']{constructor(_0x311003,_0x4b85cf,_0x17ff23,_0x462568,_0x1744e2,_0x19d42e,_0x23277,_0x1a3052,_0x48003a,_0x2f1adb,_0x501c2a,_0x46d480,_0x17de08,_0x6c8e2b){const _0x1de38f=_0x5ebc5d;super(_0x311003,_0x17ff23,_0x4b85cf,_0x462568,_0x1744e2,_0x19d42e,_0x23277,_0x1a3052,_0x2f1adb,_0x501c2a,_0x46d480,_0x17de08,_0x6c8e2b),this[_0x1de38f(0x4dc)]=_0x311003,this[_0x1de38f(0x28e)]=_0x4b85cf,this[_0x1de38f(0x2d6)]=_0x48003a;}[_0x5ebc5d(0x488)](){const _0x5f043c=_0x5ebc5d,_0x4ad40b=super[_0x5f043c(0x488)]();return _0x4ad40b[_0x5f043c(0x5ab)]=_0x5a8f2d=>this[_0x5f043c(0x2d6)][_0x5f043c(0x4aa)](_0x5a8f2d),_0x4ad40b;}async[_0x5ebc5d(0x411)](){const _0xe673da=_0x5ebc5d,_0x1271a6=await super[_0xe673da(0x411)]();return this[_0xe673da(0x382)](this[_0xe673da(0x5f3)][_0xe673da(0x3b3)]((_0x400406,_0x5c7efd)=>{const _0x4226ee=_0xe673da;if(_0x400406[_0x4226ee(0x28e)]!==_0x204831[_0x4226ee(0x5d7)]['MUTATION']||_0x5c7efd!=null&&_0x5c7efd[_0x4226ee(0x381)]||_0x5c7efd!=null&&_0x5c7efd[_0x4226ee(0x47d)])return;const _0x3519a=_0x400406['params'];if((_0x3519a==null?void 0x0:_0x3519a[_0x4226ee(0x52a)])!==this['unitID'])return;const _0x53b18b=_0x400406,_0x5a5222=this[_0x4226ee(0x357)][_0x4226ee(0x1ec)][_0x4226ee(0x29d)](this[_0x4226ee(0x357)][_0x4226ee(0x1ec)][_0x4226ee(0x37e)]()[_0x4226ee(0x23a)])([_0x53b18b],null)||[_0x53b18b];this['_onLocalMutation'](_0x5a5222[0x0]);})),_0x1271a6;}},_0x52f4d9['SheetCollaborationEntity']=_0x45bf96([_0x337ade(0x3,_0x204831[_0x5ebc5d(0x5cf)](_0x204831[_0x5ebc5d(0x28a)])),_0x337ade(0x4,_0x204831[_0x5ebc5d(0x5cf)](_0x52f4d9[_0x5ebc5d(0x44b)])),_0x337ade(0x5,_0x204831[_0x5ebc5d(0x5cf)](_0x292f17[_0x5ebc5d(0x510)])),_0x337ade(0x6,_0x204831[_0x5ebc5d(0x5cf)](_0x204831[_0x5ebc5d(0x2f5)])),_0x337ade(0x7,_0x204831[_0x5ebc5d(0x5cf)](_0x292f17[_0x5ebc5d(0x55a)])),_0x337ade(0x8,_0x204831[_0x5ebc5d(0x5cf)](_0x59f474)),_0x337ade(0x9,_0x204831[_0x5ebc5d(0x4a5)]),_0x337ade(0xa,_0x204831[_0x5ebc5d(0x2de)]),_0x337ade(0xb,_0x1e1361['IMessageService']),_0x337ade(0xc,_0x204831['IPermissionService']),_0x337ade(0xd,_0x204831[_0x5ebc5d(0x39e)](_0x4bdb01))],_0x52f4d9['SheetCollaborationEntity']);var _0x5b7dea=Object[_0x5ebc5d(0x552)],_0x2da2ba=Object[_0x5ebc5d(0x38b)],_0x24afe8=(_0x5ca721,_0x2662a1,_0xfb0e8c,_0x8fab21)=>{const _0x480c50=_0x5ebc5d;for(var _0x11e698=_0x8fab21>0x1?void 0x0:_0x8fab21?_0x2da2ba(_0x2662a1,_0xfb0e8c):_0x2662a1,_0x47fd2c=_0x5ca721[_0x480c50(0x522)]-0x1,_0x3016b5;_0x47fd2c>=0x0;_0x47fd2c--)(_0x3016b5=_0x5ca721[_0x47fd2c])&&(_0x11e698=(_0x8fab21?_0x3016b5(_0x2662a1,_0xfb0e8c,_0x11e698):_0x3016b5(_0x11e698))||_0x11e698);return _0x8fab21&&_0x11e698&&_0x5b7dea(_0x2662a1,_0xfb0e8c,_0x11e698),_0x11e698;},_0x10c0d9=(_0x2965f6,_0x5a41c3)=>(_0x7909ab,_0x383c21)=>_0x5a41c3(_0x7909ab,_0x383c21,_0x2965f6);_0x52f4d9['CollaborationController']=class extends _0x204831[_0x5ebc5d(0x3e5)]{constructor(_0x4c0da1,_0x332629,_0x64aa9a){const _0x37af21=_0x5ebc5d;super(),_0x3d4e20(this,'_entities',new Map()),_0x3d4e20(this,_0x37af21(0x475),new _0x2ea3f3[(_0x37af21(0x31a))]()),(this['_injector']=_0x4c0da1,this[_0x37af21(0x5ac)]=_0x332629,this[_0x37af21(0x48f)]=_0x64aa9a,this[_0x37af21(0x411)]());}[_0x5ebc5d(0x2dd)](){const _0x4aa543=_0x5ebc5d;super[_0x4aa543(0x2dd)](),this['_entities'][_0x4aa543(0x394)](_0x5a44a2=>_0x5a44a2['dispose']()),this[_0x4aa543(0x521)]['clear']();}[_0x5ebc5d(0x59e)](_0x4ac5f7){const _0x264aaf=_0x5ebc5d;var _0x4c4f4c;return(_0x4c4f4c=this[_0x264aaf(0x521)][_0x264aaf(0x222)](_0x4ac5f7))!=null?_0x4c4f4c:null;}[_0x5ebc5d(0x265)](_0x247f37){const _0x5a479f=_0x5ebc5d,_0x2c7a3a=this[_0x5a479f(0x59e)](_0x247f37);return _0x2c7a3a?_0x2ea3f3['of'](_0x2c7a3a):this['_entityInit$'][_0x5a479f(0x30d)](_0x452c71[_0x5a479f(0x4ea)](_0x2820cc=>_0x2820cc[_0x5a479f(0x4dc)]===_0x247f37));}[_0x5ebc5d(0x411)](){const _0x284978=_0x5ebc5d;this[_0x284978(0x48f)][_0x284978(0x39d)](_0x204831[_0x284978(0x49b)][_0x284978(0x49c)])[_0x284978(0x30d)](_0x2ea3f3[_0x284978(0x31f)](this[_0x284978(0x56d)]),_0x452c71[_0x284978(0x509)](0x10))['subscribe'](async _0x7351e8=>{const _0x8eec45=_0x284978,_0x7d0de5=_0x7351e8['getUnitId'](),_0x1d34b7=await this['_startCollaboration'](_0x7d0de5,_0x38b124['UNIVER_SHEET']);this[_0x8eec45(0x521)][_0x8eec45(0x5a4)](_0x7d0de5,_0x1d34b7);}),this['_univerInstanceService'][_0x284978(0x39d)](_0x204831[_0x284978(0x49b)][_0x284978(0x3ef)])[_0x284978(0x30d)](_0x2ea3f3['takeUntil'](this['dispose$']),_0x452c71['delay'](0x10))[_0x284978(0x30d)](_0x452c71['filter'](_0x107070=>!_0x107070[_0x284978(0x34b)]()[_0x284978(0x583)]('__')))[_0x284978(0x2e1)](async _0x2c0531=>{const _0x46df7e=_0x284978,_0x18b601=_0x2c0531[_0x46df7e(0x34b)](),_0x4bad2a=await this[_0x46df7e(0x39f)](_0x18b601,_0x38b124[_0x46df7e(0x3ef)]);this[_0x46df7e(0x521)][_0x46df7e(0x5a4)](_0x18b601,_0x4bad2a);}),_0x2ea3f3[_0x284978(0x559)](this[_0x284978(0x48f)][_0x284978(0x496)](_0x204831[_0x284978(0x49b)][_0x284978(0x49c)]),this['_univerInstanceService'][_0x284978(0x496)](_0x204831[_0x284978(0x49b)]['UNIVER_DOC']))[_0x284978(0x30d)](_0x2ea3f3[_0x284978(0x31f)](this[_0x284978(0x56d)]))[_0x284978(0x2e1)](_0x4083f1=>{const _0x53388e=_0x284978,_0x3ac6aa=_0x4083f1[_0x53388e(0x34b)](),_0x5c2ae2=this[_0x53388e(0x521)]['get'](_0x3ac6aa);_0x5c2ae2&&(_0x5c2ae2[_0x53388e(0x2dd)](),this[_0x53388e(0x521)]['delete'](_0x3ac6aa));});}async[_0x5ebc5d(0x39f)](_0x5572ae,_0x384953){const _0x4bc314=_0x5ebc5d,_0x5de700=await this['_collabSessionService'][_0x4bc314(0x4ed)](_0x5572ae),_0x34780c=this[_0x4bc314(0x60c)][_0x4bc314(0x3c9)](this[_0x4bc314(0x307)](_0x384953),_0x5572ae,_0x384953,_0x5de700);return await _0x34780c[_0x4bc314(0x4ff)](),this[_0x4bc314(0x475)][_0x4bc314(0x50a)](_0x34780c),_0x34780c;}[_0x5ebc5d(0x307)](_0x2c621e){const _0x1d8cc7=_0x5ebc5d;switch(_0x2c621e){case _0x38b124[_0x1d8cc7(0x3ef)]:return _0x52f4d9[_0x1d8cc7(0x4de)];case _0x38b124[_0x1d8cc7(0x49c)]:return _0x52f4d9[_0x1d8cc7(0x4d7)];default:throw new Error(_0x1d8cc7(0x207)+_0x2c621e);}}},_0x52f4d9[_0x5ebc5d(0x558)]=_0x24afe8([_0x10c0d9(0x0,_0x204831[_0x5ebc5d(0x5cf)](_0x204831['Injector'])),_0x10c0d9(0x1,_0x204831[_0x5ebc5d(0x5cf)](_0x52f4d9[_0x5ebc5d(0x31c)])),_0x10c0d9(0x2,_0x204831['IUniverInstanceService'])],_0x52f4d9[_0x5ebc5d(0x558)]);const _0x4905e6=[_0x5ebc5d(0x2e4),_0x5ebc5d(0x549),_0x5ebc5d(0x5fe),_0x5ebc5d(0x294),_0x5ebc5d(0x2e8),_0x5ebc5d(0x4f6)];class _0x225093 extends _0x204831[_0x5ebc5d(0x3f5)]{constructor(){const _0x1e05cf=_0x5ebc5d;super(...arguments),_0x3d4e20(this,_0x1e05cf(0x541),new Map()),_0x3d4e20(this,'_colorIndex',0x0);}[_0x5ebc5d(0x493)](_0xbb9600){const _0xe20f9f=_0x5ebc5d;if(this['_assignedColors'][_0xe20f9f(0x4ee)](_0xbb9600))return this[_0xe20f9f(0x541)][_0xe20f9f(0x222)](_0xbb9600);const _0x4c66b3=_0x4905e6[this[_0xe20f9f(0x4cd)]];return this[_0xe20f9f(0x4cd)]=(this[_0xe20f9f(0x4cd)]+0x1)%_0x4905e6[_0xe20f9f(0x522)],this[_0xe20f9f(0x541)][_0xe20f9f(0x5a4)](_0xbb9600,_0x4c66b3),_0x4c66b3;}}var _0xc370c5=Object['defineProperty'],_0x1d7ffd=Object['getOwnPropertyDescriptor'],_0x3120c4=(_0xea5058,_0x476b16,_0xad238f,_0x426dea)=>{const _0x209233=_0x5ebc5d;for(var _0x5cc7cc=_0x426dea>0x1?void 0x0:_0x426dea?_0x1d7ffd(_0x476b16,_0xad238f):_0x476b16,_0x48d39e=_0xea5058[_0x209233(0x522)]-0x1,_0x16515d;_0x48d39e>=0x0;_0x48d39e--)(_0x16515d=_0xea5058[_0x48d39e])&&(_0x5cc7cc=(_0x426dea?_0x16515d(_0x476b16,_0xad238f,_0x5cc7cc):_0x16515d(_0x5cc7cc))||_0x5cc7cc);return _0x426dea&&_0x5cc7cc&&_0xc370c5(_0x476b16,_0xad238f,_0x5cc7cc),_0x5cc7cc;},_0x43a0c0=(_0x369e76,_0x339f2c)=>(_0x366997,_0x8d1375)=>_0x339f2c(_0x366997,_0x8d1375,_0x369e76);const _0x2beace=0x12c,_0x44b0d0=0x64;let _0x1f4fb7=class extends _0x204831[_0x5ebc5d(0x3e5)]{constructor(_0x1954c5,_0x586327,_0x45815d,_0x5d3de3,_0x1ad7bf,_0x1bde1e,_0x5d85eb,_0x43dc69,_0xa19466){const _0x36e479=_0x5ebc5d;super(),_0x3d4e20(this,'_online',!0x1),_0x3d4e20(this,_0x36e479(0x411),!0x1),_0x3d4e20(this,_0x36e479(0x5d3),new _0x2ea3f3['BehaviorSubject'](new Map())),_0x3d4e20(this,_0x36e479(0x1f5),this[_0x36e479(0x5d3)][_0x36e479(0x4f3)]()),_0x3d4e20(this,'_roomMembers$',new _0x2ea3f3['BehaviorSubject']([])),_0x3d4e20(this,_0x36e479(0x1fe),this[_0x36e479(0x4d6)][_0x36e479(0x30d)](_0x2ea3f3['debounceTime'](_0x2beace))),_0x3d4e20(this,_0x36e479(0x5d2),_0x204831['debounce'](_0x2def37=>{const _0x1a0106=_0x36e479,_0x51d97b={'eventID':_0x292f17[_0x1a0106(0x351)][_0x1a0106(0x550)],'data':{'unitID':this[_0x1a0106(0x4dc)],'memberID':this[_0x1a0106(0x5ba)][_0x1a0106(0x591)](),'selection':_0x41efd3(_0x2def37)}};this[_0x1a0106(0x5ba)]['send'](_0x51d97b,this[_0x1a0106(0x4dc)]);},_0x44b0d0)),(this['unitID']=_0x1954c5,this[_0x36e479(0x5ba)]=_0x586327,this['_injector']=_0x45815d,this[_0x36e479(0x2d3)]=_0x5d3de3,this[_0x36e479(0x5f6)]=_0x1ad7bf,this[_0x36e479(0x5c1)]=_0x1bde1e,this[_0x36e479(0x4d9)]=_0x5d85eb,this[_0x36e479(0x48f)]=_0x43dc69,this[_0x36e479(0x5f3)]=_0xa19466);}get[_0x5ebc5d(0x586)](){const _0x354ace=_0x5ebc5d;return this[_0x354ace(0x5d3)][_0x354ace(0x55d)]();}get[_0x5ebc5d(0x362)](){const _0x9b9b43=_0x5ebc5d;return this[_0x9b9b43(0x4d6)][_0x9b9b43(0x55d)]();}['dispose'](){const _0x2b8ff3=_0x5ebc5d;super['dispose'](),this[_0x2b8ff3(0x5d3)][_0x2b8ff3(0x50a)](new Map()),this[_0x2b8ff3(0x5d3)][_0x2b8ff3(0x221)](),this[_0x2b8ff3(0x4d6)][_0x2b8ff3(0x50a)]([]),this[_0x2b8ff3(0x4d6)][_0x2b8ff3(0x221)]();}[_0x5ebc5d(0x4ff)](){const _0x5b4a5b=_0x5ebc5d;this[_0x5b4a5b(0x411)]||(this['_init']=!0x0,this[_0x5b4a5b(0x5ba)][_0x5b4a5b(0x229)]['pipe'](_0x2ea3f3[_0x5b4a5b(0x31f)](this[_0x5b4a5b(0x56d)]))[_0x5b4a5b(0x2e1)](_0x4e25bb=>{const _0x2af870=_0x5b4a5b;_0x4e25bb===_0x52ce60[_0x2af870(0x292)]?this[_0x2af870(0x3ca)]():this[_0x2af870(0x445)]();}),this[_0x5b4a5b(0x5ba)]['event$'][_0x5b4a5b(0x30d)](_0x2ea3f3[_0x5b4a5b(0x31f)](this[_0x5b4a5b(0x56d)]))[_0x5b4a5b(0x2e1)](_0x11cfb5=>{const _0x3e558c=_0x5b4a5b,_0x1679ec=_0x11cfb5['eventID'];_0x1679ec===_0x292f17['CollaborationEvent'][_0x3e558c(0x550)]&&this['_onCursorUpdate'](_0x11cfb5),_0x1679ec===_0x292f17[_0x3e558c(0x351)][_0x3e558c(0x279)]&&this[_0x3e558c(0x4e7)](_0x11cfb5);}),this[_0x5b4a5b(0x382)](this[_0x5b4a5b(0x5f3)][_0x5b4a5b(0x3b3)](_0x1ca07=>{const _0x16454f=_0x5b4a5b,_0x33849e=_0x1ca07['params'];_0x33849e!=null&&this[_0x16454f(0x5d5)]&&_0x1ca07['id']===_0x1d1bc4[_0x16454f(0x4b7)]['id']&&_0x33849e[_0x16454f(0x52a)]===this[_0x16454f(0x4dc)]&&_0x33849e[_0x16454f(0x236)]===!0x1&&this[_0x16454f(0x5d2)](_0x33849e['ranges']);})),this[_0x5b4a5b(0x5c1)][_0x5b4a5b(0x561)]['pipe'](_0x2ea3f3[_0x5b4a5b(0x31f)](this['dispose$']))[_0x5b4a5b(0x2e1)](_0x2e6c77=>{const _0x22e8b7=_0x5b4a5b;if((_0x2e6c77==null?void 0x0:_0x2e6c77[_0x22e8b7(0x4dc)])!==this[_0x22e8b7(0x4dc)])return;const _0x4c1e0d={'eventID':_0x292f17[_0x22e8b7(0x351)]['UPDATE_CURSOR'],'data':_0x2e6c77};this['_onCursorUpdate'](_0x4c1e0d);}),this[_0x5b4a5b(0x382)](this['_commandService'][_0x5b4a5b(0x3b3)](_0xfbd69b=>{const _0x28cde3=_0x5b4a5b;if(_0xfbd69b[_0x28cde3(0x208)]==null)return;const _0x2bdd2a=_0xfbd69b[_0x28cde3(0x208)];if(_0xfbd69b['id']!==_0x1d1bc4[_0x28cde3(0x3ce)]['id']||_0x2bdd2a[_0x28cde3(0x52a)]!==this['unitID'])return;const _0x2e4b80={'id':_0x28cde3(0x5e2),'params':_0x2bdd2a},_0x400992=this[_0x28cde3(0x586)];for(const [_0x20f168,_0x26d56b]of _0x400992){const _0x37452e={'id':_0x28cde3(0x5e2),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x26d56b[_0x28cde3(0x1fc)]}},_0x234371=this[_0x28cde3(0x4d9)][_0x28cde3(0x5b4)](_0x2e4b80,_0x37452e,!0x1);if(_0x292f17[_0x28cde3(0x3f2)](_0x234371))throw _0x234371[_0x28cde3(0x5c5)];_0x400992[_0x28cde3(0x5a4)](_0x20f168,{..._0x26d56b,'ranges':_0x234371[_0x28cde3(0x3a3)]['params'][_0x28cde3(0x3d7)]});}queueMicrotask(()=>{const _0x48e716=_0x28cde3;this[_0x48e716(0x5d3)]['next'](_0x400992);});})));}['_onCursorUpdate'](_0x5562cb){const _0x5ed2bf=_0x5ebc5d;var _0x1b93b6,_0x3fd720;const {memberID:_0x43ec51,selection:_0x4bc338}=_0x5562cb[_0x5ed2bf(0x5ea)],_0x6374b=_0x13f0b4(_0x4bc338),_0x15d21a=(_0x3fd720=(_0x1b93b6=this[_0x5ed2bf(0x5f6)][_0x5ed2bf(0x409)](this[_0x5ed2bf(0x4dc)],_0x43ec51))==null?void 0x0:_0x1b93b6[_0x5ed2bf(0x51e)])!=null?_0x3fd720:_0x5ed2bf(0x38c),_0x16064d={'color':this[_0x5ed2bf(0x2d3)][_0x5ed2bf(0x493)](_0x43ec51),'name':_0x15d21a,'ranges':_0x6374b},_0x566d84=this[_0x5ed2bf(0x586)];_0x566d84[_0x5ed2bf(0x5a4)](_0x43ec51,_0x16064d),this[_0x5ed2bf(0x5d3)][_0x5ed2bf(0x50a)](_0x566d84);}['_onCursorDelete'](_0x554a6e){const _0x20999f=_0x5ebc5d,{memberID:_0x385cc2}=_0x554a6e[_0x20999f(0x5ea)],_0x2675f6=this['cursorInfo'];_0x2675f6['delete'](_0x385cc2),this[_0x20999f(0x5d3)][_0x20999f(0x50a)](_0x2675f6);}[_0x5ebc5d(0x3ca)](){const _0x277fec=_0x5ebc5d;var _0xdf7eb8;if(this[_0x277fec(0x5d5)]=!0x0,((_0xdf7eb8=this[_0x277fec(0x48f)][_0x277fec(0x3f3)]())==null?void 0x0:_0xdf7eb8['getUnitId']())!==this[_0x277fec(0x4dc)])return;const _0x13262a=this[_0x277fec(0x60c)][_0x277fec(0x222)](_0x1d1bc4[_0x277fec(0x4c9)])['getDocRanges']();Array[_0x277fec(0x255)](_0x13262a)&&_0x13262a[_0x277fec(0x522)]>0x0&&this['_updateLocalCursor'](_0x13262a);}['_toggleOffline'](){const _0x404287=_0x5ebc5d;this[_0x404287(0x5d5)]=!0x1;}};_0x1f4fb7=_0x3120c4([_0x43a0c0(0x2,_0x204831[_0x5ebc5d(0x5cf)](_0x204831[_0x5ebc5d(0x28a)])),_0x43a0c0(0x3,_0x204831[_0x5ebc5d(0x5cf)](_0x225093)),_0x43a0c0(0x4,_0x204831['Inject'](_0x3796d3)),_0x43a0c0(0x5,_0x204831[_0x5ebc5d(0x5cf)](_0x3c4160)),_0x43a0c0(0x6,_0x292f17[_0x5ebc5d(0x446)]),_0x43a0c0(0x7,_0x204831[_0x5ebc5d(0x335)]),_0x43a0c0(0x8,_0x204831[_0x5ebc5d(0x2de)])],_0x1f4fb7);var _0x21695a=Object[_0x5ebc5d(0x552)],_0x2f27b7=Object[_0x5ebc5d(0x38b)],_0x27d656=(_0x313a0c,_0x503100,_0x1106f8,_0x55526d)=>{const _0x1294a0=_0x5ebc5d;for(var _0x32d8df=_0x55526d>0x1?void 0x0:_0x55526d?_0x2f27b7(_0x503100,_0x1106f8):_0x503100,_0x21fb78=_0x313a0c[_0x1294a0(0x522)]-0x1,_0x23859c;_0x21fb78>=0x0;_0x21fb78--)(_0x23859c=_0x313a0c[_0x21fb78])&&(_0x32d8df=(_0x55526d?_0x23859c(_0x503100,_0x1106f8,_0x32d8df):_0x23859c(_0x32d8df))||_0x32d8df);return _0x55526d&&_0x32d8df&&_0x21695a(_0x503100,_0x1106f8,_0x32d8df),_0x32d8df;},_0x38e8d5=(_0x248165,_0x4cdc84)=>(_0x34022a,_0x3e92b)=>_0x4cdc84(_0x34022a,_0x3e92b,_0x248165);const _0x390b14=0x12c,_0x3349a4=0x64,_0x295cf5=()=>{let _0x36236e=[],_0x2e9ae0=!0x1;return _0x5c0e1f=>{_0x36236e['push'](_0x5c0e1f),_0x2e9ae0||(_0x2e9ae0=!0x0,setTimeout(()=>{const _0x1c1f68=_0x1c68;_0x36236e[_0x1c1f68(0x394)](_0x52dd71=>_0x52dd71()),_0x36236e=[],_0x2e9ae0=!0x1;}));};};let _0x17d8e2=class extends _0x204831['RxDisposable']{constructor(_0x1e97d2,_0x4bdb3d,_0x591369,_0x2c5923,_0x3b643f,_0x20f4a7,_0x7868c,_0x4ed1f8){const _0x2845e0=_0x5ebc5d;super(),_0x3d4e20(this,_0x2845e0(0x5d5),!0x1),_0x3d4e20(this,_0x2845e0(0x411),!0x1),_0x3d4e20(this,_0x2845e0(0x5d3),new _0x2ea3f3['BehaviorSubject'](new Map())),_0x3d4e20(this,_0x2845e0(0x1f5),this['_cursorInfo$'][_0x2845e0(0x4f3)]()),_0x3d4e20(this,'_roomMembers$',new _0x2ea3f3[(_0x2845e0(0x565))]([])),_0x3d4e20(this,_0x2845e0(0x1fe),this[_0x2845e0(0x4d6)][_0x2845e0(0x30d)](_0x2ea3f3[_0x2845e0(0x25c)](_0x390b14))),_0x3d4e20(this,_0x2845e0(0x5d2),_0x204831[_0x2845e0(0x406)]((_0x2cd01d,_0x138036)=>{const _0x1ec292=_0x2845e0,_0x51bee6={'eventID':_0x292f17[_0x1ec292(0x351)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x1ec292(0x4dc)],'memberID':this[_0x1ec292(0x5ba)][_0x1ec292(0x591)](),'selection':_0x13853d['serializeRangeWithSheet'](_0x2cd01d,_0x138036[_0x1ec292(0x2b1)])}};this[_0x1ec292(0x5ba)][_0x1ec292(0x433)](_0x51bee6,this['unitID']);},_0x3349a4)),(this['unitID']=_0x1e97d2,this[_0x2845e0(0x5ba)]=_0x4bdb3d,this[_0x2845e0(0x60c)]=_0x591369,this[_0x2845e0(0x2d3)]=_0x2c5923,this[_0x2845e0(0x5f6)]=_0x3b643f,this[_0x2845e0(0x48f)]=_0x20f4a7,this['_commandService']=_0x7868c,this[_0x2845e0(0x3c5)]=_0x4ed1f8);}get[_0x5ebc5d(0x586)](){const _0x4bfeaf=_0x5ebc5d;return this[_0x4bfeaf(0x5d3)][_0x4bfeaf(0x55d)]();}get[_0x5ebc5d(0x362)](){const _0x149d4b=_0x5ebc5d;return this['_roomMembers$'][_0x149d4b(0x55d)]();}['dispose'](){const _0x2afc38=_0x5ebc5d;super[_0x2afc38(0x2dd)](),this[_0x2afc38(0x5d3)][_0x2afc38(0x50a)](new Map()),this[_0x2afc38(0x5d3)][_0x2afc38(0x221)](),this[_0x2afc38(0x4d6)][_0x2afc38(0x50a)]([]),this['_roomMembers$'][_0x2afc38(0x221)]();}['init'](){const _0xcd908d=_0x5ebc5d;this[_0xcd908d(0x411)]||(this['_init']=!0x0,this['_session']['sessionStatus$']['pipe'](_0x2ea3f3['takeUntil'](this[_0xcd908d(0x56d)]))[_0xcd908d(0x2e1)](_0x12c6cf=>{const _0x2de16f=_0xcd908d;_0x12c6cf===_0x52ce60['ONLINE']?this[_0x2de16f(0x3ca)]():this['_toggleOffline']();}),this[_0xcd908d(0x5ba)]['event$'][_0xcd908d(0x30d)](_0x2ea3f3[_0xcd908d(0x31f)](this[_0xcd908d(0x56d)]))[_0xcd908d(0x2e1)](_0x28ac25=>{const _0xe505d6=_0xcd908d,_0x369457=_0x28ac25['eventID'];_0x369457===_0x292f17[_0xe505d6(0x351)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x28ac25),_0x369457===_0x292f17[_0xe505d6(0x351)][_0xe505d6(0x279)]&&this['_onCursorDelete'](_0x28ac25);}),this[_0xcd908d(0x1e7)](),this['disposeWithMe'](this[_0xcd908d(0x5f3)][_0xcd908d(0x3b3)](_0x4478fc=>{const _0x372cbb=_0xcd908d;if(this[_0x372cbb(0x5d5)]&&_0x4478fc['id']===_0x2850a0[_0x372cbb(0x53f)]['id']&&_0x4478fc['params'][_0x372cbb(0x52a)]===this[_0x372cbb(0x4dc)]){const _0x31faaa=_0x4478fc[_0x372cbb(0x208)];this[_0x372cbb(0x5d2)](_0x31faaa[_0x372cbb(0x44d)],_0x31faaa[_0x372cbb(0x4ec)][0x0]);}})));}['_onCursorUpdate'](_0x3c2c02){const _0x384294=_0x5ebc5d;var _0x4bd024,_0x46b7b8;const {memberID:_0x51d30f,selection:_0x4e9b66}=_0x3c2c02[_0x384294(0x5ea)],{sheetName:_0x5bbea1,range:_0x41047c}=_0x13853d[_0x384294(0x3ea)](_0x4e9b66),_0x374230={'name':(_0x46b7b8=(_0x4bd024=this[_0x384294(0x5f6)][_0x384294(0x409)](this[_0x384294(0x4dc)],_0x51d30f))==null?void 0x0:_0x4bd024[_0x384294(0x51e)])!=null?_0x46b7b8:'Unknown\x20user','range':this[_0x384294(0x3dc)](_0x5bbea1,_0x41047c),'sheetID':_0x5bbea1,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x51d30f),'selection':_0x4e9b66},_0x1e8054=this[_0x384294(0x586)];_0x1e8054[_0x384294(0x5a4)](_0x51d30f,_0x374230),this[_0x384294(0x5d3)]['next'](_0x1e8054);}[_0x5ebc5d(0x4e7)](_0x44a365){const _0x4622e4=_0x5ebc5d,{memberID:_0x44a064}=_0x44a365[_0x4622e4(0x5ea)],_0x2fcfdf=this[_0x4622e4(0x586)];_0x2fcfdf[_0x4622e4(0x51a)](_0x44a064),this[_0x4622e4(0x5d3)][_0x4622e4(0x50a)](_0x2fcfdf);}[_0x5ebc5d(0x3dc)](_0x388a45,_0x3295f2){const _0x1c9aba=_0x5ebc5d;var _0x199aa4,_0x28dec9;const _0x369f8d=(_0x28dec9=(_0x199aa4=this[_0x1c9aba(0x48f)][_0x1c9aba(0x4c1)](this[_0x1c9aba(0x4dc)]))==null?void 0x0:_0x199aa4['getSheetBySheetId'](_0x388a45))==null?void 0x0:_0x28dec9[_0x1c9aba(0x2cb)]();return(_0x369f8d==null?void 0x0:_0x369f8d[_0x1c9aba(0x5ce)](_0x50acdf=>_0x204831[_0x1c9aba(0x556)][_0x1c9aba(0x5f4)](_0x50acdf,_0x3295f2)))||_0x3295f2;}['_onRefRangeChange'](){const _0x36cd52=_0x5ebc5d,_0x21539b=new _0x204831[(_0x36cd52(0x1fd))](),_0x19840d=_0x295cf5(),_0x19cf31=()=>{const _0x128624=_0x36cd52;_0x21539b['dispose']();const _0x24b60b=(_0x42fed6,_0x30d1c5,_0x286ab5,_0x3df4a0)=>{const _0x1215ee=_0x1c68;let _0x2b764e=[];switch(_0x42fed6['id']){case _0x2850a0[_0x1215ee(0x580)][_0x1215ee(0x420)]:{_0x2b764e=_0x2850a0['handleDeleteRangeMoveLeft'](_0x42fed6,_0x3df4a0);break;}case _0x2850a0[_0x1215ee(0x580)][_0x1215ee(0x4d4)]:{_0x2b764e=_0x2850a0[_0x1215ee(0x49f)](_0x42fed6,_0x3df4a0);break;}case _0x2850a0[_0x1215ee(0x580)][_0x1215ee(0x2b7)]:{_0x2b764e=_0x2850a0[_0x1215ee(0x404)](_0x42fed6,_0x3df4a0);break;}case _0x2850a0['EffectRefRangId'][_0x1215ee(0x3f0)]:{_0x2b764e=_0x2850a0['handleInsertRangeMoveDown'](_0x42fed6,_0x3df4a0);break;}case _0x2850a0['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x2b764e=_0x2850a0[_0x1215ee(0x4d1)](_0x42fed6,_0x3df4a0);break;}case _0x2850a0[_0x1215ee(0x580)][_0x1215ee(0x319)]:{_0x2b764e=_0x2850a0['handleInsertRow'](_0x42fed6,_0x3df4a0);break;}case _0x2850a0['EffectRefRangId'][_0x1215ee(0x54a)]:{_0x2b764e=_0x2850a0[_0x1215ee(0x399)](_0x42fed6,_0x3df4a0);break;}case _0x2850a0[_0x1215ee(0x580)][_0x1215ee(0x212)]:{_0x2b764e=_0x2850a0[_0x1215ee(0x21d)](_0x42fed6,_0x3df4a0);break;}case _0x2850a0['EffectRefRangId']['RemoveRowCommandId']:{_0x2b764e=_0x2850a0[_0x1215ee(0x4a2)](_0x42fed6,_0x3df4a0);break;}}const _0x3a3d90=_0x2850a0[_0x1215ee(0x4e8)](_0x2b764e,_0x3df4a0),_0x44e40b=this[_0x1215ee(0x586)][_0x1215ee(0x222)](_0x30d1c5);if(_0x44e40b&&_0x3a3d90){const _0x47d796={..._0x44e40b,'range':_0x3a3d90};this[_0x1215ee(0x586)][_0x1215ee(0x5a4)](_0x30d1c5,_0x47d796),_0x19840d(()=>{const _0x2cd7f3=_0x1215ee,_0x25af1a=this[_0x2cd7f3(0x3c5)][_0x2cd7f3(0x3e4)](_0x3a3d90,_0x2663dd=>(_0x25af1a[_0x2cd7f3(0x2dd)](),_0x24b60b(_0x2663dd,_0x30d1c5,_0x286ab5,_0x3a3d90)));_0x21539b['add'](_0x25af1a);});}return{'redos':[],'undos':[]};};this[_0x128624(0x586)][_0x128624(0x394)]((_0x308427,_0x36ab0a)=>{const _0x5bf49a=_0x128624,{range:_0x5835c6,sheetID:_0x3b1089}=_0x308427,_0x3c2d44=this[_0x5bf49a(0x3c5)][_0x5bf49a(0x3e4)](_0x5835c6,_0x233d2c=>(_0x3c2d44[_0x5bf49a(0x2dd)](),_0x24b60b(_0x233d2c,_0x36ab0a,_0x3b1089,_0x5835c6)));_0x21539b[_0x5bf49a(0x329)](_0x3c2d44);});};this[_0x36cd52(0x382)](_0x204831['toDisposable'](this[_0x36cd52(0x5d3)][_0x36cd52(0x2e1)](()=>{_0x19cf31();})));}[_0x5ebc5d(0x3ca)](){const _0x18fd39=_0x5ebc5d;var _0x542896,_0x323853;if(this[_0x18fd39(0x5d5)]=!0x0,((_0x542896=this['_univerInstanceService'][_0x18fd39(0x3f3)]())==null?void 0x0:_0x542896['getUnitId']())!==this['unitID'])return;const _0x27dcc2=(_0x323853=this[_0x18fd39(0x60c)][_0x18fd39(0x222)](_0x2850a0[_0x18fd39(0x220)])[_0x18fd39(0x384)]())==null?void 0x0:_0x323853[0x0],_0x59cf7b=this[_0x18fd39(0x48f)]['getCurrentUnitForType'](_0x204831[_0x18fd39(0x49b)]['UNIVER_SHEET'])[_0x18fd39(0x4d8)]();_0x27dcc2&&_0x59cf7b&&this[_0x18fd39(0x5d2)](_0x59cf7b[_0x18fd39(0x245)](),_0x27dcc2);}['_toggleOffline'](){this['_online']=!0x1;}};_0x17d8e2=_0x27d656([_0x38e8d5(0x2,_0x204831[_0x5ebc5d(0x5cf)](_0x204831[_0x5ebc5d(0x28a)])),_0x38e8d5(0x3,_0x204831[_0x5ebc5d(0x5cf)](_0x225093)),_0x38e8d5(0x4,_0x204831[_0x5ebc5d(0x5cf)](_0x3796d3)),_0x38e8d5(0x5,_0x204831[_0x5ebc5d(0x335)]),_0x38e8d5(0x6,_0x204831['ICommandService']),_0x38e8d5(0x7,_0x204831[_0x5ebc5d(0x5cf)](_0x2850a0[_0x5ebc5d(0x619)]))],_0x17d8e2);var _0x42fa03=Object[_0x5ebc5d(0x552)],_0x176dab=Object[_0x5ebc5d(0x38b)],_0x5e506c=(_0xefc4e0,_0x1606c1,_0x208e10,_0x197e68)=>{for(var _0x27f78f=_0x197e68>0x1?void 0x0:_0x197e68?_0x176dab(_0x1606c1,_0x208e10):_0x1606c1,_0x4e8a86=_0xefc4e0['length']-0x1,_0x29e032;_0x4e8a86>=0x0;_0x4e8a86--)(_0x29e032=_0xefc4e0[_0x4e8a86])&&(_0x27f78f=(_0x197e68?_0x29e032(_0x1606c1,_0x208e10,_0x27f78f):_0x29e032(_0x27f78f))||_0x27f78f);return _0x197e68&&_0x27f78f&&_0x42fa03(_0x1606c1,_0x208e10,_0x27f78f),_0x27f78f;},_0x21a0cc=(_0x4e0111,_0x102632)=>(_0x5227fa,_0x1b6ba8)=>_0x102632(_0x5227fa,_0x1b6ba8,_0x4e0111);let _0x55aa83=class extends _0x204831[_0x5ebc5d(0x3e5)]{constructor(_0x4b86bc,_0x41a561,_0x21489e){const _0x234ba5=_0x5ebc5d;super(),_0x3d4e20(this,'_entities',new Map()),_0x3d4e20(this,'_entityInit$',new _0x2ea3f3[(_0x234ba5(0x31a))]()),(this[_0x234ba5(0x48f)]=_0x4b86bc,this['_injector']=_0x41a561,this['_collabSessionService']=_0x21489e,this[_0x234ba5(0x411)]());}[_0x5ebc5d(0x2dd)](){const _0xa8a21c=_0x5ebc5d;super['dispose'](),this['_entityInit$']['complete'](),this[_0xa8a21c(0x521)][_0xa8a21c(0x394)](_0x493e33=>_0x493e33[_0xa8a21c(0x2dd)]());}[_0x5ebc5d(0x4bd)](_0x3114c1){const _0x147c91=_0x5ebc5d;return this[_0x147c91(0x521)][_0x147c91(0x4ee)](_0x3114c1)?this[_0x147c91(0x521)][_0x147c91(0x222)](_0x3114c1)['cursorInfo$']:this[_0x147c91(0x475)][_0x147c91(0x30d)](_0x2ea3f3[_0x147c91(0x4ea)](_0x4c24e0=>_0x4c24e0[_0x147c91(0x4dc)]===_0x3114c1),_0x2ea3f3[_0x147c91(0x572)](_0x495464=>_0x495464[_0x147c91(0x1f5)]));}[_0x5ebc5d(0x411)](){const _0x5d49a6=_0x5ebc5d;this[_0x5d49a6(0x48f)][_0x5d49a6(0x39d)](_0x204831[_0x5d49a6(0x49b)][_0x5d49a6(0x49c)])[_0x5d49a6(0x30d)](_0x2ea3f3[_0x5d49a6(0x31f)](this['dispose$']))[_0x5d49a6(0x2e1)](async _0x14242f=>{const _0x4a4173=_0x5d49a6,_0x6edf19=_0x14242f[_0x4a4173(0x34b)](),_0x1dcb0b=await this[_0x4a4173(0x555)](_0x6edf19);this['_entityInit$'][_0x4a4173(0x50a)](_0x1dcb0b),this[_0x4a4173(0x521)][_0x4a4173(0x5a4)](_0x6edf19,_0x1dcb0b);}),this[_0x5d49a6(0x48f)][_0x5d49a6(0x39d)](_0x204831[_0x5d49a6(0x49b)][_0x5d49a6(0x3ef)])['pipe'](_0x2ea3f3[_0x5d49a6(0x31f)](this[_0x5d49a6(0x56d)]))[_0x5d49a6(0x30d)](_0x2ea3f3[_0x5d49a6(0x4ea)](_0x50e2a7=>!_0x50e2a7[_0x5d49a6(0x34b)]()[_0x5d49a6(0x583)]('__')))[_0x5d49a6(0x2e1)](async _0x4f78cb=>{const _0x59c7ea=_0x5d49a6,_0x4ecaca=_0x4f78cb[_0x59c7ea(0x34b)](),_0x2188ac=await this['_startDocCollabCursor'](_0x4ecaca);this[_0x59c7ea(0x475)][_0x59c7ea(0x50a)](_0x2188ac),this['_entities']['set'](_0x4ecaca,_0x2188ac);}),_0x2ea3f3[_0x5d49a6(0x559)](this[_0x5d49a6(0x48f)]['getTypeOfUnitDisposed$'](_0x204831[_0x5d49a6(0x49b)]['UNIVER_DOC']),this['_univerInstanceService'][_0x5d49a6(0x496)](_0x204831[_0x5d49a6(0x49b)]['UNIVER_SHEET']))['pipe'](_0x2ea3f3['takeUntil'](this[_0x5d49a6(0x56d)]))[_0x5d49a6(0x2e1)](_0x5f1f2f=>{const _0x5b5314=_0x5d49a6,_0x54bbe3=_0x5f1f2f[_0x5b5314(0x34b)](),_0x461ab8=this['_entities'][_0x5b5314(0x222)](_0x54bbe3);_0x461ab8&&(_0x461ab8[_0x5b5314(0x2dd)](),this[_0x5b5314(0x521)][_0x5b5314(0x51a)](_0x54bbe3));});}async[_0x5ebc5d(0x555)](_0x1ba408){const _0x29bc04=_0x5ebc5d,_0x271eac=await this[_0x29bc04(0x5ac)][_0x29bc04(0x4ed)](_0x1ba408),_0x49b8f2=this['_injector'][_0x29bc04(0x3c9)](_0x17d8e2,_0x1ba408,_0x271eac);return _0x49b8f2['init'](),_0x49b8f2;}async[_0x5ebc5d(0x3d3)](_0x15040d){const _0x179868=_0x5ebc5d,_0x16300c=await this[_0x179868(0x5ac)][_0x179868(0x4ed)](_0x15040d),_0x392e6b=this['_injector'][_0x179868(0x3c9)](_0x1f4fb7,_0x15040d,_0x16300c);return _0x392e6b[_0x179868(0x4ff)](),_0x392e6b;}};_0x55aa83=_0x5e506c([_0x21a0cc(0x0,_0x204831[_0x5ebc5d(0x335)]),_0x21a0cc(0x1,_0x204831[_0x5ebc5d(0x5cf)](_0x204831[_0x5ebc5d(0x28a)])),_0x21a0cc(0x2,_0x204831[_0x5ebc5d(0x5cf)](_0x52f4d9[_0x5ebc5d(0x31c)]))],_0x55aa83);const _0x1dd480=0x14,_0xc33a52=0xc8,_0x5160c7=0x4,_0x2ad708=0x5;function _0x4a1705(_0x301b25,_0x5856c4){const _0x16343f=_0x5ebc5d;let {radius:_0x21d154,width:_0x312cc6,height:_0x429aad}=_0x5856c4;_0x21d154=_0x21d154!=null?_0x21d154:0x0,_0x312cc6=_0x312cc6!=null?_0x312cc6:0x1e,_0x429aad=_0x429aad!=null?_0x429aad:0x1e;let _0x1cb266=0x0,_0x33ea31=0x0,_0x3913b4=0x0;_0x1cb266=_0x33ea31=_0x3913b4=Math[_0x16343f(0x40f)](_0x21d154,_0x312cc6/0x2,_0x429aad/0x2),_0x301b25['beginPath'](),_0x301b25[_0x16343f(0x3c8)](_0x1cb266,0x0),_0x301b25[_0x16343f(0x2b4)](_0x312cc6-_0x33ea31,0x0),_0x301b25['arc'](_0x312cc6-_0x33ea31,_0x33ea31,_0x33ea31,Math['PI']*0x3/0x2,0x0,!0x1),_0x301b25[_0x16343f(0x2b4)](_0x312cc6,_0x429aad-_0x3913b4),_0x301b25[_0x16343f(0x262)](_0x312cc6-_0x3913b4,_0x429aad-_0x3913b4,_0x3913b4,0x0,Math['PI']/0x2,!0x1),_0x301b25[_0x16343f(0x2b4)](0x0,_0x429aad),_0x301b25['lineTo'](0x0,_0x1cb266),_0x301b25[_0x16343f(0x262)](_0x1cb266,_0x1cb266,_0x1cb266,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x301b25[_0x16343f(0x4ab)](),_0x5856c4['fill']&&(_0x301b25['save'](),_0x301b25['fillStyle']=_0x5856c4[_0x16343f(0x449)],_0x5856c4[_0x16343f(0x3e9)]===_0x16343f(0x5cd)?_0x301b25[_0x16343f(0x449)](_0x16343f(0x5cd)):_0x301b25[_0x16343f(0x449)](),_0x301b25[_0x16343f(0x4c5)]());}class _0x5d77df extends _0x98dfd7[_0x5ebc5d(0x30a)]{constructor(_0x1b2932,_0x23af20){const _0x656aca=_0x5ebc5d;super(_0x1b2932,_0x23af20),_0x3d4e20(this,_0x656aca(0x59b)),_0x3d4e20(this,_0x656aca(0x533)),(this[_0x656aca(0x59b)]=_0x23af20==null?void 0x0:_0x23af20['color'],this[_0x656aca(0x533)]=_0x23af20==null?void 0x0:_0x23af20[_0x656aca(0x533)]);}static[_0x5ebc5d(0x60b)](_0x27bd6a,_0x53a0c0){const _0x6d56a0=_0x5ebc5d,{text:_0x197707,color:_0x50c219}=_0x53a0c0;_0x27bd6a[_0x6d56a0(0x5d6)](),_0x27bd6a[_0x6d56a0(0x41d)]=_0x6d56a0(0x571);const _0x3c823e=_0x27bd6a['measureText'](_0x197707)[_0x6d56a0(0x5b3)],_0x36c641=Math[_0x6d56a0(0x40f)](_0x3c823e+0x2*_0x5160c7,_0xc33a52);_0x4a1705(_0x27bd6a,{'height':_0x1dd480,'radius':0x4,'width':_0x36c641,'fill':_0x50c219,'evented':!0x1}),_0x27bd6a[_0x6d56a0(0x1e9)]=_0x6d56a0(0x3a5);const _0x5868a1=_0x5160c7,_0x2f074f=_0x1dd480-_0x2ad708,_0x4c366b=_0xc33a52-0x2*_0x5160c7;if(_0x3c823e>_0x4c366b){let _0x19a692='',_0x89650a=0x0;for(const _0x12ea91 of _0x197707){const _0x20ebed=_0x27bd6a[_0x6d56a0(0x4c7)](_0x12ea91)[_0x6d56a0(0x5b3)];if(_0x89650a+_0x20ebed<=_0x4c366b-_0x27bd6a['measureText'](_0x6d56a0(0x5e0))[_0x6d56a0(0x5b3)])_0x19a692+=_0x12ea91,_0x89650a+=_0x20ebed;else{_0x19a692+='...';break;}}_0x27bd6a['fillText'](_0x19a692,_0x5868a1,_0x2f074f);}else _0x27bd6a['fillText'](_0x197707,_0x5868a1,_0x2f074f);_0x27bd6a[_0x6d56a0(0x4c5)]();}[_0x5ebc5d(0x20f)](_0x215bd7){const _0x3307b0=_0x5ebc5d;_0x5d77df[_0x3307b0(0x60b)](_0x215bd7,this);}}const _0x20e522=_0x5ebc5d(0x5f0),_0x472cac=_0x5ebc5d(0x498),_0x4e2f46=_0x5ebc5d(0x56b),_0x376233=0x6,_0x5e6310=1.5,_0x26c49f=0x4,_0x2456cd=1.5,_0x2da79b=_0x5ebc5d(0x5c3);class _0x1ca515{constructor(_0x1248aa,_0x818a44,_0x18a839,_0x30b111){const _0x4b8cc3=_0x5ebc5d;_0x3d4e20(this,'_shapes',[]),_0x3d4e20(this,_0x4b8cc3(0x5c0),null),_0x3d4e20(this,_0x4b8cc3(0x4a1),null),_0x3d4e20(this,_0x4b8cc3(0x213),null),_0x3d4e20(this,_0x4b8cc3(0x588),null),_0x3d4e20(this,'_eventUnsubscribe',null),(this[_0x4b8cc3(0x4a3)]=_0x1248aa,this[_0x4b8cc3(0x503)]=_0x818a44,this[_0x4b8cc3(0x32e)]=_0x18a839,this[_0x4b8cc3(0x2d0)]=_0x30b111,this[_0x4b8cc3(0x249)]());}set['_hover'](_0x58afde){const _0x131dfa=_0x5ebc5d;_0x58afde?(this[_0x131dfa(0x213)]&&this['_anchorDot'][_0x131dfa(0x477)](),this['_textBubble']&&this[_0x131dfa(0x4a1)]['show']()):(this[_0x131dfa(0x213)]&&this[_0x131dfa(0x213)][_0x131dfa(0x497)](),this[_0x131dfa(0x4a1)]&&this[_0x131dfa(0x4a1)][_0x131dfa(0x477)]());}[_0x5ebc5d(0x2dd)](){const _0x50ec76=_0x5ebc5d;for(const _0x2bcadd of this[_0x50ec76(0x20e)])_0x2bcadd[_0x50ec76(0x2dd)]();this[_0x50ec76(0x4a1)]&&this[_0x50ec76(0x4a1)][_0x50ec76(0x2dd)](),this[_0x50ec76(0x213)]&&this[_0x50ec76(0x213)][_0x50ec76(0x2dd)](),this['_anchor']&&this[_0x50ec76(0x5c0)][_0x50ec76(0x2dd)](),this[_0x50ec76(0x359)]&&this[_0x50ec76(0x359)]();}[_0x5ebc5d(0x249)](){const _0x4f905a=_0x5ebc5d;var _0x4a8490;const {_docSkeleton:_0x56eada,_document:_0x5a2f6c}=this,{color:_0x293b5e,name:_0x9cb5d4,ranges:_0x42dd07}=this[_0x4f905a(0x4a3)],_0x30d073=_0x5a2f6c[_0x4f905a(0x599)](),{docsLeft:_0x5c1da7,docsTop:_0x545f3e}=_0x30d073,_0x2d9157=new _0x2435e3['NodePositionConvertToCursor'](_0x30d073,_0x56eada);for(const {startOffset:_0xc54d8b,endOffset:_0x5c21f1,collapsed:_0x2edbe1,isActive:_0x9f561e}of _0x42dd07){const _0x541dc9=_0x56eada[_0x4f905a(0x269)](_0xc54d8b),_0x20ae22=_0x56eada[_0x4f905a(0x269)](_0x5c21f1);if(_0x9f561e){const {contentBoxPointGroup:_0x2ab1a3}=_0x2d9157[_0x4f905a(0x4c2)](_0x20ae22,_0x20ae22);if(_0x2ab1a3['length']===0x0)continue;this[_0x4f905a(0x376)](_0x293b5e,_0x2ab1a3,_0x5c1da7,_0x545f3e,_0x9cb5d4),this[_0x4f905a(0x359)]=this[_0x4f905a(0x577)]();}if(!_0x2edbe1&&_0x541dc9&&_0x20ae22){if(_0x2435e3['isValidRectRange'](_0x541dc9,_0x20ae22)){const _0x23e6aa=new _0x2435e3['NodePositionConvertToRectRange'](_0x30d073,_0x56eada),{pointGroup:_0x34f9a1}=(_0x4a8490=_0x23e6aa['getRangePointData'](_0x541dc9,_0x20ae22))!=null?_0x4a8490:{};if(_0x34f9a1==null||_0x34f9a1[_0x4f905a(0x522)]===0x0)continue;this['_drawRectRange'](_0x293b5e,_0x34f9a1,_0x5c1da7,_0x545f3e);}else{const {contentBoxPointGroup:_0x5323ac}=_0x2d9157['getRangePointData'](_0x541dc9,_0x20ae22);if(_0x5323ac[_0x4f905a(0x522)]===0x0)continue;this[_0x4f905a(0x43b)](_0x293b5e,_0x5323ac,_0x5c1da7,_0x545f3e);}}}}['_drawAnchor'](_0x2efd68,_0x38e750,_0x5c8fa8,_0x5052ad,_0x2720d0){const _0x5f2eea=_0x5ebc5d,_0x3744f8=this[_0x5f2eea(0x472)](_0x38e750),{left:_0x443b5a,top:_0x51d0bd,height:_0x25ed3b}=_0x3744f8,_0x5235b8=this[_0x5f2eea(0x37c)](),_0x367857=_0x2456cd/_0x5235b8,_0x6cd040=new _0x98dfd7[(_0x5f2eea(0x3cb))](_0x20e522+_0x204831['Tools'][_0x5f2eea(0x59c)](_0x376233),{'left':_0x443b5a+_0x5c8fa8-_0x367857,'top':_0x51d0bd+_0x5052ad,'height':_0x25ed3b,'width':_0x5e6310,'fill':_0x2efd68||_0x98dfd7['getColor'](_0x204831[_0x5f2eea(0x5a2)][_0x5f2eea(0x35c)],0x0),'strokeWidth':_0x367857,'stroke':_0x2da79b,'evented':!0x0});this[_0x5f2eea(0x5c0)]=_0x6cd040,this[_0x5f2eea(0x503)][_0x5f2eea(0x4a9)](_0x6cd040,_0x2435e3['TEXT_RANGE_LAYER_INDEX']);const _0x11361f=new _0x98dfd7[(_0x5f2eea(0x3cb))](_0x20e522+_0x204831['Tools'][_0x5f2eea(0x59c)](_0x376233),{'left':_0x443b5a+_0x5c8fa8-_0x367857,'top':_0x51d0bd+_0x5052ad-_0x26c49f/0x2,'height':_0x26c49f,'width':_0x26c49f,'fill':_0x2efd68||_0x98dfd7['getColor'](_0x204831[_0x5f2eea(0x5a2)][_0x5f2eea(0x35c)],0x0),'strokeWidth':0x0,'stroke':_0x2efd68||_0x98dfd7[_0x5f2eea(0x468)](_0x204831[_0x5f2eea(0x5a2)][_0x5f2eea(0x35c)],0x0),'evented':!0x1});this[_0x5f2eea(0x213)]=_0x11361f,this[_0x5f2eea(0x503)][_0x5f2eea(0x4a9)](_0x11361f,_0x2435e3[_0x5f2eea(0x24a)]);const _0xf25465=new _0x5d77df(_0x20e522+_0x204831[_0x5f2eea(0x4b0)][_0x5f2eea(0x59c)](_0x376233),{'left':_0x443b5a+_0x5c8fa8-_0x367857,'top':_0x51d0bd+_0x5052ad-_0x1dd480,'text':_0x2720d0,'color':_0x2efd68});this[_0x5f2eea(0x4a1)]=_0xf25465,this['_scene'][_0x5f2eea(0x4a9)](_0xf25465,_0x2435e3['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}['_handleHover'](){const _0xbc009b=_0x5ebc5d,_0x3f7a19=this[_0xbc009b(0x5c0)]['onPointerEnter$'][_0xbc009b(0x370)](()=>{const _0x2df4be=_0xbc009b;this[_0x2df4be(0x1f6)]=!0x0;}),_0x5ea1c8=this['_anchor'][_0xbc009b(0x3cd)][_0xbc009b(0x370)](()=>{const _0x47f15f=_0xbc009b;this[_0x47f15f(0x588)]&&clearTimeout(this[_0x47f15f(0x588)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x160827=_0xbc009b;_0x3f7a19[_0x160827(0x291)](),_0x5ea1c8['unsubscribe']();};}[_0x5ebc5d(0x43b)](_0xd2d648,_0x30595b,_0x30c370,_0x1909d7){const _0x24ec8a=_0x5ebc5d,_0x3c0a6b=new _0x204831[(_0x24ec8a(0x36a))](_0xd2d648)[_0x24ec8a(0x1fb)](0.2)[_0x24ec8a(0x5cc)](),_0x406067=new _0x98dfd7[(_0x24ec8a(0x440))](_0x472cac+_0x204831[_0x24ec8a(0x4b0)][_0x24ec8a(0x59c)](_0x376233),{'pointsGroup':_0x30595b,'fill':_0x3c0a6b||_0x98dfd7[_0x24ec8a(0x468)](_0x204831[_0x24ec8a(0x5a2)][_0x24ec8a(0x35c)],0.2),'left':_0x30c370,'top':_0x1909d7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x24ec8a(0x20e)][_0x24ec8a(0x479)](_0x406067),this['_scene']['addObject'](_0x406067,_0x2435e3[_0x24ec8a(0x24a)]);}['_drawRectRange'](_0x3b8c9d,_0x3bd4ed,_0xdbeb41,_0x3df912){const _0x4a192b=_0x5ebc5d,_0x2cbb22=new _0x204831[(_0x4a192b(0x36a))](_0x3b8c9d)[_0x4a192b(0x1fb)](0.2)[_0x4a192b(0x5cc)](),_0x2451e9=new _0x98dfd7['RegularPolygon'](_0x4e2f46+_0x204831['Tools'][_0x4a192b(0x59c)](_0x376233),{'pointsGroup':_0x3bd4ed,'fill':_0x2cbb22||_0x98dfd7[_0x4a192b(0x468)](_0x204831[_0x4a192b(0x5a2)]['black'],0.2),'left':_0xdbeb41,'top':_0x3df912,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4a192b(0x20e)]['push'](_0x2451e9),this[_0x4a192b(0x503)]['addObject'](_0x2451e9,_0x2435e3[_0x4a192b(0x24a)]);}['_getAnchorBounding'](_0x160623){const _0x5cdea9=_0x160623[0x0],_0x3ef620=_0x5cdea9[0x0],_0x42e762=_0x5cdea9[0x2],{x:_0x84bd68,y:_0x517b6e}=_0x3ef620,{x:_0x450647,y:_0x26f500}=_0x42e762;return{'left':_0x84bd68,'top':_0x517b6e,'width':_0x450647-_0x84bd68,'height':_0x26f500-_0x517b6e};}[_0x5ebc5d(0x37c)](){const _0xb57a24=_0x5ebc5d,{scaleX:_0x5ac69a,scaleY:_0x402b7b}=this[_0xb57a24(0x503)][_0xb57a24(0x40b)]();return Math['max'](_0x5ac69a,_0x402b7b);}}var _0x58fb60=Object[_0x5ebc5d(0x552)],_0x104766=Object[_0x5ebc5d(0x38b)],_0x31ae50=(_0xc1b4c6,_0x2398b0,_0x536f81,_0x1a412b)=>{const _0x572b02=_0x5ebc5d;for(var _0x33dab7=_0x1a412b>0x1?void 0x0:_0x1a412b?_0x104766(_0x2398b0,_0x536f81):_0x2398b0,_0x56a142=_0xc1b4c6[_0x572b02(0x522)]-0x1,_0x2e6927;_0x56a142>=0x0;_0x56a142--)(_0x2e6927=_0xc1b4c6[_0x56a142])&&(_0x33dab7=(_0x1a412b?_0x2e6927(_0x2398b0,_0x536f81,_0x33dab7):_0x2e6927(_0x33dab7))||_0x33dab7);return _0x1a412b&&_0x33dab7&&_0x58fb60(_0x2398b0,_0x536f81,_0x33dab7),_0x33dab7;},_0x41eb48=(_0x3e38f7,_0x2082b0)=>(_0xff2dc7,_0x57798c)=>_0x2082b0(_0xff2dc7,_0x57798c,_0x3e38f7);let _0x3a3963=class extends _0x204831[_0x5ebc5d(0x3e5)]{constructor(_0x2bd1cb,_0x60d290,_0x16b706,_0x87c3ec,_0x547f64){const _0x57252e=_0x5ebc5d;super(),_0x3d4e20(this,_0x57252e(0x1eb),[]),_0x3d4e20(this,_0x57252e(0x33f),[]),(this[_0x57252e(0x3e7)]=_0x2bd1cb,this[_0x57252e(0x5bc)]=_0x60d290,this['_collabCursorController']=_0x16b706,this[_0x57252e(0x5f3)]=_0x87c3ec,this[_0x57252e(0x4eb)]=_0x547f64,this[_0x57252e(0x411)]());}[_0x5ebc5d(0x411)](){const _0x5210c8=_0x5ebc5d,_0x4d0a6d=this[_0x5210c8(0x3e7)][_0x5210c8(0x52a)],_0x15d179=this[_0x5210c8(0x5bc)];this[_0x5210c8(0x382)](_0x2ea3f3[_0x5210c8(0x5fa)]([this[_0x5210c8(0x2d2)][_0x5210c8(0x4bd)](_0x4d0a6d),this[_0x5210c8(0x4eb)]['currentTheme$']])['pipe'](_0x452c71[_0x5210c8(0x5ef)](([_0x8478e7,_0x46c995])=>({'skeleton':_0x15d179[_0x5210c8(0x55b)](),'cursors':[..._0x8478e7[_0x5210c8(0x48c)]()][_0x5210c8(0x28c)](_0x34ae5d=>({..._0x34ae5d,'color':_0x46c995[_0x34ae5d[_0x5210c8(0x59b)]]}))})))[_0x5210c8(0x2e1)](_0x5bbc53=>{const _0x1f6523=_0x5210c8;if(this[_0x1f6523(0x3b7)](),_0x5bbc53){const {skeleton:_0x84ca4c,cursors:_0x3b760c}=_0x5bbc53;this[_0x1f6523(0x4ca)](_0x84ca4c,_0x3b760c);}})),this[_0x5210c8(0x395)](),this['_initCommandExecutedListener']();}[_0x5ebc5d(0x4ca)](_0x1d2fe3,_0xe59401){const _0x209b6f=_0x5ebc5d,{scene:_0x501f52,mainComponent:_0x5d831b}=this['_context'],_0x4fc97e=_0xe59401['map'](_0x4cb8a5=>new _0x1ca515(_0x4cb8a5,_0x501f52,_0x1d2fe3,_0x5d831b));this[_0x209b6f(0x1eb)]=_0x4fc97e,this[_0x209b6f(0x33f)]=_0xe59401;}[_0x5ebc5d(0x57f)](){const _0x45faa0=_0x5ebc5d;this[_0x45faa0(0x3b7)]();const {scene:_0x15cd58,mainComponent:_0xf28844}=this['_context'],_0xefe579=this['_docSkeletonManagerService'][_0x45faa0(0x55b)](),_0x3b6205=this[_0x45faa0(0x33f)][_0x45faa0(0x5ef)](_0x551d99=>new _0x1ca515(_0x551d99,_0x15cd58,_0xefe579,_0xf28844));this[_0x45faa0(0x1eb)]=_0x3b6205;}[_0x5ebc5d(0x3b7)](){const _0x118e53=_0x5ebc5d;this['_cursorShapes'][_0x118e53(0x394)](_0x2430be=>_0x2430be['dispose']()),this[_0x118e53(0x1eb)]=[];}[_0x5ebc5d(0x471)](){const _0x3c16ee=_0x5ebc5d,_0x415870=[_0x2435e3[_0x3c16ee(0x27c)]['id']];this[_0x3c16ee(0x382)](this[_0x3c16ee(0x5f3)][_0x3c16ee(0x3b3)](_0x4fd04b=>{const _0x1f9d37=_0x3c16ee;_0x415870[_0x1f9d37(0x407)](_0x4fd04b['id'])&&_0x4fd04b[_0x1f9d37(0x208)][_0x1f9d37(0x52a)]===this['_context'][_0x1f9d37(0x52a)]&&this[_0x1f9d37(0x57f)]();}));}[_0x5ebc5d(0x395)](){const _0x1fe7d5=_0x5ebc5d;this[_0x1fe7d5(0x382)](_0x204831[_0x1fe7d5(0x41b)](this[_0x1fe7d5(0x3e7)]['engine'][_0x1fe7d5(0x512)])[_0x1fe7d5(0x30d)](_0x452c71[_0x1fe7d5(0x4ea)](_0x175836=>_0x175836[_0x1fe7d5(0x28e)]===_0x98dfd7['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),_0x452c71['throttleTime'](0x10))[_0x1fe7d5(0x2e1)](()=>{const _0x5beb24=_0x1fe7d5;this[_0x5beb24(0x57f)]();}));}};_0x3a3963=_0x31ae50([_0x41eb48(0x1,_0x204831['Inject'](_0x1d1bc4['DocSkeletonManagerService'])),_0x41eb48(0x2,_0x204831['Inject'](_0x55aa83)),_0x41eb48(0x3,_0x204831['ICommandService']),_0x41eb48(0x4,_0x204831[_0x5ebc5d(0x5cf)](_0x204831['ThemeService']))],_0x3a3963);const _0x1fe137=0x1,_0xe1ff97=1.5;class _0x196d83 extends _0x98dfd7['Shape']{constructor(_0xaf015,_0x50ddac){const _0xa539a1=_0x5ebc5d;super(_0xaf015,_0x50ddac),_0x3d4e20(this,_0xa539a1(0x267)),_0x3d4e20(this,_0xa539a1(0x464),!0x1),_0x3d4e20(this,_0xa539a1(0x5f2)),_0x3d4e20(this,_0xa539a1(0x519),''),_0x3d4e20(this,_0xa539a1(0x40c),_0xa539a1(0x5a8)),_0x3d4e20(this,'_backgroundColor'),(_0x50ddac&&this['setShapeProps'](_0x50ddac),this[_0xa539a1(0x441)][_0xa539a1(0x370)](()=>this[_0xa539a1(0x2a7)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0xa539a1(0x2a7)]({'hovered':!0x1})));}[_0x5ebc5d(0x2a7)](_0x90234f){const _0x42e2a1=_0x5ebc5d;var _0x2c0707,_0x3b0a21,_0x28450f,_0x250f24,_0x517555,_0x547919;this['_color']=(_0x2c0707=_0x90234f[_0x42e2a1(0x59b)])!=null?_0x2c0707:this[_0x42e2a1(0x267)],this[_0x42e2a1(0x464)]=(_0x3b0a21=_0x90234f[_0x42e2a1(0x277)])!=null?_0x3b0a21:this[_0x42e2a1(0x464)],this[_0x42e2a1(0x5f2)]=(_0x28450f=_0x90234f[_0x42e2a1(0x2b1)])!=null?_0x28450f:this[_0x42e2a1(0x5f2)],this[_0x42e2a1(0x519)]=(_0x250f24=_0x90234f[_0x42e2a1(0x51e)])!=null?_0x250f24:this[_0x42e2a1(0x519)],this[_0x42e2a1(0x40c)]=(_0x517555=_0x90234f[_0x42e2a1(0x37a)])!=null?_0x517555:this[_0x42e2a1(0x40c)],this[_0x42e2a1(0x38a)]=(_0x547919=_0x90234f[_0x42e2a1(0x40d)])!=null?_0x547919:this['_backgroundColor'],this[_0x42e2a1(0x3d8)]({'width':_0x90234f['width'],'height':_0x90234f['height']});}[_0x5ebc5d(0x5a7)](_0x21c5f0){const _0x12ee75=_0x5ebc5d,{row:_0x3b41b4,column:_0x19634b}=_0x21c5f0;if(_0x3b41b4>=this[_0x12ee75(0x5f2)][_0x12ee75(0x525)]&&_0x3b41b4<=this[_0x12ee75(0x5f2)][_0x12ee75(0x4f0)]&&_0x19634b>=this[_0x12ee75(0x5f2)][_0x12ee75(0x232)]&&_0x19634b<=this['_range'][_0x12ee75(0x30e)]){this[_0x12ee75(0x2a7)]({'hovered':!0x0});return;}this[_0x12ee75(0x2a7)]({'hovered':!0x1});}[_0x5ebc5d(0x59f)](_0x3534fc){return!0x1;}['_draw'](_0x33bbad){const _0x1e18f9=_0x5ebc5d;_0x98dfd7[_0x1e18f9(0x3cb)][_0x1e18f9(0x60b)](_0x33bbad,{'width':this[_0x1e18f9(0x5b3)],'height':this['height'],'strokeWidth':_0xe1ff97,'stroke':this[_0x1e18f9(0x267)],'evented':!0x1,'fill':this[_0x1e18f9(0x38a)]}),this['_hovered']&&(_0x33bbad['save'](),_0x33bbad[_0x1e18f9(0x437)](0x1,0x0,0x0,0x1,this[_0x1e18f9(0x5b3)],this['_labelPosition']===_0x1e18f9(0x337)?0x0:-_0x1dd480),_0x5d77df[_0x1e18f9(0x60b)](_0x33bbad,{'text':this['_name'],'color':this[_0x1e18f9(0x267)]}),_0x33bbad[_0x1e18f9(0x4c5)]());}}var _0x2a8742=Object[_0x5ebc5d(0x552)],_0x12dc96=Object[_0x5ebc5d(0x38b)],_0x48d11c=(_0x1b5db0,_0x3d157f,_0x55f63f,_0x4b8d17)=>{const _0x166add=_0x5ebc5d;for(var _0x47940f=_0x4b8d17>0x1?void 0x0:_0x4b8d17?_0x12dc96(_0x3d157f,_0x55f63f):_0x3d157f,_0x3fe9e2=_0x1b5db0[_0x166add(0x522)]-0x1,_0x59a2d1;_0x3fe9e2>=0x0;_0x3fe9e2--)(_0x59a2d1=_0x1b5db0[_0x3fe9e2])&&(_0x47940f=(_0x4b8d17?_0x59a2d1(_0x3d157f,_0x55f63f,_0x47940f):_0x59a2d1(_0x47940f))||_0x47940f);return _0x4b8d17&&_0x47940f&&_0x2a8742(_0x3d157f,_0x55f63f,_0x47940f),_0x47940f;},_0x52961c=(_0x2db41c,_0x543213)=>(_0x1d76cf,_0x2acee8)=>_0x543213(_0x1d76cf,_0x2acee8,_0x2db41c);const _0x21ec64=0x1389;let _0x25db3a=class extends _0x204831[_0x5ebc5d(0x3e5)]{constructor(_0x19449a,_0xb6e483,_0x2a4a46,_0x1a6db4){const _0x150167=_0x5ebc5d;super(),_0x3d4e20(this,_0x150167(0x33f),new Set()),_0x3d4e20(this,_0x150167(0x5a0),null),(this[_0x150167(0x3e7)]=_0x19449a,this[_0x150167(0x33c)]=_0xb6e483,this[_0x150167(0x2d2)]=_0x2a4a46,this[_0x150167(0x4eb)]=_0x1a6db4,this[_0x150167(0x411)]());}['_init'](){const _0x2c8369=_0x5ebc5d;this[_0x2c8369(0x33c)][_0x2c8369(0x429)][_0x2c8369(0x30d)](_0x452c71[_0x2c8369(0x31f)](this[_0x2c8369(0x56d)]),_0x452c71[_0x2c8369(0x572)](_0x284d18=>{const _0x3cd3d0=_0x2c8369;if(_0x284d18){const _0x13e647=_0x284d18[_0x3cd3d0(0x233)];return _0x2ea3f3[_0x3cd3d0(0x5fa)](this['_collabCursorController'][_0x3cd3d0(0x4bd)](this[_0x3cd3d0(0x3e7)][_0x3cd3d0(0x52a)]),this['_themeService'][_0x3cd3d0(0x28b)])[_0x3cd3d0(0x30d)](_0x452c71[_0x3cd3d0(0x5ef)](([_0x3fe544,_0x53d9bb])=>{const _0xed93a7=new Map();return _0x3fe544['forEach']((_0x4b7270,_0x45d7d0)=>{const _0x44976a=_0x1c68;if(_0x4b7270[_0x44976a(0x482)]===_0x13e647){const _0x1940b0={..._0x4b7270};_0x1940b0[_0x44976a(0x59b)]=_0x53d9bb[_0x4b7270[_0x44976a(0x59b)]],_0xed93a7[_0x44976a(0x5a4)](_0x45d7d0,_0x1940b0);}}),{'skeleton':_0x284d18,'cursors':_0xed93a7};}));}return _0x2ea3f3['of']({'skeleton':null,'cursors':new Map()});}))[_0x2c8369(0x2e1)](({skeleton:_0x23342f,cursors:_0x244dfa})=>{const _0xd3d24f=_0x2c8369;this[_0xd3d24f(0x3b7)](),_0x23342f&&this[_0xd3d24f(0x4ca)](_0x23342f,_0x244dfa);}),this[_0x2c8369(0x33c)][_0x2c8369(0x429)][_0x2c8369(0x2e1)](_0x414386=>{const _0x375e0d=_0x2c8369;if(_0x414386==null)return;const {skeleton:_0x270234}=_0x414386,{scene:_0x4a3862}=this['_context'];_0x4a3862['onPointerMove$'][_0x375e0d(0x370)](_0x204831[_0x375e0d(0x406)](_0x55d6e0=>{const _0x2e851a=_0x375e0d;var _0x485580,_0x7cbe0a;const {offsetX:_0x29a058,offsetY:_0x5c984c}=_0x55d6e0,{x:_0x3215d9,y:_0x33b15f}=_0x4a3862[_0x2e851a(0x4f9)](_0x98dfd7[_0x2e851a(0x350)]['FromArray']([_0x29a058,_0x5c984c])),{scaleX:_0x543556,scaleY:_0x139bfd}=_0x4a3862[_0x2e851a(0x40b)](),_0x2b220d=_0x4a3862['getViewport'](_0x58dbff[_0x2e851a(0x611)][_0x2e851a(0x36e)]),_0x1f1844=_0x4a3862[_0x2e851a(0x4ac)](_0x98dfd7[_0x2e851a(0x350)][_0x2e851a(0x26f)]([_0x3215d9,_0x33b15f]),_0x2b220d),_0x164db1=_0x270234[_0x2e851a(0x603)](_0x29a058,_0x5c984c,_0x543556,_0x139bfd,_0x1f1844);((_0x485580=this['_lastPointer'])==null?void 0x0:_0x485580[_0x2e851a(0x60f)])===_0x164db1[_0x2e851a(0x60f)]&&((_0x7cbe0a=this[_0x2e851a(0x5a0)])==null?void 0x0:_0x7cbe0a[_0x2e851a(0x35f)])===_0x164db1[_0x2e851a(0x35f)]||this[_0x2e851a(0x33f)][_0x2e851a(0x394)](_0x256297=>{const _0x232203=_0x2e851a;_0x256297[_0x232203(0x5a7)](_0x164db1);});},0x64));});}['_updateCollabCursors'](_0x42102f,_0x16edd8){const _0x3d81ee=_0x5ebc5d;var _0xb7a591;const _0x5572c3=(_0xb7a591=this[_0x3d81ee(0x33c)][_0x3d81ee(0x538)]())==null?void 0x0:_0xb7a591[_0x3d81ee(0x44f)];if(!_0x5572c3)return;const _0x577ecb=this['_getSheetObject']();if(!_0x577ecb)return;this[_0x3d81ee(0x33f)][_0x3d81ee(0x394)](_0x648c9f=>{const _0x60085=_0x3d81ee;_0x648c9f[_0x60085(0x545)]();});const {scene:_0x30d521}=_0x577ecb,_0x402d27=_0x4322be(Array[_0x3d81ee(0x231)](_0x16edd8[_0x3d81ee(0x48c)]()))[_0x3d81ee(0x5ef)](_0x3b58c4=>{const _0x39740a=_0x3d81ee,{color:_0x6ca3e9,range:_0x5840db,name:_0x2ee273,selection:_0x4465e5,sheetID:_0x121f77}=_0x3b58c4,{startColumn:_0xf18aa7,startRow:_0x500e7d,endColumn:_0x389a2b,endRow:_0x415b08}=_0x5840db,_0x171314=_0x58dbff[_0x39740a(0x2e2)](_0x500e7d,_0xf18aa7,_0x30d521,_0x5572c3),_0x2358c6=_0x58dbff[_0x39740a(0x2e2)](_0x415b08,_0x389a2b,_0x30d521,_0x5572c3),{columnHeaderHeightAndMarginTop:_0x552a63}=_0x5572c3,{startX:_0x1bce2e,startY:_0x58f2d8}=_0x171314,{endX:_0x43b3f1,endY:_0x21987b}=_0x2358c6,_0xf2dd43=_0x43b3f1-_0x1bce2e,_0x3f9491=_0x21987b-_0x58f2d8,_0x1a002d={'labelPosition':_0x58f2d8-_0x552a63>=_0x1dd480?'top':_0x39740a(0x337),'sheetID':_0x121f77,'range':_0x5840db,'color':_0x6ca3e9,'name':_0x2ee273,'selection':_0x4465e5,'left':_0x1bce2e,'top':_0x58f2d8,'width':_0xf2dd43,'height':_0x3f9491,'evented':!0x1,'zIndex':_0x21ec64};return new _0x196d83(_0x2ee273,_0x1a002d);});_0x30d521['addObjects'](_0x402d27,_0x1fe137),this[_0x3d81ee(0x33f)]=new Set(_0x402d27);}[_0x5ebc5d(0x3b7)](){const _0x2836dc=_0x5ebc5d;var _0x3ee665;(_0x3ee665=this['_cursors'])==null||_0x3ee665[_0x2836dc(0x394)](_0x300a55=>_0x300a55[_0x2836dc(0x2dd)]());}[_0x5ebc5d(0x293)](){const _0x2d4182=_0x5ebc5d;return _0x58dbff[_0x2d4182(0x2d1)](this[_0x2d4182(0x3e7)][_0x2d4182(0x305)],this[_0x2d4182(0x3e7)]);}};_0x25db3a=_0x48d11c([_0x52961c(0x1,_0x204831['Inject'](_0x58dbff[_0x5ebc5d(0x491)])),_0x52961c(0x2,_0x204831[_0x5ebc5d(0x5cf)](_0x55aa83)),_0x52961c(0x3,_0x204831['Inject'](_0x204831[_0x5ebc5d(0x2bf)]))],_0x25db3a);function _0x4322be(_0x3b304d){const _0x543e18=_0x5ebc5d,_0x3794e6=new Map();return _0x3b304d[_0x543e18(0x394)](_0x443256=>{const _0x406c57=_0x543e18;if(_0x3794e6[_0x406c57(0x4ee)](_0x443256[_0x406c57(0x261)])){const _0x35ea25=_0x3794e6[_0x406c57(0x222)](_0x443256[_0x406c57(0x261)]);_0x35ea25['name']+=',\x20'+_0x443256[_0x406c57(0x51e)];}else _0x3794e6['set'](_0x443256['selection'],_0x443256);}),Array[_0x543e18(0x231)](_0x3794e6[_0x543e18(0x48c)]());}var _0x7b8824=function(){const _0x1db695=_0x5ebc5d;return _0x7b8824=Object[_0x1db695(0x4df)]||function(_0x1f9cc4){const _0x51e9c8=_0x1db695;for(var _0x44b4c5,_0x390be0=0x1,_0x1afd2c=arguments[_0x51e9c8(0x522)];_0x390be0<_0x1afd2c;_0x390be0++){_0x44b4c5=arguments[_0x390be0];for(var _0x5aac84 in _0x44b4c5)Object['prototype']['hasOwnProperty'][_0x51e9c8(0x51f)](_0x44b4c5,_0x5aac84)&&(_0x1f9cc4[_0x5aac84]=_0x44b4c5[_0x5aac84]);}return _0x1f9cc4;},_0x7b8824[_0x1db695(0x57d)](this,arguments);},_0x244bb4=function(_0x3447d0,_0x57fc51){const _0x147756=_0x5ebc5d;var _0x332224={};for(var _0x483167 in _0x3447d0)Object[_0x147756(0x490)][_0x147756(0x554)][_0x147756(0x51f)](_0x3447d0,_0x483167)&&_0x57fc51['indexOf'](_0x483167)<0x0&&(_0x332224[_0x483167]=_0x3447d0[_0x483167]);if(_0x3447d0!=null&&typeof Object[_0x147756(0x609)]==_0x147756(0x206)){for(var _0x321222=0x0,_0x483167=Object[_0x147756(0x609)](_0x3447d0);_0x321222<_0x483167[_0x147756(0x522)];_0x321222++)_0x57fc51[_0x147756(0x4fa)](_0x483167[_0x321222])<0x0&&Object[_0x147756(0x490)][_0x147756(0x5ca)]['call'](_0x3447d0,_0x483167[_0x321222])&&(_0x332224[_0x483167[_0x321222]]=_0x3447d0[_0x483167[_0x321222]]);}return _0x332224;},_0x2c1631=_0x4d8650[_0x5ebc5d(0x295)](function(_0x2fd25b,_0x422af5){const _0x530ec7=_0x5ebc5d;var _0x386625=_0x2fd25b['icon'],_0x20b6b5=_0x2fd25b['id'],_0x679608=_0x2fd25b[_0x530ec7(0x33e)],_0x2d4b9c=_0x2fd25b[_0x530ec7(0x302)],_0x52904d=_0x244bb4(_0x2fd25b,[_0x530ec7(0x548),'id',_0x530ec7(0x33e),_0x530ec7(0x302)]),_0x5bfa20=_0x530ec7(0x333)[_0x530ec7(0x529)](_0x20b6b5,'\x20')[_0x530ec7(0x529)](_0x679608||'')[_0x530ec7(0x270)](),_0x2098f6=_0x4d8650['useRef']('_'[_0x530ec7(0x529)](_0x3c13ee()));return _0x1e0779(_0x386625,''[_0x530ec7(0x529)](_0x20b6b5),{'defIds':_0x386625[_0x530ec7(0x5e7)],'idSuffix':_0x2098f6[_0x530ec7(0x568)]},_0x7b8824({'ref':_0x422af5,'className':_0x5bfa20},_0x52904d),_0x2d4b9c);});function _0x1e0779(_0x4301a6,_0x2ea73b,_0x2aec4b,_0x2eb951,_0x171dab){const _0x253543=_0x5ebc5d;return _0x4d8650[_0x253543(0x532)](_0x4301a6[_0x253543(0x402)],_0x7b8824(_0x7b8824({'key':_0x2ea73b},_0x3efbe0(_0x4301a6,_0x2aec4b,_0x171dab)),_0x2eb951),(_0x38c88e(_0x4301a6,_0x2aec4b)['children']||[])[_0x253543(0x5ef)](function(_0x473abd,_0x1d837f){const _0x4255bf=_0x253543;return _0x1e0779(_0x473abd,''[_0x4255bf(0x529)](_0x2ea73b,'-')[_0x4255bf(0x529)](_0x4301a6[_0x4255bf(0x402)],'-')[_0x4255bf(0x529)](_0x1d837f),_0x2aec4b,void 0x0,_0x171dab);}));}function _0x3efbe0(_0x389bcf,_0x32dbbe,_0x31e76e){const _0x1d1129=_0x5ebc5d;var _0x227067=_0x7b8824({},_0x389bcf[_0x1d1129(0x2c4)]);_0x31e76e!=null&&_0x31e76e['colorChannel1']&&_0x227067[_0x1d1129(0x449)]===_0x1d1129(0x2c6)&&(_0x227067[_0x1d1129(0x449)]=_0x31e76e[_0x1d1129(0x2c6)]);var _0x13da44=_0x32dbbe[_0x1d1129(0x5e7)];return!_0x13da44||_0x13da44[_0x1d1129(0x522)]===0x0||(_0x389bcf[_0x1d1129(0x402)]==='use'&&_0x227067['xlink:href']&&(_0x227067['xlink:href']=_0x227067['xlink:href']+_0x32dbbe[_0x1d1129(0x5e4)]),Object[_0x1d1129(0x237)](_0x227067)[_0x1d1129(0x394)](function(_0x1be20b){const _0x1a69b4=_0x1d1129;var _0x45c70e=_0x1be20b[0x0],_0xd78559=_0x1be20b[0x1];typeof _0xd78559==_0x1a69b4(0x508)&&(_0x227067[_0x45c70e]=_0xd78559[_0x1a69b4(0x3b9)](/url\(#(.*)\)/,_0x1a69b4(0x5c2)[_0x1a69b4(0x529)](_0x32dbbe[_0x1a69b4(0x5e4)],')')));})),_0x227067;}function _0x38c88e(_0xb177e6,_0xc2aec){const _0x536ed1=_0x5ebc5d;var _0x20e39e,_0x44a63a=_0xc2aec[_0x536ed1(0x5e7)];return!_0x44a63a||_0x44a63a[_0x536ed1(0x522)]===0x0?_0xb177e6:_0xb177e6[_0x536ed1(0x402)]===_0x536ed1(0x4d2)&&(!((_0x20e39e=_0xb177e6['children'])===null||_0x20e39e===void 0x0)&&_0x20e39e[_0x536ed1(0x522)])?_0x7b8824(_0x7b8824({},_0xb177e6),{'children':_0xb177e6[_0x536ed1(0x364)][_0x536ed1(0x5ef)](function(_0x5d3c19){const _0x2eddbd=_0x536ed1;return typeof _0x5d3c19[_0x2eddbd(0x2c4)]['id']==_0x2eddbd(0x508)&&_0x44a63a&&_0x44a63a[_0x2eddbd(0x4fa)](_0x5d3c19['attrs']['id'])>-0x1?_0x7b8824(_0x7b8824({},_0x5d3c19),{'attrs':_0x7b8824(_0x7b8824({},_0x5d3c19['attrs']),{'id':_0x5d3c19[_0x2eddbd(0x2c4)]['id']+_0xc2aec[_0x2eddbd(0x5e4)]})}):_0x5d3c19;})}):_0xb177e6;}function _0x3c13ee(){const _0x5d6925=_0x5ebc5d;return Math[_0x5d6925(0x354)]()['toString'](0x24)[_0x5d6925(0x3af)](0x2,0x8);}_0x2c1631[_0x5ebc5d(0x46b)]=_0x5ebc5d(0x489);var _0x3495b9={'tag':'svg','attrs':{'fill':_0x5ebc5d(0x52b),'viewBox':'0\x200\x2016\x2016','width':_0x5ebc5d(0x22e),'height':_0x5ebc5d(0x22e)},'children':[{'tag':'g','attrs':{'clipPath':_0x5ebc5d(0x2ef)},'children':[{'tag':_0x5ebc5d(0x3ed),'attrs':{'stroke':'currentColor','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':_0x5ebc5d(0x1ea),'strokeLinejoin':_0x5ebc5d(0x1ea),'strokeWidth':1.2}}]},{'tag':_0x5ebc5d(0x4d2),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5ebc5d(0x2b5)},'children':[{'tag':_0x5ebc5d(0x3ed),'attrs':{'fill':_0x5ebc5d(0x527),'d':_0x5ebc5d(0x560)}}]}]}],'defIds':[_0x5ebc5d(0x2b5)]},_0x15957d=_0x4d8650[_0x5ebc5d(0x295)](function(_0x1ba377,_0x1636a9){const _0x8b8936=_0x5ebc5d;return _0x4d8650[_0x8b8936(0x532)](_0x2c1631,Object[_0x8b8936(0x4df)]({},_0x1ba377,{'id':_0x8b8936(0x371),'ref':_0x1636a9,'icon':_0x3495b9}));});_0x15957d[_0x5ebc5d(0x46b)]=_0x5ebc5d(0x506);var _0x3601f={'tag':_0x5ebc5d(0x462),'attrs':{'fill':'none','viewBox':_0x5ebc5d(0x5d8),'width':_0x5ebc5d(0x22e),'height':_0x5ebc5d(0x22e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x5ebc5d(0x3ed),'attrs':{'stroke':_0x5ebc5d(0x5e8),'d':_0x5ebc5d(0x578),'strokeLinecap':_0x5ebc5d(0x1ea),'strokeLinejoin':_0x5ebc5d(0x1ea),'strokeWidth':1.2}}]},{'tag':_0x5ebc5d(0x4d2),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5ebc5d(0x201)},'children':[{'tag':'path','attrs':{'fill':_0x5ebc5d(0x527),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},_0x4272c5=_0x4d8650[_0x5ebc5d(0x295)](function(_0xfe2073,_0x1af517){const _0xd4945b=_0x5ebc5d;return _0x4d8650[_0xd4945b(0x532)](_0x2c1631,Object[_0xd4945b(0x4df)]({},_0xfe2073,{'id':_0xd4945b(0x448),'ref':_0x1af517,'icon':_0x3601f}));});_0x4272c5[_0x5ebc5d(0x46b)]='OnLineSingle';function _0x2e89fc(_0x4bc3a2){const _0x5f2a65=_0x5ebc5d;var _0x50b0e3,_0x1628dd,_0x59feaf='';if(typeof _0x4bc3a2==_0x5f2a65(0x508)||typeof _0x4bc3a2==_0x5f2a65(0x3a8))_0x59feaf+=_0x4bc3a2;else{if(typeof _0x4bc3a2==_0x5f2a65(0x2ff)){if(Array['isArray'](_0x4bc3a2)){var _0x234876=_0x4bc3a2[_0x5f2a65(0x522)];for(_0x50b0e3=0x0;_0x50b0e3<_0x234876;_0x50b0e3++)_0x4bc3a2[_0x50b0e3]&&(_0x1628dd=_0x2e89fc(_0x4bc3a2[_0x50b0e3]))&&(_0x59feaf&&(_0x59feaf+='\x20'),_0x59feaf+=_0x1628dd);}else{for(_0x1628dd in _0x4bc3a2)_0x4bc3a2[_0x1628dd]&&(_0x59feaf&&(_0x59feaf+='\x20'),_0x59feaf+=_0x1628dd);}}}return _0x59feaf;}function _0x23db9f(){const _0x39231d=_0x5ebc5d;for(var _0x1bc3f2,_0x4236a3,_0x36a0c2=0x0,_0x15b120='',_0x25c3ea=arguments[_0x39231d(0x522)];_0x36a0c2<_0x25c3ea;_0x36a0c2++)(_0x1bc3f2=arguments[_0x36a0c2])&&(_0x4236a3=_0x2e89fc(_0x1bc3f2))&&(_0x15b120&&(_0x15b120+='\x20'),_0x15b120+=_0x4236a3);return _0x15b120;}const _0xe6d52d={'onlineStatusIcon':_0x5ebc5d(0x3a0),'onlineStatusTitle':'univer-online-status-title','onlineStatus':_0x5ebc5d(0x256),'online':_0x5ebc5d(0x531),'offline':_0x5ebc5d(0x3f7)};function _0x43b32a(_0x430b8d){const _0x350905=_0x5ebc5d;switch(_0x430b8d){case _0x4ebacb[_0x350905(0x34e)]:return _0x350905(0x3fa);case _0x4ebacb['CONFLICT']:return'collabStatus.conflict';case _0x4ebacb[_0x350905(0x327)]:return _0x350905(0x581);case _0x4ebacb[_0x350905(0x2a2)]:return _0x350905(0x2be);case _0x4ebacb['PENDING']:case _0x4ebacb['AWAITING']:case _0x4ebacb[_0x350905(0x2c2)]:return _0x350905(0x5be);case _0x4ebacb['SYNCED']:return _0x350905(0x2c0);}}function _0x3e0c37(_0x790684){const _0x40877c=_0x5ebc5d,{status$:_0x486ed0}=_0x790684,_0x27770f=_0x1e1361['useObservable'](_0x486ed0,_0x4ebacb['NOT_COLLAB']),_0x4895a1=_0x204831[_0x40877c(0x3a6)](_0x204831[_0x40877c(0x2f5)]),_0x2b7a86=_0x204831['useDependency'](_0x52f4d9['CollaborationSessionService']),_0xd1d995=_0x27770f!==_0x4ebacb['OFFLINE'],_0x95e2b6=_0x4895a1['t'](_0x43b32a(_0x27770f)),_0x5d75be=_0x23db9f(_0xe6d52d[_0x40877c(0x3ae)],{[_0xe6d52d[_0x40877c(0x4be)]]:_0xd1d995,[_0xe6d52d[_0x40877c(0x24f)]]:!_0xd1d995}),_0x451400=_0xd1d995?_0x4d8650[_0x40877c(0x532)](_0x4272c5,null):_0x4d8650[_0x40877c(0x532)](_0x15957d,null),_0x240eb0=_0x4d8650['useCallback'](()=>{_0xd1d995||_0x2b7a86['reconnect']();},[_0xd1d995,_0x2b7a86]);function _0x1f4d3c(){const _0x4e88b9=_0x40877c;return _0x4d8650[_0x4e88b9(0x532)](_0x4e88b9(0x34c),{'className':_0x5d75be,'onClick':_0x240eb0},_0x4d8650[_0x4e88b9(0x532)](_0x4e88b9(0x34c),{'className':_0xe6d52d['onlineStatusIcon']},_0x451400),_0x4d8650['createElement'](_0x4e88b9(0x34c),{'className':_0xe6d52d[_0x4e88b9(0x551)]},_0x95e2b6));}return _0xd1d995?_0x1f4d3c():_0x4d8650[_0x40877c(0x532)](_0x53bcf5[_0x40877c(0x47c)],{'title':_0x4895a1['t'](_0x40877c(0x297))},_0x1f4d3c());}var _0x2a060f=Object[_0x5ebc5d(0x552)],_0x4777fe=Object[_0x5ebc5d(0x38b)],_0x3245f2=(_0x24c1c8,_0x326034,_0x1c3f65,_0x1ded1f)=>{const _0x1e9876=_0x5ebc5d;for(var _0x15eac8=_0x1ded1f>0x1?void 0x0:_0x1ded1f?_0x4777fe(_0x326034,_0x1c3f65):_0x326034,_0x43974a=_0x24c1c8[_0x1e9876(0x522)]-0x1,_0xb70c76;_0x43974a>=0x0;_0x43974a--)(_0xb70c76=_0x24c1c8[_0x43974a])&&(_0x15eac8=(_0x1ded1f?_0xb70c76(_0x326034,_0x1c3f65,_0x15eac8):_0xb70c76(_0x15eac8))||_0x15eac8);return _0x1ded1f&&_0x15eac8&&_0x2a060f(_0x326034,_0x1c3f65,_0x15eac8),_0x15eac8;},_0x3c47c7=(_0xdca892,_0x336096)=>(_0x299e83,_0x5e24a8)=>_0x336096(_0x299e83,_0x5e24a8,_0xdca892);_0x52f4d9['DesktopCollaborationStatusDisplayController']=class extends _0x204831[_0x5ebc5d(0x3f5)]{constructor(_0x2c4ae2,_0x501544,_0x5b7ceb,_0x3551f1){const _0x48396a=_0x5ebc5d;super(),_0x3d4e20(this,_0x48396a(0x1e8),new _0x2ea3f3[(_0x48396a(0x565))](_0x4ebacb['NOT_COLLAB'])),(this[_0x48396a(0x48f)]=_0x2c4ae2,this[_0x48396a(0x248)]=_0x501544,this[_0x48396a(0x60c)]=_0x5b7ceb,this[_0x48396a(0x34d)]=_0x3551f1,this['_initStatusComponent'](),this[_0x48396a(0x5e5)]());}[_0x5ebc5d(0x5e5)](){const _0x170209=_0x5ebc5d;this['disposeWithMe'](this[_0x170209(0x48f)][_0x170209(0x5ee)]['pipe'](_0x2ea3f3[_0x170209(0x572)](()=>{const _0x54893b=_0x170209,_0x1301d1=this['_univerInstanceService'][_0x54893b(0x3f3)]();return _0x1301d1?this['_collaborationController'][_0x54893b(0x265)](_0x1301d1[_0x54893b(0x34b)]()):_0x2ea3f3['of'](null);}),_0x2ea3f3[_0x170209(0x572)](_0x488aba=>_0x488aba?_0x488aba[_0x170209(0x413)]:_0x2ea3f3['of'](_0x4ebacb['NOT_COLLAB'])))['subscribe'](_0x2e61e5=>{const _0x31dd26=_0x170209;this[_0x31dd26(0x1e8)][_0x31dd26(0x50a)](_0x2e61e5);}));}['_initStatusComponent'](){const _0x13d736=_0x5ebc5d;this['disposeWithMe'](this[_0x13d736(0x248)]['registerComponent'](_0x1e1361[_0x13d736(0x363)][_0x13d736(0x2cf)],()=>_0x204831[_0x13d736(0x460)](_0xaf3006({'status$':this[_0x13d736(0x1e8)][_0x13d736(0x4f3)]()}),this[_0x13d736(0x60c)])));}},_0x52f4d9[_0x5ebc5d(0x22c)]=_0x3245f2([_0x3c47c7(0x0,_0x204831[_0x5ebc5d(0x335)]),_0x3c47c7(0x1,_0x1e1361[_0x5ebc5d(0x259)]),_0x3c47c7(0x2,_0x204831['Inject'](_0x204831[_0x5ebc5d(0x28a)])),_0x3c47c7(0x3,_0x204831[_0x5ebc5d(0x5cf)](_0x52f4d9[_0x5ebc5d(0x558)]))],_0x52f4d9[_0x5ebc5d(0x22c)]);function _0xaf3006(_0x1ed66b){const {status$:_0x4e9a1c}=_0x1ed66b;return function(){return _0x4d8650['createElement'](_0x3e0c37,{'status$':_0x4e9a1c});};}const _0x1e189c=_0x204831[_0x5ebc5d(0x43d)](_0x5ebc5d(0x523));var _0x53dad6=Object[_0x5ebc5d(0x552)],_0x299109=Object[_0x5ebc5d(0x38b)],_0x68a19b=(_0x2ad1ff,_0x33f5fa,_0x3d15a7,_0x3470ff)=>{const _0x5b0dc3=_0x5ebc5d;for(var _0x54f2ef=_0x3470ff>0x1?void 0x0:_0x3470ff?_0x299109(_0x33f5fa,_0x3d15a7):_0x33f5fa,_0x4dab44=_0x2ad1ff[_0x5b0dc3(0x522)]-0x1,_0x10225d;_0x4dab44>=0x0;_0x4dab44--)(_0x10225d=_0x2ad1ff[_0x4dab44])&&(_0x54f2ef=(_0x3470ff?_0x10225d(_0x33f5fa,_0x3d15a7,_0x54f2ef):_0x10225d(_0x54f2ef))||_0x54f2ef);return _0x3470ff&&_0x54f2ef&&_0x53dad6(_0x33f5fa,_0x3d15a7,_0x54f2ef),_0x54f2ef;},_0x1df8b4=(_0x2274b4,_0x116cc9)=>(_0x5b8d3d,_0x2945b5)=>_0x116cc9(_0x5b8d3d,_0x2945b5,_0x2274b4);_0x52f4d9[_0x5ebc5d(0x616)]=class extends _0x204831['RxDisposable']{constructor(_0x1a9ea6,_0x16fa12,_0x5ce036,_0x385d1c,_0x45bac0,_0x506f65){const _0x335c45=_0x5ebc5d;super(),this[_0x335c45(0x543)]=_0x1a9ea6,this[_0x335c45(0x5b0)]=_0x16fa12,this[_0x335c45(0x5f3)]=_0x5ce036,this['_localCacheService']=_0x385d1c,this[_0x335c45(0x342)]=_0x45bac0,_0x506f65?_0x506f65==null||_0x506f65[_0x335c45(0x4b8)]()['then'](()=>this[_0x335c45(0x411)]()):(this[_0x335c45(0x5b0)][_0x335c45(0x455)]('[DataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x335c45(0x411)]());}async[_0x5ebc5d(0x411)](){const _0x15bcff=_0x5ebc5d,_0x5eec62=this[_0x15bcff(0x543)][_0x15bcff(0x25f)](_0x15bcff(0x305)),_0x24b4d6=this[_0x15bcff(0x543)][_0x15bcff(0x25f)](_0x15bcff(0x28e));if(!_0x5eec62||!_0x24b4d6){this[_0x15bcff(0x5b0)]['debug'](_0x15bcff(0x32c),_0x15bcff(0x3a2));return;}switch(Number(_0x24b4d6)){case _0x38b124[_0x15bcff(0x49c)]:{const _0x2eb542=await this[_0x15bcff(0x42f)](_0x5eec62);this[_0x15bcff(0x33a)](_0x2eb542);break;}case _0x38b124[_0x15bcff(0x3ef)]:{await this['_loadDoc'](_0x5eec62);break;}default:{this['_logService'][_0x15bcff(0x5c5)](_0x15bcff(0x32c),_0x15bcff(0x38e));break;}}}async[_0x5ebc5d(0x33a)](_0x1c559b){const _0x502bbf=_0x5ebc5d;await this[_0x502bbf(0x247)](_0x1c559b),_0x1c559b[_0x502bbf(0x258)][_0x502bbf(0x30d)](_0x2ea3f3[_0x502bbf(0x31f)](this['dispose$']))[_0x502bbf(0x2e1)](_0x361b3a=>{const _0x497348=_0x502bbf;_0x361b3a&&this[_0x497348(0x3ab)](_0x361b3a);}),this[_0x502bbf(0x543)][_0x502bbf(0x40a)][_0x502bbf(0x30d)](_0x2ea3f3[_0x502bbf(0x31f)](this[_0x502bbf(0x56d)]))[_0x502bbf(0x2e1)](()=>this[_0x502bbf(0x247)](_0x1c559b));}[_0x5ebc5d(0x3ab)](_0x234cc5,_0x25f8f8=!0x1){const _0x455dc3=_0x5ebc5d,_0x2fdb06=this[_0x455dc3(0x543)]['getParam'](_0x455dc3(0x5dc));_0x234cc5['getSheetId']()!==_0x2fdb06&&this[_0x455dc3(0x543)][_0x455dc3(0x614)](_0x455dc3(0x5dc),_0x234cc5[_0x455dc3(0x245)](),_0x25f8f8);}async[_0x5ebc5d(0x247)](_0x40281d){const _0x31f3bc=_0x5ebc5d;var _0x11f4d3;const _0x4bd1bd=this[_0x31f3bc(0x543)]['getParam']('subunit');if(!_0x4bd1bd||!_0x40281d[_0x31f3bc(0x54e)](_0x4bd1bd)){const _0x5f3ee9=_0x40281d[_0x31f3bc(0x372)]()[0x0],_0x6caa1f=_0x40281d['getSheetBySheetId'](_0x5f3ee9);if(!_0x6caa1f)return;this[_0x31f3bc(0x3ab)](_0x6caa1f,!0x0),await this[_0x31f3bc(0x5f3)]['executeCommand'](_0x2850a0[_0x31f3bc(0x1e6)]['id'],{'unitId':_0x40281d[_0x31f3bc(0x34b)](),'subUnitId':_0x5f3ee9});return;}((_0x11f4d3=_0x40281d[_0x31f3bc(0x4d8)]())==null?void 0x0:_0x11f4d3[_0x31f3bc(0x245)]())!==_0x4bd1bd&&await this[_0x31f3bc(0x5f3)]['executeCommand'](_0x2850a0[_0x31f3bc(0x1e6)]['id'],{'unitId':_0x40281d[_0x31f3bc(0x34b)](),'subUnitId':_0x4bd1bd});}async[_0x5ebc5d(0x42f)](_0x47cba1){const _0x39cdba=_0x5ebc5d;let _0x3003ee=0x0;const _0x4c504b=await this[_0x39cdba(0x5db)]['loadOfflineData'](_0x47cba1);return _0x4c504b&&(_0x4c504b[_0x39cdba(0x341)]||_0x4c504b[_0x39cdba(0x4b3)][_0x39cdba(0x522)]!==0x0)&&(_0x3003ee=_0x4c504b[_0x39cdba(0x45c)]),_0x3003ee===0x0&&this[_0x39cdba(0x5b0)][_0x39cdba(0x455)](_0x39cdba(0x32c),_0x39cdba(0x35e)),this['_snapshotService'][_0x39cdba(0x3b1)](_0x47cba1,_0x3003ee);}async[_0x5ebc5d(0x58d)](_0x125b34){const _0x46eea8=_0x5ebc5d;let _0x4782f1=0x0;const _0x427375=await this[_0x46eea8(0x5db)][_0x46eea8(0x414)](_0x125b34);return _0x427375&&(_0x427375[_0x46eea8(0x341)]||_0x427375[_0x46eea8(0x4b3)]['length']!==0x0)&&(_0x4782f1=_0x427375[_0x46eea8(0x45c)]),_0x4782f1===0x0&&this[_0x46eea8(0x5b0)][_0x46eea8(0x455)]('[DataLoaderController]',_0x46eea8(0x35e)),this['_snapshotService'][_0x46eea8(0x5f5)](_0x125b34,_0x4782f1);}},_0x52f4d9['DataLoaderController']=_0x68a19b([_0x1df8b4(0x0,_0x1e189c),_0x1df8b4(0x1,_0x204831['ILogService']),_0x1df8b4(0x2,_0x204831[_0x5ebc5d(0x2de)]),_0x1df8b4(0x3,_0x204831['Inject'](_0x52f4d9['LocalCacheService'])),_0x1df8b4(0x4,_0x204831[_0x5ebc5d(0x5cf)](_0x292f17[_0x5ebc5d(0x37d)])),_0x1df8b4(0x5,_0x204831[_0x5ebc5d(0x39e)](_0x517f68['IRemoteInstanceService']))],_0x52f4d9[_0x5ebc5d(0x616)]);var _0x3bf978=Object[_0x5ebc5d(0x552)],_0x1aabce=Object[_0x5ebc5d(0x38b)],_0x33f6fe=(_0x2c9e01,_0x1ad41f,_0x175c76,_0x4c4bf6)=>{const _0x4fa817=_0x5ebc5d;for(var _0x2165a3=_0x4c4bf6>0x1?void 0x0:_0x4c4bf6?_0x1aabce(_0x1ad41f,_0x175c76):_0x1ad41f,_0x1f84cd=_0x2c9e01[_0x4fa817(0x522)]-0x1,_0x519f67;_0x1f84cd>=0x0;_0x1f84cd--)(_0x519f67=_0x2c9e01[_0x1f84cd])&&(_0x2165a3=(_0x4c4bf6?_0x519f67(_0x1ad41f,_0x175c76,_0x2165a3):_0x519f67(_0x2165a3))||_0x2165a3);return _0x4c4bf6&&_0x2165a3&&_0x3bf978(_0x1ad41f,_0x175c76,_0x2165a3),_0x2165a3;},_0x24fa53=(_0x42a420,_0x5d04c6)=>(_0x570d90,_0x120903)=>_0x5d04c6(_0x570d90,_0x120903,_0x42a420);const _0x5a796a=_0x5ebc5d(0x226),_0x23d2d6=_0x5ebc5d(0x4ba);let _0x325718=class extends _0x204831[_0x5ebc5d(0x3f5)]{constructor(_0x30e0bf,_0x49f6e8){const _0x79a8bf=_0x5ebc5d;super(),this['_univerInstanceService']=_0x30e0bf,this[_0x79a8bf(0x45e)]=_0x49f6e8,this[_0x79a8bf(0x411)]();}[_0x5ebc5d(0x411)](){const _0x3d316e=_0x5ebc5d;this[_0x3d316e(0x382)](this[_0x3d316e(0x48f)][_0x3d316e(0x5ee)][_0x3d316e(0x2e1)](()=>{const _0x10bab9=_0x3d316e;var _0x368182;const _0x12d925=this[_0x10bab9(0x48f)]['getFocusedUnit']();let _0x5a4d30=(_0x368182=this['_configService'][_0x10bab9(0x602)](_0x5a796a))!=null?_0x368182:_0x23d2d6;_0x12d925 instanceof _0x204831[_0x10bab9(0x392)]&&(_0x5a4d30=_0x12d925[_0x10bab9(0x51e)]),document[_0x10bab9(0x5c4)]=_0x5a4d30;}));}};_0x325718=_0x33f6fe([_0x24fa53(0x0,_0x204831[_0x5ebc5d(0x335)]),_0x24fa53(0x1,_0x204831[_0x5ebc5d(0x418)])],_0x325718);var _0xeb4715=Object['defineProperty'],_0x5f59fa=Object['getOwnPropertyDescriptor'],_0x18be32=(_0x44eb53,_0x21b7ff,_0x2077f3,_0x5ce5b2)=>{const _0x292a0d=_0x5ebc5d;for(var _0x168000=_0x5ce5b2>0x1?void 0x0:_0x5ce5b2?_0x5f59fa(_0x21b7ff,_0x2077f3):_0x21b7ff,_0xa9a202=_0x44eb53[_0x292a0d(0x522)]-0x1,_0x3c0ef3;_0xa9a202>=0x0;_0xa9a202--)(_0x3c0ef3=_0x44eb53[_0xa9a202])&&(_0x168000=(_0x5ce5b2?_0x3c0ef3(_0x21b7ff,_0x2077f3,_0x168000):_0x3c0ef3(_0x168000))||_0x168000);return _0x5ce5b2&&_0x168000&&_0xeb4715(_0x21b7ff,_0x2077f3,_0x168000),_0x168000;},_0x45ee60=(_0x3206f4,_0x2b5dc6)=>(_0x1b7565,_0x13e38b)=>_0x2b5dc6(_0x1b7565,_0x13e38b,_0x3206f4);let _0x40487a=class{constructor(_0x3eae3e,_0x8899e5,_0x5911d2){const _0xc5e5eb=_0x5ebc5d;this[_0xc5e5eb(0x45e)]=_0x3eae3e,this[_0xc5e5eb(0x20b)]=_0x8899e5,this[_0xc5e5eb(0x42b)]=_0x5911d2,this['init']();}[_0x5ebc5d(0x4ff)](){const _0x72bebe=_0x5ebc5d;this[_0x72bebe(0x20b)][_0x72bebe(0x3a4)]({'priority':0x1,'interceptor':(_0x23c5a8,_0x2b3568)=>_0x2b3568(_0x23c5a8)[_0x72bebe(0x30d)](_0x2ea3f3[_0x72bebe(0x4b2)](async _0x1a578b=>{const _0x796a75=_0x72bebe,_0x59e394=_0x1a578b;if(_0x59e394[_0x796a75(0x32a)]===0x191&&window[_0x796a75(0x5fd)](this['localeService']['t'](_0x796a75(0x5b2)))){const _0x32c592=window['encodeURIComponent'](window['location'][_0x796a75(0x5ae)]);window['location']['href']=this['_getLoginPath']()+_0x796a75(0x24c)+_0x32c592;}return _0x59e394;}))});}[_0x5ebc5d(0x272)](){const _0x5746f2=_0x5ebc5d;var _0x3e0a3f,_0x2800b8;const _0x63cc2e=this[_0x5746f2(0x45e)]['getConfig'](_0x4d3acb),_0x206d1a=this[_0x5746f2(0x45e)][_0x5746f2(0x602)](_0x5dd0cc);return(_0x2800b8=(_0x3e0a3f=_0x206d1a==null?void 0x0:_0x206d1a[_0x5746f2(0x52c)])!=null?_0x3e0a3f:_0x63cc2e)!=null?_0x2800b8:_0x1c8cfb;}};_0x40487a=_0x18be32([_0x45ee60(0x0,_0x204831[_0x5ebc5d(0x418)]),_0x45ee60(0x1,_0x204831[_0x5ebc5d(0x5cf)](_0x59f944[_0x5ebc5d(0x5a1)])),_0x45ee60(0x2,_0x204831[_0x5ebc5d(0x5cf)](_0x204831[_0x5ebc5d(0x2f5)]))],_0x40487a);var _0x3888cd=Object[_0x5ebc5d(0x552)],_0x5301af=Object[_0x5ebc5d(0x38b)],_0x286281=(_0x41609a,_0x3154bc,_0x12ba0d,_0x3e90f8)=>{const _0xe78fa0=_0x5ebc5d;for(var _0x161ce1=_0x3e90f8>0x1?void 0x0:_0x3e90f8?_0x5301af(_0x3154bc,_0x12ba0d):_0x3154bc,_0x53de05=_0x41609a[_0xe78fa0(0x522)]-0x1,_0x17e7ab;_0x53de05>=0x0;_0x53de05--)(_0x17e7ab=_0x41609a[_0x53de05])&&(_0x161ce1=(_0x3e90f8?_0x17e7ab(_0x3154bc,_0x12ba0d,_0x161ce1):_0x17e7ab(_0x161ce1))||_0x161ce1);return _0x3e90f8&&_0x161ce1&&_0x3888cd(_0x3154bc,_0x12ba0d,_0x161ce1),_0x161ce1;},_0x47758c=(_0x47c670,_0xdddf29)=>(_0x454a09,_0x16429b)=>_0xdddf29(_0x454a09,_0x16429b,_0x47c670);const _0x56cb49=_0x5ebc5d(0x2cd),_0x15bcbd='/universer-api/authz';_0x52f4d9[_0x5ebc5d(0x5a5)]=class extends _0x204831[_0x5ebc5d(0x3f5)]{constructor(_0x279d1c,_0xea11eb){const _0x3e300b=_0x5ebc5d;super(),this['_HTTPService']=_0x279d1c,this[_0x3e300b(0x45e)]=_0xea11eb,this[_0x3e300b(0x35b)]();}['_initMergeInterceptor'](){const _0xb96d50=_0x5ebc5d,_0x48e611=this;this[_0xb96d50(0x382)](this[_0xb96d50(0x582)][_0xb96d50(0x3a4)]({'priority':0x3e7,'interceptor':_0x59f944['MergeInterceptorFactory']({'isMatch'(_0x2d0cb6){const _0x273256=_0xb96d50;var _0x44b5d4;if(_0x2d0cb6[_0x273256(0x535)]===_0x273256(0x5de)&&((_0x44b5d4=_0x2d0cb6['requestParams'])!=null&&_0x44b5d4[_0x273256(0x573)])){const {objectID:_0x52889e,objectType:_0x2f3f7f}=_0x2d0cb6[_0x273256(0x421)][_0x273256(0x573)]||{};if(!_0x52889e||_0x2f3f7f===void 0x0)return!0x1;const _0x34f3f2=_0x48e611['_getAPIPrefixPath']()+'/'+_0x2f3f7f+_0x273256(0x36f)+_0x52889e+'/allowed';if(_0x2d0cb6[_0x273256(0x3b2)]===_0x34f3f2)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2bb84d){const _0x319583=_0xb96d50;var _0x4b36c8;return(_0x4b36c8=_0x2bb84d[_0x319583(0x421)])==null?void 0x0:_0x4b36c8['body'];},'mergeParamsToRequest'(_0x2f191c,_0x51de1b){const _0x59de76=_0xb96d50,_0x4f5328=_0x48e611[_0x59de76(0x60a)]()+_0x59de76(0x4db),_0x4fd997=_0x2f191c[_0x59de76(0x2bc)]((_0x3804bf,_0x18e4ef)=>{const _0x16f8d3=_0x59de76,{unitID:_0x1e8a5e,objectID:_0x11f7cd,objectType:_0x20236f,actions:_0x41f15c}=_0x18e4ef;return _0x3804bf[_0x1e8a5e]||(_0x3804bf[_0x1e8a5e]={}),_0x3804bf[_0x1e8a5e][_0x11f7cd]||(_0x3804bf[_0x1e8a5e][_0x11f7cd]={'objectID':_0x11f7cd,'objectType':_0x20236f,'actions':[]}),_0x3804bf[_0x1e8a5e][_0x11f7cd][_0x16f8d3(0x349)][_0x16f8d3(0x479)](..._0x41f15c),_0x3804bf;},{}),_0xbc5bc3=[];for(const _0x3c0953 in _0x4fd997)for(const _0x25dc36 in _0x4fd997[_0x3c0953]){const {actions:_0x1acaf7,objectType:_0x1fc4d4}=_0x4fd997[_0x3c0953][_0x25dc36],_0x4ec43f=[...new Set(_0x1acaf7)];_0xbc5bc3[_0x59de76(0x479)]({'unitID':_0x3c0953,'objectID':_0x25dc36,'objectType':_0x1fc4d4,'actions':_0x4ec43f});}return new _0x59f944['HTTPRequest'](_0x59de76(0x5de),_0x4f5328,{'headers':_0x51de1b[_0x59de76(0x4e4)],'withCredentials':_0x51de1b[_0x59de76(0x4b4)],'responseType':_0x51de1b[_0x59de76(0x495)],'body':{'requests':_0xbc5bc3}});}},{'distributeResult'(_0x3d959d,_0x4f4782){const _0x3ac806=_0xb96d50,{objectActions:_0x100851}=_0x3d959d;return _0x4f4782[_0x3ac806(0x5ef)](_0x55104c=>{const _0x9de7f7=_0x3ac806,{unitID:_0x13c9e4,objectID:_0x25f223,actions:_0x13d319}=_0x55104c,_0x18f1f0=_0x100851[_0x9de7f7(0x5ce)](_0x2eebd3=>_0x2eebd3[_0x9de7f7(0x4dc)]===_0x13c9e4&&_0x2eebd3[_0x9de7f7(0x424)]===_0x25f223),_0x1a645a=_0x13d319[_0x9de7f7(0x5ef)](_0x43bce8=>_0x18f1f0==null?void 0x0:_0x18f1f0[_0x9de7f7(0x349)][_0x9de7f7(0x5ce)](_0x10ebcb=>_0x10ebcb[_0x9de7f7(0x412)]===_0x43bce8))[_0x9de7f7(0x4ea)](_0x3c9f74=>!!_0x3c9f74);return{'config':_0x55104c,'result':{'actions':_0x1a645a,'error':_0x3d959d[_0x9de7f7(0x5c5)]}};});}})}));}[_0x5ebc5d(0x60a)](){const _0x10f6e7=_0x5ebc5d;var _0x55f25d,_0x324513;const _0x466512=this[_0x10f6e7(0x45e)][_0x10f6e7(0x602)](_0x56cb49),_0xcdb734=this[_0x10f6e7(0x45e)]['getConfig'](_0x5dd0cc);return(_0x324513=(_0x55f25d=_0xcdb734==null?void 0x0:_0xcdb734['authzUrl'])!=null?_0x55f25d:_0x466512)!=null?_0x324513:_0x15bcbd;}async[_0x5ebc5d(0x3ff)](_0x2e0c17){const _0xfe9402=_0x5ebc5d,_0x296fc1=this[_0xfe9402(0x60a)]()+'/'+_0x2e0c17[_0xfe9402(0x48b)]+'/object';return(await this['_HTTPService'][_0xfe9402(0x3ac)](_0x296fc1,{'body':_0x2e0c17}))['body'][_0xfe9402(0x424)]||'';}async[_0x5ebc5d(0x47a)](_0x132e71){const _0x3ccab1=_0x5ebc5d,_0x343186=this[_0x3ccab1(0x60a)]()+_0x3ccab1(0x23b);return(await this[_0x3ccab1(0x582)][_0x3ccab1(0x3ac)](_0x343186,{'body':_0x132e71}))[_0x3ccab1(0x573)][_0x3ccab1(0x553)];}async[_0x5ebc5d(0x310)](_0x1dc369){const _0x2b0e64=_0x5ebc5d,_0x3332ca=this[_0x2b0e64(0x60a)]()+'/'+_0x1dc369['objectType']+_0x2b0e64(0x36f)+_0x1dc369[_0x2b0e64(0x424)];await this[_0x2b0e64(0x582)][_0x2b0e64(0x442)](_0x3332ca,{'body':_0x1dc369});}async[_0x5ebc5d(0x2e7)](_0x363d21){const _0x48506e=_0x5ebc5d,_0x484369=this[_0x48506e(0x60a)]()+'/'+_0x363d21['objectType']+_0x48506e(0x36f)+_0x363d21[_0x48506e(0x424)]+_0x48506e(0x360);return(await this['_HTTPService'][_0x48506e(0x3ac)](_0x484369,{'body':_0x363d21}))['body'][_0x48506e(0x349)];}async[_0x5ebc5d(0x3ba)](_0x3cceff){const _0x575082=_0x5ebc5d,_0x3ac4a4=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this['_HTTPService'][_0x575082(0x3ac)](_0x3ac4a4,{'body':{'requests':_0x3cceff}}))[_0x575082(0x573)][_0x575082(0x374)];}async['listRoles'](_0x4029c0){const _0x1b0802=_0x5ebc5d,_0x10c872=this[_0x1b0802(0x60a)]()+'/'+_0x4029c0[_0x1b0802(0x48b)]+_0x1b0802(0x2ec),_0x3d0660=await this['_HTTPService'][_0x1b0802(0x3ac)](_0x10c872,{'body':_0x4029c0});return{'roles':_0x3d0660[_0x1b0802(0x573)][_0x1b0802(0x2e9)],'actions':_0x3d0660['body']['actions']};}async['deleteCollaborator'](_0x19a521){const _0x57437d=_0x5ebc5d,_0x28e74e=this[_0x57437d(0x60a)]()+_0x57437d(0x3df);await this[_0x57437d(0x582)][_0x57437d(0x51a)](_0x28e74e,{'params':{'collaboratorID':_0x19a521[_0x57437d(0x29b)],'objectID':_0x19a521[_0x57437d(0x424)],'unitID':_0x19a521[_0x57437d(0x4dc)]}});}async['updateCollaborator'](_0x5ebd47){const _0x4dc9c9=_0x5ebc5d,_0xacadc2=this[_0x4dc9c9(0x60a)]()+_0x4dc9c9(0x3df);await this[_0x4dc9c9(0x582)][_0x4dc9c9(0x1e4)](_0xacadc2,{'body':_0x5ebd47});}async[_0x5ebc5d(0x434)](_0x5ab6b8){const _0x31e7f7=_0x5ebc5d,_0x5b7d9f=this[_0x31e7f7(0x60a)]()+_0x31e7f7(0x3df);await this[_0x31e7f7(0x582)][_0x31e7f7(0x3ac)](_0x5b7d9f,{'body':_0x5ab6b8});}async[_0x5ebc5d(0x415)](_0x74610f){const _0x107529=_0x5ebc5d,_0x185677=this['_getAPIPrefixPath']()+'/collaborator';return(await this[_0x107529(0x582)][_0x107529(0x222)](_0x185677,{'params':{'objectID':_0x74610f[_0x107529(0x424)],'unitID':_0x74610f[_0x107529(0x4dc)]}}))[_0x107529(0x573)][_0x107529(0x58b)];}async[_0x5ebc5d(0x5ec)](_0x5c7f4c){const _0x24b8ab=_0x5ebc5d,_0x1bf437=this[_0x24b8ab(0x60a)]()+'/collaborator';await this[_0x24b8ab(0x582)][_0x24b8ab(0x442)](_0x1bf437,{'body':_0x5c7f4c});}},_0x52f4d9[_0x5ebc5d(0x5a5)]=_0x286281([_0x47758c(0x0,_0x204831[_0x5ebc5d(0x5cf)](_0x59f944[_0x5ebc5d(0x5a1)])),_0x47758c(0x1,_0x204831[_0x5ebc5d(0x5cf)](_0x204831['IConfigService']))],_0x52f4d9[_0x5ebc5d(0x5a5)]);var _0x3f72ff=Object[_0x5ebc5d(0x552)],_0x19b48c=Object['getOwnPropertyDescriptor'],_0x1151eb=(_0x9622de,_0x1bcc7d,_0xcdbc31,_0x2d4629)=>{const _0x29b6ed=_0x5ebc5d;for(var _0xf9073e=_0x2d4629>0x1?void 0x0:_0x2d4629?_0x19b48c(_0x1bcc7d,_0xcdbc31):_0x1bcc7d,_0x4e4162=_0x9622de[_0x29b6ed(0x522)]-0x1,_0x231748;_0x4e4162>=0x0;_0x4e4162--)(_0x231748=_0x9622de[_0x4e4162])&&(_0xf9073e=(_0x2d4629?_0x231748(_0x1bcc7d,_0xcdbc31,_0xf9073e):_0x231748(_0xf9073e))||_0xf9073e);return _0x2d4629&&_0xf9073e&&_0x3f72ff(_0x1bcc7d,_0xcdbc31,_0xf9073e),_0xf9073e;},_0x9eb43d=(_0x31f68e,_0x82c6b7)=>(_0x24c6f3,_0x4bb407)=>_0x82c6b7(_0x24c6f3,_0x4bb407,_0x31f68e);let _0x1462a6=class{constructor(_0x596fc3){const _0x4e7500=_0x5ebc5d;this[_0x4e7500(0x20b)]=_0x596fc3,this['_initRequestHeader']();}[_0x5ebc5d(0x289)](){const _0x117898=_0x5ebc5d;this[_0x117898(0x20b)][_0x117898(0x3a4)]({'interceptor':(_0x54a10d,_0x547498)=>{const _0x38eaab=_0x117898,_0x9fcca0=_0x54a10d[_0x38eaab(0x4e4)],_0x4061e9=_0x3642e[_0x38eaab(0x281)]();return _0x4061e9&&_0x9fcca0[_0x38eaab(0x5a4)](_0x38eaab(0x1f3),_0x4061e9),_0x547498(_0x54a10d);}});}};_0x1462a6=_0x1151eb([_0x9eb43d(0x0,_0x204831[_0x5ebc5d(0x5cf)](_0x59f944['HTTPService']))],_0x1462a6);var _0x4f692d=Object[_0x5ebc5d(0x552)],_0x129f52=Object['getOwnPropertyDescriptor'],_0x1faa38=(_0x355b97,_0x2cd071,_0x48db6f,_0x581b40)=>{const _0x222da4=_0x5ebc5d;for(var _0xba4448=_0x581b40>0x1?void 0x0:_0x581b40?_0x129f52(_0x2cd071,_0x48db6f):_0x2cd071,_0x2d8633=_0x355b97[_0x222da4(0x522)]-0x1,_0xd2c72b;_0x2d8633>=0x0;_0x2d8633--)(_0xd2c72b=_0x355b97[_0x2d8633])&&(_0xba4448=(_0x581b40?_0xd2c72b(_0x2cd071,_0x48db6f,_0xba4448):_0xd2c72b(_0xba4448))||_0xba4448);return _0x581b40&&_0xba4448&&_0x4f692d(_0x2cd071,_0x48db6f,_0xba4448),_0xba4448;},_0x21fe2d=(_0x4138c4,_0x1cde81)=>(_0x1ccfa6,_0x9c350a)=>_0x1cde81(_0x1ccfa6,_0x9c350a,_0x4138c4);const _0x300acd=[_0x5ebc5d(0x3c2),_0x5ebc5d(0x50b),_0x5ebc5d(0x500),'image/gif',_0x5ebc5d(0x46c)],_0xb80948=0x5*0x400*0x400,_0xecd043=_0x5ebc5d(0x3e8),_0x12d21f=_0x5ebc5d(0x58f),_0x1807eb=_0x5ebc5d(0x216),_0x2b4c86=_0x5ebc5d(0x387);_0x52f4d9['ImageIoService']=class{constructor(_0x54bd07,_0x313632,_0x382449){const _0x2d4959=_0x5ebc5d;_0x3d4e20(this,_0x2d4959(0x345),0x0),_0x3d4e20(this,_0x2d4959(0x5f1),new _0x2ea3f3[(_0x2d4959(0x31a))]()),_0x3d4e20(this,_0x2d4959(0x27b),this['_change$']),_0x3d4e20(this,_0x2d4959(0x280),new Map()),(this[_0x2d4959(0x20b)]=_0x54bd07,this[_0x2d4959(0x45e)]=_0x313632,this[_0x2d4959(0x48f)]=_0x382449);}['setWaitCount'](_0x4e4742){const _0x2cd893=_0x5ebc5d;this['_waitCount']=_0x4e4742,this[_0x2cd893(0x5f1)][_0x2cd893(0x50a)](_0x4e4742);}[_0x5ebc5d(0x390)](_0x26ee72,_0x41c696){const _0x387e80=_0x5ebc5d;if(_0x41c696===_0xf94d17[_0x387e80(0x396)][_0x387e80(0x26c)]){const _0x31a851=new Image();return _0x31a851['src']=_0x26ee72,_0x31a851;}return this[_0x387e80(0x280)]['get'](_0x26ee72);}[_0x5ebc5d(0x2c7)](_0x5793db,_0x12a304,_0x5df07e){const _0x443b75=_0x5ebc5d;_0x12a304===_0xf94d17[_0x443b75(0x396)][_0x443b75(0x26c)]||_0x5df07e==null||this['_imageSourceCache'][_0x443b75(0x5a4)](_0x5793db,_0x5df07e);}async[_0x5ebc5d(0x2fa)](_0x213820){const _0x2e31f8=_0x5ebc5d;try{const _0x1e2358=this[_0x2e31f8(0x4bc)](this[_0x2e31f8(0x423)](),''+_0x213820),_0x20fa0a=(await this[_0x2e31f8(0x20b)][_0x2e31f8(0x222)](_0x1e2358))[_0x2e31f8(0x573)];if(_0x20fa0a['error']&&_0x20fa0a[_0x2e31f8(0x5c5)]['code']===_0x57fda0['OK']){const _0x552ae3=new URL(_0x20fa0a[_0x2e31f8(0x3b2)],this[_0x2e31f8(0x4a6)]())['toString']();return Promise[_0x2e31f8(0x56e)](_0x552ae3);}return Promise['reject'](_0x20fa0a[_0x2e31f8(0x5c5)]);}catch(_0xdd68ba){return Promise['reject'](_0xdd68ba);}}async[_0x5ebc5d(0x480)](_0x519a7f){const _0x3be183=_0x5ebc5d;let _0x2bb1cf='';if(!_0x300acd[_0x3be183(0x407)](_0x519a7f[_0x3be183(0x28e)]))return this['_decreaseWaiting'](),Promise[_0x3be183(0x25a)](new Error(_0xf94d17[_0x3be183(0x41f)][_0x3be183(0x264)]));if(_0x519a7f[_0x3be183(0x2f2)]>_0xb80948)return this['_decreaseWaiting'](),Promise[_0x3be183(0x25a)](new Error(_0xf94d17[_0x3be183(0x41f)][_0x3be183(0x3bf)]));try{const _0x458cd4=new FormData();_0x458cd4[_0x3be183(0x615)](_0x3be183(0x569),_0x519a7f);const _0x291e9d=this['_univerInstanceService']['getFocusedUnit'](),_0x4f3e70=_0x291e9d==null?void 0x0:_0x291e9d['getUnitId']();if(!_0x4f3e70)throw new Error(_0x3be183(0x566));const _0x51c140=this[_0x3be183(0x3bc)]()+'?size='+_0x519a7f[_0x3be183(0x2f2)][_0x3be183(0x5bf)]()+_0x3be183(0x50e)+_0x3ee7c8[_0x3be183(0x2cc)]+'&assign='+encodeURIComponent(_0x4f3e70),_0x7b7345=await(await fetch(_0x51c140,{'method':'POST','body':_0x458cd4}))['json']();if(typeof _0x7b7345[_0x3be183(0x618)]!='string')return this['_decreaseWaiting'](),Promise[_0x3be183(0x25a)](new Error(_0xf94d17['ImageUploadStatusType'][_0x3be183(0x356)]));_0x2bb1cf=_0x7b7345[_0x3be183(0x618)];}catch{return this[_0x3be183(0x347)](),Promise[_0x3be183(0x25a)](new Error(_0xf94d17[_0x3be183(0x41f)][_0x3be183(0x356)]));}return new Promise((_0x23938f,_0x3b1823)=>{const _0x5f5891=_0x3be183,_0x1f72ee=new FileReader();_0x1f72ee[_0x5f5891(0x3d0)](_0x519a7f),_0x1f72ee[_0x5f5891(0x339)]=_0x119b06=>{const _0x4d7b32=_0x5f5891;var _0x5621fb;const _0x54bb86=(_0x5621fb=_0x119b06[_0x4d7b32(0x24d)])==null?void 0x0:_0x5621fb[_0x4d7b32(0x2a9)];if(_0x54bb86==null){this[_0x4d7b32(0x347)](),_0x3b1823(new Error(_0xf94d17[_0x4d7b32(0x41f)]['ERROR_IMAGE']));return;}const _0x3e6a9d=_0x204831['Tools'][_0x4d7b32(0x59c)](0x6);_0x23938f({'imageId':_0x3e6a9d,'imageSourceType':_0xf94d17[_0x4d7b32(0x396)]['UUID'],'source':_0x2bb1cf,'base64Cache':_0x54bb86,'status':_0xf94d17[_0x4d7b32(0x41f)][_0x4d7b32(0x3a9)]}),this['_decreaseWaiting']();};});}[_0x5ebc5d(0x3bc)](){const _0x1b8b6c=_0x5ebc5d;var _0x524488,_0x5543d5;const _0x293267=this['_configService'][_0x1b8b6c(0x602)](_0xecd043),_0x1bae6f=this['_configService'][_0x1b8b6c(0x602)](_0x5dd0cc);return(_0x5543d5=(_0x524488=_0x1bae6f==null?void 0x0:_0x1bae6f['uploadFileServerUrl'])!=null?_0x524488:_0x293267)!=null?_0x5543d5:_0x12d21f;}[_0x5ebc5d(0x423)](){const _0x470714=_0x5ebc5d;var _0xf7b735,_0xf55b85;const _0x375353=this['_configService'][_0x470714(0x602)](_0x1807eb),_0xfb102c=this[_0x470714(0x45e)][_0x470714(0x602)](_0x5dd0cc);return(_0xf55b85=(_0xf7b735=_0xfb102c==null?void 0x0:_0xfb102c[_0x470714(0x435)])!=null?_0xf7b735:_0x375353)!=null?_0xf55b85:_0x2b4c86;}[_0x5ebc5d(0x4a6)](){const _0x4beb95=_0x5ebc5d;var _0x252600;const _0x2d56fd=this['_configService'][_0x4beb95(0x602)](_0x5dd0cc);return(_0x252600=_0x2d56fd==null?void 0x0:_0x2d56fd[_0x4beb95(0x2b2)])!=null?_0x252600:location[_0x4beb95(0x3be)];}[_0x5ebc5d(0x4bc)](_0x1bfadc,_0x417520){const _0x713663=_0x5ebc5d;return _0x1bfadc['replace'](_0x713663(0x502),_0x417520);}[_0x5ebc5d(0x347)](){const _0x5a2023=_0x5ebc5d;this['_waitCount']-=0x1,this[_0x5a2023(0x5f1)][_0x5a2023(0x50a)](this['_waitCount']);}},_0x52f4d9[_0x5ebc5d(0x579)]=_0x1faa38([_0x21fe2d(0x0,_0x204831[_0x5ebc5d(0x5cf)](_0x59f944[_0x5ebc5d(0x5a1)])),_0x21fe2d(0x1,_0x204831[_0x5ebc5d(0x418)]),_0x21fe2d(0x2,_0x204831[_0x5ebc5d(0x5cf)](_0x204831['IUniverInstanceService']))],_0x52f4d9[_0x5ebc5d(0x579)]);var _0xb51b95=Object[_0x5ebc5d(0x552)],_0x3b2265=Object[_0x5ebc5d(0x38b)],_0x4e9495=(_0x559ba5,_0x23f60d,_0xd4df13,_0x46cbc6)=>{const _0x5f4a4e=_0x5ebc5d;for(var _0x11ad3b=_0x46cbc6>0x1?void 0x0:_0x46cbc6?_0x3b2265(_0x23f60d,_0xd4df13):_0x23f60d,_0x24132e=_0x559ba5[_0x5f4a4e(0x522)]-0x1,_0x324b2d;_0x24132e>=0x0;_0x24132e--)(_0x324b2d=_0x559ba5[_0x24132e])&&(_0x11ad3b=(_0x46cbc6?_0x324b2d(_0x23f60d,_0xd4df13,_0x11ad3b):_0x324b2d(_0x11ad3b))||_0x11ad3b);return _0x46cbc6&&_0x11ad3b&&_0xb51b95(_0x23f60d,_0xd4df13,_0x11ad3b),_0x11ad3b;},_0x4a515d=(_0x98ef41,_0x2f0da6)=>(_0x5e20ca,_0x36d121)=>_0x2f0da6(_0x5e20ca,_0x36d121,_0x98ef41);let _0x2df393=class extends _0x204831[_0x5ebc5d(0x3e5)]{constructor(_0x16d08d,_0x395dff,_0x4a7fae,_0x148d05,_0x1bc233){const _0x3d15fc=_0x5ebc5d;super(),this[_0x3d15fc(0x60c)]=_0x16d08d,this[_0x3d15fc(0x48f)]=_0x395dff,this[_0x3d15fc(0x25d)]=_0x4a7fae,this[_0x3d15fc(0x2b0)]=_0x148d05,this[_0x3d15fc(0x4af)]=_0x1bc233,this[_0x3d15fc(0x20a)](),this[_0x3d15fc(0x459)]();}[_0x5ebc5d(0x459)](){const _0x52312b=_0x5ebc5d,_0x3ae857=async _0x270daf=>{const _0x3a14d2=_0x1c68;(await this[_0x3a14d2(0x2b0)][_0x3a14d2(0x4ed)](_0x270daf))[_0x3a14d2(0x430)]['pipe'](_0x452c71[_0x3a14d2(0x4ea)](_0x56eb15=>_0x56eb15[_0x3a14d2(0x271)]===_0x292f17[_0x3a14d2(0x351)]['SHOULD_CLOSE_CONN']),_0x452c71[_0x3a14d2(0x31f)](this[_0x3a14d2(0x56d)]))[_0x3a14d2(0x2e1)](_0x44d5f6=>{const _0x5af163=_0x3a14d2,_0x11f95e=_0x44d5f6,{reason:_0x2c7d3a}=_0x11f95e[_0x5af163(0x5ea)];this[_0x5af163(0x60c)][_0x5af163(0x222)](_0x1e1361['IMessageService'])[_0x5af163(0x497)]({'type':_0x53bcf5[_0x5af163(0x465)][_0x5af163(0x56a)],'content':this[_0x5af163(0x4af)]['t']('collaboration.closeRoom')+'('+_0x2c7d3a+')'}),this[_0x5af163(0x25d)][_0x5af163(0x26a)](new _0x2850a0['WorkbookEditablePermission'](_0x270daf)['id'],!0x1),this['_collaborationSessionService'][_0x5af163(0x218)](_0x270daf);});};_0x2ea3f3[_0x52312b(0x559)](this[_0x52312b(0x48f)][_0x52312b(0x39d)](_0x204831[_0x52312b(0x49b)][_0x52312b(0x49c)]),this['_univerInstanceService'][_0x52312b(0x39d)](_0x204831[_0x52312b(0x49b)][_0x52312b(0x3ef)]))[_0x52312b(0x30d)](_0x452c71[_0x52312b(0x5ef)](_0x4ff8d2=>_0x4ff8d2[_0x52312b(0x34b)]()),_0x452c71[_0x52312b(0x4ea)](_0x1c22d4=>!_0x204831[_0x52312b(0x26b)](_0x1c22d4)),_0x452c71[_0x52312b(0x31f)](this[_0x52312b(0x56d)]))[_0x52312b(0x2e1)](_0x3c3051=>{_0x3ae857(_0x3c3051);});}[_0x5ebc5d(0x20a)](){const _0x473108=_0x5ebc5d,_0x4eae01=async _0x3df5ba=>{const _0x1d1160=_0x1c68;(await this[_0x1d1160(0x2b0)][_0x1d1160(0x4ed)](_0x3df5ba))[_0x1d1160(0x430)][_0x1d1160(0x30d)](_0x452c71[_0x1d1160(0x4ea)](_0x355b2a=>_0x355b2a[_0x1d1160(0x271)]===_0x292f17[_0x1d1160(0x351)][_0x1d1160(0x57b)]),_0x452c71[_0x1d1160(0x31f)](this['dispose$']))[_0x1d1160(0x2e1)](_0x5592b8=>{const _0x3adff6=_0x1d1160,_0x24caff=_0x5592b8,{objectId:_0x23e0a7}=_0x24caff[_0x3adff6(0x5ea)],_0x390e34=this[_0x3adff6(0x60c)][_0x3adff6(0x222)](_0x58dbff[_0x3adff6(0x246)]);_0x23e0a7===_0x3df5ba?_0x390e34['initWorkbookPermissionChange'](_0x3df5ba):_0x390e34[_0x3adff6(0x59d)](_0x3df5ba,_0x23e0a7);});};_0x2ea3f3[_0x473108(0x559)](this[_0x473108(0x48f)][_0x473108(0x39d)](_0x204831['UniverInstanceType'][_0x473108(0x49c)]),this[_0x473108(0x48f)]['getTypeOfUnitAdded$'](_0x204831['UniverInstanceType'][_0x473108(0x3ef)]))[_0x473108(0x30d)](_0x452c71[_0x473108(0x5ef)](_0x130171=>_0x130171['getUnitId']()),_0x452c71[_0x473108(0x4ea)](_0x25acc2=>!_0x204831[_0x473108(0x26b)](_0x25acc2)),_0x452c71['takeUntil'](this[_0x473108(0x56d)]))['subscribe'](_0x5357c5=>{_0x4eae01(_0x5357c5);});}};_0x2df393=_0x4e9495([_0x4a515d(0x0,_0x204831[_0x5ebc5d(0x5cf)](_0x204831['Injector'])),_0x4a515d(0x1,_0x204831[_0x5ebc5d(0x335)]),_0x4a515d(0x2,_0x204831[_0x5ebc5d(0x57a)]),_0x4a515d(0x3,_0x204831[_0x5ebc5d(0x5cf)](_0x52f4d9['CollaborationSessionService'])),_0x4a515d(0x4,_0x204831['Inject'](_0x204831[_0x5ebc5d(0x2f5)]))],_0x2df393);var _0x3e0ad4=Object[_0x5ebc5d(0x552)],_0x566dff=Object[_0x5ebc5d(0x38b)],_0x285d1a=(_0x191b98,_0x321201,_0xe34355,_0x4b9378)=>{const _0x2b5ef0=_0x5ebc5d;for(var _0x19f19e=_0x4b9378>0x1?void 0x0:_0x4b9378?_0x566dff(_0x321201,_0xe34355):_0x321201,_0x2e4440=_0x191b98[_0x2b5ef0(0x522)]-0x1,_0x193b78;_0x2e4440>=0x0;_0x2e4440--)(_0x193b78=_0x191b98[_0x2e4440])&&(_0x19f19e=(_0x4b9378?_0x193b78(_0x321201,_0xe34355,_0x19f19e):_0x193b78(_0x19f19e))||_0x19f19e);return _0x4b9378&&_0x19f19e&&_0x3e0ad4(_0x321201,_0xe34355,_0x19f19e),_0x19f19e;},_0x44fa97=(_0xe6dd56,_0x2f8967)=>(_0x33306b,_0x1d67ae)=>_0x2f8967(_0x33306b,_0x1d67ae,_0xe6dd56);_0x52f4d9[_0x5ebc5d(0x298)]=class{constructor(_0x1b345d,_0x57f3ec){this['_configService']=_0x1b345d,this['_httpService']=_0x57f3ec;}async['getUnitOnRev'](_0x18db0a,_0xa696f4){const _0xd8a523=_0x5ebc5d;var _0x58c3b9;const {unitID:_0x44474e,type:_0x264fba,revision:_0x30ecf4=0x0}=_0xa696f4,_0x247d80=this['_getSnapshotAPIPrefix']()+'/'+_0x264fba+_0xd8a523(0x276)+_0x44474e+_0xd8a523(0x3d9)+_0x30ecf4,_0xa8376b=(await this[_0xd8a523(0x20b)][_0xd8a523(0x222)](_0x247d80))['body'],_0x324286=(_0x58c3b9=_0xa8376b[_0xd8a523(0x378)])==null?void 0x0:_0x58c3b9[_0xd8a523(0x4a4)];if(_0x324286){const _0x4b8fdb=_0x324286==null?void 0x0:_0x324286[_0xd8a523(0x43e)],_0x20b261=_0x292f17['textEncoder'][_0xd8a523(0x1e2)](_0x292f17[_0xd8a523(0x51c)](_0x4b8fdb));_0x324286['originalMeta']=_0x20b261,Object[_0xd8a523(0x237)](_0x324286[_0xd8a523(0x2ad)])['forEach'](([,_0x3519a1])=>{const _0x30bb4e=_0xd8a523,_0x46655c=_0x3519a1['originalMeta'],_0x27893e=_0x292f17[_0x30bb4e(0x3cc)][_0x30bb4e(0x1e2)](_0x292f17['b64DecodeUnicode'](_0x46655c));_0x3519a1[_0x30bb4e(0x43e)]=_0x27893e;});}return _0xa8376b;}async[_0x5ebc5d(0x48e)](_0x3c41b9,_0xc87d43){const _0x5f534c=_0x5ebc5d,{unitID:_0x197c27,type:_0x421d20,blockID:_0x11a085}=_0xc87d43,_0x1b16da=this[_0x5f534c(0x3f8)]()+'/'+_0x421d20+_0x5f534c(0x276)+_0x197c27+_0x5f534c(0x1e1)+_0x11a085;return(await this['_httpService'][_0x5f534c(0x222)](_0x1b16da))['body'];}async['getDeserializedSheetBlock'](_0x346cf4,_0x4611e7){const _0x52972d=_0x5ebc5d,{unitID:_0x4c817c,type:_0x55037e,blockID:_0x212c7c}=_0x4611e7,_0x2fa9d8=this['_getAPIPrefix']()+_0x52972d(0x1e1)+_0x55037e+_0x52972d(0x276)+_0x4c817c+_0x52972d(0x1e1)+_0x212c7c;return(await this[_0x52972d(0x20b)][_0x52972d(0x222)](_0x2fa9d8))[_0x52972d(0x573)];}async[_0x5ebc5d(0x2db)](_0xd9c26,_0x1adadd){const _0x1feb0d=_0x5ebc5d,{unitID:_0x512e75,type:_0x321b79,from:_0x3aa3e6,to:_0x3701e5}=_0x1adadd,_0x55e6fd=this[_0x1feb0d(0x3f8)]()+'/'+_0x321b79+_0x1feb0d(0x276)+_0x512e75+_0x1feb0d(0x427)+_0x3aa3e6+_0x1feb0d(0x3b6)+_0x3701e5;return(await this[_0x1feb0d(0x20b)][_0x1feb0d(0x222)](_0x55e6fd))[_0x1feb0d(0x573)];}['_getSnapshotAPIPrefix'](){const _0x1b6e06=_0x5ebc5d;var _0xf9ff84;return(_0xf9ff84=this[_0x1b6e06(0x45e)][_0x1b6e06(0x602)](_0x2cc68c))!=null?_0xf9ff84:this['_getAPIPrefix']();}[_0x5ebc5d(0x3f8)](){const _0x1511c3=_0x5ebc5d;var _0x4208cb,_0x4aac4c;const _0x2615be=this[_0x1511c3(0x45e)][_0x1511c3(0x602)](_0x225bd6),_0x2e322a=this[_0x1511c3(0x45e)]['getConfig'](_0x5dd0cc);return(_0x4aac4c=(_0x4208cb=_0x2e322a==null?void 0x0:_0x2e322a['snapshotServerUrl'])!=null?_0x4208cb:_0x2615be)!=null?_0x4aac4c:_0x839084;}async[_0x5ebc5d(0x27a)](_0x1f2410,_0x2ac8ca){const _0x24b0de=_0x5ebc5d,_0x537a99=_0x24b0de(0x53c)+_0x2ac8ca[_0x24b0de(0x28e)]+_0x24b0de(0x276)+_0x2ac8ca[_0x24b0de(0x4dc)]+_0x24b0de(0x530);return(await this['_httpService'][_0x24b0de(0x222)](_0x537a99,{'params':{'resourceId':JSON[_0x24b0de(0x3c4)](_0x2ac8ca[_0x24b0de(0x45d)])}}))[_0x24b0de(0x573)];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x5ebc5d(0x217)](){const _0x185e2a=_0x5ebc5d;throw new Error(_0x185e2a(0x30c));}['saveChangeset'](){const _0x2989c3=_0x5ebc5d;throw new Error(_0x2989c3(0x30c));}[_0x5ebc5d(0x5b9)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},_0x52f4d9[_0x5ebc5d(0x298)]=_0x285d1a([_0x44fa97(0x0,_0x204831['IConfigService']),_0x44fa97(0x1,_0x204831[_0x5ebc5d(0x5cf)](_0x59f944['HTTPService']))],_0x52f4d9[_0x5ebc5d(0x298)]);var _0x5dcb65=Object[_0x5ebc5d(0x552)],_0x4bcc7d=Object[_0x5ebc5d(0x38b)],_0xc106b5=(_0x2ea04a,_0x12700d,_0x2182f7,_0x3cc901)=>{const _0x91b012=_0x5ebc5d;for(var _0xe61852=_0x3cc901>0x1?void 0x0:_0x3cc901?_0x4bcc7d(_0x12700d,_0x2182f7):_0x12700d,_0x4ba569=_0x2ea04a[_0x91b012(0x522)]-0x1,_0x18f233;_0x4ba569>=0x0;_0x4ba569--)(_0x18f233=_0x2ea04a[_0x4ba569])&&(_0xe61852=(_0x3cc901?_0x18f233(_0x12700d,_0x2182f7,_0xe61852):_0x18f233(_0xe61852))||_0xe61852);return _0x3cc901&&_0xe61852&&_0x5dcb65(_0x12700d,_0x2182f7,_0xe61852),_0xe61852;},_0x1a165f=(_0x2f507d,_0x332bdc)=>(_0x3c8361,_0x44d680)=>_0x332bdc(_0x3c8361,_0x44d680,_0x2f507d);let _0x176077=class extends _0x204831[_0x5ebc5d(0x338)]{constructor(_0x568984,_0x5a7b54,_0x4e05de,_0x1b1c0a,_0x5dfa8d){const _0xfb73f2=_0x5ebc5d;super(_0x568984,_0x5a7b54,_0x4e05de),this[_0xfb73f2(0x4d9)]=_0x1b1c0a,this['_logService']=_0x5dfa8d;}[_0x5ebc5d(0x2e3)](_0x128520,_0x35f8f3){const _0x66c2b=_0x5ebc5d,_0x46d6b7=this[_0x66c2b(0x2d7)](_0x128520);if(_0x46d6b7)try{const _0x5b42b5=this[_0x66c2b(0x2c1)](_0x46d6b7,_0x35f8f3);this[_0x66c2b(0x5d1)](_0x128520,_0x5b42b5);}catch(_0x3ecc32){this[_0x66c2b(0x5b0)][_0x66c2b(0x5c5)](_0x66c2b(0x21f),_0x3ecc32),this[_0x66c2b(0x223)](_0x128520);}const _0x3282ca=this[_0x66c2b(0x5a6)](_0x128520);if(_0x3282ca)try{const _0x59e6ab=this['_transformStack'](_0x3282ca,_0x35f8f3);this[_0x66c2b(0x308)](_0x128520,_0x59e6ab);}catch(_0x3a54c4){this[_0x66c2b(0x5b0)][_0x66c2b(0x5c5)](_0x3a54c4),this[_0x66c2b(0x227)](_0x128520);}}['_clearUndo'](_0x3afee2){const _0x315452=_0x5ebc5d,_0x4ef946=this[_0x315452(0x2d7)](_0x3afee2);_0x4ef946&&(_0x4ef946[_0x315452(0x522)]=0x0,this[_0x315452(0x22d)]());}[_0x5ebc5d(0x227)](_0x20d201){const _0x39901c=_0x5ebc5d,_0x2f3f3c=this[_0x39901c(0x5a6)](_0x20d201);_0x2f3f3c&&(_0x2f3f3c[_0x39901c(0x522)]=0x0,this['_updateStatus']());}[_0x5ebc5d(0x5d1)](_0x4f434e,_0x280ef7){const _0x58d783=_0x5ebc5d;this[_0x58d783(0x43a)][_0x58d783(0x5a4)](_0x4f434e,_0x280ef7),this[_0x58d783(0x22d)]();}[_0x5ebc5d(0x308)](_0x3b992a,_0x4ac361){const _0x561e9f=_0x5ebc5d;this[_0x561e9f(0x606)][_0x561e9f(0x5a4)](_0x3b992a,_0x4ac361),this[_0x561e9f(0x22d)]();}[_0x5ebc5d(0x2c1)](_0x2e2b3c,_0x40d90e){const _0x1f598c=_0x5ebc5d,_0x5f0138=[];let _0x4955d7=_0x40d90e,_0x13cb79=_0x40d90e;for(let _0x4a200b=_0x2e2b3c['length']-0x1;_0x4a200b>=0x0;_0x4a200b--){const {unitID:_0x4c3866,undoMutations:_0x5b03bf,redoMutations:_0x3e492a}=_0x2e2b3c[_0x4a200b],_0x586727=this[_0x1f598c(0x4d9)][_0x1f598c(0x557)](_0x4955d7,_0x5b03bf),_0x3a7177=this[_0x1f598c(0x4d9)]['transformMutationsWithChangeset'](_0x13cb79,_0x3e492a);if(_0x292f17[_0x1f598c(0x5ed)](_0x586727)||_0x292f17['isTransformMutationsWithChangesetFailure'](_0x3a7177)){this[_0x1f598c(0x5b0)][_0x1f598c(0x5c5)](_0x1f598c(0x21f),_0x1f598c(0x25b),_0x586727,_0x3a7177);break;}_0x4955d7=_0x586727[_0x1f598c(0x49a)],_0x13cb79=_0x3a7177[_0x1f598c(0x49a)],_0x5f0138[_0x1f598c(0x479)]({'unitID':_0x4c3866,'undoMutations':_0x586727[_0x1f598c(0x3a3)],'redoMutations':_0x3a7177[_0x1f598c(0x3a3)]});}return _0x5f0138[_0x1f598c(0x317)]();}};_0x176077=_0xc106b5([_0x1a165f(0x0,_0x204831['IUniverInstanceService']),_0x1a165f(0x1,_0x204831[_0x5ebc5d(0x2de)]),_0x1a165f(0x2,_0x204831[_0x5ebc5d(0x526)]),_0x1a165f(0x3,_0x292f17[_0x5ebc5d(0x446)]),_0x1a165f(0x4,_0x204831[_0x5ebc5d(0x4a5)])],_0x176077);class _0x550fcb extends _0x204831[_0x5ebc5d(0x3e5)]{constructor(){const _0x1e6a48=_0x5ebc5d;super(),_0x3d4e20(this,_0x1e6a48(0x40a)),this[_0x1e6a48(0x40a)]=_0x2ea3f3['fromEvent'](window,'popstate')['pipe'](_0x2ea3f3[_0x1e6a48(0x31f)](this[_0x1e6a48(0x56d)]),_0x2ea3f3[_0x1e6a48(0x461)](0x1),_0x2ea3f3[_0x1e6a48(0x5a3)](void 0x0));}['setParam'](_0x4c903b,_0x27b63e,_0x37cc68=!0x1){const _0x20aeca=_0x5ebc5d,_0x197637=new URL(window['location'][_0x20aeca(0x5ae)]);_0x197637[_0x20aeca(0x1ef)][_0x20aeca(0x5a4)](_0x4c903b,_0x27b63e),_0x37cc68?window[_0x20aeca(0x318)][_0x20aeca(0x4e3)]('','',_0x197637[_0x20aeca(0x5bf)]()):window[_0x20aeca(0x318)][_0x20aeca(0x486)]('','',_0x197637[_0x20aeca(0x5bf)]());}[_0x5ebc5d(0x2c9)](_0x392a1d,_0xf618e6=!0x1){const _0x518c5f=_0x5ebc5d,_0x4092cf=new URL(window[_0x518c5f(0x2ca)][_0x518c5f(0x5ae)]);_0x4092cf['searchParams'][_0x518c5f(0x51a)](_0x392a1d),_0xf618e6?window[_0x518c5f(0x318)][_0x518c5f(0x4e3)]('','',_0x4092cf['toString']()):window['history'][_0x518c5f(0x486)]('','',_0x4092cf['toString']());}[_0x5ebc5d(0x25f)](_0xa6bf6b){const _0xb6176f=_0x5ebc5d;var _0x59cbd8;return(_0x59cbd8=new URL(window['location'][_0xb6176f(0x5ae)])['searchParams'][_0xb6176f(0x222)](_0xa6bf6b))!=null?_0x59cbd8:void 0x0;}}var _0xea89=Object[_0x5ebc5d(0x552)],_0xdf7505=Object['getOwnPropertyDescriptor'],_0x223d99=(_0x140a31,_0x517c46,_0x451baf)=>_0x517c46 in _0x140a31?_0xea89(_0x140a31,_0x517c46,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x451baf}):_0x140a31[_0x517c46]=_0x451baf,_0x4fb136=(_0x29dc0b,_0x43fd50,_0x4e77a0,_0xfecc81)=>{for(var _0x1f22a9=_0xfecc81>0x1?void 0x0:_0xfecc81?_0xdf7505(_0x43fd50,_0x4e77a0):_0x43fd50,_0x43674c=_0x29dc0b['length']-0x1,_0xb81ebd;_0x43674c>=0x0;_0x43674c--)(_0xb81ebd=_0x29dc0b[_0x43674c])&&(_0x1f22a9=(_0xfecc81?_0xb81ebd(_0x43fd50,_0x4e77a0,_0x1f22a9):_0xb81ebd(_0x1f22a9))||_0x1f22a9);return _0xfecc81&&_0x1f22a9&&_0xea89(_0x43fd50,_0x4e77a0,_0x1f22a9),_0x1f22a9;},_0x41b446=(_0x11e90b,_0x59a67a)=>(_0x26e116,_0x5e7e1e)=>_0x59a67a(_0x26e116,_0x5e7e1e,_0x11e90b),_0x44b976=(_0x5db3eb,_0x375cc5,_0x346434)=>_0x223d99(_0x5db3eb,_0x375cc5+'',_0x346434);const _0x6dea1c='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x52f4d9[_0x5ebc5d(0x576)]=class extends _0x204831[_0x5ebc5d(0x321)]{constructor(_0x5c6f93=_0x5c6234,_0x33d2f4,_0x2043f7,_0x386e92,_0x350bc6){const _0x2b8e04=_0x5ebc5d;super(),this[_0x2b8e04(0x466)]=_0x5c6f93,this[_0x2b8e04(0x5b0)]=_0x33d2f4,this['_renderManagerService']=_0x2043f7,this[_0x2b8e04(0x60c)]=_0x386e92,this[_0x2b8e04(0x45e)]=_0x350bc6;const {..._0x4a5c8b}=this[_0x2b8e04(0x466)];this[_0x2b8e04(0x45e)]['setConfig'](_0x5dd0cc,_0x4a5c8b);}[_0x5ebc5d(0x5a9)](){const _0x272d83=_0x5ebc5d;this['_registerDependencies'](),_0x204831[_0x272d83(0x4f5)](this[_0x272d83(0x60c)],[[_0x55aa83],[_0x52f4d9['DataLoaderController']],[_0x2df393]]);}['onReady'](){const _0xed89ab=_0x5ebc5d;_0x204831[_0xed89ab(0x4f5)](this[_0xed89ab(0x60c)],[[_0x325718]]);}[_0x5ebc5d(0x2f4)](){const _0x441ebf=_0x5ebc5d;this[_0x441ebf(0x3d4)]();}[_0x5ebc5d(0x45b)](){const _0x28a8e3=_0x5ebc5d;var _0x4b43aa,_0x2311d5,_0x283803,_0x3aae87;this[_0x28a8e3(0x60c)][_0x28a8e3(0x4ee)](_0x204831[_0x28a8e3(0x4bb)])&&this[_0x28a8e3(0x5b0)][_0x28a8e3(0x5c5)](_0x28a8e3(0x536),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x13fe5c=[[_0x204831['IUndoRedoService'],{'useClass':_0x176077}],[_0x52f4d9[_0x28a8e3(0x31c)]],[_0x225093],[_0x59f944[_0x28a8e3(0x5a1)]],[_0x1e189c,{'useClass':_0x550fcb}],[_0x3796d3],[_0x52f4d9['LocalCacheService']],[_0x59f944[_0x28a8e3(0x2ac)]],[_0x59f474],[_0x21c497],[_0x4065da],[_0x3c4160],[_0x40487a],[_0x1462a6],[_0x43bd59],[_0x2df393],[_0x2fd48c,{'useClass':(_0x2311d5=(_0x4b43aa=this[_0x28a8e3(0x466)])==null?void 0x0:_0x4b43aa[_0x28a8e3(0x42d)])!=null?_0x2311d5:_0x52f4d9[_0x28a8e3(0x368)]}],[_0x59f944['IHTTPImplementation'],{'useClass':_0x59f944[_0x28a8e3(0x5fb)]}],[_0x292f17[_0x28a8e3(0x48a)],{'useClass':_0x52f4d9[_0x28a8e3(0x298)]}],[_0x204831[_0x28a8e3(0x49d)],{'useClass':_0x52f4d9['AuthzIoHttpService']}],[_0xf94d17[_0x28a8e3(0x3fc)],{'useClass':_0x52f4d9['ImageIoService']}],[_0x52f4d9[_0x28a8e3(0x558)]],[_0x52f4d9[_0x28a8e3(0x616)]],[_0x52f4d9['DesktopCollaborationStatusDisplayController']],[_0x325718],[_0x55aa83]];(_0x283803=this['_config'])!=null&&_0x283803[_0x28a8e3(0x417)]&&_0x13fe5c[_0x28a8e3(0x479)]([_0x4bdb01,{'useClass':_0x2cd1f1}]),_0x13fe5c=_0x204831[_0x28a8e3(0x44e)](_0x13fe5c,(_0x3aae87=this[_0x28a8e3(0x466)])==null?void 0x0:_0x3aae87['override']),_0x13fe5c['forEach'](_0xb40ab8=>this[_0x28a8e3(0x60c)]['add'](_0xb40ab8)),this['_initModules']();}['_registerRenderDependencies'](){const _0x453fff=_0x5ebc5d;this[_0x453fff(0x382)](this[_0x453fff(0x505)][_0x453fff(0x330)](_0x204831[_0x453fff(0x49b)][_0x453fff(0x3ef)],[_0x3a3963])),this[_0x453fff(0x382)](this['_renderManagerService'][_0x453fff(0x330)](_0x204831[_0x453fff(0x49b)]['UNIVER_SHEET'],[_0x25db3a]));}[_0x5ebc5d(0x2a0)](){const _0x2410d8=_0x5ebc5d;var _0x18f108,_0x19df0f;this['_injector']['get'](_0x59f944[_0x2410d8(0x5a1)])[_0x2410d8(0x3a4)]({'priority':0x14,'interceptor':_0x59f944[_0x2410d8(0x515)]({'maxParallel':0x6})}),this[_0x2410d8(0x60c)]['get'](_0x1462a6),(_0x18f108=this['_config'])!=null&&_0x18f108[_0x2410d8(0x348)]||this[_0x2410d8(0x60c)]['get'](_0x52f4d9[_0x2410d8(0x44b)])[_0x2410d8(0x283)](),(_0x19df0f=this[_0x2410d8(0x466)])!=null&&_0x19df0f['enableAuthServer']&&this[_0x2410d8(0x60c)]['get'](_0x40487a),this[_0x2410d8(0x60c)]['get'](_0x52f4d9[_0x2410d8(0x558)]),this[_0x2410d8(0x60c)][_0x2410d8(0x4ee)](_0x52f4d9[_0x2410d8(0x22c)])&&this[_0x2410d8(0x60c)][_0x2410d8(0x222)](_0x52f4d9['DesktopCollaborationStatusDisplayController']);}},_0x44b976(_0x52f4d9[_0x5ebc5d(0x576)],_0x5ebc5d(0x55e),_0x6dea1c),_0x52f4d9[_0x5ebc5d(0x576)]=_0x4fb136([_0x204831[_0x5ebc5d(0x36c)](_0x292f17[_0x5ebc5d(0x301)]),_0x41b446(0x1,_0x204831[_0x5ebc5d(0x4a5)]),_0x41b446(0x2,_0x98dfd7[_0x5ebc5d(0x210)]),_0x41b446(0x3,_0x204831[_0x5ebc5d(0x5cf)](_0x204831[_0x5ebc5d(0x28a)])),_0x41b446(0x4,_0x204831[_0x5ebc5d(0x418)])],_0x52f4d9[_0x5ebc5d(0x576)]),_0x52f4d9['AUTHZ_URL_KEY']=_0x56cb49,_0x52f4d9['COLLAB_SUBMIT_CHANGESET_URL_KEY']=_0x500ffa,_0x52f4d9['COLLAB_WEB_SOCKET_URL_KEY']=_0x5e1249,_0x52f4d9[_0x5ebc5d(0x444)]=_0x4ebacb,_0x52f4d9[_0x5ebc5d(0x2e6)]=_0x3e0c37,_0x52f4d9['CommentService']=_0x43bd59,_0x52f4d9[_0x5ebc5d(0x240)]=_0x10433d,_0x52f4d9['HEARTBEAT_TIMEOUT_KEY']=_0x1e8dea,_0x52f4d9[_0x5ebc5d(0x574)]=_0x2fd48c,_0x52f4d9[_0x5ebc5d(0x4b6)]=_0x1e189c,_0x52f4d9[_0x5ebc5d(0x2b3)]=_0xb98bd4,_0x52f4d9[_0x5ebc5d(0x516)]=_0x4d3acb,_0x52f4d9[_0x5ebc5d(0x58a)]=_0x5aece4,_0x52f4d9[_0x5ebc5d(0x428)]=_0x453db9,_0x52f4d9['SNAPSHOT_SERVER_URL_KEY']=_0x225bd6,_0x52f4d9[_0x5ebc5d(0x334)]=_0x2cc68c,_0x52f4d9[_0x5ebc5d(0x385)]=_0x52ce60,_0x52f4d9[_0x5ebc5d(0x2bb)]=_0x196d83,_0x52f4d9[_0x5ebc5d(0x416)]=_0x550fcb,_0x52f4d9[_0x5ebc5d(0x55f)]=_0xee418d,_0x52f4d9[_0x5ebc5d(0x5d0)]=_0x45f385,Object[_0x5ebc5d(0x552)](_0x52f4d9,Symbol['toStringTag'],{'value':_0x5ebc5d(0x598)});}));
1
+ function _0x2a06(_0x7402eb,_0x3de2a9){const _0x59d96d=_0x59d9();return _0x2a06=function(_0x2a063b,_0x2aa471){_0x2a063b=_0x2a063b-0x1a5;let _0x1b7550=_0x59d96d[_0x2a063b];return _0x1b7550;},_0x2a06(_0x7402eb,_0x3de2a9);}(function(_0x7047d1,_0x53e4bd){const _0x23ac26=_0x2a06,_0x113f0a=_0x7047d1();while(!![]){try{const _0x1d9dc3=-parseInt(_0x23ac26(0x297))/0x1+parseInt(_0x23ac26(0x46c))/0x2*(-parseInt(_0x23ac26(0x2e8))/0x3)+-parseInt(_0x23ac26(0x1d8))/0x4*(-parseInt(_0x23ac26(0x47e))/0x5)+-parseInt(_0x23ac26(0x341))/0x6*(-parseInt(_0x23ac26(0x1f7))/0x7)+parseInt(_0x23ac26(0x593))/0x8*(-parseInt(_0x23ac26(0x532))/0x9)+parseInt(_0x23ac26(0x45d))/0xa*(parseInt(_0x23ac26(0x1b5))/0xb)+parseInt(_0x23ac26(0x32f))/0xc*(parseInt(_0x23ac26(0x37e))/0xd);if(_0x1d9dc3===_0x53e4bd)break;else _0x113f0a['push'](_0x113f0a['shift']());}catch(_0x9e42db){_0x113f0a['push'](_0x113f0a['shift']());}}}(_0x59d9,0xd901d),function(_0x59c776,_0x4491b6){const _0x199181=_0x2a06;typeof exports==_0x199181(0x426)&&typeof module<'u'?_0x4491b6(exports,require('@univerjs/core'),require(_0x199181(0x466)),require(_0x199181(0x527)),require(_0x199181(0x4b3)),require(_0x199181(0x44c)),require(_0x199181(0x3e2)),require(_0x199181(0x55c)),require(_0x199181(0x2ce)),require('@univerjs/docs'),require(_0x199181(0x39f)),require(_0x199181(0x1d6)),require(_0x199181(0x36f)),require(_0x199181(0x509)),require('@univerjs/engine-formula'),require(_0x199181(0x4ff)),require('react'),require(_0x199181(0x3b1)),require('@univerjs-pro/license')):typeof define=='function'&&define['amd']?define([_0x199181(0x308),_0x199181(0x47b),_0x199181(0x466),'rxjs/operators',_0x199181(0x4b3),'@univerjs/ui',_0x199181(0x3e2),_0x199181(0x55c),_0x199181(0x2ce),'@univerjs/docs',_0x199181(0x39f),'@univerjs/sheets','@univerjs/engine-render',_0x199181(0x509),_0x199181(0x1e3),_0x199181(0x4ff),_0x199181(0x327),_0x199181(0x3b1),_0x199181(0x51f)],_0x4491b6):(_0x59c776=typeof globalThis<'u'?globalThis:_0x59c776||self,_0x4491b6(_0x59c776[_0x199181(0x39c)]={},_0x59c776[_0x199181(0x4f5)],_0x59c776[_0x199181(0x466)],_0x59c776[_0x199181(0x466)][_0x199181(0x53f)],_0x59c776[_0x199181(0x371)],_0x59c776[_0x199181(0x284)],_0x59c776[_0x199181(0x586)],_0x59c776[_0x199181(0x26d)],_0x59c776[_0x199181(0x29d)],_0x59c776[_0x199181(0x2c4)],_0x59c776['UniverDocsUi'],_0x59c776[_0x199181(0x299)],_0x59c776['UniverEngineRender'],_0x59c776['UniverDrawing'],_0x59c776[_0x199181(0x379)],_0x59c776[_0x199181(0x358)],_0x59c776[_0x199181(0x486)],_0x59c776[_0x199181(0x435)],_0x59c776[_0x199181(0x330)]));}(this,function(_0x19f7dc,_0x5ee268,_0x56990c,_0x2b56b2,_0x2e321b,_0x56f90f,_0x519640,_0x437f93,_0x28800d,_0x45fa2b,_0x2d522a,_0x149ec5,_0x454685,_0x10f0dc,_0x5cdf78,_0x2f74a8,_0x1d8717,_0x1f4649,_0x28eb5f){'use strict';const _0x1a9c4c=_0x2a06;var _0x5aaeb4=Object[_0x1a9c4c(0x340)],_0x8ef399=(_0x175c97,_0x10b721,_0x4f26e6)=>_0x10b721 in _0x175c97?_0x5aaeb4(_0x175c97,_0x10b721,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f26e6}):_0x175c97[_0x10b721]=_0x4f26e6,_0x1328f6=(_0x2e345f,_0x3c6c4a,_0x3f473d)=>_0x8ef399(_0x2e345f,typeof _0x3c6c4a!=_0x1a9c4c(0x353)?_0x3c6c4a+'':_0x3c6c4a,_0x3f473d);const _0x8e4b39=_0x1a9c4c(0x291),_0x549ccb=_0x1a9c4c(0x335),_0x496fb6='SNAPSHOT_URL_KEY',_0x10223c=_0x1a9c4c(0x55a),_0x4684ef='COLLAB_WEB_SOCKET_URL',_0x2db330=_0x1a9c4c(0x512),_0x41bc7c=_0x1a9c4c(0x287),_0x4d3fc9=_0x1a9c4c(0x286),_0x981892=_0x1a9c4c(0x281),_0x9bc94d=_0x1a9c4c(0x46b),_0x2d1c45=_0x1a9c4c(0x4cb),_0x240dfd=_0x1a9c4c(0x1f5),_0x2e60e8='LOGIN_URL_KEY',_0x4847b7=_0x1a9c4c(0x5aa);var _0x4ac219=(_0xc0fac9=>(_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x515)]=0x0]=_0x1a9c4c(0x515),_0xc0fac9[_0xc0fac9['OK']=0x1]='OK',_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x51c)]=0x2]=_0x1a9c4c(0x51c),_0xc0fac9[_0xc0fac9['PERMISSION_DENIED']=0x3]=_0x1a9c4c(0x25b),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x3d4)]=0x4]='NOT_FOUND',_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x2de)]=0x5]=_0x1a9c4c(0x2de),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x375)]=0x6]=_0x1a9c4c(0x375),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x48a)]=0x7]=_0x1a9c4c(0x48a),_0xc0fac9[_0xc0fac9['TOO_MANY_REQUESTS']=0x8]=_0x1a9c4c(0x34e),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x551)]=0x9]='COMPLETION_FINISHED',_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x349)]=0x1389]=_0x1a9c4c(0x349),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x1b9)]=0x1771]=_0x1a9c4c(0x1b9),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x473)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x484)]=0x1b59]=_0x1a9c4c(0x484),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x4ae)]=0x1b5a]=_0x1a9c4c(0x4ae),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x213)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x522)]=0x1b5c]=_0x1a9c4c(0x522),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x460)]=0x1f41]=_0x1a9c4c(0x460),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x2be)]=0x2329]=_0x1a9c4c(0x2be),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x398)]=0x232a]=_0x1a9c4c(0x398),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x5d2)]=0x232b]=_0x1a9c4c(0x5d2),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x255)]=0x232c]=_0x1a9c4c(0x255),_0xc0fac9[_0xc0fac9['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x415)]=0x2711]=_0x1a9c4c(0x415),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x47d)]=0x2712]=_0x1a9c4c(0x47d),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x4f0)]=0x2713]=_0x1a9c4c(0x4f0),_0xc0fac9[_0xc0fac9['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x1a9c4c(0x450),_0xc0fac9[_0xc0fac9['UNRECOGNIZED']=-0x1]=_0x1a9c4c(0x26b),_0xc0fac9))(_0x4ac219||{}),_0x69fde1=(_0x187360=>(_0x187360[_0x187360[_0x1a9c4c(0x4ee)]=0x0]=_0x1a9c4c(0x4ee),_0x187360[_0x187360['UNIVER_DOC']=0x1]=_0x1a9c4c(0x1ec),_0x187360[_0x187360[_0x1a9c4c(0x498)]=0x2]=_0x1a9c4c(0x498),_0x187360[_0x187360[_0x1a9c4c(0x24e)]=0x3]='UNIVER_SLIDE',_0x187360[_0x187360[_0x1a9c4c(0x4c7)]=0x4]=_0x1a9c4c(0x4c7),_0x187360[_0x187360[_0x1a9c4c(0x26b)]=-0x1]='UNRECOGNIZED',_0x187360))(_0x69fde1||{}),_0x4e0841=(_0x4a1e79=>(_0x4a1e79[_0x4a1e79[_0x1a9c4c(0x1d3)]=0x0]=_0x1a9c4c(0x1d3),_0x4a1e79[_0x4a1e79[_0x1a9c4c(0x24c)]=0x1]='HELLO',_0x4a1e79[_0x4a1e79['JOIN']=0x2]=_0x1a9c4c(0x271),_0x4a1e79[_0x4a1e79['LEAVE']=0x3]=_0x1a9c4c(0x2dc),_0x4a1e79[_0x4a1e79[_0x1a9c4c(0x332)]=0x4]=_0x1a9c4c(0x332),_0x4a1e79[_0x4a1e79['HEARTBEAT']=0x5]='HEARTBEAT',_0x4a1e79[_0x4a1e79['RECV']=0x6]='RECV',_0x4a1e79[_0x4a1e79['UNRECOGNIZED']=-0x1]=_0x1a9c4c(0x26b),_0x4a1e79))(_0x4e0841||{}),_0x389c04=(_0x490458=>(_0x490458[_0x490458[_0x1a9c4c(0x2ed)]=0x0]=_0x1a9c4c(0x2ed),_0x490458[_0x490458['OK']=0x1]='OK',_0x490458[_0x490458[_0x1a9c4c(0x30c)]=0x2]=_0x1a9c4c(0x30c),_0x490458[_0x490458[_0x1a9c4c(0x26b)]=-0x1]='UNRECOGNIZED',_0x490458))(_0x389c04||{}),_0x15145c=(_0x2478b1=>(_0x2478b1[_0x2478b1[_0x1a9c4c(0x30b)]=0x0]=_0x1a9c4c(0x30b),_0x2478b1[_0x2478b1[_0x1a9c4c(0x547)]=0x1]=_0x1a9c4c(0x547),_0x2478b1[_0x2478b1['HttpExport']=0x2]=_0x1a9c4c(0x4f2),_0x2478b1[_0x2478b1[_0x1a9c4c(0x4a3)]=0x3]=_0x1a9c4c(0x4a3),_0x2478b1[_0x2478b1[_0x1a9c4c(0x2e2)]=0x4]=_0x1a9c4c(0x2e2),_0x2478b1[_0x2478b1[_0x1a9c4c(0x26b)]=-0x1]=_0x1a9c4c(0x26b),_0x2478b1))(_0x15145c||{});const _0x17bae2=_0x1a9c4c(0x3e5),_0x552a85={};function _0x580925(_0x413703){const _0x47ee3f=_0x1a9c4c;var _0x4368ef,_0x45e3ac,_0x3ef452,_0x4a718e;const _0x1b2e59=_0x413703[_0x47ee3f(0x5ac)],_0x52aa59=JSON[_0x47ee3f(0x3f8)](_0x1b2e59);switch(_0x52aa59[_0x47ee3f(0x5ab)]){case _0x4e0841[_0x47ee3f(0x1f3)]:case _0x4e0841['HELLO']:{const _0x3f770d=_0x52aa59[_0x47ee3f(0x24b)];return{..._0x52aa59,'data':_0x3f770d,'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};}case _0x4e0841[_0x47ee3f(0x271)]:{const _0x3f40a7=_0x52aa59['joinRsp'];return{..._0x52aa59,'data':_0x3f40a7,'cmd':_0x52aa59['cmd']};}case _0x4e0841[_0x47ee3f(0x3a3)]:{const _0x59217b=_0x52aa59['collaMsg'];switch(_0x59217b['eventID']){case _0x437f93['CollaborationEvent']['PERMISSION_REJ']:return{..._0x52aa59,'data':{..._0x59217b,'data':(_0x4368ef=_0x59217b[_0x47ee3f(0x21c)])==null?void 0x0:_0x4368ef['cs']},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93['CollaborationEvent'][_0x47ee3f(0x513)]:return{..._0x52aa59,'data':{..._0x59217b,'data':(_0x45e3ac=_0x59217b[_0x47ee3f(0x448)])==null?void 0x0:_0x45e3ac['cs']},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93[_0x47ee3f(0x2c5)][_0x47ee3f(0x472)]:return{..._0x52aa59,'data':{..._0x59217b,'data':(_0x3ef452=_0x59217b[_0x47ee3f(0x4eb)])==null?void 0x0:_0x3ef452['cs']},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93[_0x47ee3f(0x2c5)][_0x47ee3f(0x4be)]:return{..._0x52aa59,'data':{..._0x59217b,'data':(_0x4a718e=_0x59217b['csRejEvent'])==null?void 0x0:_0x4a718e['cs']},'cmd':_0x52aa59['cmd']};case _0x437f93[_0x47ee3f(0x2c5)][_0x47ee3f(0x28d)]:return{..._0x52aa59,'data':{..._0x59217b,'data':_0x59217b['updateCursorEvent']},'cmd':_0x52aa59['cmd']};case _0x437f93['CollaborationEvent'][_0x47ee3f(0x51d)]:return{..._0x52aa59,'data':{..._0x59217b,'data':_0x59217b['joinEvent']},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93[_0x47ee3f(0x2c5)]['USERS_LEAVE']:return{..._0x52aa59,'data':{..._0x59217b,'data':_0x59217b['leaveEvent']},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93['CollaborationEvent'][_0x47ee3f(0x34a)]:return{..._0x52aa59,'data':{..._0x59217b,'data':_0x59217b[_0x47ee3f(0x35b)]},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93[_0x47ee3f(0x2c5)][_0x47ee3f(0x5c0)]:case _0x437f93[_0x47ee3f(0x2c5)]['LIVESHARE_OPERATION']:return{..._0x52aa59,'data':{..._0x59217b,'data':_0x59217b[_0x47ee3f(0x491)]},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93['CollaborationEvent'][_0x47ee3f(0x216)]:return{..._0x52aa59,'data':{..._0x59217b,'data':_0x59217b['liveShareNewHost']},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93[_0x47ee3f(0x2c5)][_0x47ee3f(0x467)]:return{..._0x52aa59,'data':_0x59217b,'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93[_0x47ee3f(0x2c5)][_0x47ee3f(0x390)]:return{..._0x52aa59,'data':{..._0x59217b,'data':_0x59217b[_0x47ee3f(0x458)]},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93[_0x47ee3f(0x2c5)][_0x47ee3f(0x54e)]:return{..._0x52aa59,'data':{..._0x59217b,'data':_0x59217b[_0x47ee3f(0x511)]},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93[_0x47ee3f(0x2c5)]['SHOULD_CLOSE_CONN']:return{..._0x52aa59,'data':{..._0x59217b,'data':_0x59217b[_0x47ee3f(0x2c8)]},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};default:return _0x52aa59;}}default:return _0x52aa59;}}function _0x28244a(_0x4f5a36){const _0x474ed8=_0x1a9c4c;switch(_0x4f5a36[_0x474ed8(0x5ab)]){case _0x4e0841[_0x474ed8(0x1f3)]:case _0x4e0841[_0x474ed8(0x24c)]:return JSON[_0x474ed8(0x301)]({'cmd':_0x4f5a36['cmd'],'routeKey':_0x4f5a36[_0x474ed8(0x4e6)]});case _0x4e0841[_0x474ed8(0x332)]:{let _0x563c25;switch(_0x4f5a36['data'][_0x474ed8(0x3f9)]){case _0x437f93[_0x474ed8(0x2c5)][_0x474ed8(0x28d)]:{_0x563c25={'eventID':_0x437f93[_0x474ed8(0x2c5)][_0x474ed8(0x28d)],'updateCursorEvent':_0x4f5a36['data'][_0x474ed8(0x5ac)]};break;}case _0x437f93[_0x474ed8(0x2c5)][_0x474ed8(0x288)]:{_0x563c25={'eventID':_0x437f93[_0x474ed8(0x2c5)]['USERS_LEAVE'],'leaveEvent':_0x4f5a36[_0x474ed8(0x5ac)][_0x474ed8(0x5ac)]};break;}case _0x437f93['CollaborationEvent'][_0x474ed8(0x51d)]:{_0x563c25={'eventID':_0x437f93['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x4f5a36[_0x474ed8(0x5ac)]['data']};break;}case _0x437f93[_0x474ed8(0x2c5)][_0x474ed8(0x34a)]:{_0x563c25={'eventID':_0x437f93['CollaborationEvent'][_0x474ed8(0x34a)],'liveShareNewHost':_0x4f5a36[_0x474ed8(0x5ac)][_0x474ed8(0x5ac)]};break;}case _0x437f93[_0x474ed8(0x2c5)][_0x474ed8(0x3cc)]:{_0x563c25={'eventID':_0x437f93[_0x474ed8(0x2c5)][_0x474ed8(0x3cc)],'liveShareOperation':_0x4f5a36[_0x474ed8(0x5ac)][_0x474ed8(0x5ac)]};break;}case _0x437f93[_0x474ed8(0x2c5)]['LIVESHARE_TERMINATE']:{_0x563c25={'eventID':_0x437f93[_0x474ed8(0x2c5)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x4f5a36[_0x474ed8(0x5ac)][_0x474ed8(0x5ac)]};break;}case _0x437f93[_0x474ed8(0x2c5)][_0x474ed8(0x434)]:{_0x563c25={'eventID':_0x437f93[_0x474ed8(0x2c5)][_0x474ed8(0x434)],'liveShareRequestHost':_0x4f5a36[_0x474ed8(0x5ac)][_0x474ed8(0x5ac)]};break;}case _0x437f93[_0x474ed8(0x2c5)][_0x474ed8(0x5c0)]:{_0x563c25={'eventID':_0x437f93[_0x474ed8(0x2c5)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x563c25={'eventID':_0x4f5a36[_0x474ed8(0x5ac)][_0x474ed8(0x3f9)]};}return JSON[_0x474ed8(0x301)]({'cmd':_0x4f5a36[_0x474ed8(0x5ab)],'routeKey':_0x4f5a36['routeKey'],'collaMsg':_0x563c25});}case _0x4e0841['JOIN']:return JSON[_0x474ed8(0x301)]({'cmd':_0x4f5a36[_0x474ed8(0x5ab)],'routeKey':_0x4f5a36[_0x474ed8(0x4e6)],'joinReq':_0x4f5a36[_0x474ed8(0x5ac)]});case _0x4e0841[_0x474ed8(0x2dc)]:return JSON[_0x474ed8(0x301)]({'cmd':_0x4f5a36['cmd'],'routeKey':_0x4f5a36['routeKey'],'leaveReq':_0x4f5a36['data']});default:throw new Error(_0x474ed8(0x35e));}}var _0x1a314d=Object['defineProperty'],_0x2be198=Object[_0x1a9c4c(0x541)],_0x184ffe=(_0xf97c83,_0x5d9920,_0x29764c,_0x13264f)=>{const _0xe3f7d0=_0x1a9c4c;for(var _0x3d2df0=_0x13264f>0x1?void 0x0:_0x13264f?_0x2be198(_0x5d9920,_0x29764c):_0x5d9920,_0x562d45=_0xf97c83[_0xe3f7d0(0x4d8)]-0x1,_0x243839;_0x562d45>=0x0;_0x562d45--)(_0x243839=_0xf97c83[_0x562d45])&&(_0x3d2df0=(_0x13264f?_0x243839(_0x5d9920,_0x29764c,_0x3d2df0):_0x243839(_0x3d2df0))||_0x3d2df0);return _0x13264f&&_0x3d2df0&&_0x1a314d(_0x5d9920,_0x29764c,_0x3d2df0),_0x3d2df0;},_0x412de4=(_0x190918,_0x35a2e4)=>(_0x588389,_0x45eb25)=>_0x35a2e4(_0x588389,_0x45eb25,_0x190918);const _0x411a7c=_0x5ee268[_0x1a9c4c(0x549)]('univer-pro.collaboration-client-socket-service');function _0x5aba5b(_0x28996a,_0x1c60e3,_0x486f1e){const _0x244d2d=_0x1a9c4c;return _0x28996a+'/'+_0x1c60e3+_0x244d2d(0x584)+_0x486f1e+_0x244d2d(0x298);}_0x19f7dc[_0x1a9c4c(0x362)]=class extends _0x5ee268[_0x1a9c4c(0x238)]{constructor(_0x2ecd03,_0x49b509,_0x40d18b,_0x2a30f9,_0x93c3f7){const _0x1303bf=_0x1a9c4c;super(),this[_0x1303bf(0x524)]=_0x2ecd03,this[_0x1303bf(0x27e)]=_0x49b509,this['_configService']=_0x40d18b,this[_0x1303bf(0x2a9)]=_0x2a30f9,this[_0x1303bf(0x1dd)]=_0x93c3f7;}[_0x1a9c4c(0x1c9)](_0xd205c9){const _0x5a5b36=_0x1a9c4c,_0x44d747=this[_0x5a5b36(0x27e)][_0x5a5b36(0x1c9)](_0xd205c9);if(!_0x44d747)throw new Error(_0x5a5b36(0x411));const _0x27eba5=new _0x5ee268[(_0x5a5b36(0x571))](),_0x33619f=new _0x56990c[(_0x5a5b36(0x3be))]();_0x27eba5[_0x5a5b36(0x4d0)](_0x44d747[_0x5a5b36(0x27f)][_0x5a5b36(0x3a7)](_0x1c170e=>_0x33619f[_0x5a5b36(0x42d)](_0x1c170e))),_0x27eba5[_0x5a5b36(0x4d0)](_0x5ee268[_0x5a5b36(0x4c5)](()=>_0x33619f['complete']()));const _0xd81941=new _0x56990c[(_0x5a5b36(0x3be))]();_0x27eba5[_0x5a5b36(0x4d0)](_0x44d747[_0x5a5b36(0x27c)]['subscribe'](_0x4826d7=>_0xd81941[_0x5a5b36(0x42d)](_0x4826d7))),_0x27eba5['add'](_0x5ee268[_0x5a5b36(0x4c5)](()=>_0xd81941[_0x5a5b36(0x30a)]()));const _0x21b7cf=new _0x56990c[(_0x5a5b36(0x3be))]();_0x27eba5[_0x5a5b36(0x4d0)](_0x44d747[_0x5a5b36(0x3fa)]['subscribe'](_0x1bd190=>{const _0x2c214d=_0x580925(_0x1bd190);_0x21b7cf['next'](_0x2c214d);})),_0x27eba5[_0x5a5b36(0x4d0)](_0x5ee268[_0x5a5b36(0x4c5)](()=>_0x21b7cf['complete']()));let _0x1d88d8;const _0x38f3de=()=>{const _0xfb942c=_0x5a5b36;_0xd81941[_0xfb942c(0x42d)](new Event(_0xfb942c(0x438))),_0x33619f[_0xfb942c(0x42d)](new CloseEvent(_0xfb942c(0x438))),_0x1d88d8[_0xfb942c(0x4c9)]();};return _0x1d88d8={'memberID':'','close$':_0x33619f['asObservable'](),'error$':_0xd81941[_0x5a5b36(0x560)](),'open$':_0x44d747['open$'],'message$':_0x21b7cf[_0x5a5b36(0x560)](),'send':_0x4e6c28=>{const _0x11c091=_0x5a5b36;if(_0x4e6c28['cmd']===_0x4e0841[_0x11c091(0x332)]){if(_0x4e6c28['data'][_0x11c091(0x3f9)]===_0x437f93[_0x11c091(0x2c5)][_0x11c091(0x4ed)]){this['_submitChangeset'](_0x1d88d8,_0x4e6c28['data'])['catch'](_0x1530f6=>{const _0x3bed02=_0x11c091;this[_0x3bed02(0x2a9)][_0x3bed02(0x317)](_0x1530f6),_0x38f3de();});return;}if(_0x4e6c28[_0x11c091(0x5ac)][_0x11c091(0x3f9)]===_0x437f93[_0x11c091(0x2c5)][_0x11c091(0x389)]){const _0x3a270c=_0x4e6c28[_0x11c091(0x5ac)];this[_0x11c091(0x34b)](_0x3a270c)[_0x11c091(0x29c)](_0x11e474=>{const _0x122e4b=_0x11c091;_0x21b7cf['next']({'cmd':_0x4e0841[_0x122e4b(0x3a3)],'code':_0x389c04['OK'],'routeKey':_0x3a270c[_0x122e4b(0x5ac)][_0x122e4b(0x447)],'routeType':'','data':{'eventID':_0x437f93[_0x122e4b(0x2c5)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x11e474}}});})['catch'](_0x4d2603=>{const _0x4fb1fe=_0x11c091;this[_0x4fb1fe(0x2a9)][_0x4fb1fe(0x317)](_0x4d2603),_0x38f3de();});return;}}_0x44d747[_0x11c091(0x420)](_0x28244a(_0x4e6c28));},'close':()=>{const _0x174dc0=_0x5a5b36;_0x44d747[_0x174dc0(0x4c9)](),_0x27eba5[_0x174dc0(0x214)]();}},_0x1d88d8;}async[_0x1a9c4c(0x23d)](_0x503477,_0x1f7fd4){const _0x5b9b53=_0x1a9c4c;var _0x2896e3,_0x531b67;const {unitType:_0x4bc66c,unitID:_0xed4d9d,changeset:_0x4b665d}=_0x1f7fd4[_0x5b9b53(0x5ac)],_0x597dbd={'unitID':_0xed4d9d,'memberID':_0x503477[_0x5b9b53(0x2b2)],'type':_0x4bc66c,'changeset':_0x437f93['parseChangesetToProtocol'](_0x4b665d)},_0x2ae089=this[_0x5b9b53(0x208)]['getConfig'](_0x2d1c45),_0xcdccb0=this[_0x5b9b53(0x208)][_0x5b9b53(0x3a6)](_0x17bae2),_0x3ebefb=_0x5aba5b((_0x531b67=(_0x2896e3=_0xcdccb0==null?void 0x0:_0xcdccb0[_0x5b9b53(0x2f1)])!=null?_0x2896e3:_0x2ae089)!=null?_0x531b67:_0x240dfd,_0x4bc66c,_0xed4d9d);try{await this[_0x5b9b53(0x524)][_0x5b9b53(0x4f8)](_0x3ebefb,{'body':_0x597dbd});}catch(_0x118fc8){throw this[_0x5b9b53(0x2a9)][_0x5b9b53(0x317)]('[CollaborationSession]',_0x5b9b53(0x462)),_0x118fc8;}}async[_0x1a9c4c(0x34b)](_0x13ac28){const _0x2d184c=_0x1a9c4c,{unitID:_0x57f5be,from:_0xd9aaa9,to:_0x3e73dd,unitType:_0x31b063}=_0x13ac28['data'];return(await this['_snapshotServerService'][_0x2d184c(0x28c)]({'metadata':void 0x0},{'unitID':_0x57f5be,'type':_0x31b063,'from':_0xd9aaa9,'to':_0x3e73dd}))[_0x2d184c(0x534)];}},_0x19f7dc['CollaborationSocketService']=_0x184ffe([_0x412de4(0x0,_0x5ee268[_0x1a9c4c(0x4b4)](_0x519640['HTTPService'])),_0x412de4(0x1,_0x5ee268[_0x1a9c4c(0x4b4)](_0x519640[_0x1a9c4c(0x5cc)])),_0x412de4(0x2,_0x5ee268[_0x1a9c4c(0x422)]),_0x412de4(0x3,_0x5ee268[_0x1a9c4c(0x2ff)]),_0x412de4(0x4,_0x437f93[_0x1a9c4c(0x295)])],_0x19f7dc['CollaborationSocketService']);const _0x4f8f0f=_0x1a9c4c(0x345);function _0x4c6bc7(_0x24ba8b){const _0x3a64e3=_0x1a9c4c;return JSON[_0x3a64e3(0x301)](_0x24ba8b)['length'];}class _0x37f911{constructor(){const _0x487d34=_0x1a9c4c;_0x1328f6(this,_0x487d34(0x417),new _0x56990c[(_0x487d34(0x3be))]()),_0x1328f6(this,'commentUpdate$',this[_0x487d34(0x417)][_0x487d34(0x560)]());}[_0x1a9c4c(0x442)](_0x371445){const _0x919294=_0x1a9c4c;this['_commentUpdate$'][_0x919294(0x42d)](_0x371445);}}var _0x391ba3=Object[_0x1a9c4c(0x340)],_0x577b57=Object[_0x1a9c4c(0x541)],_0x247e86=(_0x5446e8,_0x2aa698,_0x569c7c,_0x3729e2)=>{for(var _0x52edd0=_0x3729e2>0x1?void 0x0:_0x3729e2?_0x577b57(_0x2aa698,_0x569c7c):_0x2aa698,_0x46f1d2=_0x5446e8['length']-0x1,_0x48410e;_0x46f1d2>=0x0;_0x46f1d2--)(_0x48410e=_0x5446e8[_0x46f1d2])&&(_0x52edd0=(_0x3729e2?_0x48410e(_0x2aa698,_0x569c7c,_0x52edd0):_0x48410e(_0x52edd0))||_0x52edd0);return _0x3729e2&&_0x52edd0&&_0x391ba3(_0x2aa698,_0x569c7c,_0x52edd0),_0x52edd0;},_0x2ceb3a=(_0x26dfa7,_0x328898)=>(_0x15f41d,_0x1cdca5)=>_0x328898(_0x15f41d,_0x1cdca5,_0x26dfa7);let _0xd4878c=class extends _0x5ee268['Disposable']{constructor(_0x332843,_0x4196e4){const _0x2e8bc1=_0x1a9c4c;super(),_0x1328f6(this,_0x2e8bc1(0x44b),new Map()),(this[_0x2e8bc1(0x535)]=_0x332843,this['_userManagerService']=_0x4196e4,this['disposeWithMe'](_0x5ee268[_0x2e8bc1(0x4c5)](_0x56990c[_0x2e8bc1(0x1fd)](this[_0x2e8bc1(0x535)][_0x2e8bc1(0x2da)](_0x5ee268[_0x2e8bc1(0x2f7)][_0x2e8bc1(0x498)])['pipe'](_0x2b56b2[_0x2e8bc1(0x42f)](_0x3413b5=>_0x3413b5[_0x2e8bc1(0x4ef)]())),this[_0x2e8bc1(0x535)][_0x2e8bc1(0x2da)](_0x5ee268[_0x2e8bc1(0x2f7)]['UNIVER_DOC'])[_0x2e8bc1(0x246)](_0x2b56b2['map'](_0x439b0a=>_0x439b0a['getUnitId']())),this[_0x2e8bc1(0x535)][_0x2e8bc1(0x2da)](_0x5ee268[_0x2e8bc1(0x2f7)]['UNIVER_SLIDE'])[_0x2e8bc1(0x246)](_0x2b56b2[_0x2e8bc1(0x42f)](_0x5e1c84=>_0x5e1c84['getUnitId']())))[_0x2e8bc1(0x3a7)](_0x45838c=>this['_removeRoom'](_0x45838c)))));}[_0x1a9c4c(0x4bc)](_0x69a272){const _0x1d56a8=_0x1a9c4c;this[_0x1d56a8(0x3f5)][_0x1d56a8(0x4bc)](_0x69a272);}['getCurrentUser'](){const _0x3c8f04=_0x1a9c4c;return this[_0x3c8f04(0x3f5)][_0x3c8f04(0x5a9)]();}[_0x1a9c4c(0x50c)](_0x343d90,_0x1ccd7d){const _0x350a4a=_0x1a9c4c;let _0x1e0ddb=this['_roomMembers'][_0x350a4a(0x54d)](_0x343d90);_0x1e0ddb||(_0x1e0ddb=new _0x1a2856(),this[_0x350a4a(0x44b)]['set'](_0x343d90,_0x1e0ddb)),_0x1e0ddb[_0x350a4a(0x50c)](_0x1ccd7d);}['removeMember'](_0x37710a,_0x371fd0){const _0x260199=_0x1a9c4c,_0x53c35f=this['_roomMembers'][_0x260199(0x54d)](_0x37710a);_0x53c35f&&_0x53c35f[_0x260199(0x310)](_0x371fd0);}['getRoom'](_0x2c68ce){const _0x12a715=_0x1a9c4c;return this[_0x12a715(0x44b)][_0x12a715(0x54d)](_0x2c68ce);}[_0x1a9c4c(0x4f1)](_0x471b83,_0x2c2f84){const _0x3da758=_0x1a9c4c,_0x25383f=this[_0x3da758(0x44b)][_0x3da758(0x54d)](_0x471b83);if(_0x25383f)return _0x25383f[_0x3da758(0x4f1)](_0x2c2f84);}[_0x1a9c4c(0x2ac)](_0x18a839){const _0x5a9ef6=_0x1a9c4c,_0x1b4321=this[_0x5a9ef6(0x44b)][_0x5a9ef6(0x54d)](_0x18a839);_0x1b4321&&(_0x1b4321[_0x5a9ef6(0x214)](),this[_0x5a9ef6(0x44b)][_0x5a9ef6(0x1c8)](_0x18a839));}[_0x1a9c4c(0x214)](){const _0x12c179=_0x1a9c4c;this[_0x12c179(0x44b)][_0x12c179(0x506)](_0x21648a=>_0x21648a[_0x12c179(0x214)]()),this['_roomMembers']['clear']();}};_0xd4878c=_0x247e86([_0x2ceb3a(0x0,_0x5ee268['IUniverInstanceService']),_0x2ceb3a(0x1,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x32e)]))],_0xd4878c);class _0x1a2856 extends _0x5ee268['Disposable']{constructor(){const _0x109c39=_0x1a9c4c;super(...arguments),_0x1328f6(this,_0x109c39(0x217),new Map());}[_0x1a9c4c(0x214)](){const _0x2dcf99=_0x1a9c4c;this[_0x2dcf99(0x217)][_0x2dcf99(0x20b)]();}['updateMember'](_0x890e3d){const _0x135d5e=_0x1a9c4c;this[_0x135d5e(0x217)][_0x135d5e(0x26c)](_0x890e3d[_0x135d5e(0x2b2)],_0x890e3d);}[_0x1a9c4c(0x310)](_0x4605bd){const _0x532d68=_0x1a9c4c;this[_0x532d68(0x217)][_0x532d68(0x1c8)](_0x4605bd);}['getMember'](_0x13657c){const _0x18f737=_0x1a9c4c;return this['_members'][_0x18f737(0x54d)](_0x13657c);}}var _0x43c468=Object['defineProperty'],_0x12b17a=Object['getOwnPropertyDescriptor'],_0x2fe6b0=(_0x16d1cd,_0x351dbd,_0xacfba1,_0x44a4ae)=>{for(var _0x521077=_0x44a4ae>0x1?void 0x0:_0x44a4ae?_0x12b17a(_0x351dbd,_0xacfba1):_0x351dbd,_0x3c40d0=_0x16d1cd['length']-0x1,_0x4562ff;_0x3c40d0>=0x0;_0x3c40d0--)(_0x4562ff=_0x16d1cd[_0x3c40d0])&&(_0x521077=(_0x44a4ae?_0x4562ff(_0x351dbd,_0xacfba1,_0x521077):_0x4562ff(_0x521077))||_0x521077);return _0x44a4ae&&_0x521077&&_0x43c468(_0x351dbd,_0xacfba1,_0x521077),_0x521077;},_0x1417a2=(_0x3511e0,_0x35dc8d)=>(_0x1a414c,_0x5c0c46)=>_0x35dc8d(_0x1a414c,_0x5c0c46,_0x3511e0),_0x3477b6=(_0x332770=>(_0x332770[_0x332770[_0x1a9c4c(0x248)]=0x0]=_0x1a9c4c(0x248),_0x332770[_0x332770['JOINING']=0x1]=_0x1a9c4c(0x5bf),_0x332770[_0x332770[_0x1a9c4c(0x304)]=0x2]='OFFLINE',_0x332770[_0x332770[_0x1a9c4c(0x399)]=0x3]=_0x1a9c4c(0x399),_0x332770))(_0x3477b6||{});_0x19f7dc[_0x1a9c4c(0x384)]=class extends _0x5ee268[_0x1a9c4c(0x4b2)]{constructor(_0x20c4be,_0xff5128,_0x3cfe2b,_0x2828d4,_0x41e05f,_0xaa4f5,_0x9fac9e,_0xa39bbd,_0x5f5083,_0x5b8b45){const _0x4c02fe=_0x1a9c4c;super(),_0x1328f6(this,'_sessionStatus$',new _0x56990c[(_0x4c02fe(0x3d3))](0x0)),_0x1328f6(this,_0x4c02fe(0x539),this['_sessionStatus$']['asObservable']()),_0x1328f6(this,_0x4c02fe(0x22f),new _0x56990c[(_0x4c02fe(0x3be))]()),_0x1328f6(this,_0x4c02fe(0x540),this[_0x4c02fe(0x22f)]['asObservable']()),_0x1328f6(this,'_socket'),_0x1328f6(this,'_socketMessageSubscription'),_0x1328f6(this,_0x4c02fe(0x1aa)),_0x1328f6(this,_0x4c02fe(0x3b0),!0x1),_0x1328f6(this,'_telemetryInfo',null),(this[_0x4c02fe(0x2e1)]=_0x20c4be,this[_0x4c02fe(0x2a9)]=_0x3cfe2b,this[_0x4c02fe(0x429)]=_0x2828d4,this[_0x4c02fe(0x5b4)]=_0x41e05f,this[_0x4c02fe(0x208)]=_0xaa4f5,this[_0x4c02fe(0x243)]=_0x9fac9e,this['_memberService']=_0xa39bbd,this['_commentService']=_0x5f5083,this[_0x4c02fe(0x428)]=_0x5b8b45,this[_0x4c02fe(0x3b0)]=!!this[_0x4c02fe(0x428)],_0xff5128[_0x4c02fe(0x246)](_0x56990c[_0x4c02fe(0x1da)](this[_0x4c02fe(0x1f6)]))[_0x4c02fe(0x3a7)](_0x1a8676=>{const _0x46ca01=_0x4c02fe;var _0x1fde97;typeof _0x1a8676>'u'||(this[_0x46ca01(0x2f0)]=_0x1a8676,_0x1a8676?(this[_0x46ca01(0x374)](_0x1a8676),this['_socketMessageSubscription']=_0x1a8676[_0x46ca01(0x3fa)]['subscribe'](_0xe7287f=>{const _0x25b88c=_0x46ca01;_0xe7287f['routeKey']===this[_0x25b88c(0x2e1)]&&this[_0x25b88c(0x58a)](_0xe7287f);})):(this[_0x46ca01(0x300)](),this[_0x46ca01(0x36c)]['next'](0x2),(_0x1fde97=this[_0x46ca01(0x56a)])==null||_0x1fde97[_0x46ca01(0x45c)](),this['_socketMessageSubscription']=null));}),this[_0x4c02fe(0x337)](this[_0x4c02fe(0x429)][_0x4c02fe(0x3ec)](()=>{const _0x31d734=_0x4c02fe;var _0x52eb76;(_0x52eb76=this['_socket'])==null||_0x52eb76['send']({'cmd':_0x4e0841[_0x31d734(0x2dc)],'data':{'roomID':this[_0x31d734(0x2e1)]}});})));}get['sessionStatus'](){const _0x40e391=_0x1a9c4c;return this[_0x40e391(0x36c)]['getValue']();}['getMemberID'](){const _0x280701=_0x1a9c4c;var _0x4c8253,_0x245751;return(_0x245751=(_0x4c8253=this[_0x280701(0x2f0)])==null?void 0x0:_0x4c8253['memberID'])!=null?_0x245751:null;}[_0x1a9c4c(0x214)](){const _0x27afca=_0x1a9c4c;super[_0x27afca(0x214)](),this['dispose$'][_0x27afca(0x42d)](),this[_0x27afca(0x1f6)]['complete']();}[_0x1a9c4c(0x4c9)](){const _0x31fc1b=_0x1a9c4c;var _0x313201,_0xae3393;this['_throwTelemetryCollaborationNewChangeset'](),(_0x313201=this[_0x31fc1b(0x2f0)])==null||_0x313201['send']({'cmd':_0x4e0841[_0x31fc1b(0x2dc)],'data':{'roomID':this[_0x31fc1b(0x2e1)]}}),(_0xae3393=this[_0x31fc1b(0x2f0)])==null||_0xae3393[_0x31fc1b(0x4c9)](),this[_0x31fc1b(0x22f)][_0x31fc1b(0x30a)](),this['_sessionStatus$'][_0x31fc1b(0x30a)](),this[_0x31fc1b(0x214)]();}[_0x1a9c4c(0x58a)](_0x4cc2b1){const _0x1cf2b4=_0x1a9c4c;_0x4cc2b1['cmd']===_0x4e0841[_0x1cf2b4(0x271)]?this[_0x1cf2b4(0x3fc)](_0x4cc2b1):_0x4cc2b1[_0x1cf2b4(0x5ab)]===_0x4e0841[_0x1cf2b4(0x3a3)]&&this[_0x1cf2b4(0x34d)](_0x4cc2b1);}['_joinRoom'](_0x33d81){const _0x29ea1e=_0x1a9c4c;this['_sessionStatus$'][_0x29ea1e(0x42d)](0x1),_0x33d81[_0x29ea1e(0x420)]({'cmd':_0x4e0841[_0x29ea1e(0x271)],'routeKey':this[_0x29ea1e(0x2e1)],'routeType':'','data':{'rooms':[{'roomID':this[_0x29ea1e(0x2e1)]}]}});}[_0x1a9c4c(0x3fc)](_0x55c54a){const _0x312007=_0x1a9c4c;var _0x168257;if(_0x55c54a[_0x312007(0x38e)]===_0x389c04['FAIL']){this[_0x312007(0x5b4)][_0x312007(0x1c3)]({'type':_0x2e321b[_0x312007(0x1db)][_0x312007(0x3c5)],'content':this[_0x312007(0x243)]['t'](_0x312007(0x3c6))}),this[_0x312007(0x36c)][_0x312007(0x42d)](0x2);return;}this[_0x312007(0x36c)][_0x312007(0x42d)](0x3);const _0x38723c=(_0x168257=_0x55c54a[_0x312007(0x5ac)]['roomInfos'][this[_0x312007(0x2e1)]])==null?void 0x0:_0x168257['members'];_0x38723c&&_0x38723c[_0x312007(0x506)](_0x581305=>this[_0x312007(0x33d)][_0x312007(0x50c)](this[_0x312007(0x2e1)],_0x581305));}[_0x1a9c4c(0x34d)](_0x342f7a){const _0xb079ce=_0x1a9c4c;try{const _0x1f85b1=_0x342f7a['data'];switch(_0x1f85b1[_0xb079ce(0x3f9)]){case _0x437f93[_0xb079ce(0x2c5)]['USERS_ENTER']:this['_onUserJoin'](_0x1f85b1),this['_event$'][_0xb079ce(0x42d)](_0x1f85b1);break;case _0x437f93[_0xb079ce(0x2c5)][_0xb079ce(0x288)]:this['_onUserLeave'](_0x1f85b1),this[_0xb079ce(0x22f)][_0xb079ce(0x42d)](_0x1f85b1);break;case _0x437f93[_0xb079ce(0x2c5)][_0xb079ce(0x513)]:this[_0xb079ce(0x43a)](),this[_0xb079ce(0x4db)](),this['_event$'][_0xb079ce(0x42d)](_0x1f85b1);break;case _0x437f93[_0xb079ce(0x2c5)][_0xb079ce(0x467)]:this[_0xb079ce(0x2a9)][_0xb079ce(0x317)](_0xb079ce(0x406)+JSON['stringify'](_0x1f85b1)),this[_0xb079ce(0x22f)][_0xb079ce(0x42d)](_0x1f85b1);break;case _0x437f93[_0xb079ce(0x2c5)][_0xb079ce(0x390)]:this[_0xb079ce(0x3a1)][_0xb079ce(0x442)](_0x1f85b1['data']),this['_event$'][_0xb079ce(0x42d)](_0x1f85b1);break;default:this[_0xb079ce(0x22f)][_0xb079ce(0x42d)](_0x1f85b1);}}catch(_0x4199db){this[_0xb079ce(0x2a9)]['error'](_0x4199db,_0x342f7a);}}[_0x1a9c4c(0x385)](_0x328905){const _0x4ed8a8=_0x1a9c4c;this[_0x4ed8a8(0x33d)][_0x4ed8a8(0x50c)](this[_0x4ed8a8(0x2e1)],_0x328905[_0x4ed8a8(0x5ac)]);}[_0x1a9c4c(0x328)](_0x2536fc){const _0x2745a4=_0x1a9c4c;this[_0x2745a4(0x33d)][_0x2745a4(0x310)](this['_unitID'],_0x2536fc[_0x2745a4(0x5ac)]['memberID']);}async[_0x1a9c4c(0x420)](_0x27ca55,_0x213541){const _0x4d07d8=_0x1a9c4c;if(this[_0x4d07d8(0x2f6)]!==0x3||!this['_socket'])throw new Error(_0x4d07d8(0x552));try{_0x27ca55[_0x4d07d8(0x3f9)]===_0x437f93[_0x4d07d8(0x2c5)][_0x4d07d8(0x4ed)]&&(this[_0x4d07d8(0x1df)](),this[_0x4d07d8(0x4fe)](_0x27ca55)),this['_socket'][_0x4d07d8(0x420)]({'cmd':_0x4e0841['INGEST'],'routeKey':_0x213541,'routeType':'','data':_0x27ca55});}catch(_0x524bbf){this['_logService'][_0x4d07d8(0x317)](_0x524bbf);}}['_scheduleCollaborationTimeoutTimer'](){const _0x200e26=_0x1a9c4c;var _0xb8a4fc;this[_0x200e26(0x1aa)]=window[_0x200e26(0x557)](()=>{const _0x2f6af6=_0x200e26;this[_0x2f6af6(0x1aa)]=null,this[_0x2f6af6(0x5b4)][_0x2f6af6(0x1c3)]({'type':_0x2e321b[_0x2f6af6(0x1db)][_0x2f6af6(0x423)],'content':this[_0x2f6af6(0x243)]['t'](_0x2f6af6(0x5b3))});},(_0xb8a4fc=this[_0x200e26(0x208)][_0x200e26(0x3a6)](_0x4d3fc9))!=null?_0xb8a4fc:0x4e20);}[_0x1a9c4c(0x4db)](){const _0x500683=_0x1a9c4c;this[_0x500683(0x1aa)]&&(clearTimeout(this[_0x500683(0x1aa)]),this[_0x500683(0x1aa)]=null);}[_0x1a9c4c(0x4fe)](_0x260a18){const _0x26efb0=_0x1a9c4c;if(!this[_0x26efb0(0x3b0)])return;const {data:_0xa291ba}=_0x260a18,{unitID:_0x2e4619,changeset:_0x227cdd}=_0xa291ba,{mutations:_0x457bd6,type:_0x4439ff}=_0x227cdd;this['_telemetryInfo']={'unitId':_0x2e4619,'type':_0x4439ff,'startTime':performance[_0x26efb0(0x257)](),'stopTime':0x0,'duration':0x0,'size':_0x4c6bc7(_0x457bd6)};}[_0x1a9c4c(0x43a)](){const _0x2893ba=_0x1a9c4c;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this['_logService'][_0x2893ba(0x317)](_0x2893ba(0x2ea),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x2893ba(0x409)][_0x2893ba(0x3de)]=performance['now'](),this[_0x2893ba(0x409)][_0x2893ba(0x283)]=this['_telemetryInfo'][_0x2893ba(0x3de)]-this[_0x2893ba(0x409)][_0x2893ba(0x470)],this[_0x2893ba(0x428)][_0x2893ba(0x1b6)](_0x4f8f0f,this['_telemetryInfo']),this['_telemetryInfo']=null;}}[_0x1a9c4c(0x300)](){const _0x3a3982=_0x1a9c4c;this[_0x3a3982(0x409)]=null;}},_0x19f7dc[_0x1a9c4c(0x384)]=_0x2fe6b0([_0x1417a2(0x2,_0x5ee268['ILogService']),_0x1417a2(0x3,_0x56f90f[_0x1a9c4c(0x1ee)]),_0x1417a2(0x4,_0x56f90f['IMessageService']),_0x1417a2(0x5,_0x5ee268[_0x1a9c4c(0x422)]),_0x1417a2(0x6,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x25a)])),_0x1417a2(0x7,_0x5ee268[_0x1a9c4c(0x4b4)](_0xd4878c)),_0x1417a2(0x8,_0x5ee268[_0x1a9c4c(0x4b4)](_0x37f911)),_0x1417a2(0x9,_0x5ee268[_0x1a9c4c(0x2c1)](_0x28800d['ITelemetryService']))],_0x19f7dc[_0x1a9c4c(0x384)]);var _0x5955e8=Object[_0x1a9c4c(0x340)],_0x177629=Object['getOwnPropertyDescriptor'],_0x2f3453=(_0x20b846,_0x4ff2ae,_0x270106,_0x4314ef)=>{const _0x54aa45=_0x1a9c4c;for(var _0x226f32=_0x4314ef>0x1?void 0x0:_0x4314ef?_0x177629(_0x4ff2ae,_0x270106):_0x4ff2ae,_0x740c43=_0x20b846[_0x54aa45(0x4d8)]-0x1,_0x4cea68;_0x740c43>=0x0;_0x740c43--)(_0x4cea68=_0x20b846[_0x740c43])&&(_0x226f32=(_0x4314ef?_0x4cea68(_0x4ff2ae,_0x270106,_0x226f32):_0x4cea68(_0x226f32))||_0x226f32);return _0x4314ef&&_0x226f32&&_0x5955e8(_0x4ff2ae,_0x270106,_0x226f32),_0x226f32;},_0x5e3a84=(_0x743627,_0xc5432b)=>(_0x26bcd6,_0x2712d7)=>_0xc5432b(_0x26bcd6,_0x2712d7,_0x743627);_0x19f7dc[_0x1a9c4c(0x569)]=class extends _0x5ee268[_0x1a9c4c(0x238)]{constructor(_0xa8f8cf,_0x4f84f4,_0x4e2708,_0x29b765,_0x343f92,_0x2b599d){const _0x511df9=_0x1a9c4c;super(),_0x1328f6(this,_0x511df9(0x3e3),new _0x56990c[(_0x511df9(0x3d3))](void 0x0)),_0x1328f6(this,_0x511df9(0x4fa),this[_0x511df9(0x3e3)]['asObservable']()),_0x1328f6(this,_0x511df9(0x526),null),_0x1328f6(this,_0x511df9(0x3cd),new Map()),_0x1328f6(this,'_status$',new _0x56990c[(_0x511df9(0x3d3))](_0x3477b6[_0x511df9(0x248)])),_0x1328f6(this,_0x511df9(0x501),this['_status$']['asObservable']()),_0x1328f6(this,_0x511df9(0x32a),!0x1),_0x1328f6(this,_0x511df9(0x232)),_0x1328f6(this,_0x511df9(0x5c1),0x0),_0x1328f6(this,_0x511df9(0x280)),_0x1328f6(this,_0x511df9(0x419)),(this[_0x511df9(0x474)]=_0xa8f8cf,this[_0x511df9(0x243)]=_0x4f84f4,this['_messageService']=_0x4e2708,this['_logService']=_0x29b765,this[_0x511df9(0x208)]=_0x343f92,this[_0x511df9(0x382)]=_0x2b599d,this[_0x511df9(0x4c1)]());}get[_0x1a9c4c(0x2f0)](){const _0x483c80=_0x1a9c4c;return this[_0x483c80(0x3e3)]['getValue']();}['_initEventListeners'](){const _0x59db5e=_0x1a9c4c;this[_0x59db5e(0x4ea)](),this[_0x59db5e(0x2b8)]();}[_0x1a9c4c(0x214)](){const _0x311b48=_0x1a9c4c;super[_0x311b48(0x214)](),this[_0x311b48(0x3cd)]['forEach'](_0x5f114d=>_0x5f114d[_0x311b48(0x214)]()),this[_0x311b48(0x3cd)]['clear'](),this[_0x311b48(0x4c0)][_0x311b48(0x30a)]();}async['requireSession'](_0x64057){const _0x49e35e=_0x1a9c4c;if(this[_0x49e35e(0x3cd)][_0x49e35e(0x252)](_0x64057))return this[_0x49e35e(0x3cd)][_0x49e35e(0x54d)](_0x64057);this['_tryEnsureSocket']();const _0x2b55f0=this['_injector']['createInstance'](_0x19f7dc[_0x49e35e(0x384)],_0x64057,this[_0x49e35e(0x3e3)][_0x49e35e(0x560)]());return this['_sessions'][_0x49e35e(0x26c)](_0x64057,_0x2b55f0),_0x2b55f0;}[_0x1a9c4c(0x43c)](_0x5d9c32){const _0x277b36=_0x1a9c4c;var _0x5eddfc;const _0x50c8ad=this[_0x277b36(0x3cd)][_0x277b36(0x54d)](_0x5d9c32);_0x50c8ad&&(this[_0x277b36(0x3cd)][_0x277b36(0x1c8)](_0x5d9c32),_0x50c8ad[_0x277b36(0x4c9)]()),this[_0x277b36(0x3cd)][_0x277b36(0x3ce)]||(_0x5eddfc=this[_0x277b36(0x2f0)])==null||_0x5eddfc[_0x277b36(0x4c9)]();}[_0x1a9c4c(0x436)](){const _0x17a536=_0x1a9c4c;this[_0x17a536(0x5c1)]=0x0,this[_0x17a536(0x232)]!=null&&(clearTimeout(this[_0x17a536(0x232)]),this[_0x17a536(0x232)]=null),this['_tryReconnect']();}[_0x1a9c4c(0x33c)](){const _0x588b18=_0x1a9c4c;var _0x336566,_0x4704b8;const _0x2c0904=this['_configService']['getConfig'](_0x4684ef),_0x3fff14=this[_0x588b18(0x208)][_0x588b18(0x3a6)](_0x17bae2),_0x56ed51=(_0x4704b8=(_0x336566=_0x3fff14==null?void 0x0:_0x3fff14[_0x588b18(0x2ef)])!=null?_0x336566:_0x2c0904)!=null?_0x4704b8:_0x2db330,_0x529c2e=this['_socketService'][_0x588b18(0x1c9)](_0x56ed51);return this[_0x588b18(0x526)]=_0x529c2e,_0x529c2e;}[_0x1a9c4c(0x36b)](){const _0x5a9fb3=_0x1a9c4c;var _0x52d8ca,_0x282348;try{const _0x40e096=(_0x282348=(_0x52d8ca=this[_0x5a9fb3(0x2f0)])!=null?_0x52d8ca:this[_0x5a9fb3(0x526)])!=null?_0x282348:this[_0x5a9fb3(0x33c)]();if(_0x40e096){const _0x544c94=_0x40e096['send'];_0x40e096[_0x5a9fb3(0x420)]=_0xef5b5b=>(this[_0x5a9fb3(0x35c)](),_0x544c94[_0x5a9fb3(0x1d0)](_0x40e096,[_0xef5b5b])),_0x40e096[_0x5a9fb3(0x3fa)]['subscribe'](_0x4f7e22=>this[_0x5a9fb3(0x3f4)](_0x40e096,_0x4f7e22)),_0x40e096[_0x5a9fb3(0x27c)][_0x5a9fb3(0x246)](_0x2b56b2[_0x5a9fb3(0x46a)](0x1))[_0x5a9fb3(0x3a7)](_0x1c16a2=>this[_0x5a9fb3(0x2a9)][_0x5a9fb3(0x317)]('[CollaborationSessionService]:\x20socket\x20error',_0x1c16a2)),_0x40e096['open$'][_0x5a9fb3(0x246)](_0x2b56b2[_0x5a9fb3(0x46a)](0x1))[_0x5a9fb3(0x3a7)](()=>{const _0x5685fd=_0x5a9fb3;this[_0x5685fd(0x253)](_0x40e096);}),_0x40e096['close$'][_0x5a9fb3(0x246)](_0x2b56b2['take'](0x1))[_0x5a9fb3(0x3a7)](_0x288bad=>{const _0x100f82=_0x5a9fb3;this[_0x100f82(0x2a9)][_0x100f82(0x2d3)](_0x100f82(0x42a),_0x100f82(0x465),_0x288bad),this[_0x100f82(0x5cb)]();});}}catch(_0xa6d955){this['_logService']['error'](_0xa6d955),this['_onConnectionFailed']();}}[_0x1a9c4c(0x253)](_0x400283){const _0x53ddff=_0x1a9c4c;this['_logService'][_0x53ddff(0x2d3)](_0x53ddff(0x42a),_0x53ddff(0x587)),_0x400283[_0x53ddff(0x420)]({'cmd':_0x4e0841[_0x53ddff(0x24c)]}),this[_0x53ddff(0x35c)]();}[_0x1a9c4c(0x4ea)](){const _0x4b95b9=_0x1a9c4c;window[_0x4b95b9(0x2ba)]('offline',()=>this[_0x4b95b9(0x394)]());}['_onOffline'](){const _0x22d7cf=_0x1a9c4c;this['_socketReady']=!0x1,this[_0x22d7cf(0x526)]=null,this['_status$'][_0x22d7cf(0x42d)](_0x3477b6[_0x22d7cf(0x304)]),this[_0x22d7cf(0x3e3)][_0x22d7cf(0x42d)](null),this[_0x22d7cf(0x4e5)](),this['_clearHeartbeatTimer']();}[_0x1a9c4c(0x5cb)](){const _0x4b845d=_0x1a9c4c;var _0x19160c;this[_0x4b845d(0x394)](),this[_0x4b845d(0x5c1)]<((_0x19160c=this[_0x4b845d(0x208)][_0x4b845d(0x3a6)](_0x981892))!=null?_0x19160c:0x3)?(this[_0x4b845d(0x5b4)][_0x4b845d(0x1c3)]({'key':_0x4b845d(0x36d),'type':_0x2e321b[_0x4b845d(0x1db)][_0x4b845d(0x3c5)],'content':this[_0x4b845d(0x243)]['t'](_0x4b845d(0x2d4))}),this['_tryReconnect']()):this[_0x4b845d(0x5b4)][_0x4b845d(0x1c3)]({'key':_0x4b845d(0x36d),'type':_0x2e321b[_0x4b845d(0x1db)]['Error'],'content':this[_0x4b845d(0x243)]['t'](_0x4b845d(0x3ba))});}[_0x1a9c4c(0x2b8)](){const _0x33f3fc=_0x1a9c4c,_0x339c7c=()=>{const _0x305491=_0x2a06;this[_0x305491(0x2f0)]||this[_0x305491(0x436)]();},_0x21928e=()=>{const _0x2616a2=_0x2a06;this[_0x2616a2(0x2f0)]||document[_0x2616a2(0x2b7)]===_0x2616a2(0x4ad)||this['reconnect']();};window[_0x33f3fc(0x2ba)](_0x33f3fc(0x302),_0x339c7c),document[_0x33f3fc(0x2ba)](_0x33f3fc(0x2b0),_0x21928e);}['_tryReconnect'](){const _0x479945=_0x1a9c4c;var _0x21d7e3;const _0x44f13a=this[_0x479945(0x5c1)],_0x10e2cc=this[_0x479945(0x208)][_0x479945(0x3a6)](_0x17bae2),_0x389aee=_0x44f13a===0x0?0x0:((_0x21d7e3=_0x10e2cc==null?void 0x0:_0x10e2cc['retryConnectingInterval'])!=null?_0x21d7e3:0x4e20)*0x2**_0x44f13a;this['_retryConnectingTimer']=window[_0x479945(0x557)](()=>{const _0x49c5a6=_0x479945;clearTimeout(this[_0x49c5a6(0x232)]),this['_retryConnectingTimer']=null,this[_0x49c5a6(0x36b)]();},_0x389aee),this['_retryCount']+=0x1;}['_onMessage'](_0x3b5d27,_0x562e4b){const _0x1c66b9=_0x1a9c4c,{cmd:_0x51d018}=_0x562e4b;_0x51d018===_0x4e0841[_0x1c66b9(0x24c)]&&!this[_0x1c66b9(0x32a)]&&(_0x3b5d27['memberID']=_0x562e4b[_0x1c66b9(0x5ac)][_0x1c66b9(0x2b2)],this[_0x1c66b9(0x3e3)][_0x1c66b9(0x42d)](_0x3b5d27),this[_0x1c66b9(0x4c0)][_0x1c66b9(0x42d)](_0x3477b6['ONLINE']),this[_0x1c66b9(0x32a)]=!0x0,this[_0x1c66b9(0x526)]=null),_0x51d018===_0x4e0841[_0x1c66b9(0x1f3)]&&this['_clearTimeoutTimer'](),this['_rescheduleHeartbeat']();}['_rescheduleHeartbeat'](){const _0x171fe3=_0x1a9c4c;var _0x4fa376;this['_clearHeartbeatTimer'](),this[_0x171fe3(0x280)]=window[_0x171fe3(0x557)](()=>this[_0x171fe3(0x4d9)](),(_0x4fa376=this[_0x171fe3(0x208)][_0x171fe3(0x3a6)](_0x41bc7c))!=null?_0x4fa376:0x7530);}[_0x1a9c4c(0x4d9)](){const _0x14bb11=_0x1a9c4c;this[_0x14bb11(0x2f0)][_0x14bb11(0x420)]({'cmd':_0x4e0841[_0x14bb11(0x1f3)]}),this[_0x14bb11(0x56e)]();}[_0x1a9c4c(0x56e)](){const _0x26eb67=_0x1a9c4c;var _0x16edb4;this['_timeoutTimer']=window[_0x26eb67(0x557)](()=>this[_0x26eb67(0x5cb)](),(_0x16edb4=this['_configService'][_0x26eb67(0x3a6)](_0x4d3fc9))!=null?_0x16edb4:0x4e20);}[_0x1a9c4c(0x2a7)](){const _0x2965ce=_0x1a9c4c;this[_0x2965ce(0x280)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}[_0x1a9c4c(0x4e5)](){const _0x5cffd0=_0x1a9c4c;this[_0x5cffd0(0x419)]!=null&&(clearTimeout(this[_0x5cffd0(0x419)]),this['_timeoutTimer']=null);}},_0x19f7dc[_0x1a9c4c(0x569)]=_0x2f3453([_0x5e3a84(0x0,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268['Injector'])),_0x5e3a84(0x1,_0x5ee268['Inject'](_0x5ee268['LocaleService'])),_0x5e3a84(0x2,_0x56f90f[_0x1a9c4c(0x2cb)]),_0x5e3a84(0x3,_0x5ee268[_0x1a9c4c(0x2ff)]),_0x5e3a84(0x4,_0x5ee268['IConfigService']),_0x5e3a84(0x5,_0x411a7c)],_0x19f7dc[_0x1a9c4c(0x569)]);var _0x38cb35=Object[_0x1a9c4c(0x340)],_0x144778=Object['getOwnPropertyDescriptor'],_0x2e132a=(_0x132783,_0x49e09e,_0x51606e,_0x1dffa1)=>{const _0x2d40c9=_0x1a9c4c;for(var _0x5c19ed=_0x1dffa1>0x1?void 0x0:_0x1dffa1?_0x144778(_0x49e09e,_0x51606e):_0x49e09e,_0x315b5f=_0x132783[_0x2d40c9(0x4d8)]-0x1,_0x274a18;_0x315b5f>=0x0;_0x315b5f--)(_0x274a18=_0x132783[_0x315b5f])&&(_0x5c19ed=(_0x1dffa1?_0x274a18(_0x49e09e,_0x51606e,_0x5c19ed):_0x274a18(_0x5c19ed))||_0x5c19ed);return _0x1dffa1&&_0x5c19ed&&_0x38cb35(_0x49e09e,_0x51606e,_0x5c19ed),_0x5c19ed;},_0xf3f679=(_0x69c49b,_0xa55ea5)=>(_0x146c3c,_0x4f2ba3)=>_0xa55ea5(_0x146c3c,_0x4f2ba3,_0x69c49b);let _0x174d0a=class{constructor(_0x667934,_0x21a581,_0x37a0be){const _0x2ccd7c=_0x1a9c4c;this[_0x2ccd7c(0x474)]=_0x667934,this[_0x2ccd7c(0x2df)]=_0x21a581,this[_0x2ccd7c(0x377)]=_0x37a0be;}[_0x1a9c4c(0x42b)](_0x9197){const _0x1d4218=_0x1a9c4c;this[_0x1d4218(0x393)](_0x9197),this[_0x1d4218(0x3b7)](_0x9197);}[_0x1a9c4c(0x355)](_0x441fa3){const _0x49f429=_0x1a9c4c,{unitID:_0x317679}=_0x441fa3,_0x435a7d=this[_0x49f429(0x377)][_0x49f429(0x48f)](_0x317679)[_0x49f429(0x205)](_0x2d522a['DocIMEInputManagerService']),{redoCache:_0x1d0566}=_0x435a7d['getUndoRedoMutationParamsCache']();if(_0x1d0566[_0x49f429(0x4d8)]===0x0)return _0x441fa3;let _0x10efac=_0x5ee268[_0x49f429(0x277)][_0x49f429(0x338)](_0x441fa3[_0x49f429(0x234)][0x0]);for(let _0x316e93=0x0;_0x316e93<_0x1d0566[_0x49f429(0x4d8)];_0x316e93++){const _0x4a22aa={'id':_0x49f429(0x220),'params':{..._0x1d0566[_0x316e93]}},_0x7de821=this[_0x49f429(0x2df)]['transformMutation'](_0x10efac,_0x4a22aa,!0x1);if(_0x437f93[_0x49f429(0x1ac)](_0x7de821))throw _0x7de821[_0x49f429(0x317)];_0x10efac=_0x7de821[_0x49f429(0x52f)];}return{..._0x5ee268[_0x49f429(0x277)][_0x49f429(0x338)](_0x441fa3),'mutations':[_0x10efac]};}['_transformUndoRedoStack'](_0x4da431){const _0xc40015=_0x1a9c4c,{unitID:_0x4c236a}=_0x4da431,_0x279253=this['_renderManagerService'][_0xc40015(0x48f)](_0x4c236a)[_0xc40015(0x205)](_0x2d522a[_0xc40015(0x4f3)]),{undoCache:_0x196da9,redoCache:_0x2f4075}=_0x279253[_0xc40015(0x303)]();if(_0x196da9[_0xc40015(0x4d8)]===0x0||_0x2f4075[_0xc40015(0x4d8)]===0x0)return;const _0x31a5b9=[],_0x305aad=[];let _0x11bfae=_0x5ee268[_0xc40015(0x277)][_0xc40015(0x338)](_0x4da431[_0xc40015(0x234)][0x0]),_0x413d8a=_0x5ee268['Tools'][_0xc40015(0x338)](_0x4da431[_0xc40015(0x234)][0x0]);for(let _0x3e6e66=_0x196da9[_0xc40015(0x4d8)]-0x1;_0x3e6e66>=0x0;_0x3e6e66--){const _0x207a9c={'id':_0xc40015(0x220),'params':{..._0x196da9[_0x3e6e66]}},_0x717b55={'id':'doc.mutation.rich-text-editing','params':{..._0x2f4075[_0x3e6e66]}},_0x1fa328=this[_0xc40015(0x2df)][_0xc40015(0x24d)](_0x11bfae,_0x207a9c,!0x1),_0x14f343=this[_0xc40015(0x2df)]['transformMutation'](_0x413d8a,_0x717b55,!0x1);if(_0x437f93[_0xc40015(0x1ac)](_0x1fa328))throw _0x1fa328[_0xc40015(0x317)];if(_0x437f93['isTransformMutationFailure'](_0x14f343))throw _0x14f343[_0xc40015(0x317)];_0x31a5b9[_0xc40015(0x550)](_0x1fa328[_0xc40015(0x2b9)][_0xc40015(0x3e7)]),_0x305aad[_0xc40015(0x550)](_0x14f343['m2Prime'][_0xc40015(0x3e7)]),_0x11bfae=_0x1fa328[_0xc40015(0x52f)],_0x413d8a=_0x14f343[_0xc40015(0x52f)];}_0x279253[_0xc40015(0x50d)]({'undoCache':_0x31a5b9,'redoCache':_0x305aad});}[_0x1a9c4c(0x3b7)](_0x423f81){const _0x2de374=_0x1a9c4c,{unitID:_0x5c7e6d}=_0x423f81,_0x5e17a2=this['_renderManagerService'][_0x2de374(0x48f)](_0x5c7e6d)[_0x2de374(0x205)](_0x2d522a[_0x2de374(0x4f3)]),_0x5c52ab=_0x5e17a2['getActiveRange']();if(_0x5c52ab==null)return;const _0x3e7c98=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x423f81[_0x2de374(0x447)],'actions':null,'textRanges':[_0x5c52ab]}}],_0x255343=this[_0x2de374(0x2df)]['transformMutationsWithChangeset'](_0x423f81,_0x3e7c98);if(!_0x437f93[_0x2de374(0x1d4)](_0x255343))throw _0x255343[_0x2de374(0x317)];const _0x10718e=_0x255343[_0x2de374(0x2b9)][0x0][_0x2de374(0x3e7)][_0x2de374(0x29f)];Array[_0x2de374(0x5c9)](_0x10718e)&&_0x10718e[_0x2de374(0x4d8)]&&_0x5e17a2[_0x2de374(0x230)](_0x10718e[0x0]);}};_0x174d0a=_0x2e132a([_0xf3f679(0x0,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0xf3f679(0x1,_0x437f93[_0x1a9c4c(0x1c7)]),_0xf3f679(0x2,_0x454685['IRenderManagerService'])],_0x174d0a);var _0x6e83e2=Object[_0x1a9c4c(0x340)],_0x345565=Object[_0x1a9c4c(0x541)],_0x356fa9=(_0x5a0aaa,_0x5e1f55,_0x5eb020,_0x25fd25)=>{for(var _0x1e8d4b=_0x25fd25>0x1?void 0x0:_0x25fd25?_0x345565(_0x5e1f55,_0x5eb020):_0x5e1f55,_0x4077ec=_0x5a0aaa['length']-0x1,_0x10389c;_0x4077ec>=0x0;_0x4077ec--)(_0x10389c=_0x5a0aaa[_0x4077ec])&&(_0x1e8d4b=(_0x25fd25?_0x10389c(_0x5e1f55,_0x5eb020,_0x1e8d4b):_0x10389c(_0x1e8d4b))||_0x1e8d4b);return _0x25fd25&&_0x1e8d4b&&_0x6e83e2(_0x5e1f55,_0x5eb020,_0x1e8d4b),_0x1e8d4b;},_0x1f4de5=(_0x357044,_0x1cfbaa)=>(_0x5ed5cc,_0x4a2953)=>_0x1cfbaa(_0x5ed5cc,_0x4a2953,_0x357044);_0x19f7dc[_0x1a9c4c(0x59e)]=class extends _0x5ee268['Disposable']{constructor(_0x42dc74,_0x2e7d1,_0x11e948,_0x2b1a77,_0x18d3a6){const _0x2fdd72=_0x1a9c4c;super(),_0x1328f6(this,_0x2fdd72(0x5a4),new Map()),_0x1328f6(this,_0x2fdd72(0x407),new Map()),_0x1328f6(this,_0x2fdd72(0x425),!0x1),(this[_0x2fdd72(0x208)]=_0x42dc74,this['_localStorageService']=_0x2e7d1,this[_0x2fdd72(0x429)]=_0x11e948,this[_0x2fdd72(0x243)]=_0x2b1a77,this['_revisionService']=_0x18d3a6,this[_0x2fdd72(0x43d)]());}[_0x1a9c4c(0x4e1)](){const _0x574e69=_0x1a9c4c;this[_0x574e69(0x425)]=!0x0;}[_0x1a9c4c(0x3ad)](){const _0x1b7dc2=_0x1a9c4c;this[_0x1b7dc2(0x425)]=!0x1;}[_0x1a9c4c(0x214)](){const _0x3331e6=_0x1a9c4c;this[_0x3331e6(0x1f2)]()[_0x3331e6(0x29c)](()=>super[_0x3331e6(0x214)]());}async[_0x1a9c4c(0x2f8)](_0x1ceb7b){const _0x1fc1c6=_0x1a9c4c;return this[_0x1fc1c6(0x425)]?null:this[_0x1fc1c6(0x1ba)][_0x1fc1c6(0x45b)](_0x71d301(_0x1ceb7b));}async[_0x1a9c4c(0x548)](_0x28f5a3,_0x58909f){const _0x189d7c=_0x1a9c4c;return!!this[_0x189d7c(0x1ba)][_0x189d7c(0x2c9)](_0x28f5a3,_0x58909f);}[_0x1a9c4c(0x57e)](_0x7ce47,_0x386313,_0x2a56e5,_0x3764af){const _0x51c4eb=_0x1a9c4c,_0xe78d08=this[_0x51c4eb(0x3af)][_0x51c4eb(0x1e9)](_0x7ce47);this['_cachedData'][_0x51c4eb(0x26c)](_0x7ce47,{'unitID':_0x7ce47,'type':_0x386313,'awaitingChangeset':_0x2a56e5,'mutations':_0x3764af,'rev':_0xe78d08}),this[_0x51c4eb(0x407)]['has'](_0x7ce47)||this[_0x51c4eb(0x22e)](_0x7ce47);}[_0x1a9c4c(0x22e)](_0x397749){const _0x1de8fc=_0x1a9c4c,_0x1a9177=this['_getSaveTimeout']();_0x1a9177===0x0?this[_0x1de8fc(0x4b6)](_0x397749):this[_0x1de8fc(0x407)][_0x1de8fc(0x26c)](_0x397749,setTimeout(()=>this[_0x1de8fc(0x4b6)](_0x397749),_0x1a9177));}[_0x1a9c4c(0x30d)](){var _0x4c5972;return(_0x4c5972=this['_configService']['getConfig'](_0x9bc94d))!=null?_0x4c5972:0x3e8;}[_0x1a9c4c(0x4b6)](_0x7d4da9){const _0x25361b=_0x1a9c4c,_0x5e128f=this[_0x25361b(0x407)][_0x25361b(0x54d)](_0x7d4da9);return _0x5e128f!==void 0x0&&window[_0x25361b(0x556)](_0x5e128f),this[_0x25361b(0x1ba)]['setItem'](_0x71d301(_0x7d4da9),this['_cachedData'][_0x25361b(0x54d)](_0x7d4da9))['then'](()=>this['_saveTaskMap'][_0x25361b(0x1c8)](_0x7d4da9));}async[_0x1a9c4c(0x1f2)](){const _0x3122b9=_0x1a9c4c,_0x416ce6=[];this[_0x3122b9(0x407)][_0x3122b9(0x506)]((_0x1852a7,_0x272cd9)=>{const _0x4f0d54=_0x3122b9;window[_0x4f0d54(0x556)](_0x1852a7),_0x416ce6[_0x4f0d54(0x2ee)](this['_saveCache'](_0x272cd9)['then'](()=>{const _0x756e4a=_0x4f0d54;this[_0x756e4a(0x407)][_0x756e4a(0x1c8)](_0x272cd9);}));}),await Promise[_0x3122b9(0x4ca)](_0x416ce6);}['_setupBeforeClosingHandler'](){const _0x3f0c0a=_0x1a9c4c;this[_0x3f0c0a(0x337)](this[_0x3f0c0a(0x429)][_0x3f0c0a(0x1bf)](()=>{const _0x3e89d7=_0x3f0c0a;if(this['_saveTaskMap'][_0x3e89d7(0x3ce)])return this[_0x3e89d7(0x243)]['t']('collaboration-client.offline-data-not-saved');}));}},_0x19f7dc[_0x1a9c4c(0x59e)]=_0x356fa9([_0x1f4de5(0x0,_0x5ee268[_0x1a9c4c(0x422)]),_0x1f4de5(0x1,_0x5ee268[_0x1a9c4c(0x5a0)]),_0x1f4de5(0x2,_0x56f90f['IBeforeCloseService']),_0x1f4de5(0x3,_0x5ee268['Inject'](_0x5ee268[_0x1a9c4c(0x25a)])),_0x1f4de5(0x4,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93[_0x1a9c4c(0x53b)]))],_0x19f7dc[_0x1a9c4c(0x59e)]);function _0x71d301(_0x4f75ef){const _0x23d495=_0x1a9c4c;return _0x23d495(0x4e0)+_0x4f75ef;}var _0x36b3a9=Object[_0x1a9c4c(0x340)],_0x6c7386=Object[_0x1a9c4c(0x541)],_0x1218a7=(_0x5e79b5,_0x23c625,_0x53cf24,_0x217f10)=>{const _0x1f3ec4=_0x1a9c4c;for(var _0x4697c2=_0x217f10>0x1?void 0x0:_0x217f10?_0x6c7386(_0x23c625,_0x53cf24):_0x23c625,_0x3af08f=_0x5e79b5[_0x1f3ec4(0x4d8)]-0x1,_0x5cf211;_0x3af08f>=0x0;_0x3af08f--)(_0x5cf211=_0x5e79b5[_0x3af08f])&&(_0x4697c2=(_0x217f10?_0x5cf211(_0x23c625,_0x53cf24,_0x4697c2):_0x5cf211(_0x4697c2))||_0x4697c2);return _0x217f10&&_0x4697c2&&_0x36b3a9(_0x23c625,_0x53cf24,_0x4697c2),_0x4697c2;},_0x1a71ae=(_0x129bc6,_0x3119a7)=>(_0x2c1cf8,_0x586d67)=>_0x3119a7(_0x2c1cf8,_0x586d67,_0x129bc6);function _0x4452ec(_0x3067e0){const _0x58e760=_0x1a9c4c,{unitID:_0x385fe5,mutations:_0x22dac5}=_0x3067e0;return{'unitId':_0x385fe5,'subUnitId':_0x22dac5[0x0][_0x58e760(0x3e7)]['subUnitId']};}let _0x41bd09=class{constructor(_0x545a00,_0x295d0f,_0x468621){const _0x3ee7ad=_0x1a9c4c;this[_0x3ee7ad(0x474)]=_0x545a00,this[_0x3ee7ad(0x2df)]=_0x295d0f,this['_instanceService']=_0x468621;}['transformSelections'](_0x374973){const _0x197e44=_0x1a9c4c;var _0x8b11c6,_0xd34d62,_0x502377,_0x2aabc4;const _0x5b8b8e=this[_0x197e44(0x474)][_0x197e44(0x54d)](_0x149ec5[_0x197e44(0x488)]),{unitId:_0x1e8db8,subUnitId:_0x253570}=_0x4452ec(_0x374973),_0x29b7f1=_0x5b8b8e[_0x197e44(0x445)](_0x1e8db8)[_0x197e44(0x20f)](),_0x2f8eb0=(_0xd34d62=(_0x8b11c6=this[_0x197e44(0x47f)][_0x197e44(0x4e4)](_0x1e8db8))==null?void 0x0:_0x8b11c6[_0x197e44(0x267)]())==null?void 0x0:_0xd34d62['getSheetId']();if(_0x29b7f1['length']===0x0||!_0x1e8db8||!_0x253570)return;const _0x5f276d=[{'id':_0x149ec5[_0x197e44(0x408)]['id'],'params':{'unitId':_0x1e8db8,'subUnitId':_0x2f8eb0,'selections':_0x5ee268[_0x197e44(0x277)][_0x197e44(0x338)](_0x29b7f1)}}],_0x4f6c0d=this[_0x197e44(0x2df)][_0x197e44(0x250)](_0x374973,_0x5f276d);if(!_0x437f93[_0x197e44(0x1d4)](_0x4f6c0d))throw _0x4f6c0d['error'];const _0x5786af=(_0x2aabc4=(_0x502377=_0x4f6c0d[_0x197e44(0x2b9)][0x0])==null?void 0x0:_0x502377['params'])==null?void 0x0:_0x2aabc4['selections'];Array[_0x197e44(0x5c9)](_0x5786af)&&_0x5786af[_0x197e44(0x4d8)]&&this[_0x197e44(0x474)][_0x197e44(0x54d)](_0x5ee268[_0x197e44(0x386)])[_0x197e44(0x25f)](_0x149ec5[_0x197e44(0x408)]['id'],{'unitId':_0x1e8db8,'subUnitId':_0x2f8eb0,'selections':_0x5786af});}};_0x41bd09=_0x1218a7([_0x1a71ae(0x0,_0x5ee268['Inject'](_0x5ee268[_0x1a9c4c(0x418)])),_0x1a71ae(0x1,_0x437f93['ITransformService']),_0x1a71ae(0x2,_0x5ee268[_0x1a9c4c(0x39a)])],_0x41bd09);const _0x2c4a47=_0x5ee268[_0x1a9c4c(0x549)](_0x1a9c4c(0x4ab));var _0x40dedc=(_0x2a40d1=>(_0x2a40d1[_0x2a40d1['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x2a40d1[_0x2a40d1[_0x1a9c4c(0x457)]=0x1]=_0x1a9c4c(0x457),_0x2a40d1))(_0x40dedc||{});const _0x1ed73f=0x7530,_0x5d84cf=_0x1a9c4c(0x381);class _0x3f784d extends _0x5ee268[_0x1a9c4c(0x238)]{constructor(){const _0x2994eb=_0x1a9c4c;super(),_0x1328f6(this,_0x2994eb(0x463),_0x5ee268[_0x2994eb(0x277)][_0x2994eb(0x58b)]()),_0x1328f6(this,_0x2994eb(0x5be),new Set()),_0x1328f6(this,'_unitOnClients',new Map()),_0x1328f6(this,'_heartbeatTimer',null),_0x1328f6(this,_0x2994eb(0x29e),new Map()),_0x1328f6(this,_0x2994eb(0x2f3),new Map()),this[_0x2994eb(0x38a)]();}['dispose'](){const _0x138a78=_0x1a9c4c;super[_0x138a78(0x214)](),this['_clearOtherTimers'][_0x138a78(0x506)]((_0x1067fd,_0x4f92df)=>this[_0x138a78(0x221)](_0x4f92df)),this[_0x138a78(0x262)]&&window['clearInterval'](this[_0x138a78(0x262)]);}['getUnitStatus$'](_0x597b86){const _0x2fc2ba=_0x1a9c4c;return this[_0x2fc2ba(0x2ca)](_0x597b86)['pipe'](_0x56990c[_0x2fc2ba(0x22a)]());}[_0x1a9c4c(0x336)](_0x233ca5){const _0xb59e29=_0x1a9c4c;this[_0xb59e29(0x5be)][_0xb59e29(0x3ce)]===0x0&&this[_0xb59e29(0x4d1)](),this[_0xb59e29(0x5be)][_0xb59e29(0x4d0)](_0x233ca5),this[_0xb59e29(0x59d)]({'type':0x0,'memberID':this[_0xb59e29(0x463)],'unitIDs':[_0x233ca5],'isForwarded':!0x1});}[_0x1a9c4c(0x3bb)](_0x37aa06){const _0x3077d2=_0x1a9c4c;this[_0x3077d2(0x5be)][_0x3077d2(0x1c8)](_0x37aa06),this[_0x3077d2(0x5be)][_0x3077d2(0x3ce)]===0x0&&this[_0x3077d2(0x262)]&&window[_0x3077d2(0x331)](this[_0x3077d2(0x262)]);}[_0x1a9c4c(0x38a)](){const _0x24b497=_0x1a9c4c;this[_0x24b497(0x337)](_0x5ee268['toDisposable'](_0x56990c['fromEvent'](window,_0x24b497(0x2a6))[_0x24b497(0x3a7)](_0x4f9e98=>{const _0x55719c=_0x24b497;if(_0x4f9e98[_0x55719c(0x53c)]!==_0x5d84cf||!_0x4f9e98[_0x55719c(0x47a)])return;const _0xd5f201=JSON[_0x55719c(0x3f8)](_0x4f9e98[_0x55719c(0x47a)]);this[_0x55719c(0x237)](_0xd5f201);}))),window['addEventListener'](_0x24b497(0x4fd),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x24b497(0x5be)])}));}[_0x1a9c4c(0x237)](_0x20de5c){const _0xb47b7b=_0x1a9c4c;switch(_0x20de5c[_0xb47b7b(0x219)]){case 0x0:this[_0xb47b7b(0x537)](_0x20de5c);break;case 0x1:this[_0xb47b7b(0x365)](_0x20de5c);break;case 0x2:this[_0xb47b7b(0x505)](_0x20de5c);break;}}[_0x1a9c4c(0x537)](_0x4771b9){const _0x3b73e1=_0x1a9c4c,{unitIDs:_0x490d0c,memberID:_0x2478a8,isForwarded:_0x2b3aa6}=_0x4771b9;_0x490d0c[_0x3b73e1(0x506)](_0x4ef14b=>{const _0x4fb2b7=_0x3b73e1;if(!_0x2b3aa6&&this[_0x4fb2b7(0x2f2)][_0x4fb2b7(0x252)](_0x4ef14b)&&this['_ensureSubject'](_0x4ef14b)['next'](0x1),!this['_unitOnClients'][_0x4fb2b7(0x252)](_0x4ef14b)||!this['_unitOnClients'][_0x4fb2b7(0x54d)](_0x4ef14b)[_0x4fb2b7(0x252)](_0x2478a8)){const _0x485d69=this[_0x4fb2b7(0x2f2)][_0x4fb2b7(0x54d)](_0x4ef14b)||new Set();_0x485d69['add'](_0x2478a8),this['_unitOnClients'][_0x4fb2b7(0x26c)](_0x4ef14b,_0x485d69),this[_0x4fb2b7(0x46e)](_0x2478a8);}}),_0x2b3aa6||this[_0x3b73e1(0x59d)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3b73e1(0x5be)]],'isForwarded':!0x0});}[_0x1a9c4c(0x46e)](_0x280061){const _0x40f817=_0x1a9c4c;this['_removeClearOtherTimer'](_0x280061);const _0x1ac0d6=window[_0x40f817(0x557)](()=>{const _0x4a4933=_0x40f817;this[_0x4a4933(0x2f2)][_0x4a4933(0x506)](_0x50a4ea=>{const _0x2ccffd=_0x4a4933;_0x50a4ea[_0x2ccffd(0x1c8)](_0x280061);});},_0x1ed73f*0x2);this[_0x40f817(0x29e)]['set'](_0x280061,_0x1ac0d6);}[_0x1a9c4c(0x221)](_0x5d7de5){const _0x2adc02=_0x1a9c4c;if(this[_0x2adc02(0x29e)][_0x2adc02(0x252)](_0x5d7de5)){const _0x4dfb1a=this[_0x2adc02(0x29e)][_0x2adc02(0x54d)](_0x5d7de5);_0x4dfb1a&&window[_0x2adc02(0x556)](_0x4dfb1a),this[_0x2adc02(0x29e)][_0x2adc02(0x26c)](_0x5d7de5,null);}}[_0x1a9c4c(0x365)](_0x502035){const _0x3f1e44=_0x1a9c4c,{memberID:_0x182647,unitIDs:_0x4d8c75}=_0x502035;_0x4d8c75[_0x3f1e44(0x506)](_0x56018a=>{const _0x10a4d8=_0x3f1e44;var _0x58f0a9;const _0x3ce678=this[_0x10a4d8(0x2f2)]['get'](_0x56018a);_0x3ce678&&(_0x3ce678[_0x10a4d8(0x1c8)](_0x182647),(_0x58f0a9=this[_0x10a4d8(0x2ca)](_0x56018a))==null||_0x58f0a9[_0x10a4d8(0x42d)](_0x3ce678['size']===0x0?0x0:0x1));}),this[_0x3f1e44(0x221)](_0x182647);}[_0x1a9c4c(0x505)](_0x480b75){const _0x327f77=_0x1a9c4c;this[_0x327f77(0x46e)](_0x480b75[_0x327f77(0x2b2)]);}[_0x1a9c4c(0x59d)](_0x380933){const _0x3cdf97=_0x1a9c4c;localStorage[_0x3cdf97(0x2c9)](_0x5d84cf,JSON[_0x3cdf97(0x301)](_0x380933));}[_0x1a9c4c(0x4d1)](){const _0x3aa856=_0x1a9c4c;this[_0x3aa856(0x262)]=window[_0x3aa856(0x518)](()=>{const _0x349759=_0x3aa856;this[_0x349759(0x59d)]({'type':0x2,'memberID':this[_0x349759(0x463)]});},_0x1ed73f);}[_0x1a9c4c(0x2ca)](_0x507fa5){const _0xb88faa=_0x1a9c4c;return this[_0xb88faa(0x2f3)]['has'](_0x507fa5)||this[_0xb88faa(0x2f3)][_0xb88faa(0x26c)](_0x507fa5,new _0x56990c[(_0xb88faa(0x3d3))](0x0)),this[_0xb88faa(0x2f3)][_0xb88faa(0x54d)](_0x507fa5);}}function _0x51fd6d(_0x5eb195){const _0x4453eb=_0x1a9c4c;let _0x2feb38='';for(const _0x2cced8 of _0x5eb195){const {startOffset:_0x2ee4ac,endOffset:_0x15bdeb,isActive:_0x8d1917}=_0x2cced8;_0x2feb38[_0x4453eb(0x4d8)]&&(_0x2feb38+=','),_0x2feb38+=_0x2ee4ac+':'+_0x15bdeb+':'+(_0x8d1917?'1':'0');}return _0x2feb38;}function _0x54df69(_0x1ba743){const _0x4ad304=_0x1a9c4c,_0x882ac6=_0x1ba743[_0x4ad304(0x2a5)](','),_0x4465e9=[];for(const _0x394aba of _0x882ac6){const [_0xd8db42,_0x3ba9bb,_0x127c9e]=_0x394aba[_0x4ad304(0x2a5)](':');_0x4465e9[_0x4ad304(0x2ee)]({'startOffset':Number(_0xd8db42),'endOffset':Number(_0x3ba9bb),'collapsed':_0xd8db42===_0x3ba9bb,'isActive':_0x127c9e==='1'});}return _0x4465e9[_0x4ad304(0x454)](_0x2d8630=>_0x2d8630[_0x4ad304(0x4bd)])||(_0x4465e9[0x0]['isActive']=!0x0),_0x4465e9;}class _0x3c54ae extends _0x5ee268[_0x1a9c4c(0x4b2)]{constructor(){const _0x4a23ef=_0x1a9c4c;super(...arguments),_0x1328f6(this,_0x4a23ef(0x1ca),new _0x56990c['BehaviorSubject'](null)),_0x1328f6(this,_0x4a23ef(0x521),this[_0x4a23ef(0x1ca)][_0x4a23ef(0x560)]());}[_0x1a9c4c(0x333)](_0x2c1694){const _0x87db2f=_0x1a9c4c,{unitID:_0x7f5905,memberID:_0x56f098,textRanges:_0x35ed46}=_0x2c1694,_0x4bf513=_0x51fd6d(_0x35ed46),_0x37fa2d={'unitID':_0x7f5905,'memberID':_0x56f098,'selection':_0x4bf513};this['_collabCursorState$'][_0x87db2f(0x42d)](_0x37fa2d);}}var _0x83aaa6=Object[_0x1a9c4c(0x340)],_0x969b83=Object[_0x1a9c4c(0x541)],_0x463953=(_0x4522fd,_0x3ec600,_0x24bb52,_0x42e03c)=>{for(var _0x972c54=_0x42e03c>0x1?void 0x0:_0x42e03c?_0x969b83(_0x3ec600,_0x24bb52):_0x3ec600,_0x2ecb81=_0x4522fd['length']-0x1,_0x31cb43;_0x2ecb81>=0x0;_0x2ecb81--)(_0x31cb43=_0x4522fd[_0x2ecb81])&&(_0x972c54=(_0x42e03c?_0x31cb43(_0x3ec600,_0x24bb52,_0x972c54):_0x31cb43(_0x972c54))||_0x972c54);return _0x42e03c&&_0x972c54&&_0x83aaa6(_0x3ec600,_0x24bb52,_0x972c54),_0x972c54;},_0x231eab=(_0x446b7c,_0x49f86d)=>(_0x389de6,_0x3478e5)=>_0x49f86d(_0x389de6,_0x3478e5,_0x446b7c);let _0x19e584=class{constructor(_0x413048,_0x48919f){this['_injector']=_0x413048,this['_transformService']=_0x48919f;}[_0x1a9c4c(0x49a)](_0x2cca1f){const _0x2a8c74=_0x1a9c4c;var _0xf22c04;const _0x13a0df=this[_0x2a8c74(0x474)]['get'](_0x45fa2b[_0x2a8c74(0x3d2)]),_0x4509b5=(_0xf22c04=_0x13a0df[_0x2a8c74(0x378)]())!=null?_0xf22c04:[];if(_0x4509b5[_0x2a8c74(0x4d8)]===0x0)return;const _0x5c7c6a=[{'id':_0x2a8c74(0x220),'params':{'unitId':_0x2cca1f['unitID'],'actions':null,'textRanges':_0x4509b5}}],_0x541350=this[_0x2a8c74(0x2df)][_0x2a8c74(0x250)](_0x2cca1f,_0x5c7c6a);if(!_0x437f93[_0x2a8c74(0x1d4)](_0x541350))throw _0x541350[_0x2a8c74(0x317)];const _0xd7842e=_0x541350[_0x2a8c74(0x2b9)][0x0][_0x2a8c74(0x3e7)][_0x2a8c74(0x29f)];Array[_0x2a8c74(0x5c9)](_0xd7842e)&&_0xd7842e['length']&&_0x13a0df['replaceTextRanges'](_0xd7842e,!0x1);}};_0x19e584=_0x463953([_0x231eab(0x0,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0x231eab(0x1,_0x437f93['ITransformService'])],_0x19e584);const _0x39affe=new Set([_0x149ec5[_0x1a9c4c(0x50a)]['id']]);function _0x37af09(_0x4919ab,_0x3ecda7,_0x34b5a8,_0x4f4134,_0x2c68aa){const _0x271e50=_0x1a9c4c;var _0x2dc362,_0x7ea077,_0x325487,_0x4201ae;const _0xe92ef6=[];for(const _0x5412a1 of _0x4919ab)if(_0x39affe[_0x271e50(0x252)](_0x5412a1['id'])){if(_0xe92ef6[_0x271e50(0x4d8)]>0x0)break;_0xe92ef6['push'](_0x5412a1);break;}else _0xe92ef6['push'](_0x5412a1);const _0x549b07=(_0x7ea077=(_0x2dc362=_0x2c68aa[_0x271e50(0x5a9)]())==null?void 0x0:_0x2dc362[_0x271e50(0x3db)])!=null?_0x7ea077:_0x271e50(0x546),_0x33b3e5=(_0x4201ae=(_0x325487=_0x2c68aa[_0x271e50(0x5a9)]())==null?void 0x0:_0x325487[_0x271e50(0x2b2)])!=null?_0x4201ae:'unknown';return{'changeset':{'unitID':_0x3ecda7,'type':_0x437f93[_0x271e50(0x239)](_0x34b5a8[_0x271e50(0x487)](_0x3ecda7)),'baseRev':_0x4f4134['getCurrentRevOfUnit'](_0x3ecda7),'revision':0x0,'userID':_0x549b07,'memberID':_0x33b3e5,'mutations':_0xe92ef6},'pendingMutations':_0x4919ab['slice'](_0xe92ef6['length'])};}function _0x5673db(_0x4b625c,_0x6c5d99,_0x4aab21,_0x2f0b53,_0x4950f6){const _0x341454=_0x1a9c4c;var _0x5ce9be,_0x4a6642,_0x34f7e0,_0x595a6b;const _0x40b8ed=[_0x4b625c[_0x341454(0x22c)]((_0x8a021a,_0x19c1bb)=>{const _0x2a70a5=_0x341454;var _0x4ef232;const {id:_0x379145}=_0x8a021a,{id:_0x27574d,type:_0x37f6ff}=_0x19c1bb,_0x3b56dd=(_0x4ef232=_0x8a021a[_0x2a70a5(0x3e7)])!=null?_0x4ef232:{'actions':null},_0x130db4=_0x19c1bb[_0x2a70a5(0x3e7)];if(_0x379145&&_0x379145!==_0x27574d)throw new Error(_0x2a70a5(0x223)+_0x379145+_0x2a70a5(0x3ff)+_0x27574d+'.');return{..._0x8a021a,'id':_0x27574d,'type':_0x37f6ff,'params':{'unitId':_0x130db4[_0x2a70a5(0x22b)],'textRanges':_0x130db4[_0x2a70a5(0x29f)],'actions':_0x5ee268[_0x2a70a5(0x339)][_0x2a70a5(0x492)](_0x3b56dd[_0x2a70a5(0x51a)],_0x130db4['actions'])}};},{})],_0x87d3d0=(_0x4a6642=(_0x5ce9be=_0x4950f6[_0x341454(0x5a9)]())==null?void 0x0:_0x5ce9be[_0x341454(0x3db)])!=null?_0x4a6642:'unknown',_0x26fb75=(_0x595a6b=(_0x34f7e0=_0x4950f6[_0x341454(0x5a9)]())==null?void 0x0:_0x34f7e0[_0x341454(0x2b2)])!=null?_0x595a6b:_0x341454(0x546);return{'changeset':{'unitID':_0x6c5d99,'type':_0x437f93[_0x341454(0x239)](_0x4aab21[_0x341454(0x487)](_0x6c5d99)),'baseRev':_0x2f0b53[_0x341454(0x1e9)](_0x6c5d99),'revision':0x0,'userID':_0x87d3d0,'memberID':_0x26fb75,'mutations':_0x40b8ed},'pendingMutations':[]};}const _0xdcba22={'id':_0x149ec5[_0x1a9c4c(0x437)]['id'],'type':_0x5ee268['CommandType'][_0x1a9c4c(0x31d)],'params':{}};var _0x41fcf0=Object[_0x1a9c4c(0x340)],_0x5e361d=Object[_0x1a9c4c(0x541)],_0x696347=(_0x21edce,_0x5c37aa,_0x479e44,_0x797c54)=>{const _0xdbdf35=_0x1a9c4c;for(var _0x5ee33c=_0x797c54>0x1?void 0x0:_0x797c54?_0x5e361d(_0x5c37aa,_0x479e44):_0x5c37aa,_0x4cdc13=_0x21edce[_0xdbdf35(0x4d8)]-0x1,_0xf36f19;_0x4cdc13>=0x0;_0x4cdc13--)(_0xf36f19=_0x21edce[_0x4cdc13])&&(_0x5ee33c=(_0x797c54?_0xf36f19(_0x5c37aa,_0x479e44,_0x5ee33c):_0xf36f19(_0x5ee33c))||_0x5ee33c);return _0x797c54&&_0x5ee33c&&_0x41fcf0(_0x5c37aa,_0x479e44,_0x5ee33c),_0x5ee33c;},_0x1df1ed=(_0x1553f3,_0x1f54e6)=>(_0x5f15a0,_0x40d222)=>_0x1f54e6(_0x5f15a0,_0x40d222,_0x1553f3),_0x319e47=(_0x5bdc49=>(_0x5bdc49[_0x1a9c4c(0x48e)]=_0x1a9c4c(0x59f),_0x5bdc49[_0x1a9c4c(0x3d7)]=_0x1a9c4c(0x558),_0x5bdc49[_0x1a9c4c(0x50b)]=_0x1a9c4c(0x5a5),_0x5bdc49[_0x1a9c4c(0x56d)]='awaiting',_0x5bdc49[_0x1a9c4c(0x3f6)]=_0x1a9c4c(0x275),_0x5bdc49[_0x1a9c4c(0x242)]=_0x1a9c4c(0x5a2),_0x5bdc49[_0x1a9c4c(0x596)]='conflict',_0x5bdc49[_0x1a9c4c(0x304)]='offline',_0x5bdc49))(_0x319e47||{});class _0x5adb03{constructor(_0x11a0ff,_0x33c2f3,_0x136bba,_0x10ac5c,_0x3a15c5,_0x1a3c2c,_0x5529cf,_0x57e712,_0x54f35b){const _0x2ac8e8=_0x1a9c4c;_0x1328f6(this,_0x2ac8e8(0x523),null),_0x1328f6(this,_0x2ac8e8(0x1cd),[]),(this['unitID']=_0x11a0ff,this[_0x2ac8e8(0x219)]=_0x33c2f3,this[_0x2ac8e8(0x2b6)]=_0x3a15c5,this[_0x2ac8e8(0x48d)]=_0x1a3c2c,this[_0x2ac8e8(0x278)]=_0x5529cf,this[_0x2ac8e8(0x3af)]=_0x57e712,this['_localCacheService']=_0x54f35b,this[_0x2ac8e8(0x523)]=_0x136bba,this['_pendingMutations']=_0x10ac5c);}[_0x1a9c4c(0x209)](_0x1439d4){const _0x2a42a1=_0x1a9c4c,_0x5da58f=this[_0x2a42a1(0x3af)][_0x2a42a1(0x1e9)](this[_0x2a42a1(0x447)]);return _0x1439d4[_0x2a42a1(0x500)]>_0x5da58f+0x1?(this[_0x2a42a1(0x2b6)][_0x2a42a1(0x4d4)]({'from':_0x5da58f,'to':_0x1439d4['revision']-0x1}),!0x0):!0x1;}[_0x1a9c4c(0x497)](_0x42220b){const _0x5c6d36=_0x1a9c4c;this[_0x5c6d36(0x278)]['transformUndoRedo'](this['unitID'],_0x42220b);}['_transformSelections'](_0x3e5449){const _0x432160=_0x1a9c4c;var _0xf16ffe,_0x4b1345;(_0x4b1345=(_0xf16ffe=this['_handler'])[_0x432160(0x2db)])==null||_0x4b1345[_0x432160(0x451)](_0xf16ffe,_0x3e5449);}[_0x1a9c4c(0x51b)](_0x11e71c){const _0x46dde4=_0x1a9c4c;var _0x3266d1,_0x4f31b9;return(_0x4f31b9=(_0x3266d1=this[_0x46dde4(0x2b6)])[_0x46dde4(0x3b6)])==null?void 0x0:_0x4f31b9['call'](_0x3266d1,_0x11e71c);}[_0x1a9c4c(0x2e3)](_0x119bac){const _0x1540b2=_0x1a9c4c;var _0x42259a,_0x4406d7,_0x11003b;return(_0x11003b=(_0x4406d7=(_0x42259a=this[_0x1540b2(0x2b6)])[_0x1540b2(0x599)])==null?void 0x0:_0x4406d7[_0x1540b2(0x451)](_0x42259a,_0x119bac))!=null?_0x11003b:_0x119bac;}['_syncEditingCollabCursor'](_0x26aa5e){const _0x4c5c05=_0x1a9c4c;var _0x3a183d,_0x20153c;if(this[_0x4c5c05(0x219)]===_0x69fde1[_0x4c5c05(0x1ec)]){const {unitID:_0x6a0cf3,mutations:_0x24668c,memberID:_0xada3cd}=_0x26aa5e,_0x3a9c5a=_0x24668c[0x0][_0x4c5c05(0x3e7)][_0x4c5c05(0x29f)];Array[_0x4c5c05(0x5c9)](_0x3a9c5a)&&_0x3a9c5a['length']>0x0&&((_0x20153c=(_0x3a183d=this[_0x4c5c05(0x2b6)])[_0x4c5c05(0x2cf)])==null||_0x20153c['call'](_0x3a183d,{'unitID':_0x6a0cf3,'memberID':_0xada3cd,'textRanges':_0x3a9c5a}));}}[_0x1a9c4c(0x1c5)](){const _0x4b3a8a=_0x1a9c4c;this[_0x4b3a8a(0x55e)]['updateOfflineData'](this[_0x4b3a8a(0x447)],this[_0x4b3a8a(0x219)],this[_0x4b3a8a(0x523)],this[_0x4b3a8a(0x1cd)]);}[_0x1a9c4c(0x459)](){const _0x4d08ae=_0x1a9c4c;return this['_revisionService'][_0x4d08ae(0x1e9)](this[_0x4d08ae(0x447)]);}[_0x1a9c4c(0x1e7)](){const _0x2efdb2=_0x1a9c4c;this[_0x2efdb2(0x3af)]['incrementRevOfUnit'](this['unitID']);}['_executeRemoteChangeset'](_0x22e64f){const _0x34d318=_0x1a9c4c;var _0x814732;const _0x562a72=this[_0x34d318(0x2e3)](_0x22e64f),_0x2676d5=_0x5ee268[_0x34d318(0x4bb)](_0x562a72['mutations'],this[_0x34d318(0x48d)],{'fromCollab':!0x0});if(!_0x2676d5[_0x34d318(0x56f)])throw _0x2676d5[_0x34d318(0x317)]instanceof Error?_0x2676d5[_0x34d318(0x317)]:new Error((_0x814732=_0x2676d5[_0x34d318(0x317)])!=null?_0x814732:_0x34d318(0x1ae));this[_0x34d318(0x51b)](_0x562a72),this[_0x34d318(0x497)](_0x22e64f),this[_0x34d318(0x4d6)](_0x562a72),this[_0x34d318(0x561)](_0x562a72),this[_0x34d318(0x1e7)]();}}let _0x58d7fd=class extends _0x5adb03{constructor(_0x5c0950,_0x111f99,_0x10c7c8,_0x3d6cf4,_0x3b985e,_0x510384,_0x32a815,_0x35f1d9,_0x5590cb,_0x10b0fd){const _0x4d19a3=_0x1a9c4c;super(_0x5c0950,_0x111f99,null,[],_0x10c7c8,_0x35f1d9,_0x32a815,_0x3d6cf4,_0x3b985e),_0x1328f6(this,'status',_0x4d19a3(0x558)),(this[_0x4d19a3(0x474)]=_0x510384,this[_0x4d19a3(0x2a9)]=_0x5590cb,this['_transformService']=_0x10b0fd);}[_0x1a9c4c(0x5cd)](_0x10f8bc){const _0x524b2d=_0x1a9c4c,_0x4a2dd7=this[_0x524b2d(0x474)]['createInstance'](_0x324b5a,this[_0x524b2d(0x447)],this[_0x524b2d(0x219)],[_0x10f8bc],this[_0x524b2d(0x2b6)]);return _0x4a2dd7[_0x524b2d(0x53d)](),_0x4a2dd7[_0x524b2d(0x1c5)](),_0x4a2dd7;}[_0x1a9c4c(0x2ab)](_0xd7acda){const _0x550c2d=_0x1a9c4c;if(this[_0x550c2d(0x209)](_0xd7acda))return this['_injector'][_0x550c2d(0x2dd)](_0x1851e1,this[_0x550c2d(0x447)],this['type'],null,[],null,[_0xd7acda],this['_handler']);try{const _0x476f6b=this[_0x550c2d(0x2df)]['transformMutationsWithChangeset'](_0xd7acda,[_0xdcba22]);if(_0x437f93[_0x550c2d(0x1d4)](_0x476f6b)){const {c1Prime:_0x12c2d3}=_0x476f6b;return this[_0x550c2d(0x5a3)](_0x12c2d3),this;}throw _0x476f6b[_0x550c2d(0x317)];}catch(_0x3481d8){return this['_logService'][_0x550c2d(0x317)](_0x3481d8),this[_0x550c2d(0x414)](!0x1);}}[_0x1a9c4c(0x414)](_0x160de4){const _0xa9086b=_0x1a9c4c;return this['_injector'][_0xa9086b(0x2dd)](_0x3e2513,this['unitID'],this[_0xa9086b(0x219)],null,[],this[_0xa9086b(0x2b6)],_0x160de4);}['onRemoteAck'](){const _0x264efd=_0x1a9c4c;throw new Error(_0x264efd(0x274));}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x411984=_0x1a9c4c;return this[_0x411984(0x474)]['createInstance'](_0xc956b6,this[_0x411984(0x447)],this[_0x411984(0x219)],null,[],this[_0x411984(0x2b6)]);}['toggleOnline'](){return this;}[_0x1a9c4c(0x26f)](){const _0x501470=_0x1a9c4c;throw new Error(_0x501470(0x326));}[_0x1a9c4c(0x363)](){const _0x5f5ad1=_0x1a9c4c,_0x262be1=this[_0x5f5ad1(0x3af)][_0x5f5ad1(0x1e9)](this[_0x5f5ad1(0x447)]);return this[_0x5f5ad1(0x2b6)]['onMissingChangesets']({'from':_0x262be1,'to':0x0}),this['_injector'][_0x5f5ad1(0x2dd)](_0x1851e1,this['unitID'],this[_0x5f5ad1(0x219)],null,[],null,[],this[_0x5f5ad1(0x2b6)]);}};_0x58d7fd=_0x696347([_0x1df1ed(0x3,_0x5ee268['Inject'](_0x437f93[_0x1a9c4c(0x53b)])),_0x1df1ed(0x4,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc[_0x1a9c4c(0x59e)])),_0x1df1ed(0x5,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0x1df1ed(0x6,_0x5ee268[_0x1a9c4c(0x493)]),_0x1df1ed(0x7,_0x5ee268[_0x1a9c4c(0x386)]),_0x1df1ed(0x8,_0x5ee268[_0x1a9c4c(0x2ff)]),_0x1df1ed(0x9,_0x437f93[_0x1a9c4c(0x1c7)])],_0x58d7fd);let _0x324b5a=class extends _0x5adb03{constructor(_0x281a10,_0xa5f8ec,_0x3eddf3,_0x464bca,_0x2f9547,_0xe93274,_0x27a143,_0x1e9a93,_0x51ae57,_0x161bb7,_0x4c1b75,_0x510338,_0x5167f9,_0x4f068a){const _0x579b9b=_0x1a9c4c;super(_0x281a10,_0xa5f8ec,null,_0x3eddf3,_0x464bca,_0x161bb7,_0x4f068a,_0xe93274,_0x27a143),_0x1328f6(this,_0x579b9b(0x227),_0x579b9b(0x5a5)),_0x1328f6(this,_0x579b9b(0x20c),null),_0x1328f6(this,_0x579b9b(0x292),null),(this[_0x579b9b(0x474)]=_0x2f9547,this['_memberService']=_0x1e9a93,this[_0x579b9b(0x2a9)]=_0x51ae57,this[_0x579b9b(0x208)]=_0x4c1b75,this[_0x579b9b(0x2df)]=_0x510338,this[_0x579b9b(0x535)]=_0x5167f9);}[_0x1a9c4c(0x5cd)](_0x4a4f1f){const _0x4c9a4f=_0x1a9c4c;return this[_0x4c9a4f(0x1cd)][_0x4c9a4f(0x2ee)](_0x4a4f1f),this['_updateLocalCache'](),this;}[_0x1a9c4c(0x2ab)](_0x3fa49a){const _0x5ca136=_0x1a9c4c;if(this[_0x5ca136(0x209)](_0x3fa49a))return this[_0x5ca136(0x4e9)](),this[_0x5ca136(0x474)]['createInstance'](_0x1851e1,this['unitID'],this['type'],null,this[_0x5ca136(0x1cd)],null,[_0x3fa49a],this[_0x5ca136(0x2b6)]);try{const _0x5a31c5=this['_transformService'][_0x5ca136(0x250)](_0x3fa49a,this['_pendingMutations']);if(_0x437f93[_0x5ca136(0x1d4)](_0x5a31c5)){const {c1Prime:_0x2a0a59,m2Prime:_0xcacc8d}=_0x5a31c5;this['_executeRemoteChangeset'](_0x2a0a59);const _0x3a3983=this['_injector']['createInstance'](_0x324b5a,this[_0x5ca136(0x447)],this[_0x5ca136(0x219)],_0xcacc8d,this[_0x5ca136(0x2b6)]);return this[_0x5ca136(0x4e9)](),_0x3a3983[_0x5ca136(0x53d)](this['_scheduleTimestamp']?Math['max'](0x0,new Date()[_0x5ca136(0x1a5)]()-this[_0x5ca136(0x20c)]):this[_0x5ca136(0x318)]()),_0x3a3983;}throw _0x5a31c5[_0x5ca136(0x317)];}catch(_0x539050){return this['_logService'][_0x5ca136(0x317)](_0x539050),this[_0x5ca136(0x414)](!0x1);}}[_0x1a9c4c(0x23b)](){const _0x2d9c10=_0x1a9c4c;throw new Error(_0x2d9c10(0x391));}[_0x1a9c4c(0x38f)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x1a9c4c(0x5bb)](){const _0x555e40=_0x1a9c4c;return this[_0x555e40(0x4e9)](),this[_0x555e40(0x474)]['createInstance'](_0xc956b6,this[_0x555e40(0x447)],this[_0x555e40(0x219)],null,this[_0x555e40(0x1cd)],this['_handler']);}[_0x1a9c4c(0x44d)](){return this;}['_schedule'](_0xe893a6){const _0x3faac4=_0x1a9c4c,_0x30deef=_0xe893a6!=null?_0xe893a6:this[_0x3faac4(0x318)]();this[_0x3faac4(0x20c)]=new Date()[_0x3faac4(0x1a5)](),this[_0x3faac4(0x292)]=window['setTimeout'](()=>{const _0x502526=_0x3faac4;this[_0x502526(0x4e9)]();let _0x4964ed=null;switch(this[_0x502526(0x219)]){case _0x69fde1[_0x502526(0x498)]:{_0x4964ed=_0x37af09(this[_0x502526(0x1cd)],this[_0x502526(0x447)],this[_0x502526(0x535)],this[_0x502526(0x3af)],this[_0x502526(0x33d)]);break;}case _0x69fde1[_0x502526(0x1ec)]:{this[_0x502526(0x1cd)][_0x502526(0x343)](_0x542a2c=>_0x542a2c['id']===_0x45fa2b[_0x502526(0x1fb)]['id'])?_0x4964ed=_0x5673db(this['_pendingMutations'],this[_0x502526(0x447)],this[_0x502526(0x535)],this[_0x502526(0x3af)],this[_0x502526(0x33d)]):_0x4964ed=_0x37af09(this[_0x502526(0x1cd)],this[_0x502526(0x447)],this['_univerInstanceService'],this['_revisionService'],this[_0x502526(0x33d)]);break;}default:throw new Error(_0x502526(0x21a)+this[_0x502526(0x219)]+_0x502526(0x251));}const {changeset:_0x247ed4,pendingMutations:_0x5c8690}=_0x4964ed;this['_handler'][_0x502526(0x254)](_0x247ed4);const _0x37a088=_0x5c8690[_0x502526(0x4d8)]?this[_0x502526(0x474)]['createInstance'](_0x2cc3ca,this[_0x502526(0x447)],this[_0x502526(0x219)],_0x247ed4,_0x5c8690,this[_0x502526(0x2b6)]):this[_0x502526(0x474)]['createInstance'](_0x1cce27,this[_0x502526(0x447)],this['type'],_0x247ed4,this[_0x502526(0x2b6)]);_0x37a088['_updateLocalCache'](),this[_0x502526(0x2b6)][_0x502526(0x5af)](this,_0x37a088);},_0x30deef);}['_getSendChangesetTimeout'](){const _0x519436=_0x1a9c4c;var _0x2e007d;const _0x3a5e48=this[_0x519436(0x208)][_0x519436(0x3a6)](_0x17bae2);return(_0x2e007d=_0x3a5e48==null?void 0x0:_0x3a5e48[_0x519436(0x46d)])!=null?_0x2e007d:0x7d0;}[_0x1a9c4c(0x26f)](){const _0x2c5115=_0x1a9c4c;throw new Error(_0x2c5115(0x424));}[_0x1a9c4c(0x4e9)](){const _0x13e0c3=_0x1a9c4c;this['_sendingTimer']!=null&&(clearTimeout(this[_0x13e0c3(0x292)]),this['_sendingTimer']=null);}[_0x1a9c4c(0x414)](_0x2d6251){const _0x364346=_0x1a9c4c;return this[_0x364346(0x4e9)](),this[_0x364346(0x474)][_0x364346(0x2dd)](_0x3e2513,this[_0x364346(0x447)],this[_0x364346(0x219)],null,this[_0x364346(0x1cd)],this[_0x364346(0x2b6)],_0x2d6251);}};_0x324b5a=_0x696347([_0x1df1ed(0x4,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0x1df1ed(0x5,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93[_0x1a9c4c(0x53b)])),_0x1df1ed(0x6,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc['LocalCacheService'])),_0x1df1ed(0x7,_0x5ee268[_0x1a9c4c(0x4b4)](_0xd4878c)),_0x1df1ed(0x8,_0x5ee268['ILogService']),_0x1df1ed(0x9,_0x5ee268[_0x1a9c4c(0x386)]),_0x1df1ed(0xa,_0x5ee268[_0x1a9c4c(0x422)]),_0x1df1ed(0xb,_0x437f93[_0x1a9c4c(0x1c7)]),_0x1df1ed(0xc,_0x5ee268['IUniverInstanceService']),_0x1df1ed(0xd,_0x5ee268['IUndoRedoService'])],_0x324b5a);let _0x1cce27=class extends _0x5adb03{constructor(_0x1a5e33,_0xea487c,_0x2295d4,_0x5d2c60,_0x595317,_0x52a3d4,_0x34f4b6,_0x12dc66,_0x5d8aac,_0x144631,_0x301af3){const _0x1fbf35=_0x1a9c4c;super(_0x1a5e33,_0xea487c,_0x2295d4,[],_0x5d2c60,_0x12dc66,_0x301af3,_0x52a3d4,_0x34f4b6),_0x1328f6(this,_0x1fbf35(0x227),'awaiting'),(this[_0x1fbf35(0x474)]=_0x595317,this['_logService']=_0x5d8aac,this[_0x1fbf35(0x2df)]=_0x144631);}[_0x1a9c4c(0x5cd)](_0x16b797){const _0x3e382e=_0x1a9c4c,_0x5afb8b=this[_0x3e382e(0x474)][_0x3e382e(0x2dd)](_0x2cc3ca,this[_0x3e382e(0x447)],this[_0x3e382e(0x219)],this[_0x3e382e(0x523)],[_0x16b797],this[_0x3e382e(0x2b6)]);return _0x5afb8b['_updateLocalCache'](),_0x5afb8b;}['onRemoteChangeset'](_0x8ad7f5){const _0x5eea9a=_0x1a9c4c;if(this[_0x5eea9a(0x209)](_0x8ad7f5))return this[_0x5eea9a(0x474)]['createInstance'](_0x1851e1,this['unitID'],this[_0x5eea9a(0x219)],this[_0x5eea9a(0x523)],[],null,[_0x8ad7f5],this[_0x5eea9a(0x2b6)]);try{const _0x45b9fa=this[_0x5eea9a(0x2df)]['transformChangesets']([_0x8ad7f5],[this['_awaitingChangeset']],!0x1);if(_0x437f93['isTransformChangesetsSuccess'](_0x45b9fa)){const {c1Prime:_0x1529d2,c2Prime:_0x3ab82e}=_0x45b9fa;this[_0x5eea9a(0x5a3)](_0x1529d2[0x0]),_0x3ab82e[0x0]['baseRev']=this[_0x5eea9a(0x459)]();const _0x20f198=this['_injector'][_0x5eea9a(0x2dd)](_0x1cce27,this['unitID'],this[_0x5eea9a(0x219)],_0x3ab82e[0x0],this[_0x5eea9a(0x2b6)]);return _0x20f198[_0x5eea9a(0x1c5)](),_0x20f198;}return this[_0x5eea9a(0x414)](!0x1);}catch(_0x37840e){return this[_0x5eea9a(0x2a9)][_0x5eea9a(0x317)](_0x37840e),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x478c3c){const _0xc0c929=_0x1a9c4c,_0x588b2a=this['_revisionService'][_0xc0c929(0x1e9)](this[_0xc0c929(0x447)]);if(_0x478c3c[_0xc0c929(0x500)]<_0x588b2a-0x1)return this;if(this[_0xc0c929(0x209)](_0x478c3c))return this[_0xc0c929(0x474)]['createInstance'](_0x1851e1,this['unitID'],this[_0xc0c929(0x219)],null,[],this[_0xc0c929(0x523)],[],this['_handler']);this[_0xc0c929(0x1e7)]();const _0x5e3e79=this[_0xc0c929(0x474)][_0xc0c929(0x2dd)](_0x58d7fd,this[_0xc0c929(0x447)],this[_0xc0c929(0x219)],this[_0xc0c929(0x2b6)]);return _0x5e3e79[_0xc0c929(0x1c5)](),_0x5e3e79;}[_0x1a9c4c(0x38f)](_0xc5bcd8){const _0x29679c=_0x1a9c4c;return this['_onConflict'](!!(_0xc5bcd8!=null&&_0xc5bcd8[_0x29679c(0x58f)]));}['toggleOffline'](){const _0x3fce88=_0x1a9c4c;return this[_0x3fce88(0x474)]['createInstance'](_0xc956b6,this['unitID'],this[_0x3fce88(0x219)],this['_awaitingChangeset'],[],this['_handler']);}[_0x1a9c4c(0x44d)](){return this;}[_0x1a9c4c(0x26f)](){const _0xc03e1b=_0x1a9c4c;this['_handler'][_0xc03e1b(0x254)](this[_0xc03e1b(0x523)]);}[_0x1a9c4c(0x414)](_0x592fdb){const _0x471191=_0x1a9c4c;return this[_0x471191(0x474)][_0x471191(0x2dd)](_0x3e2513,this['unitID'],this[_0x471191(0x219)],this['_awaitingChangeset'],[],this['_handler'],_0x592fdb);}};_0x1cce27=_0x696347([_0x1df1ed(0x4,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268['Injector'])),_0x1df1ed(0x5,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93[_0x1a9c4c(0x53b)])),_0x1df1ed(0x6,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc[_0x1a9c4c(0x59e)])),_0x1df1ed(0x7,_0x5ee268[_0x1a9c4c(0x386)]),_0x1df1ed(0x8,_0x5ee268[_0x1a9c4c(0x2ff)]),_0x1df1ed(0x9,_0x437f93[_0x1a9c4c(0x1c7)]),_0x1df1ed(0xa,_0x5ee268[_0x1a9c4c(0x493)])],_0x1cce27);let _0x2cc3ca=class extends _0x5adb03{constructor(_0x4220d4,_0x4f9835,_0x54a261,_0x3c21d2,_0x413458,_0x269da8,_0x1129eb,_0x379a93,_0x27b90c,_0x4aad68,_0x3571c7,_0x469c8d){const _0x1b1eb1=_0x1a9c4c;super(_0x4220d4,_0x4f9835,_0x54a261,_0x3c21d2,_0x413458,_0x27b90c,_0x469c8d,_0x1129eb,_0x379a93),_0x1328f6(this,'status','awaiting_with_pending'),(this[_0x1b1eb1(0x474)]=_0x269da8,this[_0x1b1eb1(0x2a9)]=_0x4aad68,this[_0x1b1eb1(0x2df)]=_0x3571c7);}[_0x1a9c4c(0x5cd)](_0x544845){const _0x27da84=_0x1a9c4c;return this[_0x27da84(0x1cd)][_0x27da84(0x2ee)](_0x544845),this;}[_0x1a9c4c(0x2ab)](_0xdc9e94){const _0x2bc2e1=_0x1a9c4c;if(this[_0x2bc2e1(0x209)](_0xdc9e94))return this[_0x2bc2e1(0x474)]['createInstance'](_0x1851e1,this[_0x2bc2e1(0x447)],this['type'],this[_0x2bc2e1(0x523)],this[_0x2bc2e1(0x1cd)],null,[_0xdc9e94],this[_0x2bc2e1(0x2b6)]);try{const _0xef95b8=this[_0x2bc2e1(0x2df)][_0x2bc2e1(0x510)]([_0xdc9e94],[this['_awaitingChangeset']],!0x1);if(_0x437f93['isTransformChangesetsSuccess'](_0xef95b8)){const {c1Prime:_0x20864d,c2Prime:_0x311c5b}=_0xef95b8,_0x5da04e=this[_0x2bc2e1(0x2df)][_0x2bc2e1(0x250)](_0x20864d[0x0],this[_0x2bc2e1(0x1cd)]);if(_0x437f93['isTransformMutationsWithChangesetSuccess'](_0x5da04e)){const {c1Prime:_0x56b7f0,m2Prime:_0x5db119}=_0x5da04e;return this[_0x2bc2e1(0x5a3)](_0x56b7f0),_0x311c5b[0x0][_0x2bc2e1(0x397)]=this[_0x2bc2e1(0x459)](),this[_0x2bc2e1(0x474)][_0x2bc2e1(0x2dd)](_0x2cc3ca,this[_0x2bc2e1(0x447)],this[_0x2bc2e1(0x219)],_0x311c5b[0x0],_0x5db119,this['_handler']);}throw _0x5da04e['error'];}throw _0xef95b8[_0x2bc2e1(0x317)];}catch(_0x206b26){return this['_logService'][_0x2bc2e1(0x317)](_0x206b26),this[_0x2bc2e1(0x414)](!0x1);}}[_0x1a9c4c(0x23b)](_0x532aae){const _0x648c97=_0x1a9c4c;if(this[_0x648c97(0x209)](_0x532aae))return this['_injector'][_0x648c97(0x2dd)](_0x1851e1,this[_0x648c97(0x447)],this['type'],null,this[_0x648c97(0x1cd)],this[_0x648c97(0x523)],[],this[_0x648c97(0x2b6)]);this[_0x648c97(0x1e7)]();const _0x44007b=this[_0x648c97(0x474)][_0x648c97(0x2dd)](_0x324b5a,this[_0x648c97(0x447)],this[_0x648c97(0x219)],this[_0x648c97(0x1cd)],this[_0x648c97(0x2b6)]);return _0x44007b[_0x648c97(0x53d)](),_0x44007b['_updateLocalCache'](),_0x44007b;}[_0x1a9c4c(0x38f)](_0x40645f){const _0x5257c7=_0x1a9c4c;return this['_onConflict'](!!(_0x40645f!=null&&_0x40645f[_0x5257c7(0x58f)]));}[_0x1a9c4c(0x5bb)](){const _0x24fe0a=_0x1a9c4c;return this[_0x24fe0a(0x474)][_0x24fe0a(0x2dd)](_0xc956b6,this[_0x24fe0a(0x447)],this[_0x24fe0a(0x219)],this[_0x24fe0a(0x523)],this[_0x24fe0a(0x1cd)],this[_0x24fe0a(0x2b6)]);}[_0x1a9c4c(0x44d)](){return this;}[_0x1a9c4c(0x26f)](){const _0x5ab47c=_0x1a9c4c;this[_0x5ab47c(0x2b6)]['onSendChangeset'](this[_0x5ab47c(0x523)]);}[_0x1a9c4c(0x414)](_0x831d00){const _0xeef881=_0x1a9c4c;return this['_injector']['createInstance'](_0x3e2513,this[_0xeef881(0x447)],this[_0xeef881(0x219)],null,this[_0xeef881(0x1cd)],this[_0xeef881(0x2b6)],_0x831d00);}};_0x2cc3ca=_0x696347([_0x1df1ed(0x5,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0x1df1ed(0x6,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93[_0x1a9c4c(0x53b)])),_0x1df1ed(0x7,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc[_0x1a9c4c(0x59e)])),_0x1df1ed(0x8,_0x5ee268['ICommandService']),_0x1df1ed(0x9,_0x5ee268[_0x1a9c4c(0x2ff)]),_0x1df1ed(0xa,_0x437f93['ITransformService']),_0x1df1ed(0xb,_0x5ee268[_0x1a9c4c(0x493)])],_0x2cc3ca);let _0x3e2513=class extends _0x5adb03{constructor(_0x224f02,_0x156f61,_0x1ce200,_0xac53a2,_0x232796,_0x3b227a=!0x1,_0x2d1b7f,_0x5b03d5,_0xd6d78,_0xd48a2f,_0x34e31c,_0x1b6f9e,_0x285ae9){const _0x2ca393=_0x1a9c4c;super(_0x224f02,_0x156f61,_0x1ce200,_0xac53a2,_0x232796,_0x5b03d5,_0xd6d78,_0x34e31c,_0xd48a2f),_0x1328f6(this,'status',_0x2ca393(0x57b)),(this[_0x2ca393(0x1d2)]=_0x3b227a,this['_permissionService']=_0x2d1b7f,this['_localeService']=_0x1b6f9e,this[_0x2ca393(0x490)]=_0x285ae9,this[_0x2ca393(0x1b8)](),this['_clearLocalCache'](),this[_0x2ca393(0x3c8)]());}[_0x1a9c4c(0x5cd)](){return this;}[_0x1a9c4c(0x2ab)](){return this;}[_0x1a9c4c(0x23b)](){return this;}[_0x1a9c4c(0x38f)](){return this;}[_0x1a9c4c(0x5bb)](){return this;}[_0x1a9c4c(0x44d)](){return this;}[_0x1a9c4c(0x26f)](){const _0x10c5a0=_0x1a9c4c;throw new Error(_0x10c5a0(0x31e));}[_0x1a9c4c(0x520)](){const _0x3e43d3=_0x1a9c4c;this[_0x3e43d3(0x55e)][_0x3e43d3(0x57e)](this['unitID'],this[_0x3e43d3(0x219)],null,[]);}[_0x1a9c4c(0x1b8)](){const _0x244c76=_0x1a9c4c;this[_0x244c76(0x1d2)]?this[_0x244c76(0x490)][_0x244c76(0x1c3)]({'title':this['_localeService']['t'](_0x244c76(0x359)),'content':this[_0x244c76(0x243)]['t'](_0x244c76(0x33b)),'type':'error','duration':0x0}):this['_notificationService'][_0x244c76(0x1c3)]({'title':this[_0x244c76(0x243)]['t'](_0x244c76(0x3c1)),'content':this[_0x244c76(0x243)]['t'](_0x244c76(0x20d)),'type':_0x244c76(0x317),'duration':0x0});}[_0x1a9c4c(0x3c8)](){const _0x375d2b=_0x1a9c4c;this[_0x375d2b(0x285)][_0x375d2b(0x222)](new _0x149ec5['WorkbookEditablePermission'](this[_0x375d2b(0x447)])['id'],!0x1);}};_0x3e2513=_0x696347([_0x1df1ed(0x6,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x443)])),_0x1df1ed(0x7,_0x5ee268[_0x1a9c4c(0x386)]),_0x1df1ed(0x8,_0x5ee268[_0x1a9c4c(0x493)]),_0x1df1ed(0x9,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc['LocalCacheService'])),_0x1df1ed(0xa,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93['RevisionService'])),_0x1df1ed(0xb,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268['LocaleService'])),_0x1df1ed(0xc,_0x56f90f[_0x1a9c4c(0x25e)])],_0x3e2513);let _0xc956b6=class extends _0x5adb03{constructor(_0x138097,_0x9b95a8,_0x16862a,_0x4d5de2,_0x15f728,_0x262019,_0x109736,_0x48c71f,_0x4b9f37,_0x1c9dd7){const _0x21b2ac=_0x1a9c4c;super(_0x138097,_0x9b95a8,_0x16862a,_0x4d5de2,_0x15f728,_0x4b9f37,_0x1c9dd7,_0x109736,_0x48c71f),_0x1328f6(this,_0x21b2ac(0x227),_0x21b2ac(0x57c)),this[_0x21b2ac(0x474)]=_0x262019;}[_0x1a9c4c(0x5cd)](_0x1c0dd5){const _0x4a3c2d=_0x1a9c4c;return this[_0x4a3c2d(0x1cd)]['push'](_0x1c0dd5),this[_0x4a3c2d(0x1c5)](),this;}[_0x1a9c4c(0x2ab)](_0x249924){const _0x5d20c6=_0x1a9c4c;throw new Error(_0x5d20c6(0x270));}[_0x1a9c4c(0x23b)](){const _0x29a84d=_0x1a9c4c;throw new Error(_0x29a84d(0x4ac));}['onRemoteRej'](){const _0x42321f=_0x1a9c4c;throw new Error(_0x42321f(0x5b6));}['toggleOffline'](){return this;}[_0x1a9c4c(0x44d)](){const _0x30953d=_0x1a9c4c,{_injector:_0xa1413,_pendingMutations:_0x2f4202,_awaitingChangeset:_0x1a7e8b,unitID:_0x3b8123,_handler:_0x4071e7,type:_0x12f48d}=this,_0x326855=_0x4f4d24(_0xa1413,_0x3b8123,_0x12f48d,_0x1a7e8b,_0x2f4202,_0x4071e7);return _0x326855 instanceof _0x324b5a?_0x326855[_0x30953d(0x53d)]():(_0x326855 instanceof _0x2cc3ca||_0x326855 instanceof _0x1cce27)&&_0x326855[_0x30953d(0x26f)](),_0x326855;}[_0x1a9c4c(0x26f)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0xc956b6=_0x696347([_0x1df1ed(0x5,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0x1df1ed(0x6,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93[_0x1a9c4c(0x53b)])),_0x1df1ed(0x7,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc['LocalCacheService'])),_0x1df1ed(0x8,_0x5ee268[_0x1a9c4c(0x386)]),_0x1df1ed(0x9,_0x5ee268['IUndoRedoService'])],_0xc956b6);let _0x1851e1=class extends _0x5adb03{constructor(_0xa953c3,_0x1bf1fb,_0x489b45,_0x45aeeb,_0x26d19b,_0x2bb63d,_0x1f13f9,_0x18a5df,_0x55c006,_0x255eb5,_0x1f3df8,_0x2549ad,_0x2a6dc7,_0x15166d){const _0x3a2402=_0x1a9c4c;super(_0xa953c3,_0x1bf1fb,_0x489b45,_0x45aeeb,_0x1f13f9,_0x2549ad,_0x2a6dc7,_0x55c006,_0x255eb5),_0x1328f6(this,_0x3a2402(0x227),_0x3a2402(0x5a2)),(this['_acknowledgedAwaitingChangeset']=_0x26d19b,this[_0x3a2402(0x508)]=_0x2bb63d,this['_injector']=_0x18a5df,this['_logService']=_0x1f3df8,this['_transformService']=_0x15166d);}['onMissedChangesetFetched'](_0x566e10){const _0x59b826=_0x1a9c4c;try{const _0x12f216=[..._0x566e10,...this[_0x59b826(0x508)]],_0x129aa2=[this['_awaitingChangeset']||this[_0x59b826(0x531)]][_0x59b826(0x2a1)](_0x2caad5=>!!_0x2caad5);let _0x2d6e58,_0x4ed409;if(_0x129aa2[_0x59b826(0x4d8)]){const _0x388f92=this[_0x59b826(0x2df)][_0x59b826(0x510)](_0x12f216,_0x129aa2,!0x1);if(!_0x437f93[_0x59b826(0x236)](_0x388f92))throw _0x388f92[_0x59b826(0x317)];_0x2d6e58=_0x388f92[_0x59b826(0x249)],_0x4ed409=_0x388f92[_0x59b826(0x215)];}else _0x2d6e58=_0x12f216,_0x4ed409=[];let _0x34f12c=this[_0x59b826(0x1cd)];_0x2d6e58[_0x59b826(0x506)](_0x3d377c=>{const _0x18f2f0=_0x59b826;let _0x28fec2;if(_0x34f12c[_0x18f2f0(0x4d8)]){const _0x32633e=this[_0x18f2f0(0x2df)][_0x18f2f0(0x250)](_0x3d377c,_0x34f12c);if(!_0x437f93[_0x18f2f0(0x1d4)](_0x32633e))throw _0x32633e['error'];_0x28fec2=_0x32633e[_0x18f2f0(0x249)],_0x34f12c=_0x32633e[_0x18f2f0(0x2b9)];}else _0x28fec2=_0x3d377c;this['_executeRemoteChangeset'](_0x28fec2);}),this[_0x59b826(0x531)]&&this[_0x59b826(0x1e7)](),this[_0x59b826(0x523)]&&_0x4ed409[_0x59b826(0x4d8)]&&(_0x4ed409[0x0][_0x59b826(0x397)]=this[_0x59b826(0x459)]());let _0x34fab7;if(this['_awaitingChangeset']&&_0x34f12c[_0x59b826(0x4d8)]!==0x0)_0x34fab7=this[_0x59b826(0x474)]['createInstance'](_0x2cc3ca,this['unitID'],this[_0x59b826(0x219)],_0x4ed409[0x0],_0x34f12c,this[_0x59b826(0x2b6)]);else{if(this[_0x59b826(0x523)]&&_0x34f12c[_0x59b826(0x4d8)]===0x0)_0x4ed409[0x0][_0x59b826(0x397)]=this[_0x59b826(0x459)](),_0x34fab7=this[_0x59b826(0x474)]['createInstance'](_0x1cce27,this['unitID'],this[_0x59b826(0x219)],_0x4ed409[0x0],this['_handler']);else{if(_0x34f12c[_0x59b826(0x4d8)]!==0x0){const _0x2c0e53=this[_0x59b826(0x474)][_0x59b826(0x2dd)](_0x324b5a,this[_0x59b826(0x447)],this[_0x59b826(0x219)],_0x34f12c,this[_0x59b826(0x2b6)]);_0x2c0e53[_0x59b826(0x53d)](),_0x34fab7=_0x2c0e53;}else _0x34fab7=this['_injector'][_0x59b826(0x2dd)](_0x58d7fd,this['unitID'],this['type'],this['_handler']);}}return _0x34fab7[_0x59b826(0x1c5)](),_0x34fab7;}catch(_0x14a663){return this['_logService']['error']('[FetchMissState]',_0x59b826(0x5ce),_0x14a663),this['_injector']['createInstance'](_0x3e2513,this[_0x59b826(0x447)],this[_0x59b826(0x219)],this[_0x59b826(0x523)],this['_pendingMutations'],this[_0x59b826(0x2b6)],!0x1);}}[_0x1a9c4c(0x26f)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1a9c4c(0x5cd)](_0x51b970){const _0x27bd53=_0x1a9c4c;return this[_0x27bd53(0x1cd)]['push'](_0x51b970),this;}['onRemoteChangeset'](_0x56eb99){const _0x2ea7e7=_0x1a9c4c;return this[_0x2ea7e7(0x508)][_0x2ea7e7(0x2ee)](_0x56eb99),this;}[_0x1a9c4c(0x23b)](_0x474015){const _0x3057fd=_0x1a9c4c;if(this[_0x3057fd(0x523)])return this[_0x3057fd(0x531)]=this[_0x3057fd(0x523)],this['_awaitingChangeset']=null,this;throw new Error(_0x3057fd(0x218));}[_0x1a9c4c(0x38f)](_0x270fe7){const _0x4fd5b2=_0x1a9c4c;return this[_0x4fd5b2(0x414)](!!(_0x270fe7!=null&&_0x270fe7[_0x4fd5b2(0x58f)]));}[_0x1a9c4c(0x5bb)](){const _0x60fde3=_0x1a9c4c;return this[_0x60fde3(0x474)][_0x60fde3(0x2dd)](_0xc956b6,this[_0x60fde3(0x447)],this[_0x60fde3(0x219)],this[_0x60fde3(0x523)],this[_0x60fde3(0x1cd)],this[_0x60fde3(0x2b6)]);}[_0x1a9c4c(0x44d)](){return this;}[_0x1a9c4c(0x414)](_0x411955){const _0x67a12a=_0x1a9c4c;return this['_injector'][_0x67a12a(0x2dd)](_0x3e2513,this['unitID'],this[_0x67a12a(0x219)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler'],_0x411955);}};_0x1851e1=_0x696347([_0x1df1ed(0x7,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0x1df1ed(0x8,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93[_0x1a9c4c(0x53b)])),_0x1df1ed(0x9,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc[_0x1a9c4c(0x59e)])),_0x1df1ed(0xa,_0x5ee268[_0x1a9c4c(0x2ff)]),_0x1df1ed(0xb,_0x5ee268[_0x1a9c4c(0x386)]),_0x1df1ed(0xc,_0x5ee268[_0x1a9c4c(0x493)]),_0x1df1ed(0xd,_0x437f93[_0x1a9c4c(0x1c7)])],_0x1851e1);function _0x4f4d24(_0x1671ec,_0x3ff532,_0x45ba11,_0x318254,_0x521b99,_0x43a0af){const _0x29b218=_0x1a9c4c;return _0x318254&&_0x521b99['length']?_0x1671ec[_0x29b218(0x2dd)](_0x2cc3ca,_0x3ff532,_0x45ba11,_0x318254,_0x521b99,_0x43a0af):_0x318254?_0x1671ec['createInstance'](_0x1cce27,_0x3ff532,_0x45ba11,_0x318254,_0x43a0af):_0x521b99[_0x29b218(0x4d8)]?_0x1671ec[_0x29b218(0x2dd)](_0x324b5a,_0x3ff532,_0x45ba11,_0x521b99,_0x43a0af):_0x1671ec[_0x29b218(0x2dd)](_0x58d7fd,_0x3ff532,_0x45ba11,_0x43a0af);}var _0x427064=Object[_0x1a9c4c(0x340)],_0x497ac5=Object[_0x1a9c4c(0x541)],_0x57a706=(_0x145990,_0x422de6,_0x574e67,_0x536ec5)=>{const _0x1f0a14=_0x1a9c4c;for(var _0x507596=_0x536ec5>0x1?void 0x0:_0x536ec5?_0x497ac5(_0x422de6,_0x574e67):_0x422de6,_0x2fdfc6=_0x145990[_0x1f0a14(0x4d8)]-0x1,_0x16e813;_0x2fdfc6>=0x0;_0x2fdfc6--)(_0x16e813=_0x145990[_0x2fdfc6])&&(_0x507596=(_0x536ec5?_0x16e813(_0x422de6,_0x574e67,_0x507596):_0x16e813(_0x507596))||_0x507596);return _0x536ec5&&_0x507596&&_0x427064(_0x422de6,_0x574e67,_0x507596),_0x507596;},_0x4608b9=(_0x402734,_0x2b10b8)=>(_0x29bbfa,_0x3a2b38)=>_0x2b10b8(_0x29bbfa,_0x3a2b38,_0x402734);_0x19f7dc[_0x1a9c4c(0x256)]=class extends _0x5ee268['RxDisposable']{constructor(_0x59c536,_0x570f5e,_0x4ce779,_0x2d9d26,_0x2b1a20,_0x2100af,_0x3d9888,_0x116955,_0x34d72e,_0x5887b2,_0x37bf28,_0x964dec,_0x86a657){const _0x59b58d=_0x1a9c4c;super(),_0x1328f6(this,_0x59b58d(0x4ec),new _0x56990c[(_0x59b58d(0x3d3))](null)),_0x1328f6(this,_0x59b58d(0x1a7),this['_state$'][_0x59b58d(0x560)]()),_0x1328f6(this,_0x59b58d(0x567)),_0x1328f6(this,'_collaborationPaused',!0x1),_0x1328f6(this,'status$',this[_0x59b58d(0x1a7)][_0x59b58d(0x246)](_0x56990c[_0x59b58d(0x42f)](_0x1aed8e=>_0x1aed8e?_0x1aed8e['status']:_0x319e47[_0x59b58d(0x304)]),_0x56990c[_0x59b58d(0x54b)](0x1))),_0x1328f6(this,_0x59b58d(0x368),!0x1),_0x1328f6(this,_0x59b58d(0x3f7),[]),(this[_0x59b58d(0x447)]=_0x59c536,this[_0x59b58d(0x1f0)]=_0x570f5e,this[_0x59b58d(0x1af)]=_0x4ce779,this[_0x59b58d(0x474)]=_0x2d9d26,this[_0x59b58d(0x55e)]=_0x2b1a20,this[_0x59b58d(0x315)]=_0x2100af,this[_0x59b58d(0x243)]=_0x3d9888,this[_0x59b58d(0x3af)]=_0x116955,this['_logService']=_0x34d72e,this[_0x59b58d(0x48d)]=_0x5887b2,this['_messageService']=_0x37bf28,this[_0x59b58d(0x285)]=_0x964dec,this[_0x59b58d(0x5cf)]=_0x86a657);}get[_0x1a9c4c(0x2d6)](){return this['_state'];}async[_0x1a9c4c(0x206)](){const _0x5158f9=_0x1a9c4c;if(this[_0x5158f9(0x2d6)])throw new Error(_0x5158f9(0x350));await this[_0x5158f9(0x38a)]();}['pauseCollaboration'](){const _0x2826ed=_0x1a9c4c;return this[_0x2826ed(0x37d)]=!0x0,_0x5ee268[_0x2826ed(0x4c5)](()=>{const _0x13f4b7=_0x2826ed;this[_0x13f4b7(0x37d)]=!0x1,this[_0x13f4b7(0x432)]();});}['_updateState'](_0x44dc7b){const _0x3468a9=_0x1a9c4c;this[_0x3468a9(0x567)]=_0x44dc7b,this[_0x3468a9(0x4ec)][_0x3468a9(0x42d)](_0x44dc7b);}async[_0x1a9c4c(0x38a)](){const _0x10af76=_0x1a9c4c;var _0x3ddb70;this[_0x10af76(0x430)](await this[_0x10af76(0x453)]()),this[_0x10af76(0x5cf)]&&((_0x3ddb70=this[_0x10af76(0x5cf)])==null||_0x3ddb70[_0x10af76(0x336)](this['unitID']),this['disposeWithMe'](this[_0x10af76(0x5cf)][_0x10af76(0x543)](this[_0x10af76(0x447)])[_0x10af76(0x3a7)](_0x41d186=>{const _0x58b3eb=_0x10af76;this[_0x58b3eb(0x2a9)][_0x58b3eb(0x2d3)](_0x58b3eb(0x485),'editing\x20status\x20changed\x20to',_0x41d186),_0x41d186===_0x40dedc[_0x58b3eb(0x457)]?(this[_0x58b3eb(0x5b4)][_0x58b3eb(0x1c3)]({'content':this[_0x58b3eb(0x243)]['t']('collaboration.single-unit.warning'),'type':_0x2e321b['MessageType'][_0x58b3eb(0x3c5)]}),this[_0x58b3eb(0x285)][_0x58b3eb(0x222)](new _0x149ec5[(_0x58b3eb(0x264))](this[_0x58b3eb(0x447)])['id'],!0x1)):this[_0x58b3eb(0x285)][_0x58b3eb(0x222)](new _0x149ec5['WorkbookEditablePermission'](this['unitID'])['id'],!0x0);})));let _0x1a7b0d=!0x1;return this[_0x10af76(0x337)](this[_0x10af76(0x1f0)]['sessionStatus$'][_0x10af76(0x3a7)](_0x1d7f6d=>{const _0x3c5b33=_0x10af76;_0x1d7f6d===_0x3477b6[_0x3c5b33(0x399)]?this['_toggleOnline'](_0x1a7b0d):_0x1d7f6d===_0x3477b6['OFFLINE']&&(_0x1a7b0d=!0x0,this[_0x3c5b33(0x2a0)]());})),this[_0x10af76(0x337)](this[_0x10af76(0x1f0)][_0x10af76(0x540)][_0x10af76(0x3a7)](_0x59db5f=>{const _0x78d300=_0x10af76;try{switch(_0x59db5f['eventID']){case _0x437f93[_0x78d300(0x2c5)]['NEW_CHANGESETS']:{this['_onRemoteChangeset'](_0x437f93[_0x78d300(0x2c6)](_0x59db5f[_0x78d300(0x5ac)]));break;}case _0x437f93[_0x78d300(0x2c5)][_0x78d300(0x513)]:{this[_0x78d300(0x245)](_0x59db5f[_0x78d300(0x5ac)]);break;}case _0x437f93['CollaborationEvent']['CHANGESET_REJ']:{this[_0x78d300(0x25d)]();break;}case _0x437f93['CollaborationEvent'][_0x78d300(0x49c)]:{this[_0x78d300(0x416)](_0x59db5f[_0x78d300(0x5ac)][_0x78d300(0x534)][_0x78d300(0x42f)](_0x2b8704=>_0x437f93[_0x78d300(0x2c6)](_0x2b8704)));break;}case _0x437f93[_0x78d300(0x2c5)][_0x78d300(0x2f5)]:this[_0x78d300(0x25d)]({'isPermissionRej':!0x0});}}catch(_0x315696){throw console['error'](_0x78d300(0x1a6),_0x315696),_0x315696;}})),this['_state'];}['_unlockTransition'](){const _0x1d7cd9=_0x1a9c4c;this[_0x1d7cd9(0x368)]=!0x1;}['_lockTransition'](){const _0x20650b=_0x1a9c4c;if(this[_0x20650b(0x368)])throw new Error(_0x20650b(0x507));this[_0x20650b(0x368)]=!0x0;}[_0x1a9c4c(0x35a)](_0x1af4aa){const _0x40e7a3=_0x1a9c4c;this[_0x40e7a3(0x2b3)](),this[_0x40e7a3(0x430)](this['_state'][_0x40e7a3(0x5cd)](_0x1af4aa)),this[_0x40e7a3(0x455)]();}['_onRemoteChangeset'](_0x1e0321){const _0x51f95d=_0x1a9c4c;if(!(_0x1e0321[_0x51f95d(0x500)]<=this[_0x51f95d(0x3af)][_0x51f95d(0x1e9)](this['unitID']))){if(this[_0x51f95d(0x37d)]){this[_0x51f95d(0x3f7)][_0x51f95d(0x2ee)](_0x1e0321);return;}this[_0x51f95d(0x4e8)](_0x1e0321);}}[_0x1a9c4c(0x432)](){const _0x3c1a2d=_0x1a9c4c;this['_remoteChangesetQueue'][_0x3c1a2d(0x506)](_0x1fadad=>this[_0x3c1a2d(0x4e8)](_0x1fadad)),this[_0x3c1a2d(0x3f7)]=[];}[_0x1a9c4c(0x4e8)](_0x10a10d){const _0x50d63f=_0x1a9c4c,_0x4f251f=this[_0x50d63f(0x315)][_0x50d63f(0x1cb)][_0x50d63f(0x3c7)](this[_0x50d63f(0x315)][_0x50d63f(0x1cb)][_0x50d63f(0x4fc)]()[_0x50d63f(0x211)])(_0x10a10d[_0x50d63f(0x234)],null)||_0x10a10d[_0x50d63f(0x234)],_0x38753c={..._0x10a10d,'mutations':_0x4f251f};this['_lockTransition'](),this[_0x50d63f(0x430)](this[_0x50d63f(0x567)][_0x50d63f(0x2ab)](_0x38753c)),this[_0x50d63f(0x455)]();}[_0x1a9c4c(0x245)](_0x2b67c5){const _0x36e5b3=_0x1a9c4c;this[_0x36e5b3(0x2b3)](),this[_0x36e5b3(0x430)](this[_0x36e5b3(0x567)][_0x36e5b3(0x23b)](_0x2b67c5)),this[_0x36e5b3(0x455)]();}['_onRemoteRejected'](_0x18c20d){const _0x37b239=_0x1a9c4c;this['_lockTransition'](),this[_0x37b239(0x430)](this[_0x37b239(0x567)][_0x37b239(0x38f)](_0x18c20d)),this[_0x37b239(0x455)]();}['_onFetchMissResult'](_0x10ee8f){const _0x421bda=_0x1a9c4c;if(!(this[_0x421bda(0x567)]instanceof _0x1851e1))throw new TypeError(_0x421bda(0x3c3));const _0x3c6198=_0x10ee8f[_0x421bda(0x42f)](_0x56990f=>{const _0x87496=_0x421bda,_0xb588e0=this['_compressMutationService'][_0x87496(0x1cb)][_0x87496(0x3c7)](this[_0x87496(0x315)]['interceptor'][_0x87496(0x4fc)]()['COMPRESS_MUTATION_APPLY'])(_0x56990f[_0x87496(0x234)],null)||_0x56990f[_0x87496(0x234)];return{..._0x56990f,'mutations':_0xb588e0};});this[_0x421bda(0x2b3)](),this['_updateState'](this[_0x421bda(0x567)]['onMissedChangesetFetched'](_0x3c6198)),this[_0x421bda(0x455)]();}[_0x1a9c4c(0x2a0)](){const _0x482089=_0x1a9c4c;this[_0x482089(0x2b3)](),this['_updateState'](this[_0x482089(0x567)][_0x482089(0x5bb)]()),this[_0x482089(0x455)]();}[_0x1a9c4c(0x3d1)](_0x21303e=!0x1){const _0x22a397=_0x1a9c4c;this[_0x22a397(0x2b3)](),this[_0x22a397(0x430)](this[_0x22a397(0x567)][_0x22a397(0x44d)]()),this['_unlockTransition']();const _0x77d63a=this[_0x22a397(0x567)];_0x21303e&&_0x77d63a instanceof _0x58d7fd&&(this[_0x22a397(0x2b3)](),this[_0x22a397(0x430)](_0x77d63a[_0x22a397(0x363)]()),this['_unlockTransition']());}async[_0x1a9c4c(0x453)](){return new Promise(_0x50530a=>{const _0x31c8e5=_0x2a06;this['session']['sessionStatus$'][_0x31c8e5(0x246)](_0x56990c[_0x31c8e5(0x46a)](0x1))[_0x31c8e5(0x3a7)](async _0x2bcf74=>{const _0x306c2b=_0x31c8e5;_0x50530a(await this[_0x306c2b(0x3d0)](_0x2bcf74===_0x3477b6['ONLINE']));});});}['_createHandler'](){const _0x47fea0=this['unitID'];return{'onStateChange':(_0x2a2f8b,_0x1a7098)=>{const _0xfe8082=_0x2a06;if(_0x2a2f8b!==this[_0xfe8082(0x567)])throw new Error(_0xfe8082(0x320)+_0x2a2f8b[_0xfe8082(0x227)]+'\x0aAfter:\x20'+_0x1a7098[_0xfe8082(0x227)]+_0xfe8082(0x258)+this[_0xfe8082(0x567)][_0xfe8082(0x227)]);this[_0xfe8082(0x430)](_0x1a7098);},'onSendChangeset':_0x12251b=>{const _0x12e504=_0x2a06,_0x170d22={'eventID':_0x437f93[_0x12e504(0x2c5)][_0x12e504(0x4ed)],'data':{'unitID':_0x12251b[_0x12e504(0x447)],'unitType':this['_type'],'changeset':_0x12251b,'memberID':this[_0x12e504(0x1f0)][_0x12e504(0x3f2)]()}};this['session']['send'](_0x170d22,this[_0x12e504(0x447)]);},'onMissingChangesets':({from:_0x3bb25d,to:_0x3c6d4f})=>{const _0x2d39d1=_0x2a06;this[_0x2d39d1(0x2a9)]['debug'](_0x2d39d1(0x485),_0x2d39d1(0x33f)+_0x3bb25d+_0x2d39d1(0x276)+_0x3c6d4f);const _0x13bfa9={'eventID':_0x437f93[_0x2d39d1(0x2c5)]['FETCH_MISSING'],'data':{'unitID':_0x47fea0,'unitType':this[_0x2d39d1(0x1af)],'from':_0x3bb25d,'to':_0x3c6d4f}};this[_0x2d39d1(0x1f0)]['send'](_0x13bfa9,this[_0x2d39d1(0x447)]);}};}async[_0x1a9c4c(0x3d0)](_0x343cf2){const _0x11c706=_0x1a9c4c;var _0xb57d06,_0x16197f;const _0x36b726=await this['_localCacheService'][_0x11c706(0x2f8)](this[_0x11c706(0x447)]),_0x4a02ab=(_0xb57d06=_0x36b726==null?void 0x0:_0x36b726[_0x11c706(0x234)])!=null?_0xb57d06:[],_0xd17def=(_0x16197f=_0x36b726==null?void 0x0:_0x36b726[_0x11c706(0x1bc)])!=null?_0x16197f:null,_0x2e275f=this[_0x11c706(0x447)];try{this[_0x11c706(0x5c4)](_0xd17def,_0x4a02ab);}catch(_0x114e31){this['_logService'][_0x11c706(0x317)](_0x114e31);}const _0x3d4263=this['_createHandler']();if(_0x343cf2){const _0x30f191=_0x4f4d24(this[_0x11c706(0x474)],_0x2e275f,this[_0x11c706(0x1af)],_0xd17def,_0x4a02ab,_0x3d4263);return _0x30f191 instanceof _0x324b5a?_0x30f191[_0x11c706(0x53d)]():(_0x30f191 instanceof _0x2cc3ca||_0x30f191 instanceof _0x1cce27)&&_0x30f191[_0x11c706(0x26f)](),_0x30f191;}return this['_injector'][_0x11c706(0x2dd)](_0xc956b6,_0x2e275f,this[_0x11c706(0x1af)],_0xd17def,_0x4a02ab,_0x3d4263);}['_replayCachedMutations'](_0x161452,_0x96cd20){const _0x5080c1=_0x1a9c4c;var _0x2647a8,_0x327de7;const _0x2911e9=this[_0x5080c1(0x315)][_0x5080c1(0x1cb)][_0x5080c1(0x3c7)](this[_0x5080c1(0x315)]['interceptor'][_0x5080c1(0x4fc)]()[_0x5080c1(0x211)]);(_0x2647a8=_0x2911e9((_0x161452==null?void 0x0:_0x161452[_0x5080c1(0x234)])||[],null))==null||_0x2647a8['forEach'](_0x4df231=>this[_0x5080c1(0x48d)][_0x5080c1(0x25f)](_0x4df231['id'],_0x4df231[_0x5080c1(0x3e7)])),(_0x327de7=_0x2911e9(_0x96cd20||[],null))==null||_0x327de7[_0x5080c1(0x506)](_0x302cef=>this[_0x5080c1(0x48d)][_0x5080c1(0x25f)](_0x302cef['id'],_0x302cef['params']));}},_0x19f7dc[_0x1a9c4c(0x256)]=_0x57a706([_0x4608b9(0x3,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0x4608b9(0x4,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc[_0x1a9c4c(0x59e)])),_0x4608b9(0x5,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93[_0x1a9c4c(0x47c)])),_0x4608b9(0x6,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268['LocaleService'])),_0x4608b9(0x7,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93[_0x1a9c4c(0x53b)])),_0x4608b9(0x8,_0x5ee268['ILogService']),_0x4608b9(0x9,_0x5ee268['ICommandService']),_0x4608b9(0xa,_0x56f90f[_0x1a9c4c(0x2cb)]),_0x4608b9(0xb,_0x5ee268[_0x1a9c4c(0x443)]),_0x4608b9(0xc,_0x5ee268['Optional'](_0x2c4a47))],_0x19f7dc[_0x1a9c4c(0x256)]),_0x19f7dc[_0x1a9c4c(0x5b1)]=class extends _0x19f7dc[_0x1a9c4c(0x256)]{constructor(_0x52390c,_0x1907c7,_0x23eb0e,_0x50ba6f,_0x5f1cb4,_0xa596c7,_0x57f86c,_0x53ebc8,_0x50b4fd,_0x121efe,_0x5c4d3f,_0x4f82a2,_0x454c3d,_0x4bc2da,_0x37950d,_0x5af605,_0x3261df){const _0x3d1fdc=_0x1a9c4c;super(_0x52390c,_0x23eb0e,_0x1907c7,_0x50ba6f,_0x5f1cb4,_0xa596c7,_0x57f86c,_0x53ebc8,_0x454c3d,_0x4bc2da,_0x37950d,_0x5af605,_0x3261df),this[_0x3d1fdc(0x447)]=_0x52390c,this['type']=_0x1907c7,this[_0x3d1fdc(0x3fe)]=_0x50b4fd,this[_0x3d1fdc(0x296)]=_0x121efe,this['_docTransformSelectionsService']=_0x5c4d3f,this[_0x3d1fdc(0x413)]=_0x4f82a2;}[_0x1a9c4c(0x5bd)](){const _0x16f8fb=_0x1a9c4c,_0x27b088=super[_0x16f8fb(0x5bd)]();return _0x27b088['onTransformIME']=_0x5afa12=>this[_0x16f8fb(0x296)][_0x16f8fb(0x42b)](_0x5afa12),_0x27b088[_0x16f8fb(0x2db)]=_0x387834=>this[_0x16f8fb(0x2d1)][_0x16f8fb(0x49a)](_0x387834),_0x27b088[_0x16f8fb(0x2cf)]=_0x93f225=>this[_0x16f8fb(0x413)][_0x16f8fb(0x333)](_0x93f225),_0x27b088[_0x16f8fb(0x599)]=_0x54118d=>this[_0x16f8fb(0x296)][_0x16f8fb(0x355)](_0x54118d),_0x27b088;}async['_init'](){const _0x2a5f5f=_0x1a9c4c,_0x321052=await super[_0x2a5f5f(0x38a)]();return this[_0x2a5f5f(0x337)](this[_0x2a5f5f(0x48d)][_0x2a5f5f(0x1e6)]((_0x14c9f1,_0x2dc003)=>{const _0x5d4a33=_0x2a5f5f;if(_0x14c9f1[_0x5d4a33(0x219)]!==_0x5ee268[_0x5d4a33(0x3cb)][_0x5d4a33(0x31d)]||_0x2dc003!=null&&_0x2dc003[_0x5d4a33(0x469)]||_0x2dc003!=null&&_0x2dc003['onlyLocal'])return;const _0x50a661=_0x14c9f1[_0x5d4a33(0x3e7)];if((_0x50a661==null?void 0x0:_0x50a661[_0x5d4a33(0x22b)])!==this[_0x5d4a33(0x447)])return;let _0x4e2865=_0x14c9f1;if(_0x4e2865['id']===_0x45fa2b[_0x5d4a33(0x1fb)]['id']){const _0xa22a12=_0x4e2865[_0x5d4a33(0x3e7)];_0x4e2865={'id':_0x45fa2b['RichTextEditingMutation']['id'],'type':_0x5ee268[_0x5d4a33(0x3cb)][_0x5d4a33(0x31d)],'params':{'unitId':_0xa22a12[_0x5d4a33(0x22b)],'actions':_0xa22a12['actions'],'textRanges':null}};}const _0x3ca77f=this[_0x5d4a33(0x315)][_0x5d4a33(0x1cb)][_0x5d4a33(0x3c7)](this[_0x5d4a33(0x315)][_0x5d4a33(0x1cb)][_0x5d4a33(0x4fc)]()[_0x5d4a33(0x2b1)])([_0x4e2865],null)||[_0x4e2865];this['_onLocalMutation'](_0x3ca77f[0x0]);})),_0x321052;}},_0x19f7dc[_0x1a9c4c(0x5b1)]=_0x57a706([_0x4608b9(0x3,_0x5ee268['Inject'](_0x5ee268[_0x1a9c4c(0x418)])),_0x4608b9(0x4,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc[_0x1a9c4c(0x59e)])),_0x4608b9(0x5,_0x5ee268['Inject'](_0x437f93['CompressMutationService'])),_0x4608b9(0x6,_0x5ee268['Inject'](_0x5ee268[_0x1a9c4c(0x25a)])),_0x4608b9(0x7,_0x5ee268['Inject'](_0x437f93['RevisionService'])),_0x4608b9(0x8,_0x5ee268[_0x1a9c4c(0x4b4)](_0x2d522a['DocStateChangeManagerService'])),_0x4608b9(0x9,_0x5ee268[_0x1a9c4c(0x4b4)](_0x174d0a)),_0x4608b9(0xa,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19e584)),_0x4608b9(0xb,_0x5ee268[_0x1a9c4c(0x4b4)](_0x3c54ae)),_0x4608b9(0xc,_0x5ee268['ILogService']),_0x4608b9(0xd,_0x5ee268['ICommandService']),_0x4608b9(0xe,_0x56f90f['IMessageService']),_0x4608b9(0xf,_0x5ee268[_0x1a9c4c(0x443)]),_0x4608b9(0x10,_0x5ee268[_0x1a9c4c(0x2c1)](_0x2c4a47))],_0x19f7dc[_0x1a9c4c(0x5b1)]),_0x19f7dc['SheetCollaborationEntity']=class extends _0x19f7dc['CollaborationEntity']{constructor(_0x56e12b,_0x2b023e,_0x40a2e0,_0x5f4ea3,_0x56ccbd,_0x17b3dc,_0x57db83,_0x31f973,_0x2ddec3,_0x3cbd1e,_0xc559af,_0x2c826c,_0xf2f203,_0x520c14){const _0x2bde7e=_0x1a9c4c;super(_0x56e12b,_0x40a2e0,_0x2b023e,_0x5f4ea3,_0x56ccbd,_0x17b3dc,_0x57db83,_0x31f973,_0x3cbd1e,_0xc559af,_0x2c826c,_0xf2f203,_0x520c14),this[_0x2bde7e(0x447)]=_0x56e12b,this[_0x2bde7e(0x219)]=_0x2b023e,this[_0x2bde7e(0x5ba)]=_0x2ddec3;}[_0x1a9c4c(0x5bd)](){const _0x84a04=_0x1a9c4c,_0xdfa027=super[_0x84a04(0x5bd)]();return _0xdfa027[_0x84a04(0x2db)]=_0x426943=>this[_0x84a04(0x5ba)][_0x84a04(0x49a)](_0x426943),_0xdfa027;}async[_0x1a9c4c(0x38a)](){const _0x3dc8e0=_0x1a9c4c,_0x559818=await super['_init']();return this[_0x3dc8e0(0x337)](this[_0x3dc8e0(0x48d)][_0x3dc8e0(0x1e6)]((_0x17297c,_0x47d383)=>{const _0x5c2e9e=_0x3dc8e0;if(_0x17297c[_0x5c2e9e(0x219)]!==_0x5ee268[_0x5c2e9e(0x3cb)][_0x5c2e9e(0x31d)]||_0x47d383!=null&&_0x47d383[_0x5c2e9e(0x469)]||_0x47d383!=null&&_0x47d383['onlyLocal'])return;const _0x44ac56=_0x17297c[_0x5c2e9e(0x3e7)];if((_0x44ac56==null?void 0x0:_0x44ac56[_0x5c2e9e(0x22b)])!==this[_0x5c2e9e(0x447)])return;const _0x39bfac=_0x17297c,_0x2f3342=this['_compressMutationService'][_0x5c2e9e(0x1cb)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x5c2e9e(0x1cb)][_0x5c2e9e(0x4fc)]()[_0x5c2e9e(0x2b1)])([_0x39bfac],null)||[_0x39bfac];this[_0x5c2e9e(0x35a)](_0x2f3342[0x0]);})),_0x559818;}},_0x19f7dc['SheetCollaborationEntity']=_0x57a706([_0x4608b9(0x3,_0x5ee268['Inject'](_0x5ee268[_0x1a9c4c(0x418)])),_0x4608b9(0x4,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc[_0x1a9c4c(0x59e)])),_0x4608b9(0x5,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93[_0x1a9c4c(0x47c)])),_0x4608b9(0x6,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268['LocaleService'])),_0x4608b9(0x7,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93[_0x1a9c4c(0x53b)])),_0x4608b9(0x8,_0x5ee268[_0x1a9c4c(0x4b4)](_0x41bd09)),_0x4608b9(0x9,_0x5ee268['ILogService']),_0x4608b9(0xa,_0x5ee268[_0x1a9c4c(0x386)]),_0x4608b9(0xb,_0x56f90f[_0x1a9c4c(0x2cb)]),_0x4608b9(0xc,_0x5ee268[_0x1a9c4c(0x443)]),_0x4608b9(0xd,_0x5ee268[_0x1a9c4c(0x2c1)](_0x2c4a47))],_0x19f7dc['SheetCollaborationEntity']);var _0x595ada=Object[_0x1a9c4c(0x340)],_0x3af389=Object['getOwnPropertyDescriptor'],_0x19b861=(_0x2e0048,_0x14b717,_0x57a1f6,_0x318055)=>{const _0x232f34=_0x1a9c4c;for(var _0x310ae5=_0x318055>0x1?void 0x0:_0x318055?_0x3af389(_0x14b717,_0x57a1f6):_0x14b717,_0x2746e9=_0x2e0048[_0x232f34(0x4d8)]-0x1,_0x727711;_0x2746e9>=0x0;_0x2746e9--)(_0x727711=_0x2e0048[_0x2746e9])&&(_0x310ae5=(_0x318055?_0x727711(_0x14b717,_0x57a1f6,_0x310ae5):_0x727711(_0x310ae5))||_0x310ae5);return _0x318055&&_0x310ae5&&_0x595ada(_0x14b717,_0x57a1f6,_0x310ae5),_0x310ae5;},_0x6af9e4=(_0x171a3d,_0x3b2ded)=>(_0x3ad9b5,_0x337849)=>_0x3b2ded(_0x3ad9b5,_0x337849,_0x171a3d);_0x19f7dc['CollaborationController']=class extends _0x5ee268['RxDisposable']{constructor(_0x503604,_0x2b8897,_0x5e04f8){const _0x24c442=_0x1a9c4c;super(),_0x1328f6(this,_0x24c442(0x55b),new Map()),_0x1328f6(this,'_entityInit$',new _0x56990c[(_0x24c442(0x3be))]()),(this[_0x24c442(0x474)]=_0x503604,this[_0x24c442(0x42c)]=_0x2b8897,this[_0x24c442(0x535)]=_0x5e04f8,this[_0x24c442(0x38a)]());}[_0x1a9c4c(0x214)](){const _0x12eb36=_0x1a9c4c;super[_0x12eb36(0x214)](),this[_0x12eb36(0x55b)][_0x12eb36(0x506)](_0x389c10=>_0x389c10[_0x12eb36(0x214)]()),this['_entities']['clear']();}[_0x1a9c4c(0x372)](_0x574ab0){const _0x1fa16e=_0x1a9c4c;var _0x242dc1;return(_0x242dc1=this[_0x1fa16e(0x55b)][_0x1fa16e(0x54d)](_0x574ab0))!=null?_0x242dc1:null;}['getCollabEntity$'](_0x5c0d18){const _0x571983=_0x1a9c4c,_0x2e62a5=this[_0x571983(0x372)](_0x5c0d18);return _0x2e62a5?_0x56990c['of'](_0x2e62a5):this['_entityInit$'][_0x571983(0x246)](_0x2b56b2[_0x571983(0x2a1)](_0x3f187d=>_0x3f187d['unitID']===_0x5c0d18));}['_init'](){const _0x179dac=_0x1a9c4c;this['_univerInstanceService'][_0x179dac(0x2bb)](_0x5ee268[_0x179dac(0x2f7)][_0x179dac(0x498)])[_0x179dac(0x246)](_0x56990c['takeUntil'](this['dispose$']),_0x2b56b2[_0x179dac(0x244)](0x10))[_0x179dac(0x3a7)](async _0x5dfea6=>{const _0x5b3cfe=_0x179dac,_0x2cfade=_0x5dfea6[_0x5b3cfe(0x4ef)](),_0x1da15c=await this['_startCollaboration'](_0x2cfade,_0x69fde1[_0x5b3cfe(0x498)]);this[_0x5b3cfe(0x55b)][_0x5b3cfe(0x26c)](_0x2cfade,_0x1da15c);}),this[_0x179dac(0x535)][_0x179dac(0x2bb)](_0x5ee268['UniverInstanceType'][_0x179dac(0x1ec)])[_0x179dac(0x246)](_0x56990c[_0x179dac(0x1da)](this[_0x179dac(0x1f6)]),_0x2b56b2[_0x179dac(0x244)](0x10))[_0x179dac(0x246)](_0x2b56b2[_0x179dac(0x2a1)](_0x3cd9cd=>!_0x3cd9cd[_0x179dac(0x4ef)]()[_0x179dac(0x48b)]('__')))[_0x179dac(0x3a7)](async _0x251a7b=>{const _0x32cc07=_0x179dac,_0x45f05d=_0x251a7b[_0x32cc07(0x4ef)](),_0x55a693=await this[_0x32cc07(0x3f0)](_0x45f05d,_0x69fde1[_0x32cc07(0x1ec)]);this[_0x32cc07(0x55b)][_0x32cc07(0x26c)](_0x45f05d,_0x55a693);}),_0x56990c['merge'](this['_univerInstanceService'][_0x179dac(0x2da)](_0x5ee268['UniverInstanceType'][_0x179dac(0x498)]),this['_univerInstanceService'][_0x179dac(0x2da)](_0x5ee268[_0x179dac(0x2f7)][_0x179dac(0x1ec)]))[_0x179dac(0x246)](_0x56990c[_0x179dac(0x1da)](this[_0x179dac(0x1f6)]))[_0x179dac(0x3a7)](_0x5d532a=>{const _0x30baad=_0x179dac,_0x1b7118=_0x5d532a[_0x30baad(0x4ef)](),_0xcb9602=this['_entities'][_0x30baad(0x54d)](_0x1b7118);_0xcb9602&&(_0xcb9602[_0x30baad(0x214)](),this['_entities'][_0x30baad(0x1c8)](_0x1b7118));});}async['_startCollaboration'](_0x4f6afe,_0x5e2e9c){const _0x5931bc=_0x1a9c4c,_0x5715e3=await this[_0x5931bc(0x42c)][_0x5931bc(0x43f)](_0x4f6afe),_0x445afe=this['_injector'][_0x5931bc(0x2dd)](this['_getCtorByUniverType'](_0x5e2e9c),_0x4f6afe,_0x5e2e9c,_0x5715e3);return await _0x445afe[_0x5931bc(0x206)](),this[_0x5931bc(0x38d)][_0x5931bc(0x42d)](_0x445afe),_0x445afe;}[_0x1a9c4c(0x431)](_0x590f2a){const _0x1449d4=_0x1a9c4c;switch(_0x590f2a){case _0x69fde1[_0x1449d4(0x1ec)]:return _0x19f7dc['DocCollaborationEntity'];case _0x69fde1[_0x1449d4(0x498)]:return _0x19f7dc[_0x1449d4(0x1a8)];default:throw new Error(_0x1449d4(0x477)+_0x590f2a);}}},_0x19f7dc[_0x1a9c4c(0x554)]=_0x19b861([_0x6af9e4(0x0,_0x5ee268['Inject'](_0x5ee268['Injector'])),_0x6af9e4(0x1,_0x5ee268['Inject'](_0x19f7dc[_0x1a9c4c(0x569)])),_0x6af9e4(0x2,_0x5ee268[_0x1a9c4c(0x39a)])],_0x19f7dc['CollaborationController']);const _0x2878b5=[_0x1a9c4c(0x2e7),_0x1a9c4c(0x1ed),'verdancy600',_0x1a9c4c(0x412),'blue400',_0x1a9c4c(0x502)];class _0x94aa63 extends _0x5ee268['Disposable']{constructor(){const _0x10bd8c=_0x1a9c4c;super(...arguments),_0x1328f6(this,'_assignedColors',new Map()),_0x1328f6(this,_0x10bd8c(0x3e9),0x0);}[_0x1a9c4c(0x3ed)](_0x171816){const _0x5b900b=_0x1a9c4c;if(this[_0x5b900b(0x41e)]['has'](_0x171816))return this[_0x5b900b(0x41e)]['get'](_0x171816);const _0x25861e=_0x2878b5[this['_colorIndex']];return this[_0x5b900b(0x3e9)]=(this[_0x5b900b(0x3e9)]+0x1)%_0x2878b5[_0x5b900b(0x4d8)],this['_assignedColors'][_0x5b900b(0x26c)](_0x171816,_0x25861e),_0x25861e;}}var _0x6dc47c=Object[_0x1a9c4c(0x340)],_0x2ea146=Object['getOwnPropertyDescriptor'],_0x3a8818=(_0x5a59c5,_0x1aadca,_0x53ff4a,_0x23a133)=>{const _0x3115bf=_0x1a9c4c;for(var _0xc0bb97=_0x23a133>0x1?void 0x0:_0x23a133?_0x2ea146(_0x1aadca,_0x53ff4a):_0x1aadca,_0x192d38=_0x5a59c5[_0x3115bf(0x4d8)]-0x1,_0xa85561;_0x192d38>=0x0;_0x192d38--)(_0xa85561=_0x5a59c5[_0x192d38])&&(_0xc0bb97=(_0x23a133?_0xa85561(_0x1aadca,_0x53ff4a,_0xc0bb97):_0xa85561(_0xc0bb97))||_0xc0bb97);return _0x23a133&&_0xc0bb97&&_0x6dc47c(_0x1aadca,_0x53ff4a,_0xc0bb97),_0xc0bb97;},_0x4c485f=(_0xf03da3,_0x2f256c)=>(_0x530e90,_0x333481)=>_0x2f256c(_0x530e90,_0x333481,_0xf03da3);const _0x414a0d=0x12c,_0x510189=0x64;let _0x8070e6=class extends _0x5ee268['RxDisposable']{constructor(_0x1443df,_0x58e39a,_0x32d5a4,_0x250ef6,_0x211b53,_0x45c18b,_0x5f4642,_0x3df1d2,_0x1fce83){const _0x22fe29=_0x1a9c4c;super(),_0x1328f6(this,'_online',!0x1),_0x1328f6(this,_0x22fe29(0x38a),!0x1),_0x1328f6(this,_0x22fe29(0x49d),new _0x56990c[(_0x22fe29(0x3d3))](new Map())),_0x1328f6(this,_0x22fe29(0x2e4),this['_cursorInfo$']['asObservable']()),_0x1328f6(this,'_roomMembers$',new _0x56990c[(_0x22fe29(0x3d3))]([])),_0x1328f6(this,_0x22fe29(0x4c2),this['_roomMembers$'][_0x22fe29(0x246)](_0x56990c[_0x22fe29(0x54a)](_0x414a0d))),_0x1328f6(this,_0x22fe29(0x1d9),_0x5ee268[_0x22fe29(0x4da)](_0x302cb8=>{const _0x323bb1=_0x22fe29,_0x2062fb={'eventID':_0x437f93[_0x323bb1(0x2c5)][_0x323bb1(0x28d)],'data':{'unitID':this[_0x323bb1(0x447)],'memberID':this[_0x323bb1(0x29a)][_0x323bb1(0x3f2)](),'selection':_0x51fd6d(_0x302cb8)}};this[_0x323bb1(0x29a)][_0x323bb1(0x420)](_0x2062fb,this[_0x323bb1(0x447)]);},_0x510189)),(this['unitID']=_0x1443df,this['_session']=_0x58e39a,this[_0x22fe29(0x474)]=_0x32d5a4,this[_0x22fe29(0x4b1)]=_0x250ef6,this['_memberService']=_0x211b53,this[_0x22fe29(0x282)]=_0x45c18b,this[_0x22fe29(0x2df)]=_0x5f4642,this[_0x22fe29(0x535)]=_0x3df1d2,this[_0x22fe29(0x48d)]=_0x1fce83);}get[_0x1a9c4c(0x40a)](){const _0x1723b1=_0x1a9c4c;return this['_cursorInfo$'][_0x1723b1(0x2fc)]();}get[_0x1a9c4c(0x3a5)](){const _0x3b803c=_0x1a9c4c;return this['_roomMembers$'][_0x3b803c(0x2fc)]();}['dispose'](){const _0x3a1e2=_0x1a9c4c;super[_0x3a1e2(0x214)](),this[_0x3a1e2(0x49d)][_0x3a1e2(0x42d)](new Map()),this[_0x3a1e2(0x49d)][_0x3a1e2(0x30a)](),this[_0x3a1e2(0x3aa)][_0x3a1e2(0x42d)]([]),this[_0x3a1e2(0x3aa)]['complete']();}[_0x1a9c4c(0x206)](){const _0x2a7aa1=_0x1a9c4c;this[_0x2a7aa1(0x38a)]||(this['_init']=!0x0,this[_0x2a7aa1(0x29a)][_0x2a7aa1(0x539)][_0x2a7aa1(0x246)](_0x56990c[_0x2a7aa1(0x1da)](this['dispose$']))['subscribe'](_0x5e27c2=>{const _0x8a63ef=_0x2a7aa1;_0x5e27c2===_0x3477b6[_0x8a63ef(0x399)]?this[_0x8a63ef(0x3d1)]():this[_0x8a63ef(0x2a0)]();}),this[_0x2a7aa1(0x29a)]['event$'][_0x2a7aa1(0x246)](_0x56990c['takeUntil'](this[_0x2a7aa1(0x1f6)]))[_0x2a7aa1(0x3a7)](_0x30acb7=>{const _0x2d12a5=_0x2a7aa1,_0x5a1483=_0x30acb7[_0x2d12a5(0x3f9)];_0x5a1483===_0x437f93['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x2d12a5(0x1ef)](_0x30acb7),_0x5a1483===_0x437f93[_0x2d12a5(0x2c5)][_0x2d12a5(0x288)]&&this['_onCursorDelete'](_0x30acb7);}),this['disposeWithMe'](this['_commandService'][_0x2a7aa1(0x1e6)](_0x37b69e=>{const _0x5a8531=_0x2a7aa1,_0x7a97d9=_0x37b69e['params'];_0x7a97d9!=null&&this[_0x5a8531(0x3bf)]&&_0x37b69e['id']===_0x45fa2b[_0x5a8531(0x26e)]['id']&&_0x7a97d9[_0x5a8531(0x22b)]===this[_0x5a8531(0x447)]&&_0x7a97d9[_0x5a8531(0x3b3)]===!0x1&&this['_updateLocalCursor'](_0x7a97d9['ranges']);})),this[_0x2a7aa1(0x282)]['collabCursorState$']['pipe'](_0x56990c[_0x2a7aa1(0x1da)](this['dispose$']))[_0x2a7aa1(0x3a7)](_0x4332ea=>{const _0x2ba33a=_0x2a7aa1;if((_0x4332ea==null?void 0x0:_0x4332ea[_0x2ba33a(0x447)])!==this[_0x2ba33a(0x447)])return;const _0x4802f6={'eventID':_0x437f93['CollaborationEvent'][_0x2ba33a(0x28d)],'data':_0x4332ea};this[_0x2ba33a(0x1ef)](_0x4802f6);}),this[_0x2a7aa1(0x337)](this['_commandService'][_0x2a7aa1(0x1e6)](_0x5abb7e=>{const _0x55a207=_0x2a7aa1;if(_0x5abb7e['params']==null)return;const _0x376b25=_0x5abb7e[_0x55a207(0x3e7)];if(_0x5abb7e['id']!==_0x45fa2b['RichTextEditingMutation']['id']||_0x376b25['unitId']!==this[_0x55a207(0x447)])return;const _0x263e4e={'id':_0x55a207(0x220),'params':_0x376b25},_0x16f877=this['cursorInfo'];for(const [_0x11e12b,_0x3a1b9b]of _0x16f877){const _0x1457b0={'id':_0x55a207(0x220),'params':{'unitId':this[_0x55a207(0x447)],'actions':null,'textRanges':_0x3a1b9b[_0x55a207(0x361)]}},_0x41dee6=this[_0x55a207(0x2df)][_0x55a207(0x24d)](_0x263e4e,_0x1457b0,!0x1);if(_0x437f93[_0x55a207(0x1ac)](_0x41dee6))throw _0x41dee6[_0x55a207(0x317)];_0x16f877['set'](_0x11e12b,{..._0x3a1b9b,'ranges':_0x41dee6[_0x55a207(0x2b9)][_0x55a207(0x3e7)][_0x55a207(0x29f)]});}queueMicrotask(()=>{const _0x55fbe7=_0x55a207;this[_0x55fbe7(0x49d)][_0x55fbe7(0x42d)](_0x16f877);});})));}[_0x1a9c4c(0x1ef)](_0xf4ef60){const _0x168153=_0x1a9c4c;var _0x56866d,_0x34c491;const {memberID:_0x38aad9,selection:_0x346f8a}=_0xf4ef60[_0x168153(0x5ac)],_0x22415d=_0x54df69(_0x346f8a),_0x4f75e0=(_0x34c491=(_0x56866d=this['_memberService'][_0x168153(0x4f1)](this[_0x168153(0x447)],_0x38aad9))==null?void 0x0:_0x56866d[_0x168153(0x32b)])!=null?_0x34c491:_0x168153(0x31a),_0x1e9e41={'color':this[_0x168153(0x4b1)][_0x168153(0x3ed)](_0x38aad9),'name':_0x4f75e0,'ranges':_0x22415d},_0x14b7f6=this['cursorInfo'];_0x14b7f6[_0x168153(0x26c)](_0x38aad9,_0x1e9e41),this[_0x168153(0x49d)]['next'](_0x14b7f6);}['_onCursorDelete'](_0x5ac8ba){const _0x3717d7=_0x1a9c4c,{memberID:_0x5e3416}=_0x5ac8ba[_0x3717d7(0x5ac)],_0x43d74b=this['cursorInfo'];_0x43d74b[_0x3717d7(0x1c8)](_0x5e3416),this[_0x3717d7(0x49d)]['next'](_0x43d74b);}[_0x1a9c4c(0x3d1)](){const _0x4ce580=_0x1a9c4c;var _0x3873c7;if(this['_online']=!0x0,((_0x3873c7=this[_0x4ce580(0x535)]['getFocusedUnit']())==null?void 0x0:_0x3873c7[_0x4ce580(0x4ef)]())!==this[_0x4ce580(0x447)])return;const _0x4bf9bf=this[_0x4ce580(0x474)]['get'](_0x45fa2b[_0x4ce580(0x3d2)])[_0x4ce580(0x378)]();Array['isArray'](_0x4bf9bf)&&_0x4bf9bf['length']>0x0&&this[_0x4ce580(0x1d9)](_0x4bf9bf);}[_0x1a9c4c(0x2a0)](){const _0x19b5bf=_0x1a9c4c;this[_0x19b5bf(0x3bf)]=!0x1;}};_0x8070e6=_0x3a8818([_0x4c485f(0x2,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0x4c485f(0x3,_0x5ee268[_0x1a9c4c(0x4b4)](_0x94aa63)),_0x4c485f(0x4,_0x5ee268[_0x1a9c4c(0x4b4)](_0xd4878c)),_0x4c485f(0x5,_0x5ee268[_0x1a9c4c(0x4b4)](_0x3c54ae)),_0x4c485f(0x6,_0x437f93[_0x1a9c4c(0x1c7)]),_0x4c485f(0x7,_0x5ee268[_0x1a9c4c(0x39a)]),_0x4c485f(0x8,_0x5ee268[_0x1a9c4c(0x386)])],_0x8070e6);var _0x1b4e77=Object[_0x1a9c4c(0x340)],_0x4b8b1c=Object[_0x1a9c4c(0x541)],_0x3c3668=(_0x134244,_0x5105f6,_0x4075b3,_0x235991)=>{for(var _0x4b53f6=_0x235991>0x1?void 0x0:_0x235991?_0x4b8b1c(_0x5105f6,_0x4075b3):_0x5105f6,_0x44983d=_0x134244['length']-0x1,_0x5a8212;_0x44983d>=0x0;_0x44983d--)(_0x5a8212=_0x134244[_0x44983d])&&(_0x4b53f6=(_0x235991?_0x5a8212(_0x5105f6,_0x4075b3,_0x4b53f6):_0x5a8212(_0x4b53f6))||_0x4b53f6);return _0x235991&&_0x4b53f6&&_0x1b4e77(_0x5105f6,_0x4075b3,_0x4b53f6),_0x4b53f6;},_0x60faa2=(_0x43c1b8,_0x259500)=>(_0x5e8d28,_0x38cde2)=>_0x259500(_0x5e8d28,_0x38cde2,_0x43c1b8);const _0x13a139=0x12c,_0x1896ce=0x64,_0x12cad7=()=>{let _0x43509a=[],_0x237665=!0x1;return _0x282584=>{_0x43509a['push'](_0x282584),_0x237665||(_0x237665=!0x0,setTimeout(()=>{_0x43509a['forEach'](_0x13fa8c=>_0x13fa8c()),_0x43509a=[],_0x237665=!0x1;}));};};let _0x37929f=class extends _0x5ee268['RxDisposable']{constructor(_0x250d85,_0x220f79,_0x19e773,_0x5664ef,_0x4c16a3,_0x43f89d,_0x262712,_0xf986cb){const _0x525607=_0x1a9c4c;super(),_0x1328f6(this,_0x525607(0x3bf),!0x1),_0x1328f6(this,_0x525607(0x38a),!0x1),_0x1328f6(this,'_cursorInfo$',new _0x56990c['BehaviorSubject'](new Map())),_0x1328f6(this,_0x525607(0x2e4),this[_0x525607(0x49d)][_0x525607(0x560)]()),_0x1328f6(this,_0x525607(0x3aa),new _0x56990c[(_0x525607(0x3d3))]([])),_0x1328f6(this,_0x525607(0x4c2),this[_0x525607(0x3aa)]['pipe'](_0x56990c[_0x525607(0x54a)](_0x13a139))),_0x1328f6(this,_0x525607(0x1d9),_0x5ee268[_0x525607(0x4da)]((_0x4b528b,_0x86e066)=>{const _0x4ca481=_0x525607,_0x3fb862={'eventID':_0x437f93[_0x4ca481(0x2c5)][_0x4ca481(0x28d)],'data':{'unitID':this['unitID'],'memberID':this[_0x4ca481(0x29a)][_0x4ca481(0x3f2)](),'selection':_0x5cdf78[_0x4ca481(0x39d)](_0x4b528b,_0x86e066[_0x4ca481(0x314)])}};this[_0x4ca481(0x29a)][_0x4ca481(0x420)](_0x3fb862,this[_0x4ca481(0x447)]);},_0x1896ce)),(this[_0x525607(0x447)]=_0x250d85,this['_session']=_0x220f79,this[_0x525607(0x474)]=_0x19e773,this[_0x525607(0x4b1)]=_0x5664ef,this['_memberService']=_0x4c16a3,this[_0x525607(0x535)]=_0x43f89d,this[_0x525607(0x48d)]=_0x262712,this[_0x525607(0x36a)]=_0xf986cb);}get[_0x1a9c4c(0x40a)](){const _0x4a0bc7=_0x1a9c4c;return this['_cursorInfo$'][_0x4a0bc7(0x2fc)]();}get[_0x1a9c4c(0x3a5)](){const _0x318014=_0x1a9c4c;return this['_roomMembers$'][_0x318014(0x2fc)]();}[_0x1a9c4c(0x214)](){const _0x2c4f6d=_0x1a9c4c;super['dispose'](),this[_0x2c4f6d(0x49d)][_0x2c4f6d(0x42d)](new Map()),this[_0x2c4f6d(0x49d)][_0x2c4f6d(0x30a)](),this[_0x2c4f6d(0x3aa)][_0x2c4f6d(0x42d)]([]),this[_0x2c4f6d(0x3aa)][_0x2c4f6d(0x30a)]();}[_0x1a9c4c(0x206)](){const _0x1326f3=_0x1a9c4c;this[_0x1326f3(0x38a)]||(this[_0x1326f3(0x38a)]=!0x0,this['_session'][_0x1326f3(0x539)][_0x1326f3(0x246)](_0x56990c['takeUntil'](this[_0x1326f3(0x1f6)]))[_0x1326f3(0x3a7)](_0xa909b3=>{const _0x3c5641=_0x1326f3;_0xa909b3===_0x3477b6[_0x3c5641(0x399)]?this[_0x3c5641(0x3d1)]():this[_0x3c5641(0x2a0)]();}),this[_0x1326f3(0x29a)]['event$'][_0x1326f3(0x246)](_0x56990c[_0x1326f3(0x1da)](this[_0x1326f3(0x1f6)]))[_0x1326f3(0x3a7)](_0x159bea=>{const _0x6c6528=_0x1326f3,_0x24e48=_0x159bea[_0x6c6528(0x3f9)];_0x24e48===_0x437f93[_0x6c6528(0x2c5)][_0x6c6528(0x28d)]&&this[_0x6c6528(0x1ef)](_0x159bea),_0x24e48===_0x437f93[_0x6c6528(0x2c5)][_0x6c6528(0x288)]&&this[_0x6c6528(0x356)](_0x159bea);}),this[_0x1326f3(0x3e0)](),this[_0x1326f3(0x337)](this['_commandService']['onCommandExecuted'](_0x912258=>{const _0x2a6ef5=_0x1326f3;if(this['_online']&&_0x912258['id']===_0x149ec5['SetSelectionsOperation']['id']&&_0x912258[_0x2a6ef5(0x3e7)]['unitId']===this[_0x2a6ef5(0x447)]){const _0x534ee3=_0x912258['params'];this[_0x2a6ef5(0x1d9)](_0x534ee3['subUnitId'],_0x534ee3[_0x2a6ef5(0x496)][0x0]);}})));}['_onCursorUpdate'](_0x594347){const _0x261fb1=_0x1a9c4c;var _0xf25125,_0x3c98c1;const {memberID:_0x30ecee,selection:_0x2f44be}=_0x594347['data'],{sheetName:_0x2f746f,range:_0x2bf6e0}=_0x5cdf78[_0x261fb1(0x1bd)](_0x2f44be),_0x572e3c={'name':(_0x3c98c1=(_0xf25125=this['_memberService']['getMember'](this[_0x261fb1(0x447)],_0x30ecee))==null?void 0x0:_0xf25125[_0x261fb1(0x32b)])!=null?_0x3c98c1:_0x261fb1(0x31a),'range':this[_0x261fb1(0x1ff)](_0x2f746f,_0x2bf6e0),'sheetID':_0x2f746f,'color':this['_colorAssignService'][_0x261fb1(0x3ed)](_0x30ecee),'selection':_0x2f44be},_0x189440=this[_0x261fb1(0x40a)];_0x189440[_0x261fb1(0x26c)](_0x30ecee,_0x572e3c),this['_cursorInfo$'][_0x261fb1(0x42d)](_0x189440);}[_0x1a9c4c(0x356)](_0x58c5db){const _0x258c44=_0x1a9c4c,{memberID:_0x165077}=_0x58c5db['data'],_0x27e250=this[_0x258c44(0x40a)];_0x27e250['delete'](_0x165077),this[_0x258c44(0x49d)][_0x258c44(0x42d)](_0x27e250);}[_0x1a9c4c(0x1ff)](_0x1d5de6,_0x56ea8f){const _0x1e258e=_0x1a9c4c;var _0x3527ac,_0x3264af;const _0x65eb42=(_0x3264af=(_0x3527ac=this[_0x1e258e(0x535)]['getUniverSheetInstance'](this[_0x1e258e(0x447)]))==null?void 0x0:_0x3527ac[_0x1e258e(0x265)](_0x1d5de6))==null?void 0x0:_0x3264af[_0x1e258e(0x272)]();return(_0x65eb42==null?void 0x0:_0x65eb42[_0x1e258e(0x2bf)](_0x11df40=>_0x5ee268[_0x1e258e(0x4b9)]['contains'](_0x11df40,_0x56ea8f)))||_0x56ea8f;}[_0x1a9c4c(0x3e0)](){const _0x31cc98=_0x1a9c4c,_0x28765a=new _0x5ee268[(_0x31cc98(0x571))](),_0x1a50f7=_0x12cad7(),_0x382765=()=>{const _0x49be14=_0x31cc98;_0x28765a['dispose']();const _0x33fb9a=(_0x2b1809,_0x27382b,_0x256d35,_0x3da34b)=>{const _0x6f24c2=_0x2a06;let _0x11dc34=[];switch(_0x2b1809['id']){case _0x149ec5[_0x6f24c2(0x4df)]['DeleteRangeMoveLeftCommandId']:{_0x11dc34=_0x149ec5[_0x6f24c2(0x383)](_0x2b1809,_0x3da34b);break;}case _0x149ec5[_0x6f24c2(0x4df)][_0x6f24c2(0x294)]:{_0x11dc34=_0x149ec5['handleDeleteRangeMoveUp'](_0x2b1809,_0x3da34b);break;}case _0x149ec5[_0x6f24c2(0x4df)]['InsertColCommandId']:{_0x11dc34=_0x149ec5[_0x6f24c2(0x289)](_0x2b1809,_0x3da34b);break;}case _0x149ec5[_0x6f24c2(0x4df)]['InsertRangeMoveDownCommandId']:{_0x11dc34=_0x149ec5[_0x6f24c2(0x480)](_0x2b1809,_0x3da34b);break;}case _0x149ec5[_0x6f24c2(0x4df)]['InsertRangeMoveRightCommandId']:{_0x11dc34=_0x149ec5[_0x6f24c2(0x53a)](_0x2b1809,_0x3da34b);break;}case _0x149ec5[_0x6f24c2(0x4df)]['InsertRowCommandId']:{_0x11dc34=_0x149ec5['handleInsertRow'](_0x2b1809,_0x3da34b);break;}case _0x149ec5[_0x6f24c2(0x4df)][_0x6f24c2(0x1bb)]:{_0x11dc34=_0x149ec5[_0x6f24c2(0x4cd)](_0x2b1809,_0x3da34b);break;}case _0x149ec5['EffectRefRangId'][_0x6f24c2(0x1f1)]:{_0x11dc34=_0x149ec5[_0x6f24c2(0x323)](_0x2b1809,_0x3da34b);break;}case _0x149ec5[_0x6f24c2(0x4df)]['RemoveRowCommandId']:{_0x11dc34=_0x149ec5[_0x6f24c2(0x1e8)](_0x2b1809,_0x3da34b);break;}}const _0x5410e6=_0x149ec5[_0x6f24c2(0x41a)](_0x11dc34,_0x3da34b),_0x3a1b94=this[_0x6f24c2(0x40a)][_0x6f24c2(0x54d)](_0x27382b);if(_0x3a1b94&&_0x5410e6){const _0x15de22={..._0x3a1b94,'range':_0x5410e6};this['cursorInfo']['set'](_0x27382b,_0x15de22),_0x1a50f7(()=>{const _0x55bb0d=_0x6f24c2,_0x121b8a=this[_0x55bb0d(0x36a)][_0x55bb0d(0x40c)](_0x5410e6,_0x34ddd9=>(_0x121b8a[_0x55bb0d(0x214)](),_0x33fb9a(_0x34ddd9,_0x27382b,_0x256d35,_0x5410e6)));_0x28765a['add'](_0x121b8a);});}return{'redos':[],'undos':[]};};this[_0x49be14(0x40a)][_0x49be14(0x506)]((_0x16f081,_0x341825)=>{const _0x18b9fc=_0x49be14,{range:_0x402610,sheetID:_0x25d032}=_0x16f081,_0x31c265=this[_0x18b9fc(0x36a)][_0x18b9fc(0x40c)](_0x402610,_0x3ab112=>(_0x31c265[_0x18b9fc(0x214)](),_0x33fb9a(_0x3ab112,_0x341825,_0x25d032,_0x402610)));_0x28765a['add'](_0x31c265);});};this[_0x31cc98(0x337)](_0x5ee268[_0x31cc98(0x4c5)](this[_0x31cc98(0x49d)][_0x31cc98(0x3a7)](()=>{_0x382765();})));}[_0x1a9c4c(0x3d1)](){const _0x385bfd=_0x1a9c4c;var _0x1b55b6,_0x18d354;if(this['_online']=!0x0,((_0x1b55b6=this[_0x385bfd(0x535)][_0x385bfd(0x1b2)]())==null?void 0x0:_0x1b55b6['getUnitId']())!==this[_0x385bfd(0x447)])return;const _0x4b91ab=(_0x18d354=this['_injector'][_0x385bfd(0x54d)](_0x149ec5['SheetsSelectionsService'])[_0x385bfd(0x20f)]())==null?void 0x0:_0x18d354[0x0],_0x10c66e=this[_0x385bfd(0x535)][_0x385bfd(0x38b)](_0x5ee268[_0x385bfd(0x2f7)]['UNIVER_SHEET'])[_0x385bfd(0x267)]();_0x4b91ab&&_0x10c66e&&this[_0x385bfd(0x1d9)](_0x10c66e[_0x385bfd(0x396)](),_0x4b91ab);}[_0x1a9c4c(0x2a0)](){const _0x105a97=_0x1a9c4c;this[_0x105a97(0x3bf)]=!0x1;}};_0x37929f=_0x3c3668([_0x60faa2(0x2,_0x5ee268['Inject'](_0x5ee268[_0x1a9c4c(0x418)])),_0x60faa2(0x3,_0x5ee268['Inject'](_0x94aa63)),_0x60faa2(0x4,_0x5ee268['Inject'](_0xd4878c)),_0x60faa2(0x5,_0x5ee268[_0x1a9c4c(0x39a)]),_0x60faa2(0x6,_0x5ee268[_0x1a9c4c(0x386)]),_0x60faa2(0x7,_0x5ee268[_0x1a9c4c(0x4b4)](_0x149ec5[_0x1a9c4c(0x45a)]))],_0x37929f);var _0x11fab1=Object[_0x1a9c4c(0x340)],_0x1d54bd=Object[_0x1a9c4c(0x541)],_0x50955c=(_0x29cea2,_0x5bb5eb,_0x2e9b2e,_0x44b51c)=>{const _0x5d68d9=_0x1a9c4c;for(var _0x5535fa=_0x44b51c>0x1?void 0x0:_0x44b51c?_0x1d54bd(_0x5bb5eb,_0x2e9b2e):_0x5bb5eb,_0x2f9f1d=_0x29cea2[_0x5d68d9(0x4d8)]-0x1,_0x5b7014;_0x2f9f1d>=0x0;_0x2f9f1d--)(_0x5b7014=_0x29cea2[_0x2f9f1d])&&(_0x5535fa=(_0x44b51c?_0x5b7014(_0x5bb5eb,_0x2e9b2e,_0x5535fa):_0x5b7014(_0x5535fa))||_0x5535fa);return _0x44b51c&&_0x5535fa&&_0x11fab1(_0x5bb5eb,_0x2e9b2e,_0x5535fa),_0x5535fa;},_0x154daf=(_0x475466,_0xba8541)=>(_0x5ba3ed,_0x20673f)=>_0xba8541(_0x5ba3ed,_0x20673f,_0x475466);let _0x48a722=class extends _0x5ee268[_0x1a9c4c(0x4b2)]{constructor(_0x5299b7,_0x293a50,_0x38cc51){const _0x314e6d=_0x1a9c4c;super(),_0x1328f6(this,'_entities',new Map()),_0x1328f6(this,_0x314e6d(0x38d),new _0x56990c['Subject']()),(this[_0x314e6d(0x535)]=_0x5299b7,this['_injector']=_0x293a50,this[_0x314e6d(0x42c)]=_0x38cc51,this[_0x314e6d(0x38a)]());}['dispose'](){const _0x3fb8bd=_0x1a9c4c;super[_0x3fb8bd(0x214)](),this['_entityInit$'][_0x3fb8bd(0x30a)](),this['_entities']['forEach'](_0x116c0c=>_0x116c0c[_0x3fb8bd(0x214)]());}[_0x1a9c4c(0x5b5)](_0x567121){const _0x5c76c8=_0x1a9c4c;return this['_entities'][_0x5c76c8(0x252)](_0x567121)?this[_0x5c76c8(0x55b)][_0x5c76c8(0x54d)](_0x567121)['cursorInfo$']:this[_0x5c76c8(0x38d)][_0x5c76c8(0x246)](_0x56990c[_0x5c76c8(0x2a1)](_0x1d27ad=>_0x1d27ad[_0x5c76c8(0x447)]===_0x567121),_0x56990c['switchMap'](_0x50163f=>_0x50163f[_0x5c76c8(0x2e4)]));}['_init'](){const _0x2fc95b=_0x1a9c4c;this[_0x2fc95b(0x535)][_0x2fc95b(0x2bb)](_0x5ee268['UniverInstanceType'][_0x2fc95b(0x498)])['pipe'](_0x56990c['takeUntil'](this[_0x2fc95b(0x1f6)]))[_0x2fc95b(0x3a7)](async _0x3f4f54=>{const _0x488dd5=_0x2fc95b,_0x3ee0cc=_0x3f4f54[_0x488dd5(0x4ef)](),_0x8bacf4=await this[_0x488dd5(0x56c)](_0x3ee0cc);this[_0x488dd5(0x38d)][_0x488dd5(0x42d)](_0x8bacf4),this[_0x488dd5(0x55b)]['set'](_0x3ee0cc,_0x8bacf4);}),this[_0x2fc95b(0x535)][_0x2fc95b(0x2bb)](_0x5ee268[_0x2fc95b(0x2f7)][_0x2fc95b(0x1ec)])[_0x2fc95b(0x246)](_0x56990c[_0x2fc95b(0x1da)](this[_0x2fc95b(0x1f6)]))[_0x2fc95b(0x246)](_0x56990c[_0x2fc95b(0x2a1)](_0xbb8d1a=>!_0xbb8d1a['getUnitId']()[_0x2fc95b(0x48b)]('__')))['subscribe'](async _0x20e6cd=>{const _0x138a6a=_0x2fc95b,_0x196478=_0x20e6cd[_0x138a6a(0x4ef)](),_0x2303ed=await this[_0x138a6a(0x39b)](_0x196478);this[_0x138a6a(0x38d)][_0x138a6a(0x42d)](_0x2303ed),this['_entities'][_0x138a6a(0x26c)](_0x196478,_0x2303ed);}),_0x56990c[_0x2fc95b(0x1fd)](this[_0x2fc95b(0x535)][_0x2fc95b(0x2da)](_0x5ee268[_0x2fc95b(0x2f7)][_0x2fc95b(0x1ec)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5ee268[_0x2fc95b(0x2f7)][_0x2fc95b(0x498)]))['pipe'](_0x56990c['takeUntil'](this[_0x2fc95b(0x1f6)]))[_0x2fc95b(0x3a7)](_0x360717=>{const _0x5e1180=_0x2fc95b,_0x3772ee=_0x360717[_0x5e1180(0x4ef)](),_0xa00555=this[_0x5e1180(0x55b)][_0x5e1180(0x54d)](_0x3772ee);_0xa00555&&(_0xa00555[_0x5e1180(0x214)](),this['_entities'][_0x5e1180(0x1c8)](_0x3772ee));});}async[_0x1a9c4c(0x56c)](_0x38f76d){const _0x49886e=_0x1a9c4c,_0x5e3fc1=await this[_0x49886e(0x42c)][_0x49886e(0x43f)](_0x38f76d),_0x4d63b3=this[_0x49886e(0x474)][_0x49886e(0x2dd)](_0x37929f,_0x38f76d,_0x5e3fc1);return _0x4d63b3[_0x49886e(0x206)](),_0x4d63b3;}async[_0x1a9c4c(0x39b)](_0x576653){const _0x7e609=_0x1a9c4c,_0x41bd13=await this[_0x7e609(0x42c)]['requireSession'](_0x576653),_0x23ceca=this[_0x7e609(0x474)][_0x7e609(0x2dd)](_0x8070e6,_0x576653,_0x41bd13);return _0x23ceca['init'](),_0x23ceca;}};_0x48a722=_0x50955c([_0x154daf(0x0,_0x5ee268['IUniverInstanceService']),_0x154daf(0x1,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0x154daf(0x2,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc[_0x1a9c4c(0x569)]))],_0x48a722);const _0x7126f0=0x14,_0x4e17f6=0xc8,_0x2b09ad=0x4,_0x4742e2=0x5;function _0x38d117(_0x556550,_0x4b53a2){const _0x3f1d1b=_0x1a9c4c;let {radius:_0x1d04ae,width:_0x2ae16a,height:_0x2a390f}=_0x4b53a2;_0x1d04ae=_0x1d04ae!=null?_0x1d04ae:0x0,_0x2ae16a=_0x2ae16a!=null?_0x2ae16a:0x1e,_0x2a390f=_0x2a390f!=null?_0x2a390f:0x1e;let _0x17f8d3=0x0,_0xd4cb19=0x0,_0x2147d5=0x0;_0x17f8d3=_0xd4cb19=_0x2147d5=Math[_0x3f1d1b(0x4dd)](_0x1d04ae,_0x2ae16a/0x2,_0x2a390f/0x2),_0x556550[_0x3f1d1b(0x4ce)](),_0x556550[_0x3f1d1b(0x4dc)](_0x17f8d3,0x0),_0x556550[_0x3f1d1b(0x1f8)](_0x2ae16a-_0xd4cb19,0x0),_0x556550[_0x3f1d1b(0x1fc)](_0x2ae16a-_0xd4cb19,_0xd4cb19,_0xd4cb19,Math['PI']*0x3/0x2,0x0,!0x1),_0x556550['lineTo'](_0x2ae16a,_0x2a390f-_0x2147d5),_0x556550[_0x3f1d1b(0x1fc)](_0x2ae16a-_0x2147d5,_0x2a390f-_0x2147d5,_0x2147d5,0x0,Math['PI']/0x2,!0x1),_0x556550[_0x3f1d1b(0x1f8)](0x0,_0x2a390f),_0x556550[_0x3f1d1b(0x1f8)](0x0,_0x17f8d3),_0x556550['arc'](_0x17f8d3,_0x17f8d3,_0x17f8d3,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x556550[_0x3f1d1b(0x3cf)](),_0x4b53a2['fill']&&(_0x556550[_0x3f1d1b(0x401)](),_0x556550[_0x3f1d1b(0x3c9)]=_0x4b53a2[_0x3f1d1b(0x31c)],_0x4b53a2[_0x3f1d1b(0x25c)]===_0x3f1d1b(0x392)?_0x556550['fill'](_0x3f1d1b(0x392)):_0x556550[_0x3f1d1b(0x31c)](),_0x556550[_0x3f1d1b(0x33e)]());}class _0x201b68 extends _0x454685[_0x1a9c4c(0x588)]{constructor(_0x35ebaf,_0xae24b4){const _0x4776b1=_0x1a9c4c;super(_0x35ebaf,_0xae24b4),_0x1328f6(this,'color'),_0x1328f6(this,'text'),(this['color']=_0xae24b4==null?void 0x0:_0xae24b4[_0x4776b1(0x456)],this[_0x4776b1(0x475)]=_0xae24b4==null?void 0x0:_0xae24b4[_0x4776b1(0x475)]);}static['drawWith'](_0x477d11,_0x48d759){const _0x33c03f=_0x1a9c4c,{text:_0x1c69e9,color:_0x37b5d8}=_0x48d759;_0x477d11['save'](),_0x477d11[_0x33c03f(0x5d0)]=_0x33c03f(0x3c2);const _0x295008=_0x477d11[_0x33c03f(0x34f)](_0x1c69e9)[_0x33c03f(0x228)],_0x6828bc=Math['min'](_0x295008+0x2*_0x2b09ad,_0x4e17f6);_0x38d117(_0x477d11,{'height':_0x7126f0,'radius':0x4,'width':_0x6828bc,'fill':_0x37b5d8,'evented':!0x1}),_0x477d11[_0x33c03f(0x3c9)]=_0x33c03f(0x27b);const _0x5166dd=_0x2b09ad,_0x564324=_0x7126f0-_0x4742e2,_0x42f679=_0x4e17f6-0x2*_0x2b09ad;if(_0x295008>_0x42f679){let _0x1c29f0='',_0x471b86=0x0;for(const _0x45fb0e of _0x1c69e9){const _0x2b275b=_0x477d11[_0x33c03f(0x34f)](_0x45fb0e)['width'];if(_0x471b86+_0x2b275b<=_0x42f679-_0x477d11[_0x33c03f(0x34f)](_0x33c03f(0x38c))['width'])_0x1c29f0+=_0x45fb0e,_0x471b86+=_0x2b275b;else{_0x1c29f0+='...';break;}}_0x477d11[_0x33c03f(0x1b0)](_0x1c29f0,_0x5166dd,_0x564324);}else _0x477d11['fillText'](_0x1c69e9,_0x5166dd,_0x564324);_0x477d11[_0x33c03f(0x33e)]();}['_draw'](_0x5d6d2c){const _0x255042=_0x1a9c4c;_0x201b68[_0x255042(0x23c)](_0x5d6d2c,this);}}const _0x4c467d=_0x1a9c4c(0x1ea),_0x3c17bb=_0x1a9c4c(0x3da),_0x58a545=_0x1a9c4c(0x579),_0x3bb404=0x6,_0x49ee83=1.5,_0x628a24=0x4,_0x31bcfc=1.5,_0x5e3069='rgba(255,\x20255,\x20255,\x200.01)';class _0x5cf0e4{constructor(_0x4100d0,_0x135907,_0x38ded8,_0x46b90a){const _0x27bc64=_0x1a9c4c;_0x1328f6(this,_0x27bc64(0x3df),[]),_0x1328f6(this,_0x27bc64(0x1b4),null),_0x1328f6(this,_0x27bc64(0x5a6),null),_0x1328f6(this,'_anchorDot',null),_0x1328f6(this,_0x27bc64(0x45e),null),_0x1328f6(this,_0x27bc64(0x405),null),(this[_0x27bc64(0x403)]=_0x4100d0,this[_0x27bc64(0x1ab)]=_0x135907,this[_0x27bc64(0x44a)]=_0x38ded8,this['_document']=_0x46b90a,this['_render']());}set['_hover'](_0x1abe6b){const _0x1dcf2d=_0x1a9c4c;_0x1abe6b?(this[_0x1dcf2d(0x27d)]&&this[_0x1dcf2d(0x27d)]['hide'](),this[_0x1dcf2d(0x5a6)]&&this[_0x1dcf2d(0x5a6)][_0x1dcf2d(0x1c3)]()):(this['_anchorDot']&&this[_0x1dcf2d(0x27d)][_0x1dcf2d(0x1c3)](),this[_0x1dcf2d(0x5a6)]&&this[_0x1dcf2d(0x5a6)][_0x1dcf2d(0x479)]());}[_0x1a9c4c(0x214)](){const _0x1c8fc3=_0x1a9c4c;for(const _0x480b83 of this[_0x1c8fc3(0x3df)])_0x480b83[_0x1c8fc3(0x214)]();this['_textBubble']&&this[_0x1c8fc3(0x5a6)][_0x1c8fc3(0x214)](),this[_0x1c8fc3(0x27d)]&&this['_anchorDot'][_0x1c8fc3(0x214)](),this[_0x1c8fc3(0x1b4)]&&this['_anchor'][_0x1c8fc3(0x214)](),this['_eventUnsubscribe']&&this[_0x1c8fc3(0x405)]();}[_0x1a9c4c(0x39e)](){const _0x5a5ddc=_0x1a9c4c;var _0x302d0e;const {_docSkeleton:_0x22176d,_document:_0x29ec70}=this,{color:_0x3b0e54,name:_0x29cd19,ranges:_0xb76f1d}=this[_0x5a5ddc(0x403)],_0x1b1e71=_0x29ec70[_0x5a5ddc(0x1f4)](),{docsLeft:_0x47fede,docsTop:_0x482f99}=_0x1b1e71,_0x4fac4b=new _0x2d522a[(_0x5a5ddc(0x307))](_0x1b1e71,_0x22176d);for(const {startOffset:_0x341e91,endOffset:_0x29ae0b,collapsed:_0x4d959b,isActive:_0x20d8f0}of _0xb76f1d){const _0xda7fb=_0x22176d[_0x5a5ddc(0x3e8)](_0x341e91),_0x2e3a4e=_0x22176d['findNodePositionByCharIndex'](_0x29ae0b);if(_0x20d8f0){const {contentBoxPointGroup:_0x15fead}=_0x4fac4b[_0x5a5ddc(0x305)](_0x2e3a4e,_0x2e3a4e);if(_0x15fead[_0x5a5ddc(0x4d8)]===0x0)continue;this['_drawAnchor'](_0x3b0e54,_0x15fead,_0x47fede,_0x482f99,_0x29cd19),this[_0x5a5ddc(0x405)]=this[_0x5a5ddc(0x565)]();}if(!_0x4d959b&&_0xda7fb&&_0x2e3a4e){if(_0x2d522a[_0x5a5ddc(0x536)](_0xda7fb,_0x2e3a4e)){const _0x111a39=new _0x2d522a['NodePositionConvertToRectRange'](_0x1b1e71,_0x22176d),{pointGroup:_0x302b2b}=(_0x302d0e=_0x111a39['getRangePointData'](_0xda7fb,_0x2e3a4e))!=null?_0x302d0e:{};if(_0x302b2b==null||_0x302b2b[_0x5a5ddc(0x4d8)]===0x0)continue;this['_drawRectRange'](_0x3b0e54,_0x302b2b,_0x47fede,_0x482f99);}else{const {contentBoxPointGroup:_0x26bff9}=_0x4fac4b[_0x5a5ddc(0x305)](_0xda7fb,_0x2e3a4e);if(_0x26bff9[_0x5a5ddc(0x4d8)]===0x0)continue;this[_0x5a5ddc(0x2fd)](_0x3b0e54,_0x26bff9,_0x47fede,_0x482f99);}}}}['_drawAnchor'](_0x49774f,_0x82c8c6,_0x2f5e17,_0x1eec03,_0x4b7336){const _0x50e620=_0x1a9c4c,_0x223bc0=this[_0x50e620(0x542)](_0x82c8c6),{left:_0x3f59ac,top:_0x287838,height:_0x47ccd5}=_0x223bc0,_0x1f0269=this[_0x50e620(0x360)](),_0x27940d=_0x31bcfc/_0x1f0269,_0x25eb1a=new _0x454685['Rect'](_0x4c467d+_0x5ee268[_0x50e620(0x277)][_0x50e620(0x58b)](_0x3bb404),{'left':_0x3f59ac+_0x2f5e17-_0x27940d,'top':_0x287838+_0x1eec03,'height':_0x47ccd5,'width':_0x49ee83,'fill':_0x49774f||_0x454685[_0x50e620(0x3bc)](_0x5ee268['COLORS']['black'],0x0),'strokeWidth':_0x27940d,'stroke':_0x5e3069,'evented':!0x0});this[_0x50e620(0x1b4)]=_0x25eb1a,this[_0x50e620(0x1ab)][_0x50e620(0x4c4)](_0x25eb1a,_0x2d522a[_0x50e620(0x545)]);const _0x42c688=new _0x454685[(_0x50e620(0x59c))](_0x4c467d+_0x5ee268[_0x50e620(0x277)][_0x50e620(0x58b)](_0x3bb404),{'left':_0x3f59ac+_0x2f5e17-_0x27940d,'top':_0x287838+_0x1eec03-_0x628a24/0x2,'height':_0x628a24,'width':_0x628a24,'fill':_0x49774f||_0x454685['getColor'](_0x5ee268['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x49774f||_0x454685['getColor'](_0x5ee268['COLORS'][_0x50e620(0x226)],0x0),'evented':!0x1});this[_0x50e620(0x27d)]=_0x42c688,this[_0x50e620(0x1ab)][_0x50e620(0x4c4)](_0x42c688,_0x2d522a[_0x50e620(0x545)]);const _0x4db92f=new _0x201b68(_0x4c467d+_0x5ee268['Tools']['generateRandomId'](_0x3bb404),{'left':_0x3f59ac+_0x2f5e17-_0x27940d,'top':_0x287838+_0x1eec03-_0x7126f0,'text':_0x4b7336,'color':_0x49774f});this[_0x50e620(0x5a6)]=_0x4db92f,this[_0x50e620(0x1ab)]['addObject'](_0x4db92f,_0x2d522a[_0x50e620(0x545)]),this[_0x50e620(0x3d6)]=!0x1;}[_0x1a9c4c(0x565)](){const _0x51728e=_0x1a9c4c,_0x4e48f0=this[_0x51728e(0x1b4)][_0x51728e(0x210)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x589b9d=this[_0x51728e(0x1b4)][_0x51728e(0x395)][_0x51728e(0x2eb)](()=>{const _0x4e0814=_0x51728e;this[_0x4e0814(0x45e)]&&clearTimeout(this[_0x4e0814(0x45e)]),this[_0x4e0814(0x45e)]=setTimeout(()=>{const _0x2c0bfd=_0x4e0814;this[_0x2c0bfd(0x3d6)]=!0x1;},0x7d0);});return()=>{const _0x37cc49=_0x51728e;_0x4e48f0[_0x37cc49(0x45c)](),_0x589b9d[_0x37cc49(0x45c)]();};}[_0x1a9c4c(0x2fd)](_0x389569,_0x4b27a7,_0x1f09d3,_0x253c3c){const _0x314b3a=_0x1a9c4c,_0x5037d2=new _0x5ee268[(_0x314b3a(0x225))](_0x389569)['setAlpha'](0.2)['toRgbString'](),_0x140729=new _0x454685[(_0x314b3a(0x233))](_0x3c17bb+_0x5ee268[_0x314b3a(0x277)][_0x314b3a(0x58b)](_0x3bb404),{'pointsGroup':_0x4b27a7,'fill':_0x5037d2||_0x454685['getColor'](_0x5ee268[_0x314b3a(0x4b0)][_0x314b3a(0x226)],0.2),'left':_0x1f09d3,'top':_0x253c3c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x314b3a(0x3df)][_0x314b3a(0x2ee)](_0x140729),this[_0x314b3a(0x1ab)][_0x314b3a(0x4c4)](_0x140729,_0x2d522a['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x48652f,_0x240bb6,_0x236445,_0x56adcd){const _0x284aac=_0x1a9c4c,_0x13400c=new _0x5ee268[(_0x284aac(0x225))](_0x48652f)['setAlpha'](0.2)[_0x284aac(0x364)](),_0x53ae91=new _0x454685[(_0x284aac(0x233))](_0x58a545+_0x5ee268[_0x284aac(0x277)]['generateRandomId'](_0x3bb404),{'pointsGroup':_0x240bb6,'fill':_0x13400c||_0x454685[_0x284aac(0x3bc)](_0x5ee268['COLORS'][_0x284aac(0x226)],0.2),'left':_0x236445,'top':_0x56adcd,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x284aac(0x3df)]['push'](_0x53ae91),this[_0x284aac(0x1ab)][_0x284aac(0x4c4)](_0x53ae91,_0x2d522a[_0x284aac(0x545)]);}[_0x1a9c4c(0x542)](_0x3927e7){const _0x23e81b=_0x3927e7[0x0],_0x5345ea=_0x23e81b[0x0],_0x1ff572=_0x23e81b[0x2],{x:_0x1a9f3d,y:_0x51b96}=_0x5345ea,{x:_0x2e2169,y:_0x49b52d}=_0x1ff572;return{'left':_0x1a9f3d,'top':_0x51b96,'width':_0x2e2169-_0x1a9f3d,'height':_0x49b52d-_0x51b96};}[_0x1a9c4c(0x360)](){const _0x39a14b=_0x1a9c4c,{scaleX:_0x2f23d8,scaleY:_0x3a591c}=this['_scene'][_0x39a14b(0x46f)]();return Math[_0x39a14b(0x2c2)](_0x2f23d8,_0x3a591c);}}var _0x4cca82=Object[_0x1a9c4c(0x340)],_0x50162f=Object[_0x1a9c4c(0x541)],_0x42bf14=(_0x4baed2,_0x3cd012,_0x10e628,_0x4d40da)=>{for(var _0x26790a=_0x4d40da>0x1?void 0x0:_0x4d40da?_0x50162f(_0x3cd012,_0x10e628):_0x3cd012,_0x1c7c82=_0x4baed2['length']-0x1,_0x39c8ef;_0x1c7c82>=0x0;_0x1c7c82--)(_0x39c8ef=_0x4baed2[_0x1c7c82])&&(_0x26790a=(_0x4d40da?_0x39c8ef(_0x3cd012,_0x10e628,_0x26790a):_0x39c8ef(_0x26790a))||_0x26790a);return _0x4d40da&&_0x26790a&&_0x4cca82(_0x3cd012,_0x10e628,_0x26790a),_0x26790a;},_0x13e6f7=(_0x39be07,_0x3e877d)=>(_0xc91d25,_0x403f3c)=>_0x3e877d(_0xc91d25,_0x403f3c,_0x39be07);let _0xfecd41=class extends _0x5ee268[_0x1a9c4c(0x4b2)]{constructor(_0x7fb658,_0x4ccd10,_0x54426e,_0x5da677,_0x3e879d){const _0x57ddee=_0x1a9c4c;super(),_0x1328f6(this,_0x57ddee(0x4aa),[]),_0x1328f6(this,_0x57ddee(0x352),[]),(this[_0x57ddee(0x1de)]=_0x7fb658,this[_0x57ddee(0x5c3)]=_0x4ccd10,this[_0x57ddee(0x59a)]=_0x54426e,this['_commandService']=_0x5da677,this[_0x57ddee(0x591)]=_0x3e879d,this[_0x57ddee(0x38a)]());}[_0x1a9c4c(0x38a)](){const _0x479353=_0x1a9c4c,_0x5f48e8=this[_0x479353(0x1de)][_0x479353(0x22b)],_0x2817d0=this[_0x479353(0x5c3)];this[_0x479353(0x337)](_0x56990c[_0x479353(0x44e)]([this[_0x479353(0x59a)][_0x479353(0x5b5)](_0x5f48e8),this[_0x479353(0x591)][_0x479353(0x1be)]])[_0x479353(0x246)](_0x2b56b2[_0x479353(0x42f)](([_0x513aa7,_0x34826d])=>({'skeleton':_0x2817d0[_0x479353(0x27a)](),'cursors':[..._0x513aa7[_0x479353(0x376)]()]['flatMap'](_0x2d4b92=>({..._0x2d4b92,'color':_0x34826d[_0x2d4b92[_0x479353(0x456)]]}))})))[_0x479353(0x3a7)](_0x54d669=>{if(this['_removeCollabCursors'](),_0x54d669){const {skeleton:_0x10ee07,cursors:_0x9a06ec}=_0x54d669;this['_updateCollabCursors'](_0x10ee07,_0x9a06ec);}})),this[_0x479353(0x516)](),this[_0x479353(0x342)]();}[_0x1a9c4c(0x4a8)](_0x148734,_0x3898e1){const _0x819629=_0x1a9c4c,{scene:_0x6bca2e,mainComponent:_0xaa5e00}=this[_0x819629(0x1de)],_0x2c1726=_0x3898e1['map'](_0xe14f0e=>new _0x5cf0e4(_0xe14f0e,_0x6bca2e,_0x148734,_0xaa5e00));this['_cursorShapes']=_0x2c1726,this[_0x819629(0x352)]=_0x3898e1;}['_refreshCollabCursors'](){const _0x117460=_0x1a9c4c;this['_removeCollabCursors']();const {scene:_0x34ee28,mainComponent:_0x4f024d}=this[_0x117460(0x1de)],_0x2d2027=this[_0x117460(0x5c3)][_0x117460(0x27a)](),_0x1bfccc=this['_cursors'][_0x117460(0x42f)](_0x487aae=>new _0x5cf0e4(_0x487aae,_0x34ee28,_0x2d2027,_0x4f024d));this[_0x117460(0x4aa)]=_0x1bfccc;}[_0x1a9c4c(0x387)](){const _0x3650ce=_0x1a9c4c;this[_0x3650ce(0x4aa)][_0x3650ce(0x506)](_0x59b7d7=>_0x59b7d7[_0x3650ce(0x214)]()),this[_0x3650ce(0x4aa)]=[];}[_0x1a9c4c(0x342)](){const _0x2da341=_0x1a9c4c,_0x32795c=[_0x2d522a[_0x2da341(0x1ce)]['id']];this[_0x2da341(0x337)](this[_0x2da341(0x48d)][_0x2da341(0x1e6)](_0x3b1a28=>{const _0x352a42=_0x2da341;_0x32795c[_0x352a42(0x1d1)](_0x3b1a28['id'])&&_0x3b1a28['params'][_0x352a42(0x22b)]===this[_0x352a42(0x1de)][_0x352a42(0x22b)]&&this['_refreshCollabCursors']();}));}[_0x1a9c4c(0x516)](){const _0x3eb424=_0x1a9c4c;this[_0x3eb424(0x337)](_0x5ee268[_0x3eb424(0x54c)](this[_0x3eb424(0x1de)][_0x3eb424(0x56b)][_0x3eb424(0x4b5)])[_0x3eb424(0x246)](_0x2b56b2[_0x3eb424(0x2a1)](_0x5e3b0b=>_0x5e3b0b[_0x3eb424(0x219)]===_0x454685[_0x3eb424(0x4a1)][_0x3eb424(0x3a2)]),_0x2b56b2['throttleTime'](0x10))[_0x3eb424(0x3a7)](()=>{const _0x31adf4=_0x3eb424;this[_0x31adf4(0x28f)]();}));}};_0xfecd41=_0x42bf14([_0x13e6f7(0x1,_0x5ee268['Inject'](_0x45fa2b[_0x1a9c4c(0x324)])),_0x13e6f7(0x2,_0x5ee268[_0x1a9c4c(0x4b4)](_0x48a722)),_0x13e6f7(0x3,_0x5ee268[_0x1a9c4c(0x386)]),_0x13e6f7(0x4,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x1e2)]))],_0xfecd41);const _0x59b52e=0x1,_0x690f44=1.5;class _0x2d8667 extends _0x454685[_0x1a9c4c(0x588)]{constructor(_0xe10cef,_0x294465){const _0x4c7508=_0x1a9c4c;super(_0xe10cef,_0x294465),_0x1328f6(this,_0x4c7508(0x235)),_0x1328f6(this,_0x4c7508(0x577),!0x1),_0x1328f6(this,'_range'),_0x1328f6(this,_0x4c7508(0x35f),''),_0x1328f6(this,'_labelPosition',_0x4c7508(0x478)),_0x1328f6(this,_0x4c7508(0x3d5)),(_0x294465&&this[_0x4c7508(0x562)](_0x294465),this[_0x4c7508(0x210)][_0x4c7508(0x2eb)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x4c7508(0x395)]['subscribeEvent'](()=>this[_0x4c7508(0x562)]({'hovered':!0x1})));}[_0x1a9c4c(0x562)](_0x5c4862){const _0x503b6f=_0x1a9c4c;var _0x17b9c1,_0x5df4bc,_0x40dd37,_0x1d4f61,_0x2662c0,_0xe9f0d3;this[_0x503b6f(0x235)]=(_0x17b9c1=_0x5c4862[_0x503b6f(0x456)])!=null?_0x17b9c1:this[_0x503b6f(0x235)],this[_0x503b6f(0x577)]=(_0x5df4bc=_0x5c4862[_0x503b6f(0x40b)])!=null?_0x5df4bc:this[_0x503b6f(0x577)],this[_0x503b6f(0x2a3)]=(_0x40dd37=_0x5c4862['range'])!=null?_0x40dd37:this[_0x503b6f(0x2a3)],this[_0x503b6f(0x35f)]=(_0x1d4f61=_0x5c4862[_0x503b6f(0x32b)])!=null?_0x1d4f61:this[_0x503b6f(0x35f)],this['_labelPosition']=(_0x2662c0=_0x5c4862[_0x503b6f(0x5c7)])!=null?_0x2662c0:this['_labelPosition'],this['_backgroundColor']=(_0xe9f0d3=_0x5c4862['backgroundColor'])!=null?_0xe9f0d3:this[_0x503b6f(0x3d5)],this['transformByState']({'width':_0x5c4862[_0x503b6f(0x228)],'height':_0x5c4862[_0x503b6f(0x4a5)]});}[_0x1a9c4c(0x576)](_0x1417d5){const _0x53d523=_0x1a9c4c,{row:_0x34e550,column:_0x19d646}=_0x1417d5;if(_0x34e550>=this[_0x53d523(0x2a3)][_0x53d523(0x50e)]&&_0x34e550<=this['_range'][_0x53d523(0x3d8)]&&_0x19d646>=this[_0x53d523(0x2a3)][_0x53d523(0x476)]&&_0x19d646<=this[_0x53d523(0x2a3)]['endColumn']){this[_0x53d523(0x562)]({'hovered':!0x0});return;}this[_0x53d523(0x562)]({'hovered':!0x1});}[_0x1a9c4c(0x33a)](_0x7cc880){return!0x1;}[_0x1a9c4c(0x3b5)](_0x17fc68){const _0x5474ef=_0x1a9c4c;_0x454685['Rect'][_0x5474ef(0x23c)](_0x17fc68,{'width':this[_0x5474ef(0x228)],'height':this[_0x5474ef(0x4a5)],'strokeWidth':_0x690f44,'stroke':this[_0x5474ef(0x235)],'evented':!0x1,'fill':this[_0x5474ef(0x3d5)]}),this[_0x5474ef(0x577)]&&(_0x17fc68[_0x5474ef(0x401)](),_0x17fc68['transform'](0x1,0x0,0x0,0x1,this[_0x5474ef(0x228)],this['_labelPosition']===_0x5474ef(0x41c)?0x0:-_0x7126f0),_0x201b68[_0x5474ef(0x23c)](_0x17fc68,{'text':this[_0x5474ef(0x35f)],'color':this['_color']}),_0x17fc68[_0x5474ef(0x33e)]());}}var _0x275ce3=Object[_0x1a9c4c(0x340)],_0xb6252b=Object['getOwnPropertyDescriptor'],_0x70a7=(_0x3a2462,_0x2308a6,_0x2bc455,_0x35e35b)=>{const _0x536a95=_0x1a9c4c;for(var _0x5a1226=_0x35e35b>0x1?void 0x0:_0x35e35b?_0xb6252b(_0x2308a6,_0x2bc455):_0x2308a6,_0x5adcef=_0x3a2462[_0x536a95(0x4d8)]-0x1,_0x1b1047;_0x5adcef>=0x0;_0x5adcef--)(_0x1b1047=_0x3a2462[_0x5adcef])&&(_0x5a1226=(_0x35e35b?_0x1b1047(_0x2308a6,_0x2bc455,_0x5a1226):_0x1b1047(_0x5a1226))||_0x5a1226);return _0x35e35b&&_0x5a1226&&_0x275ce3(_0x2308a6,_0x2bc455,_0x5a1226),_0x5a1226;},_0x19c675=(_0x19f2c9,_0x1342ed)=>(_0x132309,_0x5daa49)=>_0x1342ed(_0x132309,_0x5daa49,_0x19f2c9);const _0x3dedf1=0x1389;let _0x173209=class extends _0x5ee268['RxDisposable']{constructor(_0x4db5bd,_0x3e5bf3,_0x426f7f,_0x39d42b){const _0x4390f7=_0x1a9c4c;super(),_0x1328f6(this,'_cursors',new Set()),_0x1328f6(this,'_lastPointer',null),(this[_0x4390f7(0x1de)]=_0x4db5bd,this[_0x4390f7(0x5ad)]=_0x3e5bf3,this[_0x4390f7(0x59a)]=_0x426f7f,this[_0x4390f7(0x591)]=_0x39d42b,this['_init']());}[_0x1a9c4c(0x38a)](){const _0x44239d=_0x1a9c4c;this[_0x44239d(0x5ad)][_0x44239d(0x1e5)][_0x44239d(0x246)](_0x2b56b2[_0x44239d(0x1da)](this[_0x44239d(0x1f6)]),_0x2b56b2[_0x44239d(0x370)](_0x47b3b8=>{const _0x271986=_0x44239d;if(_0x47b3b8){const _0x234e86=_0x47b3b8[_0x271986(0x224)];return _0x56990c['combineLatest'](this[_0x271986(0x59a)][_0x271986(0x5b5)](this['_context'][_0x271986(0x22b)]),this['_themeService'][_0x271986(0x1be)])[_0x271986(0x246)](_0x2b56b2['map'](([_0x353f28,_0x3e1ec5])=>{const _0x14b3c3=_0x271986,_0x35aab6=new Map();return _0x353f28[_0x14b3c3(0x506)]((_0x569e84,_0x3119e7)=>{const _0x47cb1e=_0x14b3c3;if(_0x569e84[_0x47cb1e(0x346)]===_0x234e86){const _0xaf43cb={..._0x569e84};_0xaf43cb[_0x47cb1e(0x456)]=_0x3e1ec5[_0x569e84[_0x47cb1e(0x456)]],_0x35aab6[_0x47cb1e(0x26c)](_0x3119e7,_0xaf43cb);}}),{'skeleton':_0x47b3b8,'cursors':_0x35aab6};}));}return _0x56990c['of']({'skeleton':null,'cursors':new Map()});}))[_0x44239d(0x3a7)](({skeleton:_0x396f6e,cursors:_0x215dc8})=>{const _0x30fd9a=_0x44239d;this[_0x30fd9a(0x387)](),_0x396f6e&&this[_0x30fd9a(0x4a8)](_0x396f6e,_0x215dc8);}),this['_sheetSkeletonManagerService'][_0x44239d(0x1e5)]['subscribe'](_0xe76af1=>{const _0x2606e4=_0x44239d;if(_0xe76af1==null)return;const {skeleton:_0x5ce906}=_0xe76af1,{scene:_0x3b95d2}=this[_0x2606e4(0x1de)];_0x3b95d2[_0x2606e4(0x574)][_0x2606e4(0x2eb)](_0x5ee268[_0x2606e4(0x4da)](_0x5330a1=>{const _0x347433=_0x2606e4;var _0x268733,_0x2060b0;const {offsetX:_0x5ee101,offsetY:_0x361d8b}=_0x5330a1,{x:_0x418fc0,y:_0x66d948}=_0x3b95d2[_0x347433(0x519)](_0x454685[_0x347433(0x4f6)][_0x347433(0x3c0)]([_0x5ee101,_0x361d8b])),{scaleX:_0x260e07,scaleY:_0x407ad3}=_0x3b95d2[_0x347433(0x46f)](),_0x3eec5b=_0x3b95d2[_0x347433(0x4f9)](_0x2f74a8['VIEWPORT_KEY'][_0x347433(0x2c3)]),_0x7ef636=_0x3b95d2['getVpScrollXYInfoByPosToVp'](_0x454685[_0x347433(0x4f6)][_0x347433(0x3c0)]([_0x418fc0,_0x66d948]),_0x3eec5b),_0x5ac671=_0x5ce906[_0x347433(0x52e)](_0x5ee101,_0x361d8b,_0x260e07,_0x407ad3,_0x7ef636);((_0x268733=this[_0x347433(0x427)])==null?void 0x0:_0x268733[_0x347433(0x3dd)])===_0x5ac671[_0x347433(0x3dd)]&&((_0x2060b0=this['_lastPointer'])==null?void 0x0:_0x2060b0['row'])===_0x5ac671[_0x347433(0x23e)]||this[_0x347433(0x352)][_0x347433(0x506)](_0x4e53a2=>{const _0x3cafc6=_0x347433;_0x4e53a2[_0x3cafc6(0x576)](_0x5ac671);});},0x64));});}[_0x1a9c4c(0x4a8)](_0x3e2685,_0x22070b){const _0x55f6a4=_0x1a9c4c;var _0x2165a9;const _0x2e58bc=(_0x2165a9=this['_sheetSkeletonManagerService'][_0x55f6a4(0x268)]())==null?void 0x0:_0x2165a9[_0x55f6a4(0x50f)];if(!_0x2e58bc)return;const _0x21ade9=this[_0x55f6a4(0x528)]();if(!_0x21ade9)return;this['_cursors'][_0x55f6a4(0x506)](_0x4851ad=>{const _0x37ecbd=_0x55f6a4;_0x4851ad[_0x37ecbd(0x49f)]();});const {scene:_0x2fd327}=_0x21ade9,_0x6b30f3=_0x4fe750(Array[_0x55f6a4(0x20a)](_0x22070b[_0x55f6a4(0x376)]()))[_0x55f6a4(0x42f)](_0x597008=>{const _0x1d56b9=_0x55f6a4,{color:_0x268f0e,range:_0x43356a,name:_0x26312e,selection:_0xf03618,sheetID:_0x38c6b4}=_0x597008,{startColumn:_0x14a4f5,startRow:_0x23339e,endColumn:_0x3f6725,endRow:_0x407789}=_0x43356a,_0x10a877=_0x2f74a8[_0x1d56b9(0x2d5)](_0x23339e,_0x14a4f5,_0x2fd327,_0x2e58bc),_0x848467=_0x2f74a8['getCoordByCell'](_0x407789,_0x3f6725,_0x2fd327,_0x2e58bc),{columnHeaderHeightAndMarginTop:_0x2a67cc}=_0x2e58bc,{startX:_0x14ae2b,startY:_0x1ee23f}=_0x10a877,{endX:_0x197f9b,endY:_0x1a4e85}=_0x848467,_0x3d1a26=_0x197f9b-_0x14ae2b,_0x44d422=_0x1a4e85-_0x1ee23f,_0x368640={'labelPosition':_0x1ee23f-_0x2a67cc>=_0x7126f0?'top':_0x1d56b9(0x41c),'sheetID':_0x38c6b4,'range':_0x43356a,'color':_0x268f0e,'name':_0x26312e,'selection':_0xf03618,'left':_0x14ae2b,'top':_0x1ee23f,'width':_0x3d1a26,'height':_0x44d422,'evented':!0x1,'zIndex':_0x3dedf1};return new _0x2d8667(_0x26312e,_0x368640);});_0x2fd327['addObjects'](_0x6b30f3,_0x59b52e),this[_0x55f6a4(0x352)]=new Set(_0x6b30f3);}['_removeCollabCursors'](){const _0x49d90c=_0x1a9c4c;var _0x911b00;(_0x911b00=this[_0x49d90c(0x352)])==null||_0x911b00[_0x49d90c(0x506)](_0x38617e=>_0x38617e[_0x49d90c(0x214)]());}[_0x1a9c4c(0x528)](){const _0x506007=_0x1a9c4c;return _0x2f74a8[_0x506007(0x3e6)](this[_0x506007(0x1de)][_0x506007(0x21e)],this['_context']);}};_0x173209=_0x70a7([_0x19c675(0x1,_0x5ee268[_0x1a9c4c(0x4b4)](_0x2f74a8['SheetSkeletonManagerService'])),_0x19c675(0x2,_0x5ee268[_0x1a9c4c(0x4b4)](_0x48a722)),_0x19c675(0x3,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x1e2)]))],_0x173209);function _0x4fe750(_0x1e7aa9){const _0x14038d=_0x1a9c4c,_0x4fc82e=new Map();return _0x1e7aa9[_0x14038d(0x506)](_0x172b0f=>{const _0x3c3e39=_0x14038d;if(_0x4fc82e[_0x3c3e39(0x252)](_0x172b0f[_0x3c3e39(0x2aa)])){const _0x2e554e=_0x4fc82e[_0x3c3e39(0x54d)](_0x172b0f[_0x3c3e39(0x2aa)]);_0x2e554e[_0x3c3e39(0x32b)]+=',\x20'+_0x172b0f[_0x3c3e39(0x32b)];}else _0x4fc82e[_0x3c3e39(0x26c)](_0x172b0f['selection'],_0x172b0f);}),Array['from'](_0x4fc82e[_0x14038d(0x376)]());}var _0x5955f5=function(){const _0x4054b8=_0x1a9c4c;return _0x5955f5=Object[_0x4054b8(0x51e)]||function(_0x526287){const _0x15212b=_0x4054b8;for(var _0x13234c,_0x3d6455=0x1,_0x4a4cc2=arguments[_0x15212b(0x4d8)];_0x3d6455<_0x4a4cc2;_0x3d6455++){_0x13234c=arguments[_0x3d6455];for(var _0x5cde75 in _0x13234c)Object[_0x15212b(0x2c0)][_0x15212b(0x444)][_0x15212b(0x451)](_0x13234c,_0x5cde75)&&(_0x526287[_0x5cde75]=_0x13234c[_0x5cde75]);}return _0x526287;},_0x5955f5[_0x4054b8(0x1d0)](this,arguments);},_0x407855=function(_0x5eb89d,_0x5976bd){const _0x5edad9=_0x1a9c4c;var _0x3f4c6f={};for(var _0x3f9012 in _0x5eb89d)Object[_0x5edad9(0x2c0)][_0x5edad9(0x444)]['call'](_0x5eb89d,_0x3f9012)&&_0x5976bd[_0x5edad9(0x533)](_0x3f9012)<0x0&&(_0x3f4c6f[_0x3f9012]=_0x5eb89d[_0x3f9012]);if(_0x5eb89d!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x29a0a6=0x0,_0x3f9012=Object[_0x5edad9(0x28e)](_0x5eb89d);_0x29a0a6<_0x3f9012['length'];_0x29a0a6++)_0x5976bd[_0x5edad9(0x533)](_0x3f9012[_0x29a0a6])<0x0&&Object[_0x5edad9(0x2c0)][_0x5edad9(0x260)][_0x5edad9(0x451)](_0x5eb89d,_0x3f9012[_0x29a0a6])&&(_0x3f4c6f[_0x3f9012[_0x29a0a6]]=_0x5eb89d[_0x3f9012[_0x29a0a6]]);}return _0x3f4c6f;},_0x318dac=_0x1d8717[_0x1a9c4c(0x5b9)](function(_0x11746f,_0x4fd34b){const _0x5caedb=_0x1a9c4c;var _0x5703bc=_0x11746f[_0x5caedb(0x5bc)],_0x26b875=_0x11746f['id'],_0x2063e4=_0x11746f[_0x5caedb(0x404)],_0x36c19e=_0x11746f[_0x5caedb(0x5c2)],_0x514240=_0x407855(_0x11746f,[_0x5caedb(0x5bc),'id',_0x5caedb(0x404),_0x5caedb(0x5c2)]),_0x4ec6a0=_0x5caedb(0x3ee)['concat'](_0x26b875,'\x20')[_0x5caedb(0x1ad)](_0x2063e4||'')[_0x5caedb(0x334)](),_0x256161=_0x1d8717['useRef']('_'[_0x5caedb(0x1ad)](_0x22f4d0()));return _0x139867(_0x5703bc,''[_0x5caedb(0x1ad)](_0x26b875),{'defIds':_0x5703bc[_0x5caedb(0x482)],'idSuffix':_0x256161[_0x5caedb(0x40e)]},_0x5955f5({'ref':_0x4fd34b,'className':_0x4ec6a0},_0x514240),_0x36c19e);});function _0x139867(_0xeb9e9c,_0x6c92da,_0xc220fb,_0x52eeb8,_0x138618){const _0x3974bf=_0x1a9c4c;return _0x1d8717[_0x3974bf(0x204)](_0xeb9e9c[_0x3974bf(0x595)],_0x5955f5(_0x5955f5({'key':_0x6c92da},_0x4488cf(_0xeb9e9c,_0xc220fb,_0x138618)),_0x52eeb8),(_0x5bccf2(_0xeb9e9c,_0xc220fb)[_0x3974bf(0x504)]||[])[_0x3974bf(0x42f)](function(_0x204db6,_0x7d56bd){const _0x55bec9=_0x3974bf;return _0x139867(_0x204db6,''['concat'](_0x6c92da,'-')[_0x55bec9(0x1ad)](_0xeb9e9c[_0x55bec9(0x595)],'-')[_0x55bec9(0x1ad)](_0x7d56bd),_0xc220fb,void 0x0,_0x138618);}));}function _0x4488cf(_0x402927,_0x402607,_0x31737e){const _0x2178c7=_0x1a9c4c;var _0x15f2cc=_0x5955f5({},_0x402927['attrs']);_0x31737e!=null&&_0x31737e[_0x2178c7(0x366)]&&_0x15f2cc[_0x2178c7(0x31c)]===_0x2178c7(0x366)&&(_0x15f2cc[_0x2178c7(0x31c)]=_0x31737e['colorChannel1']);var _0x14b834=_0x402607[_0x2178c7(0x482)];return!_0x14b834||_0x14b834[_0x2178c7(0x4d8)]===0x0||(_0x402927[_0x2178c7(0x595)]===_0x2178c7(0x2bd)&&_0x15f2cc[_0x2178c7(0x4cc)]&&(_0x15f2cc[_0x2178c7(0x4cc)]=_0x15f2cc[_0x2178c7(0x4cc)]+_0x402607[_0x2178c7(0x400)]),Object[_0x2178c7(0x1c0)](_0x15f2cc)[_0x2178c7(0x506)](function(_0x745228){const _0x540c47=_0x2178c7;var _0x24b010=_0x745228[0x0],_0x4d5c64=_0x745228[0x1];typeof _0x4d5c64=='string'&&(_0x15f2cc[_0x24b010]=_0x4d5c64[_0x540c47(0x329)](/url\(#(.*)\)/,'url(#$1'[_0x540c47(0x1ad)](_0x402607[_0x540c47(0x400)],')')));})),_0x15f2cc;}function _0x5bccf2(_0x1298a6,_0x463dd8){const _0x289acc=_0x1a9c4c;var _0x15f6b3,_0x7f8dad=_0x463dd8[_0x289acc(0x482)];return!_0x7f8dad||_0x7f8dad['length']===0x0?_0x1298a6:_0x1298a6[_0x289acc(0x595)]===_0x289acc(0x263)&&(!((_0x15f6b3=_0x1298a6[_0x289acc(0x504)])===null||_0x15f6b3===void 0x0)&&_0x15f6b3[_0x289acc(0x4d8)])?_0x5955f5(_0x5955f5({},_0x1298a6),{'children':_0x1298a6['children'][_0x289acc(0x42f)](function(_0x31fc3a){const _0x4366ca=_0x289acc;return typeof _0x31fc3a['attrs']['id']==_0x4366ca(0x273)&&_0x7f8dad&&_0x7f8dad['indexOf'](_0x31fc3a[_0x4366ca(0x1c1)]['id'])>-0x1?_0x5955f5(_0x5955f5({},_0x31fc3a),{'attrs':_0x5955f5(_0x5955f5({},_0x31fc3a['attrs']),{'id':_0x31fc3a[_0x4366ca(0x1c1)]['id']+_0x463dd8[_0x4366ca(0x400)]})}):_0x31fc3a;})}):_0x1298a6;}function _0x22f4d0(){const _0x4eda7c=_0x1a9c4c;return Math[_0x4eda7c(0x582)]()['toString'](0x24)[_0x4eda7c(0x203)](0x2,0x8);}_0x318dac[_0x1a9c4c(0x483)]=_0x1a9c4c(0x585);var _0x511140={'tag':_0x1a9c4c(0x1cf),'attrs':{'fill':_0x1a9c4c(0x2bc),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x1a9c4c(0x3a9)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x1a9c4c(0x2cd),'attrs':{'stroke':_0x1a9c4c(0x481),'d':_0x1a9c4c(0x566),'strokeLinecap':'round','strokeLinejoin':_0x1a9c4c(0x2cc),'strokeWidth':1.2}}]},{'tag':_0x1a9c4c(0x263),'attrs':{},'children':[{'tag':_0x1a9c4c(0x44f),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x1a9c4c(0x2cd),'attrs':{'fill':'#fff','d':_0x1a9c4c(0x200)}}]}]}],'defIds':[_0x1a9c4c(0x31b)]},_0x364196=_0x1d8717['forwardRef'](function(_0x4d1709,_0x101903){const _0x43703a=_0x1a9c4c;return _0x1d8717[_0x43703a(0x204)](_0x318dac,Object[_0x43703a(0x51e)]({},_0x4d1709,{'id':'off-line-single','ref':_0x101903,'icon':_0x511140}));});_0x364196[_0x1a9c4c(0x483)]='OffLineSingle';var _0x82359a={'tag':_0x1a9c4c(0x1cf),'attrs':{'fill':_0x1a9c4c(0x2bc),'viewBox':'0\x200\x2017\x2016','width':_0x1a9c4c(0x3a9),'height':_0x1a9c4c(0x3a9)},'children':[{'tag':'g','attrs':{'clipPath':_0x1a9c4c(0x4d5)},'children':[{'tag':_0x1a9c4c(0x2cd),'attrs':{'stroke':_0x1a9c4c(0x481),'d':_0x1a9c4c(0x21d),'strokeLinecap':_0x1a9c4c(0x2cc),'strokeLinejoin':_0x1a9c4c(0x2cc),'strokeWidth':1.2}}]},{'tag':_0x1a9c4c(0x263),'attrs':{},'children':[{'tag':_0x1a9c4c(0x44f),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x1a9c4c(0x2cd),'attrs':{'fill':_0x1a9c4c(0x4d2),'d':_0x1a9c4c(0x200),'transform':'translate(.97)'}}]}]}],'defIds':[_0x1a9c4c(0x2fb)]},_0x18d982=_0x1d8717[_0x1a9c4c(0x5b9)](function(_0x192170,_0x321c5b){const _0xf5b8d5=_0x1a9c4c;return _0x1d8717[_0xf5b8d5(0x204)](_0x318dac,Object[_0xf5b8d5(0x51e)]({},_0x192170,{'id':_0xf5b8d5(0x2f4),'ref':_0x321c5b,'icon':_0x82359a}));});_0x18d982['displayName']='OnLineSingle';function _0xf236e5(_0x35fe4d){const _0x29e356=_0x1a9c4c;var _0x3674bc,_0x1981e3,_0x162cde='';if(typeof _0x35fe4d==_0x29e356(0x273)||typeof _0x35fe4d==_0x29e356(0x568))_0x162cde+=_0x35fe4d;else{if(typeof _0x35fe4d=='object'){if(Array[_0x29e356(0x5c9)](_0x35fe4d)){var _0x4e596e=_0x35fe4d[_0x29e356(0x4d8)];for(_0x3674bc=0x0;_0x3674bc<_0x4e596e;_0x3674bc++)_0x35fe4d[_0x3674bc]&&(_0x1981e3=_0xf236e5(_0x35fe4d[_0x3674bc]))&&(_0x162cde&&(_0x162cde+='\x20'),_0x162cde+=_0x1981e3);}else{for(_0x1981e3 in _0x35fe4d)_0x35fe4d[_0x1981e3]&&(_0x162cde&&(_0x162cde+='\x20'),_0x162cde+=_0x1981e3);}}}return _0x162cde;}function _0x528193(){const _0x23cfa4=_0x1a9c4c;for(var _0x3b086d,_0x5e4eb9,_0x1fa11c=0x0,_0x2e00b5='',_0x3f71d8=arguments[_0x23cfa4(0x4d8)];_0x1fa11c<_0x3f71d8;_0x1fa11c++)(_0x3b086d=arguments[_0x1fa11c])&&(_0x5e4eb9=_0xf236e5(_0x3b086d))&&(_0x2e00b5&&(_0x2e00b5+='\x20'),_0x2e00b5+=_0x5e4eb9);return _0x2e00b5;}const _0x164ef2={'onlineStatusIcon':_0x1a9c4c(0x259),'onlineStatusTitle':'univer-online-status-title','onlineStatus':_0x1a9c4c(0x20e),'online':_0x1a9c4c(0x2af),'offline':_0x1a9c4c(0x2d2)};function _0x58ad57(_0x792f6b){const _0xd56221=_0x1a9c4c;switch(_0x792f6b){case _0x319e47['OFFLINE']:return _0xd56221(0x240);case _0x319e47[_0xd56221(0x596)]:return _0xd56221(0x5b0);case _0x319e47[_0xd56221(0x242)]:return _0xd56221(0x5c6);case _0x319e47[_0xd56221(0x48e)]:return _0xd56221(0x3f3);case _0x319e47[_0xd56221(0x50b)]:case _0x319e47[_0xd56221(0x56d)]:case _0x319e47['AWAITING_WITH_PENDING']:return _0xd56221(0x5a7);case _0x319e47['SYNCED']:return _0xd56221(0x31f);}}function _0x2e8601(_0xe65675){const _0x4e5537=_0x1a9c4c,{status$:_0x6a7033}=_0xe65675,_0x13d771=_0x56f90f[_0x4e5537(0x563)](_0x6a7033,_0x319e47[_0x4e5537(0x48e)]),_0x43305b=_0x5ee268[_0x4e5537(0x2fe)](_0x5ee268['LocaleService']),_0x2e30e9=_0x5ee268[_0x4e5537(0x2fe)](_0x19f7dc[_0x4e5537(0x569)]),_0xcf1999=_0x13d771!==_0x319e47[_0x4e5537(0x304)],_0x2e1b6a=_0x43305b['t'](_0x58ad57(_0x13d771)),_0x165dcc=_0x528193(_0x164ef2[_0x4e5537(0x3c4)],{[_0x164ef2[_0x4e5537(0x302)]]:_0xcf1999,[_0x164ef2[_0x4e5537(0x57c)]]:!_0xcf1999}),_0x89bebf=_0xcf1999?_0x1d8717[_0x4e5537(0x204)](_0x18d982,null):_0x1d8717[_0x4e5537(0x204)](_0x364196,null),_0x3ea088=_0x1d8717[_0x4e5537(0x53e)](()=>{const _0x2d30ca=_0x4e5537;_0xcf1999||_0x2e30e9[_0x2d30ca(0x436)]();},[_0xcf1999,_0x2e30e9]);function _0x53e708(){const _0x343067=_0x4e5537;return _0x1d8717[_0x343067(0x204)](_0x343067(0x3ea),{'className':_0x165dcc,'onClick':_0x3ea088},_0x1d8717[_0x343067(0x204)](_0x343067(0x3ea),{'className':_0x164ef2[_0x343067(0x503)]},_0x89bebf),_0x1d8717['createElement'](_0x343067(0x3ea),{'className':_0x164ef2[_0x343067(0x40f)]},_0x2e1b6a));}return _0xcf1999?_0x53e708():_0x1d8717[_0x4e5537(0x204)](_0x2e321b[_0x4e5537(0x293)],{'title':_0x43305b['t'](_0x4e5537(0x21f))},_0x53e708());}var _0x106162=Object[_0x1a9c4c(0x340)],_0x29b3ae=Object[_0x1a9c4c(0x541)],_0xe7fec7=(_0x13f39d,_0x49c213,_0x5a9a89,_0x290e23)=>{for(var _0x31e29f=_0x290e23>0x1?void 0x0:_0x290e23?_0x29b3ae(_0x49c213,_0x5a9a89):_0x49c213,_0x28fff2=_0x13f39d['length']-0x1,_0x598b66;_0x28fff2>=0x0;_0x28fff2--)(_0x598b66=_0x13f39d[_0x28fff2])&&(_0x31e29f=(_0x290e23?_0x598b66(_0x49c213,_0x5a9a89,_0x31e29f):_0x598b66(_0x31e29f))||_0x31e29f);return _0x290e23&&_0x31e29f&&_0x106162(_0x49c213,_0x5a9a89,_0x31e29f),_0x31e29f;},_0x55ae22=(_0x3b7e8e,_0x742fc1)=>(_0x5e053c,_0x4508ed)=>_0x742fc1(_0x5e053c,_0x4508ed,_0x3b7e8e);_0x19f7dc[_0x1a9c4c(0x4de)]=class extends _0x5ee268[_0x1a9c4c(0x238)]{constructor(_0x44519f,_0x299252,_0x164c3a,_0x1e3f69){const _0x3b631e=_0x1a9c4c;super(),_0x1328f6(this,_0x3b631e(0x4c0),new _0x56990c[(_0x3b631e(0x3d3))](_0x319e47[_0x3b631e(0x48e)])),(this[_0x3b631e(0x535)]=_0x44519f,this['_uiPartsService']=_0x299252,this[_0x3b631e(0x474)]=_0x164c3a,this['_collaborationController']=_0x1e3f69,this['_initStatusComponent'](),this[_0x3b631e(0x52a)]());}[_0x1a9c4c(0x52a)](){const _0x112387=_0x1a9c4c;this[_0x112387(0x337)](this[_0x112387(0x535)]['focused$'][_0x112387(0x246)](_0x56990c[_0x112387(0x370)](()=>{const _0x407877=_0x112387,_0x54f03d=this['_univerInstanceService'][_0x407877(0x1b2)]();return _0x54f03d?this[_0x407877(0x1e0)][_0x407877(0x3fd)](_0x54f03d['getUnitId']()):_0x56990c['of'](null);}),_0x56990c[_0x112387(0x370)](_0x4a7057=>_0x4a7057?_0x4a7057[_0x112387(0x501)]:_0x56990c['of'](_0x319e47[_0x112387(0x48e)])))[_0x112387(0x3a7)](_0x4e6a97=>{this['_status$']['next'](_0x4e6a97);}));}[_0x1a9c4c(0x58c)](){const _0x57e31b=_0x1a9c4c;this['disposeWithMe'](this[_0x57e31b(0x2ec)][_0x57e31b(0x570)](_0x56f90f[_0x57e31b(0x369)]['HEADER_MENU'],()=>_0x5ee268[_0x57e31b(0x344)](_0x54540a({'status$':this[_0x57e31b(0x4c0)][_0x57e31b(0x560)]()}),this[_0x57e31b(0x474)])));}},_0x19f7dc[_0x1a9c4c(0x4de)]=_0xe7fec7([_0x55ae22(0x0,_0x5ee268[_0x1a9c4c(0x39a)]),_0x55ae22(0x1,_0x56f90f['IUIPartsService']),_0x55ae22(0x2,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0x55ae22(0x3,_0x5ee268['Inject'](_0x19f7dc[_0x1a9c4c(0x554)]))],_0x19f7dc[_0x1a9c4c(0x4de)]);function _0x54540a(_0xefd01c){const {status$:_0x446aef}=_0xefd01c;return function(){const _0x36ec7a=_0x2a06;return _0x1d8717[_0x36ec7a(0x204)](_0x2e8601,{'status$':_0x446aef});};}const _0x1be3ae=_0x5ee268['createIdentifier'](_0x1a9c4c(0x58d));var _0x50b324=Object['defineProperty'],_0x116167=Object[_0x1a9c4c(0x541)],_0xe1536d=(_0x2ee16d,_0x1e7cd6,_0x376210,_0x5f3479)=>{const _0x2589ef=_0x1a9c4c;for(var _0x2b6b88=_0x5f3479>0x1?void 0x0:_0x5f3479?_0x116167(_0x1e7cd6,_0x376210):_0x1e7cd6,_0x51bbac=_0x2ee16d[_0x2589ef(0x4d8)]-0x1,_0x21726f;_0x51bbac>=0x0;_0x51bbac--)(_0x21726f=_0x2ee16d[_0x51bbac])&&(_0x2b6b88=(_0x5f3479?_0x21726f(_0x1e7cd6,_0x376210,_0x2b6b88):_0x21726f(_0x2b6b88))||_0x2b6b88);return _0x5f3479&&_0x2b6b88&&_0x50b324(_0x1e7cd6,_0x376210,_0x2b6b88),_0x2b6b88;},_0x294f5d=(_0xcb1eab,_0x4c1b7e)=>(_0x403075,_0x55f133)=>_0x4c1b7e(_0x403075,_0x55f133,_0xcb1eab);_0x19f7dc[_0x1a9c4c(0x36e)]=class extends _0x5ee268['RxDisposable']{constructor(_0x3d44a6,_0x25afe5,_0x8cd1c4,_0x1480e6,_0x33aa16,_0x509d00){const _0x129411=_0x1a9c4c;super(),this['_urlService']=_0x3d44a6,this[_0x129411(0x2a9)]=_0x25afe5,this[_0x129411(0x48d)]=_0x8cd1c4,this[_0x129411(0x55e)]=_0x1480e6,this[_0x129411(0x1fe)]=_0x33aa16,_0x509d00?_0x509d00==null||_0x509d00['whenReady']()[_0x129411(0x29c)](()=>this[_0x129411(0x38a)]()):(this[_0x129411(0x2a9)][_0x129411(0x2d3)](_0x129411(0x1c4),_0x129411(0x5a8)),this[_0x129411(0x38a)]());}async[_0x1a9c4c(0x38a)](){const _0x368aed=_0x1a9c4c,_0x3bd546=this['_urlService'][_0x368aed(0x37c)](_0x368aed(0x21e)),_0x20a99a=this[_0x368aed(0x4ba)][_0x368aed(0x37c)](_0x368aed(0x219));if(!_0x3bd546||!_0x20a99a){this[_0x368aed(0x2a9)][_0x368aed(0x2d3)](_0x368aed(0x1c4),_0x368aed(0x32c));return;}switch(Number(_0x20a99a)){case _0x69fde1[_0x368aed(0x498)]:{const _0x21c307=await this['_loadSheet'](_0x3bd546);this[_0x368aed(0x266)](_0x21c307);break;}case _0x69fde1[_0x368aed(0x1ec)]:{await this['_loadDoc'](_0x3bd546);break;}default:{this[_0x368aed(0x2a9)][_0x368aed(0x317)](_0x368aed(0x1c4),_0x368aed(0x590));break;}}}async[_0x1a9c4c(0x266)](_0x5a5d87){const _0x55ba20=_0x1a9c4c;await this[_0x55ba20(0x4c8)](_0x5a5d87),_0x5a5d87['activeSheet$']['pipe'](_0x56990c[_0x55ba20(0x1da)](this[_0x55ba20(0x1f6)]))[_0x55ba20(0x3a7)](_0x4e5006=>{const _0x33be0a=_0x55ba20;_0x4e5006&&this[_0x33be0a(0x5a1)](_0x4e5006);}),this[_0x55ba20(0x4ba)][_0x55ba20(0x499)][_0x55ba20(0x246)](_0x56990c[_0x55ba20(0x1da)](this[_0x55ba20(0x1f6)]))['subscribe'](()=>this[_0x55ba20(0x4c8)](_0x5a5d87));}[_0x1a9c4c(0x5a1)](_0x1e51c2,_0x38ccc9=!0x1){const _0x11f7a3=_0x1a9c4c,_0x3ac4a7=this['_urlService'][_0x11f7a3(0x37c)](_0x11f7a3(0x517));_0x1e51c2[_0x11f7a3(0x396)]()!==_0x3ac4a7&&this[_0x11f7a3(0x4ba)][_0x11f7a3(0x421)](_0x11f7a3(0x517),_0x1e51c2['getSheetId'](),_0x38ccc9);}async['_updateSubUnitFromURLParams'](_0x529c1b){const _0x31d60c=_0x1a9c4c;var _0x3de83d;const _0x395290=this[_0x31d60c(0x4ba)]['getParam'](_0x31d60c(0x517));if(!_0x395290||!_0x529c1b[_0x31d60c(0x265)](_0x395290)){const _0x1e72eb=_0x529c1b[_0x31d60c(0x23f)]()[0x0],_0x21e50e=_0x529c1b[_0x31d60c(0x265)](_0x1e72eb);if(!_0x21e50e)return;this['_updateURLWithCurrentState'](_0x21e50e,!0x0),await this[_0x31d60c(0x48d)][_0x31d60c(0x25f)](_0x149ec5[_0x31d60c(0x321)]['id'],{'unitId':_0x529c1b[_0x31d60c(0x4ef)](),'subUnitId':_0x1e72eb});return;}((_0x3de83d=_0x529c1b['getActiveSheet']())==null?void 0x0:_0x3de83d[_0x31d60c(0x396)]())!==_0x395290&&await this[_0x31d60c(0x48d)][_0x31d60c(0x25f)](_0x149ec5[_0x31d60c(0x321)]['id'],{'unitId':_0x529c1b['getUnitId'](),'subUnitId':_0x395290});}async[_0x1a9c4c(0x316)](_0x1cd1e5){const _0x514ebe=_0x1a9c4c;let _0x218818=0x0;const _0x325faf=await this['_localCacheService']['loadOfflineData'](_0x1cd1e5);return _0x325faf&&(_0x325faf[_0x514ebe(0x1bc)]||_0x325faf[_0x514ebe(0x234)]['length']!==0x0)&&(_0x218818=_0x325faf['rev']),_0x218818===0x0&&this['_logService']['debug']('[DataLoaderController]',_0x514ebe(0x578)),this['_snapshotService'][_0x514ebe(0x5ae)](_0x1cd1e5,_0x218818);}async[_0x1a9c4c(0x3b2)](_0x210ac5){const _0x51b167=_0x1a9c4c;let _0x15d6e2=0x0;const _0x258aa0=await this[_0x51b167(0x55e)][_0x51b167(0x2f8)](_0x210ac5);return _0x258aa0&&(_0x258aa0['awaitingChangeset']||_0x258aa0[_0x51b167(0x234)][_0x51b167(0x4d8)]!==0x0)&&(_0x15d6e2=_0x258aa0['rev']),_0x15d6e2===0x0&&this['_logService'][_0x51b167(0x2d3)]('[DataLoaderController]',_0x51b167(0x578)),this[_0x51b167(0x1fe)][_0x51b167(0x2a8)](_0x210ac5,_0x15d6e2);}},_0x19f7dc[_0x1a9c4c(0x36e)]=_0xe1536d([_0x294f5d(0x0,_0x1be3ae),_0x294f5d(0x1,_0x5ee268['ILogService']),_0x294f5d(0x2,_0x5ee268[_0x1a9c4c(0x386)]),_0x294f5d(0x3,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc[_0x1a9c4c(0x59e)])),_0x294f5d(0x4,_0x5ee268['Inject'](_0x437f93[_0x1a9c4c(0x464)])),_0x294f5d(0x5,_0x5ee268['Optional'](_0x1f4649[_0x1a9c4c(0x446)]))],_0x19f7dc[_0x1a9c4c(0x36e)]);var _0xf96ef1=Object['defineProperty'],_0x47cf02=Object['getOwnPropertyDescriptor'],_0x2947b=(_0x4cde7f,_0x2e10a6,_0x5a0663,_0x5a6f76)=>{const _0x2c9b49=_0x1a9c4c;for(var _0x7e0840=_0x5a6f76>0x1?void 0x0:_0x5a6f76?_0x47cf02(_0x2e10a6,_0x5a0663):_0x2e10a6,_0x22d10d=_0x4cde7f[_0x2c9b49(0x4d8)]-0x1,_0x23ff3f;_0x22d10d>=0x0;_0x22d10d--)(_0x23ff3f=_0x4cde7f[_0x22d10d])&&(_0x7e0840=(_0x5a6f76?_0x23ff3f(_0x2e10a6,_0x5a0663,_0x7e0840):_0x23ff3f(_0x7e0840))||_0x7e0840);return _0x5a6f76&&_0x7e0840&&_0xf96ef1(_0x2e10a6,_0x5a0663,_0x7e0840),_0x7e0840;},_0x6f918a=(_0x451080,_0x5333ed)=>(_0xdac4a7,_0x2ce4f8)=>_0x5333ed(_0xdac4a7,_0x2ce4f8,_0x451080);const _0x3936c3=_0x1a9c4c(0x41d),_0x209f81='Univer';let _0x537d40=class extends _0x5ee268[_0x1a9c4c(0x238)]{constructor(_0x2148a2,_0x2df0fd){const _0x219964=_0x1a9c4c;super(),this['_univerInstanceService']=_0x2148a2,this[_0x219964(0x208)]=_0x2df0fd,this[_0x219964(0x38a)]();}[_0x1a9c4c(0x38a)](){const _0x21fb0c=_0x1a9c4c;this[_0x21fb0c(0x337)](this['_univerInstanceService']['focused$'][_0x21fb0c(0x3a7)](()=>{const _0xab3cdf=_0x21fb0c;var _0x4ea7e6;const _0x540363=this[_0xab3cdf(0x535)][_0xab3cdf(0x1b2)]();let _0x507a0b=(_0x4ea7e6=this[_0xab3cdf(0x208)][_0xab3cdf(0x3a6)](_0x3936c3))!=null?_0x4ea7e6:_0x209f81;_0x540363 instanceof _0x5ee268[_0xab3cdf(0x461)]&&(_0x507a0b=_0x540363['name']),document[_0xab3cdf(0x3dc)]=_0x507a0b;}));}};_0x537d40=_0x2947b([_0x6f918a(0x0,_0x5ee268['IUniverInstanceService']),_0x6f918a(0x1,_0x5ee268[_0x1a9c4c(0x422)])],_0x537d40);var _0x220feb=Object[_0x1a9c4c(0x340)],_0x7e7836=Object[_0x1a9c4c(0x541)],_0x30a8ce=(_0x51a880,_0x9116d3,_0xacc142,_0x4a771a)=>{const _0x3b2e69=_0x1a9c4c;for(var _0x303100=_0x4a771a>0x1?void 0x0:_0x4a771a?_0x7e7836(_0x9116d3,_0xacc142):_0x9116d3,_0x5d8983=_0x51a880[_0x3b2e69(0x4d8)]-0x1,_0x50557b;_0x5d8983>=0x0;_0x5d8983--)(_0x50557b=_0x51a880[_0x5d8983])&&(_0x303100=(_0x4a771a?_0x50557b(_0x9116d3,_0xacc142,_0x303100):_0x50557b(_0x303100))||_0x303100);return _0x4a771a&&_0x303100&&_0x220feb(_0x9116d3,_0xacc142,_0x303100),_0x303100;},_0x26e8dd=(_0x480e24,_0x189085)=>(_0x2c05bd,_0x51e8ab)=>_0x189085(_0x2c05bd,_0x51e8ab,_0x480e24);let _0x5a9cd1=class{constructor(_0x119670,_0x3279d4,_0x302d4f){const _0x17689a=_0x1a9c4c;this[_0x17689a(0x208)]=_0x119670,this[_0x17689a(0x449)]=_0x3279d4,this[_0x17689a(0x4f7)]=_0x302d4f,this[_0x17689a(0x206)]();}[_0x1a9c4c(0x206)](){const _0xd9b01f=_0x1a9c4c;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x2f59a8,_0x2247a3)=>_0x2247a3(_0x2f59a8)[_0xd9b01f(0x246)](_0x56990c[_0xd9b01f(0x530)](async _0x3a4e67=>{const _0x495d5a=_0xd9b01f,_0x37456d=_0x3a4e67;if(_0x37456d[_0x495d5a(0x227)]===0x191&&window[_0x495d5a(0x37f)](this['localeService']['t'](_0x495d5a(0x55d)))){const _0x571567=window[_0x495d5a(0x468)](window['location'][_0x495d5a(0x572)]);window[_0x495d5a(0x367)][_0x495d5a(0x572)]=this['_getLoginPath']()+_0x495d5a(0x388)+_0x571567;}return _0x37456d;}))});}[_0x1a9c4c(0x5c8)](){const _0x4dab82=_0x1a9c4c;var _0x21475e,_0x19128a;const _0x26392c=this['_configService'][_0x4dab82(0x3a6)](_0x2e60e8),_0x369124=this['_configService']['getConfig'](_0x17bae2);return(_0x19128a=(_0x21475e=_0x369124==null?void 0x0:_0x369124['loginUrlKey'])!=null?_0x21475e:_0x26392c)!=null?_0x19128a:_0x4847b7;}};_0x5a9cd1=_0x30a8ce([_0x26e8dd(0x0,_0x5ee268[_0x1a9c4c(0x422)]),_0x26e8dd(0x1,_0x5ee268[_0x1a9c4c(0x4b4)](_0x519640[_0x1a9c4c(0x544)])),_0x26e8dd(0x2,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x25a)]))],_0x5a9cd1);var _0x119c0b=Object[_0x1a9c4c(0x340)],_0x8dcbd8=Object[_0x1a9c4c(0x541)],_0x31409e=(_0x534838,_0x551b75,_0x255f38,_0x3094da)=>{const _0x3581f5=_0x1a9c4c;for(var _0x4c64fb=_0x3094da>0x1?void 0x0:_0x3094da?_0x8dcbd8(_0x551b75,_0x255f38):_0x551b75,_0xd86008=_0x534838[_0x3581f5(0x4d8)]-0x1,_0x21f5cb;_0xd86008>=0x0;_0xd86008--)(_0x21f5cb=_0x534838[_0xd86008])&&(_0x4c64fb=(_0x3094da?_0x21f5cb(_0x551b75,_0x255f38,_0x4c64fb):_0x21f5cb(_0x4c64fb))||_0x4c64fb);return _0x3094da&&_0x4c64fb&&_0x119c0b(_0x551b75,_0x255f38,_0x4c64fb),_0x4c64fb;},_0x55a88d=(_0x1873aa,_0x1a85d9)=>(_0x309bb1,_0x315b65)=>_0x1a85d9(_0x309bb1,_0x315b65,_0x1873aa);const _0x33b45d='AUTHZ_URL_KEY',_0x516ec9=_0x1a9c4c(0x52d);_0x19f7dc[_0x1a9c4c(0x41f)]=class extends _0x5ee268[_0x1a9c4c(0x238)]{constructor(_0xac5e51,_0x4e0977){const _0x54e6bb=_0x1a9c4c;super(),this[_0x54e6bb(0x3b4)]=_0xac5e51,this[_0x54e6bb(0x208)]=_0x4e0977,this[_0x54e6bb(0x312)]();}[_0x1a9c4c(0x312)](){const _0x3d5fb9=_0x1a9c4c,_0x8e2f79=this;this[_0x3d5fb9(0x337)](this[_0x3d5fb9(0x3b4)][_0x3d5fb9(0x1b7)]({'priority':0x3e7,'interceptor':_0x519640[_0x3d5fb9(0x4e2)]({'isMatch'(_0x1250bc){const _0xced400=_0x3d5fb9;var _0x5f5d6f;if(_0x1250bc[_0xced400(0x4f4)]===_0xced400(0x3ef)&&((_0x5f5d6f=_0x1250bc[_0xced400(0x583)])!=null&&_0x5f5d6f['body'])){const {objectID:_0x426a4b,objectType:_0x1979b1}=_0x1250bc[_0xced400(0x583)][_0xced400(0x402)]||{};if(!_0x426a4b||_0x1979b1===void 0x0)return!0x1;const _0x3adb34=_0x8e2f79[_0xced400(0x2fa)]()+'/'+_0x1979b1+_0xced400(0x514)+_0x426a4b+_0xced400(0x1c2);if(_0x1250bc[_0xced400(0x2e5)]===_0x3adb34)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2d431b){const _0x47c0d1=_0x3d5fb9;var _0x4d0e40;return(_0x4d0e40=_0x2d431b[_0x47c0d1(0x583)])==null?void 0x0:_0x4d0e40['body'];},'mergeParamsToRequest'(_0x5bcec0,_0x1bba62){const _0x310a7a=_0x3d5fb9,_0x5bec82=_0x8e2f79[_0x310a7a(0x2fa)]()+_0x310a7a(0x231),_0x15e811=_0x5bcec0['reduce']((_0x5bdb44,_0x230897)=>{const _0x81fd78=_0x310a7a,{unitID:_0x1024ed,objectID:_0x17dc62,objectType:_0x589bea,actions:_0x29b627}=_0x230897;return _0x5bdb44[_0x1024ed]||(_0x5bdb44[_0x1024ed]={}),_0x5bdb44[_0x1024ed][_0x17dc62]||(_0x5bdb44[_0x1024ed][_0x17dc62]={'objectID':_0x17dc62,'objectType':_0x589bea,'actions':[]}),_0x5bdb44[_0x1024ed][_0x17dc62][_0x81fd78(0x51a)][_0x81fd78(0x2ee)](..._0x29b627),_0x5bdb44;},{}),_0x522076=[];for(const _0x2fc6bd in _0x15e811)for(const _0x854537 in _0x15e811[_0x2fc6bd]){const {actions:_0x31a215,objectType:_0x42ac1a}=_0x15e811[_0x2fc6bd][_0x854537],_0x3ec56c=[...new Set(_0x31a215)];_0x522076[_0x310a7a(0x2ee)]({'unitID':_0x2fc6bd,'objectID':_0x854537,'objectType':_0x42ac1a,'actions':_0x3ec56c});}return new _0x519640[(_0x310a7a(0x3a4))]('POST',_0x5bec82,{'headers':_0x1bba62['headers'],'withCredentials':_0x1bba62['withCredentials'],'responseType':_0x1bba62['responseType'],'body':{'requests':_0x522076}});}},{'distributeResult'(_0x5955ff,_0x5a9b8a){const {objectActions:_0x531074}=_0x5955ff;return _0x5a9b8a['map'](_0x20fabb=>{const _0x5f54ff=_0x2a06,{unitID:_0x364f24,objectID:_0x17a800,actions:_0x41fab8}=_0x20fabb,_0x3b4baa=_0x531074[_0x5f54ff(0x2bf)](_0x13caea=>_0x13caea['unitID']===_0x364f24&&_0x13caea[_0x5f54ff(0x4af)]===_0x17a800),_0x42fcf1=_0x41fab8[_0x5f54ff(0x42f)](_0xbf6cae=>_0x3b4baa==null?void 0x0:_0x3b4baa['actions'][_0x5f54ff(0x2bf)](_0x40789c=>_0x40789c[_0x5f54ff(0x5d1)]===_0xbf6cae))[_0x5f54ff(0x2a1)](_0x2fa564=>!!_0x2fa564);return{'config':_0x20fabb,'result':{'actions':_0x42fcf1,'error':_0x5955ff[_0x5f54ff(0x317)]}};});}})}));}[_0x1a9c4c(0x2fa)](){const _0x1d95e8=_0x1a9c4c;var _0x389065,_0x19b81f;const _0x33bcd4=this['_configService'][_0x1d95e8(0x3a6)](_0x33b45d),_0x132af1=this[_0x1d95e8(0x208)]['getConfig'](_0x17bae2);return(_0x19b81f=(_0x389065=_0x132af1==null?void 0x0:_0x132af1['authzUrl'])!=null?_0x389065:_0x33bcd4)!=null?_0x19b81f:_0x516ec9;}async[_0x1a9c4c(0x4a6)](_0x2fede0){const _0x3148aa=_0x1a9c4c,_0x26124b=this['_getAPIPrefixPath']()+'/'+_0x2fede0['objectType']+'/object';return(await this[_0x3148aa(0x3b4)][_0x3148aa(0x4f8)](_0x26124b,{'body':_0x2fede0}))[_0x3148aa(0x402)][_0x3148aa(0x4af)]||'';}async[_0x1a9c4c(0x201)](_0x2eb74f){const _0x4e9eaa=_0x1a9c4c,_0x566e8c=this['_getAPIPrefixPath']()+'/-/object/list';return(await this['_HTTPService'][_0x4e9eaa(0x4f8)](_0x566e8c,{'body':_0x2eb74f}))[_0x4e9eaa(0x402)][_0x4e9eaa(0x3f1)];}async[_0x1a9c4c(0x439)](_0xa7efba){const _0xa53360=_0x1a9c4c,_0x4bd4fb=this[_0xa53360(0x2fa)]()+'/'+_0xa7efba[_0xa53360(0x5b2)]+_0xa53360(0x514)+_0xa7efba[_0xa53360(0x4af)];await this[_0xa53360(0x3b4)]['put'](_0x4bd4fb,{'body':_0xa7efba});}async['allowed'](_0x45daea){const _0x130c4d=_0x1a9c4c,_0x199223=this['_getAPIPrefixPath']()+'/'+_0x45daea[_0x130c4d(0x5b2)]+'/object/'+_0x45daea['objectID']+_0x130c4d(0x1c2);return(await this['_HTTPService'][_0x130c4d(0x4f8)](_0x199223,{'body':_0x45daea}))['body'][_0x130c4d(0x51a)];}async[_0x1a9c4c(0x1e1)](_0x24795e){const _0xacaef9=_0x1a9c4c,_0x4854a8=this[_0xacaef9(0x2fa)]()+_0xacaef9(0x231);return(await this[_0xacaef9(0x3b4)][_0xacaef9(0x4f8)](_0x4854a8,{'body':{'requests':_0x24795e}}))[_0xacaef9(0x402)]['objectActions'];}async[_0x1a9c4c(0x1dc)](_0x1a8cfe){const _0x564d34=_0x1a9c4c,_0xb3fe95=this[_0x564d34(0x2fa)]()+'/'+_0x1a8cfe['objectType']+'/role',_0x3a3b7e=await this[_0x564d34(0x3b4)][_0x564d34(0x4f8)](_0xb3fe95,{'body':_0x1a8cfe});return{'roles':_0x3a3b7e[_0x564d34(0x402)][_0x564d34(0x410)],'actions':_0x3a3b7e[_0x564d34(0x402)][_0x564d34(0x51a)]};}async[_0x1a9c4c(0x4b8)](_0x296fc5){const _0x115720=_0x1a9c4c,_0x27719c=this[_0x115720(0x2fa)]()+_0x115720(0x1b1);await this['_HTTPService']['delete'](_0x27719c,{'params':{'collaboratorID':_0x296fc5['collaboratorID'],'objectID':_0x296fc5['objectID'],'unitID':_0x296fc5[_0x115720(0x447)]}});}async[_0x1a9c4c(0x1f9)](_0x63a7f6){const _0x1b3c95=_0x1a9c4c,_0x2e9bee=this[_0x1b3c95(0x2fa)]()+_0x1b3c95(0x1b1);await this[_0x1b3c95(0x3b4)][_0x1b3c95(0x594)](_0x2e9bee,{'body':_0x63a7f6});}async[_0x1a9c4c(0x4a9)](_0x792cdf){const _0x2efb8b=_0x1a9c4c,_0x3da970=this[_0x2efb8b(0x2fa)]()+_0x2efb8b(0x1b1);await this[_0x2efb8b(0x3b4)][_0x2efb8b(0x4f8)](_0x3da970,{'body':_0x792cdf});}async[_0x1a9c4c(0x573)](_0x2a0e9a){const _0x5b3873=_0x1a9c4c,_0x55363f=this[_0x5b3873(0x2fa)]()+_0x5b3873(0x1b1);return(await this[_0x5b3873(0x3b4)][_0x5b3873(0x54d)](_0x55363f,{'params':{'objectID':_0x2a0e9a[_0x5b3873(0x4af)],'unitID':_0x2a0e9a['unitID']}}))['body']['collaborators'];}async['putCollaborators'](_0xe57ec4){const _0x41bcd3=_0x1a9c4c,_0x413f9b=this[_0x41bcd3(0x2fa)]()+_0x41bcd3(0x1b1);await this[_0x41bcd3(0x3b4)]['put'](_0x413f9b,{'body':_0xe57ec4});}},_0x19f7dc[_0x1a9c4c(0x41f)]=_0x31409e([_0x55a88d(0x0,_0x5ee268[_0x1a9c4c(0x4b4)](_0x519640['HTTPService'])),_0x55a88d(0x1,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x422)]))],_0x19f7dc[_0x1a9c4c(0x41f)]);var _0x48b4f4=Object[_0x1a9c4c(0x340)],_0x327ac5=Object[_0x1a9c4c(0x541)],_0x164a54=(_0x50080a,_0x4a19d3,_0x4ae1be,_0x4b0830)=>{for(var _0x6ed883=_0x4b0830>0x1?void 0x0:_0x4b0830?_0x327ac5(_0x4a19d3,_0x4ae1be):_0x4a19d3,_0x275c38=_0x50080a['length']-0x1,_0x1c9d33;_0x275c38>=0x0;_0x275c38--)(_0x1c9d33=_0x50080a[_0x275c38])&&(_0x6ed883=(_0x4b0830?_0x1c9d33(_0x4a19d3,_0x4ae1be,_0x6ed883):_0x1c9d33(_0x6ed883))||_0x6ed883);return _0x4b0830&&_0x6ed883&&_0x48b4f4(_0x4a19d3,_0x4ae1be,_0x6ed883),_0x6ed883;},_0x556b96=(_0x3d3cb9,_0x2eb618)=>(_0x2d66ff,_0x24376b)=>_0x2eb618(_0x2d66ff,_0x24376b,_0x3d3cb9);let _0x50ec40=class{constructor(_0x4a385a){const _0x585348=_0x1a9c4c;this[_0x585348(0x449)]=_0x4a385a,this[_0x585348(0x3a8)]();}['_initRequestHeader'](){const _0x41e9b8=_0x1a9c4c;this['_httpService'][_0x41e9b8(0x1b7)]({'interceptor':(_0x353854,_0x42b3f5)=>{const _0x26cba9=_0x41e9b8,_0x170d84=_0x353854[_0x26cba9(0x3eb)],_0x5c0088=_0x28eb5f['getAttachHeader']();return _0x5c0088&&_0x170d84[_0x26cba9(0x26c)](_0x26cba9(0x52b),_0x5c0088),_0x42b3f5(_0x353854);}});}};_0x50ec40=_0x164a54([_0x556b96(0x0,_0x5ee268[_0x1a9c4c(0x4b4)](_0x519640[_0x1a9c4c(0x544)]))],_0x50ec40);var _0x1bce75=Object[_0x1a9c4c(0x340)],_0x5cf1cb=Object[_0x1a9c4c(0x541)],_0x42c872=(_0x5cfa39,_0x23d8cb,_0x35dd3c,_0x2fffea)=>{const _0x1fc144=_0x1a9c4c;for(var _0x581e71=_0x2fffea>0x1?void 0x0:_0x2fffea?_0x5cf1cb(_0x23d8cb,_0x35dd3c):_0x23d8cb,_0x5ffa1=_0x5cfa39[_0x1fc144(0x4d8)]-0x1,_0x431fba;_0x5ffa1>=0x0;_0x5ffa1--)(_0x431fba=_0x5cfa39[_0x5ffa1])&&(_0x581e71=(_0x2fffea?_0x431fba(_0x23d8cb,_0x35dd3c,_0x581e71):_0x431fba(_0x581e71))||_0x581e71);return _0x2fffea&&_0x581e71&&_0x1bce75(_0x23d8cb,_0x35dd3c,_0x581e71),_0x581e71;},_0x59f173=(_0x23114a,_0x5637c6)=>(_0x347b9f,_0x5de5af)=>_0x5637c6(_0x347b9f,_0x5de5af,_0x23114a);const _0x416a2a=['image/png',_0x1a9c4c(0x348),'image/jpg',_0x1a9c4c(0x49e),_0x1a9c4c(0x247)],_0x3b0751=0x5*0x400*0x400,_0x564547=_0x1a9c4c(0x309),_0x5960d6=_0x1a9c4c(0x279),_0x461efd=_0x1a9c4c(0x3fb),_0x4bb223=_0x1a9c4c(0x24a);_0x19f7dc[_0x1a9c4c(0x347)]=class{constructor(_0x549761,_0x168786,_0xd096b5){const _0x5f4911=_0x1a9c4c;_0x1328f6(this,_0x5f4911(0x2d8),0x0),_0x1328f6(this,'_change$',new _0x56990c[(_0x5f4911(0x3be))]()),_0x1328f6(this,'change$',this[_0x5f4911(0x1e4)]),_0x1328f6(this,_0x5f4911(0x2d0),new Map()),(this[_0x5f4911(0x449)]=_0x549761,this['_configService']=_0x168786,this[_0x5f4911(0x535)]=_0xd096b5);}[_0x1a9c4c(0x4d7)](_0x154088){const _0x1abfc4=_0x1a9c4c;this[_0x1abfc4(0x2d8)]=_0x154088,this[_0x1abfc4(0x1e4)][_0x1abfc4(0x42d)](_0x154088);}[_0x1a9c4c(0x5b7)](_0x3207d3,_0x4897a5){const _0x368c92=_0x1a9c4c;if(_0x4897a5===_0x10f0dc[_0x368c92(0x32d)]['BASE64']){const _0x22216f=new Image();return _0x22216f[_0x368c92(0x5b8)]=_0x3207d3,_0x22216f;}return this[_0x368c92(0x2d0)]['get'](_0x3207d3);}['addImageSourceCache'](_0xe29d06,_0x5eabe4,_0xc5f4f2){const _0x331581=_0x1a9c4c;_0x5eabe4===_0x10f0dc['ImageSourceType'][_0x331581(0x3bd)]||_0xc5f4f2==null||this[_0x331581(0x2d0)][_0x331581(0x26c)](_0xe29d06,_0xc5f4f2);}async[_0x1a9c4c(0x207)](_0x41854b){const _0x1af809=_0x1a9c4c;try{const _0x17a5de=this[_0x1af809(0x58e)](this[_0x1af809(0x3a0)](),''+_0x41854b),_0x5a151e=(await this[_0x1af809(0x449)][_0x1af809(0x54d)](_0x17a5de))[_0x1af809(0x402)];if(_0x5a151e[_0x1af809(0x317)]&&_0x5a151e[_0x1af809(0x317)][_0x1af809(0x38e)]===_0x4ac219['OK']){const _0x3bb33e=new URL(_0x5a151e[_0x1af809(0x2e5)],this[_0x1af809(0x4e7)]())['toString']();return Promise[_0x1af809(0x2b4)](_0x3bb33e);}return Promise[_0x1af809(0x1c6)](_0x5a151e['error']);}catch(_0x589ebd){return Promise[_0x1af809(0x1c6)](_0x589ebd);}}async['saveImage'](_0x7b84c6){const _0x3a96b5=_0x1a9c4c;let _0x65755f='';if(!_0x416a2a[_0x3a96b5(0x1d1)](_0x7b84c6[_0x3a96b5(0x219)]))return this[_0x3a96b5(0x553)](),Promise[_0x3a96b5(0x1c6)](new Error(_0x10f0dc[_0x3a96b5(0x269)][_0x3a96b5(0x21b)]));if(_0x7b84c6[_0x3a96b5(0x3ce)]>_0x3b0751)return this[_0x3a96b5(0x553)](),Promise['reject'](new Error(_0x10f0dc['ImageUploadStatusType'][_0x3a96b5(0x489)]));try{const _0x25a12b=new FormData();_0x25a12b['append'](_0x3a96b5(0x4b7),_0x7b84c6);const _0x133f8a=this[_0x3a96b5(0x535)][_0x3a96b5(0x1b2)](),_0x346a22=_0x133f8a==null?void 0x0:_0x133f8a['getUnitId']();if(!_0x346a22)throw new Error(_0x3a96b5(0x589));const _0x796d73=this[_0x3a96b5(0x495)]()+_0x3a96b5(0x325)+_0x7b84c6[_0x3a96b5(0x3ce)]['toString']()+'&source='+_0x15145c['UnitEmbedded']+_0x3a96b5(0x290)+encodeURIComponent(_0x346a22),_0x734830=await(await fetch(_0x796d73,{'method':_0x3a96b5(0x3ef),'body':_0x25a12b}))[_0x3a96b5(0x1d5)]();if(typeof _0x734830[_0x3a96b5(0x2ad)]!=_0x3a96b5(0x273))return this['_decreaseWaiting'](),Promise[_0x3a96b5(0x1c6)](new Error(_0x10f0dc[_0x3a96b5(0x269)]['ERROR_IMAGE']));_0x65755f=_0x734830[_0x3a96b5(0x2ad)];}catch{return this[_0x3a96b5(0x553)](),Promise[_0x3a96b5(0x1c6)](new Error(_0x10f0dc[_0x3a96b5(0x269)][_0x3a96b5(0x354)]));}return new Promise((_0x1a154e,_0x784a75)=>{const _0x37d4e7=_0x3a96b5,_0x1f8e4e=new FileReader();_0x1f8e4e[_0x37d4e7(0x538)](_0x7b84c6),_0x1f8e4e[_0x37d4e7(0x55f)]=_0x16d114=>{const _0x4bda20=_0x37d4e7;var _0x5496a6;const _0x4e9ed2=(_0x5496a6=_0x16d114[_0x4bda20(0x45f)])==null?void 0x0:_0x5496a6[_0x4bda20(0x56f)];if(_0x4e9ed2==null){this[_0x4bda20(0x553)](),_0x784a75(new Error(_0x10f0dc[_0x4bda20(0x269)]['ERROR_IMAGE']));return;}const _0x32d3c9=_0x5ee268[_0x4bda20(0x277)][_0x4bda20(0x58b)](0x6);_0x1a154e({'imageId':_0x32d3c9,'imageSourceType':_0x10f0dc[_0x4bda20(0x32d)][_0x4bda20(0x34c)],'source':_0x65755f,'base64Cache':_0x4e9ed2,'status':_0x10f0dc['ImageUploadStatusType'][_0x4bda20(0x28a)]}),this[_0x4bda20(0x553)]();};});}['_getUploadFileURL'](){const _0xba4569=_0x1a9c4c;var _0x85b39d,_0x359190;const _0x4f4457=this[_0xba4569(0x208)][_0xba4569(0x3a6)](_0x564547),_0x3a7c10=this['_configService'][_0xba4569(0x3a6)](_0x17bae2);return(_0x359190=(_0x85b39d=_0x3a7c10==null?void 0x0:_0x3a7c10[_0xba4569(0x2d9)])!=null?_0x85b39d:_0x4f4457)!=null?_0x359190:_0x5960d6;}[_0x1a9c4c(0x3a0)](){const _0x23144c=_0x1a9c4c;var _0x32101d,_0x4a1500;const _0x1f69ca=this[_0x23144c(0x208)][_0x23144c(0x3a6)](_0x461efd),_0x1d32fe=this[_0x23144c(0x208)][_0x23144c(0x3a6)](_0x17bae2);return(_0x4a1500=(_0x32101d=_0x1d32fe==null?void 0x0:_0x1d32fe[_0x23144c(0x373)])!=null?_0x32101d:_0x1f69ca)!=null?_0x4a1500:_0x4bb223;}[_0x1a9c4c(0x4e7)](){const _0x1c7ec1=_0x1a9c4c;var _0x313b7e;const _0x305dee=this[_0x1c7ec1(0x208)][_0x1c7ec1(0x3a6)](_0x17bae2);return(_0x313b7e=_0x305dee==null?void 0x0:_0x305dee[_0x1c7ec1(0x592)])!=null?_0x313b7e:location['origin'];}[_0x1a9c4c(0x58e)](_0x809c52,_0x105452){const _0x2f13eb=_0x1a9c4c;return _0x809c52[_0x2f13eb(0x329)](_0x2f13eb(0x5c5),_0x105452);}['_decreaseWaiting'](){const _0x5950a7=_0x1a9c4c;this[_0x5950a7(0x2d8)]-=0x1,this[_0x5950a7(0x1e4)][_0x5950a7(0x42d)](this[_0x5950a7(0x2d8)]);}},_0x19f7dc[_0x1a9c4c(0x347)]=_0x42c872([_0x59f173(0x0,_0x5ee268[_0x1a9c4c(0x4b4)](_0x519640[_0x1a9c4c(0x544)])),_0x59f173(0x1,_0x5ee268[_0x1a9c4c(0x422)]),_0x59f173(0x2,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268['IUniverInstanceService']))],_0x19f7dc[_0x1a9c4c(0x347)]);var _0x858fd7=Object[_0x1a9c4c(0x340)],_0x587bfa=Object[_0x1a9c4c(0x541)],_0x5872c7=(_0x337d9c,_0x11b199,_0x49c785,_0x5542f)=>{const _0x4e5d9e=_0x1a9c4c;for(var _0x110e35=_0x5542f>0x1?void 0x0:_0x5542f?_0x587bfa(_0x11b199,_0x49c785):_0x11b199,_0x76d66=_0x337d9c[_0x4e5d9e(0x4d8)]-0x1,_0x57b41e;_0x76d66>=0x0;_0x76d66--)(_0x57b41e=_0x337d9c[_0x76d66])&&(_0x110e35=(_0x5542f?_0x57b41e(_0x11b199,_0x49c785,_0x110e35):_0x57b41e(_0x110e35))||_0x110e35);return _0x5542f&&_0x110e35&&_0x858fd7(_0x11b199,_0x49c785,_0x110e35),_0x110e35;},_0x249bae=(_0x380a0e,_0x4e389b)=>(_0x565cb3,_0x5b186d)=>_0x4e389b(_0x565cb3,_0x5b186d,_0x380a0e);let _0x5b2f3d=class extends _0x5ee268[_0x1a9c4c(0x4b2)]{constructor(_0x3223fb,_0x4297dd,_0x45c229,_0x176f4c,_0x9a8437){const _0x1e605f=_0x1a9c4c;super(),this[_0x1e605f(0x474)]=_0x3223fb,this[_0x1e605f(0x535)]=_0x4297dd,this[_0x1e605f(0x285)]=_0x45c229,this['_collaborationSessionService']=_0x176f4c,this[_0x1e605f(0x243)]=_0x9a8437,this[_0x1e605f(0x3b9)](),this[_0x1e605f(0x494)]();}[_0x1a9c4c(0x494)](){const _0x3dee13=_0x1a9c4c,_0x2c9823=async _0x74b1cf=>{const _0x3df89e=_0x2a06;(await this[_0x3df89e(0x49b)][_0x3df89e(0x43f)](_0x74b1cf))[_0x3df89e(0x540)][_0x3df89e(0x246)](_0x2b56b2[_0x3df89e(0x2a1)](_0x320542=>_0x320542[_0x3df89e(0x3f9)]===_0x437f93[_0x3df89e(0x2c5)]['SHOULD_CLOSE_CONN']),_0x2b56b2[_0x3df89e(0x1da)](this[_0x3df89e(0x1f6)]))[_0x3df89e(0x3a7)](_0x1a333a=>{const _0x39552d=_0x3df89e,_0x2bb6e5=_0x1a333a,{reason:_0x1cc881}=_0x2bb6e5['data'];this['_injector'][_0x39552d(0x54d)](_0x56f90f[_0x39552d(0x2cb)])[_0x39552d(0x1c3)]({'type':_0x2e321b[_0x39552d(0x1db)][_0x39552d(0x423)],'content':this['_localeService']['t'](_0x39552d(0x24f))+'('+_0x1cc881+')'}),this[_0x39552d(0x285)][_0x39552d(0x222)](new _0x149ec5[(_0x39552d(0x264))](_0x74b1cf)['id'],!0x1),this[_0x39552d(0x49b)][_0x39552d(0x43c)](_0x74b1cf);});};_0x56990c[_0x3dee13(0x1fd)](this[_0x3dee13(0x535)]['getTypeOfUnitAdded$'](_0x5ee268[_0x3dee13(0x2f7)][_0x3dee13(0x498)]),this[_0x3dee13(0x535)][_0x3dee13(0x2bb)](_0x5ee268[_0x3dee13(0x2f7)][_0x3dee13(0x1ec)]))[_0x3dee13(0x246)](_0x2b56b2[_0x3dee13(0x42f)](_0x2fd810=>_0x2fd810[_0x3dee13(0x4ef)]()),_0x2b56b2[_0x3dee13(0x2a1)](_0x41f743=>!_0x5ee268[_0x3dee13(0x4a7)](_0x41f743)),_0x2b56b2[_0x3dee13(0x1da)](this[_0x3dee13(0x1f6)]))[_0x3dee13(0x3a7)](_0x1ee99b=>{_0x2c9823(_0x1ee99b);});}[_0x1a9c4c(0x3b9)](){const _0x5e39eb=_0x1a9c4c,_0x3fd041=async _0x501d76=>{const _0x56b79f=_0x2a06;(await this[_0x56b79f(0x49b)]['requireSession'](_0x501d76))[_0x56b79f(0x540)][_0x56b79f(0x246)](_0x2b56b2[_0x56b79f(0x2a1)](_0x2fe87c=>_0x2fe87c[_0x56b79f(0x3f9)]===_0x437f93['CollaborationEvent'][_0x56b79f(0x54e)]),_0x2b56b2['takeUntil'](this[_0x56b79f(0x1f6)]))[_0x56b79f(0x3a7)](_0x142837=>{const _0xd6d35e=_0x56b79f,_0x63f74f=_0x142837,{objectId:_0x10f6df}=_0x63f74f[_0xd6d35e(0x5ac)],_0x4f60b2=this[_0xd6d35e(0x474)][_0xd6d35e(0x54d)](_0x2f74a8[_0xd6d35e(0x3d9)]);_0x10f6df===_0x501d76?_0x4f60b2[_0xd6d35e(0x351)](_0x501d76):_0x4f60b2[_0xd6d35e(0x564)](_0x501d76,_0x10f6df);});};_0x56990c[_0x5e39eb(0x1fd)](this['_univerInstanceService'][_0x5e39eb(0x2bb)](_0x5ee268[_0x5e39eb(0x2f7)]['UNIVER_SHEET']),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5ee268['UniverInstanceType'][_0x5e39eb(0x1ec)]))[_0x5e39eb(0x246)](_0x2b56b2[_0x5e39eb(0x42f)](_0x5d0d99=>_0x5d0d99[_0x5e39eb(0x4ef)]()),_0x2b56b2[_0x5e39eb(0x2a1)](_0x2fc761=>!_0x5ee268[_0x5e39eb(0x4a7)](_0x2fc761)),_0x2b56b2[_0x5e39eb(0x1da)](this[_0x5e39eb(0x1f6)]))[_0x5e39eb(0x3a7)](_0x30bb01=>{_0x3fd041(_0x30bb01);});}};_0x5b2f3d=_0x5872c7([_0x249bae(0x0,_0x5ee268['Inject'](_0x5ee268[_0x1a9c4c(0x418)])),_0x249bae(0x1,_0x5ee268[_0x1a9c4c(0x39a)]),_0x249bae(0x2,_0x5ee268[_0x1a9c4c(0x443)]),_0x249bae(0x3,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc[_0x1a9c4c(0x569)])),_0x249bae(0x4,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x25a)]))],_0x5b2f3d);var _0x510e38=Object[_0x1a9c4c(0x340)],_0x52385d=Object[_0x1a9c4c(0x541)],_0x45b2a9=(_0x35dbfc,_0x19b1b3,_0x1755d6,_0x17807f)=>{const _0x91c3c0=_0x1a9c4c;for(var _0x4f825c=_0x17807f>0x1?void 0x0:_0x17807f?_0x52385d(_0x19b1b3,_0x1755d6):_0x19b1b3,_0x55e599=_0x35dbfc[_0x91c3c0(0x4d8)]-0x1,_0x7fce98;_0x55e599>=0x0;_0x55e599--)(_0x7fce98=_0x35dbfc[_0x55e599])&&(_0x4f825c=(_0x17807f?_0x7fce98(_0x19b1b3,_0x1755d6,_0x4f825c):_0x7fce98(_0x4f825c))||_0x4f825c);return _0x17807f&&_0x4f825c&&_0x510e38(_0x19b1b3,_0x1755d6,_0x4f825c),_0x4f825c;},_0x2fccc7=(_0x3df7b2,_0x11520b)=>(_0x1afbbf,_0x232714)=>_0x11520b(_0x1afbbf,_0x232714,_0x3df7b2);_0x19f7dc[_0x1a9c4c(0x57a)]=class{constructor(_0x314a81,_0x42c5d4){const _0x19a1b0=_0x1a9c4c;this['_configService']=_0x314a81,this[_0x19a1b0(0x449)]=_0x42c5d4;}async[_0x1a9c4c(0x41b)](_0x41c9b4,_0x16425f){const _0x44e40a=_0x1a9c4c;var _0x1f2ac5;const {unitID:_0xfed237,type:_0x132dcf,revision:_0x5959e1=0x0}=_0x16425f,_0x3a4f89=this[_0x44e40a(0x3ca)]()+'/'+_0x132dcf+_0x44e40a(0x584)+_0xfed237+_0x44e40a(0x4a4)+_0x5959e1,_0x3d784c=(await this['_httpService']['get'](_0x3a4f89))[_0x44e40a(0x402)],_0x2aa486=(_0x1f2ac5=_0x3d784c[_0x44e40a(0x57d)])==null?void 0x0:_0x1f2ac5[_0x44e40a(0x52c)];if(_0x2aa486){const _0x3b76b2=_0x2aa486==null?void 0x0:_0x2aa486[_0x44e40a(0x261)],_0x453658=_0x437f93[_0x44e40a(0x575)]['encode'](_0x437f93[_0x44e40a(0x1d7)](_0x3b76b2));_0x2aa486[_0x44e40a(0x261)]=_0x453658,Object['entries'](_0x2aa486[_0x44e40a(0x4d3)])[_0x44e40a(0x506)](([,_0xfc28ca])=>{const _0x2dd108=_0x44e40a,_0x46cf14=_0xfc28ca[_0x2dd108(0x261)],_0x559c7c=_0x437f93['textEncoder']['encode'](_0x437f93['b64DecodeUnicode'](_0x46cf14));_0xfc28ca[_0x2dd108(0x261)]=_0x559c7c;});}return _0x3d784c;}async[_0x1a9c4c(0x1cc)](_0x3189b5,_0x79f363){const _0x34c350=_0x1a9c4c,{unitID:_0x1d2ecf,type:_0x32a783,blockID:_0x29eaba}=_0x79f363,_0x27e832=this['_getAPIPrefix']()+'/'+_0x32a783+_0x34c350(0x584)+_0x1d2ecf+_0x34c350(0x441)+_0x29eaba;return(await this['_httpService'][_0x34c350(0x54d)](_0x27e832))[_0x34c350(0x402)];}async['getDeserializedSheetBlock'](_0x545629,_0x4e0ae9){const _0x5a8d88=_0x1a9c4c,{unitID:_0x210f22,type:_0x3a5a31,blockID:_0x21bfd1}=_0x4e0ae9,_0x2933b8=this['_getAPIPrefix']()+'/block/'+_0x3a5a31+_0x5a8d88(0x584)+_0x210f22+_0x5a8d88(0x441)+_0x21bfd1;return(await this[_0x5a8d88(0x449)][_0x5a8d88(0x54d)](_0x2933b8))[_0x5a8d88(0x402)];}async[_0x1a9c4c(0x28c)](_0x48cb66,_0x254596){const _0x3de155=_0x1a9c4c,{unitID:_0x49e440,type:_0x2d1456,from:_0x41f771,to:_0x4335d5}=_0x254596,_0x21cfaa=this['_getAPIPrefix']()+'/'+_0x2d1456+_0x3de155(0x584)+_0x49e440+'/fetchmissing?from='+_0x41f771+_0x3de155(0x4a2)+_0x4335d5;return(await this[_0x3de155(0x449)][_0x3de155(0x54d)](_0x21cfaa))[_0x3de155(0x402)];}[_0x1a9c4c(0x3ca)](){const _0xac94fa=_0x1a9c4c;var _0x3f9ea8;return(_0x3f9ea8=this[_0xac94fa(0x208)][_0xac94fa(0x3a6)](_0x496fb6))!=null?_0x3f9ea8:this[_0xac94fa(0x30f)]();}[_0x1a9c4c(0x30f)](){const _0xa18c92=_0x1a9c4c;var _0x1df657,_0x2083c6;const _0x44c0c4=this['_configService'][_0xa18c92(0x3a6)](_0x8e4b39),_0x20eb9d=this[_0xa18c92(0x208)][_0xa18c92(0x3a6)](_0x17bae2);return(_0x2083c6=(_0x1df657=_0x20eb9d==null?void 0x0:_0x20eb9d[_0xa18c92(0x2f9)])!=null?_0x1df657:_0x44c0c4)!=null?_0x2083c6:_0x549ccb;}async[_0x1a9c4c(0x37b)](_0x1ccdb7,_0x432d4b){const _0x51576b=_0x1a9c4c,_0x10ea85=_0x51576b(0x433)+_0x432d4b[_0x51576b(0x219)]+_0x51576b(0x584)+_0x432d4b[_0x51576b(0x447)]+'/resources';return(await this['_httpService'][_0x51576b(0x54d)](_0x10ea85,{'params':{'resourceId':JSON[_0x51576b(0x301)](_0x432d4b['resourceIDs'])}}))[_0x51576b(0x402)];}[_0x1a9c4c(0x48c)](){const _0x2e22fb=_0x1a9c4c;throw new Error(_0x2e22fb(0x311));}['saveSheetBlock'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x1a9c4c(0x3ac)](){const _0x269200=_0x1a9c4c;throw new Error(_0x269200(0x311));}},_0x19f7dc[_0x1a9c4c(0x57a)]=_0x45b2a9([_0x2fccc7(0x0,_0x5ee268[_0x1a9c4c(0x422)]),_0x2fccc7(0x1,_0x5ee268[_0x1a9c4c(0x4b4)](_0x519640[_0x1a9c4c(0x544)]))],_0x19f7dc[_0x1a9c4c(0x57a)]);var _0x31ad34=Object[_0x1a9c4c(0x340)],_0x4d5af1=Object[_0x1a9c4c(0x541)],_0x571c93=(_0x1bc21b,_0x156c6f,_0x1baa1a,_0x5e6038)=>{const _0x17cb09=_0x1a9c4c;for(var _0x3778df=_0x5e6038>0x1?void 0x0:_0x5e6038?_0x4d5af1(_0x156c6f,_0x1baa1a):_0x156c6f,_0x15f642=_0x1bc21b[_0x17cb09(0x4d8)]-0x1,_0x188042;_0x15f642>=0x0;_0x15f642--)(_0x188042=_0x1bc21b[_0x15f642])&&(_0x3778df=(_0x5e6038?_0x188042(_0x156c6f,_0x1baa1a,_0x3778df):_0x188042(_0x3778df))||_0x3778df);return _0x5e6038&&_0x3778df&&_0x31ad34(_0x156c6f,_0x1baa1a,_0x3778df),_0x3778df;},_0x46c394=(_0x111f3f,_0x5a9ca6)=>(_0xebe18e,_0x3482d)=>_0x5a9ca6(_0xebe18e,_0x3482d,_0x111f3f);let _0x2bea9a=class extends _0x5ee268[_0x1a9c4c(0x3b8)]{constructor(_0x2394c6,_0x801de4,_0xb1a9ab,_0x28f89e,_0x304649){const _0xaa024d=_0x1a9c4c;super(_0x2394c6,_0x801de4,_0xb1a9ab),this[_0xaa024d(0x2df)]=_0x28f89e,this[_0xaa024d(0x2a9)]=_0x304649;}[_0x1a9c4c(0x1eb)](_0x4201ba,_0x50c00c){const _0x363583=_0x1a9c4c,_0x39c2a4=this['_getUndoStack'](_0x4201ba);if(_0x39c2a4)try{const _0x2af467=this[_0x363583(0x525)](_0x39c2a4,_0x50c00c);this[_0x363583(0x37a)](_0x4201ba,_0x2af467);}catch(_0x2cae0e){this[_0x363583(0x2a9)][_0x363583(0x317)](_0x363583(0x2c7),_0x2cae0e),this[_0x363583(0x43b)](_0x4201ba);}const _0x105f3d=this[_0x363583(0x2e6)](_0x4201ba);if(_0x105f3d)try{const _0xffc40c=this[_0x363583(0x525)](_0x105f3d,_0x50c00c);this[_0x363583(0x2e0)](_0x4201ba,_0xffc40c);}catch(_0x417c83){this[_0x363583(0x2a9)][_0x363583(0x317)](_0x417c83),this[_0x363583(0x54f)](_0x4201ba);}}['_clearUndo'](_0x104e88){const _0x485c06=_0x1a9c4c,_0x2d1989=this[_0x485c06(0x380)](_0x104e88);_0x2d1989&&(_0x2d1989['length']=0x0,this['_updateStatus']());}[_0x1a9c4c(0x54f)](_0x336347){const _0x2072e9=_0x1a9c4c,_0xfa5342=this[_0x2072e9(0x2e6)](_0x336347);_0xfa5342&&(_0xfa5342[_0x2072e9(0x4d8)]=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x2bcd76,_0x5cc494){const _0x5e2e5b=_0x1a9c4c;this['_undoStacks'][_0x5e2e5b(0x26c)](_0x2bcd76,_0x5cc494),this[_0x5e2e5b(0x28b)]();}['_substituteRedoStack'](_0x13a4ab,_0x56cb23){const _0x2ca270=_0x1a9c4c;this[_0x2ca270(0x440)][_0x2ca270(0x26c)](_0x13a4ab,_0x56cb23),this[_0x2ca270(0x28b)]();}[_0x1a9c4c(0x525)](_0x3a7bc5,_0x59b42e){const _0x29497e=_0x1a9c4c,_0x44cbad=[];let _0xd14426=_0x59b42e,_0x17e89f=_0x59b42e;for(let _0x11da87=_0x3a7bc5['length']-0x1;_0x11da87>=0x0;_0x11da87--){const {unitID:_0x44bf3d,undoMutations:_0x54c307,redoMutations:_0x534725}=_0x3a7bc5[_0x11da87],_0x2bca62=this[_0x29497e(0x2df)][_0x29497e(0x250)](_0xd14426,_0x54c307),_0x45158f=this[_0x29497e(0x2df)][_0x29497e(0x250)](_0x17e89f,_0x534725);if(_0x437f93[_0x29497e(0x229)](_0x2bca62)||_0x437f93['isTransformMutationsWithChangesetFailure'](_0x45158f)){this[_0x29497e(0x2a9)]['error'](_0x29497e(0x2c7),'transformStack\x20failed!',_0x2bca62,_0x45158f);break;}_0xd14426=_0x2bca62['c1Prime'],_0x17e89f=_0x45158f['c1Prime'],_0x44cbad['push']({'unitID':_0x44bf3d,'undoMutations':_0x2bca62['m2Prime'],'redoMutations':_0x45158f[_0x29497e(0x2b9)]});}return _0x44cbad[_0x29497e(0x22d)]();}};_0x2bea9a=_0x571c93([_0x46c394(0x0,_0x5ee268[_0x1a9c4c(0x39a)]),_0x46c394(0x1,_0x5ee268[_0x1a9c4c(0x386)]),_0x46c394(0x2,_0x5ee268[_0x1a9c4c(0x322)]),_0x46c394(0x3,_0x437f93[_0x1a9c4c(0x1c7)]),_0x46c394(0x4,_0x5ee268[_0x1a9c4c(0x2ff)])],_0x2bea9a);class _0x16c2fc extends _0x5ee268[_0x1a9c4c(0x4b2)]{constructor(){const _0x538bad=_0x1a9c4c;super(),_0x1328f6(this,_0x538bad(0x499)),this[_0x538bad(0x499)]=_0x56990c[_0x538bad(0x313)](window,_0x538bad(0x40d))[_0x538bad(0x246)](_0x56990c[_0x538bad(0x1da)](this[_0x538bad(0x1f6)]),_0x56990c[_0x538bad(0x54b)](0x1),_0x56990c[_0x538bad(0x23a)](void 0x0));}[_0x1a9c4c(0x421)](_0x1724a5,_0x146112,_0x1fc623=!0x1){const _0x3691fc=_0x1a9c4c,_0x44b576=new URL(window[_0x3691fc(0x367)][_0x3691fc(0x572)]);_0x44b576[_0x3691fc(0x43e)][_0x3691fc(0x26c)](_0x1724a5,_0x146112),_0x1fc623?window['history'][_0x3691fc(0x580)]('','',_0x44b576[_0x3691fc(0x2d7)]()):window['history']['pushState']('','',_0x44b576[_0x3691fc(0x2d7)]());}['removeParam'](_0x292351,_0x607492=!0x1){const _0x4c3baf=_0x1a9c4c,_0x54b1c6=new URL(window['location'][_0x4c3baf(0x572)]);_0x54b1c6['searchParams'][_0x4c3baf(0x1c8)](_0x292351),_0x607492?window[_0x4c3baf(0x1fa)][_0x4c3baf(0x580)]('','',_0x54b1c6[_0x4c3baf(0x2d7)]()):window[_0x4c3baf(0x1fa)]['pushState']('','',_0x54b1c6[_0x4c3baf(0x2d7)]());}[_0x1a9c4c(0x37c)](_0xa3717b){const _0x47a737=_0x1a9c4c;var _0x197686;return(_0x197686=new URL(window['location'][_0x47a737(0x572)])[_0x47a737(0x43e)]['get'](_0xa3717b))!=null?_0x197686:void 0x0;}}var _0x1f06d9=Object[_0x1a9c4c(0x340)],_0x18b01c=Object[_0x1a9c4c(0x541)],_0x1f1376=(_0x21da27,_0x525940,_0x1dee43)=>_0x525940 in _0x21da27?_0x1f06d9(_0x21da27,_0x525940,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1dee43}):_0x21da27[_0x525940]=_0x1dee43,_0xbb2645=(_0x1d7063,_0x1702cf,_0x43a321,_0x44cf2a)=>{const _0x168790=_0x1a9c4c;for(var _0x330576=_0x44cf2a>0x1?void 0x0:_0x44cf2a?_0x18b01c(_0x1702cf,_0x43a321):_0x1702cf,_0x28b20b=_0x1d7063[_0x168790(0x4d8)]-0x1,_0x5cafe2;_0x28b20b>=0x0;_0x28b20b--)(_0x5cafe2=_0x1d7063[_0x28b20b])&&(_0x330576=(_0x44cf2a?_0x5cafe2(_0x1702cf,_0x43a321,_0x330576):_0x5cafe2(_0x330576))||_0x330576);return _0x44cf2a&&_0x330576&&_0x1f06d9(_0x1702cf,_0x43a321,_0x330576),_0x330576;},_0x207f3c=(_0x23e884,_0x2fe42f)=>(_0x543e99,_0x6d0b5e)=>_0x2fe42f(_0x543e99,_0x6d0b5e,_0x23e884),_0x489880=(_0x2df14c,_0x2902cf,_0x38c66c)=>_0x1f1376(_0x2df14c,_0x2902cf+'',_0x38c66c);const _0x5329fc=_0x1a9c4c(0x241);_0x19f7dc[_0x1a9c4c(0x452)]=class extends _0x5ee268[_0x1a9c4c(0x202)]{constructor(_0x3ae42f=_0x552a85,_0x36cf9b,_0x272c3,_0x3095f1,_0xb6007b){const _0x449159=_0x1a9c4c;super(),this[_0x449159(0x597)]=_0x3ae42f,this['_logService']=_0x36cf9b,this[_0x449159(0x377)]=_0x272c3,this['_injector']=_0x3095f1,this[_0x449159(0x208)]=_0xb6007b;const {..._0x15f7e9}=this[_0x449159(0x597)];this[_0x449159(0x208)][_0x449159(0x319)](_0x17bae2,_0x15f7e9);}[_0x1a9c4c(0x598)](){const _0xc05d49=_0x1a9c4c;this[_0xc05d49(0x2a2)](),_0x5ee268[_0xc05d49(0x30e)](this[_0xc05d49(0x474)],[[_0x48a722],[_0x19f7dc[_0xc05d49(0x36e)]],[_0x5b2f3d]]);}[_0x1a9c4c(0x2a4)](){const _0x115919=_0x1a9c4c;_0x5ee268[_0x115919(0x30e)](this['_injector'],[[_0x537d40]]);}[_0x1a9c4c(0x4bf)](){const _0x4c90a6=_0x1a9c4c;this[_0x4c90a6(0x4a0)]();}[_0x1a9c4c(0x2a2)](){const _0x50dab2=_0x1a9c4c;var _0x5bf613,_0x1abf29,_0x3ce188,_0x46f477;this[_0x50dab2(0x474)][_0x50dab2(0x252)](_0x5ee268[_0x50dab2(0x493)])&&this[_0x50dab2(0x2a9)][_0x50dab2(0x317)](_0x50dab2(0x2b5),_0x50dab2(0x5ca));let _0x34e937=[[_0x5ee268[_0x50dab2(0x493)],{'useClass':_0x2bea9a}],[_0x19f7dc[_0x50dab2(0x569)]],[_0x94aa63],[_0x519640['HTTPService']],[_0x1be3ae,{'useClass':_0x16c2fc}],[_0xd4878c],[_0x19f7dc[_0x50dab2(0x59e)]],[_0x519640['WebSocketService']],[_0x41bd09],[_0x19e584],[_0x174d0a],[_0x3c54ae],[_0x5a9cd1],[_0x50ec40],[_0x37f911],[_0x5b2f3d],[_0x411a7c,{'useClass':(_0x1abf29=(_0x5bf613=this[_0x50dab2(0x597)])==null?void 0x0:_0x5bf613['socketService'])!=null?_0x1abf29:_0x19f7dc['CollaborationSocketService']}],[_0x519640[_0x50dab2(0x3e4)],{'useClass':_0x519640[_0x50dab2(0x2e9)]}],[_0x437f93[_0x50dab2(0x295)],{'useClass':_0x19f7dc[_0x50dab2(0x57a)]}],[_0x5ee268['IAuthzIoService'],{'useClass':_0x19f7dc[_0x50dab2(0x41f)]}],[_0x10f0dc[_0x50dab2(0x4e3)],{'useClass':_0x19f7dc[_0x50dab2(0x347)]}],[_0x19f7dc[_0x50dab2(0x554)]],[_0x19f7dc['DataLoaderController']],[_0x19f7dc[_0x50dab2(0x4de)]],[_0x537d40],[_0x48a722]];(_0x3ce188=this[_0x50dab2(0x597)])!=null&&_0x3ce188[_0x50dab2(0x529)]&&_0x34e937[_0x50dab2(0x2ee)]([_0x2c4a47,{'useClass':_0x3f784d}]),_0x34e937=_0x5ee268['mergeOverrideWithDependencies'](_0x34e937,(_0x46f477=this[_0x50dab2(0x597)])==null?void 0x0:_0x46f477[_0x50dab2(0x306)]),_0x34e937[_0x50dab2(0x506)](_0x3a0674=>this['_injector']['add'](_0x3a0674)),this[_0x50dab2(0x4c3)]();}[_0x1a9c4c(0x4a0)](){const _0x4ee305=_0x1a9c4c;this[_0x4ee305(0x337)](this[_0x4ee305(0x377)][_0x4ee305(0x3ab)](_0x5ee268[_0x4ee305(0x2f7)]['UNIVER_DOC'],[_0xfecd41])),this[_0x4ee305(0x337)](this['_renderManagerService'][_0x4ee305(0x3ab)](_0x5ee268[_0x4ee305(0x2f7)][_0x4ee305(0x498)],[_0x173209]));}[_0x1a9c4c(0x4c3)](){const _0x446158=_0x1a9c4c;var _0x5d0fc7,_0x5e0ecd;this[_0x446158(0x474)][_0x446158(0x54d)](_0x519640[_0x446158(0x544)])[_0x446158(0x1b7)]({'priority':0x14,'interceptor':_0x519640[_0x446158(0x212)]({'maxParallel':0x6})}),this[_0x446158(0x474)][_0x446158(0x54d)](_0x50ec40),(_0x5d0fc7=this[_0x446158(0x597)])!=null&&_0x5d0fc7['enableOfflineEditing']||this[_0x446158(0x474)][_0x446158(0x54d)](_0x19f7dc[_0x446158(0x59e)])[_0x446158(0x4e1)](),(_0x5e0ecd=this[_0x446158(0x597)])!=null&&_0x5e0ecd[_0x446158(0x3ae)]&&this['_injector']['get'](_0x5a9cd1),this[_0x446158(0x474)]['get'](_0x19f7dc[_0x446158(0x554)]),this['_injector']['has'](_0x19f7dc[_0x446158(0x4de)])&&this[_0x446158(0x474)]['get'](_0x19f7dc['DesktopCollaborationStatusDisplayController']);}},_0x489880(_0x19f7dc[_0x1a9c4c(0x452)],_0x1a9c4c(0x1a9),_0x5329fc),_0x19f7dc[_0x1a9c4c(0x452)]=_0xbb2645([_0x5ee268['DependentOn'](_0x437f93[_0x1a9c4c(0x35d)]),_0x207f3c(0x1,_0x5ee268[_0x1a9c4c(0x2ff)]),_0x207f3c(0x2,_0x454685['IRenderManagerService']),_0x207f3c(0x3,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268['Injector'])),_0x207f3c(0x4,_0x5ee268[_0x1a9c4c(0x422)])],_0x19f7dc[_0x1a9c4c(0x452)]),_0x19f7dc['AUTHZ_URL_KEY']=_0x33b45d,_0x19f7dc['COLLAB_SUBMIT_CHANGESET_URL_KEY']=_0x2d1c45,_0x19f7dc['COLLAB_WEB_SOCKET_URL_KEY']=_0x4684ef,_0x19f7dc[_0x1a9c4c(0x3e1)]=_0x319e47,_0x19f7dc[_0x1a9c4c(0x59b)]=_0x2e8601,_0x19f7dc[_0x1a9c4c(0x581)]=_0x37f911,_0x19f7dc['HEARTBEAT_INTERVAL_KEY']=_0x41bc7c,_0x19f7dc[_0x1a9c4c(0x555)]=_0x4d3fc9,_0x19f7dc[_0x1a9c4c(0x471)]=_0x411a7c,_0x19f7dc[_0x1a9c4c(0x29b)]=_0x1be3ae,_0x19f7dc[_0x1a9c4c(0x26a)]=_0x9bc94d,_0x19f7dc[_0x1a9c4c(0x4cf)]=_0x2e60e8,_0x19f7dc[_0x1a9c4c(0x4c6)]=_0x981892,_0x19f7dc['SEND_CHANGESET_TIMEOUT_KEY']=_0x10223c,_0x19f7dc[_0x1a9c4c(0x291)]=_0x8e4b39,_0x19f7dc[_0x1a9c4c(0x4fb)]=_0x496fb6,_0x19f7dc[_0x1a9c4c(0x559)]=_0x3477b6,_0x19f7dc[_0x1a9c4c(0x357)]=_0x2d8667,_0x19f7dc['WebURLService']=_0x16c2fc,_0x19f7dc[_0x1a9c4c(0x1b3)]=_0x580925,_0x19f7dc[_0x1a9c4c(0x42e)]=_0x28244a,Object[_0x1a9c4c(0x340)](_0x19f7dc,Symbol[_0x1a9c4c(0x57f)],{'value':_0x1a9c4c(0x2ae)});}));function _0x59d9(){const _0x4d85c9=['[CollaborationSessionService]','transformIMECache','_collabSessionService','next','serializeCombRequest','map','_updateState','_getCtorByUniverType','_exhaustRemoteChangesetQueue','/universer-api/snapshot/','LIVESHARE_REQUEST_HOST','UniverRpc','reconnect','EmptyMutation','connection\x20error','update','_stopTelemetryCollaborationNewChangeset','_clearUndo','closeSession','_setupBeforeClosingHandler','searchParams','requireSession','_redoStacks','/block/','onCommentUpdate','IPermissionService','hasOwnProperty','getWorkbookSelections','IRemoteInstanceService','unitID','csAckEvent','_httpService','_docSkeleton','_roomMembers','@univerjs/ui','toggleOnline','combineLatest','clipPath','YUUMI_SUBSCRIPTION_NOT_FOUND','call','UniverCollaborationClientPlugin','_createInitialState','some','_unlockTransition','color','OTHER_CLIENTS_EDITING','commentUpdateEvent','_getCurrentRevision','RefRangeService','getItem','unsubscribe','510MyPegW','_hideTimer','target','CONNECTOR_DATA_TOO_LARGE','Workbook','submit\x20changeset\x20error!','_id','SnapshotService','socket\x20close','rxjs','MSG_FOR_ERROR','encodeURIComponent','fromCollab','take','LOCAL_CACHE_INTERVAL','35598cJnvpC','sendChangesetTimeout','_scheduleClearOtherTimer','getAncestorScale','startTime','ICollaborationSocketService','NEW_CHANGESETS','SNAPSHOT_HAS_BEEN_REMOVED','_injector','text','startColumn','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','top','hide','newValue','@univerjs/core','CompressMutationService','YUUMI_URL_COL_OUT_OF_RANGE','5zofQXK','_instanceService','handleInsertRangeMoveDown','currentColor','defIds','displayName','APPLY_REJECT','[CollaborationEntity]','React','getUnitType','SheetsSelectionsService','ERROR_EXCEED_SIZE','INVALID_ARGUMENT','startsWith','saveSnapshot','_commandService','NOT_COLLAB','getRenderById','_notificationService','liveShareOperation','compose','IUndoRedoService','_initCloseConn','_getUploadFileURL','selections','_transformUndoredo','UNIVER_SHEET','urlChange$','transformSelections','_collaborationSessionService','PSEUDO_FETCH_MISSING_RESULT','_cursorInfo$','image/gif','makeDirty','_registerRenderDependencies','TRANSFORM_CHANGE_OBSERVABLE_TYPE','&to=','UnitEmbedded','/rev/','height','create','isInternalEditorID','_updateCollabCursors','createCollaborator','_cursorShapes','univer-pro.collaboration-client.single-active-unit-service','[OfflineState]:\x20received\x20acknowledgement.','hidden','APPLY_NON_SEQUENTIAL_REVISION','objectID','COLORS','_colorAssignService','RxDisposable','@univerjs/design','Inject','onTransformChange$','_saveCache','file','deleteCollaborator','Rectangle','_urlService','sequenceExecute','setCurrentUser','isActive','CHANGESET_REJ','onRendered','_status$','_initEventListeners','roomMembers$','_initModules','addObject','toDisposable','RETRY_CONNECTING_MAX_COUNT_KEY','UNIVER_PROJECT','_updateSubUnitFromURLParams','close','all','COLLAB_SUBMIT_CHANGESET_URL','xlink:href','handleMoveRange','beginPath','LOGIN_URL_KEY','add','_scheduleHeartbeat','#fff','sheets','onMissingChangesets','url(#on-line-single_clip0_910_349)','_transformSelections','setWaitCount','length','_sendHeartbeat','debounce','_clearCollaborationTimeoutTimer','moveTo','min','DesktopCollaborationStatusDisplayController','EffectRefRangId','unit-cache-','disableLocalCache','MergeInterceptorFactory','IImageIoService','getUnit','_clearTimeoutTimer','routeKey','_getDownloadEndpointURL','_applyRemoteChangeset','_clearScheduledTask','_listenToOfflineEvent','newCsEvent','_state$','SUBMIT_CHANGESET','UNIVER_UNKNOWN','getUnitId','YUUMI_RATE_OVER_LIMIT','getMember','HttpExport','DocIMEInputManagerService','method','UniverCore','Vector2','localeService','post','getViewport','socket$','SNAPSHOT_URL_KEY','getInterceptPoints','unload','_startTelemetryCollaborationNewChangeset','@univerjs/sheets-ui','revision','status$','gold400','onlineStatusIcon','children','_handleHeartbeatEvent','forEach','[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.','_queuedRemoteChangesets','@univerjs/drawing','InsertSheetMutation','PENDING','updateMember','setUndoRedoMutationParamsCache','startRow','skeleton','transformChangesets','updatePermissionObjEvent','ws://127.0.0.1:8000/universer-api/comb/connect','CHANGESET_ACK','/object/','UNDEFINED','_initResize','subunit','setInterval','getRelativeToViewportCoord','actions','_transformIMECache','INTERNAL_ERROR','USERS_ENTER','assign','@univerjs-pro/license','_clearLocalCache','collabCursorState$','APPLY_PERMISSION_DENIED','_awaitingChangeset','_http','_transformStack','_candidateSocket','rxjs/operators','_getSheetObject','enableSingleActiveInstanceLock','_initStatusListener','x-univer-host','workbook','/universer-api/authz','getCellPositionByOffset','m1Prime','concatMap','_acknowledgedAwaitingChangeset','171ApTIfP','indexOf','changesets','_univerInstanceService','isValidRectRange','_handleJoinEvent','readAsDataURL','sessionStatus$','handleInsertRangeMoveRight','RevisionService','key','_schedule','useCallback','operators','event$','getOwnPropertyDescriptor','_getAnchorBounding','getUnitStatus$','HTTPService','TEXT_RANGE_LAYER_INDEX','unknown','HttpImport','saveOfflineData','createIdentifier','debounceTime','shareReplay','fromEventSubject','get','UPDATE_PERMISSION_OBJ','_clearRedo','unshift','COMPLETION_FINISHED','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_decreaseWaiting','CollaborationController','HEARTBEAT_TIMEOUT_KEY','clearTimeout','setTimeout','synced','SessionStatus','SEND_CHANGESET_TIMEOUT','_entities','@univerjs-pro/collaboration','auth.needGotoLoginAlert','_localCacheService','onload','asObservable','_syncEditingCollabCursor','setShapeProps','useObservable','refreshPermission','_handleHover','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','_state','number','CollaborationSessionService','_socketMessageSubscription','engine','_startSheetCollabCursor','AWAITING','_waitForHeartbeatResponse','result','registerComponent','DisposableCollection','href','listCollaborators','onPointerMove$','textEncoder','onMouseMove','_hovered','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','collab-rect-range-','SnapshotServerOverHTTPService','conflict','offline','snapshot','updateOfflineData','toStringTag','replaceState','CommentService','random','requestParams','/unit/','UniverIcon','UniverNetwork','socket\x20open.','Shape','unitId\x20is\x20not\x20found','_onCombEvent','generateRandomId','_initStatusComponent','uni.network.url-service','_replaceFileID','isPermissionRej','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_themeService','downloadEndpointUrl','169768VqICxO','patch','tag','CONFLICT','_config','onStarting','onTransformRemoteChangesetByIMECache','_collabCursorController','CollaborationStatusDisplay','Rect','_send','LocalCacheService','not_collab','ILocalStorageService','_updateURLWithCurrentState','fetch_missing','_executeRemoteChangeset','_cachedData','pending','_textBubble','collabStatus.syncing','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getCurrentUser','/universer-api/oidc/authpage','cmd','data','_sheetSkeletonManagerService','loadSheet','onStateChange','collabStatus.conflict','DocCollaborationEntity','objectType','session.collaboration-timeout','_messageService','getCollabCursors$','[OfflineState]:\x20received\x20rejection.','getImageSourceCache','src','forwardRef','_sheetTransformSelectionsService','toggleOffline','icon','_createHandler','_selfUnitIDs','JOINING','LIVESHARE_FETCH_OPERATIONS','_retryCount','extend','_docSkeletonManagerService','_replayCachedMutations','{fileID}','collabStatus.fetchMiss','labelPosition','_getLoginPath','isArray','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_onConnectionFailed','WebSocketService','appendMutation','failed\x20to\x20apply\x20missed\x20changesets!','_singleActiveUnitService','font','action','LICENSE_IMPORT_SIZE_EXCEEDED','getTime','Error\x20on\x20receiving\x20event','state$','SheetCollaborationEntity','pluginName','_collaborationTimeoutTimer','_scene','isTransformMutationFailure','concat','[CollaborationState]:\x20apply\x20error!','_type','fillText','/collaborator','getFocusedUnit','deserializeToCombResponse','_anchor','280555ImrvKv','capture','registerHTTPInterceptor','_showConflictNotification','SNAPSHOT_INVALID_SNAPSHOT','_localStorageService','MoveRangeCommandId','awaitingChangeset','deserializeRangeWithSheet','currentTheme$','registerBeforeClose','entries','attrs','/allowed','show','[DataLoaderController]','_updateLocalCache','reject','ITransformService','delete','createSocket','_collabCursorState$','interceptor','getSheetBlock','_pendingMutations','SetDocZoomRatioOperation','svg','apply','includes','_isPermissionRej','UNKNOWN_CMD','isTransformMutationsWithChangesetSuccess','json','@univerjs/sheets','b64DecodeUnicode','3861804wWhwCt','_updateLocalCursor','takeUntil','MessageType','listRoles','_snapshotServerService','_context','_scheduleCollaborationTimeoutTimer','_collaborationController','batchAllowed','ThemeService','@univerjs/engine-formula','_change$','currentSkeleton$','onCommandExecuted','_incrementRevisionNumber','handleIRemoveRow','getCurrentRevOfUnit','collab-text-anchor-','transformUndoRedo','UNIVER_DOC','jiqing500','IBeforeCloseService','_onCursorUpdate','session','RemoveColCommandId','exhaustSavingTask','HEARTBEAT','getOffsetConfig','/universer-api/comb','dispose$','1280748cTAgMK','lineTo','updateCollaborator','history','RichTextEditingMutation','arc','merge','_snapshotService','_getMergeRange','M0\x200H16V16H0z','list','Plugin','substring','createElement','with','init','getImage','_configService','_checkMissing','from','clear','_scheduleTimestamp','conflict.content','univer-online-status','getCurrentSelections','onPointerEnter$','COMPRESS_MUTATION_APPLY','ThresholdInterceptorFactory','APPLY_REVISION_CONFILICT','dispose','c2Prime','LIVESHARE_TERMINATE','_members','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','type','[PendingState]:\x20unhandled\x20univer\x20type:\x20','ERROR_IMAGE_TYPE','permissionRejEvent','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','unit','collab-client.tooltip.reconnect','doc.mutation.rich-text-editing','_removeClearOtherTimer','updatePermissionPoint','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','sheetId','ColorKit','black','status','width','isTransformMutationsWithChangesetFailure','distinctUntilChanged','unitId','reduce','reverse','_scheduleSaving','_event$','setActiveRange','/-/object/-/batch_allowed','_retryConnectingTimer','RegularPolygon','mutations','_color','isTransformChangesetsSuccess','_handleEvent','Disposable','mapDocumentTypeToUniverType','mapTo','onRemoteAck','drawWith','_submitChangeset','row','getUnhiddenWorksheets','collabStatus.offline','UNIVER_COLLABORATION_CLIENT_PLUGIN','FETCH_MISS','_localeService','delay','_onRemoteACK','pipe','image/bmp','IDLE','c1Prime','/universer-api/file/{fileID}/sign-url','infoRsp','HELLO','transformMutation','UNIVER_SLIDE','collaboration.closeRoom','transformMutationsWithChangeset','\x20in\x20_schedule.','has','_onConnectionOpen','onSendChangeset','LICENSE_EXPORT_SIZE_EXCEEDED','CollaborationEntity','now','\x0aCurrent:\x20','univer-online-status-icon','LocaleService','PERMISSION_DENIED','fillRule','_onRemoteRejected','INotificationService','executeCommand','propertyIsEnumerable','originalMeta','_heartbeatTimer','defs','WorkbookEditablePermission','getSheetBySheetId','_setupSubUnitSync','getActiveSheet','getCurrent','ImageUploadStatusType','LOCAL_CACHE_INTERVAL_KEY','UNRECOGNIZED','set','UniverCollaboration','SetTextSelectionsOperation','resend','[OfflineState]:\x20received\x20changeset.','JOIN','getMergeData','string','[SyncedState]:\x20received\x20acknowledgement.','awaiting_with_pending','\x20to\x20','Tools','_undoRedoService','/universer-api/stream/file/upload','getSkeleton','#FFF','error$','_anchorDot','_ws','close$','_sendHeartbeatTimer','RETRY_CONNECTING_MAX_COUNT','_syncEditingCollabCursorService','duration','UniverUi','_permissionService','HEARTBEAT_TIMEOUT','HEARTBEAT_INTERVAL','USERS_LEAVE','handleInsertCol','SUCCUSS','_updateStatus','fetchMissingChangesets','UPDATE_CURSOR','getOwnPropertySymbols','_refreshCollabCursors','&assign=','SNAPSHOT_SERVER_URL_KEY','_sendingTimer','Tooltip','DeleteRangeMoveUpCommandId','ISnapshotServerService','_docTransformIMECacheService','749907tOhssI','/new_changes','UniverSheets','_session','IURLService','then','UniverTelemetry','_clearOtherTimers','textRanges','_toggleOffline','filter','_registerDependencies','_range','onReady','split','storage','_clearHeartbeatTimer','loadDoc','_logService','selection','onRemoteChangeset','_removeRoom','FileId','Module','univer-online','visibilitychange','COMPRESS_MUTATION_SEND','memberID','_lockTransition','resolve','[UniverCollaborationClientPlugin]','_handler','visibilityState','_listenToOnlineEvent','m2Prime','addEventListener','getTypeOfUnitAdded$','none','use','LICENSE_MAX_UNITS_EXCEEDED','find','prototype','Optional','max','VIEW_MAIN','UniverDocs','CollaborationEvent','parseProtocolChangeset','[CollaborationUndoRedoService]','shouldCloseConn','setItem','_ensureSubject','IMessageService','round','path','@univerjs/telemetry','onSyncEditingCollabCursor','_imageSourceCache','_docTransformSelectionsService','univer-offline','debug','session.will-retry','getCoordByCell','state','toString','_waitCount','uploadFileServerUrl','getTypeOfUnitDisposed$','onTransformSelections','LEAVE','createInstance','UNAUTHENTICATED','_transformService','_substituteRedoStack','_unitID','UnitSnapshot','_transformRemoteChangesetByIMECache','cursorInfo$','url','_getRedoStack','purple300','207bGvamB','XHRHTTPImplementation','[CollaborationSession]','subscribeEvent','_uiPartsService','UNKNOWN_CODE','push','collabWebSocketUrl','_socket','collabSubmitChangesetUrl','_unitOnClients','_unitStatus','on-line-single','PERMISSION_REJ','sessionStatus','UniverInstanceType','loadOfflineData','snapshotServerUrl','_getAPIPrefixPath','on-line-single_clip0_910_349','getValue','_drawTextRange','useDependency','ILogService','_throwTelemetryCollaborationNewChangeset','stringify','online','getUndoRedoMutationParamsCache','OFFLINE','getRangePointData','override','NodePositionConvertToCursor','exports','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','complete','Undefined','FAIL','_getSaveTimeout','touchDependencies','_getAPIPrefix','removeMember','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_initMergeInterceptor','fromEvent','range','_compressMutationService','_loadSheet','error','_getSendChangesetTimeout','setConfig','Unknown\x20user','off-line-single_clip0_910_343','fill','MUTATION','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','collabStatus.synced','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','SetWorksheetActivateCommand','IContextService','handleIRemoveCol','DocSkeletonManagerService','?size=','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','react','_onUserLeave','replace','_socketReady','name','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','ImageSourceType','UserManagerService','7655568NJtFNb','UniverLicense','clearInterval','INGEST','syncEditingCollabCursor','trim','/universer-api/snapshot','editingUnit','disposeWithMe','deepClone','JSONX','triggerDblclick','permission.content','_createSocket','_memberService','restore','fetching\x20missing\x20changesets\x20from\x20','defineProperty','12NPLdYA','_initCommandExecutedListener','every','connectInjector','collaboration_new_changeset','sheetID','ImageIoService','image/jpeg','CHANGESET_REVISION_CONFILICT','LIVESHARE_NEW_HOST','_fetchMissChangesets','UUID','_onRecvEvent','TOO_MANY_REQUESTS','measureText','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','initWorkbookPermissionChange','_cursors','symbol','ERROR_IMAGE','transformRemoteChangeset','_onCursorDelete','SheetCollabCursorShape','UniverSheetsUi','permission.title','_onLocalMutation','liveShareNewHost','_rescheduleHeartbeat','UniverCollaborationPlugin','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_name','_getScale','ranges','CollaborationSocketService','fetchMiss','toRgbString','_handleLeaveEvent','colorChannel1','location','_transitionLocked','BuiltInUIPart','_refRangeService','_tryEnsureSocket','_sessionStatus$','collaboration-session-retry','DataLoaderController','@univerjs/engine-render','switchMap','UniverDesign','getCollabEntity','signUrlServerUrl','_joinRoom','ALREADY_EXISTS','values','_renderManagerService','getDocRanges','UniverEngineFormula','_substituteUndoStack','getResourcesRequest','getParam','_collaborationPaused','13vSPLZo','confirm','_getUndoStack','ACTIVE_UNIT_EVENT_CHANNEL','_socketService','handleDeleteRangeMoveLeft','CollaborationSession','_onUserJoin','ICommandService','_removeCollabCursors','?url=','FETCH_MISSING','_init','getCurrentUnitForType','...','_entityInit$','code','onRemoteRej','COMMENT_UPDATE','[PendingState]:\x20received\x20acknowledgement.','evenodd','_transformUndoRedoStack','_onOffline','onPointerLeave$','getSheetId','baseRev','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','ONLINE','IUniverInstanceService','_startDocCollabCursor','UniverCollaborationClient','serializeRangeWithSheet','_render','@univerjs/docs-ui','_getSignURL','_commentService','resize','RECV','HTTPRequest','roomMembers','getConfig','subscribe','_initRequestHeader','1em','_roomMembers$','registerRenderModule','copyFileMeta','enableLocalCache','enableAuthServer','_revisionService','_shouldReportTelemetry','@univerjs/rpc','_loadDoc','isEditing','_HTTPService','_draw','onTransformIME','_transformPreviousActiveRange','LocalUndoRedoService','_initUnitPermissionChange','session.connection-failed','disposeUnit','getColor','BASE64','Subject','_online','FromArray','conflict.title','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','onlineStatus','Warning','session.room-full','fetchThroughInterceptors','_disableEditing','fillStyle','_getSnapshotAPIPrefix','CommandType','LIVESHARE_OPERATION','_sessions','size','closePath','_createInitialStateImpl','_toggleOnline','DocSelectionManagerService','BehaviorSubject','NOT_FOUND','_backgroundColor','_hover','SYNCED','endRow','SheetPermissionInitController','collab-text-range-','userID','title','column','stopTime','_shapes','_onRefRangeChange','CollaborationStatus','@univerjs/network','_socket$','IHTTPImplementation','collaboration-client.config','getSheetObject','params','findNodePositionByCharIndex','_colorIndex','div','headers','registerOnClose','assignAColorForMemberID','univerjs-icon\x20univerjs-icon-','POST','_startCollaboration','objects','getMemberID','collabStatus.notCollab','_onMessage','_userManagerService','AWAITING_WITH_PENDING','_remoteChangesetQueue','parse','eventID','message$','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_onJoinRoomEvent','getCollabEntity$','_docStateChangeManagerService','\x20-\x20','idSuffix','save','body','_cursor','className','_eventUnsubscribe','save\x20fail\x20reason\x20is\x20','_saveTaskMap','SetSelectionsOperation','_telemetryInfo','cursorInfo','hovered','registerRefRange','popstate','current','onlineStatusTitle','roles','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','red300','_docSyncEditingCollabCursorService','_onConflict','YUUMI_UNABLE_LOAD_URL','_onFetchMissResult','_commentUpdate$','Injector','_timeoutTimer','runRefRangeMutations','getUnitOnRev','bottom','DEFAULT_FILE_NAME','_assignedColors','AuthzIoHttpService','send','setParam','IConfigService','Error','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_disabled','object','_lastPointer','_telemetryService','_beforeCloseService'];_0x59d9=function(){return _0x4d85c9;};return _0x59d9();}