@univerjs-pro/collaboration-client 1.0.0-alpha.0 → 1.0.0-alpha.2

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.
Files changed (85) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +13 -13
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3d7a(_0x3e48cd,_0x3bf4a4){_0x3e48cd=_0x3e48cd-0x10f;const _0x2cf87c=_0x2cf8();let _0x3d7a82=_0x2cf87c[_0x3e48cd];return _0x3d7a82;}function _0x2cf8(){const _0x333fd6=['/-/object/-/batch_allowed','_undoStacks','_transformIMECache','getConfig','_permissionService','JSONX','updateMember','SUCCUSS','[CollaborationState]:\x20apply\x20error!','collabWebSocketUrl','number','SYNCED','object','CmdRspCode','SOCKET_FAILED','UUID','shareReplay','_scheduleCollaborationTimeoutTimer','joinEvent','UNIVER_BASE','getWorkbookSelections','UNIVER_SHEET','_unitID','_socketReady','function','SnapshotService','?size=','CollaborationSocketService','socketService','exports','693FenIsn','_type','_collaborationSessionService','UniverInstanceType','213873dkXGmY','[OfflineState]:\x20received\x20changeset.','memberID','HEARTBEAT_INTERVAL_KEY','NO_OTHER_CLIENTS_EDITING','socket\x20open.','fetchMissingChangesets','PENDING','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','LIVESHARE_TERMINATE','188076nIcmGt','NEW_CHANGESETS','CollaborationUIEventId','JOIN_ROOM_PERMISSION_DENIED','symbol','LEAVE','m2Prime','IContextService','DEFAULT_WS_SESSION_TICKET_URL','onTransformRemoteChangesetByIMECache','catch','HEARTBEAT_TIMEOUT_KEY','byteOffset','_transformSelections','src','_entityInit$','SheetCollaborationEntity','MemberService','_isEchoedAwaitingChangeset','deepClone','onStarting','LOCAL_CACHE_INTERVAL','take','UniverLicensePlugin','maxSize','getUnitId','180eQrLUx','put','CommentService','session.room-full','getImage','_revisionService','_clearRedo','\x0aCurrent:\x20','AwaitingState','IDLE','_collaborationPaused','clear','Uint8Array','ImageSourceType','fetchMiss','unknown','_timeoutTimer','getCurrentRevOfUnit','asObservable','4977gmgJxB','duration','commentUpdateEvent','actions','HTTPService','subject','SetSelectionsOperation','_createInitialState',',\x20got:\x20','unitId\x20is\x20not\x20found','MentionIoHttpService','forEach','dispose$','[CollaborationUndoRedoService]','toString','_updateStatus','parseProtocolChangeset','updateCursorEvent','loginUrlKey','selections','disablePadding','filter','ApplyBaseJson1Mutation','CollaborationUIEventService','_getCurrentRevision','PERSON','liveShareNewHost','onRemoteChangeset','_clearLocalCache','pluginName','_snapshotService','DRAWING_IMAGE_ALLOW_IMAGE_LIST','_onLocalMutation','Failed\x20to\x20update\x20permission\x20point','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','disposeWithMe','add','parseChangesetToProtocol','setCurrentUser','UniverSheets','[SyncedState]:\x20received\x20acknowledgement.','pipe','_sender','floor','SUBMIT_CHANGESET','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','UniverNetworkPlugin','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','onTransformIME','updateCollaborator','Disposable','changesets','[DocCollaborationEntity]:\x20DocStateChangeManagerService\x20is\x20required.\x20Register\x20UniverDocsPlugin\x20before\x20collaboration.','IImageIoService','_waitForHeartbeatResponse','getTypeOfUnitAdded$','WorkbookEditablePermission','EmptyMutationInfo','InsertSheetMutation','_members$','LIVESHARE_NEW_HOST','size','saveSnapshot','updatePermissionPoint','DocCollaborationEntity','isSafeInteger','map','CHANGESET_SHOULD_RETRY','/resources','string','[PendingState]:\x20received\x20acknowledgement.','revision','requireSession','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','UNISCRIPT_RUN','subarray','_sendHeartbeat','indexOf','withCredentials','fetchThroughInterceptors','call','_getDownloadEndpointURL','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_resendTimeout','operators','_transformRemoteChangesetByStateCache','_createHandler','RETRY_CONNECTING_MAX_COUNT_KEY','LocaleService','_pendingMutations','session.room-permission-denied','SNAPSHOT_URL_KEY','98XBdCmd','deleteCollaborator','ReplaySubject','96yOAkhI','_getLoginPath','setWaitCount','updateOfflineData','_acknowledgeAwaiting','toggleOnline','INetworkConditionService','HELLO','ConflictState','RxDisposable','_snapshotServerService','JOIN_ROOM_FAILED','dispose','\x20-\x20','not_collab','_tryEnsureSocket','output','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','csRejEvent','_fetchMissChangesets','replace','state','max','5191120VAisnE','UnitEmbedded','RevisionService','_throwTelemetryCollaborationNewChangeset','Workbook','getTypeOfUnitDisposed$','sessionStatus$','getMemberID','_transformRemoteChangesetByIMECache','_initCloseConn','telemetry\x20info\x20is\x20not\x20initialized','aes/pkcs7:\x20wrong\x20padding','SheetTransformSelectionsService','_schedule','init','snapshotServerUrl','_state','getOwnPropertyDescriptor','_startCollaboration','_onConflict','objectID','_commentUpdate$','getCollabEntity$','decrypt','RichTextEditingMutation','localeService','version','mutations','getLatestCsReqIdBySid','RemoveSlidePageMutation','/fetchmissing?from=','_onRemoteRetry','collaboration-client.auth.needGotoLoginAlert','IConfigService','getCollabEntity','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','endsWith','FileSource','UniverProCollaborationClient','isTransformMutationsWithChangesetSuccess','onLocalMutation','IUniverInstanceService','defineProperty','confirm','INGEST','_collabSessionService','collaboration-client.local-cache-service','onMissedChangesetFetched','reverse','getMember','/universer-api/file/{fileID}/sign-url','ERROR_EXCEED_SIZE','has','createSocket','_docStateChangeManagerService','_remoteChangesetQueue','@univerjs/protocol','nonceLength','synced','getRandomValues','_config','_unlockTransition','ISnapshotServerService','reduce','equals','UniverProtocol','connection\x20error','getTime','UniverTelemetry','transformMutationsWithChangeset','_shouldReportTelemetry','_onRemoteACK','_initRequestHeader','backupOfflineData','originalMeta','isTransformChangesetsSuccess','onlyLocal','_incrementRevisionNumber','Plugin','AuthzIoHttpService','getCurrentSelections','getGlobalObject','getUnit','executeCommand','/universer-api/uniscript','isView','collaboratorID','ISingleActiveUnitService','_retryCount','ICollaborationSocketService','LIVESHARE_REQUEST_HOST','AddSlidePageMutation','UniverCollaborationPlugin','Inject','_transformStateCache','deserializeToCombResponse','Optional','resolve','readyForCollab','getUploadOptions','loadSlide','online$','onTransformState','c1Prime','some','firstValueFrom','transformStack\x20failed!','offline','Rectangle','_collaborationUIEventService','_clearHeartbeatTimer','_onUserJoin','_getUndoStack','IPermissionService','_socketMessageSubscription','update','socket$','unitID','OTHER_CLIENT_EDITING','_toggleOffline','_initUnitPermissionChange','unit','byteLength','result','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','_exhaustRemoteChangesetQueue','close','batchAllowed','ISocketService','/rev/','routeKey','toStringTag','_changesetSessionId','appendMutation','sid','fill','_cfgEnableObjInherit','FAIL','_transitionLocked','createInstance','isArray','getRoom','collabSubmitChangesetUrl','_sheetTransformSelectionsService','registerHTTPInterceptor','_collaborationTimeoutTimer','error','includes','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_unitInfo$','_socket$','_eventService','_resendWithTimeout','_getRedoStack','_roomMembers','/universer-api/user/session-ticket','IUndoRedoService','ILogService','removeMember','awaiting_with_pending','SUBMIT_CHANGESET_TIMEOUT','apply','_getSignURL','@univerjs/docs','_removeRoom','_clearUndo','href','_singleActiveUnitService','/collaborator','_initDependencies','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','_imageSourceCache','USERS_ENTER','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','onSendChangeset','pauseCollaboration','COMPRESS_MUTATION_APPLY','_socketService','encrypt','_memberService','unitInfo$','[OfflineState]:\x20received\x20acknowledgement.','MSG_FOR_ERROR','URL','/object/','_getConfig','baseRev','_getSendChangesetTimeout','length','getActiveSheet','_sessions','SnapshotServerOverHTTPService','collaboration-client.config','CHANGESET_ACK','_compressMutationService','attachment','DEFAULT_COLLAB_WEB_SOCKET_URL','userID','_isPermissionRej','editingUnit','CompressMutationService','avatar','range','charCodeAt','univer-pro.collaboration-client.network-condition.service','CHANGESET_REJ','closeSession','putCollaborators','buffer','_redoStacks','file','UNIVER_COLLABORATION_CLIENT_PLUGIN','_applyRemoteChangeset','SHOULD_CLOSE_CONN','_handleRemoteChangesets','ERROR_IMAGE','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','slice','DEFAULT_FILE_NAME','compose','getInterceptPoints','GLOBAL_ROOMS_CNT_EXCEEDS','enableAuthServer','SOCKET_FAILED_RETRY','UPDATE_PERMISSION_OBJ','constructor','stopTime','eventID','AWAITING_WITH_PENDING','_onJoinRoomEvent','SessionStatus','loadSheet','PERMISSION_REJ','missingChangesets','splice','SheetPermissionInitController','mapDocumentTypeToUniverInstanceType','[OfflineState]:\x20received\x20rejection.','_clearCollaborationTimeoutTimer','startsWith','_handler','create','_upload','onMissingChangesets','now','sendChangesetTimeout','Injector','UNIVER_SLIDE','isInternalEditorID','_localCacheService','parse','71156SQaPgM','_commentService','LIVESHARE_FETCH_OPERATIONS','_clearScheduledTask','setCfgEnableObjInherit','saveChangeset','_getCtorByUniverInstanceType','_substituteUndoStack','_sendHeartbeatTimer','CollaborationEvent','LOCAL_CACHE_INTERVAL_KEY','_configService','_updateLocalCache','_members','message$','createIdentifier','signUrlServerUrl','_init','mergeOverrideWithDependencies','location','_injector','onRemoteAck','reqId','OFFLINE','body','HEARTBEAT','1.0.0-alpha.0','CLOSE_ROOM','UniverCollaborationClientPlugin','socket\x20close','debug','pending','onMutationExecutedForCollab','_onOffline','_roomCreated$','upload','onTransformRemoteChangesetByStateCache','uploadFileServerUrl','onStateChange','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','prototype','@univerjs-pro/collaboration','status','_HTTPService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','list','getFocusedUnit','UniverProCollaboration','UPDATE_CURSOR','_doCreateSocket','editing\x20status\x20changed\x20to','onSyncEditingCollabCursor','toggleOffline','append','FetchingMissState','ITransformService','_state$','_univerInstanceService','_event$','next','startTime','transformUndoRedo','stringify','/-/object/list','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','toDisposable','{fileID}','action','AwaitingWithPendingState','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','onTransformSelections','_socket','_clearTimeoutTimer','updatePermissionObjEvent','touchDependencies','CollaborationEntity','serializeCombRequest','snapshot','PERMISSION_DENIED','objectType','_getAPIPrefix','_createInitialStateImpl','_substituteRedoStack','merge','localCacheService','_instanceService','_networkConditionService','isPermissionRej','[DataLoaderService]','registerDependencies','CollaborationStatus','_unitLoaded$','every','push','varSizeNonce','initWorkbookPermissionChange','_onUserLeave','__Key__','JOIN_ROOM_FULL','_decreaseWaiting','loadUnitOfRevision','FileId','params','getDrawingImageAllowSize','_undoRedoService','number\x20expected,\x20got\x20','UniverCore','delete','collaborators','BehaviorSubject','49880yJogBH','crypto','_acknowledgedAwaitingRevision','_replaceFileID','FETCH_MISSING','rxjs','_stopTelemetryCollaborationNewChangeset','_onCombEvent','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','fromCharCode','x-univer-host','uniscriptRunEvent','find','ImageUploadStatusType','send','_status$','sort','/allowed','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','type=','fetch_missing','session.room-not-exists','entries','_syncEditingCollabCursor','_toggleOnline','RECV','members','key','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','type','COMMENT_UPDATE','open$','amd','retryConnectingInterval','@univerjs/sheets','onRemoteRej','conflict','getAllMembers','_onFetchMissResult','failed\x20to\x20apply\x20missed\x20changesets!','CONFLICT','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','leaveEvent','setShowComponents','Quantity','[CollaborationEntity]','/universer-api/authz','Subject','listRoles','_transformStack','getUnitOnRev','CollaborationImageIoService','HEARTBEAT_TIMEOUT','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','CollaborationSessionService','enableOfflineEditing','_submitChangeset','_listenToNetworkCondition','FETCH_MISS','findIndex','JOIN_ROOM_NOT_EXISTS','ws://127.0.0.1:8000/universer-api/comb/connect','_transformUndoredo','UniverProLicense','?url=','iterator','get','nonce','resolveWithBasePath','enableSingleActiveInstanceLock','_disableEditing','unitId','_queuedRemoteChangesets','session.room-cnt-exceeds','getImageSourceCache','from','isTransformMutationsWithChangesetFailure','COMPRESS_MUTATION_SEND','_getAPIPrefixPath','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','default','set','subUnitId','_change$','ICommandService','expected\x20Uint8Array','concatMap','@univerjs/drawing','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','loadOfflineData','_entities','collaboration_new_changeset','_onRemoteChangeset','event$','_updateState','PSEUDO_FETCH_MISSING_RESULT','DataLoaderService','_startTelemetryCollaborationNewChangeset','/object','427647SvekrI','requestParams','Module','[CollaborationSession]','_initMergeInterceptor','_awaitingChangeset','liveShareOperation','sheets','@univerjs-pro/collaboration-client','_telemetryService','_changesetReqId','listCollaborators','post','__splitChunk__','reject','_onConnectionOpen','ERROR_IMAGE_TYPE','BASE64','roomInfos','_resendTimer','_getUploadFileURL','unit-cache-','getUnitType','_httpService','takeUntil','name','submit\x20changeset\x20error!','_scheduleCompleteTimestamp','UniverDocs','_sendingTimer','b64DecodeUnicode','allowed','&assign=','_waitCount','_tryReconnect','5fwSrsH','headers','collaMsg','OTHER_CLIENTS_EDITING','override','_sessionStatus$','_rescheduleHeartbeat','JOINING','_createSocket','/universer-api/comb','LIVESHARE_OPERATION','MUTATION','getSnapshotAPIPath','_telemetryInfo','_retryConnectingTimer','assign','origin','cmd','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','text-x','shouldCloseConn','patch','UnitStatus','session.join-failed','_candidateSocket',',\x20got\x20','downloadEndpointUrl','[CollaborationSessionService]','LocalUndoRedoService','saveSheetBlock','close$','_onConnectionFailed','CollaborationAttachmentIoService','waitForRoom$','People','_transformService','_checkMissing','permissionRejEvent','change$','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','_maxTotalRetryTimeout','interceptor','transformChangesets','BYTES_PER_ELEMENT','fromCollab','@univerjs/telemetry','transformSelections','_joinRoom','_emitMembers','data','_showConflictNotification','url','/block/','resend','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UserManagerService','_executeRemoteChangeset','RETRY_CONNECTING_MAX_COUNT','CommandType','CombCmd','subscribe','hostname','textEncoder','code','complete','awaitingChangeset','AttachmentSourceType','getResourcesRequest','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','EnsureSlideMasterPageMutation','getCurrentUser','string\x20expected','\x0aAfter:\x20','reconnect','@univerjs-pro/slides','_logService','/universer-api/snapshot','_replayCachedMutations','MentionType','onRemoteRetry','DependentOn','_registerDependencies','refreshPermission','HEARTBEAT_INTERVAL','JOIN','unsubscribe','OPTIONAL','[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.','onCommentUpdate','sessionStatus','DisposableCollection','delay','_handlerCallback','SyncedState','updateSnapshot','_clearRetryConnectingTimer','roles','_localeService','status$','_lockTransition','UNIVER_DOC','_acknowledgeAwaitingIfReady','POST','session','@univerjs/network','emitEvent','_transformAndApplyRemoteChangeset','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','[UniverCollaborationClientPlugin]','awaiting','title','state$','PendingState','authzUrl','resourceIDs','/unit/','min','_commandService','IAuthzIoService','textRanges','USERS_LEAVE','&to=','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.'];_0x2cf8=function(){return _0x333fd6;};return _0x2cf8();}(function(_0x30cca4,_0x4683e8){const _0x14a23f=_0x3d7a,_0x35d8e9=_0x30cca4();while(!![]){try{const _0x4839cf=parseInt(_0x14a23f(0x406))/0x1*(-parseInt(_0x14a23f(0x12c))/0x2)+-parseInt(_0x14a23f(0x30f))/0x3+parseInt(_0x14a23f(0x23e))/0x4*(-parseInt(_0x14a23f(0x332))/0x5)+parseInt(_0x14a23f(0x3d9))/0x6*(parseInt(_0x14a23f(0x129))/0x7)+-parseInt(_0x14a23f(0x2ac))/0x8*(-parseInt(_0x14a23f(0x3cb))/0x9)+-parseInt(_0x14a23f(0x143))/0xa+-parseInt(_0x14a23f(0x3cf))/0xb*(-parseInt(_0x14a23f(0x3f3))/0xc);if(_0x4839cf===_0x4683e8)break;else _0x35d8e9['push'](_0x35d8e9['shift']());}catch(_0xf3cedb){_0x35d8e9['push'](_0x35d8e9['shift']());}}}(_0x2cf8,0x4758e),function(_0x547438,_0x5ea144){const _0x2951a6=_0x3d7a;typeof exports==_0x2951a6(0x3b9)&&typeof module<'u'?_0x5ea144(exports,require('@univerjs-pro/bases'),require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x2951a6(0x3c5)&&define[_0x2951a6(0x2cc)]?define([_0x2951a6(0x3ca),'@univerjs-pro/bases',_0x2951a6(0x267),'@univerjs/core',_0x2951a6(0x1e6),_0x2951a6(0x2ce),_0x2951a6(0x2b1),_0x2951a6(0x17b),_0x2951a6(0x35f),'rxjs/operators',_0x2951a6(0x37c),_0x2951a6(0x39a),'@univerjs-pro/license',_0x2951a6(0x303)],_0x5ea144):(_0x547438=typeof globalThis<'u'?globalThis:_0x547438||self,_0x5ea144(_0x547438[_0x2951a6(0x169)]={},_0x547438['UniverProBases'],_0x547438[_0x2951a6(0x26d)],_0x547438[_0x2951a6(0x2a8)],_0x547438[_0x2951a6(0x32b)],_0x547438[_0x2951a6(0x42d)],_0x547438[_0x2951a6(0x2b1)],_0x547438[_0x2951a6(0x184)],_0x547438[_0x2951a6(0x187)],_0x547438[_0x2951a6(0x2b1)][_0x2951a6(0x121)],_0x547438['UniverProSlides'],_0x547438['UniverNetwork'],_0x547438[_0x2951a6(0x2eb)],_0x547438['UniverDrawing']));}(this,function(_0x4a4926,_0x2d3100,_0x626b63,_0x99589,_0x51f5dd,_0x3591b7,_0x3666d5,_0x590316,_0x51be73,_0x894c66,_0x4b428b,_0x472468,_0x127f85,_0x1baaf8){const _0x476a9e=_0x3d7a;Object['defineProperty'](_0x4a4926,Symbol[_0x476a9e(0x1c6)],{'value':_0x476a9e(0x311)});let _0x355bce=_0x476a9e(0x203),_0x10a3ef={},_0x238496=_0x476a9e(0x2e9),_0x403e9b=0x4e20;function _0x287927(_0x56cf1f){const _0x4f3044=_0x476a9e;return JSON['stringify'](_0x56cf1f)[_0x4f3044(0x1ff)];}function _0x3d5c03(_0x281008){'@babel/helpers - typeof';const _0x37173c=_0x476a9e;return _0x3d5c03=typeof Symbol==_0x37173c(0x3c5)&&typeof Symbol[_0x37173c(0x2ed)]=='symbol'?function(_0x3b0573){return typeof _0x3b0573;}:function(_0x5edae4){const _0x216f49=_0x37173c;return _0x5edae4&&typeof Symbol=='function'&&_0x5edae4['constructor']===Symbol&&_0x5edae4!==Symbol[_0x216f49(0x266)]?_0x216f49(0x3dd):typeof _0x5edae4;},_0x3d5c03(_0x281008);}function _0x3a671a(_0xeb2eec,_0x2d128e){const _0x5d10f2=_0x476a9e;if(_0x3d5c03(_0xeb2eec)!='object'||!_0xeb2eec)return _0xeb2eec;var _0x1518f8=_0xeb2eec[Symbol['toPrimitive']];if(_0x1518f8!==void 0x0){var _0x320ce7=_0x1518f8['call'](_0xeb2eec,_0x2d128e||_0x5d10f2(0x2fc));if(_0x3d5c03(_0x320ce7)!=_0x5d10f2(0x3b9))return _0x320ce7;throw TypeError(_0x5d10f2(0x368));}return(_0x2d128e==='string'?String:Number)(_0xeb2eec);}function _0x124491(_0x4cabe8){const _0x4b9df9=_0x476a9e;var _0x113d06=_0x3a671a(_0x4cabe8,'string');return _0x3d5c03(_0x113d06)==_0x4b9df9(0x3dd)?_0x113d06:_0x113d06+'';}function _0x222df1(_0x106455,_0x356888,_0x217cc3){const _0x5e3fd5=_0x476a9e;return(_0x356888=_0x124491(_0x356888))in _0x106455?Object[_0x5e3fd5(0x16d)](_0x106455,_0x356888,{'value':_0x217cc3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x106455[_0x356888]=_0x217cc3,_0x106455;}let _0x4a2701=function(_0x34b5e5){const _0x4f8c99=_0x476a9e;return _0x34b5e5['OTHER_CLIENT_EDITING']=_0x4f8c99(0x1b9),_0x34b5e5['PERMISSION_DENIED']=_0x4f8c99(0x28c),_0x34b5e5[_0x4f8c99(0x2d4)]=_0x4f8c99(0x2d4),_0x34b5e5[_0x4f8c99(0x259)]=_0x4f8c99(0x259),_0x34b5e5[_0x4f8c99(0x137)]='JOIN_ROOM_FAILED',_0x34b5e5[_0x4f8c99(0x222)]=_0x4f8c99(0x222),_0x34b5e5[_0x4f8c99(0x3bb)]=_0x4f8c99(0x3bb),_0x34b5e5[_0x4f8c99(0x1e3)]=_0x4f8c99(0x1e3),_0x34b5e5;}({});var _0x4cf82f=class{constructor(){const _0x71be97=_0x476a9e;_0x222df1(this,_0x71be97(0x278),new _0x3666d5[(_0x71be97(0x2db))]()),_0x222df1(this,'event$',this[_0x71be97(0x278)]['asObservable']());}[_0x476a9e(0x39b)](_0x296886){const _0x2ed4eb=_0x476a9e;this['_event$'][_0x2ed4eb(0x279)](_0x296886);}},_0x371f43=class{constructor(){const _0x1d5573=_0x476a9e;_0x222df1(this,_0x1d5573(0x158),new _0x3666d5[(_0x1d5573(0x2db))]()),_0x222df1(this,'commentUpdate$',this['_commentUpdate$'][_0x1d5573(0x405)]());}['onCommentUpdate'](_0x2c448b){const _0x3f2ed4=_0x476a9e;this[_0x3f2ed4(0x158)][_0x3f2ed4(0x279)](_0x2c448b);}};function _0x191f42(_0x450e2,_0x4145dc){return function(_0x229341,_0x59820b){_0x4145dc(_0x229341,_0x59820b,_0x450e2);};}function _0x10b7c9(_0x318964,_0x42abdf,_0x346096,_0x373f46){const _0x51e916=_0x476a9e;var _0xdb81f9=arguments[_0x51e916(0x1ff)],_0x2b3c8a=_0xdb81f9<0x3?_0x42abdf:_0x373f46===null?_0x373f46=Object[_0x51e916(0x154)](_0x42abdf,_0x346096):_0x373f46,_0x2e903b;if(typeof Reflect==_0x51e916(0x3b9)&&typeof Reflect['decorate']==_0x51e916(0x3c5))_0x2b3c8a=Reflect['decorate'](_0x318964,_0x42abdf,_0x346096,_0x373f46);else{for(var _0x513fa6=_0x318964[_0x51e916(0x1ff)]-0x1;_0x513fa6>=0x0;_0x513fa6--)(_0x2e903b=_0x318964[_0x513fa6])&&(_0x2b3c8a=(_0xdb81f9<0x3?_0x2e903b(_0x2b3c8a):_0xdb81f9>0x3?_0x2e903b(_0x42abdf,_0x346096,_0x2b3c8a):_0x2e903b(_0x42abdf,_0x346096))||_0x2b3c8a);}return _0xdb81f9>0x3&&_0x2b3c8a&&Object[_0x51e916(0x16d)](_0x42abdf,_0x346096,_0x2b3c8a),_0x2b3c8a;}let _0x5cbafb=class extends _0x99589[_0x476a9e(0x438)]{constructor(_0x5ea60a,_0xea7dfa){const _0x4ba800=_0x476a9e;super(),this[_0x4ba800(0x277)]=_0x5ea60a,this['_userManagerService']=_0xea7dfa,_0x222df1(this,_0x4ba800(0x1dd),new Map()),_0x222df1(this,_0x4ba800(0x260),new _0x3666d5[(_0x4ba800(0x2db))]()),this['disposeWithMe']((0x0,_0x3666d5[_0x4ba800(0x291)])(this[_0x4ba800(0x277)][_0x4ba800(0x148)](_0x99589['UniverInstanceType'][_0x4ba800(0x3c2)])[_0x4ba800(0x42f)]((0x0,_0x894c66[_0x4ba800(0x10f)])(_0x4c51de=>_0x4c51de['getUnitId']())),this[_0x4ba800(0x277)][_0x4ba800(0x148)](_0x99589[_0x4ba800(0x3ce)][_0x4ba800(0x396)])['pipe']((0x0,_0x894c66[_0x4ba800(0x10f)])(_0x5f0fe1=>_0x5f0fe1['getUnitId']())),this['_univerInstanceService'][_0x4ba800(0x148)](_0x99589[_0x4ba800(0x3ce)][_0x4ba800(0x3c0)])['pipe']((0x0,_0x894c66[_0x4ba800(0x10f)])(_0x350bf6=>_0x350bf6['getUnitId']())))['subscribe'](_0x1a3709=>this[_0x4ba800(0x1e7)](_0x1a3709)));}[_0x476a9e(0x353)](_0x767e14){const _0x6b93dc=_0x476a9e;return this['_roomMembers']['has'](_0x767e14)?(0x0,_0x3666d5['of'])(this[_0x6b93dc(0x1dd)][_0x6b93dc(0x2ee)](_0x767e14)):this[_0x6b93dc(0x260)][_0x6b93dc(0x42f)]((0x0,_0x894c66[_0x6b93dc(0x10f)])(_0x5d2170=>{const _0x1fcb8b=_0x6b93dc;if(_0x5d2170===_0x767e14)return this[_0x1fcb8b(0x1dd)][_0x1fcb8b(0x2ee)](_0x5d2170);}));}[_0x476a9e(0x42c)](_0x2c4b84){const _0x4fb56e=_0x476a9e;this['_userManagerService'][_0x4fb56e(0x42c)](_0x2c4b84);}['getCurrentUser'](){const _0x96100a=_0x476a9e;return this['_userManagerService'][_0x96100a(0x378)]();}[_0x476a9e(0x3b3)](_0x1c6bf0,_0x2deaed){const _0xd68233=_0x476a9e;let _0x375cae=this[_0xd68233(0x1dd)][_0xd68233(0x2ee)](_0x1c6bf0);_0x375cae||(_0x375cae=new _0x27fb79(),this['_roomMembers'][_0xd68233(0x2fd)](_0x1c6bf0,_0x375cae),this[_0xd68233(0x260)][_0xd68233(0x279)](_0x1c6bf0)),_0x375cae[_0xd68233(0x3b3)](_0x2deaed);}[_0x476a9e(0x1e1)](_0xe4d548,_0x44b059){const _0xd7a86e=_0x476a9e;let _0x2c0e60=this['_roomMembers'][_0xd7a86e(0x2ee)](_0xe4d548);_0x2c0e60&&_0x2c0e60[_0xd7a86e(0x1e1)](_0x44b059);}[_0x476a9e(0x1d0)](_0x13ac07){const _0x90ec66=_0x476a9e;return this[_0x90ec66(0x1dd)]['get'](_0x13ac07);}['getMember'](_0x2bfaa2,_0x41f26a){const _0x493fac=_0x476a9e;let _0x35a185=this[_0x493fac(0x1dd)][_0x493fac(0x2ee)](_0x2bfaa2);if(_0x35a185)return _0x35a185[_0x493fac(0x174)](_0x41f26a);}['_removeRoom'](_0x1844f4){const _0x5adac7=_0x476a9e;let _0x212b48=this[_0x5adac7(0x1dd)][_0x5adac7(0x2ee)](_0x1844f4);_0x212b48&&(_0x212b48[_0x5adac7(0x138)](),this[_0x5adac7(0x1dd)][_0x5adac7(0x2a9)](_0x1844f4));}[_0x476a9e(0x138)](){const _0x19219e=_0x476a9e;this['_roomMembers']['forEach'](_0x1fa7c2=>_0x1fa7c2[_0x19219e(0x138)]()),this[_0x19219e(0x1dd)]['clear'](),this[_0x19219e(0x260)]['complete']();}};_0x5cbafb=_0x10b7c9([_0x191f42(0x0,_0x99589[_0x476a9e(0x16c)]),_0x191f42(0x1,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589[_0x476a9e(0x369)]))],_0x5cbafb);var _0x27fb79=class extends _0x99589[_0x476a9e(0x438)]{constructor(..._0x17a200){const _0x4ff35a=_0x476a9e;super(..._0x17a200),_0x222df1(this,_0x4ff35a(0x24b),new Map()),_0x222df1(this,_0x4ff35a(0x441),new _0x3666d5[(_0x4ff35a(0x2ab))](this[_0x4ff35a(0x24b)])),_0x222df1(this,'members$',this[_0x4ff35a(0x441)][_0x4ff35a(0x405)]());}[_0x476a9e(0x138)](){const _0x58fc13=_0x476a9e;this[_0x58fc13(0x24b)]['clear'](),this[_0x58fc13(0x441)][_0x58fc13(0x372)]();}[_0x476a9e(0x3b3)](_0x4f03ac){const _0x35ab38=_0x476a9e;this['_members'][_0x35ab38(0x2fd)](_0x4f03ac['memberID'],_0x4f03ac),this[_0x35ab38(0x362)]();}['removeMember'](_0x5662e5){const _0xef7fd4=_0x476a9e;this['_members'][_0xef7fd4(0x2a9)](_0x5662e5),this[_0xef7fd4(0x362)]();}[_0x476a9e(0x174)](_0x3ca456){const _0x3ba325=_0x476a9e;return this[_0x3ba325(0x24b)]['get'](_0x3ca456);}[_0x476a9e(0x2d1)](){const _0x205988=_0x476a9e;return Array['from'](this[_0x205988(0x24b)]['values']());}[_0x476a9e(0x362)](){const _0x9b851=_0x476a9e;this[_0x9b851(0x441)][_0x9b851(0x279)](this[_0x9b851(0x24b)]);}};let _0x5f0ef1=function(_0x57fe32){const _0x2fd96e=_0x476a9e;return _0x57fe32[_0x57fe32[_0x2fd96e(0x3fc)]=0x0]=_0x2fd96e(0x3fc),_0x57fe32[_0x57fe32[_0x2fd96e(0x339)]=0x1]=_0x2fd96e(0x339),_0x57fe32[_0x57fe32[_0x2fd96e(0x255)]=0x2]=_0x2fd96e(0x255),_0x57fe32[_0x57fe32['ONLINE']=0x3]='ONLINE',_0x57fe32;}({}),_0x31f792={[_0x590316['CmdRspCode'][_0x476a9e(0x1cc)]]:_0x476a9e(0x349),[_0x590316[_0x476a9e(0x3ba)][_0x476a9e(0x2a0)]]:_0x476a9e(0x3f6),[_0x590316[_0x476a9e(0x3ba)][_0x476a9e(0x2e8)]]:_0x476a9e(0x2c1),[_0x590316[_0x476a9e(0x3ba)][_0x476a9e(0x3dc)]]:_0x476a9e(0x127),[_0x590316[_0x476a9e(0x3ba)][_0x476a9e(0x220)]]:_0x476a9e(0x2f5)},_0xbfbbbd=class extends _0x99589[_0x476a9e(0x135)]{get[_0x476a9e(0x38b)](){const _0x392a04=_0x476a9e;return this[_0x392a04(0x337)]['getValue']();}constructor(_0x10d65e,_0x44f458,_0x6405c1,_0xe8c1fe,_0x20d46a,_0x29ab46,_0x226102,_0x580166){const _0x5a6537=_0x476a9e;super(),this[_0x5a6537(0x3c3)]=_0x10d65e,this['_logService']=_0x6405c1,this[_0x5a6537(0x249)]=_0xe8c1fe,this[_0x5a6537(0x1f6)]=_0x20d46a,this[_0x5a6537(0x23f)]=_0x29ab46,this[_0x5a6537(0x1b0)]=_0x226102,this[_0x5a6537(0x318)]=_0x580166,_0x222df1(this,_0x5a6537(0x337),new _0x3666d5[(_0x5a6537(0x2ab))](0x0)),_0x222df1(this,'sessionStatus$',this['_sessionStatus$'][_0x5a6537(0x405)]()),_0x222df1(this,_0x5a6537(0x278),new _0x3666d5[(_0x5a6537(0x2db))]()),_0x222df1(this,_0x5a6537(0x309),this[_0x5a6537(0x278)][_0x5a6537(0x405)]()),_0x222df1(this,'_socket',void 0x0),_0x222df1(this,'_socketMessageSubscription',void 0x0),_0x222df1(this,_0x5a6537(0x1d4),void 0x0),_0x222df1(this,_0x5a6537(0x189),!0x1),_0x222df1(this,_0x5a6537(0x33f),null),this['_shouldReportTelemetry']=!!this[_0x5a6537(0x318)],_0x44f458['pipe']((0x0,_0x3666d5[_0x5a6537(0x327)])(this['dispose$']))[_0x5a6537(0x36e)](_0xd33f9f=>{const _0x2a6d24=_0x5a6537;if(_0xd33f9f!==void 0x0){if(this[_0x2a6d24(0x285)]=_0xd33f9f,_0xd33f9f)this[_0x2a6d24(0x361)](_0xd33f9f),this[_0x2a6d24(0x1b5)]=_0xd33f9f[_0x2a6d24(0x24c)]['subscribe'](_0x1a1556=>{const _0x44fcae=_0x2a6d24;_0x1a1556[_0x44fcae(0x1c5)]===this[_0x44fcae(0x3c3)]&&this['_onCombEvent'](_0x1a1556);});else{var _0xd981ae;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x2a6d24(0x337)][_0x2a6d24(0x279)](0x2),(_0xd981ae=this[_0x2a6d24(0x1b5)])==null||_0xd981ae[_0x2a6d24(0x387)](),this[_0x2a6d24(0x1b5)]=null;}}});}[_0x476a9e(0x14a)](){const _0x30324e=_0x476a9e;var _0x166154,_0x39eb2a;return(_0x166154=(_0x39eb2a=this[_0x30324e(0x285)])==null?void 0x0:_0x39eb2a['memberID'])==null?null:_0x166154;}['dispose'](){const _0x545088=_0x476a9e;super['dispose'](),this[_0x545088(0x1c1)](),this[_0x545088(0x412)]['next'](),this['dispose$'][_0x545088(0x372)]();}[_0x476a9e(0x1c1)](){const _0x10ebf7=_0x476a9e;var _0x19e59b,_0x35dd8f;this[_0x10ebf7(0x146)](),(_0x19e59b=this[_0x10ebf7(0x285)])==null||_0x19e59b[_0x10ebf7(0x2ba)]({'cmd':_0x590316[_0x10ebf7(0x36d)]['LEAVE'],'data':{'roomID':this[_0x10ebf7(0x3c3)]}}),(_0x35dd8f=this[_0x10ebf7(0x285)])==null||_0x35dd8f[_0x10ebf7(0x1c1)](),this[_0x10ebf7(0x278)][_0x10ebf7(0x372)](),this[_0x10ebf7(0x337)][_0x10ebf7(0x372)]();}[_0x476a9e(0x2b3)](_0xb6656d){const _0x3afa4c=_0x476a9e;_0xb6656d['cmd']===_0x590316['CombCmd'][_0x3afa4c(0x386)]?this[_0x3afa4c(0x228)](_0xb6656d):_0xb6656d[_0x3afa4c(0x343)]===_0x590316[_0x3afa4c(0x36d)][_0x3afa4c(0x2c5)]&&this['_onRecvEvent'](_0xb6656d);}[_0x476a9e(0x361)](_0x107e0d){const _0x5204ea=_0x476a9e;this[_0x5204ea(0x337)]['next'](0x1),_0x107e0d[_0x5204ea(0x2ba)]({'cmd':_0x590316[_0x5204ea(0x36d)][_0x5204ea(0x386)],'routeKey':this[_0x5204ea(0x3c3)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5204ea(0x3c3)]}]}});}['_onJoinRoomEvent'](_0x34fe3c){const _0x10dfae=_0x476a9e;var _0x3eee01;if(_0x34fe3c[_0x10dfae(0x371)]in _0x31f792){this[_0x10dfae(0x1b0)][_0x10dfae(0x39b)]({'id':_0x10dfae(0x137),'data':_0x31f792[_0x34fe3c['code']]}),this[_0x10dfae(0x337)]['next'](0x2);return;}this[_0x10dfae(0x337)]['next'](0x3);let _0xeee271=(_0x3eee01=_0x34fe3c[_0x10dfae(0x363)][_0x10dfae(0x321)][this[_0x10dfae(0x3c3)]])==null?void 0x0:_0x3eee01[_0x10dfae(0x2c6)];_0xeee271&&_0xeee271[_0x10dfae(0x411)](_0x508575=>this[_0x10dfae(0x1f6)][_0x10dfae(0x3b3)](this[_0x10dfae(0x3c3)],_0x508575));}['_onRecvEvent'](_0x5de71e){const _0x5b3ee3=_0x476a9e;try{let _0x4357b5=_0x5de71e[_0x5b3ee3(0x363)];switch(_0x4357b5[_0x5b3ee3(0x226)]){case _0x626b63[_0x5b3ee3(0x247)][_0x5b3ee3(0x1ef)]:this[_0x5b3ee3(0x1b2)](_0x4357b5),this['_event$'][_0x5b3ee3(0x279)](_0x4357b5);break;case _0x626b63[_0x5b3ee3(0x247)]['USERS_LEAVE']:this[_0x5b3ee3(0x29e)](_0x4357b5),this[_0x5b3ee3(0x278)][_0x5b3ee3(0x279)](_0x4357b5);break;case _0x626b63[_0x5b3ee3(0x247)]['CHANGESET_ACK']:case _0x626b63[_0x5b3ee3(0x247)]['CHANGESET_SHOULD_RETRY']:this[_0x5b3ee3(0x2b2)](),this[_0x5b3ee3(0x231)](),this['_event$'][_0x5b3ee3(0x279)](_0x4357b5);break;case _0x626b63[_0x5b3ee3(0x247)][_0x5b3ee3(0x1f9)]:this[_0x5b3ee3(0x37d)]['error']('save\x20fail\x20reason\x20is\x20'+JSON[_0x5b3ee3(0x27c)](_0x4357b5)),this[_0x5b3ee3(0x278)][_0x5b3ee3(0x279)](_0x4357b5);break;case _0x626b63['CollaborationEvent'][_0x5b3ee3(0x2ca)]:this[_0x5b3ee3(0x23f)][_0x5b3ee3(0x38a)](_0x4357b5['data']),this[_0x5b3ee3(0x278)][_0x5b3ee3(0x279)](_0x4357b5);break;default:this[_0x5b3ee3(0x278)]['next'](_0x4357b5);}}catch(_0x1a2721){this[_0x5b3ee3(0x37d)]['error'](_0x1a2721,_0x5de71e);}}[_0x476a9e(0x1b2)](_0x2456e5){const _0x2fb1b2=_0x476a9e;this[_0x2fb1b2(0x1f6)][_0x2fb1b2(0x3b3)](this[_0x2fb1b2(0x3c3)],_0x2456e5['data']);}[_0x476a9e(0x29e)](_0x16f1b3){const _0x4c3999=_0x476a9e;this[_0x4c3999(0x1f6)][_0x4c3999(0x1e1)](this['_unitID'],_0x16f1b3[_0x4c3999(0x363)][_0x4c3999(0x3d1)]);}async[_0x476a9e(0x2ba)](_0x69185c,_0x61716){const _0x3a93ac=_0x476a9e;if(this[_0x3a93ac(0x38b)]!==0x3||!this[_0x3a93ac(0x285)])throw Error(_0x3a93ac(0x21b));try{_0x69185c['eventID']===_0x626b63[_0x3a93ac(0x247)]['SUBMIT_CHANGESET']&&(this[_0x3a93ac(0x3be)](),this[_0x3a93ac(0x30d)](_0x69185c)),this[_0x3a93ac(0x285)][_0x3a93ac(0x2ba)]({'cmd':_0x590316[_0x3a93ac(0x36d)][_0x3a93ac(0x16f)],'routeKey':_0x61716,'routeType':'','data':_0x69185c});}catch(_0x3d7588){this[_0x3a93ac(0x37d)][_0x3a93ac(0x1d5)](_0x3d7588);}}[_0x476a9e(0x3be)](){const _0x3fb411=_0x476a9e;var _0x5e5d48;this[_0x3fb411(0x1d4)]=setTimeout(()=>{const _0x8a975a=_0x3fb411;this[_0x8a975a(0x1d4)]=null,this[_0x8a975a(0x1b0)][_0x8a975a(0x39b)]({'id':_0x8a975a(0x1e3)});},(_0x5e5d48=this[_0x3fb411(0x249)][_0x3fb411(0x3b0)]('HEARTBEAT_TIMEOUT'))==null?_0x403e9b:_0x5e5d48);}['_clearCollaborationTimeoutTimer'](){const _0x1cc995=_0x476a9e;this[_0x1cc995(0x1d4)]&&(clearTimeout(this[_0x1cc995(0x1d4)]),this[_0x1cc995(0x1d4)]=null);}[_0x476a9e(0x30d)](_0x3eb686){const _0x1aafb9=_0x476a9e;if(!this[_0x1aafb9(0x189)])return;let {data:_0x344c7a}=_0x3eb686,{unitID:_0x36a797,changeset:_0x153e41}=_0x344c7a,{mutations:_0xd82355,type:_0x212d03}=_0x153e41;this['_telemetryInfo']={'unitId':_0x36a797,'type':_0x212d03,'startTime':performance[_0x1aafb9(0x237)](),'stopTime':0x0,'duration':0x0,'size':_0x287927(_0xd82355)};}[_0x476a9e(0x2b2)](){const _0x26cc67=_0x476a9e;if(this[_0x26cc67(0x189)]){if(!this[_0x26cc67(0x33f)]){this[_0x26cc67(0x37d)][_0x26cc67(0x1d5)](_0x26cc67(0x312),_0x26cc67(0x14d));return;}this[_0x26cc67(0x33f)][_0x26cc67(0x225)]=performance['now'](),this[_0x26cc67(0x33f)][_0x26cc67(0x407)]=this['_telemetryInfo'][_0x26cc67(0x225)]-this[_0x26cc67(0x33f)][_0x26cc67(0x27a)],this[_0x26cc67(0x318)]['capture'](_0x26cc67(0x307),this[_0x26cc67(0x33f)]),this[_0x26cc67(0x33f)]=null;}}[_0x476a9e(0x146)](){this['_telemetryInfo']=null;}};_0xbfbbbd=_0x10b7c9([_0x191f42(0x2,_0x99589[_0x476a9e(0x1e0)]),_0x191f42(0x3,_0x99589[_0x476a9e(0x164)]),_0x191f42(0x4,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x5cbafb)),_0x191f42(0x5,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x371f43)),_0x191f42(0x6,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x4cf82f)),_0x191f42(0x7,(0x0,_0x99589[_0x476a9e(0x1a3)])(_0x51be73['ITelemetryService']))],_0xbfbbbd);let _0xb8e6a3=(0x0,_0x99589[_0x476a9e(0x24d)])(_0x476a9e(0x171));function _0x59fc71(_0x152c80){const _0x55a78d=_0x476a9e;return _0x55a78d(0x324)+_0x152c80;}function _0x5a0669(_0x3390a0){const _0x2aaf68=_0x476a9e;let {unitID:_0x4de69f,mutations:_0x34eebc}=_0x3390a0;return{'unitId':_0x4de69f,'subUnitId':_0x34eebc[_0x2aaf68(0x1ff)]>0x0?_0x34eebc[0x0][_0x2aaf68(0x2a4)][_0x2aaf68(0x2fe)]:null};}let _0x4a849f=class{constructor(_0x341910,_0xaeb989,_0x4228c5){const _0x45f373=_0x476a9e;this[_0x45f373(0x252)]=_0x341910,this[_0x45f373(0x355)]=_0xaeb989,this[_0x45f373(0x293)]=_0x4228c5;}[_0x476a9e(0x360)](_0x521907){const _0x446220=_0x476a9e;var _0x5b2d0e,_0x451370;let _0x1800c8=this[_0x446220(0x252)]['get'](_0x3591b7['SheetsSelectionsService']),{unitId:_0x7f251a,subUnitId:_0x1aab34}=_0x5a0669(_0x521907),_0x1f23d2=_0x1800c8==null?void 0x0:_0x1800c8[_0x446220(0x3c1)](_0x7f251a)[_0x446220(0x193)](),_0xe64e67=(_0x5b2d0e=this[_0x446220(0x293)][_0x446220(0x195)](_0x7f251a))==null||(_0x5b2d0e=_0x5b2d0e[_0x446220(0x200)]())==null?void 0x0:_0x5b2d0e['getSheetId']();if(_0x1f23d2['length']===0x0||!_0x7f251a||!_0x1aab34)return;let _0x2c239d=[{'id':_0x3591b7[_0x446220(0x40c)]['id'],'params':{'unitId':_0x7f251a,'subUnitId':_0xe64e67,'selections':_0x99589['Tools'][_0x446220(0x3ec)](_0x1f23d2)}}],_0x2e42e4=this[_0x446220(0x355)][_0x446220(0x188)](_0x521907,_0x2c239d);if(!(0x0,_0x626b63[_0x446220(0x16a)])(_0x2e42e4))throw _0x2e42e4[_0x446220(0x1d5)];let _0x1198d3=(_0x451370=_0x2e42e4[_0x446220(0x3df)][0x0])==null||(_0x451370=_0x451370[_0x446220(0x2a4)])==null?void 0x0:_0x451370[_0x446220(0x419)];if(Array[_0x446220(0x1cf)](_0x1198d3)&&_0x1198d3['length']){if(_0x1198d3[_0x446220(0x1ff)]===_0x2c239d[0x0]['params'][_0x446220(0x419)][_0x446220(0x1ff)]&&_0x1198d3[_0x446220(0x29a)]((_0xaf07d7,_0x3d72e0)=>_0x99589[_0x446220(0x1af)][_0x446220(0x183)](_0xaf07d7[_0x446220(0x20d)],_0x2c239d[0x0][_0x446220(0x2a4)][_0x446220(0x419)][_0x3d72e0][_0x446220(0x20d)])))return;this[_0x446220(0x252)][_0x446220(0x2ee)](_0x99589[_0x446220(0x300)])[_0x446220(0x196)](_0x3591b7[_0x446220(0x40c)]['id'],{'unitId':_0x7f251a,'subUnitId':_0xe64e67,'selections':_0x1198d3});}}};_0x4a849f=_0x10b7c9([_0x191f42(0x0,(0x0,_0x99589['Inject'])(_0x99589[_0x476a9e(0x239)])),_0x191f42(0x1,_0x626b63[_0x476a9e(0x275)]),_0x191f42(0x2,_0x99589[_0x476a9e(0x16c)])],_0x4a849f);let _0x6f676a=(0x0,_0x99589[_0x476a9e(0x24d)])('univer-pro.collaboration-client.single-active-unit-service'),_0x4b0c97=function(_0xf97e7a){const _0x938e6d=_0x476a9e;return _0xf97e7a[_0xf97e7a['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x938e6d(0x3d3),_0xf97e7a[_0xf97e7a[_0x938e6d(0x335)]=0x1]=_0x938e6d(0x335),_0xf97e7a;}({});function _0x505482(_0x3f664a){const _0x45a01b=_0x476a9e;var _0x3b80d2;return!!((_0x3b80d2=_0x3f664a[_0x45a01b(0x2a4)])!=null&&_0x3b80d2[_0x45a01b(0x31c)]);}let _0x130a84=new Set([_0x3591b7[_0x476a9e(0x440)]['id']]),_0xe843f7=new Set([_0x4b428b[_0x476a9e(0x19e)]['id'],_0x4b428b[_0x476a9e(0x377)]['id'],_0x4b428b['MoveSlidePageMutation']['id'],_0x4b428b[_0x476a9e(0x160)]['id']]);function _0x376dc7(_0x56c1e8,_0x5c64eb=_0x130a84){const _0x4ef18a=_0x476a9e;let _0x543e20=[];for(let _0x144bac of _0x56c1e8){if(_0x5c64eb['has'](_0x144bac['id'])){if(_0x543e20['length']>0x0)break;_0x543e20['push'](_0x144bac);break;}if(_0x505482(_0x144bac)){if(_0x543e20[_0x4ef18a(0x1ff)]>0x0)break;_0x543e20[_0x4ef18a(0x29b)](_0x144bac);break;}_0x543e20[_0x4ef18a(0x29b)](_0x144bac);}return _0x543e20;}function _0x449049(_0x4ab9f7,_0x3890dc,_0x4eaf68,_0x357425,_0x27184d){const _0x956ee5=_0x476a9e;var _0x2936d8,_0x34344a,_0x1f2477,_0x5d73ba;let _0x252e4c=_0x376dc7(_0x4ab9f7),_0x22bf4c=(_0x2936d8=(_0x34344a=_0x27184d[_0x956ee5(0x378)]())==null?void 0x0:_0x34344a[_0x956ee5(0x208)])==null?_0x956ee5(0x402):_0x2936d8,_0x33371e=(_0x1f2477=(_0x5d73ba=_0x27184d[_0x956ee5(0x378)]())==null?void 0x0:_0x5d73ba['memberID'])==null?_0x956ee5(0x402):_0x1f2477;return{'changeset':{'unitID':_0x3890dc,'type':(0x0,_0x626b63['mapDocumentTypeToUniverInstanceType'])(_0x4eaf68[_0x956ee5(0x325)](_0x3890dc)),'baseRev':_0x357425['getCurrentRevOfUnit'](_0x3890dc),'revision':0x0,'userID':_0x22bf4c,'memberID':_0x33371e,'mutations':_0x252e4c},'pendingMutations':_0x4ab9f7[_0x956ee5(0x21c)](_0x252e4c['length'])};}let _0x24bc3f=_0x449049;function _0x4c734c(_0x368d3d,_0x25f5d0,_0x53bbfe,_0x140dd4,_0x2f930d){return _0x449049(_0x368d3d,_0x25f5d0,_0x53bbfe,_0x140dd4,_0x2f930d);}function _0x2b8ce7(_0x1d848c,_0x397f52,_0x5af5b0,_0x20620b,_0x1cb7a9){const _0x553c8a=_0x476a9e;var _0x53ea13,_0x17c65e,_0x1253f9,_0x397ec7;let _0x3f7c2d=_0x376dc7(_0x1d848c,_0xe843f7),_0x5348d5=(_0x53ea13=(_0x17c65e=_0x1cb7a9['getCurrentUser']())==null?void 0x0:_0x17c65e[_0x553c8a(0x208)])==null?_0x553c8a(0x402):_0x53ea13,_0x6438bc=(_0x1253f9=(_0x397ec7=_0x1cb7a9['getCurrentUser']())==null?void 0x0:_0x397ec7[_0x553c8a(0x3d1)])==null?_0x553c8a(0x402):_0x1253f9;return{'changeset':{'unitID':_0x397f52,'type':(0x0,_0x626b63['mapDocumentTypeToUniverInstanceType'])(_0x5af5b0[_0x553c8a(0x325)](_0x397f52)),'baseRev':_0x20620b[_0x553c8a(0x404)](_0x397f52),'revision':0x0,'userID':_0x5348d5,'memberID':_0x6438bc,'mutations':_0x3f7c2d},'pendingMutations':_0x1d848c['slice'](_0x3f7c2d[_0x553c8a(0x1ff)])};}function _0x599062(_0x90b307,_0x3fc2d9,_0x4f5d51,_0x57edda,_0x1bf18d){const _0x15a0cc=_0x476a9e;var _0x519d69,_0x1cd26f,_0x596966,_0x19f5e7;let _0x4fa1cf=_0x90b307[_0x15a0cc(0x182)]((_0x55aefd,_0x206e05)=>{const _0x3bc0b8=_0x15a0cc;let _0x462e57=_0x55aefd[_0x55aefd[_0x3bc0b8(0x1ff)]-0x1],{id:_0x3c7d7c}=_0x462e57==null?{}:_0x462e57,{id:_0x177912,type:_0x26e45c}=_0x206e05,_0x342f1f=_0x206e05[_0x3bc0b8(0x2a4)];if(_0x3c7d7c&&_0x3c7d7c!==_0x177912)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x3c7d7c+_0x3bc0b8(0x139)+_0x177912+'.');if(!_0x462e57)return[{'id':_0x177912,'type':_0x26e45c,'params':{'unitId':_0x342f1f['unitId'],'textRanges':_0x342f1f['textRanges'],'actions':_0x342f1f[_0x3bc0b8(0x409)]}}];let _0x581af9=_0x462e57[_0x3bc0b8(0x2a4)];return _0x18d939(_0x581af9[_0x3bc0b8(0x409)],_0x342f1f[_0x3bc0b8(0x409)])?[..._0x55aefd[_0x3bc0b8(0x21c)](0x0,-0x1),{..._0x462e57,'id':_0x177912,'type':_0x26e45c,'params':{'unitId':_0x342f1f[_0x3bc0b8(0x2f3)],'textRanges':_0x342f1f[_0x3bc0b8(0x3a9)],'actions':_0x99589[_0x3bc0b8(0x3b2)][_0x3bc0b8(0x21e)](_0x581af9[_0x3bc0b8(0x409)],_0x342f1f[_0x3bc0b8(0x409)])}}]:[..._0x55aefd,{'id':_0x177912,'type':_0x26e45c,'params':{'unitId':_0x342f1f[_0x3bc0b8(0x2f3)],'textRanges':_0x342f1f[_0x3bc0b8(0x3a9)],'actions':_0x342f1f[_0x3bc0b8(0x409)]}}];},[]),_0x2bdbd4=(_0x519d69=(_0x1cd26f=_0x1bf18d[_0x15a0cc(0x378)]())==null?void 0x0:_0x1cd26f[_0x15a0cc(0x208)])==null?_0x15a0cc(0x402):_0x519d69,_0x58b726=(_0x596966=(_0x19f5e7=_0x1bf18d['getCurrentUser']())==null?void 0x0:_0x19f5e7['memberID'])==null?'unknown':_0x596966;return{'changeset':{'unitID':_0x3fc2d9,'type':(0x0,_0x626b63[_0x15a0cc(0x22f)])(_0x4f5d51[_0x15a0cc(0x325)](_0x3fc2d9)),'baseRev':_0x57edda[_0x15a0cc(0x404)](_0x3fc2d9),'revision':0x0,'userID':_0x2bdbd4,'memberID':_0x58b726,'mutations':_0x4fa1cf},'pendingMutations':_0x90b307['slice'](_0x90b307[_0x15a0cc(0x1ff)])};}function _0x18d939(_0x167509,_0xdc482e){return _0x133074(_0x167509)&&_0x133074(_0xdc482e)&&!_0x41d7bb(_0x167509)&&!_0x41d7bb(_0xdc482e);}function _0x133074(_0x57b0b5){const _0x2b0fe7=_0x476a9e;return _0x442cc9(_0x57b0b5)[_0x2b0fe7(0x1ab)](_0x53cdd9=>_0x30f05d(_0x53cdd9)&&_0x53cdd9['et']===_0x2b0fe7(0x345));}function _0x41d7bb(_0x687e0f){const _0x2bdc37=_0x476a9e;return _0x442cc9(_0x687e0f)['some'](_0x3b9c9b=>Array[_0x2bdc37(0x1cf)](_0x3b9c9b)||typeof _0x3b9c9b==_0x2bdc37(0x112)||typeof _0x3b9c9b==_0x2bdc37(0x3b7));}function _0x442cc9(_0x5fc6c9){const _0x120538=_0x476a9e;if(!Array['isArray'](_0x5fc6c9))return[];let _0x373cdb=_0x5fc6c9['includes'](_0x120538(0x256))?_0x5fc6c9:_0x5fc6c9['find'](_0x5629ae=>Array[_0x120538(0x1cf)](_0x5629ae)&&_0x5629ae[_0x120538(0x1d6)](_0x120538(0x256)));if(!Array[_0x120538(0x1cf)](_0x373cdb))return[];let _0x53e1d9=_0x373cdb[_0x120538(0x11a)](_0x120538(0x256));return _0x53e1d9===-0x1?[]:_0x373cdb[_0x120538(0x21c)](_0x53e1d9+0x1);}function _0x30f05d(_0x503246){const _0x44fe78=_0x476a9e;return typeof _0x503246==_0x44fe78(0x3b9)&&!!_0x503246&&!Array[_0x44fe78(0x1cf)](_0x503246);}function _0x438203(_0x4c1693,_0x27b4f5){const _0x59faef=_0x476a9e;let _0x1ab567=new _0x3666d5[(_0x59faef(0x12b))](0x1);return setTimeout(()=>_0x1ab567[_0x59faef(0x279)](_0x27b4f5),_0x4c1693),_0x1ab567['asObservable']()['pipe']((0x0,_0x3666d5[_0x59faef(0x3ef)])(0x1));}var _0x2a9ee3,_0x59b8ee,_0xb6c55a;let _0x3e553a=function(_0x371c05){const _0x138636=_0x476a9e;return _0x371c05['NOT_COLLAB']=_0x138636(0x13a),_0x371c05[_0x138636(0x3b8)]='synced',_0x371c05[_0x138636(0x3d6)]=_0x138636(0x25d),_0x371c05['AWAITING']=_0x138636(0x39f),_0x371c05[_0x138636(0x227)]=_0x138636(0x1e2),_0x371c05[_0x138636(0x2e6)]=_0x138636(0x2c0),_0x371c05[_0x138636(0x2d4)]=_0x138636(0x2d0),_0x371c05['OFFLINE']=_0x138636(0x1ae),_0x371c05;}({}),_0x3c2847=0x4e20,_0x327d7c=0x2bf20;var _0x3b2c0a=class{constructor(_0x2fbcd3,_0x5d0f49,_0x45884b,_0x2441ca,_0x3a4f40,_0x36b8a1,_0x458bbb,_0x501f12,_0x14b51b){const _0x1b1ff4=_0x476a9e;this[_0x1b1ff4(0x1b8)]=_0x2fbcd3,this[_0x1b1ff4(0x2c9)]=_0x5d0f49,this[_0x1b1ff4(0x233)]=_0x3a4f40,this[_0x1b1ff4(0x3a7)]=_0x36b8a1,this['_undoRedoService']=_0x458bbb,this[_0x1b1ff4(0x3f8)]=_0x501f12,this['_localCacheService']=_0x14b51b,_0x222df1(this,_0x1b1ff4(0x314),null),_0x222df1(this,_0x1b1ff4(0x126),[]),this[_0x1b1ff4(0x314)]=_0x45884b,this['_pendingMutations']=_0x2441ca;}[_0x476a9e(0x356)](_0x6d50ae){const _0x1b5801=_0x476a9e;let _0x3c0711=this[_0x1b5801(0x3f8)][_0x1b5801(0x404)](this[_0x1b5801(0x1b8)]);return _0x6d50ae[_0x1b5801(0x114)]>_0x3c0711+0x1?(this[_0x1b5801(0x233)]['onMissingChangesets']({'from':_0x3c0711,'to':_0x6d50ae['revision']-0x1}),!0x0):!0x1;}[_0x476a9e(0x2ea)](_0x270203){const _0x22849c=_0x476a9e;this[_0x22849c(0x2a6)][_0x22849c(0x27b)](this[_0x22849c(0x1b8)],_0x270203);}[_0x476a9e(0x3e6)](_0x406c32){const _0x2463e2=_0x476a9e;var _0x5c59b9,_0x33011e;(_0x5c59b9=(_0x33011e=this[_0x2463e2(0x233)])[_0x2463e2(0x284)])==null||_0x5c59b9[_0x2463e2(0x11d)](_0x33011e,_0x406c32);}[_0x476a9e(0x3af)](_0x485584){var _0x5e2891,_0x126bd7;return(_0x5e2891=(_0x126bd7=this['_handler'])['onTransformIME'])==null?void 0x0:_0x5e2891['call'](_0x126bd7,_0x485584);}['_transformStateCache'](_0x20cf89){const _0x4593d5=_0x476a9e;var _0x2184a0,_0x57e9f0;return(_0x2184a0=(_0x57e9f0=this['_handler'])[_0x4593d5(0x1a9)])==null?void 0x0:_0x2184a0['call'](_0x57e9f0,_0x20cf89);}['_transformRemoteChangesetByIMECache'](_0x1bb1ef){const _0x21b057=_0x476a9e;var _0x7d5072,_0x1de32e,_0x4ecdb0;return(_0x7d5072=(_0x1de32e=(_0x4ecdb0=this[_0x21b057(0x233)])[_0x21b057(0x3e2)])==null?void 0x0:_0x1de32e[_0x21b057(0x11d)](_0x4ecdb0,_0x1bb1ef))==null?_0x1bb1ef:_0x7d5072;}[_0x476a9e(0x122)](_0x1ca532){const _0x1f895b=_0x476a9e;var _0x334318,_0x3fcfd0,_0x4c8b62;return(_0x334318=(_0x3fcfd0=(_0x4c8b62=this[_0x1f895b(0x233)])[_0x1f895b(0x262)])==null?void 0x0:_0x3fcfd0[_0x1f895b(0x11d)](_0x4c8b62,_0x1ca532))==null?_0x1ca532:_0x334318;}[_0x476a9e(0x2c3)](_0x58ba0e){const _0x814304=_0x476a9e;if(this['type']===_0x99589[_0x814304(0x3ce)]['UNIVER_DOC']){let {unitID:_0x2d2832,mutations:_0x1705a2,memberID:_0x556261}=_0x58ba0e,_0x12a6cf=_0x1705a2[_0x814304(0x1ff)]>0x0?_0x1705a2[0x0]['params'][_0x814304(0x3a9)]:[];if(Array[_0x814304(0x1cf)](_0x12a6cf)&&_0x12a6cf['length']>0x0){var _0x17520a,_0x17fa08;(_0x17520a=(_0x17fa08=this[_0x814304(0x233)])[_0x814304(0x271)])==null||_0x17520a[_0x814304(0x11d)](_0x17fa08,{'unitID':_0x2d2832,'memberID':_0x556261,'textRanges':_0x12a6cf});}}}[_0x476a9e(0x24a)](){const _0x29aec5=_0x476a9e;var _0x3d7de2;(_0x3d7de2=this[_0x29aec5(0x23c)])==null||_0x3d7de2['updateOfflineData'](this[_0x29aec5(0x1b8)],this[_0x29aec5(0x2c9)],this[_0x29aec5(0x314)],this[_0x29aec5(0x126)]);}['_getCurrentRevision'](){const _0x5817bb=_0x476a9e;return this[_0x5817bb(0x3f8)]['getCurrentRevOfUnit'](this[_0x5817bb(0x1b8)]);}['_incrementRevisionNumber'](){const _0x2001d8=_0x476a9e;this['_revisionService']['incrementRevOfUnit'](this[_0x2001d8(0x1b8)]);}[_0x476a9e(0x36a)](_0x1c44ac){const _0x2981c4=_0x476a9e;let _0x13b8de=this[_0x2981c4(0x14b)](_0x1c44ac);_0x13b8de=this[_0x2981c4(0x122)](_0x13b8de);let _0x2dbd6d=(0x0,_0x99589['sequenceExecute'])(_0x13b8de[_0x2981c4(0x15e)],this['_commandService'],{'fromCollab':!0x0});if(!_0x2dbd6d[_0x2981c4(0x1be)]){var _0x27d123;throw _0x2dbd6d[_0x2981c4(0x1d5)]instanceof Error?_0x2dbd6d[_0x2981c4(0x1d5)]:Error((_0x27d123=_0x2dbd6d['error'])==null?_0x2981c4(0x3b5):_0x27d123);}this['_transformIMECache'](_0x13b8de),this[_0x2981c4(0x1a1)](_0x13b8de),this[_0x2981c4(0x2ea)](_0x1c44ac),this[_0x2981c4(0x3e6)](_0x13b8de),this[_0x2981c4(0x2c3)](_0x13b8de),this[_0x2981c4(0x190)]();}};let _0x58d04a=class extends _0x3b2c0a{constructor(_0x2ed912,_0x37bc31,_0x4eea31,_0x5e7203,_0xa44191,_0x5eef5e,_0x41334f,_0x47d4d2,_0x47b787,_0x9c5e8c){const _0x2f3ced=_0x476a9e;super(_0x2ed912,_0x37bc31,null,[],_0x4eea31,_0x41334f,_0x5eef5e,_0x5e7203,_0x9c5e8c),this[_0x2f3ced(0x252)]=_0xa44191,this[_0x2f3ced(0x37d)]=_0x47d4d2,this[_0x2f3ced(0x355)]=_0x47b787,this[_0x2f3ced(0x292)]=_0x9c5e8c,_0x222df1(this,'status',_0x2f3ced(0x17d));}[_0x476a9e(0x1c8)](_0x4b5eea){const _0x5c20d2=_0x476a9e;let _0x1f386e=this[_0x5c20d2(0x252)][_0x5c20d2(0x1ce)](_0xe238f7,this[_0x5c20d2(0x1b8)],this[_0x5c20d2(0x2c9)],[_0x4b5eea],this[_0x5c20d2(0x233)]);return _0x1f386e['_schedule'](),_0x1f386e['_updateLocalCache'](),_0x1f386e;}[_0x476a9e(0x421)](_0x14fec2){const _0xbed17e=_0x476a9e;if(this[_0xbed17e(0x356)](_0x14fec2))return this['_injector'][_0xbed17e(0x1ce)](_0xe81f65,this[_0xbed17e(0x1b8)],this[_0xbed17e(0x2c9)],null,[],null,[_0x14fec2],this['_handler']);try{let _0x4c0581=this[_0xbed17e(0x355)][_0xbed17e(0x188)](_0x14fec2,[_0x626b63[_0xbed17e(0x43f)]]);if((0x0,_0x626b63['isTransformMutationsWithChangesetSuccess'])(_0x4c0581)){let {c1Prime:_0x5d088c}=_0x4c0581;return this[_0xbed17e(0x36a)](_0x5d088c),this;}throw _0x4c0581[_0xbed17e(0x1d5)];}catch(_0x1e0c3a){return this[_0xbed17e(0x37d)][_0xbed17e(0x1d5)](_0x1e0c3a),this[_0xbed17e(0x156)](!0x1);}}[_0x476a9e(0x156)](_0x3fbffc){const _0x2d951b=_0x476a9e;return this[_0x2d951b(0x252)]['createInstance'](_0x411ff0,this[_0x2d951b(0x1b8)],this['type'],null,[],this['_handler'],_0x3fbffc);}[_0x476a9e(0x253)](_0x1d11b6){const _0x510400=_0x476a9e;if(_0x1d11b6[_0x510400(0x114)]<=this[_0x510400(0x41e)]())return this;throw Error(_0x510400(0x42e));}[_0x476a9e(0x2cf)](){throw Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x49b307=_0x476a9e;return this[_0x49b307(0x252)][_0x49b307(0x1ce)](_0x37212d,this[_0x49b307(0x1b8)],this[_0x49b307(0x2c9)],null,[],this[_0x49b307(0x233)]);}[_0x476a9e(0x131)](){return this;}[_0x476a9e(0x367)](){const _0x30d966=_0x476a9e;throw Error(_0x30d966(0x435));}[_0x476a9e(0x401)](){const _0x2b9f06=_0x476a9e;let _0x15e276=this[_0x2b9f06(0x3f8)][_0x2b9f06(0x404)](this['unitID']);return this[_0x2b9f06(0x233)][_0x2b9f06(0x236)]({'from':_0x15e276,'to':0x0}),this['_injector']['createInstance'](_0xe81f65,this[_0x2b9f06(0x1b8)],this[_0x2b9f06(0x2c9)],null,[],null,[],this['_handler']);}};_0x58d04a=_0x10b7c9([_0x191f42(0x3,(0x0,_0x99589['Inject'])(_0x626b63['RevisionService'])),_0x191f42(0x4,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589[_0x476a9e(0x239)])),_0x191f42(0x5,_0x99589['IUndoRedoService']),_0x191f42(0x6,_0x99589['ICommandService']),_0x191f42(0x7,_0x99589['ILogService']),_0x191f42(0x8,_0x626b63[_0x476a9e(0x275)]),_0x191f42(0x9,(0x0,_0x99589[_0x476a9e(0x1a3)])(_0xb8e6a3))],_0x58d04a);let _0xe238f7=_0x2a9ee3=class extends _0x3b2c0a{constructor(_0x3eb067,_0x2e5499,_0x8f57ad,_0x5da551,_0x21c423,_0x3310c8,_0x1d7027,_0x377d9d,_0x16cd4b,_0x390024,_0x434fe9,_0x27516f,_0x21dab6,_0x1fff1b){const _0x3a4129=_0x476a9e;super(_0x3eb067,_0x2e5499,null,_0x8f57ad,_0x5da551,_0x16cd4b,_0x21dab6,_0x3310c8,_0x1fff1b),this[_0x3a4129(0x252)]=_0x21c423,this[_0x3a4129(0x1f6)]=_0x1d7027,this['_logService']=_0x377d9d,this[_0x3a4129(0x249)]=_0x390024,this[_0x3a4129(0x355)]=_0x434fe9,this[_0x3a4129(0x277)]=_0x27516f,_0x222df1(this,_0x3a4129(0x268),_0x3a4129(0x25d)),_0x222df1(this,_0x3a4129(0x32a),null),_0x222df1(this,'_sendingTimer',null);}[_0x476a9e(0x1c8)](_0x2b71c9){const _0x2f891f=_0x476a9e;return this[_0x2f891f(0x126)][_0x2f891f(0x29b)](_0x2b71c9),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x43da62){const _0x334e72=_0x476a9e;if(this[_0x334e72(0x356)](_0x43da62))return this[_0x334e72(0x241)](),this[_0x334e72(0x252)][_0x334e72(0x1ce)](_0xe81f65,this[_0x334e72(0x1b8)],this[_0x334e72(0x2c9)],null,this[_0x334e72(0x126)],null,[_0x43da62],this[_0x334e72(0x233)]);try{let _0x297ab6=this[_0x334e72(0x355)][_0x334e72(0x188)](_0x43da62,this[_0x334e72(0x126)]);if((0x0,_0x626b63[_0x334e72(0x16a)])(_0x297ab6)){let {c1Prime:_0x56fcf7,m2Prime:_0x465497}=_0x297ab6;this['_executeRemoteChangeset'](_0x56fcf7);let _0x26c779=this[_0x334e72(0x252)]['createInstance'](_0x2a9ee3,this[_0x334e72(0x1b8)],this['type'],_0x465497,this[_0x334e72(0x233)]);this['_clearScheduledTask']();let _0x35d6f2=new Date()[_0x334e72(0x186)](),_0x367c71=this['_scheduleCompleteTimestamp']?Math[_0x334e72(0x142)](this[_0x334e72(0x32a)]-_0x35d6f2,0x0):this['_getSendChangesetTimeout']();return _0x26c779[_0x334e72(0x150)](_0x367c71),_0x26c779;}throw _0x297ab6[_0x334e72(0x1d5)];}catch(_0x342eff){return this[_0x334e72(0x37d)][_0x334e72(0x1d5)](_0x342eff),this[_0x334e72(0x156)](!0x1);}}[_0x476a9e(0x253)](_0x2cf3b2){const _0x1d3c57=_0x476a9e;if(_0x2cf3b2['revision']<=this[_0x1d3c57(0x41e)]())return this;throw Error(_0x1d3c57(0x113));}[_0x476a9e(0x2cf)](){throw Error('[PendingState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x476a9e(0x272)](){const _0x4dd76c=_0x476a9e;return this[_0x4dd76c(0x241)](),this['_injector'][_0x4dd76c(0x1ce)](_0x37212d,this['unitID'],this['type'],null,this['_pendingMutations'],this[_0x4dd76c(0x233)]);}['toggleOnline'](){return this;}[_0x476a9e(0x150)](_0x17346e){const _0x145b20=_0x476a9e;let _0x4b13ea=_0x17346e==null?this[_0x145b20(0x1fe)]():_0x17346e;this['_scheduleCompleteTimestamp']=new Date()[_0x145b20(0x186)]()+_0x4b13ea,this['_sendingTimer']=setTimeout(()=>{const _0x368126=_0x145b20;this[_0x368126(0x241)]();let _0x4a5119=null;switch(this[_0x368126(0x2c9)]){case _0x99589[_0x368126(0x3ce)][_0x368126(0x3c2)]:_0x4a5119=_0x24bc3f(this[_0x368126(0x126)],this[_0x368126(0x1b8)],this[_0x368126(0x277)],this[_0x368126(0x3f8)],this[_0x368126(0x1f6)]);break;case _0x99589[_0x368126(0x3ce)]['UNIVER_DOC']:_0x4a5119=this[_0x368126(0x126)][_0x368126(0x29a)](_0x13af2b=>_0x13af2b['id']===_0x51f5dd['RichTextEditingMutation']['id'])?_0x599062(this[_0x368126(0x126)],this[_0x368126(0x1b8)],this[_0x368126(0x277)],this[_0x368126(0x3f8)],this[_0x368126(0x1f6)]):_0x24bc3f(this[_0x368126(0x126)],this[_0x368126(0x1b8)],this[_0x368126(0x277)],this[_0x368126(0x3f8)],this[_0x368126(0x1f6)]);break;case _0x99589[_0x368126(0x3ce)]['UNIVER_SLIDE']:_0x4a5119=_0x2b8ce7(this[_0x368126(0x126)],this['unitID'],this[_0x368126(0x277)],this[_0x368126(0x3f8)],this[_0x368126(0x1f6)]);break;case _0x99589[_0x368126(0x3ce)][_0x368126(0x3c0)]:_0x4a5119=_0x4c734c(this[_0x368126(0x126)],this[_0x368126(0x1b8)],this[_0x368126(0x277)],this[_0x368126(0x3f8)],this[_0x368126(0x1f6)]);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+'\x20in\x20_schedule.');}let {changeset:_0x26296b,pendingMutations:_0x4d5143}=_0x4a5119;this[_0x368126(0x233)]['onSendChangeset'](_0x26296b);let _0x1a9d0e=_0x4d5143[_0x368126(0x1ff)]?this[_0x368126(0x252)][_0x368126(0x1ce)](_0x52215c,this[_0x368126(0x1b8)],this[_0x368126(0x2c9)],_0x26296b,_0x4d5143,this[_0x368126(0x233)],void 0x0):this[_0x368126(0x252)][_0x368126(0x1ce)](_0x5c37e0,this[_0x368126(0x1b8)],this[_0x368126(0x2c9)],_0x26296b,this[_0x368126(0x233)]);_0x1a9d0e['_updateLocalCache'](),this[_0x368126(0x233)][_0x368126(0x264)](this,_0x1a9d0e);},_0x4b13ea);}[_0x476a9e(0x1fe)](){const _0x187684=_0x476a9e;var _0x2bdb5f;let _0x32ae2f=this[_0x187684(0x249)]['getConfig'](_0x355bce);return(_0x2bdb5f=_0x32ae2f==null?void 0x0:_0x32ae2f[_0x187684(0x238)])==null?0x7d0:_0x2bdb5f;}[_0x476a9e(0x367)](){const _0x5561cf=_0x476a9e;throw Error(_0x5561cf(0x116));}[_0x476a9e(0x241)](){const _0x27eb46=_0x476a9e;this[_0x27eb46(0x32c)]!=null&&(clearTimeout(this[_0x27eb46(0x32c)]),this[_0x27eb46(0x32c)]=null);}['_onConflict'](_0x499d1b){const _0x298046=_0x476a9e;return this['_clearScheduledTask'](),this[_0x298046(0x252)][_0x298046(0x1ce)](_0x411ff0,this['unitID'],this['type'],null,this[_0x298046(0x126)],this['_handler'],_0x499d1b);}};_0xe238f7=_0x2a9ee3=_0x10b7c9([_0x191f42(0x4,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589['Injector'])),_0x191f42(0x5,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x626b63[_0x476a9e(0x145)])),_0x191f42(0x6,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x5cbafb)),_0x191f42(0x7,_0x99589[_0x476a9e(0x1e0)]),_0x191f42(0x8,_0x99589[_0x476a9e(0x300)]),_0x191f42(0x9,_0x99589[_0x476a9e(0x164)]),_0x191f42(0xa,_0x626b63[_0x476a9e(0x275)]),_0x191f42(0xb,_0x99589['IUniverInstanceService']),_0x191f42(0xc,_0x99589['IUndoRedoService']),_0x191f42(0xd,(0x0,_0x99589[_0x476a9e(0x1a3)])(_0xb8e6a3))],_0xe238f7);let _0x5c37e0=_0x59b8ee=class extends _0x3b2c0a{constructor(_0x4c76c7,_0x1fd1ce,_0x89d9cf,_0x27676c,_0x9e49ed,_0x9b2410,_0x520c6c,_0x2b88ba,_0x2e01e9,_0xb0a37b,_0x42ae8b){const _0x4cd341=_0x476a9e;super(_0x4c76c7,_0x1fd1ce,_0x89d9cf,[],_0x27676c,_0x520c6c,_0xb0a37b,_0x9b2410,_0x42ae8b),this[_0x4cd341(0x252)]=_0x9e49ed,this[_0x4cd341(0x37d)]=_0x2b88ba,this[_0x4cd341(0x355)]=_0x2e01e9,_0x222df1(this,'status','awaiting'),_0x222df1(this,_0x4cd341(0x120),0x0),_0x222df1(this,_0x4cd341(0x35a),0x0),_0x222df1(this,_0x4cd341(0x322),void 0x0),_0x222df1(this,'_sender',void 0x0);}[_0x476a9e(0x1c8)](_0x2811cb){const _0x37e9c3=_0x476a9e;this['_clearScheduledTask']();let _0x272da1=this['_injector'][_0x37e9c3(0x1ce)](_0x52215c,this['unitID'],this[_0x37e9c3(0x2c9)],this[_0x37e9c3(0x314)],[_0x2811cb],this[_0x37e9c3(0x233)],this[_0x37e9c3(0x322)]);return _0x272da1['_updateLocalCache'](),_0x272da1;}[_0x476a9e(0x421)](_0x410693){const _0x4c2416=_0x476a9e;if(this[_0x4c2416(0x356)](_0x410693))return this['_clearScheduledTask'](),this['_injector']['createInstance'](_0xe81f65,this[_0x4c2416(0x1b8)],this[_0x4c2416(0x2c9)],this[_0x4c2416(0x314)],[],null,[_0x410693],this[_0x4c2416(0x233)]);try{let _0x11e892=this[_0x4c2416(0x355)][_0x4c2416(0x35c)]([_0x410693],[this[_0x4c2416(0x314)]],!0x1);if((0x0,_0x626b63['isTransformChangesetsSuccess'])(_0x11e892)){let {c1Prime:_0x390d6e,c2Prime:_0x5daf99}=_0x11e892;this[_0x4c2416(0x36a)](_0x390d6e[0x0]),_0x5daf99[0x0]['baseRev']=this[_0x4c2416(0x41e)](),this[_0x4c2416(0x241)]();let _0x30152f=this[_0x4c2416(0x252)][_0x4c2416(0x1ce)](_0x59b8ee,this[_0x4c2416(0x1b8)],this[_0x4c2416(0x2c9)],_0x5daf99[0x0],this[_0x4c2416(0x233)]);return _0x30152f['_updateLocalCache'](),_0x30152f;}throw _0x11e892[_0x4c2416(0x1d5)];}catch(_0x389df8){return this[_0x4c2416(0x37d)][_0x4c2416(0x1d5)](_0x389df8),this[_0x4c2416(0x156)](!0x1);}}[_0x476a9e(0x253)](_0x5b274d){const _0xb2b279=_0x476a9e;this[_0xb2b279(0x241)]();let _0x22e9d9=this[_0xb2b279(0x3f8)][_0xb2b279(0x404)](this['unitID']);if(_0x5b274d[_0xb2b279(0x114)]<=_0x22e9d9)return this;if(this['_checkMissing'](_0x5b274d))return this[_0xb2b279(0x252)][_0xb2b279(0x1ce)](_0xe81f65,this[_0xb2b279(0x1b8)],this[_0xb2b279(0x2c9)],this[_0xb2b279(0x314)],[],_0x5b274d[_0xb2b279(0x114)],[],this[_0xb2b279(0x233)]);this[_0xb2b279(0x190)]();let _0x3cb542=this[_0xb2b279(0x252)]['createInstance'](_0x58d04a,this['unitID'],this[_0xb2b279(0x2c9)],this[_0xb2b279(0x233)]);return _0x3cb542[_0xb2b279(0x24a)](),_0x3cb542;}[_0x476a9e(0x2cf)](_0xe638fb){const _0x55bbcf=_0x476a9e;return this[_0x55bbcf(0x156)](!!(_0xe638fb!=null&&_0xe638fb['isPermissionRej']));}[_0x476a9e(0x381)](_0x2fce15){const _0x131f9d=_0x476a9e;return this[_0x131f9d(0x35a)]>_0x327d7c?this[_0x131f9d(0x272)]():(this['_resendTimer']=_0x438203(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x2fce15[_0x131f9d(0x254)]}),this[_0x131f9d(0x430)]=this[_0x131f9d(0x322)][_0x131f9d(0x36e)](({reqId:_0x118eaa,timeout:_0xfd8216})=>{const _0x5ccc83=_0x131f9d;this[_0x5ccc83(0x1db)](_0x118eaa,_0xfd8216);}),this);}[_0x476a9e(0x272)](){const _0x417d13=_0x476a9e;return this[_0x417d13(0x241)](),this[_0x417d13(0x252)][_0x417d13(0x1ce)](_0x37212d,this[_0x417d13(0x1b8)],this[_0x417d13(0x2c9)],this[_0x417d13(0x314)],[],this['_handler']);}['toggleOnline'](){return this;}['resend'](){const _0x36c15f=_0x476a9e;this['_handler'][_0x36c15f(0x1f1)](this[_0x36c15f(0x314)]);}[_0x476a9e(0x156)](_0x252ab4){const _0x3dbe51=_0x476a9e;return this[_0x3dbe51(0x241)](),this[_0x3dbe51(0x252)][_0x3dbe51(0x1ce)](_0x411ff0,this[_0x3dbe51(0x1b8)],this[_0x3dbe51(0x2c9)],this[_0x3dbe51(0x314)],[],this[_0x3dbe51(0x233)],_0x252ab4);}[_0x476a9e(0x1db)](_0x19252c,_0x1e8606){const _0x3af172=_0x476a9e;var _0x30acf7;_0x19252c===((_0x30acf7=this[_0x3af172(0x314)])==null?void 0x0:_0x30acf7[_0x3af172(0x254)])&&(this[_0x3af172(0x367)](),this['_resendTimeout']=_0x1e8606===0x0?0x3e8:Math[_0x3af172(0x3a6)](_0x1e8606*0x2,_0x3c2847),this[_0x3af172(0x35a)]+=this[_0x3af172(0x120)]);}[_0x476a9e(0x241)](){const _0x595c16=_0x476a9e;var _0x4e2a8f;(_0x4e2a8f=this[_0x595c16(0x430)])==null||_0x4e2a8f[_0x595c16(0x387)](),this['_resendTimeout']=0x0,this[_0x595c16(0x35a)]=0x0;}};_0x5c37e0=_0x59b8ee=_0x10b7c9([_0x191f42(0x4,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589[_0x476a9e(0x239)])),_0x191f42(0x5,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x626b63['RevisionService'])),_0x191f42(0x6,_0x99589[_0x476a9e(0x300)]),_0x191f42(0x7,_0x99589[_0x476a9e(0x1e0)]),_0x191f42(0x8,_0x626b63[_0x476a9e(0x275)]),_0x191f42(0x9,_0x99589[_0x476a9e(0x1df)]),_0x191f42(0xa,(0x0,_0x99589[_0x476a9e(0x1a3)])(_0xb8e6a3))],_0x5c37e0);let _0x52215c=_0xb6c55a=class extends _0x3b2c0a{constructor(_0x22a34f,_0x4f9b70,_0x382973,_0x123da4,_0x21b790,_0x4ae275,_0x481e77,_0x47b56d,_0x45e56e,_0x4cfd76,_0x3daa45,_0x43e037,_0x1978f9){const _0x3dcc8f=_0x476a9e;super(_0x22a34f,_0x4f9b70,_0x382973,_0x123da4,_0x21b790,_0x45e56e,_0x43e037,_0x47b56d,_0x1978f9),this['_injector']=_0x481e77,this[_0x3dcc8f(0x37d)]=_0x4cfd76,this[_0x3dcc8f(0x355)]=_0x3daa45,this['localCacheService']=_0x1978f9,_0x222df1(this,_0x3dcc8f(0x268),_0x3dcc8f(0x1e2)),_0x222df1(this,'_resendTimeout',0x0),_0x222df1(this,_0x3dcc8f(0x35a),0x0),_0x222df1(this,'_resendTimer',void 0x0),_0x222df1(this,_0x3dcc8f(0x430),void 0x0),_0x4ae275&&(this['_resendTimer']=_0x4ae275,this[_0x3dcc8f(0x430)]=this[_0x3dcc8f(0x322)][_0x3dcc8f(0x36e)](({reqId:_0x4ae668,timeout:_0x96dbc2})=>{const _0x2c6bea=_0x3dcc8f;this[_0x2c6bea(0x1db)](_0x4ae668,_0x96dbc2);}));}[_0x476a9e(0x1c8)](_0x710a00){const _0x77ba4a=_0x476a9e;return this[_0x77ba4a(0x126)][_0x77ba4a(0x29b)](_0x710a00),this;}['onRemoteChangeset'](_0x406b4e){const _0x1bb701=_0x476a9e;if(this[_0x1bb701(0x356)](_0x406b4e))return this['_clearScheduledTask'](),this[_0x1bb701(0x252)][_0x1bb701(0x1ce)](_0xe81f65,this[_0x1bb701(0x1b8)],this[_0x1bb701(0x2c9)],this[_0x1bb701(0x314)],this[_0x1bb701(0x126)],null,[_0x406b4e],this['_handler']);try{let _0x20eca8=this['_transformService']['transformChangesets']([_0x406b4e],[this['_awaitingChangeset']],!0x1);if((0x0,_0x626b63[_0x1bb701(0x18e)])(_0x20eca8)){let {c1Prime:_0x14dac1,c2Prime:_0x37cfc6}=_0x20eca8,_0x16d0c5=this[_0x1bb701(0x355)][_0x1bb701(0x188)](_0x14dac1[0x0],this['_pendingMutations']);if((0x0,_0x626b63[_0x1bb701(0x16a)])(_0x16d0c5)){let {c1Prime:_0x5ae50f,m2Prime:_0x25f401}=_0x16d0c5;return this['_executeRemoteChangeset'](_0x5ae50f),_0x37cfc6[0x0][_0x1bb701(0x1fd)]=this['_getCurrentRevision'](),this[_0x1bb701(0x241)](),this[_0x1bb701(0x252)][_0x1bb701(0x1ce)](_0xb6c55a,this[_0x1bb701(0x1b8)],this[_0x1bb701(0x2c9)],_0x37cfc6[0x0],_0x25f401,this[_0x1bb701(0x233)],void 0x0);}throw _0x16d0c5[_0x1bb701(0x1d5)];}throw _0x20eca8[_0x1bb701(0x1d5)];}catch(_0xdcc314){return this[_0x1bb701(0x37d)][_0x1bb701(0x1d5)](_0xdcc314),this[_0x1bb701(0x156)](!0x1);}}['onRemoteAck'](_0x16faa4){const _0x53976a=_0x476a9e;this[_0x53976a(0x241)]();let _0x49046e=this[_0x53976a(0x41e)]();if(_0x16faa4[_0x53976a(0x114)]<=_0x49046e)return this;if(this['_checkMissing'](_0x16faa4))return this[_0x53976a(0x252)][_0x53976a(0x1ce)](_0xe81f65,this[_0x53976a(0x1b8)],this['type'],this[_0x53976a(0x314)],this[_0x53976a(0x126)],_0x16faa4[_0x53976a(0x114)],[],this[_0x53976a(0x233)]);this[_0x53976a(0x190)]();let _0x8366da=this[_0x53976a(0x252)][_0x53976a(0x1ce)](_0xe238f7,this['unitID'],this[_0x53976a(0x2c9)],this[_0x53976a(0x126)],this[_0x53976a(0x233)]);return _0x8366da['_schedule'](),_0x8366da[_0x53976a(0x24a)](),_0x8366da;}['onRemoteRej'](_0x58eece){const _0x4a36d8=_0x476a9e;return this[_0x4a36d8(0x156)](!!(_0x58eece!=null&&_0x58eece[_0x4a36d8(0x295)]));}[_0x476a9e(0x381)](_0x691b6c){const _0x504abd=_0x476a9e;return this[_0x504abd(0x35a)]>_0x327d7c?this['toggleOffline']():(this[_0x504abd(0x322)]=_0x438203(this[_0x504abd(0x120)],{'timeout':this[_0x504abd(0x120)],'reqId':_0x691b6c[_0x504abd(0x254)]}),this['_sender']=this[_0x504abd(0x322)][_0x504abd(0x36e)](({reqId:_0x235774,timeout:_0x3d8649})=>{const _0xd049ff=_0x504abd;this[_0xd049ff(0x1db)](_0x235774,_0x3d8649);}),this);}['toggleOffline'](){const _0x4fc808=_0x476a9e;return this[_0x4fc808(0x241)](),this[_0x4fc808(0x252)][_0x4fc808(0x1ce)](_0x37212d,this[_0x4fc808(0x1b8)],this['type'],this[_0x4fc808(0x314)],this[_0x4fc808(0x126)],this[_0x4fc808(0x233)]);}[_0x476a9e(0x131)](){return this;}[_0x476a9e(0x367)](){const _0x188575=_0x476a9e;this[_0x188575(0x233)]['onSendChangeset'](this[_0x188575(0x314)]);}[_0x476a9e(0x156)](_0x3caed5){const _0x5ede9a=_0x476a9e;return this[_0x5ede9a(0x241)](),this[_0x5ede9a(0x252)][_0x5ede9a(0x1ce)](_0x411ff0,this[_0x5ede9a(0x1b8)],this[_0x5ede9a(0x2c9)],null,this[_0x5ede9a(0x126)],this[_0x5ede9a(0x233)],_0x3caed5);}[_0x476a9e(0x1db)](_0x32ce0e,_0x243aa9){const _0x187c54=_0x476a9e;var _0x13dccf;_0x32ce0e===((_0x13dccf=this['_awaitingChangeset'])==null?void 0x0:_0x13dccf[_0x187c54(0x254)])&&(this[_0x187c54(0x367)](),this[_0x187c54(0x120)]=_0x243aa9===0x0?0x3e8:Math[_0x187c54(0x3a6)](_0x243aa9*0x2,_0x3c2847),this[_0x187c54(0x35a)]+=this['_resendTimeout']);}[_0x476a9e(0x241)](){const _0x3ad932=_0x476a9e;var _0xccf0af;(_0xccf0af=this[_0x3ad932(0x430)])==null||_0xccf0af['unsubscribe'](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x52215c=_0xb6c55a=_0x10b7c9([_0x191f42(0x6,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589[_0x476a9e(0x239)])),_0x191f42(0x7,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x626b63['RevisionService'])),_0x191f42(0x8,_0x99589['ICommandService']),_0x191f42(0x9,_0x99589[_0x476a9e(0x1e0)]),_0x191f42(0xa,_0x626b63['ITransformService']),_0x191f42(0xb,_0x99589[_0x476a9e(0x1df)]),_0x191f42(0xc,(0x0,_0x99589[_0x476a9e(0x1a3)])(_0xb8e6a3))],_0x52215c);let _0x411ff0=class extends _0x3b2c0a{constructor(_0x1de4dd,_0x5b5605,_0xa697c1,_0x5ad0f0,_0x449e49,_0x25dc14=!0x1,_0x207b45,_0x2a698d,_0x4e3a86,_0x10481c,_0x1b24e9,_0x3025f6,_0x524155){const _0x3f7c74=_0x476a9e;super(_0x1de4dd,_0x5b5605,_0xa697c1,_0x5ad0f0,_0x449e49,_0x2a698d,_0x4e3a86,_0x10481c,_0x524155),this[_0x3f7c74(0x209)]=_0x25dc14,this['_permissionService']=_0x207b45,this[_0x3f7c74(0x393)]=_0x1b24e9,this[_0x3f7c74(0x1b0)]=_0x3025f6,this['localCacheService']=_0x524155,_0x222df1(this,_0x3f7c74(0x268),_0x3f7c74(0x2d0)),this['_showConflictNotification'](),this[_0x3f7c74(0x422)](),this[_0x3f7c74(0x2f2)]();}[_0x476a9e(0x1c8)](){return this;}[_0x476a9e(0x421)](){return this;}[_0x476a9e(0x253)](){return this;}[_0x476a9e(0x2cf)](){return this;}[_0x476a9e(0x381)](){return this;}[_0x476a9e(0x272)](){return this;}[_0x476a9e(0x131)](){return this;}['resend'](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearLocalCache'](){const _0x33ce7e=_0x476a9e;var _0x28b412,_0x51bc67,_0x284558;(_0x28b412=this[_0x33ce7e(0x23c)])==null||(_0x51bc67=_0x28b412[_0x33ce7e(0x18c)])==null||(_0x51bc67=_0x51bc67[_0x33ce7e(0x11d)](_0x28b412,this[_0x33ce7e(0x1b8)],_0x33ce7e(0x2d0)))==null||_0x51bc67[_0x33ce7e(0x3e3)](()=>void 0x0),(_0x284558=this[_0x33ce7e(0x23c)])==null||_0x284558[_0x33ce7e(0x12f)](this['unitID'],this[_0x33ce7e(0x2c9)],null,[]);}[_0x476a9e(0x364)](){const _0x3bf6a4=_0x476a9e;this['_isPermissionRej']?this[_0x3bf6a4(0x1b0)]['emitEvent']({'id':_0x3bf6a4(0x28c)}):this['_collaborationUIEventService'][_0x3bf6a4(0x39b)]({'id':'CONFLICT'});}[_0x476a9e(0x2f2)](){const _0x487aed=_0x476a9e;this[_0x487aed(0x3b1)][_0x487aed(0x445)](new _0x3591b7[(_0x487aed(0x43e))](this['unitID'])['id'],!0x1);}};_0x411ff0=_0x10b7c9([_0x191f42(0x6,(0x0,_0x99589['Inject'])(_0x99589[_0x476a9e(0x1b4)])),_0x191f42(0x7,_0x99589[_0x476a9e(0x300)]),_0x191f42(0x8,_0x99589['IUndoRedoService']),_0x191f42(0x9,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x626b63[_0x476a9e(0x145)])),_0x191f42(0xa,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589[_0x476a9e(0x125)])),_0x191f42(0xb,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x4cf82f)),_0x191f42(0xc,(0x0,_0x99589[_0x476a9e(0x1a3)])(_0xb8e6a3))],_0x411ff0);let _0x37212d=class extends _0x3b2c0a{constructor(_0x3a5e66,_0x3d6d7d,_0x1b941f,_0x4b6780,_0x5b8c69,_0x3e0a32,_0x41031e,_0x39a079,_0x31fe32,_0x8dc3a6){const _0xf67f28=_0x476a9e;super(_0x3a5e66,_0x3d6d7d,_0x1b941f,_0x4b6780,_0x5b8c69,_0x39a079,_0x31fe32,_0x41031e,_0x8dc3a6),this['_injector']=_0x3e0a32,_0x222df1(this,_0xf67f28(0x268),_0xf67f28(0x1ae));}[_0x476a9e(0x1c8)](_0x501a3c){const _0x45143f=_0x476a9e;return this['_pendingMutations'][_0x45143f(0x29b)](_0x501a3c),this[_0x45143f(0x24a)](),this;}[_0x476a9e(0x421)](_0xc8ad12){const _0x400c00=_0x476a9e;throw Error(_0x400c00(0x3d0));}[_0x476a9e(0x253)](){const _0x2473d9=_0x476a9e;throw Error(_0x2473d9(0x1f8));}[_0x476a9e(0x2cf)](){const _0x129b86=_0x476a9e;throw Error(_0x129b86(0x230));}[_0x476a9e(0x381)](){return this;}[_0x476a9e(0x272)](){return this;}['toggleOnline'](){const _0x44c597=_0x476a9e;let {_injector:_0x516d6b,_pendingMutations:_0x1b1d2a,_awaitingChangeset:_0x1d4ead,unitID:_0xff13d5,_handler:_0x4ec716,type:_0x341294}=this,_0x225911=_0xed9266(_0x516d6b,_0xff13d5,_0x341294,_0x1d4ead,_0x1b1d2a,_0x4ec716);return _0x225911 instanceof _0xe238f7?_0x225911[_0x44c597(0x150)]():(_0x225911 instanceof _0x52215c||_0x225911 instanceof _0x5c37e0)&&_0x225911['resend'](),_0x225911;}[_0x476a9e(0x367)](){const _0x479f10=_0x476a9e;throw Error(_0x479f10(0x166));}};_0x37212d=_0x10b7c9([_0x191f42(0x5,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589[_0x476a9e(0x239)])),_0x191f42(0x6,(0x0,_0x99589['Inject'])(_0x626b63[_0x476a9e(0x145)])),_0x191f42(0x7,_0x99589[_0x476a9e(0x300)]),_0x191f42(0x8,_0x99589[_0x476a9e(0x1df)]),_0x191f42(0x9,(0x0,_0x99589[_0x476a9e(0x1a3)])(_0xb8e6a3))],_0x37212d);let _0xe81f65=class extends _0x3b2c0a{constructor(_0x1dc959,_0x117fce,_0x25f413,_0x3694a0,_0x4203e8,_0x247eb7,_0x5f55b7,_0x3abe33,_0x38038d,_0x4791c3,_0x28116d,_0x4c4d36,_0x3f8165,_0x114315){const _0xd96758=_0x476a9e;super(_0x1dc959,_0x117fce,_0x25f413,_0x3694a0,_0x5f55b7,_0x28116d,_0x4c4d36,_0x38038d,_0x114315),this[_0xd96758(0x2ae)]=_0x4203e8,this[_0xd96758(0x2f4)]=_0x247eb7,this[_0xd96758(0x252)]=_0x3abe33,this[_0xd96758(0x37d)]=_0x4791c3,this['_transformService']=_0x3f8165,this['localCacheService']=_0x114315,_0x222df1(this,_0xd96758(0x268),'fetch_missing');}[_0x476a9e(0x172)](_0x2cf804){const _0x124916=_0x476a9e;try{if(this[_0x124916(0x219)](_0x2cf804)[_0x124916(0x22c)])throw Error(_0x124916(0x2be));if(this[_0x124916(0x219)]([...this[_0x124916(0x2f4)]][_0x124916(0x2bc)]((_0x4271a2,_0x43793b)=>_0x4271a2[_0x124916(0x114)]-_0x43793b[_0x124916(0x114)]))['missingChangesets'])return this['_queuedRemoteChangesets']=[],this[_0x124916(0x24a)](),this[_0x124916(0x233)][_0x124916(0x236)]({'from':this[_0x124916(0x41e)](),'to':0x0}),this;let _0x38c479=this[_0x124916(0x314)],_0x193475=this[_0x124916(0x126)],_0x313455;if(_0x38c479&&_0x193475['length']!==0x0)_0x313455=this['_injector']['createInstance'](_0x52215c,this[_0x124916(0x1b8)],this[_0x124916(0x2c9)],_0x38c479,_0x193475,this['_handler'],void 0x0);else{if(_0x38c479&&_0x193475[_0x124916(0x1ff)]===0x0)_0x38c479[_0x124916(0x1fd)]=this['_getCurrentRevision'](),_0x313455=this[_0x124916(0x252)][_0x124916(0x1ce)](_0x5c37e0,this[_0x124916(0x1b8)],this[_0x124916(0x2c9)],_0x38c479,this[_0x124916(0x233)]);else{if(_0x193475[_0x124916(0x1ff)]!==0x0){let _0x5e8aa0=this[_0x124916(0x252)][_0x124916(0x1ce)](_0xe238f7,this['unitID'],this[_0x124916(0x2c9)],_0x193475,this['_handler']);_0x5e8aa0[_0x124916(0x150)](),_0x313455=_0x5e8aa0;}else _0x313455=this[_0x124916(0x252)]['createInstance'](_0x58d04a,this[_0x124916(0x1b8)],this[_0x124916(0x2c9)],this[_0x124916(0x233)]);}}return _0x313455[_0x124916(0x24a)](),_0x313455;}catch(_0x53f8f1){return this[_0x124916(0x37d)][_0x124916(0x1d5)]('[FetchMissState]',_0x124916(0x2d3),_0x53f8f1),this[_0x124916(0x252)]['createInstance'](_0x411ff0,this[_0x124916(0x1b8)],this[_0x124916(0x2c9)],this['_awaitingChangeset'],this[_0x124916(0x126)],this[_0x124916(0x233)],!0x1);}}[_0x476a9e(0x219)](_0x48b642){const _0x59c9d3=_0x476a9e;this['_acknowledgeAwaitingIfReady']();for(let _0x3cdf69=0x0;_0x3cdf69<_0x48b642[_0x59c9d3(0x1ff)];_0x3cdf69++){let _0x3202d9=_0x48b642[_0x3cdf69],_0x5d28b1=this['_getCurrentRevision']();if(!(_0x3202d9[_0x59c9d3(0x114)]<=_0x5d28b1)){if(_0x3202d9[_0x59c9d3(0x114)]>_0x5d28b1+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x3202d9)){this[_0x59c9d3(0x130)]();continue;}this[_0x59c9d3(0x39c)](_0x3202d9),this[_0x59c9d3(0x397)]();}}return{'missingChangesets':!0x1};}[_0x476a9e(0x39c)](_0x26829e){const _0x3e2a0a=_0x476a9e;let _0x29b1ad=_0x26829e,_0x4c3b72=this[_0x3e2a0a(0x314)];if(_0x4c3b72){let _0x2dcca7=this[_0x3e2a0a(0x355)][_0x3e2a0a(0x35c)]([_0x26829e],[_0x4c3b72],!0x1);if(!(0x0,_0x626b63[_0x3e2a0a(0x18e)])(_0x2dcca7))throw _0x2dcca7['error'];_0x29b1ad=_0x2dcca7[_0x3e2a0a(0x1aa)][0x0],_0x4c3b72=_0x2dcca7['c2Prime'][0x0];}let _0x5f00be=this[_0x3e2a0a(0x126)];if(_0x5f00be['length']){let _0x32202d=this[_0x3e2a0a(0x355)][_0x3e2a0a(0x188)](_0x29b1ad,_0x5f00be);if(!(0x0,_0x626b63[_0x3e2a0a(0x16a)])(_0x32202d))throw _0x32202d[_0x3e2a0a(0x1d5)];_0x29b1ad=_0x32202d[_0x3e2a0a(0x1aa)],_0x5f00be=_0x32202d[_0x3e2a0a(0x3df)];}this[_0x3e2a0a(0x36a)](_0x29b1ad),_0x4c3b72&&(_0x4c3b72['baseRev']=this[_0x3e2a0a(0x41e)]()),this[_0x3e2a0a(0x314)]=_0x4c3b72,this[_0x3e2a0a(0x126)]=_0x5f00be;}['_acknowledgeAwaitingIfReady'](){const _0x4d4cb7=_0x476a9e;if(!this[_0x4d4cb7(0x314)]||this[_0x4d4cb7(0x2ae)]==null)return;let _0x8ec477=this['_getCurrentRevision']();if(this[_0x4d4cb7(0x2ae)]<=_0x8ec477)throw Error(_0x4d4cb7(0x304)+this[_0x4d4cb7(0x2ae)]+'.');this[_0x4d4cb7(0x2ae)]===_0x8ec477+0x1&&this[_0x4d4cb7(0x130)]();}[_0x476a9e(0x130)](){const _0x42d6a6=_0x476a9e;this[_0x42d6a6(0x190)](),this['_awaitingChangeset']=null,this[_0x42d6a6(0x2ae)]=null;}[_0x476a9e(0x3eb)](_0x2d0fef){const _0x5a4d69=_0x476a9e;let _0x471450=this[_0x5a4d69(0x314)];return!_0x471450||!_0x471450['sid']||_0x471450[_0x5a4d69(0x254)]===null||_0x471450[_0x5a4d69(0x254)]===void 0x0?!0x1:_0x2d0fef['unitID']===_0x471450[_0x5a4d69(0x1b8)]&&_0x2d0fef[_0x5a4d69(0x1c9)]===_0x471450[_0x5a4d69(0x1c9)]&&_0x2d0fef[_0x5a4d69(0x254)]===_0x471450[_0x5a4d69(0x254)];}[_0x476a9e(0x367)](){const _0x56aa88=_0x476a9e;throw Error(_0x56aa88(0x2e1));}[_0x476a9e(0x1c8)](_0x2c6340){const _0x34e411=_0x476a9e;return this[_0x34e411(0x126)][_0x34e411(0x29b)](_0x2c6340),this;}['onRemoteChangeset'](_0x183951){const _0x7d4ce8=_0x476a9e;return this[_0x7d4ce8(0x2f4)][_0x7d4ce8(0x29b)](_0x183951),this;}[_0x476a9e(0x253)](_0xb5d803){const _0x308b2f=_0x476a9e;if(this['_awaitingChangeset']){let _0x51a769=this[_0x308b2f(0x41e)]();return _0xb5d803[_0x308b2f(0x114)]<=_0x51a769||(_0x51a769+0x1===_0xb5d803[_0x308b2f(0x114)]?(this[_0x308b2f(0x190)](),this['_awaitingChangeset']=null,this[_0x308b2f(0x2ae)]=null):this[_0x308b2f(0x2ae)]=_0xb5d803[_0x308b2f(0x114)]),this;}if(_0xb5d803[_0x308b2f(0x114)]<=this['_getCurrentRevision']())return this;throw Error(_0x308b2f(0x13d));}[_0x476a9e(0x2cf)](_0x366024){return this['_onConflict'](!!(_0x366024!=null&&_0x366024['isPermissionRej']));}['onRemoteRetry'](){return this;}[_0x476a9e(0x272)](){const _0x1cde4c=_0x476a9e;return this['_injector'][_0x1cde4c(0x1ce)](_0x37212d,this[_0x1cde4c(0x1b8)],this[_0x1cde4c(0x2c9)],this[_0x1cde4c(0x314)],this[_0x1cde4c(0x126)],this[_0x1cde4c(0x233)]);}['toggleOnline'](){return this;}[_0x476a9e(0x156)](_0x2c0422){const _0x1264a=_0x476a9e;return this['_injector']['createInstance'](_0x411ff0,this[_0x1264a(0x1b8)],this['type'],this[_0x1264a(0x314)],this['_pendingMutations'],this[_0x1264a(0x233)],_0x2c0422);}};_0xe81f65=_0x10b7c9([_0x191f42(0x7,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589[_0x476a9e(0x239)])),_0x191f42(0x8,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x626b63['RevisionService'])),_0x191f42(0x9,_0x99589['ILogService']),_0x191f42(0xa,_0x99589[_0x476a9e(0x300)]),_0x191f42(0xb,_0x99589[_0x476a9e(0x1df)]),_0x191f42(0xc,_0x626b63[_0x476a9e(0x275)]),_0x191f42(0xd,(0x0,_0x99589['Optional'])(_0xb8e6a3))],_0xe81f65);function _0xed9266(_0x3802c8,_0x1b247a,_0x27503f,_0x562cea,_0x15da6c,_0x464533){const _0x4d0057=_0x476a9e;return _0x562cea&&_0x15da6c['length']?_0x3802c8[_0x4d0057(0x1ce)](_0x52215c,_0x1b247a,_0x27503f,_0x562cea,_0x15da6c,_0x464533,void 0x0):_0x562cea?_0x3802c8['createInstance'](_0x5c37e0,_0x1b247a,_0x27503f,_0x562cea,_0x464533):_0x15da6c[_0x4d0057(0x1ff)]?_0x3802c8[_0x4d0057(0x1ce)](_0xe238f7,_0x1b247a,_0x27503f,_0x15da6c,_0x464533):_0x3802c8[_0x4d0057(0x1ce)](_0x58d04a,_0x1b247a,_0x27503f,_0x464533);}let _0x204d84=class extends _0x99589['RxDisposable']{get[_0x476a9e(0x141)](){const _0x4ac729=_0x476a9e;return this[_0x4ac729(0x153)];}constructor(_0x111d76,_0x2a8e88,_0x195c77,_0x39dabe,_0x48ead5,_0x1eb62d,_0xeea50b,_0x432dc0,_0x4901e3,_0x177670,_0x478420,_0x56188f,_0x3730b3,_0x3ae539){const _0x505a82=_0x476a9e;super(),this[_0x505a82(0x1b8)]=_0x111d76,this[_0x505a82(0x399)]=_0x2a8e88,this['_type']=_0x195c77,this[_0x505a82(0x252)]=_0x39dabe,this[_0x505a82(0x205)]=_0x48ead5,this[_0x505a82(0x393)]=_0x1eb62d,this[_0x505a82(0x3f8)]=_0xeea50b,this['_eventService']=_0x432dc0,this[_0x505a82(0x277)]=_0x4901e3,this[_0x505a82(0x37d)]=_0x177670,this[_0x505a82(0x3a7)]=_0x478420,this[_0x505a82(0x3b1)]=_0x56188f,this[_0x505a82(0x1ea)]=_0x3730b3,this[_0x505a82(0x23c)]=_0x3ae539,_0x222df1(this,'_state$',new _0x3666d5['BehaviorSubject'](null)),_0x222df1(this,_0x505a82(0x3a1),this[_0x505a82(0x276)][_0x505a82(0x405)]()),_0x222df1(this,_0x505a82(0x153),void 0x0),_0x222df1(this,'_collaborationPaused',!0x1),_0x222df1(this,_0x505a82(0x1c7),''),_0x222df1(this,_0x505a82(0x319),0x0),_0x222df1(this,_0x505a82(0x394),this['state$']['pipe']((0x0,_0x3666d5[_0x505a82(0x10f)])(_0x312c45=>_0x312c45?_0x312c45[_0x505a82(0x268)]:_0x505a82(0x1ae)),(0x0,_0x3666d5[_0x505a82(0x3bd)])({'bufferSize':0x1,'refCount':!0x0}))),_0x222df1(this,_0x505a82(0x1cd),!0x1),_0x222df1(this,'_remoteChangesetQueue',[]);}async[_0x476a9e(0x151)](){const _0x51ed44=_0x476a9e;if(this[_0x51ed44(0x141)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x51ed44(0x24f)]();}[_0x476a9e(0x1f2)](){const _0x57ba5d=_0x476a9e;return this[_0x57ba5d(0x3fd)]=!0x0,(0x0,_0x99589['toDisposable'])(()=>{const _0x3a27c7=_0x57ba5d;this[_0x3a27c7(0x3fd)]=!0x1,this[_0x3a27c7(0x1c0)]();});}[_0x476a9e(0x16b)](_0x4fa39e){this['_onLocalMutation'](_0x4fa39e);}[_0x476a9e(0x30a)](_0x5b26f8){const _0x11811a=_0x476a9e;this[_0x11811a(0x153)]=_0x5b26f8,this[_0x11811a(0x276)][_0x11811a(0x279)](_0x5b26f8);}async[_0x476a9e(0x24f)](){const _0x5873e1=_0x476a9e;if(this[_0x5873e1(0x30a)](await this[_0x5873e1(0x40d)]()),this[_0x5873e1(0x1ea)]){var _0x4b0cd7;(_0x4b0cd7=this['_singleActiveUnitService'])==null||_0x4b0cd7[_0x5873e1(0x20a)](this[_0x5873e1(0x1b8)]),this[_0x5873e1(0x429)](this[_0x5873e1(0x1ea)]['getUnitStatus$'](this[_0x5873e1(0x1b8)])[_0x5873e1(0x36e)](_0x3e88f6=>{const _0x5a9d98=_0x5873e1;this[_0x5a9d98(0x37d)][_0x5a9d98(0x25c)](_0x5a9d98(0x2d9),_0x5a9d98(0x270),_0x3e88f6),_0x3e88f6===0x1?(this[_0x5a9d98(0x1da)]['emitEvent']({'id':_0x5a9d98(0x1b9)}),this[_0x5a9d98(0x3b1)]['updatePermissionPoint'](new _0x3591b7['WorkbookEditablePermission'](this[_0x5a9d98(0x1b8)])['id'],!0x1),this['_permissionService'][_0x5a9d98(0x2d7)](!0x1)):(this[_0x5a9d98(0x3b1)]['updatePermissionPoint'](new _0x3591b7[(_0x5a9d98(0x43e))](this[_0x5a9d98(0x1b8)])['id'],!0x0),this[_0x5a9d98(0x3b1)]['setShowComponents'](!0x0));}));}let _0x271610=!0x1;return this[_0x5873e1(0x429)](this['session'][_0x5873e1(0x149)]['subscribe'](_0x1c3a19=>{const _0x4bb340=_0x5873e1;_0x1c3a19===0x3?this[_0x4bb340(0x2c4)](_0x271610):_0x1c3a19===0x2&&(_0x271610=!0x0,this[_0x4bb340(0x1ba)]());})),this[_0x5873e1(0x429)](this[_0x5873e1(0x399)]['event$'][_0x5873e1(0x36e)](_0xbda84e=>{const _0x5bb3ad=_0x5873e1;try{switch(_0xbda84e['eventID']){case _0x626b63[_0x5bb3ad(0x247)][_0x5bb3ad(0x3da)]:this[_0x5bb3ad(0x308)]((0x0,_0x626b63[_0x5bb3ad(0x416)])(_0xbda84e['data']));break;case _0x626b63[_0x5bb3ad(0x247)][_0x5bb3ad(0x204)]:this[_0x5bb3ad(0x18a)](_0xbda84e['data']);break;case _0x626b63[_0x5bb3ad(0x247)][_0x5bb3ad(0x210)]:this['_onRemoteRejected']();break;case _0x626b63[_0x5bb3ad(0x247)][_0x5bb3ad(0x110)]:this[_0x5bb3ad(0x162)](_0xbda84e[_0x5bb3ad(0x363)]);break;case _0x626b63[_0x5bb3ad(0x247)][_0x5bb3ad(0x30b)]:this[_0x5bb3ad(0x2d2)](_0xbda84e['data'][_0x5bb3ad(0x439)]['map'](_0x15d29d=>(0x0,_0x626b63[_0x5bb3ad(0x416)])(_0x15d29d)));break;case _0x626b63[_0x5bb3ad(0x247)][_0x5bb3ad(0x22b)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x626b63[_0x5bb3ad(0x247)][_0x5bb3ad(0x117)]:break;}}catch(_0x5bf9f1){throw console[_0x5bb3ad(0x1d5)]('Error\x20on\x20receiving\x20event',_0x5bf9f1),_0x5bf9f1;}})),this[_0x5873e1(0x153)];}[_0x476a9e(0x180)](){const _0x183205=_0x476a9e;this[_0x183205(0x1cd)]=!0x1;}[_0x476a9e(0x395)](){const _0x367a58=_0x476a9e;if(this[_0x367a58(0x1cd)])throw Error(_0x367a58(0x389));this[_0x367a58(0x1cd)]=!0x0;}['_onLocalMutation'](_0xf9ff){const _0x4ba6e8=_0x476a9e;this[_0x4ba6e8(0x395)](),this[_0x4ba6e8(0x30a)](this['_state'][_0x4ba6e8(0x1c8)](_0xf9ff)),this[_0x4ba6e8(0x180)]();}[_0x476a9e(0x308)](_0x221559){const _0x56ac36=_0x476a9e;if(!(_0x221559['revision']<=this['_revisionService'][_0x56ac36(0x404)](this[_0x56ac36(0x1b8)]))){if(this[_0x56ac36(0x3fd)]){this[_0x56ac36(0x17a)][_0x56ac36(0x29b)](_0x221559);return;}this[_0x56ac36(0x217)](_0x221559);}}[_0x476a9e(0x1c0)](){const _0x197a3e=_0x476a9e;this[_0x197a3e(0x17a)][_0x197a3e(0x411)](_0x19173c=>this['_applyRemoteChangeset'](_0x19173c)),this['_remoteChangesetQueue']=[];}[_0x476a9e(0x217)](_0x417c9f){const _0x3681ef=_0x476a9e;let _0x4334e4=this['_compressMutationService'][_0x3681ef(0x35b)][_0x3681ef(0x11c)](this[_0x3681ef(0x205)]['interceptor']['getInterceptPoints']()[_0x3681ef(0x1f3)])(_0x417c9f[_0x3681ef(0x15e)],null)||_0x417c9f[_0x3681ef(0x15e)],_0x36a767={..._0x417c9f,'mutations':_0x4334e4};this['_lockTransition'](),this[_0x3681ef(0x30a)](this['_state'][_0x3681ef(0x421)](_0x36a767)),this[_0x3681ef(0x180)]();}[_0x476a9e(0x18a)](_0x184fe9){const _0x54721f=_0x476a9e;this[_0x54721f(0x395)](),this[_0x54721f(0x30a)](this[_0x54721f(0x153)][_0x54721f(0x253)](_0x184fe9)),this[_0x54721f(0x180)]();}['_onRemoteRejected'](_0x52d3eb){const _0x500e0b=_0x476a9e;this['_lockTransition'](),this[_0x500e0b(0x30a)](this[_0x500e0b(0x153)]['onRemoteRej'](_0x52d3eb)),this['_unlockTransition']();}[_0x476a9e(0x162)](_0x39696e){const _0x364656=_0x476a9e;this[_0x364656(0x395)](),this[_0x364656(0x30a)](this[_0x364656(0x153)]['onRemoteRetry'](_0x39696e)),this[_0x364656(0x180)]();}[_0x476a9e(0x2d2)](_0x5cd2c6){const _0x5a081f=_0x476a9e;if(!(this[_0x5a081f(0x153)]instanceof _0xe81f65))throw TypeError(_0x5a081f(0x283));let _0xf02540=_0x5cd2c6[_0x5a081f(0x10f)](_0x51994f=>{const _0x25b692=_0x5a081f;let _0x2a14e4=this[_0x25b692(0x205)][_0x25b692(0x35b)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x25b692(0x35b)][_0x25b692(0x21f)]()[_0x25b692(0x1f3)])(_0x51994f['mutations'],null)||_0x51994f[_0x25b692(0x15e)];return{..._0x51994f,'mutations':_0x2a14e4};});this[_0x5a081f(0x395)](),this['_updateState'](this[_0x5a081f(0x153)][_0x5a081f(0x172)](_0xf02540)),this['_unlockTransition']();}[_0x476a9e(0x1ba)](){const _0x3c2c25=_0x476a9e;this[_0x3c2c25(0x395)](),this[_0x3c2c25(0x30a)](this[_0x3c2c25(0x153)][_0x3c2c25(0x272)]()),this['_unlockTransition']();}['_toggleOnline'](_0x4b9ac3=!0x1){const _0x2f39a6=_0x476a9e;this[_0x2f39a6(0x395)](),this[_0x2f39a6(0x30a)](this[_0x2f39a6(0x153)]['toggleOnline']()),this[_0x2f39a6(0x180)]();let _0x4ffc67=this[_0x2f39a6(0x153)];_0x4b9ac3&&_0x4ffc67 instanceof _0x58d04a&&(this[_0x2f39a6(0x395)](),this[_0x2f39a6(0x30a)](_0x4ffc67[_0x2f39a6(0x401)]()),this[_0x2f39a6(0x180)]());}async[_0x476a9e(0x40d)](){return new Promise(_0x12d172=>{const _0x171d8f=_0x3d7a;this['session'][_0x171d8f(0x149)][_0x171d8f(0x42f)]((0x0,_0x3666d5[_0x171d8f(0x3ef)])(0x1))[_0x171d8f(0x36e)](async _0x5f13b1=>{const _0x46ed70=_0x171d8f;_0x12d172(await this[_0x46ed70(0x28f)](_0x5f13b1===0x3));});});}[_0x476a9e(0x123)](){let _0x29ffed=this['unitID'];return{'onStateChange':(_0x2531a7,_0x19a509)=>{const _0x2c1452=_0x3d7a;if(_0x2531a7!==this[_0x2c1452(0x153)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x2531a7[_0x2c1452(0x268)]+_0x2c1452(0x37a)+_0x19a509[_0x2c1452(0x268)]+_0x2c1452(0x3fa)+this[_0x2c1452(0x153)][_0x2c1452(0x268)]);this[_0x2c1452(0x30a)](_0x19a509);},'onSendChangeset':_0x3d43e7=>{const _0x45d068=_0x3d7a;_0x3d43e7['sid']||(_0x3d43e7[_0x45d068(0x1c9)]=this['_changesetSessionId'],_0x3d43e7[_0x45d068(0x254)]=++this[_0x45d068(0x319)]);let _0x17eb4c={'eventID':_0x626b63[_0x45d068(0x247)][_0x45d068(0x432)],'data':{'unitID':_0x3d43e7[_0x45d068(0x1b8)],'unitType':this[_0x45d068(0x3cc)],'changeset':_0x3d43e7,'memberID':this[_0x45d068(0x399)][_0x45d068(0x14a)]()}};this[_0x45d068(0x399)][_0x45d068(0x2ba)](_0x17eb4c,this[_0x45d068(0x1b8)]);},'onMissingChangesets':({from:_0x55b2b0,to:_0x2a8466})=>{const _0x494983=_0x3d7a;this[_0x494983(0x37d)][_0x494983(0x25c)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x55b2b0+'\x20to\x20'+_0x2a8466);let _0x20219a={'eventID':_0x626b63[_0x494983(0x247)][_0x494983(0x2b0)],'data':{'unitID':_0x29ffed,'unitType':this[_0x494983(0x3cc)],'from':_0x55b2b0,'to':_0x2a8466}};this[_0x494983(0x399)][_0x494983(0x2ba)](_0x20219a,this[_0x494983(0x1b8)]);}};}async['_createInitialStateImpl'](_0x4a5143){const _0x3efbdc=_0x476a9e;var _0x38d5d8,_0x268057,_0x1d3c43;let _0x492d70=await((_0x38d5d8=this[_0x3efbdc(0x23c)])==null?void 0x0:_0x38d5d8[_0x3efbdc(0x305)](this[_0x3efbdc(0x1b8)])),_0x52c167=(_0x268057=_0x492d70==null?void 0x0:_0x492d70[_0x3efbdc(0x15e)])==null?[]:_0x268057,_0xb3f5f8=(_0x1d3c43=_0x492d70==null?void 0x0:_0x492d70[_0x3efbdc(0x373)])==null?null:_0x1d3c43,_0x22494b=!!(_0xb3f5f8!=null&&_0xb3f5f8[_0x3efbdc(0x1c9)])&&!!(_0xb3f5f8!=null&&_0xb3f5f8[_0x3efbdc(0x254)]);this['_changesetSessionId']=_0x22494b?_0xb3f5f8['sid']:(0x0,_0x626b63['uuidv4'])(),this['_changesetReqId']=_0x22494b?_0xb3f5f8['reqId']:0x0;let _0x28b2d4=this[_0x3efbdc(0x1b8)];try{this[_0x3efbdc(0x37f)](_0xb3f5f8,_0x52c167);}catch(_0x53726c){this[_0x3efbdc(0x37d)][_0x3efbdc(0x1d5)](_0x53726c);}let _0x2c29be=this[_0x3efbdc(0x123)]();if(_0x4a5143){let _0x33e30d=_0xed9266(this['_injector'],_0x28b2d4,this[_0x3efbdc(0x3cc)],_0xb3f5f8,_0x52c167,_0x2c29be);return _0x33e30d instanceof _0xe238f7?_0x33e30d[_0x3efbdc(0x150)]():(_0x33e30d instanceof _0x52215c||_0x33e30d instanceof _0x5c37e0)&&_0x33e30d[_0x3efbdc(0x367)](),_0x33e30d;}return this[_0x3efbdc(0x252)][_0x3efbdc(0x1ce)](_0x37212d,_0x28b2d4,this['_type'],_0xb3f5f8,_0x52c167,_0x2c29be);}[_0x476a9e(0x37f)](_0x429055,_0x4f640e){const _0x1d91df=_0x476a9e;var _0x167816,_0x3f8ede;let _0x4eaad7=this[_0x1d91df(0x205)][_0x1d91df(0x35b)][_0x1d91df(0x11c)](this[_0x1d91df(0x205)][_0x1d91df(0x35b)][_0x1d91df(0x21f)]()[_0x1d91df(0x1f3)]);(_0x167816=_0x4eaad7((_0x429055==null?void 0x0:_0x429055[_0x1d91df(0x15e)])||[],null))==null||_0x167816[_0x1d91df(0x411)](_0x9e07b1=>this['_commandService'][_0x1d91df(0x196)](_0x9e07b1['id'],_0x9e07b1[_0x1d91df(0x2a4)])),(_0x3f8ede=_0x4eaad7(_0x4f640e||[],null))==null||_0x3f8ede[_0x1d91df(0x411)](_0x2a7b86=>this[_0x1d91df(0x3a7)][_0x1d91df(0x196)](_0x2a7b86['id'],_0x2a7b86[_0x1d91df(0x2a4)]));}};_0x204d84=_0x10b7c9([_0x191f42(0x3,(0x0,_0x99589['Inject'])(_0x99589['Injector'])),_0x191f42(0x4,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x626b63[_0x476a9e(0x20b)])),_0x191f42(0x5,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589[_0x476a9e(0x125)])),_0x191f42(0x6,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x626b63[_0x476a9e(0x145)])),_0x191f42(0x7,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x4cf82f)),_0x191f42(0x8,_0x99589['IUniverInstanceService']),_0x191f42(0x9,_0x99589[_0x476a9e(0x1e0)]),_0x191f42(0xa,_0x99589[_0x476a9e(0x300)]),_0x191f42(0xb,_0x99589[_0x476a9e(0x1b4)]),_0x191f42(0xc,(0x0,_0x99589['Optional'])(_0x6f676a)),_0x191f42(0xd,(0x0,_0x99589[_0x476a9e(0x1a3)])(_0xb8e6a3))],_0x204d84);let _0xb7ed45=class extends _0x204d84{constructor(_0x17bc91,_0x382bbe,_0x237ca7,_0xba0d9f,_0x7d8f84,_0x470fa8,_0x2ccfc9,_0x3c159d,_0x22261c,_0xbde951,_0x5b5fd8,_0xb10c5,_0x117998,_0x2973bd,_0x22956d){const _0x5c5ba5=_0x476a9e;super(_0x17bc91,_0x237ca7,_0x382bbe,_0xba0d9f,_0x7d8f84,_0x470fa8,_0x2ccfc9,_0x3c159d,_0x22261c,_0xbde951,_0x5b5fd8,_0xb10c5,_0x2973bd,_0x22956d),this[_0x5c5ba5(0x1b8)]=_0x17bc91,this[_0x5c5ba5(0x2c9)]=_0x382bbe,this['_docStateChangeManagerService']=_0x117998,_0x222df1(this,'_handlerCallback',null);}['addHandlerCallback'](_0x3ca765){this['_handlerCallback']=_0x3ca765;}[_0x476a9e(0x138)](){const _0x10acbf=_0x476a9e;this['_handlerCallback']=null,super[_0x10acbf(0x138)]();}[_0x476a9e(0x123)](){const _0x472f6a=_0x476a9e;let _0x1ff2fb=super[_0x472f6a(0x123)]();return _0x1ff2fb[_0x472f6a(0x436)]=_0xfb76d3=>{const _0x30c5fb=_0x472f6a;var _0x470147,_0x4e2a24;return(_0x470147=this[_0x30c5fb(0x38e)])==null||(_0x4e2a24=_0x470147['onTransformIME'])==null?void 0x0:_0x4e2a24[_0x30c5fb(0x11d)](_0x470147,_0xfb76d3);},_0x1ff2fb['onTransformState']=_0x211806=>{const _0x1a7ae2=_0x472f6a;var _0x598cec,_0xaba31b;return(_0x598cec=this[_0x1a7ae2(0x38e)])==null||(_0xaba31b=_0x598cec['onTransformState'])==null?void 0x0:_0xaba31b[_0x1a7ae2(0x11d)](_0x598cec,_0x211806);},_0x1ff2fb['onTransformSelections']=_0xd5fb9e=>{const _0xe870cb=_0x472f6a;var _0x724a5d,_0x2c82c1;return(_0x724a5d=this[_0xe870cb(0x38e)])==null||(_0x2c82c1=_0x724a5d[_0xe870cb(0x284)])==null?void 0x0:_0x2c82c1[_0xe870cb(0x11d)](_0x724a5d,_0xd5fb9e);},_0x1ff2fb[_0x472f6a(0x271)]=_0x3c0d2c=>{const _0x699157=_0x472f6a;var _0x441770,_0x208aac;return(_0x441770=this['_handlerCallback'])==null||(_0x208aac=_0x441770[_0x699157(0x271)])==null?void 0x0:_0x208aac[_0x699157(0x11d)](_0x441770,_0x3c0d2c);},_0x1ff2fb['onTransformRemoteChangesetByIMECache']=_0x16ce56=>{const _0x1f35c0=_0x472f6a;var _0xd22f02,_0x4ccc4a,_0xa8ba56;return(_0xd22f02=(_0x4ccc4a=this[_0x1f35c0(0x38e)])==null||(_0xa8ba56=_0x4ccc4a['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0xa8ba56[_0x1f35c0(0x11d)](_0x4ccc4a,_0x16ce56))==null?_0x16ce56:_0xd22f02;},_0x1ff2fb[_0x472f6a(0x262)]=_0x4afbc2=>{const _0x496af8=_0x472f6a;var _0x2b7c33,_0x510dd3,_0x1b34eb;return(_0x2b7c33=(_0x510dd3=this[_0x496af8(0x38e)])==null||(_0x1b34eb=_0x510dd3[_0x496af8(0x262)])==null?void 0x0:_0x1b34eb[_0x496af8(0x11d)](_0x510dd3,_0x4afbc2))==null?_0x4afbc2:_0x2b7c33;},_0x1ff2fb;}async[_0x476a9e(0x24f)](){const _0x2d10c0=_0x476a9e;if(this[_0x2d10c0(0x179)]==null)throw Error(_0x2d10c0(0x43a));let _0x5db76b=await super['_init']();return this['disposeWithMe'](this['_docStateChangeManagerService']['docStateChange$'][_0x2d10c0(0x36e)](_0x37e11a=>{const _0x90e73=_0x2d10c0;if(_0x37e11a==null||_0x37e11a[_0x90e73(0x2f3)]!==this[_0x90e73(0x1b8)])return;let {commandId:_0x5d23b0,redoState:_0x1cedbd,unitId:_0x39c8bc}=_0x37e11a,_0x5569bf={'id':_0x5d23b0,'type':_0x99589['CommandType'][_0x90e73(0x33d)],'params':{'unitId':_0x39c8bc,'actions':_0x1cedbd[_0x90e73(0x409)],'textRanges':null}};this[_0x90e73(0x426)](_0x5569bf);})),this[_0x2d10c0(0x429)](this[_0x2d10c0(0x3a7)][_0x2d10c0(0x25e)]((_0x33bb7b,_0x57b7e6)=>{const _0x260aeb=_0x2d10c0;if(_0x33bb7b['type']!==_0x99589[_0x260aeb(0x36c)][_0x260aeb(0x33d)]||_0x57b7e6!=null&&_0x57b7e6[_0x260aeb(0x35e)]||_0x57b7e6!=null&&_0x57b7e6['onlyLocal']||_0x33bb7b['id']===_0x51f5dd[_0x260aeb(0x15b)]['id'])return;let _0x42f21f=_0x33bb7b[_0x260aeb(0x2a4)];if((_0x42f21f==null?void 0x0:_0x42f21f['unitId'])!==this[_0x260aeb(0x1b8)])return;let _0x561b6b=_0x33bb7b,_0x5e62dd=this[_0x260aeb(0x205)][_0x260aeb(0x35b)]['fetchThroughInterceptors'](this[_0x260aeb(0x205)][_0x260aeb(0x35b)][_0x260aeb(0x21f)]()[_0x260aeb(0x2f9)])([_0x561b6b],this[_0x260aeb(0x277)])||[_0x561b6b];this[_0x260aeb(0x426)](_0x5e62dd[0x0]);})),_0x5db76b;}};_0xb7ed45=_0x10b7c9([_0x191f42(0x3,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589['Injector'])),_0x191f42(0x4,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x626b63[_0x476a9e(0x20b)])),_0x191f42(0x5,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589[_0x476a9e(0x125)])),_0x191f42(0x6,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x626b63['RevisionService'])),_0x191f42(0x7,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x4cf82f)),_0x191f42(0x8,_0x99589[_0x476a9e(0x16c)]),_0x191f42(0x9,_0x99589[_0x476a9e(0x1e0)]),_0x191f42(0xa,_0x99589[_0x476a9e(0x300)]),_0x191f42(0xb,_0x99589[_0x476a9e(0x1b4)]),_0x191f42(0xc,(0x0,_0x99589[_0x476a9e(0x1a3)])(_0x51f5dd['DocStateChangeManagerService'])),_0x191f42(0xd,(0x0,_0x99589['Optional'])(_0x6f676a)),_0x191f42(0xe,(0x0,_0x99589[_0x476a9e(0x1a3)])(_0xb8e6a3))],_0xb7ed45);let _0xb0369d=class extends _0x204d84{constructor(_0x120663,_0x5eca46,_0x3c17e7,_0x303e85,_0xeec4fc,_0x53dffc,_0x304dd8,_0x330230,_0x51820b,_0x3acb5d,_0x3335a0,_0x57942b,_0xaea328,_0x55c6b4){const _0x261d3b=_0x476a9e;super(_0x120663,_0x3c17e7,_0x5eca46,_0x303e85,_0xeec4fc,_0x53dffc,_0x304dd8,_0x330230,_0x51820b,_0x3acb5d,_0x3335a0,_0x57942b,_0xaea328,_0x55c6b4),this['unitID']=_0x120663,this[_0x261d3b(0x2c9)]=_0x5eca46;}async['_init'](){const _0x4e72a4=_0x476a9e;let _0x1c2f92=await super[_0x4e72a4(0x24f)]();return this[_0x4e72a4(0x429)](this[_0x4e72a4(0x3a7)]['onMutationExecutedForCollab']((_0x814d3d,_0x330c7d)=>{const _0x2b8bc2=_0x4e72a4;if(_0x814d3d[_0x2b8bc2(0x2c9)]!==_0x99589[_0x2b8bc2(0x36c)]['MUTATION']||_0x330c7d!=null&&_0x330c7d[_0x2b8bc2(0x35e)]||_0x330c7d!=null&&_0x330c7d['onlyLocal']||_0x814d3d['id']!==_0x2d3100[_0x2b8bc2(0x41c)]['id'])return;let _0x216022=_0x814d3d['params'];if((_0x216022==null?void 0x0:_0x216022[_0x2b8bc2(0x2f3)])!==this[_0x2b8bc2(0x1b8)])return;let _0x189b55=_0x814d3d,_0x176b56=this[_0x2b8bc2(0x205)][_0x2b8bc2(0x35b)]['fetchThroughInterceptors'](this[_0x2b8bc2(0x205)][_0x2b8bc2(0x35b)][_0x2b8bc2(0x21f)]()['COMPRESS_MUTATION_SEND'])([_0x189b55],this[_0x2b8bc2(0x277)])||[_0x189b55];this[_0x2b8bc2(0x426)](_0x176b56[0x0]);})),_0x1c2f92;}};_0xb0369d=_0x10b7c9([_0x191f42(0x3,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589[_0x476a9e(0x239)])),_0x191f42(0x4,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x626b63[_0x476a9e(0x20b)])),_0x191f42(0x5,(0x0,_0x99589['Inject'])(_0x99589['LocaleService'])),_0x191f42(0x6,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x626b63['RevisionService'])),_0x191f42(0x7,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x4cf82f)),_0x191f42(0x8,_0x99589[_0x476a9e(0x16c)]),_0x191f42(0x9,_0x99589[_0x476a9e(0x1e0)]),_0x191f42(0xa,_0x99589[_0x476a9e(0x300)]),_0x191f42(0xb,_0x99589['IPermissionService']),_0x191f42(0xc,(0x0,_0x99589[_0x476a9e(0x1a3)])(_0x6f676a)),_0x191f42(0xd,(0x0,_0x99589[_0x476a9e(0x1a3)])(_0xb8e6a3))],_0xb0369d);let _0x7976d7=class extends _0x204d84{constructor(_0x3ab2fe,_0x7924d2,_0x2ca58a,_0x51e145,_0x490b5f,_0x33c98e,_0x2a0998,_0x4d71e1,_0x1776f7,_0x32d0e7,_0xf247e4,_0x2d963d,_0x1efa5e,_0x5acf31,_0x22037b){const _0x43095a=_0x476a9e;super(_0x3ab2fe,_0x2ca58a,_0x7924d2,_0x51e145,_0x490b5f,_0x33c98e,_0x2a0998,_0x1776f7,_0x32d0e7,_0xf247e4,_0x2d963d,_0x1efa5e,_0x5acf31,_0x22037b),this[_0x43095a(0x1b8)]=_0x3ab2fe,this[_0x43095a(0x2c9)]=_0x7924d2,this[_0x43095a(0x1d2)]=_0x4d71e1;}[_0x476a9e(0x123)](){const _0x142fa2=_0x476a9e;let _0x3aa775=super['_createHandler']();return _0x3aa775[_0x142fa2(0x284)]=_0x5e60c6=>this[_0x142fa2(0x1d2)][_0x142fa2(0x360)](_0x5e60c6),_0x3aa775;}async[_0x476a9e(0x24f)](){const _0x1e4ddf=_0x476a9e;let _0x4ff95a=await super[_0x1e4ddf(0x24f)]();return this[_0x1e4ddf(0x429)](this[_0x1e4ddf(0x3a7)][_0x1e4ddf(0x25e)]((_0xf027b1,_0x439a5f)=>{const _0x4c1ac2=_0x1e4ddf;if(_0xf027b1[_0x4c1ac2(0x2c9)]!==_0x99589[_0x4c1ac2(0x36c)][_0x4c1ac2(0x33d)]||_0x439a5f!=null&&_0x439a5f[_0x4c1ac2(0x35e)]||_0x439a5f!=null&&_0x439a5f[_0x4c1ac2(0x18f)])return;let _0x307d7c=_0xf027b1[_0x4c1ac2(0x2a4)];if((_0x307d7c==null?void 0x0:_0x307d7c['unitId'])!==this['unitID'])return;let _0x1fcea3=_0xf027b1,_0x31e0e9=this['_compressMutationService'][_0x4c1ac2(0x35b)][_0x4c1ac2(0x11c)](this[_0x4c1ac2(0x205)][_0x4c1ac2(0x35b)][_0x4c1ac2(0x21f)]()[_0x4c1ac2(0x2f9)])([_0x1fcea3],this[_0x4c1ac2(0x277)])||[_0x1fcea3];this[_0x4c1ac2(0x426)](_0x31e0e9[0x0]);})),_0x4ff95a;}};_0x7976d7=_0x10b7c9([_0x191f42(0x3,(0x0,_0x99589['Inject'])(_0x99589[_0x476a9e(0x239)])),_0x191f42(0x4,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x626b63[_0x476a9e(0x20b)])),_0x191f42(0x5,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589[_0x476a9e(0x125)])),_0x191f42(0x6,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x626b63['RevisionService'])),_0x191f42(0x7,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x4a849f)),_0x191f42(0x8,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x4cf82f)),_0x191f42(0x9,_0x99589[_0x476a9e(0x16c)]),_0x191f42(0xa,_0x99589[_0x476a9e(0x1e0)]),_0x191f42(0xb,_0x99589[_0x476a9e(0x300)]),_0x191f42(0xc,_0x99589[_0x476a9e(0x1b4)]),_0x191f42(0xd,(0x0,_0x99589[_0x476a9e(0x1a3)])(_0x6f676a)),_0x191f42(0xe,(0x0,_0x99589[_0x476a9e(0x1a3)])(_0xb8e6a3))],_0x7976d7);let _0x462895=class extends _0x204d84{constructor(_0x33f15d,_0x323fda,_0x45ec75,_0x466e80,_0x33fab3,_0x5a91fe,_0x1643af,_0xf7bf7d,_0x56612c,_0x27b3eb,_0x46d914,_0x8a7e06,_0x5b1720,_0x58e0e3){const _0x47f8ac=_0x476a9e;super(_0x33f15d,_0x45ec75,_0x323fda,_0x466e80,_0x33fab3,_0x5a91fe,_0x1643af,_0xf7bf7d,_0x56612c,_0x27b3eb,_0x46d914,_0x8a7e06,_0x5b1720,_0x58e0e3),this[_0x47f8ac(0x1b8)]=_0x33f15d,this[_0x47f8ac(0x2c9)]=_0x323fda;}async[_0x476a9e(0x24f)](){const _0x16017e=_0x476a9e;let _0xe23cf6=await super['_init']();return this[_0x16017e(0x429)](this[_0x16017e(0x3a7)][_0x16017e(0x25e)]((_0x197e1d,_0x31d403)=>{const _0x3e8116=_0x16017e;if(_0x197e1d[_0x3e8116(0x2c9)]!==_0x99589[_0x3e8116(0x36c)][_0x3e8116(0x33d)]||_0x31d403!=null&&_0x31d403[_0x3e8116(0x35e)]||_0x31d403!=null&&_0x31d403[_0x3e8116(0x18f)])return;let _0x4c7176=_0x197e1d[_0x3e8116(0x2a4)];if((_0x4c7176==null?void 0x0:_0x4c7176[_0x3e8116(0x2f3)])!==this[_0x3e8116(0x1b8)])return;let _0x1eba08=_0x197e1d,_0x6090ba=this[_0x3e8116(0x205)][_0x3e8116(0x35b)][_0x3e8116(0x11c)](this[_0x3e8116(0x205)][_0x3e8116(0x35b)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x1eba08],this[_0x3e8116(0x277)])||[_0x1eba08];this[_0x3e8116(0x426)](_0x6090ba[0x0]);})),_0xe23cf6;}};_0x462895=_0x10b7c9([_0x191f42(0x3,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589['Injector'])),_0x191f42(0x4,(0x0,_0x99589['Inject'])(_0x626b63[_0x476a9e(0x20b)])),_0x191f42(0x5,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589[_0x476a9e(0x125)])),_0x191f42(0x6,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x626b63[_0x476a9e(0x145)])),_0x191f42(0x7,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x4cf82f)),_0x191f42(0x8,_0x99589[_0x476a9e(0x16c)]),_0x191f42(0x9,_0x99589[_0x476a9e(0x1e0)]),_0x191f42(0xa,_0x99589[_0x476a9e(0x300)]),_0x191f42(0xb,_0x99589[_0x476a9e(0x1b4)]),_0x191f42(0xc,(0x0,_0x99589[_0x476a9e(0x1a3)])(_0x6f676a)),_0x191f42(0xd,(0x0,_0x99589[_0x476a9e(0x1a3)])(_0xb8e6a3))],_0x462895);let _0x258625=(0x0,_0x99589['createIdentifier'])(_0x476a9e(0x20f));function _0x3073ba(_0x666729){const _0x233b91=_0x476a9e;let _0x35e9bd=_0x666729[_0x233b91(0x363)],_0x473c2=JSON[_0x233b91(0x23d)](_0x35e9bd);switch(_0x473c2[_0x233b91(0x343)]){case _0x590316[_0x233b91(0x36d)][_0x233b91(0x257)]:case _0x590316[_0x233b91(0x36d)]['HELLO']:{let _0x294b6e=_0x473c2['infoRsp'];return{..._0x473c2,'data':_0x294b6e,'cmd':_0x473c2['cmd']};}case _0x590316[_0x233b91(0x36d)]['JOIN']:{let _0xe37890=_0x473c2['joinRsp'];return{..._0x473c2,'data':_0xe37890,'cmd':_0x473c2[_0x233b91(0x343)]};}case _0x590316['CombCmd'][_0x233b91(0x2c5)]:{let _0x3b7c08=_0x473c2[_0x233b91(0x334)];switch(_0x3b7c08[_0x233b91(0x226)]){case _0x626b63[_0x233b91(0x247)][_0x233b91(0x22b)]:var _0x2059a5;return{..._0x473c2,'data':{..._0x3b7c08,'data':(_0x2059a5=_0x3b7c08[_0x233b91(0x357)])==null?void 0x0:_0x2059a5['cs']},'cmd':_0x473c2[_0x233b91(0x343)]};case _0x626b63[_0x233b91(0x247)][_0x233b91(0x204)]:var _0x17d90d;return{..._0x473c2,'data':{..._0x3b7c08,'data':(_0x17d90d=_0x3b7c08['csAckEvent'])==null?void 0x0:_0x17d90d['cs']},'cmd':_0x473c2[_0x233b91(0x343)]};case _0x626b63[_0x233b91(0x247)][_0x233b91(0x3da)]:var _0x2bfe5b;return{..._0x473c2,'data':{..._0x3b7c08,'data':(_0x2bfe5b=_0x3b7c08['newCsEvent'])==null?void 0x0:_0x2bfe5b['cs']},'cmd':_0x473c2[_0x233b91(0x343)]};case _0x626b63[_0x233b91(0x247)][_0x233b91(0x210)]:var _0x5209aa;return{..._0x473c2,'data':{..._0x3b7c08,'data':(_0x5209aa=_0x3b7c08[_0x233b91(0x13e)])==null?void 0x0:_0x5209aa['cs']},'cmd':_0x473c2['cmd']};case _0x626b63['CollaborationEvent'][_0x233b91(0x110)]:var _0x37132a;return{..._0x473c2,'data':{..._0x3b7c08,'data':(_0x37132a=_0x3b7c08['csShouldRetryEvent'])==null?void 0x0:_0x37132a['cs']},'cmd':_0x473c2['cmd']};case _0x626b63['CollaborationEvent'][_0x233b91(0x26e)]:return{..._0x473c2,'data':{..._0x3b7c08,'data':_0x3b7c08[_0x233b91(0x417)]},'cmd':_0x473c2[_0x233b91(0x343)]};case _0x626b63[_0x233b91(0x247)][_0x233b91(0x1ef)]:return{..._0x473c2,'data':{..._0x3b7c08,'data':_0x3b7c08[_0x233b91(0x3bf)]},'cmd':_0x473c2['cmd']};case _0x626b63[_0x233b91(0x247)][_0x233b91(0x3aa)]:return{..._0x473c2,'data':{..._0x3b7c08,'data':_0x3b7c08[_0x233b91(0x2d6)]},'cmd':_0x473c2[_0x233b91(0x343)]};case _0x626b63[_0x233b91(0x247)][_0x233b91(0x442)]:return{..._0x473c2,'data':{..._0x3b7c08,'data':_0x3b7c08[_0x233b91(0x420)]},'cmd':_0x473c2[_0x233b91(0x343)]};case _0x626b63[_0x233b91(0x247)][_0x233b91(0x240)]:case _0x626b63[_0x233b91(0x247)][_0x233b91(0x33c)]:return{..._0x473c2,'data':{..._0x3b7c08,'data':_0x3b7c08[_0x233b91(0x315)]},'cmd':_0x473c2[_0x233b91(0x343)]};case _0x626b63[_0x233b91(0x247)][_0x233b91(0x3d8)]:return{..._0x473c2,'data':{..._0x3b7c08,'data':_0x3b7c08[_0x233b91(0x420)]},'cmd':_0x473c2[_0x233b91(0x343)]};case _0x626b63[_0x233b91(0x247)]['MSG_FOR_ERROR']:return{..._0x473c2,'data':_0x3b7c08,'cmd':_0x473c2[_0x233b91(0x343)]};case _0x626b63[_0x233b91(0x247)][_0x233b91(0x2ca)]:return{..._0x473c2,'data':{..._0x3b7c08,'data':_0x3b7c08[_0x233b91(0x408)]},'cmd':_0x473c2['cmd']};case _0x626b63[_0x233b91(0x247)][_0x233b91(0x223)]:return{..._0x473c2,'data':{..._0x3b7c08,'data':_0x3b7c08[_0x233b91(0x287)]},'cmd':_0x473c2[_0x233b91(0x343)]};case _0x626b63[_0x233b91(0x247)][_0x233b91(0x218)]:return{..._0x473c2,'data':{..._0x3b7c08,'data':_0x3b7c08[_0x233b91(0x346)]},'cmd':_0x473c2[_0x233b91(0x343)]};case _0x626b63['CollaborationEvent'][_0x233b91(0x117)]:return{..._0x473c2,'data':{..._0x3b7c08,'data':_0x3b7c08[_0x233b91(0x2b7)]},'cmd':_0x473c2[_0x233b91(0x343)]};default:return _0x473c2;}}default:return _0x473c2;}}function _0x1f761d(_0xe4fb1b){const _0x1757f9=_0x476a9e;switch(_0xe4fb1b['cmd']){case _0x590316[_0x1757f9(0x36d)]['HEARTBEAT']:case _0x590316[_0x1757f9(0x36d)]['HELLO']:return JSON[_0x1757f9(0x27c)]({'cmd':_0xe4fb1b[_0x1757f9(0x343)],'routeKey':_0xe4fb1b[_0x1757f9(0x1c5)]});case _0x590316['CombCmd']['INGEST']:{let _0x5d11f2;switch(_0xe4fb1b[_0x1757f9(0x363)]['eventID']){case _0x626b63['CollaborationEvent'][_0x1757f9(0x26e)]:_0x5d11f2={'eventID':_0x626b63['CollaborationEvent'][_0x1757f9(0x26e)],'updateCursorEvent':_0xe4fb1b[_0x1757f9(0x363)][_0x1757f9(0x363)]};break;case _0x626b63[_0x1757f9(0x247)]['USERS_LEAVE']:_0x5d11f2={'eventID':_0x626b63['CollaborationEvent'][_0x1757f9(0x3aa)],'leaveEvent':_0xe4fb1b[_0x1757f9(0x363)][_0x1757f9(0x363)]};break;case _0x626b63[_0x1757f9(0x247)][_0x1757f9(0x1ef)]:_0x5d11f2={'eventID':_0x626b63['CollaborationEvent'][_0x1757f9(0x1ef)],'joinEvent':_0xe4fb1b[_0x1757f9(0x363)][_0x1757f9(0x363)]};break;case _0x626b63[_0x1757f9(0x247)]['LIVESHARE_NEW_HOST']:_0x5d11f2={'eventID':_0x626b63[_0x1757f9(0x247)][_0x1757f9(0x442)],'liveShareNewHost':_0xe4fb1b[_0x1757f9(0x363)][_0x1757f9(0x363)]};break;case _0x626b63[_0x1757f9(0x247)][_0x1757f9(0x33c)]:_0x5d11f2={'eventID':_0x626b63['CollaborationEvent'][_0x1757f9(0x33c)],'liveShareOperation':_0xe4fb1b[_0x1757f9(0x363)][_0x1757f9(0x363)]};break;case _0x626b63[_0x1757f9(0x247)][_0x1757f9(0x3d8)]:_0x5d11f2={'eventID':_0x626b63[_0x1757f9(0x247)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0xe4fb1b[_0x1757f9(0x363)][_0x1757f9(0x363)]};break;case _0x626b63[_0x1757f9(0x247)]['LIVESHARE_REQUEST_HOST']:_0x5d11f2={'eventID':_0x626b63[_0x1757f9(0x247)][_0x1757f9(0x19d)],'liveShareRequestHost':_0xe4fb1b[_0x1757f9(0x363)][_0x1757f9(0x363)]};break;case _0x626b63[_0x1757f9(0x247)][_0x1757f9(0x240)]:_0x5d11f2={'eventID':_0x626b63[_0x1757f9(0x247)][_0x1757f9(0x240)]};break;default:_0x5d11f2={'eventID':_0xe4fb1b[_0x1757f9(0x363)][_0x1757f9(0x226)]};}return JSON[_0x1757f9(0x27c)]({'cmd':_0xe4fb1b[_0x1757f9(0x343)],'routeKey':_0xe4fb1b[_0x1757f9(0x1c5)],'collaMsg':_0x5d11f2});}case _0x590316[_0x1757f9(0x36d)][_0x1757f9(0x386)]:return JSON[_0x1757f9(0x27c)]({'cmd':_0xe4fb1b['cmd'],'routeKey':_0xe4fb1b[_0x1757f9(0x1c5)],'joinReq':_0xe4fb1b['data']});case _0x590316['CombCmd']['LEAVE']:return JSON[_0x1757f9(0x27c)]({'cmd':_0xe4fb1b[_0x1757f9(0x343)],'routeKey':_0xe4fb1b[_0x1757f9(0x1c5)],'leaveReq':_0xe4fb1b[_0x1757f9(0x363)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}let _0x283664=(0x0,_0x99589[_0x476a9e(0x24d)])('univer-pro.collaboration-client-socket-service');function _0x36b1af(_0x16031e,_0x3b0506,_0x13e1ba){return _0x16031e+'/'+_0x3b0506+'/unit/'+_0x13e1ba+'/new_changes';}let _0x9d695d=class extends _0x99589[_0x476a9e(0x438)]{constructor(_0x15085c,_0x33edc9,_0x32db11,_0x59fb2e,_0x5d4ab2){const _0x36acd2=_0x476a9e;super(),this[_0x36acd2(0x252)]=_0x15085c,this[_0x36acd2(0x326)]=_0x33edc9,this[_0x36acd2(0x249)]=_0x32db11,this[_0x36acd2(0x37d)]=_0x59fb2e,this[_0x36acd2(0x136)]=_0x5d4ab2;}[_0x476a9e(0x26f)](_0x4b4431){const _0x50e9bf=_0x476a9e;let _0x77d59e=this['_injector'][_0x50e9bf(0x2ee)](_0x472468[_0x50e9bf(0x1c3)]);if(!_0x77d59e)throw Error(_0x50e9bf(0x1d7));let _0x43d39b=_0x77d59e[_0x50e9bf(0x178)](_0x4b4431);if(!_0x43d39b)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');let _0x4816a2=new _0x99589[(_0x50e9bf(0x38c))](),_0x340a79=new _0x3666d5[(_0x50e9bf(0x2db))]();_0x4816a2[_0x50e9bf(0x42a)](_0x43d39b[_0x50e9bf(0x350)][_0x50e9bf(0x36e)](_0x15bae8=>_0x340a79[_0x50e9bf(0x279)](_0x15bae8))),_0x4816a2['add']((0x0,_0x99589[_0x50e9bf(0x27f)])(()=>_0x340a79[_0x50e9bf(0x372)]()));let _0x44f43c=new _0x3666d5[(_0x50e9bf(0x2db))]();_0x4816a2[_0x50e9bf(0x42a)](_0x43d39b['error$'][_0x50e9bf(0x36e)](_0xb3bb36=>_0x44f43c[_0x50e9bf(0x279)](_0xb3bb36))),_0x4816a2[_0x50e9bf(0x42a)]((0x0,_0x99589[_0x50e9bf(0x27f)])(()=>_0x44f43c[_0x50e9bf(0x372)]()));let _0x79c7fb=new _0x3666d5[(_0x50e9bf(0x2db))]();_0x4816a2['add'](_0x43d39b['message$'][_0x50e9bf(0x36e)](_0x2be39b=>{const _0x56e910=_0x50e9bf;let _0x3b6c22=_0x3073ba(_0x2be39b);_0x79c7fb[_0x56e910(0x279)](_0x3b6c22);})),_0x4816a2['add']((0x0,_0x99589[_0x50e9bf(0x27f)])(()=>_0x79c7fb[_0x50e9bf(0x372)]()));let _0x9ae68f,_0x13a82d=()=>{const _0x3fc1a5=_0x50e9bf;_0x44f43c[_0x3fc1a5(0x279)](new Event(_0x3fc1a5(0x185))),_0x340a79[_0x3fc1a5(0x279)](new Event(_0x3fc1a5(0x185))),_0x9ae68f[_0x3fc1a5(0x1c1)]();};return _0x9ae68f={'memberID':'','close$':_0x340a79[_0x50e9bf(0x405)](),'error$':_0x44f43c['asObservable'](),'open$':_0x43d39b[_0x50e9bf(0x2cb)],'message$':_0x79c7fb[_0x50e9bf(0x405)](),'send':_0xc2c0f3=>{const _0x2fb4c6=_0x50e9bf;if(_0xc2c0f3[_0x2fb4c6(0x343)]===_0x590316[_0x2fb4c6(0x36d)][_0x2fb4c6(0x16f)]){if(_0xc2c0f3[_0x2fb4c6(0x363)]['eventID']===_0x626b63[_0x2fb4c6(0x247)][_0x2fb4c6(0x432)]){this[_0x2fb4c6(0x2e4)](_0x9ae68f,_0xc2c0f3['data'])['catch'](_0x123789=>{const _0x55e2d6=_0x2fb4c6;this[_0x55e2d6(0x37d)]['error'](_0x123789),_0x13a82d();});return;}if(_0xc2c0f3[_0x2fb4c6(0x363)][_0x2fb4c6(0x226)]===_0x626b63[_0x2fb4c6(0x247)][_0x2fb4c6(0x2b0)]){let _0x57d1df=_0xc2c0f3[_0x2fb4c6(0x363)];this[_0x2fb4c6(0x13f)](_0x57d1df)['then'](_0x3e8d5a=>{const _0x1ec0de=_0x2fb4c6;_0x79c7fb[_0x1ec0de(0x279)]({'cmd':_0x590316[_0x1ec0de(0x36d)][_0x1ec0de(0x2c5)],'code':_0x590316[_0x1ec0de(0x3ba)]['OK'],'routeKey':_0x57d1df['data'][_0x1ec0de(0x1b8)],'routeType':'','data':{'eventID':_0x626b63[_0x1ec0de(0x247)][_0x1ec0de(0x30b)],'data':{'changesets':_0x3e8d5a}}});})[_0x2fb4c6(0x3e3)](_0x517da7=>{const _0x103f65=_0x2fb4c6;this['_logService'][_0x103f65(0x1d5)](_0x517da7),_0x13a82d();});return;}}_0x43d39b[_0x2fb4c6(0x2ba)](_0x1f761d(_0xc2c0f3));},'close':()=>{const _0x5835e8=_0x50e9bf;_0x43d39b['close'](),_0x4816a2[_0x5835e8(0x138)]();}},_0x9ae68f;}async['_submitChangeset'](_0x494d9d,_0x423df4){const _0x5a64fc=_0x476a9e;var _0x467d05;let {unitType:_0x126bfb,unitID:_0x4edaf0,changeset:_0x1862ad}=_0x423df4[_0x5a64fc(0x363)],_0x5a3e3d={'unitID':_0x4edaf0,'memberID':_0x494d9d[_0x5a64fc(0x3d1)],'type':_0x126bfb,'changeset':(0x0,_0x626b63[_0x5a64fc(0x42b)])(_0x1862ad)},_0x261125=this[_0x5a64fc(0x249)][_0x5a64fc(0x3b0)](_0x355bce),_0x305857=_0x36b1af((_0x467d05=_0x261125==null?void 0x0:_0x261125[_0x5a64fc(0x1d1)])==null?_0x5a64fc(0x33b):_0x467d05,_0x126bfb,_0x4edaf0);try{await this[_0x5a64fc(0x326)][_0x5a64fc(0x31b)](_0x305857,{'body':_0x5a3e3d});}catch(_0x15c141){throw this['_logService']['error'](_0x5a64fc(0x312),_0x5a64fc(0x329)),_0x15c141;}}async['_fetchMissChangesets'](_0x4f0136){const _0x221ea2=_0x476a9e;let {unitID:_0x3fa430,from:_0x35fd6d,to:_0x2b1e64,unitType:_0x19957e}=_0x4f0136['data'];return(await this[_0x221ea2(0x136)][_0x221ea2(0x3d5)]({'metadata':void 0x0},{'unitID':_0x3fa430,'type':_0x19957e,'from':_0x35fd6d,'to':_0x2b1e64}))[_0x221ea2(0x439)]['map'](_0x3d9122=>((_0x3d9122[_0x221ea2(0x15e)]===null||_0x3d9122[_0x221ea2(0x15e)]===void 0x0)&&(_0x3d9122[_0x221ea2(0x15e)]=[]),_0x3d9122));}};_0x9d695d=_0x10b7c9([_0x191f42(0x0,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589[_0x476a9e(0x239)])),_0x191f42(0x1,(0x0,_0x99589['Inject'])(_0x472468[_0x476a9e(0x40a)])),_0x191f42(0x2,_0x99589[_0x476a9e(0x164)]),_0x191f42(0x3,_0x99589['ILogService']),_0x191f42(0x4,_0x626b63['ISnapshotServerService'])],_0x9d695d);let _0x543fd0=class extends _0x99589[_0x476a9e(0x438)]{get[_0x476a9e(0x285)](){return this['_socket$']['getValue']();}constructor(_0x13bf1a,_0x260bfe,_0x41c2a9,_0x578190,_0x358eef,_0x89c8e3){const _0x58c302=_0x476a9e;super(),this[_0x58c302(0x252)]=_0x13bf1a,this['_logService']=_0x260bfe,this[_0x58c302(0x249)]=_0x41c2a9,this['_socketService']=_0x578190,this['_collaborationUIEventService']=_0x358eef,this[_0x58c302(0x294)]=_0x89c8e3,_0x222df1(this,_0x58c302(0x1d9),new _0x3666d5[(_0x58c302(0x2ab))](void 0x0)),_0x222df1(this,_0x58c302(0x1b7),this[_0x58c302(0x1d9)][_0x58c302(0x405)]()),_0x222df1(this,'_candidateSocket',null),_0x222df1(this,_0x58c302(0x201),new Map()),_0x222df1(this,_0x58c302(0x2bb),new _0x3666d5[(_0x58c302(0x2ab))](0x0)),_0x222df1(this,_0x58c302(0x394),this['_status$']['asObservable']()),_0x222df1(this,_0x58c302(0x3c4),!0x1),_0x222df1(this,_0x58c302(0x340),void 0x0),_0x222df1(this,_0x58c302(0x19b),0x0),_0x222df1(this,_0x58c302(0x1b5),null),_0x222df1(this,_0x58c302(0x246),void 0x0),_0x222df1(this,_0x58c302(0x403),void 0x0),this[_0x58c302(0x2e5)]();}['_listenToNetworkCondition'](){const _0xe4663=_0x476a9e;this[_0xe4663(0x294)]&&this['disposeWithMe'](this['_networkConditionService'][_0xe4663(0x1a8)][_0xe4663(0x36e)](_0x317107=>{const _0x18682e=_0xe4663;_0x317107&&!this['_socket']&&this[_0x18682e(0x37b)](),_0x317107||this[_0x18682e(0x25f)]();}));}[_0x476a9e(0x138)](){const _0x419703=_0x476a9e;var _0x528dc6;super['dispose'](),(_0x528dc6=this['_socketMessageSubscription'])==null||_0x528dc6[_0x419703(0x387)](),this[_0x419703(0x1b5)]=null,this['_clearRetryConnectingTimer'](),this['_clearTimeoutTimer'](),this[_0x419703(0x1b1)](),this['_sessions'][_0x419703(0x411)](_0x11734a=>_0x11734a[_0x419703(0x138)]()),this[_0x419703(0x201)][_0x419703(0x3fe)](),this[_0x419703(0x2bb)][_0x419703(0x372)]();}async[_0x476a9e(0x115)](_0x1a1220){const _0x179d9c=_0x476a9e;if(this[_0x179d9c(0x201)][_0x179d9c(0x177)](_0x1a1220))return this[_0x179d9c(0x201)][_0x179d9c(0x2ee)](_0x1a1220);this['_tryEnsureSocket']();let _0x3e8e58=this[_0x179d9c(0x252)][_0x179d9c(0x1ce)](_0xbfbbbd,_0x1a1220,this['_socket$'][_0x179d9c(0x405)]());return this[_0x179d9c(0x201)]['set'](_0x1a1220,_0x3e8e58),_0x3e8e58;}[_0x476a9e(0x211)](_0x48d77d){const _0x3666a3=_0x476a9e;let _0x58976f=this[_0x3666a3(0x201)][_0x3666a3(0x2ee)](_0x48d77d);if(_0x58976f&&(this[_0x3666a3(0x201)][_0x3666a3(0x2a9)](_0x48d77d),_0x58976f[_0x3666a3(0x1c1)]()),!this[_0x3666a3(0x201)][_0x3666a3(0x443)]){var _0x1dd167;(_0x1dd167=this[_0x3666a3(0x285)])==null||_0x1dd167['close']();}}[_0x476a9e(0x37b)](){const _0x475b34=_0x476a9e;this[_0x475b34(0x19b)]=0x0,this[_0x475b34(0x391)](),this[_0x475b34(0x331)]();}[_0x476a9e(0x391)](){this['_retryConnectingTimer']!=null&&(clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null);}async[_0x476a9e(0x33a)](){const _0x2fda56=_0x476a9e;var _0x1c6fc3;let _0x7487c6=this[_0x2fda56(0x249)][_0x2fda56(0x3b0)](_0x355bce),_0x20efe0=(_0x1c6fc3=_0x7487c6==null?void 0x0:_0x7487c6[_0x2fda56(0x3b6)])==null?_0x238496:_0x1c6fc3,_0x80b712=await this[_0x2fda56(0x1f4)][_0x2fda56(0x178)](_0x20efe0);return this[_0x2fda56(0x34a)]=_0x80b712,_0x80b712;}async[_0x476a9e(0x13b)](){const _0x2d565e=_0x476a9e;try{var _0x42fe23,_0x34c905;let _0x50afa1=(_0x42fe23=(_0x34c905=this[_0x2d565e(0x285)])==null?this[_0x2d565e(0x34a)]:_0x34c905)==null?await this[_0x2d565e(0x33a)]():_0x42fe23;if(_0x50afa1){var _0x397664;let _0x4c2c3c=_0x50afa1[_0x2d565e(0x2ba)];_0x50afa1['send']=_0xf80b5f=>(_0xf80b5f[_0x2d565e(0x343)]!==_0x590316[_0x2d565e(0x36d)][_0x2d565e(0x3de)]&&this[_0x2d565e(0x338)](),_0x4c2c3c[_0x2d565e(0x1e4)](_0x50afa1,[_0xf80b5f])),(_0x397664=this['_socketMessageSubscription'])==null||_0x397664['unsubscribe'](),this['_socketMessageSubscription']=null,this['_socketMessageSubscription']=_0x50afa1[_0x2d565e(0x24c)][_0x2d565e(0x36e)](_0x5c735a=>this['_onMessage'](_0x50afa1,_0x5c735a)),_0x50afa1['error$'][_0x2d565e(0x42f)]((0x0,_0x894c66[_0x2d565e(0x3ef)])(0x1))['subscribe'](_0x16f214=>this[_0x2d565e(0x37d)][_0x2d565e(0x1d5)]('[CollaborationSessionService]:\x20socket\x20error',_0x16f214)),_0x50afa1[_0x2d565e(0x2cb)]['pipe']((0x0,_0x894c66[_0x2d565e(0x3ef)])(0x1))[_0x2d565e(0x36e)](()=>{this['_onConnectionOpen'](_0x50afa1);}),_0x50afa1[_0x2d565e(0x350)]['pipe']((0x0,_0x894c66[_0x2d565e(0x3ef)])(0x1))[_0x2d565e(0x36e)](_0x3ff7da=>{const _0x264985=_0x2d565e;this[_0x264985(0x37d)][_0x264985(0x25c)](_0x264985(0x34d),_0x264985(0x25b),_0x3ff7da),this[_0x264985(0x351)]();});}}catch(_0x557033){this[_0x2d565e(0x37d)][_0x2d565e(0x1d5)](_0x557033),this[_0x2d565e(0x351)]();}}[_0x476a9e(0x31e)](_0x3bf6de){const _0x2888fe=_0x476a9e;this[_0x2888fe(0x37d)]['debug'](_0x2888fe(0x34d),_0x2888fe(0x3d4)),_0x3bf6de[_0x2888fe(0x2ba)]({'cmd':_0x590316['CombCmd'][_0x2888fe(0x133)]}),this[_0x2888fe(0x338)]();}[_0x476a9e(0x25f)](){const _0x5610d8=_0x476a9e;this[_0x5610d8(0x3c4)]=!0x1,this['_candidateSocket']=null,this[_0x5610d8(0x2bb)][_0x5610d8(0x279)](0x2),this[_0x5610d8(0x1d9)][_0x5610d8(0x279)](null),this[_0x5610d8(0x286)](),this[_0x5610d8(0x1b1)]();}[_0x476a9e(0x351)](){const _0x33c716=_0x476a9e;var _0x3c1d31;this[_0x33c716(0x25f)](),this[_0x33c716(0x19b)]<((_0x3c1d31=this['_configService'][_0x33c716(0x3b0)]('RETRY_CONNECTING_MAX_COUNT'))==null?0x3:_0x3c1d31)?(this[_0x33c716(0x1b0)]['emitEvent']({'id':_0x33c716(0x222)}),this[_0x33c716(0x331)]()):this[_0x33c716(0x1b0)][_0x33c716(0x39b)]({'id':_0x33c716(0x3bb)});}[_0x476a9e(0x331)](){const _0x586493=_0x476a9e;var _0x48ddfc;let _0x27cf27=this[_0x586493(0x19b)],_0x1824b4=this[_0x586493(0x249)][_0x586493(0x3b0)](_0x355bce),_0x56aee=_0x27cf27===0x0?0x0:((_0x48ddfc=_0x1824b4==null?void 0x0:_0x1824b4[_0x586493(0x2cd)])==null?0x4e20:_0x48ddfc)*0x2**_0x27cf27;this[_0x586493(0x340)]=setTimeout(()=>{const _0x40c756=_0x586493;clearTimeout(this[_0x40c756(0x340)]),this[_0x40c756(0x340)]=null,this['_tryEnsureSocket']();},_0x56aee),this[_0x586493(0x19b)]+=0x1;}['_onMessage'](_0x5bc34f,_0x3ba670){const _0x494de6=_0x476a9e;let {cmd:_0x395394}=_0x3ba670;_0x395394===_0x590316[_0x494de6(0x36d)][_0x494de6(0x133)]&&!this['_socketReady']&&(_0x5bc34f[_0x494de6(0x3d1)]=_0x3ba670[_0x494de6(0x363)][_0x494de6(0x3d1)],this[_0x494de6(0x1d9)][_0x494de6(0x279)](_0x5bc34f),this['_status$']['next'](0x3),this[_0x494de6(0x3c4)]=!0x0,this[_0x494de6(0x34a)]=null),_0x395394===_0x590316[_0x494de6(0x36d)]['HEARTBEAT']&&this['_clearTimeoutTimer'](),this['_rescheduleHeartbeat']();}[_0x476a9e(0x338)](){const _0x5c2e65=_0x476a9e;var _0x44078d;this['_clearHeartbeatTimer'](),this[_0x5c2e65(0x246)]=setTimeout(()=>this['_sendHeartbeat'](),(_0x44078d=this[_0x5c2e65(0x249)][_0x5c2e65(0x3b0)]('HEARTBEAT_INTERVAL'))==null?0x7530:_0x44078d);}[_0x476a9e(0x119)](){const _0x36ae2e=_0x476a9e;this[_0x36ae2e(0x285)][_0x36ae2e(0x2ba)]({'cmd':_0x590316[_0x36ae2e(0x36d)][_0x36ae2e(0x257)]}),this[_0x36ae2e(0x43c)]();}[_0x476a9e(0x43c)](){const _0x31129a=_0x476a9e;var _0x516d74;this[_0x31129a(0x403)]=setTimeout(()=>this[_0x31129a(0x351)](),(_0x516d74=this[_0x31129a(0x249)][_0x31129a(0x3b0)](_0x31129a(0x2e0)))==null?_0x403e9b:_0x516d74);}[_0x476a9e(0x1b1)](){const _0x2167a9=_0x476a9e;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x2167a9(0x246)]),this[_0x2167a9(0x246)]=null);}['_clearTimeoutTimer'](){const _0x2880b6=_0x476a9e;this[_0x2880b6(0x403)]!=null&&(clearTimeout(this[_0x2880b6(0x403)]),this[_0x2880b6(0x403)]=null);}};_0x543fd0=_0x10b7c9([_0x191f42(0x0,(0x0,_0x99589['Inject'])(_0x99589['Injector'])),_0x191f42(0x1,_0x99589[_0x476a9e(0x1e0)]),_0x191f42(0x2,_0x99589['IConfigService']),_0x191f42(0x3,_0x283664),_0x191f42(0x4,(0x0,_0x99589['Inject'])(_0x4cf82f)),_0x191f42(0x5,(0x0,_0x99589[_0x476a9e(0x1a3)])(_0x258625))],_0x543fd0);let _0x78b026=class extends _0x99589[_0x476a9e(0x135)]{constructor(_0x55ba26,_0x2bf82d,_0x48d88c,_0x30bb3d){const _0x2671e1=_0x476a9e;var _0x23a08d;super(),this[_0x2671e1(0x252)]=_0x55ba26,this[_0x2671e1(0x170)]=_0x2bf82d,this[_0x2671e1(0x249)]=_0x48d88c,this[_0x2671e1(0x277)]=_0x30bb3d,_0x222df1(this,'_entities',new Map()),_0x222df1(this,_0x2671e1(0x3e8),new _0x3666d5[(_0x2671e1(0x2db))]()),_0x222df1(this,'entityInit$',this[_0x2671e1(0x3e8)][_0x2671e1(0x405)]()),((_0x23a08d=this[_0x2671e1(0x249)]['getConfig'](_0x2671e1(0x203)))==null?void 0x0:_0x23a08d['enableCollaboration'])!==!0x1&&this[_0x2671e1(0x24f)]();}[_0x476a9e(0x138)](){const _0x4641f6=_0x476a9e;super[_0x4641f6(0x138)](),this[_0x4641f6(0x306)]['forEach'](_0x8f585=>_0x8f585['dispose']()),this[_0x4641f6(0x306)][_0x4641f6(0x3fe)]();}['getCollabEntity'](_0x555766){const _0x2bce22=_0x476a9e;var _0x2b6f30;return(_0x2b6f30=this[_0x2bce22(0x306)][_0x2bce22(0x2ee)](_0x555766))==null?null:_0x2b6f30;}[_0x476a9e(0x159)](_0x2dccfe){const _0x433101=_0x476a9e;let _0x2350e2=this[_0x433101(0x165)](_0x2dccfe);return _0x2350e2?(0x0,_0x3666d5['of'])(_0x2350e2):this[_0x433101(0x3e8)]['pipe']((0x0,_0x894c66['filter'])(_0x214efa=>_0x214efa[_0x433101(0x1b8)]===_0x2dccfe));}[_0x476a9e(0x1a5)](_0x179e81){const _0x10111b=_0x476a9e;return(0x0,_0x3666d5[_0x10111b(0x1ac)])(this[_0x10111b(0x159)](_0x179e81)[_0x10111b(0x42f)]((0x0,_0x894c66[_0x10111b(0x10f)])(()=>void 0x0)));}['_init'](){const _0x464382=_0x476a9e;this[_0x464382(0x277)]['getTypeOfUnitAdded$'](_0x99589[_0x464382(0x3ce)]['UNIVER_SHEET'])[_0x464382(0x42f)]((0x0,_0x3666d5[_0x464382(0x327)])(this[_0x464382(0x412)]),(0x0,_0x894c66[_0x464382(0x38d)])(0x10))[_0x464382(0x36e)](async _0x2c4028=>{const _0x39db5f=_0x464382;let _0x17bed0=_0x2c4028[_0x39db5f(0x1bc)][_0x39db5f(0x3f2)](),_0x1cee96=await this[_0x39db5f(0x155)](_0x17bed0,_0x99589['UniverInstanceType'][_0x39db5f(0x3c2)]);this[_0x39db5f(0x306)][_0x39db5f(0x2fd)](_0x17bed0,_0x1cee96);}),this['_univerInstanceService'][_0x464382(0x43d)](_0x99589[_0x464382(0x3ce)]['UNIVER_DOC'])['pipe']((0x0,_0x3666d5[_0x464382(0x327)])(this[_0x464382(0x412)]),(0x0,_0x894c66[_0x464382(0x38d)])(0x10))[_0x464382(0x42f)]((0x0,_0x894c66[_0x464382(0x41b)])(_0x2654e2=>!_0x2654e2[_0x464382(0x1bc)][_0x464382(0x3f2)]()[_0x464382(0x232)]('__')))[_0x464382(0x36e)](async _0x17d041=>{const _0x4475d4=_0x464382;let _0x52ef9d=_0x17d041[_0x4475d4(0x1bc)]['getUnitId'](),_0x5a3704=await this[_0x4475d4(0x155)](_0x52ef9d,_0x99589[_0x4475d4(0x3ce)][_0x4475d4(0x396)]);this[_0x4475d4(0x306)]['set'](_0x52ef9d,_0x5a3704);}),this[_0x464382(0x277)]['getTypeOfUnitAdded$'](_0x99589[_0x464382(0x3ce)]['UNIVER_SLIDE'])['pipe']((0x0,_0x3666d5['takeUntil'])(this[_0x464382(0x412)]),(0x0,_0x894c66[_0x464382(0x38d)])(0x10))[_0x464382(0x36e)](async _0x33b563=>{const _0x919c6=_0x464382;let _0x58c9cf=_0x33b563[_0x919c6(0x1bc)][_0x919c6(0x3f2)](),_0x2dd4ab=await this[_0x919c6(0x155)](_0x58c9cf,_0x99589[_0x919c6(0x3ce)][_0x919c6(0x23a)]);this[_0x919c6(0x306)][_0x919c6(0x2fd)](_0x58c9cf,_0x2dd4ab);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x99589['UniverInstanceType'][_0x464382(0x3c0)])[_0x464382(0x42f)]((0x0,_0x3666d5[_0x464382(0x327)])(this[_0x464382(0x412)]),(0x0,_0x894c66[_0x464382(0x38d)])(0x10))[_0x464382(0x36e)](async _0x16f1d7=>{const _0x50e823=_0x464382;let _0x2d1bfe=_0x16f1d7[_0x50e823(0x1bc)][_0x50e823(0x3f2)](),_0x479d4e=await this[_0x50e823(0x155)](_0x2d1bfe,_0x99589[_0x50e823(0x3ce)][_0x50e823(0x3c0)]);this[_0x50e823(0x306)][_0x50e823(0x2fd)](_0x2d1bfe,_0x479d4e);}),(0x0,_0x3666d5['merge'])(this[_0x464382(0x277)][_0x464382(0x148)](_0x99589['UniverInstanceType'][_0x464382(0x3c2)]),this[_0x464382(0x277)][_0x464382(0x148)](_0x99589[_0x464382(0x3ce)][_0x464382(0x396)]),this['_univerInstanceService'][_0x464382(0x148)](_0x99589['UniverInstanceType'][_0x464382(0x23a)]),this['_univerInstanceService'][_0x464382(0x148)](_0x99589[_0x464382(0x3ce)][_0x464382(0x3c0)]))[_0x464382(0x42f)]((0x0,_0x3666d5[_0x464382(0x327)])(this[_0x464382(0x412)]))[_0x464382(0x36e)](_0x11aec2=>{const _0x23449c=_0x464382;let _0x18edf2=_0x11aec2[_0x23449c(0x3f2)](),_0x1185b4=this[_0x23449c(0x306)]['get'](_0x18edf2);_0x1185b4&&(_0x1185b4[_0x23449c(0x138)](),this['_entities'][_0x23449c(0x2a9)](_0x18edf2));});}async[_0x476a9e(0x155)](_0x46f995,_0x42ae23){const _0x40bf81=_0x476a9e;let _0x30559a=await this['_collabSessionService'][_0x40bf81(0x115)](_0x46f995),_0x391ae4=this[_0x40bf81(0x252)][_0x40bf81(0x1ce)](this[_0x40bf81(0x244)](_0x42ae23),_0x46f995,_0x42ae23,_0x30559a);return await _0x391ae4['init'](),this['_entityInit$']['next'](_0x391ae4),_0x391ae4;}[_0x476a9e(0x244)](_0x5a5e97){const _0x4f598e=_0x476a9e;switch(_0x5a5e97){case _0x99589[_0x4f598e(0x3ce)]['UNIVER_DOC']:return _0xb7ed45;case _0x99589[_0x4f598e(0x3ce)][_0x4f598e(0x3c2)]:return _0x7976d7;case _0x99589['UniverInstanceType']['UNIVER_SLIDE']:return _0x462895;case _0x99589[_0x4f598e(0x3ce)]['UNIVER_BASE']:return _0xb0369d;default:throw Error(_0x4f598e(0x428)+_0x5a5e97);}}};_0x78b026=_0x10b7c9([_0x191f42(0x0,(0x0,_0x99589['Inject'])(_0x99589[_0x476a9e(0x239)])),_0x191f42(0x1,(0x0,_0x99589['Inject'])(_0x543fd0)),_0x191f42(0x2,_0x99589[_0x476a9e(0x164)]),_0x191f42(0x3,_0x99589[_0x476a9e(0x16c)])],_0x78b026);var _0x4ecce1=_0x476a9e(0x317),_0xc4be99=_0x476a9e(0x258);let _0x37b790=class extends _0x99589[_0x476a9e(0x438)]{constructor(_0x49b1b7,_0x21f337){const _0x1e75c3=_0x476a9e;super(),this['_univerInstanceService']=_0x49b1b7,this[_0x1e75c3(0x249)]=_0x21f337,this[_0x1e75c3(0x24f)]();}[_0x476a9e(0x24f)](){const _0x4740a5=_0x476a9e;this['disposeWithMe'](this[_0x4740a5(0x277)]['focused$'][_0x4740a5(0x36e)](()=>{const _0x5e1232=_0x4740a5;var _0x2c0205;let _0x2d6e3d=this[_0x5e1232(0x277)][_0x5e1232(0x26c)](),_0x21cd91=(_0x2c0205=this['_configService']['getConfig'](_0x5e1232(0x21d)))==null?'Univer':_0x2c0205;_0x2d6e3d instanceof _0x99589[_0x5e1232(0x147)]&&(_0x21cd91=_0x2d6e3d[_0x5e1232(0x328)]),document[_0x5e1232(0x3a0)]=_0x21cd91;}));}};_0x37b790=_0x10b7c9([_0x191f42(0x0,_0x99589[_0x476a9e(0x16c)]),_0x191f42(0x1,_0x99589[_0x476a9e(0x164)])],_0x37b790);let _0x59f096=function(_0x1c281){const _0x1ba379=_0x476a9e;return _0x1c281['URL']=_0x1ba379(0x1fa),_0x1c281['UUID']='UUID',_0x1c281[_0x1ba379(0x320)]=_0x1ba379(0x320),_0x1c281;}({}),_0x268745=(0x0,_0x99589[_0x476a9e(0x24d)])('base-ui.attachment-io.service'),_0x541ae7=class{constructor(_0x100239,_0x244f69,_0x66fb08){const _0x43a57a=_0x476a9e;this[_0x43a57a(0x326)]=_0x100239,this[_0x43a57a(0x249)]=_0x244f69,this['_univerInstanceService']=_0x66fb08;}[_0x476a9e(0x1a6)](){const _0x5bcd7c=_0x476a9e;var _0x2ae37b;return(_0x2ae37b=this['_getConfig']()[_0x5bcd7c(0x206)])==null?{}:_0x2ae37b;}async['saveAttachment'](_0xadb9c){const _0x5d98ae=_0x476a9e;let _0x5eeae2=this['getUploadOptions']();if(_0x339f2a(_0xadb9c,_0x5eeae2),_0x5eeae2['upload'])return _0x5eeae2[_0x5d98ae(0x261)](_0xadb9c);let _0x4c7fc9=await this[_0x5d98ae(0x235)](_0xadb9c);return{'id':_0x4c7fc9,'name':_0xadb9c[_0x5d98ae(0x328)],'mimeType':_0xadb9c[_0x5d98ae(0x2c9)],'size':_0xadb9c['size'],'sourceType':_0x5d98ae(0x3bc),'source':_0x4c7fc9};}async['_upload'](_0x593462){const _0x39983c=_0x476a9e;let _0x1dc8f9=this[_0x39983c(0x277)][_0x39983c(0x26c)](),_0x4658bb=_0x1dc8f9==null?void 0x0:_0x1dc8f9[_0x39983c(0x3f2)]();if(!_0x4658bb)throw Error(_0x39983c(0x3d7));let _0x18bfc5=new FormData();_0x18bfc5[_0x39983c(0x273)](_0x39983c(0x215),_0x593462);let _0x3bfc29=this[_0x39983c(0x323)]()+_0x39983c(0x3c7)+_0x593462[_0x39983c(0x443)]['toString']()+'&source='+_0x590316[_0x39983c(0x168)][_0x39983c(0x144)]+_0x39983c(0x32f)+encodeURIComponent(_0x4658bb),_0x11be1e=(await this[_0x39983c(0x326)][_0x39983c(0x31b)](_0x3bfc29,{'body':_0x18bfc5}))[_0x39983c(0x256)]['FileId'];if(typeof _0x11be1e!=_0x39983c(0x112)||!_0x11be1e)throw Error(_0x39983c(0x2c8));return _0x11be1e;}['_getUploadFileURL'](){const _0x12b4ad=_0x476a9e;var _0x140973;return(_0x140973=this[_0x12b4ad(0x1fc)]()[_0x12b4ad(0x263)])==null?'/universer-api/stream/file/upload':_0x140973;}[_0x476a9e(0x1fc)](){const _0x31c9a8=_0x476a9e;var _0x4328b7;return(_0x4328b7=this[_0x31c9a8(0x249)][_0x31c9a8(0x3b0)](_0x31c9a8(0x203)))==null?{}:_0x4328b7;}};_0x541ae7=_0x10b7c9([_0x191f42(0x0,(0x0,_0x99589['Inject'])(_0x472468[_0x476a9e(0x40a)])),_0x191f42(0x1,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589[_0x476a9e(0x164)])),_0x191f42(0x2,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589[_0x476a9e(0x16c)]))],_0x541ae7);function _0x339f2a(_0x1775cf,_0x41bbcd){const _0x570161=_0x476a9e;var _0x3479d4;if(_0x41bbcd[_0x570161(0x3f1)]!=null&&_0x1775cf[_0x570161(0x443)]>_0x41bbcd['maxSize'])throw Error(_0x570161(0x359));if((_0x3479d4=_0x41bbcd['accept'])!=null&&_0x3479d4[_0x570161(0x1ff)]&&!_0x41bbcd['accept'][_0x570161(0x1ab)](_0x50b7ce=>_0x1775cf[_0x570161(0x2c9)]===_0x50b7ce||_0x1775cf[_0x570161(0x328)]['endsWith'](_0x50b7ce)||_0x50b7ce[_0x570161(0x167)]('/*')&&_0x1775cf[_0x570161(0x2c9)][_0x570161(0x232)](_0x50b7ce[_0x570161(0x21c)](0x0,-0x1))))throw Error(_0x570161(0x344));}let _0x17366a=class{constructor(_0x214638,_0x1d3672,_0x542a97){const _0x21c4f6=_0x476a9e;this[_0x21c4f6(0x249)]=_0x214638,this[_0x21c4f6(0x326)]=_0x1d3672,this[_0x21c4f6(0x15c)]=_0x542a97,this[_0x21c4f6(0x151)]();}[_0x476a9e(0x151)](){const _0x324ee3=_0x476a9e;this[_0x324ee3(0x326)][_0x324ee3(0x1d3)]({'priority':0x1,'interceptor':(_0x4f3574,_0x124b7e)=>_0x124b7e(_0x4f3574)[_0x324ee3(0x42f)]((0x0,_0x3666d5[_0x324ee3(0x302)])(async _0x4c7461=>{const _0x2f576e=_0x324ee3;let _0xede9cb=_0x4c7461;if(_0xede9cb[_0x2f576e(0x268)]===0x191){if(typeof window>'u')throw Error(_0x2f576e(0x3ac));if(window[_0x2f576e(0x16e)](this[_0x2f576e(0x15c)]['t'](_0x2f576e(0x163)))){let _0x442141=window['encodeURIComponent'](window[_0x2f576e(0x251)][_0x2f576e(0x1e9)]);window[_0x2f576e(0x251)][_0x2f576e(0x1e9)]=this[_0x2f576e(0x12d)]()+_0x2f576e(0x2ec)+_0x442141;}}return _0xede9cb;}))});}[_0x476a9e(0x12d)](){const _0x328f30=_0x476a9e;var _0x279e6a;let _0x20b751=this[_0x328f30(0x249)][_0x328f30(0x3b0)](_0x355bce);return(_0x279e6a=_0x20b751==null?void 0x0:_0x20b751[_0x328f30(0x418)])==null?'/universer-api/oidc/authpage':_0x279e6a;}};_0x17366a=_0x10b7c9([_0x191f42(0x0,_0x99589['IConfigService']),_0x191f42(0x1,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x472468[_0x476a9e(0x40a)])),_0x191f42(0x2,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589[_0x476a9e(0x125)]))],_0x17366a);let _0x1dc665=class extends _0x99589['Disposable']{constructor(_0x555e93,_0x1779c9){const _0x4c6ba5=_0x476a9e;super(),this[_0x4c6ba5(0x269)]=_0x555e93,this[_0x4c6ba5(0x249)]=_0x1779c9,_0x222df1(this,_0x4c6ba5(0x1cb),!0x1),this[_0x4c6ba5(0x313)]();}[_0x476a9e(0x313)](){const _0x235664=_0x476a9e;let _0xfe3282=this;this['disposeWithMe'](this[_0x235664(0x269)][_0x235664(0x1d3)]({'priority':0x3e7,'interceptor':(0x0,_0x472468['MergeInterceptorFactory'])({'isMatch'(_0x17f86c){const _0x38d505=_0x235664;var _0x4e179c;if(_0x17f86c['method']===_0x38d505(0x398)&&(_0x4e179c=_0x17f86c['requestParams'])!=null&&_0x4e179c['body']){let {objectID:_0x2bee83,objectType:_0x34b257}=_0x17f86c['requestParams']['body']||{};if(!_0x2bee83||_0x34b257===void 0x0)return!0x1;let _0x47f93e=_0xfe3282[_0x38d505(0x2fa)]()+'/'+_0x34b257+_0x38d505(0x1fb)+_0x2bee83+_0x38d505(0x2bd);if(_0x17f86c[_0x38d505(0x365)]===_0x47f93e)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2540ec){const _0x85d53b=_0x235664;var _0x31bd01;return(_0x31bd01=_0x2540ec[_0x85d53b(0x310)])==null?void 0x0:_0x31bd01[_0x85d53b(0x256)];},'mergeParamsToRequest'(_0x3763dc,_0x4740e0){const _0x48f826=_0x235664;let _0x24449d=_0xfe3282[_0x48f826(0x2fa)]()+'/-/object/-/batch_allowed',_0x5745ee=_0x3763dc[_0x48f826(0x182)]((_0x101fad,_0x56cb10)=>{const _0x4e8aae=_0x48f826;let {unitID:_0x32fd9a,objectID:_0x343854,objectType:_0x25f6d6,actions:_0x48d808}=_0x56cb10;return _0x101fad[_0x32fd9a]||(_0x101fad[_0x32fd9a]={}),_0x101fad[_0x32fd9a][_0x343854]||(_0x101fad[_0x32fd9a][_0x343854]={'objectID':_0x343854,'objectType':_0x25f6d6,'actions':[]}),_0x101fad[_0x32fd9a][_0x343854][_0x4e8aae(0x409)][_0x4e8aae(0x29b)](..._0x48d808),_0x101fad;},{}),_0x3f38da=[];for(let _0x200228 in _0x5745ee)for(let _0xc8e207 in _0x5745ee[_0x200228]){let {actions:_0x333f03,objectType:_0x23db4b}=_0x5745ee[_0x200228][_0xc8e207],_0x2b37b6=[...new Set(_0x333f03)];_0x3f38da[_0x48f826(0x29b)]({'unitID':_0x200228,'objectID':_0xc8e207,'objectType':_0x23db4b,'actions':_0x2b37b6});}return new _0x472468['HTTPRequest'](_0x48f826(0x398),_0x24449d,{'headers':_0x4740e0[_0x48f826(0x333)],'withCredentials':_0x4740e0[_0x48f826(0x11b)],'responseType':_0x4740e0['responseType'],'body':{'requests':_0x3f38da}});}},{'distributeResult'(_0x3316b2,_0x4af7ae){const _0x498504=_0x235664;let {objectActions:_0x3060cf}=_0x3316b2;return _0x4af7ae[_0x498504(0x10f)](_0x2eecfc=>{const _0x2d3c50=_0x498504;let {unitID:_0x22186e,objectID:_0x1e606e,actions:_0x2b0e71}=_0x2eecfc,_0x45177e=_0x3060cf['find'](_0x720cec=>_0x720cec['unitID']===_0x22186e&&_0x720cec[_0x2d3c50(0x157)]===_0x1e606e);return{'config':_0x2eecfc,'result':{'actions':_0x2b0e71[_0x2d3c50(0x10f)](_0x4ca5df=>_0x45177e==null?void 0x0:_0x45177e[_0x2d3c50(0x409)][_0x2d3c50(0x2b8)](_0x2f032d=>_0x2f032d[_0x2d3c50(0x281)]===_0x4ca5df))[_0x2d3c50(0x41b)](_0x182917=>!!_0x182917),'error':_0x3316b2[_0x2d3c50(0x1d5)]}};});}})}));}['_getAPIPrefixPath'](){const _0x300c86=_0x476a9e;var _0x4103e2;let _0x1b7096=this['_configService'][_0x300c86(0x3b0)](_0x355bce);return(_0x4103e2=_0x1b7096==null?void 0x0:_0x1b7096[_0x300c86(0x3a3)])==null?_0x300c86(0x2da):_0x4103e2;}async[_0x476a9e(0x234)](_0x222235){const _0x34843d=_0x476a9e;let _0x25a866=this[_0x34843d(0x2fa)]()+'/'+_0x222235['objectType']+_0x34843d(0x30e);return(await this['_HTTPService'][_0x34843d(0x31b)](_0x25a866,{'body':_0x222235}))[_0x34843d(0x256)][_0x34843d(0x157)]||'';}async[_0x476a9e(0x26b)](_0x5aa43a){const _0x49e799=_0x476a9e;let _0x2df409=this[_0x49e799(0x2fa)]()+_0x49e799(0x27d);return(await this[_0x49e799(0x269)][_0x49e799(0x31b)](_0x2df409,{'body':_0x5aa43a}))[_0x49e799(0x256)]['objects'];}async[_0x476a9e(0x1b6)](_0x1d3372){const _0x1d67a9=_0x476a9e;var _0x4f5479;let _0x5dda2b=this['_getAPIPrefixPath']()+'/'+_0x1d3372[_0x1d67a9(0x28d)]+_0x1d67a9(0x1fb)+_0x1d3372['objectID'],_0x1afd6d=await this['_HTTPService'][_0x1d67a9(0x3f4)](_0x5dda2b,{'body':_0x1d3372});if((_0x1afd6d==null||(_0x4f5479=_0x1afd6d[_0x1d67a9(0x256)])==null||(_0x4f5479=_0x4f5479[_0x1d67a9(0x1d5)])==null?void 0x0:_0x4f5479['code'])!==0x1)throw Error(_0x1d67a9(0x427));}async[_0x476a9e(0x32e)](_0x42379a){const _0x42ed06=_0x476a9e;let _0x124a05=this['_getAPIPrefixPath']()+'/'+_0x42379a[_0x42ed06(0x28d)]+_0x42ed06(0x1fb)+_0x42379a['objectID']+_0x42ed06(0x2bd);return(await this['_HTTPService']['post'](_0x124a05,{'body':_0x42379a}))[_0x42ed06(0x256)][_0x42ed06(0x409)];}async[_0x476a9e(0x1c2)](_0x17a5a9){const _0x4ac2d9=_0x476a9e;let _0x13c16c=this['_getAPIPrefixPath']()+_0x4ac2d9(0x3ad);return(await this[_0x4ac2d9(0x269)]['post'](_0x13c16c,{'body':{'requests':_0x17a5a9}}))[_0x4ac2d9(0x256)]['objectActions'];}async[_0x476a9e(0x2dc)](_0x414d27){const _0x2f5459=_0x476a9e;let _0x3c2a42=this[_0x2f5459(0x2fa)]()+'/'+_0x414d27[_0x2f5459(0x28d)]+'/role',_0x50136f=await this[_0x2f5459(0x269)]['post'](_0x3c2a42,{'body':_0x414d27});return{'roles':_0x50136f[_0x2f5459(0x256)][_0x2f5459(0x392)],'actions':_0x50136f['body']['actions']};}async[_0x476a9e(0x12a)](_0x16b0ba){const _0x55a3b3=_0x476a9e;let _0x2a7760=this['_getAPIPrefixPath']()+_0x55a3b3(0x1eb);await this[_0x55a3b3(0x269)][_0x55a3b3(0x2a9)](_0x2a7760,{'params':{'collaboratorID':_0x16b0ba[_0x55a3b3(0x199)],'objectID':_0x16b0ba[_0x55a3b3(0x157)],'unitID':_0x16b0ba[_0x55a3b3(0x1b8)]}});}async[_0x476a9e(0x437)](_0x3e1cc4){const _0x3afa5f=_0x476a9e;let _0x55bba2=this[_0x3afa5f(0x2fa)]()+_0x3afa5f(0x1eb);await this[_0x3afa5f(0x269)][_0x3afa5f(0x347)](_0x55bba2,{'body':_0x3e1cc4});}async['createCollaborator'](_0xb1896e){const _0x13382b=_0x476a9e;let _0x2f6fcc=this[_0x13382b(0x2fa)]()+_0x13382b(0x1eb);await this[_0x13382b(0x269)][_0x13382b(0x31b)](_0x2f6fcc,{'body':_0xb1896e});}async[_0x476a9e(0x31a)](_0x507a2e){const _0x420ccd=_0x476a9e;var _0x712b49;let _0x2a82af=this[_0x420ccd(0x2fa)]()+_0x420ccd(0x1eb),_0x3f7a1c=await this['_HTTPService'][_0x420ccd(0x2ee)](_0x2a82af,{'params':{'objectID':_0x507a2e[_0x420ccd(0x157)],'unitID':_0x507a2e['unitID']}});return this[_0x420ccd(0x242)]((_0x712b49=_0x3f7a1c[_0x420ccd(0x256)]['cfgEnableObjInherit'])==null?!0x1:_0x712b49),_0x3f7a1c[_0x420ccd(0x256)][_0x420ccd(0x2aa)];}async[_0x476a9e(0x212)](_0x563e54){const _0x128d44=_0x476a9e;let _0x270a50=this[_0x128d44(0x2fa)]()+_0x128d44(0x1eb);await this[_0x128d44(0x269)]['put'](_0x270a50,{'body':_0x563e54});}[_0x476a9e(0x242)](_0xa44143){const _0xc0175e=_0x476a9e;this[_0xc0175e(0x1cb)]=_0xa44143;}['getCfgEnableObjInherit'](){const _0x3ef90a=_0x476a9e;return this[_0x3ef90a(0x1cb)];}};_0x1dc665=_0x10b7c9([_0x191f42(0x0,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x472468[_0x476a9e(0x40a)])),_0x191f42(0x1,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589['IConfigService']))],_0x1dc665);function _0x3caa6c(_0x499167){const _0x38d706=_0x476a9e;return _0x499167 instanceof Uint8Array||ArrayBuffer[_0x38d706(0x198)](_0x499167)&&_0x499167[_0x38d706(0x224)][_0x38d706(0x328)]===_0x38d706(0x3ff)&&'BYTES_PER_ELEMENT'in _0x499167&&_0x499167[_0x38d706(0x35d)]===0x1;}function _0x14902e(_0x548bda){const _0x2264c8=_0x476a9e;if(typeof _0x548bda!=_0x2264c8(0x3b7))throw TypeError(_0x2264c8(0x2a7)+typeof _0x548bda);if(!Number[_0x2264c8(0x447)](_0x548bda)||_0x548bda<0x0)throw RangeError('positive\x20integer\x20expected,\x20got\x20'+_0x548bda);}function _0x4f57d4(_0x1271a2,_0x1337a5,_0x3cbb61=''){const _0x3e112f=_0x476a9e;let _0x3bf66d=_0x3caa6c(_0x1271a2),_0x26520c=_0x1271a2==null?void 0x0:_0x1271a2[_0x3e112f(0x1ff)],_0x47594b=_0x1337a5!==void 0x0;if(!_0x3bf66d||_0x47594b&&_0x26520c!==_0x1337a5){let _0x1b9bc4=_0x3cbb61&&'\x22'+_0x3cbb61+'\x22\x20',_0x3c55fe=_0x47594b?'\x20of\x20length\x20'+_0x1337a5:'',_0x1c385d=_0x3bf66d?'length='+_0x26520c:_0x3e112f(0x2bf)+typeof _0x1271a2,_0x5b5d00=_0x1b9bc4+_0x3e112f(0x301)+_0x3c55fe+_0x3e112f(0x34b)+_0x1c385d;throw _0x3bf66d?RangeError(_0x5b5d00):TypeError(_0x5b5d00);}return _0x1271a2;}function _0x4fb530(_0x3b8710){const _0x14551b=_0x476a9e;return new Uint32Array(_0x3b8710[_0x14551b(0x213)],_0x3b8710[_0x14551b(0x3e5)],Math[_0x14551b(0x431)](_0x3b8710[_0x14551b(0x1bd)]/0x4));}function _0x5062e1(..._0x5c5217){const _0x152b1d=_0x476a9e;for(let _0xac53d0=0x0;_0xac53d0<_0x5c5217[_0x152b1d(0x1ff)];_0xac53d0++)_0x5c5217[_0xac53d0][_0x152b1d(0x1ca)](0x0);}let _0x230d2f=new Uint8Array(new Uint32Array([0x11223344])[_0x476a9e(0x213)])[0x0]===0x44,_0x43f05e=_0x30a83a=>_0x30a83a<<0x18&0xff000000|_0x30a83a<<0x8&0xff0000|_0x30a83a>>>0x8&0xff00|_0x30a83a>>>0x18&0xff,_0x4892c7=_0x230d2f?_0x490d0c=>_0x490d0c:_0x182ec8=>{const _0x586c3e=_0x476a9e;for(let _0x45ceb5=0x0;_0x45ceb5<_0x182ec8[_0x586c3e(0x1ff)];_0x45ceb5++)_0x182ec8[_0x45ceb5]=_0x43f05e(_0x182ec8[_0x45ceb5]);return _0x182ec8;};function _0x26bd9d(_0x5622dc){const _0x33628f=_0x476a9e;if(typeof _0x5622dc!=_0x33628f(0x112))throw TypeError(_0x33628f(0x379));return new Uint8Array(new TextEncoder()['encode'](_0x5622dc));}function _0x157e33(_0x5a7832,_0x49b90a){const _0x68ac60=_0x476a9e;return!_0x5a7832[_0x68ac60(0x1bd)]||!_0x49b90a[_0x68ac60(0x1bd)]?!0x1:_0x5a7832[_0x68ac60(0x213)]===_0x49b90a['buffer']&&_0x5a7832[_0x68ac60(0x3e5)]<_0x49b90a[_0x68ac60(0x3e5)]+_0x49b90a[_0x68ac60(0x1bd)]&&_0x49b90a[_0x68ac60(0x3e5)]<_0x5a7832[_0x68ac60(0x3e5)]+_0x5a7832['byteLength'];}function _0x5dff28(_0x31576c,_0x44cb56){const _0x50389d=_0x476a9e;if(_0x157e33(_0x31576c,_0x44cb56)&&_0x31576c[_0x50389d(0x3e5)]<_0x44cb56['byteOffset'])throw Error(_0x50389d(0x265));}function _0x2411c9(..._0x4cd7de){const _0x39b007=_0x476a9e;let _0x293c0a=0x0;for(let _0x4c5f0b=0x0;_0x4c5f0b<_0x4cd7de[_0x39b007(0x1ff)];_0x4c5f0b++){let _0x57c9ab=_0x4cd7de[_0x4c5f0b];_0x4f57d4(_0x57c9ab),_0x293c0a+=_0x57c9ab[_0x39b007(0x1ff)];}let _0x41cd14=new Uint8Array(_0x293c0a);for(let _0x29aa18=0x0,_0x174150=0x0;_0x29aa18<_0x4cd7de[_0x39b007(0x1ff)];_0x29aa18++){let _0x5cede5=_0x4cd7de[_0x29aa18];_0x41cd14[_0x39b007(0x2fd)](_0x5cede5,_0x174150),_0x174150+=_0x5cede5[_0x39b007(0x1ff)];}return _0x41cd14;}let _0x2d0d12=(_0x5e8f67,_0xa36bd7)=>{const _0x2662b9=_0x476a9e;function _0x574157(_0x4f91d6,..._0xaed157){const _0x5c4757=_0x3d7a;if(_0x4f57d4(_0x4f91d6,void 0x0,_0x5c4757(0x2c7)),_0x5e8f67[_0x5c4757(0x17c)]!==void 0x0){let _0x11dbec=_0xaed157[0x0];_0x4f57d4(_0x11dbec,_0x5e8f67[_0x5c4757(0x29c)]?void 0x0:_0x5e8f67['nonceLength'],_0x5c4757(0x2ef));}let _0x3040b2=_0x5e8f67['tagLength'];_0x3040b2&&_0xaed157[0x1]!==void 0x0&&_0x4f57d4(_0xaed157[0x1],void 0x0,'AAD');let _0x19edc3=_0xa36bd7(_0x4f91d6,..._0xaed157),_0x2b0d7a=(_0x2865ed,_0xd8b2b5)=>{const _0x182d68=_0x5c4757;if(_0xd8b2b5!==void 0x0){if(_0x2865ed!==0x2)throw Error('cipher\x20output\x20not\x20supported');_0x4f57d4(_0xd8b2b5,void 0x0,_0x182d68(0x13c));}},_0x2a5319=!0x1;return{'encrypt'(_0x55df40,_0x47a2cf){const _0xda0abd=_0x5c4757;if(_0x2a5319)throw Error(_0xda0abd(0x1bf));return _0x2a5319=!0x0,_0x4f57d4(_0x55df40),_0x2b0d7a(_0x19edc3[_0xda0abd(0x1f5)][_0xda0abd(0x1ff)],_0x47a2cf),_0x19edc3[_0xda0abd(0x1f5)](_0x55df40,_0x47a2cf);},'decrypt'(_0x3c1815,_0x1da2f2){const _0x1e5bdb=_0x5c4757;if(_0x4f57d4(_0x3c1815),_0x3040b2&&_0x3c1815[_0x1e5bdb(0x1ff)]<_0x3040b2)throw Error(_0x1e5bdb(0x2fb)+_0x3040b2);return _0x2b0d7a(_0x19edc3['decrypt'][_0x1e5bdb(0x1ff)],_0x1da2f2),_0x19edc3[_0x1e5bdb(0x15a)](_0x3c1815,_0x1da2f2);}};}return Object[_0x2662b9(0x341)](_0x574157,_0x5e8f67),_0x574157;};function _0x3b93f2(_0x5bbb09,_0x278d25,_0x4be434=!0x0){const _0x33c51a=_0x476a9e;if(_0x278d25===void 0x0)return new Uint8Array(_0x5bbb09);if(_0x4f57d4(_0x278d25,void 0x0,_0x33c51a(0x13c)),_0x278d25['length']!==_0x5bbb09)throw Error('\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20'+_0x5bbb09+_0x33c51a(0x40e)+_0x278d25[_0x33c51a(0x1ff)]);if(_0x4be434&&!_0x1a94c6(_0x278d25))throw Error('invalid\x20output,\x20must\x20be\x20aligned');return _0x278d25;}function _0x1a94c6(_0x1f63e7){const _0x11fe12=_0x476a9e;return _0x1f63e7[_0x11fe12(0x3e5)]%0x4==0x0;}function _0x47cb63(_0x6bbdc6){const _0x1ad4b3=_0x476a9e;return Uint8Array[_0x1ad4b3(0x2f7)](_0x4f57d4(_0x6bbdc6));}function _0x370ed1(_0x2d970e=0x20){const _0x5d9c80=_0x476a9e;_0x14902e(_0x2d970e);let _0x24e027=typeof globalThis==_0x5d9c80(0x3b9)?globalThis[_0x5d9c80(0x2ad)]:null;if(typeof(_0x24e027==null?void 0x0:_0x24e027[_0x5d9c80(0x17e)])!='function')throw Error('crypto.getRandomValues\x20must\x20be\x20defined');return _0x24e027[_0x5d9c80(0x17e)](new Uint8Array(_0x2d970e));}function _0x4404a8(_0x118db0){const _0x59f12d=_0x476a9e;if(![0x10,0x18,0x20][_0x59f12d(0x1d6)](_0x118db0[_0x59f12d(0x1ff)]))throw Error(_0x59f12d(0x376)+_0x118db0['length']);}function _0x3b001e(_0x47bcc4){return _0x47bcc4<<0x1^0x11b&-(_0x47bcc4>>0x7);}function _0x4cbdbe(_0x97bda8,_0x54f2d2){let _0x1aac35=0x0;for(;_0x54f2d2>0x0;_0x54f2d2>>=0x1)_0x1aac35^=_0x97bda8&-(_0x54f2d2&0x1),_0x97bda8=_0x3b001e(_0x97bda8);return _0x1aac35;}let _0x4cb4e=((()=>{let _0x9d621e=new Uint8Array(0x100);for(let _0xa1170d=0x0,_0x721a8e=0x1;_0xa1170d<0x100;_0xa1170d++,_0x721a8e^=_0x3b001e(_0x721a8e))_0x9d621e[_0xa1170d]=_0x721a8e;let _0x5c38a7=new Uint8Array(0x100);_0x5c38a7[0x0]=0x63;for(let _0x51a1a1=0x0;_0x51a1a1<0xff;_0x51a1a1++){let _0x2dd089=_0x9d621e[0xff-_0x51a1a1];_0x2dd089|=_0x2dd089<<0x8,_0x5c38a7[_0x9d621e[_0x51a1a1]]=(_0x2dd089^_0x2dd089>>0x4^_0x2dd089>>0x5^_0x2dd089>>0x6^_0x2dd089>>0x7^0x63)&0xff;}return _0x5062e1(_0x9d621e),_0x5c38a7;})()),_0x3d9dcd=_0x4cb4e[_0x476a9e(0x10f)]((_0x38fbf6,_0x714202)=>_0x4cb4e[_0x476a9e(0x11a)](_0x714202)),_0x5e7645=_0x14dae5=>_0x14dae5<<0x18|_0x14dae5>>>0x8,_0x46860d=_0x588494=>_0x588494<<0x8|_0x588494>>>0x18;function _0x1f0659(_0x4bbf32,_0x1d851a){const _0x9716c6=_0x476a9e;if(_0x4bbf32[_0x9716c6(0x1ff)]!==0x100)throw Error('Wrong\x20sbox\x20length');let _0x51b168=new Uint32Array(0x100)[_0x9716c6(0x10f)]((_0x4370bf,_0x5401fa)=>_0x1d851a(_0x4bbf32[_0x5401fa])),_0x12d7ab=_0x51b168['map'](_0x46860d),_0x16c0c4=_0x12d7ab[_0x9716c6(0x10f)](_0x46860d),_0x58486c=_0x16c0c4['map'](_0x46860d),_0x1a2ea1=new Uint32Array(0x100*0x100),_0x562f9e=new Uint32Array(0x100*0x100),_0x1ddc0c=new Uint16Array(0x100*0x100);for(let _0x51048d=0x0;_0x51048d<0x100;_0x51048d++)for(let _0x58bfe1=0x0;_0x58bfe1<0x100;_0x58bfe1++){let _0x5e3a0b=_0x51048d*0x100+_0x58bfe1;_0x1a2ea1[_0x5e3a0b]=_0x51b168[_0x51048d]^_0x12d7ab[_0x58bfe1],_0x562f9e[_0x5e3a0b]=_0x16c0c4[_0x51048d]^_0x58486c[_0x58bfe1],_0x1ddc0c[_0x5e3a0b]=_0x4bbf32[_0x51048d]<<0x8|_0x4bbf32[_0x58bfe1];}return{'sbox':_0x4bbf32,'sbox2':_0x1ddc0c,'T0':_0x51b168,'T1':_0x12d7ab,'T2':_0x16c0c4,'T3':_0x58486c,'T01':_0x1a2ea1,'T23':_0x562f9e};}let _0x1ee42f=_0x1f0659(_0x4cb4e,_0x55d87b=>_0x4cbdbe(_0x55d87b,0x3)<<0x18|_0x55d87b<<0x10|_0x55d87b<<0x8|_0x4cbdbe(_0x55d87b,0x2)),_0x30e05c=_0x1f0659(_0x3d9dcd,_0x18cd78=>_0x4cbdbe(_0x18cd78,0xb)<<0x18|_0x4cbdbe(_0x18cd78,0xd)<<0x10|_0x4cbdbe(_0x18cd78,0x9)<<0x8|_0x4cbdbe(_0x18cd78,0xe)),_0x366724=((()=>{let _0x391963=new Uint8Array(0x10);for(let _0x57c820=0x0,_0x4dbb1f=0x1;_0x57c820<0x10;_0x57c820++,_0x4dbb1f=_0x3b001e(_0x4dbb1f))_0x391963[_0x57c820]=_0x4dbb1f;return _0x391963;})());function _0xd318a2(_0x1e360f){const _0x37efed=_0x476a9e;_0x4f57d4(_0x1e360f);let _0x350178=_0x1e360f['length'];_0x4404a8(_0x1e360f);let {sbox2:_0x43761f}=_0x1ee42f,_0x236ef1=[];(!_0x230d2f||!_0x1a94c6(_0x1e360f))&&_0x236ef1[_0x37efed(0x29b)](_0x1e360f=_0x47cb63(_0x1e360f));let _0x3d610c=_0x4892c7(_0x4fb530(_0x1e360f)),_0x5a0bb2=_0x3d610c[_0x37efed(0x1ff)],_0x18746a=_0x9238a3=>_0x2107db(_0x43761f,_0x9238a3,_0x9238a3,_0x9238a3,_0x9238a3),_0xb7d77a=new Uint32Array(_0x350178+0x1c);_0xb7d77a[_0x37efed(0x2fd)](_0x3d610c);for(let _0xf329f6=_0x5a0bb2;_0xf329f6<_0xb7d77a['length'];_0xf329f6++){let _0x2ee1e8=_0xb7d77a[_0xf329f6-0x1];_0xf329f6%_0x5a0bb2===0x0?_0x2ee1e8=_0x18746a(_0x5e7645(_0x2ee1e8))^_0x366724[_0xf329f6/_0x5a0bb2-0x1]:_0x5a0bb2>0x6&&_0xf329f6%_0x5a0bb2===0x4&&(_0x2ee1e8=_0x18746a(_0x2ee1e8)),_0xb7d77a[_0xf329f6]=_0xb7d77a[_0xf329f6-_0x5a0bb2]^_0x2ee1e8;}return _0x5062e1(..._0x236ef1),_0xb7d77a;}function _0x3ff31d(_0x26c8b5){const _0xc83d1f=_0x476a9e;let _0x3a47ad=_0xd318a2(_0x26c8b5),_0x50c4f9=_0x3a47ad[_0xc83d1f(0x21c)](),_0x5bc3d1=_0x3a47ad['length'],{sbox2:_0x30768c}=_0x1ee42f,{T0:_0x304a9d,T1:_0x6d9170,T2:_0x4f717a,T3:_0x1142a3}=_0x30e05c;for(let _0x6e98e5=0x0;_0x6e98e5<_0x5bc3d1;_0x6e98e5+=0x4)for(let _0x556100=0x0;_0x556100<0x4;_0x556100++)_0x50c4f9[_0x6e98e5+_0x556100]=_0x3a47ad[_0x5bc3d1-_0x6e98e5-0x4+_0x556100];_0x5062e1(_0x3a47ad);for(let _0x4c3990=0x4;_0x4c3990<_0x5bc3d1-0x4;_0x4c3990++){let _0x12e280=_0x50c4f9[_0x4c3990],_0x498057=_0x2107db(_0x30768c,_0x12e280,_0x12e280,_0x12e280,_0x12e280);_0x50c4f9[_0x4c3990]=_0x304a9d[_0x498057&0xff]^_0x6d9170[_0x498057>>>0x8&0xff]^_0x4f717a[_0x498057>>>0x10&0xff]^_0x1142a3[_0x498057>>>0x18];}return _0x50c4f9;}function _0x434681(_0x23b510,_0x5d0b2e,_0x1567b8,_0x2d567e,_0x34448b,_0x8eab6d){return _0x23b510[_0x1567b8<<0x8&0xff00|_0x2d567e>>>0x8&0xff]^_0x5d0b2e[_0x34448b>>>0x8&0xff00|_0x8eab6d>>>0x18&0xff];}function _0x2107db(_0x14a906,_0x170ffc,_0x5ae078,_0x3b8314,_0x15bbbd){return _0x14a906[_0x170ffc&0xff|_0x5ae078&0xff00]|_0x14a906[_0x3b8314>>>0x10&0xff|_0x15bbbd>>>0x10&0xff00]<<0x10;}function _0x1c4eda(_0x194881,_0x3735f4,_0x1d94b1,_0x5ecbac,_0x2f4051){const _0x168751=_0x476a9e;let {sbox2:_0x4fc86a,T01:_0x3ffc2f,T23:_0x5a148d}=_0x1ee42f,_0x456ebc=0x0;_0x3735f4^=_0x194881[_0x456ebc++],_0x1d94b1^=_0x194881[_0x456ebc++],_0x5ecbac^=_0x194881[_0x456ebc++],_0x2f4051^=_0x194881[_0x456ebc++];let _0x5056a0=_0x194881[_0x168751(0x1ff)]/0x4-0x2;for(let _0x3d48d3=0x0;_0x3d48d3<_0x5056a0;_0x3d48d3++){let _0x232aea=_0x194881[_0x456ebc++]^_0x434681(_0x3ffc2f,_0x5a148d,_0x3735f4,_0x1d94b1,_0x5ecbac,_0x2f4051),_0x426211=_0x194881[_0x456ebc++]^_0x434681(_0x3ffc2f,_0x5a148d,_0x1d94b1,_0x5ecbac,_0x2f4051,_0x3735f4),_0x392e0d=_0x194881[_0x456ebc++]^_0x434681(_0x3ffc2f,_0x5a148d,_0x5ecbac,_0x2f4051,_0x3735f4,_0x1d94b1),_0x448448=_0x194881[_0x456ebc++]^_0x434681(_0x3ffc2f,_0x5a148d,_0x2f4051,_0x3735f4,_0x1d94b1,_0x5ecbac);_0x3735f4=_0x232aea,_0x1d94b1=_0x426211,_0x5ecbac=_0x392e0d,_0x2f4051=_0x448448;}return{'s0':_0x194881[_0x456ebc++]^_0x2107db(_0x4fc86a,_0x3735f4,_0x1d94b1,_0x5ecbac,_0x2f4051),'s1':_0x194881[_0x456ebc++]^_0x2107db(_0x4fc86a,_0x1d94b1,_0x5ecbac,_0x2f4051,_0x3735f4),'s2':_0x194881[_0x456ebc++]^_0x2107db(_0x4fc86a,_0x5ecbac,_0x2f4051,_0x3735f4,_0x1d94b1),'s3':_0x194881[_0x456ebc++]^_0x2107db(_0x4fc86a,_0x2f4051,_0x3735f4,_0x1d94b1,_0x5ecbac)};}function _0x34b295(_0x25cc8e,_0x44affb,_0xe8367b,_0x3e5e3d,_0x4ad85e){const _0x26856e=_0x476a9e;let {sbox2:_0x4426f6,T01:_0x394b0d,T23:_0x372a03}=_0x30e05c,_0x987c2f=0x0;_0x44affb^=_0x25cc8e[_0x987c2f++],_0xe8367b^=_0x25cc8e[_0x987c2f++],_0x3e5e3d^=_0x25cc8e[_0x987c2f++],_0x4ad85e^=_0x25cc8e[_0x987c2f++];let _0x3446c1=_0x25cc8e[_0x26856e(0x1ff)]/0x4-0x2;for(let _0x17e96f=0x0;_0x17e96f<_0x3446c1;_0x17e96f++){let _0x2c694b=_0x25cc8e[_0x987c2f++]^_0x434681(_0x394b0d,_0x372a03,_0x44affb,_0x4ad85e,_0x3e5e3d,_0xe8367b),_0x58324f=_0x25cc8e[_0x987c2f++]^_0x434681(_0x394b0d,_0x372a03,_0xe8367b,_0x44affb,_0x4ad85e,_0x3e5e3d),_0x51c132=_0x25cc8e[_0x987c2f++]^_0x434681(_0x394b0d,_0x372a03,_0x3e5e3d,_0xe8367b,_0x44affb,_0x4ad85e),_0x223ebe=_0x25cc8e[_0x987c2f++]^_0x434681(_0x394b0d,_0x372a03,_0x4ad85e,_0x3e5e3d,_0xe8367b,_0x44affb);_0x44affb=_0x2c694b,_0xe8367b=_0x58324f,_0x3e5e3d=_0x51c132,_0x4ad85e=_0x223ebe;}return{'s0':_0x25cc8e[_0x987c2f++]^_0x2107db(_0x4426f6,_0x44affb,_0x4ad85e,_0x3e5e3d,_0xe8367b),'s1':_0x25cc8e[_0x987c2f++]^_0x2107db(_0x4426f6,_0xe8367b,_0x44affb,_0x4ad85e,_0x3e5e3d),'s2':_0x25cc8e[_0x987c2f++]^_0x2107db(_0x4426f6,_0x3e5e3d,_0xe8367b,_0x44affb,_0x4ad85e),'s3':_0x25cc8e[_0x987c2f++]^_0x2107db(_0x4426f6,_0x4ad85e,_0x3e5e3d,_0xe8367b,_0x44affb)};}function _0x136522(_0x4f3fe7){const _0x558424=_0x476a9e;if(_0x4f57d4(_0x4f3fe7),_0x4f3fe7[_0x558424(0x1ff)]%0x10!=0x0)throw Error('aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016');}function _0x1d6a7c(_0x3ead12,_0x15b7d9,_0x4b92b7){const _0x4bbb1e=_0x476a9e;_0x4f57d4(_0x3ead12);let _0x45efa9=_0x3ead12[_0x4bbb1e(0x1ff)],_0x4ba841=_0x45efa9%0x10;if(!_0x15b7d9&&_0x4ba841!==0x0)throw Error('aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding');if(_0x15b7d9){let _0x2c27d9=0x10-_0x4ba841;_0x2c27d9||(_0x2c27d9=0x10),_0x45efa9+=_0x2c27d9;}_0x4b92b7=_0x3b93f2(_0x45efa9,_0x4b92b7),_0x5dff28(_0x3ead12,_0x4b92b7),(!_0x230d2f||!_0x1a94c6(_0x3ead12))&&(_0x3ead12=_0x47cb63(_0x3ead12));let _0xbde475=_0x4fb530(_0x3ead12);return _0x4892c7(_0xbde475),{'b':_0xbde475,'o':_0x4fb530(_0x4b92b7),'out':_0x4b92b7};}function _0x17feae(_0x283092,_0x25c127){const _0x41cf0b=_0x476a9e;if(!_0x25c127)return _0x283092;let _0x486a52=_0x283092['length'];if(_0x486a52===0x0)throw Error(_0x41cf0b(0x1ed));let _0x4af86c=_0x283092[_0x486a52-0x1],_0x38a007=0x1;_0x38a007&=_0x4af86c-0x1>>>0x1f^0x1,_0x38a007&=0x10-_0x4af86c>>>0x1f^0x1;for(let _0x5008f8=0x0;_0x5008f8<0x10;_0x5008f8++){let _0x43f787=_0x5008f8-_0x4af86c>>>0x1f,_0x30a74b=+((_0x283092[_0x486a52-0x1-_0x5008f8]^_0x4af86c)===0x0);_0x38a007&=_0x30a74b|_0x43f787^0x1;}if(!_0x38a007)throw Error(_0x41cf0b(0x14e));return _0x283092[_0x41cf0b(0x118)](0x0,_0x486a52-_0x4af86c);}function _0x567a44(_0x456d3c){const _0x1d6628=_0x476a9e;let _0x4e3e57=new Uint8Array(0x10),_0x173f8b=_0x4fb530(_0x4e3e57);_0x4e3e57['set'](_0x456d3c);let _0x5c0867=0x10-_0x456d3c[_0x1d6628(0x1ff)];for(let _0x409db4=0x10-_0x5c0867;_0x409db4<0x10;_0x409db4++)_0x4e3e57[_0x409db4]=_0x5c0867;return _0x173f8b;}let _0x4da086=_0x2d0d12({'blockSize':0x10,'nonceLength':0x10},function(_0x56a00a,_0x290729,_0x3c94a0={}){const _0x3cedd7=_0x476a9e;let _0x21f5f7=!_0x3c94a0[_0x3cedd7(0x41a)];return{'encrypt'(_0x364991,_0x183a13){const _0x5c9dd8=_0x3cedd7;let _0x564aa5=_0xd318a2(_0x56a00a),{b:_0x5680b0,o:_0x5803f2,out:_0x5726c5}=_0x1d6a7c(_0x364991,_0x21f5f7,_0x183a13),_0x3cbab2=_0x290729,_0xb79d13=[_0x564aa5];(!_0x230d2f||!_0x1a94c6(_0x3cbab2))&&_0xb79d13['push'](_0x3cbab2=_0x47cb63(_0x3cbab2));let _0x33fccf=_0x4fb530(_0x3cbab2);_0x4892c7(_0x33fccf);let _0x5110d1=_0x33fccf[0x0],_0x325bf6=_0x33fccf[0x1],_0x4019e6=_0x33fccf[0x2],_0x552d12=_0x33fccf[0x3],_0x184d07=0x0;for(;_0x184d07+0x4<=_0x5680b0[_0x5c9dd8(0x1ff)];)_0x5110d1^=_0x5680b0[_0x184d07+0x0],_0x325bf6^=_0x5680b0[_0x184d07+0x1],_0x4019e6^=_0x5680b0[_0x184d07+0x2],_0x552d12^=_0x5680b0[_0x184d07+0x3],{s0:_0x5110d1,s1:_0x325bf6,s2:_0x4019e6,s3:_0x552d12}=_0x1c4eda(_0x564aa5,_0x5110d1,_0x325bf6,_0x4019e6,_0x552d12),_0x5803f2[_0x184d07++]=_0x5110d1,_0x5803f2[_0x184d07++]=_0x325bf6,_0x5803f2[_0x184d07++]=_0x4019e6,_0x5803f2[_0x184d07++]=_0x552d12;if(_0x21f5f7){let _0x2c7d73=_0x567a44(_0x364991['subarray'](_0x184d07*0x4));_0x4892c7(_0x2c7d73),_0x5110d1^=_0x2c7d73[0x0],_0x325bf6^=_0x2c7d73[0x1],_0x4019e6^=_0x2c7d73[0x2],_0x552d12^=_0x2c7d73[0x3],{s0:_0x5110d1,s1:_0x325bf6,s2:_0x4019e6,s3:_0x552d12}=_0x1c4eda(_0x564aa5,_0x5110d1,_0x325bf6,_0x4019e6,_0x552d12),_0x5803f2[_0x184d07++]=_0x5110d1,_0x5803f2[_0x184d07++]=_0x325bf6,_0x5803f2[_0x184d07++]=_0x4019e6,_0x5803f2[_0x184d07++]=_0x552d12;}return _0x4892c7(_0x5803f2),_0x5062e1(..._0xb79d13),_0x5726c5;},'decrypt'(_0xc03e11,_0x5c0008){const _0x7365f5=_0x3cedd7;_0x136522(_0xc03e11);let _0x27b104=_0x3ff31d(_0x56a00a),_0x476715=_0x290729,_0x1ff4fc=[_0x27b104];(!_0x230d2f||!_0x1a94c6(_0x476715))&&_0x1ff4fc['push'](_0x476715=_0x47cb63(_0x476715));let _0x3340d8=_0x4fb530(_0x476715);_0x4892c7(_0x3340d8),_0x5c0008=_0x3b93f2(_0xc03e11['length'],_0x5c0008),_0x5dff28(_0xc03e11,_0x5c0008),(!_0x230d2f||!_0x1a94c6(_0xc03e11))&&_0x1ff4fc[_0x7365f5(0x29b)](_0xc03e11=_0x47cb63(_0xc03e11));let _0x3ea6da=_0x4fb530(_0xc03e11),_0x46af06=_0x4fb530(_0x5c0008);_0x4892c7(_0x3ea6da);let _0x4ab15f=_0x3340d8[0x0],_0x4ef870=_0x3340d8[0x1],_0x58cedb=_0x3340d8[0x2],_0x27002d=_0x3340d8[0x3];for(let _0x41d500=0x0;_0x41d500+0x4<=_0x3ea6da[_0x7365f5(0x1ff)];){let _0x102e33=_0x4ab15f,_0x3aa2b9=_0x4ef870,_0x5b9ee6=_0x58cedb,_0x24fbb3=_0x27002d;_0x4ab15f=_0x3ea6da[_0x41d500+0x0],_0x4ef870=_0x3ea6da[_0x41d500+0x1],_0x58cedb=_0x3ea6da[_0x41d500+0x2],_0x27002d=_0x3ea6da[_0x41d500+0x3];let {s0:_0x44403a,s1:_0x2b53d6,s2:_0x1addbf,s3:_0x1da552}=_0x34b295(_0x27b104,_0x4ab15f,_0x4ef870,_0x58cedb,_0x27002d);_0x46af06[_0x41d500++]=_0x44403a^_0x102e33,_0x46af06[_0x41d500++]=_0x2b53d6^_0x3aa2b9,_0x46af06[_0x41d500++]=_0x1addbf^_0x5b9ee6,_0x46af06[_0x41d500++]=_0x1da552^_0x24fbb3;}return _0x4892c7(_0x46af06),_0x5062e1(..._0x1ff4fc),_0x17feae(_0x5c0008,_0x21f5f7);}};});function _0x17bbab(_0x3ad59a){const _0x39a902=_0x476a9e;let _0x53e471=atob(_0x3ad59a),_0x34164f=new Uint8Array(_0x53e471['length']);for(let _0x17f88f=0x0;_0x17f88f<_0x53e471[_0x39a902(0x1ff)];_0x17f88f++)_0x34164f[_0x17f88f]=_0x53e471[_0x39a902(0x20e)](_0x17f88f);return _0x34164f;}function _0x31776f(_0x1a0393){const _0x3e1ed4=_0x476a9e;let _0x374825='';for(let _0xfc2ffe=0x0;_0xfc2ffe<_0x1a0393[_0x3e1ed4(0x1ff)];_0xfc2ffe++)_0x374825+=String[_0x3e1ed4(0x2b5)](_0x1a0393[_0xfc2ffe]);return btoa(_0x374825);}function _0x1ae102(_0x3ffc08,_0x4bd010){const _0x2aa554=_0x476a9e;let _0x1966b9=_0x17bbab(_0x4bd010),_0xbd14fb=_0x370ed1(0x10);return _0x31776f(_0x2411c9(_0xbd14fb,_0x4da086(_0x1966b9,_0xbd14fb)[_0x2aa554(0x1f5)](_0x26bd9d(_0x3ffc08))));}function _0x25198e(){const _0x5a9f22=_0x476a9e;let _0xba3466=(0x0,_0x127f85[_0x5a9f22(0x194)])()[_0x5a9f22(0x29f)];if(typeof window<'u'&&window['location']!==void 0x0&&_0xba3466){let _0x4f986c={'time':Math['floor'](Date['now']()/0x3e8),'domain':location[_0x5a9f22(0x36f)]};return _0x1ae102(JSON[_0x5a9f22(0x27c)](_0x4f986c),_0xba3466);}}let _0x1e3847=class{constructor(_0x666fb){const _0x58c0da=_0x476a9e;this['_httpService']=_0x666fb,this[_0x58c0da(0x18b)]();}[_0x476a9e(0x18b)](){const _0x257105=_0x476a9e;this[_0x257105(0x326)]['registerHTTPInterceptor']({'interceptor':(_0xb18854,_0x3c171d)=>{const _0x4a16b1=_0x257105;let _0x44bac0=_0x25198e();return _0x44bac0&&_0xb18854[_0x4a16b1(0x333)][_0x4a16b1(0x2fd)](_0x4a16b1(0x2b6),_0x44bac0),_0x3c171d(_0xb18854);}});}};_0x1e3847=_0x10b7c9([_0x191f42(0x0,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x472468[_0x476a9e(0x40a)]))],_0x1e3847);let _0x1c2b44=class extends _0x99589[_0x476a9e(0x135)]{constructor(_0x1b37f7,_0x125984,_0x57a299){const _0x448f41=_0x476a9e;super(),this['_logService']=_0x1b37f7,this['_snapshotService']=_0x125984,this[_0x448f41(0x23c)]=_0x57a299,_0x222df1(this,_0x448f41(0x1d8),new _0x3666d5[(_0x448f41(0x2ab))](null)),_0x222df1(this,_0x448f41(0x299),new _0x3666d5[(_0x448f41(0x2db))]()),_0x222df1(this,_0x448f41(0x1f7),this['_unitInfo$'][_0x448f41(0x405)]()),_0x222df1(this,'unitLoaded$',this[_0x448f41(0x299)]['asObservable']());}[_0x476a9e(0x138)](){const _0x3b747b=_0x476a9e;super[_0x3b747b(0x138)](),this[_0x3b747b(0x299)][_0x3b747b(0x372)](),this[_0x3b747b(0x1d8)][_0x3b747b(0x372)]();}async['loadUnitOfRevision'](_0x287e3e,_0x4585fe,_0x567efe){const _0x5e1b6e=_0x476a9e;this[_0x5e1b6e(0x1d8)]['next']({'unitId':_0x287e3e,'type':_0x4585fe});let _0x149104=null;switch(_0x4585fe){case _0x99589[_0x5e1b6e(0x3ce)][_0x5e1b6e(0x3c2)]:_0x149104=await this[_0x5e1b6e(0x424)][_0x5e1b6e(0x22a)](_0x287e3e,_0x567efe);break;case _0x99589[_0x5e1b6e(0x3ce)]['UNIVER_DOC']:_0x149104=await this[_0x5e1b6e(0x424)]['loadDoc'](_0x287e3e,_0x567efe);break;case _0x99589['UniverInstanceType']['UNIVER_SLIDE']:_0x149104=await this['_snapshotService'][_0x5e1b6e(0x1a7)](_0x287e3e,_0x567efe);break;case _0x99589['UniverInstanceType'][_0x5e1b6e(0x3c0)]:_0x149104=await this['_snapshotService']['loadBase'](_0x287e3e,_0x567efe);break;default:this[_0x5e1b6e(0x37d)][_0x5e1b6e(0x1d5)](_0x5e1b6e(0x296),_0x5e1b6e(0x1f0));break;}return _0x149104&&this[_0x5e1b6e(0x299)][_0x5e1b6e(0x279)](_0x149104),_0x149104;}async['loadUnit'](_0x43cbf3,_0xf1154a,_0x15d61f){const _0x5d054c=_0x476a9e;var _0x381fb1;this['_unitInfo$']['next']({'unitId':_0x43cbf3,'type':_0xf1154a,'subUnitId':_0x15d61f});let _0x542b8f=0x0,_0x47a1ab=await((_0x381fb1=this[_0x5d054c(0x23c)])==null?void 0x0:_0x381fb1[_0x5d054c(0x305)](_0x43cbf3));return _0x47a1ab&&(_0x47a1ab[_0x5d054c(0x373)]||_0x47a1ab[_0x5d054c(0x15e)][_0x5d054c(0x1ff)]!==0x0)&&(_0x542b8f=_0x47a1ab['rev']),_0x542b8f===0x0&&this['_logService'][_0x5d054c(0x25c)]('[DataLoaderService]',_0x5d054c(0x11f)),this[_0x5d054c(0x2a2)](_0x43cbf3,_0xf1154a,_0x542b8f);}};_0x1c2b44=_0x10b7c9([_0x191f42(0x0,_0x99589[_0x476a9e(0x1e0)]),_0x191f42(0x1,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x626b63[_0x476a9e(0x3c6)])),_0x191f42(0x2,(0x0,_0x99589[_0x476a9e(0x1a3)])(_0xb8e6a3))],_0x1c2b44);let _0x2c3494=class{constructor(_0x3274ea,_0x482864,_0x3cdc1c){const _0x15cb2b=_0x476a9e;this[_0x15cb2b(0x326)]=_0x3274ea,this[_0x15cb2b(0x249)]=_0x482864,this[_0x15cb2b(0x277)]=_0x3cdc1c,_0x222df1(this,_0x15cb2b(0x330),0x0),_0x222df1(this,_0x15cb2b(0x2ff),new _0x3666d5[(_0x15cb2b(0x2db))]()),_0x222df1(this,_0x15cb2b(0x358),this[_0x15cb2b(0x2ff)]),_0x222df1(this,_0x15cb2b(0x1ee),new Map());}[_0x476a9e(0x12e)](_0xbf7ef7){const _0x539a76=_0x476a9e;this[_0x539a76(0x330)]=_0xbf7ef7,this[_0x539a76(0x2ff)][_0x539a76(0x279)](_0xbf7ef7);}[_0x476a9e(0x2f6)](_0x5aac81,_0x2daa8a){const _0x1979be=_0x476a9e;if(_0x2daa8a===_0x1baaf8[_0x1979be(0x400)][_0x1979be(0x320)]){let _0x1c299f=new Image();return _0x1c299f[_0x1979be(0x3e7)]=_0x5aac81,_0x1c299f;}return this[_0x1979be(0x1ee)]['get'](_0x5aac81);}['addImageSourceCache'](_0x79b4d7,_0x288d07,_0x472350){const _0x9ddbc0=_0x476a9e;_0x288d07===_0x1baaf8[_0x9ddbc0(0x400)]['BASE64']||_0x472350==null||this['_imageSourceCache'][_0x9ddbc0(0x2fd)](_0x79b4d7,_0x472350);}async[_0x476a9e(0x3f7)](_0x5ec945){const _0x329402=_0x476a9e;try{let _0x31937b=this[_0x329402(0x2af)](this[_0x329402(0x1e5)](),''+_0x5ec945),_0x469154=(await this[_0x329402(0x326)][_0x329402(0x2ee)](_0x31937b))['body'];if(_0x469154[_0x329402(0x1d5)]&&_0x469154['error'][_0x329402(0x371)]===_0x590316['ErrorCode']['OK']){let _0x279cee=(0x0,_0x99589[_0x329402(0x2f0)])(_0x469154[_0x329402(0x365)],this['_getDownloadEndpointURL']());return Promise[_0x329402(0x1a4)](_0x279cee);}return Promise[_0x329402(0x31d)](_0x469154[_0x329402(0x1d5)]);}catch(_0x3f3fd1){return Promise['reject'](_0x3f3fd1);}}async['saveImage'](_0x41cef8){const _0x1237f9=_0x476a9e;let _0x3d8a23='';if(!_0x1baaf8[_0x1237f9(0x425)][_0x1237f9(0x1d6)](_0x41cef8['type']))return this[_0x1237f9(0x2a1)](),Promise[_0x1237f9(0x31d)](Error(_0x1baaf8['ImageUploadStatusType'][_0x1237f9(0x31f)]));if(_0x41cef8['size']>(0x0,_0x1baaf8[_0x1237f9(0x2a5)])())return this[_0x1237f9(0x2a1)](),Promise[_0x1237f9(0x31d)](Error(_0x1baaf8[_0x1237f9(0x2b9)][_0x1237f9(0x176)]));try{let _0x1a58ef=new FormData();_0x1a58ef[_0x1237f9(0x273)](_0x1237f9(0x215),_0x41cef8);let _0x4c584e=this[_0x1237f9(0x277)][_0x1237f9(0x26c)](),_0x4d6cc6=_0x4c584e==null?void 0x0:_0x4c584e[_0x1237f9(0x3f2)]();if(!_0x4d6cc6)throw Error(_0x1237f9(0x40f));let _0x177613=this['_getUploadFileURL']()+_0x1237f9(0x3c7)+_0x41cef8['size'][_0x1237f9(0x414)]()+'&source='+_0x590316[_0x1237f9(0x168)]['UnitEmbedded']+_0x1237f9(0x32f)+encodeURIComponent(_0x4d6cc6),_0x1cdc3b={'body':_0x1a58ef},_0x337482=(await this['_httpService'][_0x1237f9(0x31b)](_0x177613,_0x1cdc3b))[_0x1237f9(0x256)];if(typeof _0x337482[_0x1237f9(0x2a3)]!='string')return this[_0x1237f9(0x2a1)](),Promise[_0x1237f9(0x31d)](Error(_0x1baaf8[_0x1237f9(0x2b9)][_0x1237f9(0x21a)]));_0x3d8a23=_0x337482['FileId'];}catch{return this[_0x1237f9(0x2a1)](),Promise[_0x1237f9(0x31d)](Error(_0x1baaf8[_0x1237f9(0x2b9)]['ERROR_IMAGE']));}return new Promise((_0x444de6,_0x25a07a)=>{let _0x39e48e=new FileReader();_0x39e48e['readAsDataURL'](_0x41cef8),_0x39e48e['onload']=_0x4aed83=>{const _0x1316bc=_0x3d7a;var _0xba160a;let _0x45485f=(_0xba160a=_0x4aed83['target'])==null?void 0x0:_0xba160a[_0x1316bc(0x1be)];if(_0x45485f==null){this['_decreaseWaiting'](),_0x25a07a(Error(_0x1baaf8['ImageUploadStatusType'][_0x1316bc(0x21a)]));return;}_0x444de6({'imageId':(0x0,_0x99589['generateRandomId'])(0x6),'imageSourceType':_0x1baaf8[_0x1316bc(0x400)][_0x1316bc(0x3bc)],'source':_0x3d8a23,'base64Cache':_0x45485f,'status':_0x1baaf8[_0x1316bc(0x2b9)][_0x1316bc(0x3b4)]}),this['_decreaseWaiting']();};});}[_0x476a9e(0x323)](){const _0x5cd449=_0x476a9e;var _0x1c484d;let _0x5c8ce5=this[_0x5cd449(0x249)][_0x5cd449(0x3b0)](_0x355bce);return(_0x1c484d=_0x5c8ce5==null?void 0x0:_0x5c8ce5[_0x5cd449(0x263)])==null?'/universer-api/stream/file/upload':_0x1c484d;}[_0x476a9e(0x1e5)](){const _0x579be9=_0x476a9e;var _0x608443;let _0x32cff6=this[_0x579be9(0x249)][_0x579be9(0x3b0)](_0x355bce);return(_0x608443=_0x32cff6==null?void 0x0:_0x32cff6[_0x579be9(0x24e)])==null?_0x579be9(0x175):_0x608443;}[_0x476a9e(0x11e)](){const _0x492e98=_0x476a9e;var _0x1e445b;let _0x22ff56=this[_0x492e98(0x249)]['getConfig'](_0x355bce);return(_0x1e445b=_0x22ff56==null?void 0x0:_0x22ff56[_0x492e98(0x34c)])==null?location[_0x492e98(0x342)]:_0x1e445b;}[_0x476a9e(0x2af)](_0x14ca5e,_0x11ade0){const _0x593172=_0x476a9e;return _0x14ca5e[_0x593172(0x140)](_0x593172(0x280),_0x11ade0);}[_0x476a9e(0x2a1)](){const _0x5bca50=_0x476a9e;--this[_0x5bca50(0x330)],this[_0x5bca50(0x2ff)][_0x5bca50(0x279)](this[_0x5bca50(0x330)]);}};_0x2c3494=_0x10b7c9([_0x191f42(0x0,(0x0,_0x99589['Inject'])(_0x472468[_0x476a9e(0x40a)])),_0x191f42(0x1,_0x99589[_0x476a9e(0x164)]),_0x191f42(0x2,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589[_0x476a9e(0x16c)]))],_0x2c3494);let _0x123e9d=class{constructor(_0x4772fc,_0x12bb51){const _0x423e7a=_0x476a9e;this['_configService']=_0x4772fc,this[_0x423e7a(0x269)]=_0x12bb51;}[_0x476a9e(0x2fa)](){const _0x336b0f=_0x476a9e;var _0x22f601;let _0x24a2e0=this[_0x336b0f(0x249)][_0x336b0f(0x3b0)](_0x355bce);return(_0x22f601=_0x24a2e0==null?void 0x0:_0x24a2e0[_0x336b0f(0x3a3)])==null?'/universer-api/authz':_0x22f601;}async['list'](_0x4f8d4a){const _0x1d9338=_0x476a9e;let _0x405549=this[_0x1d9338(0x2fa)]()+'/collaborator';return{'list':[{'title':_0x1d9338(0x354),'mentions':(await this[_0x1d9338(0x269)][_0x1d9338(0x2ee)](_0x405549,{'params':{'objectID':_0x4f8d4a[_0x1d9338(0x2f3)],'unitID':_0x4f8d4a['unitId']}}))[_0x1d9338(0x256)]['collaborators']['map'](_0x1b3c78=>({'objectId':_0x1b3c78['id'],'name':_0x1b3c78['subject']['name'],'metadata':{'icon':_0x1b3c78[_0x1d9338(0x40b)][_0x1d9338(0x20c)]},'label':_0x1b3c78[_0x1d9338(0x40b)]['name'],'objectType':_0x99589[_0x1d9338(0x380)]['PERSON']})),'metadata':{},'type':_0x99589[_0x1d9338(0x380)][_0x1d9338(0x41f)]}]};}};_0x123e9d=_0x10b7c9([_0x191f42(0x0,(0x0,_0x99589['Inject'])(_0x99589[_0x476a9e(0x164)])),_0x191f42(0x1,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x472468[_0x476a9e(0x40a)]))],_0x123e9d);let _0x508081=class extends _0x99589['RxDisposable']{constructor(_0x1d638d,_0x4251bc,_0x1084e8,_0x3cd4c3,_0x38ab56){const _0x4ba0d5=_0x476a9e;super(),this[_0x4ba0d5(0x252)]=_0x1d638d,this[_0x4ba0d5(0x277)]=_0x4251bc,this[_0x4ba0d5(0x3b1)]=_0x1084e8,this[_0x4ba0d5(0x3cd)]=_0x3cd4c3,this['_collaborationUIEventService']=_0x38ab56,this['_initUnitPermissionChange'](),this[_0x4ba0d5(0x14c)]();}['_initCloseConn'](){const _0x62af20=_0x476a9e;let _0x2a8d85=async _0x219b24=>{const _0x47382c=_0x3d7a;(await this[_0x47382c(0x3cd)][_0x47382c(0x115)](_0x219b24))[_0x47382c(0x309)][_0x47382c(0x42f)]((0x0,_0x894c66[_0x47382c(0x41b)])(_0x2b6938=>_0x2b6938[_0x47382c(0x226)]===_0x626b63[_0x47382c(0x247)][_0x47382c(0x218)]),(0x0,_0x894c66[_0x47382c(0x327)])(this['dispose$']))[_0x47382c(0x36e)](_0x59318d=>{const _0x317dff=_0x47382c;let {reason:_0x38614b}=_0x59318d[_0x317dff(0x363)];this[_0x317dff(0x1b0)]['emitEvent']({'id':_0x317dff(0x259),'data':_0x38614b}),this[_0x317dff(0x3b1)][_0x317dff(0x445)](new _0x3591b7[(_0x317dff(0x43e))](_0x219b24)['id'],!0x1),this[_0x317dff(0x3cd)][_0x317dff(0x211)](_0x219b24);});};(0x0,_0x3666d5[_0x62af20(0x291)])(this[_0x62af20(0x277)][_0x62af20(0x43d)](_0x99589['UniverInstanceType']['UNIVER_SHEET']),this[_0x62af20(0x277)][_0x62af20(0x43d)](_0x99589[_0x62af20(0x3ce)][_0x62af20(0x396)]),this[_0x62af20(0x277)][_0x62af20(0x43d)](_0x99589[_0x62af20(0x3ce)][_0x62af20(0x3c0)]))[_0x62af20(0x42f)]((0x0,_0x894c66[_0x62af20(0x10f)])(_0x511484=>_0x511484[_0x62af20(0x1bc)]['getUnitId']()),(0x0,_0x894c66['filter'])(_0x18a351=>!(0x0,_0x99589[_0x62af20(0x23b)])(_0x18a351)),(0x0,_0x894c66['takeUntil'])(this['dispose$']))[_0x62af20(0x36e)](_0x478df2=>{_0x2a8d85(_0x478df2);});}[_0x476a9e(0x1bb)](){const _0x4711b4=_0x476a9e;let _0x4906a4=async _0x27bd25=>{const _0x5afabc=_0x3d7a;let _0x10f72f=await this[_0x5afabc(0x3cd)][_0x5afabc(0x115)](_0x27bd25),_0x2b1c44=this[_0x5afabc(0x252)]['get'](_0x3591b7[_0x5afabc(0x22e)]);_0x10f72f[_0x5afabc(0x309)][_0x5afabc(0x42f)]((0x0,_0x894c66['filter'])(_0x1de43a=>_0x1de43a[_0x5afabc(0x226)]===_0x626b63['CollaborationEvent'][_0x5afabc(0x223)]),(0x0,_0x894c66[_0x5afabc(0x327)])(this[_0x5afabc(0x412)]))['subscribe'](_0xd5e74c=>{const _0x1e6f46=_0x5afabc;let {objectId:_0x3f1f09}=_0xd5e74c[_0x1e6f46(0x363)];_0x3f1f09===_0x27bd25?_0x2b1c44[_0x1e6f46(0x29d)](_0x27bd25):_0x2b1c44[_0x1e6f46(0x384)](_0x27bd25,_0x3f1f09);});};(0x0,_0x3666d5[_0x4711b4(0x291)])(this[_0x4711b4(0x277)][_0x4711b4(0x43d)](_0x99589[_0x4711b4(0x3ce)]['UNIVER_SHEET']))[_0x4711b4(0x42f)]((0x0,_0x894c66[_0x4711b4(0x10f)])(_0x135346=>_0x135346[_0x4711b4(0x1bc)][_0x4711b4(0x3f2)]()),(0x0,_0x894c66[_0x4711b4(0x41b)])(_0x4a2615=>!(0x0,_0x99589[_0x4711b4(0x23b)])(_0x4a2615)),(0x0,_0x894c66[_0x4711b4(0x327)])(this[_0x4711b4(0x412)]))[_0x4711b4(0x36e)](_0x351301=>{_0x4906a4(_0x351301);});}};_0x508081=_0x10b7c9([_0x191f42(0x0,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x99589[_0x476a9e(0x239)])),_0x191f42(0x1,_0x99589['IUniverInstanceService']),_0x191f42(0x2,_0x99589[_0x476a9e(0x1b4)]),_0x191f42(0x3,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x543fd0)),_0x191f42(0x4,(0x0,_0x99589[_0x476a9e(0x1a0)])(_0x4cf82f))],_0x508081);let _0xc5d465=class{constructor(_0x12c3bb,_0x2a3ae5){const _0xb85749=_0x476a9e;this[_0xb85749(0x249)]=_0x12c3bb,this[_0xb85749(0x326)]=_0x2a3ae5;}async[_0x476a9e(0x2de)](_0x3667a8,_0x270dce){const _0x265b1a=_0x476a9e;var _0x2fa7b3;let {unitID:_0x985adc,type:_0x163a7f,revision:_0x38c78d=0x0}=_0x270dce,_0x486b65=this[_0x265b1a(0x33e)]()+'/'+_0x163a7f+_0x265b1a(0x3a5)+_0x985adc+_0x265b1a(0x1c4)+_0x38c78d,_0x192b52=(await this['_httpService'][_0x265b1a(0x2ee)](_0x486b65))[_0x265b1a(0x256)],_0x53b1b4=(_0x2fa7b3=_0x192b52[_0x265b1a(0x28b)])==null?void 0x0:_0x2fa7b3['workbook'];if(_0x53b1b4){let _0x5dec84=_0x53b1b4==null?void 0x0:_0x53b1b4[_0x265b1a(0x18d)];_0x53b1b4[_0x265b1a(0x18d)]=_0x626b63[_0x265b1a(0x370)]['encode']((0x0,_0x626b63[_0x265b1a(0x32d)])(_0x5dec84)),Object[_0x265b1a(0x2c2)](_0x53b1b4[_0x265b1a(0x316)])[_0x265b1a(0x411)](([,_0x3df72b])=>{const _0x1295fe=_0x265b1a;let _0x2e8d22=_0x3df72b['originalMeta'];_0x3df72b[_0x1295fe(0x18d)]=_0x626b63[_0x1295fe(0x370)]['encode']((0x0,_0x626b63[_0x1295fe(0x32d)])(_0x2e8d22));});}return _0x192b52;}async['getSheetBlock'](_0x15cb02,_0x258b31){const _0x68e683=_0x476a9e;let {unitID:_0x1634a4,type:_0x245044,blockID:_0x15fa92}=_0x258b31,_0x1164c4=this['_getAPIPrefix']()+'/'+_0x245044+_0x68e683(0x3a5)+_0x1634a4+_0x68e683(0x366)+_0x15fa92;return(await this[_0x68e683(0x326)][_0x68e683(0x2ee)](_0x1164c4))[_0x68e683(0x256)];}async['getDeserializedSheetBlock'](_0x257a12,_0x34c1be){const _0x5ae8e3=_0x476a9e;let {unitID:_0x170e54,type:_0x262111,blockID:_0x3cf638}=_0x34c1be,_0x3d059d=this['_getAPIPrefix']()+_0x5ae8e3(0x366)+_0x262111+_0x5ae8e3(0x3a5)+_0x170e54+_0x5ae8e3(0x366)+_0x3cf638;return(await this[_0x5ae8e3(0x326)][_0x5ae8e3(0x2ee)](_0x3d059d))['body'];}async[_0x476a9e(0x3d5)](_0x5eff22,_0x1032b0){const _0x5194e7=_0x476a9e;let {unitID:_0x2ecbda,type:_0x2092f2,from:_0x1e1ced,to:_0x2e84d8}=_0x1032b0,_0x336243=this[_0x5194e7(0x28e)]()+'/'+_0x2092f2+_0x5194e7(0x3a5)+_0x2ecbda+_0x5194e7(0x161)+_0x1e1ced+_0x5194e7(0x3ab)+_0x2e84d8;return(await this[_0x5194e7(0x326)][_0x5194e7(0x2ee)](_0x336243))['body'];}[_0x476a9e(0x33e)](){const _0x33bc33=_0x476a9e;var _0x994c92;return(_0x994c92=this[_0x33bc33(0x249)]['getConfig'](_0x33bc33(0x128)))==null?this['_getAPIPrefix']():_0x994c92;}[_0x476a9e(0x28e)](){const _0x4b3e7d=_0x476a9e;var _0x5bdeeb;let _0x79597c=this[_0x4b3e7d(0x249)]['getConfig'](_0x355bce);return(_0x5bdeeb=_0x79597c==null?void 0x0:_0x79597c[_0x4b3e7d(0x152)])==null?_0x4b3e7d(0x37e):_0x5bdeeb;}async[_0x476a9e(0x375)](_0x2fcb42,_0x551c98){const _0x28220b=_0x476a9e;let _0x3b0524='/universer-api/snapshot/'+_0x551c98[_0x28220b(0x2c9)]+_0x28220b(0x3a5)+_0x551c98[_0x28220b(0x1b8)]+_0x28220b(0x111);return(await this[_0x28220b(0x326)][_0x28220b(0x2ee)](_0x3b0524,{'params':{'resourceId':JSON[_0x28220b(0x27c)](_0x551c98[_0x28220b(0x3a4)])}}))[_0x28220b(0x256)];}[_0x476a9e(0x444)](){const _0x25b988=_0x476a9e;throw Error(_0x25b988(0x2b4));}[_0x476a9e(0x390)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x476a9e(0x34f)](){const _0x1ec6d6=_0x476a9e;throw Error(_0x1ec6d6(0x2b4));}[_0x476a9e(0x243)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x30ed52=_0x476a9e;throw Error(_0x30ed52(0x2b4));}[_0x476a9e(0x15f)](){const _0x3bb67a=_0x476a9e;throw Error(_0x3bb67a(0x2b4));}};_0xc5d465=_0x10b7c9([_0x191f42(0x0,_0x99589[_0x476a9e(0x164)]),_0x191f42(0x1,(0x0,_0x99589['Inject'])(_0x472468[_0x476a9e(0x40a)]))],_0xc5d465);let _0x2b6606=class extends _0x99589[_0x476a9e(0x34e)]{constructor(_0x10449d,_0x3e0277,_0x451372,_0x2d01be,_0x40a547){const _0x2267fb=_0x476a9e;super(_0x10449d,_0x3e0277,_0x451372),this[_0x2267fb(0x355)]=_0x2d01be,this[_0x2267fb(0x37d)]=_0x40a547;}['transformUndoRedo'](_0x7e4a9c,_0x508a26){const _0x35230c=_0x476a9e;let _0x491d05=this[_0x35230c(0x1b3)](_0x7e4a9c);if(_0x491d05)try{let _0x5c5735=this[_0x35230c(0x2dd)](_0x491d05,_0x508a26);this['_substituteUndoStack'](_0x7e4a9c,_0x5c5735);}catch(_0x7db01e){this[_0x35230c(0x37d)][_0x35230c(0x1d5)](_0x35230c(0x413),_0x7db01e),this[_0x35230c(0x1e8)](_0x7e4a9c);}let _0x266abc=this[_0x35230c(0x1dc)](_0x7e4a9c);if(_0x266abc)try{let _0x2ad8cd=this['_transformStack'](_0x266abc,_0x508a26);this['_substituteRedoStack'](_0x7e4a9c,_0x2ad8cd);}catch(_0xb06521){this[_0x35230c(0x37d)][_0x35230c(0x1d5)](_0xb06521),this['_clearRedo'](_0x7e4a9c);}}[_0x476a9e(0x1e8)](_0x4f717c){const _0x4c05b7=_0x476a9e;let _0x34654a=this[_0x4c05b7(0x1b3)](_0x4f717c);_0x34654a&&(_0x34654a[_0x4c05b7(0x1ff)]=0x0,this[_0x4c05b7(0x415)]());}[_0x476a9e(0x3f9)](_0x31e622){const _0x16f237=_0x476a9e;let _0x4c38ea=this[_0x16f237(0x1dc)](_0x31e622);_0x4c38ea&&(_0x4c38ea[_0x16f237(0x1ff)]=0x0,this[_0x16f237(0x415)]());}[_0x476a9e(0x245)](_0xf06cd,_0x4318c6){const _0x5e5b1a=_0x476a9e;this[_0x5e5b1a(0x3ae)][_0x5e5b1a(0x2fd)](_0xf06cd,_0x4318c6),this['_updateStatus']();}[_0x476a9e(0x290)](_0x496177,_0xf912f6){const _0x2410ba=_0x476a9e;this[_0x2410ba(0x214)][_0x2410ba(0x2fd)](_0x496177,_0xf912f6),this[_0x2410ba(0x415)]();}['_transformStack'](_0x5532fb,_0x4071ff){const _0x3e83ef=_0x476a9e;let _0x5cf5bb=[],_0x25b8e8=_0x4071ff,_0x17dd09=_0x4071ff;for(let _0x5b8142=_0x5532fb[_0x3e83ef(0x1ff)]-0x1;_0x5b8142>=0x0;_0x5b8142--){let {unitID:_0xaed8bb,undoMutations:_0x29d912,redoMutations:_0x1ad990}=_0x5532fb[_0x5b8142],_0x2d0da8=this[_0x3e83ef(0x355)][_0x3e83ef(0x188)](_0x25b8e8,_0x29d912),_0x4437d8=this[_0x3e83ef(0x355)][_0x3e83ef(0x188)](_0x17dd09,_0x1ad990);if((0x0,_0x626b63['isTransformMutationsWithChangesetFailure'])(_0x2d0da8)||(0x0,_0x626b63[_0x3e83ef(0x2f8)])(_0x4437d8)){this[_0x3e83ef(0x37d)][_0x3e83ef(0x1d5)]('[CollaborationUndoRedoService]',_0x3e83ef(0x1ad),_0x2d0da8,_0x4437d8);break;}_0x25b8e8=_0x2d0da8[_0x3e83ef(0x1aa)],_0x17dd09=_0x4437d8[_0x3e83ef(0x1aa)],_0x5cf5bb[_0x3e83ef(0x29b)]({'unitID':_0xaed8bb,'undoMutations':_0x2d0da8[_0x3e83ef(0x3df)],'redoMutations':_0x4437d8[_0x3e83ef(0x3df)]});}return _0x5cf5bb[_0x3e83ef(0x173)]();}};_0x2b6606=_0x10b7c9([_0x191f42(0x0,_0x99589[_0x476a9e(0x16c)]),_0x191f42(0x1,_0x99589[_0x476a9e(0x300)]),_0x191f42(0x2,_0x99589[_0x476a9e(0x3e0)]),_0x191f42(0x3,_0x626b63['ITransformService']),_0x191f42(0x4,_0x99589[_0x476a9e(0x1e0)])],_0x2b6606);let _0x4ebbbf=class extends _0x99589[_0x476a9e(0x191)]{constructor(_0x107912={},_0x190705,_0x3fa896,_0x57584c){const _0x5113b6=_0x476a9e;super(),this['_config']=_0x107912,this[_0x5113b6(0x37d)]=_0x190705,this[_0x5113b6(0x252)]=_0x3fa896,this[_0x5113b6(0x249)]=_0x57584c;let {..._0x376225}=(0x0,_0x99589['merge'])({},_0x10a3ef,_0x107912);if(!_0x376225[_0x5113b6(0x3c9)])throw Error(_0x5113b6(0x27e));this[_0x5113b6(0x17f)]=_0x376225,this[_0x5113b6(0x249)]['setConfig'](_0x355bce,_0x376225);}[_0x476a9e(0x3ed)](){const _0x344ac5=_0x476a9e;this[_0x344ac5(0x383)](),this['_initDependencies']();}[_0x476a9e(0x383)](){const _0x3e47ce=_0x476a9e;var _0x417546,_0x2b6a8a;this[_0x3e47ce(0x252)][_0x3e47ce(0x177)](_0x99589[_0x3e47ce(0x1df)])&&this[_0x3e47ce(0x37d)]['error'](_0x3e47ce(0x39e),_0x3e47ce(0x26a));let _0x1298e0=(0x0,_0x99589[_0x3e47ce(0x250)])([[_0x99589[_0x3e47ce(0x1df)],{'useClass':_0x2b6606}],[_0x543fd0],[_0x5cbafb],[_0x4a849f],[_0x17366a],[_0x1e3847],[_0x371f43],[_0x508081],[_0x4cf82f],[_0x1c2b44],[_0x283664,{'useClass':this['_config'][_0x3e47ce(0x3c9)]}],[_0x626b63[_0x3e47ce(0x181)],{'useClass':_0xc5d465}],[_0x99589[_0x3e47ce(0x3a8)],{'useClass':_0x1dc665}],[_0x1baaf8[_0x3e47ce(0x43b)],{'useClass':_0x2c3494}],[_0x268745,{'useClass':_0x541ae7}],[_0x99589['IMentionIOService'],{'useClass':_0x123e9d}],[_0x78b026],[_0x37b790]],(_0x417546=this[_0x3e47ce(0x17f)])==null?void 0x0:_0x417546[_0x3e47ce(0x336)]);if(!((_0x2b6a8a=this[_0x3e47ce(0x17f)])!=null&&_0x2b6a8a[_0x3e47ce(0x2f1)])){let _0x1fd2c0=_0x1298e0[_0x3e47ce(0x2e7)](([_0x2d51c1])=>_0x2d51c1===_0x6f676a);_0x1fd2c0!==-0x1&&_0x1298e0[_0x3e47ce(0x22d)](_0x1fd2c0,0x1);}(0x0,_0x99589[_0x3e47ce(0x297)])(this[_0x3e47ce(0x252)],_0x1298e0);}[_0x476a9e(0x1ec)](){const _0x30af14=_0x476a9e;var _0x10896f,_0x9e9480;if(this[_0x30af14(0x252)]['get'](_0x472468['HTTPService'])[_0x30af14(0x1d3)]({'priority':0x14,'interceptor':(0x0,_0x472468['ThresholdInterceptorFactory'])({'maxParallel':0x6})}),!((_0x10896f=this[_0x30af14(0x17f)])!=null&&_0x10896f[_0x30af14(0x2e3)])){var _0x3a3f42;(_0x3a3f42=this[_0x30af14(0x252)][_0x30af14(0x2ee)](_0xb8e6a3,_0x99589[_0x30af14(0x2d8)][_0x30af14(0x388)]))==null||_0x3a3f42['disableLocalCache']();}(_0x9e9480=this[_0x30af14(0x17f)])!=null&&_0x9e9480[_0x30af14(0x221)]&&(0x0,_0x99589['touchDependencies'])(this[_0x30af14(0x252)],[[_0x17366a]]),(0x0,_0x99589[_0x30af14(0x288)])(this[_0x30af14(0x252)],[[_0x1e3847],[_0x78b026],[_0x508081]]);}};_0x222df1(_0x4ebbbf,_0x476a9e(0x423),_0x476a9e(0x216)),_0x222df1(_0x4ebbbf,'packageName',_0x4ecce1),_0x222df1(_0x4ebbbf,_0x476a9e(0x15d),_0xc4be99),_0x4ebbbf=_0x10b7c9([(0x0,_0x99589[_0x476a9e(0x382)])(_0x127f85[_0x476a9e(0x3f0)],_0x626b63[_0x476a9e(0x19f)],_0x472468[_0x476a9e(0x434)]),_0x191f42(0x1,_0x99589[_0x476a9e(0x1e0)]),_0x191f42(0x2,(0x0,_0x99589['Inject'])(_0x99589[_0x476a9e(0x239)])),_0x191f42(0x3,_0x99589['IConfigService'])],_0x4ebbbf),_0x4a4926[_0x476a9e(0x374)]=_0x59f096,Object[_0x476a9e(0x16d)](_0x4a4926,_0x476a9e(0x192),{'enumerable':!0x0,'get':function(){return _0x1dc665;}}),Object[_0x476a9e(0x16d)](_0x4a4926,_0x476a9e(0x3fb),{'enumerable':!0x0,'get':function(){return _0x5c37e0;}}),Object[_0x476a9e(0x16d)](_0x4a4926,_0x476a9e(0x282),{'enumerable':!0x0,'get':function(){return _0x52215c;}}),_0x4a4926[_0x476a9e(0x39d)]=_0x355bce,Object['defineProperty'](_0x4a4926,_0x476a9e(0x352),{'enumerable':!0x0,'get':function(){return _0x541ae7;}}),Object[_0x476a9e(0x16d)](_0x4a4926,'CollaborationController',{'enumerable':!0x0,'get':function(){return _0x78b026;}}),Object[_0x476a9e(0x16d)](_0x4a4926,_0x476a9e(0x289),{'enumerable':!0x0,'get':function(){return _0x204d84;}}),Object[_0x476a9e(0x16d)](_0x4a4926,_0x476a9e(0x2df),{'enumerable':!0x0,'get':function(){return _0x2c3494;}}),Object[_0x476a9e(0x16d)](_0x4a4926,'CollaborationSession',{'enumerable':!0x0,'get':function(){return _0xbfbbbd;}}),Object['defineProperty'](_0x4a4926,_0x476a9e(0x2e2),{'enumerable':!0x0,'get':function(){return _0x543fd0;}}),Object[_0x476a9e(0x16d)](_0x4a4926,_0x476a9e(0x3c8),{'enumerable':!0x0,'get':function(){return _0x9d695d;}}),_0x4a4926[_0x476a9e(0x298)]=_0x3e553a,_0x4a4926[_0x476a9e(0x3db)]=_0x4a2701,_0x4a4926[_0x476a9e(0x41d)]=_0x4cf82f,Object[_0x476a9e(0x16d)](_0x4a4926,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return _0x2b6606;}}),_0x4a4926[_0x476a9e(0x3f5)]=_0x371f43,Object[_0x476a9e(0x16d)](_0x4a4926,_0x476a9e(0x134),{'enumerable':!0x0,'get':function(){return _0x411ff0;}}),_0x4a4926[_0x476a9e(0x207)]=_0x238496,_0x4a4926[_0x476a9e(0x433)]=_0x476a9e(0x197),_0x4a4926[_0x476a9e(0x3e1)]=_0x476a9e(0x1de),Object['defineProperty'](_0x4a4926,_0x476a9e(0x30c),{'enumerable':!0x0,'get':function(){return _0x1c2b44;}}),Object['defineProperty'](_0x4a4926,_0x476a9e(0x446),{'enumerable':!0x0,'get':function(){return _0xb7ed45;}}),Object[_0x476a9e(0x16d)](_0x4a4926,_0x476a9e(0x274),{'enumerable':!0x0,'get':function(){return _0xe81f65;}}),_0x4a4926[_0x476a9e(0x3d2)]=_0x476a9e(0x385),_0x4a4926[_0x476a9e(0x3e4)]=_0x476a9e(0x2e0),_0x4a4926['IAttachmentIoService']=_0x268745,_0x4a4926[_0x476a9e(0x19c)]=_0x283664,_0x4a4926['ILocalCacheService']=_0xb8e6a3,_0x4a4926[_0x476a9e(0x132)]=_0x258625,_0x4a4926[_0x476a9e(0x19a)]=_0x6f676a,_0x4a4926[_0x476a9e(0x3ee)]=0x3e8,_0x4a4926[_0x476a9e(0x248)]=_0x476a9e(0x3ee),Object[_0x476a9e(0x16d)](_0x4a4926,_0x476a9e(0x3ea),{'enumerable':!0x0,'get':function(){return _0x5cbafb;}}),Object[_0x476a9e(0x16d)](_0x4a4926,_0x476a9e(0x410),{'enumerable':!0x0,'get':function(){return _0x123e9d;}}),Object['defineProperty'](_0x4a4926,'OfflineState',{'enumerable':!0x0,'get':function(){return _0x37212d;}}),Object[_0x476a9e(0x16d)](_0x4a4926,_0x476a9e(0x3a2),{'enumerable':!0x0,'get':function(){return _0xe238f7;}}),_0x4a4926['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']=_0x476a9e(0x2d5),_0x4a4926[_0x476a9e(0x124)]=_0x476a9e(0x36b),_0x4a4926[_0x476a9e(0x229)]=_0x5f0ef1,Object[_0x476a9e(0x16d)](_0x4a4926,_0x476a9e(0x3e9),{'enumerable':!0x0,'get':function(){return _0x7976d7;}}),Object[_0x476a9e(0x16d)](_0x4a4926,_0x476a9e(0x14f),{'enumerable':!0x0,'get':function(){return _0x4a849f;}}),Object[_0x476a9e(0x16d)](_0x4a4926,_0x476a9e(0x202),{'enumerable':!0x0,'get':function(){return _0xc5d465;}}),Object[_0x476a9e(0x16d)](_0x4a4926,_0x476a9e(0x38f),{'enumerable':!0x0,'get':function(){return _0x58d04a;}}),_0x4a4926[_0x476a9e(0x348)]=_0x4b0c97,Object['defineProperty'](_0x4a4926,_0x476a9e(0x25a),{'enumerable':!0x0,'get':function(){return _0x4ebbbf;}}),_0x4a4926[_0x476a9e(0x1a2)]=_0x3073ba,_0x4a4926['getLocalCacheKey']=_0x59fc71,_0x4a4926[_0x476a9e(0x28a)]=_0x1f761d;}));
1
+ function _0x2acf(){const _0x5005eb=['addHandlerCallback','_clearRetryConnectingTimer','OTHER_CLIENT_EDITING','UNIVER_DOC','SUBMIT_CHANGESET_TIMEOUT','toStringTag','_clearScheduledTask','ILogService','CollaborationSocketService','_compressMutationService','updateMember','\x0aAfter:\x20','CommandType','_clearCollaborationTimeoutTimer','pipe','1.0.0-alpha.2','unit','saveAttachment','_transformRemoteChangesetByIMECache','output','_unlockTransition','incrementRevOfUnit','SetSelectionsOperation','onMutationExecutedForCollab','shareReplay','backupOfflineData','_clearHeartbeatTimer','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','&assign=','Tools','_type','955012EYsNLT','COMMENT_UPDATE','IConfigService','subUnitId','has','sessionStatus$','_acknowledgeAwaiting','toggleOffline','close$','packageName','_changesetSessionId','Quantity','endsWith','onTransformSelections','next','UNIVER_BASE','_getUploadFileURL','_onRemoteChangeset','Rectangle','filter','_commentService','x-univer-host','getUploadOptions','status','_onUserJoin','&source=','result','length','Uint8Array','_onConflict','Error\x20on\x20receiving\x20event','BASE64','fetch_missing','resend','_clearLocalCache','LocaleService','IPermissionService','__splitChunk__','IContextService','_permissionService','JOIN_ROOM_PERMISSION_DENIED','_doCreateSocket','UniverCollaborationClientPlugin','defineProperty','_createInitialState','_lockTransition','downloadEndpointUrl','UniverSheets','newCsEvent','CollaborationController','CmdRspCode','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','c1Prime','readAsDataURL','_shouldReportTelemetry','RETRY_CONNECTING_MAX_COUNT','/new_changes','deleteCollaborator','_initUnitPermissionChange','JOIN_ROOM_NOT_EXISTS','_onFetchMissResult','CONFLICT','JOIN','uuidv4','_onRemoteRejected','onRemoteChangeset','Disposable','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','conflict','updateCursorEvent','_state','UnitEmbedded','UniverLicensePlugin','assign','resolveWithBasePath','onMissingChangesets','getSnapshotAPIPath','push','[PendingState]:\x20received\x20rejection.','type=','_collabSessionService','getTime','fromCollab','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','body','reqId','ISingleActiveUnitService','/unit/','findIndex','stopTime','_initDependencies','_createSocket','_transformIMECache','session.room-permission-denied','changesets','avatar','@univerjs-pro/collaboration','src','varSizeNonce','encodeURIComponent','unknown','_sessions','every','_collaborationTimeoutTimer','saveImage','patch','_initCloseConn','createCollaborator','SUCCUSS','_submitChangeset','_onRemoteRetry','RemoveSlidePageMutation','mutations','collaboration-client.config','createIdentifier','_networkConditionService','clear','find','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','loginUrlKey','CHANGESET_SHOULD_RETRY','_handlerCallback','AWAITING','ISocketService','_socketService','csRejEvent','_tryReconnect','unit-cache-','UPDATE_PERMISSION_OBJ','charCodeAt','COMPRESS_MUTATION_APPLY','isInternalEditorID','_unitLoaded$','m2Prime','getUnitStatus$','DocStateChangeManagerService','_applyRemoteChangeset','_telemetryInfo','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_sheetTransformSelectionsService','reverse','_startTelemetryCollaborationNewChangeset','parseProtocolChangeset','SheetPermissionInitController','@univerjs/core','_updateState','memberID','string','ICollaborationSocketService','@univerjs-pro/license','@univerjs-pro/bases','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','ISnapshotServerService','session.room-full','_updateLocalCache','isTransformChangesetsSuccess','add','{fileID}','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','CLOSE_ROOM','[CollaborationUndoRedoService]','_transitionLocked','?url=','commentUpdate$','onStateChange','MentionIoHttpService','executeCommand','UniverInstanceType','_substituteRedoStack','socket$','addImageSourceCache','getCurrentUser','NEW_CHANGESETS','getUnitType','UniverDrawing','waitForRoom$','loadDoc','subject','getUnitOnRev','set','code','_state$','getUnit','objectID','c2Prime','/object/','onStarting','onRemoteRetry','setCurrentUser','onMissedChangesetFetched','getCurrentSelections','workbook','encode','type','_incrementRevisionNumber','\x20-\x20','WorkbookEditablePermission','routeKey','snapshotServerUrl','SnapshotServerOverHTTPService','online$','loadOfflineData','_schedule','ThresholdInterceptorFactory','RichTextEditingMutation','loadSlide','awaitingChangeset','updatePermissionObjEvent','_scheduleCompleteTimestamp','Inject','transformChangesets','_waitForHeartbeatResponse','updateSnapshot','ws://127.0.0.1:8000/universer-api/comb/connect','name','map','copyFileMeta','/fetchmissing?from=','_replayCachedMutations','accept','status$','min','error','send','FileId','leaveEvent','Plugin','socketService','fill','_onJoinRoomEvent','nonceLength','sheets','ConflictState','_changesetReqId','getOwnPropertyDescriptor','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_snapshotServerService','telemetry\x20info\x20is\x20not\x20initialized','CollaborationEvent','_members$','rev','ICommandService','collabSubmitChangesetUrl','_change$','_entityInit$','params','revision','ERROR_IMAGE_TYPE','RevisionService','OFFLINE','delete','NO_OTHER_CLIENTS_EDITING','state$','CombCmd','joinRsp','baseRev','_getRedoStack','DRAWING_IMAGE_ALLOW_IMAGE_LIST','save\x20fail\x20reason\x20is\x20','_onLocalMutation','AwaitingWithPendingState','DisposableCollection','_getSendChangesetTimeout','toDisposable','getConfig','_throwTelemetryCollaborationNewChangeset','_emitMembers','rxjs/operators','_revisionService','/-/object/list','saveChangeset','eventID','getDrawingImageAllowSize','UniverProBases','signUrlServerUrl','_onMessage','FetchingMissState','selections','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','compose','setCfgEnableObjInherit','_substituteUndoStack','tagLength','deserializeToCombResponse','UniverNetwork','_HTTPService','subscribe','_transformAndApplyRemoteChangeset','closeSession','_imageSourceCache','apply','_resendWithTimeout','origin','CollaborativeUndoRedoService','MentionType','_collaborationUIEventService','onTransformState','\x20to\x20','[OfflineState]:\x20received\x20acknowledgement.','@univerjs/protocol','/collaborator','ErrorCode','MemberService','UPDATE_CURSOR','confirm','_socketMessageSubscription','_getAPIPrefix','expected\x20Uint8Array','CHANGESET_ACK','range','InsertSheetMutation','focused$','toPrimitive','@univerjs-pro/collaboration-client','CollaborationSessionService','DEFAULT_FILE_NAME','append','_handleRemoteChangesets','disablePadding','parse','IAuthzIoService','text-x','_socketReady','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_localCacheService','[DataLoaderService]','_createInitialStateImpl','failed\x20to\x20apply\x20missed\x20changesets!','_onOffline','IUndoRedoService','__Key__','_collaborationPaused','title','onTransformRemoteChangesetByStateCache','exports','transformMutationsWithChangeset','values','_registerDependencies','editingUnit','debug','getCollabEntity$','pending','onTransformIME','loadSheet','CHANGESET_REJ','_updateStatus','responseType','[OfflineState]:\x20received\x20changeset.','_disableEditing','[UniverCollaborationClientPlugin]','appendMutation','permissionRejEvent','UNISCRIPT_RUN','UniverProtocol','_telemetryService','_onConnectionOpen','getInterceptPoints','Optional','_maxTotalRetryTimeout','ILocalCacheService','[SyncedState]:\x20received\x20acknowledgement.','[FetchMissState]','_toggleOffline','_retryConnectingTimer','localCacheService','_instanceService','_queuedRemoteChangesets','href','LocalUndoRedoService','_univerInstanceService','UNIVER_COLLABORATION_CLIENT_PLUGIN','CollaborationEntity','HTTPService','_toggleOnline','duration','MergeInterceptorFactory','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','getResourcesRequest','createInstance','awaiting_with_pending','uploadFileServerUrl','_sendHeartbeatTimer','complete','_onRemoteACK','HEARTBEAT','JOINING','crypto.getRandomValues\x20must\x20be\x20defined','decrypt','/universer-api/stream/file/upload','session.join-failed','startsWith','interceptor','collaboration_new_changeset','post','removeMember','[PendingState]:\x20unhandled\x20univer\x20type:\x20','disposeWithMe','\x0aCurrent:\x20','missingChangesets','INGEST','POST','generateRandomId','RxDisposable','default','_rescheduleHeartbeat','getValue','getSheetId','_httpService','Failed\x20to\x20update\x20permission\x20point','LIVESHARE_REQUEST_HOST','fromCharCode','getRandomValues','IImageIoService','size','_executeRemoteChangeset','_createHandler','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','_resendTimeout','resourceIDs','enableSingleActiveInstanceLock','crypto','localeService','PERMISSION_DENIED','Workbook','uniscriptRunEvent','indexOf','maxSize','buffer','getSheetBlock','_sender','replace','191201yUgclu','fetchThroughInterceptors','/-/object/-/batch_allowed','includes','ITransformService','2844351CLMZor','ReplaySubject','SheetsSelectionsService','parseChangesetToProtocol','byteOffset','then','_pendingMutations','actions','_config','length=','state','encrypt','symbol','SUBMIT_CHANGESET','capture','sid','BehaviorSubject','getTypeOfUnitAdded$','[CollaborationState]:\x20apply\x20error!','JSONX','delay','_onUserLeave','LIVESHARE_NEW_HOST','CollaborationAttachmentIoService','URL','rxjs','upload','override','_timeoutTimer','offline','_replaceFileID','onSyncEditingCollabCursor','registerHTTPInterceptor','attachment','emitEvent','_transformUndoredo','_decreaseWaiting','\x20in\x20_schedule.','updatePermissionPoint','_userManagerService','SOCKET_FAILED_RETRY','session.room-cnt-exceeds','UNIVER_SHEET','createSocket','refreshPermission','_handler','UniverProCollaboration','open$','collabWebSocketUrl','[CollaborationSessionService]','6nEfFUX','_sessionStatus$','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','saveSnapshot','splice','get','serializeCombRequest','stringify','_awaitingChangeset','ImageUploadStatusType','CompressMutationService','members','iterator','getTypeOfUnitDisposed$','IUniverInstanceService','getFocusedUnit','_collaborationSessionService','not_collab','updateOfflineData','OTHER_CLIENTS_EDITING','onRemoteAck','headers','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','JOIN_ROOM_FAILED','awaiting','getCurrentRevOfUnit','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','DataLoaderService','/universer-api/authz','isSafeInteger','asObservable','OfflineState','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','unitID','_retryCount','USERS_ENTER','getImageSourceCache','EmptyMutationInfo','socket\x20open.','isTransformMutationsWithChangesetSuccess','_socket$','merge','MoveSlidePageMutation','CollaborationSession','session','_transformRemoteChangesetByStateCache','mapDocumentTypeToUniverInstanceType','MSG_FOR_ERROR','some','reduce','getLatestCsReqIdBySid','_stopTelemetryCollaborationNewChangeset','_removeRoom','location','Subject','?size=','Wrong\x20sbox\x20length','toggleOnline','version','LIVESHARE_OPERATION','@univerjs-pro/slides','unitInfo$','batchAllowed','IAttachmentIoService','_acknowledgeAwaitingIfReady','PERSON','_showConflictNotification','isView','_joinRoom','UniverTelemetry','_docStateChangeManagerService','_upload','dispose','positive\x20integer\x20expected,\x20got\x20','collaboration-client.local-cache-service','withCredentials','SheetCollaborationEntity','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_isEchoedAwaitingChangeset','DEFAULT_WS_SESSION_TICKET_URL','byteLength','PERMISSION_REJ','listRoles','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','saveSheetBlock','UniverCore','event$','onLocalMutation','AwaitingState','LIVESHARE_TERMINATE','data','loadUnitOfRevision','deepClone','_listenToNetworkCondition','take','COMPRESS_MUTATION_SEND','b64DecodeUnicode','_unitID','_memberService','SHOULD_CLOSE_CONN','cmd','BYTES_PER_ELEMENT','requireSession','HEARTBEAT_INTERVAL','_waitCount','_injector','AuthzIoHttpService','transformSelections','2pyZGFL','error$','ApplyBaseJson1Mutation','message$','reject','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_logService','csAckEvent','connection\x20error','getActiveSheet','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','isArray','GLOBAL_ROOMS_CNT_EXCEEDS','DEFAULT_COLLAB_WEB_SOCKET_URL','HEARTBEAT_TIMEOUT_KEY','setConfig','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','SOCKET_FAILED','HELLO','entries','_acknowledgedAwaitingRevision','getCollabEntity','@univerjs/sheets','_onConnectionFailed','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','_undoStacks','toString','HEARTBEAT_TIMEOUT','setWaitCount','SheetTransformSelectionsService','disableLocalCache','_configService','Univer','userID','_clearUndo','UserManagerService','/rev/','_checkMissing','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','forEach','RECV','_getSignURL','_unitInfo$','_socket','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','init','amd','FETCH_MISSING','_transformStateCache','[CollaborationSession]','aes/pkcs7:\x20wrong\x20padding','_clearRedo','_startCollaboration','_snapshotService','_transformStack','Module','/resources','AttachmentSourceType','getMember','catch','[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.','UNIVER_SLIDE',',\x20got:\x20','_transformSelections','_onCombEvent','list','onlyLocal','_getLoginPath','floor','infoRsp','_commentUpdate$','mergeOverrideWithDependencies','_clearTimeoutTimer','_roomMembers','125780emyvmB','now','sessionStatus','_exhaustRemoteChangesetQueue','decorate','reconnect','HEARTBEAT_INTERVAL_KEY','constructor','cfgEnableObjInherit','_localeService','liveShareOperation','6111KhKpsM','getUnitId','_event$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_roomCreated$','collaborators','transformStack\x20failed!','SYNCED','ERROR_IMAGE','2750568JSivMz','sendChangesetTimeout','_entities','CollaborationUIEventService','INetworkConditionService','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_getDownloadEndpointURL','_commandService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','LIVESHARE_FETCH_OPERATIONS','file','/allowed','_sendHeartbeat','_members','FAIL','roles','fetchMissingChangesets','&to=','resolve','_syncEditingCollabCursor','setShowComponents','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','[SyncedState]:\x20received\x20rejection.','_onRecvEvent','loadUnit','UniverProSlides','LOCAL_CACHE_INTERVAL','1986gCEibf','/object','ONLINE','collaboration-client.auth.needGotoLoginAlert','AWAITING_WITH_PENDING','PSEUDO_FETCH_MISSING_RESULT','members$','_sendingTimer','method','isPermissionRej','EnsureSlideMasterPageMutation','dispose$','IMentionIOService','snapshot','LEAVE','requestParams','takeUntil','_initMergeInterceptor','number','onCommentUpdate','textRanges','docStateChange$','431220OURUFt','_init','DocCollaborationEntity','Injector','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','subarray','onSendChangeset','_remoteChangesetQueue','allowed','object','UnitStatus','onRemoteRej','originalMeta','_cfgEnableObjInherit','_initRequestHeader','_tryEnsureSocket','_getCtorByUniverInstanceType','unitId','_getAPIPrefixPath','NOT_COLLAB','function','getImage','pauseCollaboration','from','_candidateSocket','_resendTimer','[CollaborationEntity]','nonce','_scheduleCollaborationTimeoutTimer','_isPermissionRej','_status$','unsubscribe','slice','USERS_LEAVE','IDLE','ImageSourceType','update','getGlobalObject','FileSource','getMemberID','_getCurrentRevision','equals','_singleActiveUnitService','getAllMembers','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','fetchMiss','JOIN_ROOM_FULL','collaMsg','MUTATION','url','putCollaborators','onTransformRemoteChangesetByIMECache','touchDependencies','PendingState','_transformService','csShouldRetryEvent','objectType','UUID','@univerjs/docs','_eventService','close','_undoRedoService','call','readyForCollab'];_0x2acf=function(){return _0x5005eb;};return _0x2acf();}function _0x5107(_0x272f93,_0x4f2325){_0x272f93=_0x272f93-0x1a8;const _0x2acf17=_0x2acf();let _0x51072b=_0x2acf17[_0x272f93];return _0x51072b;}(function(_0x182eda,_0x507fdd){const _0x162a2f=_0x5107,_0x3c2667=_0x182eda();while(!![]){try{const _0x14ed28=-parseInt(_0x162a2f(0x1c7))/0x1*(-parseInt(_0x162a2f(0x26b))/0x2)+-parseInt(_0x162a2f(0x1fe))/0x3*(-parseInt(_0x162a2f(0x35a))/0x4)+-parseInt(_0x162a2f(0x2fb))/0x5+parseInt(_0x162a2f(0x2e5))/0x6*(-parseInt(_0x162a2f(0x2c1))/0x7)+parseInt(_0x162a2f(0x2ca))/0x8+-parseInt(_0x162a2f(0x1cc))/0x9+-parseInt(_0x162a2f(0x2b6))/0xa;if(_0x14ed28===_0x507fdd)break;else _0x3c2667['push'](_0x3c2667['shift']());}catch(_0x46683a){_0x3c2667['push'](_0x3c2667['shift']());}}}(_0x2acf,0x4b5e0),function(_0x4d7b4c,_0x4481e3){const _0x533b2f=_0x5107;typeof exports==_0x533b2f(0x304)&&typeof module<'u'?_0x4481e3(exports,require('@univerjs-pro/bases'),require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x533b2f(0x30f)&&define[_0x533b2f(0x29a)]?define([_0x533b2f(0x4a8),_0x533b2f(0x3f0),_0x533b2f(0x3ba),_0x533b2f(0x3ea),_0x533b2f(0x335),_0x533b2f(0x282),_0x533b2f(0x1e5),_0x533b2f(0x485),'@univerjs/telemetry',_0x533b2f(0x465),_0x533b2f(0x23b),'@univerjs/network',_0x533b2f(0x3ef),'@univerjs/drawing'],_0x4481e3):(_0x4d7b4c=typeof globalThis<'u'?globalThis:_0x4d7b4c||self,_0x4481e3(_0x4d7b4c['UniverProCollaborationClient']={},_0x4d7b4c[_0x533b2f(0x46b)],_0x4d7b4c[_0x533b2f(0x1fa)],_0x4d7b4c[_0x533b2f(0x254)],_0x4d7b4c['UniverDocs'],_0x4d7b4c[_0x533b2f(0x389)],_0x4d7b4c[_0x533b2f(0x1e5)],_0x4d7b4c[_0x533b2f(0x4bb)],_0x4d7b4c[_0x533b2f(0x244)],_0x4d7b4c['rxjs']['operators'],_0x4d7b4c[_0x533b2f(0x2e3)],_0x4d7b4c[_0x533b2f(0x476)],_0x4d7b4c['UniverProLicense'],_0x4d7b4c[_0x533b2f(0x408)]));}(this,function(_0x422771,_0x31678c,_0x3f9d12,_0x2ef5c0,_0x894f55,_0x15be79,_0x4d6dfb,_0x514d55,_0x4b66cd,_0x5df1dd,_0x303e42,_0xa3a4ef,_0x53a146,_0x119fcf){const _0x49e982=_0x5107;Object[_0x49e982(0x385)](_0x422771,Symbol[_0x49e982(0x340)],{'value':_0x49e982(0x2a3)});let _0x138b5f=_0x49e982(0x3cb),_0x49afe0={},_0x8ba365=_0x49e982(0x42f),_0x332e1b=0x4e20;function _0xdd9ff8(_0x8685a1){const _0x5c362b=_0x49e982;return JSON['stringify'](_0x8685a1)[_0x5c362b(0x375)];}function _0x3565f6(_0x30d91e){'@babel/helpers - typeof';const _0x2768ca=_0x49e982;return _0x3565f6=typeof Symbol==_0x2768ca(0x30f)&&typeof Symbol[_0x2768ca(0x20a)]==_0x2768ca(0x1d8)?function(_0xf25615){return typeof _0xf25615;}:function(_0x42edd6){const _0x5628e3=_0x2768ca;return _0x42edd6&&typeof Symbol=='function'&&_0x42edd6[_0x5628e3(0x2bd)]===Symbol&&_0x42edd6!==Symbol['prototype']?_0x5628e3(0x1d8):typeof _0x42edd6;},_0x3565f6(_0x30d91e);}function _0x33a648(_0xd52a8e,_0x591fcd){const _0x361a00=_0x49e982;if(_0x3565f6(_0xd52a8e)!='object'||!_0xd52a8e)return _0xd52a8e;var _0x1e5579=_0xd52a8e[Symbol[_0x361a00(0x492)]];if(_0x1e5579!==void 0x0){var _0x260f9e=_0x1e5579['call'](_0xd52a8e,_0x591fcd||_0x361a00(0x1ab));if(_0x3565f6(_0x260f9e)!='object')return _0x260f9e;throw TypeError(_0x361a00(0x2c4));}return(_0x591fcd===_0x361a00(0x3ed)?String:Number)(_0xd52a8e);}function _0x3128d1(_0x4bdc2f){const _0x4fb840=_0x49e982;var _0x2b5c70=_0x33a648(_0x4bdc2f,'string');return _0x3565f6(_0x2b5c70)==_0x4fb840(0x1d8)?_0x2b5c70:_0x2b5c70+'';}function _0xa76697(_0x494a51,_0x98ef91,_0x3c1451){return(_0x98ef91=_0x3128d1(_0x98ef91))in _0x494a51?Object['defineProperty'](_0x494a51,_0x98ef91,{'value':_0x3c1451,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x494a51[_0x98ef91]=_0x3c1451,_0x494a51;}let _0x37b816=function(_0x460d46){const _0x13540a=_0x49e982;return _0x460d46[_0x13540a(0x33d)]='OTHER_CLIENT_EDITING',_0x460d46['PERMISSION_DENIED']=_0x13540a(0x1be),_0x460d46['CONFLICT']='CONFLICT',_0x460d46['CLOSE_ROOM']=_0x13540a(0x3f9),_0x460d46[_0x13540a(0x216)]='JOIN_ROOM_FAILED',_0x460d46[_0x13540a(0x1f4)]=_0x13540a(0x1f4),_0x460d46[_0x13540a(0x27d)]=_0x13540a(0x27d),_0x460d46[_0x13540a(0x33f)]=_0x13540a(0x33f),_0x460d46;}({});var _0x4d282d=class{constructor(){const _0xf207a5=_0x49e982;_0xa76697(this,_0xf207a5(0x2c3),new _0x4d6dfb[(_0xf207a5(0x235))]()),_0xa76697(this,_0xf207a5(0x255),this[_0xf207a5(0x2c3)][_0xf207a5(0x21d)]());}[_0x49e982(0x1ee)](_0x49ffb1){const _0x357cd0=_0x49e982;this[_0x357cd0(0x2c3)][_0x357cd0(0x368)](_0x49ffb1);}},_0x1f4c07=class{constructor(){const _0x4590ed=_0x49e982;_0xa76697(this,'_commentUpdate$',new _0x4d6dfb[(_0x4590ed(0x235))]()),_0xa76697(this,_0x4590ed(0x3fd),this[_0x4590ed(0x2b2)][_0x4590ed(0x21d)]());}[_0x49e982(0x2f8)](_0x3409f8){const _0x375052=_0x49e982;this[_0x375052(0x2b2)][_0x375052(0x368)](_0x3409f8);}};function _0x25be6b(_0x3b9e21,_0x547c96){return function(_0x250ee6,_0x5af450){_0x547c96(_0x250ee6,_0x5af450,_0x3b9e21);};}function _0x433d1e(_0x187b6a,_0x1a8489,_0x3a58f6,_0x19f7a8){const _0x56c0d0=_0x49e982;var _0xf90482=arguments['length'],_0x239ea7=_0xf90482<0x3?_0x1a8489:_0x19f7a8===null?_0x19f7a8=Object[_0x56c0d0(0x444)](_0x1a8489,_0x3a58f6):_0x19f7a8,_0x655ff6;if(typeof Reflect==_0x56c0d0(0x304)&&typeof Reflect[_0x56c0d0(0x2ba)]==_0x56c0d0(0x30f))_0x239ea7=Reflect[_0x56c0d0(0x2ba)](_0x187b6a,_0x1a8489,_0x3a58f6,_0x19f7a8);else{for(var _0x357ed7=_0x187b6a[_0x56c0d0(0x375)]-0x1;_0x357ed7>=0x0;_0x357ed7--)(_0x655ff6=_0x187b6a[_0x357ed7])&&(_0x239ea7=(_0xf90482<0x3?_0x655ff6(_0x239ea7):_0xf90482>0x3?_0x655ff6(_0x1a8489,_0x3a58f6,_0x239ea7):_0x655ff6(_0x1a8489,_0x3a58f6))||_0x239ea7);}return _0xf90482>0x3&&_0x239ea7&&Object[_0x56c0d0(0x385)](_0x1a8489,_0x3a58f6,_0x239ea7),_0x239ea7;}let _0x5ad22b=class extends _0x2ef5c0['Disposable']{constructor(_0x175322,_0x52e62c){const _0xfce3e2=_0x49e982;super(),this[_0xfce3e2(0x4cb)]=_0x175322,this[_0xfce3e2(0x1f3)]=_0x52e62c,_0xa76697(this,_0xfce3e2(0x2b5),new Map()),_0xa76697(this,_0xfce3e2(0x2c5),new _0x4d6dfb[(_0xfce3e2(0x235))]()),this[_0xfce3e2(0x4e6)]((0x0,_0x4d6dfb[_0xfce3e2(0x228)])(this[_0xfce3e2(0x4cb)][_0xfce3e2(0x20b)](_0x2ef5c0['UniverInstanceType']['UNIVER_SHEET'])[_0xfce3e2(0x349)]((0x0,_0x5df1dd[_0xfce3e2(0x431)])(_0x17e262=>_0x17e262[_0xfce3e2(0x2c2)]())),this[_0xfce3e2(0x4cb)]['getTypeOfUnitDisposed$'](_0x2ef5c0[_0xfce3e2(0x401)][_0xfce3e2(0x33e)])['pipe']((0x0,_0x5df1dd[_0xfce3e2(0x431)])(_0x1dbe09=>_0x1dbe09[_0xfce3e2(0x2c2)]())),this[_0xfce3e2(0x4cb)][_0xfce3e2(0x20b)](_0x2ef5c0['UniverInstanceType'][_0xfce3e2(0x369)])[_0xfce3e2(0x349)]((0x0,_0x5df1dd['map'])(_0x373cd5=>_0x373cd5[_0xfce3e2(0x2c2)]())))[_0xfce3e2(0x478)](_0xad5020=>this[_0xfce3e2(0x233)](_0xad5020)));}[_0x49e982(0x409)](_0x46f977){const _0x9471eb=_0x49e982;return this[_0x9471eb(0x2b5)]['has'](_0x46f977)?(0x0,_0x4d6dfb['of'])(this[_0x9471eb(0x2b5)][_0x9471eb(0x203)](_0x46f977)):this[_0x9471eb(0x2c5)][_0x9471eb(0x349)]((0x0,_0x5df1dd[_0x9471eb(0x431)])(_0x327b43=>{const _0x39109d=_0x9471eb;if(_0x327b43===_0x46f977)return this[_0x39109d(0x2b5)][_0x39109d(0x203)](_0x327b43);}));}[_0x49e982(0x416)](_0x28d773){const _0x33069d=_0x49e982;this[_0x33069d(0x1f3)][_0x33069d(0x416)](_0x28d773);}[_0x49e982(0x405)](){const _0x443364=_0x49e982;return this[_0x443364(0x1f3)]['getCurrentUser']();}[_0x49e982(0x345)](_0x112581,_0x27a9ae){const _0x2597e3=_0x49e982;let _0x376c84=this[_0x2597e3(0x2b5)][_0x2597e3(0x203)](_0x112581);_0x376c84||(_0x376c84=new _0x327fba(),this[_0x2597e3(0x2b5)][_0x2597e3(0x40d)](_0x112581,_0x376c84),this[_0x2597e3(0x2c5)][_0x2597e3(0x368)](_0x112581)),_0x376c84[_0x2597e3(0x345)](_0x27a9ae);}[_0x49e982(0x4e4)](_0x4b4cca,_0x810399){const _0x55f344=_0x49e982;let _0x105dd4=this['_roomMembers']['get'](_0x4b4cca);_0x105dd4&&_0x105dd4[_0x55f344(0x4e4)](_0x810399);}['getRoom'](_0xf36c5a){const _0x1d0e57=_0x49e982;return this[_0x1d0e57(0x2b5)][_0x1d0e57(0x203)](_0xf36c5a);}[_0x49e982(0x2a6)](_0x1d0d4f,_0x3d8073){const _0x1c2bcf=_0x49e982;let _0x5ed0bf=this['_roomMembers'][_0x1c2bcf(0x203)](_0x1d0d4f);if(_0x5ed0bf)return _0x5ed0bf[_0x1c2bcf(0x2a6)](_0x3d8073);}[_0x49e982(0x233)](_0x35e0bc){const _0x5c108b=_0x49e982;let _0x3077bc=this[_0x5c108b(0x2b5)][_0x5c108b(0x203)](_0x35e0bc);_0x3077bc&&(_0x3077bc[_0x5c108b(0x247)](),this[_0x5c108b(0x2b5)][_0x5c108b(0x454)](_0x35e0bc));}['dispose'](){const _0x28ccbd=_0x49e982;this[_0x28ccbd(0x2b5)][_0x28ccbd(0x293)](_0x3ee43d=>_0x3ee43d[_0x28ccbd(0x247)]()),this['_roomMembers']['clear'](),this[_0x28ccbd(0x2c5)][_0x28ccbd(0x4d8)]();}};_0x5ad22b=_0x433d1e([_0x25be6b(0x0,_0x2ef5c0[_0x49e982(0x20c)]),_0x25be6b(0x1,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0[_0x49e982(0x28f)]))],_0x5ad22b);var _0x327fba=class extends _0x2ef5c0[_0x49e982(0x39c)]{constructor(..._0x24ad49){const _0x32a8ea=_0x49e982;super(..._0x24ad49),_0xa76697(this,'_members',new Map()),_0xa76697(this,_0x32a8ea(0x449),new _0x4d6dfb['BehaviorSubject'](this[_0x32a8ea(0x2d7)])),_0xa76697(this,_0x32a8ea(0x2eb),this[_0x32a8ea(0x449)][_0x32a8ea(0x21d)]());}['dispose'](){const _0x14eb9d=_0x49e982;this[_0x14eb9d(0x2d7)][_0x14eb9d(0x3ce)](),this[_0x14eb9d(0x449)][_0x14eb9d(0x4d8)]();}[_0x49e982(0x345)](_0x2f18ce){const _0x1689be=_0x49e982;this[_0x1689be(0x2d7)][_0x1689be(0x40d)](_0x2f18ce[_0x1689be(0x3ec)],_0x2f18ce),this[_0x1689be(0x464)]();}[_0x49e982(0x4e4)](_0x4e22a9){const _0x5a7066=_0x49e982;this[_0x5a7066(0x2d7)][_0x5a7066(0x454)](_0x4e22a9),this[_0x5a7066(0x464)]();}[_0x49e982(0x2a6)](_0x6be178){const _0x406916=_0x49e982;return this['_members'][_0x406916(0x203)](_0x6be178);}[_0x49e982(0x326)](){const _0x4b467a=_0x49e982;return Array[_0x4b467a(0x312)](this['_members'][_0x4b467a(0x4aa)]());}['_emitMembers'](){const _0x1e57c8=_0x49e982;this['_members$'][_0x1e57c8(0x368)](this[_0x1e57c8(0x2d7)]);}};let _0x30c386=function(_0x4b4472){const _0xfb8b89=_0x49e982;return _0x4b4472[_0x4b4472['IDLE']=0x0]=_0xfb8b89(0x31d),_0x4b4472[_0x4b4472[_0xfb8b89(0x4db)]=0x1]='JOINING',_0x4b4472[_0x4b4472[_0xfb8b89(0x453)]=0x2]=_0xfb8b89(0x453),_0x4b4472[_0x4b4472[_0xfb8b89(0x2e7)]=0x3]='ONLINE',_0x4b4472;}({}),_0xd91e25={[_0x514d55[_0x49e982(0x38c)][_0x49e982(0x2d8)]]:_0x49e982(0x4df),[_0x514d55[_0x49e982(0x38c)][_0x49e982(0x329)]]:_0x49e982(0x3f3),[_0x514d55[_0x49e982(0x38c)][_0x49e982(0x395)]]:'session.room-not-exists',[_0x514d55[_0x49e982(0x38c)][_0x49e982(0x382)]]:_0x49e982(0x3b7),[_0x514d55[_0x49e982(0x38c)][_0x49e982(0x277)]]:_0x49e982(0x1f5)},_0xbc6026=class extends _0x2ef5c0['RxDisposable']{get[_0x49e982(0x2b8)](){const _0x54d771=_0x49e982;return this[_0x54d771(0x1ff)]['getValue']();}constructor(_0x5deff1,_0x18d67d,_0x48af46,_0x3436d3,_0x59b9e2,_0x492d32,_0x1523e4,_0x5e42be){const _0x2e0112=_0x49e982;super(),this[_0x2e0112(0x260)]=_0x5deff1,this[_0x2e0112(0x271)]=_0x48af46,this[_0x2e0112(0x28b)]=_0x3436d3,this[_0x2e0112(0x261)]=_0x59b9e2,this[_0x2e0112(0x36e)]=_0x492d32,this['_collaborationUIEventService']=_0x1523e4,this[_0x2e0112(0x4bc)]=_0x5e42be,_0xa76697(this,_0x2e0112(0x1ff),new _0x4d6dfb[(_0x2e0112(0x1dc))](0x0)),_0xa76697(this,'sessionStatus$',this[_0x2e0112(0x1ff)][_0x2e0112(0x21d)]()),_0xa76697(this,_0x2e0112(0x2c3),new _0x4d6dfb[(_0x2e0112(0x235))]()),_0xa76697(this,_0x2e0112(0x255),this[_0x2e0112(0x2c3)][_0x2e0112(0x21d)]()),_0xa76697(this,_0x2e0112(0x297),void 0x0),_0xa76697(this,_0x2e0112(0x48b),void 0x0),_0xa76697(this,_0x2e0112(0x3c1),void 0x0),_0xa76697(this,_0x2e0112(0x390),!0x1),_0xa76697(this,_0x2e0112(0x3e3),null),this[_0x2e0112(0x390)]=!!this['_telemetryService'],_0x18d67d[_0x2e0112(0x349)]((0x0,_0x4d6dfb[_0x2e0112(0x2f5)])(this[_0x2e0112(0x2f0)]))[_0x2e0112(0x478)](_0x669e86=>{const _0x4c65e0=_0x2e0112;if(_0x669e86!==void 0x0){if(this[_0x4c65e0(0x297)]=_0x669e86,_0x669e86)this[_0x4c65e0(0x243)](_0x669e86),this[_0x4c65e0(0x48b)]=_0x669e86[_0x4c65e0(0x26e)][_0x4c65e0(0x478)](_0x9f5626=>{const _0x5cda07=_0x4c65e0;_0x9f5626[_0x5cda07(0x41f)]===this['_unitID']&&this[_0x5cda07(0x2ac)](_0x9f5626);});else{var _0xa12222;this[_0x4c65e0(0x463)](),this[_0x4c65e0(0x1ff)][_0x4c65e0(0x368)](0x2),(_0xa12222=this[_0x4c65e0(0x48b)])==null||_0xa12222[_0x4c65e0(0x31a)](),this[_0x4c65e0(0x48b)]=null;}}});}['getMemberID'](){const _0x3a6f07=_0x49e982;var _0xdb0a27,_0x5696cd;return(_0xdb0a27=(_0x5696cd=this[_0x3a6f07(0x297)])==null?void 0x0:_0x5696cd[_0x3a6f07(0x3ec)])==null?null:_0xdb0a27;}[_0x49e982(0x247)](){const _0x46df42=_0x49e982;super[_0x46df42(0x247)](),this[_0x46df42(0x337)](),this[_0x46df42(0x2f0)]['next'](),this[_0x46df42(0x2f0)]['complete']();}[_0x49e982(0x337)](){const _0x33ac0c=_0x49e982;var _0x3ee9b0,_0x52ca77;this[_0x33ac0c(0x463)](),(_0x3ee9b0=this[_0x33ac0c(0x297)])==null||_0x3ee9b0[_0x33ac0c(0x439)]({'cmd':_0x514d55[_0x33ac0c(0x457)][_0x33ac0c(0x2f3)],'data':{'roomID':this['_unitID']}}),(_0x52ca77=this[_0x33ac0c(0x297)])==null||_0x52ca77['close'](),this['_event$'][_0x33ac0c(0x4d8)](),this['_sessionStatus$'][_0x33ac0c(0x4d8)]();}[_0x49e982(0x2ac)](_0x2f07f6){const _0x36974c=_0x49e982;_0x2f07f6[_0x36974c(0x263)]===_0x514d55[_0x36974c(0x457)][_0x36974c(0x398)]?this[_0x36974c(0x43f)](_0x2f07f6):_0x2f07f6[_0x36974c(0x263)]===_0x514d55[_0x36974c(0x457)][_0x36974c(0x294)]&&this[_0x36974c(0x2e1)](_0x2f07f6);}['_joinRoom'](_0x2e4dc8){const _0x6fc33f=_0x49e982;this[_0x6fc33f(0x1ff)]['next'](0x1),_0x2e4dc8[_0x6fc33f(0x439)]({'cmd':_0x514d55[_0x6fc33f(0x457)][_0x6fc33f(0x398)],'routeKey':this[_0x6fc33f(0x260)],'routeType':'','data':{'rooms':[{'roomID':this[_0x6fc33f(0x260)]}]}});}[_0x49e982(0x43f)](_0x12c40f){const _0x239757=_0x49e982;var _0x38608d;if(_0x12c40f[_0x239757(0x40e)]in _0xd91e25){this[_0x239757(0x481)][_0x239757(0x1ee)]({'id':_0x239757(0x216),'data':_0xd91e25[_0x12c40f[_0x239757(0x40e)]]}),this[_0x239757(0x1ff)][_0x239757(0x368)](0x2);return;}this[_0x239757(0x1ff)][_0x239757(0x368)](0x3);let _0x7e6d57=(_0x38608d=_0x12c40f[_0x239757(0x259)]['roomInfos'][this[_0x239757(0x260)]])==null?void 0x0:_0x38608d[_0x239757(0x209)];_0x7e6d57&&_0x7e6d57[_0x239757(0x293)](_0x3b00d3=>this[_0x239757(0x261)]['updateMember'](this[_0x239757(0x260)],_0x3b00d3));}['_onRecvEvent'](_0x407b4e){const _0x150306=_0x49e982;try{let _0x10cc25=_0x407b4e[_0x150306(0x259)];switch(_0x10cc25[_0x150306(0x469)]){case _0x3f9d12['CollaborationEvent']['USERS_ENTER']:this[_0x150306(0x372)](_0x10cc25),this[_0x150306(0x2c3)][_0x150306(0x368)](_0x10cc25);break;case _0x3f9d12[_0x150306(0x448)][_0x150306(0x31c)]:this[_0x150306(0x1e1)](_0x10cc25),this[_0x150306(0x2c3)][_0x150306(0x368)](_0x10cc25);break;case _0x3f9d12[_0x150306(0x448)][_0x150306(0x48e)]:case _0x3f9d12[_0x150306(0x448)][_0x150306(0x3d2)]:this[_0x150306(0x232)](),this[_0x150306(0x348)](),this['_event$'][_0x150306(0x368)](_0x10cc25);break;case _0x3f9d12[_0x150306(0x448)][_0x150306(0x22e)]:this['_logService'][_0x150306(0x438)](_0x150306(0x45c)+JSON[_0x150306(0x205)](_0x10cc25)),this['_event$'][_0x150306(0x368)](_0x10cc25);break;case _0x3f9d12[_0x150306(0x448)][_0x150306(0x35b)]:this[_0x150306(0x36e)][_0x150306(0x2f8)](_0x10cc25['data']),this[_0x150306(0x2c3)][_0x150306(0x368)](_0x10cc25);break;default:this[_0x150306(0x2c3)][_0x150306(0x368)](_0x10cc25);}}catch(_0x446c59){this[_0x150306(0x271)][_0x150306(0x438)](_0x446c59,_0x407b4e);}}['_onUserJoin'](_0x339ecf){const _0x447299=_0x49e982;this[_0x447299(0x261)][_0x447299(0x345)](this[_0x447299(0x260)],_0x339ecf[_0x447299(0x259)]);}['_onUserLeave'](_0x5596f9){const _0x2bf3df=_0x49e982;this[_0x2bf3df(0x261)]['removeMember'](this[_0x2bf3df(0x260)],_0x5596f9[_0x2bf3df(0x259)][_0x2bf3df(0x3ec)]);}async[_0x49e982(0x439)](_0x5e9e82,_0x17c723){const _0xe43d02=_0x49e982;if(this[_0xe43d02(0x2b8)]!==0x3||!this[_0xe43d02(0x297)])throw Error(_0xe43d02(0x356));try{_0x5e9e82['eventID']===_0x3f9d12['CollaborationEvent'][_0xe43d02(0x1d9)]&&(this[_0xe43d02(0x317)](),this[_0xe43d02(0x3e7)](_0x5e9e82)),this[_0xe43d02(0x297)]['send']({'cmd':_0x514d55['CombCmd'][_0xe43d02(0x4e9)],'routeKey':_0x17c723,'routeType':'','data':_0x5e9e82});}catch(_0x4f15b4){this['_logService'][_0xe43d02(0x438)](_0x4f15b4);}}['_scheduleCollaborationTimeoutTimer'](){const _0x4d75d8=_0x49e982;var _0x508e92;this[_0x4d75d8(0x3c1)]=setTimeout(()=>{const _0x2cf932=_0x4d75d8;this['_collaborationTimeoutTimer']=null,this[_0x2cf932(0x481)][_0x2cf932(0x1ee)]({'id':_0x2cf932(0x33f)});},(_0x508e92=this[_0x4d75d8(0x28b)][_0x4d75d8(0x462)]('HEARTBEAT_TIMEOUT'))==null?_0x332e1b:_0x508e92);}[_0x49e982(0x348)](){const _0x3e943f=_0x49e982;this[_0x3e943f(0x3c1)]&&(clearTimeout(this[_0x3e943f(0x3c1)]),this[_0x3e943f(0x3c1)]=null);}[_0x49e982(0x3e7)](_0x565722){const _0x10f904=_0x49e982;if(!this['_shouldReportTelemetry'])return;let {data:_0x528223}=_0x565722,{unitID:_0x2ff016,changeset:_0x562e75}=_0x528223,{mutations:_0x3a5901,type:_0x4aa9bc}=_0x562e75;this[_0x10f904(0x3e3)]={'unitId':_0x2ff016,'type':_0x4aa9bc,'startTime':performance[_0x10f904(0x2b7)](),'stopTime':0x0,'duration':0x0,'size':_0xdd9ff8(_0x3a5901)};}[_0x49e982(0x232)](){const _0x7385d6=_0x49e982;if(this[_0x7385d6(0x390)]){if(!this[_0x7385d6(0x3e3)]){this[_0x7385d6(0x271)]['error'](_0x7385d6(0x29d),_0x7385d6(0x447));return;}this['_telemetryInfo'][_0x7385d6(0x3b3)]=performance[_0x7385d6(0x2b7)](),this['_telemetryInfo'][_0x7385d6(0x4d0)]=this[_0x7385d6(0x3e3)][_0x7385d6(0x3b3)]-this[_0x7385d6(0x3e3)]['startTime'],this[_0x7385d6(0x4bc)][_0x7385d6(0x1da)](_0x7385d6(0x4e2),this['_telemetryInfo']),this[_0x7385d6(0x3e3)]=null;}}[_0x49e982(0x463)](){const _0x3f5f0e=_0x49e982;this[_0x3f5f0e(0x3e3)]=null;}};_0xbc6026=_0x433d1e([_0x25be6b(0x2,_0x2ef5c0[_0x49e982(0x342)]),_0x25be6b(0x3,_0x2ef5c0[_0x49e982(0x35c)]),_0x25be6b(0x4,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x5ad22b)),_0x25be6b(0x5,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x1f4c07)),_0x25be6b(0x6,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x4d282d)),_0x25be6b(0x7,(0x0,_0x2ef5c0['Optional'])(_0x4b66cd['ITelemetryService']))],_0xbc6026);let _0x497ec1=(0x0,_0x2ef5c0['createIdentifier'])(_0x49e982(0x249));function _0x4148ee(_0x48b1a1){const _0x1fc74a=_0x49e982;return _0x1fc74a(0x3d9)+_0x48b1a1;}function _0x5d4169(_0x5ab6f8){const _0x5a8ca0=_0x49e982;let {unitID:_0x2ab82d,mutations:_0x4c8fff}=_0x5ab6f8;return{'unitId':_0x2ab82d,'subUnitId':_0x4c8fff[_0x5a8ca0(0x375)]>0x0?_0x4c8fff[0x0][_0x5a8ca0(0x44f)][_0x5a8ca0(0x35d)]:null};}let _0x510d83=class{constructor(_0x3bcd62,_0x24ad85,_0x3e2ef2){const _0x5df1bf=_0x49e982;this[_0x5df1bf(0x268)]=_0x3bcd62,this[_0x5df1bf(0x331)]=_0x24ad85,this[_0x5df1bf(0x4c7)]=_0x3e2ef2;}['transformSelections'](_0x16fcaa){const _0x5d92f2=_0x49e982;var _0x29ff40,_0x2e0793;let _0x551d9b=this[_0x5d92f2(0x268)][_0x5d92f2(0x203)](_0x15be79[_0x5d92f2(0x1ce)]),{unitId:_0x738b82,subUnitId:_0x2c7dd2}=_0x5d4169(_0x16fcaa),_0x113b58=_0x551d9b==null?void 0x0:_0x551d9b['getWorkbookSelections'](_0x738b82)[_0x5d92f2(0x418)](),_0x1e1763=(_0x29ff40=this[_0x5d92f2(0x4c7)][_0x5d92f2(0x410)](_0x738b82))==null||(_0x29ff40=_0x29ff40[_0x5d92f2(0x274)]())==null?void 0x0:_0x29ff40[_0x5d92f2(0x1ae)]();if(_0x113b58[_0x5d92f2(0x375)]===0x0||!_0x738b82||!_0x2c7dd2)return;let _0x4d5b78=[{'id':_0x15be79[_0x5d92f2(0x351)]['id'],'params':{'unitId':_0x738b82,'subUnitId':_0x1e1763,'selections':_0x2ef5c0[_0x5d92f2(0x358)][_0x5d92f2(0x25b)](_0x113b58)}}],_0x3d5059=this['_transformService'][_0x5d92f2(0x4a9)](_0x16fcaa,_0x4d5b78);if(!(0x0,_0x3f9d12['isTransformMutationsWithChangesetSuccess'])(_0x3d5059))throw _0x3d5059[_0x5d92f2(0x438)];let _0x2839ce=(_0x2e0793=_0x3d5059[_0x5d92f2(0x3df)][0x0])==null||(_0x2e0793=_0x2e0793['params'])==null?void 0x0:_0x2e0793['selections'];if(Array['isArray'](_0x2839ce)&&_0x2839ce[_0x5d92f2(0x375)]){if(_0x2839ce[_0x5d92f2(0x375)]===_0x4d5b78[0x0][_0x5d92f2(0x44f)][_0x5d92f2(0x46f)][_0x5d92f2(0x375)]&&_0x2839ce[_0x5d92f2(0x3c0)]((_0x98da1,_0xed6a62)=>_0x2ef5c0[_0x5d92f2(0x36c)][_0x5d92f2(0x324)](_0x98da1[_0x5d92f2(0x48f)],_0x4d5b78[0x0]['params']['selections'][_0xed6a62][_0x5d92f2(0x48f)])))return;this[_0x5d92f2(0x268)][_0x5d92f2(0x203)](_0x2ef5c0[_0x5d92f2(0x44b)])[_0x5d92f2(0x400)](_0x15be79[_0x5d92f2(0x351)]['id'],{'unitId':_0x738b82,'subUnitId':_0x1e1763,'selections':_0x2839ce});}}};_0x510d83=_0x433d1e([_0x25be6b(0x0,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0[_0x49e982(0x2fe)])),_0x25be6b(0x1,_0x3f9d12[_0x49e982(0x1cb)]),_0x25be6b(0x2,_0x2ef5c0[_0x49e982(0x20c)])],_0x510d83);let _0xc4da01=(0x0,_0x2ef5c0[_0x49e982(0x3cc)])('univer-pro.collaboration-client.single-active-unit-service'),_0x3ce802=function(_0x95cc17){const _0x491fe9=_0x49e982;return _0x95cc17[_0x95cc17[_0x491fe9(0x455)]=0x0]=_0x491fe9(0x455),_0x95cc17[_0x95cc17[_0x491fe9(0x211)]=0x1]=_0x491fe9(0x211),_0x95cc17;}({});function _0x32955c(_0x415e30){const _0x6222ef=_0x49e982;var _0x2cba5a;return!!((_0x2cba5a=_0x415e30[_0x6222ef(0x44f)])!=null&&_0x2cba5a[_0x6222ef(0x37f)]);}let _0x67a9cb=new Set([_0x15be79[_0x49e982(0x490)]['id']]),_0xb50032=new Set([_0x303e42['AddSlidePageMutation']['id'],_0x303e42[_0x49e982(0x2ef)]['id'],_0x303e42[_0x49e982(0x229)]['id'],_0x303e42[_0x49e982(0x3c9)]['id']]);function _0x566bc4(_0x4c25ca,_0x383452=_0x67a9cb){const _0x4869b7=_0x49e982;let _0x46b7e2=[];for(let _0x1612dd of _0x4c25ca){if(_0x383452[_0x4869b7(0x35e)](_0x1612dd['id'])){if(_0x46b7e2[_0x4869b7(0x375)]>0x0)break;_0x46b7e2[_0x4869b7(0x3a7)](_0x1612dd);break;}if(_0x32955c(_0x1612dd)){if(_0x46b7e2['length']>0x0)break;_0x46b7e2[_0x4869b7(0x3a7)](_0x1612dd);break;}_0x46b7e2[_0x4869b7(0x3a7)](_0x1612dd);}return _0x46b7e2;}function _0x2d032a(_0x28c8a0,_0x1b18da,_0x5922d6,_0xd40366,_0x5cc10e){const _0x56d5d8=_0x49e982;var _0x19a34c,_0x5e26a9,_0x19ccfd,_0x2ded63;let _0x5c0245=_0x566bc4(_0x28c8a0),_0x185f3e=(_0x19a34c=(_0x5e26a9=_0x5cc10e['getCurrentUser']())==null?void 0x0:_0x5e26a9[_0x56d5d8(0x28d)])==null?_0x56d5d8(0x3be):_0x19a34c,_0x1e17c4=(_0x19ccfd=(_0x2ded63=_0x5cc10e['getCurrentUser']())==null?void 0x0:_0x2ded63['memberID'])==null?_0x56d5d8(0x3be):_0x19ccfd;return{'changeset':{'unitID':_0x1b18da,'type':(0x0,_0x3f9d12[_0x56d5d8(0x22d)])(_0x5922d6[_0x56d5d8(0x407)](_0x1b18da)),'baseRev':_0xd40366[_0x56d5d8(0x218)](_0x1b18da),'revision':0x0,'userID':_0x185f3e,'memberID':_0x1e17c4,'mutations':_0x5c0245},'pendingMutations':_0x28c8a0[_0x56d5d8(0x31b)](_0x5c0245[_0x56d5d8(0x375)])};}let _0x15dfe5=_0x2d032a;function _0x5111b3(_0x2f616a,_0x3f3450,_0x25de1c,_0x34ff06,_0x574150){return _0x2d032a(_0x2f616a,_0x3f3450,_0x25de1c,_0x34ff06,_0x574150);}function _0x376d18(_0x500b93,_0x6eb5a1,_0x40a3b8,_0x15827e,_0x20d26f){const _0x373004=_0x49e982;var _0x574740,_0x24c950,_0x37586d,_0x3f5716;let _0x4379cc=_0x566bc4(_0x500b93,_0xb50032),_0x1419d8=(_0x574740=(_0x24c950=_0x20d26f[_0x373004(0x405)]())==null?void 0x0:_0x24c950['userID'])==null?_0x373004(0x3be):_0x574740,_0x4be242=(_0x37586d=(_0x3f5716=_0x20d26f[_0x373004(0x405)]())==null?void 0x0:_0x3f5716[_0x373004(0x3ec)])==null?'unknown':_0x37586d;return{'changeset':{'unitID':_0x6eb5a1,'type':(0x0,_0x3f9d12[_0x373004(0x22d)])(_0x40a3b8['getUnitType'](_0x6eb5a1)),'baseRev':_0x15827e[_0x373004(0x218)](_0x6eb5a1),'revision':0x0,'userID':_0x1419d8,'memberID':_0x4be242,'mutations':_0x4379cc},'pendingMutations':_0x500b93[_0x373004(0x31b)](_0x4379cc['length'])};}function _0xf01e4e(_0x2ec198,_0x2c9388,_0x5d567b,_0x44124c,_0x1d78bc){const _0x576d15=_0x49e982;var _0x3f0b95,_0x266441,_0x275b59,_0xd5788f;let _0x19436b=_0x2ec198['reduce']((_0x320bf0,_0xea7454)=>{const _0x274c04=_0x5107;let _0x5c9bb7=_0x320bf0[_0x320bf0['length']-0x1],{id:_0x209ac6}=_0x5c9bb7==null?{}:_0x5c9bb7,{id:_0x1e30c8,type:_0x42465f}=_0xea7454,_0x3975d5=_0xea7454[_0x274c04(0x44f)];if(_0x209ac6&&_0x209ac6!==_0x1e30c8)throw Error(_0x274c04(0x3e4)+_0x209ac6+_0x274c04(0x41d)+_0x1e30c8+'.');if(!_0x5c9bb7)return[{'id':_0x1e30c8,'type':_0x42465f,'params':{'unitId':_0x3975d5[_0x274c04(0x30c)],'textRanges':_0x3975d5['textRanges'],'actions':_0x3975d5[_0x274c04(0x1d3)]}}];let _0x115ad8=_0x5c9bb7[_0x274c04(0x44f)];return _0x3aed9e(_0x115ad8['actions'],_0x3975d5[_0x274c04(0x1d3)])?[..._0x320bf0['slice'](0x0,-0x1),{..._0x5c9bb7,'id':_0x1e30c8,'type':_0x42465f,'params':{'unitId':_0x3975d5[_0x274c04(0x30c)],'textRanges':_0x3975d5[_0x274c04(0x2f9)],'actions':_0x2ef5c0[_0x274c04(0x1df)][_0x274c04(0x471)](_0x115ad8[_0x274c04(0x1d3)],_0x3975d5['actions'])}}]:[..._0x320bf0,{'id':_0x1e30c8,'type':_0x42465f,'params':{'unitId':_0x3975d5['unitId'],'textRanges':_0x3975d5[_0x274c04(0x2f9)],'actions':_0x3975d5['actions']}}];},[]),_0x308c76=(_0x3f0b95=(_0x266441=_0x1d78bc[_0x576d15(0x405)]())==null?void 0x0:_0x266441[_0x576d15(0x28d)])==null?_0x576d15(0x3be):_0x3f0b95,_0x26d966=(_0x275b59=(_0xd5788f=_0x1d78bc[_0x576d15(0x405)]())==null?void 0x0:_0xd5788f[_0x576d15(0x3ec)])==null?_0x576d15(0x3be):_0x275b59;return{'changeset':{'unitID':_0x2c9388,'type':(0x0,_0x3f9d12[_0x576d15(0x22d)])(_0x5d567b[_0x576d15(0x407)](_0x2c9388)),'baseRev':_0x44124c[_0x576d15(0x218)](_0x2c9388),'revision':0x0,'userID':_0x308c76,'memberID':_0x26d966,'mutations':_0x19436b},'pendingMutations':_0x2ec198[_0x576d15(0x31b)](_0x2ec198['length'])};}function _0x3aed9e(_0x42c1b5,_0x24594c){return _0x5bb65e(_0x42c1b5)&&_0x5bb65e(_0x24594c)&&!_0x58f785(_0x42c1b5)&&!_0x58f785(_0x24594c);}function _0x5bb65e(_0xd7bd8a){const _0x2107df=_0x49e982;return _0x4eb2c1(_0xd7bd8a)[_0x2107df(0x22f)](_0x32ac1a=>_0x4174cc(_0x32ac1a)&&_0x32ac1a['et']===_0x2107df(0x49b));}function _0x58f785(_0x488b06){const _0x564117=_0x49e982;return _0x4eb2c1(_0x488b06)[_0x564117(0x22f)](_0x1619ce=>Array[_0x564117(0x276)](_0x1619ce)||typeof _0x1619ce==_0x564117(0x3ed)||typeof _0x1619ce==_0x564117(0x2f7));}function _0x4eb2c1(_0x1e29e3){const _0x5f5312=_0x49e982;if(!Array[_0x5f5312(0x276)](_0x1e29e3))return[];let _0x12af3c=_0x1e29e3[_0x5f5312(0x1ca)](_0x5f5312(0x3ae))?_0x1e29e3:_0x1e29e3['find'](_0x28563b=>Array[_0x5f5312(0x276)](_0x28563b)&&_0x28563b[_0x5f5312(0x1ca)](_0x5f5312(0x3ae)));if(!Array[_0x5f5312(0x276)](_0x12af3c))return[];let _0x34cded=_0x12af3c[_0x5f5312(0x1c1)](_0x5f5312(0x3ae));return _0x34cded===-0x1?[]:_0x12af3c[_0x5f5312(0x31b)](_0x34cded+0x1);}function _0x4174cc(_0x4c4509){const _0x58eb1a=_0x49e982;return typeof _0x4c4509==_0x58eb1a(0x304)&&!!_0x4c4509&&!Array[_0x58eb1a(0x276)](_0x4c4509);}function _0x52f207(_0x5611ca,_0x4cfe8e){const _0x375221=_0x49e982;let _0x5df81c=new _0x4d6dfb[(_0x375221(0x1cd))](0x1);return setTimeout(()=>_0x5df81c[_0x375221(0x368)](_0x4cfe8e),_0x5611ca),_0x5df81c[_0x375221(0x21d)]()[_0x375221(0x349)]((0x0,_0x4d6dfb[_0x375221(0x25d)])(0x1));}var _0x3583f4,_0x41ecd1,_0x80810f;let _0x3ba087=function(_0x5544a3){const _0x3d4605=_0x49e982;return _0x5544a3[_0x3d4605(0x30e)]=_0x3d4605(0x20f),_0x5544a3[_0x3d4605(0x2c8)]='synced',_0x5544a3['PENDING']=_0x3d4605(0x4af),_0x5544a3[_0x3d4605(0x3d4)]=_0x3d4605(0x217),_0x5544a3[_0x3d4605(0x2e9)]='awaiting_with_pending',_0x5544a3['FETCH_MISS']=_0x3d4605(0x37a),_0x5544a3['CONFLICT']=_0x3d4605(0x39e),_0x5544a3[_0x3d4605(0x453)]=_0x3d4605(0x1e9),_0x5544a3;}({}),_0x40076d=0x4e20,_0x1a51c6=0x2bf20;var _0x5cb0e8=class{constructor(_0x42d655,_0x4d5327,_0x5b7920,_0x4881af,_0x1cbded,_0x3000a1,_0x63066d,_0x3932b0,_0x563769){const _0x3ad1fb=_0x49e982;this[_0x3ad1fb(0x220)]=_0x42d655,this['type']=_0x4d5327,this[_0x3ad1fb(0x1f9)]=_0x1cbded,this[_0x3ad1fb(0x2d1)]=_0x3000a1,this['_undoRedoService']=_0x63066d,this['_revisionService']=_0x3932b0,this['_localCacheService']=_0x563769,_0xa76697(this,_0x3ad1fb(0x206),null),_0xa76697(this,_0x3ad1fb(0x1d2),[]),this['_awaitingChangeset']=_0x5b7920,this[_0x3ad1fb(0x1d2)]=_0x4881af;}[_0x49e982(0x291)](_0x58da9b){const _0x11060b=_0x49e982;let _0x3e50ce=this[_0x11060b(0x466)]['getCurrentRevOfUnit'](this[_0x11060b(0x220)]);return _0x58da9b[_0x11060b(0x450)]>_0x3e50ce+0x1?(this[_0x11060b(0x1f9)][_0x11060b(0x3a5)]({'from':_0x3e50ce,'to':_0x58da9b[_0x11060b(0x450)]-0x1}),!0x0):!0x1;}[_0x49e982(0x1ef)](_0xa814a4){const _0x50e223=_0x49e982;this[_0x50e223(0x338)]['transformUndoRedo'](this[_0x50e223(0x220)],_0xa814a4);}['_transformSelections'](_0x2f1830){const _0x44af16=_0x49e982;var _0xa1c04e,_0x3d8066;(_0xa1c04e=(_0x3d8066=this[_0x44af16(0x1f9)])[_0x44af16(0x367)])==null||_0xa1c04e[_0x44af16(0x339)](_0x3d8066,_0x2f1830);}[_0x49e982(0x3b6)](_0x5010c7){const _0x2d55be=_0x49e982;var _0x2c5947,_0x32f010;return(_0x2c5947=(_0x32f010=this['_handler'])[_0x2d55be(0x4b0)])==null?void 0x0:_0x2c5947[_0x2d55be(0x339)](_0x32f010,_0x5010c7);}[_0x49e982(0x29c)](_0x9b9e44){const _0x212ddf=_0x49e982;var _0x21979f,_0x5bdc27;return(_0x21979f=(_0x5bdc27=this[_0x212ddf(0x1f9)])[_0x212ddf(0x482)])==null?void 0x0:_0x21979f['call'](_0x5bdc27,_0x9b9e44);}['_transformRemoteChangesetByIMECache'](_0x46e71f){const _0x53e049=_0x49e982;var _0x99a9e3,_0xc4df7e,_0xc6bc1d;return(_0x99a9e3=(_0xc4df7e=(_0xc6bc1d=this[_0x53e049(0x1f9)])[_0x53e049(0x32e)])==null?void 0x0:_0xc4df7e[_0x53e049(0x339)](_0xc6bc1d,_0x46e71f))==null?_0x46e71f:_0x99a9e3;}[_0x49e982(0x22c)](_0x2fb964){const _0x2e51b6=_0x49e982;var _0x3b6aa1,_0x45d547,_0x2c2314;return(_0x3b6aa1=(_0x45d547=(_0x2c2314=this[_0x2e51b6(0x1f9)])[_0x2e51b6(0x4a7)])==null?void 0x0:_0x45d547['call'](_0x2c2314,_0x2fb964))==null?_0x2fb964:_0x3b6aa1;}[_0x49e982(0x2dd)](_0x65464){const _0x5a12f6=_0x49e982;if(this['type']===_0x2ef5c0[_0x5a12f6(0x401)]['UNIVER_DOC']){let {unitID:_0x29f163,mutations:_0x48aa55,memberID:_0x386d76}=_0x65464,_0x47bc81=_0x48aa55[_0x5a12f6(0x375)]>0x0?_0x48aa55[0x0][_0x5a12f6(0x44f)][_0x5a12f6(0x2f9)]:[];if(Array[_0x5a12f6(0x276)](_0x47bc81)&&_0x47bc81[_0x5a12f6(0x375)]>0x0){var _0x5b73e2,_0x2d7ac4;(_0x5b73e2=(_0x2d7ac4=this[_0x5a12f6(0x1f9)])[_0x5a12f6(0x1eb)])==null||_0x5b73e2[_0x5a12f6(0x339)](_0x2d7ac4,{'unitID':_0x29f163,'memberID':_0x386d76,'textRanges':_0x47bc81});}}}[_0x49e982(0x3f4)](){const _0x18f759=_0x49e982;var _0x5e5b75;(_0x5e5b75=this['_localCacheService'])==null||_0x5e5b75[_0x18f759(0x210)](this[_0x18f759(0x220)],this['type'],this[_0x18f759(0x206)],this[_0x18f759(0x1d2)]);}[_0x49e982(0x323)](){const _0x424d56=_0x49e982;return this[_0x424d56(0x466)]['getCurrentRevOfUnit'](this[_0x424d56(0x220)]);}['_incrementRevisionNumber'](){const _0x2211fc=_0x49e982;this[_0x2211fc(0x466)][_0x2211fc(0x350)](this[_0x2211fc(0x220)]);}[_0x49e982(0x1b6)](_0x15bef9){const _0x102e48=_0x49e982;let _0x519dfb=this[_0x102e48(0x34d)](_0x15bef9);_0x519dfb=this[_0x102e48(0x22c)](_0x519dfb);let _0x437ca1=(0x0,_0x2ef5c0['sequenceExecute'])(_0x519dfb[_0x102e48(0x3ca)],this['_commandService'],{'fromCollab':!0x0});if(!_0x437ca1[_0x102e48(0x374)]){var _0x4440ec;throw _0x437ca1[_0x102e48(0x438)]instanceof Error?_0x437ca1[_0x102e48(0x438)]:Error((_0x4440ec=_0x437ca1['error'])==null?_0x102e48(0x1de):_0x4440ec);}this['_transformIMECache'](_0x519dfb),this[_0x102e48(0x29c)](_0x519dfb),this[_0x102e48(0x1ef)](_0x15bef9),this[_0x102e48(0x2ab)](_0x519dfb),this[_0x102e48(0x2dd)](_0x519dfb),this[_0x102e48(0x41c)]();}};let _0x1c6422=class extends _0x5cb0e8{constructor(_0x2489a6,_0x4525ab,_0x283cdc,_0x28cda7,_0x384b82,_0x48ec45,_0x4df80e,_0x50f0c0,_0x39d575,_0x26c4c8){const _0xe684dd=_0x49e982;super(_0x2489a6,_0x4525ab,null,[],_0x283cdc,_0x4df80e,_0x48ec45,_0x28cda7,_0x26c4c8),this[_0xe684dd(0x268)]=_0x384b82,this['_logService']=_0x50f0c0,this[_0xe684dd(0x331)]=_0x39d575,this[_0xe684dd(0x4c6)]=_0x26c4c8,_0xa76697(this,_0xe684dd(0x371),'synced');}[_0x49e982(0x4b8)](_0x551909){const _0x398b3c=_0x49e982;let _0x4aa604=this[_0x398b3c(0x268)][_0x398b3c(0x4d4)](_0x14ada3,this['unitID'],this[_0x398b3c(0x41b)],[_0x551909],this[_0x398b3c(0x1f9)]);return _0x4aa604['_schedule'](),_0x4aa604['_updateLocalCache'](),_0x4aa604;}[_0x49e982(0x39b)](_0x396c71){const _0xdea825=_0x49e982;if(this['_checkMissing'](_0x396c71))return this[_0xdea825(0x268)]['createInstance'](_0x5ef596,this[_0xdea825(0x220)],this[_0xdea825(0x41b)],null,[],null,[_0x396c71],this['_handler']);try{let _0x407c40=this[_0xdea825(0x331)]['transformMutationsWithChangeset'](_0x396c71,[_0x3f9d12[_0xdea825(0x224)]]);if((0x0,_0x3f9d12[_0xdea825(0x226)])(_0x407c40)){let {c1Prime:_0x3d5308}=_0x407c40;return this[_0xdea825(0x1b6)](_0x3d5308),this;}throw _0x407c40[_0xdea825(0x438)];}catch(_0x2f5619){return this['_logService']['error'](_0x2f5619),this[_0xdea825(0x377)](!0x1);}}[_0x49e982(0x377)](_0x341a9b){const _0x3e5975=_0x49e982;return this[_0x3e5975(0x268)][_0x3e5975(0x4d4)](_0x57ed03,this['unitID'],this[_0x3e5975(0x41b)],null,[],this[_0x3e5975(0x1f9)],_0x341a9b);}[_0x49e982(0x212)](_0x192384){const _0x54713c=_0x49e982;if(_0x192384[_0x54713c(0x450)]<=this[_0x54713c(0x323)]())return this;throw Error(_0x54713c(0x4c2));}[_0x49e982(0x306)](){const _0x3009ed=_0x49e982;throw Error(_0x3009ed(0x2e0));}[_0x49e982(0x415)](){return this;}[_0x49e982(0x361)](){const _0x4b66fb=_0x49e982;return this[_0x4b66fb(0x268)][_0x4b66fb(0x4d4)](_0x5266ae,this['unitID'],this[_0x4b66fb(0x41b)],null,[],this[_0x4b66fb(0x1f9)]);}[_0x49e982(0x238)](){return this;}[_0x49e982(0x37b)](){const _0x31bf14=_0x49e982;throw Error(_0x31bf14(0x3ad));}[_0x49e982(0x328)](){const _0xf1fde4=_0x49e982;let _0xd101ee=this[_0xf1fde4(0x466)][_0xf1fde4(0x218)](this['unitID']);return this[_0xf1fde4(0x1f9)]['onMissingChangesets']({'from':_0xd101ee,'to':0x0}),this[_0xf1fde4(0x268)]['createInstance'](_0x5ef596,this[_0xf1fde4(0x220)],this[_0xf1fde4(0x41b)],null,[],null,[],this[_0xf1fde4(0x1f9)]);}};_0x1c6422=_0x433d1e([_0x25be6b(0x3,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x3f9d12[_0x49e982(0x452)])),_0x25be6b(0x4,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0[_0x49e982(0x2fe)])),_0x25be6b(0x5,_0x2ef5c0[_0x49e982(0x4a3)]),_0x25be6b(0x6,_0x2ef5c0[_0x49e982(0x44b)]),_0x25be6b(0x7,_0x2ef5c0['ILogService']),_0x25be6b(0x8,_0x3f9d12[_0x49e982(0x1cb)]),_0x25be6b(0x9,(0x0,_0x2ef5c0[_0x49e982(0x4bf)])(_0x497ec1))],_0x1c6422);let _0x14ada3=_0x3583f4=class extends _0x5cb0e8{constructor(_0x5a0878,_0x5e6e1f,_0x397279,_0x3b2986,_0x36eb05,_0x44566c,_0x527bd9,_0x5131ab,_0x4f688b,_0x2f86c7,_0x5b0f95,_0x4787f4,_0xf07714,_0xc16412){const _0x3336e8=_0x49e982;super(_0x5a0878,_0x5e6e1f,null,_0x397279,_0x3b2986,_0x4f688b,_0xf07714,_0x44566c,_0xc16412),this[_0x3336e8(0x268)]=_0x36eb05,this['_memberService']=_0x527bd9,this['_logService']=_0x5131ab,this['_configService']=_0x2f86c7,this['_transformService']=_0x5b0f95,this[_0x3336e8(0x4cb)]=_0x4787f4,_0xa76697(this,'status',_0x3336e8(0x4af)),_0xa76697(this,_0x3336e8(0x42a),null),_0xa76697(this,_0x3336e8(0x2ec),null);}[_0x49e982(0x4b8)](_0x5dcf6c){const _0x3da12e=_0x49e982;return this['_pendingMutations']['push'](_0x5dcf6c),this[_0x3da12e(0x3f4)](),this;}['onRemoteChangeset'](_0xcd28f2){const _0x20434f=_0x49e982;if(this[_0x20434f(0x291)](_0xcd28f2))return this[_0x20434f(0x341)](),this[_0x20434f(0x268)][_0x20434f(0x4d4)](_0x5ef596,this['unitID'],this[_0x20434f(0x41b)],null,this[_0x20434f(0x1d2)],null,[_0xcd28f2],this[_0x20434f(0x1f9)]);try{let _0xf45b48=this[_0x20434f(0x331)][_0x20434f(0x4a9)](_0xcd28f2,this[_0x20434f(0x1d2)]);if((0x0,_0x3f9d12[_0x20434f(0x226)])(_0xf45b48)){let {c1Prime:_0x59dc36,m2Prime:_0x2e9eda}=_0xf45b48;this['_executeRemoteChangeset'](_0x59dc36);let _0x1ae414=this[_0x20434f(0x268)][_0x20434f(0x4d4)](_0x3583f4,this[_0x20434f(0x220)],this[_0x20434f(0x41b)],_0x2e9eda,this[_0x20434f(0x1f9)]);this[_0x20434f(0x341)]();let _0x54fa57=new Date()[_0x20434f(0x3ab)](),_0x4692b8=this['_scheduleCompleteTimestamp']?Math['max'](this[_0x20434f(0x42a)]-_0x54fa57,0x0):this[_0x20434f(0x460)]();return _0x1ae414[_0x20434f(0x424)](_0x4692b8),_0x1ae414;}throw _0xf45b48['error'];}catch(_0x315c83){return this[_0x20434f(0x271)][_0x20434f(0x438)](_0x315c83),this[_0x20434f(0x377)](!0x1);}}['onRemoteAck'](_0x21344b){const _0x2c515c=_0x49e982;if(_0x21344b[_0x2c515c(0x450)]<=this[_0x2c515c(0x323)]())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x49e982(0x306)](){const _0x941a98=_0x49e982;throw Error(_0x941a98(0x3a8));}[_0x49e982(0x415)](){return this;}[_0x49e982(0x361)](){const _0x212ae5=_0x49e982;return this[_0x212ae5(0x341)](),this[_0x212ae5(0x268)]['createInstance'](_0x5266ae,this[_0x212ae5(0x220)],this[_0x212ae5(0x41b)],null,this[_0x212ae5(0x1d2)],this[_0x212ae5(0x1f9)]);}[_0x49e982(0x238)](){return this;}[_0x49e982(0x424)](_0x2c4adb){const _0x1d6c9c=_0x49e982;let _0x200b46=_0x2c4adb==null?this[_0x1d6c9c(0x460)]():_0x2c4adb;this[_0x1d6c9c(0x42a)]=new Date()[_0x1d6c9c(0x3ab)]()+_0x200b46,this[_0x1d6c9c(0x2ec)]=setTimeout(()=>{const _0x261465=_0x1d6c9c;this[_0x261465(0x341)]();let _0x31f800=null;switch(this['type']){case _0x2ef5c0[_0x261465(0x401)][_0x261465(0x1f6)]:_0x31f800=_0x15dfe5(this[_0x261465(0x1d2)],this[_0x261465(0x220)],this[_0x261465(0x4cb)],this[_0x261465(0x466)],this[_0x261465(0x261)]);break;case _0x2ef5c0[_0x261465(0x401)][_0x261465(0x33e)]:_0x31f800=this[_0x261465(0x1d2)][_0x261465(0x3c0)](_0x36f333=>_0x36f333['id']===_0x894f55[_0x261465(0x426)]['id'])?_0xf01e4e(this[_0x261465(0x1d2)],this[_0x261465(0x220)],this[_0x261465(0x4cb)],this[_0x261465(0x466)],this[_0x261465(0x261)]):_0x15dfe5(this[_0x261465(0x1d2)],this[_0x261465(0x220)],this[_0x261465(0x4cb)],this['_revisionService'],this['_memberService']);break;case _0x2ef5c0[_0x261465(0x401)][_0x261465(0x2a9)]:_0x31f800=_0x376d18(this['_pendingMutations'],this[_0x261465(0x220)],this['_univerInstanceService'],this[_0x261465(0x466)],this[_0x261465(0x261)]);break;case _0x2ef5c0['UniverInstanceType']['UNIVER_BASE']:_0x31f800=_0x5111b3(this[_0x261465(0x1d2)],this[_0x261465(0x220)],this['_univerInstanceService'],this['_revisionService'],this[_0x261465(0x261)]);break;default:throw Error(_0x261465(0x4e5)+this[_0x261465(0x41b)]+_0x261465(0x1f1));}let {changeset:_0x4bdc24,pendingMutations:_0x4b34e9}=_0x31f800;this['_handler']['onSendChangeset'](_0x4bdc24);let _0x597034=_0x4b34e9[_0x261465(0x375)]?this['_injector']['createInstance'](_0xc592c2,this[_0x261465(0x220)],this[_0x261465(0x41b)],_0x4bdc24,_0x4b34e9,this[_0x261465(0x1f9)],void 0x0):this[_0x261465(0x268)][_0x261465(0x4d4)](_0x4179f7,this[_0x261465(0x220)],this[_0x261465(0x41b)],_0x4bdc24,this[_0x261465(0x1f9)]);_0x597034[_0x261465(0x3f4)](),this[_0x261465(0x1f9)][_0x261465(0x3fe)](this,_0x597034);},_0x200b46);}[_0x49e982(0x460)](){const _0x49d4ed=_0x49e982;var _0x12add5;let _0x1e61f4=this[_0x49d4ed(0x28b)]['getConfig'](_0x138b5f);return(_0x12add5=_0x1e61f4==null?void 0x0:_0x1e61f4[_0x49d4ed(0x2cb)])==null?0x7d0:_0x12add5;}[_0x49e982(0x37b)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x51b015=_0x49e982;this['_sendingTimer']!=null&&(clearTimeout(this[_0x51b015(0x2ec)]),this['_sendingTimer']=null);}[_0x49e982(0x377)](_0x18c1d7){const _0x48f7b9=_0x49e982;return this[_0x48f7b9(0x341)](),this[_0x48f7b9(0x268)]['createInstance'](_0x57ed03,this[_0x48f7b9(0x220)],this['type'],null,this[_0x48f7b9(0x1d2)],this[_0x48f7b9(0x1f9)],_0x18c1d7);}};_0x14ada3=_0x3583f4=_0x433d1e([_0x25be6b(0x4,(0x0,_0x2ef5c0['Inject'])(_0x2ef5c0[_0x49e982(0x2fe)])),_0x25be6b(0x5,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x3f9d12[_0x49e982(0x452)])),_0x25be6b(0x6,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x5ad22b)),_0x25be6b(0x7,_0x2ef5c0[_0x49e982(0x342)]),_0x25be6b(0x8,_0x2ef5c0['ICommandService']),_0x25be6b(0x9,_0x2ef5c0[_0x49e982(0x35c)]),_0x25be6b(0xa,_0x3f9d12[_0x49e982(0x1cb)]),_0x25be6b(0xb,_0x2ef5c0['IUniverInstanceService']),_0x25be6b(0xc,_0x2ef5c0[_0x49e982(0x4a3)]),_0x25be6b(0xd,(0x0,_0x2ef5c0[_0x49e982(0x4bf)])(_0x497ec1))],_0x14ada3);let _0x4179f7=_0x41ecd1=class extends _0x5cb0e8{constructor(_0x3604a6,_0x319a33,_0x181fc7,_0x419ad7,_0x15b8d7,_0x57c87e,_0x4573b0,_0xe3aa79,_0x5c27ad,_0x1db376,_0x1b55bf){const _0x709c31=_0x49e982;super(_0x3604a6,_0x319a33,_0x181fc7,[],_0x419ad7,_0x4573b0,_0x1db376,_0x57c87e,_0x1b55bf),this[_0x709c31(0x268)]=_0x15b8d7,this[_0x709c31(0x271)]=_0xe3aa79,this[_0x709c31(0x331)]=_0x5c27ad,_0xa76697(this,'status',_0x709c31(0x217)),_0xa76697(this,_0x709c31(0x1b9),0x0),_0xa76697(this,'_maxTotalRetryTimeout',0x0),_0xa76697(this,_0x709c31(0x314),void 0x0),_0xa76697(this,_0x709c31(0x1c5),void 0x0);}[_0x49e982(0x4b8)](_0x442f5c){const _0x20c400=_0x49e982;this[_0x20c400(0x341)]();let _0x412cc4=this[_0x20c400(0x268)][_0x20c400(0x4d4)](_0xc592c2,this[_0x20c400(0x220)],this[_0x20c400(0x41b)],this[_0x20c400(0x206)],[_0x442f5c],this[_0x20c400(0x1f9)],this['_resendTimer']);return _0x412cc4[_0x20c400(0x3f4)](),_0x412cc4;}[_0x49e982(0x39b)](_0x5ad1d2){const _0x5dd311=_0x49e982;if(this[_0x5dd311(0x291)](_0x5ad1d2))return this[_0x5dd311(0x341)](),this[_0x5dd311(0x268)][_0x5dd311(0x4d4)](_0x5ef596,this[_0x5dd311(0x220)],this[_0x5dd311(0x41b)],this[_0x5dd311(0x206)],[],null,[_0x5ad1d2],this[_0x5dd311(0x1f9)]);try{let _0x9974c9=this[_0x5dd311(0x331)][_0x5dd311(0x42c)]([_0x5ad1d2],[this[_0x5dd311(0x206)]],!0x1);if((0x0,_0x3f9d12[_0x5dd311(0x3f5)])(_0x9974c9)){let {c1Prime:_0x518430,c2Prime:_0xe4f36c}=_0x9974c9;this[_0x5dd311(0x1b6)](_0x518430[0x0]),_0xe4f36c[0x0]['baseRev']=this[_0x5dd311(0x323)](),this[_0x5dd311(0x341)]();let _0x4c41e5=this[_0x5dd311(0x268)]['createInstance'](_0x41ecd1,this[_0x5dd311(0x220)],this[_0x5dd311(0x41b)],_0xe4f36c[0x0],this[_0x5dd311(0x1f9)]);return _0x4c41e5['_updateLocalCache'](),_0x4c41e5;}throw _0x9974c9[_0x5dd311(0x438)];}catch(_0x3bac77){return this[_0x5dd311(0x271)][_0x5dd311(0x438)](_0x3bac77),this[_0x5dd311(0x377)](!0x1);}}[_0x49e982(0x212)](_0x348eff){const _0x14aca0=_0x49e982;this[_0x14aca0(0x341)]();let _0x329266=this[_0x14aca0(0x466)][_0x14aca0(0x218)](this[_0x14aca0(0x220)]);if(_0x348eff[_0x14aca0(0x450)]<=_0x329266)return this;if(this['_checkMissing'](_0x348eff))return this[_0x14aca0(0x268)][_0x14aca0(0x4d4)](_0x5ef596,this[_0x14aca0(0x220)],this['type'],this[_0x14aca0(0x206)],[],_0x348eff[_0x14aca0(0x450)],[],this[_0x14aca0(0x1f9)]);this[_0x14aca0(0x41c)]();let _0x3be4a2=this[_0x14aca0(0x268)][_0x14aca0(0x4d4)](_0x1c6422,this['unitID'],this[_0x14aca0(0x41b)],this[_0x14aca0(0x1f9)]);return _0x3be4a2['_updateLocalCache'](),_0x3be4a2;}[_0x49e982(0x306)](_0x32739e){const _0x2b99ab=_0x49e982;return this[_0x2b99ab(0x377)](!!(_0x32739e!=null&&_0x32739e[_0x2b99ab(0x2ee)]));}['onRemoteRetry'](_0x25c7ff){const _0x582ab8=_0x49e982;return this[_0x582ab8(0x4c0)]>_0x1a51c6?this[_0x582ab8(0x361)]():(this['_resendTimer']=_0x52f207(this[_0x582ab8(0x1b9)],{'timeout':this[_0x582ab8(0x1b9)],'reqId':_0x25c7ff[_0x582ab8(0x3af)]}),this[_0x582ab8(0x1c5)]=this[_0x582ab8(0x314)][_0x582ab8(0x478)](({reqId:_0x563d93,timeout:_0x847a1d})=>{const _0x28745a=_0x582ab8;this[_0x28745a(0x47d)](_0x563d93,_0x847a1d);}),this);}[_0x49e982(0x361)](){const _0x123be7=_0x49e982;return this[_0x123be7(0x341)](),this[_0x123be7(0x268)][_0x123be7(0x4d4)](_0x5266ae,this[_0x123be7(0x220)],this[_0x123be7(0x41b)],this['_awaitingChangeset'],[],this['_handler']);}[_0x49e982(0x238)](){return this;}[_0x49e982(0x37b)](){const _0x4b80fd=_0x49e982;this['_handler'][_0x4b80fd(0x301)](this[_0x4b80fd(0x206)]);}[_0x49e982(0x377)](_0x378f01){const _0x5c5622=_0x49e982;return this[_0x5c5622(0x341)](),this[_0x5c5622(0x268)][_0x5c5622(0x4d4)](_0x57ed03,this['unitID'],this[_0x5c5622(0x41b)],this[_0x5c5622(0x206)],[],this[_0x5c5622(0x1f9)],_0x378f01);}['_resendWithTimeout'](_0x54c818,_0x21c6f8){const _0x386f31=_0x49e982;var _0x287c23;_0x54c818===((_0x287c23=this[_0x386f31(0x206)])==null?void 0x0:_0x287c23[_0x386f31(0x3af)])&&(this[_0x386f31(0x37b)](),this[_0x386f31(0x1b9)]=_0x21c6f8===0x0?0x3e8:Math[_0x386f31(0x437)](_0x21c6f8*0x2,_0x40076d),this[_0x386f31(0x4c0)]+=this[_0x386f31(0x1b9)]);}['_clearScheduledTask'](){const _0x2a8378=_0x49e982;var _0x532919;(_0x532919=this[_0x2a8378(0x1c5)])==null||_0x532919[_0x2a8378(0x31a)](),this[_0x2a8378(0x1b9)]=0x0,this[_0x2a8378(0x4c0)]=0x0;}};_0x4179f7=_0x41ecd1=_0x433d1e([_0x25be6b(0x4,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0['Injector'])),_0x25be6b(0x5,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x3f9d12[_0x49e982(0x452)])),_0x25be6b(0x6,_0x2ef5c0[_0x49e982(0x44b)]),_0x25be6b(0x7,_0x2ef5c0[_0x49e982(0x342)]),_0x25be6b(0x8,_0x3f9d12[_0x49e982(0x1cb)]),_0x25be6b(0x9,_0x2ef5c0[_0x49e982(0x4a3)]),_0x25be6b(0xa,(0x0,_0x2ef5c0[_0x49e982(0x4bf)])(_0x497ec1))],_0x4179f7);let _0xc592c2=_0x80810f=class extends _0x5cb0e8{constructor(_0x540213,_0x524217,_0x3e6239,_0x4e70ee,_0x87fded,_0x4fff20,_0x35e0fc,_0x3cd7c8,_0x3fcc89,_0xbaec8,_0x34d3e7,_0x4e2436,_0x2a18cc){const _0x4bd20c=_0x49e982;super(_0x540213,_0x524217,_0x3e6239,_0x4e70ee,_0x87fded,_0x3fcc89,_0x4e2436,_0x3cd7c8,_0x2a18cc),this[_0x4bd20c(0x268)]=_0x35e0fc,this[_0x4bd20c(0x271)]=_0xbaec8,this[_0x4bd20c(0x331)]=_0x34d3e7,this[_0x4bd20c(0x4c6)]=_0x2a18cc,_0xa76697(this,'status',_0x4bd20c(0x4d5)),_0xa76697(this,'_resendTimeout',0x0),_0xa76697(this,_0x4bd20c(0x4c0),0x0),_0xa76697(this,'_resendTimer',void 0x0),_0xa76697(this,_0x4bd20c(0x1c5),void 0x0),_0x4fff20&&(this[_0x4bd20c(0x314)]=_0x4fff20,this[_0x4bd20c(0x1c5)]=this[_0x4bd20c(0x314)][_0x4bd20c(0x478)](({reqId:_0x4d37d7,timeout:_0x5eb7e9})=>{const _0x489c15=_0x4bd20c;this[_0x489c15(0x47d)](_0x4d37d7,_0x5eb7e9);}));}[_0x49e982(0x4b8)](_0x28c8e1){const _0x5a778d=_0x49e982;return this[_0x5a778d(0x1d2)][_0x5a778d(0x3a7)](_0x28c8e1),this;}['onRemoteChangeset'](_0x52c22a){const _0x5b8ac1=_0x49e982;if(this[_0x5b8ac1(0x291)](_0x52c22a))return this['_clearScheduledTask'](),this[_0x5b8ac1(0x268)][_0x5b8ac1(0x4d4)](_0x5ef596,this['unitID'],this[_0x5b8ac1(0x41b)],this['_awaitingChangeset'],this[_0x5b8ac1(0x1d2)],null,[_0x52c22a],this[_0x5b8ac1(0x1f9)]);try{let _0x26f978=this[_0x5b8ac1(0x331)][_0x5b8ac1(0x42c)]([_0x52c22a],[this['_awaitingChangeset']],!0x1);if((0x0,_0x3f9d12[_0x5b8ac1(0x3f5)])(_0x26f978)){let {c1Prime:_0x10185a,c2Prime:_0x28425a}=_0x26f978,_0xae7d00=this[_0x5b8ac1(0x331)]['transformMutationsWithChangeset'](_0x10185a[0x0],this[_0x5b8ac1(0x1d2)]);if((0x0,_0x3f9d12[_0x5b8ac1(0x226)])(_0xae7d00)){let {c1Prime:_0x524333,m2Prime:_0x121d74}=_0xae7d00;return this[_0x5b8ac1(0x1b6)](_0x524333),_0x28425a[0x0]['baseRev']=this[_0x5b8ac1(0x323)](),this[_0x5b8ac1(0x341)](),this[_0x5b8ac1(0x268)][_0x5b8ac1(0x4d4)](_0x80810f,this[_0x5b8ac1(0x220)],this[_0x5b8ac1(0x41b)],_0x28425a[0x0],_0x121d74,this[_0x5b8ac1(0x1f9)],void 0x0);}throw _0xae7d00[_0x5b8ac1(0x438)];}throw _0x26f978['error'];}catch(_0x21c7c6){return this[_0x5b8ac1(0x271)][_0x5b8ac1(0x438)](_0x21c7c6),this['_onConflict'](!0x1);}}[_0x49e982(0x212)](_0x5efca0){const _0x5b0fb2=_0x49e982;this[_0x5b0fb2(0x341)]();let _0x38e5db=this[_0x5b0fb2(0x323)]();if(_0x5efca0[_0x5b0fb2(0x450)]<=_0x38e5db)return this;if(this[_0x5b0fb2(0x291)](_0x5efca0))return this['_injector'][_0x5b0fb2(0x4d4)](_0x5ef596,this['unitID'],this[_0x5b0fb2(0x41b)],this[_0x5b0fb2(0x206)],this[_0x5b0fb2(0x1d2)],_0x5efca0[_0x5b0fb2(0x450)],[],this[_0x5b0fb2(0x1f9)]);this[_0x5b0fb2(0x41c)]();let _0x1a7400=this['_injector'][_0x5b0fb2(0x4d4)](_0x14ada3,this[_0x5b0fb2(0x220)],this[_0x5b0fb2(0x41b)],this[_0x5b0fb2(0x1d2)],this[_0x5b0fb2(0x1f9)]);return _0x1a7400[_0x5b0fb2(0x424)](),_0x1a7400['_updateLocalCache'](),_0x1a7400;}[_0x49e982(0x306)](_0x1672a6){const _0x24918e=_0x49e982;return this[_0x24918e(0x377)](!!(_0x1672a6!=null&&_0x1672a6['isPermissionRej']));}[_0x49e982(0x415)](_0x481d1c){const _0x2d976f=_0x49e982;return this[_0x2d976f(0x4c0)]>_0x1a51c6?this[_0x2d976f(0x361)]():(this[_0x2d976f(0x314)]=_0x52f207(this[_0x2d976f(0x1b9)],{'timeout':this[_0x2d976f(0x1b9)],'reqId':_0x481d1c[_0x2d976f(0x3af)]}),this['_sender']=this['_resendTimer'][_0x2d976f(0x478)](({reqId:_0x2dd007,timeout:_0x20ffad})=>{this['_resendWithTimeout'](_0x2dd007,_0x20ffad);}),this);}[_0x49e982(0x361)](){const _0x42a1b5=_0x49e982;return this['_clearScheduledTask'](),this[_0x42a1b5(0x268)][_0x42a1b5(0x4d4)](_0x5266ae,this[_0x42a1b5(0x220)],this['type'],this[_0x42a1b5(0x206)],this['_pendingMutations'],this[_0x42a1b5(0x1f9)]);}['toggleOnline'](){return this;}['resend'](){const _0x18b654=_0x49e982;this[_0x18b654(0x1f9)][_0x18b654(0x301)](this[_0x18b654(0x206)]);}[_0x49e982(0x377)](_0x140b6b){const _0xd42f6e=_0x49e982;return this[_0xd42f6e(0x341)](),this['_injector'][_0xd42f6e(0x4d4)](_0x57ed03,this[_0xd42f6e(0x220)],this[_0xd42f6e(0x41b)],null,this[_0xd42f6e(0x1d2)],this[_0xd42f6e(0x1f9)],_0x140b6b);}[_0x49e982(0x47d)](_0x9bea47,_0x22b935){const _0x3d4ea9=_0x49e982;var _0xdb7e69;_0x9bea47===((_0xdb7e69=this[_0x3d4ea9(0x206)])==null?void 0x0:_0xdb7e69['reqId'])&&(this['resend'](),this[_0x3d4ea9(0x1b9)]=_0x22b935===0x0?0x3e8:Math[_0x3d4ea9(0x437)](_0x22b935*0x2,_0x40076d),this[_0x3d4ea9(0x4c0)]+=this[_0x3d4ea9(0x1b9)]);}[_0x49e982(0x341)](){const _0x1edde4=_0x49e982;var _0x86677c;(_0x86677c=this[_0x1edde4(0x1c5)])==null||_0x86677c[_0x1edde4(0x31a)](),this[_0x1edde4(0x1b9)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0xc592c2=_0x80810f=_0x433d1e([_0x25be6b(0x6,(0x0,_0x2ef5c0['Inject'])(_0x2ef5c0['Injector'])),_0x25be6b(0x7,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x3f9d12['RevisionService'])),_0x25be6b(0x8,_0x2ef5c0[_0x49e982(0x44b)]),_0x25be6b(0x9,_0x2ef5c0[_0x49e982(0x342)]),_0x25be6b(0xa,_0x3f9d12[_0x49e982(0x1cb)]),_0x25be6b(0xb,_0x2ef5c0[_0x49e982(0x4a3)]),_0x25be6b(0xc,(0x0,_0x2ef5c0[_0x49e982(0x4bf)])(_0x497ec1))],_0xc592c2);let _0x57ed03=class extends _0x5cb0e8{constructor(_0x2cb4cd,_0x1f1b95,_0x56f944,_0x3a03fa,_0x475e13,_0x5b5cd8=!0x1,_0x79594,_0x479007,_0xb4ba28,_0x100933,_0x2acc30,_0x44cdde,_0x47167b){const _0x30087b=_0x49e982;super(_0x2cb4cd,_0x1f1b95,_0x56f944,_0x3a03fa,_0x475e13,_0x479007,_0xb4ba28,_0x100933,_0x47167b),this[_0x30087b(0x318)]=_0x5b5cd8,this['_permissionService']=_0x79594,this['_localeService']=_0x2acc30,this[_0x30087b(0x481)]=_0x44cdde,this['localCacheService']=_0x47167b,_0xa76697(this,'status',_0x30087b(0x39e)),this[_0x30087b(0x241)](),this[_0x30087b(0x37c)](),this[_0x30087b(0x4b6)]();}[_0x49e982(0x4b8)](){return this;}[_0x49e982(0x39b)](){return this;}['onRemoteAck'](){return this;}[_0x49e982(0x306)](){return this;}['onRemoteRetry'](){return this;}[_0x49e982(0x361)](){return this;}['toggleOnline'](){return this;}[_0x49e982(0x37b)](){const _0x1abde1=_0x49e982;throw Error(_0x1abde1(0x3d0));}[_0x49e982(0x37c)](){const _0x3e8fc3=_0x49e982;var _0x4c114e,_0x21f437,_0x481868;(_0x4c114e=this[_0x3e8fc3(0x49e)])==null||(_0x21f437=_0x4c114e[_0x3e8fc3(0x354)])==null||(_0x21f437=_0x21f437['call'](_0x4c114e,this[_0x3e8fc3(0x220)],_0x3e8fc3(0x39e)))==null||_0x21f437[_0x3e8fc3(0x2a7)](()=>void 0x0),(_0x481868=this['_localCacheService'])==null||_0x481868[_0x3e8fc3(0x210)](this[_0x3e8fc3(0x220)],this[_0x3e8fc3(0x41b)],null,[]);}[_0x49e982(0x241)](){const _0x45e365=_0x49e982;this['_isPermissionRej']?this[_0x45e365(0x481)][_0x45e365(0x1ee)]({'id':_0x45e365(0x1be)}):this[_0x45e365(0x481)][_0x45e365(0x1ee)]({'id':_0x45e365(0x397)});}[_0x49e982(0x4b6)](){const _0x28d14b=_0x49e982;this['_permissionService'][_0x28d14b(0x1f2)](new _0x15be79[(_0x28d14b(0x41e))](this[_0x28d14b(0x220)])['id'],!0x1);}};_0x57ed03=_0x433d1e([_0x25be6b(0x6,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0['IPermissionService'])),_0x25be6b(0x7,_0x2ef5c0['ICommandService']),_0x25be6b(0x8,_0x2ef5c0['IUndoRedoService']),_0x25be6b(0x9,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x3f9d12[_0x49e982(0x452)])),_0x25be6b(0xa,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0[_0x49e982(0x37d)])),_0x25be6b(0xb,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x4d282d)),_0x25be6b(0xc,(0x0,_0x2ef5c0[_0x49e982(0x4bf)])(_0x497ec1))],_0x57ed03);let _0x5266ae=class extends _0x5cb0e8{constructor(_0x4d90b4,_0x3d06ba,_0x57a1f6,_0x2e0087,_0x569c2d,_0x259b47,_0x30612b,_0x24f57e,_0x4135e9,_0x1b8560){const _0x1e6840=_0x49e982;super(_0x4d90b4,_0x3d06ba,_0x57a1f6,_0x2e0087,_0x569c2d,_0x24f57e,_0x4135e9,_0x30612b,_0x1b8560),this[_0x1e6840(0x268)]=_0x259b47,_0xa76697(this,_0x1e6840(0x371),_0x1e6840(0x1e9));}['appendMutation'](_0x17e8ae){const _0x1629eb=_0x49e982;return this['_pendingMutations'][_0x1629eb(0x3a7)](_0x17e8ae),this['_updateLocalCache'](),this;}[_0x49e982(0x39b)](_0x408e96){const _0x1036b2=_0x49e982;throw Error(_0x1036b2(0x4b5));}['onRemoteAck'](){const _0x17e7e2=_0x49e982;throw Error(_0x17e7e2(0x484));}[_0x49e982(0x306)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x49e982(0x415)](){return this;}[_0x49e982(0x361)](){return this;}[_0x49e982(0x238)](){const _0x5d96f8=_0x49e982;let {_injector:_0x322925,_pendingMutations:_0x33706b,_awaitingChangeset:_0x3fb5b1,unitID:_0x57f142,_handler:_0x59a707,type:_0x537e3c}=this,_0x28441a=_0x2290f(_0x322925,_0x57f142,_0x537e3c,_0x3fb5b1,_0x33706b,_0x59a707);return _0x28441a instanceof _0x14ada3?_0x28441a[_0x5d96f8(0x424)]():(_0x28441a instanceof _0xc592c2||_0x28441a instanceof _0x4179f7)&&_0x28441a['resend'](),_0x28441a;}[_0x49e982(0x37b)](){const _0x36d44c=_0x49e982;throw Error(_0x36d44c(0x298));}};_0x5266ae=_0x433d1e([_0x25be6b(0x5,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0[_0x49e982(0x2fe)])),_0x25be6b(0x6,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x3f9d12[_0x49e982(0x452)])),_0x25be6b(0x7,_0x2ef5c0['ICommandService']),_0x25be6b(0x8,_0x2ef5c0[_0x49e982(0x4a3)]),_0x25be6b(0x9,(0x0,_0x2ef5c0[_0x49e982(0x4bf)])(_0x497ec1))],_0x5266ae);let _0x5ef596=class extends _0x5cb0e8{constructor(_0x19027e,_0x2a058c,_0x55e976,_0x362c7f,_0x1d544f,_0x398daf,_0x72edcd,_0x9d0bb2,_0x18ad92,_0x427305,_0x57b23a,_0x1b0369,_0x54fa56,_0x276611){const _0x5d45fc=_0x49e982;super(_0x19027e,_0x2a058c,_0x55e976,_0x362c7f,_0x72edcd,_0x57b23a,_0x1b0369,_0x18ad92,_0x276611),this['_acknowledgedAwaitingRevision']=_0x1d544f,this[_0x5d45fc(0x4c8)]=_0x398daf,this[_0x5d45fc(0x268)]=_0x9d0bb2,this[_0x5d45fc(0x271)]=_0x427305,this['_transformService']=_0x54fa56,this[_0x5d45fc(0x4c6)]=_0x276611,_0xa76697(this,'status',_0x5d45fc(0x37a));}[_0x49e982(0x417)](_0x4000d5){const _0x3fae6e=_0x49e982;try{if(this[_0x3fae6e(0x497)](_0x4000d5)['missingChangesets'])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this[_0x3fae6e(0x497)]([...this[_0x3fae6e(0x4c8)]]['sort']((_0x5bbfeb,_0x28c731)=>_0x5bbfeb[_0x3fae6e(0x450)]-_0x28c731['revision']))[_0x3fae6e(0x4e8)])return this['_queuedRemoteChangesets']=[],this[_0x3fae6e(0x3f4)](),this[_0x3fae6e(0x1f9)][_0x3fae6e(0x3a5)]({'from':this[_0x3fae6e(0x323)](),'to':0x0}),this;let _0x4b5f66=this['_awaitingChangeset'],_0x1e6ec5=this['_pendingMutations'],_0xff6e3f;if(_0x4b5f66&&_0x1e6ec5[_0x3fae6e(0x375)]!==0x0)_0xff6e3f=this[_0x3fae6e(0x268)][_0x3fae6e(0x4d4)](_0xc592c2,this[_0x3fae6e(0x220)],this[_0x3fae6e(0x41b)],_0x4b5f66,_0x1e6ec5,this[_0x3fae6e(0x1f9)],void 0x0);else{if(_0x4b5f66&&_0x1e6ec5[_0x3fae6e(0x375)]===0x0)_0x4b5f66[_0x3fae6e(0x459)]=this[_0x3fae6e(0x323)](),_0xff6e3f=this[_0x3fae6e(0x268)][_0x3fae6e(0x4d4)](_0x4179f7,this[_0x3fae6e(0x220)],this[_0x3fae6e(0x41b)],_0x4b5f66,this[_0x3fae6e(0x1f9)]);else{if(_0x1e6ec5[_0x3fae6e(0x375)]!==0x0){let _0x4ae4db=this[_0x3fae6e(0x268)][_0x3fae6e(0x4d4)](_0x14ada3,this['unitID'],this[_0x3fae6e(0x41b)],_0x1e6ec5,this[_0x3fae6e(0x1f9)]);_0x4ae4db[_0x3fae6e(0x424)](),_0xff6e3f=_0x4ae4db;}else _0xff6e3f=this[_0x3fae6e(0x268)][_0x3fae6e(0x4d4)](_0x1c6422,this[_0x3fae6e(0x220)],this[_0x3fae6e(0x41b)],this[_0x3fae6e(0x1f9)]);}}return _0xff6e3f[_0x3fae6e(0x3f4)](),_0xff6e3f;}catch(_0x234132){return this['_logService'][_0x3fae6e(0x438)](_0x3fae6e(0x4c3),_0x3fae6e(0x4a1),_0x234132),this[_0x3fae6e(0x268)][_0x3fae6e(0x4d4)](_0x57ed03,this['unitID'],this[_0x3fae6e(0x41b)],this[_0x3fae6e(0x206)],this[_0x3fae6e(0x1d2)],this[_0x3fae6e(0x1f9)],!0x1);}}[_0x49e982(0x497)](_0x4a9f25){const _0x2fd2c5=_0x49e982;this[_0x2fd2c5(0x23f)]();for(let _0x407b10=0x0;_0x407b10<_0x4a9f25[_0x2fd2c5(0x375)];_0x407b10++){let _0x1b0fcf=_0x4a9f25[_0x407b10],_0x5247e8=this[_0x2fd2c5(0x323)]();if(!(_0x1b0fcf['revision']<=_0x5247e8)){if(_0x1b0fcf['revision']>_0x5247e8+0x1)return{'missingChangesets':!0x0};if(this[_0x2fd2c5(0x24d)](_0x1b0fcf)){this[_0x2fd2c5(0x360)]();continue;}this[_0x2fd2c5(0x479)](_0x1b0fcf),this[_0x2fd2c5(0x23f)]();}}return{'missingChangesets':!0x1};}[_0x49e982(0x479)](_0x2fef15){const _0x2f8580=_0x49e982;let _0x473541=_0x2fef15,_0x585997=this[_0x2f8580(0x206)];if(_0x585997){let _0x59fcf6=this[_0x2f8580(0x331)]['transformChangesets']([_0x2fef15],[_0x585997],!0x1);if(!(0x0,_0x3f9d12[_0x2f8580(0x3f5)])(_0x59fcf6))throw _0x59fcf6['error'];_0x473541=_0x59fcf6[_0x2f8580(0x38e)][0x0],_0x585997=_0x59fcf6[_0x2f8580(0x412)][0x0];}let _0x37a3d8=this[_0x2f8580(0x1d2)];if(_0x37a3d8[_0x2f8580(0x375)]){let _0x1d1d6a=this[_0x2f8580(0x331)][_0x2f8580(0x4a9)](_0x473541,_0x37a3d8);if(!(0x0,_0x3f9d12['isTransformMutationsWithChangesetSuccess'])(_0x1d1d6a))throw _0x1d1d6a[_0x2f8580(0x438)];_0x473541=_0x1d1d6a['c1Prime'],_0x37a3d8=_0x1d1d6a[_0x2f8580(0x3df)];}this[_0x2f8580(0x1b6)](_0x473541),_0x585997&&(_0x585997[_0x2f8580(0x459)]=this['_getCurrentRevision']()),this[_0x2f8580(0x206)]=_0x585997,this['_pendingMutations']=_0x37a3d8;}['_acknowledgeAwaitingIfReady'](){const _0xb5f55=_0x49e982;if(!this[_0xb5f55(0x206)]||this['_acknowledgedAwaitingRevision']==null)return;let _0x6d4d4c=this[_0xb5f55(0x323)]();if(this[_0xb5f55(0x280)]<=_0x6d4d4c)throw Error(_0xb5f55(0x270)+this[_0xb5f55(0x280)]+'.');this['_acknowledgedAwaitingRevision']===_0x6d4d4c+0x1&&this[_0xb5f55(0x360)]();}[_0x49e982(0x360)](){const _0x5b8bc9=_0x49e982;this[_0x5b8bc9(0x41c)](),this['_awaitingChangeset']=null,this['_acknowledgedAwaitingRevision']=null;}[_0x49e982(0x24d)](_0x46c7ed){const _0x5efe84=_0x49e982;let _0x5a1b06=this[_0x5efe84(0x206)];return!_0x5a1b06||!_0x5a1b06['sid']||_0x5a1b06[_0x5efe84(0x3af)]===null||_0x5a1b06['reqId']===void 0x0?!0x1:_0x46c7ed[_0x5efe84(0x220)]===_0x5a1b06[_0x5efe84(0x220)]&&_0x46c7ed[_0x5efe84(0x1db)]===_0x5a1b06[_0x5efe84(0x1db)]&&_0x46c7ed['reqId']===_0x5a1b06[_0x5efe84(0x3af)];}[_0x49e982(0x37b)](){const _0x5017ca=_0x49e982;throw Error(_0x5017ca(0x4d2));}['appendMutation'](_0x180f8e){const _0x2a0512=_0x49e982;return this[_0x2a0512(0x1d2)][_0x2a0512(0x3a7)](_0x180f8e),this;}['onRemoteChangeset'](_0x2cd12e){const _0x5c8c24=_0x49e982;return this[_0x5c8c24(0x4c8)][_0x5c8c24(0x3a7)](_0x2cd12e),this;}[_0x49e982(0x212)](_0x539e06){const _0xb4874=_0x49e982;if(this[_0xb4874(0x206)]){let _0x3928aa=this[_0xb4874(0x323)]();return _0x539e06[_0xb4874(0x450)]<=_0x3928aa||(_0x3928aa+0x1===_0x539e06[_0xb4874(0x450)]?(this[_0xb4874(0x41c)](),this[_0xb4874(0x206)]=null,this['_acknowledgedAwaitingRevision']=null):this[_0xb4874(0x280)]=_0x539e06[_0xb4874(0x450)]),this;}if(_0x539e06[_0xb4874(0x450)]<=this[_0xb4874(0x323)]())return this;throw Error(_0xb4874(0x252));}[_0x49e982(0x306)](_0x242858){const _0x206284=_0x49e982;return this[_0x206284(0x377)](!!(_0x242858!=null&&_0x242858[_0x206284(0x2ee)]));}[_0x49e982(0x415)](){return this;}[_0x49e982(0x361)](){const _0x4cadb7=_0x49e982;return this[_0x4cadb7(0x268)][_0x4cadb7(0x4d4)](_0x5266ae,this[_0x4cadb7(0x220)],this[_0x4cadb7(0x41b)],this[_0x4cadb7(0x206)],this[_0x4cadb7(0x1d2)],this[_0x4cadb7(0x1f9)]);}[_0x49e982(0x238)](){return this;}[_0x49e982(0x377)](_0x238c67){const _0x1c2082=_0x49e982;return this[_0x1c2082(0x268)][_0x1c2082(0x4d4)](_0x57ed03,this[_0x1c2082(0x220)],this[_0x1c2082(0x41b)],this['_awaitingChangeset'],this[_0x1c2082(0x1d2)],this[_0x1c2082(0x1f9)],_0x238c67);}};_0x5ef596=_0x433d1e([_0x25be6b(0x7,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0[_0x49e982(0x2fe)])),_0x25be6b(0x8,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x3f9d12[_0x49e982(0x452)])),_0x25be6b(0x9,_0x2ef5c0[_0x49e982(0x342)]),_0x25be6b(0xa,_0x2ef5c0[_0x49e982(0x44b)]),_0x25be6b(0xb,_0x2ef5c0['IUndoRedoService']),_0x25be6b(0xc,_0x3f9d12[_0x49e982(0x1cb)]),_0x25be6b(0xd,(0x0,_0x2ef5c0[_0x49e982(0x4bf)])(_0x497ec1))],_0x5ef596);function _0x2290f(_0x3c8240,_0x48418f,_0x4ef1da,_0x26e0c6,_0x576cf3,_0x5560b6){const _0x5c4e6f=_0x49e982;return _0x26e0c6&&_0x576cf3[_0x5c4e6f(0x375)]?_0x3c8240[_0x5c4e6f(0x4d4)](_0xc592c2,_0x48418f,_0x4ef1da,_0x26e0c6,_0x576cf3,_0x5560b6,void 0x0):_0x26e0c6?_0x3c8240[_0x5c4e6f(0x4d4)](_0x4179f7,_0x48418f,_0x4ef1da,_0x26e0c6,_0x5560b6):_0x576cf3[_0x5c4e6f(0x375)]?_0x3c8240[_0x5c4e6f(0x4d4)](_0x14ada3,_0x48418f,_0x4ef1da,_0x576cf3,_0x5560b6):_0x3c8240[_0x5c4e6f(0x4d4)](_0x1c6422,_0x48418f,_0x4ef1da,_0x5560b6);}let _0x58fb9d=class extends _0x2ef5c0['RxDisposable']{get[_0x49e982(0x1d6)](){const _0x2c4308=_0x49e982;return this[_0x2c4308(0x3a0)];}constructor(_0x3d90bb,_0x1b07c4,_0xd6dbb0,_0x451a69,_0x378e23,_0x3de997,_0x5d9c1c,_0x3a2df9,_0x325177,_0x2f7bd8,_0x598402,_0x2de0b4,_0xdb39fb,_0x57a5a2){const _0x1de1ce=_0x49e982;super(),this[_0x1de1ce(0x220)]=_0x3d90bb,this[_0x1de1ce(0x22b)]=_0x1b07c4,this[_0x1de1ce(0x359)]=_0xd6dbb0,this[_0x1de1ce(0x268)]=_0x451a69,this[_0x1de1ce(0x344)]=_0x378e23,this[_0x1de1ce(0x2bf)]=_0x3de997,this[_0x1de1ce(0x466)]=_0x5d9c1c,this[_0x1de1ce(0x336)]=_0x3a2df9,this[_0x1de1ce(0x4cb)]=_0x325177,this[_0x1de1ce(0x271)]=_0x2f7bd8,this[_0x1de1ce(0x2d1)]=_0x598402,this[_0x1de1ce(0x381)]=_0x2de0b4,this[_0x1de1ce(0x325)]=_0xdb39fb,this[_0x1de1ce(0x49e)]=_0x57a5a2,_0xa76697(this,_0x1de1ce(0x40f),new _0x4d6dfb[(_0x1de1ce(0x1dc))](null)),_0xa76697(this,_0x1de1ce(0x456),this['_state$'][_0x1de1ce(0x21d)]()),_0xa76697(this,_0x1de1ce(0x3a0),void 0x0),_0xa76697(this,_0x1de1ce(0x4a5),!0x1),_0xa76697(this,'_changesetSessionId',''),_0xa76697(this,_0x1de1ce(0x443),0x0),_0xa76697(this,'status$',this['state$'][_0x1de1ce(0x349)]((0x0,_0x4d6dfb[_0x1de1ce(0x431)])(_0x477ff4=>_0x477ff4?_0x477ff4[_0x1de1ce(0x371)]:'offline'),(0x0,_0x4d6dfb[_0x1de1ce(0x353)])({'bufferSize':0x1,'refCount':!0x0}))),_0xa76697(this,'_transitionLocked',!0x1),_0xa76697(this,_0x1de1ce(0x302),[]);}async[_0x49e982(0x299)](){const _0x2650cf=_0x49e982;if(this[_0x2650cf(0x1d6)])throw Error(_0x2650cf(0x3f8));await this[_0x2650cf(0x2fc)]();}[_0x49e982(0x311)](){const _0x118195=_0x49e982;return this[_0x118195(0x4a5)]=!0x0,(0x0,_0x2ef5c0[_0x118195(0x461)])(()=>{const _0x107a98=_0x118195;this['_collaborationPaused']=!0x1,this[_0x107a98(0x2b9)]();});}[_0x49e982(0x256)](_0x14ac20){const _0x3f42d0=_0x49e982;this[_0x3f42d0(0x45d)](_0x14ac20);}[_0x49e982(0x3eb)](_0x359de2){const _0x45a9b5=_0x49e982;this[_0x45a9b5(0x3a0)]=_0x359de2,this[_0x45a9b5(0x40f)][_0x45a9b5(0x368)](_0x359de2);}async[_0x49e982(0x2fc)](){const _0x496a35=_0x49e982;if(this[_0x496a35(0x3eb)](await this[_0x496a35(0x386)]()),this['_singleActiveUnitService']){var _0x17383c;(_0x17383c=this[_0x496a35(0x325)])==null||_0x17383c[_0x496a35(0x4ac)](this['unitID']),this[_0x496a35(0x4e6)](this[_0x496a35(0x325)][_0x496a35(0x3e0)](this[_0x496a35(0x220)])[_0x496a35(0x478)](_0xc09839=>{const _0x22ac3b=_0x496a35;this[_0x22ac3b(0x271)][_0x22ac3b(0x4ad)](_0x22ac3b(0x315),'editing\x20status\x20changed\x20to',_0xc09839),_0xc09839===0x1?(this[_0x22ac3b(0x336)]['emitEvent']({'id':_0x22ac3b(0x33d)}),this[_0x22ac3b(0x381)]['updatePermissionPoint'](new _0x15be79['WorkbookEditablePermission'](this[_0x22ac3b(0x220)])['id'],!0x1),this['_permissionService'][_0x22ac3b(0x2de)](!0x1)):(this[_0x22ac3b(0x381)]['updatePermissionPoint'](new _0x15be79[(_0x22ac3b(0x41e))](this[_0x22ac3b(0x220)])['id'],!0x0),this[_0x22ac3b(0x381)][_0x22ac3b(0x2de)](!0x0));}));}let _0x3abd4e=!0x1;return this[_0x496a35(0x4e6)](this['session'][_0x496a35(0x35f)]['subscribe'](_0x46f5d8=>{const _0x252842=_0x496a35;_0x46f5d8===0x3?this[_0x252842(0x4cf)](_0x3abd4e):_0x46f5d8===0x2&&(_0x3abd4e=!0x0,this[_0x252842(0x4c4)]());})),this[_0x496a35(0x4e6)](this[_0x496a35(0x22b)][_0x496a35(0x255)][_0x496a35(0x478)](_0xdf1577=>{const _0x16714d=_0x496a35;try{switch(_0xdf1577['eventID']){case _0x3f9d12[_0x16714d(0x448)][_0x16714d(0x406)]:this[_0x16714d(0x36b)]((0x0,_0x3f9d12['parseProtocolChangeset'])(_0xdf1577[_0x16714d(0x259)]));break;case _0x3f9d12[_0x16714d(0x448)][_0x16714d(0x48e)]:this[_0x16714d(0x4d9)](_0xdf1577[_0x16714d(0x259)]);break;case _0x3f9d12[_0x16714d(0x448)][_0x16714d(0x4b2)]:this['_onRemoteRejected']();break;case _0x3f9d12[_0x16714d(0x448)][_0x16714d(0x3d2)]:this[_0x16714d(0x3c8)](_0xdf1577[_0x16714d(0x259)]);break;case _0x3f9d12[_0x16714d(0x448)]['PSEUDO_FETCH_MISSING_RESULT']:this[_0x16714d(0x396)](_0xdf1577[_0x16714d(0x259)][_0x16714d(0x3b8)][_0x16714d(0x431)](_0x2d47f7=>(0x0,_0x3f9d12[_0x16714d(0x3e8)])(_0x2d47f7)));break;case _0x3f9d12[_0x16714d(0x448)][_0x16714d(0x250)]:this[_0x16714d(0x39a)]({'isPermissionRej':!0x0});break;case _0x3f9d12['CollaborationEvent'][_0x16714d(0x4ba)]:break;}}catch(_0x1bc8a4){throw console['error'](_0x16714d(0x378),_0x1bc8a4),_0x1bc8a4;}})),this[_0x496a35(0x3a0)];}[_0x49e982(0x34f)](){const _0x1fd9fb=_0x49e982;this[_0x1fd9fb(0x3fb)]=!0x1;}[_0x49e982(0x387)](){const _0x75831a=_0x49e982;if(this[_0x75831a(0x3fb)])throw Error(_0x75831a(0x2a8));this[_0x75831a(0x3fb)]=!0x0;}[_0x49e982(0x45d)](_0xc3eeca){const _0x1b5f07=_0x49e982;this['_lockTransition'](),this['_updateState'](this[_0x1b5f07(0x3a0)]['appendMutation'](_0xc3eeca)),this[_0x1b5f07(0x34f)]();}[_0x49e982(0x36b)](_0x15043b){const _0x3cd1e2=_0x49e982;if(!(_0x15043b[_0x3cd1e2(0x450)]<=this[_0x3cd1e2(0x466)][_0x3cd1e2(0x218)](this[_0x3cd1e2(0x220)]))){if(this[_0x3cd1e2(0x4a5)]){this[_0x3cd1e2(0x302)]['push'](_0x15043b);return;}this[_0x3cd1e2(0x3e2)](_0x15043b);}}[_0x49e982(0x2b9)](){const _0x42d2ed=_0x49e982;this[_0x42d2ed(0x302)][_0x42d2ed(0x293)](_0x376578=>this[_0x42d2ed(0x3e2)](_0x376578)),this[_0x42d2ed(0x302)]=[];}[_0x49e982(0x3e2)](_0x33a6b5){const _0x446fd5=_0x49e982;let _0x227159=this[_0x446fd5(0x344)]['interceptor'][_0x446fd5(0x1c8)](this[_0x446fd5(0x344)][_0x446fd5(0x4e1)][_0x446fd5(0x4be)]()[_0x446fd5(0x3dc)])(_0x33a6b5[_0x446fd5(0x3ca)],null)||_0x33a6b5[_0x446fd5(0x3ca)],_0x1551c9={..._0x33a6b5,'mutations':_0x227159};this[_0x446fd5(0x387)](),this[_0x446fd5(0x3eb)](this[_0x446fd5(0x3a0)]['onRemoteChangeset'](_0x1551c9)),this[_0x446fd5(0x34f)]();}[_0x49e982(0x4d9)](_0x450dd){const _0x1da6c9=_0x49e982;this[_0x1da6c9(0x387)](),this[_0x1da6c9(0x3eb)](this[_0x1da6c9(0x3a0)][_0x1da6c9(0x212)](_0x450dd)),this[_0x1da6c9(0x34f)]();}[_0x49e982(0x39a)](_0x199861){const _0x206ca8=_0x49e982;this[_0x206ca8(0x387)](),this[_0x206ca8(0x3eb)](this[_0x206ca8(0x3a0)][_0x206ca8(0x306)](_0x199861)),this[_0x206ca8(0x34f)]();}[_0x49e982(0x3c8)](_0x529b2d){const _0x3da368=_0x49e982;this[_0x3da368(0x387)](),this['_updateState'](this['_state']['onRemoteRetry'](_0x529b2d)),this[_0x3da368(0x34f)]();}[_0x49e982(0x396)](_0x9889e2){const _0x130746=_0x49e982;if(!(this[_0x130746(0x3a0)]instanceof _0x5ef596))throw TypeError(_0x130746(0x24c));let _0x4a1dc7=_0x9889e2[_0x130746(0x431)](_0x529136=>{const _0x3e6fee=_0x130746;let _0x4c86d7=this['_compressMutationService'][_0x3e6fee(0x4e1)][_0x3e6fee(0x1c8)](this['_compressMutationService'][_0x3e6fee(0x4e1)][_0x3e6fee(0x4be)]()[_0x3e6fee(0x3dc)])(_0x529136[_0x3e6fee(0x3ca)],null)||_0x529136[_0x3e6fee(0x3ca)];return{..._0x529136,'mutations':_0x4c86d7};});this['_lockTransition'](),this['_updateState'](this[_0x130746(0x3a0)][_0x130746(0x417)](_0x4a1dc7)),this[_0x130746(0x34f)]();}['_toggleOffline'](){const _0x1fa7ea=_0x49e982;this[_0x1fa7ea(0x387)](),this['_updateState'](this[_0x1fa7ea(0x3a0)][_0x1fa7ea(0x361)]()),this[_0x1fa7ea(0x34f)]();}['_toggleOnline'](_0x3b32a1=!0x1){const _0x134858=_0x49e982;this[_0x134858(0x387)](),this[_0x134858(0x3eb)](this['_state'][_0x134858(0x238)]()),this[_0x134858(0x34f)]();let _0xafc98e=this[_0x134858(0x3a0)];_0x3b32a1&&_0xafc98e instanceof _0x1c6422&&(this[_0x134858(0x387)](),this[_0x134858(0x3eb)](_0xafc98e[_0x134858(0x328)]()),this[_0x134858(0x34f)]());}async['_createInitialState'](){return new Promise(_0x4b6a0c=>{const _0x3d46d2=_0x5107;this[_0x3d46d2(0x22b)][_0x3d46d2(0x35f)][_0x3d46d2(0x349)]((0x0,_0x4d6dfb[_0x3d46d2(0x25d)])(0x1))[_0x3d46d2(0x478)](async _0x3bbd6a=>{const _0x4e17c3=_0x3d46d2;_0x4b6a0c(await this[_0x4e17c3(0x4a0)](_0x3bbd6a===0x3));});});}[_0x49e982(0x1b7)](){const _0xcb9fef=_0x49e982;let _0x150b39=this[_0xcb9fef(0x220)];return{'onStateChange':(_0xda4cd6,_0x15fa3f)=>{const _0x953918=_0xcb9fef;if(_0xda4cd6!==this[_0x953918(0x3a0)])throw Error(_0x953918(0x445)+_0xda4cd6[_0x953918(0x371)]+_0x953918(0x346)+_0x15fa3f[_0x953918(0x371)]+_0x953918(0x4e7)+this[_0x953918(0x3a0)][_0x953918(0x371)]);this[_0x953918(0x3eb)](_0x15fa3f);},'onSendChangeset':_0x4f6f3c=>{const _0x44b87f=_0xcb9fef;_0x4f6f3c[_0x44b87f(0x1db)]||(_0x4f6f3c[_0x44b87f(0x1db)]=this[_0x44b87f(0x364)],_0x4f6f3c[_0x44b87f(0x3af)]=++this[_0x44b87f(0x443)]);let _0x55d3c5={'eventID':_0x3f9d12[_0x44b87f(0x448)][_0x44b87f(0x1d9)],'data':{'unitID':_0x4f6f3c[_0x44b87f(0x220)],'unitType':this['_type'],'changeset':_0x4f6f3c,'memberID':this[_0x44b87f(0x22b)][_0x44b87f(0x322)]()}};this[_0x44b87f(0x22b)][_0x44b87f(0x439)](_0x55d3c5,this['unitID']);},'onMissingChangesets':({from:_0x438b6c,to:_0x467016})=>{const _0x905745=_0xcb9fef;this['_logService'][_0x905745(0x4ad)](_0x905745(0x315),'fetching\x20missing\x20changesets\x20from\x20'+_0x438b6c+_0x905745(0x483)+_0x467016);let _0x38a79c={'eventID':_0x3f9d12[_0x905745(0x448)][_0x905745(0x29b)],'data':{'unitID':_0x150b39,'unitType':this['_type'],'from':_0x438b6c,'to':_0x467016}};this[_0x905745(0x22b)]['send'](_0x38a79c,this['unitID']);}};}async['_createInitialStateImpl'](_0xc5113e){const _0xbccfe7=_0x49e982;var _0x4acc0b,_0x5b58e6,_0x2fddcc;let _0x12fc84=await((_0x4acc0b=this[_0xbccfe7(0x49e)])==null?void 0x0:_0x4acc0b[_0xbccfe7(0x423)](this[_0xbccfe7(0x220)])),_0x58d2ea=(_0x5b58e6=_0x12fc84==null?void 0x0:_0x12fc84[_0xbccfe7(0x3ca)])==null?[]:_0x5b58e6,_0x1ea1ce=(_0x2fddcc=_0x12fc84==null?void 0x0:_0x12fc84['awaitingChangeset'])==null?null:_0x2fddcc,_0x35d502=!!(_0x1ea1ce!=null&&_0x1ea1ce[_0xbccfe7(0x1db)])&&!!(_0x1ea1ce!=null&&_0x1ea1ce[_0xbccfe7(0x3af)]);this[_0xbccfe7(0x364)]=_0x35d502?_0x1ea1ce[_0xbccfe7(0x1db)]:(0x0,_0x3f9d12[_0xbccfe7(0x399)])(),this[_0xbccfe7(0x443)]=_0x35d502?_0x1ea1ce[_0xbccfe7(0x3af)]:0x0;let _0x1012e5=this[_0xbccfe7(0x220)];try{this[_0xbccfe7(0x434)](_0x1ea1ce,_0x58d2ea);}catch(_0x54e7db){this[_0xbccfe7(0x271)][_0xbccfe7(0x438)](_0x54e7db);}let _0x1ab4c4=this[_0xbccfe7(0x1b7)]();if(_0xc5113e){let _0x1deb51=_0x2290f(this['_injector'],_0x1012e5,this['_type'],_0x1ea1ce,_0x58d2ea,_0x1ab4c4);return _0x1deb51 instanceof _0x14ada3?_0x1deb51['_schedule']():(_0x1deb51 instanceof _0xc592c2||_0x1deb51 instanceof _0x4179f7)&&_0x1deb51[_0xbccfe7(0x37b)](),_0x1deb51;}return this[_0xbccfe7(0x268)][_0xbccfe7(0x4d4)](_0x5266ae,_0x1012e5,this['_type'],_0x1ea1ce,_0x58d2ea,_0x1ab4c4);}['_replayCachedMutations'](_0x14eafa,_0x4f26f1){const _0x4f3350=_0x49e982;var _0x482634,_0x24b172;let _0x5016d4=this[_0x4f3350(0x344)][_0x4f3350(0x4e1)]['fetchThroughInterceptors'](this[_0x4f3350(0x344)][_0x4f3350(0x4e1)]['getInterceptPoints']()[_0x4f3350(0x3dc)]);(_0x482634=_0x5016d4((_0x14eafa==null?void 0x0:_0x14eafa['mutations'])||[],null))==null||_0x482634['forEach'](_0x113e34=>this[_0x4f3350(0x2d1)]['executeCommand'](_0x113e34['id'],_0x113e34[_0x4f3350(0x44f)])),(_0x24b172=_0x5016d4(_0x4f26f1||[],null))==null||_0x24b172[_0x4f3350(0x293)](_0x9e6c82=>this[_0x4f3350(0x2d1)][_0x4f3350(0x400)](_0x9e6c82['id'],_0x9e6c82[_0x4f3350(0x44f)]));}};_0x58fb9d=_0x433d1e([_0x25be6b(0x3,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0[_0x49e982(0x2fe)])),_0x25be6b(0x4,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x3f9d12[_0x49e982(0x208)])),_0x25be6b(0x5,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0['LocaleService'])),_0x25be6b(0x6,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x3f9d12[_0x49e982(0x452)])),_0x25be6b(0x7,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x4d282d)),_0x25be6b(0x8,_0x2ef5c0[_0x49e982(0x20c)]),_0x25be6b(0x9,_0x2ef5c0[_0x49e982(0x342)]),_0x25be6b(0xa,_0x2ef5c0[_0x49e982(0x44b)]),_0x25be6b(0xb,_0x2ef5c0['IPermissionService']),_0x25be6b(0xc,(0x0,_0x2ef5c0[_0x49e982(0x4bf)])(_0xc4da01)),_0x25be6b(0xd,(0x0,_0x2ef5c0[_0x49e982(0x4bf)])(_0x497ec1))],_0x58fb9d);let _0x51fa4a=class extends _0x58fb9d{constructor(_0x4307d5,_0x493ccf,_0x6ee250,_0x209450,_0xa18a93,_0x32cc7e,_0x4bdcd7,_0x34dc24,_0x105f6e,_0x261394,_0x461e75,_0x23bb3a,_0x46d956,_0x5977b3,_0x550f77){const _0x7be76f=_0x49e982;super(_0x4307d5,_0x6ee250,_0x493ccf,_0x209450,_0xa18a93,_0x32cc7e,_0x4bdcd7,_0x34dc24,_0x105f6e,_0x261394,_0x461e75,_0x23bb3a,_0x5977b3,_0x550f77),this[_0x7be76f(0x220)]=_0x4307d5,this['type']=_0x493ccf,this[_0x7be76f(0x245)]=_0x46d956,_0xa76697(this,_0x7be76f(0x3d3),null);}[_0x49e982(0x33b)](_0xff3b11){const _0x2d2841=_0x49e982;this[_0x2d2841(0x3d3)]=_0xff3b11;}['dispose'](){const _0x254144=_0x49e982;this['_handlerCallback']=null,super[_0x254144(0x247)]();}[_0x49e982(0x1b7)](){const _0xf7a516=_0x49e982;let _0x58eeb7=super['_createHandler']();return _0x58eeb7['onTransformIME']=_0x3c0016=>{const _0x502911=_0x5107;var _0x13fc42,_0x116f57;return(_0x13fc42=this[_0x502911(0x3d3)])==null||(_0x116f57=_0x13fc42[_0x502911(0x4b0)])==null?void 0x0:_0x116f57[_0x502911(0x339)](_0x13fc42,_0x3c0016);},_0x58eeb7['onTransformState']=_0x58d129=>{const _0x208093=_0x5107;var _0x4b1077,_0x4ef090;return(_0x4b1077=this[_0x208093(0x3d3)])==null||(_0x4ef090=_0x4b1077[_0x208093(0x482)])==null?void 0x0:_0x4ef090[_0x208093(0x339)](_0x4b1077,_0x58d129);},_0x58eeb7[_0xf7a516(0x367)]=_0x350969=>{const _0x3ec959=_0xf7a516;var _0x2674e5,_0x410eaa;return(_0x2674e5=this['_handlerCallback'])==null||(_0x410eaa=_0x2674e5[_0x3ec959(0x367)])==null?void 0x0:_0x410eaa[_0x3ec959(0x339)](_0x2674e5,_0x350969);},_0x58eeb7[_0xf7a516(0x1eb)]=_0x5248d1=>{const _0x28f5c2=_0xf7a516;var _0x248d86,_0x157f84;return(_0x248d86=this[_0x28f5c2(0x3d3)])==null||(_0x157f84=_0x248d86[_0x28f5c2(0x1eb)])==null?void 0x0:_0x157f84['call'](_0x248d86,_0x5248d1);},_0x58eeb7[_0xf7a516(0x32e)]=_0x3b4a92=>{const _0x50fb0a=_0xf7a516;var _0x8bd5de,_0x16ca48,_0x3bd3e7;return(_0x8bd5de=(_0x16ca48=this['_handlerCallback'])==null||(_0x3bd3e7=_0x16ca48[_0x50fb0a(0x32e)])==null?void 0x0:_0x3bd3e7[_0x50fb0a(0x339)](_0x16ca48,_0x3b4a92))==null?_0x3b4a92:_0x8bd5de;},_0x58eeb7['onTransformRemoteChangesetByStateCache']=_0x36dbec=>{const _0x4cc63a=_0xf7a516;var _0x129d8a,_0x458d5c,_0x252f20;return(_0x129d8a=(_0x458d5c=this['_handlerCallback'])==null||(_0x252f20=_0x458d5c[_0x4cc63a(0x4a7)])==null?void 0x0:_0x252f20[_0x4cc63a(0x339)](_0x458d5c,_0x36dbec))==null?_0x36dbec:_0x129d8a;},_0x58eeb7;}async[_0x49e982(0x2fc)](){const _0x494dba=_0x49e982;if(this[_0x494dba(0x245)]==null)throw Error('[DocCollaborationEntity]:\x20DocStateChangeManagerService\x20is\x20required.\x20Register\x20UniverDocsPlugin\x20before\x20collaboration.');let _0x787a0d=await super[_0x494dba(0x2fc)]();return this[_0x494dba(0x4e6)](this['_docStateChangeManagerService'][_0x494dba(0x2fa)][_0x494dba(0x478)](_0x33d523=>{const _0x96e514=_0x494dba;if(_0x33d523==null||_0x33d523['unitId']!==this[_0x96e514(0x220)])return;let {commandId:_0x7e1491,redoState:_0x4872fc,unitId:_0x1a9327}=_0x33d523,_0x188c58={'id':_0x7e1491,'type':_0x2ef5c0[_0x96e514(0x347)][_0x96e514(0x32b)],'params':{'unitId':_0x1a9327,'actions':_0x4872fc['actions'],'textRanges':null}};this[_0x96e514(0x45d)](_0x188c58);})),this['disposeWithMe'](this[_0x494dba(0x2d1)][_0x494dba(0x352)]((_0x29c5ac,_0x417b97)=>{const _0x227686=_0x494dba;if(_0x29c5ac[_0x227686(0x41b)]!==_0x2ef5c0['CommandType']['MUTATION']||_0x417b97!=null&&_0x417b97[_0x227686(0x3ac)]||_0x417b97!=null&&_0x417b97[_0x227686(0x2ae)]||_0x29c5ac['id']===_0x894f55[_0x227686(0x426)]['id'])return;let _0x22e525=_0x29c5ac['params'];if((_0x22e525==null?void 0x0:_0x22e525[_0x227686(0x30c)])!==this['unitID'])return;let _0x4fa1f4=_0x29c5ac,_0x29f486=this[_0x227686(0x344)][_0x227686(0x4e1)][_0x227686(0x1c8)](this[_0x227686(0x344)]['interceptor']['getInterceptPoints']()[_0x227686(0x25e)])([_0x4fa1f4],this['_univerInstanceService'])||[_0x4fa1f4];this[_0x227686(0x45d)](_0x29f486[0x0]);})),_0x787a0d;}};_0x51fa4a=_0x433d1e([_0x25be6b(0x3,(0x0,_0x2ef5c0['Inject'])(_0x2ef5c0[_0x49e982(0x2fe)])),_0x25be6b(0x4,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x3f9d12[_0x49e982(0x208)])),_0x25be6b(0x5,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0['LocaleService'])),_0x25be6b(0x6,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x3f9d12[_0x49e982(0x452)])),_0x25be6b(0x7,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x4d282d)),_0x25be6b(0x8,_0x2ef5c0['IUniverInstanceService']),_0x25be6b(0x9,_0x2ef5c0[_0x49e982(0x342)]),_0x25be6b(0xa,_0x2ef5c0[_0x49e982(0x44b)]),_0x25be6b(0xb,_0x2ef5c0[_0x49e982(0x37e)]),_0x25be6b(0xc,(0x0,_0x2ef5c0['Optional'])(_0x894f55[_0x49e982(0x3e1)])),_0x25be6b(0xd,(0x0,_0x2ef5c0[_0x49e982(0x4bf)])(_0xc4da01)),_0x25be6b(0xe,(0x0,_0x2ef5c0[_0x49e982(0x4bf)])(_0x497ec1))],_0x51fa4a);let _0x4781ef=class extends _0x58fb9d{constructor(_0x361615,_0x391eb6,_0x5d982e,_0x539c42,_0x390d42,_0x47bf62,_0x118dba,_0x1f183e,_0x157755,_0xc9511e,_0x33e304,_0x4a5acf,_0x4fbf72,_0x531981){super(_0x361615,_0x5d982e,_0x391eb6,_0x539c42,_0x390d42,_0x47bf62,_0x118dba,_0x1f183e,_0x157755,_0xc9511e,_0x33e304,_0x4a5acf,_0x4fbf72,_0x531981),this['unitID']=_0x361615,this['type']=_0x391eb6;}async['_init'](){const _0x4a67e1=_0x49e982;let _0x458fe3=await super[_0x4a67e1(0x2fc)]();return this['disposeWithMe'](this[_0x4a67e1(0x2d1)][_0x4a67e1(0x352)]((_0xfd9b9d,_0x38ebac)=>{const _0x3e55e5=_0x4a67e1;if(_0xfd9b9d[_0x3e55e5(0x41b)]!==_0x2ef5c0[_0x3e55e5(0x347)][_0x3e55e5(0x32b)]||_0x38ebac!=null&&_0x38ebac['fromCollab']||_0x38ebac!=null&&_0x38ebac[_0x3e55e5(0x2ae)]||_0xfd9b9d['id']!==_0x31678c[_0x3e55e5(0x26d)]['id'])return;let _0x38b3c5=_0xfd9b9d[_0x3e55e5(0x44f)];if((_0x38b3c5==null?void 0x0:_0x38b3c5['unitId'])!==this[_0x3e55e5(0x220)])return;let _0x131cee=_0xfd9b9d,_0x57ed8d=this['_compressMutationService'][_0x3e55e5(0x4e1)][_0x3e55e5(0x1c8)](this['_compressMutationService']['interceptor'][_0x3e55e5(0x4be)]()[_0x3e55e5(0x25e)])([_0x131cee],this[_0x3e55e5(0x4cb)])||[_0x131cee];this['_onLocalMutation'](_0x57ed8d[0x0]);})),_0x458fe3;}};_0x4781ef=_0x433d1e([_0x25be6b(0x3,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0[_0x49e982(0x2fe)])),_0x25be6b(0x4,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x3f9d12['CompressMutationService'])),_0x25be6b(0x5,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0['LocaleService'])),_0x25be6b(0x6,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x3f9d12[_0x49e982(0x452)])),_0x25be6b(0x7,(0x0,_0x2ef5c0['Inject'])(_0x4d282d)),_0x25be6b(0x8,_0x2ef5c0[_0x49e982(0x20c)]),_0x25be6b(0x9,_0x2ef5c0[_0x49e982(0x342)]),_0x25be6b(0xa,_0x2ef5c0['ICommandService']),_0x25be6b(0xb,_0x2ef5c0[_0x49e982(0x37e)]),_0x25be6b(0xc,(0x0,_0x2ef5c0[_0x49e982(0x4bf)])(_0xc4da01)),_0x25be6b(0xd,(0x0,_0x2ef5c0[_0x49e982(0x4bf)])(_0x497ec1))],_0x4781ef);let _0x20b584=class extends _0x58fb9d{constructor(_0x274e0f,_0x29991f,_0xdbcda0,_0x369746,_0x289545,_0xaf5f91,_0x55a9cc,_0x2ccb21,_0x5ea471,_0x480092,_0x3c095f,_0x51676,_0x552fc7,_0x3e813b,_0x4b0293){const _0x534f77=_0x49e982;super(_0x274e0f,_0xdbcda0,_0x29991f,_0x369746,_0x289545,_0xaf5f91,_0x55a9cc,_0x5ea471,_0x480092,_0x3c095f,_0x51676,_0x552fc7,_0x3e813b,_0x4b0293),this[_0x534f77(0x220)]=_0x274e0f,this[_0x534f77(0x41b)]=_0x29991f,this['_sheetTransformSelectionsService']=_0x2ccb21;}[_0x49e982(0x1b7)](){const _0x31e21e=_0x49e982;let _0x2e6a25=super[_0x31e21e(0x1b7)]();return _0x2e6a25[_0x31e21e(0x367)]=_0x52a78a=>this[_0x31e21e(0x3e5)][_0x31e21e(0x26a)](_0x52a78a),_0x2e6a25;}async[_0x49e982(0x2fc)](){const _0x1dd67e=_0x49e982;let _0x23a59b=await super[_0x1dd67e(0x2fc)]();return this['disposeWithMe'](this['_commandService'][_0x1dd67e(0x352)]((_0xa45e3,_0x3aa49e)=>{const _0x514bfd=_0x1dd67e;if(_0xa45e3[_0x514bfd(0x41b)]!==_0x2ef5c0[_0x514bfd(0x347)]['MUTATION']||_0x3aa49e!=null&&_0x3aa49e['fromCollab']||_0x3aa49e!=null&&_0x3aa49e[_0x514bfd(0x2ae)])return;let _0x1cdf0a=_0xa45e3[_0x514bfd(0x44f)];if((_0x1cdf0a==null?void 0x0:_0x1cdf0a[_0x514bfd(0x30c)])!==this[_0x514bfd(0x220)])return;let _0x1cfedd=_0xa45e3,_0x5896ea=this[_0x514bfd(0x344)][_0x514bfd(0x4e1)][_0x514bfd(0x1c8)](this[_0x514bfd(0x344)][_0x514bfd(0x4e1)][_0x514bfd(0x4be)]()['COMPRESS_MUTATION_SEND'])([_0x1cfedd],this[_0x514bfd(0x4cb)])||[_0x1cfedd];this[_0x514bfd(0x45d)](_0x5896ea[0x0]);})),_0x23a59b;}};_0x20b584=_0x433d1e([_0x25be6b(0x3,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0[_0x49e982(0x2fe)])),_0x25be6b(0x4,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x3f9d12[_0x49e982(0x208)])),_0x25be6b(0x5,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0[_0x49e982(0x37d)])),_0x25be6b(0x6,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x3f9d12[_0x49e982(0x452)])),_0x25be6b(0x7,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x510d83)),_0x25be6b(0x8,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x4d282d)),_0x25be6b(0x9,_0x2ef5c0[_0x49e982(0x20c)]),_0x25be6b(0xa,_0x2ef5c0[_0x49e982(0x342)]),_0x25be6b(0xb,_0x2ef5c0[_0x49e982(0x44b)]),_0x25be6b(0xc,_0x2ef5c0[_0x49e982(0x37e)]),_0x25be6b(0xd,(0x0,_0x2ef5c0[_0x49e982(0x4bf)])(_0xc4da01)),_0x25be6b(0xe,(0x0,_0x2ef5c0[_0x49e982(0x4bf)])(_0x497ec1))],_0x20b584);let _0x2f4a02=class extends _0x58fb9d{constructor(_0x57a099,_0x2e3beb,_0x36200c,_0x639203,_0x1e12f2,_0x1d5c49,_0x3bbb0c,_0x1d930e,_0x45ee6a,_0x13252e,_0x2c3d3f,_0x17a1fb,_0x5b39d5,_0x242595){const _0x2c5824=_0x49e982;super(_0x57a099,_0x36200c,_0x2e3beb,_0x639203,_0x1e12f2,_0x1d5c49,_0x3bbb0c,_0x1d930e,_0x45ee6a,_0x13252e,_0x2c3d3f,_0x17a1fb,_0x5b39d5,_0x242595),this[_0x2c5824(0x220)]=_0x57a099,this[_0x2c5824(0x41b)]=_0x2e3beb;}async[_0x49e982(0x2fc)](){const _0x18e714=_0x49e982;let _0x541c13=await super[_0x18e714(0x2fc)]();return this['disposeWithMe'](this[_0x18e714(0x2d1)][_0x18e714(0x352)]((_0x16f6aa,_0x49a987)=>{const _0x50ac35=_0x18e714;if(_0x16f6aa[_0x50ac35(0x41b)]!==_0x2ef5c0['CommandType'][_0x50ac35(0x32b)]||_0x49a987!=null&&_0x49a987[_0x50ac35(0x3ac)]||_0x49a987!=null&&_0x49a987[_0x50ac35(0x2ae)])return;let _0x484bbd=_0x16f6aa['params'];if((_0x484bbd==null?void 0x0:_0x484bbd[_0x50ac35(0x30c)])!==this['unitID'])return;let _0x455595=_0x16f6aa,_0x24fb00=this['_compressMutationService']['interceptor']['fetchThroughInterceptors'](this[_0x50ac35(0x344)]['interceptor']['getInterceptPoints']()[_0x50ac35(0x25e)])([_0x455595],this[_0x50ac35(0x4cb)])||[_0x455595];this[_0x50ac35(0x45d)](_0x24fb00[0x0]);})),_0x541c13;}};_0x2f4a02=_0x433d1e([_0x25be6b(0x3,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0[_0x49e982(0x2fe)])),_0x25be6b(0x4,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x3f9d12[_0x49e982(0x208)])),_0x25be6b(0x5,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0['LocaleService'])),_0x25be6b(0x6,(0x0,_0x2ef5c0['Inject'])(_0x3f9d12[_0x49e982(0x452)])),_0x25be6b(0x7,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x4d282d)),_0x25be6b(0x8,_0x2ef5c0['IUniverInstanceService']),_0x25be6b(0x9,_0x2ef5c0[_0x49e982(0x342)]),_0x25be6b(0xa,_0x2ef5c0[_0x49e982(0x44b)]),_0x25be6b(0xb,_0x2ef5c0['IPermissionService']),_0x25be6b(0xc,(0x0,_0x2ef5c0['Optional'])(_0xc4da01)),_0x25be6b(0xd,(0x0,_0x2ef5c0[_0x49e982(0x4bf)])(_0x497ec1))],_0x2f4a02);let _0x935f0b=(0x0,_0x2ef5c0[_0x49e982(0x3cc)])('univer-pro.collaboration-client.network-condition.service');function _0x5f520f(_0x5d58b8){const _0xaf95f9=_0x49e982;let _0x483388=_0x5d58b8['data'],_0x29da56=JSON[_0xaf95f9(0x499)](_0x483388);switch(_0x29da56[_0xaf95f9(0x263)]){case _0x514d55[_0xaf95f9(0x457)]['HEARTBEAT']:case _0x514d55[_0xaf95f9(0x457)]['HELLO']:{let _0xe71046=_0x29da56[_0xaf95f9(0x2b1)];return{..._0x29da56,'data':_0xe71046,'cmd':_0x29da56[_0xaf95f9(0x263)]};}case _0x514d55[_0xaf95f9(0x457)][_0xaf95f9(0x398)]:{let _0x325111=_0x29da56[_0xaf95f9(0x458)];return{..._0x29da56,'data':_0x325111,'cmd':_0x29da56[_0xaf95f9(0x263)]};}case _0x514d55[_0xaf95f9(0x457)][_0xaf95f9(0x294)]:{let _0x4935fc=_0x29da56[_0xaf95f9(0x32a)];switch(_0x4935fc[_0xaf95f9(0x469)]){case _0x3f9d12['CollaborationEvent'][_0xaf95f9(0x250)]:var _0x3da2fc;return{..._0x29da56,'data':{..._0x4935fc,'data':(_0x3da2fc=_0x4935fc[_0xaf95f9(0x4b9)])==null?void 0x0:_0x3da2fc['cs']},'cmd':_0x29da56[_0xaf95f9(0x263)]};case _0x3f9d12[_0xaf95f9(0x448)]['CHANGESET_ACK']:var _0xb94286;return{..._0x29da56,'data':{..._0x4935fc,'data':(_0xb94286=_0x4935fc[_0xaf95f9(0x272)])==null?void 0x0:_0xb94286['cs']},'cmd':_0x29da56['cmd']};case _0x3f9d12[_0xaf95f9(0x448)][_0xaf95f9(0x406)]:var _0x43f048;return{..._0x29da56,'data':{..._0x4935fc,'data':(_0x43f048=_0x4935fc[_0xaf95f9(0x38a)])==null?void 0x0:_0x43f048['cs']},'cmd':_0x29da56[_0xaf95f9(0x263)]};case _0x3f9d12[_0xaf95f9(0x448)][_0xaf95f9(0x4b2)]:var _0x50caa3;return{..._0x29da56,'data':{..._0x4935fc,'data':(_0x50caa3=_0x4935fc[_0xaf95f9(0x3d7)])==null?void 0x0:_0x50caa3['cs']},'cmd':_0x29da56[_0xaf95f9(0x263)]};case _0x3f9d12[_0xaf95f9(0x448)][_0xaf95f9(0x3d2)]:var _0x104faf;return{..._0x29da56,'data':{..._0x4935fc,'data':(_0x104faf=_0x4935fc[_0xaf95f9(0x332)])==null?void 0x0:_0x104faf['cs']},'cmd':_0x29da56[_0xaf95f9(0x263)]};case _0x3f9d12[_0xaf95f9(0x448)][_0xaf95f9(0x489)]:return{..._0x29da56,'data':{..._0x4935fc,'data':_0x4935fc[_0xaf95f9(0x39f)]},'cmd':_0x29da56[_0xaf95f9(0x263)]};case _0x3f9d12[_0xaf95f9(0x448)][_0xaf95f9(0x222)]:return{..._0x29da56,'data':{..._0x4935fc,'data':_0x4935fc['joinEvent']},'cmd':_0x29da56['cmd']};case _0x3f9d12[_0xaf95f9(0x448)][_0xaf95f9(0x31c)]:return{..._0x29da56,'data':{..._0x4935fc,'data':_0x4935fc[_0xaf95f9(0x43b)]},'cmd':_0x29da56['cmd']};case _0x3f9d12[_0xaf95f9(0x448)][_0xaf95f9(0x1e2)]:return{..._0x29da56,'data':{..._0x4935fc,'data':_0x4935fc['liveShareNewHost']},'cmd':_0x29da56['cmd']};case _0x3f9d12['CollaborationEvent'][_0xaf95f9(0x2d3)]:case _0x3f9d12[_0xaf95f9(0x448)]['LIVESHARE_OPERATION']:return{..._0x29da56,'data':{..._0x4935fc,'data':_0x4935fc[_0xaf95f9(0x2c0)]},'cmd':_0x29da56[_0xaf95f9(0x263)]};case _0x3f9d12[_0xaf95f9(0x448)][_0xaf95f9(0x258)]:return{..._0x29da56,'data':{..._0x4935fc,'data':_0x4935fc['liveShareNewHost']},'cmd':_0x29da56['cmd']};case _0x3f9d12[_0xaf95f9(0x448)][_0xaf95f9(0x22e)]:return{..._0x29da56,'data':_0x4935fc,'cmd':_0x29da56[_0xaf95f9(0x263)]};case _0x3f9d12['CollaborationEvent'][_0xaf95f9(0x35b)]:return{..._0x29da56,'data':{..._0x4935fc,'data':_0x4935fc['commentUpdateEvent']},'cmd':_0x29da56[_0xaf95f9(0x263)]};case _0x3f9d12['CollaborationEvent']['UPDATE_PERMISSION_OBJ']:return{..._0x29da56,'data':{..._0x4935fc,'data':_0x4935fc[_0xaf95f9(0x429)]},'cmd':_0x29da56[_0xaf95f9(0x263)]};case _0x3f9d12[_0xaf95f9(0x448)][_0xaf95f9(0x262)]:return{..._0x29da56,'data':{..._0x4935fc,'data':_0x4935fc['shouldCloseConn']},'cmd':_0x29da56['cmd']};case _0x3f9d12[_0xaf95f9(0x448)][_0xaf95f9(0x4ba)]:return{..._0x29da56,'data':{..._0x4935fc,'data':_0x4935fc[_0xaf95f9(0x1c0)]},'cmd':_0x29da56[_0xaf95f9(0x263)]};default:return _0x29da56;}}default:return _0x29da56;}}function _0x4ce289(_0x40bfb9){const _0x114d56=_0x49e982;switch(_0x40bfb9['cmd']){case _0x514d55['CombCmd'][_0x114d56(0x4da)]:case _0x514d55['CombCmd'][_0x114d56(0x27e)]:return JSON['stringify']({'cmd':_0x40bfb9[_0x114d56(0x263)],'routeKey':_0x40bfb9[_0x114d56(0x41f)]});case _0x514d55['CombCmd'][_0x114d56(0x4e9)]:{let _0x1b2e7a;switch(_0x40bfb9[_0x114d56(0x259)][_0x114d56(0x469)]){case _0x3f9d12[_0x114d56(0x448)][_0x114d56(0x489)]:_0x1b2e7a={'eventID':_0x3f9d12[_0x114d56(0x448)][_0x114d56(0x489)],'updateCursorEvent':_0x40bfb9['data'][_0x114d56(0x259)]};break;case _0x3f9d12[_0x114d56(0x448)][_0x114d56(0x31c)]:_0x1b2e7a={'eventID':_0x3f9d12[_0x114d56(0x448)][_0x114d56(0x31c)],'leaveEvent':_0x40bfb9[_0x114d56(0x259)][_0x114d56(0x259)]};break;case _0x3f9d12[_0x114d56(0x448)][_0x114d56(0x222)]:_0x1b2e7a={'eventID':_0x3f9d12[_0x114d56(0x448)][_0x114d56(0x222)],'joinEvent':_0x40bfb9[_0x114d56(0x259)][_0x114d56(0x259)]};break;case _0x3f9d12[_0x114d56(0x448)]['LIVESHARE_NEW_HOST']:_0x1b2e7a={'eventID':_0x3f9d12['CollaborationEvent'][_0x114d56(0x1e2)],'liveShareNewHost':_0x40bfb9['data'][_0x114d56(0x259)]};break;case _0x3f9d12[_0x114d56(0x448)][_0x114d56(0x23a)]:_0x1b2e7a={'eventID':_0x3f9d12[_0x114d56(0x448)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x40bfb9['data'][_0x114d56(0x259)]};break;case _0x3f9d12['CollaborationEvent']['LIVESHARE_TERMINATE']:_0x1b2e7a={'eventID':_0x3f9d12['CollaborationEvent'][_0x114d56(0x258)],'liveShareTerminate':_0x40bfb9[_0x114d56(0x259)][_0x114d56(0x259)]};break;case _0x3f9d12[_0x114d56(0x448)]['LIVESHARE_REQUEST_HOST']:_0x1b2e7a={'eventID':_0x3f9d12['CollaborationEvent'][_0x114d56(0x1b1)],'liveShareRequestHost':_0x40bfb9[_0x114d56(0x259)][_0x114d56(0x259)]};break;case _0x3f9d12[_0x114d56(0x448)][_0x114d56(0x2d3)]:_0x1b2e7a={'eventID':_0x3f9d12[_0x114d56(0x448)][_0x114d56(0x2d3)]};break;default:_0x1b2e7a={'eventID':_0x40bfb9[_0x114d56(0x259)][_0x114d56(0x469)]};}return JSON[_0x114d56(0x205)]({'cmd':_0x40bfb9['cmd'],'routeKey':_0x40bfb9['routeKey'],'collaMsg':_0x1b2e7a});}case _0x514d55[_0x114d56(0x457)]['JOIN']:return JSON['stringify']({'cmd':_0x40bfb9[_0x114d56(0x263)],'routeKey':_0x40bfb9[_0x114d56(0x41f)],'joinReq':_0x40bfb9[_0x114d56(0x259)]});case _0x514d55[_0x114d56(0x457)]['LEAVE']:return JSON[_0x114d56(0x205)]({'cmd':_0x40bfb9[_0x114d56(0x263)],'routeKey':_0x40bfb9['routeKey'],'leaveReq':_0x40bfb9[_0x114d56(0x259)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}let _0x5902c5=(0x0,_0x2ef5c0[_0x49e982(0x3cc)])('univer-pro.collaboration-client-socket-service');function _0x5dbea5(_0x135c00,_0x64271,_0x4b236b){const _0x59e961=_0x49e982;return _0x135c00+'/'+_0x64271+'/unit/'+_0x4b236b+_0x59e961(0x392);}let _0x38b88a=class extends _0x2ef5c0[_0x49e982(0x39c)]{constructor(_0x506726,_0x16f11b,_0x9c9a64,_0x3b1908,_0x41a37c){const _0x547ced=_0x49e982;super(),this[_0x547ced(0x268)]=_0x506726,this['_httpService']=_0x16f11b,this[_0x547ced(0x28b)]=_0x9c9a64,this[_0x547ced(0x271)]=_0x3b1908,this[_0x547ced(0x446)]=_0x41a37c;}[_0x49e982(0x383)](_0x5db2cb){const _0x5aedd6=_0x49e982;let _0xc8e950=this[_0x5aedd6(0x268)][_0x5aedd6(0x203)](_0xa3a4ef[_0x5aedd6(0x3d5)]);if(!_0xc8e950)throw Error(_0x5aedd6(0x38d));let _0x402ffc=_0xc8e950[_0x5aedd6(0x1f7)](_0x5db2cb);if(!_0x402ffc)throw Error(_0x5aedd6(0x2d2));let _0x35e704=new _0x2ef5c0[(_0x5aedd6(0x45f))](),_0x1e808c=new _0x4d6dfb[(_0x5aedd6(0x235))]();_0x35e704[_0x5aedd6(0x3f6)](_0x402ffc[_0x5aedd6(0x362)][_0x5aedd6(0x478)](_0x533212=>_0x1e808c['next'](_0x533212))),_0x35e704[_0x5aedd6(0x3f6)]((0x0,_0x2ef5c0['toDisposable'])(()=>_0x1e808c[_0x5aedd6(0x4d8)]()));let _0x49d041=new _0x4d6dfb['Subject']();_0x35e704['add'](_0x402ffc[_0x5aedd6(0x26c)][_0x5aedd6(0x478)](_0xc21866=>_0x49d041['next'](_0xc21866))),_0x35e704[_0x5aedd6(0x3f6)]((0x0,_0x2ef5c0[_0x5aedd6(0x461)])(()=>_0x49d041[_0x5aedd6(0x4d8)]()));let _0x5902e1=new _0x4d6dfb['Subject']();_0x35e704['add'](_0x402ffc[_0x5aedd6(0x26e)][_0x5aedd6(0x478)](_0x552975=>{const _0x3104c5=_0x5aedd6;let _0x104dbc=_0x5f520f(_0x552975);_0x5902e1[_0x3104c5(0x368)](_0x104dbc);})),_0x35e704['add']((0x0,_0x2ef5c0[_0x5aedd6(0x461)])(()=>_0x5902e1[_0x5aedd6(0x4d8)]()));let _0x406a93,_0x2c2449=()=>{const _0xd98071=_0x5aedd6;_0x49d041[_0xd98071(0x368)](new Event('connection\x20error')),_0x1e808c['next'](new Event(_0xd98071(0x273))),_0x406a93[_0xd98071(0x337)]();};return _0x406a93={'memberID':'','close$':_0x1e808c[_0x5aedd6(0x21d)](),'error$':_0x49d041['asObservable'](),'open$':_0x402ffc[_0x5aedd6(0x1fb)],'message$':_0x5902e1['asObservable'](),'send':_0x2780c2=>{const _0x4f79dc=_0x5aedd6;if(_0x2780c2[_0x4f79dc(0x263)]===_0x514d55[_0x4f79dc(0x457)][_0x4f79dc(0x4e9)]){if(_0x2780c2[_0x4f79dc(0x259)][_0x4f79dc(0x469)]===_0x3f9d12[_0x4f79dc(0x448)][_0x4f79dc(0x1d9)]){this[_0x4f79dc(0x3c7)](_0x406a93,_0x2780c2['data'])[_0x4f79dc(0x2a7)](_0x25d460=>{const _0x384db7=_0x4f79dc;this['_logService'][_0x384db7(0x438)](_0x25d460),_0x2c2449();});return;}if(_0x2780c2[_0x4f79dc(0x259)][_0x4f79dc(0x469)]===_0x3f9d12['CollaborationEvent'][_0x4f79dc(0x29b)]){let _0x2141de=_0x2780c2[_0x4f79dc(0x259)];this['_fetchMissChangesets'](_0x2141de)[_0x4f79dc(0x1d1)](_0x2d036a=>{const _0x2050bc=_0x4f79dc;_0x5902e1[_0x2050bc(0x368)]({'cmd':_0x514d55[_0x2050bc(0x457)]['RECV'],'code':_0x514d55[_0x2050bc(0x38c)]['OK'],'routeKey':_0x2141de[_0x2050bc(0x259)][_0x2050bc(0x220)],'routeType':'','data':{'eventID':_0x3f9d12[_0x2050bc(0x448)][_0x2050bc(0x2ea)],'data':{'changesets':_0x2d036a}}});})[_0x4f79dc(0x2a7)](_0xd9f412=>{const _0x5355f4=_0x4f79dc;this['_logService'][_0x5355f4(0x438)](_0xd9f412),_0x2c2449();});return;}}_0x402ffc[_0x4f79dc(0x439)](_0x4ce289(_0x2780c2));},'close':()=>{const _0x50f288=_0x5aedd6;_0x402ffc[_0x50f288(0x337)](),_0x35e704['dispose']();}},_0x406a93;}async[_0x49e982(0x3c7)](_0x203338,_0x1c8e9c){const _0x4c3a3d=_0x49e982;var _0x51f3a4;let {unitType:_0x55d484,unitID:_0x420dc6,changeset:_0x54c2ae}=_0x1c8e9c[_0x4c3a3d(0x259)],_0x56929b={'unitID':_0x420dc6,'memberID':_0x203338[_0x4c3a3d(0x3ec)],'type':_0x55d484,'changeset':(0x0,_0x3f9d12[_0x4c3a3d(0x1cf)])(_0x54c2ae)},_0x5e0be2=this[_0x4c3a3d(0x28b)][_0x4c3a3d(0x462)](_0x138b5f),_0x3052a9=_0x5dbea5((_0x51f3a4=_0x5e0be2==null?void 0x0:_0x5e0be2[_0x4c3a3d(0x44c)])==null?'/universer-api/comb':_0x51f3a4,_0x55d484,_0x420dc6);try{await this[_0x4c3a3d(0x1af)][_0x4c3a3d(0x4e3)](_0x3052a9,{'body':_0x56929b});}catch(_0x46620a){throw this[_0x4c3a3d(0x271)][_0x4c3a3d(0x438)]('[CollaborationSession]','submit\x20changeset\x20error!'),_0x46620a;}}async['_fetchMissChangesets'](_0xabeb96){const _0x8ed428=_0x49e982;let {unitID:_0x815b3c,from:_0x424bb9,to:_0x461310,unitType:_0x12bca1}=_0xabeb96[_0x8ed428(0x259)];return(await this['_snapshotServerService'][_0x8ed428(0x2da)]({'metadata':void 0x0},{'unitID':_0x815b3c,'type':_0x12bca1,'from':_0x424bb9,'to':_0x461310}))[_0x8ed428(0x3b8)][_0x8ed428(0x431)](_0x1bb0fa=>((_0x1bb0fa[_0x8ed428(0x3ca)]===null||_0x1bb0fa['mutations']===void 0x0)&&(_0x1bb0fa['mutations']=[]),_0x1bb0fa));}};_0x38b88a=_0x433d1e([_0x25be6b(0x0,(0x0,_0x2ef5c0['Inject'])(_0x2ef5c0[_0x49e982(0x2fe)])),_0x25be6b(0x1,(0x0,_0x2ef5c0['Inject'])(_0xa3a4ef['HTTPService'])),_0x25be6b(0x2,_0x2ef5c0['IConfigService']),_0x25be6b(0x3,_0x2ef5c0[_0x49e982(0x342)]),_0x25be6b(0x4,_0x3f9d12[_0x49e982(0x3f2)])],_0x38b88a);let _0x429482=class extends _0x2ef5c0[_0x49e982(0x39c)]{get[_0x49e982(0x297)](){const _0x1c0921=_0x49e982;return this['_socket$'][_0x1c0921(0x1ad)]();}constructor(_0x4a03ac,_0x440cd4,_0x484d13,_0x1b1121,_0x8b34fd,_0x285371){const _0x6eeae5=_0x49e982;super(),this[_0x6eeae5(0x268)]=_0x4a03ac,this[_0x6eeae5(0x271)]=_0x440cd4,this['_configService']=_0x484d13,this[_0x6eeae5(0x3d6)]=_0x1b1121,this[_0x6eeae5(0x481)]=_0x8b34fd,this[_0x6eeae5(0x3cd)]=_0x285371,_0xa76697(this,_0x6eeae5(0x227),new _0x4d6dfb[(_0x6eeae5(0x1dc))](void 0x0)),_0xa76697(this,_0x6eeae5(0x403),this[_0x6eeae5(0x227)][_0x6eeae5(0x21d)]()),_0xa76697(this,_0x6eeae5(0x313),null),_0xa76697(this,_0x6eeae5(0x3bf),new Map()),_0xa76697(this,_0x6eeae5(0x319),new _0x4d6dfb[(_0x6eeae5(0x1dc))](0x0)),_0xa76697(this,_0x6eeae5(0x436),this[_0x6eeae5(0x319)]['asObservable']()),_0xa76697(this,_0x6eeae5(0x49c),!0x1),_0xa76697(this,_0x6eeae5(0x4c5),void 0x0),_0xa76697(this,'_retryCount',0x0),_0xa76697(this,'_socketMessageSubscription',null),_0xa76697(this,'_sendHeartbeatTimer',void 0x0),_0xa76697(this,'_timeoutTimer',void 0x0),this['_listenToNetworkCondition']();}[_0x49e982(0x25c)](){const _0x1cbe0c=_0x49e982;this[_0x1cbe0c(0x3cd)]&&this['disposeWithMe'](this['_networkConditionService'][_0x1cbe0c(0x422)]['subscribe'](_0x2c506c=>{const _0x3420bc=_0x1cbe0c;_0x2c506c&&!this[_0x3420bc(0x297)]&&this[_0x3420bc(0x2bb)](),_0x2c506c||this[_0x3420bc(0x4a2)]();}));}[_0x49e982(0x247)](){const _0x3d42ac=_0x49e982;var _0x128a33;super[_0x3d42ac(0x247)](),(_0x128a33=this[_0x3d42ac(0x48b)])==null||_0x128a33[_0x3d42ac(0x31a)](),this[_0x3d42ac(0x48b)]=null,this[_0x3d42ac(0x33c)](),this['_clearTimeoutTimer'](),this[_0x3d42ac(0x355)](),this[_0x3d42ac(0x3bf)]['forEach'](_0x10e136=>_0x10e136[_0x3d42ac(0x247)]()),this[_0x3d42ac(0x3bf)][_0x3d42ac(0x3ce)](),this[_0x3d42ac(0x319)]['complete']();}async[_0x49e982(0x265)](_0x563b6e){const _0x1da6e6=_0x49e982;if(this[_0x1da6e6(0x3bf)][_0x1da6e6(0x35e)](_0x563b6e))return this[_0x1da6e6(0x3bf)][_0x1da6e6(0x203)](_0x563b6e);this[_0x1da6e6(0x30a)]();let _0x3f0a31=this[_0x1da6e6(0x268)][_0x1da6e6(0x4d4)](_0xbc6026,_0x563b6e,this[_0x1da6e6(0x227)][_0x1da6e6(0x21d)]());return this['_sessions'][_0x1da6e6(0x40d)](_0x563b6e,_0x3f0a31),_0x3f0a31;}['closeSession'](_0x4e6590){const _0x384255=_0x49e982;let _0xa48141=this['_sessions'][_0x384255(0x203)](_0x4e6590);if(_0xa48141&&(this[_0x384255(0x3bf)][_0x384255(0x454)](_0x4e6590),_0xa48141[_0x384255(0x337)]()),!this[_0x384255(0x3bf)][_0x384255(0x1b5)]){var _0x262477;(_0x262477=this['_socket'])==null||_0x262477['close']();}}[_0x49e982(0x2bb)](){const _0x1ef495=_0x49e982;this[_0x1ef495(0x221)]=0x0,this[_0x1ef495(0x33c)](),this[_0x1ef495(0x3d8)]();}[_0x49e982(0x33c)](){const _0x526c55=_0x49e982;this[_0x526c55(0x4c5)]!=null&&(clearTimeout(this[_0x526c55(0x4c5)]),this[_0x526c55(0x4c5)]=null);}async[_0x49e982(0x3b5)](){const _0x2677f0=_0x49e982;var _0x1b3357;let _0x37f55a=this['_configService'][_0x2677f0(0x462)](_0x138b5f),_0xa73da=(_0x1b3357=_0x37f55a==null?void 0x0:_0x37f55a[_0x2677f0(0x1fc)])==null?_0x8ba365:_0x1b3357,_0x26ec03=await this[_0x2677f0(0x3d6)][_0x2677f0(0x1f7)](_0xa73da);return this['_candidateSocket']=_0x26ec03,_0x26ec03;}async[_0x49e982(0x30a)](){const _0x3d21ad=_0x49e982;try{var _0x16673f,_0x33c0d8;let _0x439a7b=(_0x16673f=(_0x33c0d8=this['_socket'])==null?this[_0x3d21ad(0x313)]:_0x33c0d8)==null?await this[_0x3d21ad(0x3b5)]():_0x16673f;if(_0x439a7b){var _0x4b1d22;let _0x1fd8a8=_0x439a7b[_0x3d21ad(0x439)];_0x439a7b[_0x3d21ad(0x439)]=_0x181c93=>(_0x181c93[_0x3d21ad(0x263)]!==_0x514d55[_0x3d21ad(0x457)][_0x3d21ad(0x2f3)]&&this['_rescheduleHeartbeat'](),_0x1fd8a8[_0x3d21ad(0x47c)](_0x439a7b,[_0x181c93])),(_0x4b1d22=this[_0x3d21ad(0x48b)])==null||_0x4b1d22[_0x3d21ad(0x31a)](),this['_socketMessageSubscription']=null,this[_0x3d21ad(0x48b)]=_0x439a7b[_0x3d21ad(0x26e)][_0x3d21ad(0x478)](_0xb5ae0e=>this['_onMessage'](_0x439a7b,_0xb5ae0e)),_0x439a7b[_0x3d21ad(0x26c)]['pipe']((0x0,_0x5df1dd[_0x3d21ad(0x25d)])(0x1))[_0x3d21ad(0x478)](_0x99b746=>this['_logService'][_0x3d21ad(0x438)]('[CollaborationSessionService]:\x20socket\x20error',_0x99b746)),_0x439a7b[_0x3d21ad(0x1fb)][_0x3d21ad(0x349)]((0x0,_0x5df1dd[_0x3d21ad(0x25d)])(0x1))[_0x3d21ad(0x478)](()=>{const _0x19d635=_0x3d21ad;this[_0x19d635(0x4bd)](_0x439a7b);}),_0x439a7b[_0x3d21ad(0x362)][_0x3d21ad(0x349)]((0x0,_0x5df1dd[_0x3d21ad(0x25d)])(0x1))[_0x3d21ad(0x478)](_0x594d9b=>{const _0x455816=_0x3d21ad;this[_0x455816(0x271)][_0x455816(0x4ad)](_0x455816(0x1fd),'socket\x20close',_0x594d9b),this[_0x455816(0x283)]();});}}catch(_0x2f74ab){this[_0x3d21ad(0x271)]['error'](_0x2f74ab),this[_0x3d21ad(0x283)]();}}[_0x49e982(0x4bd)](_0x8ee4f){const _0x404b73=_0x49e982;this[_0x404b73(0x271)][_0x404b73(0x4ad)](_0x404b73(0x1fd),_0x404b73(0x225)),_0x8ee4f[_0x404b73(0x439)]({'cmd':_0x514d55[_0x404b73(0x457)]['HELLO']}),this['_rescheduleHeartbeat']();}[_0x49e982(0x4a2)](){const _0x53d321=_0x49e982;this[_0x53d321(0x49c)]=!0x1,this[_0x53d321(0x313)]=null,this[_0x53d321(0x319)][_0x53d321(0x368)](0x2),this[_0x53d321(0x227)][_0x53d321(0x368)](null),this[_0x53d321(0x2b4)](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0x2b630c=_0x49e982;var _0x4a89b7;this[_0x2b630c(0x4a2)](),this['_retryCount']<((_0x4a89b7=this[_0x2b630c(0x28b)][_0x2b630c(0x462)]('RETRY_CONNECTING_MAX_COUNT'))==null?0x3:_0x4a89b7)?(this[_0x2b630c(0x481)][_0x2b630c(0x1ee)]({'id':_0x2b630c(0x1f4)}),this['_tryReconnect']()):this[_0x2b630c(0x481)][_0x2b630c(0x1ee)]({'id':_0x2b630c(0x27d)});}[_0x49e982(0x3d8)](){const _0x173246=_0x49e982;var _0xc36ef6;let _0x1a728e=this[_0x173246(0x221)],_0x2434d0=this[_0x173246(0x28b)][_0x173246(0x462)](_0x138b5f),_0x29dca1=_0x1a728e===0x0?0x0:((_0xc36ef6=_0x2434d0==null?void 0x0:_0x2434d0['retryConnectingInterval'])==null?0x4e20:_0xc36ef6)*0x2**_0x1a728e;this[_0x173246(0x4c5)]=setTimeout(()=>{const _0x21291f=_0x173246;clearTimeout(this[_0x21291f(0x4c5)]),this[_0x21291f(0x4c5)]=null,this[_0x21291f(0x30a)]();},_0x29dca1),this[_0x173246(0x221)]+=0x1;}[_0x49e982(0x46d)](_0x521778,_0x38bb3f){const _0x24e79d=_0x49e982;let {cmd:_0x23c6ee}=_0x38bb3f;_0x23c6ee===_0x514d55[_0x24e79d(0x457)][_0x24e79d(0x27e)]&&!this[_0x24e79d(0x49c)]&&(_0x521778[_0x24e79d(0x3ec)]=_0x38bb3f[_0x24e79d(0x259)][_0x24e79d(0x3ec)],this[_0x24e79d(0x227)]['next'](_0x521778),this[_0x24e79d(0x319)][_0x24e79d(0x368)](0x3),this[_0x24e79d(0x49c)]=!0x0,this['_candidateSocket']=null),_0x23c6ee===_0x514d55[_0x24e79d(0x457)][_0x24e79d(0x4da)]&&this[_0x24e79d(0x2b4)](),this[_0x24e79d(0x1ac)]();}[_0x49e982(0x1ac)](){const _0x38c117=_0x49e982;var _0x4c0e15;this[_0x38c117(0x355)](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x38c117(0x2d6)](),(_0x4c0e15=this[_0x38c117(0x28b)]['getConfig'](_0x38c117(0x266)))==null?0x7530:_0x4c0e15);}['_sendHeartbeat'](){const _0x296053=_0x49e982;this[_0x296053(0x297)]['send']({'cmd':_0x514d55['CombCmd'][_0x296053(0x4da)]}),this[_0x296053(0x42d)]();}[_0x49e982(0x42d)](){const _0x2a91b4=_0x49e982;var _0x3b82e5;this['_timeoutTimer']=setTimeout(()=>this[_0x2a91b4(0x283)](),(_0x3b82e5=this['_configService']['getConfig'](_0x2a91b4(0x287)))==null?_0x332e1b:_0x3b82e5);}[_0x49e982(0x355)](){const _0x3ac933=_0x49e982;this[_0x3ac933(0x4d7)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x3ac933(0x4d7)]=null);}['_clearTimeoutTimer'](){const _0x1ef012=_0x49e982;this[_0x1ef012(0x1e8)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x1ef012(0x1e8)]=null);}};_0x429482=_0x433d1e([_0x25be6b(0x0,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0[_0x49e982(0x2fe)])),_0x25be6b(0x1,_0x2ef5c0['ILogService']),_0x25be6b(0x2,_0x2ef5c0['IConfigService']),_0x25be6b(0x3,_0x5902c5),_0x25be6b(0x4,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x4d282d)),_0x25be6b(0x5,(0x0,_0x2ef5c0[_0x49e982(0x4bf)])(_0x935f0b))],_0x429482);let _0x3b2987=class extends _0x2ef5c0['RxDisposable']{constructor(_0x1c77b5,_0x204623,_0x16a825,_0x29addb){const _0x5c1a87=_0x49e982;var _0x35dc0f;super(),this[_0x5c1a87(0x268)]=_0x1c77b5,this['_collabSessionService']=_0x204623,this[_0x5c1a87(0x28b)]=_0x16a825,this['_univerInstanceService']=_0x29addb,_0xa76697(this,_0x5c1a87(0x2cc),new Map()),_0xa76697(this,_0x5c1a87(0x44e),new _0x4d6dfb[(_0x5c1a87(0x235))]()),_0xa76697(this,'entityInit$',this[_0x5c1a87(0x44e)][_0x5c1a87(0x21d)]()),((_0x35dc0f=this[_0x5c1a87(0x28b)][_0x5c1a87(0x462)](_0x5c1a87(0x3cb)))==null?void 0x0:_0x35dc0f['enableCollaboration'])!==!0x1&&this['_init']();}[_0x49e982(0x247)](){const _0x267d60=_0x49e982;super[_0x267d60(0x247)](),this[_0x267d60(0x2cc)][_0x267d60(0x293)](_0x3faf6f=>_0x3faf6f[_0x267d60(0x247)]()),this[_0x267d60(0x2cc)][_0x267d60(0x3ce)]();}[_0x49e982(0x281)](_0x10781f){const _0x186600=_0x49e982;var _0x10a3ea;return(_0x10a3ea=this[_0x186600(0x2cc)][_0x186600(0x203)](_0x10781f))==null?null:_0x10a3ea;}[_0x49e982(0x4ae)](_0x266378){const _0x3df18d=_0x49e982;let _0x67693a=this[_0x3df18d(0x281)](_0x266378);return _0x67693a?(0x0,_0x4d6dfb['of'])(_0x67693a):this[_0x3df18d(0x44e)][_0x3df18d(0x349)]((0x0,_0x5df1dd[_0x3df18d(0x36d)])(_0x81c7b8=>_0x81c7b8[_0x3df18d(0x220)]===_0x266378));}[_0x49e982(0x33a)](_0x42d8e8){const _0x15fd89=_0x49e982;return(0x0,_0x4d6dfb['firstValueFrom'])(this[_0x15fd89(0x4ae)](_0x42d8e8)[_0x15fd89(0x349)]((0x0,_0x5df1dd['map'])(()=>void 0x0)));}[_0x49e982(0x2fc)](){const _0x2aa479=_0x49e982;this[_0x2aa479(0x4cb)][_0x2aa479(0x1dd)](_0x2ef5c0[_0x2aa479(0x401)][_0x2aa479(0x1f6)])['pipe']((0x0,_0x4d6dfb[_0x2aa479(0x2f5)])(this['dispose$']),(0x0,_0x5df1dd[_0x2aa479(0x1e0)])(0x10))[_0x2aa479(0x478)](async _0x3011db=>{const _0x28e028=_0x2aa479;let _0x521648=_0x3011db[_0x28e028(0x34b)][_0x28e028(0x2c2)](),_0x5e6d8c=await this[_0x28e028(0x2a0)](_0x521648,_0x2ef5c0[_0x28e028(0x401)][_0x28e028(0x1f6)]);this['_entities'][_0x28e028(0x40d)](_0x521648,_0x5e6d8c);}),this[_0x2aa479(0x4cb)][_0x2aa479(0x1dd)](_0x2ef5c0[_0x2aa479(0x401)][_0x2aa479(0x33e)])[_0x2aa479(0x349)]((0x0,_0x4d6dfb[_0x2aa479(0x2f5)])(this[_0x2aa479(0x2f0)]),(0x0,_0x5df1dd[_0x2aa479(0x1e0)])(0x10))['pipe']((0x0,_0x5df1dd[_0x2aa479(0x36d)])(_0x250051=>!_0x250051['unit'][_0x2aa479(0x2c2)]()[_0x2aa479(0x4e0)]('__')))[_0x2aa479(0x478)](async _0x287ab6=>{const _0x20f799=_0x2aa479;let _0x2059ad=_0x287ab6[_0x20f799(0x34b)][_0x20f799(0x2c2)](),_0x472cdf=await this[_0x20f799(0x2a0)](_0x2059ad,_0x2ef5c0[_0x20f799(0x401)][_0x20f799(0x33e)]);this[_0x20f799(0x2cc)][_0x20f799(0x40d)](_0x2059ad,_0x472cdf);}),this[_0x2aa479(0x4cb)][_0x2aa479(0x1dd)](_0x2ef5c0[_0x2aa479(0x401)][_0x2aa479(0x2a9)])[_0x2aa479(0x349)]((0x0,_0x4d6dfb[_0x2aa479(0x2f5)])(this[_0x2aa479(0x2f0)]),(0x0,_0x5df1dd[_0x2aa479(0x1e0)])(0x10))[_0x2aa479(0x478)](async _0x7237ca=>{const _0x2b540c=_0x2aa479;let _0x283cb4=_0x7237ca[_0x2b540c(0x34b)][_0x2b540c(0x2c2)](),_0x5c42d6=await this['_startCollaboration'](_0x283cb4,_0x2ef5c0[_0x2b540c(0x401)][_0x2b540c(0x2a9)]);this[_0x2b540c(0x2cc)][_0x2b540c(0x40d)](_0x283cb4,_0x5c42d6);}),this['_univerInstanceService'][_0x2aa479(0x1dd)](_0x2ef5c0[_0x2aa479(0x401)][_0x2aa479(0x369)])[_0x2aa479(0x349)]((0x0,_0x4d6dfb[_0x2aa479(0x2f5)])(this['dispose$']),(0x0,_0x5df1dd[_0x2aa479(0x1e0)])(0x10))['subscribe'](async _0x554785=>{const _0x1cfbc9=_0x2aa479;let _0x3d22d0=_0x554785[_0x1cfbc9(0x34b)][_0x1cfbc9(0x2c2)](),_0xa3b81f=await this[_0x1cfbc9(0x2a0)](_0x3d22d0,_0x2ef5c0[_0x1cfbc9(0x401)][_0x1cfbc9(0x369)]);this[_0x1cfbc9(0x2cc)]['set'](_0x3d22d0,_0xa3b81f);}),(0x0,_0x4d6dfb[_0x2aa479(0x228)])(this['_univerInstanceService'][_0x2aa479(0x20b)](_0x2ef5c0['UniverInstanceType']['UNIVER_SHEET']),this[_0x2aa479(0x4cb)][_0x2aa479(0x20b)](_0x2ef5c0[_0x2aa479(0x401)][_0x2aa479(0x33e)]),this['_univerInstanceService'][_0x2aa479(0x20b)](_0x2ef5c0[_0x2aa479(0x401)][_0x2aa479(0x2a9)]),this[_0x2aa479(0x4cb)][_0x2aa479(0x20b)](_0x2ef5c0[_0x2aa479(0x401)][_0x2aa479(0x369)]))['pipe']((0x0,_0x4d6dfb[_0x2aa479(0x2f5)])(this[_0x2aa479(0x2f0)]))[_0x2aa479(0x478)](_0x30864c=>{const _0x23c718=_0x2aa479;let _0x56d327=_0x30864c[_0x23c718(0x2c2)](),_0xdc6db7=this['_entities'][_0x23c718(0x203)](_0x56d327);_0xdc6db7&&(_0xdc6db7['dispose'](),this['_entities'][_0x23c718(0x454)](_0x56d327));});}async[_0x49e982(0x2a0)](_0x29fab8,_0xf0bd9){const _0x18643d=_0x49e982;let _0x302527=await this[_0x18643d(0x3aa)][_0x18643d(0x265)](_0x29fab8),_0x2b7fce=this['_injector']['createInstance'](this[_0x18643d(0x30b)](_0xf0bd9),_0x29fab8,_0xf0bd9,_0x302527);return await _0x2b7fce[_0x18643d(0x299)](),this['_entityInit$'][_0x18643d(0x368)](_0x2b7fce),_0x2b7fce;}[_0x49e982(0x30b)](_0xc7a2d2){const _0x1f2286=_0x49e982;switch(_0xc7a2d2){case _0x2ef5c0[_0x1f2286(0x401)][_0x1f2286(0x33e)]:return _0x51fa4a;case _0x2ef5c0[_0x1f2286(0x401)][_0x1f2286(0x1f6)]:return _0x20b584;case _0x2ef5c0[_0x1f2286(0x401)][_0x1f2286(0x2a9)]:return _0x2f4a02;case _0x2ef5c0['UniverInstanceType'][_0x1f2286(0x369)]:return _0x4781ef;default:throw Error(_0x1f2286(0x49d)+_0xc7a2d2);}}};_0x3b2987=_0x433d1e([_0x25be6b(0x0,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0['Injector'])),_0x25be6b(0x1,(0x0,_0x2ef5c0['Inject'])(_0x429482)),_0x25be6b(0x2,_0x2ef5c0[_0x49e982(0x35c)]),_0x25be6b(0x3,_0x2ef5c0[_0x49e982(0x20c)])],_0x3b2987);var _0x36abf5=_0x49e982(0x493),_0x2f77e4=_0x49e982(0x34a);let _0x324805=class extends _0x2ef5c0[_0x49e982(0x39c)]{constructor(_0xee029d,_0x67f566){const _0xd5a99f=_0x49e982;super(),this['_univerInstanceService']=_0xee029d,this[_0xd5a99f(0x28b)]=_0x67f566,this[_0xd5a99f(0x2fc)]();}[_0x49e982(0x2fc)](){const _0x2e1825=_0x49e982;this['disposeWithMe'](this[_0x2e1825(0x4cb)][_0x2e1825(0x491)]['subscribe'](()=>{const _0x553fd6=_0x2e1825;var _0x2b8830;let _0x100bdd=this[_0x553fd6(0x4cb)]['getFocusedUnit'](),_0x5f175a=(_0x2b8830=this['_configService'][_0x553fd6(0x462)](_0x553fd6(0x495)))==null?_0x553fd6(0x28c):_0x2b8830;_0x100bdd instanceof _0x2ef5c0[_0x553fd6(0x1bf)]&&(_0x5f175a=_0x100bdd[_0x553fd6(0x430)]),document[_0x553fd6(0x4a6)]=_0x5f175a;}));}};_0x324805=_0x433d1e([_0x25be6b(0x0,_0x2ef5c0[_0x49e982(0x20c)]),_0x25be6b(0x1,_0x2ef5c0[_0x49e982(0x35c)])],_0x324805);let _0x513d58=function(_0x104a76){const _0x39d310=_0x49e982;return _0x104a76[_0x39d310(0x1e4)]=_0x39d310(0x1e4),_0x104a76[_0x39d310(0x334)]=_0x39d310(0x334),_0x104a76[_0x39d310(0x379)]='BASE64',_0x104a76;}({}),_0x2597a6=(0x0,_0x2ef5c0[_0x49e982(0x3cc)])('base-ui.attachment-io.service'),_0x1b2349=class{constructor(_0x4e7bac,_0x576cf0,_0x3520bb){const _0x461bcc=_0x49e982;this[_0x461bcc(0x1af)]=_0x4e7bac,this[_0x461bcc(0x28b)]=_0x576cf0,this[_0x461bcc(0x4cb)]=_0x3520bb;}['getUploadOptions'](){const _0x4449ff=_0x49e982;var _0x8569d3;return(_0x8569d3=this['_getConfig']()[_0x4449ff(0x1ed)])==null?{}:_0x8569d3;}async[_0x49e982(0x34c)](_0x24003f){const _0x1b08e9=_0x49e982;let _0x15038a=this[_0x1b08e9(0x370)]();if(_0x1c0b69(_0x24003f,_0x15038a),_0x15038a['upload'])return _0x15038a[_0x1b08e9(0x1e6)](_0x24003f);let _0xc280a4=await this[_0x1b08e9(0x246)](_0x24003f);return{'id':_0xc280a4,'name':_0x24003f[_0x1b08e9(0x430)],'mimeType':_0x24003f[_0x1b08e9(0x41b)],'size':_0x24003f[_0x1b08e9(0x1b5)],'sourceType':'UUID','source':_0xc280a4};}async['_upload'](_0x2d87d3){const _0x410205=_0x49e982;let _0x215b0f=this['_univerInstanceService']['getFocusedUnit'](),_0x388f7d=_0x215b0f==null?void 0x0:_0x215b0f[_0x410205(0x2c2)]();if(!_0x388f7d)throw Error(_0x410205(0x327));let _0x276cea=new FormData();_0x276cea[_0x410205(0x496)](_0x410205(0x2d4),_0x2d87d3);let _0x3d06e5=this[_0x410205(0x36a)]()+'?size='+_0x2d87d3[_0x410205(0x1b5)][_0x410205(0x286)]()+'&source='+_0x514d55[_0x410205(0x321)][_0x410205(0x3a1)]+_0x410205(0x357)+encodeURIComponent(_0x388f7d),_0x22a2e6=(await this['_httpService'][_0x410205(0x4e3)](_0x3d06e5,{'body':_0x276cea}))['body']['FileId'];if(typeof _0x22a2e6!='string'||!_0x22a2e6)throw Error(_0x410205(0x2cf));return _0x22a2e6;}['_getUploadFileURL'](){const _0x4223e7=_0x49e982;var _0x368e5a;return(_0x368e5a=this['_getConfig']()['uploadFileServerUrl'])==null?_0x4223e7(0x4de):_0x368e5a;}['_getConfig'](){const _0x5d3d5e=_0x49e982;var _0x4cd423;return(_0x4cd423=this[_0x5d3d5e(0x28b)]['getConfig'](_0x5d3d5e(0x3cb)))==null?{}:_0x4cd423;}};_0x1b2349=_0x433d1e([_0x25be6b(0x0,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0xa3a4ef['HTTPService'])),_0x25be6b(0x1,(0x0,_0x2ef5c0['Inject'])(_0x2ef5c0[_0x49e982(0x35c)])),_0x25be6b(0x2,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0['IUniverInstanceService']))],_0x1b2349);function _0x1c0b69(_0x338821,_0x577c6d){const _0x3bf2d0=_0x49e982;var _0x57656e;if(_0x577c6d[_0x3bf2d0(0x1c2)]!=null&&_0x338821['size']>_0x577c6d[_0x3bf2d0(0x1c2)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x57656e=_0x577c6d[_0x3bf2d0(0x435)])!=null&&_0x57656e[_0x3bf2d0(0x375)]&&!_0x577c6d['accept'][_0x3bf2d0(0x22f)](_0x4552cb=>_0x338821[_0x3bf2d0(0x41b)]===_0x4552cb||_0x338821[_0x3bf2d0(0x430)][_0x3bf2d0(0x366)](_0x4552cb)||_0x4552cb[_0x3bf2d0(0x366)]('/*')&&_0x338821[_0x3bf2d0(0x41b)][_0x3bf2d0(0x4e0)](_0x4552cb[_0x3bf2d0(0x31b)](0x0,-0x1))))throw Error(_0x3bf2d0(0x470));}let _0x2fa1dd=class{constructor(_0x49a06c,_0x43fb73,_0x3b87a7){const _0x36ea16=_0x49e982;this[_0x36ea16(0x28b)]=_0x49a06c,this['_httpService']=_0x43fb73,this[_0x36ea16(0x1bd)]=_0x3b87a7,this['init']();}['init'](){const _0x55b23d=_0x49e982;this['_httpService'][_0x55b23d(0x1ec)]({'priority':0x1,'interceptor':(_0x36ad3e,_0x1ef00e)=>_0x1ef00e(_0x36ad3e)[_0x55b23d(0x349)]((0x0,_0x4d6dfb['concatMap'])(async _0x5251ac=>{const _0xa9d339=_0x55b23d;let _0x5d1d3d=_0x5251ac;if(_0x5d1d3d['status']===0x191){if(typeof window>'u')throw Error(_0xa9d339(0x2ff));if(window[_0xa9d339(0x48a)](this[_0xa9d339(0x1bd)]['t'](_0xa9d339(0x2e8)))){let _0x355409=window[_0xa9d339(0x3bd)](window['location'][_0xa9d339(0x4c9)]);window['location'][_0xa9d339(0x4c9)]=this[_0xa9d339(0x2af)]()+_0xa9d339(0x3fc)+_0x355409;}}return _0x5d1d3d;}))});}[_0x49e982(0x2af)](){const _0x33dd2f=_0x49e982;var _0x56c9ea;let _0x4a9713=this[_0x33dd2f(0x28b)][_0x33dd2f(0x462)](_0x138b5f);return(_0x56c9ea=_0x4a9713==null?void 0x0:_0x4a9713[_0x33dd2f(0x3d1)])==null?'/universer-api/oidc/authpage':_0x56c9ea;}};_0x2fa1dd=_0x433d1e([_0x25be6b(0x0,_0x2ef5c0[_0x49e982(0x35c)]),_0x25be6b(0x1,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0xa3a4ef['HTTPService'])),_0x25be6b(0x2,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0[_0x49e982(0x37d)]))],_0x2fa1dd);let _0x39d7fc=class extends _0x2ef5c0['Disposable']{constructor(_0x577b9c,_0x1c870c){const _0x11a6b6=_0x49e982;super(),this[_0x11a6b6(0x477)]=_0x577b9c,this[_0x11a6b6(0x28b)]=_0x1c870c,_0xa76697(this,_0x11a6b6(0x308),!0x1),this[_0x11a6b6(0x2f6)]();}['_initMergeInterceptor'](){const _0x3ddd5d=_0x49e982;let _0x15acdf=this;this[_0x3ddd5d(0x4e6)](this[_0x3ddd5d(0x477)][_0x3ddd5d(0x1ec)]({'priority':0x3e7,'interceptor':(0x0,_0xa3a4ef[_0x3ddd5d(0x4d1)])({'isMatch'(_0x53a3d7){const _0x17ae7d=_0x3ddd5d;var _0x201b8d;if(_0x53a3d7[_0x17ae7d(0x2ed)]===_0x17ae7d(0x1a8)&&(_0x201b8d=_0x53a3d7[_0x17ae7d(0x2f4)])!=null&&_0x201b8d[_0x17ae7d(0x3ae)]){let {objectID:_0xe63154,objectType:_0x2bb2c3}=_0x53a3d7[_0x17ae7d(0x2f4)]['body']||{};if(!_0xe63154||_0x2bb2c3===void 0x0)return!0x1;let _0x1263cd=_0x15acdf[_0x17ae7d(0x30d)]()+'/'+_0x2bb2c3+_0x17ae7d(0x413)+_0xe63154+_0x17ae7d(0x2d5);if(_0x53a3d7['url']===_0x1263cd)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x51f58){const _0x1d9306=_0x3ddd5d;var _0x384b0a;return(_0x384b0a=_0x51f58[_0x1d9306(0x2f4)])==null?void 0x0:_0x384b0a[_0x1d9306(0x3ae)];},'mergeParamsToRequest'(_0x55f19b,_0x5c0ab8){const _0x4431c8=_0x3ddd5d;let _0x1f0512=_0x15acdf[_0x4431c8(0x30d)]()+_0x4431c8(0x1c9),_0x293b85=_0x55f19b[_0x4431c8(0x230)]((_0x378a0e,_0x33d477)=>{const _0x26d23b=_0x4431c8;let {unitID:_0x14385a,objectID:_0x4f7746,objectType:_0x1a79f0,actions:_0xfa4d66}=_0x33d477;return _0x378a0e[_0x14385a]||(_0x378a0e[_0x14385a]={}),_0x378a0e[_0x14385a][_0x4f7746]||(_0x378a0e[_0x14385a][_0x4f7746]={'objectID':_0x4f7746,'objectType':_0x1a79f0,'actions':[]}),_0x378a0e[_0x14385a][_0x4f7746][_0x26d23b(0x1d3)][_0x26d23b(0x3a7)](..._0xfa4d66),_0x378a0e;},{}),_0xc8f1b9=[];for(let _0x495d7f in _0x293b85)for(let _0x247b24 in _0x293b85[_0x495d7f]){let {actions:_0x4aae32,objectType:_0x4ab2e9}=_0x293b85[_0x495d7f][_0x247b24],_0x423d5b=[...new Set(_0x4aae32)];_0xc8f1b9[_0x4431c8(0x3a7)]({'unitID':_0x495d7f,'objectID':_0x247b24,'objectType':_0x4ab2e9,'actions':_0x423d5b});}return new _0xa3a4ef['HTTPRequest']('POST',_0x1f0512,{'headers':_0x5c0ab8['headers'],'withCredentials':_0x5c0ab8[_0x4431c8(0x24a)],'responseType':_0x5c0ab8[_0x4431c8(0x4b4)],'body':{'requests':_0xc8f1b9}});}},{'distributeResult'(_0x4275ce,_0x1ab49d){const _0x468ed6=_0x3ddd5d;let {objectActions:_0x335463}=_0x4275ce;return _0x1ab49d[_0x468ed6(0x431)](_0x3d22e1=>{const _0x427d25=_0x468ed6;let {unitID:_0x2520c6,objectID:_0x4ccd83,actions:_0x4cf509}=_0x3d22e1,_0x5db0b6=_0x335463[_0x427d25(0x3cf)](_0x4a4f7a=>_0x4a4f7a[_0x427d25(0x220)]===_0x2520c6&&_0x4a4f7a[_0x427d25(0x411)]===_0x4ccd83);return{'config':_0x3d22e1,'result':{'actions':_0x4cf509['map'](_0x509967=>_0x5db0b6==null?void 0x0:_0x5db0b6[_0x427d25(0x1d3)]['find'](_0x50faee=>_0x50faee['action']===_0x509967))[_0x427d25(0x36d)](_0x202c56=>!!_0x202c56),'error':_0x4275ce[_0x427d25(0x438)]}};});}})}));}['_getAPIPrefixPath'](){const _0x451f5f=_0x49e982;var _0x4f848e;let _0x2c0c42=this[_0x451f5f(0x28b)][_0x451f5f(0x462)](_0x138b5f);return(_0x4f848e=_0x2c0c42==null?void 0x0:_0x2c0c42['authzUrl'])==null?'/universer-api/authz':_0x4f848e;}async['create'](_0x5a7092){const _0xd4d22d=_0x49e982;let _0x139646=this[_0xd4d22d(0x30d)]()+'/'+_0x5a7092[_0xd4d22d(0x333)]+_0xd4d22d(0x2e6);return(await this[_0xd4d22d(0x477)][_0xd4d22d(0x4e3)](_0x139646,{'body':_0x5a7092}))[_0xd4d22d(0x3ae)]['objectID']||'';}async['list'](_0x5ee75f){const _0xacd9f=_0x49e982;let _0x24fbce=this[_0xacd9f(0x30d)]()+_0xacd9f(0x467);return(await this[_0xacd9f(0x477)][_0xacd9f(0x4e3)](_0x24fbce,{'body':_0x5ee75f}))[_0xacd9f(0x3ae)]['objects'];}async[_0x49e982(0x31f)](_0x55aba2){const _0x2a1002=_0x49e982;var _0x29cb6f;let _0xa59866=this[_0x2a1002(0x30d)]()+'/'+_0x55aba2[_0x2a1002(0x333)]+_0x2a1002(0x413)+_0x55aba2[_0x2a1002(0x411)],_0x4174d8=await this[_0x2a1002(0x477)]['put'](_0xa59866,{'body':_0x55aba2});if((_0x4174d8==null||(_0x29cb6f=_0x4174d8[_0x2a1002(0x3ae)])==null||(_0x29cb6f=_0x29cb6f[_0x2a1002(0x438)])==null?void 0x0:_0x29cb6f['code'])!==0x1)throw Error(_0x2a1002(0x1b0));}async[_0x49e982(0x303)](_0x98c4a0){const _0x2b8796=_0x49e982;let _0x1325d4=this['_getAPIPrefixPath']()+'/'+_0x98c4a0[_0x2b8796(0x333)]+_0x2b8796(0x413)+_0x98c4a0[_0x2b8796(0x411)]+'/allowed';return(await this[_0x2b8796(0x477)][_0x2b8796(0x4e3)](_0x1325d4,{'body':_0x98c4a0}))[_0x2b8796(0x3ae)]['actions'];}async[_0x49e982(0x23d)](_0x1421d5){const _0x5af188=_0x49e982;let _0x2e228d=this['_getAPIPrefixPath']()+_0x5af188(0x1c9);return(await this[_0x5af188(0x477)][_0x5af188(0x4e3)](_0x2e228d,{'body':{'requests':_0x1421d5}}))[_0x5af188(0x3ae)]['objectActions'];}async[_0x49e982(0x251)](_0x52df75){const _0x58fbfa=_0x49e982;let _0x3e264d=this[_0x58fbfa(0x30d)]()+'/'+_0x52df75[_0x58fbfa(0x333)]+'/role',_0x22c7e8=await this['_HTTPService'][_0x58fbfa(0x4e3)](_0x3e264d,{'body':_0x52df75});return{'roles':_0x22c7e8[_0x58fbfa(0x3ae)][_0x58fbfa(0x2d9)],'actions':_0x22c7e8[_0x58fbfa(0x3ae)][_0x58fbfa(0x1d3)]};}async[_0x49e982(0x393)](_0x2de8de){const _0x5d15de=_0x49e982;let _0xb9c967=this['_getAPIPrefixPath']()+'/collaborator';await this['_HTTPService'][_0x5d15de(0x454)](_0xb9c967,{'params':{'collaboratorID':_0x2de8de['collaboratorID'],'objectID':_0x2de8de[_0x5d15de(0x411)],'unitID':_0x2de8de[_0x5d15de(0x220)]}});}async['updateCollaborator'](_0x2d8d6e){const _0x51a044=_0x49e982;let _0x1fe206=this[_0x51a044(0x30d)]()+'/collaborator';await this['_HTTPService'][_0x51a044(0x3c3)](_0x1fe206,{'body':_0x2d8d6e});}async[_0x49e982(0x3c5)](_0x25af3e){const _0x3c0a43=_0x49e982;let _0x3a7cbf=this[_0x3c0a43(0x30d)]()+_0x3c0a43(0x486);await this[_0x3c0a43(0x477)][_0x3c0a43(0x4e3)](_0x3a7cbf,{'body':_0x25af3e});}async['listCollaborators'](_0xed4fb5){const _0x323aa1=_0x49e982;var _0x3309c9;let _0x34d54a=this['_getAPIPrefixPath']()+_0x323aa1(0x486),_0x44f5e8=await this[_0x323aa1(0x477)][_0x323aa1(0x203)](_0x34d54a,{'params':{'objectID':_0xed4fb5[_0x323aa1(0x411)],'unitID':_0xed4fb5[_0x323aa1(0x220)]}});return this[_0x323aa1(0x472)]((_0x3309c9=_0x44f5e8[_0x323aa1(0x3ae)][_0x323aa1(0x2be)])==null?!0x1:_0x3309c9),_0x44f5e8[_0x323aa1(0x3ae)][_0x323aa1(0x2c6)];}async[_0x49e982(0x32d)](_0xd4b8f8){const _0x36a2cf=_0x49e982;let _0x1d6d40=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x36a2cf(0x477)]['put'](_0x1d6d40,{'body':_0xd4b8f8});}[_0x49e982(0x472)](_0x5c7f30){const _0x311321=_0x49e982;this[_0x311321(0x308)]=_0x5c7f30;}['getCfgEnableObjInherit'](){const _0x353d5e=_0x49e982;return this[_0x353d5e(0x308)];}};_0x39d7fc=_0x433d1e([_0x25be6b(0x0,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0xa3a4ef[_0x49e982(0x4ce)])),_0x25be6b(0x1,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0['IConfigService']))],_0x39d7fc);function _0x21c3fd(_0x1c7596){const _0xd5fad2=_0x49e982;return _0x1c7596 instanceof Uint8Array||ArrayBuffer[_0xd5fad2(0x242)](_0x1c7596)&&_0x1c7596[_0xd5fad2(0x2bd)]['name']===_0xd5fad2(0x376)&&'BYTES_PER_ELEMENT'in _0x1c7596&&_0x1c7596[_0xd5fad2(0x264)]===0x1;}function _0x422740(_0x54a9cb){const _0x2df849=_0x49e982;if(typeof _0x54a9cb!=_0x2df849(0x2f7))throw TypeError('number\x20expected,\x20got\x20'+typeof _0x54a9cb);if(!Number[_0x2df849(0x21c)](_0x54a9cb)||_0x54a9cb<0x0)throw RangeError(_0x2df849(0x248)+_0x54a9cb);}function _0x3a1db3(_0x591052,_0x31d9b5,_0x260fdf=''){const _0xc43253=_0x49e982;let _0x500ba6=_0x21c3fd(_0x591052),_0x2732e7=_0x591052==null?void 0x0:_0x591052[_0xc43253(0x375)],_0x194a58=_0x31d9b5!==void 0x0;if(!_0x500ba6||_0x194a58&&_0x2732e7!==_0x31d9b5){let _0x3be14a=_0x260fdf&&'\x22'+_0x260fdf+'\x22\x20',_0x2f5ac5=_0x194a58?'\x20of\x20length\x20'+_0x31d9b5:'',_0x1f557f=_0x500ba6?_0xc43253(0x1d5)+_0x2732e7:_0xc43253(0x3a9)+typeof _0x591052,_0x571e01=_0x3be14a+_0xc43253(0x48d)+_0x2f5ac5+',\x20got\x20'+_0x1f557f;throw _0x500ba6?RangeError(_0x571e01):TypeError(_0x571e01);}return _0x591052;}function _0x4313e8(_0x22dea6){const _0x5578d8=_0x49e982;return new Uint32Array(_0x22dea6[_0x5578d8(0x1c3)],_0x22dea6[_0x5578d8(0x1d0)],Math[_0x5578d8(0x2b0)](_0x22dea6[_0x5578d8(0x24f)]/0x4));}function _0x5bd24a(..._0x16569f){const _0x340e8f=_0x49e982;for(let _0x57c871=0x0;_0x57c871<_0x16569f[_0x340e8f(0x375)];_0x57c871++)_0x16569f[_0x57c871][_0x340e8f(0x43e)](0x0);}let _0x1de324=new Uint8Array(new Uint32Array([0x11223344])['buffer'])[0x0]===0x44,_0x3bd435=_0x506c12=>_0x506c12<<0x18&0xff000000|_0x506c12<<0x8&0xff0000|_0x506c12>>>0x8&0xff00|_0x506c12>>>0x18&0xff,_0x38a51c=_0x1de324?_0x123502=>_0x123502:_0x38baf9=>{for(let _0x4e803c=0x0;_0x4e803c<_0x38baf9['length'];_0x4e803c++)_0x38baf9[_0x4e803c]=_0x3bd435(_0x38baf9[_0x4e803c]);return _0x38baf9;};function _0x31d64a(_0x517d13){const _0x2b789c=_0x49e982;if(typeof _0x517d13!='string')throw TypeError('string\x20expected');return new Uint8Array(new TextEncoder()[_0x2b789c(0x41a)](_0x517d13));}function _0x4ea38b(_0x1f3f83,_0x1230e4){const _0xbf0426=_0x49e982;return!_0x1f3f83[_0xbf0426(0x24f)]||!_0x1230e4['byteLength']?!0x1:_0x1f3f83[_0xbf0426(0x1c3)]===_0x1230e4[_0xbf0426(0x1c3)]&&_0x1f3f83[_0xbf0426(0x1d0)]<_0x1230e4[_0xbf0426(0x1d0)]+_0x1230e4[_0xbf0426(0x24f)]&&_0x1230e4[_0xbf0426(0x1d0)]<_0x1f3f83[_0xbf0426(0x1d0)]+_0x1f3f83[_0xbf0426(0x24f)];}function _0x469d7a(_0x126f66,_0x4510c3){const _0x114311=_0x49e982;if(_0x4ea38b(_0x126f66,_0x4510c3)&&_0x126f66[_0x114311(0x1d0)]<_0x4510c3[_0x114311(0x1d0)])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0x1cf731(..._0x60cdfc){const _0x3f83be=_0x49e982;let _0x1f73fe=0x0;for(let _0x22bc31=0x0;_0x22bc31<_0x60cdfc[_0x3f83be(0x375)];_0x22bc31++){let _0x205d0c=_0x60cdfc[_0x22bc31];_0x3a1db3(_0x205d0c),_0x1f73fe+=_0x205d0c['length'];}let _0x3fe56e=new Uint8Array(_0x1f73fe);for(let _0x359d77=0x0,_0x110ee8=0x0;_0x359d77<_0x60cdfc['length'];_0x359d77++){let _0x309032=_0x60cdfc[_0x359d77];_0x3fe56e[_0x3f83be(0x40d)](_0x309032,_0x110ee8),_0x110ee8+=_0x309032[_0x3f83be(0x375)];}return _0x3fe56e;}let _0x34dbc8=(_0x5c2fe6,_0x4f271a)=>{const _0x504e29=_0x49e982;function _0x4931be(_0x17d5d2,..._0x2f033f){const _0x2ad16d=_0x5107;if(_0x3a1db3(_0x17d5d2,void 0x0,'key'),_0x5c2fe6[_0x2ad16d(0x440)]!==void 0x0){let _0x4304eb=_0x2f033f[0x0];_0x3a1db3(_0x4304eb,_0x5c2fe6[_0x2ad16d(0x3bc)]?void 0x0:_0x5c2fe6['nonceLength'],_0x2ad16d(0x316));}let _0x29d696=_0x5c2fe6[_0x2ad16d(0x474)];_0x29d696&&_0x2f033f[0x1]!==void 0x0&&_0x3a1db3(_0x2f033f[0x1],void 0x0,'AAD');let _0x546c45=_0x4f271a(_0x17d5d2,..._0x2f033f),_0x1d5e9c=(_0x111a02,_0x44ca30)=>{const _0xd60a41=_0x2ad16d;if(_0x44ca30!==void 0x0){if(_0x111a02!==0x2)throw Error('cipher\x20output\x20not\x20supported');_0x3a1db3(_0x44ca30,void 0x0,_0xd60a41(0x34e));}},_0x5f23bd=!0x1;return{'encrypt'(_0x4018d7,_0xc9a17f){const _0x4ba19c=_0x2ad16d;if(_0x5f23bd)throw Error(_0x4ba19c(0x219));return _0x5f23bd=!0x0,_0x3a1db3(_0x4018d7),_0x1d5e9c(_0x546c45[_0x4ba19c(0x1d7)][_0x4ba19c(0x375)],_0xc9a17f),_0x546c45[_0x4ba19c(0x1d7)](_0x4018d7,_0xc9a17f);},'decrypt'(_0x34fc4a,_0x28eacb){const _0x284a64=_0x2ad16d;if(_0x3a1db3(_0x34fc4a),_0x29d696&&_0x34fc4a['length']<_0x29d696)throw Error(_0x284a64(0x284)+_0x29d696);return _0x1d5e9c(_0x546c45['decrypt'][_0x284a64(0x375)],_0x28eacb),_0x546c45[_0x284a64(0x4dd)](_0x34fc4a,_0x28eacb);}};}return Object[_0x504e29(0x3a3)](_0x4931be,_0x5c2fe6),_0x4931be;};function _0xeae1fe(_0x90a84c,_0x500f1e,_0x16af9b=!0x0){const _0x28e745=_0x49e982;if(_0x500f1e===void 0x0)return new Uint8Array(_0x90a84c);if(_0x3a1db3(_0x500f1e,void 0x0,'output'),_0x500f1e['length']!==_0x90a84c)throw Error(_0x28e745(0x21f)+_0x90a84c+_0x28e745(0x2aa)+_0x500f1e[_0x28e745(0x375)]);if(_0x16af9b&&!_0x50b56c(_0x500f1e))throw Error('invalid\x20output,\x20must\x20be\x20aligned');return _0x500f1e;}function _0x50b56c(_0x410352){const _0x2d737e=_0x49e982;return _0x410352[_0x2d737e(0x1d0)]%0x4==0x0;}function _0x453a6c(_0x2108e5){const _0x3331a1=_0x49e982;return Uint8Array[_0x3331a1(0x312)](_0x3a1db3(_0x2108e5));}function _0x4cc18b(_0x348cb0=0x20){const _0x255092=_0x49e982;_0x422740(_0x348cb0);let _0x29b467=typeof globalThis==_0x255092(0x304)?globalThis[_0x255092(0x1bc)]:null;if(typeof(_0x29b467==null?void 0x0:_0x29b467['getRandomValues'])!=_0x255092(0x30f))throw Error(_0x255092(0x4dc));return _0x29b467[_0x255092(0x1b3)](new Uint8Array(_0x348cb0));}function _0xffb9fd(_0x5a225d){const _0x3b4e87=_0x49e982;if(![0x10,0x18,0x20]['includes'](_0x5a225d[_0x3b4e87(0x375)]))throw Error(_0x3b4e87(0x1b8)+_0x5a225d[_0x3b4e87(0x375)]);}function _0x31141a(_0x3bc5b4){return _0x3bc5b4<<0x1^0x11b&-(_0x3bc5b4>>0x7);}function _0x475959(_0x150cc2,_0x136d08){let _0x51ec82=0x0;for(;_0x136d08>0x0;_0x136d08>>=0x1)_0x51ec82^=_0x150cc2&-(_0x136d08&0x1),_0x150cc2=_0x31141a(_0x150cc2);return _0x51ec82;}let _0xfa3634=((()=>{let _0x325862=new Uint8Array(0x100);for(let _0x53df43=0x0,_0x45b50a=0x1;_0x53df43<0x100;_0x53df43++,_0x45b50a^=_0x31141a(_0x45b50a))_0x325862[_0x53df43]=_0x45b50a;let _0x46445f=new Uint8Array(0x100);_0x46445f[0x0]=0x63;for(let _0x3e39d2=0x0;_0x3e39d2<0xff;_0x3e39d2++){let _0x2d5445=_0x325862[0xff-_0x3e39d2];_0x2d5445|=_0x2d5445<<0x8,_0x46445f[_0x325862[_0x3e39d2]]=(_0x2d5445^_0x2d5445>>0x4^_0x2d5445>>0x5^_0x2d5445>>0x6^_0x2d5445>>0x7^0x63)&0xff;}return _0x5bd24a(_0x325862),_0x46445f;})()),_0x1ba701=_0xfa3634['map']((_0x5637dc,_0x4c1be4)=>_0xfa3634[_0x49e982(0x1c1)](_0x4c1be4)),_0x1f426c=_0x2e6d93=>_0x2e6d93<<0x18|_0x2e6d93>>>0x8,_0x58040f=_0x3ce949=>_0x3ce949<<0x8|_0x3ce949>>>0x18;function _0x2e1d5a(_0x4795df,_0x4820a4){const _0x13ef41=_0x49e982;if(_0x4795df[_0x13ef41(0x375)]!==0x100)throw Error(_0x13ef41(0x237));let _0x1ec5b0=new Uint32Array(0x100)[_0x13ef41(0x431)]((_0x20b15e,_0x4dabe8)=>_0x4820a4(_0x4795df[_0x4dabe8])),_0x3b8785=_0x1ec5b0[_0x13ef41(0x431)](_0x58040f),_0x5d080e=_0x3b8785[_0x13ef41(0x431)](_0x58040f),_0x464109=_0x5d080e[_0x13ef41(0x431)](_0x58040f),_0x11040c=new Uint32Array(0x100*0x100),_0x3dd3cd=new Uint32Array(0x100*0x100),_0x5083ea=new Uint16Array(0x100*0x100);for(let _0x2cdd1b=0x0;_0x2cdd1b<0x100;_0x2cdd1b++)for(let _0x4b0886=0x0;_0x4b0886<0x100;_0x4b0886++){let _0x44108d=_0x2cdd1b*0x100+_0x4b0886;_0x11040c[_0x44108d]=_0x1ec5b0[_0x2cdd1b]^_0x3b8785[_0x4b0886],_0x3dd3cd[_0x44108d]=_0x5d080e[_0x2cdd1b]^_0x464109[_0x4b0886],_0x5083ea[_0x44108d]=_0x4795df[_0x2cdd1b]<<0x8|_0x4795df[_0x4b0886];}return{'sbox':_0x4795df,'sbox2':_0x5083ea,'T0':_0x1ec5b0,'T1':_0x3b8785,'T2':_0x5d080e,'T3':_0x464109,'T01':_0x11040c,'T23':_0x3dd3cd};}let _0x56601d=_0x2e1d5a(_0xfa3634,_0x315b45=>_0x475959(_0x315b45,0x3)<<0x18|_0x315b45<<0x10|_0x315b45<<0x8|_0x475959(_0x315b45,0x2)),_0x5c9747=_0x2e1d5a(_0x1ba701,_0x64d7f7=>_0x475959(_0x64d7f7,0xb)<<0x18|_0x475959(_0x64d7f7,0xd)<<0x10|_0x475959(_0x64d7f7,0x9)<<0x8|_0x475959(_0x64d7f7,0xe)),_0x2d3f24=((()=>{let _0x2e563e=new Uint8Array(0x10);for(let _0x1ec102=0x0,_0x5adf03=0x1;_0x1ec102<0x10;_0x1ec102++,_0x5adf03=_0x31141a(_0x5adf03))_0x2e563e[_0x1ec102]=_0x5adf03;return _0x2e563e;})());function _0x22da91(_0x47821b){const _0x1d8c7c=_0x49e982;_0x3a1db3(_0x47821b);let _0x4a9cb5=_0x47821b[_0x1d8c7c(0x375)];_0xffb9fd(_0x47821b);let {sbox2:_0x1a726c}=_0x56601d,_0x1de51d=[];(!_0x1de324||!_0x50b56c(_0x47821b))&&_0x1de51d['push'](_0x47821b=_0x453a6c(_0x47821b));let _0x47562c=_0x38a51c(_0x4313e8(_0x47821b)),_0x4104a3=_0x47562c['length'],_0x49ae87=_0x46ce5a=>_0x2a0bc0(_0x1a726c,_0x46ce5a,_0x46ce5a,_0x46ce5a,_0x46ce5a),_0x3a8ba8=new Uint32Array(_0x4a9cb5+0x1c);_0x3a8ba8['set'](_0x47562c);for(let _0x5dc938=_0x4104a3;_0x5dc938<_0x3a8ba8[_0x1d8c7c(0x375)];_0x5dc938++){let _0x4495fb=_0x3a8ba8[_0x5dc938-0x1];_0x5dc938%_0x4104a3===0x0?_0x4495fb=_0x49ae87(_0x1f426c(_0x4495fb))^_0x2d3f24[_0x5dc938/_0x4104a3-0x1]:_0x4104a3>0x6&&_0x5dc938%_0x4104a3===0x4&&(_0x4495fb=_0x49ae87(_0x4495fb)),_0x3a8ba8[_0x5dc938]=_0x3a8ba8[_0x5dc938-_0x4104a3]^_0x4495fb;}return _0x5bd24a(..._0x1de51d),_0x3a8ba8;}function _0x12907a(_0x25fed8){let _0x2092b8=_0x22da91(_0x25fed8),_0x1d2be8=_0x2092b8['slice'](),_0x11376b=_0x2092b8['length'],{sbox2:_0x4de6d2}=_0x56601d,{T0:_0x584b37,T1:_0x33575b,T2:_0x36cd57,T3:_0x5f5641}=_0x5c9747;for(let _0x5d642d=0x0;_0x5d642d<_0x11376b;_0x5d642d+=0x4)for(let _0x410972=0x0;_0x410972<0x4;_0x410972++)_0x1d2be8[_0x5d642d+_0x410972]=_0x2092b8[_0x11376b-_0x5d642d-0x4+_0x410972];_0x5bd24a(_0x2092b8);for(let _0x92cdd0=0x4;_0x92cdd0<_0x11376b-0x4;_0x92cdd0++){let _0x5d65fe=_0x1d2be8[_0x92cdd0],_0x3774e6=_0x2a0bc0(_0x4de6d2,_0x5d65fe,_0x5d65fe,_0x5d65fe,_0x5d65fe);_0x1d2be8[_0x92cdd0]=_0x584b37[_0x3774e6&0xff]^_0x33575b[_0x3774e6>>>0x8&0xff]^_0x36cd57[_0x3774e6>>>0x10&0xff]^_0x5f5641[_0x3774e6>>>0x18];}return _0x1d2be8;}function _0x3e4f24(_0x6b80aa,_0x44062c,_0x4c6bee,_0x1a9889,_0x218f7f,_0x46921a){return _0x6b80aa[_0x4c6bee<<0x8&0xff00|_0x1a9889>>>0x8&0xff]^_0x44062c[_0x218f7f>>>0x8&0xff00|_0x46921a>>>0x18&0xff];}function _0x2a0bc0(_0x50884c,_0xf0b0e5,_0x2fc61d,_0x1ccd0c,_0x500e8f){return _0x50884c[_0xf0b0e5&0xff|_0x2fc61d&0xff00]|_0x50884c[_0x1ccd0c>>>0x10&0xff|_0x500e8f>>>0x10&0xff00]<<0x10;}function _0x2288f8(_0x1b3be4,_0x3c237a,_0x114e87,_0x191395,_0x6e65bb){const _0x2a6e1d=_0x49e982;let {sbox2:_0x234563,T01:_0x259790,T23:_0x2f3044}=_0x56601d,_0x2f8e18=0x0;_0x3c237a^=_0x1b3be4[_0x2f8e18++],_0x114e87^=_0x1b3be4[_0x2f8e18++],_0x191395^=_0x1b3be4[_0x2f8e18++],_0x6e65bb^=_0x1b3be4[_0x2f8e18++];let _0x532d88=_0x1b3be4[_0x2a6e1d(0x375)]/0x4-0x2;for(let _0x86a995=0x0;_0x86a995<_0x532d88;_0x86a995++){let _0x1f7324=_0x1b3be4[_0x2f8e18++]^_0x3e4f24(_0x259790,_0x2f3044,_0x3c237a,_0x114e87,_0x191395,_0x6e65bb),_0x318f24=_0x1b3be4[_0x2f8e18++]^_0x3e4f24(_0x259790,_0x2f3044,_0x114e87,_0x191395,_0x6e65bb,_0x3c237a),_0x2bc0f1=_0x1b3be4[_0x2f8e18++]^_0x3e4f24(_0x259790,_0x2f3044,_0x191395,_0x6e65bb,_0x3c237a,_0x114e87),_0x3450b6=_0x1b3be4[_0x2f8e18++]^_0x3e4f24(_0x259790,_0x2f3044,_0x6e65bb,_0x3c237a,_0x114e87,_0x191395);_0x3c237a=_0x1f7324,_0x114e87=_0x318f24,_0x191395=_0x2bc0f1,_0x6e65bb=_0x3450b6;}return{'s0':_0x1b3be4[_0x2f8e18++]^_0x2a0bc0(_0x234563,_0x3c237a,_0x114e87,_0x191395,_0x6e65bb),'s1':_0x1b3be4[_0x2f8e18++]^_0x2a0bc0(_0x234563,_0x114e87,_0x191395,_0x6e65bb,_0x3c237a),'s2':_0x1b3be4[_0x2f8e18++]^_0x2a0bc0(_0x234563,_0x191395,_0x6e65bb,_0x3c237a,_0x114e87),'s3':_0x1b3be4[_0x2f8e18++]^_0x2a0bc0(_0x234563,_0x6e65bb,_0x3c237a,_0x114e87,_0x191395)};}function _0x20d06a(_0x8bd4,_0x2e78db,_0x590202,_0xf92934,_0x393b1b){const _0x173e47=_0x49e982;let {sbox2:_0x3494bd,T01:_0x229e16,T23:_0x3fadd2}=_0x5c9747,_0x65a3ca=0x0;_0x2e78db^=_0x8bd4[_0x65a3ca++],_0x590202^=_0x8bd4[_0x65a3ca++],_0xf92934^=_0x8bd4[_0x65a3ca++],_0x393b1b^=_0x8bd4[_0x65a3ca++];let _0x5db643=_0x8bd4[_0x173e47(0x375)]/0x4-0x2;for(let _0x5b6a51=0x0;_0x5b6a51<_0x5db643;_0x5b6a51++){let _0x59a147=_0x8bd4[_0x65a3ca++]^_0x3e4f24(_0x229e16,_0x3fadd2,_0x2e78db,_0x393b1b,_0xf92934,_0x590202),_0x4f2c4f=_0x8bd4[_0x65a3ca++]^_0x3e4f24(_0x229e16,_0x3fadd2,_0x590202,_0x2e78db,_0x393b1b,_0xf92934),_0x27afb0=_0x8bd4[_0x65a3ca++]^_0x3e4f24(_0x229e16,_0x3fadd2,_0xf92934,_0x590202,_0x2e78db,_0x393b1b),_0x28c73b=_0x8bd4[_0x65a3ca++]^_0x3e4f24(_0x229e16,_0x3fadd2,_0x393b1b,_0xf92934,_0x590202,_0x2e78db);_0x2e78db=_0x59a147,_0x590202=_0x4f2c4f,_0xf92934=_0x27afb0,_0x393b1b=_0x28c73b;}return{'s0':_0x8bd4[_0x65a3ca++]^_0x2a0bc0(_0x3494bd,_0x2e78db,_0x393b1b,_0xf92934,_0x590202),'s1':_0x8bd4[_0x65a3ca++]^_0x2a0bc0(_0x3494bd,_0x590202,_0x2e78db,_0x393b1b,_0xf92934),'s2':_0x8bd4[_0x65a3ca++]^_0x2a0bc0(_0x3494bd,_0xf92934,_0x590202,_0x2e78db,_0x393b1b),'s3':_0x8bd4[_0x65a3ca++]^_0x2a0bc0(_0x3494bd,_0x393b1b,_0xf92934,_0x590202,_0x2e78db)};}function _0x33e543(_0x49b53b){const _0x37f36b=_0x49e982;if(_0x3a1db3(_0x49b53b),_0x49b53b[_0x37f36b(0x375)]%0x10!=0x0)throw Error(_0x37f36b(0x27c));}function _0xba2b11(_0x2f5bd2,_0x3de491,_0x4f575f){const _0x225ae5=_0x49e982;_0x3a1db3(_0x2f5bd2);let _0x2fe432=_0x2f5bd2[_0x225ae5(0x375)],_0x36aa87=_0x2fe432%0x10;if(!_0x3de491&&_0x36aa87!==0x0)throw Error(_0x225ae5(0x215));if(_0x3de491){let _0x5d53ff=0x10-_0x36aa87;_0x5d53ff||(_0x5d53ff=0x10),_0x2fe432+=_0x5d53ff;}_0x4f575f=_0xeae1fe(_0x2fe432,_0x4f575f),_0x469d7a(_0x2f5bd2,_0x4f575f),(!_0x1de324||!_0x50b56c(_0x2f5bd2))&&(_0x2f5bd2=_0x453a6c(_0x2f5bd2));let _0x373496=_0x4313e8(_0x2f5bd2);return _0x38a51c(_0x373496),{'b':_0x373496,'o':_0x4313e8(_0x4f575f),'out':_0x4f575f};}function _0x165db3(_0xa0576a,_0x579ffa){const _0x19a15a=_0x49e982;if(!_0x579ffa)return _0xa0576a;let _0x56f7fc=_0xa0576a[_0x19a15a(0x375)];if(_0x56f7fc===0x0)throw Error(_0x19a15a(0x275));let _0x2adece=_0xa0576a[_0x56f7fc-0x1],_0x88d233=0x1;_0x88d233&=_0x2adece-0x1>>>0x1f^0x1,_0x88d233&=0x10-_0x2adece>>>0x1f^0x1;for(let _0x57036f=0x0;_0x57036f<0x10;_0x57036f++){let _0x293f86=_0x57036f-_0x2adece>>>0x1f,_0x3163bf=+((_0xa0576a[_0x56f7fc-0x1-_0x57036f]^_0x2adece)===0x0);_0x88d233&=_0x3163bf|_0x293f86^0x1;}if(!_0x88d233)throw Error(_0x19a15a(0x29e));return _0xa0576a[_0x19a15a(0x300)](0x0,_0x56f7fc-_0x2adece);}function _0x49217f(_0x43cafa){const _0x3ef88b=_0x49e982;let _0x1066eb=new Uint8Array(0x10),_0x4399ec=_0x4313e8(_0x1066eb);_0x1066eb[_0x3ef88b(0x40d)](_0x43cafa);let _0x5cdd1f=0x10-_0x43cafa[_0x3ef88b(0x375)];for(let _0x30bece=0x10-_0x5cdd1f;_0x30bece<0x10;_0x30bece++)_0x1066eb[_0x30bece]=_0x5cdd1f;return _0x4399ec;}let _0x33c77f=_0x34dbc8({'blockSize':0x10,'nonceLength':0x10},function(_0x1f2d26,_0x53f185,_0x463fa6={}){const _0x3162ec=_0x49e982;let _0x452ae2=!_0x463fa6[_0x3162ec(0x498)];return{'encrypt'(_0x520831,_0x4d9d1a){const _0x1a9062=_0x3162ec;let _0x956e04=_0x22da91(_0x1f2d26),{b:_0x35c1b6,o:_0x45a056,out:_0x5a356b}=_0xba2b11(_0x520831,_0x452ae2,_0x4d9d1a),_0x33e492=_0x53f185,_0x5a9242=[_0x956e04];(!_0x1de324||!_0x50b56c(_0x33e492))&&_0x5a9242[_0x1a9062(0x3a7)](_0x33e492=_0x453a6c(_0x33e492));let _0x17d643=_0x4313e8(_0x33e492);_0x38a51c(_0x17d643);let _0x389c39=_0x17d643[0x0],_0x44b1ba=_0x17d643[0x1],_0x5417c9=_0x17d643[0x2],_0x2ee2f6=_0x17d643[0x3],_0x3ab6d9=0x0;for(;_0x3ab6d9+0x4<=_0x35c1b6[_0x1a9062(0x375)];)_0x389c39^=_0x35c1b6[_0x3ab6d9+0x0],_0x44b1ba^=_0x35c1b6[_0x3ab6d9+0x1],_0x5417c9^=_0x35c1b6[_0x3ab6d9+0x2],_0x2ee2f6^=_0x35c1b6[_0x3ab6d9+0x3],{s0:_0x389c39,s1:_0x44b1ba,s2:_0x5417c9,s3:_0x2ee2f6}=_0x2288f8(_0x956e04,_0x389c39,_0x44b1ba,_0x5417c9,_0x2ee2f6),_0x45a056[_0x3ab6d9++]=_0x389c39,_0x45a056[_0x3ab6d9++]=_0x44b1ba,_0x45a056[_0x3ab6d9++]=_0x5417c9,_0x45a056[_0x3ab6d9++]=_0x2ee2f6;if(_0x452ae2){let _0x65d08e=_0x49217f(_0x520831[_0x1a9062(0x300)](_0x3ab6d9*0x4));_0x38a51c(_0x65d08e),_0x389c39^=_0x65d08e[0x0],_0x44b1ba^=_0x65d08e[0x1],_0x5417c9^=_0x65d08e[0x2],_0x2ee2f6^=_0x65d08e[0x3],{s0:_0x389c39,s1:_0x44b1ba,s2:_0x5417c9,s3:_0x2ee2f6}=_0x2288f8(_0x956e04,_0x389c39,_0x44b1ba,_0x5417c9,_0x2ee2f6),_0x45a056[_0x3ab6d9++]=_0x389c39,_0x45a056[_0x3ab6d9++]=_0x44b1ba,_0x45a056[_0x3ab6d9++]=_0x5417c9,_0x45a056[_0x3ab6d9++]=_0x2ee2f6;}return _0x38a51c(_0x45a056),_0x5bd24a(..._0x5a9242),_0x5a356b;},'decrypt'(_0x36e9d0,_0x5ce84b){const _0x46a921=_0x3162ec;_0x33e543(_0x36e9d0);let _0x1d4085=_0x12907a(_0x1f2d26),_0x22eafd=_0x53f185,_0x23a16c=[_0x1d4085];(!_0x1de324||!_0x50b56c(_0x22eafd))&&_0x23a16c[_0x46a921(0x3a7)](_0x22eafd=_0x453a6c(_0x22eafd));let _0x54ae1d=_0x4313e8(_0x22eafd);_0x38a51c(_0x54ae1d),_0x5ce84b=_0xeae1fe(_0x36e9d0[_0x46a921(0x375)],_0x5ce84b),_0x469d7a(_0x36e9d0,_0x5ce84b),(!_0x1de324||!_0x50b56c(_0x36e9d0))&&_0x23a16c[_0x46a921(0x3a7)](_0x36e9d0=_0x453a6c(_0x36e9d0));let _0x3bd976=_0x4313e8(_0x36e9d0),_0x44eb97=_0x4313e8(_0x5ce84b);_0x38a51c(_0x3bd976);let _0x5b9beb=_0x54ae1d[0x0],_0x16ecc6=_0x54ae1d[0x1],_0x208ec1=_0x54ae1d[0x2],_0x51b547=_0x54ae1d[0x3];for(let _0x271470=0x0;_0x271470+0x4<=_0x3bd976[_0x46a921(0x375)];){let _0x168a1a=_0x5b9beb,_0x24f2a3=_0x16ecc6,_0x4bf45f=_0x208ec1,_0xce310=_0x51b547;_0x5b9beb=_0x3bd976[_0x271470+0x0],_0x16ecc6=_0x3bd976[_0x271470+0x1],_0x208ec1=_0x3bd976[_0x271470+0x2],_0x51b547=_0x3bd976[_0x271470+0x3];let {s0:_0x20dfe9,s1:_0xaf35ac,s2:_0x1f28a0,s3:_0x1eb20c}=_0x20d06a(_0x1d4085,_0x5b9beb,_0x16ecc6,_0x208ec1,_0x51b547);_0x44eb97[_0x271470++]=_0x20dfe9^_0x168a1a,_0x44eb97[_0x271470++]=_0xaf35ac^_0x24f2a3,_0x44eb97[_0x271470++]=_0x1f28a0^_0x4bf45f,_0x44eb97[_0x271470++]=_0x1eb20c^_0xce310;}return _0x38a51c(_0x44eb97),_0x5bd24a(..._0x23a16c),_0x165db3(_0x5ce84b,_0x452ae2);}};});function _0x133680(_0x2a9d18){const _0x557188=_0x49e982;let _0x206631=atob(_0x2a9d18),_0x5af320=new Uint8Array(_0x206631[_0x557188(0x375)]);for(let _0x295bf2=0x0;_0x295bf2<_0x206631[_0x557188(0x375)];_0x295bf2++)_0x5af320[_0x295bf2]=_0x206631[_0x557188(0x3db)](_0x295bf2);return _0x5af320;}function _0x1e0d4a(_0x530f4a){const _0x2fb35a=_0x49e982;let _0x21c4dc='';for(let _0x4521cf=0x0;_0x4521cf<_0x530f4a[_0x2fb35a(0x375)];_0x4521cf++)_0x21c4dc+=String[_0x2fb35a(0x1b2)](_0x530f4a[_0x4521cf]);return btoa(_0x21c4dc);}function _0x479689(_0x14607f,_0x45e624){const _0x543b80=_0x49e982;let _0x349511=_0x133680(_0x45e624),_0xb35203=_0x4cc18b(0x10);return _0x1e0d4a(_0x1cf731(_0xb35203,_0x33c77f(_0x349511,_0xb35203)[_0x543b80(0x1d7)](_0x31d64a(_0x14607f))));}function _0x53683d(){const _0x3a751c=_0x49e982;let _0x369f07=(0x0,_0x53a146[_0x3a751c(0x320)])()[_0x3a751c(0x4a4)];if(typeof window<'u'&&window[_0x3a751c(0x234)]!==void 0x0&&_0x369f07){let _0x217fdb={'time':Math[_0x3a751c(0x2b0)](Date[_0x3a751c(0x2b7)]()/0x3e8),'domain':location['hostname']};return _0x479689(JSON[_0x3a751c(0x205)](_0x217fdb),_0x369f07);}}let _0xa1681=class{constructor(_0x36b738){const _0x5d88fd=_0x49e982;this[_0x5d88fd(0x1af)]=_0x36b738,this[_0x5d88fd(0x309)]();}['_initRequestHeader'](){const _0x3b42a3=_0x49e982;this[_0x3b42a3(0x1af)][_0x3b42a3(0x1ec)]({'interceptor':(_0x29f06a,_0xde5952)=>{const _0x3e5e1e=_0x3b42a3;let _0x5d11da=_0x53683d();return _0x5d11da&&_0x29f06a[_0x3e5e1e(0x213)]['set'](_0x3e5e1e(0x36f),_0x5d11da),_0xde5952(_0x29f06a);}});}};_0xa1681=_0x433d1e([_0x25be6b(0x0,(0x0,_0x2ef5c0['Inject'])(_0xa3a4ef['HTTPService']))],_0xa1681);let _0x24dcaa=class extends _0x2ef5c0[_0x49e982(0x1aa)]{constructor(_0x52bbf5,_0x3714a5,_0x278b9f){const _0x342c36=_0x49e982;super(),this['_logService']=_0x52bbf5,this[_0x342c36(0x2a1)]=_0x3714a5,this[_0x342c36(0x49e)]=_0x278b9f,_0xa76697(this,_0x342c36(0x296),new _0x4d6dfb[(_0x342c36(0x1dc))](null)),_0xa76697(this,_0x342c36(0x3de),new _0x4d6dfb[(_0x342c36(0x235))]()),_0xa76697(this,_0x342c36(0x23c),this[_0x342c36(0x296)]['asObservable']()),_0xa76697(this,'unitLoaded$',this[_0x342c36(0x3de)][_0x342c36(0x21d)]());}[_0x49e982(0x247)](){const _0xa93934=_0x49e982;super['dispose'](),this[_0xa93934(0x3de)]['complete'](),this[_0xa93934(0x296)][_0xa93934(0x4d8)]();}async[_0x49e982(0x25a)](_0x4803ea,_0x323fd3,_0x2a1dd7){const _0x489388=_0x49e982;this[_0x489388(0x296)][_0x489388(0x368)]({'unitId':_0x4803ea,'type':_0x323fd3});let _0x327ab5=null;switch(_0x323fd3){case _0x2ef5c0['UniverInstanceType'][_0x489388(0x1f6)]:_0x327ab5=await this['_snapshotService'][_0x489388(0x4b1)](_0x4803ea,_0x2a1dd7);break;case _0x2ef5c0[_0x489388(0x401)]['UNIVER_DOC']:_0x327ab5=await this['_snapshotService'][_0x489388(0x40a)](_0x4803ea,_0x2a1dd7);break;case _0x2ef5c0[_0x489388(0x401)][_0x489388(0x2a9)]:_0x327ab5=await this[_0x489388(0x2a1)][_0x489388(0x427)](_0x4803ea,_0x2a1dd7);break;case _0x2ef5c0['UniverInstanceType'][_0x489388(0x369)]:_0x327ab5=await this[_0x489388(0x2a1)]['loadBase'](_0x4803ea,_0x2a1dd7);break;default:this[_0x489388(0x271)][_0x489388(0x438)](_0x489388(0x49f),_0x489388(0x39d));break;}return _0x327ab5&&this['_unitLoaded$']['next'](_0x327ab5),_0x327ab5;}async[_0x49e982(0x2e2)](_0x28406a,_0x3d3208,_0x8c3435){const _0x148af5=_0x49e982;var _0x313e84;this[_0x148af5(0x296)][_0x148af5(0x368)]({'unitId':_0x28406a,'type':_0x3d3208,'subUnitId':_0x8c3435});let _0x1617fd=0x0,_0x1c4208=await((_0x313e84=this[_0x148af5(0x49e)])==null?void 0x0:_0x313e84[_0x148af5(0x423)](_0x28406a));return _0x1c4208&&(_0x1c4208[_0x148af5(0x428)]||_0x1c4208[_0x148af5(0x3ca)][_0x148af5(0x375)]!==0x0)&&(_0x1617fd=_0x1c4208[_0x148af5(0x44a)]),_0x1617fd===0x0&&this['_logService'][_0x148af5(0x4ad)](_0x148af5(0x49f),_0x148af5(0x214)),this[_0x148af5(0x25a)](_0x28406a,_0x3d3208,_0x1617fd);}};_0x24dcaa=_0x433d1e([_0x25be6b(0x0,_0x2ef5c0[_0x49e982(0x342)]),_0x25be6b(0x1,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x3f9d12['SnapshotService'])),_0x25be6b(0x2,(0x0,_0x2ef5c0[_0x49e982(0x4bf)])(_0x497ec1))],_0x24dcaa);let _0x3d1f6c=class{constructor(_0x282888,_0x3a6c9a,_0x46c665){const _0x1a0545=_0x49e982;this['_httpService']=_0x282888,this[_0x1a0545(0x28b)]=_0x3a6c9a,this[_0x1a0545(0x4cb)]=_0x46c665,_0xa76697(this,_0x1a0545(0x267),0x0),_0xa76697(this,_0x1a0545(0x44d),new _0x4d6dfb[(_0x1a0545(0x235))]()),_0xa76697(this,'change$',this[_0x1a0545(0x44d)]),_0xa76697(this,_0x1a0545(0x47b),new Map());}[_0x49e982(0x288)](_0x314dc0){const _0x345135=_0x49e982;this[_0x345135(0x267)]=_0x314dc0,this['_change$'][_0x345135(0x368)](_0x314dc0);}[_0x49e982(0x223)](_0x1aebb8,_0x373a9c){const _0x3c60a5=_0x49e982;if(_0x373a9c===_0x119fcf[_0x3c60a5(0x31e)]['BASE64']){let _0x171af3=new Image();return _0x171af3[_0x3c60a5(0x3bb)]=_0x1aebb8,_0x171af3;}return this[_0x3c60a5(0x47b)][_0x3c60a5(0x203)](_0x1aebb8);}[_0x49e982(0x404)](_0x806233,_0x50f806,_0x5aa453){const _0x49c61a=_0x49e982;_0x50f806===_0x119fcf['ImageSourceType']['BASE64']||_0x5aa453==null||this[_0x49c61a(0x47b)][_0x49c61a(0x40d)](_0x806233,_0x5aa453);}async[_0x49e982(0x310)](_0x3dca0f){const _0x225646=_0x49e982;try{let _0x4a2145=this[_0x225646(0x1ea)](this[_0x225646(0x295)](),''+_0x3dca0f),_0x1d5ff0=(await this[_0x225646(0x1af)]['get'](_0x4a2145))[_0x225646(0x3ae)];if(_0x1d5ff0[_0x225646(0x438)]&&_0x1d5ff0['error']['code']===_0x514d55[_0x225646(0x487)]['OK']){let _0x3cea6b=(0x0,_0x2ef5c0[_0x225646(0x3a4)])(_0x1d5ff0[_0x225646(0x32c)],this[_0x225646(0x2d0)]());return Promise[_0x225646(0x2dc)](_0x3cea6b);}return Promise[_0x225646(0x26f)](_0x1d5ff0['error']);}catch(_0x85b842){return Promise[_0x225646(0x26f)](_0x85b842);}}async[_0x49e982(0x3c2)](_0x302c6e){const _0x4263a2=_0x49e982;let _0x3fb7ba='';if(!_0x119fcf[_0x4263a2(0x45b)][_0x4263a2(0x1ca)](_0x302c6e[_0x4263a2(0x41b)]))return this[_0x4263a2(0x1f0)](),Promise[_0x4263a2(0x26f)](Error(_0x119fcf['ImageUploadStatusType'][_0x4263a2(0x451)]));if(_0x302c6e['size']>(0x0,_0x119fcf[_0x4263a2(0x46a)])())return this[_0x4263a2(0x1f0)](),Promise[_0x4263a2(0x26f)](Error(_0x119fcf[_0x4263a2(0x207)]['ERROR_EXCEED_SIZE']));try{let _0x9bf786=new FormData();_0x9bf786[_0x4263a2(0x496)](_0x4263a2(0x2d4),_0x302c6e);let _0x4d17fa=this['_univerInstanceService'][_0x4263a2(0x20d)](),_0x4d2475=_0x4d17fa==null?void 0x0:_0x4d17fa[_0x4263a2(0x2c2)]();if(!_0x4d2475)throw Error('unitId\x20is\x20not\x20found');let _0x5a62f3=this['_getUploadFileURL']()+_0x4263a2(0x236)+_0x302c6e['size'][_0x4263a2(0x286)]()+_0x4263a2(0x373)+_0x514d55['FileSource'][_0x4263a2(0x3a1)]+_0x4263a2(0x357)+encodeURIComponent(_0x4d2475),_0x340769={'body':_0x9bf786},_0x565d3f=(await this[_0x4263a2(0x1af)][_0x4263a2(0x4e3)](_0x5a62f3,_0x340769))[_0x4263a2(0x3ae)];if(typeof _0x565d3f[_0x4263a2(0x43a)]!=_0x4263a2(0x3ed))return this['_decreaseWaiting'](),Promise[_0x4263a2(0x26f)](Error(_0x119fcf['ImageUploadStatusType'][_0x4263a2(0x2c9)]));_0x3fb7ba=_0x565d3f[_0x4263a2(0x43a)];}catch{return this[_0x4263a2(0x1f0)](),Promise[_0x4263a2(0x26f)](Error(_0x119fcf[_0x4263a2(0x207)][_0x4263a2(0x2c9)]));}return new Promise((_0x5bc127,_0x2b2e89)=>{const _0x4cb724=_0x4263a2;let _0x3de9d8=new FileReader();_0x3de9d8[_0x4cb724(0x38f)](_0x302c6e),_0x3de9d8['onload']=_0x19b8c8=>{const _0x1d59ad=_0x4cb724;var _0x10c6c8;let _0x168b8b=(_0x10c6c8=_0x19b8c8['target'])==null?void 0x0:_0x10c6c8[_0x1d59ad(0x374)];if(_0x168b8b==null){this['_decreaseWaiting'](),_0x2b2e89(Error(_0x119fcf[_0x1d59ad(0x207)][_0x1d59ad(0x2c9)]));return;}_0x5bc127({'imageId':(0x0,_0x2ef5c0[_0x1d59ad(0x1a9)])(0x6),'imageSourceType':_0x119fcf[_0x1d59ad(0x31e)][_0x1d59ad(0x334)],'source':_0x3fb7ba,'base64Cache':_0x168b8b,'status':_0x119fcf[_0x1d59ad(0x207)][_0x1d59ad(0x3c6)]}),this[_0x1d59ad(0x1f0)]();};});}[_0x49e982(0x36a)](){const _0x315193=_0x49e982;var _0x3e5364;let _0x40ba45=this[_0x315193(0x28b)][_0x315193(0x462)](_0x138b5f);return(_0x3e5364=_0x40ba45==null?void 0x0:_0x40ba45[_0x315193(0x4d6)])==null?_0x315193(0x4de):_0x3e5364;}[_0x49e982(0x295)](){const _0x49b82f=_0x49e982;var _0x50f98c;let _0x27d835=this[_0x49b82f(0x28b)][_0x49b82f(0x462)](_0x138b5f);return(_0x50f98c=_0x27d835==null?void 0x0:_0x27d835[_0x49b82f(0x46c)])==null?'/universer-api/file/{fileID}/sign-url':_0x50f98c;}[_0x49e982(0x2d0)](){const _0x2a0c32=_0x49e982;var _0x4a67f5;let _0x489b36=this['_configService'][_0x2a0c32(0x462)](_0x138b5f);return(_0x4a67f5=_0x489b36==null?void 0x0:_0x489b36[_0x2a0c32(0x388)])==null?location[_0x2a0c32(0x47e)]:_0x4a67f5;}[_0x49e982(0x1ea)](_0x14b75f,_0xcf802){const _0x1785a9=_0x49e982;return _0x14b75f[_0x1785a9(0x1c6)](_0x1785a9(0x3f7),_0xcf802);}[_0x49e982(0x1f0)](){const _0x49c896=_0x49e982;--this[_0x49c896(0x267)],this[_0x49c896(0x44d)][_0x49c896(0x368)](this[_0x49c896(0x267)]);}};_0x3d1f6c=_0x433d1e([_0x25be6b(0x0,(0x0,_0x2ef5c0['Inject'])(_0xa3a4ef[_0x49e982(0x4ce)])),_0x25be6b(0x1,_0x2ef5c0[_0x49e982(0x35c)]),_0x25be6b(0x2,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0[_0x49e982(0x20c)]))],_0x3d1f6c);let _0x3c7660=class{constructor(_0x2f0441,_0x1fcb4d){const _0x7820a3=_0x49e982;this[_0x7820a3(0x28b)]=_0x2f0441,this[_0x7820a3(0x477)]=_0x1fcb4d;}['_getAPIPrefixPath'](){const _0x26ede9=_0x49e982;var _0x6192dc;let _0x1cfe2b=this[_0x26ede9(0x28b)][_0x26ede9(0x462)](_0x138b5f);return(_0x6192dc=_0x1cfe2b==null?void 0x0:_0x1cfe2b['authzUrl'])==null?_0x26ede9(0x21b):_0x6192dc;}async[_0x49e982(0x2ad)](_0x17abe2){const _0x49664e=_0x49e982;let _0x1e1866=this[_0x49664e(0x30d)]()+_0x49664e(0x486);return{'list':[{'title':'People','mentions':(await this[_0x49664e(0x477)][_0x49664e(0x203)](_0x1e1866,{'params':{'objectID':_0x17abe2[_0x49664e(0x30c)],'unitID':_0x17abe2[_0x49664e(0x30c)]}}))[_0x49664e(0x3ae)][_0x49664e(0x2c6)]['map'](_0xd40824=>({'objectId':_0xd40824['id'],'name':_0xd40824[_0x49664e(0x40b)][_0x49664e(0x430)],'metadata':{'icon':_0xd40824[_0x49664e(0x40b)][_0x49664e(0x3b9)]},'label':_0xd40824[_0x49664e(0x40b)][_0x49664e(0x430)],'objectType':_0x2ef5c0[_0x49664e(0x480)][_0x49664e(0x240)]})),'metadata':{},'type':_0x2ef5c0[_0x49664e(0x480)][_0x49664e(0x240)]}]};}};_0x3c7660=_0x433d1e([_0x25be6b(0x0,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0[_0x49e982(0x35c)])),_0x25be6b(0x1,(0x0,_0x2ef5c0['Inject'])(_0xa3a4ef[_0x49e982(0x4ce)]))],_0x3c7660);let _0x1797e9=class extends _0x2ef5c0[_0x49e982(0x1aa)]{constructor(_0x3abedd,_0x7d990,_0x369fc6,_0x112300,_0x52dbb5){const _0xd85d55=_0x49e982;super(),this[_0xd85d55(0x268)]=_0x3abedd,this['_univerInstanceService']=_0x7d990,this[_0xd85d55(0x381)]=_0x369fc6,this[_0xd85d55(0x20e)]=_0x112300,this['_collaborationUIEventService']=_0x52dbb5,this[_0xd85d55(0x394)](),this[_0xd85d55(0x3c4)]();}[_0x49e982(0x3c4)](){const _0x1ec71a=_0x49e982;let _0x2e585e=async _0x4f9c0f=>{const _0x498a59=_0x5107;(await this[_0x498a59(0x20e)][_0x498a59(0x265)](_0x4f9c0f))[_0x498a59(0x255)][_0x498a59(0x349)]((0x0,_0x5df1dd['filter'])(_0x2476eb=>_0x2476eb['eventID']===_0x3f9d12[_0x498a59(0x448)][_0x498a59(0x262)]),(0x0,_0x5df1dd['takeUntil'])(this[_0x498a59(0x2f0)]))['subscribe'](_0x50830b=>{const _0xf50aa6=_0x498a59;let {reason:_0x4af079}=_0x50830b[_0xf50aa6(0x259)];this[_0xf50aa6(0x481)][_0xf50aa6(0x1ee)]({'id':_0xf50aa6(0x3f9),'data':_0x4af079}),this['_permissionService'][_0xf50aa6(0x1f2)](new _0x15be79['WorkbookEditablePermission'](_0x4f9c0f)['id'],!0x1),this[_0xf50aa6(0x20e)][_0xf50aa6(0x47a)](_0x4f9c0f);});};(0x0,_0x4d6dfb[_0x1ec71a(0x228)])(this[_0x1ec71a(0x4cb)]['getTypeOfUnitAdded$'](_0x2ef5c0['UniverInstanceType'][_0x1ec71a(0x1f6)]),this['_univerInstanceService'][_0x1ec71a(0x1dd)](_0x2ef5c0[_0x1ec71a(0x401)][_0x1ec71a(0x33e)]),this[_0x1ec71a(0x4cb)][_0x1ec71a(0x1dd)](_0x2ef5c0[_0x1ec71a(0x401)][_0x1ec71a(0x369)]))[_0x1ec71a(0x349)]((0x0,_0x5df1dd[_0x1ec71a(0x431)])(_0x303ce6=>_0x303ce6[_0x1ec71a(0x34b)][_0x1ec71a(0x2c2)]()),(0x0,_0x5df1dd['filter'])(_0x70af8a=>!(0x0,_0x2ef5c0[_0x1ec71a(0x3dd)])(_0x70af8a)),(0x0,_0x5df1dd[_0x1ec71a(0x2f5)])(this[_0x1ec71a(0x2f0)]))[_0x1ec71a(0x478)](_0x4f0503=>{_0x2e585e(_0x4f0503);});}['_initUnitPermissionChange'](){const _0xbc0a6b=_0x49e982;let _0x3dad9b=async _0x55199d=>{const _0xb6c38=_0x5107;let _0x220df7=await this['_collaborationSessionService']['requireSession'](_0x55199d),_0x577990=this[_0xb6c38(0x268)]['get'](_0x15be79[_0xb6c38(0x3e9)]);_0x220df7[_0xb6c38(0x255)][_0xb6c38(0x349)]((0x0,_0x5df1dd[_0xb6c38(0x36d)])(_0x25ad89=>_0x25ad89[_0xb6c38(0x469)]===_0x3f9d12[_0xb6c38(0x448)][_0xb6c38(0x3da)]),(0x0,_0x5df1dd[_0xb6c38(0x2f5)])(this[_0xb6c38(0x2f0)]))[_0xb6c38(0x478)](_0x1f3169=>{const _0x35b692=_0xb6c38;let {objectId:_0x1c052c}=_0x1f3169[_0x35b692(0x259)];_0x1c052c===_0x55199d?_0x577990['initWorkbookPermissionChange'](_0x55199d):_0x577990[_0x35b692(0x1f8)](_0x55199d,_0x1c052c);});};(0x0,_0x4d6dfb['merge'])(this[_0xbc0a6b(0x4cb)][_0xbc0a6b(0x1dd)](_0x2ef5c0[_0xbc0a6b(0x401)][_0xbc0a6b(0x1f6)]))[_0xbc0a6b(0x349)]((0x0,_0x5df1dd[_0xbc0a6b(0x431)])(_0x33a935=>_0x33a935[_0xbc0a6b(0x34b)][_0xbc0a6b(0x2c2)]()),(0x0,_0x5df1dd['filter'])(_0x36baae=>!(0x0,_0x2ef5c0[_0xbc0a6b(0x3dd)])(_0x36baae)),(0x0,_0x5df1dd['takeUntil'])(this['dispose$']))[_0xbc0a6b(0x478)](_0x18e220=>{_0x3dad9b(_0x18e220);});}};_0x1797e9=_0x433d1e([_0x25be6b(0x0,(0x0,_0x2ef5c0['Inject'])(_0x2ef5c0[_0x49e982(0x2fe)])),_0x25be6b(0x1,_0x2ef5c0[_0x49e982(0x20c)]),_0x25be6b(0x2,_0x2ef5c0[_0x49e982(0x37e)]),_0x25be6b(0x3,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x429482)),_0x25be6b(0x4,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x4d282d))],_0x1797e9);let _0x362456=class{constructor(_0x490c67,_0x452d5e){const _0x23c7a2=_0x49e982;this[_0x23c7a2(0x28b)]=_0x490c67,this['_httpService']=_0x452d5e;}async[_0x49e982(0x40c)](_0x44c2c9,_0x4cfedf){const _0x5bb968=_0x49e982;var _0x2df994;let {unitID:_0x532980,type:_0x339fb1,revision:_0x59bd76=0x0}=_0x4cfedf,_0x7864a2=this[_0x5bb968(0x3a6)]()+'/'+_0x339fb1+_0x5bb968(0x3b1)+_0x532980+_0x5bb968(0x290)+_0x59bd76,_0x512a6b=(await this[_0x5bb968(0x1af)][_0x5bb968(0x203)](_0x7864a2))[_0x5bb968(0x3ae)],_0x592a07=(_0x2df994=_0x512a6b[_0x5bb968(0x2f2)])==null?void 0x0:_0x2df994[_0x5bb968(0x419)];if(_0x592a07){let _0x3b0072=_0x592a07==null?void 0x0:_0x592a07['originalMeta'];_0x592a07['originalMeta']=_0x3f9d12['textEncoder'][_0x5bb968(0x41a)]((0x0,_0x3f9d12['b64DecodeUnicode'])(_0x3b0072)),Object[_0x5bb968(0x27f)](_0x592a07[_0x5bb968(0x441)])[_0x5bb968(0x293)](([,_0x57c404])=>{const _0x257394=_0x5bb968;let _0xfa51ec=_0x57c404[_0x257394(0x307)];_0x57c404[_0x257394(0x307)]=_0x3f9d12['textEncoder']['encode']((0x0,_0x3f9d12[_0x257394(0x25f)])(_0xfa51ec));});}return _0x512a6b;}async[_0x49e982(0x1c4)](_0x2ade56,_0x21f5fc){const _0x204117=_0x49e982;let {unitID:_0x579f1b,type:_0x26456a,blockID:_0x664ef8}=_0x21f5fc,_0x2e05c2=this['_getAPIPrefix']()+'/'+_0x26456a+'/unit/'+_0x579f1b+'/block/'+_0x664ef8;return(await this[_0x204117(0x1af)]['get'](_0x2e05c2))[_0x204117(0x3ae)];}async['getDeserializedSheetBlock'](_0x315b20,_0x12f9bf){const _0x542f57=_0x49e982;let {unitID:_0xae350b,type:_0x3f4a76,blockID:_0x30b325}=_0x12f9bf,_0x24013a=this[_0x542f57(0x48c)]()+'/block/'+_0x3f4a76+_0x542f57(0x3b1)+_0xae350b+'/block/'+_0x30b325;return(await this[_0x542f57(0x1af)][_0x542f57(0x203)](_0x24013a))[_0x542f57(0x3ae)];}async['fetchMissingChangesets'](_0x26399a,_0x477649){const _0x1d7bb2=_0x49e982;let {unitID:_0x16d285,type:_0x79be57,from:_0x478b79,to:_0x5684db}=_0x477649,_0x3c45b4=this[_0x1d7bb2(0x48c)]()+'/'+_0x79be57+_0x1d7bb2(0x3b1)+_0x16d285+_0x1d7bb2(0x433)+_0x478b79+_0x1d7bb2(0x2db)+_0x5684db;return(await this['_httpService']['get'](_0x3c45b4))['body'];}['getSnapshotAPIPath'](){const _0x45c97a=_0x49e982;var _0x174949;return(_0x174949=this['_configService'][_0x45c97a(0x462)]('SNAPSHOT_URL_KEY'))==null?this[_0x45c97a(0x48c)]():_0x174949;}[_0x49e982(0x48c)](){const _0xded1f9=_0x49e982;var _0x5a7c77;let _0x45f935=this[_0xded1f9(0x28b)][_0xded1f9(0x462)](_0x138b5f);return(_0x5a7c77=_0x45f935==null?void 0x0:_0x45f935[_0xded1f9(0x420)])==null?'/universer-api/snapshot':_0x5a7c77;}async[_0x49e982(0x4d3)](_0x359919,_0x34cbeb){const _0x1a2a74=_0x49e982;let _0x4c4d95='/universer-api/snapshot/'+_0x34cbeb[_0x1a2a74(0x41b)]+'/unit/'+_0x34cbeb[_0x1a2a74(0x220)]+_0x1a2a74(0x2a4);return(await this[_0x1a2a74(0x1af)][_0x1a2a74(0x203)](_0x4c4d95,{'params':{'resourceId':JSON[_0x1a2a74(0x205)](_0x34cbeb[_0x1a2a74(0x1ba)])}}))[_0x1a2a74(0x3ae)];}[_0x49e982(0x201)](){const _0x4c84c1=_0x49e982;throw Error(_0x4c84c1(0x2df));}[_0x49e982(0x42e)](){const _0x15d0ce=_0x49e982;throw Error(_0x15d0ce(0x2df));}[_0x49e982(0x253)](){const _0x2bbfeb=_0x49e982;throw Error(_0x2bbfeb(0x2df));}[_0x49e982(0x468)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x49e982(0x432)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x49e982(0x231)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};_0x362456=_0x433d1e([_0x25be6b(0x0,_0x2ef5c0[_0x49e982(0x35c)]),_0x25be6b(0x1,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0xa3a4ef[_0x49e982(0x4ce)]))],_0x362456);let _0x2bfb2a=class extends _0x2ef5c0[_0x49e982(0x4ca)]{constructor(_0x45d463,_0x3eeb98,_0x11113e,_0x4b949d,_0x144a46){const _0x4c97e2=_0x49e982;super(_0x45d463,_0x3eeb98,_0x11113e),this[_0x4c97e2(0x331)]=_0x4b949d,this[_0x4c97e2(0x271)]=_0x144a46;}['transformUndoRedo'](_0x3063ce,_0x566de0){const _0x59bb9d=_0x49e982;let _0x336b2a=this['_getUndoStack'](_0x3063ce);if(_0x336b2a)try{let _0x6ef9aa=this[_0x59bb9d(0x2a2)](_0x336b2a,_0x566de0);this['_substituteUndoStack'](_0x3063ce,_0x6ef9aa);}catch(_0x43d98b){this[_0x59bb9d(0x271)][_0x59bb9d(0x438)]('[CollaborationUndoRedoService]',_0x43d98b),this[_0x59bb9d(0x28e)](_0x3063ce);}let _0x218bd4=this[_0x59bb9d(0x45a)](_0x3063ce);if(_0x218bd4)try{let _0x5af9c7=this[_0x59bb9d(0x2a2)](_0x218bd4,_0x566de0);this[_0x59bb9d(0x402)](_0x3063ce,_0x5af9c7);}catch(_0x2b1c9e){this[_0x59bb9d(0x271)][_0x59bb9d(0x438)](_0x2b1c9e),this[_0x59bb9d(0x29f)](_0x3063ce);}}[_0x49e982(0x28e)](_0x44a25f){const _0x41a750=_0x49e982;let _0x5e438f=this['_getUndoStack'](_0x44a25f);_0x5e438f&&(_0x5e438f[_0x41a750(0x375)]=0x0,this[_0x41a750(0x4b3)]());}[_0x49e982(0x29f)](_0x217465){const _0x5974b3=_0x49e982;let _0x48c27f=this['_getRedoStack'](_0x217465);_0x48c27f&&(_0x48c27f[_0x5974b3(0x375)]=0x0,this['_updateStatus']());}[_0x49e982(0x473)](_0x4c4161,_0x1b91e2){const _0x57c7fb=_0x49e982;this[_0x57c7fb(0x285)][_0x57c7fb(0x40d)](_0x4c4161,_0x1b91e2),this[_0x57c7fb(0x4b3)]();}[_0x49e982(0x402)](_0x2aa4e8,_0x543f83){const _0x2643cb=_0x49e982;this['_redoStacks'][_0x2643cb(0x40d)](_0x2aa4e8,_0x543f83),this[_0x2643cb(0x4b3)]();}['_transformStack'](_0x170745,_0x3be26b){const _0x43505b=_0x49e982;let _0x2e46ee=[],_0x17c413=_0x3be26b,_0x61b51b=_0x3be26b;for(let _0x4bb675=_0x170745[_0x43505b(0x375)]-0x1;_0x4bb675>=0x0;_0x4bb675--){let {unitID:_0xba07da,undoMutations:_0x337900,redoMutations:_0x28cecb}=_0x170745[_0x4bb675],_0x2fe441=this['_transformService'][_0x43505b(0x4a9)](_0x17c413,_0x337900),_0x1d1f8f=this['_transformService']['transformMutationsWithChangeset'](_0x61b51b,_0x28cecb);if((0x0,_0x3f9d12['isTransformMutationsWithChangesetFailure'])(_0x2fe441)||(0x0,_0x3f9d12['isTransformMutationsWithChangesetFailure'])(_0x1d1f8f)){this['_logService'][_0x43505b(0x438)](_0x43505b(0x3fa),_0x43505b(0x2c7),_0x2fe441,_0x1d1f8f);break;}_0x17c413=_0x2fe441[_0x43505b(0x38e)],_0x61b51b=_0x1d1f8f[_0x43505b(0x38e)],_0x2e46ee['push']({'unitID':_0xba07da,'undoMutations':_0x2fe441['m2Prime'],'redoMutations':_0x1d1f8f[_0x43505b(0x3df)]});}return _0x2e46ee[_0x43505b(0x3e6)]();}};_0x2bfb2a=_0x433d1e([_0x25be6b(0x0,_0x2ef5c0['IUniverInstanceService']),_0x25be6b(0x1,_0x2ef5c0[_0x49e982(0x44b)]),_0x25be6b(0x2,_0x2ef5c0[_0x49e982(0x380)]),_0x25be6b(0x3,_0x3f9d12['ITransformService']),_0x25be6b(0x4,_0x2ef5c0[_0x49e982(0x342)])],_0x2bfb2a);let _0xaafff2=class extends _0x2ef5c0[_0x49e982(0x43c)]{constructor(_0x1ac6f5=_0x49afe0,_0x34913a,_0x21bd1b,_0x42e174){const _0x2fac36=_0x49e982;super(),this[_0x2fac36(0x1d4)]=_0x1ac6f5,this[_0x2fac36(0x271)]=_0x34913a,this[_0x2fac36(0x268)]=_0x21bd1b,this['_configService']=_0x42e174;let {..._0xbae425}=(0x0,_0x2ef5c0[_0x2fac36(0x228)])({},_0x49afe0,this[_0x2fac36(0x1d4)]);if(!_0xbae425[_0x2fac36(0x43d)])throw Error(_0x2fac36(0x200));this[_0x2fac36(0x1d4)]=_0xbae425,this[_0x2fac36(0x28b)][_0x2fac36(0x27a)](_0x138b5f,_0xbae425);}[_0x49e982(0x414)](){const _0x54dbb5=_0x49e982;this[_0x54dbb5(0x4ab)](),this[_0x54dbb5(0x3b4)]();}['_registerDependencies'](){const _0x34bf93=_0x49e982;var _0x5d716e,_0x1f1805;this[_0x34bf93(0x268)][_0x34bf93(0x35e)](_0x2ef5c0[_0x34bf93(0x4a3)])&&this[_0x34bf93(0x271)][_0x34bf93(0x438)](_0x34bf93(0x4b7),_0x34bf93(0x3f1));let _0xa9125f=(0x0,_0x2ef5c0[_0x34bf93(0x2b3)])([[_0x2ef5c0[_0x34bf93(0x4a3)],{'useClass':_0x2bfb2a}],[_0x429482],[_0x5ad22b],[_0x510d83],[_0x2fa1dd],[_0xa1681],[_0x1f4c07],[_0x1797e9],[_0x4d282d],[_0x24dcaa],[_0x5902c5,{'useClass':this[_0x34bf93(0x1d4)][_0x34bf93(0x43d)]}],[_0x3f9d12[_0x34bf93(0x3f2)],{'useClass':_0x362456}],[_0x2ef5c0[_0x34bf93(0x49a)],{'useClass':_0x39d7fc}],[_0x119fcf[_0x34bf93(0x1b4)],{'useClass':_0x3d1f6c}],[_0x2597a6,{'useClass':_0x1b2349}],[_0x2ef5c0[_0x34bf93(0x2f1)],{'useClass':_0x3c7660}],[_0x3b2987],[_0x324805]],(_0x5d716e=this['_config'])==null?void 0x0:_0x5d716e[_0x34bf93(0x1e7)]);if(!((_0x1f1805=this[_0x34bf93(0x1d4)])!=null&&_0x1f1805[_0x34bf93(0x1bb)])){let _0x39c306=_0xa9125f[_0x34bf93(0x3b2)](([_0x2930ce])=>_0x2930ce===_0xc4da01);_0x39c306!==-0x1&&_0xa9125f[_0x34bf93(0x202)](_0x39c306,0x1);}(0x0,_0x2ef5c0['registerDependencies'])(this['_injector'],_0xa9125f);}[_0x49e982(0x3b4)](){const _0x2b3d18=_0x49e982;var _0x575f3f,_0x3a132d;if(this[_0x2b3d18(0x268)][_0x2b3d18(0x203)](_0xa3a4ef['HTTPService'])[_0x2b3d18(0x1ec)]({'priority':0x14,'interceptor':(0x0,_0xa3a4ef[_0x2b3d18(0x425)])({'maxParallel':0x6})}),!((_0x575f3f=this[_0x2b3d18(0x1d4)])!=null&&_0x575f3f['enableOfflineEditing'])){var _0x5edd82;(_0x5edd82=this[_0x2b3d18(0x268)]['get'](_0x497ec1,_0x2ef5c0[_0x2b3d18(0x365)]['OPTIONAL']))==null||_0x5edd82[_0x2b3d18(0x28a)]();}(_0x3a132d=this['_config'])!=null&&_0x3a132d['enableAuthServer']&&(0x0,_0x2ef5c0[_0x2b3d18(0x32f)])(this[_0x2b3d18(0x268)],[[_0x2fa1dd]]),(0x0,_0x2ef5c0[_0x2b3d18(0x32f)])(this[_0x2b3d18(0x268)],[[_0xa1681],[_0x3b2987],[_0x1797e9]]);}};_0xa76697(_0xaafff2,'pluginName',_0x49e982(0x4cc)),_0xa76697(_0xaafff2,_0x49e982(0x363),_0x36abf5),_0xa76697(_0xaafff2,_0x49e982(0x239),_0x2f77e4),_0xaafff2=_0x433d1e([(0x0,_0x2ef5c0['DependentOn'])(_0x53a146[_0x49e982(0x3a2)],_0x3f9d12['UniverCollaborationPlugin'],_0xa3a4ef['UniverNetworkPlugin']),_0x25be6b(0x1,_0x2ef5c0[_0x49e982(0x342)]),_0x25be6b(0x2,(0x0,_0x2ef5c0[_0x49e982(0x42b)])(_0x2ef5c0[_0x49e982(0x2fe)])),_0x25be6b(0x3,_0x2ef5c0['IConfigService'])],_0xaafff2),_0x422771[_0x49e982(0x2a5)]=_0x513d58,Object['defineProperty'](_0x422771,_0x49e982(0x269),{'enumerable':!0x0,'get':function(){return _0x39d7fc;}}),Object[_0x49e982(0x385)](_0x422771,_0x49e982(0x257),{'enumerable':!0x0,'get':function(){return _0x4179f7;}}),Object[_0x49e982(0x385)](_0x422771,_0x49e982(0x45e),{'enumerable':!0x0,'get':function(){return _0xc592c2;}}),_0x422771[_0x49e982(0x27b)]=_0x138b5f,Object[_0x49e982(0x385)](_0x422771,_0x49e982(0x1e3),{'enumerable':!0x0,'get':function(){return _0x1b2349;}}),Object[_0x49e982(0x385)](_0x422771,_0x49e982(0x38b),{'enumerable':!0x0,'get':function(){return _0x3b2987;}}),Object[_0x49e982(0x385)](_0x422771,_0x49e982(0x4cd),{'enumerable':!0x0,'get':function(){return _0x58fb9d;}}),Object[_0x49e982(0x385)](_0x422771,'CollaborationImageIoService',{'enumerable':!0x0,'get':function(){return _0x3d1f6c;}}),Object[_0x49e982(0x385)](_0x422771,_0x49e982(0x22a),{'enumerable':!0x0,'get':function(){return _0xbc6026;}}),Object[_0x49e982(0x385)](_0x422771,_0x49e982(0x494),{'enumerable':!0x0,'get':function(){return _0x429482;}}),Object[_0x49e982(0x385)](_0x422771,_0x49e982(0x343),{'enumerable':!0x0,'get':function(){return _0x38b88a;}}),_0x422771['CollaborationStatus']=_0x3ba087,_0x422771['CollaborationUIEventId']=_0x37b816,_0x422771[_0x49e982(0x2cd)]=_0x4d282d,Object['defineProperty'](_0x422771,_0x49e982(0x47f),{'enumerable':!0x0,'get':function(){return _0x2bfb2a;}}),_0x422771['CommentService']=_0x1f4c07,Object['defineProperty'](_0x422771,_0x49e982(0x442),{'enumerable':!0x0,'get':function(){return _0x57ed03;}}),_0x422771[_0x49e982(0x278)]=_0x8ba365,_0x422771['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']='/universer-api/uniscript',_0x422771[_0x49e982(0x24e)]='/universer-api/user/session-ticket',Object[_0x49e982(0x385)](_0x422771,_0x49e982(0x21a),{'enumerable':!0x0,'get':function(){return _0x24dcaa;}}),Object[_0x49e982(0x385)](_0x422771,_0x49e982(0x2fd),{'enumerable':!0x0,'get':function(){return _0x51fa4a;}}),Object[_0x49e982(0x385)](_0x422771,_0x49e982(0x46e),{'enumerable':!0x0,'get':function(){return _0x5ef596;}}),_0x422771[_0x49e982(0x2bc)]=_0x49e982(0x266),_0x422771[_0x49e982(0x279)]=_0x49e982(0x287),_0x422771[_0x49e982(0x23e)]=_0x2597a6,_0x422771[_0x49e982(0x3ee)]=_0x5902c5,_0x422771[_0x49e982(0x4c1)]=_0x497ec1,_0x422771[_0x49e982(0x2ce)]=_0x935f0b,_0x422771[_0x49e982(0x3b0)]=_0xc4da01,_0x422771[_0x49e982(0x2e4)]=0x3e8,_0x422771['LOCAL_CACHE_INTERVAL_KEY']='LOCAL_CACHE_INTERVAL',Object[_0x49e982(0x385)](_0x422771,_0x49e982(0x488),{'enumerable':!0x0,'get':function(){return _0x5ad22b;}}),Object[_0x49e982(0x385)](_0x422771,_0x49e982(0x3ff),{'enumerable':!0x0,'get':function(){return _0x3c7660;}}),Object[_0x49e982(0x385)](_0x422771,_0x49e982(0x21e),{'enumerable':!0x0,'get':function(){return _0x5266ae;}}),Object[_0x49e982(0x385)](_0x422771,_0x49e982(0x330),{'enumerable':!0x0,'get':function(){return _0x14ada3;}}),_0x422771['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']=_0x49e982(0x292),_0x422771['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x49e982(0x391),_0x422771['SessionStatus']=_0x30c386,Object['defineProperty'](_0x422771,_0x49e982(0x24b),{'enumerable':!0x0,'get':function(){return _0x20b584;}}),Object[_0x49e982(0x385)](_0x422771,_0x49e982(0x289),{'enumerable':!0x0,'get':function(){return _0x510d83;}}),Object[_0x49e982(0x385)](_0x422771,_0x49e982(0x421),{'enumerable':!0x0,'get':function(){return _0x362456;}}),Object[_0x49e982(0x385)](_0x422771,'SyncedState',{'enumerable':!0x0,'get':function(){return _0x1c6422;}}),_0x422771[_0x49e982(0x305)]=_0x3ce802,Object[_0x49e982(0x385)](_0x422771,_0x49e982(0x384),{'enumerable':!0x0,'get':function(){return _0xaafff2;}}),_0x422771[_0x49e982(0x475)]=_0x5f520f,_0x422771['getLocalCacheKey']=_0x4148ee,_0x422771[_0x49e982(0x204)]=_0x4ce289;}));