@univerjs-pro/collaboration-client 1.0.0-alpha.4 → 1.0.0-alpha.6

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 +14 -14
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0xe127(_0xdc44b9,_0x45b45d){_0xdc44b9=_0xdc44b9-0x1d0;const _0x251153=_0x2511();let _0xe12722=_0x251153[_0xdc44b9];return _0xe12722;}function _0x2511(){const _0x59d069=['fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','COMPRESS_MUTATION_SEND','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','SyncedState','_createSocket','get','_tryEnsureSocket','IImageIoService','crypto','memberID','refreshPermission','_logService','includes','merge','cmd','values','failed\x20to\x20apply\x20missed\x20changesets!','reqId','_unlockTransition','PENDING','changeset','DEFAULT_WS_SESSION_TICKET_URL','updateCollaborator','_updateState','_acknowledgeAwaiting','HEARTBEAT_INTERVAL_KEY','AuthzIoHttpService','Injector','SUBMIT_CHANGESET','_clearTimeoutTimer','onload','getUnitType','newCsEvent','_waitForHeartbeatResponse','_state','_initCloseConn','_syncEditingCollabCursor','getTypeOfUnitAdded$','open$','upload','createSocket','CollaborationEvent','getWorkbookSelections','_singleActiveUnitService','_clearCollaborationTimeoutTimer','headers','conflict','@univerjs/core','UniverProSlides','slice','unitId','updateMember','LIVESHARE_NEW_HOST','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_onConflict','_clearLocalCache','send','_transitionLocked','_initUnitPermissionChange','saveChangeset','/block/','FileId','updateOfflineData','UNIVER_DOC','getAllMembers','COMMENT_UPDATE','_upload','JOIN_ROOM_NOT_EXISTS','decrypt','routeKey','m2Prime','packageName','getRandomValues','onlyLocal','UserManagerService','sessionStatus$','_socketChannels','_onConnectionOpen','_onUserJoin','b64DecodeUnicode','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','LOCAL_CACHE_INTERVAL','[CollaborationSessionService]','_snapshotService','CLOSE_ROOM','socketReady','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','transformStack\x20failed!','_maxTotalRetryTimeout','textEncoder','emitEvent','&to=','defineProperty','range','FileSource','size','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','commentUpdateEvent','HELLO','toStringTag','mutations','online$','key','executeCommand','fetchMiss','session.room-cnt-exceeds','MentionType','HEARTBEAT_TIMEOUT_KEY','_imageSourceCache','/new_changes','_getUndoStack','SlideCollaborationEntity','{fileID}','/universer-api/snapshot','LEAVE','deleteCollaborator','getUnitId','some','PendingState','unitType','addImageSourceCache','_roomCreated$','_permissionService','RETRY_CONNECTING_MAX_COUNT_KEY','_userManagerService','FETCH_MISSING','10549tGPigj','_changesetSessionId','UNIVER_SHEET','DEFAULT_COLLAB_WEB_SOCKET_URL','number','[PendingState]:\x20unhandled\x20univer\x20type:\x20','CommandType','_httpService','RevisionService','unitId\x20is\x20not\x20found','InsertSheetMutation','charCodeAt','_roomMembers','getUnit','session','UniverProCollaboration','AWAITING','9KildcZ','retryConnectingInterval','MentionIoHttpService','200753uwCMXd','_submitChangeset','c2Prime','_commentService','_onRemoteRejected','@univerjs/telemetry','_undoStacks','eventID','_exhaustRemoteChangesetQueue','[CollaborationEntity]','Plugin','Rectangle','loadUnit','5204870yqDwvI','nonce','_getAPIPrefixPath','collaboratorID','_queuedRemoteChangesets','interceptor','ISingleActiveUnitService','candidateSocket','2100936MuoeWk','CollaborationController','SUBMIT_CHANGESET_TIMEOUT','_clearRetryConnectingTimer','_rescheduleHeartbeat','NEW_CHANGESETS','joinRsp','toDisposable','_transformStateCache','JOIN','IAttachmentIoService','_transformSelections','_shouldReportTelemetry','Inject','UniverProtocol','_change$','ErrorCode','CollaborativeUndoRedoService','csRejEvent','/unit/','_schedule','localUnitId','DependentOn','aes/pkcs7:\x20wrong\x20padding','originalMeta','SheetTransformSelectionsService','snapshot','positive\x20integer\x20expected,\x20got\x20','_handlerCallback','_isPermissionRej','symbol','parseProtocolChangeset','c1Prime','duration','_collaborationTimeoutTimer','_clearRedo','onMissingChangesets','_collabSessionService','deepClone','_localCacheService','fromCollab','_getAPIPrefix','_startCollaboration','INetworkConditionService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','encode','unknown','_status$','getUploadOptions','_getDownloadEndpointURL','IPermissionService','LocalUndoRedoService','_acknowledgedAwaitingRevision','_sender','updatePermissionPoint','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','__Key__','ERROR_IMAGE_TYPE','_replaceFileID','_sessionChannels','UniverInstanceType','debug','COMPRESS_MUTATION_APPLY','every','getGlobalObject','_applyRemoteChangeset','sendHeartbeatTimer','docStateChange$','_entityInit$','_event$','splice','[DataLoaderService]','message$','CHANGESET_ACK','string','_getUploadFileURL','accept','concatMap','isInternalEditorID','_clearHeartbeatTimer','toPrimitive','maxSize','_showConflictNotification','compose','_resolveSessionIdentity','_toggleOffline','setWaitCount','1578759bBltvk','_collaborationUIEventService','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','_pendingMutations','call','UNISCRIPT_RUN','BASE64','enableCollaboration','_injector','@univerjs-pro/slides','encodeURIComponent','then','UUID','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_HTTPService','joinEvent','52lKTOHF','MUTATION','/universer-api/user/session-ticket','onMutationExecutedForCollab','_resendWithTimeout','onStarting','People','_executeRemoteChangeset','_acknowledgeAwaitingIfReady','localeService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','objectType','now','userID','_initRequestHeader','resolve','HEARTBEAT','awaiting','endpointKey','snapshotServerUrl','forEach','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','ReplaySubject','WorkbookEditablePermission','stopTime','onMissedChangesetFetched','_onLocalMutation','/role','IDLE','IAuthzIoService','disposeWithMe','USERS_LEAVE','list','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getResourcesRequest','entries','CombCmd','tagLength','parseChangesetToProtocol','_sendHeartbeat','_onRecvEvent','BYTES_PER_ELEMENT','_onMessage','src','toggleOnline','resolveUnit','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','ImageUploadStatusType','AddSlidePageMutation','expected\x20Uint8Array','RETRY_CONNECTING_MAX_COUNT','resolveWithBasePath','telemetry\x20info\x20is\x20not\x20initialized','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','CONFLICT','unsubscribe','CHANGESET_SHOULD_RETRY','fetch_missing','getValue','/collaborator','csAckEvent','[CollaborationUndoRedoService]','1.0.0-alpha.4','onRemoteRetry','FetchingMissState','_memberService','AwaitingWithPendingState','CollaborationSocketService','_sessionStatus$','LIVESHARE_FETCH_OPERATIONS','?size=','_onRemoteChangeset','_onRemoteACK','getSheetBlock','init','submit\x20changeset\x20error!','take','mergeOverrideWithDependencies','JOIN_ROOM_PERMISSION_DENIED','getMemberID','ITelemetryService','_createInitialState','onRemoteAck','_snapshotServerService','data','_configService','sheets','_toggleOnline','_transformStack','_startTelemetryCollaborationNewChangeset','string\x20expected','LIVESHARE_OPERATION','_lockTransition','actions','CollaborationAttachmentIoService','_clearScheduledTask','UniverNetworkPlugin','close','clear','function','_transformRemoteChangesetByStateCache','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','updateSnapshot','reduce','univer-pro.collaboration-client.single-active-unit-service','reverse','incrementRevOfUnit','fill','delay','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','byteLength','collabWebSocketUrl','_networkConditionService','onTransformSelections','getCurrentSelections','buffer','_collaborationSessionService','_transformService','UNIVER_SLIDE','pending','result','ONLINE','isView','onTransformState','UNIVER_COLLABORATION_CLIENT_PLUGIN','Module','ERROR_EXCEED_SIZE','toString','_resendTimer','PERSON','save\x20fail\x20reason\x20is\x20','IUndoRedoService','_updateLocalCache','_onOffline','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','url','createInstance','withCredentials','unit','constructor','_socketService','invalid\x20output,\x20must\x20be\x20aligned','length','_resendTimeout','uploadFileServerUrl','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','revision','SheetPermissionInitController','unitID','socket\x20open.','amd','_substituteUndoStack','BoardCollaborationEntity','put','synced','_checkMissing','requestParams','ICommandService','onRemoteRej','_state$','close$','session.room-full','code','_stopTelemetryCollaborationNewChangeset','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','[CollaborationSession]','CollaborationSession','toLocal','create','changesets','getOwnPropertyDescriptor','max','UNIVER_BASE','/universer-api/authz','append','OPTIONAL','[SyncedState]:\x20received\x20acknowledgement.','_disableEditing','MSG_FOR_ERROR','socket\x20close','error','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','floor','@univerjs/protocol','SheetCollaborationEntity','post','_adapter','_sendingTimer','set','_commentUpdate$','Uint8Array','[CollaborationState]:\x20apply\x20error!','has','socket$','from','getConfig','pipe','state$','subarray','_entities','__splitChunk__','HTTPService','_initDependencies','target','socketService','_unitLoaded$','_getRedoStack','_undoRedoService','collabSubmitChangesetUrl','type','unit-cache-','ILogService','encrypt','[OfflineState]:\x20received\x20changeset.','_instanceService','members$','_waitCount','setCfgEnableObjInherit','CollaborationUIEventId','catch','status$','UniverCollaborationClientPlugin','patch','commentUpdate$','INGEST','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','CmdRspCode','hasOwnProperty','CommentService','HEARTBEAT_INTERVAL','loadBase','_identity','getInterceptPoints','OFFLINE','JOIN_ROOM_FULL','min','collaborators','parse','takeUntil','getCurrentRevOfUnit','JOIN_ROOM_FAILED','URL','NO_OTHER_CLIENTS_EDITING','UnitEmbedded','state','map','_getConfig','ImageSourceType','IConfigService','_docStateChangeManagerService','_changesetReqId','authzUrl','find','prototype','_getSignURL','awaitingChangeset','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','OTHER_CLIENTS_EDITING','UniverCore','params','text-x','Wrong\x20sbox\x20length','getTime','isPermissionRej','push','version','getImage','connection\x20error','updatePermissionObjEvent','object','collaMsg','event$','153124NrpKYo','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_telemetryInfo','getDrawingImageAllowSize','NOT_COLLAB','_hasSessionsForEndpoint','AttachmentSourceType','saveImage','_compressMutationService','liveShareNewHost','_onConnectionFailed','/allowed','MergeInterceptorFactory','getCollabEntity$','OfflineState','nonceLength','responseType','_emitMembers','type=','tables','ICollaborationClientAdapterService','LOCAL_CACHE_INTERVAL_KEY','onRemoteChangeset','sort','_registerDependencies','baseRev','[PendingState]:\x20received\x20rejection.','retryConnectingTimer','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','retryCount','_getLoginPath','[OfflineState]:\x20received\x20rejection.','[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.','_type','removeMember','entityInit$','enableSingleActiveInstanceLock','getCollabEntity','_unitInfo$','BehaviorSubject','override','Subject','UNIVER_BOARD','/object/','_initMergeInterceptor','Optional','_transformRemoteChangesetByIMECache','_members','objectActions','collaboration_new_changeset','isArray','touchDependencies','_cfgEnableObjInherit','pauseCollaboration','LocaleService','ITransformService','reject','operators','getImageSourceCache','_incrementRevisionNumber','resourceIDs','_onCombEvent','_revisionService','_createSession','[CollaborationSessionService]:\x20socket\x20error','session.room-permission-denied','HEARTBEAT_TIMEOUT','RichTextEditingMutation','MoveSlidePageMutation','UniverSheets','CollaborationSessionService','onTransformRemoteChangesetByIMECache','\x20to\x20','fetchMissingChangesets','dispose','_getSendChangesetTimeout','_telemetryService','_awaitingChangeset','isTransformChangesetsSuccess','UniverTelemetry','_substituteRedoStack','BaseCollaborationEntity','columnGroups','_init','_eventService','error$','isSafeInteger','localCacheService','@univerjs-pro/collaboration-client','_scheduleCollaborationTimeoutTimer','HTTPRequest','subject','createUniverCollaborationAdapter','DocStateChangeManagerService','SessionStatus','rxjs','createIdentifier','UniverProLicense','awaiting_with_pending','_socket','objectID','ThresholdInterceptorFactory','location','Tools','listCollaborators','leaveEvent','UniverCollaborationPlugin','_transformUndoredo','next','\x0aCurrent:\x20','registerDependencies','POST','byteOffset','ISocketService','default','_commandService','getTypeOfUnitDisposed$','appendMutation','reconnect','[PendingState]:\x20received\x20acknowledgement.','USERS_ENTER','collaboration-client.config','Disposable','permissionRejEvent','replace','file','/-/object/list','backupOfflineData','textRanges','AwaitingState','OTHER_CLIENT_EDITING','_getSocketChannel','/universer-api/snapshot/','_socketMessageSubscription','?url=','/universer-api/file/{fileID}/sign-url','UPDATE_PERMISSION_OBJ','crypto.getRandomValues\x20must\x20be\x20defined','toRemote','socketMessageSubscription','isTransformMutationsWithChangesetSuccess','closeSession','_throwTelemetryCollaborationNewChangeset','mapDocumentTypeToUniverInstanceType','_localeService','sequenceExecute','_replayCachedMutations','univer-pro.collaboration-client-socket-service','transformUndoRedo','_tryReconnect','_createHandler','44360TQTpTh','complete','_handler','varSizeNonce','_members$','subscribe','onTransformRemoteChangesetByStateCache','isTransformMutationsWithChangesetFailure','confirm','_getCurrentRevision','SOCKET_FAILED_RETRY','collaboration-client.local-cache-service','sid','/universer-api/comb','getMember','decorate','FAIL','rev','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','requireSession','offline','transformMutationsWithChangeset','putCollaborators','univer-pro.collaboration-client.network-condition.service','filter','body','loadDoc','SHOULD_CLOSE_CONN','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_remoteChangesetQueue','PSEUDO_FETCH_MISSING_RESULT','endpoint','getCfgEnableObjInherit','@univerjs-pro/license','fetchThroughInterceptors','disablePadding','@univerjs/network','LIVESHARE_TERMINATE','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_onFetchMissResult','UniverDrawing','transformChangesets','registerHTTPInterceptor','deserializeToCombResponse','getSnapshotAPIPath','asObservable','getLocalCacheKey','csShouldRetryEvent','2224yZvXFY','delete','_univerInstanceService','UPDATE_CURSOR','saveSnapshot','Quantity','_onRemoteRetry','_pendingSessions','CompressMutationService','getActiveSheet','unitLoaded$','timeoutTimer','href','_createInitialStateImpl','origin','_removeRoom','_transformIMECache','_config','output','_decreaseWaiting','setCurrentUser','&assign=','[UniverCollaborationClientPlugin]','sessionStatus','SNAPSHOT_URL_KEY','allowed','toggleOffline','onSendChangeset','loadUnitOfRevision','_clearUndo','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','workbook','_scheduleCompleteTimestamp','name','onLocalMutation','RECV','unitInfo$','_isEchoedAwaitingChangeset','findIndex','getCurrentUser','RxDisposable','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','selections','IUniverInstanceService','indexOf','PERMISSION_DENIED','GLOBAL_ROOMS_CNT_EXCEEDS','SetSelectionsOperation','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','dispose$','_getCtorByUniverInstanceType','setConfig','endsWith','_collaborationPaused','stringify','initWorkbookPermissionChange','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','number\x20expected,\x20got\x20','AWAITING_WITH_PENDING','[SyncedState]:\x20received\x20rejection.','isCompositionEnd','_sessions','avatar','trim','FETCH_MISS','onTransformIME','_onJoinRoomEvent','_updateStatus','addHandlerCallback','CollaborationImageIoService','rxjs/operators','_handleRemoteChangesets','add','serializeCombRequest','/universer-api/stream/file/upload','DRAWING_IMAGE_ALLOW_IMAGE_LIST','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','\x20-\x20','infoRsp','&source=','startsWith','_redoStacks','firstValueFrom','fromCharCode','SOCKET_FAILED','DocCollaborationEntity','waitForRoom$','_transformAndApplyRemoteChangeset','status','equals','SnapshotServerOverHTTPService','method','title','listRoles','PERMISSION_REJ','loadOfflineData','transformSelections','base-ui.attachment-io.service','CHANGESET_REJ','getFocusedUnit','setShowComponents','uuidv4','LIVESHARE_REQUEST_HOST','AAD','UniverNetwork','onSyncEditingCollabCursor','uniscriptRunEvent','Failed\x20to\x20update\x20permission\x20point','resend','copyFileMeta'];_0x2511=function(){return _0x59d069;};return _0x2511();}(function(_0x30a50f,_0x3f962d){const _0x396637=_0xe127,_0x21a7f8=_0x30a50f();while(!![]){try{const _0x2ce14a=-parseInt(_0x396637(0x4a5))/0x1+parseInt(_0x396637(0x2de))/0x2+parseInt(_0x396637(0x511))/0x3+-parseInt(_0x396637(0x521))/0x4*(-parseInt(_0x396637(0x375))/0x5)+-parseInt(_0x396637(0x4ba))/0x6+-parseInt(_0x396637(0x491))/0x7*(parseInt(_0x396637(0x3a5))/0x8)+-parseInt(_0x396637(0x4a2))/0x9*(-parseInt(_0x396637(0x4b2))/0xa);if(_0x2ce14a===_0x3f962d)break;else _0x21a7f8['push'](_0x21a7f8['shift']());}catch(_0x422a67){_0x21a7f8['push'](_0x21a7f8['shift']());}}}(_0x2511,0x419ef),function(_0x539252,_0x37b527){const _0x363850=_0xe127;typeof exports==_0x363850(0x2db)&&typeof module<'u'?_0x37b527(exports,require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define=='function'&&define[_0x363850(0x264)]?define(['exports','@univerjs-pro/collaboration',_0x363850(0x442),'@univerjs/docs','@univerjs/sheets',_0x363850(0x33d),_0x363850(0x285),_0x363850(0x4aa),_0x363850(0x3eb),_0x363850(0x51a),_0x363850(0x399),_0x363850(0x396),'@univerjs/drawing'],_0x37b527):(_0x539252=typeof globalThis<'u'?globalThis:_0x539252||self,_0x37b527(_0x539252['UniverProCollaborationClient']={},_0x539252[_0x363850(0x4a0)],_0x539252[_0x363850(0x2d0)],_0x539252['UniverDocs'],_0x539252[_0x363850(0x323)],_0x539252['rxjs'],_0x539252[_0x363850(0x4c8)],_0x539252[_0x363850(0x32d)],_0x539252[_0x363850(0x33d)][_0x363850(0x317)],_0x539252[_0x363850(0x443)],_0x539252[_0x363850(0x40d)],_0x539252[_0x363850(0x33f)],_0x539252[_0x363850(0x39d)]));}(this,function(_0x2ff554,_0x48ee3a,_0x373403,_0x18c1fc,_0x2c7bf6,_0xad45f2,_0x31a69d,_0xff6851,_0x438451,_0xfb6f84,_0x39ae45,_0x23b870,_0x16ba7c){const _0x239292=_0xe127;Object['defineProperty'](_0x2ff554,Symbol[_0x239292(0x476)],{'value':_0x239292(0x24b)});let _0x4aca5a=_0x239292(0x357),_0x4f11d9={},_0x564a89='ws://127.0.0.1:8000/universer-api/comb/connect',_0x4764b2=0x4e20;function _0x297a55(_0x4b92a5){const _0xf9db32=_0x239292;return JSON[_0xf9db32(0x3db)](_0x4b92a5)['length'];}function _0x224a87(_0x4fb923){'@babel/helpers - typeof';const _0x30ba77=_0x239292;return _0x224a87=typeof Symbol==_0x30ba77(0x231)&&typeof Symbol['iterator']==_0x30ba77(0x4d8)?function(_0x504327){return typeof _0x504327;}:function(_0x3b052f){const _0x326004=_0x30ba77;return _0x3b052f&&typeof Symbol==_0x326004(0x231)&&_0x3b052f[_0x326004(0x259)]===Symbol&&_0x3b052f!==Symbol[_0x326004(0x2cb)]?_0x326004(0x4d8):typeof _0x3b052f;},_0x224a87(_0x4fb923);}function _0x2390e4(_0x507cc8,_0x216ce4){const _0x5c1567=_0x239292;if(_0x224a87(_0x507cc8)!=_0x5c1567(0x2db)||!_0x507cc8)return _0x507cc8;var _0x53c0f6=_0x507cc8[Symbol[_0x5c1567(0x50a)]];if(_0x53c0f6!==void 0x0){var _0x4eaea1=_0x53c0f6[_0x5c1567(0x515)](_0x507cc8,_0x216ce4||_0x5c1567(0x350));if(_0x224a87(_0x4eaea1)!='object')return _0x4eaea1;throw TypeError(_0x5c1567(0x2fa));}return(_0x216ce4==='string'?String:Number)(_0x507cc8);}function _0xa63b16(_0x1907e6){const _0x24d7a0=_0x239292;var _0x42abb2=_0x2390e4(_0x1907e6,_0x24d7a0(0x504));return _0x224a87(_0x42abb2)==_0x24d7a0(0x4d8)?_0x42abb2:_0x42abb2+'';}function _0x261440(_0x57dc25,_0x59bba5,_0x1632c4){const _0x197e27=_0x239292;return(_0x59bba5=_0xa63b16(_0x59bba5))in _0x57dc25?Object[_0x197e27(0x46f)](_0x57dc25,_0x59bba5,{'value':_0x1632c4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57dc25[_0x59bba5]=_0x1632c4,_0x57dc25;}let _0x3b5d94=function(_0x256bcd){const _0x834a9=_0x239292;return _0x256bcd['OTHER_CLIENT_EDITING']=_0x834a9(0x360),_0x256bcd[_0x834a9(0x3d2)]=_0x834a9(0x3d2),_0x256bcd[_0x834a9(0x204)]=_0x834a9(0x204),_0x256bcd[_0x834a9(0x467)]='CLOSE_ROOM',_0x256bcd[_0x834a9(0x2be)]=_0x834a9(0x2be),_0x256bcd['SOCKET_FAILED_RETRY']=_0x834a9(0x37f),_0x256bcd[_0x834a9(0x3f9)]=_0x834a9(0x3f9),_0x256bcd[_0x834a9(0x4bc)]=_0x834a9(0x4bc),_0x256bcd;}({});var _0x2def2b=class{constructor(){const _0x46fb6c=_0x239292;_0x261440(this,'_event$',new _0xad45f2[(_0x46fb6c(0x307))]()),_0x261440(this,'event$',this['_event$'][_0x46fb6c(0x3a2)]());}[_0x239292(0x46d)](_0x3f40ad){const _0x11f1d7=_0x239292;this['_event$'][_0x11f1d7(0x34a)](_0x3f40ad);}},_0x1eb00f=class{constructor(){const _0x28e34b=_0x239292;_0x261440(this,_0x28e34b(0x28b),new _0xad45f2['Subject']()),_0x261440(this,_0x28e34b(0x2ad),this['_commentUpdate$'][_0x28e34b(0x3a2)]());}['onCommentUpdate'](_0x14e2b1){const _0x1c4844=_0x239292;this[_0x1c4844(0x28b)][_0x1c4844(0x34a)](_0x14e2b1);}};function _0x202927(_0x5dbde8,_0x48fb44){return function(_0x2c6843,_0xce566d){_0x48fb44(_0x2c6843,_0xce566d,_0x5dbde8);};}function _0x157b59(_0x5293b4,_0x42467d,_0xc03496,_0x54039e){const _0x32dbc8=_0x239292;var _0x3d3bfc=arguments[_0x32dbc8(0x25c)],_0xe0abf1=_0x3d3bfc<0x3?_0x42467d:_0x54039e===null?_0x54039e=Object[_0x32dbc8(0x278)](_0x42467d,_0xc03496):_0x54039e,_0x8d41d9;if(typeof Reflect=='object'&&typeof Reflect[_0x32dbc8(0x384)]==_0x32dbc8(0x231))_0xe0abf1=Reflect[_0x32dbc8(0x384)](_0x5293b4,_0x42467d,_0xc03496,_0x54039e);else{for(var _0x6eb418=_0x5293b4[_0x32dbc8(0x25c)]-0x1;_0x6eb418>=0x0;_0x6eb418--)(_0x8d41d9=_0x5293b4[_0x6eb418])&&(_0xe0abf1=(_0x3d3bfc<0x3?_0x8d41d9(_0xe0abf1):_0x3d3bfc>0x3?_0x8d41d9(_0x42467d,_0xc03496,_0xe0abf1):_0x8d41d9(_0x42467d,_0xc03496))||_0xe0abf1);}return _0x3d3bfc>0x3&&_0xe0abf1&&Object[_0x32dbc8(0x46f)](_0x42467d,_0xc03496,_0xe0abf1),_0xe0abf1;}let _0x4d853f=class extends _0x373403[_0x239292(0x358)]{constructor(_0x50b806,_0xf261fe){const _0x14d548=_0x239292;super(),this['_univerInstanceService']=_0x50b806,this['_userManagerService']=_0xf261fe,_0x261440(this,_0x14d548(0x49d),new Map()),_0x261440(this,'_roomCreated$',new _0xad45f2[(_0x14d548(0x307))]()),this[_0x14d548(0x1ec)]((0x0,_0xad45f2[_0x14d548(0x420)])(this[_0x14d548(0x3a7)][_0x14d548(0x352)](_0x373403[_0x14d548(0x4f6)][_0x14d548(0x493)])[_0x14d548(0x292)]((0x0,_0x438451[_0x14d548(0x2c3)])(_0x594a7e=>_0x594a7e[_0x14d548(0x487)]())),this['_univerInstanceService'][_0x14d548(0x352)](_0x373403['UniverInstanceType'][_0x14d548(0x452)])[_0x14d548(0x292)]((0x0,_0x438451['map'])(_0x501394=>_0x501394[_0x14d548(0x487)]())),this[_0x14d548(0x3a7)][_0x14d548(0x352)](_0x373403[_0x14d548(0x4f6)][_0x14d548(0x308)])[_0x14d548(0x292)]((0x0,_0x438451[_0x14d548(0x2c3)])(_0x11fa37=>_0x11fa37[_0x14d548(0x487)]())),this['_univerInstanceService'][_0x14d548(0x352)](_0x373403[_0x14d548(0x4f6)][_0x14d548(0x27a)])[_0x14d548(0x292)]((0x0,_0x438451[_0x14d548(0x2c3)])(_0x3fc009=>_0x3fc009[_0x14d548(0x487)]())))[_0x14d548(0x37a)](_0x3d9bac=>this[_0x14d548(0x3b4)](_0x3d9bac)));}[_0x239292(0x3fb)](_0x7be367){const _0x1156da=_0x239292;return this[_0x1156da(0x49d)]['has'](_0x7be367)?(0x0,_0xad45f2['of'])(this[_0x1156da(0x49d)][_0x1156da(0x418)](_0x7be367)):this[_0x1156da(0x48c)][_0x1156da(0x292)]((0x0,_0x438451[_0x1156da(0x2c3)])(_0x297ce6=>{if(_0x297ce6===_0x7be367)return this['_roomMembers']['get'](_0x297ce6);}));}['setCurrentUser'](_0x365290){const _0x3e170b=_0x239292;this['_userManagerService'][_0x3e170b(0x3b9)](_0x365290);}[_0x239292(0x3cc)](){const _0x48873b=_0x239292;return this[_0x48873b(0x48f)][_0x48873b(0x3cc)]();}['updateMember'](_0xe221ea,_0x4c703f){const _0x53ad57=_0x239292;let _0x5dc0e8=this['_roomMembers'][_0x53ad57(0x418)](_0xe221ea);_0x5dc0e8||(_0x5dc0e8=new _0x345ff9(),this['_roomMembers']['set'](_0xe221ea,_0x5dc0e8),this[_0x53ad57(0x48c)][_0x53ad57(0x34a)](_0xe221ea)),_0x5dc0e8['updateMember'](_0x4c703f);}['removeMember'](_0x4314df,_0x51786b){const _0x26edd6=_0x239292;let _0x3fec75=this['_roomMembers']['get'](_0x4314df);_0x3fec75&&_0x3fec75[_0x26edd6(0x300)](_0x51786b);}['getRoom'](_0x5a4638){const _0x4cbe41=_0x239292;return this[_0x4cbe41(0x49d)][_0x4cbe41(0x418)](_0x5a4638);}[_0x239292(0x383)](_0x45ad06,_0x854a35){const _0xb08cf2=_0x239292;let _0x2d06d0=this[_0xb08cf2(0x49d)]['get'](_0x45ad06);if(_0x2d06d0)return _0x2d06d0[_0xb08cf2(0x383)](_0x854a35);}[_0x239292(0x3b4)](_0x15c063){const _0x43c904=_0x239292;let _0x4b3062=this[_0x43c904(0x49d)]['get'](_0x15c063);_0x4b3062&&(_0x4b3062['dispose'](),this[_0x43c904(0x49d)][_0x43c904(0x3a6)](_0x15c063));}[_0x239292(0x328)](){const _0x24dcbb=_0x239292;this[_0x24dcbb(0x49d)][_0x24dcbb(0x1e2)](_0x5dc84a=>_0x5dc84a[_0x24dcbb(0x328)]()),this[_0x24dcbb(0x49d)][_0x24dcbb(0x230)](),this['_roomCreated$'][_0x24dcbb(0x376)]();}};_0x4d853f=_0x157b59([_0x202927(0x0,_0x373403['IUniverInstanceService']),_0x202927(0x1,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403[_0x239292(0x45d)]))],_0x4d853f);var _0x345ff9=class extends _0x373403[_0x239292(0x358)]{constructor(..._0x1d0f3b){const _0x4972e5=_0x239292;super(..._0x1d0f3b),_0x261440(this,_0x4972e5(0x30d),new Map()),_0x261440(this,_0x4972e5(0x379),new _0xad45f2[(_0x4972e5(0x305))](this[_0x4972e5(0x30d)])),_0x261440(this,_0x4972e5(0x2a5),this[_0x4972e5(0x379)][_0x4972e5(0x3a2)]());}[_0x239292(0x328)](){const _0x31f7c4=_0x239292;this['_members'][_0x31f7c4(0x230)](),this['_members$'][_0x31f7c4(0x376)]();}['updateMember'](_0x39ce91){const _0x518141=_0x239292;this[_0x518141(0x30d)][_0x518141(0x28a)](_0x39ce91[_0x518141(0x41c)],_0x39ce91),this[_0x518141(0x2ef)]();}[_0x239292(0x300)](_0x30e691){const _0x57fc57=_0x239292;this[_0x57fc57(0x30d)][_0x57fc57(0x3a6)](_0x30e691),this[_0x57fc57(0x2ef)]();}[_0x239292(0x383)](_0x7b1eb4){const _0x4bf9f5=_0x239292;return this['_members'][_0x4bf9f5(0x418)](_0x7b1eb4);}[_0x239292(0x453)](){const _0x394e3b=_0x239292;return Array[_0x394e3b(0x290)](this[_0x394e3b(0x30d)]['values']());}[_0x239292(0x2ef)](){const _0x1437f6=_0x239292;this[_0x1437f6(0x379)][_0x1437f6(0x34a)](this['_members']);}};function _0x2621ef(_0x23e947,_0x31c8e2){const _0x451298=_0x239292;if(_0x789270(_0x23e947))return _0x31c8e2;if(_0x31c8e2[_0x451298(0x4ac)]===_0x48ee3a[_0x451298(0x43c)]['SUBMIT_CHANGESET']){var _0x582785;let _0x368a39=_0x112183(_0x23e947),_0x19cd47=_0x31c8e2;return{..._0x19cd47,'data':{..._0x19cd47[_0x451298(0x222)],'unitID':_0x23e947[_0x451298(0x299)][_0x451298(0x445)],'unitType':(_0x582785=_0x23e947[_0x451298(0x299)][_0x451298(0x48a)])==null?_0x19cd47[_0x451298(0x222)][_0x451298(0x48a)]:_0x582785,'changeset':_0x368a39[_0x451298(0x368)](_0x19cd47['data'][_0x451298(0x427)],_0x3fb523(_0x23e947))}};}if(_0x31c8e2[_0x451298(0x4ac)]===_0x48ee3a[_0x451298(0x43c)][_0x451298(0x490)]){var _0x5b3e31;let _0x6c188a=_0x31c8e2;return{..._0x6c188a,'data':{..._0x6c188a[_0x451298(0x222)],'unitID':_0x23e947['target'][_0x451298(0x445)],'unitType':(_0x5b3e31=_0x23e947['target']['unitType'])==null?_0x6c188a[_0x451298(0x222)][_0x451298(0x48a)]:_0x5b3e31}};}return _0x31c8e2;}function _0x2f4ee9(_0x30ff0f,_0x4803c0){const _0x5ee92b=_0x239292;if(_0x789270(_0x30ff0f))return[_0x4803c0];switch(_0x4803c0[_0x5ee92b(0x4ac)]){case _0x48ee3a[_0x5ee92b(0x43c)][_0x5ee92b(0x4bf)]:return[_0x120e7c(_0x30ff0f,_0x4803c0)];case _0x48ee3a[_0x5ee92b(0x43c)]['PSEUDO_FETCH_MISSING_RESULT']:return[_0x3c5548(_0x30ff0f,_0x4803c0)];case _0x48ee3a[_0x5ee92b(0x43c)][_0x5ee92b(0x206)]:return[_0x4b9393(_0x30ff0f,_0x4803c0)];default:return[_0x4803c0];}}function _0x789270(_0x39f0aa){const _0x36f2a4=_0x239292;return _0x39f0aa[_0x36f2a4(0x299)]['endpoint']==null&&_0x39f0aa[_0x36f2a4(0x299)][_0x36f2a4(0x445)]===_0x39f0aa[_0x36f2a4(0x4cf)]&&!_0x39f0aa[_0x36f2a4(0x427)];}function _0x120e7c(_0x41e4e5,_0x531e2e){const _0x1a77c7=_0x239292;return{..._0x531e2e,'data':(0x0,_0x48ee3a['parseChangesetToProtocol'])(_0x4ce5a3(_0x41e4e5,(0x0,_0x48ee3a[_0x1a77c7(0x4d9)])(_0x531e2e[_0x1a77c7(0x222)])))};}function _0x4b9393(_0x439a62,_0x24bc70){const _0x193c6b=_0x239292;return{..._0x24bc70,'data':_0x4ce5a3(_0x439a62,_0x24bc70[_0x193c6b(0x222)])};}function _0x3c5548(_0x1a97ff,_0x2f812b){const _0x49bb06=_0x239292;let _0x4a8750=_0x2f812b[_0x49bb06(0x222)];return{..._0x2f812b,'data':{..._0x4a8750,'changesets':_0x4a8750['changesets'][_0x49bb06(0x2c3)](_0x1dcb10=>(0x0,_0x48ee3a[_0x49bb06(0x1f4)])(_0x4ce5a3(_0x1a97ff,(0x0,_0x48ee3a[_0x49bb06(0x4d9)])(_0x1dcb10))))}};}function _0x4ce5a3(_0x3ec2b3,_0x3746f4){const _0x456b6e=_0x239292;return _0x112183(_0x3ec2b3)[_0x456b6e(0x275)](_0x3746f4,_0x3fb523(_0x3ec2b3));}function _0x112183(_0x462ff4){const _0x551369=_0x239292;if(!_0x462ff4[_0x551369(0x427)])throw Error('COLLABORATION_CHANGESET_TRANSLATION_REQUIRED');return _0x462ff4[_0x551369(0x427)];}function _0x3fb523(_0x2d82aa){const _0x321267=_0x239292;return{'localUnitId':_0x2d82aa[_0x321267(0x4cf)],'unitType':_0x2d82aa[_0x321267(0x48a)],'target':_0x2d82aa[_0x321267(0x299)]};}let _0x13b909=function(_0x1e9808){const _0x2baeab=_0x239292;return _0x1e9808[_0x1e9808['IDLE']=0x0]=_0x2baeab(0x1ea),_0x1e9808[_0x1e9808['JOINING']=0x1]='JOINING',_0x1e9808[_0x1e9808[_0x2baeab(0x2b7)]=0x2]='OFFLINE',_0x1e9808[_0x1e9808[_0x2baeab(0x247)]=0x3]=_0x2baeab(0x247),_0x1e9808;}({}),_0xd8a2d8={[_0x31a69d[_0x239292(0x2b0)][_0x239292(0x385)]]:'session.join-failed',[_0x31a69d['CmdRspCode'][_0x239292(0x2b8)]]:_0x239292(0x26f),[_0x31a69d['CmdRspCode'][_0x239292(0x456)]]:'session.room-not-exists',[_0x31a69d[_0x239292(0x2b0)][_0x239292(0x21c)]]:_0x239292(0x31f),[_0x31a69d[_0x239292(0x2b0)][_0x239292(0x3d3)]]:_0x239292(0x47c)},_0x23f91e=class extends _0x373403['RxDisposable']{get[_0x239292(0x3bc)](){const _0x4b6708=_0x239292;return this[_0x4b6708(0x212)][_0x4b6708(0x208)]();}constructor(_0x4d11fa,_0x36e2bc,_0x5234f2,_0x2d0a87,_0x54a940,_0x58f950,_0x24183c,_0x4561b6){const _0x422f55=_0x239292;super(),this[_0x422f55(0x2b5)]=_0x4d11fa,this[_0x422f55(0x41e)]=_0x5234f2,this[_0x422f55(0x223)]=_0x2d0a87,this[_0x422f55(0x20f)]=_0x54a940,this[_0x422f55(0x4a8)]=_0x58f950,this[_0x422f55(0x512)]=_0x24183c,this['_telemetryService']=_0x4561b6,_0x261440(this,_0x422f55(0x212),new _0xad45f2['BehaviorSubject'](0x0)),_0x261440(this,'sessionStatus$',this[_0x422f55(0x212)][_0x422f55(0x3a2)]()),_0x261440(this,'_event$',new _0xad45f2[(_0x422f55(0x307))]()),_0x261440(this,_0x422f55(0x2dd),this[_0x422f55(0x4ff)][_0x422f55(0x3a2)]()),_0x261440(this,_0x422f55(0x341),void 0x0),_0x261440(this,_0x422f55(0x363),void 0x0),_0x261440(this,_0x422f55(0x4dc),void 0x0),_0x261440(this,'_shouldReportTelemetry',!0x1),_0x261440(this,_0x422f55(0x2e0),null),this[_0x422f55(0x4c6)]=!!this[_0x422f55(0x32a)],_0x36e2bc[_0x422f55(0x292)]((0x0,_0xad45f2[_0x422f55(0x2bc)])(this[_0x422f55(0x3d6)]))['subscribe'](_0x4a50b3=>{const _0x2f477e=_0x422f55;if(_0x4a50b3!==void 0x0){if(this[_0x2f477e(0x341)]=_0x4a50b3,_0x4a50b3)this['_joinRoom'](_0x4a50b3),this['_socketMessageSubscription']=_0x4a50b3['message$'][_0x2f477e(0x37a)](_0x1b5522=>{const _0x38a907=_0x2f477e;_0x1b5522[_0x38a907(0x458)]===this[_0x38a907(0x2b5)][_0x38a907(0x299)][_0x38a907(0x445)]&&this[_0x38a907(0x31b)](_0x1b5522);});else{var _0x29e1cd;this[_0x2f477e(0x36c)](),this[_0x2f477e(0x212)][_0x2f477e(0x34a)](0x2),(_0x29e1cd=this['_socketMessageSubscription'])==null||_0x29e1cd['unsubscribe'](),this[_0x2f477e(0x363)]=null;}}});}['getMemberID'](){const _0x2c1d07=_0x239292;var _0x51168f,_0x582d25;return(_0x51168f=(_0x582d25=this['_socket'])==null?void 0x0:_0x582d25[_0x2c1d07(0x41c)])==null?null:_0x51168f;}['dispose'](){const _0x51480d=_0x239292;super[_0x51480d(0x328)](),this['close'](),this[_0x51480d(0x3d6)][_0x51480d(0x34a)](),this[_0x51480d(0x3d6)][_0x51480d(0x376)]();}['close'](){const _0x3cb6e8=_0x239292;var _0x39a689;this[_0x3cb6e8(0x36c)](),(_0x39a689=this['_socket'])==null||_0x39a689[_0x3cb6e8(0x44b)]({'cmd':_0x31a69d[_0x3cb6e8(0x1f2)][_0x3cb6e8(0x485)],'data':{'roomID':this[_0x3cb6e8(0x2b5)]['target'][_0x3cb6e8(0x445)]}}),this[_0x3cb6e8(0x4ff)][_0x3cb6e8(0x376)](),this[_0x3cb6e8(0x212)][_0x3cb6e8(0x376)]();}['_onCombEvent'](_0x5999b8){const _0x70fbf2=_0x239292;_0x5999b8[_0x70fbf2(0x421)]===_0x31a69d[_0x70fbf2(0x1f2)]['JOIN']?this['_onJoinRoomEvent'](_0x5999b8):_0x5999b8[_0x70fbf2(0x421)]===_0x31a69d[_0x70fbf2(0x1f2)][_0x70fbf2(0x3c8)]&&this[_0x70fbf2(0x1f6)](_0x5999b8);}['_joinRoom'](_0x26f8a7){const _0x3487f9=_0x239292;this[_0x3487f9(0x212)][_0x3487f9(0x34a)](0x1),_0x26f8a7['send']({'cmd':_0x31a69d[_0x3487f9(0x1f2)][_0x3487f9(0x4c3)],'routeKey':this['_identity'][_0x3487f9(0x299)][_0x3487f9(0x445)],'routeType':'','data':{'rooms':[{'roomID':this[_0x3487f9(0x2b5)]['target'][_0x3487f9(0x445)]}]}});}[_0x239292(0x3e7)](_0x415bf4){const _0x24f068=_0x239292;var _0x3aa8d3;if(_0x415bf4[_0x24f068(0x270)]in _0xd8a2d8){this[_0x24f068(0x512)][_0x24f068(0x46d)]({'id':_0x24f068(0x2be),'data':_0xd8a2d8[_0x415bf4['code']]}),this['_sessionStatus$'][_0x24f068(0x34a)](0x2);return;}this['_sessionStatus$'][_0x24f068(0x34a)](0x3);let _0x30e1aa=(_0x3aa8d3=_0x415bf4[_0x24f068(0x222)]['roomInfos'][this[_0x24f068(0x2b5)][_0x24f068(0x299)][_0x24f068(0x445)]])==null?void 0x0:_0x3aa8d3['members'];_0x30e1aa&&_0x30e1aa['forEach'](_0x5aeb65=>this[_0x24f068(0x20f)]['updateMember'](this[_0x24f068(0x2b5)][_0x24f068(0x4cf)],_0x5aeb65));}['_onRecvEvent'](_0x2e0e37){const _0x33a150=_0x239292;try{let _0x14b110=_0x2f4ee9(this[_0x33a150(0x2b5)],_0x2e0e37['data']);for(let _0x5538a7 of _0x14b110)switch(_0x5538a7[_0x33a150(0x4ac)]){case _0x48ee3a[_0x33a150(0x43c)]['USERS_ENTER']:this[_0x33a150(0x461)](_0x5538a7),this[_0x33a150(0x4ff)][_0x33a150(0x34a)](_0x5538a7);break;case _0x48ee3a[_0x33a150(0x43c)][_0x33a150(0x1ed)]:this['_onUserLeave'](_0x5538a7),this[_0x33a150(0x4ff)][_0x33a150(0x34a)](_0x5538a7);break;case _0x48ee3a['CollaborationEvent'][_0x33a150(0x503)]:case _0x48ee3a[_0x33a150(0x43c)]['CHANGESET_SHOULD_RETRY']:this[_0x33a150(0x271)](),this[_0x33a150(0x43f)](),this[_0x33a150(0x4ff)][_0x33a150(0x34a)](_0x5538a7);break;case _0x48ee3a['CollaborationEvent'][_0x33a150(0x280)]:this['_logService'][_0x33a150(0x282)](_0x33a150(0x250)+JSON[_0x33a150(0x3db)](_0x5538a7)),this[_0x33a150(0x4ff)][_0x33a150(0x34a)](_0x5538a7);break;case _0x48ee3a[_0x33a150(0x43c)][_0x33a150(0x454)]:this[_0x33a150(0x4a8)]['onCommentUpdate'](_0x5538a7[_0x33a150(0x222)]),this[_0x33a150(0x4ff)][_0x33a150(0x34a)](_0x5538a7);break;default:this[_0x33a150(0x4ff)]['next'](_0x5538a7);}}catch(_0x49d79c){this[_0x33a150(0x41e)]['error'](_0x49d79c,_0x2e0e37);}}['_onUserJoin'](_0x49f724){const _0x3e07ab=_0x239292;this[_0x3e07ab(0x20f)][_0x3e07ab(0x446)](this['_identity']['localUnitId'],_0x49f724['data']);}['_onUserLeave'](_0x235c6e){const _0x31c329=_0x239292;this[_0x31c329(0x20f)][_0x31c329(0x300)](this[_0x31c329(0x2b5)][_0x31c329(0x4cf)],_0x235c6e[_0x31c329(0x222)][_0x31c329(0x41c)]);}async[_0x239292(0x44b)](_0x58fc18,_0x1744a1){const _0x5dd226=_0x239292;if(this[_0x5dd226(0x3bc)]!==0x3||!this[_0x5dd226(0x341)])throw Error(_0x5dd226(0x4e6));try{let _0x4d0581=_0x2621ef(this['_identity'],_0x58fc18);_0x4d0581[_0x5dd226(0x4ac)]===_0x48ee3a[_0x5dd226(0x43c)][_0x5dd226(0x42f)]&&(this[_0x5dd226(0x337)](),this[_0x5dd226(0x227)](_0x4d0581)),this[_0x5dd226(0x341)][_0x5dd226(0x44b)]({'cmd':_0x31a69d[_0x5dd226(0x1f2)][_0x5dd226(0x2ae)],'routeKey':this['_identity'][_0x5dd226(0x299)]['unitId'],'routeType':'','data':_0x4d0581});}catch(_0x1e9e1d){this[_0x5dd226(0x41e)][_0x5dd226(0x282)](_0x1e9e1d);}}['_scheduleCollaborationTimeoutTimer'](){const _0x47ea96=_0x239292;var _0x532dd4;this[_0x47ea96(0x4dc)]=setTimeout(()=>{const _0x52fa4d=_0x47ea96;this['_collaborationTimeoutTimer']=null,this[_0x52fa4d(0x512)][_0x52fa4d(0x46d)]({'id':_0x52fa4d(0x4bc)});},(_0x532dd4=this['_configService']['getConfig'](_0x47ea96(0x320)))==null?_0x4764b2:_0x532dd4);}[_0x239292(0x43f)](){const _0x125fa6=_0x239292;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x125fa6(0x4dc)]),this[_0x125fa6(0x4dc)]=null);}['_startTelemetryCollaborationNewChangeset'](_0xe28ddd){if(!this['_shouldReportTelemetry'])return;let {data:_0x392440}=_0xe28ddd,{unitID:_0xbb094e,changeset:_0x3c5fe8}=_0x392440,{mutations:_0xdf5155,type:_0x5bc81e}=_0x3c5fe8;this['_telemetryInfo']={'unitId':_0xbb094e,'type':_0x5bc81e,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x297a55(_0xdf5155)};}[_0x239292(0x271)](){const _0x571e14=_0x239292;if(this[_0x571e14(0x4c6)]){if(!this['_telemetryInfo']){this[_0x571e14(0x41e)][_0x571e14(0x282)](_0x571e14(0x273),_0x571e14(0x202));return;}this[_0x571e14(0x2e0)][_0x571e14(0x1e6)]=performance[_0x571e14(0x1da)](),this[_0x571e14(0x2e0)][_0x571e14(0x4db)]=this[_0x571e14(0x2e0)][_0x571e14(0x1e6)]-this['_telemetryInfo']['startTime'],this[_0x571e14(0x32a)]['capture'](_0x571e14(0x30f),this['_telemetryInfo']),this[_0x571e14(0x2e0)]=null;}}[_0x239292(0x36c)](){const _0x1a48ea=_0x239292;this[_0x1a48ea(0x2e0)]=null;}};_0x23f91e=_0x157b59([_0x202927(0x2,_0x373403[_0x239292(0x2a1)]),_0x202927(0x3,_0x373403[_0x239292(0x2c6)]),_0x202927(0x4,(0x0,_0x373403['Inject'])(_0x4d853f)),_0x202927(0x5,(0x0,_0x373403[_0x239292(0x4c7)])(_0x1eb00f)),_0x202927(0x6,(0x0,_0x373403[_0x239292(0x4c7)])(_0x2def2b)),_0x202927(0x7,(0x0,_0x373403['Optional'])(_0xff6851[_0x239292(0x21e)]))],_0x23f91e);let _0x32ba82=(0x0,_0x373403[_0x239292(0x33e)])(_0x239292(0x380));function _0xd02ec9(_0x5b18aa){const _0x18b39b=_0x239292;return _0x18b39b(0x2a0)+_0x5b18aa;}function _0x28a150(_0x52d29b){const _0x3090fe=_0x239292;let {unitID:_0x40ee5d,mutations:_0x4a3c18}=_0x52d29b;return{'unitId':_0x40ee5d,'subUnitId':_0x4a3c18[_0x3090fe(0x25c)]>0x0?_0x4a3c18[0x0][_0x3090fe(0x2d1)]['subUnitId']:null};}let _0x213414=class{constructor(_0x8219be,_0x305537,_0x5b26cd){const _0x4e7a3c=_0x239292;this['_injector']=_0x8219be,this[_0x4e7a3c(0x243)]=_0x305537,this[_0x4e7a3c(0x2a4)]=_0x5b26cd;}[_0x239292(0x405)](_0x137309){const _0x21cf59=_0x239292;var _0x23bbe1,_0x48b03e;let _0x11ba1e=this[_0x21cf59(0x519)][_0x21cf59(0x418)](_0x2c7bf6['SheetsSelectionsService']),{unitId:_0xaadf6f,subUnitId:_0x15bf14}=_0x28a150(_0x137309),_0x4c91a6=_0x11ba1e==null?void 0x0:_0x11ba1e[_0x21cf59(0x43d)](_0xaadf6f)[_0x21cf59(0x240)](),_0x22f12b=(_0x23bbe1=this[_0x21cf59(0x2a4)][_0x21cf59(0x49e)](_0xaadf6f))==null||(_0x23bbe1=_0x23bbe1[_0x21cf59(0x3ae)]())==null?void 0x0:_0x23bbe1['getSheetId']();if(_0x4c91a6[_0x21cf59(0x25c)]===0x0||!_0xaadf6f||!_0x15bf14)return;let _0x435aed=[{'id':_0x2c7bf6['SetSelectionsOperation']['id'],'params':{'unitId':_0xaadf6f,'subUnitId':_0x22f12b,'selections':_0x373403[_0x21cf59(0x345)][_0x21cf59(0x4e0)](_0x4c91a6)}}],_0x25a98a=this[_0x21cf59(0x243)][_0x21cf59(0x38a)](_0x137309,_0x435aed);if(!(0x0,_0x48ee3a[_0x21cf59(0x36a)])(_0x25a98a))throw _0x25a98a[_0x21cf59(0x282)];let _0x131260=(_0x48b03e=_0x25a98a['m2Prime'][0x0])==null||(_0x48b03e=_0x48b03e[_0x21cf59(0x2d1)])==null?void 0x0:_0x48b03e[_0x21cf59(0x3cf)];if(Array[_0x21cf59(0x310)](_0x131260)&&_0x131260[_0x21cf59(0x25c)]){if(_0x131260[_0x21cf59(0x25c)]===_0x435aed[0x0][_0x21cf59(0x2d1)]['selections'][_0x21cf59(0x25c)]&&_0x131260['every']((_0x396c3f,_0x4b6213)=>_0x373403[_0x21cf59(0x4b0)][_0x21cf59(0x3fe)](_0x396c3f[_0x21cf59(0x470)],_0x435aed[0x0][_0x21cf59(0x2d1)][_0x21cf59(0x3cf)][_0x4b6213][_0x21cf59(0x470)])))return;this['_injector'][_0x21cf59(0x418)](_0x373403['ICommandService'])[_0x21cf59(0x47a)](_0x2c7bf6[_0x21cf59(0x3d4)]['id'],{'unitId':_0xaadf6f,'subUnitId':_0x22f12b,'selections':_0x131260});}}};_0x213414=_0x157b59([_0x202927(0x0,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403[_0x239292(0x42e)])),_0x202927(0x1,_0x48ee3a[_0x239292(0x315)]),_0x202927(0x2,_0x373403[_0x239292(0x3d0)])],_0x213414);let _0x354942=(0x0,_0x373403[_0x239292(0x33e)])(_0x239292(0x236)),_0x2e1fb9=function(_0x597aeb){const _0x439925=_0x239292;return _0x597aeb[_0x597aeb[_0x439925(0x2c0)]=0x0]=_0x439925(0x2c0),_0x597aeb[_0x597aeb[_0x439925(0x2cf)]=0x1]='OTHER_CLIENTS_EDITING',_0x597aeb;}({});function _0x4e88f8(_0x48bf96){const _0xe9fba1=_0x239292;var _0x28e9ab;return!!((_0x28e9ab=_0x48bf96['params'])!=null&&_0x28e9ab[_0xe9fba1(0x296)]);}let _0x5bb81c=new Set([_0x2c7bf6[_0x239292(0x49b)]['id']]),_0x2fcc02=new Set([_0xfb6f84[_0x239292(0x1fe)]['id'],_0xfb6f84['EnsureSlideMasterPageMutation']['id'],_0xfb6f84[_0x239292(0x322)]['id'],_0xfb6f84['RemoveSlidePageMutation']['id']]);function _0x1b27c5(_0x1aac09,_0x59837d=_0x5bb81c){const _0x206a5e=_0x239292;let _0x5d752f=[];for(let _0x5ebcd9 of _0x1aac09){if(_0x59837d[_0x206a5e(0x28e)](_0x5ebcd9['id'])){if(_0x5d752f[_0x206a5e(0x25c)]>0x0)break;_0x5d752f[_0x206a5e(0x2d6)](_0x5ebcd9);break;}if(_0x4e88f8(_0x5ebcd9)){if(_0x5d752f['length']>0x0)break;_0x5d752f[_0x206a5e(0x2d6)](_0x5ebcd9);break;}_0x5d752f[_0x206a5e(0x2d6)](_0x5ebcd9);}return _0x5d752f;}function _0x4a2014(_0xef7721,_0x35d030,_0x5774d2,_0xdf3f59,_0x18e07b){const _0x9f655c=_0x239292;var _0x125795,_0x4fcfcd,_0x240ee4,_0x47ab36;let _0xc71572=_0x1b27c5(_0xef7721),_0x71d5e=(_0x125795=(_0x4fcfcd=_0x18e07b[_0x9f655c(0x3cc)]())==null?void 0x0:_0x4fcfcd[_0x9f655c(0x1db)])==null?'unknown':_0x125795,_0x1dd38d=(_0x240ee4=(_0x47ab36=_0x18e07b[_0x9f655c(0x3cc)]())==null?void 0x0:_0x47ab36[_0x9f655c(0x41c)])==null?_0x9f655c(0x4e8):_0x240ee4;return{'changeset':{'unitID':_0x35d030,'type':(0x0,_0x48ee3a[_0x9f655c(0x36d)])(_0x5774d2['getUnitType'](_0x35d030)),'baseRev':_0xdf3f59['getCurrentRevOfUnit'](_0x35d030),'revision':0x0,'userID':_0x71d5e,'memberID':_0x1dd38d,'mutations':_0xc71572},'pendingMutations':_0xef7721[_0x9f655c(0x444)](_0xc71572[_0x9f655c(0x25c)])};}function _0x351e96(_0x1d30b0,_0x27f05c,_0x228add,_0x4681c7,_0x4ce1cf){const _0x4a806c=_0x239292;var _0x5cc430,_0x1e5525,_0x9ff0c1,_0x317344;let _0x5386aa=_0x1b27c5(_0x1d30b0,_0x2fcc02),_0x8dc525=(_0x5cc430=(_0x1e5525=_0x4ce1cf[_0x4a806c(0x3cc)]())==null?void 0x0:_0x1e5525[_0x4a806c(0x1db)])==null?_0x4a806c(0x4e8):_0x5cc430,_0x18bb5e=(_0x9ff0c1=(_0x317344=_0x4ce1cf[_0x4a806c(0x3cc)]())==null?void 0x0:_0x317344[_0x4a806c(0x41c)])==null?_0x4a806c(0x4e8):_0x9ff0c1;return{'changeset':{'unitID':_0x27f05c,'type':(0x0,_0x48ee3a[_0x4a806c(0x36d)])(_0x228add[_0x4a806c(0x432)](_0x27f05c)),'baseRev':_0x4681c7['getCurrentRevOfUnit'](_0x27f05c),'revision':0x0,'userID':_0x8dc525,'memberID':_0x18bb5e,'mutations':_0x5386aa},'pendingMutations':_0x1d30b0[_0x4a806c(0x444)](_0x5386aa['length'])};}function _0x139265(_0x4340fa,_0xeb9b95,_0x6dc32f,_0x1875c3,_0x4f12a9){const _0x7147dc=_0x239292;var _0x3df92a,_0x5206f5,_0x13ed0d,_0x54e5f3;let _0x194e85=_0x4340fa[_0x7147dc(0x235)]((_0x3bfd82,_0x381d09)=>{const _0x1f41bc=_0x7147dc;let _0x376efb=_0x3bfd82[_0x3bfd82[_0x1f41bc(0x25c)]-0x1],{id:_0x48d569}=_0x376efb==null?{}:_0x376efb,{id:_0x3a320b,type:_0x43b93f}=_0x381d09,_0x171ddd=_0x381d09['params'];if(_0x48d569&&_0x48d569!==_0x3a320b)throw Error(_0x1f41bc(0x1ef)+_0x48d569+_0x1f41bc(0x3f2)+_0x3a320b+'.');if(!_0x376efb)return[{'id':_0x3a320b,'type':_0x43b93f,'params':{'unitId':_0x171ddd[_0x1f41bc(0x445)],'textRanges':_0x171ddd[_0x1f41bc(0x35e)],'actions':_0x171ddd['actions']}}];let _0x432c49=_0x376efb[_0x1f41bc(0x2d1)];return _0x11a2dd(_0x432c49,_0x171ddd)?[..._0x3bfd82[_0x1f41bc(0x444)](0x0,-0x1),{..._0x376efb,'id':_0x3a320b,'type':_0x43b93f,'params':{'unitId':_0x171ddd['unitId'],'textRanges':_0x171ddd['textRanges'],'actions':_0x373403['JSONX'][_0x1f41bc(0x50d)](_0x432c49['actions'],_0x171ddd[_0x1f41bc(0x22b)])}}]:[..._0x3bfd82,{'id':_0x3a320b,'type':_0x43b93f,'params':{'unitId':_0x171ddd['unitId'],'textRanges':_0x171ddd[_0x1f41bc(0x35e)],'actions':_0x171ddd[_0x1f41bc(0x22b)]}}];},[]),_0x42d4a3=(_0x3df92a=(_0x5206f5=_0x4f12a9['getCurrentUser']())==null?void 0x0:_0x5206f5[_0x7147dc(0x1db)])==null?_0x7147dc(0x4e8):_0x3df92a,_0x3fa6ea=(_0x13ed0d=(_0x54e5f3=_0x4f12a9['getCurrentUser']())==null?void 0x0:_0x54e5f3['memberID'])==null?_0x7147dc(0x4e8):_0x13ed0d;return{'changeset':{'unitID':_0xeb9b95,'type':(0x0,_0x48ee3a[_0x7147dc(0x36d)])(_0x6dc32f['getUnitType'](_0xeb9b95)),'baseRev':_0x1875c3[_0x7147dc(0x2bd)](_0xeb9b95),'revision':0x0,'userID':_0x42d4a3,'memberID':_0x3fa6ea,'mutations':_0x194e85},'pendingMutations':_0x4340fa[_0x7147dc(0x444)](_0x4340fa['length'])};}function _0x11a2dd(_0x4c29d9,_0x5a91b7){const _0x3e58be=_0x239292;return!_0x3797e0(_0x4c29d9)&&!_0x3797e0(_0x5a91b7)&&_0x4ab1e0(_0x4c29d9['actions'],_0x5a91b7[_0x3e58be(0x22b)]);}function _0x3797e0(_0x74433b){const _0x3f56bc=_0x239292;return _0x74433b[_0x3f56bc(0x3e1)]!==void 0x0;}function _0x4ab1e0(_0x347b9a,_0x472e6c){return _0x30fdc4(_0x347b9a)&&_0x30fdc4(_0x472e6c)&&!_0x1bc64d(_0x347b9a)&&!_0x1bc64d(_0x472e6c)&&!_0x2e51ae(_0x347b9a)&&!_0x2e51ae(_0x472e6c);}function _0x30fdc4(_0x12ef73){const _0x199752=_0x239292;return _0x1bdb4f(_0x12ef73)['some'](_0x38ae4e=>_0x180974(_0x38ae4e)&&_0x38ae4e['et']===_0x199752(0x2d2));}function _0x2e51ae(_0x3637eb){const _0x2b389e=_0x239292;return _0x1bdb4f(_0x3637eb)[_0x2b389e(0x488)](_0x1b177c=>Array[_0x2b389e(0x310)](_0x1b177c)||typeof _0x1b177c=='string'||typeof _0x1b177c==_0x2b389e(0x495));}function _0x1bc64d(_0x6d6cdb){const _0x5923c8=_0x239292;return _0x1bdb4f(_0x6d6cdb)[_0x5923c8(0x488)](_0x593de7=>!_0x180974(_0x593de7)||_0x593de7['et']!==_0x5923c8(0x2d2)||!Array[_0x5923c8(0x310)](_0x593de7['e'])?!0x1:_0x593de7['e']['some'](_0x39b675=>!_0x180974(_0x39b675)||!_0x180974(_0x39b675['body'])?!0x1:Object['prototype'][_0x5923c8(0x2b1)]['call'](_0x39b675['body'],_0x5923c8(0x2f1))||Object[_0x5923c8(0x2cb)][_0x5923c8(0x2b1)][_0x5923c8(0x515)](_0x39b675[_0x5923c8(0x38e)],_0x5923c8(0x330))||Object[_0x5923c8(0x2cb)][_0x5923c8(0x2b1)][_0x5923c8(0x515)](_0x39b675[_0x5923c8(0x38e)],'blockRanges')));}function _0x1bdb4f(_0x4229a8){const _0x207117=_0x239292;if(!Array[_0x207117(0x310)](_0x4229a8))return[];let _0x3f3417=_0x4229a8['includes'](_0x207117(0x38e))?_0x4229a8:_0x4229a8[_0x207117(0x2ca)](_0x2bad40=>Array[_0x207117(0x310)](_0x2bad40)&&_0x2bad40[_0x207117(0x41f)](_0x207117(0x38e)));if(!Array[_0x207117(0x310)](_0x3f3417))return[];let _0x1a889a=_0x3f3417[_0x207117(0x3d1)](_0x207117(0x38e));return _0x1a889a===-0x1?[]:_0x3f3417[_0x207117(0x444)](_0x1a889a+0x1);}function _0x180974(_0x57c432){const _0x28de5f=_0x239292;return typeof _0x57c432==_0x28de5f(0x2db)&&!!_0x57c432&&!Array['isArray'](_0x57c432);}function _0xa4050(_0x3e3e86,_0x33aabd){const _0x4a4a5b=_0x239292;let _0x423d80=new _0xad45f2[(_0x4a4a5b(0x1e4))](0x1);return setTimeout(()=>_0x423d80[_0x4a4a5b(0x34a)](_0x33aabd),_0x3e3e86),_0x423d80[_0x4a4a5b(0x3a2)]()[_0x4a4a5b(0x292)]((0x0,_0xad45f2[_0x4a4a5b(0x21a)])(0x1));}var _0x2517a2,_0x53e96f,_0x82f23c;let _0x29abe0=function(_0x18fefa){const _0x507834=_0x239292;return _0x18fefa[_0x507834(0x2e2)]='not_collab',_0x18fefa['SYNCED']='synced',_0x18fefa[_0x507834(0x426)]=_0x507834(0x245),_0x18fefa[_0x507834(0x4a1)]=_0x507834(0x1df),_0x18fefa[_0x507834(0x3df)]=_0x507834(0x340),_0x18fefa[_0x507834(0x3e5)]=_0x507834(0x207),_0x18fefa[_0x507834(0x204)]=_0x507834(0x441),_0x18fefa[_0x507834(0x2b7)]=_0x507834(0x389),_0x18fefa;}({}),_0x339aec=0x4e20,_0x29635a=0x2bf20;var _0x3ce48f=class{constructor(_0x429981,_0x122524,_0x135f63,_0x240a96,_0xe0c62a,_0xb4c8c0,_0x35c5a5,_0x18fa57,_0x297a95){const _0x23c5c3=_0x239292;this['unitID']=_0x429981,this[_0x23c5c3(0x29f)]=_0x122524,this[_0x23c5c3(0x377)]=_0xe0c62a,this[_0x23c5c3(0x351)]=_0xb4c8c0,this[_0x23c5c3(0x29d)]=_0x35c5a5,this[_0x23c5c3(0x31c)]=_0x18fa57,this['_localCacheService']=_0x297a95,_0x261440(this,_0x23c5c3(0x32b),null),_0x261440(this,_0x23c5c3(0x514),[]),this[_0x23c5c3(0x32b)]=_0x135f63,this[_0x23c5c3(0x514)]=_0x240a96;}[_0x239292(0x269)](_0x2abb22){const _0x308676=_0x239292;let _0x3a0dd0=this[_0x308676(0x31c)][_0x308676(0x2bd)](this[_0x308676(0x262)]);return _0x2abb22[_0x308676(0x260)]>_0x3a0dd0+0x1?(this['_handler'][_0x308676(0x4de)]({'from':_0x3a0dd0,'to':_0x2abb22[_0x308676(0x260)]-0x1}),!0x0):!0x1;}[_0x239292(0x349)](_0x29c6ec){const _0x308f12=_0x239292;this[_0x308f12(0x29d)]['transformUndoRedo'](this[_0x308f12(0x262)],_0x29c6ec);}[_0x239292(0x4c5)](_0x4447fe){const _0x2195d5=_0x239292;var _0x18a3e0,_0x2c4210;(_0x18a3e0=(_0x2c4210=this[_0x2195d5(0x377)])[_0x2195d5(0x23f)])==null||_0x18a3e0['call'](_0x2c4210,_0x4447fe);}[_0x239292(0x3b5)](_0x1231cb){const _0x12233b=_0x239292;var _0x47757b,_0x58f7eb;return(_0x47757b=(_0x58f7eb=this['_handler'])[_0x12233b(0x3e6)])==null?void 0x0:_0x47757b[_0x12233b(0x515)](_0x58f7eb,_0x1231cb);}[_0x239292(0x4c2)](_0x215642){const _0xbde828=_0x239292;var _0x4eaa0c,_0x4bdd1d;return(_0x4eaa0c=(_0x4bdd1d=this[_0xbde828(0x377)])[_0xbde828(0x249)])==null?void 0x0:_0x4eaa0c['call'](_0x4bdd1d,_0x215642);}[_0x239292(0x30c)](_0x473ea7){const _0x4eadba=_0x239292;var _0x65697b,_0x199c89,_0x330d35;return(_0x65697b=(_0x199c89=(_0x330d35=this[_0x4eadba(0x377)])[_0x4eadba(0x325)])==null?void 0x0:_0x199c89['call'](_0x330d35,_0x473ea7))==null?_0x473ea7:_0x65697b;}['_transformRemoteChangesetByStateCache'](_0x3fa782){const _0xd828e3=_0x239292;var _0x4191ff,_0x345b34,_0x37249;return(_0x4191ff=(_0x345b34=(_0x37249=this['_handler'])[_0xd828e3(0x37b)])==null?void 0x0:_0x345b34[_0xd828e3(0x515)](_0x37249,_0x3fa782))==null?_0x3fa782:_0x4191ff;}['_syncEditingCollabCursor'](_0x4fca07){const _0x101511=_0x239292;if(this['type']===_0x373403[_0x101511(0x4f6)][_0x101511(0x452)]){let {unitID:_0x2fd445,mutations:_0x43f97f,memberID:_0x4917f3}=_0x4fca07,_0x5140f0=_0x43f97f[_0x101511(0x25c)]>0x0?_0x43f97f[0x0][_0x101511(0x2d1)][_0x101511(0x35e)]:[];if(Array[_0x101511(0x310)](_0x5140f0)&&_0x5140f0[_0x101511(0x25c)]>0x0){var _0x486994,_0x469e53;(_0x486994=(_0x469e53=this[_0x101511(0x377)])[_0x101511(0x40e)])==null||_0x486994[_0x101511(0x515)](_0x469e53,{'unitID':_0x2fd445,'memberID':_0x4917f3,'textRanges':_0x5140f0});}}}['_updateLocalCache'](){const _0xc71f39=_0x239292;var _0x32d136;(_0x32d136=this['_localCacheService'])==null||_0x32d136[_0xc71f39(0x451)](this[_0xc71f39(0x262)],this['type'],this['_awaitingChangeset'],this['_pendingMutations']);}['_getCurrentRevision'](){const _0x209503=_0x239292;return this[_0x209503(0x31c)]['getCurrentRevOfUnit'](this['unitID']);}[_0x239292(0x319)](){const _0x4efbbf=_0x239292;this[_0x4efbbf(0x31c)][_0x4efbbf(0x238)](this[_0x4efbbf(0x262)]);}[_0x239292(0x1d5)](_0x14cdd6){const _0x13a5b5=_0x239292;let _0x1883df=this[_0x13a5b5(0x30c)](_0x14cdd6);_0x1883df=this[_0x13a5b5(0x232)](_0x1883df);let _0x4bd174=(0x0,_0x373403[_0x13a5b5(0x36f)])(_0x1883df[_0x13a5b5(0x477)],this[_0x13a5b5(0x351)],{'fromCollab':!0x0});if(!_0x4bd174[_0x13a5b5(0x246)]){var _0x50db8c;throw _0x4bd174[_0x13a5b5(0x282)]instanceof Error?_0x4bd174[_0x13a5b5(0x282)]:Error((_0x50db8c=_0x4bd174[_0x13a5b5(0x282)])==null?_0x13a5b5(0x28d):_0x50db8c);}this['_transformIMECache'](_0x1883df),this[_0x13a5b5(0x4c2)](_0x1883df),this[_0x13a5b5(0x349)](_0x14cdd6),this[_0x13a5b5(0x4c5)](_0x1883df),this[_0x13a5b5(0x437)](_0x1883df),this[_0x13a5b5(0x319)]();}};let _0x2d2058=class extends _0x3ce48f{constructor(_0x393c13,_0x3bb768,_0x123200,_0x23c209,_0x3680cf,_0x29c240,_0x259ccc,_0x12e574,_0x31ff19,_0x5a62fb){const _0x73e6e3=_0x239292;super(_0x393c13,_0x3bb768,null,[],_0x123200,_0x259ccc,_0x29c240,_0x23c209,_0x5a62fb),this[_0x73e6e3(0x519)]=_0x3680cf,this['_logService']=_0x12e574,this[_0x73e6e3(0x243)]=_0x31ff19,this[_0x73e6e3(0x335)]=_0x5a62fb,_0x261440(this,'status',_0x73e6e3(0x268));}[_0x239292(0x353)](_0x20eabf){const _0x36ee8a=_0x239292;let _0xefdd02=this[_0x36ee8a(0x519)]['createInstance'](_0x59fb30,this[_0x36ee8a(0x262)],this['type'],[_0x20eabf],this[_0x36ee8a(0x377)]);return _0xefdd02['_schedule'](),_0xefdd02[_0x36ee8a(0x252)](),_0xefdd02;}['onRemoteChangeset'](_0x24b705){const _0x4d0ed3=_0x239292;if(this[_0x4d0ed3(0x269)](_0x24b705))return this[_0x4d0ed3(0x519)][_0x4d0ed3(0x256)](_0x41cb05,this['unitID'],this[_0x4d0ed3(0x29f)],null,[],null,[_0x24b705],this['_handler']);try{let _0x1cb779=this['_transformService'][_0x4d0ed3(0x38a)](_0x24b705,[_0x48ee3a['EmptyMutationInfo']]);if((0x0,_0x48ee3a[_0x4d0ed3(0x36a)])(_0x1cb779)){let {c1Prime:_0x364ab5}=_0x1cb779;return this[_0x4d0ed3(0x1d5)](_0x364ab5),this;}throw _0x1cb779[_0x4d0ed3(0x282)];}catch(_0x6d42ff){return this[_0x4d0ed3(0x41e)]['error'](_0x6d42ff),this['_onConflict'](!0x1);}}[_0x239292(0x449)](_0x1e901f){const _0x42d642=_0x239292;return this[_0x42d642(0x519)][_0x42d642(0x256)](_0x583366,this[_0x42d642(0x262)],this[_0x42d642(0x29f)],null,[],this['_handler'],_0x1e901f);}[_0x239292(0x220)](_0x1de1aa){const _0x3f941c=_0x239292;if(_0x1de1aa[_0x3f941c(0x260)]<=this['_getCurrentRevision']())return this;throw Error(_0x3f941c(0x27e));}[_0x239292(0x26c)](){const _0x3ec5cb=_0x239292;throw Error(_0x3ec5cb(0x3e0));}[_0x239292(0x20d)](){return this;}[_0x239292(0x3bf)](){const _0x47f7bd=_0x239292;return this[_0x47f7bd(0x519)]['createInstance'](_0x561132,this['unitID'],this[_0x47f7bd(0x29f)],null,[],this[_0x47f7bd(0x377)]);}[_0x239292(0x1fa)](){return this;}['resend'](){const _0x18cb22=_0x239292;throw Error(_0x18cb22(0x254));}[_0x239292(0x47b)](){const _0x557d07=_0x239292;let _0x175ac8=this[_0x557d07(0x31c)][_0x557d07(0x2bd)](this['unitID']);return this[_0x557d07(0x377)][_0x557d07(0x4de)]({'from':_0x175ac8,'to':0x0}),this[_0x557d07(0x519)][_0x557d07(0x256)](_0x41cb05,this[_0x557d07(0x262)],this[_0x557d07(0x29f)],null,[],null,[],this[_0x557d07(0x377)]);}};_0x2d2058=_0x157b59([_0x202927(0x3,(0x0,_0x373403[_0x239292(0x4c7)])(_0x48ee3a[_0x239292(0x499)])),_0x202927(0x4,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403[_0x239292(0x42e)])),_0x202927(0x5,_0x373403['IUndoRedoService']),_0x202927(0x6,_0x373403[_0x239292(0x26b)]),_0x202927(0x7,_0x373403[_0x239292(0x2a1)]),_0x202927(0x8,_0x48ee3a['ITransformService']),_0x202927(0x9,(0x0,_0x373403[_0x239292(0x30b)])(_0x32ba82))],_0x2d2058);let _0x59fb30=_0x2517a2=class extends _0x3ce48f{constructor(_0x41bbcf,_0x488c26,_0xd03ac2,_0x5bbd2d,_0x3facaa,_0x40c22d,_0x3b123e,_0xf41a9c,_0x4f7b5e,_0x27a253,_0x127325,_0x53558,_0x75e9d6,_0x161517){const _0x1de413=_0x239292;super(_0x41bbcf,_0x488c26,null,_0xd03ac2,_0x5bbd2d,_0x4f7b5e,_0x75e9d6,_0x40c22d,_0x161517),this[_0x1de413(0x519)]=_0x3facaa,this[_0x1de413(0x20f)]=_0x3b123e,this[_0x1de413(0x41e)]=_0xf41a9c,this[_0x1de413(0x223)]=_0x27a253,this['_transformService']=_0x127325,this[_0x1de413(0x3a7)]=_0x53558,_0x261440(this,_0x1de413(0x3fd),_0x1de413(0x245)),_0x261440(this,_0x1de413(0x3c5),null),_0x261440(this,'_sendingTimer',null);}[_0x239292(0x353)](_0x3c7ff7){const _0x55e559=_0x239292;return this[_0x55e559(0x514)][_0x55e559(0x2d6)](_0x3c7ff7),this[_0x55e559(0x252)](),this;}[_0x239292(0x2f4)](_0x2a28db){const _0x482640=_0x239292;if(this['_checkMissing'](_0x2a28db))return this[_0x482640(0x22d)](),this[_0x482640(0x519)]['createInstance'](_0x41cb05,this['unitID'],this[_0x482640(0x29f)],null,this[_0x482640(0x514)],null,[_0x2a28db],this[_0x482640(0x377)]);try{let _0x9ac321=this[_0x482640(0x243)][_0x482640(0x38a)](_0x2a28db,this[_0x482640(0x514)]);if((0x0,_0x48ee3a[_0x482640(0x36a)])(_0x9ac321)){let {c1Prime:_0xe726d6,m2Prime:_0x52f812}=_0x9ac321;this[_0x482640(0x1d5)](_0xe726d6);let _0x2e48a0=this[_0x482640(0x519)][_0x482640(0x256)](_0x2517a2,this[_0x482640(0x262)],this[_0x482640(0x29f)],_0x52f812,this[_0x482640(0x377)]);this[_0x482640(0x22d)]();let _0x55256e=new Date()[_0x482640(0x2d4)](),_0x185e89=this[_0x482640(0x3c5)]?Math[_0x482640(0x279)](this[_0x482640(0x3c5)]-_0x55256e,0x0):this[_0x482640(0x329)]();return _0x2e48a0['_schedule'](_0x185e89),_0x2e48a0;}throw _0x9ac321['error'];}catch(_0x1be77b){return this['_logService']['error'](_0x1be77b),this[_0x482640(0x449)](!0x1);}}[_0x239292(0x220)](_0x2ba3bf){const _0x3e642a=_0x239292;if(_0x2ba3bf[_0x3e642a(0x260)]<=this[_0x3e642a(0x37e)]())return this;throw Error(_0x3e642a(0x355));}[_0x239292(0x26c)](){const _0x37d76d=_0x239292;throw Error(_0x37d76d(0x2f8));}[_0x239292(0x20d)](){return this;}[_0x239292(0x3bf)](){const _0x1be566=_0x239292;return this[_0x1be566(0x22d)](),this['_injector'][_0x1be566(0x256)](_0x561132,this['unitID'],this[_0x1be566(0x29f)],null,this['_pendingMutations'],this['_handler']);}[_0x239292(0x1fa)](){return this;}[_0x239292(0x4ce)](_0x5502c1){const _0x4c49d3=_0x239292;let _0x4546e9=_0x5502c1==null?this[_0x4c49d3(0x329)]():_0x5502c1;this[_0x4c49d3(0x3c5)]=new Date()[_0x4c49d3(0x2d4)]()+_0x4546e9,this['_sendingTimer']=setTimeout(()=>{const _0xd11090=_0x4c49d3;this[_0xd11090(0x22d)]();let _0x3d37a6=null;switch(this[_0xd11090(0x29f)]){case _0x373403[_0xd11090(0x4f6)]['UNIVER_SHEET']:_0x3d37a6=_0x4a2014(this[_0xd11090(0x514)],this[_0xd11090(0x262)],this['_univerInstanceService'],this['_revisionService'],this[_0xd11090(0x20f)]);break;case _0x373403[_0xd11090(0x4f6)][_0xd11090(0x452)]:_0x3d37a6=this['_pendingMutations'][_0xd11090(0x4f9)](_0x5b153b=>_0x5b153b['id']===_0x18c1fc['RichTextEditingMutation']['id'])?_0x139265(this[_0xd11090(0x514)],this[_0xd11090(0x262)],this[_0xd11090(0x3a7)],this[_0xd11090(0x31c)],this[_0xd11090(0x20f)]):_0x4a2014(this[_0xd11090(0x514)],this[_0xd11090(0x262)],this['_univerInstanceService'],this[_0xd11090(0x31c)],this[_0xd11090(0x20f)]);break;case _0x373403['UniverInstanceType'][_0xd11090(0x244)]:_0x3d37a6=_0x351e96(this[_0xd11090(0x514)],this[_0xd11090(0x262)],this[_0xd11090(0x3a7)],this[_0xd11090(0x31c)],this[_0xd11090(0x20f)]);break;case _0x373403[_0xd11090(0x4f6)][_0xd11090(0x308)]:_0x3d37a6=_0x4a2014(this[_0xd11090(0x514)],this[_0xd11090(0x262)],this['_univerInstanceService'],this[_0xd11090(0x31c)],this[_0xd11090(0x20f)]);break;case _0x373403[_0xd11090(0x4f6)][_0xd11090(0x27a)]:_0x3d37a6=_0x4a2014(this[_0xd11090(0x514)],this[_0xd11090(0x262)],this[_0xd11090(0x3a7)],this[_0xd11090(0x31c)],this[_0xd11090(0x20f)]);break;default:throw Error(_0xd11090(0x496)+this['type']+'\x20in\x20_schedule.');}let {changeset:_0x2b084d,pendingMutations:_0x522ead}=_0x3d37a6;this[_0xd11090(0x377)][_0xd11090(0x3c0)](_0x2b084d);let _0x3ca23f=_0x522ead[_0xd11090(0x25c)]?this[_0xd11090(0x519)][_0xd11090(0x256)](_0x1aaec5,this[_0xd11090(0x262)],this[_0xd11090(0x29f)],_0x2b084d,_0x522ead,this[_0xd11090(0x377)],void 0x0):this[_0xd11090(0x519)][_0xd11090(0x256)](_0x5b101e,this[_0xd11090(0x262)],this[_0xd11090(0x29f)],_0x2b084d,this[_0xd11090(0x377)]);_0x3ca23f[_0xd11090(0x252)](),this['_handler']['onStateChange'](this,_0x3ca23f);},_0x4546e9);}[_0x239292(0x329)](){const _0x10636a=_0x239292;var _0xe48df6;let _0xfea2be=this[_0x10636a(0x223)][_0x10636a(0x291)](_0x4aca5a);return(_0xe48df6=_0xfea2be==null?void 0x0:_0xfea2be['sendChangesetTimeout'])==null?0x7d0:_0xe48df6;}[_0x239292(0x411)](){const _0x43df42=_0x239292;throw Error(_0x43df42(0x469));}[_0x239292(0x22d)](){const _0x3f6d54=_0x239292;this[_0x3f6d54(0x289)]!=null&&(clearTimeout(this[_0x3f6d54(0x289)]),this['_sendingTimer']=null);}['_onConflict'](_0x5e8133){const _0x35dcf3=_0x239292;return this[_0x35dcf3(0x22d)](),this[_0x35dcf3(0x519)][_0x35dcf3(0x256)](_0x583366,this[_0x35dcf3(0x262)],this[_0x35dcf3(0x29f)],null,this[_0x35dcf3(0x514)],this[_0x35dcf3(0x377)],_0x5e8133);}};_0x59fb30=_0x2517a2=_0x157b59([_0x202927(0x4,(0x0,_0x373403['Inject'])(_0x373403[_0x239292(0x42e)])),_0x202927(0x5,(0x0,_0x373403[_0x239292(0x4c7)])(_0x48ee3a['RevisionService'])),_0x202927(0x6,(0x0,_0x373403['Inject'])(_0x4d853f)),_0x202927(0x7,_0x373403[_0x239292(0x2a1)]),_0x202927(0x8,_0x373403['ICommandService']),_0x202927(0x9,_0x373403['IConfigService']),_0x202927(0xa,_0x48ee3a[_0x239292(0x315)]),_0x202927(0xb,_0x373403[_0x239292(0x3d0)]),_0x202927(0xc,_0x373403['IUndoRedoService']),_0x202927(0xd,(0x0,_0x373403['Optional'])(_0x32ba82))],_0x59fb30);let _0x5b101e=_0x53e96f=class extends _0x3ce48f{constructor(_0x1118df,_0x4ef573,_0x1a6f11,_0xec16bd,_0x2cda2a,_0x25a8a6,_0x33b72b,_0x4b2a36,_0x4377c5,_0x537fc2,_0x31c8c8){const _0x5dec3c=_0x239292;super(_0x1118df,_0x4ef573,_0x1a6f11,[],_0xec16bd,_0x33b72b,_0x537fc2,_0x25a8a6,_0x31c8c8),this[_0x5dec3c(0x519)]=_0x2cda2a,this[_0x5dec3c(0x41e)]=_0x4b2a36,this[_0x5dec3c(0x243)]=_0x4377c5,_0x261440(this,_0x5dec3c(0x3fd),_0x5dec3c(0x1df)),_0x261440(this,_0x5dec3c(0x25d),0x0),_0x261440(this,_0x5dec3c(0x46b),0x0),_0x261440(this,'_resendTimer',void 0x0),_0x261440(this,'_sender',void 0x0);}[_0x239292(0x353)](_0x19c336){const _0x4c6727=_0x239292;this['_clearScheduledTask']();let _0x108183=this[_0x4c6727(0x519)][_0x4c6727(0x256)](_0x1aaec5,this[_0x4c6727(0x262)],this[_0x4c6727(0x29f)],this[_0x4c6727(0x32b)],[_0x19c336],this[_0x4c6727(0x377)],this['_resendTimer']);return _0x108183[_0x4c6727(0x252)](),_0x108183;}['onRemoteChangeset'](_0x548b57){const _0x5d5492=_0x239292;if(this[_0x5d5492(0x269)](_0x548b57))return this[_0x5d5492(0x22d)](),this[_0x5d5492(0x519)][_0x5d5492(0x256)](_0x41cb05,this[_0x5d5492(0x262)],this[_0x5d5492(0x29f)],this[_0x5d5492(0x32b)],[],null,[_0x548b57],this[_0x5d5492(0x377)]);try{let _0x7a0850=this[_0x5d5492(0x243)]['transformChangesets']([_0x548b57],[this['_awaitingChangeset']],!0x1);if((0x0,_0x48ee3a['isTransformChangesetsSuccess'])(_0x7a0850)){let {c1Prime:_0x2c1c52,c2Prime:_0xe06666}=_0x7a0850;this[_0x5d5492(0x1d5)](_0x2c1c52[0x0]),_0xe06666[0x0]['baseRev']=this[_0x5d5492(0x37e)](),this[_0x5d5492(0x22d)]();let _0x2c2f9c=this[_0x5d5492(0x519)][_0x5d5492(0x256)](_0x53e96f,this[_0x5d5492(0x262)],this[_0x5d5492(0x29f)],_0xe06666[0x0],this[_0x5d5492(0x377)]);return _0x2c2f9c[_0x5d5492(0x252)](),_0x2c2f9c;}throw _0x7a0850[_0x5d5492(0x282)];}catch(_0x36ad9f){return this['_logService'][_0x5d5492(0x282)](_0x36ad9f),this[_0x5d5492(0x449)](!0x1);}}[_0x239292(0x220)](_0x137478){const _0x2fb551=_0x239292;this[_0x2fb551(0x22d)]();let _0x2d7b63=this[_0x2fb551(0x31c)]['getCurrentRevOfUnit'](this[_0x2fb551(0x262)]);if(_0x137478[_0x2fb551(0x260)]<=_0x2d7b63)return this;if(this[_0x2fb551(0x269)](_0x137478))return this[_0x2fb551(0x519)][_0x2fb551(0x256)](_0x41cb05,this[_0x2fb551(0x262)],this[_0x2fb551(0x29f)],this[_0x2fb551(0x32b)],[],_0x137478[_0x2fb551(0x260)],[],this[_0x2fb551(0x377)]);this[_0x2fb551(0x319)]();let _0x302dff=this[_0x2fb551(0x519)][_0x2fb551(0x256)](_0x2d2058,this[_0x2fb551(0x262)],this[_0x2fb551(0x29f)],this[_0x2fb551(0x377)]);return _0x302dff[_0x2fb551(0x252)](),_0x302dff;}[_0x239292(0x26c)](_0x46f469){const _0x2dd891=_0x239292;return this['_onConflict'](!!(_0x46f469!=null&&_0x46f469[_0x2dd891(0x2d5)]));}[_0x239292(0x20d)](_0x7e703a){const _0x27dbe4=_0x239292;return this[_0x27dbe4(0x46b)]>_0x29635a?this[_0x27dbe4(0x3bf)]():(this['_resendTimer']=_0xa4050(this[_0x27dbe4(0x25d)],{'timeout':this[_0x27dbe4(0x25d)],'reqId':_0x7e703a['reqId']}),this[_0x27dbe4(0x4ef)]=this[_0x27dbe4(0x24e)]['subscribe'](({reqId:_0x5da418,timeout:_0x42e5b4})=>{this['_resendWithTimeout'](_0x5da418,_0x42e5b4);}),this);}[_0x239292(0x3bf)](){const _0x36ef7f=_0x239292;return this[_0x36ef7f(0x22d)](),this['_injector']['createInstance'](_0x561132,this['unitID'],this[_0x36ef7f(0x29f)],this[_0x36ef7f(0x32b)],[],this[_0x36ef7f(0x377)]);}[_0x239292(0x1fa)](){return this;}[_0x239292(0x411)](){const _0x416b61=_0x239292;this[_0x416b61(0x377)][_0x416b61(0x3c0)](this['_awaitingChangeset']);}['_onConflict'](_0x169d33){const _0xda441=_0x239292;return this[_0xda441(0x22d)](),this[_0xda441(0x519)][_0xda441(0x256)](_0x583366,this['unitID'],this[_0xda441(0x29f)],this[_0xda441(0x32b)],[],this[_0xda441(0x377)],_0x169d33);}[_0x239292(0x1d2)](_0xdcd581,_0x5539c1){const _0x1b5c01=_0x239292;var _0x5a5738;_0xdcd581===((_0x5a5738=this[_0x1b5c01(0x32b)])==null?void 0x0:_0x5a5738[_0x1b5c01(0x424)])&&(this[_0x1b5c01(0x411)](),this['_resendTimeout']=_0x5539c1===0x0?0x3e8:Math[_0x1b5c01(0x2b9)](_0x5539c1*0x2,_0x339aec),this[_0x1b5c01(0x46b)]+=this[_0x1b5c01(0x25d)]);}['_clearScheduledTask'](){const _0x1a5c73=_0x239292;var _0x37583f;(_0x37583f=this['_sender'])==null||_0x37583f[_0x1a5c73(0x205)](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x5b101e=_0x53e96f=_0x157b59([_0x202927(0x4,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403[_0x239292(0x42e)])),_0x202927(0x5,(0x0,_0x373403['Inject'])(_0x48ee3a[_0x239292(0x499)])),_0x202927(0x6,_0x373403[_0x239292(0x26b)]),_0x202927(0x7,_0x373403[_0x239292(0x2a1)]),_0x202927(0x8,_0x48ee3a[_0x239292(0x315)]),_0x202927(0x9,_0x373403[_0x239292(0x251)]),_0x202927(0xa,(0x0,_0x373403[_0x239292(0x30b)])(_0x32ba82))],_0x5b101e);let _0x1aaec5=_0x82f23c=class extends _0x3ce48f{constructor(_0x403bbf,_0x538324,_0x2ee342,_0x5158b6,_0x18a022,_0x1c378d,_0x92901,_0x4cd181,_0x4b7f23,_0x583d2d,_0x179b23,_0x3089ee,_0x147145){const _0x2c1f0f=_0x239292;super(_0x403bbf,_0x538324,_0x2ee342,_0x5158b6,_0x18a022,_0x4b7f23,_0x3089ee,_0x4cd181,_0x147145),this['_injector']=_0x92901,this['_logService']=_0x583d2d,this[_0x2c1f0f(0x243)]=_0x179b23,this[_0x2c1f0f(0x335)]=_0x147145,_0x261440(this,'status',_0x2c1f0f(0x340)),_0x261440(this,_0x2c1f0f(0x25d),0x0),_0x261440(this,_0x2c1f0f(0x46b),0x0),_0x261440(this,_0x2c1f0f(0x24e),void 0x0),_0x261440(this,_0x2c1f0f(0x4ef),void 0x0),_0x1c378d&&(this[_0x2c1f0f(0x24e)]=_0x1c378d,this[_0x2c1f0f(0x4ef)]=this[_0x2c1f0f(0x24e)][_0x2c1f0f(0x37a)](({reqId:_0x380438,timeout:_0x765644})=>{const _0x1ff2f2=_0x2c1f0f;this[_0x1ff2f2(0x1d2)](_0x380438,_0x765644);}));}['appendMutation'](_0x37182f){const _0x248426=_0x239292;return this['_pendingMutations'][_0x248426(0x2d6)](_0x37182f),this;}[_0x239292(0x2f4)](_0x2606ae){const _0x40c405=_0x239292;if(this[_0x40c405(0x269)](_0x2606ae))return this[_0x40c405(0x22d)](),this['_injector'][_0x40c405(0x256)](_0x41cb05,this[_0x40c405(0x262)],this[_0x40c405(0x29f)],this[_0x40c405(0x32b)],this[_0x40c405(0x514)],null,[_0x2606ae],this[_0x40c405(0x377)]);try{let _0x29edf7=this[_0x40c405(0x243)]['transformChangesets']([_0x2606ae],[this[_0x40c405(0x32b)]],!0x1);if((0x0,_0x48ee3a[_0x40c405(0x32c)])(_0x29edf7)){let {c1Prime:_0x26b2c2,c2Prime:_0x2fca09}=_0x29edf7,_0x2bebe2=this['_transformService'][_0x40c405(0x38a)](_0x26b2c2[0x0],this[_0x40c405(0x514)]);if((0x0,_0x48ee3a[_0x40c405(0x36a)])(_0x2bebe2)){let {c1Prime:_0x61947f,m2Prime:_0x11213f}=_0x2bebe2;return this['_executeRemoteChangeset'](_0x61947f),_0x2fca09[0x0][_0x40c405(0x2f7)]=this[_0x40c405(0x37e)](),this[_0x40c405(0x22d)](),this[_0x40c405(0x519)]['createInstance'](_0x82f23c,this['unitID'],this[_0x40c405(0x29f)],_0x2fca09[0x0],_0x11213f,this[_0x40c405(0x377)],void 0x0);}throw _0x2bebe2['error'];}throw _0x29edf7[_0x40c405(0x282)];}catch(_0x5a73fd){return this['_logService'][_0x40c405(0x282)](_0x5a73fd),this[_0x40c405(0x449)](!0x1);}}[_0x239292(0x220)](_0x419b98){const _0x34f750=_0x239292;this[_0x34f750(0x22d)]();let _0x59d5c1=this[_0x34f750(0x37e)]();if(_0x419b98[_0x34f750(0x260)]<=_0x59d5c1)return this;if(this['_checkMissing'](_0x419b98))return this[_0x34f750(0x519)][_0x34f750(0x256)](_0x41cb05,this['unitID'],this[_0x34f750(0x29f)],this[_0x34f750(0x32b)],this[_0x34f750(0x514)],_0x419b98[_0x34f750(0x260)],[],this[_0x34f750(0x377)]);this['_incrementRevisionNumber']();let _0x2ad647=this[_0x34f750(0x519)][_0x34f750(0x256)](_0x59fb30,this[_0x34f750(0x262)],this[_0x34f750(0x29f)],this[_0x34f750(0x514)],this['_handler']);return _0x2ad647['_schedule'](),_0x2ad647[_0x34f750(0x252)](),_0x2ad647;}['onRemoteRej'](_0x474bed){const _0x54c732=_0x239292;return this[_0x54c732(0x449)](!!(_0x474bed!=null&&_0x474bed[_0x54c732(0x2d5)]));}[_0x239292(0x20d)](_0x3cfaa9){const _0x4a0ec9=_0x239292;return this['_maxTotalRetryTimeout']>_0x29635a?this['toggleOffline']():(this[_0x4a0ec9(0x24e)]=_0xa4050(this[_0x4a0ec9(0x25d)],{'timeout':this['_resendTimeout'],'reqId':_0x3cfaa9[_0x4a0ec9(0x424)]}),this['_sender']=this[_0x4a0ec9(0x24e)][_0x4a0ec9(0x37a)](({reqId:_0x429c51,timeout:_0x3699b9})=>{this['_resendWithTimeout'](_0x429c51,_0x3699b9);}),this);}[_0x239292(0x3bf)](){const _0x2f5f9f=_0x239292;return this[_0x2f5f9f(0x22d)](),this[_0x2f5f9f(0x519)][_0x2f5f9f(0x256)](_0x561132,this[_0x2f5f9f(0x262)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x2f5f9f(0x377)]);}[_0x239292(0x1fa)](){return this;}['resend'](){const _0x540a0e=_0x239292;this[_0x540a0e(0x377)][_0x540a0e(0x3c0)](this[_0x540a0e(0x32b)]);}[_0x239292(0x449)](_0x4c70f1){const _0x5df12b=_0x239292;return this[_0x5df12b(0x22d)](),this[_0x5df12b(0x519)][_0x5df12b(0x256)](_0x583366,this['unitID'],this['type'],null,this[_0x5df12b(0x514)],this[_0x5df12b(0x377)],_0x4c70f1);}[_0x239292(0x1d2)](_0x18fec8,_0x2b2319){const _0x21b275=_0x239292;var _0x2b1571;_0x18fec8===((_0x2b1571=this[_0x21b275(0x32b)])==null?void 0x0:_0x2b1571[_0x21b275(0x424)])&&(this[_0x21b275(0x411)](),this[_0x21b275(0x25d)]=_0x2b2319===0x0?0x3e8:Math[_0x21b275(0x2b9)](_0x2b2319*0x2,_0x339aec),this[_0x21b275(0x46b)]+=this['_resendTimeout']);}[_0x239292(0x22d)](){const _0xec0702=_0x239292;var _0x35295e;(_0x35295e=this[_0xec0702(0x4ef)])==null||_0x35295e['unsubscribe'](),this[_0xec0702(0x25d)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x1aaec5=_0x82f23c=_0x157b59([_0x202927(0x6,(0x0,_0x373403['Inject'])(_0x373403['Injector'])),_0x202927(0x7,(0x0,_0x373403['Inject'])(_0x48ee3a[_0x239292(0x499)])),_0x202927(0x8,_0x373403['ICommandService']),_0x202927(0x9,_0x373403['ILogService']),_0x202927(0xa,_0x48ee3a[_0x239292(0x315)]),_0x202927(0xb,_0x373403['IUndoRedoService']),_0x202927(0xc,(0x0,_0x373403[_0x239292(0x30b)])(_0x32ba82))],_0x1aaec5);let _0x583366=class extends _0x3ce48f{constructor(_0x47ae06,_0x1db02d,_0x2acf66,_0x54ada8,_0x79f9cb,_0x4d99a7=!0x1,_0x2d2793,_0x4ac623,_0x4c897e,_0x4eb675,_0x18c8ca,_0x3d0e0e,_0x6cd980){const _0x2eedb3=_0x239292;super(_0x47ae06,_0x1db02d,_0x2acf66,_0x54ada8,_0x79f9cb,_0x4ac623,_0x4c897e,_0x4eb675,_0x6cd980),this['_isPermissionRej']=_0x4d99a7,this[_0x2eedb3(0x48d)]=_0x2d2793,this[_0x2eedb3(0x36e)]=_0x18c8ca,this[_0x2eedb3(0x512)]=_0x3d0e0e,this['localCacheService']=_0x6cd980,_0x261440(this,'status',_0x2eedb3(0x441)),this[_0x2eedb3(0x50c)](),this[_0x2eedb3(0x44a)](),this[_0x2eedb3(0x27f)]();}[_0x239292(0x353)](){return this;}[_0x239292(0x2f4)](){return this;}[_0x239292(0x220)](){return this;}[_0x239292(0x26c)](){return this;}[_0x239292(0x20d)](){return this;}['toggleOffline'](){return this;}[_0x239292(0x1fa)](){return this;}[_0x239292(0x411)](){const _0x127b69=_0x239292;throw Error(_0x127b69(0x2ce));}[_0x239292(0x44a)](){const _0x5a2028=_0x239292;var _0x59cc56,_0x89500d,_0x2fa287;(_0x59cc56=this[_0x5a2028(0x4e1)])==null||(_0x89500d=_0x59cc56[_0x5a2028(0x35d)])==null||(_0x89500d=_0x89500d['call'](_0x59cc56,this[_0x5a2028(0x262)],_0x5a2028(0x441)))==null||_0x89500d[_0x5a2028(0x2a9)](()=>void 0x0),(_0x2fa287=this[_0x5a2028(0x4e1)])==null||_0x2fa287[_0x5a2028(0x451)](this['unitID'],this[_0x5a2028(0x29f)],null,[]);}[_0x239292(0x50c)](){const _0x49ad4c=_0x239292;this[_0x49ad4c(0x4d7)]?this[_0x49ad4c(0x512)]['emitEvent']({'id':_0x49ad4c(0x3d2)}):this[_0x49ad4c(0x512)][_0x49ad4c(0x46d)]({'id':_0x49ad4c(0x204)});}[_0x239292(0x27f)](){const _0xeaba2d=_0x239292;this[_0xeaba2d(0x48d)]['updatePermissionPoint'](new _0x2c7bf6['WorkbookEditablePermission'](this[_0xeaba2d(0x262)])['id'],!0x1);}};_0x583366=_0x157b59([_0x202927(0x6,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403[_0x239292(0x4ec)])),_0x202927(0x7,_0x373403[_0x239292(0x26b)]),_0x202927(0x8,_0x373403[_0x239292(0x251)]),_0x202927(0x9,(0x0,_0x373403[_0x239292(0x4c7)])(_0x48ee3a['RevisionService'])),_0x202927(0xa,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403[_0x239292(0x314)])),_0x202927(0xb,(0x0,_0x373403[_0x239292(0x4c7)])(_0x2def2b)),_0x202927(0xc,(0x0,_0x373403[_0x239292(0x30b)])(_0x32ba82))],_0x583366);let _0x561132=class extends _0x3ce48f{constructor(_0x49f0ee,_0x5b48fe,_0x50e10f,_0x567db6,_0x1f8ab8,_0x1800ac,_0x9249e7,_0x47b985,_0x2b50d3,_0x3df3de){const _0x34466e=_0x239292;super(_0x49f0ee,_0x5b48fe,_0x50e10f,_0x567db6,_0x1f8ab8,_0x47b985,_0x2b50d3,_0x9249e7,_0x3df3de),this['_injector']=_0x1800ac,_0x261440(this,_0x34466e(0x3fd),_0x34466e(0x389));}['appendMutation'](_0x3bb802){const _0x16ac70=_0x239292;return this[_0x16ac70(0x514)][_0x16ac70(0x2d6)](_0x3bb802),this['_updateLocalCache'](),this;}[_0x239292(0x2f4)](_0xe9dea5){const _0x94c5b3=_0x239292;throw Error(_0x94c5b3(0x2a3));}[_0x239292(0x220)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x239292(0x26c)](){const _0x161b34=_0x239292;throw Error(_0x161b34(0x2fd));}[_0x239292(0x20d)](){return this;}[_0x239292(0x3bf)](){return this;}[_0x239292(0x1fa)](){const _0x1e8b07=_0x239292;let {_injector:_0x6f5165,_pendingMutations:_0x35ac72,_awaitingChangeset:_0x276666,unitID:_0x4b3ee0,_handler:_0x3434ff,type:_0x290c25}=this,_0x4c5d4f=_0x5534fe(_0x6f5165,_0x4b3ee0,_0x290c25,_0x276666,_0x35ac72,_0x3434ff);return _0x4c5d4f instanceof _0x59fb30?_0x4c5d4f[_0x1e8b07(0x4ce)]():(_0x4c5d4f instanceof _0x1aaec5||_0x4c5d4f instanceof _0x5b101e)&&_0x4c5d4f[_0x1e8b07(0x411)](),_0x4c5d4f;}[_0x239292(0x411)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x561132=_0x157b59([_0x202927(0x5,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403[_0x239292(0x42e)])),_0x202927(0x6,(0x0,_0x373403['Inject'])(_0x48ee3a[_0x239292(0x499)])),_0x202927(0x7,_0x373403['ICommandService']),_0x202927(0x8,_0x373403[_0x239292(0x251)]),_0x202927(0x9,(0x0,_0x373403[_0x239292(0x30b)])(_0x32ba82))],_0x561132);let _0x41cb05=class extends _0x3ce48f{constructor(_0x28d4d9,_0x57a659,_0x154bfa,_0x4c224a,_0x41d14e,_0x39e395,_0x1cf7aa,_0x4a1576,_0x2cc187,_0x5824ce,_0x3d5c8d,_0x5e0757,_0x46cfed,_0x216af0){const _0x142451=_0x239292;super(_0x28d4d9,_0x57a659,_0x154bfa,_0x4c224a,_0x1cf7aa,_0x3d5c8d,_0x5e0757,_0x2cc187,_0x216af0),this['_acknowledgedAwaitingRevision']=_0x41d14e,this['_queuedRemoteChangesets']=_0x39e395,this[_0x142451(0x519)]=_0x4a1576,this['_logService']=_0x5824ce,this['_transformService']=_0x46cfed,this[_0x142451(0x335)]=_0x216af0,_0x261440(this,_0x142451(0x3fd),_0x142451(0x207));}[_0x239292(0x1e7)](_0x31719e){const _0x402746=_0x239292;try{if(this[_0x402746(0x3ec)](_0x31719e)['missingChangesets'])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this[_0x402746(0x3ec)]([...this['_queuedRemoteChangesets']][_0x402746(0x2f5)]((_0x324aea,_0x3e17b5)=>_0x324aea[_0x402746(0x260)]-_0x3e17b5[_0x402746(0x260)]))['missingChangesets'])return this['_queuedRemoteChangesets']=[],this[_0x402746(0x252)](),this['_handler']['onMissingChangesets']({'from':this[_0x402746(0x37e)](),'to':0x0}),this;let _0x140b40=this[_0x402746(0x32b)],_0x3606a8=this[_0x402746(0x514)],_0x554870;if(_0x140b40&&_0x3606a8[_0x402746(0x25c)]!==0x0)_0x554870=this[_0x402746(0x519)][_0x402746(0x256)](_0x1aaec5,this[_0x402746(0x262)],this[_0x402746(0x29f)],_0x140b40,_0x3606a8,this[_0x402746(0x377)],void 0x0);else{if(_0x140b40&&_0x3606a8[_0x402746(0x25c)]===0x0)_0x140b40[_0x402746(0x2f7)]=this[_0x402746(0x37e)](),_0x554870=this[_0x402746(0x519)][_0x402746(0x256)](_0x5b101e,this['unitID'],this[_0x402746(0x29f)],_0x140b40,this[_0x402746(0x377)]);else{if(_0x3606a8[_0x402746(0x25c)]!==0x0){let _0x43e268=this[_0x402746(0x519)][_0x402746(0x256)](_0x59fb30,this[_0x402746(0x262)],this[_0x402746(0x29f)],_0x3606a8,this[_0x402746(0x377)]);_0x43e268[_0x402746(0x4ce)](),_0x554870=_0x43e268;}else _0x554870=this[_0x402746(0x519)][_0x402746(0x256)](_0x2d2058,this['unitID'],this[_0x402746(0x29f)],this[_0x402746(0x377)]);}}return _0x554870[_0x402746(0x252)](),_0x554870;}catch(_0x33b8f7){return this['_logService']['error']('[FetchMissState]',_0x402746(0x423),_0x33b8f7),this[_0x402746(0x519)]['createInstance'](_0x583366,this['unitID'],this[_0x402746(0x29f)],this[_0x402746(0x32b)],this[_0x402746(0x514)],this['_handler'],!0x1);}}['_handleRemoteChangesets'](_0x3b6838){const _0x5ac9be=_0x239292;this[_0x5ac9be(0x1d6)]();for(let _0x593d05=0x0;_0x593d05<_0x3b6838[_0x5ac9be(0x25c)];_0x593d05++){let _0x2468bf=_0x3b6838[_0x593d05],_0x53b676=this[_0x5ac9be(0x37e)]();if(!(_0x2468bf[_0x5ac9be(0x260)]<=_0x53b676)){if(_0x2468bf[_0x5ac9be(0x260)]>_0x53b676+0x1)return{'missingChangesets':!0x0};if(this[_0x5ac9be(0x3ca)](_0x2468bf)){this[_0x5ac9be(0x42b)]();continue;}this[_0x5ac9be(0x3fc)](_0x2468bf),this[_0x5ac9be(0x1d6)]();}}return{'missingChangesets':!0x1};}[_0x239292(0x3fc)](_0x1af96a){const _0x8828d3=_0x239292;let _0x5d72ca=_0x1af96a,_0x30fd40=this[_0x8828d3(0x32b)];if(_0x30fd40){let _0x23ec82=this[_0x8828d3(0x243)][_0x8828d3(0x39e)]([_0x1af96a],[_0x30fd40],!0x1);if(!(0x0,_0x48ee3a['isTransformChangesetsSuccess'])(_0x23ec82))throw _0x23ec82[_0x8828d3(0x282)];_0x5d72ca=_0x23ec82['c1Prime'][0x0],_0x30fd40=_0x23ec82[_0x8828d3(0x4a7)][0x0];}let _0x4a7f6b=this[_0x8828d3(0x514)];if(_0x4a7f6b[_0x8828d3(0x25c)]){let _0x5cf934=this['_transformService'][_0x8828d3(0x38a)](_0x5d72ca,_0x4a7f6b);if(!(0x0,_0x48ee3a[_0x8828d3(0x36a)])(_0x5cf934))throw _0x5cf934[_0x8828d3(0x282)];_0x5d72ca=_0x5cf934[_0x8828d3(0x4da)],_0x4a7f6b=_0x5cf934['m2Prime'];}this[_0x8828d3(0x1d5)](_0x5d72ca),_0x30fd40&&(_0x30fd40[_0x8828d3(0x2f7)]=this[_0x8828d3(0x37e)]()),this['_awaitingChangeset']=_0x30fd40,this[_0x8828d3(0x514)]=_0x4a7f6b;}[_0x239292(0x1d6)](){const _0x4f0e0a=_0x239292;if(!this[_0x4f0e0a(0x32b)]||this[_0x4f0e0a(0x4ee)]==null)return;let _0xbaf762=this['_getCurrentRevision']();if(this[_0x4f0e0a(0x4ee)]<=_0xbaf762)throw Error(_0x4f0e0a(0x283)+this[_0x4f0e0a(0x4ee)]+'.');this['_acknowledgedAwaitingRevision']===_0xbaf762+0x1&&this[_0x4f0e0a(0x42b)]();}[_0x239292(0x42b)](){const _0x3d37b3=_0x239292;this[_0x3d37b3(0x319)](),this[_0x3d37b3(0x32b)]=null,this[_0x3d37b3(0x4ee)]=null;}[_0x239292(0x3ca)](_0x1a8039){const _0x407e2b=_0x239292;let _0x3b0f1c=this[_0x407e2b(0x32b)];return!_0x3b0f1c||!_0x3b0f1c[_0x407e2b(0x381)]||_0x3b0f1c[_0x407e2b(0x424)]===null||_0x3b0f1c[_0x407e2b(0x424)]===void 0x0?!0x1:_0x1a8039['unitID']===_0x3b0f1c['unitID']&&_0x1a8039[_0x407e2b(0x381)]===_0x3b0f1c[_0x407e2b(0x381)]&&_0x1a8039[_0x407e2b(0x424)]===_0x3b0f1c[_0x407e2b(0x424)];}['resend'](){const _0x3be4e4=_0x239292;throw Error(_0x3be4e4(0x3f1));}['appendMutation'](_0x51d3b8){return this['_pendingMutations']['push'](_0x51d3b8),this;}[_0x239292(0x2f4)](_0xc8b93a){const _0xa6db7c=_0x239292;return this[_0xa6db7c(0x4b6)][_0xa6db7c(0x2d6)](_0xc8b93a),this;}[_0x239292(0x220)](_0x1c271c){const _0x4de719=_0x239292;if(this[_0x4de719(0x32b)]){let _0x2f310b=this[_0x4de719(0x37e)]();return _0x1c271c[_0x4de719(0x260)]<=_0x2f310b||(_0x2f310b+0x1===_0x1c271c[_0x4de719(0x260)]?(this[_0x4de719(0x319)](),this[_0x4de719(0x32b)]=null,this[_0x4de719(0x4ee)]=null):this[_0x4de719(0x4ee)]=_0x1c271c['revision']),this;}if(_0x1c271c[_0x4de719(0x260)]<=this[_0x4de719(0x37e)]())return this;throw Error(_0x4de719(0x3ce));}[_0x239292(0x26c)](_0x526a06){const _0x21b257=_0x239292;return this[_0x21b257(0x449)](!!(_0x526a06!=null&&_0x526a06['isPermissionRej']));}[_0x239292(0x20d)](){return this;}[_0x239292(0x3bf)](){const _0x594681=_0x239292;return this[_0x594681(0x519)]['createInstance'](_0x561132,this[_0x594681(0x262)],this['type'],this['_awaitingChangeset'],this[_0x594681(0x514)],this[_0x594681(0x377)]);}[_0x239292(0x1fa)](){return this;}[_0x239292(0x449)](_0x5ed01f){const _0x52850f=_0x239292;return this['_injector'][_0x52850f(0x256)](_0x583366,this[_0x52850f(0x262)],this['type'],this[_0x52850f(0x32b)],this['_pendingMutations'],this['_handler'],_0x5ed01f);}};_0x41cb05=_0x157b59([_0x202927(0x7,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403['Injector'])),_0x202927(0x8,(0x0,_0x373403[_0x239292(0x4c7)])(_0x48ee3a[_0x239292(0x499)])),_0x202927(0x9,_0x373403[_0x239292(0x2a1)]),_0x202927(0xa,_0x373403[_0x239292(0x26b)]),_0x202927(0xb,_0x373403[_0x239292(0x251)]),_0x202927(0xc,_0x48ee3a[_0x239292(0x315)]),_0x202927(0xd,(0x0,_0x373403['Optional'])(_0x32ba82))],_0x41cb05);function _0x5534fe(_0x4d4d49,_0x2d2975,_0x1235ee,_0x15a097,_0x5af869,_0x11d8c2){const _0x2321d5=_0x239292;return _0x15a097&&_0x5af869[_0x2321d5(0x25c)]?_0x4d4d49[_0x2321d5(0x256)](_0x1aaec5,_0x2d2975,_0x1235ee,_0x15a097,_0x5af869,_0x11d8c2,void 0x0):_0x15a097?_0x4d4d49['createInstance'](_0x5b101e,_0x2d2975,_0x1235ee,_0x15a097,_0x11d8c2):_0x5af869[_0x2321d5(0x25c)]?_0x4d4d49['createInstance'](_0x59fb30,_0x2d2975,_0x1235ee,_0x5af869,_0x11d8c2):_0x4d4d49['createInstance'](_0x2d2058,_0x2d2975,_0x1235ee,_0x11d8c2);}let _0x17615d=class extends _0x373403[_0x239292(0x3cd)]{get['state'](){const _0xcfaf4a=_0x239292;return this[_0xcfaf4a(0x435)];}constructor(_0x58a2fd,_0x206fb5,_0xe639e4,_0xe2c234,_0x9ef47d,_0x10f0bb,_0x11583a,_0x76e50e,_0x51401d,_0x2ec169,_0x3032dc,_0x2d04ac,_0x47b2b7,_0x5973fb){const _0x96a9b0=_0x239292;super(),this[_0x96a9b0(0x262)]=_0x58a2fd,this[_0x96a9b0(0x49f)]=_0x206fb5,this[_0x96a9b0(0x2ff)]=_0xe639e4,this['_injector']=_0xe2c234,this[_0x96a9b0(0x2e6)]=_0x9ef47d,this[_0x96a9b0(0x36e)]=_0x10f0bb,this['_revisionService']=_0x11583a,this[_0x96a9b0(0x332)]=_0x76e50e,this[_0x96a9b0(0x3a7)]=_0x51401d,this[_0x96a9b0(0x41e)]=_0x2ec169,this['_commandService']=_0x3032dc,this[_0x96a9b0(0x48d)]=_0x2d04ac,this[_0x96a9b0(0x43e)]=_0x47b2b7,this[_0x96a9b0(0x4e1)]=_0x5973fb,_0x261440(this,'_state$',new _0xad45f2[(_0x96a9b0(0x305))](null)),_0x261440(this,_0x96a9b0(0x293),this[_0x96a9b0(0x26d)][_0x96a9b0(0x3a2)]()),_0x261440(this,_0x96a9b0(0x435),void 0x0),_0x261440(this,_0x96a9b0(0x3da),!0x1),_0x261440(this,_0x96a9b0(0x492),''),_0x261440(this,_0x96a9b0(0x2c8),0x0),_0x261440(this,_0x96a9b0(0x2aa),this[_0x96a9b0(0x293)][_0x96a9b0(0x292)]((0x0,_0xad45f2[_0x96a9b0(0x2c3)])(_0x37d40f=>_0x37d40f?_0x37d40f[_0x96a9b0(0x3fd)]:'offline'),(0x0,_0xad45f2['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_0x261440(this,'_transitionLocked',!0x1),_0x261440(this,_0x96a9b0(0x392),[]);}async['init'](){const _0x515658=_0x239292;if(this[_0x515658(0x2c2)])throw Error(_0x515658(0x203));await this[_0x515658(0x331)]();}[_0x239292(0x313)](){const _0x27327f=_0x239292;return this[_0x27327f(0x3da)]=!0x0,(0x0,_0x373403[_0x27327f(0x4c1)])(()=>{const _0x4a8e52=_0x27327f;this[_0x4a8e52(0x3da)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x239292(0x3c7)](_0x45d696){const _0x5ca161=_0x239292;this[_0x5ca161(0x1e8)](_0x45d696);}[_0x239292(0x42a)](_0x18aeff){const _0x5adf75=_0x239292;this[_0x5adf75(0x435)]=_0x18aeff,this[_0x5adf75(0x26d)][_0x5adf75(0x34a)](_0x18aeff);}async[_0x239292(0x331)](){const _0x2a58fb=_0x239292;if(this[_0x2a58fb(0x42a)](await this['_createInitialState']()),this[_0x2a58fb(0x43e)]){var _0x4053cc;(_0x4053cc=this['_singleActiveUnitService'])==null||_0x4053cc['editingUnit'](this[_0x2a58fb(0x262)]),this[_0x2a58fb(0x1ec)](this['_singleActiveUnitService']['getUnitStatus$'](this['unitID'])[_0x2a58fb(0x37a)](_0x1d3817=>{const _0x528fee=_0x2a58fb;this[_0x528fee(0x41e)][_0x528fee(0x4f7)](_0x528fee(0x4ae),'editing\x20status\x20changed\x20to',_0x1d3817),_0x1d3817===0x1?(this[_0x528fee(0x332)]['emitEvent']({'id':_0x528fee(0x360)}),this['_permissionService'][_0x528fee(0x4f0)](new _0x2c7bf6[(_0x528fee(0x1e5))](this[_0x528fee(0x262)])['id'],!0x1),this['_permissionService'][_0x528fee(0x409)](!0x1)):(this[_0x528fee(0x48d)]['updatePermissionPoint'](new _0x2c7bf6['WorkbookEditablePermission'](this[_0x528fee(0x262)])['id'],!0x0),this[_0x528fee(0x48d)][_0x528fee(0x409)](!0x0));}));}let _0x129520=!0x1;return this[_0x2a58fb(0x1ec)](this['session'][_0x2a58fb(0x45e)]['subscribe'](_0x631b8d=>{const _0x3eb611=_0x2a58fb;_0x631b8d===0x3?this[_0x3eb611(0x225)](_0x129520):_0x631b8d===0x2&&(_0x129520=!0x0,this[_0x3eb611(0x50f)]());})),this['disposeWithMe'](this[_0x2a58fb(0x49f)][_0x2a58fb(0x2dd)][_0x2a58fb(0x37a)](_0x32b467=>{const _0x421f16=_0x2a58fb;try{switch(_0x32b467[_0x421f16(0x4ac)]){case _0x48ee3a[_0x421f16(0x43c)]['NEW_CHANGESETS']:this[_0x421f16(0x215)]((0x0,_0x48ee3a[_0x421f16(0x4d9)])(_0x32b467[_0x421f16(0x222)]));break;case _0x48ee3a[_0x421f16(0x43c)]['CHANGESET_ACK']:this[_0x421f16(0x216)](_0x32b467[_0x421f16(0x222)]);break;case _0x48ee3a[_0x421f16(0x43c)][_0x421f16(0x407)]:this[_0x421f16(0x4a9)]();break;case _0x48ee3a[_0x421f16(0x43c)][_0x421f16(0x206)]:this[_0x421f16(0x3ab)](_0x32b467[_0x421f16(0x222)]);break;case _0x48ee3a['CollaborationEvent'][_0x421f16(0x393)]:this['_onFetchMissResult'](_0x32b467[_0x421f16(0x222)]['changesets'][_0x421f16(0x2c3)](_0x5b5eda=>(0x0,_0x48ee3a[_0x421f16(0x4d9)])(_0x5b5eda)));break;case _0x48ee3a['CollaborationEvent']['PERMISSION_REJ']:this[_0x421f16(0x4a9)]({'isPermissionRej':!0x0});break;case _0x48ee3a[_0x421f16(0x43c)]['UNISCRIPT_RUN']:break;}}catch(_0x20dbb4){throw console[_0x421f16(0x282)]('Error\x20on\x20receiving\x20event',_0x20dbb4),_0x20dbb4;}})),this[_0x2a58fb(0x435)];}[_0x239292(0x425)](){const _0x1e6d58=_0x239292;this[_0x1e6d58(0x44c)]=!0x1;}[_0x239292(0x22a)](){const _0x4e6492=_0x239292;if(this[_0x4e6492(0x44c)])throw Error(_0x4e6492(0x2fe));this[_0x4e6492(0x44c)]=!0x0;}[_0x239292(0x1e8)](_0x3eb5b7){const _0x1a28a4=_0x239292;this[_0x1a28a4(0x22a)](),this[_0x1a28a4(0x42a)](this[_0x1a28a4(0x435)]['appendMutation'](_0x3eb5b7)),this['_unlockTransition']();}[_0x239292(0x215)](_0x38947b){const _0x13d8bd=_0x239292;if(!(_0x38947b[_0x13d8bd(0x260)]<=this[_0x13d8bd(0x31c)]['getCurrentRevOfUnit'](this['unitID']))){if(this[_0x13d8bd(0x3da)]){this[_0x13d8bd(0x392)][_0x13d8bd(0x2d6)](_0x38947b);return;}this[_0x13d8bd(0x4fb)](_0x38947b);}}[_0x239292(0x4ad)](){const _0x521745=_0x239292;this[_0x521745(0x392)][_0x521745(0x1e2)](_0x2be90c=>this[_0x521745(0x4fb)](_0x2be90c)),this[_0x521745(0x392)]=[];}[_0x239292(0x4fb)](_0x451c4d){const _0x2df2e3=_0x239292;let _0x2450f9=this[_0x2df2e3(0x2e6)][_0x2df2e3(0x4b7)][_0x2df2e3(0x397)](this[_0x2df2e3(0x2e6)][_0x2df2e3(0x4b7)][_0x2df2e3(0x2b6)]()[_0x2df2e3(0x4f8)])(_0x451c4d[_0x2df2e3(0x477)],null)||_0x451c4d[_0x2df2e3(0x477)],_0x1cc17d={..._0x451c4d,'mutations':_0x2450f9};this[_0x2df2e3(0x22a)](),this[_0x2df2e3(0x42a)](this[_0x2df2e3(0x435)][_0x2df2e3(0x2f4)](_0x1cc17d)),this['_unlockTransition']();}[_0x239292(0x216)](_0x367b1f){const _0x140719=_0x239292;this[_0x140719(0x22a)](),this[_0x140719(0x42a)](this[_0x140719(0x435)][_0x140719(0x220)](_0x367b1f)),this[_0x140719(0x425)]();}[_0x239292(0x4a9)](_0x366703){const _0x3263f1=_0x239292;this[_0x3263f1(0x22a)](),this[_0x3263f1(0x42a)](this[_0x3263f1(0x435)][_0x3263f1(0x26c)](_0x366703)),this[_0x3263f1(0x425)]();}[_0x239292(0x3ab)](_0x1d5193){const _0x12bf14=_0x239292;this['_lockTransition'](),this[_0x12bf14(0x42a)](this[_0x12bf14(0x435)]['onRemoteRetry'](_0x1d5193)),this[_0x12bf14(0x425)]();}[_0x239292(0x39c)](_0x2e4529){const _0x50ad61=_0x239292;if(!(this[_0x50ad61(0x435)]instanceof _0x41cb05))throw TypeError(_0x50ad61(0x448));let _0x2bede6=_0x2e4529[_0x50ad61(0x2c3)](_0x4dbac4=>{const _0x577063=_0x50ad61;let _0x104d09=this['_compressMutationService'][_0x577063(0x4b7)][_0x577063(0x397)](this[_0x577063(0x2e6)][_0x577063(0x4b7)][_0x577063(0x2b6)]()[_0x577063(0x4f8)])(_0x4dbac4[_0x577063(0x477)],null)||_0x4dbac4['mutations'];return{..._0x4dbac4,'mutations':_0x104d09};});this[_0x50ad61(0x22a)](),this[_0x50ad61(0x42a)](this[_0x50ad61(0x435)][_0x50ad61(0x1e7)](_0x2bede6)),this[_0x50ad61(0x425)]();}['_toggleOffline'](){const _0x3b9a7a=_0x239292;this[_0x3b9a7a(0x22a)](),this[_0x3b9a7a(0x42a)](this[_0x3b9a7a(0x435)][_0x3b9a7a(0x3bf)]()),this[_0x3b9a7a(0x425)]();}[_0x239292(0x225)](_0x200d2c=!0x1){const _0x5c56c2=_0x239292;this[_0x5c56c2(0x22a)](),this['_updateState'](this[_0x5c56c2(0x435)][_0x5c56c2(0x1fa)]()),this['_unlockTransition']();let _0x44b6eb=this[_0x5c56c2(0x435)];_0x200d2c&&_0x44b6eb instanceof _0x2d2058&&(this[_0x5c56c2(0x22a)](),this['_updateState'](_0x44b6eb[_0x5c56c2(0x47b)]()),this[_0x5c56c2(0x425)]());}async[_0x239292(0x21f)](){return new Promise(_0x111e78=>{const _0x2700aa=_0xe127;this['session'][_0x2700aa(0x45e)][_0x2700aa(0x292)]((0x0,_0xad45f2['take'])(0x1))[_0x2700aa(0x37a)](async _0x4f0f5d=>{const _0x4b5196=_0x2700aa;_0x111e78(await this[_0x4b5196(0x3b2)](_0x4f0f5d===0x3));});});}[_0x239292(0x374)](){const _0x45bf85=_0x239292;let _0x39a3fb=this[_0x45bf85(0x262)];return{'onStateChange':(_0x3e5499,_0x368e9f)=>{const _0x5e686e=_0x45bf85;if(_0x3e5499!==this[_0x5e686e(0x435)])throw Error(_0x5e686e(0x233)+_0x3e5499[_0x5e686e(0x3fd)]+'\x0aAfter:\x20'+_0x368e9f['status']+_0x5e686e(0x34b)+this['_state'][_0x5e686e(0x3fd)]);this['_updateState'](_0x368e9f);},'onSendChangeset':_0x50ecee=>{const _0x186db7=_0x45bf85;_0x50ecee['sid']||(_0x50ecee[_0x186db7(0x381)]=this['_changesetSessionId'],_0x50ecee[_0x186db7(0x424)]=++this['_changesetReqId']);let _0x108264={'eventID':_0x48ee3a[_0x186db7(0x43c)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x50ecee[_0x186db7(0x262)],'unitType':this[_0x186db7(0x2ff)],'changeset':_0x50ecee,'memberID':this[_0x186db7(0x49f)][_0x186db7(0x21d)]()}};this[_0x186db7(0x49f)]['send'](_0x108264,this[_0x186db7(0x262)]);},'onMissingChangesets':({from:_0x4cfe9a,to:_0x2ecfa})=>{const _0x4a7cde=_0x45bf85;this[_0x4a7cde(0x41e)][_0x4a7cde(0x4f7)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x4cfe9a+_0x4a7cde(0x326)+_0x2ecfa);let _0x3c232d={'eventID':_0x48ee3a['CollaborationEvent']['FETCH_MISSING'],'data':{'unitID':_0x39a3fb,'unitType':this[_0x4a7cde(0x2ff)],'from':_0x4cfe9a,'to':_0x2ecfa}};this[_0x4a7cde(0x49f)][_0x4a7cde(0x44b)](_0x3c232d,this[_0x4a7cde(0x262)]);}};}async['_createInitialStateImpl'](_0x925478){const _0x43594d=_0x239292;var _0x435da5,_0x44c1b8,_0x1e9b52;let _0x5dc5a2=await((_0x435da5=this[_0x43594d(0x4e1)])==null?void 0x0:_0x435da5[_0x43594d(0x404)](this[_0x43594d(0x262)])),_0x1dc12a=(_0x44c1b8=_0x5dc5a2==null?void 0x0:_0x5dc5a2[_0x43594d(0x477)])==null?[]:_0x44c1b8,_0x190041=(_0x1e9b52=_0x5dc5a2==null?void 0x0:_0x5dc5a2[_0x43594d(0x2cd)])==null?null:_0x1e9b52,_0x109f8f=!!(_0x190041!=null&&_0x190041[_0x43594d(0x381)])&&!!(_0x190041!=null&&_0x190041['reqId']);this[_0x43594d(0x492)]=_0x109f8f?_0x190041[_0x43594d(0x381)]:(0x0,_0x48ee3a[_0x43594d(0x40a)])(),this[_0x43594d(0x2c8)]=_0x109f8f?_0x190041[_0x43594d(0x424)]:0x0;let _0x153945=this[_0x43594d(0x262)];try{this[_0x43594d(0x370)](_0x190041,_0x1dc12a);}catch(_0x5574eb){this[_0x43594d(0x41e)][_0x43594d(0x282)](_0x5574eb);}let _0x5983c2=this[_0x43594d(0x374)]();if(_0x925478){let _0x57cd8b=_0x5534fe(this[_0x43594d(0x519)],_0x153945,this[_0x43594d(0x2ff)],_0x190041,_0x1dc12a,_0x5983c2);return _0x57cd8b instanceof _0x59fb30?_0x57cd8b[_0x43594d(0x4ce)]():(_0x57cd8b instanceof _0x1aaec5||_0x57cd8b instanceof _0x5b101e)&&_0x57cd8b[_0x43594d(0x411)](),_0x57cd8b;}return this[_0x43594d(0x519)][_0x43594d(0x256)](_0x561132,_0x153945,this[_0x43594d(0x2ff)],_0x190041,_0x1dc12a,_0x5983c2);}[_0x239292(0x370)](_0x1903ff,_0x388d53){const _0xe5db40=_0x239292;var _0x3b1707,_0x64b22b;let _0x3d2d3f=this[_0xe5db40(0x2e6)][_0xe5db40(0x4b7)][_0xe5db40(0x397)](this[_0xe5db40(0x2e6)]['interceptor'][_0xe5db40(0x2b6)]()[_0xe5db40(0x4f8)]);(_0x3b1707=_0x3d2d3f((_0x1903ff==null?void 0x0:_0x1903ff['mutations'])||[],null))==null||_0x3b1707[_0xe5db40(0x1e2)](_0x2135cc=>this[_0xe5db40(0x351)]['executeCommand'](_0x2135cc['id'],_0x2135cc[_0xe5db40(0x2d1)])),(_0x64b22b=_0x3d2d3f(_0x388d53||[],null))==null||_0x64b22b['forEach'](_0x2e23f8=>this['_commandService'][_0xe5db40(0x47a)](_0x2e23f8['id'],_0x2e23f8['params']));}};_0x17615d=_0x157b59([_0x202927(0x3,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403[_0x239292(0x42e)])),_0x202927(0x4,(0x0,_0x373403['Inject'])(_0x48ee3a[_0x239292(0x3ad)])),_0x202927(0x5,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403[_0x239292(0x314)])),_0x202927(0x6,(0x0,_0x373403[_0x239292(0x4c7)])(_0x48ee3a['RevisionService'])),_0x202927(0x7,(0x0,_0x373403[_0x239292(0x4c7)])(_0x2def2b)),_0x202927(0x8,_0x373403[_0x239292(0x3d0)]),_0x202927(0x9,_0x373403['ILogService']),_0x202927(0xa,_0x373403[_0x239292(0x26b)]),_0x202927(0xb,_0x373403[_0x239292(0x4ec)]),_0x202927(0xc,(0x0,_0x373403[_0x239292(0x30b)])(_0x354942)),_0x202927(0xd,(0x0,_0x373403[_0x239292(0x30b)])(_0x32ba82))],_0x17615d);let _0x2044be=class extends _0x17615d{constructor(_0x1b50a2,_0x33798f,_0x547b27,_0x1011d1,_0x5b3bdd,_0x3dc35f,_0xf5e7cd,_0x30fda2,_0x3de376,_0x5c65e1,_0x3e4c11,_0x5e60ac,_0x44e692,_0xf24852,_0x34d17d){const _0x38e9a7=_0x239292;super(_0x1b50a2,_0x547b27,_0x33798f,_0x1011d1,_0x5b3bdd,_0x3dc35f,_0xf5e7cd,_0x30fda2,_0x3de376,_0x5c65e1,_0x3e4c11,_0x5e60ac,_0xf24852,_0x34d17d),this[_0x38e9a7(0x262)]=_0x1b50a2,this[_0x38e9a7(0x29f)]=_0x33798f,this[_0x38e9a7(0x2c7)]=_0x44e692,_0x261440(this,_0x38e9a7(0x4d6),null);}[_0x239292(0x3e9)](_0x149040){this['_handlerCallback']=_0x149040;}[_0x239292(0x328)](){const _0x4baca6=_0x239292;this[_0x4baca6(0x4d6)]=null,super[_0x4baca6(0x328)]();}[_0x239292(0x374)](){const _0x5d00e8=_0x239292;let _0x405a84=super[_0x5d00e8(0x374)]();return _0x405a84[_0x5d00e8(0x3e6)]=_0x300641=>{const _0x50d146=_0x5d00e8;var _0x149a82,_0x3ffb94;return(_0x149a82=this[_0x50d146(0x4d6)])==null||(_0x3ffb94=_0x149a82[_0x50d146(0x3e6)])==null?void 0x0:_0x3ffb94['call'](_0x149a82,_0x300641);},_0x405a84[_0x5d00e8(0x249)]=_0x4a1455=>{const _0x514b57=_0x5d00e8;var _0x42615a,_0x5cda64;return(_0x42615a=this['_handlerCallback'])==null||(_0x5cda64=_0x42615a[_0x514b57(0x249)])==null?void 0x0:_0x5cda64['call'](_0x42615a,_0x4a1455);},_0x405a84[_0x5d00e8(0x23f)]=_0x483529=>{const _0x3572ca=_0x5d00e8;var _0x2a606c,_0x307b15;return(_0x2a606c=this[_0x3572ca(0x4d6)])==null||(_0x307b15=_0x2a606c[_0x3572ca(0x23f)])==null?void 0x0:_0x307b15[_0x3572ca(0x515)](_0x2a606c,_0x483529);},_0x405a84['onSyncEditingCollabCursor']=_0x339af0=>{const _0x3c0f70=_0x5d00e8;var _0x4cee00,_0x31414f;return(_0x4cee00=this[_0x3c0f70(0x4d6)])==null||(_0x31414f=_0x4cee00[_0x3c0f70(0x40e)])==null?void 0x0:_0x31414f['call'](_0x4cee00,_0x339af0);},_0x405a84['onTransformRemoteChangesetByIMECache']=_0x3b2fb2=>{const _0x2b2791=_0x5d00e8;var _0x3c63a0,_0x2a92d4,_0x409800;return(_0x3c63a0=(_0x2a92d4=this[_0x2b2791(0x4d6)])==null||(_0x409800=_0x2a92d4['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x409800[_0x2b2791(0x515)](_0x2a92d4,_0x3b2fb2))==null?_0x3b2fb2:_0x3c63a0;},_0x405a84[_0x5d00e8(0x37b)]=_0x2e32d8=>{const _0xd87b8f=_0x5d00e8;var _0x32f786,_0x406869,_0x754efe;return(_0x32f786=(_0x406869=this[_0xd87b8f(0x4d6)])==null||(_0x754efe=_0x406869[_0xd87b8f(0x37b)])==null?void 0x0:_0x754efe[_0xd87b8f(0x515)](_0x406869,_0x2e32d8))==null?_0x2e32d8:_0x32f786;},_0x405a84;}async['_init'](){const _0x3b7427=_0x239292;let _0x3991c4=await super[_0x3b7427(0x331)]();return this[_0x3b7427(0x1ec)](this[_0x3b7427(0x2c7)][_0x3b7427(0x4fd)]['subscribe'](_0x564838=>{const _0x240b39=_0x3b7427;if(_0x564838==null||_0x564838[_0x240b39(0x445)]!==this[_0x240b39(0x262)])return;let {commandId:_0x2dc2de,redoState:_0x34b945,unitId:_0x23addf}=_0x564838,_0xf32410={'id':_0x2dc2de,'type':_0x373403[_0x240b39(0x497)]['MUTATION'],'params':{'unitId':_0x23addf,'actions':_0x34b945['actions'],'textRanges':null}};this[_0x240b39(0x1e8)](_0xf32410);})),this[_0x3b7427(0x1ec)](this['_commandService'][_0x3b7427(0x1d1)]((_0x27e256,_0x122a95)=>{const _0x537a84=_0x3b7427;if(_0x27e256[_0x537a84(0x29f)]!==_0x373403[_0x537a84(0x497)][_0x537a84(0x522)]||_0x122a95!=null&&_0x122a95[_0x537a84(0x4e2)]||_0x122a95!=null&&_0x122a95[_0x537a84(0x45c)]||_0x27e256['id']===_0x18c1fc[_0x537a84(0x321)]['id'])return;let _0x4bd293=_0x27e256[_0x537a84(0x2d1)];if((_0x4bd293==null?void 0x0:_0x4bd293[_0x537a84(0x445)])!==this[_0x537a84(0x262)])return;let _0x470b11=_0x27e256,_0x1d9d52=this[_0x537a84(0x2e6)][_0x537a84(0x4b7)][_0x537a84(0x397)](this['_compressMutationService'][_0x537a84(0x4b7)][_0x537a84(0x2b6)]()['COMPRESS_MUTATION_SEND'])([_0x470b11],this[_0x537a84(0x3a7)])||[_0x470b11];this[_0x537a84(0x1e8)](_0x1d9d52[0x0]);})),_0x3991c4;}};_0x2044be=_0x157b59([_0x202927(0x3,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403[_0x239292(0x42e)])),_0x202927(0x4,(0x0,_0x373403[_0x239292(0x4c7)])(_0x48ee3a[_0x239292(0x3ad)])),_0x202927(0x5,(0x0,_0x373403['Inject'])(_0x373403[_0x239292(0x314)])),_0x202927(0x6,(0x0,_0x373403[_0x239292(0x4c7)])(_0x48ee3a[_0x239292(0x499)])),_0x202927(0x7,(0x0,_0x373403['Inject'])(_0x2def2b)),_0x202927(0x8,_0x373403[_0x239292(0x3d0)]),_0x202927(0x9,_0x373403[_0x239292(0x2a1)]),_0x202927(0xa,_0x373403[_0x239292(0x26b)]),_0x202927(0xb,_0x373403[_0x239292(0x4ec)]),_0x202927(0xc,(0x0,_0x373403[_0x239292(0x4c7)])(_0x18c1fc[_0x239292(0x33b)])),_0x202927(0xd,(0x0,_0x373403[_0x239292(0x30b)])(_0x354942)),_0x202927(0xe,(0x0,_0x373403[_0x239292(0x30b)])(_0x32ba82))],_0x2044be);let _0x5aba1e=class extends _0x17615d{constructor(_0x514471,_0x22bfd9,_0x88d4ae,_0x3855f8,_0x4b4ff4,_0x427a81,_0x198b9b,_0x542ec5,_0x2c11d5,_0xc004fa,_0x991d18,_0x302985,_0x198b6f,_0x16f7dc){const _0x94d993=_0x239292;super(_0x514471,_0x88d4ae,_0x22bfd9,_0x3855f8,_0x4b4ff4,_0x427a81,_0x198b9b,_0x542ec5,_0x2c11d5,_0xc004fa,_0x991d18,_0x302985,_0x198b6f,_0x16f7dc),this['unitID']=_0x514471,this[_0x94d993(0x29f)]=_0x22bfd9;}async[_0x239292(0x331)](){const _0x5c6ba2=_0x239292;let _0x1e02f7=await super[_0x5c6ba2(0x331)]();return this[_0x5c6ba2(0x1ec)](this[_0x5c6ba2(0x351)]['onMutationExecutedForCollab']((_0x39fdfe,_0x12c6b6)=>{const _0x28189e=_0x5c6ba2;if(_0x39fdfe[_0x28189e(0x29f)]!==_0x373403['CommandType'][_0x28189e(0x522)]||_0x12c6b6!=null&&_0x12c6b6['fromCollab']||_0x12c6b6!=null&&_0x12c6b6[_0x28189e(0x45c)])return;let _0x2ceda4=_0x39fdfe['params'];if((_0x2ceda4==null?void 0x0:_0x2ceda4[_0x28189e(0x445)])!==this[_0x28189e(0x262)])return;let _0x50515a=_0x39fdfe,_0x4d2e1c=this[_0x28189e(0x2e6)][_0x28189e(0x4b7)][_0x28189e(0x397)](this[_0x28189e(0x2e6)][_0x28189e(0x4b7)][_0x28189e(0x2b6)]()[_0x28189e(0x414)])([_0x50515a],this[_0x28189e(0x3a7)])||[_0x50515a];this[_0x28189e(0x1e8)](_0x4d2e1c[0x0]);})),_0x1e02f7;}};_0x5aba1e=_0x157b59([_0x202927(0x3,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403[_0x239292(0x42e)])),_0x202927(0x4,(0x0,_0x373403[_0x239292(0x4c7)])(_0x48ee3a[_0x239292(0x3ad)])),_0x202927(0x5,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403[_0x239292(0x314)])),_0x202927(0x6,(0x0,_0x373403[_0x239292(0x4c7)])(_0x48ee3a[_0x239292(0x499)])),_0x202927(0x7,(0x0,_0x373403['Inject'])(_0x2def2b)),_0x202927(0x8,_0x373403[_0x239292(0x3d0)]),_0x202927(0x9,_0x373403[_0x239292(0x2a1)]),_0x202927(0xa,_0x373403[_0x239292(0x26b)]),_0x202927(0xb,_0x373403[_0x239292(0x4ec)]),_0x202927(0xc,(0x0,_0x373403[_0x239292(0x30b)])(_0x354942)),_0x202927(0xd,(0x0,_0x373403[_0x239292(0x30b)])(_0x32ba82))],_0x5aba1e);let _0x81a6ef=class extends _0x17615d{constructor(_0x42d599,_0x5c4669,_0x401ce6,_0x23aa0c,_0x58abb1,_0x1f9c79,_0x44dbdd,_0x7ab37a,_0x536b55,_0x24680b,_0x154ad6,_0x2ebce7,_0x23544c,_0x463d86,_0x578fc6){const _0x10e1e5=_0x239292;super(_0x42d599,_0x401ce6,_0x5c4669,_0x23aa0c,_0x58abb1,_0x1f9c79,_0x44dbdd,_0x536b55,_0x24680b,_0x154ad6,_0x2ebce7,_0x23544c,_0x463d86,_0x578fc6),this['unitID']=_0x42d599,this[_0x10e1e5(0x29f)]=_0x5c4669,this['_sheetTransformSelectionsService']=_0x7ab37a;}[_0x239292(0x374)](){const _0x4cf628=_0x239292;let _0x3c9aae=super[_0x4cf628(0x374)]();return _0x3c9aae[_0x4cf628(0x23f)]=_0x428079=>this['_sheetTransformSelectionsService'][_0x4cf628(0x405)](_0x428079),_0x3c9aae;}async[_0x239292(0x331)](){const _0x33ffe1=_0x239292;let _0x13d31a=await super[_0x33ffe1(0x331)]();return this['disposeWithMe'](this[_0x33ffe1(0x351)][_0x33ffe1(0x1d1)]((_0x36086d,_0x2b5d5b)=>{const _0x262436=_0x33ffe1;if(_0x36086d[_0x262436(0x29f)]!==_0x373403['CommandType'][_0x262436(0x522)]||_0x2b5d5b!=null&&_0x2b5d5b[_0x262436(0x4e2)]||_0x2b5d5b!=null&&_0x2b5d5b[_0x262436(0x45c)])return;let _0x44ebc3=_0x36086d[_0x262436(0x2d1)];if((_0x44ebc3==null?void 0x0:_0x44ebc3[_0x262436(0x445)])!==this['unitID'])return;let _0x5a5743=_0x36086d,_0x117bac=this[_0x262436(0x2e6)]['interceptor'][_0x262436(0x397)](this[_0x262436(0x2e6)][_0x262436(0x4b7)][_0x262436(0x2b6)]()[_0x262436(0x414)])([_0x5a5743],this[_0x262436(0x3a7)])||[_0x5a5743];this[_0x262436(0x1e8)](_0x117bac[0x0]);})),_0x13d31a;}};_0x81a6ef=_0x157b59([_0x202927(0x3,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403[_0x239292(0x42e)])),_0x202927(0x4,(0x0,_0x373403['Inject'])(_0x48ee3a[_0x239292(0x3ad)])),_0x202927(0x5,(0x0,_0x373403['Inject'])(_0x373403['LocaleService'])),_0x202927(0x6,(0x0,_0x373403[_0x239292(0x4c7)])(_0x48ee3a[_0x239292(0x499)])),_0x202927(0x7,(0x0,_0x373403[_0x239292(0x4c7)])(_0x213414)),_0x202927(0x8,(0x0,_0x373403[_0x239292(0x4c7)])(_0x2def2b)),_0x202927(0x9,_0x373403[_0x239292(0x3d0)]),_0x202927(0xa,_0x373403[_0x239292(0x2a1)]),_0x202927(0xb,_0x373403[_0x239292(0x26b)]),_0x202927(0xc,_0x373403[_0x239292(0x4ec)]),_0x202927(0xd,(0x0,_0x373403[_0x239292(0x30b)])(_0x354942)),_0x202927(0xe,(0x0,_0x373403[_0x239292(0x30b)])(_0x32ba82))],_0x81a6ef);let _0x4d6a5e=class extends _0x17615d{constructor(_0xa65843,_0xbbc82e,_0x331447,_0x1ed825,_0x11ec9a,_0x483500,_0x5e4891,_0x12db48,_0x9987b8,_0x1256c3,_0x5bfc9a,_0x43c6d7,_0x4bc415,_0x5ce3e6){const _0x4e3c56=_0x239292;super(_0xa65843,_0x331447,_0xbbc82e,_0x1ed825,_0x11ec9a,_0x483500,_0x5e4891,_0x12db48,_0x9987b8,_0x1256c3,_0x5bfc9a,_0x43c6d7,_0x4bc415,_0x5ce3e6),this[_0x4e3c56(0x262)]=_0xa65843,this[_0x4e3c56(0x29f)]=_0xbbc82e;}async['_init'](){const _0x380de0=_0x239292;let _0xc2266a=await super[_0x380de0(0x331)]();return this[_0x380de0(0x1ec)](this[_0x380de0(0x351)][_0x380de0(0x1d1)]((_0x10a98b,_0x5787b6)=>{const _0x2682f0=_0x380de0;if(_0x10a98b['type']!==_0x373403['CommandType']['MUTATION']||_0x5787b6!=null&&_0x5787b6[_0x2682f0(0x4e2)]||_0x5787b6!=null&&_0x5787b6[_0x2682f0(0x45c)])return;let _0x34c1bf=_0x10a98b['params'];if((_0x34c1bf==null?void 0x0:_0x34c1bf[_0x2682f0(0x445)])!==this['unitID'])return;let _0x47dc95=_0x10a98b,_0x569940=this[_0x2682f0(0x2e6)][_0x2682f0(0x4b7)][_0x2682f0(0x397)](this[_0x2682f0(0x2e6)]['interceptor'][_0x2682f0(0x2b6)]()['COMPRESS_MUTATION_SEND'])([_0x47dc95],this[_0x2682f0(0x3a7)])||[_0x47dc95];this[_0x2682f0(0x1e8)](_0x569940[0x0]);})),_0xc2266a;}};_0x4d6a5e=_0x157b59([_0x202927(0x3,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403[_0x239292(0x42e)])),_0x202927(0x4,(0x0,_0x373403[_0x239292(0x4c7)])(_0x48ee3a[_0x239292(0x3ad)])),_0x202927(0x5,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403[_0x239292(0x314)])),_0x202927(0x6,(0x0,_0x373403[_0x239292(0x4c7)])(_0x48ee3a['RevisionService'])),_0x202927(0x7,(0x0,_0x373403[_0x239292(0x4c7)])(_0x2def2b)),_0x202927(0x8,_0x373403['IUniverInstanceService']),_0x202927(0x9,_0x373403['ILogService']),_0x202927(0xa,_0x373403['ICommandService']),_0x202927(0xb,_0x373403['IPermissionService']),_0x202927(0xc,(0x0,_0x373403[_0x239292(0x30b)])(_0x354942)),_0x202927(0xd,(0x0,_0x373403[_0x239292(0x30b)])(_0x32ba82))],_0x4d6a5e);let _0x484a9e=class extends _0x17615d{constructor(_0x308533,_0x523041,_0x4b7653,_0x4aa94e,_0x3ee38f,_0xb028f2,_0x39fffb,_0x53e934,_0x380996,_0x49faef,_0x22136c,_0x3d2062,_0x389117,_0x5e6007){const _0x5dcaad=_0x239292;super(_0x308533,_0x4b7653,_0x523041,_0x4aa94e,_0x3ee38f,_0xb028f2,_0x39fffb,_0x53e934,_0x380996,_0x49faef,_0x22136c,_0x3d2062,_0x389117,_0x5e6007),this[_0x5dcaad(0x262)]=_0x308533,this[_0x5dcaad(0x29f)]=_0x523041;}async['_init'](){const _0x347994=_0x239292;let _0x169b5d=await super[_0x347994(0x331)]();return this[_0x347994(0x1ec)](this[_0x347994(0x351)][_0x347994(0x1d1)]((_0x5a690f,_0x373044)=>{const _0x3b91af=_0x347994;if(_0x5a690f['type']!==_0x373403[_0x3b91af(0x497)][_0x3b91af(0x522)]||_0x373044!=null&&_0x373044[_0x3b91af(0x4e2)]||_0x373044!=null&&_0x373044['onlyLocal'])return;let _0x5c9133=_0x5a690f[_0x3b91af(0x2d1)];if((_0x5c9133==null?void 0x0:_0x5c9133[_0x3b91af(0x445)])!==this[_0x3b91af(0x262)])return;let _0x4bdc5a=_0x5a690f,_0x3a3ea7=this['_compressMutationService'][_0x3b91af(0x4b7)][_0x3b91af(0x397)](this[_0x3b91af(0x2e6)]['interceptor'][_0x3b91af(0x2b6)]()[_0x3b91af(0x414)])([_0x4bdc5a],this[_0x3b91af(0x3a7)])||[_0x4bdc5a];this['_onLocalMutation'](_0x3a3ea7[0x0]);})),_0x169b5d;}};_0x484a9e=_0x157b59([_0x202927(0x3,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403[_0x239292(0x42e)])),_0x202927(0x4,(0x0,_0x373403[_0x239292(0x4c7)])(_0x48ee3a['CompressMutationService'])),_0x202927(0x5,(0x0,_0x373403['Inject'])(_0x373403['LocaleService'])),_0x202927(0x6,(0x0,_0x373403[_0x239292(0x4c7)])(_0x48ee3a['RevisionService'])),_0x202927(0x7,(0x0,_0x373403[_0x239292(0x4c7)])(_0x2def2b)),_0x202927(0x8,_0x373403[_0x239292(0x3d0)]),_0x202927(0x9,_0x373403[_0x239292(0x2a1)]),_0x202927(0xa,_0x373403[_0x239292(0x26b)]),_0x202927(0xb,_0x373403[_0x239292(0x4ec)]),_0x202927(0xc,(0x0,_0x373403[_0x239292(0x30b)])(_0x354942)),_0x202927(0xd,(0x0,_0x373403[_0x239292(0x30b)])(_0x32ba82))],_0x484a9e);let _0x565e68=(0x0,_0x373403[_0x239292(0x33e)])(_0x239292(0x38c));function _0x1f4d00(_0x3417cc){const _0x479bb4=_0x239292;let _0x266cc1=_0x3417cc[_0x479bb4(0x222)],_0x37b886=JSON[_0x479bb4(0x2bb)](_0x266cc1);switch(_0x37b886[_0x479bb4(0x421)]){case _0x31a69d[_0x479bb4(0x1f2)][_0x479bb4(0x1de)]:case _0x31a69d[_0x479bb4(0x1f2)][_0x479bb4(0x475)]:{let _0x18561b=_0x37b886[_0x479bb4(0x3f3)];return{..._0x37b886,'data':_0x18561b,'cmd':_0x37b886[_0x479bb4(0x421)]};}case _0x31a69d['CombCmd'][_0x479bb4(0x4c3)]:{let _0x41e3b5=_0x37b886[_0x479bb4(0x4c0)];return{..._0x37b886,'data':_0x41e3b5,'cmd':_0x37b886[_0x479bb4(0x421)]};}case _0x31a69d['CombCmd'][_0x479bb4(0x3c8)]:{let _0x3bdad5=_0x37b886[_0x479bb4(0x2dc)];switch(_0x3bdad5[_0x479bb4(0x4ac)]){case _0x48ee3a['CollaborationEvent'][_0x479bb4(0x403)]:var _0x3b3785;return{..._0x37b886,'data':{..._0x3bdad5,'data':(_0x3b3785=_0x3bdad5[_0x479bb4(0x359)])==null?void 0x0:_0x3b3785['cs']},'cmd':_0x37b886['cmd']};case _0x48ee3a['CollaborationEvent']['CHANGESET_ACK']:var _0x51e730;return{..._0x37b886,'data':{..._0x3bdad5,'data':(_0x51e730=_0x3bdad5[_0x479bb4(0x20a)])==null?void 0x0:_0x51e730['cs']},'cmd':_0x37b886[_0x479bb4(0x421)]};case _0x48ee3a[_0x479bb4(0x43c)][_0x479bb4(0x4bf)]:var _0x33ff9e;return{..._0x37b886,'data':{..._0x3bdad5,'data':(_0x33ff9e=_0x3bdad5[_0x479bb4(0x433)])==null?void 0x0:_0x33ff9e['cs']},'cmd':_0x37b886[_0x479bb4(0x421)]};case _0x48ee3a['CollaborationEvent'][_0x479bb4(0x407)]:var _0xc52d02;return{..._0x37b886,'data':{..._0x3bdad5,'data':(_0xc52d02=_0x3bdad5[_0x479bb4(0x4cc)])==null?void 0x0:_0xc52d02['cs']},'cmd':_0x37b886['cmd']};case _0x48ee3a[_0x479bb4(0x43c)][_0x479bb4(0x206)]:var _0x415684;return{..._0x37b886,'data':{..._0x3bdad5,'data':(_0x415684=_0x3bdad5[_0x479bb4(0x3a4)])==null?void 0x0:_0x415684['cs']},'cmd':_0x37b886[_0x479bb4(0x421)]};case _0x48ee3a[_0x479bb4(0x43c)][_0x479bb4(0x3a8)]:return{..._0x37b886,'data':{..._0x3bdad5,'data':_0x3bdad5['updateCursorEvent']},'cmd':_0x37b886['cmd']};case _0x48ee3a[_0x479bb4(0x43c)]['USERS_ENTER']:return{..._0x37b886,'data':{..._0x3bdad5,'data':_0x3bdad5[_0x479bb4(0x520)]},'cmd':_0x37b886[_0x479bb4(0x421)]};case _0x48ee3a[_0x479bb4(0x43c)]['USERS_LEAVE']:return{..._0x37b886,'data':{..._0x3bdad5,'data':_0x3bdad5[_0x479bb4(0x347)]},'cmd':_0x37b886[_0x479bb4(0x421)]};case _0x48ee3a[_0x479bb4(0x43c)][_0x479bb4(0x447)]:return{..._0x37b886,'data':{..._0x3bdad5,'data':_0x3bdad5[_0x479bb4(0x2e7)]},'cmd':_0x37b886[_0x479bb4(0x421)]};case _0x48ee3a[_0x479bb4(0x43c)]['LIVESHARE_FETCH_OPERATIONS']:case _0x48ee3a[_0x479bb4(0x43c)][_0x479bb4(0x229)]:return{..._0x37b886,'data':{..._0x3bdad5,'data':_0x3bdad5['liveShareOperation']},'cmd':_0x37b886[_0x479bb4(0x421)]};case _0x48ee3a[_0x479bb4(0x43c)][_0x479bb4(0x39a)]:return{..._0x37b886,'data':{..._0x3bdad5,'data':_0x3bdad5[_0x479bb4(0x2e7)]},'cmd':_0x37b886[_0x479bb4(0x421)]};case _0x48ee3a[_0x479bb4(0x43c)][_0x479bb4(0x280)]:return{..._0x37b886,'data':_0x3bdad5,'cmd':_0x37b886[_0x479bb4(0x421)]};case _0x48ee3a[_0x479bb4(0x43c)][_0x479bb4(0x454)]:return{..._0x37b886,'data':{..._0x3bdad5,'data':_0x3bdad5[_0x479bb4(0x474)]},'cmd':_0x37b886[_0x479bb4(0x421)]};case _0x48ee3a['CollaborationEvent'][_0x479bb4(0x366)]:return{..._0x37b886,'data':{..._0x3bdad5,'data':_0x3bdad5[_0x479bb4(0x2da)]},'cmd':_0x37b886[_0x479bb4(0x421)]};case _0x48ee3a[_0x479bb4(0x43c)][_0x479bb4(0x390)]:return{..._0x37b886,'data':{..._0x3bdad5,'data':_0x3bdad5['shouldCloseConn']},'cmd':_0x37b886[_0x479bb4(0x421)]};case _0x48ee3a[_0x479bb4(0x43c)][_0x479bb4(0x516)]:return{..._0x37b886,'data':{..._0x3bdad5,'data':_0x3bdad5[_0x479bb4(0x40f)]},'cmd':_0x37b886[_0x479bb4(0x421)]};default:return _0x37b886;}}default:return _0x37b886;}}function _0x4c8786(_0x2cbbb1){const _0x436659=_0x239292;switch(_0x2cbbb1[_0x436659(0x421)]){case _0x31a69d[_0x436659(0x1f2)][_0x436659(0x1de)]:case _0x31a69d['CombCmd'][_0x436659(0x475)]:return JSON[_0x436659(0x3db)]({'cmd':_0x2cbbb1[_0x436659(0x421)],'routeKey':_0x2cbbb1[_0x436659(0x458)]});case _0x31a69d[_0x436659(0x1f2)]['INGEST']:{let _0x25b585;switch(_0x2cbbb1[_0x436659(0x222)][_0x436659(0x4ac)]){case _0x48ee3a[_0x436659(0x43c)][_0x436659(0x3a8)]:_0x25b585={'eventID':_0x48ee3a[_0x436659(0x43c)]['UPDATE_CURSOR'],'updateCursorEvent':_0x2cbbb1[_0x436659(0x222)][_0x436659(0x222)]};break;case _0x48ee3a['CollaborationEvent'][_0x436659(0x1ed)]:_0x25b585={'eventID':_0x48ee3a[_0x436659(0x43c)][_0x436659(0x1ed)],'leaveEvent':_0x2cbbb1[_0x436659(0x222)]['data']};break;case _0x48ee3a[_0x436659(0x43c)][_0x436659(0x356)]:_0x25b585={'eventID':_0x48ee3a[_0x436659(0x43c)][_0x436659(0x356)],'joinEvent':_0x2cbbb1['data'][_0x436659(0x222)]};break;case _0x48ee3a['CollaborationEvent'][_0x436659(0x447)]:_0x25b585={'eventID':_0x48ee3a[_0x436659(0x43c)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2cbbb1[_0x436659(0x222)][_0x436659(0x222)]};break;case _0x48ee3a[_0x436659(0x43c)][_0x436659(0x229)]:_0x25b585={'eventID':_0x48ee3a['CollaborationEvent'][_0x436659(0x229)],'liveShareOperation':_0x2cbbb1[_0x436659(0x222)][_0x436659(0x222)]};break;case _0x48ee3a['CollaborationEvent']['LIVESHARE_TERMINATE']:_0x25b585={'eventID':_0x48ee3a[_0x436659(0x43c)][_0x436659(0x39a)],'liveShareTerminate':_0x2cbbb1[_0x436659(0x222)][_0x436659(0x222)]};break;case _0x48ee3a[_0x436659(0x43c)][_0x436659(0x40b)]:_0x25b585={'eventID':_0x48ee3a[_0x436659(0x43c)][_0x436659(0x40b)],'liveShareRequestHost':_0x2cbbb1['data'][_0x436659(0x222)]};break;case _0x48ee3a[_0x436659(0x43c)][_0x436659(0x213)]:_0x25b585={'eventID':_0x48ee3a['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x25b585={'eventID':_0x2cbbb1['data']['eventID']};}return JSON[_0x436659(0x3db)]({'cmd':_0x2cbbb1[_0x436659(0x421)],'routeKey':_0x2cbbb1['routeKey'],'collaMsg':_0x25b585});}case _0x31a69d[_0x436659(0x1f2)][_0x436659(0x4c3)]:return JSON['stringify']({'cmd':_0x2cbbb1['cmd'],'routeKey':_0x2cbbb1[_0x436659(0x458)],'joinReq':_0x2cbbb1[_0x436659(0x222)]});case _0x31a69d[_0x436659(0x1f2)][_0x436659(0x485)]:return JSON[_0x436659(0x3db)]({'cmd':_0x2cbbb1[_0x436659(0x421)],'routeKey':_0x2cbbb1[_0x436659(0x458)],'leaveReq':_0x2cbbb1[_0x436659(0x222)]});default:throw Error(_0x436659(0x51e));}}let _0x209556=(0x0,_0x373403[_0x239292(0x33e)])(_0x239292(0x371));function _0x189023(_0x286912,_0xaa6fe3,_0x230050){const _0x211848=_0x239292;return _0x286912+'/'+_0xaa6fe3+_0x211848(0x4cd)+_0x230050+_0x211848(0x480);}let _0x418dd0=class extends _0x373403[_0x239292(0x358)]{constructor(_0x56debd,_0x5db3a5,_0x53ba03,_0x39d5ad,_0x1fcead){const _0x343ece=_0x239292;super(),this[_0x343ece(0x519)]=_0x56debd,this['_httpService']=_0x5db3a5,this[_0x343ece(0x223)]=_0x53ba03,this[_0x343ece(0x41e)]=_0x39d5ad,this[_0x343ece(0x221)]=_0x1fcead;}['_doCreateSocket'](_0x15aa28){const _0x4f97a6=_0x239292;let _0x2851fb=this[_0x4f97a6(0x519)]['get'](_0x39ae45[_0x4f97a6(0x34f)]);if(!_0x2851fb)throw Error(_0x4f97a6(0x1e3));let _0x47da15=_0x2851fb[_0x4f97a6(0x43b)](_0x15aa28);if(!_0x47da15)throw Error(_0x4f97a6(0x387));let _0x233840=new _0x373403['DisposableCollection'](),_0x43f54c=new _0xad45f2[(_0x4f97a6(0x307))]();_0x233840[_0x4f97a6(0x3ed)](_0x47da15[_0x4f97a6(0x26e)]['subscribe'](_0x40fd1a=>_0x43f54c['next'](_0x40fd1a))),_0x233840[_0x4f97a6(0x3ed)]((0x0,_0x373403[_0x4f97a6(0x4c1)])(()=>_0x43f54c[_0x4f97a6(0x376)]()));let _0x20b6e1=new _0xad45f2['Subject']();_0x233840[_0x4f97a6(0x3ed)](_0x47da15['error$'][_0x4f97a6(0x37a)](_0x5b2c63=>_0x20b6e1[_0x4f97a6(0x34a)](_0x5b2c63))),_0x233840[_0x4f97a6(0x3ed)]((0x0,_0x373403[_0x4f97a6(0x4c1)])(()=>_0x20b6e1[_0x4f97a6(0x376)]()));let _0x37a32d=new _0xad45f2[(_0x4f97a6(0x307))]();_0x233840[_0x4f97a6(0x3ed)](_0x47da15[_0x4f97a6(0x502)]['subscribe'](_0x47bba3=>{let _0x311b3d=_0x1f4d00(_0x47bba3);_0x37a32d['next'](_0x311b3d);})),_0x233840[_0x4f97a6(0x3ed)]((0x0,_0x373403[_0x4f97a6(0x4c1)])(()=>_0x37a32d[_0x4f97a6(0x376)]()));let _0x11e155,_0x14135d=()=>{const _0x37fef3=_0x4f97a6;_0x20b6e1[_0x37fef3(0x34a)](new Event(_0x37fef3(0x2d9))),_0x43f54c[_0x37fef3(0x34a)](new Event('connection\x20error')),_0x11e155[_0x37fef3(0x22f)]();};return _0x11e155={'memberID':'','close$':_0x43f54c['asObservable'](),'error$':_0x20b6e1[_0x4f97a6(0x3a2)](),'open$':_0x47da15[_0x4f97a6(0x439)],'message$':_0x37a32d[_0x4f97a6(0x3a2)](),'send':_0xc5f987=>{const _0x5654da=_0x4f97a6;if(_0xc5f987[_0x5654da(0x421)]===_0x31a69d[_0x5654da(0x1f2)][_0x5654da(0x2ae)]){if(_0xc5f987[_0x5654da(0x222)][_0x5654da(0x4ac)]===_0x48ee3a[_0x5654da(0x43c)][_0x5654da(0x42f)]){this[_0x5654da(0x4a6)](_0x11e155,_0xc5f987['data'])[_0x5654da(0x2a9)](_0x158823=>{const _0x4a4598=_0x5654da;this[_0x4a4598(0x41e)][_0x4a4598(0x282)](_0x158823),_0x14135d();});return;}if(_0xc5f987['data']['eventID']===_0x48ee3a['CollaborationEvent'][_0x5654da(0x490)]){let _0x1053b1=_0xc5f987[_0x5654da(0x222)];this['_fetchMissChangesets'](_0x1053b1)[_0x5654da(0x51c)](_0x4f986d=>{const _0x3280f2=_0x5654da;_0x37a32d['next']({'cmd':_0x31a69d[_0x3280f2(0x1f2)][_0x3280f2(0x3c8)],'code':_0x31a69d[_0x3280f2(0x2b0)]['OK'],'routeKey':_0x1053b1[_0x3280f2(0x222)][_0x3280f2(0x262)],'routeType':'','data':{'eventID':_0x48ee3a['CollaborationEvent'][_0x3280f2(0x393)],'data':{'changesets':_0x4f986d}}});})[_0x5654da(0x2a9)](_0x3938fa=>{const _0x222836=_0x5654da;this[_0x222836(0x41e)]['error'](_0x3938fa),_0x14135d();});return;}}_0x47da15['send'](_0x4c8786(_0xc5f987));},'close':()=>{const _0x526c93=_0x4f97a6;_0x47da15[_0x526c93(0x22f)](),_0x233840[_0x526c93(0x328)]();}},_0x11e155;}async['_submitChangeset'](_0x586b09,_0x17969b){const _0x176281=_0x239292;var _0x43ae89;let {unitType:_0x5d8a24,unitID:_0x59bf4d,changeset:_0x5daf09}=_0x17969b[_0x176281(0x222)],_0x4cb3db={'unitID':_0x59bf4d,'memberID':_0x586b09['memberID'],'type':_0x5d8a24,'changeset':(0x0,_0x48ee3a[_0x176281(0x1f4)])(_0x5daf09)},_0x1b3fde=this[_0x176281(0x223)][_0x176281(0x291)](_0x4aca5a),_0x50eba8=_0x189023((_0x43ae89=_0x1b3fde==null?void 0x0:_0x1b3fde[_0x176281(0x29e)])==null?_0x176281(0x382):_0x43ae89,_0x5d8a24,_0x59bf4d);try{await this[_0x176281(0x498)]['post'](_0x50eba8,{'body':_0x4cb3db});}catch(_0x11f36e){throw this['_logService'][_0x176281(0x282)](_0x176281(0x273),_0x176281(0x219)),_0x11f36e;}}async['_fetchMissChangesets'](_0xf7b173){const _0x1a8e1f=_0x239292;let {unitID:_0x57fab0,from:_0x2e05e5,to:_0x2c0029,unitType:_0xa91bd7}=_0xf7b173[_0x1a8e1f(0x222)];return(await this[_0x1a8e1f(0x221)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x57fab0,'type':_0xa91bd7,'from':_0x2e05e5,'to':_0x2c0029}))[_0x1a8e1f(0x277)]['map'](_0x3cca01=>((_0x3cca01[_0x1a8e1f(0x477)]===null||_0x3cca01[_0x1a8e1f(0x477)]===void 0x0)&&(_0x3cca01[_0x1a8e1f(0x477)]=[]),_0x3cca01));}};_0x418dd0=_0x157b59([_0x202927(0x0,(0x0,_0x373403['Inject'])(_0x373403[_0x239292(0x42e)])),_0x202927(0x1,(0x0,_0x373403[_0x239292(0x4c7)])(_0x39ae45[_0x239292(0x297)])),_0x202927(0x2,_0x373403['IConfigService']),_0x202927(0x3,_0x373403[_0x239292(0x2a1)]),_0x202927(0x4,_0x48ee3a['ISnapshotServerService'])],_0x418dd0);let _0x4118a1=(0x0,_0x373403[_0x239292(0x33e)])('univer-pro.collaboration-client-adapter-service');function _0x1df8bc(_0x1d32c0={}){const _0x8af8bc=_0x239292;return _0x1d32c0['resolveUnit']?{'resolveUnit':_0x1d32c0[_0x8af8bc(0x1fb)]}:{'resolveUnit':_0x12a56d=>({'target':{'unitId':_0x12a56d[_0x8af8bc(0x445)],'unitType':_0x12a56d[_0x8af8bc(0x48a)]}})};}function _0x10e4d6(_0x51aaf9,_0x46255b,_0x47e556){const _0x4aa06e=_0x239292;var _0x3ec78e;let _0x578a8b=_0x47e556[_0x4aa06e(0x299)][_0x4aa06e(0x394)];if(_0x578a8b!=null&&_0x578a8b[_0x4aa06e(0x3e4)]()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0x47e556[_0x4aa06e(0x299)][_0x4aa06e(0x445)])throw Error(_0x4aa06e(0x513));return{'localUnitId':_0x51aaf9,'unitType':_0x46255b,'target':{'endpoint':_0x578a8b,'unitId':_0x47e556['target'][_0x4aa06e(0x445)],'unitType':(_0x3ec78e=_0x47e556[_0x4aa06e(0x299)]['unitType'])==null?_0x46255b:_0x3ec78e},'changeset':_0x47e556[_0x4aa06e(0x427)]};}let _0x219c13=class extends _0x373403[_0x239292(0x358)]{constructor(_0x1d414d,_0x2c8eb0,_0x84c898,_0x292391,_0x7e628b,_0x30f95b,_0x7f2d97){const _0xeb8e90=_0x239292;super(),this[_0xeb8e90(0x519)]=_0x1d414d,this[_0xeb8e90(0x41e)]=_0x2c8eb0,this[_0xeb8e90(0x223)]=_0x84c898,this[_0xeb8e90(0x25a)]=_0x292391,this['_collaborationUIEventService']=_0x7e628b,this[_0xeb8e90(0x288)]=_0x30f95b,this[_0xeb8e90(0x23e)]=_0x7f2d97,_0x261440(this,_0xeb8e90(0x3e2),new Map()),_0x261440(this,_0xeb8e90(0x3ac),new Map()),_0x261440(this,_0xeb8e90(0x4f5),new Map()),_0x261440(this,_0xeb8e90(0x45f),new Map()),_0x261440(this,_0xeb8e90(0x28f),this[_0xeb8e90(0x361)](void 0x0)[_0xeb8e90(0x28f)][_0xeb8e90(0x3a2)]()),_0x261440(this,_0xeb8e90(0x4e9),new _0xad45f2[(_0xeb8e90(0x305))](0x0)),_0x261440(this,_0xeb8e90(0x2aa),this[_0xeb8e90(0x4e9)][_0xeb8e90(0x3a2)]()),this['_listenToNetworkCondition']();}['_listenToNetworkCondition'](){const _0x597f13=_0x239292;this[_0x597f13(0x23e)]&&this[_0x597f13(0x1ec)](this['_networkConditionService'][_0x597f13(0x478)][_0x597f13(0x37a)](_0x25ecd5=>{const _0x3e8d19=_0x597f13;_0x25ecd5&&this[_0x3e8d19(0x354)](),_0x25ecd5||this[_0x3e8d19(0x45f)][_0x3e8d19(0x1e2)](_0xe88e47=>this['_onOffline'](_0xe88e47));}));}['dispose'](){const _0x36df0c=_0x239292;super[_0x36df0c(0x328)](),this[_0x36df0c(0x45f)][_0x36df0c(0x1e2)](_0x1df03f=>{const _0x377911=_0x36df0c;var _0x2a1892,_0x31088f;(_0x2a1892=_0x1df03f[_0x377911(0x369)])==null||_0x2a1892[_0x377911(0x205)](),_0x1df03f[_0x377911(0x369)]=null,this['_clearRetryConnectingTimer'](_0x1df03f),this[_0x377911(0x430)](_0x1df03f),this[_0x377911(0x509)](_0x1df03f),(_0x31088f=_0x1df03f[_0x377911(0x28f)][_0x377911(0x208)]())==null||_0x31088f['close'](),_0x1df03f[_0x377911(0x28f)]['complete']();}),this[_0x36df0c(0x45f)][_0x36df0c(0x230)](),this['_sessions'][_0x36df0c(0x1e2)](_0x17087d=>_0x17087d[_0x36df0c(0x328)]()),this[_0x36df0c(0x3e2)][_0x36df0c(0x230)](),this[_0x36df0c(0x4f5)][_0x36df0c(0x230)](),this['_status$'][_0x36df0c(0x376)]();}async[_0x239292(0x388)](_0x13a140,_0x40b505){const _0x1deaad=_0x239292;if(this[_0x1deaad(0x3e2)][_0x1deaad(0x28e)](_0x13a140))return this[_0x1deaad(0x3e2)][_0x1deaad(0x418)](_0x13a140);let _0x3ffc5f=this[_0x1deaad(0x3ac)][_0x1deaad(0x418)](_0x13a140);if(_0x3ffc5f)return _0x3ffc5f;let _0x5727d2=this['_createSession'](_0x13a140,_0x40b505);this[_0x1deaad(0x3ac)]['set'](_0x13a140,_0x5727d2);try{return await _0x5727d2;}finally{this[_0x1deaad(0x3ac)][_0x1deaad(0x3a6)](_0x13a140);}}async[_0x239292(0x31d)](_0x2b214e,_0x28a3f8){const _0x405130=_0x239292;let _0x1a711a=await this[_0x405130(0x50e)](_0x2b214e,_0x28a3f8),_0x453456=this[_0x405130(0x361)](_0x1a711a['target'][_0x405130(0x394)]);this[_0x405130(0x419)](_0x453456);let _0x379113=this[_0x405130(0x519)][_0x405130(0x256)](_0x23f91e,_0x1a711a,_0x453456[_0x405130(0x28f)][_0x405130(0x3a2)]());return this['_sessions']['set'](_0x2b214e,_0x379113),this['_sessionChannels'][_0x405130(0x28a)](_0x2b214e,_0x453456[_0x405130(0x1e0)]),_0x379113;}[_0x239292(0x36b)](_0x254a3c){const _0x5555c2=_0x239292;let _0x5e5281=this['_sessions'][_0x5555c2(0x418)](_0x254a3c),_0x5ec4c1=this[_0x5555c2(0x4f5)][_0x5555c2(0x418)](_0x254a3c);if(_0x5e5281&&(this[_0x5555c2(0x3e2)]['delete'](_0x254a3c),this['_sessionChannels'][_0x5555c2(0x3a6)](_0x254a3c),_0x5e5281[_0x5555c2(0x22f)]()),_0x5ec4c1&&!this[_0x5555c2(0x2e3)](_0x5ec4c1)){var _0x5317f4;let _0x337a24=this[_0x5555c2(0x45f)][_0x5555c2(0x418)](_0x5ec4c1);_0x337a24==null||(_0x5317f4=_0x337a24[_0x5555c2(0x28f)][_0x5555c2(0x208)]())==null||_0x5317f4[_0x5555c2(0x22f)]();}}[_0x239292(0x354)](){const _0x47c3c5=_0x239292;(this[_0x47c3c5(0x45f)][_0x47c3c5(0x472)]?[...this['_socketChannels'][_0x47c3c5(0x422)]()]:[this['_getSocketChannel'](void 0x0)])[_0x47c3c5(0x1e2)](_0x389f7f=>{const _0xde6935=_0x47c3c5;_0x389f7f[_0xde6935(0x2fb)]=0x0,this[_0xde6935(0x4bd)](_0x389f7f),this[_0xde6935(0x373)](_0x389f7f);});}[_0x239292(0x4bd)](_0x2978d6){const _0x928436=_0x239292;_0x2978d6['retryConnectingTimer']!=null&&(clearTimeout(_0x2978d6[_0x928436(0x2f9)]),_0x2978d6[_0x928436(0x2f9)]=null);}async[_0x239292(0x417)](_0x2c419f){const _0x1ac845=_0x239292;var _0x27615b,_0x5d5d35;let _0x299ccd=this['_configService']['getConfig'](_0x4aca5a),_0x11e94b=(_0x27615b=(_0x5d5d35=_0x2c419f['endpoint'])==null?_0x299ccd==null?void 0x0:_0x299ccd[_0x1ac845(0x23d)]:_0x5d5d35)==null?_0x564a89:_0x27615b,_0x4f0879=await this[_0x1ac845(0x25a)]['createSocket'](_0x11e94b);return _0x2c419f['candidateSocket']=_0x4f0879,_0x4f0879;}async[_0x239292(0x419)](_0x16e04c){const _0x5d5a4f=_0x239292;try{var _0x34d0ab,_0x13c3e6;let _0xeb8d3e=(_0x34d0ab=(_0x13c3e6=_0x16e04c[_0x5d5a4f(0x28f)][_0x5d5a4f(0x208)]())==null?_0x16e04c[_0x5d5a4f(0x4b9)]:_0x13c3e6)==null?await this[_0x5d5a4f(0x417)](_0x16e04c):_0x34d0ab;if(_0xeb8d3e){var _0x25af09;let _0xf2415d=_0xeb8d3e[_0x5d5a4f(0x44b)];_0xeb8d3e[_0x5d5a4f(0x44b)]=_0x3d4be9=>(_0x3d4be9['cmd']!==_0x31a69d[_0x5d5a4f(0x1f2)][_0x5d5a4f(0x485)]&&this['_rescheduleHeartbeat'](_0x16e04c),_0xf2415d['apply'](_0xeb8d3e,[_0x3d4be9])),(_0x25af09=_0x16e04c[_0x5d5a4f(0x369)])==null||_0x25af09[_0x5d5a4f(0x205)](),_0x16e04c['socketMessageSubscription']=null,_0x16e04c[_0x5d5a4f(0x369)]=_0xeb8d3e[_0x5d5a4f(0x502)]['subscribe'](_0x4c51b5=>this[_0x5d5a4f(0x1f8)](_0x16e04c,_0xeb8d3e,_0x4c51b5)),_0xeb8d3e[_0x5d5a4f(0x333)]['pipe']((0x0,_0x438451[_0x5d5a4f(0x21a)])(0x1))[_0x5d5a4f(0x37a)](_0x3b8d60=>this[_0x5d5a4f(0x41e)][_0x5d5a4f(0x282)](_0x5d5a4f(0x31e),_0x3b8d60)),_0xeb8d3e['open$'][_0x5d5a4f(0x292)]((0x0,_0x438451['take'])(0x1))['subscribe'](()=>{const _0x5923fd=_0x5d5a4f;this[_0x5923fd(0x460)](_0x16e04c,_0xeb8d3e);}),_0xeb8d3e[_0x5d5a4f(0x26e)][_0x5d5a4f(0x292)]((0x0,_0x438451[_0x5d5a4f(0x21a)])(0x1))['subscribe'](_0x2268fd=>{const _0x5a4179=_0x5d5a4f;this[_0x5a4179(0x41e)][_0x5a4179(0x4f7)](_0x5a4179(0x465),_0x5a4179(0x281),_0x2268fd),this[_0x5a4179(0x2e8)](_0x16e04c);});}}catch(_0x1703e1){this[_0x5d5a4f(0x41e)]['error'](_0x1703e1),this[_0x5d5a4f(0x2e8)](_0x16e04c);}}[_0x239292(0x460)](_0x2336b4,_0xad62b5){const _0x139e38=_0x239292;this[_0x139e38(0x41e)][_0x139e38(0x4f7)](_0x139e38(0x465),_0x139e38(0x263)),_0xad62b5[_0x139e38(0x44b)]({'cmd':_0x31a69d[_0x139e38(0x1f2)]['HELLO']}),this[_0x139e38(0x4be)](_0x2336b4);}[_0x239292(0x253)](_0x1a4689){const _0x17bb29=_0x239292;_0x1a4689[_0x17bb29(0x468)]=!0x1,_0x1a4689[_0x17bb29(0x4b9)]=null,this[_0x17bb29(0x4e9)]['next'](0x2),_0x1a4689['socket$'][_0x17bb29(0x34a)](null),this['_clearTimeoutTimer'](_0x1a4689),this[_0x17bb29(0x509)](_0x1a4689);}[_0x239292(0x2e8)](_0x36969a){const _0x5d06c5=_0x239292;var _0x3d525d;this[_0x5d06c5(0x253)](_0x36969a),this[_0x5d06c5(0x2e3)](_0x36969a[_0x5d06c5(0x1e0)])&&(_0x36969a[_0x5d06c5(0x2fb)]<((_0x3d525d=this['_configService'][_0x5d06c5(0x291)](_0x5d06c5(0x200)))==null?0x3:_0x3d525d)?(this[_0x5d06c5(0x512)][_0x5d06c5(0x46d)]({'id':_0x5d06c5(0x37f)}),this[_0x5d06c5(0x373)](_0x36969a)):this[_0x5d06c5(0x512)][_0x5d06c5(0x46d)]({'id':_0x5d06c5(0x3f9)}));}[_0x239292(0x373)](_0x3f0b95){const _0x22aa47=_0x239292;var _0x3038dd;let _0x41bba9=_0x3f0b95[_0x22aa47(0x2fb)],_0x418bc0=this['_configService'][_0x22aa47(0x291)](_0x4aca5a),_0x245b60=_0x41bba9===0x0?0x0:((_0x3038dd=_0x418bc0==null?void 0x0:_0x418bc0[_0x22aa47(0x4a3)])==null?0x4e20:_0x3038dd)*0x2**_0x41bba9;_0x3f0b95[_0x22aa47(0x2f9)]=setTimeout(()=>{const _0x4b048b=_0x22aa47;clearTimeout(_0x3f0b95[_0x4b048b(0x2f9)]),_0x3f0b95[_0x4b048b(0x2f9)]=null,this['_tryEnsureSocket'](_0x3f0b95);},_0x245b60),_0x3f0b95[_0x22aa47(0x2fb)]+=0x1;}async['_resolveSessionIdentity'](_0x29f2b2,_0x37ca76){return _0x10e4d6(_0x29f2b2,_0x37ca76,await this['_adapter']['resolveUnit']({'unitId':_0x29f2b2,'unitType':_0x37ca76}));}[_0x239292(0x1f8)](_0x43118c,_0x9bc3ab,_0x2e9da8){const _0x4a58ad=_0x239292;let {cmd:_0x26f172}=_0x2e9da8;_0x26f172===_0x31a69d['CombCmd'][_0x4a58ad(0x475)]&&!_0x43118c[_0x4a58ad(0x468)]&&(_0x9bc3ab['memberID']=_0x2e9da8[_0x4a58ad(0x222)]['memberID'],_0x43118c['socket$'][_0x4a58ad(0x34a)](_0x9bc3ab),this['_status$'][_0x4a58ad(0x34a)](0x3),_0x43118c[_0x4a58ad(0x468)]=!0x0,_0x43118c['candidateSocket']=null),_0x26f172===_0x31a69d[_0x4a58ad(0x1f2)][_0x4a58ad(0x1de)]&&this[_0x4a58ad(0x430)](_0x43118c),this['_rescheduleHeartbeat'](_0x43118c);}[_0x239292(0x2e3)](_0x11eb0d){const _0x30e0ef=_0x239292;return[...this[_0x30e0ef(0x4f5)][_0x30e0ef(0x422)]()][_0x30e0ef(0x488)](_0x17b575=>_0x17b575===_0x11eb0d);}['_getSocketChannel'](_0x1396e9){const _0x235c3c=_0x239292;let _0x20a62d=_0x1396e9==null?'':_0x1396e9,_0x18dacd=this[_0x235c3c(0x45f)][_0x235c3c(0x418)](_0x20a62d);if(_0x18dacd)return _0x18dacd;let _0x45263a={'endpointKey':_0x20a62d,'endpoint':_0x1396e9,'socket$':new _0xad45f2['BehaviorSubject'](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x235c3c(0x45f)][_0x235c3c(0x28a)](_0x20a62d,_0x45263a),_0x45263a;}['_rescheduleHeartbeat'](_0x255432){const _0x131e78=_0x239292;var _0x17712a;this[_0x131e78(0x509)](_0x255432),_0x255432[_0x131e78(0x4fc)]=setTimeout(()=>this[_0x131e78(0x1f5)](_0x255432),(_0x17712a=this[_0x131e78(0x223)][_0x131e78(0x291)]('HEARTBEAT_INTERVAL'))==null?0x7530:_0x17712a);}[_0x239292(0x1f5)](_0x41fdd3){const _0x3a4379=_0x239292;_0x41fdd3[_0x3a4379(0x28f)][_0x3a4379(0x208)]()['send']({'cmd':_0x31a69d[_0x3a4379(0x1f2)][_0x3a4379(0x1de)]}),this['_waitForHeartbeatResponse'](_0x41fdd3);}[_0x239292(0x434)](_0x1e904b){const _0x514630=_0x239292;var _0x192a75;_0x1e904b[_0x514630(0x3b0)]=setTimeout(()=>this[_0x514630(0x2e8)](_0x1e904b),(_0x192a75=this[_0x514630(0x223)][_0x514630(0x291)](_0x514630(0x320)))==null?_0x4764b2:_0x192a75);}['_clearHeartbeatTimer'](_0x33cb66){const _0x527d8a=_0x239292;_0x33cb66['sendHeartbeatTimer']!=null&&(clearTimeout(_0x33cb66[_0x527d8a(0x4fc)]),_0x33cb66['sendHeartbeatTimer']=null);}[_0x239292(0x430)](_0x2be649){const _0x210b29=_0x239292;_0x2be649['timeoutTimer']!=null&&(clearTimeout(_0x2be649['timeoutTimer']),_0x2be649[_0x210b29(0x3b0)]=null);}};_0x219c13=_0x157b59([_0x202927(0x0,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403[_0x239292(0x42e)])),_0x202927(0x1,_0x373403[_0x239292(0x2a1)]),_0x202927(0x2,_0x373403['IConfigService']),_0x202927(0x3,_0x209556),_0x202927(0x4,(0x0,_0x373403['Inject'])(_0x2def2b)),_0x202927(0x5,_0x4118a1),_0x202927(0x6,(0x0,_0x373403['Optional'])(_0x565e68))],_0x219c13);let _0x208253=class extends _0x373403['RxDisposable']{constructor(_0x513c98,_0x11ab8b,_0x24f7a7,_0x412e72){const _0x460144=_0x239292;var _0x400b54;super(),this['_injector']=_0x513c98,this[_0x460144(0x4df)]=_0x11ab8b,this[_0x460144(0x223)]=_0x24f7a7,this[_0x460144(0x3a7)]=_0x412e72,_0x261440(this,_0x460144(0x295),new Map()),_0x261440(this,_0x460144(0x4fe),new _0xad45f2[(_0x460144(0x307))]()),_0x261440(this,_0x460144(0x301),this['_entityInit$'][_0x460144(0x3a2)]()),((_0x400b54=this['_configService']['getConfig']('collaboration-client.config'))==null?void 0x0:_0x400b54[_0x460144(0x518)])!==!0x1&&this[_0x460144(0x331)]();}[_0x239292(0x328)](){const _0x184a14=_0x239292;super[_0x184a14(0x328)](),this[_0x184a14(0x295)]['forEach'](_0x1bdb74=>_0x1bdb74['dispose']()),this[_0x184a14(0x295)][_0x184a14(0x230)]();}['getCollabEntity'](_0x398565){const _0xe34d1a=_0x239292;var _0x3ecfc0;return(_0x3ecfc0=this[_0xe34d1a(0x295)]['get'](_0x398565))==null?null:_0x3ecfc0;}[_0x239292(0x2eb)](_0x139e8c){const _0x265d09=_0x239292;let _0x1c92df=this[_0x265d09(0x303)](_0x139e8c);return _0x1c92df?(0x0,_0xad45f2['of'])(_0x1c92df):this[_0x265d09(0x4fe)]['pipe']((0x0,_0x438451['filter'])(_0x1d4440=>_0x1d4440[_0x265d09(0x262)]===_0x139e8c));}['readyForCollab'](_0x1f6d62){const _0x502d54=_0x239292;return(0x0,_0xad45f2[_0x502d54(0x3f7)])(this['getCollabEntity$'](_0x1f6d62)[_0x502d54(0x292)]((0x0,_0x438451['map'])(()=>void 0x0)));}[_0x239292(0x331)](){const _0x5017f8=_0x239292;this[_0x5017f8(0x3a7)]['getTypeOfUnitAdded$'](_0x373403[_0x5017f8(0x4f6)][_0x5017f8(0x493)])[_0x5017f8(0x292)]((0x0,_0xad45f2[_0x5017f8(0x2bc)])(this[_0x5017f8(0x3d6)]),(0x0,_0x438451[_0x5017f8(0x23a)])(0x10))[_0x5017f8(0x37a)](async _0x4b0692=>{const _0x401e37=_0x5017f8;let _0x3f6775=_0x4b0692[_0x401e37(0x258)][_0x401e37(0x487)](),_0x30ed9a=await this[_0x401e37(0x4e4)](_0x3f6775,_0x373403['UniverInstanceType'][_0x401e37(0x493)]);this[_0x401e37(0x295)][_0x401e37(0x28a)](_0x3f6775,_0x30ed9a);}),this[_0x5017f8(0x3a7)][_0x5017f8(0x438)](_0x373403['UniverInstanceType'][_0x5017f8(0x452)])[_0x5017f8(0x292)]((0x0,_0xad45f2['takeUntil'])(this[_0x5017f8(0x3d6)]),(0x0,_0x438451[_0x5017f8(0x23a)])(0x10))['pipe']((0x0,_0x438451[_0x5017f8(0x38d)])(_0x32acea=>!_0x32acea[_0x5017f8(0x258)][_0x5017f8(0x487)]()[_0x5017f8(0x3f5)]('__')))[_0x5017f8(0x37a)](async _0x33a87e=>{const _0x3371d5=_0x5017f8;let _0x30283e=_0x33a87e[_0x3371d5(0x258)][_0x3371d5(0x487)](),_0x3faaf7=await this[_0x3371d5(0x4e4)](_0x30283e,_0x373403['UniverInstanceType'][_0x3371d5(0x452)]);this[_0x3371d5(0x295)]['set'](_0x30283e,_0x3faaf7);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x373403['UniverInstanceType'][_0x5017f8(0x244)])[_0x5017f8(0x292)]((0x0,_0xad45f2[_0x5017f8(0x2bc)])(this['dispose$']),(0x0,_0x438451[_0x5017f8(0x23a)])(0x10))['subscribe'](async _0x591cc0=>{const _0x992324=_0x5017f8;let _0x4017c0=_0x591cc0['unit'][_0x992324(0x487)](),_0xa3521d=await this[_0x992324(0x4e4)](_0x4017c0,_0x373403[_0x992324(0x4f6)][_0x992324(0x244)]);this[_0x992324(0x295)][_0x992324(0x28a)](_0x4017c0,_0xa3521d);}),this[_0x5017f8(0x3a7)]['getTypeOfUnitAdded$'](_0x373403['UniverInstanceType']['UNIVER_BOARD'])[_0x5017f8(0x292)]((0x0,_0xad45f2[_0x5017f8(0x2bc)])(this['dispose$']),(0x0,_0x438451[_0x5017f8(0x23a)])(0x10))[_0x5017f8(0x37a)](async _0x2c340b=>{const _0x258c22=_0x5017f8;let _0x36d608=_0x2c340b[_0x258c22(0x258)][_0x258c22(0x487)](),_0x53eae4=await this[_0x258c22(0x4e4)](_0x36d608,_0x373403[_0x258c22(0x4f6)]['UNIVER_BOARD']);this['_entities'][_0x258c22(0x28a)](_0x36d608,_0x53eae4);}),this[_0x5017f8(0x3a7)][_0x5017f8(0x438)](_0x373403[_0x5017f8(0x4f6)][_0x5017f8(0x27a)])[_0x5017f8(0x292)]((0x0,_0xad45f2[_0x5017f8(0x2bc)])(this[_0x5017f8(0x3d6)]),(0x0,_0x438451[_0x5017f8(0x23a)])(0x10))[_0x5017f8(0x37a)](async _0x276866=>{const _0x10f660=_0x5017f8;let _0x921086=_0x276866['unit'][_0x10f660(0x487)](),_0x4243bf=await this['_startCollaboration'](_0x921086,_0x373403[_0x10f660(0x4f6)][_0x10f660(0x27a)]);this['_entities'][_0x10f660(0x28a)](_0x921086,_0x4243bf);}),(0x0,_0xad45f2[_0x5017f8(0x420)])(this[_0x5017f8(0x3a7)][_0x5017f8(0x352)](_0x373403[_0x5017f8(0x4f6)][_0x5017f8(0x493)]),this[_0x5017f8(0x3a7)][_0x5017f8(0x352)](_0x373403['UniverInstanceType'][_0x5017f8(0x452)]),this[_0x5017f8(0x3a7)][_0x5017f8(0x352)](_0x373403[_0x5017f8(0x4f6)][_0x5017f8(0x244)]),this[_0x5017f8(0x3a7)]['getTypeOfUnitDisposed$'](_0x373403[_0x5017f8(0x4f6)][_0x5017f8(0x308)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x373403[_0x5017f8(0x4f6)]['UNIVER_BASE']))[_0x5017f8(0x292)]((0x0,_0xad45f2['takeUntil'])(this['dispose$']))[_0x5017f8(0x37a)](_0x19a913=>{const _0x41daf1=_0x5017f8;let _0x13f3f9=_0x19a913[_0x41daf1(0x487)](),_0x15251f=this[_0x41daf1(0x295)]['get'](_0x13f3f9);_0x15251f&&(_0x15251f[_0x41daf1(0x328)](),this['_entities'][_0x41daf1(0x3a6)](_0x13f3f9));});}async[_0x239292(0x4e4)](_0x44bb2e,_0x44e1a7){const _0x1b1ac8=_0x239292;let _0x417ecb=await this['_collabSessionService'][_0x1b1ac8(0x388)](_0x44bb2e),_0x4b756b=this[_0x1b1ac8(0x519)][_0x1b1ac8(0x256)](this[_0x1b1ac8(0x3d7)](_0x44e1a7),_0x44bb2e,_0x44e1a7,_0x417ecb);return await _0x4b756b[_0x1b1ac8(0x218)](),this[_0x1b1ac8(0x4fe)][_0x1b1ac8(0x34a)](_0x4b756b),_0x4b756b;}[_0x239292(0x3d7)](_0x117328){const _0x49beba=_0x239292;switch(_0x117328){case _0x373403[_0x49beba(0x4f6)][_0x49beba(0x452)]:return _0x2044be;case _0x373403[_0x49beba(0x4f6)][_0x49beba(0x493)]:return _0x81a6ef;case _0x373403[_0x49beba(0x4f6)]['UNIVER_SLIDE']:return _0x4d6a5e;case _0x373403['UniverInstanceType'][_0x49beba(0x308)]:return _0x484a9e;case _0x373403[_0x49beba(0x4f6)][_0x49beba(0x27a)]:return _0x5aba1e;default:throw Error(_0x49beba(0x391)+_0x117328);}}};_0x208253=_0x157b59([_0x202927(0x0,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403[_0x239292(0x42e)])),_0x202927(0x1,(0x0,_0x373403[_0x239292(0x4c7)])(_0x219c13)),_0x202927(0x2,_0x373403[_0x239292(0x2c6)]),_0x202927(0x3,_0x373403[_0x239292(0x3d0)])],_0x208253);var _0x1f5988=_0x239292(0x336),_0x2cfb3a=_0x239292(0x20c);let _0x29720e=class extends _0x373403['Disposable']{constructor(_0x21435b,_0x383d81){const _0x44f730=_0x239292;super(),this[_0x44f730(0x3a7)]=_0x21435b,this['_configService']=_0x383d81,this[_0x44f730(0x331)]();}[_0x239292(0x331)](){const _0x15df24=_0x239292;this[_0x15df24(0x1ec)](this[_0x15df24(0x3a7)]['focused$'][_0x15df24(0x37a)](()=>{const _0x56a37e=_0x15df24;var _0x526ca7;let _0x24a13c=this[_0x56a37e(0x3a7)][_0x56a37e(0x408)](),_0x233275=(_0x526ca7=this[_0x56a37e(0x223)][_0x56a37e(0x291)]('DEFAULT_FILE_NAME'))==null?'Univer':_0x526ca7;_0x24a13c instanceof _0x373403['Workbook']&&(_0x233275=_0x24a13c['name']),document[_0x56a37e(0x401)]=_0x233275;}));}};_0x29720e=_0x157b59([_0x202927(0x0,_0x373403[_0x239292(0x3d0)]),_0x202927(0x1,_0x373403[_0x239292(0x2c6)])],_0x29720e);let _0x24897c=function(_0x1c6f54){const _0x557ae7=_0x239292;return _0x1c6f54[_0x557ae7(0x2bf)]=_0x557ae7(0x2bf),_0x1c6f54[_0x557ae7(0x51d)]=_0x557ae7(0x51d),_0x1c6f54['BASE64']='BASE64',_0x1c6f54;}({}),_0x14e8c9=(0x0,_0x373403['createIdentifier'])(_0x239292(0x406)),_0x3c31aa=class{constructor(_0x306d55,_0x1935af,_0x3f85a6){const _0x171c8e=_0x239292;this['_httpService']=_0x306d55,this[_0x171c8e(0x223)]=_0x1935af,this[_0x171c8e(0x3a7)]=_0x3f85a6;}[_0x239292(0x4ea)](){var _0x3bd1a5;return(_0x3bd1a5=this['_getConfig']()['attachment'])==null?{}:_0x3bd1a5;}async['saveAttachment'](_0x5e68d7){const _0x5b44ad=_0x239292;let _0x1efbd3=this[_0x5b44ad(0x4ea)]();if(_0x3d4241(_0x5e68d7,_0x1efbd3),_0x1efbd3['upload'])return _0x1efbd3[_0x5b44ad(0x43a)](_0x5e68d7);let _0x3c3460=await this['_upload'](_0x5e68d7);return{'id':_0x3c3460,'name':_0x5e68d7[_0x5b44ad(0x3c6)],'mimeType':_0x5e68d7['type'],'size':_0x5e68d7['size'],'sourceType':'UUID','source':_0x3c3460};}async[_0x239292(0x455)](_0x40c671){const _0x32ea91=_0x239292;let _0x285184=this[_0x32ea91(0x3a7)][_0x32ea91(0x408)](),_0x4e86f4=_0x285184==null?void 0x0:_0x285184['getUnitId']();if(!_0x4e86f4)throw Error(_0x32ea91(0x272));let _0x4100e5=new FormData();_0x4100e5['append']('file',_0x40c671);let _0x468b14=this[_0x32ea91(0x505)]()+_0x32ea91(0x214)+_0x40c671[_0x32ea91(0x472)][_0x32ea91(0x24d)]()+_0x32ea91(0x3f4)+_0x31a69d['FileSource'][_0x32ea91(0x2c1)]+_0x32ea91(0x3ba)+encodeURIComponent(_0x4e86f4),_0x396a9e=(await this[_0x32ea91(0x498)]['post'](_0x468b14,{'body':_0x4100e5}))['body'][_0x32ea91(0x450)];if(typeof _0x396a9e!=_0x32ea91(0x504)||!_0x396a9e)throw Error(_0x32ea91(0x2df));return _0x396a9e;}[_0x239292(0x505)](){const _0x571f0c=_0x239292;var _0x531184;return(_0x531184=this[_0x571f0c(0x2c4)]()[_0x571f0c(0x25e)])==null?_0x571f0c(0x3ef):_0x531184;}[_0x239292(0x2c4)](){const _0x3fea00=_0x239292;var _0x2e68a4;return(_0x2e68a4=this[_0x3fea00(0x223)][_0x3fea00(0x291)](_0x3fea00(0x357)))==null?{}:_0x2e68a4;}};_0x3c31aa=_0x157b59([_0x202927(0x0,(0x0,_0x373403[_0x239292(0x4c7)])(_0x39ae45[_0x239292(0x297)])),_0x202927(0x1,(0x0,_0x373403['Inject'])(_0x373403[_0x239292(0x2c6)])),_0x202927(0x2,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403['IUniverInstanceService']))],_0x3c31aa);function _0x3d4241(_0x4e0012,_0x2d3b21){const _0x53815c=_0x239292;var _0x9d0223;if(_0x2d3b21[_0x53815c(0x50b)]!=null&&_0x4e0012[_0x53815c(0x472)]>_0x2d3b21[_0x53815c(0x50b)])throw Error(_0x53815c(0x415));if((_0x9d0223=_0x2d3b21[_0x53815c(0x506)])!=null&&_0x9d0223[_0x53815c(0x25c)]&&!_0x2d3b21[_0x53815c(0x506)][_0x53815c(0x488)](_0xc92b5e=>_0x4e0012[_0x53815c(0x29f)]===_0xc92b5e||_0x4e0012[_0x53815c(0x3c6)][_0x53815c(0x3d9)](_0xc92b5e)||_0xc92b5e[_0x53815c(0x3d9)]('/*')&&_0x4e0012[_0x53815c(0x29f)]['startsWith'](_0xc92b5e['slice'](0x0,-0x1))))throw Error(_0x53815c(0x3dd));}let _0x179974=class{constructor(_0x10d56b,_0x32342a,_0x6ae4e0){const _0x4ba16e=_0x239292;this[_0x4ba16e(0x223)]=_0x10d56b,this[_0x4ba16e(0x498)]=_0x32342a,this[_0x4ba16e(0x1d7)]=_0x6ae4e0,this[_0x4ba16e(0x218)]();}[_0x239292(0x218)](){const _0xbb9c4b=_0x239292;this[_0xbb9c4b(0x498)][_0xbb9c4b(0x39f)]({'priority':0x1,'interceptor':(_0x327377,_0x3c28ff)=>_0x3c28ff(_0x327377)[_0xbb9c4b(0x292)]((0x0,_0xad45f2[_0xbb9c4b(0x507)])(async _0x4cedd2=>{const _0x1053dc=_0xbb9c4b;let _0x57932d=_0x4cedd2;if(_0x57932d[_0x1053dc(0x3fd)]===0x191){if(typeof window>'u')throw Error(_0x1053dc(0x4f1));if(window[_0x1053dc(0x37d)](this[_0x1053dc(0x1d7)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x4911cf=window[_0x1053dc(0x51b)](window[_0x1053dc(0x344)]['href']);window[_0x1053dc(0x344)][_0x1053dc(0x3b1)]=this['_getLoginPath']()+_0x1053dc(0x364)+_0x4911cf;}}return _0x57932d;}))});}[_0x239292(0x2fc)](){const _0x2c7e87=_0x239292;var _0x593a9f;let _0x139f17=this[_0x2c7e87(0x223)][_0x2c7e87(0x291)](_0x4aca5a);return(_0x593a9f=_0x139f17==null?void 0x0:_0x139f17['loginUrlKey'])==null?'/universer-api/oidc/authpage':_0x593a9f;}};_0x179974=_0x157b59([_0x202927(0x0,_0x373403[_0x239292(0x2c6)]),_0x202927(0x1,(0x0,_0x373403[_0x239292(0x4c7)])(_0x39ae45['HTTPService'])),_0x202927(0x2,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403['LocaleService']))],_0x179974);let _0x16847b=class extends _0x373403['Disposable']{constructor(_0x4c5220,_0x40b014){const _0x47f0cf=_0x239292;super(),this['_HTTPService']=_0x4c5220,this[_0x47f0cf(0x223)]=_0x40b014,_0x261440(this,_0x47f0cf(0x312),!0x1),this[_0x47f0cf(0x30a)]();}[_0x239292(0x30a)](){const _0x19172c=_0x239292;let _0x473e0c=this;this[_0x19172c(0x1ec)](this[_0x19172c(0x51f)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,_0x39ae45[_0x19172c(0x2ea)])({'isMatch'(_0x48af0c){const _0x228f45=_0x19172c;var _0x3bcceb;if(_0x48af0c[_0x228f45(0x400)]==='POST'&&(_0x3bcceb=_0x48af0c[_0x228f45(0x26a)])!=null&&_0x3bcceb[_0x228f45(0x38e)]){let {objectID:_0x4de4ba,objectType:_0x379a5e}=_0x48af0c[_0x228f45(0x26a)][_0x228f45(0x38e)]||{};if(!_0x4de4ba||_0x379a5e===void 0x0)return!0x1;let _0x3047ab=_0x473e0c[_0x228f45(0x4b4)]()+'/'+_0x379a5e+_0x228f45(0x309)+_0x4de4ba+_0x228f45(0x2e9);if(_0x48af0c[_0x228f45(0x255)]===_0x3047ab)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4d8673){var _0x87d25a;return(_0x87d25a=_0x4d8673['requestParams'])==null?void 0x0:_0x87d25a['body'];},'mergeParamsToRequest'(_0x191104,_0x102ed6){const _0x2ce6b9=_0x19172c;let _0x40899b=_0x473e0c[_0x2ce6b9(0x4b4)]()+'/-/object/-/batch_allowed',_0xa75be6=_0x191104[_0x2ce6b9(0x235)]((_0x3e6641,_0x48993c)=>{const _0x3ce8f7=_0x2ce6b9;let {unitID:_0xb7972b,objectID:_0x20cb55,objectType:_0x77f79f,actions:_0x376900}=_0x48993c;return _0x3e6641[_0xb7972b]||(_0x3e6641[_0xb7972b]={}),_0x3e6641[_0xb7972b][_0x20cb55]||(_0x3e6641[_0xb7972b][_0x20cb55]={'objectID':_0x20cb55,'objectType':_0x77f79f,'actions':[]}),_0x3e6641[_0xb7972b][_0x20cb55][_0x3ce8f7(0x22b)]['push'](..._0x376900),_0x3e6641;},{}),_0x19cb62=[];for(let _0x1a4ba3 in _0xa75be6)for(let _0xbd471c in _0xa75be6[_0x1a4ba3]){let {actions:_0x1a5f03,objectType:_0x45c3e6}=_0xa75be6[_0x1a4ba3][_0xbd471c],_0x1f9552=[...new Set(_0x1a5f03)];_0x19cb62[_0x2ce6b9(0x2d6)]({'unitID':_0x1a4ba3,'objectID':_0xbd471c,'objectType':_0x45c3e6,'actions':_0x1f9552});}return new _0x39ae45[(_0x2ce6b9(0x338))](_0x2ce6b9(0x34d),_0x40899b,{'headers':_0x102ed6[_0x2ce6b9(0x440)],'withCredentials':_0x102ed6[_0x2ce6b9(0x257)],'responseType':_0x102ed6[_0x2ce6b9(0x2ee)],'body':{'requests':_0x19cb62}});}},{'distributeResult'(_0x24407e,_0x2b8ac2){const _0x3d77c2=_0x19172c;let {objectActions:_0x473eb2}=_0x24407e;return _0x2b8ac2[_0x3d77c2(0x2c3)](_0x13325b=>{const _0x263568=_0x3d77c2;let {unitID:_0x1221aa,objectID:_0x357b71,actions:_0x128cfa}=_0x13325b,_0x4873bb=_0x473eb2[_0x263568(0x2ca)](_0x4035b2=>_0x4035b2[_0x263568(0x262)]===_0x1221aa&&_0x4035b2[_0x263568(0x342)]===_0x357b71);return{'config':_0x13325b,'result':{'actions':_0x128cfa[_0x263568(0x2c3)](_0x89e542=>_0x4873bb==null?void 0x0:_0x4873bb[_0x263568(0x22b)][_0x263568(0x2ca)](_0x5e9d05=>_0x5e9d05['action']===_0x89e542))['filter'](_0x19de97=>!!_0x19de97),'error':_0x24407e[_0x263568(0x282)]}};});}})}));}['_getAPIPrefixPath'](){const _0x33c832=_0x239292;var _0x396f30;let _0x67aeaf=this[_0x33c832(0x223)][_0x33c832(0x291)](_0x4aca5a);return(_0x396f30=_0x67aeaf==null?void 0x0:_0x67aeaf[_0x33c832(0x2c9)])==null?_0x33c832(0x27b):_0x396f30;}async[_0x239292(0x276)](_0x2c83eb){const _0x362bb9=_0x239292;let _0x346b71=this[_0x362bb9(0x4b4)]()+'/'+_0x2c83eb[_0x362bb9(0x1d9)]+'/object';return(await this[_0x362bb9(0x51f)]['post'](_0x346b71,{'body':_0x2c83eb}))[_0x362bb9(0x38e)][_0x362bb9(0x342)]||'';}async[_0x239292(0x1ee)](_0x10ac9){const _0x44c6d9=_0x239292;let _0x34d76f=this[_0x44c6d9(0x4b4)]()+_0x44c6d9(0x35c);return(await this[_0x44c6d9(0x51f)][_0x44c6d9(0x287)](_0x34d76f,{'body':_0x10ac9}))[_0x44c6d9(0x38e)]['objects'];}async['update'](_0x456ed8){const _0x37527a=_0x239292;var _0x33988a;let _0xcc35c9=this['_getAPIPrefixPath']()+'/'+_0x456ed8[_0x37527a(0x1d9)]+_0x37527a(0x309)+_0x456ed8['objectID'],_0x37fb91=await this[_0x37527a(0x51f)]['put'](_0xcc35c9,{'body':_0x456ed8});if((_0x37fb91==null||(_0x33988a=_0x37fb91[_0x37527a(0x38e)])==null||(_0x33988a=_0x33988a['error'])==null?void 0x0:_0x33988a['code'])!==0x1)throw Error(_0x37527a(0x410));}async[_0x239292(0x3be)](_0x1c11c3){const _0x5488a6=_0x239292;let _0x5263b1=this[_0x5488a6(0x4b4)]()+'/'+_0x1c11c3[_0x5488a6(0x1d9)]+_0x5488a6(0x309)+_0x1c11c3[_0x5488a6(0x342)]+_0x5488a6(0x2e9);return(await this[_0x5488a6(0x51f)][_0x5488a6(0x287)](_0x5263b1,{'body':_0x1c11c3}))[_0x5488a6(0x38e)][_0x5488a6(0x22b)];}async['batchAllowed'](_0x36d16c){const _0x5774ba=_0x239292;let _0x4ff3b9=this[_0x5774ba(0x4b4)]()+'/-/object/-/batch_allowed';return(await this[_0x5774ba(0x51f)]['post'](_0x4ff3b9,{'body':{'requests':_0x36d16c}}))[_0x5774ba(0x38e)][_0x5774ba(0x30e)];}async[_0x239292(0x402)](_0x590395){const _0x441a46=_0x239292;let _0x283a7c=this[_0x441a46(0x4b4)]()+'/'+_0x590395[_0x441a46(0x1d9)]+_0x441a46(0x1e9),_0x358301=await this[_0x441a46(0x51f)][_0x441a46(0x287)](_0x283a7c,{'body':_0x590395});return{'roles':_0x358301[_0x441a46(0x38e)]['roles'],'actions':_0x358301[_0x441a46(0x38e)][_0x441a46(0x22b)]};}async[_0x239292(0x486)](_0x422087){const _0x13110f=_0x239292;let _0x35ee50=this[_0x13110f(0x4b4)]()+_0x13110f(0x209);await this[_0x13110f(0x51f)]['delete'](_0x35ee50,{'params':{'collaboratorID':_0x422087[_0x13110f(0x4b5)],'objectID':_0x422087['objectID'],'unitID':_0x422087[_0x13110f(0x262)]}});}async[_0x239292(0x429)](_0x20fa9f){const _0x1c6288=_0x239292;let _0x785677=this['_getAPIPrefixPath']()+_0x1c6288(0x209);await this[_0x1c6288(0x51f)][_0x1c6288(0x2ac)](_0x785677,{'body':_0x20fa9f});}async['createCollaborator'](_0x53ea45){const _0xbe9af7=_0x239292;let _0x1b8176=this[_0xbe9af7(0x4b4)]()+'/collaborator';await this[_0xbe9af7(0x51f)]['post'](_0x1b8176,{'body':_0x53ea45});}async[_0x239292(0x346)](_0x4bb33e){const _0x485329=_0x239292;var _0x57acef;let _0xfdc160=this['_getAPIPrefixPath']()+'/collaborator',_0x5b37fe=await this[_0x485329(0x51f)][_0x485329(0x418)](_0xfdc160,{'params':{'objectID':_0x4bb33e[_0x485329(0x342)],'unitID':_0x4bb33e[_0x485329(0x262)]}});return this[_0x485329(0x2a7)]((_0x57acef=_0x5b37fe[_0x485329(0x38e)]['cfgEnableObjInherit'])==null?!0x1:_0x57acef),_0x5b37fe[_0x485329(0x38e)][_0x485329(0x2ba)];}async[_0x239292(0x38b)](_0x26b2f1){const _0x45f3f0=_0x239292;let _0x23efe0=this['_getAPIPrefixPath']()+_0x45f3f0(0x209);await this['_HTTPService'][_0x45f3f0(0x267)](_0x23efe0,{'body':_0x26b2f1});}[_0x239292(0x2a7)](_0x35bf1c){const _0x2ec27c=_0x239292;this[_0x2ec27c(0x312)]=_0x35bf1c;}[_0x239292(0x395)](){const _0x55bb0e=_0x239292;return this[_0x55bb0e(0x312)];}};_0x16847b=_0x157b59([_0x202927(0x0,(0x0,_0x373403[_0x239292(0x4c7)])(_0x39ae45[_0x239292(0x297)])),_0x202927(0x1,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403[_0x239292(0x2c6)]))],_0x16847b);function _0x317d9d(_0x5ebfe2){const _0x4b0947=_0x239292;return _0x5ebfe2 instanceof Uint8Array||ArrayBuffer[_0x4b0947(0x248)](_0x5ebfe2)&&_0x5ebfe2[_0x4b0947(0x259)][_0x4b0947(0x3c6)]===_0x4b0947(0x28c)&&_0x4b0947(0x1f7)in _0x5ebfe2&&_0x5ebfe2[_0x4b0947(0x1f7)]===0x1;}function _0x23d572(_0x45de5a){const _0x7513b4=_0x239292;if(typeof _0x45de5a!=_0x7513b4(0x495))throw TypeError(_0x7513b4(0x3de)+typeof _0x45de5a);if(!Number[_0x7513b4(0x334)](_0x45de5a)||_0x45de5a<0x0)throw RangeError(_0x7513b4(0x4d5)+_0x45de5a);}function _0x58e30c(_0x59f9b9,_0xd2cb96,_0x426334=''){const _0x5a8b22=_0x239292;let _0x2e4dec=_0x317d9d(_0x59f9b9),_0xc796bc=_0x59f9b9==null?void 0x0:_0x59f9b9[_0x5a8b22(0x25c)],_0x16e501=_0xd2cb96!==void 0x0;if(!_0x2e4dec||_0x16e501&&_0xc796bc!==_0xd2cb96){let _0x1114a2=_0x426334&&'\x22'+_0x426334+'\x22\x20',_0xf93c72=_0x16e501?'\x20of\x20length\x20'+_0xd2cb96:'',_0x402d13=_0x2e4dec?'length='+_0xc796bc:_0x5a8b22(0x2f0)+typeof _0x59f9b9,_0x57617e=_0x1114a2+_0x5a8b22(0x1ff)+_0xf93c72+',\x20got\x20'+_0x402d13;throw _0x2e4dec?RangeError(_0x57617e):TypeError(_0x57617e);}return _0x59f9b9;}function _0x567351(_0x1745a3){const _0x1e88b0=_0x239292;return new Uint32Array(_0x1745a3[_0x1e88b0(0x241)],_0x1745a3['byteOffset'],Math[_0x1e88b0(0x284)](_0x1745a3['byteLength']/0x4));}function _0x5ec4d9(..._0x1d1b24){const _0x3e1afd=_0x239292;for(let _0x229f31=0x0;_0x229f31<_0x1d1b24[_0x3e1afd(0x25c)];_0x229f31++)_0x1d1b24[_0x229f31][_0x3e1afd(0x239)](0x0);}let _0x5eeb37=new Uint8Array(new Uint32Array([0x11223344])[_0x239292(0x241)])[0x0]===0x44,_0x5ad117=_0x54b345=>_0x54b345<<0x18&0xff000000|_0x54b345<<0x8&0xff0000|_0x54b345>>>0x8&0xff00|_0x54b345>>>0x18&0xff,_0x1be466=_0x5eeb37?_0x4eea6a=>_0x4eea6a:_0x28af29=>{const _0x3e8b11=_0x239292;for(let _0x44dcdd=0x0;_0x44dcdd<_0x28af29[_0x3e8b11(0x25c)];_0x44dcdd++)_0x28af29[_0x44dcdd]=_0x5ad117(_0x28af29[_0x44dcdd]);return _0x28af29;};function _0x16f2ed(_0x565475){const _0x51d620=_0x239292;if(typeof _0x565475!=_0x51d620(0x504))throw TypeError(_0x51d620(0x228));return new Uint8Array(new TextEncoder()['encode'](_0x565475));}function _0x3b0f5b(_0x53c4b8,_0x2a6b25){const _0x54bc3c=_0x239292;return!_0x53c4b8['byteLength']||!_0x2a6b25[_0x54bc3c(0x23c)]?!0x1:_0x53c4b8[_0x54bc3c(0x241)]===_0x2a6b25[_0x54bc3c(0x241)]&&_0x53c4b8[_0x54bc3c(0x34e)]<_0x2a6b25['byteOffset']+_0x2a6b25[_0x54bc3c(0x23c)]&&_0x2a6b25[_0x54bc3c(0x34e)]<_0x53c4b8['byteOffset']+_0x53c4b8['byteLength'];}function _0x45699a(_0x1503cc,_0x38d81e){const _0x329053=_0x239292;if(_0x3b0f5b(_0x1503cc,_0x38d81e)&&_0x1503cc[_0x329053(0x34e)]<_0x38d81e[_0x329053(0x34e)])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0x30a482(..._0x1188ab){const _0x5b24f2=_0x239292;let _0x2c9c9e=0x0;for(let _0x3fcb74=0x0;_0x3fcb74<_0x1188ab[_0x5b24f2(0x25c)];_0x3fcb74++){let _0x24b93f=_0x1188ab[_0x3fcb74];_0x58e30c(_0x24b93f),_0x2c9c9e+=_0x24b93f['length'];}let _0x291f53=new Uint8Array(_0x2c9c9e);for(let _0x31944c=0x0,_0x190c5c=0x0;_0x31944c<_0x1188ab[_0x5b24f2(0x25c)];_0x31944c++){let _0xfbf7d8=_0x1188ab[_0x31944c];_0x291f53[_0x5b24f2(0x28a)](_0xfbf7d8,_0x190c5c),_0x190c5c+=_0xfbf7d8[_0x5b24f2(0x25c)];}return _0x291f53;}let _0x169097=(_0x545883,_0x5e5aae)=>{function _0x426f40(_0x101b7b,..._0x5e761f){const _0x34118a=_0xe127;if(_0x58e30c(_0x101b7b,void 0x0,_0x34118a(0x479)),_0x545883[_0x34118a(0x2ed)]!==void 0x0){let _0x1b1d51=_0x5e761f[0x0];_0x58e30c(_0x1b1d51,_0x545883[_0x34118a(0x378)]?void 0x0:_0x545883[_0x34118a(0x2ed)],_0x34118a(0x4b3));}let _0x5697a8=_0x545883[_0x34118a(0x1f3)];_0x5697a8&&_0x5e761f[0x1]!==void 0x0&&_0x58e30c(_0x5e761f[0x1],void 0x0,_0x34118a(0x40c));let _0xcda020=_0x5e5aae(_0x101b7b,..._0x5e761f),_0x4e0e4e=(_0x32200c,_0x3492fa)=>{const _0x4e621b=_0x34118a;if(_0x3492fa!==void 0x0){if(_0x32200c!==0x2)throw Error('cipher\x20output\x20not\x20supported');_0x58e30c(_0x3492fa,void 0x0,_0x4e621b(0x3b7));}},_0x46af05=!0x1;return{'encrypt'(_0x19bf93,_0x11bbf1){const _0x3cde82=_0x34118a;if(_0x46af05)throw Error(_0x3cde82(0x3c3));return _0x46af05=!0x0,_0x58e30c(_0x19bf93),_0x4e0e4e(_0xcda020[_0x3cde82(0x2a2)][_0x3cde82(0x25c)],_0x11bbf1),_0xcda020[_0x3cde82(0x2a2)](_0x19bf93,_0x11bbf1);},'decrypt'(_0x5c956b,_0x25b27f){const _0x62c45=_0x34118a;if(_0x58e30c(_0x5c956b),_0x5697a8&&_0x5c956b[_0x62c45(0x25c)]<_0x5697a8)throw Error('\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength='+_0x5697a8);return _0x4e0e4e(_0xcda020['decrypt'][_0x62c45(0x25c)],_0x25b27f),_0xcda020[_0x62c45(0x457)](_0x5c956b,_0x25b27f);}};}return Object['assign'](_0x426f40,_0x545883),_0x426f40;};function _0x4da8d3(_0x1ece90,_0x1a01c0,_0x1a0eea=!0x0){const _0x4c4991=_0x239292;if(_0x1a01c0===void 0x0)return new Uint8Array(_0x1ece90);if(_0x58e30c(_0x1a01c0,void 0x0,_0x4c4991(0x3b7)),_0x1a01c0[_0x4c4991(0x25c)]!==_0x1ece90)throw Error(_0x4c4991(0x2af)+_0x1ece90+',\x20got:\x20'+_0x1a01c0[_0x4c4991(0x25c)]);if(_0x1a0eea&&!_0xcb0679(_0x1a01c0))throw Error(_0x4c4991(0x25b));return _0x1a01c0;}function _0xcb0679(_0x8b005d){const _0xcf724d=_0x239292;return _0x8b005d[_0xcf724d(0x34e)]%0x4==0x0;}function _0x3b3c68(_0x181d56){const _0x1b5f6a=_0x239292;return Uint8Array[_0x1b5f6a(0x290)](_0x58e30c(_0x181d56));}function _0x57bdab(_0xfe4209=0x20){const _0x108f4c=_0x239292;_0x23d572(_0xfe4209);let _0x2d4e40=typeof globalThis==_0x108f4c(0x2db)?globalThis[_0x108f4c(0x41b)]:null;if(typeof(_0x2d4e40==null?void 0x0:_0x2d4e40[_0x108f4c(0x45b)])!=_0x108f4c(0x231))throw Error(_0x108f4c(0x367));return _0x2d4e40[_0x108f4c(0x45b)](new Uint8Array(_0xfe4209));}function _0x1f687d(_0x49c5ab){const _0x2c69af=_0x239292;if(![0x10,0x18,0x20][_0x2c69af(0x41f)](_0x49c5ab[_0x2c69af(0x25c)]))throw Error(_0x2c69af(0x3d5)+_0x49c5ab['length']);}function _0x56a658(_0x107a4d){return _0x107a4d<<0x1^0x11b&-(_0x107a4d>>0x7);}function _0x372608(_0x4d675d,_0x2c9308){let _0x334949=0x0;for(;_0x2c9308>0x0;_0x2c9308>>=0x1)_0x334949^=_0x4d675d&-(_0x2c9308&0x1),_0x4d675d=_0x56a658(_0x4d675d);return _0x334949;}let _0xb1882c=((()=>{let _0x292b12=new Uint8Array(0x100);for(let _0x38a6f3=0x0,_0x3281cd=0x1;_0x38a6f3<0x100;_0x38a6f3++,_0x3281cd^=_0x56a658(_0x3281cd))_0x292b12[_0x38a6f3]=_0x3281cd;let _0x8e96f4=new Uint8Array(0x100);_0x8e96f4[0x0]=0x63;for(let _0x29bc55=0x0;_0x29bc55<0xff;_0x29bc55++){let _0x3744b1=_0x292b12[0xff-_0x29bc55];_0x3744b1|=_0x3744b1<<0x8,_0x8e96f4[_0x292b12[_0x29bc55]]=(_0x3744b1^_0x3744b1>>0x4^_0x3744b1>>0x5^_0x3744b1>>0x6^_0x3744b1>>0x7^0x63)&0xff;}return _0x5ec4d9(_0x292b12),_0x8e96f4;})()),_0x2c88cf=_0xb1882c[_0x239292(0x2c3)]((_0x3641fa,_0x1ae813)=>_0xb1882c[_0x239292(0x3d1)](_0x1ae813)),_0x460ad3=_0x3fb8a8=>_0x3fb8a8<<0x18|_0x3fb8a8>>>0x8,_0x650b17=_0x31d10d=>_0x31d10d<<0x8|_0x31d10d>>>0x18;function _0x51eb5c(_0xb903a,_0x52b542){const _0x5a5fc3=_0x239292;if(_0xb903a[_0x5a5fc3(0x25c)]!==0x100)throw Error(_0x5a5fc3(0x2d3));let _0xe674d=new Uint32Array(0x100)[_0x5a5fc3(0x2c3)]((_0x3ae6ce,_0x59a041)=>_0x52b542(_0xb903a[_0x59a041])),_0x52fc6d=_0xe674d[_0x5a5fc3(0x2c3)](_0x650b17),_0x1f5c55=_0x52fc6d[_0x5a5fc3(0x2c3)](_0x650b17),_0x4230e1=_0x1f5c55['map'](_0x650b17),_0x4362b2=new Uint32Array(0x100*0x100),_0x477638=new Uint32Array(0x100*0x100),_0x389ce7=new Uint16Array(0x100*0x100);for(let _0x42761f=0x0;_0x42761f<0x100;_0x42761f++)for(let _0x2bd61a=0x0;_0x2bd61a<0x100;_0x2bd61a++){let _0x2d998b=_0x42761f*0x100+_0x2bd61a;_0x4362b2[_0x2d998b]=_0xe674d[_0x42761f]^_0x52fc6d[_0x2bd61a],_0x477638[_0x2d998b]=_0x1f5c55[_0x42761f]^_0x4230e1[_0x2bd61a],_0x389ce7[_0x2d998b]=_0xb903a[_0x42761f]<<0x8|_0xb903a[_0x2bd61a];}return{'sbox':_0xb903a,'sbox2':_0x389ce7,'T0':_0xe674d,'T1':_0x52fc6d,'T2':_0x1f5c55,'T3':_0x4230e1,'T01':_0x4362b2,'T23':_0x477638};}let _0x294914=_0x51eb5c(_0xb1882c,_0x35cff9=>_0x372608(_0x35cff9,0x3)<<0x18|_0x35cff9<<0x10|_0x35cff9<<0x8|_0x372608(_0x35cff9,0x2)),_0x4aac9c=_0x51eb5c(_0x2c88cf,_0x29efd8=>_0x372608(_0x29efd8,0xb)<<0x18|_0x372608(_0x29efd8,0xd)<<0x10|_0x372608(_0x29efd8,0x9)<<0x8|_0x372608(_0x29efd8,0xe)),_0x4b8710=((()=>{let _0x2e5090=new Uint8Array(0x10);for(let _0x186a64=0x0,_0x23266a=0x1;_0x186a64<0x10;_0x186a64++,_0x23266a=_0x56a658(_0x23266a))_0x2e5090[_0x186a64]=_0x23266a;return _0x2e5090;})());function _0x2bde69(_0x28aba2){const _0x5078d6=_0x239292;_0x58e30c(_0x28aba2);let _0x5a1feb=_0x28aba2[_0x5078d6(0x25c)];_0x1f687d(_0x28aba2);let {sbox2:_0x32536c}=_0x294914,_0x181a6b=[];(!_0x5eeb37||!_0xcb0679(_0x28aba2))&&_0x181a6b[_0x5078d6(0x2d6)](_0x28aba2=_0x3b3c68(_0x28aba2));let _0xa98f04=_0x1be466(_0x567351(_0x28aba2)),_0x4ffae4=_0xa98f04[_0x5078d6(0x25c)],_0x5c99f5=_0x259b7d=>_0x5c5dff(_0x32536c,_0x259b7d,_0x259b7d,_0x259b7d,_0x259b7d),_0x4c2422=new Uint32Array(_0x5a1feb+0x1c);_0x4c2422[_0x5078d6(0x28a)](_0xa98f04);for(let _0x51714d=_0x4ffae4;_0x51714d<_0x4c2422['length'];_0x51714d++){let _0x276d23=_0x4c2422[_0x51714d-0x1];_0x51714d%_0x4ffae4===0x0?_0x276d23=_0x5c99f5(_0x460ad3(_0x276d23))^_0x4b8710[_0x51714d/_0x4ffae4-0x1]:_0x4ffae4>0x6&&_0x51714d%_0x4ffae4===0x4&&(_0x276d23=_0x5c99f5(_0x276d23)),_0x4c2422[_0x51714d]=_0x4c2422[_0x51714d-_0x4ffae4]^_0x276d23;}return _0x5ec4d9(..._0x181a6b),_0x4c2422;}function _0x28459c(_0x2e42bd){const _0x54bdc7=_0x239292;let _0x5a8fba=_0x2bde69(_0x2e42bd),_0x3ce1ab=_0x5a8fba[_0x54bdc7(0x444)](),_0x3bc27f=_0x5a8fba['length'],{sbox2:_0x3a642b}=_0x294914,{T0:_0x22414d,T1:_0x18d1f6,T2:_0x5574b2,T3:_0x54c09f}=_0x4aac9c;for(let _0x2960b4=0x0;_0x2960b4<_0x3bc27f;_0x2960b4+=0x4)for(let _0x308b15=0x0;_0x308b15<0x4;_0x308b15++)_0x3ce1ab[_0x2960b4+_0x308b15]=_0x5a8fba[_0x3bc27f-_0x2960b4-0x4+_0x308b15];_0x5ec4d9(_0x5a8fba);for(let _0x57d9ae=0x4;_0x57d9ae<_0x3bc27f-0x4;_0x57d9ae++){let _0x4ac57e=_0x3ce1ab[_0x57d9ae],_0x2f719b=_0x5c5dff(_0x3a642b,_0x4ac57e,_0x4ac57e,_0x4ac57e,_0x4ac57e);_0x3ce1ab[_0x57d9ae]=_0x22414d[_0x2f719b&0xff]^_0x18d1f6[_0x2f719b>>>0x8&0xff]^_0x5574b2[_0x2f719b>>>0x10&0xff]^_0x54c09f[_0x2f719b>>>0x18];}return _0x3ce1ab;}function _0x1acd60(_0x1c7cc1,_0x406e32,_0x3024ac,_0x200a66,_0x15845a,_0x3040bd){return _0x1c7cc1[_0x3024ac<<0x8&0xff00|_0x200a66>>>0x8&0xff]^_0x406e32[_0x15845a>>>0x8&0xff00|_0x3040bd>>>0x18&0xff];}function _0x5c5dff(_0x57ee7d,_0x2e78c4,_0x43dcae,_0xa3ec9d,_0x38a96e){return _0x57ee7d[_0x2e78c4&0xff|_0x43dcae&0xff00]|_0x57ee7d[_0xa3ec9d>>>0x10&0xff|_0x38a96e>>>0x10&0xff00]<<0x10;}function _0x57cef4(_0x45ec36,_0x1d2714,_0x54e208,_0x2751c4,_0x4a5695){let {sbox2:_0x4b0de2,T01:_0x4684cc,T23:_0x235997}=_0x294914,_0x3f2fd8=0x0;_0x1d2714^=_0x45ec36[_0x3f2fd8++],_0x54e208^=_0x45ec36[_0x3f2fd8++],_0x2751c4^=_0x45ec36[_0x3f2fd8++],_0x4a5695^=_0x45ec36[_0x3f2fd8++];let _0x410d61=_0x45ec36['length']/0x4-0x2;for(let _0x1744b7=0x0;_0x1744b7<_0x410d61;_0x1744b7++){let _0x1f8ebf=_0x45ec36[_0x3f2fd8++]^_0x1acd60(_0x4684cc,_0x235997,_0x1d2714,_0x54e208,_0x2751c4,_0x4a5695),_0x108e6f=_0x45ec36[_0x3f2fd8++]^_0x1acd60(_0x4684cc,_0x235997,_0x54e208,_0x2751c4,_0x4a5695,_0x1d2714),_0x27f87f=_0x45ec36[_0x3f2fd8++]^_0x1acd60(_0x4684cc,_0x235997,_0x2751c4,_0x4a5695,_0x1d2714,_0x54e208),_0x48b6d2=_0x45ec36[_0x3f2fd8++]^_0x1acd60(_0x4684cc,_0x235997,_0x4a5695,_0x1d2714,_0x54e208,_0x2751c4);_0x1d2714=_0x1f8ebf,_0x54e208=_0x108e6f,_0x2751c4=_0x27f87f,_0x4a5695=_0x48b6d2;}return{'s0':_0x45ec36[_0x3f2fd8++]^_0x5c5dff(_0x4b0de2,_0x1d2714,_0x54e208,_0x2751c4,_0x4a5695),'s1':_0x45ec36[_0x3f2fd8++]^_0x5c5dff(_0x4b0de2,_0x54e208,_0x2751c4,_0x4a5695,_0x1d2714),'s2':_0x45ec36[_0x3f2fd8++]^_0x5c5dff(_0x4b0de2,_0x2751c4,_0x4a5695,_0x1d2714,_0x54e208),'s3':_0x45ec36[_0x3f2fd8++]^_0x5c5dff(_0x4b0de2,_0x4a5695,_0x1d2714,_0x54e208,_0x2751c4)};}function _0x369a96(_0x3517c0,_0x5a83eb,_0x356a24,_0x38a63e,_0x3eae2a){let {sbox2:_0x2569a3,T01:_0x36176e,T23:_0x4fecef}=_0x4aac9c,_0x3add52=0x0;_0x5a83eb^=_0x3517c0[_0x3add52++],_0x356a24^=_0x3517c0[_0x3add52++],_0x38a63e^=_0x3517c0[_0x3add52++],_0x3eae2a^=_0x3517c0[_0x3add52++];let _0x499f1d=_0x3517c0['length']/0x4-0x2;for(let _0x573377=0x0;_0x573377<_0x499f1d;_0x573377++){let _0x293372=_0x3517c0[_0x3add52++]^_0x1acd60(_0x36176e,_0x4fecef,_0x5a83eb,_0x3eae2a,_0x38a63e,_0x356a24),_0x4d9f30=_0x3517c0[_0x3add52++]^_0x1acd60(_0x36176e,_0x4fecef,_0x356a24,_0x5a83eb,_0x3eae2a,_0x38a63e),_0x37985a=_0x3517c0[_0x3add52++]^_0x1acd60(_0x36176e,_0x4fecef,_0x38a63e,_0x356a24,_0x5a83eb,_0x3eae2a),_0x2d39c6=_0x3517c0[_0x3add52++]^_0x1acd60(_0x36176e,_0x4fecef,_0x3eae2a,_0x38a63e,_0x356a24,_0x5a83eb);_0x5a83eb=_0x293372,_0x356a24=_0x4d9f30,_0x38a63e=_0x37985a,_0x3eae2a=_0x2d39c6;}return{'s0':_0x3517c0[_0x3add52++]^_0x5c5dff(_0x2569a3,_0x5a83eb,_0x3eae2a,_0x38a63e,_0x356a24),'s1':_0x3517c0[_0x3add52++]^_0x5c5dff(_0x2569a3,_0x356a24,_0x5a83eb,_0x3eae2a,_0x38a63e),'s2':_0x3517c0[_0x3add52++]^_0x5c5dff(_0x2569a3,_0x38a63e,_0x356a24,_0x5a83eb,_0x3eae2a),'s3':_0x3517c0[_0x3add52++]^_0x5c5dff(_0x2569a3,_0x3eae2a,_0x38a63e,_0x356a24,_0x5a83eb)};}function _0x39316c(_0x2f226e){const _0x28f920=_0x239292;if(_0x58e30c(_0x2f226e),_0x2f226e[_0x28f920(0x25c)]%0x10!=0x0)throw Error('aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016');}function _0xe361(_0x5de2c5,_0xc57fc7,_0x22bcb8){const _0x3c5ecd=_0x239292;_0x58e30c(_0x5de2c5);let _0x3fa14a=_0x5de2c5[_0x3c5ecd(0x25c)],_0x30e7f9=_0x3fa14a%0x10;if(!_0xc57fc7&&_0x30e7f9!==0x0)throw Error(_0x3c5ecd(0x473));if(_0xc57fc7){let _0x19b310=0x10-_0x30e7f9;_0x19b310||(_0x19b310=0x10),_0x3fa14a+=_0x19b310;}_0x22bcb8=_0x4da8d3(_0x3fa14a,_0x22bcb8),_0x45699a(_0x5de2c5,_0x22bcb8),(!_0x5eeb37||!_0xcb0679(_0x5de2c5))&&(_0x5de2c5=_0x3b3c68(_0x5de2c5));let _0x34b232=_0x567351(_0x5de2c5);return _0x1be466(_0x34b232),{'b':_0x34b232,'o':_0x567351(_0x22bcb8),'out':_0x22bcb8};}function _0x24983d(_0x29319b,_0x19f2c4){const _0x1e6dc9=_0x239292;if(!_0x19f2c4)return _0x29319b;let _0x2e337b=_0x29319b[_0x1e6dc9(0x25c)];if(_0x2e337b===0x0)throw Error(_0x1e6dc9(0x25f));let _0x203ed8=_0x29319b[_0x2e337b-0x1],_0x52add5=0x1;_0x52add5&=_0x203ed8-0x1>>>0x1f^0x1,_0x52add5&=0x10-_0x203ed8>>>0x1f^0x1;for(let _0x1d6792=0x0;_0x1d6792<0x10;_0x1d6792++){let _0x16e1e6=_0x1d6792-_0x203ed8>>>0x1f,_0x20a747=+((_0x29319b[_0x2e337b-0x1-_0x1d6792]^_0x203ed8)===0x0);_0x52add5&=_0x20a747|_0x16e1e6^0x1;}if(!_0x52add5)throw Error(_0x1e6dc9(0x4d1));return _0x29319b[_0x1e6dc9(0x294)](0x0,_0x2e337b-_0x203ed8);}function _0x380abc(_0x8ae7ad){let _0x168508=new Uint8Array(0x10),_0x4ad2c4=_0x567351(_0x168508);_0x168508['set'](_0x8ae7ad);let _0x604124=0x10-_0x8ae7ad['length'];for(let _0x4dfd1a=0x10-_0x604124;_0x4dfd1a<0x10;_0x4dfd1a++)_0x168508[_0x4dfd1a]=_0x604124;return _0x4ad2c4;}let _0xa7ccc3=_0x169097({'blockSize':0x10,'nonceLength':0x10},function(_0x4bd0be,_0x329557,_0x4c85d1={}){const _0x5a5be3=_0x239292;let _0x4e84bb=!_0x4c85d1[_0x5a5be3(0x398)];return{'encrypt'(_0x28a0d6,_0x3d3431){const _0x38df1f=_0x5a5be3;let _0x457ce4=_0x2bde69(_0x4bd0be),{b:_0xea74be,o:_0x2047ea,out:_0x3d1419}=_0xe361(_0x28a0d6,_0x4e84bb,_0x3d3431),_0x3bc3b4=_0x329557,_0x3b53f3=[_0x457ce4];(!_0x5eeb37||!_0xcb0679(_0x3bc3b4))&&_0x3b53f3[_0x38df1f(0x2d6)](_0x3bc3b4=_0x3b3c68(_0x3bc3b4));let _0xaf1143=_0x567351(_0x3bc3b4);_0x1be466(_0xaf1143);let _0x4236be=_0xaf1143[0x0],_0xbe61a=_0xaf1143[0x1],_0x3779b7=_0xaf1143[0x2],_0x3c9e87=_0xaf1143[0x3],_0x38e798=0x0;for(;_0x38e798+0x4<=_0xea74be[_0x38df1f(0x25c)];)_0x4236be^=_0xea74be[_0x38e798+0x0],_0xbe61a^=_0xea74be[_0x38e798+0x1],_0x3779b7^=_0xea74be[_0x38e798+0x2],_0x3c9e87^=_0xea74be[_0x38e798+0x3],{s0:_0x4236be,s1:_0xbe61a,s2:_0x3779b7,s3:_0x3c9e87}=_0x57cef4(_0x457ce4,_0x4236be,_0xbe61a,_0x3779b7,_0x3c9e87),_0x2047ea[_0x38e798++]=_0x4236be,_0x2047ea[_0x38e798++]=_0xbe61a,_0x2047ea[_0x38e798++]=_0x3779b7,_0x2047ea[_0x38e798++]=_0x3c9e87;if(_0x4e84bb){let _0x13e465=_0x380abc(_0x28a0d6[_0x38df1f(0x294)](_0x38e798*0x4));_0x1be466(_0x13e465),_0x4236be^=_0x13e465[0x0],_0xbe61a^=_0x13e465[0x1],_0x3779b7^=_0x13e465[0x2],_0x3c9e87^=_0x13e465[0x3],{s0:_0x4236be,s1:_0xbe61a,s2:_0x3779b7,s3:_0x3c9e87}=_0x57cef4(_0x457ce4,_0x4236be,_0xbe61a,_0x3779b7,_0x3c9e87),_0x2047ea[_0x38e798++]=_0x4236be,_0x2047ea[_0x38e798++]=_0xbe61a,_0x2047ea[_0x38e798++]=_0x3779b7,_0x2047ea[_0x38e798++]=_0x3c9e87;}return _0x1be466(_0x2047ea),_0x5ec4d9(..._0x3b53f3),_0x3d1419;},'decrypt'(_0x3984d8,_0x2f4cad){const _0x5509e3=_0x5a5be3;_0x39316c(_0x3984d8);let _0x1b820d=_0x28459c(_0x4bd0be),_0x28a4b8=_0x329557,_0x411a78=[_0x1b820d];(!_0x5eeb37||!_0xcb0679(_0x28a4b8))&&_0x411a78[_0x5509e3(0x2d6)](_0x28a4b8=_0x3b3c68(_0x28a4b8));let _0x55a195=_0x567351(_0x28a4b8);_0x1be466(_0x55a195),_0x2f4cad=_0x4da8d3(_0x3984d8[_0x5509e3(0x25c)],_0x2f4cad),_0x45699a(_0x3984d8,_0x2f4cad),(!_0x5eeb37||!_0xcb0679(_0x3984d8))&&_0x411a78['push'](_0x3984d8=_0x3b3c68(_0x3984d8));let _0x103889=_0x567351(_0x3984d8),_0x3e94a4=_0x567351(_0x2f4cad);_0x1be466(_0x103889);let _0x4a5e0e=_0x55a195[0x0],_0x237f75=_0x55a195[0x1],_0x55805b=_0x55a195[0x2],_0x31a243=_0x55a195[0x3];for(let _0x7709e1=0x0;_0x7709e1+0x4<=_0x103889['length'];){let _0x4f4c6d=_0x4a5e0e,_0x4877eb=_0x237f75,_0x177831=_0x55805b,_0x5bbe53=_0x31a243;_0x4a5e0e=_0x103889[_0x7709e1+0x0],_0x237f75=_0x103889[_0x7709e1+0x1],_0x55805b=_0x103889[_0x7709e1+0x2],_0x31a243=_0x103889[_0x7709e1+0x3];let {s0:_0x2104e4,s1:_0x35327e,s2:_0x56cc7c,s3:_0x495915}=_0x369a96(_0x1b820d,_0x4a5e0e,_0x237f75,_0x55805b,_0x31a243);_0x3e94a4[_0x7709e1++]=_0x2104e4^_0x4f4c6d,_0x3e94a4[_0x7709e1++]=_0x35327e^_0x4877eb,_0x3e94a4[_0x7709e1++]=_0x56cc7c^_0x177831,_0x3e94a4[_0x7709e1++]=_0x495915^_0x5bbe53;}return _0x1be466(_0x3e94a4),_0x5ec4d9(..._0x411a78),_0x24983d(_0x2f4cad,_0x4e84bb);}};});function _0xd1a20e(_0x425c84){const _0x5b4f50=_0x239292;let _0x252f73=atob(_0x425c84),_0x16cd21=new Uint8Array(_0x252f73['length']);for(let _0x4535d8=0x0;_0x4535d8<_0x252f73[_0x5b4f50(0x25c)];_0x4535d8++)_0x16cd21[_0x4535d8]=_0x252f73[_0x5b4f50(0x49c)](_0x4535d8);return _0x16cd21;}function _0x15727c(_0x4baf07){const _0x212daf=_0x239292;let _0x174679='';for(let _0x4c71e8=0x0;_0x4c71e8<_0x4baf07['length'];_0x4c71e8++)_0x174679+=String[_0x212daf(0x3f8)](_0x4baf07[_0x4c71e8]);return btoa(_0x174679);}function _0x2981fd(_0x74335d,_0x451463){const _0x641e6d=_0x239292;let _0x419217=_0xd1a20e(_0x451463),_0x3b9de0=_0x57bdab(0x10);return _0x15727c(_0x30a482(_0x3b9de0,_0xa7ccc3(_0x419217,_0x3b9de0)[_0x641e6d(0x2a2)](_0x16f2ed(_0x74335d))));}function _0x53b639(){const _0x47e314=_0x239292;let _0x22f323=(0x0,_0x23b870[_0x47e314(0x4fa)])()[_0x47e314(0x4f2)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x22f323){let _0x3caccb={'time':Math[_0x47e314(0x284)](Date[_0x47e314(0x1da)]()/0x3e8),'domain':location['hostname']};return _0x2981fd(JSON[_0x47e314(0x3db)](_0x3caccb),_0x22f323);}}let _0x5de5d9=class{constructor(_0x22d63d){const _0x5bb1f2=_0x239292;this['_httpService']=_0x22d63d,this[_0x5bb1f2(0x1dc)]();}[_0x239292(0x1dc)](){const _0x2ee7e3=_0x239292;this[_0x2ee7e3(0x498)][_0x2ee7e3(0x39f)]({'interceptor':(_0xfee4f7,_0x2ce2f8)=>{const _0x3b99e5=_0x2ee7e3;let _0x2a3aca=_0x53b639();return _0x2a3aca&&_0xfee4f7[_0x3b99e5(0x440)][_0x3b99e5(0x28a)]('x-univer-host',_0x2a3aca),_0x2ce2f8(_0xfee4f7);}});}};_0x5de5d9=_0x157b59([_0x202927(0x0,(0x0,_0x373403[_0x239292(0x4c7)])(_0x39ae45['HTTPService']))],_0x5de5d9);let _0x38fa1f=class extends _0x373403[_0x239292(0x3cd)]{constructor(_0x122d32,_0x4eb8c9,_0x202c81){const _0x162ea1=_0x239292;super(),this[_0x162ea1(0x41e)]=_0x122d32,this[_0x162ea1(0x466)]=_0x4eb8c9,this[_0x162ea1(0x4e1)]=_0x202c81,_0x261440(this,'_unitInfo$',new _0xad45f2['BehaviorSubject'](null)),_0x261440(this,'_unitLoaded$',new _0xad45f2[(_0x162ea1(0x307))]()),_0x261440(this,_0x162ea1(0x3c9),this[_0x162ea1(0x304)][_0x162ea1(0x3a2)]()),_0x261440(this,_0x162ea1(0x3af),this[_0x162ea1(0x29b)][_0x162ea1(0x3a2)]());}[_0x239292(0x328)](){const _0x3420d4=_0x239292;super[_0x3420d4(0x328)](),this['_unitLoaded$'][_0x3420d4(0x376)](),this[_0x3420d4(0x304)]['complete']();}async[_0x239292(0x3c1)](_0x2678e4,_0x344a74,_0x14529f,_0x2582bf){const _0x283d6f=_0x239292;this[_0x283d6f(0x304)][_0x283d6f(0x34a)]({'unitId':_0x2678e4,'type':_0x344a74,'subUnitId':_0x2582bf});let _0xcfe07=null;switch(_0x344a74){case _0x373403[_0x283d6f(0x4f6)][_0x283d6f(0x493)]:_0xcfe07=await this[_0x283d6f(0x466)]['loadSheet'](_0x2678e4,_0x14529f,void 0x0,{'initialSubUnitId':_0x2582bf});break;case _0x373403['UniverInstanceType'][_0x283d6f(0x452)]:_0xcfe07=await this[_0x283d6f(0x466)][_0x283d6f(0x38f)](_0x2678e4,_0x14529f);break;case _0x373403[_0x283d6f(0x4f6)][_0x283d6f(0x244)]:_0xcfe07=await this['_snapshotService']['loadSlide'](_0x2678e4,_0x14529f);break;case _0x373403[_0x283d6f(0x4f6)]['UNIVER_BOARD']:_0xcfe07=await this['_snapshotService']['loadBoard'](_0x2678e4,_0x14529f);break;case _0x373403[_0x283d6f(0x4f6)]['UNIVER_BASE']:_0xcfe07=await this[_0x283d6f(0x466)][_0x283d6f(0x2b4)](_0x2678e4,_0x14529f);break;default:this[_0x283d6f(0x41e)][_0x283d6f(0x282)]('[DataLoaderService]',_0x283d6f(0x1fc));break;}return _0xcfe07&&this[_0x283d6f(0x29b)]['next'](_0xcfe07),_0xcfe07;}async[_0x239292(0x4b1)](_0x254599,_0x956d6f,_0x21e7b4){const _0xfccb50=_0x239292;var _0x1ca60c;this[_0xfccb50(0x304)][_0xfccb50(0x34a)]({'unitId':_0x254599,'type':_0x956d6f,'subUnitId':_0x21e7b4});let _0x132479=0x0,_0x3daafe=await((_0x1ca60c=this[_0xfccb50(0x4e1)])==null?void 0x0:_0x1ca60c['loadOfflineData'](_0x254599));return _0x3daafe&&(_0x3daafe[_0xfccb50(0x2cd)]||_0x3daafe[_0xfccb50(0x477)][_0xfccb50(0x25c)]!==0x0)&&(_0x132479=_0x3daafe[_0xfccb50(0x386)]),_0x132479===0x0&&this[_0xfccb50(0x41e)][_0xfccb50(0x4f7)](_0xfccb50(0x501),_0xfccb50(0x413)),this['loadUnitOfRevision'](_0x254599,_0x956d6f,_0x132479,_0x21e7b4);}};_0x38fa1f=_0x157b59([_0x202927(0x0,_0x373403[_0x239292(0x2a1)]),_0x202927(0x1,(0x0,_0x373403['Inject'])(_0x48ee3a['SnapshotService'])),_0x202927(0x2,(0x0,_0x373403[_0x239292(0x30b)])(_0x32ba82))],_0x38fa1f);let _0x40f1cc=class{constructor(_0x9d26e1,_0x125a57,_0xdfa174){const _0x111376=_0x239292;this[_0x111376(0x498)]=_0x9d26e1,this[_0x111376(0x223)]=_0x125a57,this[_0x111376(0x3a7)]=_0xdfa174,_0x261440(this,_0x111376(0x2a6),0x0),_0x261440(this,_0x111376(0x4c9),new _0xad45f2[(_0x111376(0x307))]()),_0x261440(this,'change$',this[_0x111376(0x4c9)]),_0x261440(this,_0x111376(0x47f),new Map());}[_0x239292(0x510)](_0x2079f4){const _0x17635f=_0x239292;this[_0x17635f(0x2a6)]=_0x2079f4,this[_0x17635f(0x4c9)]['next'](_0x2079f4);}[_0x239292(0x318)](_0x12cf00,_0x3d4307){const _0x460d8d=_0x239292;if(_0x3d4307===_0x373403[_0x460d8d(0x2c5)]['BASE64']){let _0x355c2b=new Image();return _0x355c2b[_0x460d8d(0x1f9)]=_0x12cf00,_0x355c2b;}return this[_0x460d8d(0x47f)]['get'](_0x12cf00);}[_0x239292(0x48b)](_0xdcaffb,_0x1e9cac,_0x4a68be){const _0x3cb644=_0x239292;_0x1e9cac===_0x373403[_0x3cb644(0x2c5)][_0x3cb644(0x517)]||_0x4a68be==null||this[_0x3cb644(0x47f)]['set'](_0xdcaffb,_0x4a68be);}async[_0x239292(0x2d8)](_0x4c5bd2){const _0x5caebb=_0x239292;try{let _0x342aff=this[_0x5caebb(0x4f4)](this[_0x5caebb(0x2cc)](),''+_0x4c5bd2),_0x8cd79b=(await this[_0x5caebb(0x498)][_0x5caebb(0x418)](_0x342aff))['body'];if(_0x8cd79b[_0x5caebb(0x282)]&&_0x8cd79b[_0x5caebb(0x282)]['code']===_0x31a69d[_0x5caebb(0x4ca)]['OK']){let _0x410d06=(0x0,_0x373403[_0x5caebb(0x201)])(_0x8cd79b['url'],this[_0x5caebb(0x4eb)]());return Promise[_0x5caebb(0x1dd)](_0x410d06);}return Promise[_0x5caebb(0x316)](_0x8cd79b[_0x5caebb(0x282)]);}catch(_0x4a8874){return Promise['reject'](_0x4a8874);}}async[_0x239292(0x2e5)](_0x468a6f){const _0x42892d=_0x239292;let _0x42f1b1='';if(!_0x16ba7c[_0x42892d(0x3f0)]['includes'](_0x468a6f[_0x42892d(0x29f)]))return this[_0x42892d(0x3b8)](),Promise['reject'](Error(_0x373403[_0x42892d(0x1fd)][_0x42892d(0x4f3)]));if(_0x468a6f[_0x42892d(0x472)]>(0x0,_0x16ba7c[_0x42892d(0x2e1)])())return this[_0x42892d(0x3b8)](),Promise['reject'](Error(_0x373403[_0x42892d(0x1fd)][_0x42892d(0x24c)]));try{let _0x6a3ea3=new FormData();_0x6a3ea3[_0x42892d(0x27c)](_0x42892d(0x35b),_0x468a6f);let _0x967684=this['_univerInstanceService'][_0x42892d(0x408)](),_0x4365fe=_0x967684==null?void 0x0:_0x967684[_0x42892d(0x487)]();if(!_0x4365fe)throw Error(_0x42892d(0x49a));let _0x5ba5f3=this['_getUploadFileURL']()+_0x42892d(0x214)+_0x468a6f[_0x42892d(0x472)][_0x42892d(0x24d)]()+_0x42892d(0x3f4)+_0x31a69d[_0x42892d(0x471)][_0x42892d(0x2c1)]+_0x42892d(0x3ba)+encodeURIComponent(_0x4365fe),_0x9b9f07={'body':_0x6a3ea3},_0x2983ff=(await this[_0x42892d(0x498)][_0x42892d(0x287)](_0x5ba5f3,_0x9b9f07))[_0x42892d(0x38e)];if(typeof _0x2983ff[_0x42892d(0x450)]!=_0x42892d(0x504))return this[_0x42892d(0x3b8)](),Promise[_0x42892d(0x316)](Error(_0x373403[_0x42892d(0x1fd)]['ERROR_IMAGE']));_0x42f1b1=_0x2983ff['FileId'];}catch{return this['_decreaseWaiting'](),Promise[_0x42892d(0x316)](Error(_0x373403[_0x42892d(0x1fd)]['ERROR_IMAGE']));}return new Promise((_0x266139,_0x441bbd)=>{const _0x17192c=_0x42892d;let _0x1e7c57=new FileReader();_0x1e7c57['readAsDataURL'](_0x468a6f),_0x1e7c57[_0x17192c(0x431)]=_0x254e0f=>{const _0x50b01f=_0x17192c;var _0x41511c;let _0x33f3b8=(_0x41511c=_0x254e0f[_0x50b01f(0x299)])==null?void 0x0:_0x41511c['result'];if(_0x33f3b8==null){this['_decreaseWaiting'](),_0x441bbd(Error(_0x373403[_0x50b01f(0x1fd)]['ERROR_IMAGE']));return;}_0x266139({'imageId':(0x0,_0x373403['generateRandomId'])(0x6),'imageSourceType':_0x373403[_0x50b01f(0x2c5)]['UUID'],'source':_0x42f1b1,'base64Cache':_0x33f3b8,'status':_0x373403[_0x50b01f(0x1fd)]['SUCCUSS']}),this[_0x50b01f(0x3b8)]();};});}[_0x239292(0x505)](){const _0x3a67b0=_0x239292;var _0x41c371;let _0x1af59f=this['_configService'][_0x3a67b0(0x291)](_0x4aca5a);return(_0x41c371=_0x1af59f==null?void 0x0:_0x1af59f[_0x3a67b0(0x25e)])==null?_0x3a67b0(0x3ef):_0x41c371;}[_0x239292(0x2cc)](){const _0x59c213=_0x239292;var _0x21098e;let _0x1188dc=this[_0x59c213(0x223)][_0x59c213(0x291)](_0x4aca5a);return(_0x21098e=_0x1188dc==null?void 0x0:_0x1188dc['signUrlServerUrl'])==null?_0x59c213(0x365):_0x21098e;}[_0x239292(0x4eb)](){const _0x3b97df=_0x239292;var _0x20b88b;let _0x47e7f9=this['_configService'][_0x3b97df(0x291)](_0x4aca5a);return(_0x20b88b=_0x47e7f9==null?void 0x0:_0x47e7f9['downloadEndpointUrl'])==null?location[_0x3b97df(0x3b3)]:_0x20b88b;}[_0x239292(0x4f4)](_0x3b7ce4,_0x190a6c){const _0x157ac5=_0x239292;return _0x3b7ce4[_0x157ac5(0x35a)](_0x157ac5(0x483),_0x190a6c);}[_0x239292(0x3b8)](){const _0x5283d3=_0x239292;--this[_0x5283d3(0x2a6)],this[_0x5283d3(0x4c9)][_0x5283d3(0x34a)](this['_waitCount']);}};_0x40f1cc=_0x157b59([_0x202927(0x0,(0x0,_0x373403[_0x239292(0x4c7)])(_0x39ae45[_0x239292(0x297)])),_0x202927(0x1,_0x373403[_0x239292(0x2c6)]),_0x202927(0x2,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403[_0x239292(0x3d0)]))],_0x40f1cc);let _0x3f6459=class{constructor(_0x5d3a79,_0x1da41c){const _0x508bce=_0x239292;this[_0x508bce(0x223)]=_0x5d3a79,this[_0x508bce(0x51f)]=_0x1da41c;}[_0x239292(0x4b4)](){const _0xf1f584=_0x239292;var _0x369a48;let _0x47014b=this[_0xf1f584(0x223)]['getConfig'](_0x4aca5a);return(_0x369a48=_0x47014b==null?void 0x0:_0x47014b[_0xf1f584(0x2c9)])==null?_0xf1f584(0x27b):_0x369a48;}async[_0x239292(0x1ee)](_0x496dae){const _0x1f86b6=_0x239292;let _0x23ed41=this[_0x1f86b6(0x4b4)]()+_0x1f86b6(0x209);return{'list':[{'title':_0x1f86b6(0x1d4),'mentions':(await this[_0x1f86b6(0x51f)][_0x1f86b6(0x418)](_0x23ed41,{'params':{'objectID':_0x496dae[_0x1f86b6(0x445)],'unitID':_0x496dae[_0x1f86b6(0x445)]}}))['body'][_0x1f86b6(0x2ba)][_0x1f86b6(0x2c3)](_0x32e0bb=>({'objectId':_0x32e0bb['id'],'name':_0x32e0bb[_0x1f86b6(0x339)][_0x1f86b6(0x3c6)],'metadata':{'icon':_0x32e0bb[_0x1f86b6(0x339)][_0x1f86b6(0x3e3)]},'label':_0x32e0bb[_0x1f86b6(0x339)][_0x1f86b6(0x3c6)],'objectType':_0x373403[_0x1f86b6(0x47d)][_0x1f86b6(0x24f)]})),'metadata':{},'type':_0x373403[_0x1f86b6(0x47d)][_0x1f86b6(0x24f)]}]};}};_0x3f6459=_0x157b59([_0x202927(0x0,(0x0,_0x373403['Inject'])(_0x373403[_0x239292(0x2c6)])),_0x202927(0x1,(0x0,_0x373403[_0x239292(0x4c7)])(_0x39ae45['HTTPService']))],_0x3f6459);let _0x165343=class extends _0x373403[_0x239292(0x3cd)]{constructor(_0x486878,_0x4f7d43,_0x30bee2,_0x79a7d8,_0x1744b4){const _0xc66bd6=_0x239292;super(),this['_injector']=_0x486878,this['_univerInstanceService']=_0x4f7d43,this[_0xc66bd6(0x48d)]=_0x30bee2,this['_collaborationSessionService']=_0x79a7d8,this[_0xc66bd6(0x512)]=_0x1744b4,this[_0xc66bd6(0x44d)](),this[_0xc66bd6(0x436)]();}[_0x239292(0x436)](){const _0x451ce2=_0x239292;let _0x45dd31=async _0x116c33=>{const _0x2cde68=_0xe127;(await this[_0x2cde68(0x242)][_0x2cde68(0x388)](_0x116c33))[_0x2cde68(0x2dd)][_0x2cde68(0x292)]((0x0,_0x438451[_0x2cde68(0x38d)])(_0x4a4d41=>_0x4a4d41['eventID']===_0x48ee3a[_0x2cde68(0x43c)][_0x2cde68(0x390)]),(0x0,_0x438451[_0x2cde68(0x2bc)])(this['dispose$']))['subscribe'](_0x3f6621=>{const _0x4263f2=_0x2cde68;let {reason:_0x49c3ff}=_0x3f6621[_0x4263f2(0x222)];this[_0x4263f2(0x512)]['emitEvent']({'id':'CLOSE_ROOM','data':_0x49c3ff}),this[_0x4263f2(0x48d)][_0x4263f2(0x4f0)](new _0x2c7bf6[(_0x4263f2(0x1e5))](_0x116c33)['id'],!0x1),this['_collaborationSessionService'][_0x4263f2(0x36b)](_0x116c33);});};(0x0,_0xad45f2[_0x451ce2(0x420)])(this[_0x451ce2(0x3a7)][_0x451ce2(0x438)](_0x373403['UniverInstanceType'][_0x451ce2(0x493)]),this[_0x451ce2(0x3a7)][_0x451ce2(0x438)](_0x373403[_0x451ce2(0x4f6)][_0x451ce2(0x452)]),this[_0x451ce2(0x3a7)]['getTypeOfUnitAdded$'](_0x373403[_0x451ce2(0x4f6)]['UNIVER_BOARD']),this[_0x451ce2(0x3a7)][_0x451ce2(0x438)](_0x373403[_0x451ce2(0x4f6)][_0x451ce2(0x27a)]))[_0x451ce2(0x292)]((0x0,_0x438451[_0x451ce2(0x2c3)])(_0x58cd75=>_0x58cd75[_0x451ce2(0x258)][_0x451ce2(0x487)]()),(0x0,_0x438451[_0x451ce2(0x38d)])(_0x2daace=>!(0x0,_0x373403[_0x451ce2(0x508)])(_0x2daace)),(0x0,_0x438451[_0x451ce2(0x2bc)])(this[_0x451ce2(0x3d6)]))[_0x451ce2(0x37a)](_0x2e3972=>{_0x45dd31(_0x2e3972);});}[_0x239292(0x44d)](){const _0x1ef031=_0x239292;let _0x58d2d4=async _0x43c378=>{const _0xa02933=_0xe127;let _0x5e56df=await this[_0xa02933(0x242)]['requireSession'](_0x43c378),_0x4ef341=this[_0xa02933(0x519)][_0xa02933(0x418)](_0x2c7bf6[_0xa02933(0x261)]);_0x5e56df['event$'][_0xa02933(0x292)]((0x0,_0x438451['filter'])(_0x119176=>_0x119176[_0xa02933(0x4ac)]===_0x48ee3a[_0xa02933(0x43c)]['UPDATE_PERMISSION_OBJ']),(0x0,_0x438451[_0xa02933(0x2bc)])(this[_0xa02933(0x3d6)]))[_0xa02933(0x37a)](_0x2d8b34=>{const _0x5c3d52=_0xa02933;let {objectId:_0x2f80fc}=_0x2d8b34[_0x5c3d52(0x222)];_0x2f80fc===_0x43c378?_0x4ef341[_0x5c3d52(0x3dc)](_0x43c378):_0x4ef341[_0x5c3d52(0x41d)](_0x43c378,_0x2f80fc);});};(0x0,_0xad45f2[_0x1ef031(0x420)])(this[_0x1ef031(0x3a7)][_0x1ef031(0x438)](_0x373403[_0x1ef031(0x4f6)][_0x1ef031(0x493)]))[_0x1ef031(0x292)]((0x0,_0x438451[_0x1ef031(0x2c3)])(_0x3cad35=>_0x3cad35[_0x1ef031(0x258)]['getUnitId']()),(0x0,_0x438451[_0x1ef031(0x38d)])(_0x26178c=>!(0x0,_0x373403[_0x1ef031(0x508)])(_0x26178c)),(0x0,_0x438451['takeUntil'])(this[_0x1ef031(0x3d6)]))[_0x1ef031(0x37a)](_0x30d1d5=>{_0x58d2d4(_0x30d1d5);});}};_0x165343=_0x157b59([_0x202927(0x0,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403['Injector'])),_0x202927(0x1,_0x373403[_0x239292(0x3d0)]),_0x202927(0x2,_0x373403['IPermissionService']),_0x202927(0x3,(0x0,_0x373403[_0x239292(0x4c7)])(_0x219c13)),_0x202927(0x4,(0x0,_0x373403['Inject'])(_0x2def2b))],_0x165343);let _0x5f12d2=class{constructor(_0x4b9968,_0x2bc10a){const _0x3b10dc=_0x239292;this[_0x3b10dc(0x223)]=_0x4b9968,this[_0x3b10dc(0x498)]=_0x2bc10a;}async['getUnitOnRev'](_0x3909b8,_0x589b09){const _0x216bbc=_0x239292;var _0x3b1264;let {unitID:_0x11e005,type:_0x4ff924,revision:_0x563027=0x0}=_0x589b09,_0x3d635d=this[_0x216bbc(0x3a1)]()+'/'+_0x4ff924+_0x216bbc(0x4cd)+_0x11e005+'/rev/'+_0x563027,_0x282d25=(await this['_httpService']['get'](_0x3d635d))['body'],_0x1bc326=(_0x3b1264=_0x282d25[_0x216bbc(0x4d4)])==null?void 0x0:_0x3b1264[_0x216bbc(0x3c4)];if(_0x1bc326){let _0x2ef3c4=_0x1bc326==null?void 0x0:_0x1bc326[_0x216bbc(0x4d2)];_0x1bc326[_0x216bbc(0x4d2)]=_0x48ee3a[_0x216bbc(0x46c)][_0x216bbc(0x4e7)]((0x0,_0x48ee3a['b64DecodeUnicode'])(_0x2ef3c4)),Object[_0x216bbc(0x1f1)](_0x1bc326[_0x216bbc(0x224)])[_0x216bbc(0x1e2)](([,_0x69ecbc])=>{const _0x4f574f=_0x216bbc;let _0x58a785=_0x69ecbc[_0x4f574f(0x4d2)];_0x69ecbc[_0x4f574f(0x4d2)]=_0x48ee3a['textEncoder'][_0x4f574f(0x4e7)]((0x0,_0x48ee3a[_0x4f574f(0x462)])(_0x58a785));});}return _0x282d25;}async[_0x239292(0x217)](_0x1e0fa3,_0x47ad77){const _0x4f0481=_0x239292;let {unitID:_0x556f6e,type:_0x24e7ef,blockID:_0x58ac25}=_0x47ad77,_0x4be754=this['_getAPIPrefix']()+'/'+_0x24e7ef+_0x4f0481(0x4cd)+_0x556f6e+_0x4f0481(0x44f)+_0x58ac25;return(await this[_0x4f0481(0x498)][_0x4f0481(0x418)](_0x4be754))['body'];}async['getDeserializedSheetBlock'](_0x59ea1c,_0x937f51){const _0xa98fd1=_0x239292;let {unitID:_0x754132,type:_0x24ec13,blockID:_0x3e1b3a}=_0x937f51,_0x34e84c=this[_0xa98fd1(0x4e3)]()+_0xa98fd1(0x44f)+_0x24ec13+'/unit/'+_0x754132+_0xa98fd1(0x44f)+_0x3e1b3a;return(await this[_0xa98fd1(0x498)]['get'](_0x34e84c))[_0xa98fd1(0x38e)];}async[_0x239292(0x327)](_0x5bfab5,_0x28812c){const _0x4aaa72=_0x239292;let {unitID:_0x130915,type:_0x3e81ed,from:_0x3a089a,to:_0x2236c2}=_0x28812c,_0x259d3c=this['_getAPIPrefix']()+'/'+_0x3e81ed+_0x4aaa72(0x4cd)+_0x130915+'/fetchmissing?from='+_0x3a089a+_0x4aaa72(0x46e)+_0x2236c2;return(await this['_httpService']['get'](_0x259d3c))[_0x4aaa72(0x38e)];}['getSnapshotAPIPath'](){const _0x58887f=_0x239292;var _0xb5f87a;return(_0xb5f87a=this[_0x58887f(0x223)][_0x58887f(0x291)](_0x58887f(0x3bd)))==null?this[_0x58887f(0x4e3)]():_0xb5f87a;}[_0x239292(0x4e3)](){const _0x315119=_0x239292;var _0xc6db7a;let _0x17e031=this['_configService'][_0x315119(0x291)](_0x4aca5a);return(_0xc6db7a=_0x17e031==null?void 0x0:_0x17e031[_0x315119(0x1e1)])==null?_0x315119(0x484):_0xc6db7a;}async[_0x239292(0x1f0)](_0x45428b,_0x592927){const _0x1329df=_0x239292;let _0x10ecd1=_0x1329df(0x362)+_0x592927[_0x1329df(0x29f)]+_0x1329df(0x4cd)+_0x592927[_0x1329df(0x262)]+'/resources';return(await this[_0x1329df(0x498)][_0x1329df(0x418)](_0x10ecd1,{'params':{'resourceId':JSON[_0x1329df(0x3db)](_0x592927[_0x1329df(0x31a)])}}))[_0x1329df(0x38e)];}[_0x239292(0x3a9)](){const _0x1a96f2=_0x239292;throw Error(_0x1a96f2(0x39b));}[_0x239292(0x234)](){const _0x17415d=_0x239292;throw Error(_0x17415d(0x39b));}['saveSheetBlock'](){const _0x3a6939=_0x239292;throw Error(_0x3a6939(0x39b));}[_0x239292(0x44e)](){const _0x127964=_0x239292;throw Error(_0x127964(0x39b));}[_0x239292(0x412)](){const _0x219d59=_0x239292;throw Error(_0x219d59(0x39b));}['getLatestCsReqIdBySid'](){const _0x5ee8f2=_0x239292;throw Error(_0x5ee8f2(0x39b));}};_0x5f12d2=_0x157b59([_0x202927(0x0,_0x373403[_0x239292(0x2c6)]),_0x202927(0x1,(0x0,_0x373403[_0x239292(0x4c7)])(_0x39ae45[_0x239292(0x297)]))],_0x5f12d2);let _0xc65992=class extends _0x373403[_0x239292(0x4ed)]{constructor(_0x12eb8b,_0x134a08,_0x7f5bb3,_0x3e3f5b,_0x23aa1e){const _0x39837e=_0x239292;super(_0x12eb8b,_0x134a08,_0x7f5bb3),this[_0x39837e(0x243)]=_0x3e3f5b,this['_logService']=_0x23aa1e;}[_0x239292(0x372)](_0x40cd1c,_0x3266d2){const _0x136b8e=_0x239292;let _0x16d562=this[_0x136b8e(0x481)](_0x40cd1c);if(_0x16d562)try{let _0x66d358=this[_0x136b8e(0x226)](_0x16d562,_0x3266d2);this[_0x136b8e(0x265)](_0x40cd1c,_0x66d358);}catch(_0x35ad3f){this[_0x136b8e(0x41e)][_0x136b8e(0x282)](_0x136b8e(0x20b),_0x35ad3f),this[_0x136b8e(0x3c2)](_0x40cd1c);}let _0x32108f=this['_getRedoStack'](_0x40cd1c);if(_0x32108f)try{let _0x1eb9d7=this['_transformStack'](_0x32108f,_0x3266d2);this[_0x136b8e(0x32e)](_0x40cd1c,_0x1eb9d7);}catch(_0x56a103){this['_logService'][_0x136b8e(0x282)](_0x56a103),this['_clearRedo'](_0x40cd1c);}}[_0x239292(0x3c2)](_0x2d5f3e){const _0x1a7f2e=_0x239292;let _0x36ba79=this['_getUndoStack'](_0x2d5f3e);_0x36ba79&&(_0x36ba79['length']=0x0,this[_0x1a7f2e(0x3e8)]());}[_0x239292(0x4dd)](_0xd6727d){const _0x4351cc=_0x239292;let _0x23029b=this[_0x4351cc(0x29c)](_0xd6727d);_0x23029b&&(_0x23029b[_0x4351cc(0x25c)]=0x0,this[_0x4351cc(0x3e8)]());}[_0x239292(0x265)](_0x34b52a,_0x4b0ae5){const _0x55a06d=_0x239292;this[_0x55a06d(0x4ab)][_0x55a06d(0x28a)](_0x34b52a,_0x4b0ae5),this[_0x55a06d(0x3e8)]();}[_0x239292(0x32e)](_0x51c29f,_0x899a4c){const _0x26e44b=_0x239292;this[_0x26e44b(0x3f6)][_0x26e44b(0x28a)](_0x51c29f,_0x899a4c),this[_0x26e44b(0x3e8)]();}['_transformStack'](_0x22f7df,_0x14d903){const _0x1723e2=_0x239292;let _0x217732=[],_0xd309cb=_0x14d903,_0x1981a7=_0x14d903;for(let _0x40a533=_0x22f7df[_0x1723e2(0x25c)]-0x1;_0x40a533>=0x0;_0x40a533--){let {unitID:_0x115556,undoMutations:_0x1b9be3,redoMutations:_0x271d86}=_0x22f7df[_0x40a533],_0x2c9389=this[_0x1723e2(0x243)][_0x1723e2(0x38a)](_0xd309cb,_0x1b9be3),_0x33e421=this[_0x1723e2(0x243)]['transformMutationsWithChangeset'](_0x1981a7,_0x271d86);if((0x0,_0x48ee3a[_0x1723e2(0x37c)])(_0x2c9389)||(0x0,_0x48ee3a[_0x1723e2(0x37c)])(_0x33e421)){this[_0x1723e2(0x41e)][_0x1723e2(0x282)](_0x1723e2(0x20b),_0x1723e2(0x46a),_0x2c9389,_0x33e421);break;}_0xd309cb=_0x2c9389['c1Prime'],_0x1981a7=_0x33e421[_0x1723e2(0x4da)],_0x217732[_0x1723e2(0x2d6)]({'unitID':_0x115556,'undoMutations':_0x2c9389[_0x1723e2(0x459)],'redoMutations':_0x33e421[_0x1723e2(0x459)]});}return _0x217732[_0x1723e2(0x237)]();}};_0xc65992=_0x157b59([_0x202927(0x0,_0x373403['IUniverInstanceService']),_0x202927(0x1,_0x373403['ICommandService']),_0x202927(0x2,_0x373403['IContextService']),_0x202927(0x3,_0x48ee3a['ITransformService']),_0x202927(0x4,_0x373403[_0x239292(0x2a1)])],_0xc65992);let _0x2107bf=class extends _0x373403[_0x239292(0x4af)]{constructor(_0x221795=_0x4f11d9,_0x3f6d8e,_0x185bce,_0x58eaa3){const _0x26099f=_0x239292;super(),this[_0x26099f(0x3b6)]=_0x221795,this[_0x26099f(0x41e)]=_0x3f6d8e,this[_0x26099f(0x519)]=_0x185bce,this[_0x26099f(0x223)]=_0x58eaa3;let {..._0x16571d}=(0x0,_0x373403[_0x26099f(0x420)])({},_0x4f11d9,this[_0x26099f(0x3b6)]);if(!_0x16571d['socketService'])throw Error(_0x26099f(0x23b));this[_0x26099f(0x3b6)]=_0x16571d,this[_0x26099f(0x223)][_0x26099f(0x3d8)](_0x4aca5a,_0x16571d);}[_0x239292(0x1d3)](){const _0x3fbf02=_0x239292;this[_0x3fbf02(0x2f6)](),this[_0x3fbf02(0x298)]();}[_0x239292(0x2f6)](){const _0x47d257=_0x239292;var _0x14bfd2,_0x513c42;this[_0x47d257(0x519)][_0x47d257(0x28e)](_0x373403[_0x47d257(0x251)])&&this['_logService'][_0x47d257(0x282)](_0x47d257(0x3bb),_0x47d257(0x463));let _0x20660e=(0x0,_0x373403[_0x47d257(0x21b)])([[_0x373403[_0x47d257(0x251)],{'useClass':_0xc65992}],[_0x4118a1,{'useValue':_0x1df8bc()}],[_0x219c13],[_0x4d853f],[_0x213414],[_0x179974],[_0x5de5d9],[_0x1eb00f],[_0x165343],[_0x2def2b],[_0x38fa1f],[_0x209556,{'useClass':this['_config'][_0x47d257(0x29a)]}],[_0x48ee3a['ISnapshotServerService'],{'useClass':_0x5f12d2}],[_0x373403[_0x47d257(0x1eb)],{'useClass':_0x16847b}],[_0x373403[_0x47d257(0x41a)],{'useClass':_0x40f1cc}],[_0x14e8c9,{'useClass':_0x3c31aa}],[_0x373403['IMentionIOService'],{'useClass':_0x3f6459}],[_0x208253],[_0x29720e]],(_0x14bfd2=this[_0x47d257(0x3b6)])==null?void 0x0:_0x14bfd2[_0x47d257(0x306)]);if(!((_0x513c42=this[_0x47d257(0x3b6)])!=null&&_0x513c42[_0x47d257(0x302)])){let _0x5c0c20=_0x20660e[_0x47d257(0x3cb)](([_0x2c6f96])=>_0x2c6f96===_0x354942);_0x5c0c20!==-0x1&&_0x20660e[_0x47d257(0x500)](_0x5c0c20,0x1);}(0x0,_0x373403[_0x47d257(0x34c)])(this[_0x47d257(0x519)],_0x20660e);}[_0x239292(0x298)](){const _0x403ab9=_0x239292;var _0x288f9c,_0x19b47d;if(this[_0x403ab9(0x519)][_0x403ab9(0x418)](_0x39ae45[_0x403ab9(0x297)])[_0x403ab9(0x39f)]({'priority':0x14,'interceptor':(0x0,_0x39ae45[_0x403ab9(0x343)])({'maxParallel':0x6})}),!((_0x288f9c=this[_0x403ab9(0x3b6)])!=null&&_0x288f9c['enableOfflineEditing'])){var _0xfeaab;(_0xfeaab=this['_injector'][_0x403ab9(0x418)](_0x32ba82,_0x373403[_0x403ab9(0x3aa)][_0x403ab9(0x27d)]))==null||_0xfeaab['disableLocalCache']();}(_0x19b47d=this[_0x403ab9(0x3b6)])!=null&&_0x19b47d['enableAuthServer']&&(0x0,_0x373403[_0x403ab9(0x311)])(this[_0x403ab9(0x519)],[[_0x179974]]),(0x0,_0x373403['touchDependencies'])(this[_0x403ab9(0x519)],[[_0x5de5d9],[_0x208253],[_0x165343]]);}};_0x261440(_0x2107bf,'pluginName',_0x239292(0x24a)),_0x261440(_0x2107bf,_0x239292(0x45a),_0x1f5988),_0x261440(_0x2107bf,_0x239292(0x2d7),_0x2cfb3a),_0x2107bf=_0x157b59([(0x0,_0x373403[_0x239292(0x4d0)])(_0x23b870['UniverLicensePlugin'],_0x48ee3a[_0x239292(0x348)],_0x39ae45[_0x239292(0x22e)]),_0x202927(0x1,_0x373403[_0x239292(0x2a1)]),_0x202927(0x2,(0x0,_0x373403[_0x239292(0x4c7)])(_0x373403['Injector'])),_0x202927(0x3,_0x373403[_0x239292(0x2c6)])],_0x2107bf),_0x2ff554[_0x239292(0x2e4)]=_0x24897c,Object[_0x239292(0x46f)](_0x2ff554,_0x239292(0x42d),{'enumerable':!0x0,'get':function(){return _0x16847b;}}),Object[_0x239292(0x46f)](_0x2ff554,_0x239292(0x35f),{'enumerable':!0x0,'get':function(){return _0x5b101e;}}),Object[_0x239292(0x46f)](_0x2ff554,_0x239292(0x210),{'enumerable':!0x0,'get':function(){return _0x1aaec5;}}),Object[_0x239292(0x46f)](_0x2ff554,_0x239292(0x32f),{'enumerable':!0x0,'get':function(){return _0x5aba1e;}}),Object['defineProperty'](_0x2ff554,_0x239292(0x266),{'enumerable':!0x0,'get':function(){return _0x484a9e;}}),_0x2ff554['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=_0x4aca5a,Object['defineProperty'](_0x2ff554,_0x239292(0x22c),{'enumerable':!0x0,'get':function(){return _0x3c31aa;}}),Object[_0x239292(0x46f)](_0x2ff554,_0x239292(0x4bb),{'enumerable':!0x0,'get':function(){return _0x208253;}}),Object['defineProperty'](_0x2ff554,'CollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x17615d;}}),Object['defineProperty'](_0x2ff554,_0x239292(0x3ea),{'enumerable':!0x0,'get':function(){return _0x40f1cc;}}),Object[_0x239292(0x46f)](_0x2ff554,_0x239292(0x274),{'enumerable':!0x0,'get':function(){return _0x23f91e;}}),Object[_0x239292(0x46f)](_0x2ff554,_0x239292(0x324),{'enumerable':!0x0,'get':function(){return _0x219c13;}}),Object['defineProperty'](_0x2ff554,_0x239292(0x211),{'enumerable':!0x0,'get':function(){return _0x418dd0;}}),_0x2ff554['CollaborationStatus']=_0x29abe0,_0x2ff554[_0x239292(0x2a8)]=_0x3b5d94,_0x2ff554['CollaborationUIEventService']=_0x2def2b,Object[_0x239292(0x46f)](_0x2ff554,_0x239292(0x4cb),{'enumerable':!0x0,'get':function(){return _0xc65992;}}),_0x2ff554[_0x239292(0x2b2)]=_0x1eb00f,Object[_0x239292(0x46f)](_0x2ff554,'ConflictState',{'enumerable':!0x0,'get':function(){return _0x583366;}}),_0x2ff554[_0x239292(0x494)]=_0x564a89,_0x2ff554['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']='/universer-api/uniscript',_0x2ff554[_0x239292(0x428)]=_0x239292(0x1d0),Object['defineProperty'](_0x2ff554,'DataLoaderService',{'enumerable':!0x0,'get':function(){return _0x38fa1f;}}),Object[_0x239292(0x46f)](_0x2ff554,_0x239292(0x3fa),{'enumerable':!0x0,'get':function(){return _0x2044be;}}),Object[_0x239292(0x46f)](_0x2ff554,_0x239292(0x20e),{'enumerable':!0x0,'get':function(){return _0x41cb05;}}),_0x2ff554[_0x239292(0x42c)]=_0x239292(0x2b3),_0x2ff554[_0x239292(0x47e)]='HEARTBEAT_TIMEOUT',_0x2ff554[_0x239292(0x4c4)]=_0x14e8c9,_0x2ff554[_0x239292(0x2f2)]=_0x4118a1,_0x2ff554['ICollaborationSocketService']=_0x209556,_0x2ff554['ILocalCacheService']=_0x32ba82,_0x2ff554[_0x239292(0x4e5)]=_0x565e68,_0x2ff554[_0x239292(0x4b8)]=_0x354942,_0x2ff554[_0x239292(0x464)]=0x3e8,_0x2ff554[_0x239292(0x2f3)]=_0x239292(0x464),Object[_0x239292(0x46f)](_0x2ff554,'MemberService',{'enumerable':!0x0,'get':function(){return _0x4d853f;}}),Object['defineProperty'](_0x2ff554,_0x239292(0x4a4),{'enumerable':!0x0,'get':function(){return _0x3f6459;}}),Object[_0x239292(0x46f)](_0x2ff554,_0x239292(0x2ec),{'enumerable':!0x0,'get':function(){return _0x561132;}}),Object[_0x239292(0x46f)](_0x2ff554,_0x239292(0x489),{'enumerable':!0x0,'get':function(){return _0x59fb30;}}),_0x2ff554[_0x239292(0x1d8)]='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',_0x2ff554[_0x239292(0x48e)]=_0x239292(0x200),_0x2ff554[_0x239292(0x33c)]=_0x13b909,Object[_0x239292(0x46f)](_0x2ff554,_0x239292(0x286),{'enumerable':!0x0,'get':function(){return _0x81a6ef;}}),Object[_0x239292(0x46f)](_0x2ff554,_0x239292(0x4d3),{'enumerable':!0x0,'get':function(){return _0x213414;}}),Object[_0x239292(0x46f)](_0x2ff554,_0x239292(0x482),{'enumerable':!0x0,'get':function(){return _0x4d6a5e;}}),Object['defineProperty'](_0x2ff554,_0x239292(0x3ff),{'enumerable':!0x0,'get':function(){return _0x5f12d2;}}),Object[_0x239292(0x46f)](_0x2ff554,_0x239292(0x416),{'enumerable':!0x0,'get':function(){return _0x2d2058;}}),_0x2ff554['UnitStatus']=_0x2e1fb9,Object[_0x239292(0x46f)](_0x2ff554,_0x239292(0x2ab),{'enumerable':!0x0,'get':function(){return _0x2107bf;}}),_0x2ff554[_0x239292(0x33a)]=_0x1df8bc,_0x2ff554[_0x239292(0x3a0)]=_0x1f4d00,_0x2ff554[_0x239292(0x3a3)]=_0xd02ec9,_0x2ff554[_0x239292(0x3ee)]=_0x4c8786;}));
1
+ function _0x1420(_0x4f9d18,_0x344777){_0x4f9d18=_0x4f9d18-0xca;const _0x59a06e=_0x59a0();let _0x1420e1=_0x59a06e[_0x4f9d18];return _0x1420e1;}function _0x59a0(){const _0x3f6eee=['_onRemoteRejected','_rescheduleHeartbeat','resolve','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','push','objectType','RETRY_CONNECTING_MAX_COUNT','_onRecvEvent','SessionStatus','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','state','CollaborationUIEventId','UNIVER_BASE','getDeserializedSheetBlock','entries','unknown','updateCollaborator','LIVESHARE_TERMINATE','_getCurrentRevision','isCompositionEnd','routeKey','setConfig','/fetchmissing?from=','loadSlide','_onFetchMissResult','unitId','getValue','getCurrentRevOfUnit','URL','snapshot','connection\x20error','getUnit','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','\x20-\x20','_socket','updateOfflineData','_onConnectionOpen','cmd','downloadEndpointUrl','complete','values','UnitEmbedded','b64DecodeUnicode','BoardCollaborationEntity','update','rxjs','getUploadOptions','session.room-permission-denied','USERS_LEAVE','range','UNIVER_SLIDE','COMMENT_UPDATE','number\x20expected,\x20got\x20','_getUploadFileURL','JOIN_ROOM_FAILED','Error\x20on\x20receiving\x20event','ERROR_IMAGE','CONFLICT','pending','_memberService','_onCombEvent','LocalUndoRedoService','_HTTPService','readyForCollab','\x0aAfter:\x20','findIndex','fromCharCode','RECV','_schedule','unitInfo$','People','varSizeNonce','toStringTag','IImageIoService','getInterceptPoints','CLOSE_ROOM','_unlockTransition','nonceLength','_event$','DocStateChangeManagerService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','GLOBAL_ROOMS_CNT_EXCEEDS','_sessions','AttachmentSourceType','getSnapshotAPIPath','SOCKET_FAILED_RETRY','SYNCED','mutations','uuidv4','MergeInterceptorFactory','cfgEnableObjInherit','init','_members$','type=','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','getUnitOnRev','_resendWithTimeout','_collaborationSessionService','CHANGESET_ACK','unitType','byteOffset','resend','tagLength','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','AuthzIoHttpService','ILogService','_change$','_onRemoteRetry','_permissionService','CollaborationSessionService','Plugin','_waitCount','CollaborationSession','removeMember','toLocal','offline','_isEchoedAwaitingChangeset','@univerjs/sheets','_univerInstanceService','_onLocalMutation','CompressMutationService','@univerjs/core','patch','LIVESHARE_REQUEST_HOST','OFFLINE','onTransformIME','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','?size=','ISnapshotServerService','startTime','LIVESHARE_OPERATION','CommentService','_roomCreated$','message$','_commandService','subscribe','/rev/','PENDING','NEW_CHANGESETS','createInstance','_roomMembers','map','/allowed','next','status','getSheetBlock','@univerjs-pro/license','__splitChunk__','socketService','_compressMutationService','rxjs/operators','\x20in\x20_schedule.','prototype','/-/object/list','INetworkConditionService','snapshotServerUrl','OfflineState','COLLABORATION_ENDPOINT_INVALID','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','SUCCUSS','ErrorCode','\x20of\x20length\x20','changesets','IUndoRedoService','CHANGESET_REJ','_onOffline','collaMsg','[CollaborationSession]','onTransformSelections','m2Prime','_upload','_scheduleCompleteTimestamp','parseProtocolChangeset','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','univer-pro.collaboration-client.network-condition.service','JOIN_ROOM_PERMISSION_DENIED','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','docStateChange$','_getLoginPath','RETRY_CONNECTING_MAX_COUNT_KEY','DisposableCollection','_redoStacks','putCollaborators','_collaborationPaused','getActiveSheet','listRoles','98870IOqqfH','members$','&assign=','_tryReconnect','list','MSG_FOR_ERROR','Inject','collaboration-client.local-cache-service','onCommentUpdate','incrementRevOfUnit','append','_entities','status$','IPermissionService','base-ui.attachment-io.service','[OfflineState]:\x20received\x20acknowledgement.','transformStack\x20failed!','collabWebSocketUrl','getFocusedUnit','PERSON','csShouldRetryEvent','getTypeOfUnitAdded$','disposeWithMe','_httpService','CmdRspCode','_pendingMutations','state$','name','MemberService','packageName','HEARTBEAT','[FetchMissState]','endsWith','ERROR_EXCEED_SIZE','copyFileMeta','maxSize','stringify','_submitChangeset','MentionIoHttpService','save\x20fail\x20reason\x20is\x20','@univerjs/drawing','splice','CollaborationEvent','action','liveShareNewHost','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_clearUndo','_clearRedo','getUnitId','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','online$','getMember','_updateState','/new_changes','EnsureSlideMasterPageMutation','ImageUploadStatusType','sendHeartbeatTimer','createCollaborator','LIVESHARE_NEW_HOST','UniverInstanceType','function','reconnect','isInternalEditorID','Injector','data','Quantity','UUID','generateRandomId','some','members','merge','HTTPRequest','42wgzfkO','readAsDataURL','loadDoc','HELLO','[PendingState]:\x20received\x20rejection.','isTransformChangesetsSuccess','_syncEditingCollabCursor','requireSession','_createHandler','invalid\x20output,\x20must\x20be\x20aligned','_registerDependencies','floor','length','NO_OTHER_CLIENTS_EDITING','SnapshotService','debug','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getUnitType','ILocalCacheService','fromCollab','UNIVER_BOARD','_getAPIPrefix','requestParams','onRemoteAck','isTransformMutationsWithChangesetSuccess','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getRoom','SyncedState','[DataLoaderService]','@univerjs/protocol','getCurrentSelections','_shouldReportTelemetry','registerHTTPInterceptor','sort','symbol','fetchMiss','DataLoaderService','_state$','UniverCollaborationClientPlugin','url','deepClone','_getSocketChannel','HEARTBEAT_INTERVAL','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','responseType','takeUntil','FileId','LocaleService','CollaborationImageIoService','onlyLocal','not_collab','_getAPIPrefixPath','buffer','HEARTBEAT_TIMEOUT','error$','pauseCollaboration','revision','_handleRemoteChangesets','_onConnectionFailed','_decreaseWaiting','joinEvent','endpointKey','nonce','_init','onRemoteRej','_startTelemetryCollaborationNewChangeset','_collaborationTimeoutTimer','includes','getTime','RxDisposable','hasOwnProperty','set','onRemoteChangeset','_transformRemoteChangesetByStateCache','_disableEditing','delay','batchAllowed','params','createIdentifier','_sendingTimer','has','1.0.0-alpha.6','UniverProCollaboration','_lockTransition','getDrawingImageAllowSize','updateSnapshot','_revisionService','_sessionChannels','LOCAL_CACHE_INTERVAL_KEY','subject','subUnitId','ISocketService','onSyncEditingCollabCursor','awaiting','HEARTBEAT_INTERVAL_KEY','string\x20expected','_snapshotService','objects','sheets','Failed\x20to\x20update\x20permission\x20point','OTHER_CLIENT_EDITING','crypto.getRandomValues\x20must\x20be\x20defined','_transformSelections','number','mergeOverrideWithDependencies','saveAttachment','getUnitStatus$','_collaborationUIEventService','COMPRESS_MUTATION_SEND','isSafeInteger','fetch_missing','UniverNetwork','pipe','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','getResourcesRequest','enableAuthServer','CHANGESET_SHOULD_RETRY','setWaitCount','columnGroups','_applyRemoteChangeset','_transformRemoteChangesetByIMECache','setCfgEnableObjInherit','encodeURIComponent','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','DEFAULT_COLLAB_WEB_SOCKET_URL','setCurrentUser','UPDATE_PERMISSION_OBJ','filter','univer-pro.collaboration-client-adapter-service','result','CollaborationSocketService','createUniverCollaborationAdapter','reject','c2Prime','transformUndoRedo','_unitLoaded$','IAttachmentIoService','unsubscribe','post','userID','_handler','_onUserLeave','permissionRejEvent','Module','[SyncedState]:\x20received\x20rejection.','toString','textRanges','changeset','_maxTotalRetryTimeout','_transformAndApplyRemoteChangeset','/-/object/-/batch_allowed','session.room-full','missingChangesets','/object','ImageSourceType','_handlerCallback','univer-pro.collaboration-client.single-active-unit-service','telemetry\x20info\x20is\x20not\x20initialized','compose','_transformService','slice','add','getCollabEntity$','_initMergeInterceptor','getCollabEntity','every','_config','_telemetryInfo','onload','_toggleOffline','_adapter','/universer-api/file/{fileID}/sign-url','close','candidateSocket','_initUnitPermissionChange','SUBMIT_CHANGESET','socket\x20close','UniverNetworkPlugin','socketReady','CollaborationUIEventService','selections','_executeRemoteChangeset','SheetsSelectionsService','Wrong\x20sbox\x20length','_socketMessageSubscription','PERMISSION_REJ','ISingleActiveUnitService','collaboratorID','send','_sendHeartbeat','_checkMissing','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','/resources','retryConnectingTimer','_cfgEnableObjInherit','_updateStatus','_exhaustRemoteChangesetQueue','isPermissionRej','_createSocket','onMutationExecutedForCollab','[PendingState]:\x20received\x20acknowledgement.','collaboration-client.config','Rectangle','transformMutationsWithChangeset','timeoutTimer','collabSubmitChangesetUrl','location','session.room-cnt-exceeds','CollaborationStatus','_socketChannels','UniverProtocol','override','interceptor','file','CombCmd','SheetCollaborationEntity','_sheetTransformSelectionsService','COMPRESS_MUTATION_APPLY','_localCacheService','_transformStack','dispose$','getSheetId','awaiting_with_pending','executeCommand','IConfigService','getConfig','unit','conflict','SetSelectionsOperation','upload','retryCount','_joinRoom','DEFAULT_WS_SESSION_TICKET_URL','CollaborationEntity','_acknowledgedAwaitingRevision','collaborators','serializeCombRequest','_listenToNetworkCondition','isView','decrypt','joinRsp','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_logService','_tryEnsureSocket','origin','eventID','ThresholdInterceptorFactory','@univerjs/docs','_fetchMissChangesets','updatePermissionPoint','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','memberID','_createSession','getLocalCacheKey','get','workbook','touchDependencies','SNAPSHOT_URL_KEY','4553464ClJtLJ','_hasSessionsForEndpoint','UniverProLicense','_getSignURL','_state','_throwTelemetryCollaborationNewChangeset','collaboration_new_changeset','actions','_showConflictNotification','_removeRoom','_clearLocalCache','_onMessage','_identity','[PendingState]:\x20unhandled\x20univer\x20type:\x20','text-x','_commentService','authzUrl','IDLE','take','_onRemoteACK','tables','_undoRedoService','roles','awaitingChangeset','MentionType','reduce','_getDownloadEndpointURL','attachment','_incrementRevisionNumber','_substituteRedoStack','ITransformService','trim','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','resolveUnit','disablePadding','1056627rMVwQP','_pendingSessions','_replaceFileID','HEARTBEAT_TIMEOUT_KEY','_remoteChangesetQueue','_resolveSessionIdentity','ONLINE','liveShareOperation','getGlobalObject','_substituteUndoStack','JOINING','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','_sender','AWAITING_WITH_PENDING','hostname','roomInfos','UniverProCollaborationClient','_getRedoStack','[CollaborationSessionService]','_clearRetryConnectingTimer','constructor','JOIN','_resendTimeout','operators','WorkbookEditablePermission','_createInitialStateImpl','session','_getSendChangesetTimeout','LIVESHARE_FETCH_OPERATIONS','objectID','_members','@univerjs-pro/slides','AwaitingState','SUBMIT_CHANGESET_TIMEOUT','size','_awaitingChangeset','emitEvent','method','createSocket','create','code','put','_initDependencies','_localeService','RevisionService','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','_transformIMECache','waitForRoom$','find','listCollaborators','fetchMissingChangesets','UniverDocs','_commentUpdate$','byteLength','RichTextEditingMutation','/object/','_transformStateCache','reqId','Univer','session.join-failed','OPTIONAL','transformChangesets','UniverDrawing','/universer-api/stream/file/upload','reverse','[SyncedState]:\x20received\x20acknowledgement.','target','_imageSourceCache','length=','appendMutation','toDisposable','_initCloseConn','from','onRemoteRetry','iterator','getCurrentUser','_startCollaboration','decorate','CommandType','FAIL','_sessionStatus$','amd','_waitForHeartbeatResponse','version','_configService','toggleOffline','getImageSourceCache','enableSingleActiveInstanceLock','mapDocumentTypeToUniverInstanceType','isArray','SheetTransformSelectionsService','title','closeSession','JSONX','refreshPermission','Optional','24958UhKPxg','IUniverInstanceService','toPrimitive','[CollaborationEntity]','IAuthzIoService','UNIVER_SHEET','@univerjs/network','{fileID}','localCacheService','UnitStatus',',\x20got\x20','headers','/role','/collaborator','3508176xkHzbq','UNIVER_DOC','onSendChangeset','SOCKET_FAILED','PERMISSION_DENIED','/universer-api/snapshot','_status$','clear','crypto','min','DRAWING_IMAGE_ALLOW_IMAGE_LIST','onTransformState','2601ODSbSD','resourceIDs','baseRev','_isPermissionRej','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','parseChangesetToProtocol','sequenceExecute','unitId\x20is\x20not\x20found','Subject','UPDATE_CURSOR','encrypt','RemoveSlidePageMutation','call','BehaviorSubject','ICommandService','collaboration-client.auth.needGotoLoginAlert','Disposable','_snapshotServerService','USERS_ENTER','OTHER_CLIENTS_EDITING','2511880OUqYEc','getMemberID','INGEST','UniverLicensePlugin','@univerjs/telemetry','string','confirm','defineProperty','infoRsp','&source=','_clearHeartbeatTimer','textEncoder','SlideCollaborationEntity','_undoStacks','_onConflict','UniverTelemetry','@univerjs-pro/collaboration','uniscriptRunEvent','delete','enableCollaboration','\x20to\x20','saveSnapshot','_unitInfo$','_telemetryService','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','_clearCollaborationTimeoutTimer','UniverProSlides','socketMessageSubscription','_acknowledgeAwaitingIfReady','concatMap','_initRequestHeader','accept','_collabSessionService','parse','now','CollaborationController','_userManagerService','avatar','/unit/','onLocalMutation','getTypeOfUnitDisposed$','PendingState','LOCAL_CACHE_INTERVAL','Uint8Array','addHandlerCallback','getRandomValues','indexOf','onTransformRemoteChangesetByIMECache','_updateLocalCache','\x0aCurrent:\x20','error','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','FETCH_MISSING','_instanceService','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','transformSelections','catch','originalMeta','session.room-not-exists','isTransformMutationsWithChangesetFailure','_getUndoStack','retryConnectingInterval','registerDependencies','ERROR_IMAGE_TYPE','_clearTimeoutTimer','entityInit$','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','sessionStatus','_changesetSessionId','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','fetchThroughInterceptors','EmptyMutationInfo','stopTime','onMissingChangesets','_resendTimer','close$','SHOULD_CLOSE_CONN','type','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','c1Prime','asObservable','_getCtorByUniverInstanceType','newCsEvent','max','positive\x20integer\x20expected,\x20got\x20','_transitionLocked','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','getWorkbookSelections','leaveEvent','fetching\x20missing\x20changesets\x20from\x20','dispose','disableLocalCache','/universer-api/uniscript','loadBoard','_networkConditionService','_docStateChangeManagerService','localUnitId','/universer-api/oidc/authpage','uploadFileServerUrl','IMentionIOService','JOIN_ROOM_FULL','_changesetReqId','localeService','sid','_socketService','_transformUndoredo','submit\x20changeset\x20error!','_onJoinRoomEvent','enableOfflineEditing','FileSource','output','toggleOnline','NOT_COLLAB','onTransformRemoteChangesetByStateCache','/universer-api/authz','updateMember','unitLoaded$','loadUnitOfRevision','_entityInit$','body','synced','BYTES_PER_ELEMENT','_clearScheduledTask','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','csRejEvent','startsWith','onStateChange','_acknowledgeAwaiting','onMissedChangesetFetched','loadOfflineData','endpoint','?url=','HTTPService','_getConfig','_toggleOnline','object','unitID','3327468yfhUJI','7qwCGqa','setShowComponents','_singleActiveUnitService','event$','BASE64','sessionStatus$','_type','pluginName','encode','saveChangeset','/block/','MoveSlidePageMutation','sendChangesetTimeout','[CollaborationUndoRedoService]','MUTATION','PSEUDO_FETCH_MISSING_RESULT','shouldCloseConn','_queuedRemoteChangesets','_injector','socket$','toRemote','_emitMembers','forEach','subarray','_eventService','saveImage','_onRemoteChangeset'];_0x59a0=function(){return _0x3f6eee;};return _0x59a0();}(function(_0x4f22db,_0x5404d7){const _0xccef8f=_0x1420,_0xeca711=_0x4f22db();while(!![]){try{const _0x274cca=-parseInt(_0xccef8f(0x409))/0x1*(-parseInt(_0xccef8f(0x234))/0x2)+parseInt(_0xccef8f(0x1d4))/0x3+parseInt(_0xccef8f(0x1b1))/0x4+parseInt(_0xccef8f(0x262))/0x5+parseInt(_0xccef8f(0x2eb))/0x6+-parseInt(_0xccef8f(0x2ec))/0x7*(-parseInt(_0xccef8f(0x242))/0x8)+parseInt(_0xccef8f(0x24e))/0x9*(-parseInt(_0xccef8f(0x3c1))/0xa);if(_0x274cca===_0x5404d7)break;else _0xeca711['push'](_0xeca711['shift']());}catch(_0x598f5c){_0xeca711['push'](_0xeca711['shift']());}}}(_0x59a0,0x9f61a),function(_0xf3bf87,_0x3b88b5){const _0x1e1bd6=_0x1420;typeof exports==_0x1e1bd6(0x2e9)&&typeof module<'u'?_0x3b88b5(exports,require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x1e1bd6(0x3fd)&&define[_0x1e1bd6(0x225)]?define(['exports',_0x1e1bd6(0x272),_0x1e1bd6(0x380),_0x1e1bd6(0x1a6),_0x1e1bd6(0x37c),_0x1e1bd6(0x334),_0x1e1bd6(0xcc),_0x1e1bd6(0x266),_0x1e1bd6(0x39d),_0x1e1bd6(0x1f3),_0x1e1bd6(0x23a),_0x1e1bd6(0x399),_0x1e1bd6(0x3e9)],_0x3b88b5):(_0xf3bf87=typeof globalThis<'u'?globalThis:_0xf3bf87||self,_0x3b88b5(_0xf3bf87[_0x1e1bd6(0x1e4)]={},_0xf3bf87[_0x1e1bd6(0x101)],_0xf3bf87['UniverCore'],_0xf3bf87[_0x1e1bd6(0x207)],_0xf3bf87['UniverSheets'],_0xf3bf87[_0x1e1bd6(0x334)],_0xf3bf87[_0x1e1bd6(0x181)],_0xf3bf87[_0x1e1bd6(0x271)],_0xf3bf87[_0x1e1bd6(0x334)][_0x1e1bd6(0x1eb)],_0xf3bf87[_0x1e1bd6(0x27c)],_0xf3bf87[_0x1e1bd6(0x11e)],_0xf3bf87[_0x1e1bd6(0x1b3)],_0xf3bf87[_0x1e1bd6(0x212)]));}(this,function(_0x79aec8,_0x149d12,_0x47f753,_0x459006,_0x1e2709,_0x470009,_0x26a654,_0x32d36d,_0x5ba228,_0x40163b,_0x8f2da5,_0x4326e6,_0x5d9de4){const _0x27b931=_0x1420;Object['defineProperty'](_0x79aec8,Symbol[_0x27b931(0x34f)],{'value':_0x27b931(0x13e)});let _0x3c17be=_0x27b931(0x178),_0xa759f3={},_0x5f4f64='ws://127.0.0.1:8000/universer-api/comb/connect',_0x1dfc3f=0x4e20;function _0x378d76(_0x568036){const _0x10c551=_0x27b931;return JSON['stringify'](_0x568036)[_0x10c551(0x415)];}function _0x53ca1f(_0x443e56){'@babel/helpers - typeof';const _0x8e961b=_0x27b931;return _0x53ca1f=typeof Symbol=='function'&&typeof Symbol[_0x8e961b(0x21e)]==_0x8e961b(0xd1)?function(_0x211581){return typeof _0x211581;}:function(_0x1a99ba){const _0x96793a=_0x8e961b;return _0x1a99ba&&typeof Symbol=='function'&&_0x1a99ba[_0x96793a(0x1e8)]===Symbol&&_0x1a99ba!==Symbol[_0x96793a(0x39f)]?'symbol':typeof _0x1a99ba;},_0x53ca1f(_0x443e56);}function _0x314c9f(_0x4f11ac,_0x4800ec){const _0x17f180=_0x27b931;if(_0x53ca1f(_0x4f11ac)!=_0x17f180(0x2e9)||!_0x4f11ac)return _0x4f11ac;var _0x5f4e1f=_0x4f11ac[Symbol[_0x17f180(0x236)]];if(_0x5f4e1f!==void 0x0){var _0x14dabf=_0x5f4e1f[_0x17f180(0x25a)](_0x4f11ac,_0x4800ec||'default');if(_0x53ca1f(_0x14dabf)!=_0x17f180(0x2e9))return _0x14dabf;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4800ec===_0x17f180(0x267)?String:Number)(_0x4f11ac);}function _0x1bd536(_0x8a9a56){const _0x758d9d=_0x27b931;var _0x4aeeb9=_0x314c9f(_0x8a9a56,_0x758d9d(0x267));return _0x53ca1f(_0x4aeeb9)=='symbol'?_0x4aeeb9:_0x4aeeb9+'';}function _0x2dd74e(_0x32913c,_0x3b4252,_0x136e74){return(_0x3b4252=_0x1bd536(_0x3b4252))in _0x32913c?Object['defineProperty'](_0x32913c,_0x3b4252,{'value':_0x136e74,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x32913c[_0x3b4252]=_0x136e74,_0x32913c;}let _0x204edc=function(_0x4db85f){const _0xfe7ed6=_0x27b931;return _0x4db85f[_0xfe7ed6(0x113)]='OTHER_CLIENT_EDITING',_0x4db85f[_0xfe7ed6(0x246)]=_0xfe7ed6(0x246),_0x4db85f[_0xfe7ed6(0x340)]='CONFLICT',_0x4db85f[_0xfe7ed6(0x352)]=_0xfe7ed6(0x352),_0x4db85f[_0xfe7ed6(0x33d)]=_0xfe7ed6(0x33d),_0x4db85f[_0xfe7ed6(0x35c)]='SOCKET_FAILED_RETRY',_0x4db85f['SOCKET_FAILED']=_0xfe7ed6(0x245),_0x4db85f['SUBMIT_CHANGESET_TIMEOUT']=_0xfe7ed6(0x1f5),_0x4db85f;}({});var _0x2a71d9=class{constructor(){const _0x5864ce=_0x27b931;_0x2dd74e(this,_0x5864ce(0x355),new _0x470009['Subject']()),_0x2dd74e(this,_0x5864ce(0x2ef),this[_0x5864ce(0x355)]['asObservable']());}[_0x27b931(0x1f8)](_0x10a53e){const _0x3d4175=_0x27b931;this[_0x3d4175(0x355)][_0x3d4175(0x396)](_0x10a53e);}},_0x101a15=class{constructor(){const _0x19f1ca=_0x27b931;_0x2dd74e(this,_0x19f1ca(0x208),new _0x470009[(_0x19f1ca(0x256))]()),_0x2dd74e(this,'commentUpdate$',this[_0x19f1ca(0x208)]['asObservable']());}[_0x27b931(0x3c9)](_0x4e0a95){const _0x6d326e=_0x27b931;this['_commentUpdate$'][_0x6d326e(0x396)](_0x4e0a95);}};function _0x2af294(_0x49a262,_0x4b23ed){return function(_0x5b6c9b,_0x101c5c){_0x4b23ed(_0x5b6c9b,_0x101c5c,_0x49a262);};}function _0x1fb4c2(_0x42787d,_0x6cb102,_0xf51705,_0x4ba2d0){const _0x103adc=_0x27b931;var _0x1575bb=arguments[_0x103adc(0x415)],_0x472b88=_0x1575bb<0x3?_0x6cb102:_0x4ba2d0===null?_0x4ba2d0=Object['getOwnPropertyDescriptor'](_0x6cb102,_0xf51705):_0x4ba2d0,_0x12e7e1;if(typeof Reflect==_0x103adc(0x2e9)&&typeof Reflect[_0x103adc(0x221)]==_0x103adc(0x3fd))_0x472b88=Reflect[_0x103adc(0x221)](_0x42787d,_0x6cb102,_0xf51705,_0x4ba2d0);else{for(var _0x51cefb=_0x42787d['length']-0x1;_0x51cefb>=0x0;_0x51cefb--)(_0x12e7e1=_0x42787d[_0x51cefb])&&(_0x472b88=(_0x1575bb<0x3?_0x12e7e1(_0x472b88):_0x1575bb>0x3?_0x12e7e1(_0x6cb102,_0xf51705,_0x472b88):_0x12e7e1(_0x6cb102,_0xf51705))||_0x472b88);}return _0x1575bb>0x3&&_0x472b88&&Object['defineProperty'](_0x6cb102,_0xf51705,_0x472b88),_0x472b88;}let _0x541d7d=class extends _0x47f753[_0x27b931(0x25e)]{constructor(_0x53b271,_0x56cf77){const _0x30c3c7=_0x27b931;super(),this[_0x30c3c7(0x37d)]=_0x53b271,this[_0x30c3c7(0x286)]=_0x56cf77,_0x2dd74e(this,_0x30c3c7(0x393),new Map()),_0x2dd74e(this,_0x30c3c7(0x38b),new _0x470009['Subject']()),this['disposeWithMe']((0x0,_0x470009['merge'])(this[_0x30c3c7(0x37d)]['getTypeOfUnitDisposed$'](_0x47f753[_0x30c3c7(0x3fc)][_0x30c3c7(0x239)])[_0x30c3c7(0x11f)]((0x0,_0x5ba228['map'])(_0x351e64=>_0x351e64['getUnitId']())),this[_0x30c3c7(0x37d)][_0x30c3c7(0x28a)](_0x47f753[_0x30c3c7(0x3fc)]['UNIVER_DOC'])[_0x30c3c7(0x11f)]((0x0,_0x5ba228[_0x30c3c7(0x394)])(_0x5bbb79=>_0x5bbb79[_0x30c3c7(0x3f1)]())),this[_0x30c3c7(0x37d)][_0x30c3c7(0x28a)](_0x47f753[_0x30c3c7(0x3fc)][_0x30c3c7(0x41d)])[_0x30c3c7(0x11f)]((0x0,_0x5ba228[_0x30c3c7(0x394)])(_0x5b392f=>_0x5b392f[_0x30c3c7(0x3f1)]())),this['_univerInstanceService'][_0x30c3c7(0x28a)](_0x47f753['UniverInstanceType']['UNIVER_BASE'])[_0x30c3c7(0x11f)]((0x0,_0x5ba228[_0x30c3c7(0x394)])(_0x1282e9=>_0x1282e9['getUnitId']())))[_0x30c3c7(0x38e)](_0x374181=>this[_0x30c3c7(0x1ba)](_0x374181)));}[_0x27b931(0x203)](_0xf6f7bf){const _0x17ab8a=_0x27b931;return this['_roomMembers'][_0x17ab8a(0xff)](_0xf6f7bf)?(0x0,_0x470009['of'])(this[_0x17ab8a(0x393)][_0x17ab8a(0x1ad)](_0xf6f7bf)):this[_0x17ab8a(0x38b)][_0x17ab8a(0x11f)]((0x0,_0x5ba228[_0x17ab8a(0x394)])(_0x318f66=>{const _0x59283b=_0x17ab8a;if(_0x318f66===_0xf6f7bf)return this['_roomMembers'][_0x59283b(0x1ad)](_0x318f66);}));}['setCurrentUser'](_0x4093ae){const _0x432a5c=_0x27b931;this[_0x432a5c(0x286)][_0x432a5c(0x12c)](_0x4093ae);}[_0x27b931(0x21f)](){const _0x4b548c=_0x27b931;return this[_0x4b548c(0x286)][_0x4b548c(0x21f)]();}[_0x27b931(0x2d5)](_0x401a8f,_0x245a29){const _0x4e866d=_0x27b931;let _0x175bf9=this[_0x4e866d(0x393)][_0x4e866d(0x1ad)](_0x401a8f);_0x175bf9||(_0x175bf9=new _0xf7c34(),this['_roomMembers'][_0x4e866d(0xf6)](_0x401a8f,_0x175bf9),this[_0x4e866d(0x38b)]['next'](_0x401a8f)),_0x175bf9[_0x4e866d(0x2d5)](_0x245a29);}[_0x27b931(0x378)](_0x1b4d97,_0xe78b19){const _0x2f8171=_0x27b931;let _0x3f4d5c=this['_roomMembers'][_0x2f8171(0x1ad)](_0x1b4d97);_0x3f4d5c&&_0x3f4d5c[_0x2f8171(0x378)](_0xe78b19);}[_0x27b931(0x423)](_0x5b115a){const _0x56445e=_0x27b931;return this[_0x56445e(0x393)][_0x56445e(0x1ad)](_0x5b115a);}[_0x27b931(0x3f4)](_0x31ad3f,_0x22813a){const _0x443e51=_0x27b931;let _0xd00e42=this[_0x443e51(0x393)][_0x443e51(0x1ad)](_0x31ad3f);if(_0xd00e42)return _0xd00e42[_0x443e51(0x3f4)](_0x22813a);}[_0x27b931(0x1ba)](_0x333f4d){const _0x576a83=_0x27b931;let _0x61281f=this['_roomMembers'][_0x576a83(0x1ad)](_0x333f4d);_0x61281f&&(_0x61281f[_0x576a83(0x2bc)](),this['_roomMembers'][_0x576a83(0x274)](_0x333f4d));}[_0x27b931(0x2bc)](){const _0xec40a7=_0x27b931;this[_0xec40a7(0x393)][_0xec40a7(0x302)](_0x17efbf=>_0x17efbf['dispose']()),this[_0xec40a7(0x393)][_0xec40a7(0x249)](),this[_0xec40a7(0x38b)]['complete']();}};_0x541d7d=_0x1fb4c2([_0x2af294(0x0,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['UserManagerService']))],_0x541d7d);var _0xf7c34=class extends _0x47f753[_0x27b931(0x25e)]{constructor(..._0x154fd2){const _0x47e862=_0x27b931;super(..._0x154fd2),_0x2dd74e(this,_0x47e862(0x1f2),new Map()),_0x2dd74e(this,_0x47e862(0x363),new _0x470009[(_0x47e862(0x25b))](this[_0x47e862(0x1f2)])),_0x2dd74e(this,_0x47e862(0x3c2),this[_0x47e862(0x363)]['asObservable']());}[_0x27b931(0x2bc)](){const _0x25b912=_0x27b931;this[_0x25b912(0x1f2)][_0x25b912(0x249)](),this[_0x25b912(0x363)][_0x25b912(0x32e)]();}[_0x27b931(0x2d5)](_0x132fdf){const _0x1f2acf=_0x27b931;this[_0x1f2acf(0x1f2)][_0x1f2acf(0xf6)](_0x132fdf[_0x1f2acf(0x1aa)],_0x132fdf),this[_0x1f2acf(0x301)]();}[_0x27b931(0x378)](_0x59f612){const _0xe48603=_0x27b931;this[_0xe48603(0x1f2)][_0xe48603(0x274)](_0x59f612),this[_0xe48603(0x301)]();}[_0x27b931(0x3f4)](_0x323819){const _0x2c25f9=_0x27b931;return this[_0x2c25f9(0x1f2)][_0x2c25f9(0x1ad)](_0x323819);}['getAllMembers'](){const _0x5d717a=_0x27b931;return Array[_0x5d717a(0x21c)](this['_members'][_0x5d717a(0x32f)]());}[_0x27b931(0x301)](){const _0xd9b36c=_0x27b931;this[_0xd9b36c(0x363)][_0xd9b36c(0x396)](this['_members']);}};function _0x389eba(_0xdad32b,_0x596517){const _0xc37ae6=_0x27b931;if(_0x274f91(_0xdad32b))return _0x596517;if(_0x596517[_0xc37ae6(0x1a4)]===_0x149d12[_0xc37ae6(0x3eb)][_0xc37ae6(0x15e)]){var _0x183ea5;let _0x3b43fa=_0x47ce7e(_0xdad32b),_0x49eb4e=_0x596517;return{..._0x49eb4e,'data':{..._0x49eb4e[_0xc37ae6(0x401)],'unitID':_0xdad32b['target'][_0xc37ae6(0x320)],'unitType':(_0x183ea5=_0xdad32b[_0xc37ae6(0x216)][_0xc37ae6(0x36a)])==null?_0x49eb4e[_0xc37ae6(0x401)][_0xc37ae6(0x36a)]:_0x183ea5,'changeset':_0x3b43fa[_0xc37ae6(0x300)](_0x49eb4e[_0xc37ae6(0x401)]['changeset'],_0x5a1101(_0xdad32b))}};}if(_0x596517['eventID']===_0x149d12[_0xc37ae6(0x3eb)][_0xc37ae6(0x296)]){var _0xce705a;let _0x3537d7=_0x596517;return{..._0x3537d7,'data':{..._0x3537d7[_0xc37ae6(0x401)],'unitID':_0xdad32b[_0xc37ae6(0x216)]['unitId'],'unitType':(_0xce705a=_0xdad32b[_0xc37ae6(0x216)][_0xc37ae6(0x36a)])==null?_0x3537d7[_0xc37ae6(0x401)]['unitType']:_0xce705a}};}return _0x596517;}function _0x34b807(_0x336ab3,_0xbd97c4){const _0x473144=_0x27b931;if(_0x274f91(_0x336ab3))return[_0xbd97c4];switch(_0xbd97c4[_0x473144(0x1a4)]){case _0x149d12['CollaborationEvent'][_0x473144(0x391)]:return[_0x144706(_0x336ab3,_0xbd97c4)];case _0x149d12['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:return[_0x4a7ff6(_0x336ab3,_0xbd97c4)];case _0x149d12[_0x473144(0x3eb)][_0x473144(0x123)]:return[_0x247c91(_0x336ab3,_0xbd97c4)];default:return[_0xbd97c4];}}function _0x274f91(_0x2ea2db){const _0x3e81d7=_0x27b931;return _0x2ea2db['target'][_0x3e81d7(0x2e4)]==null&&_0x2ea2db['target'][_0x3e81d7(0x320)]===_0x2ea2db[_0x3e81d7(0x2c2)]&&!_0x2ea2db['changeset'];}function _0x144706(_0x85d2d7,_0x43158f){const _0x35def0=_0x27b931;return{..._0x43158f,'data':(0x0,_0x149d12[_0x35def0(0x253)])(_0x59d321(_0x85d2d7,(0x0,_0x149d12[_0x35def0(0x3b3)])(_0x43158f['data'])))};}function _0x247c91(_0x273d85,_0x6ef248){const _0xc9ce1f=_0x27b931;return{..._0x6ef248,'data':_0x59d321(_0x273d85,_0x6ef248[_0xc9ce1f(0x401)])};}function _0x4a7ff6(_0xe609fe,_0x207fac){const _0x2bb6cf=_0x27b931;let _0x49a3c1=_0x207fac[_0x2bb6cf(0x401)];return{..._0x207fac,'data':{..._0x49a3c1,'changesets':_0x49a3c1[_0x2bb6cf(0x3a9)][_0x2bb6cf(0x394)](_0x30ae58=>(0x0,_0x149d12[_0x2bb6cf(0x253)])(_0x59d321(_0xe609fe,(0x0,_0x149d12['parseProtocolChangeset'])(_0x30ae58))))}};}function _0x59d321(_0x54f60d,_0x3864fe){const _0x1664a9=_0x27b931;return _0x47ce7e(_0x54f60d)[_0x1664a9(0x379)](_0x3864fe,_0x5a1101(_0x54f60d));}function _0x47ce7e(_0x5d5047){const _0x451672=_0x27b931;if(!_0x5d5047[_0x451672(0x142)])throw Error(_0x451672(0x298));return _0x5d5047[_0x451672(0x142)];}function _0x5a1101(_0x438b10){const _0x3ba676=_0x27b931;return{'localUnitId':_0x438b10['localUnitId'],'unitType':_0x438b10[_0x3ba676(0x36a)],'target':_0x438b10[_0x3ba676(0x216)]};}let _0x1e08f9=function(_0x4db365){const _0x137091=_0x27b931;return _0x4db365[_0x4db365[_0x137091(0x1c2)]=0x0]='IDLE',_0x4db365[_0x4db365[_0x137091(0x1de)]=0x1]=_0x137091(0x1de),_0x4db365[_0x4db365[_0x137091(0x383)]=0x2]=_0x137091(0x383),_0x4db365[_0x4db365[_0x137091(0x1da)]=0x3]=_0x137091(0x1da),_0x4db365;}({}),_0x49999b={[_0x26a654[_0x27b931(0x3d9)][_0x27b931(0x223)]]:_0x27b931(0x20f),[_0x26a654[_0x27b931(0x3d9)][_0x27b931(0x2c6)]]:_0x27b931(0x146),[_0x26a654[_0x27b931(0x3d9)]['JOIN_ROOM_NOT_EXISTS']]:_0x27b931(0x29c),[_0x26a654[_0x27b931(0x3d9)][_0x27b931(0x3b6)]]:_0x27b931(0x336),[_0x26a654[_0x27b931(0x3d9)][_0x27b931(0x358)]]:_0x27b931(0x17e)},_0x4ea072=class extends _0x47f753[_0x27b931(0xf4)]{get[_0x27b931(0x2a5)](){const _0x97ef0a=_0x27b931;return this[_0x97ef0a(0x224)][_0x97ef0a(0x321)]();}constructor(_0x401c9a,_0x374591,_0x301394,_0xbcef47,_0x574d7c,_0x38e0d6,_0x3304fe,_0xcd259){const _0x388ac8=_0x27b931;super(),this[_0x388ac8(0x1bd)]=_0x401c9a,this[_0x388ac8(0x1a1)]=_0x301394,this[_0x388ac8(0x228)]=_0xbcef47,this[_0x388ac8(0x342)]=_0x574d7c,this['_commentService']=_0x38e0d6,this[_0x388ac8(0x11a)]=_0x3304fe,this['_telemetryService']=_0xcd259,_0x2dd74e(this,_0x388ac8(0x224),new _0x470009[(_0x388ac8(0x25b))](0x0)),_0x2dd74e(this,_0x388ac8(0x2f1),this[_0x388ac8(0x224)][_0x388ac8(0x2b2)]()),_0x2dd74e(this,_0x388ac8(0x355),new _0x470009[(_0x388ac8(0x256))]()),_0x2dd74e(this,_0x388ac8(0x2ef),this[_0x388ac8(0x355)][_0x388ac8(0x2b2)]()),_0x2dd74e(this,_0x388ac8(0x329),void 0x0),_0x2dd74e(this,_0x388ac8(0x167),void 0x0),_0x2dd74e(this,_0x388ac8(0xf1),void 0x0),_0x2dd74e(this,_0x388ac8(0xce),!0x1),_0x2dd74e(this,_0x388ac8(0x156),null),this[_0x388ac8(0xce)]=!!this['_telemetryService'],_0x374591[_0x388ac8(0x11f)]((0x0,_0x470009['takeUntil'])(this['dispose$']))[_0x388ac8(0x38e)](_0x39d082=>{const _0xf8e897=_0x388ac8;if(_0x39d082!==void 0x0){if(this[_0xf8e897(0x329)]=_0x39d082,_0x39d082)this[_0xf8e897(0x196)](_0x39d082),this[_0xf8e897(0x167)]=_0x39d082['message$'][_0xf8e897(0x38e)](_0x542626=>{const _0x294c60=_0xf8e897;_0x542626[_0x294c60(0x31b)]===this[_0x294c60(0x1bd)]['target'][_0x294c60(0x320)]&&this[_0x294c60(0x343)](_0x542626);});else{var _0xa3e06a;this[_0xf8e897(0x1b6)](),this[_0xf8e897(0x224)][_0xf8e897(0x396)](0x2),(_0xa3e06a=this[_0xf8e897(0x167)])==null||_0xa3e06a[_0xf8e897(0x138)](),this['_socketMessageSubscription']=null;}}});}[_0x27b931(0x263)](){const _0x4466ff=_0x27b931;var _0x138fb8,_0x2d503e;return(_0x138fb8=(_0x2d503e=this[_0x4466ff(0x329)])==null?void 0x0:_0x2d503e['memberID'])==null?null:_0x138fb8;}[_0x27b931(0x2bc)](){const _0x2d507f=_0x27b931;super[_0x2d507f(0x2bc)](),this[_0x2d507f(0x15b)](),this[_0x2d507f(0x18b)][_0x2d507f(0x396)](),this[_0x2d507f(0x18b)]['complete']();}[_0x27b931(0x15b)](){const _0x4a17cc=_0x27b931;var _0x1d7a02;this[_0x4a17cc(0x1b6)](),(_0x1d7a02=this[_0x4a17cc(0x329)])==null||_0x1d7a02['send']({'cmd':_0x26a654[_0x4a17cc(0x185)]['LEAVE'],'data':{'roomID':this[_0x4a17cc(0x1bd)]['target']['unitId']}}),this[_0x4a17cc(0x355)][_0x4a17cc(0x32e)](),this[_0x4a17cc(0x224)][_0x4a17cc(0x32e)]();}[_0x27b931(0x343)](_0x3a7996){const _0x1209a1=_0x27b931;_0x3a7996['cmd']===_0x26a654[_0x1209a1(0x185)][_0x1209a1(0x1e9)]?this['_onJoinRoomEvent'](_0x3a7996):_0x3a7996['cmd']===_0x26a654[_0x1209a1(0x185)][_0x1209a1(0x34a)]&&this['_onRecvEvent'](_0x3a7996);}[_0x27b931(0x196)](_0x446b22){const _0x540b70=_0x27b931;this[_0x540b70(0x224)][_0x540b70(0x396)](0x1),_0x446b22[_0x540b70(0x16b)]({'cmd':_0x26a654[_0x540b70(0x185)][_0x540b70(0x1e9)],'routeKey':this['_identity'][_0x540b70(0x216)][_0x540b70(0x320)],'routeType':'','data':{'rooms':[{'roomID':this[_0x540b70(0x1bd)]['target'][_0x540b70(0x320)]}]}});}[_0x27b931(0x2cd)](_0x2a69e3){const _0x329e67=_0x27b931;var _0x7629f8;if(_0x2a69e3[_0x329e67(0x1fc)]in _0x49999b){this['_collaborationUIEventService']['emitEvent']({'id':_0x329e67(0x33d),'data':_0x49999b[_0x2a69e3[_0x329e67(0x1fc)]]}),this[_0x329e67(0x224)][_0x329e67(0x396)](0x2);return;}this[_0x329e67(0x224)]['next'](0x3);let _0x5ede63=(_0x7629f8=_0x2a69e3[_0x329e67(0x401)][_0x329e67(0x1e3)][this[_0x329e67(0x1bd)]['target'][_0x329e67(0x320)]])==null?void 0x0:_0x7629f8[_0x329e67(0x406)];_0x5ede63&&_0x5ede63[_0x329e67(0x302)](_0xead38f=>this[_0x329e67(0x342)][_0x329e67(0x2d5)](this[_0x329e67(0x1bd)][_0x329e67(0x2c2)],_0xead38f));}[_0x27b931(0x30e)](_0x5dbc2a){const _0x282876=_0x27b931;try{let _0x1eaad6=_0x34b807(this[_0x282876(0x1bd)],_0x5dbc2a['data']);for(let _0x39f2d9 of _0x1eaad6)switch(_0x39f2d9[_0x282876(0x1a4)]){case _0x149d12[_0x282876(0x3eb)][_0x282876(0x260)]:this['_onUserJoin'](_0x39f2d9),this[_0x282876(0x355)]['next'](_0x39f2d9);break;case _0x149d12[_0x282876(0x3eb)][_0x282876(0x337)]:this[_0x282876(0x13c)](_0x39f2d9),this[_0x282876(0x355)]['next'](_0x39f2d9);break;case _0x149d12[_0x282876(0x3eb)][_0x282876(0x369)]:case _0x149d12[_0x282876(0x3eb)]['CHANGESET_SHOULD_RETRY']:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x282876(0x27b)](),this[_0x282876(0x355)][_0x282876(0x396)](_0x39f2d9);break;case _0x149d12['CollaborationEvent'][_0x282876(0x3c6)]:this[_0x282876(0x1a1)][_0x282876(0x294)](_0x282876(0x3e8)+JSON[_0x282876(0x3e5)](_0x39f2d9)),this['_event$'][_0x282876(0x396)](_0x39f2d9);break;case _0x149d12['CollaborationEvent'][_0x282876(0x33a)]:this[_0x282876(0x1c0)][_0x282876(0x3c9)](_0x39f2d9[_0x282876(0x401)]),this['_event$']['next'](_0x39f2d9);break;default:this[_0x282876(0x355)][_0x282876(0x396)](_0x39f2d9);}}catch(_0x471105){this[_0x282876(0x1a1)][_0x282876(0x294)](_0x471105,_0x5dbc2a);}}['_onUserJoin'](_0x3d3c00){const _0x1ea8da=_0x27b931;this[_0x1ea8da(0x342)][_0x1ea8da(0x2d5)](this[_0x1ea8da(0x1bd)][_0x1ea8da(0x2c2)],_0x3d3c00['data']);}[_0x27b931(0x13c)](_0x436d5a){const _0x5cd189=_0x27b931;this[_0x5cd189(0x342)][_0x5cd189(0x378)](this['_identity'][_0x5cd189(0x2c2)],_0x436d5a['data'][_0x5cd189(0x1aa)]);}async[_0x27b931(0x16b)](_0x1716d5,_0x740026){const _0x40f57e=_0x27b931;if(this[_0x40f57e(0x2a5)]!==0x3||!this['_socket'])throw Error(_0x40f57e(0x252));try{let _0x3fc24d=_0x389eba(this['_identity'],_0x1716d5);_0x3fc24d[_0x40f57e(0x1a4)]===_0x149d12[_0x40f57e(0x3eb)]['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x40f57e(0xf0)](_0x3fc24d)),this[_0x40f57e(0x329)][_0x40f57e(0x16b)]({'cmd':_0x26a654['CombCmd'][_0x40f57e(0x264)],'routeKey':this[_0x40f57e(0x1bd)][_0x40f57e(0x216)][_0x40f57e(0x320)],'routeType':'','data':_0x3fc24d});}catch(_0xcf6991){this[_0x40f57e(0x1a1)][_0x40f57e(0x294)](_0xcf6991);}}['_scheduleCollaborationTimeoutTimer'](){const _0x5a2c15=_0x27b931;var _0x485392;this[_0x5a2c15(0xf1)]=setTimeout(()=>{const _0x13d696=_0x5a2c15;this[_0x13d696(0xf1)]=null,this[_0x13d696(0x11a)]['emitEvent']({'id':'SUBMIT_CHANGESET_TIMEOUT'});},(_0x485392=this['_configService']['getConfig'](_0x5a2c15(0xe4)))==null?_0x1dfc3f:_0x485392);}[_0x27b931(0x27b)](){const _0x196b10=_0x27b931;this[_0x196b10(0xf1)]&&(clearTimeout(this[_0x196b10(0xf1)]),this[_0x196b10(0xf1)]=null);}[_0x27b931(0xf0)](_0x557994){const _0x30324b=_0x27b931;if(!this['_shouldReportTelemetry'])return;let {data:_0x370353}=_0x557994,{unitID:_0x5246c3,changeset:_0x1735bb}=_0x370353,{mutations:_0x4ecaf9,type:_0x13e145}=_0x1735bb;this['_telemetryInfo']={'unitId':_0x5246c3,'type':_0x13e145,'startTime':performance[_0x30324b(0x284)](),'stopTime':0x0,'duration':0x0,'size':_0x378d76(_0x4ecaf9)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x30c0ef=_0x27b931;if(this[_0x30c0ef(0xce)]){if(!this[_0x30c0ef(0x156)]){this[_0x30c0ef(0x1a1)][_0x30c0ef(0x294)](_0x30c0ef(0x3ae),_0x30c0ef(0x14c));return;}this[_0x30c0ef(0x156)]['stopTime']=performance['now'](),this[_0x30c0ef(0x156)]['duration']=this[_0x30c0ef(0x156)][_0x30c0ef(0x2aa)]-this[_0x30c0ef(0x156)][_0x30c0ef(0x388)],this[_0x30c0ef(0x279)]['capture'](_0x30c0ef(0x1b7),this[_0x30c0ef(0x156)]),this[_0x30c0ef(0x156)]=null;}}[_0x27b931(0x1b6)](){const _0x3586a8=_0x27b931;this[_0x3586a8(0x156)]=null;}};_0x4ea072=_0x1fb4c2([_0x2af294(0x2,_0x47f753[_0x27b931(0x370)]),_0x2af294(0x3,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x4,(0x0,_0x47f753['Inject'])(_0x541d7d)),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x101a15)),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x233)])(_0x32d36d['ITelemetryService']))],_0x4ea072);let _0x419224=(0x0,_0x47f753[_0x27b931(0xfd)])(_0x27b931(0x3c8));function _0xe42769(_0x3209bf){return'unit-cache-'+_0x3209bf;}function _0xec7bcb(_0x4ac1da){const _0xf65499=_0x27b931;let {unitID:_0x195a4a,mutations:_0x366d2a}=_0x4ac1da;return{'unitId':_0x195a4a,'subUnitId':_0x366d2a[_0xf65499(0x415)]>0x0?_0x366d2a[0x0][_0xf65499(0xfc)][_0xf65499(0x109)]:null};}let _0x2e077e=class{constructor(_0x27e62a,_0x24817f,_0x2d27c6){const _0x32a71c=_0x27b931;this[_0x32a71c(0x2fe)]=_0x27e62a,this[_0x32a71c(0x14e)]=_0x24817f,this[_0x32a71c(0x297)]=_0x2d27c6;}[_0x27b931(0x299)](_0x4b9dd7){const _0x535aaf=_0x27b931;var _0xdadce7,_0x939a9f;let _0x5d4114=this[_0x535aaf(0x2fe)][_0x535aaf(0x1ad)](_0x1e2709[_0x535aaf(0x165)]),{unitId:_0x395e32,subUnitId:_0x3f76c9}=_0xec7bcb(_0x4b9dd7),_0x565885=_0x5d4114==null?void 0x0:_0x5d4114[_0x535aaf(0x2b9)](_0x395e32)[_0x535aaf(0xcd)](),_0x4a62f2=(_0xdadce7=this['_instanceService'][_0x535aaf(0x326)](_0x395e32))==null||(_0xdadce7=_0xdadce7[_0x535aaf(0x3bf)]())==null?void 0x0:_0xdadce7[_0x535aaf(0x18c)]();if(_0x565885[_0x535aaf(0x415)]===0x0||!_0x395e32||!_0x3f76c9)return;let _0x289c74=[{'id':_0x1e2709[_0x535aaf(0x193)]['id'],'params':{'unitId':_0x395e32,'subUnitId':_0x4a62f2,'selections':_0x47f753['Tools'][_0x535aaf(0xd7)](_0x565885)}}],_0x116b3b=this['_transformService'][_0x535aaf(0x17a)](_0x4b9dd7,_0x289c74);if(!(0x0,_0x149d12[_0x535aaf(0x421)])(_0x116b3b))throw _0x116b3b[_0x535aaf(0x294)];let _0x423418=(_0x939a9f=_0x116b3b[_0x535aaf(0x3b0)][0x0])==null||(_0x939a9f=_0x939a9f[_0x535aaf(0xfc)])==null?void 0x0:_0x939a9f[_0x535aaf(0x163)];if(Array[_0x535aaf(0x22d)](_0x423418)&&_0x423418[_0x535aaf(0x415)]){if(_0x423418[_0x535aaf(0x415)]===_0x289c74[0x0][_0x535aaf(0xfc)]['selections'][_0x535aaf(0x415)]&&_0x423418[_0x535aaf(0x154)]((_0x1b496d,_0x4e0a82)=>_0x47f753[_0x535aaf(0x179)]['equals'](_0x1b496d[_0x535aaf(0x338)],_0x289c74[0x0][_0x535aaf(0xfc)][_0x535aaf(0x163)][_0x4e0a82]['range'])))return;this['_injector'][_0x535aaf(0x1ad)](_0x47f753[_0x535aaf(0x25c)])['executeCommand'](_0x1e2709['SetSelectionsOperation']['id'],{'unitId':_0x395e32,'subUnitId':_0x4a62f2,'selections':_0x423418});}}};_0x2e077e=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x1,_0x149d12['ITransformService']),_0x2af294(0x2,_0x47f753['IUniverInstanceService'])],_0x2e077e);let _0x435069=(0x0,_0x47f753['createIdentifier'])(_0x27b931(0x14b)),_0x709438=function(_0x2fec58){const _0x2c0578=_0x27b931;return _0x2fec58[_0x2fec58[_0x2c0578(0x416)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x2fec58[_0x2fec58[_0x2c0578(0x261)]=0x1]='OTHER_CLIENTS_EDITING',_0x2fec58;}({});function _0xd39fe(_0x6c1112){const _0x36dea6=_0x27b931;var _0x5ad218;return!!((_0x5ad218=_0x6c1112['params'])!=null&&_0x5ad218[_0x36dea6(0x39a)]);}let _0xb89c6b=new Set([_0x1e2709['InsertSheetMutation']['id']]),_0x23d1ab=new Set([_0x40163b['AddSlidePageMutation']['id'],_0x40163b[_0x27b931(0x3f7)]['id'],_0x40163b[_0x27b931(0x2f7)]['id'],_0x40163b[_0x27b931(0x259)]['id']]);function _0x46bcf2(_0x17a8d6,_0x917eac=_0xb89c6b){const _0x2ebda0=_0x27b931;let _0x2500ef=[];for(let _0x2f3ef0 of _0x17a8d6){if(_0x917eac[_0x2ebda0(0xff)](_0x2f3ef0['id'])){if(_0x2500ef[_0x2ebda0(0x415)]>0x0)break;_0x2500ef['push'](_0x2f3ef0);break;}if(_0xd39fe(_0x2f3ef0)){if(_0x2500ef[_0x2ebda0(0x415)]>0x0)break;_0x2500ef['push'](_0x2f3ef0);break;}_0x2500ef[_0x2ebda0(0x30b)](_0x2f3ef0);}return _0x2500ef;}function _0x56f864(_0x146cc8,_0x1423b5,_0x2cbb2e,_0xad4e4b,_0x1109d6){const _0x5c3349=_0x27b931;var _0x3590ed,_0x54772a,_0x135651,_0x4b8e0d;let _0x528e0a=_0x46bcf2(_0x146cc8),_0x2f0a3f=(_0x3590ed=(_0x54772a=_0x1109d6[_0x5c3349(0x21f)]())==null?void 0x0:_0x54772a[_0x5c3349(0x13a)])==null?_0x5c3349(0x316):_0x3590ed,_0x33e71a=(_0x135651=(_0x4b8e0d=_0x1109d6[_0x5c3349(0x21f)]())==null?void 0x0:_0x4b8e0d[_0x5c3349(0x1aa)])==null?'unknown':_0x135651;return{'changeset':{'unitID':_0x1423b5,'type':(0x0,_0x149d12[_0x5c3349(0x22c)])(_0x2cbb2e['getUnitType'](_0x1423b5)),'baseRev':_0xad4e4b['getCurrentRevOfUnit'](_0x1423b5),'revision':0x0,'userID':_0x2f0a3f,'memberID':_0x33e71a,'mutations':_0x528e0a},'pendingMutations':_0x146cc8['slice'](_0x528e0a[_0x5c3349(0x415)])};}function _0x4c958f(_0x18b1c5,_0xa7cb33,_0x211a4f,_0x467a25,_0x5f5af6){const _0x274ebe=_0x27b931;var _0x162acd,_0x29004c,_0x17f22e,_0x41abdd;let _0x13f1aa=_0x46bcf2(_0x18b1c5,_0x23d1ab),_0x4e1c9f=(_0x162acd=(_0x29004c=_0x5f5af6[_0x274ebe(0x21f)]())==null?void 0x0:_0x29004c['userID'])==null?_0x274ebe(0x316):_0x162acd,_0x173fdc=(_0x17f22e=(_0x41abdd=_0x5f5af6[_0x274ebe(0x21f)]())==null?void 0x0:_0x41abdd['memberID'])==null?_0x274ebe(0x316):_0x17f22e;return{'changeset':{'unitID':_0xa7cb33,'type':(0x0,_0x149d12[_0x274ebe(0x22c)])(_0x211a4f['getUnitType'](_0xa7cb33)),'baseRev':_0x467a25[_0x274ebe(0x322)](_0xa7cb33),'revision':0x0,'userID':_0x4e1c9f,'memberID':_0x173fdc,'mutations':_0x13f1aa},'pendingMutations':_0x18b1c5[_0x274ebe(0x14f)](_0x13f1aa['length'])};}function _0x1f4433(_0xe01410,_0x301f91,_0x51344f,_0x569429,_0x3f5b8a){const _0xd86b22=_0x27b931;var _0x306596,_0xc87f4b,_0x162fef,_0x21708e;let _0x18894b=_0xe01410[_0xd86b22(0x1ca)]((_0x2a69eb,_0x4a1fbf)=>{const _0x1a45fc=_0xd86b22;let _0x3b1633=_0x2a69eb[_0x2a69eb[_0x1a45fc(0x415)]-0x1],{id:_0x42267c}=_0x3b1633==null?{}:_0x3b1633,{id:_0x39e99d,type:_0x18dc55}=_0x4a1fbf,_0xf853ba=_0x4a1fbf[_0x1a45fc(0xfc)];if(_0x42267c&&_0x42267c!==_0x39e99d)throw Error(_0x1a45fc(0x419)+_0x42267c+_0x1a45fc(0x328)+_0x39e99d+'.');if(!_0x3b1633)return[{'id':_0x39e99d,'type':_0x18dc55,'params':{'unitId':_0xf853ba[_0x1a45fc(0x320)],'textRanges':_0xf853ba['textRanges'],'actions':_0xf853ba[_0x1a45fc(0x1b8)]}}];let _0x5640e2=_0x3b1633[_0x1a45fc(0xfc)];return _0x431857(_0x5640e2,_0xf853ba)?[..._0x2a69eb[_0x1a45fc(0x14f)](0x0,-0x1),{..._0x3b1633,'id':_0x39e99d,'type':_0x18dc55,'params':{'unitId':_0xf853ba[_0x1a45fc(0x320)],'textRanges':_0xf853ba[_0x1a45fc(0x141)],'actions':_0x47f753[_0x1a45fc(0x231)][_0x1a45fc(0x14d)](_0x5640e2['actions'],_0xf853ba[_0x1a45fc(0x1b8)])}}]:[..._0x2a69eb,{'id':_0x39e99d,'type':_0x18dc55,'params':{'unitId':_0xf853ba['unitId'],'textRanges':_0xf853ba[_0x1a45fc(0x141)],'actions':_0xf853ba[_0x1a45fc(0x1b8)]}}];},[]),_0x26f2a8=(_0x306596=(_0xc87f4b=_0x3f5b8a['getCurrentUser']())==null?void 0x0:_0xc87f4b[_0xd86b22(0x13a)])==null?_0xd86b22(0x316):_0x306596,_0x29cddc=(_0x162fef=(_0x21708e=_0x3f5b8a[_0xd86b22(0x21f)]())==null?void 0x0:_0x21708e[_0xd86b22(0x1aa)])==null?_0xd86b22(0x316):_0x162fef;return{'changeset':{'unitID':_0x301f91,'type':(0x0,_0x149d12['mapDocumentTypeToUniverInstanceType'])(_0x51344f[_0xd86b22(0x41a)](_0x301f91)),'baseRev':_0x569429[_0xd86b22(0x322)](_0x301f91),'revision':0x0,'userID':_0x26f2a8,'memberID':_0x29cddc,'mutations':_0x18894b},'pendingMutations':_0xe01410['slice'](_0xe01410[_0xd86b22(0x415)])};}function _0x431857(_0x47ee0d,_0x4a16cc){const _0x3cebdc=_0x27b931;return!_0x3b13eb(_0x47ee0d)&&!_0x3b13eb(_0x4a16cc)&&_0x34cc88(_0x47ee0d[_0x3cebdc(0x1b8)],_0x4a16cc[_0x3cebdc(0x1b8)]);}function _0x3b13eb(_0x23dc22){const _0x4ae797=_0x27b931;return _0x23dc22[_0x4ae797(0x31a)]!==void 0x0;}function _0x34cc88(_0x486544,_0x29babb){return _0x14ae70(_0x486544)&&_0x14ae70(_0x29babb)&&!_0x2c2db9(_0x486544)&&!_0x2c2db9(_0x29babb)&&!_0x1e58ef(_0x486544)&&!_0x1e58ef(_0x29babb);}function _0x14ae70(_0x4ef133){const _0x2e19b5=_0x27b931;return _0x54bd72(_0x4ef133)['some'](_0x3b31da=>_0xbf6c98(_0x3b31da)&&_0x3b31da['et']===_0x2e19b5(0x1bf));}function _0x1e58ef(_0xf294c2){const _0x10e102=_0x27b931;return _0x54bd72(_0xf294c2)['some'](_0x380308=>Array[_0x10e102(0x22d)](_0x380308)||typeof _0x380308==_0x10e102(0x267)||typeof _0x380308==_0x10e102(0x116));}function _0x2c2db9(_0x4bf3ec){const _0x3cf840=_0x27b931;return _0x54bd72(_0x4bf3ec)[_0x3cf840(0x405)](_0x36fc77=>!_0xbf6c98(_0x36fc77)||_0x36fc77['et']!==_0x3cf840(0x1bf)||!Array[_0x3cf840(0x22d)](_0x36fc77['e'])?!0x1:_0x36fc77['e'][_0x3cf840(0x405)](_0x4f40c4=>!_0xbf6c98(_0x4f40c4)||!_0xbf6c98(_0x4f40c4[_0x3cf840(0x2d9)])?!0x1:Object[_0x3cf840(0x39f)][_0x3cf840(0xf5)]['call'](_0x4f40c4[_0x3cf840(0x2d9)],_0x3cf840(0x1c5))||Object[_0x3cf840(0x39f)]['hasOwnProperty'][_0x3cf840(0x25a)](_0x4f40c4['body'],_0x3cf840(0x125))||Object[_0x3cf840(0x39f)][_0x3cf840(0xf5)]['call'](_0x4f40c4['body'],'blockRanges')));}function _0x54bd72(_0x4080be){const _0xc909af=_0x27b931;if(!Array['isArray'](_0x4080be))return[];let _0x6a6ab3=_0x4080be[_0xc909af(0xf2)](_0xc909af(0x2d9))?_0x4080be:_0x4080be['find'](_0x4a2571=>Array[_0xc909af(0x22d)](_0x4a2571)&&_0x4a2571[_0xc909af(0xf2)](_0xc909af(0x2d9)));if(!Array[_0xc909af(0x22d)](_0x6a6ab3))return[];let _0x1cb57=_0x6a6ab3[_0xc909af(0x290)]('body');return _0x1cb57===-0x1?[]:_0x6a6ab3[_0xc909af(0x14f)](_0x1cb57+0x1);}function _0xbf6c98(_0x1976cc){return typeof _0x1976cc=='object'&&!!_0x1976cc&&!Array['isArray'](_0x1976cc);}function _0xa9ec8e(_0x20dd9a,_0x3b97db){const _0x3a569b=_0x27b931;let _0x300331=new _0x470009['ReplaySubject'](0x1);return setTimeout(()=>_0x300331[_0x3a569b(0x396)](_0x3b97db),_0x20dd9a),_0x300331[_0x3a569b(0x2b2)]()[_0x3a569b(0x11f)]((0x0,_0x470009[_0x3a569b(0x1c3)])(0x1));}var _0x3fe01c,_0x273481,_0xf27d34;let _0xdb2824=function(_0x2c6cd2){const _0x598750=_0x27b931;return _0x2c6cd2[_0x598750(0x2d2)]=_0x598750(0xe1),_0x2c6cd2[_0x598750(0x35d)]=_0x598750(0x2da),_0x2c6cd2[_0x598750(0x390)]=_0x598750(0x341),_0x2c6cd2['AWAITING']=_0x598750(0x10c),_0x2c6cd2[_0x598750(0x1e1)]='awaiting_with_pending',_0x2c6cd2['FETCH_MISS']=_0x598750(0x11d),_0x2c6cd2['CONFLICT']='conflict',_0x2c6cd2[_0x598750(0x383)]='offline',_0x2c6cd2;}({}),_0x3d7ed8=0x4e20,_0xb2329d=0x2bf20;var _0x245952=class{constructor(_0x57bcf8,_0x931ec2,_0x2b29e9,_0xb47052,_0x504c99,_0x3aaef6,_0x5145d6,_0x5e197d,_0x549dae){const _0x34789c=_0x27b931;this[_0x34789c(0x2ea)]=_0x57bcf8,this[_0x34789c(0x2af)]=_0x931ec2,this[_0x34789c(0x13b)]=_0x504c99,this[_0x34789c(0x38d)]=_0x3aaef6,this[_0x34789c(0x1c6)]=_0x5145d6,this[_0x34789c(0x105)]=_0x5e197d,this['_localCacheService']=_0x549dae,_0x2dd74e(this,_0x34789c(0x1f7),null),_0x2dd74e(this,'_pendingMutations',[]),this[_0x34789c(0x1f7)]=_0x2b29e9,this[_0x34789c(0x3da)]=_0xb47052;}[_0x27b931(0x16d)](_0x3186f0){const _0x31c648=_0x27b931;let _0x549bba=this[_0x31c648(0x105)]['getCurrentRevOfUnit'](this[_0x31c648(0x2ea)]);return _0x3186f0['revision']>_0x549bba+0x1?(this['_handler']['onMissingChangesets']({'from':_0x549bba,'to':_0x3186f0[_0x31c648(0xe7)]-0x1}),!0x0):!0x1;}[_0x27b931(0x2cb)](_0x1ff250){const _0x505782=_0x27b931;this[_0x505782(0x1c6)][_0x505782(0x135)](this[_0x505782(0x2ea)],_0x1ff250);}['_transformSelections'](_0x28e87a){const _0x50894a=_0x27b931;var _0x331d49,_0x49990b;(_0x331d49=(_0x49990b=this[_0x50894a(0x13b)])['onTransformSelections'])==null||_0x331d49['call'](_0x49990b,_0x28e87a);}[_0x27b931(0x202)](_0x53c6ff){const _0x5a4e5c=_0x27b931;var _0x40c765,_0x1ba128;return(_0x40c765=(_0x1ba128=this[_0x5a4e5c(0x13b)])[_0x5a4e5c(0x384)])==null?void 0x0:_0x40c765[_0x5a4e5c(0x25a)](_0x1ba128,_0x53c6ff);}[_0x27b931(0x20c)](_0x281e2a){const _0x31181f=_0x27b931;var _0x33beaa,_0x2ab297;return(_0x33beaa=(_0x2ab297=this[_0x31181f(0x13b)])['onTransformState'])==null?void 0x0:_0x33beaa['call'](_0x2ab297,_0x281e2a);}[_0x27b931(0x127)](_0x6b03b3){const _0x1b1e48=_0x27b931;var _0x387270,_0x1e3e7f,_0x389d1f;return(_0x387270=(_0x1e3e7f=(_0x389d1f=this[_0x1b1e48(0x13b)])[_0x1b1e48(0x291)])==null?void 0x0:_0x1e3e7f[_0x1b1e48(0x25a)](_0x389d1f,_0x6b03b3))==null?_0x6b03b3:_0x387270;}[_0x27b931(0xf8)](_0x2259e5){const _0x372a90=_0x27b931;var _0x2b2e95,_0x1f2afa,_0x39736f;return(_0x2b2e95=(_0x1f2afa=(_0x39736f=this['_handler'])[_0x372a90(0x2d3)])==null?void 0x0:_0x1f2afa['call'](_0x39736f,_0x2259e5))==null?_0x2259e5:_0x2b2e95;}[_0x27b931(0x40f)](_0x4862c6){const _0xfe8aff=_0x27b931;if(this[_0xfe8aff(0x2af)]===_0x47f753[_0xfe8aff(0x3fc)][_0xfe8aff(0x243)]){let {unitID:_0x2f3efc,mutations:_0x45e9a1,memberID:_0x23787b}=_0x4862c6,_0x261deb=_0x45e9a1['length']>0x0?_0x45e9a1[0x0][_0xfe8aff(0xfc)][_0xfe8aff(0x141)]:[];if(Array[_0xfe8aff(0x22d)](_0x261deb)&&_0x261deb['length']>0x0){var _0x344b8f,_0x330db2;(_0x344b8f=(_0x330db2=this[_0xfe8aff(0x13b)])[_0xfe8aff(0x10b)])==null||_0x344b8f[_0xfe8aff(0x25a)](_0x330db2,{'unitID':_0x2f3efc,'memberID':_0x23787b,'textRanges':_0x261deb});}}}[_0x27b931(0x292)](){const _0x31c0aa=_0x27b931;var _0x2771a8;(_0x2771a8=this[_0x31c0aa(0x189)])==null||_0x2771a8['updateOfflineData'](this[_0x31c0aa(0x2ea)],this[_0x31c0aa(0x2af)],this[_0x31c0aa(0x1f7)],this[_0x31c0aa(0x3da)]);}[_0x27b931(0x319)](){const _0x507949=_0x27b931;return this[_0x507949(0x105)]['getCurrentRevOfUnit'](this['unitID']);}['_incrementRevisionNumber'](){const _0x36f468=_0x27b931;this['_revisionService'][_0x36f468(0x3ca)](this[_0x36f468(0x2ea)]);}[_0x27b931(0x164)](_0x40f6ef){const _0x44d695=_0x27b931;let _0x422095=this[_0x44d695(0x127)](_0x40f6ef);_0x422095=this[_0x44d695(0xf8)](_0x422095);let _0x188526=(0x0,_0x47f753[_0x44d695(0x254)])(_0x422095['mutations'],this[_0x44d695(0x38d)],{'fromCollab':!0x0});if(!_0x188526['result']){var _0x371fd1;throw _0x188526['error']instanceof Error?_0x188526['error']:Error((_0x371fd1=_0x188526[_0x44d695(0x294)])==null?'[CollaborationState]:\x20apply\x20error!':_0x371fd1);}this[_0x44d695(0x202)](_0x422095),this['_transformStateCache'](_0x422095),this[_0x44d695(0x2cb)](_0x40f6ef),this[_0x44d695(0x115)](_0x422095),this[_0x44d695(0x40f)](_0x422095),this[_0x44d695(0x1cd)]();}};let _0x50a3a4=class extends _0x245952{constructor(_0x3fb7e8,_0x284423,_0x483460,_0xd19e43,_0x52afde,_0x507f12,_0x544021,_0x5c4548,_0x27494b,_0x4cccb3){const _0x483582=_0x27b931;super(_0x3fb7e8,_0x284423,null,[],_0x483460,_0x544021,_0x507f12,_0xd19e43,_0x4cccb3),this['_injector']=_0x52afde,this['_logService']=_0x5c4548,this['_transformService']=_0x27494b,this[_0x483582(0x23c)]=_0x4cccb3,_0x2dd74e(this,_0x483582(0x397),_0x483582(0x2da));}[_0x27b931(0x219)](_0x3a5c6a){const _0x50508d=_0x27b931;let _0x3678f1=this[_0x50508d(0x2fe)][_0x50508d(0x392)](_0x467875,this[_0x50508d(0x2ea)],this[_0x50508d(0x2af)],[_0x3a5c6a],this[_0x50508d(0x13b)]);return _0x3678f1[_0x50508d(0x34b)](),_0x3678f1[_0x50508d(0x292)](),_0x3678f1;}[_0x27b931(0xf7)](_0x1dddc9){const _0x4a50e9=_0x27b931;if(this[_0x4a50e9(0x16d)](_0x1dddc9))return this['_injector'][_0x4a50e9(0x392)](_0x3b1a33,this[_0x4a50e9(0x2ea)],this[_0x4a50e9(0x2af)],null,[],null,[_0x1dddc9],this[_0x4a50e9(0x13b)]);try{let _0x46e4e4=this[_0x4a50e9(0x14e)][_0x4a50e9(0x17a)](_0x1dddc9,[_0x149d12[_0x4a50e9(0x2a9)]]);if((0x0,_0x149d12['isTransformMutationsWithChangesetSuccess'])(_0x46e4e4)){let {c1Prime:_0x73f905}=_0x46e4e4;return this['_executeRemoteChangeset'](_0x73f905),this;}throw _0x46e4e4['error'];}catch(_0x303d5e){return this[_0x4a50e9(0x1a1)][_0x4a50e9(0x294)](_0x303d5e),this[_0x4a50e9(0x270)](!0x1);}}[_0x27b931(0x270)](_0x555fc9){const _0x30d063=_0x27b931;return this[_0x30d063(0x2fe)]['createInstance'](_0x41f3d6,this[_0x30d063(0x2ea)],this['type'],null,[],this['_handler'],_0x555fc9);}[_0x27b931(0x420)](_0x54d810){const _0x3d6110=_0x27b931;if(_0x54d810[_0x3d6110(0xe7)]<=this[_0x3d6110(0x319)]())return this;throw Error(_0x3d6110(0x215));}[_0x27b931(0xef)](){const _0x3f1f4f=_0x27b931;throw Error(_0x3f1f4f(0x13f));}[_0x27b931(0x21d)](){return this;}[_0x27b931(0x229)](){const _0x2b9da4=_0x27b931;return this[_0x2b9da4(0x2fe)][_0x2b9da4(0x392)](_0x58261a,this['unitID'],this['type'],null,[],this['_handler']);}[_0x27b931(0x2d1)](){return this;}[_0x27b931(0x36c)](){const _0x147fee=_0x27b931;throw Error(_0x147fee(0x12a));}[_0x27b931(0xd2)](){const _0x333f4b=_0x27b931;let _0xd9d335=this[_0x333f4b(0x105)][_0x333f4b(0x322)](this[_0x333f4b(0x2ea)]);return this['_handler'][_0x333f4b(0x2ab)]({'from':_0xd9d335,'to':0x0}),this[_0x333f4b(0x2fe)][_0x333f4b(0x392)](_0x3b1a33,this[_0x333f4b(0x2ea)],this[_0x333f4b(0x2af)],null,[],null,[],this[_0x333f4b(0x13b)]);}};_0x50a3a4=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x5,_0x47f753['IUndoRedoService']),_0x2af294(0x6,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x7,_0x47f753[_0x27b931(0x370)]),_0x2af294(0x8,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0x9,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x50a3a4);let _0x467875=_0x3fe01c=class extends _0x245952{constructor(_0x34b6f7,_0x290244,_0x3a145d,_0x562046,_0x5bd416,_0x292127,_0x1bd9ce,_0xef5cfe,_0x349a87,_0x43a8a2,_0x1755d3,_0x19b40b,_0x4b38e7,_0x1ecccb){const _0x468c5e=_0x27b931;super(_0x34b6f7,_0x290244,null,_0x3a145d,_0x562046,_0x349a87,_0x4b38e7,_0x292127,_0x1ecccb),this[_0x468c5e(0x2fe)]=_0x5bd416,this['_memberService']=_0x1bd9ce,this[_0x468c5e(0x1a1)]=_0xef5cfe,this['_configService']=_0x43a8a2,this[_0x468c5e(0x14e)]=_0x1755d3,this[_0x468c5e(0x37d)]=_0x19b40b,_0x2dd74e(this,_0x468c5e(0x397),'pending'),_0x2dd74e(this,_0x468c5e(0x3b2),null),_0x2dd74e(this,'_sendingTimer',null);}[_0x27b931(0x219)](_0x3fb845){const _0x1959b5=_0x27b931;return this[_0x1959b5(0x3da)]['push'](_0x3fb845),this[_0x1959b5(0x292)](),this;}[_0x27b931(0xf7)](_0x7d723d){const _0x2f696f=_0x27b931;if(this[_0x2f696f(0x16d)](_0x7d723d))return this[_0x2f696f(0x2dc)](),this[_0x2f696f(0x2fe)][_0x2f696f(0x392)](_0x3b1a33,this[_0x2f696f(0x2ea)],this[_0x2f696f(0x2af)],null,this[_0x2f696f(0x3da)],null,[_0x7d723d],this[_0x2f696f(0x13b)]);try{let _0x19a963=this['_transformService'][_0x2f696f(0x17a)](_0x7d723d,this[_0x2f696f(0x3da)]);if((0x0,_0x149d12[_0x2f696f(0x421)])(_0x19a963)){let {c1Prime:_0x4f9446,m2Prime:_0x61bdeb}=_0x19a963;this[_0x2f696f(0x164)](_0x4f9446);let _0x437c87=this['_injector'][_0x2f696f(0x392)](_0x3fe01c,this[_0x2f696f(0x2ea)],this[_0x2f696f(0x2af)],_0x61bdeb,this[_0x2f696f(0x13b)]);this[_0x2f696f(0x2dc)]();let _0x230ae8=new Date()[_0x2f696f(0xf3)](),_0x162506=this[_0x2f696f(0x3b2)]?Math[_0x2f696f(0x2b5)](this[_0x2f696f(0x3b2)]-_0x230ae8,0x0):this[_0x2f696f(0x1ef)]();return _0x437c87[_0x2f696f(0x34b)](_0x162506),_0x437c87;}throw _0x19a963[_0x2f696f(0x294)];}catch(_0x195047){return this[_0x2f696f(0x1a1)][_0x2f696f(0x294)](_0x195047),this[_0x2f696f(0x270)](!0x1);}}[_0x27b931(0x420)](_0x4fdc33){const _0x32f6d8=_0x27b931;if(_0x4fdc33[_0x32f6d8(0xe7)]<=this['_getCurrentRevision']())return this;throw Error(_0x32f6d8(0x177));}[_0x27b931(0xef)](){const _0x12069d=_0x27b931;throw Error(_0x12069d(0x40d));}[_0x27b931(0x21d)](){return this;}[_0x27b931(0x229)](){const _0x3dc17d=_0x27b931;return this['_clearScheduledTask'](),this[_0x3dc17d(0x2fe)][_0x3dc17d(0x392)](_0x58261a,this['unitID'],this[_0x3dc17d(0x2af)],null,this[_0x3dc17d(0x3da)],this[_0x3dc17d(0x13b)]);}['toggleOnline'](){return this;}['_schedule'](_0x4e3c4f){const _0x31c9fc=_0x27b931;let _0x45c791=_0x4e3c4f==null?this[_0x31c9fc(0x1ef)]():_0x4e3c4f;this[_0x31c9fc(0x3b2)]=new Date()[_0x31c9fc(0xf3)]()+_0x45c791,this['_sendingTimer']=setTimeout(()=>{const _0x5ac572=_0x31c9fc;this[_0x5ac572(0x2dc)]();let _0x423db3=null;switch(this[_0x5ac572(0x2af)]){case _0x47f753[_0x5ac572(0x3fc)][_0x5ac572(0x239)]:_0x423db3=_0x56f864(this[_0x5ac572(0x3da)],this[_0x5ac572(0x2ea)],this[_0x5ac572(0x37d)],this[_0x5ac572(0x105)],this[_0x5ac572(0x342)]);break;case _0x47f753[_0x5ac572(0x3fc)][_0x5ac572(0x243)]:_0x423db3=this[_0x5ac572(0x3da)]['every'](_0x5f43d1=>_0x5f43d1['id']===_0x459006[_0x5ac572(0x20a)]['id'])?_0x1f4433(this['_pendingMutations'],this['unitID'],this[_0x5ac572(0x37d)],this['_revisionService'],this[_0x5ac572(0x342)]):_0x56f864(this[_0x5ac572(0x3da)],this[_0x5ac572(0x2ea)],this[_0x5ac572(0x37d)],this[_0x5ac572(0x105)],this['_memberService']);break;case _0x47f753[_0x5ac572(0x3fc)][_0x5ac572(0x339)]:_0x423db3=_0x4c958f(this[_0x5ac572(0x3da)],this[_0x5ac572(0x2ea)],this[_0x5ac572(0x37d)],this[_0x5ac572(0x105)],this['_memberService']);break;case _0x47f753[_0x5ac572(0x3fc)][_0x5ac572(0x41d)]:_0x423db3=_0x56f864(this[_0x5ac572(0x3da)],this[_0x5ac572(0x2ea)],this[_0x5ac572(0x37d)],this[_0x5ac572(0x105)],this[_0x5ac572(0x342)]);break;case _0x47f753[_0x5ac572(0x3fc)][_0x5ac572(0x313)]:_0x423db3=_0x56f864(this[_0x5ac572(0x3da)],this[_0x5ac572(0x2ea)],this[_0x5ac572(0x37d)],this[_0x5ac572(0x105)],this[_0x5ac572(0x342)]);break;default:throw Error(_0x5ac572(0x1be)+this['type']+_0x5ac572(0x39e));}let {changeset:_0x17a977,pendingMutations:_0x176b59}=_0x423db3;this[_0x5ac572(0x13b)][_0x5ac572(0x244)](_0x17a977);let _0x35712=_0x176b59['length']?this[_0x5ac572(0x2fe)][_0x5ac572(0x392)](_0x15bd87,this[_0x5ac572(0x2ea)],this[_0x5ac572(0x2af)],_0x17a977,_0x176b59,this[_0x5ac572(0x13b)],void 0x0):this[_0x5ac572(0x2fe)]['createInstance'](_0x42dff3,this['unitID'],this[_0x5ac572(0x2af)],_0x17a977,this[_0x5ac572(0x13b)]);_0x35712[_0x5ac572(0x292)](),this['_handler'][_0x5ac572(0x2e0)](this,_0x35712);},_0x45c791);}['_getSendChangesetTimeout'](){const _0x26f588=_0x27b931;var _0xbf852b;let _0x2b55e7=this[_0x26f588(0x228)][_0x26f588(0x190)](_0x3c17be);return(_0xbf852b=_0x2b55e7==null?void 0x0:_0x2b55e7[_0x26f588(0x2f8)])==null?0x7d0:_0xbf852b;}[_0x27b931(0x36c)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x1e54c6=_0x27b931;this['_sendingTimer']!=null&&(clearTimeout(this['_sendingTimer']),this[_0x1e54c6(0xfe)]=null);}[_0x27b931(0x270)](_0x171a98){const _0x1564b2=_0x27b931;return this['_clearScheduledTask'](),this[_0x1564b2(0x2fe)][_0x1564b2(0x392)](_0x41f3d6,this['unitID'],this[_0x1564b2(0x2af)],null,this['_pendingMutations'],this[_0x1564b2(0x13b)],_0x171a98);}};_0x467875=_0x3fe01c=_0x1fb4c2([_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x541d7d)),_0x2af294(0x7,_0x47f753['ILogService']),_0x2af294(0x8,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x9,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0xa,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0xb,_0x47f753['IUniverInstanceService']),_0x2af294(0xc,_0x47f753[_0x27b931(0x3aa)]),_0x2af294(0xd,(0x0,_0x47f753['Optional'])(_0x419224))],_0x467875);let _0x42dff3=_0x273481=class extends _0x245952{constructor(_0x4748fe,_0x271465,_0x2a93a7,_0x3bdc99,_0x204a6d,_0x445d70,_0x399cea,_0x5bbd19,_0x297c11,_0x2344af,_0x5ead2e){const _0x432940=_0x27b931;super(_0x4748fe,_0x271465,_0x2a93a7,[],_0x3bdc99,_0x399cea,_0x2344af,_0x445d70,_0x5ead2e),this[_0x432940(0x2fe)]=_0x204a6d,this[_0x432940(0x1a1)]=_0x5bbd19,this[_0x432940(0x14e)]=_0x297c11,_0x2dd74e(this,_0x432940(0x397),'awaiting'),_0x2dd74e(this,'_resendTimeout',0x0),_0x2dd74e(this,_0x432940(0x143),0x0),_0x2dd74e(this,'_resendTimer',void 0x0),_0x2dd74e(this,_0x432940(0x1e0),void 0x0);}[_0x27b931(0x219)](_0x4bfcd3){const _0x6c38e0=_0x27b931;this[_0x6c38e0(0x2dc)]();let _0x5e7f22=this[_0x6c38e0(0x2fe)][_0x6c38e0(0x392)](_0x15bd87,this['unitID'],this[_0x6c38e0(0x2af)],this[_0x6c38e0(0x1f7)],[_0x4bfcd3],this['_handler'],this[_0x6c38e0(0x2ac)]);return _0x5e7f22['_updateLocalCache'](),_0x5e7f22;}['onRemoteChangeset'](_0x4ed9db){const _0x244667=_0x27b931;if(this[_0x244667(0x16d)](_0x4ed9db))return this[_0x244667(0x2dc)](),this[_0x244667(0x2fe)][_0x244667(0x392)](_0x3b1a33,this[_0x244667(0x2ea)],this['type'],this[_0x244667(0x1f7)],[],null,[_0x4ed9db],this['_handler']);try{let _0x4c992c=this['_transformService']['transformChangesets']([_0x4ed9db],[this[_0x244667(0x1f7)]],!0x1);if((0x0,_0x149d12['isTransformChangesetsSuccess'])(_0x4c992c)){let {c1Prime:_0x482d9d,c2Prime:_0x15fd72}=_0x4c992c;this[_0x244667(0x164)](_0x482d9d[0x0]),_0x15fd72[0x0]['baseRev']=this[_0x244667(0x319)](),this[_0x244667(0x2dc)]();let _0x505cb5=this['_injector'][_0x244667(0x392)](_0x273481,this[_0x244667(0x2ea)],this[_0x244667(0x2af)],_0x15fd72[0x0],this[_0x244667(0x13b)]);return _0x505cb5[_0x244667(0x292)](),_0x505cb5;}throw _0x4c992c[_0x244667(0x294)];}catch(_0x545e0b){return this[_0x244667(0x1a1)][_0x244667(0x294)](_0x545e0b),this[_0x244667(0x270)](!0x1);}}[_0x27b931(0x420)](_0x51cde3){const _0x50332c=_0x27b931;this[_0x50332c(0x2dc)]();let _0x55bbc0=this[_0x50332c(0x105)]['getCurrentRevOfUnit'](this[_0x50332c(0x2ea)]);if(_0x51cde3['revision']<=_0x55bbc0)return this;if(this[_0x50332c(0x16d)](_0x51cde3))return this['_injector'][_0x50332c(0x392)](_0x3b1a33,this[_0x50332c(0x2ea)],this[_0x50332c(0x2af)],this[_0x50332c(0x1f7)],[],_0x51cde3[_0x50332c(0xe7)],[],this[_0x50332c(0x13b)]);this[_0x50332c(0x1cd)]();let _0x1acb96=this['_injector']['createInstance'](_0x50a3a4,this[_0x50332c(0x2ea)],this['type'],this[_0x50332c(0x13b)]);return _0x1acb96[_0x50332c(0x292)](),_0x1acb96;}[_0x27b931(0xef)](_0x1ea7c4){const _0x51aca7=_0x27b931;return this[_0x51aca7(0x270)](!!(_0x1ea7c4!=null&&_0x1ea7c4[_0x51aca7(0x174)]));}[_0x27b931(0x21d)](_0x4087a7){const _0x4aacb7=_0x27b931;return this[_0x4aacb7(0x143)]>_0xb2329d?this[_0x4aacb7(0x229)]():(this[_0x4aacb7(0x2ac)]=_0xa9ec8e(this[_0x4aacb7(0x1ea)],{'timeout':this['_resendTimeout'],'reqId':_0x4087a7[_0x4aacb7(0x20d)]}),this['_sender']=this['_resendTimer'][_0x4aacb7(0x38e)](({reqId:_0x1dd7b8,timeout:_0x2a1172})=>{this['_resendWithTimeout'](_0x1dd7b8,_0x2a1172);}),this);}[_0x27b931(0x229)](){const _0x148910=_0x27b931;return this[_0x148910(0x2dc)](),this[_0x148910(0x2fe)][_0x148910(0x392)](_0x58261a,this[_0x148910(0x2ea)],this[_0x148910(0x2af)],this[_0x148910(0x1f7)],[],this[_0x148910(0x13b)]);}[_0x27b931(0x2d1)](){return this;}[_0x27b931(0x36c)](){const _0x1efb13=_0x27b931;this[_0x1efb13(0x13b)][_0x1efb13(0x244)](this[_0x1efb13(0x1f7)]);}[_0x27b931(0x270)](_0x595b5a){const _0x1b7f3f=_0x27b931;return this[_0x1b7f3f(0x2dc)](),this[_0x1b7f3f(0x2fe)][_0x1b7f3f(0x392)](_0x41f3d6,this[_0x1b7f3f(0x2ea)],this[_0x1b7f3f(0x2af)],this['_awaitingChangeset'],[],this[_0x1b7f3f(0x13b)],_0x595b5a);}[_0x27b931(0x367)](_0x41b188,_0x3d0d10){const _0xe5273f=_0x27b931;var _0x4bd098;_0x41b188===((_0x4bd098=this[_0xe5273f(0x1f7)])==null?void 0x0:_0x4bd098[_0xe5273f(0x20d)])&&(this[_0xe5273f(0x36c)](),this[_0xe5273f(0x1ea)]=_0x3d0d10===0x0?0x3e8:Math[_0xe5273f(0x24b)](_0x3d0d10*0x2,_0x3d7ed8),this[_0xe5273f(0x143)]+=this[_0xe5273f(0x1ea)]);}[_0x27b931(0x2dc)](){const _0x198027=_0x27b931;var _0x377e74;(_0x377e74=this[_0x198027(0x1e0)])==null||_0x377e74[_0x198027(0x138)](),this[_0x198027(0x1ea)]=0x0,this[_0x198027(0x143)]=0x0;}};_0x42dff3=_0x273481=_0x1fb4c2([_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x6,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x7,_0x47f753['ILogService']),_0x2af294(0x8,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0x9,_0x47f753[_0x27b931(0x3aa)]),_0x2af294(0xa,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x42dff3);let _0x15bd87=_0xf27d34=class extends _0x245952{constructor(_0x5cae2d,_0x268ec7,_0x378a20,_0x29631c,_0x41d31f,_0x47303c,_0x42d343,_0x31be82,_0x38e4d3,_0x3f00ff,_0x51e1a3,_0x15d3d0,_0x3fa04e){const _0xe3a42b=_0x27b931;super(_0x5cae2d,_0x268ec7,_0x378a20,_0x29631c,_0x41d31f,_0x38e4d3,_0x15d3d0,_0x31be82,_0x3fa04e),this[_0xe3a42b(0x2fe)]=_0x42d343,this['_logService']=_0x3f00ff,this[_0xe3a42b(0x14e)]=_0x51e1a3,this[_0xe3a42b(0x23c)]=_0x3fa04e,_0x2dd74e(this,'status',_0xe3a42b(0x18d)),_0x2dd74e(this,_0xe3a42b(0x1ea),0x0),_0x2dd74e(this,_0xe3a42b(0x143),0x0),_0x2dd74e(this,'_resendTimer',void 0x0),_0x2dd74e(this,_0xe3a42b(0x1e0),void 0x0),_0x47303c&&(this[_0xe3a42b(0x2ac)]=_0x47303c,this['_sender']=this['_resendTimer']['subscribe'](({reqId:_0x5ad90b,timeout:_0x2fb45d})=>{const _0x18284c=_0xe3a42b;this[_0x18284c(0x367)](_0x5ad90b,_0x2fb45d);}));}[_0x27b931(0x219)](_0x3944dd){const _0x5b3eaa=_0x27b931;return this[_0x5b3eaa(0x3da)][_0x5b3eaa(0x30b)](_0x3944dd),this;}[_0x27b931(0xf7)](_0x43bd73){const _0x11dd14=_0x27b931;if(this['_checkMissing'](_0x43bd73))return this[_0x11dd14(0x2dc)](),this[_0x11dd14(0x2fe)][_0x11dd14(0x392)](_0x3b1a33,this['unitID'],this[_0x11dd14(0x2af)],this[_0x11dd14(0x1f7)],this[_0x11dd14(0x3da)],null,[_0x43bd73],this[_0x11dd14(0x13b)]);try{let _0x11d314=this[_0x11dd14(0x14e)][_0x11dd14(0x211)]([_0x43bd73],[this['_awaitingChangeset']],!0x1);if((0x0,_0x149d12['isTransformChangesetsSuccess'])(_0x11d314)){let {c1Prime:_0x36e158,c2Prime:_0xa4f225}=_0x11d314,_0x55ec0f=this[_0x11dd14(0x14e)][_0x11dd14(0x17a)](_0x36e158[0x0],this['_pendingMutations']);if((0x0,_0x149d12[_0x11dd14(0x421)])(_0x55ec0f)){let {c1Prime:_0x1fddd4,m2Prime:_0x18ab84}=_0x55ec0f;return this[_0x11dd14(0x164)](_0x1fddd4),_0xa4f225[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x11dd14(0x2dc)](),this[_0x11dd14(0x2fe)]['createInstance'](_0xf27d34,this[_0x11dd14(0x2ea)],this['type'],_0xa4f225[0x0],_0x18ab84,this[_0x11dd14(0x13b)],void 0x0);}throw _0x55ec0f['error'];}throw _0x11d314[_0x11dd14(0x294)];}catch(_0x4fbe08){return this[_0x11dd14(0x1a1)]['error'](_0x4fbe08),this['_onConflict'](!0x1);}}[_0x27b931(0x420)](_0x95e346){const _0x5ca60b=_0x27b931;this[_0x5ca60b(0x2dc)]();let _0x49512a=this[_0x5ca60b(0x319)]();if(_0x95e346['revision']<=_0x49512a)return this;if(this[_0x5ca60b(0x16d)](_0x95e346))return this['_injector'][_0x5ca60b(0x392)](_0x3b1a33,this[_0x5ca60b(0x2ea)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],_0x95e346[_0x5ca60b(0xe7)],[],this[_0x5ca60b(0x13b)]);this[_0x5ca60b(0x1cd)]();let _0x2d5898=this[_0x5ca60b(0x2fe)][_0x5ca60b(0x392)](_0x467875,this[_0x5ca60b(0x2ea)],this['type'],this['_pendingMutations'],this['_handler']);return _0x2d5898[_0x5ca60b(0x34b)](),_0x2d5898[_0x5ca60b(0x292)](),_0x2d5898;}['onRemoteRej'](_0x57f853){const _0x5a8459=_0x27b931;return this[_0x5a8459(0x270)](!!(_0x57f853!=null&&_0x57f853[_0x5a8459(0x174)]));}[_0x27b931(0x21d)](_0x345f76){const _0x520876=_0x27b931;return this[_0x520876(0x143)]>_0xb2329d?this[_0x520876(0x229)]():(this[_0x520876(0x2ac)]=_0xa9ec8e(this['_resendTimeout'],{'timeout':this[_0x520876(0x1ea)],'reqId':_0x345f76['reqId']}),this[_0x520876(0x1e0)]=this[_0x520876(0x2ac)][_0x520876(0x38e)](({reqId:_0x7ffb81,timeout:_0x7d4633})=>{const _0xade1d9=_0x520876;this[_0xade1d9(0x367)](_0x7ffb81,_0x7d4633);}),this);}[_0x27b931(0x229)](){const _0xd05189=_0x27b931;return this[_0xd05189(0x2dc)](),this[_0xd05189(0x2fe)][_0xd05189(0x392)](_0x58261a,this[_0xd05189(0x2ea)],this[_0xd05189(0x2af)],this[_0xd05189(0x1f7)],this['_pendingMutations'],this[_0xd05189(0x13b)]);}[_0x27b931(0x2d1)](){return this;}[_0x27b931(0x36c)](){const _0x417c48=_0x27b931;this['_handler'][_0x417c48(0x244)](this[_0x417c48(0x1f7)]);}['_onConflict'](_0x2f0e27){const _0x4f1741=_0x27b931;return this[_0x4f1741(0x2dc)](),this[_0x4f1741(0x2fe)]['createInstance'](_0x41f3d6,this[_0x4f1741(0x2ea)],this[_0x4f1741(0x2af)],null,this[_0x4f1741(0x3da)],this[_0x4f1741(0x13b)],_0x2f0e27);}[_0x27b931(0x367)](_0x78fb5c,_0x30fb6b){const _0x365b27=_0x27b931;var _0x2c2508;_0x78fb5c===((_0x2c2508=this[_0x365b27(0x1f7)])==null?void 0x0:_0x2c2508[_0x365b27(0x20d)])&&(this[_0x365b27(0x36c)](),this[_0x365b27(0x1ea)]=_0x30fb6b===0x0?0x3e8:Math[_0x365b27(0x24b)](_0x30fb6b*0x2,_0x3d7ed8),this[_0x365b27(0x143)]+=this['_resendTimeout']);}[_0x27b931(0x2dc)](){const _0x53af1c=_0x27b931;var _0x68ab8a;(_0x68ab8a=this[_0x53af1c(0x1e0)])==null||_0x68ab8a[_0x53af1c(0x138)](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x15bd87=_0xf27d34=_0x1fb4c2([_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['Injector'])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x8,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0xb,_0x47f753['IUndoRedoService']),_0x2af294(0xc,(0x0,_0x47f753['Optional'])(_0x419224))],_0x15bd87);let _0x41f3d6=class extends _0x245952{constructor(_0x19e308,_0x3fcbc9,_0x48c12a,_0x477105,_0x3220b3,_0x1e41b0=!0x1,_0x204bd9,_0x3d047f,_0x7e55d4,_0x3ddb7f,_0x4f471c,_0x18420f,_0x297cd0){const _0x3bfc05=_0x27b931;super(_0x19e308,_0x3fcbc9,_0x48c12a,_0x477105,_0x3220b3,_0x3d047f,_0x7e55d4,_0x3ddb7f,_0x297cd0),this[_0x3bfc05(0x251)]=_0x1e41b0,this['_permissionService']=_0x204bd9,this[_0x3bfc05(0x1ff)]=_0x4f471c,this[_0x3bfc05(0x11a)]=_0x18420f,this[_0x3bfc05(0x23c)]=_0x297cd0,_0x2dd74e(this,_0x3bfc05(0x397),_0x3bfc05(0x192)),this[_0x3bfc05(0x1b9)](),this['_clearLocalCache'](),this[_0x3bfc05(0xf9)]();}[_0x27b931(0x219)](){return this;}[_0x27b931(0xf7)](){return this;}[_0x27b931(0x420)](){return this;}[_0x27b931(0xef)](){return this;}[_0x27b931(0x21d)](){return this;}[_0x27b931(0x229)](){return this;}[_0x27b931(0x2d1)](){return this;}[_0x27b931(0x36c)](){const _0x58b88d=_0x27b931;throw Error(_0x58b88d(0x3b4));}[_0x27b931(0x1bb)](){const _0xfb9183=_0x27b931;var _0x42b1b6,_0xf7e2c7,_0x2e10ed;(_0x42b1b6=this['_localCacheService'])==null||(_0xf7e2c7=_0x42b1b6['backupOfflineData'])==null||(_0xf7e2c7=_0xf7e2c7[_0xfb9183(0x25a)](_0x42b1b6,this[_0xfb9183(0x2ea)],_0xfb9183(0x192)))==null||_0xf7e2c7[_0xfb9183(0x29a)](()=>void 0x0),(_0x2e10ed=this['_localCacheService'])==null||_0x2e10ed[_0xfb9183(0x32a)](this['unitID'],this[_0xfb9183(0x2af)],null,[]);}[_0x27b931(0x1b9)](){const _0x17cfb3=_0x27b931;this['_isPermissionRej']?this[_0x17cfb3(0x11a)][_0x17cfb3(0x1f8)]({'id':'PERMISSION_DENIED'}):this[_0x17cfb3(0x11a)][_0x17cfb3(0x1f8)]({'id':'CONFLICT'});}[_0x27b931(0xf9)](){const _0x2d9f39=_0x27b931;this[_0x2d9f39(0x373)][_0x2d9f39(0x1a8)](new _0x1e2709[(_0x2d9f39(0x1ec))](this['unitID'])['id'],!0x1);}};_0x41f3d6=_0x1fb4c2([_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x3ce)])),_0x2af294(0x7,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x8,_0x47f753[_0x27b931(0x3aa)]),_0x2af294(0x9,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0xa,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['LocaleService'])),_0x2af294(0xb,(0x0,_0x47f753['Inject'])(_0x2a71d9)),_0x2af294(0xc,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x41f3d6);let _0x58261a=class extends _0x245952{constructor(_0x32f420,_0x58701e,_0x40fe08,_0x41497e,_0x48f67d,_0x1b2d6f,_0x3ca9ac,_0x292b5b,_0x33ae8e,_0x595459){const _0x294e0d=_0x27b931;super(_0x32f420,_0x58701e,_0x40fe08,_0x41497e,_0x48f67d,_0x292b5b,_0x33ae8e,_0x3ca9ac,_0x595459),this[_0x294e0d(0x2fe)]=_0x1b2d6f,_0x2dd74e(this,'status',_0x294e0d(0x37a));}[_0x27b931(0x219)](_0x326a58){const _0x3ff21c=_0x27b931;return this['_pendingMutations'][_0x3ff21c(0x30b)](_0x326a58),this[_0x3ff21c(0x292)](),this;}[_0x27b931(0xf7)](_0x3e8f63){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x27b931(0x420)](){const _0x2a5a00=_0x27b931;throw Error(_0x2a5a00(0x3d0));}[_0x27b931(0xef)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x27b931(0x21d)](){return this;}[_0x27b931(0x229)](){return this;}[_0x27b931(0x2d1)](){const _0x398cd6=_0x27b931;let {_injector:_0x24537f,_pendingMutations:_0x23ca6e,_awaitingChangeset:_0x19d2e8,unitID:_0x1359e8,_handler:_0x4e383a,type:_0xbb3a5f}=this,_0x714acb=_0x1512ca(_0x24537f,_0x1359e8,_0xbb3a5f,_0x19d2e8,_0x23ca6e,_0x4e383a);return _0x714acb instanceof _0x467875?_0x714acb[_0x398cd6(0x34b)]():(_0x714acb instanceof _0x15bd87||_0x714acb instanceof _0x42dff3)&&_0x714acb['resend'](),_0x714acb;}['resend'](){const _0x39436b=_0x27b931;throw Error(_0x39436b(0x327));}};_0x58261a=_0x1fb4c2([_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x7,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x8,_0x47f753['IUndoRedoService']),_0x2af294(0x9,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x58261a);let _0x3b1a33=class extends _0x245952{constructor(_0x3cfcad,_0x5c20f7,_0x4c860f,_0x45ec50,_0x1e404c,_0x4a488b,_0x1738c2,_0x12d7ec,_0xd34bc4,_0x1a8734,_0x4b46f0,_0x4f66f8,_0x3cbe37,_0x34a70b){const _0x54c103=_0x27b931;super(_0x3cfcad,_0x5c20f7,_0x4c860f,_0x45ec50,_0x1738c2,_0x4b46f0,_0x4f66f8,_0xd34bc4,_0x34a70b),this['_acknowledgedAwaitingRevision']=_0x1e404c,this['_queuedRemoteChangesets']=_0x4a488b,this[_0x54c103(0x2fe)]=_0x12d7ec,this[_0x54c103(0x1a1)]=_0x1a8734,this[_0x54c103(0x14e)]=_0x3cbe37,this['localCacheService']=_0x34a70b,_0x2dd74e(this,_0x54c103(0x397),_0x54c103(0x11d));}[_0x27b931(0x2e2)](_0x223b16){const _0x1bbce3=_0x27b931;try{if(this[_0x1bbce3(0xe8)](_0x223b16)[_0x1bbce3(0x147)])throw Error(_0x1bbce3(0x3f2));if(this['_handleRemoteChangesets']([...this['_queuedRemoteChangesets']][_0x1bbce3(0xd0)]((_0x4935fb,_0x3813d5)=>_0x4935fb[_0x1bbce3(0xe7)]-_0x3813d5['revision']))[_0x1bbce3(0x147)])return this[_0x1bbce3(0x2fd)]=[],this[_0x1bbce3(0x292)](),this[_0x1bbce3(0x13b)][_0x1bbce3(0x2ab)]({'from':this[_0x1bbce3(0x319)](),'to':0x0}),this;let _0x3fbd01=this[_0x1bbce3(0x1f7)],_0x4ccd8d=this[_0x1bbce3(0x3da)],_0x50c95;if(_0x3fbd01&&_0x4ccd8d[_0x1bbce3(0x415)]!==0x0)_0x50c95=this[_0x1bbce3(0x2fe)]['createInstance'](_0x15bd87,this[_0x1bbce3(0x2ea)],this[_0x1bbce3(0x2af)],_0x3fbd01,_0x4ccd8d,this['_handler'],void 0x0);else{if(_0x3fbd01&&_0x4ccd8d[_0x1bbce3(0x415)]===0x0)_0x3fbd01[_0x1bbce3(0x250)]=this[_0x1bbce3(0x319)](),_0x50c95=this[_0x1bbce3(0x2fe)][_0x1bbce3(0x392)](_0x42dff3,this[_0x1bbce3(0x2ea)],this[_0x1bbce3(0x2af)],_0x3fbd01,this[_0x1bbce3(0x13b)]);else{if(_0x4ccd8d[_0x1bbce3(0x415)]!==0x0){let _0x409812=this[_0x1bbce3(0x2fe)][_0x1bbce3(0x392)](_0x467875,this[_0x1bbce3(0x2ea)],this[_0x1bbce3(0x2af)],_0x4ccd8d,this[_0x1bbce3(0x13b)]);_0x409812['_schedule'](),_0x50c95=_0x409812;}else _0x50c95=this[_0x1bbce3(0x2fe)]['createInstance'](_0x50a3a4,this[_0x1bbce3(0x2ea)],this[_0x1bbce3(0x2af)],this[_0x1bbce3(0x13b)]);}}return _0x50c95['_updateLocalCache'](),_0x50c95;}catch(_0x2d96ce){return this['_logService']['error'](_0x1bbce3(0x3e0),'failed\x20to\x20apply\x20missed\x20changesets!',_0x2d96ce),this[_0x1bbce3(0x2fe)][_0x1bbce3(0x392)](_0x41f3d6,this[_0x1bbce3(0x2ea)],this[_0x1bbce3(0x2af)],this[_0x1bbce3(0x1f7)],this[_0x1bbce3(0x3da)],this[_0x1bbce3(0x13b)],!0x1);}}[_0x27b931(0xe8)](_0x3e7595){const _0x5096e8=_0x27b931;this[_0x5096e8(0x27e)]();for(let _0xe20e73=0x0;_0xe20e73<_0x3e7595['length'];_0xe20e73++){let _0xa16fa=_0x3e7595[_0xe20e73],_0x88cb28=this[_0x5096e8(0x319)]();if(!(_0xa16fa[_0x5096e8(0xe7)]<=_0x88cb28)){if(_0xa16fa[_0x5096e8(0xe7)]>_0x88cb28+0x1)return{'missingChangesets':!0x0};if(this[_0x5096e8(0x37b)](_0xa16fa)){this[_0x5096e8(0x2e1)]();continue;}this[_0x5096e8(0x144)](_0xa16fa),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x3d11a7){const _0x5a74ca=_0x27b931;let _0xdaf86f=_0x3d11a7,_0x4925f2=this['_awaitingChangeset'];if(_0x4925f2){let _0x387d39=this[_0x5a74ca(0x14e)][_0x5a74ca(0x211)]([_0x3d11a7],[_0x4925f2],!0x1);if(!(0x0,_0x149d12[_0x5a74ca(0x40e)])(_0x387d39))throw _0x387d39[_0x5a74ca(0x294)];_0xdaf86f=_0x387d39[_0x5a74ca(0x2b1)][0x0],_0x4925f2=_0x387d39[_0x5a74ca(0x134)][0x0];}let _0x480a5c=this[_0x5a74ca(0x3da)];if(_0x480a5c['length']){let _0x46151f=this[_0x5a74ca(0x14e)][_0x5a74ca(0x17a)](_0xdaf86f,_0x480a5c);if(!(0x0,_0x149d12[_0x5a74ca(0x421)])(_0x46151f))throw _0x46151f['error'];_0xdaf86f=_0x46151f[_0x5a74ca(0x2b1)],_0x480a5c=_0x46151f[_0x5a74ca(0x3b0)];}this['_executeRemoteChangeset'](_0xdaf86f),_0x4925f2&&(_0x4925f2[_0x5a74ca(0x250)]=this['_getCurrentRevision']()),this['_awaitingChangeset']=_0x4925f2,this[_0x5a74ca(0x3da)]=_0x480a5c;}['_acknowledgeAwaitingIfReady'](){const _0x6864a6=_0x27b931;if(!this[_0x6864a6(0x1f7)]||this[_0x6864a6(0x199)]==null)return;let _0x5b3fec=this[_0x6864a6(0x319)]();if(this['_acknowledgedAwaitingRevision']<=_0x5b3fec)throw Error(_0x6864a6(0x2b0)+this['_acknowledgedAwaitingRevision']+'.');this[_0x6864a6(0x199)]===_0x5b3fec+0x1&&this['_acknowledgeAwaiting']();}[_0x27b931(0x2e1)](){const _0x2efd38=_0x27b931;this[_0x2efd38(0x1cd)](),this[_0x2efd38(0x1f7)]=null,this[_0x2efd38(0x199)]=null;}[_0x27b931(0x37b)](_0x2e2752){const _0x3f8ffc=_0x27b931;let _0x26c8d0=this[_0x3f8ffc(0x1f7)];return!_0x26c8d0||!_0x26c8d0[_0x3f8ffc(0x2c9)]||_0x26c8d0['reqId']===null||_0x26c8d0[_0x3f8ffc(0x20d)]===void 0x0?!0x1:_0x2e2752[_0x3f8ffc(0x2ea)]===_0x26c8d0['unitID']&&_0x2e2752[_0x3f8ffc(0x2c9)]===_0x26c8d0[_0x3f8ffc(0x2c9)]&&_0x2e2752[_0x3f8ffc(0x20d)]===_0x26c8d0[_0x3f8ffc(0x20d)];}['resend'](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x503f15){const _0x2e8e48=_0x27b931;return this[_0x2e8e48(0x3da)][_0x2e8e48(0x30b)](_0x503f15),this;}[_0x27b931(0xf7)](_0x277fb8){const _0x3b6bc8=_0x27b931;return this[_0x3b6bc8(0x2fd)][_0x3b6bc8(0x30b)](_0x277fb8),this;}[_0x27b931(0x420)](_0x3db218){const _0x586464=_0x27b931;if(this[_0x586464(0x1f7)]){let _0x339be2=this[_0x586464(0x319)]();return _0x3db218['revision']<=_0x339be2||(_0x339be2+0x1===_0x3db218['revision']?(this[_0x586464(0x1cd)](),this[_0x586464(0x1f7)]=null,this[_0x586464(0x199)]=null):this[_0x586464(0x199)]=_0x3db218['revision']),this;}if(_0x3db218['revision']<=this[_0x586464(0x319)]())return this;throw Error(_0x586464(0x365));}[_0x27b931(0xef)](_0x5bf8a3){const _0x23554b=_0x27b931;return this['_onConflict'](!!(_0x5bf8a3!=null&&_0x5bf8a3[_0x23554b(0x174)]));}[_0x27b931(0x21d)](){return this;}[_0x27b931(0x229)](){const _0x45970e=_0x27b931;return this[_0x45970e(0x2fe)][_0x45970e(0x392)](_0x58261a,this[_0x45970e(0x2ea)],this[_0x45970e(0x2af)],this[_0x45970e(0x1f7)],this['_pendingMutations'],this[_0x45970e(0x13b)]);}[_0x27b931(0x2d1)](){return this;}[_0x27b931(0x270)](_0x3eea07){const _0x10f9fb=_0x27b931;return this['_injector'][_0x10f9fb(0x392)](_0x41f3d6,this[_0x10f9fb(0x2ea)],this[_0x10f9fb(0x2af)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x10f9fb(0x13b)],_0x3eea07);}};_0x3b1a33=_0x1fb4c2([_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x8,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x47f753['ICommandService']),_0x2af294(0xb,_0x47f753[_0x27b931(0x3aa)]),_0x2af294(0xc,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x3b1a33);function _0x1512ca(_0x4f7dbe,_0x272d92,_0x156cee,_0x127416,_0x4185a6,_0x59d0ff){const _0x1cf845=_0x27b931;return _0x127416&&_0x4185a6[_0x1cf845(0x415)]?_0x4f7dbe[_0x1cf845(0x392)](_0x15bd87,_0x272d92,_0x156cee,_0x127416,_0x4185a6,_0x59d0ff,void 0x0):_0x127416?_0x4f7dbe['createInstance'](_0x42dff3,_0x272d92,_0x156cee,_0x127416,_0x59d0ff):_0x4185a6[_0x1cf845(0x415)]?_0x4f7dbe['createInstance'](_0x467875,_0x272d92,_0x156cee,_0x4185a6,_0x59d0ff):_0x4f7dbe['createInstance'](_0x50a3a4,_0x272d92,_0x156cee,_0x59d0ff);}let _0x25f5ac=class extends _0x47f753[_0x27b931(0xf4)]{get[_0x27b931(0x311)](){const _0x2fa006=_0x27b931;return this[_0x2fa006(0x1b5)];}constructor(_0x213ced,_0x5b6284,_0x35a374,_0x14785b,_0x3417ab,_0x38c22f,_0x30fc17,_0x47d71a,_0x348e3d,_0xc68e03,_0x4f3939,_0x49b3ed,_0x326e0f,_0x337a0b){const _0x4cde78=_0x27b931;super(),this[_0x4cde78(0x2ea)]=_0x213ced,this[_0x4cde78(0x1ee)]=_0x5b6284,this[_0x4cde78(0x2f2)]=_0x35a374,this['_injector']=_0x14785b,this[_0x4cde78(0x39c)]=_0x3417ab,this[_0x4cde78(0x1ff)]=_0x38c22f,this[_0x4cde78(0x105)]=_0x30fc17,this[_0x4cde78(0x304)]=_0x47d71a,this[_0x4cde78(0x37d)]=_0x348e3d,this[_0x4cde78(0x1a1)]=_0xc68e03,this[_0x4cde78(0x38d)]=_0x4f3939,this[_0x4cde78(0x373)]=_0x49b3ed,this['_singleActiveUnitService']=_0x326e0f,this[_0x4cde78(0x189)]=_0x337a0b,_0x2dd74e(this,_0x4cde78(0xd4),new _0x470009[(_0x4cde78(0x25b))](null)),_0x2dd74e(this,_0x4cde78(0x3db),this[_0x4cde78(0xd4)][_0x4cde78(0x2b2)]()),_0x2dd74e(this,'_state',void 0x0),_0x2dd74e(this,_0x4cde78(0x3be),!0x1),_0x2dd74e(this,'_changesetSessionId',''),_0x2dd74e(this,_0x4cde78(0x2c7),0x0),_0x2dd74e(this,_0x4cde78(0x3cd),this['state$'][_0x4cde78(0x11f)]((0x0,_0x470009[_0x4cde78(0x394)])(_0x40f002=>_0x40f002?_0x40f002[_0x4cde78(0x397)]:_0x4cde78(0x37a)),(0x0,_0x470009['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_0x2dd74e(this,_0x4cde78(0x2b7),!0x1),_0x2dd74e(this,_0x4cde78(0x1d8),[]);}async[_0x27b931(0x362)](){const _0x2d2364=_0x27b931;if(this[_0x2d2364(0x311)])throw Error(_0x2d2364(0x2dd));await this[_0x2d2364(0xee)]();}[_0x27b931(0xe6)](){const _0x5c398c=_0x27b931;return this[_0x5c398c(0x3be)]=!0x0,(0x0,_0x47f753[_0x5c398c(0x21a)])(()=>{const _0x53e78f=_0x5c398c;this[_0x53e78f(0x3be)]=!0x1,this[_0x53e78f(0x173)]();});}[_0x27b931(0x289)](_0x432db0){this['_onLocalMutation'](_0x432db0);}[_0x27b931(0x3f5)](_0x37a638){const _0x16e3bf=_0x27b931;this['_state']=_0x37a638,this[_0x16e3bf(0xd4)][_0x16e3bf(0x396)](_0x37a638);}async[_0x27b931(0xee)](){const _0x3499e8=_0x27b931;if(this[_0x3499e8(0x3f5)](await this['_createInitialState']()),this[_0x3499e8(0x2ee)]){var _0x593177;(_0x593177=this['_singleActiveUnitService'])==null||_0x593177['editingUnit'](this[_0x3499e8(0x2ea)]),this[_0x3499e8(0x3d7)](this[_0x3499e8(0x2ee)][_0x3499e8(0x119)](this['unitID'])['subscribe'](_0x5b4d1f=>{const _0x42d776=_0x3499e8;this[_0x42d776(0x1a1)][_0x42d776(0x418)](_0x42d776(0x237),'editing\x20status\x20changed\x20to',_0x5b4d1f),_0x5b4d1f===0x1?(this[_0x42d776(0x304)][_0x42d776(0x1f8)]({'id':_0x42d776(0x113)}),this[_0x42d776(0x373)]['updatePermissionPoint'](new _0x1e2709['WorkbookEditablePermission'](this[_0x42d776(0x2ea)])['id'],!0x1),this[_0x42d776(0x373)][_0x42d776(0x2ed)](!0x1)):(this[_0x42d776(0x373)]['updatePermissionPoint'](new _0x1e2709['WorkbookEditablePermission'](this[_0x42d776(0x2ea)])['id'],!0x0),this['_permissionService'][_0x42d776(0x2ed)](!0x0));}));}let _0x4fccd0=!0x1;return this[_0x3499e8(0x3d7)](this['session'][_0x3499e8(0x2f1)][_0x3499e8(0x38e)](_0x4de845=>{const _0x228b93=_0x3499e8;_0x4de845===0x3?this['_toggleOnline'](_0x4fccd0):_0x4de845===0x2&&(_0x4fccd0=!0x0,this[_0x228b93(0x158)]());})),this[_0x3499e8(0x3d7)](this[_0x3499e8(0x1ee)][_0x3499e8(0x2ef)]['subscribe'](_0x1b00d7=>{const _0x3df785=_0x3499e8;try{switch(_0x1b00d7['eventID']){case _0x149d12[_0x3df785(0x3eb)][_0x3df785(0x391)]:this[_0x3df785(0x306)]((0x0,_0x149d12['parseProtocolChangeset'])(_0x1b00d7['data']));break;case _0x149d12[_0x3df785(0x3eb)]['CHANGESET_ACK']:this[_0x3df785(0x1c4)](_0x1b00d7['data']);break;case _0x149d12[_0x3df785(0x3eb)][_0x3df785(0x3ab)]:this[_0x3df785(0x307)]();break;case _0x149d12[_0x3df785(0x3eb)][_0x3df785(0x123)]:this[_0x3df785(0x372)](_0x1b00d7[_0x3df785(0x401)]);break;case _0x149d12[_0x3df785(0x3eb)][_0x3df785(0x2fb)]:this[_0x3df785(0x31f)](_0x1b00d7[_0x3df785(0x401)][_0x3df785(0x3a9)][_0x3df785(0x394)](_0x1cce04=>(0x0,_0x149d12[_0x3df785(0x3b3)])(_0x1cce04)));break;case _0x149d12[_0x3df785(0x3eb)][_0x3df785(0x168)]:this[_0x3df785(0x307)]({'isPermissionRej':!0x0});break;case _0x149d12['CollaborationEvent']['UNISCRIPT_RUN']:break;}}catch(_0x4c10aa){throw console[_0x3df785(0x294)](_0x3df785(0x33e),_0x4c10aa),_0x4c10aa;}})),this[_0x3499e8(0x1b5)];}['_unlockTransition'](){const _0x9a1961=_0x27b931;this[_0x9a1961(0x2b7)]=!0x1;}[_0x27b931(0x102)](){const _0x11c03b=_0x27b931;if(this[_0x11c03b(0x2b7)])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x11c03b(0x2b7)]=!0x0;}[_0x27b931(0x37e)](_0x5b939a){const _0xe99e73=_0x27b931;this[_0xe99e73(0x102)](),this[_0xe99e73(0x3f5)](this['_state']['appendMutation'](_0x5b939a)),this[_0xe99e73(0x353)]();}[_0x27b931(0x306)](_0x37f8b1){const _0x1861e9=_0x27b931;if(!(_0x37f8b1['revision']<=this['_revisionService'][_0x1861e9(0x322)](this['unitID']))){if(this[_0x1861e9(0x3be)]){this[_0x1861e9(0x1d8)][_0x1861e9(0x30b)](_0x37f8b1);return;}this[_0x1861e9(0x126)](_0x37f8b1);}}[_0x27b931(0x173)](){const _0xe69977=_0x27b931;this[_0xe69977(0x1d8)][_0xe69977(0x302)](_0x6a6e40=>this[_0xe69977(0x126)](_0x6a6e40)),this[_0xe69977(0x1d8)]=[];}[_0x27b931(0x126)](_0x2c66d8){const _0x1180ae=_0x27b931;let _0x1b88ae=this['_compressMutationService'][_0x1180ae(0x183)][_0x1180ae(0x2a8)](this[_0x1180ae(0x39c)][_0x1180ae(0x183)][_0x1180ae(0x351)]()[_0x1180ae(0x188)])(_0x2c66d8['mutations'],null)||_0x2c66d8['mutations'],_0x2b3d70={..._0x2c66d8,'mutations':_0x1b88ae};this['_lockTransition'](),this[_0x1180ae(0x3f5)](this[_0x1180ae(0x1b5)]['onRemoteChangeset'](_0x2b3d70)),this[_0x1180ae(0x353)]();}['_onRemoteACK'](_0x591810){const _0x3c4969=_0x27b931;this[_0x3c4969(0x102)](),this['_updateState'](this[_0x3c4969(0x1b5)]['onRemoteAck'](_0x591810)),this[_0x3c4969(0x353)]();}[_0x27b931(0x307)](_0x7266a){const _0x3b79b9=_0x27b931;this[_0x3b79b9(0x102)](),this[_0x3b79b9(0x3f5)](this[_0x3b79b9(0x1b5)][_0x3b79b9(0xef)](_0x7266a)),this[_0x3b79b9(0x353)]();}[_0x27b931(0x372)](_0x344e02){const _0x1f8841=_0x27b931;this[_0x1f8841(0x102)](),this[_0x1f8841(0x3f5)](this[_0x1f8841(0x1b5)][_0x1f8841(0x21d)](_0x344e02)),this['_unlockTransition']();}[_0x27b931(0x31f)](_0x2832c4){const _0x344727=_0x27b931;if(!(this[_0x344727(0x1b5)]instanceof _0x3b1a33))throw TypeError(_0x344727(0x2b8));let _0x50a849=_0x2832c4[_0x344727(0x394)](_0x52cef1=>{const _0x5a47ff=_0x344727;let _0x426774=this[_0x5a47ff(0x39c)][_0x5a47ff(0x183)][_0x5a47ff(0x2a8)](this[_0x5a47ff(0x39c)]['interceptor'][_0x5a47ff(0x351)]()[_0x5a47ff(0x188)])(_0x52cef1[_0x5a47ff(0x35e)],null)||_0x52cef1[_0x5a47ff(0x35e)];return{..._0x52cef1,'mutations':_0x426774};});this[_0x344727(0x102)](),this['_updateState'](this[_0x344727(0x1b5)][_0x344727(0x2e2)](_0x50a849)),this[_0x344727(0x353)]();}[_0x27b931(0x158)](){const _0x389eb4=_0x27b931;this[_0x389eb4(0x102)](),this[_0x389eb4(0x3f5)](this[_0x389eb4(0x1b5)][_0x389eb4(0x229)]()),this[_0x389eb4(0x353)]();}[_0x27b931(0x2e8)](_0x3f8a72=!0x1){const _0x1aab48=_0x27b931;this[_0x1aab48(0x102)](),this[_0x1aab48(0x3f5)](this[_0x1aab48(0x1b5)][_0x1aab48(0x2d1)]()),this['_unlockTransition']();let _0x29bcbb=this[_0x1aab48(0x1b5)];_0x3f8a72&&_0x29bcbb instanceof _0x50a3a4&&(this[_0x1aab48(0x102)](),this[_0x1aab48(0x3f5)](_0x29bcbb['fetchMiss']()),this['_unlockTransition']());}async['_createInitialState'](){return new Promise(_0x2944c7=>{const _0x1f2c28=_0x1420;this[_0x1f2c28(0x1ee)][_0x1f2c28(0x2f1)]['pipe']((0x0,_0x470009[_0x1f2c28(0x1c3)])(0x1))[_0x1f2c28(0x38e)](async _0x375609=>{const _0x1e4c9b=_0x1f2c28;_0x2944c7(await this[_0x1e4c9b(0x1ed)](_0x375609===0x3));});});}[_0x27b931(0x411)](){const _0x5086c9=_0x27b931;let _0x959ff8=this[_0x5086c9(0x2ea)];return{'onStateChange':(_0x351825,_0x5d09a4)=>{const _0x580568=_0x5086c9;if(_0x351825!==this[_0x580568(0x1b5)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x351825[_0x580568(0x397)]+_0x580568(0x347)+_0x5d09a4[_0x580568(0x397)]+_0x580568(0x293)+this[_0x580568(0x1b5)][_0x580568(0x397)]);this[_0x580568(0x3f5)](_0x5d09a4);},'onSendChangeset':_0x5aa354=>{const _0x34aa01=_0x5086c9;_0x5aa354[_0x34aa01(0x2c9)]||(_0x5aa354[_0x34aa01(0x2c9)]=this[_0x34aa01(0x2a6)],_0x5aa354[_0x34aa01(0x20d)]=++this[_0x34aa01(0x2c7)]);let _0x12f673={'eventID':_0x149d12['CollaborationEvent'][_0x34aa01(0x15e)],'data':{'unitID':_0x5aa354[_0x34aa01(0x2ea)],'unitType':this[_0x34aa01(0x2f2)],'changeset':_0x5aa354,'memberID':this[_0x34aa01(0x1ee)]['getMemberID']()}};this[_0x34aa01(0x1ee)][_0x34aa01(0x16b)](_0x12f673,this[_0x34aa01(0x2ea)]);},'onMissingChangesets':({from:_0x48bad9,to:_0x3088de})=>{const _0x368ac7=_0x5086c9;this['_logService']['debug'](_0x368ac7(0x237),_0x368ac7(0x2bb)+_0x48bad9+_0x368ac7(0x276)+_0x3088de);let _0x257d3c={'eventID':_0x149d12['CollaborationEvent']['FETCH_MISSING'],'data':{'unitID':_0x959ff8,'unitType':this[_0x368ac7(0x2f2)],'from':_0x48bad9,'to':_0x3088de}};this['session'][_0x368ac7(0x16b)](_0x257d3c,this[_0x368ac7(0x2ea)]);}};}async['_createInitialStateImpl'](_0x45ae2e){const _0x2cabbe=_0x27b931;var _0x44c51d,_0x57b94c,_0x33e589;let _0x57a8b7=await((_0x44c51d=this[_0x2cabbe(0x189)])==null?void 0x0:_0x44c51d[_0x2cabbe(0x2e3)](this['unitID'])),_0x2460cc=(_0x57b94c=_0x57a8b7==null?void 0x0:_0x57a8b7[_0x2cabbe(0x35e)])==null?[]:_0x57b94c,_0x56959=(_0x33e589=_0x57a8b7==null?void 0x0:_0x57a8b7[_0x2cabbe(0x1c8)])==null?null:_0x33e589,_0xa23cd9=!!(_0x56959!=null&&_0x56959[_0x2cabbe(0x2c9)])&&!!(_0x56959!=null&&_0x56959['reqId']);this[_0x2cabbe(0x2a6)]=_0xa23cd9?_0x56959[_0x2cabbe(0x2c9)]:(0x0,_0x149d12[_0x2cabbe(0x35f)])(),this['_changesetReqId']=_0xa23cd9?_0x56959[_0x2cabbe(0x20d)]:0x0;let _0x11a74a=this[_0x2cabbe(0x2ea)];try{this['_replayCachedMutations'](_0x56959,_0x2460cc);}catch(_0x4b6066){this['_logService'][_0x2cabbe(0x294)](_0x4b6066);}let _0x28c84d=this[_0x2cabbe(0x411)]();if(_0x45ae2e){let _0x4c8c19=_0x1512ca(this[_0x2cabbe(0x2fe)],_0x11a74a,this[_0x2cabbe(0x2f2)],_0x56959,_0x2460cc,_0x28c84d);return _0x4c8c19 instanceof _0x467875?_0x4c8c19['_schedule']():(_0x4c8c19 instanceof _0x15bd87||_0x4c8c19 instanceof _0x42dff3)&&_0x4c8c19[_0x2cabbe(0x36c)](),_0x4c8c19;}return this[_0x2cabbe(0x2fe)]['createInstance'](_0x58261a,_0x11a74a,this['_type'],_0x56959,_0x2460cc,_0x28c84d);}['_replayCachedMutations'](_0x47a513,_0x1b7f76){const _0x26793f=_0x27b931;var _0x451392,_0x44e41a;let _0x288efa=this[_0x26793f(0x39c)][_0x26793f(0x183)][_0x26793f(0x2a8)](this[_0x26793f(0x39c)][_0x26793f(0x183)][_0x26793f(0x351)]()[_0x26793f(0x188)]);(_0x451392=_0x288efa((_0x47a513==null?void 0x0:_0x47a513['mutations'])||[],null))==null||_0x451392['forEach'](_0x41f747=>this[_0x26793f(0x38d)][_0x26793f(0x18e)](_0x41f747['id'],_0x41f747[_0x26793f(0xfc)])),(_0x44e41a=_0x288efa(_0x1b7f76||[],null))==null||_0x44e41a['forEach'](_0x16a42e=>this[_0x26793f(0x38d)]['executeCommand'](_0x16a42e['id'],_0x16a42e[_0x26793f(0xfc)]));}};_0x25f5ac=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x4,(0x0,_0x47f753['Inject'])(_0x149d12[_0x27b931(0x37f)])),_0x2af294(0x5,(0x0,_0x47f753['Inject'])(_0x47f753['LocaleService'])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x8,_0x47f753['IUniverInstanceService']),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0xb,_0x47f753[_0x27b931(0x3ce)]),_0x2af294(0xc,(0x0,_0x47f753['Optional'])(_0x435069)),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x25f5ac);let _0x9eef43=class extends _0x25f5ac{constructor(_0x360220,_0x43aab0,_0x3ed42c,_0x54f7e7,_0x18a329,_0x1131d6,_0x276104,_0x1e868f,_0x50dc6b,_0x27a478,_0x2d9478,_0x516ac8,_0x4f2e7d,_0x38285f,_0x2f8c07){const _0x723622=_0x27b931;super(_0x360220,_0x3ed42c,_0x43aab0,_0x54f7e7,_0x18a329,_0x1131d6,_0x276104,_0x1e868f,_0x50dc6b,_0x27a478,_0x2d9478,_0x516ac8,_0x38285f,_0x2f8c07),this['unitID']=_0x360220,this[_0x723622(0x2af)]=_0x43aab0,this['_docStateChangeManagerService']=_0x4f2e7d,_0x2dd74e(this,_0x723622(0x14a),null);}[_0x27b931(0x28e)](_0x2e0cac){const _0x5a703a=_0x27b931;this[_0x5a703a(0x14a)]=_0x2e0cac;}['dispose'](){const _0x2b23af=_0x27b931;this[_0x2b23af(0x14a)]=null,super['dispose']();}[_0x27b931(0x411)](){const _0x442eec=_0x27b931;let _0x972d6d=super[_0x442eec(0x411)]();return _0x972d6d[_0x442eec(0x384)]=_0x197c26=>{const _0x213cd9=_0x442eec;var _0x5cc0b4,_0x280017;return(_0x5cc0b4=this[_0x213cd9(0x14a)])==null||(_0x280017=_0x5cc0b4[_0x213cd9(0x384)])==null?void 0x0:_0x280017[_0x213cd9(0x25a)](_0x5cc0b4,_0x197c26);},_0x972d6d[_0x442eec(0x24d)]=_0x4bbb39=>{const _0x2f045b=_0x442eec;var _0x2ed162,_0x532721;return(_0x2ed162=this[_0x2f045b(0x14a)])==null||(_0x532721=_0x2ed162[_0x2f045b(0x24d)])==null?void 0x0:_0x532721[_0x2f045b(0x25a)](_0x2ed162,_0x4bbb39);},_0x972d6d[_0x442eec(0x3af)]=_0x313d8a=>{const _0x228152=_0x442eec;var _0x4a4e1b,_0x49bcc2;return(_0x4a4e1b=this[_0x228152(0x14a)])==null||(_0x49bcc2=_0x4a4e1b[_0x228152(0x3af)])==null?void 0x0:_0x49bcc2[_0x228152(0x25a)](_0x4a4e1b,_0x313d8a);},_0x972d6d[_0x442eec(0x10b)]=_0x48e349=>{const _0x19f322=_0x442eec;var _0x2f564e,_0x1c4efb;return(_0x2f564e=this['_handlerCallback'])==null||(_0x1c4efb=_0x2f564e[_0x19f322(0x10b)])==null?void 0x0:_0x1c4efb[_0x19f322(0x25a)](_0x2f564e,_0x48e349);},_0x972d6d[_0x442eec(0x291)]=_0x3b5c63=>{const _0x4a62d6=_0x442eec;var _0x23e1c1,_0x2d5631,_0x3dc779;return(_0x23e1c1=(_0x2d5631=this['_handlerCallback'])==null||(_0x3dc779=_0x2d5631[_0x4a62d6(0x291)])==null?void 0x0:_0x3dc779[_0x4a62d6(0x25a)](_0x2d5631,_0x3b5c63))==null?_0x3b5c63:_0x23e1c1;},_0x972d6d[_0x442eec(0x2d3)]=_0x2955bd=>{const _0x110ef3=_0x442eec;var _0x3bd4e2,_0x9c5a20,_0x1117ed;return(_0x3bd4e2=(_0x9c5a20=this['_handlerCallback'])==null||(_0x1117ed=_0x9c5a20[_0x110ef3(0x2d3)])==null?void 0x0:_0x1117ed[_0x110ef3(0x25a)](_0x9c5a20,_0x2955bd))==null?_0x2955bd:_0x3bd4e2;},_0x972d6d;}async[_0x27b931(0xee)](){const _0x86b725=_0x27b931;let _0x5d95b5=await super[_0x86b725(0xee)]();return this[_0x86b725(0x3d7)](this[_0x86b725(0x2c1)][_0x86b725(0x3b8)][_0x86b725(0x38e)](_0x239187=>{const _0x570333=_0x86b725;if(_0x239187==null||_0x239187[_0x570333(0x320)]!==this[_0x570333(0x2ea)])return;let {commandId:_0x103046,redoState:_0x31dd37,unitId:_0x576456}=_0x239187,_0x2a8435={'id':_0x103046,'type':_0x47f753['CommandType'][_0x570333(0x2fa)],'params':{'unitId':_0x576456,'actions':_0x31dd37[_0x570333(0x1b8)],'textRanges':null}};this[_0x570333(0x37e)](_0x2a8435);})),this['disposeWithMe'](this[_0x86b725(0x38d)][_0x86b725(0x176)]((_0x1770e8,_0xbef6e8)=>{const _0x2ea8db=_0x86b725;if(_0x1770e8[_0x2ea8db(0x2af)]!==_0x47f753[_0x2ea8db(0x222)][_0x2ea8db(0x2fa)]||_0xbef6e8!=null&&_0xbef6e8[_0x2ea8db(0x41c)]||_0xbef6e8!=null&&_0xbef6e8[_0x2ea8db(0xe0)]||_0x1770e8['id']===_0x459006['RichTextEditingMutation']['id'])return;let _0x375c89=_0x1770e8[_0x2ea8db(0xfc)];if((_0x375c89==null?void 0x0:_0x375c89[_0x2ea8db(0x320)])!==this[_0x2ea8db(0x2ea)])return;let _0x38fd45=_0x1770e8,_0xa6f5cf=this[_0x2ea8db(0x39c)][_0x2ea8db(0x183)][_0x2ea8db(0x2a8)](this[_0x2ea8db(0x39c)][_0x2ea8db(0x183)][_0x2ea8db(0x351)]()[_0x2ea8db(0x11b)])([_0x38fd45],this[_0x2ea8db(0x37d)])||[_0x38fd45];this[_0x2ea8db(0x37e)](_0xa6f5cf[0x0]);})),_0x5d95b5;}};_0x9eef43=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12['CompressMutationService'])),_0x2af294(0x5,(0x0,_0x47f753['Inject'])(_0x47f753['LocaleService'])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12['RevisionService'])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x8,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0xb,_0x47f753[_0x27b931(0x3ce)]),_0x2af294(0xc,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x459006[_0x27b931(0x356)])),_0x2af294(0xd,(0x0,_0x47f753['Optional'])(_0x435069)),_0x2af294(0xe,(0x0,_0x47f753['Optional'])(_0x419224))],_0x9eef43);let _0x5c3e77=class extends _0x25f5ac{constructor(_0x59db3b,_0x219289,_0xbe3a38,_0x5e60fe,_0x2a6bf9,_0xb0e3ec,_0x851988,_0x42f89a,_0x222f94,_0xb3f9b0,_0x32e921,_0x5bbcaa,_0x300ad1,_0xb12d6c){const _0x298a15=_0x27b931;super(_0x59db3b,_0xbe3a38,_0x219289,_0x5e60fe,_0x2a6bf9,_0xb0e3ec,_0x851988,_0x42f89a,_0x222f94,_0xb3f9b0,_0x32e921,_0x5bbcaa,_0x300ad1,_0xb12d6c),this[_0x298a15(0x2ea)]=_0x59db3b,this[_0x298a15(0x2af)]=_0x219289;}async[_0x27b931(0xee)](){const _0x28f07e=_0x27b931;let _0x4c9bb0=await super[_0x28f07e(0xee)]();return this[_0x28f07e(0x3d7)](this[_0x28f07e(0x38d)]['onMutationExecutedForCollab']((_0x1179ce,_0x305f73)=>{const _0xe9a418=_0x28f07e;if(_0x1179ce['type']!==_0x47f753['CommandType'][_0xe9a418(0x2fa)]||_0x305f73!=null&&_0x305f73[_0xe9a418(0x41c)]||_0x305f73!=null&&_0x305f73[_0xe9a418(0xe0)])return;let _0x22ec1b=_0x1179ce[_0xe9a418(0xfc)];if((_0x22ec1b==null?void 0x0:_0x22ec1b[_0xe9a418(0x320)])!==this[_0xe9a418(0x2ea)])return;let _0x3ec508=_0x1179ce,_0x57f982=this[_0xe9a418(0x39c)][_0xe9a418(0x183)]['fetchThroughInterceptors'](this[_0xe9a418(0x39c)][_0xe9a418(0x183)][_0xe9a418(0x351)]()[_0xe9a418(0x11b)])([_0x3ec508],this['_univerInstanceService'])||[_0x3ec508];this['_onLocalMutation'](_0x57f982[0x0]);})),_0x4c9bb0;}};_0x5c3e77=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x37f)])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['LocaleService'])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x8,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x9,_0x47f753['ILogService']),_0x2af294(0xa,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0xb,_0x47f753[_0x27b931(0x3ce)]),_0x2af294(0xc,(0x0,_0x47f753[_0x27b931(0x233)])(_0x435069)),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x5c3e77);let _0x151d10=class extends _0x25f5ac{constructor(_0x56d3b3,_0x962f4f,_0x4a5b9d,_0xa80cb0,_0x5c4e7e,_0x3e8af7,_0x40f5fc,_0x2441f5,_0x255643,_0x44acc7,_0xae2883,_0x11cecf,_0x77f54,_0x3a8bc1,_0x3bc65f){const _0x1ee84e=_0x27b931;super(_0x56d3b3,_0x4a5b9d,_0x962f4f,_0xa80cb0,_0x5c4e7e,_0x3e8af7,_0x40f5fc,_0x255643,_0x44acc7,_0xae2883,_0x11cecf,_0x77f54,_0x3a8bc1,_0x3bc65f),this[_0x1ee84e(0x2ea)]=_0x56d3b3,this['type']=_0x962f4f,this['_sheetTransformSelectionsService']=_0x2441f5;}[_0x27b931(0x411)](){const _0x3c126b=_0x27b931;let _0x5a8cbd=super[_0x3c126b(0x411)]();return _0x5a8cbd[_0x3c126b(0x3af)]=_0x24df1f=>this[_0x3c126b(0x187)][_0x3c126b(0x299)](_0x24df1f),_0x5a8cbd;}async[_0x27b931(0xee)](){const _0x4c985b=_0x27b931;let _0x568e46=await super[_0x4c985b(0xee)]();return this[_0x4c985b(0x3d7)](this[_0x4c985b(0x38d)][_0x4c985b(0x176)]((_0x2ea1f1,_0x17d655)=>{const _0xd58ba8=_0x4c985b;if(_0x2ea1f1[_0xd58ba8(0x2af)]!==_0x47f753[_0xd58ba8(0x222)][_0xd58ba8(0x2fa)]||_0x17d655!=null&&_0x17d655[_0xd58ba8(0x41c)]||_0x17d655!=null&&_0x17d655[_0xd58ba8(0xe0)])return;let _0x1efae4=_0x2ea1f1[_0xd58ba8(0xfc)];if((_0x1efae4==null?void 0x0:_0x1efae4[_0xd58ba8(0x320)])!==this[_0xd58ba8(0x2ea)])return;let _0x2683fd=_0x2ea1f1,_0x1ba3a3=this['_compressMutationService'][_0xd58ba8(0x183)][_0xd58ba8(0x2a8)](this['_compressMutationService']['interceptor'][_0xd58ba8(0x351)]()['COMPRESS_MUTATION_SEND'])([_0x2683fd],this[_0xd58ba8(0x37d)])||[_0x2683fd];this['_onLocalMutation'](_0x1ba3a3[0x0]);})),_0x568e46;}};_0x151d10=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['Injector'])),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12['CompressMutationService'])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0xde)])),_0x2af294(0x6,(0x0,_0x47f753['Inject'])(_0x149d12['RevisionService'])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2e077e)),_0x2af294(0x8,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x9,_0x47f753[_0x27b931(0x235)]),_0x2af294(0xa,_0x47f753['ILogService']),_0x2af294(0xb,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0xc,_0x47f753['IPermissionService']),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x435069)),_0x2af294(0xe,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x151d10);let _0x292824=class extends _0x25f5ac{constructor(_0x4285d6,_0x29417c,_0x46772c,_0x2b31e4,_0x3f3f95,_0x2e5381,_0x2b2595,_0x39431d,_0x129610,_0x4cf3ab,_0x10bdf0,_0x25c326,_0x2de6a2,_0x571294){const _0x11e54d=_0x27b931;super(_0x4285d6,_0x46772c,_0x29417c,_0x2b31e4,_0x3f3f95,_0x2e5381,_0x2b2595,_0x39431d,_0x129610,_0x4cf3ab,_0x10bdf0,_0x25c326,_0x2de6a2,_0x571294),this[_0x11e54d(0x2ea)]=_0x4285d6,this[_0x11e54d(0x2af)]=_0x29417c;}async[_0x27b931(0xee)](){const _0x31516e=_0x27b931;let _0x6e0cef=await super['_init']();return this[_0x31516e(0x3d7)](this[_0x31516e(0x38d)][_0x31516e(0x176)]((_0x840fae,_0x124705)=>{const _0x1db22e=_0x31516e;if(_0x840fae[_0x1db22e(0x2af)]!==_0x47f753[_0x1db22e(0x222)][_0x1db22e(0x2fa)]||_0x124705!=null&&_0x124705[_0x1db22e(0x41c)]||_0x124705!=null&&_0x124705['onlyLocal'])return;let _0x4f5dbb=_0x840fae[_0x1db22e(0xfc)];if((_0x4f5dbb==null?void 0x0:_0x4f5dbb[_0x1db22e(0x320)])!==this['unitID'])return;let _0x5c0389=_0x840fae,_0x35eeb2=this[_0x1db22e(0x39c)][_0x1db22e(0x183)][_0x1db22e(0x2a8)](this[_0x1db22e(0x39c)][_0x1db22e(0x183)][_0x1db22e(0x351)]()[_0x1db22e(0x11b)])([_0x5c0389],this['_univerInstanceService'])||[_0x5c0389];this[_0x1db22e(0x37e)](_0x35eeb2[0x0]);})),_0x6e0cef;}};_0x292824=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x37f)])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0xde)])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x7,(0x0,_0x47f753['Inject'])(_0x2a71d9)),_0x2af294(0x8,_0x47f753['IUniverInstanceService']),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x47f753['ICommandService']),_0x2af294(0xb,_0x47f753[_0x27b931(0x3ce)]),_0x2af294(0xc,(0x0,_0x47f753['Optional'])(_0x435069)),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x292824);let _0x4b522f=class extends _0x25f5ac{constructor(_0x24d450,_0x1678a9,_0x1dbfb2,_0x21ca05,_0x12516f,_0x5756ae,_0x39fc1e,_0x5a4713,_0x461ffb,_0xaae6e,_0x299d45,_0x20c75b,_0x2c90fb,_0x3fd0c2){const _0x3f9838=_0x27b931;super(_0x24d450,_0x1dbfb2,_0x1678a9,_0x21ca05,_0x12516f,_0x5756ae,_0x39fc1e,_0x5a4713,_0x461ffb,_0xaae6e,_0x299d45,_0x20c75b,_0x2c90fb,_0x3fd0c2),this[_0x3f9838(0x2ea)]=_0x24d450,this[_0x3f9838(0x2af)]=_0x1678a9;}async[_0x27b931(0xee)](){const _0x500416=_0x27b931;let _0x451db9=await super[_0x500416(0xee)]();return this[_0x500416(0x3d7)](this[_0x500416(0x38d)]['onMutationExecutedForCollab']((_0x4e5f02,_0x13e503)=>{const _0x59d4fb=_0x500416;if(_0x4e5f02['type']!==_0x47f753[_0x59d4fb(0x222)]['MUTATION']||_0x13e503!=null&&_0x13e503[_0x59d4fb(0x41c)]||_0x13e503!=null&&_0x13e503[_0x59d4fb(0xe0)])return;let _0x10fe65=_0x4e5f02[_0x59d4fb(0xfc)];if((_0x10fe65==null?void 0x0:_0x10fe65[_0x59d4fb(0x320)])!==this[_0x59d4fb(0x2ea)])return;let _0x1f5fdb=_0x4e5f02,_0x267e44=this['_compressMutationService'][_0x59d4fb(0x183)]['fetchThroughInterceptors'](this[_0x59d4fb(0x39c)][_0x59d4fb(0x183)][_0x59d4fb(0x351)]()['COMPRESS_MUTATION_SEND'])([_0x1f5fdb],this[_0x59d4fb(0x37d)])||[_0x1f5fdb];this[_0x59d4fb(0x37e)](_0x267e44[0x0]);})),_0x451db9;}};_0x4b522f=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753['Inject'])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x4,(0x0,_0x47f753['Inject'])(_0x149d12[_0x27b931(0x37f)])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0xde)])),_0x2af294(0x6,(0x0,_0x47f753['Inject'])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x8,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0xb,_0x47f753[_0x27b931(0x3ce)]),_0x2af294(0xc,(0x0,_0x47f753[_0x27b931(0x233)])(_0x435069)),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x4b522f);let _0x4501c7=(0x0,_0x47f753['createIdentifier'])(_0x27b931(0x3b5));function _0x44e4df(_0x331c06){const _0x16cd14=_0x27b931;let _0x2e9b78=_0x331c06[_0x16cd14(0x401)],_0x2a7bbe=JSON[_0x16cd14(0x283)](_0x2e9b78);switch(_0x2a7bbe[_0x16cd14(0x32c)]){case _0x26a654[_0x16cd14(0x185)][_0x16cd14(0x3df)]:case _0x26a654['CombCmd']['HELLO']:{let _0x25bc58=_0x2a7bbe[_0x16cd14(0x26a)];return{..._0x2a7bbe,'data':_0x25bc58,'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};}case _0x26a654[_0x16cd14(0x185)][_0x16cd14(0x1e9)]:{let _0x25692a=_0x2a7bbe[_0x16cd14(0x19f)];return{..._0x2a7bbe,'data':_0x25692a,'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};}case _0x26a654[_0x16cd14(0x185)][_0x16cd14(0x34a)]:{let _0xb5b34a=_0x2a7bbe[_0x16cd14(0x3ad)];switch(_0xb5b34a[_0x16cd14(0x1a4)]){case _0x149d12['CollaborationEvent'][_0x16cd14(0x168)]:var _0x2485c0;return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':(_0x2485c0=_0xb5b34a[_0x16cd14(0x13d)])==null?void 0x0:_0x2485c0['cs']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x369)]:var _0x51237d;return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':(_0x51237d=_0xb5b34a['csAckEvent'])==null?void 0x0:_0x51237d['cs']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)]['NEW_CHANGESETS']:var _0x13ec9c;return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':(_0x13ec9c=_0xb5b34a[_0x16cd14(0x2b4)])==null?void 0x0:_0x13ec9c['cs']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)]['CHANGESET_REJ']:var _0x55dd82;return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':(_0x55dd82=_0xb5b34a[_0x16cd14(0x2de)])==null?void 0x0:_0x55dd82['cs']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x123)]:var _0x451eb1;return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':(_0x451eb1=_0xb5b34a[_0x16cd14(0x3d5)])==null?void 0x0:_0x451eb1['cs']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12['CollaborationEvent']['UPDATE_CURSOR']:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a['updateCursorEvent']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x260)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0xeb)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x337)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0x2ba)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x3fb)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a['liveShareNewHost']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x1f0)]:case _0x149d12['CollaborationEvent'][_0x16cd14(0x389)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0x1db)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x318)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0x3ed)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x2a7bbe,'data':_0xb5b34a,'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12['CollaborationEvent']['COMMENT_UPDATE']:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a['commentUpdateEvent']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x12d)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a['updatePermissionObjEvent']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x2ae)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0x2fc)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)]['UNISCRIPT_RUN']:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0x273)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};default:return _0x2a7bbe;}}default:return _0x2a7bbe;}}function _0x5db7a4(_0x58b983){const _0x49a4a1=_0x27b931;switch(_0x58b983[_0x49a4a1(0x32c)]){case _0x26a654[_0x49a4a1(0x185)][_0x49a4a1(0x3df)]:case _0x26a654[_0x49a4a1(0x185)][_0x49a4a1(0x40c)]:return JSON[_0x49a4a1(0x3e5)]({'cmd':_0x58b983[_0x49a4a1(0x32c)],'routeKey':_0x58b983[_0x49a4a1(0x31b)]});case _0x26a654[_0x49a4a1(0x185)][_0x49a4a1(0x264)]:{let _0x39c782;switch(_0x58b983[_0x49a4a1(0x401)][_0x49a4a1(0x1a4)]){case _0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x257)]:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x257)],'updateCursorEvent':_0x58b983[_0x49a4a1(0x401)]['data']};break;case _0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x337)]:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)]['USERS_LEAVE'],'leaveEvent':_0x58b983[_0x49a4a1(0x401)][_0x49a4a1(0x401)]};break;case _0x149d12['CollaborationEvent']['USERS_ENTER']:_0x39c782={'eventID':_0x149d12['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x58b983[_0x49a4a1(0x401)][_0x49a4a1(0x401)]};break;case _0x149d12['CollaborationEvent'][_0x49a4a1(0x3fb)]:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x58b983['data'][_0x49a4a1(0x401)]};break;case _0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x389)]:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x389)],'liveShareOperation':_0x58b983['data']['data']};break;case _0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x318)]:_0x39c782={'eventID':_0x149d12['CollaborationEvent'][_0x49a4a1(0x318)],'liveShareTerminate':_0x58b983['data'][_0x49a4a1(0x401)]};break;case _0x149d12[_0x49a4a1(0x3eb)]['LIVESHARE_REQUEST_HOST']:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x382)],'liveShareRequestHost':_0x58b983[_0x49a4a1(0x401)]['data']};break;case _0x149d12[_0x49a4a1(0x3eb)]['LIVESHARE_FETCH_OPERATIONS']:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x1f0)]};break;default:_0x39c782={'eventID':_0x58b983[_0x49a4a1(0x401)][_0x49a4a1(0x1a4)]};}return JSON['stringify']({'cmd':_0x58b983[_0x49a4a1(0x32c)],'routeKey':_0x58b983['routeKey'],'collaMsg':_0x39c782});}case _0x26a654[_0x49a4a1(0x185)]['JOIN']:return JSON[_0x49a4a1(0x3e5)]({'cmd':_0x58b983['cmd'],'routeKey':_0x58b983['routeKey'],'joinReq':_0x58b983[_0x49a4a1(0x401)]});case _0x26a654[_0x49a4a1(0x185)]['LEAVE']:return JSON['stringify']({'cmd':_0x58b983[_0x49a4a1(0x32c)],'routeKey':_0x58b983[_0x49a4a1(0x31b)],'leaveReq':_0x58b983[_0x49a4a1(0x401)]});default:throw Error(_0x49a4a1(0x295));}}let _0x2bd014=(0x0,_0x47f753['createIdentifier'])('univer-pro.collaboration-client-socket-service');function _0x24f9db(_0x4bad50,_0x724b6c,_0x114b75){const _0x23a48e=_0x27b931;return _0x4bad50+'/'+_0x724b6c+_0x23a48e(0x288)+_0x114b75+_0x23a48e(0x3f6);}let _0x1bc98c=class extends _0x47f753[_0x27b931(0x25e)]{constructor(_0x12ecdf,_0x42177a,_0x52a666,_0x2665c0,_0x119933){const _0x1deb8b=_0x27b931;super(),this['_injector']=_0x12ecdf,this[_0x1deb8b(0x3d8)]=_0x42177a,this[_0x1deb8b(0x228)]=_0x52a666,this[_0x1deb8b(0x1a1)]=_0x2665c0,this[_0x1deb8b(0x25f)]=_0x119933;}['_doCreateSocket'](_0x8f85ed){const _0xf8337a=_0x27b931;let _0x253316=this[_0xf8337a(0x2fe)][_0xf8337a(0x1ad)](_0x8f2da5[_0xf8337a(0x10a)]);if(!_0x253316)throw Error(_0xf8337a(0x3ee));let _0x355985=_0x253316[_0xf8337a(0x1fa)](_0x8f85ed);if(!_0x355985)throw Error(_0xf8337a(0x357));let _0x4402bd=new _0x47f753[(_0xf8337a(0x3bb))](),_0x715eff=new _0x470009[(_0xf8337a(0x256))]();_0x4402bd['add'](_0x355985[_0xf8337a(0x2ad)][_0xf8337a(0x38e)](_0x4bf796=>_0x715eff['next'](_0x4bf796))),_0x4402bd[_0xf8337a(0x150)]((0x0,_0x47f753[_0xf8337a(0x21a)])(()=>_0x715eff[_0xf8337a(0x32e)]()));let _0x1c7f9b=new _0x470009['Subject']();_0x4402bd[_0xf8337a(0x150)](_0x355985[_0xf8337a(0xe5)]['subscribe'](_0x5014ad=>_0x1c7f9b[_0xf8337a(0x396)](_0x5014ad))),_0x4402bd[_0xf8337a(0x150)]((0x0,_0x47f753[_0xf8337a(0x21a)])(()=>_0x1c7f9b[_0xf8337a(0x32e)]()));let _0x482733=new _0x470009[(_0xf8337a(0x256))]();_0x4402bd['add'](_0x355985[_0xf8337a(0x38c)][_0xf8337a(0x38e)](_0x597f18=>{let _0xf994c6=_0x44e4df(_0x597f18);_0x482733['next'](_0xf994c6);})),_0x4402bd['add']((0x0,_0x47f753['toDisposable'])(()=>_0x482733[_0xf8337a(0x32e)]()));let _0x44e985,_0x40f59a=()=>{const _0x5ccca5=_0xf8337a;_0x1c7f9b[_0x5ccca5(0x396)](new Event('connection\x20error')),_0x715eff[_0x5ccca5(0x396)](new Event(_0x5ccca5(0x325))),_0x44e985[_0x5ccca5(0x15b)]();};return _0x44e985={'memberID':'','close$':_0x715eff[_0xf8337a(0x2b2)](),'error$':_0x1c7f9b[_0xf8337a(0x2b2)](),'open$':_0x355985['open$'],'message$':_0x482733[_0xf8337a(0x2b2)](),'send':_0x10f839=>{const _0x2c830a=_0xf8337a;if(_0x10f839[_0x2c830a(0x32c)]===_0x26a654[_0x2c830a(0x185)][_0x2c830a(0x264)]){if(_0x10f839['data'][_0x2c830a(0x1a4)]===_0x149d12[_0x2c830a(0x3eb)][_0x2c830a(0x15e)]){this[_0x2c830a(0x3e6)](_0x44e985,_0x10f839['data'])[_0x2c830a(0x29a)](_0x43fac5=>{const _0x461914=_0x2c830a;this[_0x461914(0x1a1)][_0x461914(0x294)](_0x43fac5),_0x40f59a();});return;}if(_0x10f839['data'][_0x2c830a(0x1a4)]===_0x149d12[_0x2c830a(0x3eb)]['FETCH_MISSING']){let _0x18ecff=_0x10f839[_0x2c830a(0x401)];this['_fetchMissChangesets'](_0x18ecff)['then'](_0x5afb00=>{const _0x3b5bfd=_0x2c830a;_0x482733[_0x3b5bfd(0x396)]({'cmd':_0x26a654[_0x3b5bfd(0x185)]['RECV'],'code':_0x26a654[_0x3b5bfd(0x3d9)]['OK'],'routeKey':_0x18ecff[_0x3b5bfd(0x401)]['unitID'],'routeType':'','data':{'eventID':_0x149d12[_0x3b5bfd(0x3eb)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x5afb00}}});})[_0x2c830a(0x29a)](_0x245f78=>{const _0x362abd=_0x2c830a;this[_0x362abd(0x1a1)][_0x362abd(0x294)](_0x245f78),_0x40f59a();});return;}}_0x355985[_0x2c830a(0x16b)](_0x5db7a4(_0x10f839));},'close':()=>{const _0x4faddb=_0xf8337a;_0x355985[_0x4faddb(0x15b)](),_0x4402bd[_0x4faddb(0x2bc)]();}},_0x44e985;}async['_submitChangeset'](_0x144ad5,_0x44d749){const _0x5caf5a=_0x27b931;var _0x1487b1;let {unitType:_0xf99c55,unitID:_0x2c0894,changeset:_0xa73b1d}=_0x44d749[_0x5caf5a(0x401)],_0x5dfa39={'unitID':_0x2c0894,'memberID':_0x144ad5['memberID'],'type':_0xf99c55,'changeset':(0x0,_0x149d12[_0x5caf5a(0x253)])(_0xa73b1d)},_0x2884c3=this[_0x5caf5a(0x228)][_0x5caf5a(0x190)](_0x3c17be),_0xa5beba=_0x24f9db((_0x1487b1=_0x2884c3==null?void 0x0:_0x2884c3[_0x5caf5a(0x17c)])==null?'/universer-api/comb':_0x1487b1,_0xf99c55,_0x2c0894);try{await this['_httpService'][_0x5caf5a(0x139)](_0xa5beba,{'body':_0x5dfa39});}catch(_0x326a4f){throw this[_0x5caf5a(0x1a1)][_0x5caf5a(0x294)](_0x5caf5a(0x3ae),_0x5caf5a(0x2cc)),_0x326a4f;}}async[_0x27b931(0x1a7)](_0x2eeea6){const _0x515513=_0x27b931;let {unitID:_0x493817,from:_0x46a51f,to:_0x43fbd7,unitType:_0x57edb8}=_0x2eeea6[_0x515513(0x401)];return(await this[_0x515513(0x25f)][_0x515513(0x206)]({'metadata':void 0x0},{'unitID':_0x493817,'type':_0x57edb8,'from':_0x46a51f,'to':_0x43fbd7}))['changesets'][_0x515513(0x394)](_0xd7955c=>((_0xd7955c[_0x515513(0x35e)]===null||_0xd7955c['mutations']===void 0x0)&&(_0xd7955c[_0x515513(0x35e)]=[]),_0xd7955c));}};_0x1bc98c=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['Injector'])),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x8f2da5[_0x27b931(0x2e6)])),_0x2af294(0x2,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x3,_0x47f753['ILogService']),_0x2af294(0x4,_0x149d12['ISnapshotServerService'])],_0x1bc98c);let _0x1e5735=(0x0,_0x47f753['createIdentifier'])(_0x27b931(0x12f));function _0x122337(_0x2b5089={}){const _0x395d9f=_0x27b931;return _0x2b5089['resolveUnit']?{'resolveUnit':_0x2b5089[_0x395d9f(0x1d2)]}:{'resolveUnit':_0x1a5cd5=>({'target':{'unitId':_0x1a5cd5[_0x395d9f(0x320)],'unitType':_0x1a5cd5[_0x395d9f(0x36a)]}})};}function _0x1e962d(_0x5844cf,_0x3d11da,_0x3e0fd7){const _0x54a3e7=_0x27b931;var _0x1b7df3;let _0x1b1a98=_0x3e0fd7[_0x54a3e7(0x216)]['endpoint'];if(_0x1b1a98!=null&&_0x1b1a98[_0x54a3e7(0x1d0)]()==='')throw Error(_0x54a3e7(0x3a4));if(!_0x3e0fd7[_0x54a3e7(0x216)][_0x54a3e7(0x320)])throw Error(_0x54a3e7(0x310));return{'localUnitId':_0x5844cf,'unitType':_0x3d11da,'target':{'endpoint':_0x1b1a98,'unitId':_0x3e0fd7[_0x54a3e7(0x216)][_0x54a3e7(0x320)],'unitType':(_0x1b7df3=_0x3e0fd7[_0x54a3e7(0x216)]['unitType'])==null?_0x3d11da:_0x1b7df3},'changeset':_0x3e0fd7[_0x54a3e7(0x142)]};}let _0xc5d6a5=class extends _0x47f753['Disposable']{constructor(_0xe241fe,_0x46acdf,_0x3cd971,_0x1dc87b,_0x2ab592,_0x5a1e86,_0x4543cb){const _0x431c60=_0x27b931;super(),this['_injector']=_0xe241fe,this[_0x431c60(0x1a1)]=_0x46acdf,this[_0x431c60(0x228)]=_0x3cd971,this['_socketService']=_0x1dc87b,this[_0x431c60(0x11a)]=_0x2ab592,this[_0x431c60(0x159)]=_0x5a1e86,this['_networkConditionService']=_0x4543cb,_0x2dd74e(this,_0x431c60(0x359),new Map()),_0x2dd74e(this,_0x431c60(0x1d5),new Map()),_0x2dd74e(this,_0x431c60(0x106),new Map()),_0x2dd74e(this,_0x431c60(0x180),new Map()),_0x2dd74e(this,_0x431c60(0x2ff),this[_0x431c60(0xd8)](void 0x0)[_0x431c60(0x2ff)][_0x431c60(0x2b2)]()),_0x2dd74e(this,_0x431c60(0x248),new _0x470009[(_0x431c60(0x25b))](0x0)),_0x2dd74e(this,_0x431c60(0x3cd),this[_0x431c60(0x248)][_0x431c60(0x2b2)]()),this['_listenToNetworkCondition']();}[_0x27b931(0x19c)](){const _0x275fc2=_0x27b931;this[_0x275fc2(0x2c0)]&&this[_0x275fc2(0x3d7)](this[_0x275fc2(0x2c0)][_0x275fc2(0x3f3)][_0x275fc2(0x38e)](_0x4fabf2=>{const _0x4f7c31=_0x275fc2;_0x4fabf2&&this[_0x4f7c31(0x3fe)](),_0x4fabf2||this[_0x4f7c31(0x180)]['forEach'](_0x5c6aa7=>this[_0x4f7c31(0x3ac)](_0x5c6aa7));}));}[_0x27b931(0x2bc)](){const _0x5a2cf5=_0x27b931;super[_0x5a2cf5(0x2bc)](),this['_socketChannels'][_0x5a2cf5(0x302)](_0x432fa3=>{const _0x2e9373=_0x5a2cf5;var _0x50c120,_0x315cdd;(_0x50c120=_0x432fa3[_0x2e9373(0x27d)])==null||_0x50c120[_0x2e9373(0x138)](),_0x432fa3[_0x2e9373(0x27d)]=null,this[_0x2e9373(0x1e7)](_0x432fa3),this[_0x2e9373(0x2a2)](_0x432fa3),this[_0x2e9373(0x26c)](_0x432fa3),(_0x315cdd=_0x432fa3[_0x2e9373(0x2ff)][_0x2e9373(0x321)]())==null||_0x315cdd[_0x2e9373(0x15b)](),_0x432fa3[_0x2e9373(0x2ff)][_0x2e9373(0x32e)]();}),this[_0x5a2cf5(0x180)][_0x5a2cf5(0x249)](),this[_0x5a2cf5(0x359)][_0x5a2cf5(0x302)](_0x1d0ca7=>_0x1d0ca7[_0x5a2cf5(0x2bc)]()),this[_0x5a2cf5(0x359)][_0x5a2cf5(0x249)](),this[_0x5a2cf5(0x106)][_0x5a2cf5(0x249)](),this['_status$'][_0x5a2cf5(0x32e)]();}async[_0x27b931(0x410)](_0x1819c1,_0x1f290b){const _0x273ec6=_0x27b931;if(this[_0x273ec6(0x359)][_0x273ec6(0xff)](_0x1819c1))return this[_0x273ec6(0x359)][_0x273ec6(0x1ad)](_0x1819c1);let _0x255179=this[_0x273ec6(0x1d5)][_0x273ec6(0x1ad)](_0x1819c1);if(_0x255179)return _0x255179;let _0x1d65dc=this[_0x273ec6(0x1ab)](_0x1819c1,_0x1f290b);this['_pendingSessions'][_0x273ec6(0xf6)](_0x1819c1,_0x1d65dc);try{return await _0x1d65dc;}finally{this[_0x273ec6(0x1d5)]['delete'](_0x1819c1);}}async['_createSession'](_0x5a4823,_0x413be3){const _0x177b2c=_0x27b931;let _0x55d621=await this['_resolveSessionIdentity'](_0x5a4823,_0x413be3),_0x546f14=this[_0x177b2c(0xd8)](_0x55d621[_0x177b2c(0x216)]['endpoint']);this[_0x177b2c(0x1a2)](_0x546f14);let _0x3a8cfc=this[_0x177b2c(0x2fe)][_0x177b2c(0x392)](_0x4ea072,_0x55d621,_0x546f14[_0x177b2c(0x2ff)][_0x177b2c(0x2b2)]());return this[_0x177b2c(0x359)][_0x177b2c(0xf6)](_0x5a4823,_0x3a8cfc),this[_0x177b2c(0x106)]['set'](_0x5a4823,_0x546f14[_0x177b2c(0xec)]),_0x3a8cfc;}[_0x27b931(0x230)](_0xb286ff){const _0x334672=_0x27b931;let _0x286274=this[_0x334672(0x359)]['get'](_0xb286ff),_0x10a6cb=this[_0x334672(0x106)]['get'](_0xb286ff);if(_0x286274&&(this[_0x334672(0x359)][_0x334672(0x274)](_0xb286ff),this['_sessionChannels']['delete'](_0xb286ff),_0x286274[_0x334672(0x15b)]()),_0x10a6cb&&!this[_0x334672(0x1b2)](_0x10a6cb)){var _0x27a697;let _0x3b6206=this['_socketChannels'][_0x334672(0x1ad)](_0x10a6cb);_0x3b6206==null||(_0x27a697=_0x3b6206['socket$']['getValue']())==null||_0x27a697[_0x334672(0x15b)]();}}['reconnect'](){const _0x5b7e5f=_0x27b931;(this[_0x5b7e5f(0x180)][_0x5b7e5f(0x1f6)]?[...this['_socketChannels'][_0x5b7e5f(0x32f)]()]:[this['_getSocketChannel'](void 0x0)])[_0x5b7e5f(0x302)](_0x54ba58=>{const _0x3ea5da=_0x5b7e5f;_0x54ba58[_0x3ea5da(0x195)]=0x0,this[_0x3ea5da(0x1e7)](_0x54ba58),this[_0x3ea5da(0x3c4)](_0x54ba58);});}[_0x27b931(0x1e7)](_0x1fb1da){const _0xf670da=_0x27b931;_0x1fb1da[_0xf670da(0x170)]!=null&&(clearTimeout(_0x1fb1da[_0xf670da(0x170)]),_0x1fb1da[_0xf670da(0x170)]=null);}async[_0x27b931(0x175)](_0x5657f7){const _0x1acdac=_0x27b931;var _0x12a158,_0x5e20a2;let _0x5f56ea=this['_configService'][_0x1acdac(0x190)](_0x3c17be),_0x35bf01=(_0x12a158=(_0x5e20a2=_0x5657f7[_0x1acdac(0x2e4)])==null?_0x5f56ea==null?void 0x0:_0x5f56ea[_0x1acdac(0x3d2)]:_0x5e20a2)==null?_0x5f4f64:_0x12a158,_0x208712=await this[_0x1acdac(0x2ca)][_0x1acdac(0x1fa)](_0x35bf01);return _0x5657f7[_0x1acdac(0x15c)]=_0x208712,_0x208712;}async[_0x27b931(0x1a2)](_0xabb92e){const _0x510fe3=_0x27b931;try{var _0x403d6b,_0x4b673b;let _0x4320e4=(_0x403d6b=(_0x4b673b=_0xabb92e[_0x510fe3(0x2ff)]['getValue']())==null?_0xabb92e[_0x510fe3(0x15c)]:_0x4b673b)==null?await this[_0x510fe3(0x175)](_0xabb92e):_0x403d6b;if(_0x4320e4){var _0x1bb48b;let _0x4e57aa=_0x4320e4[_0x510fe3(0x16b)];_0x4320e4[_0x510fe3(0x16b)]=_0x29c18d=>(_0x29c18d[_0x510fe3(0x32c)]!==_0x26a654[_0x510fe3(0x185)]['LEAVE']&&this[_0x510fe3(0x308)](_0xabb92e),_0x4e57aa['apply'](_0x4320e4,[_0x29c18d])),(_0x1bb48b=_0xabb92e[_0x510fe3(0x27d)])==null||_0x1bb48b[_0x510fe3(0x138)](),_0xabb92e[_0x510fe3(0x27d)]=null,_0xabb92e['socketMessageSubscription']=_0x4320e4[_0x510fe3(0x38c)]['subscribe'](_0x4dd7db=>this[_0x510fe3(0x1bc)](_0xabb92e,_0x4320e4,_0x4dd7db)),_0x4320e4[_0x510fe3(0xe5)][_0x510fe3(0x11f)]((0x0,_0x5ba228['take'])(0x1))[_0x510fe3(0x38e)](_0x24dae4=>this['_logService'][_0x510fe3(0x294)]('[CollaborationSessionService]:\x20socket\x20error',_0x24dae4)),_0x4320e4['open$'][_0x510fe3(0x11f)]((0x0,_0x5ba228['take'])(0x1))[_0x510fe3(0x38e)](()=>{this['_onConnectionOpen'](_0xabb92e,_0x4320e4);}),_0x4320e4[_0x510fe3(0x2ad)]['pipe']((0x0,_0x5ba228[_0x510fe3(0x1c3)])(0x1))[_0x510fe3(0x38e)](_0x227618=>{const _0x1e95a0=_0x510fe3;this['_logService']['debug'](_0x1e95a0(0x1e6),_0x1e95a0(0x15f),_0x227618),this[_0x1e95a0(0xe9)](_0xabb92e);});}}catch(_0x54ff90){this[_0x510fe3(0x1a1)][_0x510fe3(0x294)](_0x54ff90),this[_0x510fe3(0xe9)](_0xabb92e);}}[_0x27b931(0x32b)](_0x438863,_0x15786c){const _0x4df184=_0x27b931;this[_0x4df184(0x1a1)][_0x4df184(0x418)](_0x4df184(0x1e6),'socket\x20open.'),_0x15786c['send']({'cmd':_0x26a654[_0x4df184(0x185)][_0x4df184(0x40c)]}),this[_0x4df184(0x308)](_0x438863);}[_0x27b931(0x3ac)](_0x1ed5de){const _0x1fd552=_0x27b931;_0x1ed5de['socketReady']=!0x1,_0x1ed5de['candidateSocket']=null,this['_status$'][_0x1fd552(0x396)](0x2),_0x1ed5de[_0x1fd552(0x2ff)][_0x1fd552(0x396)](null),this[_0x1fd552(0x2a2)](_0x1ed5de),this['_clearHeartbeatTimer'](_0x1ed5de);}[_0x27b931(0xe9)](_0x1e4bb6){const _0x11b849=_0x27b931;var _0x3fcb6a;this[_0x11b849(0x3ac)](_0x1e4bb6),this[_0x11b849(0x1b2)](_0x1e4bb6[_0x11b849(0xec)])&&(_0x1e4bb6[_0x11b849(0x195)]<((_0x3fcb6a=this[_0x11b849(0x228)][_0x11b849(0x190)](_0x11b849(0x30d)))==null?0x3:_0x3fcb6a)?(this[_0x11b849(0x11a)][_0x11b849(0x1f8)]({'id':_0x11b849(0x35c)}),this[_0x11b849(0x3c4)](_0x1e4bb6)):this[_0x11b849(0x11a)][_0x11b849(0x1f8)]({'id':_0x11b849(0x245)}));}[_0x27b931(0x3c4)](_0x2c7a8d){const _0x36ef33=_0x27b931;var _0x5b5767;let _0x11a395=_0x2c7a8d['retryCount'],_0x3032a2=this[_0x36ef33(0x228)][_0x36ef33(0x190)](_0x3c17be),_0x2dffb8=_0x11a395===0x0?0x0:((_0x5b5767=_0x3032a2==null?void 0x0:_0x3032a2[_0x36ef33(0x29f)])==null?0x4e20:_0x5b5767)*0x2**_0x11a395;_0x2c7a8d[_0x36ef33(0x170)]=setTimeout(()=>{const _0x488c91=_0x36ef33;clearTimeout(_0x2c7a8d['retryConnectingTimer']),_0x2c7a8d[_0x488c91(0x170)]=null,this['_tryEnsureSocket'](_0x2c7a8d);},_0x2dffb8),_0x2c7a8d['retryCount']+=0x1;}async[_0x27b931(0x1d9)](_0x583e2d,_0x5acd42){const _0x3a4866=_0x27b931;return _0x1e962d(_0x583e2d,_0x5acd42,await this['_adapter'][_0x3a4866(0x1d2)]({'unitId':_0x583e2d,'unitType':_0x5acd42}));}[_0x27b931(0x1bc)](_0xa23bef,_0x1b0fc9,_0xa50696){const _0x571fe3=_0x27b931;let {cmd:_0x3bef68}=_0xa50696;_0x3bef68===_0x26a654['CombCmd'][_0x571fe3(0x40c)]&&!_0xa23bef[_0x571fe3(0x161)]&&(_0x1b0fc9[_0x571fe3(0x1aa)]=_0xa50696[_0x571fe3(0x401)]['memberID'],_0xa23bef[_0x571fe3(0x2ff)][_0x571fe3(0x396)](_0x1b0fc9),this['_status$']['next'](0x3),_0xa23bef[_0x571fe3(0x161)]=!0x0,_0xa23bef[_0x571fe3(0x15c)]=null),_0x3bef68===_0x26a654[_0x571fe3(0x185)][_0x571fe3(0x3df)]&&this[_0x571fe3(0x2a2)](_0xa23bef),this['_rescheduleHeartbeat'](_0xa23bef);}['_hasSessionsForEndpoint'](_0x3b85af){const _0x135026=_0x27b931;return[...this[_0x135026(0x106)][_0x135026(0x32f)]()][_0x135026(0x405)](_0x157242=>_0x157242===_0x3b85af);}[_0x27b931(0xd8)](_0xacdc69){const _0xba3e4f=_0x27b931;let _0x565502=_0xacdc69==null?'':_0xacdc69,_0x50b750=this[_0xba3e4f(0x180)][_0xba3e4f(0x1ad)](_0x565502);if(_0x50b750)return _0x50b750;let _0x38ec8e={'endpointKey':_0x565502,'endpoint':_0xacdc69,'socket$':new _0x470009[(_0xba3e4f(0x25b))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0xba3e4f(0x180)][_0xba3e4f(0xf6)](_0x565502,_0x38ec8e),_0x38ec8e;}[_0x27b931(0x308)](_0x266b89){const _0x455b90=_0x27b931;var _0x2b05d8;this[_0x455b90(0x26c)](_0x266b89),_0x266b89[_0x455b90(0x3f9)]=setTimeout(()=>this['_sendHeartbeat'](_0x266b89),(_0x2b05d8=this[_0x455b90(0x228)]['getConfig'](_0x455b90(0xd9)))==null?0x7530:_0x2b05d8);}[_0x27b931(0x16c)](_0x5275c7){const _0x307ef8=_0x27b931;_0x5275c7[_0x307ef8(0x2ff)]['getValue']()['send']({'cmd':_0x26a654['CombCmd']['HEARTBEAT']}),this['_waitForHeartbeatResponse'](_0x5275c7);}[_0x27b931(0x226)](_0x119c39){const _0x54f9a0=_0x27b931;var _0x427f65;_0x119c39[_0x54f9a0(0x17b)]=setTimeout(()=>this[_0x54f9a0(0xe9)](_0x119c39),(_0x427f65=this[_0x54f9a0(0x228)][_0x54f9a0(0x190)]('HEARTBEAT_TIMEOUT'))==null?_0x1dfc3f:_0x427f65);}[_0x27b931(0x26c)](_0x947f5){const _0x33b20=_0x27b931;_0x947f5[_0x33b20(0x3f9)]!=null&&(clearTimeout(_0x947f5[_0x33b20(0x3f9)]),_0x947f5[_0x33b20(0x3f9)]=null);}[_0x27b931(0x2a2)](_0x1040d3){const _0x60c6e9=_0x27b931;_0x1040d3[_0x60c6e9(0x17b)]!=null&&(clearTimeout(_0x1040d3['timeoutTimer']),_0x1040d3[_0x60c6e9(0x17b)]=null);}};_0xc5d6a5=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x1,_0x47f753[_0x27b931(0x370)]),_0x2af294(0x2,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x3,_0x2bd014),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x5,_0x1e5735),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x233)])(_0x4501c7))],_0xc5d6a5);let _0x203f75=class extends _0x47f753[_0x27b931(0xf4)]{constructor(_0x1c807d,_0x306dec,_0x2c930c,_0x8a7cca){const _0x368a3a=_0x27b931;var _0x1082cc;super(),this[_0x368a3a(0x2fe)]=_0x1c807d,this[_0x368a3a(0x282)]=_0x306dec,this['_configService']=_0x2c930c,this['_univerInstanceService']=_0x8a7cca,_0x2dd74e(this,_0x368a3a(0x3cc),new Map()),_0x2dd74e(this,_0x368a3a(0x2d8),new _0x470009['Subject']()),_0x2dd74e(this,_0x368a3a(0x2a3),this[_0x368a3a(0x2d8)][_0x368a3a(0x2b2)]()),((_0x1082cc=this[_0x368a3a(0x228)][_0x368a3a(0x190)]('collaboration-client.config'))==null?void 0x0:_0x1082cc[_0x368a3a(0x275)])!==!0x1&&this[_0x368a3a(0xee)]();}['dispose'](){const _0x52577f=_0x27b931;super[_0x52577f(0x2bc)](),this[_0x52577f(0x3cc)][_0x52577f(0x302)](_0x2ccd7b=>_0x2ccd7b[_0x52577f(0x2bc)]()),this[_0x52577f(0x3cc)]['clear']();}[_0x27b931(0x153)](_0x157e12){var _0x380f6b;return(_0x380f6b=this['_entities']['get'](_0x157e12))==null?null:_0x380f6b;}[_0x27b931(0x151)](_0x1f8902){const _0x596fba=_0x27b931;let _0xdcbc4d=this[_0x596fba(0x153)](_0x1f8902);return _0xdcbc4d?(0x0,_0x470009['of'])(_0xdcbc4d):this['_entityInit$'][_0x596fba(0x11f)]((0x0,_0x5ba228[_0x596fba(0x12e)])(_0x575159=>_0x575159[_0x596fba(0x2ea)]===_0x1f8902));}[_0x27b931(0x346)](_0x261641){const _0x338c60=_0x27b931;return(0x0,_0x470009['firstValueFrom'])(this[_0x338c60(0x151)](_0x261641)['pipe']((0x0,_0x5ba228['map'])(()=>void 0x0)));}[_0x27b931(0xee)](){const _0x132b41=_0x27b931;this['_univerInstanceService'][_0x132b41(0x3d6)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x239)])[_0x132b41(0x11f)]((0x0,_0x470009[_0x132b41(0xdc)])(this[_0x132b41(0x18b)]),(0x0,_0x5ba228['delay'])(0x10))['subscribe'](async _0x34786d=>{const _0x11bcc3=_0x132b41;let _0x10cab0=_0x34786d['unit'][_0x11bcc3(0x3f1)](),_0x336efa=await this['_startCollaboration'](_0x10cab0,_0x47f753[_0x11bcc3(0x3fc)][_0x11bcc3(0x239)]);this[_0x11bcc3(0x3cc)][_0x11bcc3(0xf6)](_0x10cab0,_0x336efa);}),this[_0x132b41(0x37d)][_0x132b41(0x3d6)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x243)])[_0x132b41(0x11f)]((0x0,_0x470009[_0x132b41(0xdc)])(this['dispose$']),(0x0,_0x5ba228[_0x132b41(0xfa)])(0x10))['pipe']((0x0,_0x5ba228['filter'])(_0xad0059=>!_0xad0059[_0x132b41(0x191)][_0x132b41(0x3f1)]()['startsWith']('__')))[_0x132b41(0x38e)](async _0x2dfdef=>{const _0x168ed0=_0x132b41;let _0x525fc8=_0x2dfdef[_0x168ed0(0x191)]['getUnitId'](),_0x22a696=await this[_0x168ed0(0x220)](_0x525fc8,_0x47f753['UniverInstanceType'][_0x168ed0(0x243)]);this[_0x168ed0(0x3cc)][_0x168ed0(0xf6)](_0x525fc8,_0x22a696);}),this[_0x132b41(0x37d)][_0x132b41(0x3d6)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x339)])[_0x132b41(0x11f)]((0x0,_0x470009['takeUntil'])(this[_0x132b41(0x18b)]),(0x0,_0x5ba228[_0x132b41(0xfa)])(0x10))[_0x132b41(0x38e)](async _0x38a096=>{const _0x1c14ec=_0x132b41;let _0x31019d=_0x38a096['unit']['getUnitId'](),_0x4dec06=await this['_startCollaboration'](_0x31019d,_0x47f753[_0x1c14ec(0x3fc)][_0x1c14ec(0x339)]);this[_0x1c14ec(0x3cc)][_0x1c14ec(0xf6)](_0x31019d,_0x4dec06);}),this[_0x132b41(0x37d)][_0x132b41(0x3d6)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x41d)])['pipe']((0x0,_0x470009[_0x132b41(0xdc)])(this['dispose$']),(0x0,_0x5ba228[_0x132b41(0xfa)])(0x10))[_0x132b41(0x38e)](async _0x2d7b66=>{const _0x18b966=_0x132b41;let _0xde6610=_0x2d7b66[_0x18b966(0x191)][_0x18b966(0x3f1)](),_0x32790f=await this[_0x18b966(0x220)](_0xde6610,_0x47f753['UniverInstanceType'][_0x18b966(0x41d)]);this[_0x18b966(0x3cc)]['set'](_0xde6610,_0x32790f);}),this[_0x132b41(0x37d)]['getTypeOfUnitAdded$'](_0x47f753['UniverInstanceType'][_0x132b41(0x313)])[_0x132b41(0x11f)]((0x0,_0x470009[_0x132b41(0xdc)])(this['dispose$']),(0x0,_0x5ba228['delay'])(0x10))[_0x132b41(0x38e)](async _0x175386=>{const _0x4cddbc=_0x132b41;let _0x4bc7d8=_0x175386['unit'][_0x4cddbc(0x3f1)](),_0x35bcec=await this['_startCollaboration'](_0x4bc7d8,_0x47f753[_0x4cddbc(0x3fc)][_0x4cddbc(0x313)]);this[_0x4cddbc(0x3cc)][_0x4cddbc(0xf6)](_0x4bc7d8,_0x35bcec);}),(0x0,_0x470009[_0x132b41(0x407)])(this[_0x132b41(0x37d)][_0x132b41(0x28a)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x239)]),this[_0x132b41(0x37d)][_0x132b41(0x28a)](_0x47f753['UniverInstanceType']['UNIVER_DOC']),this[_0x132b41(0x37d)][_0x132b41(0x28a)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x339)]),this[_0x132b41(0x37d)][_0x132b41(0x28a)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x41d)]),this['_univerInstanceService'][_0x132b41(0x28a)](_0x47f753['UniverInstanceType'][_0x132b41(0x313)]))[_0x132b41(0x11f)]((0x0,_0x470009['takeUntil'])(this[_0x132b41(0x18b)]))[_0x132b41(0x38e)](_0x2710e8=>{const _0x57c330=_0x132b41;let _0x16e39f=_0x2710e8[_0x57c330(0x3f1)](),_0x3619fa=this[_0x57c330(0x3cc)]['get'](_0x16e39f);_0x3619fa&&(_0x3619fa[_0x57c330(0x2bc)](),this[_0x57c330(0x3cc)][_0x57c330(0x274)](_0x16e39f));});}async['_startCollaboration'](_0x46d33d,_0x13a62d){const _0x40d43b=_0x27b931;let _0x162442=await this[_0x40d43b(0x282)][_0x40d43b(0x410)](_0x46d33d),_0x3a4fdc=this['_injector'][_0x40d43b(0x392)](this['_getCtorByUniverInstanceType'](_0x13a62d),_0x46d33d,_0x13a62d,_0x162442);return await _0x3a4fdc[_0x40d43b(0x362)](),this[_0x40d43b(0x2d8)][_0x40d43b(0x396)](_0x3a4fdc),_0x3a4fdc;}[_0x27b931(0x2b3)](_0x14ed04){const _0x340e64=_0x27b931;switch(_0x14ed04){case _0x47f753[_0x340e64(0x3fc)]['UNIVER_DOC']:return _0x9eef43;case _0x47f753[_0x340e64(0x3fc)][_0x340e64(0x239)]:return _0x151d10;case _0x47f753['UniverInstanceType'][_0x340e64(0x339)]:return _0x292824;case _0x47f753[_0x340e64(0x3fc)][_0x340e64(0x41d)]:return _0x4b522f;case _0x47f753[_0x340e64(0x3fc)][_0x340e64(0x313)]:return _0x5c3e77;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x14ed04);}}};_0x203f75=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['Injector'])),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0xc5d6a5)),_0x2af294(0x2,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x3,_0x47f753[_0x27b931(0x235)])],_0x203f75);var _0x58d19e='@univerjs-pro/collaboration-client',_0x4c6d06=_0x27b931(0x100);let _0x43ec5e=class extends _0x47f753['Disposable']{constructor(_0x4bc8ae,_0x21d0a3){const _0x49d4e5=_0x27b931;super(),this[_0x49d4e5(0x37d)]=_0x4bc8ae,this['_configService']=_0x21d0a3,this['_init']();}[_0x27b931(0xee)](){const _0x5320d0=_0x27b931;this[_0x5320d0(0x3d7)](this[_0x5320d0(0x37d)]['focused$'][_0x5320d0(0x38e)](()=>{const _0x1fa01a=_0x5320d0;var _0x580932;let _0x3feb73=this[_0x1fa01a(0x37d)]['getFocusedUnit'](),_0x4d9279=(_0x580932=this['_configService'][_0x1fa01a(0x190)]('DEFAULT_FILE_NAME'))==null?_0x1fa01a(0x20e):_0x580932;_0x3feb73 instanceof _0x47f753['Workbook']&&(_0x4d9279=_0x3feb73['name']),document[_0x1fa01a(0x22f)]=_0x4d9279;}));}};_0x43ec5e=_0x1fb4c2([_0x2af294(0x0,_0x47f753['IUniverInstanceService']),_0x2af294(0x1,_0x47f753[_0x27b931(0x18f)])],_0x43ec5e);let _0x46b0a8=function(_0x4bc59d){const _0x418614=_0x27b931;return _0x4bc59d[_0x418614(0x323)]=_0x418614(0x323),_0x4bc59d[_0x418614(0x403)]='UUID',_0x4bc59d[_0x418614(0x2f0)]=_0x418614(0x2f0),_0x4bc59d;}({}),_0x4f7a6f=(0x0,_0x47f753[_0x27b931(0xfd)])(_0x27b931(0x3cf)),_0xeb1ef2=class{constructor(_0x4cf89f,_0x4b1f2a,_0x35ab87){const _0x180d80=_0x27b931;this[_0x180d80(0x3d8)]=_0x4cf89f,this['_configService']=_0x4b1f2a,this[_0x180d80(0x37d)]=_0x35ab87;}[_0x27b931(0x335)](){const _0x4d4640=_0x27b931;var _0x170302;return(_0x170302=this[_0x4d4640(0x2e7)]()[_0x4d4640(0x1cc)])==null?{}:_0x170302;}async[_0x27b931(0x118)](_0x1e7298){const _0x387dba=_0x27b931;let _0x4466af=this['getUploadOptions']();if(_0x2cf7d5(_0x1e7298,_0x4466af),_0x4466af[_0x387dba(0x194)])return _0x4466af[_0x387dba(0x194)](_0x1e7298);let _0x2ef366=await this[_0x387dba(0x3b1)](_0x1e7298);return{'id':_0x2ef366,'name':_0x1e7298[_0x387dba(0x3dc)],'mimeType':_0x1e7298[_0x387dba(0x2af)],'size':_0x1e7298['size'],'sourceType':'UUID','source':_0x2ef366};}async[_0x27b931(0x3b1)](_0x394604){const _0x59b3ec=_0x27b931;let _0x36cfad=this[_0x59b3ec(0x37d)]['getFocusedUnit'](),_0x785ec6=_0x36cfad==null?void 0x0:_0x36cfad[_0x59b3ec(0x3f1)]();if(!_0x785ec6)throw Error(_0x59b3ec(0x1d1));let _0x5af19e=new FormData();_0x5af19e[_0x59b3ec(0x3cb)](_0x59b3ec(0x184),_0x394604);let _0xc6005a=this[_0x59b3ec(0x33c)]()+_0x59b3ec(0x386)+_0x394604[_0x59b3ec(0x1f6)][_0x59b3ec(0x140)]()+'&source='+_0x26a654[_0x59b3ec(0x2cf)][_0x59b3ec(0x330)]+_0x59b3ec(0x3c3)+encodeURIComponent(_0x785ec6),_0x29cf76=(await this[_0x59b3ec(0x3d8)][_0x59b3ec(0x139)](_0xc6005a,{'body':_0x5af19e}))['body']['FileId'];if(typeof _0x29cf76!=_0x59b3ec(0x267)||!_0x29cf76)throw Error(_0x59b3ec(0x16e));return _0x29cf76;}['_getUploadFileURL'](){const _0x934759=_0x27b931;var _0x4a84e1;return(_0x4a84e1=this['_getConfig']()[_0x934759(0x2c4)])==null?_0x934759(0x213):_0x4a84e1;}[_0x27b931(0x2e7)](){const _0x3af5f3=_0x27b931;var _0x2d864f;return(_0x2d864f=this[_0x3af5f3(0x228)]['getConfig'](_0x3af5f3(0x178)))==null?{}:_0x2d864f;}};_0xeb1ef2=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x8f2da5[_0x27b931(0x2e6)])),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x18f)])),_0x2af294(0x2,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x235)]))],_0xeb1ef2);function _0x2cf7d5(_0x452f38,_0x186b2b){const _0x2a8312=_0x27b931;var _0x2462e0;if(_0x186b2b[_0x2a8312(0x3e4)]!=null&&_0x452f38[_0x2a8312(0x1f6)]>_0x186b2b[_0x2a8312(0x3e4)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x2462e0=_0x186b2b[_0x2a8312(0x281)])!=null&&_0x2462e0[_0x2a8312(0x415)]&&!_0x186b2b[_0x2a8312(0x281)][_0x2a8312(0x405)](_0x1cc0b1=>_0x452f38[_0x2a8312(0x2af)]===_0x1cc0b1||_0x452f38['name']['endsWith'](_0x1cc0b1)||_0x1cc0b1[_0x2a8312(0x3e1)]('/*')&&_0x452f38[_0x2a8312(0x2af)][_0x2a8312(0x2df)](_0x1cc0b1[_0x2a8312(0x14f)](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let _0x149557=class{constructor(_0x230a0f,_0x3fead6,_0xa170d9){const _0x496d3b=_0x27b931;this[_0x496d3b(0x228)]=_0x230a0f,this[_0x496d3b(0x3d8)]=_0x3fead6,this[_0x496d3b(0x2c8)]=_0xa170d9,this[_0x496d3b(0x362)]();}[_0x27b931(0x362)](){const _0x11bf78=_0x27b931;this[_0x11bf78(0x3d8)][_0x11bf78(0xcf)]({'priority':0x1,'interceptor':(_0x481c57,_0x14685a)=>_0x14685a(_0x481c57)[_0x11bf78(0x11f)]((0x0,_0x470009[_0x11bf78(0x27f)])(async _0x5a4c77=>{const _0x163da4=_0x11bf78;let _0x3e8853=_0x5a4c77;if(_0x3e8853[_0x163da4(0x397)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x163da4(0x268)](this[_0x163da4(0x2c8)]['t'](_0x163da4(0x25d)))){let _0x5b3946=window[_0x163da4(0x129)](window['location']['href']);window['location']['href']=this[_0x163da4(0x3b9)]()+_0x163da4(0x2e5)+_0x5b3946;}}return _0x3e8853;}))});}[_0x27b931(0x3b9)](){const _0x56bd05=_0x27b931;var _0x135871;let _0x3d9b9e=this[_0x56bd05(0x228)]['getConfig'](_0x3c17be);return(_0x135871=_0x3d9b9e==null?void 0x0:_0x3d9b9e['loginUrlKey'])==null?_0x56bd05(0x2c3):_0x135871;}};_0x149557=_0x1fb4c2([_0x2af294(0x0,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x1,(0x0,_0x47f753['Inject'])(_0x8f2da5['HTTPService'])),_0x2af294(0x2,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0xde)]))],_0x149557);let _0x3d6a88=class extends _0x47f753[_0x27b931(0x25e)]{constructor(_0x590399,_0x58c645){const _0x136149=_0x27b931;super(),this[_0x136149(0x345)]=_0x590399,this['_configService']=_0x58c645,_0x2dd74e(this,_0x136149(0x171),!0x1),this[_0x136149(0x152)]();}[_0x27b931(0x152)](){const _0xa2a887=_0x27b931;let _0x1f9c20=this;this[_0xa2a887(0x3d7)](this[_0xa2a887(0x345)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,_0x8f2da5[_0xa2a887(0x360)])({'isMatch'(_0x149dcc){const _0x9853ee=_0xa2a887;var _0x37010;if(_0x149dcc[_0x9853ee(0x1f9)]==='POST'&&(_0x37010=_0x149dcc[_0x9853ee(0x41f)])!=null&&_0x37010[_0x9853ee(0x2d9)]){let {objectID:_0x4fd24e,objectType:_0x1d5a9c}=_0x149dcc[_0x9853ee(0x41f)][_0x9853ee(0x2d9)]||{};if(!_0x4fd24e||_0x1d5a9c===void 0x0)return!0x1;let _0x2dfd8f=_0x1f9c20[_0x9853ee(0xe2)]()+'/'+_0x1d5a9c+_0x9853ee(0x20b)+_0x4fd24e+_0x9853ee(0x395);if(_0x149dcc[_0x9853ee(0xd6)]===_0x2dfd8f)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x596061){const _0x281a30=_0xa2a887;var _0x3fcca1;return(_0x3fcca1=_0x596061[_0x281a30(0x41f)])==null?void 0x0:_0x3fcca1[_0x281a30(0x2d9)];},'mergeParamsToRequest'(_0x3a94ce,_0x3a3f23){const _0x538489=_0xa2a887;let _0x2ffb68=_0x1f9c20[_0x538489(0xe2)]()+_0x538489(0x145),_0x57158f=_0x3a94ce[_0x538489(0x1ca)]((_0x3989ed,_0x4a00cd)=>{const _0x12fd24=_0x538489;let {unitID:_0x5581b5,objectID:_0x26d386,objectType:_0x2d7051,actions:_0x50d2fa}=_0x4a00cd;return _0x3989ed[_0x5581b5]||(_0x3989ed[_0x5581b5]={}),_0x3989ed[_0x5581b5][_0x26d386]||(_0x3989ed[_0x5581b5][_0x26d386]={'objectID':_0x26d386,'objectType':_0x2d7051,'actions':[]}),_0x3989ed[_0x5581b5][_0x26d386][_0x12fd24(0x1b8)][_0x12fd24(0x30b)](..._0x50d2fa),_0x3989ed;},{}),_0x33b7c8=[];for(let _0x5181d7 in _0x57158f)for(let _0x4b1a77 in _0x57158f[_0x5181d7]){let {actions:_0x4bedbf,objectType:_0x2ef9e9}=_0x57158f[_0x5181d7][_0x4b1a77],_0x36a0f3=[...new Set(_0x4bedbf)];_0x33b7c8['push']({'unitID':_0x5181d7,'objectID':_0x4b1a77,'objectType':_0x2ef9e9,'actions':_0x36a0f3});}return new _0x8f2da5[(_0x538489(0x408))]('POST',_0x2ffb68,{'headers':_0x3a3f23['headers'],'withCredentials':_0x3a3f23['withCredentials'],'responseType':_0x3a3f23[_0x538489(0xdb)],'body':{'requests':_0x33b7c8}});}},{'distributeResult'(_0x5dad24,_0x478e10){const _0x50c98e=_0xa2a887;let {objectActions:_0x400011}=_0x5dad24;return _0x478e10[_0x50c98e(0x394)](_0x1cd1e0=>{const _0x51cce8=_0x50c98e;let {unitID:_0x1c2e2d,objectID:_0x43d917,actions:_0x15cee2}=_0x1cd1e0,_0x1f2a54=_0x400011[_0x51cce8(0x204)](_0x50f37f=>_0x50f37f[_0x51cce8(0x2ea)]===_0x1c2e2d&&_0x50f37f[_0x51cce8(0x1f1)]===_0x43d917);return{'config':_0x1cd1e0,'result':{'actions':_0x15cee2[_0x51cce8(0x394)](_0x213f8f=>_0x1f2a54==null?void 0x0:_0x1f2a54[_0x51cce8(0x1b8)]['find'](_0x5042eb=>_0x5042eb[_0x51cce8(0x3ec)]===_0x213f8f))[_0x51cce8(0x12e)](_0x467684=>!!_0x467684),'error':_0x5dad24[_0x51cce8(0x294)]}};});}})}));}[_0x27b931(0xe2)](){const _0x3bb04f=_0x27b931;var _0x194cc5;let _0x2627a0=this['_configService']['getConfig'](_0x3c17be);return(_0x194cc5=_0x2627a0==null?void 0x0:_0x2627a0[_0x3bb04f(0x1c1)])==null?_0x3bb04f(0x2d4):_0x194cc5;}async[_0x27b931(0x1fb)](_0x472dcc){const _0x79e3f9=_0x27b931;let _0x583be9=this[_0x79e3f9(0xe2)]()+'/'+_0x472dcc[_0x79e3f9(0x30c)]+_0x79e3f9(0x148);return(await this[_0x79e3f9(0x345)][_0x79e3f9(0x139)](_0x583be9,{'body':_0x472dcc}))[_0x79e3f9(0x2d9)][_0x79e3f9(0x1f1)]||'';}async[_0x27b931(0x3c5)](_0x3ac3a0){const _0x412014=_0x27b931;let _0x5957da=this['_getAPIPrefixPath']()+_0x412014(0x3a0);return(await this[_0x412014(0x345)]['post'](_0x5957da,{'body':_0x3ac3a0}))['body'][_0x412014(0x110)];}async[_0x27b931(0x333)](_0x204403){const _0x2b246e=_0x27b931;var _0x5601ac;let _0xae7a70=this[_0x2b246e(0xe2)]()+'/'+_0x204403[_0x2b246e(0x30c)]+_0x2b246e(0x20b)+_0x204403[_0x2b246e(0x1f1)],_0x29657c=await this[_0x2b246e(0x345)][_0x2b246e(0x1fd)](_0xae7a70,{'body':_0x204403});if((_0x29657c==null||(_0x5601ac=_0x29657c[_0x2b246e(0x2d9)])==null||(_0x5601ac=_0x5601ac[_0x2b246e(0x294)])==null?void 0x0:_0x5601ac[_0x2b246e(0x1fc)])!==0x1)throw Error(_0x2b246e(0x112));}async['allowed'](_0xd9a9b8){const _0x3cd183=_0x27b931;let _0x1ad9c3=this[_0x3cd183(0xe2)]()+'/'+_0xd9a9b8[_0x3cd183(0x30c)]+_0x3cd183(0x20b)+_0xd9a9b8[_0x3cd183(0x1f1)]+_0x3cd183(0x395);return(await this['_HTTPService'][_0x3cd183(0x139)](_0x1ad9c3,{'body':_0xd9a9b8}))['body'][_0x3cd183(0x1b8)];}async[_0x27b931(0xfb)](_0x341669){const _0x42d944=_0x27b931;let _0x3d6283=this[_0x42d944(0xe2)]()+_0x42d944(0x145);return(await this[_0x42d944(0x345)][_0x42d944(0x139)](_0x3d6283,{'body':{'requests':_0x341669}}))['body']['objectActions'];}async[_0x27b931(0x3c0)](_0x29c21e){const _0x4cf224=_0x27b931;let _0x529754=this['_getAPIPrefixPath']()+'/'+_0x29c21e[_0x4cf224(0x30c)]+_0x4cf224(0x240),_0x4684ec=await this[_0x4cf224(0x345)][_0x4cf224(0x139)](_0x529754,{'body':_0x29c21e});return{'roles':_0x4684ec['body'][_0x4cf224(0x1c7)],'actions':_0x4684ec[_0x4cf224(0x2d9)][_0x4cf224(0x1b8)]};}async['deleteCollaborator'](_0x3339fc){const _0x546a60=_0x27b931;let _0x4e19ca=this[_0x546a60(0xe2)]()+_0x546a60(0x241);await this[_0x546a60(0x345)][_0x546a60(0x274)](_0x4e19ca,{'params':{'collaboratorID':_0x3339fc[_0x546a60(0x16a)],'objectID':_0x3339fc[_0x546a60(0x1f1)],'unitID':_0x3339fc[_0x546a60(0x2ea)]}});}async[_0x27b931(0x317)](_0xc1d3dc){const _0x457695=_0x27b931;let _0x5628c7=this[_0x457695(0xe2)]()+_0x457695(0x241);await this[_0x457695(0x345)][_0x457695(0x381)](_0x5628c7,{'body':_0xc1d3dc});}async[_0x27b931(0x3fa)](_0x1e0e2b){const _0x467530=_0x27b931;let _0x55a39a=this[_0x467530(0xe2)]()+'/collaborator';await this[_0x467530(0x345)]['post'](_0x55a39a,{'body':_0x1e0e2b});}async[_0x27b931(0x205)](_0xc03d24){const _0xad8b98=_0x27b931;var _0x1dc95d;let _0x5f37ca=this[_0xad8b98(0xe2)]()+'/collaborator',_0x28da2b=await this[_0xad8b98(0x345)]['get'](_0x5f37ca,{'params':{'objectID':_0xc03d24[_0xad8b98(0x1f1)],'unitID':_0xc03d24[_0xad8b98(0x2ea)]}});return this[_0xad8b98(0x128)]((_0x1dc95d=_0x28da2b['body'][_0xad8b98(0x361)])==null?!0x1:_0x1dc95d),_0x28da2b['body'][_0xad8b98(0x19a)];}async[_0x27b931(0x3bd)](_0x427007){const _0x943ab6=_0x27b931;let _0x2ee8c3=this[_0x943ab6(0xe2)]()+_0x943ab6(0x241);await this['_HTTPService']['put'](_0x2ee8c3,{'body':_0x427007});}['setCfgEnableObjInherit'](_0x2c863a){const _0x2dc2fe=_0x27b931;this[_0x2dc2fe(0x171)]=_0x2c863a;}['getCfgEnableObjInherit'](){const _0x25a9b0=_0x27b931;return this[_0x25a9b0(0x171)];}};_0x3d6a88=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753['Inject'])(_0x8f2da5[_0x27b931(0x2e6)])),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x18f)]))],_0x3d6a88);function _0x3602e5(_0x52e75a){const _0x3f9892=_0x27b931;return _0x52e75a instanceof Uint8Array||ArrayBuffer[_0x3f9892(0x19d)](_0x52e75a)&&_0x52e75a['constructor'][_0x3f9892(0x3dc)]===_0x3f9892(0x28d)&&_0x3f9892(0x2db)in _0x52e75a&&_0x52e75a[_0x3f9892(0x2db)]===0x1;}function _0x149fcc(_0x5edd6e){const _0x31abaa=_0x27b931;if(typeof _0x5edd6e!=_0x31abaa(0x116))throw TypeError(_0x31abaa(0x33b)+typeof _0x5edd6e);if(!Number[_0x31abaa(0x11c)](_0x5edd6e)||_0x5edd6e<0x0)throw RangeError(_0x31abaa(0x2b6)+_0x5edd6e);}function _0x241cc3(_0x1ae51d,_0x284b11,_0x2ae0a0=''){const _0x1caaff=_0x27b931;let _0x22d788=_0x3602e5(_0x1ae51d),_0x5405f0=_0x1ae51d==null?void 0x0:_0x1ae51d[_0x1caaff(0x415)],_0x4eff70=_0x284b11!==void 0x0;if(!_0x22d788||_0x4eff70&&_0x5405f0!==_0x284b11){let _0x4920e3=_0x2ae0a0&&'\x22'+_0x2ae0a0+'\x22\x20',_0x1bc4cb=_0x4eff70?_0x1caaff(0x3a8)+_0x284b11:'',_0x42ba4=_0x22d788?_0x1caaff(0x218)+_0x5405f0:_0x1caaff(0x364)+typeof _0x1ae51d,_0x1fd482=_0x4920e3+'expected\x20Uint8Array'+_0x1bc4cb+_0x1caaff(0x23e)+_0x42ba4;throw _0x22d788?RangeError(_0x1fd482):TypeError(_0x1fd482);}return _0x1ae51d;}function _0x505ef8(_0x3f7e79){const _0x5e2b64=_0x27b931;return new Uint32Array(_0x3f7e79[_0x5e2b64(0xe3)],_0x3f7e79[_0x5e2b64(0x36b)],Math['floor'](_0x3f7e79[_0x5e2b64(0x209)]/0x4));}function _0xfcd1a4(..._0x58e63d){const _0xf65bd0=_0x27b931;for(let _0x2712b4=0x0;_0x2712b4<_0x58e63d[_0xf65bd0(0x415)];_0x2712b4++)_0x58e63d[_0x2712b4]['fill'](0x0);}let _0x4fbc4d=new Uint8Array(new Uint32Array([0x11223344])[_0x27b931(0xe3)])[0x0]===0x44,_0x15bbe2=_0x537e2d=>_0x537e2d<<0x18&0xff000000|_0x537e2d<<0x8&0xff0000|_0x537e2d>>>0x8&0xff00|_0x537e2d>>>0x18&0xff,_0x93eb92=_0x4fbc4d?_0x5acde6=>_0x5acde6:_0xc26f0=>{for(let _0x227cd1=0x0;_0x227cd1<_0xc26f0['length'];_0x227cd1++)_0xc26f0[_0x227cd1]=_0x15bbe2(_0xc26f0[_0x227cd1]);return _0xc26f0;};function _0x395142(_0x3ec1a5){const _0x5767e1=_0x27b931;if(typeof _0x3ec1a5!=_0x5767e1(0x267))throw TypeError(_0x5767e1(0x10e));return new Uint8Array(new TextEncoder()[_0x5767e1(0x2f4)](_0x3ec1a5));}function _0x4490ca(_0x288f1a,_0x28bd82){const _0x1a10da=_0x27b931;return!_0x288f1a[_0x1a10da(0x209)]||!_0x28bd82[_0x1a10da(0x209)]?!0x1:_0x288f1a[_0x1a10da(0xe3)]===_0x28bd82[_0x1a10da(0xe3)]&&_0x288f1a['byteOffset']<_0x28bd82[_0x1a10da(0x36b)]+_0x28bd82[_0x1a10da(0x209)]&&_0x28bd82['byteOffset']<_0x288f1a['byteOffset']+_0x288f1a[_0x1a10da(0x209)];}function _0x34ca96(_0x1522c1,_0x793018){const _0x317d52=_0x27b931;if(_0x4490ca(_0x1522c1,_0x793018)&&_0x1522c1[_0x317d52(0x36b)]<_0x793018[_0x317d52(0x36b)])throw Error(_0x317d52(0x27a));}function _0x3f9ffe(..._0x2db177){const _0x407638=_0x27b931;let _0x11faea=0x0;for(let _0x176e2b=0x0;_0x176e2b<_0x2db177['length'];_0x176e2b++){let _0x561d95=_0x2db177[_0x176e2b];_0x241cc3(_0x561d95),_0x11faea+=_0x561d95[_0x407638(0x415)];}let _0x2212c3=new Uint8Array(_0x11faea);for(let _0x1c996a=0x0,_0x244f6b=0x0;_0x1c996a<_0x2db177[_0x407638(0x415)];_0x1c996a++){let _0x131447=_0x2db177[_0x1c996a];_0x2212c3[_0x407638(0xf6)](_0x131447,_0x244f6b),_0x244f6b+=_0x131447['length'];}return _0x2212c3;}let _0x53e818=(_0x43b0e0,_0x39bf04)=>{function _0x4da402(_0x10d859,..._0x5319cc){const _0x5f4f2d=_0x1420;if(_0x241cc3(_0x10d859,void 0x0,'key'),_0x43b0e0[_0x5f4f2d(0x354)]!==void 0x0){let _0x48b0b1=_0x5319cc[0x0];_0x241cc3(_0x48b0b1,_0x43b0e0[_0x5f4f2d(0x34e)]?void 0x0:_0x43b0e0[_0x5f4f2d(0x354)],_0x5f4f2d(0xed));}let _0x5a04ac=_0x43b0e0[_0x5f4f2d(0x36d)];_0x5a04ac&&_0x5319cc[0x1]!==void 0x0&&_0x241cc3(_0x5319cc[0x1],void 0x0,'AAD');let _0x281876=_0x39bf04(_0x10d859,..._0x5319cc),_0x4eccd4=(_0x397952,_0x2e34a4)=>{const _0x1b9e46=_0x5f4f2d;if(_0x2e34a4!==void 0x0){if(_0x397952!==0x2)throw Error('cipher\x20output\x20not\x20supported');_0x241cc3(_0x2e34a4,void 0x0,_0x1b9e46(0x2d0));}},_0x4a820e=!0x1;return{'encrypt'(_0x209749,_0x5a3164){const _0x28fde3=_0x5f4f2d;if(_0x4a820e)throw Error(_0x28fde3(0x2a7));return _0x4a820e=!0x0,_0x241cc3(_0x209749),_0x4eccd4(_0x281876['encrypt'][_0x28fde3(0x415)],_0x5a3164),_0x281876[_0x28fde3(0x258)](_0x209749,_0x5a3164);},'decrypt'(_0x3b87be,_0x56fe85){const _0x1c8044=_0x5f4f2d;if(_0x241cc3(_0x3b87be),_0x5a04ac&&_0x3b87be[_0x1c8044(0x415)]<_0x5a04ac)throw Error(_0x1c8044(0x30a)+_0x5a04ac);return _0x4eccd4(_0x281876['decrypt'][_0x1c8044(0x415)],_0x56fe85),_0x281876[_0x1c8044(0x19e)](_0x3b87be,_0x56fe85);}};}return Object['assign'](_0x4da402,_0x43b0e0),_0x4da402;};function _0x30f906(_0x2d1dbe,_0x4db4f6,_0x2829ff=!0x0){const _0x4df560=_0x27b931;if(_0x4db4f6===void 0x0)return new Uint8Array(_0x2d1dbe);if(_0x241cc3(_0x4db4f6,void 0x0,_0x4df560(0x2d0)),_0x4db4f6['length']!==_0x2d1dbe)throw Error(_0x4df560(0x2a4)+_0x2d1dbe+',\x20got:\x20'+_0x4db4f6[_0x4df560(0x415)]);if(_0x2829ff&&!_0x15866a(_0x4db4f6))throw Error(_0x4df560(0x412));return _0x4db4f6;}function _0x15866a(_0x4036c9){const _0xb716a1=_0x27b931;return _0x4036c9[_0xb716a1(0x36b)]%0x4==0x0;}function _0x5b679f(_0x490316){const _0x10e637=_0x27b931;return Uint8Array[_0x10e637(0x21c)](_0x241cc3(_0x490316));}function _0x2d2cd9(_0x304e43=0x20){const _0x2a816b=_0x27b931;_0x149fcc(_0x304e43);let _0x28591d=typeof globalThis==_0x2a816b(0x2e9)?globalThis[_0x2a816b(0x24a)]:null;if(typeof(_0x28591d==null?void 0x0:_0x28591d[_0x2a816b(0x28f)])!='function')throw Error(_0x2a816b(0x114));return _0x28591d[_0x2a816b(0x28f)](new Uint8Array(_0x304e43));}function _0x6bc83e(_0x2f5cec){const _0x36a804=_0x27b931;if(![0x10,0x18,0x20][_0x36a804(0xf2)](_0x2f5cec[_0x36a804(0x415)]))throw Error(_0x36a804(0x1df)+_0x2f5cec[_0x36a804(0x415)]);}function _0x18f630(_0x2f6f80){return _0x2f6f80<<0x1^0x11b&-(_0x2f6f80>>0x7);}function _0x41759a(_0x3a5b9c,_0x28051d){let _0x16b53e=0x0;for(;_0x28051d>0x0;_0x28051d>>=0x1)_0x16b53e^=_0x3a5b9c&-(_0x28051d&0x1),_0x3a5b9c=_0x18f630(_0x3a5b9c);return _0x16b53e;}let _0x21c9fc=((()=>{let _0x140eeb=new Uint8Array(0x100);for(let _0x419ef8=0x0,_0x25bafa=0x1;_0x419ef8<0x100;_0x419ef8++,_0x25bafa^=_0x18f630(_0x25bafa))_0x140eeb[_0x419ef8]=_0x25bafa;let _0x3a9dc2=new Uint8Array(0x100);_0x3a9dc2[0x0]=0x63;for(let _0x423d1a=0x0;_0x423d1a<0xff;_0x423d1a++){let _0x31ae1b=_0x140eeb[0xff-_0x423d1a];_0x31ae1b|=_0x31ae1b<<0x8,_0x3a9dc2[_0x140eeb[_0x423d1a]]=(_0x31ae1b^_0x31ae1b>>0x4^_0x31ae1b>>0x5^_0x31ae1b>>0x6^_0x31ae1b>>0x7^0x63)&0xff;}return _0xfcd1a4(_0x140eeb),_0x3a9dc2;})()),_0x1560ce=_0x21c9fc[_0x27b931(0x394)]((_0xd0c344,_0x315b2f)=>_0x21c9fc[_0x27b931(0x290)](_0x315b2f)),_0x580e75=_0x2398e0=>_0x2398e0<<0x18|_0x2398e0>>>0x8,_0x2ebee5=_0x58cbd4=>_0x58cbd4<<0x8|_0x58cbd4>>>0x18;function _0x44a576(_0x18585d,_0x2e4bb3){const _0x353094=_0x27b931;if(_0x18585d[_0x353094(0x415)]!==0x100)throw Error(_0x353094(0x166));let _0x1f5e53=new Uint32Array(0x100)[_0x353094(0x394)]((_0x1f9213,_0x1a2034)=>_0x2e4bb3(_0x18585d[_0x1a2034])),_0x4facc5=_0x1f5e53['map'](_0x2ebee5),_0x4a3060=_0x4facc5[_0x353094(0x394)](_0x2ebee5),_0xd5e156=_0x4a3060[_0x353094(0x394)](_0x2ebee5),_0x480a76=new Uint32Array(0x100*0x100),_0x30ad27=new Uint32Array(0x100*0x100),_0xf716dd=new Uint16Array(0x100*0x100);for(let _0x1472bf=0x0;_0x1472bf<0x100;_0x1472bf++)for(let _0x35856b=0x0;_0x35856b<0x100;_0x35856b++){let _0x222fdc=_0x1472bf*0x100+_0x35856b;_0x480a76[_0x222fdc]=_0x1f5e53[_0x1472bf]^_0x4facc5[_0x35856b],_0x30ad27[_0x222fdc]=_0x4a3060[_0x1472bf]^_0xd5e156[_0x35856b],_0xf716dd[_0x222fdc]=_0x18585d[_0x1472bf]<<0x8|_0x18585d[_0x35856b];}return{'sbox':_0x18585d,'sbox2':_0xf716dd,'T0':_0x1f5e53,'T1':_0x4facc5,'T2':_0x4a3060,'T3':_0xd5e156,'T01':_0x480a76,'T23':_0x30ad27};}let _0x396ca3=_0x44a576(_0x21c9fc,_0x5e8dbf=>_0x41759a(_0x5e8dbf,0x3)<<0x18|_0x5e8dbf<<0x10|_0x5e8dbf<<0x8|_0x41759a(_0x5e8dbf,0x2)),_0x2ab22e=_0x44a576(_0x1560ce,_0x8b1175=>_0x41759a(_0x8b1175,0xb)<<0x18|_0x41759a(_0x8b1175,0xd)<<0x10|_0x41759a(_0x8b1175,0x9)<<0x8|_0x41759a(_0x8b1175,0xe)),_0x4363d3=((()=>{let _0x1137bc=new Uint8Array(0x10);for(let _0x26f165=0x0,_0x5807e1=0x1;_0x26f165<0x10;_0x26f165++,_0x5807e1=_0x18f630(_0x5807e1))_0x1137bc[_0x26f165]=_0x5807e1;return _0x1137bc;})());function _0x1bd2b0(_0x3ae0f5){const _0x4e7820=_0x27b931;_0x241cc3(_0x3ae0f5);let _0xf4e211=_0x3ae0f5[_0x4e7820(0x415)];_0x6bc83e(_0x3ae0f5);let {sbox2:_0x15903c}=_0x396ca3,_0x564a30=[];(!_0x4fbc4d||!_0x15866a(_0x3ae0f5))&&_0x564a30[_0x4e7820(0x30b)](_0x3ae0f5=_0x5b679f(_0x3ae0f5));let _0x20fa68=_0x93eb92(_0x505ef8(_0x3ae0f5)),_0x1f78ef=_0x20fa68['length'],_0x147e4e=_0x1f1585=>_0x48b4a2(_0x15903c,_0x1f1585,_0x1f1585,_0x1f1585,_0x1f1585),_0x5d2edf=new Uint32Array(_0xf4e211+0x1c);_0x5d2edf['set'](_0x20fa68);for(let _0x4ad34b=_0x1f78ef;_0x4ad34b<_0x5d2edf[_0x4e7820(0x415)];_0x4ad34b++){let _0x34e210=_0x5d2edf[_0x4ad34b-0x1];_0x4ad34b%_0x1f78ef===0x0?_0x34e210=_0x147e4e(_0x580e75(_0x34e210))^_0x4363d3[_0x4ad34b/_0x1f78ef-0x1]:_0x1f78ef>0x6&&_0x4ad34b%_0x1f78ef===0x4&&(_0x34e210=_0x147e4e(_0x34e210)),_0x5d2edf[_0x4ad34b]=_0x5d2edf[_0x4ad34b-_0x1f78ef]^_0x34e210;}return _0xfcd1a4(..._0x564a30),_0x5d2edf;}function _0x81f1df(_0x193b99){const _0x1671cf=_0x27b931;let _0x580c97=_0x1bd2b0(_0x193b99),_0x170f8d=_0x580c97[_0x1671cf(0x14f)](),_0x177c0e=_0x580c97['length'],{sbox2:_0x4bdea7}=_0x396ca3,{T0:_0x40ae63,T1:_0x57055d,T2:_0x2f8524,T3:_0x222bbb}=_0x2ab22e;for(let _0x57fa2d=0x0;_0x57fa2d<_0x177c0e;_0x57fa2d+=0x4)for(let _0x5d214d=0x0;_0x5d214d<0x4;_0x5d214d++)_0x170f8d[_0x57fa2d+_0x5d214d]=_0x580c97[_0x177c0e-_0x57fa2d-0x4+_0x5d214d];_0xfcd1a4(_0x580c97);for(let _0x3e7f67=0x4;_0x3e7f67<_0x177c0e-0x4;_0x3e7f67++){let _0x26b82b=_0x170f8d[_0x3e7f67],_0x50a572=_0x48b4a2(_0x4bdea7,_0x26b82b,_0x26b82b,_0x26b82b,_0x26b82b);_0x170f8d[_0x3e7f67]=_0x40ae63[_0x50a572&0xff]^_0x57055d[_0x50a572>>>0x8&0xff]^_0x2f8524[_0x50a572>>>0x10&0xff]^_0x222bbb[_0x50a572>>>0x18];}return _0x170f8d;}function _0x55bab8(_0x40b2e1,_0xdad542,_0x3a7beb,_0x551b24,_0x3fafdf,_0x3caec2){return _0x40b2e1[_0x3a7beb<<0x8&0xff00|_0x551b24>>>0x8&0xff]^_0xdad542[_0x3fafdf>>>0x8&0xff00|_0x3caec2>>>0x18&0xff];}function _0x48b4a2(_0xfe73fc,_0x428702,_0x94e3a5,_0x591b4d,_0x5bfc43){return _0xfe73fc[_0x428702&0xff|_0x94e3a5&0xff00]|_0xfe73fc[_0x591b4d>>>0x10&0xff|_0x5bfc43>>>0x10&0xff00]<<0x10;}function _0x430a23(_0x3f3681,_0x1f2927,_0x1f81f9,_0x29b3d3,_0xf01745){const _0x36fd69=_0x27b931;let {sbox2:_0x24ff21,T01:_0x59f07d,T23:_0x535e66}=_0x396ca3,_0x4c5f05=0x0;_0x1f2927^=_0x3f3681[_0x4c5f05++],_0x1f81f9^=_0x3f3681[_0x4c5f05++],_0x29b3d3^=_0x3f3681[_0x4c5f05++],_0xf01745^=_0x3f3681[_0x4c5f05++];let _0x440da1=_0x3f3681[_0x36fd69(0x415)]/0x4-0x2;for(let _0x443a2c=0x0;_0x443a2c<_0x440da1;_0x443a2c++){let _0x16b8bb=_0x3f3681[_0x4c5f05++]^_0x55bab8(_0x59f07d,_0x535e66,_0x1f2927,_0x1f81f9,_0x29b3d3,_0xf01745),_0x1a392d=_0x3f3681[_0x4c5f05++]^_0x55bab8(_0x59f07d,_0x535e66,_0x1f81f9,_0x29b3d3,_0xf01745,_0x1f2927),_0x18e3f7=_0x3f3681[_0x4c5f05++]^_0x55bab8(_0x59f07d,_0x535e66,_0x29b3d3,_0xf01745,_0x1f2927,_0x1f81f9),_0x31bf33=_0x3f3681[_0x4c5f05++]^_0x55bab8(_0x59f07d,_0x535e66,_0xf01745,_0x1f2927,_0x1f81f9,_0x29b3d3);_0x1f2927=_0x16b8bb,_0x1f81f9=_0x1a392d,_0x29b3d3=_0x18e3f7,_0xf01745=_0x31bf33;}return{'s0':_0x3f3681[_0x4c5f05++]^_0x48b4a2(_0x24ff21,_0x1f2927,_0x1f81f9,_0x29b3d3,_0xf01745),'s1':_0x3f3681[_0x4c5f05++]^_0x48b4a2(_0x24ff21,_0x1f81f9,_0x29b3d3,_0xf01745,_0x1f2927),'s2':_0x3f3681[_0x4c5f05++]^_0x48b4a2(_0x24ff21,_0x29b3d3,_0xf01745,_0x1f2927,_0x1f81f9),'s3':_0x3f3681[_0x4c5f05++]^_0x48b4a2(_0x24ff21,_0xf01745,_0x1f2927,_0x1f81f9,_0x29b3d3)};}function _0x1b88cd(_0x4cb57f,_0x350100,_0x587263,_0x32d497,_0xf4e04d){const _0x2c0d2b=_0x27b931;let {sbox2:_0x5dd316,T01:_0xea43b4,T23:_0x4f6e8a}=_0x2ab22e,_0x481196=0x0;_0x350100^=_0x4cb57f[_0x481196++],_0x587263^=_0x4cb57f[_0x481196++],_0x32d497^=_0x4cb57f[_0x481196++],_0xf4e04d^=_0x4cb57f[_0x481196++];let _0x477037=_0x4cb57f[_0x2c0d2b(0x415)]/0x4-0x2;for(let _0x362b73=0x0;_0x362b73<_0x477037;_0x362b73++){let _0x209215=_0x4cb57f[_0x481196++]^_0x55bab8(_0xea43b4,_0x4f6e8a,_0x350100,_0xf4e04d,_0x32d497,_0x587263),_0x5d0db5=_0x4cb57f[_0x481196++]^_0x55bab8(_0xea43b4,_0x4f6e8a,_0x587263,_0x350100,_0xf4e04d,_0x32d497),_0x523796=_0x4cb57f[_0x481196++]^_0x55bab8(_0xea43b4,_0x4f6e8a,_0x32d497,_0x587263,_0x350100,_0xf4e04d),_0x4f4dee=_0x4cb57f[_0x481196++]^_0x55bab8(_0xea43b4,_0x4f6e8a,_0xf4e04d,_0x32d497,_0x587263,_0x350100);_0x350100=_0x209215,_0x587263=_0x5d0db5,_0x32d497=_0x523796,_0xf4e04d=_0x4f4dee;}return{'s0':_0x4cb57f[_0x481196++]^_0x48b4a2(_0x5dd316,_0x350100,_0xf4e04d,_0x32d497,_0x587263),'s1':_0x4cb57f[_0x481196++]^_0x48b4a2(_0x5dd316,_0x587263,_0x350100,_0xf4e04d,_0x32d497),'s2':_0x4cb57f[_0x481196++]^_0x48b4a2(_0x5dd316,_0x32d497,_0x587263,_0x350100,_0xf4e04d),'s3':_0x4cb57f[_0x481196++]^_0x48b4a2(_0x5dd316,_0xf4e04d,_0x32d497,_0x587263,_0x350100)};}function _0x2fa415(_0x1a9c90){const _0x2b14fb=_0x27b931;if(_0x241cc3(_0x1a9c90),_0x1a9c90[_0x2b14fb(0x415)]%0x10!=0x0)throw Error('aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016');}function _0x574f0b(_0x1996a5,_0x38547e,_0x5df844){const _0x3f1eac=_0x27b931;_0x241cc3(_0x1996a5);let _0x236dbb=_0x1996a5[_0x3f1eac(0x415)],_0x19e906=_0x236dbb%0x10;if(!_0x38547e&&_0x19e906!==0x0)throw Error(_0x3f1eac(0x201));if(_0x38547e){let _0x329311=0x10-_0x19e906;_0x329311||(_0x329311=0x10),_0x236dbb+=_0x329311;}_0x5df844=_0x30f906(_0x236dbb,_0x5df844),_0x34ca96(_0x1996a5,_0x5df844),(!_0x4fbc4d||!_0x15866a(_0x1996a5))&&(_0x1996a5=_0x5b679f(_0x1996a5));let _0x544b1a=_0x505ef8(_0x1996a5);return _0x93eb92(_0x544b1a),{'b':_0x544b1a,'o':_0x505ef8(_0x5df844),'out':_0x5df844};}function _0x1f93cc(_0x492f90,_0x43cebc){const _0x349ec2=_0x27b931;if(!_0x43cebc)return _0x492f90;let _0x232a6e=_0x492f90[_0x349ec2(0x415)];if(_0x232a6e===0x0)throw Error('aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed');let _0x508e50=_0x492f90[_0x232a6e-0x1],_0x257a67=0x1;_0x257a67&=_0x508e50-0x1>>>0x1f^0x1,_0x257a67&=0x10-_0x508e50>>>0x1f^0x1;for(let _0x5b1135=0x0;_0x5b1135<0x10;_0x5b1135++){let _0xab635=_0x5b1135-_0x508e50>>>0x1f,_0x3e920e=+((_0x492f90[_0x232a6e-0x1-_0x5b1135]^_0x508e50)===0x0);_0x257a67&=_0x3e920e|_0xab635^0x1;}if(!_0x257a67)throw Error('aes/pkcs7:\x20wrong\x20padding');return _0x492f90[_0x349ec2(0x303)](0x0,_0x232a6e-_0x508e50);}function _0x3b18c1(_0x11de29){let _0xa8fff3=new Uint8Array(0x10),_0x56c33f=_0x505ef8(_0xa8fff3);_0xa8fff3['set'](_0x11de29);let _0x38f803=0x10-_0x11de29['length'];for(let _0x26195a=0x10-_0x38f803;_0x26195a<0x10;_0x26195a++)_0xa8fff3[_0x26195a]=_0x38f803;return _0x56c33f;}let _0x18a27a=_0x53e818({'blockSize':0x10,'nonceLength':0x10},function(_0x2ef2c0,_0x5a966a,_0x27025d={}){const _0x54c511=_0x27b931;let _0x5aec79=!_0x27025d[_0x54c511(0x1d3)];return{'encrypt'(_0x4681f4,_0x26695f){const _0x47d583=_0x54c511;let _0x50d8fb=_0x1bd2b0(_0x2ef2c0),{b:_0x55f466,o:_0x1a8ce1,out:_0x1d1c9d}=_0x574f0b(_0x4681f4,_0x5aec79,_0x26695f),_0x5c43db=_0x5a966a,_0xdd4792=[_0x50d8fb];(!_0x4fbc4d||!_0x15866a(_0x5c43db))&&_0xdd4792[_0x47d583(0x30b)](_0x5c43db=_0x5b679f(_0x5c43db));let _0x4b0f41=_0x505ef8(_0x5c43db);_0x93eb92(_0x4b0f41);let _0xd6e879=_0x4b0f41[0x0],_0x457b69=_0x4b0f41[0x1],_0x2d5852=_0x4b0f41[0x2],_0x3756eb=_0x4b0f41[0x3],_0x42bc5c=0x0;for(;_0x42bc5c+0x4<=_0x55f466['length'];)_0xd6e879^=_0x55f466[_0x42bc5c+0x0],_0x457b69^=_0x55f466[_0x42bc5c+0x1],_0x2d5852^=_0x55f466[_0x42bc5c+0x2],_0x3756eb^=_0x55f466[_0x42bc5c+0x3],{s0:_0xd6e879,s1:_0x457b69,s2:_0x2d5852,s3:_0x3756eb}=_0x430a23(_0x50d8fb,_0xd6e879,_0x457b69,_0x2d5852,_0x3756eb),_0x1a8ce1[_0x42bc5c++]=_0xd6e879,_0x1a8ce1[_0x42bc5c++]=_0x457b69,_0x1a8ce1[_0x42bc5c++]=_0x2d5852,_0x1a8ce1[_0x42bc5c++]=_0x3756eb;if(_0x5aec79){let _0x3a9196=_0x3b18c1(_0x4681f4[_0x47d583(0x303)](_0x42bc5c*0x4));_0x93eb92(_0x3a9196),_0xd6e879^=_0x3a9196[0x0],_0x457b69^=_0x3a9196[0x1],_0x2d5852^=_0x3a9196[0x2],_0x3756eb^=_0x3a9196[0x3],{s0:_0xd6e879,s1:_0x457b69,s2:_0x2d5852,s3:_0x3756eb}=_0x430a23(_0x50d8fb,_0xd6e879,_0x457b69,_0x2d5852,_0x3756eb),_0x1a8ce1[_0x42bc5c++]=_0xd6e879,_0x1a8ce1[_0x42bc5c++]=_0x457b69,_0x1a8ce1[_0x42bc5c++]=_0x2d5852,_0x1a8ce1[_0x42bc5c++]=_0x3756eb;}return _0x93eb92(_0x1a8ce1),_0xfcd1a4(..._0xdd4792),_0x1d1c9d;},'decrypt'(_0x519358,_0x5c844d){const _0x26e2c0=_0x54c511;_0x2fa415(_0x519358);let _0xff2254=_0x81f1df(_0x2ef2c0),_0x3b1a8b=_0x5a966a,_0x4d3e2c=[_0xff2254];(!_0x4fbc4d||!_0x15866a(_0x3b1a8b))&&_0x4d3e2c[_0x26e2c0(0x30b)](_0x3b1a8b=_0x5b679f(_0x3b1a8b));let _0x3b6fbe=_0x505ef8(_0x3b1a8b);_0x93eb92(_0x3b6fbe),_0x5c844d=_0x30f906(_0x519358['length'],_0x5c844d),_0x34ca96(_0x519358,_0x5c844d),(!_0x4fbc4d||!_0x15866a(_0x519358))&&_0x4d3e2c[_0x26e2c0(0x30b)](_0x519358=_0x5b679f(_0x519358));let _0x12c40b=_0x505ef8(_0x519358),_0x4590ca=_0x505ef8(_0x5c844d);_0x93eb92(_0x12c40b);let _0x5cbe9a=_0x3b6fbe[0x0],_0x559957=_0x3b6fbe[0x1],_0x59cccf=_0x3b6fbe[0x2],_0x10a0b0=_0x3b6fbe[0x3];for(let _0x39b707=0x0;_0x39b707+0x4<=_0x12c40b[_0x26e2c0(0x415)];){let _0x191478=_0x5cbe9a,_0x1d41cd=_0x559957,_0x3233ff=_0x59cccf,_0x260c10=_0x10a0b0;_0x5cbe9a=_0x12c40b[_0x39b707+0x0],_0x559957=_0x12c40b[_0x39b707+0x1],_0x59cccf=_0x12c40b[_0x39b707+0x2],_0x10a0b0=_0x12c40b[_0x39b707+0x3];let {s0:_0x132c79,s1:_0x662fc0,s2:_0x41c37c,s3:_0x547ff3}=_0x1b88cd(_0xff2254,_0x5cbe9a,_0x559957,_0x59cccf,_0x10a0b0);_0x4590ca[_0x39b707++]=_0x132c79^_0x191478,_0x4590ca[_0x39b707++]=_0x662fc0^_0x1d41cd,_0x4590ca[_0x39b707++]=_0x41c37c^_0x3233ff,_0x4590ca[_0x39b707++]=_0x547ff3^_0x260c10;}return _0x93eb92(_0x4590ca),_0xfcd1a4(..._0x4d3e2c),_0x1f93cc(_0x5c844d,_0x5aec79);}};});function _0x1fa79a(_0x5c1cd7){const _0x209a9a=_0x27b931;let _0x413d12=atob(_0x5c1cd7),_0x372a47=new Uint8Array(_0x413d12[_0x209a9a(0x415)]);for(let _0x214544=0x0;_0x214544<_0x413d12[_0x209a9a(0x415)];_0x214544++)_0x372a47[_0x214544]=_0x413d12['charCodeAt'](_0x214544);return _0x372a47;}function _0x24d31d(_0x263b65){const _0x1fca9e=_0x27b931;let _0x3478cb='';for(let _0x20f15f=0x0;_0x20f15f<_0x263b65['length'];_0x20f15f++)_0x3478cb+=String[_0x1fca9e(0x349)](_0x263b65[_0x20f15f]);return btoa(_0x3478cb);}function _0x7b17e0(_0x5333b7,_0x4757f8){let _0x102b62=_0x1fa79a(_0x4757f8),_0x4e54ac=_0x2d2cd9(0x10);return _0x24d31d(_0x3f9ffe(_0x4e54ac,_0x18a27a(_0x102b62,_0x4e54ac)['encrypt'](_0x395142(_0x5333b7))));}function _0x1bc6dc(){const _0x3228a0=_0x27b931;let _0x2615c5=(0x0,_0x4326e6[_0x3228a0(0x1dc)])()['__Key__'];if(typeof window<'u'&&window[_0x3228a0(0x17d)]!==void 0x0&&_0x2615c5){let _0x313dbc={'time':Math[_0x3228a0(0x414)](Date[_0x3228a0(0x284)]()/0x3e8),'domain':location[_0x3228a0(0x1e2)]};return _0x7b17e0(JSON[_0x3228a0(0x3e5)](_0x313dbc),_0x2615c5);}}let _0x1a45aa=class{constructor(_0x4b0052){const _0x14f518=_0x27b931;this[_0x14f518(0x3d8)]=_0x4b0052,this['_initRequestHeader']();}[_0x27b931(0x280)](){const _0x2b049a=_0x27b931;this[_0x2b049a(0x3d8)][_0x2b049a(0xcf)]({'interceptor':(_0x2a0631,_0x4ee535)=>{const _0x858528=_0x2b049a;let _0x35685c=_0x1bc6dc();return _0x35685c&&_0x2a0631[_0x858528(0x23f)]['set']('x-univer-host',_0x35685c),_0x4ee535(_0x2a0631);}});}};_0x1a45aa=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x8f2da5[_0x27b931(0x2e6)]))],_0x1a45aa);let _0x5cf05d=class extends _0x47f753['RxDisposable']{constructor(_0x5a5e7a,_0x4e7e4e,_0xfc9824){const _0xa1941c=_0x27b931;super(),this[_0xa1941c(0x1a1)]=_0x5a5e7a,this[_0xa1941c(0x10f)]=_0x4e7e4e,this[_0xa1941c(0x189)]=_0xfc9824,_0x2dd74e(this,_0xa1941c(0x278),new _0x470009[(_0xa1941c(0x25b))](null)),_0x2dd74e(this,'_unitLoaded$',new _0x470009[(_0xa1941c(0x256))]()),_0x2dd74e(this,_0xa1941c(0x34c),this[_0xa1941c(0x278)]['asObservable']()),_0x2dd74e(this,_0xa1941c(0x2d6),this[_0xa1941c(0x136)][_0xa1941c(0x2b2)]());}['dispose'](){const _0x5bce73=_0x27b931;super[_0x5bce73(0x2bc)](),this[_0x5bce73(0x136)][_0x5bce73(0x32e)](),this[_0x5bce73(0x278)][_0x5bce73(0x32e)]();}async['loadUnitOfRevision'](_0x2485a7,_0x4c3ae1,_0x1b9cc6,_0x2614d2){const _0x496717=_0x27b931;this[_0x496717(0x278)][_0x496717(0x396)]({'unitId':_0x2485a7,'type':_0x4c3ae1,'subUnitId':_0x2614d2});let _0x3ee92=null;switch(_0x4c3ae1){case _0x47f753[_0x496717(0x3fc)][_0x496717(0x239)]:_0x3ee92=await this[_0x496717(0x10f)]['loadSheet'](_0x2485a7,_0x1b9cc6,void 0x0,{'initialSubUnitId':_0x2614d2});break;case _0x47f753['UniverInstanceType'][_0x496717(0x243)]:_0x3ee92=await this['_snapshotService'][_0x496717(0x40b)](_0x2485a7,_0x1b9cc6);break;case _0x47f753[_0x496717(0x3fc)][_0x496717(0x339)]:_0x3ee92=await this[_0x496717(0x10f)][_0x496717(0x31e)](_0x2485a7,_0x1b9cc6);break;case _0x47f753[_0x496717(0x3fc)]['UNIVER_BOARD']:_0x3ee92=await this['_snapshotService'][_0x496717(0x2bf)](_0x2485a7,_0x1b9cc6);break;case _0x47f753[_0x496717(0x3fc)]['UNIVER_BASE']:_0x3ee92=await this[_0x496717(0x10f)]['loadBase'](_0x2485a7,_0x1b9cc6);break;default:this['_logService'][_0x496717(0x294)](_0x496717(0xcb),_0x496717(0x3a5));break;}return _0x3ee92&&this['_unitLoaded$']['next'](_0x3ee92),_0x3ee92;}async['loadUnit'](_0x2aeaee,_0x311d9c,_0x3de567){const _0x2dad63=_0x27b931;var _0x22faa1;this[_0x2dad63(0x278)][_0x2dad63(0x396)]({'unitId':_0x2aeaee,'type':_0x311d9c,'subUnitId':_0x3de567});let _0x37b937=0x0,_0x19a130=await((_0x22faa1=this['_localCacheService'])==null?void 0x0:_0x22faa1[_0x2dad63(0x2e3)](_0x2aeaee));return _0x19a130&&(_0x19a130['awaitingChangeset']||_0x19a130[_0x2dad63(0x35e)][_0x2dad63(0x415)]!==0x0)&&(_0x37b937=_0x19a130['rev']),_0x37b937===0x0&&this['_logService'][_0x2dad63(0x418)]('[DataLoaderService]',_0x2dad63(0x1a0)),this[_0x2dad63(0x2d7)](_0x2aeaee,_0x311d9c,_0x37b937,_0x3de567);}};_0x5cf05d=_0x1fb4c2([_0x2af294(0x0,_0x47f753['ILogService']),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x417)])),_0x2af294(0x2,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x5cf05d);let _0x48896b=class{constructor(_0x531e90,_0x3c57a7,_0x1ba3dd){const _0x3b2471=_0x27b931;this[_0x3b2471(0x3d8)]=_0x531e90,this[_0x3b2471(0x228)]=_0x3c57a7,this[_0x3b2471(0x37d)]=_0x1ba3dd,_0x2dd74e(this,_0x3b2471(0x376),0x0),_0x2dd74e(this,_0x3b2471(0x371),new _0x470009[(_0x3b2471(0x256))]()),_0x2dd74e(this,'change$',this[_0x3b2471(0x371)]),_0x2dd74e(this,_0x3b2471(0x217),new Map());}[_0x27b931(0x124)](_0x18a9f2){const _0x255d53=_0x27b931;this[_0x255d53(0x376)]=_0x18a9f2,this[_0x255d53(0x371)]['next'](_0x18a9f2);}[_0x27b931(0x22a)](_0x3df041,_0x16ee03){const _0x4d47f2=_0x27b931;if(_0x16ee03===_0x47f753['ImageSourceType'][_0x4d47f2(0x2f0)]){let _0x3e01ca=new Image();return _0x3e01ca['src']=_0x3df041,_0x3e01ca;}return this['_imageSourceCache'][_0x4d47f2(0x1ad)](_0x3df041);}['addImageSourceCache'](_0x50a963,_0x125fb1,_0x56f4ac){const _0x4360be=_0x27b931;_0x125fb1===_0x47f753[_0x4360be(0x149)]['BASE64']||_0x56f4ac==null||this['_imageSourceCache']['set'](_0x50a963,_0x56f4ac);}async['getImage'](_0x14f507){const _0x5aa894=_0x27b931;try{let _0x1121be=this[_0x5aa894(0x1d6)](this[_0x5aa894(0x1b4)](),''+_0x14f507),_0x323267=(await this[_0x5aa894(0x3d8)][_0x5aa894(0x1ad)](_0x1121be))[_0x5aa894(0x2d9)];if(_0x323267[_0x5aa894(0x294)]&&_0x323267[_0x5aa894(0x294)][_0x5aa894(0x1fc)]===_0x26a654[_0x5aa894(0x3a7)]['OK']){let _0x3ef3e2=(0x0,_0x47f753['resolveWithBasePath'])(_0x323267['url'],this[_0x5aa894(0x1cb)]());return Promise[_0x5aa894(0x309)](_0x3ef3e2);}return Promise[_0x5aa894(0x133)](_0x323267[_0x5aa894(0x294)]);}catch(_0xa9540){return Promise[_0x5aa894(0x133)](_0xa9540);}}async[_0x27b931(0x305)](_0x4ee011){const _0x1c7f38=_0x27b931;let _0x35da22='';if(!_0x5d9de4[_0x1c7f38(0x24c)][_0x1c7f38(0xf2)](_0x4ee011[_0x1c7f38(0x2af)]))return this['_decreaseWaiting'](),Promise[_0x1c7f38(0x133)](Error(_0x47f753[_0x1c7f38(0x3f8)][_0x1c7f38(0x2a1)]));if(_0x4ee011['size']>(0x0,_0x5d9de4[_0x1c7f38(0x103)])())return this[_0x1c7f38(0xea)](),Promise['reject'](Error(_0x47f753[_0x1c7f38(0x3f8)][_0x1c7f38(0x3e2)]));try{let _0x486981=new FormData();_0x486981[_0x1c7f38(0x3cb)](_0x1c7f38(0x184),_0x4ee011);let _0x4c0f74=this['_univerInstanceService'][_0x1c7f38(0x3d3)](),_0x2896e9=_0x4c0f74==null?void 0x0:_0x4c0f74[_0x1c7f38(0x3f1)]();if(!_0x2896e9)throw Error(_0x1c7f38(0x255));let _0x124d00=this['_getUploadFileURL']()+'?size='+_0x4ee011[_0x1c7f38(0x1f6)][_0x1c7f38(0x140)]()+_0x1c7f38(0x26b)+_0x26a654[_0x1c7f38(0x2cf)][_0x1c7f38(0x330)]+_0x1c7f38(0x3c3)+encodeURIComponent(_0x2896e9),_0x2627da={'body':_0x486981},_0x125749=(await this[_0x1c7f38(0x3d8)][_0x1c7f38(0x139)](_0x124d00,_0x2627da))[_0x1c7f38(0x2d9)];if(typeof _0x125749[_0x1c7f38(0xdd)]!=_0x1c7f38(0x267))return this[_0x1c7f38(0xea)](),Promise['reject'](Error(_0x47f753[_0x1c7f38(0x3f8)][_0x1c7f38(0x33f)]));_0x35da22=_0x125749[_0x1c7f38(0xdd)];}catch{return this['_decreaseWaiting'](),Promise[_0x1c7f38(0x133)](Error(_0x47f753['ImageUploadStatusType'][_0x1c7f38(0x33f)]));}return new Promise((_0x224cb5,_0x136da2)=>{const _0x1d9b8b=_0x1c7f38;let _0x4da59e=new FileReader();_0x4da59e[_0x1d9b8b(0x40a)](_0x4ee011),_0x4da59e[_0x1d9b8b(0x157)]=_0x5375da=>{const _0x18f125=_0x1d9b8b;var _0x3165c2;let _0x43c00d=(_0x3165c2=_0x5375da[_0x18f125(0x216)])==null?void 0x0:_0x3165c2[_0x18f125(0x130)];if(_0x43c00d==null){this[_0x18f125(0xea)](),_0x136da2(Error(_0x47f753[_0x18f125(0x3f8)][_0x18f125(0x33f)]));return;}_0x224cb5({'imageId':(0x0,_0x47f753[_0x18f125(0x404)])(0x6),'imageSourceType':_0x47f753['ImageSourceType'][_0x18f125(0x403)],'source':_0x35da22,'base64Cache':_0x43c00d,'status':_0x47f753['ImageUploadStatusType'][_0x18f125(0x3a6)]}),this[_0x18f125(0xea)]();};});}[_0x27b931(0x33c)](){const _0x1b0cbe=_0x27b931;var _0x101ce9;let _0x3c955e=this[_0x1b0cbe(0x228)][_0x1b0cbe(0x190)](_0x3c17be);return(_0x101ce9=_0x3c955e==null?void 0x0:_0x3c955e[_0x1b0cbe(0x2c4)])==null?_0x1b0cbe(0x213):_0x101ce9;}[_0x27b931(0x1b4)](){const _0xd478d8=_0x27b931;var _0x3be4bf;let _0x1973de=this[_0xd478d8(0x228)][_0xd478d8(0x190)](_0x3c17be);return(_0x3be4bf=_0x1973de==null?void 0x0:_0x1973de['signUrlServerUrl'])==null?_0xd478d8(0x15a):_0x3be4bf;}[_0x27b931(0x1cb)](){const _0x1c104a=_0x27b931;var _0x40c3ed;let _0x7ce1fb=this[_0x1c104a(0x228)][_0x1c104a(0x190)](_0x3c17be);return(_0x40c3ed=_0x7ce1fb==null?void 0x0:_0x7ce1fb[_0x1c104a(0x32d)])==null?location[_0x1c104a(0x1a3)]:_0x40c3ed;}['_replaceFileID'](_0x20b2c8,_0x1f75a9){const _0x4e0600=_0x27b931;return _0x20b2c8['replace'](_0x4e0600(0x23b),_0x1f75a9);}[_0x27b931(0xea)](){const _0x4c0ac6=_0x27b931;--this[_0x4c0ac6(0x376)],this['_change$']['next'](this[_0x4c0ac6(0x376)]);}};_0x48896b=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x8f2da5[_0x27b931(0x2e6)])),_0x2af294(0x1,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x2,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x235)]))],_0x48896b);let _0x113be6=class{constructor(_0x10f987,_0x540b2b){const _0xa77bc4=_0x27b931;this['_configService']=_0x10f987,this[_0xa77bc4(0x345)]=_0x540b2b;}[_0x27b931(0xe2)](){const _0x4ca23f=_0x27b931;var _0x2a2d3b;let _0x2304e8=this[_0x4ca23f(0x228)][_0x4ca23f(0x190)](_0x3c17be);return(_0x2a2d3b=_0x2304e8==null?void 0x0:_0x2304e8[_0x4ca23f(0x1c1)])==null?_0x4ca23f(0x2d4):_0x2a2d3b;}async[_0x27b931(0x3c5)](_0x4c2208){const _0x5a37cc=_0x27b931;let _0x66d711=this[_0x5a37cc(0xe2)]()+_0x5a37cc(0x241);return{'list':[{'title':_0x5a37cc(0x34d),'mentions':(await this['_HTTPService'][_0x5a37cc(0x1ad)](_0x66d711,{'params':{'objectID':_0x4c2208[_0x5a37cc(0x320)],'unitID':_0x4c2208[_0x5a37cc(0x320)]}}))[_0x5a37cc(0x2d9)][_0x5a37cc(0x19a)][_0x5a37cc(0x394)](_0x41f2d3=>({'objectId':_0x41f2d3['id'],'name':_0x41f2d3[_0x5a37cc(0x108)][_0x5a37cc(0x3dc)],'metadata':{'icon':_0x41f2d3[_0x5a37cc(0x108)][_0x5a37cc(0x287)]},'label':_0x41f2d3[_0x5a37cc(0x108)][_0x5a37cc(0x3dc)],'objectType':_0x47f753['MentionType'][_0x5a37cc(0x3d4)]})),'metadata':{},'type':_0x47f753[_0x5a37cc(0x1c9)][_0x5a37cc(0x3d4)]}]};}};_0x113be6=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x18f)])),_0x2af294(0x1,(0x0,_0x47f753['Inject'])(_0x8f2da5[_0x27b931(0x2e6)]))],_0x113be6);let _0x369c1a=class extends _0x47f753['RxDisposable']{constructor(_0x51c59b,_0x3bd0a0,_0x1bb048,_0xf3743a,_0x5aabd0){const _0x29c184=_0x27b931;super(),this[_0x29c184(0x2fe)]=_0x51c59b,this[_0x29c184(0x37d)]=_0x3bd0a0,this[_0x29c184(0x373)]=_0x1bb048,this['_collaborationSessionService']=_0xf3743a,this['_collaborationUIEventService']=_0x5aabd0,this[_0x29c184(0x15d)](),this['_initCloseConn']();}[_0x27b931(0x21b)](){const _0x294151=_0x27b931;let _0x523644=async _0x20287b=>{const _0x33ee3a=_0x1420;(await this[_0x33ee3a(0x368)][_0x33ee3a(0x410)](_0x20287b))[_0x33ee3a(0x2ef)][_0x33ee3a(0x11f)]((0x0,_0x5ba228[_0x33ee3a(0x12e)])(_0x2c1a75=>_0x2c1a75[_0x33ee3a(0x1a4)]===_0x149d12['CollaborationEvent'][_0x33ee3a(0x2ae)]),(0x0,_0x5ba228[_0x33ee3a(0xdc)])(this[_0x33ee3a(0x18b)]))[_0x33ee3a(0x38e)](_0x57c193=>{const _0xca1d3f=_0x33ee3a;let {reason:_0x1a00e9}=_0x57c193[_0xca1d3f(0x401)];this[_0xca1d3f(0x11a)]['emitEvent']({'id':_0xca1d3f(0x352),'data':_0x1a00e9}),this[_0xca1d3f(0x373)][_0xca1d3f(0x1a8)](new _0x1e2709['WorkbookEditablePermission'](_0x20287b)['id'],!0x1),this[_0xca1d3f(0x368)]['closeSession'](_0x20287b);});};(0x0,_0x470009[_0x294151(0x407)])(this[_0x294151(0x37d)][_0x294151(0x3d6)](_0x47f753['UniverInstanceType'][_0x294151(0x239)]),this[_0x294151(0x37d)]['getTypeOfUnitAdded$'](_0x47f753[_0x294151(0x3fc)][_0x294151(0x243)]),this[_0x294151(0x37d)][_0x294151(0x3d6)](_0x47f753[_0x294151(0x3fc)][_0x294151(0x41d)]),this[_0x294151(0x37d)][_0x294151(0x3d6)](_0x47f753[_0x294151(0x3fc)][_0x294151(0x313)]))[_0x294151(0x11f)]((0x0,_0x5ba228[_0x294151(0x394)])(_0x3433a0=>_0x3433a0[_0x294151(0x191)]['getUnitId']()),(0x0,_0x5ba228['filter'])(_0x20831a=>!(0x0,_0x47f753[_0x294151(0x3ff)])(_0x20831a)),(0x0,_0x5ba228[_0x294151(0xdc)])(this['dispose$']))['subscribe'](_0x221744=>{_0x523644(_0x221744);});}[_0x27b931(0x15d)](){const _0x1a2606=_0x27b931;let _0x34d0b6=async _0x2d8032=>{const _0x4af072=_0x1420;let _0x5e3576=await this[_0x4af072(0x368)]['requireSession'](_0x2d8032),_0x10189c=this[_0x4af072(0x2fe)][_0x4af072(0x1ad)](_0x1e2709['SheetPermissionInitController']);_0x5e3576[_0x4af072(0x2ef)][_0x4af072(0x11f)]((0x0,_0x5ba228[_0x4af072(0x12e)])(_0x56d278=>_0x56d278[_0x4af072(0x1a4)]===_0x149d12['CollaborationEvent'][_0x4af072(0x12d)]),(0x0,_0x5ba228[_0x4af072(0xdc)])(this['dispose$']))[_0x4af072(0x38e)](_0x1e0a97=>{const _0x2e3497=_0x4af072;let {objectId:_0x4186b2}=_0x1e0a97[_0x2e3497(0x401)];_0x4186b2===_0x2d8032?_0x10189c['initWorkbookPermissionChange'](_0x2d8032):_0x10189c[_0x2e3497(0x232)](_0x2d8032,_0x4186b2);});};(0x0,_0x470009[_0x1a2606(0x407)])(this[_0x1a2606(0x37d)][_0x1a2606(0x3d6)](_0x47f753[_0x1a2606(0x3fc)]['UNIVER_SHEET']))[_0x1a2606(0x11f)]((0x0,_0x5ba228['map'])(_0x175680=>_0x175680[_0x1a2606(0x191)]['getUnitId']()),(0x0,_0x5ba228['filter'])(_0x2668c6=>!(0x0,_0x47f753[_0x1a2606(0x3ff)])(_0x2668c6)),(0x0,_0x5ba228[_0x1a2606(0xdc)])(this[_0x1a2606(0x18b)]))[_0x1a2606(0x38e)](_0x19e70f=>{_0x34d0b6(_0x19e70f);});}};_0x369c1a=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x1,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x2,_0x47f753['IPermissionService']),_0x2af294(0x3,(0x0,_0x47f753['Inject'])(_0xc5d6a5)),_0x2af294(0x4,(0x0,_0x47f753['Inject'])(_0x2a71d9))],_0x369c1a);let _0x51c4c2=class{constructor(_0x247f85,_0x396830){const _0x332c11=_0x27b931;this['_configService']=_0x247f85,this[_0x332c11(0x3d8)]=_0x396830;}async[_0x27b931(0x366)](_0x27afab,_0x4484c7){const _0x574cdd=_0x27b931;var _0xbe6dc8;let {unitID:_0x5bd64c,type:_0x29b948,revision:_0x6510ef=0x0}=_0x4484c7,_0x2fc9d6=this[_0x574cdd(0x35b)]()+'/'+_0x29b948+_0x574cdd(0x288)+_0x5bd64c+_0x574cdd(0x38f)+_0x6510ef,_0x3afc3e=(await this[_0x574cdd(0x3d8)]['get'](_0x2fc9d6))[_0x574cdd(0x2d9)],_0x277967=(_0xbe6dc8=_0x3afc3e[_0x574cdd(0x324)])==null?void 0x0:_0xbe6dc8[_0x574cdd(0x1ae)];if(_0x277967){let _0x2a50a5=_0x277967==null?void 0x0:_0x277967['originalMeta'];_0x277967[_0x574cdd(0x29b)]=_0x149d12['textEncoder'][_0x574cdd(0x2f4)]((0x0,_0x149d12[_0x574cdd(0x331)])(_0x2a50a5)),Object[_0x574cdd(0x315)](_0x277967[_0x574cdd(0x111)])[_0x574cdd(0x302)](([,_0x4a14f3])=>{const _0x584e30=_0x574cdd;let _0x48f85d=_0x4a14f3['originalMeta'];_0x4a14f3['originalMeta']=_0x149d12[_0x584e30(0x26d)]['encode']((0x0,_0x149d12['b64DecodeUnicode'])(_0x48f85d));});}return _0x3afc3e;}async[_0x27b931(0x398)](_0x545a3d,_0x5b13ec){const _0x34cd44=_0x27b931;let {unitID:_0x202a09,type:_0x1738f8,blockID:_0x2a9f61}=_0x5b13ec,_0x1b6820=this[_0x34cd44(0x41e)]()+'/'+_0x1738f8+_0x34cd44(0x288)+_0x202a09+_0x34cd44(0x2f6)+_0x2a9f61;return(await this[_0x34cd44(0x3d8)]['get'](_0x1b6820))[_0x34cd44(0x2d9)];}async[_0x27b931(0x314)](_0x2752bc,_0x454f3f){const _0x4c59b0=_0x27b931;let {unitID:_0x434e91,type:_0x2b50bf,blockID:_0x3650df}=_0x454f3f,_0x4dc9eb=this[_0x4c59b0(0x41e)]()+_0x4c59b0(0x2f6)+_0x2b50bf+'/unit/'+_0x434e91+_0x4c59b0(0x2f6)+_0x3650df;return(await this[_0x4c59b0(0x3d8)][_0x4c59b0(0x1ad)](_0x4dc9eb))[_0x4c59b0(0x2d9)];}async['fetchMissingChangesets'](_0x54f2af,_0x157710){const _0x467a7f=_0x27b931;let {unitID:_0x58d878,type:_0x255f9d,from:_0x253598,to:_0x33ff57}=_0x157710,_0x356cc9=this[_0x467a7f(0x41e)]()+'/'+_0x255f9d+_0x467a7f(0x288)+_0x58d878+_0x467a7f(0x31d)+_0x253598+'&to='+_0x33ff57;return(await this[_0x467a7f(0x3d8)][_0x467a7f(0x1ad)](_0x356cc9))[_0x467a7f(0x2d9)];}['getSnapshotAPIPath'](){const _0x3106d1=_0x27b931;var _0x1e25c3;return(_0x1e25c3=this[_0x3106d1(0x228)][_0x3106d1(0x190)](_0x3106d1(0x1b0)))==null?this[_0x3106d1(0x41e)]():_0x1e25c3;}[_0x27b931(0x41e)](){const _0x10832f=_0x27b931;var _0x4408cc;let _0x3d6d25=this['_configService'][_0x10832f(0x190)](_0x3c17be);return(_0x4408cc=_0x3d6d25==null?void 0x0:_0x3d6d25[_0x10832f(0x3a2)])==null?_0x10832f(0x247):_0x4408cc;}async[_0x27b931(0x121)](_0x627f93,_0x1a74b5){const _0x1b9cc4=_0x27b931;let _0x36eb1d='/universer-api/snapshot/'+_0x1a74b5[_0x1b9cc4(0x2af)]+_0x1b9cc4(0x288)+_0x1a74b5[_0x1b9cc4(0x2ea)]+_0x1b9cc4(0x16f);return(await this['_httpService'][_0x1b9cc4(0x1ad)](_0x36eb1d,{'params':{'resourceId':JSON[_0x1b9cc4(0x3e5)](_0x1a74b5[_0x1b9cc4(0x24f)])}}))[_0x1b9cc4(0x2d9)];}[_0x27b931(0x277)](){const _0x2c08e2=_0x27b931;throw Error(_0x2c08e2(0x385));}[_0x27b931(0x104)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x186677=_0x27b931;throw Error(_0x186677(0x385));}[_0x27b931(0x2f5)](){const _0x2b401f=_0x27b931;throw Error(_0x2b401f(0x385));}[_0x27b931(0x3e3)](){const _0x59ffa4=_0x27b931;throw Error(_0x59ffa4(0x385));}['getLatestCsReqIdBySid'](){const _0x1f1004=_0x27b931;throw Error(_0x1f1004(0x385));}};_0x51c4c2=_0x1fb4c2([_0x2af294(0x0,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x8f2da5[_0x27b931(0x2e6)]))],_0x51c4c2);let _0x10a064=class extends _0x47f753[_0x27b931(0x344)]{constructor(_0x241591,_0xe3db0,_0x2b2004,_0x412ea1,_0x598113){const _0x3935f4=_0x27b931;super(_0x241591,_0xe3db0,_0x2b2004),this['_transformService']=_0x412ea1,this[_0x3935f4(0x1a1)]=_0x598113;}[_0x27b931(0x135)](_0x431723,_0x102200){const _0x5349aa=_0x27b931;let _0x1c1ec7=this[_0x5349aa(0x29e)](_0x431723);if(_0x1c1ec7)try{let _0x5af08c=this[_0x5349aa(0x18a)](_0x1c1ec7,_0x102200);this[_0x5349aa(0x1dd)](_0x431723,_0x5af08c);}catch(_0x30c705){this[_0x5349aa(0x1a1)][_0x5349aa(0x294)](_0x5349aa(0x2f9),_0x30c705),this[_0x5349aa(0x3ef)](_0x431723);}let _0x398252=this['_getRedoStack'](_0x431723);if(_0x398252)try{let _0x1cf9e2=this[_0x5349aa(0x18a)](_0x398252,_0x102200);this[_0x5349aa(0x1ce)](_0x431723,_0x1cf9e2);}catch(_0x3f8a44){this[_0x5349aa(0x1a1)][_0x5349aa(0x294)](_0x3f8a44),this[_0x5349aa(0x3f0)](_0x431723);}}[_0x27b931(0x3ef)](_0x2b222d){const _0x3d34b8=_0x27b931;let _0x15c268=this['_getUndoStack'](_0x2b222d);_0x15c268&&(_0x15c268[_0x3d34b8(0x415)]=0x0,this[_0x3d34b8(0x172)]());}[_0x27b931(0x3f0)](_0x231cb4){const _0xa5be6b=_0x27b931;let _0x2cb8e1=this[_0xa5be6b(0x1e5)](_0x231cb4);_0x2cb8e1&&(_0x2cb8e1[_0xa5be6b(0x415)]=0x0,this[_0xa5be6b(0x172)]());}[_0x27b931(0x1dd)](_0x595f50,_0x531b3e){const _0x283fcf=_0x27b931;this[_0x283fcf(0x26f)][_0x283fcf(0xf6)](_0x595f50,_0x531b3e),this['_updateStatus']();}[_0x27b931(0x1ce)](_0x20e304,_0x5bda7a){const _0x4bf43a=_0x27b931;this[_0x4bf43a(0x3bc)][_0x4bf43a(0xf6)](_0x20e304,_0x5bda7a),this[_0x4bf43a(0x172)]();}['_transformStack'](_0x66f137,_0x57edff){const _0x5526a6=_0x27b931;let _0x469575=[],_0x2020f8=_0x57edff,_0x4ffed9=_0x57edff;for(let _0x46a03f=_0x66f137[_0x5526a6(0x415)]-0x1;_0x46a03f>=0x0;_0x46a03f--){let {unitID:_0x4a31d4,undoMutations:_0x5aeaae,redoMutations:_0x2d791e}=_0x66f137[_0x46a03f],_0xc8c51b=this[_0x5526a6(0x14e)][_0x5526a6(0x17a)](_0x2020f8,_0x5aeaae),_0x881ac6=this[_0x5526a6(0x14e)][_0x5526a6(0x17a)](_0x4ffed9,_0x2d791e);if((0x0,_0x149d12[_0x5526a6(0x29d)])(_0xc8c51b)||(0x0,_0x149d12[_0x5526a6(0x29d)])(_0x881ac6)){this[_0x5526a6(0x1a1)][_0x5526a6(0x294)](_0x5526a6(0x2f9),_0x5526a6(0x3d1),_0xc8c51b,_0x881ac6);break;}_0x2020f8=_0xc8c51b['c1Prime'],_0x4ffed9=_0x881ac6[_0x5526a6(0x2b1)],_0x469575[_0x5526a6(0x30b)]({'unitID':_0x4a31d4,'undoMutations':_0xc8c51b[_0x5526a6(0x3b0)],'redoMutations':_0x881ac6[_0x5526a6(0x3b0)]});}return _0x469575[_0x5526a6(0x214)]();}};_0x10a064=_0x1fb4c2([_0x2af294(0x0,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x1,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x2,_0x47f753['IContextService']),_0x2af294(0x3,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0x4,_0x47f753[_0x27b931(0x370)])],_0x10a064);let _0x45d7d9=class extends _0x47f753[_0x27b931(0x375)]{constructor(_0xb50407=_0xa759f3,_0x51a7c7,_0x534e2f,_0x43085b){const _0x2e2ed8=_0x27b931;super(),this[_0x2e2ed8(0x155)]=_0xb50407,this['_logService']=_0x51a7c7,this[_0x2e2ed8(0x2fe)]=_0x534e2f,this[_0x2e2ed8(0x228)]=_0x43085b;let {..._0x3d5207}=(0x0,_0x47f753[_0x2e2ed8(0x407)])({},_0xa759f3,this['_config']);if(!_0x3d5207[_0x2e2ed8(0x39b)])throw Error(_0x2e2ed8(0x120));this[_0x2e2ed8(0x155)]=_0x3d5207,this['_configService'][_0x2e2ed8(0x31c)](_0x3c17be,_0x3d5207);}['onStarting'](){const _0xd8e49=_0x27b931;this[_0xd8e49(0x413)](),this[_0xd8e49(0x1fe)]();}[_0x27b931(0x413)](){const _0x4a5a8b=_0x27b931;var _0x25e736,_0x2d400d;this['_injector'][_0x4a5a8b(0xff)](_0x47f753['IUndoRedoService'])&&this['_logService'][_0x4a5a8b(0x294)]('[UniverCollaborationClientPlugin]',_0x4a5a8b(0xda));let _0x271fb1=(0x0,_0x47f753[_0x4a5a8b(0x117)])([[_0x47f753['IUndoRedoService'],{'useClass':_0x10a064}],[_0x1e5735,{'useValue':_0x122337()}],[_0xc5d6a5],[_0x541d7d],[_0x2e077e],[_0x149557],[_0x1a45aa],[_0x101a15],[_0x369c1a],[_0x2a71d9],[_0x5cf05d],[_0x2bd014,{'useClass':this[_0x4a5a8b(0x155)][_0x4a5a8b(0x39b)]}],[_0x149d12[_0x4a5a8b(0x387)],{'useClass':_0x51c4c2}],[_0x47f753[_0x4a5a8b(0x238)],{'useClass':_0x3d6a88}],[_0x47f753[_0x4a5a8b(0x350)],{'useClass':_0x48896b}],[_0x4f7a6f,{'useClass':_0xeb1ef2}],[_0x47f753[_0x4a5a8b(0x2c5)],{'useClass':_0x113be6}],[_0x203f75],[_0x43ec5e]],(_0x25e736=this[_0x4a5a8b(0x155)])==null?void 0x0:_0x25e736[_0x4a5a8b(0x182)]);if(!((_0x2d400d=this['_config'])!=null&&_0x2d400d[_0x4a5a8b(0x22b)])){let _0x2c62e4=_0x271fb1[_0x4a5a8b(0x348)](([_0x31ce5f])=>_0x31ce5f===_0x435069);_0x2c62e4!==-0x1&&_0x271fb1[_0x4a5a8b(0x3ea)](_0x2c62e4,0x1);}(0x0,_0x47f753[_0x4a5a8b(0x2a0)])(this[_0x4a5a8b(0x2fe)],_0x271fb1);}[_0x27b931(0x1fe)](){const _0x42a48f=_0x27b931;var _0x6fd7dd,_0x5ec58c;if(this[_0x42a48f(0x2fe)][_0x42a48f(0x1ad)](_0x8f2da5[_0x42a48f(0x2e6)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,_0x8f2da5[_0x42a48f(0x1a5)])({'maxParallel':0x6})}),!((_0x6fd7dd=this['_config'])!=null&&_0x6fd7dd[_0x42a48f(0x2ce)])){var _0x57e086;(_0x57e086=this[_0x42a48f(0x2fe)][_0x42a48f(0x1ad)](_0x419224,_0x47f753[_0x42a48f(0x402)][_0x42a48f(0x210)]))==null||_0x57e086[_0x42a48f(0x2bd)]();}(_0x5ec58c=this[_0x42a48f(0x155)])!=null&&_0x5ec58c[_0x42a48f(0x122)]&&(0x0,_0x47f753[_0x42a48f(0x1af)])(this[_0x42a48f(0x2fe)],[[_0x149557]]),(0x0,_0x47f753[_0x42a48f(0x1af)])(this[_0x42a48f(0x2fe)],[[_0x1a45aa],[_0x203f75],[_0x369c1a]]);}};_0x2dd74e(_0x45d7d9,_0x27b931(0x2f3),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),_0x2dd74e(_0x45d7d9,_0x27b931(0x3de),_0x58d19e),_0x2dd74e(_0x45d7d9,_0x27b931(0x227),_0x4c6d06),_0x45d7d9=_0x1fb4c2([(0x0,_0x47f753['DependentOn'])(_0x4326e6[_0x27b931(0x265)],_0x149d12['UniverCollaborationPlugin'],_0x8f2da5[_0x27b931(0x160)]),_0x2af294(0x1,_0x47f753[_0x27b931(0x370)]),_0x2af294(0x2,(0x0,_0x47f753['Inject'])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x3,_0x47f753[_0x27b931(0x18f)])],_0x45d7d9),_0x79aec8[_0x27b931(0x35a)]=_0x46b0a8,Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x36f),{'enumerable':!0x0,'get':function(){return _0x3d6a88;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x1f4),{'enumerable':!0x0,'get':function(){return _0x42dff3;}}),Object[_0x27b931(0x269)](_0x79aec8,'AwaitingWithPendingState',{'enumerable':!0x0,'get':function(){return _0x15bd87;}}),Object['defineProperty'](_0x79aec8,'BaseCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x5c3e77;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x332),{'enumerable':!0x0,'get':function(){return _0x4b522f;}}),_0x79aec8[_0x27b931(0x422)]=_0x3c17be,Object[_0x27b931(0x269)](_0x79aec8,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return _0xeb1ef2;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x285),{'enumerable':!0x0,'get':function(){return _0x203f75;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x198),{'enumerable':!0x0,'get':function(){return _0x25f5ac;}}),Object['defineProperty'](_0x79aec8,_0x27b931(0xdf),{'enumerable':!0x0,'get':function(){return _0x48896b;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x377),{'enumerable':!0x0,'get':function(){return _0x4ea072;}}),Object['defineProperty'](_0x79aec8,_0x27b931(0x374),{'enumerable':!0x0,'get':function(){return _0xc5d6a5;}}),Object['defineProperty'](_0x79aec8,_0x27b931(0x131),{'enumerable':!0x0,'get':function(){return _0x1bc98c;}}),_0x79aec8[_0x27b931(0x17f)]=_0xdb2824,_0x79aec8[_0x27b931(0x312)]=_0x204edc,_0x79aec8[_0x27b931(0x162)]=_0x2a71d9,Object[_0x27b931(0x269)](_0x79aec8,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return _0x10a064;}}),_0x79aec8[_0x27b931(0x38a)]=_0x101a15,Object['defineProperty'](_0x79aec8,'ConflictState',{'enumerable':!0x0,'get':function(){return _0x41f3d6;}}),_0x79aec8[_0x27b931(0x12b)]=_0x5f4f64,_0x79aec8[_0x27b931(0x1a9)]=_0x27b931(0x2be),_0x79aec8[_0x27b931(0x197)]='/universer-api/user/session-ticket',Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0xd3),{'enumerable':!0x0,'get':function(){return _0x5cf05d;}}),Object['defineProperty'](_0x79aec8,'DocCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x9eef43;}}),Object[_0x27b931(0x269)](_0x79aec8,'FetchingMissState',{'enumerable':!0x0,'get':function(){return _0x3b1a33;}}),_0x79aec8[_0x27b931(0x10d)]='HEARTBEAT_INTERVAL',_0x79aec8[_0x27b931(0x1d7)]=_0x27b931(0xe4),_0x79aec8[_0x27b931(0x137)]=_0x4f7a6f,_0x79aec8['ICollaborationClientAdapterService']=_0x1e5735,_0x79aec8['ICollaborationSocketService']=_0x2bd014,_0x79aec8[_0x27b931(0x41b)]=_0x419224,_0x79aec8[_0x27b931(0x3a1)]=_0x4501c7,_0x79aec8[_0x27b931(0x169)]=_0x435069,_0x79aec8[_0x27b931(0x28c)]=0x3e8,_0x79aec8[_0x27b931(0x107)]=_0x27b931(0x28c),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x3dd),{'enumerable':!0x0,'get':function(){return _0x541d7d;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x3e7),{'enumerable':!0x0,'get':function(){return _0x113be6;}}),Object['defineProperty'](_0x79aec8,_0x27b931(0x3a3),{'enumerable':!0x0,'get':function(){return _0x58261a;}}),Object['defineProperty'](_0x79aec8,_0x27b931(0x28b),{'enumerable':!0x0,'get':function(){return _0x467875;}}),_0x79aec8[_0x27b931(0x3b7)]=_0x27b931(0x36e),_0x79aec8[_0x27b931(0x3ba)]=_0x27b931(0x30d),_0x79aec8[_0x27b931(0x30f)]=_0x1e08f9,Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x186),{'enumerable':!0x0,'get':function(){return _0x151d10;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x22e),{'enumerable':!0x0,'get':function(){return _0x2e077e;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x26e),{'enumerable':!0x0,'get':function(){return _0x292824;}}),Object[_0x27b931(0x269)](_0x79aec8,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return _0x51c4c2;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0xca),{'enumerable':!0x0,'get':function(){return _0x50a3a4;}}),_0x79aec8[_0x27b931(0x23d)]=_0x709438,Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0xd5),{'enumerable':!0x0,'get':function(){return _0x45d7d9;}}),_0x79aec8[_0x27b931(0x132)]=_0x122337,_0x79aec8['deserializeToCombResponse']=_0x44e4df,_0x79aec8[_0x27b931(0x1ac)]=_0xe42769,_0x79aec8[_0x27b931(0x19b)]=_0x5db7a4;}));