@univerjs-pro/collaboration-client 1.0.0-alpha.6 → 1.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +6 -0
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +3 -4
- package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +8 -5
- package/lib/types/index.d.ts +2 -3
- package/lib/types/services/attachment-remote/attachment-io.service.d.ts +9 -4
- package/lib/types/services/attachment-remote/types.d.ts +2 -19
- package/lib/types/services/member/member.service.d.ts +2 -15
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -14
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1420(_0x4f9d18,_0x344777){_0x4f9d18=_0x4f9d18-0xca;const _0x59a06e=_0x59a0();let _0x1420e1=_0x59a06e[_0x4f9d18];return _0x1420e1;}function _0x59a0(){const _0x3f6eee=['_onRemoteRejected','_rescheduleHeartbeat','resolve','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','push','objectType','RETRY_CONNECTING_MAX_COUNT','_onRecvEvent','SessionStatus','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','state','CollaborationUIEventId','UNIVER_BASE','getDeserializedSheetBlock','entries','unknown','updateCollaborator','LIVESHARE_TERMINATE','_getCurrentRevision','isCompositionEnd','routeKey','setConfig','/fetchmissing?from=','loadSlide','_onFetchMissResult','unitId','getValue','getCurrentRevOfUnit','URL','snapshot','connection\x20error','getUnit','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','\x20-\x20','_socket','updateOfflineData','_onConnectionOpen','cmd','downloadEndpointUrl','complete','values','UnitEmbedded','b64DecodeUnicode','BoardCollaborationEntity','update','rxjs','getUploadOptions','session.room-permission-denied','USERS_LEAVE','range','UNIVER_SLIDE','COMMENT_UPDATE','number\x20expected,\x20got\x20','_getUploadFileURL','JOIN_ROOM_FAILED','Error\x20on\x20receiving\x20event','ERROR_IMAGE','CONFLICT','pending','_memberService','_onCombEvent','LocalUndoRedoService','_HTTPService','readyForCollab','\x0aAfter:\x20','findIndex','fromCharCode','RECV','_schedule','unitInfo$','People','varSizeNonce','toStringTag','IImageIoService','getInterceptPoints','CLOSE_ROOM','_unlockTransition','nonceLength','_event$','DocStateChangeManagerService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','GLOBAL_ROOMS_CNT_EXCEEDS','_sessions','AttachmentSourceType','getSnapshotAPIPath','SOCKET_FAILED_RETRY','SYNCED','mutations','uuidv4','MergeInterceptorFactory','cfgEnableObjInherit','init','_members$','type=','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','getUnitOnRev','_resendWithTimeout','_collaborationSessionService','CHANGESET_ACK','unitType','byteOffset','resend','tagLength','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','AuthzIoHttpService','ILogService','_change$','_onRemoteRetry','_permissionService','CollaborationSessionService','Plugin','_waitCount','CollaborationSession','removeMember','toLocal','offline','_isEchoedAwaitingChangeset','@univerjs/sheets','_univerInstanceService','_onLocalMutation','CompressMutationService','@univerjs/core','patch','LIVESHARE_REQUEST_HOST','OFFLINE','onTransformIME','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','?size=','ISnapshotServerService','startTime','LIVESHARE_OPERATION','CommentService','_roomCreated$','message$','_commandService','subscribe','/rev/','PENDING','NEW_CHANGESETS','createInstance','_roomMembers','map','/allowed','next','status','getSheetBlock','@univerjs-pro/license','__splitChunk__','socketService','_compressMutationService','rxjs/operators','\x20in\x20_schedule.','prototype','/-/object/list','INetworkConditionService','snapshotServerUrl','OfflineState','COLLABORATION_ENDPOINT_INVALID','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','SUCCUSS','ErrorCode','\x20of\x20length\x20','changesets','IUndoRedoService','CHANGESET_REJ','_onOffline','collaMsg','[CollaborationSession]','onTransformSelections','m2Prime','_upload','_scheduleCompleteTimestamp','parseProtocolChangeset','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','univer-pro.collaboration-client.network-condition.service','JOIN_ROOM_PERMISSION_DENIED','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','docStateChange$','_getLoginPath','RETRY_CONNECTING_MAX_COUNT_KEY','DisposableCollection','_redoStacks','putCollaborators','_collaborationPaused','getActiveSheet','listRoles','98870IOqqfH','members$','&assign=','_tryReconnect','list','MSG_FOR_ERROR','Inject','collaboration-client.local-cache-service','onCommentUpdate','incrementRevOfUnit','append','_entities','status$','IPermissionService','base-ui.attachment-io.service','[OfflineState]:\x20received\x20acknowledgement.','transformStack\x20failed!','collabWebSocketUrl','getFocusedUnit','PERSON','csShouldRetryEvent','getTypeOfUnitAdded$','disposeWithMe','_httpService','CmdRspCode','_pendingMutations','state$','name','MemberService','packageName','HEARTBEAT','[FetchMissState]','endsWith','ERROR_EXCEED_SIZE','copyFileMeta','maxSize','stringify','_submitChangeset','MentionIoHttpService','save\x20fail\x20reason\x20is\x20','@univerjs/drawing','splice','CollaborationEvent','action','liveShareNewHost','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_clearUndo','_clearRedo','getUnitId','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','online$','getMember','_updateState','/new_changes','EnsureSlideMasterPageMutation','ImageUploadStatusType','sendHeartbeatTimer','createCollaborator','LIVESHARE_NEW_HOST','UniverInstanceType','function','reconnect','isInternalEditorID','Injector','data','Quantity','UUID','generateRandomId','some','members','merge','HTTPRequest','42wgzfkO','readAsDataURL','loadDoc','HELLO','[PendingState]:\x20received\x20rejection.','isTransformChangesetsSuccess','_syncEditingCollabCursor','requireSession','_createHandler','invalid\x20output,\x20must\x20be\x20aligned','_registerDependencies','floor','length','NO_OTHER_CLIENTS_EDITING','SnapshotService','debug','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getUnitType','ILocalCacheService','fromCollab','UNIVER_BOARD','_getAPIPrefix','requestParams','onRemoteAck','isTransformMutationsWithChangesetSuccess','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getRoom','SyncedState','[DataLoaderService]','@univerjs/protocol','getCurrentSelections','_shouldReportTelemetry','registerHTTPInterceptor','sort','symbol','fetchMiss','DataLoaderService','_state$','UniverCollaborationClientPlugin','url','deepClone','_getSocketChannel','HEARTBEAT_INTERVAL','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','responseType','takeUntil','FileId','LocaleService','CollaborationImageIoService','onlyLocal','not_collab','_getAPIPrefixPath','buffer','HEARTBEAT_TIMEOUT','error$','pauseCollaboration','revision','_handleRemoteChangesets','_onConnectionFailed','_decreaseWaiting','joinEvent','endpointKey','nonce','_init','onRemoteRej','_startTelemetryCollaborationNewChangeset','_collaborationTimeoutTimer','includes','getTime','RxDisposable','hasOwnProperty','set','onRemoteChangeset','_transformRemoteChangesetByStateCache','_disableEditing','delay','batchAllowed','params','createIdentifier','_sendingTimer','has','1.0.0-alpha.6','UniverProCollaboration','_lockTransition','getDrawingImageAllowSize','updateSnapshot','_revisionService','_sessionChannels','LOCAL_CACHE_INTERVAL_KEY','subject','subUnitId','ISocketService','onSyncEditingCollabCursor','awaiting','HEARTBEAT_INTERVAL_KEY','string\x20expected','_snapshotService','objects','sheets','Failed\x20to\x20update\x20permission\x20point','OTHER_CLIENT_EDITING','crypto.getRandomValues\x20must\x20be\x20defined','_transformSelections','number','mergeOverrideWithDependencies','saveAttachment','getUnitStatus$','_collaborationUIEventService','COMPRESS_MUTATION_SEND','isSafeInteger','fetch_missing','UniverNetwork','pipe','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','getResourcesRequest','enableAuthServer','CHANGESET_SHOULD_RETRY','setWaitCount','columnGroups','_applyRemoteChangeset','_transformRemoteChangesetByIMECache','setCfgEnableObjInherit','encodeURIComponent','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','DEFAULT_COLLAB_WEB_SOCKET_URL','setCurrentUser','UPDATE_PERMISSION_OBJ','filter','univer-pro.collaboration-client-adapter-service','result','CollaborationSocketService','createUniverCollaborationAdapter','reject','c2Prime','transformUndoRedo','_unitLoaded$','IAttachmentIoService','unsubscribe','post','userID','_handler','_onUserLeave','permissionRejEvent','Module','[SyncedState]:\x20received\x20rejection.','toString','textRanges','changeset','_maxTotalRetryTimeout','_transformAndApplyRemoteChangeset','/-/object/-/batch_allowed','session.room-full','missingChangesets','/object','ImageSourceType','_handlerCallback','univer-pro.collaboration-client.single-active-unit-service','telemetry\x20info\x20is\x20not\x20initialized','compose','_transformService','slice','add','getCollabEntity$','_initMergeInterceptor','getCollabEntity','every','_config','_telemetryInfo','onload','_toggleOffline','_adapter','/universer-api/file/{fileID}/sign-url','close','candidateSocket','_initUnitPermissionChange','SUBMIT_CHANGESET','socket\x20close','UniverNetworkPlugin','socketReady','CollaborationUIEventService','selections','_executeRemoteChangeset','SheetsSelectionsService','Wrong\x20sbox\x20length','_socketMessageSubscription','PERMISSION_REJ','ISingleActiveUnitService','collaboratorID','send','_sendHeartbeat','_checkMissing','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','/resources','retryConnectingTimer','_cfgEnableObjInherit','_updateStatus','_exhaustRemoteChangesetQueue','isPermissionRej','_createSocket','onMutationExecutedForCollab','[PendingState]:\x20received\x20acknowledgement.','collaboration-client.config','Rectangle','transformMutationsWithChangeset','timeoutTimer','collabSubmitChangesetUrl','location','session.room-cnt-exceeds','CollaborationStatus','_socketChannels','UniverProtocol','override','interceptor','file','CombCmd','SheetCollaborationEntity','_sheetTransformSelectionsService','COMPRESS_MUTATION_APPLY','_localCacheService','_transformStack','dispose$','getSheetId','awaiting_with_pending','executeCommand','IConfigService','getConfig','unit','conflict','SetSelectionsOperation','upload','retryCount','_joinRoom','DEFAULT_WS_SESSION_TICKET_URL','CollaborationEntity','_acknowledgedAwaitingRevision','collaborators','serializeCombRequest','_listenToNetworkCondition','isView','decrypt','joinRsp','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_logService','_tryEnsureSocket','origin','eventID','ThresholdInterceptorFactory','@univerjs/docs','_fetchMissChangesets','updatePermissionPoint','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','memberID','_createSession','getLocalCacheKey','get','workbook','touchDependencies','SNAPSHOT_URL_KEY','4553464ClJtLJ','_hasSessionsForEndpoint','UniverProLicense','_getSignURL','_state','_throwTelemetryCollaborationNewChangeset','collaboration_new_changeset','actions','_showConflictNotification','_removeRoom','_clearLocalCache','_onMessage','_identity','[PendingState]:\x20unhandled\x20univer\x20type:\x20','text-x','_commentService','authzUrl','IDLE','take','_onRemoteACK','tables','_undoRedoService','roles','awaitingChangeset','MentionType','reduce','_getDownloadEndpointURL','attachment','_incrementRevisionNumber','_substituteRedoStack','ITransformService','trim','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','resolveUnit','disablePadding','1056627rMVwQP','_pendingSessions','_replaceFileID','HEARTBEAT_TIMEOUT_KEY','_remoteChangesetQueue','_resolveSessionIdentity','ONLINE','liveShareOperation','getGlobalObject','_substituteUndoStack','JOINING','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','_sender','AWAITING_WITH_PENDING','hostname','roomInfos','UniverProCollaborationClient','_getRedoStack','[CollaborationSessionService]','_clearRetryConnectingTimer','constructor','JOIN','_resendTimeout','operators','WorkbookEditablePermission','_createInitialStateImpl','session','_getSendChangesetTimeout','LIVESHARE_FETCH_OPERATIONS','objectID','_members','@univerjs-pro/slides','AwaitingState','SUBMIT_CHANGESET_TIMEOUT','size','_awaitingChangeset','emitEvent','method','createSocket','create','code','put','_initDependencies','_localeService','RevisionService','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','_transformIMECache','waitForRoom$','find','listCollaborators','fetchMissingChangesets','UniverDocs','_commentUpdate$','byteLength','RichTextEditingMutation','/object/','_transformStateCache','reqId','Univer','session.join-failed','OPTIONAL','transformChangesets','UniverDrawing','/universer-api/stream/file/upload','reverse','[SyncedState]:\x20received\x20acknowledgement.','target','_imageSourceCache','length=','appendMutation','toDisposable','_initCloseConn','from','onRemoteRetry','iterator','getCurrentUser','_startCollaboration','decorate','CommandType','FAIL','_sessionStatus$','amd','_waitForHeartbeatResponse','version','_configService','toggleOffline','getImageSourceCache','enableSingleActiveInstanceLock','mapDocumentTypeToUniverInstanceType','isArray','SheetTransformSelectionsService','title','closeSession','JSONX','refreshPermission','Optional','24958UhKPxg','IUniverInstanceService','toPrimitive','[CollaborationEntity]','IAuthzIoService','UNIVER_SHEET','@univerjs/network','{fileID}','localCacheService','UnitStatus',',\x20got\x20','headers','/role','/collaborator','3508176xkHzbq','UNIVER_DOC','onSendChangeset','SOCKET_FAILED','PERMISSION_DENIED','/universer-api/snapshot','_status$','clear','crypto','min','DRAWING_IMAGE_ALLOW_IMAGE_LIST','onTransformState','2601ODSbSD','resourceIDs','baseRev','_isPermissionRej','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','parseChangesetToProtocol','sequenceExecute','unitId\x20is\x20not\x20found','Subject','UPDATE_CURSOR','encrypt','RemoveSlidePageMutation','call','BehaviorSubject','ICommandService','collaboration-client.auth.needGotoLoginAlert','Disposable','_snapshotServerService','USERS_ENTER','OTHER_CLIENTS_EDITING','2511880OUqYEc','getMemberID','INGEST','UniverLicensePlugin','@univerjs/telemetry','string','confirm','defineProperty','infoRsp','&source=','_clearHeartbeatTimer','textEncoder','SlideCollaborationEntity','_undoStacks','_onConflict','UniverTelemetry','@univerjs-pro/collaboration','uniscriptRunEvent','delete','enableCollaboration','\x20to\x20','saveSnapshot','_unitInfo$','_telemetryService','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','_clearCollaborationTimeoutTimer','UniverProSlides','socketMessageSubscription','_acknowledgeAwaitingIfReady','concatMap','_initRequestHeader','accept','_collabSessionService','parse','now','CollaborationController','_userManagerService','avatar','/unit/','onLocalMutation','getTypeOfUnitDisposed$','PendingState','LOCAL_CACHE_INTERVAL','Uint8Array','addHandlerCallback','getRandomValues','indexOf','onTransformRemoteChangesetByIMECache','_updateLocalCache','\x0aCurrent:\x20','error','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','FETCH_MISSING','_instanceService','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','transformSelections','catch','originalMeta','session.room-not-exists','isTransformMutationsWithChangesetFailure','_getUndoStack','retryConnectingInterval','registerDependencies','ERROR_IMAGE_TYPE','_clearTimeoutTimer','entityInit$','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','sessionStatus','_changesetSessionId','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','fetchThroughInterceptors','EmptyMutationInfo','stopTime','onMissingChangesets','_resendTimer','close$','SHOULD_CLOSE_CONN','type','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','c1Prime','asObservable','_getCtorByUniverInstanceType','newCsEvent','max','positive\x20integer\x20expected,\x20got\x20','_transitionLocked','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','getWorkbookSelections','leaveEvent','fetching\x20missing\x20changesets\x20from\x20','dispose','disableLocalCache','/universer-api/uniscript','loadBoard','_networkConditionService','_docStateChangeManagerService','localUnitId','/universer-api/oidc/authpage','uploadFileServerUrl','IMentionIOService','JOIN_ROOM_FULL','_changesetReqId','localeService','sid','_socketService','_transformUndoredo','submit\x20changeset\x20error!','_onJoinRoomEvent','enableOfflineEditing','FileSource','output','toggleOnline','NOT_COLLAB','onTransformRemoteChangesetByStateCache','/universer-api/authz','updateMember','unitLoaded$','loadUnitOfRevision','_entityInit$','body','synced','BYTES_PER_ELEMENT','_clearScheduledTask','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','csRejEvent','startsWith','onStateChange','_acknowledgeAwaiting','onMissedChangesetFetched','loadOfflineData','endpoint','?url=','HTTPService','_getConfig','_toggleOnline','object','unitID','3327468yfhUJI','7qwCGqa','setShowComponents','_singleActiveUnitService','event$','BASE64','sessionStatus$','_type','pluginName','encode','saveChangeset','/block/','MoveSlidePageMutation','sendChangesetTimeout','[CollaborationUndoRedoService]','MUTATION','PSEUDO_FETCH_MISSING_RESULT','shouldCloseConn','_queuedRemoteChangesets','_injector','socket$','toRemote','_emitMembers','forEach','subarray','_eventService','saveImage','_onRemoteChangeset'];_0x59a0=function(){return _0x3f6eee;};return _0x59a0();}(function(_0x4f22db,_0x5404d7){const _0xccef8f=_0x1420,_0xeca711=_0x4f22db();while(!![]){try{const _0x274cca=-parseInt(_0xccef8f(0x409))/0x1*(-parseInt(_0xccef8f(0x234))/0x2)+parseInt(_0xccef8f(0x1d4))/0x3+parseInt(_0xccef8f(0x1b1))/0x4+parseInt(_0xccef8f(0x262))/0x5+parseInt(_0xccef8f(0x2eb))/0x6+-parseInt(_0xccef8f(0x2ec))/0x7*(-parseInt(_0xccef8f(0x242))/0x8)+parseInt(_0xccef8f(0x24e))/0x9*(-parseInt(_0xccef8f(0x3c1))/0xa);if(_0x274cca===_0x5404d7)break;else _0xeca711['push'](_0xeca711['shift']());}catch(_0x598f5c){_0xeca711['push'](_0xeca711['shift']());}}}(_0x59a0,0x9f61a),function(_0xf3bf87,_0x3b88b5){const _0x1e1bd6=_0x1420;typeof exports==_0x1e1bd6(0x2e9)&&typeof module<'u'?_0x3b88b5(exports,require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x1e1bd6(0x3fd)&&define[_0x1e1bd6(0x225)]?define(['exports',_0x1e1bd6(0x272),_0x1e1bd6(0x380),_0x1e1bd6(0x1a6),_0x1e1bd6(0x37c),_0x1e1bd6(0x334),_0x1e1bd6(0xcc),_0x1e1bd6(0x266),_0x1e1bd6(0x39d),_0x1e1bd6(0x1f3),_0x1e1bd6(0x23a),_0x1e1bd6(0x399),_0x1e1bd6(0x3e9)],_0x3b88b5):(_0xf3bf87=typeof globalThis<'u'?globalThis:_0xf3bf87||self,_0x3b88b5(_0xf3bf87[_0x1e1bd6(0x1e4)]={},_0xf3bf87[_0x1e1bd6(0x101)],_0xf3bf87['UniverCore'],_0xf3bf87[_0x1e1bd6(0x207)],_0xf3bf87['UniverSheets'],_0xf3bf87[_0x1e1bd6(0x334)],_0xf3bf87[_0x1e1bd6(0x181)],_0xf3bf87[_0x1e1bd6(0x271)],_0xf3bf87[_0x1e1bd6(0x334)][_0x1e1bd6(0x1eb)],_0xf3bf87[_0x1e1bd6(0x27c)],_0xf3bf87[_0x1e1bd6(0x11e)],_0xf3bf87[_0x1e1bd6(0x1b3)],_0xf3bf87[_0x1e1bd6(0x212)]));}(this,function(_0x79aec8,_0x149d12,_0x47f753,_0x459006,_0x1e2709,_0x470009,_0x26a654,_0x32d36d,_0x5ba228,_0x40163b,_0x8f2da5,_0x4326e6,_0x5d9de4){const _0x27b931=_0x1420;Object['defineProperty'](_0x79aec8,Symbol[_0x27b931(0x34f)],{'value':_0x27b931(0x13e)});let _0x3c17be=_0x27b931(0x178),_0xa759f3={},_0x5f4f64='ws://127.0.0.1:8000/universer-api/comb/connect',_0x1dfc3f=0x4e20;function _0x378d76(_0x568036){const _0x10c551=_0x27b931;return JSON['stringify'](_0x568036)[_0x10c551(0x415)];}function _0x53ca1f(_0x443e56){'@babel/helpers - typeof';const _0x8e961b=_0x27b931;return _0x53ca1f=typeof Symbol=='function'&&typeof Symbol[_0x8e961b(0x21e)]==_0x8e961b(0xd1)?function(_0x211581){return typeof _0x211581;}:function(_0x1a99ba){const _0x96793a=_0x8e961b;return _0x1a99ba&&typeof Symbol=='function'&&_0x1a99ba[_0x96793a(0x1e8)]===Symbol&&_0x1a99ba!==Symbol[_0x96793a(0x39f)]?'symbol':typeof _0x1a99ba;},_0x53ca1f(_0x443e56);}function _0x314c9f(_0x4f11ac,_0x4800ec){const _0x17f180=_0x27b931;if(_0x53ca1f(_0x4f11ac)!=_0x17f180(0x2e9)||!_0x4f11ac)return _0x4f11ac;var _0x5f4e1f=_0x4f11ac[Symbol[_0x17f180(0x236)]];if(_0x5f4e1f!==void 0x0){var _0x14dabf=_0x5f4e1f[_0x17f180(0x25a)](_0x4f11ac,_0x4800ec||'default');if(_0x53ca1f(_0x14dabf)!=_0x17f180(0x2e9))return _0x14dabf;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4800ec===_0x17f180(0x267)?String:Number)(_0x4f11ac);}function _0x1bd536(_0x8a9a56){const _0x758d9d=_0x27b931;var _0x4aeeb9=_0x314c9f(_0x8a9a56,_0x758d9d(0x267));return _0x53ca1f(_0x4aeeb9)=='symbol'?_0x4aeeb9:_0x4aeeb9+'';}function _0x2dd74e(_0x32913c,_0x3b4252,_0x136e74){return(_0x3b4252=_0x1bd536(_0x3b4252))in _0x32913c?Object['defineProperty'](_0x32913c,_0x3b4252,{'value':_0x136e74,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x32913c[_0x3b4252]=_0x136e74,_0x32913c;}let _0x204edc=function(_0x4db85f){const _0xfe7ed6=_0x27b931;return _0x4db85f[_0xfe7ed6(0x113)]='OTHER_CLIENT_EDITING',_0x4db85f[_0xfe7ed6(0x246)]=_0xfe7ed6(0x246),_0x4db85f[_0xfe7ed6(0x340)]='CONFLICT',_0x4db85f[_0xfe7ed6(0x352)]=_0xfe7ed6(0x352),_0x4db85f[_0xfe7ed6(0x33d)]=_0xfe7ed6(0x33d),_0x4db85f[_0xfe7ed6(0x35c)]='SOCKET_FAILED_RETRY',_0x4db85f['SOCKET_FAILED']=_0xfe7ed6(0x245),_0x4db85f['SUBMIT_CHANGESET_TIMEOUT']=_0xfe7ed6(0x1f5),_0x4db85f;}({});var _0x2a71d9=class{constructor(){const _0x5864ce=_0x27b931;_0x2dd74e(this,_0x5864ce(0x355),new _0x470009['Subject']()),_0x2dd74e(this,_0x5864ce(0x2ef),this[_0x5864ce(0x355)]['asObservable']());}[_0x27b931(0x1f8)](_0x10a53e){const _0x3d4175=_0x27b931;this[_0x3d4175(0x355)][_0x3d4175(0x396)](_0x10a53e);}},_0x101a15=class{constructor(){const _0x19f1ca=_0x27b931;_0x2dd74e(this,_0x19f1ca(0x208),new _0x470009[(_0x19f1ca(0x256))]()),_0x2dd74e(this,'commentUpdate$',this[_0x19f1ca(0x208)]['asObservable']());}[_0x27b931(0x3c9)](_0x4e0a95){const _0x6d326e=_0x27b931;this['_commentUpdate$'][_0x6d326e(0x396)](_0x4e0a95);}};function _0x2af294(_0x49a262,_0x4b23ed){return function(_0x5b6c9b,_0x101c5c){_0x4b23ed(_0x5b6c9b,_0x101c5c,_0x49a262);};}function _0x1fb4c2(_0x42787d,_0x6cb102,_0xf51705,_0x4ba2d0){const _0x103adc=_0x27b931;var _0x1575bb=arguments[_0x103adc(0x415)],_0x472b88=_0x1575bb<0x3?_0x6cb102:_0x4ba2d0===null?_0x4ba2d0=Object['getOwnPropertyDescriptor'](_0x6cb102,_0xf51705):_0x4ba2d0,_0x12e7e1;if(typeof Reflect==_0x103adc(0x2e9)&&typeof Reflect[_0x103adc(0x221)]==_0x103adc(0x3fd))_0x472b88=Reflect[_0x103adc(0x221)](_0x42787d,_0x6cb102,_0xf51705,_0x4ba2d0);else{for(var _0x51cefb=_0x42787d['length']-0x1;_0x51cefb>=0x0;_0x51cefb--)(_0x12e7e1=_0x42787d[_0x51cefb])&&(_0x472b88=(_0x1575bb<0x3?_0x12e7e1(_0x472b88):_0x1575bb>0x3?_0x12e7e1(_0x6cb102,_0xf51705,_0x472b88):_0x12e7e1(_0x6cb102,_0xf51705))||_0x472b88);}return _0x1575bb>0x3&&_0x472b88&&Object['defineProperty'](_0x6cb102,_0xf51705,_0x472b88),_0x472b88;}let _0x541d7d=class extends _0x47f753[_0x27b931(0x25e)]{constructor(_0x53b271,_0x56cf77){const _0x30c3c7=_0x27b931;super(),this[_0x30c3c7(0x37d)]=_0x53b271,this[_0x30c3c7(0x286)]=_0x56cf77,_0x2dd74e(this,_0x30c3c7(0x393),new Map()),_0x2dd74e(this,_0x30c3c7(0x38b),new _0x470009['Subject']()),this['disposeWithMe']((0x0,_0x470009['merge'])(this[_0x30c3c7(0x37d)]['getTypeOfUnitDisposed$'](_0x47f753[_0x30c3c7(0x3fc)][_0x30c3c7(0x239)])[_0x30c3c7(0x11f)]((0x0,_0x5ba228['map'])(_0x351e64=>_0x351e64['getUnitId']())),this[_0x30c3c7(0x37d)][_0x30c3c7(0x28a)](_0x47f753[_0x30c3c7(0x3fc)]['UNIVER_DOC'])[_0x30c3c7(0x11f)]((0x0,_0x5ba228[_0x30c3c7(0x394)])(_0x5bbb79=>_0x5bbb79[_0x30c3c7(0x3f1)]())),this[_0x30c3c7(0x37d)][_0x30c3c7(0x28a)](_0x47f753[_0x30c3c7(0x3fc)][_0x30c3c7(0x41d)])[_0x30c3c7(0x11f)]((0x0,_0x5ba228[_0x30c3c7(0x394)])(_0x5b392f=>_0x5b392f[_0x30c3c7(0x3f1)]())),this['_univerInstanceService'][_0x30c3c7(0x28a)](_0x47f753['UniverInstanceType']['UNIVER_BASE'])[_0x30c3c7(0x11f)]((0x0,_0x5ba228[_0x30c3c7(0x394)])(_0x1282e9=>_0x1282e9['getUnitId']())))[_0x30c3c7(0x38e)](_0x374181=>this[_0x30c3c7(0x1ba)](_0x374181)));}[_0x27b931(0x203)](_0xf6f7bf){const _0x17ab8a=_0x27b931;return this['_roomMembers'][_0x17ab8a(0xff)](_0xf6f7bf)?(0x0,_0x470009['of'])(this[_0x17ab8a(0x393)][_0x17ab8a(0x1ad)](_0xf6f7bf)):this[_0x17ab8a(0x38b)][_0x17ab8a(0x11f)]((0x0,_0x5ba228[_0x17ab8a(0x394)])(_0x318f66=>{const _0x59283b=_0x17ab8a;if(_0x318f66===_0xf6f7bf)return this['_roomMembers'][_0x59283b(0x1ad)](_0x318f66);}));}['setCurrentUser'](_0x4093ae){const _0x432a5c=_0x27b931;this[_0x432a5c(0x286)][_0x432a5c(0x12c)](_0x4093ae);}[_0x27b931(0x21f)](){const _0x4b548c=_0x27b931;return this[_0x4b548c(0x286)][_0x4b548c(0x21f)]();}[_0x27b931(0x2d5)](_0x401a8f,_0x245a29){const _0x4e866d=_0x27b931;let _0x175bf9=this[_0x4e866d(0x393)][_0x4e866d(0x1ad)](_0x401a8f);_0x175bf9||(_0x175bf9=new _0xf7c34(),this['_roomMembers'][_0x4e866d(0xf6)](_0x401a8f,_0x175bf9),this[_0x4e866d(0x38b)]['next'](_0x401a8f)),_0x175bf9[_0x4e866d(0x2d5)](_0x245a29);}[_0x27b931(0x378)](_0x1b4d97,_0xe78b19){const _0x2f8171=_0x27b931;let _0x3f4d5c=this['_roomMembers'][_0x2f8171(0x1ad)](_0x1b4d97);_0x3f4d5c&&_0x3f4d5c[_0x2f8171(0x378)](_0xe78b19);}[_0x27b931(0x423)](_0x5b115a){const _0x56445e=_0x27b931;return this[_0x56445e(0x393)][_0x56445e(0x1ad)](_0x5b115a);}[_0x27b931(0x3f4)](_0x31ad3f,_0x22813a){const _0x443e51=_0x27b931;let _0xd00e42=this[_0x443e51(0x393)][_0x443e51(0x1ad)](_0x31ad3f);if(_0xd00e42)return _0xd00e42[_0x443e51(0x3f4)](_0x22813a);}[_0x27b931(0x1ba)](_0x333f4d){const _0x576a83=_0x27b931;let _0x61281f=this['_roomMembers'][_0x576a83(0x1ad)](_0x333f4d);_0x61281f&&(_0x61281f[_0x576a83(0x2bc)](),this['_roomMembers'][_0x576a83(0x274)](_0x333f4d));}[_0x27b931(0x2bc)](){const _0xec40a7=_0x27b931;this[_0xec40a7(0x393)][_0xec40a7(0x302)](_0x17efbf=>_0x17efbf['dispose']()),this[_0xec40a7(0x393)][_0xec40a7(0x249)](),this[_0xec40a7(0x38b)]['complete']();}};_0x541d7d=_0x1fb4c2([_0x2af294(0x0,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['UserManagerService']))],_0x541d7d);var _0xf7c34=class extends _0x47f753[_0x27b931(0x25e)]{constructor(..._0x154fd2){const _0x47e862=_0x27b931;super(..._0x154fd2),_0x2dd74e(this,_0x47e862(0x1f2),new Map()),_0x2dd74e(this,_0x47e862(0x363),new _0x470009[(_0x47e862(0x25b))](this[_0x47e862(0x1f2)])),_0x2dd74e(this,_0x47e862(0x3c2),this[_0x47e862(0x363)]['asObservable']());}[_0x27b931(0x2bc)](){const _0x25b912=_0x27b931;this[_0x25b912(0x1f2)][_0x25b912(0x249)](),this[_0x25b912(0x363)][_0x25b912(0x32e)]();}[_0x27b931(0x2d5)](_0x132fdf){const _0x1f2acf=_0x27b931;this[_0x1f2acf(0x1f2)][_0x1f2acf(0xf6)](_0x132fdf[_0x1f2acf(0x1aa)],_0x132fdf),this[_0x1f2acf(0x301)]();}[_0x27b931(0x378)](_0x59f612){const _0xe48603=_0x27b931;this[_0xe48603(0x1f2)][_0xe48603(0x274)](_0x59f612),this[_0xe48603(0x301)]();}[_0x27b931(0x3f4)](_0x323819){const _0x2c25f9=_0x27b931;return this[_0x2c25f9(0x1f2)][_0x2c25f9(0x1ad)](_0x323819);}['getAllMembers'](){const _0x5d717a=_0x27b931;return Array[_0x5d717a(0x21c)](this['_members'][_0x5d717a(0x32f)]());}[_0x27b931(0x301)](){const _0xd9b36c=_0x27b931;this[_0xd9b36c(0x363)][_0xd9b36c(0x396)](this['_members']);}};function _0x389eba(_0xdad32b,_0x596517){const _0xc37ae6=_0x27b931;if(_0x274f91(_0xdad32b))return _0x596517;if(_0x596517[_0xc37ae6(0x1a4)]===_0x149d12[_0xc37ae6(0x3eb)][_0xc37ae6(0x15e)]){var _0x183ea5;let _0x3b43fa=_0x47ce7e(_0xdad32b),_0x49eb4e=_0x596517;return{..._0x49eb4e,'data':{..._0x49eb4e[_0xc37ae6(0x401)],'unitID':_0xdad32b['target'][_0xc37ae6(0x320)],'unitType':(_0x183ea5=_0xdad32b[_0xc37ae6(0x216)][_0xc37ae6(0x36a)])==null?_0x49eb4e[_0xc37ae6(0x401)][_0xc37ae6(0x36a)]:_0x183ea5,'changeset':_0x3b43fa[_0xc37ae6(0x300)](_0x49eb4e[_0xc37ae6(0x401)]['changeset'],_0x5a1101(_0xdad32b))}};}if(_0x596517['eventID']===_0x149d12[_0xc37ae6(0x3eb)][_0xc37ae6(0x296)]){var _0xce705a;let _0x3537d7=_0x596517;return{..._0x3537d7,'data':{..._0x3537d7[_0xc37ae6(0x401)],'unitID':_0xdad32b[_0xc37ae6(0x216)]['unitId'],'unitType':(_0xce705a=_0xdad32b[_0xc37ae6(0x216)][_0xc37ae6(0x36a)])==null?_0x3537d7[_0xc37ae6(0x401)]['unitType']:_0xce705a}};}return _0x596517;}function _0x34b807(_0x336ab3,_0xbd97c4){const _0x473144=_0x27b931;if(_0x274f91(_0x336ab3))return[_0xbd97c4];switch(_0xbd97c4[_0x473144(0x1a4)]){case _0x149d12['CollaborationEvent'][_0x473144(0x391)]:return[_0x144706(_0x336ab3,_0xbd97c4)];case _0x149d12['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:return[_0x4a7ff6(_0x336ab3,_0xbd97c4)];case _0x149d12[_0x473144(0x3eb)][_0x473144(0x123)]:return[_0x247c91(_0x336ab3,_0xbd97c4)];default:return[_0xbd97c4];}}function _0x274f91(_0x2ea2db){const _0x3e81d7=_0x27b931;return _0x2ea2db['target'][_0x3e81d7(0x2e4)]==null&&_0x2ea2db['target'][_0x3e81d7(0x320)]===_0x2ea2db[_0x3e81d7(0x2c2)]&&!_0x2ea2db['changeset'];}function _0x144706(_0x85d2d7,_0x43158f){const _0x35def0=_0x27b931;return{..._0x43158f,'data':(0x0,_0x149d12[_0x35def0(0x253)])(_0x59d321(_0x85d2d7,(0x0,_0x149d12[_0x35def0(0x3b3)])(_0x43158f['data'])))};}function _0x247c91(_0x273d85,_0x6ef248){const _0xc9ce1f=_0x27b931;return{..._0x6ef248,'data':_0x59d321(_0x273d85,_0x6ef248[_0xc9ce1f(0x401)])};}function _0x4a7ff6(_0xe609fe,_0x207fac){const _0x2bb6cf=_0x27b931;let _0x49a3c1=_0x207fac[_0x2bb6cf(0x401)];return{..._0x207fac,'data':{..._0x49a3c1,'changesets':_0x49a3c1[_0x2bb6cf(0x3a9)][_0x2bb6cf(0x394)](_0x30ae58=>(0x0,_0x149d12[_0x2bb6cf(0x253)])(_0x59d321(_0xe609fe,(0x0,_0x149d12['parseProtocolChangeset'])(_0x30ae58))))}};}function _0x59d321(_0x54f60d,_0x3864fe){const _0x1664a9=_0x27b931;return _0x47ce7e(_0x54f60d)[_0x1664a9(0x379)](_0x3864fe,_0x5a1101(_0x54f60d));}function _0x47ce7e(_0x5d5047){const _0x451672=_0x27b931;if(!_0x5d5047[_0x451672(0x142)])throw Error(_0x451672(0x298));return _0x5d5047[_0x451672(0x142)];}function _0x5a1101(_0x438b10){const _0x3ba676=_0x27b931;return{'localUnitId':_0x438b10['localUnitId'],'unitType':_0x438b10[_0x3ba676(0x36a)],'target':_0x438b10[_0x3ba676(0x216)]};}let _0x1e08f9=function(_0x4db365){const _0x137091=_0x27b931;return _0x4db365[_0x4db365[_0x137091(0x1c2)]=0x0]='IDLE',_0x4db365[_0x4db365[_0x137091(0x1de)]=0x1]=_0x137091(0x1de),_0x4db365[_0x4db365[_0x137091(0x383)]=0x2]=_0x137091(0x383),_0x4db365[_0x4db365[_0x137091(0x1da)]=0x3]=_0x137091(0x1da),_0x4db365;}({}),_0x49999b={[_0x26a654[_0x27b931(0x3d9)][_0x27b931(0x223)]]:_0x27b931(0x20f),[_0x26a654[_0x27b931(0x3d9)][_0x27b931(0x2c6)]]:_0x27b931(0x146),[_0x26a654[_0x27b931(0x3d9)]['JOIN_ROOM_NOT_EXISTS']]:_0x27b931(0x29c),[_0x26a654[_0x27b931(0x3d9)][_0x27b931(0x3b6)]]:_0x27b931(0x336),[_0x26a654[_0x27b931(0x3d9)][_0x27b931(0x358)]]:_0x27b931(0x17e)},_0x4ea072=class extends _0x47f753[_0x27b931(0xf4)]{get[_0x27b931(0x2a5)](){const _0x97ef0a=_0x27b931;return this[_0x97ef0a(0x224)][_0x97ef0a(0x321)]();}constructor(_0x401c9a,_0x374591,_0x301394,_0xbcef47,_0x574d7c,_0x38e0d6,_0x3304fe,_0xcd259){const _0x388ac8=_0x27b931;super(),this[_0x388ac8(0x1bd)]=_0x401c9a,this[_0x388ac8(0x1a1)]=_0x301394,this[_0x388ac8(0x228)]=_0xbcef47,this[_0x388ac8(0x342)]=_0x574d7c,this['_commentService']=_0x38e0d6,this[_0x388ac8(0x11a)]=_0x3304fe,this['_telemetryService']=_0xcd259,_0x2dd74e(this,_0x388ac8(0x224),new _0x470009[(_0x388ac8(0x25b))](0x0)),_0x2dd74e(this,_0x388ac8(0x2f1),this[_0x388ac8(0x224)][_0x388ac8(0x2b2)]()),_0x2dd74e(this,_0x388ac8(0x355),new _0x470009[(_0x388ac8(0x256))]()),_0x2dd74e(this,_0x388ac8(0x2ef),this[_0x388ac8(0x355)][_0x388ac8(0x2b2)]()),_0x2dd74e(this,_0x388ac8(0x329),void 0x0),_0x2dd74e(this,_0x388ac8(0x167),void 0x0),_0x2dd74e(this,_0x388ac8(0xf1),void 0x0),_0x2dd74e(this,_0x388ac8(0xce),!0x1),_0x2dd74e(this,_0x388ac8(0x156),null),this[_0x388ac8(0xce)]=!!this['_telemetryService'],_0x374591[_0x388ac8(0x11f)]((0x0,_0x470009['takeUntil'])(this['dispose$']))[_0x388ac8(0x38e)](_0x39d082=>{const _0xf8e897=_0x388ac8;if(_0x39d082!==void 0x0){if(this[_0xf8e897(0x329)]=_0x39d082,_0x39d082)this[_0xf8e897(0x196)](_0x39d082),this[_0xf8e897(0x167)]=_0x39d082['message$'][_0xf8e897(0x38e)](_0x542626=>{const _0x294c60=_0xf8e897;_0x542626[_0x294c60(0x31b)]===this[_0x294c60(0x1bd)]['target'][_0x294c60(0x320)]&&this[_0x294c60(0x343)](_0x542626);});else{var _0xa3e06a;this[_0xf8e897(0x1b6)](),this[_0xf8e897(0x224)][_0xf8e897(0x396)](0x2),(_0xa3e06a=this[_0xf8e897(0x167)])==null||_0xa3e06a[_0xf8e897(0x138)](),this['_socketMessageSubscription']=null;}}});}[_0x27b931(0x263)](){const _0x4466ff=_0x27b931;var _0x138fb8,_0x2d503e;return(_0x138fb8=(_0x2d503e=this[_0x4466ff(0x329)])==null?void 0x0:_0x2d503e['memberID'])==null?null:_0x138fb8;}[_0x27b931(0x2bc)](){const _0x2d507f=_0x27b931;super[_0x2d507f(0x2bc)](),this[_0x2d507f(0x15b)](),this[_0x2d507f(0x18b)][_0x2d507f(0x396)](),this[_0x2d507f(0x18b)]['complete']();}[_0x27b931(0x15b)](){const _0x4a17cc=_0x27b931;var _0x1d7a02;this[_0x4a17cc(0x1b6)](),(_0x1d7a02=this[_0x4a17cc(0x329)])==null||_0x1d7a02['send']({'cmd':_0x26a654[_0x4a17cc(0x185)]['LEAVE'],'data':{'roomID':this[_0x4a17cc(0x1bd)]['target']['unitId']}}),this[_0x4a17cc(0x355)][_0x4a17cc(0x32e)](),this[_0x4a17cc(0x224)][_0x4a17cc(0x32e)]();}[_0x27b931(0x343)](_0x3a7996){const _0x1209a1=_0x27b931;_0x3a7996['cmd']===_0x26a654[_0x1209a1(0x185)][_0x1209a1(0x1e9)]?this['_onJoinRoomEvent'](_0x3a7996):_0x3a7996['cmd']===_0x26a654[_0x1209a1(0x185)][_0x1209a1(0x34a)]&&this['_onRecvEvent'](_0x3a7996);}[_0x27b931(0x196)](_0x446b22){const _0x540b70=_0x27b931;this[_0x540b70(0x224)][_0x540b70(0x396)](0x1),_0x446b22[_0x540b70(0x16b)]({'cmd':_0x26a654[_0x540b70(0x185)][_0x540b70(0x1e9)],'routeKey':this['_identity'][_0x540b70(0x216)][_0x540b70(0x320)],'routeType':'','data':{'rooms':[{'roomID':this[_0x540b70(0x1bd)]['target'][_0x540b70(0x320)]}]}});}[_0x27b931(0x2cd)](_0x2a69e3){const _0x329e67=_0x27b931;var _0x7629f8;if(_0x2a69e3[_0x329e67(0x1fc)]in _0x49999b){this['_collaborationUIEventService']['emitEvent']({'id':_0x329e67(0x33d),'data':_0x49999b[_0x2a69e3[_0x329e67(0x1fc)]]}),this[_0x329e67(0x224)][_0x329e67(0x396)](0x2);return;}this[_0x329e67(0x224)]['next'](0x3);let _0x5ede63=(_0x7629f8=_0x2a69e3[_0x329e67(0x401)][_0x329e67(0x1e3)][this[_0x329e67(0x1bd)]['target'][_0x329e67(0x320)]])==null?void 0x0:_0x7629f8[_0x329e67(0x406)];_0x5ede63&&_0x5ede63[_0x329e67(0x302)](_0xead38f=>this[_0x329e67(0x342)][_0x329e67(0x2d5)](this[_0x329e67(0x1bd)][_0x329e67(0x2c2)],_0xead38f));}[_0x27b931(0x30e)](_0x5dbc2a){const _0x282876=_0x27b931;try{let _0x1eaad6=_0x34b807(this[_0x282876(0x1bd)],_0x5dbc2a['data']);for(let _0x39f2d9 of _0x1eaad6)switch(_0x39f2d9[_0x282876(0x1a4)]){case _0x149d12[_0x282876(0x3eb)][_0x282876(0x260)]:this['_onUserJoin'](_0x39f2d9),this[_0x282876(0x355)]['next'](_0x39f2d9);break;case _0x149d12[_0x282876(0x3eb)][_0x282876(0x337)]:this[_0x282876(0x13c)](_0x39f2d9),this[_0x282876(0x355)]['next'](_0x39f2d9);break;case _0x149d12[_0x282876(0x3eb)][_0x282876(0x369)]:case _0x149d12[_0x282876(0x3eb)]['CHANGESET_SHOULD_RETRY']:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x282876(0x27b)](),this[_0x282876(0x355)][_0x282876(0x396)](_0x39f2d9);break;case _0x149d12['CollaborationEvent'][_0x282876(0x3c6)]:this[_0x282876(0x1a1)][_0x282876(0x294)](_0x282876(0x3e8)+JSON[_0x282876(0x3e5)](_0x39f2d9)),this['_event$'][_0x282876(0x396)](_0x39f2d9);break;case _0x149d12['CollaborationEvent'][_0x282876(0x33a)]:this[_0x282876(0x1c0)][_0x282876(0x3c9)](_0x39f2d9[_0x282876(0x401)]),this['_event$']['next'](_0x39f2d9);break;default:this[_0x282876(0x355)][_0x282876(0x396)](_0x39f2d9);}}catch(_0x471105){this[_0x282876(0x1a1)][_0x282876(0x294)](_0x471105,_0x5dbc2a);}}['_onUserJoin'](_0x3d3c00){const _0x1ea8da=_0x27b931;this[_0x1ea8da(0x342)][_0x1ea8da(0x2d5)](this[_0x1ea8da(0x1bd)][_0x1ea8da(0x2c2)],_0x3d3c00['data']);}[_0x27b931(0x13c)](_0x436d5a){const _0x5cd189=_0x27b931;this[_0x5cd189(0x342)][_0x5cd189(0x378)](this['_identity'][_0x5cd189(0x2c2)],_0x436d5a['data'][_0x5cd189(0x1aa)]);}async[_0x27b931(0x16b)](_0x1716d5,_0x740026){const _0x40f57e=_0x27b931;if(this[_0x40f57e(0x2a5)]!==0x3||!this['_socket'])throw Error(_0x40f57e(0x252));try{let _0x3fc24d=_0x389eba(this['_identity'],_0x1716d5);_0x3fc24d[_0x40f57e(0x1a4)]===_0x149d12[_0x40f57e(0x3eb)]['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x40f57e(0xf0)](_0x3fc24d)),this[_0x40f57e(0x329)][_0x40f57e(0x16b)]({'cmd':_0x26a654['CombCmd'][_0x40f57e(0x264)],'routeKey':this[_0x40f57e(0x1bd)][_0x40f57e(0x216)][_0x40f57e(0x320)],'routeType':'','data':_0x3fc24d});}catch(_0xcf6991){this[_0x40f57e(0x1a1)][_0x40f57e(0x294)](_0xcf6991);}}['_scheduleCollaborationTimeoutTimer'](){const _0x5a2c15=_0x27b931;var _0x485392;this[_0x5a2c15(0xf1)]=setTimeout(()=>{const _0x13d696=_0x5a2c15;this[_0x13d696(0xf1)]=null,this[_0x13d696(0x11a)]['emitEvent']({'id':'SUBMIT_CHANGESET_TIMEOUT'});},(_0x485392=this['_configService']['getConfig'](_0x5a2c15(0xe4)))==null?_0x1dfc3f:_0x485392);}[_0x27b931(0x27b)](){const _0x196b10=_0x27b931;this[_0x196b10(0xf1)]&&(clearTimeout(this[_0x196b10(0xf1)]),this[_0x196b10(0xf1)]=null);}[_0x27b931(0xf0)](_0x557994){const _0x30324b=_0x27b931;if(!this['_shouldReportTelemetry'])return;let {data:_0x370353}=_0x557994,{unitID:_0x5246c3,changeset:_0x1735bb}=_0x370353,{mutations:_0x4ecaf9,type:_0x13e145}=_0x1735bb;this['_telemetryInfo']={'unitId':_0x5246c3,'type':_0x13e145,'startTime':performance[_0x30324b(0x284)](),'stopTime':0x0,'duration':0x0,'size':_0x378d76(_0x4ecaf9)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x30c0ef=_0x27b931;if(this[_0x30c0ef(0xce)]){if(!this[_0x30c0ef(0x156)]){this[_0x30c0ef(0x1a1)][_0x30c0ef(0x294)](_0x30c0ef(0x3ae),_0x30c0ef(0x14c));return;}this[_0x30c0ef(0x156)]['stopTime']=performance['now'](),this[_0x30c0ef(0x156)]['duration']=this[_0x30c0ef(0x156)][_0x30c0ef(0x2aa)]-this[_0x30c0ef(0x156)][_0x30c0ef(0x388)],this[_0x30c0ef(0x279)]['capture'](_0x30c0ef(0x1b7),this[_0x30c0ef(0x156)]),this[_0x30c0ef(0x156)]=null;}}[_0x27b931(0x1b6)](){const _0x3586a8=_0x27b931;this[_0x3586a8(0x156)]=null;}};_0x4ea072=_0x1fb4c2([_0x2af294(0x2,_0x47f753[_0x27b931(0x370)]),_0x2af294(0x3,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x4,(0x0,_0x47f753['Inject'])(_0x541d7d)),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x101a15)),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x233)])(_0x32d36d['ITelemetryService']))],_0x4ea072);let _0x419224=(0x0,_0x47f753[_0x27b931(0xfd)])(_0x27b931(0x3c8));function _0xe42769(_0x3209bf){return'unit-cache-'+_0x3209bf;}function _0xec7bcb(_0x4ac1da){const _0xf65499=_0x27b931;let {unitID:_0x195a4a,mutations:_0x366d2a}=_0x4ac1da;return{'unitId':_0x195a4a,'subUnitId':_0x366d2a[_0xf65499(0x415)]>0x0?_0x366d2a[0x0][_0xf65499(0xfc)][_0xf65499(0x109)]:null};}let _0x2e077e=class{constructor(_0x27e62a,_0x24817f,_0x2d27c6){const _0x32a71c=_0x27b931;this[_0x32a71c(0x2fe)]=_0x27e62a,this[_0x32a71c(0x14e)]=_0x24817f,this[_0x32a71c(0x297)]=_0x2d27c6;}[_0x27b931(0x299)](_0x4b9dd7){const _0x535aaf=_0x27b931;var _0xdadce7,_0x939a9f;let _0x5d4114=this[_0x535aaf(0x2fe)][_0x535aaf(0x1ad)](_0x1e2709[_0x535aaf(0x165)]),{unitId:_0x395e32,subUnitId:_0x3f76c9}=_0xec7bcb(_0x4b9dd7),_0x565885=_0x5d4114==null?void 0x0:_0x5d4114[_0x535aaf(0x2b9)](_0x395e32)[_0x535aaf(0xcd)](),_0x4a62f2=(_0xdadce7=this['_instanceService'][_0x535aaf(0x326)](_0x395e32))==null||(_0xdadce7=_0xdadce7[_0x535aaf(0x3bf)]())==null?void 0x0:_0xdadce7[_0x535aaf(0x18c)]();if(_0x565885[_0x535aaf(0x415)]===0x0||!_0x395e32||!_0x3f76c9)return;let _0x289c74=[{'id':_0x1e2709[_0x535aaf(0x193)]['id'],'params':{'unitId':_0x395e32,'subUnitId':_0x4a62f2,'selections':_0x47f753['Tools'][_0x535aaf(0xd7)](_0x565885)}}],_0x116b3b=this['_transformService'][_0x535aaf(0x17a)](_0x4b9dd7,_0x289c74);if(!(0x0,_0x149d12[_0x535aaf(0x421)])(_0x116b3b))throw _0x116b3b[_0x535aaf(0x294)];let _0x423418=(_0x939a9f=_0x116b3b[_0x535aaf(0x3b0)][0x0])==null||(_0x939a9f=_0x939a9f[_0x535aaf(0xfc)])==null?void 0x0:_0x939a9f[_0x535aaf(0x163)];if(Array[_0x535aaf(0x22d)](_0x423418)&&_0x423418[_0x535aaf(0x415)]){if(_0x423418[_0x535aaf(0x415)]===_0x289c74[0x0][_0x535aaf(0xfc)]['selections'][_0x535aaf(0x415)]&&_0x423418[_0x535aaf(0x154)]((_0x1b496d,_0x4e0a82)=>_0x47f753[_0x535aaf(0x179)]['equals'](_0x1b496d[_0x535aaf(0x338)],_0x289c74[0x0][_0x535aaf(0xfc)][_0x535aaf(0x163)][_0x4e0a82]['range'])))return;this['_injector'][_0x535aaf(0x1ad)](_0x47f753[_0x535aaf(0x25c)])['executeCommand'](_0x1e2709['SetSelectionsOperation']['id'],{'unitId':_0x395e32,'subUnitId':_0x4a62f2,'selections':_0x423418});}}};_0x2e077e=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x1,_0x149d12['ITransformService']),_0x2af294(0x2,_0x47f753['IUniverInstanceService'])],_0x2e077e);let _0x435069=(0x0,_0x47f753['createIdentifier'])(_0x27b931(0x14b)),_0x709438=function(_0x2fec58){const _0x2c0578=_0x27b931;return _0x2fec58[_0x2fec58[_0x2c0578(0x416)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x2fec58[_0x2fec58[_0x2c0578(0x261)]=0x1]='OTHER_CLIENTS_EDITING',_0x2fec58;}({});function _0xd39fe(_0x6c1112){const _0x36dea6=_0x27b931;var _0x5ad218;return!!((_0x5ad218=_0x6c1112['params'])!=null&&_0x5ad218[_0x36dea6(0x39a)]);}let _0xb89c6b=new Set([_0x1e2709['InsertSheetMutation']['id']]),_0x23d1ab=new Set([_0x40163b['AddSlidePageMutation']['id'],_0x40163b[_0x27b931(0x3f7)]['id'],_0x40163b[_0x27b931(0x2f7)]['id'],_0x40163b[_0x27b931(0x259)]['id']]);function _0x46bcf2(_0x17a8d6,_0x917eac=_0xb89c6b){const _0x2ebda0=_0x27b931;let _0x2500ef=[];for(let _0x2f3ef0 of _0x17a8d6){if(_0x917eac[_0x2ebda0(0xff)](_0x2f3ef0['id'])){if(_0x2500ef[_0x2ebda0(0x415)]>0x0)break;_0x2500ef['push'](_0x2f3ef0);break;}if(_0xd39fe(_0x2f3ef0)){if(_0x2500ef[_0x2ebda0(0x415)]>0x0)break;_0x2500ef['push'](_0x2f3ef0);break;}_0x2500ef[_0x2ebda0(0x30b)](_0x2f3ef0);}return _0x2500ef;}function _0x56f864(_0x146cc8,_0x1423b5,_0x2cbb2e,_0xad4e4b,_0x1109d6){const _0x5c3349=_0x27b931;var _0x3590ed,_0x54772a,_0x135651,_0x4b8e0d;let _0x528e0a=_0x46bcf2(_0x146cc8),_0x2f0a3f=(_0x3590ed=(_0x54772a=_0x1109d6[_0x5c3349(0x21f)]())==null?void 0x0:_0x54772a[_0x5c3349(0x13a)])==null?_0x5c3349(0x316):_0x3590ed,_0x33e71a=(_0x135651=(_0x4b8e0d=_0x1109d6[_0x5c3349(0x21f)]())==null?void 0x0:_0x4b8e0d[_0x5c3349(0x1aa)])==null?'unknown':_0x135651;return{'changeset':{'unitID':_0x1423b5,'type':(0x0,_0x149d12[_0x5c3349(0x22c)])(_0x2cbb2e['getUnitType'](_0x1423b5)),'baseRev':_0xad4e4b['getCurrentRevOfUnit'](_0x1423b5),'revision':0x0,'userID':_0x2f0a3f,'memberID':_0x33e71a,'mutations':_0x528e0a},'pendingMutations':_0x146cc8['slice'](_0x528e0a[_0x5c3349(0x415)])};}function _0x4c958f(_0x18b1c5,_0xa7cb33,_0x211a4f,_0x467a25,_0x5f5af6){const _0x274ebe=_0x27b931;var _0x162acd,_0x29004c,_0x17f22e,_0x41abdd;let _0x13f1aa=_0x46bcf2(_0x18b1c5,_0x23d1ab),_0x4e1c9f=(_0x162acd=(_0x29004c=_0x5f5af6[_0x274ebe(0x21f)]())==null?void 0x0:_0x29004c['userID'])==null?_0x274ebe(0x316):_0x162acd,_0x173fdc=(_0x17f22e=(_0x41abdd=_0x5f5af6[_0x274ebe(0x21f)]())==null?void 0x0:_0x41abdd['memberID'])==null?_0x274ebe(0x316):_0x17f22e;return{'changeset':{'unitID':_0xa7cb33,'type':(0x0,_0x149d12[_0x274ebe(0x22c)])(_0x211a4f['getUnitType'](_0xa7cb33)),'baseRev':_0x467a25[_0x274ebe(0x322)](_0xa7cb33),'revision':0x0,'userID':_0x4e1c9f,'memberID':_0x173fdc,'mutations':_0x13f1aa},'pendingMutations':_0x18b1c5[_0x274ebe(0x14f)](_0x13f1aa['length'])};}function _0x1f4433(_0xe01410,_0x301f91,_0x51344f,_0x569429,_0x3f5b8a){const _0xd86b22=_0x27b931;var _0x306596,_0xc87f4b,_0x162fef,_0x21708e;let _0x18894b=_0xe01410[_0xd86b22(0x1ca)]((_0x2a69eb,_0x4a1fbf)=>{const _0x1a45fc=_0xd86b22;let _0x3b1633=_0x2a69eb[_0x2a69eb[_0x1a45fc(0x415)]-0x1],{id:_0x42267c}=_0x3b1633==null?{}:_0x3b1633,{id:_0x39e99d,type:_0x18dc55}=_0x4a1fbf,_0xf853ba=_0x4a1fbf[_0x1a45fc(0xfc)];if(_0x42267c&&_0x42267c!==_0x39e99d)throw Error(_0x1a45fc(0x419)+_0x42267c+_0x1a45fc(0x328)+_0x39e99d+'.');if(!_0x3b1633)return[{'id':_0x39e99d,'type':_0x18dc55,'params':{'unitId':_0xf853ba[_0x1a45fc(0x320)],'textRanges':_0xf853ba['textRanges'],'actions':_0xf853ba[_0x1a45fc(0x1b8)]}}];let _0x5640e2=_0x3b1633[_0x1a45fc(0xfc)];return _0x431857(_0x5640e2,_0xf853ba)?[..._0x2a69eb[_0x1a45fc(0x14f)](0x0,-0x1),{..._0x3b1633,'id':_0x39e99d,'type':_0x18dc55,'params':{'unitId':_0xf853ba[_0x1a45fc(0x320)],'textRanges':_0xf853ba[_0x1a45fc(0x141)],'actions':_0x47f753[_0x1a45fc(0x231)][_0x1a45fc(0x14d)](_0x5640e2['actions'],_0xf853ba[_0x1a45fc(0x1b8)])}}]:[..._0x2a69eb,{'id':_0x39e99d,'type':_0x18dc55,'params':{'unitId':_0xf853ba['unitId'],'textRanges':_0xf853ba[_0x1a45fc(0x141)],'actions':_0xf853ba[_0x1a45fc(0x1b8)]}}];},[]),_0x26f2a8=(_0x306596=(_0xc87f4b=_0x3f5b8a['getCurrentUser']())==null?void 0x0:_0xc87f4b[_0xd86b22(0x13a)])==null?_0xd86b22(0x316):_0x306596,_0x29cddc=(_0x162fef=(_0x21708e=_0x3f5b8a[_0xd86b22(0x21f)]())==null?void 0x0:_0x21708e[_0xd86b22(0x1aa)])==null?_0xd86b22(0x316):_0x162fef;return{'changeset':{'unitID':_0x301f91,'type':(0x0,_0x149d12['mapDocumentTypeToUniverInstanceType'])(_0x51344f[_0xd86b22(0x41a)](_0x301f91)),'baseRev':_0x569429[_0xd86b22(0x322)](_0x301f91),'revision':0x0,'userID':_0x26f2a8,'memberID':_0x29cddc,'mutations':_0x18894b},'pendingMutations':_0xe01410['slice'](_0xe01410[_0xd86b22(0x415)])};}function _0x431857(_0x47ee0d,_0x4a16cc){const _0x3cebdc=_0x27b931;return!_0x3b13eb(_0x47ee0d)&&!_0x3b13eb(_0x4a16cc)&&_0x34cc88(_0x47ee0d[_0x3cebdc(0x1b8)],_0x4a16cc[_0x3cebdc(0x1b8)]);}function _0x3b13eb(_0x23dc22){const _0x4ae797=_0x27b931;return _0x23dc22[_0x4ae797(0x31a)]!==void 0x0;}function _0x34cc88(_0x486544,_0x29babb){return _0x14ae70(_0x486544)&&_0x14ae70(_0x29babb)&&!_0x2c2db9(_0x486544)&&!_0x2c2db9(_0x29babb)&&!_0x1e58ef(_0x486544)&&!_0x1e58ef(_0x29babb);}function _0x14ae70(_0x4ef133){const _0x2e19b5=_0x27b931;return _0x54bd72(_0x4ef133)['some'](_0x3b31da=>_0xbf6c98(_0x3b31da)&&_0x3b31da['et']===_0x2e19b5(0x1bf));}function _0x1e58ef(_0xf294c2){const _0x10e102=_0x27b931;return _0x54bd72(_0xf294c2)['some'](_0x380308=>Array[_0x10e102(0x22d)](_0x380308)||typeof _0x380308==_0x10e102(0x267)||typeof _0x380308==_0x10e102(0x116));}function _0x2c2db9(_0x4bf3ec){const _0x3cf840=_0x27b931;return _0x54bd72(_0x4bf3ec)[_0x3cf840(0x405)](_0x36fc77=>!_0xbf6c98(_0x36fc77)||_0x36fc77['et']!==_0x3cf840(0x1bf)||!Array[_0x3cf840(0x22d)](_0x36fc77['e'])?!0x1:_0x36fc77['e'][_0x3cf840(0x405)](_0x4f40c4=>!_0xbf6c98(_0x4f40c4)||!_0xbf6c98(_0x4f40c4[_0x3cf840(0x2d9)])?!0x1:Object[_0x3cf840(0x39f)][_0x3cf840(0xf5)]['call'](_0x4f40c4[_0x3cf840(0x2d9)],_0x3cf840(0x1c5))||Object[_0x3cf840(0x39f)]['hasOwnProperty'][_0x3cf840(0x25a)](_0x4f40c4['body'],_0x3cf840(0x125))||Object[_0x3cf840(0x39f)][_0x3cf840(0xf5)]['call'](_0x4f40c4['body'],'blockRanges')));}function _0x54bd72(_0x4080be){const _0xc909af=_0x27b931;if(!Array['isArray'](_0x4080be))return[];let _0x6a6ab3=_0x4080be[_0xc909af(0xf2)](_0xc909af(0x2d9))?_0x4080be:_0x4080be['find'](_0x4a2571=>Array[_0xc909af(0x22d)](_0x4a2571)&&_0x4a2571[_0xc909af(0xf2)](_0xc909af(0x2d9)));if(!Array[_0xc909af(0x22d)](_0x6a6ab3))return[];let _0x1cb57=_0x6a6ab3[_0xc909af(0x290)]('body');return _0x1cb57===-0x1?[]:_0x6a6ab3[_0xc909af(0x14f)](_0x1cb57+0x1);}function _0xbf6c98(_0x1976cc){return typeof _0x1976cc=='object'&&!!_0x1976cc&&!Array['isArray'](_0x1976cc);}function _0xa9ec8e(_0x20dd9a,_0x3b97db){const _0x3a569b=_0x27b931;let _0x300331=new _0x470009['ReplaySubject'](0x1);return setTimeout(()=>_0x300331[_0x3a569b(0x396)](_0x3b97db),_0x20dd9a),_0x300331[_0x3a569b(0x2b2)]()[_0x3a569b(0x11f)]((0x0,_0x470009[_0x3a569b(0x1c3)])(0x1));}var _0x3fe01c,_0x273481,_0xf27d34;let _0xdb2824=function(_0x2c6cd2){const _0x598750=_0x27b931;return _0x2c6cd2[_0x598750(0x2d2)]=_0x598750(0xe1),_0x2c6cd2[_0x598750(0x35d)]=_0x598750(0x2da),_0x2c6cd2[_0x598750(0x390)]=_0x598750(0x341),_0x2c6cd2['AWAITING']=_0x598750(0x10c),_0x2c6cd2[_0x598750(0x1e1)]='awaiting_with_pending',_0x2c6cd2['FETCH_MISS']=_0x598750(0x11d),_0x2c6cd2['CONFLICT']='conflict',_0x2c6cd2[_0x598750(0x383)]='offline',_0x2c6cd2;}({}),_0x3d7ed8=0x4e20,_0xb2329d=0x2bf20;var _0x245952=class{constructor(_0x57bcf8,_0x931ec2,_0x2b29e9,_0xb47052,_0x504c99,_0x3aaef6,_0x5145d6,_0x5e197d,_0x549dae){const _0x34789c=_0x27b931;this[_0x34789c(0x2ea)]=_0x57bcf8,this[_0x34789c(0x2af)]=_0x931ec2,this[_0x34789c(0x13b)]=_0x504c99,this[_0x34789c(0x38d)]=_0x3aaef6,this[_0x34789c(0x1c6)]=_0x5145d6,this[_0x34789c(0x105)]=_0x5e197d,this['_localCacheService']=_0x549dae,_0x2dd74e(this,_0x34789c(0x1f7),null),_0x2dd74e(this,'_pendingMutations',[]),this[_0x34789c(0x1f7)]=_0x2b29e9,this[_0x34789c(0x3da)]=_0xb47052;}[_0x27b931(0x16d)](_0x3186f0){const _0x31c648=_0x27b931;let _0x549bba=this[_0x31c648(0x105)]['getCurrentRevOfUnit'](this[_0x31c648(0x2ea)]);return _0x3186f0['revision']>_0x549bba+0x1?(this['_handler']['onMissingChangesets']({'from':_0x549bba,'to':_0x3186f0[_0x31c648(0xe7)]-0x1}),!0x0):!0x1;}[_0x27b931(0x2cb)](_0x1ff250){const _0x505782=_0x27b931;this[_0x505782(0x1c6)][_0x505782(0x135)](this[_0x505782(0x2ea)],_0x1ff250);}['_transformSelections'](_0x28e87a){const _0x50894a=_0x27b931;var _0x331d49,_0x49990b;(_0x331d49=(_0x49990b=this[_0x50894a(0x13b)])['onTransformSelections'])==null||_0x331d49['call'](_0x49990b,_0x28e87a);}[_0x27b931(0x202)](_0x53c6ff){const _0x5a4e5c=_0x27b931;var _0x40c765,_0x1ba128;return(_0x40c765=(_0x1ba128=this[_0x5a4e5c(0x13b)])[_0x5a4e5c(0x384)])==null?void 0x0:_0x40c765[_0x5a4e5c(0x25a)](_0x1ba128,_0x53c6ff);}[_0x27b931(0x20c)](_0x281e2a){const _0x31181f=_0x27b931;var _0x33beaa,_0x2ab297;return(_0x33beaa=(_0x2ab297=this[_0x31181f(0x13b)])['onTransformState'])==null?void 0x0:_0x33beaa['call'](_0x2ab297,_0x281e2a);}[_0x27b931(0x127)](_0x6b03b3){const _0x1b1e48=_0x27b931;var _0x387270,_0x1e3e7f,_0x389d1f;return(_0x387270=(_0x1e3e7f=(_0x389d1f=this[_0x1b1e48(0x13b)])[_0x1b1e48(0x291)])==null?void 0x0:_0x1e3e7f[_0x1b1e48(0x25a)](_0x389d1f,_0x6b03b3))==null?_0x6b03b3:_0x387270;}[_0x27b931(0xf8)](_0x2259e5){const _0x372a90=_0x27b931;var _0x2b2e95,_0x1f2afa,_0x39736f;return(_0x2b2e95=(_0x1f2afa=(_0x39736f=this['_handler'])[_0x372a90(0x2d3)])==null?void 0x0:_0x1f2afa['call'](_0x39736f,_0x2259e5))==null?_0x2259e5:_0x2b2e95;}[_0x27b931(0x40f)](_0x4862c6){const _0xfe8aff=_0x27b931;if(this[_0xfe8aff(0x2af)]===_0x47f753[_0xfe8aff(0x3fc)][_0xfe8aff(0x243)]){let {unitID:_0x2f3efc,mutations:_0x45e9a1,memberID:_0x23787b}=_0x4862c6,_0x261deb=_0x45e9a1['length']>0x0?_0x45e9a1[0x0][_0xfe8aff(0xfc)][_0xfe8aff(0x141)]:[];if(Array[_0xfe8aff(0x22d)](_0x261deb)&&_0x261deb['length']>0x0){var _0x344b8f,_0x330db2;(_0x344b8f=(_0x330db2=this[_0xfe8aff(0x13b)])[_0xfe8aff(0x10b)])==null||_0x344b8f[_0xfe8aff(0x25a)](_0x330db2,{'unitID':_0x2f3efc,'memberID':_0x23787b,'textRanges':_0x261deb});}}}[_0x27b931(0x292)](){const _0x31c0aa=_0x27b931;var _0x2771a8;(_0x2771a8=this[_0x31c0aa(0x189)])==null||_0x2771a8['updateOfflineData'](this[_0x31c0aa(0x2ea)],this[_0x31c0aa(0x2af)],this[_0x31c0aa(0x1f7)],this[_0x31c0aa(0x3da)]);}[_0x27b931(0x319)](){const _0x507949=_0x27b931;return this[_0x507949(0x105)]['getCurrentRevOfUnit'](this['unitID']);}['_incrementRevisionNumber'](){const _0x36f468=_0x27b931;this['_revisionService'][_0x36f468(0x3ca)](this[_0x36f468(0x2ea)]);}[_0x27b931(0x164)](_0x40f6ef){const _0x44d695=_0x27b931;let _0x422095=this[_0x44d695(0x127)](_0x40f6ef);_0x422095=this[_0x44d695(0xf8)](_0x422095);let _0x188526=(0x0,_0x47f753[_0x44d695(0x254)])(_0x422095['mutations'],this[_0x44d695(0x38d)],{'fromCollab':!0x0});if(!_0x188526['result']){var _0x371fd1;throw _0x188526['error']instanceof Error?_0x188526['error']:Error((_0x371fd1=_0x188526[_0x44d695(0x294)])==null?'[CollaborationState]:\x20apply\x20error!':_0x371fd1);}this[_0x44d695(0x202)](_0x422095),this['_transformStateCache'](_0x422095),this[_0x44d695(0x2cb)](_0x40f6ef),this[_0x44d695(0x115)](_0x422095),this[_0x44d695(0x40f)](_0x422095),this[_0x44d695(0x1cd)]();}};let _0x50a3a4=class extends _0x245952{constructor(_0x3fb7e8,_0x284423,_0x483460,_0xd19e43,_0x52afde,_0x507f12,_0x544021,_0x5c4548,_0x27494b,_0x4cccb3){const _0x483582=_0x27b931;super(_0x3fb7e8,_0x284423,null,[],_0x483460,_0x544021,_0x507f12,_0xd19e43,_0x4cccb3),this['_injector']=_0x52afde,this['_logService']=_0x5c4548,this['_transformService']=_0x27494b,this[_0x483582(0x23c)]=_0x4cccb3,_0x2dd74e(this,_0x483582(0x397),_0x483582(0x2da));}[_0x27b931(0x219)](_0x3a5c6a){const _0x50508d=_0x27b931;let _0x3678f1=this[_0x50508d(0x2fe)][_0x50508d(0x392)](_0x467875,this[_0x50508d(0x2ea)],this[_0x50508d(0x2af)],[_0x3a5c6a],this[_0x50508d(0x13b)]);return _0x3678f1[_0x50508d(0x34b)](),_0x3678f1[_0x50508d(0x292)](),_0x3678f1;}[_0x27b931(0xf7)](_0x1dddc9){const _0x4a50e9=_0x27b931;if(this[_0x4a50e9(0x16d)](_0x1dddc9))return this['_injector'][_0x4a50e9(0x392)](_0x3b1a33,this[_0x4a50e9(0x2ea)],this[_0x4a50e9(0x2af)],null,[],null,[_0x1dddc9],this[_0x4a50e9(0x13b)]);try{let _0x46e4e4=this[_0x4a50e9(0x14e)][_0x4a50e9(0x17a)](_0x1dddc9,[_0x149d12[_0x4a50e9(0x2a9)]]);if((0x0,_0x149d12['isTransformMutationsWithChangesetSuccess'])(_0x46e4e4)){let {c1Prime:_0x73f905}=_0x46e4e4;return this['_executeRemoteChangeset'](_0x73f905),this;}throw _0x46e4e4['error'];}catch(_0x303d5e){return this[_0x4a50e9(0x1a1)][_0x4a50e9(0x294)](_0x303d5e),this[_0x4a50e9(0x270)](!0x1);}}[_0x27b931(0x270)](_0x555fc9){const _0x30d063=_0x27b931;return this[_0x30d063(0x2fe)]['createInstance'](_0x41f3d6,this[_0x30d063(0x2ea)],this['type'],null,[],this['_handler'],_0x555fc9);}[_0x27b931(0x420)](_0x54d810){const _0x3d6110=_0x27b931;if(_0x54d810[_0x3d6110(0xe7)]<=this[_0x3d6110(0x319)]())return this;throw Error(_0x3d6110(0x215));}[_0x27b931(0xef)](){const _0x3f1f4f=_0x27b931;throw Error(_0x3f1f4f(0x13f));}[_0x27b931(0x21d)](){return this;}[_0x27b931(0x229)](){const _0x2b9da4=_0x27b931;return this[_0x2b9da4(0x2fe)][_0x2b9da4(0x392)](_0x58261a,this['unitID'],this['type'],null,[],this['_handler']);}[_0x27b931(0x2d1)](){return this;}[_0x27b931(0x36c)](){const _0x147fee=_0x27b931;throw Error(_0x147fee(0x12a));}[_0x27b931(0xd2)](){const _0x333f4b=_0x27b931;let _0xd9d335=this[_0x333f4b(0x105)][_0x333f4b(0x322)](this[_0x333f4b(0x2ea)]);return this['_handler'][_0x333f4b(0x2ab)]({'from':_0xd9d335,'to':0x0}),this[_0x333f4b(0x2fe)][_0x333f4b(0x392)](_0x3b1a33,this[_0x333f4b(0x2ea)],this[_0x333f4b(0x2af)],null,[],null,[],this[_0x333f4b(0x13b)]);}};_0x50a3a4=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x5,_0x47f753['IUndoRedoService']),_0x2af294(0x6,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x7,_0x47f753[_0x27b931(0x370)]),_0x2af294(0x8,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0x9,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x50a3a4);let _0x467875=_0x3fe01c=class extends _0x245952{constructor(_0x34b6f7,_0x290244,_0x3a145d,_0x562046,_0x5bd416,_0x292127,_0x1bd9ce,_0xef5cfe,_0x349a87,_0x43a8a2,_0x1755d3,_0x19b40b,_0x4b38e7,_0x1ecccb){const _0x468c5e=_0x27b931;super(_0x34b6f7,_0x290244,null,_0x3a145d,_0x562046,_0x349a87,_0x4b38e7,_0x292127,_0x1ecccb),this[_0x468c5e(0x2fe)]=_0x5bd416,this['_memberService']=_0x1bd9ce,this[_0x468c5e(0x1a1)]=_0xef5cfe,this['_configService']=_0x43a8a2,this[_0x468c5e(0x14e)]=_0x1755d3,this[_0x468c5e(0x37d)]=_0x19b40b,_0x2dd74e(this,_0x468c5e(0x397),'pending'),_0x2dd74e(this,_0x468c5e(0x3b2),null),_0x2dd74e(this,'_sendingTimer',null);}[_0x27b931(0x219)](_0x3fb845){const _0x1959b5=_0x27b931;return this[_0x1959b5(0x3da)]['push'](_0x3fb845),this[_0x1959b5(0x292)](),this;}[_0x27b931(0xf7)](_0x7d723d){const _0x2f696f=_0x27b931;if(this[_0x2f696f(0x16d)](_0x7d723d))return this[_0x2f696f(0x2dc)](),this[_0x2f696f(0x2fe)][_0x2f696f(0x392)](_0x3b1a33,this[_0x2f696f(0x2ea)],this[_0x2f696f(0x2af)],null,this[_0x2f696f(0x3da)],null,[_0x7d723d],this[_0x2f696f(0x13b)]);try{let _0x19a963=this['_transformService'][_0x2f696f(0x17a)](_0x7d723d,this[_0x2f696f(0x3da)]);if((0x0,_0x149d12[_0x2f696f(0x421)])(_0x19a963)){let {c1Prime:_0x4f9446,m2Prime:_0x61bdeb}=_0x19a963;this[_0x2f696f(0x164)](_0x4f9446);let _0x437c87=this['_injector'][_0x2f696f(0x392)](_0x3fe01c,this[_0x2f696f(0x2ea)],this[_0x2f696f(0x2af)],_0x61bdeb,this[_0x2f696f(0x13b)]);this[_0x2f696f(0x2dc)]();let _0x230ae8=new Date()[_0x2f696f(0xf3)](),_0x162506=this[_0x2f696f(0x3b2)]?Math[_0x2f696f(0x2b5)](this[_0x2f696f(0x3b2)]-_0x230ae8,0x0):this[_0x2f696f(0x1ef)]();return _0x437c87[_0x2f696f(0x34b)](_0x162506),_0x437c87;}throw _0x19a963[_0x2f696f(0x294)];}catch(_0x195047){return this[_0x2f696f(0x1a1)][_0x2f696f(0x294)](_0x195047),this[_0x2f696f(0x270)](!0x1);}}[_0x27b931(0x420)](_0x4fdc33){const _0x32f6d8=_0x27b931;if(_0x4fdc33[_0x32f6d8(0xe7)]<=this['_getCurrentRevision']())return this;throw Error(_0x32f6d8(0x177));}[_0x27b931(0xef)](){const _0x12069d=_0x27b931;throw Error(_0x12069d(0x40d));}[_0x27b931(0x21d)](){return this;}[_0x27b931(0x229)](){const _0x3dc17d=_0x27b931;return this['_clearScheduledTask'](),this[_0x3dc17d(0x2fe)][_0x3dc17d(0x392)](_0x58261a,this['unitID'],this[_0x3dc17d(0x2af)],null,this[_0x3dc17d(0x3da)],this[_0x3dc17d(0x13b)]);}['toggleOnline'](){return this;}['_schedule'](_0x4e3c4f){const _0x31c9fc=_0x27b931;let _0x45c791=_0x4e3c4f==null?this[_0x31c9fc(0x1ef)]():_0x4e3c4f;this[_0x31c9fc(0x3b2)]=new Date()[_0x31c9fc(0xf3)]()+_0x45c791,this['_sendingTimer']=setTimeout(()=>{const _0x5ac572=_0x31c9fc;this[_0x5ac572(0x2dc)]();let _0x423db3=null;switch(this[_0x5ac572(0x2af)]){case _0x47f753[_0x5ac572(0x3fc)][_0x5ac572(0x239)]:_0x423db3=_0x56f864(this[_0x5ac572(0x3da)],this[_0x5ac572(0x2ea)],this[_0x5ac572(0x37d)],this[_0x5ac572(0x105)],this[_0x5ac572(0x342)]);break;case _0x47f753[_0x5ac572(0x3fc)][_0x5ac572(0x243)]:_0x423db3=this[_0x5ac572(0x3da)]['every'](_0x5f43d1=>_0x5f43d1['id']===_0x459006[_0x5ac572(0x20a)]['id'])?_0x1f4433(this['_pendingMutations'],this['unitID'],this[_0x5ac572(0x37d)],this['_revisionService'],this[_0x5ac572(0x342)]):_0x56f864(this[_0x5ac572(0x3da)],this[_0x5ac572(0x2ea)],this[_0x5ac572(0x37d)],this[_0x5ac572(0x105)],this['_memberService']);break;case _0x47f753[_0x5ac572(0x3fc)][_0x5ac572(0x339)]:_0x423db3=_0x4c958f(this[_0x5ac572(0x3da)],this[_0x5ac572(0x2ea)],this[_0x5ac572(0x37d)],this[_0x5ac572(0x105)],this['_memberService']);break;case _0x47f753[_0x5ac572(0x3fc)][_0x5ac572(0x41d)]:_0x423db3=_0x56f864(this[_0x5ac572(0x3da)],this[_0x5ac572(0x2ea)],this[_0x5ac572(0x37d)],this[_0x5ac572(0x105)],this[_0x5ac572(0x342)]);break;case _0x47f753[_0x5ac572(0x3fc)][_0x5ac572(0x313)]:_0x423db3=_0x56f864(this[_0x5ac572(0x3da)],this[_0x5ac572(0x2ea)],this[_0x5ac572(0x37d)],this[_0x5ac572(0x105)],this[_0x5ac572(0x342)]);break;default:throw Error(_0x5ac572(0x1be)+this['type']+_0x5ac572(0x39e));}let {changeset:_0x17a977,pendingMutations:_0x176b59}=_0x423db3;this[_0x5ac572(0x13b)][_0x5ac572(0x244)](_0x17a977);let _0x35712=_0x176b59['length']?this[_0x5ac572(0x2fe)][_0x5ac572(0x392)](_0x15bd87,this[_0x5ac572(0x2ea)],this[_0x5ac572(0x2af)],_0x17a977,_0x176b59,this[_0x5ac572(0x13b)],void 0x0):this[_0x5ac572(0x2fe)]['createInstance'](_0x42dff3,this['unitID'],this[_0x5ac572(0x2af)],_0x17a977,this[_0x5ac572(0x13b)]);_0x35712[_0x5ac572(0x292)](),this['_handler'][_0x5ac572(0x2e0)](this,_0x35712);},_0x45c791);}['_getSendChangesetTimeout'](){const _0x26f588=_0x27b931;var _0xbf852b;let _0x2b55e7=this[_0x26f588(0x228)][_0x26f588(0x190)](_0x3c17be);return(_0xbf852b=_0x2b55e7==null?void 0x0:_0x2b55e7[_0x26f588(0x2f8)])==null?0x7d0:_0xbf852b;}[_0x27b931(0x36c)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x1e54c6=_0x27b931;this['_sendingTimer']!=null&&(clearTimeout(this['_sendingTimer']),this[_0x1e54c6(0xfe)]=null);}[_0x27b931(0x270)](_0x171a98){const _0x1564b2=_0x27b931;return this['_clearScheduledTask'](),this[_0x1564b2(0x2fe)][_0x1564b2(0x392)](_0x41f3d6,this['unitID'],this[_0x1564b2(0x2af)],null,this['_pendingMutations'],this[_0x1564b2(0x13b)],_0x171a98);}};_0x467875=_0x3fe01c=_0x1fb4c2([_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x541d7d)),_0x2af294(0x7,_0x47f753['ILogService']),_0x2af294(0x8,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x9,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0xa,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0xb,_0x47f753['IUniverInstanceService']),_0x2af294(0xc,_0x47f753[_0x27b931(0x3aa)]),_0x2af294(0xd,(0x0,_0x47f753['Optional'])(_0x419224))],_0x467875);let _0x42dff3=_0x273481=class extends _0x245952{constructor(_0x4748fe,_0x271465,_0x2a93a7,_0x3bdc99,_0x204a6d,_0x445d70,_0x399cea,_0x5bbd19,_0x297c11,_0x2344af,_0x5ead2e){const _0x432940=_0x27b931;super(_0x4748fe,_0x271465,_0x2a93a7,[],_0x3bdc99,_0x399cea,_0x2344af,_0x445d70,_0x5ead2e),this[_0x432940(0x2fe)]=_0x204a6d,this[_0x432940(0x1a1)]=_0x5bbd19,this[_0x432940(0x14e)]=_0x297c11,_0x2dd74e(this,_0x432940(0x397),'awaiting'),_0x2dd74e(this,'_resendTimeout',0x0),_0x2dd74e(this,_0x432940(0x143),0x0),_0x2dd74e(this,'_resendTimer',void 0x0),_0x2dd74e(this,_0x432940(0x1e0),void 0x0);}[_0x27b931(0x219)](_0x4bfcd3){const _0x6c38e0=_0x27b931;this[_0x6c38e0(0x2dc)]();let _0x5e7f22=this[_0x6c38e0(0x2fe)][_0x6c38e0(0x392)](_0x15bd87,this['unitID'],this[_0x6c38e0(0x2af)],this[_0x6c38e0(0x1f7)],[_0x4bfcd3],this['_handler'],this[_0x6c38e0(0x2ac)]);return _0x5e7f22['_updateLocalCache'](),_0x5e7f22;}['onRemoteChangeset'](_0x4ed9db){const _0x244667=_0x27b931;if(this[_0x244667(0x16d)](_0x4ed9db))return this[_0x244667(0x2dc)](),this[_0x244667(0x2fe)][_0x244667(0x392)](_0x3b1a33,this[_0x244667(0x2ea)],this['type'],this[_0x244667(0x1f7)],[],null,[_0x4ed9db],this['_handler']);try{let _0x4c992c=this['_transformService']['transformChangesets']([_0x4ed9db],[this[_0x244667(0x1f7)]],!0x1);if((0x0,_0x149d12['isTransformChangesetsSuccess'])(_0x4c992c)){let {c1Prime:_0x482d9d,c2Prime:_0x15fd72}=_0x4c992c;this[_0x244667(0x164)](_0x482d9d[0x0]),_0x15fd72[0x0]['baseRev']=this[_0x244667(0x319)](),this[_0x244667(0x2dc)]();let _0x505cb5=this['_injector'][_0x244667(0x392)](_0x273481,this[_0x244667(0x2ea)],this[_0x244667(0x2af)],_0x15fd72[0x0],this[_0x244667(0x13b)]);return _0x505cb5[_0x244667(0x292)](),_0x505cb5;}throw _0x4c992c[_0x244667(0x294)];}catch(_0x545e0b){return this[_0x244667(0x1a1)][_0x244667(0x294)](_0x545e0b),this[_0x244667(0x270)](!0x1);}}[_0x27b931(0x420)](_0x51cde3){const _0x50332c=_0x27b931;this[_0x50332c(0x2dc)]();let _0x55bbc0=this[_0x50332c(0x105)]['getCurrentRevOfUnit'](this[_0x50332c(0x2ea)]);if(_0x51cde3['revision']<=_0x55bbc0)return this;if(this[_0x50332c(0x16d)](_0x51cde3))return this['_injector'][_0x50332c(0x392)](_0x3b1a33,this[_0x50332c(0x2ea)],this[_0x50332c(0x2af)],this[_0x50332c(0x1f7)],[],_0x51cde3[_0x50332c(0xe7)],[],this[_0x50332c(0x13b)]);this[_0x50332c(0x1cd)]();let _0x1acb96=this['_injector']['createInstance'](_0x50a3a4,this[_0x50332c(0x2ea)],this['type'],this[_0x50332c(0x13b)]);return _0x1acb96[_0x50332c(0x292)](),_0x1acb96;}[_0x27b931(0xef)](_0x1ea7c4){const _0x51aca7=_0x27b931;return this[_0x51aca7(0x270)](!!(_0x1ea7c4!=null&&_0x1ea7c4[_0x51aca7(0x174)]));}[_0x27b931(0x21d)](_0x4087a7){const _0x4aacb7=_0x27b931;return this[_0x4aacb7(0x143)]>_0xb2329d?this[_0x4aacb7(0x229)]():(this[_0x4aacb7(0x2ac)]=_0xa9ec8e(this[_0x4aacb7(0x1ea)],{'timeout':this['_resendTimeout'],'reqId':_0x4087a7[_0x4aacb7(0x20d)]}),this['_sender']=this['_resendTimer'][_0x4aacb7(0x38e)](({reqId:_0x1dd7b8,timeout:_0x2a1172})=>{this['_resendWithTimeout'](_0x1dd7b8,_0x2a1172);}),this);}[_0x27b931(0x229)](){const _0x148910=_0x27b931;return this[_0x148910(0x2dc)](),this[_0x148910(0x2fe)][_0x148910(0x392)](_0x58261a,this[_0x148910(0x2ea)],this[_0x148910(0x2af)],this[_0x148910(0x1f7)],[],this[_0x148910(0x13b)]);}[_0x27b931(0x2d1)](){return this;}[_0x27b931(0x36c)](){const _0x1efb13=_0x27b931;this[_0x1efb13(0x13b)][_0x1efb13(0x244)](this[_0x1efb13(0x1f7)]);}[_0x27b931(0x270)](_0x595b5a){const _0x1b7f3f=_0x27b931;return this[_0x1b7f3f(0x2dc)](),this[_0x1b7f3f(0x2fe)][_0x1b7f3f(0x392)](_0x41f3d6,this[_0x1b7f3f(0x2ea)],this[_0x1b7f3f(0x2af)],this['_awaitingChangeset'],[],this[_0x1b7f3f(0x13b)],_0x595b5a);}[_0x27b931(0x367)](_0x41b188,_0x3d0d10){const _0xe5273f=_0x27b931;var _0x4bd098;_0x41b188===((_0x4bd098=this[_0xe5273f(0x1f7)])==null?void 0x0:_0x4bd098[_0xe5273f(0x20d)])&&(this[_0xe5273f(0x36c)](),this[_0xe5273f(0x1ea)]=_0x3d0d10===0x0?0x3e8:Math[_0xe5273f(0x24b)](_0x3d0d10*0x2,_0x3d7ed8),this[_0xe5273f(0x143)]+=this[_0xe5273f(0x1ea)]);}[_0x27b931(0x2dc)](){const _0x198027=_0x27b931;var _0x377e74;(_0x377e74=this[_0x198027(0x1e0)])==null||_0x377e74[_0x198027(0x138)](),this[_0x198027(0x1ea)]=0x0,this[_0x198027(0x143)]=0x0;}};_0x42dff3=_0x273481=_0x1fb4c2([_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x6,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x7,_0x47f753['ILogService']),_0x2af294(0x8,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0x9,_0x47f753[_0x27b931(0x3aa)]),_0x2af294(0xa,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x42dff3);let _0x15bd87=_0xf27d34=class extends _0x245952{constructor(_0x5cae2d,_0x268ec7,_0x378a20,_0x29631c,_0x41d31f,_0x47303c,_0x42d343,_0x31be82,_0x38e4d3,_0x3f00ff,_0x51e1a3,_0x15d3d0,_0x3fa04e){const _0xe3a42b=_0x27b931;super(_0x5cae2d,_0x268ec7,_0x378a20,_0x29631c,_0x41d31f,_0x38e4d3,_0x15d3d0,_0x31be82,_0x3fa04e),this[_0xe3a42b(0x2fe)]=_0x42d343,this['_logService']=_0x3f00ff,this[_0xe3a42b(0x14e)]=_0x51e1a3,this[_0xe3a42b(0x23c)]=_0x3fa04e,_0x2dd74e(this,'status',_0xe3a42b(0x18d)),_0x2dd74e(this,_0xe3a42b(0x1ea),0x0),_0x2dd74e(this,_0xe3a42b(0x143),0x0),_0x2dd74e(this,'_resendTimer',void 0x0),_0x2dd74e(this,_0xe3a42b(0x1e0),void 0x0),_0x47303c&&(this[_0xe3a42b(0x2ac)]=_0x47303c,this['_sender']=this['_resendTimer']['subscribe'](({reqId:_0x5ad90b,timeout:_0x2fb45d})=>{const _0x18284c=_0xe3a42b;this[_0x18284c(0x367)](_0x5ad90b,_0x2fb45d);}));}[_0x27b931(0x219)](_0x3944dd){const _0x5b3eaa=_0x27b931;return this[_0x5b3eaa(0x3da)][_0x5b3eaa(0x30b)](_0x3944dd),this;}[_0x27b931(0xf7)](_0x43bd73){const _0x11dd14=_0x27b931;if(this['_checkMissing'](_0x43bd73))return this[_0x11dd14(0x2dc)](),this[_0x11dd14(0x2fe)][_0x11dd14(0x392)](_0x3b1a33,this['unitID'],this[_0x11dd14(0x2af)],this[_0x11dd14(0x1f7)],this[_0x11dd14(0x3da)],null,[_0x43bd73],this[_0x11dd14(0x13b)]);try{let _0x11d314=this[_0x11dd14(0x14e)][_0x11dd14(0x211)]([_0x43bd73],[this['_awaitingChangeset']],!0x1);if((0x0,_0x149d12['isTransformChangesetsSuccess'])(_0x11d314)){let {c1Prime:_0x36e158,c2Prime:_0xa4f225}=_0x11d314,_0x55ec0f=this[_0x11dd14(0x14e)][_0x11dd14(0x17a)](_0x36e158[0x0],this['_pendingMutations']);if((0x0,_0x149d12[_0x11dd14(0x421)])(_0x55ec0f)){let {c1Prime:_0x1fddd4,m2Prime:_0x18ab84}=_0x55ec0f;return this[_0x11dd14(0x164)](_0x1fddd4),_0xa4f225[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x11dd14(0x2dc)](),this[_0x11dd14(0x2fe)]['createInstance'](_0xf27d34,this[_0x11dd14(0x2ea)],this['type'],_0xa4f225[0x0],_0x18ab84,this[_0x11dd14(0x13b)],void 0x0);}throw _0x55ec0f['error'];}throw _0x11d314[_0x11dd14(0x294)];}catch(_0x4fbe08){return this[_0x11dd14(0x1a1)]['error'](_0x4fbe08),this['_onConflict'](!0x1);}}[_0x27b931(0x420)](_0x95e346){const _0x5ca60b=_0x27b931;this[_0x5ca60b(0x2dc)]();let _0x49512a=this[_0x5ca60b(0x319)]();if(_0x95e346['revision']<=_0x49512a)return this;if(this[_0x5ca60b(0x16d)](_0x95e346))return this['_injector'][_0x5ca60b(0x392)](_0x3b1a33,this[_0x5ca60b(0x2ea)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],_0x95e346[_0x5ca60b(0xe7)],[],this[_0x5ca60b(0x13b)]);this[_0x5ca60b(0x1cd)]();let _0x2d5898=this[_0x5ca60b(0x2fe)][_0x5ca60b(0x392)](_0x467875,this[_0x5ca60b(0x2ea)],this['type'],this['_pendingMutations'],this['_handler']);return _0x2d5898[_0x5ca60b(0x34b)](),_0x2d5898[_0x5ca60b(0x292)](),_0x2d5898;}['onRemoteRej'](_0x57f853){const _0x5a8459=_0x27b931;return this[_0x5a8459(0x270)](!!(_0x57f853!=null&&_0x57f853[_0x5a8459(0x174)]));}[_0x27b931(0x21d)](_0x345f76){const _0x520876=_0x27b931;return this[_0x520876(0x143)]>_0xb2329d?this[_0x520876(0x229)]():(this[_0x520876(0x2ac)]=_0xa9ec8e(this['_resendTimeout'],{'timeout':this[_0x520876(0x1ea)],'reqId':_0x345f76['reqId']}),this[_0x520876(0x1e0)]=this[_0x520876(0x2ac)][_0x520876(0x38e)](({reqId:_0x7ffb81,timeout:_0x7d4633})=>{const _0xade1d9=_0x520876;this[_0xade1d9(0x367)](_0x7ffb81,_0x7d4633);}),this);}[_0x27b931(0x229)](){const _0xd05189=_0x27b931;return this[_0xd05189(0x2dc)](),this[_0xd05189(0x2fe)][_0xd05189(0x392)](_0x58261a,this[_0xd05189(0x2ea)],this[_0xd05189(0x2af)],this[_0xd05189(0x1f7)],this['_pendingMutations'],this[_0xd05189(0x13b)]);}[_0x27b931(0x2d1)](){return this;}[_0x27b931(0x36c)](){const _0x417c48=_0x27b931;this['_handler'][_0x417c48(0x244)](this[_0x417c48(0x1f7)]);}['_onConflict'](_0x2f0e27){const _0x4f1741=_0x27b931;return this[_0x4f1741(0x2dc)](),this[_0x4f1741(0x2fe)]['createInstance'](_0x41f3d6,this[_0x4f1741(0x2ea)],this[_0x4f1741(0x2af)],null,this[_0x4f1741(0x3da)],this[_0x4f1741(0x13b)],_0x2f0e27);}[_0x27b931(0x367)](_0x78fb5c,_0x30fb6b){const _0x365b27=_0x27b931;var _0x2c2508;_0x78fb5c===((_0x2c2508=this[_0x365b27(0x1f7)])==null?void 0x0:_0x2c2508[_0x365b27(0x20d)])&&(this[_0x365b27(0x36c)](),this[_0x365b27(0x1ea)]=_0x30fb6b===0x0?0x3e8:Math[_0x365b27(0x24b)](_0x30fb6b*0x2,_0x3d7ed8),this[_0x365b27(0x143)]+=this['_resendTimeout']);}[_0x27b931(0x2dc)](){const _0x53af1c=_0x27b931;var _0x68ab8a;(_0x68ab8a=this[_0x53af1c(0x1e0)])==null||_0x68ab8a[_0x53af1c(0x138)](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x15bd87=_0xf27d34=_0x1fb4c2([_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['Injector'])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x8,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0xb,_0x47f753['IUndoRedoService']),_0x2af294(0xc,(0x0,_0x47f753['Optional'])(_0x419224))],_0x15bd87);let _0x41f3d6=class extends _0x245952{constructor(_0x19e308,_0x3fcbc9,_0x48c12a,_0x477105,_0x3220b3,_0x1e41b0=!0x1,_0x204bd9,_0x3d047f,_0x7e55d4,_0x3ddb7f,_0x4f471c,_0x18420f,_0x297cd0){const _0x3bfc05=_0x27b931;super(_0x19e308,_0x3fcbc9,_0x48c12a,_0x477105,_0x3220b3,_0x3d047f,_0x7e55d4,_0x3ddb7f,_0x297cd0),this[_0x3bfc05(0x251)]=_0x1e41b0,this['_permissionService']=_0x204bd9,this[_0x3bfc05(0x1ff)]=_0x4f471c,this[_0x3bfc05(0x11a)]=_0x18420f,this[_0x3bfc05(0x23c)]=_0x297cd0,_0x2dd74e(this,_0x3bfc05(0x397),_0x3bfc05(0x192)),this[_0x3bfc05(0x1b9)](),this['_clearLocalCache'](),this[_0x3bfc05(0xf9)]();}[_0x27b931(0x219)](){return this;}[_0x27b931(0xf7)](){return this;}[_0x27b931(0x420)](){return this;}[_0x27b931(0xef)](){return this;}[_0x27b931(0x21d)](){return this;}[_0x27b931(0x229)](){return this;}[_0x27b931(0x2d1)](){return this;}[_0x27b931(0x36c)](){const _0x58b88d=_0x27b931;throw Error(_0x58b88d(0x3b4));}[_0x27b931(0x1bb)](){const _0xfb9183=_0x27b931;var _0x42b1b6,_0xf7e2c7,_0x2e10ed;(_0x42b1b6=this['_localCacheService'])==null||(_0xf7e2c7=_0x42b1b6['backupOfflineData'])==null||(_0xf7e2c7=_0xf7e2c7[_0xfb9183(0x25a)](_0x42b1b6,this[_0xfb9183(0x2ea)],_0xfb9183(0x192)))==null||_0xf7e2c7[_0xfb9183(0x29a)](()=>void 0x0),(_0x2e10ed=this['_localCacheService'])==null||_0x2e10ed[_0xfb9183(0x32a)](this['unitID'],this[_0xfb9183(0x2af)],null,[]);}[_0x27b931(0x1b9)](){const _0x17cfb3=_0x27b931;this['_isPermissionRej']?this[_0x17cfb3(0x11a)][_0x17cfb3(0x1f8)]({'id':'PERMISSION_DENIED'}):this[_0x17cfb3(0x11a)][_0x17cfb3(0x1f8)]({'id':'CONFLICT'});}[_0x27b931(0xf9)](){const _0x2d9f39=_0x27b931;this[_0x2d9f39(0x373)][_0x2d9f39(0x1a8)](new _0x1e2709[(_0x2d9f39(0x1ec))](this['unitID'])['id'],!0x1);}};_0x41f3d6=_0x1fb4c2([_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x3ce)])),_0x2af294(0x7,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x8,_0x47f753[_0x27b931(0x3aa)]),_0x2af294(0x9,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0xa,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['LocaleService'])),_0x2af294(0xb,(0x0,_0x47f753['Inject'])(_0x2a71d9)),_0x2af294(0xc,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x41f3d6);let _0x58261a=class extends _0x245952{constructor(_0x32f420,_0x58701e,_0x40fe08,_0x41497e,_0x48f67d,_0x1b2d6f,_0x3ca9ac,_0x292b5b,_0x33ae8e,_0x595459){const _0x294e0d=_0x27b931;super(_0x32f420,_0x58701e,_0x40fe08,_0x41497e,_0x48f67d,_0x292b5b,_0x33ae8e,_0x3ca9ac,_0x595459),this[_0x294e0d(0x2fe)]=_0x1b2d6f,_0x2dd74e(this,'status',_0x294e0d(0x37a));}[_0x27b931(0x219)](_0x326a58){const _0x3ff21c=_0x27b931;return this['_pendingMutations'][_0x3ff21c(0x30b)](_0x326a58),this[_0x3ff21c(0x292)](),this;}[_0x27b931(0xf7)](_0x3e8f63){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x27b931(0x420)](){const _0x2a5a00=_0x27b931;throw Error(_0x2a5a00(0x3d0));}[_0x27b931(0xef)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x27b931(0x21d)](){return this;}[_0x27b931(0x229)](){return this;}[_0x27b931(0x2d1)](){const _0x398cd6=_0x27b931;let {_injector:_0x24537f,_pendingMutations:_0x23ca6e,_awaitingChangeset:_0x19d2e8,unitID:_0x1359e8,_handler:_0x4e383a,type:_0xbb3a5f}=this,_0x714acb=_0x1512ca(_0x24537f,_0x1359e8,_0xbb3a5f,_0x19d2e8,_0x23ca6e,_0x4e383a);return _0x714acb instanceof _0x467875?_0x714acb[_0x398cd6(0x34b)]():(_0x714acb instanceof _0x15bd87||_0x714acb instanceof _0x42dff3)&&_0x714acb['resend'](),_0x714acb;}['resend'](){const _0x39436b=_0x27b931;throw Error(_0x39436b(0x327));}};_0x58261a=_0x1fb4c2([_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x7,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x8,_0x47f753['IUndoRedoService']),_0x2af294(0x9,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x58261a);let _0x3b1a33=class extends _0x245952{constructor(_0x3cfcad,_0x5c20f7,_0x4c860f,_0x45ec50,_0x1e404c,_0x4a488b,_0x1738c2,_0x12d7ec,_0xd34bc4,_0x1a8734,_0x4b46f0,_0x4f66f8,_0x3cbe37,_0x34a70b){const _0x54c103=_0x27b931;super(_0x3cfcad,_0x5c20f7,_0x4c860f,_0x45ec50,_0x1738c2,_0x4b46f0,_0x4f66f8,_0xd34bc4,_0x34a70b),this['_acknowledgedAwaitingRevision']=_0x1e404c,this['_queuedRemoteChangesets']=_0x4a488b,this[_0x54c103(0x2fe)]=_0x12d7ec,this[_0x54c103(0x1a1)]=_0x1a8734,this[_0x54c103(0x14e)]=_0x3cbe37,this['localCacheService']=_0x34a70b,_0x2dd74e(this,_0x54c103(0x397),_0x54c103(0x11d));}[_0x27b931(0x2e2)](_0x223b16){const _0x1bbce3=_0x27b931;try{if(this[_0x1bbce3(0xe8)](_0x223b16)[_0x1bbce3(0x147)])throw Error(_0x1bbce3(0x3f2));if(this['_handleRemoteChangesets']([...this['_queuedRemoteChangesets']][_0x1bbce3(0xd0)]((_0x4935fb,_0x3813d5)=>_0x4935fb[_0x1bbce3(0xe7)]-_0x3813d5['revision']))[_0x1bbce3(0x147)])return this[_0x1bbce3(0x2fd)]=[],this[_0x1bbce3(0x292)](),this[_0x1bbce3(0x13b)][_0x1bbce3(0x2ab)]({'from':this[_0x1bbce3(0x319)](),'to':0x0}),this;let _0x3fbd01=this[_0x1bbce3(0x1f7)],_0x4ccd8d=this[_0x1bbce3(0x3da)],_0x50c95;if(_0x3fbd01&&_0x4ccd8d[_0x1bbce3(0x415)]!==0x0)_0x50c95=this[_0x1bbce3(0x2fe)]['createInstance'](_0x15bd87,this[_0x1bbce3(0x2ea)],this[_0x1bbce3(0x2af)],_0x3fbd01,_0x4ccd8d,this['_handler'],void 0x0);else{if(_0x3fbd01&&_0x4ccd8d[_0x1bbce3(0x415)]===0x0)_0x3fbd01[_0x1bbce3(0x250)]=this[_0x1bbce3(0x319)](),_0x50c95=this[_0x1bbce3(0x2fe)][_0x1bbce3(0x392)](_0x42dff3,this[_0x1bbce3(0x2ea)],this[_0x1bbce3(0x2af)],_0x3fbd01,this[_0x1bbce3(0x13b)]);else{if(_0x4ccd8d[_0x1bbce3(0x415)]!==0x0){let _0x409812=this[_0x1bbce3(0x2fe)][_0x1bbce3(0x392)](_0x467875,this[_0x1bbce3(0x2ea)],this[_0x1bbce3(0x2af)],_0x4ccd8d,this[_0x1bbce3(0x13b)]);_0x409812['_schedule'](),_0x50c95=_0x409812;}else _0x50c95=this[_0x1bbce3(0x2fe)]['createInstance'](_0x50a3a4,this[_0x1bbce3(0x2ea)],this[_0x1bbce3(0x2af)],this[_0x1bbce3(0x13b)]);}}return _0x50c95['_updateLocalCache'](),_0x50c95;}catch(_0x2d96ce){return this['_logService']['error'](_0x1bbce3(0x3e0),'failed\x20to\x20apply\x20missed\x20changesets!',_0x2d96ce),this[_0x1bbce3(0x2fe)][_0x1bbce3(0x392)](_0x41f3d6,this[_0x1bbce3(0x2ea)],this[_0x1bbce3(0x2af)],this[_0x1bbce3(0x1f7)],this[_0x1bbce3(0x3da)],this[_0x1bbce3(0x13b)],!0x1);}}[_0x27b931(0xe8)](_0x3e7595){const _0x5096e8=_0x27b931;this[_0x5096e8(0x27e)]();for(let _0xe20e73=0x0;_0xe20e73<_0x3e7595['length'];_0xe20e73++){let _0xa16fa=_0x3e7595[_0xe20e73],_0x88cb28=this[_0x5096e8(0x319)]();if(!(_0xa16fa[_0x5096e8(0xe7)]<=_0x88cb28)){if(_0xa16fa[_0x5096e8(0xe7)]>_0x88cb28+0x1)return{'missingChangesets':!0x0};if(this[_0x5096e8(0x37b)](_0xa16fa)){this[_0x5096e8(0x2e1)]();continue;}this[_0x5096e8(0x144)](_0xa16fa),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x3d11a7){const _0x5a74ca=_0x27b931;let _0xdaf86f=_0x3d11a7,_0x4925f2=this['_awaitingChangeset'];if(_0x4925f2){let _0x387d39=this[_0x5a74ca(0x14e)][_0x5a74ca(0x211)]([_0x3d11a7],[_0x4925f2],!0x1);if(!(0x0,_0x149d12[_0x5a74ca(0x40e)])(_0x387d39))throw _0x387d39[_0x5a74ca(0x294)];_0xdaf86f=_0x387d39[_0x5a74ca(0x2b1)][0x0],_0x4925f2=_0x387d39[_0x5a74ca(0x134)][0x0];}let _0x480a5c=this[_0x5a74ca(0x3da)];if(_0x480a5c['length']){let _0x46151f=this[_0x5a74ca(0x14e)][_0x5a74ca(0x17a)](_0xdaf86f,_0x480a5c);if(!(0x0,_0x149d12[_0x5a74ca(0x421)])(_0x46151f))throw _0x46151f['error'];_0xdaf86f=_0x46151f[_0x5a74ca(0x2b1)],_0x480a5c=_0x46151f[_0x5a74ca(0x3b0)];}this['_executeRemoteChangeset'](_0xdaf86f),_0x4925f2&&(_0x4925f2[_0x5a74ca(0x250)]=this['_getCurrentRevision']()),this['_awaitingChangeset']=_0x4925f2,this[_0x5a74ca(0x3da)]=_0x480a5c;}['_acknowledgeAwaitingIfReady'](){const _0x6864a6=_0x27b931;if(!this[_0x6864a6(0x1f7)]||this[_0x6864a6(0x199)]==null)return;let _0x5b3fec=this[_0x6864a6(0x319)]();if(this['_acknowledgedAwaitingRevision']<=_0x5b3fec)throw Error(_0x6864a6(0x2b0)+this['_acknowledgedAwaitingRevision']+'.');this[_0x6864a6(0x199)]===_0x5b3fec+0x1&&this['_acknowledgeAwaiting']();}[_0x27b931(0x2e1)](){const _0x2efd38=_0x27b931;this[_0x2efd38(0x1cd)](),this[_0x2efd38(0x1f7)]=null,this[_0x2efd38(0x199)]=null;}[_0x27b931(0x37b)](_0x2e2752){const _0x3f8ffc=_0x27b931;let _0x26c8d0=this[_0x3f8ffc(0x1f7)];return!_0x26c8d0||!_0x26c8d0[_0x3f8ffc(0x2c9)]||_0x26c8d0['reqId']===null||_0x26c8d0[_0x3f8ffc(0x20d)]===void 0x0?!0x1:_0x2e2752[_0x3f8ffc(0x2ea)]===_0x26c8d0['unitID']&&_0x2e2752[_0x3f8ffc(0x2c9)]===_0x26c8d0[_0x3f8ffc(0x2c9)]&&_0x2e2752[_0x3f8ffc(0x20d)]===_0x26c8d0[_0x3f8ffc(0x20d)];}['resend'](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x503f15){const _0x2e8e48=_0x27b931;return this[_0x2e8e48(0x3da)][_0x2e8e48(0x30b)](_0x503f15),this;}[_0x27b931(0xf7)](_0x277fb8){const _0x3b6bc8=_0x27b931;return this[_0x3b6bc8(0x2fd)][_0x3b6bc8(0x30b)](_0x277fb8),this;}[_0x27b931(0x420)](_0x3db218){const _0x586464=_0x27b931;if(this[_0x586464(0x1f7)]){let _0x339be2=this[_0x586464(0x319)]();return _0x3db218['revision']<=_0x339be2||(_0x339be2+0x1===_0x3db218['revision']?(this[_0x586464(0x1cd)](),this[_0x586464(0x1f7)]=null,this[_0x586464(0x199)]=null):this[_0x586464(0x199)]=_0x3db218['revision']),this;}if(_0x3db218['revision']<=this[_0x586464(0x319)]())return this;throw Error(_0x586464(0x365));}[_0x27b931(0xef)](_0x5bf8a3){const _0x23554b=_0x27b931;return this['_onConflict'](!!(_0x5bf8a3!=null&&_0x5bf8a3[_0x23554b(0x174)]));}[_0x27b931(0x21d)](){return this;}[_0x27b931(0x229)](){const _0x45970e=_0x27b931;return this[_0x45970e(0x2fe)][_0x45970e(0x392)](_0x58261a,this[_0x45970e(0x2ea)],this[_0x45970e(0x2af)],this[_0x45970e(0x1f7)],this['_pendingMutations'],this[_0x45970e(0x13b)]);}[_0x27b931(0x2d1)](){return this;}[_0x27b931(0x270)](_0x3eea07){const _0x10f9fb=_0x27b931;return this['_injector'][_0x10f9fb(0x392)](_0x41f3d6,this[_0x10f9fb(0x2ea)],this[_0x10f9fb(0x2af)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x10f9fb(0x13b)],_0x3eea07);}};_0x3b1a33=_0x1fb4c2([_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x8,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x47f753['ICommandService']),_0x2af294(0xb,_0x47f753[_0x27b931(0x3aa)]),_0x2af294(0xc,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x3b1a33);function _0x1512ca(_0x4f7dbe,_0x272d92,_0x156cee,_0x127416,_0x4185a6,_0x59d0ff){const _0x1cf845=_0x27b931;return _0x127416&&_0x4185a6[_0x1cf845(0x415)]?_0x4f7dbe[_0x1cf845(0x392)](_0x15bd87,_0x272d92,_0x156cee,_0x127416,_0x4185a6,_0x59d0ff,void 0x0):_0x127416?_0x4f7dbe['createInstance'](_0x42dff3,_0x272d92,_0x156cee,_0x127416,_0x59d0ff):_0x4185a6[_0x1cf845(0x415)]?_0x4f7dbe['createInstance'](_0x467875,_0x272d92,_0x156cee,_0x4185a6,_0x59d0ff):_0x4f7dbe['createInstance'](_0x50a3a4,_0x272d92,_0x156cee,_0x59d0ff);}let _0x25f5ac=class extends _0x47f753[_0x27b931(0xf4)]{get[_0x27b931(0x311)](){const _0x2fa006=_0x27b931;return this[_0x2fa006(0x1b5)];}constructor(_0x213ced,_0x5b6284,_0x35a374,_0x14785b,_0x3417ab,_0x38c22f,_0x30fc17,_0x47d71a,_0x348e3d,_0xc68e03,_0x4f3939,_0x49b3ed,_0x326e0f,_0x337a0b){const _0x4cde78=_0x27b931;super(),this[_0x4cde78(0x2ea)]=_0x213ced,this[_0x4cde78(0x1ee)]=_0x5b6284,this[_0x4cde78(0x2f2)]=_0x35a374,this['_injector']=_0x14785b,this[_0x4cde78(0x39c)]=_0x3417ab,this[_0x4cde78(0x1ff)]=_0x38c22f,this[_0x4cde78(0x105)]=_0x30fc17,this[_0x4cde78(0x304)]=_0x47d71a,this[_0x4cde78(0x37d)]=_0x348e3d,this[_0x4cde78(0x1a1)]=_0xc68e03,this[_0x4cde78(0x38d)]=_0x4f3939,this[_0x4cde78(0x373)]=_0x49b3ed,this['_singleActiveUnitService']=_0x326e0f,this[_0x4cde78(0x189)]=_0x337a0b,_0x2dd74e(this,_0x4cde78(0xd4),new _0x470009[(_0x4cde78(0x25b))](null)),_0x2dd74e(this,_0x4cde78(0x3db),this[_0x4cde78(0xd4)][_0x4cde78(0x2b2)]()),_0x2dd74e(this,'_state',void 0x0),_0x2dd74e(this,_0x4cde78(0x3be),!0x1),_0x2dd74e(this,'_changesetSessionId',''),_0x2dd74e(this,_0x4cde78(0x2c7),0x0),_0x2dd74e(this,_0x4cde78(0x3cd),this['state$'][_0x4cde78(0x11f)]((0x0,_0x470009[_0x4cde78(0x394)])(_0x40f002=>_0x40f002?_0x40f002[_0x4cde78(0x397)]:_0x4cde78(0x37a)),(0x0,_0x470009['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_0x2dd74e(this,_0x4cde78(0x2b7),!0x1),_0x2dd74e(this,_0x4cde78(0x1d8),[]);}async[_0x27b931(0x362)](){const _0x2d2364=_0x27b931;if(this[_0x2d2364(0x311)])throw Error(_0x2d2364(0x2dd));await this[_0x2d2364(0xee)]();}[_0x27b931(0xe6)](){const _0x5c398c=_0x27b931;return this[_0x5c398c(0x3be)]=!0x0,(0x0,_0x47f753[_0x5c398c(0x21a)])(()=>{const _0x53e78f=_0x5c398c;this[_0x53e78f(0x3be)]=!0x1,this[_0x53e78f(0x173)]();});}[_0x27b931(0x289)](_0x432db0){this['_onLocalMutation'](_0x432db0);}[_0x27b931(0x3f5)](_0x37a638){const _0x16e3bf=_0x27b931;this['_state']=_0x37a638,this[_0x16e3bf(0xd4)][_0x16e3bf(0x396)](_0x37a638);}async[_0x27b931(0xee)](){const _0x3499e8=_0x27b931;if(this[_0x3499e8(0x3f5)](await this['_createInitialState']()),this[_0x3499e8(0x2ee)]){var _0x593177;(_0x593177=this['_singleActiveUnitService'])==null||_0x593177['editingUnit'](this[_0x3499e8(0x2ea)]),this[_0x3499e8(0x3d7)](this[_0x3499e8(0x2ee)][_0x3499e8(0x119)](this['unitID'])['subscribe'](_0x5b4d1f=>{const _0x42d776=_0x3499e8;this[_0x42d776(0x1a1)][_0x42d776(0x418)](_0x42d776(0x237),'editing\x20status\x20changed\x20to',_0x5b4d1f),_0x5b4d1f===0x1?(this[_0x42d776(0x304)][_0x42d776(0x1f8)]({'id':_0x42d776(0x113)}),this[_0x42d776(0x373)]['updatePermissionPoint'](new _0x1e2709['WorkbookEditablePermission'](this[_0x42d776(0x2ea)])['id'],!0x1),this[_0x42d776(0x373)][_0x42d776(0x2ed)](!0x1)):(this[_0x42d776(0x373)]['updatePermissionPoint'](new _0x1e2709['WorkbookEditablePermission'](this[_0x42d776(0x2ea)])['id'],!0x0),this['_permissionService'][_0x42d776(0x2ed)](!0x0));}));}let _0x4fccd0=!0x1;return this[_0x3499e8(0x3d7)](this['session'][_0x3499e8(0x2f1)][_0x3499e8(0x38e)](_0x4de845=>{const _0x228b93=_0x3499e8;_0x4de845===0x3?this['_toggleOnline'](_0x4fccd0):_0x4de845===0x2&&(_0x4fccd0=!0x0,this[_0x228b93(0x158)]());})),this[_0x3499e8(0x3d7)](this[_0x3499e8(0x1ee)][_0x3499e8(0x2ef)]['subscribe'](_0x1b00d7=>{const _0x3df785=_0x3499e8;try{switch(_0x1b00d7['eventID']){case _0x149d12[_0x3df785(0x3eb)][_0x3df785(0x391)]:this[_0x3df785(0x306)]((0x0,_0x149d12['parseProtocolChangeset'])(_0x1b00d7['data']));break;case _0x149d12[_0x3df785(0x3eb)]['CHANGESET_ACK']:this[_0x3df785(0x1c4)](_0x1b00d7['data']);break;case _0x149d12[_0x3df785(0x3eb)][_0x3df785(0x3ab)]:this[_0x3df785(0x307)]();break;case _0x149d12[_0x3df785(0x3eb)][_0x3df785(0x123)]:this[_0x3df785(0x372)](_0x1b00d7[_0x3df785(0x401)]);break;case _0x149d12[_0x3df785(0x3eb)][_0x3df785(0x2fb)]:this[_0x3df785(0x31f)](_0x1b00d7[_0x3df785(0x401)][_0x3df785(0x3a9)][_0x3df785(0x394)](_0x1cce04=>(0x0,_0x149d12[_0x3df785(0x3b3)])(_0x1cce04)));break;case _0x149d12[_0x3df785(0x3eb)][_0x3df785(0x168)]:this[_0x3df785(0x307)]({'isPermissionRej':!0x0});break;case _0x149d12['CollaborationEvent']['UNISCRIPT_RUN']:break;}}catch(_0x4c10aa){throw console[_0x3df785(0x294)](_0x3df785(0x33e),_0x4c10aa),_0x4c10aa;}})),this[_0x3499e8(0x1b5)];}['_unlockTransition'](){const _0x9a1961=_0x27b931;this[_0x9a1961(0x2b7)]=!0x1;}[_0x27b931(0x102)](){const _0x11c03b=_0x27b931;if(this[_0x11c03b(0x2b7)])throw Error('[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.');this[_0x11c03b(0x2b7)]=!0x0;}[_0x27b931(0x37e)](_0x5b939a){const _0xe99e73=_0x27b931;this[_0xe99e73(0x102)](),this[_0xe99e73(0x3f5)](this['_state']['appendMutation'](_0x5b939a)),this[_0xe99e73(0x353)]();}[_0x27b931(0x306)](_0x37f8b1){const _0x1861e9=_0x27b931;if(!(_0x37f8b1['revision']<=this['_revisionService'][_0x1861e9(0x322)](this['unitID']))){if(this[_0x1861e9(0x3be)]){this[_0x1861e9(0x1d8)][_0x1861e9(0x30b)](_0x37f8b1);return;}this[_0x1861e9(0x126)](_0x37f8b1);}}[_0x27b931(0x173)](){const _0xe69977=_0x27b931;this[_0xe69977(0x1d8)][_0xe69977(0x302)](_0x6a6e40=>this[_0xe69977(0x126)](_0x6a6e40)),this[_0xe69977(0x1d8)]=[];}[_0x27b931(0x126)](_0x2c66d8){const _0x1180ae=_0x27b931;let _0x1b88ae=this['_compressMutationService'][_0x1180ae(0x183)][_0x1180ae(0x2a8)](this[_0x1180ae(0x39c)][_0x1180ae(0x183)][_0x1180ae(0x351)]()[_0x1180ae(0x188)])(_0x2c66d8['mutations'],null)||_0x2c66d8['mutations'],_0x2b3d70={..._0x2c66d8,'mutations':_0x1b88ae};this['_lockTransition'](),this[_0x1180ae(0x3f5)](this[_0x1180ae(0x1b5)]['onRemoteChangeset'](_0x2b3d70)),this[_0x1180ae(0x353)]();}['_onRemoteACK'](_0x591810){const _0x3c4969=_0x27b931;this[_0x3c4969(0x102)](),this['_updateState'](this[_0x3c4969(0x1b5)]['onRemoteAck'](_0x591810)),this[_0x3c4969(0x353)]();}[_0x27b931(0x307)](_0x7266a){const _0x3b79b9=_0x27b931;this[_0x3b79b9(0x102)](),this[_0x3b79b9(0x3f5)](this[_0x3b79b9(0x1b5)][_0x3b79b9(0xef)](_0x7266a)),this[_0x3b79b9(0x353)]();}[_0x27b931(0x372)](_0x344e02){const _0x1f8841=_0x27b931;this[_0x1f8841(0x102)](),this[_0x1f8841(0x3f5)](this[_0x1f8841(0x1b5)][_0x1f8841(0x21d)](_0x344e02)),this['_unlockTransition']();}[_0x27b931(0x31f)](_0x2832c4){const _0x344727=_0x27b931;if(!(this[_0x344727(0x1b5)]instanceof _0x3b1a33))throw TypeError(_0x344727(0x2b8));let _0x50a849=_0x2832c4[_0x344727(0x394)](_0x52cef1=>{const _0x5a47ff=_0x344727;let _0x426774=this[_0x5a47ff(0x39c)][_0x5a47ff(0x183)][_0x5a47ff(0x2a8)](this[_0x5a47ff(0x39c)]['interceptor'][_0x5a47ff(0x351)]()[_0x5a47ff(0x188)])(_0x52cef1[_0x5a47ff(0x35e)],null)||_0x52cef1[_0x5a47ff(0x35e)];return{..._0x52cef1,'mutations':_0x426774};});this[_0x344727(0x102)](),this['_updateState'](this[_0x344727(0x1b5)][_0x344727(0x2e2)](_0x50a849)),this[_0x344727(0x353)]();}[_0x27b931(0x158)](){const _0x389eb4=_0x27b931;this[_0x389eb4(0x102)](),this[_0x389eb4(0x3f5)](this[_0x389eb4(0x1b5)][_0x389eb4(0x229)]()),this[_0x389eb4(0x353)]();}[_0x27b931(0x2e8)](_0x3f8a72=!0x1){const _0x1aab48=_0x27b931;this[_0x1aab48(0x102)](),this[_0x1aab48(0x3f5)](this[_0x1aab48(0x1b5)][_0x1aab48(0x2d1)]()),this['_unlockTransition']();let _0x29bcbb=this[_0x1aab48(0x1b5)];_0x3f8a72&&_0x29bcbb instanceof _0x50a3a4&&(this[_0x1aab48(0x102)](),this[_0x1aab48(0x3f5)](_0x29bcbb['fetchMiss']()),this['_unlockTransition']());}async['_createInitialState'](){return new Promise(_0x2944c7=>{const _0x1f2c28=_0x1420;this[_0x1f2c28(0x1ee)][_0x1f2c28(0x2f1)]['pipe']((0x0,_0x470009[_0x1f2c28(0x1c3)])(0x1))[_0x1f2c28(0x38e)](async _0x375609=>{const _0x1e4c9b=_0x1f2c28;_0x2944c7(await this[_0x1e4c9b(0x1ed)](_0x375609===0x3));});});}[_0x27b931(0x411)](){const _0x5086c9=_0x27b931;let _0x959ff8=this[_0x5086c9(0x2ea)];return{'onStateChange':(_0x351825,_0x5d09a4)=>{const _0x580568=_0x5086c9;if(_0x351825!==this[_0x580568(0x1b5)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x351825[_0x580568(0x397)]+_0x580568(0x347)+_0x5d09a4[_0x580568(0x397)]+_0x580568(0x293)+this[_0x580568(0x1b5)][_0x580568(0x397)]);this[_0x580568(0x3f5)](_0x5d09a4);},'onSendChangeset':_0x5aa354=>{const _0x34aa01=_0x5086c9;_0x5aa354[_0x34aa01(0x2c9)]||(_0x5aa354[_0x34aa01(0x2c9)]=this[_0x34aa01(0x2a6)],_0x5aa354[_0x34aa01(0x20d)]=++this[_0x34aa01(0x2c7)]);let _0x12f673={'eventID':_0x149d12['CollaborationEvent'][_0x34aa01(0x15e)],'data':{'unitID':_0x5aa354[_0x34aa01(0x2ea)],'unitType':this[_0x34aa01(0x2f2)],'changeset':_0x5aa354,'memberID':this[_0x34aa01(0x1ee)]['getMemberID']()}};this[_0x34aa01(0x1ee)][_0x34aa01(0x16b)](_0x12f673,this[_0x34aa01(0x2ea)]);},'onMissingChangesets':({from:_0x48bad9,to:_0x3088de})=>{const _0x368ac7=_0x5086c9;this['_logService']['debug'](_0x368ac7(0x237),_0x368ac7(0x2bb)+_0x48bad9+_0x368ac7(0x276)+_0x3088de);let _0x257d3c={'eventID':_0x149d12['CollaborationEvent']['FETCH_MISSING'],'data':{'unitID':_0x959ff8,'unitType':this[_0x368ac7(0x2f2)],'from':_0x48bad9,'to':_0x3088de}};this['session'][_0x368ac7(0x16b)](_0x257d3c,this[_0x368ac7(0x2ea)]);}};}async['_createInitialStateImpl'](_0x45ae2e){const _0x2cabbe=_0x27b931;var _0x44c51d,_0x57b94c,_0x33e589;let _0x57a8b7=await((_0x44c51d=this[_0x2cabbe(0x189)])==null?void 0x0:_0x44c51d[_0x2cabbe(0x2e3)](this['unitID'])),_0x2460cc=(_0x57b94c=_0x57a8b7==null?void 0x0:_0x57a8b7[_0x2cabbe(0x35e)])==null?[]:_0x57b94c,_0x56959=(_0x33e589=_0x57a8b7==null?void 0x0:_0x57a8b7[_0x2cabbe(0x1c8)])==null?null:_0x33e589,_0xa23cd9=!!(_0x56959!=null&&_0x56959[_0x2cabbe(0x2c9)])&&!!(_0x56959!=null&&_0x56959['reqId']);this[_0x2cabbe(0x2a6)]=_0xa23cd9?_0x56959[_0x2cabbe(0x2c9)]:(0x0,_0x149d12[_0x2cabbe(0x35f)])(),this['_changesetReqId']=_0xa23cd9?_0x56959[_0x2cabbe(0x20d)]:0x0;let _0x11a74a=this[_0x2cabbe(0x2ea)];try{this['_replayCachedMutations'](_0x56959,_0x2460cc);}catch(_0x4b6066){this['_logService'][_0x2cabbe(0x294)](_0x4b6066);}let _0x28c84d=this[_0x2cabbe(0x411)]();if(_0x45ae2e){let _0x4c8c19=_0x1512ca(this[_0x2cabbe(0x2fe)],_0x11a74a,this[_0x2cabbe(0x2f2)],_0x56959,_0x2460cc,_0x28c84d);return _0x4c8c19 instanceof _0x467875?_0x4c8c19['_schedule']():(_0x4c8c19 instanceof _0x15bd87||_0x4c8c19 instanceof _0x42dff3)&&_0x4c8c19[_0x2cabbe(0x36c)](),_0x4c8c19;}return this[_0x2cabbe(0x2fe)]['createInstance'](_0x58261a,_0x11a74a,this['_type'],_0x56959,_0x2460cc,_0x28c84d);}['_replayCachedMutations'](_0x47a513,_0x1b7f76){const _0x26793f=_0x27b931;var _0x451392,_0x44e41a;let _0x288efa=this[_0x26793f(0x39c)][_0x26793f(0x183)][_0x26793f(0x2a8)](this[_0x26793f(0x39c)][_0x26793f(0x183)][_0x26793f(0x351)]()[_0x26793f(0x188)]);(_0x451392=_0x288efa((_0x47a513==null?void 0x0:_0x47a513['mutations'])||[],null))==null||_0x451392['forEach'](_0x41f747=>this[_0x26793f(0x38d)][_0x26793f(0x18e)](_0x41f747['id'],_0x41f747[_0x26793f(0xfc)])),(_0x44e41a=_0x288efa(_0x1b7f76||[],null))==null||_0x44e41a['forEach'](_0x16a42e=>this[_0x26793f(0x38d)]['executeCommand'](_0x16a42e['id'],_0x16a42e[_0x26793f(0xfc)]));}};_0x25f5ac=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x4,(0x0,_0x47f753['Inject'])(_0x149d12[_0x27b931(0x37f)])),_0x2af294(0x5,(0x0,_0x47f753['Inject'])(_0x47f753['LocaleService'])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x8,_0x47f753['IUniverInstanceService']),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0xb,_0x47f753[_0x27b931(0x3ce)]),_0x2af294(0xc,(0x0,_0x47f753['Optional'])(_0x435069)),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x25f5ac);let _0x9eef43=class extends _0x25f5ac{constructor(_0x360220,_0x43aab0,_0x3ed42c,_0x54f7e7,_0x18a329,_0x1131d6,_0x276104,_0x1e868f,_0x50dc6b,_0x27a478,_0x2d9478,_0x516ac8,_0x4f2e7d,_0x38285f,_0x2f8c07){const _0x723622=_0x27b931;super(_0x360220,_0x3ed42c,_0x43aab0,_0x54f7e7,_0x18a329,_0x1131d6,_0x276104,_0x1e868f,_0x50dc6b,_0x27a478,_0x2d9478,_0x516ac8,_0x38285f,_0x2f8c07),this['unitID']=_0x360220,this[_0x723622(0x2af)]=_0x43aab0,this['_docStateChangeManagerService']=_0x4f2e7d,_0x2dd74e(this,_0x723622(0x14a),null);}[_0x27b931(0x28e)](_0x2e0cac){const _0x5a703a=_0x27b931;this[_0x5a703a(0x14a)]=_0x2e0cac;}['dispose'](){const _0x2b23af=_0x27b931;this[_0x2b23af(0x14a)]=null,super['dispose']();}[_0x27b931(0x411)](){const _0x442eec=_0x27b931;let _0x972d6d=super[_0x442eec(0x411)]();return _0x972d6d[_0x442eec(0x384)]=_0x197c26=>{const _0x213cd9=_0x442eec;var _0x5cc0b4,_0x280017;return(_0x5cc0b4=this[_0x213cd9(0x14a)])==null||(_0x280017=_0x5cc0b4[_0x213cd9(0x384)])==null?void 0x0:_0x280017[_0x213cd9(0x25a)](_0x5cc0b4,_0x197c26);},_0x972d6d[_0x442eec(0x24d)]=_0x4bbb39=>{const _0x2f045b=_0x442eec;var _0x2ed162,_0x532721;return(_0x2ed162=this[_0x2f045b(0x14a)])==null||(_0x532721=_0x2ed162[_0x2f045b(0x24d)])==null?void 0x0:_0x532721[_0x2f045b(0x25a)](_0x2ed162,_0x4bbb39);},_0x972d6d[_0x442eec(0x3af)]=_0x313d8a=>{const _0x228152=_0x442eec;var _0x4a4e1b,_0x49bcc2;return(_0x4a4e1b=this[_0x228152(0x14a)])==null||(_0x49bcc2=_0x4a4e1b[_0x228152(0x3af)])==null?void 0x0:_0x49bcc2[_0x228152(0x25a)](_0x4a4e1b,_0x313d8a);},_0x972d6d[_0x442eec(0x10b)]=_0x48e349=>{const _0x19f322=_0x442eec;var _0x2f564e,_0x1c4efb;return(_0x2f564e=this['_handlerCallback'])==null||(_0x1c4efb=_0x2f564e[_0x19f322(0x10b)])==null?void 0x0:_0x1c4efb[_0x19f322(0x25a)](_0x2f564e,_0x48e349);},_0x972d6d[_0x442eec(0x291)]=_0x3b5c63=>{const _0x4a62d6=_0x442eec;var _0x23e1c1,_0x2d5631,_0x3dc779;return(_0x23e1c1=(_0x2d5631=this['_handlerCallback'])==null||(_0x3dc779=_0x2d5631[_0x4a62d6(0x291)])==null?void 0x0:_0x3dc779[_0x4a62d6(0x25a)](_0x2d5631,_0x3b5c63))==null?_0x3b5c63:_0x23e1c1;},_0x972d6d[_0x442eec(0x2d3)]=_0x2955bd=>{const _0x110ef3=_0x442eec;var _0x3bd4e2,_0x9c5a20,_0x1117ed;return(_0x3bd4e2=(_0x9c5a20=this['_handlerCallback'])==null||(_0x1117ed=_0x9c5a20[_0x110ef3(0x2d3)])==null?void 0x0:_0x1117ed[_0x110ef3(0x25a)](_0x9c5a20,_0x2955bd))==null?_0x2955bd:_0x3bd4e2;},_0x972d6d;}async[_0x27b931(0xee)](){const _0x86b725=_0x27b931;let _0x5d95b5=await super[_0x86b725(0xee)]();return this[_0x86b725(0x3d7)](this[_0x86b725(0x2c1)][_0x86b725(0x3b8)][_0x86b725(0x38e)](_0x239187=>{const _0x570333=_0x86b725;if(_0x239187==null||_0x239187[_0x570333(0x320)]!==this[_0x570333(0x2ea)])return;let {commandId:_0x103046,redoState:_0x31dd37,unitId:_0x576456}=_0x239187,_0x2a8435={'id':_0x103046,'type':_0x47f753['CommandType'][_0x570333(0x2fa)],'params':{'unitId':_0x576456,'actions':_0x31dd37[_0x570333(0x1b8)],'textRanges':null}};this[_0x570333(0x37e)](_0x2a8435);})),this['disposeWithMe'](this[_0x86b725(0x38d)][_0x86b725(0x176)]((_0x1770e8,_0xbef6e8)=>{const _0x2ea8db=_0x86b725;if(_0x1770e8[_0x2ea8db(0x2af)]!==_0x47f753[_0x2ea8db(0x222)][_0x2ea8db(0x2fa)]||_0xbef6e8!=null&&_0xbef6e8[_0x2ea8db(0x41c)]||_0xbef6e8!=null&&_0xbef6e8[_0x2ea8db(0xe0)]||_0x1770e8['id']===_0x459006['RichTextEditingMutation']['id'])return;let _0x375c89=_0x1770e8[_0x2ea8db(0xfc)];if((_0x375c89==null?void 0x0:_0x375c89[_0x2ea8db(0x320)])!==this[_0x2ea8db(0x2ea)])return;let _0x38fd45=_0x1770e8,_0xa6f5cf=this[_0x2ea8db(0x39c)][_0x2ea8db(0x183)][_0x2ea8db(0x2a8)](this[_0x2ea8db(0x39c)][_0x2ea8db(0x183)][_0x2ea8db(0x351)]()[_0x2ea8db(0x11b)])([_0x38fd45],this[_0x2ea8db(0x37d)])||[_0x38fd45];this[_0x2ea8db(0x37e)](_0xa6f5cf[0x0]);})),_0x5d95b5;}};_0x9eef43=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12['CompressMutationService'])),_0x2af294(0x5,(0x0,_0x47f753['Inject'])(_0x47f753['LocaleService'])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12['RevisionService'])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x8,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0xb,_0x47f753[_0x27b931(0x3ce)]),_0x2af294(0xc,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x459006[_0x27b931(0x356)])),_0x2af294(0xd,(0x0,_0x47f753['Optional'])(_0x435069)),_0x2af294(0xe,(0x0,_0x47f753['Optional'])(_0x419224))],_0x9eef43);let _0x5c3e77=class extends _0x25f5ac{constructor(_0x59db3b,_0x219289,_0xbe3a38,_0x5e60fe,_0x2a6bf9,_0xb0e3ec,_0x851988,_0x42f89a,_0x222f94,_0xb3f9b0,_0x32e921,_0x5bbcaa,_0x300ad1,_0xb12d6c){const _0x298a15=_0x27b931;super(_0x59db3b,_0xbe3a38,_0x219289,_0x5e60fe,_0x2a6bf9,_0xb0e3ec,_0x851988,_0x42f89a,_0x222f94,_0xb3f9b0,_0x32e921,_0x5bbcaa,_0x300ad1,_0xb12d6c),this[_0x298a15(0x2ea)]=_0x59db3b,this[_0x298a15(0x2af)]=_0x219289;}async[_0x27b931(0xee)](){const _0x28f07e=_0x27b931;let _0x4c9bb0=await super[_0x28f07e(0xee)]();return this[_0x28f07e(0x3d7)](this[_0x28f07e(0x38d)]['onMutationExecutedForCollab']((_0x1179ce,_0x305f73)=>{const _0xe9a418=_0x28f07e;if(_0x1179ce['type']!==_0x47f753['CommandType'][_0xe9a418(0x2fa)]||_0x305f73!=null&&_0x305f73[_0xe9a418(0x41c)]||_0x305f73!=null&&_0x305f73[_0xe9a418(0xe0)])return;let _0x22ec1b=_0x1179ce[_0xe9a418(0xfc)];if((_0x22ec1b==null?void 0x0:_0x22ec1b[_0xe9a418(0x320)])!==this[_0xe9a418(0x2ea)])return;let _0x3ec508=_0x1179ce,_0x57f982=this[_0xe9a418(0x39c)][_0xe9a418(0x183)]['fetchThroughInterceptors'](this[_0xe9a418(0x39c)][_0xe9a418(0x183)][_0xe9a418(0x351)]()[_0xe9a418(0x11b)])([_0x3ec508],this['_univerInstanceService'])||[_0x3ec508];this['_onLocalMutation'](_0x57f982[0x0]);})),_0x4c9bb0;}};_0x5c3e77=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x37f)])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['LocaleService'])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x8,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x9,_0x47f753['ILogService']),_0x2af294(0xa,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0xb,_0x47f753[_0x27b931(0x3ce)]),_0x2af294(0xc,(0x0,_0x47f753[_0x27b931(0x233)])(_0x435069)),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x5c3e77);let _0x151d10=class extends _0x25f5ac{constructor(_0x56d3b3,_0x962f4f,_0x4a5b9d,_0xa80cb0,_0x5c4e7e,_0x3e8af7,_0x40f5fc,_0x2441f5,_0x255643,_0x44acc7,_0xae2883,_0x11cecf,_0x77f54,_0x3a8bc1,_0x3bc65f){const _0x1ee84e=_0x27b931;super(_0x56d3b3,_0x4a5b9d,_0x962f4f,_0xa80cb0,_0x5c4e7e,_0x3e8af7,_0x40f5fc,_0x255643,_0x44acc7,_0xae2883,_0x11cecf,_0x77f54,_0x3a8bc1,_0x3bc65f),this[_0x1ee84e(0x2ea)]=_0x56d3b3,this['type']=_0x962f4f,this['_sheetTransformSelectionsService']=_0x2441f5;}[_0x27b931(0x411)](){const _0x3c126b=_0x27b931;let _0x5a8cbd=super[_0x3c126b(0x411)]();return _0x5a8cbd[_0x3c126b(0x3af)]=_0x24df1f=>this[_0x3c126b(0x187)][_0x3c126b(0x299)](_0x24df1f),_0x5a8cbd;}async[_0x27b931(0xee)](){const _0x4c985b=_0x27b931;let _0x568e46=await super[_0x4c985b(0xee)]();return this[_0x4c985b(0x3d7)](this[_0x4c985b(0x38d)][_0x4c985b(0x176)]((_0x2ea1f1,_0x17d655)=>{const _0xd58ba8=_0x4c985b;if(_0x2ea1f1[_0xd58ba8(0x2af)]!==_0x47f753[_0xd58ba8(0x222)][_0xd58ba8(0x2fa)]||_0x17d655!=null&&_0x17d655[_0xd58ba8(0x41c)]||_0x17d655!=null&&_0x17d655[_0xd58ba8(0xe0)])return;let _0x1efae4=_0x2ea1f1[_0xd58ba8(0xfc)];if((_0x1efae4==null?void 0x0:_0x1efae4[_0xd58ba8(0x320)])!==this[_0xd58ba8(0x2ea)])return;let _0x2683fd=_0x2ea1f1,_0x1ba3a3=this['_compressMutationService'][_0xd58ba8(0x183)][_0xd58ba8(0x2a8)](this['_compressMutationService']['interceptor'][_0xd58ba8(0x351)]()['COMPRESS_MUTATION_SEND'])([_0x2683fd],this[_0xd58ba8(0x37d)])||[_0x2683fd];this['_onLocalMutation'](_0x1ba3a3[0x0]);})),_0x568e46;}};_0x151d10=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['Injector'])),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12['CompressMutationService'])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0xde)])),_0x2af294(0x6,(0x0,_0x47f753['Inject'])(_0x149d12['RevisionService'])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2e077e)),_0x2af294(0x8,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x9,_0x47f753[_0x27b931(0x235)]),_0x2af294(0xa,_0x47f753['ILogService']),_0x2af294(0xb,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0xc,_0x47f753['IPermissionService']),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x435069)),_0x2af294(0xe,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x151d10);let _0x292824=class extends _0x25f5ac{constructor(_0x4285d6,_0x29417c,_0x46772c,_0x2b31e4,_0x3f3f95,_0x2e5381,_0x2b2595,_0x39431d,_0x129610,_0x4cf3ab,_0x10bdf0,_0x25c326,_0x2de6a2,_0x571294){const _0x11e54d=_0x27b931;super(_0x4285d6,_0x46772c,_0x29417c,_0x2b31e4,_0x3f3f95,_0x2e5381,_0x2b2595,_0x39431d,_0x129610,_0x4cf3ab,_0x10bdf0,_0x25c326,_0x2de6a2,_0x571294),this[_0x11e54d(0x2ea)]=_0x4285d6,this[_0x11e54d(0x2af)]=_0x29417c;}async[_0x27b931(0xee)](){const _0x31516e=_0x27b931;let _0x6e0cef=await super['_init']();return this[_0x31516e(0x3d7)](this[_0x31516e(0x38d)][_0x31516e(0x176)]((_0x840fae,_0x124705)=>{const _0x1db22e=_0x31516e;if(_0x840fae[_0x1db22e(0x2af)]!==_0x47f753[_0x1db22e(0x222)][_0x1db22e(0x2fa)]||_0x124705!=null&&_0x124705[_0x1db22e(0x41c)]||_0x124705!=null&&_0x124705['onlyLocal'])return;let _0x4f5dbb=_0x840fae[_0x1db22e(0xfc)];if((_0x4f5dbb==null?void 0x0:_0x4f5dbb[_0x1db22e(0x320)])!==this['unitID'])return;let _0x5c0389=_0x840fae,_0x35eeb2=this[_0x1db22e(0x39c)][_0x1db22e(0x183)][_0x1db22e(0x2a8)](this[_0x1db22e(0x39c)][_0x1db22e(0x183)][_0x1db22e(0x351)]()[_0x1db22e(0x11b)])([_0x5c0389],this['_univerInstanceService'])||[_0x5c0389];this[_0x1db22e(0x37e)](_0x35eeb2[0x0]);})),_0x6e0cef;}};_0x292824=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x37f)])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0xde)])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x7,(0x0,_0x47f753['Inject'])(_0x2a71d9)),_0x2af294(0x8,_0x47f753['IUniverInstanceService']),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x47f753['ICommandService']),_0x2af294(0xb,_0x47f753[_0x27b931(0x3ce)]),_0x2af294(0xc,(0x0,_0x47f753['Optional'])(_0x435069)),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x292824);let _0x4b522f=class extends _0x25f5ac{constructor(_0x24d450,_0x1678a9,_0x1dbfb2,_0x21ca05,_0x12516f,_0x5756ae,_0x39fc1e,_0x5a4713,_0x461ffb,_0xaae6e,_0x299d45,_0x20c75b,_0x2c90fb,_0x3fd0c2){const _0x3f9838=_0x27b931;super(_0x24d450,_0x1dbfb2,_0x1678a9,_0x21ca05,_0x12516f,_0x5756ae,_0x39fc1e,_0x5a4713,_0x461ffb,_0xaae6e,_0x299d45,_0x20c75b,_0x2c90fb,_0x3fd0c2),this[_0x3f9838(0x2ea)]=_0x24d450,this[_0x3f9838(0x2af)]=_0x1678a9;}async[_0x27b931(0xee)](){const _0x500416=_0x27b931;let _0x451db9=await super[_0x500416(0xee)]();return this[_0x500416(0x3d7)](this[_0x500416(0x38d)]['onMutationExecutedForCollab']((_0x4e5f02,_0x13e503)=>{const _0x59d4fb=_0x500416;if(_0x4e5f02['type']!==_0x47f753[_0x59d4fb(0x222)]['MUTATION']||_0x13e503!=null&&_0x13e503[_0x59d4fb(0x41c)]||_0x13e503!=null&&_0x13e503[_0x59d4fb(0xe0)])return;let _0x10fe65=_0x4e5f02[_0x59d4fb(0xfc)];if((_0x10fe65==null?void 0x0:_0x10fe65[_0x59d4fb(0x320)])!==this[_0x59d4fb(0x2ea)])return;let _0x1f5fdb=_0x4e5f02,_0x267e44=this['_compressMutationService'][_0x59d4fb(0x183)]['fetchThroughInterceptors'](this[_0x59d4fb(0x39c)][_0x59d4fb(0x183)][_0x59d4fb(0x351)]()['COMPRESS_MUTATION_SEND'])([_0x1f5fdb],this[_0x59d4fb(0x37d)])||[_0x1f5fdb];this[_0x59d4fb(0x37e)](_0x267e44[0x0]);})),_0x451db9;}};_0x4b522f=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753['Inject'])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x4,(0x0,_0x47f753['Inject'])(_0x149d12[_0x27b931(0x37f)])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0xde)])),_0x2af294(0x6,(0x0,_0x47f753['Inject'])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x8,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0xb,_0x47f753[_0x27b931(0x3ce)]),_0x2af294(0xc,(0x0,_0x47f753[_0x27b931(0x233)])(_0x435069)),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x4b522f);let _0x4501c7=(0x0,_0x47f753['createIdentifier'])(_0x27b931(0x3b5));function _0x44e4df(_0x331c06){const _0x16cd14=_0x27b931;let _0x2e9b78=_0x331c06[_0x16cd14(0x401)],_0x2a7bbe=JSON[_0x16cd14(0x283)](_0x2e9b78);switch(_0x2a7bbe[_0x16cd14(0x32c)]){case _0x26a654[_0x16cd14(0x185)][_0x16cd14(0x3df)]:case _0x26a654['CombCmd']['HELLO']:{let _0x25bc58=_0x2a7bbe[_0x16cd14(0x26a)];return{..._0x2a7bbe,'data':_0x25bc58,'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};}case _0x26a654[_0x16cd14(0x185)][_0x16cd14(0x1e9)]:{let _0x25692a=_0x2a7bbe[_0x16cd14(0x19f)];return{..._0x2a7bbe,'data':_0x25692a,'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};}case _0x26a654[_0x16cd14(0x185)][_0x16cd14(0x34a)]:{let _0xb5b34a=_0x2a7bbe[_0x16cd14(0x3ad)];switch(_0xb5b34a[_0x16cd14(0x1a4)]){case _0x149d12['CollaborationEvent'][_0x16cd14(0x168)]:var _0x2485c0;return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':(_0x2485c0=_0xb5b34a[_0x16cd14(0x13d)])==null?void 0x0:_0x2485c0['cs']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x369)]:var _0x51237d;return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':(_0x51237d=_0xb5b34a['csAckEvent'])==null?void 0x0:_0x51237d['cs']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)]['NEW_CHANGESETS']:var _0x13ec9c;return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':(_0x13ec9c=_0xb5b34a[_0x16cd14(0x2b4)])==null?void 0x0:_0x13ec9c['cs']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)]['CHANGESET_REJ']:var _0x55dd82;return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':(_0x55dd82=_0xb5b34a[_0x16cd14(0x2de)])==null?void 0x0:_0x55dd82['cs']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x123)]:var _0x451eb1;return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':(_0x451eb1=_0xb5b34a[_0x16cd14(0x3d5)])==null?void 0x0:_0x451eb1['cs']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12['CollaborationEvent']['UPDATE_CURSOR']:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a['updateCursorEvent']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x260)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0xeb)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x337)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0x2ba)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x3fb)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a['liveShareNewHost']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x1f0)]:case _0x149d12['CollaborationEvent'][_0x16cd14(0x389)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0x1db)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x318)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0x3ed)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x2a7bbe,'data':_0xb5b34a,'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12['CollaborationEvent']['COMMENT_UPDATE']:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a['commentUpdateEvent']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x12d)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a['updatePermissionObjEvent']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x2ae)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0x2fc)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)]['UNISCRIPT_RUN']:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0x273)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};default:return _0x2a7bbe;}}default:return _0x2a7bbe;}}function _0x5db7a4(_0x58b983){const _0x49a4a1=_0x27b931;switch(_0x58b983[_0x49a4a1(0x32c)]){case _0x26a654[_0x49a4a1(0x185)][_0x49a4a1(0x3df)]:case _0x26a654[_0x49a4a1(0x185)][_0x49a4a1(0x40c)]:return JSON[_0x49a4a1(0x3e5)]({'cmd':_0x58b983[_0x49a4a1(0x32c)],'routeKey':_0x58b983[_0x49a4a1(0x31b)]});case _0x26a654[_0x49a4a1(0x185)][_0x49a4a1(0x264)]:{let _0x39c782;switch(_0x58b983[_0x49a4a1(0x401)][_0x49a4a1(0x1a4)]){case _0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x257)]:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x257)],'updateCursorEvent':_0x58b983[_0x49a4a1(0x401)]['data']};break;case _0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x337)]:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)]['USERS_LEAVE'],'leaveEvent':_0x58b983[_0x49a4a1(0x401)][_0x49a4a1(0x401)]};break;case _0x149d12['CollaborationEvent']['USERS_ENTER']:_0x39c782={'eventID':_0x149d12['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x58b983[_0x49a4a1(0x401)][_0x49a4a1(0x401)]};break;case _0x149d12['CollaborationEvent'][_0x49a4a1(0x3fb)]:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x58b983['data'][_0x49a4a1(0x401)]};break;case _0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x389)]:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x389)],'liveShareOperation':_0x58b983['data']['data']};break;case _0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x318)]:_0x39c782={'eventID':_0x149d12['CollaborationEvent'][_0x49a4a1(0x318)],'liveShareTerminate':_0x58b983['data'][_0x49a4a1(0x401)]};break;case _0x149d12[_0x49a4a1(0x3eb)]['LIVESHARE_REQUEST_HOST']:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x382)],'liveShareRequestHost':_0x58b983[_0x49a4a1(0x401)]['data']};break;case _0x149d12[_0x49a4a1(0x3eb)]['LIVESHARE_FETCH_OPERATIONS']:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x1f0)]};break;default:_0x39c782={'eventID':_0x58b983[_0x49a4a1(0x401)][_0x49a4a1(0x1a4)]};}return JSON['stringify']({'cmd':_0x58b983[_0x49a4a1(0x32c)],'routeKey':_0x58b983['routeKey'],'collaMsg':_0x39c782});}case _0x26a654[_0x49a4a1(0x185)]['JOIN']:return JSON[_0x49a4a1(0x3e5)]({'cmd':_0x58b983['cmd'],'routeKey':_0x58b983['routeKey'],'joinReq':_0x58b983[_0x49a4a1(0x401)]});case _0x26a654[_0x49a4a1(0x185)]['LEAVE']:return JSON['stringify']({'cmd':_0x58b983[_0x49a4a1(0x32c)],'routeKey':_0x58b983[_0x49a4a1(0x31b)],'leaveReq':_0x58b983[_0x49a4a1(0x401)]});default:throw Error(_0x49a4a1(0x295));}}let _0x2bd014=(0x0,_0x47f753['createIdentifier'])('univer-pro.collaboration-client-socket-service');function _0x24f9db(_0x4bad50,_0x724b6c,_0x114b75){const _0x23a48e=_0x27b931;return _0x4bad50+'/'+_0x724b6c+_0x23a48e(0x288)+_0x114b75+_0x23a48e(0x3f6);}let _0x1bc98c=class extends _0x47f753[_0x27b931(0x25e)]{constructor(_0x12ecdf,_0x42177a,_0x52a666,_0x2665c0,_0x119933){const _0x1deb8b=_0x27b931;super(),this['_injector']=_0x12ecdf,this[_0x1deb8b(0x3d8)]=_0x42177a,this[_0x1deb8b(0x228)]=_0x52a666,this[_0x1deb8b(0x1a1)]=_0x2665c0,this[_0x1deb8b(0x25f)]=_0x119933;}['_doCreateSocket'](_0x8f85ed){const _0xf8337a=_0x27b931;let _0x253316=this[_0xf8337a(0x2fe)][_0xf8337a(0x1ad)](_0x8f2da5[_0xf8337a(0x10a)]);if(!_0x253316)throw Error(_0xf8337a(0x3ee));let _0x355985=_0x253316[_0xf8337a(0x1fa)](_0x8f85ed);if(!_0x355985)throw Error(_0xf8337a(0x357));let _0x4402bd=new _0x47f753[(_0xf8337a(0x3bb))](),_0x715eff=new _0x470009[(_0xf8337a(0x256))]();_0x4402bd['add'](_0x355985[_0xf8337a(0x2ad)][_0xf8337a(0x38e)](_0x4bf796=>_0x715eff['next'](_0x4bf796))),_0x4402bd[_0xf8337a(0x150)]((0x0,_0x47f753[_0xf8337a(0x21a)])(()=>_0x715eff[_0xf8337a(0x32e)]()));let _0x1c7f9b=new _0x470009['Subject']();_0x4402bd[_0xf8337a(0x150)](_0x355985[_0xf8337a(0xe5)]['subscribe'](_0x5014ad=>_0x1c7f9b[_0xf8337a(0x396)](_0x5014ad))),_0x4402bd[_0xf8337a(0x150)]((0x0,_0x47f753[_0xf8337a(0x21a)])(()=>_0x1c7f9b[_0xf8337a(0x32e)]()));let _0x482733=new _0x470009[(_0xf8337a(0x256))]();_0x4402bd['add'](_0x355985[_0xf8337a(0x38c)][_0xf8337a(0x38e)](_0x597f18=>{let _0xf994c6=_0x44e4df(_0x597f18);_0x482733['next'](_0xf994c6);})),_0x4402bd['add']((0x0,_0x47f753['toDisposable'])(()=>_0x482733[_0xf8337a(0x32e)]()));let _0x44e985,_0x40f59a=()=>{const _0x5ccca5=_0xf8337a;_0x1c7f9b[_0x5ccca5(0x396)](new Event('connection\x20error')),_0x715eff[_0x5ccca5(0x396)](new Event(_0x5ccca5(0x325))),_0x44e985[_0x5ccca5(0x15b)]();};return _0x44e985={'memberID':'','close$':_0x715eff[_0xf8337a(0x2b2)](),'error$':_0x1c7f9b[_0xf8337a(0x2b2)](),'open$':_0x355985['open$'],'message$':_0x482733[_0xf8337a(0x2b2)](),'send':_0x10f839=>{const _0x2c830a=_0xf8337a;if(_0x10f839[_0x2c830a(0x32c)]===_0x26a654[_0x2c830a(0x185)][_0x2c830a(0x264)]){if(_0x10f839['data'][_0x2c830a(0x1a4)]===_0x149d12[_0x2c830a(0x3eb)][_0x2c830a(0x15e)]){this[_0x2c830a(0x3e6)](_0x44e985,_0x10f839['data'])[_0x2c830a(0x29a)](_0x43fac5=>{const _0x461914=_0x2c830a;this[_0x461914(0x1a1)][_0x461914(0x294)](_0x43fac5),_0x40f59a();});return;}if(_0x10f839['data'][_0x2c830a(0x1a4)]===_0x149d12[_0x2c830a(0x3eb)]['FETCH_MISSING']){let _0x18ecff=_0x10f839[_0x2c830a(0x401)];this['_fetchMissChangesets'](_0x18ecff)['then'](_0x5afb00=>{const _0x3b5bfd=_0x2c830a;_0x482733[_0x3b5bfd(0x396)]({'cmd':_0x26a654[_0x3b5bfd(0x185)]['RECV'],'code':_0x26a654[_0x3b5bfd(0x3d9)]['OK'],'routeKey':_0x18ecff[_0x3b5bfd(0x401)]['unitID'],'routeType':'','data':{'eventID':_0x149d12[_0x3b5bfd(0x3eb)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x5afb00}}});})[_0x2c830a(0x29a)](_0x245f78=>{const _0x362abd=_0x2c830a;this[_0x362abd(0x1a1)][_0x362abd(0x294)](_0x245f78),_0x40f59a();});return;}}_0x355985[_0x2c830a(0x16b)](_0x5db7a4(_0x10f839));},'close':()=>{const _0x4faddb=_0xf8337a;_0x355985[_0x4faddb(0x15b)](),_0x4402bd[_0x4faddb(0x2bc)]();}},_0x44e985;}async['_submitChangeset'](_0x144ad5,_0x44d749){const _0x5caf5a=_0x27b931;var _0x1487b1;let {unitType:_0xf99c55,unitID:_0x2c0894,changeset:_0xa73b1d}=_0x44d749[_0x5caf5a(0x401)],_0x5dfa39={'unitID':_0x2c0894,'memberID':_0x144ad5['memberID'],'type':_0xf99c55,'changeset':(0x0,_0x149d12[_0x5caf5a(0x253)])(_0xa73b1d)},_0x2884c3=this[_0x5caf5a(0x228)][_0x5caf5a(0x190)](_0x3c17be),_0xa5beba=_0x24f9db((_0x1487b1=_0x2884c3==null?void 0x0:_0x2884c3[_0x5caf5a(0x17c)])==null?'/universer-api/comb':_0x1487b1,_0xf99c55,_0x2c0894);try{await this['_httpService'][_0x5caf5a(0x139)](_0xa5beba,{'body':_0x5dfa39});}catch(_0x326a4f){throw this[_0x5caf5a(0x1a1)][_0x5caf5a(0x294)](_0x5caf5a(0x3ae),_0x5caf5a(0x2cc)),_0x326a4f;}}async[_0x27b931(0x1a7)](_0x2eeea6){const _0x515513=_0x27b931;let {unitID:_0x493817,from:_0x46a51f,to:_0x43fbd7,unitType:_0x57edb8}=_0x2eeea6[_0x515513(0x401)];return(await this[_0x515513(0x25f)][_0x515513(0x206)]({'metadata':void 0x0},{'unitID':_0x493817,'type':_0x57edb8,'from':_0x46a51f,'to':_0x43fbd7}))['changesets'][_0x515513(0x394)](_0xd7955c=>((_0xd7955c[_0x515513(0x35e)]===null||_0xd7955c['mutations']===void 0x0)&&(_0xd7955c[_0x515513(0x35e)]=[]),_0xd7955c));}};_0x1bc98c=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['Injector'])),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x8f2da5[_0x27b931(0x2e6)])),_0x2af294(0x2,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x3,_0x47f753['ILogService']),_0x2af294(0x4,_0x149d12['ISnapshotServerService'])],_0x1bc98c);let _0x1e5735=(0x0,_0x47f753['createIdentifier'])(_0x27b931(0x12f));function _0x122337(_0x2b5089={}){const _0x395d9f=_0x27b931;return _0x2b5089['resolveUnit']?{'resolveUnit':_0x2b5089[_0x395d9f(0x1d2)]}:{'resolveUnit':_0x1a5cd5=>({'target':{'unitId':_0x1a5cd5[_0x395d9f(0x320)],'unitType':_0x1a5cd5[_0x395d9f(0x36a)]}})};}function _0x1e962d(_0x5844cf,_0x3d11da,_0x3e0fd7){const _0x54a3e7=_0x27b931;var _0x1b7df3;let _0x1b1a98=_0x3e0fd7[_0x54a3e7(0x216)]['endpoint'];if(_0x1b1a98!=null&&_0x1b1a98[_0x54a3e7(0x1d0)]()==='')throw Error(_0x54a3e7(0x3a4));if(!_0x3e0fd7[_0x54a3e7(0x216)][_0x54a3e7(0x320)])throw Error(_0x54a3e7(0x310));return{'localUnitId':_0x5844cf,'unitType':_0x3d11da,'target':{'endpoint':_0x1b1a98,'unitId':_0x3e0fd7[_0x54a3e7(0x216)][_0x54a3e7(0x320)],'unitType':(_0x1b7df3=_0x3e0fd7[_0x54a3e7(0x216)]['unitType'])==null?_0x3d11da:_0x1b7df3},'changeset':_0x3e0fd7[_0x54a3e7(0x142)]};}let _0xc5d6a5=class extends _0x47f753['Disposable']{constructor(_0xe241fe,_0x46acdf,_0x3cd971,_0x1dc87b,_0x2ab592,_0x5a1e86,_0x4543cb){const _0x431c60=_0x27b931;super(),this['_injector']=_0xe241fe,this[_0x431c60(0x1a1)]=_0x46acdf,this[_0x431c60(0x228)]=_0x3cd971,this['_socketService']=_0x1dc87b,this[_0x431c60(0x11a)]=_0x2ab592,this[_0x431c60(0x159)]=_0x5a1e86,this['_networkConditionService']=_0x4543cb,_0x2dd74e(this,_0x431c60(0x359),new Map()),_0x2dd74e(this,_0x431c60(0x1d5),new Map()),_0x2dd74e(this,_0x431c60(0x106),new Map()),_0x2dd74e(this,_0x431c60(0x180),new Map()),_0x2dd74e(this,_0x431c60(0x2ff),this[_0x431c60(0xd8)](void 0x0)[_0x431c60(0x2ff)][_0x431c60(0x2b2)]()),_0x2dd74e(this,_0x431c60(0x248),new _0x470009[(_0x431c60(0x25b))](0x0)),_0x2dd74e(this,_0x431c60(0x3cd),this[_0x431c60(0x248)][_0x431c60(0x2b2)]()),this['_listenToNetworkCondition']();}[_0x27b931(0x19c)](){const _0x275fc2=_0x27b931;this[_0x275fc2(0x2c0)]&&this[_0x275fc2(0x3d7)](this[_0x275fc2(0x2c0)][_0x275fc2(0x3f3)][_0x275fc2(0x38e)](_0x4fabf2=>{const _0x4f7c31=_0x275fc2;_0x4fabf2&&this[_0x4f7c31(0x3fe)](),_0x4fabf2||this[_0x4f7c31(0x180)]['forEach'](_0x5c6aa7=>this[_0x4f7c31(0x3ac)](_0x5c6aa7));}));}[_0x27b931(0x2bc)](){const _0x5a2cf5=_0x27b931;super[_0x5a2cf5(0x2bc)](),this['_socketChannels'][_0x5a2cf5(0x302)](_0x432fa3=>{const _0x2e9373=_0x5a2cf5;var _0x50c120,_0x315cdd;(_0x50c120=_0x432fa3[_0x2e9373(0x27d)])==null||_0x50c120[_0x2e9373(0x138)](),_0x432fa3[_0x2e9373(0x27d)]=null,this[_0x2e9373(0x1e7)](_0x432fa3),this[_0x2e9373(0x2a2)](_0x432fa3),this[_0x2e9373(0x26c)](_0x432fa3),(_0x315cdd=_0x432fa3[_0x2e9373(0x2ff)][_0x2e9373(0x321)]())==null||_0x315cdd[_0x2e9373(0x15b)](),_0x432fa3[_0x2e9373(0x2ff)][_0x2e9373(0x32e)]();}),this[_0x5a2cf5(0x180)][_0x5a2cf5(0x249)](),this[_0x5a2cf5(0x359)][_0x5a2cf5(0x302)](_0x1d0ca7=>_0x1d0ca7[_0x5a2cf5(0x2bc)]()),this[_0x5a2cf5(0x359)][_0x5a2cf5(0x249)](),this[_0x5a2cf5(0x106)][_0x5a2cf5(0x249)](),this['_status$'][_0x5a2cf5(0x32e)]();}async[_0x27b931(0x410)](_0x1819c1,_0x1f290b){const _0x273ec6=_0x27b931;if(this[_0x273ec6(0x359)][_0x273ec6(0xff)](_0x1819c1))return this[_0x273ec6(0x359)][_0x273ec6(0x1ad)](_0x1819c1);let _0x255179=this[_0x273ec6(0x1d5)][_0x273ec6(0x1ad)](_0x1819c1);if(_0x255179)return _0x255179;let _0x1d65dc=this[_0x273ec6(0x1ab)](_0x1819c1,_0x1f290b);this['_pendingSessions'][_0x273ec6(0xf6)](_0x1819c1,_0x1d65dc);try{return await _0x1d65dc;}finally{this[_0x273ec6(0x1d5)]['delete'](_0x1819c1);}}async['_createSession'](_0x5a4823,_0x413be3){const _0x177b2c=_0x27b931;let _0x55d621=await this['_resolveSessionIdentity'](_0x5a4823,_0x413be3),_0x546f14=this[_0x177b2c(0xd8)](_0x55d621[_0x177b2c(0x216)]['endpoint']);this[_0x177b2c(0x1a2)](_0x546f14);let _0x3a8cfc=this[_0x177b2c(0x2fe)][_0x177b2c(0x392)](_0x4ea072,_0x55d621,_0x546f14[_0x177b2c(0x2ff)][_0x177b2c(0x2b2)]());return this[_0x177b2c(0x359)][_0x177b2c(0xf6)](_0x5a4823,_0x3a8cfc),this[_0x177b2c(0x106)]['set'](_0x5a4823,_0x546f14[_0x177b2c(0xec)]),_0x3a8cfc;}[_0x27b931(0x230)](_0xb286ff){const _0x334672=_0x27b931;let _0x286274=this[_0x334672(0x359)]['get'](_0xb286ff),_0x10a6cb=this[_0x334672(0x106)]['get'](_0xb286ff);if(_0x286274&&(this[_0x334672(0x359)][_0x334672(0x274)](_0xb286ff),this['_sessionChannels']['delete'](_0xb286ff),_0x286274[_0x334672(0x15b)]()),_0x10a6cb&&!this[_0x334672(0x1b2)](_0x10a6cb)){var _0x27a697;let _0x3b6206=this['_socketChannels'][_0x334672(0x1ad)](_0x10a6cb);_0x3b6206==null||(_0x27a697=_0x3b6206['socket$']['getValue']())==null||_0x27a697[_0x334672(0x15b)]();}}['reconnect'](){const _0x5b7e5f=_0x27b931;(this[_0x5b7e5f(0x180)][_0x5b7e5f(0x1f6)]?[...this['_socketChannels'][_0x5b7e5f(0x32f)]()]:[this['_getSocketChannel'](void 0x0)])[_0x5b7e5f(0x302)](_0x54ba58=>{const _0x3ea5da=_0x5b7e5f;_0x54ba58[_0x3ea5da(0x195)]=0x0,this[_0x3ea5da(0x1e7)](_0x54ba58),this[_0x3ea5da(0x3c4)](_0x54ba58);});}[_0x27b931(0x1e7)](_0x1fb1da){const _0xf670da=_0x27b931;_0x1fb1da[_0xf670da(0x170)]!=null&&(clearTimeout(_0x1fb1da[_0xf670da(0x170)]),_0x1fb1da[_0xf670da(0x170)]=null);}async[_0x27b931(0x175)](_0x5657f7){const _0x1acdac=_0x27b931;var _0x12a158,_0x5e20a2;let _0x5f56ea=this['_configService'][_0x1acdac(0x190)](_0x3c17be),_0x35bf01=(_0x12a158=(_0x5e20a2=_0x5657f7[_0x1acdac(0x2e4)])==null?_0x5f56ea==null?void 0x0:_0x5f56ea[_0x1acdac(0x3d2)]:_0x5e20a2)==null?_0x5f4f64:_0x12a158,_0x208712=await this[_0x1acdac(0x2ca)][_0x1acdac(0x1fa)](_0x35bf01);return _0x5657f7[_0x1acdac(0x15c)]=_0x208712,_0x208712;}async[_0x27b931(0x1a2)](_0xabb92e){const _0x510fe3=_0x27b931;try{var _0x403d6b,_0x4b673b;let _0x4320e4=(_0x403d6b=(_0x4b673b=_0xabb92e[_0x510fe3(0x2ff)]['getValue']())==null?_0xabb92e[_0x510fe3(0x15c)]:_0x4b673b)==null?await this[_0x510fe3(0x175)](_0xabb92e):_0x403d6b;if(_0x4320e4){var _0x1bb48b;let _0x4e57aa=_0x4320e4[_0x510fe3(0x16b)];_0x4320e4[_0x510fe3(0x16b)]=_0x29c18d=>(_0x29c18d[_0x510fe3(0x32c)]!==_0x26a654[_0x510fe3(0x185)]['LEAVE']&&this[_0x510fe3(0x308)](_0xabb92e),_0x4e57aa['apply'](_0x4320e4,[_0x29c18d])),(_0x1bb48b=_0xabb92e[_0x510fe3(0x27d)])==null||_0x1bb48b[_0x510fe3(0x138)](),_0xabb92e[_0x510fe3(0x27d)]=null,_0xabb92e['socketMessageSubscription']=_0x4320e4[_0x510fe3(0x38c)]['subscribe'](_0x4dd7db=>this[_0x510fe3(0x1bc)](_0xabb92e,_0x4320e4,_0x4dd7db)),_0x4320e4[_0x510fe3(0xe5)][_0x510fe3(0x11f)]((0x0,_0x5ba228['take'])(0x1))[_0x510fe3(0x38e)](_0x24dae4=>this['_logService'][_0x510fe3(0x294)]('[CollaborationSessionService]:\x20socket\x20error',_0x24dae4)),_0x4320e4['open$'][_0x510fe3(0x11f)]((0x0,_0x5ba228['take'])(0x1))[_0x510fe3(0x38e)](()=>{this['_onConnectionOpen'](_0xabb92e,_0x4320e4);}),_0x4320e4[_0x510fe3(0x2ad)]['pipe']((0x0,_0x5ba228[_0x510fe3(0x1c3)])(0x1))[_0x510fe3(0x38e)](_0x227618=>{const _0x1e95a0=_0x510fe3;this['_logService']['debug'](_0x1e95a0(0x1e6),_0x1e95a0(0x15f),_0x227618),this[_0x1e95a0(0xe9)](_0xabb92e);});}}catch(_0x54ff90){this[_0x510fe3(0x1a1)][_0x510fe3(0x294)](_0x54ff90),this[_0x510fe3(0xe9)](_0xabb92e);}}[_0x27b931(0x32b)](_0x438863,_0x15786c){const _0x4df184=_0x27b931;this[_0x4df184(0x1a1)][_0x4df184(0x418)](_0x4df184(0x1e6),'socket\x20open.'),_0x15786c['send']({'cmd':_0x26a654[_0x4df184(0x185)][_0x4df184(0x40c)]}),this[_0x4df184(0x308)](_0x438863);}[_0x27b931(0x3ac)](_0x1ed5de){const _0x1fd552=_0x27b931;_0x1ed5de['socketReady']=!0x1,_0x1ed5de['candidateSocket']=null,this['_status$'][_0x1fd552(0x396)](0x2),_0x1ed5de[_0x1fd552(0x2ff)][_0x1fd552(0x396)](null),this[_0x1fd552(0x2a2)](_0x1ed5de),this['_clearHeartbeatTimer'](_0x1ed5de);}[_0x27b931(0xe9)](_0x1e4bb6){const _0x11b849=_0x27b931;var _0x3fcb6a;this[_0x11b849(0x3ac)](_0x1e4bb6),this[_0x11b849(0x1b2)](_0x1e4bb6[_0x11b849(0xec)])&&(_0x1e4bb6[_0x11b849(0x195)]<((_0x3fcb6a=this[_0x11b849(0x228)][_0x11b849(0x190)](_0x11b849(0x30d)))==null?0x3:_0x3fcb6a)?(this[_0x11b849(0x11a)][_0x11b849(0x1f8)]({'id':_0x11b849(0x35c)}),this[_0x11b849(0x3c4)](_0x1e4bb6)):this[_0x11b849(0x11a)][_0x11b849(0x1f8)]({'id':_0x11b849(0x245)}));}[_0x27b931(0x3c4)](_0x2c7a8d){const _0x36ef33=_0x27b931;var _0x5b5767;let _0x11a395=_0x2c7a8d['retryCount'],_0x3032a2=this[_0x36ef33(0x228)][_0x36ef33(0x190)](_0x3c17be),_0x2dffb8=_0x11a395===0x0?0x0:((_0x5b5767=_0x3032a2==null?void 0x0:_0x3032a2[_0x36ef33(0x29f)])==null?0x4e20:_0x5b5767)*0x2**_0x11a395;_0x2c7a8d[_0x36ef33(0x170)]=setTimeout(()=>{const _0x488c91=_0x36ef33;clearTimeout(_0x2c7a8d['retryConnectingTimer']),_0x2c7a8d[_0x488c91(0x170)]=null,this['_tryEnsureSocket'](_0x2c7a8d);},_0x2dffb8),_0x2c7a8d['retryCount']+=0x1;}async[_0x27b931(0x1d9)](_0x583e2d,_0x5acd42){const _0x3a4866=_0x27b931;return _0x1e962d(_0x583e2d,_0x5acd42,await this['_adapter'][_0x3a4866(0x1d2)]({'unitId':_0x583e2d,'unitType':_0x5acd42}));}[_0x27b931(0x1bc)](_0xa23bef,_0x1b0fc9,_0xa50696){const _0x571fe3=_0x27b931;let {cmd:_0x3bef68}=_0xa50696;_0x3bef68===_0x26a654['CombCmd'][_0x571fe3(0x40c)]&&!_0xa23bef[_0x571fe3(0x161)]&&(_0x1b0fc9[_0x571fe3(0x1aa)]=_0xa50696[_0x571fe3(0x401)]['memberID'],_0xa23bef[_0x571fe3(0x2ff)][_0x571fe3(0x396)](_0x1b0fc9),this['_status$']['next'](0x3),_0xa23bef[_0x571fe3(0x161)]=!0x0,_0xa23bef[_0x571fe3(0x15c)]=null),_0x3bef68===_0x26a654[_0x571fe3(0x185)][_0x571fe3(0x3df)]&&this[_0x571fe3(0x2a2)](_0xa23bef),this['_rescheduleHeartbeat'](_0xa23bef);}['_hasSessionsForEndpoint'](_0x3b85af){const _0x135026=_0x27b931;return[...this[_0x135026(0x106)][_0x135026(0x32f)]()][_0x135026(0x405)](_0x157242=>_0x157242===_0x3b85af);}[_0x27b931(0xd8)](_0xacdc69){const _0xba3e4f=_0x27b931;let _0x565502=_0xacdc69==null?'':_0xacdc69,_0x50b750=this[_0xba3e4f(0x180)][_0xba3e4f(0x1ad)](_0x565502);if(_0x50b750)return _0x50b750;let _0x38ec8e={'endpointKey':_0x565502,'endpoint':_0xacdc69,'socket$':new _0x470009[(_0xba3e4f(0x25b))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0xba3e4f(0x180)][_0xba3e4f(0xf6)](_0x565502,_0x38ec8e),_0x38ec8e;}[_0x27b931(0x308)](_0x266b89){const _0x455b90=_0x27b931;var _0x2b05d8;this[_0x455b90(0x26c)](_0x266b89),_0x266b89[_0x455b90(0x3f9)]=setTimeout(()=>this['_sendHeartbeat'](_0x266b89),(_0x2b05d8=this[_0x455b90(0x228)]['getConfig'](_0x455b90(0xd9)))==null?0x7530:_0x2b05d8);}[_0x27b931(0x16c)](_0x5275c7){const _0x307ef8=_0x27b931;_0x5275c7[_0x307ef8(0x2ff)]['getValue']()['send']({'cmd':_0x26a654['CombCmd']['HEARTBEAT']}),this['_waitForHeartbeatResponse'](_0x5275c7);}[_0x27b931(0x226)](_0x119c39){const _0x54f9a0=_0x27b931;var _0x427f65;_0x119c39[_0x54f9a0(0x17b)]=setTimeout(()=>this[_0x54f9a0(0xe9)](_0x119c39),(_0x427f65=this[_0x54f9a0(0x228)][_0x54f9a0(0x190)]('HEARTBEAT_TIMEOUT'))==null?_0x1dfc3f:_0x427f65);}[_0x27b931(0x26c)](_0x947f5){const _0x33b20=_0x27b931;_0x947f5[_0x33b20(0x3f9)]!=null&&(clearTimeout(_0x947f5[_0x33b20(0x3f9)]),_0x947f5[_0x33b20(0x3f9)]=null);}[_0x27b931(0x2a2)](_0x1040d3){const _0x60c6e9=_0x27b931;_0x1040d3[_0x60c6e9(0x17b)]!=null&&(clearTimeout(_0x1040d3['timeoutTimer']),_0x1040d3[_0x60c6e9(0x17b)]=null);}};_0xc5d6a5=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x1,_0x47f753[_0x27b931(0x370)]),_0x2af294(0x2,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x3,_0x2bd014),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x5,_0x1e5735),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x233)])(_0x4501c7))],_0xc5d6a5);let _0x203f75=class extends _0x47f753[_0x27b931(0xf4)]{constructor(_0x1c807d,_0x306dec,_0x2c930c,_0x8a7cca){const _0x368a3a=_0x27b931;var _0x1082cc;super(),this[_0x368a3a(0x2fe)]=_0x1c807d,this[_0x368a3a(0x282)]=_0x306dec,this['_configService']=_0x2c930c,this['_univerInstanceService']=_0x8a7cca,_0x2dd74e(this,_0x368a3a(0x3cc),new Map()),_0x2dd74e(this,_0x368a3a(0x2d8),new _0x470009['Subject']()),_0x2dd74e(this,_0x368a3a(0x2a3),this[_0x368a3a(0x2d8)][_0x368a3a(0x2b2)]()),((_0x1082cc=this[_0x368a3a(0x228)][_0x368a3a(0x190)]('collaboration-client.config'))==null?void 0x0:_0x1082cc[_0x368a3a(0x275)])!==!0x1&&this[_0x368a3a(0xee)]();}['dispose'](){const _0x52577f=_0x27b931;super[_0x52577f(0x2bc)](),this[_0x52577f(0x3cc)][_0x52577f(0x302)](_0x2ccd7b=>_0x2ccd7b[_0x52577f(0x2bc)]()),this[_0x52577f(0x3cc)]['clear']();}[_0x27b931(0x153)](_0x157e12){var _0x380f6b;return(_0x380f6b=this['_entities']['get'](_0x157e12))==null?null:_0x380f6b;}[_0x27b931(0x151)](_0x1f8902){const _0x596fba=_0x27b931;let _0xdcbc4d=this[_0x596fba(0x153)](_0x1f8902);return _0xdcbc4d?(0x0,_0x470009['of'])(_0xdcbc4d):this['_entityInit$'][_0x596fba(0x11f)]((0x0,_0x5ba228[_0x596fba(0x12e)])(_0x575159=>_0x575159[_0x596fba(0x2ea)]===_0x1f8902));}[_0x27b931(0x346)](_0x261641){const _0x338c60=_0x27b931;return(0x0,_0x470009['firstValueFrom'])(this[_0x338c60(0x151)](_0x261641)['pipe']((0x0,_0x5ba228['map'])(()=>void 0x0)));}[_0x27b931(0xee)](){const _0x132b41=_0x27b931;this['_univerInstanceService'][_0x132b41(0x3d6)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x239)])[_0x132b41(0x11f)]((0x0,_0x470009[_0x132b41(0xdc)])(this[_0x132b41(0x18b)]),(0x0,_0x5ba228['delay'])(0x10))['subscribe'](async _0x34786d=>{const _0x11bcc3=_0x132b41;let _0x10cab0=_0x34786d['unit'][_0x11bcc3(0x3f1)](),_0x336efa=await this['_startCollaboration'](_0x10cab0,_0x47f753[_0x11bcc3(0x3fc)][_0x11bcc3(0x239)]);this[_0x11bcc3(0x3cc)][_0x11bcc3(0xf6)](_0x10cab0,_0x336efa);}),this[_0x132b41(0x37d)][_0x132b41(0x3d6)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x243)])[_0x132b41(0x11f)]((0x0,_0x470009[_0x132b41(0xdc)])(this['dispose$']),(0x0,_0x5ba228[_0x132b41(0xfa)])(0x10))['pipe']((0x0,_0x5ba228['filter'])(_0xad0059=>!_0xad0059[_0x132b41(0x191)][_0x132b41(0x3f1)]()['startsWith']('__')))[_0x132b41(0x38e)](async _0x2dfdef=>{const _0x168ed0=_0x132b41;let _0x525fc8=_0x2dfdef[_0x168ed0(0x191)]['getUnitId'](),_0x22a696=await this[_0x168ed0(0x220)](_0x525fc8,_0x47f753['UniverInstanceType'][_0x168ed0(0x243)]);this[_0x168ed0(0x3cc)][_0x168ed0(0xf6)](_0x525fc8,_0x22a696);}),this[_0x132b41(0x37d)][_0x132b41(0x3d6)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x339)])[_0x132b41(0x11f)]((0x0,_0x470009['takeUntil'])(this[_0x132b41(0x18b)]),(0x0,_0x5ba228[_0x132b41(0xfa)])(0x10))[_0x132b41(0x38e)](async _0x38a096=>{const _0x1c14ec=_0x132b41;let _0x31019d=_0x38a096['unit']['getUnitId'](),_0x4dec06=await this['_startCollaboration'](_0x31019d,_0x47f753[_0x1c14ec(0x3fc)][_0x1c14ec(0x339)]);this[_0x1c14ec(0x3cc)][_0x1c14ec(0xf6)](_0x31019d,_0x4dec06);}),this[_0x132b41(0x37d)][_0x132b41(0x3d6)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x41d)])['pipe']((0x0,_0x470009[_0x132b41(0xdc)])(this['dispose$']),(0x0,_0x5ba228[_0x132b41(0xfa)])(0x10))[_0x132b41(0x38e)](async _0x2d7b66=>{const _0x18b966=_0x132b41;let _0xde6610=_0x2d7b66[_0x18b966(0x191)][_0x18b966(0x3f1)](),_0x32790f=await this[_0x18b966(0x220)](_0xde6610,_0x47f753['UniverInstanceType'][_0x18b966(0x41d)]);this[_0x18b966(0x3cc)]['set'](_0xde6610,_0x32790f);}),this[_0x132b41(0x37d)]['getTypeOfUnitAdded$'](_0x47f753['UniverInstanceType'][_0x132b41(0x313)])[_0x132b41(0x11f)]((0x0,_0x470009[_0x132b41(0xdc)])(this['dispose$']),(0x0,_0x5ba228['delay'])(0x10))[_0x132b41(0x38e)](async _0x175386=>{const _0x4cddbc=_0x132b41;let _0x4bc7d8=_0x175386['unit'][_0x4cddbc(0x3f1)](),_0x35bcec=await this['_startCollaboration'](_0x4bc7d8,_0x47f753[_0x4cddbc(0x3fc)][_0x4cddbc(0x313)]);this[_0x4cddbc(0x3cc)][_0x4cddbc(0xf6)](_0x4bc7d8,_0x35bcec);}),(0x0,_0x470009[_0x132b41(0x407)])(this[_0x132b41(0x37d)][_0x132b41(0x28a)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x239)]),this[_0x132b41(0x37d)][_0x132b41(0x28a)](_0x47f753['UniverInstanceType']['UNIVER_DOC']),this[_0x132b41(0x37d)][_0x132b41(0x28a)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x339)]),this[_0x132b41(0x37d)][_0x132b41(0x28a)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x41d)]),this['_univerInstanceService'][_0x132b41(0x28a)](_0x47f753['UniverInstanceType'][_0x132b41(0x313)]))[_0x132b41(0x11f)]((0x0,_0x470009['takeUntil'])(this[_0x132b41(0x18b)]))[_0x132b41(0x38e)](_0x2710e8=>{const _0x57c330=_0x132b41;let _0x16e39f=_0x2710e8[_0x57c330(0x3f1)](),_0x3619fa=this[_0x57c330(0x3cc)]['get'](_0x16e39f);_0x3619fa&&(_0x3619fa[_0x57c330(0x2bc)](),this[_0x57c330(0x3cc)][_0x57c330(0x274)](_0x16e39f));});}async['_startCollaboration'](_0x46d33d,_0x13a62d){const _0x40d43b=_0x27b931;let _0x162442=await this[_0x40d43b(0x282)][_0x40d43b(0x410)](_0x46d33d),_0x3a4fdc=this['_injector'][_0x40d43b(0x392)](this['_getCtorByUniverInstanceType'](_0x13a62d),_0x46d33d,_0x13a62d,_0x162442);return await _0x3a4fdc[_0x40d43b(0x362)](),this[_0x40d43b(0x2d8)][_0x40d43b(0x396)](_0x3a4fdc),_0x3a4fdc;}[_0x27b931(0x2b3)](_0x14ed04){const _0x340e64=_0x27b931;switch(_0x14ed04){case _0x47f753[_0x340e64(0x3fc)]['UNIVER_DOC']:return _0x9eef43;case _0x47f753[_0x340e64(0x3fc)][_0x340e64(0x239)]:return _0x151d10;case _0x47f753['UniverInstanceType'][_0x340e64(0x339)]:return _0x292824;case _0x47f753[_0x340e64(0x3fc)][_0x340e64(0x41d)]:return _0x4b522f;case _0x47f753[_0x340e64(0x3fc)][_0x340e64(0x313)]:return _0x5c3e77;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x14ed04);}}};_0x203f75=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['Injector'])),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0xc5d6a5)),_0x2af294(0x2,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x3,_0x47f753[_0x27b931(0x235)])],_0x203f75);var _0x58d19e='@univerjs-pro/collaboration-client',_0x4c6d06=_0x27b931(0x100);let _0x43ec5e=class extends _0x47f753['Disposable']{constructor(_0x4bc8ae,_0x21d0a3){const _0x49d4e5=_0x27b931;super(),this[_0x49d4e5(0x37d)]=_0x4bc8ae,this['_configService']=_0x21d0a3,this['_init']();}[_0x27b931(0xee)](){const _0x5320d0=_0x27b931;this[_0x5320d0(0x3d7)](this[_0x5320d0(0x37d)]['focused$'][_0x5320d0(0x38e)](()=>{const _0x1fa01a=_0x5320d0;var _0x580932;let _0x3feb73=this[_0x1fa01a(0x37d)]['getFocusedUnit'](),_0x4d9279=(_0x580932=this['_configService'][_0x1fa01a(0x190)]('DEFAULT_FILE_NAME'))==null?_0x1fa01a(0x20e):_0x580932;_0x3feb73 instanceof _0x47f753['Workbook']&&(_0x4d9279=_0x3feb73['name']),document[_0x1fa01a(0x22f)]=_0x4d9279;}));}};_0x43ec5e=_0x1fb4c2([_0x2af294(0x0,_0x47f753['IUniverInstanceService']),_0x2af294(0x1,_0x47f753[_0x27b931(0x18f)])],_0x43ec5e);let _0x46b0a8=function(_0x4bc59d){const _0x418614=_0x27b931;return _0x4bc59d[_0x418614(0x323)]=_0x418614(0x323),_0x4bc59d[_0x418614(0x403)]='UUID',_0x4bc59d[_0x418614(0x2f0)]=_0x418614(0x2f0),_0x4bc59d;}({}),_0x4f7a6f=(0x0,_0x47f753[_0x27b931(0xfd)])(_0x27b931(0x3cf)),_0xeb1ef2=class{constructor(_0x4cf89f,_0x4b1f2a,_0x35ab87){const _0x180d80=_0x27b931;this[_0x180d80(0x3d8)]=_0x4cf89f,this['_configService']=_0x4b1f2a,this[_0x180d80(0x37d)]=_0x35ab87;}[_0x27b931(0x335)](){const _0x4d4640=_0x27b931;var _0x170302;return(_0x170302=this[_0x4d4640(0x2e7)]()[_0x4d4640(0x1cc)])==null?{}:_0x170302;}async[_0x27b931(0x118)](_0x1e7298){const _0x387dba=_0x27b931;let _0x4466af=this['getUploadOptions']();if(_0x2cf7d5(_0x1e7298,_0x4466af),_0x4466af[_0x387dba(0x194)])return _0x4466af[_0x387dba(0x194)](_0x1e7298);let _0x2ef366=await this[_0x387dba(0x3b1)](_0x1e7298);return{'id':_0x2ef366,'name':_0x1e7298[_0x387dba(0x3dc)],'mimeType':_0x1e7298[_0x387dba(0x2af)],'size':_0x1e7298['size'],'sourceType':'UUID','source':_0x2ef366};}async[_0x27b931(0x3b1)](_0x394604){const _0x59b3ec=_0x27b931;let _0x36cfad=this[_0x59b3ec(0x37d)]['getFocusedUnit'](),_0x785ec6=_0x36cfad==null?void 0x0:_0x36cfad[_0x59b3ec(0x3f1)]();if(!_0x785ec6)throw Error(_0x59b3ec(0x1d1));let _0x5af19e=new FormData();_0x5af19e[_0x59b3ec(0x3cb)](_0x59b3ec(0x184),_0x394604);let _0xc6005a=this[_0x59b3ec(0x33c)]()+_0x59b3ec(0x386)+_0x394604[_0x59b3ec(0x1f6)][_0x59b3ec(0x140)]()+'&source='+_0x26a654[_0x59b3ec(0x2cf)][_0x59b3ec(0x330)]+_0x59b3ec(0x3c3)+encodeURIComponent(_0x785ec6),_0x29cf76=(await this[_0x59b3ec(0x3d8)][_0x59b3ec(0x139)](_0xc6005a,{'body':_0x5af19e}))['body']['FileId'];if(typeof _0x29cf76!=_0x59b3ec(0x267)||!_0x29cf76)throw Error(_0x59b3ec(0x16e));return _0x29cf76;}['_getUploadFileURL'](){const _0x934759=_0x27b931;var _0x4a84e1;return(_0x4a84e1=this['_getConfig']()[_0x934759(0x2c4)])==null?_0x934759(0x213):_0x4a84e1;}[_0x27b931(0x2e7)](){const _0x3af5f3=_0x27b931;var _0x2d864f;return(_0x2d864f=this[_0x3af5f3(0x228)]['getConfig'](_0x3af5f3(0x178)))==null?{}:_0x2d864f;}};_0xeb1ef2=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x8f2da5[_0x27b931(0x2e6)])),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x18f)])),_0x2af294(0x2,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x235)]))],_0xeb1ef2);function _0x2cf7d5(_0x452f38,_0x186b2b){const _0x2a8312=_0x27b931;var _0x2462e0;if(_0x186b2b[_0x2a8312(0x3e4)]!=null&&_0x452f38[_0x2a8312(0x1f6)]>_0x186b2b[_0x2a8312(0x3e4)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x2462e0=_0x186b2b[_0x2a8312(0x281)])!=null&&_0x2462e0[_0x2a8312(0x415)]&&!_0x186b2b[_0x2a8312(0x281)][_0x2a8312(0x405)](_0x1cc0b1=>_0x452f38[_0x2a8312(0x2af)]===_0x1cc0b1||_0x452f38['name']['endsWith'](_0x1cc0b1)||_0x1cc0b1[_0x2a8312(0x3e1)]('/*')&&_0x452f38[_0x2a8312(0x2af)][_0x2a8312(0x2df)](_0x1cc0b1[_0x2a8312(0x14f)](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let _0x149557=class{constructor(_0x230a0f,_0x3fead6,_0xa170d9){const _0x496d3b=_0x27b931;this[_0x496d3b(0x228)]=_0x230a0f,this[_0x496d3b(0x3d8)]=_0x3fead6,this[_0x496d3b(0x2c8)]=_0xa170d9,this[_0x496d3b(0x362)]();}[_0x27b931(0x362)](){const _0x11bf78=_0x27b931;this[_0x11bf78(0x3d8)][_0x11bf78(0xcf)]({'priority':0x1,'interceptor':(_0x481c57,_0x14685a)=>_0x14685a(_0x481c57)[_0x11bf78(0x11f)]((0x0,_0x470009[_0x11bf78(0x27f)])(async _0x5a4c77=>{const _0x163da4=_0x11bf78;let _0x3e8853=_0x5a4c77;if(_0x3e8853[_0x163da4(0x397)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x163da4(0x268)](this[_0x163da4(0x2c8)]['t'](_0x163da4(0x25d)))){let _0x5b3946=window[_0x163da4(0x129)](window['location']['href']);window['location']['href']=this[_0x163da4(0x3b9)]()+_0x163da4(0x2e5)+_0x5b3946;}}return _0x3e8853;}))});}[_0x27b931(0x3b9)](){const _0x56bd05=_0x27b931;var _0x135871;let _0x3d9b9e=this[_0x56bd05(0x228)]['getConfig'](_0x3c17be);return(_0x135871=_0x3d9b9e==null?void 0x0:_0x3d9b9e['loginUrlKey'])==null?_0x56bd05(0x2c3):_0x135871;}};_0x149557=_0x1fb4c2([_0x2af294(0x0,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x1,(0x0,_0x47f753['Inject'])(_0x8f2da5['HTTPService'])),_0x2af294(0x2,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0xde)]))],_0x149557);let _0x3d6a88=class extends _0x47f753[_0x27b931(0x25e)]{constructor(_0x590399,_0x58c645){const _0x136149=_0x27b931;super(),this[_0x136149(0x345)]=_0x590399,this['_configService']=_0x58c645,_0x2dd74e(this,_0x136149(0x171),!0x1),this[_0x136149(0x152)]();}[_0x27b931(0x152)](){const _0xa2a887=_0x27b931;let _0x1f9c20=this;this[_0xa2a887(0x3d7)](this[_0xa2a887(0x345)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,_0x8f2da5[_0xa2a887(0x360)])({'isMatch'(_0x149dcc){const _0x9853ee=_0xa2a887;var _0x37010;if(_0x149dcc[_0x9853ee(0x1f9)]==='POST'&&(_0x37010=_0x149dcc[_0x9853ee(0x41f)])!=null&&_0x37010[_0x9853ee(0x2d9)]){let {objectID:_0x4fd24e,objectType:_0x1d5a9c}=_0x149dcc[_0x9853ee(0x41f)][_0x9853ee(0x2d9)]||{};if(!_0x4fd24e||_0x1d5a9c===void 0x0)return!0x1;let _0x2dfd8f=_0x1f9c20[_0x9853ee(0xe2)]()+'/'+_0x1d5a9c+_0x9853ee(0x20b)+_0x4fd24e+_0x9853ee(0x395);if(_0x149dcc[_0x9853ee(0xd6)]===_0x2dfd8f)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x596061){const _0x281a30=_0xa2a887;var _0x3fcca1;return(_0x3fcca1=_0x596061[_0x281a30(0x41f)])==null?void 0x0:_0x3fcca1[_0x281a30(0x2d9)];},'mergeParamsToRequest'(_0x3a94ce,_0x3a3f23){const _0x538489=_0xa2a887;let _0x2ffb68=_0x1f9c20[_0x538489(0xe2)]()+_0x538489(0x145),_0x57158f=_0x3a94ce[_0x538489(0x1ca)]((_0x3989ed,_0x4a00cd)=>{const _0x12fd24=_0x538489;let {unitID:_0x5581b5,objectID:_0x26d386,objectType:_0x2d7051,actions:_0x50d2fa}=_0x4a00cd;return _0x3989ed[_0x5581b5]||(_0x3989ed[_0x5581b5]={}),_0x3989ed[_0x5581b5][_0x26d386]||(_0x3989ed[_0x5581b5][_0x26d386]={'objectID':_0x26d386,'objectType':_0x2d7051,'actions':[]}),_0x3989ed[_0x5581b5][_0x26d386][_0x12fd24(0x1b8)][_0x12fd24(0x30b)](..._0x50d2fa),_0x3989ed;},{}),_0x33b7c8=[];for(let _0x5181d7 in _0x57158f)for(let _0x4b1a77 in _0x57158f[_0x5181d7]){let {actions:_0x4bedbf,objectType:_0x2ef9e9}=_0x57158f[_0x5181d7][_0x4b1a77],_0x36a0f3=[...new Set(_0x4bedbf)];_0x33b7c8['push']({'unitID':_0x5181d7,'objectID':_0x4b1a77,'objectType':_0x2ef9e9,'actions':_0x36a0f3});}return new _0x8f2da5[(_0x538489(0x408))]('POST',_0x2ffb68,{'headers':_0x3a3f23['headers'],'withCredentials':_0x3a3f23['withCredentials'],'responseType':_0x3a3f23[_0x538489(0xdb)],'body':{'requests':_0x33b7c8}});}},{'distributeResult'(_0x5dad24,_0x478e10){const _0x50c98e=_0xa2a887;let {objectActions:_0x400011}=_0x5dad24;return _0x478e10[_0x50c98e(0x394)](_0x1cd1e0=>{const _0x51cce8=_0x50c98e;let {unitID:_0x1c2e2d,objectID:_0x43d917,actions:_0x15cee2}=_0x1cd1e0,_0x1f2a54=_0x400011[_0x51cce8(0x204)](_0x50f37f=>_0x50f37f[_0x51cce8(0x2ea)]===_0x1c2e2d&&_0x50f37f[_0x51cce8(0x1f1)]===_0x43d917);return{'config':_0x1cd1e0,'result':{'actions':_0x15cee2[_0x51cce8(0x394)](_0x213f8f=>_0x1f2a54==null?void 0x0:_0x1f2a54[_0x51cce8(0x1b8)]['find'](_0x5042eb=>_0x5042eb[_0x51cce8(0x3ec)]===_0x213f8f))[_0x51cce8(0x12e)](_0x467684=>!!_0x467684),'error':_0x5dad24[_0x51cce8(0x294)]}};});}})}));}[_0x27b931(0xe2)](){const _0x3bb04f=_0x27b931;var _0x194cc5;let _0x2627a0=this['_configService']['getConfig'](_0x3c17be);return(_0x194cc5=_0x2627a0==null?void 0x0:_0x2627a0[_0x3bb04f(0x1c1)])==null?_0x3bb04f(0x2d4):_0x194cc5;}async[_0x27b931(0x1fb)](_0x472dcc){const _0x79e3f9=_0x27b931;let _0x583be9=this[_0x79e3f9(0xe2)]()+'/'+_0x472dcc[_0x79e3f9(0x30c)]+_0x79e3f9(0x148);return(await this[_0x79e3f9(0x345)][_0x79e3f9(0x139)](_0x583be9,{'body':_0x472dcc}))[_0x79e3f9(0x2d9)][_0x79e3f9(0x1f1)]||'';}async[_0x27b931(0x3c5)](_0x3ac3a0){const _0x412014=_0x27b931;let _0x5957da=this['_getAPIPrefixPath']()+_0x412014(0x3a0);return(await this[_0x412014(0x345)]['post'](_0x5957da,{'body':_0x3ac3a0}))['body'][_0x412014(0x110)];}async[_0x27b931(0x333)](_0x204403){const _0x2b246e=_0x27b931;var _0x5601ac;let _0xae7a70=this[_0x2b246e(0xe2)]()+'/'+_0x204403[_0x2b246e(0x30c)]+_0x2b246e(0x20b)+_0x204403[_0x2b246e(0x1f1)],_0x29657c=await this[_0x2b246e(0x345)][_0x2b246e(0x1fd)](_0xae7a70,{'body':_0x204403});if((_0x29657c==null||(_0x5601ac=_0x29657c[_0x2b246e(0x2d9)])==null||(_0x5601ac=_0x5601ac[_0x2b246e(0x294)])==null?void 0x0:_0x5601ac[_0x2b246e(0x1fc)])!==0x1)throw Error(_0x2b246e(0x112));}async['allowed'](_0xd9a9b8){const _0x3cd183=_0x27b931;let _0x1ad9c3=this[_0x3cd183(0xe2)]()+'/'+_0xd9a9b8[_0x3cd183(0x30c)]+_0x3cd183(0x20b)+_0xd9a9b8[_0x3cd183(0x1f1)]+_0x3cd183(0x395);return(await this['_HTTPService'][_0x3cd183(0x139)](_0x1ad9c3,{'body':_0xd9a9b8}))['body'][_0x3cd183(0x1b8)];}async[_0x27b931(0xfb)](_0x341669){const _0x42d944=_0x27b931;let _0x3d6283=this[_0x42d944(0xe2)]()+_0x42d944(0x145);return(await this[_0x42d944(0x345)][_0x42d944(0x139)](_0x3d6283,{'body':{'requests':_0x341669}}))['body']['objectActions'];}async[_0x27b931(0x3c0)](_0x29c21e){const _0x4cf224=_0x27b931;let _0x529754=this['_getAPIPrefixPath']()+'/'+_0x29c21e[_0x4cf224(0x30c)]+_0x4cf224(0x240),_0x4684ec=await this[_0x4cf224(0x345)][_0x4cf224(0x139)](_0x529754,{'body':_0x29c21e});return{'roles':_0x4684ec['body'][_0x4cf224(0x1c7)],'actions':_0x4684ec[_0x4cf224(0x2d9)][_0x4cf224(0x1b8)]};}async['deleteCollaborator'](_0x3339fc){const _0x546a60=_0x27b931;let _0x4e19ca=this[_0x546a60(0xe2)]()+_0x546a60(0x241);await this[_0x546a60(0x345)][_0x546a60(0x274)](_0x4e19ca,{'params':{'collaboratorID':_0x3339fc[_0x546a60(0x16a)],'objectID':_0x3339fc[_0x546a60(0x1f1)],'unitID':_0x3339fc[_0x546a60(0x2ea)]}});}async[_0x27b931(0x317)](_0xc1d3dc){const _0x457695=_0x27b931;let _0x5628c7=this[_0x457695(0xe2)]()+_0x457695(0x241);await this[_0x457695(0x345)][_0x457695(0x381)](_0x5628c7,{'body':_0xc1d3dc});}async[_0x27b931(0x3fa)](_0x1e0e2b){const _0x467530=_0x27b931;let _0x55a39a=this[_0x467530(0xe2)]()+'/collaborator';await this[_0x467530(0x345)]['post'](_0x55a39a,{'body':_0x1e0e2b});}async[_0x27b931(0x205)](_0xc03d24){const _0xad8b98=_0x27b931;var _0x1dc95d;let _0x5f37ca=this[_0xad8b98(0xe2)]()+'/collaborator',_0x28da2b=await this[_0xad8b98(0x345)]['get'](_0x5f37ca,{'params':{'objectID':_0xc03d24[_0xad8b98(0x1f1)],'unitID':_0xc03d24[_0xad8b98(0x2ea)]}});return this[_0xad8b98(0x128)]((_0x1dc95d=_0x28da2b['body'][_0xad8b98(0x361)])==null?!0x1:_0x1dc95d),_0x28da2b['body'][_0xad8b98(0x19a)];}async[_0x27b931(0x3bd)](_0x427007){const _0x943ab6=_0x27b931;let _0x2ee8c3=this[_0x943ab6(0xe2)]()+_0x943ab6(0x241);await this['_HTTPService']['put'](_0x2ee8c3,{'body':_0x427007});}['setCfgEnableObjInherit'](_0x2c863a){const _0x2dc2fe=_0x27b931;this[_0x2dc2fe(0x171)]=_0x2c863a;}['getCfgEnableObjInherit'](){const _0x25a9b0=_0x27b931;return this[_0x25a9b0(0x171)];}};_0x3d6a88=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753['Inject'])(_0x8f2da5[_0x27b931(0x2e6)])),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x18f)]))],_0x3d6a88);function _0x3602e5(_0x52e75a){const _0x3f9892=_0x27b931;return _0x52e75a instanceof Uint8Array||ArrayBuffer[_0x3f9892(0x19d)](_0x52e75a)&&_0x52e75a['constructor'][_0x3f9892(0x3dc)]===_0x3f9892(0x28d)&&_0x3f9892(0x2db)in _0x52e75a&&_0x52e75a[_0x3f9892(0x2db)]===0x1;}function _0x149fcc(_0x5edd6e){const _0x31abaa=_0x27b931;if(typeof _0x5edd6e!=_0x31abaa(0x116))throw TypeError(_0x31abaa(0x33b)+typeof _0x5edd6e);if(!Number[_0x31abaa(0x11c)](_0x5edd6e)||_0x5edd6e<0x0)throw RangeError(_0x31abaa(0x2b6)+_0x5edd6e);}function _0x241cc3(_0x1ae51d,_0x284b11,_0x2ae0a0=''){const _0x1caaff=_0x27b931;let _0x22d788=_0x3602e5(_0x1ae51d),_0x5405f0=_0x1ae51d==null?void 0x0:_0x1ae51d[_0x1caaff(0x415)],_0x4eff70=_0x284b11!==void 0x0;if(!_0x22d788||_0x4eff70&&_0x5405f0!==_0x284b11){let _0x4920e3=_0x2ae0a0&&'\x22'+_0x2ae0a0+'\x22\x20',_0x1bc4cb=_0x4eff70?_0x1caaff(0x3a8)+_0x284b11:'',_0x42ba4=_0x22d788?_0x1caaff(0x218)+_0x5405f0:_0x1caaff(0x364)+typeof _0x1ae51d,_0x1fd482=_0x4920e3+'expected\x20Uint8Array'+_0x1bc4cb+_0x1caaff(0x23e)+_0x42ba4;throw _0x22d788?RangeError(_0x1fd482):TypeError(_0x1fd482);}return _0x1ae51d;}function _0x505ef8(_0x3f7e79){const _0x5e2b64=_0x27b931;return new Uint32Array(_0x3f7e79[_0x5e2b64(0xe3)],_0x3f7e79[_0x5e2b64(0x36b)],Math['floor'](_0x3f7e79[_0x5e2b64(0x209)]/0x4));}function _0xfcd1a4(..._0x58e63d){const _0xf65bd0=_0x27b931;for(let _0x2712b4=0x0;_0x2712b4<_0x58e63d[_0xf65bd0(0x415)];_0x2712b4++)_0x58e63d[_0x2712b4]['fill'](0x0);}let _0x4fbc4d=new Uint8Array(new Uint32Array([0x11223344])[_0x27b931(0xe3)])[0x0]===0x44,_0x15bbe2=_0x537e2d=>_0x537e2d<<0x18&0xff000000|_0x537e2d<<0x8&0xff0000|_0x537e2d>>>0x8&0xff00|_0x537e2d>>>0x18&0xff,_0x93eb92=_0x4fbc4d?_0x5acde6=>_0x5acde6:_0xc26f0=>{for(let _0x227cd1=0x0;_0x227cd1<_0xc26f0['length'];_0x227cd1++)_0xc26f0[_0x227cd1]=_0x15bbe2(_0xc26f0[_0x227cd1]);return _0xc26f0;};function _0x395142(_0x3ec1a5){const _0x5767e1=_0x27b931;if(typeof _0x3ec1a5!=_0x5767e1(0x267))throw TypeError(_0x5767e1(0x10e));return new Uint8Array(new TextEncoder()[_0x5767e1(0x2f4)](_0x3ec1a5));}function _0x4490ca(_0x288f1a,_0x28bd82){const _0x1a10da=_0x27b931;return!_0x288f1a[_0x1a10da(0x209)]||!_0x28bd82[_0x1a10da(0x209)]?!0x1:_0x288f1a[_0x1a10da(0xe3)]===_0x28bd82[_0x1a10da(0xe3)]&&_0x288f1a['byteOffset']<_0x28bd82[_0x1a10da(0x36b)]+_0x28bd82[_0x1a10da(0x209)]&&_0x28bd82['byteOffset']<_0x288f1a['byteOffset']+_0x288f1a[_0x1a10da(0x209)];}function _0x34ca96(_0x1522c1,_0x793018){const _0x317d52=_0x27b931;if(_0x4490ca(_0x1522c1,_0x793018)&&_0x1522c1[_0x317d52(0x36b)]<_0x793018[_0x317d52(0x36b)])throw Error(_0x317d52(0x27a));}function _0x3f9ffe(..._0x2db177){const _0x407638=_0x27b931;let _0x11faea=0x0;for(let _0x176e2b=0x0;_0x176e2b<_0x2db177['length'];_0x176e2b++){let _0x561d95=_0x2db177[_0x176e2b];_0x241cc3(_0x561d95),_0x11faea+=_0x561d95[_0x407638(0x415)];}let _0x2212c3=new Uint8Array(_0x11faea);for(let _0x1c996a=0x0,_0x244f6b=0x0;_0x1c996a<_0x2db177[_0x407638(0x415)];_0x1c996a++){let _0x131447=_0x2db177[_0x1c996a];_0x2212c3[_0x407638(0xf6)](_0x131447,_0x244f6b),_0x244f6b+=_0x131447['length'];}return _0x2212c3;}let _0x53e818=(_0x43b0e0,_0x39bf04)=>{function _0x4da402(_0x10d859,..._0x5319cc){const _0x5f4f2d=_0x1420;if(_0x241cc3(_0x10d859,void 0x0,'key'),_0x43b0e0[_0x5f4f2d(0x354)]!==void 0x0){let _0x48b0b1=_0x5319cc[0x0];_0x241cc3(_0x48b0b1,_0x43b0e0[_0x5f4f2d(0x34e)]?void 0x0:_0x43b0e0[_0x5f4f2d(0x354)],_0x5f4f2d(0xed));}let _0x5a04ac=_0x43b0e0[_0x5f4f2d(0x36d)];_0x5a04ac&&_0x5319cc[0x1]!==void 0x0&&_0x241cc3(_0x5319cc[0x1],void 0x0,'AAD');let _0x281876=_0x39bf04(_0x10d859,..._0x5319cc),_0x4eccd4=(_0x397952,_0x2e34a4)=>{const _0x1b9e46=_0x5f4f2d;if(_0x2e34a4!==void 0x0){if(_0x397952!==0x2)throw Error('cipher\x20output\x20not\x20supported');_0x241cc3(_0x2e34a4,void 0x0,_0x1b9e46(0x2d0));}},_0x4a820e=!0x1;return{'encrypt'(_0x209749,_0x5a3164){const _0x28fde3=_0x5f4f2d;if(_0x4a820e)throw Error(_0x28fde3(0x2a7));return _0x4a820e=!0x0,_0x241cc3(_0x209749),_0x4eccd4(_0x281876['encrypt'][_0x28fde3(0x415)],_0x5a3164),_0x281876[_0x28fde3(0x258)](_0x209749,_0x5a3164);},'decrypt'(_0x3b87be,_0x56fe85){const _0x1c8044=_0x5f4f2d;if(_0x241cc3(_0x3b87be),_0x5a04ac&&_0x3b87be[_0x1c8044(0x415)]<_0x5a04ac)throw Error(_0x1c8044(0x30a)+_0x5a04ac);return _0x4eccd4(_0x281876['decrypt'][_0x1c8044(0x415)],_0x56fe85),_0x281876[_0x1c8044(0x19e)](_0x3b87be,_0x56fe85);}};}return Object['assign'](_0x4da402,_0x43b0e0),_0x4da402;};function _0x30f906(_0x2d1dbe,_0x4db4f6,_0x2829ff=!0x0){const _0x4df560=_0x27b931;if(_0x4db4f6===void 0x0)return new Uint8Array(_0x2d1dbe);if(_0x241cc3(_0x4db4f6,void 0x0,_0x4df560(0x2d0)),_0x4db4f6['length']!==_0x2d1dbe)throw Error(_0x4df560(0x2a4)+_0x2d1dbe+',\x20got:\x20'+_0x4db4f6[_0x4df560(0x415)]);if(_0x2829ff&&!_0x15866a(_0x4db4f6))throw Error(_0x4df560(0x412));return _0x4db4f6;}function _0x15866a(_0x4036c9){const _0xb716a1=_0x27b931;return _0x4036c9[_0xb716a1(0x36b)]%0x4==0x0;}function _0x5b679f(_0x490316){const _0x10e637=_0x27b931;return Uint8Array[_0x10e637(0x21c)](_0x241cc3(_0x490316));}function _0x2d2cd9(_0x304e43=0x20){const _0x2a816b=_0x27b931;_0x149fcc(_0x304e43);let _0x28591d=typeof globalThis==_0x2a816b(0x2e9)?globalThis[_0x2a816b(0x24a)]:null;if(typeof(_0x28591d==null?void 0x0:_0x28591d[_0x2a816b(0x28f)])!='function')throw Error(_0x2a816b(0x114));return _0x28591d[_0x2a816b(0x28f)](new Uint8Array(_0x304e43));}function _0x6bc83e(_0x2f5cec){const _0x36a804=_0x27b931;if(![0x10,0x18,0x20][_0x36a804(0xf2)](_0x2f5cec[_0x36a804(0x415)]))throw Error(_0x36a804(0x1df)+_0x2f5cec[_0x36a804(0x415)]);}function _0x18f630(_0x2f6f80){return _0x2f6f80<<0x1^0x11b&-(_0x2f6f80>>0x7);}function _0x41759a(_0x3a5b9c,_0x28051d){let _0x16b53e=0x0;for(;_0x28051d>0x0;_0x28051d>>=0x1)_0x16b53e^=_0x3a5b9c&-(_0x28051d&0x1),_0x3a5b9c=_0x18f630(_0x3a5b9c);return _0x16b53e;}let _0x21c9fc=((()=>{let _0x140eeb=new Uint8Array(0x100);for(let _0x419ef8=0x0,_0x25bafa=0x1;_0x419ef8<0x100;_0x419ef8++,_0x25bafa^=_0x18f630(_0x25bafa))_0x140eeb[_0x419ef8]=_0x25bafa;let _0x3a9dc2=new Uint8Array(0x100);_0x3a9dc2[0x0]=0x63;for(let _0x423d1a=0x0;_0x423d1a<0xff;_0x423d1a++){let _0x31ae1b=_0x140eeb[0xff-_0x423d1a];_0x31ae1b|=_0x31ae1b<<0x8,_0x3a9dc2[_0x140eeb[_0x423d1a]]=(_0x31ae1b^_0x31ae1b>>0x4^_0x31ae1b>>0x5^_0x31ae1b>>0x6^_0x31ae1b>>0x7^0x63)&0xff;}return _0xfcd1a4(_0x140eeb),_0x3a9dc2;})()),_0x1560ce=_0x21c9fc[_0x27b931(0x394)]((_0xd0c344,_0x315b2f)=>_0x21c9fc[_0x27b931(0x290)](_0x315b2f)),_0x580e75=_0x2398e0=>_0x2398e0<<0x18|_0x2398e0>>>0x8,_0x2ebee5=_0x58cbd4=>_0x58cbd4<<0x8|_0x58cbd4>>>0x18;function _0x44a576(_0x18585d,_0x2e4bb3){const _0x353094=_0x27b931;if(_0x18585d[_0x353094(0x415)]!==0x100)throw Error(_0x353094(0x166));let _0x1f5e53=new Uint32Array(0x100)[_0x353094(0x394)]((_0x1f9213,_0x1a2034)=>_0x2e4bb3(_0x18585d[_0x1a2034])),_0x4facc5=_0x1f5e53['map'](_0x2ebee5),_0x4a3060=_0x4facc5[_0x353094(0x394)](_0x2ebee5),_0xd5e156=_0x4a3060[_0x353094(0x394)](_0x2ebee5),_0x480a76=new Uint32Array(0x100*0x100),_0x30ad27=new Uint32Array(0x100*0x100),_0xf716dd=new Uint16Array(0x100*0x100);for(let _0x1472bf=0x0;_0x1472bf<0x100;_0x1472bf++)for(let _0x35856b=0x0;_0x35856b<0x100;_0x35856b++){let _0x222fdc=_0x1472bf*0x100+_0x35856b;_0x480a76[_0x222fdc]=_0x1f5e53[_0x1472bf]^_0x4facc5[_0x35856b],_0x30ad27[_0x222fdc]=_0x4a3060[_0x1472bf]^_0xd5e156[_0x35856b],_0xf716dd[_0x222fdc]=_0x18585d[_0x1472bf]<<0x8|_0x18585d[_0x35856b];}return{'sbox':_0x18585d,'sbox2':_0xf716dd,'T0':_0x1f5e53,'T1':_0x4facc5,'T2':_0x4a3060,'T3':_0xd5e156,'T01':_0x480a76,'T23':_0x30ad27};}let _0x396ca3=_0x44a576(_0x21c9fc,_0x5e8dbf=>_0x41759a(_0x5e8dbf,0x3)<<0x18|_0x5e8dbf<<0x10|_0x5e8dbf<<0x8|_0x41759a(_0x5e8dbf,0x2)),_0x2ab22e=_0x44a576(_0x1560ce,_0x8b1175=>_0x41759a(_0x8b1175,0xb)<<0x18|_0x41759a(_0x8b1175,0xd)<<0x10|_0x41759a(_0x8b1175,0x9)<<0x8|_0x41759a(_0x8b1175,0xe)),_0x4363d3=((()=>{let _0x1137bc=new Uint8Array(0x10);for(let _0x26f165=0x0,_0x5807e1=0x1;_0x26f165<0x10;_0x26f165++,_0x5807e1=_0x18f630(_0x5807e1))_0x1137bc[_0x26f165]=_0x5807e1;return _0x1137bc;})());function _0x1bd2b0(_0x3ae0f5){const _0x4e7820=_0x27b931;_0x241cc3(_0x3ae0f5);let _0xf4e211=_0x3ae0f5[_0x4e7820(0x415)];_0x6bc83e(_0x3ae0f5);let {sbox2:_0x15903c}=_0x396ca3,_0x564a30=[];(!_0x4fbc4d||!_0x15866a(_0x3ae0f5))&&_0x564a30[_0x4e7820(0x30b)](_0x3ae0f5=_0x5b679f(_0x3ae0f5));let _0x20fa68=_0x93eb92(_0x505ef8(_0x3ae0f5)),_0x1f78ef=_0x20fa68['length'],_0x147e4e=_0x1f1585=>_0x48b4a2(_0x15903c,_0x1f1585,_0x1f1585,_0x1f1585,_0x1f1585),_0x5d2edf=new Uint32Array(_0xf4e211+0x1c);_0x5d2edf['set'](_0x20fa68);for(let _0x4ad34b=_0x1f78ef;_0x4ad34b<_0x5d2edf[_0x4e7820(0x415)];_0x4ad34b++){let _0x34e210=_0x5d2edf[_0x4ad34b-0x1];_0x4ad34b%_0x1f78ef===0x0?_0x34e210=_0x147e4e(_0x580e75(_0x34e210))^_0x4363d3[_0x4ad34b/_0x1f78ef-0x1]:_0x1f78ef>0x6&&_0x4ad34b%_0x1f78ef===0x4&&(_0x34e210=_0x147e4e(_0x34e210)),_0x5d2edf[_0x4ad34b]=_0x5d2edf[_0x4ad34b-_0x1f78ef]^_0x34e210;}return _0xfcd1a4(..._0x564a30),_0x5d2edf;}function _0x81f1df(_0x193b99){const _0x1671cf=_0x27b931;let _0x580c97=_0x1bd2b0(_0x193b99),_0x170f8d=_0x580c97[_0x1671cf(0x14f)](),_0x177c0e=_0x580c97['length'],{sbox2:_0x4bdea7}=_0x396ca3,{T0:_0x40ae63,T1:_0x57055d,T2:_0x2f8524,T3:_0x222bbb}=_0x2ab22e;for(let _0x57fa2d=0x0;_0x57fa2d<_0x177c0e;_0x57fa2d+=0x4)for(let _0x5d214d=0x0;_0x5d214d<0x4;_0x5d214d++)_0x170f8d[_0x57fa2d+_0x5d214d]=_0x580c97[_0x177c0e-_0x57fa2d-0x4+_0x5d214d];_0xfcd1a4(_0x580c97);for(let _0x3e7f67=0x4;_0x3e7f67<_0x177c0e-0x4;_0x3e7f67++){let _0x26b82b=_0x170f8d[_0x3e7f67],_0x50a572=_0x48b4a2(_0x4bdea7,_0x26b82b,_0x26b82b,_0x26b82b,_0x26b82b);_0x170f8d[_0x3e7f67]=_0x40ae63[_0x50a572&0xff]^_0x57055d[_0x50a572>>>0x8&0xff]^_0x2f8524[_0x50a572>>>0x10&0xff]^_0x222bbb[_0x50a572>>>0x18];}return _0x170f8d;}function _0x55bab8(_0x40b2e1,_0xdad542,_0x3a7beb,_0x551b24,_0x3fafdf,_0x3caec2){return _0x40b2e1[_0x3a7beb<<0x8&0xff00|_0x551b24>>>0x8&0xff]^_0xdad542[_0x3fafdf>>>0x8&0xff00|_0x3caec2>>>0x18&0xff];}function _0x48b4a2(_0xfe73fc,_0x428702,_0x94e3a5,_0x591b4d,_0x5bfc43){return _0xfe73fc[_0x428702&0xff|_0x94e3a5&0xff00]|_0xfe73fc[_0x591b4d>>>0x10&0xff|_0x5bfc43>>>0x10&0xff00]<<0x10;}function _0x430a23(_0x3f3681,_0x1f2927,_0x1f81f9,_0x29b3d3,_0xf01745){const _0x36fd69=_0x27b931;let {sbox2:_0x24ff21,T01:_0x59f07d,T23:_0x535e66}=_0x396ca3,_0x4c5f05=0x0;_0x1f2927^=_0x3f3681[_0x4c5f05++],_0x1f81f9^=_0x3f3681[_0x4c5f05++],_0x29b3d3^=_0x3f3681[_0x4c5f05++],_0xf01745^=_0x3f3681[_0x4c5f05++];let _0x440da1=_0x3f3681[_0x36fd69(0x415)]/0x4-0x2;for(let _0x443a2c=0x0;_0x443a2c<_0x440da1;_0x443a2c++){let _0x16b8bb=_0x3f3681[_0x4c5f05++]^_0x55bab8(_0x59f07d,_0x535e66,_0x1f2927,_0x1f81f9,_0x29b3d3,_0xf01745),_0x1a392d=_0x3f3681[_0x4c5f05++]^_0x55bab8(_0x59f07d,_0x535e66,_0x1f81f9,_0x29b3d3,_0xf01745,_0x1f2927),_0x18e3f7=_0x3f3681[_0x4c5f05++]^_0x55bab8(_0x59f07d,_0x535e66,_0x29b3d3,_0xf01745,_0x1f2927,_0x1f81f9),_0x31bf33=_0x3f3681[_0x4c5f05++]^_0x55bab8(_0x59f07d,_0x535e66,_0xf01745,_0x1f2927,_0x1f81f9,_0x29b3d3);_0x1f2927=_0x16b8bb,_0x1f81f9=_0x1a392d,_0x29b3d3=_0x18e3f7,_0xf01745=_0x31bf33;}return{'s0':_0x3f3681[_0x4c5f05++]^_0x48b4a2(_0x24ff21,_0x1f2927,_0x1f81f9,_0x29b3d3,_0xf01745),'s1':_0x3f3681[_0x4c5f05++]^_0x48b4a2(_0x24ff21,_0x1f81f9,_0x29b3d3,_0xf01745,_0x1f2927),'s2':_0x3f3681[_0x4c5f05++]^_0x48b4a2(_0x24ff21,_0x29b3d3,_0xf01745,_0x1f2927,_0x1f81f9),'s3':_0x3f3681[_0x4c5f05++]^_0x48b4a2(_0x24ff21,_0xf01745,_0x1f2927,_0x1f81f9,_0x29b3d3)};}function _0x1b88cd(_0x4cb57f,_0x350100,_0x587263,_0x32d497,_0xf4e04d){const _0x2c0d2b=_0x27b931;let {sbox2:_0x5dd316,T01:_0xea43b4,T23:_0x4f6e8a}=_0x2ab22e,_0x481196=0x0;_0x350100^=_0x4cb57f[_0x481196++],_0x587263^=_0x4cb57f[_0x481196++],_0x32d497^=_0x4cb57f[_0x481196++],_0xf4e04d^=_0x4cb57f[_0x481196++];let _0x477037=_0x4cb57f[_0x2c0d2b(0x415)]/0x4-0x2;for(let _0x362b73=0x0;_0x362b73<_0x477037;_0x362b73++){let _0x209215=_0x4cb57f[_0x481196++]^_0x55bab8(_0xea43b4,_0x4f6e8a,_0x350100,_0xf4e04d,_0x32d497,_0x587263),_0x5d0db5=_0x4cb57f[_0x481196++]^_0x55bab8(_0xea43b4,_0x4f6e8a,_0x587263,_0x350100,_0xf4e04d,_0x32d497),_0x523796=_0x4cb57f[_0x481196++]^_0x55bab8(_0xea43b4,_0x4f6e8a,_0x32d497,_0x587263,_0x350100,_0xf4e04d),_0x4f4dee=_0x4cb57f[_0x481196++]^_0x55bab8(_0xea43b4,_0x4f6e8a,_0xf4e04d,_0x32d497,_0x587263,_0x350100);_0x350100=_0x209215,_0x587263=_0x5d0db5,_0x32d497=_0x523796,_0xf4e04d=_0x4f4dee;}return{'s0':_0x4cb57f[_0x481196++]^_0x48b4a2(_0x5dd316,_0x350100,_0xf4e04d,_0x32d497,_0x587263),'s1':_0x4cb57f[_0x481196++]^_0x48b4a2(_0x5dd316,_0x587263,_0x350100,_0xf4e04d,_0x32d497),'s2':_0x4cb57f[_0x481196++]^_0x48b4a2(_0x5dd316,_0x32d497,_0x587263,_0x350100,_0xf4e04d),'s3':_0x4cb57f[_0x481196++]^_0x48b4a2(_0x5dd316,_0xf4e04d,_0x32d497,_0x587263,_0x350100)};}function _0x2fa415(_0x1a9c90){const _0x2b14fb=_0x27b931;if(_0x241cc3(_0x1a9c90),_0x1a9c90[_0x2b14fb(0x415)]%0x10!=0x0)throw Error('aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016');}function _0x574f0b(_0x1996a5,_0x38547e,_0x5df844){const _0x3f1eac=_0x27b931;_0x241cc3(_0x1996a5);let _0x236dbb=_0x1996a5[_0x3f1eac(0x415)],_0x19e906=_0x236dbb%0x10;if(!_0x38547e&&_0x19e906!==0x0)throw Error(_0x3f1eac(0x201));if(_0x38547e){let _0x329311=0x10-_0x19e906;_0x329311||(_0x329311=0x10),_0x236dbb+=_0x329311;}_0x5df844=_0x30f906(_0x236dbb,_0x5df844),_0x34ca96(_0x1996a5,_0x5df844),(!_0x4fbc4d||!_0x15866a(_0x1996a5))&&(_0x1996a5=_0x5b679f(_0x1996a5));let _0x544b1a=_0x505ef8(_0x1996a5);return _0x93eb92(_0x544b1a),{'b':_0x544b1a,'o':_0x505ef8(_0x5df844),'out':_0x5df844};}function _0x1f93cc(_0x492f90,_0x43cebc){const _0x349ec2=_0x27b931;if(!_0x43cebc)return _0x492f90;let _0x232a6e=_0x492f90[_0x349ec2(0x415)];if(_0x232a6e===0x0)throw Error('aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed');let _0x508e50=_0x492f90[_0x232a6e-0x1],_0x257a67=0x1;_0x257a67&=_0x508e50-0x1>>>0x1f^0x1,_0x257a67&=0x10-_0x508e50>>>0x1f^0x1;for(let _0x5b1135=0x0;_0x5b1135<0x10;_0x5b1135++){let _0xab635=_0x5b1135-_0x508e50>>>0x1f,_0x3e920e=+((_0x492f90[_0x232a6e-0x1-_0x5b1135]^_0x508e50)===0x0);_0x257a67&=_0x3e920e|_0xab635^0x1;}if(!_0x257a67)throw Error('aes/pkcs7:\x20wrong\x20padding');return _0x492f90[_0x349ec2(0x303)](0x0,_0x232a6e-_0x508e50);}function _0x3b18c1(_0x11de29){let _0xa8fff3=new Uint8Array(0x10),_0x56c33f=_0x505ef8(_0xa8fff3);_0xa8fff3['set'](_0x11de29);let _0x38f803=0x10-_0x11de29['length'];for(let _0x26195a=0x10-_0x38f803;_0x26195a<0x10;_0x26195a++)_0xa8fff3[_0x26195a]=_0x38f803;return _0x56c33f;}let _0x18a27a=_0x53e818({'blockSize':0x10,'nonceLength':0x10},function(_0x2ef2c0,_0x5a966a,_0x27025d={}){const _0x54c511=_0x27b931;let _0x5aec79=!_0x27025d[_0x54c511(0x1d3)];return{'encrypt'(_0x4681f4,_0x26695f){const _0x47d583=_0x54c511;let _0x50d8fb=_0x1bd2b0(_0x2ef2c0),{b:_0x55f466,o:_0x1a8ce1,out:_0x1d1c9d}=_0x574f0b(_0x4681f4,_0x5aec79,_0x26695f),_0x5c43db=_0x5a966a,_0xdd4792=[_0x50d8fb];(!_0x4fbc4d||!_0x15866a(_0x5c43db))&&_0xdd4792[_0x47d583(0x30b)](_0x5c43db=_0x5b679f(_0x5c43db));let _0x4b0f41=_0x505ef8(_0x5c43db);_0x93eb92(_0x4b0f41);let _0xd6e879=_0x4b0f41[0x0],_0x457b69=_0x4b0f41[0x1],_0x2d5852=_0x4b0f41[0x2],_0x3756eb=_0x4b0f41[0x3],_0x42bc5c=0x0;for(;_0x42bc5c+0x4<=_0x55f466['length'];)_0xd6e879^=_0x55f466[_0x42bc5c+0x0],_0x457b69^=_0x55f466[_0x42bc5c+0x1],_0x2d5852^=_0x55f466[_0x42bc5c+0x2],_0x3756eb^=_0x55f466[_0x42bc5c+0x3],{s0:_0xd6e879,s1:_0x457b69,s2:_0x2d5852,s3:_0x3756eb}=_0x430a23(_0x50d8fb,_0xd6e879,_0x457b69,_0x2d5852,_0x3756eb),_0x1a8ce1[_0x42bc5c++]=_0xd6e879,_0x1a8ce1[_0x42bc5c++]=_0x457b69,_0x1a8ce1[_0x42bc5c++]=_0x2d5852,_0x1a8ce1[_0x42bc5c++]=_0x3756eb;if(_0x5aec79){let _0x3a9196=_0x3b18c1(_0x4681f4[_0x47d583(0x303)](_0x42bc5c*0x4));_0x93eb92(_0x3a9196),_0xd6e879^=_0x3a9196[0x0],_0x457b69^=_0x3a9196[0x1],_0x2d5852^=_0x3a9196[0x2],_0x3756eb^=_0x3a9196[0x3],{s0:_0xd6e879,s1:_0x457b69,s2:_0x2d5852,s3:_0x3756eb}=_0x430a23(_0x50d8fb,_0xd6e879,_0x457b69,_0x2d5852,_0x3756eb),_0x1a8ce1[_0x42bc5c++]=_0xd6e879,_0x1a8ce1[_0x42bc5c++]=_0x457b69,_0x1a8ce1[_0x42bc5c++]=_0x2d5852,_0x1a8ce1[_0x42bc5c++]=_0x3756eb;}return _0x93eb92(_0x1a8ce1),_0xfcd1a4(..._0xdd4792),_0x1d1c9d;},'decrypt'(_0x519358,_0x5c844d){const _0x26e2c0=_0x54c511;_0x2fa415(_0x519358);let _0xff2254=_0x81f1df(_0x2ef2c0),_0x3b1a8b=_0x5a966a,_0x4d3e2c=[_0xff2254];(!_0x4fbc4d||!_0x15866a(_0x3b1a8b))&&_0x4d3e2c[_0x26e2c0(0x30b)](_0x3b1a8b=_0x5b679f(_0x3b1a8b));let _0x3b6fbe=_0x505ef8(_0x3b1a8b);_0x93eb92(_0x3b6fbe),_0x5c844d=_0x30f906(_0x519358['length'],_0x5c844d),_0x34ca96(_0x519358,_0x5c844d),(!_0x4fbc4d||!_0x15866a(_0x519358))&&_0x4d3e2c[_0x26e2c0(0x30b)](_0x519358=_0x5b679f(_0x519358));let _0x12c40b=_0x505ef8(_0x519358),_0x4590ca=_0x505ef8(_0x5c844d);_0x93eb92(_0x12c40b);let _0x5cbe9a=_0x3b6fbe[0x0],_0x559957=_0x3b6fbe[0x1],_0x59cccf=_0x3b6fbe[0x2],_0x10a0b0=_0x3b6fbe[0x3];for(let _0x39b707=0x0;_0x39b707+0x4<=_0x12c40b[_0x26e2c0(0x415)];){let _0x191478=_0x5cbe9a,_0x1d41cd=_0x559957,_0x3233ff=_0x59cccf,_0x260c10=_0x10a0b0;_0x5cbe9a=_0x12c40b[_0x39b707+0x0],_0x559957=_0x12c40b[_0x39b707+0x1],_0x59cccf=_0x12c40b[_0x39b707+0x2],_0x10a0b0=_0x12c40b[_0x39b707+0x3];let {s0:_0x132c79,s1:_0x662fc0,s2:_0x41c37c,s3:_0x547ff3}=_0x1b88cd(_0xff2254,_0x5cbe9a,_0x559957,_0x59cccf,_0x10a0b0);_0x4590ca[_0x39b707++]=_0x132c79^_0x191478,_0x4590ca[_0x39b707++]=_0x662fc0^_0x1d41cd,_0x4590ca[_0x39b707++]=_0x41c37c^_0x3233ff,_0x4590ca[_0x39b707++]=_0x547ff3^_0x260c10;}return _0x93eb92(_0x4590ca),_0xfcd1a4(..._0x4d3e2c),_0x1f93cc(_0x5c844d,_0x5aec79);}};});function _0x1fa79a(_0x5c1cd7){const _0x209a9a=_0x27b931;let _0x413d12=atob(_0x5c1cd7),_0x372a47=new Uint8Array(_0x413d12[_0x209a9a(0x415)]);for(let _0x214544=0x0;_0x214544<_0x413d12[_0x209a9a(0x415)];_0x214544++)_0x372a47[_0x214544]=_0x413d12['charCodeAt'](_0x214544);return _0x372a47;}function _0x24d31d(_0x263b65){const _0x1fca9e=_0x27b931;let _0x3478cb='';for(let _0x20f15f=0x0;_0x20f15f<_0x263b65['length'];_0x20f15f++)_0x3478cb+=String[_0x1fca9e(0x349)](_0x263b65[_0x20f15f]);return btoa(_0x3478cb);}function _0x7b17e0(_0x5333b7,_0x4757f8){let _0x102b62=_0x1fa79a(_0x4757f8),_0x4e54ac=_0x2d2cd9(0x10);return _0x24d31d(_0x3f9ffe(_0x4e54ac,_0x18a27a(_0x102b62,_0x4e54ac)['encrypt'](_0x395142(_0x5333b7))));}function _0x1bc6dc(){const _0x3228a0=_0x27b931;let _0x2615c5=(0x0,_0x4326e6[_0x3228a0(0x1dc)])()['__Key__'];if(typeof window<'u'&&window[_0x3228a0(0x17d)]!==void 0x0&&_0x2615c5){let _0x313dbc={'time':Math[_0x3228a0(0x414)](Date[_0x3228a0(0x284)]()/0x3e8),'domain':location[_0x3228a0(0x1e2)]};return _0x7b17e0(JSON[_0x3228a0(0x3e5)](_0x313dbc),_0x2615c5);}}let _0x1a45aa=class{constructor(_0x4b0052){const _0x14f518=_0x27b931;this[_0x14f518(0x3d8)]=_0x4b0052,this['_initRequestHeader']();}[_0x27b931(0x280)](){const _0x2b049a=_0x27b931;this[_0x2b049a(0x3d8)][_0x2b049a(0xcf)]({'interceptor':(_0x2a0631,_0x4ee535)=>{const _0x858528=_0x2b049a;let _0x35685c=_0x1bc6dc();return _0x35685c&&_0x2a0631[_0x858528(0x23f)]['set']('x-univer-host',_0x35685c),_0x4ee535(_0x2a0631);}});}};_0x1a45aa=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x8f2da5[_0x27b931(0x2e6)]))],_0x1a45aa);let _0x5cf05d=class extends _0x47f753['RxDisposable']{constructor(_0x5a5e7a,_0x4e7e4e,_0xfc9824){const _0xa1941c=_0x27b931;super(),this[_0xa1941c(0x1a1)]=_0x5a5e7a,this[_0xa1941c(0x10f)]=_0x4e7e4e,this[_0xa1941c(0x189)]=_0xfc9824,_0x2dd74e(this,_0xa1941c(0x278),new _0x470009[(_0xa1941c(0x25b))](null)),_0x2dd74e(this,'_unitLoaded$',new _0x470009[(_0xa1941c(0x256))]()),_0x2dd74e(this,_0xa1941c(0x34c),this[_0xa1941c(0x278)]['asObservable']()),_0x2dd74e(this,_0xa1941c(0x2d6),this[_0xa1941c(0x136)][_0xa1941c(0x2b2)]());}['dispose'](){const _0x5bce73=_0x27b931;super[_0x5bce73(0x2bc)](),this[_0x5bce73(0x136)][_0x5bce73(0x32e)](),this[_0x5bce73(0x278)][_0x5bce73(0x32e)]();}async['loadUnitOfRevision'](_0x2485a7,_0x4c3ae1,_0x1b9cc6,_0x2614d2){const _0x496717=_0x27b931;this[_0x496717(0x278)][_0x496717(0x396)]({'unitId':_0x2485a7,'type':_0x4c3ae1,'subUnitId':_0x2614d2});let _0x3ee92=null;switch(_0x4c3ae1){case _0x47f753[_0x496717(0x3fc)][_0x496717(0x239)]:_0x3ee92=await this[_0x496717(0x10f)]['loadSheet'](_0x2485a7,_0x1b9cc6,void 0x0,{'initialSubUnitId':_0x2614d2});break;case _0x47f753['UniverInstanceType'][_0x496717(0x243)]:_0x3ee92=await this['_snapshotService'][_0x496717(0x40b)](_0x2485a7,_0x1b9cc6);break;case _0x47f753[_0x496717(0x3fc)][_0x496717(0x339)]:_0x3ee92=await this[_0x496717(0x10f)][_0x496717(0x31e)](_0x2485a7,_0x1b9cc6);break;case _0x47f753[_0x496717(0x3fc)]['UNIVER_BOARD']:_0x3ee92=await this['_snapshotService'][_0x496717(0x2bf)](_0x2485a7,_0x1b9cc6);break;case _0x47f753[_0x496717(0x3fc)]['UNIVER_BASE']:_0x3ee92=await this[_0x496717(0x10f)]['loadBase'](_0x2485a7,_0x1b9cc6);break;default:this['_logService'][_0x496717(0x294)](_0x496717(0xcb),_0x496717(0x3a5));break;}return _0x3ee92&&this['_unitLoaded$']['next'](_0x3ee92),_0x3ee92;}async['loadUnit'](_0x2aeaee,_0x311d9c,_0x3de567){const _0x2dad63=_0x27b931;var _0x22faa1;this[_0x2dad63(0x278)][_0x2dad63(0x396)]({'unitId':_0x2aeaee,'type':_0x311d9c,'subUnitId':_0x3de567});let _0x37b937=0x0,_0x19a130=await((_0x22faa1=this['_localCacheService'])==null?void 0x0:_0x22faa1[_0x2dad63(0x2e3)](_0x2aeaee));return _0x19a130&&(_0x19a130['awaitingChangeset']||_0x19a130[_0x2dad63(0x35e)][_0x2dad63(0x415)]!==0x0)&&(_0x37b937=_0x19a130['rev']),_0x37b937===0x0&&this['_logService'][_0x2dad63(0x418)]('[DataLoaderService]',_0x2dad63(0x1a0)),this[_0x2dad63(0x2d7)](_0x2aeaee,_0x311d9c,_0x37b937,_0x3de567);}};_0x5cf05d=_0x1fb4c2([_0x2af294(0x0,_0x47f753['ILogService']),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x417)])),_0x2af294(0x2,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x5cf05d);let _0x48896b=class{constructor(_0x531e90,_0x3c57a7,_0x1ba3dd){const _0x3b2471=_0x27b931;this[_0x3b2471(0x3d8)]=_0x531e90,this[_0x3b2471(0x228)]=_0x3c57a7,this[_0x3b2471(0x37d)]=_0x1ba3dd,_0x2dd74e(this,_0x3b2471(0x376),0x0),_0x2dd74e(this,_0x3b2471(0x371),new _0x470009[(_0x3b2471(0x256))]()),_0x2dd74e(this,'change$',this[_0x3b2471(0x371)]),_0x2dd74e(this,_0x3b2471(0x217),new Map());}[_0x27b931(0x124)](_0x18a9f2){const _0x255d53=_0x27b931;this[_0x255d53(0x376)]=_0x18a9f2,this[_0x255d53(0x371)]['next'](_0x18a9f2);}[_0x27b931(0x22a)](_0x3df041,_0x16ee03){const _0x4d47f2=_0x27b931;if(_0x16ee03===_0x47f753['ImageSourceType'][_0x4d47f2(0x2f0)]){let _0x3e01ca=new Image();return _0x3e01ca['src']=_0x3df041,_0x3e01ca;}return this['_imageSourceCache'][_0x4d47f2(0x1ad)](_0x3df041);}['addImageSourceCache'](_0x50a963,_0x125fb1,_0x56f4ac){const _0x4360be=_0x27b931;_0x125fb1===_0x47f753[_0x4360be(0x149)]['BASE64']||_0x56f4ac==null||this['_imageSourceCache']['set'](_0x50a963,_0x56f4ac);}async['getImage'](_0x14f507){const _0x5aa894=_0x27b931;try{let _0x1121be=this[_0x5aa894(0x1d6)](this[_0x5aa894(0x1b4)](),''+_0x14f507),_0x323267=(await this[_0x5aa894(0x3d8)][_0x5aa894(0x1ad)](_0x1121be))[_0x5aa894(0x2d9)];if(_0x323267[_0x5aa894(0x294)]&&_0x323267[_0x5aa894(0x294)][_0x5aa894(0x1fc)]===_0x26a654[_0x5aa894(0x3a7)]['OK']){let _0x3ef3e2=(0x0,_0x47f753['resolveWithBasePath'])(_0x323267['url'],this[_0x5aa894(0x1cb)]());return Promise[_0x5aa894(0x309)](_0x3ef3e2);}return Promise[_0x5aa894(0x133)](_0x323267[_0x5aa894(0x294)]);}catch(_0xa9540){return Promise[_0x5aa894(0x133)](_0xa9540);}}async[_0x27b931(0x305)](_0x4ee011){const _0x1c7f38=_0x27b931;let _0x35da22='';if(!_0x5d9de4[_0x1c7f38(0x24c)][_0x1c7f38(0xf2)](_0x4ee011[_0x1c7f38(0x2af)]))return this['_decreaseWaiting'](),Promise[_0x1c7f38(0x133)](Error(_0x47f753[_0x1c7f38(0x3f8)][_0x1c7f38(0x2a1)]));if(_0x4ee011['size']>(0x0,_0x5d9de4[_0x1c7f38(0x103)])())return this[_0x1c7f38(0xea)](),Promise['reject'](Error(_0x47f753[_0x1c7f38(0x3f8)][_0x1c7f38(0x3e2)]));try{let _0x486981=new FormData();_0x486981[_0x1c7f38(0x3cb)](_0x1c7f38(0x184),_0x4ee011);let _0x4c0f74=this['_univerInstanceService'][_0x1c7f38(0x3d3)](),_0x2896e9=_0x4c0f74==null?void 0x0:_0x4c0f74[_0x1c7f38(0x3f1)]();if(!_0x2896e9)throw Error(_0x1c7f38(0x255));let _0x124d00=this['_getUploadFileURL']()+'?size='+_0x4ee011[_0x1c7f38(0x1f6)][_0x1c7f38(0x140)]()+_0x1c7f38(0x26b)+_0x26a654[_0x1c7f38(0x2cf)][_0x1c7f38(0x330)]+_0x1c7f38(0x3c3)+encodeURIComponent(_0x2896e9),_0x2627da={'body':_0x486981},_0x125749=(await this[_0x1c7f38(0x3d8)][_0x1c7f38(0x139)](_0x124d00,_0x2627da))[_0x1c7f38(0x2d9)];if(typeof _0x125749[_0x1c7f38(0xdd)]!=_0x1c7f38(0x267))return this[_0x1c7f38(0xea)](),Promise['reject'](Error(_0x47f753[_0x1c7f38(0x3f8)][_0x1c7f38(0x33f)]));_0x35da22=_0x125749[_0x1c7f38(0xdd)];}catch{return this['_decreaseWaiting'](),Promise[_0x1c7f38(0x133)](Error(_0x47f753['ImageUploadStatusType'][_0x1c7f38(0x33f)]));}return new Promise((_0x224cb5,_0x136da2)=>{const _0x1d9b8b=_0x1c7f38;let _0x4da59e=new FileReader();_0x4da59e[_0x1d9b8b(0x40a)](_0x4ee011),_0x4da59e[_0x1d9b8b(0x157)]=_0x5375da=>{const _0x18f125=_0x1d9b8b;var _0x3165c2;let _0x43c00d=(_0x3165c2=_0x5375da[_0x18f125(0x216)])==null?void 0x0:_0x3165c2[_0x18f125(0x130)];if(_0x43c00d==null){this[_0x18f125(0xea)](),_0x136da2(Error(_0x47f753[_0x18f125(0x3f8)][_0x18f125(0x33f)]));return;}_0x224cb5({'imageId':(0x0,_0x47f753[_0x18f125(0x404)])(0x6),'imageSourceType':_0x47f753['ImageSourceType'][_0x18f125(0x403)],'source':_0x35da22,'base64Cache':_0x43c00d,'status':_0x47f753['ImageUploadStatusType'][_0x18f125(0x3a6)]}),this[_0x18f125(0xea)]();};});}[_0x27b931(0x33c)](){const _0x1b0cbe=_0x27b931;var _0x101ce9;let _0x3c955e=this[_0x1b0cbe(0x228)][_0x1b0cbe(0x190)](_0x3c17be);return(_0x101ce9=_0x3c955e==null?void 0x0:_0x3c955e[_0x1b0cbe(0x2c4)])==null?_0x1b0cbe(0x213):_0x101ce9;}[_0x27b931(0x1b4)](){const _0xd478d8=_0x27b931;var _0x3be4bf;let _0x1973de=this[_0xd478d8(0x228)][_0xd478d8(0x190)](_0x3c17be);return(_0x3be4bf=_0x1973de==null?void 0x0:_0x1973de['signUrlServerUrl'])==null?_0xd478d8(0x15a):_0x3be4bf;}[_0x27b931(0x1cb)](){const _0x1c104a=_0x27b931;var _0x40c3ed;let _0x7ce1fb=this[_0x1c104a(0x228)][_0x1c104a(0x190)](_0x3c17be);return(_0x40c3ed=_0x7ce1fb==null?void 0x0:_0x7ce1fb[_0x1c104a(0x32d)])==null?location[_0x1c104a(0x1a3)]:_0x40c3ed;}['_replaceFileID'](_0x20b2c8,_0x1f75a9){const _0x4e0600=_0x27b931;return _0x20b2c8['replace'](_0x4e0600(0x23b),_0x1f75a9);}[_0x27b931(0xea)](){const _0x4c0ac6=_0x27b931;--this[_0x4c0ac6(0x376)],this['_change$']['next'](this[_0x4c0ac6(0x376)]);}};_0x48896b=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x8f2da5[_0x27b931(0x2e6)])),_0x2af294(0x1,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x2,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x235)]))],_0x48896b);let _0x113be6=class{constructor(_0x10f987,_0x540b2b){const _0xa77bc4=_0x27b931;this['_configService']=_0x10f987,this[_0xa77bc4(0x345)]=_0x540b2b;}[_0x27b931(0xe2)](){const _0x4ca23f=_0x27b931;var _0x2a2d3b;let _0x2304e8=this[_0x4ca23f(0x228)][_0x4ca23f(0x190)](_0x3c17be);return(_0x2a2d3b=_0x2304e8==null?void 0x0:_0x2304e8[_0x4ca23f(0x1c1)])==null?_0x4ca23f(0x2d4):_0x2a2d3b;}async[_0x27b931(0x3c5)](_0x4c2208){const _0x5a37cc=_0x27b931;let _0x66d711=this[_0x5a37cc(0xe2)]()+_0x5a37cc(0x241);return{'list':[{'title':_0x5a37cc(0x34d),'mentions':(await this['_HTTPService'][_0x5a37cc(0x1ad)](_0x66d711,{'params':{'objectID':_0x4c2208[_0x5a37cc(0x320)],'unitID':_0x4c2208[_0x5a37cc(0x320)]}}))[_0x5a37cc(0x2d9)][_0x5a37cc(0x19a)][_0x5a37cc(0x394)](_0x41f2d3=>({'objectId':_0x41f2d3['id'],'name':_0x41f2d3[_0x5a37cc(0x108)][_0x5a37cc(0x3dc)],'metadata':{'icon':_0x41f2d3[_0x5a37cc(0x108)][_0x5a37cc(0x287)]},'label':_0x41f2d3[_0x5a37cc(0x108)][_0x5a37cc(0x3dc)],'objectType':_0x47f753['MentionType'][_0x5a37cc(0x3d4)]})),'metadata':{},'type':_0x47f753[_0x5a37cc(0x1c9)][_0x5a37cc(0x3d4)]}]};}};_0x113be6=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x18f)])),_0x2af294(0x1,(0x0,_0x47f753['Inject'])(_0x8f2da5[_0x27b931(0x2e6)]))],_0x113be6);let _0x369c1a=class extends _0x47f753['RxDisposable']{constructor(_0x51c59b,_0x3bd0a0,_0x1bb048,_0xf3743a,_0x5aabd0){const _0x29c184=_0x27b931;super(),this[_0x29c184(0x2fe)]=_0x51c59b,this[_0x29c184(0x37d)]=_0x3bd0a0,this[_0x29c184(0x373)]=_0x1bb048,this['_collaborationSessionService']=_0xf3743a,this['_collaborationUIEventService']=_0x5aabd0,this[_0x29c184(0x15d)](),this['_initCloseConn']();}[_0x27b931(0x21b)](){const _0x294151=_0x27b931;let _0x523644=async _0x20287b=>{const _0x33ee3a=_0x1420;(await this[_0x33ee3a(0x368)][_0x33ee3a(0x410)](_0x20287b))[_0x33ee3a(0x2ef)][_0x33ee3a(0x11f)]((0x0,_0x5ba228[_0x33ee3a(0x12e)])(_0x2c1a75=>_0x2c1a75[_0x33ee3a(0x1a4)]===_0x149d12['CollaborationEvent'][_0x33ee3a(0x2ae)]),(0x0,_0x5ba228[_0x33ee3a(0xdc)])(this[_0x33ee3a(0x18b)]))[_0x33ee3a(0x38e)](_0x57c193=>{const _0xca1d3f=_0x33ee3a;let {reason:_0x1a00e9}=_0x57c193[_0xca1d3f(0x401)];this[_0xca1d3f(0x11a)]['emitEvent']({'id':_0xca1d3f(0x352),'data':_0x1a00e9}),this[_0xca1d3f(0x373)][_0xca1d3f(0x1a8)](new _0x1e2709['WorkbookEditablePermission'](_0x20287b)['id'],!0x1),this[_0xca1d3f(0x368)]['closeSession'](_0x20287b);});};(0x0,_0x470009[_0x294151(0x407)])(this[_0x294151(0x37d)][_0x294151(0x3d6)](_0x47f753['UniverInstanceType'][_0x294151(0x239)]),this[_0x294151(0x37d)]['getTypeOfUnitAdded$'](_0x47f753[_0x294151(0x3fc)][_0x294151(0x243)]),this[_0x294151(0x37d)][_0x294151(0x3d6)](_0x47f753[_0x294151(0x3fc)][_0x294151(0x41d)]),this[_0x294151(0x37d)][_0x294151(0x3d6)](_0x47f753[_0x294151(0x3fc)][_0x294151(0x313)]))[_0x294151(0x11f)]((0x0,_0x5ba228[_0x294151(0x394)])(_0x3433a0=>_0x3433a0[_0x294151(0x191)]['getUnitId']()),(0x0,_0x5ba228['filter'])(_0x20831a=>!(0x0,_0x47f753[_0x294151(0x3ff)])(_0x20831a)),(0x0,_0x5ba228[_0x294151(0xdc)])(this['dispose$']))['subscribe'](_0x221744=>{_0x523644(_0x221744);});}[_0x27b931(0x15d)](){const _0x1a2606=_0x27b931;let _0x34d0b6=async _0x2d8032=>{const _0x4af072=_0x1420;let _0x5e3576=await this[_0x4af072(0x368)]['requireSession'](_0x2d8032),_0x10189c=this[_0x4af072(0x2fe)][_0x4af072(0x1ad)](_0x1e2709['SheetPermissionInitController']);_0x5e3576[_0x4af072(0x2ef)][_0x4af072(0x11f)]((0x0,_0x5ba228[_0x4af072(0x12e)])(_0x56d278=>_0x56d278[_0x4af072(0x1a4)]===_0x149d12['CollaborationEvent'][_0x4af072(0x12d)]),(0x0,_0x5ba228[_0x4af072(0xdc)])(this['dispose$']))[_0x4af072(0x38e)](_0x1e0a97=>{const _0x2e3497=_0x4af072;let {objectId:_0x4186b2}=_0x1e0a97[_0x2e3497(0x401)];_0x4186b2===_0x2d8032?_0x10189c['initWorkbookPermissionChange'](_0x2d8032):_0x10189c[_0x2e3497(0x232)](_0x2d8032,_0x4186b2);});};(0x0,_0x470009[_0x1a2606(0x407)])(this[_0x1a2606(0x37d)][_0x1a2606(0x3d6)](_0x47f753[_0x1a2606(0x3fc)]['UNIVER_SHEET']))[_0x1a2606(0x11f)]((0x0,_0x5ba228['map'])(_0x175680=>_0x175680[_0x1a2606(0x191)]['getUnitId']()),(0x0,_0x5ba228['filter'])(_0x2668c6=>!(0x0,_0x47f753[_0x1a2606(0x3ff)])(_0x2668c6)),(0x0,_0x5ba228[_0x1a2606(0xdc)])(this[_0x1a2606(0x18b)]))[_0x1a2606(0x38e)](_0x19e70f=>{_0x34d0b6(_0x19e70f);});}};_0x369c1a=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x1,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x2,_0x47f753['IPermissionService']),_0x2af294(0x3,(0x0,_0x47f753['Inject'])(_0xc5d6a5)),_0x2af294(0x4,(0x0,_0x47f753['Inject'])(_0x2a71d9))],_0x369c1a);let _0x51c4c2=class{constructor(_0x247f85,_0x396830){const _0x332c11=_0x27b931;this['_configService']=_0x247f85,this[_0x332c11(0x3d8)]=_0x396830;}async[_0x27b931(0x366)](_0x27afab,_0x4484c7){const _0x574cdd=_0x27b931;var _0xbe6dc8;let {unitID:_0x5bd64c,type:_0x29b948,revision:_0x6510ef=0x0}=_0x4484c7,_0x2fc9d6=this[_0x574cdd(0x35b)]()+'/'+_0x29b948+_0x574cdd(0x288)+_0x5bd64c+_0x574cdd(0x38f)+_0x6510ef,_0x3afc3e=(await this[_0x574cdd(0x3d8)]['get'](_0x2fc9d6))[_0x574cdd(0x2d9)],_0x277967=(_0xbe6dc8=_0x3afc3e[_0x574cdd(0x324)])==null?void 0x0:_0xbe6dc8[_0x574cdd(0x1ae)];if(_0x277967){let _0x2a50a5=_0x277967==null?void 0x0:_0x277967['originalMeta'];_0x277967[_0x574cdd(0x29b)]=_0x149d12['textEncoder'][_0x574cdd(0x2f4)]((0x0,_0x149d12[_0x574cdd(0x331)])(_0x2a50a5)),Object[_0x574cdd(0x315)](_0x277967[_0x574cdd(0x111)])[_0x574cdd(0x302)](([,_0x4a14f3])=>{const _0x584e30=_0x574cdd;let _0x48f85d=_0x4a14f3['originalMeta'];_0x4a14f3['originalMeta']=_0x149d12[_0x584e30(0x26d)]['encode']((0x0,_0x149d12['b64DecodeUnicode'])(_0x48f85d));});}return _0x3afc3e;}async[_0x27b931(0x398)](_0x545a3d,_0x5b13ec){const _0x34cd44=_0x27b931;let {unitID:_0x202a09,type:_0x1738f8,blockID:_0x2a9f61}=_0x5b13ec,_0x1b6820=this[_0x34cd44(0x41e)]()+'/'+_0x1738f8+_0x34cd44(0x288)+_0x202a09+_0x34cd44(0x2f6)+_0x2a9f61;return(await this[_0x34cd44(0x3d8)]['get'](_0x1b6820))[_0x34cd44(0x2d9)];}async[_0x27b931(0x314)](_0x2752bc,_0x454f3f){const _0x4c59b0=_0x27b931;let {unitID:_0x434e91,type:_0x2b50bf,blockID:_0x3650df}=_0x454f3f,_0x4dc9eb=this[_0x4c59b0(0x41e)]()+_0x4c59b0(0x2f6)+_0x2b50bf+'/unit/'+_0x434e91+_0x4c59b0(0x2f6)+_0x3650df;return(await this[_0x4c59b0(0x3d8)][_0x4c59b0(0x1ad)](_0x4dc9eb))[_0x4c59b0(0x2d9)];}async['fetchMissingChangesets'](_0x54f2af,_0x157710){const _0x467a7f=_0x27b931;let {unitID:_0x58d878,type:_0x255f9d,from:_0x253598,to:_0x33ff57}=_0x157710,_0x356cc9=this[_0x467a7f(0x41e)]()+'/'+_0x255f9d+_0x467a7f(0x288)+_0x58d878+_0x467a7f(0x31d)+_0x253598+'&to='+_0x33ff57;return(await this[_0x467a7f(0x3d8)][_0x467a7f(0x1ad)](_0x356cc9))[_0x467a7f(0x2d9)];}['getSnapshotAPIPath'](){const _0x3106d1=_0x27b931;var _0x1e25c3;return(_0x1e25c3=this[_0x3106d1(0x228)][_0x3106d1(0x190)](_0x3106d1(0x1b0)))==null?this[_0x3106d1(0x41e)]():_0x1e25c3;}[_0x27b931(0x41e)](){const _0x10832f=_0x27b931;var _0x4408cc;let _0x3d6d25=this['_configService'][_0x10832f(0x190)](_0x3c17be);return(_0x4408cc=_0x3d6d25==null?void 0x0:_0x3d6d25[_0x10832f(0x3a2)])==null?_0x10832f(0x247):_0x4408cc;}async[_0x27b931(0x121)](_0x627f93,_0x1a74b5){const _0x1b9cc4=_0x27b931;let _0x36eb1d='/universer-api/snapshot/'+_0x1a74b5[_0x1b9cc4(0x2af)]+_0x1b9cc4(0x288)+_0x1a74b5[_0x1b9cc4(0x2ea)]+_0x1b9cc4(0x16f);return(await this['_httpService'][_0x1b9cc4(0x1ad)](_0x36eb1d,{'params':{'resourceId':JSON[_0x1b9cc4(0x3e5)](_0x1a74b5[_0x1b9cc4(0x24f)])}}))[_0x1b9cc4(0x2d9)];}[_0x27b931(0x277)](){const _0x2c08e2=_0x27b931;throw Error(_0x2c08e2(0x385));}[_0x27b931(0x104)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x186677=_0x27b931;throw Error(_0x186677(0x385));}[_0x27b931(0x2f5)](){const _0x2b401f=_0x27b931;throw Error(_0x2b401f(0x385));}[_0x27b931(0x3e3)](){const _0x59ffa4=_0x27b931;throw Error(_0x59ffa4(0x385));}['getLatestCsReqIdBySid'](){const _0x1f1004=_0x27b931;throw Error(_0x1f1004(0x385));}};_0x51c4c2=_0x1fb4c2([_0x2af294(0x0,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x8f2da5[_0x27b931(0x2e6)]))],_0x51c4c2);let _0x10a064=class extends _0x47f753[_0x27b931(0x344)]{constructor(_0x241591,_0xe3db0,_0x2b2004,_0x412ea1,_0x598113){const _0x3935f4=_0x27b931;super(_0x241591,_0xe3db0,_0x2b2004),this['_transformService']=_0x412ea1,this[_0x3935f4(0x1a1)]=_0x598113;}[_0x27b931(0x135)](_0x431723,_0x102200){const _0x5349aa=_0x27b931;let _0x1c1ec7=this[_0x5349aa(0x29e)](_0x431723);if(_0x1c1ec7)try{let _0x5af08c=this[_0x5349aa(0x18a)](_0x1c1ec7,_0x102200);this[_0x5349aa(0x1dd)](_0x431723,_0x5af08c);}catch(_0x30c705){this[_0x5349aa(0x1a1)][_0x5349aa(0x294)](_0x5349aa(0x2f9),_0x30c705),this[_0x5349aa(0x3ef)](_0x431723);}let _0x398252=this['_getRedoStack'](_0x431723);if(_0x398252)try{let _0x1cf9e2=this[_0x5349aa(0x18a)](_0x398252,_0x102200);this[_0x5349aa(0x1ce)](_0x431723,_0x1cf9e2);}catch(_0x3f8a44){this[_0x5349aa(0x1a1)][_0x5349aa(0x294)](_0x3f8a44),this[_0x5349aa(0x3f0)](_0x431723);}}[_0x27b931(0x3ef)](_0x2b222d){const _0x3d34b8=_0x27b931;let _0x15c268=this['_getUndoStack'](_0x2b222d);_0x15c268&&(_0x15c268[_0x3d34b8(0x415)]=0x0,this[_0x3d34b8(0x172)]());}[_0x27b931(0x3f0)](_0x231cb4){const _0xa5be6b=_0x27b931;let _0x2cb8e1=this[_0xa5be6b(0x1e5)](_0x231cb4);_0x2cb8e1&&(_0x2cb8e1[_0xa5be6b(0x415)]=0x0,this[_0xa5be6b(0x172)]());}[_0x27b931(0x1dd)](_0x595f50,_0x531b3e){const _0x283fcf=_0x27b931;this[_0x283fcf(0x26f)][_0x283fcf(0xf6)](_0x595f50,_0x531b3e),this['_updateStatus']();}[_0x27b931(0x1ce)](_0x20e304,_0x5bda7a){const _0x4bf43a=_0x27b931;this[_0x4bf43a(0x3bc)][_0x4bf43a(0xf6)](_0x20e304,_0x5bda7a),this[_0x4bf43a(0x172)]();}['_transformStack'](_0x66f137,_0x57edff){const _0x5526a6=_0x27b931;let _0x469575=[],_0x2020f8=_0x57edff,_0x4ffed9=_0x57edff;for(let _0x46a03f=_0x66f137[_0x5526a6(0x415)]-0x1;_0x46a03f>=0x0;_0x46a03f--){let {unitID:_0x4a31d4,undoMutations:_0x5aeaae,redoMutations:_0x2d791e}=_0x66f137[_0x46a03f],_0xc8c51b=this[_0x5526a6(0x14e)][_0x5526a6(0x17a)](_0x2020f8,_0x5aeaae),_0x881ac6=this[_0x5526a6(0x14e)][_0x5526a6(0x17a)](_0x4ffed9,_0x2d791e);if((0x0,_0x149d12[_0x5526a6(0x29d)])(_0xc8c51b)||(0x0,_0x149d12[_0x5526a6(0x29d)])(_0x881ac6)){this[_0x5526a6(0x1a1)][_0x5526a6(0x294)](_0x5526a6(0x2f9),_0x5526a6(0x3d1),_0xc8c51b,_0x881ac6);break;}_0x2020f8=_0xc8c51b['c1Prime'],_0x4ffed9=_0x881ac6[_0x5526a6(0x2b1)],_0x469575[_0x5526a6(0x30b)]({'unitID':_0x4a31d4,'undoMutations':_0xc8c51b[_0x5526a6(0x3b0)],'redoMutations':_0x881ac6[_0x5526a6(0x3b0)]});}return _0x469575[_0x5526a6(0x214)]();}};_0x10a064=_0x1fb4c2([_0x2af294(0x0,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x1,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x2,_0x47f753['IContextService']),_0x2af294(0x3,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0x4,_0x47f753[_0x27b931(0x370)])],_0x10a064);let _0x45d7d9=class extends _0x47f753[_0x27b931(0x375)]{constructor(_0xb50407=_0xa759f3,_0x51a7c7,_0x534e2f,_0x43085b){const _0x2e2ed8=_0x27b931;super(),this[_0x2e2ed8(0x155)]=_0xb50407,this['_logService']=_0x51a7c7,this[_0x2e2ed8(0x2fe)]=_0x534e2f,this[_0x2e2ed8(0x228)]=_0x43085b;let {..._0x3d5207}=(0x0,_0x47f753[_0x2e2ed8(0x407)])({},_0xa759f3,this['_config']);if(!_0x3d5207[_0x2e2ed8(0x39b)])throw Error(_0x2e2ed8(0x120));this[_0x2e2ed8(0x155)]=_0x3d5207,this['_configService'][_0x2e2ed8(0x31c)](_0x3c17be,_0x3d5207);}['onStarting'](){const _0xd8e49=_0x27b931;this[_0xd8e49(0x413)](),this[_0xd8e49(0x1fe)]();}[_0x27b931(0x413)](){const _0x4a5a8b=_0x27b931;var _0x25e736,_0x2d400d;this['_injector'][_0x4a5a8b(0xff)](_0x47f753['IUndoRedoService'])&&this['_logService'][_0x4a5a8b(0x294)]('[UniverCollaborationClientPlugin]',_0x4a5a8b(0xda));let _0x271fb1=(0x0,_0x47f753[_0x4a5a8b(0x117)])([[_0x47f753['IUndoRedoService'],{'useClass':_0x10a064}],[_0x1e5735,{'useValue':_0x122337()}],[_0xc5d6a5],[_0x541d7d],[_0x2e077e],[_0x149557],[_0x1a45aa],[_0x101a15],[_0x369c1a],[_0x2a71d9],[_0x5cf05d],[_0x2bd014,{'useClass':this[_0x4a5a8b(0x155)][_0x4a5a8b(0x39b)]}],[_0x149d12[_0x4a5a8b(0x387)],{'useClass':_0x51c4c2}],[_0x47f753[_0x4a5a8b(0x238)],{'useClass':_0x3d6a88}],[_0x47f753[_0x4a5a8b(0x350)],{'useClass':_0x48896b}],[_0x4f7a6f,{'useClass':_0xeb1ef2}],[_0x47f753[_0x4a5a8b(0x2c5)],{'useClass':_0x113be6}],[_0x203f75],[_0x43ec5e]],(_0x25e736=this[_0x4a5a8b(0x155)])==null?void 0x0:_0x25e736[_0x4a5a8b(0x182)]);if(!((_0x2d400d=this['_config'])!=null&&_0x2d400d[_0x4a5a8b(0x22b)])){let _0x2c62e4=_0x271fb1[_0x4a5a8b(0x348)](([_0x31ce5f])=>_0x31ce5f===_0x435069);_0x2c62e4!==-0x1&&_0x271fb1[_0x4a5a8b(0x3ea)](_0x2c62e4,0x1);}(0x0,_0x47f753[_0x4a5a8b(0x2a0)])(this[_0x4a5a8b(0x2fe)],_0x271fb1);}[_0x27b931(0x1fe)](){const _0x42a48f=_0x27b931;var _0x6fd7dd,_0x5ec58c;if(this[_0x42a48f(0x2fe)][_0x42a48f(0x1ad)](_0x8f2da5[_0x42a48f(0x2e6)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,_0x8f2da5[_0x42a48f(0x1a5)])({'maxParallel':0x6})}),!((_0x6fd7dd=this['_config'])!=null&&_0x6fd7dd[_0x42a48f(0x2ce)])){var _0x57e086;(_0x57e086=this[_0x42a48f(0x2fe)][_0x42a48f(0x1ad)](_0x419224,_0x47f753[_0x42a48f(0x402)][_0x42a48f(0x210)]))==null||_0x57e086[_0x42a48f(0x2bd)]();}(_0x5ec58c=this[_0x42a48f(0x155)])!=null&&_0x5ec58c[_0x42a48f(0x122)]&&(0x0,_0x47f753[_0x42a48f(0x1af)])(this[_0x42a48f(0x2fe)],[[_0x149557]]),(0x0,_0x47f753[_0x42a48f(0x1af)])(this[_0x42a48f(0x2fe)],[[_0x1a45aa],[_0x203f75],[_0x369c1a]]);}};_0x2dd74e(_0x45d7d9,_0x27b931(0x2f3),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),_0x2dd74e(_0x45d7d9,_0x27b931(0x3de),_0x58d19e),_0x2dd74e(_0x45d7d9,_0x27b931(0x227),_0x4c6d06),_0x45d7d9=_0x1fb4c2([(0x0,_0x47f753['DependentOn'])(_0x4326e6[_0x27b931(0x265)],_0x149d12['UniverCollaborationPlugin'],_0x8f2da5[_0x27b931(0x160)]),_0x2af294(0x1,_0x47f753[_0x27b931(0x370)]),_0x2af294(0x2,(0x0,_0x47f753['Inject'])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x3,_0x47f753[_0x27b931(0x18f)])],_0x45d7d9),_0x79aec8[_0x27b931(0x35a)]=_0x46b0a8,Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x36f),{'enumerable':!0x0,'get':function(){return _0x3d6a88;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x1f4),{'enumerable':!0x0,'get':function(){return _0x42dff3;}}),Object[_0x27b931(0x269)](_0x79aec8,'AwaitingWithPendingState',{'enumerable':!0x0,'get':function(){return _0x15bd87;}}),Object['defineProperty'](_0x79aec8,'BaseCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x5c3e77;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x332),{'enumerable':!0x0,'get':function(){return _0x4b522f;}}),_0x79aec8[_0x27b931(0x422)]=_0x3c17be,Object[_0x27b931(0x269)](_0x79aec8,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return _0xeb1ef2;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x285),{'enumerable':!0x0,'get':function(){return _0x203f75;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x198),{'enumerable':!0x0,'get':function(){return _0x25f5ac;}}),Object['defineProperty'](_0x79aec8,_0x27b931(0xdf),{'enumerable':!0x0,'get':function(){return _0x48896b;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x377),{'enumerable':!0x0,'get':function(){return _0x4ea072;}}),Object['defineProperty'](_0x79aec8,_0x27b931(0x374),{'enumerable':!0x0,'get':function(){return _0xc5d6a5;}}),Object['defineProperty'](_0x79aec8,_0x27b931(0x131),{'enumerable':!0x0,'get':function(){return _0x1bc98c;}}),_0x79aec8[_0x27b931(0x17f)]=_0xdb2824,_0x79aec8[_0x27b931(0x312)]=_0x204edc,_0x79aec8[_0x27b931(0x162)]=_0x2a71d9,Object[_0x27b931(0x269)](_0x79aec8,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return _0x10a064;}}),_0x79aec8[_0x27b931(0x38a)]=_0x101a15,Object['defineProperty'](_0x79aec8,'ConflictState',{'enumerable':!0x0,'get':function(){return _0x41f3d6;}}),_0x79aec8[_0x27b931(0x12b)]=_0x5f4f64,_0x79aec8[_0x27b931(0x1a9)]=_0x27b931(0x2be),_0x79aec8[_0x27b931(0x197)]='/universer-api/user/session-ticket',Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0xd3),{'enumerable':!0x0,'get':function(){return _0x5cf05d;}}),Object['defineProperty'](_0x79aec8,'DocCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x9eef43;}}),Object[_0x27b931(0x269)](_0x79aec8,'FetchingMissState',{'enumerable':!0x0,'get':function(){return _0x3b1a33;}}),_0x79aec8[_0x27b931(0x10d)]='HEARTBEAT_INTERVAL',_0x79aec8[_0x27b931(0x1d7)]=_0x27b931(0xe4),_0x79aec8[_0x27b931(0x137)]=_0x4f7a6f,_0x79aec8['ICollaborationClientAdapterService']=_0x1e5735,_0x79aec8['ICollaborationSocketService']=_0x2bd014,_0x79aec8[_0x27b931(0x41b)]=_0x419224,_0x79aec8[_0x27b931(0x3a1)]=_0x4501c7,_0x79aec8[_0x27b931(0x169)]=_0x435069,_0x79aec8[_0x27b931(0x28c)]=0x3e8,_0x79aec8[_0x27b931(0x107)]=_0x27b931(0x28c),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x3dd),{'enumerable':!0x0,'get':function(){return _0x541d7d;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x3e7),{'enumerable':!0x0,'get':function(){return _0x113be6;}}),Object['defineProperty'](_0x79aec8,_0x27b931(0x3a3),{'enumerable':!0x0,'get':function(){return _0x58261a;}}),Object['defineProperty'](_0x79aec8,_0x27b931(0x28b),{'enumerable':!0x0,'get':function(){return _0x467875;}}),_0x79aec8[_0x27b931(0x3b7)]=_0x27b931(0x36e),_0x79aec8[_0x27b931(0x3ba)]=_0x27b931(0x30d),_0x79aec8[_0x27b931(0x30f)]=_0x1e08f9,Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x186),{'enumerable':!0x0,'get':function(){return _0x151d10;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x22e),{'enumerable':!0x0,'get':function(){return _0x2e077e;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x26e),{'enumerable':!0x0,'get':function(){return _0x292824;}}),Object[_0x27b931(0x269)](_0x79aec8,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return _0x51c4c2;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0xca),{'enumerable':!0x0,'get':function(){return _0x50a3a4;}}),_0x79aec8[_0x27b931(0x23d)]=_0x709438,Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0xd5),{'enumerable':!0x0,'get':function(){return _0x45d7d9;}}),_0x79aec8[_0x27b931(0x132)]=_0x122337,_0x79aec8['deserializeToCombResponse']=_0x44e4df,_0x79aec8[_0x27b931(0x1ac)]=_0xe42769,_0x79aec8[_0x27b931(0x19b)]=_0x5db7a4;}));
|
|
1
|
+
function _0x2261(){const _0x492076=['_waitForHeartbeatResponse','_transformRemoteChangesetByStateCache','_scheduleCompleteTimestamp','unitLoaded$','function','amd','JSONX','state','getUnitType','OPTIONAL','createUniverCollaborationAdapter','[CollaborationEntity]','_revisionService','/role','reject','SOCKET_FAILED_RETRY','csAckEvent','IDLE','copyFileMeta','symbol','UniverDrawing','MoveSlidePageMutation','unitId','[CollaborationSessionService]:\x20socket\x20error','memberID','Subject','getDrawingImageAllowSize','_HTTPService','_getAPIPrefixPath','_onMessage','responseType','_transformSelections','_onRemoteACK','liveShareOperation','addHandlerCallback','firstValueFrom','error','localUnitId','default','_pendingSessions','IAuthzIoService','_toggleOnline','UPDATE_PERMISSION_OBJ','_redoStacks','DataLoaderService','_lockTransition','deepClone','_instanceService','resend','parseProtocolChangeset','registerDependencies','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.',',\x20got:\x20','routeKey','withCredentials','SheetsSelectionsService','maxSize','updateOfflineData','sort','Disposable','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','c1Prime','code','NEW_CHANGESETS','UniverProCollaboration','csShouldRetryEvent','putCollaborators','state$','message$','now','UniverProLicense','_permissionService','@univerjs/protocol','_memberService','_updateState','FileId','toPrimitive','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','src','Optional','transformStack\x20failed!','CLOSE_ROOM','_disableEditing','getImage','getWorkbookSelections','HEARTBEAT_INTERVAL','loadUnitOfRevision','close','onTransformSelections','_onConnectionFailed',',\x20got\x20','loginUrlKey','JOIN_ROOM_PERMISSION_DENIED','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','upload','_remoteChangesetQueue','awaiting_with_pending','exports','fetchMiss','fill','updatePermissionPoint','@univerjs/drawing','getCurrentUser','call','socketMessageSubscription','SessionStatus','CompressMutationService','UUID','Module','/universer-api/uniscript','@univerjs-pro/collaboration-client','DEFAULT_FILE_NAME','telemetry\x20info\x20is\x20not\x20initialized','/collaborator','aes/pkcs7:\x20wrong\x20padding','onTransformState','univer-pro.collaboration-client.single-active-unit-service','sendHeartbeatTimer','_queuedRemoteChangesets','_createSocket','enableSingleActiveInstanceLock','floor','LIVESHARE_OPERATION','_changesetReqId','DisposableCollection','stopTime','_handleRemoteChangesets','requireSession','error$','getTypeOfUnitAdded$','_transitionLocked','dispose','transformMutationsWithChangeset','_updateStatus','getRoom','serializeCombRequest','_resendWithTimeout','debug','BASE64','unitType','transformUndoRedo','_upload','object','JOIN','_clearUndo','uniscriptRunEvent','hostname','?size=','_checkMissing','BehaviorSubject','DEFAULT_WS_SESSION_TICKET_URL','candidateSocket','UNIVER_PDF','emitEvent','findIndex','session.room-permission-denied','EnsureSlideMasterPageMutation','_onRecvEvent','[OfflineState]:\x20received\x20acknowledgement.','\x20in\x20_schedule.','ICommandService','_handler','parseChangesetToProtocol','params','patch','_listenToNetworkCondition','OfflineState','getMemberID','_sheetTransformSelectionsService','_transformStack','tables','pauseCollaboration','CollaborationImageIoService','UNIVER_BOARD','ErrorCode','_resendTimer','getTypeOfUnitDisposed$','requestParams','signUrlServerUrl','set','_singleActiveUnitService','baseRev','base-ui.attachment-io.service','slice','fetchThroughInterceptors','_getDownloadEndpointURL','RemoveSlidePageMutation','UniverInstanceType','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_status$','UniverCore','COMMENT_UPDATE','IConfigService','_univerInstanceService','UniverNetworkPlugin','toString','closeSession','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_emitMembers','@univerjs/telemetry','FileSource','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_toggleOffline','_decreaseWaiting','ISocketService','/fetchmissing?from=','location','saveAttachment','unit-cache-','removeMember','UNIVER_SLIDE','RECV','_adapter','isTransformChangesetsSuccess','backupOfflineData','univer-pro.collaboration-client-socket-service','/universer-api/authz','SheetTransformSelectionsService','ONLINE','BYTES_PER_ELEMENT','loadSlide','socket\x20open.','_submitChangeset','session.room-full','onlyLocal','concatMap','accept','&source=','_clearRetryConnectingTimer','nonceLength','saveSheetBlock','m2Prime','DRAWING_IMAGE_ALLOW_IMAGE_LIST','PdfCollaborationEntity','leaveEvent','revision','ISingleActiveUnitService','_snapshotService','_networkConditionService','UniverProCollaborationClient','add','?url=','UNIVER_SHEET','result','SHOULD_CLOSE_CONN','setWaitCount','entries','addImageSourceCache','SlideCollaborationEntity','_transformStateCache','getInterceptPoints','createIdentifier','c2Prime','createInstance','SOCKET_FAILED','batchAllowed','columnGroups','reqId','ReplaySubject','COMPRESS_MUTATION_SEND','_startTelemetryCollaborationNewChangeset','min','collabWebSocketUrl','_onCombEvent','socket\x20close','catch','onTransformRemoteChangesetByStateCache','getAllMembers','commentUpdate$','_getUndoStack','capture','userID','_initDependencies','isView','indexOf','[OfflineState]:\x20received\x20rejection.','1916289npgTco','LocaleService','parse','JOINING','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','getSheetId','getCurrentRevOfUnit','_maxTotalRetryTimeout','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_clearLocalCache','HTTPRequest','UniverLicensePlugin','_getSendChangesetTimeout','transformChangesets','_cfgEnableObjInherit','fromCharCode','session.join-failed','rxjs/operators','allowed','/object/','appendMutation','onRemoteChangeset','DocStateChangeManagerService','_unitInfo$','_isPermissionRej','CmdRspCode','retryConnectingTimer','shouldCloseConn','Rectangle','waitForRoom$','isPermissionRej','_scheduleCollaborationTimeoutTimer','SUBMIT_CHANGESET','3181910pmKYzO','text-x','_transformUndoredo','data','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','_onUserLeave','_waitCount','_hasSessionsForEndpoint','UniverCollaborationClientPlugin','_docStateChangeManagerService','_applyRemoteChangeset','open$','clear','_undoRedoService','init','editingUnit','JOIN_ROOM_NOT_EXISTS','eventID','AwaitingWithPendingState','updateMember','close$','_isEchoedAwaitingChangeset','authzUrl','_configService','downloadEndpointUrl','startTime','_logService','newCsEvent','getCollabEntity$','isTransformMutationsWithChangesetSuccess','apply','rxjs','_telemetryService','HEARTBEAT','_exhaustRemoteChangesetQueue','univer-pro.collaboration-client-adapter-service','_collabSessionService','status$','CollaborationEvent','PERMISSION_REJ','ISnapshotServerService','MSG_FOR_ERROR','_roomMembers','crypto','x-univer-host','unsubscribe','SnapshotServerOverHTTPService','startsWith','_initRequestHeader','retryCount','missingChangesets','cipher\x20output\x20not\x20supported','_injector','_type','_getCtorByUniverInstanceType','_telemetryInfo','endsWith','_replaceFileID','post','\x0aAfter:\x20','Injector','UnitEmbedded','getTime','shareReplay','getUploadOptions','COLLABORATION_ENDPOINT_INVALID','retryConnectingInterval','toggleOnline','mapDocumentTypeToUniverInstanceType','session','confirm','[FetchMissState]','awaiting','_clearTimeoutTimer','dispose$','COMPRESS_MUTATION_APPLY','objectID','getLocalCacheKey','Tools','deserializeToCombResponse','disableLocalCache','SetSelectionsOperation','__splitChunk__','CollaborationSessionService','MergeInterceptorFactory','collaboration-client.auth.needGotoLoginAlert','_collaborationPaused','forEach','_members$','_onConflict','onCommentUpdate','number','unit','roles','_awaitingChangeset','getAttachmentUrl','_throwTelemetryCollaborationNewChangeset','asObservable','transformSelections','CollaborationStatus','ImageSourceType','[CollaborationSession]','PERMISSION_DENIED','WorkbookEditablePermission','unknown','resolveUnit','OFFLINE','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','POST','ConflictState','UniverDocs','UNISCRIPT_RUN','offline','_state','registerHTTPInterceptor','_onLocalMutation','CollaborationController','_transformRemoteChangesetByIMECache','onMissingChangesets','buffer','/universer-api/snapshot','listRoles','_rescheduleHeartbeat','expected\x20Uint8Array','/unit/','subUnitId','AddSlidePageMutation','UNIVER_COLLABORATION_CLIENT_PLUGIN','_collaborationSessionService','_pendingMutations','body','_handlerCallback','append','headers','/universer-api/file/{fileID}/sign-url','CollaborationEntity','encodeURIComponent','univer-pro.collaboration-client.network-condition.service','60VoHqFY','136781chOafo','iterator','_registerDependencies','_initUnitPermissionChange','_compressMutationService','ICollaborationClientAdapterService','GLOBAL_ROOMS_CNT_EXCEEDS','CollaborationSession','1145490SIWDwR','name','decorate','pending','_updateLocalCache','_undoStacks','createSocket','endpointKey','prototype','/object','IUndoRedoService','_commandService','loadDoc','getCfgEnableObjInherit','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','mutations','toDisposable','onRemoteAck','getUnitStatus$','merge','CHANGESET_REJ','members$','ERROR_IMAGE_TYPE','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','range','Wrong\x20sbox\x20length','complete','_fetchMissChangesets','_change$','SUBMIT_CHANGESET_TIMEOUT','INGEST','onload','setConfig','_removeRoom','_clearCollaborationTimeoutTimer','UniverTelemetry','@univerjs-pro/slides','disposeWithMe','map','href','getConfig','RETRY_CONNECTING_MAX_COUNT','USERS_LEAVE','/block/','setShowComponents','_collaborationTimeoutTimer','override','[SyncedState]:\x20received\x20acknowledgement.','toggleOffline','synced','target','\x20-\x20','localeService','byteOffset','subscribe','_httpService','_entities','touchDependencies','_members','_tryEnsureSocket','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','getResourcesRequest','_state$','OTHER_CLIENT_EDITING','_acknowledgeAwaitingIfReady','_doCreateSocket','_changesetSessionId','[PendingState]:\x20received\x20acknowledgement.','socketReady','subject','UPDATE_CURSOR','next','INetworkConditionService','roomInfos','3764934oJvnhC','People','_createInitialState','byteLength','save\x20fail\x20reason\x20is\x20','CombCmd','UNIVER_DOC','_syncEditingCollabCursor','not_collab','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_onFetchMissResult','permissionRejEvent','IImageIoService','HTTPService','delete','_identity','liveShareNewHost','MentionType','action','NOT_COLLAB','isInternalEditorID','_transformAndApplyRemoteChangeset','sequenceExecute','varSizeNonce','objectType','timeoutTimer','DocCollaborationEntity','[PendingState]:\x20unhandled\x20univer\x20type:\x20','CommandType','subarray','delay','isTransformMutationsWithChangesetFailure','from','\x20to\x20','&assign=','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_imageSourceCache','_resendTimeout','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','getCollabEntity','aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','sid','_executeRemoteChangeset','_onJoinRoomEvent','IPermissionService','_localCacheService','[UniverCollaborationClientPlugin]','string','cmd','_getSocketChannel','decrypt','EmptyMutationInfo','UniverSheets','UniverCollaborationPlugin','toRemote','_config','put','RxDisposable','every','NO_OTHER_CLIENTS_EDITING','[OfflineState]:\x20received\x20changeset.','_showConflictNotification','resolveWithBasePath','submit\x20changeset\x20error!','getMember','AWAITING_WITH_PENDING','_init','send','IAttachmentIoService','_entityInit$','fromCollab','enableOfflineEditing','\x20of\x20length\x20','UNIVER_BASE','commentUpdateEvent','encrypt','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','originalMeta','length','_tryReconnect','_transformIMECache','localCacheService','onRemoteRetry','HEARTBEAT_TIMEOUT_KEY','OTHER_CLIENTS_EDITING','_sessions','_getSignURL','LEAVE','objects','session.room-cnt-exceeds','pipe','loadSheet','Quantity','_unlockTransition','duration','take','collaborators','_joinRoom','invalid\x20output,\x20must\x20be\x20aligned','mergeOverrideWithDependencies','length=','_sessionChannels','onMutationExecutedForCollab','_snapshotServerService','interceptor','blockRanges','_replayCachedMutations','RichTextEditingMutation','JOIN_ROOM_FAILED','@univerjs/docs','isArray','change$','ITelemetryService','readyForCollab','onTransformIME','onTransformRemoteChangesetByIMECache','_createSession','loadPdf','trim','_commentUpdate$','_getConfig','LIVESHARE_NEW_HOST','RETRY_CONNECTING_MAX_COUNT_KEY','values','_clearScheduledTask','ERROR_EXCEED_SIZE','_clearRedo','LIVESHARE_FETCH_OPERATIONS','getLatestCsReqIdBySid','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','1.0.0-alpha.8','toStringTag','get','status','PERSON','_onConnectionOpen','@univerjs/network','b64DecodeUnicode','CollaborationUIEventId','getFocusedUnit','fetching\x20missing\x20changesets\x20from\x20','unitId\x20is\x20not\x20found','_unitLoaded$','MemberService','FETCH_MISSING','docStateChange$','HEARTBEAT_INTERVAL_KEY','resourceIDs','&to=','unitID','hasOwnProperty','version','file','Error\x20on\x20receiving\x20event','LOCAL_CACHE_INTERVAL','origin','CommentService','_onRemoteRetry','connection\x20error','_localeService','_shouldReportTelemetry','update','onStarting','[SyncedState]:\x20received\x20rejection.','/-/object/-/batch_allowed','1664392JcmbCn','_incrementRevisionNumber','size','output','CollaborationAttachmentIoService','_getLoginPath','@univerjs-pro/license','find','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','isCompositionEnd','CHANGESET_ACK','uuidv4','_sendingTimer','_eventService','_stopTelemetryCollaborationNewChangeset','USERS_ENTER','getActiveSheet','create','selections','ImageUploadStatusType','session.room-not-exists','replace','Failed\x20to\x20update\x20permission\x20point','sessionStatus$','BoardCollaborationEntity','onRemoteRej','ERROR_IMAGE','push','getGlobalObject','_initMergeInterceptor','_substituteRedoStack','_transformService','_getAPIPrefix','_substituteUndoStack','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','SyncedState','joinRsp','_onOffline','FetchingMissState','members','_socketMessageSubscription','getUnitId','generateRandomId','url','focused$','has','_acknowledgedAwaitingRevision','actions','CHANGESET_SHOULD_RETRY','fetch_missing','_socket','changesets','socketService','_getCurrentRevision','getDeserializedSheetBlock','getCurrentSelections','constructor','_userManagerService','/universer-api/snapshot/','_collaborationUIEventService','equals','DEFAULT_COLLAB_WEB_SOCKET_URL','IUniverInstanceService','loadOfflineData','reduce','packageName','avatar','number\x20expected,\x20got\x20','_sender','collaboration-client.config','[DataLoaderService]','takeUntil','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','FAIL','UniverProSlides','\x0aCurrent:\x20','CONFLICT','updateSnapshot','enableCollaboration','workbook','online$','getValue','Inject','getImageSourceCache','_event$','88PiVfRg','key','assign','some','BaseCollaborationEntity','event$','/universer-api/stream/file/upload','listCollaborators','defineProperty','[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.','stringify','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','encode','AwaitingState','_getRedoStack','AWAITING','ITransformService','refreshPermission','collabSubmitChangesetUrl','_socketChannels','_schedule','40233KTQcKY','onSendChangeset','MUTATION','endpoint','getUnit','AAD','textEncoder','_socketService','type','changeset','filter','UniverProtocol','/resources','sendChangesetTimeout','conflict','getUnitOnRev','/-/object/list','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_onUserJoin','getSnapshotAPIPath','HELLO','ws://127.0.0.1:8000/universer-api/comb/connect','_createHandler','disablePadding','setCfgEnableObjInherit','/allowed','7FIxSok','SNAPSHOT_URL_KEY','socket$','_onRemoteRejected','sessionStatus','RevisionService','tagLength','_clearHeartbeatTimer','_roomCreated$','_acknowledgeAwaiting','incrementRevOfUnit','@univerjs-pro/collaboration','list','_createInitialStateImpl','snapshotServerUrl','collaboratorID','_resolveSessionIdentity','_sessionStatus$','HEARTBEAT_TIMEOUT','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','enableAuthServer','collaboration_new_changeset','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','PSEUDO_FETCH_MISSING_RESULT','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','SheetCollaborationEntity','IContextService','[CollaborationUndoRedoService]','executeCommand','_startCollaboration','collaMsg','onSyncEditingCollabCursor','string\x20expected','_getUploadFileURL','ILogService','includes','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','awaitingChangeset','rev'];_0x2261=function(){return _0x492076;};return _0x2261();}function _0x4e8d(_0x26bafd,_0x3b4494){_0x26bafd=_0x26bafd-0xeb;const _0x2261f2=_0x2261();let _0x4e8dd6=_0x2261f2[_0x26bafd];return _0x4e8dd6;}(function(_0x2dc0e6,_0x1c0a7){const _0x36f061=_0x4e8d,_0x2de401=_0x2dc0e6();while(!![]){try{const _0x2e9bb4=-parseInt(_0x36f061(0x446))/0x1+parseInt(_0x36f061(0x44e))/0x2+parseInt(_0x36f061(0x243))/0x3*(-parseInt(_0x36f061(0x22e))/0x4)+parseInt(_0x36f061(0x3bb))/0x5+parseInt(_0x36f061(0x134))/0x6+parseInt(_0x36f061(0x25d))/0x7*(parseInt(_0x36f061(0x1d9))/0x8)+parseInt(_0x36f061(0x39a))/0x9*(-parseInt(_0x36f061(0x445))/0xa);if(_0x2e9bb4===_0x1c0a7)break;else _0x2de401['push'](_0x2de401['shift']());}catch(_0x1bb4c6){_0x2de401['push'](_0x2de401['shift']());}}}(_0x2261,0x51dd4),function(_0x205182,_0x1ac627){const _0x1dd4bb=_0x4e8d;typeof exports=='object'&&typeof module<'u'?_0x1ac627(exports,require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x1dd4bb(0x289)&&define[_0x1dd4bb(0x28a)]?define([_0x1dd4bb(0x2e7),_0x1dd4bb(0x268),'@univerjs/core',_0x1dd4bb(0x1a1),'@univerjs/sheets',_0x1dd4bb(0x3da),_0x1dd4bb(0x2ce),_0x1dd4bb(0x34d),_0x1dd4bb(0x3ab),_0x1dd4bb(0x10e),_0x1dd4bb(0x1bc),_0x1dd4bb(0x1df),_0x1dd4bb(0x2eb)],_0x1ac627):(_0x205182=typeof globalThis<'u'?globalThis:_0x205182||self,_0x1ac627(_0x205182[_0x1dd4bb(0x375)]={},_0x205182[_0x1dd4bb(0x2c6)],_0x205182[_0x1dd4bb(0x344)],_0x205182[_0x1dd4bb(0x429)],_0x205182[_0x1dd4bb(0x168)],_0x205182['rxjs'],_0x205182[_0x1dd4bb(0x24e)],_0x205182[_0x1dd4bb(0x10d)],_0x205182[_0x1dd4bb(0x3da)]['operators'],_0x205182[_0x1dd4bb(0x223)],_0x205182['UniverNetwork'],_0x205182[_0x1dd4bb(0x2cc)],_0x205182[_0x1dd4bb(0x299)]));}(this,function(_0x4baffb,_0x20c203,_0x2d0b9f,_0x33f3ff,_0x2ba48b,_0x31dca4,_0x11fae4,_0x20ecbc,_0x2ba3c8,_0x4d2eeb,_0xc90c47,_0x3478b3,_0x247c19){const _0x405303=_0x4e8d;Object[_0x405303(0x236)](_0x4baffb,Symbol[_0x405303(0x1b7)],{'value':_0x405303(0x2f2)});let _0x51e182='collaboration-client.config',_0x5939b8={},_0x219b9d=_0x405303(0x258),_0x1dd4cb=0x4e20;function _0x18ce34(_0x2773ee){const _0x433595=_0x405303;return JSON['stringify'](_0x2773ee)[_0x433595(0x182)];}function _0x4dd0ed(_0x17c066){'@babel/helpers - typeof';const _0x40023c=_0x405303;return _0x4dd0ed=typeof Symbol==_0x40023c(0x289)&&typeof Symbol[_0x40023c(0x447)]=='symbol'?function(_0x5da3ef){return typeof _0x5da3ef;}:function(_0x19cfde){const _0x2fef90=_0x40023c;return _0x19cfde&&typeof Symbol==_0x2fef90(0x289)&&_0x19cfde[_0x2fef90(0x211)]===Symbol&&_0x19cfde!==Symbol[_0x2fef90(0xf2)]?_0x2fef90(0x298):typeof _0x19cfde;},_0x4dd0ed(_0x17c066);}function _0x156fac(_0x4dc2be,_0x1a051){const _0x383278=_0x405303;if(_0x4dd0ed(_0x4dc2be)!=_0x383278(0x314)||!_0x4dc2be)return _0x4dc2be;var _0x1f97c2=_0x4dc2be[Symbol[_0x383278(0x2d2)]];if(_0x1f97c2!==void 0x0){var _0x50a75c=_0x1f97c2[_0x383278(0x2ed)](_0x4dc2be,_0x1a051||_0x383278(0x2ab));if(_0x4dd0ed(_0x50a75c)!='object')return _0x50a75c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1a051===_0x383278(0x163)?String:Number)(_0x4dc2be);}function _0x33c5d3(_0x263f08){const _0x91768f=_0x405303;var _0x2f59b9=_0x156fac(_0x263f08,_0x91768f(0x163));return _0x4dd0ed(_0x2f59b9)==_0x91768f(0x298)?_0x2f59b9:_0x2f59b9+'';}function _0x4219eb(_0x257624,_0xcb86aa,_0x575ff3){return(_0xcb86aa=_0x33c5d3(_0xcb86aa))in _0x257624?Object['defineProperty'](_0x257624,_0xcb86aa,{'value':_0x575ff3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x257624[_0xcb86aa]=_0x575ff3,_0x257624;}let _0x3f9476=function(_0x73be8e){const _0x14b290=_0x405303;return _0x73be8e[_0x14b290(0x129)]=_0x14b290(0x129),_0x73be8e[_0x14b290(0x421)]='PERMISSION_DENIED',_0x73be8e[_0x14b290(0x225)]='CONFLICT',_0x73be8e[_0x14b290(0x2d7)]='CLOSE_ROOM',_0x73be8e[_0x14b290(0x1a0)]=_0x14b290(0x1a0),_0x73be8e[_0x14b290(0x294)]=_0x14b290(0x294),_0x73be8e[_0x14b290(0x384)]=_0x14b290(0x384),_0x73be8e[_0x14b290(0x107)]='SUBMIT_CHANGESET_TIMEOUT',_0x73be8e;}({});var _0xa9d46c=class{constructor(){const _0x5aad41=_0x405303;_0x4219eb(this,'_event$',new _0x31dca4[(_0x5aad41(0x29e))]()),_0x4219eb(this,'event$',this[_0x5aad41(0x22d)][_0x5aad41(0x41c)]());}['emitEvent'](_0x18d4a2){const _0x4768e7=_0x405303;this[_0x4768e7(0x22d)][_0x4768e7(0x131)](_0x18d4a2);}},_0x432b3d=class{constructor(){const _0x19c163=_0x405303;_0x4219eb(this,'_commentUpdate$',new _0x31dca4['Subject']()),_0x4219eb(this,_0x19c163(0x392),this['_commentUpdate$'][_0x19c163(0x41c)]());}[_0x405303(0x415)](_0x8045e7){const _0x3d3422=_0x405303;this[_0x3d3422(0x1ab)][_0x3d3422(0x131)](_0x8045e7);}};function _0x43549d(_0x12d1fc,_0x151546){return function(_0x40eb9f,_0x261d3c){_0x151546(_0x40eb9f,_0x261d3c,_0x12d1fc);};}function _0x3934d9(_0x383f26,_0xec8204,_0xae13e7,_0xcaf472){const _0x1705e5=_0x405303;var _0x132fd7=arguments[_0x1705e5(0x182)],_0x283a60=_0x132fd7<0x3?_0xec8204:_0xcaf472===null?_0xcaf472=Object['getOwnPropertyDescriptor'](_0xec8204,_0xae13e7):_0xcaf472,_0x6fde4c;if(typeof Reflect=='object'&&typeof Reflect[_0x1705e5(0xec)]=='function')_0x283a60=Reflect['decorate'](_0x383f26,_0xec8204,_0xae13e7,_0xcaf472);else{for(var _0x3632a5=_0x383f26[_0x1705e5(0x182)]-0x1;_0x3632a5>=0x0;_0x3632a5--)(_0x6fde4c=_0x383f26[_0x3632a5])&&(_0x283a60=(_0x132fd7<0x3?_0x6fde4c(_0x283a60):_0x132fd7>0x3?_0x6fde4c(_0xec8204,_0xae13e7,_0x283a60):_0x6fde4c(_0xec8204,_0xae13e7))||_0x283a60);}return _0x132fd7>0x3&&_0x283a60&&Object[_0x1705e5(0x236)](_0xec8204,_0xae13e7,_0x283a60),_0x283a60;}let _0x42c2f1=class extends _0x2d0b9f[_0x405303(0x2c1)]{constructor(_0x34fda0){const _0x4333bd=_0x405303;super(),this[_0x4333bd(0x347)]=_0x34fda0,_0x4219eb(this,_0x4333bd(0x3e5),new Map()),_0x4219eb(this,_0x4333bd(0x265),new _0x31dca4[(_0x4333bd(0x29e))]()),this['disposeWithMe']((0x0,_0x31dca4[_0x4333bd(0xfd)])(this[_0x4333bd(0x347)][_0x4333bd(0x336)](_0x2d0b9f[_0x4333bd(0x341)]['UNIVER_SHEET'])[_0x4333bd(0x18e)]((0x0,_0x2ba3c8[_0x4333bd(0x110)])(_0xcae10b=>_0xcae10b[_0x4333bd(0x202)]())),this['_univerInstanceService'][_0x4333bd(0x336)](_0x2d0b9f['UniverInstanceType'][_0x4333bd(0x13a)])[_0x4333bd(0x18e)]((0x0,_0x2ba3c8[_0x4333bd(0x110)])(_0x40b976=>_0x40b976[_0x4333bd(0x202)]())),this[_0x4333bd(0x347)][_0x4333bd(0x336)](_0x2d0b9f[_0x4333bd(0x341)][_0x4333bd(0x333)])[_0x4333bd(0x18e)]((0x0,_0x2ba3c8[_0x4333bd(0x110)])(_0x3ce9ee=>_0x3ce9ee[_0x4333bd(0x202)]())),this['_univerInstanceService'][_0x4333bd(0x336)](_0x2d0b9f[_0x4333bd(0x341)][_0x4333bd(0x17d)])[_0x4333bd(0x18e)]((0x0,_0x2ba3c8[_0x4333bd(0x110)])(_0x3fa5f6=>_0x3fa5f6['getUnitId']())))[_0x4333bd(0x120)](_0x1fe699=>this[_0x4333bd(0x10b)](_0x1fe699)));}[_0x405303(0x3b7)](_0x253f86){const _0x1744fa=_0x405303;return this[_0x1744fa(0x3e5)]['has'](_0x253f86)?(0x0,_0x31dca4['of'])(this['_roomMembers'][_0x1744fa(0x1b8)](_0x253f86)):this[_0x1744fa(0x265)][_0x1744fa(0x18e)]((0x0,_0x2ba3c8[_0x1744fa(0x110)])(_0x340a84=>{const _0x15a06a=_0x1744fa;if(_0x340a84===_0x253f86)return this[_0x15a06a(0x3e5)][_0x15a06a(0x1b8)](_0x340a84);}));}[_0x405303(0x3ce)](_0x30747b,_0x3b6a8e){const _0x3c3d74=_0x405303;let _0x100cbc=this[_0x3c3d74(0x3e5)][_0x3c3d74(0x1b8)](_0x30747b);_0x100cbc||(_0x100cbc=new _0x2ed6f4(),this[_0x3c3d74(0x3e5)][_0x3c3d74(0x339)](_0x30747b,_0x100cbc),this[_0x3c3d74(0x265)][_0x3c3d74(0x131)](_0x30747b)),_0x100cbc[_0x3c3d74(0x3ce)](_0x3b6a8e);}[_0x405303(0x357)](_0x4f407b,_0x442b3f){const _0x2914ce=_0x405303;let _0x3863fd=this[_0x2914ce(0x3e5)][_0x2914ce(0x1b8)](_0x4f407b);_0x3863fd&&_0x3863fd['removeMember'](_0x442b3f);}[_0x405303(0x30c)](_0x218c9c){const _0x2a0b2a=_0x405303;return this[_0x2a0b2a(0x3e5)][_0x2a0b2a(0x1b8)](_0x218c9c);}['getMember'](_0x488fd6,_0x5f072d){const _0x1c8acd=_0x405303;let _0x2a3db2=this[_0x1c8acd(0x3e5)][_0x1c8acd(0x1b8)](_0x488fd6);if(_0x2a3db2)return _0x2a3db2[_0x1c8acd(0x174)](_0x5f072d);}[_0x405303(0x10b)](_0x4e5947){const _0x1ae814=_0x405303;let _0x31664d=this['_roomMembers'][_0x1ae814(0x1b8)](_0x4e5947);_0x31664d&&(_0x31664d[_0x1ae814(0x309)](),this[_0x1ae814(0x3e5)][_0x1ae814(0x142)](_0x4e5947));}[_0x405303(0x309)](){const _0x13f50e=_0x405303;this[_0x13f50e(0x3e5)][_0x13f50e(0x412)](_0x7b2b24=>_0x7b2b24[_0x13f50e(0x309)]()),this[_0x13f50e(0x3e5)][_0x13f50e(0x3c7)](),this['_roomCreated$']['complete']();}};_0x42c2f1=_0x3934d9([_0x43549d(0x0,_0x2d0b9f[_0x405303(0x217)])],_0x42c2f1);var _0x2ed6f4=class extends _0x2d0b9f[_0x405303(0x2c1)]{constructor(..._0x3740e7){const _0xd33643=_0x405303;super(..._0x3740e7),_0x4219eb(this,_0xd33643(0x124),new Map()),_0x4219eb(this,_0xd33643(0x413),new _0x31dca4[(_0xd33643(0x31b))](this[_0xd33643(0x124)])),_0x4219eb(this,_0xd33643(0xff),this[_0xd33643(0x413)][_0xd33643(0x41c)]());}[_0x405303(0x309)](){const _0x674a40=_0x405303;this[_0x674a40(0x124)][_0x674a40(0x3c7)](),this[_0x674a40(0x413)]['complete']();}[_0x405303(0x3ce)](_0x18fdb4){const _0x5af936=_0x405303;this[_0x5af936(0x124)][_0x5af936(0x339)](_0x18fdb4['memberID'],_0x18fdb4),this['_emitMembers']();}[_0x405303(0x357)](_0x50b73a){const _0x5e438c=_0x405303;this['_members']['delete'](_0x50b73a),this[_0x5e438c(0x34c)]();}[_0x405303(0x174)](_0x3587cd){const _0x287e99=_0x405303;return this['_members'][_0x287e99(0x1b8)](_0x3587cd);}[_0x405303(0x391)](){const _0x2d1425=_0x405303;return Array[_0x2d1425(0x154)](this[_0x2d1425(0x124)][_0x2d1425(0x1af)]());}['_emitMembers'](){const _0x3ec15b=_0x405303;this[_0x3ec15b(0x413)][_0x3ec15b(0x131)](this[_0x3ec15b(0x124)]);}};function _0xecb3e0(_0x3ca447,_0x51cd89){const _0x154a3d=_0x405303;if(_0x27e9d8(_0x3ca447))return _0x51cd89;if(_0x51cd89['eventID']===_0x20c203[_0x154a3d(0x3e1)][_0x154a3d(0x3ba)]){var _0x5d6d6f;let _0x4ec441=_0x445cd3(_0x3ca447),_0xff3092=_0x51cd89;return{..._0xff3092,'data':{..._0xff3092[_0x154a3d(0x3be)],'unitID':_0x3ca447['target'][_0x154a3d(0x29b)],'unitType':(_0x5d6d6f=_0x3ca447['target'][_0x154a3d(0x311)])==null?_0xff3092[_0x154a3d(0x3be)][_0x154a3d(0x311)]:_0x5d6d6f,'changeset':_0x4ec441[_0x154a3d(0x16a)](_0xff3092['data'][_0x154a3d(0x24c)],_0x12ae60(_0x3ca447))}};}if(_0x51cd89['eventID']===_0x20c203[_0x154a3d(0x3e1)]['FETCH_MISSING']){var _0x11452e;let _0x4bf58b=_0x51cd89;return{..._0x4bf58b,'data':{..._0x4bf58b['data'],'unitID':_0x3ca447['target'][_0x154a3d(0x29b)],'unitType':(_0x11452e=_0x3ca447['target'][_0x154a3d(0x311)])==null?_0x4bf58b['data'][_0x154a3d(0x311)]:_0x11452e}};}return _0x51cd89;}function _0x2566ac(_0x258007,_0x548f68){const _0x1d65ce=_0x405303;if(_0x27e9d8(_0x258007))return[_0x548f68];switch(_0x548f68['eventID']){case _0x20c203[_0x1d65ce(0x3e1)][_0x1d65ce(0x2c5)]:return[_0x347482(_0x258007,_0x548f68)];case _0x20c203['CollaborationEvent'][_0x1d65ce(0x275)]:return[_0xce7e49(_0x258007,_0x548f68)];case _0x20c203[_0x1d65ce(0x3e1)][_0x1d65ce(0x209)]:return[_0x1298a1(_0x258007,_0x548f68)];default:return[_0x548f68];}}function _0x27e9d8(_0x301a8d){const _0x3358ad=_0x405303;return _0x301a8d[_0x3358ad(0x11c)][_0x3358ad(0x246)]==null&&_0x301a8d['target']['unitId']===_0x301a8d[_0x3358ad(0x2aa)]&&!_0x301a8d['changeset'];}function _0x347482(_0x4d465d,_0x4d2419){const _0x45bd91=_0x405303;return{..._0x4d2419,'data':(0x0,_0x20c203['parseChangesetToProtocol'])(_0xf8048d(_0x4d465d,(0x0,_0x20c203[_0x45bd91(0x2b6)])(_0x4d2419[_0x45bd91(0x3be)])))};}function _0x1298a1(_0x4ffca0,_0x24f790){const _0x424571=_0x405303;return{..._0x24f790,'data':_0xf8048d(_0x4ffca0,_0x24f790[_0x424571(0x3be)])};}function _0xce7e49(_0x25e966,_0x4724ff){const _0x4ffec8=_0x405303;let _0x462bdf=_0x4724ff[_0x4ffec8(0x3be)];return{..._0x4724ff,'data':{..._0x462bdf,'changesets':_0x462bdf[_0x4ffec8(0x20c)][_0x4ffec8(0x110)](_0x352a3f=>(0x0,_0x20c203['parseChangesetToProtocol'])(_0xf8048d(_0x25e966,(0x0,_0x20c203['parseProtocolChangeset'])(_0x352a3f))))}};}function _0xf8048d(_0x5ca183,_0x405b52){return _0x445cd3(_0x5ca183)['toLocal'](_0x405b52,_0x12ae60(_0x5ca183));}function _0x445cd3(_0x5c4f3e){const _0x493b73=_0x405303;if(!_0x5c4f3e[_0x493b73(0x24c)])throw Error(_0x493b73(0x1fb));return _0x5c4f3e[_0x493b73(0x24c)];}function _0x12ae60(_0x5e7f78){const _0x33892f=_0x405303;return{'localUnitId':_0x5e7f78[_0x33892f(0x2aa)],'unitType':_0x5e7f78[_0x33892f(0x311)],'target':_0x5e7f78[_0x33892f(0x11c)]};}let _0x53b627=function(_0x21e733){const _0x1c2e95=_0x405303;return _0x21e733[_0x21e733['IDLE']=0x0]=_0x1c2e95(0x296),_0x21e733[_0x21e733[_0x1c2e95(0x39d)]=0x1]=_0x1c2e95(0x39d),_0x21e733[_0x21e733[_0x1c2e95(0x425)]=0x2]=_0x1c2e95(0x425),_0x21e733[_0x21e733[_0x1c2e95(0x360)]=0x3]=_0x1c2e95(0x360),_0x21e733;}({}),_0x139cf2={[_0x11fae4[_0x405303(0x3b3)][_0x405303(0x222)]]:_0x405303(0x3aa),[_0x11fae4[_0x405303(0x3b3)]['JOIN_ROOM_FULL']]:_0x405303(0x365),[_0x11fae4['CmdRspCode'][_0x405303(0x3cb)]]:_0x405303(0x1ed),[_0x11fae4[_0x405303(0x3b3)][_0x405303(0x2e2)]]:_0x405303(0x321),[_0x11fae4[_0x405303(0x3b3)][_0x405303(0x44c)]]:_0x405303(0x18d)},_0x1213e3=class extends _0x2d0b9f['RxDisposable']{get['sessionStatus'](){const _0x5a63ca=_0x405303;return this[_0x5a63ca(0x26e)][_0x5a63ca(0x22a)]();}constructor(_0x5bce75,_0x2febdb,_0xa75a4,_0x43a1a2,_0x195c20,_0x5d58bb,_0x4a063f,_0x277a06){const _0x3a14b6=_0x405303;super(),this[_0x3a14b6(0x143)]=_0x5bce75,this[_0x3a14b6(0x3d5)]=_0xa75a4,this[_0x3a14b6(0x3d2)]=_0x43a1a2,this[_0x3a14b6(0x2cf)]=_0x195c20,this['_commentService']=_0x5d58bb,this['_collaborationUIEventService']=_0x4a063f,this[_0x3a14b6(0x3db)]=_0x277a06,_0x4219eb(this,_0x3a14b6(0x26e),new _0x31dca4[(_0x3a14b6(0x31b))](0x0)),_0x4219eb(this,'sessionStatus$',this['_sessionStatus$'][_0x3a14b6(0x41c)]()),_0x4219eb(this,_0x3a14b6(0x22d),new _0x31dca4[(_0x3a14b6(0x29e))]()),_0x4219eb(this,'event$',this['_event$'][_0x3a14b6(0x41c)]()),_0x4219eb(this,_0x3a14b6(0x20b),void 0x0),_0x4219eb(this,_0x3a14b6(0x201),void 0x0),_0x4219eb(this,_0x3a14b6(0x117),void 0x0),_0x4219eb(this,_0x3a14b6(0x1d4),!0x1),_0x4219eb(this,'_telemetryInfo',null),this[_0x3a14b6(0x1d4)]=!!this['_telemetryService'],_0x2febdb[_0x3a14b6(0x18e)]((0x0,_0x31dca4[_0x3a14b6(0x220)])(this['dispose$']))[_0x3a14b6(0x120)](_0x1f5fbe=>{const _0x3254a4=_0x3a14b6;if(_0x1f5fbe!==void 0x0){if(this[_0x3254a4(0x20b)]=_0x1f5fbe,_0x1f5fbe)this[_0x3254a4(0x195)](_0x1f5fbe),this['_socketMessageSubscription']=_0x1f5fbe['message$']['subscribe'](_0x291655=>{const _0x571446=_0x3254a4;_0x291655[_0x571446(0x2bb)]===this[_0x571446(0x143)][_0x571446(0x11c)]['unitId']&&this['_onCombEvent'](_0x291655);});else{var _0x1b7b0b;this[_0x3254a4(0x41b)](),this['_sessionStatus$'][_0x3254a4(0x131)](0x2),(_0x1b7b0b=this[_0x3254a4(0x201)])==null||_0x1b7b0b[_0x3254a4(0x3e8)](),this[_0x3254a4(0x201)]=null;}}});}[_0x405303(0x32d)](){const _0x17591b=_0x405303;var _0x4deae8,_0x19f856;return(_0x4deae8=(_0x19f856=this[_0x17591b(0x20b)])==null?void 0x0:_0x19f856[_0x17591b(0x29d)])==null?null:_0x4deae8;}[_0x405303(0x309)](){const _0xb648aa=_0x405303;super[_0xb648aa(0x309)](),this[_0xb648aa(0x2dd)](),this[_0xb648aa(0x405)]['next'](),this[_0xb648aa(0x405)][_0xb648aa(0x104)]();}['close'](){const _0x4c3c0b=_0x405303;var _0x3f7393;this['_throwTelemetryCollaborationNewChangeset'](),(_0x3f7393=this[_0x4c3c0b(0x20b)])==null||_0x3f7393[_0x4c3c0b(0x177)]({'cmd':_0x11fae4[_0x4c3c0b(0x139)][_0x4c3c0b(0x18b)],'data':{'roomID':this[_0x4c3c0b(0x143)][_0x4c3c0b(0x11c)][_0x4c3c0b(0x29b)]}}),this[_0x4c3c0b(0x22d)]['complete'](),this[_0x4c3c0b(0x26e)]['complete']();}[_0x405303(0x38d)](_0x559938){const _0x39fa47=_0x405303;_0x559938[_0x39fa47(0x164)]===_0x11fae4[_0x39fa47(0x139)][_0x39fa47(0x315)]?this[_0x39fa47(0x15f)](_0x559938):_0x559938[_0x39fa47(0x164)]===_0x11fae4[_0x39fa47(0x139)][_0x39fa47(0x359)]&&this[_0x39fa47(0x323)](_0x559938);}[_0x405303(0x195)](_0x5cb139){const _0x413e14=_0x405303;this[_0x413e14(0x26e)]['next'](0x1),_0x5cb139['send']({'cmd':_0x11fae4[_0x413e14(0x139)][_0x413e14(0x315)],'routeKey':this[_0x413e14(0x143)]['target'][_0x413e14(0x29b)],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x413e14(0x11c)]['unitId']}]}});}[_0x405303(0x15f)](_0x3dc308){const _0x333485=_0x405303;var _0x1b5e33;if(_0x3dc308[_0x333485(0x2c4)]in _0x139cf2){this[_0x333485(0x214)][_0x333485(0x31f)]({'id':_0x333485(0x1a0),'data':_0x139cf2[_0x3dc308['code']]}),this['_sessionStatus$'][_0x333485(0x131)](0x2);return;}this[_0x333485(0x26e)]['next'](0x3);let _0x3b8605=(_0x1b5e33=_0x3dc308[_0x333485(0x3be)][_0x333485(0x133)][this['_identity'][_0x333485(0x11c)][_0x333485(0x29b)]])==null?void 0x0:_0x1b5e33[_0x333485(0x200)];_0x3b8605&&_0x3b8605['forEach'](_0x303c9b=>this[_0x333485(0x2cf)][_0x333485(0x3ce)](this[_0x333485(0x143)][_0x333485(0x2aa)],_0x303c9b));}['_onRecvEvent'](_0x175e43){const _0x128280=_0x405303;try{let _0x2c899f=_0x2566ac(this[_0x128280(0x143)],_0x175e43[_0x128280(0x3be)]);for(let _0x399c52 of _0x2c899f)switch(_0x399c52['eventID']){case _0x20c203['CollaborationEvent'][_0x128280(0x1e8)]:this['_onUserJoin'](_0x399c52),this[_0x128280(0x22d)]['next'](_0x399c52);break;case _0x20c203[_0x128280(0x3e1)]['USERS_LEAVE']:this[_0x128280(0x3c0)](_0x399c52),this[_0x128280(0x22d)]['next'](_0x399c52);break;case _0x20c203['CollaborationEvent']['CHANGESET_ACK']:case _0x20c203[_0x128280(0x3e1)][_0x128280(0x209)]:this[_0x128280(0x1e7)](),this[_0x128280(0x10c)](),this[_0x128280(0x22d)][_0x128280(0x131)](_0x399c52);break;case _0x20c203[_0x128280(0x3e1)][_0x128280(0x3e4)]:this['_logService'][_0x128280(0x2a9)](_0x128280(0x138)+JSON[_0x128280(0x238)](_0x399c52)),this[_0x128280(0x22d)][_0x128280(0x131)](_0x399c52);break;case _0x20c203[_0x128280(0x3e1)][_0x128280(0x345)]:this['_commentService']['onCommentUpdate'](_0x399c52[_0x128280(0x3be)]),this[_0x128280(0x22d)]['next'](_0x399c52);break;default:this[_0x128280(0x22d)][_0x128280(0x131)](_0x399c52);}}catch(_0x5a96b1){this['_logService'][_0x128280(0x2a9)](_0x5a96b1,_0x175e43);}}[_0x405303(0x255)](_0x58b47a){const _0x568279=_0x405303;this[_0x568279(0x2cf)][_0x568279(0x3ce)](this['_identity']['localUnitId'],_0x58b47a[_0x568279(0x3be)]);}[_0x405303(0x3c0)](_0x3c1def){const _0x30769b=_0x405303;this[_0x30769b(0x2cf)][_0x30769b(0x357)](this[_0x30769b(0x143)][_0x30769b(0x2aa)],_0x3c1def[_0x30769b(0x3be)][_0x30769b(0x29d)]);}async[_0x405303(0x177)](_0x333a8d,_0x21063c){const _0x287f81=_0x405303;if(this[_0x287f81(0x261)]!==0x3||!this[_0x287f81(0x20b)])throw Error(_0x287f81(0x101));try{let _0x234e75=_0xecb3e0(this[_0x287f81(0x143)],_0x333a8d);_0x234e75[_0x287f81(0x3cc)]===_0x20c203[_0x287f81(0x3e1)][_0x287f81(0x3ba)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x287f81(0x38a)](_0x234e75)),this[_0x287f81(0x20b)][_0x287f81(0x177)]({'cmd':_0x11fae4[_0x287f81(0x139)][_0x287f81(0x108)],'routeKey':this[_0x287f81(0x143)][_0x287f81(0x11c)][_0x287f81(0x29b)],'routeType':'','data':_0x234e75});}catch(_0x1ed680){this[_0x287f81(0x3d5)]['error'](_0x1ed680);}}[_0x405303(0x3b9)](){const _0x32cb6c=_0x405303;var _0x165a2f;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x14d6a9=_0x4e8d;this[_0x14d6a9(0x117)]=null,this[_0x14d6a9(0x214)]['emitEvent']({'id':_0x14d6a9(0x107)});},(_0x165a2f=this[_0x32cb6c(0x3d2)][_0x32cb6c(0x112)](_0x32cb6c(0x26f)))==null?_0x1dd4cb:_0x165a2f);}[_0x405303(0x10c)](){const _0x407e00=_0x405303;this[_0x407e00(0x117)]&&(clearTimeout(this[_0x407e00(0x117)]),this[_0x407e00(0x117)]=null);}[_0x405303(0x38a)](_0x18a0ca){const _0x38e85c=_0x405303;if(!this['_shouldReportTelemetry'])return;let {data:_0x4f1d6a}=_0x18a0ca,{unitID:_0x39af65,changeset:_0x39dd48}=_0x4f1d6a,{mutations:_0x4f96c0,type:_0x3d5634}=_0x39dd48;this[_0x38e85c(0x3f2)]={'unitId':_0x39af65,'type':_0x3d5634,'startTime':performance[_0x38e85c(0x2cb)](),'stopTime':0x0,'duration':0x0,'size':_0x18ce34(_0x4f96c0)};}[_0x405303(0x1e7)](){const _0x48864a=_0x405303;if(this[_0x48864a(0x1d4)]){if(!this[_0x48864a(0x3f2)]){this[_0x48864a(0x3d5)][_0x48864a(0x2a9)](_0x48864a(0x420),_0x48864a(0x2f6));return;}this['_telemetryInfo'][_0x48864a(0x303)]=performance[_0x48864a(0x2cb)](),this[_0x48864a(0x3f2)][_0x48864a(0x192)]=this[_0x48864a(0x3f2)][_0x48864a(0x303)]-this['_telemetryInfo'][_0x48864a(0x3d4)],this['_telemetryService'][_0x48864a(0x394)](_0x48864a(0x273),this[_0x48864a(0x3f2)]),this['_telemetryInfo']=null;}}[_0x405303(0x41b)](){const _0x166d3f=_0x405303;this[_0x166d3f(0x3f2)]=null;}};_0x1213e3=_0x3934d9([_0x43549d(0x2,_0x2d0b9f['ILogService']),_0x43549d(0x3,_0x2d0b9f[_0x405303(0x346)]),_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x42c2f1)),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x432b3d)),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xa9d46c)),_0x43549d(0x7,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x20ecbc[_0x405303(0x1a4)]))],_0x1213e3);let _0x3e00f7=(0x0,_0x2d0b9f['createIdentifier'])('collaboration-client.local-cache-service');function _0x2ea860(_0x29f256){const _0xd76a3a=_0x405303;return _0xd76a3a(0x356)+_0x29f256;}function _0xb4df(_0x403abe){const _0x3dfa87=_0x405303;let {unitID:_0x19acba,mutations:_0x4c7ea5}=_0x403abe;return{'unitId':_0x19acba,'subUnitId':_0x4c7ea5['length']>0x0?_0x4c7ea5[0x0][_0x3dfa87(0x329)][_0x3dfa87(0x438)]:null};}let _0x201f2c=class{constructor(_0x5725a3,_0x4b01e3,_0x1ae447){const _0x3f7d12=_0x405303;this[_0x3f7d12(0x3ef)]=_0x5725a3,this['_transformService']=_0x4b01e3,this['_instanceService']=_0x1ae447;}[_0x405303(0x41d)](_0x331cc2){const _0x1b944f=_0x405303;var _0x36a919,_0x45dcd4;let _0x1d2c29=this[_0x1b944f(0x3ef)][_0x1b944f(0x1b8)](_0x2ba48b[_0x1b944f(0x2bd)]),{unitId:_0x2c5d04,subUnitId:_0x94d4f0}=_0xb4df(_0x331cc2),_0x25706f=_0x1d2c29==null?void 0x0:_0x1d2c29[_0x1b944f(0x2da)](_0x2c5d04)[_0x1b944f(0x210)](),_0xa54524=(_0x36a919=this[_0x1b944f(0x2b4)][_0x1b944f(0x247)](_0x2c5d04))==null||(_0x36a919=_0x36a919[_0x1b944f(0x1e9)]())==null?void 0x0:_0x36a919[_0x1b944f(0x39f)]();if(_0x25706f['length']===0x0||!_0x2c5d04||!_0x94d4f0)return;let _0x43c74a=[{'id':_0x2ba48b['SetSelectionsOperation']['id'],'params':{'unitId':_0x2c5d04,'subUnitId':_0xa54524,'selections':_0x2d0b9f[_0x1b944f(0x409)][_0x1b944f(0x2b3)](_0x25706f)}}],_0x3199f3=this[_0x1b944f(0x1f8)][_0x1b944f(0x30a)](_0x331cc2,_0x43c74a);if(!(0x0,_0x20c203[_0x1b944f(0x3d8)])(_0x3199f3))throw _0x3199f3[_0x1b944f(0x2a9)];let _0x645af=(_0x45dcd4=_0x3199f3['m2Prime'][0x0])==null||(_0x45dcd4=_0x45dcd4[_0x1b944f(0x329)])==null?void 0x0:_0x45dcd4[_0x1b944f(0x1eb)];if(Array[_0x1b944f(0x1a2)](_0x645af)&&_0x645af[_0x1b944f(0x182)]){if(_0x645af[_0x1b944f(0x182)]===_0x43c74a[0x0][_0x1b944f(0x329)][_0x1b944f(0x1eb)][_0x1b944f(0x182)]&&_0x645af[_0x1b944f(0x16e)]((_0x1d86c4,_0x3cb99e)=>_0x2d0b9f[_0x1b944f(0x3b6)][_0x1b944f(0x215)](_0x1d86c4[_0x1b944f(0x102)],_0x43c74a[0x0][_0x1b944f(0x329)]['selections'][_0x3cb99e][_0x1b944f(0x102)])))return;this[_0x1b944f(0x3ef)][_0x1b944f(0x1b8)](_0x2d0b9f[_0x1b944f(0x326)])[_0x1b944f(0x27a)](_0x2ba48b[_0x1b944f(0x40c)]['id'],{'unitId':_0x2c5d04,'subUnitId':_0xa54524,'selections':_0x645af});}}};_0x201f2c=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f['Inject'])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x1,_0x20c203[_0x405303(0x23e)]),_0x43549d(0x2,_0x2d0b9f['IUniverInstanceService'])],_0x201f2c);let _0x43c9bd=(0x0,_0x2d0b9f[_0x405303(0x381)])(_0x405303(0x2fa)),_0x42b9d3=function(_0x537962){const _0x21bff7=_0x405303;return _0x537962[_0x537962['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x21bff7(0x16f),_0x537962[_0x537962['OTHER_CLIENTS_EDITING']=0x1]=_0x21bff7(0x188),_0x537962;}({});function _0x522c70(_0x1bb257){const _0x134cb6=_0x405303;var _0x45b1ee;return!!((_0x45b1ee=_0x1bb257['params'])!=null&&_0x45b1ee[_0x134cb6(0x40d)]);}let _0x52182c=new Set([_0x2ba48b['InsertSheetMutation']['id']]),_0x5a379f=new Set([_0x4d2eeb[_0x405303(0x439)]['id'],_0x4d2eeb[_0x405303(0x322)]['id'],_0x4d2eeb[_0x405303(0x29a)]['id'],_0x4d2eeb[_0x405303(0x340)]['id']]);function _0x5e0a87(_0x5cb25e,_0x48a77f=_0x52182c){const _0x5b61f6=_0x405303;let _0x359817=[];for(let _0x210760 of _0x5cb25e){if(_0x48a77f[_0x5b61f6(0x206)](_0x210760['id'])){if(_0x359817[_0x5b61f6(0x182)]>0x0)break;_0x359817[_0x5b61f6(0x1f4)](_0x210760);break;}if(_0x522c70(_0x210760)){if(_0x359817[_0x5b61f6(0x182)]>0x0)break;_0x359817[_0x5b61f6(0x1f4)](_0x210760);break;}_0x359817[_0x5b61f6(0x1f4)](_0x210760);}return _0x359817;}function _0x214201(_0x12617f,_0x5aac09,_0x402cd1,_0xcf2379,_0x287064){const _0x395d48=_0x405303;var _0x43719a,_0x24fa13;let _0x414823=_0x5e0a87(_0x12617f),_0x21d8e1=_0x287064[_0x395d48(0x2ec)](),_0x37f742=(_0x43719a=_0x21d8e1==null?void 0x0:_0x21d8e1['userID'])==null?_0x395d48(0x423):_0x43719a,_0x402102=(_0x24fa13=_0x21d8e1==null?void 0x0:_0x21d8e1[_0x395d48(0x29d)])==null?'unknown':_0x24fa13;return{'changeset':{'unitID':_0x5aac09,'type':(0x0,_0x20c203['mapDocumentTypeToUniverInstanceType'])(_0x402cd1[_0x395d48(0x28d)](_0x5aac09)),'baseRev':_0xcf2379[_0x395d48(0x3a0)](_0x5aac09),'revision':0x0,'userID':_0x37f742,'memberID':_0x402102,'mutations':_0x414823},'pendingMutations':_0x12617f[_0x395d48(0x33d)](_0x414823[_0x395d48(0x182)])};}let _0x41597a=_0x214201;function _0x17b28a(_0x469cee,_0x4fc762,_0x1b42f0,_0x52a870,_0x5dfeae){const _0x153914=_0x405303;var _0x3bc790,_0x350b1d;let _0x371d41=_0x5e0a87(_0x469cee,_0x5a379f),_0x24331b=_0x5dfeae[_0x153914(0x2ec)](),_0x15e05a=(_0x3bc790=_0x24331b==null?void 0x0:_0x24331b['userID'])==null?_0x153914(0x423):_0x3bc790,_0x13c5c=(_0x350b1d=_0x24331b==null?void 0x0:_0x24331b['memberID'])==null?_0x153914(0x423):_0x350b1d;return{'changeset':{'unitID':_0x4fc762,'type':(0x0,_0x20c203[_0x153914(0x3ff)])(_0x1b42f0[_0x153914(0x28d)](_0x4fc762)),'baseRev':_0x52a870[_0x153914(0x3a0)](_0x4fc762),'revision':0x0,'userID':_0x15e05a,'memberID':_0x13c5c,'mutations':_0x371d41},'pendingMutations':_0x469cee[_0x153914(0x33d)](_0x371d41[_0x153914(0x182)])};}function _0x48ec4c(_0x2560b9,_0x17ba61,_0x93bb06,_0x197aa6,_0x370484){const _0x1da597=_0x405303;var _0x38ebe6,_0x6e78f1;let _0x2874f3=_0x2560b9['reduce']((_0x33bc20,_0x3d389e)=>{const _0x5910e0=_0x4e8d;let _0x413bcb=_0x33bc20[_0x33bc20[_0x5910e0(0x182)]-0x1],{id:_0x18706b}=_0x413bcb==null?{}:_0x413bcb,{id:_0x15f87d,type:_0x3dd78d}=_0x3d389e,_0x3cf93f=_0x3d389e[_0x5910e0(0x329)];if(_0x18706b&&_0x18706b!==_0x15f87d)throw Error(_0x5910e0(0x221)+_0x18706b+_0x5910e0(0x11d)+_0x15f87d+'.');if(!_0x413bcb)return[{'id':_0x15f87d,'type':_0x3dd78d,'params':{'unitId':_0x3cf93f[_0x5910e0(0x29b)],'textRanges':_0x3cf93f['textRanges'],'actions':_0x3cf93f[_0x5910e0(0x208)]}}];let _0x287b09=_0x413bcb[_0x5910e0(0x329)];return _0x3152d8(_0x287b09,_0x3cf93f)?[..._0x33bc20['slice'](0x0,-0x1),{..._0x413bcb,'id':_0x15f87d,'type':_0x3dd78d,'params':{'unitId':_0x3cf93f[_0x5910e0(0x29b)],'textRanges':_0x3cf93f['textRanges'],'actions':_0x2d0b9f[_0x5910e0(0x28b)]['compose'](_0x287b09['actions'],_0x3cf93f[_0x5910e0(0x208)])}}]:[..._0x33bc20,{'id':_0x15f87d,'type':_0x3dd78d,'params':{'unitId':_0x3cf93f[_0x5910e0(0x29b)],'textRanges':_0x3cf93f['textRanges'],'actions':_0x3cf93f[_0x5910e0(0x208)]}}];},[]),_0x1c8a44=_0x370484['getCurrentUser'](),_0x5ae16d=(_0x38ebe6=_0x1c8a44==null?void 0x0:_0x1c8a44[_0x1da597(0x395)])==null?_0x1da597(0x423):_0x38ebe6,_0x32233f=(_0x6e78f1=_0x1c8a44==null?void 0x0:_0x1c8a44[_0x1da597(0x29d)])==null?'unknown':_0x6e78f1;return{'changeset':{'unitID':_0x17ba61,'type':(0x0,_0x20c203[_0x1da597(0x3ff)])(_0x93bb06[_0x1da597(0x28d)](_0x17ba61)),'baseRev':_0x197aa6[_0x1da597(0x3a0)](_0x17ba61),'revision':0x0,'userID':_0x5ae16d,'memberID':_0x32233f,'mutations':_0x2874f3},'pendingMutations':_0x2560b9[_0x1da597(0x33d)](_0x2560b9[_0x1da597(0x182)])};}function _0x3152d8(_0x2d1bb0,_0x2fd57e){const _0x27581e=_0x405303;return!_0x3e4fba(_0x2d1bb0)&&!_0x3e4fba(_0x2fd57e)&&_0x1dc32c(_0x2d1bb0[_0x27581e(0x208)],_0x2fd57e[_0x27581e(0x208)]);}function _0x3e4fba(_0x209722){const _0x2239a5=_0x405303;return _0x209722[_0x2239a5(0x1e2)]!==void 0x0;}function _0x1dc32c(_0x4f7b9b,_0xab6ba){return _0x4d6ee(_0x4f7b9b)&&_0x4d6ee(_0xab6ba)&&!_0x2c5b90(_0x4f7b9b)&&!_0x2c5b90(_0xab6ba)&&!_0x8f49b1(_0x4f7b9b)&&!_0x8f49b1(_0xab6ba);}function _0x4d6ee(_0x567ae3){const _0x5ae3c3=_0x405303;return _0x22c531(_0x567ae3)[_0x5ae3c3(0x231)](_0x19218e=>_0x1df95d(_0x19218e)&&_0x19218e['et']==='text-x');}function _0x8f49b1(_0x2558d2){const _0x814af2=_0x405303;return _0x22c531(_0x2558d2)['some'](_0x2fe275=>Array[_0x814af2(0x1a2)](_0x2fe275)||typeof _0x2fe275==_0x814af2(0x163)||typeof _0x2fe275=='number');}function _0x2c5b90(_0x37d401){const _0x737a02=_0x405303;return _0x22c531(_0x37d401)[_0x737a02(0x231)](_0x26d1c8=>!_0x1df95d(_0x26d1c8)||_0x26d1c8['et']!==_0x737a02(0x3bc)||!Array[_0x737a02(0x1a2)](_0x26d1c8['e'])?!0x1:_0x26d1c8['e'][_0x737a02(0x231)](_0x247799=>!_0x1df95d(_0x247799)||!_0x1df95d(_0x247799['body'])?!0x1:Object[_0x737a02(0xf2)][_0x737a02(0x1ca)][_0x737a02(0x2ed)](_0x247799[_0x737a02(0x43d)],_0x737a02(0x330))||Object[_0x737a02(0xf2)]['hasOwnProperty']['call'](_0x247799[_0x737a02(0x43d)],_0x737a02(0x386))||Object[_0x737a02(0xf2)][_0x737a02(0x1ca)][_0x737a02(0x2ed)](_0x247799[_0x737a02(0x43d)],_0x737a02(0x19d))));}function _0x22c531(_0x5c07ed){const _0x1d6d38=_0x405303;if(!Array[_0x1d6d38(0x1a2)](_0x5c07ed))return[];let _0x3d0591=_0x5c07ed['includes'](_0x1d6d38(0x43d))?_0x5c07ed:_0x5c07ed[_0x1d6d38(0x1e0)](_0x45ffd3=>Array[_0x1d6d38(0x1a2)](_0x45ffd3)&&_0x45ffd3[_0x1d6d38(0x281)](_0x1d6d38(0x43d)));if(!Array[_0x1d6d38(0x1a2)](_0x3d0591))return[];let _0x13c8be=_0x3d0591[_0x1d6d38(0x398)](_0x1d6d38(0x43d));return _0x13c8be===-0x1?[]:_0x3d0591[_0x1d6d38(0x33d)](_0x13c8be+0x1);}function _0x1df95d(_0x43f141){const _0x143d65=_0x405303;return typeof _0x43f141=='object'&&!!_0x43f141&&!Array[_0x143d65(0x1a2)](_0x43f141);}function _0x400b38(_0x1f0d72,_0x1ee56f){const _0x16f50f=_0x405303;let _0x26e8bc=new _0x31dca4[(_0x16f50f(0x388))](0x1);return setTimeout(()=>_0x26e8bc['next'](_0x1ee56f),_0x1f0d72),_0x26e8bc[_0x16f50f(0x41c)]()['pipe']((0x0,_0x31dca4[_0x16f50f(0x193)])(0x1));}var _0x22286d,_0x116285,_0x901199;let _0x1e7da3=function(_0xc99f67){const _0x4588f3=_0x405303;return _0xc99f67[_0x4588f3(0x147)]=_0x4588f3(0x13c),_0xc99f67['SYNCED']=_0x4588f3(0x11b),_0xc99f67['PENDING']=_0x4588f3(0xed),_0xc99f67[_0x4588f3(0x23d)]=_0x4588f3(0x403),_0xc99f67[_0x4588f3(0x175)]=_0x4588f3(0x2e6),_0xc99f67['FETCH_MISS']=_0x4588f3(0x20a),_0xc99f67[_0x4588f3(0x225)]=_0x4588f3(0x251),_0xc99f67['OFFLINE']=_0x4588f3(0x42b),_0xc99f67;}({}),_0x329193=0x4e20,_0x1f600d=0x2bf20;var _0x2a4010=class{constructor(_0x2b74eb,_0x269642,_0x31b0a4,_0x5e1c06,_0x5e449d,_0x4acb53,_0x2e8c77,_0x634a3e,_0x3e64ad){const _0x18f975=_0x405303;this[_0x18f975(0x1c9)]=_0x2b74eb,this[_0x18f975(0x24b)]=_0x269642,this[_0x18f975(0x327)]=_0x5e449d,this['_commandService']=_0x4acb53,this[_0x18f975(0x3c8)]=_0x2e8c77,this[_0x18f975(0x291)]=_0x634a3e,this[_0x18f975(0x161)]=_0x3e64ad,_0x4219eb(this,_0x18f975(0x419),null),_0x4219eb(this,_0x18f975(0x43c),[]),this[_0x18f975(0x419)]=_0x31b0a4,this[_0x18f975(0x43c)]=_0x5e1c06;}[_0x405303(0x31a)](_0x2615c2){const _0x48e3d7=_0x405303;let _0x1d67a9=this[_0x48e3d7(0x291)][_0x48e3d7(0x3a0)](this[_0x48e3d7(0x1c9)]);return _0x2615c2['revision']>_0x1d67a9+0x1?(this['_handler'][_0x48e3d7(0x431)]({'from':_0x1d67a9,'to':_0x2615c2['revision']-0x1}),!0x0):!0x1;}[_0x405303(0x3bd)](_0x2f2ca8){const _0x17f7c8=_0x405303;this[_0x17f7c8(0x3c8)][_0x17f7c8(0x312)](this[_0x17f7c8(0x1c9)],_0x2f2ca8);}[_0x405303(0x2a4)](_0x11703c){const _0x5cdbb5=_0x405303;var _0x139526,_0x6c6827;(_0x139526=(_0x6c6827=this[_0x5cdbb5(0x327)])[_0x5cdbb5(0x2de)])==null||_0x139526[_0x5cdbb5(0x2ed)](_0x6c6827,_0x11703c);}['_transformIMECache'](_0x3f496b){const _0x5a8804=_0x405303;var _0x5694e0,_0x3fb778;return(_0x5694e0=(_0x3fb778=this[_0x5a8804(0x327)])[_0x5a8804(0x1a6)])==null?void 0x0:_0x5694e0[_0x5a8804(0x2ed)](_0x3fb778,_0x3f496b);}['_transformStateCache'](_0x5d3e8e){const _0x3f283d=_0x405303;var _0x446a6d,_0x537f7e;return(_0x446a6d=(_0x537f7e=this['_handler'])[_0x3f283d(0x2f9)])==null?void 0x0:_0x446a6d[_0x3f283d(0x2ed)](_0x537f7e,_0x5d3e8e);}[_0x405303(0x430)](_0x3474f4){const _0x2b29ec=_0x405303;var _0x17a1fe,_0x212918,_0xf59fa7;return(_0x17a1fe=(_0x212918=(_0xf59fa7=this[_0x2b29ec(0x327)])[_0x2b29ec(0x1a7)])==null?void 0x0:_0x212918['call'](_0xf59fa7,_0x3474f4))==null?_0x3474f4:_0x17a1fe;}[_0x405303(0x286)](_0x16528d){const _0x3a14fe=_0x405303;var _0x21f8c6,_0xbddd88,_0x40a88f;return(_0x21f8c6=(_0xbddd88=(_0x40a88f=this[_0x3a14fe(0x327)])[_0x3a14fe(0x390)])==null?void 0x0:_0xbddd88[_0x3a14fe(0x2ed)](_0x40a88f,_0x16528d))==null?_0x16528d:_0x21f8c6;}[_0x405303(0x13b)](_0x1f7eca){const _0x4d4dbe=_0x405303;if(this['type']===_0x2d0b9f[_0x4d4dbe(0x341)][_0x4d4dbe(0x13a)]){let {unitID:_0x4d390b,mutations:_0x338089,memberID:_0x48fbbb}=_0x1f7eca,_0x188890=_0x338089['length']>0x0?_0x338089[0x0]['params']['textRanges']:[];if(Array[_0x4d4dbe(0x1a2)](_0x188890)&&_0x188890[_0x4d4dbe(0x182)]>0x0){var _0x302917,_0x4b29c8;(_0x302917=(_0x4b29c8=this[_0x4d4dbe(0x327)])[_0x4d4dbe(0x27d)])==null||_0x302917['call'](_0x4b29c8,{'unitID':_0x4d390b,'memberID':_0x48fbbb,'textRanges':_0x188890});}}}[_0x405303(0xee)](){const _0xa7721=_0x405303;var _0x1742e8;(_0x1742e8=this[_0xa7721(0x161)])==null||_0x1742e8[_0xa7721(0x2bf)](this['unitID'],this['type'],this[_0xa7721(0x419)],this[_0xa7721(0x43c)]);}[_0x405303(0x20e)](){const _0x154377=_0x405303;return this[_0x154377(0x291)][_0x154377(0x3a0)](this[_0x154377(0x1c9)]);}['_incrementRevisionNumber'](){const _0x35b725=_0x405303;this[_0x35b725(0x291)][_0x35b725(0x267)](this[_0x35b725(0x1c9)]);}[_0x405303(0x15e)](_0x3a820a){const _0x4fa3d=_0x405303;let _0x52d887=this[_0x4fa3d(0x430)](_0x3a820a);_0x52d887=this[_0x4fa3d(0x286)](_0x52d887);let _0x318acd=(0x0,_0x2d0b9f[_0x4fa3d(0x14a)])(_0x52d887[_0x4fa3d(0xf9)],this[_0x4fa3d(0xf5)],{'fromCollab':!0x0});if(!_0x318acd[_0x4fa3d(0x379)]){var _0x425ce0;throw _0x318acd[_0x4fa3d(0x2a9)]instanceof Error?_0x318acd[_0x4fa3d(0x2a9)]:Error((_0x425ce0=_0x318acd[_0x4fa3d(0x2a9)])==null?'[CollaborationState]:\x20apply\x20error!':_0x425ce0);}this[_0x4fa3d(0x184)](_0x52d887),this[_0x4fa3d(0x37f)](_0x52d887),this[_0x4fa3d(0x3bd)](_0x3a820a),this['_transformSelections'](_0x52d887),this[_0x4fa3d(0x13b)](_0x52d887),this[_0x4fa3d(0x1da)]();}};let _0x2b0eea=class extends _0x2a4010{constructor(_0x1b5f73,_0xd8c0b8,_0x1c99e1,_0x2d86d9,_0xfb1e01,_0x1fc31b,_0x59b002,_0x3e8cfc,_0xdd87d5,_0x56f921){const _0x5cd402=_0x405303;super(_0x1b5f73,_0xd8c0b8,null,[],_0x1c99e1,_0x59b002,_0x1fc31b,_0x2d86d9,_0x56f921),this[_0x5cd402(0x3ef)]=_0xfb1e01,this[_0x5cd402(0x3d5)]=_0x3e8cfc,this['_transformService']=_0xdd87d5,this[_0x5cd402(0x185)]=_0x56f921,_0x4219eb(this,_0x5cd402(0x1b9),'synced');}[_0x405303(0x3ae)](_0x2b57a7){const _0x3bfa05=_0x405303;let _0xe82823=this[_0x3bfa05(0x3ef)][_0x3bfa05(0x383)](_0x315789,this[_0x3bfa05(0x1c9)],this[_0x3bfa05(0x24b)],[_0x2b57a7],this[_0x3bfa05(0x327)]);return _0xe82823[_0x3bfa05(0x242)](),_0xe82823[_0x3bfa05(0xee)](),_0xe82823;}[_0x405303(0x3af)](_0x48a65e){const _0x3908a4=_0x405303;if(this[_0x3908a4(0x31a)](_0x48a65e))return this['_injector'][_0x3908a4(0x383)](_0x234be3,this[_0x3908a4(0x1c9)],this[_0x3908a4(0x24b)],null,[],null,[_0x48a65e],this[_0x3908a4(0x327)]);try{let _0x4fcd47=this[_0x3908a4(0x1f8)][_0x3908a4(0x30a)](_0x48a65e,[_0x20c203[_0x3908a4(0x167)]]);if((0x0,_0x20c203[_0x3908a4(0x3d8)])(_0x4fcd47)){let {c1Prime:_0x157706}=_0x4fcd47;return this['_executeRemoteChangeset'](_0x157706),this;}throw _0x4fcd47[_0x3908a4(0x2a9)];}catch(_0x5ae554){return this[_0x3908a4(0x3d5)][_0x3908a4(0x2a9)](_0x5ae554),this['_onConflict'](!0x1);}}[_0x405303(0x414)](_0x812c0b){const _0x4b5c8e=_0x405303;return this['_injector'][_0x4b5c8e(0x383)](_0x1af009,this[_0x4b5c8e(0x1c9)],this['type'],null,[],this[_0x4b5c8e(0x327)],_0x812c0b);}['onRemoteAck'](_0x1ad8ac){const _0x2ff8c5=_0x405303;if(_0x1ad8ac[_0x2ff8c5(0x371)]<=this[_0x2ff8c5(0x20e)]())return this;throw Error(_0x2ff8c5(0x119));}['onRemoteRej'](){const _0xa709dd=_0x405303;throw Error(_0xa709dd(0x1d7));}[_0x405303(0x186)](){return this;}[_0x405303(0x11a)](){const _0x239253=_0x405303;return this[_0x239253(0x3ef)]['createInstance'](_0x3b0e9a,this[_0x239253(0x1c9)],this[_0x239253(0x24b)],null,[],this[_0x239253(0x327)]);}[_0x405303(0x3fe)](){return this;}[_0x405303(0x2b5)](){const _0x29f4eb=_0x405303;throw Error(_0x29f4eb(0x34b));}[_0x405303(0x2e8)](){const _0x236c24=_0x405303;let _0x518a75=this[_0x236c24(0x291)]['getCurrentRevOfUnit'](this[_0x236c24(0x1c9)]);return this['_handler'][_0x236c24(0x431)]({'from':_0x518a75,'to':0x0}),this[_0x236c24(0x3ef)][_0x236c24(0x383)](_0x234be3,this[_0x236c24(0x1c9)],this[_0x236c24(0x24b)],null,[],null,[],this[_0x236c24(0x327)]);}};_0x2b0eea=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f['Inject'])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x4,(0x0,_0x2d0b9f['Inject'])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x5,_0x2d0b9f['IUndoRedoService']),_0x43549d(0x6,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0x7,_0x2d0b9f['ILogService']),_0x43549d(0x8,_0x20c203['ITransformService']),_0x43549d(0x9,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0x2b0eea);let _0x315789=_0x22286d=class extends _0x2a4010{constructor(_0x20920e,_0x493674,_0x570bfb,_0x5b8a95,_0x5c242a,_0x18afcd,_0x3b5b5b,_0x5ae011,_0x2bbc98,_0x507d5a,_0x33dc57,_0xcc55f5,_0x3849ff,_0x31721f){const _0x3908f5=_0x405303;super(_0x20920e,_0x493674,null,_0x570bfb,_0x5b8a95,_0x2bbc98,_0x3849ff,_0x18afcd,_0x31721f),this[_0x3908f5(0x3ef)]=_0x5c242a,this['_userManagerService']=_0x3b5b5b,this[_0x3908f5(0x3d5)]=_0x5ae011,this['_configService']=_0x507d5a,this['_transformService']=_0x33dc57,this[_0x3908f5(0x347)]=_0xcc55f5,_0x4219eb(this,'status',_0x3908f5(0xed)),_0x4219eb(this,_0x3908f5(0x287),null),_0x4219eb(this,_0x3908f5(0x1e5),null);}['appendMutation'](_0x130324){const _0x4963d1=_0x405303;return this[_0x4963d1(0x43c)]['push'](_0x130324),this[_0x4963d1(0xee)](),this;}['onRemoteChangeset'](_0xd5fb4c){const _0x5aa233=_0x405303;if(this[_0x5aa233(0x31a)](_0xd5fb4c))return this[_0x5aa233(0x1b0)](),this[_0x5aa233(0x3ef)][_0x5aa233(0x383)](_0x234be3,this[_0x5aa233(0x1c9)],this['type'],null,this[_0x5aa233(0x43c)],null,[_0xd5fb4c],this[_0x5aa233(0x327)]);try{let _0x394644=this[_0x5aa233(0x1f8)][_0x5aa233(0x30a)](_0xd5fb4c,this[_0x5aa233(0x43c)]);if((0x0,_0x20c203[_0x5aa233(0x3d8)])(_0x394644)){let {c1Prime:_0x42ad42,m2Prime:_0x344b1e}=_0x394644;this[_0x5aa233(0x15e)](_0x42ad42);let _0x18f08f=this[_0x5aa233(0x3ef)][_0x5aa233(0x383)](_0x22286d,this[_0x5aa233(0x1c9)],this[_0x5aa233(0x24b)],_0x344b1e,this[_0x5aa233(0x327)]);this['_clearScheduledTask']();let _0x468ff5=new Date()[_0x5aa233(0x3f9)](),_0x5db9c8=this['_scheduleCompleteTimestamp']?Math['max'](this[_0x5aa233(0x287)]-_0x468ff5,0x0):this[_0x5aa233(0x3a6)]();return _0x18f08f['_schedule'](_0x5db9c8),_0x18f08f;}throw _0x394644[_0x5aa233(0x2a9)];}catch(_0x20e9ee){return this[_0x5aa233(0x3d5)][_0x5aa233(0x2a9)](_0x20e9ee),this['_onConflict'](!0x1);}}[_0x405303(0xfb)](_0x51d1d6){const _0x10a037=_0x405303;if(_0x51d1d6['revision']<=this[_0x10a037(0x20e)]())return this;throw Error(_0x10a037(0x12d));}[_0x405303(0x1f2)](){throw Error('[PendingState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x405303(0x11a)](){const _0x22d884=_0x405303;return this[_0x22d884(0x1b0)](),this[_0x22d884(0x3ef)][_0x22d884(0x383)](_0x3b0e9a,this[_0x22d884(0x1c9)],this[_0x22d884(0x24b)],null,this[_0x22d884(0x43c)],this[_0x22d884(0x327)]);}[_0x405303(0x3fe)](){return this;}['_schedule'](_0x28281d){const _0x364cc7=_0x405303;let _0x4e3a4e=_0x28281d==null?this[_0x364cc7(0x3a6)]():_0x28281d;this[_0x364cc7(0x287)]=new Date()[_0x364cc7(0x3f9)]()+_0x4e3a4e,this[_0x364cc7(0x1e5)]=setTimeout(()=>{const _0x791f21=_0x364cc7;this[_0x791f21(0x1b0)]();let _0x2d4ba2=null;switch(this['type']){case _0x2d0b9f[_0x791f21(0x341)][_0x791f21(0x378)]:_0x2d4ba2=_0x214201(this[_0x791f21(0x43c)],this[_0x791f21(0x1c9)],this[_0x791f21(0x347)],this[_0x791f21(0x291)],this[_0x791f21(0x212)]);break;case _0x2d0b9f[_0x791f21(0x341)][_0x791f21(0x13a)]:_0x2d4ba2=this[_0x791f21(0x43c)][_0x791f21(0x16e)](_0x31a742=>_0x31a742['id']===_0x33f3ff[_0x791f21(0x19f)]['id'])?_0x48ec4c(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x791f21(0x291)],this['_userManagerService']):_0x214201(this[_0x791f21(0x43c)],this[_0x791f21(0x1c9)],this[_0x791f21(0x347)],this['_revisionService'],this[_0x791f21(0x212)]);break;case _0x2d0b9f[_0x791f21(0x341)][_0x791f21(0x358)]:_0x2d4ba2=_0x17b28a(this[_0x791f21(0x43c)],this[_0x791f21(0x1c9)],this[_0x791f21(0x347)],this[_0x791f21(0x291)],this['_userManagerService']);break;case _0x2d0b9f[_0x791f21(0x341)][_0x791f21(0x31e)]:_0x2d4ba2=_0x41597a(this[_0x791f21(0x43c)],this[_0x791f21(0x1c9)],this[_0x791f21(0x347)],this[_0x791f21(0x291)],this[_0x791f21(0x212)]);break;case _0x2d0b9f[_0x791f21(0x341)][_0x791f21(0x333)]:_0x2d4ba2=_0x214201(this[_0x791f21(0x43c)],this[_0x791f21(0x1c9)],this['_univerInstanceService'],this['_revisionService'],this[_0x791f21(0x212)]);break;case _0x2d0b9f[_0x791f21(0x341)]['UNIVER_BASE']:_0x2d4ba2=_0x214201(this['_pendingMutations'],this[_0x791f21(0x1c9)],this[_0x791f21(0x347)],this[_0x791f21(0x291)],this[_0x791f21(0x212)]);break;default:throw Error(_0x791f21(0x14f)+this[_0x791f21(0x24b)]+_0x791f21(0x325));}let {changeset:_0x282db7,pendingMutations:_0x5cac6b}=_0x2d4ba2;this[_0x791f21(0x327)][_0x791f21(0x244)](_0x282db7);let _0x22ecd5=_0x5cac6b[_0x791f21(0x182)]?this[_0x791f21(0x3ef)][_0x791f21(0x383)](_0x49c582,this[_0x791f21(0x1c9)],this[_0x791f21(0x24b)],_0x282db7,_0x5cac6b,this[_0x791f21(0x327)],void 0x0):this[_0x791f21(0x3ef)][_0x791f21(0x383)](_0xe05e0d,this['unitID'],this[_0x791f21(0x24b)],_0x282db7,this[_0x791f21(0x327)]);_0x22ecd5['_updateLocalCache'](),this[_0x791f21(0x327)]['onStateChange'](this,_0x22ecd5);},_0x4e3a4e);}[_0x405303(0x3a6)](){const _0x433941=_0x405303;var _0x4d07cc;let _0x4ea5a2=this[_0x433941(0x3d2)][_0x433941(0x112)](_0x51e182);return(_0x4d07cc=_0x4ea5a2==null?void 0x0:_0x4ea5a2[_0x433941(0x250)])==null?0x7d0:_0x4d07cc;}['resend'](){const _0x2935b6=_0x405303;throw Error(_0x2935b6(0x270));}[_0x405303(0x1b0)](){const _0x5ccc75=_0x405303;this[_0x5ccc75(0x1e5)]!=null&&(clearTimeout(this[_0x5ccc75(0x1e5)]),this[_0x5ccc75(0x1e5)]=null);}['_onConflict'](_0x2b5639){const _0x5e0cd4=_0x405303;return this[_0x5e0cd4(0x1b0)](),this['_injector'][_0x5e0cd4(0x383)](_0x1af009,this[_0x5e0cd4(0x1c9)],this[_0x5e0cd4(0x24b)],null,this[_0x5e0cd4(0x43c)],this[_0x5e0cd4(0x327)],_0x2b5639);}};_0x315789=_0x22286d=_0x3934d9([_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f['UserManagerService'])),_0x43549d(0x7,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0x8,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x346)]),_0x43549d(0xa,_0x20c203[_0x405303(0x23e)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0x217)]),_0x43549d(0xc,_0x2d0b9f[_0x405303(0xf4)]),_0x43549d(0xd,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0x315789);let _0xe05e0d=_0x116285=class extends _0x2a4010{constructor(_0x3a8e68,_0x2433f3,_0xb83111,_0x1801e9,_0xdae908,_0x20a2a5,_0x8d7c42,_0x30466b,_0x4f4e4c,_0x2fee35,_0x342bde){const _0x126d1c=_0x405303;super(_0x3a8e68,_0x2433f3,_0xb83111,[],_0x1801e9,_0x8d7c42,_0x2fee35,_0x20a2a5,_0x342bde),this[_0x126d1c(0x3ef)]=_0xdae908,this[_0x126d1c(0x3d5)]=_0x30466b,this['_transformService']=_0x4f4e4c,_0x4219eb(this,_0x126d1c(0x1b9),_0x126d1c(0x403)),_0x4219eb(this,_0x126d1c(0x159),0x0),_0x4219eb(this,_0x126d1c(0x3a1),0x0),_0x4219eb(this,'_resendTimer',void 0x0),_0x4219eb(this,'_sender',void 0x0);}[_0x405303(0x3ae)](_0x1a3ebd){const _0x14c6bf=_0x405303;this[_0x14c6bf(0x1b0)]();let _0x37d8f6=this[_0x14c6bf(0x3ef)][_0x14c6bf(0x383)](_0x49c582,this[_0x14c6bf(0x1c9)],this[_0x14c6bf(0x24b)],this[_0x14c6bf(0x419)],[_0x1a3ebd],this['_handler'],this[_0x14c6bf(0x335)]);return _0x37d8f6['_updateLocalCache'](),_0x37d8f6;}[_0x405303(0x3af)](_0x16f79f){const _0x363092=_0x405303;if(this[_0x363092(0x31a)](_0x16f79f))return this['_clearScheduledTask'](),this[_0x363092(0x3ef)][_0x363092(0x383)](_0x234be3,this[_0x363092(0x1c9)],this[_0x363092(0x24b)],this['_awaitingChangeset'],[],null,[_0x16f79f],this[_0x363092(0x327)]);try{let _0x520efd=this['_transformService']['transformChangesets']([_0x16f79f],[this[_0x363092(0x419)]],!0x1);if((0x0,_0x20c203[_0x363092(0x35b)])(_0x520efd)){let {c1Prime:_0x5b3256,c2Prime:_0x2beee4}=_0x520efd;this[_0x363092(0x15e)](_0x5b3256[0x0]),_0x2beee4[0x0]['baseRev']=this[_0x363092(0x20e)](),this[_0x363092(0x1b0)]();let _0x45b275=this[_0x363092(0x3ef)][_0x363092(0x383)](_0x116285,this[_0x363092(0x1c9)],this[_0x363092(0x24b)],_0x2beee4[0x0],this[_0x363092(0x327)]);return _0x45b275['_updateLocalCache'](),_0x45b275;}throw _0x520efd[_0x363092(0x2a9)];}catch(_0x41d929){return this[_0x363092(0x3d5)][_0x363092(0x2a9)](_0x41d929),this[_0x363092(0x414)](!0x1);}}[_0x405303(0xfb)](_0x56ec97){const _0x55a3df=_0x405303;this[_0x55a3df(0x1b0)]();let _0x1ea7bc=this[_0x55a3df(0x291)][_0x55a3df(0x3a0)](this[_0x55a3df(0x1c9)]);if(_0x56ec97[_0x55a3df(0x371)]<=_0x1ea7bc)return this;if(this[_0x55a3df(0x31a)](_0x56ec97))return this['_injector'][_0x55a3df(0x383)](_0x234be3,this['unitID'],this[_0x55a3df(0x24b)],this[_0x55a3df(0x419)],[],_0x56ec97['revision'],[],this[_0x55a3df(0x327)]);this[_0x55a3df(0x1da)]();let _0x27ac27=this[_0x55a3df(0x3ef)][_0x55a3df(0x383)](_0x2b0eea,this[_0x55a3df(0x1c9)],this[_0x55a3df(0x24b)],this['_handler']);return _0x27ac27[_0x55a3df(0xee)](),_0x27ac27;}[_0x405303(0x1f2)](_0x2aa8f6){const _0x5d7b97=_0x405303;return this['_onConflict'](!!(_0x2aa8f6!=null&&_0x2aa8f6[_0x5d7b97(0x3b8)]));}['onRemoteRetry'](_0x288e1d){const _0x5f0e0d=_0x405303;return this[_0x5f0e0d(0x3a1)]>_0x1f600d?this[_0x5f0e0d(0x11a)]():(this[_0x5f0e0d(0x335)]=_0x400b38(this[_0x5f0e0d(0x159)],{'timeout':this[_0x5f0e0d(0x159)],'reqId':_0x288e1d['reqId']}),this['_sender']=this['_resendTimer'][_0x5f0e0d(0x120)](({reqId:_0x183897,timeout:_0x475e0a})=>{this['_resendWithTimeout'](_0x183897,_0x475e0a);}),this);}[_0x405303(0x11a)](){const _0x386a31=_0x405303;return this[_0x386a31(0x1b0)](),this[_0x386a31(0x3ef)][_0x386a31(0x383)](_0x3b0e9a,this['unitID'],this[_0x386a31(0x24b)],this[_0x386a31(0x419)],[],this[_0x386a31(0x327)]);}['toggleOnline'](){return this;}[_0x405303(0x2b5)](){const _0x24aa4b=_0x405303;this[_0x24aa4b(0x327)][_0x24aa4b(0x244)](this[_0x24aa4b(0x419)]);}['_onConflict'](_0x9194ed){const _0x1fd0e2=_0x405303;return this['_clearScheduledTask'](),this['_injector'][_0x1fd0e2(0x383)](_0x1af009,this[_0x1fd0e2(0x1c9)],this[_0x1fd0e2(0x24b)],this[_0x1fd0e2(0x419)],[],this['_handler'],_0x9194ed);}['_resendWithTimeout'](_0x2d61c4,_0x5765e5){const _0x466888=_0x405303;var _0x2a0e2e;_0x2d61c4===((_0x2a0e2e=this[_0x466888(0x419)])==null?void 0x0:_0x2a0e2e[_0x466888(0x387)])&&(this[_0x466888(0x2b5)](),this[_0x466888(0x159)]=_0x5765e5===0x0?0x3e8:Math[_0x466888(0x38b)](_0x5765e5*0x2,_0x329193),this[_0x466888(0x3a1)]+=this[_0x466888(0x159)]);}['_clearScheduledTask'](){const _0x3f4942=_0x405303;var _0x1c528a;(_0x1c528a=this['_sender'])==null||_0x1c528a[_0x3f4942(0x3e8)](),this['_resendTimeout']=0x0,this[_0x3f4942(0x3a1)]=0x0;}};_0xe05e0d=_0x116285=_0x3934d9([_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x5,(0x0,_0x2d0b9f['Inject'])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x6,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0x7,_0x2d0b9f['ILogService']),_0x43549d(0x8,_0x20c203[_0x405303(0x23e)]),_0x43549d(0x9,_0x2d0b9f[_0x405303(0xf4)]),_0x43549d(0xa,(0x0,_0x2d0b9f['Optional'])(_0x3e00f7))],_0xe05e0d);let _0x49c582=_0x901199=class extends _0x2a4010{constructor(_0x247fbb,_0x235a77,_0x1dcfc3,_0x562b7e,_0x4e4373,_0x5097b0,_0x47ca14,_0x4b86bd,_0x47bd03,_0x4a752a,_0x53d864,_0x184c92,_0x2ae8ee){const _0x2a2fd8=_0x405303;super(_0x247fbb,_0x235a77,_0x1dcfc3,_0x562b7e,_0x4e4373,_0x47bd03,_0x184c92,_0x4b86bd,_0x2ae8ee),this['_injector']=_0x47ca14,this[_0x2a2fd8(0x3d5)]=_0x4a752a,this[_0x2a2fd8(0x1f8)]=_0x53d864,this[_0x2a2fd8(0x185)]=_0x2ae8ee,_0x4219eb(this,_0x2a2fd8(0x1b9),_0x2a2fd8(0x2e6)),_0x4219eb(this,_0x2a2fd8(0x159),0x0),_0x4219eb(this,_0x2a2fd8(0x3a1),0x0),_0x4219eb(this,_0x2a2fd8(0x335),void 0x0),_0x4219eb(this,_0x2a2fd8(0x21d),void 0x0),_0x5097b0&&(this[_0x2a2fd8(0x335)]=_0x5097b0,this[_0x2a2fd8(0x21d)]=this[_0x2a2fd8(0x335)][_0x2a2fd8(0x120)](({reqId:_0x6846ba,timeout:_0x3ca1e8})=>{const _0x4c9500=_0x2a2fd8;this[_0x4c9500(0x30e)](_0x6846ba,_0x3ca1e8);}));}[_0x405303(0x3ae)](_0x50f5ee){const _0x519e99=_0x405303;return this['_pendingMutations'][_0x519e99(0x1f4)](_0x50f5ee),this;}['onRemoteChangeset'](_0x4bf13d){const _0x4cc937=_0x405303;if(this[_0x4cc937(0x31a)](_0x4bf13d))return this[_0x4cc937(0x1b0)](),this[_0x4cc937(0x3ef)][_0x4cc937(0x383)](_0x234be3,this[_0x4cc937(0x1c9)],this[_0x4cc937(0x24b)],this[_0x4cc937(0x419)],this['_pendingMutations'],null,[_0x4bf13d],this[_0x4cc937(0x327)]);try{let _0x4b170c=this[_0x4cc937(0x1f8)][_0x4cc937(0x3a7)]([_0x4bf13d],[this[_0x4cc937(0x419)]],!0x1);if((0x0,_0x20c203[_0x4cc937(0x35b)])(_0x4b170c)){let {c1Prime:_0x2868a7,c2Prime:_0x1fb5f6}=_0x4b170c,_0x537a99=this[_0x4cc937(0x1f8)]['transformMutationsWithChangeset'](_0x2868a7[0x0],this['_pendingMutations']);if((0x0,_0x20c203[_0x4cc937(0x3d8)])(_0x537a99)){let {c1Prime:_0x262582,m2Prime:_0x15c0e6}=_0x537a99;return this[_0x4cc937(0x15e)](_0x262582),_0x1fb5f6[0x0][_0x4cc937(0x33b)]=this['_getCurrentRevision'](),this['_clearScheduledTask'](),this[_0x4cc937(0x3ef)][_0x4cc937(0x383)](_0x901199,this[_0x4cc937(0x1c9)],this[_0x4cc937(0x24b)],_0x1fb5f6[0x0],_0x15c0e6,this['_handler'],void 0x0);}throw _0x537a99[_0x4cc937(0x2a9)];}throw _0x4b170c[_0x4cc937(0x2a9)];}catch(_0x323eda){return this[_0x4cc937(0x3d5)][_0x4cc937(0x2a9)](_0x323eda),this[_0x4cc937(0x414)](!0x1);}}[_0x405303(0xfb)](_0x5ec125){const _0x87b2ef=_0x405303;this['_clearScheduledTask']();let _0x415714=this[_0x87b2ef(0x20e)]();if(_0x5ec125['revision']<=_0x415714)return this;if(this[_0x87b2ef(0x31a)](_0x5ec125))return this['_injector'][_0x87b2ef(0x383)](_0x234be3,this[_0x87b2ef(0x1c9)],this[_0x87b2ef(0x24b)],this[_0x87b2ef(0x419)],this[_0x87b2ef(0x43c)],_0x5ec125[_0x87b2ef(0x371)],[],this['_handler']);this['_incrementRevisionNumber']();let _0x3b102d=this[_0x87b2ef(0x3ef)][_0x87b2ef(0x383)](_0x315789,this[_0x87b2ef(0x1c9)],this[_0x87b2ef(0x24b)],this[_0x87b2ef(0x43c)],this[_0x87b2ef(0x327)]);return _0x3b102d['_schedule'](),_0x3b102d[_0x87b2ef(0xee)](),_0x3b102d;}[_0x405303(0x1f2)](_0x1ba15b){const _0x44011f=_0x405303;return this[_0x44011f(0x414)](!!(_0x1ba15b!=null&&_0x1ba15b['isPermissionRej']));}[_0x405303(0x186)](_0x2c6b94){const _0x39404c=_0x405303;return this['_maxTotalRetryTimeout']>_0x1f600d?this[_0x39404c(0x11a)]():(this[_0x39404c(0x335)]=_0x400b38(this[_0x39404c(0x159)],{'timeout':this['_resendTimeout'],'reqId':_0x2c6b94[_0x39404c(0x387)]}),this[_0x39404c(0x21d)]=this[_0x39404c(0x335)][_0x39404c(0x120)](({reqId:_0x4c834d,timeout:_0x25e69e})=>{const _0x4e0d11=_0x39404c;this[_0x4e0d11(0x30e)](_0x4c834d,_0x25e69e);}),this);}['toggleOffline'](){const _0x358a61=_0x405303;return this[_0x358a61(0x1b0)](),this[_0x358a61(0x3ef)][_0x358a61(0x383)](_0x3b0e9a,this['unitID'],this[_0x358a61(0x24b)],this[_0x358a61(0x419)],this['_pendingMutations'],this['_handler']);}['toggleOnline'](){return this;}[_0x405303(0x2b5)](){const _0x37d725=_0x405303;this[_0x37d725(0x327)][_0x37d725(0x244)](this[_0x37d725(0x419)]);}['_onConflict'](_0x14f2af){const _0x3642a2=_0x405303;return this[_0x3642a2(0x1b0)](),this[_0x3642a2(0x3ef)]['createInstance'](_0x1af009,this['unitID'],this['type'],null,this[_0x3642a2(0x43c)],this[_0x3642a2(0x327)],_0x14f2af);}[_0x405303(0x30e)](_0x1aed2c,_0x35424e){const _0xcbe5fa=_0x405303;var _0x452c1c;_0x1aed2c===((_0x452c1c=this[_0xcbe5fa(0x419)])==null?void 0x0:_0x452c1c['reqId'])&&(this[_0xcbe5fa(0x2b5)](),this['_resendTimeout']=_0x35424e===0x0?0x3e8:Math[_0xcbe5fa(0x38b)](_0x35424e*0x2,_0x329193),this['_maxTotalRetryTimeout']+=this[_0xcbe5fa(0x159)]);}['_clearScheduledTask'](){const _0x49f929=_0x405303;var _0x5732a8;(_0x5732a8=this[_0x49f929(0x21d)])==null||_0x5732a8[_0x49f929(0x3e8)](),this[_0x49f929(0x159)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x49c582=_0x901199=_0x3934d9([_0x43549d(0x6,(0x0,_0x2d0b9f['Inject'])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x7,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203['RevisionService'])),_0x43549d(0x8,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0x9,_0x2d0b9f['ILogService']),_0x43549d(0xa,_0x20c203[_0x405303(0x23e)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0xf4)]),_0x43549d(0xc,(0x0,_0x2d0b9f['Optional'])(_0x3e00f7))],_0x49c582);let _0x1af009=class extends _0x2a4010{constructor(_0x7abab4,_0x1037a1,_0x12b11a,_0x27c9d4,_0x50697a,_0x3bdbfb=!0x1,_0x2cb76e,_0x4ec939,_0x38b456,_0x3c65b6,_0x1c4573,_0x4ca65b,_0x3e9a50){const _0x260a6c=_0x405303;super(_0x7abab4,_0x1037a1,_0x12b11a,_0x27c9d4,_0x50697a,_0x4ec939,_0x38b456,_0x3c65b6,_0x3e9a50),this[_0x260a6c(0x3b2)]=_0x3bdbfb,this[_0x260a6c(0x2cd)]=_0x2cb76e,this[_0x260a6c(0x1d3)]=_0x1c4573,this[_0x260a6c(0x214)]=_0x4ca65b,this[_0x260a6c(0x185)]=_0x3e9a50,_0x4219eb(this,_0x260a6c(0x1b9),_0x260a6c(0x251)),this['_showConflictNotification'](),this['_clearLocalCache'](),this[_0x260a6c(0x2d8)]();}['appendMutation'](){return this;}[_0x405303(0x3af)](){return this;}[_0x405303(0xfb)](){return this;}[_0x405303(0x1f2)](){return this;}[_0x405303(0x186)](){return this;}[_0x405303(0x11a)](){return this;}[_0x405303(0x3fe)](){return this;}['resend'](){const _0x5b3514=_0x405303;throw Error(_0x5b3514(0x2b8));}[_0x405303(0x3a3)](){const _0x5775ab=_0x405303;var _0x35bfef,_0x270c56,_0x1e9405;(_0x35bfef=this['_localCacheService'])==null||(_0x270c56=_0x35bfef[_0x5775ab(0x35c)])==null||(_0x270c56=_0x270c56[_0x5775ab(0x2ed)](_0x35bfef,this['unitID'],_0x5775ab(0x251)))==null||_0x270c56['catch'](()=>void 0x0),(_0x1e9405=this[_0x5775ab(0x161)])==null||_0x1e9405[_0x5775ab(0x2bf)](this[_0x5775ab(0x1c9)],this['type'],null,[]);}[_0x405303(0x171)](){const _0x2d3f1e=_0x405303;this['_isPermissionRej']?this[_0x2d3f1e(0x214)][_0x2d3f1e(0x31f)]({'id':_0x2d3f1e(0x421)}):this['_collaborationUIEventService']['emitEvent']({'id':'CONFLICT'});}[_0x405303(0x2d8)](){const _0x4c7106=_0x405303;this[_0x4c7106(0x2cd)][_0x4c7106(0x2ea)](new _0x2ba48b[(_0x4c7106(0x422))](this[_0x4c7106(0x1c9)])['id'],!0x1);}};_0x1af009=_0x3934d9([_0x43549d(0x6,(0x0,_0x2d0b9f['Inject'])(_0x2d0b9f[_0x405303(0x160)])),_0x43549d(0x7,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0x8,_0x2d0b9f[_0x405303(0xf4)]),_0x43549d(0x9,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0xa,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x39b)])),_0x43549d(0xb,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xa9d46c)),_0x43549d(0xc,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0x1af009);let _0x3b0e9a=class extends _0x2a4010{constructor(_0x4aeaa4,_0x3b0ee7,_0x51e776,_0x79d203,_0x59a8e3,_0x2337e5,_0x31dec8,_0x68c88c,_0x39902f,_0x4794b7){const _0x1d60a8=_0x405303;super(_0x4aeaa4,_0x3b0ee7,_0x51e776,_0x79d203,_0x59a8e3,_0x68c88c,_0x39902f,_0x31dec8,_0x4794b7),this[_0x1d60a8(0x3ef)]=_0x2337e5,_0x4219eb(this,_0x1d60a8(0x1b9),_0x1d60a8(0x42b));}[_0x405303(0x3ae)](_0x565ca8){const _0x4ed494=_0x405303;return this[_0x4ed494(0x43c)][_0x4ed494(0x1f4)](_0x565ca8),this[_0x4ed494(0xee)](),this;}[_0x405303(0x3af)](_0xf79ac8){const _0xba07f6=_0x405303;throw Error(_0xba07f6(0x170));}[_0x405303(0xfb)](){const _0x3aff2a=_0x405303;throw Error(_0x3aff2a(0x324));}[_0x405303(0x1f2)](){const _0x12e428=_0x405303;throw Error(_0x12e428(0x399));}[_0x405303(0x186)](){return this;}[_0x405303(0x11a)](){return this;}[_0x405303(0x3fe)](){const _0x11d634=_0x405303;let {_injector:_0x30b5c8,_pendingMutations:_0x30ab98,_awaitingChangeset:_0x19e06b,unitID:_0x1ae4b6,_handler:_0x5070d4,type:_0x208d85}=this,_0x32419d=_0x1b1927(_0x30b5c8,_0x1ae4b6,_0x208d85,_0x19e06b,_0x30ab98,_0x5070d4);return _0x32419d instanceof _0x315789?_0x32419d[_0x11d634(0x242)]():(_0x32419d instanceof _0x49c582||_0x32419d instanceof _0xe05e0d)&&_0x32419d[_0x11d634(0x2b5)](),_0x32419d;}['resend'](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x3b0e9a=_0x3934d9([_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x7,_0x2d0b9f['ICommandService']),_0x43549d(0x8,_0x2d0b9f[_0x405303(0xf4)]),_0x43549d(0x9,(0x0,_0x2d0b9f['Optional'])(_0x3e00f7))],_0x3b0e9a);let _0x234be3=class extends _0x2a4010{constructor(_0x5dd07f,_0x2593f4,_0x207133,_0x1b2ed4,_0x1210b8,_0x3d94ea,_0x2fc0ac,_0x54f78c,_0x3bb81b,_0x46b1a6,_0x1198f8,_0x5beb64,_0x531540,_0x216b40){const _0x43def0=_0x405303;super(_0x5dd07f,_0x2593f4,_0x207133,_0x1b2ed4,_0x2fc0ac,_0x1198f8,_0x5beb64,_0x3bb81b,_0x216b40),this[_0x43def0(0x207)]=_0x1210b8,this['_queuedRemoteChangesets']=_0x3d94ea,this[_0x43def0(0x3ef)]=_0x54f78c,this[_0x43def0(0x3d5)]=_0x46b1a6,this[_0x43def0(0x1f8)]=_0x531540,this['localCacheService']=_0x216b40,_0x4219eb(this,'status','fetch_missing');}['onMissedChangesetFetched'](_0x4cb589){const _0x267d24=_0x405303;try{if(this[_0x267d24(0x304)](_0x4cb589)[_0x267d24(0x3ed)])throw Error(_0x267d24(0x39e));if(this[_0x267d24(0x304)]([...this[_0x267d24(0x2fc)]][_0x267d24(0x2c0)]((_0x29f9be,_0x2e04c1)=>_0x29f9be[_0x267d24(0x371)]-_0x2e04c1[_0x267d24(0x371)]))[_0x267d24(0x3ed)])return this[_0x267d24(0x2fc)]=[],this['_updateLocalCache'](),this[_0x267d24(0x327)]['onMissingChangesets']({'from':this[_0x267d24(0x20e)](),'to':0x0}),this;let _0x2e8ad7=this[_0x267d24(0x419)],_0x5b16f5=this[_0x267d24(0x43c)],_0x21604d;if(_0x2e8ad7&&_0x5b16f5[_0x267d24(0x182)]!==0x0)_0x21604d=this['_injector'][_0x267d24(0x383)](_0x49c582,this[_0x267d24(0x1c9)],this[_0x267d24(0x24b)],_0x2e8ad7,_0x5b16f5,this[_0x267d24(0x327)],void 0x0);else{if(_0x2e8ad7&&_0x5b16f5[_0x267d24(0x182)]===0x0)_0x2e8ad7[_0x267d24(0x33b)]=this[_0x267d24(0x20e)](),_0x21604d=this['_injector'][_0x267d24(0x383)](_0xe05e0d,this[_0x267d24(0x1c9)],this[_0x267d24(0x24b)],_0x2e8ad7,this[_0x267d24(0x327)]);else{if(_0x5b16f5[_0x267d24(0x182)]!==0x0){let _0x3205b1=this['_injector']['createInstance'](_0x315789,this[_0x267d24(0x1c9)],this[_0x267d24(0x24b)],_0x5b16f5,this[_0x267d24(0x327)]);_0x3205b1[_0x267d24(0x242)](),_0x21604d=_0x3205b1;}else _0x21604d=this[_0x267d24(0x3ef)]['createInstance'](_0x2b0eea,this['unitID'],this[_0x267d24(0x24b)],this[_0x267d24(0x327)]);}}return _0x21604d[_0x267d24(0xee)](),_0x21604d;}catch(_0x4d5d84){return this['_logService'][_0x267d24(0x2a9)](_0x267d24(0x402),'failed\x20to\x20apply\x20missed\x20changesets!',_0x4d5d84),this[_0x267d24(0x3ef)]['createInstance'](_0x1af009,this[_0x267d24(0x1c9)],this[_0x267d24(0x24b)],this['_awaitingChangeset'],this[_0x267d24(0x43c)],this[_0x267d24(0x327)],!0x1);}}[_0x405303(0x304)](_0x2afd93){const _0x261e38=_0x405303;this[_0x261e38(0x12a)]();for(let _0x5ea11d=0x0;_0x5ea11d<_0x2afd93[_0x261e38(0x182)];_0x5ea11d++){let _0x1434ad=_0x2afd93[_0x5ea11d],_0x3f8acb=this[_0x261e38(0x20e)]();if(!(_0x1434ad[_0x261e38(0x371)]<=_0x3f8acb)){if(_0x1434ad[_0x261e38(0x371)]>_0x3f8acb+0x1)return{'missingChangesets':!0x0};if(this[_0x261e38(0x3d0)](_0x1434ad)){this[_0x261e38(0x266)]();continue;}this[_0x261e38(0x149)](_0x1434ad),this[_0x261e38(0x12a)]();}}return{'missingChangesets':!0x1};}[_0x405303(0x149)](_0x36b795){const _0x206922=_0x405303;let _0x3e6332=_0x36b795,_0x455c61=this[_0x206922(0x419)];if(_0x455c61){let _0x1cf7b9=this[_0x206922(0x1f8)][_0x206922(0x3a7)]([_0x36b795],[_0x455c61],!0x1);if(!(0x0,_0x20c203[_0x206922(0x35b)])(_0x1cf7b9))throw _0x1cf7b9[_0x206922(0x2a9)];_0x3e6332=_0x1cf7b9[_0x206922(0x2c3)][0x0],_0x455c61=_0x1cf7b9[_0x206922(0x382)][0x0];}let _0xf8b50f=this[_0x206922(0x43c)];if(_0xf8b50f['length']){let _0x1eedf8=this['_transformService'][_0x206922(0x30a)](_0x3e6332,_0xf8b50f);if(!(0x0,_0x20c203['isTransformMutationsWithChangesetSuccess'])(_0x1eedf8))throw _0x1eedf8[_0x206922(0x2a9)];_0x3e6332=_0x1eedf8['c1Prime'],_0xf8b50f=_0x1eedf8[_0x206922(0x36d)];}this[_0x206922(0x15e)](_0x3e6332),_0x455c61&&(_0x455c61[_0x206922(0x33b)]=this['_getCurrentRevision']()),this[_0x206922(0x419)]=_0x455c61,this[_0x206922(0x43c)]=_0xf8b50f;}[_0x405303(0x12a)](){const _0x1228c6=_0x405303;if(!this[_0x1228c6(0x419)]||this[_0x1228c6(0x207)]==null)return;let _0x2233ed=this['_getCurrentRevision']();if(this['_acknowledgedAwaitingRevision']<=_0x2233ed)throw Error(_0x1228c6(0x282)+this['_acknowledgedAwaitingRevision']+'.');this[_0x1228c6(0x207)]===_0x2233ed+0x1&&this[_0x1228c6(0x266)]();}[_0x405303(0x266)](){const _0x1209ef=_0x405303;this['_incrementRevisionNumber'](),this['_awaitingChangeset']=null,this[_0x1209ef(0x207)]=null;}[_0x405303(0x3d0)](_0x4c7b52){const _0xe0c665=_0x405303;let _0x129b4e=this[_0xe0c665(0x419)];return!_0x129b4e||!_0x129b4e[_0xe0c665(0x15d)]||_0x129b4e[_0xe0c665(0x387)]===null||_0x129b4e[_0xe0c665(0x387)]===void 0x0?!0x1:_0x4c7b52[_0xe0c665(0x1c9)]===_0x129b4e[_0xe0c665(0x1c9)]&&_0x4c7b52[_0xe0c665(0x15d)]===_0x129b4e[_0xe0c665(0x15d)]&&_0x4c7b52['reqId']===_0x129b4e[_0xe0c665(0x387)];}['resend'](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x3ae8c7){const _0x1faa09=_0x405303;return this[_0x1faa09(0x43c)][_0x1faa09(0x1f4)](_0x3ae8c7),this;}['onRemoteChangeset'](_0x25d29f){const _0x295aaf=_0x405303;return this[_0x295aaf(0x2fc)][_0x295aaf(0x1f4)](_0x25d29f),this;}[_0x405303(0xfb)](_0x213b30){const _0x3c9b25=_0x405303;if(this['_awaitingChangeset']){let _0x1a6e37=this[_0x3c9b25(0x20e)]();return _0x213b30[_0x3c9b25(0x371)]<=_0x1a6e37||(_0x1a6e37+0x1===_0x213b30[_0x3c9b25(0x371)]?(this[_0x3c9b25(0x1da)](),this[_0x3c9b25(0x419)]=null,this[_0x3c9b25(0x207)]=null):this['_acknowledgedAwaitingRevision']=_0x213b30[_0x3c9b25(0x371)]),this;}if(_0x213b30['revision']<=this[_0x3c9b25(0x20e)]())return this;throw Error(_0x3c9b25(0x180));}[_0x405303(0x1f2)](_0x570aa9){const _0x76cf6=_0x405303;return this[_0x76cf6(0x414)](!!(_0x570aa9!=null&&_0x570aa9[_0x76cf6(0x3b8)]));}[_0x405303(0x186)](){return this;}[_0x405303(0x11a)](){const _0x3dcb88=_0x405303;return this[_0x3dcb88(0x3ef)]['createInstance'](_0x3b0e9a,this[_0x3dcb88(0x1c9)],this[_0x3dcb88(0x24b)],this[_0x3dcb88(0x419)],this['_pendingMutations'],this[_0x3dcb88(0x327)]);}[_0x405303(0x3fe)](){return this;}[_0x405303(0x414)](_0x1a9433){const _0x41be97=_0x405303;return this[_0x41be97(0x3ef)][_0x41be97(0x383)](_0x1af009,this['unitID'],this['type'],this[_0x41be97(0x419)],this['_pendingMutations'],this[_0x41be97(0x327)],_0x1a9433);}};_0x234be3=_0x3934d9([_0x43549d(0x7,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x8,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x9,_0x2d0b9f['ILogService']),_0x43549d(0xa,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0xf4)]),_0x43549d(0xc,_0x20c203[_0x405303(0x23e)]),_0x43549d(0xd,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0x234be3);function _0x1b1927(_0x42b051,_0x25a73e,_0x3c3b7b,_0x288ea5,_0xf8dfbb,_0x571bd1){const _0x354aa8=_0x405303;return _0x288ea5&&_0xf8dfbb[_0x354aa8(0x182)]?_0x42b051[_0x354aa8(0x383)](_0x49c582,_0x25a73e,_0x3c3b7b,_0x288ea5,_0xf8dfbb,_0x571bd1,void 0x0):_0x288ea5?_0x42b051['createInstance'](_0xe05e0d,_0x25a73e,_0x3c3b7b,_0x288ea5,_0x571bd1):_0xf8dfbb[_0x354aa8(0x182)]?_0x42b051['createInstance'](_0x315789,_0x25a73e,_0x3c3b7b,_0xf8dfbb,_0x571bd1):_0x42b051[_0x354aa8(0x383)](_0x2b0eea,_0x25a73e,_0x3c3b7b,_0x571bd1);}let _0xfb921e=class extends _0x2d0b9f[_0x405303(0x16d)]{get['state'](){return this['_state'];}constructor(_0xe9e3fc,_0x18e404,_0x144474,_0x1ed0a2,_0x5e38a2,_0x134f67,_0x80fb76,_0x3cba4c,_0x19e9b0,_0x4f97fe,_0xc2b5e8,_0x2488d0,_0x3bc7bf,_0x6e2433){const _0x157383=_0x405303;super(),this[_0x157383(0x1c9)]=_0xe9e3fc,this[_0x157383(0x400)]=_0x18e404,this['_type']=_0x144474,this['_injector']=_0x1ed0a2,this['_compressMutationService']=_0x5e38a2,this[_0x157383(0x1d3)]=_0x134f67,this['_revisionService']=_0x80fb76,this[_0x157383(0x1e6)]=_0x3cba4c,this['_univerInstanceService']=_0x19e9b0,this[_0x157383(0x3d5)]=_0x4f97fe,this['_commandService']=_0xc2b5e8,this[_0x157383(0x2cd)]=_0x2488d0,this['_singleActiveUnitService']=_0x3bc7bf,this[_0x157383(0x161)]=_0x6e2433,_0x4219eb(this,_0x157383(0x128),new _0x31dca4[(_0x157383(0x31b))](null)),_0x4219eb(this,_0x157383(0x2c9),this[_0x157383(0x128)][_0x157383(0x41c)]()),_0x4219eb(this,_0x157383(0x42c),void 0x0),_0x4219eb(this,'_collaborationPaused',!0x1),_0x4219eb(this,_0x157383(0x12c),''),_0x4219eb(this,_0x157383(0x301),0x0),_0x4219eb(this,'status$',this[_0x157383(0x2c9)][_0x157383(0x18e)]((0x0,_0x31dca4[_0x157383(0x110)])(_0x2a14e4=>_0x2a14e4?_0x2a14e4['status']:_0x157383(0x42b)),(0x0,_0x31dca4[_0x157383(0x3fa)])({'bufferSize':0x1,'refCount':!0x0}))),_0x4219eb(this,'_transitionLocked',!0x1),_0x4219eb(this,_0x157383(0x2e5),[]);}async['init'](){const _0xde410a=_0x405303;if(this[_0xde410a(0x28c)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0xde410a(0x176)]();}[_0x405303(0x331)](){const _0x36e138=_0x405303;return this[_0x36e138(0x411)]=!0x0,(0x0,_0x2d0b9f[_0x36e138(0xfa)])(()=>{const _0x525704=_0x36e138;this[_0x525704(0x411)]=!0x1,this[_0x525704(0x3dd)]();});}['onLocalMutation'](_0x1f2934){const _0x5dd096=_0x405303;this[_0x5dd096(0x42e)](_0x1f2934);}[_0x405303(0x2d0)](_0x45e7c9){const _0x304c4c=_0x405303;this[_0x304c4c(0x42c)]=_0x45e7c9,this['_state$'][_0x304c4c(0x131)](_0x45e7c9);}async['_init'](){const _0x61890f=_0x405303;if(this[_0x61890f(0x2d0)](await this['_createInitialState']()),this[_0x61890f(0x33a)]){var _0x2c40c9;(_0x2c40c9=this['_singleActiveUnitService'])==null||_0x2c40c9[_0x61890f(0x3ca)](this[_0x61890f(0x1c9)]),this[_0x61890f(0x10f)](this['_singleActiveUnitService'][_0x61890f(0xfc)](this[_0x61890f(0x1c9)])[_0x61890f(0x120)](_0x1155bf=>{const _0x22fae5=_0x61890f;this['_logService']['debug'](_0x22fae5(0x290),'editing\x20status\x20changed\x20to',_0x1155bf),_0x1155bf===0x1?(this['_eventService'][_0x22fae5(0x31f)]({'id':'OTHER_CLIENT_EDITING'}),this['_permissionService'][_0x22fae5(0x2ea)](new _0x2ba48b[(_0x22fae5(0x422))](this[_0x22fae5(0x1c9)])['id'],!0x1),this['_permissionService'][_0x22fae5(0x116)](!0x1)):(this['_permissionService'][_0x22fae5(0x2ea)](new _0x2ba48b[(_0x22fae5(0x422))](this[_0x22fae5(0x1c9)])['id'],!0x0),this[_0x22fae5(0x2cd)]['setShowComponents'](!0x0));}));}let _0x2c814e=!0x1;return this[_0x61890f(0x10f)](this[_0x61890f(0x400)][_0x61890f(0x1f0)][_0x61890f(0x120)](_0xd5b33c=>{const _0x45ed4f=_0x61890f;_0xd5b33c===0x3?this[_0x45ed4f(0x2ae)](_0x2c814e):_0xd5b33c===0x2&&(_0x2c814e=!0x0,this[_0x45ed4f(0x350)]());})),this[_0x61890f(0x10f)](this[_0x61890f(0x400)][_0x61890f(0x233)][_0x61890f(0x120)](_0x2f8524=>{const _0x3a5aff=_0x61890f;try{switch(_0x2f8524[_0x3a5aff(0x3cc)]){case _0x20c203[_0x3a5aff(0x3e1)][_0x3a5aff(0x2c5)]:this['_onRemoteChangeset']((0x0,_0x20c203[_0x3a5aff(0x2b6)])(_0x2f8524[_0x3a5aff(0x3be)]));break;case _0x20c203['CollaborationEvent'][_0x3a5aff(0x1e3)]:this[_0x3a5aff(0x2a5)](_0x2f8524[_0x3a5aff(0x3be)]);break;case _0x20c203[_0x3a5aff(0x3e1)][_0x3a5aff(0xfe)]:this[_0x3a5aff(0x260)]();break;case _0x20c203[_0x3a5aff(0x3e1)][_0x3a5aff(0x209)]:this[_0x3a5aff(0x1d1)](_0x2f8524[_0x3a5aff(0x3be)]);break;case _0x20c203[_0x3a5aff(0x3e1)][_0x3a5aff(0x275)]:this[_0x3a5aff(0x13e)](_0x2f8524['data'][_0x3a5aff(0x20c)][_0x3a5aff(0x110)](_0x1e8b78=>(0x0,_0x20c203[_0x3a5aff(0x2b6)])(_0x1e8b78)));break;case _0x20c203[_0x3a5aff(0x3e1)][_0x3a5aff(0x3e2)]:this[_0x3a5aff(0x260)]({'isPermissionRej':!0x0});break;case _0x20c203[_0x3a5aff(0x3e1)][_0x3a5aff(0x42a)]:break;}}catch(_0x197ab5){throw console[_0x3a5aff(0x2a9)](_0x3a5aff(0x1cd),_0x197ab5),_0x197ab5;}})),this['_state'];}[_0x405303(0x191)](){const _0x37d908=_0x405303;this[_0x37d908(0x308)]=!0x1;}[_0x405303(0x2b2)](){const _0x19ffe9=_0x405303;if(this['_transitionLocked'])throw Error(_0x19ffe9(0x237));this[_0x19ffe9(0x308)]=!0x0;}[_0x405303(0x42e)](_0x3f6906){const _0x20119d=_0x405303;this[_0x20119d(0x2b2)](),this['_updateState'](this['_state']['appendMutation'](_0x3f6906)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x3646fb){const _0x18ff07=_0x405303;if(!(_0x3646fb[_0x18ff07(0x371)]<=this[_0x18ff07(0x291)][_0x18ff07(0x3a0)](this['unitID']))){if(this[_0x18ff07(0x411)]){this['_remoteChangesetQueue']['push'](_0x3646fb);return;}this[_0x18ff07(0x3c5)](_0x3646fb);}}[_0x405303(0x3dd)](){const _0x4155f8=_0x405303;this[_0x4155f8(0x2e5)]['forEach'](_0x28f6e2=>this[_0x4155f8(0x3c5)](_0x28f6e2)),this['_remoteChangesetQueue']=[];}[_0x405303(0x3c5)](_0x2bfddd){const _0x134dfc=_0x405303;let _0x5bf725=this[_0x134dfc(0x44a)]['interceptor']['fetchThroughInterceptors'](this[_0x134dfc(0x44a)][_0x134dfc(0x19c)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x2bfddd[_0x134dfc(0xf9)],null)||_0x2bfddd[_0x134dfc(0xf9)],_0x4d95a5={..._0x2bfddd,'mutations':_0x5bf725};this['_lockTransition'](),this['_updateState'](this[_0x134dfc(0x42c)][_0x134dfc(0x3af)](_0x4d95a5)),this[_0x134dfc(0x191)]();}[_0x405303(0x2a5)](_0x270903){const _0x3fe461=_0x405303;this[_0x3fe461(0x2b2)](),this['_updateState'](this[_0x3fe461(0x42c)][_0x3fe461(0xfb)](_0x270903)),this['_unlockTransition']();}[_0x405303(0x260)](_0x323f8e){const _0x410364=_0x405303;this['_lockTransition'](),this['_updateState'](this[_0x410364(0x42c)]['onRemoteRej'](_0x323f8e)),this['_unlockTransition']();}[_0x405303(0x1d1)](_0x1464c9){const _0x2c833e=_0x405303;this['_lockTransition'](),this['_updateState'](this[_0x2c833e(0x42c)][_0x2c833e(0x186)](_0x1464c9)),this[_0x2c833e(0x191)]();}[_0x405303(0x13e)](_0x49a987){const _0x1fbb57=_0x405303;if(!(this[_0x1fbb57(0x42c)]instanceof _0x234be3))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x1c9a32=_0x49a987[_0x1fbb57(0x110)](_0x415918=>{const _0x164975=_0x1fbb57;let _0x16c380=this[_0x164975(0x44a)]['interceptor'][_0x164975(0x33e)](this['_compressMutationService'][_0x164975(0x19c)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x415918[_0x164975(0xf9)],null)||_0x415918['mutations'];return{..._0x415918,'mutations':_0x16c380};});this[_0x1fbb57(0x2b2)](),this[_0x1fbb57(0x2d0)](this[_0x1fbb57(0x42c)]['onMissedChangesetFetched'](_0x1c9a32)),this[_0x1fbb57(0x191)]();}[_0x405303(0x350)](){const _0x2920b2=_0x405303;this[_0x2920b2(0x2b2)](),this[_0x2920b2(0x2d0)](this[_0x2920b2(0x42c)][_0x2920b2(0x11a)]()),this[_0x2920b2(0x191)]();}[_0x405303(0x2ae)](_0x55c698=!0x1){const _0x541f56=_0x405303;this['_lockTransition'](),this[_0x541f56(0x2d0)](this['_state']['toggleOnline']()),this[_0x541f56(0x191)]();let _0x300dfa=this[_0x541f56(0x42c)];_0x55c698&&_0x300dfa instanceof _0x2b0eea&&(this[_0x541f56(0x2b2)](),this[_0x541f56(0x2d0)](_0x300dfa[_0x541f56(0x2e8)]()),this['_unlockTransition']());}async[_0x405303(0x136)](){return new Promise(_0xfe0f2d=>{const _0x49d49e=_0x4e8d;this[_0x49d49e(0x400)][_0x49d49e(0x1f0)][_0x49d49e(0x18e)]((0x0,_0x31dca4[_0x49d49e(0x193)])(0x1))[_0x49d49e(0x120)](async _0xc4ca41=>{const _0xacf287=_0x49d49e;_0xfe0f2d(await this[_0xacf287(0x26a)](_0xc4ca41===0x3));});});}['_createHandler'](){const _0x551d59=_0x405303;let _0x2f52ec=this[_0x551d59(0x1c9)];return{'onStateChange':(_0x343950,_0x21f1a9)=>{const _0x3d3730=_0x551d59;if(_0x343950!==this[_0x3d3730(0x42c)])throw Error(_0x3d3730(0x342)+_0x343950['status']+_0x3d3730(0x3f6)+_0x21f1a9['status']+_0x3d3730(0x224)+this[_0x3d3730(0x42c)][_0x3d3730(0x1b9)]);this[_0x3d3730(0x2d0)](_0x21f1a9);},'onSendChangeset':_0x211a3a=>{const _0x4af1dc=_0x551d59;_0x211a3a[_0x4af1dc(0x15d)]||(_0x211a3a[_0x4af1dc(0x15d)]=this['_changesetSessionId'],_0x211a3a[_0x4af1dc(0x387)]=++this[_0x4af1dc(0x301)]);let _0x2b0947={'eventID':_0x20c203[_0x4af1dc(0x3e1)][_0x4af1dc(0x3ba)],'data':{'unitID':_0x211a3a[_0x4af1dc(0x1c9)],'unitType':this[_0x4af1dc(0x3f0)],'changeset':_0x211a3a,'memberID':this[_0x4af1dc(0x400)][_0x4af1dc(0x32d)]()}};this[_0x4af1dc(0x400)][_0x4af1dc(0x177)](_0x2b0947,this[_0x4af1dc(0x1c9)]);},'onMissingChangesets':({from:_0x158054,to:_0x1d6918})=>{const _0x5afcca=_0x551d59;this[_0x5afcca(0x3d5)][_0x5afcca(0x30f)](_0x5afcca(0x290),_0x5afcca(0x1c0)+_0x158054+_0x5afcca(0x155)+_0x1d6918);let _0x12e7c5={'eventID':_0x20c203['CollaborationEvent'][_0x5afcca(0x1c4)],'data':{'unitID':_0x2f52ec,'unitType':this[_0x5afcca(0x3f0)],'from':_0x158054,'to':_0x1d6918}};this['session'][_0x5afcca(0x177)](_0x12e7c5,this['unitID']);}};}async[_0x405303(0x26a)](_0x426f8f){const _0x2761bb=_0x405303;var _0x45b48f,_0x472c43,_0x569524;let _0x439306=await((_0x45b48f=this['_localCacheService'])==null?void 0x0:_0x45b48f[_0x2761bb(0x218)](this['unitID'])),_0x2b55e5=(_0x472c43=_0x439306==null?void 0x0:_0x439306[_0x2761bb(0xf9)])==null?[]:_0x472c43,_0x1fb9d0=(_0x569524=_0x439306==null?void 0x0:_0x439306[_0x2761bb(0x283)])==null?null:_0x569524,_0x26314b=!!(_0x1fb9d0!=null&&_0x1fb9d0['sid'])&&!!(_0x1fb9d0!=null&&_0x1fb9d0[_0x2761bb(0x387)]);this['_changesetSessionId']=_0x26314b?_0x1fb9d0[_0x2761bb(0x15d)]:(0x0,_0x20c203[_0x2761bb(0x1e4)])(),this[_0x2761bb(0x301)]=_0x26314b?_0x1fb9d0[_0x2761bb(0x387)]:0x0;let _0x4f17e6=this[_0x2761bb(0x1c9)];try{this[_0x2761bb(0x19e)](_0x1fb9d0,_0x2b55e5);}catch(_0x64b129){this[_0x2761bb(0x3d5)][_0x2761bb(0x2a9)](_0x64b129);}let _0xac1985=this[_0x2761bb(0x259)]();if(_0x426f8f){let _0x232563=_0x1b1927(this[_0x2761bb(0x3ef)],_0x4f17e6,this[_0x2761bb(0x3f0)],_0x1fb9d0,_0x2b55e5,_0xac1985);return _0x232563 instanceof _0x315789?_0x232563[_0x2761bb(0x242)]():(_0x232563 instanceof _0x49c582||_0x232563 instanceof _0xe05e0d)&&_0x232563['resend'](),_0x232563;}return this['_injector'][_0x2761bb(0x383)](_0x3b0e9a,_0x4f17e6,this[_0x2761bb(0x3f0)],_0x1fb9d0,_0x2b55e5,_0xac1985);}[_0x405303(0x19e)](_0x1db499,_0x194ff4){const _0xb9d930=_0x405303;var _0x46253a,_0x445a52;let _0x192891=this[_0xb9d930(0x44a)]['interceptor'][_0xb9d930(0x33e)](this[_0xb9d930(0x44a)][_0xb9d930(0x19c)][_0xb9d930(0x380)]()[_0xb9d930(0x406)]);(_0x46253a=_0x192891((_0x1db499==null?void 0x0:_0x1db499['mutations'])||[],null))==null||_0x46253a[_0xb9d930(0x412)](_0x22d041=>this[_0xb9d930(0xf5)][_0xb9d930(0x27a)](_0x22d041['id'],_0x22d041[_0xb9d930(0x329)])),(_0x445a52=_0x192891(_0x194ff4||[],null))==null||_0x445a52[_0xb9d930(0x412)](_0x127b3f=>this[_0xb9d930(0xf5)][_0xb9d930(0x27a)](_0x127b3f['id'],_0x127b3f[_0xb9d930(0x329)]));}};_0xfb921e=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x4,(0x0,_0x2d0b9f['Inject'])(_0x20c203[_0x405303(0x2f0)])),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x39b)])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203['RevisionService'])),_0x43549d(0x7,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xa9d46c)),_0x43549d(0x8,_0x2d0b9f[_0x405303(0x217)]),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0xa,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0x160)]),_0x43549d(0xc,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x43c9bd)),_0x43549d(0xd,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0xfb921e);let _0x5a7876=class extends _0xfb921e{constructor(_0x4f196d,_0x2f05a8,_0x422a1e,_0x44ac72,_0x2760e7,_0xcf137a,_0x147142,_0x4cfd4d,_0x4ab5d5,_0x13ac16,_0x302f05,_0xea9aa8,_0x48a908,_0x1345ec,_0x35e5fe){const _0x3c5428=_0x405303;super(_0x4f196d,_0x422a1e,_0x2f05a8,_0x44ac72,_0x2760e7,_0xcf137a,_0x147142,_0x4cfd4d,_0x4ab5d5,_0x13ac16,_0x302f05,_0xea9aa8,_0x1345ec,_0x35e5fe),this[_0x3c5428(0x1c9)]=_0x4f196d,this[_0x3c5428(0x24b)]=_0x2f05a8,this['_docStateChangeManagerService']=_0x48a908,_0x4219eb(this,'_handlerCallback',null);}[_0x405303(0x2a7)](_0x2e5dbc){const _0x537848=_0x405303;this[_0x537848(0x43e)]=_0x2e5dbc;}['dispose'](){const _0x5c2052=_0x405303;this[_0x5c2052(0x43e)]=null,super[_0x5c2052(0x309)]();}['_createHandler'](){const _0x5ab370=_0x405303;let _0x43f24f=super[_0x5ab370(0x259)]();return _0x43f24f['onTransformIME']=_0xfe666a=>{const _0x31a311=_0x5ab370;var _0x944f0d,_0x477258;return(_0x944f0d=this[_0x31a311(0x43e)])==null||(_0x477258=_0x944f0d[_0x31a311(0x1a6)])==null?void 0x0:_0x477258['call'](_0x944f0d,_0xfe666a);},_0x43f24f[_0x5ab370(0x2f9)]=_0x353af5=>{var _0x5bc7f9,_0x2e5d59;return(_0x5bc7f9=this['_handlerCallback'])==null||(_0x2e5d59=_0x5bc7f9['onTransformState'])==null?void 0x0:_0x2e5d59['call'](_0x5bc7f9,_0x353af5);},_0x43f24f[_0x5ab370(0x2de)]=_0x3e369f=>{const _0x27b068=_0x5ab370;var _0x37425b,_0x19f20c;return(_0x37425b=this[_0x27b068(0x43e)])==null||(_0x19f20c=_0x37425b[_0x27b068(0x2de)])==null?void 0x0:_0x19f20c[_0x27b068(0x2ed)](_0x37425b,_0x3e369f);},_0x43f24f[_0x5ab370(0x27d)]=_0x2399bf=>{const _0xbafab8=_0x5ab370;var _0x527659,_0x4535a9;return(_0x527659=this[_0xbafab8(0x43e)])==null||(_0x4535a9=_0x527659[_0xbafab8(0x27d)])==null?void 0x0:_0x4535a9['call'](_0x527659,_0x2399bf);},_0x43f24f[_0x5ab370(0x1a7)]=_0x188e0c=>{const _0x5a8c73=_0x5ab370;var _0x3ffe04,_0x1725ac,_0x2e80f4;return(_0x3ffe04=(_0x1725ac=this[_0x5a8c73(0x43e)])==null||(_0x2e80f4=_0x1725ac['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x2e80f4[_0x5a8c73(0x2ed)](_0x1725ac,_0x188e0c))==null?_0x188e0c:_0x3ffe04;},_0x43f24f[_0x5ab370(0x390)]=_0x3d98ea=>{const _0x2f960f=_0x5ab370;var _0x218e17,_0x254f14,_0xd3b125;return(_0x218e17=(_0x254f14=this[_0x2f960f(0x43e)])==null||(_0xd3b125=_0x254f14['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0xd3b125[_0x2f960f(0x2ed)](_0x254f14,_0x3d98ea))==null?_0x3d98ea:_0x218e17;},_0x43f24f;}async[_0x405303(0x176)](){const _0x4e49e1=_0x405303;let _0x15406f=await super['_init']();return this['disposeWithMe'](this[_0x4e49e1(0x3c4)][_0x4e49e1(0x1c5)][_0x4e49e1(0x120)](_0x492d3a=>{const _0x365627=_0x4e49e1;if(_0x492d3a==null||_0x492d3a[_0x365627(0x29b)]!==this['unitID'])return;let {commandId:_0x316ea9,redoState:_0x586616,unitId:_0x25694f}=_0x492d3a,_0x8fe5f6={'id':_0x316ea9,'type':_0x2d0b9f['CommandType'][_0x365627(0x245)],'params':{'unitId':_0x25694f,'actions':_0x586616[_0x365627(0x208)],'textRanges':null}};this[_0x365627(0x42e)](_0x8fe5f6);})),this['disposeWithMe'](this[_0x4e49e1(0xf5)][_0x4e49e1(0x19a)]((_0xafa72,_0x470719)=>{const _0x3d08ec=_0x4e49e1;if(_0xafa72['type']!==_0x2d0b9f[_0x3d08ec(0x150)][_0x3d08ec(0x245)]||_0x470719!=null&&_0x470719[_0x3d08ec(0x17a)]||_0x470719!=null&&_0x470719[_0x3d08ec(0x366)]||_0xafa72['id']===_0x33f3ff['RichTextEditingMutation']['id'])return;let _0x6544c7=_0xafa72[_0x3d08ec(0x329)];if((_0x6544c7==null?void 0x0:_0x6544c7[_0x3d08ec(0x29b)])!==this[_0x3d08ec(0x1c9)])return;let _0x487a02=_0xafa72,_0x177689=this['_compressMutationService'][_0x3d08ec(0x19c)][_0x3d08ec(0x33e)](this['_compressMutationService']['interceptor'][_0x3d08ec(0x380)]()[_0x3d08ec(0x389)])([_0x487a02],this[_0x3d08ec(0x347)])||[_0x487a02];this[_0x3d08ec(0x42e)](_0x177689[0x0]);})),_0x15406f;}};_0x5a7876=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f['Inject'])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x2f0)])),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x39b)])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203['RevisionService'])),_0x43549d(0x7,(0x0,_0x2d0b9f['Inject'])(_0xa9d46c)),_0x43549d(0x8,_0x2d0b9f['IUniverInstanceService']),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0xa,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0x160)]),_0x43549d(0xc,(0x0,_0x2d0b9f['Inject'])(_0x33f3ff[_0x405303(0x3b0)])),_0x43549d(0xd,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x43c9bd)),_0x43549d(0xe,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0x5a7876);let _0x59b528=class extends _0xfb921e{constructor(_0x7ae0d1,_0x4ab612,_0x44866f,_0x2f21aa,_0x2a6adf,_0x4e450a,_0x1de8d9,_0x558693,_0x1ad3a2,_0x280eb8,_0x4bde28,_0x27c828,_0x44fb71,_0xa1b74c){const _0x1f2c96=_0x405303;super(_0x7ae0d1,_0x44866f,_0x4ab612,_0x2f21aa,_0x2a6adf,_0x4e450a,_0x1de8d9,_0x558693,_0x1ad3a2,_0x280eb8,_0x4bde28,_0x27c828,_0x44fb71,_0xa1b74c),this[_0x1f2c96(0x1c9)]=_0x7ae0d1,this[_0x1f2c96(0x24b)]=_0x4ab612;}async[_0x405303(0x176)](){const _0x37e406=_0x405303;let _0x10310e=await super[_0x37e406(0x176)]();return this[_0x37e406(0x10f)](this[_0x37e406(0xf5)][_0x37e406(0x19a)]((_0x5b201a,_0x3990e0)=>{const _0x2c0aff=_0x37e406;if(_0x5b201a['type']!==_0x2d0b9f[_0x2c0aff(0x150)]['MUTATION']||_0x3990e0!=null&&_0x3990e0['fromCollab']||_0x3990e0!=null&&_0x3990e0[_0x2c0aff(0x366)])return;let _0x31bb62=_0x5b201a[_0x2c0aff(0x329)];if((_0x31bb62==null?void 0x0:_0x31bb62[_0x2c0aff(0x29b)])!==this['unitID'])return;let _0x54a1e0=_0x5b201a,_0x451196=this[_0x2c0aff(0x44a)][_0x2c0aff(0x19c)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x2c0aff(0x380)]()[_0x2c0aff(0x389)])([_0x54a1e0],this[_0x2c0aff(0x347)])||[_0x54a1e0];this[_0x2c0aff(0x42e)](_0x451196[0x0]);})),_0x10310e;}};_0x59b528=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f['Injector'])),_0x43549d(0x4,(0x0,_0x2d0b9f['Inject'])(_0x20c203[_0x405303(0x2f0)])),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x39b)])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x7,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xa9d46c)),_0x43549d(0x8,_0x2d0b9f['IUniverInstanceService']),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0xa,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0xb,_0x2d0b9f['IPermissionService']),_0x43549d(0xc,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x43c9bd)),_0x43549d(0xd,(0x0,_0x2d0b9f['Optional'])(_0x3e00f7))],_0x59b528);let _0x5080f=class extends _0xfb921e{constructor(_0x114fac,_0x13fa13,_0x13defb,_0x4c728c,_0x597e33,_0x7cd0e6,_0x2acb32,_0x3f16bc,_0x25d6ce,_0x5c350f,_0x50568e,_0x323e8f,_0x5bd70e,_0x3fab80,_0x335f52){const _0x296ff2=_0x405303;super(_0x114fac,_0x13defb,_0x13fa13,_0x4c728c,_0x597e33,_0x7cd0e6,_0x2acb32,_0x25d6ce,_0x5c350f,_0x50568e,_0x323e8f,_0x5bd70e,_0x3fab80,_0x335f52),this[_0x296ff2(0x1c9)]=_0x114fac,this[_0x296ff2(0x24b)]=_0x13fa13,this[_0x296ff2(0x32e)]=_0x3f16bc;}[_0x405303(0x259)](){const _0x38924d=_0x405303;let _0x24f1e7=super[_0x38924d(0x259)]();return _0x24f1e7[_0x38924d(0x2de)]=_0x254b26=>this[_0x38924d(0x32e)][_0x38924d(0x41d)](_0x254b26),_0x24f1e7;}async[_0x405303(0x176)](){const _0x19c852=_0x405303;let _0x667e5e=await super[_0x19c852(0x176)]();return this[_0x19c852(0x10f)](this['_commandService']['onMutationExecutedForCollab']((_0xee519e,_0x24089e)=>{const _0x329e9d=_0x19c852;if(_0xee519e[_0x329e9d(0x24b)]!==_0x2d0b9f[_0x329e9d(0x150)]['MUTATION']||_0x24089e!=null&&_0x24089e[_0x329e9d(0x17a)]||_0x24089e!=null&&_0x24089e[_0x329e9d(0x366)])return;let _0x5ccb63=_0xee519e[_0x329e9d(0x329)];if((_0x5ccb63==null?void 0x0:_0x5ccb63[_0x329e9d(0x29b)])!==this[_0x329e9d(0x1c9)])return;let _0xdff2f2=_0xee519e,_0x53ec12=this['_compressMutationService'][_0x329e9d(0x19c)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x329e9d(0x380)]()['COMPRESS_MUTATION_SEND'])([_0xdff2f2],this[_0x329e9d(0x347)])||[_0xdff2f2];this['_onLocalMutation'](_0x53ec12[0x0]);})),_0x667e5e;}};_0x5080f=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203['CompressMutationService'])),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f['LocaleService'])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x7,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x201f2c)),_0x43549d(0x8,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xa9d46c)),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x217)]),_0x43549d(0xa,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0xc,_0x2d0b9f[_0x405303(0x160)]),_0x43549d(0xd,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x43c9bd)),_0x43549d(0xe,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0x5080f);let _0x33945f=class extends _0xfb921e{constructor(_0x5de533,_0x5392e1,_0x26a6ae,_0x3ff797,_0xa4977d,_0x15720c,_0xb2d1e1,_0x2b37fb,_0x1c6b29,_0x130975,_0x48862c,_0x325f19,_0x9f2303,_0xfd1fc9){const _0x165afc=_0x405303;super(_0x5de533,_0x26a6ae,_0x5392e1,_0x3ff797,_0xa4977d,_0x15720c,_0xb2d1e1,_0x2b37fb,_0x1c6b29,_0x130975,_0x48862c,_0x325f19,_0x9f2303,_0xfd1fc9),this[_0x165afc(0x1c9)]=_0x5de533,this[_0x165afc(0x24b)]=_0x5392e1;}async[_0x405303(0x176)](){const _0x98057b=_0x405303;let _0x36acad=await super[_0x98057b(0x176)]();return this[_0x98057b(0x10f)](this[_0x98057b(0xf5)][_0x98057b(0x19a)]((_0x2d49ce,_0x2995e4)=>{const _0x5388cc=_0x98057b;if(_0x2d49ce['type']!==_0x2d0b9f[_0x5388cc(0x150)][_0x5388cc(0x245)]||_0x2995e4!=null&&_0x2995e4[_0x5388cc(0x17a)]||_0x2995e4!=null&&_0x2995e4['onlyLocal'])return;let _0x345133=_0x2d49ce['params'];if((_0x345133==null?void 0x0:_0x345133[_0x5388cc(0x29b)])!==this['unitID'])return;let _0x7dc7c=_0x2d49ce,_0x1a802f=this['_compressMutationService'][_0x5388cc(0x19c)][_0x5388cc(0x33e)](this[_0x5388cc(0x44a)][_0x5388cc(0x19c)][_0x5388cc(0x380)]()[_0x5388cc(0x389)])([_0x7dc7c],this[_0x5388cc(0x347)])||[_0x7dc7c];this['_onLocalMutation'](_0x1a802f[0x0]);})),_0x36acad;}};_0x33945f=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203['CompressMutationService'])),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f['LocaleService'])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x7,(0x0,_0x2d0b9f['Inject'])(_0xa9d46c)),_0x43549d(0x8,_0x2d0b9f[_0x405303(0x217)]),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0xa,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0x160)]),_0x43549d(0xc,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x43c9bd)),_0x43549d(0xd,(0x0,_0x2d0b9f['Optional'])(_0x3e00f7))],_0x33945f);let _0x4cf531=class extends _0xfb921e{constructor(_0x39acf4,_0x3bb93d,_0x105c90,_0x1599ed,_0x2b09dc,_0x15ff7c,_0x3e4c40,_0x7c445e,_0x26fd81,_0x3ea996,_0x17852d,_0x2f0916,_0x2d86a9,_0x30a46b){const _0x51c1ab=_0x405303;super(_0x39acf4,_0x105c90,_0x3bb93d,_0x1599ed,_0x2b09dc,_0x15ff7c,_0x3e4c40,_0x7c445e,_0x26fd81,_0x3ea996,_0x17852d,_0x2f0916,_0x2d86a9,_0x30a46b),this[_0x51c1ab(0x1c9)]=_0x39acf4,this[_0x51c1ab(0x24b)]=_0x3bb93d;}async[_0x405303(0x176)](){const _0x385fe8=_0x405303;let _0x13b05d=await super[_0x385fe8(0x176)]();return this[_0x385fe8(0x10f)](this[_0x385fe8(0xf5)][_0x385fe8(0x19a)]((_0x54f8bc,_0x309b85)=>{const _0x5cdf36=_0x385fe8;if(_0x54f8bc[_0x5cdf36(0x24b)]!==_0x2d0b9f[_0x5cdf36(0x150)][_0x5cdf36(0x245)]||_0x309b85!=null&&_0x309b85[_0x5cdf36(0x17a)]||_0x309b85!=null&&_0x309b85[_0x5cdf36(0x366)])return;let _0x4fdccd=_0x54f8bc[_0x5cdf36(0x329)];if((_0x4fdccd==null?void 0x0:_0x4fdccd['unitId'])!==this[_0x5cdf36(0x1c9)])return;let _0x1a4a66=_0x54f8bc,_0x58f0e3=this[_0x5cdf36(0x44a)][_0x5cdf36(0x19c)]['fetchThroughInterceptors'](this[_0x5cdf36(0x44a)][_0x5cdf36(0x19c)][_0x5cdf36(0x380)]()[_0x5cdf36(0x389)])([_0x1a4a66],this[_0x5cdf36(0x347)])||[_0x1a4a66];this[_0x5cdf36(0x42e)](_0x58f0e3[0x0]);})),_0x13b05d;}};_0x4cf531=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x2f0)])),_0x43549d(0x5,(0x0,_0x2d0b9f['Inject'])(_0x2d0b9f[_0x405303(0x39b)])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203['RevisionService'])),_0x43549d(0x7,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xa9d46c)),_0x43549d(0x8,_0x2d0b9f[_0x405303(0x217)]),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0xa,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0x160)]),_0x43549d(0xc,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x43c9bd)),_0x43549d(0xd,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0x4cf531);let _0x514c5a=class extends _0xfb921e{constructor(_0x335a04,_0x2440ce,_0x1817e0,_0x4b8c81,_0x3e961c,_0x1b9621,_0x1157de,_0x411f23,_0x5b3da3,_0x4a870b,_0x2cf891,_0x6cb1d,_0x5360d8,_0x3b3216){const _0xdd12c1=_0x405303;super(_0x335a04,_0x1817e0,_0x2440ce,_0x4b8c81,_0x3e961c,_0x1b9621,_0x1157de,_0x411f23,_0x5b3da3,_0x4a870b,_0x2cf891,_0x6cb1d,_0x5360d8,_0x3b3216),this[_0xdd12c1(0x1c9)]=_0x335a04,this[_0xdd12c1(0x24b)]=_0x2440ce;}async[_0x405303(0x176)](){const _0x380a42=_0x405303;let _0x28aab5=await super[_0x380a42(0x176)]();return this[_0x380a42(0x10f)](this['_commandService'][_0x380a42(0x19a)]((_0x433730,_0x3a4212)=>{const _0x48efee=_0x380a42;if(_0x433730[_0x48efee(0x24b)]!==_0x2d0b9f[_0x48efee(0x150)][_0x48efee(0x245)]||_0x3a4212!=null&&_0x3a4212[_0x48efee(0x17a)]||_0x3a4212!=null&&_0x3a4212[_0x48efee(0x366)])return;let _0x4bc234=_0x433730[_0x48efee(0x329)];if((_0x4bc234==null?void 0x0:_0x4bc234[_0x48efee(0x29b)])!==this[_0x48efee(0x1c9)])return;let _0x3151fc=_0x433730,_0x586f98=this[_0x48efee(0x44a)][_0x48efee(0x19c)][_0x48efee(0x33e)](this['_compressMutationService'][_0x48efee(0x19c)][_0x48efee(0x380)]()[_0x48efee(0x389)])([_0x3151fc],this['_univerInstanceService'])||[_0x3151fc];this['_onLocalMutation'](_0x586f98[0x0]);})),_0x28aab5;}};_0x514c5a=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f['Inject'])(_0x2d0b9f['Injector'])),_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x2f0)])),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x39b)])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x7,(0x0,_0x2d0b9f['Inject'])(_0xa9d46c)),_0x43549d(0x8,_0x2d0b9f['IUniverInstanceService']),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0xa,_0x2d0b9f['ICommandService']),_0x43549d(0xb,_0x2d0b9f[_0x405303(0x160)]),_0x43549d(0xc,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x43c9bd)),_0x43549d(0xd,(0x0,_0x2d0b9f['Optional'])(_0x3e00f7))],_0x514c5a);let _0x1e1155=(0x0,_0x2d0b9f[_0x405303(0x381)])(_0x405303(0x444));function _0x36834a(_0x218101){const _0x10ab16=_0x405303;let _0x4a2cfa=_0x218101[_0x10ab16(0x3be)],_0xc630bb=JSON[_0x10ab16(0x39c)](_0x4a2cfa);switch(_0xc630bb['cmd']){case _0x11fae4[_0x10ab16(0x139)][_0x10ab16(0x3dc)]:case _0x11fae4['CombCmd'][_0x10ab16(0x257)]:{let _0x1db6ec=_0xc630bb['infoRsp'];return{..._0xc630bb,'data':_0x1db6ec,'cmd':_0xc630bb['cmd']};}case _0x11fae4['CombCmd'][_0x10ab16(0x315)]:{let _0x4a639e=_0xc630bb[_0x10ab16(0x1fd)];return{..._0xc630bb,'data':_0x4a639e,'cmd':_0xc630bb[_0x10ab16(0x164)]};}case _0x11fae4['CombCmd'][_0x10ab16(0x359)]:{let _0xfea998=_0xc630bb[_0x10ab16(0x27c)];switch(_0xfea998[_0x10ab16(0x3cc)]){case _0x20c203[_0x10ab16(0x3e1)][_0x10ab16(0x3e2)]:var _0x45aca5;return{..._0xc630bb,'data':{..._0xfea998,'data':(_0x45aca5=_0xfea998[_0x10ab16(0x13f)])==null?void 0x0:_0x45aca5['cs']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203['CollaborationEvent'][_0x10ab16(0x1e3)]:var _0x1ec86f;return{..._0xc630bb,'data':{..._0xfea998,'data':(_0x1ec86f=_0xfea998[_0x10ab16(0x295)])==null?void 0x0:_0x1ec86f['cs']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203[_0x10ab16(0x3e1)][_0x10ab16(0x2c5)]:var _0x4ebdfa;return{..._0xc630bb,'data':{..._0xfea998,'data':(_0x4ebdfa=_0xfea998[_0x10ab16(0x3d6)])==null?void 0x0:_0x4ebdfa['cs']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203['CollaborationEvent'][_0x10ab16(0xfe)]:var _0x11a401;return{..._0xc630bb,'data':{..._0xfea998,'data':(_0x11a401=_0xfea998['csRejEvent'])==null?void 0x0:_0x11a401['cs']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203[_0x10ab16(0x3e1)][_0x10ab16(0x209)]:var _0x144f77;return{..._0xc630bb,'data':{..._0xfea998,'data':(_0x144f77=_0xfea998[_0x10ab16(0x2c7)])==null?void 0x0:_0x144f77['cs']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203['CollaborationEvent'][_0x10ab16(0x130)]:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998['updateCursorEvent']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203['CollaborationEvent'][_0x10ab16(0x1e8)]:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998['joinEvent']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203[_0x10ab16(0x3e1)][_0x10ab16(0x114)]:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998[_0x10ab16(0x370)]},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203[_0x10ab16(0x3e1)]['LIVESHARE_NEW_HOST']:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998[_0x10ab16(0x144)]},'cmd':_0xc630bb['cmd']};case _0x20c203[_0x10ab16(0x3e1)][_0x10ab16(0x1b3)]:case _0x20c203[_0x10ab16(0x3e1)]['LIVESHARE_OPERATION']:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998[_0x10ab16(0x2a6)]},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203['CollaborationEvent']['LIVESHARE_TERMINATE']:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998[_0x10ab16(0x144)]},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203['CollaborationEvent'][_0x10ab16(0x3e4)]:return{..._0xc630bb,'data':_0xfea998,'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203[_0x10ab16(0x3e1)]['COMMENT_UPDATE']:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998[_0x10ab16(0x17e)]},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203[_0x10ab16(0x3e1)]['UPDATE_PERMISSION_OBJ']:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998['updatePermissionObjEvent']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203[_0x10ab16(0x3e1)][_0x10ab16(0x37a)]:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998[_0x10ab16(0x3b5)]},'cmd':_0xc630bb['cmd']};case _0x20c203[_0x10ab16(0x3e1)][_0x10ab16(0x42a)]:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998[_0x10ab16(0x317)]},'cmd':_0xc630bb['cmd']};default:return _0xc630bb;}}default:return _0xc630bb;}}function _0x2e90ec(_0x90cf72){const _0xe9c089=_0x405303;switch(_0x90cf72[_0xe9c089(0x164)]){case _0x11fae4[_0xe9c089(0x139)][_0xe9c089(0x3dc)]:case _0x11fae4[_0xe9c089(0x139)][_0xe9c089(0x257)]:return JSON[_0xe9c089(0x238)]({'cmd':_0x90cf72['cmd'],'routeKey':_0x90cf72[_0xe9c089(0x2bb)]});case _0x11fae4['CombCmd'][_0xe9c089(0x108)]:{let _0x215254;switch(_0x90cf72['data']['eventID']){case _0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x130)]:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)]['UPDATE_CURSOR'],'updateCursorEvent':_0x90cf72[_0xe9c089(0x3be)][_0xe9c089(0x3be)]};break;case _0x20c203[_0xe9c089(0x3e1)]['USERS_LEAVE']:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x114)],'leaveEvent':_0x90cf72[_0xe9c089(0x3be)]['data']};break;case _0x20c203[_0xe9c089(0x3e1)]['USERS_ENTER']:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x1e8)],'joinEvent':_0x90cf72[_0xe9c089(0x3be)][_0xe9c089(0x3be)]};break;case _0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x1ad)]:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x1ad)],'liveShareNewHost':_0x90cf72[_0xe9c089(0x3be)]['data']};break;case _0x20c203['CollaborationEvent'][_0xe9c089(0x300)]:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x300)],'liveShareOperation':_0x90cf72['data'][_0xe9c089(0x3be)]};break;case _0x20c203[_0xe9c089(0x3e1)]['LIVESHARE_TERMINATE']:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x90cf72[_0xe9c089(0x3be)][_0xe9c089(0x3be)]};break;case _0x20c203[_0xe9c089(0x3e1)]['LIVESHARE_REQUEST_HOST']:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x90cf72[_0xe9c089(0x3be)][_0xe9c089(0x3be)]};break;case _0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x1b3)]:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x1b3)]};break;default:_0x215254={'eventID':_0x90cf72[_0xe9c089(0x3be)][_0xe9c089(0x3cc)]};}return JSON['stringify']({'cmd':_0x90cf72[_0xe9c089(0x164)],'routeKey':_0x90cf72[_0xe9c089(0x2bb)],'collaMsg':_0x215254});}case _0x11fae4[_0xe9c089(0x139)][_0xe9c089(0x315)]:return JSON[_0xe9c089(0x238)]({'cmd':_0x90cf72['cmd'],'routeKey':_0x90cf72[_0xe9c089(0x2bb)],'joinReq':_0x90cf72[_0xe9c089(0x3be)]});case _0x11fae4[_0xe9c089(0x139)][_0xe9c089(0x18b)]:return JSON[_0xe9c089(0x238)]({'cmd':_0x90cf72[_0xe9c089(0x164)],'routeKey':_0x90cf72['routeKey'],'leaveReq':_0x90cf72[_0xe9c089(0x3be)]});default:throw Error(_0xe9c089(0x15a));}}let _0x581f35=(0x0,_0x2d0b9f[_0x405303(0x381)])(_0x405303(0x35d));function _0x30eb9b(_0x1d553a,_0x303877,_0x335406){const _0x4eddf8=_0x405303;return _0x1d553a+'/'+_0x303877+_0x4eddf8(0x437)+_0x335406+'/new_changes';}let _0x2eb133=class extends _0x2d0b9f[_0x405303(0x2c1)]{constructor(_0x22842d,_0x2cb6af,_0x393a56,_0x556536,_0x356e9f){const _0x5976c8=_0x405303;super(),this[_0x5976c8(0x3ef)]=_0x22842d,this[_0x5976c8(0x121)]=_0x2cb6af,this['_configService']=_0x393a56,this[_0x5976c8(0x3d5)]=_0x556536,this[_0x5976c8(0x19b)]=_0x356e9f;}[_0x405303(0x12b)](_0x2e9fa9){const _0x2cfb3f=_0x405303;let _0xeb64a=this[_0x2cfb3f(0x3ef)][_0x2cfb3f(0x1b8)](_0xc90c47[_0x2cfb3f(0x352)]);if(!_0xeb64a)throw Error(_0x2cfb3f(0x3a2));let _0xd7c6f2=_0xeb64a[_0x2cfb3f(0xf0)](_0x2e9fa9);if(!_0xd7c6f2)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');let _0x39727f=new _0x2d0b9f[(_0x2cfb3f(0x302))](),_0x553631=new _0x31dca4[(_0x2cfb3f(0x29e))]();_0x39727f[_0x2cfb3f(0x376)](_0xd7c6f2['close$'][_0x2cfb3f(0x120)](_0x55adff=>_0x553631[_0x2cfb3f(0x131)](_0x55adff))),_0x39727f[_0x2cfb3f(0x376)]((0x0,_0x2d0b9f[_0x2cfb3f(0xfa)])(()=>_0x553631[_0x2cfb3f(0x104)]()));let _0x19d7f5=new _0x31dca4[(_0x2cfb3f(0x29e))]();_0x39727f[_0x2cfb3f(0x376)](_0xd7c6f2[_0x2cfb3f(0x306)][_0x2cfb3f(0x120)](_0x27d2c2=>_0x19d7f5[_0x2cfb3f(0x131)](_0x27d2c2))),_0x39727f[_0x2cfb3f(0x376)]((0x0,_0x2d0b9f[_0x2cfb3f(0xfa)])(()=>_0x19d7f5[_0x2cfb3f(0x104)]()));let _0xed80f3=new _0x31dca4[(_0x2cfb3f(0x29e))]();_0x39727f[_0x2cfb3f(0x376)](_0xd7c6f2[_0x2cfb3f(0x2ca)][_0x2cfb3f(0x120)](_0x47cd63=>{let _0x476c5d=_0x36834a(_0x47cd63);_0xed80f3['next'](_0x476c5d);})),_0x39727f[_0x2cfb3f(0x376)]((0x0,_0x2d0b9f['toDisposable'])(()=>_0xed80f3[_0x2cfb3f(0x104)]()));let _0x53608d,_0x16b19f=()=>{const _0x4b76d0=_0x2cfb3f;_0x19d7f5['next'](new Event(_0x4b76d0(0x1d2))),_0x553631[_0x4b76d0(0x131)](new Event(_0x4b76d0(0x1d2))),_0x53608d[_0x4b76d0(0x2dd)]();};return _0x53608d={'memberID':'','close$':_0x553631[_0x2cfb3f(0x41c)](),'error$':_0x19d7f5[_0x2cfb3f(0x41c)](),'open$':_0xd7c6f2['open$'],'message$':_0xed80f3['asObservable'](),'send':_0x51202f=>{const _0x4a3045=_0x2cfb3f;if(_0x51202f[_0x4a3045(0x164)]===_0x11fae4[_0x4a3045(0x139)][_0x4a3045(0x108)]){if(_0x51202f['data'][_0x4a3045(0x3cc)]===_0x20c203['CollaborationEvent'][_0x4a3045(0x3ba)]){this[_0x4a3045(0x364)](_0x53608d,_0x51202f['data'])[_0x4a3045(0x38f)](_0x4b390e=>{const _0x178dde=_0x4a3045;this['_logService'][_0x178dde(0x2a9)](_0x4b390e),_0x16b19f();});return;}if(_0x51202f[_0x4a3045(0x3be)][_0x4a3045(0x3cc)]===_0x20c203[_0x4a3045(0x3e1)]['FETCH_MISSING']){let _0x427821=_0x51202f[_0x4a3045(0x3be)];this[_0x4a3045(0x105)](_0x427821)['then'](_0x451108=>{const _0x1c0c65=_0x4a3045;_0xed80f3[_0x1c0c65(0x131)]({'cmd':_0x11fae4['CombCmd']['RECV'],'code':_0x11fae4[_0x1c0c65(0x3b3)]['OK'],'routeKey':_0x427821[_0x1c0c65(0x3be)][_0x1c0c65(0x1c9)],'routeType':'','data':{'eventID':_0x20c203['CollaborationEvent'][_0x1c0c65(0x275)],'data':{'changesets':_0x451108}}});})[_0x4a3045(0x38f)](_0x197620=>{const _0x344a4f=_0x4a3045;this['_logService'][_0x344a4f(0x2a9)](_0x197620),_0x16b19f();});return;}}_0xd7c6f2[_0x4a3045(0x177)](_0x2e90ec(_0x51202f));},'close':()=>{const _0x427b3f=_0x2cfb3f;_0xd7c6f2[_0x427b3f(0x2dd)](),_0x39727f[_0x427b3f(0x309)]();}},_0x53608d;}async['_submitChangeset'](_0x2abc8a,_0x343dc1){const _0x42659a=_0x405303;var _0x4f4b17;let {unitType:_0x3651c0,unitID:_0x21caa3,changeset:_0x265113}=_0x343dc1[_0x42659a(0x3be)],_0x1322b7={'unitID':_0x21caa3,'memberID':_0x2abc8a[_0x42659a(0x29d)],'type':_0x3651c0,'changeset':(0x0,_0x20c203[_0x42659a(0x328)])(_0x265113)},_0x3fdd81=this[_0x42659a(0x3d2)]['getConfig'](_0x51e182),_0x3d29c3=_0x30eb9b((_0x4f4b17=_0x3fdd81==null?void 0x0:_0x3fdd81[_0x42659a(0x240)])==null?'/universer-api/comb':_0x4f4b17,_0x3651c0,_0x21caa3);try{await this[_0x42659a(0x121)][_0x42659a(0x3f5)](_0x3d29c3,{'body':_0x1322b7});}catch(_0x22b36d){throw this[_0x42659a(0x3d5)][_0x42659a(0x2a9)](_0x42659a(0x420),_0x42659a(0x173)),_0x22b36d;}}async[_0x405303(0x105)](_0x4aa414){const _0x46f87d=_0x405303;let {unitID:_0x3ad8cf,from:_0x4a8f2a,to:_0x34152c,unitType:_0x27b8d7}=_0x4aa414[_0x46f87d(0x3be)];return(await this[_0x46f87d(0x19b)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x3ad8cf,'type':_0x27b8d7,'from':_0x4a8f2a,'to':_0x34152c}))['changesets'][_0x46f87d(0x110)](_0x187e61=>((_0x187e61[_0x46f87d(0xf9)]===null||_0x187e61[_0x46f87d(0xf9)]===void 0x0)&&(_0x187e61['mutations']=[]),_0x187e61));}};_0x2eb133=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x1,(0x0,_0x2d0b9f['Inject'])(_0xc90c47[_0x405303(0x141)])),_0x43549d(0x2,_0x2d0b9f[_0x405303(0x346)]),_0x43549d(0x3,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0x4,_0x20c203[_0x405303(0x3e3)])],_0x2eb133);let _0x562152=(0x0,_0x2d0b9f[_0x405303(0x381)])(_0x405303(0x3de));function _0x233b60(_0x596242={}){const _0x1f3d4e=_0x405303;return _0x596242[_0x1f3d4e(0x424)]?{'resolveUnit':_0x596242[_0x1f3d4e(0x424)]}:{'resolveUnit':_0x116c86=>({'target':{'unitId':_0x116c86['unitId'],'unitType':_0x116c86['unitType']}})};}function _0x4f435b(_0x5aae11,_0x4048ac,_0x116b29){const _0x540d4d=_0x405303;var _0xe3411f;let _0x4e7138=_0x116b29[_0x540d4d(0x11c)][_0x540d4d(0x246)];if(_0x4e7138!=null&&_0x4e7138[_0x540d4d(0x1aa)]()==='')throw Error(_0x540d4d(0x3fc));if(!_0x116b29[_0x540d4d(0x11c)]['unitId'])throw Error(_0x540d4d(0x274));return{'localUnitId':_0x5aae11,'unitType':_0x4048ac,'target':{'endpoint':_0x4e7138,'unitId':_0x116b29['target'][_0x540d4d(0x29b)],'unitType':(_0xe3411f=_0x116b29['target'][_0x540d4d(0x311)])==null?_0x4048ac:_0xe3411f},'changeset':_0x116b29[_0x540d4d(0x24c)]};}let _0x4c98b9=class extends _0x2d0b9f['Disposable']{constructor(_0x256d16,_0x2b0f75,_0x5d6feb,_0x339ff9,_0x1e2261,_0x52beac,_0x466404){const _0x19aac6=_0x405303;super(),this[_0x19aac6(0x3ef)]=_0x256d16,this[_0x19aac6(0x3d5)]=_0x2b0f75,this['_configService']=_0x5d6feb,this[_0x19aac6(0x24a)]=_0x339ff9,this['_collaborationUIEventService']=_0x1e2261,this[_0x19aac6(0x35a)]=_0x52beac,this['_networkConditionService']=_0x466404,_0x4219eb(this,_0x19aac6(0x189),new Map()),_0x4219eb(this,_0x19aac6(0x2ac),new Map()),_0x4219eb(this,_0x19aac6(0x199),new Map()),_0x4219eb(this,_0x19aac6(0x241),new Map()),_0x4219eb(this,'socket$',this[_0x19aac6(0x165)](void 0x0)[_0x19aac6(0x25f)][_0x19aac6(0x41c)]()),_0x4219eb(this,_0x19aac6(0x343),new _0x31dca4[(_0x19aac6(0x31b))](0x0)),_0x4219eb(this,_0x19aac6(0x3e0),this[_0x19aac6(0x343)]['asObservable']()),this[_0x19aac6(0x32b)]();}[_0x405303(0x32b)](){const _0x5a5d9a=_0x405303;this[_0x5a5d9a(0x374)]&&this[_0x5a5d9a(0x10f)](this['_networkConditionService'][_0x5a5d9a(0x229)]['subscribe'](_0x4a460f=>{const _0xc92087=_0x5a5d9a;_0x4a460f&&this['reconnect'](),_0x4a460f||this[_0xc92087(0x241)]['forEach'](_0x2beee6=>this[_0xc92087(0x1fe)](_0x2beee6));}));}[_0x405303(0x309)](){const _0x3513ea=_0x405303;super[_0x3513ea(0x309)](),this[_0x3513ea(0x241)][_0x3513ea(0x412)](_0x59706c=>{const _0x4cf025=_0x3513ea;var _0x3f71aa,_0x550984;(_0x3f71aa=_0x59706c[_0x4cf025(0x2ee)])==null||_0x3f71aa['unsubscribe'](),_0x59706c[_0x4cf025(0x2ee)]=null,this[_0x4cf025(0x36a)](_0x59706c),this[_0x4cf025(0x404)](_0x59706c),this[_0x4cf025(0x264)](_0x59706c),(_0x550984=_0x59706c[_0x4cf025(0x25f)]['getValue']())==null||_0x550984[_0x4cf025(0x2dd)](),_0x59706c[_0x4cf025(0x25f)][_0x4cf025(0x104)]();}),this['_socketChannels'][_0x3513ea(0x3c7)](),this[_0x3513ea(0x189)][_0x3513ea(0x412)](_0x3fbcb4=>_0x3fbcb4[_0x3513ea(0x309)]()),this[_0x3513ea(0x189)]['clear'](),this['_sessionChannels'][_0x3513ea(0x3c7)](),this[_0x3513ea(0x343)][_0x3513ea(0x104)]();}async[_0x405303(0x305)](_0x3ac9b3,_0x3dac5b){const _0x148574=_0x405303;if(this['_sessions']['has'](_0x3ac9b3))return this[_0x148574(0x189)][_0x148574(0x1b8)](_0x3ac9b3);let _0x1eab1d=this['_pendingSessions']['get'](_0x3ac9b3);if(_0x1eab1d)return _0x1eab1d;let _0x40bbd7=this['_createSession'](_0x3ac9b3,_0x3dac5b);this[_0x148574(0x2ac)][_0x148574(0x339)](_0x3ac9b3,_0x40bbd7);try{return await _0x40bbd7;}finally{this[_0x148574(0x2ac)][_0x148574(0x142)](_0x3ac9b3);}}async[_0x405303(0x1a8)](_0xaf51c1,_0x25e85b){const _0x3202fa=_0x405303;let _0x2f185c=await this[_0x3202fa(0x26d)](_0xaf51c1,_0x25e85b),_0x47ead7=this[_0x3202fa(0x165)](_0x2f185c[_0x3202fa(0x11c)][_0x3202fa(0x246)]);this[_0x3202fa(0x125)](_0x47ead7);let _0x571a00=this[_0x3202fa(0x3ef)]['createInstance'](_0x1213e3,_0x2f185c,_0x47ead7[_0x3202fa(0x25f)][_0x3202fa(0x41c)]());return this[_0x3202fa(0x189)][_0x3202fa(0x339)](_0xaf51c1,_0x571a00),this['_sessionChannels']['set'](_0xaf51c1,_0x47ead7[_0x3202fa(0xf1)]),_0x571a00;}[_0x405303(0x34a)](_0x27af25){const _0x31647a=_0x405303;let _0x5a43e0=this['_sessions'][_0x31647a(0x1b8)](_0x27af25),_0x5e766c=this['_sessionChannels'][_0x31647a(0x1b8)](_0x27af25);if(_0x5a43e0&&(this[_0x31647a(0x189)][_0x31647a(0x142)](_0x27af25),this[_0x31647a(0x199)][_0x31647a(0x142)](_0x27af25),_0x5a43e0[_0x31647a(0x2dd)]()),_0x5e766c&&!this['_hasSessionsForEndpoint'](_0x5e766c)){var _0x132109;let _0x52591c=this['_socketChannels'][_0x31647a(0x1b8)](_0x5e766c);_0x52591c==null||(_0x132109=_0x52591c[_0x31647a(0x25f)][_0x31647a(0x22a)]())==null||_0x132109[_0x31647a(0x2dd)]();}}['reconnect'](){const _0xd08a7b=_0x405303;(this['_socketChannels'][_0xd08a7b(0x1db)]?[...this[_0xd08a7b(0x241)][_0xd08a7b(0x1af)]()]:[this[_0xd08a7b(0x165)](void 0x0)])['forEach'](_0x17d5ce=>{const _0x7fb614=_0xd08a7b;_0x17d5ce[_0x7fb614(0x3ec)]=0x0,this['_clearRetryConnectingTimer'](_0x17d5ce),this[_0x7fb614(0x183)](_0x17d5ce);});}[_0x405303(0x36a)](_0x3e7720){const _0x53fe7b=_0x405303;_0x3e7720[_0x53fe7b(0x3b4)]!=null&&(clearTimeout(_0x3e7720[_0x53fe7b(0x3b4)]),_0x3e7720['retryConnectingTimer']=null);}async['_createSocket'](_0x272e0a){const _0x58240c=_0x405303;var _0x1fe212,_0x18a893;let _0x3590df=this[_0x58240c(0x3d2)][_0x58240c(0x112)](_0x51e182),_0x26ca48=(_0x1fe212=(_0x18a893=_0x272e0a[_0x58240c(0x246)])==null?_0x3590df==null?void 0x0:_0x3590df[_0x58240c(0x38c)]:_0x18a893)==null?_0x219b9d:_0x1fe212,_0x3b2896=await this[_0x58240c(0x24a)][_0x58240c(0xf0)](_0x26ca48);return _0x272e0a[_0x58240c(0x31d)]=_0x3b2896,_0x3b2896;}async[_0x405303(0x125)](_0x75e20e){const _0x532155=_0x405303;try{var _0x1fd60c,_0x3315fd;let _0x15ba94=(_0x1fd60c=(_0x3315fd=_0x75e20e['socket$'][_0x532155(0x22a)]())==null?_0x75e20e['candidateSocket']:_0x3315fd)==null?await this[_0x532155(0x2fd)](_0x75e20e):_0x1fd60c;if(_0x15ba94){var _0x1998ba;let _0x226e21=_0x15ba94[_0x532155(0x177)];_0x15ba94[_0x532155(0x177)]=_0x470a45=>(_0x470a45[_0x532155(0x164)]!==_0x11fae4[_0x532155(0x139)]['LEAVE']&&this[_0x532155(0x435)](_0x75e20e),_0x226e21[_0x532155(0x3d9)](_0x15ba94,[_0x470a45])),(_0x1998ba=_0x75e20e[_0x532155(0x2ee)])==null||_0x1998ba[_0x532155(0x3e8)](),_0x75e20e[_0x532155(0x2ee)]=null,_0x75e20e['socketMessageSubscription']=_0x15ba94[_0x532155(0x2ca)]['subscribe'](_0xccc548=>this['_onMessage'](_0x75e20e,_0x15ba94,_0xccc548)),_0x15ba94[_0x532155(0x306)][_0x532155(0x18e)]((0x0,_0x2ba3c8[_0x532155(0x193)])(0x1))[_0x532155(0x120)](_0x784c8a=>this[_0x532155(0x3d5)][_0x532155(0x2a9)](_0x532155(0x29c),_0x784c8a)),_0x15ba94[_0x532155(0x3c6)][_0x532155(0x18e)]((0x0,_0x2ba3c8['take'])(0x1))[_0x532155(0x120)](()=>{const _0x2353e2=_0x532155;this[_0x2353e2(0x1bb)](_0x75e20e,_0x15ba94);}),_0x15ba94[_0x532155(0x3cf)]['pipe']((0x0,_0x2ba3c8['take'])(0x1))[_0x532155(0x120)](_0x13197e=>{const _0x12d3f6=_0x532155;this[_0x12d3f6(0x3d5)][_0x12d3f6(0x30f)]('[CollaborationSessionService]',_0x12d3f6(0x38e),_0x13197e),this['_onConnectionFailed'](_0x75e20e);});}}catch(_0x27723d){this[_0x532155(0x3d5)][_0x532155(0x2a9)](_0x27723d),this['_onConnectionFailed'](_0x75e20e);}}[_0x405303(0x1bb)](_0x89b3f4,_0x264839){const _0x7b3c28=_0x405303;this['_logService'][_0x7b3c28(0x30f)]('[CollaborationSessionService]',_0x7b3c28(0x363)),_0x264839[_0x7b3c28(0x177)]({'cmd':_0x11fae4[_0x7b3c28(0x139)]['HELLO']}),this[_0x7b3c28(0x435)](_0x89b3f4);}[_0x405303(0x1fe)](_0x18f744){const _0x43adc1=_0x405303;_0x18f744[_0x43adc1(0x12e)]=!0x1,_0x18f744[_0x43adc1(0x31d)]=null,this[_0x43adc1(0x343)]['next'](0x2),_0x18f744[_0x43adc1(0x25f)][_0x43adc1(0x131)](null),this[_0x43adc1(0x404)](_0x18f744),this[_0x43adc1(0x264)](_0x18f744);}[_0x405303(0x2df)](_0x16c71e){const _0xc40c92=_0x405303;var _0x2dd34e;this['_onOffline'](_0x16c71e),this[_0xc40c92(0x3c2)](_0x16c71e[_0xc40c92(0xf1)])&&(_0x16c71e['retryCount']<((_0x2dd34e=this[_0xc40c92(0x3d2)][_0xc40c92(0x112)](_0xc40c92(0x113)))==null?0x3:_0x2dd34e)?(this['_collaborationUIEventService'][_0xc40c92(0x31f)]({'id':_0xc40c92(0x294)}),this[_0xc40c92(0x183)](_0x16c71e)):this[_0xc40c92(0x214)][_0xc40c92(0x31f)]({'id':_0xc40c92(0x384)}));}[_0x405303(0x183)](_0xf66d94){const _0x343022=_0x405303;var _0x2326e3;let _0x297856=_0xf66d94['retryCount'],_0x59e9d7=this[_0x343022(0x3d2)][_0x343022(0x112)](_0x51e182),_0x1df45b=_0x297856===0x0?0x0:((_0x2326e3=_0x59e9d7==null?void 0x0:_0x59e9d7[_0x343022(0x3fd)])==null?0x4e20:_0x2326e3)*0x2**_0x297856;_0xf66d94[_0x343022(0x3b4)]=setTimeout(()=>{const _0x52f02b=_0x343022;clearTimeout(_0xf66d94[_0x52f02b(0x3b4)]),_0xf66d94[_0x52f02b(0x3b4)]=null,this[_0x52f02b(0x125)](_0xf66d94);},_0x1df45b),_0xf66d94['retryCount']+=0x1;}async[_0x405303(0x26d)](_0x26443a,_0x1f9237){const _0x147427=_0x405303;return _0x4f435b(_0x26443a,_0x1f9237,await this[_0x147427(0x35a)][_0x147427(0x424)]({'unitId':_0x26443a,'unitType':_0x1f9237}));}[_0x405303(0x2a2)](_0x51b4cb,_0x331562,_0xc36a76){const _0x414ff9=_0x405303;let {cmd:_0x37a9a0}=_0xc36a76;_0x37a9a0===_0x11fae4[_0x414ff9(0x139)][_0x414ff9(0x257)]&&!_0x51b4cb[_0x414ff9(0x12e)]&&(_0x331562['memberID']=_0xc36a76['data']['memberID'],_0x51b4cb[_0x414ff9(0x25f)][_0x414ff9(0x131)](_0x331562),this[_0x414ff9(0x343)]['next'](0x3),_0x51b4cb['socketReady']=!0x0,_0x51b4cb[_0x414ff9(0x31d)]=null),_0x37a9a0===_0x11fae4[_0x414ff9(0x139)][_0x414ff9(0x3dc)]&&this['_clearTimeoutTimer'](_0x51b4cb),this['_rescheduleHeartbeat'](_0x51b4cb);}[_0x405303(0x3c2)](_0x32d79c){const _0x24765f=_0x405303;return[...this[_0x24765f(0x199)]['values']()]['some'](_0x1e59aa=>_0x1e59aa===_0x32d79c);}[_0x405303(0x165)](_0x227086){const _0x1f8d67=_0x405303;let _0x1c3591=_0x227086==null?'':_0x227086,_0x147b03=this['_socketChannels']['get'](_0x1c3591);if(_0x147b03)return _0x147b03;let _0x565fae={'endpointKey':_0x1c3591,'endpoint':_0x227086,'socket$':new _0x31dca4[(_0x1f8d67(0x31b))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x1f8d67(0x241)][_0x1f8d67(0x339)](_0x1c3591,_0x565fae),_0x565fae;}['_rescheduleHeartbeat'](_0x2564a){const _0x442b1d=_0x405303;var _0x12f80a;this[_0x442b1d(0x264)](_0x2564a),_0x2564a['sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](_0x2564a),(_0x12f80a=this[_0x442b1d(0x3d2)]['getConfig'](_0x442b1d(0x2db)))==null?0x7530:_0x12f80a);}['_sendHeartbeat'](_0x5c7143){const _0x1b3fa8=_0x405303;_0x5c7143[_0x1b3fa8(0x25f)][_0x1b3fa8(0x22a)]()['send']({'cmd':_0x11fae4[_0x1b3fa8(0x139)][_0x1b3fa8(0x3dc)]}),this['_waitForHeartbeatResponse'](_0x5c7143);}[_0x405303(0x285)](_0x2d1665){const _0x7e3fc4=_0x405303;var _0xf34594;_0x2d1665[_0x7e3fc4(0x14d)]=setTimeout(()=>this['_onConnectionFailed'](_0x2d1665),(_0xf34594=this[_0x7e3fc4(0x3d2)]['getConfig'](_0x7e3fc4(0x26f)))==null?_0x1dd4cb:_0xf34594);}['_clearHeartbeatTimer'](_0x44a63f){const _0x378461=_0x405303;_0x44a63f[_0x378461(0x2fb)]!=null&&(clearTimeout(_0x44a63f[_0x378461(0x2fb)]),_0x44a63f[_0x378461(0x2fb)]=null);}[_0x405303(0x404)](_0xd3834b){const _0x5eb704=_0x405303;_0xd3834b['timeoutTimer']!=null&&(clearTimeout(_0xd3834b['timeoutTimer']),_0xd3834b[_0x5eb704(0x14d)]=null);}};_0x4c98b9=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x1,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0x2,_0x2d0b9f[_0x405303(0x346)]),_0x43549d(0x3,_0x581f35),_0x43549d(0x4,(0x0,_0x2d0b9f['Inject'])(_0xa9d46c)),_0x43549d(0x5,_0x562152),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x1e1155))],_0x4c98b9);let _0x58a316=class extends _0x2d0b9f[_0x405303(0x16d)]{constructor(_0x3087b9,_0x486a73,_0x1cfe87,_0x4514a3){const _0x33294d=_0x405303;var _0x3fb2b5;super(),this['_injector']=_0x3087b9,this['_collabSessionService']=_0x486a73,this[_0x33294d(0x3d2)]=_0x1cfe87,this[_0x33294d(0x347)]=_0x4514a3,_0x4219eb(this,_0x33294d(0x122),new Map()),_0x4219eb(this,'_entityInit$',new _0x31dca4[(_0x33294d(0x29e))]()),_0x4219eb(this,'entityInit$',this['_entityInit$'][_0x33294d(0x41c)]()),((_0x3fb2b5=this[_0x33294d(0x3d2)][_0x33294d(0x112)](_0x33294d(0x21e)))==null?void 0x0:_0x3fb2b5[_0x33294d(0x227)])!==!0x1&&this[_0x33294d(0x176)]();}[_0x405303(0x309)](){const _0x487a21=_0x405303;super[_0x487a21(0x309)](),this['_entities'][_0x487a21(0x412)](_0x30697c=>_0x30697c[_0x487a21(0x309)]()),this[_0x487a21(0x122)][_0x487a21(0x3c7)]();}[_0x405303(0x15b)](_0x24458c){const _0x5698f5=_0x405303;var _0xe5397d;return(_0xe5397d=this[_0x5698f5(0x122)][_0x5698f5(0x1b8)](_0x24458c))==null?null:_0xe5397d;}['getCollabEntity$'](_0x202985){const _0x570c3f=_0x405303;let _0x5949c7=this[_0x570c3f(0x15b)](_0x202985);return _0x5949c7?(0x0,_0x31dca4['of'])(_0x5949c7):this[_0x570c3f(0x179)][_0x570c3f(0x18e)]((0x0,_0x2ba3c8[_0x570c3f(0x24d)])(_0xadcdf7=>_0xadcdf7['unitID']===_0x202985));}[_0x405303(0x1a5)](_0x3ccbc4){const _0x2101bf=_0x405303;return(0x0,_0x31dca4[_0x2101bf(0x2a8)])(this[_0x2101bf(0x3d7)](_0x3ccbc4)[_0x2101bf(0x18e)]((0x0,_0x2ba3c8[_0x2101bf(0x110)])(()=>void 0x0)));}['_init'](){const _0x3396d0=_0x405303;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2d0b9f[_0x3396d0(0x341)]['UNIVER_SHEET'])[_0x3396d0(0x18e)]((0x0,_0x31dca4['takeUntil'])(this[_0x3396d0(0x405)]),(0x0,_0x2ba3c8[_0x3396d0(0x152)])(0x10))[_0x3396d0(0x120)](async _0x2bfad2=>{const _0x329251=_0x3396d0;let _0x16107c=_0x2bfad2['unit'][_0x329251(0x202)](),_0x55eb3b=await this[_0x329251(0x27b)](_0x16107c,_0x2d0b9f['UniverInstanceType'][_0x329251(0x378)]);this['_entities']['set'](_0x16107c,_0x55eb3b);}),this[_0x3396d0(0x347)]['getTypeOfUnitAdded$'](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x13a)])['pipe']((0x0,_0x31dca4[_0x3396d0(0x220)])(this[_0x3396d0(0x405)]),(0x0,_0x2ba3c8[_0x3396d0(0x152)])(0x10))[_0x3396d0(0x18e)]((0x0,_0x2ba3c8['filter'])(_0x474f62=>!_0x474f62[_0x3396d0(0x417)][_0x3396d0(0x202)]()[_0x3396d0(0x3ea)]('__')))['subscribe'](async _0x2c819c=>{const _0x428849=_0x3396d0;let _0x1441ad=_0x2c819c['unit'][_0x428849(0x202)](),_0x34080b=await this['_startCollaboration'](_0x1441ad,_0x2d0b9f['UniverInstanceType'][_0x428849(0x13a)]);this[_0x428849(0x122)][_0x428849(0x339)](_0x1441ad,_0x34080b);}),this['_univerInstanceService'][_0x3396d0(0x307)](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x358)])[_0x3396d0(0x18e)]((0x0,_0x31dca4[_0x3396d0(0x220)])(this[_0x3396d0(0x405)]),(0x0,_0x2ba3c8[_0x3396d0(0x152)])(0x10))[_0x3396d0(0x120)](async _0x1e25af=>{const _0x28a606=_0x3396d0;let _0x2995d2=_0x1e25af[_0x28a606(0x417)][_0x28a606(0x202)](),_0x1763a3=await this['_startCollaboration'](_0x2995d2,_0x2d0b9f[_0x28a606(0x341)][_0x28a606(0x358)]);this['_entities']['set'](_0x2995d2,_0x1763a3);}),this[_0x3396d0(0x347)][_0x3396d0(0x307)](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x333)])[_0x3396d0(0x18e)]((0x0,_0x31dca4[_0x3396d0(0x220)])(this[_0x3396d0(0x405)]),(0x0,_0x2ba3c8['delay'])(0x10))[_0x3396d0(0x120)](async _0x32af34=>{const _0x25d43e=_0x3396d0;let _0x3e739b=_0x32af34[_0x25d43e(0x417)][_0x25d43e(0x202)](),_0x273298=await this['_startCollaboration'](_0x3e739b,_0x2d0b9f['UniverInstanceType'][_0x25d43e(0x333)]);this[_0x25d43e(0x122)][_0x25d43e(0x339)](_0x3e739b,_0x273298);}),this['_univerInstanceService'][_0x3396d0(0x307)](_0x2d0b9f[_0x3396d0(0x341)]['UNIVER_BASE'])['pipe']((0x0,_0x31dca4['takeUntil'])(this[_0x3396d0(0x405)]),(0x0,_0x2ba3c8[_0x3396d0(0x152)])(0x10))['subscribe'](async _0x44bc30=>{const _0xb2c10f=_0x3396d0;let _0x5c6418=_0x44bc30[_0xb2c10f(0x417)][_0xb2c10f(0x202)](),_0x5512a1=await this[_0xb2c10f(0x27b)](_0x5c6418,_0x2d0b9f[_0xb2c10f(0x341)][_0xb2c10f(0x17d)]);this[_0xb2c10f(0x122)][_0xb2c10f(0x339)](_0x5c6418,_0x5512a1);}),this['_univerInstanceService'][_0x3396d0(0x307)](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x31e)])[_0x3396d0(0x18e)]((0x0,_0x31dca4[_0x3396d0(0x220)])(this['dispose$']),(0x0,_0x2ba3c8[_0x3396d0(0x152)])(0x10))['subscribe'](async _0x14d1a7=>{const _0x528dce=_0x3396d0;let _0x401e24=_0x14d1a7[_0x528dce(0x417)]['getUnitId'](),_0x2e0d8f=await this[_0x528dce(0x27b)](_0x401e24,_0x2d0b9f[_0x528dce(0x341)]['UNIVER_PDF']);this['_entities'][_0x528dce(0x339)](_0x401e24,_0x2e0d8f);}),(0x0,_0x31dca4['merge'])(this[_0x3396d0(0x347)][_0x3396d0(0x336)](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x378)]),this[_0x3396d0(0x347)]['getTypeOfUnitDisposed$'](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x13a)]),this[_0x3396d0(0x347)][_0x3396d0(0x336)](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x358)]),this[_0x3396d0(0x347)][_0x3396d0(0x336)](_0x2d0b9f['UniverInstanceType']['UNIVER_BOARD']),this[_0x3396d0(0x347)][_0x3396d0(0x336)](_0x2d0b9f[_0x3396d0(0x341)]['UNIVER_BASE']),this[_0x3396d0(0x347)][_0x3396d0(0x336)](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x31e)]))['pipe']((0x0,_0x31dca4[_0x3396d0(0x220)])(this[_0x3396d0(0x405)]))['subscribe'](_0xfe643b=>{const _0x45067c=_0x3396d0;let _0x26a94b=_0xfe643b[_0x45067c(0x202)](),_0x2c2d44=this[_0x45067c(0x122)][_0x45067c(0x1b8)](_0x26a94b);_0x2c2d44&&(_0x2c2d44[_0x45067c(0x309)](),this[_0x45067c(0x122)][_0x45067c(0x142)](_0x26a94b));});}async[_0x405303(0x27b)](_0x46ed7e,_0xe62859){const _0x30eb9c=_0x405303;let _0x4b758d=await this[_0x30eb9c(0x3df)][_0x30eb9c(0x305)](_0x46ed7e),_0x47c056=this[_0x30eb9c(0x3ef)]['createInstance'](this[_0x30eb9c(0x3f1)](_0xe62859),_0x46ed7e,_0xe62859,_0x4b758d);return await _0x47c056['init'](),this[_0x30eb9c(0x179)][_0x30eb9c(0x131)](_0x47c056),_0x47c056;}[_0x405303(0x3f1)](_0x512316){const _0xcf3ed2=_0x405303;switch(_0x512316){case _0x2d0b9f[_0xcf3ed2(0x341)][_0xcf3ed2(0x13a)]:return _0x5a7876;case _0x2d0b9f[_0xcf3ed2(0x341)][_0xcf3ed2(0x378)]:return _0x5080f;case _0x2d0b9f['UniverInstanceType'][_0xcf3ed2(0x358)]:return _0x33945f;case _0x2d0b9f[_0xcf3ed2(0x341)][_0xcf3ed2(0x333)]:return _0x4cf531;case _0x2d0b9f['UniverInstanceType']['UNIVER_BASE']:return _0x59b528;case _0x2d0b9f[_0xcf3ed2(0x341)]['UNIVER_PDF']:return _0x514c5a;default:throw Error(_0xcf3ed2(0x271)+_0x512316);}}};_0x58a316=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x1,(0x0,_0x2d0b9f['Inject'])(_0x4c98b9)),_0x43549d(0x2,_0x2d0b9f['IConfigService']),_0x43549d(0x3,_0x2d0b9f[_0x405303(0x217)])],_0x58a316);var _0x556b81=_0x405303(0x2f4),_0x5f209a=_0x405303(0x1b6);let _0x3ed61f=class extends _0x2d0b9f[_0x405303(0x2c1)]{constructor(_0x28a6a7,_0x94e884){const _0x3a45a3=_0x405303;super(),this[_0x3a45a3(0x347)]=_0x28a6a7,this[_0x3a45a3(0x3d2)]=_0x94e884,this[_0x3a45a3(0x176)]();}[_0x405303(0x176)](){const _0x493955=_0x405303;this['disposeWithMe'](this[_0x493955(0x347)][_0x493955(0x205)][_0x493955(0x120)](()=>{const _0x45573f=_0x493955;var _0x1f4ae9;let _0x420836=this[_0x45573f(0x347)][_0x45573f(0x1bf)](),_0x1d1bf8=(_0x1f4ae9=this['_configService'][_0x45573f(0x112)](_0x45573f(0x2f5)))==null?'Univer':_0x1f4ae9;_0x420836 instanceof _0x2d0b9f['Workbook']&&(_0x1d1bf8=_0x420836['name']),document['title']=_0x1d1bf8;}));}};_0x3ed61f=_0x3934d9([_0x43549d(0x0,_0x2d0b9f['IUniverInstanceService']),_0x43549d(0x1,_0x2d0b9f[_0x405303(0x346)])],_0x3ed61f);let _0x29321d=(0x0,_0x2d0b9f['createIdentifier'])(_0x405303(0x33c)),_0x36dd49=class{constructor(_0xac8f33,_0x2fba5a,_0x23fe2d){const _0x4de4d0=_0x405303;this[_0x4de4d0(0x121)]=_0xac8f33,this[_0x4de4d0(0x3d2)]=_0x2fba5a,this[_0x4de4d0(0x347)]=_0x23fe2d;}[_0x405303(0x3fb)](){var _0x2458f4;return(_0x2458f4=this['_getConfig']()['attachment'])==null?{}:_0x2458f4;}async[_0x405303(0x355)](_0x5158b6){const _0x430636=_0x405303;let _0x59a688=this[_0x430636(0x3fb)]();if(_0x279903(_0x5158b6,_0x59a688),_0x59a688['upload'])return _0x59a688[_0x430636(0x2e4)](_0x5158b6);let _0x46af17=await this[_0x430636(0x313)](_0x5158b6);return{'id':_0x46af17,'name':_0x5158b6[_0x430636(0xeb)],'mimeType':_0x5158b6[_0x430636(0x24b)],'size':_0x5158b6[_0x430636(0x1db)],'sourceType':_0x2d0b9f[_0x430636(0x41f)]['UUID'],'source':_0x46af17};}async[_0x405303(0x41a)](_0x5a49e4,_0x43ac90){const _0x42a113=_0x405303;if(_0x43ac90!==_0x2d0b9f[_0x42a113(0x41f)][_0x42a113(0x2f1)])return _0x5a49e4;let _0x478f76=(await this[_0x42a113(0x121)][_0x42a113(0x1b8)](this[_0x42a113(0x18a)]()[_0x42a113(0x1ee)]('{fileID}',_0x5a49e4)))[_0x42a113(0x43d)];if(_0x478f76[_0x42a113(0x2a9)]&&_0x478f76['error'][_0x42a113(0x2c4)]!==_0x11fae4[_0x42a113(0x334)]['OK'])throw _0x478f76['error'];if(!_0x478f76['url'])throw Error(_0x42a113(0xf8));return(0x0,_0x2d0b9f['resolveWithBasePath'])(_0x478f76[_0x42a113(0x204)],this['_getDownloadEndpointURL']());}async[_0x405303(0x313)](_0x47a9fb){const _0x2e671b=_0x405303;let _0x5df086=this[_0x2e671b(0x347)][_0x2e671b(0x1bf)](),_0x131298=_0x5df086==null?void 0x0:_0x5df086[_0x2e671b(0x202)]();if(!_0x131298)throw Error(_0x2e671b(0x1b5));let _0x205da4=new FormData();_0x205da4[_0x2e671b(0x43f)]('file',_0x47a9fb);let _0x132c77=this['_getUploadFileURL']()+_0x2e671b(0x319)+_0x47a9fb[_0x2e671b(0x1db)][_0x2e671b(0x349)]()+_0x2e671b(0x369)+_0x11fae4[_0x2e671b(0x34e)][_0x2e671b(0x3f8)]+_0x2e671b(0x156)+encodeURIComponent(_0x131298),_0x5cd7e3=(await this[_0x2e671b(0x121)][_0x2e671b(0x3f5)](_0x132c77,{'body':_0x205da4}))[_0x2e671b(0x43d)][_0x2e671b(0x2d1)];if(typeof _0x5cd7e3!='string'||!_0x5cd7e3)throw Error(_0x2e671b(0x13d));return _0x5cd7e3;}[_0x405303(0x27f)](){const _0x124773=_0x405303;var _0x14f251;return(_0x14f251=this[_0x124773(0x1ac)]()['uploadFileServerUrl'])==null?_0x124773(0x234):_0x14f251;}[_0x405303(0x18a)](){const _0x12c195=_0x405303;var _0x357ac4;return(_0x357ac4=this[_0x12c195(0x1ac)]()[_0x12c195(0x338)])==null?_0x12c195(0x441):_0x357ac4;}[_0x405303(0x33f)](){const _0x3ec3c1=_0x405303;var _0x426217;let _0x50d5d0=this[_0x3ec3c1(0x1ac)]();return _0x50d5d0[_0x3ec3c1(0x3d3)]?_0x50d5d0[_0x3ec3c1(0x3d3)]:typeof location<'u'?location[_0x3ec3c1(0x1cf)]:(_0x426217=_0x50d5d0['uploadFileServerUrl'])==null?'':_0x426217;}['_getConfig'](){const _0x246a65=_0x405303;var _0x664168;return(_0x664168=this[_0x246a65(0x3d2)]['getConfig'](_0x246a65(0x21e)))==null?{}:_0x664168;}};_0x36dd49=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xc90c47[_0x405303(0x141)])),_0x43549d(0x1,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x346)])),_0x43549d(0x2,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x217)]))],_0x36dd49);function _0x279903(_0x345a51,_0x1037a2){const _0x37a8a2=_0x405303;var _0x3b6346;if(_0x1037a2['maxSize']!=null&&_0x345a51[_0x37a8a2(0x1db)]>_0x1037a2[_0x37a8a2(0x2be)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x3b6346=_0x1037a2[_0x37a8a2(0x368)])!=null&&_0x3b6346[_0x37a8a2(0x182)]&&!_0x1037a2[_0x37a8a2(0x368)][_0x37a8a2(0x231)](_0x188ed0=>_0x345a51[_0x37a8a2(0x24b)]===_0x188ed0||_0x345a51[_0x37a8a2(0xeb)][_0x37a8a2(0x3f3)](_0x188ed0)||_0x188ed0[_0x37a8a2(0x3f3)]('/*')&&_0x345a51[_0x37a8a2(0x24b)][_0x37a8a2(0x3ea)](_0x188ed0[_0x37a8a2(0x33d)](0x0,-0x1))))throw Error(_0x37a8a2(0x239));}let _0x1eed0d=class{constructor(_0x373545,_0x55b40c,_0x42d377){const _0x53be21=_0x405303;this[_0x53be21(0x3d2)]=_0x373545,this['_httpService']=_0x55b40c,this[_0x53be21(0x11e)]=_0x42d377,this[_0x53be21(0x3c9)]();}['init'](){const _0x2ef415=_0x405303;this[_0x2ef415(0x121)][_0x2ef415(0x42d)]({'priority':0x1,'interceptor':(_0x3ef600,_0x5d8413)=>_0x5d8413(_0x3ef600)[_0x2ef415(0x18e)]((0x0,_0x31dca4[_0x2ef415(0x367)])(async _0x17ea83=>{const _0x2629d1=_0x2ef415;let _0x2e4da4=_0x17ea83;if(_0x2e4da4[_0x2629d1(0x1b9)]===0x191){if(typeof window>'u')throw Error(_0x2629d1(0x2b9));if(window[_0x2629d1(0x401)](this['localeService']['t'](_0x2629d1(0x410)))){let _0xf155c0=window[_0x2629d1(0x443)](window['location'][_0x2629d1(0x111)]);window[_0x2629d1(0x354)]['href']=this[_0x2629d1(0x1de)]()+_0x2629d1(0x377)+_0xf155c0;}}return _0x2e4da4;}))});}[_0x405303(0x1de)](){const _0x4790a=_0x405303;var _0x190950;let _0x4610b2=this['_configService']['getConfig'](_0x51e182);return(_0x190950=_0x4610b2==null?void 0x0:_0x4610b2[_0x4790a(0x2e1)])==null?'/universer-api/oidc/authpage':_0x190950;}};_0x1eed0d=_0x3934d9([_0x43549d(0x0,_0x2d0b9f['IConfigService']),_0x43549d(0x1,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xc90c47[_0x405303(0x141)])),_0x43549d(0x2,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x39b)]))],_0x1eed0d);let _0x4e73d2=class extends _0x2d0b9f[_0x405303(0x2c1)]{constructor(_0x13a52d,_0x1550c6){const _0x3578b4=_0x405303;super(),this[_0x3578b4(0x2a0)]=_0x13a52d,this[_0x3578b4(0x3d2)]=_0x1550c6,_0x4219eb(this,'_cfgEnableObjInherit',!0x1),this[_0x3578b4(0x1f6)]();}['_initMergeInterceptor'](){const _0x2afbad=_0x405303;let _0x167ea3=this;this['disposeWithMe'](this[_0x2afbad(0x2a0)][_0x2afbad(0x42d)]({'priority':0x3e7,'interceptor':(0x0,_0xc90c47[_0x2afbad(0x40f)])({'isMatch'(_0x487402){const _0x46de30=_0x2afbad;var _0x4a9d48;if(_0x487402['method']===_0x46de30(0x427)&&(_0x4a9d48=_0x487402[_0x46de30(0x337)])!=null&&_0x4a9d48['body']){let {objectID:_0x4afb88,objectType:_0x1bee40}=_0x487402[_0x46de30(0x337)][_0x46de30(0x43d)]||{};if(!_0x4afb88||_0x1bee40===void 0x0)return!0x1;let _0x3ec2b4=_0x167ea3[_0x46de30(0x2a1)]()+'/'+_0x1bee40+'/object/'+_0x4afb88+_0x46de30(0x25c);if(_0x487402[_0x46de30(0x204)]===_0x3ec2b4)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xc11797){const _0x5469a4=_0x2afbad;var _0x1e1dfd;return(_0x1e1dfd=_0xc11797[_0x5469a4(0x337)])==null?void 0x0:_0x1e1dfd['body'];},'mergeParamsToRequest'(_0x40aebf,_0x1ce57e){const _0xf5d721=_0x2afbad;let _0x3f048f=_0x167ea3[_0xf5d721(0x2a1)]()+_0xf5d721(0x1d8),_0x410851=_0x40aebf[_0xf5d721(0x219)]((_0xe81d16,_0xf6636f)=>{const _0xb4bad1=_0xf5d721;let {unitID:_0x2f9f70,objectID:_0x4fb01b,objectType:_0x2556bd,actions:_0x44c3b6}=_0xf6636f;return _0xe81d16[_0x2f9f70]||(_0xe81d16[_0x2f9f70]={}),_0xe81d16[_0x2f9f70][_0x4fb01b]||(_0xe81d16[_0x2f9f70][_0x4fb01b]={'objectID':_0x4fb01b,'objectType':_0x2556bd,'actions':[]}),_0xe81d16[_0x2f9f70][_0x4fb01b][_0xb4bad1(0x208)]['push'](..._0x44c3b6),_0xe81d16;},{}),_0x1c9903=[];for(let _0x5bc6cc in _0x410851)for(let _0x8caccd in _0x410851[_0x5bc6cc]){let {actions:_0x1a569f,objectType:_0x2a7708}=_0x410851[_0x5bc6cc][_0x8caccd],_0x4206e3=[...new Set(_0x1a569f)];_0x1c9903[_0xf5d721(0x1f4)]({'unitID':_0x5bc6cc,'objectID':_0x8caccd,'objectType':_0x2a7708,'actions':_0x4206e3});}return new _0xc90c47[(_0xf5d721(0x3a4))](_0xf5d721(0x427),_0x3f048f,{'headers':_0x1ce57e['headers'],'withCredentials':_0x1ce57e[_0xf5d721(0x2bc)],'responseType':_0x1ce57e[_0xf5d721(0x2a3)],'body':{'requests':_0x1c9903}});}},{'distributeResult'(_0x2710c2,_0x4bc7b6){let {objectActions:_0x564ed4}=_0x2710c2;return _0x4bc7b6['map'](_0x105bb5=>{const _0x379a16=_0x4e8d;let {unitID:_0x227dbe,objectID:_0x42ab2d,actions:_0x43bee8}=_0x105bb5,_0x5b67c9=_0x564ed4['find'](_0x4eedf0=>_0x4eedf0[_0x379a16(0x1c9)]===_0x227dbe&&_0x4eedf0[_0x379a16(0x407)]===_0x42ab2d);return{'config':_0x105bb5,'result':{'actions':_0x43bee8['map'](_0x11142c=>_0x5b67c9==null?void 0x0:_0x5b67c9['actions']['find'](_0x254934=>_0x254934[_0x379a16(0x146)]===_0x11142c))[_0x379a16(0x24d)](_0x93ba82=>!!_0x93ba82),'error':_0x2710c2['error']}};});}})}));}[_0x405303(0x2a1)](){const _0x4accd2=_0x405303;var _0x2a3714;let _0x42ee66=this[_0x4accd2(0x3d2)][_0x4accd2(0x112)](_0x51e182);return(_0x2a3714=_0x42ee66==null?void 0x0:_0x42ee66['authzUrl'])==null?_0x4accd2(0x35e):_0x2a3714;}async[_0x405303(0x1ea)](_0x43b16a){const _0x2b2a2c=_0x405303;let _0x5b1b81=this[_0x2b2a2c(0x2a1)]()+'/'+_0x43b16a['objectType']+_0x2b2a2c(0xf3);return(await this[_0x2b2a2c(0x2a0)]['post'](_0x5b1b81,{'body':_0x43b16a}))['body'][_0x2b2a2c(0x407)]||'';}async[_0x405303(0x269)](_0x5c8762){const _0x3ae42c=_0x405303;let _0x293df6=this[_0x3ae42c(0x2a1)]()+_0x3ae42c(0x253);return(await this[_0x3ae42c(0x2a0)][_0x3ae42c(0x3f5)](_0x293df6,{'body':_0x5c8762}))['body'][_0x3ae42c(0x18c)];}async[_0x405303(0x1d5)](_0x18406f){const _0x44ac53=_0x405303;var _0x2a4fec;let _0x3d4eed=this[_0x44ac53(0x2a1)]()+'/'+_0x18406f['objectType']+_0x44ac53(0x3ad)+_0x18406f[_0x44ac53(0x407)],_0x1203e6=await this['_HTTPService'][_0x44ac53(0x16c)](_0x3d4eed,{'body':_0x18406f});if((_0x1203e6==null||(_0x2a4fec=_0x1203e6[_0x44ac53(0x43d)])==null||(_0x2a4fec=_0x2a4fec[_0x44ac53(0x2a9)])==null?void 0x0:_0x2a4fec[_0x44ac53(0x2c4)])!==0x1)throw Error(_0x44ac53(0x1ef));}async[_0x405303(0x3ac)](_0x22ed5e){const _0x12a45e=_0x405303;let _0x5f4e4f=this['_getAPIPrefixPath']()+'/'+_0x22ed5e[_0x12a45e(0x14c)]+_0x12a45e(0x3ad)+_0x22ed5e[_0x12a45e(0x407)]+_0x12a45e(0x25c);return(await this[_0x12a45e(0x2a0)][_0x12a45e(0x3f5)](_0x5f4e4f,{'body':_0x22ed5e}))[_0x12a45e(0x43d)]['actions'];}async[_0x405303(0x385)](_0x5a56e3){const _0x3466cf=_0x405303;let _0x26da1d=this[_0x3466cf(0x2a1)]()+_0x3466cf(0x1d8);return(await this[_0x3466cf(0x2a0)][_0x3466cf(0x3f5)](_0x26da1d,{'body':{'requests':_0x5a56e3}}))['body']['objectActions'];}async[_0x405303(0x434)](_0x4bc5e0){const _0x1db535=_0x405303;let _0x2438a6=this[_0x1db535(0x2a1)]()+'/'+_0x4bc5e0[_0x1db535(0x14c)]+_0x1db535(0x292),_0x56b61b=await this[_0x1db535(0x2a0)][_0x1db535(0x3f5)](_0x2438a6,{'body':_0x4bc5e0});return{'roles':_0x56b61b['body'][_0x1db535(0x418)],'actions':_0x56b61b[_0x1db535(0x43d)][_0x1db535(0x208)]};}async['deleteCollaborator'](_0x47a67f){const _0x3cb5ec=_0x405303;let _0x3efba8=this[_0x3cb5ec(0x2a1)]()+_0x3cb5ec(0x2f7);await this['_HTTPService'][_0x3cb5ec(0x142)](_0x3efba8,{'params':{'collaboratorID':_0x47a67f[_0x3cb5ec(0x26c)],'objectID':_0x47a67f[_0x3cb5ec(0x407)],'unitID':_0x47a67f['unitID']}});}async['updateCollaborator'](_0x1df905){const _0x2d74d1=_0x405303;let _0x580712=this[_0x2d74d1(0x2a1)]()+_0x2d74d1(0x2f7);await this[_0x2d74d1(0x2a0)][_0x2d74d1(0x32a)](_0x580712,{'body':_0x1df905});}async['createCollaborator'](_0x59e280){const _0x27c205=_0x405303;let _0x4578b1=this[_0x27c205(0x2a1)]()+'/collaborator';await this[_0x27c205(0x2a0)][_0x27c205(0x3f5)](_0x4578b1,{'body':_0x59e280});}async[_0x405303(0x235)](_0x1a1db8){const _0x2f5ab2=_0x405303;var _0x48daaa;let _0x47f2ed=this[_0x2f5ab2(0x2a1)]()+'/collaborator',_0x2c0901=await this['_HTTPService']['get'](_0x47f2ed,{'params':{'objectID':_0x1a1db8[_0x2f5ab2(0x407)],'unitID':_0x1a1db8[_0x2f5ab2(0x1c9)]}});return this['setCfgEnableObjInherit']((_0x48daaa=_0x2c0901[_0x2f5ab2(0x43d)]['cfgEnableObjInherit'])!=null&&_0x48daaa),_0x2c0901['body']['collaborators'];}async[_0x405303(0x2c8)](_0x19644f){const _0x4436a5=_0x405303;let _0xca0352=this[_0x4436a5(0x2a1)]()+'/collaborator';await this['_HTTPService'][_0x4436a5(0x16c)](_0xca0352,{'body':_0x19644f});}[_0x405303(0x25b)](_0x27a8a2){const _0x2247e8=_0x405303;this[_0x2247e8(0x3a8)]=_0x27a8a2;}[_0x405303(0xf7)](){const _0xa0be02=_0x405303;return this[_0xa0be02(0x3a8)];}};_0x4e73d2=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xc90c47[_0x405303(0x141)])),_0x43549d(0x1,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x346)]))],_0x4e73d2);function _0x493704(_0x475ff5){const _0x22af74=_0x405303;return _0x475ff5 instanceof Uint8Array||ArrayBuffer[_0x22af74(0x397)](_0x475ff5)&&_0x475ff5[_0x22af74(0x211)][_0x22af74(0xeb)]==='Uint8Array'&&_0x22af74(0x361)in _0x475ff5&&_0x475ff5[_0x22af74(0x361)]===0x1;}function _0x5152b7(_0x141598){const _0x48a75f=_0x405303;if(typeof _0x141598!=_0x48a75f(0x416))throw TypeError(_0x48a75f(0x21c)+typeof _0x141598);if(!Number['isSafeInteger'](_0x141598)||_0x141598<0x0)throw RangeError('positive\x20integer\x20expected,\x20got\x20'+_0x141598);}function _0x59702c(_0x12701c,_0x5cd13f,_0x3ba123=''){const _0x4e030c=_0x405303;let _0x2dac9c=_0x493704(_0x12701c),_0x5a54e6=_0x12701c==null?void 0x0:_0x12701c[_0x4e030c(0x182)],_0x4d1b8e=_0x5cd13f!==void 0x0;if(!_0x2dac9c||_0x4d1b8e&&_0x5a54e6!==_0x5cd13f){let _0x5022ce=_0x3ba123&&'\x22'+_0x3ba123+'\x22\x20',_0x3da67a=_0x4d1b8e?_0x4e030c(0x17c)+_0x5cd13f:'',_0x1e5767=_0x2dac9c?_0x4e030c(0x198)+_0x5a54e6:'type='+typeof _0x12701c,_0x1b5bc6=_0x5022ce+_0x4e030c(0x436)+_0x3da67a+_0x4e030c(0x2e0)+_0x1e5767;throw _0x2dac9c?RangeError(_0x1b5bc6):TypeError(_0x1b5bc6);}return _0x12701c;}function _0x1e90c9(_0x22082b){const _0x3aa64b=_0x405303;return new Uint32Array(_0x22082b[_0x3aa64b(0x432)],_0x22082b[_0x3aa64b(0x11f)],Math[_0x3aa64b(0x2ff)](_0x22082b['byteLength']/0x4));}function _0x1156c1(..._0xe71405){const _0x387036=_0x405303;for(let _0x443b2e=0x0;_0x443b2e<_0xe71405[_0x387036(0x182)];_0x443b2e++)_0xe71405[_0x443b2e][_0x387036(0x2e9)](0x0);}let _0x5f5b9f=new Uint8Array(new Uint32Array([0x11223344])[_0x405303(0x432)])[0x0]===0x44,_0x5aead7=_0x2c9a94=>_0x2c9a94<<0x18&0xff000000|_0x2c9a94<<0x8&0xff0000|_0x2c9a94>>>0x8&0xff00|_0x2c9a94>>>0x18&0xff,_0x3a82af=_0x5f5b9f?_0x599a72=>_0x599a72:_0x2bd2a0=>{for(let _0x36ce51=0x0;_0x36ce51<_0x2bd2a0['length'];_0x36ce51++)_0x2bd2a0[_0x36ce51]=_0x5aead7(_0x2bd2a0[_0x36ce51]);return _0x2bd2a0;};function _0x13ef42(_0x42f8d6){const _0x4f1cb3=_0x405303;if(typeof _0x42f8d6!=_0x4f1cb3(0x163))throw TypeError(_0x4f1cb3(0x27e));return new Uint8Array(new TextEncoder()[_0x4f1cb3(0x23a)](_0x42f8d6));}function _0xbdccf3(_0x12ecfa,_0x391eef){const _0x4d7e35=_0x405303;return!_0x12ecfa['byteLength']||!_0x391eef[_0x4d7e35(0x137)]?!0x1:_0x12ecfa[_0x4d7e35(0x432)]===_0x391eef['buffer']&&_0x12ecfa[_0x4d7e35(0x11f)]<_0x391eef[_0x4d7e35(0x11f)]+_0x391eef[_0x4d7e35(0x137)]&&_0x391eef[_0x4d7e35(0x11f)]<_0x12ecfa['byteOffset']+_0x12ecfa[_0x4d7e35(0x137)];}function _0x11aacb(_0x5d6d88,_0x582d98){const _0x4f4cf3=_0x405303;if(_0xbdccf3(_0x5d6d88,_0x582d98)&&_0x5d6d88[_0x4f4cf3(0x11f)]<_0x582d98['byteOffset'])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0x1d87d1(..._0x95fd31){const _0x4618d9=_0x405303;let _0x43dc4c=0x0;for(let _0x1e14cd=0x0;_0x1e14cd<_0x95fd31[_0x4618d9(0x182)];_0x1e14cd++){let _0x168d9f=_0x95fd31[_0x1e14cd];_0x59702c(_0x168d9f),_0x43dc4c+=_0x168d9f['length'];}let _0x3017ef=new Uint8Array(_0x43dc4c);for(let _0x40b6ad=0x0,_0x15e1ef=0x0;_0x40b6ad<_0x95fd31['length'];_0x40b6ad++){let _0x3917d5=_0x95fd31[_0x40b6ad];_0x3017ef[_0x4618d9(0x339)](_0x3917d5,_0x15e1ef),_0x15e1ef+=_0x3917d5[_0x4618d9(0x182)];}return _0x3017ef;}let _0x238229=(_0x2f2670,_0x21b2b5)=>{const _0x205c93=_0x405303;function _0x389240(_0x2771b2,..._0x442b54){const _0x1c4b7d=_0x4e8d;if(_0x59702c(_0x2771b2,void 0x0,_0x1c4b7d(0x22f)),_0x2f2670[_0x1c4b7d(0x36b)]!==void 0x0){let _0x5bc1c8=_0x442b54[0x0];_0x59702c(_0x5bc1c8,_0x2f2670[_0x1c4b7d(0x14b)]?void 0x0:_0x2f2670['nonceLength'],'nonce');}let _0x43cc0f=_0x2f2670[_0x1c4b7d(0x263)];_0x43cc0f&&_0x442b54[0x1]!==void 0x0&&_0x59702c(_0x442b54[0x1],void 0x0,_0x1c4b7d(0x248));let _0x3d99b3=_0x21b2b5(_0x2771b2,..._0x442b54),_0x4f5383=(_0x3aec3d,_0x3fab61)=>{const _0x5a385e=_0x1c4b7d;if(_0x3fab61!==void 0x0){if(_0x3aec3d!==0x2)throw Error(_0x5a385e(0x3ee));_0x59702c(_0x3fab61,void 0x0,_0x5a385e(0x1dc));}},_0x2ff6c8=!0x1;return{'encrypt'(_0x1aa094,_0x6d0e85){const _0x26d5e5=_0x1c4b7d;if(_0x2ff6c8)throw Error(_0x26d5e5(0x2c2));return _0x2ff6c8=!0x0,_0x59702c(_0x1aa094),_0x4f5383(_0x3d99b3[_0x26d5e5(0x17f)]['length'],_0x6d0e85),_0x3d99b3[_0x26d5e5(0x17f)](_0x1aa094,_0x6d0e85);},'decrypt'(_0x88342e,_0x1598cf){const _0xc6e919=_0x1c4b7d;if(_0x59702c(_0x88342e),_0x43cc0f&&_0x88342e[_0xc6e919(0x182)]<_0x43cc0f)throw Error(_0xc6e919(0x2d3)+_0x43cc0f);return _0x4f5383(_0x3d99b3[_0xc6e919(0x166)]['length'],_0x1598cf),_0x3d99b3['decrypt'](_0x88342e,_0x1598cf);}};}return Object[_0x205c93(0x230)](_0x389240,_0x2f2670),_0x389240;};function _0x573d2a(_0x2f533c,_0x202637,_0x4dc211=!0x0){const _0x2c2618=_0x405303;if(_0x202637===void 0x0)return new Uint8Array(_0x2f533c);if(_0x59702c(_0x202637,void 0x0,_0x2c2618(0x1dc)),_0x202637[_0x2c2618(0x182)]!==_0x2f533c)throw Error(_0x2c2618(0x2e3)+_0x2f533c+_0x2c2618(0x2ba)+_0x202637[_0x2c2618(0x182)]);if(_0x4dc211&&!_0x4c068f(_0x202637))throw Error(_0x2c2618(0x196));return _0x202637;}function _0x4c068f(_0x3e8dc7){const _0xd62be2=_0x405303;return _0x3e8dc7[_0xd62be2(0x11f)]%0x4==0x0;}function _0x18912e(_0x3511c3){const _0x5d7d32=_0x405303;return Uint8Array[_0x5d7d32(0x154)](_0x59702c(_0x3511c3));}function _0x2a8c18(_0x198711=0x20){const _0x14868a=_0x405303;_0x5152b7(_0x198711);let _0x481828=typeof globalThis=='object'?globalThis[_0x14868a(0x3e6)]:null;if(typeof(_0x481828==null?void 0x0:_0x481828['getRandomValues'])!='function')throw Error('crypto.getRandomValues\x20must\x20be\x20defined');return _0x481828['getRandomValues'](new Uint8Array(_0x198711));}function _0x515be9(_0x17ca2a){const _0x526dad=_0x405303;if(![0x10,0x18,0x20][_0x526dad(0x281)](_0x17ca2a[_0x526dad(0x182)]))throw Error('\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length='+_0x17ca2a[_0x526dad(0x182)]);}function _0x45f5cf(_0x447fe8){return _0x447fe8<<0x1^0x11b&-(_0x447fe8>>0x7);}function _0x215908(_0x4a0195,_0x1b385f){let _0x482454=0x0;for(;_0x1b385f>0x0;_0x1b385f>>=0x1)_0x482454^=_0x4a0195&-(_0x1b385f&0x1),_0x4a0195=_0x45f5cf(_0x4a0195);return _0x482454;}let _0x1b2648=((()=>{let _0x2ad210=new Uint8Array(0x100);for(let _0x13c247=0x0,_0xfc8b48=0x1;_0x13c247<0x100;_0x13c247++,_0xfc8b48^=_0x45f5cf(_0xfc8b48))_0x2ad210[_0x13c247]=_0xfc8b48;let _0x5766f2=new Uint8Array(0x100);_0x5766f2[0x0]=0x63;for(let _0x564d09=0x0;_0x564d09<0xff;_0x564d09++){let _0x5ee049=_0x2ad210[0xff-_0x564d09];_0x5ee049|=_0x5ee049<<0x8,_0x5766f2[_0x2ad210[_0x564d09]]=(_0x5ee049^_0x5ee049>>0x4^_0x5ee049>>0x5^_0x5ee049>>0x6^_0x5ee049>>0x7^0x63)&0xff;}return _0x1156c1(_0x2ad210),_0x5766f2;})()),_0x1e65f0=_0x1b2648['map']((_0x292b05,_0x15b3da)=>_0x1b2648[_0x405303(0x398)](_0x15b3da)),_0x27c87d=_0x5592c2=>_0x5592c2<<0x18|_0x5592c2>>>0x8,_0x512129=_0x5b046c=>_0x5b046c<<0x8|_0x5b046c>>>0x18;function _0x452331(_0x580bc3,_0x1c5500){const _0x137f9b=_0x405303;if(_0x580bc3['length']!==0x100)throw Error(_0x137f9b(0x103));let _0xeae52d=new Uint32Array(0x100)[_0x137f9b(0x110)]((_0x440d03,_0x4e3ea3)=>_0x1c5500(_0x580bc3[_0x4e3ea3])),_0x20d2a6=_0xeae52d[_0x137f9b(0x110)](_0x512129),_0x16f699=_0x20d2a6[_0x137f9b(0x110)](_0x512129),_0x332047=_0x16f699['map'](_0x512129),_0x7f872c=new Uint32Array(0x100*0x100),_0x486689=new Uint32Array(0x100*0x100),_0x9d904f=new Uint16Array(0x100*0x100);for(let _0x3a3fd6=0x0;_0x3a3fd6<0x100;_0x3a3fd6++)for(let _0x2445e0=0x0;_0x2445e0<0x100;_0x2445e0++){let _0x203e4f=_0x3a3fd6*0x100+_0x2445e0;_0x7f872c[_0x203e4f]=_0xeae52d[_0x3a3fd6]^_0x20d2a6[_0x2445e0],_0x486689[_0x203e4f]=_0x16f699[_0x3a3fd6]^_0x332047[_0x2445e0],_0x9d904f[_0x203e4f]=_0x580bc3[_0x3a3fd6]<<0x8|_0x580bc3[_0x2445e0];}return{'sbox':_0x580bc3,'sbox2':_0x9d904f,'T0':_0xeae52d,'T1':_0x20d2a6,'T2':_0x16f699,'T3':_0x332047,'T01':_0x7f872c,'T23':_0x486689};}let _0x3831a7=_0x452331(_0x1b2648,_0x2a015d=>_0x215908(_0x2a015d,0x3)<<0x18|_0x2a015d<<0x10|_0x2a015d<<0x8|_0x215908(_0x2a015d,0x2)),_0xb1103a=_0x452331(_0x1e65f0,_0xf47d76=>_0x215908(_0xf47d76,0xb)<<0x18|_0x215908(_0xf47d76,0xd)<<0x10|_0x215908(_0xf47d76,0x9)<<0x8|_0x215908(_0xf47d76,0xe)),_0x2e86cc=((()=>{let _0x4085c8=new Uint8Array(0x10);for(let _0x4804d3=0x0,_0x56951f=0x1;_0x4804d3<0x10;_0x4804d3++,_0x56951f=_0x45f5cf(_0x56951f))_0x4085c8[_0x4804d3]=_0x56951f;return _0x4085c8;})());function _0x4b2b62(_0x38222a){const _0x2cf751=_0x405303;_0x59702c(_0x38222a);let _0x13f4bb=_0x38222a[_0x2cf751(0x182)];_0x515be9(_0x38222a);let {sbox2:_0x4af25a}=_0x3831a7,_0x9da2fa=[];(!_0x5f5b9f||!_0x4c068f(_0x38222a))&&_0x9da2fa[_0x2cf751(0x1f4)](_0x38222a=_0x18912e(_0x38222a));let _0x4ed7b0=_0x3a82af(_0x1e90c9(_0x38222a)),_0x5eb3fc=_0x4ed7b0[_0x2cf751(0x182)],_0x18900a=_0x3b16b0=>_0x52196b(_0x4af25a,_0x3b16b0,_0x3b16b0,_0x3b16b0,_0x3b16b0),_0x2009b6=new Uint32Array(_0x13f4bb+0x1c);_0x2009b6[_0x2cf751(0x339)](_0x4ed7b0);for(let _0x1aa4e4=_0x5eb3fc;_0x1aa4e4<_0x2009b6[_0x2cf751(0x182)];_0x1aa4e4++){let _0x4b7e9c=_0x2009b6[_0x1aa4e4-0x1];_0x1aa4e4%_0x5eb3fc===0x0?_0x4b7e9c=_0x18900a(_0x27c87d(_0x4b7e9c))^_0x2e86cc[_0x1aa4e4/_0x5eb3fc-0x1]:_0x5eb3fc>0x6&&_0x1aa4e4%_0x5eb3fc===0x4&&(_0x4b7e9c=_0x18900a(_0x4b7e9c)),_0x2009b6[_0x1aa4e4]=_0x2009b6[_0x1aa4e4-_0x5eb3fc]^_0x4b7e9c;}return _0x1156c1(..._0x9da2fa),_0x2009b6;}function _0x26f973(_0x5ec72e){const _0x4721b9=_0x405303;let _0x29bd55=_0x4b2b62(_0x5ec72e),_0x3fddb1=_0x29bd55[_0x4721b9(0x33d)](),_0x3c89f6=_0x29bd55[_0x4721b9(0x182)],{sbox2:_0x426fca}=_0x3831a7,{T0:_0x31e6c5,T1:_0x3bcc48,T2:_0x27230e,T3:_0x42c721}=_0xb1103a;for(let _0x353bfd=0x0;_0x353bfd<_0x3c89f6;_0x353bfd+=0x4)for(let _0x218ee6=0x0;_0x218ee6<0x4;_0x218ee6++)_0x3fddb1[_0x353bfd+_0x218ee6]=_0x29bd55[_0x3c89f6-_0x353bfd-0x4+_0x218ee6];_0x1156c1(_0x29bd55);for(let _0x54252c=0x4;_0x54252c<_0x3c89f6-0x4;_0x54252c++){let _0x44cdca=_0x3fddb1[_0x54252c],_0x4a51de=_0x52196b(_0x426fca,_0x44cdca,_0x44cdca,_0x44cdca,_0x44cdca);_0x3fddb1[_0x54252c]=_0x31e6c5[_0x4a51de&0xff]^_0x3bcc48[_0x4a51de>>>0x8&0xff]^_0x27230e[_0x4a51de>>>0x10&0xff]^_0x42c721[_0x4a51de>>>0x18];}return _0x3fddb1;}function _0x4b6912(_0x2bb1e0,_0x1bfda6,_0x29fe75,_0x5e8e9b,_0x5e124c,_0x171d6a){return _0x2bb1e0[_0x29fe75<<0x8&0xff00|_0x5e8e9b>>>0x8&0xff]^_0x1bfda6[_0x5e124c>>>0x8&0xff00|_0x171d6a>>>0x18&0xff];}function _0x52196b(_0x2e006b,_0x4a78ea,_0x383870,_0x4f1a5c,_0x3e013f){return _0x2e006b[_0x4a78ea&0xff|_0x383870&0xff00]|_0x2e006b[_0x4f1a5c>>>0x10&0xff|_0x3e013f>>>0x10&0xff00]<<0x10;}function _0x5b1151(_0x3880f3,_0x567c4d,_0x52fd3f,_0x26b436,_0x277e08){let {sbox2:_0x24283c,T01:_0xa55837,T23:_0x3b3457}=_0x3831a7,_0x2b8c5d=0x0;_0x567c4d^=_0x3880f3[_0x2b8c5d++],_0x52fd3f^=_0x3880f3[_0x2b8c5d++],_0x26b436^=_0x3880f3[_0x2b8c5d++],_0x277e08^=_0x3880f3[_0x2b8c5d++];let _0x1cc748=_0x3880f3['length']/0x4-0x2;for(let _0xbcbacf=0x0;_0xbcbacf<_0x1cc748;_0xbcbacf++){let _0x1c118a=_0x3880f3[_0x2b8c5d++]^_0x4b6912(_0xa55837,_0x3b3457,_0x567c4d,_0x52fd3f,_0x26b436,_0x277e08),_0x55ad7d=_0x3880f3[_0x2b8c5d++]^_0x4b6912(_0xa55837,_0x3b3457,_0x52fd3f,_0x26b436,_0x277e08,_0x567c4d),_0x43560b=_0x3880f3[_0x2b8c5d++]^_0x4b6912(_0xa55837,_0x3b3457,_0x26b436,_0x277e08,_0x567c4d,_0x52fd3f),_0x1ec1ca=_0x3880f3[_0x2b8c5d++]^_0x4b6912(_0xa55837,_0x3b3457,_0x277e08,_0x567c4d,_0x52fd3f,_0x26b436);_0x567c4d=_0x1c118a,_0x52fd3f=_0x55ad7d,_0x26b436=_0x43560b,_0x277e08=_0x1ec1ca;}return{'s0':_0x3880f3[_0x2b8c5d++]^_0x52196b(_0x24283c,_0x567c4d,_0x52fd3f,_0x26b436,_0x277e08),'s1':_0x3880f3[_0x2b8c5d++]^_0x52196b(_0x24283c,_0x52fd3f,_0x26b436,_0x277e08,_0x567c4d),'s2':_0x3880f3[_0x2b8c5d++]^_0x52196b(_0x24283c,_0x26b436,_0x277e08,_0x567c4d,_0x52fd3f),'s3':_0x3880f3[_0x2b8c5d++]^_0x52196b(_0x24283c,_0x277e08,_0x567c4d,_0x52fd3f,_0x26b436)};}function _0x12f90a(_0x511ac7,_0x1d64d3,_0x5b4761,_0x3b17c3,_0x3259a0){const _0x3613bc=_0x405303;let {sbox2:_0x56ce50,T01:_0x2b5e26,T23:_0xf82403}=_0xb1103a,_0x585712=0x0;_0x1d64d3^=_0x511ac7[_0x585712++],_0x5b4761^=_0x511ac7[_0x585712++],_0x3b17c3^=_0x511ac7[_0x585712++],_0x3259a0^=_0x511ac7[_0x585712++];let _0x223618=_0x511ac7[_0x3613bc(0x182)]/0x4-0x2;for(let _0x44cd55=0x0;_0x44cd55<_0x223618;_0x44cd55++){let _0x4f1340=_0x511ac7[_0x585712++]^_0x4b6912(_0x2b5e26,_0xf82403,_0x1d64d3,_0x3259a0,_0x3b17c3,_0x5b4761),_0x104809=_0x511ac7[_0x585712++]^_0x4b6912(_0x2b5e26,_0xf82403,_0x5b4761,_0x1d64d3,_0x3259a0,_0x3b17c3),_0x41d547=_0x511ac7[_0x585712++]^_0x4b6912(_0x2b5e26,_0xf82403,_0x3b17c3,_0x5b4761,_0x1d64d3,_0x3259a0),_0x2d4c06=_0x511ac7[_0x585712++]^_0x4b6912(_0x2b5e26,_0xf82403,_0x3259a0,_0x3b17c3,_0x5b4761,_0x1d64d3);_0x1d64d3=_0x4f1340,_0x5b4761=_0x104809,_0x3b17c3=_0x41d547,_0x3259a0=_0x2d4c06;}return{'s0':_0x511ac7[_0x585712++]^_0x52196b(_0x56ce50,_0x1d64d3,_0x3259a0,_0x3b17c3,_0x5b4761),'s1':_0x511ac7[_0x585712++]^_0x52196b(_0x56ce50,_0x5b4761,_0x1d64d3,_0x3259a0,_0x3b17c3),'s2':_0x511ac7[_0x585712++]^_0x52196b(_0x56ce50,_0x3b17c3,_0x5b4761,_0x1d64d3,_0x3259a0),'s3':_0x511ac7[_0x585712++]^_0x52196b(_0x56ce50,_0x3259a0,_0x3b17c3,_0x5b4761,_0x1d64d3)};}function _0x13498e(_0x278df0){const _0x5e9a29=_0x405303;if(_0x59702c(_0x278df0),_0x278df0[_0x5e9a29(0x182)]%0x10!=0x0)throw Error(_0x5e9a29(0x15c));}function _0x3ac818(_0x1e631d,_0x31e051,_0x5b2366){const _0x19c883=_0x405303;_0x59702c(_0x1e631d);let _0x457338=_0x1e631d[_0x19c883(0x182)],_0x1f522b=_0x457338%0x10;if(!_0x31e051&&_0x1f522b!==0x0)throw Error(_0x19c883(0x3bf));if(_0x31e051){let _0x6517b2=0x10-_0x1f522b;_0x6517b2||(_0x6517b2=0x10),_0x457338+=_0x6517b2;}_0x5b2366=_0x573d2a(_0x457338,_0x5b2366),_0x11aacb(_0x1e631d,_0x5b2366),(!_0x5f5b9f||!_0x4c068f(_0x1e631d))&&(_0x1e631d=_0x18912e(_0x1e631d));let _0x17a7e6=_0x1e90c9(_0x1e631d);return _0x3a82af(_0x17a7e6),{'b':_0x17a7e6,'o':_0x1e90c9(_0x5b2366),'out':_0x5b2366};}function _0xf6b642(_0x422f52,_0x8a1856){const _0x4607bc=_0x405303;if(!_0x8a1856)return _0x422f52;let _0x1e2dc0=_0x422f52['length'];if(_0x1e2dc0===0x0)throw Error(_0x4607bc(0x1e1));let _0x40e675=_0x422f52[_0x1e2dc0-0x1],_0x1148d7=0x1;_0x1148d7&=_0x40e675-0x1>>>0x1f^0x1,_0x1148d7&=0x10-_0x40e675>>>0x1f^0x1;for(let _0x517cac=0x0;_0x517cac<0x10;_0x517cac++){let _0x4aa904=_0x517cac-_0x40e675>>>0x1f,_0x5aee29=+((_0x422f52[_0x1e2dc0-0x1-_0x517cac]^_0x40e675)===0x0);_0x1148d7&=_0x5aee29|_0x4aa904^0x1;}if(!_0x1148d7)throw Error(_0x4607bc(0x2f8));return _0x422f52[_0x4607bc(0x151)](0x0,_0x1e2dc0-_0x40e675);}function _0x19a038(_0x56b207){const _0x21e068=_0x405303;let _0x299da4=new Uint8Array(0x10),_0x23f8ca=_0x1e90c9(_0x299da4);_0x299da4[_0x21e068(0x339)](_0x56b207);let _0x229091=0x10-_0x56b207[_0x21e068(0x182)];for(let _0x9dbc57=0x10-_0x229091;_0x9dbc57<0x10;_0x9dbc57++)_0x299da4[_0x9dbc57]=_0x229091;return _0x23f8ca;}let _0x5decb8=_0x238229({'blockSize':0x10,'nonceLength':0x10},function(_0x4dd67a,_0xc870eb,_0xa07d11={}){const _0x3caa3b=_0x405303;let _0x342a03=!_0xa07d11[_0x3caa3b(0x25a)];return{'encrypt'(_0x4bd6af,_0x2c5820){const _0x3b2bd7=_0x3caa3b;let _0x5d974f=_0x4b2b62(_0x4dd67a),{b:_0x39f3a1,o:_0x46fed3,out:_0x139727}=_0x3ac818(_0x4bd6af,_0x342a03,_0x2c5820),_0x1c3149=_0xc870eb,_0x20627d=[_0x5d974f];(!_0x5f5b9f||!_0x4c068f(_0x1c3149))&&_0x20627d[_0x3b2bd7(0x1f4)](_0x1c3149=_0x18912e(_0x1c3149));let _0x43bd8b=_0x1e90c9(_0x1c3149);_0x3a82af(_0x43bd8b);let _0x1d4079=_0x43bd8b[0x0],_0x2cafde=_0x43bd8b[0x1],_0x47bb0f=_0x43bd8b[0x2],_0x18e077=_0x43bd8b[0x3],_0x430861=0x0;for(;_0x430861+0x4<=_0x39f3a1[_0x3b2bd7(0x182)];)_0x1d4079^=_0x39f3a1[_0x430861+0x0],_0x2cafde^=_0x39f3a1[_0x430861+0x1],_0x47bb0f^=_0x39f3a1[_0x430861+0x2],_0x18e077^=_0x39f3a1[_0x430861+0x3],{s0:_0x1d4079,s1:_0x2cafde,s2:_0x47bb0f,s3:_0x18e077}=_0x5b1151(_0x5d974f,_0x1d4079,_0x2cafde,_0x47bb0f,_0x18e077),_0x46fed3[_0x430861++]=_0x1d4079,_0x46fed3[_0x430861++]=_0x2cafde,_0x46fed3[_0x430861++]=_0x47bb0f,_0x46fed3[_0x430861++]=_0x18e077;if(_0x342a03){let _0xb272bd=_0x19a038(_0x4bd6af[_0x3b2bd7(0x151)](_0x430861*0x4));_0x3a82af(_0xb272bd),_0x1d4079^=_0xb272bd[0x0],_0x2cafde^=_0xb272bd[0x1],_0x47bb0f^=_0xb272bd[0x2],_0x18e077^=_0xb272bd[0x3],{s0:_0x1d4079,s1:_0x2cafde,s2:_0x47bb0f,s3:_0x18e077}=_0x5b1151(_0x5d974f,_0x1d4079,_0x2cafde,_0x47bb0f,_0x18e077),_0x46fed3[_0x430861++]=_0x1d4079,_0x46fed3[_0x430861++]=_0x2cafde,_0x46fed3[_0x430861++]=_0x47bb0f,_0x46fed3[_0x430861++]=_0x18e077;}return _0x3a82af(_0x46fed3),_0x1156c1(..._0x20627d),_0x139727;},'decrypt'(_0x380934,_0x1a04a3){const _0x4e9ec9=_0x3caa3b;_0x13498e(_0x380934);let _0xbc1028=_0x26f973(_0x4dd67a),_0x205f08=_0xc870eb,_0x488d35=[_0xbc1028];(!_0x5f5b9f||!_0x4c068f(_0x205f08))&&_0x488d35[_0x4e9ec9(0x1f4)](_0x205f08=_0x18912e(_0x205f08));let _0x43e079=_0x1e90c9(_0x205f08);_0x3a82af(_0x43e079),_0x1a04a3=_0x573d2a(_0x380934[_0x4e9ec9(0x182)],_0x1a04a3),_0x11aacb(_0x380934,_0x1a04a3),(!_0x5f5b9f||!_0x4c068f(_0x380934))&&_0x488d35['push'](_0x380934=_0x18912e(_0x380934));let _0x366f1b=_0x1e90c9(_0x380934),_0x243150=_0x1e90c9(_0x1a04a3);_0x3a82af(_0x366f1b);let _0x3d5a78=_0x43e079[0x0],_0x3c85bf=_0x43e079[0x1],_0x45de39=_0x43e079[0x2],_0x161331=_0x43e079[0x3];for(let _0x3a9c5d=0x0;_0x3a9c5d+0x4<=_0x366f1b[_0x4e9ec9(0x182)];){let _0xe567f2=_0x3d5a78,_0x4f3363=_0x3c85bf,_0x25a65a=_0x45de39,_0x37ad24=_0x161331;_0x3d5a78=_0x366f1b[_0x3a9c5d+0x0],_0x3c85bf=_0x366f1b[_0x3a9c5d+0x1],_0x45de39=_0x366f1b[_0x3a9c5d+0x2],_0x161331=_0x366f1b[_0x3a9c5d+0x3];let {s0:_0x14eacf,s1:_0x438075,s2:_0xcee2d7,s3:_0x76f34b}=_0x12f90a(_0xbc1028,_0x3d5a78,_0x3c85bf,_0x45de39,_0x161331);_0x243150[_0x3a9c5d++]=_0x14eacf^_0xe567f2,_0x243150[_0x3a9c5d++]=_0x438075^_0x4f3363,_0x243150[_0x3a9c5d++]=_0xcee2d7^_0x25a65a,_0x243150[_0x3a9c5d++]=_0x76f34b^_0x37ad24;}return _0x3a82af(_0x243150),_0x1156c1(..._0x488d35),_0xf6b642(_0x1a04a3,_0x342a03);}};});function _0x2a458f(_0x26c22d){const _0x4ca442=_0x405303;let _0x4af506=atob(_0x26c22d),_0x3f9d71=new Uint8Array(_0x4af506[_0x4ca442(0x182)]);for(let _0x559035=0x0;_0x559035<_0x4af506[_0x4ca442(0x182)];_0x559035++)_0x3f9d71[_0x559035]=_0x4af506['charCodeAt'](_0x559035);return _0x3f9d71;}function _0x4388a1(_0x200d55){const _0x4f6e6a=_0x405303;let _0x92d7e3='';for(let _0x46d430=0x0;_0x46d430<_0x200d55['length'];_0x46d430++)_0x92d7e3+=String[_0x4f6e6a(0x3a9)](_0x200d55[_0x46d430]);return btoa(_0x92d7e3);}function _0x229ef8(_0x34c0fb,_0xb9035c){const _0x2a35df=_0x405303;let _0x362f79=_0x2a458f(_0xb9035c),_0x23084f=_0x2a8c18(0x10);return _0x4388a1(_0x1d87d1(_0x23084f,_0x5decb8(_0x362f79,_0x23084f)[_0x2a35df(0x17f)](_0x13ef42(_0x34c0fb))));}function _0x1826a6(){const _0x30037c=_0x405303;let _0x4bfbc1=(0x0,_0x3478b3[_0x30037c(0x1f5)])()['__Key__'];if(typeof window<'u'&&window[_0x30037c(0x354)]!==void 0x0&&_0x4bfbc1){let _0x4047f7={'time':Math[_0x30037c(0x2ff)](Date[_0x30037c(0x2cb)]()/0x3e8),'domain':location[_0x30037c(0x318)]};return _0x229ef8(JSON['stringify'](_0x4047f7),_0x4bfbc1);}}let _0x46162e=class{constructor(_0x8eb7f9){const _0x1ffa7a=_0x405303;this[_0x1ffa7a(0x121)]=_0x8eb7f9,this['_initRequestHeader']();}[_0x405303(0x3eb)](){const _0x2428b9=_0x405303;this[_0x2428b9(0x121)][_0x2428b9(0x42d)]({'interceptor':(_0x1429df,_0x3225f1)=>{const _0x3a6257=_0x2428b9;let _0xd80fd3=_0x1826a6();return _0xd80fd3&&_0x1429df[_0x3a6257(0x440)][_0x3a6257(0x339)](_0x3a6257(0x3e7),_0xd80fd3),_0x3225f1(_0x1429df);}});}};_0x46162e=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xc90c47[_0x405303(0x141)]))],_0x46162e);let _0x143e0e=class extends _0x2d0b9f[_0x405303(0x16d)]{constructor(_0xde56c,_0x1a4c1e,_0x159082){const _0x204a1e=_0x405303;super(),this[_0x204a1e(0x3d5)]=_0xde56c,this[_0x204a1e(0x373)]=_0x1a4c1e,this[_0x204a1e(0x161)]=_0x159082,_0x4219eb(this,'_unitInfo$',new _0x31dca4[(_0x204a1e(0x31b))](null)),_0x4219eb(this,_0x204a1e(0x1c2),new _0x31dca4[(_0x204a1e(0x29e))]()),_0x4219eb(this,'unitInfo$',this[_0x204a1e(0x3b1)]['asObservable']()),_0x4219eb(this,_0x204a1e(0x288),this['_unitLoaded$']['asObservable']());}['dispose'](){const _0x54a6b8=_0x405303;super['dispose'](),this[_0x54a6b8(0x1c2)][_0x54a6b8(0x104)](),this[_0x54a6b8(0x3b1)]['complete']();}async[_0x405303(0x2dc)](_0x405e55,_0x173230,_0x1645c8,_0x3012ca){const _0x3b1482=_0x405303;this[_0x3b1482(0x3b1)][_0x3b1482(0x131)]({'unitId':_0x405e55,'type':_0x173230,'subUnitId':_0x3012ca});let _0x169f6e=null;switch(_0x173230){case _0x2d0b9f['UniverInstanceType']['UNIVER_SHEET']:_0x169f6e=await this['_snapshotService'][_0x3b1482(0x18f)](_0x405e55,_0x1645c8,void 0x0,{'initialSubUnitId':_0x3012ca});break;case _0x2d0b9f[_0x3b1482(0x341)][_0x3b1482(0x13a)]:_0x169f6e=await this[_0x3b1482(0x373)][_0x3b1482(0xf6)](_0x405e55,_0x1645c8);break;case _0x2d0b9f[_0x3b1482(0x341)][_0x3b1482(0x358)]:_0x169f6e=await this['_snapshotService'][_0x3b1482(0x362)](_0x405e55,_0x1645c8);break;case _0x2d0b9f[_0x3b1482(0x341)][_0x3b1482(0x333)]:_0x169f6e=await this['_snapshotService']['loadBoard'](_0x405e55,_0x1645c8);break;case _0x2d0b9f['UniverInstanceType'][_0x3b1482(0x17d)]:_0x169f6e=await this['_snapshotService']['loadBase'](_0x405e55,_0x1645c8);break;case _0x2d0b9f['UniverInstanceType'][_0x3b1482(0x31e)]:_0x169f6e=await this[_0x3b1482(0x373)][_0x3b1482(0x1a9)](_0x405e55,_0x1645c8);break;default:this[_0x3b1482(0x3d5)][_0x3b1482(0x2a9)](_0x3b1482(0x21f),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}return _0x169f6e&&this[_0x3b1482(0x1c2)]['next'](_0x169f6e),_0x169f6e;}async['loadUnit'](_0x55816f,_0x2d0a45,_0x1d6bb4){const _0x4d5dc7=_0x405303;var _0x1d407a;this['_unitInfo$'][_0x4d5dc7(0x131)]({'unitId':_0x55816f,'type':_0x2d0a45,'subUnitId':_0x1d6bb4});let _0x270a1d=0x0,_0x37d972=await((_0x1d407a=this['_localCacheService'])==null?void 0x0:_0x1d407a[_0x4d5dc7(0x218)](_0x55816f));return _0x37d972&&(_0x37d972[_0x4d5dc7(0x283)]||_0x37d972[_0x4d5dc7(0xf9)][_0x4d5dc7(0x182)]!==0x0)&&(_0x270a1d=_0x37d972[_0x4d5dc7(0x284)]),_0x270a1d===0x0&&this['_logService'][_0x4d5dc7(0x30f)]('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x4d5dc7(0x2dc)](_0x55816f,_0x2d0a45,_0x270a1d,_0x1d6bb4);}};_0x143e0e=_0x3934d9([_0x43549d(0x0,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0x1,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203['SnapshotService'])),_0x43549d(0x2,(0x0,_0x2d0b9f['Optional'])(_0x3e00f7))],_0x143e0e);let _0x3217fe=class{constructor(_0x13e910,_0x52f04c,_0x48635a){const _0x3df1f4=_0x405303;this[_0x3df1f4(0x121)]=_0x13e910,this['_configService']=_0x52f04c,this[_0x3df1f4(0x347)]=_0x48635a,_0x4219eb(this,'_waitCount',0x0),_0x4219eb(this,_0x3df1f4(0x106),new _0x31dca4['Subject']()),_0x4219eb(this,_0x3df1f4(0x1a3),this[_0x3df1f4(0x106)]),_0x4219eb(this,_0x3df1f4(0x158),new Map());}[_0x405303(0x37b)](_0x52d13b){const _0x8f3404=_0x405303;this[_0x8f3404(0x3c1)]=_0x52d13b,this[_0x8f3404(0x106)][_0x8f3404(0x131)](_0x52d13b);}[_0x405303(0x22c)](_0x4eab09,_0x5a0cfa){const _0x2fdc04=_0x405303;if(_0x5a0cfa===_0x2d0b9f[_0x2fdc04(0x41f)][_0x2fdc04(0x310)]){let _0xb5e157=new Image();return _0xb5e157[_0x2fdc04(0x2d4)]=_0x4eab09,_0xb5e157;}return this[_0x2fdc04(0x158)]['get'](_0x4eab09);}[_0x405303(0x37d)](_0x2373e0,_0x56185c,_0x5e8dfe){const _0xe959b0=_0x405303;_0x56185c!==_0x2d0b9f[_0xe959b0(0x41f)]['BASE64']&&_0x5e8dfe!=null&&this[_0xe959b0(0x158)][_0xe959b0(0x339)](_0x2373e0,_0x5e8dfe);}async[_0x405303(0x2d9)](_0x19ad78){const _0x7dea45=_0x405303;try{let _0x11eb79=this['_replaceFileID'](this[_0x7dea45(0x18a)](),''+_0x19ad78),_0x10b749=(await this[_0x7dea45(0x121)]['get'](_0x11eb79))['body'];if(_0x10b749[_0x7dea45(0x2a9)]&&_0x10b749[_0x7dea45(0x2a9)][_0x7dea45(0x2c4)]===_0x11fae4[_0x7dea45(0x334)]['OK']){let _0x3647fd=(0x0,_0x2d0b9f[_0x7dea45(0x172)])(_0x10b749[_0x7dea45(0x204)],this[_0x7dea45(0x33f)]());return Promise['resolve'](_0x3647fd);}return Promise['reject'](_0x10b749[_0x7dea45(0x2a9)]);}catch(_0x1ad824){return Promise[_0x7dea45(0x293)](_0x1ad824);}}async['saveImage'](_0x1f9d52){const _0x5c9062=_0x405303;let _0x3e89f1='';if(!_0x247c19[_0x5c9062(0x36e)][_0x5c9062(0x281)](_0x1f9d52[_0x5c9062(0x24b)]))return this[_0x5c9062(0x351)](),Promise[_0x5c9062(0x293)](Error(_0x2d0b9f['ImageUploadStatusType'][_0x5c9062(0x100)]));if(_0x1f9d52[_0x5c9062(0x1db)]>(0x0,_0x247c19[_0x5c9062(0x29f)])())return this['_decreaseWaiting'](),Promise['reject'](Error(_0x2d0b9f[_0x5c9062(0x1ec)][_0x5c9062(0x1b1)]));try{let _0x9c1c98=new FormData();_0x9c1c98[_0x5c9062(0x43f)](_0x5c9062(0x1cc),_0x1f9d52);let _0x9036=this['_univerInstanceService'][_0x5c9062(0x1bf)](),_0x3a81ae=_0x9036==null?void 0x0:_0x9036['getUnitId']();if(!_0x3a81ae)throw Error(_0x5c9062(0x1c1));let _0x5bbf9a=this[_0x5c9062(0x27f)]()+'?size='+_0x1f9d52[_0x5c9062(0x1db)][_0x5c9062(0x349)]()+_0x5c9062(0x369)+_0x11fae4[_0x5c9062(0x34e)][_0x5c9062(0x3f8)]+_0x5c9062(0x156)+encodeURIComponent(_0x3a81ae),_0x32f6ea={'body':_0x9c1c98},_0x3a5a02=(await this[_0x5c9062(0x121)]['post'](_0x5bbf9a,_0x32f6ea))[_0x5c9062(0x43d)];if(typeof _0x3a5a02[_0x5c9062(0x2d1)]!=_0x5c9062(0x163))return this[_0x5c9062(0x351)](),Promise[_0x5c9062(0x293)](Error(_0x2d0b9f[_0x5c9062(0x1ec)][_0x5c9062(0x1f3)]));_0x3e89f1=_0x3a5a02[_0x5c9062(0x2d1)];}catch{return this[_0x5c9062(0x351)](),Promise[_0x5c9062(0x293)](Error(_0x2d0b9f[_0x5c9062(0x1ec)][_0x5c9062(0x1f3)]));}return new Promise((_0x2e067b,_0x2239fb)=>{const _0x36943a=_0x5c9062;let _0x44e2c8=new FileReader();_0x44e2c8['readAsDataURL'](_0x1f9d52),_0x44e2c8[_0x36943a(0x109)]=_0x1b7ab9=>{const _0x309a3f=_0x36943a;var _0x239277;let _0x30a159=(_0x239277=_0x1b7ab9['target'])==null?void 0x0:_0x239277['result'];if(_0x30a159==null){this[_0x309a3f(0x351)](),_0x2239fb(Error(_0x2d0b9f[_0x309a3f(0x1ec)][_0x309a3f(0x1f3)]));return;}_0x2e067b({'imageId':(0x0,_0x2d0b9f[_0x309a3f(0x203)])(0x6),'imageSourceType':_0x2d0b9f[_0x309a3f(0x41f)][_0x309a3f(0x2f1)],'source':_0x3e89f1,'base64Cache':_0x30a159,'status':_0x2d0b9f[_0x309a3f(0x1ec)]['SUCCUSS']}),this[_0x309a3f(0x351)]();};});}[_0x405303(0x27f)](){const _0x2f9f74=_0x405303;var _0x53725a;let _0x2fac96=this['_configService'][_0x2f9f74(0x112)](_0x51e182);return(_0x53725a=_0x2fac96==null?void 0x0:_0x2fac96['uploadFileServerUrl'])==null?_0x2f9f74(0x234):_0x53725a;}[_0x405303(0x18a)](){const _0x84d03a=_0x405303;var _0x5ef2d6;let _0x3ef26e=this[_0x84d03a(0x3d2)][_0x84d03a(0x112)](_0x51e182);return(_0x5ef2d6=_0x3ef26e==null?void 0x0:_0x3ef26e[_0x84d03a(0x338)])==null?_0x84d03a(0x441):_0x5ef2d6;}[_0x405303(0x33f)](){const _0x35a328=_0x405303;var _0x4fde77;let _0x21d45a=this[_0x35a328(0x3d2)]['getConfig'](_0x51e182);return(_0x4fde77=_0x21d45a==null?void 0x0:_0x21d45a[_0x35a328(0x3d3)])==null?location['origin']:_0x4fde77;}[_0x405303(0x3f4)](_0x2ac536,_0x3a800d){const _0x376609=_0x405303;return _0x2ac536[_0x376609(0x1ee)]('{fileID}',_0x3a800d);}[_0x405303(0x351)](){const _0x3bdc9e=_0x405303;--this['_waitCount'],this['_change$'][_0x3bdc9e(0x131)](this[_0x3bdc9e(0x3c1)]);}};_0x3217fe=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xc90c47['HTTPService'])),_0x43549d(0x1,_0x2d0b9f[_0x405303(0x346)]),_0x43549d(0x2,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x217)]))],_0x3217fe);let _0x1183e4=class{constructor(_0x3a6f57,_0x104033){const _0x20f57f=_0x405303;this['_configService']=_0x3a6f57,this[_0x20f57f(0x2a0)]=_0x104033;}['_getAPIPrefixPath'](){const _0x491087=_0x405303;var _0x11509a;let _0x7a04c3=this['_configService'][_0x491087(0x112)](_0x51e182);return(_0x11509a=_0x7a04c3==null?void 0x0:_0x7a04c3[_0x491087(0x3d1)])==null?_0x491087(0x35e):_0x11509a;}async[_0x405303(0x269)](_0x2fc3df){const _0x24988c=_0x405303;let _0x196216=this[_0x24988c(0x2a1)]()+_0x24988c(0x2f7);return{'list':[{'title':_0x24988c(0x135),'mentions':(await this[_0x24988c(0x2a0)][_0x24988c(0x1b8)](_0x196216,{'params':{'objectID':_0x2fc3df[_0x24988c(0x29b)],'unitID':_0x2fc3df['unitId']}}))[_0x24988c(0x43d)][_0x24988c(0x194)]['map'](_0x5d6507=>({'objectId':_0x5d6507['id'],'name':_0x5d6507[_0x24988c(0x12f)][_0x24988c(0xeb)],'metadata':{'icon':_0x5d6507[_0x24988c(0x12f)][_0x24988c(0x21b)]},'label':_0x5d6507[_0x24988c(0x12f)][_0x24988c(0xeb)],'objectType':_0x2d0b9f[_0x24988c(0x145)][_0x24988c(0x1ba)]})),'metadata':{},'type':_0x2d0b9f[_0x24988c(0x145)][_0x24988c(0x1ba)]}]};}};_0x1183e4=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x346)])),_0x43549d(0x1,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xc90c47[_0x405303(0x141)]))],_0x1183e4);let _0x1705a2=class extends _0x2d0b9f[_0x405303(0x16d)]{constructor(_0x5330f9,_0x234d14,_0x1e944b,_0x4ff3fe,_0x21a0df){const _0x13d9c6=_0x405303;super(),this[_0x13d9c6(0x3ef)]=_0x5330f9,this[_0x13d9c6(0x347)]=_0x234d14,this[_0x13d9c6(0x2cd)]=_0x1e944b,this[_0x13d9c6(0x43b)]=_0x4ff3fe,this[_0x13d9c6(0x214)]=_0x21a0df,this[_0x13d9c6(0x449)](),this['_initCloseConn']();}['_initCloseConn'](){const _0x62d4f9=_0x405303;let _0x33a219=async _0x2deac6=>{const _0x249b5c=_0x4e8d;(await this[_0x249b5c(0x43b)][_0x249b5c(0x305)](_0x2deac6))['event$'][_0x249b5c(0x18e)]((0x0,_0x2ba3c8[_0x249b5c(0x24d)])(_0x373ce2=>_0x373ce2[_0x249b5c(0x3cc)]===_0x20c203[_0x249b5c(0x3e1)][_0x249b5c(0x37a)]),(0x0,_0x2ba3c8[_0x249b5c(0x220)])(this[_0x249b5c(0x405)]))['subscribe'](_0x2ee291=>{const _0x1fc9eb=_0x249b5c;let {reason:_0x10e47d}=_0x2ee291['data'];this[_0x1fc9eb(0x214)][_0x1fc9eb(0x31f)]({'id':'CLOSE_ROOM','data':_0x10e47d}),this[_0x1fc9eb(0x2cd)][_0x1fc9eb(0x2ea)](new _0x2ba48b[(_0x1fc9eb(0x422))](_0x2deac6)['id'],!0x1),this[_0x1fc9eb(0x43b)][_0x1fc9eb(0x34a)](_0x2deac6);});};(0x0,_0x31dca4[_0x62d4f9(0xfd)])(this[_0x62d4f9(0x347)]['getTypeOfUnitAdded$'](_0x2d0b9f[_0x62d4f9(0x341)]['UNIVER_SHEET']),this['_univerInstanceService'][_0x62d4f9(0x307)](_0x2d0b9f['UniverInstanceType'][_0x62d4f9(0x13a)]),this[_0x62d4f9(0x347)][_0x62d4f9(0x307)](_0x2d0b9f[_0x62d4f9(0x341)]['UNIVER_BOARD']),this[_0x62d4f9(0x347)][_0x62d4f9(0x307)](_0x2d0b9f['UniverInstanceType'][_0x62d4f9(0x17d)]))[_0x62d4f9(0x18e)]((0x0,_0x2ba3c8['map'])(_0x27aaa5=>_0x27aaa5[_0x62d4f9(0x417)][_0x62d4f9(0x202)]()),(0x0,_0x2ba3c8[_0x62d4f9(0x24d)])(_0x1de277=>!(0x0,_0x2d0b9f[_0x62d4f9(0x148)])(_0x1de277)),(0x0,_0x2ba3c8[_0x62d4f9(0x220)])(this[_0x62d4f9(0x405)]))['subscribe'](_0x132510=>{_0x33a219(_0x132510);});}[_0x405303(0x449)](){const _0x5eef30=_0x405303;let _0xba6e73=async _0x5dfaee=>{const _0x68e500=_0x4e8d;let _0x45edaf=await this[_0x68e500(0x43b)][_0x68e500(0x305)](_0x5dfaee),_0x44cb17=this['_injector'][_0x68e500(0x1b8)](_0x2ba48b['SheetPermissionInitController']);_0x45edaf[_0x68e500(0x233)]['pipe']((0x0,_0x2ba3c8[_0x68e500(0x24d)])(_0x1aaf8f=>_0x1aaf8f[_0x68e500(0x3cc)]===_0x20c203[_0x68e500(0x3e1)][_0x68e500(0x2af)]),(0x0,_0x2ba3c8[_0x68e500(0x220)])(this['dispose$']))['subscribe'](_0x245290=>{const _0x503795=_0x68e500;let {objectId:_0x5e032c}=_0x245290[_0x503795(0x3be)];_0x5e032c===_0x5dfaee?_0x44cb17['initWorkbookPermissionChange'](_0x5dfaee):_0x44cb17[_0x503795(0x23f)](_0x5dfaee,_0x5e032c);});};(0x0,_0x31dca4['merge'])(this['_univerInstanceService'][_0x5eef30(0x307)](_0x2d0b9f['UniverInstanceType'][_0x5eef30(0x378)]))[_0x5eef30(0x18e)]((0x0,_0x2ba3c8[_0x5eef30(0x110)])(_0x1409a9=>_0x1409a9[_0x5eef30(0x417)][_0x5eef30(0x202)]()),(0x0,_0x2ba3c8[_0x5eef30(0x24d)])(_0x5c319d=>!(0x0,_0x2d0b9f[_0x5eef30(0x148)])(_0x5c319d)),(0x0,_0x2ba3c8[_0x5eef30(0x220)])(this[_0x5eef30(0x405)]))[_0x5eef30(0x120)](_0x2d4c25=>{_0xba6e73(_0x2d4c25);});}};_0x1705a2=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f['Injector'])),_0x43549d(0x1,_0x2d0b9f[_0x405303(0x217)]),_0x43549d(0x2,_0x2d0b9f[_0x405303(0x160)]),_0x43549d(0x3,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x4c98b9)),_0x43549d(0x4,(0x0,_0x2d0b9f['Inject'])(_0xa9d46c))],_0x1705a2);let _0x4f051f=class{constructor(_0x36a674,_0x15e18e){this['_configService']=_0x36a674,this['_httpService']=_0x15e18e;}async[_0x405303(0x252)](_0x4731f6,_0x5cbd8d){const _0x5b3851=_0x405303;var _0x37f698;let {unitID:_0x3f569e,type:_0x5f9be0,revision:_0x21e9ee=0x0}=_0x5cbd8d,_0x46dda6=this[_0x5b3851(0x256)]()+'/'+_0x5f9be0+_0x5b3851(0x437)+_0x3f569e+'/rev/'+_0x21e9ee,_0x172d0f=(await this['_httpService'][_0x5b3851(0x1b8)](_0x46dda6))[_0x5b3851(0x43d)],_0x282703=(_0x37f698=_0x172d0f['snapshot'])==null?void 0x0:_0x37f698[_0x5b3851(0x228)];if(_0x282703){let _0x5346d9=_0x282703==null?void 0x0:_0x282703[_0x5b3851(0x181)];_0x282703[_0x5b3851(0x181)]=_0x20c203[_0x5b3851(0x249)][_0x5b3851(0x23a)]((0x0,_0x20c203[_0x5b3851(0x1bd)])(_0x5346d9)),Object[_0x5b3851(0x37c)](_0x282703['sheets'])[_0x5b3851(0x412)](([,_0x1cc7c5])=>{const _0x3b0031=_0x5b3851;let _0x232b25=_0x1cc7c5[_0x3b0031(0x181)];_0x1cc7c5[_0x3b0031(0x181)]=_0x20c203['textEncoder'][_0x3b0031(0x23a)]((0x0,_0x20c203[_0x3b0031(0x1bd)])(_0x232b25));});}return _0x172d0f;}async['getSheetBlock'](_0x41dc9c,_0x53bb93){const _0x1e004e=_0x405303;let {unitID:_0x52e8e7,type:_0x3ca7ba,blockID:_0xcdcaac}=_0x53bb93,_0x4488ff=this[_0x1e004e(0x1f9)]()+'/'+_0x3ca7ba+_0x1e004e(0x437)+_0x52e8e7+'/block/'+_0xcdcaac;return(await this['_httpService']['get'](_0x4488ff))[_0x1e004e(0x43d)];}async[_0x405303(0x20f)](_0x393470,_0x1d2a1a){const _0x4ac2d1=_0x405303;let {unitID:_0xe19253,type:_0x134d8d,blockID:_0x10d87e}=_0x1d2a1a,_0x4ecc45=this[_0x4ac2d1(0x1f9)]()+_0x4ac2d1(0x115)+_0x134d8d+_0x4ac2d1(0x437)+_0xe19253+_0x4ac2d1(0x115)+_0x10d87e;return(await this[_0x4ac2d1(0x121)][_0x4ac2d1(0x1b8)](_0x4ecc45))['body'];}async['fetchMissingChangesets'](_0x548b67,_0x292302){const _0x8fc751=_0x405303;let {unitID:_0x1cc671,type:_0x2b67e0,from:_0x32ba00,to:_0x4fe6ba}=_0x292302,_0x3b17e8=this[_0x8fc751(0x1f9)]()+'/'+_0x2b67e0+_0x8fc751(0x437)+_0x1cc671+_0x8fc751(0x353)+_0x32ba00+_0x8fc751(0x1c8)+_0x4fe6ba;return(await this[_0x8fc751(0x121)][_0x8fc751(0x1b8)](_0x3b17e8))[_0x8fc751(0x43d)];}['getSnapshotAPIPath'](){const _0x39a083=_0x405303;var _0x271f02;return(_0x271f02=this[_0x39a083(0x3d2)][_0x39a083(0x112)](_0x39a083(0x25e)))==null?this[_0x39a083(0x1f9)]():_0x271f02;}['_getAPIPrefix'](){const _0x3d98be=_0x405303;var _0x2946e1;let _0x3a8cf6=this[_0x3d98be(0x3d2)][_0x3d98be(0x112)](_0x51e182);return(_0x2946e1=_0x3a8cf6==null?void 0x0:_0x3a8cf6[_0x3d98be(0x26b)])==null?_0x3d98be(0x433):_0x2946e1;}async[_0x405303(0x127)](_0x149260,_0x33945a){const _0x572a92=_0x405303;let _0x52cf6e=_0x572a92(0x213)+_0x33945a[_0x572a92(0x24b)]+'/unit/'+_0x33945a[_0x572a92(0x1c9)]+_0x572a92(0x24f);return(await this[_0x572a92(0x121)][_0x572a92(0x1b8)](_0x52cf6e,{'params':{'resourceId':JSON[_0x572a92(0x238)](_0x33945a[_0x572a92(0x1c7)])}}))[_0x572a92(0x43d)];}['saveSnapshot'](){const _0x333045=_0x405303;throw Error(_0x333045(0x254));}[_0x405303(0x226)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x405303(0x36c)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x405303(0x297)](){const _0x2ad231=_0x405303;throw Error(_0x2ad231(0x254));}[_0x405303(0x1b4)](){const _0x7d516b=_0x405303;throw Error(_0x7d516b(0x254));}};_0x4f051f=_0x3934d9([_0x43549d(0x0,_0x2d0b9f[_0x405303(0x346)]),_0x43549d(0x1,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xc90c47[_0x405303(0x141)]))],_0x4f051f);let _0x5aea68=class extends _0x2d0b9f['LocalUndoRedoService']{constructor(_0x103dab,_0x45bbf4,_0x1fcffd,_0x4b4f14,_0x1a8184){const _0x3fdcb9=_0x405303;super(_0x103dab,_0x45bbf4,_0x1fcffd),this[_0x3fdcb9(0x1f8)]=_0x4b4f14,this[_0x3fdcb9(0x3d5)]=_0x1a8184;}[_0x405303(0x312)](_0x39bdad,_0x54b229){const _0x19dc57=_0x405303;let _0xaea814=this[_0x19dc57(0x393)](_0x39bdad);if(_0xaea814)try{let _0x3d75c3=this[_0x19dc57(0x32f)](_0xaea814,_0x54b229);this[_0x19dc57(0x1fa)](_0x39bdad,_0x3d75c3);}catch(_0x3d86d0){this['_logService']['error']('[CollaborationUndoRedoService]',_0x3d86d0),this['_clearUndo'](_0x39bdad);}let _0x1d6724=this[_0x19dc57(0x23c)](_0x39bdad);if(_0x1d6724)try{let _0x5bd954=this['_transformStack'](_0x1d6724,_0x54b229);this[_0x19dc57(0x1f7)](_0x39bdad,_0x5bd954);}catch(_0x2bb086){this[_0x19dc57(0x3d5)][_0x19dc57(0x2a9)](_0x2bb086),this[_0x19dc57(0x1b2)](_0x39bdad);}}[_0x405303(0x316)](_0xc87229){const _0x4bdd2d=_0x405303;let _0x289312=this[_0x4bdd2d(0x393)](_0xc87229);_0x289312&&(_0x289312[_0x4bdd2d(0x182)]=0x0,this[_0x4bdd2d(0x30b)]());}['_clearRedo'](_0xc6f1){const _0x33bf98=_0x405303;let _0x133fc2=this['_getRedoStack'](_0xc6f1);_0x133fc2&&(_0x133fc2[_0x33bf98(0x182)]=0x0,this[_0x33bf98(0x30b)]());}[_0x405303(0x1fa)](_0x3b81bb,_0x14537e){const _0x118a34=_0x405303;this[_0x118a34(0xef)][_0x118a34(0x339)](_0x3b81bb,_0x14537e),this['_updateStatus']();}[_0x405303(0x1f7)](_0x4a18d4,_0x245d80){const _0x4bcff4=_0x405303;this[_0x4bcff4(0x2b0)][_0x4bcff4(0x339)](_0x4a18d4,_0x245d80),this[_0x4bcff4(0x30b)]();}[_0x405303(0x32f)](_0x270151,_0x5bee27){const _0x3fa6e5=_0x405303;let _0x49ec7a=[],_0x2f0cd3=_0x5bee27,_0x17bfb1=_0x5bee27;for(let _0x2fa2f5=_0x270151[_0x3fa6e5(0x182)]-0x1;_0x2fa2f5>=0x0;_0x2fa2f5--){let {unitID:_0x451277,undoMutations:_0xf568e2,redoMutations:_0x5acdc2}=_0x270151[_0x2fa2f5],_0x33eaf5=this[_0x3fa6e5(0x1f8)][_0x3fa6e5(0x30a)](_0x2f0cd3,_0xf568e2),_0x4e0477=this[_0x3fa6e5(0x1f8)][_0x3fa6e5(0x30a)](_0x17bfb1,_0x5acdc2);if((0x0,_0x20c203[_0x3fa6e5(0x153)])(_0x33eaf5)||(0x0,_0x20c203['isTransformMutationsWithChangesetFailure'])(_0x4e0477)){this[_0x3fa6e5(0x3d5)][_0x3fa6e5(0x2a9)](_0x3fa6e5(0x279),_0x3fa6e5(0x2d6),_0x33eaf5,_0x4e0477);break;}_0x2f0cd3=_0x33eaf5[_0x3fa6e5(0x2c3)],_0x17bfb1=_0x4e0477[_0x3fa6e5(0x2c3)],_0x49ec7a[_0x3fa6e5(0x1f4)]({'unitID':_0x451277,'undoMutations':_0x33eaf5[_0x3fa6e5(0x36d)],'redoMutations':_0x4e0477[_0x3fa6e5(0x36d)]});}return _0x49ec7a['reverse']();}};_0x5aea68=_0x3934d9([_0x43549d(0x0,_0x2d0b9f[_0x405303(0x217)]),_0x43549d(0x1,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0x2,_0x2d0b9f[_0x405303(0x278)]),_0x43549d(0x3,_0x20c203[_0x405303(0x23e)]),_0x43549d(0x4,_0x2d0b9f[_0x405303(0x280)])],_0x5aea68);let _0x30afa7=class extends _0x2d0b9f['Plugin']{constructor(_0x2d3ea9=_0x5939b8,_0x1a4103,_0x1b9ef9,_0x597a3b){const _0x3a9283=_0x405303;super(),this[_0x3a9283(0x16b)]=_0x2d3ea9,this[_0x3a9283(0x3d5)]=_0x1a4103,this[_0x3a9283(0x3ef)]=_0x1b9ef9,this[_0x3a9283(0x3d2)]=_0x597a3b;let {..._0xb1bd24}=(0x0,_0x2d0b9f[_0x3a9283(0xfd)])({},_0x5939b8,this[_0x3a9283(0x16b)]);if(!_0xb1bd24['socketService'])throw Error(_0x3a9283(0x126));this[_0x3a9283(0x16b)]=_0xb1bd24,this['_configService'][_0x3a9283(0x10a)](_0x51e182,_0xb1bd24);}[_0x405303(0x1d6)](){const _0x1ad991=_0x405303;this[_0x1ad991(0x448)](),this['_initDependencies']();}[_0x405303(0x448)](){const _0xe5ae73=_0x405303;var _0x32bd8a,_0x4fcd84;this[_0xe5ae73(0x3ef)][_0xe5ae73(0x206)](_0x2d0b9f[_0xe5ae73(0xf4)])&&this[_0xe5ae73(0x3d5)]['error'](_0xe5ae73(0x162),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x4db949=(0x0,_0x2d0b9f[_0xe5ae73(0x197)])([[_0x2d0b9f['IUndoRedoService'],{'useClass':_0x5aea68}],[_0x562152,{'useValue':_0x233b60()}],[_0x4c98b9],[_0x42c2f1],[_0x201f2c],[_0x1eed0d],[_0x46162e],[_0x432b3d],[_0x1705a2],[_0xa9d46c],[_0x143e0e],[_0x581f35,{'useClass':this[_0xe5ae73(0x16b)][_0xe5ae73(0x20d)]}],[_0x20c203[_0xe5ae73(0x3e3)],{'useClass':_0x4f051f}],[_0x2d0b9f[_0xe5ae73(0x2ad)],{'useClass':_0x4e73d2}],[_0x2d0b9f[_0xe5ae73(0x140)],{'useClass':_0x3217fe}],[_0x29321d,{'useClass':_0x36dd49}],[_0x2d0b9f['IMentionIOService'],{'useClass':_0x1183e4}],[_0x58a316],[_0x3ed61f]],(_0x32bd8a=this[_0xe5ae73(0x16b)])==null?void 0x0:_0x32bd8a[_0xe5ae73(0x118)]);if(!((_0x4fcd84=this[_0xe5ae73(0x16b)])!=null&&_0x4fcd84[_0xe5ae73(0x2fe)])){let _0x58995c=_0x4db949[_0xe5ae73(0x320)](([_0x3645cc])=>_0x3645cc===_0x43c9bd);_0x58995c!==-0x1&&_0x4db949['splice'](_0x58995c,0x1);}(0x0,_0x2d0b9f[_0xe5ae73(0x2b7)])(this[_0xe5ae73(0x3ef)],_0x4db949);}[_0x405303(0x396)](){const _0x196cf8=_0x405303;var _0xf220e,_0x2e395a;if(this['_injector'][_0x196cf8(0x1b8)](_0xc90c47[_0x196cf8(0x141)])[_0x196cf8(0x42d)]({'priority':0x14,'interceptor':(0x0,_0xc90c47['ThresholdInterceptorFactory'])({'maxParallel':0x6})}),!((_0xf220e=this[_0x196cf8(0x16b)])!=null&&_0xf220e[_0x196cf8(0x17b)])){var _0x4eb5ed;(_0x4eb5ed=this[_0x196cf8(0x3ef)]['get'](_0x3e00f7,_0x2d0b9f[_0x196cf8(0x190)][_0x196cf8(0x28e)]))==null||_0x4eb5ed[_0x196cf8(0x40b)]();}(_0x2e395a=this[_0x196cf8(0x16b)])!=null&&_0x2e395a[_0x196cf8(0x272)]&&(0x0,_0x2d0b9f[_0x196cf8(0x123)])(this[_0x196cf8(0x3ef)],[[_0x1eed0d]]),(0x0,_0x2d0b9f[_0x196cf8(0x123)])(this[_0x196cf8(0x3ef)],[[_0x46162e],[_0x58a316],[_0x1705a2]]);}};_0x4219eb(_0x30afa7,'pluginName',_0x405303(0x43a)),_0x4219eb(_0x30afa7,_0x405303(0x21a),_0x556b81),_0x4219eb(_0x30afa7,_0x405303(0x1cb),_0x5f209a),_0x30afa7=_0x3934d9([(0x0,_0x2d0b9f['DependentOn'])(_0x3478b3[_0x405303(0x3a5)],_0xc90c47[_0x405303(0x348)],_0x20c203[_0x405303(0x169)]),_0x43549d(0x1,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0x2,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x3,_0x2d0b9f[_0x405303(0x346)])],_0x30afa7),Object['defineProperty'](_0x4baffb,'AuthzIoHttpService',{'enumerable':!0x0,'get':function(){return _0x4e73d2;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x23b),{'enumerable':!0x0,'get':function(){return _0xe05e0d;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x3cd),{'enumerable':!0x0,'get':function(){return _0x49c582;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x232),{'enumerable':!0x0,'get':function(){return _0x59b528;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x1f1),{'enumerable':!0x0,'get':function(){return _0x4cf531;}}),_0x4baffb[_0x405303(0x426)]=_0x51e182,Object['defineProperty'](_0x4baffb,_0x405303(0x1dd),{'enumerable':!0x0,'get':function(){return _0x36dd49;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x42f),{'enumerable':!0x0,'get':function(){return _0x58a316;}}),Object['defineProperty'](_0x4baffb,_0x405303(0x442),{'enumerable':!0x0,'get':function(){return _0xfb921e;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x332),{'enumerable':!0x0,'get':function(){return _0x3217fe;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x44d),{'enumerable':!0x0,'get':function(){return _0x1213e3;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x40e),{'enumerable':!0x0,'get':function(){return _0x4c98b9;}}),Object[_0x405303(0x236)](_0x4baffb,'CollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x2eb133;}}),_0x4baffb[_0x405303(0x41e)]=_0x1e7da3,_0x4baffb[_0x405303(0x1be)]=_0x3f9476,_0x4baffb['CollaborationUIEventService']=_0xa9d46c,Object[_0x405303(0x236)](_0x4baffb,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return _0x5aea68;}}),_0x4baffb[_0x405303(0x1d0)]=_0x432b3d,Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x428),{'enumerable':!0x0,'get':function(){return _0x1af009;}}),_0x4baffb[_0x405303(0x216)]=_0x219b9d,_0x4baffb[_0x405303(0x157)]=_0x405303(0x2f3),_0x4baffb[_0x405303(0x31c)]='/universer-api/user/session-ticket',Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x2b1),{'enumerable':!0x0,'get':function(){return _0x143e0e;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x14e),{'enumerable':!0x0,'get':function(){return _0x5a7876;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x1ff),{'enumerable':!0x0,'get':function(){return _0x234be3;}}),_0x4baffb[_0x405303(0x1c6)]=_0x405303(0x2db),_0x4baffb[_0x405303(0x187)]=_0x405303(0x26f),_0x4baffb[_0x405303(0x178)]=_0x29321d,_0x4baffb[_0x405303(0x44b)]=_0x562152,_0x4baffb['ICollaborationSocketService']=_0x581f35,_0x4baffb['ILocalCacheService']=_0x3e00f7,_0x4baffb[_0x405303(0x132)]=_0x1e1155,_0x4baffb[_0x405303(0x372)]=_0x43c9bd,_0x4baffb[_0x405303(0x1ce)]=0x3e8,_0x4baffb['LOCAL_CACHE_INTERVAL_KEY']='LOCAL_CACHE_INTERVAL',Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x1c3),{'enumerable':!0x0,'get':function(){return _0x42c2f1;}}),Object['defineProperty'](_0x4baffb,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return _0x1183e4;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x32c),{'enumerable':!0x0,'get':function(){return _0x3b0e9a;}}),Object['defineProperty'](_0x4baffb,_0x405303(0x36f),{'enumerable':!0x0,'get':function(){return _0x514c5a;}}),Object[_0x405303(0x236)](_0x4baffb,'PendingState',{'enumerable':!0x0,'get':function(){return _0x315789;}}),_0x4baffb[_0x405303(0x34f)]=_0x405303(0x276),_0x4baffb[_0x405303(0x1ae)]=_0x405303(0x113),_0x4baffb[_0x405303(0x2ef)]=_0x53b627,Object['defineProperty'](_0x4baffb,_0x405303(0x277),{'enumerable':!0x0,'get':function(){return _0x5080f;}}),Object['defineProperty'](_0x4baffb,_0x405303(0x35f),{'enumerable':!0x0,'get':function(){return _0x201f2c;}}),Object['defineProperty'](_0x4baffb,_0x405303(0x37e),{'enumerable':!0x0,'get':function(){return _0x33945f;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x3e9),{'enumerable':!0x0,'get':function(){return _0x4f051f;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x1fc),{'enumerable':!0x0,'get':function(){return _0x2b0eea;}}),_0x4baffb['UnitStatus']=_0x42b9d3,Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x3c3),{'enumerable':!0x0,'get':function(){return _0x30afa7;}}),_0x4baffb[_0x405303(0x28f)]=_0x233b60,_0x4baffb[_0x405303(0x40a)]=_0x36834a,_0x4baffb[_0x405303(0x408)]=_0x2ea860,_0x4baffb[_0x405303(0x30d)]=_0x2e90ec;}));
|