@univerjs-pro/collaboration-client 0.22.1 → 0.23.0
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/ca-ES.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/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.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-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.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/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.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-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.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/ja-JP.js +1 -1
- package/lib/locale/ko-KR.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-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.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/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.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-TW.js +1 -1
- package/package.json +11 -11
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x489a(){const _0x1b3066=['constructor','_clearCollaborationTimeoutTimer','UNIVER_DOC','/object/','1293093Bnxcrr','_members','_shouldReportTelemetry','_acknowledgeAwaitingIfReady','sessionStatus','&assign=','collaboration-client.config','CombCmd','_throwTelemetryCollaborationNewChangeset','CONFLICT','objectActions','sort','SetSelectionsOperation','[PendingState]:\x20unhandled\x20univer\x20type:\x20','@univerjs/telemetry','_members$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_fetchMissChangesets','_redoStacks','transformChangesets','_initRequestHeader','CollaborationUIEventService','FAIL','Uint8Array','error','_clearScheduledTask','data','Module','_sheetTransformSelectionsService','/universer-api/comb','SHOULD_CLOSE_CONN','putCollaborators','isInternalEditorID','_createSocket','_onLocalMutation','_cfgEnableObjInherit','JOIN_ROOM_FULL','_stopTelemetryCollaborationNewChangeset','target','set','_roomMembers','SNAPSHOT_URL_KEY','@univerjs/sheets','_init','close','getUnitId','resolve','ERROR_IMAGE_TYPE','_getDownloadEndpointURL','getInterceptPoints','[CollaborationSessionService]:\x20socket\x20error','_state$','UniverTelemetry','&source=','number','_handlerCallback','_queuedRemoteChangesets','RETRY_CONNECTING_MAX_COUNT','has','?url=','onRemoteRetry','getAllMembers','updateOfflineData','DocCollaborationEntity','getActiveSheet','141350lJHHZs','_sendHeartbeat','ImageUploadStatusType','_getUploadFileURL','PERSON','transformStack\x20failed!','Failed\x20to\x20update\x20permission\x20point','slice','awaiting','actions','offline','appendMutation','onRemoteChangeset','nonceLength','_emitMembers','MSG_FOR_ERROR','CollaborationImageIoService','transformSelections','_retryConnectingTimer','_sender','getRandomValues','revision','_exhaustRemoteChangesetQueue','SheetsSelectionsService','Optional','updateCursorEvent','6554264oLOpAZ','/role','PERMISSION_REJ','JOIN','IConfigService','socket\x20open.','_roomCreated$','SheetTransformSelectionsService','reqId','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','IUniverInstanceService','send','getCurrentSelections','UnitStatus','generateRandomId','list','addHandlerCallback','_waitForHeartbeatResponse','call','parseChangesetToProtocol','INGEST','fromCharCode','_joinRoom','transformMutationsWithChangeset','onTransformRemoteChangesetByStateCache','originalMeta','put','UniverProtocol','updateSnapshot','_replayCachedMutations','permissionRejEvent','HELLO','_pendingMutations','/universer-api/stream/file/upload','_changesetSessionId','_imageSourceCache','_networkConditionService','getGlobalObject','updatePermissionObjEvent','changesets','_isEchoedAwaitingChangeset','_collaborationUIEventService','csRejEvent','dispose$','getLocalCacheKey','getOwnPropertyDescriptor','_resendTimeout','_unitInfo$','SyncedState','ISnapshotServerService','min','_onUserJoin','\x0aAfter:\x20','_transformRemoteChangesetByStateCache','patch','output','UniverLicensePlugin','nonce','ThresholdInterceptorFactory','UNISCRIPT_RUN','{fileID}','listRoles','getSheetId','subarray','_transformStateCache','_commandService','Workbook','onMissingChangesets','_timeoutTimer','ERROR_IMAGE','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_event$','univer-pro.collaboration-client-socket-service','subject','HEARTBEAT_INTERVAL','_createInitialStateImpl','_onCombEvent','online$','decrypt','_scheduleCompleteTimestamp','pending','m2Prime','FETCH_MISS','_HTTPService','_submitChangeset','x-univer-host','collabSubmitChangesetUrl','getFocusedUnit','touchDependencies','leaveEvent','crypto','isView','ITelemetryService','readyForCollab','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','[PendingState]:\x20received\x20rejection.','_socketService','toStringTag','ErrorCode','onload','RECV','length','/collaborator','EmptyMutationInfo','UniverNetwork','c1Prime','init','0.22.1','UPDATE_PERMISSION_OBJ','filter','_getSendChangesetTimeout','loadUnit','clear','responseType','expected\x20Uint8Array','_transformIMECache','routeKey','fetchMiss','_onConnectionFailed','loginUrlKey','getCurrentRevOfUnit','deleteCollaborator','LOCAL_CACHE_INTERVAL_KEY','shouldCloseConn','_getRedoStack','charCodeAt','joinRsp','UNIVER_SHEET','MUTATION','_substituteRedoStack','/unit/','_changesetReqId','isSafeInteger','_type','_compressMutationService','CollaborativeUndoRedoService','@univerjs/docs','LOCAL_CACHE_INTERVAL','key','ONLINE','onLocalMutation','csAckEvent','take','_onJoinRoomEvent','@univerjs/core','withCredentials','requestParams','_applyRemoteChangeset','Injector','UniverDocs','getMemberID','size','confirm','[OfflineState]:\x20received\x20rejection.','NO_OTHER_CLIENTS_EDITING','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','_entities','getCurrentUser','every','_waitCount','snapshotServerUrl','&to=','_clearHeartbeatTimer','_change$','onTransformIME','MentionType','_httpService','_updateLocalCache','onStateChange','USERS_ENTER','iterator','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_updateStatus','_schedule','_permissionService','_transitionLocked','error$','__Key__','packageName','override','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','/universer-api/oidc/authpage','getImage','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','/-/object/-/batch_allowed','\x0aCurrent:\x20','sessionStatus$','stringify','collaborators','resolveWithBasePath','loadUnitOfRevision','AwaitingWithPendingState','_substituteUndoStack','getCollabEntity$','pluginName','emitEvent','Error\x20on\x20receiving\x20event','Rectangle','defineProperty','/universer-api/snapshot/','CollaborationSessionService','COMPRESS_MUTATION_APPLY','_checkMissing','InsertSheetMutation','getRoom','FileSource','_userManagerService','ICommandService','ConflictState','_sessionStatus$','liveShareNewHost','floor','_collabSessionService','NOT_COLLAB','varSizeNonce','_executeRemoteChangeset','_localeService','getUnitType','function','transformUndoRedo','range','body','CLOSE_ROOM','LocaleService','isTransformMutationsWithChangesetFailure','decorate','fromHex','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','Subject','rev','INetworkConditionService','CommentService','/allowed','state','isTransformMutationsWithChangesetSuccess','_undoRedoService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','getMember','CollaborationSocketService','fetch_missing','objectType','fetchThroughInterceptors','session.join-failed','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_snapshotServerService','unsubscribe','setWaitCount','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','closeSession','_candidateSocket','enableSingleActiveInstanceLock','_onMessage','_onRemoteRejected','_onRemoteACK','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','takeUntil','_logService','getValue','prototype','encode','HTTPService','SessionStatus','push','_transformUndoredo','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','_scheduleCollaborationTimeoutTimer','startsWith','AWAITING','/resources','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_getSignURL','params','downloadEndpointUrl','_transformAndApplyRemoteChangeset','_createInitialState','UniverSheets','pauseCollaboration','resourceIDs','symbol','AWAITING_WITH_PENDING','_doCreateSocket','ITransformService','_resendTimer','_onFetchMissResult','@univerjs/drawing','5979EzynOZ','debug','PENDING','toDisposable','ImageSourceType','saveSheetBlock','onCommentUpdate','event$','OTHER_CLIENT_EDITING','ILogService','allowed','getSheetBlock','merge','hostname','joinEvent','onSendChangeset','interceptor','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_onRecvEvent','removeMember','HTTPRequest','string\x20expected','onlyLocal','failed\x20to\x20apply\x20missed\x20changesets!','?size=','CompressMutationService','JSONX','socketService','_initMergeInterceptor','_clearUndo','_collaborationPaused','onRemoteRej','_initDependencies','_eventService','UniverCore','get','_remoteChangesetQueue','type','_localCacheService','getTime','enableAuthServer','newCsEvent','IUndoRedoService','ERROR_EXCEED_SIZE','_acknowledgeAwaiting','complete','[CollaborationSessionService]','_entityInit$','unit','_transformRemoteChangesetByIMECache','6eHHXbm','BYTES_PER_ELEMENT','_lockTransition','cfgEnableObjInherit','string','src','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','5917780TuoiCA','localCacheService','UniverProCollaborationClient','setCurrentUser','UniverProLicense','focused$','_unitID','enableOfflineEditing','reject','selections','BASE64','_socketReady','state$','[OfflineState]:\x20received\x20changeset.','_awaitingChangeset','_transformStack','_transformService','dispose','@univerjs-pro/collaboration','_retryCount','onSyncEditingCollabCursor','map','cmd','apply','_registerDependencies','byteLength','rxjs','getImageSourceCache','HEARTBEAT_TIMEOUT_KEY','HEARTBEAT','not_collab','CHANGESET_SHOULD_RETRY','COMMENT_UPDATE','aes/pkcs7:\x20wrong\x20padding','findIndex','PendingState','collabWebSocketUrl','Quantity','onMissedChangesetFetched','_sessions','AAD','CommandType','NEW_CHANGESETS','CollaborationEntity','shareReplay','_clearRetryConnectingTimer','session.room-not-exists','IContextService','_getLoginPath','HEARTBEAT_TIMEOUT','__splitChunk__','baseRev','assign','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_listenToNetworkCondition','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','LEAVE','getResourcesRequest','onTransformSelections','uploadFileServerUrl','rxjs/operators','UniverNetworkPlugin','IImageIoService','_socketMessageSubscription','_clearTimeoutTimer','positive\x20integer\x20expected,\x20got\x20','byteOffset','CHANGESET_REJ','_startCollaboration','updatePermissionPoint','signUrlServerUrl','onRemoteAck','CHANGESET_ACK','LIVESHARE_OPERATION','firstValueFrom','subUnitId','ILocalCacheService','objects','missingChangesets','isTransformChangesetsSuccess','_collaborationSessionService','collaboratorID','cipher\x20output\x20not\x20supported','delay','People','saveChangeset','RxDisposable','getUnitStatus$','then','LIVESHARE_FETCH_OPERATIONS','_revisionService','/rev/','title','SheetPermissionInitController','synced','objectID','SUBMIT_CHANGESET','fromCollab','collaMsg','executeCommand','_maxTotalRetryTimeout','commentUpdateEvent','compose','reduce','name','create','entries','[SyncedState]:\x20received\x20acknowledgement.','telemetry\x20info\x20is\x20not\x20initialized','[CollaborationUndoRedoService]','JOIN_ROOM_FAILED','@univerjs/network','_getCtorByUniverInstanceType','/fetchmissing?from=','_tryEnsureSocket','toString','/universer-api/authz','UnitEmbedded','capture','CollaborationStatus','connection\x20error','forEach','_instanceService','_injector','toggleOffline','authzUrl','IAuthzIoService','_getUndoStack','DEFAULT_FILE_NAME','UNIVER_COLLABORATION_CLIENT_PLUGIN','buffer','_onConflict','operators','fetchMissingChangesets','_disableEditing','_onConnectionOpen','unitID','getTypeOfUnitAdded$','/universer-api/snapshot','getLatestCsReqIdBySid','unitId\x20is\x20not\x20found','subscribe','sendChangesetTimeout','updateMember','_getAPIPrefix','SYNCED','textRanges','uniscriptRunEvent','object','sequenceExecute','members','_onUserLeave','href','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','auth.needGotoLoginAlert','_memberService','add','retryConnectingInterval','OFFLINE','awaitingChangeset','setCfgEnableObjInherit','message$','mutations','setConfig','_snapshotService','_getAPIPrefixPath','765842DZRbLh','open$','addImageSourceCache','/block/','_acknowledgedAwaitingRevision','FileId','updateCollaborator','_socket','pipe','values','ISingleActiveUnitService','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','CollaborationEvent','IDLE','_unlockTransition','file','editingUnit','userID','session.room-full','_socket$','SOCKET_FAILED_RETRY','\x20to\x20','70sUuOUL','createSocket','sheets','submit\x20changeset\x20error!','toggleOnline','unit-cache-','disposeWithMe','concatMap','_showConflictNotification','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_rescheduleHeartbeat','Wrong\x20sbox\x20length','getWorkbookSelections','USERS_LEAVE','9cKLBef','conflict','AwaitingState','_tryReconnect','JOIN_ROOM_PERMISSION_DENIED','12KFARET','indexOf','socket$','WorkbookEditablePermission','reverse','url','UUID','loadDoc','batchAllowed','unitInfo$','UniverCollaborationClientPlugin','localeService','crypto.getRandomValues\x20must\x20be\x20defined','catch','invalid\x20output,\x20must\x20be\x20aligned','now','PERMISSION_DENIED','RevisionService','_state','disableLocalCache','[OfflineState]:\x20received\x20acknowledgement.','_handleRemoteChangesets','OTHER_CLIENTS_EDITING','ReplaySubject','Inject','UniverInstanceType','resend','getDeserializedSheetBlock','deepClone','sid','Disposable','IMentionIOService','POST','liveShareOperation','\x20-\x20','OPTIONAL','startTime','_isPermissionRej','\x20of\x20length\x20','_handler','mapDocumentTypeToUniverInstanceType','3516480oLQJOZ','_status$','JOIN_ROOM_NOT_EXISTS','_resendWithTimeout','close$','_decreaseWaiting','HEARTBEAT_INTERVAL_KEY','uuidv4','workbook','JOINING','LIVESHARE_REQUEST_HOST','_createHandler','csShouldRetryEvent','parseProtocolChangeset','onTransformRemoteChangesetByIMECache','_toggleOffline','memberID','_sendingTimer','isPermissionRej','SUBMIT_CHANGESET_TIMEOUT','delete','UniverDrawing','commentUpdate$','[PendingState]:\x20received\x20acknowledgement.','onStarting','getUnit','next','LIVESHARE_NEW_HOST','createIdentifier','isArray','members$','_onRemoteRetry','from','post','append','collaboration_new_changeset','_incrementRevisionNumber','registerDependencies','[CollaborationSession]','tagLength','registerHTTPInterceptor','getCollabEntity','_collaborationTimeoutTimer','toHex','snapshot','save\x20fail\x20reason\x20is\x20','textEncoder','_univerInstanceService','getConfig','code','[DataLoaderService]','loadOfflineData','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','equals','_startTelemetryCollaborationNewChangeset','_telemetryInfo','UPDATE_CURSOR','_getCurrentRevision','editing\x20status\x20changed\x20to','createInstance','AuthzIoHttpService','_initUnitPermissionChange','MemberService','requireSession','eventID','IPermissionService','unknown','_updateState','includes','asObservable','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','number\x20expected,\x20got\x20','headers','CollaborationController','RichTextEditingMutation','getTypeOfUnitDisposed$','_clearLocalCache','readAsDataURL','find','method','@univerjs-pro/license','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_undoStacks','status','_config','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','SOCKET_FAILED','infoRsp','session','stopTime','LIVESHARE_TERMINATE','b64DecodeUnicode','getSnapshotAPIPath','COMPRESS_MUTATION_SEND','CmdRspCode','fetching\x20missing\x20changesets\x20from\x20','_clearRedo','BehaviorSubject','_initCloseConn','unitId','encrypt','_sendHeartbeatTimer','_commentUpdate$','[CollaborationEntity]','_configService','encodeURIComponent','FETCH_MISSING','_telemetryService','location','[CollaborationState]:\x20apply\x20error!','awaiting_with_pending','getDrawingImageAllowSize','socket\x20close','Univer','exports','_transformSelections','Plugin','_onOffline','change$'];_0x489a=function(){return _0x1b3066;};return _0x489a();}function _0x20b8(_0xf8a862,_0x18bef8){_0xf8a862=_0xf8a862-0x1f0;const _0x489ae7=_0x489a();let _0x20b83c=_0x489ae7[_0xf8a862];return _0x20b83c;}(function(_0x3db299,_0x55ecf8){const _0x414f2b=_0x20b8,_0x3af16f=_0x3db299();while(!![]){try{const _0x151386=parseInt(_0x414f2b(0x2fb))/0x1*(parseInt(_0x414f2b(0x3f0))/0x2)+-parseInt(_0x414f2b(0x4a7))/0x3*(parseInt(_0x414f2b(0x403))/0x4)+parseInt(_0x414f2b(0x42c))/0x5+parseInt(_0x414f2b(0x32d))/0x6*(-parseInt(_0x414f2b(0x3da))/0x7)+parseInt(_0x414f2b(0x502))/0x8*(parseInt(_0x414f2b(0x3fe))/0x9)+-parseInt(_0x414f2b(0x4e8))/0xa+parseInt(_0x414f2b(0x334))/0xb;if(_0x151386===_0x55ecf8)break;else _0x3af16f['push'](_0x3af16f['shift']());}catch(_0xb540cb){_0x3af16f['push'](_0x3af16f['shift']());}}}(_0x489a,0xd04c6),function(_0x134601,_0x1628cc){const _0x280d9e=_0x20b8;typeof exports=='object'&&typeof module<'u'?_0x1628cc(exports,require(`@univerjs-pro/collaboration`),require(`@univerjs/core`),require(`@univerjs/docs`),require(`@univerjs/sheets`),require(`rxjs`),require(`@univerjs/protocol`),require(`@univerjs/telemetry`),require(`rxjs/operators`),require(`@univerjs/network`),require(`@univerjs-pro/license`),require(`@univerjs/drawing`)):typeof define==_0x280d9e(0x2b7)&&define['amd']?define([_0x280d9e(0x49e),_0x280d9e(0x346),_0x280d9e(0x26d),_0x280d9e(0x265),_0x280d9e(0x4d1),_0x280d9e(0x34e),'@univerjs/protocol',_0x280d9e(0x4b5),_0x280d9e(0x370),_0x280d9e(0x3a3),_0x280d9e(0x47c),_0x280d9e(0x2fa)],_0x1628cc):(_0x134601=typeof globalThis<'u'?globalThis:_0x134601||self,_0x1628cc(_0x134601[_0x280d9e(0x336)]={},_0x134601['UniverProCollaboration'],_0x134601[_0x280d9e(0x31d)],_0x134601[_0x280d9e(0x272)],_0x134601[_0x280d9e(0x2f1)],_0x134601[_0x280d9e(0x34e)],_0x134601[_0x280d9e(0x1f7)],_0x134601[_0x280d9e(0x4db)],_0x134601[_0x280d9e(0x34e)][_0x280d9e(0x3b8)],_0x134601[_0x280d9e(0x245)],_0x134601[_0x280d9e(0x338)],_0x134601[_0x280d9e(0x441)]));}(this,function(_0x34a032,_0x2b4fec,_0x1f27ed,_0x3b0f13,_0x47a016,_0xd93cf,_0x26034e,_0x416cdb,_0x4f33c6,_0x2514fd,_0x98661d,_0x310bbf){const _0x5e5e22=_0x20b8;Object[_0x5e5e22(0x2a3)](_0x34a032,Symbol[_0x5e5e22(0x23e)],{'value':_0x5e5e22(0x4c2)});let _0x505fc1='ws://127.0.0.1:8000/universer-api/comb/connect',_0x1589e0=0x4e20;function _0x22fab6(_0x5f0812){const _0x5ae1d1=_0x5e5e22;return JSON[_0x5ae1d1(0x298)](_0x5f0812)[_0x5ae1d1(0x242)];}function _0x5c19c3(_0x344009){'@babel/helpers - typeof';const _0x23451e=_0x5e5e22;return _0x5c19c3=typeof Symbol==_0x23451e(0x2b7)&&typeof Symbol[_0x23451e(0x287)]==_0x23451e(0x2f4)?function(_0xf0a54a){return typeof _0xf0a54a;}:function(_0x391451){const _0x5b7c26=_0x23451e;return _0x391451&&typeof Symbol==_0x5b7c26(0x2b7)&&_0x391451[_0x5b7c26(0x4a3)]===Symbol&&_0x391451!==Symbol[_0x5b7c26(0x2e0)]?_0x5b7c26(0x2f4):typeof _0x391451;},_0x5c19c3(_0x344009);}function _0x8dd928(_0x1dcf91,_0x3d83f5){const _0x51479c=_0x5e5e22;if(_0x5c19c3(_0x1dcf91)!=_0x51479c(0x3c8)||!_0x1dcf91)return _0x1dcf91;var _0x5f11c7=_0x1dcf91[Symbol['toPrimitive']];if(_0x5f11c7!==void 0x0){var _0x512b62=_0x5f11c7['call'](_0x1dcf91,_0x3d83f5||'default');if(_0x5c19c3(_0x512b62)!=_0x51479c(0x3c8))return _0x512b62;throw TypeError(_0x51479c(0x30c));}return(_0x3d83f5===_0x51479c(0x331)?String:Number)(_0x1dcf91);}function _0x29a4d8(_0x3b6bbe){const _0x548a68=_0x5e5e22;var _0x851b7=_0x8dd928(_0x3b6bbe,_0x548a68(0x331));return _0x5c19c3(_0x851b7)=='symbol'?_0x851b7:_0x851b7+'';}function _0x5886a9(_0x4f042a,_0xc2b6f5,_0x19cab8){const _0x2babe2=_0x5e5e22;return(_0xc2b6f5=_0x29a4d8(_0xc2b6f5))in _0x4f042a?Object[_0x2babe2(0x2a3)](_0x4f042a,_0xc2b6f5,{'value':_0x19cab8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f042a[_0xc2b6f5]=_0x19cab8,_0x4f042a;}let _0x3d6a45=function(_0x5566ef){const _0x53aa4c=_0x5e5e22;return _0x5566ef[_0x53aa4c(0x303)]=_0x53aa4c(0x303),_0x5566ef[_0x53aa4c(0x413)]=_0x53aa4c(0x413),_0x5566ef['CONFLICT']=_0x53aa4c(0x4b0),_0x5566ef[_0x53aa4c(0x2bb)]='CLOSE_ROOM',_0x5566ef[_0x53aa4c(0x3a2)]=_0x53aa4c(0x3a2),_0x5566ef[_0x53aa4c(0x3ee)]=_0x53aa4c(0x3ee),_0x5566ef[_0x53aa4c(0x482)]='SOCKET_FAILED',_0x5566ef[_0x53aa4c(0x43f)]=_0x53aa4c(0x43f),_0x5566ef;}({});var _0x2af8d7=class{constructor(){const _0x1218e8=_0x5e5e22;_0x5886a9(this,_0x1218e8(0x223),new _0xd93cf[(_0x1218e8(0x2c2))]()),_0x5886a9(this,_0x1218e8(0x302),this['_event$']['asObservable']());}[_0x5e5e22(0x2a0)](_0x1f487b){const _0x5a05c3=_0x5e5e22;this['_event$'][_0x5a05c3(0x446)](_0x1f487b);}},_0x5909a8=class{constructor(){const _0x112d50=_0x5e5e22;_0x5886a9(this,_0x112d50(0x492),new _0xd93cf[(_0x112d50(0x2c2))]()),_0x5886a9(this,_0x112d50(0x442),this[_0x112d50(0x492)]['asObservable']());}[_0x5e5e22(0x301)](_0x274a2b){const _0x4ffbeb=_0x5e5e22;this[_0x4ffbeb(0x492)][_0x4ffbeb(0x446)](_0x274a2b);}};function _0x26ba80(_0x2b2316,_0xbc2cf9){return function(_0x2debda,_0x508061){_0xbc2cf9(_0x2debda,_0x508061,_0x2b2316);};}function _0x28d1a4(_0x18b782,_0xba7453,_0x482d4c,_0xe141fa){const _0x57570f=_0x5e5e22;var _0x388aa8=arguments[_0x57570f(0x242)],_0x1fb2c4=_0x388aa8<0x3?_0xba7453:_0xe141fa===null?_0xe141fa=Object[_0x57570f(0x209)](_0xba7453,_0x482d4c):_0xe141fa,_0x543ea3;if(typeof Reflect==_0x57570f(0x3c8)&&typeof Reflect['decorate']==_0x57570f(0x2b7))_0x1fb2c4=Reflect[_0x57570f(0x2be)](_0x18b782,_0xba7453,_0x482d4c,_0xe141fa);else{for(var _0x438ada=_0x18b782['length']-0x1;_0x438ada>=0x0;_0x438ada--)(_0x543ea3=_0x18b782[_0x438ada])&&(_0x1fb2c4=(_0x388aa8<0x3?_0x543ea3(_0x1fb2c4):_0x388aa8>0x3?_0x543ea3(_0xba7453,_0x482d4c,_0x1fb2c4):_0x543ea3(_0xba7453,_0x482d4c))||_0x1fb2c4);}return _0x388aa8>0x3&&_0x1fb2c4&&Object[_0x57570f(0x2a3)](_0xba7453,_0x482d4c,_0x1fb2c4),_0x1fb2c4;}let _0x3aba96=class extends _0x1f27ed[_0x5e5e22(0x421)]{constructor(_0x1fd2df,_0x1da321){const _0x138a92=_0x5e5e22;super(),this['_univerInstanceService']=_0x1fd2df,this[_0x138a92(0x2ab)]=_0x1da321,_0x5886a9(this,_0x138a92(0x4cf),new Map()),_0x5886a9(this,_0x138a92(0x508),new _0xd93cf[(_0x138a92(0x2c2))]()),this[_0x138a92(0x3f6)]((0x0,_0xd93cf[_0x138a92(0x307)])(this['_univerInstanceService'][_0x138a92(0x477)](_0x1f27ed[_0x138a92(0x41c)][_0x138a92(0x25c)])[_0x138a92(0x3e2)]((0x0,_0x4f33c6[_0x138a92(0x349)])(_0x40dd9b=>_0x40dd9b[_0x138a92(0x4d4)]())),this[_0x138a92(0x45b)][_0x138a92(0x477)](_0x1f27ed['UniverInstanceType']['UNIVER_DOC'])[_0x138a92(0x3e2)]((0x0,_0x4f33c6['map'])(_0x186cfd=>_0x186cfd[_0x138a92(0x4d4)]())))[_0x138a92(0x3c1)](_0x5e0226=>this['_removeRoom'](_0x5e0226)));}['waitForRoom$'](_0x5b6481){const _0xc27428=_0x5e5e22;return this['_roomMembers'][_0xc27428(0x4e1)](_0x5b6481)?(0x0,_0xd93cf['of'])(this[_0xc27428(0x4cf)][_0xc27428(0x31e)](_0x5b6481)):this[_0xc27428(0x508)]['pipe']((0x0,_0x4f33c6['map'])(_0x17b9c5=>{const _0x3e40aa=_0xc27428;if(_0x17b9c5===_0x5b6481)return this['_roomMembers'][_0x3e40aa(0x31e)](_0x17b9c5);}));}[_0x5e5e22(0x337)](_0x5a64cf){const _0x2f2d46=_0x5e5e22;this[_0x2f2d46(0x2ab)][_0x2f2d46(0x337)](_0x5a64cf);}[_0x5e5e22(0x27a)](){const _0x42c6ac=_0x5e5e22;return this[_0x42c6ac(0x2ab)]['getCurrentUser']();}['updateMember'](_0x407cd5,_0x5d096c){const _0x1d5122=_0x5e5e22;let _0x3d57c5=this[_0x1d5122(0x4cf)][_0x1d5122(0x31e)](_0x407cd5);_0x3d57c5||(_0x3d57c5=new _0x3c1229(),this[_0x1d5122(0x4cf)][_0x1d5122(0x4ce)](_0x407cd5,_0x3d57c5),this[_0x1d5122(0x508)]['next'](_0x407cd5)),_0x3d57c5['updateMember'](_0x5d096c);}[_0x5e5e22(0x30e)](_0xc347fb,_0x5373f8){const _0x10a14b=_0x5e5e22;let _0xad6aec=this[_0x10a14b(0x4cf)][_0x10a14b(0x31e)](_0xc347fb);_0xad6aec&&_0xad6aec['removeMember'](_0x5373f8);}[_0x5e5e22(0x2a9)](_0x26a576){const _0x2facb6=_0x5e5e22;return this[_0x2facb6(0x4cf)][_0x2facb6(0x31e)](_0x26a576);}[_0x5e5e22(0x2cb)](_0x4136d2,_0x752b6e){const _0x3351cb=_0x5e5e22;let _0xa393a8=this[_0x3351cb(0x4cf)][_0x3351cb(0x31e)](_0x4136d2);if(_0xa393a8)return _0xa393a8[_0x3351cb(0x2cb)](_0x752b6e);}['_removeRoom'](_0xbd1532){const _0x4fc3ef=_0x5e5e22;let _0x52b3ab=this[_0x4fc3ef(0x4cf)]['get'](_0xbd1532);_0x52b3ab&&(_0x52b3ab[_0x4fc3ef(0x345)](),this['_roomMembers'][_0x4fc3ef(0x440)](_0xbd1532));}[_0x5e5e22(0x345)](){const _0x81ead6=_0x5e5e22;this[_0x81ead6(0x4cf)]['forEach'](_0x22eded=>_0x22eded[_0x81ead6(0x345)]()),this['_roomMembers']['clear'](),this[_0x81ead6(0x508)][_0x81ead6(0x328)]();}};_0x3aba96=_0x28d1a4([_0x26ba80(0x0,_0x1f27ed['IUniverInstanceService']),_0x26ba80(0x1,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed['UserManagerService']))],_0x3aba96);var _0x3c1229=class extends _0x1f27ed['Disposable']{constructor(..._0x463834){const _0x5ae67b=_0x5e5e22;super(..._0x463834),_0x5886a9(this,_0x5ae67b(0x4a8),new Map()),_0x5886a9(this,'_members$',new _0xd93cf[(_0x5ae67b(0x48d))](this[_0x5ae67b(0x4a8)])),_0x5886a9(this,_0x5ae67b(0x44a),this[_0x5ae67b(0x4b6)][_0x5ae67b(0x471)]());}[_0x5e5e22(0x345)](){const _0x5e21c2=_0x5e5e22;this[_0x5e21c2(0x4a8)]['clear'](),this[_0x5e21c2(0x4b6)][_0x5e21c2(0x328)]();}[_0x5e5e22(0x3c3)](_0x8829e0){const _0x3658ad=_0x5e5e22;this[_0x3658ad(0x4a8)][_0x3658ad(0x4ce)](_0x8829e0[_0x3658ad(0x43c)],_0x8829e0),this[_0x3658ad(0x4f6)]();}[_0x5e5e22(0x30e)](_0x3a9d46){const _0x6134de=_0x5e5e22;this[_0x6134de(0x4a8)]['delete'](_0x3a9d46),this['_emitMembers']();}[_0x5e5e22(0x2cb)](_0x20859b){const _0x47a4f9=_0x5e5e22;return this[_0x47a4f9(0x4a8)][_0x47a4f9(0x31e)](_0x20859b);}[_0x5e5e22(0x4e4)](){const _0x54ff3d=_0x5e5e22;return Array[_0x54ff3d(0x44c)](this['_members'][_0x54ff3d(0x3e3)]());}['_emitMembers'](){const _0x29aacb=_0x5e5e22;this['_members$'][_0x29aacb(0x446)](this[_0x29aacb(0x4a8)]);}};let _0x4cf53d=function(_0x44afc9){const _0x419103=_0x5e5e22;return _0x44afc9[_0x44afc9[_0x419103(0x3e7)]=0x0]=_0x419103(0x3e7),_0x44afc9[_0x44afc9[_0x419103(0x435)]=0x1]=_0x419103(0x435),_0x44afc9[_0x44afc9[_0x419103(0x3d2)]=0x2]=_0x419103(0x3d2),_0x44afc9[_0x44afc9[_0x419103(0x268)]=0x3]=_0x419103(0x268),_0x44afc9;}({}),_0x4088c5={[_0x26034e[_0x5e5e22(0x48a)][_0x5e5e22(0x4bd)]]:_0x5e5e22(0x2d0),[_0x26034e['CmdRspCode'][_0x5e5e22(0x4cb)]]:_0x5e5e22(0x3ec),[_0x26034e[_0x5e5e22(0x48a)][_0x5e5e22(0x42e)]]:_0x5e5e22(0x362),[_0x26034e[_0x5e5e22(0x48a)][_0x5e5e22(0x402)]]:'session.room-permission-denied',[_0x26034e[_0x5e5e22(0x48a)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:'session.room-cnt-exceeds'},_0x56a6c2=class extends _0x1f27ed[_0x5e5e22(0x38a)]{get[_0x5e5e22(0x4ab)](){const _0x52d28b=_0x5e5e22;return this[_0x52d28b(0x2ae)][_0x52d28b(0x2df)]();}constructor(_0x333657,_0x5c3a2e,_0x55abca,_0x32f75b,_0x136e97,_0x286597,_0x5123a7,_0x4982fa){const _0x3dd31e=_0x5e5e22;super(),this[_0x3dd31e(0x33a)]=_0x333657,this[_0x3dd31e(0x2de)]=_0x55abca,this[_0x3dd31e(0x494)]=_0x32f75b,this[_0x3dd31e(0x3cf)]=_0x136e97,this['_commentService']=_0x286597,this['_collaborationUIEventService']=_0x5123a7,this[_0x3dd31e(0x497)]=_0x4982fa,_0x5886a9(this,'_sessionStatus$',new _0xd93cf['BehaviorSubject'](0x0)),_0x5886a9(this,_0x3dd31e(0x297),this['_sessionStatus$'][_0x3dd31e(0x471)]()),_0x5886a9(this,_0x3dd31e(0x223),new _0xd93cf['Subject']()),_0x5886a9(this,'event$',this[_0x3dd31e(0x223)][_0x3dd31e(0x471)]()),_0x5886a9(this,_0x3dd31e(0x3e1),void 0x0),_0x5886a9(this,_0x3dd31e(0x373),void 0x0),_0x5886a9(this,'_collaborationTimeoutTimer',void 0x0),_0x5886a9(this,_0x3dd31e(0x4a9),!0x1),_0x5886a9(this,'_telemetryInfo',null),this[_0x3dd31e(0x4a9)]=!!this[_0x3dd31e(0x497)],_0x5c3a2e[_0x3dd31e(0x3e2)]((0x0,_0xd93cf[_0x3dd31e(0x2dd)])(this['dispose$']))[_0x3dd31e(0x3c1)](_0x5f0efb=>{const _0x3f4a5f=_0x3dd31e;if(_0x5f0efb!==void 0x0){if(this['_socket']=_0x5f0efb,_0x5f0efb)this['_joinRoom'](_0x5f0efb),this[_0x3f4a5f(0x373)]=_0x5f0efb[_0x3f4a5f(0x3d5)]['subscribe'](_0x12ef15=>{const _0x2807a7=_0x3f4a5f;_0x12ef15['routeKey']===this[_0x2807a7(0x33a)]&&this['_onCombEvent'](_0x12ef15);});else{var _0x413376;this[_0x3f4a5f(0x4af)](),this[_0x3f4a5f(0x2ae)]['next'](0x2),(_0x413376=this[_0x3f4a5f(0x373)])==null||_0x413376[_0x3f4a5f(0x2d3)](),this[_0x3f4a5f(0x373)]=null;}}});}[_0x5e5e22(0x273)](){const _0x74fe34=_0x5e5e22;var _0x299649,_0x26d01c;return(_0x299649=(_0x26d01c=this[_0x74fe34(0x3e1)])==null?void 0x0:_0x26d01c[_0x74fe34(0x43c)])==null?null:_0x299649;}[_0x5e5e22(0x345)](){const _0x4f6972=_0x5e5e22;super[_0x4f6972(0x345)](),this[_0x4f6972(0x4d3)](),this[_0x4f6972(0x207)][_0x4f6972(0x446)](),this[_0x4f6972(0x207)][_0x4f6972(0x328)]();}[_0x5e5e22(0x4d3)](){const _0x561c32=_0x5e5e22;var _0x600c8a,_0x55eb6d;this[_0x561c32(0x4af)](),(_0x600c8a=this['_socket'])==null||_0x600c8a[_0x561c32(0x50d)]({'cmd':_0x26034e[_0x561c32(0x4ae)][_0x561c32(0x36c)],'data':{'roomID':this[_0x561c32(0x33a)]}}),(_0x55eb6d=this[_0x561c32(0x3e1)])==null||_0x55eb6d[_0x561c32(0x4d3)](),this[_0x561c32(0x223)][_0x561c32(0x328)](),this[_0x561c32(0x2ae)]['complete']();}[_0x5e5e22(0x228)](_0x20bcd3){const _0x5a094e=_0x5e5e22;_0x20bcd3[_0x5a094e(0x34a)]===_0x26034e[_0x5a094e(0x4ae)][_0x5a094e(0x505)]?this[_0x5a094e(0x26c)](_0x20bcd3):_0x20bcd3[_0x5a094e(0x34a)]===_0x26034e[_0x5a094e(0x4ae)][_0x5a094e(0x241)]&&this['_onRecvEvent'](_0x20bcd3);}[_0x5e5e22(0x1f2)](_0x9cd14e){const _0x1c2775=_0x5e5e22;this[_0x1c2775(0x2ae)]['next'](0x1),_0x9cd14e[_0x1c2775(0x50d)]({'cmd':_0x26034e[_0x1c2775(0x4ae)]['JOIN'],'routeKey':this[_0x1c2775(0x33a)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1c2775(0x33a)]}]}});}[_0x5e5e22(0x26c)](_0x4e44dc){const _0x7ec08b=_0x5e5e22;var _0x11bba9;if(_0x4e44dc['code']in _0x4088c5){this['_collaborationUIEventService'][_0x7ec08b(0x2a0)]({'id':_0x7ec08b(0x3a2),'data':_0x4088c5[_0x4e44dc[_0x7ec08b(0x45d)]]}),this[_0x7ec08b(0x2ae)][_0x7ec08b(0x446)](0x2);return;}this[_0x7ec08b(0x2ae)][_0x7ec08b(0x446)](0x3);let _0x9fc4e8=(_0x11bba9=_0x4e44dc[_0x7ec08b(0x4c1)]['roomInfos'][this['_unitID']])==null?void 0x0:_0x11bba9[_0x7ec08b(0x3ca)];_0x9fc4e8&&_0x9fc4e8[_0x7ec08b(0x3ad)](_0x2711fb=>this['_memberService'][_0x7ec08b(0x3c3)](this[_0x7ec08b(0x33a)],_0x2711fb));}[_0x5e5e22(0x30d)](_0x4a1fc4){const _0x4e51c1=_0x5e5e22;try{let _0x507f60=_0x4a1fc4[_0x4e51c1(0x4c1)];switch(_0x507f60[_0x4e51c1(0x46c)]){case _0x2b4fec[_0x4e51c1(0x3e6)][_0x4e51c1(0x286)]:this[_0x4e51c1(0x20f)](_0x507f60),this[_0x4e51c1(0x223)][_0x4e51c1(0x446)](_0x507f60);break;case _0x2b4fec[_0x4e51c1(0x3e6)]['USERS_LEAVE']:this[_0x4e51c1(0x3cb)](_0x507f60),this['_event$'][_0x4e51c1(0x446)](_0x507f60);break;case _0x2b4fec[_0x4e51c1(0x3e6)]['CHANGESET_ACK']:case _0x2b4fec['CollaborationEvent'][_0x4e51c1(0x353)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x4e51c1(0x4a4)](),this[_0x4e51c1(0x223)][_0x4e51c1(0x446)](_0x507f60);break;case _0x2b4fec[_0x4e51c1(0x3e6)][_0x4e51c1(0x4f7)]:this['_logService'][_0x4e51c1(0x4bf)](_0x4e51c1(0x459)+JSON[_0x4e51c1(0x298)](_0x507f60)),this[_0x4e51c1(0x223)][_0x4e51c1(0x446)](_0x507f60);break;case _0x2b4fec['CollaborationEvent'][_0x4e51c1(0x354)]:this['_commentService'][_0x4e51c1(0x301)](_0x507f60['data']),this[_0x4e51c1(0x223)][_0x4e51c1(0x446)](_0x507f60);break;default:this[_0x4e51c1(0x223)][_0x4e51c1(0x446)](_0x507f60);}}catch(_0x76468f){this['_logService'][_0x4e51c1(0x4bf)](_0x76468f,_0x4a1fc4);}}['_onUserJoin'](_0x3463e7){const _0x2d7893=_0x5e5e22;this['_memberService']['updateMember'](this[_0x2d7893(0x33a)],_0x3463e7['data']);}[_0x5e5e22(0x3cb)](_0x41202f){const _0x43ac88=_0x5e5e22;this[_0x43ac88(0x3cf)][_0x43ac88(0x30e)](this[_0x43ac88(0x33a)],_0x41202f[_0x43ac88(0x4c1)]['memberID']);}async['send'](_0x4843f6,_0x4c047e){const _0x2dcf0=_0x5e5e22;if(this[_0x2dcf0(0x4ab)]!==0x3||!this[_0x2dcf0(0x3e1)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x4843f6[_0x2dcf0(0x46c)]===_0x2b4fec[_0x2dcf0(0x3e6)]['SUBMIT_CHANGESET']&&(this[_0x2dcf0(0x2e7)](),this[_0x2dcf0(0x462)](_0x4843f6)),this[_0x2dcf0(0x3e1)][_0x2dcf0(0x50d)]({'cmd':_0x26034e['CombCmd'][_0x2dcf0(0x1f0)],'routeKey':_0x4c047e,'routeType':'','data':_0x4843f6});}catch(_0x107fe5){this[_0x2dcf0(0x2de)][_0x2dcf0(0x4bf)](_0x107fe5);}}['_scheduleCollaborationTimeoutTimer'](){const _0x52edff=_0x5e5e22;var _0x143f95;this[_0x52edff(0x456)]=setTimeout(()=>{const _0x566726=_0x52edff;this[_0x566726(0x456)]=null,this[_0x566726(0x205)][_0x566726(0x2a0)]({'id':_0x566726(0x43f)});},(_0x143f95=this[_0x52edff(0x494)]['getConfig']('HEARTBEAT_TIMEOUT'))==null?_0x1589e0:_0x143f95);}[_0x5e5e22(0x4a4)](){const _0xb29d3e=_0x5e5e22;this[_0xb29d3e(0x456)]&&(clearTimeout(this[_0xb29d3e(0x456)]),this[_0xb29d3e(0x456)]=null);}[_0x5e5e22(0x462)](_0x1cf77a){const _0x4cbaac=_0x5e5e22;if(!this[_0x4cbaac(0x4a9)])return;let {data:_0x16573d}=_0x1cf77a,{unitID:_0x4232fc,changeset:_0x16acf6}=_0x16573d,{mutations:_0x3685c3,type:_0x1d0ade}=_0x16acf6;this[_0x4cbaac(0x463)]={'unitId':_0x4232fc,'type':_0x1d0ade,'startTime':performance[_0x4cbaac(0x412)](),'stopTime':0x0,'duration':0x0,'size':_0x22fab6(_0x3685c3)};}[_0x5e5e22(0x4cc)](){const _0x15840c=_0x5e5e22;if(this['_shouldReportTelemetry']){if(!this[_0x15840c(0x463)]){this['_logService'][_0x15840c(0x4bf)](_0x15840c(0x452),_0x15840c(0x3a0));return;}this[_0x15840c(0x463)]['stopTime']=performance[_0x15840c(0x412)](),this[_0x15840c(0x463)]['duration']=this['_telemetryInfo'][_0x15840c(0x485)]-this[_0x15840c(0x463)][_0x15840c(0x427)],this[_0x15840c(0x497)][_0x15840c(0x3aa)](_0x15840c(0x44f),this[_0x15840c(0x463)]),this['_telemetryInfo']=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x3b18b9=_0x5e5e22;this[_0x3b18b9(0x463)]=null;}};_0x56a6c2=_0x28d1a4([_0x26ba80(0x2,_0x1f27ed['ILogService']),_0x26ba80(0x3,_0x1f27ed['IConfigService']),_0x26ba80(0x4,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x3aba96)),_0x26ba80(0x5,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x5909a8)),_0x26ba80(0x6,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2af8d7)),_0x26ba80(0x7,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x416cdb[_0x5e5e22(0x238)]))],_0x56a6c2);let _0x33d8de=(0x0,_0x1f27ed[_0x5e5e22(0x448)])('collaboration-client.local-cache-service');function _0x1b3860(_0x3ff10d){const _0x2cb97e=_0x5e5e22;return _0x2cb97e(0x3f5)+_0x3ff10d;}function _0x4835f7(_0x13b09b){const _0x500b48=_0x5e5e22;let {unitID:_0x1b39c6,mutations:_0x1ccae3}=_0x13b09b;return{'unitId':_0x1b39c6,'subUnitId':_0x1ccae3[_0x500b48(0x242)]>0x0?_0x1ccae3[0x0][_0x500b48(0x2ed)][_0x500b48(0x37f)]:null};}let _0x3ede5e=class{constructor(_0x4ff527,_0x47ca19,_0x155283){const _0x5bc0ba=_0x5e5e22;this[_0x5bc0ba(0x3af)]=_0x4ff527,this[_0x5bc0ba(0x344)]=_0x47ca19,this['_instanceService']=_0x155283;}[_0x5e5e22(0x4f9)](_0x5ad625){const _0x55b546=_0x5e5e22;var _0x1b1146,_0x2d1278;let _0x3657b3=this[_0x55b546(0x3af)][_0x55b546(0x31e)](_0x47a016[_0x55b546(0x4ff)]),{unitId:_0x507a5e,subUnitId:_0x3e6091}=_0x4835f7(_0x5ad625),_0x1d2084=_0x3657b3==null?void 0x0:_0x3657b3[_0x55b546(0x3fc)](_0x507a5e)[_0x55b546(0x50e)](),_0x3ce161=(_0x1b1146=this[_0x55b546(0x3ae)][_0x55b546(0x445)](_0x507a5e))==null||(_0x1b1146=_0x1b1146[_0x55b546(0x4e7)]())==null?void 0x0:_0x1b1146[_0x55b546(0x21a)]();if(_0x1d2084[_0x55b546(0x242)]===0x0||!_0x507a5e||!_0x3e6091)return;let _0x3823a5=[{'id':_0x47a016[_0x55b546(0x4b3)]['id'],'params':{'unitId':_0x507a5e,'subUnitId':_0x3ce161,'selections':_0x1f27ed['Tools'][_0x55b546(0x41f)](_0x1d2084)}}],_0x516dc0=this[_0x55b546(0x344)][_0x55b546(0x1f3)](_0x5ad625,_0x3823a5);if(!(0x0,_0x2b4fec[_0x55b546(0x2c8)])(_0x516dc0))throw _0x516dc0[_0x55b546(0x4bf)];let _0x3b5963=(_0x2d1278=_0x516dc0[_0x55b546(0x22d)][0x0])==null||(_0x2d1278=_0x2d1278['params'])==null?void 0x0:_0x2d1278[_0x55b546(0x33d)];if(Array[_0x55b546(0x449)](_0x3b5963)&&_0x3b5963[_0x55b546(0x242)]){if(_0x3b5963[_0x55b546(0x242)]===_0x3823a5[0x0][_0x55b546(0x2ed)][_0x55b546(0x33d)][_0x55b546(0x242)]&&_0x3b5963[_0x55b546(0x27b)]((_0x4e767c,_0x7f986)=>_0x1f27ed[_0x55b546(0x2a2)][_0x55b546(0x461)](_0x4e767c[_0x55b546(0x2b9)],_0x3823a5[0x0]['params']['selections'][_0x7f986][_0x55b546(0x2b9)])))return;this[_0x55b546(0x3af)]['get'](_0x1f27ed['ICommandService'])[_0x55b546(0x397)](_0x47a016[_0x55b546(0x4b3)]['id'],{'unitId':_0x507a5e,'subUnitId':_0x3ce161,'selections':_0x3b5963});}}};_0x3ede5e=_0x28d1a4([_0x26ba80(0x0,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed['Injector'])),_0x26ba80(0x1,_0x2b4fec[_0x5e5e22(0x2f7)]),_0x26ba80(0x2,_0x1f27ed[_0x5e5e22(0x50c)])],_0x3ede5e);let _0xf1640f=(0x0,_0x1f27ed[_0x5e5e22(0x448)])('univer-pro.collaboration-client.single-active-unit-service'),_0x15dbc9=function(_0x265d76){const _0x279d42=_0x5e5e22;return _0x265d76[_0x265d76[_0x279d42(0x277)]=0x0]=_0x279d42(0x277),_0x265d76[_0x265d76[_0x279d42(0x419)]=0x1]=_0x279d42(0x419),_0x265d76;}({}),_0x5df009=_0x5e5e22(0x4ad);Symbol(_0x5df009);let _0x5b799f={};function _0x274714(_0x4b7b6d){const _0x4b6fa7=_0x5e5e22;var _0x2c2e45;return!!((_0x2c2e45=_0x4b7b6d[_0x4b6fa7(0x2ed)])!=null&&_0x2c2e45[_0x4b6fa7(0x366)]);}let _0x38d6a7=new Set([_0x47a016[_0x5e5e22(0x2a8)]['id']]);function _0x4c9235(_0x2b021a,_0x1279d2,_0x52b8a7,_0x146af1,_0x5ec913){const _0x1013ac=_0x5e5e22;var _0x5766dc,_0x58a5d9,_0x4b18c8,_0x4e1e07;let _0x17cac3=[];for(let _0xcb5d1f of _0x2b021a){if(_0x38d6a7[_0x1013ac(0x4e1)](_0xcb5d1f['id'])){if(_0x17cac3[_0x1013ac(0x242)]>0x0)break;_0x17cac3[_0x1013ac(0x2e4)](_0xcb5d1f);break;}if(_0x274714(_0xcb5d1f)){if(_0x17cac3[_0x1013ac(0x242)]>0x0)break;_0x17cac3['push'](_0xcb5d1f);break;}_0x17cac3[_0x1013ac(0x2e4)](_0xcb5d1f);}let _0xe1803d=(_0x5766dc=(_0x58a5d9=_0x5ec913['getCurrentUser']())==null?void 0x0:_0x58a5d9[_0x1013ac(0x3eb)])==null?_0x1013ac(0x46e):_0x5766dc,_0x191fe8=(_0x4b18c8=(_0x4e1e07=_0x5ec913[_0x1013ac(0x27a)]())==null?void 0x0:_0x4e1e07[_0x1013ac(0x43c)])==null?'unknown':_0x4b18c8;return{'changeset':{'unitID':_0x1279d2,'type':(0x0,_0x2b4fec[_0x1013ac(0x42b)])(_0x52b8a7[_0x1013ac(0x2b6)](_0x1279d2)),'baseRev':_0x146af1[_0x1013ac(0x255)](_0x1279d2),'revision':0x0,'userID':_0xe1803d,'memberID':_0x191fe8,'mutations':_0x17cac3},'pendingMutations':_0x2b021a[_0x1013ac(0x4ef)](_0x17cac3[_0x1013ac(0x242)])};}function _0x42b846(_0x37767a,_0x2c3ade,_0x1a123e,_0x2bc88a,_0x26d1ce){const _0x4afabd=_0x5e5e22;var _0xbc01a9,_0x1f88fd,_0x5e9dc5,_0x323ef0;let _0x1dbc52=[_0x37767a[_0x4afabd(0x39b)]((_0x188754,_0x8b569d)=>{const _0x1faa7b=_0x4afabd;var _0x800e19;let {id:_0x39f892}=_0x188754,{id:_0x54a404,type:_0xbb5786}=_0x8b569d,_0x19bfe2=(_0x800e19=_0x188754[_0x1faa7b(0x2ed)])==null?{'actions':null}:_0x800e19,_0x4e34e6=_0x8b569d['params'];if(_0x39f892&&_0x39f892!==_0x54a404)throw Error(_0x1faa7b(0x288)+_0x39f892+_0x1faa7b(0x425)+_0x54a404+'.');return{..._0x188754,'id':_0x54a404,'type':_0xbb5786,'params':{'unitId':_0x4e34e6[_0x1faa7b(0x48f)],'textRanges':_0x4e34e6[_0x1faa7b(0x3c6)],'actions':_0x1f27ed[_0x1faa7b(0x315)][_0x1faa7b(0x39a)](_0x19bfe2[_0x1faa7b(0x4f1)],_0x4e34e6[_0x1faa7b(0x4f1)])}};},{})],_0x5a1f50=(_0xbc01a9=(_0x1f88fd=_0x26d1ce[_0x4afabd(0x27a)]())==null?void 0x0:_0x1f88fd['userID'])==null?_0x4afabd(0x46e):_0xbc01a9,_0x32e78c=(_0x5e9dc5=(_0x323ef0=_0x26d1ce[_0x4afabd(0x27a)]())==null?void 0x0:_0x323ef0['memberID'])==null?_0x4afabd(0x46e):_0x5e9dc5;return{'changeset':{'unitID':_0x2c3ade,'type':(0x0,_0x2b4fec[_0x4afabd(0x42b)])(_0x1a123e[_0x4afabd(0x2b6)](_0x2c3ade)),'baseRev':_0x2bc88a['getCurrentRevOfUnit'](_0x2c3ade),'revision':0x0,'userID':_0x5a1f50,'memberID':_0x32e78c,'mutations':_0x1dbc52},'pendingMutations':[]};}function _0x564c43(_0x3afa5d,_0xf32c68){const _0x340130=_0x5e5e22;let _0x18cb94=new _0xd93cf[(_0x340130(0x41a))](0x1);return setTimeout(()=>_0x18cb94[_0x340130(0x446)](_0xf32c68),_0x3afa5d),_0x18cb94[_0x340130(0x471)]()[_0x340130(0x3e2)]((0x0,_0xd93cf[_0x340130(0x26b)])(0x1));}var _0x1393a6,_0x37525e,_0x354c96;let _0x5788d6=function(_0x3ac5f7){const _0x4850c9=_0x5e5e22;return _0x3ac5f7[_0x4850c9(0x2b2)]=_0x4850c9(0x352),_0x3ac5f7[_0x4850c9(0x3c5)]='synced',_0x3ac5f7[_0x4850c9(0x2fd)]=_0x4850c9(0x22c),_0x3ac5f7[_0x4850c9(0x2e9)]=_0x4850c9(0x4f0),_0x3ac5f7[_0x4850c9(0x2f5)]='awaiting_with_pending',_0x3ac5f7[_0x4850c9(0x22e)]=_0x4850c9(0x2cd),_0x3ac5f7[_0x4850c9(0x4b0)]='conflict',_0x3ac5f7[_0x4850c9(0x3d2)]=_0x4850c9(0x4f2),_0x3ac5f7;}({}),_0x18dc3c=0x4e20,_0xadf4c=0x2bf20;var _0x280124=class{constructor(_0x10b39e,_0x1af1a6,_0x5d2298,_0x157293,_0x21e479,_0x2d5ba8,_0x1afe1d,_0x52562a,_0x3761b1){const _0x2b3665=_0x5e5e22;this[_0x2b3665(0x3bc)]=_0x10b39e,this[_0x2b3665(0x320)]=_0x1af1a6,this[_0x2b3665(0x42a)]=_0x21e479,this[_0x2b3665(0x21d)]=_0x2d5ba8,this[_0x2b3665(0x2c9)]=_0x1afe1d,this[_0x2b3665(0x38e)]=_0x52562a,this[_0x2b3665(0x321)]=_0x3761b1,_0x5886a9(this,_0x2b3665(0x342),null),_0x5886a9(this,_0x2b3665(0x1fc),[]),this[_0x2b3665(0x342)]=_0x5d2298,this[_0x2b3665(0x1fc)]=_0x157293;}['_checkMissing'](_0x59dfc3){const _0x191948=_0x5e5e22;let _0x417271=this[_0x191948(0x38e)][_0x191948(0x255)](this['unitID']);return _0x59dfc3[_0x191948(0x4fd)]>_0x417271+0x1?(this[_0x191948(0x42a)]['onMissingChangesets']({'from':_0x417271,'to':_0x59dfc3[_0x191948(0x4fd)]-0x1}),!0x0):!0x1;}[_0x5e5e22(0x2e5)](_0x305668){const _0x2b6fd1=_0x5e5e22;this[_0x2b6fd1(0x2c9)][_0x2b6fd1(0x2b8)](this[_0x2b6fd1(0x3bc)],_0x305668);}['_transformSelections'](_0x3fc924){const _0x29cf86=_0x5e5e22;var _0x100800,_0x28a3ad;(_0x100800=(_0x28a3ad=this[_0x29cf86(0x42a)])[_0x29cf86(0x36e)])==null||_0x100800['call'](_0x28a3ad,_0x3fc924);}[_0x5e5e22(0x250)](_0x1b5cc1){const _0xcb5f83=_0x5e5e22;var _0x375e1a,_0x9d37b7;return(_0x375e1a=(_0x9d37b7=this[_0xcb5f83(0x42a)])[_0xcb5f83(0x281)])==null?void 0x0:_0x375e1a[_0xcb5f83(0x514)](_0x9d37b7,_0x1b5cc1);}[_0x5e5e22(0x21c)](_0x29951a){const _0x35d97e=_0x5e5e22;var _0x469f21,_0x3a5482;return(_0x469f21=(_0x3a5482=this[_0x35d97e(0x42a)])['onTransformState'])==null?void 0x0:_0x469f21['call'](_0x3a5482,_0x29951a);}[_0x5e5e22(0x32c)](_0x33f413){const _0x26b1cd=_0x5e5e22;var _0x4c30c0,_0xf9a427,_0x1af4c4;return(_0x4c30c0=(_0xf9a427=(_0x1af4c4=this[_0x26b1cd(0x42a)])[_0x26b1cd(0x43a)])==null?void 0x0:_0xf9a427['call'](_0x1af4c4,_0x33f413))==null?_0x33f413:_0x4c30c0;}[_0x5e5e22(0x211)](_0x109d8c){const _0x2cf325=_0x5e5e22;var _0x2b445b,_0x5b15bd,_0x1bbee6;return(_0x2b445b=(_0x5b15bd=(_0x1bbee6=this['_handler'])[_0x2cf325(0x1f4)])==null?void 0x0:_0x5b15bd[_0x2cf325(0x514)](_0x1bbee6,_0x109d8c))==null?_0x109d8c:_0x2b445b;}['_syncEditingCollabCursor'](_0x5eee33){const _0x62d896=_0x5e5e22;if(this[_0x62d896(0x320)]===_0x1f27ed[_0x62d896(0x41c)][_0x62d896(0x4a5)]){let {unitID:_0x515c03,mutations:_0x56efb8,memberID:_0x2d04cc}=_0x5eee33,_0x293b07=_0x56efb8[_0x62d896(0x242)]>0x0?_0x56efb8[0x0][_0x62d896(0x2ed)][_0x62d896(0x3c6)]:[];if(Array[_0x62d896(0x449)](_0x293b07)&&_0x293b07[_0x62d896(0x242)]>0x0){var _0x3a6268,_0x39837d;(_0x3a6268=(_0x39837d=this[_0x62d896(0x42a)])[_0x62d896(0x348)])==null||_0x3a6268[_0x62d896(0x514)](_0x39837d,{'unitID':_0x515c03,'memberID':_0x2d04cc,'textRanges':_0x293b07});}}}[_0x5e5e22(0x284)](){const _0x537f8c=_0x5e5e22;var _0x5c00bd;(_0x5c00bd=this['_localCacheService'])==null||_0x5c00bd[_0x537f8c(0x4e5)](this['unitID'],this[_0x537f8c(0x320)],this[_0x537f8c(0x342)],this[_0x537f8c(0x1fc)]);}[_0x5e5e22(0x465)](){const _0x1dce31=_0x5e5e22;return this['_revisionService']['getCurrentRevOfUnit'](this[_0x1dce31(0x3bc)]);}['_incrementRevisionNumber'](){const _0x579110=_0x5e5e22;this[_0x579110(0x38e)]['incrementRevOfUnit'](this[_0x579110(0x3bc)]);}[_0x5e5e22(0x2b4)](_0x50363b){const _0x1dee5f=_0x5e5e22;let _0xf2213a=this[_0x1dee5f(0x32c)](_0x50363b);_0xf2213a=this[_0x1dee5f(0x211)](_0xf2213a);let _0x2e4a3f=(0x0,_0x1f27ed[_0x1dee5f(0x3c9)])(_0xf2213a['mutations'],this[_0x1dee5f(0x21d)],{'fromCollab':!0x0});if(!_0x2e4a3f['result']){var _0x1a5635;throw _0x2e4a3f[_0x1dee5f(0x4bf)]instanceof Error?_0x2e4a3f[_0x1dee5f(0x4bf)]:Error((_0x1a5635=_0x2e4a3f[_0x1dee5f(0x4bf)])==null?_0x1dee5f(0x499):_0x1a5635);}this['_transformIMECache'](_0xf2213a),this[_0x1dee5f(0x21c)](_0xf2213a),this[_0x1dee5f(0x2e5)](_0x50363b),this[_0x1dee5f(0x49f)](_0xf2213a),this['_syncEditingCollabCursor'](_0xf2213a),this[_0x1dee5f(0x450)]();}};let _0x165a95=class extends _0x280124{constructor(_0x5bbba4,_0x6abcb,_0x37a35a,_0x40af7e,_0x2f7a50,_0x4e59ed,_0x393f86,_0x1cb1ae,_0x5b584c,_0x5add7c){const _0x3c9804=_0x5e5e22;super(_0x5bbba4,_0x6abcb,null,[],_0x37a35a,_0x393f86,_0x4e59ed,_0x40af7e,_0x5add7c),this[_0x3c9804(0x3af)]=_0x2f7a50,this[_0x3c9804(0x2de)]=_0x1cb1ae,this['_transformService']=_0x5b584c,this[_0x3c9804(0x335)]=_0x5add7c,_0x5886a9(this,_0x3c9804(0x47f),_0x3c9804(0x392));}['appendMutation'](_0x88e443){const _0x2e15c8=_0x5e5e22;let _0x321df7=this[_0x2e15c8(0x3af)]['createInstance'](_0x552ece,this[_0x2e15c8(0x3bc)],this[_0x2e15c8(0x320)],[_0x88e443],this['_handler']);return _0x321df7['_schedule'](),_0x321df7[_0x2e15c8(0x284)](),_0x321df7;}[_0x5e5e22(0x4f4)](_0x58b79f){const _0x5ab5ec=_0x5e5e22;if(this[_0x5ab5ec(0x2a7)](_0x58b79f))return this[_0x5ab5ec(0x3af)][_0x5ab5ec(0x467)](_0x272441,this[_0x5ab5ec(0x3bc)],this[_0x5ab5ec(0x320)],null,[],null,[_0x58b79f],this['_handler']);try{let _0x273b99=this['_transformService']['transformMutationsWithChangeset'](_0x58b79f,[_0x2b4fec[_0x5ab5ec(0x244)]]);if((0x0,_0x2b4fec[_0x5ab5ec(0x2c8)])(_0x273b99)){let {c1Prime:_0x4707ad}=_0x273b99;return this[_0x5ab5ec(0x2b4)](_0x4707ad),this;}throw _0x273b99[_0x5ab5ec(0x4bf)];}catch(_0x8a3eb5){return this[_0x5ab5ec(0x2de)][_0x5ab5ec(0x4bf)](_0x8a3eb5),this[_0x5ab5ec(0x3b7)](!0x1);}}[_0x5e5e22(0x3b7)](_0x270838){const _0x1fb409=_0x5e5e22;return this[_0x1fb409(0x3af)]['createInstance'](_0x2d8e7b,this['unitID'],this[_0x1fb409(0x320)],null,[],this[_0x1fb409(0x42a)],_0x270838);}['onRemoteAck'](_0x2653f4){const _0xee33f7=_0x5e5e22;if(_0x2653f4[_0xee33f7(0x4fd)]<=this[_0xee33f7(0x465)]())return this;throw Error(_0xee33f7(0x39f));}[_0x5e5e22(0x31a)](){throw Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x5e5e22(0x3b0)](){const _0x100d10=_0x5e5e22;return this[_0x100d10(0x3af)]['createInstance'](_0x73123,this[_0x100d10(0x3bc)],this[_0x100d10(0x320)],null,[],this['_handler']);}[_0x5e5e22(0x3f4)](){return this;}[_0x5e5e22(0x41d)](){const _0x13ade6=_0x5e5e22;throw Error(_0x13ade6(0x369));}[_0x5e5e22(0x252)](){const _0x2defb0=_0x5e5e22;let _0x54c705=this[_0x2defb0(0x38e)]['getCurrentRevOfUnit'](this[_0x2defb0(0x3bc)]);return this[_0x2defb0(0x42a)][_0x2defb0(0x21f)]({'from':_0x54c705,'to':0x0}),this[_0x2defb0(0x3af)]['createInstance'](_0x272441,this[_0x2defb0(0x3bc)],this[_0x2defb0(0x320)],null,[],null,[],this[_0x2defb0(0x42a)]);}};_0x165a95=_0x28d1a4([_0x26ba80(0x3,(0x0,_0x1f27ed['Inject'])(_0x2b4fec['RevisionService'])),_0x26ba80(0x4,(0x0,_0x1f27ed['Inject'])(_0x1f27ed[_0x5e5e22(0x271)])),_0x26ba80(0x5,_0x1f27ed[_0x5e5e22(0x325)]),_0x26ba80(0x6,_0x1f27ed[_0x5e5e22(0x2ac)]),_0x26ba80(0x7,_0x1f27ed[_0x5e5e22(0x304)]),_0x26ba80(0x8,_0x2b4fec[_0x5e5e22(0x2f7)]),_0x26ba80(0x9,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x33d8de))],_0x165a95);let _0x552ece=_0x1393a6=class extends _0x280124{constructor(_0x26d416,_0x45609f,_0x199f74,_0x5d46cf,_0x5a127a,_0x5c981c,_0x4458b7,_0x4e2528,_0x5eb4eb,_0x2fb208,_0x402468,_0x51c8f3,_0x5a1be6,_0x45c32e){const _0x242775=_0x5e5e22;super(_0x26d416,_0x45609f,null,_0x199f74,_0x5d46cf,_0x5eb4eb,_0x5a1be6,_0x5c981c,_0x45c32e),this[_0x242775(0x3af)]=_0x5a127a,this['_memberService']=_0x4458b7,this[_0x242775(0x2de)]=_0x4e2528,this[_0x242775(0x494)]=_0x2fb208,this['_transformService']=_0x402468,this[_0x242775(0x45b)]=_0x51c8f3,_0x5886a9(this,_0x242775(0x47f),_0x242775(0x22c)),_0x5886a9(this,_0x242775(0x22b),null),_0x5886a9(this,_0x242775(0x43d),null);}[_0x5e5e22(0x4f3)](_0x42e423){const _0x56f5b3=_0x5e5e22;return this[_0x56f5b3(0x1fc)]['push'](_0x42e423),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x215724){const _0x237ce0=_0x5e5e22;if(this[_0x237ce0(0x2a7)](_0x215724))return this[_0x237ce0(0x4c0)](),this[_0x237ce0(0x3af)][_0x237ce0(0x467)](_0x272441,this[_0x237ce0(0x3bc)],this[_0x237ce0(0x320)],null,this[_0x237ce0(0x1fc)],null,[_0x215724],this[_0x237ce0(0x42a)]);try{let _0x110a9a=this[_0x237ce0(0x344)][_0x237ce0(0x1f3)](_0x215724,this[_0x237ce0(0x1fc)]);if((0x0,_0x2b4fec['isTransformMutationsWithChangesetSuccess'])(_0x110a9a)){let {c1Prime:_0x580dc9,m2Prime:_0x7823a7}=_0x110a9a;this[_0x237ce0(0x2b4)](_0x580dc9);let _0x36fbc5=this[_0x237ce0(0x3af)][_0x237ce0(0x467)](_0x1393a6,this[_0x237ce0(0x3bc)],this[_0x237ce0(0x320)],_0x7823a7,this[_0x237ce0(0x42a)]);this[_0x237ce0(0x4c0)]();let _0x56d372=new Date()[_0x237ce0(0x322)](),_0x3948a0=this[_0x237ce0(0x22b)]?Math['max'](this['_scheduleCompleteTimestamp']-_0x56d372,0x0):this['_getSendChangesetTimeout']();return _0x36fbc5['_schedule'](_0x3948a0),_0x36fbc5;}throw _0x110a9a[_0x237ce0(0x4bf)];}catch(_0x2f40fb){return this[_0x237ce0(0x2de)][_0x237ce0(0x4bf)](_0x2f40fb),this[_0x237ce0(0x3b7)](!0x1);}}[_0x5e5e22(0x37b)](_0x1c9c57){const _0xf86a75=_0x5e5e22;if(_0x1c9c57[_0xf86a75(0x4fd)]<=this['_getCurrentRevision']())return this;throw Error(_0xf86a75(0x443));}[_0x5e5e22(0x31a)](){const _0x332eb2=_0x5e5e22;throw Error(_0x332eb2(0x23c));}[_0x5e5e22(0x4e3)](){return this;}[_0x5e5e22(0x3b0)](){const _0x6a25d=_0x5e5e22;return this[_0x6a25d(0x4c0)](),this[_0x6a25d(0x3af)][_0x6a25d(0x467)](_0x73123,this[_0x6a25d(0x3bc)],this[_0x6a25d(0x320)],null,this[_0x6a25d(0x1fc)],this[_0x6a25d(0x42a)]);}['toggleOnline'](){return this;}[_0x5e5e22(0x28a)](_0x5e5510){const _0x7d3447=_0x5e5e22;let _0x207cbc=_0x5e5510==null?this[_0x7d3447(0x24b)]():_0x5e5510;this[_0x7d3447(0x22b)]=new Date()[_0x7d3447(0x322)]()+_0x207cbc,this[_0x7d3447(0x43d)]=setTimeout(()=>{const _0x747bfb=_0x7d3447;this['_clearScheduledTask']();let _0x5cad81=null;switch(this[_0x747bfb(0x320)]){case _0x1f27ed[_0x747bfb(0x41c)][_0x747bfb(0x25c)]:_0x5cad81=_0x4c9235(this[_0x747bfb(0x1fc)],this[_0x747bfb(0x3bc)],this[_0x747bfb(0x45b)],this[_0x747bfb(0x38e)],this[_0x747bfb(0x3cf)]);break;case _0x1f27ed['UniverInstanceType'][_0x747bfb(0x4a5)]:_0x5cad81=this[_0x747bfb(0x1fc)][_0x747bfb(0x27b)](_0x558e33=>_0x558e33['id']===_0x3b0f13[_0x747bfb(0x476)]['id'])?_0x42b846(this[_0x747bfb(0x1fc)],this[_0x747bfb(0x3bc)],this[_0x747bfb(0x45b)],this[_0x747bfb(0x38e)],this['_memberService']):_0x4c9235(this[_0x747bfb(0x1fc)],this[_0x747bfb(0x3bc)],this[_0x747bfb(0x45b)],this['_revisionService'],this['_memberService']);break;default:throw Error(_0x747bfb(0x4b4)+this[_0x747bfb(0x320)]+'\x20in\x20_schedule.');}let {changeset:_0x24e9d5,pendingMutations:_0x193535}=_0x5cad81;this[_0x747bfb(0x42a)][_0x747bfb(0x30a)](_0x24e9d5);let _0x5ad39a=_0x193535['length']?this['_injector'][_0x747bfb(0x467)](_0x2aa7cb,this[_0x747bfb(0x3bc)],this['type'],_0x24e9d5,_0x193535,this[_0x747bfb(0x42a)],void 0x0):this[_0x747bfb(0x3af)][_0x747bfb(0x467)](_0x41bca9,this[_0x747bfb(0x3bc)],this['type'],_0x24e9d5,this[_0x747bfb(0x42a)]);_0x5ad39a['_updateLocalCache'](),this[_0x747bfb(0x42a)][_0x747bfb(0x285)](this,_0x5ad39a);},_0x207cbc);}['_getSendChangesetTimeout'](){const _0x3a00e6=_0x5e5e22;var _0x1a902b;let _0x43ef5a=this[_0x3a00e6(0x494)][_0x3a00e6(0x45c)](_0x5df009);return(_0x1a902b=_0x43ef5a==null?void 0x0:_0x43ef5a[_0x3a00e6(0x3c2)])==null?0x7d0:_0x1a902b;}['resend'](){const _0x383832=_0x5e5e22;throw Error(_0x383832(0x2d5));}[_0x5e5e22(0x4c0)](){const _0x512366=_0x5e5e22;this[_0x512366(0x43d)]!=null&&(clearTimeout(this[_0x512366(0x43d)]),this[_0x512366(0x43d)]=null);}['_onConflict'](_0x3a618f){const _0x45f287=_0x5e5e22;return this[_0x45f287(0x4c0)](),this[_0x45f287(0x3af)]['createInstance'](_0x2d8e7b,this[_0x45f287(0x3bc)],this[_0x45f287(0x320)],null,this[_0x45f287(0x1fc)],this[_0x45f287(0x42a)],_0x3a618f);}};_0x552ece=_0x1393a6=_0x28d1a4([_0x26ba80(0x4,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x271)])),_0x26ba80(0x5,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2b4fec['RevisionService'])),_0x26ba80(0x6,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x3aba96)),_0x26ba80(0x7,_0x1f27ed['ILogService']),_0x26ba80(0x8,_0x1f27ed[_0x5e5e22(0x2ac)]),_0x26ba80(0x9,_0x1f27ed[_0x5e5e22(0x506)]),_0x26ba80(0xa,_0x2b4fec[_0x5e5e22(0x2f7)]),_0x26ba80(0xb,_0x1f27ed[_0x5e5e22(0x50c)]),_0x26ba80(0xc,_0x1f27ed[_0x5e5e22(0x325)]),_0x26ba80(0xd,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x33d8de))],_0x552ece);let _0x41bca9=_0x37525e=class extends _0x280124{constructor(_0x5e930a,_0x5937ef,_0x2acae1,_0x5445e2,_0x51b50,_0x43b7b6,_0x4f7c4d,_0x1defc9,_0x56982a,_0x584412,_0x3fd763){const _0x5b6579=_0x5e5e22;super(_0x5e930a,_0x5937ef,_0x2acae1,[],_0x5445e2,_0x4f7c4d,_0x584412,_0x43b7b6,_0x3fd763),this[_0x5b6579(0x3af)]=_0x51b50,this['_logService']=_0x1defc9,this[_0x5b6579(0x344)]=_0x56982a,_0x5886a9(this,_0x5b6579(0x47f),_0x5b6579(0x4f0)),_0x5886a9(this,'_resendTimeout',0x0),_0x5886a9(this,'_maxTotalRetryTimeout',0x0),_0x5886a9(this,_0x5b6579(0x2f8),void 0x0),_0x5886a9(this,_0x5b6579(0x4fb),void 0x0);}[_0x5e5e22(0x4f3)](_0x147c42){const _0x3b06f3=_0x5e5e22;this[_0x3b06f3(0x4c0)]();let _0x19e9f2=this[_0x3b06f3(0x3af)][_0x3b06f3(0x467)](_0x2aa7cb,this['unitID'],this[_0x3b06f3(0x320)],this['_awaitingChangeset'],[_0x147c42],this[_0x3b06f3(0x42a)],this['_resendTimer']);return _0x19e9f2[_0x3b06f3(0x284)](),_0x19e9f2;}[_0x5e5e22(0x4f4)](_0x211ab6){const _0x260a56=_0x5e5e22;if(this[_0x260a56(0x2a7)](_0x211ab6))return this[_0x260a56(0x4c0)](),this[_0x260a56(0x3af)][_0x260a56(0x467)](_0x272441,this['unitID'],this[_0x260a56(0x320)],this[_0x260a56(0x342)],[],null,[_0x211ab6],this[_0x260a56(0x42a)]);try{let _0x4c859b=this[_0x260a56(0x344)][_0x260a56(0x4ba)]([_0x211ab6],[this[_0x260a56(0x342)]],!0x1);if((0x0,_0x2b4fec[_0x260a56(0x383)])(_0x4c859b)){let {c1Prime:_0x59ef67,c2Prime:_0x33c68c}=_0x4c859b;this[_0x260a56(0x2b4)](_0x59ef67[0x0]),_0x33c68c[0x0][_0x260a56(0x367)]=this[_0x260a56(0x465)](),this[_0x260a56(0x4c0)]();let _0x48c982=this['_injector'][_0x260a56(0x467)](_0x37525e,this[_0x260a56(0x3bc)],this['type'],_0x33c68c[0x0],this[_0x260a56(0x42a)]);return _0x48c982[_0x260a56(0x284)](),_0x48c982;}throw _0x4c859b[_0x260a56(0x4bf)];}catch(_0x123a83){return this[_0x260a56(0x2de)][_0x260a56(0x4bf)](_0x123a83),this[_0x260a56(0x3b7)](!0x1);}}[_0x5e5e22(0x37b)](_0x2def95){const _0x5efb8c=_0x5e5e22;this[_0x5efb8c(0x4c0)]();let _0x4d149b=this[_0x5efb8c(0x38e)][_0x5efb8c(0x255)](this['unitID']);if(_0x2def95[_0x5efb8c(0x4fd)]<=_0x4d149b)return this;if(this['_checkMissing'](_0x2def95))return this[_0x5efb8c(0x3af)][_0x5efb8c(0x467)](_0x272441,this[_0x5efb8c(0x3bc)],this[_0x5efb8c(0x320)],this[_0x5efb8c(0x342)],[],_0x2def95[_0x5efb8c(0x4fd)],[],this[_0x5efb8c(0x42a)]);this[_0x5efb8c(0x450)]();let _0x339ff1=this[_0x5efb8c(0x3af)][_0x5efb8c(0x467)](_0x165a95,this[_0x5efb8c(0x3bc)],this[_0x5efb8c(0x320)],this[_0x5efb8c(0x42a)]);return _0x339ff1[_0x5efb8c(0x284)](),_0x339ff1;}[_0x5e5e22(0x31a)](_0xf27148){const _0x44889c=_0x5e5e22;return this['_onConflict'](!!(_0xf27148!=null&&_0xf27148[_0x44889c(0x43e)]));}[_0x5e5e22(0x4e3)](_0x1655ca){const _0x285c95=_0x5e5e22;return this['_maxTotalRetryTimeout']>_0xadf4c?this[_0x285c95(0x3b0)]():(this[_0x285c95(0x2f8)]=_0x564c43(this[_0x285c95(0x20a)],{'timeout':this[_0x285c95(0x20a)],'reqId':_0x1655ca['reqId']}),this[_0x285c95(0x4fb)]=this['_resendTimer']['subscribe'](({reqId:_0x502408,timeout:_0x57ca4f})=>{const _0x4ba7d1=_0x285c95;this[_0x4ba7d1(0x42f)](_0x502408,_0x57ca4f);}),this);}[_0x5e5e22(0x3b0)](){const _0x54f63e=_0x5e5e22;return this[_0x54f63e(0x4c0)](),this[_0x54f63e(0x3af)][_0x54f63e(0x467)](_0x73123,this[_0x54f63e(0x3bc)],this[_0x54f63e(0x320)],this[_0x54f63e(0x342)],[],this[_0x54f63e(0x42a)]);}['toggleOnline'](){return this;}[_0x5e5e22(0x41d)](){this['_handler']['onSendChangeset'](this['_awaitingChangeset']);}['_onConflict'](_0x13abd9){const _0x312a38=_0x5e5e22;return this[_0x312a38(0x4c0)](),this[_0x312a38(0x3af)]['createInstance'](_0x2d8e7b,this[_0x312a38(0x3bc)],this['type'],this[_0x312a38(0x342)],[],this[_0x312a38(0x42a)],_0x13abd9);}[_0x5e5e22(0x42f)](_0x38e879,_0x53122d){const _0x2f00c9=_0x5e5e22;var _0x475a32;_0x38e879===((_0x475a32=this['_awaitingChangeset'])==null?void 0x0:_0x475a32[_0x2f00c9(0x50a)])&&(this[_0x2f00c9(0x41d)](),this[_0x2f00c9(0x20a)]=_0x53122d===0x0?0x3e8:Math[_0x2f00c9(0x20e)](_0x53122d*0x2,_0x18dc3c),this[_0x2f00c9(0x398)]+=this[_0x2f00c9(0x20a)]);}[_0x5e5e22(0x4c0)](){const _0x2bc4e6=_0x5e5e22;var _0x42ade9;(_0x42ade9=this[_0x2bc4e6(0x4fb)])==null||_0x42ade9['unsubscribe'](),this[_0x2bc4e6(0x20a)]=0x0,this[_0x2bc4e6(0x398)]=0x0;}};_0x41bca9=_0x37525e=_0x28d1a4([_0x26ba80(0x4,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x271)])),_0x26ba80(0x5,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2b4fec[_0x5e5e22(0x414)])),_0x26ba80(0x6,_0x1f27ed[_0x5e5e22(0x2ac)]),_0x26ba80(0x7,_0x1f27ed['ILogService']),_0x26ba80(0x8,_0x2b4fec[_0x5e5e22(0x2f7)]),_0x26ba80(0x9,_0x1f27ed[_0x5e5e22(0x325)]),_0x26ba80(0xa,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x33d8de))],_0x41bca9);let _0x2aa7cb=_0x354c96=class extends _0x280124{constructor(_0x2f4efd,_0x232293,_0x3e06c2,_0x1dc56c,_0x2278e7,_0x4af2d5,_0x58e32,_0x51e8c5,_0x413134,_0x4b2287,_0x1a0277,_0x31638d,_0x307eee){const _0x9d4985=_0x5e5e22;super(_0x2f4efd,_0x232293,_0x3e06c2,_0x1dc56c,_0x2278e7,_0x413134,_0x31638d,_0x51e8c5,_0x307eee),this[_0x9d4985(0x3af)]=_0x58e32,this[_0x9d4985(0x2de)]=_0x4b2287,this[_0x9d4985(0x344)]=_0x1a0277,this[_0x9d4985(0x335)]=_0x307eee,_0x5886a9(this,'status',_0x9d4985(0x49a)),_0x5886a9(this,_0x9d4985(0x20a),0x0),_0x5886a9(this,_0x9d4985(0x398),0x0),_0x5886a9(this,_0x9d4985(0x2f8),void 0x0),_0x5886a9(this,'_sender',void 0x0),_0x4af2d5&&(this['_resendTimer']=_0x4af2d5,this['_sender']=this[_0x9d4985(0x2f8)][_0x9d4985(0x3c1)](({reqId:_0x42e99b,timeout:_0x4b3dec})=>{const _0x401445=_0x9d4985;this[_0x401445(0x42f)](_0x42e99b,_0x4b3dec);}));}[_0x5e5e22(0x4f3)](_0x45f97d){const _0x59efbb=_0x5e5e22;return this['_pendingMutations'][_0x59efbb(0x2e4)](_0x45f97d),this;}['onRemoteChangeset'](_0x25fda8){const _0x2ceff3=_0x5e5e22;if(this[_0x2ceff3(0x2a7)](_0x25fda8))return this[_0x2ceff3(0x4c0)](),this['_injector']['createInstance'](_0x272441,this[_0x2ceff3(0x3bc)],this[_0x2ceff3(0x320)],this[_0x2ceff3(0x342)],this[_0x2ceff3(0x1fc)],null,[_0x25fda8],this[_0x2ceff3(0x42a)]);try{let _0x513b69=this[_0x2ceff3(0x344)][_0x2ceff3(0x4ba)]([_0x25fda8],[this[_0x2ceff3(0x342)]],!0x1);if((0x0,_0x2b4fec[_0x2ceff3(0x383)])(_0x513b69)){let {c1Prime:_0x50a5c7,c2Prime:_0x3c3d1c}=_0x513b69,_0x3c3c0e=this['_transformService'][_0x2ceff3(0x1f3)](_0x50a5c7[0x0],this['_pendingMutations']);if((0x0,_0x2b4fec['isTransformMutationsWithChangesetSuccess'])(_0x3c3c0e)){let {c1Prime:_0x3d1c89,m2Prime:_0x43183c}=_0x3c3c0e;return this[_0x2ceff3(0x2b4)](_0x3d1c89),_0x3c3d1c[0x0][_0x2ceff3(0x367)]=this['_getCurrentRevision'](),this[_0x2ceff3(0x4c0)](),this[_0x2ceff3(0x3af)][_0x2ceff3(0x467)](_0x354c96,this['unitID'],this[_0x2ceff3(0x320)],_0x3c3d1c[0x0],_0x43183c,this[_0x2ceff3(0x42a)],void 0x0);}throw _0x3c3c0e[_0x2ceff3(0x4bf)];}throw _0x513b69[_0x2ceff3(0x4bf)];}catch(_0x10bd80){return this[_0x2ceff3(0x2de)]['error'](_0x10bd80),this[_0x2ceff3(0x3b7)](!0x1);}}['onRemoteAck'](_0xe2fd3f){const _0x311477=_0x5e5e22;this[_0x311477(0x4c0)]();let _0x285e00=this['_getCurrentRevision']();if(_0xe2fd3f[_0x311477(0x4fd)]<=_0x285e00)return this;if(this[_0x311477(0x2a7)](_0xe2fd3f))return this[_0x311477(0x3af)]['createInstance'](_0x272441,this['unitID'],this[_0x311477(0x320)],this[_0x311477(0x342)],this[_0x311477(0x1fc)],_0xe2fd3f[_0x311477(0x4fd)],[],this[_0x311477(0x42a)]);this[_0x311477(0x450)]();let _0x4465da=this[_0x311477(0x3af)][_0x311477(0x467)](_0x552ece,this[_0x311477(0x3bc)],this['type'],this[_0x311477(0x1fc)],this[_0x311477(0x42a)]);return _0x4465da[_0x311477(0x28a)](),_0x4465da['_updateLocalCache'](),_0x4465da;}[_0x5e5e22(0x31a)](_0x46d8eb){const _0x323243=_0x5e5e22;return this[_0x323243(0x3b7)](!!(_0x46d8eb!=null&&_0x46d8eb[_0x323243(0x43e)]));}[_0x5e5e22(0x4e3)](_0x35728e){const _0x171a49=_0x5e5e22;return this[_0x171a49(0x398)]>_0xadf4c?this[_0x171a49(0x3b0)]():(this[_0x171a49(0x2f8)]=_0x564c43(this['_resendTimeout'],{'timeout':this[_0x171a49(0x20a)],'reqId':_0x35728e[_0x171a49(0x50a)]}),this[_0x171a49(0x4fb)]=this[_0x171a49(0x2f8)]['subscribe'](({reqId:_0x4a68e4,timeout:_0x30239d})=>{const _0x2aea74=_0x171a49;this[_0x2aea74(0x42f)](_0x4a68e4,_0x30239d);}),this);}[_0x5e5e22(0x3b0)](){const _0x1b444a=_0x5e5e22;return this[_0x1b444a(0x4c0)](),this[_0x1b444a(0x3af)]['createInstance'](_0x73123,this[_0x1b444a(0x3bc)],this[_0x1b444a(0x320)],this[_0x1b444a(0x342)],this[_0x1b444a(0x1fc)],this[_0x1b444a(0x42a)]);}[_0x5e5e22(0x3f4)](){return this;}[_0x5e5e22(0x41d)](){const _0x746d30=_0x5e5e22;this[_0x746d30(0x42a)][_0x746d30(0x30a)](this[_0x746d30(0x342)]);}['_onConflict'](_0x4391aa){const _0x2933b7=_0x5e5e22;return this[_0x2933b7(0x4c0)](),this[_0x2933b7(0x3af)][_0x2933b7(0x467)](_0x2d8e7b,this[_0x2933b7(0x3bc)],this[_0x2933b7(0x320)],null,this[_0x2933b7(0x1fc)],this[_0x2933b7(0x42a)],_0x4391aa);}['_resendWithTimeout'](_0x56c2f5,_0xd3ad0c){const _0x5767c1=_0x5e5e22;var _0x5e4de6;_0x56c2f5===((_0x5e4de6=this[_0x5767c1(0x342)])==null?void 0x0:_0x5e4de6['reqId'])&&(this[_0x5767c1(0x41d)](),this[_0x5767c1(0x20a)]=_0xd3ad0c===0x0?0x3e8:Math[_0x5767c1(0x20e)](_0xd3ad0c*0x2,_0x18dc3c),this[_0x5767c1(0x398)]+=this[_0x5767c1(0x20a)]);}[_0x5e5e22(0x4c0)](){const _0x2c3dd6=_0x5e5e22;var _0x16a773;(_0x16a773=this[_0x2c3dd6(0x4fb)])==null||_0x16a773[_0x2c3dd6(0x2d3)](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x2aa7cb=_0x354c96=_0x28d1a4([_0x26ba80(0x6,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x271)])),_0x26ba80(0x7,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2b4fec[_0x5e5e22(0x414)])),_0x26ba80(0x8,_0x1f27ed[_0x5e5e22(0x2ac)]),_0x26ba80(0x9,_0x1f27ed['ILogService']),_0x26ba80(0xa,_0x2b4fec[_0x5e5e22(0x2f7)]),_0x26ba80(0xb,_0x1f27ed['IUndoRedoService']),_0x26ba80(0xc,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x33d8de))],_0x2aa7cb);let _0x2d8e7b=class extends _0x280124{constructor(_0x4f2c01,_0x562e34,_0x41f88d,_0x3117b5,_0x37e9dd,_0x35e825=!0x1,_0x31259f,_0x384f67,_0x31cc31,_0x24d850,_0x1dd836,_0x2ed07a,_0x10eeb4){const _0x5c7586=_0x5e5e22;super(_0x4f2c01,_0x562e34,_0x41f88d,_0x3117b5,_0x37e9dd,_0x384f67,_0x31cc31,_0x24d850,_0x10eeb4),this[_0x5c7586(0x428)]=_0x35e825,this[_0x5c7586(0x28b)]=_0x31259f,this[_0x5c7586(0x2b5)]=_0x1dd836,this[_0x5c7586(0x205)]=_0x2ed07a,this[_0x5c7586(0x335)]=_0x10eeb4,_0x5886a9(this,_0x5c7586(0x47f),_0x5c7586(0x3ff)),this[_0x5c7586(0x3f8)](),this['_clearLocalCache'](),this[_0x5c7586(0x3ba)]();}[_0x5e5e22(0x4f3)](){return this;}[_0x5e5e22(0x4f4)](){return this;}[_0x5e5e22(0x37b)](){return this;}[_0x5e5e22(0x31a)](){return this;}['onRemoteRetry'](){return this;}[_0x5e5e22(0x3b0)](){return this;}[_0x5e5e22(0x3f4)](){return this;}[_0x5e5e22(0x41d)](){const _0x5e152d=_0x5e5e22;throw Error(_0x5e152d(0x23b));}[_0x5e5e22(0x478)](){const _0x3f16a3=_0x5e5e22;var _0x427c15;(_0x427c15=this['_localCacheService'])==null||_0x427c15[_0x3f16a3(0x4e5)](this['unitID'],this[_0x3f16a3(0x320)],null,[]);}[_0x5e5e22(0x3f8)](){const _0xb85299=_0x5e5e22;this[_0xb85299(0x428)]?this[_0xb85299(0x205)][_0xb85299(0x2a0)]({'id':_0xb85299(0x413)}):this['_collaborationUIEventService'][_0xb85299(0x2a0)]({'id':_0xb85299(0x4b0)});}[_0x5e5e22(0x3ba)](){const _0x55da0b=_0x5e5e22;this[_0x55da0b(0x28b)][_0x55da0b(0x379)](new _0x47a016['WorkbookEditablePermission'](this[_0x55da0b(0x3bc)])['id'],!0x1);}};_0x2d8e7b=_0x28d1a4([_0x26ba80(0x6,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x46d)])),_0x26ba80(0x7,_0x1f27ed[_0x5e5e22(0x2ac)]),_0x26ba80(0x8,_0x1f27ed['IUndoRedoService']),_0x26ba80(0x9,(0x0,_0x1f27ed['Inject'])(_0x2b4fec[_0x5e5e22(0x414)])),_0x26ba80(0xa,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x2bc)])),_0x26ba80(0xb,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2af8d7)),_0x26ba80(0xc,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x33d8de))],_0x2d8e7b);let _0x73123=class extends _0x280124{constructor(_0x53bdab,_0x2e2718,_0x537a12,_0x233a35,_0x1a66ca,_0x4dcb85,_0x5cb38d,_0x175396,_0x1389d4,_0x805c32){const _0x3c484f=_0x5e5e22;super(_0x53bdab,_0x2e2718,_0x537a12,_0x233a35,_0x1a66ca,_0x175396,_0x1389d4,_0x5cb38d,_0x805c32),this[_0x3c484f(0x3af)]=_0x4dcb85,_0x5886a9(this,_0x3c484f(0x47f),'offline');}[_0x5e5e22(0x4f3)](_0x3ba07b){const _0x285d92=_0x5e5e22;return this[_0x285d92(0x1fc)][_0x285d92(0x2e4)](_0x3ba07b),this[_0x285d92(0x284)](),this;}[_0x5e5e22(0x4f4)](_0x5b10ea){const _0x383aeb=_0x5e5e22;throw Error(_0x383aeb(0x341));}[_0x5e5e22(0x37b)](){const _0x301af3=_0x5e5e22;throw Error(_0x301af3(0x417));}[_0x5e5e22(0x31a)](){const _0x21baa0=_0x5e5e22;throw Error(_0x21baa0(0x276));}[_0x5e5e22(0x4e3)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){const _0x519972=_0x5e5e22;let {_injector:_0x30a982,_pendingMutations:_0x444e48,_awaitingChangeset:_0x2c506d,unitID:_0x99cbac,_handler:_0x4b8a5c,type:_0x4ccafe}=this,_0x4d3530=_0x4de551(_0x30a982,_0x99cbac,_0x4ccafe,_0x2c506d,_0x444e48,_0x4b8a5c);return _0x4d3530 instanceof _0x552ece?_0x4d3530['_schedule']():(_0x4d3530 instanceof _0x2aa7cb||_0x4d3530 instanceof _0x41bca9)&&_0x4d3530[_0x519972(0x41d)](),_0x4d3530;}[_0x5e5e22(0x41d)](){const _0x59f175=_0x5e5e22;throw Error(_0x59f175(0x2c0));}};_0x73123=_0x28d1a4([_0x26ba80(0x5,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x271)])),_0x26ba80(0x6,(0x0,_0x1f27ed['Inject'])(_0x2b4fec[_0x5e5e22(0x414)])),_0x26ba80(0x7,_0x1f27ed['ICommandService']),_0x26ba80(0x8,_0x1f27ed[_0x5e5e22(0x325)]),_0x26ba80(0x9,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x33d8de))],_0x73123);let _0x272441=class extends _0x280124{constructor(_0x319f2e,_0x1e9ed6,_0x506d25,_0x5cd987,_0x5c1e5e,_0x27a757,_0x307091,_0x3e0085,_0x408afd,_0x182d5e,_0x5e342a,_0x156cf2,_0x2c4c24,_0x1f3d21){const _0x142a7e=_0x5e5e22;super(_0x319f2e,_0x1e9ed6,_0x506d25,_0x5cd987,_0x307091,_0x5e342a,_0x156cf2,_0x408afd,_0x1f3d21),this[_0x142a7e(0x3de)]=_0x5c1e5e,this[_0x142a7e(0x4df)]=_0x27a757,this[_0x142a7e(0x3af)]=_0x3e0085,this[_0x142a7e(0x2de)]=_0x182d5e,this['_transformService']=_0x2c4c24,this[_0x142a7e(0x335)]=_0x1f3d21,_0x5886a9(this,_0x142a7e(0x47f),_0x142a7e(0x2cd));}[_0x5e5e22(0x35a)](_0x52ead5){const _0x23ea43=_0x5e5e22;try{if(this[_0x23ea43(0x418)](_0x52ead5)[_0x23ea43(0x382)])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this['_handleRemoteChangesets']([...this['_queuedRemoteChangesets']][_0x23ea43(0x4b2)]((_0xa65301,_0x32df84)=>_0xa65301[_0x23ea43(0x4fd)]-_0x32df84[_0x23ea43(0x4fd)]))[_0x23ea43(0x382)])return this[_0x23ea43(0x4df)]=[],this[_0x23ea43(0x284)](),this[_0x23ea43(0x42a)][_0x23ea43(0x21f)]({'from':this[_0x23ea43(0x465)](),'to':0x0}),this;let _0x130291=this[_0x23ea43(0x342)],_0x5e928b=this[_0x23ea43(0x1fc)],_0x5ddfdf;if(_0x130291&&_0x5e928b[_0x23ea43(0x242)]!==0x0)_0x5ddfdf=this['_injector'][_0x23ea43(0x467)](_0x2aa7cb,this[_0x23ea43(0x3bc)],this['type'],_0x130291,_0x5e928b,this[_0x23ea43(0x42a)],void 0x0);else{if(_0x130291&&_0x5e928b[_0x23ea43(0x242)]===0x0)_0x130291[_0x23ea43(0x367)]=this['_getCurrentRevision'](),_0x5ddfdf=this[_0x23ea43(0x3af)]['createInstance'](_0x41bca9,this['unitID'],this[_0x23ea43(0x320)],_0x130291,this[_0x23ea43(0x42a)]);else{if(_0x5e928b[_0x23ea43(0x242)]!==0x0){let _0x15cfc1=this[_0x23ea43(0x3af)][_0x23ea43(0x467)](_0x552ece,this[_0x23ea43(0x3bc)],this[_0x23ea43(0x320)],_0x5e928b,this[_0x23ea43(0x42a)]);_0x15cfc1['_schedule'](),_0x5ddfdf=_0x15cfc1;}else _0x5ddfdf=this['_injector'][_0x23ea43(0x467)](_0x165a95,this[_0x23ea43(0x3bc)],this['type'],this[_0x23ea43(0x42a)]);}}return _0x5ddfdf[_0x23ea43(0x284)](),_0x5ddfdf;}catch(_0x24fd46){return this[_0x23ea43(0x2de)]['error']('[FetchMissState]',_0x23ea43(0x312),_0x24fd46),this['_injector'][_0x23ea43(0x467)](_0x2d8e7b,this['unitID'],this[_0x23ea43(0x320)],this[_0x23ea43(0x342)],this['_pendingMutations'],this[_0x23ea43(0x42a)],!0x1);}}[_0x5e5e22(0x418)](_0x59f7de){const _0x83755c=_0x5e5e22;this[_0x83755c(0x4aa)]();for(let _0x4e1d55=0x0;_0x4e1d55<_0x59f7de['length'];_0x4e1d55++){let _0x4426a0=_0x59f7de[_0x4e1d55],_0x528509=this['_getCurrentRevision']();if(!(_0x4426a0[_0x83755c(0x4fd)]<=_0x528509)){if(_0x4426a0['revision']>_0x528509+0x1)return{'missingChangesets':!0x0};if(this[_0x83755c(0x204)](_0x4426a0)){this[_0x83755c(0x327)]();continue;}this[_0x83755c(0x2ef)](_0x4426a0),this[_0x83755c(0x4aa)]();}}return{'missingChangesets':!0x1};}[_0x5e5e22(0x2ef)](_0x3cae8c){const _0x35bce2=_0x5e5e22;let _0x574d6a=_0x3cae8c,_0x31100a=this[_0x35bce2(0x342)];if(_0x31100a){let _0x58dbcc=this[_0x35bce2(0x344)][_0x35bce2(0x4ba)]([_0x3cae8c],[_0x31100a],!0x1);if(!(0x0,_0x2b4fec[_0x35bce2(0x383)])(_0x58dbcc))throw _0x58dbcc['error'];_0x574d6a=_0x58dbcc[_0x35bce2(0x246)][0x0],_0x31100a=_0x58dbcc['c2Prime'][0x0];}let _0x649d58=this['_pendingMutations'];if(_0x649d58[_0x35bce2(0x242)]){let _0xbde29=this[_0x35bce2(0x344)][_0x35bce2(0x1f3)](_0x574d6a,_0x649d58);if(!(0x0,_0x2b4fec[_0x35bce2(0x2c8)])(_0xbde29))throw _0xbde29['error'];_0x574d6a=_0xbde29['c1Prime'],_0x649d58=_0xbde29[_0x35bce2(0x22d)];}this['_executeRemoteChangeset'](_0x574d6a),_0x31100a&&(_0x31100a['baseRev']=this[_0x35bce2(0x465)]()),this[_0x35bce2(0x342)]=_0x31100a,this[_0x35bce2(0x1fc)]=_0x649d58;}['_acknowledgeAwaitingIfReady'](){const _0x2403fb=_0x5e5e22;if(!this[_0x2403fb(0x342)]||this[_0x2403fb(0x3de)]==null)return;let _0x17727f=this[_0x2403fb(0x465)]();if(this[_0x2403fb(0x3de)]<=_0x17727f)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this[_0x2403fb(0x3de)]+'.');this[_0x2403fb(0x3de)]===_0x17727f+0x1&&this[_0x2403fb(0x327)]();}[_0x5e5e22(0x327)](){const _0x474047=_0x5e5e22;this['_incrementRevisionNumber'](),this[_0x474047(0x342)]=null,this['_acknowledgedAwaitingRevision']=null;}['_isEchoedAwaitingChangeset'](_0x1f551a){const _0x5da56a=_0x5e5e22;let _0x371c87=this['_awaitingChangeset'];return!_0x371c87||!_0x371c87[_0x5da56a(0x420)]||_0x371c87[_0x5da56a(0x50a)]===null||_0x371c87['reqId']===void 0x0?!0x1:_0x1f551a[_0x5da56a(0x3bc)]===_0x371c87[_0x5da56a(0x3bc)]&&_0x1f551a[_0x5da56a(0x420)]===_0x371c87[_0x5da56a(0x420)]&&_0x1f551a['reqId']===_0x371c87[_0x5da56a(0x50a)];}[_0x5e5e22(0x41d)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x5e5e22(0x4f3)](_0x238851){const _0x363317=_0x5e5e22;return this['_pendingMutations'][_0x363317(0x2e4)](_0x238851),this;}['onRemoteChangeset'](_0x43e143){const _0xad30c0=_0x5e5e22;return this[_0xad30c0(0x4df)][_0xad30c0(0x2e4)](_0x43e143),this;}[_0x5e5e22(0x37b)](_0x4a0ff4){const _0x24752c=_0x5e5e22;if(this[_0x24752c(0x342)]){let _0x16836d=this[_0x24752c(0x465)]();return _0x4a0ff4[_0x24752c(0x4fd)]<=_0x16836d||(_0x16836d+0x1===_0x4a0ff4[_0x24752c(0x4fd)]?(this[_0x24752c(0x450)](),this['_awaitingChangeset']=null,this[_0x24752c(0x3de)]=null):this[_0x24752c(0x3de)]=_0x4a0ff4['revision']),this;}if(_0x4a0ff4[_0x24752c(0x4fd)]<=this[_0x24752c(0x465)]())return this;throw Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x5e5e22(0x31a)](_0x1713af){const _0x4e068d=_0x5e5e22;return this[_0x4e068d(0x3b7)](!!(_0x1713af!=null&&_0x1713af[_0x4e068d(0x43e)]));}[_0x5e5e22(0x4e3)](){return this;}[_0x5e5e22(0x3b0)](){const _0x423ef2=_0x5e5e22;return this['_injector'][_0x423ef2(0x467)](_0x73123,this[_0x423ef2(0x3bc)],this[_0x423ef2(0x320)],this['_awaitingChangeset'],this[_0x423ef2(0x1fc)],this['_handler']);}[_0x5e5e22(0x3f4)](){return this;}[_0x5e5e22(0x3b7)](_0x1fa469){const _0x33b3ee=_0x5e5e22;return this[_0x33b3ee(0x3af)][_0x33b3ee(0x467)](_0x2d8e7b,this['unitID'],this[_0x33b3ee(0x320)],this[_0x33b3ee(0x342)],this[_0x33b3ee(0x1fc)],this[_0x33b3ee(0x42a)],_0x1fa469);}};_0x272441=_0x28d1a4([_0x26ba80(0x7,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x271)])),_0x26ba80(0x8,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2b4fec['RevisionService'])),_0x26ba80(0x9,_0x1f27ed[_0x5e5e22(0x304)]),_0x26ba80(0xa,_0x1f27ed[_0x5e5e22(0x2ac)]),_0x26ba80(0xb,_0x1f27ed['IUndoRedoService']),_0x26ba80(0xc,_0x2b4fec['ITransformService']),_0x26ba80(0xd,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x33d8de))],_0x272441);function _0x4de551(_0x2a299d,_0xe373ec,_0x167462,_0x5a1697,_0x3659c0,_0x440b85){const _0x520879=_0x5e5e22;return _0x5a1697&&_0x3659c0[_0x520879(0x242)]?_0x2a299d['createInstance'](_0x2aa7cb,_0xe373ec,_0x167462,_0x5a1697,_0x3659c0,_0x440b85,void 0x0):_0x5a1697?_0x2a299d[_0x520879(0x467)](_0x41bca9,_0xe373ec,_0x167462,_0x5a1697,_0x440b85):_0x3659c0[_0x520879(0x242)]?_0x2a299d['createInstance'](_0x552ece,_0xe373ec,_0x167462,_0x3659c0,_0x440b85):_0x2a299d[_0x520879(0x467)](_0x165a95,_0xe373ec,_0x167462,_0x440b85);}let _0xe7bc8f=class extends _0x1f27ed[_0x5e5e22(0x38a)]{get[_0x5e5e22(0x2c7)](){const _0x37c9e=_0x5e5e22;return this[_0x37c9e(0x415)];}constructor(_0x46f544,_0x212e7a,_0x152a54,_0x7989cd,_0x463d59,_0x4fcadb,_0x287188,_0x5902d4,_0x332a92,_0x41e891,_0x49b95d,_0x3679e2,_0x13716c,_0x22dc7e){const _0x143a1f=_0x5e5e22;super(),this[_0x143a1f(0x3bc)]=_0x46f544,this[_0x143a1f(0x484)]=_0x212e7a,this[_0x143a1f(0x262)]=_0x152a54,this[_0x143a1f(0x3af)]=_0x7989cd,this[_0x143a1f(0x263)]=_0x463d59,this[_0x143a1f(0x2b5)]=_0x4fcadb,this['_revisionService']=_0x287188,this[_0x143a1f(0x31c)]=_0x5902d4,this[_0x143a1f(0x45b)]=_0x332a92,this[_0x143a1f(0x2de)]=_0x41e891,this[_0x143a1f(0x21d)]=_0x49b95d,this['_permissionService']=_0x3679e2,this['_singleActiveUnitService']=_0x13716c,this[_0x143a1f(0x321)]=_0x22dc7e,_0x5886a9(this,_0x143a1f(0x4da),new _0xd93cf[(_0x143a1f(0x48d))](null)),_0x5886a9(this,_0x143a1f(0x340),this['_state$']['asObservable']()),_0x5886a9(this,_0x143a1f(0x415),void 0x0),_0x5886a9(this,_0x143a1f(0x319),!0x1),_0x5886a9(this,_0x143a1f(0x1fe),''),_0x5886a9(this,_0x143a1f(0x260),0x0),_0x5886a9(this,'status$',this[_0x143a1f(0x340)][_0x143a1f(0x3e2)]((0x0,_0xd93cf[_0x143a1f(0x349)])(_0x5c4cf8=>_0x5c4cf8?_0x5c4cf8['status']:'offline'),(0x0,_0xd93cf[_0x143a1f(0x360)])(0x1))),_0x5886a9(this,_0x143a1f(0x28c),!0x1),_0x5886a9(this,_0x143a1f(0x31f),[]);}async[_0x5e5e22(0x247)](){const _0xd9d6f8=_0x5e5e22;if(this[_0xd9d6f8(0x2c7)])throw Error(_0xd9d6f8(0x3f9));await this[_0xd9d6f8(0x4d2)]();}[_0x5e5e22(0x2f2)](){const _0x412666=_0x5e5e22;return this[_0x412666(0x319)]=!0x0,(0x0,_0x1f27ed['toDisposable'])(()=>{const _0x5e4029=_0x412666;this[_0x5e4029(0x319)]=!0x1,this[_0x5e4029(0x4fe)]();});}[_0x5e5e22(0x269)](_0x40ecd5){const _0x1dd826=_0x5e5e22;this[_0x1dd826(0x4c9)](_0x40ecd5);}[_0x5e5e22(0x46f)](_0x5cb4d1){const _0x52bf3a=_0x5e5e22;this[_0x52bf3a(0x415)]=_0x5cb4d1,this[_0x52bf3a(0x4da)][_0x52bf3a(0x446)](_0x5cb4d1);}async[_0x5e5e22(0x4d2)](){const _0x12a13b=_0x5e5e22;if(this[_0x12a13b(0x46f)](await this[_0x12a13b(0x2f0)]()),this['_singleActiveUnitService']){var _0xc1cb6a;(_0xc1cb6a=this['_singleActiveUnitService'])==null||_0xc1cb6a[_0x12a13b(0x3ea)](this['unitID']),this['disposeWithMe'](this['_singleActiveUnitService'][_0x12a13b(0x38b)](this[_0x12a13b(0x3bc)])[_0x12a13b(0x3c1)](_0x11e76d=>{const _0x16d6d0=_0x12a13b;this[_0x16d6d0(0x2de)][_0x16d6d0(0x2fc)](_0x16d6d0(0x493),_0x16d6d0(0x466),_0x11e76d),_0x11e76d===0x1?(this['_eventService'][_0x16d6d0(0x2a0)]({'id':'OTHER_CLIENT_EDITING'}),this[_0x16d6d0(0x28b)][_0x16d6d0(0x379)](new _0x47a016[(_0x16d6d0(0x406))](this[_0x16d6d0(0x3bc)])['id'],!0x1),this[_0x16d6d0(0x28b)]['setShowComponents'](!0x1)):(this[_0x16d6d0(0x28b)][_0x16d6d0(0x379)](new _0x47a016['WorkbookEditablePermission'](this[_0x16d6d0(0x3bc)])['id'],!0x0),this[_0x16d6d0(0x28b)]['setShowComponents'](!0x0));}));}let _0x45cdc7=!0x1;return this['disposeWithMe'](this[_0x12a13b(0x484)][_0x12a13b(0x297)][_0x12a13b(0x3c1)](_0x537ff1=>{const _0x3a542=_0x12a13b;_0x537ff1===0x3?this['_toggleOnline'](_0x45cdc7):_0x537ff1===0x2&&(_0x45cdc7=!0x0,this[_0x3a542(0x43b)]());})),this[_0x12a13b(0x3f6)](this[_0x12a13b(0x484)][_0x12a13b(0x302)][_0x12a13b(0x3c1)](_0xeb05c9=>{const _0x276532=_0x12a13b;try{switch(_0xeb05c9[_0x276532(0x46c)]){case _0x2b4fec[_0x276532(0x3e6)][_0x276532(0x35e)]:this['_onRemoteChangeset']((0x0,_0x2b4fec['parseProtocolChangeset'])(_0xeb05c9[_0x276532(0x4c1)]));break;case _0x2b4fec[_0x276532(0x3e6)][_0x276532(0x37c)]:this[_0x276532(0x2db)](_0xeb05c9[_0x276532(0x4c1)]);break;case _0x2b4fec[_0x276532(0x3e6)]['CHANGESET_REJ']:this[_0x276532(0x2da)]();break;case _0x2b4fec[_0x276532(0x3e6)][_0x276532(0x353)]:this['_onRemoteRetry'](_0xeb05c9[_0x276532(0x4c1)]);break;case _0x2b4fec[_0x276532(0x3e6)]['PSEUDO_FETCH_MISSING_RESULT']:this[_0x276532(0x2f9)](_0xeb05c9[_0x276532(0x4c1)]['changesets'][_0x276532(0x349)](_0x583381=>(0x0,_0x2b4fec[_0x276532(0x439)])(_0x583381)));break;case _0x2b4fec[_0x276532(0x3e6)][_0x276532(0x504)]:this[_0x276532(0x2da)]({'isPermissionRej':!0x0});break;case _0x2b4fec[_0x276532(0x3e6)][_0x276532(0x217)]:break;}}catch(_0x1c4ada){throw console[_0x276532(0x4bf)](_0x276532(0x2a1),_0x1c4ada),_0x1c4ada;}})),this[_0x12a13b(0x415)];}[_0x5e5e22(0x3e8)](){const _0x410fb0=_0x5e5e22;this[_0x410fb0(0x28c)]=!0x1;}[_0x5e5e22(0x32f)](){const _0x317eb1=_0x5e5e22;if(this['_transitionLocked'])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x317eb1(0x28c)]=!0x0;}[_0x5e5e22(0x4c9)](_0x2178cb){const _0x4c571c=_0x5e5e22;this['_lockTransition'](),this[_0x4c571c(0x46f)](this[_0x4c571c(0x415)][_0x4c571c(0x4f3)](_0x2178cb)),this[_0x4c571c(0x3e8)]();}['_onRemoteChangeset'](_0x57fe69){const _0x4ce80a=_0x5e5e22;if(!(_0x57fe69['revision']<=this['_revisionService']['getCurrentRevOfUnit'](this[_0x4ce80a(0x3bc)]))){if(this[_0x4ce80a(0x319)]){this[_0x4ce80a(0x31f)][_0x4ce80a(0x2e4)](_0x57fe69);return;}this['_applyRemoteChangeset'](_0x57fe69);}}[_0x5e5e22(0x4fe)](){const _0x5759a5=_0x5e5e22;this[_0x5759a5(0x31f)][_0x5759a5(0x3ad)](_0x58d854=>this[_0x5759a5(0x270)](_0x58d854)),this['_remoteChangesetQueue']=[];}[_0x5e5e22(0x270)](_0x492ca4){const _0x2790d4=_0x5e5e22;let _0x5ade3f=this[_0x2790d4(0x263)][_0x2790d4(0x30b)]['fetchThroughInterceptors'](this[_0x2790d4(0x263)][_0x2790d4(0x30b)][_0x2790d4(0x4d8)]()[_0x2790d4(0x2a6)])(_0x492ca4[_0x2790d4(0x3d6)],null)||_0x492ca4['mutations'],_0x3320d1={..._0x492ca4,'mutations':_0x5ade3f};this['_lockTransition'](),this[_0x2790d4(0x46f)](this[_0x2790d4(0x415)][_0x2790d4(0x4f4)](_0x3320d1)),this[_0x2790d4(0x3e8)]();}['_onRemoteACK'](_0x4664f7){const _0x2572f0=_0x5e5e22;this['_lockTransition'](),this[_0x2572f0(0x46f)](this[_0x2572f0(0x415)][_0x2572f0(0x37b)](_0x4664f7)),this[_0x2572f0(0x3e8)]();}[_0x5e5e22(0x2da)](_0x9af049){const _0x313039=_0x5e5e22;this[_0x313039(0x32f)](),this[_0x313039(0x46f)](this[_0x313039(0x415)][_0x313039(0x31a)](_0x9af049)),this[_0x313039(0x3e8)]();}[_0x5e5e22(0x44b)](_0x1938c2){const _0x3cc3cf=_0x5e5e22;this[_0x3cc3cf(0x32f)](),this[_0x3cc3cf(0x46f)](this[_0x3cc3cf(0x415)][_0x3cc3cf(0x4e3)](_0x1938c2)),this[_0x3cc3cf(0x3e8)]();}[_0x5e5e22(0x2f9)](_0x514cb9){const _0x41e0d3=_0x5e5e22;if(!(this[_0x41e0d3(0x415)]instanceof _0x272441))throw TypeError(_0x41e0d3(0x333));let _0xc60808=_0x514cb9['map'](_0x49ccd5=>{const _0x217e85=_0x41e0d3;let _0x169146=this[_0x217e85(0x263)]['interceptor'][_0x217e85(0x2cf)](this['_compressMutationService'][_0x217e85(0x30b)][_0x217e85(0x4d8)]()['COMPRESS_MUTATION_APPLY'])(_0x49ccd5[_0x217e85(0x3d6)],null)||_0x49ccd5[_0x217e85(0x3d6)];return{..._0x49ccd5,'mutations':_0x169146};});this[_0x41e0d3(0x32f)](),this[_0x41e0d3(0x46f)](this[_0x41e0d3(0x415)]['onMissedChangesetFetched'](_0xc60808)),this['_unlockTransition']();}[_0x5e5e22(0x43b)](){const _0x518a88=_0x5e5e22;this[_0x518a88(0x32f)](),this['_updateState'](this[_0x518a88(0x415)][_0x518a88(0x3b0)]()),this[_0x518a88(0x3e8)]();}['_toggleOnline'](_0xcb535b=!0x1){const _0x3128ae=_0x5e5e22;this['_lockTransition'](),this[_0x3128ae(0x46f)](this['_state'][_0x3128ae(0x3f4)]()),this[_0x3128ae(0x3e8)]();let _0x400a6a=this[_0x3128ae(0x415)];_0xcb535b&&_0x400a6a instanceof _0x165a95&&(this['_lockTransition'](),this['_updateState'](_0x400a6a[_0x3128ae(0x252)]()),this['_unlockTransition']());}async[_0x5e5e22(0x2f0)](){return new Promise(_0x5c1686=>{const _0x2ed0e2=_0x20b8;this[_0x2ed0e2(0x484)][_0x2ed0e2(0x297)][_0x2ed0e2(0x3e2)]((0x0,_0xd93cf['take'])(0x1))[_0x2ed0e2(0x3c1)](async _0x515fc6=>{_0x5c1686(await this['_createInitialStateImpl'](_0x515fc6===0x3));});});}[_0x5e5e22(0x437)](){const _0x308f47=_0x5e5e22;let _0x460c89=this[_0x308f47(0x3bc)];return{'onStateChange':(_0x1bdaec,_0x6f6d39)=>{const _0x825adf=_0x308f47;if(_0x1bdaec!==this['_state'])throw Error(_0x825adf(0x23a)+_0x1bdaec[_0x825adf(0x47f)]+_0x825adf(0x210)+_0x6f6d39[_0x825adf(0x47f)]+_0x825adf(0x296)+this['_state']['status']);this[_0x825adf(0x46f)](_0x6f6d39);},'onSendChangeset':_0x550a82=>{const _0x19d0cb=_0x308f47;_0x550a82[_0x19d0cb(0x420)]||(_0x550a82[_0x19d0cb(0x420)]=this[_0x19d0cb(0x1fe)],_0x550a82['reqId']=++this[_0x19d0cb(0x260)]);let _0x2cca15={'eventID':_0x2b4fec['CollaborationEvent'][_0x19d0cb(0x394)],'data':{'unitID':_0x550a82[_0x19d0cb(0x3bc)],'unitType':this['_type'],'changeset':_0x550a82,'memberID':this[_0x19d0cb(0x484)][_0x19d0cb(0x273)]()}};this['session']['send'](_0x2cca15,this[_0x19d0cb(0x3bc)]);},'onMissingChangesets':({from:_0x52e1c8,to:_0x5d6f4f})=>{const _0x137e19=_0x308f47;this[_0x137e19(0x2de)][_0x137e19(0x2fc)](_0x137e19(0x493),_0x137e19(0x48b)+_0x52e1c8+_0x137e19(0x3ef)+_0x5d6f4f);let _0x3df7cf={'eventID':_0x2b4fec['CollaborationEvent'][_0x137e19(0x496)],'data':{'unitID':_0x460c89,'unitType':this[_0x137e19(0x262)],'from':_0x52e1c8,'to':_0x5d6f4f}};this[_0x137e19(0x484)][_0x137e19(0x50d)](_0x3df7cf,this[_0x137e19(0x3bc)]);}};}async[_0x5e5e22(0x227)](_0x31de02){const _0x2d6009=_0x5e5e22;var _0x5e76fe,_0x1816b2,_0x208cf0;let _0x5a28ed=await((_0x5e76fe=this[_0x2d6009(0x321)])==null?void 0x0:_0x5e76fe['loadOfflineData'](this[_0x2d6009(0x3bc)])),_0xac5db4=(_0x1816b2=_0x5a28ed==null?void 0x0:_0x5a28ed[_0x2d6009(0x3d6)])==null?[]:_0x1816b2,_0x19c03d=(_0x208cf0=_0x5a28ed==null?void 0x0:_0x5a28ed[_0x2d6009(0x3d3)])==null?null:_0x208cf0,_0x2d96a1=!!(_0x19c03d!=null&&_0x19c03d['sid'])&&!!(_0x19c03d!=null&&_0x19c03d[_0x2d6009(0x50a)]);this[_0x2d6009(0x1fe)]=_0x2d96a1?_0x19c03d['sid']:(0x0,_0x2b4fec[_0x2d6009(0x433)])(),this[_0x2d6009(0x260)]=_0x2d96a1?_0x19c03d[_0x2d6009(0x50a)]:0x0;let _0x5831ff=this[_0x2d6009(0x3bc)];try{this[_0x2d6009(0x1f9)](_0x19c03d,_0xac5db4);}catch(_0x559c34){this['_logService'][_0x2d6009(0x4bf)](_0x559c34);}let _0xb4ac73=this['_createHandler']();if(_0x31de02){let _0x2f139f=_0x4de551(this[_0x2d6009(0x3af)],_0x5831ff,this[_0x2d6009(0x262)],_0x19c03d,_0xac5db4,_0xb4ac73);return _0x2f139f instanceof _0x552ece?_0x2f139f[_0x2d6009(0x28a)]():(_0x2f139f instanceof _0x2aa7cb||_0x2f139f instanceof _0x41bca9)&&_0x2f139f['resend'](),_0x2f139f;}return this[_0x2d6009(0x3af)][_0x2d6009(0x467)](_0x73123,_0x5831ff,this[_0x2d6009(0x262)],_0x19c03d,_0xac5db4,_0xb4ac73);}[_0x5e5e22(0x1f9)](_0xe8613,_0xbcb89d){const _0x31982f=_0x5e5e22;var _0x22cc7b,_0x33c753;let _0x1d52fc=this[_0x31982f(0x263)][_0x31982f(0x30b)][_0x31982f(0x2cf)](this['_compressMutationService'][_0x31982f(0x30b)][_0x31982f(0x4d8)]()[_0x31982f(0x2a6)]);(_0x22cc7b=_0x1d52fc((_0xe8613==null?void 0x0:_0xe8613[_0x31982f(0x3d6)])||[],null))==null||_0x22cc7b[_0x31982f(0x3ad)](_0x30bda6=>this['_commandService'][_0x31982f(0x397)](_0x30bda6['id'],_0x30bda6[_0x31982f(0x2ed)])),(_0x33c753=_0x1d52fc(_0xbcb89d||[],null))==null||_0x33c753[_0x31982f(0x3ad)](_0x440cf3=>this[_0x31982f(0x21d)]['executeCommand'](_0x440cf3['id'],_0x440cf3[_0x31982f(0x2ed)]));}};_0xe7bc8f=_0x28d1a4([_0x26ba80(0x3,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x271)])),_0x26ba80(0x4,(0x0,_0x1f27ed['Inject'])(_0x2b4fec[_0x5e5e22(0x314)])),_0x26ba80(0x5,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x2bc)])),_0x26ba80(0x6,(0x0,_0x1f27ed['Inject'])(_0x2b4fec[_0x5e5e22(0x414)])),_0x26ba80(0x7,(0x0,_0x1f27ed['Inject'])(_0x2af8d7)),_0x26ba80(0x8,_0x1f27ed[_0x5e5e22(0x50c)]),_0x26ba80(0x9,_0x1f27ed[_0x5e5e22(0x304)]),_0x26ba80(0xa,_0x1f27ed[_0x5e5e22(0x2ac)]),_0x26ba80(0xb,_0x1f27ed[_0x5e5e22(0x46d)]),_0x26ba80(0xc,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0xf1640f)),_0x26ba80(0xd,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x33d8de))],_0xe7bc8f);let _0x6949ae=class extends _0xe7bc8f{constructor(_0x518281,_0x16700a,_0x449ee3,_0x200597,_0x495b75,_0x2b4b2a,_0x1aa232,_0x3da9e3,_0x1fbe7e,_0x3c466f,_0x35f30a,_0x2848dc,_0x306106,_0x30c362){const _0x2daf1b=_0x5e5e22;super(_0x518281,_0x449ee3,_0x16700a,_0x200597,_0x495b75,_0x2b4b2a,_0x1aa232,_0x3da9e3,_0x1fbe7e,_0x3c466f,_0x35f30a,_0x2848dc,_0x306106,_0x30c362),this[_0x2daf1b(0x3bc)]=_0x518281,this[_0x2daf1b(0x320)]=_0x16700a,_0x5886a9(this,'_handlerCallback',null);}[_0x5e5e22(0x512)](_0x45a9ae){const _0x3ae752=_0x5e5e22;this[_0x3ae752(0x4de)]=_0x45a9ae;}[_0x5e5e22(0x345)](){const _0x4bfa47=_0x5e5e22;this[_0x4bfa47(0x4de)]=null,super[_0x4bfa47(0x345)]();}['_createHandler'](){const _0x4039ad=_0x5e5e22;let _0x250011=super[_0x4039ad(0x437)]();return _0x250011[_0x4039ad(0x281)]=_0x1c511c=>{const _0x42ebc2=_0x4039ad;var _0xbd65e9,_0x57b849;return(_0xbd65e9=this[_0x42ebc2(0x4de)])==null||(_0x57b849=_0xbd65e9[_0x42ebc2(0x281)])==null?void 0x0:_0x57b849['call'](_0xbd65e9,_0x1c511c);},_0x250011['onTransformState']=_0x2fb867=>{const _0x1ee544=_0x4039ad;var _0x106a4d,_0x5633a4;return(_0x106a4d=this[_0x1ee544(0x4de)])==null||(_0x5633a4=_0x106a4d['onTransformState'])==null?void 0x0:_0x5633a4['call'](_0x106a4d,_0x2fb867);},_0x250011['onTransformSelections']=_0xec46d4=>{const _0x3e5822=_0x4039ad;var _0x118af4,_0x37e644;return(_0x118af4=this[_0x3e5822(0x4de)])==null||(_0x37e644=_0x118af4['onTransformSelections'])==null?void 0x0:_0x37e644[_0x3e5822(0x514)](_0x118af4,_0xec46d4);},_0x250011[_0x4039ad(0x348)]=_0x251aa3=>{const _0x4cbf92=_0x4039ad;var _0x2b0d7d,_0x5c4e9c;return(_0x2b0d7d=this[_0x4cbf92(0x4de)])==null||(_0x5c4e9c=_0x2b0d7d[_0x4cbf92(0x348)])==null?void 0x0:_0x5c4e9c[_0x4cbf92(0x514)](_0x2b0d7d,_0x251aa3);},_0x250011[_0x4039ad(0x43a)]=_0x297b9d=>{const _0x4319ed=_0x4039ad;var _0x395079,_0x1bd325,_0x7965a6;if(!((_0x395079=this[_0x4319ed(0x4de)])!=null&&_0x395079[_0x4319ed(0x43a)]))throw Error('onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.');return(_0x1bd325=this[_0x4319ed(0x4de)])==null||(_0x7965a6=_0x1bd325[_0x4319ed(0x43a)])==null?void 0x0:_0x7965a6['call'](_0x1bd325,_0x297b9d);},_0x250011['onTransformRemoteChangesetByStateCache']=_0x3ad315=>{const _0x4d4ef0=_0x4039ad;var _0x1faf32,_0x50a324,_0x26d6a5;if(!((_0x1faf32=this[_0x4d4ef0(0x4de)])!=null&&_0x1faf32[_0x4d4ef0(0x1f4)]))throw Error(_0x4d4ef0(0x50b));return(_0x50a324=this[_0x4d4ef0(0x4de)])==null||(_0x26d6a5=_0x50a324[_0x4d4ef0(0x1f4)])==null?void 0x0:_0x26d6a5['call'](_0x50a324,_0x3ad315);},_0x250011;}async[_0x5e5e22(0x4d2)](){const _0x44a6c7=_0x5e5e22;let _0x16adf9=await super[_0x44a6c7(0x4d2)]();return this[_0x44a6c7(0x3f6)](this[_0x44a6c7(0x21d)]['onMutationExecutedForCollab']((_0x5e010b,_0x4a68be)=>{const _0x3b13e3=_0x44a6c7;if(_0x5e010b[_0x3b13e3(0x320)]!==_0x1f27ed[_0x3b13e3(0x35d)][_0x3b13e3(0x25d)]||_0x4a68be!=null&&_0x4a68be[_0x3b13e3(0x395)]||_0x4a68be!=null&&_0x4a68be[_0x3b13e3(0x311)]||_0x5e010b['id']===_0x3b0f13['RichTextEditingMutation']['id'])return;let _0x11102a=_0x5e010b['params'];if((_0x11102a==null?void 0x0:_0x11102a[_0x3b13e3(0x48f)])!==this['unitID'])return;let _0x3df307=_0x5e010b,_0x4070d4=this[_0x3b13e3(0x263)][_0x3b13e3(0x30b)][_0x3b13e3(0x2cf)](this[_0x3b13e3(0x263)][_0x3b13e3(0x30b)][_0x3b13e3(0x4d8)]()[_0x3b13e3(0x489)])([_0x3df307],this[_0x3b13e3(0x45b)])||[_0x3df307];this['_onLocalMutation'](_0x4070d4[0x0]);})),_0x16adf9;}};_0x6949ae=_0x28d1a4([_0x26ba80(0x3,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed['Injector'])),_0x26ba80(0x4,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2b4fec[_0x5e5e22(0x314)])),_0x26ba80(0x5,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x2bc)])),_0x26ba80(0x6,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2b4fec[_0x5e5e22(0x414)])),_0x26ba80(0x7,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2af8d7)),_0x26ba80(0x8,_0x1f27ed[_0x5e5e22(0x50c)]),_0x26ba80(0x9,_0x1f27ed[_0x5e5e22(0x304)]),_0x26ba80(0xa,_0x1f27ed[_0x5e5e22(0x2ac)]),_0x26ba80(0xb,_0x1f27ed['IPermissionService']),_0x26ba80(0xc,(0x0,_0x1f27ed['Optional'])(_0xf1640f)),_0x26ba80(0xd,(0x0,_0x1f27ed['Optional'])(_0x33d8de))],_0x6949ae);let _0x30b4f8=class extends _0xe7bc8f{constructor(_0x58a3db,_0x37ede6,_0x3ca146,_0xf41710,_0x278c93,_0x554b2e,_0x49d890,_0x5d6bd8,_0x1a281d,_0x28f508,_0x420fec,_0x55bc63,_0x37f375,_0x1f7fb8,_0x305d52){const _0x47bcce=_0x5e5e22;super(_0x58a3db,_0x3ca146,_0x37ede6,_0xf41710,_0x278c93,_0x554b2e,_0x49d890,_0x1a281d,_0x28f508,_0x420fec,_0x55bc63,_0x37f375,_0x1f7fb8,_0x305d52),this[_0x47bcce(0x3bc)]=_0x58a3db,this[_0x47bcce(0x320)]=_0x37ede6,this[_0x47bcce(0x4c3)]=_0x5d6bd8;}[_0x5e5e22(0x437)](){const _0x554f88=_0x5e5e22;let _0x211973=super['_createHandler']();return _0x211973[_0x554f88(0x36e)]=_0x29ffdc=>this[_0x554f88(0x4c3)]['transformSelections'](_0x29ffdc),_0x211973;}async[_0x5e5e22(0x4d2)](){const _0x5bde42=_0x5e5e22;let _0xa4ec1c=await super[_0x5bde42(0x4d2)]();return this[_0x5bde42(0x3f6)](this[_0x5bde42(0x21d)]['onMutationExecutedForCollab']((_0x4d8538,_0x34751f)=>{const _0x157d3f=_0x5bde42;if(_0x4d8538[_0x157d3f(0x320)]!==_0x1f27ed['CommandType']['MUTATION']||_0x34751f!=null&&_0x34751f['fromCollab']||_0x34751f!=null&&_0x34751f['onlyLocal'])return;let _0x3a168e=_0x4d8538[_0x157d3f(0x2ed)];if((_0x3a168e==null?void 0x0:_0x3a168e[_0x157d3f(0x48f)])!==this[_0x157d3f(0x3bc)])return;let _0x5e8682=_0x4d8538,_0x4edabc=this[_0x157d3f(0x263)][_0x157d3f(0x30b)]['fetchThroughInterceptors'](this[_0x157d3f(0x263)][_0x157d3f(0x30b)][_0x157d3f(0x4d8)]()['COMPRESS_MUTATION_SEND'])([_0x5e8682],this['_univerInstanceService'])||[_0x5e8682];this['_onLocalMutation'](_0x4edabc[0x0]);})),_0xa4ec1c;}};_0x30b4f8=_0x28d1a4([_0x26ba80(0x3,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x271)])),_0x26ba80(0x4,(0x0,_0x1f27ed['Inject'])(_0x2b4fec[_0x5e5e22(0x314)])),_0x26ba80(0x5,(0x0,_0x1f27ed['Inject'])(_0x1f27ed[_0x5e5e22(0x2bc)])),_0x26ba80(0x6,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2b4fec[_0x5e5e22(0x414)])),_0x26ba80(0x7,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x3ede5e)),_0x26ba80(0x8,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2af8d7)),_0x26ba80(0x9,_0x1f27ed[_0x5e5e22(0x50c)]),_0x26ba80(0xa,_0x1f27ed[_0x5e5e22(0x304)]),_0x26ba80(0xb,_0x1f27ed[_0x5e5e22(0x2ac)]),_0x26ba80(0xc,_0x1f27ed[_0x5e5e22(0x46d)]),_0x26ba80(0xd,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0xf1640f)),_0x26ba80(0xe,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x33d8de))],_0x30b4f8);let _0x3aac02=(0x0,_0x1f27ed[_0x5e5e22(0x448)])('univer-pro.collaboration-client.network-condition.service');function _0xc94ca9(_0x30d63e){const _0x5817cc=_0x5e5e22;let _0x41f590=_0x30d63e[_0x5817cc(0x4c1)],_0x50f122=JSON['parse'](_0x41f590);switch(_0x50f122[_0x5817cc(0x34a)]){case _0x26034e[_0x5817cc(0x4ae)][_0x5817cc(0x351)]:case _0x26034e[_0x5817cc(0x4ae)]['HELLO']:{let _0x586c42=_0x50f122[_0x5817cc(0x483)];return{..._0x50f122,'data':_0x586c42,'cmd':_0x50f122[_0x5817cc(0x34a)]};}case _0x26034e[_0x5817cc(0x4ae)][_0x5817cc(0x505)]:{let _0x440737=_0x50f122[_0x5817cc(0x25b)];return{..._0x50f122,'data':_0x440737,'cmd':_0x50f122[_0x5817cc(0x34a)]};}case _0x26034e['CombCmd']['RECV']:{let _0x5a71c3=_0x50f122[_0x5817cc(0x396)];switch(_0x5a71c3[_0x5817cc(0x46c)]){case _0x2b4fec[_0x5817cc(0x3e6)][_0x5817cc(0x504)]:var _0x19c3c9;return{..._0x50f122,'data':{..._0x5a71c3,'data':(_0x19c3c9=_0x5a71c3[_0x5817cc(0x1fa)])==null?void 0x0:_0x19c3c9['cs']},'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec[_0x5817cc(0x3e6)][_0x5817cc(0x37c)]:var _0x86917a;return{..._0x50f122,'data':{..._0x5a71c3,'data':(_0x86917a=_0x5a71c3[_0x5817cc(0x26a)])==null?void 0x0:_0x86917a['cs']},'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec[_0x5817cc(0x3e6)]['NEW_CHANGESETS']:var _0x10767b;return{..._0x50f122,'data':{..._0x5a71c3,'data':(_0x10767b=_0x5a71c3[_0x5817cc(0x324)])==null?void 0x0:_0x10767b['cs']},'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec['CollaborationEvent'][_0x5817cc(0x377)]:var _0x20025b;return{..._0x50f122,'data':{..._0x5a71c3,'data':(_0x20025b=_0x5a71c3[_0x5817cc(0x206)])==null?void 0x0:_0x20025b['cs']},'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec['CollaborationEvent'][_0x5817cc(0x353)]:var _0x1fc8af;return{..._0x50f122,'data':{..._0x5a71c3,'data':(_0x1fc8af=_0x5a71c3[_0x5817cc(0x438)])==null?void 0x0:_0x1fc8af['cs']},'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec[_0x5817cc(0x3e6)][_0x5817cc(0x464)]:return{..._0x50f122,'data':{..._0x5a71c3,'data':_0x5a71c3[_0x5817cc(0x501)]},'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec['CollaborationEvent']['USERS_ENTER']:return{..._0x50f122,'data':{..._0x5a71c3,'data':_0x5a71c3[_0x5817cc(0x309)]},'cmd':_0x50f122['cmd']};case _0x2b4fec[_0x5817cc(0x3e6)][_0x5817cc(0x3fd)]:return{..._0x50f122,'data':{..._0x5a71c3,'data':_0x5a71c3[_0x5817cc(0x235)]},'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec['CollaborationEvent'][_0x5817cc(0x447)]:return{..._0x50f122,'data':{..._0x5a71c3,'data':_0x5a71c3[_0x5817cc(0x2af)]},'cmd':_0x50f122['cmd']};case _0x2b4fec[_0x5817cc(0x3e6)]['LIVESHARE_FETCH_OPERATIONS']:case _0x2b4fec[_0x5817cc(0x3e6)][_0x5817cc(0x37d)]:return{..._0x50f122,'data':{..._0x5a71c3,'data':_0x5a71c3[_0x5817cc(0x424)]},'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec[_0x5817cc(0x3e6)][_0x5817cc(0x486)]:return{..._0x50f122,'data':{..._0x5a71c3,'data':_0x5a71c3['liveShareNewHost']},'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec['CollaborationEvent'][_0x5817cc(0x4f7)]:return{..._0x50f122,'data':_0x5a71c3,'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec[_0x5817cc(0x3e6)][_0x5817cc(0x354)]:return{..._0x50f122,'data':{..._0x5a71c3,'data':_0x5a71c3[_0x5817cc(0x399)]},'cmd':_0x50f122['cmd']};case _0x2b4fec['CollaborationEvent'][_0x5817cc(0x249)]:return{..._0x50f122,'data':{..._0x5a71c3,'data':_0x5a71c3[_0x5817cc(0x202)]},'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec[_0x5817cc(0x3e6)][_0x5817cc(0x4c5)]:return{..._0x50f122,'data':{..._0x5a71c3,'data':_0x5a71c3[_0x5817cc(0x258)]},'cmd':_0x50f122['cmd']};case _0x2b4fec['CollaborationEvent'][_0x5817cc(0x217)]:return{..._0x50f122,'data':{..._0x5a71c3,'data':_0x5a71c3[_0x5817cc(0x3c7)]},'cmd':_0x50f122[_0x5817cc(0x34a)]};default:return _0x50f122;}}default:return _0x50f122;}}function _0x4e9c33(_0x125b52){const _0x8c4251=_0x5e5e22;switch(_0x125b52[_0x8c4251(0x34a)]){case _0x26034e[_0x8c4251(0x4ae)][_0x8c4251(0x351)]:case _0x26034e['CombCmd'][_0x8c4251(0x1fb)]:return JSON[_0x8c4251(0x298)]({'cmd':_0x125b52[_0x8c4251(0x34a)],'routeKey':_0x125b52[_0x8c4251(0x251)]});case _0x26034e[_0x8c4251(0x4ae)]['INGEST']:{let _0x10e0a7;switch(_0x125b52[_0x8c4251(0x4c1)][_0x8c4251(0x46c)]){case _0x2b4fec['CollaborationEvent'][_0x8c4251(0x464)]:_0x10e0a7={'eventID':_0x2b4fec['CollaborationEvent'][_0x8c4251(0x464)],'updateCursorEvent':_0x125b52[_0x8c4251(0x4c1)][_0x8c4251(0x4c1)]};break;case _0x2b4fec[_0x8c4251(0x3e6)][_0x8c4251(0x3fd)]:_0x10e0a7={'eventID':_0x2b4fec[_0x8c4251(0x3e6)][_0x8c4251(0x3fd)],'leaveEvent':_0x125b52[_0x8c4251(0x4c1)][_0x8c4251(0x4c1)]};break;case _0x2b4fec['CollaborationEvent'][_0x8c4251(0x286)]:_0x10e0a7={'eventID':_0x2b4fec['CollaborationEvent'][_0x8c4251(0x286)],'joinEvent':_0x125b52[_0x8c4251(0x4c1)][_0x8c4251(0x4c1)]};break;case _0x2b4fec[_0x8c4251(0x3e6)][_0x8c4251(0x447)]:_0x10e0a7={'eventID':_0x2b4fec['CollaborationEvent'][_0x8c4251(0x447)],'liveShareNewHost':_0x125b52[_0x8c4251(0x4c1)]['data']};break;case _0x2b4fec[_0x8c4251(0x3e6)][_0x8c4251(0x37d)]:_0x10e0a7={'eventID':_0x2b4fec[_0x8c4251(0x3e6)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x125b52[_0x8c4251(0x4c1)][_0x8c4251(0x4c1)]};break;case _0x2b4fec['CollaborationEvent'][_0x8c4251(0x486)]:_0x10e0a7={'eventID':_0x2b4fec['CollaborationEvent']['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x125b52[_0x8c4251(0x4c1)][_0x8c4251(0x4c1)]};break;case _0x2b4fec['CollaborationEvent'][_0x8c4251(0x436)]:_0x10e0a7={'eventID':_0x2b4fec['CollaborationEvent'][_0x8c4251(0x436)],'liveShareRequestHost':_0x125b52[_0x8c4251(0x4c1)][_0x8c4251(0x4c1)]};break;case _0x2b4fec['CollaborationEvent'][_0x8c4251(0x38d)]:_0x10e0a7={'eventID':_0x2b4fec[_0x8c4251(0x3e6)][_0x8c4251(0x38d)]};break;default:_0x10e0a7={'eventID':_0x125b52['data'][_0x8c4251(0x46c)]};}return JSON['stringify']({'cmd':_0x125b52[_0x8c4251(0x34a)],'routeKey':_0x125b52[_0x8c4251(0x251)],'collaMsg':_0x10e0a7});}case _0x26034e['CombCmd']['JOIN']:return JSON['stringify']({'cmd':_0x125b52['cmd'],'routeKey':_0x125b52[_0x8c4251(0x251)],'joinReq':_0x125b52[_0x8c4251(0x4c1)]});case _0x26034e[_0x8c4251(0x4ae)][_0x8c4251(0x36c)]:return JSON[_0x8c4251(0x298)]({'cmd':_0x125b52[_0x8c4251(0x34a)],'routeKey':_0x125b52[_0x8c4251(0x251)],'leaveReq':_0x125b52[_0x8c4251(0x4c1)]});default:throw Error(_0x8c4251(0x36b));}}let _0xb9cf3b=(0x0,_0x1f27ed[_0x5e5e22(0x448)])(_0x5e5e22(0x224));function _0x95807c(_0x368469,_0x2dd766,_0x48eae9){return _0x368469+'/'+_0x2dd766+'/unit/'+_0x48eae9+'/new_changes';}let _0x274b64=class extends _0x1f27ed['Disposable']{constructor(_0x50fe13,_0x593cd7,_0x2ff4c6,_0x1e7e39,_0x864dfb){const _0x458943=_0x5e5e22;super(),this[_0x458943(0x3af)]=_0x50fe13,this[_0x458943(0x283)]=_0x593cd7,this['_configService']=_0x2ff4c6,this['_logService']=_0x1e7e39,this[_0x458943(0x2d2)]=_0x864dfb;}[_0x5e5e22(0x2f6)](_0x571eb7){const _0x2b0cbf=_0x5e5e22;let _0x15c50c=this[_0x2b0cbf(0x3af)][_0x2b0cbf(0x31e)](_0x2514fd['ISocketService']);if(!_0x15c50c)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x1d0062=_0x15c50c[_0x2b0cbf(0x3f1)](_0x571eb7);if(!_0x1d0062)throw Error(_0x2b0cbf(0x47d));let _0x37a68c=new _0x1f27ed['DisposableCollection'](),_0x4a9365=new _0xd93cf['Subject']();_0x37a68c['add'](_0x1d0062[_0x2b0cbf(0x430)][_0x2b0cbf(0x3c1)](_0x2816ab=>_0x4a9365['next'](_0x2816ab))),_0x37a68c[_0x2b0cbf(0x3d0)]((0x0,_0x1f27ed[_0x2b0cbf(0x2fe)])(()=>_0x4a9365[_0x2b0cbf(0x328)]()));let _0x557106=new _0xd93cf['Subject']();_0x37a68c[_0x2b0cbf(0x3d0)](_0x1d0062[_0x2b0cbf(0x28d)]['subscribe'](_0x1a1798=>_0x557106[_0x2b0cbf(0x446)](_0x1a1798))),_0x37a68c[_0x2b0cbf(0x3d0)]((0x0,_0x1f27ed[_0x2b0cbf(0x2fe)])(()=>_0x557106[_0x2b0cbf(0x328)]()));let _0x2382b2=new _0xd93cf['Subject']();_0x37a68c[_0x2b0cbf(0x3d0)](_0x1d0062['message$']['subscribe'](_0x17aacb=>{let _0x4757ad=_0xc94ca9(_0x17aacb);_0x2382b2['next'](_0x4757ad);})),_0x37a68c[_0x2b0cbf(0x3d0)]((0x0,_0x1f27ed[_0x2b0cbf(0x2fe)])(()=>_0x2382b2[_0x2b0cbf(0x328)]()));let _0x2e38a7,_0x27659e=()=>{const _0x6e81=_0x2b0cbf;_0x557106[_0x6e81(0x446)](new Event(_0x6e81(0x3ac))),_0x4a9365['next'](new Event(_0x6e81(0x3ac))),_0x2e38a7['close']();};return _0x2e38a7={'memberID':'','close$':_0x4a9365[_0x2b0cbf(0x471)](),'error$':_0x557106[_0x2b0cbf(0x471)](),'open$':_0x1d0062[_0x2b0cbf(0x3db)],'message$':_0x2382b2[_0x2b0cbf(0x471)](),'send':_0xab1870=>{const _0x56a56c=_0x2b0cbf;if(_0xab1870[_0x56a56c(0x34a)]===_0x26034e[_0x56a56c(0x4ae)]['INGEST']){if(_0xab1870[_0x56a56c(0x4c1)][_0x56a56c(0x46c)]===_0x2b4fec['CollaborationEvent'][_0x56a56c(0x394)]){this[_0x56a56c(0x230)](_0x2e38a7,_0xab1870[_0x56a56c(0x4c1)])[_0x56a56c(0x410)](_0x2ce1eb=>{const _0x536ced=_0x56a56c;this[_0x536ced(0x2de)][_0x536ced(0x4bf)](_0x2ce1eb),_0x27659e();});return;}if(_0xab1870['data']['eventID']===_0x2b4fec['CollaborationEvent'][_0x56a56c(0x496)]){let _0x4cdd4b=_0xab1870[_0x56a56c(0x4c1)];this[_0x56a56c(0x4b8)](_0x4cdd4b)[_0x56a56c(0x38c)](_0x5a4547=>{const _0x2891b8=_0x56a56c;_0x2382b2[_0x2891b8(0x446)]({'cmd':_0x26034e[_0x2891b8(0x4ae)]['RECV'],'code':_0x26034e[_0x2891b8(0x48a)]['OK'],'routeKey':_0x4cdd4b[_0x2891b8(0x4c1)]['unitID'],'routeType':'','data':{'eventID':_0x2b4fec['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x5a4547}}});})[_0x56a56c(0x410)](_0x119789=>{const _0x5c76cd=_0x56a56c;this[_0x5c76cd(0x2de)][_0x5c76cd(0x4bf)](_0x119789),_0x27659e();});return;}}_0x1d0062[_0x56a56c(0x50d)](_0x4e9c33(_0xab1870));},'close':()=>{const _0x10afcd=_0x2b0cbf;_0x1d0062[_0x10afcd(0x4d3)](),_0x37a68c[_0x10afcd(0x345)]();}},_0x2e38a7;}async[_0x5e5e22(0x230)](_0x60d1c3,_0x49ab07){const _0x3bd551=_0x5e5e22;var _0x3ac24e;let {unitType:_0x1b2098,unitID:_0x50f7,changeset:_0x28e4e9}=_0x49ab07['data'],_0x27b181={'unitID':_0x50f7,'memberID':_0x60d1c3['memberID'],'type':_0x1b2098,'changeset':(0x0,_0x2b4fec[_0x3bd551(0x515)])(_0x28e4e9)},_0x43b622=this[_0x3bd551(0x494)][_0x3bd551(0x45c)](_0x5df009),_0x5bbb41=_0x95807c((_0x3ac24e=_0x43b622==null?void 0x0:_0x43b622[_0x3bd551(0x232)])==null?_0x3bd551(0x4c4):_0x3ac24e,_0x1b2098,_0x50f7);try{await this['_httpService'][_0x3bd551(0x44d)](_0x5bbb41,{'body':_0x27b181});}catch(_0x2e482e){throw this[_0x3bd551(0x2de)]['error'](_0x3bd551(0x452),_0x3bd551(0x3f3)),_0x2e482e;}}async[_0x5e5e22(0x4b8)](_0x1b5b9d){const _0x4b7c43=_0x5e5e22;let {unitID:_0x39c742,from:_0x2df859,to:_0x232a91,unitType:_0x317a31}=_0x1b5b9d[_0x4b7c43(0x4c1)];return(await this[_0x4b7c43(0x2d2)][_0x4b7c43(0x3b9)]({'metadata':void 0x0},{'unitID':_0x39c742,'type':_0x317a31,'from':_0x2df859,'to':_0x232a91}))[_0x4b7c43(0x203)][_0x4b7c43(0x349)](_0x5312f1=>((_0x5312f1[_0x4b7c43(0x3d6)]===null||_0x5312f1[_0x4b7c43(0x3d6)]===void 0x0)&&(_0x5312f1[_0x4b7c43(0x3d6)]=[]),_0x5312f1));}};_0x274b64=_0x28d1a4([_0x26ba80(0x0,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed['Injector'])),_0x26ba80(0x1,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2514fd[_0x5e5e22(0x2e2)])),_0x26ba80(0x2,_0x1f27ed[_0x5e5e22(0x506)]),_0x26ba80(0x3,_0x1f27ed[_0x5e5e22(0x304)]),_0x26ba80(0x4,_0x2b4fec[_0x5e5e22(0x20d)])],_0x274b64);let _0x3b7eb8=class extends _0x1f27ed[_0x5e5e22(0x421)]{get[_0x5e5e22(0x3e1)](){return this['_socket$']['getValue']();}constructor(_0xe0ca36,_0x11d8ce,_0x5df35e,_0x2a9efa,_0xfc47bb,_0x411e2e){const _0x291d38=_0x5e5e22;super(),this[_0x291d38(0x3af)]=_0xe0ca36,this[_0x291d38(0x2de)]=_0x11d8ce,this[_0x291d38(0x494)]=_0x5df35e,this[_0x291d38(0x23d)]=_0x2a9efa,this[_0x291d38(0x205)]=_0xfc47bb,this['_networkConditionService']=_0x411e2e,_0x5886a9(this,_0x291d38(0x3ed),new _0xd93cf[(_0x291d38(0x48d))](void 0x0)),_0x5886a9(this,_0x291d38(0x405),this['_socket$'][_0x291d38(0x471)]()),_0x5886a9(this,_0x291d38(0x2d7),null),_0x5886a9(this,_0x291d38(0x35b),new Map()),_0x5886a9(this,_0x291d38(0x42d),new _0xd93cf[(_0x291d38(0x48d))](0x0)),_0x5886a9(this,'status$',this[_0x291d38(0x42d)][_0x291d38(0x471)]()),_0x5886a9(this,_0x291d38(0x33f),!0x1),_0x5886a9(this,_0x291d38(0x4fa),void 0x0),_0x5886a9(this,_0x291d38(0x347),0x0),_0x5886a9(this,'_sendHeartbeatTimer',void 0x0),_0x5886a9(this,_0x291d38(0x220),void 0x0),this['_listenToNetworkCondition']();}[_0x5e5e22(0x36a)](){const _0x248d17=_0x5e5e22;this['_networkConditionService']&&this[_0x248d17(0x3f6)](this[_0x248d17(0x200)][_0x248d17(0x229)][_0x248d17(0x3c1)](_0x273c05=>{const _0x144ac9=_0x248d17;_0x273c05&&!this[_0x144ac9(0x3e1)]&&this['reconnect'](),_0x273c05||this[_0x144ac9(0x4a1)]();}));}[_0x5e5e22(0x345)](){const _0x285827=_0x5e5e22;super[_0x285827(0x345)](),this[_0x285827(0x361)](),this['_clearTimeoutTimer'](),this[_0x285827(0x27f)](),this[_0x285827(0x35b)][_0x285827(0x3ad)](_0x3e8b50=>_0x3e8b50['dispose']()),this[_0x285827(0x35b)][_0x285827(0x24d)](),this[_0x285827(0x42d)][_0x285827(0x328)]();}async['requireSession'](_0x15ea25){const _0x394be1=_0x5e5e22;if(this['_sessions'][_0x394be1(0x4e1)](_0x15ea25))return this[_0x394be1(0x35b)][_0x394be1(0x31e)](_0x15ea25);this[_0x394be1(0x3a6)]();let _0x5489c2=this[_0x394be1(0x3af)][_0x394be1(0x467)](_0x56a6c2,_0x15ea25,this['_socket$']['asObservable']());return this[_0x394be1(0x35b)][_0x394be1(0x4ce)](_0x15ea25,_0x5489c2),_0x5489c2;}[_0x5e5e22(0x2d6)](_0x172889){const _0x31925e=_0x5e5e22;let _0x288fb3=this[_0x31925e(0x35b)]['get'](_0x172889);if(_0x288fb3&&(this[_0x31925e(0x35b)][_0x31925e(0x440)](_0x172889),_0x288fb3['close']()),!this['_sessions'][_0x31925e(0x274)]){var _0x326be6;(_0x326be6=this[_0x31925e(0x3e1)])==null||_0x326be6[_0x31925e(0x4d3)]();}}['reconnect'](){const _0xd459d0=_0x5e5e22;this[_0xd459d0(0x347)]=0x0,this[_0xd459d0(0x361)](),this[_0xd459d0(0x401)]();}[_0x5e5e22(0x361)](){const _0x34d37d=_0x5e5e22;this[_0x34d37d(0x4fa)]!=null&&(clearTimeout(this[_0x34d37d(0x4fa)]),this[_0x34d37d(0x4fa)]=null);}async[_0x5e5e22(0x4c8)](){const _0x131647=_0x5e5e22;var _0x4c4f7b;let _0x386e02=this[_0x131647(0x494)][_0x131647(0x45c)](_0x5df009),_0x4af040=(_0x4c4f7b=_0x386e02==null?void 0x0:_0x386e02[_0x131647(0x358)])==null?_0x505fc1:_0x4c4f7b,_0x3716b1=await this[_0x131647(0x23d)]['createSocket'](_0x4af040);return this[_0x131647(0x2d7)]=_0x3716b1,_0x3716b1;}async[_0x5e5e22(0x3a6)](){const _0x190799=_0x5e5e22;try{var _0x524f2b,_0x236e3b;let _0x250881=(_0x524f2b=(_0x236e3b=this[_0x190799(0x3e1)])==null?this[_0x190799(0x2d7)]:_0x236e3b)==null?await this[_0x190799(0x4c8)]():_0x524f2b;if(_0x250881){let _0x1b99f4=_0x250881[_0x190799(0x50d)];_0x250881[_0x190799(0x50d)]=_0x5c1b84=>(_0x5c1b84[_0x190799(0x34a)]!==_0x26034e[_0x190799(0x4ae)][_0x190799(0x36c)]&&this[_0x190799(0x3fa)](),_0x1b99f4[_0x190799(0x34b)](_0x250881,[_0x5c1b84])),_0x250881[_0x190799(0x3d5)]['subscribe'](_0x2b917b=>this[_0x190799(0x2d9)](_0x250881,_0x2b917b)),_0x250881['error$'][_0x190799(0x3e2)]((0x0,_0x4f33c6[_0x190799(0x26b)])(0x1))[_0x190799(0x3c1)](_0x485a72=>this['_logService'][_0x190799(0x4bf)](_0x190799(0x4d9),_0x485a72)),_0x250881[_0x190799(0x3db)][_0x190799(0x3e2)]((0x0,_0x4f33c6[_0x190799(0x26b)])(0x1))[_0x190799(0x3c1)](()=>{const _0xaa1516=_0x190799;this[_0xaa1516(0x3bb)](_0x250881);}),_0x250881['close$'][_0x190799(0x3e2)]((0x0,_0x4f33c6[_0x190799(0x26b)])(0x1))[_0x190799(0x3c1)](_0x234ee4=>{const _0x460e02=_0x190799;this['_logService'][_0x460e02(0x2fc)](_0x460e02(0x329),_0x460e02(0x49c),_0x234ee4),this[_0x460e02(0x253)]();});}}catch(_0x24d1ad){this['_logService']['error'](_0x24d1ad),this[_0x190799(0x253)]();}}[_0x5e5e22(0x3bb)](_0x2a9c65){const _0x17d1f1=_0x5e5e22;this['_logService'][_0x17d1f1(0x2fc)](_0x17d1f1(0x329),_0x17d1f1(0x507)),_0x2a9c65[_0x17d1f1(0x50d)]({'cmd':_0x26034e['CombCmd'][_0x17d1f1(0x1fb)]}),this[_0x17d1f1(0x3fa)]();}[_0x5e5e22(0x4a1)](){const _0x2f6d55=_0x5e5e22;this['_socketReady']=!0x1,this[_0x2f6d55(0x2d7)]=null,this['_status$']['next'](0x2),this[_0x2f6d55(0x3ed)][_0x2f6d55(0x446)](null),this[_0x2f6d55(0x374)](),this[_0x2f6d55(0x27f)]();}[_0x5e5e22(0x253)](){const _0x3507be=_0x5e5e22;var _0x27827b;this[_0x3507be(0x4a1)](),this['_retryCount']<((_0x27827b=this[_0x3507be(0x494)][_0x3507be(0x45c)](_0x3507be(0x4e0)))==null?0x3:_0x27827b)?(this[_0x3507be(0x205)]['emitEvent']({'id':_0x3507be(0x3ee)}),this[_0x3507be(0x401)]()):this[_0x3507be(0x205)]['emitEvent']({'id':_0x3507be(0x482)});}['_tryReconnect'](){const _0xb59a11=_0x5e5e22;var _0x2485b3;let _0xd96bb9=this[_0xb59a11(0x347)],_0x136ae2=this['_configService']['getConfig'](_0x5df009),_0x4ee322=_0xd96bb9===0x0?0x0:((_0x2485b3=_0x136ae2==null?void 0x0:_0x136ae2[_0xb59a11(0x3d1)])==null?0x4e20:_0x2485b3)*0x2**_0xd96bb9;this['_retryConnectingTimer']=setTimeout(()=>{const _0x3afc27=_0xb59a11;clearTimeout(this['_retryConnectingTimer']),this[_0x3afc27(0x4fa)]=null,this[_0x3afc27(0x3a6)]();},_0x4ee322),this['_retryCount']+=0x1;}[_0x5e5e22(0x2d9)](_0x15d7a8,_0x703343){const _0x2ba1e8=_0x5e5e22;let {cmd:_0x40dfc2}=_0x703343;_0x40dfc2===_0x26034e[_0x2ba1e8(0x4ae)][_0x2ba1e8(0x1fb)]&&!this['_socketReady']&&(_0x15d7a8[_0x2ba1e8(0x43c)]=_0x703343[_0x2ba1e8(0x4c1)]['memberID'],this[_0x2ba1e8(0x3ed)][_0x2ba1e8(0x446)](_0x15d7a8),this['_status$'][_0x2ba1e8(0x446)](0x3),this[_0x2ba1e8(0x33f)]=!0x0,this[_0x2ba1e8(0x2d7)]=null),_0x40dfc2===_0x26034e[_0x2ba1e8(0x4ae)][_0x2ba1e8(0x351)]&&this[_0x2ba1e8(0x374)](),this[_0x2ba1e8(0x3fa)]();}[_0x5e5e22(0x3fa)](){const _0x2a3669=_0x5e5e22;var _0x1505e2;this[_0x2a3669(0x27f)](),this['_sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](),(_0x1505e2=this[_0x2a3669(0x494)][_0x2a3669(0x45c)]('HEARTBEAT_INTERVAL'))==null?0x7530:_0x1505e2);}[_0x5e5e22(0x4e9)](){const _0x52b010=_0x5e5e22;this['_socket'][_0x52b010(0x50d)]({'cmd':_0x26034e[_0x52b010(0x4ae)][_0x52b010(0x351)]}),this[_0x52b010(0x513)]();}['_waitForHeartbeatResponse'](){const _0x4dd68c=_0x5e5e22;var _0x5dbf49;this[_0x4dd68c(0x220)]=setTimeout(()=>this[_0x4dd68c(0x253)](),(_0x5dbf49=this[_0x4dd68c(0x494)]['getConfig'](_0x4dd68c(0x365)))==null?_0x1589e0:_0x5dbf49);}[_0x5e5e22(0x27f)](){const _0x3bb3bc=_0x5e5e22;this[_0x3bb3bc(0x491)]!=null&&(clearTimeout(this[_0x3bb3bc(0x491)]),this[_0x3bb3bc(0x491)]=null);}[_0x5e5e22(0x374)](){const _0x1713bc=_0x5e5e22;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x1713bc(0x220)]),this[_0x1713bc(0x220)]=null);}};_0x3b7eb8=_0x28d1a4([_0x26ba80(0x0,(0x0,_0x1f27ed['Inject'])(_0x1f27ed['Injector'])),_0x26ba80(0x1,_0x1f27ed[_0x5e5e22(0x304)]),_0x26ba80(0x2,_0x1f27ed[_0x5e5e22(0x506)]),_0x26ba80(0x3,_0xb9cf3b),_0x26ba80(0x4,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2af8d7)),_0x26ba80(0x5,(0x0,_0x1f27ed['Optional'])(_0x3aac02))],_0x3b7eb8);let _0x4efdf8=class extends _0x1f27ed[_0x5e5e22(0x38a)]{constructor(_0x48da8a,_0x3f423d,_0x2e91e5,_0x4f8b92){const _0x96a3b=_0x5e5e22;var _0x434111;super(),this[_0x96a3b(0x3af)]=_0x48da8a,this[_0x96a3b(0x2b1)]=_0x3f423d,this[_0x96a3b(0x494)]=_0x2e91e5,this['_univerInstanceService']=_0x4f8b92,_0x5886a9(this,_0x96a3b(0x279),new Map()),_0x5886a9(this,_0x96a3b(0x32a),new _0xd93cf[(_0x96a3b(0x2c2))]()),_0x5886a9(this,'entityInit$',this[_0x96a3b(0x32a)]['asObservable']()),((_0x434111=this[_0x96a3b(0x494)]['getConfig'](_0x96a3b(0x4ad)))==null?void 0x0:_0x434111['enableCollaboration'])!==!0x1&&this[_0x96a3b(0x4d2)]();}['dispose'](){const _0x2ddce9=_0x5e5e22;super[_0x2ddce9(0x345)](),this['_entities'][_0x2ddce9(0x3ad)](_0x3f3d39=>_0x3f3d39['dispose']()),this[_0x2ddce9(0x279)][_0x2ddce9(0x24d)]();}['getCollabEntity'](_0x4183b7){const _0x38cf50=_0x5e5e22;var _0x5ecd19;return(_0x5ecd19=this[_0x38cf50(0x279)][_0x38cf50(0x31e)](_0x4183b7))==null?null:_0x5ecd19;}[_0x5e5e22(0x29e)](_0x33c140){const _0xaa1504=_0x5e5e22;let _0x38b02b=this[_0xaa1504(0x455)](_0x33c140);return _0x38b02b?(0x0,_0xd93cf['of'])(_0x38b02b):this[_0xaa1504(0x32a)]['pipe']((0x0,_0x4f33c6['filter'])(_0x3f8a32=>_0x3f8a32['unitID']===_0x33c140));}[_0x5e5e22(0x239)](_0x4a29b5){const _0x294ac4=_0x5e5e22;return(0x0,_0xd93cf[_0x294ac4(0x37e)])(this[_0x294ac4(0x29e)](_0x4a29b5)[_0x294ac4(0x3e2)]((0x0,_0x4f33c6[_0x294ac4(0x349)])(()=>void 0x0)));}[_0x5e5e22(0x4d2)](){const _0x39029b=_0x5e5e22;this[_0x39029b(0x45b)][_0x39029b(0x3bd)](_0x1f27ed['UniverInstanceType'][_0x39029b(0x25c)])['pipe']((0x0,_0xd93cf[_0x39029b(0x2dd)])(this[_0x39029b(0x207)]),(0x0,_0x4f33c6[_0x39029b(0x387)])(0x10))[_0x39029b(0x3c1)](async _0x42f034=>{const _0x395566=_0x39029b;let _0x5277f7=_0x42f034['unit'][_0x395566(0x4d4)](),_0x42f2f9=await this['_startCollaboration'](_0x5277f7,_0x1f27ed['UniverInstanceType'][_0x395566(0x25c)]);this[_0x395566(0x279)][_0x395566(0x4ce)](_0x5277f7,_0x42f2f9);}),this[_0x39029b(0x45b)][_0x39029b(0x3bd)](_0x1f27ed[_0x39029b(0x41c)][_0x39029b(0x4a5)])[_0x39029b(0x3e2)]((0x0,_0xd93cf[_0x39029b(0x2dd)])(this[_0x39029b(0x207)]),(0x0,_0x4f33c6[_0x39029b(0x387)])(0x10))[_0x39029b(0x3e2)]((0x0,_0x4f33c6[_0x39029b(0x24a)])(_0x3fb865=>!_0x3fb865[_0x39029b(0x32b)][_0x39029b(0x4d4)]()[_0x39029b(0x2e8)]('__')))['subscribe'](async _0x306da0=>{const _0x34f1ac=_0x39029b;let _0x187e01=_0x306da0[_0x34f1ac(0x32b)]['getUnitId'](),_0x59ac5f=await this[_0x34f1ac(0x378)](_0x187e01,_0x1f27ed[_0x34f1ac(0x41c)][_0x34f1ac(0x4a5)]);this[_0x34f1ac(0x279)]['set'](_0x187e01,_0x59ac5f);}),(0x0,_0xd93cf[_0x39029b(0x307)])(this[_0x39029b(0x45b)]['getTypeOfUnitDisposed$'](_0x1f27ed[_0x39029b(0x41c)][_0x39029b(0x25c)]),this[_0x39029b(0x45b)][_0x39029b(0x477)](_0x1f27ed[_0x39029b(0x41c)][_0x39029b(0x4a5)]))[_0x39029b(0x3e2)]((0x0,_0xd93cf[_0x39029b(0x2dd)])(this[_0x39029b(0x207)]))[_0x39029b(0x3c1)](_0x4ca212=>{const _0x8e057f=_0x39029b;let _0x1fe313=_0x4ca212[_0x8e057f(0x4d4)](),_0x5865f0=this[_0x8e057f(0x279)][_0x8e057f(0x31e)](_0x1fe313);_0x5865f0&&(_0x5865f0[_0x8e057f(0x345)](),this[_0x8e057f(0x279)]['delete'](_0x1fe313));});}async[_0x5e5e22(0x378)](_0x1123b3,_0x3b498d){const _0x4d0609=_0x5e5e22;let _0x38abd6=await this[_0x4d0609(0x2b1)]['requireSession'](_0x1123b3),_0x3d890e=this[_0x4d0609(0x3af)]['createInstance'](this[_0x4d0609(0x3a4)](_0x3b498d),_0x1123b3,_0x3b498d,_0x38abd6);return await _0x3d890e[_0x4d0609(0x247)](),this[_0x4d0609(0x32a)][_0x4d0609(0x446)](_0x3d890e),_0x3d890e;}[_0x5e5e22(0x3a4)](_0x4d94f7){const _0x37da4a=_0x5e5e22;switch(_0x4d94f7){case _0x1f27ed[_0x37da4a(0x41c)]['UNIVER_DOC']:return _0x6949ae;case _0x1f27ed[_0x37da4a(0x41c)][_0x37da4a(0x25c)]:return _0x30b4f8;default:throw Error(_0x37da4a(0x2d1)+_0x4d94f7);}}};_0x4efdf8=_0x28d1a4([_0x26ba80(0x0,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x271)])),_0x26ba80(0x1,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x3b7eb8)),_0x26ba80(0x2,_0x1f27ed['IConfigService']),_0x26ba80(0x3,_0x1f27ed['IUniverInstanceService'])],_0x4efdf8);var _0x189f56='@univerjs-pro/collaboration-client',_0x4b9248=_0x5e5e22(0x248);let _0x33fd88=class extends _0x1f27ed['Disposable']{constructor(_0x748e65,_0x123296){const _0x33936d=_0x5e5e22;super(),this[_0x33936d(0x45b)]=_0x748e65,this[_0x33936d(0x494)]=_0x123296,this[_0x33936d(0x4d2)]();}['_init'](){const _0x293148=_0x5e5e22;this[_0x293148(0x3f6)](this['_univerInstanceService'][_0x293148(0x339)]['subscribe'](()=>{const _0x1aef05=_0x293148;var _0x5dd251;let _0x20bf34=this[_0x1aef05(0x45b)][_0x1aef05(0x233)](),_0x2413f4=(_0x5dd251=this[_0x1aef05(0x494)][_0x1aef05(0x45c)](_0x1aef05(0x3b4)))==null?_0x1aef05(0x49d):_0x5dd251;_0x20bf34 instanceof _0x1f27ed[_0x1aef05(0x21e)]&&(_0x2413f4=_0x20bf34[_0x1aef05(0x39c)]),document[_0x1aef05(0x390)]=_0x2413f4;}));}};_0x33fd88=_0x28d1a4([_0x26ba80(0x0,_0x1f27ed[_0x5e5e22(0x50c)]),_0x26ba80(0x1,_0x1f27ed['IConfigService'])],_0x33fd88);let _0x3e8a84=class{constructor(_0x328bac,_0x5aaf1b,_0x4a8682){const _0x22a500=_0x5e5e22;this[_0x22a500(0x494)]=_0x328bac,this[_0x22a500(0x283)]=_0x5aaf1b,this[_0x22a500(0x40e)]=_0x4a8682,this[_0x22a500(0x247)]();}[_0x5e5e22(0x247)](){const _0x569475=_0x5e5e22;this['_httpService'][_0x569475(0x454)]({'priority':0x1,'interceptor':(_0x644e42,_0x2dcf75)=>_0x2dcf75(_0x644e42)[_0x569475(0x3e2)]((0x0,_0xd93cf[_0x569475(0x3f7)])(async _0x4c9809=>{const _0x451875=_0x569475;let _0x3e305c=_0x4c9809;if(_0x3e305c[_0x451875(0x47f)]===0x191){if(typeof window>'u')throw Error(_0x451875(0x3cd));if(window[_0x451875(0x275)](this[_0x451875(0x40e)]['t'](_0x451875(0x3ce)))){let _0x56b566=window[_0x451875(0x495)](window['location'][_0x451875(0x3cc)]);window['location'][_0x451875(0x3cc)]=this[_0x451875(0x364)]()+_0x451875(0x4e2)+_0x56b566;}}return _0x3e305c;}))});}[_0x5e5e22(0x364)](){const _0xc00d34=_0x5e5e22;var _0x984ec9;let _0x3424a=this['_configService'][_0xc00d34(0x45c)](_0x5df009);return(_0x984ec9=_0x3424a==null?void 0x0:_0x3424a[_0xc00d34(0x254)])==null?_0xc00d34(0x292):_0x984ec9;}};_0x3e8a84=_0x28d1a4([_0x26ba80(0x0,_0x1f27ed[_0x5e5e22(0x506)]),_0x26ba80(0x1,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2514fd[_0x5e5e22(0x2e2)])),_0x26ba80(0x2,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x2bc)]))],_0x3e8a84);let _0x1ac39c=class extends _0x1f27ed['Disposable']{constructor(_0x34b03d,_0x22c0bb){const _0x34e7a9=_0x5e5e22;super(),this[_0x34e7a9(0x22f)]=_0x34b03d,this[_0x34e7a9(0x494)]=_0x22c0bb,_0x5886a9(this,_0x34e7a9(0x4ca),!0x1),this[_0x34e7a9(0x317)]();}[_0x5e5e22(0x317)](){const _0x26eac5=_0x5e5e22;let _0x114369=this;this[_0x26eac5(0x3f6)](this[_0x26eac5(0x22f)][_0x26eac5(0x454)]({'priority':0x3e7,'interceptor':(0x0,_0x2514fd['MergeInterceptorFactory'])({'isMatch'(_0x240ace){const _0x2f826f=_0x26eac5;var _0x4d6bee;if(_0x240ace[_0x2f826f(0x47b)]===_0x2f826f(0x423)&&(_0x4d6bee=_0x240ace[_0x2f826f(0x26f)])!=null&&_0x4d6bee[_0x2f826f(0x2ba)]){let {objectID:_0x2c0041,objectType:_0x23bfd6}=_0x240ace[_0x2f826f(0x26f)][_0x2f826f(0x2ba)]||{};if(!_0x2c0041||_0x23bfd6===void 0x0)return!0x1;let _0x50d163=_0x114369[_0x2f826f(0x3d9)]()+'/'+_0x23bfd6+'/object/'+_0x2c0041+_0x2f826f(0x2c6);if(_0x240ace[_0x2f826f(0x408)]===_0x50d163)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2bf2aa){const _0x5bb3d4=_0x26eac5;var _0x52dcd5;return(_0x52dcd5=_0x2bf2aa[_0x5bb3d4(0x26f)])==null?void 0x0:_0x52dcd5[_0x5bb3d4(0x2ba)];},'mergeParamsToRequest'(_0x5aa904,_0x4b4873){const _0x1ecc17=_0x26eac5;let _0x5999ed=_0x114369[_0x1ecc17(0x3d9)]()+'/-/object/-/batch_allowed',_0x37a65a=_0x5aa904[_0x1ecc17(0x39b)]((_0x25d527,_0x1836ba)=>{let {unitID:_0x3a1456,objectID:_0x104497,objectType:_0x132d33,actions:_0x4ab7d5}=_0x1836ba;return _0x25d527[_0x3a1456]||(_0x25d527[_0x3a1456]={}),_0x25d527[_0x3a1456][_0x104497]||(_0x25d527[_0x3a1456][_0x104497]={'objectID':_0x104497,'objectType':_0x132d33,'actions':[]}),_0x25d527[_0x3a1456][_0x104497]['actions']['push'](..._0x4ab7d5),_0x25d527;},{}),_0x4b8f08=[];for(let _0x420b34 in _0x37a65a)for(let _0x5af3a7 in _0x37a65a[_0x420b34]){let {actions:_0xf26133,objectType:_0x1e4604}=_0x37a65a[_0x420b34][_0x5af3a7],_0x2a4fa3=[...new Set(_0xf26133)];_0x4b8f08[_0x1ecc17(0x2e4)]({'unitID':_0x420b34,'objectID':_0x5af3a7,'objectType':_0x1e4604,'actions':_0x2a4fa3});}return new _0x2514fd[(_0x1ecc17(0x30f))](_0x1ecc17(0x423),_0x5999ed,{'headers':_0x4b4873[_0x1ecc17(0x474)],'withCredentials':_0x4b4873[_0x1ecc17(0x26e)],'responseType':_0x4b4873[_0x1ecc17(0x24e)],'body':{'requests':_0x4b8f08}});}},{'distributeResult'(_0x5a5b64,_0x3353c4){const _0xc80f07=_0x26eac5;let {objectActions:_0x4c870e}=_0x5a5b64;return _0x3353c4[_0xc80f07(0x349)](_0xc45dbb=>{const _0x669fb2=_0xc80f07;let {unitID:_0x100038,objectID:_0x5a1516,actions:_0x20a996}=_0xc45dbb,_0x4129e5=_0x4c870e[_0x669fb2(0x47a)](_0x1fb896=>_0x1fb896[_0x669fb2(0x3bc)]===_0x100038&&_0x1fb896['objectID']===_0x5a1516);return{'config':_0xc45dbb,'result':{'actions':_0x20a996[_0x669fb2(0x349)](_0x15ced0=>_0x4129e5==null?void 0x0:_0x4129e5['actions'][_0x669fb2(0x47a)](_0x543773=>_0x543773['action']===_0x15ced0))[_0x669fb2(0x24a)](_0x28f555=>!!_0x28f555),'error':_0x5a5b64['error']}};});}})}));}[_0x5e5e22(0x3d9)](){const _0x40b008=_0x5e5e22;var _0xb03268;let _0x424d79=this[_0x40b008(0x494)][_0x40b008(0x45c)](_0x5df009);return(_0xb03268=_0x424d79==null?void 0x0:_0x424d79[_0x40b008(0x3b1)])==null?'/universer-api/authz':_0xb03268;}async[_0x5e5e22(0x39d)](_0x323794){const _0x2b04ea=_0x5e5e22;let _0x4b71e3=this['_getAPIPrefixPath']()+'/'+_0x323794[_0x2b04ea(0x2ce)]+'/object';return(await this[_0x2b04ea(0x22f)][_0x2b04ea(0x44d)](_0x4b71e3,{'body':_0x323794}))[_0x2b04ea(0x2ba)][_0x2b04ea(0x393)]||'';}async[_0x5e5e22(0x511)](_0x3b2556){const _0x5bb70f=_0x5e5e22;let _0x12d49e=this[_0x5bb70f(0x3d9)]()+'/-/object/list';return(await this[_0x5bb70f(0x22f)]['post'](_0x12d49e,{'body':_0x3b2556}))[_0x5bb70f(0x2ba)][_0x5bb70f(0x381)];}async['update'](_0x164b65){const _0x41530e=_0x5e5e22;var _0x59d52e;let _0x281f01=this[_0x41530e(0x3d9)]()+'/'+_0x164b65['objectType']+_0x41530e(0x4a6)+_0x164b65['objectID'],_0x2bd981=await this[_0x41530e(0x22f)]['put'](_0x281f01,{'body':_0x164b65});if((_0x2bd981==null||(_0x59d52e=_0x2bd981['body'])==null||(_0x59d52e=_0x59d52e[_0x41530e(0x4bf)])==null?void 0x0:_0x59d52e[_0x41530e(0x45d)])!==0x1)throw Error(_0x41530e(0x4ee));}async[_0x5e5e22(0x305)](_0x361493){const _0x38664b=_0x5e5e22;let _0x488d19=this[_0x38664b(0x3d9)]()+'/'+_0x361493[_0x38664b(0x2ce)]+_0x38664b(0x4a6)+_0x361493[_0x38664b(0x393)]+_0x38664b(0x2c6);return(await this[_0x38664b(0x22f)][_0x38664b(0x44d)](_0x488d19,{'body':_0x361493}))[_0x38664b(0x2ba)]['actions'];}async[_0x5e5e22(0x40b)](_0x5e9b99){const _0xb0202c=_0x5e5e22;let _0x36aa25=this[_0xb0202c(0x3d9)]()+_0xb0202c(0x295);return(await this['_HTTPService'][_0xb0202c(0x44d)](_0x36aa25,{'body':{'requests':_0x5e9b99}}))[_0xb0202c(0x2ba)][_0xb0202c(0x4b1)];}async[_0x5e5e22(0x219)](_0x22276f){const _0x3c753e=_0x5e5e22;let _0x1b0e93=this['_getAPIPrefixPath']()+'/'+_0x22276f[_0x3c753e(0x2ce)]+_0x3c753e(0x503),_0xa61842=await this[_0x3c753e(0x22f)][_0x3c753e(0x44d)](_0x1b0e93,{'body':_0x22276f});return{'roles':_0xa61842[_0x3c753e(0x2ba)]['roles'],'actions':_0xa61842[_0x3c753e(0x2ba)]['actions']};}async[_0x5e5e22(0x256)](_0x17613f){const _0xde2149=_0x5e5e22;let _0x5d36bc=this[_0xde2149(0x3d9)]()+_0xde2149(0x243);await this[_0xde2149(0x22f)][_0xde2149(0x440)](_0x5d36bc,{'params':{'collaboratorID':_0x17613f[_0xde2149(0x385)],'objectID':_0x17613f[_0xde2149(0x393)],'unitID':_0x17613f['unitID']}});}async[_0x5e5e22(0x3e0)](_0x5eec94){const _0x12205d=_0x5e5e22;let _0x1d33a6=this[_0x12205d(0x3d9)]()+'/collaborator';await this[_0x12205d(0x22f)][_0x12205d(0x212)](_0x1d33a6,{'body':_0x5eec94});}async['createCollaborator'](_0x576d5c){const _0x306c67=_0x5e5e22;let _0x2df1db=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x306c67(0x22f)][_0x306c67(0x44d)](_0x2df1db,{'body':_0x576d5c});}async['listCollaborators'](_0x15f217){const _0x1dfc7c=_0x5e5e22;var _0x953357;let _0x4c42ae=this['_getAPIPrefixPath']()+'/collaborator',_0x3cf4eb=await this[_0x1dfc7c(0x22f)][_0x1dfc7c(0x31e)](_0x4c42ae,{'params':{'objectID':_0x15f217[_0x1dfc7c(0x393)],'unitID':_0x15f217['unitID']}});return this['setCfgEnableObjInherit']((_0x953357=_0x3cf4eb['body'][_0x1dfc7c(0x330)])==null?!0x1:_0x953357),_0x3cf4eb['body'][_0x1dfc7c(0x299)];}async[_0x5e5e22(0x4c6)](_0x4bff62){const _0x2dbe00=_0x5e5e22;let _0x90e357=this[_0x2dbe00(0x3d9)]()+_0x2dbe00(0x243);await this[_0x2dbe00(0x22f)][_0x2dbe00(0x1f6)](_0x90e357,{'body':_0x4bff62});}[_0x5e5e22(0x3d4)](_0x5b6d85){const _0x2aa458=_0x5e5e22;this[_0x2aa458(0x4ca)]=_0x5b6d85;}['getCfgEnableObjInherit'](){const _0x4ad6da=_0x5e5e22;return this[_0x4ad6da(0x4ca)];}};_0x1ac39c=_0x28d1a4([_0x26ba80(0x0,(0x0,_0x1f27ed['Inject'])(_0x2514fd['HTTPService'])),_0x26ba80(0x1,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed['IConfigService']))],_0x1ac39c);function _0x4b8c1e(_0x1acb69){const _0x281f55=_0x5e5e22;return _0x1acb69 instanceof Uint8Array||ArrayBuffer[_0x281f55(0x237)](_0x1acb69)&&_0x1acb69['constructor'][_0x281f55(0x39c)]===_0x281f55(0x4be)&&_0x281f55(0x32e)in _0x1acb69&&_0x1acb69['BYTES_PER_ELEMENT']===0x1;}function _0x4dad3a(_0x5d7322){const _0x1f5dd2=_0x5e5e22;if(typeof _0x5d7322!=_0x1f5dd2(0x4dd))throw TypeError(_0x1f5dd2(0x473)+typeof _0x5d7322);if(!Number[_0x1f5dd2(0x261)](_0x5d7322)||_0x5d7322<0x0)throw RangeError(_0x1f5dd2(0x375)+_0x5d7322);}function _0x139d92(_0x36ccb1,_0xeab8ac,_0x5e1ea4=''){const _0x1b4cb5=_0x5e5e22;let _0xc84b09=_0x4b8c1e(_0x36ccb1),_0x3a8782=_0x36ccb1==null?void 0x0:_0x36ccb1[_0x1b4cb5(0x242)],_0x5430d1=_0xeab8ac!==void 0x0;if(!_0xc84b09||_0x5430d1&&_0x3a8782!==_0xeab8ac){let _0x1d72e3=_0x5e1ea4&&'\x22'+_0x5e1ea4+'\x22\x20',_0x1e1981=_0x5430d1?_0x1b4cb5(0x429)+_0xeab8ac:'',_0x415b88=_0xc84b09?'length='+_0x3a8782:'type='+typeof _0x36ccb1,_0x1dd1eb=_0x1d72e3+_0x1b4cb5(0x24f)+_0x1e1981+',\x20got\x20'+_0x415b88;throw _0xc84b09?RangeError(_0x1dd1eb):TypeError(_0x1dd1eb);}return _0x36ccb1;}function _0x33a411(_0x278dd7){const _0x4e0841=_0x5e5e22;return new Uint32Array(_0x278dd7['buffer'],_0x278dd7['byteOffset'],Math[_0x4e0841(0x2b0)](_0x278dd7[_0x4e0841(0x34d)]/0x4));}function _0x1a116c(..._0x453969){const _0xaddc09=_0x5e5e22;for(let _0x317df1=0x0;_0x317df1<_0x453969[_0xaddc09(0x242)];_0x317df1++)_0x453969[_0x317df1]['fill'](0x0);}let _0x3c590d=new Uint8Array(new Uint32Array([0x11223344])[_0x5e5e22(0x3b6)])[0x0]===0x44,_0x1cb3b0=_0x5daabc=>_0x5daabc<<0x18&0xff000000|_0x5daabc<<0x8&0xff0000|_0x5daabc>>>0x8&0xff00|_0x5daabc>>>0x18&0xff,_0x4431af=_0x3c590d?_0x1f4553=>_0x1f4553:_0x28b450=>{const _0x348f8c=_0x5e5e22;for(let _0xd7d355=0x0;_0xd7d355<_0x28b450[_0x348f8c(0x242)];_0xd7d355++)_0x28b450[_0xd7d355]=_0x1cb3b0(_0x28b450[_0xd7d355]);return _0x28b450;};typeof Uint8Array['from']([])[_0x5e5e22(0x457)]=='function'&&Uint8Array[_0x5e5e22(0x2bf)];function _0x588247(_0x4c4c47){const _0x132594=_0x5e5e22;if(typeof _0x4c4c47!=_0x132594(0x331))throw TypeError(_0x132594(0x310));return new Uint8Array(new TextEncoder()['encode'](_0x4c4c47));}function _0x5514c1(_0x54da97,_0x2afa7b){const _0x1de2a9=_0x5e5e22;return!_0x54da97[_0x1de2a9(0x34d)]||!_0x2afa7b[_0x1de2a9(0x34d)]?!0x1:_0x54da97[_0x1de2a9(0x3b6)]===_0x2afa7b[_0x1de2a9(0x3b6)]&&_0x54da97[_0x1de2a9(0x376)]<_0x2afa7b[_0x1de2a9(0x376)]+_0x2afa7b[_0x1de2a9(0x34d)]&&_0x2afa7b[_0x1de2a9(0x376)]<_0x54da97['byteOffset']+_0x54da97[_0x1de2a9(0x34d)];}function _0x42c1cd(_0x3841c2,_0x55ebf7){const _0x4815e6=_0x5e5e22;if(_0x5514c1(_0x3841c2,_0x55ebf7)&&_0x3841c2[_0x4815e6(0x376)]<_0x55ebf7[_0x4815e6(0x376)])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0x4494fc(..._0xe601e2){const _0x1cb054=_0x5e5e22;let _0x32d663=0x0;for(let _0x420e0c=0x0;_0x420e0c<_0xe601e2[_0x1cb054(0x242)];_0x420e0c++){let _0x4a82a0=_0xe601e2[_0x420e0c];_0x139d92(_0x4a82a0),_0x32d663+=_0x4a82a0[_0x1cb054(0x242)];}let _0x263320=new Uint8Array(_0x32d663);for(let _0x2cb474=0x0,_0x53d384=0x0;_0x2cb474<_0xe601e2[_0x1cb054(0x242)];_0x2cb474++){let _0xd71579=_0xe601e2[_0x2cb474];_0x263320[_0x1cb054(0x4ce)](_0xd71579,_0x53d384),_0x53d384+=_0xd71579[_0x1cb054(0x242)];}return _0x263320;}let _0x3cbd57=(_0x4c0e29,_0x15056f)=>{const _0x208ff3=_0x5e5e22;function _0x196936(_0x47a64a,..._0x320c2c){const _0x3b224b=_0x20b8;if(_0x139d92(_0x47a64a,void 0x0,_0x3b224b(0x267)),_0x4c0e29[_0x3b224b(0x4f5)]!==void 0x0){let _0x14f4ab=_0x320c2c[0x0];_0x139d92(_0x14f4ab,_0x4c0e29[_0x3b224b(0x2b3)]?void 0x0:_0x4c0e29[_0x3b224b(0x4f5)],_0x3b224b(0x215));}let _0x1f50e9=_0x4c0e29[_0x3b224b(0x453)];_0x1f50e9&&_0x320c2c[0x1]!==void 0x0&&_0x139d92(_0x320c2c[0x1],void 0x0,_0x3b224b(0x35c));let _0x651ea4=_0x15056f(_0x47a64a,..._0x320c2c),_0x3a7507=(_0x250aad,_0x4327be)=>{const _0x375f92=_0x3b224b;if(_0x4327be!==void 0x0){if(_0x250aad!==0x2)throw Error(_0x375f92(0x386));_0x139d92(_0x4327be,void 0x0,'output');}},_0xe35a03=!0x1;return{'encrypt'(_0x3a3e6d,_0x6059d9){const _0x104007=_0x3b224b;if(_0xe35a03)throw Error(_0x104007(0x294));return _0xe35a03=!0x0,_0x139d92(_0x3a3e6d),_0x3a7507(_0x651ea4[_0x104007(0x490)][_0x104007(0x242)],_0x6059d9),_0x651ea4['encrypt'](_0x3a3e6d,_0x6059d9);},'decrypt'(_0x14f9d9,_0x40f00b){const _0x1edf3c=_0x3b224b;if(_0x139d92(_0x14f9d9),_0x1f50e9&&_0x14f9d9[_0x1edf3c(0x242)]<_0x1f50e9)throw Error(_0x1edf3c(0x481)+_0x1f50e9);return _0x3a7507(_0x651ea4[_0x1edf3c(0x22a)]['length'],_0x40f00b),_0x651ea4[_0x1edf3c(0x22a)](_0x14f9d9,_0x40f00b);}};}return Object[_0x208ff3(0x368)](_0x196936,_0x4c0e29),_0x196936;};function _0x3d6f7b(_0x1d6c89,_0x29d4f2,_0x6b0e6=!0x0){const _0x53985f=_0x5e5e22;if(_0x29d4f2===void 0x0)return new Uint8Array(_0x1d6c89);if(_0x139d92(_0x29d4f2,void 0x0,_0x53985f(0x213)),_0x29d4f2[_0x53985f(0x242)]!==_0x1d6c89)throw Error('\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20'+_0x1d6c89+',\x20got:\x20'+_0x29d4f2['length']);if(_0x6b0e6&&!_0x177996(_0x29d4f2))throw Error(_0x53985f(0x411));return _0x29d4f2;}function _0x177996(_0x4c212f){const _0x7698af=_0x5e5e22;return _0x4c212f[_0x7698af(0x376)]%0x4==0x0;}function _0x5614cb(_0x509046){return Uint8Array['from'](_0x139d92(_0x509046));}function _0x73e9e9(_0x22cee1=0x20){const _0x17bdfd=_0x5e5e22;_0x4dad3a(_0x22cee1);let _0x5476b8=typeof globalThis==_0x17bdfd(0x3c8)?globalThis[_0x17bdfd(0x236)]:null;if(typeof(_0x5476b8==null?void 0x0:_0x5476b8[_0x17bdfd(0x4fc)])!='function')throw Error(_0x17bdfd(0x40f));return _0x5476b8[_0x17bdfd(0x4fc)](new Uint8Array(_0x22cee1));}function _0x241ae9(_0x5b326f){const _0x442f4b=_0x5e5e22;if(![0x10,0x18,0x20]['includes'](_0x5b326f[_0x442f4b(0x242)]))throw Error(_0x442f4b(0x278)+_0x5b326f[_0x442f4b(0x242)]);}function _0x2ccea2(_0x3ce8d2){return _0x3ce8d2<<0x1^0x11b&-(_0x3ce8d2>>0x7);}function _0x594cc2(_0x6c7bc8,_0x441f03){let _0x51ad2d=0x0;for(;_0x441f03>0x0;_0x441f03>>=0x1)_0x51ad2d^=_0x6c7bc8&-(_0x441f03&0x1),_0x6c7bc8=_0x2ccea2(_0x6c7bc8);return _0x51ad2d;}let _0x3e6fd2=((()=>{let _0x501a01=new Uint8Array(0x100);for(let _0x32c9c3=0x0,_0x50b043=0x1;_0x32c9c3<0x100;_0x32c9c3++,_0x50b043^=_0x2ccea2(_0x50b043))_0x501a01[_0x32c9c3]=_0x50b043;let _0x35baf4=new Uint8Array(0x100);_0x35baf4[0x0]=0x63;for(let _0x33ca9b=0x0;_0x33ca9b<0xff;_0x33ca9b++){let _0x3c627f=_0x501a01[0xff-_0x33ca9b];_0x3c627f|=_0x3c627f<<0x8,_0x35baf4[_0x501a01[_0x33ca9b]]=(_0x3c627f^_0x3c627f>>0x4^_0x3c627f>>0x5^_0x3c627f>>0x6^_0x3c627f>>0x7^0x63)&0xff;}return _0x1a116c(_0x501a01),_0x35baf4;})()),_0x49e1ec=_0x3e6fd2['map']((_0xaef7b2,_0x3fd5de)=>_0x3e6fd2[_0x5e5e22(0x404)](_0x3fd5de)),_0x3b5859=_0x4c9dd1=>_0x4c9dd1<<0x18|_0x4c9dd1>>>0x8,_0x527f95=_0x5e643c=>_0x5e643c<<0x8|_0x5e643c>>>0x18;function _0x551947(_0x2383af,_0x53cd43){const _0x2adf38=_0x5e5e22;if(_0x2383af['length']!==0x100)throw Error(_0x2adf38(0x3fb));let _0x5b0b6c=new Uint32Array(0x100)['map']((_0x2e7a24,_0x4389fe)=>_0x53cd43(_0x2383af[_0x4389fe])),_0x3fbe2f=_0x5b0b6c[_0x2adf38(0x349)](_0x527f95),_0x75064c=_0x3fbe2f[_0x2adf38(0x349)](_0x527f95),_0x483dba=_0x75064c[_0x2adf38(0x349)](_0x527f95),_0x19e972=new Uint32Array(0x100*0x100),_0x7b7660=new Uint32Array(0x100*0x100),_0x2ff015=new Uint16Array(0x100*0x100);for(let _0x4642a5=0x0;_0x4642a5<0x100;_0x4642a5++)for(let _0x42409c=0x0;_0x42409c<0x100;_0x42409c++){let _0x39b870=_0x4642a5*0x100+_0x42409c;_0x19e972[_0x39b870]=_0x5b0b6c[_0x4642a5]^_0x3fbe2f[_0x42409c],_0x7b7660[_0x39b870]=_0x75064c[_0x4642a5]^_0x483dba[_0x42409c],_0x2ff015[_0x39b870]=_0x2383af[_0x4642a5]<<0x8|_0x2383af[_0x42409c];}return{'sbox':_0x2383af,'sbox2':_0x2ff015,'T0':_0x5b0b6c,'T1':_0x3fbe2f,'T2':_0x75064c,'T3':_0x483dba,'T01':_0x19e972,'T23':_0x7b7660};}let _0x3351cd=_0x551947(_0x3e6fd2,_0x1a3ade=>_0x594cc2(_0x1a3ade,0x3)<<0x18|_0x1a3ade<<0x10|_0x1a3ade<<0x8|_0x594cc2(_0x1a3ade,0x2)),_0x17eb6b=_0x551947(_0x49e1ec,_0x375494=>_0x594cc2(_0x375494,0xb)<<0x18|_0x594cc2(_0x375494,0xd)<<0x10|_0x594cc2(_0x375494,0x9)<<0x8|_0x594cc2(_0x375494,0xe)),_0x29bbf3=((()=>{let _0x469527=new Uint8Array(0x10);for(let _0x392ad8=0x0,_0x283f6e=0x1;_0x392ad8<0x10;_0x392ad8++,_0x283f6e=_0x2ccea2(_0x283f6e))_0x469527[_0x392ad8]=_0x283f6e;return _0x469527;})());function _0x900c51(_0x259939){const _0x33ebd7=_0x5e5e22;_0x139d92(_0x259939);let _0x5500b8=_0x259939[_0x33ebd7(0x242)];_0x241ae9(_0x259939);let {sbox2:_0x3e2d11}=_0x3351cd,_0x54b6f8=[];(!_0x3c590d||!_0x177996(_0x259939))&&_0x54b6f8[_0x33ebd7(0x2e4)](_0x259939=_0x5614cb(_0x259939));let _0x2dbd97=_0x4431af(_0x33a411(_0x259939)),_0x541dca=_0x2dbd97[_0x33ebd7(0x242)],_0x225b63=_0x4d9cff=>_0x112ffe(_0x3e2d11,_0x4d9cff,_0x4d9cff,_0x4d9cff,_0x4d9cff),_0x3d8278=new Uint32Array(_0x5500b8+0x1c);_0x3d8278[_0x33ebd7(0x4ce)](_0x2dbd97);for(let _0x5302bd=_0x541dca;_0x5302bd<_0x3d8278['length'];_0x5302bd++){let _0x2b2d94=_0x3d8278[_0x5302bd-0x1];_0x5302bd%_0x541dca===0x0?_0x2b2d94=_0x225b63(_0x3b5859(_0x2b2d94))^_0x29bbf3[_0x5302bd/_0x541dca-0x1]:_0x541dca>0x6&&_0x5302bd%_0x541dca===0x4&&(_0x2b2d94=_0x225b63(_0x2b2d94)),_0x3d8278[_0x5302bd]=_0x3d8278[_0x5302bd-_0x541dca]^_0x2b2d94;}return _0x1a116c(..._0x54b6f8),_0x3d8278;}function _0x395c82(_0x586c2e){const _0x4589c2=_0x5e5e22;let _0x286621=_0x900c51(_0x586c2e),_0x645372=_0x286621[_0x4589c2(0x4ef)](),_0x2d4e85=_0x286621['length'],{sbox2:_0x397bf6}=_0x3351cd,{T0:_0x28087f,T1:_0x21cf54,T2:_0x45011b,T3:_0x294871}=_0x17eb6b;for(let _0x354359=0x0;_0x354359<_0x2d4e85;_0x354359+=0x4)for(let _0xbd47b2=0x0;_0xbd47b2<0x4;_0xbd47b2++)_0x645372[_0x354359+_0xbd47b2]=_0x286621[_0x2d4e85-_0x354359-0x4+_0xbd47b2];_0x1a116c(_0x286621);for(let _0x453929=0x4;_0x453929<_0x2d4e85-0x4;_0x453929++){let _0x3054b4=_0x645372[_0x453929],_0x1dcfd5=_0x112ffe(_0x397bf6,_0x3054b4,_0x3054b4,_0x3054b4,_0x3054b4);_0x645372[_0x453929]=_0x28087f[_0x1dcfd5&0xff]^_0x21cf54[_0x1dcfd5>>>0x8&0xff]^_0x45011b[_0x1dcfd5>>>0x10&0xff]^_0x294871[_0x1dcfd5>>>0x18];}return _0x645372;}function _0x21f73e(_0x2d6b8d,_0x1c24c2,_0x63b661,_0x259851,_0x17d8d3,_0x1aeff9){return _0x2d6b8d[_0x63b661<<0x8&0xff00|_0x259851>>>0x8&0xff]^_0x1c24c2[_0x17d8d3>>>0x8&0xff00|_0x1aeff9>>>0x18&0xff];}function _0x112ffe(_0x33d171,_0x40a212,_0x5cd65c,_0x102357,_0x56eed8){return _0x33d171[_0x40a212&0xff|_0x5cd65c&0xff00]|_0x33d171[_0x102357>>>0x10&0xff|_0x56eed8>>>0x10&0xff00]<<0x10;}function _0x585d0a(_0x1e7bb1,_0x515a56,_0x53eb6a,_0x2d95d3,_0x5d1e16){const _0x4e3d82=_0x5e5e22;let {sbox2:_0x3e1c5e,T01:_0x5eb25f,T23:_0x2a3881}=_0x3351cd,_0xb974d6=0x0;_0x515a56^=_0x1e7bb1[_0xb974d6++],_0x53eb6a^=_0x1e7bb1[_0xb974d6++],_0x2d95d3^=_0x1e7bb1[_0xb974d6++],_0x5d1e16^=_0x1e7bb1[_0xb974d6++];let _0x4d1324=_0x1e7bb1[_0x4e3d82(0x242)]/0x4-0x2;for(let _0x39affa=0x0;_0x39affa<_0x4d1324;_0x39affa++){let _0x248fb4=_0x1e7bb1[_0xb974d6++]^_0x21f73e(_0x5eb25f,_0x2a3881,_0x515a56,_0x53eb6a,_0x2d95d3,_0x5d1e16),_0x13fd09=_0x1e7bb1[_0xb974d6++]^_0x21f73e(_0x5eb25f,_0x2a3881,_0x53eb6a,_0x2d95d3,_0x5d1e16,_0x515a56),_0x3d7548=_0x1e7bb1[_0xb974d6++]^_0x21f73e(_0x5eb25f,_0x2a3881,_0x2d95d3,_0x5d1e16,_0x515a56,_0x53eb6a),_0x92f820=_0x1e7bb1[_0xb974d6++]^_0x21f73e(_0x5eb25f,_0x2a3881,_0x5d1e16,_0x515a56,_0x53eb6a,_0x2d95d3);_0x515a56=_0x248fb4,_0x53eb6a=_0x13fd09,_0x2d95d3=_0x3d7548,_0x5d1e16=_0x92f820;}return{'s0':_0x1e7bb1[_0xb974d6++]^_0x112ffe(_0x3e1c5e,_0x515a56,_0x53eb6a,_0x2d95d3,_0x5d1e16),'s1':_0x1e7bb1[_0xb974d6++]^_0x112ffe(_0x3e1c5e,_0x53eb6a,_0x2d95d3,_0x5d1e16,_0x515a56),'s2':_0x1e7bb1[_0xb974d6++]^_0x112ffe(_0x3e1c5e,_0x2d95d3,_0x5d1e16,_0x515a56,_0x53eb6a),'s3':_0x1e7bb1[_0xb974d6++]^_0x112ffe(_0x3e1c5e,_0x5d1e16,_0x515a56,_0x53eb6a,_0x2d95d3)};}function _0x1769b1(_0xbd1177,_0x3a8a2e,_0x15af19,_0x4d6e19,_0x26c208){const _0x4771d6=_0x5e5e22;let {sbox2:_0x2d6037,T01:_0x10fb67,T23:_0x1f95f3}=_0x17eb6b,_0x508a83=0x0;_0x3a8a2e^=_0xbd1177[_0x508a83++],_0x15af19^=_0xbd1177[_0x508a83++],_0x4d6e19^=_0xbd1177[_0x508a83++],_0x26c208^=_0xbd1177[_0x508a83++];let _0x4f4dc4=_0xbd1177[_0x4771d6(0x242)]/0x4-0x2;for(let _0x56fd27=0x0;_0x56fd27<_0x4f4dc4;_0x56fd27++){let _0x1cdd64=_0xbd1177[_0x508a83++]^_0x21f73e(_0x10fb67,_0x1f95f3,_0x3a8a2e,_0x26c208,_0x4d6e19,_0x15af19),_0x1f9bd4=_0xbd1177[_0x508a83++]^_0x21f73e(_0x10fb67,_0x1f95f3,_0x15af19,_0x3a8a2e,_0x26c208,_0x4d6e19),_0x4fae2b=_0xbd1177[_0x508a83++]^_0x21f73e(_0x10fb67,_0x1f95f3,_0x4d6e19,_0x15af19,_0x3a8a2e,_0x26c208),_0x1a2349=_0xbd1177[_0x508a83++]^_0x21f73e(_0x10fb67,_0x1f95f3,_0x26c208,_0x4d6e19,_0x15af19,_0x3a8a2e);_0x3a8a2e=_0x1cdd64,_0x15af19=_0x1f9bd4,_0x4d6e19=_0x4fae2b,_0x26c208=_0x1a2349;}return{'s0':_0xbd1177[_0x508a83++]^_0x112ffe(_0x2d6037,_0x3a8a2e,_0x26c208,_0x4d6e19,_0x15af19),'s1':_0xbd1177[_0x508a83++]^_0x112ffe(_0x2d6037,_0x15af19,_0x3a8a2e,_0x26c208,_0x4d6e19),'s2':_0xbd1177[_0x508a83++]^_0x112ffe(_0x2d6037,_0x4d6e19,_0x15af19,_0x3a8a2e,_0x26c208),'s3':_0xbd1177[_0x508a83++]^_0x112ffe(_0x2d6037,_0x26c208,_0x4d6e19,_0x15af19,_0x3a8a2e)};}function _0x47b031(_0x89237e){const _0x22e625=_0x5e5e22;if(_0x139d92(_0x89237e),_0x89237e[_0x22e625(0x242)]%0x10!=0x0)throw Error(_0x22e625(0x2c1));}function _0x362b1a(_0x1d94f0,_0x81cc8b,_0x1dbfcf){const _0x348e67=_0x5e5e22;_0x139d92(_0x1d94f0);let _0x4505fd=_0x1d94f0[_0x348e67(0x242)],_0xd31505=_0x4505fd%0x10;if(!_0x81cc8b&&_0xd31505!==0x0)throw Error(_0x348e67(0x2e6));if(_0x81cc8b){let _0xf19abc=0x10-_0xd31505;_0xf19abc||(_0xf19abc=0x10),_0x4505fd+=_0xf19abc;}_0x1dbfcf=_0x3d6f7b(_0x4505fd,_0x1dbfcf),_0x42c1cd(_0x1d94f0,_0x1dbfcf),(!_0x3c590d||!_0x177996(_0x1d94f0))&&(_0x1d94f0=_0x5614cb(_0x1d94f0));let _0x68931d=_0x33a411(_0x1d94f0);return _0x4431af(_0x68931d),{'b':_0x68931d,'o':_0x33a411(_0x1dbfcf),'out':_0x1dbfcf};}function _0xba7f96(_0x5e9807,_0x563eb6){const _0x2e03ff=_0x5e5e22;if(!_0x563eb6)return _0x5e9807;let _0xf5e593=_0x5e9807[_0x2e03ff(0x242)];if(_0xf5e593===0x0)throw Error(_0x2e03ff(0x291));let _0x929e78=_0x5e9807[_0xf5e593-0x1],_0x1f9ee3=0x1;_0x1f9ee3&=_0x929e78-0x1>>>0x1f^0x1,_0x1f9ee3&=0x10-_0x929e78>>>0x1f^0x1;for(let _0x50d32d=0x0;_0x50d32d<0x10;_0x50d32d++){let _0x1ef1be=_0x50d32d-_0x929e78>>>0x1f,_0x2ffb01=+((_0x5e9807[_0xf5e593-0x1-_0x50d32d]^_0x929e78)===0x0);_0x1f9ee3&=_0x2ffb01|_0x1ef1be^0x1;}if(!_0x1f9ee3)throw Error(_0x2e03ff(0x355));return _0x5e9807[_0x2e03ff(0x21b)](0x0,_0xf5e593-_0x929e78);}function _0x2521ed(_0x48d796){let _0x1d4b0c=new Uint8Array(0x10),_0x47a13a=_0x33a411(_0x1d4b0c);_0x1d4b0c['set'](_0x48d796);let _0xc478ce=0x10-_0x48d796['length'];for(let _0x3eae7b=0x10-_0xc478ce;_0x3eae7b<0x10;_0x3eae7b++)_0x1d4b0c[_0x3eae7b]=_0xc478ce;return _0x47a13a;}let _0x68299a=_0x3cbd57({'blockSize':0x10,'nonceLength':0x10},function(_0x65d0bc,_0x3370eb,_0x1a2650={}){let _0x52c1a7=!_0x1a2650['disablePadding'];return{'encrypt'(_0x43569e,_0x3fbc91){const _0x4740d9=_0x20b8;let _0x3bebd8=_0x900c51(_0x65d0bc),{b:_0x154723,o:_0x4a55fc,out:_0xa1b0e7}=_0x362b1a(_0x43569e,_0x52c1a7,_0x3fbc91),_0x1e7535=_0x3370eb,_0x47c502=[_0x3bebd8];(!_0x3c590d||!_0x177996(_0x1e7535))&&_0x47c502[_0x4740d9(0x2e4)](_0x1e7535=_0x5614cb(_0x1e7535));let _0x2944bd=_0x33a411(_0x1e7535);_0x4431af(_0x2944bd);let _0x50f0e9=_0x2944bd[0x0],_0x1efed0=_0x2944bd[0x1],_0x579410=_0x2944bd[0x2],_0x1d8c5a=_0x2944bd[0x3],_0x179812=0x0;for(;_0x179812+0x4<=_0x154723[_0x4740d9(0x242)];)_0x50f0e9^=_0x154723[_0x179812+0x0],_0x1efed0^=_0x154723[_0x179812+0x1],_0x579410^=_0x154723[_0x179812+0x2],_0x1d8c5a^=_0x154723[_0x179812+0x3],{s0:_0x50f0e9,s1:_0x1efed0,s2:_0x579410,s3:_0x1d8c5a}=_0x585d0a(_0x3bebd8,_0x50f0e9,_0x1efed0,_0x579410,_0x1d8c5a),_0x4a55fc[_0x179812++]=_0x50f0e9,_0x4a55fc[_0x179812++]=_0x1efed0,_0x4a55fc[_0x179812++]=_0x579410,_0x4a55fc[_0x179812++]=_0x1d8c5a;if(_0x52c1a7){let _0x5d1b0d=_0x2521ed(_0x43569e[_0x4740d9(0x21b)](_0x179812*0x4));_0x4431af(_0x5d1b0d),_0x50f0e9^=_0x5d1b0d[0x0],_0x1efed0^=_0x5d1b0d[0x1],_0x579410^=_0x5d1b0d[0x2],_0x1d8c5a^=_0x5d1b0d[0x3],{s0:_0x50f0e9,s1:_0x1efed0,s2:_0x579410,s3:_0x1d8c5a}=_0x585d0a(_0x3bebd8,_0x50f0e9,_0x1efed0,_0x579410,_0x1d8c5a),_0x4a55fc[_0x179812++]=_0x50f0e9,_0x4a55fc[_0x179812++]=_0x1efed0,_0x4a55fc[_0x179812++]=_0x579410,_0x4a55fc[_0x179812++]=_0x1d8c5a;}return _0x4431af(_0x4a55fc),_0x1a116c(..._0x47c502),_0xa1b0e7;},'decrypt'(_0x4ffbbd,_0x1fc596){const _0x58088e=_0x20b8;_0x47b031(_0x4ffbbd);let _0x1c119b=_0x395c82(_0x65d0bc),_0x10d4ab=_0x3370eb,_0x1de46c=[_0x1c119b];(!_0x3c590d||!_0x177996(_0x10d4ab))&&_0x1de46c[_0x58088e(0x2e4)](_0x10d4ab=_0x5614cb(_0x10d4ab));let _0x25ff6e=_0x33a411(_0x10d4ab);_0x4431af(_0x25ff6e),_0x1fc596=_0x3d6f7b(_0x4ffbbd[_0x58088e(0x242)],_0x1fc596),_0x42c1cd(_0x4ffbbd,_0x1fc596),(!_0x3c590d||!_0x177996(_0x4ffbbd))&&_0x1de46c['push'](_0x4ffbbd=_0x5614cb(_0x4ffbbd));let _0x1b2ad5=_0x33a411(_0x4ffbbd),_0x48ec55=_0x33a411(_0x1fc596);_0x4431af(_0x1b2ad5);let _0x2569fc=_0x25ff6e[0x0],_0x129218=_0x25ff6e[0x1],_0x293f63=_0x25ff6e[0x2],_0x297e50=_0x25ff6e[0x3];for(let _0x40d86a=0x0;_0x40d86a+0x4<=_0x1b2ad5['length'];){let _0x5760ef=_0x2569fc,_0x369b0d=_0x129218,_0x1d469a=_0x293f63,_0x428993=_0x297e50;_0x2569fc=_0x1b2ad5[_0x40d86a+0x0],_0x129218=_0x1b2ad5[_0x40d86a+0x1],_0x293f63=_0x1b2ad5[_0x40d86a+0x2],_0x297e50=_0x1b2ad5[_0x40d86a+0x3];let {s0:_0x1c3b37,s1:_0x52581c,s2:_0x6e1120,s3:_0x576d2f}=_0x1769b1(_0x1c119b,_0x2569fc,_0x129218,_0x293f63,_0x297e50);_0x48ec55[_0x40d86a++]=_0x1c3b37^_0x5760ef,_0x48ec55[_0x40d86a++]=_0x52581c^_0x369b0d,_0x48ec55[_0x40d86a++]=_0x6e1120^_0x1d469a,_0x48ec55[_0x40d86a++]=_0x576d2f^_0x428993;}return _0x4431af(_0x48ec55),_0x1a116c(..._0x1de46c),_0xba7f96(_0x1fc596,_0x52c1a7);}};});function _0xd11113(_0x5aac48){const _0x4065f1=_0x5e5e22;let _0x43d1de=atob(_0x5aac48),_0x29aa78=new Uint8Array(_0x43d1de[_0x4065f1(0x242)]);for(let _0x1a5241=0x0;_0x1a5241<_0x43d1de[_0x4065f1(0x242)];_0x1a5241++)_0x29aa78[_0x1a5241]=_0x43d1de[_0x4065f1(0x25a)](_0x1a5241);return _0x29aa78;}function _0x53cf30(_0x59209c){const _0x51a8b6=_0x5e5e22;let _0x50e89a='';for(let _0x159118=0x0;_0x159118<_0x59209c['length'];_0x159118++)_0x50e89a+=String[_0x51a8b6(0x1f1)](_0x59209c[_0x159118]);return btoa(_0x50e89a);}function _0x56cc80(_0x3d8939,_0x2f37ee){const _0x30b300=_0x5e5e22;let _0x564d73=_0xd11113(_0x2f37ee),_0x406962=_0x73e9e9(0x10);return _0x53cf30(_0x4494fc(_0x406962,_0x68299a(_0x564d73,_0x406962)[_0x30b300(0x490)](_0x588247(_0x3d8939))));}function _0xa257db(){const _0x2a5773=_0x5e5e22;let _0x2fe05e=(0x0,_0x98661d[_0x2a5773(0x201)])()[_0x2a5773(0x28e)];if(typeof window<'u'&&window[_0x2a5773(0x498)]!==void 0x0&&_0x2fe05e){let _0xef52d={'time':Math[_0x2a5773(0x2b0)](Date[_0x2a5773(0x412)]()/0x3e8),'domain':location[_0x2a5773(0x308)]};return _0x56cc80(JSON['stringify'](_0xef52d),_0x2fe05e);}}let _0x2ed573=class{constructor(_0x4d23a1){const _0x115969=_0x5e5e22;this[_0x115969(0x283)]=_0x4d23a1,this[_0x115969(0x4bb)]();}[_0x5e5e22(0x4bb)](){const _0x505c17=_0x5e5e22;this[_0x505c17(0x283)][_0x505c17(0x454)]({'interceptor':(_0x1ebe82,_0x50b5d3)=>{const _0x4a6e8a=_0x505c17;let _0x21be9d=_0xa257db();return _0x21be9d&&_0x1ebe82[_0x4a6e8a(0x474)][_0x4a6e8a(0x4ce)](_0x4a6e8a(0x231),_0x21be9d),_0x50b5d3(_0x1ebe82);}});}};_0x2ed573=_0x28d1a4([_0x26ba80(0x0,(0x0,_0x1f27ed['Inject'])(_0x2514fd[_0x5e5e22(0x2e2)]))],_0x2ed573);let _0x58d6e4=class extends _0x1f27ed[_0x5e5e22(0x38a)]{constructor(_0x603f55,_0x2151d7,_0x55815c){const _0x572e42=_0x5e5e22;super(),this[_0x572e42(0x2de)]=_0x603f55,this[_0x572e42(0x3d8)]=_0x2151d7,this['_localCacheService']=_0x55815c,_0x5886a9(this,_0x572e42(0x20b),new _0xd93cf['BehaviorSubject'](null)),_0x5886a9(this,_0x572e42(0x40c),this[_0x572e42(0x20b)][_0x572e42(0x471)]());}async[_0x5e5e22(0x29b)](_0xc13eb5,_0x4c669b,_0x4526cd){const _0x307151=_0x5e5e22;this[_0x307151(0x20b)][_0x307151(0x446)]({'unitId':_0xc13eb5,'type':_0x4c669b});let _0x3f821d=null;switch(_0x4c669b){case _0x1f27ed[_0x307151(0x41c)][_0x307151(0x25c)]:_0x3f821d=await this[_0x307151(0x3d8)]['loadSheet'](_0xc13eb5,_0x4526cd);break;case _0x1f27ed[_0x307151(0x41c)][_0x307151(0x4a5)]:_0x3f821d=await this['_snapshotService'][_0x307151(0x40a)](_0xc13eb5,_0x4526cd);break;default:this[_0x307151(0x2de)][_0x307151(0x4bf)](_0x307151(0x45e),_0x307151(0x222));break;}return _0x3f821d;}async[_0x5e5e22(0x24c)](_0x851358,_0x290a15,_0x3bb9c5){const _0x2222d4=_0x5e5e22;var _0xbdd310;this['_unitInfo$'][_0x2222d4(0x446)]({'unitId':_0x851358,'type':_0x290a15,'subUnitId':_0x3bb9c5});let _0x5b4ff9=0x0,_0x7ac6e3=await((_0xbdd310=this[_0x2222d4(0x321)])==null?void 0x0:_0xbdd310[_0x2222d4(0x45f)](_0x851358));return _0x7ac6e3&&(_0x7ac6e3[_0x2222d4(0x3d3)]||_0x7ac6e3[_0x2222d4(0x3d6)][_0x2222d4(0x242)]!==0x0)&&(_0x5b4ff9=_0x7ac6e3[_0x2222d4(0x2c3)]),_0x5b4ff9===0x0&&this['_logService']['debug']('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x2222d4(0x29b)](_0x851358,_0x290a15,_0x5b4ff9);}};_0x58d6e4=_0x28d1a4([_0x26ba80(0x0,_0x1f27ed[_0x5e5e22(0x304)]),_0x26ba80(0x1,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2b4fec['SnapshotService'])),_0x26ba80(0x2,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x33d8de))],_0x58d6e4);let _0x5cb4c5=class{constructor(_0x9a1b51,_0x5b1459,_0x3df14a){const _0x2d5f76=_0x5e5e22;this[_0x2d5f76(0x283)]=_0x9a1b51,this[_0x2d5f76(0x494)]=_0x5b1459,this['_univerInstanceService']=_0x3df14a,_0x5886a9(this,_0x2d5f76(0x27c),0x0),_0x5886a9(this,'_change$',new _0xd93cf[(_0x2d5f76(0x2c2))]()),_0x5886a9(this,_0x2d5f76(0x4a2),this['_change$']),_0x5886a9(this,'_imageSourceCache',new Map());}[_0x5e5e22(0x2d4)](_0x10b51c){const _0x1faf6e=_0x5e5e22;this[_0x1faf6e(0x27c)]=_0x10b51c,this[_0x1faf6e(0x280)][_0x1faf6e(0x446)](_0x10b51c);}[_0x5e5e22(0x34f)](_0x518e9f,_0x5ec0ce){const _0x1f3579=_0x5e5e22;if(_0x5ec0ce===_0x310bbf[_0x1f3579(0x2ff)][_0x1f3579(0x33e)]){let _0x5315c3=new Image();return _0x5315c3[_0x1f3579(0x332)]=_0x518e9f,_0x5315c3;}return this['_imageSourceCache']['get'](_0x518e9f);}[_0x5e5e22(0x3dc)](_0x16b4ab,_0x4abf47,_0x547230){const _0x584d8d=_0x5e5e22;_0x4abf47===_0x310bbf[_0x584d8d(0x2ff)][_0x584d8d(0x33e)]||_0x547230==null||this[_0x584d8d(0x1ff)][_0x584d8d(0x4ce)](_0x16b4ab,_0x547230);}async[_0x5e5e22(0x293)](_0x41e687){const _0x11e24c=_0x5e5e22;try{let _0x109618=this['_replaceFileID'](this[_0x11e24c(0x2ec)](),''+_0x41e687),_0x24a655=(await this['_httpService'][_0x11e24c(0x31e)](_0x109618))[_0x11e24c(0x2ba)];if(_0x24a655['error']&&_0x24a655[_0x11e24c(0x4bf)]['code']===_0x26034e[_0x11e24c(0x23f)]['OK']){let _0xff542c=(0x0,_0x1f27ed[_0x11e24c(0x29a)])(_0x24a655[_0x11e24c(0x408)],this[_0x11e24c(0x4d7)]());return Promise[_0x11e24c(0x4d5)](_0xff542c);}return Promise[_0x11e24c(0x33c)](_0x24a655['error']);}catch(_0x3601aa){return Promise[_0x11e24c(0x33c)](_0x3601aa);}}async['saveImage'](_0x350732){const _0x79bd75=_0x5e5e22;let _0x55773e='';if(!_0x310bbf['DRAWING_IMAGE_ALLOW_IMAGE_LIST'][_0x79bd75(0x470)](_0x350732[_0x79bd75(0x320)]))return this[_0x79bd75(0x431)](),Promise[_0x79bd75(0x33c)](Error(_0x310bbf['ImageUploadStatusType'][_0x79bd75(0x4d6)]));if(_0x350732[_0x79bd75(0x274)]>(0x0,_0x310bbf[_0x79bd75(0x49b)])())return this[_0x79bd75(0x431)](),Promise[_0x79bd75(0x33c)](Error(_0x310bbf[_0x79bd75(0x4ea)][_0x79bd75(0x326)]));try{let _0x489628=new FormData();_0x489628[_0x79bd75(0x44e)](_0x79bd75(0x3e9),_0x350732);let _0x22a027=this[_0x79bd75(0x45b)][_0x79bd75(0x233)](),_0x4d83c4=_0x22a027==null?void 0x0:_0x22a027[_0x79bd75(0x4d4)]();if(!_0x4d83c4)throw Error(_0x79bd75(0x3c0));let _0xb32fcd=this[_0x79bd75(0x4eb)]()+_0x79bd75(0x313)+_0x350732[_0x79bd75(0x274)][_0x79bd75(0x3a7)]()+_0x79bd75(0x4dc)+_0x26034e[_0x79bd75(0x2aa)][_0x79bd75(0x3a9)]+_0x79bd75(0x4ac)+encodeURIComponent(_0x4d83c4),_0x3ea3f4={'body':_0x489628},_0x617de7=(await this[_0x79bd75(0x283)]['post'](_0xb32fcd,_0x3ea3f4))[_0x79bd75(0x2ba)];if(typeof _0x617de7[_0x79bd75(0x3df)]!='string')return this['_decreaseWaiting'](),Promise['reject'](Error(_0x310bbf[_0x79bd75(0x4ea)]['ERROR_IMAGE']));_0x55773e=_0x617de7[_0x79bd75(0x3df)];}catch{return this['_decreaseWaiting'](),Promise[_0x79bd75(0x33c)](Error(_0x310bbf[_0x79bd75(0x4ea)][_0x79bd75(0x221)]));}return new Promise((_0x12a004,_0x35cdb9)=>{const _0x47ca6c=_0x79bd75;let _0x4cb4a2=new FileReader();_0x4cb4a2[_0x47ca6c(0x479)](_0x350732),_0x4cb4a2[_0x47ca6c(0x240)]=_0xe2fff1=>{const _0x55f3a3=_0x47ca6c;var _0x11325c;let _0x20d002=(_0x11325c=_0xe2fff1[_0x55f3a3(0x4cd)])==null?void 0x0:_0x11325c['result'];if(_0x20d002==null){this[_0x55f3a3(0x431)](),_0x35cdb9(Error(_0x310bbf['ImageUploadStatusType'][_0x55f3a3(0x221)]));return;}_0x12a004({'imageId':(0x0,_0x1f27ed[_0x55f3a3(0x510)])(0x6),'imageSourceType':_0x310bbf['ImageSourceType'][_0x55f3a3(0x409)],'source':_0x55773e,'base64Cache':_0x20d002,'status':_0x310bbf[_0x55f3a3(0x4ea)]['SUCCUSS']}),this[_0x55f3a3(0x431)]();};});}['_getUploadFileURL'](){const _0x532e9d=_0x5e5e22;var _0x482ab7;let _0x315d32=this[_0x532e9d(0x494)]['getConfig'](_0x5df009);return(_0x482ab7=_0x315d32==null?void 0x0:_0x315d32[_0x532e9d(0x36f)])==null?_0x532e9d(0x1fd):_0x482ab7;}[_0x5e5e22(0x2ec)](){const _0x1b833d=_0x5e5e22;var _0x1264d9;let _0x42669a=this[_0x1b833d(0x494)][_0x1b833d(0x45c)](_0x5df009);return(_0x1264d9=_0x42669a==null?void 0x0:_0x42669a[_0x1b833d(0x37a)])==null?'/universer-api/file/{fileID}/sign-url':_0x1264d9;}[_0x5e5e22(0x4d7)](){const _0x4ab64b=_0x5e5e22;var _0x49da31;let _0x2f5c58=this[_0x4ab64b(0x494)]['getConfig'](_0x5df009);return(_0x49da31=_0x2f5c58==null?void 0x0:_0x2f5c58[_0x4ab64b(0x2ee)])==null?location['origin']:_0x49da31;}['_replaceFileID'](_0x448ae7,_0x310622){const _0x3b48ec=_0x5e5e22;return _0x448ae7['replace'](_0x3b48ec(0x218),_0x310622);}[_0x5e5e22(0x431)](){const _0x3d7591=_0x5e5e22;--this['_waitCount'],this[_0x3d7591(0x280)][_0x3d7591(0x446)](this[_0x3d7591(0x27c)]);}};_0x5cb4c5=_0x28d1a4([_0x26ba80(0x0,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2514fd['HTTPService'])),_0x26ba80(0x1,_0x1f27ed[_0x5e5e22(0x506)]),_0x26ba80(0x2,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x50c)]))],_0x5cb4c5);let _0x235451=class{constructor(_0x5f0fdb,_0x400b81){this['_configService']=_0x5f0fdb,this['_HTTPService']=_0x400b81;}[_0x5e5e22(0x3d9)](){const _0x70576a=_0x5e5e22;var _0x2491ed;let _0x3e2a3b=this['_configService'][_0x70576a(0x45c)](_0x5df009);return(_0x2491ed=_0x3e2a3b==null?void 0x0:_0x3e2a3b[_0x70576a(0x3b1)])==null?_0x70576a(0x3a8):_0x2491ed;}async[_0x5e5e22(0x511)](_0x31ecb7){const _0x205276=_0x5e5e22;let _0x2623fc=this['_getAPIPrefixPath']()+_0x205276(0x243);return{'list':[{'title':_0x205276(0x388),'mentions':(await this[_0x205276(0x22f)][_0x205276(0x31e)](_0x2623fc,{'params':{'objectID':_0x31ecb7[_0x205276(0x48f)],'unitID':_0x31ecb7[_0x205276(0x48f)]}}))['body']['collaborators']['map'](_0x5bc737=>({'objectId':_0x5bc737['id'],'name':_0x5bc737[_0x205276(0x225)][_0x205276(0x39c)],'metadata':{'icon':_0x5bc737['subject']['avatar']},'label':_0x5bc737[_0x205276(0x225)]['name'],'objectType':_0x1f27ed[_0x205276(0x282)][_0x205276(0x4ec)]})),'metadata':{},'type':_0x1f27ed[_0x205276(0x282)][_0x205276(0x4ec)]}]};}};_0x235451=_0x28d1a4([_0x26ba80(0x0,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed['IConfigService'])),_0x26ba80(0x1,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2514fd[_0x5e5e22(0x2e2)]))],_0x235451);let _0xe5ea54=class extends _0x1f27ed[_0x5e5e22(0x38a)]{constructor(_0x549dc0,_0x31b084,_0x2d1d7f,_0x24e3d3,_0x571fba){const _0x11e328=_0x5e5e22;super(),this[_0x11e328(0x3af)]=_0x549dc0,this['_univerInstanceService']=_0x31b084,this['_permissionService']=_0x2d1d7f,this[_0x11e328(0x384)]=_0x24e3d3,this[_0x11e328(0x205)]=_0x571fba,this[_0x11e328(0x469)](),this[_0x11e328(0x48e)]();}['_initCloseConn'](){const _0x33e45b=_0x5e5e22;let _0x287740=async _0x266258=>{const _0x1aa0c1=_0x20b8;(await this[_0x1aa0c1(0x384)][_0x1aa0c1(0x46b)](_0x266258))[_0x1aa0c1(0x302)][_0x1aa0c1(0x3e2)]((0x0,_0x4f33c6[_0x1aa0c1(0x24a)])(_0x453169=>_0x453169['eventID']===_0x2b4fec[_0x1aa0c1(0x3e6)]['SHOULD_CLOSE_CONN']),(0x0,_0x4f33c6[_0x1aa0c1(0x2dd)])(this[_0x1aa0c1(0x207)]))[_0x1aa0c1(0x3c1)](_0x1eb368=>{const _0x5bbb72=_0x1aa0c1;let {reason:_0x1fc071}=_0x1eb368[_0x5bbb72(0x4c1)];this[_0x5bbb72(0x205)][_0x5bbb72(0x2a0)]({'id':_0x5bbb72(0x2bb),'data':_0x1fc071}),this[_0x5bbb72(0x28b)][_0x5bbb72(0x379)](new _0x47a016[(_0x5bbb72(0x406))](_0x266258)['id'],!0x1),this[_0x5bbb72(0x384)][_0x5bbb72(0x2d6)](_0x266258);});};(0x0,_0xd93cf[_0x33e45b(0x307)])(this[_0x33e45b(0x45b)]['getTypeOfUnitAdded$'](_0x1f27ed[_0x33e45b(0x41c)][_0x33e45b(0x25c)]),this[_0x33e45b(0x45b)][_0x33e45b(0x3bd)](_0x1f27ed[_0x33e45b(0x41c)]['UNIVER_DOC']))[_0x33e45b(0x3e2)]((0x0,_0x4f33c6[_0x33e45b(0x349)])(_0x1aca92=>_0x1aca92['unit'][_0x33e45b(0x4d4)]()),(0x0,_0x4f33c6[_0x33e45b(0x24a)])(_0x21199d=>!(0x0,_0x1f27ed[_0x33e45b(0x4c7)])(_0x21199d)),(0x0,_0x4f33c6['takeUntil'])(this[_0x33e45b(0x207)]))[_0x33e45b(0x3c1)](_0x2013f8=>{_0x287740(_0x2013f8);});}['_initUnitPermissionChange'](){const _0x1f3730=_0x5e5e22;let _0x47b661=async _0x535344=>{const _0x570dfa=_0x20b8;let _0x3af245=await this[_0x570dfa(0x384)][_0x570dfa(0x46b)](_0x535344),_0x133d3f=this['_injector'][_0x570dfa(0x31e)](_0x47a016[_0x570dfa(0x391)]);_0x3af245[_0x570dfa(0x302)][_0x570dfa(0x3e2)]((0x0,_0x4f33c6[_0x570dfa(0x24a)])(_0x3161c1=>_0x3161c1[_0x570dfa(0x46c)]===_0x2b4fec['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),(0x0,_0x4f33c6[_0x570dfa(0x2dd)])(this[_0x570dfa(0x207)]))[_0x570dfa(0x3c1)](_0x4d51ce=>{const _0x1303f5=_0x570dfa;let {objectId:_0x24962c}=_0x4d51ce[_0x1303f5(0x4c1)];_0x24962c===_0x535344?_0x133d3f['initWorkbookPermissionChange'](_0x535344):_0x133d3f['refreshPermission'](_0x535344,_0x24962c);});};(0x0,_0xd93cf['merge'])(this[_0x1f3730(0x45b)]['getTypeOfUnitAdded$'](_0x1f27ed[_0x1f3730(0x41c)][_0x1f3730(0x25c)]))['pipe']((0x0,_0x4f33c6[_0x1f3730(0x349)])(_0x13b4f7=>_0x13b4f7[_0x1f3730(0x32b)][_0x1f3730(0x4d4)]()),(0x0,_0x4f33c6['filter'])(_0x17e3f4=>!(0x0,_0x1f27ed['isInternalEditorID'])(_0x17e3f4)),(0x0,_0x4f33c6['takeUntil'])(this[_0x1f3730(0x207)]))[_0x1f3730(0x3c1)](_0x3cc17c=>{_0x47b661(_0x3cc17c);});}};_0xe5ea54=_0x28d1a4([_0x26ba80(0x0,(0x0,_0x1f27ed['Inject'])(_0x1f27ed['Injector'])),_0x26ba80(0x1,_0x1f27ed[_0x5e5e22(0x50c)]),_0x26ba80(0x2,_0x1f27ed[_0x5e5e22(0x46d)]),_0x26ba80(0x3,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x3b7eb8)),_0x26ba80(0x4,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2af8d7))],_0xe5ea54);let _0x588cac=class{constructor(_0x1cd064,_0x4e2f08){const _0x205630=_0x5e5e22;this[_0x205630(0x494)]=_0x1cd064,this[_0x205630(0x283)]=_0x4e2f08;}async['getUnitOnRev'](_0x516449,_0x1dcfc1){const _0x250e0b=_0x5e5e22;var _0x5f00fa;let {unitID:_0x41d0a7,type:_0x27b91a,revision:_0x30fdbc=0x0}=_0x1dcfc1,_0x3bf3ce=this[_0x250e0b(0x488)]()+'/'+_0x27b91a+_0x250e0b(0x25f)+_0x41d0a7+_0x250e0b(0x38f)+_0x30fdbc,_0x3360bc=(await this[_0x250e0b(0x283)][_0x250e0b(0x31e)](_0x3bf3ce))[_0x250e0b(0x2ba)],_0xf15429=(_0x5f00fa=_0x3360bc[_0x250e0b(0x458)])==null?void 0x0:_0x5f00fa[_0x250e0b(0x434)];if(_0xf15429){let _0x242eba=_0xf15429==null?void 0x0:_0xf15429['originalMeta'];_0xf15429[_0x250e0b(0x1f5)]=_0x2b4fec[_0x250e0b(0x45a)][_0x250e0b(0x2e1)]((0x0,_0x2b4fec[_0x250e0b(0x487)])(_0x242eba)),Object[_0x250e0b(0x39e)](_0xf15429[_0x250e0b(0x3f2)])['forEach'](([,_0xf2627b])=>{const _0x48fc44=_0x250e0b;let _0x180922=_0xf2627b['originalMeta'];_0xf2627b[_0x48fc44(0x1f5)]=_0x2b4fec[_0x48fc44(0x45a)][_0x48fc44(0x2e1)]((0x0,_0x2b4fec[_0x48fc44(0x487)])(_0x180922));});}return _0x3360bc;}async[_0x5e5e22(0x306)](_0x145148,_0x22d4de){const _0x5bb5d7=_0x5e5e22;let {unitID:_0x3f055d,type:_0x2743a7,blockID:_0x16fb4a}=_0x22d4de,_0x206d7e=this['_getAPIPrefix']()+'/'+_0x2743a7+'/unit/'+_0x3f055d+_0x5bb5d7(0x3dd)+_0x16fb4a;return(await this[_0x5bb5d7(0x283)][_0x5bb5d7(0x31e)](_0x206d7e))[_0x5bb5d7(0x2ba)];}async[_0x5e5e22(0x41e)](_0x24e5a5,_0x4005a0){const _0x724376=_0x5e5e22;let {unitID:_0x48099e,type:_0x32dbfd,blockID:_0x15db3b}=_0x4005a0,_0xdc7f9b=this[_0x724376(0x3c4)]()+_0x724376(0x3dd)+_0x32dbfd+'/unit/'+_0x48099e+'/block/'+_0x15db3b;return(await this[_0x724376(0x283)][_0x724376(0x31e)](_0xdc7f9b))['body'];}async[_0x5e5e22(0x3b9)](_0x309783,_0xf013e3){const _0x678081=_0x5e5e22;let {unitID:_0x80a73c,type:_0x27788b,from:_0x1f4feb,to:_0x435bae}=_0xf013e3,_0x22e4fc=this[_0x678081(0x3c4)]()+'/'+_0x27788b+_0x678081(0x25f)+_0x80a73c+_0x678081(0x3a5)+_0x1f4feb+_0x678081(0x27e)+_0x435bae;return(await this[_0x678081(0x283)][_0x678081(0x31e)](_0x22e4fc))[_0x678081(0x2ba)];}[_0x5e5e22(0x488)](){const _0x969d0c=_0x5e5e22;var _0x410317;return(_0x410317=this[_0x969d0c(0x494)][_0x969d0c(0x45c)](_0x969d0c(0x4d0)))==null?this[_0x969d0c(0x3c4)]():_0x410317;}['_getAPIPrefix'](){const _0x73b817=_0x5e5e22;var _0x26b2df;let _0x6a8eb8=this[_0x73b817(0x494)]['getConfig'](_0x5df009);return(_0x26b2df=_0x6a8eb8==null?void 0x0:_0x6a8eb8[_0x73b817(0x27d)])==null?_0x73b817(0x3be):_0x26b2df;}async[_0x5e5e22(0x36d)](_0x222ca5,_0x3b631d){const _0x28daef=_0x5e5e22;let _0x3e5504=_0x28daef(0x2a4)+_0x3b631d[_0x28daef(0x320)]+_0x28daef(0x25f)+_0x3b631d[_0x28daef(0x3bc)]+_0x28daef(0x2ea);return(await this[_0x28daef(0x283)]['get'](_0x3e5504,{'params':{'resourceId':JSON[_0x28daef(0x298)](_0x3b631d[_0x28daef(0x2f3)])}}))['body'];}['saveSnapshot'](){const _0x595d8f=_0x5e5e22;throw Error(_0x595d8f(0x2dc));}[_0x5e5e22(0x1f8)](){const _0x3dbfdd=_0x5e5e22;throw Error(_0x3dbfdd(0x2dc));}[_0x5e5e22(0x300)](){const _0x3374db=_0x5e5e22;throw Error(_0x3374db(0x2dc));}[_0x5e5e22(0x389)](){const _0x4d079d=_0x5e5e22;throw Error(_0x4d079d(0x2dc));}['copyFileMeta'](){const _0x129a4e=_0x5e5e22;throw Error(_0x129a4e(0x2dc));}[_0x5e5e22(0x3bf)](){const _0x381cc4=_0x5e5e22;throw Error(_0x381cc4(0x2dc));}};_0x588cac=_0x28d1a4([_0x26ba80(0x0,_0x1f27ed[_0x5e5e22(0x506)]),_0x26ba80(0x1,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2514fd[_0x5e5e22(0x2e2)]))],_0x588cac);let _0xdb32aa=class extends _0x1f27ed['LocalUndoRedoService']{constructor(_0x539801,_0x1b19fa,_0xbf9ebe,_0x120232,_0x44c6ff){super(_0x539801,_0x1b19fa,_0xbf9ebe),this['_transformService']=_0x120232,this['_logService']=_0x44c6ff;}['transformUndoRedo'](_0x3ad009,_0x562594){const _0x1b3b35=_0x5e5e22;let _0x46e9ab=this['_getUndoStack'](_0x3ad009);if(_0x46e9ab)try{let _0x49f74c=this['_transformStack'](_0x46e9ab,_0x562594);this[_0x1b3b35(0x29d)](_0x3ad009,_0x49f74c);}catch(_0x5ab8e4){this['_logService'][_0x1b3b35(0x4bf)]('[CollaborationUndoRedoService]',_0x5ab8e4),this[_0x1b3b35(0x318)](_0x3ad009);}let _0x51f46b=this[_0x1b3b35(0x259)](_0x3ad009);if(_0x51f46b)try{let _0x347ed2=this[_0x1b3b35(0x343)](_0x51f46b,_0x562594);this[_0x1b3b35(0x25e)](_0x3ad009,_0x347ed2);}catch(_0x5aa495){this[_0x1b3b35(0x2de)][_0x1b3b35(0x4bf)](_0x5aa495),this[_0x1b3b35(0x48c)](_0x3ad009);}}['_clearUndo'](_0x20d656){const _0x35b3d4=_0x5e5e22;let _0x340a34=this[_0x35b3d4(0x3b3)](_0x20d656);_0x340a34&&(_0x340a34[_0x35b3d4(0x242)]=0x0,this['_updateStatus']());}[_0x5e5e22(0x48c)](_0x12da85){const _0x352d78=_0x5e5e22;let _0x1d8666=this[_0x352d78(0x259)](_0x12da85);_0x1d8666&&(_0x1d8666[_0x352d78(0x242)]=0x0,this[_0x352d78(0x289)]());}['_substituteUndoStack'](_0xfa388f,_0x587a49){const _0x33a28=_0x5e5e22;this[_0x33a28(0x47e)][_0x33a28(0x4ce)](_0xfa388f,_0x587a49),this[_0x33a28(0x289)]();}[_0x5e5e22(0x25e)](_0x22d632,_0x4d095a){const _0x256d3f=_0x5e5e22;this[_0x256d3f(0x4b9)][_0x256d3f(0x4ce)](_0x22d632,_0x4d095a),this[_0x256d3f(0x289)]();}[_0x5e5e22(0x343)](_0x4e0150,_0x1bd2fc){const _0x57bffa=_0x5e5e22;let _0x3e50d5=[],_0x3882be=_0x1bd2fc,_0xca5347=_0x1bd2fc;for(let _0x61b9a5=_0x4e0150[_0x57bffa(0x242)]-0x1;_0x61b9a5>=0x0;_0x61b9a5--){let {unitID:_0x4ad666,undoMutations:_0x2a5201,redoMutations:_0x2b6e4f}=_0x4e0150[_0x61b9a5],_0x2cae6f=this[_0x57bffa(0x344)]['transformMutationsWithChangeset'](_0x3882be,_0x2a5201),_0x25e474=this[_0x57bffa(0x344)][_0x57bffa(0x1f3)](_0xca5347,_0x2b6e4f);if((0x0,_0x2b4fec[_0x57bffa(0x2bd)])(_0x2cae6f)||(0x0,_0x2b4fec[_0x57bffa(0x2bd)])(_0x25e474)){this[_0x57bffa(0x2de)][_0x57bffa(0x4bf)](_0x57bffa(0x3a1),_0x57bffa(0x4ed),_0x2cae6f,_0x25e474);break;}_0x3882be=_0x2cae6f[_0x57bffa(0x246)],_0xca5347=_0x25e474[_0x57bffa(0x246)],_0x3e50d5[_0x57bffa(0x2e4)]({'unitID':_0x4ad666,'undoMutations':_0x2cae6f[_0x57bffa(0x22d)],'redoMutations':_0x25e474[_0x57bffa(0x22d)]});}return _0x3e50d5[_0x57bffa(0x407)]();}};_0xdb32aa=_0x28d1a4([_0x26ba80(0x0,_0x1f27ed[_0x5e5e22(0x50c)]),_0x26ba80(0x1,_0x1f27ed['ICommandService']),_0x26ba80(0x2,_0x1f27ed[_0x5e5e22(0x363)]),_0x26ba80(0x3,_0x2b4fec['ITransformService']),_0x26ba80(0x4,_0x1f27ed['ILogService'])],_0xdb32aa);let _0xb12e48=class extends _0x1f27ed[_0x5e5e22(0x4a0)]{constructor(_0x4abd46={},_0x27a8d2,_0x2ab388,_0x4203e0){const _0xd7e1d9=_0x5e5e22;super(),this['_config']=_0x4abd46,this[_0xd7e1d9(0x2de)]=_0x27a8d2,this[_0xd7e1d9(0x3af)]=_0x2ab388,this['_configService']=_0x4203e0;let {..._0x4bbefb}=(0x0,_0x1f27ed[_0xd7e1d9(0x307)])({},_0x5b799f,_0x4abd46);if(!_0x4bbefb[_0xd7e1d9(0x316)])throw Error(_0xd7e1d9(0x3e5));this['_config']=_0x4bbefb,this['_configService'][_0xd7e1d9(0x3d7)](_0x5df009,_0x4bbefb);}[_0x5e5e22(0x444)](){const _0x19735f=_0x5e5e22;this['_registerDependencies'](),this[_0x19735f(0x31b)]();}[_0x5e5e22(0x34c)](){const _0x5575f4=_0x5e5e22;var _0x2a0b46,_0x330b8a;this[_0x5575f4(0x3af)][_0x5575f4(0x4e1)](_0x1f27ed[_0x5575f4(0x325)])&&this[_0x5575f4(0x2de)][_0x5575f4(0x4bf)]('[UniverCollaborationClientPlugin]',_0x5575f4(0x2ca));let _0x538706=(0x0,_0x1f27ed['mergeOverrideWithDependencies'])([[_0x1f27ed['IUndoRedoService'],{'useClass':_0xdb32aa}],[_0x3b7eb8],[_0x3aba96],[_0x3ede5e],[_0x3e8a84],[_0x2ed573],[_0x5909a8],[_0xe5ea54],[_0x2af8d7],[_0x58d6e4],[_0xb9cf3b,{'useClass':this[_0x5575f4(0x480)][_0x5575f4(0x316)]}],[_0x2b4fec['ISnapshotServerService'],{'useClass':_0x588cac}],[_0x1f27ed[_0x5575f4(0x3b2)],{'useClass':_0x1ac39c}],[_0x310bbf[_0x5575f4(0x372)],{'useClass':_0x5cb4c5}],[_0x1f27ed[_0x5575f4(0x422)],{'useClass':_0x235451}],[_0x4efdf8],[_0x33fd88]],(_0x2a0b46=this[_0x5575f4(0x480)])==null?void 0x0:_0x2a0b46[_0x5575f4(0x290)]);if(!((_0x330b8a=this[_0x5575f4(0x480)])!=null&&_0x330b8a[_0x5575f4(0x2d8)])){let _0x3d2d17=_0x538706[_0x5575f4(0x356)](([_0xd4f8fc])=>_0xd4f8fc===_0xf1640f);_0x3d2d17!==-0x1&&_0x538706['splice'](_0x3d2d17,0x1);}(0x0,_0x1f27ed[_0x5575f4(0x451)])(this[_0x5575f4(0x3af)],_0x538706);}['_initDependencies'](){const _0x58d236=_0x5e5e22;var _0x5baa14,_0x3d1b65;if(this['_injector'][_0x58d236(0x31e)](_0x2514fd[_0x58d236(0x2e2)])[_0x58d236(0x454)]({'priority':0x14,'interceptor':(0x0,_0x2514fd[_0x58d236(0x216)])({'maxParallel':0x6})}),!((_0x5baa14=this['_config'])!=null&&_0x5baa14[_0x58d236(0x33b)])){var _0x506af8;(_0x506af8=this[_0x58d236(0x3af)][_0x58d236(0x31e)](_0x33d8de,_0x1f27ed[_0x58d236(0x359)][_0x58d236(0x426)]))==null||_0x506af8[_0x58d236(0x416)]();}(_0x3d1b65=this[_0x58d236(0x480)])!=null&&_0x3d1b65[_0x58d236(0x323)]&&(0x0,_0x1f27ed['touchDependencies'])(this[_0x58d236(0x3af)],[[_0x3e8a84]]),(0x0,_0x1f27ed[_0x58d236(0x234)])(this['_injector'],[[_0x2ed573],[_0x4efdf8],[_0xe5ea54]]);}};_0x5886a9(_0xb12e48,_0x5e5e22(0x29f),_0x5e5e22(0x3b5)),_0x5886a9(_0xb12e48,_0x5e5e22(0x28f),_0x189f56),_0x5886a9(_0xb12e48,'version',_0x4b9248),_0xb12e48=_0x28d1a4([(0x0,_0x1f27ed['DependentOn'])(_0x98661d[_0x5e5e22(0x214)],_0x2b4fec['UniverCollaborationPlugin'],_0x2514fd[_0x5e5e22(0x371)]),_0x26ba80(0x1,_0x1f27ed[_0x5e5e22(0x304)]),_0x26ba80(0x2,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x271)])),_0x26ba80(0x3,_0x1f27ed[_0x5e5e22(0x506)])],_0xb12e48),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x468),{'enumerable':!0x0,'get':function(){return _0x1ac39c;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x400),{'enumerable':!0x0,'get':function(){return _0x41bca9;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x29c),{'enumerable':!0x0,'get':function(){return _0x2aa7cb;}}),_0x34a032[_0x5e5e22(0x472)]=_0x5df009,Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x475),{'enumerable':!0x0,'get':function(){return _0x4efdf8;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x35f),{'enumerable':!0x0,'get':function(){return _0xe7bc8f;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x4f8),{'enumerable':!0x0,'get':function(){return _0x5cb4c5;}}),Object['defineProperty'](_0x34a032,'CollaborationSession',{'enumerable':!0x0,'get':function(){return _0x56a6c2;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x2a5),{'enumerable':!0x0,'get':function(){return _0x3b7eb8;}}),Object['defineProperty'](_0x34a032,_0x5e5e22(0x2cc),{'enumerable':!0x0,'get':function(){return _0x274b64;}}),_0x34a032[_0x5e5e22(0x3ab)]=_0x5788d6,_0x34a032['CollaborationUIEventId']=_0x3d6a45,_0x34a032[_0x5e5e22(0x4bc)]=_0x2af8d7,Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x264),{'enumerable':!0x0,'get':function(){return _0xdb32aa;}}),_0x34a032[_0x5e5e22(0x2c5)]=_0x5909a8,Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x2ad),{'enumerable':!0x0,'get':function(){return _0x2d8e7b;}}),_0x34a032['DEFAULT_COLLAB_WEB_SOCKET_URL']=_0x505fc1,_0x34a032[_0x5e5e22(0x2eb)]='/universer-api/uniscript',_0x34a032['DEFAULT_WS_SESSION_TICKET_URL']='/universer-api/user/session-ticket',Object[_0x5e5e22(0x2a3)](_0x34a032,'DataLoaderService',{'enumerable':!0x0,'get':function(){return _0x58d6e4;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x4e6),{'enumerable':!0x0,'get':function(){return _0x6949ae;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,'FetchingMissState',{'enumerable':!0x0,'get':function(){return _0x272441;}}),_0x34a032[_0x5e5e22(0x432)]=_0x5e5e22(0x226),_0x34a032[_0x5e5e22(0x350)]=_0x5e5e22(0x365),_0x34a032['ICollaborationSocketService']=_0xb9cf3b,_0x34a032[_0x5e5e22(0x380)]=_0x33d8de,_0x34a032[_0x5e5e22(0x2c4)]=_0x3aac02,_0x34a032[_0x5e5e22(0x3e4)]=_0xf1640f,_0x34a032[_0x5e5e22(0x266)]=0x3e8,_0x34a032[_0x5e5e22(0x257)]=_0x5e5e22(0x266),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x46a),{'enumerable':!0x0,'get':function(){return _0x3aba96;}}),Object['defineProperty'](_0x34a032,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return _0x235451;}}),Object['defineProperty'](_0x34a032,'OfflineState',{'enumerable':!0x0,'get':function(){return _0x73123;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x357),{'enumerable':!0x0,'get':function(){return _0x552ece;}}),_0x34a032[_0x5e5e22(0x460)]=_0x5e5e22(0x4b7),_0x34a032['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x5e5e22(0x4e0),_0x34a032[_0x5e5e22(0x2e3)]=_0x4cf53d,Object[_0x5e5e22(0x2a3)](_0x34a032,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x30b4f8;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x509),{'enumerable':!0x0,'get':function(){return _0x3ede5e;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return _0x588cac;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x20c),{'enumerable':!0x0,'get':function(){return _0x165a95;}}),_0x34a032[_0x5e5e22(0x50f)]=_0x15dbc9,Object['defineProperty'](_0x34a032,_0x5e5e22(0x40d),{'enumerable':!0x0,'get':function(){return _0xb12e48;}}),_0x34a032['deserializeToCombResponse']=_0xc94ca9,_0x34a032[_0x5e5e22(0x208)]=_0x1b3860,_0x34a032['serializeCombRequest']=_0x4e9c33;}));
|
|
1
|
+
function _0x4f27(_0x2e16f6,_0x306e4d){_0x2e16f6=_0x2e16f6-0x1e1;const _0x3d6151=_0x3d61();let _0x4f276f=_0x3d6151[_0x2e16f6];return _0x4f276f;}function _0x3d61(){const _0x2306f1=['&to=','_remoteChangesetQueue','editing\x20status\x20changed\x20to','function','_updateState','[CollaborationUndoRedoService]','BYTES_PER_ELEMENT','_shouldReportTelemetry','/universer-api/comb','SUBMIT_CHANGESET_TIMEOUT','isTransformMutationsWithChangesetSuccess','_decreaseWaiting','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','startTime','stringify','IPermissionService','_updateStatus','Subject','every','_localCacheService','_undoStacks','ReplaySubject','putCollaborators','LocaleService','objects','SOCKET_FAILED_RETRY','_status$','getTypeOfUnitDisposed$','_clearUndo','range','_substituteUndoStack','onRemoteChangeset','saveImage','cipher\x20output\x20not\x20supported','unsubscribe','JOIN_ROOM_FULL','_roomCreated$','_showConflictNotification','OPTIONAL','getFocusedUnit','univer-pro.collaboration-client.single-active-unit-service','isArray','MentionType','call','_getDownloadEndpointURL','splice','BASE64','_onCombEvent','_singleActiveUnitService','_onRemoteRejected','_change$','message$','interceptor','initWorkbookPermissionChange','error','_resendTimer','_waitCount','responseType','ConflictState','_transformRemoteChangesetByIMECache','13076704KVTSiJ','catch','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','SHOULD_CLOSE_CONN','_socketMessageSubscription','min','enableCollaboration','localeService','onMutationExecutedForCollab','EmptyMutationInfo','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','@univerjs-pro/license','_applyRemoteChangeset','JOINING','objectType','subUnitId','requestParams','cfgEnableObjInherit','onTransformSelections','UnitStatus','joinRsp','_handleRemoteChangesets','deserializeToCombResponse','PERMISSION_DENIED','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','unitID','RichTextEditingMutation','copyFileMeta','_members','add','assign','@univerjs/core','getCfgEnableObjInherit','_clearRedo','ERROR_EXCEED_SIZE','onMissingChangesets','_univerInstanceService','_sender','Tools','updateMember','[OfflineState]:\x20received\x20rejection.','addHandlerCallback','getGlobalObject','sid','BehaviorSubject','_collaborationUIEventService','deepClone','_handlerCallback','setWaitCount','_networkConditionService','replace','mapDocumentTypeToUniverInstanceType','_commandService','ICollaborationSocketService','_changesetReqId','amd','location','_listenToNetworkCondition','mergeOverrideWithDependencies','allowed','findIndex','sessionStatus','reject','_entities','status$','aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','getUnitId','_initUnitPermissionChange','telemetry\x20info\x20is\x20not\x20initialized','\x20in\x20_schedule.','/role','&assign=','resolveWithBasePath','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','ERROR_IMAGE_TYPE','CHANGESET_ACK','WorkbookEditablePermission','method','updatePermissionObjEvent','decorate','symbol','@univerjs/drawing','event$','requireSession','_onLocalMutation','_doCreateSocket','href','open$','UniverNetwork','_getUploadFileURL','_startTelemetryCollaborationNewChangeset','getUnitStatus$','JOIN_ROOM_NOT_EXISTS','session.room-cnt-exceeds','_socket$','_startCollaboration','getSheetId','_tryReconnect','@univerjs/telemetry','cmd','session.room-full','encodeURIComponent',',\x20got:\x20','changesets','isView','from','SNAPSHOT_URL_KEY','_onUserJoin','isTransformChangesetsSuccess','_onRemoteACK','src','_replayCachedMutations','_retryConnectingTimer','_sendHeartbeatTimer','compose','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_executeRemoteChangeset','shareReplay','transformMutationsWithChangeset','_acknowledgeAwaiting','reduce','_clearScheduledTask','CollaborationImageIoService','snapshot','fromCollab','append','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_undoRedoService','_telemetryService','_onUserLeave','_isPermissionRej','aes/pkcs7:\x20wrong\x20padding','ITransformService','dispose$','USERS_ENTER','_collaborationSessionService','_localeService','AAD','2130KvcxzE','_instanceService','editingUnit','onStarting','crypto','_toggleOffline','executeCommand','_transformSelections','onRemoteRetry','type','signUrlServerUrl','Injector','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','@univerjs-pro/collaboration','UniverCollaborationClientPlugin','capture','LIVESHARE_OPERATION','unit','incrementRevOfUnit','_type','onTransformIME','_scheduleCollaborationTimeoutTimer','_unlockTransition','CollaborationEvent','output','createInstance','_transformService','originalMeta','MSG_FOR_ERROR','close$','generateRandomId','[OfflineState]:\x20received\x20acknowledgement.','resolve','IContextService','Rectangle','state','packageName','HEARTBEAT_INTERVAL','actions','COMPRESS_MUTATION_APPLY','OFFLINE','toggleOffline','ErrorCode','set','registerHTTPInterceptor','_maxTotalRetryTimeout','csAckEvent','localCacheService','avatar','collabSubmitChangesetUrl','PSEUDO_FETCH_MISSING_RESULT','filter','DEFAULT_FILE_NAME','\x20to\x20','collabWebSocketUrl','getWorkbookSelections','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','readAsDataURL','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','merge','CombCmd','saveChangeset','loadSheet','length=','get','reconnect','[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.','encrypt','origin','collaMsg','saveSnapshot','fill','CHANGESET_SHOULD_RETRY','onload','getRandomValues','data','synced','collaboration_new_changeset','SheetTransformSelectionsService','_removeRoom','update','[CollaborationEntity]','_syncEditingCollabCursor','UniverInstanceType','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','rev','getImage','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','CmdRspCode','UNIVER_COLLABORATION_CLIENT_PLUGIN','/collaborator','NEW_CHANGESETS','transformUndoRedo','_handler','_awaitingChangeset','toggleOnline','ThresholdInterceptorFactory','@univerjs/sheets','floor','_onOffline','/-/object/-/batch_allowed','_timeoutTimer','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','uniscriptRunEvent','onSendChangeset','listCollaborators','disableLocalCache','create','firstValueFrom','encode','getUnit','_roomMembers','_checkMissing','resend','_permissionService','post','CollaborationController','ONLINE','indexOf','unknown','_transformRemoteChangesetByStateCache','_revisionService','MUTATION','CompressMutationService','_acknowledgedAwaitingRevision','getConfig','onTransformState','baseRev','body','ImageSourceType','HELLO','RETRY_CONNECTING_MAX_COUNT','_changesetSessionId','715352FZJnyC','[PendingState]:\x20received\x20rejection.','?url=','UNIVER_DOC','_onRemoteRetry','addImageSourceCache','_members$','[UniverCollaborationClientPlugin]','_onConnectionOpen','_lockTransition','CollaborationSocketService','SheetCollaborationEntity','0.23.0','csShouldRetryEvent','_snapshotServerService','UniverProCollaboration','CLOSE_ROOM','isTransformMutationsWithChangesetFailure','CommentService','max','IConfigService','snapshotServerUrl','NOT_COLLAB','userID','_telemetryInfo','_createHandler','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','slice','c1Prime','_sessionStatus$','onSyncEditingCollabCursor','byteOffset','RevisionService','SnapshotServerOverHTTPService','defineProperty','SheetsSelectionsService','change$','toString','parseChangesetToProtocol','isSafeInteger','_collaborationPaused','_emitMembers','HEARTBEAT','_clearRetryConnectingTimer','JOIN','_transformUndoredo','_isEchoedAwaitingChangeset','AuthzIoHttpService','listRoles','disposeWithMe','{fileID}','crypto.getRandomValues\x20must\x20be\x20defined','now','RECV','unitInfo$','_getAPIPrefix','1184185BteISE','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','removeMember','getCollabEntity','getUnitOnRev','loadUnitOfRevision','_config','People','_onConnectionFailed','result','fetchMissingChangesets','parseProtocolChangeset','clear','onlyLocal','LOCAL_CACHE_INTERVAL','RETRY_CONNECTING_MAX_COUNT_KEY','IUndoRedoService','pipe','pauseCollaboration','getMember','object','getDeserializedSheetBlock','FETCH_MISS','OfflineState','IAuthzIoService','AwaitingWithPendingState','params','USERS_LEAVE','m2Prime','take','LOCAL_CACHE_INTERVAL_KEY','/object','[CollaborationSessionService]','downloadEndpointUrl','univer-pro.collaboration-client-socket-service','IUniverInstanceService','awaitingChangeset','[CollaborationSessionService]:\x20socket\x20error','_clearTimeoutTimer','readyForCollab','delete','updatePermissionPoint','HEARTBEAT_TIMEOUT','expected\x20Uint8Array','eventID','UniverSheets','connection\x20error','Wrong\x20sbox\x20length','selections','b64DecodeUnicode','onRemoteAck','conflict','refreshPermission','_getSendChangesetTimeout','default','IMentionIOService','focused$','pending','@univerjs/docs','IDLE','equals','revision','send','_resendTimeout','POST','CollaborationSession','ERROR_IMAGE','MentionIoHttpService','_initCloseConn','workbook','startsWith','_pendingMutations','[SyncedState]:\x20received\x20acknowledgement.','setCurrentUser','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','exports','missingChangesets','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','duration','takeUntil','appendMutation','version','code','_collabSessionService','disablePadding','string','number','/universer-api/snapshot','map','getLocalCacheKey','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','buffer','UniverCore','_compressMutationService','_retryCount','SessionStatus','_tryEnsureSocket','hostname','/universer-api/snapshot/','toDisposable','x-univer-host','UserManagerService','378gfbiUv','_userManagerService','_replaceFileID','socket\x20open.','rxjs','_sendingTimer','_createInitialState','_fetchMissChangesets','Uint8Array','UniverDrawing','CollaborativeUndoRedoService','liveShareOperation','init','permissionRejEvent','awaiting','COMPRESS_MUTATION_SEND','setConfig','_transitionLocked','csRejEvent','loginUrlKey','loadUnit','ILocalCacheService','HTTPService','_incrementRevisionNumber','/universer-api/oidc/authpage','UNIVER_SHEET','_getCtorByUniverInstanceType','then','session','values',',\x20got\x20','title','tagLength','onRemoteRej','_schedule','getRoom','onCommentUpdate','emitEvent','UnitEmbedded','getActiveSheet','number\x20expected,\x20got\x20','LIVESHARE_FETCH_OPERATIONS','ILogService','_throwTelemetryCollaborationNewChangeset','getCollabEntity$','collaborators','_httpService','getTypeOfUnitAdded$','_getUndoStack','_unitInfo$','FAIL','decrypt','error$','_init','onTransformRemoteChangesetByStateCache','isInternalEditorID','newCsEvent','_scheduleCompleteTimestamp','byteLength','1142646ULJuST','getCurrentSelections','_updateLocalCache','/universer-api/authz','saveSheetBlock','routeKey','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','pluginName','createCollaborator','_joinRoom','_logService','enableSingleActiveInstanceLock','_registerDependencies','OTHER_CLIENTS_EDITING','entries','_snapshotService','SetSelectionsOperation','subarray','SYNCED','push','ImageUploadStatusType','Quantity','_submitChangeset','close','_eventService','getTime','UPDATE_PERMISSION_OBJ','leaveEvent','concatMap','INGEST','list','loadDoc','/fetchmissing?from=','[DataLoaderService]','joinEvent','confirm','_state$','collaboratorID','has','CollaborationUIEventId','PERMISSION_REJ','_transformStack','UniverProCollaborationClient','_initDependencies','[SyncedState]:\x20received\x20rejection.','deleteCollaborator','auth.needGotoLoginAlert','fromCharCode','closeSession','CONFLICT','DocCollaborationEntity','AWAITING','memberID','getInterceptPoints','_commentUpdate$','_clearCollaborationTimeoutTimer','_imageSourceCache','debug','_configService','[FetchMissState]','createSocket','authzUrl','UniverCollaborationPlugin','UniverDocs','IImageIoService','&source=','Plugin','updateOfflineData','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_rescheduleHeartbeat','_onRecvEvent','_transformIMECache','next','members','onTransformRemoteChangesetByIMECache','mutations','_commentService','/universer-api/uniscript','setShowComponents','UniverProtocol','find','Workbook','_HTTPService','PERSON','_sessions','unitId','fetchMiss','setCfgEnableObjInherit','prototype','objectID','headers','session.room-permission-denied','Module','sessionStatus$','ISnapshotServerService','_getRedoStack','ICommandService','_candidateSocket','UniverTelemetry','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','textEncoder','UniverNetworkPlugin','ws://127.0.0.1:8000/universer-api/comb/connect','DependentOn','_waitForHeartbeatResponse','_socketReady','UUID','MemberService','_collaborationTimeoutTimer','resourceIDs','commentUpdate$','SyncedState','@univerjs/network','_exhaustRemoteChangesetQueue','getSnapshotAPIPath','reqId','_unitID','_entityInit$','_onFetchMissResult','apply','_memberService','SOCKET_FAILED','_createSocket','size','isPermissionRej','_socketService','/-/object/list','LIVESHARE_REQUEST_HOST','c2Prime','getOwnPropertyDescriptor','INetworkConditionService','infoRsp','Univer','_resendWithTimeout','CommandType','socketService','liveShareNewHost','?size=','withCredentials','/resources','_sendHeartbeat','transformStack\x20failed!','_onRemoteChangeset','JOIN_ROOM_FAILED','subject','_createInitialStateImpl','invalid\x20output,\x20must\x20be\x20aligned','getCurrentUser','includes','/block/','override','Inject','positive\x20integer\x20expected,\x20got\x20','_clearLocalCache','offline','save\x20fail\x20reason\x20is\x20','createIdentifier','LIVESHARE_TERMINATE','collaboration-client.config','CollaborationStatus','fetchThroughInterceptors','action','_onMessage','onMissedChangesetFetched','_transformAndApplyRemoteChangeset','_stopTelemetryCollaborationNewChangeset','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','[CollaborationSession]','_injector','UNISCRIPT_RUN','getDrawingImageAllowSize','MergeInterceptorFactory','_clearHeartbeatTimer','_toggleOnline','UPDATE_CURSOR','AwaitingState','iterator','getCurrentRevOfUnit','Optional','SUCCUSS','_substituteRedoStack','dispose','length','_redoStacks','onLocalMutation','Disposable','_cfgEnableObjInherit','commentUpdateEvent','asObservable','registerDependencies','updateSnapshot','_socket','RxDisposable','__Key__','awaiting_with_pending','1518352qWikNq','stopTime','LEAVE','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getLatestCsReqIdBySid','reverse','url','shouldCloseConn','_getAPIPrefixPath','_queuedRemoteChangesets','varSizeNonce','unit-cache-','/allowed','name','getValue','Failed\x20to\x20update\x20permission\x20point','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_onJoinRoomEvent','_state','_sheetTransformSelectionsService','batchAllowed','getMemberID','session.room-not-exists','status','_disableEditing','Error\x20on\x20receiving\x20event','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','/unit/','state$','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','SheetPermissionInitController','getUnitType','complete','forEach','[PendingState]:\x20received\x20acknowledgement.','@univerjs/protocol','_getCurrentRevision','COMMENT_UPDATE','ISingleActiveUnitService','_onConflict','[OfflineState]:\x20received\x20changeset.','1494878FUnIZT','FETCH_MISSING','transformChangesets','DisposableCollection','CollaborationEntity','subscribe','submit\x20changeset\x20error!','enableOfflineEditing','fetch_missing','/universer-api/stream/file/upload','FileSource','_acknowledgeAwaitingIfReady','_event$','CollaborationUIEventService','LIVESHARE_NEW_HOST'];_0x3d61=function(){return _0x2306f1;};return _0x3d61();}(function(_0x4a8ac1,_0x39966c){const _0x5ced57=_0x4f27,_0x54ef60=_0x4a8ac1();while(!![]){try{const _0x52b01c=parseInt(_0x5ced57(0x4ad))/0x1+parseInt(_0x5ced57(0x2f0))/0x2+parseInt(_0x5ced57(0x22c))/0x3+parseInt(_0x5ced57(0x474))/0x4+parseInt(_0x5ced57(0x3ef))/0x5*(-parseInt(_0x5ced57(0x1f1))/0x6)+-parseInt(_0x5ced57(0x31a))/0x7+-parseInt(_0x5ced57(0x365))/0x8;if(_0x52b01c===_0x39966c)break;else _0x54ef60['push'](_0x54ef60['shift']());}catch(_0xda2983){_0x54ef60['push'](_0x54ef60['shift']());}}}(_0x3d61,0x99585),function(_0x3d9db0,_0x4be09d){const _0x4140a1=_0x4f27;typeof exports==_0x4140a1(0x4c1)&&typeof module<'u'?_0x4be09d(exports,require(`@univerjs-pro/collaboration`),require(`@univerjs/core`),require(`@univerjs/docs`),require(`@univerjs/sheets`),require(`rxjs`),require(`@univerjs/protocol`),require(`@univerjs/telemetry`),require(`rxjs/operators`),require(`@univerjs/network`),require(`@univerjs-pro/license`),require(`@univerjs/drawing`)):typeof define=='function'&&define[_0x4140a1(0x39c)]?define([_0x4140a1(0x4f8),_0x4140a1(0x3fc),_0x4140a1(0x384),_0x4140a1(0x4e7),_0x4140a1(0x450),_0x4140a1(0x1f5),_0x4140a1(0x314),_0x4140a1(0x3c7),'rxjs/operators',_0x4140a1(0x29c),_0x4140a1(0x370),_0x4140a1(0x3b6)],_0x4be09d):(_0x3d9db0=typeof globalThis<'u'?globalThis:_0x3d9db0||self,_0x4be09d(_0x3d9db0[_0x4140a1(0x256)]={},_0x3d9db0[_0x4140a1(0x483)],_0x3d9db0[_0x4140a1(0x1e7)],_0x3d9db0[_0x4140a1(0x26b)],_0x3d9db0[_0x4140a1(0x4da)],_0x3d9db0['rxjs'],_0x3d9db0[_0x4140a1(0x27b)],_0x3d9db0[_0x4140a1(0x28e)],_0x3d9db0[_0x4140a1(0x1f5)]['operators'],_0x3d9db0[_0x4140a1(0x3bd)],_0x3d9db0['UniverProLicense'],_0x3d9db0[_0x4140a1(0x1fa)]));}(this,function(_0x44d4a3,_0x2b53f2,_0x2dbbd9,_0x13703b,_0x184bfa,_0x4f3716,_0x240cfb,_0x564f5a,_0x2ab3d8,_0x5f56f9,_0x3b77ee,_0x4e927a){const _0x5bf0eb=_0x4f27;Object[_0x5bf0eb(0x497)](_0x44d4a3,Symbol['toStringTag'],{'value':_0x5bf0eb(0x288)});let _0xcb84c1=_0x5bf0eb(0x292),_0x39fe51=0x4e20;function _0x4050ec(_0x29d059){return JSON['stringify'](_0x29d059)['length'];}function _0xfc8cb8(_0x2130fb){'@babel/helpers - typeof';const _0x1315a0=_0x5bf0eb;return _0xfc8cb8=typeof Symbol=='function'&&typeof Symbol[_0x1315a0(0x2dd)]=='symbol'?function(_0x41a841){return typeof _0x41a841;}:function(_0x2ddd85){const _0x3e21cd=_0x1315a0;return _0x2ddd85&&typeof Symbol==_0x3e21cd(0x32c)&&_0x2ddd85['constructor']===Symbol&&_0x2ddd85!==Symbol[_0x3e21cd(0x284)]?_0x3e21cd(0x3b5):typeof _0x2ddd85;},_0xfc8cb8(_0x2130fb);}function _0x162c6b(_0x4e32ad,_0x53b5ad){const _0x1121b6=_0x5bf0eb;if(_0xfc8cb8(_0x4e32ad)!=_0x1121b6(0x4c1)||!_0x4e32ad)return _0x4e32ad;var _0x345db7=_0x4e32ad[Symbol['toPrimitive']];if(_0x345db7!==void 0x0){var _0x45a015=_0x345db7['call'](_0x4e32ad,_0x53b5ad||_0x1121b6(0x4e3));if(_0xfc8cb8(_0x45a015)!='object')return _0x45a015;throw TypeError(_0x1121b6(0x3fb));}return(_0x53b5ad===_0x1121b6(0x502)?String:Number)(_0x4e32ad);}function _0x38d98e(_0x4f90a6){const _0x148d1c=_0x5bf0eb;var _0x1f0161=_0x162c6b(_0x4f90a6,_0x148d1c(0x502));return _0xfc8cb8(_0x1f0161)=='symbol'?_0x1f0161:_0x1f0161+'';}function _0x527b5d(_0x18c19b,_0x4e5475,_0xcaefb0){const _0x20b4d8=_0x5bf0eb;return(_0x4e5475=_0x38d98e(_0x4e5475))in _0x18c19b?Object[_0x20b4d8(0x497)](_0x18c19b,_0x4e5475,{'value':_0xcaefb0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x18c19b[_0x4e5475]=_0xcaefb0,_0x18c19b;}let _0x3c5b62=function(_0x1ee552){const _0x3068ca=_0x5bf0eb;return _0x1ee552['OTHER_CLIENT_EDITING']='OTHER_CLIENT_EDITING',_0x1ee552[_0x3068ca(0x37c)]=_0x3068ca(0x37c),_0x1ee552[_0x3068ca(0x25d)]='CONFLICT',_0x1ee552[_0x3068ca(0x484)]=_0x3068ca(0x484),_0x1ee552[_0x3068ca(0x2bb)]=_0x3068ca(0x2bb),_0x1ee552[_0x3068ca(0x342)]=_0x3068ca(0x342),_0x1ee552['SOCKET_FAILED']=_0x3068ca(0x2a5),_0x1ee552['SUBMIT_CHANGESET_TIMEOUT']=_0x3068ca(0x332),_0x1ee552;}({});var _0x10b08d=class{constructor(){const _0x31917c=_0x5bf0eb;_0x527b5d(this,'_event$',new _0x4f3716[(_0x31917c(0x33a))]()),_0x527b5d(this,_0x31917c(0x3b7),this[_0x31917c(0x326)]['asObservable']());}[_0x5bf0eb(0x216)](_0x33cd3e){const _0x1586b8=_0x5bf0eb;this[_0x1586b8(0x326)][_0x1586b8(0x274)](_0x33cd3e);}},_0x4f6931=class{constructor(){const _0x1c11ba=_0x5bf0eb;_0x527b5d(this,_0x1c11ba(0x262),new _0x4f3716[(_0x1c11ba(0x33a))]()),_0x527b5d(this,_0x1c11ba(0x29a),this['_commentUpdate$']['asObservable']());}[_0x5bf0eb(0x215)](_0x18922a){const _0xc64554=_0x5bf0eb;this[_0xc64554(0x262)][_0xc64554(0x274)](_0x18922a);}};function _0xe72533(_0x5b1ead,_0x1bae47){return function(_0x4c3a49,_0x5d8d98){_0x1bae47(_0x4c3a49,_0x5d8d98,_0x5b1ead);};}function _0x4e6e0f(_0x5a323e,_0x319813,_0x138aca,_0xef2d75){const _0x19530e=_0x5bf0eb;var _0x538153=arguments[_0x19530e(0x2e3)],_0xfa1d3e=_0x538153<0x3?_0x319813:_0xef2d75===null?_0xef2d75=Object[_0x19530e(0x2ad)](_0x319813,_0x138aca):_0xef2d75,_0x3c8dc2;if(typeof Reflect=='object'&&typeof Reflect[_0x19530e(0x3b4)]==_0x19530e(0x32c))_0xfa1d3e=Reflect[_0x19530e(0x3b4)](_0x5a323e,_0x319813,_0x138aca,_0xef2d75);else{for(var _0x5a60fa=_0x5a323e[_0x19530e(0x2e3)]-0x1;_0x5a60fa>=0x0;_0x5a60fa--)(_0x3c8dc2=_0x5a323e[_0x5a60fa])&&(_0xfa1d3e=(_0x538153<0x3?_0x3c8dc2(_0xfa1d3e):_0x538153>0x3?_0x3c8dc2(_0x319813,_0x138aca,_0xfa1d3e):_0x3c8dc2(_0x319813,_0x138aca))||_0xfa1d3e);}return _0x538153>0x3&&_0xfa1d3e&&Object[_0x19530e(0x497)](_0x319813,_0x138aca,_0xfa1d3e),_0xfa1d3e;}let _0xf86089=class extends _0x2dbbd9[_0x5bf0eb(0x2e6)]{constructor(_0x216414,_0xe00463){const _0x121645=_0x5bf0eb;super(),this[_0x121645(0x389)]=_0x216414,this[_0x121645(0x1f2)]=_0xe00463,_0x527b5d(this,_0x121645(0x45e),new Map()),_0x527b5d(this,_0x121645(0x34d),new _0x4f3716[(_0x121645(0x33a))]()),this[_0x121645(0x4a6)]((0x0,_0x4f3716[_0x121645(0x42a)])(this[_0x121645(0x389)][_0x121645(0x344)](_0x2dbbd9[_0x121645(0x442)][_0x121645(0x20a)])[_0x121645(0x4be)]((0x0,_0x2ab3d8[_0x121645(0x1e3)])(_0x528530=>_0x528530[_0x121645(0x3a7)]())),this['_univerInstanceService'][_0x121645(0x344)](_0x2dbbd9[_0x121645(0x442)][_0x121645(0x477)])['pipe']((0x0,_0x2ab3d8[_0x121645(0x1e3)])(_0x371c14=>_0x371c14[_0x121645(0x3a7)]())))[_0x121645(0x31f)](_0x5eff81=>this['_removeRoom'](_0x5eff81)));}['waitForRoom$'](_0x585d09){const _0xa86fa9=_0x5bf0eb;return this['_roomMembers'][_0xa86fa9(0x252)](_0x585d09)?(0x0,_0x4f3716['of'])(this['_roomMembers']['get'](_0x585d09)):this[_0xa86fa9(0x34d)][_0xa86fa9(0x4be)]((0x0,_0x2ab3d8[_0xa86fa9(0x1e3)])(_0x31a9f3=>{if(_0x31a9f3===_0x585d09)return this['_roomMembers']['get'](_0x31a9f3);}));}[_0x5bf0eb(0x4f6)](_0x5e7ce5){const _0x508755=_0x5bf0eb;this[_0x508755(0x1f2)]['setCurrentUser'](_0x5e7ce5);}[_0x5bf0eb(0x2bf)](){const _0x4967d0=_0x5bf0eb;return this[_0x4967d0(0x1f2)]['getCurrentUser']();}[_0x5bf0eb(0x38c)](_0x5b94bc,_0x9fb53f){const _0x44df45=_0x5bf0eb;let _0x250cd4=this[_0x44df45(0x45e)][_0x44df45(0x42f)](_0x5b94bc);_0x250cd4||(_0x250cd4=new _0x1f1a3a(),this[_0x44df45(0x45e)][_0x44df45(0x41a)](_0x5b94bc,_0x250cd4),this[_0x44df45(0x34d)][_0x44df45(0x274)](_0x5b94bc)),_0x250cd4[_0x44df45(0x38c)](_0x9fb53f);}[_0x5bf0eb(0x4af)](_0x5b96ed,_0x2b3c13){const _0x2e1c56=_0x5bf0eb;let _0x151033=this['_roomMembers'][_0x2e1c56(0x42f)](_0x5b96ed);_0x151033&&_0x151033['removeMember'](_0x2b3c13);}[_0x5bf0eb(0x214)](_0x37241c){const _0x3fe673=_0x5bf0eb;return this[_0x3fe673(0x45e)][_0x3fe673(0x42f)](_0x37241c);}[_0x5bf0eb(0x4c0)](_0x2cb0c9,_0x463ae6){let _0x216d7a=this['_roomMembers']['get'](_0x2cb0c9);if(_0x216d7a)return _0x216d7a['getMember'](_0x463ae6);}[_0x5bf0eb(0x43e)](_0x10a667){const _0x2441c4=_0x5bf0eb;let _0x1a9545=this[_0x2441c4(0x45e)][_0x2441c4(0x42f)](_0x10a667);_0x1a9545&&(_0x1a9545[_0x2441c4(0x2e2)](),this['_roomMembers']['delete'](_0x10a667));}[_0x5bf0eb(0x2e2)](){const _0x1cea25=_0x5bf0eb;this[_0x1cea25(0x45e)][_0x1cea25(0x312)](_0x29a10f=>_0x29a10f[_0x1cea25(0x2e2)]()),this['_roomMembers'][_0x1cea25(0x4b9)](),this[_0x1cea25(0x34d)][_0x1cea25(0x311)]();}};_0xf86089=_0x4e6e0f([_0xe72533(0x0,_0x2dbbd9['IUniverInstanceService']),_0xe72533(0x1,(0x0,_0x2dbbd9['Inject'])(_0x2dbbd9[_0x5bf0eb(0x1f0)]))],_0xf86089);var _0x1f1a3a=class extends _0x2dbbd9[_0x5bf0eb(0x2e6)]{constructor(..._0x25a323){const _0x2e3ae7=_0x5bf0eb;super(..._0x25a323),_0x527b5d(this,_0x2e3ae7(0x381),new Map()),_0x527b5d(this,_0x2e3ae7(0x47a),new _0x4f3716[(_0x2e3ae7(0x391))](this[_0x2e3ae7(0x381)])),_0x527b5d(this,'members$',this[_0x2e3ae7(0x47a)]['asObservable']());}['dispose'](){const _0x290d3c=_0x5bf0eb;this[_0x290d3c(0x381)]['clear'](),this[_0x290d3c(0x47a)][_0x290d3c(0x311)]();}[_0x5bf0eb(0x38c)](_0xf146d7){const _0xbc2e18=_0x5bf0eb;this[_0xbc2e18(0x381)][_0xbc2e18(0x41a)](_0xf146d7[_0xbc2e18(0x260)],_0xf146d7),this[_0xbc2e18(0x49e)]();}['removeMember'](_0xf05f35){const _0x249f54=_0x5bf0eb;this['_members'][_0x249f54(0x4d5)](_0xf05f35),this[_0x249f54(0x49e)]();}[_0x5bf0eb(0x4c0)](_0x298545){const _0x1f134c=_0x5bf0eb;return this['_members'][_0x1f134c(0x42f)](_0x298545);}['getAllMembers'](){const _0x36e0a7=_0x5bf0eb;return Array[_0x36e0a7(0x3ce)](this[_0x36e0a7(0x381)][_0x36e0a7(0x20e)]());}[_0x5bf0eb(0x49e)](){const _0xa4549f=_0x5bf0eb;this[_0xa4549f(0x47a)][_0xa4549f(0x274)](this['_members']);}};let _0x45b19d=function(_0xcc59b1){const _0x3ee5eb=_0x5bf0eb;return _0xcc59b1[_0xcc59b1[_0x3ee5eb(0x4e8)]=0x0]=_0x3ee5eb(0x4e8),_0xcc59b1[_0xcc59b1[_0x3ee5eb(0x372)]=0x1]='JOINING',_0xcc59b1[_0xcc59b1[_0x3ee5eb(0x417)]=0x2]=_0x3ee5eb(0x417),_0xcc59b1[_0xcc59b1[_0x3ee5eb(0x464)]=0x3]=_0x3ee5eb(0x464),_0xcc59b1;}({}),_0x6d4b86={[_0x240cfb[_0x5bf0eb(0x447)][_0x5bf0eb(0x223)]]:'session.join-failed',[_0x240cfb['CmdRspCode'][_0x5bf0eb(0x34c)]]:_0x5bf0eb(0x3c9),[_0x240cfb[_0x5bf0eb(0x447)][_0x5bf0eb(0x3c1)]]:_0x5bf0eb(0x307),[_0x240cfb[_0x5bf0eb(0x447)]['JOIN_ROOM_PERMISSION_DENIED']]:_0x5bf0eb(0x287),[_0x240cfb[_0x5bf0eb(0x447)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x5bf0eb(0x3c2)},_0x2fe3e1=class extends _0x2dbbd9[_0x5bf0eb(0x2ed)]{get[_0x5bf0eb(0x3a2)](){const _0x5931a5=_0x5bf0eb;return this[_0x5931a5(0x492)]['getValue']();}constructor(_0x11f55b,_0xa9459f,_0x7b7e60,_0x342bef,_0x36f00f,_0x18d2f2,_0x4bf71d,_0xcf03cc){const _0xe3b717=_0x5bf0eb;super(),this[_0xe3b717(0x2a0)]=_0x11f55b,this[_0xe3b717(0x236)]=_0x7b7e60,this[_0xe3b717(0x266)]=_0x342bef,this[_0xe3b717(0x2a4)]=_0x36f00f,this[_0xe3b717(0x278)]=_0x18d2f2,this[_0xe3b717(0x392)]=_0x4bf71d,this[_0xe3b717(0x3e5)]=_0xcf03cc,_0x527b5d(this,_0xe3b717(0x492),new _0x4f3716[(_0xe3b717(0x391))](0x0)),_0x527b5d(this,_0xe3b717(0x289),this[_0xe3b717(0x492)][_0xe3b717(0x2e9)]()),_0x527b5d(this,'_event$',new _0x4f3716[(_0xe3b717(0x33a))]()),_0x527b5d(this,_0xe3b717(0x3b7),this[_0xe3b717(0x326)][_0xe3b717(0x2e9)]()),_0x527b5d(this,_0xe3b717(0x2ec),void 0x0),_0x527b5d(this,_0xe3b717(0x369),void 0x0),_0x527b5d(this,_0xe3b717(0x298),void 0x0),_0x527b5d(this,_0xe3b717(0x330),!0x1),_0x527b5d(this,'_telemetryInfo',null),this[_0xe3b717(0x330)]=!!this[_0xe3b717(0x3e5)],_0xa9459f['pipe']((0x0,_0x4f3716[_0xe3b717(0x4fc)])(this[_0xe3b717(0x3ea)]))['subscribe'](_0x3fd341=>{const _0x3eca66=_0xe3b717;if(_0x3fd341!==void 0x0){if(this[_0x3eca66(0x2ec)]=_0x3fd341,_0x3fd341)this[_0x3eca66(0x235)](_0x3fd341),this['_socketMessageSubscription']=_0x3fd341[_0x3eca66(0x35c)][_0x3eca66(0x31f)](_0x2637b3=>{const _0x48d644=_0x3eca66;_0x2637b3[_0x48d644(0x231)]===this[_0x48d644(0x2a0)]&&this['_onCombEvent'](_0x2637b3);});else{var _0x578fa7;this[_0x3eca66(0x21c)](),this[_0x3eca66(0x492)][_0x3eca66(0x274)](0x2),(_0x578fa7=this['_socketMessageSubscription'])==null||_0x578fa7[_0x3eca66(0x34b)](),this[_0x3eca66(0x369)]=null;}}});}['getMemberID'](){const _0x156c2d=_0x5bf0eb;var _0x417a5b,_0x286176;return(_0x417a5b=(_0x286176=this[_0x156c2d(0x2ec)])==null?void 0x0:_0x286176[_0x156c2d(0x260)])==null?null:_0x417a5b;}[_0x5bf0eb(0x2e2)](){const _0x2c4eb5=_0x5bf0eb;super['dispose'](),this[_0x2c4eb5(0x243)](),this[_0x2c4eb5(0x3ea)][_0x2c4eb5(0x274)](),this[_0x2c4eb5(0x3ea)][_0x2c4eb5(0x311)]();}[_0x5bf0eb(0x243)](){const _0x246251=_0x5bf0eb;var _0x8537ad,_0x35cf22;this['_throwTelemetryCollaborationNewChangeset'](),(_0x8537ad=this[_0x246251(0x2ec)])==null||_0x8537ad[_0x246251(0x4eb)]({'cmd':_0x240cfb['CombCmd'][_0x246251(0x2f2)],'data':{'roomID':this['_unitID']}}),(_0x35cf22=this[_0x246251(0x2ec)])==null||_0x35cf22[_0x246251(0x243)](),this['_event$'][_0x246251(0x311)](),this[_0x246251(0x492)][_0x246251(0x311)]();}[_0x5bf0eb(0x358)](_0x184466){const _0x5754aa=_0x5bf0eb;_0x184466[_0x5754aa(0x3c8)]===_0x240cfb['CombCmd'][_0x5754aa(0x4a1)]?this[_0x5754aa(0x302)](_0x184466):_0x184466['cmd']===_0x240cfb[_0x5754aa(0x42b)]['RECV']&&this[_0x5754aa(0x272)](_0x184466);}['_joinRoom'](_0x2b8eaf){const _0x2f22a9=_0x5bf0eb;this[_0x2f22a9(0x492)]['next'](0x1),_0x2b8eaf[_0x2f22a9(0x4eb)]({'cmd':_0x240cfb[_0x2f22a9(0x42b)]['JOIN'],'routeKey':this[_0x2f22a9(0x2a0)],'routeType':'','data':{'rooms':[{'roomID':this[_0x2f22a9(0x2a0)]}]}});}[_0x5bf0eb(0x302)](_0x5c0764){const _0x50da25=_0x5bf0eb;var _0x59c848;if(_0x5c0764[_0x50da25(0x4ff)]in _0x6d4b86){this[_0x50da25(0x392)]['emitEvent']({'id':'JOIN_ROOM_FAILED','data':_0x6d4b86[_0x5c0764[_0x50da25(0x4ff)]]}),this[_0x50da25(0x492)][_0x50da25(0x274)](0x2);return;}this[_0x50da25(0x492)][_0x50da25(0x274)](0x3);let _0x31ade4=(_0x59c848=_0x5c0764[_0x50da25(0x43a)]['roomInfos'][this[_0x50da25(0x2a0)]])==null?void 0x0:_0x59c848[_0x50da25(0x275)];_0x31ade4&&_0x31ade4['forEach'](_0x12a783=>this['_memberService']['updateMember'](this[_0x50da25(0x2a0)],_0x12a783));}[_0x5bf0eb(0x272)](_0x507ee6){const _0x2c4725=_0x5bf0eb;try{let _0x11077a=_0x507ee6[_0x2c4725(0x43a)];switch(_0x11077a[_0x2c4725(0x4d9)]){case _0x2b53f2[_0x2c4725(0x406)][_0x2c4725(0x3eb)]:this[_0x2c4725(0x3d0)](_0x11077a),this['_event$'][_0x2c4725(0x274)](_0x11077a);break;case _0x2b53f2['CollaborationEvent'][_0x2c4725(0x4c8)]:this[_0x2c4725(0x3e6)](_0x11077a),this[_0x2c4725(0x326)]['next'](_0x11077a);break;case _0x2b53f2[_0x2c4725(0x406)][_0x2c4725(0x3b0)]:case _0x2b53f2[_0x2c4725(0x406)][_0x2c4725(0x437)]:this[_0x2c4725(0x2d1)](),this[_0x2c4725(0x263)](),this['_event$'][_0x2c4725(0x274)](_0x11077a);break;case _0x2b53f2['CollaborationEvent'][_0x2c4725(0x40b)]:this[_0x2c4725(0x236)][_0x2c4725(0x35f)](_0x2c4725(0x2c7)+JSON['stringify'](_0x11077a)),this[_0x2c4725(0x326)]['next'](_0x11077a);break;case _0x2b53f2['CollaborationEvent']['COMMENT_UPDATE']:this[_0x2c4725(0x278)][_0x2c4725(0x215)](_0x11077a['data']),this['_event$'][_0x2c4725(0x274)](_0x11077a);break;default:this['_event$']['next'](_0x11077a);}}catch(_0x52ffc9){this[_0x2c4725(0x236)][_0x2c4725(0x35f)](_0x52ffc9,_0x507ee6);}}['_onUserJoin'](_0x389fea){const _0x50ca90=_0x5bf0eb;this[_0x50ca90(0x2a4)]['updateMember'](this[_0x50ca90(0x2a0)],_0x389fea[_0x50ca90(0x43a)]);}[_0x5bf0eb(0x3e6)](_0x38c33c){const _0x34bbb3=_0x5bf0eb;this[_0x34bbb3(0x2a4)]['removeMember'](this[_0x34bbb3(0x2a0)],_0x38c33c[_0x34bbb3(0x43a)][_0x34bbb3(0x260)]);}async['send'](_0x2dc9bf,_0x2eec20){const _0x349b0b=_0x5bf0eb;if(this[_0x349b0b(0x3a2)]!==0x3||!this[_0x349b0b(0x2ec)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x2dc9bf[_0x349b0b(0x4d9)]===_0x2b53f2[_0x349b0b(0x406)]['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x349b0b(0x3bf)](_0x2dc9bf)),this['_socket']['send']({'cmd':_0x240cfb[_0x349b0b(0x42b)][_0x349b0b(0x249)],'routeKey':_0x2eec20,'routeType':'','data':_0x2dc9bf});}catch(_0x2bec92){this[_0x349b0b(0x236)][_0x349b0b(0x35f)](_0x2bec92);}}[_0x5bf0eb(0x404)](){const _0x52bef3=_0x5bf0eb;var _0x5d2d42;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x101e9f=_0x4f27;this[_0x101e9f(0x298)]=null,this[_0x101e9f(0x392)][_0x101e9f(0x216)]({'id':_0x101e9f(0x332)});},(_0x5d2d42=this[_0x52bef3(0x266)][_0x52bef3(0x46c)]('HEARTBEAT_TIMEOUT'))==null?_0x39fe51:_0x5d2d42);}[_0x5bf0eb(0x263)](){const _0xc01f9c=_0x5bf0eb;this[_0xc01f9c(0x298)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0xc01f9c(0x298)]=null);}[_0x5bf0eb(0x3bf)](_0x29adaa){const _0x26f6d6=_0x5bf0eb;if(!this[_0x26f6d6(0x330)])return;let {data:_0x277a88}=_0x29adaa,{unitID:_0x1f37d4,changeset:_0x433e0e}=_0x277a88,{mutations:_0x4aaab6,type:_0x522b3b}=_0x433e0e;this['_telemetryInfo']={'unitId':_0x1f37d4,'type':_0x522b3b,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x4050ec(_0x4aaab6)};}[_0x5bf0eb(0x2d1)](){const _0x1dd0f7=_0x5bf0eb;if(this[_0x1dd0f7(0x330)]){if(!this[_0x1dd0f7(0x48c)]){this[_0x1dd0f7(0x236)]['error']('[CollaborationSession]',_0x1dd0f7(0x3a9));return;}this['_telemetryInfo'][_0x1dd0f7(0x2f1)]=performance[_0x1dd0f7(0x4a9)](),this[_0x1dd0f7(0x48c)][_0x1dd0f7(0x4fb)]=this['_telemetryInfo'][_0x1dd0f7(0x2f1)]-this[_0x1dd0f7(0x48c)][_0x1dd0f7(0x336)],this['_telemetryService'][_0x1dd0f7(0x3fe)](_0x1dd0f7(0x43c),this[_0x1dd0f7(0x48c)]),this[_0x1dd0f7(0x48c)]=null;}}[_0x5bf0eb(0x21c)](){this['_telemetryInfo']=null;}};_0x2fe3e1=_0x4e6e0f([_0xe72533(0x2,_0x2dbbd9[_0x5bf0eb(0x21b)]),_0xe72533(0x3,_0x2dbbd9[_0x5bf0eb(0x488)]),_0xe72533(0x4,(0x0,_0x2dbbd9['Inject'])(_0xf86089)),_0xe72533(0x5,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x4f6931)),_0xe72533(0x6,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x10b08d)),_0xe72533(0x7,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x564f5a['ITelemetryService']))],_0x2fe3e1);let _0x36e220=(0x0,_0x2dbbd9['createIdentifier'])('collaboration-client.local-cache-service');function _0x41fc85(_0x4d2b68){const _0x1b4298=_0x5bf0eb;return _0x1b4298(0x2fb)+_0x4d2b68;}function _0x3aa1a3(_0xe88341){const _0x5c556e=_0x5bf0eb;let {unitID:_0x3e8d4f,mutations:_0x2ae15c}=_0xe88341;return{'unitId':_0x3e8d4f,'subUnitId':_0x2ae15c[_0x5c556e(0x2e3)]>0x0?_0x2ae15c[0x0]['params'][_0x5c556e(0x374)]:null};}let _0x53e950=class{constructor(_0x5ec547,_0x8b0ec8,_0x32c214){const _0x46f684=_0x5bf0eb;this[_0x46f684(0x2d5)]=_0x5ec547,this[_0x46f684(0x409)]=_0x8b0ec8,this[_0x46f684(0x3f0)]=_0x32c214;}['transformSelections'](_0x10fa0a){const _0x1c0356=_0x5bf0eb;var _0x594bff,_0x212663;let _0x58416c=this[_0x1c0356(0x2d5)][_0x1c0356(0x42f)](_0x184bfa[_0x1c0356(0x498)]),{unitId:_0x5486bc,subUnitId:_0x54a04a}=_0x3aa1a3(_0x10fa0a),_0x4bb167=_0x58416c==null?void 0x0:_0x58416c[_0x1c0356(0x426)](_0x5486bc)[_0x1c0356(0x22d)](),_0x4437dc=(_0x594bff=this[_0x1c0356(0x3f0)][_0x1c0356(0x45d)](_0x5486bc))==null||(_0x594bff=_0x594bff[_0x1c0356(0x218)]())==null?void 0x0:_0x594bff[_0x1c0356(0x3c5)]();if(_0x4bb167['length']===0x0||!_0x5486bc||!_0x54a04a)return;let _0x5fa596=[{'id':_0x184bfa[_0x1c0356(0x23c)]['id'],'params':{'unitId':_0x5486bc,'subUnitId':_0x4437dc,'selections':_0x2dbbd9[_0x1c0356(0x38b)][_0x1c0356(0x393)](_0x4bb167)}}],_0x3bf10f=this['_transformService'][_0x1c0356(0x3db)](_0x10fa0a,_0x5fa596);if(!(0x0,_0x2b53f2['isTransformMutationsWithChangesetSuccess'])(_0x3bf10f))throw _0x3bf10f[_0x1c0356(0x35f)];let _0x100683=(_0x212663=_0x3bf10f[_0x1c0356(0x4c9)][0x0])==null||(_0x212663=_0x212663[_0x1c0356(0x4c7)])==null?void 0x0:_0x212663[_0x1c0356(0x4dd)];if(Array[_0x1c0356(0x352)](_0x100683)&&_0x100683[_0x1c0356(0x2e3)]){if(_0x100683['length']===_0x5fa596[0x0][_0x1c0356(0x4c7)]['selections']['length']&&_0x100683[_0x1c0356(0x33b)]((_0xb29e1,_0x142396)=>_0x2dbbd9[_0x1c0356(0x411)][_0x1c0356(0x4e9)](_0xb29e1[_0x1c0356(0x346)],_0x5fa596[0x0][_0x1c0356(0x4c7)][_0x1c0356(0x4dd)][_0x142396][_0x1c0356(0x346)])))return;this['_injector'][_0x1c0356(0x42f)](_0x2dbbd9[_0x1c0356(0x28c)])[_0x1c0356(0x3f5)](_0x184bfa[_0x1c0356(0x23c)]['id'],{'unitId':_0x5486bc,'subUnitId':_0x4437dc,'selections':_0x100683});}}};_0x53e950=_0x4e6e0f([_0xe72533(0x0,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x3fa)])),_0xe72533(0x1,_0x2b53f2['ITransformService']),_0xe72533(0x2,_0x2dbbd9['IUniverInstanceService'])],_0x53e950);let _0x268fcd=(0x0,_0x2dbbd9[_0x5bf0eb(0x2c8)])(_0x5bf0eb(0x351)),_0x26ce4c=function(_0x4bf5ba){const _0x214c43=_0x5bf0eb;return _0x4bf5ba[_0x4bf5ba['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x4bf5ba[_0x4bf5ba[_0x214c43(0x239)]=0x1]=_0x214c43(0x239),_0x4bf5ba;}({}),_0x2a84dd=_0x5bf0eb(0x2ca);Symbol(_0x2a84dd);let _0x3b8dd5={};function _0x4a422f(_0x4445ac){const _0x390d88=_0x5bf0eb;var _0x147600;return!!((_0x147600=_0x4445ac[_0x390d88(0x4c7)])!=null&&_0x147600['__splitChunk__']);}let _0x2e926e=new Set([_0x184bfa['InsertSheetMutation']['id']]);function _0x1f473b(_0x1e4571,_0x323d1b,_0x3b6b46,_0x52313,_0x582075){const _0x18bd32=_0x5bf0eb;var _0x1b6aab,_0x233f67,_0x4af70a,_0x3eea2c;let _0x58a855=[];for(let _0x59133c of _0x1e4571){if(_0x2e926e[_0x18bd32(0x252)](_0x59133c['id'])){if(_0x58a855[_0x18bd32(0x2e3)]>0x0)break;_0x58a855[_0x18bd32(0x23f)](_0x59133c);break;}if(_0x4a422f(_0x59133c)){if(_0x58a855['length']>0x0)break;_0x58a855[_0x18bd32(0x23f)](_0x59133c);break;}_0x58a855[_0x18bd32(0x23f)](_0x59133c);}let _0x15a150=(_0x1b6aab=(_0x233f67=_0x582075['getCurrentUser']())==null?void 0x0:_0x233f67[_0x18bd32(0x48b)])==null?_0x18bd32(0x466):_0x1b6aab,_0x4431a1=(_0x4af70a=(_0x3eea2c=_0x582075[_0x18bd32(0x2bf)]())==null?void 0x0:_0x3eea2c['memberID'])==null?_0x18bd32(0x466):_0x4af70a;return{'changeset':{'unitID':_0x323d1b,'type':(0x0,_0x2b53f2[_0x18bd32(0x398)])(_0x3b6b46[_0x18bd32(0x310)](_0x323d1b)),'baseRev':_0x52313[_0x18bd32(0x2de)](_0x323d1b),'revision':0x0,'userID':_0x15a150,'memberID':_0x4431a1,'mutations':_0x58a855},'pendingMutations':_0x1e4571[_0x18bd32(0x490)](_0x58a855['length'])};}function _0x11ffe5(_0x703780,_0x1b18fb,_0x48a55e,_0x5da3c5,_0x4f0efa){const _0x29d202=_0x5bf0eb;var _0x137bb5,_0x306313,_0x4ba8aa,_0x21d5cc;let _0x794028=[_0x703780[_0x29d202(0x3dd)]((_0x4d9742,_0xc6d097)=>{const _0x515aab=_0x29d202;var _0x3ce79f;let {id:_0x938f85}=_0x4d9742,{id:_0x5341ad,type:_0x39081e}=_0xc6d097,_0x236cee=(_0x3ce79f=_0x4d9742[_0x515aab(0x4c7)])==null?{'actions':null}:_0x3ce79f,_0x2cf092=_0xc6d097[_0x515aab(0x4c7)];if(_0x938f85&&_0x938f85!==_0x5341ad)throw Error(_0x515aab(0x301)+_0x938f85+'\x20-\x20'+_0x5341ad+'.');return{..._0x4d9742,'id':_0x5341ad,'type':_0x39081e,'params':{'unitId':_0x2cf092[_0x515aab(0x281)],'textRanges':_0x2cf092['textRanges'],'actions':_0x2dbbd9['JSONX'][_0x515aab(0x3d7)](_0x236cee['actions'],_0x2cf092[_0x515aab(0x415)])}};},{})],_0x55b906=(_0x137bb5=(_0x306313=_0x4f0efa[_0x29d202(0x2bf)]())==null?void 0x0:_0x306313[_0x29d202(0x48b)])==null?_0x29d202(0x466):_0x137bb5,_0x358615=(_0x4ba8aa=(_0x21d5cc=_0x4f0efa[_0x29d202(0x2bf)]())==null?void 0x0:_0x21d5cc[_0x29d202(0x260)])==null?_0x29d202(0x466):_0x4ba8aa;return{'changeset':{'unitID':_0x1b18fb,'type':(0x0,_0x2b53f2['mapDocumentTypeToUniverInstanceType'])(_0x48a55e[_0x29d202(0x310)](_0x1b18fb)),'baseRev':_0x5da3c5[_0x29d202(0x2de)](_0x1b18fb),'revision':0x0,'userID':_0x55b906,'memberID':_0x358615,'mutations':_0x794028},'pendingMutations':[]};}function _0x328c98(_0x2198a5,_0x142c6c){const _0x407b94=_0x5bf0eb;let _0x133d69=new _0x4f3716[(_0x407b94(0x33e))](0x1);return setTimeout(()=>_0x133d69[_0x407b94(0x274)](_0x142c6c),_0x2198a5),_0x133d69[_0x407b94(0x2e9)]()['pipe']((0x0,_0x4f3716[_0x407b94(0x4ca)])(0x1));}var _0x1b0a99,_0x379970,_0x23a599;let _0x41a59c=function(_0x4cc6e7){const _0xd68850=_0x5bf0eb;return _0x4cc6e7[_0xd68850(0x48a)]='not_collab',_0x4cc6e7[_0xd68850(0x23e)]=_0xd68850(0x43b),_0x4cc6e7['PENDING']=_0xd68850(0x4e6),_0x4cc6e7[_0xd68850(0x25f)]=_0xd68850(0x1ff),_0x4cc6e7['AWAITING_WITH_PENDING']='awaiting_with_pending',_0x4cc6e7[_0xd68850(0x4c3)]=_0xd68850(0x322),_0x4cc6e7[_0xd68850(0x25d)]=_0xd68850(0x4e0),_0x4cc6e7['OFFLINE']=_0xd68850(0x2c6),_0x4cc6e7;}({}),_0x29e294=0x4e20,_0xe13796=0x2bf20;var _0x48f410=class{constructor(_0x13c4c6,_0x58520f,_0x370c2a,_0x5043a6,_0x515458,_0x390816,_0x269030,_0x2bee60,_0x3611ab){const _0x1bb001=_0x5bf0eb;this['unitID']=_0x13c4c6,this[_0x1bb001(0x3f8)]=_0x58520f,this[_0x1bb001(0x44c)]=_0x515458,this[_0x1bb001(0x399)]=_0x390816,this[_0x1bb001(0x3e4)]=_0x269030,this[_0x1bb001(0x468)]=_0x2bee60,this[_0x1bb001(0x33c)]=_0x3611ab,_0x527b5d(this,_0x1bb001(0x44d),null),_0x527b5d(this,_0x1bb001(0x4f4),[]),this[_0x1bb001(0x44d)]=_0x370c2a,this[_0x1bb001(0x4f4)]=_0x5043a6;}['_checkMissing'](_0x55fcbd){const _0x100019=_0x5bf0eb;let _0x39f362=this[_0x100019(0x468)][_0x100019(0x2de)](this[_0x100019(0x37e)]);return _0x55fcbd['revision']>_0x39f362+0x1?(this[_0x100019(0x44c)][_0x100019(0x388)]({'from':_0x39f362,'to':_0x55fcbd[_0x100019(0x4ea)]-0x1}),!0x0):!0x1;}[_0x5bf0eb(0x4a2)](_0x1efb32){const _0x449ac4=_0x5bf0eb;this[_0x449ac4(0x3e4)][_0x449ac4(0x44b)](this[_0x449ac4(0x37e)],_0x1efb32);}[_0x5bf0eb(0x3f6)](_0x5c42cc){const _0x1dd361=_0x5bf0eb;var _0x103ebc,_0x313144;(_0x103ebc=(_0x313144=this[_0x1dd361(0x44c)])['onTransformSelections'])==null||_0x103ebc['call'](_0x313144,_0x5c42cc);}[_0x5bf0eb(0x273)](_0x3de3dd){const _0x159955=_0x5bf0eb;var _0x5f1a0e,_0x418354;return(_0x5f1a0e=(_0x418354=this[_0x159955(0x44c)])[_0x159955(0x403)])==null?void 0x0:_0x5f1a0e[_0x159955(0x354)](_0x418354,_0x3de3dd);}['_transformStateCache'](_0x2a27f8){const _0x8403d5=_0x5bf0eb;var _0x26f72f,_0x5bcef0;return(_0x26f72f=(_0x5bcef0=this[_0x8403d5(0x44c)])[_0x8403d5(0x46d)])==null?void 0x0:_0x26f72f[_0x8403d5(0x354)](_0x5bcef0,_0x2a27f8);}[_0x5bf0eb(0x364)](_0x443c51){const _0x19f2d2=_0x5bf0eb;var _0xf5eca0,_0xbc319,_0x12b519;return(_0xf5eca0=(_0xbc319=(_0x12b519=this['_handler'])[_0x19f2d2(0x276)])==null?void 0x0:_0xbc319['call'](_0x12b519,_0x443c51))==null?_0x443c51:_0xf5eca0;}[_0x5bf0eb(0x467)](_0x5bca5e){const _0x17a2f6=_0x5bf0eb;var _0x4ff7d6,_0x37a702,_0x3f8d35;return(_0x4ff7d6=(_0x37a702=(_0x3f8d35=this[_0x17a2f6(0x44c)])[_0x17a2f6(0x227)])==null?void 0x0:_0x37a702[_0x17a2f6(0x354)](_0x3f8d35,_0x5bca5e))==null?_0x5bca5e:_0x4ff7d6;}[_0x5bf0eb(0x441)](_0x5c72b9){const _0x4b8917=_0x5bf0eb;if(this['type']===_0x2dbbd9['UniverInstanceType'][_0x4b8917(0x477)]){let {unitID:_0x1716aa,mutations:_0x5aee5c,memberID:_0x52c5a9}=_0x5c72b9,_0x52b9bc=_0x5aee5c[_0x4b8917(0x2e3)]>0x0?_0x5aee5c[0x0][_0x4b8917(0x4c7)]['textRanges']:[];if(Array[_0x4b8917(0x352)](_0x52b9bc)&&_0x52b9bc[_0x4b8917(0x2e3)]>0x0){var _0x54670a,_0x455fd5;(_0x54670a=(_0x455fd5=this[_0x4b8917(0x44c)])[_0x4b8917(0x493)])==null||_0x54670a[_0x4b8917(0x354)](_0x455fd5,{'unitID':_0x1716aa,'memberID':_0x52c5a9,'textRanges':_0x52b9bc});}}}['_updateLocalCache'](){const _0x497b8e=_0x5bf0eb;var _0x1449ff;(_0x1449ff=this[_0x497b8e(0x33c)])==null||_0x1449ff[_0x497b8e(0x26f)](this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x497b8e(0x4f4)]);}[_0x5bf0eb(0x315)](){const _0x2a5dc4=_0x5bf0eb;return this['_revisionService'][_0x2a5dc4(0x2de)](this['unitID']);}[_0x5bf0eb(0x208)](){const _0x2d1686=_0x5bf0eb;this[_0x2d1686(0x468)][_0x2d1686(0x401)](this[_0x2d1686(0x37e)]);}[_0x5bf0eb(0x3d9)](_0x3af240){const _0x362785=_0x5bf0eb;let _0x49f278=this[_0x362785(0x364)](_0x3af240);_0x49f278=this[_0x362785(0x467)](_0x49f278);let _0x22f99c=(0x0,_0x2dbbd9['sequenceExecute'])(_0x49f278[_0x362785(0x277)],this[_0x362785(0x399)],{'fromCollab':!0x0});if(!_0x22f99c[_0x362785(0x4b6)]){var _0x50413e;throw _0x22f99c[_0x362785(0x35f)]instanceof Error?_0x22f99c[_0x362785(0x35f)]:Error((_0x50413e=_0x22f99c[_0x362785(0x35f)])==null?'[CollaborationState]:\x20apply\x20error!':_0x50413e);}this[_0x362785(0x273)](_0x49f278),this['_transformStateCache'](_0x49f278),this[_0x362785(0x4a2)](_0x3af240),this['_transformSelections'](_0x49f278),this['_syncEditingCollabCursor'](_0x49f278),this[_0x362785(0x208)]();}};let _0x28d539=class extends _0x48f410{constructor(_0x181d1c,_0x2a4632,_0xecef6b,_0x2659d1,_0x57179b,_0x79141f,_0x314d51,_0x2b248f,_0x3d4659,_0x502622){const _0x3db587=_0x5bf0eb;super(_0x181d1c,_0x2a4632,null,[],_0xecef6b,_0x314d51,_0x79141f,_0x2659d1,_0x502622),this[_0x3db587(0x2d5)]=_0x57179b,this[_0x3db587(0x236)]=_0x2b248f,this['_transformService']=_0x3d4659,this[_0x3db587(0x41e)]=_0x502622,_0x527b5d(this,_0x3db587(0x308),_0x3db587(0x43b));}[_0x5bf0eb(0x4fd)](_0x45d526){const _0x36e73c=_0x5bf0eb;let _0x10c6e1=this[_0x36e73c(0x2d5)][_0x36e73c(0x408)](_0x17b236,this[_0x36e73c(0x37e)],this['type'],[_0x45d526],this[_0x36e73c(0x44c)]);return _0x10c6e1[_0x36e73c(0x213)](),_0x10c6e1[_0x36e73c(0x22e)](),_0x10c6e1;}[_0x5bf0eb(0x348)](_0x4a9897){const _0x48028c=_0x5bf0eb;if(this['_checkMissing'](_0x4a9897))return this['_injector'][_0x48028c(0x408)](_0x49dbd8,this[_0x48028c(0x37e)],this['type'],null,[],null,[_0x4a9897],this[_0x48028c(0x44c)]);try{let _0x4dbade=this[_0x48028c(0x409)][_0x48028c(0x3db)](_0x4a9897,[_0x2b53f2[_0x48028c(0x36e)]]);if((0x0,_0x2b53f2[_0x48028c(0x333)])(_0x4dbade)){let {c1Prime:_0x5c4ebc}=_0x4dbade;return this[_0x48028c(0x3d9)](_0x5c4ebc),this;}throw _0x4dbade[_0x48028c(0x35f)];}catch(_0x1c81de){return this[_0x48028c(0x236)][_0x48028c(0x35f)](_0x1c81de),this[_0x48028c(0x318)](!0x1);}}[_0x5bf0eb(0x318)](_0x35c445){const _0x5e28c6=_0x5bf0eb;return this[_0x5e28c6(0x2d5)][_0x5e28c6(0x408)](_0x4446c9,this[_0x5e28c6(0x37e)],this[_0x5e28c6(0x3f8)],null,[],this['_handler'],_0x35c445);}[_0x5bf0eb(0x4df)](_0x368577){const _0x44fb71=_0x5bf0eb;if(_0x368577['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x44fb71(0x4f5));}[_0x5bf0eb(0x212)](){const _0x5c4ac6=_0x5bf0eb;throw Error(_0x5c4ac6(0x258));}[_0x5bf0eb(0x3f7)](){return this;}[_0x5bf0eb(0x418)](){const _0xe489b=_0x5bf0eb;return this[_0xe489b(0x2d5)][_0xe489b(0x408)](_0x5a87ab,this['unitID'],this[_0xe489b(0x3f8)],null,[],this['_handler']);}[_0x5bf0eb(0x44e)](){return this;}['resend'](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x28a13e=_0x5bf0eb;let _0x40861c=this[_0x28a13e(0x468)][_0x28a13e(0x2de)](this[_0x28a13e(0x37e)]);return this[_0x28a13e(0x44c)][_0x28a13e(0x388)]({'from':_0x40861c,'to':0x0}),this[_0x28a13e(0x2d5)][_0x28a13e(0x408)](_0x49dbd8,this[_0x28a13e(0x37e)],this[_0x28a13e(0x3f8)],null,[],null,[],this['_handler']);}};_0x28d539=_0x4e6e0f([_0xe72533(0x3,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2b53f2[_0x5bf0eb(0x495)])),_0xe72533(0x4,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x3fa)])),_0xe72533(0x5,_0x2dbbd9[_0x5bf0eb(0x4bd)]),_0xe72533(0x6,_0x2dbbd9[_0x5bf0eb(0x28c)]),_0xe72533(0x7,_0x2dbbd9[_0x5bf0eb(0x21b)]),_0xe72533(0x8,_0x2b53f2[_0x5bf0eb(0x3e9)]),_0xe72533(0x9,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x36e220))],_0x28d539);let _0x17b236=_0x1b0a99=class extends _0x48f410{constructor(_0x3fc831,_0x49fd50,_0x23a4d,_0x1587e8,_0x4f9660,_0x4d5bcf,_0x3e4003,_0x1da2e5,_0x4422c0,_0x2aa7a,_0x30f6ab,_0x3788d5,_0x437847,_0x12188d){const _0x58311c=_0x5bf0eb;super(_0x3fc831,_0x49fd50,null,_0x23a4d,_0x1587e8,_0x4422c0,_0x437847,_0x4d5bcf,_0x12188d),this['_injector']=_0x4f9660,this['_memberService']=_0x3e4003,this[_0x58311c(0x236)]=_0x1da2e5,this[_0x58311c(0x266)]=_0x2aa7a,this['_transformService']=_0x30f6ab,this[_0x58311c(0x389)]=_0x3788d5,_0x527b5d(this,'status','pending'),_0x527b5d(this,_0x58311c(0x22a),null),_0x527b5d(this,_0x58311c(0x1f6),null);}[_0x5bf0eb(0x4fd)](_0x347118){const _0x2e2cb5=_0x5bf0eb;return this['_pendingMutations'][_0x2e2cb5(0x23f)](_0x347118),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x2e02c7){const _0x1bf69f=_0x5bf0eb;if(this['_checkMissing'](_0x2e02c7))return this['_clearScheduledTask'](),this[_0x1bf69f(0x2d5)][_0x1bf69f(0x408)](_0x49dbd8,this[_0x1bf69f(0x37e)],this[_0x1bf69f(0x3f8)],null,this[_0x1bf69f(0x4f4)],null,[_0x2e02c7],this[_0x1bf69f(0x44c)]);try{let _0x2fac84=this[_0x1bf69f(0x409)][_0x1bf69f(0x3db)](_0x2e02c7,this[_0x1bf69f(0x4f4)]);if((0x0,_0x2b53f2[_0x1bf69f(0x333)])(_0x2fac84)){let {c1Prime:_0x2b5d1d,m2Prime:_0x51da58}=_0x2fac84;this['_executeRemoteChangeset'](_0x2b5d1d);let _0x5cbca9=this[_0x1bf69f(0x2d5)][_0x1bf69f(0x408)](_0x1b0a99,this['unitID'],this[_0x1bf69f(0x3f8)],_0x51da58,this[_0x1bf69f(0x44c)]);this['_clearScheduledTask']();let _0x36cf5f=new Date()[_0x1bf69f(0x245)](),_0x19a73a=this[_0x1bf69f(0x22a)]?Math[_0x1bf69f(0x487)](this['_scheduleCompleteTimestamp']-_0x36cf5f,0x0):this[_0x1bf69f(0x4e2)]();return _0x5cbca9[_0x1bf69f(0x213)](_0x19a73a),_0x5cbca9;}throw _0x2fac84['error'];}catch(_0x3dcb1){return this[_0x1bf69f(0x236)]['error'](_0x3dcb1),this[_0x1bf69f(0x318)](!0x1);}}[_0x5bf0eb(0x4df)](_0x3c8280){const _0x34685e=_0x5bf0eb;if(_0x3c8280[_0x34685e(0x4ea)]<=this['_getCurrentRevision']())return this;throw Error(_0x34685e(0x313));}[_0x5bf0eb(0x212)](){const _0x5f09c4=_0x5bf0eb;throw Error(_0x5f09c4(0x475));}['onRemoteRetry'](){return this;}[_0x5bf0eb(0x418)](){const _0x1747f2=_0x5bf0eb;return this['_clearScheduledTask'](),this[_0x1747f2(0x2d5)][_0x1747f2(0x408)](_0x5a87ab,this['unitID'],this[_0x1747f2(0x3f8)],null,this[_0x1747f2(0x4f4)],this['_handler']);}[_0x5bf0eb(0x44e)](){return this;}[_0x5bf0eb(0x213)](_0x18898d){const _0x2a8806=_0x5bf0eb;let _0x54060c=_0x18898d==null?this['_getSendChangesetTimeout']():_0x18898d;this[_0x2a8806(0x22a)]=new Date()[_0x2a8806(0x245)]()+_0x54060c,this['_sendingTimer']=setTimeout(()=>{const _0x4bd947=_0x2a8806;this[_0x4bd947(0x3de)]();let _0x47524f=null;switch(this[_0x4bd947(0x3f8)]){case _0x2dbbd9[_0x4bd947(0x442)][_0x4bd947(0x20a)]:_0x47524f=_0x1f473b(this[_0x4bd947(0x4f4)],this['unitID'],this[_0x4bd947(0x389)],this[_0x4bd947(0x468)],this[_0x4bd947(0x2a4)]);break;case _0x2dbbd9[_0x4bd947(0x442)]['UNIVER_DOC']:_0x47524f=this['_pendingMutations'][_0x4bd947(0x33b)](_0x55bd9f=>_0x55bd9f['id']===_0x13703b['RichTextEditingMutation']['id'])?_0x11ffe5(this[_0x4bd947(0x4f4)],this[_0x4bd947(0x37e)],this['_univerInstanceService'],this['_revisionService'],this['_memberService']):_0x1f473b(this[_0x4bd947(0x4f4)],this[_0x4bd947(0x37e)],this[_0x4bd947(0x389)],this[_0x4bd947(0x468)],this[_0x4bd947(0x2a4)]);break;default:throw Error(_0x4bd947(0x3d8)+this[_0x4bd947(0x3f8)]+_0x4bd947(0x3aa));}let {changeset:_0x404785,pendingMutations:_0x26474a}=_0x47524f;this[_0x4bd947(0x44c)][_0x4bd947(0x457)](_0x404785);let _0x4fcaf2=_0x26474a[_0x4bd947(0x2e3)]?this['_injector'][_0x4bd947(0x408)](_0x2be15f,this[_0x4bd947(0x37e)],this['type'],_0x404785,_0x26474a,this[_0x4bd947(0x44c)],void 0x0):this[_0x4bd947(0x2d5)]['createInstance'](_0x45f3bd,this[_0x4bd947(0x37e)],this[_0x4bd947(0x3f8)],_0x404785,this[_0x4bd947(0x44c)]);_0x4fcaf2[_0x4bd947(0x22e)](),this[_0x4bd947(0x44c)]['onStateChange'](this,_0x4fcaf2);},_0x54060c);}[_0x5bf0eb(0x4e2)](){const _0x4f1681=_0x5bf0eb;var _0x5c8e73;let _0xa4c7dc=this[_0x4f1681(0x266)][_0x4f1681(0x46c)](_0x2a84dd);return(_0x5c8e73=_0xa4c7dc==null?void 0x0:_0xa4c7dc['sendChangesetTimeout'])==null?0x7d0:_0x5c8e73;}['resend'](){const _0x124014=_0x5bf0eb;throw Error(_0x124014(0x3e3));}['_clearScheduledTask'](){const _0x2ce7d4=_0x5bf0eb;this[_0x2ce7d4(0x1f6)]!=null&&(clearTimeout(this[_0x2ce7d4(0x1f6)]),this[_0x2ce7d4(0x1f6)]=null);}[_0x5bf0eb(0x318)](_0x3b8bc8){const _0x1d4b46=_0x5bf0eb;return this[_0x1d4b46(0x3de)](),this[_0x1d4b46(0x2d5)][_0x1d4b46(0x408)](_0x4446c9,this[_0x1d4b46(0x37e)],this[_0x1d4b46(0x3f8)],null,this[_0x1d4b46(0x4f4)],this['_handler'],_0x3b8bc8);}};_0x17b236=_0x1b0a99=_0x4e6e0f([_0xe72533(0x4,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x3fa)])),_0xe72533(0x5,(0x0,_0x2dbbd9['Inject'])(_0x2b53f2[_0x5bf0eb(0x495)])),_0xe72533(0x6,(0x0,_0x2dbbd9['Inject'])(_0xf86089)),_0xe72533(0x7,_0x2dbbd9['ILogService']),_0xe72533(0x8,_0x2dbbd9[_0x5bf0eb(0x28c)]),_0xe72533(0x9,_0x2dbbd9['IConfigService']),_0xe72533(0xa,_0x2b53f2[_0x5bf0eb(0x3e9)]),_0xe72533(0xb,_0x2dbbd9[_0x5bf0eb(0x4d0)]),_0xe72533(0xc,_0x2dbbd9[_0x5bf0eb(0x4bd)]),_0xe72533(0xd,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x36e220))],_0x17b236);let _0x45f3bd=_0x379970=class extends _0x48f410{constructor(_0x463a27,_0x2496ce,_0x45f56c,_0x599191,_0x105db1,_0x57655a,_0x2a9cab,_0x14d8e9,_0x5d5d52,_0x2cd92b,_0x5f11c3){const _0x3bcff5=_0x5bf0eb;super(_0x463a27,_0x2496ce,_0x45f56c,[],_0x599191,_0x2a9cab,_0x2cd92b,_0x57655a,_0x5f11c3),this['_injector']=_0x105db1,this[_0x3bcff5(0x236)]=_0x14d8e9,this[_0x3bcff5(0x409)]=_0x5d5d52,_0x527b5d(this,_0x3bcff5(0x308),_0x3bcff5(0x1ff)),_0x527b5d(this,_0x3bcff5(0x4ec),0x0),_0x527b5d(this,_0x3bcff5(0x41c),0x0),_0x527b5d(this,_0x3bcff5(0x360),void 0x0),_0x527b5d(this,_0x3bcff5(0x38a),void 0x0);}[_0x5bf0eb(0x4fd)](_0x5e21bd){const _0x418d67=_0x5bf0eb;this[_0x418d67(0x3de)]();let _0xf1493d=this['_injector']['createInstance'](_0x2be15f,this[_0x418d67(0x37e)],this[_0x418d67(0x3f8)],this['_awaitingChangeset'],[_0x5e21bd],this[_0x418d67(0x44c)],this[_0x418d67(0x360)]);return _0xf1493d[_0x418d67(0x22e)](),_0xf1493d;}[_0x5bf0eb(0x348)](_0x1b313d){const _0x214dae=_0x5bf0eb;if(this[_0x214dae(0x45f)](_0x1b313d))return this[_0x214dae(0x3de)](),this['_injector'][_0x214dae(0x408)](_0x49dbd8,this['unitID'],this[_0x214dae(0x3f8)],this[_0x214dae(0x44d)],[],null,[_0x1b313d],this[_0x214dae(0x44c)]);try{let _0x5266ba=this['_transformService'][_0x214dae(0x31c)]([_0x1b313d],[this[_0x214dae(0x44d)]],!0x1);if((0x0,_0x2b53f2[_0x214dae(0x3d1)])(_0x5266ba)){let {c1Prime:_0x39bc91,c2Prime:_0x3d53a7}=_0x5266ba;this[_0x214dae(0x3d9)](_0x39bc91[0x0]),_0x3d53a7[0x0][_0x214dae(0x46e)]=this[_0x214dae(0x315)](),this[_0x214dae(0x3de)]();let _0x1bd358=this[_0x214dae(0x2d5)][_0x214dae(0x408)](_0x379970,this[_0x214dae(0x37e)],this[_0x214dae(0x3f8)],_0x3d53a7[0x0],this[_0x214dae(0x44c)]);return _0x1bd358[_0x214dae(0x22e)](),_0x1bd358;}throw _0x5266ba['error'];}catch(_0x4786d0){return this['_logService'][_0x214dae(0x35f)](_0x4786d0),this[_0x214dae(0x318)](!0x1);}}[_0x5bf0eb(0x4df)](_0x1fe489){const _0x3f7333=_0x5bf0eb;this[_0x3f7333(0x3de)]();let _0x3f2dd5=this['_revisionService'][_0x3f7333(0x2de)](this[_0x3f7333(0x37e)]);if(_0x1fe489['revision']<=_0x3f2dd5)return this;if(this[_0x3f7333(0x45f)](_0x1fe489))return this['_injector'][_0x3f7333(0x408)](_0x49dbd8,this['unitID'],this[_0x3f7333(0x3f8)],this[_0x3f7333(0x44d)],[],_0x1fe489[_0x3f7333(0x4ea)],[],this[_0x3f7333(0x44c)]);this['_incrementRevisionNumber']();let _0x485488=this[_0x3f7333(0x2d5)]['createInstance'](_0x28d539,this['unitID'],this['type'],this[_0x3f7333(0x44c)]);return _0x485488[_0x3f7333(0x22e)](),_0x485488;}[_0x5bf0eb(0x212)](_0x154684){const _0x4ead7a=_0x5bf0eb;return this[_0x4ead7a(0x318)](!!(_0x154684!=null&&_0x154684[_0x4ead7a(0x2a8)]));}[_0x5bf0eb(0x3f7)](_0x3719ef){const _0x1a3b6f=_0x5bf0eb;return this['_maxTotalRetryTimeout']>_0xe13796?this[_0x1a3b6f(0x418)]():(this[_0x1a3b6f(0x360)]=_0x328c98(this[_0x1a3b6f(0x4ec)],{'timeout':this[_0x1a3b6f(0x4ec)],'reqId':_0x3719ef[_0x1a3b6f(0x29f)]}),this['_sender']=this[_0x1a3b6f(0x360)][_0x1a3b6f(0x31f)](({reqId:_0x25a72f,timeout:_0x35a106})=>{const _0x37e257=_0x1a3b6f;this[_0x37e257(0x2b1)](_0x25a72f,_0x35a106);}),this);}[_0x5bf0eb(0x418)](){const _0x42bc0d=_0x5bf0eb;return this[_0x42bc0d(0x3de)](),this[_0x42bc0d(0x2d5)][_0x42bc0d(0x408)](_0x5a87ab,this['unitID'],this[_0x42bc0d(0x3f8)],this[_0x42bc0d(0x44d)],[],this[_0x42bc0d(0x44c)]);}[_0x5bf0eb(0x44e)](){return this;}[_0x5bf0eb(0x460)](){const _0x4ebe8d=_0x5bf0eb;this[_0x4ebe8d(0x44c)][_0x4ebe8d(0x457)](this['_awaitingChangeset']);}[_0x5bf0eb(0x318)](_0x127728){const _0x5530ac=_0x5bf0eb;return this[_0x5530ac(0x3de)](),this[_0x5530ac(0x2d5)]['createInstance'](_0x4446c9,this[_0x5530ac(0x37e)],this[_0x5530ac(0x3f8)],this[_0x5530ac(0x44d)],[],this[_0x5530ac(0x44c)],_0x127728);}[_0x5bf0eb(0x2b1)](_0x3b5b43,_0x2db185){const _0x3c1616=_0x5bf0eb;var _0x2141fc;_0x3b5b43===((_0x2141fc=this['_awaitingChangeset'])==null?void 0x0:_0x2141fc[_0x3c1616(0x29f)])&&(this[_0x3c1616(0x460)](),this[_0x3c1616(0x4ec)]=_0x2db185===0x0?0x3e8:Math[_0x3c1616(0x36a)](_0x2db185*0x2,_0x29e294),this[_0x3c1616(0x41c)]+=this[_0x3c1616(0x4ec)]);}[_0x5bf0eb(0x3de)](){const _0x5e88c6=_0x5bf0eb;var _0x5a4bc0;(_0x5a4bc0=this['_sender'])==null||_0x5a4bc0[_0x5e88c6(0x34b)](),this['_resendTimeout']=0x0,this[_0x5e88c6(0x41c)]=0x0;}};_0x45f3bd=_0x379970=_0x4e6e0f([_0xe72533(0x4,(0x0,_0x2dbbd9['Inject'])(_0x2dbbd9[_0x5bf0eb(0x3fa)])),_0xe72533(0x5,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2b53f2[_0x5bf0eb(0x495)])),_0xe72533(0x6,_0x2dbbd9[_0x5bf0eb(0x28c)]),_0xe72533(0x7,_0x2dbbd9[_0x5bf0eb(0x21b)]),_0xe72533(0x8,_0x2b53f2[_0x5bf0eb(0x3e9)]),_0xe72533(0x9,_0x2dbbd9[_0x5bf0eb(0x4bd)]),_0xe72533(0xa,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x36e220))],_0x45f3bd);let _0x2be15f=_0x23a599=class extends _0x48f410{constructor(_0x4221d4,_0x1e2372,_0x1c4ded,_0x5e4272,_0x15c98e,_0x36e189,_0x504fd7,_0x1cbc8e,_0x1f81fd,_0x4c2a4c,_0x2542c5,_0x14a54e,_0xe7be4b){const _0x247839=_0x5bf0eb;super(_0x4221d4,_0x1e2372,_0x1c4ded,_0x5e4272,_0x15c98e,_0x1f81fd,_0x14a54e,_0x1cbc8e,_0xe7be4b),this['_injector']=_0x504fd7,this['_logService']=_0x4c2a4c,this[_0x247839(0x409)]=_0x2542c5,this[_0x247839(0x41e)]=_0xe7be4b,_0x527b5d(this,_0x247839(0x308),_0x247839(0x2ef)),_0x527b5d(this,_0x247839(0x4ec),0x0),_0x527b5d(this,_0x247839(0x41c),0x0),_0x527b5d(this,'_resendTimer',void 0x0),_0x527b5d(this,'_sender',void 0x0),_0x36e189&&(this[_0x247839(0x360)]=_0x36e189,this[_0x247839(0x38a)]=this[_0x247839(0x360)]['subscribe'](({reqId:_0x34221c,timeout:_0xdf41e3})=>{const _0x5a0317=_0x247839;this[_0x5a0317(0x2b1)](_0x34221c,_0xdf41e3);}));}['appendMutation'](_0x5cd3bc){const _0x44418d=_0x5bf0eb;return this['_pendingMutations'][_0x44418d(0x23f)](_0x5cd3bc),this;}[_0x5bf0eb(0x348)](_0x124690){const _0x11ea9b=_0x5bf0eb;if(this[_0x11ea9b(0x45f)](_0x124690))return this['_clearScheduledTask'](),this[_0x11ea9b(0x2d5)][_0x11ea9b(0x408)](_0x49dbd8,this[_0x11ea9b(0x37e)],this[_0x11ea9b(0x3f8)],this['_awaitingChangeset'],this[_0x11ea9b(0x4f4)],null,[_0x124690],this[_0x11ea9b(0x44c)]);try{let _0xd8b028=this[_0x11ea9b(0x409)][_0x11ea9b(0x31c)]([_0x124690],[this[_0x11ea9b(0x44d)]],!0x1);if((0x0,_0x2b53f2[_0x11ea9b(0x3d1)])(_0xd8b028)){let {c1Prime:_0x1053e3,c2Prime:_0x485a4f}=_0xd8b028,_0x42c897=this['_transformService'][_0x11ea9b(0x3db)](_0x1053e3[0x0],this[_0x11ea9b(0x4f4)]);if((0x0,_0x2b53f2[_0x11ea9b(0x333)])(_0x42c897)){let {c1Prime:_0x4fdfb4,m2Prime:_0x381c86}=_0x42c897;return this['_executeRemoteChangeset'](_0x4fdfb4),_0x485a4f[0x0][_0x11ea9b(0x46e)]=this[_0x11ea9b(0x315)](),this[_0x11ea9b(0x3de)](),this[_0x11ea9b(0x2d5)]['createInstance'](_0x23a599,this['unitID'],this[_0x11ea9b(0x3f8)],_0x485a4f[0x0],_0x381c86,this['_handler'],void 0x0);}throw _0x42c897['error'];}throw _0xd8b028[_0x11ea9b(0x35f)];}catch(_0xddf8c2){return this[_0x11ea9b(0x236)][_0x11ea9b(0x35f)](_0xddf8c2),this[_0x11ea9b(0x318)](!0x1);}}[_0x5bf0eb(0x4df)](_0x230f59){const _0xc34ff9=_0x5bf0eb;this[_0xc34ff9(0x3de)]();let _0x2d6a88=this['_getCurrentRevision']();if(_0x230f59[_0xc34ff9(0x4ea)]<=_0x2d6a88)return this;if(this[_0xc34ff9(0x45f)](_0x230f59))return this[_0xc34ff9(0x2d5)][_0xc34ff9(0x408)](_0x49dbd8,this[_0xc34ff9(0x37e)],this[_0xc34ff9(0x3f8)],this[_0xc34ff9(0x44d)],this['_pendingMutations'],_0x230f59[_0xc34ff9(0x4ea)],[],this['_handler']);this[_0xc34ff9(0x208)]();let _0x446463=this[_0xc34ff9(0x2d5)][_0xc34ff9(0x408)](_0x17b236,this['unitID'],this['type'],this[_0xc34ff9(0x4f4)],this[_0xc34ff9(0x44c)]);return _0x446463['_schedule'](),_0x446463[_0xc34ff9(0x22e)](),_0x446463;}[_0x5bf0eb(0x212)](_0x3eb4d9){const _0x4700de=_0x5bf0eb;return this[_0x4700de(0x318)](!!(_0x3eb4d9!=null&&_0x3eb4d9[_0x4700de(0x2a8)]));}['onRemoteRetry'](_0x48b08d){const _0x2f2023=_0x5bf0eb;return this['_maxTotalRetryTimeout']>_0xe13796?this['toggleOffline']():(this[_0x2f2023(0x360)]=_0x328c98(this[_0x2f2023(0x4ec)],{'timeout':this[_0x2f2023(0x4ec)],'reqId':_0x48b08d[_0x2f2023(0x29f)]}),this[_0x2f2023(0x38a)]=this[_0x2f2023(0x360)][_0x2f2023(0x31f)](({reqId:_0x156ef5,timeout:_0x2499b1})=>{const _0x478a71=_0x2f2023;this[_0x478a71(0x2b1)](_0x156ef5,_0x2499b1);}),this);}[_0x5bf0eb(0x418)](){const _0x1c8af7=_0x5bf0eb;return this[_0x1c8af7(0x3de)](),this['_injector'][_0x1c8af7(0x408)](_0x5a87ab,this[_0x1c8af7(0x37e)],this['type'],this['_awaitingChangeset'],this[_0x1c8af7(0x4f4)],this[_0x1c8af7(0x44c)]);}[_0x5bf0eb(0x44e)](){return this;}[_0x5bf0eb(0x460)](){const _0x3d3c31=_0x5bf0eb;this[_0x3d3c31(0x44c)]['onSendChangeset'](this[_0x3d3c31(0x44d)]);}[_0x5bf0eb(0x318)](_0x1cf473){const _0x5bf002=_0x5bf0eb;return this[_0x5bf002(0x3de)](),this['_injector'][_0x5bf002(0x408)](_0x4446c9,this[_0x5bf002(0x37e)],this[_0x5bf002(0x3f8)],null,this['_pendingMutations'],this[_0x5bf002(0x44c)],_0x1cf473);}[_0x5bf0eb(0x2b1)](_0x4cbcb6,_0x16fed8){const _0xc726dd=_0x5bf0eb;var _0x37c976;_0x4cbcb6===((_0x37c976=this['_awaitingChangeset'])==null?void 0x0:_0x37c976[_0xc726dd(0x29f)])&&(this[_0xc726dd(0x460)](),this[_0xc726dd(0x4ec)]=_0x16fed8===0x0?0x3e8:Math['min'](_0x16fed8*0x2,_0x29e294),this['_maxTotalRetryTimeout']+=this[_0xc726dd(0x4ec)]);}[_0x5bf0eb(0x3de)](){const _0x3b0e0f=_0x5bf0eb;var _0x58c6fe;(_0x58c6fe=this['_sender'])==null||_0x58c6fe[_0x3b0e0f(0x34b)](),this[_0x3b0e0f(0x4ec)]=0x0,this[_0x3b0e0f(0x41c)]=0x0;}};_0x2be15f=_0x23a599=_0x4e6e0f([_0xe72533(0x6,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9['Injector'])),_0xe72533(0x7,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2b53f2[_0x5bf0eb(0x495)])),_0xe72533(0x8,_0x2dbbd9[_0x5bf0eb(0x28c)]),_0xe72533(0x9,_0x2dbbd9[_0x5bf0eb(0x21b)]),_0xe72533(0xa,_0x2b53f2[_0x5bf0eb(0x3e9)]),_0xe72533(0xb,_0x2dbbd9[_0x5bf0eb(0x4bd)]),_0xe72533(0xc,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x36e220))],_0x2be15f);let _0x4446c9=class extends _0x48f410{constructor(_0x4a8fe4,_0x563ced,_0x2fe53d,_0x3d89be,_0x386421,_0x193b95=!0x1,_0xcdc7ad,_0x19adcd,_0x1a24ff,_0x1e06e0,_0x34e6f8,_0x3e9dd7,_0x30dba4){const _0x1a97f7=_0x5bf0eb;super(_0x4a8fe4,_0x563ced,_0x2fe53d,_0x3d89be,_0x386421,_0x19adcd,_0x1a24ff,_0x1e06e0,_0x30dba4),this[_0x1a97f7(0x3e7)]=_0x193b95,this[_0x1a97f7(0x461)]=_0xcdc7ad,this[_0x1a97f7(0x3ed)]=_0x34e6f8,this['_collaborationUIEventService']=_0x3e9dd7,this[_0x1a97f7(0x41e)]=_0x30dba4,_0x527b5d(this,_0x1a97f7(0x308),_0x1a97f7(0x4e0)),this[_0x1a97f7(0x34e)](),this['_clearLocalCache'](),this[_0x1a97f7(0x309)]();}[_0x5bf0eb(0x4fd)](){return this;}[_0x5bf0eb(0x348)](){return this;}['onRemoteAck'](){return this;}[_0x5bf0eb(0x212)](){return this;}[_0x5bf0eb(0x3f7)](){return this;}[_0x5bf0eb(0x418)](){return this;}['toggleOnline'](){return this;}[_0x5bf0eb(0x460)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x5bf0eb(0x2c5)](){const _0x285489=_0x5bf0eb;var _0x5cd38b;(_0x5cd38b=this[_0x285489(0x33c)])==null||_0x5cd38b['updateOfflineData'](this[_0x285489(0x37e)],this[_0x285489(0x3f8)],null,[]);}[_0x5bf0eb(0x34e)](){const _0x2caeea=_0x5bf0eb;this[_0x2caeea(0x3e7)]?this[_0x2caeea(0x392)][_0x2caeea(0x216)]({'id':_0x2caeea(0x37c)}):this['_collaborationUIEventService']['emitEvent']({'id':_0x2caeea(0x25d)});}['_disableEditing'](){const _0xd556cd=_0x5bf0eb;this[_0xd556cd(0x461)]['updatePermissionPoint'](new _0x184bfa['WorkbookEditablePermission'](this[_0xd556cd(0x37e)])['id'],!0x1);}};_0x4446c9=_0x4e6e0f([_0xe72533(0x6,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x338)])),_0xe72533(0x7,_0x2dbbd9[_0x5bf0eb(0x28c)]),_0xe72533(0x8,_0x2dbbd9[_0x5bf0eb(0x4bd)]),_0xe72533(0x9,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2b53f2[_0x5bf0eb(0x495)])),_0xe72533(0xa,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x340)])),_0xe72533(0xb,(0x0,_0x2dbbd9['Inject'])(_0x10b08d)),_0xe72533(0xc,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x36e220))],_0x4446c9);let _0x5a87ab=class extends _0x48f410{constructor(_0x28a73d,_0x277c28,_0x5e67a7,_0x5107b8,_0x341b93,_0x525b22,_0x502ae9,_0xe4a513,_0x271bf1,_0x398347){const _0x198b04=_0x5bf0eb;super(_0x28a73d,_0x277c28,_0x5e67a7,_0x5107b8,_0x341b93,_0xe4a513,_0x271bf1,_0x502ae9,_0x398347),this[_0x198b04(0x2d5)]=_0x525b22,_0x527b5d(this,_0x198b04(0x308),_0x198b04(0x2c6));}[_0x5bf0eb(0x4fd)](_0x1493dc){const _0x2eed36=_0x5bf0eb;return this[_0x2eed36(0x4f4)][_0x2eed36(0x23f)](_0x1493dc),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x227def){const _0x2c026a=_0x5bf0eb;throw Error(_0x2c026a(0x319));}[_0x5bf0eb(0x4df)](){const _0x526e70=_0x5bf0eb;throw Error(_0x526e70(0x40e));}['onRemoteRej'](){const _0x51cb72=_0x5bf0eb;throw Error(_0x51cb72(0x38d));}[_0x5bf0eb(0x3f7)](){return this;}[_0x5bf0eb(0x418)](){return this;}['toggleOnline'](){const _0x92ad2=_0x5bf0eb;let {_injector:_0x5213c4,_pendingMutations:_0x592fa6,_awaitingChangeset:_0x2cb115,unitID:_0x166ee5,_handler:_0xcffa49,type:_0x7b9f0b}=this,_0x2fad1f=_0x1f46ae(_0x5213c4,_0x166ee5,_0x7b9f0b,_0x2cb115,_0x592fa6,_0xcffa49);return _0x2fad1f instanceof _0x17b236?_0x2fad1f[_0x92ad2(0x213)]():(_0x2fad1f instanceof _0x2be15f||_0x2fad1f instanceof _0x45f3bd)&&_0x2fad1f[_0x92ad2(0x460)](),_0x2fad1f;}[_0x5bf0eb(0x460)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x5a87ab=_0x4e6e0f([_0xe72533(0x5,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x3fa)])),_0xe72533(0x6,(0x0,_0x2dbbd9['Inject'])(_0x2b53f2[_0x5bf0eb(0x495)])),_0xe72533(0x7,_0x2dbbd9[_0x5bf0eb(0x28c)]),_0xe72533(0x8,_0x2dbbd9[_0x5bf0eb(0x4bd)]),_0xe72533(0x9,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x36e220))],_0x5a87ab);let _0x49dbd8=class extends _0x48f410{constructor(_0x65371b,_0x599037,_0x24c86b,_0x488e73,_0x5a6b30,_0x58ffdf,_0x19f5ab,_0x44b31a,_0x25651a,_0x55f6c4,_0x471a81,_0x2a025c,_0x515b62,_0x2da153){const _0x4f30d8=_0x5bf0eb;super(_0x65371b,_0x599037,_0x24c86b,_0x488e73,_0x19f5ab,_0x471a81,_0x2a025c,_0x25651a,_0x2da153),this['_acknowledgedAwaitingRevision']=_0x5a6b30,this['_queuedRemoteChangesets']=_0x58ffdf,this[_0x4f30d8(0x2d5)]=_0x44b31a,this['_logService']=_0x55f6c4,this[_0x4f30d8(0x409)]=_0x515b62,this[_0x4f30d8(0x41e)]=_0x2da153,_0x527b5d(this,_0x4f30d8(0x308),_0x4f30d8(0x322));}['onMissedChangesetFetched'](_0x5b3924){const _0x660cb4=_0x5bf0eb;try{if(this[_0x660cb4(0x37a)](_0x5b3924)[_0x660cb4(0x4f9)])throw Error(_0x660cb4(0x4ae));if(this[_0x660cb4(0x37a)]([...this[_0x660cb4(0x2f9)]]['sort']((_0x5c3d37,_0x179c65)=>_0x5c3d37[_0x660cb4(0x4ea)]-_0x179c65['revision']))[_0x660cb4(0x4f9)])return this[_0x660cb4(0x2f9)]=[],this[_0x660cb4(0x22e)](),this[_0x660cb4(0x44c)][_0x660cb4(0x388)]({'from':this[_0x660cb4(0x315)](),'to':0x0}),this;let _0x3df6d8=this[_0x660cb4(0x44d)],_0x389352=this[_0x660cb4(0x4f4)],_0x330598;if(_0x3df6d8&&_0x389352[_0x660cb4(0x2e3)]!==0x0)_0x330598=this[_0x660cb4(0x2d5)][_0x660cb4(0x408)](_0x2be15f,this['unitID'],this[_0x660cb4(0x3f8)],_0x3df6d8,_0x389352,this['_handler'],void 0x0);else{if(_0x3df6d8&&_0x389352[_0x660cb4(0x2e3)]===0x0)_0x3df6d8[_0x660cb4(0x46e)]=this[_0x660cb4(0x315)](),_0x330598=this[_0x660cb4(0x2d5)][_0x660cb4(0x408)](_0x45f3bd,this['unitID'],this['type'],_0x3df6d8,this[_0x660cb4(0x44c)]);else{if(_0x389352[_0x660cb4(0x2e3)]!==0x0){let _0x24c076=this['_injector'][_0x660cb4(0x408)](_0x17b236,this[_0x660cb4(0x37e)],this[_0x660cb4(0x3f8)],_0x389352,this[_0x660cb4(0x44c)]);_0x24c076[_0x660cb4(0x213)](),_0x330598=_0x24c076;}else _0x330598=this['_injector'][_0x660cb4(0x408)](_0x28d539,this['unitID'],this[_0x660cb4(0x3f8)],this[_0x660cb4(0x44c)]);}}return _0x330598[_0x660cb4(0x22e)](),_0x330598;}catch(_0x545df9){return this[_0x660cb4(0x236)][_0x660cb4(0x35f)](_0x660cb4(0x267),'failed\x20to\x20apply\x20missed\x20changesets!',_0x545df9),this['_injector']['createInstance'](_0x4446c9,this[_0x660cb4(0x37e)],this[_0x660cb4(0x3f8)],this[_0x660cb4(0x44d)],this[_0x660cb4(0x4f4)],this[_0x660cb4(0x44c)],!0x1);}}[_0x5bf0eb(0x37a)](_0x4e5274){const _0x5224d8=_0x5bf0eb;this[_0x5224d8(0x325)]();for(let _0x5766c6=0x0;_0x5766c6<_0x4e5274[_0x5224d8(0x2e3)];_0x5766c6++){let _0x5488a3=_0x4e5274[_0x5766c6],_0x1aa427=this[_0x5224d8(0x315)]();if(!(_0x5488a3['revision']<=_0x1aa427)){if(_0x5488a3[_0x5224d8(0x4ea)]>_0x1aa427+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x5488a3)){this[_0x5224d8(0x3dc)]();continue;}this[_0x5224d8(0x2d0)](_0x5488a3),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x5bf0eb(0x2d0)](_0x1ca395){const _0x4e9260=_0x5bf0eb;let _0x224f43=_0x1ca395,_0x543712=this[_0x4e9260(0x44d)];if(_0x543712){let _0x4a0a86=this[_0x4e9260(0x409)][_0x4e9260(0x31c)]([_0x1ca395],[_0x543712],!0x1);if(!(0x0,_0x2b53f2['isTransformChangesetsSuccess'])(_0x4a0a86))throw _0x4a0a86[_0x4e9260(0x35f)];_0x224f43=_0x4a0a86[_0x4e9260(0x491)][0x0],_0x543712=_0x4a0a86[_0x4e9260(0x2ac)][0x0];}let _0x2e3b14=this['_pendingMutations'];if(_0x2e3b14[_0x4e9260(0x2e3)]){let _0x537535=this[_0x4e9260(0x409)][_0x4e9260(0x3db)](_0x224f43,_0x2e3b14);if(!(0x0,_0x2b53f2[_0x4e9260(0x333)])(_0x537535))throw _0x537535['error'];_0x224f43=_0x537535[_0x4e9260(0x491)],_0x2e3b14=_0x537535[_0x4e9260(0x4c9)];}this[_0x4e9260(0x3d9)](_0x224f43),_0x543712&&(_0x543712[_0x4e9260(0x46e)]=this[_0x4e9260(0x315)]()),this[_0x4e9260(0x44d)]=_0x543712,this[_0x4e9260(0x4f4)]=_0x2e3b14;}[_0x5bf0eb(0x325)](){const _0x53735e=_0x5bf0eb;if(!this[_0x53735e(0x44d)]||this[_0x53735e(0x46b)]==null)return;let _0x59a7f2=this[_0x53735e(0x315)]();if(this['_acknowledgedAwaitingRevision']<=_0x59a7f2)throw Error(_0x53735e(0x4f7)+this['_acknowledgedAwaitingRevision']+'.');this[_0x53735e(0x46b)]===_0x59a7f2+0x1&&this[_0x53735e(0x3dc)]();}['_acknowledgeAwaiting'](){const _0x34e912=_0x5bf0eb;this[_0x34e912(0x208)](),this[_0x34e912(0x44d)]=null,this[_0x34e912(0x46b)]=null;}[_0x5bf0eb(0x4a3)](_0x4fbffd){const _0x28ed09=_0x5bf0eb;let _0x5941ee=this[_0x28ed09(0x44d)];return!_0x5941ee||!_0x5941ee['sid']||_0x5941ee[_0x28ed09(0x29f)]===null||_0x5941ee['reqId']===void 0x0?!0x1:_0x4fbffd[_0x28ed09(0x37e)]===_0x5941ee[_0x28ed09(0x37e)]&&_0x4fbffd[_0x28ed09(0x390)]===_0x5941ee[_0x28ed09(0x390)]&&_0x4fbffd[_0x28ed09(0x29f)]===_0x5941ee[_0x28ed09(0x29f)];}[_0x5bf0eb(0x460)](){const _0xfe861e=_0x5bf0eb;throw Error(_0xfe861e(0x36f));}['appendMutation'](_0x5afef4){const _0x29dcbf=_0x5bf0eb;return this[_0x29dcbf(0x4f4)]['push'](_0x5afef4),this;}['onRemoteChangeset'](_0x2aaa9a){const _0x4fbc9f=_0x5bf0eb;return this['_queuedRemoteChangesets'][_0x4fbc9f(0x23f)](_0x2aaa9a),this;}[_0x5bf0eb(0x4df)](_0x11a23d){const _0x14e8ac=_0x5bf0eb;if(this[_0x14e8ac(0x44d)]){let _0x3eddbf=this['_getCurrentRevision']();return _0x11a23d['revision']<=_0x3eddbf||(_0x3eddbf+0x1===_0x11a23d[_0x14e8ac(0x4ea)]?(this[_0x14e8ac(0x208)](),this[_0x14e8ac(0x44d)]=null,this['_acknowledgedAwaitingRevision']=null):this[_0x14e8ac(0x46b)]=_0x11a23d[_0x14e8ac(0x4ea)]),this;}if(_0x11a23d[_0x14e8ac(0x4ea)]<=this['_getCurrentRevision']())return this;throw Error(_0x14e8ac(0x30e));}['onRemoteRej'](_0x47b740){const _0x425063=_0x5bf0eb;return this[_0x425063(0x318)](!!(_0x47b740!=null&&_0x47b740[_0x425063(0x2a8)]));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x15cd40=_0x5bf0eb;return this[_0x15cd40(0x2d5)][_0x15cd40(0x408)](_0x5a87ab,this[_0x15cd40(0x37e)],this[_0x15cd40(0x3f8)],this['_awaitingChangeset'],this[_0x15cd40(0x4f4)],this['_handler']);}[_0x5bf0eb(0x44e)](){return this;}[_0x5bf0eb(0x318)](_0x488827){const _0x5c87b0=_0x5bf0eb;return this[_0x5c87b0(0x2d5)][_0x5c87b0(0x408)](_0x4446c9,this[_0x5c87b0(0x37e)],this['type'],this[_0x5c87b0(0x44d)],this[_0x5c87b0(0x4f4)],this['_handler'],_0x488827);}};_0x49dbd8=_0x4e6e0f([_0xe72533(0x7,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9['Injector'])),_0xe72533(0x8,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2b53f2[_0x5bf0eb(0x495)])),_0xe72533(0x9,_0x2dbbd9[_0x5bf0eb(0x21b)]),_0xe72533(0xa,_0x2dbbd9['ICommandService']),_0xe72533(0xb,_0x2dbbd9[_0x5bf0eb(0x4bd)]),_0xe72533(0xc,_0x2b53f2['ITransformService']),_0xe72533(0xd,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x36e220))],_0x49dbd8);function _0x1f46ae(_0x61e00a,_0x4a6de8,_0x4b3a66,_0x15667a,_0x3c68d4,_0x182390){const _0xeaab5e=_0x5bf0eb;return _0x15667a&&_0x3c68d4[_0xeaab5e(0x2e3)]?_0x61e00a['createInstance'](_0x2be15f,_0x4a6de8,_0x4b3a66,_0x15667a,_0x3c68d4,_0x182390,void 0x0):_0x15667a?_0x61e00a[_0xeaab5e(0x408)](_0x45f3bd,_0x4a6de8,_0x4b3a66,_0x15667a,_0x182390):_0x3c68d4[_0xeaab5e(0x2e3)]?_0x61e00a[_0xeaab5e(0x408)](_0x17b236,_0x4a6de8,_0x4b3a66,_0x3c68d4,_0x182390):_0x61e00a[_0xeaab5e(0x408)](_0x28d539,_0x4a6de8,_0x4b3a66,_0x182390);}let _0x3e0a94=class extends _0x2dbbd9[_0x5bf0eb(0x2ed)]{get[_0x5bf0eb(0x412)](){return this['_state'];}constructor(_0x7775a4,_0x4c6b40,_0x31fbee,_0x27c9fc,_0x7625ee,_0xcc5951,_0x26be5a,_0x376ac5,_0x53b406,_0x445483,_0x4f7a07,_0x685fe1,_0x1bf2c7,_0xb730ab){const _0x18c795=_0x5bf0eb;super(),this[_0x18c795(0x37e)]=_0x7775a4,this[_0x18c795(0x20d)]=_0x4c6b40,this[_0x18c795(0x402)]=_0x31fbee,this['_injector']=_0x27c9fc,this[_0x18c795(0x1e8)]=_0x7625ee,this[_0x18c795(0x3ed)]=_0xcc5951,this[_0x18c795(0x468)]=_0x26be5a,this[_0x18c795(0x244)]=_0x376ac5,this[_0x18c795(0x389)]=_0x53b406,this[_0x18c795(0x236)]=_0x445483,this[_0x18c795(0x399)]=_0x4f7a07,this['_permissionService']=_0x685fe1,this[_0x18c795(0x359)]=_0x1bf2c7,this[_0x18c795(0x33c)]=_0xb730ab,_0x527b5d(this,_0x18c795(0x250),new _0x4f3716['BehaviorSubject'](null)),_0x527b5d(this,'state$',this[_0x18c795(0x250)][_0x18c795(0x2e9)]()),_0x527b5d(this,_0x18c795(0x303),void 0x0),_0x527b5d(this,_0x18c795(0x49d),!0x1),_0x527b5d(this,_0x18c795(0x473),''),_0x527b5d(this,_0x18c795(0x39b),0x0),_0x527b5d(this,_0x18c795(0x3a5),this[_0x18c795(0x30d)][_0x18c795(0x4be)]((0x0,_0x4f3716[_0x18c795(0x1e3)])(_0x174383=>_0x174383?_0x174383['status']:_0x18c795(0x2c6)),(0x0,_0x4f3716[_0x18c795(0x3da)])(0x1))),_0x527b5d(this,'_transitionLocked',!0x1),_0x527b5d(this,_0x18c795(0x32a),[]);}async[_0x5bf0eb(0x1fd)](){const _0x5b6fa7=_0x5bf0eb;if(this['state'])throw Error(_0x5b6fa7(0x2f3));await this['_init']();}[_0x5bf0eb(0x4bf)](){const _0x1d01cc=_0x5bf0eb;return this[_0x1d01cc(0x49d)]=!0x0,(0x0,_0x2dbbd9[_0x1d01cc(0x1ee)])(()=>{const _0x245760=_0x1d01cc;this[_0x245760(0x49d)]=!0x1,this[_0x245760(0x29d)]();});}[_0x5bf0eb(0x2e5)](_0x2cd165){const _0x118663=_0x5bf0eb;this[_0x118663(0x3b9)](_0x2cd165);}[_0x5bf0eb(0x32d)](_0x2b3c3d){const _0x2227b9=_0x5bf0eb;this['_state']=_0x2b3c3d,this[_0x2227b9(0x250)][_0x2227b9(0x274)](_0x2b3c3d);}async[_0x5bf0eb(0x226)](){const _0x3d6962=_0x5bf0eb;if(this[_0x3d6962(0x32d)](await this[_0x3d6962(0x1f7)]()),this[_0x3d6962(0x359)]){var _0x166833;(_0x166833=this[_0x3d6962(0x359)])==null||_0x166833[_0x3d6962(0x3f1)](this[_0x3d6962(0x37e)]),this[_0x3d6962(0x4a6)](this[_0x3d6962(0x359)][_0x3d6962(0x3c0)](this[_0x3d6962(0x37e)])[_0x3d6962(0x31f)](_0x1b4dac=>{const _0x22d56c=_0x3d6962;this['_logService'][_0x22d56c(0x265)]('[CollaborationEntity]',_0x22d56c(0x32b),_0x1b4dac),_0x1b4dac===0x1?(this[_0x22d56c(0x244)][_0x22d56c(0x216)]({'id':'OTHER_CLIENT_EDITING'}),this[_0x22d56c(0x461)]['updatePermissionPoint'](new _0x184bfa['WorkbookEditablePermission'](this[_0x22d56c(0x37e)])['id'],!0x1),this[_0x22d56c(0x461)]['setShowComponents'](!0x1)):(this[_0x22d56c(0x461)][_0x22d56c(0x4d6)](new _0x184bfa[(_0x22d56c(0x3b1))](this['unitID'])['id'],!0x0),this[_0x22d56c(0x461)][_0x22d56c(0x27a)](!0x0));}));}let _0xa5140d=!0x1;return this[_0x3d6962(0x4a6)](this[_0x3d6962(0x20d)]['sessionStatus$'][_0x3d6962(0x31f)](_0x145db9=>{const _0x1cad99=_0x3d6962;_0x145db9===0x3?this[_0x1cad99(0x2da)](_0xa5140d):_0x145db9===0x2&&(_0xa5140d=!0x0,this['_toggleOffline']());})),this[_0x3d6962(0x4a6)](this[_0x3d6962(0x20d)][_0x3d6962(0x3b7)][_0x3d6962(0x31f)](_0x17f07f=>{const _0x47e915=_0x3d6962;try{switch(_0x17f07f[_0x47e915(0x4d9)]){case _0x2b53f2[_0x47e915(0x406)][_0x47e915(0x44a)]:this['_onRemoteChangeset']((0x0,_0x2b53f2[_0x47e915(0x4b8)])(_0x17f07f[_0x47e915(0x43a)]));break;case _0x2b53f2[_0x47e915(0x406)]['CHANGESET_ACK']:this['_onRemoteACK'](_0x17f07f[_0x47e915(0x43a)]);break;case _0x2b53f2[_0x47e915(0x406)]['CHANGESET_REJ']:this[_0x47e915(0x35a)]();break;case _0x2b53f2[_0x47e915(0x406)][_0x47e915(0x437)]:this[_0x47e915(0x478)](_0x17f07f['data']);break;case _0x2b53f2[_0x47e915(0x406)][_0x47e915(0x421)]:this['_onFetchMissResult'](_0x17f07f[_0x47e915(0x43a)][_0x47e915(0x3cc)][_0x47e915(0x1e3)](_0x29b22c=>(0x0,_0x2b53f2[_0x47e915(0x4b8)])(_0x29b22c)));break;case _0x2b53f2[_0x47e915(0x406)]['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x2b53f2['CollaborationEvent'][_0x47e915(0x2d6)]:break;}}catch(_0x288558){throw console[_0x47e915(0x35f)](_0x47e915(0x30a),_0x288558),_0x288558;}})),this['_state'];}[_0x5bf0eb(0x405)](){const _0x1f9ca5=_0x5bf0eb;this[_0x1f9ca5(0x202)]=!0x1;}[_0x5bf0eb(0x47d)](){const _0x5edfc6=_0x5bf0eb;if(this['_transitionLocked'])throw Error(_0x5edfc6(0x431));this[_0x5edfc6(0x202)]=!0x0;}[_0x5bf0eb(0x3b9)](_0x2c4ab1){const _0x4c30c8=_0x5bf0eb;this['_lockTransition'](),this[_0x4c30c8(0x32d)](this[_0x4c30c8(0x303)][_0x4c30c8(0x4fd)](_0x2c4ab1)),this[_0x4c30c8(0x405)]();}[_0x5bf0eb(0x2ba)](_0x4b8131){const _0x56dee3=_0x5bf0eb;if(!(_0x4b8131[_0x56dee3(0x4ea)]<=this[_0x56dee3(0x468)][_0x56dee3(0x2de)](this[_0x56dee3(0x37e)]))){if(this['_collaborationPaused']){this[_0x56dee3(0x32a)][_0x56dee3(0x23f)](_0x4b8131);return;}this['_applyRemoteChangeset'](_0x4b8131);}}[_0x5bf0eb(0x29d)](){const _0x17c29a=_0x5bf0eb;this['_remoteChangesetQueue'][_0x17c29a(0x312)](_0x1a7e83=>this[_0x17c29a(0x371)](_0x1a7e83)),this['_remoteChangesetQueue']=[];}[_0x5bf0eb(0x371)](_0x586197){const _0x25caca=_0x5bf0eb;let _0x2933f7=this[_0x25caca(0x1e8)][_0x25caca(0x35d)][_0x25caca(0x2cc)](this['_compressMutationService'][_0x25caca(0x35d)]['getInterceptPoints']()[_0x25caca(0x416)])(_0x586197[_0x25caca(0x277)],null)||_0x586197[_0x25caca(0x277)],_0x26c65a={..._0x586197,'mutations':_0x2933f7};this[_0x25caca(0x47d)](),this[_0x25caca(0x32d)](this[_0x25caca(0x303)][_0x25caca(0x348)](_0x26c65a)),this[_0x25caca(0x405)]();}[_0x5bf0eb(0x3d2)](_0x4c56e4){const _0x119593=_0x5bf0eb;this['_lockTransition'](),this['_updateState'](this['_state'][_0x119593(0x4df)](_0x4c56e4)),this[_0x119593(0x405)]();}[_0x5bf0eb(0x35a)](_0x1df9ca){const _0x1cb0a5=_0x5bf0eb;this[_0x1cb0a5(0x47d)](),this['_updateState'](this[_0x1cb0a5(0x303)][_0x1cb0a5(0x212)](_0x1df9ca)),this[_0x1cb0a5(0x405)]();}[_0x5bf0eb(0x478)](_0x439388){const _0x42acfc=_0x5bf0eb;this[_0x42acfc(0x47d)](),this['_updateState'](this[_0x42acfc(0x303)][_0x42acfc(0x3f7)](_0x439388)),this[_0x42acfc(0x405)]();}[_0x5bf0eb(0x2a2)](_0x58b2e1){const _0x3f3934=_0x5bf0eb;if(!(this[_0x3f3934(0x303)]instanceof _0x49dbd8))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x23e8aa=_0x58b2e1[_0x3f3934(0x1e3)](_0x18ae07=>{const _0x1d79d2=_0x3f3934;let _0x5f173e=this['_compressMutationService'][_0x1d79d2(0x35d)][_0x1d79d2(0x2cc)](this['_compressMutationService'][_0x1d79d2(0x35d)][_0x1d79d2(0x261)]()['COMPRESS_MUTATION_APPLY'])(_0x18ae07[_0x1d79d2(0x277)],null)||_0x18ae07[_0x1d79d2(0x277)];return{..._0x18ae07,'mutations':_0x5f173e};});this[_0x3f3934(0x47d)](),this['_updateState'](this['_state'][_0x3f3934(0x2cf)](_0x23e8aa)),this[_0x3f3934(0x405)]();}[_0x5bf0eb(0x3f4)](){const _0x20c295=_0x5bf0eb;this[_0x20c295(0x47d)](),this[_0x20c295(0x32d)](this[_0x20c295(0x303)][_0x20c295(0x418)]()),this['_unlockTransition']();}[_0x5bf0eb(0x2da)](_0x2b8bb7=!0x1){const _0xc605eb=_0x5bf0eb;this[_0xc605eb(0x47d)](),this[_0xc605eb(0x32d)](this[_0xc605eb(0x303)][_0xc605eb(0x44e)]()),this[_0xc605eb(0x405)]();let _0x1b38cf=this[_0xc605eb(0x303)];_0x2b8bb7&&_0x1b38cf instanceof _0x28d539&&(this[_0xc605eb(0x47d)](),this[_0xc605eb(0x32d)](_0x1b38cf[_0xc605eb(0x282)]()),this[_0xc605eb(0x405)]());}async['_createInitialState'](){return new Promise(_0x5790a8=>{const _0x3af914=_0x4f27;this[_0x3af914(0x20d)]['sessionStatus$'][_0x3af914(0x4be)]((0x0,_0x4f3716['take'])(0x1))[_0x3af914(0x31f)](async _0x2358f2=>{const _0x173295=_0x3af914;_0x5790a8(await this[_0x173295(0x2bd)](_0x2358f2===0x3));});});}[_0x5bf0eb(0x48d)](){const _0x43f762=_0x5bf0eb;let _0x11bec2=this[_0x43f762(0x37e)];return{'onStateChange':(_0x5b5bd4,_0x340f65)=>{const _0x5ad769=_0x43f762;if(_0x5b5bd4!==this[_0x5ad769(0x303)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x5b5bd4['status']+'\x0aAfter:\x20'+_0x340f65[_0x5ad769(0x308)]+'\x0aCurrent:\x20'+this['_state']['status']);this[_0x5ad769(0x32d)](_0x340f65);},'onSendChangeset':_0x763ddc=>{const _0x17580e=_0x43f762;_0x763ddc[_0x17580e(0x390)]||(_0x763ddc[_0x17580e(0x390)]=this[_0x17580e(0x473)],_0x763ddc[_0x17580e(0x29f)]=++this[_0x17580e(0x39b)]);let _0x10573e={'eventID':_0x2b53f2['CollaborationEvent']['SUBMIT_CHANGESET'],'data':{'unitID':_0x763ddc[_0x17580e(0x37e)],'unitType':this[_0x17580e(0x402)],'changeset':_0x763ddc,'memberID':this[_0x17580e(0x20d)][_0x17580e(0x306)]()}};this[_0x17580e(0x20d)][_0x17580e(0x4eb)](_0x10573e,this[_0x17580e(0x37e)]);},'onMissingChangesets':({from:_0x3ef1d4,to:_0x4a0df9})=>{const _0x10e8ce=_0x43f762;this[_0x10e8ce(0x236)][_0x10e8ce(0x265)](_0x10e8ce(0x440),'fetching\x20missing\x20changesets\x20from\x20'+_0x3ef1d4+_0x10e8ce(0x424)+_0x4a0df9);let _0x5c37e0={'eventID':_0x2b53f2[_0x10e8ce(0x406)][_0x10e8ce(0x31b)],'data':{'unitID':_0x11bec2,'unitType':this[_0x10e8ce(0x402)],'from':_0x3ef1d4,'to':_0x4a0df9}};this[_0x10e8ce(0x20d)]['send'](_0x5c37e0,this[_0x10e8ce(0x37e)]);}};}async['_createInitialStateImpl'](_0x555c3a){const _0x59671a=_0x5bf0eb;var _0x11de98,_0xb38096,_0x5d0c64;let _0x7f7cac=await((_0x11de98=this[_0x59671a(0x33c)])==null?void 0x0:_0x11de98['loadOfflineData'](this[_0x59671a(0x37e)])),_0x40589c=(_0xb38096=_0x7f7cac==null?void 0x0:_0x7f7cac[_0x59671a(0x277)])==null?[]:_0xb38096,_0x114d0e=(_0x5d0c64=_0x7f7cac==null?void 0x0:_0x7f7cac[_0x59671a(0x4d1)])==null?null:_0x5d0c64,_0xab9273=!!(_0x114d0e!=null&&_0x114d0e['sid'])&&!!(_0x114d0e!=null&&_0x114d0e[_0x59671a(0x29f)]);this[_0x59671a(0x473)]=_0xab9273?_0x114d0e[_0x59671a(0x390)]:(0x0,_0x2b53f2['uuidv4'])(),this[_0x59671a(0x39b)]=_0xab9273?_0x114d0e['reqId']:0x0;let _0x8beb58=this[_0x59671a(0x37e)];try{this[_0x59671a(0x3d4)](_0x114d0e,_0x40589c);}catch(_0x4a0946){this['_logService'][_0x59671a(0x35f)](_0x4a0946);}let _0x19c29d=this[_0x59671a(0x48d)]();if(_0x555c3a){let _0x5d2cc8=_0x1f46ae(this[_0x59671a(0x2d5)],_0x8beb58,this['_type'],_0x114d0e,_0x40589c,_0x19c29d);return _0x5d2cc8 instanceof _0x17b236?_0x5d2cc8['_schedule']():(_0x5d2cc8 instanceof _0x2be15f||_0x5d2cc8 instanceof _0x45f3bd)&&_0x5d2cc8[_0x59671a(0x460)](),_0x5d2cc8;}return this[_0x59671a(0x2d5)]['createInstance'](_0x5a87ab,_0x8beb58,this[_0x59671a(0x402)],_0x114d0e,_0x40589c,_0x19c29d);}[_0x5bf0eb(0x3d4)](_0x2f9a58,_0x378f82){const _0x402062=_0x5bf0eb;var _0x723a3d,_0x49cd18;let _0x4fd216=this[_0x402062(0x1e8)][_0x402062(0x35d)][_0x402062(0x2cc)](this[_0x402062(0x1e8)][_0x402062(0x35d)]['getInterceptPoints']()[_0x402062(0x416)]);(_0x723a3d=_0x4fd216((_0x2f9a58==null?void 0x0:_0x2f9a58[_0x402062(0x277)])||[],null))==null||_0x723a3d[_0x402062(0x312)](_0x343085=>this[_0x402062(0x399)][_0x402062(0x3f5)](_0x343085['id'],_0x343085['params'])),(_0x49cd18=_0x4fd216(_0x378f82||[],null))==null||_0x49cd18['forEach'](_0x979c6e=>this[_0x402062(0x399)][_0x402062(0x3f5)](_0x979c6e['id'],_0x979c6e[_0x402062(0x4c7)]));}};_0x3e0a94=_0x4e6e0f([_0xe72533(0x3,(0x0,_0x2dbbd9['Inject'])(_0x2dbbd9['Injector'])),_0xe72533(0x4,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2b53f2['CompressMutationService'])),_0xe72533(0x5,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x340)])),_0xe72533(0x6,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2b53f2[_0x5bf0eb(0x495)])),_0xe72533(0x7,(0x0,_0x2dbbd9['Inject'])(_0x10b08d)),_0xe72533(0x8,_0x2dbbd9[_0x5bf0eb(0x4d0)]),_0xe72533(0x9,_0x2dbbd9[_0x5bf0eb(0x21b)]),_0xe72533(0xa,_0x2dbbd9['ICommandService']),_0xe72533(0xb,_0x2dbbd9[_0x5bf0eb(0x338)]),_0xe72533(0xc,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x268fcd)),_0xe72533(0xd,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x36e220))],_0x3e0a94);let _0xe7b4d0=class extends _0x3e0a94{constructor(_0x4afe71,_0x14b8b2,_0x50abc6,_0x20caba,_0x57cee4,_0x102ca2,_0x12d500,_0xb5295,_0x16fe1e,_0x4a6b6b,_0x1988b9,_0x533e1a,_0x1650ac,_0x4ac18b){const _0x6895e2=_0x5bf0eb;super(_0x4afe71,_0x50abc6,_0x14b8b2,_0x20caba,_0x57cee4,_0x102ca2,_0x12d500,_0xb5295,_0x16fe1e,_0x4a6b6b,_0x1988b9,_0x533e1a,_0x1650ac,_0x4ac18b),this['unitID']=_0x4afe71,this[_0x6895e2(0x3f8)]=_0x14b8b2,_0x527b5d(this,'_handlerCallback',null);}[_0x5bf0eb(0x38e)](_0x34ab09){this['_handlerCallback']=_0x34ab09;}[_0x5bf0eb(0x2e2)](){const _0x452856=_0x5bf0eb;this[_0x452856(0x394)]=null,super[_0x452856(0x2e2)]();}[_0x5bf0eb(0x48d)](){const _0x5891d3=_0x5bf0eb;let _0x3a11b3=super[_0x5891d3(0x48d)]();return _0x3a11b3[_0x5891d3(0x403)]=_0x28ae8a=>{const _0x418daa=_0x5891d3;var _0x25a12d,_0x2f0864;return(_0x25a12d=this[_0x418daa(0x394)])==null||(_0x2f0864=_0x25a12d['onTransformIME'])==null?void 0x0:_0x2f0864[_0x418daa(0x354)](_0x25a12d,_0x28ae8a);},_0x3a11b3[_0x5891d3(0x46d)]=_0xfffa7f=>{const _0x343632=_0x5891d3;var _0x304681,_0xe6940f;return(_0x304681=this[_0x343632(0x394)])==null||(_0xe6940f=_0x304681['onTransformState'])==null?void 0x0:_0xe6940f[_0x343632(0x354)](_0x304681,_0xfffa7f);},_0x3a11b3[_0x5891d3(0x377)]=_0x169f9a=>{const _0x5b72bb=_0x5891d3;var _0x3ec4dd,_0x43a9d0;return(_0x3ec4dd=this[_0x5b72bb(0x394)])==null||(_0x43a9d0=_0x3ec4dd[_0x5b72bb(0x377)])==null?void 0x0:_0x43a9d0['call'](_0x3ec4dd,_0x169f9a);},_0x3a11b3[_0x5891d3(0x493)]=_0x5e0da3=>{const _0x328181=_0x5891d3;var _0x38ccc9,_0x4eedf0;return(_0x38ccc9=this[_0x328181(0x394)])==null||(_0x4eedf0=_0x38ccc9[_0x328181(0x493)])==null?void 0x0:_0x4eedf0['call'](_0x38ccc9,_0x5e0da3);},_0x3a11b3['onTransformRemoteChangesetByIMECache']=_0x3b9804=>{const _0x437148=_0x5891d3;var _0x4e0019,_0x417281,_0x80fba0;if(!((_0x4e0019=this[_0x437148(0x394)])!=null&&_0x4e0019['onTransformRemoteChangesetByIMECache']))throw Error(_0x437148(0x429));return(_0x417281=this[_0x437148(0x394)])==null||(_0x80fba0=_0x417281[_0x437148(0x276)])==null?void 0x0:_0x80fba0['call'](_0x417281,_0x3b9804);},_0x3a11b3[_0x5891d3(0x227)]=_0x420817=>{const _0x3dcf25=_0x5891d3;var _0x5c235b,_0x25870f,_0x119956;if(!((_0x5c235b=this[_0x3dcf25(0x394)])!=null&&_0x5c235b['onTransformRemoteChangesetByStateCache']))throw Error(_0x3dcf25(0x300));return(_0x25870f=this[_0x3dcf25(0x394)])==null||(_0x119956=_0x25870f[_0x3dcf25(0x227)])==null?void 0x0:_0x119956['call'](_0x25870f,_0x420817);},_0x3a11b3;}async[_0x5bf0eb(0x226)](){const _0x295f5f=_0x5bf0eb;let _0x2bd405=await super[_0x295f5f(0x226)]();return this[_0x295f5f(0x4a6)](this['_commandService'][_0x295f5f(0x36d)]((_0x42a6d3,_0x3e9845)=>{const _0x2be856=_0x295f5f;if(_0x42a6d3['type']!==_0x2dbbd9[_0x2be856(0x2b2)][_0x2be856(0x469)]||_0x3e9845!=null&&_0x3e9845['fromCollab']||_0x3e9845!=null&&_0x3e9845[_0x2be856(0x4ba)]||_0x42a6d3['id']===_0x13703b[_0x2be856(0x37f)]['id'])return;let _0x32298a=_0x42a6d3[_0x2be856(0x4c7)];if((_0x32298a==null?void 0x0:_0x32298a['unitId'])!==this[_0x2be856(0x37e)])return;let _0x5832f7=_0x42a6d3,_0x5b8110=this[_0x2be856(0x1e8)][_0x2be856(0x35d)][_0x2be856(0x2cc)](this[_0x2be856(0x1e8)][_0x2be856(0x35d)][_0x2be856(0x261)]()[_0x2be856(0x200)])([_0x5832f7],this[_0x2be856(0x389)])||[_0x5832f7];this[_0x2be856(0x3b9)](_0x5b8110[0x0]);})),_0x2bd405;}};_0xe7b4d0=_0x4e6e0f([_0xe72533(0x3,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x3fa)])),_0xe72533(0x4,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2b53f2[_0x5bf0eb(0x46a)])),_0xe72533(0x5,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9['LocaleService'])),_0xe72533(0x6,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2b53f2[_0x5bf0eb(0x495)])),_0xe72533(0x7,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x10b08d)),_0xe72533(0x8,_0x2dbbd9[_0x5bf0eb(0x4d0)]),_0xe72533(0x9,_0x2dbbd9[_0x5bf0eb(0x21b)]),_0xe72533(0xa,_0x2dbbd9[_0x5bf0eb(0x28c)]),_0xe72533(0xb,_0x2dbbd9['IPermissionService']),_0xe72533(0xc,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x268fcd)),_0xe72533(0xd,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x36e220))],_0xe7b4d0);let _0x4db82b=class extends _0x3e0a94{constructor(_0x590fea,_0x569811,_0x2d85ef,_0x18239c,_0x38c86f,_0x4b1891,_0x24b8fa,_0x3206d1,_0x429bd5,_0x2d2c1d,_0xa4c990,_0x570fdd,_0x497a87,_0x2c5bdc,_0x3d4f52){const _0x231a67=_0x5bf0eb;super(_0x590fea,_0x2d85ef,_0x569811,_0x18239c,_0x38c86f,_0x4b1891,_0x24b8fa,_0x429bd5,_0x2d2c1d,_0xa4c990,_0x570fdd,_0x497a87,_0x2c5bdc,_0x3d4f52),this[_0x231a67(0x37e)]=_0x590fea,this['type']=_0x569811,this[_0x231a67(0x304)]=_0x3206d1;}['_createHandler'](){const _0x56e43d=_0x5bf0eb;let _0x3cfbeb=super[_0x56e43d(0x48d)]();return _0x3cfbeb[_0x56e43d(0x377)]=_0x2bdae8=>this[_0x56e43d(0x304)]['transformSelections'](_0x2bdae8),_0x3cfbeb;}async[_0x5bf0eb(0x226)](){const _0x5e47cf=_0x5bf0eb;let _0x19fd86=await super[_0x5e47cf(0x226)]();return this['disposeWithMe'](this[_0x5e47cf(0x399)][_0x5e47cf(0x36d)]((_0x23a8af,_0x217e16)=>{const _0x4e7cfb=_0x5e47cf;if(_0x23a8af[_0x4e7cfb(0x3f8)]!==_0x2dbbd9['CommandType']['MUTATION']||_0x217e16!=null&&_0x217e16[_0x4e7cfb(0x3e1)]||_0x217e16!=null&&_0x217e16[_0x4e7cfb(0x4ba)])return;let _0x4329b4=_0x23a8af['params'];if((_0x4329b4==null?void 0x0:_0x4329b4[_0x4e7cfb(0x281)])!==this[_0x4e7cfb(0x37e)])return;let _0x70b660=_0x23a8af,_0x446f14=this[_0x4e7cfb(0x1e8)][_0x4e7cfb(0x35d)][_0x4e7cfb(0x2cc)](this[_0x4e7cfb(0x1e8)]['interceptor']['getInterceptPoints']()[_0x4e7cfb(0x200)])([_0x70b660],this[_0x4e7cfb(0x389)])||[_0x70b660];this[_0x4e7cfb(0x3b9)](_0x446f14[0x0]);})),_0x19fd86;}};_0x4db82b=_0x4e6e0f([_0xe72533(0x3,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x3fa)])),_0xe72533(0x4,(0x0,_0x2dbbd9['Inject'])(_0x2b53f2[_0x5bf0eb(0x46a)])),_0xe72533(0x5,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x340)])),_0xe72533(0x6,(0x0,_0x2dbbd9['Inject'])(_0x2b53f2[_0x5bf0eb(0x495)])),_0xe72533(0x7,(0x0,_0x2dbbd9['Inject'])(_0x53e950)),_0xe72533(0x8,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x10b08d)),_0xe72533(0x9,_0x2dbbd9[_0x5bf0eb(0x4d0)]),_0xe72533(0xa,_0x2dbbd9['ILogService']),_0xe72533(0xb,_0x2dbbd9[_0x5bf0eb(0x28c)]),_0xe72533(0xc,_0x2dbbd9['IPermissionService']),_0xe72533(0xd,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x268fcd)),_0xe72533(0xe,(0x0,_0x2dbbd9['Optional'])(_0x36e220))],_0x4db82b);let _0x235c1d=(0x0,_0x2dbbd9['createIdentifier'])('univer-pro.collaboration-client.network-condition.service');function _0x1a0343(_0x4f1a07){const _0x24995c=_0x5bf0eb;let _0x59e7fb=_0x4f1a07[_0x24995c(0x43a)],_0x892557=JSON['parse'](_0x59e7fb);switch(_0x892557[_0x24995c(0x3c8)]){case _0x240cfb['CombCmd'][_0x24995c(0x49f)]:case _0x240cfb['CombCmd']['HELLO']:{let _0x4c1bd5=_0x892557[_0x24995c(0x2af)];return{..._0x892557,'data':_0x4c1bd5,'cmd':_0x892557['cmd']};}case _0x240cfb[_0x24995c(0x42b)][_0x24995c(0x4a1)]:{let _0x458ca2=_0x892557[_0x24995c(0x379)];return{..._0x892557,'data':_0x458ca2,'cmd':_0x892557['cmd']};}case _0x240cfb['CombCmd']['RECV']:{let _0x273a07=_0x892557[_0x24995c(0x434)];switch(_0x273a07[_0x24995c(0x4d9)]){case _0x2b53f2['CollaborationEvent'][_0x24995c(0x254)]:var _0x25db2c;return{..._0x892557,'data':{..._0x273a07,'data':(_0x25db2c=_0x273a07[_0x24995c(0x1fe)])==null?void 0x0:_0x25db2c['cs']},'cmd':_0x892557['cmd']};case _0x2b53f2[_0x24995c(0x406)]['CHANGESET_ACK']:var _0x691bdf;return{..._0x892557,'data':{..._0x273a07,'data':(_0x691bdf=_0x273a07[_0x24995c(0x41d)])==null?void 0x0:_0x691bdf['cs']},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2['CollaborationEvent'][_0x24995c(0x44a)]:var _0x2e1b21;return{..._0x892557,'data':{..._0x273a07,'data':(_0x2e1b21=_0x273a07[_0x24995c(0x229)])==null?void 0x0:_0x2e1b21['cs']},'cmd':_0x892557['cmd']};case _0x2b53f2[_0x24995c(0x406)]['CHANGESET_REJ']:var _0x182e4d;return{..._0x892557,'data':{..._0x273a07,'data':(_0x182e4d=_0x273a07[_0x24995c(0x203)])==null?void 0x0:_0x182e4d['cs']},'cmd':_0x892557['cmd']};case _0x2b53f2['CollaborationEvent'][_0x24995c(0x437)]:var _0x45181b;return{..._0x892557,'data':{..._0x273a07,'data':(_0x45181b=_0x273a07[_0x24995c(0x481)])==null?void 0x0:_0x45181b['cs']},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2['CollaborationEvent'][_0x24995c(0x2db)]:return{..._0x892557,'data':{..._0x273a07,'data':_0x273a07['updateCursorEvent']},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2['CollaborationEvent']['USERS_ENTER']:return{..._0x892557,'data':{..._0x273a07,'data':_0x273a07[_0x24995c(0x24e)]},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2[_0x24995c(0x406)][_0x24995c(0x4c8)]:return{..._0x892557,'data':{..._0x273a07,'data':_0x273a07[_0x24995c(0x247)]},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2['CollaborationEvent'][_0x24995c(0x328)]:return{..._0x892557,'data':{..._0x273a07,'data':_0x273a07[_0x24995c(0x2b4)]},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2[_0x24995c(0x406)][_0x24995c(0x21a)]:case _0x2b53f2[_0x24995c(0x406)][_0x24995c(0x3ff)]:return{..._0x892557,'data':{..._0x273a07,'data':_0x273a07[_0x24995c(0x1fc)]},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2[_0x24995c(0x406)][_0x24995c(0x2c9)]:return{..._0x892557,'data':{..._0x273a07,'data':_0x273a07[_0x24995c(0x2b4)]},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2[_0x24995c(0x406)]['MSG_FOR_ERROR']:return{..._0x892557,'data':_0x273a07,'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2[_0x24995c(0x406)][_0x24995c(0x316)]:return{..._0x892557,'data':{..._0x273a07,'data':_0x273a07[_0x24995c(0x2e8)]},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2['CollaborationEvent'][_0x24995c(0x246)]:return{..._0x892557,'data':{..._0x273a07,'data':_0x273a07[_0x24995c(0x3b3)]},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2[_0x24995c(0x406)][_0x24995c(0x368)]:return{..._0x892557,'data':{..._0x273a07,'data':_0x273a07[_0x24995c(0x2f7)]},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2['CollaborationEvent'][_0x24995c(0x2d6)]:return{..._0x892557,'data':{..._0x273a07,'data':_0x273a07[_0x24995c(0x456)]},'cmd':_0x892557[_0x24995c(0x3c8)]};default:return _0x892557;}}default:return _0x892557;}}function _0x600b81(_0x615d2){const _0x3cd6b1=_0x5bf0eb;switch(_0x615d2[_0x3cd6b1(0x3c8)]){case _0x240cfb[_0x3cd6b1(0x42b)][_0x3cd6b1(0x49f)]:case _0x240cfb['CombCmd']['HELLO']:return JSON[_0x3cd6b1(0x337)]({'cmd':_0x615d2[_0x3cd6b1(0x3c8)],'routeKey':_0x615d2['routeKey']});case _0x240cfb['CombCmd'][_0x3cd6b1(0x249)]:{let _0x50a520;switch(_0x615d2[_0x3cd6b1(0x43a)][_0x3cd6b1(0x4d9)]){case _0x2b53f2[_0x3cd6b1(0x406)][_0x3cd6b1(0x2db)]:_0x50a520={'eventID':_0x2b53f2['CollaborationEvent'][_0x3cd6b1(0x2db)],'updateCursorEvent':_0x615d2[_0x3cd6b1(0x43a)][_0x3cd6b1(0x43a)]};break;case _0x2b53f2[_0x3cd6b1(0x406)][_0x3cd6b1(0x4c8)]:_0x50a520={'eventID':_0x2b53f2[_0x3cd6b1(0x406)][_0x3cd6b1(0x4c8)],'leaveEvent':_0x615d2['data'][_0x3cd6b1(0x43a)]};break;case _0x2b53f2[_0x3cd6b1(0x406)]['USERS_ENTER']:_0x50a520={'eventID':_0x2b53f2['CollaborationEvent'][_0x3cd6b1(0x3eb)],'joinEvent':_0x615d2[_0x3cd6b1(0x43a)][_0x3cd6b1(0x43a)]};break;case _0x2b53f2[_0x3cd6b1(0x406)]['LIVESHARE_NEW_HOST']:_0x50a520={'eventID':_0x2b53f2[_0x3cd6b1(0x406)][_0x3cd6b1(0x328)],'liveShareNewHost':_0x615d2[_0x3cd6b1(0x43a)][_0x3cd6b1(0x43a)]};break;case _0x2b53f2[_0x3cd6b1(0x406)][_0x3cd6b1(0x3ff)]:_0x50a520={'eventID':_0x2b53f2[_0x3cd6b1(0x406)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x615d2[_0x3cd6b1(0x43a)][_0x3cd6b1(0x43a)]};break;case _0x2b53f2['CollaborationEvent'][_0x3cd6b1(0x2c9)]:_0x50a520={'eventID':_0x2b53f2['CollaborationEvent'][_0x3cd6b1(0x2c9)],'liveShareTerminate':_0x615d2['data'][_0x3cd6b1(0x43a)]};break;case _0x2b53f2[_0x3cd6b1(0x406)][_0x3cd6b1(0x2ab)]:_0x50a520={'eventID':_0x2b53f2[_0x3cd6b1(0x406)][_0x3cd6b1(0x2ab)],'liveShareRequestHost':_0x615d2['data']['data']};break;case _0x2b53f2[_0x3cd6b1(0x406)][_0x3cd6b1(0x21a)]:_0x50a520={'eventID':_0x2b53f2['CollaborationEvent'][_0x3cd6b1(0x21a)]};break;default:_0x50a520={'eventID':_0x615d2['data'][_0x3cd6b1(0x4d9)]};}return JSON[_0x3cd6b1(0x337)]({'cmd':_0x615d2['cmd'],'routeKey':_0x615d2[_0x3cd6b1(0x231)],'collaMsg':_0x50a520});}case _0x240cfb['CombCmd'][_0x3cd6b1(0x4a1)]:return JSON[_0x3cd6b1(0x337)]({'cmd':_0x615d2[_0x3cd6b1(0x3c8)],'routeKey':_0x615d2[_0x3cd6b1(0x231)],'joinReq':_0x615d2[_0x3cd6b1(0x43a)]});case _0x240cfb[_0x3cd6b1(0x42b)]['LEAVE']:return JSON[_0x3cd6b1(0x337)]({'cmd':_0x615d2[_0x3cd6b1(0x3c8)],'routeKey':_0x615d2['routeKey'],'leaveReq':_0x615d2[_0x3cd6b1(0x43a)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}let _0x18a142=(0x0,_0x2dbbd9[_0x5bf0eb(0x2c8)])(_0x5bf0eb(0x4cf));function _0x26ebb7(_0x31d87d,_0x1b9765,_0x3c3256){return _0x31d87d+'/'+_0x1b9765+'/unit/'+_0x3c3256+'/new_changes';}let _0x47e4bb=class extends _0x2dbbd9[_0x5bf0eb(0x2e6)]{constructor(_0x1d9a79,_0x2194dc,_0x1af019,_0x41ef6a,_0x172187){const _0x1cb35b=_0x5bf0eb;super(),this[_0x1cb35b(0x2d5)]=_0x1d9a79,this[_0x1cb35b(0x21f)]=_0x2194dc,this['_configService']=_0x1af019,this[_0x1cb35b(0x236)]=_0x41ef6a,this['_snapshotServerService']=_0x172187;}[_0x5bf0eb(0x3ba)](_0x3cee2e){const _0x32390d=_0x5bf0eb;let _0x2eb4d6=this['_injector'][_0x32390d(0x42f)](_0x5f56f9['ISocketService']);if(!_0x2eb4d6)throw Error(_0x32390d(0x335));let _0x569295=_0x2eb4d6[_0x32390d(0x268)](_0x3cee2e);if(!_0x569295)throw Error(_0x32390d(0x232));let _0x23edd7=new _0x2dbbd9[(_0x32390d(0x31d))](),_0x549ff0=new _0x4f3716[(_0x32390d(0x33a))]();_0x23edd7['add'](_0x569295[_0x32390d(0x40c)][_0x32390d(0x31f)](_0x5108ac=>_0x549ff0[_0x32390d(0x274)](_0x5108ac))),_0x23edd7['add']((0x0,_0x2dbbd9['toDisposable'])(()=>_0x549ff0['complete']()));let _0x10f574=new _0x4f3716['Subject']();_0x23edd7['add'](_0x569295['error$'][_0x32390d(0x31f)](_0x400321=>_0x10f574[_0x32390d(0x274)](_0x400321))),_0x23edd7[_0x32390d(0x382)]((0x0,_0x2dbbd9[_0x32390d(0x1ee)])(()=>_0x10f574[_0x32390d(0x311)]()));let _0x2cbadc=new _0x4f3716[(_0x32390d(0x33a))]();_0x23edd7['add'](_0x569295['message$'][_0x32390d(0x31f)](_0x3d4418=>{const _0x129c28=_0x32390d;let _0x1ba4e0=_0x1a0343(_0x3d4418);_0x2cbadc[_0x129c28(0x274)](_0x1ba4e0);})),_0x23edd7['add']((0x0,_0x2dbbd9['toDisposable'])(()=>_0x2cbadc[_0x32390d(0x311)]()));let _0x4db891,_0x29e820=()=>{const _0x107da2=_0x32390d;_0x10f574[_0x107da2(0x274)](new Event(_0x107da2(0x4db))),_0x549ff0[_0x107da2(0x274)](new Event(_0x107da2(0x4db))),_0x4db891['close']();};return _0x4db891={'memberID':'','close$':_0x549ff0[_0x32390d(0x2e9)](),'error$':_0x10f574[_0x32390d(0x2e9)](),'open$':_0x569295[_0x32390d(0x3bc)],'message$':_0x2cbadc['asObservable'](),'send':_0x535372=>{const _0xde1262=_0x32390d;if(_0x535372[_0xde1262(0x3c8)]===_0x240cfb[_0xde1262(0x42b)][_0xde1262(0x249)]){if(_0x535372[_0xde1262(0x43a)][_0xde1262(0x4d9)]===_0x2b53f2[_0xde1262(0x406)]['SUBMIT_CHANGESET']){this[_0xde1262(0x242)](_0x4db891,_0x535372['data'])[_0xde1262(0x366)](_0x180e37=>{const _0x520b91=_0xde1262;this['_logService'][_0x520b91(0x35f)](_0x180e37),_0x29e820();});return;}if(_0x535372['data'][_0xde1262(0x4d9)]===_0x2b53f2[_0xde1262(0x406)][_0xde1262(0x31b)]){let _0x2c4326=_0x535372[_0xde1262(0x43a)];this[_0xde1262(0x1f8)](_0x2c4326)[_0xde1262(0x20c)](_0x1102fd=>{const _0x1b2400=_0xde1262;_0x2cbadc['next']({'cmd':_0x240cfb['CombCmd'][_0x1b2400(0x4aa)],'code':_0x240cfb[_0x1b2400(0x447)]['OK'],'routeKey':_0x2c4326[_0x1b2400(0x43a)][_0x1b2400(0x37e)],'routeType':'','data':{'eventID':_0x2b53f2[_0x1b2400(0x406)][_0x1b2400(0x421)],'data':{'changesets':_0x1102fd}}});})['catch'](_0x540003=>{const _0x4e6630=_0xde1262;this[_0x4e6630(0x236)][_0x4e6630(0x35f)](_0x540003),_0x29e820();});return;}}_0x569295[_0xde1262(0x4eb)](_0x600b81(_0x535372));},'close':()=>{const _0x33d259=_0x32390d;_0x569295[_0x33d259(0x243)](),_0x23edd7[_0x33d259(0x2e2)]();}},_0x4db891;}async[_0x5bf0eb(0x242)](_0x26d2c8,_0x57cff8){const _0x3006d0=_0x5bf0eb;var _0x3d905f;let {unitType:_0x478502,unitID:_0x375afd,changeset:_0x45e806}=_0x57cff8['data'],_0x3cc297={'unitID':_0x375afd,'memberID':_0x26d2c8['memberID'],'type':_0x478502,'changeset':(0x0,_0x2b53f2[_0x3006d0(0x49b)])(_0x45e806)},_0x341b11=this[_0x3006d0(0x266)][_0x3006d0(0x46c)](_0x2a84dd),_0x547d14=_0x26ebb7((_0x3d905f=_0x341b11==null?void 0x0:_0x341b11[_0x3006d0(0x420)])==null?_0x3006d0(0x331):_0x3d905f,_0x478502,_0x375afd);try{await this[_0x3006d0(0x21f)]['post'](_0x547d14,{'body':_0x3cc297});}catch(_0x1d5d38){throw this[_0x3006d0(0x236)][_0x3006d0(0x35f)](_0x3006d0(0x2d4),_0x3006d0(0x320)),_0x1d5d38;}}async['_fetchMissChangesets'](_0x7f17e3){const _0x2b2ac3=_0x5bf0eb;let {unitID:_0x359163,from:_0x2e40bb,to:_0xa29691,unitType:_0x701a4f}=_0x7f17e3[_0x2b2ac3(0x43a)];return(await this[_0x2b2ac3(0x482)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x359163,'type':_0x701a4f,'from':_0x2e40bb,'to':_0xa29691}))['changesets'][_0x2b2ac3(0x1e3)](_0x25b68f=>((_0x25b68f[_0x2b2ac3(0x277)]===null||_0x25b68f['mutations']===void 0x0)&&(_0x25b68f['mutations']=[]),_0x25b68f));}};_0x47e4bb=_0x4e6e0f([_0xe72533(0x0,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9['Injector'])),_0xe72533(0x1,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x5f56f9[_0x5bf0eb(0x207)])),_0xe72533(0x2,_0x2dbbd9[_0x5bf0eb(0x488)]),_0xe72533(0x3,_0x2dbbd9[_0x5bf0eb(0x21b)]),_0xe72533(0x4,_0x2b53f2[_0x5bf0eb(0x28a)])],_0x47e4bb);let _0x1d8d49=class extends _0x2dbbd9[_0x5bf0eb(0x2e6)]{get[_0x5bf0eb(0x2ec)](){const _0x41acc5=_0x5bf0eb;return this[_0x41acc5(0x3c3)][_0x41acc5(0x2fe)]();}constructor(_0x8b979e,_0x4af259,_0x3b22fe,_0x27a2a2,_0x50e67a,_0x362bda){const _0x277039=_0x5bf0eb;super(),this['_injector']=_0x8b979e,this[_0x277039(0x236)]=_0x4af259,this[_0x277039(0x266)]=_0x3b22fe,this[_0x277039(0x2a9)]=_0x27a2a2,this[_0x277039(0x392)]=_0x50e67a,this[_0x277039(0x396)]=_0x362bda,_0x527b5d(this,_0x277039(0x3c3),new _0x4f3716[(_0x277039(0x391))](void 0x0)),_0x527b5d(this,'socket$',this[_0x277039(0x3c3)][_0x277039(0x2e9)]()),_0x527b5d(this,_0x277039(0x28d),null),_0x527b5d(this,_0x277039(0x280),new Map()),_0x527b5d(this,'_status$',new _0x4f3716[(_0x277039(0x391))](0x0)),_0x527b5d(this,'status$',this[_0x277039(0x343)][_0x277039(0x2e9)]()),_0x527b5d(this,'_socketReady',!0x1),_0x527b5d(this,'_retryConnectingTimer',void 0x0),_0x527b5d(this,'_retryCount',0x0),_0x527b5d(this,'_sendHeartbeatTimer',void 0x0),_0x527b5d(this,_0x277039(0x454),void 0x0),this[_0x277039(0x39e)]();}[_0x5bf0eb(0x39e)](){const _0x6a70ee=_0x5bf0eb;this[_0x6a70ee(0x396)]&&this[_0x6a70ee(0x4a6)](this[_0x6a70ee(0x396)]['online$']['subscribe'](_0x543eb7=>{const _0x1665f3=_0x6a70ee;_0x543eb7&&!this[_0x1665f3(0x2ec)]&&this[_0x1665f3(0x430)](),_0x543eb7||this[_0x1665f3(0x452)]();}));}['dispose'](){const _0x3e76ae=_0x5bf0eb;super['dispose'](),this[_0x3e76ae(0x4a0)](),this['_clearTimeoutTimer'](),this[_0x3e76ae(0x2d9)](),this[_0x3e76ae(0x280)]['forEach'](_0x1e11f9=>_0x1e11f9[_0x3e76ae(0x2e2)]()),this['_sessions'][_0x3e76ae(0x4b9)](),this[_0x3e76ae(0x343)][_0x3e76ae(0x311)]();}async[_0x5bf0eb(0x3b8)](_0x27a9cf){const _0x49573b=_0x5bf0eb;if(this[_0x49573b(0x280)]['has'](_0x27a9cf))return this[_0x49573b(0x280)][_0x49573b(0x42f)](_0x27a9cf);this[_0x49573b(0x1eb)]();let _0x504e39=this[_0x49573b(0x2d5)][_0x49573b(0x408)](_0x2fe3e1,_0x27a9cf,this[_0x49573b(0x3c3)][_0x49573b(0x2e9)]());return this[_0x49573b(0x280)][_0x49573b(0x41a)](_0x27a9cf,_0x504e39),_0x504e39;}['closeSession'](_0x271b00){const _0x222f6c=_0x5bf0eb;let _0x54faa5=this[_0x222f6c(0x280)][_0x222f6c(0x42f)](_0x271b00);if(_0x54faa5&&(this[_0x222f6c(0x280)][_0x222f6c(0x4d5)](_0x271b00),_0x54faa5['close']()),!this['_sessions'][_0x222f6c(0x2a7)]){var _0x368cc8;(_0x368cc8=this['_socket'])==null||_0x368cc8[_0x222f6c(0x243)]();}}[_0x5bf0eb(0x430)](){const _0x2a6b08=_0x5bf0eb;this['_retryCount']=0x0,this[_0x2a6b08(0x4a0)](),this[_0x2a6b08(0x3c6)]();}[_0x5bf0eb(0x4a0)](){const _0x5897fd=_0x5bf0eb;this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x5897fd(0x3d5)]),this[_0x5897fd(0x3d5)]=null);}async[_0x5bf0eb(0x2a6)](){const _0x1bf4a9=_0x5bf0eb;var _0xfbcf52;let _0x22ebf4=this[_0x1bf4a9(0x266)][_0x1bf4a9(0x46c)](_0x2a84dd),_0x5b9f69=(_0xfbcf52=_0x22ebf4==null?void 0x0:_0x22ebf4[_0x1bf4a9(0x425)])==null?_0xcb84c1:_0xfbcf52,_0x28780b=await this['_socketService'][_0x1bf4a9(0x268)](_0x5b9f69);return this[_0x1bf4a9(0x28d)]=_0x28780b,_0x28780b;}async['_tryEnsureSocket'](){const _0x4bda8b=_0x5bf0eb;try{var _0x3a4f3a,_0x385430;let _0x5b5a71=(_0x3a4f3a=(_0x385430=this[_0x4bda8b(0x2ec)])==null?this['_candidateSocket']:_0x385430)==null?await this[_0x4bda8b(0x2a6)]():_0x3a4f3a;if(_0x5b5a71){let _0x354ad6=_0x5b5a71[_0x4bda8b(0x4eb)];_0x5b5a71[_0x4bda8b(0x4eb)]=_0x25909d=>(_0x25909d[_0x4bda8b(0x3c8)]!==_0x240cfb['CombCmd']['LEAVE']&&this['_rescheduleHeartbeat'](),_0x354ad6[_0x4bda8b(0x2a3)](_0x5b5a71,[_0x25909d])),_0x5b5a71[_0x4bda8b(0x35c)][_0x4bda8b(0x31f)](_0x1e12ea=>this[_0x4bda8b(0x2ce)](_0x5b5a71,_0x1e12ea)),_0x5b5a71[_0x4bda8b(0x225)][_0x4bda8b(0x4be)]((0x0,_0x2ab3d8[_0x4bda8b(0x4ca)])(0x1))[_0x4bda8b(0x31f)](_0x22ba89=>this[_0x4bda8b(0x236)][_0x4bda8b(0x35f)](_0x4bda8b(0x4d2),_0x22ba89)),_0x5b5a71['open$'][_0x4bda8b(0x4be)]((0x0,_0x2ab3d8[_0x4bda8b(0x4ca)])(0x1))[_0x4bda8b(0x31f)](()=>{this['_onConnectionOpen'](_0x5b5a71);}),_0x5b5a71[_0x4bda8b(0x40c)][_0x4bda8b(0x4be)]((0x0,_0x2ab3d8[_0x4bda8b(0x4ca)])(0x1))['subscribe'](_0x1ecd16=>{const _0x49e7a5=_0x4bda8b;this['_logService'][_0x49e7a5(0x265)]('[CollaborationSessionService]','socket\x20close',_0x1ecd16),this[_0x49e7a5(0x4b5)]();});}}catch(_0x28d7ae){this[_0x4bda8b(0x236)][_0x4bda8b(0x35f)](_0x28d7ae),this[_0x4bda8b(0x4b5)]();}}[_0x5bf0eb(0x47c)](_0x3a8cef){const _0x3b7a49=_0x5bf0eb;this[_0x3b7a49(0x236)][_0x3b7a49(0x265)](_0x3b7a49(0x4cd),_0x3b7a49(0x1f4)),_0x3a8cef[_0x3b7a49(0x4eb)]({'cmd':_0x240cfb[_0x3b7a49(0x42b)]['HELLO']}),this[_0x3b7a49(0x271)]();}['_onOffline'](){const _0x556005=_0x5bf0eb;this['_socketReady']=!0x1,this[_0x556005(0x28d)]=null,this[_0x556005(0x343)]['next'](0x2),this[_0x556005(0x3c3)]['next'](null),this[_0x556005(0x4d3)](),this[_0x556005(0x2d9)]();}[_0x5bf0eb(0x4b5)](){const _0x1f1ea2=_0x5bf0eb;var _0x1b1270;this[_0x1f1ea2(0x452)](),this['_retryCount']<((_0x1b1270=this['_configService'][_0x1f1ea2(0x46c)](_0x1f1ea2(0x472)))==null?0x3:_0x1b1270)?(this[_0x1f1ea2(0x392)][_0x1f1ea2(0x216)]({'id':_0x1f1ea2(0x342)}),this[_0x1f1ea2(0x3c6)]()):this[_0x1f1ea2(0x392)][_0x1f1ea2(0x216)]({'id':_0x1f1ea2(0x2a5)});}[_0x5bf0eb(0x3c6)](){const _0x1e6f7d=_0x5bf0eb;var _0xe2042e;let _0x51be22=this['_retryCount'],_0x1671aa=this[_0x1e6f7d(0x266)][_0x1e6f7d(0x46c)](_0x2a84dd),_0x5dcf73=_0x51be22===0x0?0x0:((_0xe2042e=_0x1671aa==null?void 0x0:_0x1671aa['retryConnectingInterval'])==null?0x4e20:_0xe2042e)*0x2**_0x51be22;this[_0x1e6f7d(0x3d5)]=setTimeout(()=>{const _0x9ec16d=_0x1e6f7d;clearTimeout(this[_0x9ec16d(0x3d5)]),this[_0x9ec16d(0x3d5)]=null,this[_0x9ec16d(0x1eb)]();},_0x5dcf73),this[_0x1e6f7d(0x1e9)]+=0x1;}[_0x5bf0eb(0x2ce)](_0x1b7ba5,_0x31a1ec){const _0x91e95c=_0x5bf0eb;let {cmd:_0x42cd8b}=_0x31a1ec;_0x42cd8b===_0x240cfb[_0x91e95c(0x42b)][_0x91e95c(0x471)]&&!this[_0x91e95c(0x295)]&&(_0x1b7ba5['memberID']=_0x31a1ec[_0x91e95c(0x43a)][_0x91e95c(0x260)],this[_0x91e95c(0x3c3)][_0x91e95c(0x274)](_0x1b7ba5),this[_0x91e95c(0x343)]['next'](0x3),this[_0x91e95c(0x295)]=!0x0,this[_0x91e95c(0x28d)]=null),_0x42cd8b===_0x240cfb[_0x91e95c(0x42b)][_0x91e95c(0x49f)]&&this['_clearTimeoutTimer'](),this['_rescheduleHeartbeat']();}[_0x5bf0eb(0x271)](){const _0x10bd49=_0x5bf0eb;var _0x525e26;this[_0x10bd49(0x2d9)](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x10bd49(0x2b8)](),(_0x525e26=this['_configService']['getConfig'](_0x10bd49(0x414)))==null?0x7530:_0x525e26);}[_0x5bf0eb(0x2b8)](){const _0x5c6a53=_0x5bf0eb;this[_0x5c6a53(0x2ec)]['send']({'cmd':_0x240cfb[_0x5c6a53(0x42b)]['HEARTBEAT']}),this[_0x5c6a53(0x294)]();}[_0x5bf0eb(0x294)](){const _0x43a4c8=_0x5bf0eb;var _0x11322d;this[_0x43a4c8(0x454)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x11322d=this[_0x43a4c8(0x266)][_0x43a4c8(0x46c)](_0x43a4c8(0x4d7)))==null?_0x39fe51:_0x11322d);}[_0x5bf0eb(0x2d9)](){const _0x5f5d2f=_0x5bf0eb;this[_0x5f5d2f(0x3d6)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x5f5d2f(0x3d6)]=null);}[_0x5bf0eb(0x4d3)](){const _0x4dda9f=_0x5bf0eb;this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x4dda9f(0x454)]=null);}};_0x1d8d49=_0x4e6e0f([_0xe72533(0x0,(0x0,_0x2dbbd9['Inject'])(_0x2dbbd9[_0x5bf0eb(0x3fa)])),_0xe72533(0x1,_0x2dbbd9['ILogService']),_0xe72533(0x2,_0x2dbbd9[_0x5bf0eb(0x488)]),_0xe72533(0x3,_0x18a142),_0xe72533(0x4,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x10b08d)),_0xe72533(0x5,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x235c1d))],_0x1d8d49);let _0x573fbd=class extends _0x2dbbd9[_0x5bf0eb(0x2ed)]{constructor(_0x4b5ebf,_0xd0cf7e,_0x513c6f,_0x145669){const _0x3f7969=_0x5bf0eb;var _0x259e66;super(),this[_0x3f7969(0x2d5)]=_0x4b5ebf,this[_0x3f7969(0x500)]=_0xd0cf7e,this[_0x3f7969(0x266)]=_0x513c6f,this[_0x3f7969(0x389)]=_0x145669,_0x527b5d(this,'_entities',new Map()),_0x527b5d(this,_0x3f7969(0x2a1),new _0x4f3716[(_0x3f7969(0x33a))]()),_0x527b5d(this,'entityInit$',this[_0x3f7969(0x2a1)]['asObservable']()),((_0x259e66=this[_0x3f7969(0x266)][_0x3f7969(0x46c)](_0x3f7969(0x2ca)))==null?void 0x0:_0x259e66[_0x3f7969(0x36b)])!==!0x1&&this[_0x3f7969(0x226)]();}[_0x5bf0eb(0x2e2)](){const _0x3f4cb6=_0x5bf0eb;super[_0x3f4cb6(0x2e2)](),this['_entities']['forEach'](_0x522d3d=>_0x522d3d[_0x3f4cb6(0x2e2)]()),this['_entities']['clear']();}[_0x5bf0eb(0x4b0)](_0x3eb622){const _0x4892ae=_0x5bf0eb;var _0x142296;return(_0x142296=this['_entities'][_0x4892ae(0x42f)](_0x3eb622))==null?null:_0x142296;}['getCollabEntity$'](_0x5557b2){const _0xfb0768=_0x5bf0eb;let _0x531859=this[_0xfb0768(0x4b0)](_0x5557b2);return _0x531859?(0x0,_0x4f3716['of'])(_0x531859):this[_0xfb0768(0x2a1)][_0xfb0768(0x4be)]((0x0,_0x2ab3d8[_0xfb0768(0x422)])(_0x42fbf5=>_0x42fbf5[_0xfb0768(0x37e)]===_0x5557b2));}[_0x5bf0eb(0x4d4)](_0x51339a){const _0x1772d9=_0x5bf0eb;return(0x0,_0x4f3716[_0x1772d9(0x45b)])(this[_0x1772d9(0x21d)](_0x51339a)[_0x1772d9(0x4be)]((0x0,_0x2ab3d8[_0x1772d9(0x1e3)])(()=>void 0x0)));}[_0x5bf0eb(0x226)](){const _0x46b0c2=_0x5bf0eb;this[_0x46b0c2(0x389)][_0x46b0c2(0x220)](_0x2dbbd9[_0x46b0c2(0x442)][_0x46b0c2(0x20a)])['pipe']((0x0,_0x4f3716[_0x46b0c2(0x4fc)])(this[_0x46b0c2(0x3ea)]),(0x0,_0x2ab3d8['delay'])(0x10))[_0x46b0c2(0x31f)](async _0x42ea0f=>{const _0x4bc554=_0x46b0c2;let _0x9f9eb8=_0x42ea0f['unit'][_0x4bc554(0x3a7)](),_0x348b63=await this['_startCollaboration'](_0x9f9eb8,_0x2dbbd9[_0x4bc554(0x442)][_0x4bc554(0x20a)]);this[_0x4bc554(0x3a4)]['set'](_0x9f9eb8,_0x348b63);}),this['_univerInstanceService'][_0x46b0c2(0x220)](_0x2dbbd9[_0x46b0c2(0x442)][_0x46b0c2(0x477)])[_0x46b0c2(0x4be)]((0x0,_0x4f3716[_0x46b0c2(0x4fc)])(this[_0x46b0c2(0x3ea)]),(0x0,_0x2ab3d8['delay'])(0x10))[_0x46b0c2(0x4be)]((0x0,_0x2ab3d8[_0x46b0c2(0x422)])(_0x12afdb=>!_0x12afdb['unit'][_0x46b0c2(0x3a7)]()[_0x46b0c2(0x4f3)]('__')))['subscribe'](async _0x2802db=>{const _0x55cbd2=_0x46b0c2;let _0x519443=_0x2802db[_0x55cbd2(0x400)]['getUnitId'](),_0x5e4177=await this[_0x55cbd2(0x3c4)](_0x519443,_0x2dbbd9[_0x55cbd2(0x442)]['UNIVER_DOC']);this[_0x55cbd2(0x3a4)]['set'](_0x519443,_0x5e4177);}),(0x0,_0x4f3716[_0x46b0c2(0x42a)])(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x2dbbd9['UniverInstanceType'][_0x46b0c2(0x20a)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x2dbbd9[_0x46b0c2(0x442)][_0x46b0c2(0x477)]))['pipe']((0x0,_0x4f3716['takeUntil'])(this[_0x46b0c2(0x3ea)]))[_0x46b0c2(0x31f)](_0x454b46=>{const _0x2d3499=_0x46b0c2;let _0x5c87e2=_0x454b46[_0x2d3499(0x3a7)](),_0x332d95=this[_0x2d3499(0x3a4)][_0x2d3499(0x42f)](_0x5c87e2);_0x332d95&&(_0x332d95[_0x2d3499(0x2e2)](),this[_0x2d3499(0x3a4)][_0x2d3499(0x4d5)](_0x5c87e2));});}async[_0x5bf0eb(0x3c4)](_0x5a75db,_0x2f6765){const _0x351a2b=_0x5bf0eb;let _0x36c05b=await this[_0x351a2b(0x500)][_0x351a2b(0x3b8)](_0x5a75db),_0x95a8d0=this[_0x351a2b(0x2d5)]['createInstance'](this[_0x351a2b(0x20b)](_0x2f6765),_0x5a75db,_0x2f6765,_0x36c05b);return await _0x95a8d0['init'](),this[_0x351a2b(0x2a1)][_0x351a2b(0x274)](_0x95a8d0),_0x95a8d0;}[_0x5bf0eb(0x20b)](_0x53973c){const _0x23eab9=_0x5bf0eb;switch(_0x53973c){case _0x2dbbd9[_0x23eab9(0x442)][_0x23eab9(0x477)]:return _0xe7b4d0;case _0x2dbbd9[_0x23eab9(0x442)][_0x23eab9(0x20a)]:return _0x4db82b;default:throw Error(_0x23eab9(0x48f)+_0x53973c);}}};_0x573fbd=_0x4e6e0f([_0xe72533(0x0,(0x0,_0x2dbbd9['Inject'])(_0x2dbbd9[_0x5bf0eb(0x3fa)])),_0xe72533(0x1,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x1d8d49)),_0xe72533(0x2,_0x2dbbd9[_0x5bf0eb(0x488)]),_0xe72533(0x3,_0x2dbbd9['IUniverInstanceService'])],_0x573fbd);var _0x36adc3='@univerjs-pro/collaboration-client',_0xc8583d=_0x5bf0eb(0x480);let _0x2af5f4=class extends _0x2dbbd9[_0x5bf0eb(0x2e6)]{constructor(_0x1911a8,_0x572a12){const _0x4ce31f=_0x5bf0eb;super(),this['_univerInstanceService']=_0x1911a8,this[_0x4ce31f(0x266)]=_0x572a12,this[_0x4ce31f(0x226)]();}['_init'](){const _0x200792=_0x5bf0eb;this[_0x200792(0x4a6)](this[_0x200792(0x389)][_0x200792(0x4e5)][_0x200792(0x31f)](()=>{const _0x3f3813=_0x200792;var _0x55b724;let _0x141fec=this[_0x3f3813(0x389)][_0x3f3813(0x350)](),_0x20ecca=(_0x55b724=this[_0x3f3813(0x266)][_0x3f3813(0x46c)](_0x3f3813(0x423)))==null?_0x3f3813(0x2b0):_0x55b724;_0x141fec instanceof _0x2dbbd9[_0x3f3813(0x27d)]&&(_0x20ecca=_0x141fec['name']),document[_0x3f3813(0x210)]=_0x20ecca;}));}};_0x2af5f4=_0x4e6e0f([_0xe72533(0x0,_0x2dbbd9[_0x5bf0eb(0x4d0)]),_0xe72533(0x1,_0x2dbbd9[_0x5bf0eb(0x488)])],_0x2af5f4);let _0x39e94c=class{constructor(_0x373adc,_0x34b397,_0x17d7bd){const _0x265529=_0x5bf0eb;this[_0x265529(0x266)]=_0x373adc,this['_httpService']=_0x34b397,this[_0x265529(0x36c)]=_0x17d7bd,this[_0x265529(0x1fd)]();}[_0x5bf0eb(0x1fd)](){const _0x253465=_0x5bf0eb;this[_0x253465(0x21f)][_0x253465(0x41b)]({'priority':0x1,'interceptor':(_0x872292,_0x4ed0bd)=>_0x4ed0bd(_0x872292)[_0x253465(0x4be)]((0x0,_0x4f3716[_0x253465(0x248)])(async _0x10a415=>{const _0x1438c4=_0x253465;let _0x303f08=_0x10a415;if(_0x303f08[_0x1438c4(0x308)]===0x191){if(typeof window>'u')throw Error(_0x1438c4(0x2d3));if(window[_0x1438c4(0x24f)](this[_0x1438c4(0x36c)]['t'](_0x1438c4(0x25a)))){let _0x16ac41=window[_0x1438c4(0x3ca)](window['location'][_0x1438c4(0x3bb)]);window[_0x1438c4(0x39d)][_0x1438c4(0x3bb)]=this['_getLoginPath']()+_0x1438c4(0x476)+_0x16ac41;}}return _0x303f08;}))});}['_getLoginPath'](){const _0xef5fe2=_0x5bf0eb;var _0x282d5a;let _0x438ae5=this['_configService'][_0xef5fe2(0x46c)](_0x2a84dd);return(_0x282d5a=_0x438ae5==null?void 0x0:_0x438ae5[_0xef5fe2(0x204)])==null?_0xef5fe2(0x209):_0x282d5a;}};_0x39e94c=_0x4e6e0f([_0xe72533(0x0,_0x2dbbd9[_0x5bf0eb(0x488)]),_0xe72533(0x1,(0x0,_0x2dbbd9['Inject'])(_0x5f56f9[_0x5bf0eb(0x207)])),_0xe72533(0x2,(0x0,_0x2dbbd9['Inject'])(_0x2dbbd9['LocaleService']))],_0x39e94c);let _0x2d37b7=class extends _0x2dbbd9[_0x5bf0eb(0x2e6)]{constructor(_0x354580,_0xd6f4a2){const _0x5398e5=_0x5bf0eb;super(),this[_0x5398e5(0x27e)]=_0x354580,this['_configService']=_0xd6f4a2,_0x527b5d(this,_0x5398e5(0x2e7),!0x1),this['_initMergeInterceptor']();}['_initMergeInterceptor'](){const _0x2f11f3=_0x5bf0eb;let _0x3202ec=this;this[_0x2f11f3(0x4a6)](this['_HTTPService'][_0x2f11f3(0x41b)]({'priority':0x3e7,'interceptor':(0x0,_0x5f56f9[_0x2f11f3(0x2d8)])({'isMatch'(_0x48d9b4){const _0x216548=_0x2f11f3;var _0x1d118;if(_0x48d9b4[_0x216548(0x3b2)]===_0x216548(0x4ed)&&(_0x1d118=_0x48d9b4['requestParams'])!=null&&_0x1d118['body']){let {objectID:_0x3cefa6,objectType:_0x1e68e7}=_0x48d9b4['requestParams'][_0x216548(0x46f)]||{};if(!_0x3cefa6||_0x1e68e7===void 0x0)return!0x1;let _0x5a4a99=_0x3202ec['_getAPIPrefixPath']()+'/'+_0x1e68e7+'/object/'+_0x3cefa6+_0x216548(0x2fc);if(_0x48d9b4[_0x216548(0x2f6)]===_0x5a4a99)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1fda06){const _0x39d909=_0x2f11f3;var _0x1adafe;return(_0x1adafe=_0x1fda06[_0x39d909(0x375)])==null?void 0x0:_0x1adafe[_0x39d909(0x46f)];},'mergeParamsToRequest'(_0x1f601a,_0x487a7e){const _0x45fe08=_0x2f11f3;let _0x5bb3dd=_0x3202ec[_0x45fe08(0x2f8)]()+_0x45fe08(0x453),_0x30475b=_0x1f601a[_0x45fe08(0x3dd)]((_0x5d5610,_0x4f658)=>{const _0x302d5e=_0x45fe08;let {unitID:_0x55343e,objectID:_0x14891e,objectType:_0x2aba5a,actions:_0x334dda}=_0x4f658;return _0x5d5610[_0x55343e]||(_0x5d5610[_0x55343e]={}),_0x5d5610[_0x55343e][_0x14891e]||(_0x5d5610[_0x55343e][_0x14891e]={'objectID':_0x14891e,'objectType':_0x2aba5a,'actions':[]}),_0x5d5610[_0x55343e][_0x14891e][_0x302d5e(0x415)]['push'](..._0x334dda),_0x5d5610;},{}),_0x250c5a=[];for(let _0x589151 in _0x30475b)for(let _0x2728af in _0x30475b[_0x589151]){let {actions:_0x546e12,objectType:_0x20d434}=_0x30475b[_0x589151][_0x2728af],_0x1ae872=[...new Set(_0x546e12)];_0x250c5a[_0x45fe08(0x23f)]({'unitID':_0x589151,'objectID':_0x2728af,'objectType':_0x20d434,'actions':_0x1ae872});}return new _0x5f56f9['HTTPRequest'](_0x45fe08(0x4ed),_0x5bb3dd,{'headers':_0x487a7e[_0x45fe08(0x286)],'withCredentials':_0x487a7e[_0x45fe08(0x2b6)],'responseType':_0x487a7e[_0x45fe08(0x362)],'body':{'requests':_0x250c5a}});}},{'distributeResult'(_0x12c724,_0x552043){const _0x4bea25=_0x2f11f3;let {objectActions:_0x1427c7}=_0x12c724;return _0x552043[_0x4bea25(0x1e3)](_0x244230=>{const _0x20a9f9=_0x4bea25;let {unitID:_0x191c16,objectID:_0x3b5f36,actions:_0x5dba2a}=_0x244230,_0x257264=_0x1427c7[_0x20a9f9(0x27c)](_0x4fc38a=>_0x4fc38a[_0x20a9f9(0x37e)]===_0x191c16&&_0x4fc38a[_0x20a9f9(0x285)]===_0x3b5f36);return{'config':_0x244230,'result':{'actions':_0x5dba2a[_0x20a9f9(0x1e3)](_0x107040=>_0x257264==null?void 0x0:_0x257264['actions'][_0x20a9f9(0x27c)](_0x269e4b=>_0x269e4b[_0x20a9f9(0x2cd)]===_0x107040))['filter'](_0x29ec09=>!!_0x29ec09),'error':_0x12c724[_0x20a9f9(0x35f)]}};});}})}));}['_getAPIPrefixPath'](){const _0x34e6d1=_0x5bf0eb;var _0x4385ca;let _0x53a042=this[_0x34e6d1(0x266)]['getConfig'](_0x2a84dd);return(_0x4385ca=_0x53a042==null?void 0x0:_0x53a042[_0x34e6d1(0x269)])==null?_0x34e6d1(0x22f):_0x4385ca;}async[_0x5bf0eb(0x45a)](_0x1c484e){const _0xcf5b44=_0x5bf0eb;let _0x29311c=this[_0xcf5b44(0x2f8)]()+'/'+_0x1c484e[_0xcf5b44(0x373)]+_0xcf5b44(0x4cc);return(await this[_0xcf5b44(0x27e)][_0xcf5b44(0x462)](_0x29311c,{'body':_0x1c484e}))[_0xcf5b44(0x46f)]['objectID']||'';}async[_0x5bf0eb(0x24a)](_0x3f3b0a){const _0x2f0674=_0x5bf0eb;let _0x4ff350=this[_0x2f0674(0x2f8)]()+_0x2f0674(0x2aa);return(await this[_0x2f0674(0x27e)][_0x2f0674(0x462)](_0x4ff350,{'body':_0x3f3b0a}))[_0x2f0674(0x46f)][_0x2f0674(0x341)];}async[_0x5bf0eb(0x43f)](_0x5a600c){const _0x88ec4=_0x5bf0eb;var _0x2c1111;let _0x2b9c9d=this[_0x88ec4(0x2f8)]()+'/'+_0x5a600c[_0x88ec4(0x373)]+'/object/'+_0x5a600c[_0x88ec4(0x285)],_0x16cabc=await this['_HTTPService']['put'](_0x2b9c9d,{'body':_0x5a600c});if((_0x16cabc==null||(_0x2c1111=_0x16cabc[_0x88ec4(0x46f)])==null||(_0x2c1111=_0x2c1111[_0x88ec4(0x35f)])==null?void 0x0:_0x2c1111[_0x88ec4(0x4ff)])!==0x1)throw Error(_0x88ec4(0x2ff));}async[_0x5bf0eb(0x3a0)](_0x1d1719){const _0x24ede9=_0x5bf0eb;let _0x5e4139=this[_0x24ede9(0x2f8)]()+'/'+_0x1d1719['objectType']+'/object/'+_0x1d1719[_0x24ede9(0x285)]+_0x24ede9(0x2fc);return(await this[_0x24ede9(0x27e)][_0x24ede9(0x462)](_0x5e4139,{'body':_0x1d1719}))[_0x24ede9(0x46f)][_0x24ede9(0x415)];}async[_0x5bf0eb(0x305)](_0x32ca33){const _0x1c6a0c=_0x5bf0eb;let _0x1bc7ed=this[_0x1c6a0c(0x2f8)]()+'/-/object/-/batch_allowed';return(await this[_0x1c6a0c(0x27e)]['post'](_0x1bc7ed,{'body':{'requests':_0x32ca33}}))[_0x1c6a0c(0x46f)]['objectActions'];}async[_0x5bf0eb(0x4a5)](_0x2d0c3d){const _0x5834e5=_0x5bf0eb;let _0x31cd19=this[_0x5834e5(0x2f8)]()+'/'+_0x2d0c3d[_0x5834e5(0x373)]+_0x5834e5(0x3ab),_0x5b9053=await this[_0x5834e5(0x27e)][_0x5834e5(0x462)](_0x31cd19,{'body':_0x2d0c3d});return{'roles':_0x5b9053[_0x5834e5(0x46f)]['roles'],'actions':_0x5b9053[_0x5834e5(0x46f)]['actions']};}async[_0x5bf0eb(0x259)](_0x5ef25a){const _0x5a7d7e=_0x5bf0eb;let _0x5dc92a=this[_0x5a7d7e(0x2f8)]()+_0x5a7d7e(0x449);await this['_HTTPService'][_0x5a7d7e(0x4d5)](_0x5dc92a,{'params':{'collaboratorID':_0x5ef25a[_0x5a7d7e(0x251)],'objectID':_0x5ef25a[_0x5a7d7e(0x285)],'unitID':_0x5ef25a['unitID']}});}async['updateCollaborator'](_0x192fc6){const _0x3e1023=_0x5bf0eb;let _0x48894e=this['_getAPIPrefixPath']()+_0x3e1023(0x449);await this['_HTTPService']['patch'](_0x48894e,{'body':_0x192fc6});}async[_0x5bf0eb(0x234)](_0x5e3d6c){const _0xe7a1b5=_0x5bf0eb;let _0x44edc7=this['_getAPIPrefixPath']()+_0xe7a1b5(0x449);await this['_HTTPService'][_0xe7a1b5(0x462)](_0x44edc7,{'body':_0x5e3d6c});}async[_0x5bf0eb(0x458)](_0x14cb68){const _0x45baea=_0x5bf0eb;var _0x480abb;let _0x11e316=this[_0x45baea(0x2f8)]()+_0x45baea(0x449),_0x305d15=await this[_0x45baea(0x27e)]['get'](_0x11e316,{'params':{'objectID':_0x14cb68[_0x45baea(0x285)],'unitID':_0x14cb68[_0x45baea(0x37e)]}});return this[_0x45baea(0x283)]((_0x480abb=_0x305d15[_0x45baea(0x46f)][_0x45baea(0x376)])==null?!0x1:_0x480abb),_0x305d15[_0x45baea(0x46f)][_0x45baea(0x21e)];}async[_0x5bf0eb(0x33f)](_0x480db1){const _0x3950f7=_0x5bf0eb;let _0x413e92=this[_0x3950f7(0x2f8)]()+'/collaborator';await this[_0x3950f7(0x27e)]['put'](_0x413e92,{'body':_0x480db1});}[_0x5bf0eb(0x283)](_0x5f4f42){const _0x3f622f=_0x5bf0eb;this[_0x3f622f(0x2e7)]=_0x5f4f42;}[_0x5bf0eb(0x385)](){const _0x120e6c=_0x5bf0eb;return this[_0x120e6c(0x2e7)];}};_0x2d37b7=_0x4e6e0f([_0xe72533(0x0,(0x0,_0x2dbbd9['Inject'])(_0x5f56f9[_0x5bf0eb(0x207)])),_0xe72533(0x1,(0x0,_0x2dbbd9['Inject'])(_0x2dbbd9[_0x5bf0eb(0x488)]))],_0x2d37b7);function _0x42d178(_0x4eea16){const _0x47cc89=_0x5bf0eb;return _0x4eea16 instanceof Uint8Array||ArrayBuffer[_0x47cc89(0x3cd)](_0x4eea16)&&_0x4eea16['constructor'][_0x47cc89(0x2fd)]===_0x47cc89(0x1f9)&&'BYTES_PER_ELEMENT'in _0x4eea16&&_0x4eea16[_0x47cc89(0x32f)]===0x1;}function _0x8d084e(_0x2dbe31){const _0x2fd1aa=_0x5bf0eb;if(typeof _0x2dbe31!=_0x2fd1aa(0x1e1))throw TypeError(_0x2fd1aa(0x219)+typeof _0x2dbe31);if(!Number[_0x2fd1aa(0x49c)](_0x2dbe31)||_0x2dbe31<0x0)throw RangeError(_0x2fd1aa(0x2c4)+_0x2dbe31);}function _0x27a1c5(_0x25e678,_0xabc77e,_0x3739f1=''){const _0x3d9e48=_0x5bf0eb;let _0x37109b=_0x42d178(_0x25e678),_0x90f47f=_0x25e678==null?void 0x0:_0x25e678[_0x3d9e48(0x2e3)],_0x58c9a8=_0xabc77e!==void 0x0;if(!_0x37109b||_0x58c9a8&&_0x90f47f!==_0xabc77e){let _0x345243=_0x3739f1&&'\x22'+_0x3739f1+'\x22\x20',_0x5b0851=_0x58c9a8?'\x20of\x20length\x20'+_0xabc77e:'',_0x214178=_0x37109b?_0x3d9e48(0x42e)+_0x90f47f:'type='+typeof _0x25e678,_0x416bf5=_0x345243+_0x3d9e48(0x4d8)+_0x5b0851+_0x3d9e48(0x20f)+_0x214178;throw _0x37109b?RangeError(_0x416bf5):TypeError(_0x416bf5);}return _0x25e678;}function _0x497337(_0x45569d){const _0x1ddbb5=_0x5bf0eb;return new Uint32Array(_0x45569d[_0x1ddbb5(0x1e6)],_0x45569d[_0x1ddbb5(0x494)],Math['floor'](_0x45569d[_0x1ddbb5(0x22b)]/0x4));}function _0x5e2b71(..._0x49f2dd){const _0x549b08=_0x5bf0eb;for(let _0x54a586=0x0;_0x54a586<_0x49f2dd[_0x549b08(0x2e3)];_0x54a586++)_0x49f2dd[_0x54a586][_0x549b08(0x436)](0x0);}let _0x4efbb2=new Uint8Array(new Uint32Array([0x11223344])[_0x5bf0eb(0x1e6)])[0x0]===0x44,_0x338916=_0x1de267=>_0x1de267<<0x18&0xff000000|_0x1de267<<0x8&0xff0000|_0x1de267>>>0x8&0xff00|_0x1de267>>>0x18&0xff,_0x50c762=_0x4efbb2?_0x1928dc=>_0x1928dc:_0x3d5685=>{const _0x49a887=_0x5bf0eb;for(let _0x4f007d=0x0;_0x4f007d<_0x3d5685[_0x49a887(0x2e3)];_0x4f007d++)_0x3d5685[_0x4f007d]=_0x338916(_0x3d5685[_0x4f007d]);return _0x3d5685;};typeof Uint8Array['from']([])['toHex']==_0x5bf0eb(0x32c)&&Uint8Array['fromHex'];function _0x5e6931(_0x1c8cf2){const _0x23136c=_0x5bf0eb;if(typeof _0x1c8cf2!='string')throw TypeError('string\x20expected');return new Uint8Array(new TextEncoder()[_0x23136c(0x45c)](_0x1c8cf2));}function _0x5e258c(_0xe1e1b2,_0x5c8a27){const _0x5dcc45=_0x5bf0eb;return!_0xe1e1b2[_0x5dcc45(0x22b)]||!_0x5c8a27['byteLength']?!0x1:_0xe1e1b2[_0x5dcc45(0x1e6)]===_0x5c8a27[_0x5dcc45(0x1e6)]&&_0xe1e1b2['byteOffset']<_0x5c8a27[_0x5dcc45(0x494)]+_0x5c8a27[_0x5dcc45(0x22b)]&&_0x5c8a27[_0x5dcc45(0x494)]<_0xe1e1b2['byteOffset']+_0xe1e1b2[_0x5dcc45(0x22b)];}function _0x4de166(_0xac7c0f,_0x4db227){const _0x1d40f6=_0x5bf0eb;if(_0x5e258c(_0xac7c0f,_0x4db227)&&_0xac7c0f[_0x1d40f6(0x494)]<_0x4db227[_0x1d40f6(0x494)])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0x4c7178(..._0x248547){const _0x1f8f0b=_0x5bf0eb;let _0x18beb9=0x0;for(let _0x38e03c=0x0;_0x38e03c<_0x248547[_0x1f8f0b(0x2e3)];_0x38e03c++){let _0x477710=_0x248547[_0x38e03c];_0x27a1c5(_0x477710),_0x18beb9+=_0x477710[_0x1f8f0b(0x2e3)];}let _0x3c3bb5=new Uint8Array(_0x18beb9);for(let _0x1aad09=0x0,_0x46fc10=0x0;_0x1aad09<_0x248547[_0x1f8f0b(0x2e3)];_0x1aad09++){let _0x3b9221=_0x248547[_0x1aad09];_0x3c3bb5['set'](_0x3b9221,_0x46fc10),_0x46fc10+=_0x3b9221[_0x1f8f0b(0x2e3)];}return _0x3c3bb5;}let _0x10cc83=(_0x3e3cb1,_0x26eafe)=>{const _0x2fcd4b=_0x5bf0eb;function _0x3eb5bc(_0x3cf004,..._0x5bdd50){const _0x58215a=_0x4f27;if(_0x27a1c5(_0x3cf004,void 0x0,'key'),_0x3e3cb1['nonceLength']!==void 0x0){let _0xf4040a=_0x5bdd50[0x0];_0x27a1c5(_0xf4040a,_0x3e3cb1[_0x58215a(0x2fa)]?void 0x0:_0x3e3cb1['nonceLength'],'nonce');}let _0x7be6f7=_0x3e3cb1[_0x58215a(0x211)];_0x7be6f7&&_0x5bdd50[0x1]!==void 0x0&&_0x27a1c5(_0x5bdd50[0x1],void 0x0,_0x58215a(0x3ee));let _0x1d15b5=_0x26eafe(_0x3cf004,..._0x5bdd50),_0x4c1aea=(_0x53735c,_0x424885)=>{const _0x4149ab=_0x58215a;if(_0x424885!==void 0x0){if(_0x53735c!==0x2)throw Error(_0x4149ab(0x34a));_0x27a1c5(_0x424885,void 0x0,_0x4149ab(0x407));}},_0x3b7b5c=!0x1;return{'encrypt'(_0x1550ea,_0x3949f3){const _0x3e70db=_0x58215a;if(_0x3b7b5c)throw Error(_0x3e70db(0x427));return _0x3b7b5c=!0x0,_0x27a1c5(_0x1550ea),_0x4c1aea(_0x1d15b5['encrypt'][_0x3e70db(0x2e3)],_0x3949f3),_0x1d15b5[_0x3e70db(0x432)](_0x1550ea,_0x3949f3);},'decrypt'(_0x58009b,_0x5a2929){const _0x58f075=_0x58215a;if(_0x27a1c5(_0x58009b),_0x7be6f7&&_0x58009b[_0x58f075(0x2e3)]<_0x7be6f7)throw Error(_0x58f075(0x367)+_0x7be6f7);return _0x4c1aea(_0x1d15b5[_0x58f075(0x224)][_0x58f075(0x2e3)],_0x5a2929),_0x1d15b5[_0x58f075(0x224)](_0x58009b,_0x5a2929);}};}return Object[_0x2fcd4b(0x383)](_0x3eb5bc,_0x3e3cb1),_0x3eb5bc;};function _0x300ba8(_0x251239,_0x5dd85f,_0x5c96d0=!0x0){const _0x3380c8=_0x5bf0eb;if(_0x5dd85f===void 0x0)return new Uint8Array(_0x251239);if(_0x27a1c5(_0x5dd85f,void 0x0,'output'),_0x5dd85f[_0x3380c8(0x2e3)]!==_0x251239)throw Error(_0x3380c8(0x455)+_0x251239+_0x3380c8(0x3cb)+_0x5dd85f[_0x3380c8(0x2e3)]);if(_0x5c96d0&&!_0x43cbb1(_0x5dd85f))throw Error(_0x3380c8(0x2be));return _0x5dd85f;}function _0x43cbb1(_0x4d67ea){const _0x2aecb8=_0x5bf0eb;return _0x4d67ea[_0x2aecb8(0x494)]%0x4==0x0;}function _0x3d8331(_0x25056a){const _0x4f1ca5=_0x5bf0eb;return Uint8Array[_0x4f1ca5(0x3ce)](_0x27a1c5(_0x25056a));}function _0x3e6665(_0x518364=0x20){const _0x2a9bb3=_0x5bf0eb;_0x8d084e(_0x518364);let _0xb750dd=typeof globalThis==_0x2a9bb3(0x4c1)?globalThis[_0x2a9bb3(0x3f3)]:null;if(typeof(_0xb750dd==null?void 0x0:_0xb750dd[_0x2a9bb3(0x439)])!=_0x2a9bb3(0x32c))throw Error(_0x2a9bb3(0x4a8));return _0xb750dd[_0x2a9bb3(0x439)](new Uint8Array(_0x518364));}function _0x492979(_0x2a7a4e){const _0x4c3e5a=_0x5bf0eb;if(![0x10,0x18,0x20][_0x4c3e5a(0x2c0)](_0x2a7a4e[_0x4c3e5a(0x2e3)]))throw Error(_0x4c3e5a(0x4fa)+_0x2a7a4e[_0x4c3e5a(0x2e3)]);}function _0x11e127(_0x59c304){return _0x59c304<<0x1^0x11b&-(_0x59c304>>0x7);}function _0x17debe(_0xa02041,_0xcbd798){let _0x399caf=0x0;for(;_0xcbd798>0x0;_0xcbd798>>=0x1)_0x399caf^=_0xa02041&-(_0xcbd798&0x1),_0xa02041=_0x11e127(_0xa02041);return _0x399caf;}let _0x5dfd0c=((()=>{let _0x4fd039=new Uint8Array(0x100);for(let _0x18af32=0x0,_0x463841=0x1;_0x18af32<0x100;_0x18af32++,_0x463841^=_0x11e127(_0x463841))_0x4fd039[_0x18af32]=_0x463841;let _0x169e74=new Uint8Array(0x100);_0x169e74[0x0]=0x63;for(let _0x1fe45c=0x0;_0x1fe45c<0xff;_0x1fe45c++){let _0x5d5641=_0x4fd039[0xff-_0x1fe45c];_0x5d5641|=_0x5d5641<<0x8,_0x169e74[_0x4fd039[_0x1fe45c]]=(_0x5d5641^_0x5d5641>>0x4^_0x5d5641>>0x5^_0x5d5641>>0x6^_0x5d5641>>0x7^0x63)&0xff;}return _0x5e2b71(_0x4fd039),_0x169e74;})()),_0x1e0375=_0x5dfd0c[_0x5bf0eb(0x1e3)]((_0x2d0a6f,_0x1accae)=>_0x5dfd0c[_0x5bf0eb(0x465)](_0x1accae)),_0x2c221c=_0xe40bd7=>_0xe40bd7<<0x18|_0xe40bd7>>>0x8,_0x21c13b=_0x242cc1=>_0x242cc1<<0x8|_0x242cc1>>>0x18;function _0x5d5d60(_0x5057c1,_0x42eef3){const _0x5360e8=_0x5bf0eb;if(_0x5057c1[_0x5360e8(0x2e3)]!==0x100)throw Error(_0x5360e8(0x4dc));let _0x41c356=new Uint32Array(0x100)[_0x5360e8(0x1e3)]((_0x3755ef,_0x5c998e)=>_0x42eef3(_0x5057c1[_0x5c998e])),_0x32adb6=_0x41c356[_0x5360e8(0x1e3)](_0x21c13b),_0x276a68=_0x32adb6['map'](_0x21c13b),_0x54485d=_0x276a68[_0x5360e8(0x1e3)](_0x21c13b),_0x2481d3=new Uint32Array(0x100*0x100),_0x35dedf=new Uint32Array(0x100*0x100),_0x2aada6=new Uint16Array(0x100*0x100);for(let _0x7d1ab0=0x0;_0x7d1ab0<0x100;_0x7d1ab0++)for(let _0x5c46be=0x0;_0x5c46be<0x100;_0x5c46be++){let _0x501514=_0x7d1ab0*0x100+_0x5c46be;_0x2481d3[_0x501514]=_0x41c356[_0x7d1ab0]^_0x32adb6[_0x5c46be],_0x35dedf[_0x501514]=_0x276a68[_0x7d1ab0]^_0x54485d[_0x5c46be],_0x2aada6[_0x501514]=_0x5057c1[_0x7d1ab0]<<0x8|_0x5057c1[_0x5c46be];}return{'sbox':_0x5057c1,'sbox2':_0x2aada6,'T0':_0x41c356,'T1':_0x32adb6,'T2':_0x276a68,'T3':_0x54485d,'T01':_0x2481d3,'T23':_0x35dedf};}let _0x1b6424=_0x5d5d60(_0x5dfd0c,_0x2b6543=>_0x17debe(_0x2b6543,0x3)<<0x18|_0x2b6543<<0x10|_0x2b6543<<0x8|_0x17debe(_0x2b6543,0x2)),_0x20b002=_0x5d5d60(_0x1e0375,_0x326bb8=>_0x17debe(_0x326bb8,0xb)<<0x18|_0x17debe(_0x326bb8,0xd)<<0x10|_0x17debe(_0x326bb8,0x9)<<0x8|_0x17debe(_0x326bb8,0xe)),_0x38733c=((()=>{let _0x2839dc=new Uint8Array(0x10);for(let _0x59a795=0x0,_0x5afe0b=0x1;_0x59a795<0x10;_0x59a795++,_0x5afe0b=_0x11e127(_0x5afe0b))_0x2839dc[_0x59a795]=_0x5afe0b;return _0x2839dc;})());function _0x5af3b6(_0x5b046f){const _0x134bf2=_0x5bf0eb;_0x27a1c5(_0x5b046f);let _0x1ae4d1=_0x5b046f[_0x134bf2(0x2e3)];_0x492979(_0x5b046f);let {sbox2:_0x2745b7}=_0x1b6424,_0x2f6f2d=[];(!_0x4efbb2||!_0x43cbb1(_0x5b046f))&&_0x2f6f2d['push'](_0x5b046f=_0x3d8331(_0x5b046f));let _0x501498=_0x50c762(_0x497337(_0x5b046f)),_0x659cc9=_0x501498['length'],_0x52e278=_0x21eed3=>_0x3bdcb6(_0x2745b7,_0x21eed3,_0x21eed3,_0x21eed3,_0x21eed3),_0xab6c0c=new Uint32Array(_0x1ae4d1+0x1c);_0xab6c0c[_0x134bf2(0x41a)](_0x501498);for(let _0x3235b4=_0x659cc9;_0x3235b4<_0xab6c0c[_0x134bf2(0x2e3)];_0x3235b4++){let _0x4fc768=_0xab6c0c[_0x3235b4-0x1];_0x3235b4%_0x659cc9===0x0?_0x4fc768=_0x52e278(_0x2c221c(_0x4fc768))^_0x38733c[_0x3235b4/_0x659cc9-0x1]:_0x659cc9>0x6&&_0x3235b4%_0x659cc9===0x4&&(_0x4fc768=_0x52e278(_0x4fc768)),_0xab6c0c[_0x3235b4]=_0xab6c0c[_0x3235b4-_0x659cc9]^_0x4fc768;}return _0x5e2b71(..._0x2f6f2d),_0xab6c0c;}function _0xa8970c(_0x58e1ba){const _0xb1ddea=_0x5bf0eb;let _0x1092ee=_0x5af3b6(_0x58e1ba),_0x32791e=_0x1092ee[_0xb1ddea(0x490)](),_0xf5e5a4=_0x1092ee['length'],{sbox2:_0x1a2e64}=_0x1b6424,{T0:_0x3522ec,T1:_0x51be7b,T2:_0xad33c0,T3:_0x1f3f6c}=_0x20b002;for(let _0x237aee=0x0;_0x237aee<_0xf5e5a4;_0x237aee+=0x4)for(let _0x104e9f=0x0;_0x104e9f<0x4;_0x104e9f++)_0x32791e[_0x237aee+_0x104e9f]=_0x1092ee[_0xf5e5a4-_0x237aee-0x4+_0x104e9f];_0x5e2b71(_0x1092ee);for(let _0x24c202=0x4;_0x24c202<_0xf5e5a4-0x4;_0x24c202++){let _0x50ded5=_0x32791e[_0x24c202],_0x515088=_0x3bdcb6(_0x1a2e64,_0x50ded5,_0x50ded5,_0x50ded5,_0x50ded5);_0x32791e[_0x24c202]=_0x3522ec[_0x515088&0xff]^_0x51be7b[_0x515088>>>0x8&0xff]^_0xad33c0[_0x515088>>>0x10&0xff]^_0x1f3f6c[_0x515088>>>0x18];}return _0x32791e;}function _0x34f09e(_0x41aed4,_0x23218c,_0x13ea72,_0x4cde3f,_0x388952,_0x72618f){return _0x41aed4[_0x13ea72<<0x8&0xff00|_0x4cde3f>>>0x8&0xff]^_0x23218c[_0x388952>>>0x8&0xff00|_0x72618f>>>0x18&0xff];}function _0x3bdcb6(_0x41dfb8,_0x3849ca,_0x9528da,_0x4222d0,_0x2eac73){return _0x41dfb8[_0x3849ca&0xff|_0x9528da&0xff00]|_0x41dfb8[_0x4222d0>>>0x10&0xff|_0x2eac73>>>0x10&0xff00]<<0x10;}function _0x391a28(_0x942d37,_0x1df626,_0x2bbfde,_0x364f35,_0x2739bd){const _0x15cb04=_0x5bf0eb;let {sbox2:_0x278ef1,T01:_0x1a87b9,T23:_0x1ac55c}=_0x1b6424,_0x1f6097=0x0;_0x1df626^=_0x942d37[_0x1f6097++],_0x2bbfde^=_0x942d37[_0x1f6097++],_0x364f35^=_0x942d37[_0x1f6097++],_0x2739bd^=_0x942d37[_0x1f6097++];let _0x48286c=_0x942d37[_0x15cb04(0x2e3)]/0x4-0x2;for(let _0xde7bc8=0x0;_0xde7bc8<_0x48286c;_0xde7bc8++){let _0x40aeb3=_0x942d37[_0x1f6097++]^_0x34f09e(_0x1a87b9,_0x1ac55c,_0x1df626,_0x2bbfde,_0x364f35,_0x2739bd),_0x38ed66=_0x942d37[_0x1f6097++]^_0x34f09e(_0x1a87b9,_0x1ac55c,_0x2bbfde,_0x364f35,_0x2739bd,_0x1df626),_0x40bf96=_0x942d37[_0x1f6097++]^_0x34f09e(_0x1a87b9,_0x1ac55c,_0x364f35,_0x2739bd,_0x1df626,_0x2bbfde),_0x5a82b6=_0x942d37[_0x1f6097++]^_0x34f09e(_0x1a87b9,_0x1ac55c,_0x2739bd,_0x1df626,_0x2bbfde,_0x364f35);_0x1df626=_0x40aeb3,_0x2bbfde=_0x38ed66,_0x364f35=_0x40bf96,_0x2739bd=_0x5a82b6;}return{'s0':_0x942d37[_0x1f6097++]^_0x3bdcb6(_0x278ef1,_0x1df626,_0x2bbfde,_0x364f35,_0x2739bd),'s1':_0x942d37[_0x1f6097++]^_0x3bdcb6(_0x278ef1,_0x2bbfde,_0x364f35,_0x2739bd,_0x1df626),'s2':_0x942d37[_0x1f6097++]^_0x3bdcb6(_0x278ef1,_0x364f35,_0x2739bd,_0x1df626,_0x2bbfde),'s3':_0x942d37[_0x1f6097++]^_0x3bdcb6(_0x278ef1,_0x2739bd,_0x1df626,_0x2bbfde,_0x364f35)};}function _0x18e28d(_0x108416,_0x45af60,_0x495711,_0xf29eb1,_0x2c5e10){const _0x25d4ed=_0x5bf0eb;let {sbox2:_0x3dacc7,T01:_0x164cef,T23:_0x155c11}=_0x20b002,_0x654305=0x0;_0x45af60^=_0x108416[_0x654305++],_0x495711^=_0x108416[_0x654305++],_0xf29eb1^=_0x108416[_0x654305++],_0x2c5e10^=_0x108416[_0x654305++];let _0xd3bccf=_0x108416[_0x25d4ed(0x2e3)]/0x4-0x2;for(let _0x2a2be3=0x0;_0x2a2be3<_0xd3bccf;_0x2a2be3++){let _0x3d19eb=_0x108416[_0x654305++]^_0x34f09e(_0x164cef,_0x155c11,_0x45af60,_0x2c5e10,_0xf29eb1,_0x495711),_0x286f50=_0x108416[_0x654305++]^_0x34f09e(_0x164cef,_0x155c11,_0x495711,_0x45af60,_0x2c5e10,_0xf29eb1),_0x21d35e=_0x108416[_0x654305++]^_0x34f09e(_0x164cef,_0x155c11,_0xf29eb1,_0x495711,_0x45af60,_0x2c5e10),_0x3967e9=_0x108416[_0x654305++]^_0x34f09e(_0x164cef,_0x155c11,_0x2c5e10,_0xf29eb1,_0x495711,_0x45af60);_0x45af60=_0x3d19eb,_0x495711=_0x286f50,_0xf29eb1=_0x21d35e,_0x2c5e10=_0x3967e9;}return{'s0':_0x108416[_0x654305++]^_0x3bdcb6(_0x3dacc7,_0x45af60,_0x2c5e10,_0xf29eb1,_0x495711),'s1':_0x108416[_0x654305++]^_0x3bdcb6(_0x3dacc7,_0x495711,_0x45af60,_0x2c5e10,_0xf29eb1),'s2':_0x108416[_0x654305++]^_0x3bdcb6(_0x3dacc7,_0xf29eb1,_0x495711,_0x45af60,_0x2c5e10),'s3':_0x108416[_0x654305++]^_0x3bdcb6(_0x3dacc7,_0x2c5e10,_0xf29eb1,_0x495711,_0x45af60)};}function _0x20ae11(_0x6a5e31){const _0xa75e0b=_0x5bf0eb;if(_0x27a1c5(_0x6a5e31),_0x6a5e31[_0xa75e0b(0x2e3)]%0x10!=0x0)throw Error(_0xa75e0b(0x3a6));}function _0x2fdcf5(_0x4fbf36,_0x5c9028,_0x21b17a){const _0x4bf532=_0x5bf0eb;_0x27a1c5(_0x4fbf36);let _0x52f125=_0x4fbf36['length'],_0x500dca=_0x52f125%0x10;if(!_0x5c9028&&_0x500dca!==0x0)throw Error(_0x4bf532(0x2d2));if(_0x5c9028){let _0xeb7bba=0x10-_0x500dca;_0xeb7bba||(_0xeb7bba=0x10),_0x52f125+=_0xeb7bba;}_0x21b17a=_0x300ba8(_0x52f125,_0x21b17a),_0x4de166(_0x4fbf36,_0x21b17a),(!_0x4efbb2||!_0x43cbb1(_0x4fbf36))&&(_0x4fbf36=_0x3d8331(_0x4fbf36));let _0x123ad7=_0x497337(_0x4fbf36);return _0x50c762(_0x123ad7),{'b':_0x123ad7,'o':_0x497337(_0x21b17a),'out':_0x21b17a};}function _0x21b6b9(_0x3f73b8,_0x2787cf){const _0x318888=_0x5bf0eb;if(!_0x2787cf)return _0x3f73b8;let _0x16f8dd=_0x3f73b8[_0x318888(0x2e3)];if(_0x16f8dd===0x0)throw Error(_0x318888(0x28f));let _0x262d9e=_0x3f73b8[_0x16f8dd-0x1],_0x328b69=0x1;_0x328b69&=_0x262d9e-0x1>>>0x1f^0x1,_0x328b69&=0x10-_0x262d9e>>>0x1f^0x1;for(let _0x54d1b7=0x0;_0x54d1b7<0x10;_0x54d1b7++){let _0x49af91=_0x54d1b7-_0x262d9e>>>0x1f,_0x2c259b=+((_0x3f73b8[_0x16f8dd-0x1-_0x54d1b7]^_0x262d9e)===0x0);_0x328b69&=_0x2c259b|_0x49af91^0x1;}if(!_0x328b69)throw Error(_0x318888(0x3e8));return _0x3f73b8[_0x318888(0x23d)](0x0,_0x16f8dd-_0x262d9e);}function _0x3b5ee3(_0x470ddb){const _0x360e41=_0x5bf0eb;let _0xa8a161=new Uint8Array(0x10),_0x409bec=_0x497337(_0xa8a161);_0xa8a161['set'](_0x470ddb);let _0x16a511=0x10-_0x470ddb[_0x360e41(0x2e3)];for(let _0x56fe56=0x10-_0x16a511;_0x56fe56<0x10;_0x56fe56++)_0xa8a161[_0x56fe56]=_0x16a511;return _0x409bec;}let _0x10ab97=_0x10cc83({'blockSize':0x10,'nonceLength':0x10},function(_0x26c28c,_0x291009,_0x433abe={}){const _0x3767a3=_0x5bf0eb;let _0x158da8=!_0x433abe[_0x3767a3(0x501)];return{'encrypt'(_0x2ecdb8,_0x38ff3c){const _0x41dc20=_0x3767a3;let _0x75e005=_0x5af3b6(_0x26c28c),{b:_0x1aa692,o:_0x2a86c3,out:_0x2f3262}=_0x2fdcf5(_0x2ecdb8,_0x158da8,_0x38ff3c),_0x42162d=_0x291009,_0x3ef87f=[_0x75e005];(!_0x4efbb2||!_0x43cbb1(_0x42162d))&&_0x3ef87f['push'](_0x42162d=_0x3d8331(_0x42162d));let _0x3e0a44=_0x497337(_0x42162d);_0x50c762(_0x3e0a44);let _0x1d8a6a=_0x3e0a44[0x0],_0x3cfa9a=_0x3e0a44[0x1],_0x2cd24b=_0x3e0a44[0x2],_0x1845cf=_0x3e0a44[0x3],_0x5ee7f9=0x0;for(;_0x5ee7f9+0x4<=_0x1aa692[_0x41dc20(0x2e3)];)_0x1d8a6a^=_0x1aa692[_0x5ee7f9+0x0],_0x3cfa9a^=_0x1aa692[_0x5ee7f9+0x1],_0x2cd24b^=_0x1aa692[_0x5ee7f9+0x2],_0x1845cf^=_0x1aa692[_0x5ee7f9+0x3],{s0:_0x1d8a6a,s1:_0x3cfa9a,s2:_0x2cd24b,s3:_0x1845cf}=_0x391a28(_0x75e005,_0x1d8a6a,_0x3cfa9a,_0x2cd24b,_0x1845cf),_0x2a86c3[_0x5ee7f9++]=_0x1d8a6a,_0x2a86c3[_0x5ee7f9++]=_0x3cfa9a,_0x2a86c3[_0x5ee7f9++]=_0x2cd24b,_0x2a86c3[_0x5ee7f9++]=_0x1845cf;if(_0x158da8){let _0xc8f874=_0x3b5ee3(_0x2ecdb8[_0x41dc20(0x23d)](_0x5ee7f9*0x4));_0x50c762(_0xc8f874),_0x1d8a6a^=_0xc8f874[0x0],_0x3cfa9a^=_0xc8f874[0x1],_0x2cd24b^=_0xc8f874[0x2],_0x1845cf^=_0xc8f874[0x3],{s0:_0x1d8a6a,s1:_0x3cfa9a,s2:_0x2cd24b,s3:_0x1845cf}=_0x391a28(_0x75e005,_0x1d8a6a,_0x3cfa9a,_0x2cd24b,_0x1845cf),_0x2a86c3[_0x5ee7f9++]=_0x1d8a6a,_0x2a86c3[_0x5ee7f9++]=_0x3cfa9a,_0x2a86c3[_0x5ee7f9++]=_0x2cd24b,_0x2a86c3[_0x5ee7f9++]=_0x1845cf;}return _0x50c762(_0x2a86c3),_0x5e2b71(..._0x3ef87f),_0x2f3262;},'decrypt'(_0x305103,_0x42162e){const _0xfb2bcf=_0x3767a3;_0x20ae11(_0x305103);let _0xb02082=_0xa8970c(_0x26c28c),_0x71a036=_0x291009,_0x233f51=[_0xb02082];(!_0x4efbb2||!_0x43cbb1(_0x71a036))&&_0x233f51['push'](_0x71a036=_0x3d8331(_0x71a036));let _0x84a854=_0x497337(_0x71a036);_0x50c762(_0x84a854),_0x42162e=_0x300ba8(_0x305103['length'],_0x42162e),_0x4de166(_0x305103,_0x42162e),(!_0x4efbb2||!_0x43cbb1(_0x305103))&&_0x233f51[_0xfb2bcf(0x23f)](_0x305103=_0x3d8331(_0x305103));let _0x5a41d2=_0x497337(_0x305103),_0x28b179=_0x497337(_0x42162e);_0x50c762(_0x5a41d2);let _0x169af7=_0x84a854[0x0],_0x1d4fa4=_0x84a854[0x1],_0x2b6836=_0x84a854[0x2],_0x1b828c=_0x84a854[0x3];for(let _0xc31726=0x0;_0xc31726+0x4<=_0x5a41d2[_0xfb2bcf(0x2e3)];){let _0x2dcc75=_0x169af7,_0x3f8f9b=_0x1d4fa4,_0x5cbf73=_0x2b6836,_0x13b9b8=_0x1b828c;_0x169af7=_0x5a41d2[_0xc31726+0x0],_0x1d4fa4=_0x5a41d2[_0xc31726+0x1],_0x2b6836=_0x5a41d2[_0xc31726+0x2],_0x1b828c=_0x5a41d2[_0xc31726+0x3];let {s0:_0x4a96fb,s1:_0x2f43ca,s2:_0x4e1116,s3:_0x5be020}=_0x18e28d(_0xb02082,_0x169af7,_0x1d4fa4,_0x2b6836,_0x1b828c);_0x28b179[_0xc31726++]=_0x4a96fb^_0x2dcc75,_0x28b179[_0xc31726++]=_0x2f43ca^_0x3f8f9b,_0x28b179[_0xc31726++]=_0x4e1116^_0x5cbf73,_0x28b179[_0xc31726++]=_0x5be020^_0x13b9b8;}return _0x50c762(_0x28b179),_0x5e2b71(..._0x233f51),_0x21b6b9(_0x42162e,_0x158da8);}};});function _0x5c7f23(_0xc9d79){const _0x491a96=_0x5bf0eb;let _0x38c91c=atob(_0xc9d79),_0x5c62b2=new Uint8Array(_0x38c91c[_0x491a96(0x2e3)]);for(let _0x4cdf46=0x0;_0x4cdf46<_0x38c91c[_0x491a96(0x2e3)];_0x4cdf46++)_0x5c62b2[_0x4cdf46]=_0x38c91c['charCodeAt'](_0x4cdf46);return _0x5c62b2;}function _0x29b1cd(_0xcba37d){const _0x594f67=_0x5bf0eb;let _0x49db1f='';for(let _0x2763fe=0x0;_0x2763fe<_0xcba37d[_0x594f67(0x2e3)];_0x2763fe++)_0x49db1f+=String[_0x594f67(0x25b)](_0xcba37d[_0x2763fe]);return btoa(_0x49db1f);}function _0x532e8c(_0x429d92,_0x2d7398){const _0x197022=_0x5bf0eb;let _0x3954e5=_0x5c7f23(_0x2d7398),_0x2ed672=_0x3e6665(0x10);return _0x29b1cd(_0x4c7178(_0x2ed672,_0x10ab97(_0x3954e5,_0x2ed672)[_0x197022(0x432)](_0x5e6931(_0x429d92))));}function _0x529779(){const _0x3d91c4=_0x5bf0eb;let _0x33cf84=(0x0,_0x3b77ee[_0x3d91c4(0x38f)])()[_0x3d91c4(0x2ee)];if(typeof window<'u'&&window[_0x3d91c4(0x39d)]!==void 0x0&&_0x33cf84){let _0x2c620d={'time':Math[_0x3d91c4(0x451)](Date[_0x3d91c4(0x4a9)]()/0x3e8),'domain':location[_0x3d91c4(0x1ec)]};return _0x532e8c(JSON[_0x3d91c4(0x337)](_0x2c620d),_0x33cf84);}}let _0x41e2cb=class{constructor(_0xc28caf){this['_httpService']=_0xc28caf,this['_initRequestHeader']();}['_initRequestHeader'](){const _0x15f0b0=_0x5bf0eb;this[_0x15f0b0(0x21f)][_0x15f0b0(0x41b)]({'interceptor':(_0x477ce3,_0x3a6137)=>{const _0x37ad5f=_0x15f0b0;let _0x5f1434=_0x529779();return _0x5f1434&&_0x477ce3['headers'][_0x37ad5f(0x41a)](_0x37ad5f(0x1ef),_0x5f1434),_0x3a6137(_0x477ce3);}});}};_0x41e2cb=_0x4e6e0f([_0xe72533(0x0,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x5f56f9[_0x5bf0eb(0x207)]))],_0x41e2cb);let _0x48b093=class extends _0x2dbbd9[_0x5bf0eb(0x2ed)]{constructor(_0x23f6a1,_0x1ad2a3,_0x119bac){const _0x4d05cb=_0x5bf0eb;super(),this[_0x4d05cb(0x236)]=_0x23f6a1,this[_0x4d05cb(0x23b)]=_0x1ad2a3,this['_localCacheService']=_0x119bac,_0x527b5d(this,_0x4d05cb(0x222),new _0x4f3716[(_0x4d05cb(0x391))](null)),_0x527b5d(this,_0x4d05cb(0x4ab),this[_0x4d05cb(0x222)]['asObservable']());}async[_0x5bf0eb(0x4b2)](_0x43a59a,_0x5b8815,_0x36e208){const _0x56822e=_0x5bf0eb;this['_unitInfo$']['next']({'unitId':_0x43a59a,'type':_0x5b8815});let _0x2f09cd=null;switch(_0x5b8815){case _0x2dbbd9['UniverInstanceType'][_0x56822e(0x20a)]:_0x2f09cd=await this[_0x56822e(0x23b)][_0x56822e(0x42d)](_0x43a59a,_0x36e208);break;case _0x2dbbd9[_0x56822e(0x442)][_0x56822e(0x477)]:_0x2f09cd=await this[_0x56822e(0x23b)][_0x56822e(0x24b)](_0x43a59a,_0x36e208);break;default:this[_0x56822e(0x236)]['error'](_0x56822e(0x24d),_0x56822e(0x37d));break;}return _0x2f09cd;}async[_0x5bf0eb(0x205)](_0xada565,_0x3d4a9f,_0x4ce3fd){const _0x23e2dc=_0x5bf0eb;var _0xa43fbd;this['_unitInfo$'][_0x23e2dc(0x274)]({'unitId':_0xada565,'type':_0x3d4a9f,'subUnitId':_0x4ce3fd});let _0x5b88ae=0x0,_0x26d217=await((_0xa43fbd=this[_0x23e2dc(0x33c)])==null?void 0x0:_0xa43fbd['loadOfflineData'](_0xada565));return _0x26d217&&(_0x26d217['awaitingChangeset']||_0x26d217[_0x23e2dc(0x277)][_0x23e2dc(0x2e3)]!==0x0)&&(_0x5b88ae=_0x26d217[_0x23e2dc(0x444)]),_0x5b88ae===0x0&&this[_0x23e2dc(0x236)][_0x23e2dc(0x265)](_0x23e2dc(0x24d),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['loadUnitOfRevision'](_0xada565,_0x3d4a9f,_0x5b88ae);}};_0x48b093=_0x4e6e0f([_0xe72533(0x0,_0x2dbbd9['ILogService']),_0xe72533(0x1,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2b53f2['SnapshotService'])),_0xe72533(0x2,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x36e220))],_0x48b093);let _0x68b0f9=class{constructor(_0x2fa423,_0x28f458,_0x3962e3){const _0x3a653e=_0x5bf0eb;this[_0x3a653e(0x21f)]=_0x2fa423,this[_0x3a653e(0x266)]=_0x28f458,this[_0x3a653e(0x389)]=_0x3962e3,_0x527b5d(this,_0x3a653e(0x361),0x0),_0x527b5d(this,'_change$',new _0x4f3716['Subject']()),_0x527b5d(this,_0x3a653e(0x499),this['_change$']),_0x527b5d(this,_0x3a653e(0x264),new Map());}[_0x5bf0eb(0x395)](_0x4fc2e5){const _0x1ade7d=_0x5bf0eb;this[_0x1ade7d(0x361)]=_0x4fc2e5,this[_0x1ade7d(0x35b)][_0x1ade7d(0x274)](_0x4fc2e5);}['getImageSourceCache'](_0x3772bf,_0x1d8f52){const _0x1a70e3=_0x5bf0eb;if(_0x1d8f52===_0x4e927a[_0x1a70e3(0x470)][_0x1a70e3(0x357)]){let _0x4477d2=new Image();return _0x4477d2[_0x1a70e3(0x3d3)]=_0x3772bf,_0x4477d2;}return this['_imageSourceCache'][_0x1a70e3(0x42f)](_0x3772bf);}[_0x5bf0eb(0x479)](_0x344fb8,_0x1a8746,_0x3c9be5){const _0xb4d730=_0x5bf0eb;_0x1a8746===_0x4e927a[_0xb4d730(0x470)]['BASE64']||_0x3c9be5==null||this[_0xb4d730(0x264)][_0xb4d730(0x41a)](_0x344fb8,_0x3c9be5);}async[_0x5bf0eb(0x445)](_0x52d242){const _0x499d19=_0x5bf0eb;try{let _0x983a7=this[_0x499d19(0x1f3)](this['_getSignURL'](),''+_0x52d242),_0x1c321b=(await this[_0x499d19(0x21f)][_0x499d19(0x42f)](_0x983a7))[_0x499d19(0x46f)];if(_0x1c321b[_0x499d19(0x35f)]&&_0x1c321b['error'][_0x499d19(0x4ff)]===_0x240cfb[_0x499d19(0x419)]['OK']){let _0x37a962=(0x0,_0x2dbbd9[_0x499d19(0x3ad)])(_0x1c321b[_0x499d19(0x2f6)],this[_0x499d19(0x355)]());return Promise[_0x499d19(0x40f)](_0x37a962);}return Promise[_0x499d19(0x3a3)](_0x1c321b[_0x499d19(0x35f)]);}catch(_0x2ff598){return Promise[_0x499d19(0x3a3)](_0x2ff598);}}async[_0x5bf0eb(0x349)](_0x2e96ea){const _0x11c413=_0x5bf0eb;let _0x2bfa75='';if(!_0x4e927a['DRAWING_IMAGE_ALLOW_IMAGE_LIST'][_0x11c413(0x2c0)](_0x2e96ea[_0x11c413(0x3f8)]))return this[_0x11c413(0x334)](),Promise[_0x11c413(0x3a3)](Error(_0x4e927a['ImageUploadStatusType'][_0x11c413(0x3af)]));if(_0x2e96ea[_0x11c413(0x2a7)]>(0x0,_0x4e927a[_0x11c413(0x2d7)])())return this['_decreaseWaiting'](),Promise[_0x11c413(0x3a3)](Error(_0x4e927a[_0x11c413(0x240)][_0x11c413(0x387)]));try{let _0x3032cf=new FormData();_0x3032cf[_0x11c413(0x3e2)]('file',_0x2e96ea);let _0x5bf55b=this[_0x11c413(0x389)][_0x11c413(0x350)](),_0x5ba5f1=_0x5bf55b==null?void 0x0:_0x5bf55b[_0x11c413(0x3a7)]();if(!_0x5ba5f1)throw Error('unitId\x20is\x20not\x20found');let _0x168dec=this[_0x11c413(0x3be)]()+_0x11c413(0x2b5)+_0x2e96ea['size'][_0x11c413(0x49a)]()+_0x11c413(0x26d)+_0x240cfb[_0x11c413(0x324)][_0x11c413(0x217)]+_0x11c413(0x3ac)+encodeURIComponent(_0x5ba5f1),_0x2d4f5c={'body':_0x3032cf},_0x297452=(await this[_0x11c413(0x21f)]['post'](_0x168dec,_0x2d4f5c))[_0x11c413(0x46f)];if(typeof _0x297452['FileId']!=_0x11c413(0x502))return this['_decreaseWaiting'](),Promise[_0x11c413(0x3a3)](Error(_0x4e927a[_0x11c413(0x240)][_0x11c413(0x4ef)]));_0x2bfa75=_0x297452['FileId'];}catch{return this[_0x11c413(0x334)](),Promise[_0x11c413(0x3a3)](Error(_0x4e927a['ImageUploadStatusType'][_0x11c413(0x4ef)]));}return new Promise((_0x5e6029,_0x18c880)=>{const _0x3df140=_0x11c413;let _0x5ea21c=new FileReader();_0x5ea21c[_0x3df140(0x428)](_0x2e96ea),_0x5ea21c[_0x3df140(0x438)]=_0x27d947=>{const _0x484cb5=_0x3df140;var _0x31a47b;let _0x2652cb=(_0x31a47b=_0x27d947['target'])==null?void 0x0:_0x31a47b[_0x484cb5(0x4b6)];if(_0x2652cb==null){this[_0x484cb5(0x334)](),_0x18c880(Error(_0x4e927a['ImageUploadStatusType'][_0x484cb5(0x4ef)]));return;}_0x5e6029({'imageId':(0x0,_0x2dbbd9[_0x484cb5(0x40d)])(0x6),'imageSourceType':_0x4e927a[_0x484cb5(0x470)][_0x484cb5(0x296)],'source':_0x2bfa75,'base64Cache':_0x2652cb,'status':_0x4e927a[_0x484cb5(0x240)][_0x484cb5(0x2e0)]}),this[_0x484cb5(0x334)]();};});}['_getUploadFileURL'](){const _0x3ac542=_0x5bf0eb;var _0x19630b;let _0x5dce10=this[_0x3ac542(0x266)][_0x3ac542(0x46c)](_0x2a84dd);return(_0x19630b=_0x5dce10==null?void 0x0:_0x5dce10['uploadFileServerUrl'])==null?_0x3ac542(0x323):_0x19630b;}['_getSignURL'](){const _0x58664c=_0x5bf0eb;var _0x239249;let _0x577fc1=this[_0x58664c(0x266)][_0x58664c(0x46c)](_0x2a84dd);return(_0x239249=_0x577fc1==null?void 0x0:_0x577fc1[_0x58664c(0x3f9)])==null?'/universer-api/file/{fileID}/sign-url':_0x239249;}[_0x5bf0eb(0x355)](){const _0x44823a=_0x5bf0eb;var _0x4db432;let _0x22b9af=this[_0x44823a(0x266)][_0x44823a(0x46c)](_0x2a84dd);return(_0x4db432=_0x22b9af==null?void 0x0:_0x22b9af[_0x44823a(0x4ce)])==null?location[_0x44823a(0x433)]:_0x4db432;}[_0x5bf0eb(0x1f3)](_0x3fe38f,_0x260162){const _0x3fbadf=_0x5bf0eb;return _0x3fe38f[_0x3fbadf(0x397)](_0x3fbadf(0x4a7),_0x260162);}['_decreaseWaiting'](){const _0x43afc7=_0x5bf0eb;--this[_0x43afc7(0x361)],this[_0x43afc7(0x35b)][_0x43afc7(0x274)](this[_0x43afc7(0x361)]);}};_0x68b0f9=_0x4e6e0f([_0xe72533(0x0,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x5f56f9[_0x5bf0eb(0x207)])),_0xe72533(0x1,_0x2dbbd9[_0x5bf0eb(0x488)]),_0xe72533(0x2,(0x0,_0x2dbbd9['Inject'])(_0x2dbbd9[_0x5bf0eb(0x4d0)]))],_0x68b0f9);let _0x521f8d=class{constructor(_0xd3cd02,_0x300de8){const _0x4adb4c=_0x5bf0eb;this[_0x4adb4c(0x266)]=_0xd3cd02,this['_HTTPService']=_0x300de8;}[_0x5bf0eb(0x2f8)](){const _0xecaa76=_0x5bf0eb;var _0x26ef26;let _0x3d6f63=this['_configService'][_0xecaa76(0x46c)](_0x2a84dd);return(_0x26ef26=_0x3d6f63==null?void 0x0:_0x3d6f63[_0xecaa76(0x269)])==null?_0xecaa76(0x22f):_0x26ef26;}async[_0x5bf0eb(0x24a)](_0x49ca4f){const _0x607590=_0x5bf0eb;let _0x31ac03=this['_getAPIPrefixPath']()+_0x607590(0x449);return{'list':[{'title':_0x607590(0x4b4),'mentions':(await this[_0x607590(0x27e)][_0x607590(0x42f)](_0x31ac03,{'params':{'objectID':_0x49ca4f[_0x607590(0x281)],'unitID':_0x49ca4f[_0x607590(0x281)]}}))[_0x607590(0x46f)][_0x607590(0x21e)][_0x607590(0x1e3)](_0x55becd=>({'objectId':_0x55becd['id'],'name':_0x55becd['subject']['name'],'metadata':{'icon':_0x55becd[_0x607590(0x2bc)][_0x607590(0x41f)]},'label':_0x55becd['subject'][_0x607590(0x2fd)],'objectType':_0x2dbbd9[_0x607590(0x353)][_0x607590(0x27f)]})),'metadata':{},'type':_0x2dbbd9[_0x607590(0x353)][_0x607590(0x27f)]}]};}};_0x521f8d=_0x4e6e0f([_0xe72533(0x0,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x488)])),_0xe72533(0x1,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x5f56f9[_0x5bf0eb(0x207)]))],_0x521f8d);let _0x4f64c9=class extends _0x2dbbd9['RxDisposable']{constructor(_0x2e32dc,_0x5d746a,_0x16cb86,_0x42566a,_0x1803a5){const _0x17f1ad=_0x5bf0eb;super(),this['_injector']=_0x2e32dc,this[_0x17f1ad(0x389)]=_0x5d746a,this['_permissionService']=_0x16cb86,this[_0x17f1ad(0x3ec)]=_0x42566a,this['_collaborationUIEventService']=_0x1803a5,this[_0x17f1ad(0x3a8)](),this[_0x17f1ad(0x4f1)]();}[_0x5bf0eb(0x4f1)](){const _0xae562a=_0x5bf0eb;let _0x21a548=async _0x52f4ab=>{const _0x4b0b28=_0x4f27;(await this['_collaborationSessionService']['requireSession'](_0x52f4ab))[_0x4b0b28(0x3b7)][_0x4b0b28(0x4be)]((0x0,_0x2ab3d8['filter'])(_0x26d18a=>_0x26d18a[_0x4b0b28(0x4d9)]===_0x2b53f2['CollaborationEvent'][_0x4b0b28(0x368)]),(0x0,_0x2ab3d8['takeUntil'])(this[_0x4b0b28(0x3ea)]))['subscribe'](_0x1ad40a=>{const _0x5244f6=_0x4b0b28;let {reason:_0x2c8dfa}=_0x1ad40a[_0x5244f6(0x43a)];this['_collaborationUIEventService'][_0x5244f6(0x216)]({'id':_0x5244f6(0x484),'data':_0x2c8dfa}),this[_0x5244f6(0x461)][_0x5244f6(0x4d6)](new _0x184bfa[(_0x5244f6(0x3b1))](_0x52f4ab)['id'],!0x1),this[_0x5244f6(0x3ec)][_0x5244f6(0x25c)](_0x52f4ab);});};(0x0,_0x4f3716['merge'])(this[_0xae562a(0x389)]['getTypeOfUnitAdded$'](_0x2dbbd9[_0xae562a(0x442)][_0xae562a(0x20a)]),this[_0xae562a(0x389)][_0xae562a(0x220)](_0x2dbbd9[_0xae562a(0x442)]['UNIVER_DOC']))[_0xae562a(0x4be)]((0x0,_0x2ab3d8[_0xae562a(0x1e3)])(_0x2177f1=>_0x2177f1[_0xae562a(0x400)][_0xae562a(0x3a7)]()),(0x0,_0x2ab3d8[_0xae562a(0x422)])(_0x3edb10=>!(0x0,_0x2dbbd9[_0xae562a(0x228)])(_0x3edb10)),(0x0,_0x2ab3d8[_0xae562a(0x4fc)])(this[_0xae562a(0x3ea)]))[_0xae562a(0x31f)](_0x48b02f=>{_0x21a548(_0x48b02f);});}['_initUnitPermissionChange'](){const _0x251801=_0x5bf0eb;let _0x4010b2=async _0xf0e73e=>{const _0x28a200=_0x4f27;let _0x398b08=await this['_collaborationSessionService'][_0x28a200(0x3b8)](_0xf0e73e),_0x1eeb56=this[_0x28a200(0x2d5)][_0x28a200(0x42f)](_0x184bfa[_0x28a200(0x30f)]);_0x398b08[_0x28a200(0x3b7)][_0x28a200(0x4be)]((0x0,_0x2ab3d8['filter'])(_0x179e27=>_0x179e27['eventID']===_0x2b53f2[_0x28a200(0x406)][_0x28a200(0x246)]),(0x0,_0x2ab3d8[_0x28a200(0x4fc)])(this['dispose$']))[_0x28a200(0x31f)](_0x40d866=>{const _0x3243ee=_0x28a200;let {objectId:_0x3c7704}=_0x40d866[_0x3243ee(0x43a)];_0x3c7704===_0xf0e73e?_0x1eeb56[_0x3243ee(0x35e)](_0xf0e73e):_0x1eeb56[_0x3243ee(0x4e1)](_0xf0e73e,_0x3c7704);});};(0x0,_0x4f3716[_0x251801(0x42a)])(this[_0x251801(0x389)][_0x251801(0x220)](_0x2dbbd9[_0x251801(0x442)]['UNIVER_SHEET']))['pipe']((0x0,_0x2ab3d8[_0x251801(0x1e3)])(_0x5001c0=>_0x5001c0[_0x251801(0x400)][_0x251801(0x3a7)]()),(0x0,_0x2ab3d8[_0x251801(0x422)])(_0x265575=>!(0x0,_0x2dbbd9[_0x251801(0x228)])(_0x265575)),(0x0,_0x2ab3d8['takeUntil'])(this[_0x251801(0x3ea)]))['subscribe'](_0x19bc90=>{_0x4010b2(_0x19bc90);});}};_0x4f64c9=_0x4e6e0f([_0xe72533(0x0,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9['Injector'])),_0xe72533(0x1,_0x2dbbd9['IUniverInstanceService']),_0xe72533(0x2,_0x2dbbd9[_0x5bf0eb(0x338)]),_0xe72533(0x3,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x1d8d49)),_0xe72533(0x4,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x10b08d))],_0x4f64c9);let _0x13e673=class{constructor(_0x534959,_0x4fe0e3){const _0x319c95=_0x5bf0eb;this[_0x319c95(0x266)]=_0x534959,this[_0x319c95(0x21f)]=_0x4fe0e3;}async[_0x5bf0eb(0x4b1)](_0x5d1761,_0x43ec15){const _0x2d5a33=_0x5bf0eb;var _0x3a4fa3;let {unitID:_0x4a73b5,type:_0x110e48,revision:_0x5236df=0x0}=_0x43ec15,_0x4e4e99=this['getSnapshotAPIPath']()+'/'+_0x110e48+_0x2d5a33(0x30c)+_0x4a73b5+'/rev/'+_0x5236df,_0x35489e=(await this[_0x2d5a33(0x21f)][_0x2d5a33(0x42f)](_0x4e4e99))['body'],_0x1dc388=(_0x3a4fa3=_0x35489e[_0x2d5a33(0x3e0)])==null?void 0x0:_0x3a4fa3[_0x2d5a33(0x4f2)];if(_0x1dc388){let _0x39dc7e=_0x1dc388==null?void 0x0:_0x1dc388[_0x2d5a33(0x40a)];_0x1dc388['originalMeta']=_0x2b53f2[_0x2d5a33(0x290)][_0x2d5a33(0x45c)]((0x0,_0x2b53f2[_0x2d5a33(0x4de)])(_0x39dc7e)),Object[_0x2d5a33(0x23a)](_0x1dc388['sheets'])[_0x2d5a33(0x312)](([,_0x26e01a])=>{const _0x2fd64f=_0x2d5a33;let _0x186b8c=_0x26e01a[_0x2fd64f(0x40a)];_0x26e01a[_0x2fd64f(0x40a)]=_0x2b53f2['textEncoder'][_0x2fd64f(0x45c)]((0x0,_0x2b53f2[_0x2fd64f(0x4de)])(_0x186b8c));});}return _0x35489e;}async['getSheetBlock'](_0x1a1b92,_0x3d4329){const _0x4852ad=_0x5bf0eb;let {unitID:_0xf5c150,type:_0x1f4ff4,blockID:_0x2cdf8c}=_0x3d4329,_0x59b445=this[_0x4852ad(0x4ac)]()+'/'+_0x1f4ff4+_0x4852ad(0x30c)+_0xf5c150+_0x4852ad(0x2c1)+_0x2cdf8c;return(await this[_0x4852ad(0x21f)]['get'](_0x59b445))[_0x4852ad(0x46f)];}async[_0x5bf0eb(0x4c2)](_0xc27a38,_0x3df773){const _0x429d57=_0x5bf0eb;let {unitID:_0x3f6871,type:_0xc2d317,blockID:_0x5e2513}=_0x3df773,_0x1fc19b=this[_0x429d57(0x4ac)]()+_0x429d57(0x2c1)+_0xc2d317+_0x429d57(0x30c)+_0x3f6871+_0x429d57(0x2c1)+_0x5e2513;return(await this['_httpService']['get'](_0x1fc19b))[_0x429d57(0x46f)];}async[_0x5bf0eb(0x4b7)](_0x2b88f0,_0xaf3cfe){const _0x321dbe=_0x5bf0eb;let {unitID:_0x3708b9,type:_0x5a0a3b,from:_0x1e9e24,to:_0x5a272c}=_0xaf3cfe,_0x63f5f1=this[_0x321dbe(0x4ac)]()+'/'+_0x5a0a3b+'/unit/'+_0x3708b9+_0x321dbe(0x24c)+_0x1e9e24+_0x321dbe(0x329)+_0x5a272c;return(await this['_httpService'][_0x321dbe(0x42f)](_0x63f5f1))[_0x321dbe(0x46f)];}[_0x5bf0eb(0x29e)](){const _0xeb05=_0x5bf0eb;var _0x1919ec;return(_0x1919ec=this[_0xeb05(0x266)][_0xeb05(0x46c)](_0xeb05(0x3cf)))==null?this[_0xeb05(0x4ac)]():_0x1919ec;}['_getAPIPrefix'](){const _0x596efc=_0x5bf0eb;var _0x25743c;let _0x14f0b3=this[_0x596efc(0x266)][_0x596efc(0x46c)](_0x2a84dd);return(_0x25743c=_0x14f0b3==null?void 0x0:_0x14f0b3[_0x596efc(0x489)])==null?_0x596efc(0x1e2):_0x25743c;}async['getResourcesRequest'](_0xd33948,_0x147181){const _0x89663=_0x5bf0eb;let _0x5c8601=_0x89663(0x1ed)+_0x147181['type']+'/unit/'+_0x147181[_0x89663(0x37e)]+_0x89663(0x2b7);return(await this['_httpService'][_0x89663(0x42f)](_0x5c8601,{'params':{'resourceId':JSON[_0x89663(0x337)](_0x147181[_0x89663(0x299)])}}))[_0x89663(0x46f)];}[_0x5bf0eb(0x435)](){const _0x3aa95b=_0x5bf0eb;throw Error(_0x3aa95b(0x446));}[_0x5bf0eb(0x2eb)](){const _0xa96c6c=_0x5bf0eb;throw Error(_0xa96c6c(0x446));}[_0x5bf0eb(0x230)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x5bf0eb(0x42c)](){const _0x3135f3=_0x5bf0eb;throw Error(_0x3135f3(0x446));}[_0x5bf0eb(0x380)](){const _0x15defa=_0x5bf0eb;throw Error(_0x15defa(0x446));}[_0x5bf0eb(0x2f4)](){const _0xf2bc79=_0x5bf0eb;throw Error(_0xf2bc79(0x446));}};_0x13e673=_0x4e6e0f([_0xe72533(0x0,_0x2dbbd9['IConfigService']),_0xe72533(0x1,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x5f56f9[_0x5bf0eb(0x207)]))],_0x13e673);let _0x29d13a=class extends _0x2dbbd9['LocalUndoRedoService']{constructor(_0x2d2a08,_0xa5c0f5,_0x20c9f1,_0x144a34,_0x1e4085){const _0x25ba5b=_0x5bf0eb;super(_0x2d2a08,_0xa5c0f5,_0x20c9f1),this[_0x25ba5b(0x409)]=_0x144a34,this[_0x25ba5b(0x236)]=_0x1e4085;}[_0x5bf0eb(0x44b)](_0xf55f86,_0x165bdf){const _0x495001=_0x5bf0eb;let _0x2d05ad=this[_0x495001(0x221)](_0xf55f86);if(_0x2d05ad)try{let _0xc21630=this[_0x495001(0x255)](_0x2d05ad,_0x165bdf);this['_substituteUndoStack'](_0xf55f86,_0xc21630);}catch(_0x28c1de){this[_0x495001(0x236)]['error'](_0x495001(0x32e),_0x28c1de),this[_0x495001(0x345)](_0xf55f86);}let _0x5a984b=this[_0x495001(0x28b)](_0xf55f86);if(_0x5a984b)try{let _0x3ea45f=this[_0x495001(0x255)](_0x5a984b,_0x165bdf);this[_0x495001(0x2e1)](_0xf55f86,_0x3ea45f);}catch(_0x2c8e14){this[_0x495001(0x236)][_0x495001(0x35f)](_0x2c8e14),this['_clearRedo'](_0xf55f86);}}['_clearUndo'](_0x3f4de6){const _0x39a4c4=_0x5bf0eb;let _0x250553=this[_0x39a4c4(0x221)](_0x3f4de6);_0x250553&&(_0x250553[_0x39a4c4(0x2e3)]=0x0,this['_updateStatus']());}[_0x5bf0eb(0x386)](_0x12b0b3){const _0x2d8e36=_0x5bf0eb;let _0x4541e8=this[_0x2d8e36(0x28b)](_0x12b0b3);_0x4541e8&&(_0x4541e8[_0x2d8e36(0x2e3)]=0x0,this[_0x2d8e36(0x339)]());}[_0x5bf0eb(0x347)](_0x4e8eba,_0x1533bf){const _0x462c50=_0x5bf0eb;this[_0x462c50(0x33d)][_0x462c50(0x41a)](_0x4e8eba,_0x1533bf),this[_0x462c50(0x339)]();}[_0x5bf0eb(0x2e1)](_0x2b1af8,_0x5d73d9){const _0x16cf1a=_0x5bf0eb;this[_0x16cf1a(0x2e4)][_0x16cf1a(0x41a)](_0x2b1af8,_0x5d73d9),this[_0x16cf1a(0x339)]();}[_0x5bf0eb(0x255)](_0x45f85b,_0xd8d00){const _0x33e49c=_0x5bf0eb;let _0x4dbe8f=[],_0x2ca3d4=_0xd8d00,_0x62e47d=_0xd8d00;for(let _0x4d22fc=_0x45f85b[_0x33e49c(0x2e3)]-0x1;_0x4d22fc>=0x0;_0x4d22fc--){let {unitID:_0x58d493,undoMutations:_0x3a2677,redoMutations:_0x3c3f17}=_0x45f85b[_0x4d22fc],_0x434587=this[_0x33e49c(0x409)][_0x33e49c(0x3db)](_0x2ca3d4,_0x3a2677),_0x4064f9=this['_transformService']['transformMutationsWithChangeset'](_0x62e47d,_0x3c3f17);if((0x0,_0x2b53f2[_0x33e49c(0x485)])(_0x434587)||(0x0,_0x2b53f2[_0x33e49c(0x485)])(_0x4064f9)){this['_logService'][_0x33e49c(0x35f)](_0x33e49c(0x32e),_0x33e49c(0x2b9),_0x434587,_0x4064f9);break;}_0x2ca3d4=_0x434587[_0x33e49c(0x491)],_0x62e47d=_0x4064f9['c1Prime'],_0x4dbe8f['push']({'unitID':_0x58d493,'undoMutations':_0x434587[_0x33e49c(0x4c9)],'redoMutations':_0x4064f9[_0x33e49c(0x4c9)]});}return _0x4dbe8f[_0x33e49c(0x2f5)]();}};_0x29d13a=_0x4e6e0f([_0xe72533(0x0,_0x2dbbd9[_0x5bf0eb(0x4d0)]),_0xe72533(0x1,_0x2dbbd9[_0x5bf0eb(0x28c)]),_0xe72533(0x2,_0x2dbbd9[_0x5bf0eb(0x410)]),_0xe72533(0x3,_0x2b53f2[_0x5bf0eb(0x3e9)]),_0xe72533(0x4,_0x2dbbd9[_0x5bf0eb(0x21b)])],_0x29d13a);let _0x59dcfc=class extends _0x2dbbd9[_0x5bf0eb(0x26e)]{constructor(_0x5f4879={},_0x72c5d4,_0x5a5872,_0x3acc8b){const _0x6cb3a0=_0x5bf0eb;super(),this['_config']=_0x5f4879,this[_0x6cb3a0(0x236)]=_0x72c5d4,this[_0x6cb3a0(0x2d5)]=_0x5a5872,this[_0x6cb3a0(0x266)]=_0x3acc8b;let {..._0x5a594a}=(0x0,_0x2dbbd9[_0x6cb3a0(0x42a)])({},_0x3b8dd5,_0x5f4879);if(!_0x5a594a[_0x6cb3a0(0x2b3)])throw Error(_0x6cb3a0(0x270));this['_config']=_0x5a594a,this['_configService'][_0x6cb3a0(0x201)](_0x2a84dd,_0x5a594a);}[_0x5bf0eb(0x3f2)](){const _0x2935b9=_0x5bf0eb;this[_0x2935b9(0x238)](),this[_0x2935b9(0x257)]();}[_0x5bf0eb(0x238)](){const _0x2440d7=_0x5bf0eb;var _0x2339e5,_0x3d6524;this[_0x2440d7(0x2d5)][_0x2440d7(0x252)](_0x2dbbd9['IUndoRedoService'])&&this['_logService'][_0x2440d7(0x35f)](_0x2440d7(0x47b),_0x2440d7(0x48e));let _0x5021a9=(0x0,_0x2dbbd9[_0x2440d7(0x39f)])([[_0x2dbbd9[_0x2440d7(0x4bd)],{'useClass':_0x29d13a}],[_0x1d8d49],[_0xf86089],[_0x53e950],[_0x39e94c],[_0x41e2cb],[_0x4f6931],[_0x4f64c9],[_0x10b08d],[_0x48b093],[_0x18a142,{'useClass':this[_0x2440d7(0x4b3)][_0x2440d7(0x2b3)]}],[_0x2b53f2[_0x2440d7(0x28a)],{'useClass':_0x13e673}],[_0x2dbbd9[_0x2440d7(0x4c5)],{'useClass':_0x2d37b7}],[_0x4e927a[_0x2440d7(0x26c)],{'useClass':_0x68b0f9}],[_0x2dbbd9[_0x2440d7(0x4e4)],{'useClass':_0x521f8d}],[_0x573fbd],[_0x2af5f4]],(_0x2339e5=this[_0x2440d7(0x4b3)])==null?void 0x0:_0x2339e5[_0x2440d7(0x2c2)]);if(!((_0x3d6524=this['_config'])!=null&&_0x3d6524[_0x2440d7(0x237)])){let _0xee17e1=_0x5021a9[_0x2440d7(0x3a1)](([_0x2a1a88])=>_0x2a1a88===_0x268fcd);_0xee17e1!==-0x1&&_0x5021a9[_0x2440d7(0x356)](_0xee17e1,0x1);}(0x0,_0x2dbbd9[_0x2440d7(0x2ea)])(this[_0x2440d7(0x2d5)],_0x5021a9);}[_0x5bf0eb(0x257)](){const _0x4f368a=_0x5bf0eb;var _0x5ac68e,_0x56c771;if(this[_0x4f368a(0x2d5)][_0x4f368a(0x42f)](_0x5f56f9['HTTPService'])[_0x4f368a(0x41b)]({'priority':0x14,'interceptor':(0x0,_0x5f56f9[_0x4f368a(0x44f)])({'maxParallel':0x6})}),!((_0x5ac68e=this['_config'])!=null&&_0x5ac68e[_0x4f368a(0x321)])){var _0x589980;(_0x589980=this[_0x4f368a(0x2d5)][_0x4f368a(0x42f)](_0x36e220,_0x2dbbd9[_0x4f368a(0x241)][_0x4f368a(0x34f)]))==null||_0x589980[_0x4f368a(0x459)]();}(_0x56c771=this[_0x4f368a(0x4b3)])!=null&&_0x56c771['enableAuthServer']&&(0x0,_0x2dbbd9['touchDependencies'])(this[_0x4f368a(0x2d5)],[[_0x39e94c]]),(0x0,_0x2dbbd9['touchDependencies'])(this[_0x4f368a(0x2d5)],[[_0x41e2cb],[_0x573fbd],[_0x4f64c9]]);}};_0x527b5d(_0x59dcfc,_0x5bf0eb(0x233),_0x5bf0eb(0x448)),_0x527b5d(_0x59dcfc,_0x5bf0eb(0x413),_0x36adc3),_0x527b5d(_0x59dcfc,_0x5bf0eb(0x4fe),_0xc8583d),_0x59dcfc=_0x4e6e0f([(0x0,_0x2dbbd9[_0x5bf0eb(0x293)])(_0x3b77ee['UniverLicensePlugin'],_0x2b53f2[_0x5bf0eb(0x26a)],_0x5f56f9[_0x5bf0eb(0x291)]),_0xe72533(0x1,_0x2dbbd9[_0x5bf0eb(0x21b)]),_0xe72533(0x2,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9['Injector'])),_0xe72533(0x3,_0x2dbbd9[_0x5bf0eb(0x488)])],_0x59dcfc),Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x4a4),{'enumerable':!0x0,'get':function(){return _0x2d37b7;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x2dc),{'enumerable':!0x0,'get':function(){return _0x45f3bd;}}),Object['defineProperty'](_0x44d4a3,_0x5bf0eb(0x4c6),{'enumerable':!0x0,'get':function(){return _0x2be15f;}}),_0x44d4a3[_0x5bf0eb(0x3ae)]=_0x2a84dd,Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x463),{'enumerable':!0x0,'get':function(){return _0x573fbd;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x31e),{'enumerable':!0x0,'get':function(){return _0x3e0a94;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x3df),{'enumerable':!0x0,'get':function(){return _0x68b0f9;}}),Object['defineProperty'](_0x44d4a3,_0x5bf0eb(0x4ee),{'enumerable':!0x0,'get':function(){return _0x2fe3e1;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,'CollaborationSessionService',{'enumerable':!0x0,'get':function(){return _0x1d8d49;}}),Object['defineProperty'](_0x44d4a3,_0x5bf0eb(0x47e),{'enumerable':!0x0,'get':function(){return _0x47e4bb;}}),_0x44d4a3[_0x5bf0eb(0x2cb)]=_0x41a59c,_0x44d4a3[_0x5bf0eb(0x253)]=_0x3c5b62,_0x44d4a3[_0x5bf0eb(0x327)]=_0x10b08d,Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x1fb),{'enumerable':!0x0,'get':function(){return _0x29d13a;}}),_0x44d4a3[_0x5bf0eb(0x486)]=_0x4f6931,Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x363),{'enumerable':!0x0,'get':function(){return _0x4446c9;}}),_0x44d4a3['DEFAULT_COLLAB_WEB_SOCKET_URL']=_0xcb84c1,_0x44d4a3[_0x5bf0eb(0x443)]=_0x5bf0eb(0x279),_0x44d4a3['DEFAULT_WS_SESSION_TICKET_URL']='/universer-api/user/session-ticket',Object[_0x5bf0eb(0x497)](_0x44d4a3,'DataLoaderService',{'enumerable':!0x0,'get':function(){return _0x48b093;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x25e),{'enumerable':!0x0,'get':function(){return _0xe7b4d0;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,'FetchingMissState',{'enumerable':!0x0,'get':function(){return _0x49dbd8;}}),_0x44d4a3['HEARTBEAT_INTERVAL_KEY']=_0x5bf0eb(0x414),_0x44d4a3['HEARTBEAT_TIMEOUT_KEY']=_0x5bf0eb(0x4d7),_0x44d4a3[_0x5bf0eb(0x39a)]=_0x18a142,_0x44d4a3[_0x5bf0eb(0x206)]=_0x36e220,_0x44d4a3[_0x5bf0eb(0x2ae)]=_0x235c1d,_0x44d4a3[_0x5bf0eb(0x317)]=_0x268fcd,_0x44d4a3[_0x5bf0eb(0x4bb)]=0x3e8,_0x44d4a3[_0x5bf0eb(0x4cb)]=_0x5bf0eb(0x4bb),Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x297),{'enumerable':!0x0,'get':function(){return _0xf86089;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x4f0),{'enumerable':!0x0,'get':function(){return _0x521f8d;}}),Object['defineProperty'](_0x44d4a3,_0x5bf0eb(0x4c4),{'enumerable':!0x0,'get':function(){return _0x5a87ab;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,'PendingState',{'enumerable':!0x0,'get':function(){return _0x17b236;}}),_0x44d4a3[_0x5bf0eb(0x1e5)]=_0x5bf0eb(0x30b),_0x44d4a3[_0x5bf0eb(0x4bc)]=_0x5bf0eb(0x472),_0x44d4a3[_0x5bf0eb(0x1ea)]=_0x45b19d,Object['defineProperty'](_0x44d4a3,_0x5bf0eb(0x47f),{'enumerable':!0x0,'get':function(){return _0x4db82b;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x43d),{'enumerable':!0x0,'get':function(){return _0x53e950;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x496),{'enumerable':!0x0,'get':function(){return _0x13e673;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x29b),{'enumerable':!0x0,'get':function(){return _0x28d539;}}),_0x44d4a3[_0x5bf0eb(0x378)]=_0x26ce4c,Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x3fd),{'enumerable':!0x0,'get':function(){return _0x59dcfc;}}),_0x44d4a3[_0x5bf0eb(0x37b)]=_0x1a0343,_0x44d4a3[_0x5bf0eb(0x1e4)]=_0x41fc85,_0x44d4a3['serializeCombRequest']=_0x600b81;}));
|