@univerjs-pro/collaboration-client 1.0.0-alpha.7 → 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/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x17ca27=_0x1f49;(function(_0x33d7c8,_0xbe473a){const _0x2c6e22=_0x1f49,_0x2c5d9b=_0x33d7c8();while(!![]){try{const _0x1a4d80=-parseInt(_0x2c6e22(0x356))/0x1*(parseInt(_0x2c6e22(0x12d))/0x2)+-parseInt(_0x2c6e22(0x345))/0x3+-parseInt(_0x2c6e22(0x2db))/0x4+-parseInt(_0x2c6e22(0x303))/0x5*(-parseInt(_0x2c6e22(0x2de))/0x6)+parseInt(_0x2c6e22(0x15e))/0x7+parseInt(_0x2c6e22(0x14a))/0x8*(parseInt(_0x2c6e22(0x123))/0x9)+-parseInt(_0x2c6e22(0x35c))/0xa;if(_0x1a4d80===_0xbe473a)break;else _0x2c5d9b['push'](_0x2c5d9b['shift']());}catch(_0x1f44ac){_0x2c5d9b['push'](_0x2c5d9b['shift']());}}}(_0x50c4,0xc006d));import{CollaborationEvent as _0x590a79,CompressMutationService as _0x43ff76,EmptyMutationInfo as _0x4938d6,ISnapshotServerService as _0x1cbd16,ITransformService as _0x18b268,RevisionService as _0x10c220,SnapshotService as _0x5e8347,UniverCollaborationPlugin as _0x204a31,b64DecodeUnicode as _0x530baf,isTransformChangesetsSuccess as _0xc8d105,isTransformMutationsWithChangesetFailure as _0xa08406,isTransformMutationsWithChangesetSuccess as _0x13aff6,mapDocumentTypeToUniverInstanceType as _0x4cb7c4,parseChangesetToProtocol as _0x58d805,parseProtocolChangeset as _0x21ac8b,textEncoder as _0x52b1eb,uuidv4 as _0x19b86e}from'@univerjs-pro/collaboration';import{CommandType as _0x3bccbd,DependentOn as _0x39f4ff,Disposable as _0x340ee0,DisposableCollection as _0x21e07c,IAuthzIoService as _0x4bd828,ICommandService as _0x197520,IConfigService as _0x216b51,IContextService as _0x1fb702,IImageIoService as _0x4c9b8c,ILogService as _0x5b6de8,IMentionIOService as _0x54673e,IPermissionService as _0x591ed0,IUndoRedoService as _0x36c08a,IUniverInstanceService as _0x778808,ImageSourceType as _0xf2b208,ImageUploadStatusType as _0x4e34ab,Inject as _0x2ce47d,Injector as _0x3973c2,JSONX as _0x2c6cdd,LocalUndoRedoService as _0x383c69,LocaleService as _0xed34f6,MentionType as _0x19af84,Optional as _0x1bb6a9,Plugin as _0x1f36ca,Quantity as _0x4f375d,Rectangle as _0x5759f2,RxDisposable as _0x308f48,Tools as _0x14eb1f,UniverInstanceType as _0x20b9c7,UserManagerService as _0xc6c0be,Workbook as _0x4bb70e,createIdentifier as _0x366722,generateRandomId as _0x4bcb64,isInternalEditorID as _0x1ac13e,merge as _0x404896,mergeOverrideWithDependencies as _0x36d50d,registerDependencies as _0xb41cbe,resolveWithBasePath as _0x5a5627,sequenceExecute as _0x20de5d,toDisposable as _0x2e6dfd,touchDependencies as _0x455cc6}from'@univerjs/core';import{DocStateChangeManagerService as _0x36b7ca,RichTextEditingMutation as _0x5282e4}from'@univerjs/docs';import{InsertSheetMutation as _0x5d54e7,SetSelectionsOperation as _0x97086e,SheetPermissionInitController as _0x75337d,SheetsSelectionsService as _0x3e2d2d,WorkbookEditablePermission as _0x2ee891}from'@univerjs/sheets';import{BehaviorSubject as _0x798182,ReplaySubject as _0x35b43d,Subject as _0x581410,concatMap as _0x9c8b14,firstValueFrom as _0x51bb88,map as _0x4fac5a,merge as _0xd14352,of as _0x2c4a15,shareReplay as _0x49a0b5,take as _0x13d8b9,takeUntil as _0x29b3c1}from'rxjs';import{CmdRspCode as _0x1ebaa9,CombCmd as _0x245e97,ErrorCode as _0x3e711d,FileSource as _0x378902}from'@univerjs/protocol';import{ITelemetryService as _0x508442}from'@univerjs/telemetry';import{delay as _0x2fc25e,filter as _0xca999c,map as _0x26cc28,take as _0x20db95,takeUntil as _0x2bd606}from'rxjs/operators';import{AddSlidePageMutation as _0x2faa88,EnsureSlideMasterPageMutation as _0x3a18a2,MoveSlidePageMutation as _0x4883b9,RemoveSlidePageMutation as _0x6c1128}from'@univerjs-pro/slides';import{HTTPRequest as _0x1ff91a,HTTPService as _0x23cb98,ISocketService as _0x150f64,MergeInterceptorFactory as _0x3ff850,ThresholdInterceptorFactory as _0x521c8b,UniverNetworkPlugin as _0x1fb939}from'@univerjs/network';import{UniverLicensePlugin as _0x216d9f,getGlobalObject as _0x343bfa}from'@univerjs-pro/license';function _0x50c4(){const _0x51bdab=['fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','2250120klPkrT','getUploadOptions','_scheduleCompleteTimestamp','6zwLRAq','pluginName','UPDATE_CURSOR','unit-cache-','_collaborationUIEventService','session.room-cnt-exceeds','BASE64','UNIVER_BASE','enableAuthServer','RECV','DEFAULT_FILE_NAME','/object/','_localeService','authzUrl','interceptor','/unit/','setConfig','FETCH_MISSING','c1Prime','function','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_changesetSessionId','session.room-full','_snapshotService','updatePermissionObjEvent','{fileID}','[OfflineState]:\x20received\x20changeset.','change$','changesets','getCurrentUser','getCurrentRevOfUnit','CHANGESET_ACK','onSendChangeset','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','getTypeOfUnitDisposed$','hasOwnProperty','not_collab','7320305zTkaxX','_clearHeartbeatTimer','fromCharCode','UNIVER_BOARD','JOIN','_rescheduleHeartbeat','next','[PendingState]:\x20unhandled\x20univer\x20type:\x20','get','_entities','socket\x20open.','_transformRemoteChangesetByStateCache','_startCollaboration','COLLABORATION_ENDPOINT_INVALID','_sheetTransformSelectionsService','INGEST','/collaborator','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','location','map','PERSON','compose','collabWebSocketUrl','_joinRoom','_onRemoteRetry','collaborators','LIVESHARE_OPERATION','JOINING','reconnect','_throwTelemetryCollaborationNewChangeset','eventID','LOCAL_CACHE_INTERVAL','listRoles','getFocusedUnit','updateMember','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','encode','_getSendChangesetTimeout','replace','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','session.room-permission-denied','c2Prime','_onCombEvent','memberID','_checkMissing','_onLocalMutation','constructor','_socketChannels','size','updatePermissionPoint','loadUnit','_listenToNetworkCondition','[OfflineState]:\x20received\x20acknowledgement.','_clearLocalCache','_getCtorByUniverInstanceType','_clearCollaborationTimeoutTimer','onTransformState','JOIN_ROOM_NOT_EXISTS','getUnitStatus$','_initCloseConn','incrementRevOfUnit','endpointKey','_sender','NO_OTHER_CLIENTS_EDITING','avatar','_resendWithTimeout','120912FcYBUt','PERMISSION_DENIED','COMPRESS_MUTATION_SEND','[UniverCollaborationClientPlugin]','getOwnPropertyDescriptor','_replaceFileID','UPDATE_PERMISSION_OBJ','\x0aAfter:\x20','packageName','fromCollab','_collabSessionService','_applyRemoteChangeset','mutations','object','_scheduleCollaborationTimeoutTimer','_getAPIPrefix','submit\x20changeset\x20error!','1195gPmwRD','resend','_clearRedo','liveShareNewHost','People','revision','13418390AfkqXz','docStateChange$','getConfig','onSyncEditingCollabCursor','waitForRoom$','accept','editing\x20status\x20changed\x20to','members','_transformIMECache','_handlerCallback','readAsDataURL','splice','transformSelections','_injector','onRemoteChangeset','trim','\x20in\x20_schedule.','transformMutationsWithChangeset','unit','override','getUnitType','_httpService','onMutationExecutedForCollab','/block/','/universer-api/oidc/authpage','_singleActiveUnitService','ONLINE','resolveUnit','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','prototype','includes','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','_cfgEnableObjInherit','_collaborationSessionService','_shouldReportTelemetry','data','COMMENT_UPDATE','_getUndoStack','max','uploadFileServerUrl','IDLE','find','saveAttachment','snapshot','timeoutTimer','[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.','put','refreshPermission','closeSession','localUnitId','_onUserJoin','_remoteChangesetQueue','findIndex','onMissingChangesets','pending','_sessionChannels','_members$','collaboration-client.config','_maxTotalRetryTimeout','onCommentUpdate','_adapter','iterator','uniscriptRunEvent','OTHER_CLIENT_EDITING','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','onlyLocal','RETRY_CONNECTING_MAX_COUNT','_transformStateCache','[CollaborationState]:\x20apply\x20error!','AWAITING_WITH_PENDING','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','readyForCollab','offline','range','number','_showConflictNotification','_logService','enableSingleActiveInstanceLock','_createHandler','OFFLINE','hostname','toggleOffline','_init','fetchMiss','FAIL','saveSheetBlock','_waitCount','_undoRedoService','code','awaitingChangeset','title','&to=','unknown','[CollaborationSession]','onTransformSelections','_clearTimeoutTimer','_resendTimer','_permissionService','signUrlServerUrl','backupOfflineData','Univer','upload','URL','_type','_status$','dispose$','getTypeOfUnitAdded$','_transformStack','debug','has','_sessions','startsWith','PSEUDO_FETCH_MISSING_RESULT','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','setWaitCount','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','name','Error\x20on\x20receiving\x20event','forEach','_substituteRedoStack','getCurrentSelections','_snapshotServerService','&assign=','USERS_LEAVE','duration','_telemetryInfo','1846143nRXlDV','_identity','_sessionStatus$','LIVESHARE_NEW_HOST','?size=','/universer-api/user/session-ticket','_initUnitPermissionChange','onTransformIME','onMissedChangesetFetched','collaboration_new_changeset','1148GllfJu','slice','text-x','_networkConditionService','baseRev','_submitChangeset','file','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_tryReconnect','entries','/universer-api/stream/file/upload','_exhaustRemoteChangesetQueue','subscribe','joinEvent','_acknowledgeAwaiting','_initDependencies','fetch_missing','univer-pro.collaboration-client.network-condition.service','_onRemoteChangeset','/rev/','reverse','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_onConnectionOpen','createCollaborator','call','getUnitOnRev','_onOffline','getLatestCsReqIdBySid','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','32KKWnJn','sid','_entityInit$','unitLoaded$','setCfgEnableObjInherit','_commentUpdate$','workbook','subject','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_handler','SOCKET_FAILED_RETRY','toRemote','getValue','updateOfflineData','connection\x20error','_isEchoedAwaitingChangeset','COMPRESS_MUTATION_APPLY','getMemberID','HEARTBEAT_TIMEOUT','_transformService','7928025uOjgwz','cfgEnableObjInherit','_acknowledgedAwaitingRevision','/universer-api/comb','maxSize','/-/object/-/batch_allowed','_updateLocalCache','_clearScheduledTask','localCacheService','every','confirm','blockRanges','subUnitId','HEARTBEAT_INTERVAL','PERMISSION_REJ','unitType','removeMember','_getConfig','encrypt','_createSocket','requestParams','/universer-api/uniscript','reject','responseType','ERROR_EXCEED_SIZE','_toggleOffline','_emitMembers','_telemetryService','_revisionService','roomInfos','_waitForHeartbeatResponse','endpoint','open$','reqId','_pendingSessions','textRanges','socketReady','_acknowledgeAwaitingIfReady','executeCommand','MUTATION','editingUnit','sheets','_updateState','getResourcesRequest','string','shouldCloseConn','getInterceptPoints','_transformRemoteChangesetByIMECache','[PendingState]:\x20received\x20acknowledgement.','focused$','updateCollaborator','getImage','requireSession','src','originalMeta','attachment','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','close','joinRsp','JOIN_ROOM_PERMISSION_DENIED','_toggleOnline','_disableEditing','_transitionLocked','SUBMIT_CHANGESET','save\x20fail\x20reason\x20is\x20','CHANGESET_REJ','_isPermissionRej','version','_collaborationTimeoutTimer','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_decreaseWaiting','loginUrlKey','batchAllowed','create','userID','min','UNIVER_DOC','getSnapshotAPIPath','_onJoinRoomEvent','SUBMIT_CHANGESET_TIMEOUT','transformChangesets','some','_unlockTransition','_roomCreated$','registerHTTPInterceptor','_fetchMissChangesets','append','push','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','onload','@univerjs-pro/collaboration-client','_sendHeartbeat','type','_awaitingChangeset','unitID','_compressMutationService','target','_transformAndApplyRemoteChangeset','encodeURIComponent','close$','_changesetReqId','\x0aCurrent:\x20','sort','_socket','symbol','message$','base-ui.attachment-io.service','getSheetBlock','href','online$','fetchThroughInterceptors','_stopTelemetryCollaborationNewChangeset','_getSocketChannel','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','onRemoteRetry','tables','getTime','status','retryConnectingTimer','x-univer-host','newCsEvent','transformUndoRedo','roles','update','PENDING','delete','length','capture','socket\x20close','_syncEditingCollabCursor','onTransformRemoteChangesetByIMECache','_createInitialState','getSheetId','_unitInfo$','1.0.0-alpha.7','_onUserLeave','UNIVER_SLIDE','downloadEndpointUrl','telemetry\x20info\x20is\x20not\x20initialized','USERS_ENTER','loadBase','_queuedRemoteChangesets','_docStateChangeManagerService','_resolveSessionIdentity','result','origin','onStateChange','reduce','_imageSourceCache','selections','JOIN_ROOM_FAILED','_redoStacks','_onFetchMissResult','isArray','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_pendingMutations','POST','onRemoteRej','getUnitId','m2Prime','_instanceService','_getCurrentRevision','_transformUndoredo','charCodeAt','[CollaborationEntity]','/resources','socketService','[CollaborationUndoRedoService]','CLOSE_ROOM','NEW_CHANGESETS','_resendTimeout','_removeRoom','collaMsg','error','loadSheet','UNIVER_SHEET','loadUnitOfRevision','unsubscribe','body','createInstance','_handleRemoteChangesets','indexOf','deepClone','[FetchMissState]','enableCollaboration','awaiting_with_pending','decorate','onRemoteAck','failed\x20to\x20apply\x20missed\x20changesets!','awaiting','candidateSocket','endsWith','_getAPIPrefixPath','listCollaborators','then','params','startTime','_commentService','toggleOnline','_clearUndo','objectType','_getDownloadEndpointURL','objectActions','_getSignURL','getCollabEntity$','_undoStacks','_univerInstanceService','add','session','sessionStatus$','loadBoard','asObservable','unitId','_replayCachedMutations','UUID','_registerDependencies','_transformSelections','/universer-api/authz','action','loadDoc','set','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_schedule','filter','onTransformRemoteChangesetByStateCache','LIVESHARE_TERMINATE','/-/object/list','send','apply','objects','_clearRetryConnectingTimer','CONFLICT','_initMergeInterceptor','post','state','_memberService','infoRsp','default','unitId\x20is\x20not\x20found','_commandService','_onRemoteRejected','_onConnectionFailed','&source=','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','[CollaborationSessionService]','values','commentUpdateEvent','disposeWithMe','_onConflict','_configService','complete','_getRedoStack','getImageSourceCache','_tryEnsureSocket','getCfgEnableObjInherit','copyFileMeta','fetchMissingChangesets','_substituteUndoStack','[OfflineState]:\x20received\x20rejection.','_eventService','_change$','_hasSessionsForEndpoint','status$','/allowed','stopTime','_state','onStarting','csShouldRetryEvent','collaboration-client.auth.needGotoLoginAlert','_onRemoteACK','_userManagerService','sessionStatus','HEARTBEAT','_event$','changeset','createSocket','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','loadOfflineData','_collaborationPaused','_unitLoaded$','synced','_state$','isCompositionEnd','unitInfo$','saveSnapshot','commentUpdate$','allowed','init','defineProperty','ERROR_IMAGE','collaboration-client.local-cache-service','localeService','retryCount','_executeRemoteChangeset','patch','OTHER_CLIENTS_EDITING','getDeserializedSheetBlock','toString','actions','appendMutation','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','missingChangesets','_localCacheService','session.room-not-exists','_createSession','cmd','routeKey','_getUploadFileURL','_updateStatus','FileId','LEAVE','objectID','url','LIVESHARE_FETCH_OPERATIONS','_upload','MSG_FOR_ERROR','_incrementRevisionNumber','method','getMember','_startTelemetryCollaborationNewChangeset','_createInitialStateImpl','onLocalMutation','state$','OPTIONAL','Failed\x20to\x20update\x20permission\x20point','getCollabEntity','_socketMessageSubscription','SOCKET_FAILED','[SyncedState]:\x20received\x20acknowledgement.','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','setCurrentUser','resolve','getAllMembers','_getLoginPath','UnitEmbedded','isPermissionRej','_HTTPService','_config','columnGroups','univer-pro.collaboration-client-socket-service','sendChangesetTimeout','members$','resourceIDs','error$','_lockTransition','getWorkbookSelections','pipe','retryConnectingInterval','conflict','HELLO','now','FETCH_MISS','CHANGESET_SHOULD_RETRY','socket$','csAckEvent','emitEvent','GLOBAL_ROOMS_CNT_EXCEEDS','_roomMembers','dispose','socketMessageSubscription','[CollaborationSessionService]:\x20socket\x20error','getRoom','catch','_onRecvEvent','csRejEvent','_sendingTimer','__splitChunk__','AWAITING','/new_changes','clear','_members','sendHeartbeatTimer','stringify','__Key__','SHOULD_CLOSE_CONN','event$','[SyncedState]:\x20received\x20rejection.','leaveEvent','deleteCollaborator','setShowComponents'];_0x50c4=function(){return _0x51bdab;};return _0x50c4();}import{cbc as _0x4b54ab}from'@noble/ciphers/aes.js';import{concatBytes as _0x378420,randomBytes as _0xe2f692,utf8ToBytes as _0x3ea947}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x44a927,getDrawingImageAllowSize as _0x2bda06}from'@univerjs/drawing';const L=_0x17ca27(0xde),pt={},mt='ws://127.0.0.1:8000/universer-api/comb/connect',ht=_0x17ca27(0x128),gt=_0x17ca27(0x16b),_t=_0x17ca27(0x15c),vt=0x4e20,yt='RETRY_CONNECTING_MAX_COUNT',bt=_0x17ca27(0x322),xt=0x3e8,St=_0x17ca27(0x1b6),Ct=_0x17ca27(0x173);function wt(_0x553240){const _0xe414b4=_0x17ca27;return JSON[_0xe414b4(0x2d2)](_0x553240)['length'];}function Tt(_0x4566d4){'@babel/helpers - typeof';const _0x4b0315=_0x17ca27;return Tt=typeof Symbol==_0x4b0315(0x2f1)&&typeof Symbol[_0x4b0315(0xe2)]==_0x4b0315(0x1c6)?function(_0xb5ac07){return typeof _0xb5ac07;}:function(_0xca0164){const _0x5e32f1=_0x4b0315;return _0xca0164&&typeof Symbol==_0x5e32f1(0x2f1)&&_0xca0164[_0x5e32f1(0x331)]===Symbol&&_0xca0164!==Symbol[_0x5e32f1(0x379)]?_0x5e32f1(0x1c6):typeof _0xca0164;},Tt(_0x4566d4);}function Et(_0x8dbc6b,_0x14249f){const _0x4d8b9f=_0x17ca27;if(Tt(_0x8dbc6b)!='object'||!_0x8dbc6b)return _0x8dbc6b;var _0x1f0226=_0x8dbc6b[Symbol['toPrimitive']];if(_0x1f0226!==void 0x0){var _0x4ce187=_0x1f0226[_0x4d8b9f(0x145)](_0x8dbc6b,_0x14249f||_0x4d8b9f(0x24b));if(Tt(_0x4ce187)!=_0x4d8b9f(0x352))return _0x4ce187;throw TypeError(_0x4d8b9f(0xeb));}return(_0x14249f===_0x4d8b9f(0x18a)?String:Number)(_0x8dbc6b);}function Dt(_0x4cca99){var _0x180023=Et(_0x4cca99,'string');return Tt(_0x180023)=='symbol'?_0x180023:_0x180023+'';}function R(_0x127fea,_0x68b1e2,_0x38d02a){const _0x32ff48=_0x17ca27;return(_0x68b1e2=Dt(_0x68b1e2))in _0x127fea?Object[_0x32ff48(0x27e)](_0x127fea,_0x68b1e2,{'value':_0x38d02a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x127fea[_0x68b1e2]=_0x38d02a,_0x127fea;}let Ot=function(_0x422a0b){const _0x500635=_0x17ca27;return _0x422a0b[_0x500635(0xe4)]=_0x500635(0xe4),_0x422a0b[_0x500635(0x346)]=_0x500635(0x346),_0x422a0b['CONFLICT']=_0x500635(0x245),_0x422a0b['CLOSE_ROOM']=_0x500635(0x206),_0x422a0b[_0x500635(0x1f4)]='JOIN_ROOM_FAILED',_0x422a0b[_0x500635(0x154)]=_0x500635(0x154),_0x422a0b['SOCKET_FAILED']=_0x500635(0x2a5),_0x422a0b['SUBMIT_CHANGESET_TIMEOUT']=_0x500635(0x1ad),_0x422a0b;}({});var z=class{constructor(){const _0x2a37ba=_0x17ca27;R(this,_0x2a37ba(0x26f),new _0x581410()),R(this,'event$',this[_0x2a37ba(0x26f)][_0x2a37ba(0x231)]());}[_0x17ca27(0x2c1)](_0x28db42){const _0x2ea48d=_0x17ca27;this['_event$'][_0x2ea48d(0x309)](_0x28db42);}},kt=class{constructor(){const _0x2029a0=_0x17ca27;R(this,_0x2029a0(0x14f),new _0x581410()),R(this,_0x2029a0(0x27b),this[_0x2029a0(0x14f)][_0x2029a0(0x231)]());}[_0x17ca27(0xe0)](_0x295d18){const _0xbbac00=_0x17ca27;this[_0xbbac00(0x14f)][_0xbbac00(0x309)](_0x295d18);}};function B(_0x22e0bd,_0x5cbfc1){return function(_0x18972a,_0x553291){_0x5cbfc1(_0x18972a,_0x553291,_0x22e0bd);};}function V(_0x58befa,_0x3a6327,_0x4f9b11,_0xcecaa8){const _0x17cc49=_0x17ca27;var _0x5ed2ba=arguments['length'],_0xada3c8=_0x5ed2ba<0x3?_0x3a6327:_0xcecaa8===null?_0xcecaa8=Object[_0x17cc49(0x349)](_0x3a6327,_0x4f9b11):_0xcecaa8,_0x3f405b;if(typeof Reflect==_0x17cc49(0x352)&&typeof Reflect[_0x17cc49(0x218)]==_0x17cc49(0x2f1))_0xada3c8=Reflect[_0x17cc49(0x218)](_0x58befa,_0x3a6327,_0x4f9b11,_0xcecaa8);else{for(var _0x4a7492=_0x58befa[_0x17cc49(0x1dc)]-0x1;_0x4a7492>=0x0;_0x4a7492--)(_0x3f405b=_0x58befa[_0x4a7492])&&(_0xada3c8=(_0x5ed2ba<0x3?_0x3f405b(_0xada3c8):_0x5ed2ba>0x3?_0x3f405b(_0x3a6327,_0x4f9b11,_0xada3c8):_0x3f405b(_0x3a6327,_0x4f9b11))||_0xada3c8);}return _0x5ed2ba>0x3&&_0xada3c8&&Object[_0x17cc49(0x27e)](_0x3a6327,_0x4f9b11,_0xada3c8),_0xada3c8;}let H=class extends _0x340ee0{constructor(_0x175126,_0xbdf58){const _0x55c18f=_0x17ca27;super(),this[_0x55c18f(0x22c)]=_0x175126,this[_0x55c18f(0x26c)]=_0xbdf58,R(this,_0x55c18f(0x2c3),new Map()),R(this,'_roomCreated$',new _0x581410()),this[_0x55c18f(0x255)](_0xd14352(this[_0x55c18f(0x22c)][_0x55c18f(0x300)](_0x20b9c7['UNIVER_SHEET'])[_0x55c18f(0x2b8)](_0x26cc28(_0x556c49=>_0x556c49['getUnitId']())),this[_0x55c18f(0x22c)][_0x55c18f(0x300)](_0x20b9c7[_0x55c18f(0x1aa)])['pipe'](_0x26cc28(_0x7918a2=>_0x7918a2[_0x55c18f(0x1fc)]())),this[_0x55c18f(0x22c)][_0x55c18f(0x300)](_0x20b9c7[_0x55c18f(0x306)])[_0x55c18f(0x2b8)](_0x26cc28(_0x16ab08=>_0x16ab08[_0x55c18f(0x1fc)]())),this['_univerInstanceService'][_0x55c18f(0x300)](_0x20b9c7['UNIVER_BASE'])[_0x55c18f(0x2b8)](_0x26cc28(_0x3756e4=>_0x3756e4[_0x55c18f(0x1fc)]())))['subscribe'](_0x164d06=>this[_0x55c18f(0x209)](_0x164d06)));}[_0x17ca27(0x360)](_0x4644d5){const _0x4013d3=_0x17ca27;return this[_0x4013d3(0x2c3)][_0x4013d3(0x112)](_0x4644d5)?_0x2c4a15(this['_roomMembers'][_0x4013d3(0x30b)](_0x4644d5)):this[_0x4013d3(0x1b1)]['pipe'](_0x26cc28(_0xfb9d93=>{const _0x69ff93=_0x4013d3;if(_0xfb9d93===_0x4644d5)return this[_0x69ff93(0x2c3)][_0x69ff93(0x30b)](_0xfb9d93);}));}[_0x17ca27(0x2a8)](_0x14c9f9){const _0x3ca854=_0x17ca27;this[_0x3ca854(0x26c)][_0x3ca854(0x2a8)](_0x14c9f9);}[_0x17ca27(0x2fb)](){const _0xdadb48=_0x17ca27;return this['_userManagerService'][_0xdadb48(0x2fb)]();}[_0x17ca27(0x325)](_0x35cf9b,_0x218fed){const _0x10e5f3=_0x17ca27;let _0x189f59=this['_roomMembers'][_0x10e5f3(0x30b)](_0x35cf9b);_0x189f59||(_0x189f59=new At(),this['_roomMembers'][_0x10e5f3(0x23a)](_0x35cf9b,_0x189f59),this[_0x10e5f3(0x1b1)][_0x10e5f3(0x309)](_0x35cf9b)),_0x189f59[_0x10e5f3(0x325)](_0x218fed);}[_0x17ca27(0x16e)](_0x18bd70,_0x176498){const _0x43f4a7=_0x17ca27;let _0x2509ca=this[_0x43f4a7(0x2c3)][_0x43f4a7(0x30b)](_0x18bd70);_0x2509ca&&_0x2509ca['removeMember'](_0x176498);}[_0x17ca27(0x2c7)](_0x134528){const _0x1d3113=_0x17ca27;return this['_roomMembers'][_0x1d3113(0x30b)](_0x134528);}[_0x17ca27(0x29c)](_0x59645b,_0x5d09d3){const _0x49985d=_0x17ca27;let _0x3256fc=this[_0x49985d(0x2c3)]['get'](_0x59645b);if(_0x3256fc)return _0x3256fc[_0x49985d(0x29c)](_0x5d09d3);}[_0x17ca27(0x209)](_0x10c58b){const _0x4a6156=_0x17ca27;let _0x1151b0=this['_roomMembers'][_0x4a6156(0x30b)](_0x10c58b);_0x1151b0&&(_0x1151b0[_0x4a6156(0x2c4)](),this[_0x4a6156(0x2c3)]['delete'](_0x10c58b));}['dispose'](){const _0x5d0da3=_0x17ca27;this[_0x5d0da3(0x2c3)][_0x5d0da3(0x11b)](_0x121fb1=>_0x121fb1[_0x5d0da3(0x2c4)]()),this['_roomMembers'][_0x5d0da3(0x2cf)](),this['_roomCreated$']['complete']();}};H=V([B(0x0,_0x778808),B(0x1,_0x2ce47d(_0xc6c0be))],H);var At=class extends _0x340ee0{constructor(..._0x258c84){const _0x138f06=_0x17ca27;super(..._0x258c84),R(this,_0x138f06(0x2d0),new Map()),R(this,'_members$',new _0x798182(this[_0x138f06(0x2d0)])),R(this,_0x138f06(0x2b3),this['_members$'][_0x138f06(0x231)]());}[_0x17ca27(0x2c4)](){const _0x21614b=_0x17ca27;this[_0x21614b(0x2d0)][_0x21614b(0x2cf)](),this[_0x21614b(0xdd)]['complete']();}[_0x17ca27(0x325)](_0x476576){const _0x4e712c=_0x17ca27;this[_0x4e712c(0x2d0)]['set'](_0x476576[_0x4e712c(0x32e)],_0x476576),this[_0x4e712c(0x178)]();}[_0x17ca27(0x16e)](_0x147355){const _0x4d19e9=_0x17ca27;this[_0x4d19e9(0x2d0)]['delete'](_0x147355),this[_0x4d19e9(0x178)]();}[_0x17ca27(0x29c)](_0x2700d4){const _0x195ffb=_0x17ca27;return this[_0x195ffb(0x2d0)]['get'](_0x2700d4);}[_0x17ca27(0x2aa)](){const _0x72cacb=_0x17ca27;return Array['from'](this[_0x72cacb(0x2d0)][_0x72cacb(0x253)]());}['_emitMembers'](){const _0x2dfcf7=_0x17ca27;this[_0x2dfcf7(0xdd)][_0x2dfcf7(0x309)](this[_0x2dfcf7(0x2d0)]);}};function jt(_0x3c4c59,_0x4eab5a){const _0x57222c=_0x17ca27;if(Nt(_0x3c4c59))return _0x4eab5a;if(_0x4eab5a[_0x57222c(0x321)]===_0x590a79[_0x57222c(0x19d)]){var _0x533ded;let _0xf3f875=Rt(_0x3c4c59),_0x2d525c=_0x4eab5a;return{..._0x2d525c,'data':{..._0x2d525c[_0x57222c(0x37f)],'unitID':_0x3c4c59[_0x57222c(0x1be)][_0x57222c(0x232)],'unitType':(_0x533ded=_0x3c4c59[_0x57222c(0x1be)][_0x57222c(0x16d)])==null?_0x2d525c[_0x57222c(0x37f)][_0x57222c(0x16d)]:_0x533ded,'changeset':_0xf3f875[_0x57222c(0x155)](_0x2d525c[_0x57222c(0x37f)]['changeset'],zt(_0x3c4c59))}};}if(_0x4eab5a['eventID']===_0x590a79[_0x57222c(0x2ef)]){var _0x5e4e98;let _0x39e39c=_0x4eab5a;return{..._0x39e39c,'data':{..._0x39e39c[_0x57222c(0x37f)],'unitID':_0x3c4c59[_0x57222c(0x1be)]['unitId'],'unitType':(_0x5e4e98=_0x3c4c59[_0x57222c(0x1be)]['unitType'])==null?_0x39e39c[_0x57222c(0x37f)]['unitType']:_0x5e4e98}};}return _0x4eab5a;}function Mt(_0x18a0e8,_0x365e5d){const _0x3fdd77=_0x17ca27;if(Nt(_0x18a0e8))return[_0x365e5d];switch(_0x365e5d['eventID']){case _0x590a79[_0x3fdd77(0x207)]:return[Pt(_0x18a0e8,_0x365e5d)];case _0x590a79[_0x3fdd77(0x115)]:return[It(_0x18a0e8,_0x365e5d)];case _0x590a79[_0x3fdd77(0x2be)]:return[Ft(_0x18a0e8,_0x365e5d)];default:return[_0x365e5d];}}function Nt(_0x1d3a0d){const _0x523ec5=_0x17ca27;return _0x1d3a0d[_0x523ec5(0x1be)][_0x523ec5(0x17d)]==null&&_0x1d3a0d[_0x523ec5(0x1be)]['unitId']===_0x1d3a0d[_0x523ec5(0x38d)]&&!_0x1d3a0d[_0x523ec5(0x270)];}function Pt(_0x2e91fa,_0x56d1f1){const _0x12d532=_0x17ca27;return{..._0x56d1f1,'data':_0x58d805(Lt(_0x2e91fa,_0x21ac8b(_0x56d1f1[_0x12d532(0x37f)])))};}function Ft(_0xe7ce86,_0x3be782){const _0x2f6b20=_0x17ca27;return{..._0x3be782,'data':Lt(_0xe7ce86,_0x3be782[_0x2f6b20(0x37f)])};}function It(_0x136e01,_0x5eeb56){const _0x456073=_0x17ca27;let _0x493b30=_0x5eeb56[_0x456073(0x37f)];return{..._0x5eeb56,'data':{..._0x493b30,'changesets':_0x493b30['changesets'][_0x456073(0x316)](_0x152466=>_0x58d805(Lt(_0x136e01,_0x21ac8b(_0x152466))))}};}function Lt(_0x3fff5c,_0x185fe2){return Rt(_0x3fff5c)['toLocal'](_0x185fe2,zt(_0x3fff5c));}function Rt(_0x169ed0){const _0x20427b=_0x17ca27;if(!_0x169ed0[_0x20427b(0x270)])throw Error(_0x20427b(0x1a3));return _0x169ed0[_0x20427b(0x270)];}function zt(_0x5a111d){const _0x6e962c=_0x17ca27;return{'localUnitId':_0x5a111d[_0x6e962c(0x38d)],'unitType':_0x5a111d[_0x6e962c(0x16d)],'target':_0x5a111d[_0x6e962c(0x1be)]};}let Bt=function(_0x5afaea){const _0xecbaea=_0x17ca27;return _0x5afaea[_0x5afaea['IDLE']=0x0]=_0xecbaea(0x384),_0x5afaea[_0x5afaea[_0xecbaea(0x31e)]=0x1]=_0xecbaea(0x31e),_0x5afaea[_0x5afaea[_0xecbaea(0xf4)]=0x2]=_0xecbaea(0xf4),_0x5afaea[_0x5afaea['ONLINE']=0x3]=_0xecbaea(0x376),_0x5afaea;}({});const Vt={[_0x1ebaa9[_0x17ca27(0xf9)]]:'session.join-failed',[_0x1ebaa9['JOIN_ROOM_FULL']]:_0x17ca27(0x2f4),[_0x1ebaa9[_0x17ca27(0x33c)]]:_0x17ca27(0x28d),[_0x1ebaa9[_0x17ca27(0x199)]]:_0x17ca27(0x32b),[_0x1ebaa9[_0x17ca27(0x2c2)]]:_0x17ca27(0x2e3)};let Ht=class extends _0x308f48{get[_0x17ca27(0x26d)](){const _0x42cdac=_0x17ca27;return this[_0x42cdac(0x125)]['getValue']();}constructor(_0x10d752,_0x11cd14,_0x27aa4b,_0x32df8f,_0x55cc74,_0x547010,_0xd1c5bc,_0x32ab18){const _0x364e0d=_0x17ca27;super(),this[_0x364e0d(0x124)]=_0x10d752,this[_0x364e0d(0xf1)]=_0x27aa4b,this[_0x364e0d(0x257)]=_0x32df8f,this[_0x364e0d(0x249)]=_0x55cc74,this[_0x364e0d(0x223)]=_0x547010,this[_0x364e0d(0x2e2)]=_0xd1c5bc,this[_0x364e0d(0x179)]=_0x32ab18,R(this,_0x364e0d(0x125),new _0x798182(0x0)),R(this,_0x364e0d(0x22f),this[_0x364e0d(0x125)][_0x364e0d(0x231)]()),R(this,'_event$',new _0x581410()),R(this,_0x364e0d(0x2d5),this[_0x364e0d(0x26f)][_0x364e0d(0x231)]()),R(this,_0x364e0d(0x1c5),void 0x0),R(this,_0x364e0d(0x2a4),void 0x0),R(this,_0x364e0d(0x1a2),void 0x0),R(this,_0x364e0d(0x37e),!0x1),R(this,_0x364e0d(0x122),null),this[_0x364e0d(0x37e)]=!!this[_0x364e0d(0x179)],_0x11cd14['pipe'](_0x29b3c1(this['dispose$']))[_0x364e0d(0x139)](_0x84ce1=>{const _0x5ea03f=_0x364e0d;if(_0x84ce1!==void 0x0){if(this[_0x5ea03f(0x1c5)]=_0x84ce1,_0x84ce1)this[_0x5ea03f(0x31a)](_0x84ce1),this[_0x5ea03f(0x2a4)]=_0x84ce1['message$']['subscribe'](_0x34504d=>{const _0x277d8c=_0x5ea03f;_0x34504d[_0x277d8c(0x290)]===this[_0x277d8c(0x124)][_0x277d8c(0x1be)][_0x277d8c(0x232)]&&this['_onCombEvent'](_0x34504d);});else{var _0x2210be;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x5ea03f(0x125)]['next'](0x2),(_0x2210be=this[_0x5ea03f(0x2a4)])==null||_0x2210be[_0x5ea03f(0x20f)](),this[_0x5ea03f(0x2a4)]=null;}}});}[_0x17ca27(0x15b)](){const _0x467126=_0x17ca27;var _0x8ba68f,_0x1f5921;return(_0x8ba68f=(_0x1f5921=this[_0x467126(0x1c5)])==null?void 0x0:_0x1f5921[_0x467126(0x32e)])==null?null:_0x8ba68f;}[_0x17ca27(0x2c4)](){const _0x34df81=_0x17ca27;super[_0x34df81(0x2c4)](),this['close'](),this[_0x34df81(0x10e)][_0x34df81(0x309)](),this[_0x34df81(0x10e)][_0x34df81(0x258)]();}[_0x17ca27(0x197)](){const _0x987a20=_0x17ca27;var _0x4a373c;this[_0x987a20(0x320)](),(_0x4a373c=this[_0x987a20(0x1c5)])==null||_0x4a373c[_0x987a20(0x241)]({'cmd':_0x245e97[_0x987a20(0x294)],'data':{'roomID':this[_0x987a20(0x124)][_0x987a20(0x1be)][_0x987a20(0x232)]}}),this['_event$'][_0x987a20(0x258)](),this[_0x987a20(0x125)][_0x987a20(0x258)]();}[_0x17ca27(0x32d)](_0x6b95d3){const _0x4d5a61=_0x17ca27;_0x6b95d3[_0x4d5a61(0x28f)]===_0x245e97['JOIN']?this[_0x4d5a61(0x1ac)](_0x6b95d3):_0x6b95d3[_0x4d5a61(0x28f)]===_0x245e97['RECV']&&this[_0x4d5a61(0x2c9)](_0x6b95d3);}[_0x17ca27(0x31a)](_0x57252c){const _0x297bdf=_0x17ca27;this[_0x297bdf(0x125)][_0x297bdf(0x309)](0x1),_0x57252c[_0x297bdf(0x241)]({'cmd':_0x245e97[_0x297bdf(0x307)],'routeKey':this[_0x297bdf(0x124)][_0x297bdf(0x1be)][_0x297bdf(0x232)],'routeType':'','data':{'rooms':[{'roomID':this[_0x297bdf(0x124)][_0x297bdf(0x1be)][_0x297bdf(0x232)]}]}});}['_onJoinRoomEvent'](_0x1702f7){const _0x4c3983=_0x17ca27;var _0xf0b305;if(_0x1702f7[_0x4c3983(0xfd)]in Vt){this[_0x4c3983(0x2e2)][_0x4c3983(0x2c1)]({'id':_0x4c3983(0x1f4),'data':Vt[_0x1702f7['code']]}),this[_0x4c3983(0x125)][_0x4c3983(0x309)](0x2);return;}this[_0x4c3983(0x125)][_0x4c3983(0x309)](0x3);let _0x1ab4a9=(_0xf0b305=_0x1702f7[_0x4c3983(0x37f)][_0x4c3983(0x17b)][this[_0x4c3983(0x124)][_0x4c3983(0x1be)][_0x4c3983(0x232)]])==null?void 0x0:_0xf0b305[_0x4c3983(0x363)];_0x1ab4a9&&_0x1ab4a9[_0x4c3983(0x11b)](_0x100ea3=>this['_memberService'][_0x4c3983(0x325)](this[_0x4c3983(0x124)]['localUnitId'],_0x100ea3));}[_0x17ca27(0x2c9)](_0x4b843c){const _0x144ada=_0x17ca27;try{let _0xcd67af=Mt(this[_0x144ada(0x124)],_0x4b843c[_0x144ada(0x37f)]);for(let _0x321844 of _0xcd67af)switch(_0x321844['eventID']){case _0x590a79[_0x144ada(0x1e9)]:this['_onUserJoin'](_0x321844),this[_0x144ada(0x26f)][_0x144ada(0x309)](_0x321844);break;case _0x590a79[_0x144ada(0x120)]:this[_0x144ada(0x1e5)](_0x321844),this[_0x144ada(0x26f)][_0x144ada(0x309)](_0x321844);break;case _0x590a79[_0x144ada(0x2fd)]:case _0x590a79[_0x144ada(0x2be)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x144ada(0x33a)](),this[_0x144ada(0x26f)][_0x144ada(0x309)](_0x321844);break;case _0x590a79[_0x144ada(0x299)]:this[_0x144ada(0xf1)][_0x144ada(0x20b)](_0x144ada(0x19e)+JSON[_0x144ada(0x2d2)](_0x321844)),this[_0x144ada(0x26f)][_0x144ada(0x309)](_0x321844);break;case _0x590a79['COMMENT_UPDATE']:this['_commentService']['onCommentUpdate'](_0x321844[_0x144ada(0x37f)]),this[_0x144ada(0x26f)][_0x144ada(0x309)](_0x321844);break;default:this[_0x144ada(0x26f)][_0x144ada(0x309)](_0x321844);}}catch(_0x21d334){this[_0x144ada(0xf1)][_0x144ada(0x20b)](_0x21d334,_0x4b843c);}}[_0x17ca27(0x38e)](_0x97dfab){const _0x53f760=_0x17ca27;this[_0x53f760(0x249)][_0x53f760(0x325)](this['_identity'][_0x53f760(0x38d)],_0x97dfab[_0x53f760(0x37f)]);}[_0x17ca27(0x1e5)](_0x58737f){const _0x515a62=_0x17ca27;this[_0x515a62(0x249)][_0x515a62(0x16e)](this[_0x515a62(0x124)][_0x515a62(0x38d)],_0x58737f[_0x515a62(0x37f)]['memberID']);}async[_0x17ca27(0x241)](_0x1d8405,_0x2cee17){const _0x36d7d0=_0x17ca27;if(this[_0x36d7d0(0x26d)]!==0x3||!this['_socket'])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x31889c=jt(this[_0x36d7d0(0x124)],_0x1d8405);_0x31889c[_0x36d7d0(0x321)]===_0x590a79[_0x36d7d0(0x19d)]&&(this[_0x36d7d0(0x353)](),this['_startTelemetryCollaborationNewChangeset'](_0x31889c)),this[_0x36d7d0(0x1c5)][_0x36d7d0(0x241)]({'cmd':_0x245e97['INGEST'],'routeKey':this['_identity'][_0x36d7d0(0x1be)]['unitId'],'routeType':'','data':_0x31889c});}catch(_0x239b03){this[_0x36d7d0(0xf1)][_0x36d7d0(0x20b)](_0x239b03);}}[_0x17ca27(0x353)](){const _0x19aad8=_0x17ca27;var _0x2094bb;this[_0x19aad8(0x1a2)]=setTimeout(()=>{const _0x2272f3=_0x19aad8;this[_0x2272f3(0x1a2)]=null,this[_0x2272f3(0x2e2)]['emitEvent']({'id':'SUBMIT_CHANGESET_TIMEOUT'});},(_0x2094bb=this[_0x19aad8(0x257)][_0x19aad8(0x35e)](_0x19aad8(0x15c)))==null?vt:_0x2094bb);}['_clearCollaborationTimeoutTimer'](){const _0x814577=_0x17ca27;this[_0x814577(0x1a2)]&&(clearTimeout(this[_0x814577(0x1a2)]),this['_collaborationTimeoutTimer']=null);}[_0x17ca27(0x29d)](_0x3cc73a){const _0x594dd0=_0x17ca27;if(!this[_0x594dd0(0x37e)])return;let {data:_0x4dc089}=_0x3cc73a,{unitID:_0xb1195e,changeset:_0x606857}=_0x4dc089,{mutations:_0x37a145,type:_0x40bcac}=_0x606857;this[_0x594dd0(0x122)]={'unitId':_0xb1195e,'type':_0x40bcac,'startTime':performance[_0x594dd0(0x2bc)](),'stopTime':0x0,'duration':0x0,'size':wt(_0x37a145)};}[_0x17ca27(0x1cd)](){const _0x17ebf2=_0x17ca27;if(this['_shouldReportTelemetry']){if(!this[_0x17ebf2(0x122)]){this[_0x17ebf2(0xf1)]['error'](_0x17ebf2(0x102),_0x17ebf2(0x1e8));return;}this[_0x17ebf2(0x122)][_0x17ebf2(0x266)]=performance[_0x17ebf2(0x2bc)](),this[_0x17ebf2(0x122)][_0x17ebf2(0x121)]=this[_0x17ebf2(0x122)][_0x17ebf2(0x266)]-this['_telemetryInfo'][_0x17ebf2(0x222)],this[_0x17ebf2(0x179)][_0x17ebf2(0x1dd)](_0x17ebf2(0x12c),this[_0x17ebf2(0x122)]),this[_0x17ebf2(0x122)]=null;}}[_0x17ca27(0x320)](){const _0x10c233=_0x17ca27;this[_0x10c233(0x122)]=null;}};Ht=V([B(0x2,_0x5b6de8),B(0x3,_0x216b51),B(0x4,_0x2ce47d(H)),B(0x5,_0x2ce47d(kt)),B(0x6,_0x2ce47d(z)),B(0x7,_0x1bb6a9(_0x508442))],Ht);const U=_0x366722(_0x17ca27(0x280));function Ut(_0x34edb4){const _0x52c4d9=_0x17ca27;return _0x52c4d9(0x2e1)+_0x34edb4;}function Wt(_0x55cf90){const _0x3f73c7=_0x17ca27;let {unitID:_0x2432fa,mutations:_0x149ce4}=_0x55cf90;return{'unitId':_0x2432fa,'subUnitId':_0x149ce4[_0x3f73c7(0x1dc)]>0x0?_0x149ce4[0x0][_0x3f73c7(0x221)][_0x3f73c7(0x16a)]:null};}let Gt=class{constructor(_0xdb5ba8,_0x446aee,_0x19f1d0){const _0x5c70c2=_0x17ca27;this[_0x5c70c2(0x369)]=_0xdb5ba8,this['_transformService']=_0x446aee,this[_0x5c70c2(0x1fe)]=_0x19f1d0;}[_0x17ca27(0x368)](_0x2c88ec){const _0x4f7afd=_0x17ca27;var _0xbb076d,_0x438566;let _0x21fbeb=this['_injector']['get'](_0x3e2d2d),{unitId:_0x288f11,subUnitId:_0x2cbebd}=Wt(_0x2c88ec),_0x1705c9=_0x21fbeb==null?void 0x0:_0x21fbeb[_0x4f7afd(0x2b7)](_0x288f11)[_0x4f7afd(0x11d)](),_0x443dbe=(_0xbb076d=this[_0x4f7afd(0x1fe)]['getUnit'](_0x288f11))==null||(_0xbb076d=_0xbb076d['getActiveSheet']())==null?void 0x0:_0xbb076d[_0x4f7afd(0x1e2)]();if(_0x1705c9['length']===0x0||!_0x288f11||!_0x2cbebd)return;let _0x11f84e=[{'id':_0x97086e['id'],'params':{'unitId':_0x288f11,'subUnitId':_0x443dbe,'selections':_0x14eb1f[_0x4f7afd(0x214)](_0x1705c9)}}],_0x34f531=this[_0x4f7afd(0x15d)][_0x4f7afd(0x36d)](_0x2c88ec,_0x11f84e);if(!_0x13aff6(_0x34f531))throw _0x34f531[_0x4f7afd(0x20b)];let _0x5f3515=(_0x438566=_0x34f531[_0x4f7afd(0x1fd)][0x0])==null||(_0x438566=_0x438566[_0x4f7afd(0x221)])==null?void 0x0:_0x438566[_0x4f7afd(0x1f3)];if(Array[_0x4f7afd(0x1f7)](_0x5f3515)&&_0x5f3515[_0x4f7afd(0x1dc)]){if(_0x5f3515['length']===_0x11f84e[0x0]['params'][_0x4f7afd(0x1f3)][_0x4f7afd(0x1dc)]&&_0x5f3515[_0x4f7afd(0x167)]((_0xc222e3,_0x2e9154)=>_0x5759f2['equals'](_0xc222e3['range'],_0x11f84e[0x0]['params'][_0x4f7afd(0x1f3)][_0x2e9154][_0x4f7afd(0xee)])))return;this[_0x4f7afd(0x369)]['get'](_0x197520)['executeCommand'](_0x97086e['id'],{'unitId':_0x288f11,'subUnitId':_0x443dbe,'selections':_0x5f3515});}}};function _0x1f49(_0x4cd273,_0x5423e1){_0x4cd273=_0x4cd273-0xdc;const _0x50c43e=_0x50c4();let _0x1f4919=_0x50c43e[_0x4cd273];return _0x1f4919;}Gt=V([B(0x0,_0x2ce47d(_0x3973c2)),B(0x1,_0x18b268),B(0x2,_0x778808)],Gt);const W=_0x366722('univer-pro.collaboration-client.single-active-unit-service');let Kt=function(_0x37e211){const _0x3c5b19=_0x17ca27;return _0x37e211[_0x37e211[_0x3c5b19(0x342)]=0x0]=_0x3c5b19(0x342),_0x37e211[_0x37e211[_0x3c5b19(0x285)]=0x1]=_0x3c5b19(0x285),_0x37e211;}({});function qt(_0x26f107){const _0x43999c=_0x17ca27;var _0x3ba6d0;return!!((_0x3ba6d0=_0x26f107[_0x43999c(0x221)])!=null&&_0x3ba6d0[_0x43999c(0x2cc)]);}const Jt=new Set([_0x5d54e7['id']]),Yt=new Set([_0x2faa88['id'],_0x3a18a2['id'],_0x4883b9['id'],_0x6c1128['id']]);function Xt(_0x343b8f,_0x17f168=Jt){const _0x5c9d42=_0x17ca27;let _0x5dd46=[];for(let _0x4e9099 of _0x343b8f){if(_0x17f168[_0x5c9d42(0x112)](_0x4e9099['id'])){if(_0x5dd46[_0x5c9d42(0x1dc)]>0x0)break;_0x5dd46[_0x5c9d42(0x1b5)](_0x4e9099);break;}if(qt(_0x4e9099)){if(_0x5dd46[_0x5c9d42(0x1dc)]>0x0)break;_0x5dd46[_0x5c9d42(0x1b5)](_0x4e9099);break;}_0x5dd46[_0x5c9d42(0x1b5)](_0x4e9099);}return _0x5dd46;}function Zt(_0x38b67f,_0x3c8730,_0xe35808,_0x2d7f91,_0x141dcc){const _0x3b7c5c=_0x17ca27;var _0x51ea28,_0x25ef3d,_0x33ac53,_0x5379c9;let _0x43eb66=Xt(_0x38b67f),_0x29602c=(_0x51ea28=(_0x25ef3d=_0x141dcc[_0x3b7c5c(0x2fb)]())==null?void 0x0:_0x25ef3d[_0x3b7c5c(0x1a8)])==null?_0x3b7c5c(0x101):_0x51ea28,_0x28f804=(_0x33ac53=(_0x5379c9=_0x141dcc[_0x3b7c5c(0x2fb)]())==null?void 0x0:_0x5379c9[_0x3b7c5c(0x32e)])==null?_0x3b7c5c(0x101):_0x33ac53;return{'changeset':{'unitID':_0x3c8730,'type':_0x4cb7c4(_0xe35808['getUnitType'](_0x3c8730)),'baseRev':_0x2d7f91[_0x3b7c5c(0x2fc)](_0x3c8730),'revision':0x0,'userID':_0x29602c,'memberID':_0x28f804,'mutations':_0x43eb66},'pendingMutations':_0x38b67f[_0x3b7c5c(0x12e)](_0x43eb66[_0x3b7c5c(0x1dc)])};}function Qt(_0x2971a9,_0x45199b,_0x83bfbb,_0x34e644,_0x306ed6){const _0x274842=_0x17ca27;var _0x3c82c6,_0x1196a0,_0x40e4dd,_0x27cfef;let _0x1b3612=Xt(_0x2971a9,Yt),_0x143de8=(_0x3c82c6=(_0x1196a0=_0x306ed6[_0x274842(0x2fb)]())==null?void 0x0:_0x1196a0[_0x274842(0x1a8)])==null?_0x274842(0x101):_0x3c82c6,_0x14e199=(_0x40e4dd=(_0x27cfef=_0x306ed6[_0x274842(0x2fb)]())==null?void 0x0:_0x27cfef[_0x274842(0x32e)])==null?_0x274842(0x101):_0x40e4dd;return{'changeset':{'unitID':_0x45199b,'type':_0x4cb7c4(_0x83bfbb['getUnitType'](_0x45199b)),'baseRev':_0x34e644[_0x274842(0x2fc)](_0x45199b),'revision':0x0,'userID':_0x143de8,'memberID':_0x14e199,'mutations':_0x1b3612},'pendingMutations':_0x2971a9[_0x274842(0x12e)](_0x1b3612[_0x274842(0x1dc)])};}function $t(_0x184721,_0x5348c3,_0x5d2604,_0x2d721b,_0x11508d){const _0x2b8034=_0x17ca27;var _0x8c3996,_0x485f98,_0x5d47cc,_0x3183aa;let _0x49c73e=_0x184721['reduce']((_0x282a17,_0x1ceda5)=>{const _0x4412c9=_0x1f49;let _0x13ff55=_0x282a17[_0x282a17[_0x4412c9(0x1dc)]-0x1],{id:_0x41dd9c}=_0x13ff55==null?{}:_0x13ff55,{id:_0x642943,type:_0x3fd1a2}=_0x1ceda5,_0x31a911=_0x1ceda5[_0x4412c9(0x221)];if(_0x41dd9c&&_0x41dd9c!==_0x642943)throw Error(_0x4412c9(0x2a7)+_0x41dd9c+'\x20-\x20'+_0x642943+'.');if(!_0x13ff55)return[{'id':_0x642943,'type':_0x3fd1a2,'params':{'unitId':_0x31a911[_0x4412c9(0x232)],'textRanges':_0x31a911[_0x4412c9(0x181)],'actions':_0x31a911[_0x4412c9(0x288)]}}];let _0x28c979=_0x13ff55[_0x4412c9(0x221)];return en(_0x28c979,_0x31a911)?[..._0x282a17[_0x4412c9(0x12e)](0x0,-0x1),{..._0x13ff55,'id':_0x642943,'type':_0x3fd1a2,'params':{'unitId':_0x31a911[_0x4412c9(0x232)],'textRanges':_0x31a911['textRanges'],'actions':_0x2c6cdd[_0x4412c9(0x318)](_0x28c979[_0x4412c9(0x288)],_0x31a911[_0x4412c9(0x288)])}}]:[..._0x282a17,{'id':_0x642943,'type':_0x3fd1a2,'params':{'unitId':_0x31a911[_0x4412c9(0x232)],'textRanges':_0x31a911[_0x4412c9(0x181)],'actions':_0x31a911['actions']}}];},[]),_0x2656c0=(_0x8c3996=(_0x485f98=_0x11508d[_0x2b8034(0x2fb)]())==null?void 0x0:_0x485f98[_0x2b8034(0x1a8)])==null?_0x2b8034(0x101):_0x8c3996,_0x1bb8dc=(_0x5d47cc=(_0x3183aa=_0x11508d[_0x2b8034(0x2fb)]())==null?void 0x0:_0x3183aa[_0x2b8034(0x32e)])==null?_0x2b8034(0x101):_0x5d47cc;return{'changeset':{'unitID':_0x5348c3,'type':_0x4cb7c4(_0x5d2604[_0x2b8034(0x370)](_0x5348c3)),'baseRev':_0x2d721b[_0x2b8034(0x2fc)](_0x5348c3),'revision':0x0,'userID':_0x2656c0,'memberID':_0x1bb8dc,'mutations':_0x49c73e},'pendingMutations':_0x184721[_0x2b8034(0x12e)](_0x184721['length'])};}function en(_0x1170c4,_0x29ed5b){const _0x3c8608=_0x17ca27;return!tn(_0x1170c4)&&!tn(_0x29ed5b)&&nn(_0x1170c4['actions'],_0x29ed5b[_0x3c8608(0x288)]);}function tn(_0x1a42c7){const _0x4b01bc=_0x17ca27;return _0x1a42c7[_0x4b01bc(0x278)]!==void 0x0;}function nn(_0x4647ba,_0x3d4ea6){return rn(_0x4647ba)&&rn(_0x3d4ea6)&&!on(_0x4647ba)&&!on(_0x3d4ea6)&&!an(_0x4647ba)&&!an(_0x3d4ea6);}function rn(_0x32d3b2){const _0xca0ca3=_0x17ca27;return sn(_0x32d3b2)['some'](_0x344274=>cn(_0x344274)&&_0x344274['et']===_0xca0ca3(0x12f));}function an(_0xe29dbf){const _0x4be0a5=_0x17ca27;return sn(_0xe29dbf)[_0x4be0a5(0x1af)](_0x2d0720=>Array[_0x4be0a5(0x1f7)](_0x2d0720)||typeof _0x2d0720=='string'||typeof _0x2d0720==_0x4be0a5(0xef));}function on(_0x3659d1){const _0x18d42e=_0x17ca27;return sn(_0x3659d1)[_0x18d42e(0x1af)](_0x2c7c08=>!cn(_0x2c7c08)||_0x2c7c08['et']!==_0x18d42e(0x12f)||!Array[_0x18d42e(0x1f7)](_0x2c7c08['e'])?!0x1:_0x2c7c08['e'][_0x18d42e(0x1af)](_0x4758d0=>!cn(_0x4758d0)||!cn(_0x4758d0[_0x18d42e(0x210)])?!0x1:Object['prototype'][_0x18d42e(0x301)][_0x18d42e(0x145)](_0x4758d0['body'],_0x18d42e(0x1d1))||Object[_0x18d42e(0x379)]['hasOwnProperty'][_0x18d42e(0x145)](_0x4758d0[_0x18d42e(0x210)],_0x18d42e(0x2b0))||Object['prototype'][_0x18d42e(0x301)][_0x18d42e(0x145)](_0x4758d0[_0x18d42e(0x210)],_0x18d42e(0x169))));}function sn(_0x1d8f74){const _0x455b76=_0x17ca27;if(!Array[_0x455b76(0x1f7)](_0x1d8f74))return[];let _0x1f7c72=_0x1d8f74[_0x455b76(0x37a)](_0x455b76(0x210))?_0x1d8f74:_0x1d8f74[_0x455b76(0x385)](_0x58219e=>Array[_0x455b76(0x1f7)](_0x58219e)&&_0x58219e[_0x455b76(0x37a)]('body'));if(!Array[_0x455b76(0x1f7)](_0x1f7c72))return[];let _0x56775f=_0x1f7c72[_0x455b76(0x213)](_0x455b76(0x210));return _0x56775f===-0x1?[]:_0x1f7c72[_0x455b76(0x12e)](_0x56775f+0x1);}function cn(_0x2646bb){const _0x1cf946=_0x17ca27;return typeof _0x2646bb==_0x1cf946(0x352)&&!!_0x2646bb&&!Array[_0x1cf946(0x1f7)](_0x2646bb);}function ln(_0x2ce2b5,_0x3c147a){const _0x8a0f04=_0x17ca27;let _0xd11c25=new _0x35b43d(0x1);return setTimeout(()=>_0xd11c25['next'](_0x3c147a),_0x2ce2b5),_0xd11c25[_0x8a0f04(0x231)]()[_0x8a0f04(0x2b8)](_0x13d8b9(0x1));}var un,dn,fn;let pn=function(_0x3b4f8b){const _0x491bbf=_0x17ca27;return _0x3b4f8b['NOT_COLLAB']=_0x491bbf(0x302),_0x3b4f8b['SYNCED']=_0x491bbf(0x276),_0x3b4f8b[_0x491bbf(0x1da)]='pending',_0x3b4f8b[_0x491bbf(0x2cd)]=_0x491bbf(0x21b),_0x3b4f8b[_0x491bbf(0xea)]=_0x491bbf(0x217),_0x3b4f8b[_0x491bbf(0x2bd)]=_0x491bbf(0x13d),_0x3b4f8b[_0x491bbf(0x245)]=_0x491bbf(0x2ba),_0x3b4f8b[_0x491bbf(0xf4)]=_0x491bbf(0xed),_0x3b4f8b;}({});const mn=0x4e20,hn=0x2bf20;var G=class{constructor(_0x42a5ec,_0x25d83d,_0x265702,_0x3fb589,_0x5af169,_0x399af0,_0x361388,_0x27660c,_0x300cc1){const _0xe6d614=_0x17ca27;this['unitID']=_0x42a5ec,this[_0xe6d614(0x1ba)]=_0x25d83d,this[_0xe6d614(0x153)]=_0x5af169,this[_0xe6d614(0x24d)]=_0x399af0,this[_0xe6d614(0xfc)]=_0x361388,this[_0xe6d614(0x17a)]=_0x27660c,this[_0xe6d614(0x28c)]=_0x300cc1,R(this,_0xe6d614(0x1bb),null),R(this,_0xe6d614(0x1f9),[]),this[_0xe6d614(0x1bb)]=_0x265702,this[_0xe6d614(0x1f9)]=_0x3fb589;}[_0x17ca27(0x32f)](_0x288e84){const _0x4da11b=_0x17ca27;let _0x53ac6c=this[_0x4da11b(0x17a)][_0x4da11b(0x2fc)](this['unitID']);return _0x288e84['revision']>_0x53ac6c+0x1?(this[_0x4da11b(0x153)][_0x4da11b(0x391)]({'from':_0x53ac6c,'to':_0x288e84[_0x4da11b(0x35b)]-0x1}),!0x0):!0x1;}[_0x17ca27(0x200)](_0x5ae8a0){const _0x3ecabb=_0x17ca27;this[_0x3ecabb(0xfc)][_0x3ecabb(0x1d7)](this[_0x3ecabb(0x1bc)],_0x5ae8a0);}[_0x17ca27(0x236)](_0x3d519a){const _0x393072=_0x17ca27;var _0x2518c2,_0x1f21da;(_0x2518c2=(_0x1f21da=this[_0x393072(0x153)])[_0x393072(0x103)])==null||_0x2518c2[_0x393072(0x145)](_0x1f21da,_0x3d519a);}[_0x17ca27(0x364)](_0x5cb942){const _0x29abbb=_0x17ca27;var _0x29dffc,_0x2616de;return(_0x29dffc=(_0x2616de=this[_0x29abbb(0x153)])[_0x29abbb(0x12a)])==null?void 0x0:_0x29dffc[_0x29abbb(0x145)](_0x2616de,_0x5cb942);}[_0x17ca27(0xe8)](_0x1388a7){const _0x52ff02=_0x17ca27;var _0x1b380d,_0x214aaa;return(_0x1b380d=(_0x214aaa=this[_0x52ff02(0x153)])['onTransformState'])==null?void 0x0:_0x1b380d[_0x52ff02(0x145)](_0x214aaa,_0x1388a7);}[_0x17ca27(0x18d)](_0x12b8ff){const _0x4276c2=_0x17ca27;var _0x2ea619,_0x5e045e,_0x17857a;return(_0x2ea619=(_0x5e045e=(_0x17857a=this[_0x4276c2(0x153)])[_0x4276c2(0x1e0)])==null?void 0x0:_0x5e045e[_0x4276c2(0x145)](_0x17857a,_0x12b8ff))==null?_0x12b8ff:_0x2ea619;}[_0x17ca27(0x30e)](_0x344c92){const _0x10f536=_0x17ca27;var _0x4df71a,_0x288ecd,_0x360267;return(_0x4df71a=(_0x288ecd=(_0x360267=this[_0x10f536(0x153)])[_0x10f536(0x23e)])==null?void 0x0:_0x288ecd['call'](_0x360267,_0x344c92))==null?_0x344c92:_0x4df71a;}[_0x17ca27(0x1df)](_0x149e75){const _0x1d6199=_0x17ca27;if(this[_0x1d6199(0x1ba)]===_0x20b9c7[_0x1d6199(0x1aa)]){let {unitID:_0x448a2e,mutations:_0x2039d4,memberID:_0x43f47a}=_0x149e75,_0x377365=_0x2039d4[_0x1d6199(0x1dc)]>0x0?_0x2039d4[0x0][_0x1d6199(0x221)][_0x1d6199(0x181)]:[];if(Array[_0x1d6199(0x1f7)](_0x377365)&&_0x377365[_0x1d6199(0x1dc)]>0x0){var _0x42dd88,_0x31f78e;(_0x42dd88=(_0x31f78e=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x42dd88['call'](_0x31f78e,{'unitID':_0x448a2e,'memberID':_0x43f47a,'textRanges':_0x377365});}}}[_0x17ca27(0x164)](){const _0x58aff1=_0x17ca27;var _0x8f2dcb;(_0x8f2dcb=this[_0x58aff1(0x28c)])==null||_0x8f2dcb[_0x58aff1(0x157)](this[_0x58aff1(0x1bc)],this[_0x58aff1(0x1ba)],this[_0x58aff1(0x1bb)],this[_0x58aff1(0x1f9)]);}[_0x17ca27(0x1ff)](){const _0x18424a=_0x17ca27;return this[_0x18424a(0x17a)]['getCurrentRevOfUnit'](this[_0x18424a(0x1bc)]);}[_0x17ca27(0x29a)](){const _0x434a49=_0x17ca27;this['_revisionService'][_0x434a49(0x33f)](this[_0x434a49(0x1bc)]);}['_executeRemoteChangeset'](_0x2e194d){const _0x355919=_0x17ca27;let _0x25f278=this[_0x355919(0x18d)](_0x2e194d);_0x25f278=this['_transformRemoteChangesetByStateCache'](_0x25f278);let _0x5c45be=_0x20de5d(_0x25f278['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x5c45be[_0x355919(0x1ee)]){var _0x252791;throw _0x5c45be[_0x355919(0x20b)]instanceof Error?_0x5c45be[_0x355919(0x20b)]:Error((_0x252791=_0x5c45be['error'])==null?_0x355919(0xe9):_0x252791);}this['_transformIMECache'](_0x25f278),this[_0x355919(0xe8)](_0x25f278),this[_0x355919(0x200)](_0x2e194d),this[_0x355919(0x236)](_0x25f278),this['_syncEditingCollabCursor'](_0x25f278),this[_0x355919(0x29a)]();}};let K=class extends G{constructor(_0x106b6d,_0x12f91f,_0x5f3ef4,_0x16189d,_0x2a2541,_0x2eed2d,_0x54ff8f,_0x5ebcb5,_0x38c7dc,_0x191b63){const _0x6e10a6=_0x17ca27;super(_0x106b6d,_0x12f91f,null,[],_0x5f3ef4,_0x54ff8f,_0x2eed2d,_0x16189d,_0x191b63),this[_0x6e10a6(0x369)]=_0x2a2541,this['_logService']=_0x5ebcb5,this[_0x6e10a6(0x15d)]=_0x38c7dc,this[_0x6e10a6(0x166)]=_0x191b63,R(this,_0x6e10a6(0x1d3),'synced');}['appendMutation'](_0x5c5a96){const _0x107c50=_0x17ca27;let _0x4ba9ef=this[_0x107c50(0x369)][_0x107c50(0x211)](q,this[_0x107c50(0x1bc)],this[_0x107c50(0x1ba)],[_0x5c5a96],this['_handler']);return _0x4ba9ef[_0x107c50(0x23c)](),_0x4ba9ef[_0x107c50(0x164)](),_0x4ba9ef;}[_0x17ca27(0x36a)](_0x3d1854){const _0x14c1aa=_0x17ca27;if(this[_0x14c1aa(0x32f)](_0x3d1854))return this[_0x14c1aa(0x369)][_0x14c1aa(0x211)](Q,this[_0x14c1aa(0x1bc)],this['type'],null,[],null,[_0x3d1854],this[_0x14c1aa(0x153)]);try{let _0x1daca9=this['_transformService'][_0x14c1aa(0x36d)](_0x3d1854,[_0x4938d6]);if(_0x13aff6(_0x1daca9)){let {c1Prime:_0x52df7e}=_0x1daca9;return this[_0x14c1aa(0x283)](_0x52df7e),this;}throw _0x1daca9['error'];}catch(_0x5b52b0){return this[_0x14c1aa(0xf1)][_0x14c1aa(0x20b)](_0x5b52b0),this['_onConflict'](!0x1);}}['_onConflict'](_0x5467a0){const _0x6d8e07=_0x17ca27;return this[_0x6d8e07(0x369)][_0x6d8e07(0x211)](X,this[_0x6d8e07(0x1bc)],this[_0x6d8e07(0x1ba)],null,[],this[_0x6d8e07(0x153)],_0x5467a0);}['onRemoteAck'](_0x2e69e5){const _0xd8ab03=_0x17ca27;if(_0x2e69e5[_0xd8ab03(0x35b)]<=this[_0xd8ab03(0x1ff)]())return this;throw Error(_0xd8ab03(0x2a6));}[_0x17ca27(0x1fb)](){const _0x29ad8c=_0x17ca27;throw Error(_0x29ad8c(0x2d6));}[_0x17ca27(0x1d0)](){return this;}['toggleOffline'](){const _0x391e7d=_0x17ca27;return this['_injector'][_0x391e7d(0x211)](Z,this[_0x391e7d(0x1bc)],this[_0x391e7d(0x1ba)],null,[],this[_0x391e7d(0x153)]);}['toggleOnline'](){return this;}[_0x17ca27(0x357)](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x17ca27(0xf8)](){const _0x358eda=_0x17ca27;let _0x5444a9=this['_revisionService'][_0x358eda(0x2fc)](this[_0x358eda(0x1bc)]);return this[_0x358eda(0x153)]['onMissingChangesets']({'from':_0x5444a9,'to':0x0}),this[_0x358eda(0x369)][_0x358eda(0x211)](Q,this[_0x358eda(0x1bc)],this['type'],null,[],null,[],this[_0x358eda(0x153)]);}};K=V([B(0x3,_0x2ce47d(_0x10c220)),B(0x4,_0x2ce47d(_0x3973c2)),B(0x5,_0x36c08a),B(0x6,_0x197520),B(0x7,_0x5b6de8),B(0x8,_0x18b268),B(0x9,_0x1bb6a9(U))],K);let q=un=class extends G{constructor(_0x49948f,_0x4fa130,_0x3a3221,_0x589816,_0x2f1e25,_0x3464e0,_0x3a2323,_0x16e0db,_0x128793,_0xd2adc8,_0x3b667a,_0x46ca75,_0x259355,_0x16c9da){const _0x3bc526=_0x17ca27;super(_0x49948f,_0x4fa130,null,_0x3a3221,_0x589816,_0x128793,_0x259355,_0x3464e0,_0x16c9da),this['_injector']=_0x2f1e25,this['_memberService']=_0x3a2323,this[_0x3bc526(0xf1)]=_0x16e0db,this['_configService']=_0xd2adc8,this[_0x3bc526(0x15d)]=_0x3b667a,this['_univerInstanceService']=_0x46ca75,R(this,_0x3bc526(0x1d3),_0x3bc526(0x392)),R(this,_0x3bc526(0x2dd),null),R(this,_0x3bc526(0x2cb),null);}[_0x17ca27(0x289)](_0x295453){const _0x903741=_0x17ca27;return this[_0x903741(0x1f9)]['push'](_0x295453),this[_0x903741(0x164)](),this;}[_0x17ca27(0x36a)](_0x5cf06f){const _0x1b450e=_0x17ca27;if(this[_0x1b450e(0x32f)](_0x5cf06f))return this[_0x1b450e(0x165)](),this['_injector'][_0x1b450e(0x211)](Q,this[_0x1b450e(0x1bc)],this['type'],null,this['_pendingMutations'],null,[_0x5cf06f],this[_0x1b450e(0x153)]);try{let _0x135423=this[_0x1b450e(0x15d)][_0x1b450e(0x36d)](_0x5cf06f,this[_0x1b450e(0x1f9)]);if(_0x13aff6(_0x135423)){let {c1Prime:_0x3ed3d6,m2Prime:_0x547ea6}=_0x135423;this['_executeRemoteChangeset'](_0x3ed3d6);let _0xec6e0b=this[_0x1b450e(0x369)][_0x1b450e(0x211)](un,this[_0x1b450e(0x1bc)],this[_0x1b450e(0x1ba)],_0x547ea6,this[_0x1b450e(0x153)]);this[_0x1b450e(0x165)]();let _0xff971f=new Date()[_0x1b450e(0x1d2)](),_0x41fdbf=this[_0x1b450e(0x2dd)]?Math[_0x1b450e(0x382)](this[_0x1b450e(0x2dd)]-_0xff971f,0x0):this[_0x1b450e(0x328)]();return _0xec6e0b[_0x1b450e(0x23c)](_0x41fdbf),_0xec6e0b;}throw _0x135423[_0x1b450e(0x20b)];}catch(_0x35c104){return this[_0x1b450e(0xf1)][_0x1b450e(0x20b)](_0x35c104),this[_0x1b450e(0x256)](!0x1);}}['onRemoteAck'](_0x5c7890){const _0x58d3d9=_0x17ca27;if(_0x5c7890[_0x58d3d9(0x35b)]<=this['_getCurrentRevision']())return this;throw Error(_0x58d3d9(0x18e));}[_0x17ca27(0x1fb)](){throw Error('[PendingState]:\x20received\x20rejection.');}[_0x17ca27(0x1d0)](){return this;}[_0x17ca27(0xf6)](){const _0x36399c=_0x17ca27;return this[_0x36399c(0x165)](),this['_injector']['createInstance'](Z,this[_0x36399c(0x1bc)],this[_0x36399c(0x1ba)],null,this[_0x36399c(0x1f9)],this['_handler']);}[_0x17ca27(0x224)](){return this;}[_0x17ca27(0x23c)](_0x529514){const _0x2ff31c=_0x17ca27;let _0x315047=_0x529514==null?this[_0x2ff31c(0x328)]():_0x529514;this[_0x2ff31c(0x2dd)]=new Date()[_0x2ff31c(0x1d2)]()+_0x315047,this[_0x2ff31c(0x2cb)]=setTimeout(()=>{const _0x56960c=_0x2ff31c;this['_clearScheduledTask']();let _0x18e760=null;switch(this[_0x56960c(0x1ba)]){case _0x20b9c7['UNIVER_SHEET']:_0x18e760=Zt(this[_0x56960c(0x1f9)],this[_0x56960c(0x1bc)],this[_0x56960c(0x22c)],this[_0x56960c(0x17a)],this['_memberService']);break;case _0x20b9c7['UNIVER_DOC']:_0x18e760=this[_0x56960c(0x1f9)][_0x56960c(0x167)](_0xc4a20d=>_0xc4a20d['id']===_0x5282e4['id'])?$t(this[_0x56960c(0x1f9)],this[_0x56960c(0x1bc)],this['_univerInstanceService'],this[_0x56960c(0x17a)],this[_0x56960c(0x249)]):Zt(this['_pendingMutations'],this[_0x56960c(0x1bc)],this[_0x56960c(0x22c)],this[_0x56960c(0x17a)],this['_memberService']);break;case _0x20b9c7[_0x56960c(0x1e6)]:_0x18e760=Qt(this['_pendingMutations'],this[_0x56960c(0x1bc)],this[_0x56960c(0x22c)],this[_0x56960c(0x17a)],this[_0x56960c(0x249)]);break;case _0x20b9c7[_0x56960c(0x306)]:_0x18e760=Zt(this['_pendingMutations'],this[_0x56960c(0x1bc)],this[_0x56960c(0x22c)],this[_0x56960c(0x17a)],this[_0x56960c(0x249)]);break;case _0x20b9c7[_0x56960c(0x2e5)]:_0x18e760=Zt(this['_pendingMutations'],this[_0x56960c(0x1bc)],this[_0x56960c(0x22c)],this[_0x56960c(0x17a)],this[_0x56960c(0x249)]);break;default:throw Error(_0x56960c(0x30a)+this[_0x56960c(0x1ba)]+_0x56960c(0x36c));}let {changeset:_0x3565d3,pendingMutations:_0x6d1056}=_0x18e760;this[_0x56960c(0x153)][_0x56960c(0x2fe)](_0x3565d3);let _0x4a926d=_0x6d1056[_0x56960c(0x1dc)]?this[_0x56960c(0x369)][_0x56960c(0x211)](Y,this[_0x56960c(0x1bc)],this['type'],_0x3565d3,_0x6d1056,this[_0x56960c(0x153)],void 0x0):this[_0x56960c(0x369)]['createInstance'](J,this[_0x56960c(0x1bc)],this[_0x56960c(0x1ba)],_0x3565d3,this['_handler']);_0x4a926d[_0x56960c(0x164)](),this['_handler'][_0x56960c(0x1f0)](this,_0x4a926d);},_0x315047);}['_getSendChangesetTimeout'](){const _0xc6f3ef=_0x17ca27;var _0x24c34d;let _0x11b85f=this[_0xc6f3ef(0x257)][_0xc6f3ef(0x35e)](L);return(_0x24c34d=_0x11b85f==null?void 0x0:_0x11b85f[_0xc6f3ef(0x2b2)])==null?0x7d0:_0x24c34d;}['resend'](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x17ca27(0x165)](){const _0x37fb87=_0x17ca27;this['_sendingTimer']!=null&&(clearTimeout(this[_0x37fb87(0x2cb)]),this[_0x37fb87(0x2cb)]=null);}[_0x17ca27(0x256)](_0x365109){const _0x2eb477=_0x17ca27;return this[_0x2eb477(0x165)](),this[_0x2eb477(0x369)][_0x2eb477(0x211)](X,this[_0x2eb477(0x1bc)],this[_0x2eb477(0x1ba)],null,this[_0x2eb477(0x1f9)],this[_0x2eb477(0x153)],_0x365109);}};q=un=V([B(0x4,_0x2ce47d(_0x3973c2)),B(0x5,_0x2ce47d(_0x10c220)),B(0x6,_0x2ce47d(H)),B(0x7,_0x5b6de8),B(0x8,_0x197520),B(0x9,_0x216b51),B(0xa,_0x18b268),B(0xb,_0x778808),B(0xc,_0x36c08a),B(0xd,_0x1bb6a9(U))],q);let J=dn=class extends G{constructor(_0x41cb29,_0x36db94,_0x3ca3cb,_0x5888f0,_0x1f685d,_0x340207,_0x583d8a,_0x19f95a,_0x313e3f,_0x11850b,_0x139920){const _0x4f8546=_0x17ca27;super(_0x41cb29,_0x36db94,_0x3ca3cb,[],_0x5888f0,_0x583d8a,_0x11850b,_0x340207,_0x139920),this[_0x4f8546(0x369)]=_0x1f685d,this[_0x4f8546(0xf1)]=_0x19f95a,this['_transformService']=_0x313e3f,R(this,'status',_0x4f8546(0x21b)),R(this,_0x4f8546(0x208),0x0),R(this,_0x4f8546(0xdf),0x0),R(this,_0x4f8546(0x105),void 0x0),R(this,_0x4f8546(0x341),void 0x0);}['appendMutation'](_0x3e4c17){const _0x430033=_0x17ca27;this[_0x430033(0x165)]();let _0x5325fd=this['_injector']['createInstance'](Y,this[_0x430033(0x1bc)],this['type'],this[_0x430033(0x1bb)],[_0x3e4c17],this['_handler'],this[_0x430033(0x105)]);return _0x5325fd[_0x430033(0x164)](),_0x5325fd;}[_0x17ca27(0x36a)](_0x40252c){const _0x474c17=_0x17ca27;if(this[_0x474c17(0x32f)](_0x40252c))return this[_0x474c17(0x165)](),this['_injector'][_0x474c17(0x211)](Q,this[_0x474c17(0x1bc)],this['type'],this[_0x474c17(0x1bb)],[],null,[_0x40252c],this[_0x474c17(0x153)]);try{let _0x1581e5=this['_transformService'][_0x474c17(0x1ae)]([_0x40252c],[this['_awaitingChangeset']],!0x1);if(_0xc8d105(_0x1581e5)){let {c1Prime:_0x89c013,c2Prime:_0x5edff3}=_0x1581e5;this['_executeRemoteChangeset'](_0x89c013[0x0]),_0x5edff3[0x0]['baseRev']=this[_0x474c17(0x1ff)](),this[_0x474c17(0x165)]();let _0x352fd5=this[_0x474c17(0x369)][_0x474c17(0x211)](dn,this[_0x474c17(0x1bc)],this[_0x474c17(0x1ba)],_0x5edff3[0x0],this[_0x474c17(0x153)]);return _0x352fd5[_0x474c17(0x164)](),_0x352fd5;}throw _0x1581e5['error'];}catch(_0x4cc3e0){return this[_0x474c17(0xf1)][_0x474c17(0x20b)](_0x4cc3e0),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x513db9){const _0x194584=_0x17ca27;this['_clearScheduledTask']();let _0x257b98=this[_0x194584(0x17a)][_0x194584(0x2fc)](this[_0x194584(0x1bc)]);if(_0x513db9[_0x194584(0x35b)]<=_0x257b98)return this;if(this[_0x194584(0x32f)](_0x513db9))return this['_injector'][_0x194584(0x211)](Q,this[_0x194584(0x1bc)],this[_0x194584(0x1ba)],this['_awaitingChangeset'],[],_0x513db9[_0x194584(0x35b)],[],this[_0x194584(0x153)]);this[_0x194584(0x29a)]();let _0x2142d8=this[_0x194584(0x369)][_0x194584(0x211)](K,this[_0x194584(0x1bc)],this[_0x194584(0x1ba)],this[_0x194584(0x153)]);return _0x2142d8[_0x194584(0x164)](),_0x2142d8;}['onRemoteRej'](_0xb09d39){const _0x151584=_0x17ca27;return this[_0x151584(0x256)](!!(_0xb09d39!=null&&_0xb09d39[_0x151584(0x2ad)]));}[_0x17ca27(0x1d0)](_0xbe8749){const _0x511a63=_0x17ca27;return this[_0x511a63(0xdf)]>hn?this[_0x511a63(0xf6)]():(this['_resendTimer']=ln(this[_0x511a63(0x208)],{'timeout':this[_0x511a63(0x208)],'reqId':_0xbe8749[_0x511a63(0x17f)]}),this[_0x511a63(0x341)]=this[_0x511a63(0x105)][_0x511a63(0x139)](({reqId:_0x122421,timeout:_0x401cc6})=>{const _0x42c0ae=_0x511a63;this[_0x42c0ae(0x344)](_0x122421,_0x401cc6);}),this);}['toggleOffline'](){const _0xc1b1bf=_0x17ca27;return this[_0xc1b1bf(0x165)](),this[_0xc1b1bf(0x369)][_0xc1b1bf(0x211)](Z,this[_0xc1b1bf(0x1bc)],this[_0xc1b1bf(0x1ba)],this[_0xc1b1bf(0x1bb)],[],this['_handler']);}[_0x17ca27(0x224)](){return this;}[_0x17ca27(0x357)](){const _0xb85d4a=_0x17ca27;this['_handler'][_0xb85d4a(0x2fe)](this[_0xb85d4a(0x1bb)]);}[_0x17ca27(0x256)](_0x31407d){const _0x2f266c=_0x17ca27;return this[_0x2f266c(0x165)](),this['_injector'][_0x2f266c(0x211)](X,this[_0x2f266c(0x1bc)],this['type'],this[_0x2f266c(0x1bb)],[],this[_0x2f266c(0x153)],_0x31407d);}[_0x17ca27(0x344)](_0x47a27f,_0x4269b7){const _0x4d157a=_0x17ca27;var _0x139c34;_0x47a27f===((_0x139c34=this[_0x4d157a(0x1bb)])==null?void 0x0:_0x139c34[_0x4d157a(0x17f)])&&(this[_0x4d157a(0x357)](),this[_0x4d157a(0x208)]=_0x4269b7===0x0?0x3e8:Math[_0x4d157a(0x1a9)](_0x4269b7*0x2,mn),this[_0x4d157a(0xdf)]+=this[_0x4d157a(0x208)]);}[_0x17ca27(0x165)](){const _0x2fbca7=_0x17ca27;var _0x6dd619;(_0x6dd619=this[_0x2fbca7(0x341)])==null||_0x6dd619[_0x2fbca7(0x20f)](),this[_0x2fbca7(0x208)]=0x0,this[_0x2fbca7(0xdf)]=0x0;}};J=dn=V([B(0x4,_0x2ce47d(_0x3973c2)),B(0x5,_0x2ce47d(_0x10c220)),B(0x6,_0x197520),B(0x7,_0x5b6de8),B(0x8,_0x18b268),B(0x9,_0x36c08a),B(0xa,_0x1bb6a9(U))],J);let Y=fn=class extends G{constructor(_0x24b706,_0x151d26,_0x170988,_0x84af0f,_0x9cf4a2,_0x20cef7,_0x1deb25,_0x58c646,_0x55aabf,_0x50bdca,_0x2a4d1a,_0x38f5f7,_0x301d81){const _0x4eedef=_0x17ca27;super(_0x24b706,_0x151d26,_0x170988,_0x84af0f,_0x9cf4a2,_0x55aabf,_0x38f5f7,_0x58c646,_0x301d81),this[_0x4eedef(0x369)]=_0x1deb25,this[_0x4eedef(0xf1)]=_0x50bdca,this['_transformService']=_0x2a4d1a,this[_0x4eedef(0x166)]=_0x301d81,R(this,_0x4eedef(0x1d3),_0x4eedef(0x217)),R(this,'_resendTimeout',0x0),R(this,_0x4eedef(0xdf),0x0),R(this,_0x4eedef(0x105),void 0x0),R(this,_0x4eedef(0x341),void 0x0),_0x20cef7&&(this['_resendTimer']=_0x20cef7,this['_sender']=this[_0x4eedef(0x105)][_0x4eedef(0x139)](({reqId:_0x2b4c9e,timeout:_0xe38254})=>{const _0x4efbfd=_0x4eedef;this[_0x4efbfd(0x344)](_0x2b4c9e,_0xe38254);}));}['appendMutation'](_0x1cc229){const _0x2e2f46=_0x17ca27;return this[_0x2e2f46(0x1f9)][_0x2e2f46(0x1b5)](_0x1cc229),this;}['onRemoteChangeset'](_0x50030){const _0x420f37=_0x17ca27;if(this[_0x420f37(0x32f)](_0x50030))return this['_clearScheduledTask'](),this[_0x420f37(0x369)][_0x420f37(0x211)](Q,this[_0x420f37(0x1bc)],this[_0x420f37(0x1ba)],this[_0x420f37(0x1bb)],this['_pendingMutations'],null,[_0x50030],this[_0x420f37(0x153)]);try{let _0x41d0db=this['_transformService'][_0x420f37(0x1ae)]([_0x50030],[this[_0x420f37(0x1bb)]],!0x1);if(_0xc8d105(_0x41d0db)){let {c1Prime:_0x599fe2,c2Prime:_0x39de23}=_0x41d0db,_0x59d47a=this[_0x420f37(0x15d)][_0x420f37(0x36d)](_0x599fe2[0x0],this[_0x420f37(0x1f9)]);if(_0x13aff6(_0x59d47a)){let {c1Prime:_0x2cb86e,m2Prime:_0x336414}=_0x59d47a;return this[_0x420f37(0x283)](_0x2cb86e),_0x39de23[0x0][_0x420f37(0x131)]=this['_getCurrentRevision'](),this[_0x420f37(0x165)](),this[_0x420f37(0x369)]['createInstance'](fn,this[_0x420f37(0x1bc)],this['type'],_0x39de23[0x0],_0x336414,this[_0x420f37(0x153)],void 0x0);}throw _0x59d47a[_0x420f37(0x20b)];}throw _0x41d0db[_0x420f37(0x20b)];}catch(_0x469534){return this[_0x420f37(0xf1)][_0x420f37(0x20b)](_0x469534),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x223fff){const _0x1f13be=_0x17ca27;this[_0x1f13be(0x165)]();let _0x1e271d=this[_0x1f13be(0x1ff)]();if(_0x223fff['revision']<=_0x1e271d)return this;if(this[_0x1f13be(0x32f)](_0x223fff))return this[_0x1f13be(0x369)][_0x1f13be(0x211)](Q,this['unitID'],this[_0x1f13be(0x1ba)],this[_0x1f13be(0x1bb)],this[_0x1f13be(0x1f9)],_0x223fff['revision'],[],this['_handler']);this['_incrementRevisionNumber']();let _0x2d291e=this[_0x1f13be(0x369)][_0x1f13be(0x211)](q,this[_0x1f13be(0x1bc)],this[_0x1f13be(0x1ba)],this[_0x1f13be(0x1f9)],this[_0x1f13be(0x153)]);return _0x2d291e[_0x1f13be(0x23c)](),_0x2d291e[_0x1f13be(0x164)](),_0x2d291e;}[_0x17ca27(0x1fb)](_0x30051a){const _0x20ae17=_0x17ca27;return this[_0x20ae17(0x256)](!!(_0x30051a!=null&&_0x30051a[_0x20ae17(0x2ad)]));}[_0x17ca27(0x1d0)](_0x10dcad){const _0x11cb2b=_0x17ca27;return this[_0x11cb2b(0xdf)]>hn?this['toggleOffline']():(this[_0x11cb2b(0x105)]=ln(this[_0x11cb2b(0x208)],{'timeout':this['_resendTimeout'],'reqId':_0x10dcad[_0x11cb2b(0x17f)]}),this['_sender']=this[_0x11cb2b(0x105)][_0x11cb2b(0x139)](({reqId:_0x2527e1,timeout:_0x215261})=>{const _0x47c9cf=_0x11cb2b;this[_0x47c9cf(0x344)](_0x2527e1,_0x215261);}),this);}[_0x17ca27(0xf6)](){const _0x4c84e2=_0x17ca27;return this[_0x4c84e2(0x165)](),this[_0x4c84e2(0x369)]['createInstance'](Z,this[_0x4c84e2(0x1bc)],this['type'],this[_0x4c84e2(0x1bb)],this[_0x4c84e2(0x1f9)],this[_0x4c84e2(0x153)]);}['toggleOnline'](){return this;}[_0x17ca27(0x357)](){const _0x58c065=_0x17ca27;this[_0x58c065(0x153)][_0x58c065(0x2fe)](this['_awaitingChangeset']);}['_onConflict'](_0xef5320){const _0x588ac0=_0x17ca27;return this[_0x588ac0(0x165)](),this['_injector']['createInstance'](X,this[_0x588ac0(0x1bc)],this['type'],null,this[_0x588ac0(0x1f9)],this[_0x588ac0(0x153)],_0xef5320);}[_0x17ca27(0x344)](_0x2b9b90,_0x47ba8f){const _0x349553=_0x17ca27;var _0xdc2888;_0x2b9b90===((_0xdc2888=this[_0x349553(0x1bb)])==null?void 0x0:_0xdc2888[_0x349553(0x17f)])&&(this[_0x349553(0x357)](),this[_0x349553(0x208)]=_0x47ba8f===0x0?0x3e8:Math[_0x349553(0x1a9)](_0x47ba8f*0x2,mn),this[_0x349553(0xdf)]+=this['_resendTimeout']);}['_clearScheduledTask'](){const _0x585c15=_0x17ca27;var _0x1e5740;(_0x1e5740=this[_0x585c15(0x341)])==null||_0x1e5740[_0x585c15(0x20f)](),this['_resendTimeout']=0x0,this[_0x585c15(0xdf)]=0x0;}};Y=fn=V([B(0x6,_0x2ce47d(_0x3973c2)),B(0x7,_0x2ce47d(_0x10c220)),B(0x8,_0x197520),B(0x9,_0x5b6de8),B(0xa,_0x18b268),B(0xb,_0x36c08a),B(0xc,_0x1bb6a9(U))],Y);let X=class extends G{constructor(_0x457e22,_0x53d4b5,_0x38c6a1,_0x37d8e3,_0x7bf304,_0x294c73=!0x1,_0x50f0fa,_0x4f22bb,_0x3cd152,_0x5bcc79,_0x33b1b6,_0x3259b6,_0x48a229){const _0x45db8a=_0x17ca27;super(_0x457e22,_0x53d4b5,_0x38c6a1,_0x37d8e3,_0x7bf304,_0x4f22bb,_0x3cd152,_0x5bcc79,_0x48a229),this[_0x45db8a(0x1a0)]=_0x294c73,this[_0x45db8a(0x106)]=_0x50f0fa,this[_0x45db8a(0x2ea)]=_0x33b1b6,this['_collaborationUIEventService']=_0x3259b6,this['localCacheService']=_0x48a229,R(this,_0x45db8a(0x1d3),_0x45db8a(0x2ba)),this[_0x45db8a(0xf0)](),this[_0x45db8a(0x338)](),this[_0x45db8a(0x19b)]();}[_0x17ca27(0x289)](){return this;}[_0x17ca27(0x36a)](){return this;}['onRemoteAck'](){return this;}[_0x17ca27(0x1fb)](){return this;}[_0x17ca27(0x1d0)](){return this;}[_0x17ca27(0xf6)](){return this;}['toggleOnline'](){return this;}['resend'](){const _0xac567=_0x17ca27;throw Error(_0xac567(0x2f2));}[_0x17ca27(0x338)](){const _0x5dbe9a=_0x17ca27;var _0x4c4d7a,_0x13b86c,_0x548bcc;(_0x4c4d7a=this[_0x5dbe9a(0x28c)])==null||(_0x13b86c=_0x4c4d7a[_0x5dbe9a(0x108)])==null||(_0x13b86c=_0x13b86c[_0x5dbe9a(0x145)](_0x4c4d7a,this[_0x5dbe9a(0x1bc)],_0x5dbe9a(0x2ba)))==null||_0x13b86c['catch'](()=>void 0x0),(_0x548bcc=this[_0x5dbe9a(0x28c)])==null||_0x548bcc[_0x5dbe9a(0x157)](this[_0x5dbe9a(0x1bc)],this[_0x5dbe9a(0x1ba)],null,[]);}[_0x17ca27(0xf0)](){const _0x516c4e=_0x17ca27;this[_0x516c4e(0x1a0)]?this[_0x516c4e(0x2e2)][_0x516c4e(0x2c1)]({'id':'PERMISSION_DENIED'}):this[_0x516c4e(0x2e2)][_0x516c4e(0x2c1)]({'id':_0x516c4e(0x245)});}[_0x17ca27(0x19b)](){const _0x4ac732=_0x17ca27;this['_permissionService']['updatePermissionPoint'](new _0x2ee891(this[_0x4ac732(0x1bc)])['id'],!0x1);}};X=V([B(0x6,_0x2ce47d(_0x591ed0)),B(0x7,_0x197520),B(0x8,_0x36c08a),B(0x9,_0x2ce47d(_0x10c220)),B(0xa,_0x2ce47d(_0xed34f6)),B(0xb,_0x2ce47d(z)),B(0xc,_0x1bb6a9(U))],X);let Z=class extends G{constructor(_0x3c92dc,_0x97291f,_0x5f4420,_0x689ac3,_0x133f23,_0x35d535,_0x3c2d2f,_0x29594b,_0x4acfc8,_0x1ab8dd){const _0x54cdc7=_0x17ca27;super(_0x3c92dc,_0x97291f,_0x5f4420,_0x689ac3,_0x133f23,_0x29594b,_0x4acfc8,_0x3c2d2f,_0x1ab8dd),this[_0x54cdc7(0x369)]=_0x35d535,R(this,_0x54cdc7(0x1d3),_0x54cdc7(0xed));}[_0x17ca27(0x289)](_0x5ef55a){const _0x52bfa0=_0x17ca27;return this[_0x52bfa0(0x1f9)][_0x52bfa0(0x1b5)](_0x5ef55a),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x2221cf){const _0x562a42=_0x17ca27;throw Error(_0x562a42(0x2f8));}[_0x17ca27(0x219)](){const _0x17a564=_0x17ca27;throw Error(_0x17a564(0x337));}['onRemoteRej'](){const _0x182d3f=_0x17ca27;throw Error(_0x182d3f(0x260));}[_0x17ca27(0x1d0)](){return this;}[_0x17ca27(0xf6)](){return this;}[_0x17ca27(0x224)](){const _0x3ec616=_0x17ca27;let {_injector:_0x531187,_pendingMutations:_0x4a22b0,_awaitingChangeset:_0x401fdb,unitID:_0x24c194,_handler:_0xab10d3,type:_0x523cd1}=this,_0x4e2762=gn(_0x531187,_0x24c194,_0x523cd1,_0x401fdb,_0x4a22b0,_0xab10d3);return _0x4e2762 instanceof q?_0x4e2762[_0x3ec616(0x23c)]():(_0x4e2762 instanceof Y||_0x4e2762 instanceof J)&&_0x4e2762['resend'](),_0x4e2762;}['resend'](){const _0x1cae34=_0x17ca27;throw Error(_0x1cae34(0x28a));}};Z=V([B(0x5,_0x2ce47d(_0x3973c2)),B(0x6,_0x2ce47d(_0x10c220)),B(0x7,_0x197520),B(0x8,_0x36c08a),B(0x9,_0x1bb6a9(U))],Z);let Q=class extends G{constructor(_0x44da53,_0x2b411d,_0x1ef550,_0x5586fc,_0x4a134b,_0x43f2dd,_0xda2f24,_0x5dc71c,_0x26a4bd,_0x4f66fd,_0x88751b,_0x657698,_0x38a69f,_0x2bdb82){const _0x40ab8b=_0x17ca27;super(_0x44da53,_0x2b411d,_0x1ef550,_0x5586fc,_0xda2f24,_0x88751b,_0x657698,_0x26a4bd,_0x2bdb82),this['_acknowledgedAwaitingRevision']=_0x4a134b,this[_0x40ab8b(0x1eb)]=_0x43f2dd,this[_0x40ab8b(0x369)]=_0x5dc71c,this[_0x40ab8b(0xf1)]=_0x4f66fd,this[_0x40ab8b(0x15d)]=_0x38a69f,this[_0x40ab8b(0x166)]=_0x2bdb82,R(this,_0x40ab8b(0x1d3),_0x40ab8b(0x13d));}[_0x17ca27(0x12b)](_0x4d0365){const _0x3a95e8=_0x17ca27;try{if(this[_0x3a95e8(0x212)](_0x4d0365)[_0x3a95e8(0x28b)])throw Error(_0x3a95e8(0x251));if(this[_0x3a95e8(0x212)]([...this['_queuedRemoteChangesets']][_0x3a95e8(0x1c4)]((_0x160f67,_0x5220dd)=>_0x160f67[_0x3a95e8(0x35b)]-_0x5220dd[_0x3a95e8(0x35b)]))[_0x3a95e8(0x28b)])return this[_0x3a95e8(0x1eb)]=[],this[_0x3a95e8(0x164)](),this[_0x3a95e8(0x153)]['onMissingChangesets']({'from':this[_0x3a95e8(0x1ff)](),'to':0x0}),this;let _0x21f3e3=this['_awaitingChangeset'],_0x5d19a8=this[_0x3a95e8(0x1f9)],_0x57cd0b;if(_0x21f3e3&&_0x5d19a8['length']!==0x0)_0x57cd0b=this[_0x3a95e8(0x369)]['createInstance'](Y,this[_0x3a95e8(0x1bc)],this[_0x3a95e8(0x1ba)],_0x21f3e3,_0x5d19a8,this[_0x3a95e8(0x153)],void 0x0);else{if(_0x21f3e3&&_0x5d19a8[_0x3a95e8(0x1dc)]===0x0)_0x21f3e3[_0x3a95e8(0x131)]=this[_0x3a95e8(0x1ff)](),_0x57cd0b=this['_injector'][_0x3a95e8(0x211)](J,this[_0x3a95e8(0x1bc)],this['type'],_0x21f3e3,this['_handler']);else{if(_0x5d19a8[_0x3a95e8(0x1dc)]!==0x0){let _0x28e28a=this[_0x3a95e8(0x369)][_0x3a95e8(0x211)](q,this[_0x3a95e8(0x1bc)],this[_0x3a95e8(0x1ba)],_0x5d19a8,this[_0x3a95e8(0x153)]);_0x28e28a['_schedule'](),_0x57cd0b=_0x28e28a;}else _0x57cd0b=this[_0x3a95e8(0x369)]['createInstance'](K,this[_0x3a95e8(0x1bc)],this[_0x3a95e8(0x1ba)],this['_handler']);}}return _0x57cd0b['_updateLocalCache'](),_0x57cd0b;}catch(_0xdf9cd8){return this[_0x3a95e8(0xf1)][_0x3a95e8(0x20b)](_0x3a95e8(0x215),_0x3a95e8(0x21a),_0xdf9cd8),this[_0x3a95e8(0x369)]['createInstance'](X,this[_0x3a95e8(0x1bc)],this[_0x3a95e8(0x1ba)],this[_0x3a95e8(0x1bb)],this[_0x3a95e8(0x1f9)],this[_0x3a95e8(0x153)],!0x1);}}['_handleRemoteChangesets'](_0x5cbdb8){const _0x423460=_0x17ca27;this[_0x423460(0x183)]();for(let _0x2e0bc7=0x0;_0x2e0bc7<_0x5cbdb8[_0x423460(0x1dc)];_0x2e0bc7++){let _0x51ff3e=_0x5cbdb8[_0x2e0bc7],_0x4d69ec=this[_0x423460(0x1ff)]();if(!(_0x51ff3e['revision']<=_0x4d69ec)){if(_0x51ff3e[_0x423460(0x35b)]>_0x4d69ec+0x1)return{'missingChangesets':!0x0};if(this[_0x423460(0x159)](_0x51ff3e)){this[_0x423460(0x13b)]();continue;}this[_0x423460(0x1bf)](_0x51ff3e),this[_0x423460(0x183)]();}}return{'missingChangesets':!0x1};}[_0x17ca27(0x1bf)](_0x435f38){const _0x1c16f5=_0x17ca27;let _0x418015=_0x435f38,_0x99d567=this[_0x1c16f5(0x1bb)];if(_0x99d567){let _0x474dc5=this[_0x1c16f5(0x15d)][_0x1c16f5(0x1ae)]([_0x435f38],[_0x99d567],!0x1);if(!_0xc8d105(_0x474dc5))throw _0x474dc5[_0x1c16f5(0x20b)];_0x418015=_0x474dc5[_0x1c16f5(0x2f0)][0x0],_0x99d567=_0x474dc5[_0x1c16f5(0x32c)][0x0];}let _0x11ce17=this[_0x1c16f5(0x1f9)];if(_0x11ce17['length']){let _0x2432d3=this[_0x1c16f5(0x15d)][_0x1c16f5(0x36d)](_0x418015,_0x11ce17);if(!_0x13aff6(_0x2432d3))throw _0x2432d3['error'];_0x418015=_0x2432d3[_0x1c16f5(0x2f0)],_0x11ce17=_0x2432d3[_0x1c16f5(0x1fd)];}this[_0x1c16f5(0x283)](_0x418015),_0x99d567&&(_0x99d567[_0x1c16f5(0x131)]=this[_0x1c16f5(0x1ff)]()),this[_0x1c16f5(0x1bb)]=_0x99d567,this['_pendingMutations']=_0x11ce17;}[_0x17ca27(0x183)](){const _0x44605c=_0x17ca27;if(!this[_0x44605c(0x1bb)]||this[_0x44605c(0x160)]==null)return;let _0x3ae7c0=this[_0x44605c(0x1ff)]();if(this['_acknowledgedAwaitingRevision']<=_0x3ae7c0)throw Error(_0x44605c(0x23b)+this['_acknowledgedAwaitingRevision']+'.');this[_0x44605c(0x160)]===_0x3ae7c0+0x1&&this[_0x44605c(0x13b)]();}[_0x17ca27(0x13b)](){const _0x164f64=_0x17ca27;this[_0x164f64(0x29a)](),this['_awaitingChangeset']=null,this[_0x164f64(0x160)]=null;}[_0x17ca27(0x159)](_0x42c58c){const _0x5a0cb4=_0x17ca27;let _0x311a09=this[_0x5a0cb4(0x1bb)];return!_0x311a09||!_0x311a09[_0x5a0cb4(0x14b)]||_0x311a09[_0x5a0cb4(0x17f)]===null||_0x311a09[_0x5a0cb4(0x17f)]===void 0x0?!0x1:_0x42c58c[_0x5a0cb4(0x1bc)]===_0x311a09['unitID']&&_0x42c58c[_0x5a0cb4(0x14b)]===_0x311a09[_0x5a0cb4(0x14b)]&&_0x42c58c['reqId']===_0x311a09[_0x5a0cb4(0x17f)];}['resend'](){const _0x28d9b4=_0x17ca27;throw Error(_0x28d9b4(0x116));}[_0x17ca27(0x289)](_0x43c7fb){const _0x16faa3=_0x17ca27;return this[_0x16faa3(0x1f9)][_0x16faa3(0x1b5)](_0x43c7fb),this;}[_0x17ca27(0x36a)](_0x3c0b0f){const _0x39bdfb=_0x17ca27;return this[_0x39bdfb(0x1eb)]['push'](_0x3c0b0f),this;}['onRemoteAck'](_0x47c434){const _0x556c29=_0x17ca27;if(this['_awaitingChangeset']){let _0x589e56=this[_0x556c29(0x1ff)]();return _0x47c434[_0x556c29(0x35b)]<=_0x589e56||(_0x589e56+0x1===_0x47c434[_0x556c29(0x35b)]?(this[_0x556c29(0x29a)](),this[_0x556c29(0x1bb)]=null,this[_0x556c29(0x160)]=null):this[_0x556c29(0x160)]=_0x47c434[_0x556c29(0x35b)]),this;}if(_0x47c434[_0x556c29(0x35b)]<=this['_getCurrentRevision']())return this;throw Error(_0x556c29(0x378));}[_0x17ca27(0x1fb)](_0x1face2){const _0x580dbe=_0x17ca27;return this[_0x580dbe(0x256)](!!(_0x1face2!=null&&_0x1face2['isPermissionRej']));}[_0x17ca27(0x1d0)](){return this;}[_0x17ca27(0xf6)](){const _0x39a33c=_0x17ca27;return this[_0x39a33c(0x369)][_0x39a33c(0x211)](Z,this[_0x39a33c(0x1bc)],this[_0x39a33c(0x1ba)],this['_awaitingChangeset'],this[_0x39a33c(0x1f9)],this[_0x39a33c(0x153)]);}[_0x17ca27(0x224)](){return this;}[_0x17ca27(0x256)](_0x278670){const _0x32942e=_0x17ca27;return this[_0x32942e(0x369)][_0x32942e(0x211)](X,this[_0x32942e(0x1bc)],this['type'],this['_awaitingChangeset'],this[_0x32942e(0x1f9)],this[_0x32942e(0x153)],_0x278670);}};Q=V([B(0x7,_0x2ce47d(_0x3973c2)),B(0x8,_0x2ce47d(_0x10c220)),B(0x9,_0x5b6de8),B(0xa,_0x197520),B(0xb,_0x36c08a),B(0xc,_0x18b268),B(0xd,_0x1bb6a9(U))],Q);function gn(_0x237118,_0x205d99,_0x25df26,_0x146d78,_0x36f76a,_0x431809){const _0x13f57d=_0x17ca27;return _0x146d78&&_0x36f76a[_0x13f57d(0x1dc)]?_0x237118[_0x13f57d(0x211)](Y,_0x205d99,_0x25df26,_0x146d78,_0x36f76a,_0x431809,void 0x0):_0x146d78?_0x237118['createInstance'](J,_0x205d99,_0x25df26,_0x146d78,_0x431809):_0x36f76a['length']?_0x237118[_0x13f57d(0x211)](q,_0x205d99,_0x25df26,_0x36f76a,_0x431809):_0x237118[_0x13f57d(0x211)](K,_0x205d99,_0x25df26,_0x431809);}let $=class extends _0x308f48{get[_0x17ca27(0x248)](){const _0x4e2132=_0x17ca27;return this[_0x4e2132(0x267)];}constructor(_0x2260c3,_0x16ed42,_0x3551e7,_0x2c8633,_0x387cbf,_0x2b81a2,_0x16c750,_0x303341,_0x2e1542,_0x4ee1c2,_0x53bfba,_0x2ff22d,_0x57152a,_0x5ac51e){const _0x4f57b6=_0x17ca27;super(),this[_0x4f57b6(0x1bc)]=_0x2260c3,this['session']=_0x16ed42,this[_0x4f57b6(0x10c)]=_0x3551e7,this['_injector']=_0x2c8633,this['_compressMutationService']=_0x387cbf,this[_0x4f57b6(0x2ea)]=_0x2b81a2,this[_0x4f57b6(0x17a)]=_0x16c750,this[_0x4f57b6(0x261)]=_0x303341,this[_0x4f57b6(0x22c)]=_0x2e1542,this['_logService']=_0x4ee1c2,this[_0x4f57b6(0x24d)]=_0x53bfba,this[_0x4f57b6(0x106)]=_0x2ff22d,this['_singleActiveUnitService']=_0x57152a,this[_0x4f57b6(0x28c)]=_0x5ac51e,R(this,_0x4f57b6(0x277),new _0x798182(null)),R(this,_0x4f57b6(0x2a0),this[_0x4f57b6(0x277)][_0x4f57b6(0x231)]()),R(this,_0x4f57b6(0x267),void 0x0),R(this,_0x4f57b6(0x274),!0x1),R(this,_0x4f57b6(0x2f3),''),R(this,'_changesetReqId',0x0),R(this,_0x4f57b6(0x264),this[_0x4f57b6(0x2a0)][_0x4f57b6(0x2b8)](_0x4fac5a(_0x324654=>_0x324654?_0x324654[_0x4f57b6(0x1d3)]:'offline'),_0x49a0b5({'bufferSize':0x1,'refCount':!0x0}))),R(this,'_transitionLocked',!0x1),R(this,_0x4f57b6(0x38f),[]);}async[_0x17ca27(0x27d)](){const _0xd2fbff=_0x17ca27;if(this[_0xd2fbff(0x248)])throw Error(_0xd2fbff(0x314));await this['_init']();}['pauseCollaboration'](){const _0x4a2f71=_0x17ca27;return this[_0x4a2f71(0x274)]=!0x0,_0x2e6dfd(()=>{const _0x28fbec=_0x4a2f71;this[_0x28fbec(0x274)]=!0x1,this[_0x28fbec(0x138)]();});}[_0x17ca27(0x29f)](_0x534488){const _0x47f381=_0x17ca27;this[_0x47f381(0x330)](_0x534488);}[_0x17ca27(0x188)](_0x30d14f){const _0xfc65ba=_0x17ca27;this['_state']=_0x30d14f,this['_state$'][_0xfc65ba(0x309)](_0x30d14f);}async[_0x17ca27(0xf7)](){const _0x5aa58b=_0x17ca27;if(this[_0x5aa58b(0x188)](await this['_createInitialState']()),this[_0x5aa58b(0x375)]){var _0x1893ce;(_0x1893ce=this[_0x5aa58b(0x375)])==null||_0x1893ce[_0x5aa58b(0x186)](this[_0x5aa58b(0x1bc)]),this[_0x5aa58b(0x255)](this[_0x5aa58b(0x375)][_0x5aa58b(0x33d)](this['unitID'])[_0x5aa58b(0x139)](_0x58f83e=>{const _0x26a071=_0x5aa58b;this['_logService'][_0x26a071(0x111)](_0x26a071(0x202),_0x26a071(0x362),_0x58f83e),_0x58f83e===0x1?(this[_0x26a071(0x261)][_0x26a071(0x2c1)]({'id':_0x26a071(0xe4)}),this[_0x26a071(0x106)][_0x26a071(0x334)](new _0x2ee891(this[_0x26a071(0x1bc)])['id'],!0x1),this['_permissionService'][_0x26a071(0x2d9)](!0x1)):(this['_permissionService'][_0x26a071(0x334)](new _0x2ee891(this['unitID'])['id'],!0x0),this[_0x26a071(0x106)][_0x26a071(0x2d9)](!0x0));}));}let _0x4389b=!0x1;return this['disposeWithMe'](this[_0x5aa58b(0x22e)][_0x5aa58b(0x22f)]['subscribe'](_0x5b8dcc=>{const _0x2932df=_0x5aa58b;_0x5b8dcc===0x3?this['_toggleOnline'](_0x4389b):_0x5b8dcc===0x2&&(_0x4389b=!0x0,this[_0x2932df(0x177)]());})),this[_0x5aa58b(0x255)](this[_0x5aa58b(0x22e)][_0x5aa58b(0x2d5)][_0x5aa58b(0x139)](_0x48731b=>{const _0x28a1ae=_0x5aa58b;try{switch(_0x48731b[_0x28a1ae(0x321)]){case _0x590a79[_0x28a1ae(0x207)]:this[_0x28a1ae(0x13f)](_0x21ac8b(_0x48731b[_0x28a1ae(0x37f)]));break;case _0x590a79['CHANGESET_ACK']:this[_0x28a1ae(0x26b)](_0x48731b[_0x28a1ae(0x37f)]);break;case _0x590a79[_0x28a1ae(0x19f)]:this[_0x28a1ae(0x24e)]();break;case _0x590a79[_0x28a1ae(0x2be)]:this[_0x28a1ae(0x31b)](_0x48731b[_0x28a1ae(0x37f)]);break;case _0x590a79['PSEUDO_FETCH_MISSING_RESULT']:this[_0x28a1ae(0x1f6)](_0x48731b[_0x28a1ae(0x37f)][_0x28a1ae(0x2fa)][_0x28a1ae(0x316)](_0x1073ba=>_0x21ac8b(_0x1073ba)));break;case _0x590a79[_0x28a1ae(0x16c)]:this[_0x28a1ae(0x24e)]({'isPermissionRej':!0x0});break;case _0x590a79['UNISCRIPT_RUN']:break;}}catch(_0x15df27){throw console[_0x28a1ae(0x20b)](_0x28a1ae(0x11a),_0x15df27),_0x15df27;}})),this[_0x5aa58b(0x267)];}[_0x17ca27(0x1b0)](){const _0x2981f4=_0x17ca27;this[_0x2981f4(0x19c)]=!0x1;}[_0x17ca27(0x2b6)](){const _0xdda157=_0x17ca27;if(this[_0xdda157(0x19c)])throw Error(_0xdda157(0x389));this[_0xdda157(0x19c)]=!0x0;}[_0x17ca27(0x330)](_0x5c351f){const _0x4a3730=_0x17ca27;this[_0x4a3730(0x2b6)](),this['_updateState'](this['_state'][_0x4a3730(0x289)](_0x5c351f)),this[_0x4a3730(0x1b0)]();}[_0x17ca27(0x13f)](_0x79551b){const _0x190d87=_0x17ca27;if(!(_0x79551b['revision']<=this['_revisionService'][_0x190d87(0x2fc)](this['unitID']))){if(this[_0x190d87(0x274)]){this['_remoteChangesetQueue'][_0x190d87(0x1b5)](_0x79551b);return;}this['_applyRemoteChangeset'](_0x79551b);}}[_0x17ca27(0x138)](){const _0x4679e7=_0x17ca27;this[_0x4679e7(0x38f)][_0x4679e7(0x11b)](_0x280a2c=>this[_0x4679e7(0x350)](_0x280a2c)),this[_0x4679e7(0x38f)]=[];}[_0x17ca27(0x350)](_0x375f2f){const _0x3d026c=_0x17ca27;let _0x530e24=this['_compressMutationService'][_0x3d026c(0x2ec)]['fetchThroughInterceptors'](this[_0x3d026c(0x1bd)][_0x3d026c(0x2ec)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x375f2f[_0x3d026c(0x351)],null)||_0x375f2f[_0x3d026c(0x351)],_0x248477={..._0x375f2f,'mutations':_0x530e24};this[_0x3d026c(0x2b6)](),this[_0x3d026c(0x188)](this[_0x3d026c(0x267)][_0x3d026c(0x36a)](_0x248477)),this[_0x3d026c(0x1b0)]();}[_0x17ca27(0x26b)](_0xb5ae6a){const _0x4fc65e=_0x17ca27;this['_lockTransition'](),this[_0x4fc65e(0x188)](this[_0x4fc65e(0x267)][_0x4fc65e(0x219)](_0xb5ae6a)),this[_0x4fc65e(0x1b0)]();}[_0x17ca27(0x24e)](_0x5a9df5){const _0x3dcee4=_0x17ca27;this['_lockTransition'](),this[_0x3dcee4(0x188)](this[_0x3dcee4(0x267)]['onRemoteRej'](_0x5a9df5)),this[_0x3dcee4(0x1b0)]();}['_onRemoteRetry'](_0x4efb99){const _0x599f26=_0x17ca27;this[_0x599f26(0x2b6)](),this[_0x599f26(0x188)](this[_0x599f26(0x267)][_0x599f26(0x1d0)](_0x4efb99)),this[_0x599f26(0x1b0)]();}[_0x17ca27(0x1f6)](_0x3b1862){const _0x3ddd2e=_0x17ca27;if(!(this[_0x3ddd2e(0x267)]instanceof Q))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x59d1bd=_0x3b1862[_0x3ddd2e(0x316)](_0x1ca541=>{const _0x295bdb=_0x3ddd2e;let _0x5ed1bc=this[_0x295bdb(0x1bd)][_0x295bdb(0x2ec)][_0x295bdb(0x1cc)](this[_0x295bdb(0x1bd)][_0x295bdb(0x2ec)]['getInterceptPoints']()[_0x295bdb(0x15a)])(_0x1ca541[_0x295bdb(0x351)],null)||_0x1ca541[_0x295bdb(0x351)];return{..._0x1ca541,'mutations':_0x5ed1bc};});this[_0x3ddd2e(0x2b6)](),this[_0x3ddd2e(0x188)](this[_0x3ddd2e(0x267)][_0x3ddd2e(0x12b)](_0x59d1bd)),this[_0x3ddd2e(0x1b0)]();}[_0x17ca27(0x177)](){const _0x451e64=_0x17ca27;this['_lockTransition'](),this[_0x451e64(0x188)](this[_0x451e64(0x267)]['toggleOffline']()),this[_0x451e64(0x1b0)]();}[_0x17ca27(0x19a)](_0x27f58c=!0x1){const _0x559d3e=_0x17ca27;this[_0x559d3e(0x2b6)](),this[_0x559d3e(0x188)](this[_0x559d3e(0x267)][_0x559d3e(0x224)]()),this[_0x559d3e(0x1b0)]();let _0x7ccb87=this['_state'];_0x27f58c&&_0x7ccb87 instanceof K&&(this[_0x559d3e(0x2b6)](),this['_updateState'](_0x7ccb87[_0x559d3e(0xf8)]()),this[_0x559d3e(0x1b0)]());}async[_0x17ca27(0x1e1)](){return new Promise(_0x4a71ec=>{const _0x45a5af=_0x1f49;this[_0x45a5af(0x22e)][_0x45a5af(0x22f)][_0x45a5af(0x2b8)](_0x13d8b9(0x1))[_0x45a5af(0x139)](async _0xf3219=>{const _0x12ea70=_0x45a5af;_0x4a71ec(await this[_0x12ea70(0x29e)](_0xf3219===0x3));});});}[_0x17ca27(0xf3)](){const _0x340c9e=_0x17ca27;let _0xe31952=this[_0x340c9e(0x1bc)];return{'onStateChange':(_0xa1a215,_0x2ffb96)=>{const _0x551e47=_0x340c9e;if(_0xa1a215!==this[_0x551e47(0x267)])throw Error(_0x551e47(0x1cf)+_0xa1a215[_0x551e47(0x1d3)]+_0x551e47(0x34c)+_0x2ffb96[_0x551e47(0x1d3)]+_0x551e47(0x1c3)+this[_0x551e47(0x267)][_0x551e47(0x1d3)]);this[_0x551e47(0x188)](_0x2ffb96);},'onSendChangeset':_0x2d7e62=>{const _0x4ae066=_0x340c9e;_0x2d7e62[_0x4ae066(0x14b)]||(_0x2d7e62[_0x4ae066(0x14b)]=this[_0x4ae066(0x2f3)],_0x2d7e62[_0x4ae066(0x17f)]=++this[_0x4ae066(0x1c2)]);let _0x46132e={'eventID':_0x590a79['SUBMIT_CHANGESET'],'data':{'unitID':_0x2d7e62[_0x4ae066(0x1bc)],'unitType':this['_type'],'changeset':_0x2d7e62,'memberID':this[_0x4ae066(0x22e)]['getMemberID']()}};this['session'][_0x4ae066(0x241)](_0x46132e,this[_0x4ae066(0x1bc)]);},'onMissingChangesets':({from:_0x33d080,to:_0x2d5757})=>{const _0x7cbac8=_0x340c9e;this[_0x7cbac8(0xf1)][_0x7cbac8(0x111)](_0x7cbac8(0x202),'fetching\x20missing\x20changesets\x20from\x20'+_0x33d080+'\x20to\x20'+_0x2d5757);let _0x35cae8={'eventID':_0x590a79[_0x7cbac8(0x2ef)],'data':{'unitID':_0xe31952,'unitType':this['_type'],'from':_0x33d080,'to':_0x2d5757}};this[_0x7cbac8(0x22e)]['send'](_0x35cae8,this[_0x7cbac8(0x1bc)]);}};}async[_0x17ca27(0x29e)](_0x43e635){const _0x48777c=_0x17ca27;var _0xcc042d,_0xa19d61,_0x1620f3;let _0x1e6c91=await((_0xcc042d=this[_0x48777c(0x28c)])==null?void 0x0:_0xcc042d[_0x48777c(0x273)](this['unitID'])),_0xe9bf55=(_0xa19d61=_0x1e6c91==null?void 0x0:_0x1e6c91['mutations'])==null?[]:_0xa19d61,_0x205713=(_0x1620f3=_0x1e6c91==null?void 0x0:_0x1e6c91[_0x48777c(0xfe)])==null?null:_0x1620f3,_0x1fbfdb=!!(_0x205713!=null&&_0x205713[_0x48777c(0x14b)])&&!!(_0x205713!=null&&_0x205713[_0x48777c(0x17f)]);this[_0x48777c(0x2f3)]=_0x1fbfdb?_0x205713['sid']:_0x19b86e(),this[_0x48777c(0x1c2)]=_0x1fbfdb?_0x205713[_0x48777c(0x17f)]:0x0;let _0x3c7674=this[_0x48777c(0x1bc)];try{this[_0x48777c(0x233)](_0x205713,_0xe9bf55);}catch(_0x413c7f){this[_0x48777c(0xf1)][_0x48777c(0x20b)](_0x413c7f);}let _0x423d29=this[_0x48777c(0xf3)]();if(_0x43e635){let _0x1e1be9=gn(this['_injector'],_0x3c7674,this[_0x48777c(0x10c)],_0x205713,_0xe9bf55,_0x423d29);return _0x1e1be9 instanceof q?_0x1e1be9[_0x48777c(0x23c)]():(_0x1e1be9 instanceof Y||_0x1e1be9 instanceof J)&&_0x1e1be9[_0x48777c(0x357)](),_0x1e1be9;}return this[_0x48777c(0x369)][_0x48777c(0x211)](Z,_0x3c7674,this[_0x48777c(0x10c)],_0x205713,_0xe9bf55,_0x423d29);}[_0x17ca27(0x233)](_0x571d82,_0x2f4682){const _0x4c311d=_0x17ca27;var _0x295242,_0x5769af;let _0x230a16=this[_0x4c311d(0x1bd)][_0x4c311d(0x2ec)]['fetchThroughInterceptors'](this[_0x4c311d(0x1bd)]['interceptor'][_0x4c311d(0x18c)]()[_0x4c311d(0x15a)]);(_0x295242=_0x230a16((_0x571d82==null?void 0x0:_0x571d82[_0x4c311d(0x351)])||[],null))==null||_0x295242[_0x4c311d(0x11b)](_0x2f3e9d=>this['_commandService'][_0x4c311d(0x184)](_0x2f3e9d['id'],_0x2f3e9d[_0x4c311d(0x221)])),(_0x5769af=_0x230a16(_0x2f4682||[],null))==null||_0x5769af[_0x4c311d(0x11b)](_0x519ca8=>this['_commandService'][_0x4c311d(0x184)](_0x519ca8['id'],_0x519ca8['params']));}};$=V([B(0x3,_0x2ce47d(_0x3973c2)),B(0x4,_0x2ce47d(_0x43ff76)),B(0x5,_0x2ce47d(_0xed34f6)),B(0x6,_0x2ce47d(_0x10c220)),B(0x7,_0x2ce47d(z)),B(0x8,_0x778808),B(0x9,_0x5b6de8),B(0xa,_0x197520),B(0xb,_0x591ed0),B(0xc,_0x1bb6a9(W)),B(0xd,_0x1bb6a9(U))],$);let _n=class extends ${constructor(_0x540cd0,_0x36d422,_0x7039ee,_0x53f78d,_0x2a94b2,_0xd931c0,_0x2d2b16,_0x2fa7f2,_0x52acf7,_0xf9bafc,_0x5ab3d0,_0x2543d4,_0x48b572,_0x96957e,_0x523b57){const _0x58a48f=_0x17ca27;super(_0x540cd0,_0x7039ee,_0x36d422,_0x53f78d,_0x2a94b2,_0xd931c0,_0x2d2b16,_0x2fa7f2,_0x52acf7,_0xf9bafc,_0x5ab3d0,_0x2543d4,_0x96957e,_0x523b57),this[_0x58a48f(0x1bc)]=_0x540cd0,this[_0x58a48f(0x1ba)]=_0x36d422,this[_0x58a48f(0x1ec)]=_0x48b572,R(this,'_handlerCallback',null);}['addHandlerCallback'](_0x1f0733){const _0xfb444=_0x17ca27;this[_0xfb444(0x365)]=_0x1f0733;}[_0x17ca27(0x2c4)](){const _0x5244c7=_0x17ca27;this[_0x5244c7(0x365)]=null,super['dispose']();}['_createHandler'](){const _0x100d82=_0x17ca27;let _0x27c219=super['_createHandler']();return _0x27c219[_0x100d82(0x12a)]=_0x535cae=>{const _0x53f00a=_0x100d82;var _0x2eda19,_0x517389;return(_0x2eda19=this[_0x53f00a(0x365)])==null||(_0x517389=_0x2eda19['onTransformIME'])==null?void 0x0:_0x517389['call'](_0x2eda19,_0x535cae);},_0x27c219[_0x100d82(0x33b)]=_0x2b6076=>{const _0x2f3684=_0x100d82;var _0x168732,_0x1a6585;return(_0x168732=this[_0x2f3684(0x365)])==null||(_0x1a6585=_0x168732[_0x2f3684(0x33b)])==null?void 0x0:_0x1a6585[_0x2f3684(0x145)](_0x168732,_0x2b6076);},_0x27c219['onTransformSelections']=_0x4bfeb7=>{const _0x43581a=_0x100d82;var _0x36b239,_0x24e248;return(_0x36b239=this[_0x43581a(0x365)])==null||(_0x24e248=_0x36b239[_0x43581a(0x103)])==null?void 0x0:_0x24e248[_0x43581a(0x145)](_0x36b239,_0x4bfeb7);},_0x27c219[_0x100d82(0x35f)]=_0x154135=>{const _0x1e7a83=_0x100d82;var _0xa92b3,_0x4a5b43;return(_0xa92b3=this['_handlerCallback'])==null||(_0x4a5b43=_0xa92b3[_0x1e7a83(0x35f)])==null?void 0x0:_0x4a5b43[_0x1e7a83(0x145)](_0xa92b3,_0x154135);},_0x27c219[_0x100d82(0x1e0)]=_0x1a483e=>{const _0x51d2f7=_0x100d82;var _0x3ce871,_0x5d6c77,_0x41b818;return(_0x3ce871=(_0x5d6c77=this[_0x51d2f7(0x365)])==null||(_0x41b818=_0x5d6c77[_0x51d2f7(0x1e0)])==null?void 0x0:_0x41b818[_0x51d2f7(0x145)](_0x5d6c77,_0x1a483e))==null?_0x1a483e:_0x3ce871;},_0x27c219[_0x100d82(0x23e)]=_0x4038d0=>{const _0xc3e6a3=_0x100d82;var _0x412c0f,_0x3f1fad,_0x11a5e7;return(_0x412c0f=(_0x3f1fad=this[_0xc3e6a3(0x365)])==null||(_0x11a5e7=_0x3f1fad['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x11a5e7[_0xc3e6a3(0x145)](_0x3f1fad,_0x4038d0))==null?_0x4038d0:_0x412c0f;},_0x27c219;}async[_0x17ca27(0xf7)](){const _0x46a453=_0x17ca27;let _0x5d6fd3=await super['_init']();return this[_0x46a453(0x255)](this[_0x46a453(0x1ec)][_0x46a453(0x35d)]['subscribe'](_0x27c653=>{const _0x392465=_0x46a453;if(_0x27c653==null||_0x27c653[_0x392465(0x232)]!==this[_0x392465(0x1bc)])return;let {commandId:_0x32db4b,redoState:_0x59cf34,unitId:_0x4de569}=_0x27c653,_0xd025a6={'id':_0x32db4b,'type':_0x3bccbd['MUTATION'],'params':{'unitId':_0x4de569,'actions':_0x59cf34[_0x392465(0x288)],'textRanges':null}};this[_0x392465(0x330)](_0xd025a6);})),this[_0x46a453(0x255)](this[_0x46a453(0x24d)][_0x46a453(0x372)]((_0x31d636,_0x331dfb)=>{const _0x2881e7=_0x46a453;if(_0x31d636[_0x2881e7(0x1ba)]!==_0x3bccbd[_0x2881e7(0x185)]||_0x331dfb!=null&&_0x331dfb[_0x2881e7(0x34e)]||_0x331dfb!=null&&_0x331dfb[_0x2881e7(0xe6)]||_0x31d636['id']===_0x5282e4['id'])return;let _0x3e776b=_0x31d636['params'];if((_0x3e776b==null?void 0x0:_0x3e776b['unitId'])!==this[_0x2881e7(0x1bc)])return;let _0x2bb59a=_0x31d636,_0x40652f=this[_0x2881e7(0x1bd)][_0x2881e7(0x2ec)][_0x2881e7(0x1cc)](this[_0x2881e7(0x1bd)][_0x2881e7(0x2ec)][_0x2881e7(0x18c)]()[_0x2881e7(0x347)])([_0x2bb59a],this[_0x2881e7(0x22c)])||[_0x2bb59a];this[_0x2881e7(0x330)](_0x40652f[0x0]);})),_0x5d6fd3;}};_n=V([B(0x3,_0x2ce47d(_0x3973c2)),B(0x4,_0x2ce47d(_0x43ff76)),B(0x5,_0x2ce47d(_0xed34f6)),B(0x6,_0x2ce47d(_0x10c220)),B(0x7,_0x2ce47d(z)),B(0x8,_0x778808),B(0x9,_0x5b6de8),B(0xa,_0x197520),B(0xb,_0x591ed0),B(0xc,_0x2ce47d(_0x36b7ca)),B(0xd,_0x1bb6a9(W)),B(0xe,_0x1bb6a9(U))],_n);let vn=class extends ${constructor(_0x100638,_0x443a77,_0x5671f2,_0x190bf7,_0x29ee12,_0x45262b,_0x55c9c5,_0x1fd07d,_0x50eda4,_0x167976,_0x8648a6,_0x43c62e,_0x56dd06,_0x5c23a3){const _0x1f4520=_0x17ca27;super(_0x100638,_0x5671f2,_0x443a77,_0x190bf7,_0x29ee12,_0x45262b,_0x55c9c5,_0x1fd07d,_0x50eda4,_0x167976,_0x8648a6,_0x43c62e,_0x56dd06,_0x5c23a3),this['unitID']=_0x100638,this[_0x1f4520(0x1ba)]=_0x443a77;}async['_init'](){const _0x28904a=_0x17ca27;let _0x40cf23=await super[_0x28904a(0xf7)]();return this[_0x28904a(0x255)](this[_0x28904a(0x24d)][_0x28904a(0x372)]((_0x2b76fb,_0x4d9919)=>{const _0x33ff6a=_0x28904a;if(_0x2b76fb[_0x33ff6a(0x1ba)]!==_0x3bccbd[_0x33ff6a(0x185)]||_0x4d9919!=null&&_0x4d9919[_0x33ff6a(0x34e)]||_0x4d9919!=null&&_0x4d9919[_0x33ff6a(0xe6)])return;let _0x4c67d0=_0x2b76fb[_0x33ff6a(0x221)];if((_0x4c67d0==null?void 0x0:_0x4c67d0[_0x33ff6a(0x232)])!==this[_0x33ff6a(0x1bc)])return;let _0x2a2741=_0x2b76fb,_0x480005=this[_0x33ff6a(0x1bd)][_0x33ff6a(0x2ec)][_0x33ff6a(0x1cc)](this[_0x33ff6a(0x1bd)][_0x33ff6a(0x2ec)][_0x33ff6a(0x18c)]()[_0x33ff6a(0x347)])([_0x2a2741],this[_0x33ff6a(0x22c)])||[_0x2a2741];this[_0x33ff6a(0x330)](_0x480005[0x0]);})),_0x40cf23;}};vn=V([B(0x3,_0x2ce47d(_0x3973c2)),B(0x4,_0x2ce47d(_0x43ff76)),B(0x5,_0x2ce47d(_0xed34f6)),B(0x6,_0x2ce47d(_0x10c220)),B(0x7,_0x2ce47d(z)),B(0x8,_0x778808),B(0x9,_0x5b6de8),B(0xa,_0x197520),B(0xb,_0x591ed0),B(0xc,_0x1bb6a9(W)),B(0xd,_0x1bb6a9(U))],vn);let yn=class extends ${constructor(_0x5ee2d6,_0x32ca3d,_0x5b6212,_0x2c41f5,_0x1707ef,_0x2c4a7a,_0x1e4ba2,_0x52b0af,_0x1102cc,_0x40e235,_0x4b0199,_0x490791,_0x1c7530,_0x3016fa,_0x5c9764){const _0x27e997=_0x17ca27;super(_0x5ee2d6,_0x5b6212,_0x32ca3d,_0x2c41f5,_0x1707ef,_0x2c4a7a,_0x1e4ba2,_0x1102cc,_0x40e235,_0x4b0199,_0x490791,_0x1c7530,_0x3016fa,_0x5c9764),this['unitID']=_0x5ee2d6,this[_0x27e997(0x1ba)]=_0x32ca3d,this[_0x27e997(0x311)]=_0x52b0af;}[_0x17ca27(0xf3)](){const _0x21f58a=_0x17ca27;let _0x2c0c91=super[_0x21f58a(0xf3)]();return _0x2c0c91[_0x21f58a(0x103)]=_0x3618ba=>this['_sheetTransformSelectionsService'][_0x21f58a(0x368)](_0x3618ba),_0x2c0c91;}async['_init'](){const _0x30c931=_0x17ca27;let _0x28f302=await super[_0x30c931(0xf7)]();return this[_0x30c931(0x255)](this['_commandService']['onMutationExecutedForCollab']((_0x29907a,_0x118b2c)=>{const _0xa77475=_0x30c931;if(_0x29907a['type']!==_0x3bccbd[_0xa77475(0x185)]||_0x118b2c!=null&&_0x118b2c[_0xa77475(0x34e)]||_0x118b2c!=null&&_0x118b2c[_0xa77475(0xe6)])return;let _0x7040b7=_0x29907a[_0xa77475(0x221)];if((_0x7040b7==null?void 0x0:_0x7040b7[_0xa77475(0x232)])!==this[_0xa77475(0x1bc)])return;let _0xa4ac13=_0x29907a,_0x1baa51=this[_0xa77475(0x1bd)]['interceptor']['fetchThroughInterceptors'](this[_0xa77475(0x1bd)][_0xa77475(0x2ec)][_0xa77475(0x18c)]()[_0xa77475(0x347)])([_0xa4ac13],this['_univerInstanceService'])||[_0xa4ac13];this[_0xa77475(0x330)](_0x1baa51[0x0]);})),_0x28f302;}};yn=V([B(0x3,_0x2ce47d(_0x3973c2)),B(0x4,_0x2ce47d(_0x43ff76)),B(0x5,_0x2ce47d(_0xed34f6)),B(0x6,_0x2ce47d(_0x10c220)),B(0x7,_0x2ce47d(Gt)),B(0x8,_0x2ce47d(z)),B(0x9,_0x778808),B(0xa,_0x5b6de8),B(0xb,_0x197520),B(0xc,_0x591ed0),B(0xd,_0x1bb6a9(W)),B(0xe,_0x1bb6a9(U))],yn);let bn=class extends ${constructor(_0x145945,_0x54b2a4,_0x4692dc,_0x2350d7,_0x112002,_0x33aec3,_0x431c7a,_0x1ec6f2,_0x19d67b,_0x89b67b,_0x33480d,_0x4b9906,_0x6b9643,_0x3bc169){const _0x3f62d4=_0x17ca27;super(_0x145945,_0x4692dc,_0x54b2a4,_0x2350d7,_0x112002,_0x33aec3,_0x431c7a,_0x1ec6f2,_0x19d67b,_0x89b67b,_0x33480d,_0x4b9906,_0x6b9643,_0x3bc169),this[_0x3f62d4(0x1bc)]=_0x145945,this[_0x3f62d4(0x1ba)]=_0x54b2a4;}async[_0x17ca27(0xf7)](){const _0x4730c4=_0x17ca27;let _0x148bd9=await super[_0x4730c4(0xf7)]();return this[_0x4730c4(0x255)](this[_0x4730c4(0x24d)][_0x4730c4(0x372)]((_0x4ee897,_0x3811cd)=>{const _0x5a86af=_0x4730c4;if(_0x4ee897[_0x5a86af(0x1ba)]!==_0x3bccbd[_0x5a86af(0x185)]||_0x3811cd!=null&&_0x3811cd[_0x5a86af(0x34e)]||_0x3811cd!=null&&_0x3811cd[_0x5a86af(0xe6)])return;let _0x49a870=_0x4ee897[_0x5a86af(0x221)];if((_0x49a870==null?void 0x0:_0x49a870[_0x5a86af(0x232)])!==this[_0x5a86af(0x1bc)])return;let _0x171773=_0x4ee897,_0x4ad037=this[_0x5a86af(0x1bd)][_0x5a86af(0x2ec)][_0x5a86af(0x1cc)](this[_0x5a86af(0x1bd)]['interceptor'][_0x5a86af(0x18c)]()[_0x5a86af(0x347)])([_0x171773],this['_univerInstanceService'])||[_0x171773];this[_0x5a86af(0x330)](_0x4ad037[0x0]);})),_0x148bd9;}};bn=V([B(0x3,_0x2ce47d(_0x3973c2)),B(0x4,_0x2ce47d(_0x43ff76)),B(0x5,_0x2ce47d(_0xed34f6)),B(0x6,_0x2ce47d(_0x10c220)),B(0x7,_0x2ce47d(z)),B(0x8,_0x778808),B(0x9,_0x5b6de8),B(0xa,_0x197520),B(0xb,_0x591ed0),B(0xc,_0x1bb6a9(W)),B(0xd,_0x1bb6a9(U))],bn);let xn=class extends ${constructor(_0x4a79f8,_0x56d89f,_0x469c6e,_0x1e2456,_0x544537,_0x283c8f,_0x5b0939,_0x16311f,_0x58c6da,_0x380f32,_0x2d6f20,_0x923628,_0x3f44cf,_0x4bd483){const _0x58017b=_0x17ca27;super(_0x4a79f8,_0x469c6e,_0x56d89f,_0x1e2456,_0x544537,_0x283c8f,_0x5b0939,_0x16311f,_0x58c6da,_0x380f32,_0x2d6f20,_0x923628,_0x3f44cf,_0x4bd483),this[_0x58017b(0x1bc)]=_0x4a79f8,this[_0x58017b(0x1ba)]=_0x56d89f;}async[_0x17ca27(0xf7)](){const _0x156764=_0x17ca27;let _0x5fad26=await super['_init']();return this[_0x156764(0x255)](this['_commandService']['onMutationExecutedForCollab']((_0x363a6b,_0x373449)=>{const _0x39920a=_0x156764;if(_0x363a6b[_0x39920a(0x1ba)]!==_0x3bccbd['MUTATION']||_0x373449!=null&&_0x373449[_0x39920a(0x34e)]||_0x373449!=null&&_0x373449[_0x39920a(0xe6)])return;let _0x3f8d06=_0x363a6b[_0x39920a(0x221)];if((_0x3f8d06==null?void 0x0:_0x3f8d06[_0x39920a(0x232)])!==this[_0x39920a(0x1bc)])return;let _0x4edb6d=_0x363a6b,_0x277442=this['_compressMutationService'][_0x39920a(0x2ec)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x39920a(0x2ec)][_0x39920a(0x18c)]()[_0x39920a(0x347)])([_0x4edb6d],this[_0x39920a(0x22c)])||[_0x4edb6d];this['_onLocalMutation'](_0x277442[0x0]);})),_0x5fad26;}};xn=V([B(0x3,_0x2ce47d(_0x3973c2)),B(0x4,_0x2ce47d(_0x43ff76)),B(0x5,_0x2ce47d(_0xed34f6)),B(0x6,_0x2ce47d(_0x10c220)),B(0x7,_0x2ce47d(z)),B(0x8,_0x778808),B(0x9,_0x5b6de8),B(0xa,_0x197520),B(0xb,_0x591ed0),B(0xc,_0x1bb6a9(W)),B(0xd,_0x1bb6a9(U))],xn);const Sn=_0x366722(_0x17ca27(0x13e));function Cn(_0x2eaec5){const _0x4e9c84=_0x17ca27;let _0xb5b3fb=_0x2eaec5[_0x4e9c84(0x37f)],_0x2dc151=JSON['parse'](_0xb5b3fb);switch(_0x2dc151[_0x4e9c84(0x28f)]){case _0x245e97['HEARTBEAT']:case _0x245e97[_0x4e9c84(0x2bb)]:{let _0x55fe07=_0x2dc151[_0x4e9c84(0x24a)];return{..._0x2dc151,'data':_0x55fe07,'cmd':_0x2dc151[_0x4e9c84(0x28f)]};}case _0x245e97[_0x4e9c84(0x307)]:{let _0x46a4ea=_0x2dc151[_0x4e9c84(0x198)];return{..._0x2dc151,'data':_0x46a4ea,'cmd':_0x2dc151[_0x4e9c84(0x28f)]};}case _0x245e97[_0x4e9c84(0x2e7)]:{let _0x214aed=_0x2dc151[_0x4e9c84(0x20a)];switch(_0x214aed[_0x4e9c84(0x321)]){case _0x590a79[_0x4e9c84(0x16c)]:var _0x47ee75;return{..._0x2dc151,'data':{..._0x214aed,'data':(_0x47ee75=_0x214aed['permissionRejEvent'])==null?void 0x0:_0x47ee75['cs']},'cmd':_0x2dc151[_0x4e9c84(0x28f)]};case _0x590a79[_0x4e9c84(0x2fd)]:var _0xeb0577;return{..._0x2dc151,'data':{..._0x214aed,'data':(_0xeb0577=_0x214aed[_0x4e9c84(0x2c0)])==null?void 0x0:_0xeb0577['cs']},'cmd':_0x2dc151[_0x4e9c84(0x28f)]};case _0x590a79[_0x4e9c84(0x207)]:var _0x40b008;return{..._0x2dc151,'data':{..._0x214aed,'data':(_0x40b008=_0x214aed[_0x4e9c84(0x1d6)])==null?void 0x0:_0x40b008['cs']},'cmd':_0x2dc151['cmd']};case _0x590a79[_0x4e9c84(0x19f)]:var _0x2131bb;return{..._0x2dc151,'data':{..._0x214aed,'data':(_0x2131bb=_0x214aed[_0x4e9c84(0x2ca)])==null?void 0x0:_0x2131bb['cs']},'cmd':_0x2dc151[_0x4e9c84(0x28f)]};case _0x590a79['CHANGESET_SHOULD_RETRY']:var _0x46e79d;return{..._0x2dc151,'data':{..._0x214aed,'data':(_0x46e79d=_0x214aed[_0x4e9c84(0x269)])==null?void 0x0:_0x46e79d['cs']},'cmd':_0x2dc151['cmd']};case _0x590a79[_0x4e9c84(0x2e0)]:return{..._0x2dc151,'data':{..._0x214aed,'data':_0x214aed['updateCursorEvent']},'cmd':_0x2dc151[_0x4e9c84(0x28f)]};case _0x590a79[_0x4e9c84(0x1e9)]:return{..._0x2dc151,'data':{..._0x214aed,'data':_0x214aed[_0x4e9c84(0x13a)]},'cmd':_0x2dc151[_0x4e9c84(0x28f)]};case _0x590a79[_0x4e9c84(0x120)]:return{..._0x2dc151,'data':{..._0x214aed,'data':_0x214aed[_0x4e9c84(0x2d7)]},'cmd':_0x2dc151['cmd']};case _0x590a79[_0x4e9c84(0x126)]:return{..._0x2dc151,'data':{..._0x214aed,'data':_0x214aed[_0x4e9c84(0x359)]},'cmd':_0x2dc151[_0x4e9c84(0x28f)]};case _0x590a79[_0x4e9c84(0x297)]:case _0x590a79[_0x4e9c84(0x31d)]:return{..._0x2dc151,'data':{..._0x214aed,'data':_0x214aed['liveShareOperation']},'cmd':_0x2dc151[_0x4e9c84(0x28f)]};case _0x590a79['LIVESHARE_TERMINATE']:return{..._0x2dc151,'data':{..._0x214aed,'data':_0x214aed[_0x4e9c84(0x359)]},'cmd':_0x2dc151[_0x4e9c84(0x28f)]};case _0x590a79[_0x4e9c84(0x299)]:return{..._0x2dc151,'data':_0x214aed,'cmd':_0x2dc151[_0x4e9c84(0x28f)]};case _0x590a79[_0x4e9c84(0x380)]:return{..._0x2dc151,'data':{..._0x214aed,'data':_0x214aed[_0x4e9c84(0x254)]},'cmd':_0x2dc151['cmd']};case _0x590a79[_0x4e9c84(0x34b)]:return{..._0x2dc151,'data':{..._0x214aed,'data':_0x214aed[_0x4e9c84(0x2f6)]},'cmd':_0x2dc151[_0x4e9c84(0x28f)]};case _0x590a79[_0x4e9c84(0x2d4)]:return{..._0x2dc151,'data':{..._0x214aed,'data':_0x214aed[_0x4e9c84(0x18b)]},'cmd':_0x2dc151[_0x4e9c84(0x28f)]};case _0x590a79['UNISCRIPT_RUN']:return{..._0x2dc151,'data':{..._0x214aed,'data':_0x214aed[_0x4e9c84(0xe3)]},'cmd':_0x2dc151[_0x4e9c84(0x28f)]};default:return _0x2dc151;}}default:return _0x2dc151;}}function wn(_0x49a9ed){const _0x1389c1=_0x17ca27;switch(_0x49a9ed[_0x1389c1(0x28f)]){case _0x245e97[_0x1389c1(0x26e)]:case _0x245e97['HELLO']:return JSON['stringify']({'cmd':_0x49a9ed[_0x1389c1(0x28f)],'routeKey':_0x49a9ed[_0x1389c1(0x290)]});case _0x245e97[_0x1389c1(0x312)]:{let _0x4634a6;switch(_0x49a9ed[_0x1389c1(0x37f)][_0x1389c1(0x321)]){case _0x590a79[_0x1389c1(0x2e0)]:_0x4634a6={'eventID':_0x590a79[_0x1389c1(0x2e0)],'updateCursorEvent':_0x49a9ed[_0x1389c1(0x37f)][_0x1389c1(0x37f)]};break;case _0x590a79[_0x1389c1(0x120)]:_0x4634a6={'eventID':_0x590a79[_0x1389c1(0x120)],'leaveEvent':_0x49a9ed[_0x1389c1(0x37f)][_0x1389c1(0x37f)]};break;case _0x590a79[_0x1389c1(0x1e9)]:_0x4634a6={'eventID':_0x590a79[_0x1389c1(0x1e9)],'joinEvent':_0x49a9ed[_0x1389c1(0x37f)]['data']};break;case _0x590a79[_0x1389c1(0x126)]:_0x4634a6={'eventID':_0x590a79[_0x1389c1(0x126)],'liveShareNewHost':_0x49a9ed[_0x1389c1(0x37f)][_0x1389c1(0x37f)]};break;case _0x590a79['LIVESHARE_OPERATION']:_0x4634a6={'eventID':_0x590a79[_0x1389c1(0x31d)],'liveShareOperation':_0x49a9ed[_0x1389c1(0x37f)]['data']};break;case _0x590a79[_0x1389c1(0x23f)]:_0x4634a6={'eventID':_0x590a79[_0x1389c1(0x23f)],'liveShareTerminate':_0x49a9ed['data']['data']};break;case _0x590a79['LIVESHARE_REQUEST_HOST']:_0x4634a6={'eventID':_0x590a79['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x49a9ed['data'][_0x1389c1(0x37f)]};break;case _0x590a79['LIVESHARE_FETCH_OPERATIONS']:_0x4634a6={'eventID':_0x590a79[_0x1389c1(0x297)]};break;default:_0x4634a6={'eventID':_0x49a9ed['data']['eventID']};}return JSON[_0x1389c1(0x2d2)]({'cmd':_0x49a9ed[_0x1389c1(0x28f)],'routeKey':_0x49a9ed[_0x1389c1(0x290)],'collaMsg':_0x4634a6});}case _0x245e97[_0x1389c1(0x307)]:return JSON['stringify']({'cmd':_0x49a9ed['cmd'],'routeKey':_0x49a9ed[_0x1389c1(0x290)],'joinReq':_0x49a9ed[_0x1389c1(0x37f)]});case _0x245e97[_0x1389c1(0x294)]:return JSON['stringify']({'cmd':_0x49a9ed['cmd'],'routeKey':_0x49a9ed[_0x1389c1(0x290)],'leaveReq':_0x49a9ed[_0x1389c1(0x37f)]});default:throw Error(_0x1389c1(0xe5));}}const Tn=_0x366722(_0x17ca27(0x2b1));function En(_0x182522,_0x44024b,_0x514e2c){const _0x2e8769=_0x17ca27;return _0x182522+'/'+_0x44024b+_0x2e8769(0x2ed)+_0x514e2c+_0x2e8769(0x2ce);}let Dn=class extends _0x340ee0{constructor(_0x33897d,_0x95f4b4,_0x527fe8,_0x39c363,_0x45c215){const _0x13d358=_0x17ca27;super(),this[_0x13d358(0x369)]=_0x33897d,this[_0x13d358(0x371)]=_0x95f4b4,this['_configService']=_0x527fe8,this['_logService']=_0x39c363,this[_0x13d358(0x11e)]=_0x45c215;}['_doCreateSocket'](_0x5c3b0e){const _0x84acfe=_0x17ca27;let _0x428a2b=this[_0x84acfe(0x369)][_0x84acfe(0x30b)](_0x150f64);if(!_0x428a2b)throw Error(_0x84acfe(0x196));let _0xddf25f=_0x428a2b[_0x84acfe(0x271)](_0x5c3b0e);if(!_0xddf25f)throw Error(_0x84acfe(0x152));let _0x60bf95=new _0x21e07c(),_0x22100f=new _0x581410();_0x60bf95[_0x84acfe(0x22d)](_0xddf25f[_0x84acfe(0x1c1)][_0x84acfe(0x139)](_0x2f6cc2=>_0x22100f['next'](_0x2f6cc2))),_0x60bf95[_0x84acfe(0x22d)](_0x2e6dfd(()=>_0x22100f['complete']()));let _0x3218ce=new _0x581410();_0x60bf95[_0x84acfe(0x22d)](_0xddf25f[_0x84acfe(0x2b5)]['subscribe'](_0x11551d=>_0x3218ce[_0x84acfe(0x309)](_0x11551d))),_0x60bf95['add'](_0x2e6dfd(()=>_0x3218ce[_0x84acfe(0x258)]()));let _0x300140=new _0x581410();_0x60bf95[_0x84acfe(0x22d)](_0xddf25f['message$'][_0x84acfe(0x139)](_0x1345b1=>{let _0x5adaca=Cn(_0x1345b1);_0x300140['next'](_0x5adaca);})),_0x60bf95[_0x84acfe(0x22d)](_0x2e6dfd(()=>_0x300140[_0x84acfe(0x258)]()));let _0x33a2de,_0x30d068=()=>{const _0x37b203=_0x84acfe;_0x3218ce[_0x37b203(0x309)](new Event(_0x37b203(0x158))),_0x22100f[_0x37b203(0x309)](new Event(_0x37b203(0x158))),_0x33a2de[_0x37b203(0x197)]();};return _0x33a2de={'memberID':'','close$':_0x22100f[_0x84acfe(0x231)](),'error$':_0x3218ce[_0x84acfe(0x231)](),'open$':_0xddf25f[_0x84acfe(0x17e)],'message$':_0x300140[_0x84acfe(0x231)](),'send':_0x396be7=>{const _0x3c4a73=_0x84acfe;if(_0x396be7[_0x3c4a73(0x28f)]===_0x245e97[_0x3c4a73(0x312)]){if(_0x396be7['data']['eventID']===_0x590a79[_0x3c4a73(0x19d)]){this[_0x3c4a73(0x132)](_0x33a2de,_0x396be7[_0x3c4a73(0x37f)])['catch'](_0x29c074=>{const _0x54c120=_0x3c4a73;this[_0x54c120(0xf1)][_0x54c120(0x20b)](_0x29c074),_0x30d068();});return;}if(_0x396be7['data'][_0x3c4a73(0x321)]===_0x590a79['FETCH_MISSING']){let _0x594940=_0x396be7[_0x3c4a73(0x37f)];this[_0x3c4a73(0x1b3)](_0x594940)[_0x3c4a73(0x220)](_0x1c0500=>{const _0x2ad9e0=_0x3c4a73;_0x300140[_0x2ad9e0(0x309)]({'cmd':_0x245e97[_0x2ad9e0(0x2e7)],'code':_0x1ebaa9['OK'],'routeKey':_0x594940[_0x2ad9e0(0x37f)][_0x2ad9e0(0x1bc)],'routeType':'','data':{'eventID':_0x590a79[_0x2ad9e0(0x115)],'data':{'changesets':_0x1c0500}}});})[_0x3c4a73(0x2c8)](_0x4205e0=>{const _0x30fda9=_0x3c4a73;this[_0x30fda9(0xf1)][_0x30fda9(0x20b)](_0x4205e0),_0x30d068();});return;}}_0xddf25f['send'](wn(_0x396be7));},'close':()=>{const _0x1c1361=_0x84acfe;_0xddf25f['close'](),_0x60bf95[_0x1c1361(0x2c4)]();}},_0x33a2de;}async[_0x17ca27(0x132)](_0x5ea0c2,_0x236e82){const _0x30a4b8=_0x17ca27;var _0x5cd497;let {unitType:_0x1f31c4,unitID:_0x484d72,changeset:_0x4a5667}=_0x236e82['data'],_0x1436c9={'unitID':_0x484d72,'memberID':_0x5ea0c2[_0x30a4b8(0x32e)],'type':_0x1f31c4,'changeset':_0x58d805(_0x4a5667)},_0x88a96d=this[_0x30a4b8(0x257)][_0x30a4b8(0x35e)](L),_0x1083b7=En((_0x5cd497=_0x88a96d==null?void 0x0:_0x88a96d['collabSubmitChangesetUrl'])==null?_0x30a4b8(0x161):_0x5cd497,_0x1f31c4,_0x484d72);try{await this[_0x30a4b8(0x371)][_0x30a4b8(0x247)](_0x1083b7,{'body':_0x1436c9});}catch(_0xb4e15){throw this[_0x30a4b8(0xf1)][_0x30a4b8(0x20b)](_0x30a4b8(0x102),_0x30a4b8(0x355)),_0xb4e15;}}async[_0x17ca27(0x1b3)](_0x5d54ea){const _0x46c8ab=_0x17ca27;let {unitID:_0x54cbb9,from:_0x5bb518,to:_0x31483f,unitType:_0x5e4939}=_0x5d54ea[_0x46c8ab(0x37f)];return(await this[_0x46c8ab(0x11e)][_0x46c8ab(0x25e)]({'metadata':void 0x0},{'unitID':_0x54cbb9,'type':_0x5e4939,'from':_0x5bb518,'to':_0x31483f}))[_0x46c8ab(0x2fa)][_0x46c8ab(0x316)](_0x4324c2=>((_0x4324c2[_0x46c8ab(0x351)]===null||_0x4324c2['mutations']===void 0x0)&&(_0x4324c2[_0x46c8ab(0x351)]=[]),_0x4324c2));}};Dn=V([B(0x0,_0x2ce47d(_0x3973c2)),B(0x1,_0x2ce47d(_0x23cb98)),B(0x2,_0x216b51),B(0x3,_0x5b6de8),B(0x4,_0x1cbd16)],Dn);const On=_0x366722('univer-pro.collaboration-client-adapter-service');function kn(_0x56f41c={}){const _0xa67375=_0x17ca27;return _0x56f41c[_0xa67375(0x377)]?{'resolveUnit':_0x56f41c[_0xa67375(0x377)]}:{'resolveUnit':_0x27966a=>({'target':{'unitId':_0x27966a[_0xa67375(0x232)],'unitType':_0x27966a[_0xa67375(0x16d)]}})};}function An(_0x5bd62a,_0x432512,_0x5b75b0){const _0x1a8a94=_0x17ca27;var _0x3640c4;let _0x4eeb7a=_0x5b75b0[_0x1a8a94(0x1be)]['endpoint'];if(_0x4eeb7a!=null&&_0x4eeb7a[_0x1a8a94(0x36b)]()==='')throw Error(_0x1a8a94(0x310));if(!_0x5b75b0['target']['unitId'])throw Error(_0x1a8a94(0x37b));return{'localUnitId':_0x5bd62a,'unitType':_0x432512,'target':{'endpoint':_0x4eeb7a,'unitId':_0x5b75b0[_0x1a8a94(0x1be)][_0x1a8a94(0x232)],'unitType':(_0x3640c4=_0x5b75b0[_0x1a8a94(0x1be)][_0x1a8a94(0x16d)])==null?_0x432512:_0x3640c4},'changeset':_0x5b75b0['changeset']};}let jn=class extends _0x340ee0{constructor(_0x23d4e5,_0x9db2c1,_0x2d457d,_0x3c0f3c,_0x2593f5,_0x1c6924,_0x5f4f1b){const _0x22d6f6=_0x17ca27;super(),this[_0x22d6f6(0x369)]=_0x23d4e5,this[_0x22d6f6(0xf1)]=_0x9db2c1,this['_configService']=_0x2d457d,this['_socketService']=_0x3c0f3c,this[_0x22d6f6(0x2e2)]=_0x2593f5,this[_0x22d6f6(0xe1)]=_0x1c6924,this[_0x22d6f6(0x130)]=_0x5f4f1b,R(this,'_sessions',new Map()),R(this,'_pendingSessions',new Map()),R(this,'_sessionChannels',new Map()),R(this,_0x22d6f6(0x332),new Map()),R(this,_0x22d6f6(0x2bf),this[_0x22d6f6(0x1ce)](void 0x0)[_0x22d6f6(0x2bf)][_0x22d6f6(0x231)]()),R(this,_0x22d6f6(0x10d),new _0x798182(0x0)),R(this,'status$',this['_status$'][_0x22d6f6(0x231)]()),this[_0x22d6f6(0x336)]();}[_0x17ca27(0x336)](){const _0x5751a0=_0x17ca27;this[_0x5751a0(0x130)]&&this[_0x5751a0(0x255)](this[_0x5751a0(0x130)][_0x5751a0(0x1cb)][_0x5751a0(0x139)](_0x1cb9bf=>{const _0x3d6009=_0x5751a0;_0x1cb9bf&&this['reconnect'](),_0x1cb9bf||this[_0x3d6009(0x332)]['forEach'](_0x113dc3=>this[_0x3d6009(0x147)](_0x113dc3));}));}[_0x17ca27(0x2c4)](){const _0xb2f987=_0x17ca27;super[_0xb2f987(0x2c4)](),this['_socketChannels'][_0xb2f987(0x11b)](_0x4b2923=>{const _0x161e05=_0xb2f987;var _0x5ebbd4,_0x1424bb;(_0x5ebbd4=_0x4b2923[_0x161e05(0x2c5)])==null||_0x5ebbd4[_0x161e05(0x20f)](),_0x4b2923[_0x161e05(0x2c5)]=null,this[_0x161e05(0x244)](_0x4b2923),this[_0x161e05(0x104)](_0x4b2923),this['_clearHeartbeatTimer'](_0x4b2923),(_0x1424bb=_0x4b2923[_0x161e05(0x2bf)][_0x161e05(0x156)]())==null||_0x1424bb[_0x161e05(0x197)](),_0x4b2923['socket$'][_0x161e05(0x258)]();}),this[_0xb2f987(0x332)]['clear'](),this[_0xb2f987(0x113)]['forEach'](_0x5974b1=>_0x5974b1['dispose']()),this[_0xb2f987(0x113)][_0xb2f987(0x2cf)](),this[_0xb2f987(0xdc)][_0xb2f987(0x2cf)](),this[_0xb2f987(0x10d)][_0xb2f987(0x258)]();}async[_0x17ca27(0x192)](_0x165dcc,_0x596c97){const _0x358d16=_0x17ca27;if(this['_sessions'][_0x358d16(0x112)](_0x165dcc))return this[_0x358d16(0x113)]['get'](_0x165dcc);let _0x53340=this[_0x358d16(0x180)]['get'](_0x165dcc);if(_0x53340)return _0x53340;let _0x248460=this[_0x358d16(0x28e)](_0x165dcc,_0x596c97);this[_0x358d16(0x180)]['set'](_0x165dcc,_0x248460);try{return await _0x248460;}finally{this['_pendingSessions']['delete'](_0x165dcc);}}async[_0x17ca27(0x28e)](_0x4dcf75,_0x170b05){const _0x41bd84=_0x17ca27;let _0x4b76e1=await this[_0x41bd84(0x1ed)](_0x4dcf75,_0x170b05),_0x342086=this[_0x41bd84(0x1ce)](_0x4b76e1[_0x41bd84(0x1be)][_0x41bd84(0x17d)]);this[_0x41bd84(0x25b)](_0x342086);let _0x1b531f=this[_0x41bd84(0x369)][_0x41bd84(0x211)](Ht,_0x4b76e1,_0x342086[_0x41bd84(0x2bf)][_0x41bd84(0x231)]());return this[_0x41bd84(0x113)][_0x41bd84(0x23a)](_0x4dcf75,_0x1b531f),this[_0x41bd84(0xdc)]['set'](_0x4dcf75,_0x342086[_0x41bd84(0x340)]),_0x1b531f;}[_0x17ca27(0x38c)](_0x5c01ea){const _0x2c7901=_0x17ca27;let _0x2f8217=this[_0x2c7901(0x113)][_0x2c7901(0x30b)](_0x5c01ea),_0x57ee0e=this['_sessionChannels'][_0x2c7901(0x30b)](_0x5c01ea);if(_0x2f8217&&(this[_0x2c7901(0x113)][_0x2c7901(0x1db)](_0x5c01ea),this[_0x2c7901(0xdc)][_0x2c7901(0x1db)](_0x5c01ea),_0x2f8217[_0x2c7901(0x197)]()),_0x57ee0e&&!this[_0x2c7901(0x263)](_0x57ee0e)){var _0x4a87e3;let _0x3b145e=this[_0x2c7901(0x332)][_0x2c7901(0x30b)](_0x57ee0e);_0x3b145e==null||(_0x4a87e3=_0x3b145e['socket$'][_0x2c7901(0x156)]())==null||_0x4a87e3[_0x2c7901(0x197)]();}}[_0x17ca27(0x31f)](){const _0x30533d=_0x17ca27;(this[_0x30533d(0x332)][_0x30533d(0x333)]?[...this[_0x30533d(0x332)]['values']()]:[this['_getSocketChannel'](void 0x0)])['forEach'](_0x58b453=>{const _0xe95a72=_0x30533d;_0x58b453[_0xe95a72(0x282)]=0x0,this[_0xe95a72(0x244)](_0x58b453),this[_0xe95a72(0x135)](_0x58b453);});}[_0x17ca27(0x244)](_0x540e75){const _0x422cfe=_0x17ca27;_0x540e75['retryConnectingTimer']!=null&&(clearTimeout(_0x540e75['retryConnectingTimer']),_0x540e75[_0x422cfe(0x1d4)]=null);}async['_createSocket'](_0x105250){const _0x1d504f=_0x17ca27;var _0x4709ef,_0x227292;let _0x20b5a3=this[_0x1d504f(0x257)][_0x1d504f(0x35e)](L),_0x518405=(_0x4709ef=(_0x227292=_0x105250['endpoint'])==null?_0x20b5a3==null?void 0x0:_0x20b5a3[_0x1d504f(0x319)]:_0x227292)==null?mt:_0x4709ef,_0x420d47=await this['_socketService']['createSocket'](_0x518405);return _0x105250[_0x1d504f(0x21c)]=_0x420d47,_0x420d47;}async[_0x17ca27(0x25b)](_0x51c201){const _0x437e00=_0x17ca27;try{var _0x255a09,_0x3d254c;let _0x4fe225=(_0x255a09=(_0x3d254c=_0x51c201[_0x437e00(0x2bf)][_0x437e00(0x156)]())==null?_0x51c201[_0x437e00(0x21c)]:_0x3d254c)==null?await this[_0x437e00(0x171)](_0x51c201):_0x255a09;if(_0x4fe225){var _0x506534;let _0x21f6f6=_0x4fe225['send'];_0x4fe225[_0x437e00(0x241)]=_0x2e52eb=>(_0x2e52eb[_0x437e00(0x28f)]!==_0x245e97['LEAVE']&&this[_0x437e00(0x308)](_0x51c201),_0x21f6f6[_0x437e00(0x242)](_0x4fe225,[_0x2e52eb])),(_0x506534=_0x51c201['socketMessageSubscription'])==null||_0x506534['unsubscribe'](),_0x51c201['socketMessageSubscription']=null,_0x51c201[_0x437e00(0x2c5)]=_0x4fe225[_0x437e00(0x1c7)][_0x437e00(0x139)](_0x5d4959=>this['_onMessage'](_0x51c201,_0x4fe225,_0x5d4959)),_0x4fe225[_0x437e00(0x2b5)][_0x437e00(0x2b8)](_0x20db95(0x1))[_0x437e00(0x139)](_0x180a0b=>this['_logService'][_0x437e00(0x20b)](_0x437e00(0x2c6),_0x180a0b)),_0x4fe225[_0x437e00(0x17e)][_0x437e00(0x2b8)](_0x20db95(0x1))[_0x437e00(0x139)](()=>{const _0x2f2251=_0x437e00;this[_0x2f2251(0x143)](_0x51c201,_0x4fe225);}),_0x4fe225['close$'][_0x437e00(0x2b8)](_0x20db95(0x1))[_0x437e00(0x139)](_0xc43596=>{const _0x3f085f=_0x437e00;this[_0x3f085f(0xf1)]['debug'](_0x3f085f(0x252),_0x3f085f(0x1de),_0xc43596),this[_0x3f085f(0x24f)](_0x51c201);});}}catch(_0x29cf2c){this[_0x437e00(0xf1)][_0x437e00(0x20b)](_0x29cf2c),this[_0x437e00(0x24f)](_0x51c201);}}[_0x17ca27(0x143)](_0x778f6e,_0x20e074){const _0x50b73d=_0x17ca27;this[_0x50b73d(0xf1)]['debug'](_0x50b73d(0x252),_0x50b73d(0x30d)),_0x20e074[_0x50b73d(0x241)]({'cmd':_0x245e97[_0x50b73d(0x2bb)]}),this[_0x50b73d(0x308)](_0x778f6e);}[_0x17ca27(0x147)](_0x5350e1){const _0xd1b87b=_0x17ca27;_0x5350e1['socketReady']=!0x1,_0x5350e1[_0xd1b87b(0x21c)]=null,this[_0xd1b87b(0x10d)]['next'](0x2),_0x5350e1[_0xd1b87b(0x2bf)][_0xd1b87b(0x309)](null),this['_clearTimeoutTimer'](_0x5350e1),this['_clearHeartbeatTimer'](_0x5350e1);}['_onConnectionFailed'](_0x158b40){const _0x386397=_0x17ca27;var _0xddf52d;this['_onOffline'](_0x158b40),this['_hasSessionsForEndpoint'](_0x158b40[_0x386397(0x340)])&&(_0x158b40[_0x386397(0x282)]<((_0xddf52d=this[_0x386397(0x257)]['getConfig'](_0x386397(0xe7)))==null?0x3:_0xddf52d)?(this[_0x386397(0x2e2)][_0x386397(0x2c1)]({'id':_0x386397(0x154)}),this[_0x386397(0x135)](_0x158b40)):this[_0x386397(0x2e2)][_0x386397(0x2c1)]({'id':_0x386397(0x2a5)}));}[_0x17ca27(0x135)](_0x3ce78c){const _0x1c49a3=_0x17ca27;var _0x181301;let _0x2d2d6e=_0x3ce78c['retryCount'],_0x504b36=this[_0x1c49a3(0x257)][_0x1c49a3(0x35e)](L),_0x76ecd3=_0x2d2d6e===0x0?0x0:((_0x181301=_0x504b36==null?void 0x0:_0x504b36[_0x1c49a3(0x2b9)])==null?0x4e20:_0x181301)*0x2**_0x2d2d6e;_0x3ce78c[_0x1c49a3(0x1d4)]=setTimeout(()=>{const _0x19930b=_0x1c49a3;clearTimeout(_0x3ce78c[_0x19930b(0x1d4)]),_0x3ce78c['retryConnectingTimer']=null,this['_tryEnsureSocket'](_0x3ce78c);},_0x76ecd3),_0x3ce78c[_0x1c49a3(0x282)]+=0x1;}async[_0x17ca27(0x1ed)](_0x52389a,_0x41167c){const _0x472d0d=_0x17ca27;return An(_0x52389a,_0x41167c,await this[_0x472d0d(0xe1)][_0x472d0d(0x377)]({'unitId':_0x52389a,'unitType':_0x41167c}));}['_onMessage'](_0x37cb32,_0x1d60ec,_0xc305d6){const _0x22c97d=_0x17ca27;let {cmd:_0x3c3850}=_0xc305d6;_0x3c3850===_0x245e97[_0x22c97d(0x2bb)]&&!_0x37cb32[_0x22c97d(0x182)]&&(_0x1d60ec[_0x22c97d(0x32e)]=_0xc305d6[_0x22c97d(0x37f)][_0x22c97d(0x32e)],_0x37cb32[_0x22c97d(0x2bf)]['next'](_0x1d60ec),this[_0x22c97d(0x10d)][_0x22c97d(0x309)](0x3),_0x37cb32[_0x22c97d(0x182)]=!0x0,_0x37cb32[_0x22c97d(0x21c)]=null),_0x3c3850===_0x245e97[_0x22c97d(0x26e)]&&this[_0x22c97d(0x104)](_0x37cb32),this[_0x22c97d(0x308)](_0x37cb32);}[_0x17ca27(0x263)](_0x23b743){const _0xef1639=_0x17ca27;return[...this['_sessionChannels'][_0xef1639(0x253)]()][_0xef1639(0x1af)](_0x5e559b=>_0x5e559b===_0x23b743);}[_0x17ca27(0x1ce)](_0x1a6cfa){const _0x5272b3=_0x17ca27;let _0x2a4141=_0x1a6cfa==null?'':_0x1a6cfa,_0x491b7d=this['_socketChannels']['get'](_0x2a4141);if(_0x491b7d)return _0x491b7d;let _0x4ed95e={'endpointKey':_0x2a4141,'endpoint':_0x1a6cfa,'socket$':new _0x798182(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels'][_0x5272b3(0x23a)](_0x2a4141,_0x4ed95e),_0x4ed95e;}[_0x17ca27(0x308)](_0x38375f){const _0x12925c=_0x17ca27;var _0x147bbc;this[_0x12925c(0x304)](_0x38375f),_0x38375f[_0x12925c(0x2d1)]=setTimeout(()=>this['_sendHeartbeat'](_0x38375f),(_0x147bbc=this[_0x12925c(0x257)][_0x12925c(0x35e)]('HEARTBEAT_INTERVAL'))==null?0x7530:_0x147bbc);}[_0x17ca27(0x1b9)](_0x143e2c){const _0x4860cb=_0x17ca27;_0x143e2c['socket$'][_0x4860cb(0x156)]()[_0x4860cb(0x241)]({'cmd':_0x245e97[_0x4860cb(0x26e)]}),this[_0x4860cb(0x17c)](_0x143e2c);}[_0x17ca27(0x17c)](_0x5daf56){const _0x293ecd=_0x17ca27;var _0x5bb0ad;_0x5daf56[_0x293ecd(0x388)]=setTimeout(()=>this[_0x293ecd(0x24f)](_0x5daf56),(_0x5bb0ad=this[_0x293ecd(0x257)][_0x293ecd(0x35e)](_0x293ecd(0x15c)))==null?vt:_0x5bb0ad);}[_0x17ca27(0x304)](_0x5ce469){const _0x362e59=_0x17ca27;_0x5ce469[_0x362e59(0x2d1)]!=null&&(clearTimeout(_0x5ce469['sendHeartbeatTimer']),_0x5ce469[_0x362e59(0x2d1)]=null);}['_clearTimeoutTimer'](_0x1c3c38){const _0x21a7d4=_0x17ca27;_0x1c3c38[_0x21a7d4(0x388)]!=null&&(clearTimeout(_0x1c3c38[_0x21a7d4(0x388)]),_0x1c3c38[_0x21a7d4(0x388)]=null);}};jn=V([B(0x0,_0x2ce47d(_0x3973c2)),B(0x1,_0x5b6de8),B(0x2,_0x216b51),B(0x3,Tn),B(0x4,_0x2ce47d(z)),B(0x5,On),B(0x6,_0x1bb6a9(Sn))],jn);let Mn=class extends _0x308f48{constructor(_0x5e6413,_0x1ea756,_0x2f13a4,_0x17e44c){const _0x49f9f5=_0x17ca27;var _0x10e1ba;super(),this[_0x49f9f5(0x369)]=_0x5e6413,this['_collabSessionService']=_0x1ea756,this['_configService']=_0x2f13a4,this[_0x49f9f5(0x22c)]=_0x17e44c,R(this,'_entities',new Map()),R(this,_0x49f9f5(0x14c),new _0x581410()),R(this,'entityInit$',this['_entityInit$'][_0x49f9f5(0x231)]()),((_0x10e1ba=this[_0x49f9f5(0x257)]['getConfig']('collaboration-client.config'))==null?void 0x0:_0x10e1ba[_0x49f9f5(0x216)])!==!0x1&&this['_init']();}[_0x17ca27(0x2c4)](){const _0x112733=_0x17ca27;super[_0x112733(0x2c4)](),this['_entities'][_0x112733(0x11b)](_0x5f578f=>_0x5f578f[_0x112733(0x2c4)]()),this[_0x112733(0x30c)][_0x112733(0x2cf)]();}[_0x17ca27(0x2a3)](_0x153fdb){const _0x33b3e8=_0x17ca27;var _0x4abb37;return(_0x4abb37=this['_entities'][_0x33b3e8(0x30b)](_0x153fdb))==null?null:_0x4abb37;}[_0x17ca27(0x22a)](_0x4b61d0){const _0x3ee20c=_0x17ca27;let _0xf48d95=this[_0x3ee20c(0x2a3)](_0x4b61d0);return _0xf48d95?_0x2c4a15(_0xf48d95):this[_0x3ee20c(0x14c)][_0x3ee20c(0x2b8)](_0xca999c(_0x2f99b6=>_0x2f99b6[_0x3ee20c(0x1bc)]===_0x4b61d0));}[_0x17ca27(0xec)](_0x38000e){return _0x51bb88(this['getCollabEntity$'](_0x38000e)['pipe'](_0x26cc28(()=>void 0x0)));}[_0x17ca27(0xf7)](){const _0x1ef4ab=_0x17ca27;this[_0x1ef4ab(0x22c)][_0x1ef4ab(0x10f)](_0x20b9c7[_0x1ef4ab(0x20d)])[_0x1ef4ab(0x2b8)](_0x29b3c1(this[_0x1ef4ab(0x10e)]),_0x2fc25e(0x10))[_0x1ef4ab(0x139)](async _0x3d0ac9=>{const _0x5b8111=_0x1ef4ab;let _0x128a1f=_0x3d0ac9['unit'][_0x5b8111(0x1fc)](),_0x2ae766=await this[_0x5b8111(0x30f)](_0x128a1f,_0x20b9c7['UNIVER_SHEET']);this['_entities'][_0x5b8111(0x23a)](_0x128a1f,_0x2ae766);}),this[_0x1ef4ab(0x22c)]['getTypeOfUnitAdded$'](_0x20b9c7['UNIVER_DOC'])['pipe'](_0x29b3c1(this[_0x1ef4ab(0x10e)]),_0x2fc25e(0x10))[_0x1ef4ab(0x2b8)](_0xca999c(_0x3a57dc=>!_0x3a57dc[_0x1ef4ab(0x36e)][_0x1ef4ab(0x1fc)]()[_0x1ef4ab(0x114)]('__')))[_0x1ef4ab(0x139)](async _0x3847dd=>{const _0x11bce9=_0x1ef4ab;let _0x12163d=_0x3847dd[_0x11bce9(0x36e)][_0x11bce9(0x1fc)](),_0x44c8c6=await this['_startCollaboration'](_0x12163d,_0x20b9c7['UNIVER_DOC']);this[_0x11bce9(0x30c)]['set'](_0x12163d,_0x44c8c6);}),this[_0x1ef4ab(0x22c)]['getTypeOfUnitAdded$'](_0x20b9c7['UNIVER_SLIDE'])['pipe'](_0x29b3c1(this['dispose$']),_0x2fc25e(0x10))[_0x1ef4ab(0x139)](async _0xc4482d=>{const _0x10d177=_0x1ef4ab;let _0x98e4ca=_0xc4482d['unit'][_0x10d177(0x1fc)](),_0xa80b5=await this[_0x10d177(0x30f)](_0x98e4ca,_0x20b9c7['UNIVER_SLIDE']);this['_entities'][_0x10d177(0x23a)](_0x98e4ca,_0xa80b5);}),this[_0x1ef4ab(0x22c)]['getTypeOfUnitAdded$'](_0x20b9c7[_0x1ef4ab(0x306)])[_0x1ef4ab(0x2b8)](_0x29b3c1(this[_0x1ef4ab(0x10e)]),_0x2fc25e(0x10))[_0x1ef4ab(0x139)](async _0x12a1c7=>{const _0x20eef6=_0x1ef4ab;let _0x2200b2=_0x12a1c7[_0x20eef6(0x36e)]['getUnitId'](),_0x26215b=await this[_0x20eef6(0x30f)](_0x2200b2,_0x20b9c7['UNIVER_BOARD']);this[_0x20eef6(0x30c)][_0x20eef6(0x23a)](_0x2200b2,_0x26215b);}),this[_0x1ef4ab(0x22c)][_0x1ef4ab(0x10f)](_0x20b9c7[_0x1ef4ab(0x2e5)])[_0x1ef4ab(0x2b8)](_0x29b3c1(this['dispose$']),_0x2fc25e(0x10))[_0x1ef4ab(0x139)](async _0x5f3c7d=>{const _0x3c8347=_0x1ef4ab;let _0x3a62f9=_0x5f3c7d[_0x3c8347(0x36e)][_0x3c8347(0x1fc)](),_0x181df7=await this[_0x3c8347(0x30f)](_0x3a62f9,_0x20b9c7[_0x3c8347(0x2e5)]);this['_entities']['set'](_0x3a62f9,_0x181df7);}),_0xd14352(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x20b9c7['UNIVER_SHEET']),this[_0x1ef4ab(0x22c)]['getTypeOfUnitDisposed$'](_0x20b9c7[_0x1ef4ab(0x1aa)]),this['_univerInstanceService'][_0x1ef4ab(0x300)](_0x20b9c7[_0x1ef4ab(0x1e6)]),this[_0x1ef4ab(0x22c)][_0x1ef4ab(0x300)](_0x20b9c7[_0x1ef4ab(0x306)]),this[_0x1ef4ab(0x22c)][_0x1ef4ab(0x300)](_0x20b9c7[_0x1ef4ab(0x2e5)]))[_0x1ef4ab(0x2b8)](_0x29b3c1(this['dispose$']))[_0x1ef4ab(0x139)](_0x496618=>{const _0x24687f=_0x1ef4ab;let _0x7a6a62=_0x496618['getUnitId'](),_0x178402=this[_0x24687f(0x30c)][_0x24687f(0x30b)](_0x7a6a62);_0x178402&&(_0x178402[_0x24687f(0x2c4)](),this[_0x24687f(0x30c)][_0x24687f(0x1db)](_0x7a6a62));});}async[_0x17ca27(0x30f)](_0x24b962,_0x547eaa){const _0xb28197=_0x17ca27;let _0x50a237=await this[_0xb28197(0x34f)][_0xb28197(0x192)](_0x24b962),_0x3ce2ee=this[_0xb28197(0x369)][_0xb28197(0x211)](this['_getCtorByUniverInstanceType'](_0x547eaa),_0x24b962,_0x547eaa,_0x50a237);return await _0x3ce2ee['init'](),this[_0xb28197(0x14c)][_0xb28197(0x309)](_0x3ce2ee),_0x3ce2ee;}[_0x17ca27(0x339)](_0x15a71c){const _0x5e831a=_0x17ca27;switch(_0x15a71c){case _0x20b9c7[_0x5e831a(0x1aa)]:return _n;case _0x20b9c7[_0x5e831a(0x20d)]:return yn;case _0x20b9c7[_0x5e831a(0x1e6)]:return bn;case _0x20b9c7['UNIVER_BOARD']:return xn;case _0x20b9c7['UNIVER_BASE']:return vn;default:throw Error(_0x5e831a(0x1f8)+_0x15a71c);}}};Mn=V([B(0x0,_0x2ce47d(_0x3973c2)),B(0x1,_0x2ce47d(jn)),B(0x2,_0x216b51),B(0x3,_0x778808)],Mn);var Nn=_0x17ca27(0x1b8),Pn=_0x17ca27(0x1e4);let Fn=class extends _0x340ee0{constructor(_0x10dda1,_0x4defed){const _0x1dc1bd=_0x17ca27;super(),this[_0x1dc1bd(0x22c)]=_0x10dda1,this['_configService']=_0x4defed,this[_0x1dc1bd(0xf7)]();}[_0x17ca27(0xf7)](){const _0x4fbb87=_0x17ca27;this[_0x4fbb87(0x255)](this[_0x4fbb87(0x22c)][_0x4fbb87(0x18f)][_0x4fbb87(0x139)](()=>{const _0x317518=_0x4fbb87;var _0x5b6a07;let _0x28e806=this[_0x317518(0x22c)][_0x317518(0x324)](),_0x459d27=(_0x5b6a07=this[_0x317518(0x257)][_0x317518(0x35e)](_0x317518(0x2e8)))==null?_0x317518(0x109):_0x5b6a07;_0x28e806 instanceof _0x4bb70e&&(_0x459d27=_0x28e806[_0x317518(0x119)]),document[_0x317518(0xff)]=_0x459d27;}));}};Fn=V([B(0x0,_0x778808),B(0x1,_0x216b51)],Fn);let In=function(_0x19fb04){const _0x3f9d92=_0x17ca27;return _0x19fb04[_0x3f9d92(0x10b)]=_0x3f9d92(0x10b),_0x19fb04[_0x3f9d92(0x234)]='UUID',_0x19fb04[_0x3f9d92(0x2e4)]=_0x3f9d92(0x2e4),_0x19fb04;}({});const Ln=_0x366722(_0x17ca27(0x1c8));let Rn=class{constructor(_0x285bbe,_0x4d6f91,_0x50c9c5){const _0x53f3e5=_0x17ca27;this[_0x53f3e5(0x371)]=_0x285bbe,this[_0x53f3e5(0x257)]=_0x4d6f91,this[_0x53f3e5(0x22c)]=_0x50c9c5;}[_0x17ca27(0x2dc)](){const _0x53468f=_0x17ca27;var _0x7d8adc;return(_0x7d8adc=this[_0x53468f(0x16f)]()[_0x53468f(0x195)])==null?{}:_0x7d8adc;}async[_0x17ca27(0x386)](_0x1bd7ed){const _0x36a8d3=_0x17ca27;let _0x4a1b3e=this[_0x36a8d3(0x2dc)]();if(zn(_0x1bd7ed,_0x4a1b3e),_0x4a1b3e[_0x36a8d3(0x10a)])return _0x4a1b3e['upload'](_0x1bd7ed);let _0x8de365=await this['_upload'](_0x1bd7ed);return{'id':_0x8de365,'name':_0x1bd7ed[_0x36a8d3(0x119)],'mimeType':_0x1bd7ed[_0x36a8d3(0x1ba)],'size':_0x1bd7ed[_0x36a8d3(0x333)],'sourceType':_0x36a8d3(0x234),'source':_0x8de365};}async[_0x17ca27(0x298)](_0x77082d){const _0x27231f=_0x17ca27;let _0xf8c02f=this[_0x27231f(0x22c)][_0x27231f(0x324)](),_0x3b8666=_0xf8c02f==null?void 0x0:_0xf8c02f[_0x27231f(0x1fc)]();if(!_0x3b8666)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x227dd4=new FormData();_0x227dd4[_0x27231f(0x1b4)](_0x27231f(0x133),_0x77082d);let _0x595933=this['_getUploadFileURL']()+'?size='+_0x77082d[_0x27231f(0x333)][_0x27231f(0x287)]()+_0x27231f(0x250)+_0x378902[_0x27231f(0x2ac)]+_0x27231f(0x11f)+encodeURIComponent(_0x3b8666),_0x546dee=(await this[_0x27231f(0x371)][_0x27231f(0x247)](_0x595933,{'body':_0x227dd4}))[_0x27231f(0x210)][_0x27231f(0x293)];if(typeof _0x546dee!=_0x27231f(0x18a)||!_0x546dee)throw Error(_0x27231f(0x32a));return _0x546dee;}[_0x17ca27(0x291)](){const _0x4ecfc7=_0x17ca27;var _0x2851eb;return(_0x2851eb=this[_0x4ecfc7(0x16f)]()[_0x4ecfc7(0x383)])==null?_0x4ecfc7(0x137):_0x2851eb;}[_0x17ca27(0x16f)](){const _0x29c280=_0x17ca27;var _0x4f71c6;return(_0x4f71c6=this['_configService'][_0x29c280(0x35e)]('collaboration-client.config'))==null?{}:_0x4f71c6;}};Rn=V([B(0x0,_0x2ce47d(_0x23cb98)),B(0x1,_0x2ce47d(_0x216b51)),B(0x2,_0x2ce47d(_0x778808))],Rn);function zn(_0x56c0c8,_0x1dcbc3){const _0x8e0426=_0x17ca27;var _0x2fc3e6;if(_0x1dcbc3[_0x8e0426(0x162)]!=null&&_0x56c0c8[_0x8e0426(0x333)]>_0x1dcbc3['maxSize'])throw Error(_0x8e0426(0x272));if((_0x2fc3e6=_0x1dcbc3[_0x8e0426(0x361)])!=null&&_0x2fc3e6['length']&&!_0x1dcbc3[_0x8e0426(0x361)][_0x8e0426(0x1af)](_0x554971=>_0x56c0c8[_0x8e0426(0x1ba)]===_0x554971||_0x56c0c8['name'][_0x8e0426(0x21d)](_0x554971)||_0x554971['endsWith']('/*')&&_0x56c0c8[_0x8e0426(0x1ba)][_0x8e0426(0x114)](_0x554971['slice'](0x0,-0x1))))throw Error(_0x8e0426(0x326));}let Bn=class{constructor(_0x4a5f39,_0x59cfdf,_0x312c9a){const _0x49cc6f=_0x17ca27;this[_0x49cc6f(0x257)]=_0x4a5f39,this[_0x49cc6f(0x371)]=_0x59cfdf,this[_0x49cc6f(0x281)]=_0x312c9a,this[_0x49cc6f(0x27d)]();}[_0x17ca27(0x27d)](){const _0x3c2fc8=_0x17ca27;this[_0x3c2fc8(0x371)][_0x3c2fc8(0x1b2)]({'priority':0x1,'interceptor':(_0x2bc58f,_0x46b0c3)=>_0x46b0c3(_0x2bc58f)[_0x3c2fc8(0x2b8)](_0x9c8b14(async _0x3a9988=>{const _0x4b406a=_0x3c2fc8;let _0x2de4fe=_0x3a9988;if(_0x2de4fe['status']===0x191){if(typeof window>'u')throw Error(_0x4b406a(0x134));if(window[_0x4b406a(0x168)](this[_0x4b406a(0x281)]['t'](_0x4b406a(0x26a)))){let _0x3e39a9=window[_0x4b406a(0x1c0)](window['location'][_0x4b406a(0x1ca)]);window[_0x4b406a(0x315)][_0x4b406a(0x1ca)]=this[_0x4b406a(0x2ab)]()+'?url='+_0x3e39a9;}}return _0x2de4fe;}))});}[_0x17ca27(0x2ab)](){const _0x48cbe8=_0x17ca27;var _0x467edc;let _0x3f1e55=this['_configService'][_0x48cbe8(0x35e)](L);return(_0x467edc=_0x3f1e55==null?void 0x0:_0x3f1e55[_0x48cbe8(0x1a5)])==null?_0x48cbe8(0x374):_0x467edc;}};Bn=V([B(0x0,_0x216b51),B(0x1,_0x2ce47d(_0x23cb98)),B(0x2,_0x2ce47d(_0xed34f6))],Bn);let Vn=class extends _0x340ee0{constructor(_0x27e39d,_0x37d610){const _0x2acb42=_0x17ca27;super(),this[_0x2acb42(0x2ae)]=_0x27e39d,this['_configService']=_0x37d610,R(this,'_cfgEnableObjInherit',!0x1),this[_0x2acb42(0x246)]();}['_initMergeInterceptor'](){const _0x9a9739=_0x17ca27;let _0x49dac0=this;this['disposeWithMe'](this[_0x9a9739(0x2ae)][_0x9a9739(0x1b2)]({'priority':0x3e7,'interceptor':_0x3ff850({'isMatch'(_0x3098a8){const _0x4873d8=_0x9a9739;var _0x53aeaf;if(_0x3098a8[_0x4873d8(0x29b)]===_0x4873d8(0x1fa)&&(_0x53aeaf=_0x3098a8[_0x4873d8(0x172)])!=null&&_0x53aeaf['body']){let {objectID:_0x3d2fe7,objectType:_0x3e8d31}=_0x3098a8[_0x4873d8(0x172)][_0x4873d8(0x210)]||{};if(!_0x3d2fe7||_0x3e8d31===void 0x0)return!0x1;let _0x280616=_0x49dac0[_0x4873d8(0x21e)]()+'/'+_0x3e8d31+_0x4873d8(0x2e9)+_0x3d2fe7+'/allowed';if(_0x3098a8[_0x4873d8(0x296)]===_0x280616)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4b230e){const _0x565634=_0x9a9739;var _0x9d5b4e;return(_0x9d5b4e=_0x4b230e[_0x565634(0x172)])==null?void 0x0:_0x9d5b4e['body'];},'mergeParamsToRequest'(_0x2fb612,_0x1205f7){const _0x509ae9=_0x9a9739;let _0x559114=_0x49dac0[_0x509ae9(0x21e)]()+_0x509ae9(0x163),_0x1e4078=_0x2fb612[_0x509ae9(0x1f1)]((_0x58249a,_0x5511e3)=>{const _0x1ef7d4=_0x509ae9;let {unitID:_0x1cc5ee,objectID:_0x15b171,objectType:_0x2baac0,actions:_0x15c663}=_0x5511e3;return _0x58249a[_0x1cc5ee]||(_0x58249a[_0x1cc5ee]={}),_0x58249a[_0x1cc5ee][_0x15b171]||(_0x58249a[_0x1cc5ee][_0x15b171]={'objectID':_0x15b171,'objectType':_0x2baac0,'actions':[]}),_0x58249a[_0x1cc5ee][_0x15b171][_0x1ef7d4(0x288)][_0x1ef7d4(0x1b5)](..._0x15c663),_0x58249a;},{}),_0x576d87=[];for(let _0x3e1cc0 in _0x1e4078)for(let _0x439df2 in _0x1e4078[_0x3e1cc0]){let {actions:_0x122a99,objectType:_0x4f70c2}=_0x1e4078[_0x3e1cc0][_0x439df2],_0x455e9a=[...new Set(_0x122a99)];_0x576d87[_0x509ae9(0x1b5)]({'unitID':_0x3e1cc0,'objectID':_0x439df2,'objectType':_0x4f70c2,'actions':_0x455e9a});}return new _0x1ff91a(_0x509ae9(0x1fa),_0x559114,{'headers':_0x1205f7['headers'],'withCredentials':_0x1205f7['withCredentials'],'responseType':_0x1205f7[_0x509ae9(0x175)],'body':{'requests':_0x576d87}});}},{'distributeResult'(_0x10f10f,_0x5bd2fd){const _0x32f425=_0x9a9739;let {objectActions:_0x4d4a0b}=_0x10f10f;return _0x5bd2fd[_0x32f425(0x316)](_0x5ab2b6=>{const _0x41f3cb=_0x32f425;let {unitID:_0x2df3af,objectID:_0x4653ae,actions:_0x4f3963}=_0x5ab2b6,_0x1fec4d=_0x4d4a0b[_0x41f3cb(0x385)](_0x588987=>_0x588987[_0x41f3cb(0x1bc)]===_0x2df3af&&_0x588987[_0x41f3cb(0x295)]===_0x4653ae);return{'config':_0x5ab2b6,'result':{'actions':_0x4f3963[_0x41f3cb(0x316)](_0x5be286=>_0x1fec4d==null?void 0x0:_0x1fec4d[_0x41f3cb(0x288)][_0x41f3cb(0x385)](_0x42788a=>_0x42788a[_0x41f3cb(0x238)]===_0x5be286))[_0x41f3cb(0x23d)](_0x131930=>!!_0x131930),'error':_0x10f10f[_0x41f3cb(0x20b)]}};});}})}));}['_getAPIPrefixPath'](){const _0x2bcaf3=_0x17ca27;var _0x4d4ff2;let _0x2e0f2e=this[_0x2bcaf3(0x257)]['getConfig'](L);return(_0x4d4ff2=_0x2e0f2e==null?void 0x0:_0x2e0f2e[_0x2bcaf3(0x2eb)])==null?_0x2bcaf3(0x237):_0x4d4ff2;}async[_0x17ca27(0x1a7)](_0x1338c4){const _0x19b5a2=_0x17ca27;let _0x4de918=this[_0x19b5a2(0x21e)]()+'/'+_0x1338c4[_0x19b5a2(0x226)]+'/object';return(await this[_0x19b5a2(0x2ae)][_0x19b5a2(0x247)](_0x4de918,{'body':_0x1338c4}))['body'][_0x19b5a2(0x295)]||'';}async['list'](_0x535ba7){const _0x25df43=_0x17ca27;let _0x1dbd18=this[_0x25df43(0x21e)]()+_0x25df43(0x240);return(await this['_HTTPService'][_0x25df43(0x247)](_0x1dbd18,{'body':_0x535ba7}))[_0x25df43(0x210)][_0x25df43(0x243)];}async[_0x17ca27(0x1d9)](_0xf0c229){const _0x227fc4=_0x17ca27;var _0x17338e;let _0x273f11=this[_0x227fc4(0x21e)]()+'/'+_0xf0c229[_0x227fc4(0x226)]+_0x227fc4(0x2e9)+_0xf0c229[_0x227fc4(0x295)],_0x92f466=await this[_0x227fc4(0x2ae)][_0x227fc4(0x38a)](_0x273f11,{'body':_0xf0c229});if((_0x92f466==null||(_0x17338e=_0x92f466[_0x227fc4(0x210)])==null||(_0x17338e=_0x17338e[_0x227fc4(0x20b)])==null?void 0x0:_0x17338e['code'])!==0x1)throw Error(_0x227fc4(0x2a2));}async[_0x17ca27(0x27c)](_0x4b8c47){const _0x41c50e=_0x17ca27;let _0x2b275a=this[_0x41c50e(0x21e)]()+'/'+_0x4b8c47[_0x41c50e(0x226)]+'/object/'+_0x4b8c47[_0x41c50e(0x295)]+_0x41c50e(0x265);return(await this[_0x41c50e(0x2ae)][_0x41c50e(0x247)](_0x2b275a,{'body':_0x4b8c47}))[_0x41c50e(0x210)]['actions'];}async[_0x17ca27(0x1a6)](_0x154186){const _0x3d70b8=_0x17ca27;let _0xa3f91f=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this['_HTTPService'][_0x3d70b8(0x247)](_0xa3f91f,{'body':{'requests':_0x154186}}))[_0x3d70b8(0x210)][_0x3d70b8(0x228)];}async[_0x17ca27(0x323)](_0x55dd54){const _0x40a159=_0x17ca27;let _0x327413=this[_0x40a159(0x21e)]()+'/'+_0x55dd54['objectType']+'/role',_0x105d55=await this[_0x40a159(0x2ae)][_0x40a159(0x247)](_0x327413,{'body':_0x55dd54});return{'roles':_0x105d55[_0x40a159(0x210)][_0x40a159(0x1d8)],'actions':_0x105d55[_0x40a159(0x210)][_0x40a159(0x288)]};}async[_0x17ca27(0x2d8)](_0x17574d){const _0x19d6e0=_0x17ca27;let _0x544731=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x19d6e0(0x2ae)]['delete'](_0x544731,{'params':{'collaboratorID':_0x17574d['collaboratorID'],'objectID':_0x17574d[_0x19d6e0(0x295)],'unitID':_0x17574d['unitID']}});}async[_0x17ca27(0x190)](_0x449e7b){const _0x5d1c4e=_0x17ca27;let _0x21a3d1=this[_0x5d1c4e(0x21e)]()+_0x5d1c4e(0x313);await this[_0x5d1c4e(0x2ae)][_0x5d1c4e(0x284)](_0x21a3d1,{'body':_0x449e7b});}async[_0x17ca27(0x144)](_0xb0b2e8){const _0x25e753=_0x17ca27;let _0x1b9139=this[_0x25e753(0x21e)]()+'/collaborator';await this[_0x25e753(0x2ae)][_0x25e753(0x247)](_0x1b9139,{'body':_0xb0b2e8});}async[_0x17ca27(0x21f)](_0x48e9a3){const _0x409dcf=_0x17ca27;var _0x26805b;let _0x543648=this[_0x409dcf(0x21e)]()+_0x409dcf(0x313),_0x534611=await this[_0x409dcf(0x2ae)][_0x409dcf(0x30b)](_0x543648,{'params':{'objectID':_0x48e9a3[_0x409dcf(0x295)],'unitID':_0x48e9a3[_0x409dcf(0x1bc)]}});return this[_0x409dcf(0x14e)]((_0x26805b=_0x534611[_0x409dcf(0x210)][_0x409dcf(0x15f)])==null?!0x1:_0x26805b),_0x534611[_0x409dcf(0x210)][_0x409dcf(0x31c)];}async['putCollaborators'](_0x14af34){const _0x44505b=_0x17ca27;let _0x54ac39=this[_0x44505b(0x21e)]()+_0x44505b(0x313);await this[_0x44505b(0x2ae)]['put'](_0x54ac39,{'body':_0x14af34});}[_0x17ca27(0x14e)](_0x2632b1){const _0x49128d=_0x17ca27;this[_0x49128d(0x37c)]=_0x2632b1;}[_0x17ca27(0x25c)](){const _0x7a3438=_0x17ca27;return this[_0x7a3438(0x37c)];}};Vn=V([B(0x0,_0x2ce47d(_0x23cb98)),B(0x1,_0x2ce47d(_0x216b51))],Vn);function Hn(_0x174dd0){const _0x1504c2=_0x17ca27;let _0x1979cb=atob(_0x174dd0),_0x329ea7=new Uint8Array(_0x1979cb[_0x1504c2(0x1dc)]);for(let _0x20eab0=0x0;_0x20eab0<_0x1979cb[_0x1504c2(0x1dc)];_0x20eab0++)_0x329ea7[_0x20eab0]=_0x1979cb[_0x1504c2(0x201)](_0x20eab0);return _0x329ea7;}function Un(_0x1a4bdf){const _0x18b85b=_0x17ca27;let _0x374435='';for(let _0x248fa1=0x0;_0x248fa1<_0x1a4bdf[_0x18b85b(0x1dc)];_0x248fa1++)_0x374435+=String[_0x18b85b(0x305)](_0x1a4bdf[_0x248fa1]);return btoa(_0x374435);}function Wn(_0x351b93,_0x422c91){const _0x5bf3df=_0x17ca27;let _0xf760d4=Hn(_0x422c91),_0x1e3bde=_0xe2f692(0x10);return Un(_0x378420(_0x1e3bde,_0x4b54ab(_0xf760d4,_0x1e3bde)[_0x5bf3df(0x170)](_0x3ea947(_0x351b93))));}function Gn(){const _0x255227=_0x17ca27;let _0x5e424e=_0x343bfa()[_0x255227(0x2d3)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x5e424e){let _0x178b97={'time':Math['floor'](Date[_0x255227(0x2bc)]()/0x3e8),'domain':location[_0x255227(0xf5)]};return Wn(JSON[_0x255227(0x2d2)](_0x178b97),_0x5e424e);}}let Kn=class{constructor(_0x5695d6){const _0x71b68f=_0x17ca27;this[_0x71b68f(0x371)]=_0x5695d6,this['_initRequestHeader']();}['_initRequestHeader'](){const _0x30cb42=_0x17ca27;this['_httpService'][_0x30cb42(0x1b2)]({'interceptor':(_0x32360e,_0x2c2d18)=>{const _0x3a4535=_0x30cb42;let _0x38703d=Gn();return _0x38703d&&_0x32360e['headers']['set'](_0x3a4535(0x1d5),_0x38703d),_0x2c2d18(_0x32360e);}});}};Kn=V([B(0x0,_0x2ce47d(_0x23cb98))],Kn);let qn=class extends _0x308f48{constructor(_0x2e2601,_0x514824,_0x18d48b){const _0x45d925=_0x17ca27;super(),this[_0x45d925(0xf1)]=_0x2e2601,this[_0x45d925(0x2f5)]=_0x514824,this[_0x45d925(0x28c)]=_0x18d48b,R(this,_0x45d925(0x1e3),new _0x798182(null)),R(this,_0x45d925(0x275),new _0x581410()),R(this,_0x45d925(0x279),this[_0x45d925(0x1e3)][_0x45d925(0x231)]()),R(this,_0x45d925(0x14d),this[_0x45d925(0x275)][_0x45d925(0x231)]());}[_0x17ca27(0x2c4)](){const _0x3d6b20=_0x17ca27;super[_0x3d6b20(0x2c4)](),this[_0x3d6b20(0x275)][_0x3d6b20(0x258)](),this['_unitInfo$']['complete']();}async[_0x17ca27(0x20e)](_0x47c46c,_0x340141,_0x4b19d5,_0x5004b8){const _0x16a188=_0x17ca27;this[_0x16a188(0x1e3)][_0x16a188(0x309)]({'unitId':_0x47c46c,'type':_0x340141,'subUnitId':_0x5004b8});let _0x330001=null;switch(_0x340141){case _0x20b9c7[_0x16a188(0x20d)]:_0x330001=await this[_0x16a188(0x2f5)][_0x16a188(0x20c)](_0x47c46c,_0x4b19d5,void 0x0,{'initialSubUnitId':_0x5004b8});break;case _0x20b9c7[_0x16a188(0x1aa)]:_0x330001=await this[_0x16a188(0x2f5)][_0x16a188(0x239)](_0x47c46c,_0x4b19d5);break;case _0x20b9c7[_0x16a188(0x1e6)]:_0x330001=await this[_0x16a188(0x2f5)]['loadSlide'](_0x47c46c,_0x4b19d5);break;case _0x20b9c7[_0x16a188(0x306)]:_0x330001=await this[_0x16a188(0x2f5)][_0x16a188(0x230)](_0x47c46c,_0x4b19d5);break;case _0x20b9c7[_0x16a188(0x2e5)]:_0x330001=await this[_0x16a188(0x2f5)][_0x16a188(0x1ea)](_0x47c46c,_0x4b19d5);break;default:this['_logService'][_0x16a188(0x20b)]('[DataLoaderService]',_0x16a188(0x149));break;}return _0x330001&&this['_unitLoaded$'][_0x16a188(0x309)](_0x330001),_0x330001;}async[_0x17ca27(0x335)](_0x1d101a,_0x59eda8,_0x2cd157){const _0xf09913=_0x17ca27;var _0x25d45f;this[_0xf09913(0x1e3)][_0xf09913(0x309)]({'unitId':_0x1d101a,'type':_0x59eda8,'subUnitId':_0x2cd157});let _0x5e133a=0x0,_0x954978=await((_0x25d45f=this[_0xf09913(0x28c)])==null?void 0x0:_0x25d45f[_0xf09913(0x273)](_0x1d101a));return _0x954978&&(_0x954978[_0xf09913(0xfe)]||_0x954978[_0xf09913(0x351)][_0xf09913(0x1dc)]!==0x0)&&(_0x5e133a=_0x954978['rev']),_0x5e133a===0x0&&this[_0xf09913(0xf1)][_0xf09913(0x111)]('[DataLoaderService]',_0xf09913(0x2da)),this[_0xf09913(0x20e)](_0x1d101a,_0x59eda8,_0x5e133a,_0x2cd157);}};qn=V([B(0x0,_0x5b6de8),B(0x1,_0x2ce47d(_0x5e8347)),B(0x2,_0x1bb6a9(U))],qn);let Jn=class{constructor(_0x5574d9,_0x345a27,_0x5f5361){const _0x1c4e98=_0x17ca27;this[_0x1c4e98(0x371)]=_0x5574d9,this[_0x1c4e98(0x257)]=_0x345a27,this['_univerInstanceService']=_0x5f5361,R(this,_0x1c4e98(0xfb),0x0),R(this,_0x1c4e98(0x262),new _0x581410()),R(this,_0x1c4e98(0x2f9),this[_0x1c4e98(0x262)]),R(this,_0x1c4e98(0x1f2),new Map());}[_0x17ca27(0x117)](_0xfe50f7){const _0x4d1cb6=_0x17ca27;this['_waitCount']=_0xfe50f7,this[_0x4d1cb6(0x262)]['next'](_0xfe50f7);}[_0x17ca27(0x25a)](_0x5b71c9,_0x5994fd){const _0xfc6b3f=_0x17ca27;if(_0x5994fd===_0xf2b208[_0xfc6b3f(0x2e4)]){let _0xe508b1=new Image();return _0xe508b1[_0xfc6b3f(0x193)]=_0x5b71c9,_0xe508b1;}return this[_0xfc6b3f(0x1f2)]['get'](_0x5b71c9);}['addImageSourceCache'](_0x459492,_0x33b08c,_0x8f7d1b){const _0x41cabd=_0x17ca27;_0x33b08c===_0xf2b208[_0x41cabd(0x2e4)]||_0x8f7d1b==null||this[_0x41cabd(0x1f2)][_0x41cabd(0x23a)](_0x459492,_0x8f7d1b);}async[_0x17ca27(0x191)](_0x1b609b){const _0x2ba2f1=_0x17ca27;try{let _0x48f488=this[_0x2ba2f1(0x34a)](this[_0x2ba2f1(0x229)](),''+_0x1b609b),_0x419eea=(await this[_0x2ba2f1(0x371)]['get'](_0x48f488))[_0x2ba2f1(0x210)];if(_0x419eea[_0x2ba2f1(0x20b)]&&_0x419eea[_0x2ba2f1(0x20b)][_0x2ba2f1(0xfd)]===_0x3e711d['OK']){let _0x770e7=_0x5a5627(_0x419eea[_0x2ba2f1(0x296)],this[_0x2ba2f1(0x227)]());return Promise[_0x2ba2f1(0x2a9)](_0x770e7);}return Promise[_0x2ba2f1(0x174)](_0x419eea['error']);}catch(_0x18ff64){return Promise[_0x2ba2f1(0x174)](_0x18ff64);}}async['saveImage'](_0x728615){const _0x10c6a0=_0x17ca27;let _0xec3d8b='';if(!_0x44a927[_0x10c6a0(0x37a)](_0x728615['type']))return this[_0x10c6a0(0x1a4)](),Promise[_0x10c6a0(0x174)](Error(_0x4e34ab['ERROR_IMAGE_TYPE']));if(_0x728615[_0x10c6a0(0x333)]>_0x2bda06())return this[_0x10c6a0(0x1a4)](),Promise[_0x10c6a0(0x174)](Error(_0x4e34ab[_0x10c6a0(0x176)]));try{let _0x42a42a=new FormData();_0x42a42a[_0x10c6a0(0x1b4)](_0x10c6a0(0x133),_0x728615);let _0x552771=this[_0x10c6a0(0x22c)][_0x10c6a0(0x324)](),_0x7105e5=_0x552771==null?void 0x0:_0x552771['getUnitId']();if(!_0x7105e5)throw Error(_0x10c6a0(0x24c));let _0x186ab6=this[_0x10c6a0(0x291)]()+_0x10c6a0(0x127)+_0x728615[_0x10c6a0(0x333)][_0x10c6a0(0x287)]()+'&source='+_0x378902[_0x10c6a0(0x2ac)]+_0x10c6a0(0x11f)+encodeURIComponent(_0x7105e5),_0x14a9f1={'body':_0x42a42a},_0xbee080=(await this[_0x10c6a0(0x371)][_0x10c6a0(0x247)](_0x186ab6,_0x14a9f1))[_0x10c6a0(0x210)];if(typeof _0xbee080[_0x10c6a0(0x293)]!='string')return this[_0x10c6a0(0x1a4)](),Promise['reject'](Error(_0x4e34ab[_0x10c6a0(0x27f)]));_0xec3d8b=_0xbee080[_0x10c6a0(0x293)];}catch{return this[_0x10c6a0(0x1a4)](),Promise['reject'](Error(_0x4e34ab[_0x10c6a0(0x27f)]));}return new Promise((_0x260b58,_0x2167a4)=>{const _0x6e8653=_0x10c6a0;let _0x438928=new FileReader();_0x438928[_0x6e8653(0x366)](_0x728615),_0x438928[_0x6e8653(0x1b7)]=_0x19fdd4=>{const _0x1a7ac2=_0x6e8653;var _0x5a3efe;let _0x2234e5=(_0x5a3efe=_0x19fdd4[_0x1a7ac2(0x1be)])==null?void 0x0:_0x5a3efe[_0x1a7ac2(0x1ee)];if(_0x2234e5==null){this[_0x1a7ac2(0x1a4)](),_0x2167a4(Error(_0x4e34ab['ERROR_IMAGE']));return;}_0x260b58({'imageId':_0x4bcb64(0x6),'imageSourceType':_0xf2b208[_0x1a7ac2(0x234)],'source':_0xec3d8b,'base64Cache':_0x2234e5,'status':_0x4e34ab['SUCCUSS']}),this[_0x1a7ac2(0x1a4)]();};});}[_0x17ca27(0x291)](){const _0x129b38=_0x17ca27;var _0xf766ef;let _0x513493=this[_0x129b38(0x257)][_0x129b38(0x35e)](L);return(_0xf766ef=_0x513493==null?void 0x0:_0x513493[_0x129b38(0x383)])==null?_0x129b38(0x137):_0xf766ef;}[_0x17ca27(0x229)](){const _0x462b74=_0x17ca27;var _0xe6de90;let _0x536194=this[_0x462b74(0x257)][_0x462b74(0x35e)](L);return(_0xe6de90=_0x536194==null?void 0x0:_0x536194[_0x462b74(0x107)])==null?'/universer-api/file/{fileID}/sign-url':_0xe6de90;}[_0x17ca27(0x227)](){const _0x4a721b=_0x17ca27;var _0x8d636b;let _0x39bd67=this[_0x4a721b(0x257)][_0x4a721b(0x35e)](L);return(_0x8d636b=_0x39bd67==null?void 0x0:_0x39bd67[_0x4a721b(0x1e7)])==null?location[_0x4a721b(0x1ef)]:_0x8d636b;}[_0x17ca27(0x34a)](_0x6ad451,_0x22d076){const _0x49c983=_0x17ca27;return _0x6ad451[_0x49c983(0x329)](_0x49c983(0x2f7),_0x22d076);}[_0x17ca27(0x1a4)](){const _0x423a4c=_0x17ca27;--this[_0x423a4c(0xfb)],this[_0x423a4c(0x262)]['next'](this[_0x423a4c(0xfb)]);}};Jn=V([B(0x0,_0x2ce47d(_0x23cb98)),B(0x1,_0x216b51),B(0x2,_0x2ce47d(_0x778808))],Jn);let Yn=class{constructor(_0x331116,_0x402a72){const _0x180dbc=_0x17ca27;this[_0x180dbc(0x257)]=_0x331116,this['_HTTPService']=_0x402a72;}['_getAPIPrefixPath'](){const _0x10177c=_0x17ca27;var _0x3cf011;let _0xbda29a=this['_configService'][_0x10177c(0x35e)](L);return(_0x3cf011=_0xbda29a==null?void 0x0:_0xbda29a['authzUrl'])==null?_0x10177c(0x237):_0x3cf011;}async['list'](_0x32256d){const _0x54d3b9=_0x17ca27;let _0x1fedd1=this['_getAPIPrefixPath']()+'/collaborator';return{'list':[{'title':_0x54d3b9(0x35a),'mentions':(await this[_0x54d3b9(0x2ae)][_0x54d3b9(0x30b)](_0x1fedd1,{'params':{'objectID':_0x32256d[_0x54d3b9(0x232)],'unitID':_0x32256d[_0x54d3b9(0x232)]}}))[_0x54d3b9(0x210)][_0x54d3b9(0x31c)][_0x54d3b9(0x316)](_0x4b2a9c=>({'objectId':_0x4b2a9c['id'],'name':_0x4b2a9c[_0x54d3b9(0x151)][_0x54d3b9(0x119)],'metadata':{'icon':_0x4b2a9c['subject'][_0x54d3b9(0x343)]},'label':_0x4b2a9c[_0x54d3b9(0x151)][_0x54d3b9(0x119)],'objectType':_0x19af84[_0x54d3b9(0x317)]})),'metadata':{},'type':_0x19af84[_0x54d3b9(0x317)]}]};}};Yn=V([B(0x0,_0x2ce47d(_0x216b51)),B(0x1,_0x2ce47d(_0x23cb98))],Yn);let Xn=class extends _0x308f48{constructor(_0x27457a,_0x4c40d7,_0x23c65f,_0xedc250,_0x53a743){const _0xac6b0e=_0x17ca27;super(),this[_0xac6b0e(0x369)]=_0x27457a,this[_0xac6b0e(0x22c)]=_0x4c40d7,this['_permissionService']=_0x23c65f,this[_0xac6b0e(0x37d)]=_0xedc250,this['_collaborationUIEventService']=_0x53a743,this[_0xac6b0e(0x129)](),this[_0xac6b0e(0x33e)]();}['_initCloseConn'](){const _0x3bde98=_0x17ca27;let _0x5ab351=async _0x428f23=>{const _0x31d176=_0x1f49;(await this[_0x31d176(0x37d)][_0x31d176(0x192)](_0x428f23))['event$'][_0x31d176(0x2b8)](_0xca999c(_0x40be74=>_0x40be74['eventID']===_0x590a79[_0x31d176(0x2d4)]),_0x2bd606(this['dispose$']))[_0x31d176(0x139)](_0x51c09a=>{const _0x3b1f1a=_0x31d176;let {reason:_0x4d014c}=_0x51c09a[_0x3b1f1a(0x37f)];this[_0x3b1f1a(0x2e2)][_0x3b1f1a(0x2c1)]({'id':_0x3b1f1a(0x206),'data':_0x4d014c}),this[_0x3b1f1a(0x106)][_0x3b1f1a(0x334)](new _0x2ee891(_0x428f23)['id'],!0x1),this['_collaborationSessionService'][_0x3b1f1a(0x38c)](_0x428f23);});};_0xd14352(this[_0x3bde98(0x22c)][_0x3bde98(0x10f)](_0x20b9c7['UNIVER_SHEET']),this[_0x3bde98(0x22c)][_0x3bde98(0x10f)](_0x20b9c7[_0x3bde98(0x1aa)]),this[_0x3bde98(0x22c)][_0x3bde98(0x10f)](_0x20b9c7[_0x3bde98(0x306)]),this[_0x3bde98(0x22c)][_0x3bde98(0x10f)](_0x20b9c7[_0x3bde98(0x2e5)]))[_0x3bde98(0x2b8)](_0x26cc28(_0x321c7b=>_0x321c7b[_0x3bde98(0x36e)][_0x3bde98(0x1fc)]()),_0xca999c(_0x5515ae=>!_0x1ac13e(_0x5515ae)),_0x2bd606(this[_0x3bde98(0x10e)]))[_0x3bde98(0x139)](_0x1bd39e=>{_0x5ab351(_0x1bd39e);});}['_initUnitPermissionChange'](){const _0x420a85=_0x17ca27;let _0x195951=async _0x26171a=>{const _0x54dddc=_0x1f49;let _0x33403e=await this[_0x54dddc(0x37d)][_0x54dddc(0x192)](_0x26171a),_0x1a7e49=this[_0x54dddc(0x369)]['get'](_0x75337d);_0x33403e[_0x54dddc(0x2d5)]['pipe'](_0xca999c(_0x2f46f0=>_0x2f46f0[_0x54dddc(0x321)]===_0x590a79[_0x54dddc(0x34b)]),_0x2bd606(this[_0x54dddc(0x10e)]))[_0x54dddc(0x139)](_0x57c2db=>{const _0x2a6213=_0x54dddc;let {objectId:_0x5e26db}=_0x57c2db['data'];_0x5e26db===_0x26171a?_0x1a7e49['initWorkbookPermissionChange'](_0x26171a):_0x1a7e49[_0x2a6213(0x38b)](_0x26171a,_0x5e26db);});};_0xd14352(this['_univerInstanceService'][_0x420a85(0x10f)](_0x20b9c7[_0x420a85(0x20d)]))[_0x420a85(0x2b8)](_0x26cc28(_0x16f38c=>_0x16f38c[_0x420a85(0x36e)]['getUnitId']()),_0xca999c(_0x2bc510=>!_0x1ac13e(_0x2bc510)),_0x2bd606(this[_0x420a85(0x10e)]))['subscribe'](_0x2d1caa=>{_0x195951(_0x2d1caa);});}};Xn=V([B(0x0,_0x2ce47d(_0x3973c2)),B(0x1,_0x778808),B(0x2,_0x591ed0),B(0x3,_0x2ce47d(jn)),B(0x4,_0x2ce47d(z))],Xn);let Zn=class{constructor(_0x42460c,_0x297c1b){const _0x1e6031=_0x17ca27;this[_0x1e6031(0x257)]=_0x42460c,this[_0x1e6031(0x371)]=_0x297c1b;}async[_0x17ca27(0x146)](_0x83b376,_0x104eed){const _0x2c7779=_0x17ca27;var _0x3e1d2d;let {unitID:_0x15b20e,type:_0x35c5c1,revision:_0x3dcf0d=0x0}=_0x104eed,_0x56c51c=this['getSnapshotAPIPath']()+'/'+_0x35c5c1+'/unit/'+_0x15b20e+_0x2c7779(0x140)+_0x3dcf0d,_0x30c46b=(await this[_0x2c7779(0x371)][_0x2c7779(0x30b)](_0x56c51c))[_0x2c7779(0x210)],_0x5b0328=(_0x3e1d2d=_0x30c46b[_0x2c7779(0x387)])==null?void 0x0:_0x3e1d2d[_0x2c7779(0x150)];if(_0x5b0328){let _0x19d017=_0x5b0328==null?void 0x0:_0x5b0328[_0x2c7779(0x194)];_0x5b0328['originalMeta']=_0x52b1eb[_0x2c7779(0x327)](_0x530baf(_0x19d017)),Object[_0x2c7779(0x136)](_0x5b0328[_0x2c7779(0x187)])[_0x2c7779(0x11b)](([,_0x257909])=>{const _0xb4c461=_0x2c7779;let _0x217136=_0x257909[_0xb4c461(0x194)];_0x257909[_0xb4c461(0x194)]=_0x52b1eb[_0xb4c461(0x327)](_0x530baf(_0x217136));});}return _0x30c46b;}async[_0x17ca27(0x1c9)](_0x2ab0b8,_0x7b2fb2){const _0x748771=_0x17ca27;let {unitID:_0x30f1c3,type:_0x2dbd13,blockID:_0x482b60}=_0x7b2fb2,_0xeec347=this[_0x748771(0x354)]()+'/'+_0x2dbd13+'/unit/'+_0x30f1c3+'/block/'+_0x482b60;return(await this['_httpService'][_0x748771(0x30b)](_0xeec347))[_0x748771(0x210)];}async[_0x17ca27(0x286)](_0x2bca46,_0x5a7caf){const _0x4f9369=_0x17ca27;let {unitID:_0x11f1af,type:_0x11f555,blockID:_0x2d920a}=_0x5a7caf,_0x43d07d=this[_0x4f9369(0x354)]()+_0x4f9369(0x373)+_0x11f555+_0x4f9369(0x2ed)+_0x11f1af+_0x4f9369(0x373)+_0x2d920a;return(await this[_0x4f9369(0x371)]['get'](_0x43d07d))[_0x4f9369(0x210)];}async['fetchMissingChangesets'](_0x1a4a3c,_0x58025d){const _0x111b11=_0x17ca27;let {unitID:_0x2fd590,type:_0xa4231c,from:_0x56bef4,to:_0x52f55f}=_0x58025d,_0x3c1062=this['_getAPIPrefix']()+'/'+_0xa4231c+'/unit/'+_0x2fd590+'/fetchmissing?from='+_0x56bef4+_0x111b11(0x100)+_0x52f55f;return(await this['_httpService'][_0x111b11(0x30b)](_0x3c1062))['body'];}[_0x17ca27(0x1ab)](){const _0x2067b0=_0x17ca27;var _0x569f30;return(_0x569f30=this['_configService'][_0x2067b0(0x35e)]('SNAPSHOT_URL_KEY'))==null?this[_0x2067b0(0x354)]():_0x569f30;}[_0x17ca27(0x354)](){const _0x214fd7=_0x17ca27;var _0x38290b;let _0x44e5d2=this[_0x214fd7(0x257)][_0x214fd7(0x35e)](L);return(_0x38290b=_0x44e5d2==null?void 0x0:_0x44e5d2['snapshotServerUrl'])==null?'/universer-api/snapshot':_0x38290b;}async[_0x17ca27(0x189)](_0x4fadb3,_0x39193a){const _0x5b016b=_0x17ca27;let _0x4286bd='/universer-api/snapshot/'+_0x39193a[_0x5b016b(0x1ba)]+'/unit/'+_0x39193a[_0x5b016b(0x1bc)]+_0x5b016b(0x203);return(await this[_0x5b016b(0x371)]['get'](_0x4286bd,{'params':{'resourceId':JSON[_0x5b016b(0x2d2)](_0x39193a[_0x5b016b(0x2b4)])}}))['body'];}[_0x17ca27(0x27a)](){const _0x167b60=_0x17ca27;throw Error(_0x167b60(0x142));}['updateSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x17ca27(0xfa)](){const _0x36b915=_0x17ca27;throw Error(_0x36b915(0x142));}['saveChangeset'](){const _0x724c70=_0x17ca27;throw Error(_0x724c70(0x142));}[_0x17ca27(0x25d)](){const _0x3ec03f=_0x17ca27;throw Error(_0x3ec03f(0x142));}[_0x17ca27(0x148)](){const _0x187c40=_0x17ca27;throw Error(_0x187c40(0x142));}};Zn=V([B(0x0,_0x216b51),B(0x1,_0x2ce47d(_0x23cb98))],Zn);let Qn=class extends _0x383c69{constructor(_0x15aea9,_0x2192fb,_0x71c627,_0xb507e0,_0x3f9de2){const _0x27793c=_0x17ca27;super(_0x15aea9,_0x2192fb,_0x71c627),this[_0x27793c(0x15d)]=_0xb507e0,this[_0x27793c(0xf1)]=_0x3f9de2;}[_0x17ca27(0x1d7)](_0x4a2706,_0x5dea5b){const _0x164010=_0x17ca27;let _0x5dbff6=this[_0x164010(0x381)](_0x4a2706);if(_0x5dbff6)try{let _0x3273e6=this[_0x164010(0x110)](_0x5dbff6,_0x5dea5b);this[_0x164010(0x25f)](_0x4a2706,_0x3273e6);}catch(_0x57b517){this['_logService']['error'](_0x164010(0x205),_0x57b517),this[_0x164010(0x225)](_0x4a2706);}let _0x28cc6b=this['_getRedoStack'](_0x4a2706);if(_0x28cc6b)try{let _0x15efb3=this[_0x164010(0x110)](_0x28cc6b,_0x5dea5b);this[_0x164010(0x11c)](_0x4a2706,_0x15efb3);}catch(_0x11533c){this[_0x164010(0xf1)][_0x164010(0x20b)](_0x11533c),this[_0x164010(0x358)](_0x4a2706);}}[_0x17ca27(0x225)](_0x3bd092){const _0x42d96e=_0x17ca27;let _0x20b87c=this[_0x42d96e(0x381)](_0x3bd092);_0x20b87c&&(_0x20b87c[_0x42d96e(0x1dc)]=0x0,this[_0x42d96e(0x292)]());}[_0x17ca27(0x358)](_0xd6ffec){const _0x4535c9=_0x17ca27;let _0x5b8646=this[_0x4535c9(0x259)](_0xd6ffec);_0x5b8646&&(_0x5b8646['length']=0x0,this[_0x4535c9(0x292)]());}[_0x17ca27(0x25f)](_0x2a55d2,_0x83f890){const _0x5d28e=_0x17ca27;this[_0x5d28e(0x22b)]['set'](_0x2a55d2,_0x83f890),this[_0x5d28e(0x292)]();}[_0x17ca27(0x11c)](_0x5e1c77,_0x1e3ad2){const _0x39bbca=_0x17ca27;this[_0x39bbca(0x1f5)][_0x39bbca(0x23a)](_0x5e1c77,_0x1e3ad2),this[_0x39bbca(0x292)]();}['_transformStack'](_0x4a595a,_0x8e02da){const _0x10e3c9=_0x17ca27;let _0x44ebaa=[],_0x1b9153=_0x8e02da,_0x53b1b6=_0x8e02da;for(let _0x58a32a=_0x4a595a['length']-0x1;_0x58a32a>=0x0;_0x58a32a--){let {unitID:_0x4517db,undoMutations:_0x4ae1a6,redoMutations:_0x23fc02}=_0x4a595a[_0x58a32a],_0x91e1d7=this[_0x10e3c9(0x15d)][_0x10e3c9(0x36d)](_0x1b9153,_0x4ae1a6),_0x5a2d0c=this[_0x10e3c9(0x15d)]['transformMutationsWithChangeset'](_0x53b1b6,_0x23fc02);if(_0xa08406(_0x91e1d7)||_0xa08406(_0x5a2d0c)){this[_0x10e3c9(0xf1)][_0x10e3c9(0x20b)](_0x10e3c9(0x205),'transformStack\x20failed!',_0x91e1d7,_0x5a2d0c);break;}_0x1b9153=_0x91e1d7[_0x10e3c9(0x2f0)],_0x53b1b6=_0x5a2d0c[_0x10e3c9(0x2f0)],_0x44ebaa[_0x10e3c9(0x1b5)]({'unitID':_0x4517db,'undoMutations':_0x91e1d7[_0x10e3c9(0x1fd)],'redoMutations':_0x5a2d0c[_0x10e3c9(0x1fd)]});}return _0x44ebaa[_0x10e3c9(0x141)]();}};Qn=V([B(0x0,_0x778808),B(0x1,_0x197520),B(0x2,_0x1fb702),B(0x3,_0x18b268),B(0x4,_0x5b6de8)],Qn);let $n=class extends _0x1f36ca{constructor(_0x20a8bc=pt,_0x593560,_0x521ddb,_0x228d3d){const _0x18850e=_0x17ca27;super(),this['_config']=_0x20a8bc,this[_0x18850e(0xf1)]=_0x593560,this[_0x18850e(0x369)]=_0x521ddb,this[_0x18850e(0x257)]=_0x228d3d;let {..._0x3dd58e}=_0x404896({},pt,this[_0x18850e(0x2af)]);if(!_0x3dd58e['socketService'])throw Error(_0x18850e(0x118));this['_config']=_0x3dd58e,this[_0x18850e(0x257)][_0x18850e(0x2ee)](L,_0x3dd58e);}[_0x17ca27(0x268)](){const _0x41d5f8=_0x17ca27;this[_0x41d5f8(0x235)](),this[_0x41d5f8(0x13c)]();}[_0x17ca27(0x235)](){const _0x39ec84=_0x17ca27;var _0x520f89,_0x584b33;this[_0x39ec84(0x369)][_0x39ec84(0x112)](_0x36c08a)&&this[_0x39ec84(0xf1)][_0x39ec84(0x20b)](_0x39ec84(0x348),_0x39ec84(0x2ff));let _0x735e10=_0x36d50d([[_0x36c08a,{'useClass':Qn}],[On,{'useValue':kn()}],[jn],[H],[Gt],[Bn],[Kn],[kt],[Xn],[z],[qn],[Tn,{'useClass':this[_0x39ec84(0x2af)][_0x39ec84(0x204)]}],[_0x1cbd16,{'useClass':Zn}],[_0x4bd828,{'useClass':Vn}],[_0x4c9b8c,{'useClass':Jn}],[Ln,{'useClass':Rn}],[_0x54673e,{'useClass':Yn}],[Mn],[Fn]],(_0x520f89=this[_0x39ec84(0x2af)])==null?void 0x0:_0x520f89[_0x39ec84(0x36f)]);if(!((_0x584b33=this['_config'])!=null&&_0x584b33[_0x39ec84(0xf2)])){let _0x32760c=_0x735e10[_0x39ec84(0x390)](([_0x53df3b])=>_0x53df3b===W);_0x32760c!==-0x1&&_0x735e10[_0x39ec84(0x367)](_0x32760c,0x1);}_0xb41cbe(this['_injector'],_0x735e10);}[_0x17ca27(0x13c)](){const _0x3c6e4e=_0x17ca27;var _0x3f1f01,_0x2d20bb;if(this[_0x3c6e4e(0x369)]['get'](_0x23cb98)[_0x3c6e4e(0x1b2)]({'priority':0x14,'interceptor':_0x521c8b({'maxParallel':0x6})}),!((_0x3f1f01=this['_config'])!=null&&_0x3f1f01['enableOfflineEditing'])){var _0x467c4a;(_0x467c4a=this[_0x3c6e4e(0x369)][_0x3c6e4e(0x30b)](U,_0x4f375d[_0x3c6e4e(0x2a1)]))==null||_0x467c4a['disableLocalCache']();}(_0x2d20bb=this[_0x3c6e4e(0x2af)])!=null&&_0x2d20bb[_0x3c6e4e(0x2e6)]&&_0x455cc6(this[_0x3c6e4e(0x369)],[[Bn]]),_0x455cc6(this[_0x3c6e4e(0x369)],[[Kn],[Mn],[Xn]]);}};R($n,_0x17ca27(0x2df),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),R($n,_0x17ca27(0x34d),Nn),R($n,_0x17ca27(0x1a1),Pn),$n=V([_0x39f4ff(_0x216d9f,_0x204a31,_0x1fb939),B(0x1,_0x5b6de8),B(0x2,_0x2ce47d(_0x3973c2)),B(0x3,_0x216b51)],$n);export{In as AttachmentSourceType,Vn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,vn as BaseCollaborationEntity,xn as BoardCollaborationEntity,L as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Rn as CollaborationAttachmentIoService,Mn as CollaborationController,$ as CollaborationEntity,Jn as CollaborationImageIoService,Ht as CollaborationSession,jn as CollaborationSessionService,Dn as CollaborationSocketService,pn as CollaborationStatus,Ot as CollaborationUIEventId,z as CollaborationUIEventService,Qn as CollaborativeUndoRedoService,kt as CommentService,X as ConflictState,mt as DEFAULT_COLLAB_WEB_SOCKET_URL,Ct as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,ht as DEFAULT_WS_SESSION_TICKET_URL,qn as DataLoaderService,_n as DocCollaborationEntity,Q as FetchingMissState,gt as HEARTBEAT_INTERVAL_KEY,_t as HEARTBEAT_TIMEOUT_KEY,Ln as IAttachmentIoService,On as ICollaborationClientAdapterService,Tn as ICollaborationSocketService,U as ILocalCacheService,Sn as INetworkConditionService,W as ISingleActiveUnitService,xt as LOCAL_CACHE_INTERVAL,bt as LOCAL_CACHE_INTERVAL_KEY,H as MemberService,Yn as MentionIoHttpService,Z as OfflineState,q as PendingState,St as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,yt as RETRY_CONNECTING_MAX_COUNT_KEY,Bt as SessionStatus,yn as SheetCollaborationEntity,Gt as SheetTransformSelectionsService,bn as SlideCollaborationEntity,Zn as SnapshotServerOverHTTPService,K as SyncedState,Kt as UnitStatus,$n as UniverCollaborationClientPlugin,kn as createUniverCollaborationAdapter,Cn as deserializeToCombResponse,Ut as getLocalCacheKey,wn as serializeCombRequest};
|
|
1
|
+
const _0x3bc572=_0xe493;(function(_0xa5b5c0,_0x22d697){const _0x1d6e1a=_0xe493,_0x392395=_0xa5b5c0();while(!![]){try{const _0x559f74=parseInt(_0x1d6e1a(0x32c))/0x1*(parseInt(_0x1d6e1a(0x34a))/0x2)+-parseInt(_0x1d6e1a(0x376))/0x3*(parseInt(_0x1d6e1a(0x3b4))/0x4)+parseInt(_0x1d6e1a(0x373))/0x5+parseInt(_0x1d6e1a(0x1cf))/0x6*(-parseInt(_0x1d6e1a(0x417))/0x7)+-parseInt(_0x1d6e1a(0x375))/0x8+parseInt(_0x1d6e1a(0x259))/0x9*(parseInt(_0x1d6e1a(0x333))/0xa)+-parseInt(_0x1d6e1a(0x208))/0xb;if(_0x559f74===_0x22d697)break;else _0x392395['push'](_0x392395['shift']());}catch(_0x3a05ab){_0x392395['push'](_0x392395['shift']());}}}(_0x3e80,0x8c93d));import{CollaborationEvent as _0x7dd1cb,CompressMutationService as _0x46826b,EmptyMutationInfo as _0x1b64d1,ISnapshotServerService as _0xe1e81f,ITransformService as _0x29bc05,RevisionService as _0x2cb5e4,SnapshotService as _0x3209ea,UniverCollaborationPlugin as _0x901b3,b64DecodeUnicode as _0x430315,isTransformChangesetsSuccess as _0x41af53,isTransformMutationsWithChangesetFailure as _0x33bd16,isTransformMutationsWithChangesetSuccess as _0x34fd35,mapDocumentTypeToUniverInstanceType as _0x386cb9,parseChangesetToProtocol as _0x43c492,parseProtocolChangeset as _0x4823fa,textEncoder as _0x204083,uuidv4 as _0x5d9f01}from'@univerjs-pro/collaboration';import{CommandType as _0xe60bf6,DependentOn as _0x30d4af,Disposable as _0x376cce,DisposableCollection as _0x186c27,IAuthzIoService as _0x27e034,ICommandService as _0x1f135e,IConfigService as _0xa7a1b6,IContextService as _0x5e05d4,IImageIoService as _0x4c34f1,ILogService as _0x2e09c7,IMentionIOService as _0x1a6754,IPermissionService as _0x3058fc,IUndoRedoService as _0x51c17f,IUniverInstanceService as _0x6f9bb2,ImageSourceType as _0x493f5e,ImageUploadStatusType as _0x13bf4f,Inject as _0x167908,Injector as _0x35e9e2,JSONX as _0x52478b,LocalUndoRedoService as _0x150656,LocaleService as _0x3b5f18,MentionType as _0x118ea1,Optional as _0x2a5dd8,Plugin as _0x9c02e4,Quantity as _0x1c058a,Rectangle as _0x53336f,RxDisposable as _0x4ca998,Tools as _0x3ea6fe,UniverInstanceType as _0x1f1b4f,UserManagerService as _0x1ab04a,Workbook as _0x45f35b,createIdentifier as _0x5685c4,generateRandomId as _0x197487,isInternalEditorID as _0x238b00,merge as _0x147984,mergeOverrideWithDependencies as _0x4f5c21,registerDependencies as _0x2ba51f,resolveWithBasePath as _0x4823ba,sequenceExecute as _0x416b22,toDisposable as _0x11df70,touchDependencies as _0x1d20c8}from'@univerjs/core';import{DocStateChangeManagerService as _0x6630d3,RichTextEditingMutation as _0x7aa9b}from'@univerjs/docs';import{InsertSheetMutation as _0xad6688,SetSelectionsOperation as _0x3f0685,SheetPermissionInitController as _0x265733,SheetsSelectionsService as _0x3ad638,WorkbookEditablePermission as _0x3d21fe}from'@univerjs/sheets';import{BehaviorSubject as _0x31b85e,ReplaySubject as _0x60521f,Subject as _0x5b6066,concatMap as _0x4bcf17,firstValueFrom as _0xecbbf6,map as _0xdcb41d,merge as _0x4b9f39,of as _0x5d6819,shareReplay as _0x238a10,take as _0x5d0356,takeUntil as _0xb785f}from'rxjs';import{CmdRspCode as _0x20fc41,CombCmd as _0x23fb1d,ErrorCode as _0x2fd5b6,FileSource as _0x10cf89}from'@univerjs/protocol';import{ITelemetryService as _0x3915b7}from'@univerjs/telemetry';import{delay as _0x5f4ad8,filter as _0x519396,map as _0x37612c,take as _0x18ddcd,takeUntil as _0x42f81a}from'rxjs/operators';import{AddSlidePageMutation as _0x9f63e,EnsureSlideMasterPageMutation as _0x45dcdc,MoveSlidePageMutation as _0xcd2053,RemoveSlidePageMutation as _0x5667d9}from'@univerjs-pro/slides';import{HTTPRequest as _0x3cc753,HTTPService as _0x6a3f01,ISocketService as _0x1d5e1d,MergeInterceptorFactory as _0x24f540,ThresholdInterceptorFactory as _0x28f61d,UniverNetworkPlugin as _0x21d398}from'@univerjs/network';import{UniverLicensePlugin as _0x442bd0,getGlobalObject as _0x153271}from'@univerjs-pro/license';import{cbc as _0x3823ef}from'@noble/ciphers/aes.js';import{concatBytes as _0x2bb09d,randomBytes as _0x1dfafc,utf8ToBytes as _0x34339e}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x286929,getDrawingImageAllowSize as _0xba57e6}from'@univerjs/drawing';const R=_0x3bc572(0x282),ft={},pt=_0x3bc572(0x22e),mt=_0x3bc572(0x3fb),ht=_0x3bc572(0x2c2),gt=_0x3bc572(0x358),_t=0x4e20,vt='RETRY_CONNECTING_MAX_COUNT',yt=_0x3bc572(0x1df),bt=0x3e8,xt=_0x3bc572(0x1fe),St=_0x3bc572(0x359);function Ct(_0x28ec4d){const _0x5825ae=_0x3bc572;return JSON[_0x5825ae(0x3c3)](_0x28ec4d)['length'];}function _0xe493(_0x206303,_0x4afa36){_0x206303=_0x206303-0x1ab;const _0x3e809a=_0x3e80();let _0xe493f2=_0x3e809a[_0x206303];return _0xe493f2;}function wt(_0x3f4935){'@babel/helpers - typeof';const _0x2ff5c3=_0x3bc572;return wt=typeof Symbol==_0x2ff5c3(0x261)&&typeof Symbol['iterator']==_0x2ff5c3(0x326)?function(_0x794e9c){return typeof _0x794e9c;}:function(_0x23450d){const _0x123d93=_0x2ff5c3;return _0x23450d&&typeof Symbol=='function'&&_0x23450d[_0x123d93(0x2fb)]===Symbol&&_0x23450d!==Symbol['prototype']?_0x123d93(0x326):typeof _0x23450d;},wt(_0x3f4935);}function Tt(_0x1880d1,_0x1f9049){const _0x3e370e=_0x3bc572;if(wt(_0x1880d1)!='object'||!_0x1880d1)return _0x1880d1;var _0x2a8309=_0x1880d1[Symbol[_0x3e370e(0x1bd)]];if(_0x2a8309!==void 0x0){var _0x4e5027=_0x2a8309['call'](_0x1880d1,_0x1f9049||_0x3e370e(0x307));if(wt(_0x4e5027)!=_0x3e370e(0x3d4))return _0x4e5027;throw TypeError(_0x3e370e(0x29b));}return(_0x1f9049===_0x3e370e(0x288)?String:Number)(_0x1880d1);}function Et(_0x11244c){var _0x3bb26d=Tt(_0x11244c,'string');return wt(_0x3bb26d)=='symbol'?_0x3bb26d:_0x3bb26d+'';}function z(_0x3fedc1,_0x162725,_0x5f558a){return(_0x162725=Et(_0x162725))in _0x3fedc1?Object['defineProperty'](_0x3fedc1,_0x162725,{'value':_0x5f558a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3fedc1[_0x162725]=_0x5f558a,_0x3fedc1;}let Dt=function(_0x3ab8c4){const _0xf68e2f=_0x3bc572;return _0x3ab8c4['OTHER_CLIENT_EDITING']='OTHER_CLIENT_EDITING',_0x3ab8c4['PERMISSION_DENIED']=_0xf68e2f(0x2ab),_0x3ab8c4['CONFLICT']='CONFLICT',_0x3ab8c4[_0xf68e2f(0x3be)]='CLOSE_ROOM',_0x3ab8c4[_0xf68e2f(0x324)]=_0xf68e2f(0x324),_0x3ab8c4[_0xf68e2f(0x1b3)]=_0xf68e2f(0x1b3),_0x3ab8c4[_0xf68e2f(0x40b)]=_0xf68e2f(0x40b),_0x3ab8c4[_0xf68e2f(0x3f8)]=_0xf68e2f(0x3f8),_0x3ab8c4;}({});var B=class{constructor(){const _0x38c36f=_0x3bc572;z(this,_0x38c36f(0x35a),new _0x5b6066()),z(this,_0x38c36f(0x396),this[_0x38c36f(0x35a)][_0x38c36f(0x43c)]());}[_0x3bc572(0x340)](_0xa9d9f8){const _0x180dbe=_0x3bc572;this[_0x180dbe(0x35a)][_0x180dbe(0x2c7)](_0xa9d9f8);}},Ot=class{constructor(){const _0xe9b7a1=_0x3bc572;z(this,_0xe9b7a1(0x36d),new _0x5b6066()),z(this,_0xe9b7a1(0x291),this[_0xe9b7a1(0x36d)][_0xe9b7a1(0x43c)]());}['onCommentUpdate'](_0x252ade){const _0x4bbd59=_0x3bc572;this[_0x4bbd59(0x36d)]['next'](_0x252ade);}};function V(_0x4a0ded,_0x1f986d){return function(_0x96670c,_0x9f8a74){_0x1f986d(_0x96670c,_0x9f8a74,_0x4a0ded);};}function H(_0x38fd8b,_0x35b3a7,_0x546123,_0x55816d){const _0x1b1d42=_0x3bc572;var _0x5ddeec=arguments[_0x1b1d42(0x28d)],_0x9ccf9c=_0x5ddeec<0x3?_0x35b3a7:_0x55816d===null?_0x55816d=Object[_0x1b1d42(0x3f6)](_0x35b3a7,_0x546123):_0x55816d,_0x1d0092;if(typeof Reflect==_0x1b1d42(0x3d4)&&typeof Reflect[_0x1b1d42(0x2ef)]==_0x1b1d42(0x261))_0x9ccf9c=Reflect[_0x1b1d42(0x2ef)](_0x38fd8b,_0x35b3a7,_0x546123,_0x55816d);else{for(var _0x16a495=_0x38fd8b[_0x1b1d42(0x28d)]-0x1;_0x16a495>=0x0;_0x16a495--)(_0x1d0092=_0x38fd8b[_0x16a495])&&(_0x9ccf9c=(_0x5ddeec<0x3?_0x1d0092(_0x9ccf9c):_0x5ddeec>0x3?_0x1d0092(_0x35b3a7,_0x546123,_0x9ccf9c):_0x1d0092(_0x35b3a7,_0x546123))||_0x9ccf9c);}return _0x5ddeec>0x3&&_0x9ccf9c&&Object[_0x1b1d42(0x3f2)](_0x35b3a7,_0x546123,_0x9ccf9c),_0x9ccf9c;}let kt=class extends _0x376cce{constructor(_0x5ba2f2){const _0x4435cc=_0x3bc572;super(),this['_univerInstanceService']=_0x5ba2f2,z(this,_0x4435cc(0x2c1),new Map()),z(this,_0x4435cc(0x323),new _0x5b6066()),this[_0x4435cc(0x21b)](_0x4b9f39(this['_univerInstanceService'][_0x4435cc(0x40a)](_0x1f1b4f[_0x4435cc(0x33c)])[_0x4435cc(0x264)](_0x37612c(_0x579553=>_0x579553[_0x4435cc(0x1da)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x1f1b4f['UNIVER_DOC'])[_0x4435cc(0x264)](_0x37612c(_0x7f8500=>_0x7f8500[_0x4435cc(0x1da)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x1f1b4f['UNIVER_BOARD'])[_0x4435cc(0x264)](_0x37612c(_0x5dbf96=>_0x5dbf96[_0x4435cc(0x1da)]())),this[_0x4435cc(0x449)][_0x4435cc(0x40a)](_0x1f1b4f[_0x4435cc(0x3fd)])[_0x4435cc(0x264)](_0x37612c(_0x5cb423=>_0x5cb423[_0x4435cc(0x1da)]())))[_0x4435cc(0x368)](_0x55d9e7=>this[_0x4435cc(0x3cc)](_0x55d9e7)));}[_0x3bc572(0x409)](_0x32a340){const _0x8d89e2=_0x3bc572;return this[_0x8d89e2(0x2c1)]['has'](_0x32a340)?_0x5d6819(this[_0x8d89e2(0x2c1)]['get'](_0x32a340)):this[_0x8d89e2(0x323)][_0x8d89e2(0x264)](_0x37612c(_0x1e49e2=>{const _0x1b2cc3=_0x8d89e2;if(_0x1e49e2===_0x32a340)return this[_0x1b2cc3(0x2c1)]['get'](_0x1e49e2);}));}[_0x3bc572(0x1f5)](_0x4385fc,_0x5f44c9){const _0x37f590=_0x3bc572;let _0x57e0d4=this[_0x37f590(0x2c1)][_0x37f590(0x1e3)](_0x4385fc);_0x57e0d4||(_0x57e0d4=new At(),this[_0x37f590(0x2c1)][_0x37f590(0x405)](_0x4385fc,_0x57e0d4),this[_0x37f590(0x323)][_0x37f590(0x2c7)](_0x4385fc)),_0x57e0d4[_0x37f590(0x1f5)](_0x5f44c9);}[_0x3bc572(0x2c5)](_0x2ff6a7,_0x5e9086){const _0xb03ffa=_0x3bc572;let _0x1e965f=this['_roomMembers'][_0xb03ffa(0x1e3)](_0x2ff6a7);_0x1e965f&&_0x1e965f[_0xb03ffa(0x2c5)](_0x5e9086);}[_0x3bc572(0x3af)](_0x34fecd){const _0x5bd20c=_0x3bc572;return this[_0x5bd20c(0x2c1)][_0x5bd20c(0x1e3)](_0x34fecd);}['getMember'](_0x390a6f,_0x419860){const _0x45188e=_0x3bc572;let _0x1b8758=this['_roomMembers'][_0x45188e(0x1e3)](_0x390a6f);if(_0x1b8758)return _0x1b8758[_0x45188e(0x355)](_0x419860);}['_removeRoom'](_0x18a122){const _0x603d7d=_0x3bc572;let _0x5f176e=this['_roomMembers'][_0x603d7d(0x1e3)](_0x18a122);_0x5f176e&&(_0x5f176e[_0x603d7d(0x1d4)](),this[_0x603d7d(0x2c1)]['delete'](_0x18a122));}[_0x3bc572(0x1d4)](){const _0x27b16d=_0x3bc572;this[_0x27b16d(0x2c1)][_0x27b16d(0x29a)](_0x236375=>_0x236375[_0x27b16d(0x1d4)]()),this[_0x27b16d(0x2c1)][_0x27b16d(0x3bb)](),this[_0x27b16d(0x323)][_0x27b16d(0x42f)]();}};kt=H([V(0x0,_0x6f9bb2)],kt);var At=class extends _0x376cce{constructor(..._0x1ae04b){const _0x45b14b=_0x3bc572;super(..._0x1ae04b),z(this,_0x45b14b(0x231),new Map()),z(this,_0x45b14b(0x2cc),new _0x31b85e(this[_0x45b14b(0x231)])),z(this,_0x45b14b(0x3ed),this[_0x45b14b(0x2cc)]['asObservable']());}[_0x3bc572(0x1d4)](){const _0x692be1=_0x3bc572;this['_members'][_0x692be1(0x3bb)](),this['_members$'][_0x692be1(0x42f)]();}['updateMember'](_0x2b28fc){const _0x3b98ac=_0x3bc572;this[_0x3b98ac(0x231)][_0x3b98ac(0x405)](_0x2b28fc[_0x3b98ac(0x3b6)],_0x2b28fc),this[_0x3b98ac(0x20a)]();}['removeMember'](_0x386aa4){const _0x4b76ea=_0x3bc572;this[_0x4b76ea(0x231)][_0x4b76ea(0x1b4)](_0x386aa4),this['_emitMembers']();}['getMember'](_0x30602e){const _0x45d12d=_0x3bc572;return this['_members'][_0x45d12d(0x1e3)](_0x30602e);}[_0x3bc572(0x22d)](){const _0x2e4981=_0x3bc572;return Array['from'](this[_0x2e4981(0x231)][_0x2e4981(0x3fe)]());}[_0x3bc572(0x20a)](){const _0x2296e5=_0x3bc572;this['_members$'][_0x2296e5(0x2c7)](this[_0x2296e5(0x231)]);}};function jt(_0x1b19a7,_0x596630){const _0x507407=_0x3bc572;if(Nt(_0x1b19a7))return _0x596630;if(_0x596630['eventID']===_0x7dd1cb['SUBMIT_CHANGESET']){var _0x4d58f5;let _0x5be6dd=Rt(_0x1b19a7),_0x4cf29d=_0x596630;return{..._0x4cf29d,'data':{..._0x4cf29d[_0x507407(0x2c6)],'unitID':_0x1b19a7['target']['unitId'],'unitType':(_0x4d58f5=_0x1b19a7[_0x507407(0x24b)][_0x507407(0x1d0)])==null?_0x4cf29d[_0x507407(0x2c6)][_0x507407(0x1d0)]:_0x4d58f5,'changeset':_0x5be6dd[_0x507407(0x334)](_0x4cf29d[_0x507407(0x2c6)]['changeset'],zt(_0x1b19a7))}};}if(_0x596630[_0x507407(0x313)]===_0x7dd1cb['FETCH_MISSING']){var _0x59c8bc;let _0x53c5a5=_0x596630;return{..._0x53c5a5,'data':{..._0x53c5a5['data'],'unitID':_0x1b19a7[_0x507407(0x24b)]['unitId'],'unitType':(_0x59c8bc=_0x1b19a7[_0x507407(0x24b)][_0x507407(0x1d0)])==null?_0x53c5a5[_0x507407(0x2c6)]['unitType']:_0x59c8bc}};}return _0x596630;}function Mt(_0x107114,_0x4fe339){const _0x82cd7c=_0x3bc572;if(Nt(_0x107114))return[_0x4fe339];switch(_0x4fe339[_0x82cd7c(0x313)]){case _0x7dd1cb['NEW_CHANGESETS']:return[Pt(_0x107114,_0x4fe339)];case _0x7dd1cb['PSEUDO_FETCH_MISSING_RESULT']:return[It(_0x107114,_0x4fe339)];case _0x7dd1cb[_0x82cd7c(0x257)]:return[Ft(_0x107114,_0x4fe339)];default:return[_0x4fe339];}}function Nt(_0x10279c){const _0x3696d4=_0x3bc572;return _0x10279c[_0x3696d4(0x24b)][_0x3696d4(0x356)]==null&&_0x10279c[_0x3696d4(0x24b)][_0x3696d4(0x395)]===_0x10279c[_0x3696d4(0x3fc)]&&!_0x10279c['changeset'];}function Pt(_0x2ae07c,_0x26abb7){const _0x5793c3=_0x3bc572;return{..._0x26abb7,'data':_0x43c492(Lt(_0x2ae07c,_0x4823fa(_0x26abb7[_0x5793c3(0x2c6)])))};}function Ft(_0x4b6631,_0x1eae6d){const _0x350943=_0x3bc572;return{..._0x1eae6d,'data':Lt(_0x4b6631,_0x1eae6d[_0x350943(0x2c6)])};}function It(_0x2e0267,_0x4880a8){const _0xe17818=_0x3bc572;let _0x5f47ff=_0x4880a8[_0xe17818(0x2c6)];return{..._0x4880a8,'data':{..._0x5f47ff,'changesets':_0x5f47ff[_0xe17818(0x23e)][_0xe17818(0x239)](_0x1e84e1=>_0x43c492(Lt(_0x2e0267,_0x4823fa(_0x1e84e1))))}};}function Lt(_0x46197e,_0xdb480e){const _0x344e35=_0x3bc572;return Rt(_0x46197e)[_0x344e35(0x2fc)](_0xdb480e,zt(_0x46197e));}function Rt(_0x314e21){const _0x55669b=_0x3bc572;if(!_0x314e21['changeset'])throw Error(_0x55669b(0x40d));return _0x314e21[_0x55669b(0x3e3)];}function zt(_0x5663ce){const _0x5600ed=_0x3bc572;return{'localUnitId':_0x5663ce[_0x5600ed(0x3fc)],'unitType':_0x5663ce['unitType'],'target':_0x5663ce[_0x5600ed(0x24b)]};}let Bt=function(_0x1253b5){const _0x23c679=_0x3bc572;return _0x1253b5[_0x1253b5['IDLE']=0x0]='IDLE',_0x1253b5[_0x1253b5['JOINING']=0x1]=_0x23c679(0x328),_0x1253b5[_0x1253b5['OFFLINE']=0x2]='OFFLINE',_0x1253b5[_0x1253b5[_0x23c679(0x36c)]=0x3]=_0x23c679(0x36c),_0x1253b5;}({});const Vt={[_0x20fc41[_0x3bc572(0x26c)]]:'session.join-failed',[_0x20fc41[_0x3bc572(0x1e8)]]:_0x3bc572(0x255),[_0x20fc41[_0x3bc572(0x295)]]:_0x3bc572(0x30c),[_0x20fc41['JOIN_ROOM_PERMISSION_DENIED']]:_0x3bc572(0x445),[_0x20fc41[_0x3bc572(0x224)]]:_0x3bc572(0x2a7)};let Ht=class extends _0x4ca998{get[_0x3bc572(0x3ce)](){const _0x31b3db=_0x3bc572;return this['_sessionStatus$'][_0x31b3db(0x207)]();}constructor(_0x14f088,_0xf0b910,_0x1b4e01,_0xc09c43,_0x6cda4,_0x567062,_0x2e413c,_0x5b5240){const _0x29fc11=_0x3bc572;super(),this[_0x29fc11(0x24a)]=_0x14f088,this[_0x29fc11(0x1c1)]=_0x1b4e01,this[_0x29fc11(0x1c9)]=_0xc09c43,this[_0x29fc11(0x2a6)]=_0x6cda4,this[_0x29fc11(0x1c5)]=_0x567062,this['_collaborationUIEventService']=_0x2e413c,this[_0x29fc11(0x3f1)]=_0x5b5240,z(this,_0x29fc11(0x363),new _0x31b85e(0x0)),z(this,_0x29fc11(0x1d9),this[_0x29fc11(0x363)]['asObservable']()),z(this,_0x29fc11(0x35a),new _0x5b6066()),z(this,'event$',this['_event$'][_0x29fc11(0x43c)]()),z(this,_0x29fc11(0x41e),void 0x0),z(this,_0x29fc11(0x35f),void 0x0),z(this,_0x29fc11(0x228),void 0x0),z(this,_0x29fc11(0x201),!0x1),z(this,'_telemetryInfo',null),this[_0x29fc11(0x201)]=!!this[_0x29fc11(0x3f1)],_0xf0b910[_0x29fc11(0x264)](_0xb785f(this[_0x29fc11(0x3d6)]))['subscribe'](_0x5c9f47=>{const _0x28ce0=_0x29fc11;if(_0x5c9f47!==void 0x0){if(this[_0x28ce0(0x41e)]=_0x5c9f47,_0x5c9f47)this['_joinRoom'](_0x5c9f47),this[_0x28ce0(0x35f)]=_0x5c9f47[_0x28ce0(0x30b)][_0x28ce0(0x368)](_0x35b1eb=>{const _0x7e9182=_0x28ce0;_0x35b1eb[_0x7e9182(0x1b6)]===this[_0x7e9182(0x24a)][_0x7e9182(0x24b)][_0x7e9182(0x395)]&&this['_onCombEvent'](_0x35b1eb);});else{var _0x3ae976;this[_0x28ce0(0x213)](),this[_0x28ce0(0x363)][_0x28ce0(0x2c7)](0x2),(_0x3ae976=this[_0x28ce0(0x35f)])==null||_0x3ae976[_0x28ce0(0x277)](),this[_0x28ce0(0x35f)]=null;}}});}[_0x3bc572(0x22c)](){const _0x245106=_0x3bc572;var _0x3c9ce2,_0x2b99e4;return(_0x3c9ce2=(_0x2b99e4=this[_0x245106(0x41e)])==null?void 0x0:_0x2b99e4[_0x245106(0x3b6)])==null?null:_0x3c9ce2;}['dispose'](){const _0x31bc85=_0x3bc572;super['dispose'](),this[_0x31bc85(0x3cf)](),this[_0x31bc85(0x3d6)][_0x31bc85(0x2c7)](),this[_0x31bc85(0x3d6)]['complete']();}[_0x3bc572(0x3cf)](){const _0x2edf8b=_0x3bc572;var _0x50c33e;this[_0x2edf8b(0x213)](),(_0x50c33e=this[_0x2edf8b(0x41e)])==null||_0x50c33e[_0x2edf8b(0x1ef)]({'cmd':_0x23fb1d[_0x2edf8b(0x444)],'data':{'roomID':this[_0x2edf8b(0x24a)][_0x2edf8b(0x24b)][_0x2edf8b(0x395)]}}),this[_0x2edf8b(0x35a)][_0x2edf8b(0x42f)](),this[_0x2edf8b(0x363)][_0x2edf8b(0x42f)]();}['_onCombEvent'](_0x5a1627){const _0x2a483d=_0x3bc572;_0x5a1627['cmd']===_0x23fb1d['JOIN']?this['_onJoinRoomEvent'](_0x5a1627):_0x5a1627[_0x2a483d(0x265)]===_0x23fb1d[_0x2a483d(0x2e1)]&&this[_0x2a483d(0x312)](_0x5a1627);}[_0x3bc572(0x23f)](_0x30ee10){const _0x4c7914=_0x3bc572;this[_0x4c7914(0x363)]['next'](0x1),_0x30ee10[_0x4c7914(0x1ef)]({'cmd':_0x23fb1d[_0x4c7914(0x2a3)],'routeKey':this['_identity'][_0x4c7914(0x24b)][_0x4c7914(0x395)],'routeType':'','data':{'rooms':[{'roomID':this[_0x4c7914(0x24a)][_0x4c7914(0x24b)]['unitId']}]}});}[_0x3bc572(0x3c1)](_0x12d32c){const _0x4d9dd7=_0x3bc572;var _0x43a5ef;if(_0x12d32c[_0x4d9dd7(0x36f)]in Vt){this[_0x4d9dd7(0x33e)][_0x4d9dd7(0x340)]({'id':'JOIN_ROOM_FAILED','data':Vt[_0x12d32c[_0x4d9dd7(0x36f)]]}),this[_0x4d9dd7(0x363)]['next'](0x2);return;}this[_0x4d9dd7(0x363)][_0x4d9dd7(0x2c7)](0x3);let _0x1358ea=(_0x43a5ef=_0x12d32c['data']['roomInfos'][this[_0x4d9dd7(0x24a)][_0x4d9dd7(0x24b)][_0x4d9dd7(0x395)]])==null?void 0x0:_0x43a5ef[_0x4d9dd7(0x3aa)];_0x1358ea&&_0x1358ea[_0x4d9dd7(0x29a)](_0x5401f5=>this[_0x4d9dd7(0x2a6)][_0x4d9dd7(0x1f5)](this[_0x4d9dd7(0x24a)][_0x4d9dd7(0x3fc)],_0x5401f5));}['_onRecvEvent'](_0x33206a){const _0xdf237d=_0x3bc572;try{let _0x1fb995=Mt(this[_0xdf237d(0x24a)],_0x33206a[_0xdf237d(0x2c6)]);for(let _0x4cc02a of _0x1fb995)switch(_0x4cc02a['eventID']){case _0x7dd1cb['USERS_ENTER']:this[_0xdf237d(0x3dc)](_0x4cc02a),this['_event$'][_0xdf237d(0x2c7)](_0x4cc02a);break;case _0x7dd1cb[_0xdf237d(0x221)]:this[_0xdf237d(0x21c)](_0x4cc02a),this['_event$']['next'](_0x4cc02a);break;case _0x7dd1cb[_0xdf237d(0x25d)]:case _0x7dd1cb[_0xdf237d(0x257)]:this[_0xdf237d(0x39e)](),this[_0xdf237d(0x262)](),this[_0xdf237d(0x35a)][_0xdf237d(0x2c7)](_0x4cc02a);break;case _0x7dd1cb['MSG_FOR_ERROR']:this[_0xdf237d(0x1c1)][_0xdf237d(0x298)]('save\x20fail\x20reason\x20is\x20'+JSON[_0xdf237d(0x3c3)](_0x4cc02a)),this[_0xdf237d(0x35a)][_0xdf237d(0x2c7)](_0x4cc02a);break;case _0x7dd1cb['COMMENT_UPDATE']:this[_0xdf237d(0x1c5)][_0xdf237d(0x2d3)](_0x4cc02a['data']),this[_0xdf237d(0x35a)][_0xdf237d(0x2c7)](_0x4cc02a);break;default:this['_event$']['next'](_0x4cc02a);}}catch(_0x35f54b){this['_logService'][_0xdf237d(0x298)](_0x35f54b,_0x33206a);}}[_0x3bc572(0x3dc)](_0x1bbd1d){const _0x5691=_0x3bc572;this[_0x5691(0x2a6)][_0x5691(0x1f5)](this[_0x5691(0x24a)]['localUnitId'],_0x1bbd1d['data']);}[_0x3bc572(0x21c)](_0x262f8e){const _0x554246=_0x3bc572;this[_0x554246(0x2a6)][_0x554246(0x2c5)](this[_0x554246(0x24a)][_0x554246(0x3fc)],_0x262f8e['data'][_0x554246(0x3b6)]);}async[_0x3bc572(0x1ef)](_0x90a8a1,_0x3e6863){const _0x2e8957=_0x3bc572;if(this[_0x2e8957(0x3ce)]!==0x3||!this[_0x2e8957(0x41e)])throw Error(_0x2e8957(0x408));try{let _0x24f6ef=jt(this[_0x2e8957(0x24a)],_0x90a8a1);_0x24f6ef[_0x2e8957(0x313)]===_0x7dd1cb[_0x2e8957(0x2b1)]&&(this[_0x2e8957(0x3e5)](),this[_0x2e8957(0x423)](_0x24f6ef)),this[_0x2e8957(0x41e)][_0x2e8957(0x1ef)]({'cmd':_0x23fb1d[_0x2e8957(0x28e)],'routeKey':this['_identity'][_0x2e8957(0x24b)]['unitId'],'routeType':'','data':_0x24f6ef});}catch(_0x1fbdeb){this[_0x2e8957(0x1c1)][_0x2e8957(0x298)](_0x1fbdeb);}}[_0x3bc572(0x3e5)](){const _0x305d66=_0x3bc572;var _0x12af1e;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x3bbdba=_0xe493;this[_0x3bbdba(0x228)]=null,this[_0x3bbdba(0x33e)]['emitEvent']({'id':_0x3bbdba(0x3f8)});},(_0x12af1e=this[_0x305d66(0x1c9)]['getConfig'](_0x305d66(0x358)))==null?_t:_0x12af1e);}[_0x3bc572(0x262)](){const _0x936c6e=_0x3bc572;this[_0x936c6e(0x228)]&&(clearTimeout(this[_0x936c6e(0x228)]),this['_collaborationTimeoutTimer']=null);}[_0x3bc572(0x423)](_0x12d377){const _0x58bb3e=_0x3bc572;if(!this[_0x58bb3e(0x201)])return;let {data:_0xb4ce1}=_0x12d377,{unitID:_0x2511e6,changeset:_0x5d802a}=_0xb4ce1,{mutations:_0x5f4587,type:_0x41e011}=_0x5d802a;this[_0x58bb3e(0x30d)]={'unitId':_0x2511e6,'type':_0x41e011,'startTime':performance[_0x58bb3e(0x249)](),'stopTime':0x0,'duration':0x0,'size':Ct(_0x5f4587)};}[_0x3bc572(0x39e)](){const _0x14e47d=_0x3bc572;if(this[_0x14e47d(0x201)]){if(!this[_0x14e47d(0x30d)]){this[_0x14e47d(0x1c1)][_0x14e47d(0x298)](_0x14e47d(0x33a),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x14e47d(0x30d)][_0x14e47d(0x223)]=performance['now'](),this[_0x14e47d(0x30d)]['duration']=this[_0x14e47d(0x30d)][_0x14e47d(0x223)]-this[_0x14e47d(0x30d)][_0x14e47d(0x2b3)],this[_0x14e47d(0x3f1)][_0x14e47d(0x2db)]('collaboration_new_changeset',this['_telemetryInfo']),this[_0x14e47d(0x30d)]=null;}}[_0x3bc572(0x213)](){const _0x4e7026=_0x3bc572;this[_0x4e7026(0x30d)]=null;}};Ht=H([V(0x2,_0x2e09c7),V(0x3,_0xa7a1b6),V(0x4,_0x167908(kt)),V(0x5,_0x167908(Ot)),V(0x6,_0x167908(B)),V(0x7,_0x2a5dd8(_0x3915b7))],Ht);const U=_0x5685c4(_0x3bc572(0x2ff));function Ut(_0x3f2b44){return'unit-cache-'+_0x3f2b44;}function Wt(_0x3191a3){const _0x26d917=_0x3bc572;let {unitID:_0x4a1e5b,mutations:_0x4b3792}=_0x3191a3;return{'unitId':_0x4a1e5b,'subUnitId':_0x4b3792['length']>0x0?_0x4b3792[0x0][_0x26d917(0x2a4)][_0x26d917(0x217)]:null};}let Gt=class{constructor(_0xbbc176,_0x53fd38,_0x3e075d){const _0x45403f=_0x3bc572;this[_0x45403f(0x44d)]=_0xbbc176,this[_0x45403f(0x284)]=_0x53fd38,this['_instanceService']=_0x3e075d;}['transformSelections'](_0x595a6d){const _0x572796=_0x3bc572;var _0x23d770,_0x4e3b75;let _0xc79583=this[_0x572796(0x44d)][_0x572796(0x1e3)](_0x3ad638),{unitId:_0x394ea6,subUnitId:_0x214f39}=Wt(_0x595a6d),_0x527475=_0xc79583==null?void 0x0:_0xc79583[_0x572796(0x246)](_0x394ea6)[_0x572796(0x1c3)](),_0x144df1=(_0x23d770=this[_0x572796(0x1c6)][_0x572796(0x412)](_0x394ea6))==null||(_0x23d770=_0x23d770[_0x572796(0x3c9)]())==null?void 0x0:_0x23d770[_0x572796(0x2cf)]();if(_0x527475['length']===0x0||!_0x394ea6||!_0x214f39)return;let _0x2a2c6d=[{'id':_0x3f0685['id'],'params':{'unitId':_0x394ea6,'subUnitId':_0x144df1,'selections':_0x3ea6fe[_0x572796(0x2af)](_0x527475)}}],_0x56b642=this[_0x572796(0x284)][_0x572796(0x37a)](_0x595a6d,_0x2a2c6d);if(!_0x34fd35(_0x56b642))throw _0x56b642['error'];let _0x563c4a=(_0x4e3b75=_0x56b642[_0x572796(0x296)][0x0])==null||(_0x4e3b75=_0x4e3b75[_0x572796(0x2a4)])==null?void 0x0:_0x4e3b75[_0x572796(0x24d)];if(Array[_0x572796(0x2fa)](_0x563c4a)&&_0x563c4a['length']){if(_0x563c4a[_0x572796(0x28d)]===_0x2a2c6d[0x0][_0x572796(0x2a4)][_0x572796(0x24d)][_0x572796(0x28d)]&&_0x563c4a[_0x572796(0x41a)]((_0x1a3eb5,_0x34a2e1)=>_0x53336f[_0x572796(0x21f)](_0x1a3eb5[_0x572796(0x346)],_0x2a2c6d[0x0][_0x572796(0x2a4)][_0x572796(0x24d)][_0x34a2e1][_0x572796(0x346)])))return;this['_injector'][_0x572796(0x1e3)](_0x1f135e)[_0x572796(0x414)](_0x3f0685['id'],{'unitId':_0x394ea6,'subUnitId':_0x144df1,'selections':_0x563c4a});}}};function _0x3e80(){const _0x2a6be5=['MUTATION','loadPdf','_userManagerService','RECV','uniscriptRunEvent','state$','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','sid','userID','_resendTimer','_waitCount','_queuedRemoteChangesets','append','baseRev','connection\x20error','_getAPIPrefix','_onLocalMutation','decorate','type','_clearScheduledTask','originalMeta','slice','retryConnectingInterval','_updateLocalCache','[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.','loadBoard','_transformStateCache','state','isArray','constructor','toLocal','[OfflineState]:\x20received\x20acknowledgement.','createInstance','collaboration-client.local-cache-service','localCacheService','NEW_CHANGESETS','/object','UPDATE_PERMISSION_OBJ','splice','debug','getConfig','default','COLLABORATION_ENDPOINT_INVALID','unitLoaded$','fromCollab','message$','session.room-not-exists','_telemetryInfo','_checkMissing','getAttachmentUrl','loginUrlKey','actions','_onRecvEvent','eventID','open$','pauseCollaboration','onTransformState','_scheduleCompleteTimestamp','size','OFFLINE','_sessionChannels','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','copyFileMeta','UNISCRIPT_RUN','_syncEditingCollabCursor','tables','_sender','_pendingMutations','listCollaborators','_roomCreated$','JOIN_ROOM_FAILED','_initCloseConn','symbol','_transitionLocked','JOINING','{fileID}','_schedule','_change$','1VeMnoa','incrementRevOfUnit','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','origin','collabWebSocketUrl','_listenToNetworkCondition','onMissedChangesetFetched','191220mcTAOj','toRemote','loadDoc','reduce','trim','missingChangesets','getTime','[CollaborationSession]','LIVESHARE_REQUEST_HOST','UNIVER_SHEET','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_collaborationUIEventService','&to=','emitEvent','localeService','_maxTotalRetryTimeout','loadSlide','indexOf','deleteCollaborator','range','uploadFileServerUrl','csShouldRetryEvent','_handler','2195798LQUfIj','_getLoginPath','list','appendMutation','_status$','_resendTimeout','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','socket\x20close','apply','_updateState','socket$','getMember','endpoint','_state$','HEARTBEAT_TIMEOUT','/universer-api/uniscript','_event$','OTHER_CLIENT_EDITING','Error\x20on\x20receiving\x20event','_sessions','awaiting_with_pending','_socketMessageSubscription','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','min','_getAPIPrefixPath','_sessionStatus$','saveSheetBlock','onTransformRemoteChangesetByStateCache','?size=','_upload','subscribe','_hasSessionsForEndpoint','reject','_onOffline','ONLINE','_commentUpdate$','objects','code','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','[CollaborationUndoRedoService]','_initRequestHeader','3187890TYctmy','_eventService','750400MGaXaU','263631RAGHBk','findIndex','getUploadOptions','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','transformMutationsWithChangeset','error$','encodeURIComponent','encode','\x20to\x20','update','_transformSelections','interceptor','includes','close$','_transformRemoteChangesetByIMECache','_localeService','updateCursorEvent','BASE64','/block/','AWAITING','onRemoteRej','loadBase','onLocalMutation','endpointKey','_acknowledgeAwaiting','collaborators','/universer-api/comb','isPermissionRej','href','transformStack\x20failed!','_transformAndApplyRemoteChangeset','unitId','event$','univer-pro.collaboration-client-adapter-service','find','unitID','[PendingState]:\x20received\x20rejection.','entries','CONFLICT','_commandService','_stopTelemetryCollaborationNewChangeset','[OfflineState]:\x20received\x20changeset.','floor','replace','_clearRedo','_exhaustRemoteChangesetQueue','AWAITING_WITH_PENDING','/object/','/allowed','FETCH_MISS','_replayCachedMutations','putCollaborators','members','onTransformRemoteChangesetByIMECache','offline','call','__Key__','getRoom','onMutationExecutedForCollab','_revisionService','FileId','Univer','20egGdmq','_registerDependencies','memberID','_httpService','getInterceptPoints','PERMISSION_REJ','_startCollaboration','clear','_onConflict','revision','CLOSE_ROOM','init','_collabSessionService','_onJoinRoomEvent','awaitingChangeset','stringify','UNIVER_SLIDE','[UniverCollaborationClientPlugin]','entityInit$','[FetchMissState]','_changesetReqId','getActiveSheet','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_snapshotServerService','_removeRoom','url','sessionStatus','close','roles','/rev/','_fetchMissChangesets','shouldCloseConn','object','_unitLoaded$','dispose$','location','NO_OTHER_CLIENTS_EDITING','requestParams','[CollaborationEntity]','_HTTPService','_onUserJoin','_sendingTimer','_tryEnsureSocket','SYNCED','hostname','UNIVER_DOC','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','changeset','/collaborator','_scheduleCollaborationTimeoutTimer','_showConflictNotification','__splitChunk__','withCredentials','docStateChange$','RETRY_CONNECTING_MAX_COUNT','accept','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','members$','updateCollaborator','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','PENDING','_telemetryService','defineProperty','_tryReconnect','COMMENT_UPDATE','reverse','getOwnPropertyDescriptor','_rescheduleHeartbeat','SUBMIT_CHANGESET_TIMEOUT','socketMessageSubscription','&source=','/universer-api/user/session-ticket','localUnitId','UNIVER_BASE','values','candidateSocket','_undoStacks','joinEvent','resolveUnit','columnGroups','getUnitType','set','_getRedoStack','/-/object/list','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','waitForRoom$','getTypeOfUnitDisposed$','SOCKET_FAILED','&assign=','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_decreaseWaiting','catch','_entities','some','getUnit','onRemoteRetry','executeCommand','_getUndoStack','_substituteUndoStack','5705hhfAWU','sendChangesetTimeout','onRemoteChangeset','every','transformUndoRedo','_networkConditionService','number','_socket','/new_changes','_onFetchMissResult','retryConnectingTimer','_localCacheService','_startTelemetryCollaborationNewChangeset','_getSendChangesetTimeout','setCfgEnableObjInherit','UNIVER_BOARD','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','socketService','updatePermissionPoint','onMissingChangesets','_onConnectionFailed','COMPRESS_MUTATION_SEND','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','_collaborationPaused','complete','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','session','enableAuthServer','_incrementRevisionNumber','[PendingState]:\x20received\x20acknowledgement.','c1Prime','loadUnit','saveSnapshot','ERROR_IMAGE_TYPE','createSocket','SUCCUSS','_unlockTransition','asObservable','onStarting','_transformStack','/universer-api/stream/file/upload','_updateStatus','rev','_createInitialState','status','LEAVE','session.room-permission-denied','addHandlerCallback','_transformUndoredo','_changesetSessionId','_univerInstanceService','_socketService','snapshot','/unit/','_injector','_onRemoteRetry','_onRemoteRejected','saveChangeset','objectID','onSendChangeset','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_state','pending','_transformIMECache','submit\x20changeset\x20error!','x-univer-host','SOCKET_FAILED_RETRY','delete','onTransformIME','routeKey','POST','_docStateChangeManagerService','then','_handlerCallback','disableLocalCache','closeSession','toPrimitive','unit','onlyLocal','infoRsp','_logService','sendHeartbeatTimer','getCurrentSelections','collabSubmitChangesetUrl','_commentService','_instanceService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','downloadEndpointUrl','_configService','SNAPSHOT_URL_KEY','_permissionService','UnitEmbedded','_resendWithTimeout','_sheetTransformSelectionsService','7836YwuJbt','unitType','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','status$','/universer-api/file/{fileID}/sign-url','dispose','isCompositionEnd','_disableEditing','_entityInit$','univer-pro.collaboration-client-socket-service','sessionStatus$','getUnitId','_undoRedoService','_config','COMPRESS_MUTATION_APPLY','addImageSourceCache','LOCAL_CACHE_INTERVAL','_initUnitPermissionChange','_clearRetryConnectingTimer','prototype','get','collaMsg','_handleRemoteChangesets','getCollabEntity$','confirm','JOIN_ROOM_FULL','_getUploadFileURL','workbook','create','UPDATE_CURSOR','OPTIONAL','_compressMutationService','send','_initMergeInterceptor','_clearTimeoutTimer','transformChangesets','refreshPermission','_createSession','updateMember','toString','ERROR_EXCEED_SIZE','failed\x20to\x20apply\x20missed\x20changesets!','[DataLoaderService]','fetching\x20missing\x20changesets\x20from\x20','fetchThroughInterceptors','_getSignURL','onRemoteAck','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_singleActiveUnitService','max','_shouldReportTelemetry','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','file','editingUnit','title','liveShareNewHost','getValue','3596747RtAFKd','_sendHeartbeat','_emitMembers','HEARTBEAT','ERROR_IMAGE','_onRemoteChangeset','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','/resources','enableSingleActiveInstanceLock','collaboration-client.auth.needGotoLoginAlert','_init','_throwTelemetryCollaborationNewChangeset','startsWith','onSyncEditingCollabCursor','cfgEnableObjInherit','subUnitId','_toggleOffline','override','getImage','disposeWithMe','_onUserLeave','Failed\x20to\x20update\x20permission\x20point','_getConfig','equals','_remoteChangesetQueue','USERS_LEAVE','commentUpdateEvent','stopTime','GLOBAL_ROOMS_CNT_EXCEEDS','_collaborationSessionService','compose','mutations','_collaborationTimeoutTimer','_clearLocalCache','conflict','reqId','getMemberID','getAllMembers','ws://127.0.0.1:8000/universer-api/comb/connect','timeoutTimer','toggleOnline','_members','\x20-\x20','getCurrentRevOfUnit','c2Prime','subject','body','onTransformSelections','updatePermissionObjEvent','map','@univerjs-pro/collaboration-client','patch','version','parse','changesets','_joinRoom','_onConnectionOpen','UUID','_resolveSessionIdentity','/-/object/-/batch_allowed','/universer-api/snapshot/','loadUnitOfRevision','getWorkbookSelections','saveAttachment','socket\x20open.','now','_identity','target','pluginName','selections','_applyRemoteChangeset','OTHER_CLIENTS_EDITING','push','_createSocket','requireSession','joinRsp','registerHTTPInterceptor','session.room-full','result','CHANGESET_SHOULD_RETRY','_imageSourceCache','360dmKTIR','setConfig','online$','_awaitingChangeset','CHANGESET_ACK','getCurrentUser','name','_acknowledgeAwaitingIfReady','function','_clearCollaborationTimeoutTimer','setWaitCount','pipe','cmd','_getSocketChannel','backupOfflineData','SHOULD_CLOSE_CONN','[CollaborationSessionService]:\x20socket\x20error','toggleOffline','_type','FAIL','getFocusedUnit','readAsDataURL','\x0aCurrent:\x20','loadOfflineData','_redoStacks','_onRemoteACK','objectType','loadSheet','authzUrl','sort','unsubscribe','LIVESHARE_TERMINATE','_lockTransition','[CollaborationState]:\x20apply\x20error!','_clearUndo','endsWith','USERS_ENTER','setShowComponents','post','onload','getSnapshotAPIPath','collaboration-client.config','action','_transformService','reconnect','transformSelections','maxSize','string','resend','_getDownloadEndpointURL','getDeserializedSheetBlock','newCsEvent','length','INGEST','focused$','/universer-api/authz','commentUpdate$','HELLO','add','_waitForHeartbeatResponse','JOIN_ROOM_NOT_EXISTS','m2Prime','LIVESHARE_FETCH_OPERATIONS','error','_substituteRedoStack','forEach','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_socketChannels','updateOfflineData','[SyncedState]:\x20received\x20acknowledgement.','avatar','_createInitialStateImpl','_cfgEnableObjInherit','_clearHeartbeatTimer','JOIN','params','_toggleOnline','_memberService','session.room-cnt-exceeds','liveShareOperation','resolve','[CollaborationSessionService]','PERMISSION_DENIED','_pendingSessions','_unitInfo$','LIVESHARE_NEW_HOST','deepClone','fetch_missing','SUBMIT_CHANGESET','_getCurrentRevision','startTime','socketReady','headers','_executeRemoteChangeset','_acknowledgedAwaitingRevision','text-x','_onMessage','fetchMissingChangesets','LIVESHARE_OPERATION','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','src','textRanges','_snapshotService','_getCtorByUniverInstanceType','_roomMembers','HEARTBEAT_INTERVAL','CHANGESET_REJ','getTypeOfUnitAdded$','removeMember','data','next','retryCount','signUrlServerUrl','UNIVER_PDF','unknown','_members$','_createHandler','hasOwnProperty','getSheetId','attachment','_replaceFileID','responseType','onCommentUpdate','method','_isEchoedAwaitingChangeset','upload','_transformRemoteChangesetByStateCache','_adapter','put','_isPermissionRej','capture','getCollabEntity','has'];_0x3e80=function(){return _0x2a6be5;};return _0x3e80();}Gt=H([V(0x0,_0x167908(_0x35e9e2)),V(0x1,_0x29bc05),V(0x2,_0x6f9bb2)],Gt);const W=_0x5685c4('univer-pro.collaboration-client.single-active-unit-service');let Kt=function(_0x2aec77){const _0x595624=_0x3bc572;return _0x2aec77[_0x2aec77[_0x595624(0x3d8)]=0x0]=_0x595624(0x3d8),_0x2aec77[_0x2aec77[_0x595624(0x24f)]=0x1]=_0x595624(0x24f),_0x2aec77;}({});function qt(_0xfb9627){const _0x478949=_0x3bc572;var _0x279fe3;return!!((_0x279fe3=_0xfb9627[_0x478949(0x2a4)])!=null&&_0x279fe3[_0x478949(0x3e7)]);}const Jt=new Set([_0xad6688['id']]),Yt=new Set([_0x9f63e['id'],_0x45dcdc['id'],_0xcd2053['id'],_0x5667d9['id']]);function Xt(_0x236b4e,_0x8662ba=Jt){const _0x1765a5=_0x3bc572;let _0x5b019d=[];for(let _0x444060 of _0x236b4e){if(_0x8662ba['has'](_0x444060['id'])){if(_0x5b019d[_0x1765a5(0x28d)]>0x0)break;_0x5b019d['push'](_0x444060);break;}if(qt(_0x444060)){if(_0x5b019d[_0x1765a5(0x28d)]>0x0)break;_0x5b019d['push'](_0x444060);break;}_0x5b019d['push'](_0x444060);}return _0x5b019d;}function Zt(_0x2fa2fa,_0x107587,_0x50fc6b,_0x575c42,_0x3c1fac){const _0x25ac7d=_0x3bc572;var _0x2434dd,_0x19a63a;let _0x2cda4f=Xt(_0x2fa2fa),_0x588498=_0x3c1fac[_0x25ac7d(0x25e)](),_0x21eb75=(_0x2434dd=_0x588498==null?void 0x0:_0x588498[_0x25ac7d(0x2e6)])==null?_0x25ac7d(0x2cb):_0x2434dd,_0x518e5f=(_0x19a63a=_0x588498==null?void 0x0:_0x588498[_0x25ac7d(0x3b6)])==null?_0x25ac7d(0x2cb):_0x19a63a;return{'changeset':{'unitID':_0x107587,'type':_0x386cb9(_0x50fc6b['getUnitType'](_0x107587)),'baseRev':_0x575c42[_0x25ac7d(0x233)](_0x107587),'revision':0x0,'userID':_0x21eb75,'memberID':_0x518e5f,'mutations':_0x2cda4f},'pendingMutations':_0x2fa2fa['slice'](_0x2cda4f['length'])};}const Qt=Zt;function $t(_0x34c562,_0x2dea2d,_0x39a881,_0x594f7e,_0x4d326c){const _0x11e82f=_0x3bc572;var _0x493ca1,_0x2ce202;let _0x1905dd=Xt(_0x34c562,Yt),_0x57dbfe=_0x4d326c[_0x11e82f(0x25e)](),_0x1a010f=(_0x493ca1=_0x57dbfe==null?void 0x0:_0x57dbfe[_0x11e82f(0x2e6)])==null?_0x11e82f(0x2cb):_0x493ca1,_0x11e40d=(_0x2ce202=_0x57dbfe==null?void 0x0:_0x57dbfe['memberID'])==null?_0x11e82f(0x2cb):_0x2ce202;return{'changeset':{'unitID':_0x2dea2d,'type':_0x386cb9(_0x39a881[_0x11e82f(0x404)](_0x2dea2d)),'baseRev':_0x594f7e[_0x11e82f(0x233)](_0x2dea2d),'revision':0x0,'userID':_0x1a010f,'memberID':_0x11e40d,'mutations':_0x1905dd},'pendingMutations':_0x34c562['slice'](_0x1905dd[_0x11e82f(0x28d)])};}function en(_0xaebef7,_0xa15779,_0x305232,_0x18911b,_0x3e8d3c){const _0x564341=_0x3bc572;var _0x160fca,_0x23d260;let _0x42550c=_0xaebef7[_0x564341(0x336)]((_0x26b98d,_0x14da05)=>{const _0x421f26=_0x564341;let _0x399f49=_0x26b98d[_0x26b98d['length']-0x1],{id:_0x4ce703}=_0x399f49==null?{}:_0x399f49,{id:_0x25ddb7,type:_0x465393}=_0x14da05,_0x1629f7=_0x14da05['params'];if(_0x4ce703&&_0x4ce703!==_0x25ddb7)throw Error(_0x421f26(0x3ec)+_0x4ce703+_0x421f26(0x232)+_0x25ddb7+'.');if(!_0x399f49)return[{'id':_0x25ddb7,'type':_0x465393,'params':{'unitId':_0x1629f7['unitId'],'textRanges':_0x1629f7[_0x421f26(0x2be)],'actions':_0x1629f7[_0x421f26(0x311)]}}];let _0xbd6d82=_0x399f49[_0x421f26(0x2a4)];return tn(_0xbd6d82,_0x1629f7)?[..._0x26b98d[_0x421f26(0x2f3)](0x0,-0x1),{..._0x399f49,'id':_0x25ddb7,'type':_0x465393,'params':{'unitId':_0x1629f7[_0x421f26(0x395)],'textRanges':_0x1629f7[_0x421f26(0x2be)],'actions':_0x52478b[_0x421f26(0x226)](_0xbd6d82[_0x421f26(0x311)],_0x1629f7[_0x421f26(0x311)])}}]:[..._0x26b98d,{'id':_0x25ddb7,'type':_0x465393,'params':{'unitId':_0x1629f7[_0x421f26(0x395)],'textRanges':_0x1629f7[_0x421f26(0x2be)],'actions':_0x1629f7[_0x421f26(0x311)]}}];},[]),_0x4781f7=_0x3e8d3c[_0x564341(0x25e)](),_0x54de57=(_0x160fca=_0x4781f7==null?void 0x0:_0x4781f7['userID'])==null?_0x564341(0x2cb):_0x160fca,_0x5bc475=(_0x23d260=_0x4781f7==null?void 0x0:_0x4781f7[_0x564341(0x3b6)])==null?'unknown':_0x23d260;return{'changeset':{'unitID':_0xa15779,'type':_0x386cb9(_0x305232['getUnitType'](_0xa15779)),'baseRev':_0x18911b['getCurrentRevOfUnit'](_0xa15779),'revision':0x0,'userID':_0x54de57,'memberID':_0x5bc475,'mutations':_0x42550c},'pendingMutations':_0xaebef7[_0x564341(0x2f3)](_0xaebef7['length'])};}function tn(_0x225627,_0x3db0f2){const _0x209f4e=_0x3bc572;return!nn(_0x225627)&&!nn(_0x3db0f2)&&rn(_0x225627[_0x209f4e(0x311)],_0x3db0f2['actions']);}function nn(_0x1d3c9f){const _0x1d36ed=_0x3bc572;return _0x1d3c9f[_0x1d36ed(0x1d5)]!==void 0x0;}function rn(_0x501cb3,_0x2e24f6){return an(_0x501cb3)&&an(_0x2e24f6)&&!sn(_0x501cb3)&&!sn(_0x2e24f6)&&!on(_0x501cb3)&&!on(_0x2e24f6);}function an(_0x5a27ae){const _0x2eb807=_0x3bc572;return cn(_0x5a27ae)[_0x2eb807(0x411)](_0x2dfea7=>ln(_0x2dfea7)&&_0x2dfea7['et']===_0x2eb807(0x2b8));}function on(_0x1594e9){const _0x5be26c=_0x3bc572;return cn(_0x1594e9)[_0x5be26c(0x411)](_0x5b4183=>Array[_0x5be26c(0x2fa)](_0x5b4183)||typeof _0x5b4183==_0x5be26c(0x288)||typeof _0x5b4183==_0x5be26c(0x41d));}function sn(_0x5e77a7){const _0xaaec87=_0x3bc572;return cn(_0x5e77a7)[_0xaaec87(0x411)](_0x18da95=>!ln(_0x18da95)||_0x18da95['et']!=='text-x'||!Array[_0xaaec87(0x2fa)](_0x18da95['e'])?!0x1:_0x18da95['e']['some'](_0x1080f3=>!ln(_0x1080f3)||!ln(_0x1080f3['body'])?!0x1:Object[_0xaaec87(0x1e2)][_0xaaec87(0x2ce)]['call'](_0x1080f3['body'],_0xaaec87(0x31f))||Object['prototype']['hasOwnProperty'][_0xaaec87(0x3ad)](_0x1080f3['body'],_0xaaec87(0x403))||Object[_0xaaec87(0x1e2)][_0xaaec87(0x2ce)][_0xaaec87(0x3ad)](_0x1080f3['body'],'blockRanges')));}function cn(_0x4c643a){const _0x5f3589=_0x3bc572;if(!Array[_0x5f3589(0x2fa)](_0x4c643a))return[];let _0x20596a=_0x4c643a[_0x5f3589(0x382)](_0x5f3589(0x236))?_0x4c643a:_0x4c643a[_0x5f3589(0x398)](_0x2e5c59=>Array['isArray'](_0x2e5c59)&&_0x2e5c59[_0x5f3589(0x382)](_0x5f3589(0x236)));if(!Array[_0x5f3589(0x2fa)](_0x20596a))return[];let _0x2417eb=_0x20596a[_0x5f3589(0x344)]('body');return _0x2417eb===-0x1?[]:_0x20596a['slice'](_0x2417eb+0x1);}function ln(_0xf32c6){const _0x43cf59=_0x3bc572;return typeof _0xf32c6==_0x43cf59(0x3d4)&&!!_0xf32c6&&!Array[_0x43cf59(0x2fa)](_0xf32c6);}function un(_0x1e2b47,_0x230f83){const _0xd4cf60=_0x3bc572;let _0x46b400=new _0x60521f(0x1);return setTimeout(()=>_0x46b400[_0xd4cf60(0x2c7)](_0x230f83),_0x1e2b47),_0x46b400[_0xd4cf60(0x43c)]()[_0xd4cf60(0x264)](_0x5d0356(0x1));}var dn,fn,pn;let mn=function(_0x3fbacb){const _0x201d6a=_0x3bc572;return _0x3fbacb['NOT_COLLAB']='not_collab',_0x3fbacb[_0x201d6a(0x3df)]='synced',_0x3fbacb[_0x201d6a(0x3f0)]=_0x201d6a(0x1af),_0x3fbacb[_0x201d6a(0x389)]='awaiting',_0x3fbacb[_0x201d6a(0x3a4)]=_0x201d6a(0x35e),_0x3fbacb[_0x201d6a(0x3a7)]=_0x201d6a(0x2b0),_0x3fbacb[_0x201d6a(0x39c)]='conflict',_0x3fbacb[_0x201d6a(0x319)]=_0x201d6a(0x3ac),_0x3fbacb;}({});const hn=0x4e20,gn=0x2bf20;var G=class{constructor(_0x5d5f51,_0xbaeeeb,_0x4d9ca,_0x4f58e1,_0x44c91a,_0x1d9120,_0x43249f,_0x5b128a,_0x17b511){const _0xcd37fc=_0x3bc572;this[_0xcd37fc(0x399)]=_0x5d5f51,this[_0xcd37fc(0x2f0)]=_0xbaeeeb,this[_0xcd37fc(0x349)]=_0x44c91a,this[_0xcd37fc(0x39d)]=_0x1d9120,this[_0xcd37fc(0x1db)]=_0x43249f,this[_0xcd37fc(0x3b1)]=_0x5b128a,this[_0xcd37fc(0x422)]=_0x17b511,z(this,_0xcd37fc(0x25c),null),z(this,_0xcd37fc(0x321),[]),this[_0xcd37fc(0x25c)]=_0x4d9ca,this[_0xcd37fc(0x321)]=_0x4f58e1;}[_0x3bc572(0x30e)](_0x4f0918){const _0x2ae6d4=_0x3bc572;let _0x3a92fb=this['_revisionService'][_0x2ae6d4(0x233)](this['unitID']);return _0x4f0918[_0x2ae6d4(0x3bd)]>_0x3a92fb+0x1?(this['_handler'][_0x2ae6d4(0x42a)]({'from':_0x3a92fb,'to':_0x4f0918[_0x2ae6d4(0x3bd)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x587166){const _0x38d83e=_0x3bc572;this['_undoRedoService'][_0x38d83e(0x41b)](this['unitID'],_0x587166);}[_0x3bc572(0x380)](_0x12320e){const _0x119d57=_0x3bc572;var _0x2eafd5,_0xd08b7c;(_0x2eafd5=(_0xd08b7c=this[_0x119d57(0x349)])[_0x119d57(0x237)])==null||_0x2eafd5['call'](_0xd08b7c,_0x12320e);}[_0x3bc572(0x1b0)](_0x2073bd){const _0x3f4b1a=_0x3bc572;var _0x4a1ff5,_0x52c6dc;return(_0x4a1ff5=(_0x52c6dc=this[_0x3f4b1a(0x349)])[_0x3f4b1a(0x1b5)])==null?void 0x0:_0x4a1ff5['call'](_0x52c6dc,_0x2073bd);}[_0x3bc572(0x2f8)](_0x1890b5){const _0x5555ec=_0x3bc572;var _0x2e143c,_0x1c4996;return(_0x2e143c=(_0x1c4996=this[_0x5555ec(0x349)])['onTransformState'])==null?void 0x0:_0x2e143c['call'](_0x1c4996,_0x1890b5);}[_0x3bc572(0x384)](_0x1287c4){const _0x1d5199=_0x3bc572;var _0xa35a20,_0x407031,_0x8b4ac4;return(_0xa35a20=(_0x407031=(_0x8b4ac4=this[_0x1d5199(0x349)])[_0x1d5199(0x3ab)])==null?void 0x0:_0x407031[_0x1d5199(0x3ad)](_0x8b4ac4,_0x1287c4))==null?_0x1287c4:_0xa35a20;}[_0x3bc572(0x2d7)](_0xffa975){const _0x3d522a=_0x3bc572;var _0x4297d9,_0x510468,_0x2e769c;return(_0x4297d9=(_0x510468=(_0x2e769c=this[_0x3d522a(0x349)])[_0x3d522a(0x365)])==null?void 0x0:_0x510468['call'](_0x2e769c,_0xffa975))==null?_0xffa975:_0x4297d9;}[_0x3bc572(0x31e)](_0x3c5e80){const _0x5d8d25=_0x3bc572;if(this[_0x5d8d25(0x2f0)]===_0x1f1b4f[_0x5d8d25(0x3e1)]){let {unitID:_0x3fe5db,mutations:_0x16a46b,memberID:_0x24dfed}=_0x3c5e80,_0x37463c=_0x16a46b[_0x5d8d25(0x28d)]>0x0?_0x16a46b[0x0][_0x5d8d25(0x2a4)][_0x5d8d25(0x2be)]:[];if(Array[_0x5d8d25(0x2fa)](_0x37463c)&&_0x37463c[_0x5d8d25(0x28d)]>0x0){var _0x1852d5,_0x1409ac;(_0x1852d5=(_0x1409ac=this[_0x5d8d25(0x349)])[_0x5d8d25(0x215)])==null||_0x1852d5[_0x5d8d25(0x3ad)](_0x1409ac,{'unitID':_0x3fe5db,'memberID':_0x24dfed,'textRanges':_0x37463c});}}}['_updateLocalCache'](){const _0x4e55a4=_0x3bc572;var _0xe70d84;(_0xe70d84=this['_localCacheService'])==null||_0xe70d84[_0x4e55a4(0x29d)](this[_0x4e55a4(0x399)],this['type'],this[_0x4e55a4(0x25c)],this[_0x4e55a4(0x321)]);}[_0x3bc572(0x2b2)](){const _0x18ebcc=_0x3bc572;return this['_revisionService'][_0x18ebcc(0x233)](this[_0x18ebcc(0x399)]);}['_incrementRevisionNumber'](){const _0x56edf3=_0x3bc572;this[_0x56edf3(0x3b1)][_0x56edf3(0x32d)](this[_0x56edf3(0x399)]);}[_0x3bc572(0x2b6)](_0x3d292d){const _0x4df71f=_0x3bc572;let _0xcf0aac=this[_0x4df71f(0x384)](_0x3d292d);_0xcf0aac=this[_0x4df71f(0x2d7)](_0xcf0aac);let _0x3dbc31=_0x416b22(_0xcf0aac[_0x4df71f(0x227)],this[_0x4df71f(0x39d)],{'fromCollab':!0x0});if(!_0x3dbc31[_0x4df71f(0x256)]){var _0x225ce9;throw _0x3dbc31[_0x4df71f(0x298)]instanceof Error?_0x3dbc31[_0x4df71f(0x298)]:Error((_0x225ce9=_0x3dbc31[_0x4df71f(0x298)])==null?_0x4df71f(0x27a):_0x225ce9);}this[_0x4df71f(0x1b0)](_0xcf0aac),this[_0x4df71f(0x2f8)](_0xcf0aac),this[_0x4df71f(0x447)](_0x3d292d),this['_transformSelections'](_0xcf0aac),this['_syncEditingCollabCursor'](_0xcf0aac),this[_0x4df71f(0x433)]();}};let K=class extends G{constructor(_0x193fe0,_0x3b4e21,_0x19c6aa,_0x2dcf7f,_0x2ea382,_0x3bb737,_0x486d93,_0x5ce6c6,_0xe34151,_0x24871d){const _0xc583e0=_0x3bc572;super(_0x193fe0,_0x3b4e21,null,[],_0x19c6aa,_0x486d93,_0x3bb737,_0x2dcf7f,_0x24871d),this[_0xc583e0(0x44d)]=_0x2ea382,this[_0xc583e0(0x1c1)]=_0x5ce6c6,this[_0xc583e0(0x284)]=_0xe34151,this[_0xc583e0(0x300)]=_0x24871d,z(this,'status','synced');}[_0x3bc572(0x34d)](_0x44e010){const _0x247f59=_0x3bc572;let _0x4d3dd1=this[_0x247f59(0x44d)][_0x247f59(0x2fe)](q,this['unitID'],this[_0x247f59(0x2f0)],[_0x44e010],this[_0x247f59(0x349)]);return _0x4d3dd1[_0x247f59(0x32a)](),_0x4d3dd1[_0x247f59(0x2f5)](),_0x4d3dd1;}[_0x3bc572(0x419)](_0x4f21f5){const _0x14436c=_0x3bc572;if(this[_0x14436c(0x30e)](_0x4f21f5))return this[_0x14436c(0x44d)][_0x14436c(0x2fe)](Q,this[_0x14436c(0x399)],this['type'],null,[],null,[_0x4f21f5],this[_0x14436c(0x349)]);try{let _0x64a9e0=this['_transformService']['transformMutationsWithChangeset'](_0x4f21f5,[_0x1b64d1]);if(_0x34fd35(_0x64a9e0)){let {c1Prime:_0x23023e}=_0x64a9e0;return this[_0x14436c(0x2b6)](_0x23023e),this;}throw _0x64a9e0[_0x14436c(0x298)];}catch(_0x3ca0d3){return this[_0x14436c(0x1c1)][_0x14436c(0x298)](_0x3ca0d3),this[_0x14436c(0x3bc)](!0x1);}}[_0x3bc572(0x3bc)](_0x3fe7da){const _0x232d0d=_0x3bc572;return this['_injector'][_0x232d0d(0x2fe)](X,this[_0x232d0d(0x399)],this[_0x232d0d(0x2f0)],null,[],this[_0x232d0d(0x349)],_0x3fe7da);}[_0x3bc572(0x1fd)](_0x8ad938){const _0x556603=_0x3bc572;if(_0x8ad938[_0x556603(0x3bd)]<=this[_0x556603(0x2b2)]())return this;throw Error(_0x556603(0x29e));}['onRemoteRej'](){throw Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x3bc572(0x26a)](){const _0xa7c583=_0x3bc572;return this[_0xa7c583(0x44d)][_0xa7c583(0x2fe)](Z,this['unitID'],this[_0xa7c583(0x2f0)],null,[],this[_0xa7c583(0x349)]);}[_0x3bc572(0x230)](){return this;}['resend'](){const _0x1c6c19=_0x3bc572;throw Error(_0x1c6c19(0x1d1));}['fetchMiss'](){const _0x509056=_0x3bc572;let _0x2b52a0=this[_0x509056(0x3b1)][_0x509056(0x233)](this[_0x509056(0x399)]);return this[_0x509056(0x349)]['onMissingChangesets']({'from':_0x2b52a0,'to':0x0}),this['_injector'][_0x509056(0x2fe)](Q,this['unitID'],this[_0x509056(0x2f0)],null,[],null,[],this['_handler']);}};K=H([V(0x3,_0x167908(_0x2cb5e4)),V(0x4,_0x167908(_0x35e9e2)),V(0x5,_0x51c17f),V(0x6,_0x1f135e),V(0x7,_0x2e09c7),V(0x8,_0x29bc05),V(0x9,_0x2a5dd8(U))],K);let q=dn=class extends G{constructor(_0x436fdd,_0x2b45ee,_0x151dad,_0x3c7997,_0x4a0aaa,_0x2c0083,_0x5017fa,_0x5044a9,_0xdce33,_0x1673ae,_0x53c64b,_0x40a4a5,_0x177124,_0x1ce2e3){const _0x512115=_0x3bc572;super(_0x436fdd,_0x2b45ee,null,_0x151dad,_0x3c7997,_0xdce33,_0x177124,_0x2c0083,_0x1ce2e3),this[_0x512115(0x44d)]=_0x4a0aaa,this['_userManagerService']=_0x5017fa,this[_0x512115(0x1c1)]=_0x5044a9,this[_0x512115(0x1c9)]=_0x1673ae,this[_0x512115(0x284)]=_0x53c64b,this['_univerInstanceService']=_0x40a4a5,z(this,'status',_0x512115(0x1af)),z(this,_0x512115(0x317),null),z(this,'_sendingTimer',null);}[_0x3bc572(0x34d)](_0x1116c0){const _0x2367e4=_0x3bc572;return this['_pendingMutations'][_0x2367e4(0x250)](_0x1116c0),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x432eb0){const _0x3e186a=_0x3bc572;if(this[_0x3e186a(0x30e)](_0x432eb0))return this[_0x3e186a(0x2f1)](),this[_0x3e186a(0x44d)][_0x3e186a(0x2fe)](Q,this[_0x3e186a(0x399)],this[_0x3e186a(0x2f0)],null,this[_0x3e186a(0x321)],null,[_0x432eb0],this[_0x3e186a(0x349)]);try{let _0xb536f2=this[_0x3e186a(0x284)][_0x3e186a(0x37a)](_0x432eb0,this['_pendingMutations']);if(_0x34fd35(_0xb536f2)){let {c1Prime:_0x3fc4c5,m2Prime:_0x510014}=_0xb536f2;this[_0x3e186a(0x2b6)](_0x3fc4c5);let _0x13d8c8=this[_0x3e186a(0x44d)][_0x3e186a(0x2fe)](dn,this[_0x3e186a(0x399)],this[_0x3e186a(0x2f0)],_0x510014,this[_0x3e186a(0x349)]);this[_0x3e186a(0x2f1)]();let _0x18429a=new Date()[_0x3e186a(0x339)](),_0x36abfd=this[_0x3e186a(0x317)]?Math[_0x3e186a(0x200)](this['_scheduleCompleteTimestamp']-_0x18429a,0x0):this[_0x3e186a(0x424)]();return _0x13d8c8[_0x3e186a(0x32a)](_0x36abfd),_0x13d8c8;}throw _0xb536f2[_0x3e186a(0x298)];}catch(_0x133398){return this[_0x3e186a(0x1c1)]['error'](_0x133398),this[_0x3e186a(0x3bc)](!0x1);}}[_0x3bc572(0x1fd)](_0x529686){const _0xcab950=_0x3bc572;if(_0x529686['revision']<=this[_0xcab950(0x2b2)]())return this;throw Error(_0xcab950(0x434));}[_0x3bc572(0x38a)](){const _0xfba4fa=_0x3bc572;throw Error(_0xfba4fa(0x39a));}[_0x3bc572(0x413)](){return this;}[_0x3bc572(0x26a)](){const _0x58936e=_0x3bc572;return this['_clearScheduledTask'](),this[_0x58936e(0x44d)][_0x58936e(0x2fe)](Z,this[_0x58936e(0x399)],this[_0x58936e(0x2f0)],null,this[_0x58936e(0x321)],this['_handler']);}[_0x3bc572(0x230)](){return this;}[_0x3bc572(0x32a)](_0xda5e91){const _0x31de7b=_0x3bc572;let _0x44994a=_0xda5e91==null?this[_0x31de7b(0x424)]():_0xda5e91;this[_0x31de7b(0x317)]=new Date()['getTime']()+_0x44994a,this['_sendingTimer']=setTimeout(()=>{const _0x2357b1=_0x31de7b;this['_clearScheduledTask']();let _0x1f5127=null;switch(this[_0x2357b1(0x2f0)]){case _0x1f1b4f[_0x2357b1(0x33c)]:_0x1f5127=Zt(this[_0x2357b1(0x321)],this[_0x2357b1(0x399)],this['_univerInstanceService'],this['_revisionService'],this[_0x2357b1(0x2e0)]);break;case _0x1f1b4f['UNIVER_DOC']:_0x1f5127=this['_pendingMutations']['every'](_0x56f2d6=>_0x56f2d6['id']===_0x7aa9b['id'])?en(this[_0x2357b1(0x321)],this[_0x2357b1(0x399)],this[_0x2357b1(0x449)],this[_0x2357b1(0x3b1)],this[_0x2357b1(0x2e0)]):Zt(this[_0x2357b1(0x321)],this[_0x2357b1(0x399)],this['_univerInstanceService'],this[_0x2357b1(0x3b1)],this['_userManagerService']);break;case _0x1f1b4f['UNIVER_SLIDE']:_0x1f5127=$t(this[_0x2357b1(0x321)],this['unitID'],this[_0x2357b1(0x449)],this[_0x2357b1(0x3b1)],this[_0x2357b1(0x2e0)]);break;case _0x1f1b4f[_0x2357b1(0x2ca)]:_0x1f5127=Qt(this[_0x2357b1(0x321)],this[_0x2357b1(0x399)],this[_0x2357b1(0x449)],this['_revisionService'],this[_0x2357b1(0x2e0)]);break;case _0x1f1b4f['UNIVER_BOARD']:_0x1f5127=Zt(this[_0x2357b1(0x321)],this[_0x2357b1(0x399)],this[_0x2357b1(0x449)],this['_revisionService'],this['_userManagerService']);break;case _0x1f1b4f[_0x2357b1(0x3fd)]:_0x1f5127=Zt(this[_0x2357b1(0x321)],this[_0x2357b1(0x399)],this[_0x2357b1(0x449)],this[_0x2357b1(0x3b1)],this[_0x2357b1(0x2e0)]);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x2357b1(0x2f0)]+'\x20in\x20_schedule.');}let {changeset:_0x2bb61e,pendingMutations:_0x63a9c9}=_0x1f5127;this[_0x2357b1(0x349)][_0x2357b1(0x1ac)](_0x2bb61e);let _0x4fb4a4=_0x63a9c9['length']?this[_0x2357b1(0x44d)][_0x2357b1(0x2fe)](Y,this[_0x2357b1(0x399)],this['type'],_0x2bb61e,_0x63a9c9,this[_0x2357b1(0x349)],void 0x0):this['_injector'][_0x2357b1(0x2fe)](J,this[_0x2357b1(0x399)],this[_0x2357b1(0x2f0)],_0x2bb61e,this['_handler']);_0x4fb4a4['_updateLocalCache'](),this[_0x2357b1(0x349)]['onStateChange'](this,_0x4fb4a4);},_0x44994a);}[_0x3bc572(0x424)](){const _0x4d2098=_0x3bc572;var _0x24ef1f;let _0x4140e7=this[_0x4d2098(0x1c9)][_0x4d2098(0x306)](R);return(_0x24ef1f=_0x4140e7==null?void 0x0:_0x4140e7[_0x4d2098(0x418)])==null?0x7d0:_0x24ef1f;}[_0x3bc572(0x289)](){const _0x4be7b8=_0x3bc572;throw Error(_0x4be7b8(0x370));}[_0x3bc572(0x2f1)](){const _0x8b46b0=_0x3bc572;this[_0x8b46b0(0x3dd)]!=null&&(clearTimeout(this[_0x8b46b0(0x3dd)]),this[_0x8b46b0(0x3dd)]=null);}[_0x3bc572(0x3bc)](_0x5aee6c){const _0x5c1ca3=_0x3bc572;return this['_clearScheduledTask'](),this[_0x5c1ca3(0x44d)][_0x5c1ca3(0x2fe)](X,this['unitID'],this[_0x5c1ca3(0x2f0)],null,this[_0x5c1ca3(0x321)],this[_0x5c1ca3(0x349)],_0x5aee6c);}};q=dn=H([V(0x4,_0x167908(_0x35e9e2)),V(0x5,_0x167908(_0x2cb5e4)),V(0x6,_0x167908(_0x1ab04a)),V(0x7,_0x2e09c7),V(0x8,_0x1f135e),V(0x9,_0xa7a1b6),V(0xa,_0x29bc05),V(0xb,_0x6f9bb2),V(0xc,_0x51c17f),V(0xd,_0x2a5dd8(U))],q);let J=fn=class extends G{constructor(_0xc0890d,_0x440a5f,_0x40c150,_0x518e52,_0x558068,_0x2ca0fb,_0x5cd4bc,_0x49d34c,_0x3ad081,_0x3369dc,_0x18f9de){const _0x19178e=_0x3bc572;super(_0xc0890d,_0x440a5f,_0x40c150,[],_0x518e52,_0x5cd4bc,_0x3369dc,_0x2ca0fb,_0x18f9de),this[_0x19178e(0x44d)]=_0x558068,this['_logService']=_0x49d34c,this[_0x19178e(0x284)]=_0x3ad081,z(this,_0x19178e(0x443),'awaiting'),z(this,_0x19178e(0x34f),0x0),z(this,_0x19178e(0x342),0x0),z(this,_0x19178e(0x2e7),void 0x0),z(this,_0x19178e(0x320),void 0x0);}[_0x3bc572(0x34d)](_0x1142c6){const _0x4bddac=_0x3bc572;this[_0x4bddac(0x2f1)]();let _0x4130fa=this[_0x4bddac(0x44d)][_0x4bddac(0x2fe)](Y,this[_0x4bddac(0x399)],this['type'],this[_0x4bddac(0x25c)],[_0x1142c6],this[_0x4bddac(0x349)],this[_0x4bddac(0x2e7)]);return _0x4130fa[_0x4bddac(0x2f5)](),_0x4130fa;}[_0x3bc572(0x419)](_0x224e8e){const _0x5f0405=_0x3bc572;if(this[_0x5f0405(0x30e)](_0x224e8e))return this['_clearScheduledTask'](),this[_0x5f0405(0x44d)][_0x5f0405(0x2fe)](Q,this['unitID'],this[_0x5f0405(0x2f0)],this[_0x5f0405(0x25c)],[],null,[_0x224e8e],this[_0x5f0405(0x349)]);try{let _0x225aea=this['_transformService']['transformChangesets']([_0x224e8e],[this[_0x5f0405(0x25c)]],!0x1);if(_0x41af53(_0x225aea)){let {c1Prime:_0x58177a,c2Prime:_0x3af9b8}=_0x225aea;this[_0x5f0405(0x2b6)](_0x58177a[0x0]),_0x3af9b8[0x0][_0x5f0405(0x2eb)]=this[_0x5f0405(0x2b2)](),this[_0x5f0405(0x2f1)]();let _0x970271=this[_0x5f0405(0x44d)]['createInstance'](fn,this[_0x5f0405(0x399)],this[_0x5f0405(0x2f0)],_0x3af9b8[0x0],this['_handler']);return _0x970271[_0x5f0405(0x2f5)](),_0x970271;}throw _0x225aea[_0x5f0405(0x298)];}catch(_0x2f4546){return this[_0x5f0405(0x1c1)]['error'](_0x2f4546),this[_0x5f0405(0x3bc)](!0x1);}}[_0x3bc572(0x1fd)](_0xc8a96d){const _0x5e6f23=_0x3bc572;this[_0x5e6f23(0x2f1)]();let _0x3d585e=this[_0x5e6f23(0x3b1)][_0x5e6f23(0x233)](this[_0x5e6f23(0x399)]);if(_0xc8a96d['revision']<=_0x3d585e)return this;if(this[_0x5e6f23(0x30e)](_0xc8a96d))return this[_0x5e6f23(0x44d)][_0x5e6f23(0x2fe)](Q,this[_0x5e6f23(0x399)],this[_0x5e6f23(0x2f0)],this['_awaitingChangeset'],[],_0xc8a96d[_0x5e6f23(0x3bd)],[],this[_0x5e6f23(0x349)]);this[_0x5e6f23(0x433)]();let _0x498370=this[_0x5e6f23(0x44d)][_0x5e6f23(0x2fe)](K,this[_0x5e6f23(0x399)],this['type'],this[_0x5e6f23(0x349)]);return _0x498370[_0x5e6f23(0x2f5)](),_0x498370;}[_0x3bc572(0x38a)](_0x4327a7){const _0x216248=_0x3bc572;return this[_0x216248(0x3bc)](!!(_0x4327a7!=null&&_0x4327a7[_0x216248(0x391)]));}[_0x3bc572(0x413)](_0x456a76){const _0x1233a6=_0x3bc572;return this[_0x1233a6(0x342)]>gn?this['toggleOffline']():(this['_resendTimer']=un(this[_0x1233a6(0x34f)],{'timeout':this[_0x1233a6(0x34f)],'reqId':_0x456a76[_0x1233a6(0x22b)]}),this[_0x1233a6(0x320)]=this[_0x1233a6(0x2e7)][_0x1233a6(0x368)](({reqId:_0x1b5f3e,timeout:_0x1b343b})=>{const _0x2133a4=_0x1233a6;this[_0x2133a4(0x1cd)](_0x1b5f3e,_0x1b343b);}),this);}[_0x3bc572(0x26a)](){const _0x2a8ffa=_0x3bc572;return this[_0x2a8ffa(0x2f1)](),this['_injector'][_0x2a8ffa(0x2fe)](Z,this[_0x2a8ffa(0x399)],this[_0x2a8ffa(0x2f0)],this[_0x2a8ffa(0x25c)],[],this[_0x2a8ffa(0x349)]);}['toggleOnline'](){return this;}[_0x3bc572(0x289)](){const _0x2f5378=_0x3bc572;this[_0x2f5378(0x349)][_0x2f5378(0x1ac)](this['_awaitingChangeset']);}[_0x3bc572(0x3bc)](_0x4605be){const _0x3eee3d=_0x3bc572;return this[_0x3eee3d(0x2f1)](),this[_0x3eee3d(0x44d)][_0x3eee3d(0x2fe)](X,this[_0x3eee3d(0x399)],this['type'],this[_0x3eee3d(0x25c)],[],this[_0x3eee3d(0x349)],_0x4605be);}['_resendWithTimeout'](_0x52b3db,_0x31a0df){const _0x22d3d7=_0x3bc572;var _0x31a873;_0x52b3db===((_0x31a873=this[_0x22d3d7(0x25c)])==null?void 0x0:_0x31a873[_0x22d3d7(0x22b)])&&(this[_0x22d3d7(0x289)](),this[_0x22d3d7(0x34f)]=_0x31a0df===0x0?0x3e8:Math[_0x22d3d7(0x361)](_0x31a0df*0x2,hn),this[_0x22d3d7(0x342)]+=this[_0x22d3d7(0x34f)]);}['_clearScheduledTask'](){const _0x6964a3=_0x3bc572;var _0x175c32;(_0x175c32=this['_sender'])==null||_0x175c32['unsubscribe'](),this[_0x6964a3(0x34f)]=0x0,this[_0x6964a3(0x342)]=0x0;}};J=fn=H([V(0x4,_0x167908(_0x35e9e2)),V(0x5,_0x167908(_0x2cb5e4)),V(0x6,_0x1f135e),V(0x7,_0x2e09c7),V(0x8,_0x29bc05),V(0x9,_0x51c17f),V(0xa,_0x2a5dd8(U))],J);let Y=pn=class extends G{constructor(_0x40c54b,_0x28c7f8,_0x13e26b,_0x5e406e,_0x10d86c,_0x3dfb21,_0x9b0053,_0x58a19a,_0x546f7b,_0x1cbba9,_0x3d8be1,_0x1374fe,_0x42f9ee){const _0x367900=_0x3bc572;super(_0x40c54b,_0x28c7f8,_0x13e26b,_0x5e406e,_0x10d86c,_0x546f7b,_0x1374fe,_0x58a19a,_0x42f9ee),this[_0x367900(0x44d)]=_0x9b0053,this[_0x367900(0x1c1)]=_0x1cbba9,this[_0x367900(0x284)]=_0x3d8be1,this[_0x367900(0x300)]=_0x42f9ee,z(this,_0x367900(0x443),_0x367900(0x35e)),z(this,'_resendTimeout',0x0),z(this,_0x367900(0x342),0x0),z(this,_0x367900(0x2e7),void 0x0),z(this,_0x367900(0x320),void 0x0),_0x3dfb21&&(this[_0x367900(0x2e7)]=_0x3dfb21,this['_sender']=this[_0x367900(0x2e7)][_0x367900(0x368)](({reqId:_0x1c5bc8,timeout:_0x32b8a2})=>{this['_resendWithTimeout'](_0x1c5bc8,_0x32b8a2);}));}['appendMutation'](_0x1bc6ec){const _0x5b6dc7=_0x3bc572;return this[_0x5b6dc7(0x321)][_0x5b6dc7(0x250)](_0x1bc6ec),this;}['onRemoteChangeset'](_0x40f30b){const _0x2feb80=_0x3bc572;if(this['_checkMissing'](_0x40f30b))return this['_clearScheduledTask'](),this['_injector'][_0x2feb80(0x2fe)](Q,this[_0x2feb80(0x399)],this[_0x2feb80(0x2f0)],this[_0x2feb80(0x25c)],this[_0x2feb80(0x321)],null,[_0x40f30b],this[_0x2feb80(0x349)]);try{let _0x1d7641=this[_0x2feb80(0x284)][_0x2feb80(0x1f2)]([_0x40f30b],[this[_0x2feb80(0x25c)]],!0x1);if(_0x41af53(_0x1d7641)){let {c1Prime:_0x905a8a,c2Prime:_0x3b8545}=_0x1d7641,_0x35e187=this[_0x2feb80(0x284)][_0x2feb80(0x37a)](_0x905a8a[0x0],this[_0x2feb80(0x321)]);if(_0x34fd35(_0x35e187)){let {c1Prime:_0x5c7cb1,m2Prime:_0x150589}=_0x35e187;return this['_executeRemoteChangeset'](_0x5c7cb1),_0x3b8545[0x0][_0x2feb80(0x2eb)]=this[_0x2feb80(0x2b2)](),this[_0x2feb80(0x2f1)](),this[_0x2feb80(0x44d)]['createInstance'](pn,this[_0x2feb80(0x399)],this[_0x2feb80(0x2f0)],_0x3b8545[0x0],_0x150589,this[_0x2feb80(0x349)],void 0x0);}throw _0x35e187[_0x2feb80(0x298)];}throw _0x1d7641[_0x2feb80(0x298)];}catch(_0x351b64){return this['_logService'][_0x2feb80(0x298)](_0x351b64),this[_0x2feb80(0x3bc)](!0x1);}}[_0x3bc572(0x1fd)](_0x323294){const _0x2325ca=_0x3bc572;this[_0x2325ca(0x2f1)]();let _0x2817d3=this[_0x2325ca(0x2b2)]();if(_0x323294[_0x2325ca(0x3bd)]<=_0x2817d3)return this;if(this[_0x2325ca(0x30e)](_0x323294))return this[_0x2325ca(0x44d)][_0x2325ca(0x2fe)](Q,this[_0x2325ca(0x399)],this['type'],this[_0x2325ca(0x25c)],this[_0x2325ca(0x321)],_0x323294[_0x2325ca(0x3bd)],[],this[_0x2325ca(0x349)]);this[_0x2325ca(0x433)]();let _0x50fcc6=this[_0x2325ca(0x44d)][_0x2325ca(0x2fe)](q,this['unitID'],this['type'],this[_0x2325ca(0x321)],this[_0x2325ca(0x349)]);return _0x50fcc6['_schedule'](),_0x50fcc6[_0x2325ca(0x2f5)](),_0x50fcc6;}[_0x3bc572(0x38a)](_0x4b91d8){const _0x357879=_0x3bc572;return this[_0x357879(0x3bc)](!!(_0x4b91d8!=null&&_0x4b91d8[_0x357879(0x391)]));}[_0x3bc572(0x413)](_0x233c4c){const _0x33daa3=_0x3bc572;return this['_maxTotalRetryTimeout']>gn?this['toggleOffline']():(this[_0x33daa3(0x2e7)]=un(this[_0x33daa3(0x34f)],{'timeout':this[_0x33daa3(0x34f)],'reqId':_0x233c4c[_0x33daa3(0x22b)]}),this[_0x33daa3(0x320)]=this[_0x33daa3(0x2e7)][_0x33daa3(0x368)](({reqId:_0xf05885,timeout:_0x15ec91})=>{const _0x5c9f10=_0x33daa3;this[_0x5c9f10(0x1cd)](_0xf05885,_0x15ec91);}),this);}[_0x3bc572(0x26a)](){const _0x1d1143=_0x3bc572;return this[_0x1d1143(0x2f1)](),this['_injector'][_0x1d1143(0x2fe)](Z,this['unitID'],this['type'],this[_0x1d1143(0x25c)],this[_0x1d1143(0x321)],this[_0x1d1143(0x349)]);}[_0x3bc572(0x230)](){return this;}['resend'](){const _0x31efb8=_0x3bc572;this[_0x31efb8(0x349)][_0x31efb8(0x1ac)](this['_awaitingChangeset']);}[_0x3bc572(0x3bc)](_0xc6b02a){const _0x42ee77=_0x3bc572;return this[_0x42ee77(0x2f1)](),this[_0x42ee77(0x44d)][_0x42ee77(0x2fe)](X,this[_0x42ee77(0x399)],this[_0x42ee77(0x2f0)],null,this['_pendingMutations'],this['_handler'],_0xc6b02a);}[_0x3bc572(0x1cd)](_0x3a8ea2,_0x35077d){const _0x3f64b8=_0x3bc572;var _0x2ce4cb;_0x3a8ea2===((_0x2ce4cb=this[_0x3f64b8(0x25c)])==null?void 0x0:_0x2ce4cb[_0x3f64b8(0x22b)])&&(this['resend'](),this[_0x3f64b8(0x34f)]=_0x35077d===0x0?0x3e8:Math[_0x3f64b8(0x361)](_0x35077d*0x2,hn),this[_0x3f64b8(0x342)]+=this['_resendTimeout']);}[_0x3bc572(0x2f1)](){const _0x2e4961=_0x3bc572;var _0x148598;(_0x148598=this[_0x2e4961(0x320)])==null||_0x148598['unsubscribe'](),this[_0x2e4961(0x34f)]=0x0,this[_0x2e4961(0x342)]=0x0;}};Y=pn=H([V(0x6,_0x167908(_0x35e9e2)),V(0x7,_0x167908(_0x2cb5e4)),V(0x8,_0x1f135e),V(0x9,_0x2e09c7),V(0xa,_0x29bc05),V(0xb,_0x51c17f),V(0xc,_0x2a5dd8(U))],Y);let X=class extends G{constructor(_0xb0a240,_0x228080,_0x4b9d61,_0x37de91,_0x35b607,_0x532b40=!0x1,_0x2b63ca,_0x5a1bfa,_0x507131,_0x402147,_0x3018ec,_0xca040e,_0x24e3fb){const _0x528483=_0x3bc572;super(_0xb0a240,_0x228080,_0x4b9d61,_0x37de91,_0x35b607,_0x5a1bfa,_0x507131,_0x402147,_0x24e3fb),this[_0x528483(0x2da)]=_0x532b40,this[_0x528483(0x1cb)]=_0x2b63ca,this['_localeService']=_0x3018ec,this[_0x528483(0x33e)]=_0xca040e,this[_0x528483(0x300)]=_0x24e3fb,z(this,_0x528483(0x443),_0x528483(0x22a)),this[_0x528483(0x3e6)](),this['_clearLocalCache'](),this['_disableEditing']();}[_0x3bc572(0x34d)](){return this;}[_0x3bc572(0x419)](){return this;}[_0x3bc572(0x1fd)](){return this;}[_0x3bc572(0x38a)](){return this;}[_0x3bc572(0x413)](){return this;}[_0x3bc572(0x26a)](){return this;}[_0x3bc572(0x230)](){return this;}[_0x3bc572(0x289)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3bc572(0x229)](){const _0x5cd7c0=_0x3bc572;var _0x2e369f,_0x2899b6,_0x96e06;(_0x2e369f=this[_0x5cd7c0(0x422)])==null||(_0x2899b6=_0x2e369f[_0x5cd7c0(0x267)])==null||(_0x2899b6=_0x2899b6['call'](_0x2e369f,this['unitID'],_0x5cd7c0(0x22a)))==null||_0x2899b6['catch'](()=>void 0x0),(_0x96e06=this[_0x5cd7c0(0x422)])==null||_0x96e06[_0x5cd7c0(0x29d)](this[_0x5cd7c0(0x399)],this[_0x5cd7c0(0x2f0)],null,[]);}[_0x3bc572(0x3e6)](){const _0x243976=_0x3bc572;this['_isPermissionRej']?this[_0x243976(0x33e)][_0x243976(0x340)]({'id':_0x243976(0x2ab)}):this[_0x243976(0x33e)][_0x243976(0x340)]({'id':_0x243976(0x39c)});}[_0x3bc572(0x1d6)](){const _0x345c9a=_0x3bc572;this[_0x345c9a(0x1cb)][_0x345c9a(0x429)](new _0x3d21fe(this[_0x345c9a(0x399)])['id'],!0x1);}};X=H([V(0x6,_0x167908(_0x3058fc)),V(0x7,_0x1f135e),V(0x8,_0x51c17f),V(0x9,_0x167908(_0x2cb5e4)),V(0xa,_0x167908(_0x3b5f18)),V(0xb,_0x167908(B)),V(0xc,_0x2a5dd8(U))],X);let Z=class extends G{constructor(_0x102cc1,_0x41a25a,_0x391f61,_0x315bd0,_0x5b7f17,_0x450a10,_0x2a6560,_0x32183c,_0x3b72e7,_0x155a71){const _0x141176=_0x3bc572;super(_0x102cc1,_0x41a25a,_0x391f61,_0x315bd0,_0x5b7f17,_0x32183c,_0x3b72e7,_0x2a6560,_0x155a71),this[_0x141176(0x44d)]=_0x450a10,z(this,_0x141176(0x443),'offline');}[_0x3bc572(0x34d)](_0x4590f5){const _0x5b0052=_0x3bc572;return this[_0x5b0052(0x321)][_0x5b0052(0x250)](_0x4590f5),this[_0x5b0052(0x2f5)](),this;}[_0x3bc572(0x419)](_0x4c059e){const _0x1664a1=_0x3bc572;throw Error(_0x1664a1(0x39f));}['onRemoteAck'](){const _0x5316ec=_0x3bc572;throw Error(_0x5316ec(0x2fd));}[_0x3bc572(0x38a)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x3bc572(0x413)](){return this;}[_0x3bc572(0x26a)](){return this;}['toggleOnline'](){const _0x310d63=_0x3bc572;let {_injector:_0x39210b,_pendingMutations:_0x295daa,_awaitingChangeset:_0x18406,unitID:_0x13cc7b,_handler:_0x1e910a,type:_0x518b56}=this,_0x223a66=_n(_0x39210b,_0x13cc7b,_0x518b56,_0x18406,_0x295daa,_0x1e910a);return _0x223a66 instanceof q?_0x223a66[_0x310d63(0x32a)]():(_0x223a66 instanceof Y||_0x223a66 instanceof J)&&_0x223a66['resend'](),_0x223a66;}[_0x3bc572(0x289)](){const _0x2404e6=_0x3bc572;throw Error(_0x2404e6(0x350));}};Z=H([V(0x5,_0x167908(_0x35e9e2)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x1f135e),V(0x8,_0x51c17f),V(0x9,_0x2a5dd8(U))],Z);let Q=class extends G{constructor(_0xc4276c,_0x177ed2,_0x272334,_0xbfd6b6,_0x31a91a,_0x13bf9,_0x2eda27,_0x13cc46,_0x38d536,_0x4efb6d,_0x8acefe,_0x596f97,_0x41783d,_0x5a68e5){const _0x5b99f8=_0x3bc572;super(_0xc4276c,_0x177ed2,_0x272334,_0xbfd6b6,_0x2eda27,_0x8acefe,_0x596f97,_0x38d536,_0x5a68e5),this[_0x5b99f8(0x2b7)]=_0x31a91a,this[_0x5b99f8(0x2e9)]=_0x13bf9,this[_0x5b99f8(0x44d)]=_0x13cc46,this[_0x5b99f8(0x1c1)]=_0x4efb6d,this[_0x5b99f8(0x284)]=_0x41783d,this[_0x5b99f8(0x300)]=_0x5a68e5,z(this,_0x5b99f8(0x443),_0x5b99f8(0x2b0));}[_0x3bc572(0x332)](_0x35c7e5){const _0x1c7e88=_0x3bc572;try{if(this[_0x1c7e88(0x1e5)](_0x35c7e5)[_0x1c7e88(0x338)])throw Error(_0x1c7e88(0x31b));if(this[_0x1c7e88(0x1e5)]([...this[_0x1c7e88(0x2e9)]][_0x1c7e88(0x276)]((_0x1d663f,_0xf8394d)=>_0x1d663f['revision']-_0xf8394d[_0x1c7e88(0x3bd)]))['missingChangesets'])return this[_0x1c7e88(0x2e9)]=[],this[_0x1c7e88(0x2f5)](),this[_0x1c7e88(0x349)][_0x1c7e88(0x42a)]({'from':this[_0x1c7e88(0x2b2)](),'to':0x0}),this;let _0x152b53=this[_0x1c7e88(0x25c)],_0x42b756=this[_0x1c7e88(0x321)],_0x5c6fc4;if(_0x152b53&&_0x42b756[_0x1c7e88(0x28d)]!==0x0)_0x5c6fc4=this['_injector']['createInstance'](Y,this[_0x1c7e88(0x399)],this[_0x1c7e88(0x2f0)],_0x152b53,_0x42b756,this[_0x1c7e88(0x349)],void 0x0);else{if(_0x152b53&&_0x42b756[_0x1c7e88(0x28d)]===0x0)_0x152b53[_0x1c7e88(0x2eb)]=this[_0x1c7e88(0x2b2)](),_0x5c6fc4=this['_injector'][_0x1c7e88(0x2fe)](J,this[_0x1c7e88(0x399)],this[_0x1c7e88(0x2f0)],_0x152b53,this[_0x1c7e88(0x349)]);else{if(_0x42b756[_0x1c7e88(0x28d)]!==0x0){let _0xa1073a=this[_0x1c7e88(0x44d)]['createInstance'](q,this[_0x1c7e88(0x399)],this[_0x1c7e88(0x2f0)],_0x42b756,this['_handler']);_0xa1073a[_0x1c7e88(0x32a)](),_0x5c6fc4=_0xa1073a;}else _0x5c6fc4=this['_injector'][_0x1c7e88(0x2fe)](K,this[_0x1c7e88(0x399)],this[_0x1c7e88(0x2f0)],this[_0x1c7e88(0x349)]);}}return _0x5c6fc4[_0x1c7e88(0x2f5)](),_0x5c6fc4;}catch(_0x12d719){return this['_logService'][_0x1c7e88(0x298)](_0x1c7e88(0x3c7),_0x1c7e88(0x1f8),_0x12d719),this['_injector']['createInstance'](X,this[_0x1c7e88(0x399)],this[_0x1c7e88(0x2f0)],this[_0x1c7e88(0x25c)],this[_0x1c7e88(0x321)],this[_0x1c7e88(0x349)],!0x1);}}[_0x3bc572(0x1e5)](_0xf2e7de){const _0x2def73=_0x3bc572;this[_0x2def73(0x260)]();for(let _0x6cdb7c=0x0;_0x6cdb7c<_0xf2e7de[_0x2def73(0x28d)];_0x6cdb7c++){let _0x5a078e=_0xf2e7de[_0x6cdb7c],_0x382d40=this[_0x2def73(0x2b2)]();if(!(_0x5a078e[_0x2def73(0x3bd)]<=_0x382d40)){if(_0x5a078e[_0x2def73(0x3bd)]>_0x382d40+0x1)return{'missingChangesets':!0x0};if(this[_0x2def73(0x2d5)](_0x5a078e)){this[_0x2def73(0x38e)]();continue;}this[_0x2def73(0x394)](_0x5a078e),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x3bc572(0x394)](_0x263f1d){const _0x348fba=_0x3bc572;let _0x5186a9=_0x263f1d,_0x2bb647=this[_0x348fba(0x25c)];if(_0x2bb647){let _0x3b96a1=this[_0x348fba(0x284)]['transformChangesets']([_0x263f1d],[_0x2bb647],!0x1);if(!_0x41af53(_0x3b96a1))throw _0x3b96a1[_0x348fba(0x298)];_0x5186a9=_0x3b96a1[_0x348fba(0x435)][0x0],_0x2bb647=_0x3b96a1[_0x348fba(0x234)][0x0];}let _0x4649c7=this['_pendingMutations'];if(_0x4649c7[_0x348fba(0x28d)]){let _0x16717c=this[_0x348fba(0x284)]['transformMutationsWithChangeset'](_0x5186a9,_0x4649c7);if(!_0x34fd35(_0x16717c))throw _0x16717c[_0x348fba(0x298)];_0x5186a9=_0x16717c['c1Prime'],_0x4649c7=_0x16717c[_0x348fba(0x296)];}this['_executeRemoteChangeset'](_0x5186a9),_0x2bb647&&(_0x2bb647['baseRev']=this[_0x348fba(0x2b2)]()),this[_0x348fba(0x25c)]=_0x2bb647,this['_pendingMutations']=_0x4649c7;}[_0x3bc572(0x260)](){const _0x280f2f=_0x3bc572;if(!this[_0x280f2f(0x25c)]||this[_0x280f2f(0x2b7)]==null)return;let _0x27a4e5=this[_0x280f2f(0x2b2)]();if(this['_acknowledgedAwaitingRevision']<=_0x27a4e5)throw Error(_0x280f2f(0x3ca)+this['_acknowledgedAwaitingRevision']+'.');this[_0x280f2f(0x2b7)]===_0x27a4e5+0x1&&this['_acknowledgeAwaiting']();}[_0x3bc572(0x38e)](){const _0x509cfa=_0x3bc572;this['_incrementRevisionNumber'](),this['_awaitingChangeset']=null,this[_0x509cfa(0x2b7)]=null;}['_isEchoedAwaitingChangeset'](_0x5dbd46){const _0x1d0e17=_0x3bc572;let _0x5b2824=this[_0x1d0e17(0x25c)];return!_0x5b2824||!_0x5b2824[_0x1d0e17(0x2e5)]||_0x5b2824[_0x1d0e17(0x22b)]===null||_0x5b2824[_0x1d0e17(0x22b)]===void 0x0?!0x1:_0x5dbd46[_0x1d0e17(0x399)]===_0x5b2824[_0x1d0e17(0x399)]&&_0x5dbd46[_0x1d0e17(0x2e5)]===_0x5b2824[_0x1d0e17(0x2e5)]&&_0x5dbd46[_0x1d0e17(0x22b)]===_0x5b2824[_0x1d0e17(0x22b)];}[_0x3bc572(0x289)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3bc572(0x34d)](_0x59b116){const _0x195bc6=_0x3bc572;return this[_0x195bc6(0x321)][_0x195bc6(0x250)](_0x59b116),this;}[_0x3bc572(0x419)](_0x36c2da){const _0x12f95c=_0x3bc572;return this[_0x12f95c(0x2e9)]['push'](_0x36c2da),this;}[_0x3bc572(0x1fd)](_0x533a21){const _0x317150=_0x3bc572;if(this[_0x317150(0x25c)]){let _0x2f10b1=this[_0x317150(0x2b2)]();return _0x533a21[_0x317150(0x3bd)]<=_0x2f10b1||(_0x2f10b1+0x1===_0x533a21[_0x317150(0x3bd)]?(this[_0x317150(0x433)](),this[_0x317150(0x25c)]=null,this[_0x317150(0x2b7)]=null):this[_0x317150(0x2b7)]=_0x533a21['revision']),this;}if(_0x533a21[_0x317150(0x3bd)]<=this['_getCurrentRevision']())return this;throw Error(_0x317150(0x3ef));}[_0x3bc572(0x38a)](_0x47caa6){const _0x258514=_0x3bc572;return this['_onConflict'](!!(_0x47caa6!=null&&_0x47caa6[_0x258514(0x391)]));}['onRemoteRetry'](){return this;}[_0x3bc572(0x26a)](){const _0x531b67=_0x3bc572;return this[_0x531b67(0x44d)]['createInstance'](Z,this[_0x531b67(0x399)],this['type'],this['_awaitingChangeset'],this[_0x531b67(0x321)],this[_0x531b67(0x349)]);}['toggleOnline'](){return this;}[_0x3bc572(0x3bc)](_0x4fc784){const _0x79c8aa=_0x3bc572;return this[_0x79c8aa(0x44d)]['createInstance'](X,this['unitID'],this[_0x79c8aa(0x2f0)],this[_0x79c8aa(0x25c)],this[_0x79c8aa(0x321)],this[_0x79c8aa(0x349)],_0x4fc784);}};Q=H([V(0x7,_0x167908(_0x35e9e2)),V(0x8,_0x167908(_0x2cb5e4)),V(0x9,_0x2e09c7),V(0xa,_0x1f135e),V(0xb,_0x51c17f),V(0xc,_0x29bc05),V(0xd,_0x2a5dd8(U))],Q);function _n(_0x324f3a,_0x455098,_0x4c4d27,_0x19fe45,_0x185f2c,_0x58a82a){const _0x17a5d0=_0x3bc572;return _0x19fe45&&_0x185f2c[_0x17a5d0(0x28d)]?_0x324f3a[_0x17a5d0(0x2fe)](Y,_0x455098,_0x4c4d27,_0x19fe45,_0x185f2c,_0x58a82a,void 0x0):_0x19fe45?_0x324f3a[_0x17a5d0(0x2fe)](J,_0x455098,_0x4c4d27,_0x19fe45,_0x58a82a):_0x185f2c[_0x17a5d0(0x28d)]?_0x324f3a[_0x17a5d0(0x2fe)](q,_0x455098,_0x4c4d27,_0x185f2c,_0x58a82a):_0x324f3a[_0x17a5d0(0x2fe)](K,_0x455098,_0x4c4d27,_0x58a82a);}let $=class extends _0x4ca998{get[_0x3bc572(0x2f9)](){const _0x212655=_0x3bc572;return this[_0x212655(0x1ae)];}constructor(_0x264a60,_0x557c9c,_0x453bcd,_0x400b4c,_0x398753,_0x5406f7,_0x447f7a,_0xfdda42,_0x3e78a9,_0x93df92,_0x49cf90,_0xe196d3,_0x115bf7,_0xa3e110){const _0x26421f=_0x3bc572;super(),this[_0x26421f(0x399)]=_0x264a60,this['session']=_0x557c9c,this[_0x26421f(0x26b)]=_0x453bcd,this[_0x26421f(0x44d)]=_0x400b4c,this[_0x26421f(0x1ee)]=_0x398753,this[_0x26421f(0x385)]=_0x5406f7,this['_revisionService']=_0x447f7a,this[_0x26421f(0x374)]=_0xfdda42,this[_0x26421f(0x449)]=_0x3e78a9,this[_0x26421f(0x1c1)]=_0x93df92,this[_0x26421f(0x39d)]=_0x49cf90,this[_0x26421f(0x1cb)]=_0xe196d3,this[_0x26421f(0x1ff)]=_0x115bf7,this[_0x26421f(0x422)]=_0xa3e110,z(this,_0x26421f(0x357),new _0x31b85e(null)),z(this,_0x26421f(0x2e3),this[_0x26421f(0x357)][_0x26421f(0x43c)]()),z(this,_0x26421f(0x1ae),void 0x0),z(this,'_collaborationPaused',!0x1),z(this,_0x26421f(0x448),''),z(this,_0x26421f(0x3c8),0x0),z(this,_0x26421f(0x1d2),this[_0x26421f(0x2e3)][_0x26421f(0x264)](_0xdcb41d(_0x389a79=>_0x389a79?_0x389a79['status']:_0x26421f(0x3ac)),_0x238a10({'bufferSize':0x1,'refCount':!0x0}))),z(this,'_transitionLocked',!0x1),z(this,_0x26421f(0x220),[]);}async['init'](){const _0x4187b8=_0x3bc572;if(this[_0x4187b8(0x2f9)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x3bc572(0x315)](){const _0x5547e3=_0x3bc572;return this[_0x5547e3(0x42e)]=!0x0,_0x11df70(()=>{const _0x3618f8=_0x5547e3;this[_0x3618f8(0x42e)]=!0x1,this[_0x3618f8(0x3a3)]();});}[_0x3bc572(0x38c)](_0x4c08ce){this['_onLocalMutation'](_0x4c08ce);}[_0x3bc572(0x353)](_0x48dcf7){const _0x4cf36d=_0x3bc572;this['_state']=_0x48dcf7,this[_0x4cf36d(0x357)][_0x4cf36d(0x2c7)](_0x48dcf7);}async['_init'](){const _0x296016=_0x3bc572;if(this[_0x296016(0x353)](await this[_0x296016(0x442)]()),this[_0x296016(0x1ff)]){var _0x220df5;(_0x220df5=this[_0x296016(0x1ff)])==null||_0x220df5[_0x296016(0x204)](this[_0x296016(0x399)]),this[_0x296016(0x21b)](this[_0x296016(0x1ff)]['getUnitStatus$'](this[_0x296016(0x399)])[_0x296016(0x368)](_0x199f6c=>{const _0x257b7e=_0x296016;this[_0x257b7e(0x1c1)][_0x257b7e(0x305)](_0x257b7e(0x3da),'editing\x20status\x20changed\x20to',_0x199f6c),_0x199f6c===0x1?(this['_eventService'][_0x257b7e(0x340)]({'id':_0x257b7e(0x35b)}),this[_0x257b7e(0x1cb)][_0x257b7e(0x429)](new _0x3d21fe(this[_0x257b7e(0x399)])['id'],!0x1),this[_0x257b7e(0x1cb)][_0x257b7e(0x27e)](!0x1)):(this[_0x257b7e(0x1cb)][_0x257b7e(0x429)](new _0x3d21fe(this[_0x257b7e(0x399)])['id'],!0x0),this[_0x257b7e(0x1cb)][_0x257b7e(0x27e)](!0x0));}));}let _0x2b09dc=!0x1;return this['disposeWithMe'](this[_0x296016(0x431)][_0x296016(0x1d9)]['subscribe'](_0x56f9c5=>{const _0x48b63f=_0x296016;_0x56f9c5===0x3?this[_0x48b63f(0x2a5)](_0x2b09dc):_0x56f9c5===0x2&&(_0x2b09dc=!0x0,this['_toggleOffline']());})),this['disposeWithMe'](this[_0x296016(0x431)][_0x296016(0x396)][_0x296016(0x368)](_0x2dfa61=>{const _0x547330=_0x296016;try{switch(_0x2dfa61[_0x547330(0x313)]){case _0x7dd1cb[_0x547330(0x301)]:this[_0x547330(0x20d)](_0x4823fa(_0x2dfa61[_0x547330(0x2c6)]));break;case _0x7dd1cb[_0x547330(0x25d)]:this[_0x547330(0x272)](_0x2dfa61['data']);break;case _0x7dd1cb[_0x547330(0x2c3)]:this[_0x547330(0x44f)]();break;case _0x7dd1cb[_0x547330(0x257)]:this[_0x547330(0x44e)](_0x2dfa61[_0x547330(0x2c6)]);break;case _0x7dd1cb['PSEUDO_FETCH_MISSING_RESULT']:this[_0x547330(0x420)](_0x2dfa61[_0x547330(0x2c6)][_0x547330(0x23e)][_0x547330(0x239)](_0x30d8e9=>_0x4823fa(_0x30d8e9)));break;case _0x7dd1cb['PERMISSION_REJ']:this[_0x547330(0x44f)]({'isPermissionRej':!0x0});break;case _0x7dd1cb[_0x547330(0x31d)]:break;}}catch(_0x332af0){throw console[_0x547330(0x298)](_0x547330(0x35c),_0x332af0),_0x332af0;}})),this[_0x296016(0x1ae)];}['_unlockTransition'](){const _0x1864d8=_0x3bc572;this[_0x1864d8(0x327)]=!0x1;}[_0x3bc572(0x279)](){const _0xe3f17e=_0x3bc572;if(this[_0xe3f17e(0x327)])throw Error(_0xe3f17e(0x2f6));this[_0xe3f17e(0x327)]=!0x0;}[_0x3bc572(0x2ee)](_0x491fe3){const _0x1aaf8a=_0x3bc572;this['_lockTransition'](),this[_0x1aaf8a(0x353)](this['_state']['appendMutation'](_0x491fe3)),this[_0x1aaf8a(0x43b)]();}[_0x3bc572(0x20d)](_0x42127f){const _0x1c32e4=_0x3bc572;if(!(_0x42127f[_0x1c32e4(0x3bd)]<=this['_revisionService'][_0x1c32e4(0x233)](this['unitID']))){if(this[_0x1c32e4(0x42e)]){this[_0x1c32e4(0x220)][_0x1c32e4(0x250)](_0x42127f);return;}this[_0x1c32e4(0x24e)](_0x42127f);}}[_0x3bc572(0x3a3)](){const _0xb3d687=_0x3bc572;this[_0xb3d687(0x220)]['forEach'](_0x31bafc=>this[_0xb3d687(0x24e)](_0x31bafc)),this[_0xb3d687(0x220)]=[];}[_0x3bc572(0x24e)](_0x3ca1bb){const _0xa5b664=_0x3bc572;let _0x5c3361=this[_0xa5b664(0x1ee)]['interceptor'][_0xa5b664(0x1fb)](this[_0xa5b664(0x1ee)][_0xa5b664(0x381)][_0xa5b664(0x3b8)]()['COMPRESS_MUTATION_APPLY'])(_0x3ca1bb[_0xa5b664(0x227)],null)||_0x3ca1bb[_0xa5b664(0x227)],_0x317bb2={..._0x3ca1bb,'mutations':_0x5c3361};this[_0xa5b664(0x279)](),this['_updateState'](this[_0xa5b664(0x1ae)]['onRemoteChangeset'](_0x317bb2)),this[_0xa5b664(0x43b)]();}['_onRemoteACK'](_0xfc5a74){const _0x4218a4=_0x3bc572;this[_0x4218a4(0x279)](),this['_updateState'](this[_0x4218a4(0x1ae)][_0x4218a4(0x1fd)](_0xfc5a74)),this[_0x4218a4(0x43b)]();}[_0x3bc572(0x44f)](_0x3ee965){const _0x39e948=_0x3bc572;this[_0x39e948(0x279)](),this[_0x39e948(0x353)](this[_0x39e948(0x1ae)][_0x39e948(0x38a)](_0x3ee965)),this[_0x39e948(0x43b)]();}[_0x3bc572(0x44e)](_0x2eb247){const _0x550211=_0x3bc572;this[_0x550211(0x279)](),this['_updateState'](this[_0x550211(0x1ae)][_0x550211(0x413)](_0x2eb247)),this[_0x550211(0x43b)]();}[_0x3bc572(0x420)](_0xbcffd5){const _0xd50e28=_0x3bc572;if(!(this[_0xd50e28(0x1ae)]instanceof Q))throw TypeError(_0xd50e28(0x3e2));let _0x36d1f0=_0xbcffd5[_0xd50e28(0x239)](_0x2ada7a=>{const _0x642b70=_0xd50e28;let _0x1c4514=this[_0x642b70(0x1ee)][_0x642b70(0x381)][_0x642b70(0x1fb)](this['_compressMutationService'][_0x642b70(0x381)][_0x642b70(0x3b8)]()['COMPRESS_MUTATION_APPLY'])(_0x2ada7a[_0x642b70(0x227)],null)||_0x2ada7a['mutations'];return{..._0x2ada7a,'mutations':_0x1c4514};});this[_0xd50e28(0x279)](),this['_updateState'](this['_state'][_0xd50e28(0x332)](_0x36d1f0)),this['_unlockTransition']();}[_0x3bc572(0x218)](){const _0x3b34f7=_0x3bc572;this[_0x3b34f7(0x279)](),this['_updateState'](this[_0x3b34f7(0x1ae)][_0x3b34f7(0x26a)]()),this['_unlockTransition']();}[_0x3bc572(0x2a5)](_0x4fa30c=!0x1){const _0x15aaeb=_0x3bc572;this[_0x15aaeb(0x279)](),this[_0x15aaeb(0x353)](this[_0x15aaeb(0x1ae)][_0x15aaeb(0x230)]()),this[_0x15aaeb(0x43b)]();let _0x304ce3=this[_0x15aaeb(0x1ae)];_0x4fa30c&&_0x304ce3 instanceof K&&(this[_0x15aaeb(0x279)](),this[_0x15aaeb(0x353)](_0x304ce3['fetchMiss']()),this[_0x15aaeb(0x43b)]());}async[_0x3bc572(0x442)](){return new Promise(_0x53775c=>{const _0x40612f=_0xe493;this[_0x40612f(0x431)][_0x40612f(0x1d9)][_0x40612f(0x264)](_0x5d0356(0x1))[_0x40612f(0x368)](async _0x894bc0=>{_0x53775c(await this['_createInitialStateImpl'](_0x894bc0===0x3));});});}[_0x3bc572(0x2cd)](){const _0x494c19=_0x3bc572;let _0x164678=this[_0x494c19(0x399)];return{'onStateChange':(_0x54d852,_0x1dc63c)=>{const _0x3a2c02=_0x494c19;if(_0x54d852!==this['_state'])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x54d852[_0x3a2c02(0x443)]+'\x0aAfter:\x20'+_0x1dc63c['status']+_0x3a2c02(0x26f)+this['_state'][_0x3a2c02(0x443)]);this[_0x3a2c02(0x353)](_0x1dc63c);},'onSendChangeset':_0x1e10dc=>{const _0x48f0ea=_0x494c19;_0x1e10dc[_0x48f0ea(0x2e5)]||(_0x1e10dc[_0x48f0ea(0x2e5)]=this[_0x48f0ea(0x448)],_0x1e10dc[_0x48f0ea(0x22b)]=++this[_0x48f0ea(0x3c8)]);let _0x4367dc={'eventID':_0x7dd1cb[_0x48f0ea(0x2b1)],'data':{'unitID':_0x1e10dc[_0x48f0ea(0x399)],'unitType':this[_0x48f0ea(0x26b)],'changeset':_0x1e10dc,'memberID':this[_0x48f0ea(0x431)][_0x48f0ea(0x22c)]()}};this[_0x48f0ea(0x431)][_0x48f0ea(0x1ef)](_0x4367dc,this[_0x48f0ea(0x399)]);},'onMissingChangesets':({from:_0x2de029,to:_0x5f036e})=>{const _0x13db91=_0x494c19;this[_0x13db91(0x1c1)][_0x13db91(0x305)](_0x13db91(0x3da),_0x13db91(0x1fa)+_0x2de029+_0x13db91(0x37e)+_0x5f036e);let _0xb3f0e9={'eventID':_0x7dd1cb['FETCH_MISSING'],'data':{'unitID':_0x164678,'unitType':this[_0x13db91(0x26b)],'from':_0x2de029,'to':_0x5f036e}};this[_0x13db91(0x431)][_0x13db91(0x1ef)](_0xb3f0e9,this['unitID']);}};}async[_0x3bc572(0x2a0)](_0xc71d3c){const _0x244051=_0x3bc572;var _0x1d0c26,_0x27217c,_0x22cf7e;let _0x1324a5=await((_0x1d0c26=this[_0x244051(0x422)])==null?void 0x0:_0x1d0c26['loadOfflineData'](this[_0x244051(0x399)])),_0x2f0bf2=(_0x27217c=_0x1324a5==null?void 0x0:_0x1324a5['mutations'])==null?[]:_0x27217c,_0x12a8ec=(_0x22cf7e=_0x1324a5==null?void 0x0:_0x1324a5[_0x244051(0x3c2)])==null?null:_0x22cf7e,_0x552811=!!(_0x12a8ec!=null&&_0x12a8ec[_0x244051(0x2e5)])&&!!(_0x12a8ec!=null&&_0x12a8ec[_0x244051(0x22b)]);this['_changesetSessionId']=_0x552811?_0x12a8ec[_0x244051(0x2e5)]:_0x5d9f01(),this[_0x244051(0x3c8)]=_0x552811?_0x12a8ec[_0x244051(0x22b)]:0x0;let _0x3d795c=this[_0x244051(0x399)];try{this[_0x244051(0x3a8)](_0x12a8ec,_0x2f0bf2);}catch(_0x246c90){this[_0x244051(0x1c1)]['error'](_0x246c90);}let _0x2e7233=this[_0x244051(0x2cd)]();if(_0xc71d3c){let _0x1765f2=_n(this[_0x244051(0x44d)],_0x3d795c,this['_type'],_0x12a8ec,_0x2f0bf2,_0x2e7233);return _0x1765f2 instanceof q?_0x1765f2[_0x244051(0x32a)]():(_0x1765f2 instanceof Y||_0x1765f2 instanceof J)&&_0x1765f2['resend'](),_0x1765f2;}return this['_injector'][_0x244051(0x2fe)](Z,_0x3d795c,this[_0x244051(0x26b)],_0x12a8ec,_0x2f0bf2,_0x2e7233);}[_0x3bc572(0x3a8)](_0x4ab43e,_0x53e8b9){const _0x5604ea=_0x3bc572;var _0x15b539,_0x4b87ec;let _0x340dd4=this[_0x5604ea(0x1ee)][_0x5604ea(0x381)][_0x5604ea(0x1fb)](this[_0x5604ea(0x1ee)][_0x5604ea(0x381)][_0x5604ea(0x3b8)]()[_0x5604ea(0x1dd)]);(_0x15b539=_0x340dd4((_0x4ab43e==null?void 0x0:_0x4ab43e[_0x5604ea(0x227)])||[],null))==null||_0x15b539[_0x5604ea(0x29a)](_0x254114=>this[_0x5604ea(0x39d)][_0x5604ea(0x414)](_0x254114['id'],_0x254114[_0x5604ea(0x2a4)])),(_0x4b87ec=_0x340dd4(_0x53e8b9||[],null))==null||_0x4b87ec[_0x5604ea(0x29a)](_0x5811a7=>this[_0x5604ea(0x39d)][_0x5604ea(0x414)](_0x5811a7['id'],_0x5811a7['params']));}};$=H([V(0x3,_0x167908(_0x35e9e2)),V(0x4,_0x167908(_0x46826b)),V(0x5,_0x167908(_0x3b5f18)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x167908(B)),V(0x8,_0x6f9bb2),V(0x9,_0x2e09c7),V(0xa,_0x1f135e),V(0xb,_0x3058fc),V(0xc,_0x2a5dd8(W)),V(0xd,_0x2a5dd8(U))],$);let vn=class extends ${constructor(_0x5c3ea2,_0x1a11fc,_0x301a65,_0x54fe0e,_0x31544d,_0x2375b9,_0x11e237,_0x2143be,_0x11b95d,_0x2f94f0,_0x3ac41a,_0x111725,_0x906a2e,_0x9ebf20,_0x3420d3){const _0x603d5c=_0x3bc572;super(_0x5c3ea2,_0x301a65,_0x1a11fc,_0x54fe0e,_0x31544d,_0x2375b9,_0x11e237,_0x2143be,_0x11b95d,_0x2f94f0,_0x3ac41a,_0x111725,_0x9ebf20,_0x3420d3),this['unitID']=_0x5c3ea2,this['type']=_0x1a11fc,this[_0x603d5c(0x1b8)]=_0x906a2e,z(this,_0x603d5c(0x1ba),null);}[_0x3bc572(0x446)](_0x2e1dbe){const _0x57fe97=_0x3bc572;this[_0x57fe97(0x1ba)]=_0x2e1dbe;}[_0x3bc572(0x1d4)](){const _0x3f2906=_0x3bc572;this[_0x3f2906(0x1ba)]=null,super[_0x3f2906(0x1d4)]();}[_0x3bc572(0x2cd)](){const _0x2c5500=_0x3bc572;let _0x44783a=super['_createHandler']();return _0x44783a[_0x2c5500(0x1b5)]=_0x5ab15a=>{const _0x169751=_0x2c5500;var _0x418561,_0x50b615;return(_0x418561=this[_0x169751(0x1ba)])==null||(_0x50b615=_0x418561[_0x169751(0x1b5)])==null?void 0x0:_0x50b615[_0x169751(0x3ad)](_0x418561,_0x5ab15a);},_0x44783a[_0x2c5500(0x316)]=_0x358143=>{const _0x5c77ee=_0x2c5500;var _0x5d8136,_0x49d1ef;return(_0x5d8136=this[_0x5c77ee(0x1ba)])==null||(_0x49d1ef=_0x5d8136[_0x5c77ee(0x316)])==null?void 0x0:_0x49d1ef['call'](_0x5d8136,_0x358143);},_0x44783a[_0x2c5500(0x237)]=_0x3a7577=>{const _0x13dab6=_0x2c5500;var _0xd985c4,_0x5b8716;return(_0xd985c4=this[_0x13dab6(0x1ba)])==null||(_0x5b8716=_0xd985c4['onTransformSelections'])==null?void 0x0:_0x5b8716[_0x13dab6(0x3ad)](_0xd985c4,_0x3a7577);},_0x44783a[_0x2c5500(0x215)]=_0x53699c=>{const _0x204f4d=_0x2c5500;var _0x2dcf10,_0x3d3c47;return(_0x2dcf10=this[_0x204f4d(0x1ba)])==null||(_0x3d3c47=_0x2dcf10[_0x204f4d(0x215)])==null?void 0x0:_0x3d3c47['call'](_0x2dcf10,_0x53699c);},_0x44783a[_0x2c5500(0x3ab)]=_0xa03b25=>{const _0x49f344=_0x2c5500;var _0x11e32c,_0x4f41e6,_0x4e1aea;return(_0x11e32c=(_0x4f41e6=this[_0x49f344(0x1ba)])==null||(_0x4e1aea=_0x4f41e6[_0x49f344(0x3ab)])==null?void 0x0:_0x4e1aea['call'](_0x4f41e6,_0xa03b25))==null?_0xa03b25:_0x11e32c;},_0x44783a[_0x2c5500(0x365)]=_0x4c9387=>{const _0xde59f1=_0x2c5500;var _0x12d405,_0x3fd734,_0x15e181;return(_0x12d405=(_0x3fd734=this[_0xde59f1(0x1ba)])==null||(_0x15e181=_0x3fd734[_0xde59f1(0x365)])==null?void 0x0:_0x15e181[_0xde59f1(0x3ad)](_0x3fd734,_0x4c9387))==null?_0x4c9387:_0x12d405;},_0x44783a;}async['_init'](){const _0x48b8ec=_0x3bc572;let _0x579f1e=await super[_0x48b8ec(0x212)]();return this[_0x48b8ec(0x21b)](this[_0x48b8ec(0x1b8)][_0x48b8ec(0x3e9)][_0x48b8ec(0x368)](_0xb59e66=>{const _0x1d8535=_0x48b8ec;if(_0xb59e66==null||_0xb59e66[_0x1d8535(0x395)]!==this[_0x1d8535(0x399)])return;let {commandId:_0x17b28b,redoState:_0x4576d9,unitId:_0x4f9f7d}=_0xb59e66,_0x1ee602={'id':_0x17b28b,'type':_0xe60bf6[_0x1d8535(0x2de)],'params':{'unitId':_0x4f9f7d,'actions':_0x4576d9[_0x1d8535(0x311)],'textRanges':null}};this['_onLocalMutation'](_0x1ee602);})),this['disposeWithMe'](this['_commandService'][_0x48b8ec(0x3b0)]((_0x1e6b66,_0x28b55c)=>{const _0x751e9b=_0x48b8ec;if(_0x1e6b66[_0x751e9b(0x2f0)]!==_0xe60bf6['MUTATION']||_0x28b55c!=null&&_0x28b55c[_0x751e9b(0x30a)]||_0x28b55c!=null&&_0x28b55c[_0x751e9b(0x1bf)]||_0x1e6b66['id']===_0x7aa9b['id'])return;let _0x36dd37=_0x1e6b66[_0x751e9b(0x2a4)];if((_0x36dd37==null?void 0x0:_0x36dd37['unitId'])!==this['unitID'])return;let _0xf221a0=_0x1e6b66,_0x4e8617=this[_0x751e9b(0x1ee)][_0x751e9b(0x381)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0x751e9b(0x42c)])([_0xf221a0],this[_0x751e9b(0x449)])||[_0xf221a0];this[_0x751e9b(0x2ee)](_0x4e8617[0x0]);})),_0x579f1e;}};vn=H([V(0x3,_0x167908(_0x35e9e2)),V(0x4,_0x167908(_0x46826b)),V(0x5,_0x167908(_0x3b5f18)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x167908(B)),V(0x8,_0x6f9bb2),V(0x9,_0x2e09c7),V(0xa,_0x1f135e),V(0xb,_0x3058fc),V(0xc,_0x167908(_0x6630d3)),V(0xd,_0x2a5dd8(W)),V(0xe,_0x2a5dd8(U))],vn);let yn=class extends ${constructor(_0x5d27b1,_0x4e3fe9,_0xe124cd,_0x10b539,_0x376a1c,_0x4fff92,_0x531b66,_0x54189e,_0x48a06e,_0x402a9f,_0x41921d,_0x22964f,_0x5ab86b,_0x37e57e){const _0x4866f6=_0x3bc572;super(_0x5d27b1,_0xe124cd,_0x4e3fe9,_0x10b539,_0x376a1c,_0x4fff92,_0x531b66,_0x54189e,_0x48a06e,_0x402a9f,_0x41921d,_0x22964f,_0x5ab86b,_0x37e57e),this[_0x4866f6(0x399)]=_0x5d27b1,this[_0x4866f6(0x2f0)]=_0x4e3fe9;}async[_0x3bc572(0x212)](){const _0x17cdf1=_0x3bc572;let _0x5dbfe3=await super[_0x17cdf1(0x212)]();return this['disposeWithMe'](this[_0x17cdf1(0x39d)][_0x17cdf1(0x3b0)]((_0x37961b,_0x16f51)=>{const _0x23af79=_0x17cdf1;if(_0x37961b[_0x23af79(0x2f0)]!==_0xe60bf6['MUTATION']||_0x16f51!=null&&_0x16f51[_0x23af79(0x30a)]||_0x16f51!=null&&_0x16f51[_0x23af79(0x1bf)])return;let _0x4e4226=_0x37961b[_0x23af79(0x2a4)];if((_0x4e4226==null?void 0x0:_0x4e4226[_0x23af79(0x395)])!==this[_0x23af79(0x399)])return;let _0x1bc40e=_0x37961b,_0x4da2f8=this[_0x23af79(0x1ee)][_0x23af79(0x381)][_0x23af79(0x1fb)](this[_0x23af79(0x1ee)][_0x23af79(0x381)]['getInterceptPoints']()[_0x23af79(0x42c)])([_0x1bc40e],this[_0x23af79(0x449)])||[_0x1bc40e];this[_0x23af79(0x2ee)](_0x4da2f8[0x0]);})),_0x5dbfe3;}};yn=H([V(0x3,_0x167908(_0x35e9e2)),V(0x4,_0x167908(_0x46826b)),V(0x5,_0x167908(_0x3b5f18)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x167908(B)),V(0x8,_0x6f9bb2),V(0x9,_0x2e09c7),V(0xa,_0x1f135e),V(0xb,_0x3058fc),V(0xc,_0x2a5dd8(W)),V(0xd,_0x2a5dd8(U))],yn);let bn=class extends ${constructor(_0x53c713,_0x2f0a87,_0x55ec75,_0x1a2e94,_0x2b3597,_0x1235fe,_0xd63eb9,_0x5b9bd8,_0x49a5d6,_0x223ece,_0x40ba46,_0x3bc335,_0x14dc45,_0x38eb2a,_0x2edf97){const _0x3b251d=_0x3bc572;super(_0x53c713,_0x55ec75,_0x2f0a87,_0x1a2e94,_0x2b3597,_0x1235fe,_0xd63eb9,_0x49a5d6,_0x223ece,_0x40ba46,_0x3bc335,_0x14dc45,_0x38eb2a,_0x2edf97),this[_0x3b251d(0x399)]=_0x53c713,this[_0x3b251d(0x2f0)]=_0x2f0a87,this[_0x3b251d(0x1ce)]=_0x5b9bd8;}['_createHandler'](){const _0xd8ca7c=_0x3bc572;let _0x3eac2c=super['_createHandler']();return _0x3eac2c[_0xd8ca7c(0x237)]=_0x3013a6=>this[_0xd8ca7c(0x1ce)][_0xd8ca7c(0x286)](_0x3013a6),_0x3eac2c;}async[_0x3bc572(0x212)](){const _0x207480=_0x3bc572;let _0x3206b0=await super[_0x207480(0x212)]();return this[_0x207480(0x21b)](this[_0x207480(0x39d)][_0x207480(0x3b0)]((_0x289466,_0x371d2a)=>{const _0x5efa0b=_0x207480;if(_0x289466[_0x5efa0b(0x2f0)]!==_0xe60bf6['MUTATION']||_0x371d2a!=null&&_0x371d2a[_0x5efa0b(0x30a)]||_0x371d2a!=null&&_0x371d2a[_0x5efa0b(0x1bf)])return;let _0x41e253=_0x289466[_0x5efa0b(0x2a4)];if((_0x41e253==null?void 0x0:_0x41e253[_0x5efa0b(0x395)])!==this[_0x5efa0b(0x399)])return;let _0x2f4597=_0x289466,_0x23162e=this['_compressMutationService'][_0x5efa0b(0x381)][_0x5efa0b(0x1fb)](this['_compressMutationService'][_0x5efa0b(0x381)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x2f4597],this[_0x5efa0b(0x449)])||[_0x2f4597];this[_0x5efa0b(0x2ee)](_0x23162e[0x0]);})),_0x3206b0;}};bn=H([V(0x3,_0x167908(_0x35e9e2)),V(0x4,_0x167908(_0x46826b)),V(0x5,_0x167908(_0x3b5f18)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x167908(Gt)),V(0x8,_0x167908(B)),V(0x9,_0x6f9bb2),V(0xa,_0x2e09c7),V(0xb,_0x1f135e),V(0xc,_0x3058fc),V(0xd,_0x2a5dd8(W)),V(0xe,_0x2a5dd8(U))],bn);let xn=class extends ${constructor(_0x1439a2,_0x45b61f,_0x3e14bb,_0xe32552,_0xb161d3,_0x59f409,_0x5d6172,_0x563812,_0x5d194a,_0x2c8c98,_0x29a370,_0x72988d,_0x529801,_0x365f3b){const _0x31902b=_0x3bc572;super(_0x1439a2,_0x3e14bb,_0x45b61f,_0xe32552,_0xb161d3,_0x59f409,_0x5d6172,_0x563812,_0x5d194a,_0x2c8c98,_0x29a370,_0x72988d,_0x529801,_0x365f3b),this[_0x31902b(0x399)]=_0x1439a2,this['type']=_0x45b61f;}async['_init'](){const _0x41488f=_0x3bc572;let _0x45bff5=await super[_0x41488f(0x212)]();return this[_0x41488f(0x21b)](this[_0x41488f(0x39d)]['onMutationExecutedForCollab']((_0x37ae12,_0x5c2a40)=>{const _0x3a1fe0=_0x41488f;if(_0x37ae12[_0x3a1fe0(0x2f0)]!==_0xe60bf6[_0x3a1fe0(0x2de)]||_0x5c2a40!=null&&_0x5c2a40['fromCollab']||_0x5c2a40!=null&&_0x5c2a40['onlyLocal'])return;let _0x5da24b=_0x37ae12[_0x3a1fe0(0x2a4)];if((_0x5da24b==null?void 0x0:_0x5da24b[_0x3a1fe0(0x395)])!==this[_0x3a1fe0(0x399)])return;let _0x360514=_0x37ae12,_0x48bede=this[_0x3a1fe0(0x1ee)][_0x3a1fe0(0x381)][_0x3a1fe0(0x1fb)](this['_compressMutationService'][_0x3a1fe0(0x381)][_0x3a1fe0(0x3b8)]()[_0x3a1fe0(0x42c)])([_0x360514],this[_0x3a1fe0(0x449)])||[_0x360514];this[_0x3a1fe0(0x2ee)](_0x48bede[0x0]);})),_0x45bff5;}};xn=H([V(0x3,_0x167908(_0x35e9e2)),V(0x4,_0x167908(_0x46826b)),V(0x5,_0x167908(_0x3b5f18)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x167908(B)),V(0x8,_0x6f9bb2),V(0x9,_0x2e09c7),V(0xa,_0x1f135e),V(0xb,_0x3058fc),V(0xc,_0x2a5dd8(W)),V(0xd,_0x2a5dd8(U))],xn);let Sn=class extends ${constructor(_0x31745d,_0x5df562,_0x4c326e,_0x3796a4,_0x44fb8f,_0x11519e,_0x2b931c,_0x568ac0,_0x31131f,_0x309ee4,_0x2fd4b4,_0x10eb1b,_0xdf0652,_0x4d21ff){const _0x1827bd=_0x3bc572;super(_0x31745d,_0x4c326e,_0x5df562,_0x3796a4,_0x44fb8f,_0x11519e,_0x2b931c,_0x568ac0,_0x31131f,_0x309ee4,_0x2fd4b4,_0x10eb1b,_0xdf0652,_0x4d21ff),this['unitID']=_0x31745d,this[_0x1827bd(0x2f0)]=_0x5df562;}async['_init'](){const _0x4863b5=_0x3bc572;let _0x174b03=await super[_0x4863b5(0x212)]();return this[_0x4863b5(0x21b)](this[_0x4863b5(0x39d)][_0x4863b5(0x3b0)]((_0x1fc323,_0x532f10)=>{const _0x1d3a4f=_0x4863b5;if(_0x1fc323['type']!==_0xe60bf6[_0x1d3a4f(0x2de)]||_0x532f10!=null&&_0x532f10[_0x1d3a4f(0x30a)]||_0x532f10!=null&&_0x532f10[_0x1d3a4f(0x1bf)])return;let _0x5ed7f3=_0x1fc323[_0x1d3a4f(0x2a4)];if((_0x5ed7f3==null?void 0x0:_0x5ed7f3[_0x1d3a4f(0x395)])!==this['unitID'])return;let _0x5c7aab=_0x1fc323,_0xf9d4e9=this[_0x1d3a4f(0x1ee)][_0x1d3a4f(0x381)][_0x1d3a4f(0x1fb)](this['_compressMutationService'][_0x1d3a4f(0x381)][_0x1d3a4f(0x3b8)]()[_0x1d3a4f(0x42c)])([_0x5c7aab],this[_0x1d3a4f(0x449)])||[_0x5c7aab];this[_0x1d3a4f(0x2ee)](_0xf9d4e9[0x0]);})),_0x174b03;}};Sn=H([V(0x3,_0x167908(_0x35e9e2)),V(0x4,_0x167908(_0x46826b)),V(0x5,_0x167908(_0x3b5f18)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x167908(B)),V(0x8,_0x6f9bb2),V(0x9,_0x2e09c7),V(0xa,_0x1f135e),V(0xb,_0x3058fc),V(0xc,_0x2a5dd8(W)),V(0xd,_0x2a5dd8(U))],Sn);let Cn=class extends ${constructor(_0x2f4e21,_0x3d2540,_0x255105,_0x549697,_0x403742,_0x476681,_0x4a9b06,_0x3563f4,_0x2dfeee,_0x33f122,_0x349843,_0x274bdc,_0x38b761,_0x4c2edd){const _0x404fcd=_0x3bc572;super(_0x2f4e21,_0x255105,_0x3d2540,_0x549697,_0x403742,_0x476681,_0x4a9b06,_0x3563f4,_0x2dfeee,_0x33f122,_0x349843,_0x274bdc,_0x38b761,_0x4c2edd),this[_0x404fcd(0x399)]=_0x2f4e21,this[_0x404fcd(0x2f0)]=_0x3d2540;}async[_0x3bc572(0x212)](){const _0x3efa3a=_0x3bc572;let _0x35a563=await super['_init']();return this[_0x3efa3a(0x21b)](this[_0x3efa3a(0x39d)][_0x3efa3a(0x3b0)]((_0x415244,_0x31ed49)=>{const _0x3f6c09=_0x3efa3a;if(_0x415244[_0x3f6c09(0x2f0)]!==_0xe60bf6[_0x3f6c09(0x2de)]||_0x31ed49!=null&&_0x31ed49['fromCollab']||_0x31ed49!=null&&_0x31ed49[_0x3f6c09(0x1bf)])return;let _0x47d87f=_0x415244['params'];if((_0x47d87f==null?void 0x0:_0x47d87f[_0x3f6c09(0x395)])!==this[_0x3f6c09(0x399)])return;let _0x56cb5c=_0x415244,_0x58e10e=this['_compressMutationService'][_0x3f6c09(0x381)][_0x3f6c09(0x1fb)](this[_0x3f6c09(0x1ee)][_0x3f6c09(0x381)][_0x3f6c09(0x3b8)]()['COMPRESS_MUTATION_SEND'])([_0x56cb5c],this[_0x3f6c09(0x449)])||[_0x56cb5c];this[_0x3f6c09(0x2ee)](_0x58e10e[0x0]);})),_0x35a563;}};Cn=H([V(0x3,_0x167908(_0x35e9e2)),V(0x4,_0x167908(_0x46826b)),V(0x5,_0x167908(_0x3b5f18)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x167908(B)),V(0x8,_0x6f9bb2),V(0x9,_0x2e09c7),V(0xa,_0x1f135e),V(0xb,_0x3058fc),V(0xc,_0x2a5dd8(W)),V(0xd,_0x2a5dd8(U))],Cn);const wn=_0x5685c4('univer-pro.collaboration-client.network-condition.service');function Tn(_0x82ac03){const _0x497f2e=_0x3bc572;let _0x35d3d2=_0x82ac03[_0x497f2e(0x2c6)],_0x53e354=JSON[_0x497f2e(0x23d)](_0x35d3d2);switch(_0x53e354[_0x497f2e(0x265)]){case _0x23fb1d[_0x497f2e(0x20b)]:case _0x23fb1d['HELLO']:{let _0x4d8e36=_0x53e354[_0x497f2e(0x1c0)];return{..._0x53e354,'data':_0x4d8e36,'cmd':_0x53e354['cmd']};}case _0x23fb1d['JOIN']:{let _0x4d28e8=_0x53e354[_0x497f2e(0x253)];return{..._0x53e354,'data':_0x4d28e8,'cmd':_0x53e354['cmd']};}case _0x23fb1d['RECV']:{let _0x5d2b16=_0x53e354[_0x497f2e(0x1e4)];switch(_0x5d2b16[_0x497f2e(0x313)]){case _0x7dd1cb[_0x497f2e(0x3b9)]:var _0x8c19f9;return{..._0x53e354,'data':{..._0x5d2b16,'data':(_0x8c19f9=_0x5d2b16['permissionRejEvent'])==null?void 0x0:_0x8c19f9['cs']},'cmd':_0x53e354['cmd']};case _0x7dd1cb[_0x497f2e(0x25d)]:var _0x4b04a6;return{..._0x53e354,'data':{..._0x5d2b16,'data':(_0x4b04a6=_0x5d2b16['csAckEvent'])==null?void 0x0:_0x4b04a6['cs']},'cmd':_0x53e354['cmd']};case _0x7dd1cb[_0x497f2e(0x301)]:var _0x4fa414;return{..._0x53e354,'data':{..._0x5d2b16,'data':(_0x4fa414=_0x5d2b16[_0x497f2e(0x28c)])==null?void 0x0:_0x4fa414['cs']},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x2c3)]:var _0x4d6d79;return{..._0x53e354,'data':{..._0x5d2b16,'data':(_0x4d6d79=_0x5d2b16['csRejEvent'])==null?void 0x0:_0x4d6d79['cs']},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x257)]:var _0x1b1315;return{..._0x53e354,'data':{..._0x5d2b16,'data':(_0x1b1315=_0x5d2b16[_0x497f2e(0x348)])==null?void 0x0:_0x1b1315['cs']},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb['UPDATE_CURSOR']:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x386)]},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x27d)]:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x401)]},'cmd':_0x53e354['cmd']};case _0x7dd1cb[_0x497f2e(0x221)]:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16['leaveEvent']},'cmd':_0x53e354['cmd']};case _0x7dd1cb['LIVESHARE_NEW_HOST']:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x206)]},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x297)]:case _0x7dd1cb['LIVESHARE_OPERATION']:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x2a8)]},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x278)]:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x206)]},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb['MSG_FOR_ERROR']:return{..._0x53e354,'data':_0x5d2b16,'cmd':_0x53e354['cmd']};case _0x7dd1cb[_0x497f2e(0x3f4)]:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x222)]},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x303)]:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x238)]},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x268)]:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x3d3)]},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x31d)]:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x2e2)]},'cmd':_0x53e354['cmd']};default:return _0x53e354;}}default:return _0x53e354;}}function En(_0x3e7ab6){const _0xb42a6a=_0x3bc572;switch(_0x3e7ab6[_0xb42a6a(0x265)]){case _0x23fb1d[_0xb42a6a(0x20b)]:case _0x23fb1d[_0xb42a6a(0x292)]:return JSON[_0xb42a6a(0x3c3)]({'cmd':_0x3e7ab6[_0xb42a6a(0x265)],'routeKey':_0x3e7ab6[_0xb42a6a(0x1b6)]});case _0x23fb1d['INGEST']:{let _0x3998be;switch(_0x3e7ab6[_0xb42a6a(0x2c6)][_0xb42a6a(0x313)]){case _0x7dd1cb[_0xb42a6a(0x1ec)]:_0x3998be={'eventID':_0x7dd1cb[_0xb42a6a(0x1ec)],'updateCursorEvent':_0x3e7ab6[_0xb42a6a(0x2c6)][_0xb42a6a(0x2c6)]};break;case _0x7dd1cb[_0xb42a6a(0x221)]:_0x3998be={'eventID':_0x7dd1cb[_0xb42a6a(0x221)],'leaveEvent':_0x3e7ab6['data']['data']};break;case _0x7dd1cb[_0xb42a6a(0x27d)]:_0x3998be={'eventID':_0x7dd1cb[_0xb42a6a(0x27d)],'joinEvent':_0x3e7ab6['data'][_0xb42a6a(0x2c6)]};break;case _0x7dd1cb[_0xb42a6a(0x2ae)]:_0x3998be={'eventID':_0x7dd1cb[_0xb42a6a(0x2ae)],'liveShareNewHost':_0x3e7ab6[_0xb42a6a(0x2c6)][_0xb42a6a(0x2c6)]};break;case _0x7dd1cb[_0xb42a6a(0x2bb)]:_0x3998be={'eventID':_0x7dd1cb[_0xb42a6a(0x2bb)],'liveShareOperation':_0x3e7ab6['data'][_0xb42a6a(0x2c6)]};break;case _0x7dd1cb[_0xb42a6a(0x278)]:_0x3998be={'eventID':_0x7dd1cb['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x3e7ab6[_0xb42a6a(0x2c6)][_0xb42a6a(0x2c6)]};break;case _0x7dd1cb['LIVESHARE_REQUEST_HOST']:_0x3998be={'eventID':_0x7dd1cb[_0xb42a6a(0x33b)],'liveShareRequestHost':_0x3e7ab6['data']['data']};break;case _0x7dd1cb[_0xb42a6a(0x297)]:_0x3998be={'eventID':_0x7dd1cb[_0xb42a6a(0x297)]};break;default:_0x3998be={'eventID':_0x3e7ab6[_0xb42a6a(0x2c6)][_0xb42a6a(0x313)]};}return JSON['stringify']({'cmd':_0x3e7ab6[_0xb42a6a(0x265)],'routeKey':_0x3e7ab6[_0xb42a6a(0x1b6)],'collaMsg':_0x3998be});}case _0x23fb1d[_0xb42a6a(0x2a3)]:return JSON[_0xb42a6a(0x3c3)]({'cmd':_0x3e7ab6[_0xb42a6a(0x265)],'routeKey':_0x3e7ab6[_0xb42a6a(0x1b6)],'joinReq':_0x3e7ab6['data']});case _0x23fb1d[_0xb42a6a(0x444)]:return JSON[_0xb42a6a(0x3c3)]({'cmd':_0x3e7ab6[_0xb42a6a(0x265)],'routeKey':_0x3e7ab6[_0xb42a6a(0x1b6)],'leaveReq':_0x3e7ab6['data']});default:throw Error(_0xb42a6a(0x33d));}}const Dn=_0x5685c4(_0x3bc572(0x1d8));function On(_0x150751,_0x3530cd,_0x520566){const _0x10ddea=_0x3bc572;return _0x150751+'/'+_0x3530cd+_0x10ddea(0x44c)+_0x520566+_0x10ddea(0x41f);}let kn=class extends _0x376cce{constructor(_0x1c8e5d,_0x1d8336,_0x35e30c,_0x7e797b,_0x3b02e6){const _0x444a2f=_0x3bc572;super(),this[_0x444a2f(0x44d)]=_0x1c8e5d,this['_httpService']=_0x1d8336,this[_0x444a2f(0x1c9)]=_0x35e30c,this[_0x444a2f(0x1c1)]=_0x7e797b,this[_0x444a2f(0x3cb)]=_0x3b02e6;}['_doCreateSocket'](_0x2dfdaa){const _0x192d3e=_0x3bc572;let _0x555bd4=this['_injector'][_0x192d3e(0x1e3)](_0x1d5e1d);if(!_0x555bd4)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x91c1e3=_0x555bd4[_0x192d3e(0x439)](_0x2dfdaa);if(!_0x91c1e3)throw Error(_0x192d3e(0x202));let _0xc4e2cd=new _0x186c27(),_0x21bcf8=new _0x5b6066();_0xc4e2cd[_0x192d3e(0x293)](_0x91c1e3[_0x192d3e(0x383)][_0x192d3e(0x368)](_0x2c9442=>_0x21bcf8[_0x192d3e(0x2c7)](_0x2c9442))),_0xc4e2cd[_0x192d3e(0x293)](_0x11df70(()=>_0x21bcf8['complete']()));let _0x37ceef=new _0x5b6066();_0xc4e2cd[_0x192d3e(0x293)](_0x91c1e3[_0x192d3e(0x37b)][_0x192d3e(0x368)](_0x30c2aa=>_0x37ceef[_0x192d3e(0x2c7)](_0x30c2aa))),_0xc4e2cd[_0x192d3e(0x293)](_0x11df70(()=>_0x37ceef[_0x192d3e(0x42f)]()));let _0x3943d1=new _0x5b6066();_0xc4e2cd[_0x192d3e(0x293)](_0x91c1e3[_0x192d3e(0x30b)]['subscribe'](_0x13ffa1=>{const _0xc0f8e3=_0x192d3e;let _0x3f5cbe=Tn(_0x13ffa1);_0x3943d1[_0xc0f8e3(0x2c7)](_0x3f5cbe);})),_0xc4e2cd[_0x192d3e(0x293)](_0x11df70(()=>_0x3943d1[_0x192d3e(0x42f)]()));let _0x5b814e,_0x4b8a47=()=>{const _0x3e51b5=_0x192d3e;_0x37ceef[_0x3e51b5(0x2c7)](new Event(_0x3e51b5(0x2ec))),_0x21bcf8[_0x3e51b5(0x2c7)](new Event(_0x3e51b5(0x2ec))),_0x5b814e['close']();};return _0x5b814e={'memberID':'','close$':_0x21bcf8[_0x192d3e(0x43c)](),'error$':_0x37ceef['asObservable'](),'open$':_0x91c1e3['open$'],'message$':_0x3943d1[_0x192d3e(0x43c)](),'send':_0x53858c=>{const _0xbc1d24=_0x192d3e;if(_0x53858c[_0xbc1d24(0x265)]===_0x23fb1d[_0xbc1d24(0x28e)]){if(_0x53858c[_0xbc1d24(0x2c6)][_0xbc1d24(0x313)]===_0x7dd1cb[_0xbc1d24(0x2b1)]){this['_submitChangeset'](_0x5b814e,_0x53858c[_0xbc1d24(0x2c6)])[_0xbc1d24(0x40f)](_0xe0660c=>{const _0x13e778=_0xbc1d24;this[_0x13e778(0x1c1)]['error'](_0xe0660c),_0x4b8a47();});return;}if(_0x53858c['data'][_0xbc1d24(0x313)]===_0x7dd1cb['FETCH_MISSING']){let _0x4cdbbc=_0x53858c[_0xbc1d24(0x2c6)];this['_fetchMissChangesets'](_0x4cdbbc)[_0xbc1d24(0x1b9)](_0x12bca3=>{const _0x2be8b4=_0xbc1d24;_0x3943d1['next']({'cmd':_0x23fb1d[_0x2be8b4(0x2e1)],'code':_0x20fc41['OK'],'routeKey':_0x4cdbbc['data'][_0x2be8b4(0x399)],'routeType':'','data':{'eventID':_0x7dd1cb['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x12bca3}}});})[_0xbc1d24(0x40f)](_0x472fab=>{const _0x5bac35=_0xbc1d24;this[_0x5bac35(0x1c1)][_0x5bac35(0x298)](_0x472fab),_0x4b8a47();});return;}}_0x91c1e3[_0xbc1d24(0x1ef)](En(_0x53858c));},'close':()=>{const _0x18a2f7=_0x192d3e;_0x91c1e3[_0x18a2f7(0x3cf)](),_0xc4e2cd[_0x18a2f7(0x1d4)]();}},_0x5b814e;}async['_submitChangeset'](_0x171b99,_0x268b8c){const _0x415ff9=_0x3bc572;var _0x30a3e2;let {unitType:_0x59d14e,unitID:_0x440eea,changeset:_0x3ec0cc}=_0x268b8c['data'],_0x482620={'unitID':_0x440eea,'memberID':_0x171b99[_0x415ff9(0x3b6)],'type':_0x59d14e,'changeset':_0x43c492(_0x3ec0cc)},_0x38557b=this['_configService'][_0x415ff9(0x306)](R),_0x4dfe68=On((_0x30a3e2=_0x38557b==null?void 0x0:_0x38557b[_0x415ff9(0x1c4)])==null?_0x415ff9(0x390):_0x30a3e2,_0x59d14e,_0x440eea);try{await this[_0x415ff9(0x3b7)][_0x415ff9(0x27f)](_0x4dfe68,{'body':_0x482620});}catch(_0x338ed8){throw this['_logService'][_0x415ff9(0x298)](_0x415ff9(0x33a),_0x415ff9(0x1b1)),_0x338ed8;}}async[_0x3bc572(0x3d2)](_0x439312){const _0x2ef4e2=_0x3bc572;let {unitID:_0x53d0fa,from:_0x419d9b,to:_0x1e81f5,unitType:_0x4c4322}=_0x439312['data'];return(await this['_snapshotServerService'][_0x2ef4e2(0x2ba)]({'metadata':void 0x0},{'unitID':_0x53d0fa,'type':_0x4c4322,'from':_0x419d9b,'to':_0x1e81f5}))[_0x2ef4e2(0x23e)][_0x2ef4e2(0x239)](_0x4a3d08=>((_0x4a3d08['mutations']===null||_0x4a3d08['mutations']===void 0x0)&&(_0x4a3d08[_0x2ef4e2(0x227)]=[]),_0x4a3d08));}};kn=H([V(0x0,_0x167908(_0x35e9e2)),V(0x1,_0x167908(_0x6a3f01)),V(0x2,_0xa7a1b6),V(0x3,_0x2e09c7),V(0x4,_0xe1e81f)],kn);const An=_0x5685c4(_0x3bc572(0x397));function jn(_0x15b16a={}){const _0x2ecb32=_0x3bc572;return _0x15b16a[_0x2ecb32(0x402)]?{'resolveUnit':_0x15b16a[_0x2ecb32(0x402)]}:{'resolveUnit':_0x149ad5=>({'target':{'unitId':_0x149ad5[_0x2ecb32(0x395)],'unitType':_0x149ad5[_0x2ecb32(0x1d0)]}})};}function Mn(_0xa227af,_0x328b0b,_0x1e965e){const _0x4fdf7b=_0x3bc572;var _0x222bd4;let _0xf2f556=_0x1e965e[_0x4fdf7b(0x24b)][_0x4fdf7b(0x356)];if(_0xf2f556!=null&&_0xf2f556[_0x4fdf7b(0x337)]()==='')throw Error(_0x4fdf7b(0x308));if(!_0x1e965e[_0x4fdf7b(0x24b)]['unitId'])throw Error(_0x4fdf7b(0x20e));return{'localUnitId':_0xa227af,'unitType':_0x328b0b,'target':{'endpoint':_0xf2f556,'unitId':_0x1e965e[_0x4fdf7b(0x24b)]['unitId'],'unitType':(_0x222bd4=_0x1e965e['target'][_0x4fdf7b(0x1d0)])==null?_0x328b0b:_0x222bd4},'changeset':_0x1e965e[_0x4fdf7b(0x3e3)]};}let Nn=class extends _0x376cce{constructor(_0x36e01a,_0x5a2d33,_0x2d32ce,_0x3f223f,_0x1b22ef,_0x14781f,_0x1c3378){const _0x425796=_0x3bc572;super(),this['_injector']=_0x36e01a,this[_0x425796(0x1c1)]=_0x5a2d33,this[_0x425796(0x1c9)]=_0x2d32ce,this[_0x425796(0x44a)]=_0x3f223f,this[_0x425796(0x33e)]=_0x1b22ef,this[_0x425796(0x2d8)]=_0x14781f,this['_networkConditionService']=_0x1c3378,z(this,_0x425796(0x35d),new Map()),z(this,_0x425796(0x2ac),new Map()),z(this,_0x425796(0x31a),new Map()),z(this,_0x425796(0x29c),new Map()),z(this,_0x425796(0x354),this['_getSocketChannel'](void 0x0)['socket$'][_0x425796(0x43c)]()),z(this,_0x425796(0x34e),new _0x31b85e(0x0)),z(this,'status$',this[_0x425796(0x34e)][_0x425796(0x43c)]()),this[_0x425796(0x331)]();}[_0x3bc572(0x331)](){const _0x20e3b7=_0x3bc572;this[_0x20e3b7(0x41c)]&&this['disposeWithMe'](this['_networkConditionService'][_0x20e3b7(0x25b)][_0x20e3b7(0x368)](_0x19d259=>{const _0x42cf09=_0x20e3b7;_0x19d259&&this[_0x42cf09(0x285)](),_0x19d259||this[_0x42cf09(0x29c)][_0x42cf09(0x29a)](_0x528b26=>this[_0x42cf09(0x36b)](_0x528b26));}));}['dispose'](){const _0x83984f=_0x3bc572;super['dispose'](),this[_0x83984f(0x29c)][_0x83984f(0x29a)](_0x153ca5=>{const _0x2dd67d=_0x83984f;var _0x1b0117,_0x381a4a;(_0x1b0117=_0x153ca5[_0x2dd67d(0x3f9)])==null||_0x1b0117[_0x2dd67d(0x277)](),_0x153ca5['socketMessageSubscription']=null,this[_0x2dd67d(0x1e1)](_0x153ca5),this[_0x2dd67d(0x1f1)](_0x153ca5),this['_clearHeartbeatTimer'](_0x153ca5),(_0x381a4a=_0x153ca5[_0x2dd67d(0x354)][_0x2dd67d(0x207)]())==null||_0x381a4a[_0x2dd67d(0x3cf)](),_0x153ca5[_0x2dd67d(0x354)]['complete']();}),this[_0x83984f(0x29c)][_0x83984f(0x3bb)](),this[_0x83984f(0x35d)]['forEach'](_0x5e98df=>_0x5e98df[_0x83984f(0x1d4)]()),this['_sessions'][_0x83984f(0x3bb)](),this[_0x83984f(0x31a)][_0x83984f(0x3bb)](),this[_0x83984f(0x34e)][_0x83984f(0x42f)]();}async[_0x3bc572(0x252)](_0x55557d,_0x34d65e){const _0x5d2f42=_0x3bc572;if(this[_0x5d2f42(0x35d)][_0x5d2f42(0x2dd)](_0x55557d))return this[_0x5d2f42(0x35d)][_0x5d2f42(0x1e3)](_0x55557d);let _0x5c9b22=this[_0x5d2f42(0x2ac)][_0x5d2f42(0x1e3)](_0x55557d);if(_0x5c9b22)return _0x5c9b22;let _0x25b71e=this['_createSession'](_0x55557d,_0x34d65e);this[_0x5d2f42(0x2ac)][_0x5d2f42(0x405)](_0x55557d,_0x25b71e);try{return await _0x25b71e;}finally{this[_0x5d2f42(0x2ac)][_0x5d2f42(0x1b4)](_0x55557d);}}async[_0x3bc572(0x1f4)](_0x5e3f40,_0x973574){const _0x2d9cba=_0x3bc572;let _0x10b753=await this[_0x2d9cba(0x242)](_0x5e3f40,_0x973574),_0x3500f8=this[_0x2d9cba(0x266)](_0x10b753[_0x2d9cba(0x24b)][_0x2d9cba(0x356)]);this[_0x2d9cba(0x3de)](_0x3500f8);let _0x3fb988=this[_0x2d9cba(0x44d)][_0x2d9cba(0x2fe)](Ht,_0x10b753,_0x3500f8['socket$']['asObservable']());return this[_0x2d9cba(0x35d)][_0x2d9cba(0x405)](_0x5e3f40,_0x3fb988),this[_0x2d9cba(0x31a)][_0x2d9cba(0x405)](_0x5e3f40,_0x3500f8[_0x2d9cba(0x38d)]),_0x3fb988;}[_0x3bc572(0x1bc)](_0x5396ca){const _0x2456b0=_0x3bc572;let _0x59bfb0=this[_0x2456b0(0x35d)][_0x2456b0(0x1e3)](_0x5396ca),_0x384028=this[_0x2456b0(0x31a)][_0x2456b0(0x1e3)](_0x5396ca);if(_0x59bfb0&&(this[_0x2456b0(0x35d)][_0x2456b0(0x1b4)](_0x5396ca),this['_sessionChannels'][_0x2456b0(0x1b4)](_0x5396ca),_0x59bfb0[_0x2456b0(0x3cf)]()),_0x384028&&!this[_0x2456b0(0x369)](_0x384028)){var _0x31035a;let _0x1c8a5d=this[_0x2456b0(0x29c)][_0x2456b0(0x1e3)](_0x384028);_0x1c8a5d==null||(_0x31035a=_0x1c8a5d[_0x2456b0(0x354)][_0x2456b0(0x207)]())==null||_0x31035a[_0x2456b0(0x3cf)]();}}['reconnect'](){const _0x3887fa=_0x3bc572;(this[_0x3887fa(0x29c)]['size']?[...this[_0x3887fa(0x29c)][_0x3887fa(0x3fe)]()]:[this['_getSocketChannel'](void 0x0)])[_0x3887fa(0x29a)](_0x1a2776=>{const _0x1f0a4e=_0x3887fa;_0x1a2776[_0x1f0a4e(0x2c8)]=0x0,this[_0x1f0a4e(0x1e1)](_0x1a2776),this[_0x1f0a4e(0x3f3)](_0x1a2776);});}['_clearRetryConnectingTimer'](_0x24e2e0){const _0x339bf0=_0x3bc572;_0x24e2e0[_0x339bf0(0x421)]!=null&&(clearTimeout(_0x24e2e0[_0x339bf0(0x421)]),_0x24e2e0['retryConnectingTimer']=null);}async[_0x3bc572(0x251)](_0x2b4e4e){const _0x45f500=_0x3bc572;var _0x101b3f,_0x426ff8;let _0x564d14=this['_configService'][_0x45f500(0x306)](R),_0x4d2690=(_0x101b3f=(_0x426ff8=_0x2b4e4e['endpoint'])==null?_0x564d14==null?void 0x0:_0x564d14[_0x45f500(0x330)]:_0x426ff8)==null?pt:_0x101b3f,_0x3c0a22=await this['_socketService']['createSocket'](_0x4d2690);return _0x2b4e4e[_0x45f500(0x3ff)]=_0x3c0a22,_0x3c0a22;}async[_0x3bc572(0x3de)](_0x515186){const _0x1f5db3=_0x3bc572;try{var _0x5d8650,_0x405274;let _0x41fe8b=(_0x5d8650=(_0x405274=_0x515186['socket$'][_0x1f5db3(0x207)]())==null?_0x515186[_0x1f5db3(0x3ff)]:_0x405274)==null?await this[_0x1f5db3(0x251)](_0x515186):_0x5d8650;if(_0x41fe8b){var _0x38cbbf;let _0x8c8a5a=_0x41fe8b[_0x1f5db3(0x1ef)];_0x41fe8b[_0x1f5db3(0x1ef)]=_0x3e60d1=>(_0x3e60d1[_0x1f5db3(0x265)]!==_0x23fb1d[_0x1f5db3(0x444)]&&this[_0x1f5db3(0x3f7)](_0x515186),_0x8c8a5a[_0x1f5db3(0x352)](_0x41fe8b,[_0x3e60d1])),(_0x38cbbf=_0x515186[_0x1f5db3(0x3f9)])==null||_0x38cbbf[_0x1f5db3(0x277)](),_0x515186[_0x1f5db3(0x3f9)]=null,_0x515186[_0x1f5db3(0x3f9)]=_0x41fe8b[_0x1f5db3(0x30b)][_0x1f5db3(0x368)](_0x27ffff=>this[_0x1f5db3(0x2b9)](_0x515186,_0x41fe8b,_0x27ffff)),_0x41fe8b[_0x1f5db3(0x37b)][_0x1f5db3(0x264)](_0x18ddcd(0x1))[_0x1f5db3(0x368)](_0x468216=>this['_logService'][_0x1f5db3(0x298)](_0x1f5db3(0x269),_0x468216)),_0x41fe8b[_0x1f5db3(0x314)][_0x1f5db3(0x264)](_0x18ddcd(0x1))[_0x1f5db3(0x368)](()=>{const _0x422178=_0x1f5db3;this[_0x422178(0x240)](_0x515186,_0x41fe8b);}),_0x41fe8b[_0x1f5db3(0x383)][_0x1f5db3(0x264)](_0x18ddcd(0x1))[_0x1f5db3(0x368)](_0x383053=>{const _0x58c7e7=_0x1f5db3;this[_0x58c7e7(0x1c1)][_0x58c7e7(0x305)](_0x58c7e7(0x2aa),_0x58c7e7(0x351),_0x383053),this[_0x58c7e7(0x42b)](_0x515186);});}}catch(_0x518d1b){this[_0x1f5db3(0x1c1)][_0x1f5db3(0x298)](_0x518d1b),this['_onConnectionFailed'](_0x515186);}}[_0x3bc572(0x240)](_0x8fb146,_0x4426df){const _0x21092f=_0x3bc572;this['_logService'][_0x21092f(0x305)]('[CollaborationSessionService]',_0x21092f(0x248)),_0x4426df[_0x21092f(0x1ef)]({'cmd':_0x23fb1d['HELLO']}),this[_0x21092f(0x3f7)](_0x8fb146);}[_0x3bc572(0x36b)](_0x10f922){const _0x23ad54=_0x3bc572;_0x10f922[_0x23ad54(0x2b4)]=!0x1,_0x10f922[_0x23ad54(0x3ff)]=null,this[_0x23ad54(0x34e)][_0x23ad54(0x2c7)](0x2),_0x10f922[_0x23ad54(0x354)]['next'](null),this['_clearTimeoutTimer'](_0x10f922),this[_0x23ad54(0x2a2)](_0x10f922);}[_0x3bc572(0x42b)](_0x2784da){const _0x4d842f=_0x3bc572;var _0x3b68fd;this[_0x4d842f(0x36b)](_0x2784da),this[_0x4d842f(0x369)](_0x2784da[_0x4d842f(0x38d)])&&(_0x2784da[_0x4d842f(0x2c8)]<((_0x3b68fd=this['_configService']['getConfig'](_0x4d842f(0x3ea)))==null?0x3:_0x3b68fd)?(this['_collaborationUIEventService'][_0x4d842f(0x340)]({'id':_0x4d842f(0x1b3)}),this[_0x4d842f(0x3f3)](_0x2784da)):this[_0x4d842f(0x33e)][_0x4d842f(0x340)]({'id':_0x4d842f(0x40b)}));}[_0x3bc572(0x3f3)](_0x4c7e4b){const _0x56e7b9=_0x3bc572;var _0x12851c;let _0x13e8e0=_0x4c7e4b[_0x56e7b9(0x2c8)],_0x73db5a=this[_0x56e7b9(0x1c9)][_0x56e7b9(0x306)](R),_0x5e866d=_0x13e8e0===0x0?0x0:((_0x12851c=_0x73db5a==null?void 0x0:_0x73db5a[_0x56e7b9(0x2f4)])==null?0x4e20:_0x12851c)*0x2**_0x13e8e0;_0x4c7e4b[_0x56e7b9(0x421)]=setTimeout(()=>{const _0x1da677=_0x56e7b9;clearTimeout(_0x4c7e4b[_0x1da677(0x421)]),_0x4c7e4b[_0x1da677(0x421)]=null,this[_0x1da677(0x3de)](_0x4c7e4b);},_0x5e866d),_0x4c7e4b['retryCount']+=0x1;}async[_0x3bc572(0x242)](_0x12ef76,_0x31e9ba){const _0x4084c1=_0x3bc572;return Mn(_0x12ef76,_0x31e9ba,await this[_0x4084c1(0x2d8)][_0x4084c1(0x402)]({'unitId':_0x12ef76,'unitType':_0x31e9ba}));}[_0x3bc572(0x2b9)](_0x2d1a6e,_0x41be4c,_0x1bb642){const _0xc4a754=_0x3bc572;let {cmd:_0xa98b78}=_0x1bb642;_0xa98b78===_0x23fb1d[_0xc4a754(0x292)]&&!_0x2d1a6e[_0xc4a754(0x2b4)]&&(_0x41be4c[_0xc4a754(0x3b6)]=_0x1bb642[_0xc4a754(0x2c6)]['memberID'],_0x2d1a6e[_0xc4a754(0x354)]['next'](_0x41be4c),this[_0xc4a754(0x34e)]['next'](0x3),_0x2d1a6e['socketReady']=!0x0,_0x2d1a6e[_0xc4a754(0x3ff)]=null),_0xa98b78===_0x23fb1d[_0xc4a754(0x20b)]&&this['_clearTimeoutTimer'](_0x2d1a6e),this[_0xc4a754(0x3f7)](_0x2d1a6e);}['_hasSessionsForEndpoint'](_0x4d0f02){const _0x5705e5=_0x3bc572;return[...this['_sessionChannels'][_0x5705e5(0x3fe)]()]['some'](_0x2172d4=>_0x2172d4===_0x4d0f02);}[_0x3bc572(0x266)](_0x223f86){const _0x1b4dd0=_0x3bc572;let _0xf559=_0x223f86==null?'':_0x223f86,_0x34edef=this[_0x1b4dd0(0x29c)]['get'](_0xf559);if(_0x34edef)return _0x34edef;let _0x9fbaf={'endpointKey':_0xf559,'endpoint':_0x223f86,'socket$':new _0x31b85e(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x1b4dd0(0x29c)]['set'](_0xf559,_0x9fbaf),_0x9fbaf;}[_0x3bc572(0x3f7)](_0xb5cffc){const _0x5736fe=_0x3bc572;var _0x157b5f;this[_0x5736fe(0x2a2)](_0xb5cffc),_0xb5cffc['sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](_0xb5cffc),(_0x157b5f=this['_configService'][_0x5736fe(0x306)](_0x5736fe(0x2c2)))==null?0x7530:_0x157b5f);}[_0x3bc572(0x209)](_0x3d37c6){const _0x4110eb=_0x3bc572;_0x3d37c6[_0x4110eb(0x354)][_0x4110eb(0x207)]()[_0x4110eb(0x1ef)]({'cmd':_0x23fb1d[_0x4110eb(0x20b)]}),this[_0x4110eb(0x294)](_0x3d37c6);}[_0x3bc572(0x294)](_0x51e9fd){const _0xa98c6=_0x3bc572;var _0x1e3f14;_0x51e9fd[_0xa98c6(0x22f)]=setTimeout(()=>this['_onConnectionFailed'](_0x51e9fd),(_0x1e3f14=this[_0xa98c6(0x1c9)][_0xa98c6(0x306)](_0xa98c6(0x358)))==null?_t:_0x1e3f14);}[_0x3bc572(0x2a2)](_0x200333){const _0x2ca126=_0x3bc572;_0x200333[_0x2ca126(0x1c2)]!=null&&(clearTimeout(_0x200333[_0x2ca126(0x1c2)]),_0x200333[_0x2ca126(0x1c2)]=null);}[_0x3bc572(0x1f1)](_0x4a6f1f){const _0x3e610b=_0x3bc572;_0x4a6f1f['timeoutTimer']!=null&&(clearTimeout(_0x4a6f1f['timeoutTimer']),_0x4a6f1f[_0x3e610b(0x22f)]=null);}};Nn=H([V(0x0,_0x167908(_0x35e9e2)),V(0x1,_0x2e09c7),V(0x2,_0xa7a1b6),V(0x3,Dn),V(0x4,_0x167908(B)),V(0x5,An),V(0x6,_0x2a5dd8(wn))],Nn);let Pn=class extends _0x4ca998{constructor(_0x24ac63,_0x1dd727,_0x3ba1f0,_0x33ee1c){const _0x5776a4=_0x3bc572;var _0x5aa67b;super(),this[_0x5776a4(0x44d)]=_0x24ac63,this['_collabSessionService']=_0x1dd727,this['_configService']=_0x3ba1f0,this[_0x5776a4(0x449)]=_0x33ee1c,z(this,_0x5776a4(0x410),new Map()),z(this,'_entityInit$',new _0x5b6066()),z(this,_0x5776a4(0x3c6),this[_0x5776a4(0x1d7)][_0x5776a4(0x43c)]()),((_0x5aa67b=this[_0x5776a4(0x1c9)][_0x5776a4(0x306)](_0x5776a4(0x282)))==null?void 0x0:_0x5aa67b['enableCollaboration'])!==!0x1&&this[_0x5776a4(0x212)]();}[_0x3bc572(0x1d4)](){const _0x45156f=_0x3bc572;super['dispose'](),this[_0x45156f(0x410)][_0x45156f(0x29a)](_0xd1585a=>_0xd1585a[_0x45156f(0x1d4)]()),this[_0x45156f(0x410)][_0x45156f(0x3bb)]();}[_0x3bc572(0x2dc)](_0x116cd3){const _0x38b59e=_0x3bc572;var _0x22ff9e;return(_0x22ff9e=this[_0x38b59e(0x410)][_0x38b59e(0x1e3)](_0x116cd3))==null?null:_0x22ff9e;}[_0x3bc572(0x1e6)](_0x2e3273){const _0x2785cc=_0x3bc572;let _0x4ef23d=this[_0x2785cc(0x2dc)](_0x2e3273);return _0x4ef23d?_0x5d6819(_0x4ef23d):this[_0x2785cc(0x1d7)][_0x2785cc(0x264)](_0x519396(_0x55ae0a=>_0x55ae0a[_0x2785cc(0x399)]===_0x2e3273));}['readyForCollab'](_0x5a7335){const _0x5aac37=_0x3bc572;return _0xecbbf6(this['getCollabEntity$'](_0x5a7335)[_0x5aac37(0x264)](_0x37612c(()=>void 0x0)));}[_0x3bc572(0x212)](){const _0x590857=_0x3bc572;this['_univerInstanceService'][_0x590857(0x2c4)](_0x1f1b4f[_0x590857(0x33c)])[_0x590857(0x264)](_0xb785f(this['dispose$']),_0x5f4ad8(0x10))[_0x590857(0x368)](async _0x5dbd01=>{const _0x533c74=_0x590857;let _0x51e8c6=_0x5dbd01[_0x533c74(0x1be)][_0x533c74(0x1da)](),_0x1d4529=await this[_0x533c74(0x3ba)](_0x51e8c6,_0x1f1b4f[_0x533c74(0x33c)]);this['_entities'][_0x533c74(0x405)](_0x51e8c6,_0x1d4529);}),this[_0x590857(0x449)][_0x590857(0x2c4)](_0x1f1b4f[_0x590857(0x3e1)])['pipe'](_0xb785f(this['dispose$']),_0x5f4ad8(0x10))[_0x590857(0x264)](_0x519396(_0x3d9e94=>!_0x3d9e94[_0x590857(0x1be)]['getUnitId']()['startsWith']('__')))[_0x590857(0x368)](async _0x1e70f8=>{const _0x499b82=_0x590857;let _0x6f127e=_0x1e70f8[_0x499b82(0x1be)]['getUnitId'](),_0x132cab=await this[_0x499b82(0x3ba)](_0x6f127e,_0x1f1b4f[_0x499b82(0x3e1)]);this[_0x499b82(0x410)][_0x499b82(0x405)](_0x6f127e,_0x132cab);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x1f1b4f[_0x590857(0x3c4)])[_0x590857(0x264)](_0xb785f(this[_0x590857(0x3d6)]),_0x5f4ad8(0x10))[_0x590857(0x368)](async _0x19e9db=>{const _0x42b396=_0x590857;let _0x280147=_0x19e9db[_0x42b396(0x1be)][_0x42b396(0x1da)](),_0x1ae9bd=await this['_startCollaboration'](_0x280147,_0x1f1b4f[_0x42b396(0x3c4)]);this['_entities'][_0x42b396(0x405)](_0x280147,_0x1ae9bd);}),this[_0x590857(0x449)][_0x590857(0x2c4)](_0x1f1b4f['UNIVER_BOARD'])[_0x590857(0x264)](_0xb785f(this[_0x590857(0x3d6)]),_0x5f4ad8(0x10))[_0x590857(0x368)](async _0x2afa27=>{const _0x3790f7=_0x590857;let _0x2d0f76=_0x2afa27[_0x3790f7(0x1be)][_0x3790f7(0x1da)](),_0x2a77df=await this[_0x3790f7(0x3ba)](_0x2d0f76,_0x1f1b4f[_0x3790f7(0x426)]);this[_0x3790f7(0x410)][_0x3790f7(0x405)](_0x2d0f76,_0x2a77df);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x1f1b4f[_0x590857(0x3fd)])[_0x590857(0x264)](_0xb785f(this[_0x590857(0x3d6)]),_0x5f4ad8(0x10))[_0x590857(0x368)](async _0x4d61db=>{const _0x3a8a4b=_0x590857;let _0x13d988=_0x4d61db['unit']['getUnitId'](),_0xe919fc=await this[_0x3a8a4b(0x3ba)](_0x13d988,_0x1f1b4f[_0x3a8a4b(0x3fd)]);this[_0x3a8a4b(0x410)][_0x3a8a4b(0x405)](_0x13d988,_0xe919fc);}),this[_0x590857(0x449)][_0x590857(0x2c4)](_0x1f1b4f[_0x590857(0x2ca)])['pipe'](_0xb785f(this[_0x590857(0x3d6)]),_0x5f4ad8(0x10))[_0x590857(0x368)](async _0xf52425=>{const _0x1e38d9=_0x590857;let _0x2682b9=_0xf52425[_0x1e38d9(0x1be)]['getUnitId'](),_0x24fecb=await this[_0x1e38d9(0x3ba)](_0x2682b9,_0x1f1b4f[_0x1e38d9(0x2ca)]);this[_0x1e38d9(0x410)][_0x1e38d9(0x405)](_0x2682b9,_0x24fecb);}),_0x4b9f39(this[_0x590857(0x449)]['getTypeOfUnitDisposed$'](_0x1f1b4f[_0x590857(0x33c)]),this[_0x590857(0x449)][_0x590857(0x40a)](_0x1f1b4f[_0x590857(0x3e1)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x1f1b4f[_0x590857(0x3c4)]),this[_0x590857(0x449)][_0x590857(0x40a)](_0x1f1b4f[_0x590857(0x426)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x1f1b4f['UNIVER_BASE']),this['_univerInstanceService'][_0x590857(0x40a)](_0x1f1b4f[_0x590857(0x2ca)]))['pipe'](_0xb785f(this[_0x590857(0x3d6)]))[_0x590857(0x368)](_0x901140=>{const _0x24bdfe=_0x590857;let _0x5ec70b=_0x901140[_0x24bdfe(0x1da)](),_0x5e2f8c=this[_0x24bdfe(0x410)][_0x24bdfe(0x1e3)](_0x5ec70b);_0x5e2f8c&&(_0x5e2f8c[_0x24bdfe(0x1d4)](),this[_0x24bdfe(0x410)]['delete'](_0x5ec70b));});}async[_0x3bc572(0x3ba)](_0x122823,_0x3429b6){const _0x3079cf=_0x3bc572;let _0x533c0b=await this[_0x3079cf(0x3c0)][_0x3079cf(0x252)](_0x122823),_0x58586e=this['_injector'][_0x3079cf(0x2fe)](this[_0x3079cf(0x2c0)](_0x3429b6),_0x122823,_0x3429b6,_0x533c0b);return await _0x58586e['init'](),this[_0x3079cf(0x1d7)][_0x3079cf(0x2c7)](_0x58586e),_0x58586e;}[_0x3bc572(0x2c0)](_0x2a2649){const _0x382d36=_0x3bc572;switch(_0x2a2649){case _0x1f1b4f[_0x382d36(0x3e1)]:return vn;case _0x1f1b4f['UNIVER_SHEET']:return bn;case _0x1f1b4f['UNIVER_SLIDE']:return xn;case _0x1f1b4f[_0x382d36(0x426)]:return Sn;case _0x1f1b4f['UNIVER_BASE']:return yn;case _0x1f1b4f[_0x382d36(0x2ca)]:return Cn;default:throw Error(_0x382d36(0x379)+_0x2a2649);}}};Pn=H([V(0x0,_0x167908(_0x35e9e2)),V(0x1,_0x167908(Nn)),V(0x2,_0xa7a1b6),V(0x3,_0x6f9bb2)],Pn);var Fn=_0x3bc572(0x23a),In='1.0.0-alpha.8';let Ln=class extends _0x376cce{constructor(_0x1a0204,_0x5364ca){const _0x6a8544=_0x3bc572;super(),this['_univerInstanceService']=_0x1a0204,this['_configService']=_0x5364ca,this[_0x6a8544(0x212)]();}['_init'](){const _0x464ada=_0x3bc572;this['disposeWithMe'](this[_0x464ada(0x449)][_0x464ada(0x28f)][_0x464ada(0x368)](()=>{const _0xaba180=_0x464ada;var _0x331bb6;let _0xe38336=this[_0xaba180(0x449)][_0xaba180(0x26d)](),_0x120b1=(_0x331bb6=this['_configService']['getConfig']('DEFAULT_FILE_NAME'))==null?_0xaba180(0x3b3):_0x331bb6;_0xe38336 instanceof _0x45f35b&&(_0x120b1=_0xe38336['name']),document[_0xaba180(0x205)]=_0x120b1;}));}};Ln=H([V(0x0,_0x6f9bb2),V(0x1,_0xa7a1b6)],Ln);const Rn=_0x5685c4('base-ui.attachment-io.service');let zn=class{constructor(_0x4d2b44,_0x28e77e,_0x23c88b){const _0x4eba0c=_0x3bc572;this['_httpService']=_0x4d2b44,this[_0x4eba0c(0x1c9)]=_0x28e77e,this['_univerInstanceService']=_0x23c88b;}[_0x3bc572(0x378)](){const _0x37b1be=_0x3bc572;var _0x4ad9fa;return(_0x4ad9fa=this['_getConfig']()[_0x37b1be(0x2d0)])==null?{}:_0x4ad9fa;}async[_0x3bc572(0x247)](_0x4aef98){const _0x48636f=_0x3bc572;let _0x23971f=this[_0x48636f(0x378)]();if(Bn(_0x4aef98,_0x23971f),_0x23971f[_0x48636f(0x2d6)])return _0x23971f['upload'](_0x4aef98);let _0x5c55fc=await this['_upload'](_0x4aef98);return{'id':_0x5c55fc,'name':_0x4aef98[_0x48636f(0x25f)],'mimeType':_0x4aef98[_0x48636f(0x2f0)],'size':_0x4aef98['size'],'sourceType':_0x493f5e[_0x48636f(0x241)],'source':_0x5c55fc};}async[_0x3bc572(0x30f)](_0xa3775c,_0x1be913){const _0x3b2273=_0x3bc572;if(_0x1be913!==_0x493f5e[_0x3b2273(0x241)])return _0xa3775c;let _0x1f0236=(await this[_0x3b2273(0x3b7)]['get'](this[_0x3b2273(0x1fc)]()['replace'](_0x3b2273(0x329),_0xa3775c)))['body'];if(_0x1f0236['error']&&_0x1f0236[_0x3b2273(0x298)][_0x3b2273(0x36f)]!==_0x2fd5b6['OK'])throw _0x1f0236[_0x3b2273(0x298)];if(!_0x1f0236[_0x3b2273(0x3cd)])throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.');return _0x4823ba(_0x1f0236[_0x3b2273(0x3cd)],this[_0x3b2273(0x28a)]());}async[_0x3bc572(0x367)](_0x262097){const _0x3d3f20=_0x3bc572;let _0x3efb20=this[_0x3d3f20(0x449)][_0x3d3f20(0x26d)](),_0x369c41=_0x3efb20==null?void 0x0:_0x3efb20[_0x3d3f20(0x1da)]();if(!_0x369c41)throw Error(_0x3d3f20(0x42d));let _0xa05d5a=new FormData();_0xa05d5a['append'](_0x3d3f20(0x203),_0x262097);let _0x748fb=this['_getUploadFileURL']()+_0x3d3f20(0x366)+_0x262097['size'][_0x3d3f20(0x1f6)]()+_0x3d3f20(0x3fa)+_0x10cf89[_0x3d3f20(0x1cc)]+_0x3d3f20(0x40c)+encodeURIComponent(_0x369c41),_0x38d680=(await this[_0x3d3f20(0x3b7)][_0x3d3f20(0x27f)](_0x748fb,{'body':_0xa05d5a}))['body'][_0x3d3f20(0x3b2)];if(typeof _0x38d680!=_0x3d3f20(0x288)||!_0x38d680)throw Error(_0x3d3f20(0x2bc));return _0x38d680;}[_0x3bc572(0x1e9)](){const _0x1ff444=_0x3bc572;var _0x128049;return(_0x128049=this[_0x1ff444(0x21e)]()['uploadFileServerUrl'])==null?_0x1ff444(0x43f):_0x128049;}[_0x3bc572(0x1fc)](){const _0x3f740f=_0x3bc572;var _0x2d833f;return(_0x2d833f=this[_0x3f740f(0x21e)]()[_0x3f740f(0x2c9)])==null?'/universer-api/file/{fileID}/sign-url':_0x2d833f;}[_0x3bc572(0x28a)](){const _0x2b2d12=_0x3bc572;var _0x47dc22;let _0x130926=this[_0x2b2d12(0x21e)]();return _0x130926['downloadEndpointUrl']?_0x130926[_0x2b2d12(0x1c8)]:typeof location<'u'?location[_0x2b2d12(0x32f)]:(_0x47dc22=_0x130926[_0x2b2d12(0x347)])==null?'':_0x47dc22;}[_0x3bc572(0x21e)](){const _0x6bfa25=_0x3bc572;var _0x10a52c;return(_0x10a52c=this[_0x6bfa25(0x1c9)][_0x6bfa25(0x306)](_0x6bfa25(0x282)))==null?{}:_0x10a52c;}};zn=H([V(0x0,_0x167908(_0x6a3f01)),V(0x1,_0x167908(_0xa7a1b6)),V(0x2,_0x167908(_0x6f9bb2))],zn);function Bn(_0x4cab76,_0x50e8bc){const _0x3defc8=_0x3bc572;var _0x45bfca;if(_0x50e8bc[_0x3defc8(0x287)]!=null&&_0x4cab76[_0x3defc8(0x318)]>_0x50e8bc[_0x3defc8(0x287)])throw Error(_0x3defc8(0x32e));if((_0x45bfca=_0x50e8bc[_0x3defc8(0x3eb)])!=null&&_0x45bfca[_0x3defc8(0x28d)]&&!_0x50e8bc['accept']['some'](_0x1912dc=>_0x4cab76['type']===_0x1912dc||_0x4cab76[_0x3defc8(0x25f)]['endsWith'](_0x1912dc)||_0x1912dc[_0x3defc8(0x27c)]('/*')&&_0x4cab76['type'][_0x3defc8(0x214)](_0x1912dc['slice'](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let Vn=class{constructor(_0x4e0436,_0x3804d0,_0x466068){const _0x4600a4=_0x3bc572;this['_configService']=_0x4e0436,this[_0x4600a4(0x3b7)]=_0x3804d0,this[_0x4600a4(0x341)]=_0x466068,this[_0x4600a4(0x3bf)]();}['init'](){const _0x16c9e1=_0x3bc572;this[_0x16c9e1(0x3b7)][_0x16c9e1(0x254)]({'priority':0x1,'interceptor':(_0x59dfd4,_0x489e7a)=>_0x489e7a(_0x59dfd4)[_0x16c9e1(0x264)](_0x4bcf17(async _0x528401=>{const _0x48ff8e=_0x16c9e1;let _0x2b0c60=_0x528401;if(_0x2b0c60['status']===0x191){if(typeof window>'u')throw Error(_0x48ff8e(0x2e4));if(window[_0x48ff8e(0x1e7)](this[_0x48ff8e(0x341)]['t'](_0x48ff8e(0x211)))){let _0x8fc6f0=window[_0x48ff8e(0x37c)](window['location']['href']);window['location'][_0x48ff8e(0x392)]=this[_0x48ff8e(0x34b)]()+'?url='+_0x8fc6f0;}}return _0x2b0c60;}))});}[_0x3bc572(0x34b)](){const _0x3fa052=_0x3bc572;var _0x209ad7;let _0x3ce33e=this['_configService']['getConfig'](R);return(_0x209ad7=_0x3ce33e==null?void 0x0:_0x3ce33e[_0x3fa052(0x310)])==null?'/universer-api/oidc/authpage':_0x209ad7;}};Vn=H([V(0x0,_0xa7a1b6),V(0x1,_0x167908(_0x6a3f01)),V(0x2,_0x167908(_0x3b5f18))],Vn);let Hn=class extends _0x376cce{constructor(_0x51d49d,_0x1f72a4){const _0x21c479=_0x3bc572;super(),this['_HTTPService']=_0x51d49d,this[_0x21c479(0x1c9)]=_0x1f72a4,z(this,'_cfgEnableObjInherit',!0x1),this[_0x21c479(0x1f0)]();}[_0x3bc572(0x1f0)](){const _0x3151cd=_0x3bc572;let _0x5befb8=this;this[_0x3151cd(0x21b)](this[_0x3151cd(0x3db)][_0x3151cd(0x254)]({'priority':0x3e7,'interceptor':_0x24f540({'isMatch'(_0x4c1fd3){const _0x1d5896=_0x3151cd;var _0x10a3d9;if(_0x4c1fd3[_0x1d5896(0x2d4)]===_0x1d5896(0x1b7)&&(_0x10a3d9=_0x4c1fd3['requestParams'])!=null&&_0x10a3d9[_0x1d5896(0x236)]){let {objectID:_0x49d135,objectType:_0x707585}=_0x4c1fd3['requestParams'][_0x1d5896(0x236)]||{};if(!_0x49d135||_0x707585===void 0x0)return!0x1;let _0x5f30c8=_0x5befb8[_0x1d5896(0x362)]()+'/'+_0x707585+_0x1d5896(0x3a5)+_0x49d135+_0x1d5896(0x3a6);if(_0x4c1fd3[_0x1d5896(0x3cd)]===_0x5f30c8)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xd26b22){const _0x529018=_0x3151cd;var _0x3a2fbb;return(_0x3a2fbb=_0xd26b22[_0x529018(0x3d9)])==null?void 0x0:_0x3a2fbb[_0x529018(0x236)];},'mergeParamsToRequest'(_0x260308,_0x438029){const _0x3d3c70=_0x3151cd;let _0x4d2924=_0x5befb8[_0x3d3c70(0x362)]()+_0x3d3c70(0x243),_0x1a3c5b=_0x260308[_0x3d3c70(0x336)]((_0x5c3015,_0x301cf5)=>{const _0x24b3d8=_0x3d3c70;let {unitID:_0x10cd1c,objectID:_0x1ef581,objectType:_0x41933b,actions:_0x1467a1}=_0x301cf5;return _0x5c3015[_0x10cd1c]||(_0x5c3015[_0x10cd1c]={}),_0x5c3015[_0x10cd1c][_0x1ef581]||(_0x5c3015[_0x10cd1c][_0x1ef581]={'objectID':_0x1ef581,'objectType':_0x41933b,'actions':[]}),_0x5c3015[_0x10cd1c][_0x1ef581]['actions'][_0x24b3d8(0x250)](..._0x1467a1),_0x5c3015;},{}),_0x3f5c2c=[];for(let _0x592442 in _0x1a3c5b)for(let _0x1c6460 in _0x1a3c5b[_0x592442]){let {actions:_0x4db69c,objectType:_0x506bf4}=_0x1a3c5b[_0x592442][_0x1c6460],_0x3bdbda=[...new Set(_0x4db69c)];_0x3f5c2c[_0x3d3c70(0x250)]({'unitID':_0x592442,'objectID':_0x1c6460,'objectType':_0x506bf4,'actions':_0x3bdbda});}return new _0x3cc753('POST',_0x4d2924,{'headers':_0x438029[_0x3d3c70(0x2b5)],'withCredentials':_0x438029[_0x3d3c70(0x3e8)],'responseType':_0x438029[_0x3d3c70(0x2d2)],'body':{'requests':_0x3f5c2c}});}},{'distributeResult'(_0x45f209,_0xf63e21){const _0x415754=_0x3151cd;let {objectActions:_0xf187f2}=_0x45f209;return _0xf63e21[_0x415754(0x239)](_0x4083f3=>{const _0x85373f=_0x415754;let {unitID:_0x41c5a8,objectID:_0x1d96b3,actions:_0x560bcb}=_0x4083f3,_0x9582fd=_0xf187f2['find'](_0x4fb080=>_0x4fb080['unitID']===_0x41c5a8&&_0x4fb080[_0x85373f(0x1ab)]===_0x1d96b3);return{'config':_0x4083f3,'result':{'actions':_0x560bcb[_0x85373f(0x239)](_0x12a25e=>_0x9582fd==null?void 0x0:_0x9582fd[_0x85373f(0x311)][_0x85373f(0x398)](_0x20459b=>_0x20459b[_0x85373f(0x283)]===_0x12a25e))['filter'](_0x199d0=>!!_0x199d0),'error':_0x45f209[_0x85373f(0x298)]}};});}})}));}[_0x3bc572(0x362)](){const _0xdbf4d1=_0x3bc572;var _0x109536;let _0x32300a=this[_0xdbf4d1(0x1c9)][_0xdbf4d1(0x306)](R);return(_0x109536=_0x32300a==null?void 0x0:_0x32300a['authzUrl'])==null?_0xdbf4d1(0x290):_0x109536;}async[_0x3bc572(0x1eb)](_0x5c5720){const _0x2341a1=_0x3bc572;let _0x5000a5=this[_0x2341a1(0x362)]()+'/'+_0x5c5720['objectType']+_0x2341a1(0x302);return(await this[_0x2341a1(0x3db)]['post'](_0x5000a5,{'body':_0x5c5720}))['body'][_0x2341a1(0x1ab)]||'';}async[_0x3bc572(0x34c)](_0x1bcf06){const _0x1c4351=_0x3bc572;let _0x303b21=this['_getAPIPrefixPath']()+_0x1c4351(0x407);return(await this[_0x1c4351(0x3db)][_0x1c4351(0x27f)](_0x303b21,{'body':_0x1bcf06}))[_0x1c4351(0x236)][_0x1c4351(0x36e)];}async[_0x3bc572(0x37f)](_0x54196c){const _0x173a6e=_0x3bc572;var _0x37e999;let _0x8fb431=this[_0x173a6e(0x362)]()+'/'+_0x54196c[_0x173a6e(0x273)]+_0x173a6e(0x3a5)+_0x54196c[_0x173a6e(0x1ab)],_0xd5e7fe=await this[_0x173a6e(0x3db)][_0x173a6e(0x2d9)](_0x8fb431,{'body':_0x54196c});if((_0xd5e7fe==null||(_0x37e999=_0xd5e7fe[_0x173a6e(0x236)])==null||(_0x37e999=_0x37e999[_0x173a6e(0x298)])==null?void 0x0:_0x37e999[_0x173a6e(0x36f)])!==0x1)throw Error(_0x173a6e(0x21d));}async['allowed'](_0x4ea0e1){const _0x270a31=_0x3bc572;let _0x30e018=this['_getAPIPrefixPath']()+'/'+_0x4ea0e1[_0x270a31(0x273)]+_0x270a31(0x3a5)+_0x4ea0e1[_0x270a31(0x1ab)]+_0x270a31(0x3a6);return(await this[_0x270a31(0x3db)][_0x270a31(0x27f)](_0x30e018,{'body':_0x4ea0e1}))[_0x270a31(0x236)][_0x270a31(0x311)];}async['batchAllowed'](_0x3ac8ff){const _0x9976b1=_0x3bc572;let _0x3a455e=this[_0x9976b1(0x362)]()+_0x9976b1(0x243);return(await this['_HTTPService'][_0x9976b1(0x27f)](_0x3a455e,{'body':{'requests':_0x3ac8ff}}))[_0x9976b1(0x236)]['objectActions'];}async['listRoles'](_0xae85bc){const _0x5de7f2=_0x3bc572;let _0x495c24=this[_0x5de7f2(0x362)]()+'/'+_0xae85bc['objectType']+'/role',_0x8bc260=await this[_0x5de7f2(0x3db)][_0x5de7f2(0x27f)](_0x495c24,{'body':_0xae85bc});return{'roles':_0x8bc260[_0x5de7f2(0x236)][_0x5de7f2(0x3d0)],'actions':_0x8bc260[_0x5de7f2(0x236)][_0x5de7f2(0x311)]};}async[_0x3bc572(0x345)](_0x442481){const _0x44dded=_0x3bc572;let _0x5e14e0=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x44dded(0x3db)][_0x44dded(0x1b4)](_0x5e14e0,{'params':{'collaboratorID':_0x442481['collaboratorID'],'objectID':_0x442481[_0x44dded(0x1ab)],'unitID':_0x442481[_0x44dded(0x399)]}});}async[_0x3bc572(0x3ee)](_0x5e34f1){const _0x19a4c4=_0x3bc572;let _0x3d1ebc=this['_getAPIPrefixPath']()+_0x19a4c4(0x3e4);await this[_0x19a4c4(0x3db)][_0x19a4c4(0x23b)](_0x3d1ebc,{'body':_0x5e34f1});}async['createCollaborator'](_0x11a3e8){const _0x42a097=_0x3bc572;let _0xffbfab=this[_0x42a097(0x362)]()+_0x42a097(0x3e4);await this[_0x42a097(0x3db)][_0x42a097(0x27f)](_0xffbfab,{'body':_0x11a3e8});}async[_0x3bc572(0x322)](_0x296720){const _0x73a708=_0x3bc572;var _0x451891;let _0x11b07b=this[_0x73a708(0x362)]()+_0x73a708(0x3e4),_0x4a8dfb=await this[_0x73a708(0x3db)][_0x73a708(0x1e3)](_0x11b07b,{'params':{'objectID':_0x296720[_0x73a708(0x1ab)],'unitID':_0x296720[_0x73a708(0x399)]}});return this[_0x73a708(0x425)]((_0x451891=_0x4a8dfb[_0x73a708(0x236)][_0x73a708(0x216)])!=null&&_0x451891),_0x4a8dfb[_0x73a708(0x236)][_0x73a708(0x38f)];}async[_0x3bc572(0x3a9)](_0x12bdc7){const _0xd1d887=_0x3bc572;let _0x1a6fea=this[_0xd1d887(0x362)]()+_0xd1d887(0x3e4);await this[_0xd1d887(0x3db)][_0xd1d887(0x2d9)](_0x1a6fea,{'body':_0x12bdc7});}[_0x3bc572(0x425)](_0x5aaa4e){const _0x9021ee=_0x3bc572;this[_0x9021ee(0x2a1)]=_0x5aaa4e;}['getCfgEnableObjInherit'](){return this['_cfgEnableObjInherit'];}};Hn=H([V(0x0,_0x167908(_0x6a3f01)),V(0x1,_0x167908(_0xa7a1b6))],Hn);function Un(_0x4ec4f6){const _0x17e813=_0x3bc572;let _0x5a89b6=atob(_0x4ec4f6),_0x4809de=new Uint8Array(_0x5a89b6[_0x17e813(0x28d)]);for(let _0x19a64f=0x0;_0x19a64f<_0x5a89b6[_0x17e813(0x28d)];_0x19a64f++)_0x4809de[_0x19a64f]=_0x5a89b6['charCodeAt'](_0x19a64f);return _0x4809de;}function Wn(_0xdd1e4b){const _0x54582b=_0x3bc572;let _0x42126e='';for(let _0x31d73d=0x0;_0x31d73d<_0xdd1e4b[_0x54582b(0x28d)];_0x31d73d++)_0x42126e+=String['fromCharCode'](_0xdd1e4b[_0x31d73d]);return btoa(_0x42126e);}function Gn(_0x1e1b16,_0xa24e80){let _0x353a1a=Un(_0xa24e80),_0x2969b8=_0x1dfafc(0x10);return Wn(_0x2bb09d(_0x2969b8,_0x3823ef(_0x353a1a,_0x2969b8)['encrypt'](_0x34339e(_0x1e1b16))));}function Kn(){const _0x3da139=_0x3bc572;let _0x1e627c=_0x153271()[_0x3da139(0x3ae)];if(typeof window<'u'&&window[_0x3da139(0x3d7)]!==void 0x0&&_0x1e627c){let _0x18b81f={'time':Math[_0x3da139(0x3a0)](Date['now']()/0x3e8),'domain':location[_0x3da139(0x3e0)]};return Gn(JSON[_0x3da139(0x3c3)](_0x18b81f),_0x1e627c);}}let qn=class{constructor(_0x52c5bb){const _0x6bab9f=_0x3bc572;this[_0x6bab9f(0x3b7)]=_0x52c5bb,this['_initRequestHeader']();}[_0x3bc572(0x372)](){const _0x4d808d=_0x3bc572;this['_httpService'][_0x4d808d(0x254)]({'interceptor':(_0xc952b,_0x42814b)=>{const _0x124280=_0x4d808d;let _0x72a80=Kn();return _0x72a80&&_0xc952b[_0x124280(0x2b5)]['set'](_0x124280(0x1b2),_0x72a80),_0x42814b(_0xc952b);}});}};qn=H([V(0x0,_0x167908(_0x6a3f01))],qn);let Jn=class extends _0x4ca998{constructor(_0x2adb41,_0x4f9091,_0x4364e6){const _0x3de8a0=_0x3bc572;super(),this[_0x3de8a0(0x1c1)]=_0x2adb41,this[_0x3de8a0(0x2bf)]=_0x4f9091,this[_0x3de8a0(0x422)]=_0x4364e6,z(this,_0x3de8a0(0x2ad),new _0x31b85e(null)),z(this,'_unitLoaded$',new _0x5b6066()),z(this,'unitInfo$',this[_0x3de8a0(0x2ad)][_0x3de8a0(0x43c)]()),z(this,_0x3de8a0(0x309),this[_0x3de8a0(0x3d5)][_0x3de8a0(0x43c)]());}[_0x3bc572(0x1d4)](){const _0x22549b=_0x3bc572;super[_0x22549b(0x1d4)](),this[_0x22549b(0x3d5)]['complete'](),this[_0x22549b(0x2ad)][_0x22549b(0x42f)]();}async[_0x3bc572(0x245)](_0x1d44e0,_0x17750a,_0x3481ff,_0x5a1da8){const _0x19bfd4=_0x3bc572;this['_unitInfo$'][_0x19bfd4(0x2c7)]({'unitId':_0x1d44e0,'type':_0x17750a,'subUnitId':_0x5a1da8});let _0x28f19a=null;switch(_0x17750a){case _0x1f1b4f[_0x19bfd4(0x33c)]:_0x28f19a=await this[_0x19bfd4(0x2bf)][_0x19bfd4(0x274)](_0x1d44e0,_0x3481ff,void 0x0,{'initialSubUnitId':_0x5a1da8});break;case _0x1f1b4f['UNIVER_DOC']:_0x28f19a=await this[_0x19bfd4(0x2bf)][_0x19bfd4(0x335)](_0x1d44e0,_0x3481ff);break;case _0x1f1b4f['UNIVER_SLIDE']:_0x28f19a=await this[_0x19bfd4(0x2bf)][_0x19bfd4(0x343)](_0x1d44e0,_0x3481ff);break;case _0x1f1b4f[_0x19bfd4(0x426)]:_0x28f19a=await this['_snapshotService'][_0x19bfd4(0x2f7)](_0x1d44e0,_0x3481ff);break;case _0x1f1b4f[_0x19bfd4(0x3fd)]:_0x28f19a=await this[_0x19bfd4(0x2bf)][_0x19bfd4(0x38b)](_0x1d44e0,_0x3481ff);break;case _0x1f1b4f['UNIVER_PDF']:_0x28f19a=await this[_0x19bfd4(0x2bf)][_0x19bfd4(0x2df)](_0x1d44e0,_0x3481ff);break;default:this[_0x19bfd4(0x1c1)][_0x19bfd4(0x298)](_0x19bfd4(0x1f9),_0x19bfd4(0x430));break;}return _0x28f19a&&this[_0x19bfd4(0x3d5)][_0x19bfd4(0x2c7)](_0x28f19a),_0x28f19a;}async[_0x3bc572(0x436)](_0x103631,_0x46c4e9,_0x22d060){const _0xa98243=_0x3bc572;var _0x39f1bf;this[_0xa98243(0x2ad)][_0xa98243(0x2c7)]({'unitId':_0x103631,'type':_0x46c4e9,'subUnitId':_0x22d060});let _0xbdd6e0=0x0,_0x6906ed=await((_0x39f1bf=this[_0xa98243(0x422)])==null?void 0x0:_0x39f1bf[_0xa98243(0x270)](_0x103631));return _0x6906ed&&(_0x6906ed[_0xa98243(0x3c2)]||_0x6906ed[_0xa98243(0x227)][_0xa98243(0x28d)]!==0x0)&&(_0xbdd6e0=_0x6906ed[_0xa98243(0x441)]),_0xbdd6e0===0x0&&this[_0xa98243(0x1c1)][_0xa98243(0x305)](_0xa98243(0x1f9),_0xa98243(0x427)),this[_0xa98243(0x245)](_0x103631,_0x46c4e9,_0xbdd6e0,_0x22d060);}};Jn=H([V(0x0,_0x2e09c7),V(0x1,_0x167908(_0x3209ea)),V(0x2,_0x2a5dd8(U))],Jn);let Yn=class{constructor(_0x119983,_0x146e1e,_0x59aca5){const _0x3cee12=_0x3bc572;this[_0x3cee12(0x3b7)]=_0x119983,this[_0x3cee12(0x1c9)]=_0x146e1e,this[_0x3cee12(0x449)]=_0x59aca5,z(this,_0x3cee12(0x2e8),0x0),z(this,_0x3cee12(0x32b),new _0x5b6066()),z(this,'change$',this[_0x3cee12(0x32b)]),z(this,_0x3cee12(0x258),new Map());}[_0x3bc572(0x263)](_0x4bf4e4){const _0x2497a5=_0x3bc572;this['_waitCount']=_0x4bf4e4,this['_change$'][_0x2497a5(0x2c7)](_0x4bf4e4);}['getImageSourceCache'](_0x44ce42,_0x40d9e1){const _0x256470=_0x3bc572;if(_0x40d9e1===_0x493f5e[_0x256470(0x387)]){let _0x3601b8=new Image();return _0x3601b8[_0x256470(0x2bd)]=_0x44ce42,_0x3601b8;}return this[_0x256470(0x258)][_0x256470(0x1e3)](_0x44ce42);}[_0x3bc572(0x1de)](_0x23e2e6,_0x2e21b2,_0x33a642){const _0x1ee106=_0x3bc572;_0x2e21b2!==_0x493f5e[_0x1ee106(0x387)]&&_0x33a642!=null&&this['_imageSourceCache'][_0x1ee106(0x405)](_0x23e2e6,_0x33a642);}async[_0x3bc572(0x21a)](_0xc48d3c){const _0x52764e=_0x3bc572;try{let _0x316873=this['_replaceFileID'](this['_getSignURL'](),''+_0xc48d3c),_0x28a0c2=(await this['_httpService'][_0x52764e(0x1e3)](_0x316873))[_0x52764e(0x236)];if(_0x28a0c2[_0x52764e(0x298)]&&_0x28a0c2[_0x52764e(0x298)]['code']===_0x2fd5b6['OK']){let _0x313384=_0x4823ba(_0x28a0c2[_0x52764e(0x3cd)],this[_0x52764e(0x28a)]());return Promise[_0x52764e(0x2a9)](_0x313384);}return Promise[_0x52764e(0x36a)](_0x28a0c2['error']);}catch(_0x3f72f0){return Promise[_0x52764e(0x36a)](_0x3f72f0);}}async['saveImage'](_0x203dec){const _0x37f57a=_0x3bc572;let _0x7d0a00='';if(!_0x286929[_0x37f57a(0x382)](_0x203dec[_0x37f57a(0x2f0)]))return this['_decreaseWaiting'](),Promise[_0x37f57a(0x36a)](Error(_0x13bf4f[_0x37f57a(0x438)]));if(_0x203dec[_0x37f57a(0x318)]>_0xba57e6())return this[_0x37f57a(0x40e)](),Promise['reject'](Error(_0x13bf4f[_0x37f57a(0x1f7)]));try{let _0x1d1502=new FormData();_0x1d1502[_0x37f57a(0x2ea)]('file',_0x203dec);let _0x1c036c=this[_0x37f57a(0x449)][_0x37f57a(0x26d)](),_0x3d9904=_0x1c036c==null?void 0x0:_0x1c036c[_0x37f57a(0x1da)]();if(!_0x3d9904)throw Error('unitId\x20is\x20not\x20found');let _0x31bf43=this[_0x37f57a(0x1e9)]()+'?size='+_0x203dec['size']['toString']()+_0x37f57a(0x3fa)+_0x10cf89[_0x37f57a(0x1cc)]+_0x37f57a(0x40c)+encodeURIComponent(_0x3d9904),_0x3d8e20={'body':_0x1d1502},_0xde078=(await this['_httpService']['post'](_0x31bf43,_0x3d8e20))['body'];if(typeof _0xde078[_0x37f57a(0x3b2)]!=_0x37f57a(0x288))return this[_0x37f57a(0x40e)](),Promise[_0x37f57a(0x36a)](Error(_0x13bf4f['ERROR_IMAGE']));_0x7d0a00=_0xde078['FileId'];}catch{return this[_0x37f57a(0x40e)](),Promise[_0x37f57a(0x36a)](Error(_0x13bf4f[_0x37f57a(0x20c)]));}return new Promise((_0x2c0ddb,_0x3d8362)=>{const _0x5c5732=_0x37f57a;let _0xc72eb5=new FileReader();_0xc72eb5[_0x5c5732(0x26e)](_0x203dec),_0xc72eb5[_0x5c5732(0x280)]=_0x3678d4=>{const _0x5bec75=_0x5c5732;var _0x283226;let _0xd1d02e=(_0x283226=_0x3678d4[_0x5bec75(0x24b)])==null?void 0x0:_0x283226[_0x5bec75(0x256)];if(_0xd1d02e==null){this[_0x5bec75(0x40e)](),_0x3d8362(Error(_0x13bf4f[_0x5bec75(0x20c)]));return;}_0x2c0ddb({'imageId':_0x197487(0x6),'imageSourceType':_0x493f5e['UUID'],'source':_0x7d0a00,'base64Cache':_0xd1d02e,'status':_0x13bf4f[_0x5bec75(0x43a)]}),this[_0x5bec75(0x40e)]();};});}['_getUploadFileURL'](){const _0x4bed2d=_0x3bc572;var _0x2c0fe7;let _0x2782dc=this[_0x4bed2d(0x1c9)][_0x4bed2d(0x306)](R);return(_0x2c0fe7=_0x2782dc==null?void 0x0:_0x2782dc['uploadFileServerUrl'])==null?'/universer-api/stream/file/upload':_0x2c0fe7;}['_getSignURL'](){const _0x3dfe70=_0x3bc572;var _0x5f0152;let _0x36e24d=this[_0x3dfe70(0x1c9)]['getConfig'](R);return(_0x5f0152=_0x36e24d==null?void 0x0:_0x36e24d[_0x3dfe70(0x2c9)])==null?_0x3dfe70(0x1d3):_0x5f0152;}[_0x3bc572(0x28a)](){const _0x2f49c4=_0x3bc572;var _0x2280b2;let _0x5b4850=this[_0x2f49c4(0x1c9)][_0x2f49c4(0x306)](R);return(_0x2280b2=_0x5b4850==null?void 0x0:_0x5b4850[_0x2f49c4(0x1c8)])==null?location[_0x2f49c4(0x32f)]:_0x2280b2;}[_0x3bc572(0x2d1)](_0x280357,_0x114b43){const _0x163da0=_0x3bc572;return _0x280357[_0x163da0(0x3a1)](_0x163da0(0x329),_0x114b43);}[_0x3bc572(0x40e)](){const _0x3d076d=_0x3bc572;--this['_waitCount'],this[_0x3d076d(0x32b)][_0x3d076d(0x2c7)](this['_waitCount']);}};Yn=H([V(0x0,_0x167908(_0x6a3f01)),V(0x1,_0xa7a1b6),V(0x2,_0x167908(_0x6f9bb2))],Yn);let Xn=class{constructor(_0x5a4f14,_0x4c6868){const _0x3ef839=_0x3bc572;this[_0x3ef839(0x1c9)]=_0x5a4f14,this[_0x3ef839(0x3db)]=_0x4c6868;}[_0x3bc572(0x362)](){const _0x24663a=_0x3bc572;var _0x32339b;let _0x3731db=this[_0x24663a(0x1c9)][_0x24663a(0x306)](R);return(_0x32339b=_0x3731db==null?void 0x0:_0x3731db[_0x24663a(0x275)])==null?_0x24663a(0x290):_0x32339b;}async['list'](_0x40bdf4){const _0x3e7197=_0x3bc572;let _0x20f410=this['_getAPIPrefixPath']()+_0x3e7197(0x3e4);return{'list':[{'title':'People','mentions':(await this[_0x3e7197(0x3db)][_0x3e7197(0x1e3)](_0x20f410,{'params':{'objectID':_0x40bdf4['unitId'],'unitID':_0x40bdf4[_0x3e7197(0x395)]}}))[_0x3e7197(0x236)][_0x3e7197(0x38f)][_0x3e7197(0x239)](_0x263bc0=>({'objectId':_0x263bc0['id'],'name':_0x263bc0[_0x3e7197(0x235)][_0x3e7197(0x25f)],'metadata':{'icon':_0x263bc0[_0x3e7197(0x235)][_0x3e7197(0x29f)]},'label':_0x263bc0['subject'][_0x3e7197(0x25f)],'objectType':_0x118ea1['PERSON']})),'metadata':{},'type':_0x118ea1['PERSON']}]};}};Xn=H([V(0x0,_0x167908(_0xa7a1b6)),V(0x1,_0x167908(_0x6a3f01))],Xn);let Zn=class extends _0x4ca998{constructor(_0x1d9c62,_0x4820b0,_0x2b0266,_0x17fd9a,_0x2f50a9){const _0x2f40c4=_0x3bc572;super(),this[_0x2f40c4(0x44d)]=_0x1d9c62,this['_univerInstanceService']=_0x4820b0,this[_0x2f40c4(0x1cb)]=_0x2b0266,this[_0x2f40c4(0x225)]=_0x17fd9a,this[_0x2f40c4(0x33e)]=_0x2f50a9,this[_0x2f40c4(0x1e0)](),this[_0x2f40c4(0x325)]();}['_initCloseConn'](){const _0x2e83c8=_0x3bc572;let _0x4778ee=async _0x3122ff=>{const _0x461d2f=_0xe493;(await this[_0x461d2f(0x225)][_0x461d2f(0x252)](_0x3122ff))[_0x461d2f(0x396)][_0x461d2f(0x264)](_0x519396(_0x5ddbab=>_0x5ddbab['eventID']===_0x7dd1cb[_0x461d2f(0x268)]),_0x42f81a(this[_0x461d2f(0x3d6)]))[_0x461d2f(0x368)](_0x26a7d8=>{const _0x348c41=_0x461d2f;let {reason:_0x1d4fe7}=_0x26a7d8['data'];this[_0x348c41(0x33e)][_0x348c41(0x340)]({'id':_0x348c41(0x3be),'data':_0x1d4fe7}),this[_0x348c41(0x1cb)][_0x348c41(0x429)](new _0x3d21fe(_0x3122ff)['id'],!0x1),this['_collaborationSessionService'][_0x348c41(0x1bc)](_0x3122ff);});};_0x4b9f39(this['_univerInstanceService'][_0x2e83c8(0x2c4)](_0x1f1b4f[_0x2e83c8(0x33c)]),this[_0x2e83c8(0x449)]['getTypeOfUnitAdded$'](_0x1f1b4f['UNIVER_DOC']),this[_0x2e83c8(0x449)][_0x2e83c8(0x2c4)](_0x1f1b4f[_0x2e83c8(0x426)]),this[_0x2e83c8(0x449)]['getTypeOfUnitAdded$'](_0x1f1b4f[_0x2e83c8(0x3fd)]))[_0x2e83c8(0x264)](_0x37612c(_0x42544e=>_0x42544e[_0x2e83c8(0x1be)][_0x2e83c8(0x1da)]()),_0x519396(_0xd07265=>!_0x238b00(_0xd07265)),_0x42f81a(this['dispose$']))[_0x2e83c8(0x368)](_0x2d0272=>{_0x4778ee(_0x2d0272);});}['_initUnitPermissionChange'](){const _0x436c8a=_0x3bc572;let _0x3b74e4=async _0x323bdf=>{const _0x58530f=_0xe493;let _0x99b5a0=await this[_0x58530f(0x225)][_0x58530f(0x252)](_0x323bdf),_0x5167de=this[_0x58530f(0x44d)][_0x58530f(0x1e3)](_0x265733);_0x99b5a0[_0x58530f(0x396)][_0x58530f(0x264)](_0x519396(_0x3340d3=>_0x3340d3[_0x58530f(0x313)]===_0x7dd1cb[_0x58530f(0x303)]),_0x42f81a(this[_0x58530f(0x3d6)]))['subscribe'](_0x3c6930=>{const _0x380789=_0x58530f;let {objectId:_0x17d682}=_0x3c6930[_0x380789(0x2c6)];_0x17d682===_0x323bdf?_0x5167de['initWorkbookPermissionChange'](_0x323bdf):_0x5167de[_0x380789(0x1f3)](_0x323bdf,_0x17d682);});};_0x4b9f39(this[_0x436c8a(0x449)]['getTypeOfUnitAdded$'](_0x1f1b4f[_0x436c8a(0x33c)]))[_0x436c8a(0x264)](_0x37612c(_0x16f89c=>_0x16f89c[_0x436c8a(0x1be)]['getUnitId']()),_0x519396(_0xdc8ea=>!_0x238b00(_0xdc8ea)),_0x42f81a(this[_0x436c8a(0x3d6)]))[_0x436c8a(0x368)](_0x324245=>{_0x3b74e4(_0x324245);});}};Zn=H([V(0x0,_0x167908(_0x35e9e2)),V(0x1,_0x6f9bb2),V(0x2,_0x3058fc),V(0x3,_0x167908(Nn)),V(0x4,_0x167908(B))],Zn);let Qn=class{constructor(_0x212c3f,_0xcc7cf3){const _0x4c37ce=_0x3bc572;this[_0x4c37ce(0x1c9)]=_0x212c3f,this[_0x4c37ce(0x3b7)]=_0xcc7cf3;}async['getUnitOnRev'](_0x49e016,_0x481721){const _0x9f8487=_0x3bc572;var _0x1fec1e;let {unitID:_0x3b859f,type:_0x34ccbc,revision:_0x5ae4cd=0x0}=_0x481721,_0x4e7c67=this[_0x9f8487(0x281)]()+'/'+_0x34ccbc+_0x9f8487(0x44c)+_0x3b859f+_0x9f8487(0x3d1)+_0x5ae4cd,_0x47f1f5=(await this[_0x9f8487(0x3b7)][_0x9f8487(0x1e3)](_0x4e7c67))[_0x9f8487(0x236)],_0x5ab13b=(_0x1fec1e=_0x47f1f5[_0x9f8487(0x44b)])==null?void 0x0:_0x1fec1e[_0x9f8487(0x1ea)];if(_0x5ab13b){let _0x232fe8=_0x5ab13b==null?void 0x0:_0x5ab13b['originalMeta'];_0x5ab13b[_0x9f8487(0x2f2)]=_0x204083[_0x9f8487(0x37d)](_0x430315(_0x232fe8)),Object[_0x9f8487(0x39b)](_0x5ab13b['sheets'])['forEach'](([,_0x219c26])=>{const _0x1eca97=_0x9f8487;let _0x5f9e16=_0x219c26['originalMeta'];_0x219c26[_0x1eca97(0x2f2)]=_0x204083[_0x1eca97(0x37d)](_0x430315(_0x5f9e16));});}return _0x47f1f5;}async['getSheetBlock'](_0x56b31e,_0x3d47ac){const _0x1ab6da=_0x3bc572;let {unitID:_0x51b1d4,type:_0x328ee7,blockID:_0x38f639}=_0x3d47ac,_0x3e00e5=this[_0x1ab6da(0x2ed)]()+'/'+_0x328ee7+_0x1ab6da(0x44c)+_0x51b1d4+'/block/'+_0x38f639;return(await this[_0x1ab6da(0x3b7)][_0x1ab6da(0x1e3)](_0x3e00e5))['body'];}async[_0x3bc572(0x28b)](_0x713725,_0x26ea5e){const _0x500a7f=_0x3bc572;let {unitID:_0x4f9ded,type:_0x22d373,blockID:_0x2a54c2}=_0x26ea5e,_0x1ffdb3=this[_0x500a7f(0x2ed)]()+_0x500a7f(0x388)+_0x22d373+'/unit/'+_0x4f9ded+'/block/'+_0x2a54c2;return(await this[_0x500a7f(0x3b7)][_0x500a7f(0x1e3)](_0x1ffdb3))[_0x500a7f(0x236)];}async['fetchMissingChangesets'](_0x6ecbfe,_0x38c06a){const _0x521374=_0x3bc572;let {unitID:_0x40ae29,type:_0x203a32,from:_0x23f95b,to:_0x277d1a}=_0x38c06a,_0x1bf8c8=this['_getAPIPrefix']()+'/'+_0x203a32+'/unit/'+_0x40ae29+'/fetchmissing?from='+_0x23f95b+_0x521374(0x33f)+_0x277d1a;return(await this[_0x521374(0x3b7)]['get'](_0x1bf8c8))[_0x521374(0x236)];}[_0x3bc572(0x281)](){const _0x4a597f=_0x3bc572;var _0x37c74a;return(_0x37c74a=this[_0x4a597f(0x1c9)][_0x4a597f(0x306)](_0x4a597f(0x1ca)))==null?this[_0x4a597f(0x2ed)]():_0x37c74a;}['_getAPIPrefix'](){const _0x9ab555=_0x3bc572;var _0x226e4f;let _0x29cf0b=this[_0x9ab555(0x1c9)][_0x9ab555(0x306)](R);return(_0x226e4f=_0x29cf0b==null?void 0x0:_0x29cf0b['snapshotServerUrl'])==null?'/universer-api/snapshot':_0x226e4f;}async['getResourcesRequest'](_0x2f62fd,_0x764619){const _0x2f3982=_0x3bc572;let _0x5d131d=_0x2f3982(0x244)+_0x764619[_0x2f3982(0x2f0)]+_0x2f3982(0x44c)+_0x764619[_0x2f3982(0x399)]+_0x2f3982(0x20f);return(await this['_httpService'][_0x2f3982(0x1e3)](_0x5d131d,{'params':{'resourceId':JSON[_0x2f3982(0x3c3)](_0x764619['resourceIDs'])}}))['body'];}[_0x3bc572(0x437)](){const _0x5cfaef=_0x3bc572;throw Error(_0x5cfaef(0x1c7));}['updateSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3bc572(0x364)](){const _0x225ebf=_0x3bc572;throw Error(_0x225ebf(0x1c7));}[_0x3bc572(0x450)](){const _0x9bb25d=_0x3bc572;throw Error(_0x9bb25d(0x1c7));}[_0x3bc572(0x31c)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['getLatestCsReqIdBySid'](){const _0x335040=_0x3bc572;throw Error(_0x335040(0x1c7));}};Qn=H([V(0x0,_0xa7a1b6),V(0x1,_0x167908(_0x6a3f01))],Qn);let $n=class extends _0x150656{constructor(_0x3fd4c9,_0xf46001,_0xfb68f3,_0x5f375a,_0x21e54c){const _0x533d27=_0x3bc572;super(_0x3fd4c9,_0xf46001,_0xfb68f3),this[_0x533d27(0x284)]=_0x5f375a,this['_logService']=_0x21e54c;}[_0x3bc572(0x41b)](_0xcafba6,_0x3ccdc2){const _0x42aa4e=_0x3bc572;let _0x251e75=this[_0x42aa4e(0x415)](_0xcafba6);if(_0x251e75)try{let _0x38bfac=this['_transformStack'](_0x251e75,_0x3ccdc2);this[_0x42aa4e(0x416)](_0xcafba6,_0x38bfac);}catch(_0x2ff7e3){this[_0x42aa4e(0x1c1)]['error']('[CollaborationUndoRedoService]',_0x2ff7e3),this[_0x42aa4e(0x27b)](_0xcafba6);}let _0x4af311=this['_getRedoStack'](_0xcafba6);if(_0x4af311)try{let _0x31254f=this['_transformStack'](_0x4af311,_0x3ccdc2);this[_0x42aa4e(0x299)](_0xcafba6,_0x31254f);}catch(_0x538450){this[_0x42aa4e(0x1c1)][_0x42aa4e(0x298)](_0x538450),this['_clearRedo'](_0xcafba6);}}['_clearUndo'](_0x3ad802){const _0x173890=_0x3bc572;let _0x3a2cc8=this[_0x173890(0x415)](_0x3ad802);_0x3a2cc8&&(_0x3a2cc8['length']=0x0,this[_0x173890(0x440)]());}[_0x3bc572(0x3a2)](_0x3effde){const _0x13cbd0=_0x3bc572;let _0x2cd857=this[_0x13cbd0(0x406)](_0x3effde);_0x2cd857&&(_0x2cd857['length']=0x0,this[_0x13cbd0(0x440)]());}[_0x3bc572(0x416)](_0x11f118,_0x59d576){const _0x3517e8=_0x3bc572;this[_0x3517e8(0x400)][_0x3517e8(0x405)](_0x11f118,_0x59d576),this['_updateStatus']();}[_0x3bc572(0x299)](_0x30166d,_0x6fc35e){const _0x1835f1=_0x3bc572;this[_0x1835f1(0x271)]['set'](_0x30166d,_0x6fc35e),this[_0x1835f1(0x440)]();}[_0x3bc572(0x43e)](_0x34b78a,_0x54e5e4){const _0xe07b4a=_0x3bc572;let _0x4965d8=[],_0x2ac6a3=_0x54e5e4,_0x4c86b7=_0x54e5e4;for(let _0x429ffd=_0x34b78a[_0xe07b4a(0x28d)]-0x1;_0x429ffd>=0x0;_0x429ffd--){let {unitID:_0x5d6a05,undoMutations:_0x43ddad,redoMutations:_0x495478}=_0x34b78a[_0x429ffd],_0x5c8427=this[_0xe07b4a(0x284)]['transformMutationsWithChangeset'](_0x2ac6a3,_0x43ddad),_0x29f617=this[_0xe07b4a(0x284)]['transformMutationsWithChangeset'](_0x4c86b7,_0x495478);if(_0x33bd16(_0x5c8427)||_0x33bd16(_0x29f617)){this[_0xe07b4a(0x1c1)][_0xe07b4a(0x298)](_0xe07b4a(0x371),_0xe07b4a(0x393),_0x5c8427,_0x29f617);break;}_0x2ac6a3=_0x5c8427[_0xe07b4a(0x435)],_0x4c86b7=_0x29f617[_0xe07b4a(0x435)],_0x4965d8[_0xe07b4a(0x250)]({'unitID':_0x5d6a05,'undoMutations':_0x5c8427[_0xe07b4a(0x296)],'redoMutations':_0x29f617[_0xe07b4a(0x296)]});}return _0x4965d8[_0xe07b4a(0x3f5)]();}};$n=H([V(0x0,_0x6f9bb2),V(0x1,_0x1f135e),V(0x2,_0x5e05d4),V(0x3,_0x29bc05),V(0x4,_0x2e09c7)],$n);let er=class extends _0x9c02e4{constructor(_0x2fe5fc=ft,_0x3c061c,_0x296317,_0x4493d6){const _0xc44ebb=_0x3bc572;super(),this[_0xc44ebb(0x1dc)]=_0x2fe5fc,this[_0xc44ebb(0x1c1)]=_0x3c061c,this[_0xc44ebb(0x44d)]=_0x296317,this[_0xc44ebb(0x1c9)]=_0x4493d6;let {..._0x47a3fa}=_0x147984({},ft,this[_0xc44ebb(0x1dc)]);if(!_0x47a3fa[_0xc44ebb(0x428)])throw Error(_0xc44ebb(0x360));this[_0xc44ebb(0x1dc)]=_0x47a3fa,this[_0xc44ebb(0x1c9)][_0xc44ebb(0x25a)](R,_0x47a3fa);}[_0x3bc572(0x43d)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x3bc572(0x3b5)](){const _0x266a3b=_0x3bc572;var _0x2341c4,_0x1aa018;this[_0x266a3b(0x44d)]['has'](_0x51c17f)&&this[_0x266a3b(0x1c1)][_0x266a3b(0x298)](_0x266a3b(0x3c5),_0x266a3b(0x1ad));let _0x2a3662=_0x4f5c21([[_0x51c17f,{'useClass':$n}],[An,{'useValue':jn()}],[Nn],[kt],[Gt],[Vn],[qn],[Ot],[Zn],[B],[Jn],[Dn,{'useClass':this[_0x266a3b(0x1dc)][_0x266a3b(0x428)]}],[_0xe1e81f,{'useClass':Qn}],[_0x27e034,{'useClass':Hn}],[_0x4c34f1,{'useClass':Yn}],[Rn,{'useClass':zn}],[_0x1a6754,{'useClass':Xn}],[Pn],[Ln]],(_0x2341c4=this[_0x266a3b(0x1dc)])==null?void 0x0:_0x2341c4[_0x266a3b(0x219)]);if(!((_0x1aa018=this['_config'])!=null&&_0x1aa018[_0x266a3b(0x210)])){let _0x5ce356=_0x2a3662[_0x266a3b(0x377)](([_0x4df436])=>_0x4df436===W);_0x5ce356!==-0x1&&_0x2a3662[_0x266a3b(0x304)](_0x5ce356,0x1);}_0x2ba51f(this[_0x266a3b(0x44d)],_0x2a3662);}['_initDependencies'](){const _0x11c8f7=_0x3bc572;var _0x42d99b,_0x1e28b1;if(this[_0x11c8f7(0x44d)][_0x11c8f7(0x1e3)](_0x6a3f01)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x28f61d({'maxParallel':0x6})}),!((_0x42d99b=this[_0x11c8f7(0x1dc)])!=null&&_0x42d99b['enableOfflineEditing'])){var _0x163b90;(_0x163b90=this[_0x11c8f7(0x44d)][_0x11c8f7(0x1e3)](U,_0x1c058a[_0x11c8f7(0x1ed)]))==null||_0x163b90[_0x11c8f7(0x1bb)]();}(_0x1e28b1=this[_0x11c8f7(0x1dc)])!=null&&_0x1e28b1[_0x11c8f7(0x432)]&&_0x1d20c8(this[_0x11c8f7(0x44d)],[[Vn]]),_0x1d20c8(this[_0x11c8f7(0x44d)],[[qn],[Pn],[Zn]]);}};z(er,_0x3bc572(0x24c),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),z(er,'packageName',Fn),z(er,_0x3bc572(0x23c),In),er=H([_0x30d4af(_0x442bd0,_0x21d398,_0x901b3),V(0x1,_0x2e09c7),V(0x2,_0x167908(_0x35e9e2)),V(0x3,_0xa7a1b6)],er);export{Hn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,yn as BaseCollaborationEntity,Sn as BoardCollaborationEntity,R as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,zn as CollaborationAttachmentIoService,Pn as CollaborationController,$ as CollaborationEntity,Yn as CollaborationImageIoService,Ht as CollaborationSession,Nn as CollaborationSessionService,kn as CollaborationSocketService,mn as CollaborationStatus,Dt as CollaborationUIEventId,B as CollaborationUIEventService,$n as CollaborativeUndoRedoService,Ot as CommentService,X as ConflictState,pt as DEFAULT_COLLAB_WEB_SOCKET_URL,St as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,mt as DEFAULT_WS_SESSION_TICKET_URL,Jn as DataLoaderService,vn as DocCollaborationEntity,Q as FetchingMissState,ht as HEARTBEAT_INTERVAL_KEY,gt as HEARTBEAT_TIMEOUT_KEY,Rn as IAttachmentIoService,An as ICollaborationClientAdapterService,Dn as ICollaborationSocketService,U as ILocalCacheService,wn as INetworkConditionService,W as ISingleActiveUnitService,bt as LOCAL_CACHE_INTERVAL,yt as LOCAL_CACHE_INTERVAL_KEY,kt as MemberService,Xn as MentionIoHttpService,Z as OfflineState,Cn as PdfCollaborationEntity,q as PendingState,xt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,vt as RETRY_CONNECTING_MAX_COUNT_KEY,Bt as SessionStatus,bn as SheetCollaborationEntity,Gt as SheetTransformSelectionsService,xn as SlideCollaborationEntity,Qn as SnapshotServerOverHTTPService,K as SyncedState,Kt as UnitStatus,er as UniverCollaborationClientPlugin,jn as createUniverCollaborationAdapter,Tn as deserializeToCombResponse,Ut as getLocalCacheKey,En as serializeCombRequest};
|