@univerjs-pro/collaboration-client 1.0.0-alpha.3 → 1.0.0-alpha.5

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 (87) 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/types/controllers/collaboration/collaboration-entity.d.ts +2 -2
  65. package/lib/types/services/data-loader/data-loader.service.d.ts +1 -1
  66. package/lib/umd/facade.js +1 -1
  67. package/lib/umd/index.js +1 -1
  68. package/lib/umd/locale/ar-SA.js +1 -1
  69. package/lib/umd/locale/ca-ES.js +1 -1
  70. package/lib/umd/locale/de-DE.js +1 -1
  71. package/lib/umd/locale/en-US.js +1 -1
  72. package/lib/umd/locale/es-ES.js +1 -1
  73. package/lib/umd/locale/fa-IR.js +1 -1
  74. package/lib/umd/locale/fr-FR.js +1 -1
  75. package/lib/umd/locale/id-ID.js +1 -1
  76. package/lib/umd/locale/it-IT.js +1 -1
  77. package/lib/umd/locale/ja-JP.js +1 -1
  78. package/lib/umd/locale/ko-KR.js +1 -1
  79. package/lib/umd/locale/pl-PL.js +1 -1
  80. package/lib/umd/locale/pt-BR.js +1 -1
  81. package/lib/umd/locale/ru-RU.js +1 -1
  82. package/lib/umd/locale/sk-SK.js +1 -1
  83. package/lib/umd/locale/vi-VN.js +1 -1
  84. package/lib/umd/locale/zh-CN.js +1 -1
  85. package/lib/umd/locale/zh-HK.js +1 -1
  86. package/lib/umd/locale/zh-TW.js +1 -1
  87. package/package.json +14 -14
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x429f(_0x287704,_0x29c3a2){_0x287704=_0x287704-0x1eb;const _0x297a6c=_0x297a();let _0x429f95=_0x297a6c[_0x287704];return _0x429f95;}function _0x297a(){const _0x39a3f4=['authzUrl','buffer','uniscriptRunEvent','url','3440tZJgJw','collabWebSocketUrl','_initUnitPermissionChange','INetworkConditionService','session.room-permission-denied','onTransformIME','CHANGESET_SHOULD_RETRY','newCsEvent','_replayCachedMutations','UUID','_clearUndo','originalMeta','ImageSourceType','fromCharCode','HEARTBEAT_TIMEOUT_KEY','UNIVER_COLLABORATION_CLIENT_PLUGIN','createUniverCollaborationAdapter','values','file','onSendChangeset','getCurrentUser','session.room-not-exists','_remoteChangesetQueue','PSEUDO_FETCH_MISSING_RESULT','_clearHeartbeatTimer','connection\x20error','failed\x20to\x20apply\x20missed\x20changesets!','_showConflictNotification','enableCollaboration','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','/object/','SUBMIT_CHANGESET_TIMEOUT','[CollaborationSessionService]','some','AWAITING_WITH_PENDING','message$','_sendingTimer','_createInitialStateImpl','sessionStatus$','CombCmd','24636dOvNCt','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','type','ERROR_EXCEED_SIZE','_socket','1.0.0-alpha.3','headers','getLatestCsReqIdBySid','CollaborationEntity','_removeRoom','permissionRejEvent','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','createIdentifier','_localCacheService','dispose$','\x20of\x20length\x20','_roomCreated$','socket$','IPermissionService','_socketMessageSubscription','then','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','delete','toRemote','RETRY_CONNECTING_MAX_COUNT','onRemoteRetry','SUBMIT_CHANGESET','encrypt','awaiting','IConfigService','_getLoginPath','_transitionLocked','members','_unlockTransition','_eventService','_decreaseWaiting','_fetchMissChangesets','ICommandService','length=','toLocal','onSyncEditingCollabCursor','DependentOn','charCodeAt','ICollaborationClientAdapterService','equals','merge','state','_getAPIPrefixPath','CommandType','post','telemetry\x20info\x20is\x20not\x20initialized','_singleActiveUnitService','isTransformMutationsWithChangesetSuccess','hostname','registerDependencies','output','object','_entities','concatMap','getValue','CollaborationImageIoService','cipher\x20output\x20not\x20supported','updatePermissionPoint','_state$','[CollaborationEntity]','filter','@univerjs/sheets','awaiting_with_pending','Plugin','fromCollab','unitLoaded$','AddSlidePageMutation','26762ZpnLQN','snapshot','subarray','_initCloseConn','_snapshotService','change$','byteOffset','c2Prime','resolveWithBasePath','onRemoteAck','every','_initRequestHeader','CollaborationUIEventService','localeService','_resolveSessionIdentity','trim','_toggleOffline','WorkbookEditablePermission','@univerjs-pro/license','listRoles','size','UNIVER_SHEET','textRanges','__Key__','saveImage','getTime','addHandlerCallback','slice','CollaborationSessionService','number','_checkMissing','/new_changes','AwaitingWithPendingState','[OfflineState]:\x20received\x20changeset.','OPTIONAL','getUnit','objects','editingUnit','_memberService','_configService','UniverProSlides','_clearScheduledTask','JOINING','?size=','_substituteUndoStack','_socketService','ErrorCode','LIVESHARE_NEW_HOST','UniverProtocol','/universer-api/authz','_telemetryService','_startCollaboration','DocCollaborationEntity','_onConflict','getInterceptPoints','entries','_collaborationTimeoutTimer','routeKey','_resendTimeout','baseRev','prototype','/universer-api/snapshot','unknown','&source=','firstValueFrom','UniverCollaborationPlugin','ITransformService','open$','FETCH_MISSING','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','createSocket','b64DecodeUnicode','saveChangeset','NEW_CHANGESETS','_executeRemoteChangeset','CHANGESET_ACK','reconnect','ImageUploadStatusType','getMember','ERROR_IMAGE_TYPE','leaveEvent','synced','_unitInfo$','_changesetSessionId','_initDependencies','PendingState','_sessions','deleteCollaborator','expected\x20Uint8Array','_clearCollaborationTimeoutTimer','_snapshotServerService','USERS_LEAVE','range','_sessionChannels','memberID','interceptor','@univerjs-pro/collaboration','getRandomValues','UnitEmbedded','getUploadOptions','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','univer-pro.collaboration-client.network-condition.service','emitEvent','forEach','_docStateChangeManagerService','6219xLrUEp','_applyRemoteChangeset','indexOf','_onConnectionFailed','isView',',\x20got\x20','actions','defineProperty','collaboratorID','_handler','localUnitId','_updateState','docStateChange$','now','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_init','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','withCredentials','encodeURIComponent','BehaviorSubject','_injector','ERROR_IMAGE','_clearLocalCache','_getRedoStack','Subject','not_collab','JSONX','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','responseType','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','/unit/','_status$','UniverProCollaborationClient','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','changeset','SheetTransformSelectionsService','error$','SOCKET_FAILED','list','columnGroups','PERMISSION_REJ','getDrawingImageAllowSize','OTHER_CLIENTS_EDITING','timeoutTimer','CollaborationSession','UniverNetworkPlugin','collaboration-client.config','override','put','listCollaborators','isArray','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_substituteRedoStack','onload','_isPermissionRej','parseChangesetToProtocol','Optional','COMPRESS_MUTATION_APPLY','OFFLINE','_stopTelemetryCollaborationNewChangeset','send','online$','closeSession','awaitingChangeset','nonceLength','_sendHeartbeat','c1Prime','_collaborationUIEventService','_sender','FETCH_MISS','\x0aCurrent:\x20','objectType','_transformStateCache','ILocalCacheService','unit','_emitMembers','_userManagerService','retryConnectingTimer','localCacheService','SUCCUSS','setCurrentUser','collaboration-client.local-cache-service','max','_createSocket','UniverDrawing','csRejEvent','mapDocumentTypeToUniverInstanceType','Uint8Array','UNISCRIPT_RUN','get','_tryEnsureSocket','_pendingSessions','BoardCollaborationEntity','_onRemoteRetry','unitId','objectActions','LIVESHARE_OPERATION','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','toPrimitive','COMMENT_UPDATE','getCollabEntity','RETRY_CONNECTING_MAX_COUNT_KEY','_clearRedo','getImage','10041560lhWiRu','CollaborationEvent','\x20in\x20_schedule.','transformSelections','textEncoder','_httpService','getResourcesRequest','PENDING','isInternalEditorID','generateRandomId','_transformIMECache','IMentionIOService','hasOwnProperty','@univerjs-pro/slides','DEFAULT_COLLAB_WEB_SOCKET_URL','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','onTransformSelections','uploadFileServerUrl','onTransformRemoteChangesetByIMECache','asObservable','call','SetSelectionsOperation','set','_onJoinRoomEvent','init','data','retryConnectingInterval','_tryReconnect','transformUndoRedo','DataLoaderService','appendMutation','map','Rectangle','sid','method','readyForCollab','isTransformChangesetsSuccess','SNAPSHOT_URL_KEY','Inject','toggleOffline','NOT_COLLAB','signUrlServerUrl','@univerjs/docs','HEARTBEAT_TIMEOUT','DocStateChangeManagerService','510AYGmOE','_onRemoteRejected','collaborators','location','_isEchoedAwaitingChangeset','EmptyMutationInfo','[OfflineState]:\x20received\x20acknowledgement.','socketMessageSubscription','subscribe','selections','retryCount','src','capture','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','debug','NO_OTHER_CLIENTS_EDITING','ICollaborationSocketService','deepClone','MoveSlidePageMutation','_schedule','COMPRESS_MUTATION_SEND','getUnitOnRev','push','_getSignURL','ConflictState','_changesetReqId','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','_joinRoom','\x0aAfter:\x20','univer-pro.collaboration-client.single-active-unit-service','_collaborationPaused','_getDownloadEndpointURL','_clearRetryConnectingTimer','requestParams','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','USERS_ENTER','_members','patch','duration','aes/pkcs7:\x20wrong\x20padding','offline','joinRsp','workbook','[UniverCollaborationClientPlugin]','stringify','/universer-api/file/{fileID}/sign-url','_compressMutationService','_pendingMutations','_collabSessionService','_getCtorByUniverInstanceType','_univerInstanceService','/resources','enableOfflineEditing','_incrementRevisionNumber','IImageIoService','_acknowledgeAwaiting','[OfflineState]:\x20received\x20rejection.','startTime','LIVESHARE_FETCH_OPERATIONS','_identity','_createInitialState','399AyiQvS','onRemoteRej','close$','DisposableCollection','onMissedChangesetFetched','HEARTBEAT_INTERVAL_KEY','transformChangesets','touchDependencies','UniverProLicense','pending','_collaborationSessionService','getConfig','RichTextEditingMutation','[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.','7gqYigk','_clearTimeoutTimer','version','onRemoteChangeset','LIVESHARE_REQUEST_HOST','_sheetTransformSelectionsService','_toggleOnline','MSG_FOR_ERROR','_change$','&to=','UNIVER_DOC','getMemberID','shareReplay','csShouldRetryEvent','InsertSheetMutation','saveSheetBlock','HTTPService','UPDATE_CURSOR','uuidv4','_syncEditingCollabCursor','_registerDependencies','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','isTransformMutationsWithChangesetFailure','resourceIDs','SessionStatus','IUndoRedoService','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','mergeOverrideWithDependencies','unitID','ISnapshotServerService','backupOfflineData','toDisposable','SHOULD_CLOSE_CONN','COLLABORATION_ENDPOINT_INVALID','invalid\x20output,\x20must\x20be\x20aligned','next','fetchThroughInterceptors','_permissionService','liveShareNewHost','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getDeserializedSheetBlock','updateMember','fetching\x20missing\x20changesets\x20from\x20','_redoStacks','/allowed','collaMsg','_startTelemetryCollaborationNewChangeset','iterator','onCommentUpdate','onMutationExecutedForCollab','has','/universer-api/user/session-ticket','executeCommand','fetchMiss','_disableEditing','FileSource','catch','SheetCollaborationEntity','getCfgEnableObjInherit','readAsDataURL','origin','MentionIoHttpService','reqId','ILogService','11033121JAksJP','DRAWING_IMAGE_ALLOW_IMAGE_LIST','Injector','\x20-\x20','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','target','LEAVE','UniverLicensePlugin','_updateStatus','findIndex','onMissingChangesets','CollaborationSocketService','onTransformRemoteChangesetByStateCache','disableLocalCache','number\x20expected,\x20got\x20','waitForRoom$','_adapter','status$','members$','loadSlide','SnapshotServerOverHTTPService','INGEST','UniverCollaborationClientPlugin','clear','createCollaborator','OTHER_CLIENT_EDITING','_transformRemoteChangesetByIMECache','RemoveSlidePageMutation','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','onLocalMutation','upload','encode','_sessionStatus$','isCompositionEnd','_resendWithTimeout','registerHTTPInterceptor','Disposable','update','symbol','decorate','error','getSnapshotAPIPath','sendHeartbeatTimer','_submitChangeset','copyFileMeta','_undoStacks','_lockTransition','getTypeOfUnitDisposed$','UserManagerService','avatar','_revisionService','revision','getOwnPropertyDescriptor','csAckEvent','mutations','unitInfo$','RevisionService','getCurrentRevOfUnit','loginUrlKey','_getSocketChannel','_unitLoaded$','dispose','_cfgEnableObjInherit','_getCurrentRevision','close','session','getUnitId','GLOBAL_ROOMS_CNT_EXCEEDS','/universer-api/comb','name','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','MentionType','string','IContextService','getSheetId','exports','LocaleService','OfflineState','_scheduleCompleteTimestamp','changesets','_waitForHeartbeatResponse','[CollaborationSessionService]:\x20socket\x20error','transformMutationsWithChangeset','disposeWithMe','_networkConditionService','loadOfflineData','endpointKey','_onFetchMissResult','MergeInterceptorFactory','attachment','CHANGESET_REJ','getCurrentSelections','take','getRoom','getTypeOfUnitAdded$','socketService','JOIN_ROOM_FULL','_exhaustRemoteChangesetQueue','ONLINE','operators','[CollaborationSession]','Error\x20on\x20receiving\x20event','SOCKET_FAILED_RETRY','roles','UniverInstanceType','saveSnapshot','cmd','UniverProCollaboration','FileId','title','conflict','JOIN','_hasSessionsForEndpoint','m2Prime','compose','EnsureSlideMasterPageMutation','byteLength','_updateLocalCache','univer-pro.collaboration-client-adapter-service','socket\x20open.','x-univer-host','code','collabSubmitChangesetUrl','shouldCloseConn','_getAPIPrefix','body','maxSize','&assign=','tables','missingChangesets',',\x20got:\x20','ws://127.0.0.1:8000/universer-api/comb/connect','_getConfig','URL','[SyncedState]:\x20received\x20acknowledgement.','resolveUnit','setWaitCount','params','_telemetryInfo','RxDisposable','startsWith','SheetsSelectionsService','_HTTPService','reject','/universer-api/stream/file/upload','fetch_missing','loadSheet','accept','allowed','key','loadUnitOfRevision','ISocketService','min','LocalUndoRedoService','CLOSE_ROOM','_waitCount','_entityInit$','CmdRspCode','ISingleActiveUnitService','_members$','pluginName','toggleOnline','IDLE','JOIN_ROOM_NOT_EXISTS','positive\x20integer\x20expected,\x20got\x20','_getUploadFileURL','_commentUpdate$','sort','JOIN_ROOM_FAILED','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','crypto','PERSON','takeUntil','UNIVER_BASE','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','/object','eventID','getUnitStatus$','6795876TMMjoO','ITelemetryService','UNIVER_SLIDE','string\x20expected','_getUndoStack','AwaitingState','IUniverInstanceService','_maxTotalRetryTimeout','UPDATE_PERMISSION_OBJ','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','POST','FetchingMissState','[DataLoaderService]','base-ui.attachment-io.service','_transformService','BaseCollaborationEntity','stopTime','_transformAndApplyRemoteChangeset','_onUserJoin','parse','socket\x20close','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','candidateSocket','_instanceService','type=','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','unsubscribe','find','getUnitType','incrementRevOfUnit','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','onStateChange','setShowComponents','/-/object/-/batch_allowed','constructor','_onConnectionOpen','_handlerCallback','PERMISSION_DENIED','_commandService','updateCursorEvent','putCollaborators','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','loadDoc','AWAITING','/universer-api/snapshot/','parseProtocolChangeset','getAllMembers','removeMember','403382IcTQAA','isPermissionRej','_onLocalMutation','subject','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','setCfgEnableObjInherit','_commentService','onTransformState','onlyLocal','CollaborationStatus','socketReady','text-x','_awaitingChangeset','_resendTimer','_createHandler','updateSnapshot','delay','@univerjs-pro/collaboration-client','focused$','_onRemoteACK','_logService','_replaceFileID','createInstance','_config','function','_onRecvEvent','getFocusedUnit','Wrong\x20sbox\x20length','_type','_acknowledgeAwaitingIfReady','_createSession','unitType','UNIVER_BOARD','href','initWorkbookPermissionChange','includes','/fetchmissing?from=','/rev/','HEARTBEAT','JOIN_ROOM_PERMISSION_DENIED','_roomMembers','session.join-failed','Quantity','saveAttachment','_onCombEvent','_getSendChangesetTimeout','_rescheduleHeartbeat','getGlobalObject','sendChangesetTimeout','CollaborationAttachmentIoService','univer-pro.collaboration-client-socket-service','commentUpdate$','unitId\x20is\x20not\x20found','downloadEndpointUrl','_state','aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','deserializeToCombResponse','pipe','updateOfflineData','_imageSourceCache','add','_onMessage','@univerjs/network','append','/collaborator','BYTES_PER_ELEMENT','[DocCollaborationEntity]:\x20DocStateChangeManagerService\x20is\x20required.\x20Register\x20UniverDocsPlugin\x20before\x20collaboration.','requireSession','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','People','endpoint','endsWith','_transformStack','BASE64','subUnitId','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','from','CONFLICT','_transformSelections','_queuedRemoteChangesets','_throwTelemetryCollaborationNewChangeset','_localeService','unit-cache-','DEFAULT_FILE_NAME','loadUnit','reduce','resend','RECV','IAttachmentIoService','_onOffline','_scheduleCollaborationTimeoutTimer','_upload','UniverCore','LIVESHARE_TERMINATE','rxjs','@univerjs/telemetry','crypto.getRandomValues\x20must\x20be\x20defined','sessionStatus','state$','create','_onUserLeave','fetchMissingChangesets','batchAllowed','CommentService','_handleRemoteChangesets','HEARTBEAT_INTERVAL','joinEvent','status','getSheetBlock','_shouldReportTelemetry','result','decrypt','?url=','length','@univerjs/protocol','_acknowledgedAwaitingRevision','fill','UniverDocs','editing\x20status\x20changed\x20to','MUTATION','IAuthzIoService','pauseCollaboration','_onRemoteChangeset','action','floor','/block/','event$','[CollaborationUndoRedoService]','[PendingState]:\x20received\x20rejection.','HELLO','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_event$','objectID','SYNCED','complete','UniverTelemetry','CompressMutationService','SlideCollaborationEntity','_socketChannels'];_0x297a=function(){return _0x39a3f4;};return _0x297a();}(function(_0xb67bee,_0x47373a){const _0x4fb283=_0x429f,_0x24cb72=_0xb67bee();while(!![]){try{const _0x2c0a40=parseInt(_0x4fb283(0x41d))/0x1+-parseInt(_0x4fb283(0x51c))/0x2*(-parseInt(_0x4fb283(0x2ec))/0x3)+-parseInt(_0x4fb283(0x3ed))/0x4+parseInt(_0x4fb283(0x2ae))/0x5*(parseInt(_0x4fb283(0x4d4))/0x6)+parseInt(_0x4fb283(0x2fa))/0x7*(parseInt(_0x4fb283(0x281))/0x8)+parseInt(_0x4fb283(0x219))/0x9*(-parseInt(_0x4fb283(0x4ac))/0xa)+-parseInt(_0x4fb283(0x33b))/0xb;if(_0x2c0a40===_0x47373a)break;else _0x24cb72['push'](_0x24cb72['shift']());}catch(_0x2ce77c){_0x24cb72['push'](_0x24cb72['shift']());}}}(_0x297a,0xdff82),function(_0x1764f2,_0x3bbe93){const _0x20cb96=_0x429f;typeof exports=='object'&&typeof module<'u'?_0x3bbe93(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==_0x20cb96(0x435)&&define['amd']?define([_0x20cb96(0x386),_0x20cb96(0x210),'@univerjs/core',_0x20cb96(0x2ab),_0x20cb96(0x516),_0x20cb96(0x47b),_0x20cb96(0x48f),_0x20cb96(0x47c),'rxjs/operators',_0x20cb96(0x28e),_0x20cb96(0x45b),_0x20cb96(0x52e),'@univerjs/drawing'],_0x3bbe93):(_0x1764f2=typeof globalThis<'u'?globalThis:_0x1764f2||self,_0x3bbe93(_0x1764f2[_0x20cb96(0x239)]={},_0x1764f2[_0x20cb96(0x3a6)],_0x1764f2[_0x20cb96(0x479)],_0x1764f2[_0x20cb96(0x492)],_0x1764f2['UniverSheets'],_0x1764f2[_0x20cb96(0x47b)],_0x1764f2[_0x20cb96(0x54c)],_0x1764f2[_0x20cb96(0x4a4)],_0x1764f2[_0x20cb96(0x47b)][_0x20cb96(0x39e)],_0x1764f2[_0x20cb96(0x544)],_0x1764f2['UniverNetwork'],_0x1764f2[_0x20cb96(0x2f4)],_0x1764f2[_0x20cb96(0x26d)]));}(this,function(_0x285584,_0xdffdbc,_0x5d4a9c,_0x2d7ee3,_0x35e648,_0x1090a1,_0x2a2edc,_0x157a44,_0x39586e,_0xb29aca,_0x1405b7,_0x11b136,_0x2f17bc){const _0x4f02e5=_0x429f;Object['defineProperty'](_0x285584,Symbol['toStringTag'],{'value':'Module'});let _0x165ad1=_0x4f02e5(0x247),_0x146cb0={},_0x38d0fe=_0x4f02e5(0x3be),_0x37056b=0x4e20;function _0x70877(_0x25e612){const _0x42c5ab=_0x4f02e5;return JSON[_0x42c5ab(0x2db)](_0x25e612)['length'];}function _0x3ef2e0(_0x39272d){'@babel/helpers - typeof';const _0x1f9b65=_0x4f02e5;return _0x3ef2e0=typeof Symbol==_0x1f9b65(0x435)&&typeof Symbol[_0x1f9b65(0x32a)]==_0x1f9b65(0x361)?function(_0x10766d){return typeof _0x10766d;}:function(_0x4f6a38){const _0x57068e=_0x1f9b65;return _0x4f6a38&&typeof Symbol==_0x57068e(0x435)&&_0x4f6a38[_0x57068e(0x40f)]===Symbol&&_0x4f6a38!==Symbol[_0x57068e(0x1ec)]?_0x57068e(0x361):typeof _0x4f6a38;},_0x3ef2e0(_0x39272d);}function _0x3f9021(_0x555e0b,_0x31e760){const _0x263173=_0x4f02e5;if(_0x3ef2e0(_0x555e0b)!=_0x263173(0x50c)||!_0x555e0b)return _0x555e0b;var _0x5ab747=_0x555e0b[Symbol[_0x263173(0x27b)]];if(_0x5ab747!==void 0x0){var _0x2a4bee=_0x5ab747[_0x263173(0x295)](_0x555e0b,_0x31e760||'default');if(_0x3ef2e0(_0x2a4bee)!=_0x263173(0x50c))return _0x2a4bee;throw TypeError(_0x263173(0x322));}return(_0x31e760===_0x263173(0x383)?String:Number)(_0x555e0b);}function _0x5a4807(_0x2466e6){const _0x4d483b=_0x4f02e5;var _0x49d9ec=_0x3f9021(_0x2466e6,_0x4d483b(0x383));return _0x3ef2e0(_0x49d9ec)==_0x4d483b(0x361)?_0x49d9ec:_0x49d9ec+'';}function _0xef01a1(_0x2fc986,_0x142245,_0x231ab6){const _0x5da047=_0x4f02e5;return(_0x142245=_0x5a4807(_0x142245))in _0x2fc986?Object[_0x5da047(0x220)](_0x2fc986,_0x142245,{'value':_0x231ab6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2fc986[_0x142245]=_0x231ab6,_0x2fc986;}let _0x3a4fbe=function(_0x59f2f6){const _0x453363=_0x4f02e5;return _0x59f2f6['OTHER_CLIENT_EDITING']=_0x453363(0x354),_0x59f2f6[_0x453363(0x412)]=_0x453363(0x412),_0x59f2f6[_0x453363(0x46a)]='CONFLICT',_0x59f2f6['CLOSE_ROOM']=_0x453363(0x3d5),_0x59f2f6[_0x453363(0x3e3)]=_0x453363(0x3e3),_0x59f2f6[_0x453363(0x3a1)]=_0x453363(0x3a1),_0x59f2f6[_0x453363(0x23e)]=_0x453363(0x23e),_0x59f2f6[_0x453363(0x4cb)]=_0x453363(0x4cb),_0x59f2f6;}({});var _0xaaa1eb=class{constructor(){const _0x38275f=_0x4f02e5;_0xef01a1(this,'_event$',new _0x1090a1[(_0x38275f(0x231))]()),_0xef01a1(this,_0x38275f(0x49b),this[_0x38275f(0x4a0)]['asObservable']());}[_0x4f02e5(0x216)](_0x204027){const _0x2361af=_0x4f02e5;this['_event$'][_0x2361af(0x31e)](_0x204027);}},_0x33d67b=class{constructor(){const _0x3b48b2=_0x4f02e5;_0xef01a1(this,'_commentUpdate$',new _0x1090a1[(_0x3b48b2(0x231))]()),_0xef01a1(this,_0x3b48b2(0x450),this[_0x3b48b2(0x3e1)][_0x3b48b2(0x294)]());}[_0x4f02e5(0x32b)](_0x14bbb7){const _0x1d776f=_0x4f02e5;this[_0x1d776f(0x3e1)][_0x1d776f(0x31e)](_0x14bbb7);}};function _0x2f2fb0(_0x45dbcc,_0x1b5e1f){return function(_0x2e603c,_0x5a0651){_0x1b5e1f(_0x2e603c,_0x5a0651,_0x45dbcc);};}function _0x411a83(_0xd645c0,_0xf34a58,_0x56293a,_0x356462){const _0x2464ac=_0x4f02e5;var _0x2d7778=arguments[_0x2464ac(0x48e)],_0x2d3dd9=_0x2d7778<0x3?_0xf34a58:_0x356462===null?_0x356462=Object[_0x2464ac(0x36f)](_0xf34a58,_0x56293a):_0x356462,_0x303803;if(typeof Reflect==_0x2464ac(0x50c)&&typeof Reflect[_0x2464ac(0x362)]=='function')_0x2d3dd9=Reflect[_0x2464ac(0x362)](_0xd645c0,_0xf34a58,_0x56293a,_0x356462);else{for(var _0x435105=_0xd645c0[_0x2464ac(0x48e)]-0x1;_0x435105>=0x0;_0x435105--)(_0x303803=_0xd645c0[_0x435105])&&(_0x2d3dd9=(_0x2d7778<0x3?_0x303803(_0x2d3dd9):_0x2d7778>0x3?_0x303803(_0xf34a58,_0x56293a,_0x2d3dd9):_0x303803(_0xf34a58,_0x56293a))||_0x2d3dd9);}return _0x2d7778>0x3&&_0x2d3dd9&&Object[_0x2464ac(0x220)](_0xf34a58,_0x56293a,_0x2d3dd9),_0x2d3dd9;}let _0x41fab1=class extends _0x5d4a9c[_0x4f02e5(0x35f)]{constructor(_0x262f88,_0x2b19f6){const _0x38c749=_0x4f02e5;super(),this[_0x38c749(0x2e1)]=_0x262f88,this['_userManagerService']=_0x2b19f6,_0xef01a1(this,_0x38c749(0x445),new Map()),_0xef01a1(this,'_roomCreated$',new _0x1090a1[(_0x38c749(0x231))]()),this[_0x38c749(0x38e)]((0x0,_0x1090a1[_0x38c749(0x501)])(this[_0x38c749(0x2e1)][_0x38c749(0x36a)](_0x5d4a9c['UniverInstanceType']['UNIVER_SHEET'])[_0x38c749(0x456)]((0x0,_0x39586e[_0x38c749(0x2a0)])(_0xdf8fd0=>_0xdf8fd0[_0x38c749(0x37d)]())),this['_univerInstanceService'][_0x38c749(0x36a)](_0x5d4a9c[_0x38c749(0x3a3)][_0x38c749(0x304)])['pipe']((0x0,_0x39586e[_0x38c749(0x2a0)])(_0x21d244=>_0x21d244[_0x38c749(0x37d)]())),this[_0x38c749(0x2e1)][_0x38c749(0x36a)](_0x5d4a9c[_0x38c749(0x3a3)][_0x38c749(0x43d)])['pipe']((0x0,_0x39586e[_0x38c749(0x2a0)])(_0x1ecff4=>_0x1ecff4[_0x38c749(0x37d)]())),this[_0x38c749(0x2e1)]['getTypeOfUnitDisposed$'](_0x5d4a9c[_0x38c749(0x3a3)][_0x38c749(0x3e8)])['pipe']((0x0,_0x39586e['map'])(_0x220923=>_0x220923[_0x38c749(0x37d)]())))[_0x38c749(0x2b6)](_0x3df60a=>this[_0x38c749(0x4dd)](_0x3df60a)));}[_0x4f02e5(0x34a)](_0x1c3ee9){const _0x721053=_0x4f02e5;return this[_0x721053(0x445)][_0x721053(0x32d)](_0x1c3ee9)?(0x0,_0x1090a1['of'])(this['_roomMembers'][_0x721053(0x272)](_0x1c3ee9)):this['_roomCreated$']['pipe']((0x0,_0x39586e['map'])(_0x26b5e5=>{const _0x15dc1e=_0x721053;if(_0x26b5e5===_0x1c3ee9)return this[_0x15dc1e(0x445)]['get'](_0x26b5e5);}));}[_0x4f02e5(0x269)](_0x11d69f){const _0x234869=_0x4f02e5;this['_userManagerService'][_0x234869(0x269)](_0x11d69f);}[_0x4f02e5(0x4c0)](){const _0x124c38=_0x4f02e5;return this[_0x124c38(0x265)]['getCurrentUser']();}[_0x4f02e5(0x324)](_0x307ffb,_0x16e3c0){const _0x3ddaa8=_0x4f02e5;let _0x10e1f0=this['_roomMembers'][_0x3ddaa8(0x272)](_0x307ffb);_0x10e1f0||(_0x10e1f0=new _0x2eca08(),this[_0x3ddaa8(0x445)]['set'](_0x307ffb,_0x10e1f0),this['_roomCreated$'][_0x3ddaa8(0x31e)](_0x307ffb)),_0x10e1f0['updateMember'](_0x16e3c0);}[_0x4f02e5(0x41c)](_0x3cb14e,_0x59b941){const _0x164f34=_0x4f02e5;let _0xb75480=this[_0x164f34(0x445)]['get'](_0x3cb14e);_0xb75480&&_0xb75480[_0x164f34(0x41c)](_0x59b941);}[_0x4f02e5(0x398)](_0x4b4a37){const _0x22b851=_0x4f02e5;return this[_0x22b851(0x445)][_0x22b851(0x272)](_0x4b4a37);}[_0x4f02e5(0x1fe)](_0xc184c6,_0x22bee3){const _0x94e8d4=_0x4f02e5;let _0x1da1c4=this[_0x94e8d4(0x445)][_0x94e8d4(0x272)](_0xc184c6);if(_0x1da1c4)return _0x1da1c4[_0x94e8d4(0x1fe)](_0x22bee3);}[_0x4f02e5(0x4dd)](_0xafc6f){const _0x47191b=_0x4f02e5;let _0x230aa6=this[_0x47191b(0x445)][_0x47191b(0x272)](_0xafc6f);_0x230aa6&&(_0x230aa6[_0x47191b(0x378)](),this['_roomMembers'][_0x47191b(0x4ea)](_0xafc6f));}[_0x4f02e5(0x378)](){const _0x4e3541=_0x4f02e5;this[_0x4e3541(0x445)][_0x4e3541(0x217)](_0x4dfdab=>_0x4dfdab['dispose']()),this[_0x4e3541(0x445)][_0x4e3541(0x352)](),this[_0x4e3541(0x4e4)]['complete']();}};_0x41fab1=_0x411a83([_0x2f2fb0(0x0,_0x5d4a9c[_0x4f02e5(0x3f3)]),_0x2f2fb0(0x1,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c[_0x4f02e5(0x36b)]))],_0x41fab1);var _0x2eca08=class extends _0x5d4a9c['Disposable']{constructor(..._0x353cfe){const _0x2e7bb6=_0x4f02e5;super(..._0x353cfe),_0xef01a1(this,_0x2e7bb6(0x2d3),new Map()),_0xef01a1(this,'_members$',new _0x1090a1['BehaviorSubject'](this[_0x2e7bb6(0x2d3)])),_0xef01a1(this,_0x2e7bb6(0x34d),this[_0x2e7bb6(0x3da)][_0x2e7bb6(0x294)]());}['dispose'](){const _0x182943=_0x4f02e5;this[_0x182943(0x2d3)]['clear'](),this['_members$']['complete']();}['updateMember'](_0x524e9e){const _0x30f847=_0x4f02e5;this[_0x30f847(0x2d3)][_0x30f847(0x297)](_0x524e9e[_0x30f847(0x20e)],_0x524e9e),this[_0x30f847(0x264)]();}[_0x4f02e5(0x41c)](_0x5cc499){const _0x34f5fc=_0x4f02e5;this[_0x34f5fc(0x2d3)][_0x34f5fc(0x4ea)](_0x5cc499),this[_0x34f5fc(0x264)]();}[_0x4f02e5(0x1fe)](_0x2536e7){return this['_members']['get'](_0x2536e7);}[_0x4f02e5(0x41b)](){const _0xf87b75=_0x4f02e5;return Array[_0xf87b75(0x469)](this[_0xf87b75(0x2d3)][_0xf87b75(0x4bd)]());}[_0x4f02e5(0x264)](){const _0x4789ad=_0x4f02e5;this['_members$'][_0x4789ad(0x31e)](this[_0x4789ad(0x2d3)]);}};function _0x454d76(_0x3a061c,_0x5bf7d0){const _0x16c81e=_0x4f02e5;if(_0x4b7162(_0x3a061c))return _0x5bf7d0;if(_0x5bf7d0[_0x16c81e(0x3eb)]===_0xdffdbc[_0x16c81e(0x282)][_0x16c81e(0x4ee)]){var _0x785e9a;let _0x282589=_0x2b4966(_0x3a061c),_0x18177b=_0x5bf7d0;return{..._0x18177b,'data':{..._0x18177b[_0x16c81e(0x29a)],'unitID':_0x3a061c['target'][_0x16c81e(0x277)],'unitType':(_0x785e9a=_0x3a061c[_0x16c81e(0x340)]['unitType'])==null?_0x18177b[_0x16c81e(0x29a)][_0x16c81e(0x43c)]:_0x785e9a,'changeset':_0x282589[_0x16c81e(0x4eb)](_0x18177b[_0x16c81e(0x29a)][_0x16c81e(0x23b)],_0xbbdc91(_0x3a061c))}};}if(_0x5bf7d0[_0x16c81e(0x3eb)]===_0xdffdbc[_0x16c81e(0x282)][_0x16c81e(0x1f4)]){var _0xbe79a3;let _0x23731a=_0x5bf7d0;return{..._0x23731a,'data':{..._0x23731a[_0x16c81e(0x29a)],'unitID':_0x3a061c['target']['unitId'],'unitType':(_0xbe79a3=_0x3a061c['target'][_0x16c81e(0x43c)])==null?_0x23731a['data'][_0x16c81e(0x43c)]:_0xbe79a3}};}return _0x5bf7d0;}function _0x5615ac(_0x41c7e0,_0x22c8d0){const _0x44b604=_0x4f02e5;if(_0x4b7162(_0x41c7e0))return[_0x22c8d0];switch(_0x22c8d0[_0x44b604(0x3eb)]){case _0xdffdbc[_0x44b604(0x282)][_0x44b604(0x1f9)]:return[_0x33364b(_0x41c7e0,_0x22c8d0)];case _0xdffdbc['CollaborationEvent'][_0x44b604(0x4c3)]:return[_0x3fdda6(_0x41c7e0,_0x22c8d0)];case _0xdffdbc[_0x44b604(0x282)][_0x44b604(0x4b2)]:return[_0x1ed1b8(_0x41c7e0,_0x22c8d0)];default:return[_0x22c8d0];}}function _0x4b7162(_0xfd8eb8){const _0x1f6044=_0x4f02e5;return _0xfd8eb8[_0x1f6044(0x340)]['endpoint']==null&&_0xfd8eb8[_0x1f6044(0x340)][_0x1f6044(0x277)]===_0xfd8eb8[_0x1f6044(0x223)]&&!_0xfd8eb8[_0x1f6044(0x23b)];}function _0x33364b(_0x406881,_0x467fae){const _0x11d352=_0x4f02e5;return{..._0x467fae,'data':(0x0,_0xdffdbc[_0x11d352(0x250)])(_0x327ff7(_0x406881,(0x0,_0xdffdbc['parseProtocolChangeset'])(_0x467fae[_0x11d352(0x29a)])))};}function _0x1ed1b8(_0x641b3b,_0x169e4e){const _0x7f789=_0x4f02e5;return{..._0x169e4e,'data':_0x327ff7(_0x641b3b,_0x169e4e[_0x7f789(0x29a)])};}function _0x3fdda6(_0x1fb55b,_0x2debe7){const _0x44d9a8=_0x4f02e5;let _0x1fe2f4=_0x2debe7['data'];return{..._0x2debe7,'data':{..._0x1fe2f4,'changesets':_0x1fe2f4['changesets'][_0x44d9a8(0x2a0)](_0x56cf79=>(0x0,_0xdffdbc['parseChangesetToProtocol'])(_0x327ff7(_0x1fb55b,(0x0,_0xdffdbc[_0x44d9a8(0x41a)])(_0x56cf79))))}};}function _0x327ff7(_0x138edd,_0x2c328c){const _0x58c200=_0x4f02e5;return _0x2b4966(_0x138edd)[_0x58c200(0x4fb)](_0x2c328c,_0xbbdc91(_0x138edd));}function _0x2b4966(_0x422988){const _0x156822=_0x4f02e5;if(!_0x422988[_0x156822(0x23b)])throw Error(_0x156822(0x4c9));return _0x422988['changeset'];}function _0xbbdc91(_0xdb1977){const _0x56eeb0=_0x4f02e5;return{'localUnitId':_0xdb1977[_0x56eeb0(0x223)],'unitType':_0xdb1977['unitType'],'target':_0xdb1977['target']};}let _0x3e9f1e=function(_0x5de6ed){const _0x5e46fe=_0x4f02e5;return _0x5de6ed[_0x5de6ed[_0x5e46fe(0x3dd)]=0x0]=_0x5e46fe(0x3dd),_0x5de6ed[_0x5de6ed['JOINING']=0x1]=_0x5e46fe(0x546),_0x5de6ed[_0x5de6ed[_0x5e46fe(0x253)]=0x2]=_0x5e46fe(0x253),_0x5de6ed[_0x5de6ed[_0x5e46fe(0x39d)]=0x3]='ONLINE',_0x5de6ed;}({}),_0x42325f={[_0x2a2edc[_0x4f02e5(0x3d8)]['FAIL']]:_0x4f02e5(0x446),[_0x2a2edc[_0x4f02e5(0x3d8)][_0x4f02e5(0x39b)]]:'session.room-full',[_0x2a2edc[_0x4f02e5(0x3d8)][_0x4f02e5(0x3de)]]:_0x4f02e5(0x4c1),[_0x2a2edc[_0x4f02e5(0x3d8)][_0x4f02e5(0x444)]]:_0x4f02e5(0x4b0),[_0x2a2edc[_0x4f02e5(0x3d8)][_0x4f02e5(0x37e)]]:'session.room-cnt-exceeds'},_0x11d6a7=class extends _0x5d4a9c['RxDisposable']{get[_0x4f02e5(0x47e)](){const _0x3943ec=_0x4f02e5;return this[_0x3943ec(0x35b)]['getValue']();}constructor(_0x203892,_0x491940,_0x507738,_0x4288a2,_0x48eced,_0x56c30a,_0x9d6eb,_0xf88fec){const _0x2fe808=_0x4f02e5;super(),this[_0x2fe808(0x2ea)]=_0x203892,this['_logService']=_0x507738,this[_0x2fe808(0x543)]=_0x4288a2,this[_0x2fe808(0x542)]=_0x48eced,this[_0x2fe808(0x423)]=_0x56c30a,this[_0x2fe808(0x25c)]=_0x9d6eb,this[_0x2fe808(0x54e)]=_0xf88fec,_0xef01a1(this,_0x2fe808(0x35b),new _0x1090a1[(_0x2fe808(0x22c))](0x0)),_0xef01a1(this,_0x2fe808(0x4d2),this['_sessionStatus$'][_0x2fe808(0x294)]()),_0xef01a1(this,'_event$',new _0x1090a1[(_0x2fe808(0x231))]()),_0xef01a1(this,_0x2fe808(0x49b),this['_event$'][_0x2fe808(0x294)]()),_0xef01a1(this,_0x2fe808(0x4d8),void 0x0),_0xef01a1(this,'_socketMessageSubscription',void 0x0),_0xef01a1(this,_0x2fe808(0x554),void 0x0),_0xef01a1(this,_0x2fe808(0x48a),!0x1),_0xef01a1(this,_0x2fe808(0x3c5),null),this[_0x2fe808(0x48a)]=!!this[_0x2fe808(0x54e)],_0x491940[_0x2fe808(0x456)]((0x0,_0x1090a1['takeUntil'])(this[_0x2fe808(0x4e2)]))[_0x2fe808(0x2b6)](_0x3e0e34=>{const _0x4aaab8=_0x2fe808;if(_0x3e0e34!==void 0x0){if(this[_0x4aaab8(0x4d8)]=_0x3e0e34,_0x3e0e34)this[_0x4aaab8(0x2ca)](_0x3e0e34),this[_0x4aaab8(0x4e7)]=_0x3e0e34[_0x4aaab8(0x4cf)][_0x4aaab8(0x2b6)](_0xbf0f2e=>{const _0x1b9f9a=_0x4aaab8;_0xbf0f2e[_0x1b9f9a(0x555)]===this[_0x1b9f9a(0x2ea)][_0x1b9f9a(0x340)][_0x1b9f9a(0x277)]&&this[_0x1b9f9a(0x449)](_0xbf0f2e);});else{var _0x2edca2;this[_0x4aaab8(0x46d)](),this[_0x4aaab8(0x35b)][_0x4aaab8(0x31e)](0x2),(_0x2edca2=this[_0x4aaab8(0x4e7)])==null||_0x2edca2[_0x4aaab8(0x407)](),this[_0x4aaab8(0x4e7)]=null;}}});}[_0x4f02e5(0x305)](){const _0x37ee23=_0x4f02e5;var _0x528b5f,_0x18faad;return(_0x528b5f=(_0x18faad=this[_0x37ee23(0x4d8)])==null?void 0x0:_0x18faad[_0x37ee23(0x20e)])==null?null:_0x528b5f;}[_0x4f02e5(0x378)](){const _0x487cce=_0x4f02e5;super[_0x487cce(0x378)](),this[_0x487cce(0x37b)](),this[_0x487cce(0x4e2)][_0x487cce(0x31e)](),this['dispose$'][_0x487cce(0x4a3)]();}[_0x4f02e5(0x37b)](){const _0x14e608=_0x4f02e5;var _0x54c2c0;this[_0x14e608(0x46d)](),(_0x54c2c0=this[_0x14e608(0x4d8)])==null||_0x54c2c0[_0x14e608(0x255)]({'cmd':_0x2a2edc[_0x14e608(0x4d3)][_0x14e608(0x341)],'data':{'roomID':this[_0x14e608(0x2ea)][_0x14e608(0x340)][_0x14e608(0x277)]}}),this[_0x14e608(0x4a0)][_0x14e608(0x4a3)](),this[_0x14e608(0x35b)][_0x14e608(0x4a3)]();}['_onCombEvent'](_0x2dd35b){const _0xa3e5c0=_0x4f02e5;_0x2dd35b[_0xa3e5c0(0x3a5)]===_0x2a2edc['CombCmd'][_0xa3e5c0(0x3aa)]?this[_0xa3e5c0(0x298)](_0x2dd35b):_0x2dd35b['cmd']===_0x2a2edc[_0xa3e5c0(0x4d3)][_0xa3e5c0(0x474)]&&this['_onRecvEvent'](_0x2dd35b);}[_0x4f02e5(0x2ca)](_0x337312){const _0x9e34bf=_0x4f02e5;this[_0x9e34bf(0x35b)][_0x9e34bf(0x31e)](0x1),_0x337312[_0x9e34bf(0x255)]({'cmd':_0x2a2edc['CombCmd'][_0x9e34bf(0x3aa)],'routeKey':this[_0x9e34bf(0x2ea)][_0x9e34bf(0x340)][_0x9e34bf(0x277)],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x9e34bf(0x340)][_0x9e34bf(0x277)]}]}});}[_0x4f02e5(0x298)](_0x2434fc){const _0x367999=_0x4f02e5;var _0x2b2468;if(_0x2434fc['code']in _0x42325f){this[_0x367999(0x25c)]['emitEvent']({'id':_0x367999(0x3e3),'data':_0x42325f[_0x2434fc['code']]}),this['_sessionStatus$'][_0x367999(0x31e)](0x2);return;}this[_0x367999(0x35b)][_0x367999(0x31e)](0x3);let _0x83486=(_0x2b2468=_0x2434fc['data']['roomInfos'][this[_0x367999(0x2ea)][_0x367999(0x340)]['unitId']])==null?void 0x0:_0x2b2468[_0x367999(0x4f4)];_0x83486&&_0x83486[_0x367999(0x217)](_0x1dfc87=>this[_0x367999(0x542)][_0x367999(0x324)](this[_0x367999(0x2ea)][_0x367999(0x223)],_0x1dfc87));}[_0x4f02e5(0x436)](_0xd0df82){const _0x32cd53=_0x4f02e5;try{let _0x24efe7=_0x5615ac(this[_0x32cd53(0x2ea)],_0xd0df82[_0x32cd53(0x29a)]);for(let _0x5fb1e4 of _0x24efe7)switch(_0x5fb1e4[_0x32cd53(0x3eb)]){case _0xdffdbc['CollaborationEvent']['USERS_ENTER']:this['_onUserJoin'](_0x5fb1e4),this['_event$'][_0x32cd53(0x31e)](_0x5fb1e4);break;case _0xdffdbc[_0x32cd53(0x282)][_0x32cd53(0x20b)]:this[_0x32cd53(0x481)](_0x5fb1e4),this[_0x32cd53(0x4a0)][_0x32cd53(0x31e)](_0x5fb1e4);break;case _0xdffdbc[_0x32cd53(0x282)][_0x32cd53(0x1fb)]:case _0xdffdbc[_0x32cd53(0x282)]['CHANGESET_SHOULD_RETRY']:this[_0x32cd53(0x254)](),this['_clearCollaborationTimeoutTimer'](),this[_0x32cd53(0x4a0)]['next'](_0x5fb1e4);break;case _0xdffdbc['CollaborationEvent'][_0x32cd53(0x301)]:this[_0x32cd53(0x431)][_0x32cd53(0x363)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x32cd53(0x2db)](_0x5fb1e4)),this[_0x32cd53(0x4a0)][_0x32cd53(0x31e)](_0x5fb1e4);break;case _0xdffdbc[_0x32cd53(0x282)]['COMMENT_UPDATE']:this[_0x32cd53(0x423)][_0x32cd53(0x32b)](_0x5fb1e4[_0x32cd53(0x29a)]),this[_0x32cd53(0x4a0)][_0x32cd53(0x31e)](_0x5fb1e4);break;default:this[_0x32cd53(0x4a0)][_0x32cd53(0x31e)](_0x5fb1e4);}}catch(_0x4a8769){this['_logService'][_0x32cd53(0x363)](_0x4a8769,_0xd0df82);}}[_0x4f02e5(0x3ff)](_0x2e11a3){const _0x18f692=_0x4f02e5;this[_0x18f692(0x542)][_0x18f692(0x324)](this[_0x18f692(0x2ea)]['localUnitId'],_0x2e11a3[_0x18f692(0x29a)]);}['_onUserLeave'](_0x3e5cfe){const _0x4ecf9e=_0x4f02e5;this['_memberService'][_0x4ecf9e(0x41c)](this[_0x4ecf9e(0x2ea)]['localUnitId'],_0x3e5cfe[_0x4ecf9e(0x29a)][_0x4ecf9e(0x20e)]);}async[_0x4f02e5(0x255)](_0x4e17c4,_0x254bdc){const _0xc31f56=_0x4f02e5;if(this[_0xc31f56(0x47e)]!==0x3||!this[_0xc31f56(0x4d8)])throw Error(_0xc31f56(0x468));try{let _0x370c05=_0x454d76(this[_0xc31f56(0x2ea)],_0x4e17c4);_0x370c05['eventID']===_0xdffdbc[_0xc31f56(0x282)]['SUBMIT_CHANGESET']&&(this[_0xc31f56(0x477)](),this[_0xc31f56(0x329)](_0x370c05)),this[_0xc31f56(0x4d8)][_0xc31f56(0x255)]({'cmd':_0x2a2edc[_0xc31f56(0x4d3)]['INGEST'],'routeKey':this[_0xc31f56(0x2ea)][_0xc31f56(0x340)][_0xc31f56(0x277)],'routeType':'','data':_0x370c05});}catch(_0x3ed362){this[_0xc31f56(0x431)][_0xc31f56(0x363)](_0x3ed362);}}[_0x4f02e5(0x477)](){const _0x4723f4=_0x4f02e5;var _0x50a53c;this[_0x4723f4(0x554)]=setTimeout(()=>{const _0x70e6f6=_0x4723f4;this[_0x70e6f6(0x554)]=null,this['_collaborationUIEventService'][_0x70e6f6(0x216)]({'id':_0x70e6f6(0x4cb)});},(_0x50a53c=this['_configService'][_0x4723f4(0x2f7)](_0x4723f4(0x2ac)))==null?_0x37056b:_0x50a53c);}[_0x4f02e5(0x209)](){const _0x36d903=_0x4f02e5;this[_0x36d903(0x554)]&&(clearTimeout(this[_0x36d903(0x554)]),this['_collaborationTimeoutTimer']=null);}[_0x4f02e5(0x329)](_0x5e5442){const _0x10a85f=_0x4f02e5;if(!this[_0x10a85f(0x48a)])return;let {data:_0x36db25}=_0x5e5442,{unitID:_0x2ec484,changeset:_0x55e01f}=_0x36db25,{mutations:_0x50dd8b,type:_0x496525}=_0x55e01f;this[_0x10a85f(0x3c5)]={'unitId':_0x2ec484,'type':_0x496525,'startTime':performance[_0x10a85f(0x226)](),'stopTime':0x0,'duration':0x0,'size':_0x70877(_0x50dd8b)};}[_0x4f02e5(0x254)](){const _0x4bebf6=_0x4f02e5;if(this[_0x4bebf6(0x48a)]){if(!this[_0x4bebf6(0x3c5)]){this['_logService'][_0x4bebf6(0x363)](_0x4bebf6(0x39f),_0x4bebf6(0x506));return;}this[_0x4bebf6(0x3c5)][_0x4bebf6(0x3fd)]=performance['now'](),this[_0x4bebf6(0x3c5)][_0x4bebf6(0x2d5)]=this[_0x4bebf6(0x3c5)]['stopTime']-this['_telemetryInfo'][_0x4bebf6(0x2e8)],this[_0x4bebf6(0x54e)][_0x4bebf6(0x2ba)]('collaboration_new_changeset',this[_0x4bebf6(0x3c5)]),this[_0x4bebf6(0x3c5)]=null;}}[_0x4f02e5(0x46d)](){this['_telemetryInfo']=null;}};_0x11d6a7=_0x411a83([_0x2f2fb0(0x2,_0x5d4a9c[_0x4f02e5(0x33a)]),_0x2f2fb0(0x3,_0x5d4a9c[_0x4f02e5(0x4f1)]),_0x2f2fb0(0x4,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x41fab1)),_0x2f2fb0(0x5,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x33d67b)),_0x2f2fb0(0x6,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xaaa1eb)),_0x2f2fb0(0x7,(0x0,_0x5d4a9c[_0x4f02e5(0x251)])(_0x157a44[_0x4f02e5(0x3ee)]))],_0x11d6a7);let _0x207b84=(0x0,_0x5d4a9c[_0x4f02e5(0x4e0)])(_0x4f02e5(0x26a));function _0x441e12(_0x126ac7){const _0xd4d60f=_0x4f02e5;return _0xd4d60f(0x46f)+_0x126ac7;}function _0x405916(_0x324f1c){const _0x9789b4=_0x4f02e5;let {unitID:_0x32b35d,mutations:_0x52bbad}=_0x324f1c;return{'unitId':_0x32b35d,'subUnitId':_0x52bbad['length']>0x0?_0x52bbad[0x0][_0x9789b4(0x3c4)][_0x9789b4(0x467)]:null};}let _0x1af5bb=class{constructor(_0x2e9f11,_0x38c6b4,_0x4d9b0b){const _0x133ad1=_0x4f02e5;this[_0x133ad1(0x22d)]=_0x2e9f11,this[_0x133ad1(0x3fb)]=_0x38c6b4,this['_instanceService']=_0x4d9b0b;}[_0x4f02e5(0x284)](_0x44327b){const _0x2b7647=_0x4f02e5;var _0x38a57,_0x139caf;let _0x22a377=this['_injector'][_0x2b7647(0x272)](_0x35e648[_0x2b7647(0x3c8)]),{unitId:_0x45242b,subUnitId:_0x1a02f7}=_0x405916(_0x44327b),_0x3fa033=_0x22a377==null?void 0x0:_0x22a377['getWorkbookSelections'](_0x45242b)[_0x2b7647(0x396)](),_0x25d043=(_0x38a57=this[_0x2b7647(0x404)][_0x2b7647(0x53f)](_0x45242b))==null||(_0x38a57=_0x38a57['getActiveSheet']())==null?void 0x0:_0x38a57[_0x2b7647(0x385)]();if(_0x3fa033[_0x2b7647(0x48e)]===0x0||!_0x45242b||!_0x1a02f7)return;let _0x369648=[{'id':_0x35e648[_0x2b7647(0x296)]['id'],'params':{'unitId':_0x45242b,'subUnitId':_0x25d043,'selections':_0x5d4a9c['Tools'][_0x2b7647(0x2bf)](_0x3fa033)}}],_0x568e00=this[_0x2b7647(0x3fb)][_0x2b7647(0x38d)](_0x44327b,_0x369648);if(!(0x0,_0xdffdbc['isTransformMutationsWithChangesetSuccess'])(_0x568e00))throw _0x568e00[_0x2b7647(0x363)];let _0x57c106=(_0x139caf=_0x568e00['m2Prime'][0x0])==null||(_0x139caf=_0x139caf[_0x2b7647(0x3c4)])==null?void 0x0:_0x139caf[_0x2b7647(0x2b7)];if(Array[_0x2b7647(0x24b)](_0x57c106)&&_0x57c106['length']){if(_0x57c106[_0x2b7647(0x48e)]===_0x369648[0x0][_0x2b7647(0x3c4)][_0x2b7647(0x2b7)]['length']&&_0x57c106[_0x2b7647(0x526)]((_0x57ffd1,_0x7e0682)=>_0x5d4a9c[_0x2b7647(0x2a1)][_0x2b7647(0x500)](_0x57ffd1[_0x2b7647(0x20c)],_0x369648[0x0][_0x2b7647(0x3c4)][_0x2b7647(0x2b7)][_0x7e0682][_0x2b7647(0x20c)])))return;this['_injector'][_0x2b7647(0x272)](_0x5d4a9c['ICommandService'])[_0x2b7647(0x32f)](_0x35e648[_0x2b7647(0x296)]['id'],{'unitId':_0x45242b,'subUnitId':_0x25d043,'selections':_0x57c106});}}};_0x1af5bb=_0x411a83([_0x2f2fb0(0x0,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c[_0x4f02e5(0x33d)])),_0x2f2fb0(0x1,_0xdffdbc['ITransformService']),_0x2f2fb0(0x2,_0x5d4a9c[_0x4f02e5(0x3f3)])],_0x1af5bb);let _0x2bf173=(0x0,_0x5d4a9c[_0x4f02e5(0x4e0)])(_0x4f02e5(0x2cc)),_0x546258=function(_0x24dd6c){const _0x381b8d=_0x4f02e5;return _0x24dd6c[_0x24dd6c['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x381b8d(0x2bd),_0x24dd6c[_0x24dd6c[_0x381b8d(0x243)]=0x1]=_0x381b8d(0x243),_0x24dd6c;}({});function _0x213664(_0x1f7310){const _0x1eba9f=_0x4f02e5;var _0x42e9cd;return!!((_0x42e9cd=_0x1f7310[_0x1eba9f(0x3c4)])!=null&&_0x42e9cd['__splitChunk__']);}let _0x39a378=new Set([_0x35e648[_0x4f02e5(0x308)]['id']]),_0x2b51d8=new Set([_0xb29aca[_0x4f02e5(0x51b)]['id'],_0xb29aca[_0x4f02e5(0x3ae)]['id'],_0xb29aca[_0x4f02e5(0x2c0)]['id'],_0xb29aca[_0x4f02e5(0x356)]['id']]);function _0x4580c8(_0x3c45b6,_0x9edb38=_0x39a378){const _0x173c90=_0x4f02e5;let _0x43244c=[];for(let _0x215919 of _0x3c45b6){if(_0x9edb38[_0x173c90(0x32d)](_0x215919['id'])){if(_0x43244c[_0x173c90(0x48e)]>0x0)break;_0x43244c[_0x173c90(0x2c4)](_0x215919);break;}if(_0x213664(_0x215919)){if(_0x43244c[_0x173c90(0x48e)]>0x0)break;_0x43244c['push'](_0x215919);break;}_0x43244c[_0x173c90(0x2c4)](_0x215919);}return _0x43244c;}function _0x23770f(_0x3205a5,_0x5f28f4,_0x7f6931,_0x3a4f87,_0x117bc3){const _0xc31c9c=_0x4f02e5;var _0x1b8c12,_0x32973b,_0x205a85,_0x162c3c;let _0x373731=_0x4580c8(_0x3205a5),_0x4da706=(_0x1b8c12=(_0x32973b=_0x117bc3[_0xc31c9c(0x4c0)]())==null?void 0x0:_0x32973b['userID'])==null?_0xc31c9c(0x1ee):_0x1b8c12,_0x544a4b=(_0x205a85=(_0x162c3c=_0x117bc3[_0xc31c9c(0x4c0)]())==null?void 0x0:_0x162c3c[_0xc31c9c(0x20e)])==null?_0xc31c9c(0x1ee):_0x205a85;return{'changeset':{'unitID':_0x5f28f4,'type':(0x0,_0xdffdbc[_0xc31c9c(0x26f)])(_0x7f6931[_0xc31c9c(0x409)](_0x5f28f4)),'baseRev':_0x3a4f87[_0xc31c9c(0x374)](_0x5f28f4),'revision':0x0,'userID':_0x4da706,'memberID':_0x544a4b,'mutations':_0x373731},'pendingMutations':_0x3205a5[_0xc31c9c(0x537)](_0x373731['length'])};}function _0x1c20e9(_0x4a3dd3,_0x4f2b24,_0x2bff38,_0x2b5add,_0x289754){const _0x52c78e=_0x4f02e5;var _0x5d8907,_0x1dbe37,_0x47d123,_0x435fa9;let _0x8b208=_0x4580c8(_0x4a3dd3,_0x2b51d8),_0x2fd430=(_0x5d8907=(_0x1dbe37=_0x289754[_0x52c78e(0x4c0)]())==null?void 0x0:_0x1dbe37['userID'])==null?_0x52c78e(0x1ee):_0x5d8907,_0x5c15fd=(_0x47d123=(_0x435fa9=_0x289754[_0x52c78e(0x4c0)]())==null?void 0x0:_0x435fa9['memberID'])==null?'unknown':_0x47d123;return{'changeset':{'unitID':_0x4f2b24,'type':(0x0,_0xdffdbc['mapDocumentTypeToUniverInstanceType'])(_0x2bff38[_0x52c78e(0x409)](_0x4f2b24)),'baseRev':_0x2b5add['getCurrentRevOfUnit'](_0x4f2b24),'revision':0x0,'userID':_0x2fd430,'memberID':_0x5c15fd,'mutations':_0x8b208},'pendingMutations':_0x4a3dd3[_0x52c78e(0x537)](_0x8b208[_0x52c78e(0x48e)])};}function _0x5750be(_0xef005a,_0x538b4a,_0x2f2f4e,_0x39ebce,_0x234fee){const _0x45b682=_0x4f02e5;var _0x18b567,_0x4954e7,_0x2a9663,_0x165058;let _0x2602fb=_0xef005a[_0x45b682(0x472)]((_0x4b751f,_0x210309)=>{const _0x4f5f8f=_0x45b682;let _0x1b8cde=_0x4b751f[_0x4b751f['length']-0x1],{id:_0x4ab7b9}=_0x1b8cde==null?{}:_0x1b8cde,{id:_0x2cf8bd,type:_0x56eadc}=_0x210309,_0x23ac5d=_0x210309[_0x4f5f8f(0x3c4)];if(_0x4ab7b9&&_0x4ab7b9!==_0x2cf8bd)throw Error(_0x4f5f8f(0x234)+_0x4ab7b9+_0x4f5f8f(0x33e)+_0x2cf8bd+'.');if(!_0x1b8cde)return[{'id':_0x2cf8bd,'type':_0x56eadc,'params':{'unitId':_0x23ac5d[_0x4f5f8f(0x277)],'textRanges':_0x23ac5d['textRanges'],'actions':_0x23ac5d[_0x4f5f8f(0x21f)]}}];let _0x3267bd=_0x1b8cde[_0x4f5f8f(0x3c4)];return _0x2b614c(_0x3267bd,_0x23ac5d)?[..._0x4b751f[_0x4f5f8f(0x537)](0x0,-0x1),{..._0x1b8cde,'id':_0x2cf8bd,'type':_0x56eadc,'params':{'unitId':_0x23ac5d[_0x4f5f8f(0x277)],'textRanges':_0x23ac5d[_0x4f5f8f(0x532)],'actions':_0x5d4a9c[_0x4f5f8f(0x233)][_0x4f5f8f(0x3ad)](_0x3267bd['actions'],_0x23ac5d[_0x4f5f8f(0x21f)])}}]:[..._0x4b751f,{'id':_0x2cf8bd,'type':_0x56eadc,'params':{'unitId':_0x23ac5d[_0x4f5f8f(0x277)],'textRanges':_0x23ac5d[_0x4f5f8f(0x532)],'actions':_0x23ac5d[_0x4f5f8f(0x21f)]}}];},[]),_0x34833c=(_0x18b567=(_0x4954e7=_0x234fee['getCurrentUser']())==null?void 0x0:_0x4954e7['userID'])==null?_0x45b682(0x1ee):_0x18b567,_0x4745a9=(_0x2a9663=(_0x165058=_0x234fee[_0x45b682(0x4c0)]())==null?void 0x0:_0x165058['memberID'])==null?_0x45b682(0x1ee):_0x2a9663;return{'changeset':{'unitID':_0x538b4a,'type':(0x0,_0xdffdbc[_0x45b682(0x26f)])(_0x2f2f4e['getUnitType'](_0x538b4a)),'baseRev':_0x39ebce[_0x45b682(0x374)](_0x538b4a),'revision':0x0,'userID':_0x34833c,'memberID':_0x4745a9,'mutations':_0x2602fb},'pendingMutations':_0xef005a[_0x45b682(0x537)](_0xef005a[_0x45b682(0x48e)])};}function _0x2b614c(_0x31db81,_0x44fb2c){const _0x1c9e48=_0x4f02e5;return!_0x755ecb(_0x31db81)&&!_0x755ecb(_0x44fb2c)&&_0x28e005(_0x31db81[_0x1c9e48(0x21f)],_0x44fb2c[_0x1c9e48(0x21f)]);}function _0x755ecb(_0x529119){const _0x811887=_0x4f02e5;return _0x529119[_0x811887(0x35c)]!==void 0x0;}function _0x28e005(_0x58a3c9,_0x2dbacf){return _0x23de01(_0x58a3c9)&&_0x23de01(_0x2dbacf)&&!_0x97fd0e(_0x58a3c9)&&!_0x97fd0e(_0x2dbacf)&&!_0x17bf7a(_0x58a3c9)&&!_0x17bf7a(_0x2dbacf);}function _0x23de01(_0x5c44cd){const _0x2361a4=_0x4f02e5;return _0x46e9b6(_0x5c44cd)[_0x2361a4(0x4cd)](_0x975faa=>_0x1c7110(_0x975faa)&&_0x975faa['et']===_0x2361a4(0x428));}function _0x17bf7a(_0x37d2b8){const _0x5310d1=_0x4f02e5;return _0x46e9b6(_0x37d2b8)['some'](_0x143f44=>Array[_0x5310d1(0x24b)](_0x143f44)||typeof _0x143f44==_0x5310d1(0x383)||typeof _0x143f44=='number');}function _0x97fd0e(_0x18bdbd){const _0xfbf9f2=_0x4f02e5;return _0x46e9b6(_0x18bdbd)['some'](_0x4f5c92=>!_0x1c7110(_0x4f5c92)||_0x4f5c92['et']!==_0xfbf9f2(0x428)||!Array[_0xfbf9f2(0x24b)](_0x4f5c92['e'])?!0x1:_0x4f5c92['e'][_0xfbf9f2(0x4cd)](_0x26e535=>!_0x1c7110(_0x26e535)||!_0x1c7110(_0x26e535['body'])?!0x1:Object[_0xfbf9f2(0x1ec)][_0xfbf9f2(0x28d)][_0xfbf9f2(0x295)](_0x26e535[_0xfbf9f2(0x3b8)],_0xfbf9f2(0x3bb))||Object['prototype']['hasOwnProperty'][_0xfbf9f2(0x295)](_0x26e535[_0xfbf9f2(0x3b8)],_0xfbf9f2(0x240))||Object['prototype']['hasOwnProperty'][_0xfbf9f2(0x295)](_0x26e535['body'],'blockRanges')));}function _0x46e9b6(_0x13659e){const _0x5231c6=_0x4f02e5;if(!Array[_0x5231c6(0x24b)](_0x13659e))return[];let _0xa3b48c=_0x13659e[_0x5231c6(0x440)](_0x5231c6(0x3b8))?_0x13659e:_0x13659e[_0x5231c6(0x408)](_0x1150da=>Array[_0x5231c6(0x24b)](_0x1150da)&&_0x1150da[_0x5231c6(0x440)](_0x5231c6(0x3b8)));if(!Array[_0x5231c6(0x24b)](_0xa3b48c))return[];let _0x4211f1=_0xa3b48c[_0x5231c6(0x21b)](_0x5231c6(0x3b8));return _0x4211f1===-0x1?[]:_0xa3b48c['slice'](_0x4211f1+0x1);}function _0x1c7110(_0x1371fd){const _0x10060c=_0x4f02e5;return typeof _0x1371fd==_0x10060c(0x50c)&&!!_0x1371fd&&!Array[_0x10060c(0x24b)](_0x1371fd);}function _0x18531a(_0x279a23,_0x2ef576){const _0x178397=_0x4f02e5;let _0x2f8aad=new _0x1090a1['ReplaySubject'](0x1);return setTimeout(()=>_0x2f8aad[_0x178397(0x31e)](_0x2ef576),_0x279a23),_0x2f8aad[_0x178397(0x294)]()['pipe']((0x0,_0x1090a1[_0x178397(0x397)])(0x1));}var _0x471dcb,_0x26cdbb,_0x3a193b;let _0x2a33e5=function(_0x3db8fa){const _0x36cd69=_0x4f02e5;return _0x3db8fa[_0x36cd69(0x2a9)]=_0x36cd69(0x232),_0x3db8fa[_0x36cd69(0x4a2)]=_0x36cd69(0x201),_0x3db8fa[_0x36cd69(0x288)]=_0x36cd69(0x2f5),_0x3db8fa[_0x36cd69(0x418)]='awaiting',_0x3db8fa[_0x36cd69(0x4ce)]=_0x36cd69(0x517),_0x3db8fa[_0x36cd69(0x25e)]=_0x36cd69(0x3cc),_0x3db8fa[_0x36cd69(0x46a)]=_0x36cd69(0x3a9),_0x3db8fa['OFFLINE']=_0x36cd69(0x2d7),_0x3db8fa;}({}),_0x1625b1=0x4e20,_0x4cd270=0x2bf20;var _0x20d423=class{constructor(_0x3c877f,_0x50ac50,_0x24f27b,_0x739306,_0x5e6f0a,_0x3e71ab,_0x552dbe,_0x20f6db,_0x6a6605){const _0x53f37e=_0x4f02e5;this['unitID']=_0x3c877f,this[_0x53f37e(0x4d6)]=_0x50ac50,this['_handler']=_0x5e6f0a,this[_0x53f37e(0x413)]=_0x3e71ab,this['_undoRedoService']=_0x552dbe,this[_0x53f37e(0x36d)]=_0x20f6db,this[_0x53f37e(0x4e1)]=_0x6a6605,_0xef01a1(this,'_awaitingChangeset',null),_0xef01a1(this,_0x53f37e(0x2de),[]),this[_0x53f37e(0x429)]=_0x24f27b,this[_0x53f37e(0x2de)]=_0x739306;}[_0x4f02e5(0x53a)](_0x4942fb){const _0x25aabd=_0x4f02e5;let _0x52617b=this[_0x25aabd(0x36d)][_0x25aabd(0x374)](this[_0x25aabd(0x317)]);return _0x4942fb[_0x25aabd(0x36e)]>_0x52617b+0x1?(this[_0x25aabd(0x222)][_0x25aabd(0x345)]({'from':_0x52617b,'to':_0x4942fb[_0x25aabd(0x36e)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x34e21d){const _0x212eb0=_0x4f02e5;this['_undoRedoService'][_0x212eb0(0x29d)](this[_0x212eb0(0x317)],_0x34e21d);}[_0x4f02e5(0x46b)](_0x1469dc){const _0x26951b=_0x4f02e5;var _0x273901,_0x4c231d;(_0x273901=(_0x4c231d=this['_handler'])[_0x26951b(0x291)])==null||_0x273901[_0x26951b(0x295)](_0x4c231d,_0x1469dc);}[_0x4f02e5(0x28b)](_0x23fe7d){const _0x54d462=_0x4f02e5;var _0x5c1488,_0x2b6ba3;return(_0x5c1488=(_0x2b6ba3=this[_0x54d462(0x222)])[_0x54d462(0x4b1)])==null?void 0x0:_0x5c1488['call'](_0x2b6ba3,_0x23fe7d);}[_0x4f02e5(0x261)](_0x1064a7){const _0x50cc19=_0x4f02e5;var _0x4d6e2f,_0x9a9758;return(_0x4d6e2f=(_0x9a9758=this[_0x50cc19(0x222)])[_0x50cc19(0x424)])==null?void 0x0:_0x4d6e2f[_0x50cc19(0x295)](_0x9a9758,_0x1064a7);}[_0x4f02e5(0x355)](_0x569278){const _0x222f60=_0x4f02e5;var _0x5bcfd9,_0x21034e,_0x303d61;return(_0x5bcfd9=(_0x21034e=(_0x303d61=this[_0x222f60(0x222)])[_0x222f60(0x293)])==null?void 0x0:_0x21034e[_0x222f60(0x295)](_0x303d61,_0x569278))==null?_0x569278:_0x5bcfd9;}['_transformRemoteChangesetByStateCache'](_0x5ac4cc){const _0x332558=_0x4f02e5;var _0x485064,_0x13b383,_0x42c77b;return(_0x485064=(_0x13b383=(_0x42c77b=this[_0x332558(0x222)])[_0x332558(0x347)])==null?void 0x0:_0x13b383[_0x332558(0x295)](_0x42c77b,_0x5ac4cc))==null?_0x5ac4cc:_0x485064;}[_0x4f02e5(0x30d)](_0x562cd6){const _0x3ceaba=_0x4f02e5;if(this[_0x3ceaba(0x4d6)]===_0x5d4a9c[_0x3ceaba(0x3a3)][_0x3ceaba(0x304)]){let {unitID:_0x6a04ac,mutations:_0x1a61a8,memberID:_0x1126e8}=_0x562cd6,_0x26d996=_0x1a61a8['length']>0x0?_0x1a61a8[0x0][_0x3ceaba(0x3c4)]['textRanges']:[];if(Array[_0x3ceaba(0x24b)](_0x26d996)&&_0x26d996[_0x3ceaba(0x48e)]>0x0){var _0x52d564,_0x4348ed;(_0x52d564=(_0x4348ed=this[_0x3ceaba(0x222)])[_0x3ceaba(0x4fc)])==null||_0x52d564['call'](_0x4348ed,{'unitID':_0x6a04ac,'memberID':_0x1126e8,'textRanges':_0x26d996});}}}[_0x4f02e5(0x3b0)](){const _0x45a009=_0x4f02e5;var _0x37d88d;(_0x37d88d=this[_0x45a009(0x4e1)])==null||_0x37d88d[_0x45a009(0x457)](this[_0x45a009(0x317)],this[_0x45a009(0x4d6)],this['_awaitingChangeset'],this[_0x45a009(0x2de)]);}[_0x4f02e5(0x37a)](){const _0x47b7e3=_0x4f02e5;return this[_0x47b7e3(0x36d)][_0x47b7e3(0x374)](this[_0x47b7e3(0x317)]);}[_0x4f02e5(0x2e4)](){const _0x141160=_0x4f02e5;this['_revisionService'][_0x141160(0x40a)](this[_0x141160(0x317)]);}[_0x4f02e5(0x1fa)](_0x4f0673){const _0x47ddd5=_0x4f02e5;let _0x4c1d57=this['_transformRemoteChangesetByIMECache'](_0x4f0673);_0x4c1d57=this['_transformRemoteChangesetByStateCache'](_0x4c1d57);let _0x4a06c8=(0x0,_0x5d4a9c['sequenceExecute'])(_0x4c1d57[_0x47ddd5(0x371)],this['_commandService'],{'fromCollab':!0x0});if(!_0x4a06c8[_0x47ddd5(0x48b)]){var _0x57ae05;throw _0x4a06c8[_0x47ddd5(0x363)]instanceof Error?_0x4a06c8[_0x47ddd5(0x363)]:Error((_0x57ae05=_0x4a06c8[_0x47ddd5(0x363)])==null?'[CollaborationState]:\x20apply\x20error!':_0x57ae05);}this[_0x47ddd5(0x28b)](_0x4c1d57),this[_0x47ddd5(0x261)](_0x4c1d57),this['_transformUndoredo'](_0x4f0673),this[_0x47ddd5(0x46b)](_0x4c1d57),this[_0x47ddd5(0x30d)](_0x4c1d57),this[_0x47ddd5(0x2e4)]();}};let _0x1707ff=class extends _0x20d423{constructor(_0x1a0a26,_0xd00cf4,_0x2bcb55,_0x2b3fb6,_0x581bf8,_0x5e712f,_0x54eb22,_0x3e08b1,_0x12d3a4,_0xa5898b){const _0x4f2c3c=_0x4f02e5;super(_0x1a0a26,_0xd00cf4,null,[],_0x2bcb55,_0x54eb22,_0x5e712f,_0x2b3fb6,_0xa5898b),this[_0x4f2c3c(0x22d)]=_0x581bf8,this[_0x4f2c3c(0x431)]=_0x3e08b1,this['_transformService']=_0x12d3a4,this[_0x4f2c3c(0x267)]=_0xa5898b,_0xef01a1(this,_0x4f2c3c(0x488),'synced');}[_0x4f02e5(0x29f)](_0x4ecc50){const _0x43925e=_0x4f02e5;let _0xc6d67=this[_0x43925e(0x22d)]['createInstance'](_0x5c7573,this['unitID'],this[_0x43925e(0x4d6)],[_0x4ecc50],this[_0x43925e(0x222)]);return _0xc6d67[_0x43925e(0x2c1)](),_0xc6d67[_0x43925e(0x3b0)](),_0xc6d67;}[_0x4f02e5(0x2fd)](_0x56dc22){const _0x57c29e=_0x4f02e5;if(this[_0x57c29e(0x53a)](_0x56dc22))return this[_0x57c29e(0x22d)][_0x57c29e(0x433)](_0x52059d,this['unitID'],this[_0x57c29e(0x4d6)],null,[],null,[_0x56dc22],this[_0x57c29e(0x222)]);try{let _0x496a62=this[_0x57c29e(0x3fb)]['transformMutationsWithChangeset'](_0x56dc22,[_0xdffdbc[_0x57c29e(0x2b3)]]);if((0x0,_0xdffdbc[_0x57c29e(0x508)])(_0x496a62)){let {c1Prime:_0x5cb1d5}=_0x496a62;return this[_0x57c29e(0x1fa)](_0x5cb1d5),this;}throw _0x496a62[_0x57c29e(0x363)];}catch(_0x2f3cd5){return this[_0x57c29e(0x431)][_0x57c29e(0x363)](_0x2f3cd5),this['_onConflict'](!0x1);}}[_0x4f02e5(0x551)](_0x49308e){const _0x369d91=_0x4f02e5;return this[_0x369d91(0x22d)][_0x369d91(0x433)](_0x41164a,this[_0x369d91(0x317)],this['type'],null,[],this[_0x369d91(0x222)],_0x49308e);}[_0x4f02e5(0x525)](_0x57d350){const _0x217dca=_0x4f02e5;if(_0x57d350[_0x217dca(0x36e)]<=this[_0x217dca(0x37a)]())return this;throw Error(_0x217dca(0x3c1));}[_0x4f02e5(0x2ed)](){throw Error('[SyncedState]:\x20received\x20rejection.');}[_0x4f02e5(0x4ed)](){return this;}[_0x4f02e5(0x2a8)](){const _0x3184e1=_0x4f02e5;return this[_0x3184e1(0x22d)][_0x3184e1(0x433)](_0x5aca18,this['unitID'],this[_0x3184e1(0x4d6)],null,[],this['_handler']);}[_0x4f02e5(0x3dc)](){return this;}[_0x4f02e5(0x473)](){const _0x29d29e=_0x4f02e5;throw Error(_0x29d29e(0x1f5));}[_0x4f02e5(0x330)](){const _0x444425=_0x4f02e5;let _0x466dbb=this[_0x444425(0x36d)][_0x444425(0x374)](this[_0x444425(0x317)]);return this[_0x444425(0x222)]['onMissingChangesets']({'from':_0x466dbb,'to':0x0}),this[_0x444425(0x22d)][_0x444425(0x433)](_0x52059d,this['unitID'],this[_0x444425(0x4d6)],null,[],null,[],this[_0x444425(0x222)]);}};_0x1707ff=_0x411a83([_0x2f2fb0(0x3,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xdffdbc[_0x4f02e5(0x373)])),_0x2f2fb0(0x4,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c[_0x4f02e5(0x33d)])),_0x2f2fb0(0x5,_0x5d4a9c['IUndoRedoService']),_0x2f2fb0(0x6,_0x5d4a9c[_0x4f02e5(0x4f9)]),_0x2f2fb0(0x7,_0x5d4a9c[_0x4f02e5(0x33a)]),_0x2f2fb0(0x8,_0xdffdbc[_0x4f02e5(0x1f2)]),_0x2f2fb0(0x9,(0x0,_0x5d4a9c['Optional'])(_0x207b84))],_0x1707ff);let _0x5c7573=_0x471dcb=class extends _0x20d423{constructor(_0x283466,_0x274854,_0xbb2266,_0x3a9893,_0x342094,_0x543fb3,_0x2aea27,_0x22962c,_0x17fe5e,_0x78eafd,_0x41f860,_0x540554,_0x5e363a,_0x2e117d){const _0x36b661=_0x4f02e5;super(_0x283466,_0x274854,null,_0xbb2266,_0x3a9893,_0x17fe5e,_0x5e363a,_0x543fb3,_0x2e117d),this['_injector']=_0x342094,this[_0x36b661(0x542)]=_0x2aea27,this['_logService']=_0x22962c,this['_configService']=_0x78eafd,this[_0x36b661(0x3fb)]=_0x41f860,this[_0x36b661(0x2e1)]=_0x540554,_0xef01a1(this,_0x36b661(0x488),_0x36b661(0x2f5)),_0xef01a1(this,_0x36b661(0x389),null),_0xef01a1(this,'_sendingTimer',null);}[_0x4f02e5(0x29f)](_0xab30d0){return this['_pendingMutations']['push'](_0xab30d0),this['_updateLocalCache'](),this;}[_0x4f02e5(0x2fd)](_0x1fd642){const _0x4285e5=_0x4f02e5;if(this['_checkMissing'](_0x1fd642))return this['_clearScheduledTask'](),this[_0x4285e5(0x22d)][_0x4285e5(0x433)](_0x52059d,this[_0x4285e5(0x317)],this[_0x4285e5(0x4d6)],null,this[_0x4285e5(0x2de)],null,[_0x1fd642],this[_0x4285e5(0x222)]);try{let _0x30c51e=this['_transformService'][_0x4285e5(0x38d)](_0x1fd642,this['_pendingMutations']);if((0x0,_0xdffdbc['isTransformMutationsWithChangesetSuccess'])(_0x30c51e)){let {c1Prime:_0x21b252,m2Prime:_0x1613ee}=_0x30c51e;this['_executeRemoteChangeset'](_0x21b252);let _0x82813c=this['_injector']['createInstance'](_0x471dcb,this[_0x4285e5(0x317)],this[_0x4285e5(0x4d6)],_0x1613ee,this[_0x4285e5(0x222)]);this[_0x4285e5(0x545)]();let _0x21d4f5=new Date()[_0x4285e5(0x535)](),_0x439eec=this[_0x4285e5(0x389)]?Math[_0x4285e5(0x26b)](this[_0x4285e5(0x389)]-_0x21d4f5,0x0):this[_0x4285e5(0x44a)]();return _0x82813c[_0x4285e5(0x2c1)](_0x439eec),_0x82813c;}throw _0x30c51e[_0x4285e5(0x363)];}catch(_0x1f4ebd){return this[_0x4285e5(0x431)][_0x4285e5(0x363)](_0x1f4ebd),this['_onConflict'](!0x1);}}[_0x4f02e5(0x525)](_0x3777c3){const _0x5d73c7=_0x4f02e5;if(_0x3777c3[_0x5d73c7(0x36e)]<=this['_getCurrentRevision']())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x4f02e5(0x2ed)](){const _0x43d22d=_0x4f02e5;throw Error(_0x43d22d(0x49d));}['onRemoteRetry'](){return this;}[_0x4f02e5(0x2a8)](){const _0x4fb35d=_0x4f02e5;return this[_0x4fb35d(0x545)](),this[_0x4fb35d(0x22d)][_0x4fb35d(0x433)](_0x5aca18,this[_0x4fb35d(0x317)],this[_0x4fb35d(0x4d6)],null,this[_0x4fb35d(0x2de)],this['_handler']);}[_0x4f02e5(0x3dc)](){return this;}[_0x4f02e5(0x2c1)](_0x1ee82e){const _0x3602fc=_0x4f02e5;let _0x912b32=_0x1ee82e==null?this[_0x3602fc(0x44a)]():_0x1ee82e;this[_0x3602fc(0x389)]=new Date()[_0x3602fc(0x535)]()+_0x912b32,this[_0x3602fc(0x4d0)]=setTimeout(()=>{const _0x8496b9=_0x3602fc;this[_0x8496b9(0x545)]();let _0x19e12e=null;switch(this[_0x8496b9(0x4d6)]){case _0x5d4a9c[_0x8496b9(0x3a3)][_0x8496b9(0x531)]:_0x19e12e=_0x23770f(this['_pendingMutations'],this[_0x8496b9(0x317)],this[_0x8496b9(0x2e1)],this['_revisionService'],this[_0x8496b9(0x542)]);break;case _0x5d4a9c[_0x8496b9(0x3a3)][_0x8496b9(0x304)]:_0x19e12e=this['_pendingMutations'][_0x8496b9(0x526)](_0x31dbf3=>_0x31dbf3['id']===_0x2d7ee3[_0x8496b9(0x2f8)]['id'])?_0x5750be(this['_pendingMutations'],this[_0x8496b9(0x317)],this[_0x8496b9(0x2e1)],this[_0x8496b9(0x36d)],this[_0x8496b9(0x542)]):_0x23770f(this['_pendingMutations'],this[_0x8496b9(0x317)],this[_0x8496b9(0x2e1)],this[_0x8496b9(0x36d)],this['_memberService']);break;case _0x5d4a9c[_0x8496b9(0x3a3)][_0x8496b9(0x3ef)]:_0x19e12e=_0x1c20e9(this[_0x8496b9(0x2de)],this[_0x8496b9(0x317)],this[_0x8496b9(0x2e1)],this['_revisionService'],this[_0x8496b9(0x542)]);break;case _0x5d4a9c[_0x8496b9(0x3a3)][_0x8496b9(0x43d)]:_0x19e12e=_0x23770f(this[_0x8496b9(0x2de)],this[_0x8496b9(0x317)],this['_univerInstanceService'],this['_revisionService'],this[_0x8496b9(0x542)]);break;case _0x5d4a9c[_0x8496b9(0x3a3)]['UNIVER_BASE']:_0x19e12e=_0x23770f(this[_0x8496b9(0x2de)],this[_0x8496b9(0x317)],this['_univerInstanceService'],this[_0x8496b9(0x36d)],this['_memberService']);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x8496b9(0x283));}let {changeset:_0x7e115d,pendingMutations:_0x5c5bb9}=_0x19e12e;this[_0x8496b9(0x222)][_0x8496b9(0x4bf)](_0x7e115d);let _0x2b0114=_0x5c5bb9[_0x8496b9(0x48e)]?this[_0x8496b9(0x22d)]['createInstance'](_0x384168,this[_0x8496b9(0x317)],this[_0x8496b9(0x4d6)],_0x7e115d,_0x5c5bb9,this['_handler'],void 0x0):this[_0x8496b9(0x22d)][_0x8496b9(0x433)](_0xd8acb7,this[_0x8496b9(0x317)],this[_0x8496b9(0x4d6)],_0x7e115d,this[_0x8496b9(0x222)]);_0x2b0114[_0x8496b9(0x3b0)](),this[_0x8496b9(0x222)][_0x8496b9(0x40c)](this,_0x2b0114);},_0x912b32);}['_getSendChangesetTimeout'](){const _0x3aefe9=_0x4f02e5;var _0x33a455;let _0x2fac40=this[_0x3aefe9(0x543)][_0x3aefe9(0x2f7)](_0x165ad1);return(_0x33a455=_0x2fac40==null?void 0x0:_0x2fac40[_0x3aefe9(0x44d)])==null?0x7d0:_0x33a455;}[_0x4f02e5(0x473)](){const _0x480ffc=_0x4f02e5;throw Error(_0x480ffc(0x33f));}[_0x4f02e5(0x545)](){const _0x440a74=_0x4f02e5;this[_0x440a74(0x4d0)]!=null&&(clearTimeout(this[_0x440a74(0x4d0)]),this[_0x440a74(0x4d0)]=null);}['_onConflict'](_0x391b34){const _0x22beba=_0x4f02e5;return this[_0x22beba(0x545)](),this[_0x22beba(0x22d)][_0x22beba(0x433)](_0x41164a,this[_0x22beba(0x317)],this[_0x22beba(0x4d6)],null,this[_0x22beba(0x2de)],this[_0x22beba(0x222)],_0x391b34);}};_0x5c7573=_0x471dcb=_0x411a83([_0x2f2fb0(0x4,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c[_0x4f02e5(0x33d)])),_0x2f2fb0(0x5,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xdffdbc['RevisionService'])),_0x2f2fb0(0x6,(0x0,_0x5d4a9c['Inject'])(_0x41fab1)),_0x2f2fb0(0x7,_0x5d4a9c[_0x4f02e5(0x33a)]),_0x2f2fb0(0x8,_0x5d4a9c[_0x4f02e5(0x4f9)]),_0x2f2fb0(0x9,_0x5d4a9c[_0x4f02e5(0x4f1)]),_0x2f2fb0(0xa,_0xdffdbc[_0x4f02e5(0x1f2)]),_0x2f2fb0(0xb,_0x5d4a9c[_0x4f02e5(0x3f3)]),_0x2f2fb0(0xc,_0x5d4a9c['IUndoRedoService']),_0x2f2fb0(0xd,(0x0,_0x5d4a9c['Optional'])(_0x207b84))],_0x5c7573);let _0xd8acb7=_0x26cdbb=class extends _0x20d423{constructor(_0x2cd308,_0x21d768,_0xaa6e77,_0x376d3c,_0x1b9c39,_0x45c830,_0x128550,_0x65d3ba,_0xe9e39,_0x9447d5,_0x4414ce){const _0x46cf15=_0x4f02e5;super(_0x2cd308,_0x21d768,_0xaa6e77,[],_0x376d3c,_0x128550,_0x9447d5,_0x45c830,_0x4414ce),this['_injector']=_0x1b9c39,this['_logService']=_0x65d3ba,this[_0x46cf15(0x3fb)]=_0xe9e39,_0xef01a1(this,'status',_0x46cf15(0x4f0)),_0xef01a1(this,'_resendTimeout',0x0),_0xef01a1(this,_0x46cf15(0x3f4),0x0),_0xef01a1(this,_0x46cf15(0x42a),void 0x0),_0xef01a1(this,_0x46cf15(0x25d),void 0x0);}['appendMutation'](_0x115b12){const _0x39652b=_0x4f02e5;this['_clearScheduledTask']();let _0x59698e=this[_0x39652b(0x22d)]['createInstance'](_0x384168,this['unitID'],this[_0x39652b(0x4d6)],this['_awaitingChangeset'],[_0x115b12],this[_0x39652b(0x222)],this[_0x39652b(0x42a)]);return _0x59698e[_0x39652b(0x3b0)](),_0x59698e;}[_0x4f02e5(0x2fd)](_0xca2188){const _0x5f029e=_0x4f02e5;if(this[_0x5f029e(0x53a)](_0xca2188))return this['_clearScheduledTask'](),this[_0x5f029e(0x22d)][_0x5f029e(0x433)](_0x52059d,this[_0x5f029e(0x317)],this[_0x5f029e(0x4d6)],this[_0x5f029e(0x429)],[],null,[_0xca2188],this['_handler']);try{let _0x3a37ff=this[_0x5f029e(0x3fb)]['transformChangesets']([_0xca2188],[this[_0x5f029e(0x429)]],!0x1);if((0x0,_0xdffdbc[_0x5f029e(0x2a5)])(_0x3a37ff)){let {c1Prime:_0x570a58,c2Prime:_0x1b6253}=_0x3a37ff;this[_0x5f029e(0x1fa)](_0x570a58[0x0]),_0x1b6253[0x0][_0x5f029e(0x1eb)]=this[_0x5f029e(0x37a)](),this[_0x5f029e(0x545)]();let _0x3075e2=this[_0x5f029e(0x22d)][_0x5f029e(0x433)](_0x26cdbb,this[_0x5f029e(0x317)],this['type'],_0x1b6253[0x0],this[_0x5f029e(0x222)]);return _0x3075e2[_0x5f029e(0x3b0)](),_0x3075e2;}throw _0x3a37ff[_0x5f029e(0x363)];}catch(_0x407b4b){return this[_0x5f029e(0x431)][_0x5f029e(0x363)](_0x407b4b),this[_0x5f029e(0x551)](!0x1);}}['onRemoteAck'](_0x29e2cd){const _0x18113b=_0x4f02e5;this[_0x18113b(0x545)]();let _0x4dcdd8=this[_0x18113b(0x36d)][_0x18113b(0x374)](this[_0x18113b(0x317)]);if(_0x29e2cd[_0x18113b(0x36e)]<=_0x4dcdd8)return this;if(this[_0x18113b(0x53a)](_0x29e2cd))return this[_0x18113b(0x22d)][_0x18113b(0x433)](_0x52059d,this[_0x18113b(0x317)],this[_0x18113b(0x4d6)],this['_awaitingChangeset'],[],_0x29e2cd[_0x18113b(0x36e)],[],this[_0x18113b(0x222)]);this['_incrementRevisionNumber']();let _0x1d5b5c=this[_0x18113b(0x22d)][_0x18113b(0x433)](_0x1707ff,this[_0x18113b(0x317)],this[_0x18113b(0x4d6)],this[_0x18113b(0x222)]);return _0x1d5b5c['_updateLocalCache'](),_0x1d5b5c;}[_0x4f02e5(0x2ed)](_0x292ea2){const _0x496e5b=_0x4f02e5;return this[_0x496e5b(0x551)](!!(_0x292ea2!=null&&_0x292ea2[_0x496e5b(0x41e)]));}['onRemoteRetry'](_0x4fd446){const _0x3e7cfe=_0x4f02e5;return this['_maxTotalRetryTimeout']>_0x4cd270?this['toggleOffline']():(this[_0x3e7cfe(0x42a)]=_0x18531a(this[_0x3e7cfe(0x556)],{'timeout':this[_0x3e7cfe(0x556)],'reqId':_0x4fd446[_0x3e7cfe(0x339)]}),this['_sender']=this['_resendTimer'][_0x3e7cfe(0x2b6)](({reqId:_0x4a34cb,timeout:_0x18cb2b})=>{const _0x40c81f=_0x3e7cfe;this[_0x40c81f(0x35d)](_0x4a34cb,_0x18cb2b);}),this);}[_0x4f02e5(0x2a8)](){const _0x4fb8a9=_0x4f02e5;return this[_0x4fb8a9(0x545)](),this[_0x4fb8a9(0x22d)][_0x4fb8a9(0x433)](_0x5aca18,this[_0x4fb8a9(0x317)],this[_0x4fb8a9(0x4d6)],this[_0x4fb8a9(0x429)],[],this[_0x4fb8a9(0x222)]);}[_0x4f02e5(0x3dc)](){return this;}[_0x4f02e5(0x473)](){const _0x106842=_0x4f02e5;this['_handler']['onSendChangeset'](this[_0x106842(0x429)]);}[_0x4f02e5(0x551)](_0x2db690){const _0x221318=_0x4f02e5;return this[_0x221318(0x545)](),this['_injector']['createInstance'](_0x41164a,this[_0x221318(0x317)],this['type'],this[_0x221318(0x429)],[],this[_0x221318(0x222)],_0x2db690);}[_0x4f02e5(0x35d)](_0xb14d39,_0x2b7adb){const _0x4b4eab=_0x4f02e5;var _0x585fdc;_0xb14d39===((_0x585fdc=this[_0x4b4eab(0x429)])==null?void 0x0:_0x585fdc[_0x4b4eab(0x339)])&&(this['resend'](),this[_0x4b4eab(0x556)]=_0x2b7adb===0x0?0x3e8:Math[_0x4b4eab(0x3d3)](_0x2b7adb*0x2,_0x1625b1),this[_0x4b4eab(0x3f4)]+=this[_0x4b4eab(0x556)]);}[_0x4f02e5(0x545)](){const _0x405ee9=_0x4f02e5;var _0x4b1662;(_0x4b1662=this[_0x405ee9(0x25d)])==null||_0x4b1662['unsubscribe'](),this[_0x405ee9(0x556)]=0x0,this[_0x405ee9(0x3f4)]=0x0;}};_0xd8acb7=_0x26cdbb=_0x411a83([_0x2f2fb0(0x4,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c[_0x4f02e5(0x33d)])),_0x2f2fb0(0x5,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xdffdbc[_0x4f02e5(0x373)])),_0x2f2fb0(0x6,_0x5d4a9c['ICommandService']),_0x2f2fb0(0x7,_0x5d4a9c[_0x4f02e5(0x33a)]),_0x2f2fb0(0x8,_0xdffdbc[_0x4f02e5(0x1f2)]),_0x2f2fb0(0x9,_0x5d4a9c[_0x4f02e5(0x314)]),_0x2f2fb0(0xa,(0x0,_0x5d4a9c['Optional'])(_0x207b84))],_0xd8acb7);let _0x384168=_0x3a193b=class extends _0x20d423{constructor(_0x567cc9,_0x29491c,_0x3f643b,_0x5c32e4,_0x4eef57,_0x4d3cc2,_0x4b5dd0,_0x3087bd,_0x646a8d,_0x3ffa0f,_0x519cd0,_0x54a0ad,_0x41ae56){const _0x7ccef4=_0x4f02e5;super(_0x567cc9,_0x29491c,_0x3f643b,_0x5c32e4,_0x4eef57,_0x646a8d,_0x54a0ad,_0x3087bd,_0x41ae56),this['_injector']=_0x4b5dd0,this[_0x7ccef4(0x431)]=_0x3ffa0f,this[_0x7ccef4(0x3fb)]=_0x519cd0,this[_0x7ccef4(0x267)]=_0x41ae56,_0xef01a1(this,_0x7ccef4(0x488),_0x7ccef4(0x517)),_0xef01a1(this,_0x7ccef4(0x556),0x0),_0xef01a1(this,'_maxTotalRetryTimeout',0x0),_0xef01a1(this,_0x7ccef4(0x42a),void 0x0),_0xef01a1(this,_0x7ccef4(0x25d),void 0x0),_0x4d3cc2&&(this[_0x7ccef4(0x42a)]=_0x4d3cc2,this[_0x7ccef4(0x25d)]=this[_0x7ccef4(0x42a)]['subscribe'](({reqId:_0x4504dc,timeout:_0x3a6076})=>{const _0x5f3d85=_0x7ccef4;this[_0x5f3d85(0x35d)](_0x4504dc,_0x3a6076);}));}['appendMutation'](_0x29eea7){const _0x14ea13=_0x4f02e5;return this[_0x14ea13(0x2de)][_0x14ea13(0x2c4)](_0x29eea7),this;}[_0x4f02e5(0x2fd)](_0x194742){const _0x44e7a1=_0x4f02e5;if(this[_0x44e7a1(0x53a)](_0x194742))return this[_0x44e7a1(0x545)](),this[_0x44e7a1(0x22d)]['createInstance'](_0x52059d,this[_0x44e7a1(0x317)],this[_0x44e7a1(0x4d6)],this[_0x44e7a1(0x429)],this[_0x44e7a1(0x2de)],null,[_0x194742],this[_0x44e7a1(0x222)]);try{let _0x2dcaee=this[_0x44e7a1(0x3fb)][_0x44e7a1(0x2f2)]([_0x194742],[this['_awaitingChangeset']],!0x1);if((0x0,_0xdffdbc[_0x44e7a1(0x2a5)])(_0x2dcaee)){let {c1Prime:_0x238b9d,c2Prime:_0x3b06df}=_0x2dcaee,_0x1987ff=this[_0x44e7a1(0x3fb)][_0x44e7a1(0x38d)](_0x238b9d[0x0],this[_0x44e7a1(0x2de)]);if((0x0,_0xdffdbc[_0x44e7a1(0x508)])(_0x1987ff)){let {c1Prime:_0x520bda,m2Prime:_0x48cc56}=_0x1987ff;return this[_0x44e7a1(0x1fa)](_0x520bda),_0x3b06df[0x0][_0x44e7a1(0x1eb)]=this[_0x44e7a1(0x37a)](),this[_0x44e7a1(0x545)](),this[_0x44e7a1(0x22d)][_0x44e7a1(0x433)](_0x3a193b,this[_0x44e7a1(0x317)],this[_0x44e7a1(0x4d6)],_0x3b06df[0x0],_0x48cc56,this[_0x44e7a1(0x222)],void 0x0);}throw _0x1987ff[_0x44e7a1(0x363)];}throw _0x2dcaee[_0x44e7a1(0x363)];}catch(_0x33dea0){return this['_logService'][_0x44e7a1(0x363)](_0x33dea0),this[_0x44e7a1(0x551)](!0x1);}}[_0x4f02e5(0x525)](_0x3732b7){const _0x467b57=_0x4f02e5;this[_0x467b57(0x545)]();let _0x48ffcb=this['_getCurrentRevision']();if(_0x3732b7[_0x467b57(0x36e)]<=_0x48ffcb)return this;if(this[_0x467b57(0x53a)](_0x3732b7))return this['_injector']['createInstance'](_0x52059d,this[_0x467b57(0x317)],this[_0x467b57(0x4d6)],this[_0x467b57(0x429)],this[_0x467b57(0x2de)],_0x3732b7[_0x467b57(0x36e)],[],this['_handler']);this['_incrementRevisionNumber']();let _0x46e301=this[_0x467b57(0x22d)][_0x467b57(0x433)](_0x5c7573,this['unitID'],this[_0x467b57(0x4d6)],this[_0x467b57(0x2de)],this[_0x467b57(0x222)]);return _0x46e301[_0x467b57(0x2c1)](),_0x46e301[_0x467b57(0x3b0)](),_0x46e301;}[_0x4f02e5(0x2ed)](_0x4f4770){const _0x52d7ad=_0x4f02e5;return this[_0x52d7ad(0x551)](!!(_0x4f4770!=null&&_0x4f4770['isPermissionRej']));}[_0x4f02e5(0x4ed)](_0x16dd58){const _0x360114=_0x4f02e5;return this[_0x360114(0x3f4)]>_0x4cd270?this[_0x360114(0x2a8)]():(this['_resendTimer']=_0x18531a(this[_0x360114(0x556)],{'timeout':this[_0x360114(0x556)],'reqId':_0x16dd58['reqId']}),this[_0x360114(0x25d)]=this['_resendTimer'][_0x360114(0x2b6)](({reqId:_0x28bd50,timeout:_0x5724cf})=>{const _0x2b0d76=_0x360114;this[_0x2b0d76(0x35d)](_0x28bd50,_0x5724cf);}),this);}[_0x4f02e5(0x2a8)](){const _0x5ac396=_0x4f02e5;return this[_0x5ac396(0x545)](),this['_injector'][_0x5ac396(0x433)](_0x5aca18,this[_0x5ac396(0x317)],this[_0x5ac396(0x4d6)],this[_0x5ac396(0x429)],this[_0x5ac396(0x2de)],this[_0x5ac396(0x222)]);}[_0x4f02e5(0x3dc)](){return this;}[_0x4f02e5(0x473)](){const _0x57b9f8=_0x4f02e5;this['_handler'][_0x57b9f8(0x4bf)](this['_awaitingChangeset']);}[_0x4f02e5(0x551)](_0x53ad69){const _0x37d7ae=_0x4f02e5;return this[_0x37d7ae(0x545)](),this['_injector'][_0x37d7ae(0x433)](_0x41164a,this[_0x37d7ae(0x317)],this['type'],null,this[_0x37d7ae(0x2de)],this['_handler'],_0x53ad69);}[_0x4f02e5(0x35d)](_0x3da6e3,_0x2ff879){const _0x52c3af=_0x4f02e5;var _0x4ae4ee;_0x3da6e3===((_0x4ae4ee=this[_0x52c3af(0x429)])==null?void 0x0:_0x4ae4ee['reqId'])&&(this[_0x52c3af(0x473)](),this[_0x52c3af(0x556)]=_0x2ff879===0x0?0x3e8:Math[_0x52c3af(0x3d3)](_0x2ff879*0x2,_0x1625b1),this[_0x52c3af(0x3f4)]+=this[_0x52c3af(0x556)]);}[_0x4f02e5(0x545)](){const _0x29a99b=_0x4f02e5;var _0x21bc68;(_0x21bc68=this['_sender'])==null||_0x21bc68['unsubscribe'](),this[_0x29a99b(0x556)]=0x0,this[_0x29a99b(0x3f4)]=0x0;}};_0x384168=_0x3a193b=_0x411a83([_0x2f2fb0(0x6,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c[_0x4f02e5(0x33d)])),_0x2f2fb0(0x7,(0x0,_0x5d4a9c['Inject'])(_0xdffdbc[_0x4f02e5(0x373)])),_0x2f2fb0(0x8,_0x5d4a9c[_0x4f02e5(0x4f9)]),_0x2f2fb0(0x9,_0x5d4a9c['ILogService']),_0x2f2fb0(0xa,_0xdffdbc[_0x4f02e5(0x1f2)]),_0x2f2fb0(0xb,_0x5d4a9c['IUndoRedoService']),_0x2f2fb0(0xc,(0x0,_0x5d4a9c[_0x4f02e5(0x251)])(_0x207b84))],_0x384168);let _0x41164a=class extends _0x20d423{constructor(_0x3e2c2d,_0x61c494,_0x4801c5,_0x632f97,_0x45928c,_0x1db8f1=!0x1,_0x4180d2,_0x15face,_0x2968b1,_0x31d088,_0x508619,_0x219fee,_0x33abcb){const _0x4d233e=_0x4f02e5;super(_0x3e2c2d,_0x61c494,_0x4801c5,_0x632f97,_0x45928c,_0x15face,_0x2968b1,_0x31d088,_0x33abcb),this[_0x4d233e(0x24f)]=_0x1db8f1,this['_permissionService']=_0x4180d2,this[_0x4d233e(0x46e)]=_0x508619,this['_collaborationUIEventService']=_0x219fee,this[_0x4d233e(0x267)]=_0x33abcb,_0xef01a1(this,_0x4d233e(0x488),_0x4d233e(0x3a9)),this[_0x4d233e(0x4c7)](),this[_0x4d233e(0x22f)](),this[_0x4d233e(0x331)]();}[_0x4f02e5(0x29f)](){return this;}[_0x4f02e5(0x2fd)](){return this;}[_0x4f02e5(0x525)](){return this;}[_0x4f02e5(0x2ed)](){return this;}['onRemoteRetry'](){return this;}[_0x4f02e5(0x2a8)](){return this;}['toggleOnline'](){return this;}[_0x4f02e5(0x473)](){const _0x517822=_0x4f02e5;throw Error(_0x517822(0x421));}[_0x4f02e5(0x22f)](){const _0x359ee6=_0x4f02e5;var _0x2cb2c7,_0x34c321,_0x34b27c;(_0x2cb2c7=this[_0x359ee6(0x4e1)])==null||(_0x34c321=_0x2cb2c7[_0x359ee6(0x319)])==null||(_0x34c321=_0x34c321[_0x359ee6(0x295)](_0x2cb2c7,this[_0x359ee6(0x317)],'conflict'))==null||_0x34c321['catch'](()=>void 0x0),(_0x34b27c=this[_0x359ee6(0x4e1)])==null||_0x34b27c[_0x359ee6(0x457)](this[_0x359ee6(0x317)],this[_0x359ee6(0x4d6)],null,[]);}['_showConflictNotification'](){const _0x268c1f=_0x4f02e5;this[_0x268c1f(0x24f)]?this[_0x268c1f(0x25c)][_0x268c1f(0x216)]({'id':_0x268c1f(0x412)}):this[_0x268c1f(0x25c)]['emitEvent']({'id':_0x268c1f(0x46a)});}['_disableEditing'](){const _0x4224d3=_0x4f02e5;this['_permissionService'][_0x4224d3(0x512)](new _0x35e648[(_0x4224d3(0x52d))](this[_0x4224d3(0x317)])['id'],!0x1);}};_0x41164a=_0x411a83([_0x2f2fb0(0x6,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c[_0x4f02e5(0x4e6)])),_0x2f2fb0(0x7,_0x5d4a9c[_0x4f02e5(0x4f9)]),_0x2f2fb0(0x8,_0x5d4a9c[_0x4f02e5(0x314)]),_0x2f2fb0(0x9,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xdffdbc['RevisionService'])),_0x2f2fb0(0xa,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c[_0x4f02e5(0x387)])),_0x2f2fb0(0xb,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xaaa1eb)),_0x2f2fb0(0xc,(0x0,_0x5d4a9c[_0x4f02e5(0x251)])(_0x207b84))],_0x41164a);let _0x5aca18=class extends _0x20d423{constructor(_0x5c7ae7,_0xadd8e1,_0x1dea5e,_0x1b15e8,_0x3931ed,_0x4ada38,_0x531d4b,_0x4d4449,_0x455bad,_0x4e2676){super(_0x5c7ae7,_0xadd8e1,_0x1dea5e,_0x1b15e8,_0x3931ed,_0x4d4449,_0x455bad,_0x531d4b,_0x4e2676),this['_injector']=_0x4ada38,_0xef01a1(this,'status','offline');}['appendMutation'](_0x54e969){const _0xf9a9f0=_0x4f02e5;return this[_0xf9a9f0(0x2de)][_0xf9a9f0(0x2c4)](_0x54e969),this[_0xf9a9f0(0x3b0)](),this;}[_0x4f02e5(0x2fd)](_0x23c8f9){const _0x25a115=_0x4f02e5;throw Error(_0x25a115(0x53d));}[_0x4f02e5(0x525)](){const _0x281509=_0x4f02e5;throw Error(_0x281509(0x2b4));}['onRemoteRej'](){const _0x5c0530=_0x4f02e5;throw Error(_0x5c0530(0x2e7));}[_0x4f02e5(0x4ed)](){return this;}[_0x4f02e5(0x2a8)](){return this;}[_0x4f02e5(0x3dc)](){const _0xd6fc31=_0x4f02e5;let {_injector:_0x3ac77b,_pendingMutations:_0x431287,_awaitingChangeset:_0x1ff417,unitID:_0x51e54f,_handler:_0x48320e,type:_0x3d8c3e}=this,_0x39e074=_0x316ff4(_0x3ac77b,_0x51e54f,_0x3d8c3e,_0x1ff417,_0x431287,_0x48320e);return _0x39e074 instanceof _0x5c7573?_0x39e074[_0xd6fc31(0x2c1)]():(_0x39e074 instanceof _0x384168||_0x39e074 instanceof _0xd8acb7)&&_0x39e074[_0xd6fc31(0x473)](),_0x39e074;}['resend'](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x5aca18=_0x411a83([_0x2f2fb0(0x5,(0x0,_0x5d4a9c['Inject'])(_0x5d4a9c['Injector'])),_0x2f2fb0(0x6,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xdffdbc['RevisionService'])),_0x2f2fb0(0x7,_0x5d4a9c['ICommandService']),_0x2f2fb0(0x8,_0x5d4a9c[_0x4f02e5(0x314)]),_0x2f2fb0(0x9,(0x0,_0x5d4a9c[_0x4f02e5(0x251)])(_0x207b84))],_0x5aca18);let _0x52059d=class extends _0x20d423{constructor(_0x338d0b,_0x575048,_0x226360,_0x4a2723,_0x2c31e2,_0x3ed4e1,_0x1d546b,_0x36e52d,_0x1c0fb0,_0x143a52,_0x16e638,_0x25d62c,_0x1e5216,_0xb2a03c){const _0x1e2636=_0x4f02e5;super(_0x338d0b,_0x575048,_0x226360,_0x4a2723,_0x1d546b,_0x16e638,_0x25d62c,_0x1c0fb0,_0xb2a03c),this[_0x1e2636(0x490)]=_0x2c31e2,this[_0x1e2636(0x46c)]=_0x3ed4e1,this[_0x1e2636(0x22d)]=_0x36e52d,this[_0x1e2636(0x431)]=_0x143a52,this[_0x1e2636(0x3fb)]=_0x1e5216,this['localCacheService']=_0xb2a03c,_0xef01a1(this,_0x1e2636(0x488),_0x1e2636(0x3cc));}[_0x4f02e5(0x2f0)](_0x526a86){const _0x4cbd1c=_0x4f02e5;try{if(this[_0x4cbd1c(0x485)](_0x526a86)[_0x4cbd1c(0x3bc)])throw Error(_0x4cbd1c(0x30f));if(this[_0x4cbd1c(0x485)]([...this[_0x4cbd1c(0x46c)]][_0x4cbd1c(0x3e2)]((_0x1757af,_0x3583e9)=>_0x1757af[_0x4cbd1c(0x36e)]-_0x3583e9['revision']))[_0x4cbd1c(0x3bc)])return this[_0x4cbd1c(0x46c)]=[],this[_0x4cbd1c(0x3b0)](),this[_0x4cbd1c(0x222)][_0x4cbd1c(0x345)]({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0x141e5c=this[_0x4cbd1c(0x429)],_0x441512=this[_0x4cbd1c(0x2de)],_0x32164a;if(_0x141e5c&&_0x441512[_0x4cbd1c(0x48e)]!==0x0)_0x32164a=this[_0x4cbd1c(0x22d)]['createInstance'](_0x384168,this[_0x4cbd1c(0x317)],this['type'],_0x141e5c,_0x441512,this[_0x4cbd1c(0x222)],void 0x0);else{if(_0x141e5c&&_0x441512['length']===0x0)_0x141e5c[_0x4cbd1c(0x1eb)]=this['_getCurrentRevision'](),_0x32164a=this[_0x4cbd1c(0x22d)][_0x4cbd1c(0x433)](_0xd8acb7,this[_0x4cbd1c(0x317)],this[_0x4cbd1c(0x4d6)],_0x141e5c,this[_0x4cbd1c(0x222)]);else{if(_0x441512['length']!==0x0){let _0xc3f56b=this[_0x4cbd1c(0x22d)][_0x4cbd1c(0x433)](_0x5c7573,this[_0x4cbd1c(0x317)],this['type'],_0x441512,this[_0x4cbd1c(0x222)]);_0xc3f56b['_schedule'](),_0x32164a=_0xc3f56b;}else _0x32164a=this['_injector'][_0x4cbd1c(0x433)](_0x1707ff,this[_0x4cbd1c(0x317)],this[_0x4cbd1c(0x4d6)],this[_0x4cbd1c(0x222)]);}}return _0x32164a[_0x4cbd1c(0x3b0)](),_0x32164a;}catch(_0xc99941){return this['_logService']['error']('[FetchMissState]',_0x4cbd1c(0x4c6),_0xc99941),this[_0x4cbd1c(0x22d)][_0x4cbd1c(0x433)](_0x41164a,this[_0x4cbd1c(0x317)],this[_0x4cbd1c(0x4d6)],this[_0x4cbd1c(0x429)],this['_pendingMutations'],this[_0x4cbd1c(0x222)],!0x1);}}['_handleRemoteChangesets'](_0x27b3d8){const _0x452c85=_0x4f02e5;this['_acknowledgeAwaitingIfReady']();for(let _0x5588bc=0x0;_0x5588bc<_0x27b3d8['length'];_0x5588bc++){let _0x165952=_0x27b3d8[_0x5588bc],_0x50bc71=this[_0x452c85(0x37a)]();if(!(_0x165952[_0x452c85(0x36e)]<=_0x50bc71)){if(_0x165952['revision']>_0x50bc71+0x1)return{'missingChangesets':!0x0};if(this[_0x452c85(0x2b2)](_0x165952)){this['_acknowledgeAwaiting']();continue;}this['_transformAndApplyRemoteChangeset'](_0x165952),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x4f02e5(0x3fe)](_0x19ee5d){const _0xcc37b3=_0x4f02e5;let _0x12cb15=_0x19ee5d,_0x55daf7=this[_0xcc37b3(0x429)];if(_0x55daf7){let _0x13a36c=this[_0xcc37b3(0x3fb)][_0xcc37b3(0x2f2)]([_0x19ee5d],[_0x55daf7],!0x1);if(!(0x0,_0xdffdbc['isTransformChangesetsSuccess'])(_0x13a36c))throw _0x13a36c[_0xcc37b3(0x363)];_0x12cb15=_0x13a36c[_0xcc37b3(0x25b)][0x0],_0x55daf7=_0x13a36c[_0xcc37b3(0x523)][0x0];}let _0x571c93=this[_0xcc37b3(0x2de)];if(_0x571c93[_0xcc37b3(0x48e)]){let _0x1d4a09=this['_transformService'][_0xcc37b3(0x38d)](_0x12cb15,_0x571c93);if(!(0x0,_0xdffdbc[_0xcc37b3(0x508)])(_0x1d4a09))throw _0x1d4a09[_0xcc37b3(0x363)];_0x12cb15=_0x1d4a09['c1Prime'],_0x571c93=_0x1d4a09[_0xcc37b3(0x3ac)];}this[_0xcc37b3(0x1fa)](_0x12cb15),_0x55daf7&&(_0x55daf7['baseRev']=this[_0xcc37b3(0x37a)]()),this['_awaitingChangeset']=_0x55daf7,this[_0xcc37b3(0x2de)]=_0x571c93;}[_0x4f02e5(0x43a)](){const _0x295daa=_0x4f02e5;if(!this[_0x295daa(0x429)]||this[_0x295daa(0x490)]==null)return;let _0x251945=this[_0x295daa(0x37a)]();if(this[_0x295daa(0x490)]<=_0x251945)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this[_0x295daa(0x490)]+'.');this['_acknowledgedAwaitingRevision']===_0x251945+0x1&&this[_0x295daa(0x2e6)]();}['_acknowledgeAwaiting'](){const _0x27f116=_0x4f02e5;this[_0x27f116(0x2e4)](),this[_0x27f116(0x429)]=null,this[_0x27f116(0x490)]=null;}[_0x4f02e5(0x2b2)](_0x4e096a){const _0x3a10ee=_0x4f02e5;let _0x4d9623=this[_0x3a10ee(0x429)];return!_0x4d9623||!_0x4d9623[_0x3a10ee(0x2a2)]||_0x4d9623[_0x3a10ee(0x339)]===null||_0x4d9623[_0x3a10ee(0x339)]===void 0x0?!0x1:_0x4e096a[_0x3a10ee(0x317)]===_0x4d9623[_0x3a10ee(0x317)]&&_0x4e096a['sid']===_0x4d9623[_0x3a10ee(0x2a2)]&&_0x4e096a[_0x3a10ee(0x339)]===_0x4d9623[_0x3a10ee(0x339)];}[_0x4f02e5(0x473)](){const _0x482d5a=_0x4f02e5;throw Error(_0x482d5a(0x24c));}['appendMutation'](_0x17943b){const _0x3882b8=_0x4f02e5;return this[_0x3882b8(0x2de)][_0x3882b8(0x2c4)](_0x17943b),this;}['onRemoteChangeset'](_0x2cdbb5){const _0x5c98ea=_0x4f02e5;return this['_queuedRemoteChangesets'][_0x5c98ea(0x2c4)](_0x2cdbb5),this;}['onRemoteAck'](_0x2238f8){const _0x422ca4=_0x4f02e5;if(this['_awaitingChangeset']){let _0x3a5488=this[_0x422ca4(0x37a)]();return _0x2238f8[_0x422ca4(0x36e)]<=_0x3a5488||(_0x3a5488+0x1===_0x2238f8[_0x422ca4(0x36e)]?(this[_0x422ca4(0x2e4)](),this[_0x422ca4(0x429)]=null,this['_acknowledgedAwaitingRevision']=null):this['_acknowledgedAwaitingRevision']=_0x2238f8['revision']),this;}if(_0x2238f8['revision']<=this[_0x422ca4(0x37a)]())return this;throw Error(_0x422ca4(0x406));}[_0x4f02e5(0x2ed)](_0xc327e4){const _0x2f88aa=_0x4f02e5;return this[_0x2f88aa(0x551)](!!(_0xc327e4!=null&&_0xc327e4['isPermissionRej']));}[_0x4f02e5(0x4ed)](){return this;}[_0x4f02e5(0x2a8)](){const _0x19813b=_0x4f02e5;return this[_0x19813b(0x22d)][_0x19813b(0x433)](_0x5aca18,this[_0x19813b(0x317)],this['type'],this[_0x19813b(0x429)],this['_pendingMutations'],this[_0x19813b(0x222)]);}[_0x4f02e5(0x3dc)](){return this;}[_0x4f02e5(0x551)](_0x13aae2){const _0x485195=_0x4f02e5;return this[_0x485195(0x22d)][_0x485195(0x433)](_0x41164a,this[_0x485195(0x317)],this[_0x485195(0x4d6)],this['_awaitingChangeset'],this[_0x485195(0x2de)],this[_0x485195(0x222)],_0x13aae2);}};_0x52059d=_0x411a83([_0x2f2fb0(0x7,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c['Injector'])),_0x2f2fb0(0x8,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xdffdbc[_0x4f02e5(0x373)])),_0x2f2fb0(0x9,_0x5d4a9c['ILogService']),_0x2f2fb0(0xa,_0x5d4a9c[_0x4f02e5(0x4f9)]),_0x2f2fb0(0xb,_0x5d4a9c[_0x4f02e5(0x314)]),_0x2f2fb0(0xc,_0xdffdbc['ITransformService']),_0x2f2fb0(0xd,(0x0,_0x5d4a9c['Optional'])(_0x207b84))],_0x52059d);function _0x316ff4(_0x43879e,_0x5e6060,_0x347832,_0x112722,_0x236284,_0x3e9c88){const _0x45232e=_0x4f02e5;return _0x112722&&_0x236284[_0x45232e(0x48e)]?_0x43879e[_0x45232e(0x433)](_0x384168,_0x5e6060,_0x347832,_0x112722,_0x236284,_0x3e9c88,void 0x0):_0x112722?_0x43879e[_0x45232e(0x433)](_0xd8acb7,_0x5e6060,_0x347832,_0x112722,_0x3e9c88):_0x236284[_0x45232e(0x48e)]?_0x43879e['createInstance'](_0x5c7573,_0x5e6060,_0x347832,_0x236284,_0x3e9c88):_0x43879e[_0x45232e(0x433)](_0x1707ff,_0x5e6060,_0x347832,_0x3e9c88);}let _0x4a42ea=class extends _0x5d4a9c[_0x4f02e5(0x3c6)]{get['state'](){const _0x4af4f7=_0x4f02e5;return this[_0x4af4f7(0x453)];}constructor(_0x22c195,_0x562ccb,_0x1953f7,_0x31a077,_0x37935a,_0x24ae1d,_0x48f1e4,_0x682596,_0x44983d,_0x1538f9,_0x3569d3,_0x22ab44,_0x36e9ad,_0x2f27ac){const _0x701268=_0x4f02e5;super(),this[_0x701268(0x317)]=_0x22c195,this[_0x701268(0x37c)]=_0x562ccb,this[_0x701268(0x439)]=_0x1953f7,this['_injector']=_0x31a077,this[_0x701268(0x2dd)]=_0x37935a,this[_0x701268(0x46e)]=_0x24ae1d,this[_0x701268(0x36d)]=_0x48f1e4,this['_eventService']=_0x682596,this[_0x701268(0x2e1)]=_0x44983d,this[_0x701268(0x431)]=_0x1538f9,this[_0x701268(0x413)]=_0x3569d3,this[_0x701268(0x320)]=_0x22ab44,this[_0x701268(0x507)]=_0x36e9ad,this[_0x701268(0x4e1)]=_0x2f27ac,_0xef01a1(this,'_state$',new _0x1090a1[(_0x701268(0x22c))](null)),_0xef01a1(this,_0x701268(0x47f),this['_state$']['asObservable']()),_0xef01a1(this,_0x701268(0x453),void 0x0),_0xef01a1(this,_0x701268(0x2cd),!0x1),_0xef01a1(this,'_changesetSessionId',''),_0xef01a1(this,'_changesetReqId',0x0),_0xef01a1(this,'status$',this['state$'][_0x701268(0x456)]((0x0,_0x1090a1[_0x701268(0x2a0)])(_0x4e7d1b=>_0x4e7d1b?_0x4e7d1b['status']:_0x701268(0x2d7)),(0x0,_0x1090a1[_0x701268(0x306)])({'bufferSize':0x1,'refCount':!0x0}))),_0xef01a1(this,_0x701268(0x4f3),!0x1),_0xef01a1(this,'_remoteChangesetQueue',[]);}async[_0x4f02e5(0x299)](){const _0x4f0c85=_0x4f02e5;if(this[_0x4f0c85(0x502)])throw Error(_0x4f0c85(0x416));await this[_0x4f0c85(0x228)]();}[_0x4f02e5(0x496)](){const _0xcbb0c4=_0x4f02e5;return this[_0xcbb0c4(0x2cd)]=!0x0,(0x0,_0x5d4a9c[_0xcbb0c4(0x31a)])(()=>{const _0x3b5cd3=_0xcbb0c4;this[_0x3b5cd3(0x2cd)]=!0x1,this[_0x3b5cd3(0x39c)]();});}[_0x4f02e5(0x358)](_0x545298){const _0x538042=_0x4f02e5;this[_0x538042(0x41f)](_0x545298);}[_0x4f02e5(0x224)](_0x125c3c){const _0x384008=_0x4f02e5;this[_0x384008(0x453)]=_0x125c3c,this[_0x384008(0x513)][_0x384008(0x31e)](_0x125c3c);}async[_0x4f02e5(0x228)](){const _0x5439a6=_0x4f02e5;if(this[_0x5439a6(0x224)](await this[_0x5439a6(0x2eb)]()),this[_0x5439a6(0x507)]){var _0x675bf1;(_0x675bf1=this[_0x5439a6(0x507)])==null||_0x675bf1[_0x5439a6(0x541)](this[_0x5439a6(0x317)]),this[_0x5439a6(0x38e)](this[_0x5439a6(0x507)][_0x5439a6(0x3ec)](this[_0x5439a6(0x317)])[_0x5439a6(0x2b6)](_0x2004f4=>{const _0x1fa2bf=_0x5439a6;this[_0x1fa2bf(0x431)][_0x1fa2bf(0x2bc)](_0x1fa2bf(0x514),_0x1fa2bf(0x493),_0x2004f4),_0x2004f4===0x1?(this[_0x1fa2bf(0x4f6)][_0x1fa2bf(0x216)]({'id':'OTHER_CLIENT_EDITING'}),this[_0x1fa2bf(0x320)][_0x1fa2bf(0x512)](new _0x35e648[(_0x1fa2bf(0x52d))](this['unitID'])['id'],!0x1),this[_0x1fa2bf(0x320)][_0x1fa2bf(0x40d)](!0x1)):(this[_0x1fa2bf(0x320)][_0x1fa2bf(0x512)](new _0x35e648[(_0x1fa2bf(0x52d))](this[_0x1fa2bf(0x317)])['id'],!0x0),this[_0x1fa2bf(0x320)][_0x1fa2bf(0x40d)](!0x0));}));}let _0x273b52=!0x1;return this[_0x5439a6(0x38e)](this[_0x5439a6(0x37c)][_0x5439a6(0x4d2)][_0x5439a6(0x2b6)](_0x21810a=>{_0x21810a===0x3?this['_toggleOnline'](_0x273b52):_0x21810a===0x2&&(_0x273b52=!0x0,this['_toggleOffline']());})),this[_0x5439a6(0x38e)](this[_0x5439a6(0x37c)][_0x5439a6(0x49b)]['subscribe'](_0x5bbcfb=>{const _0x5a834=_0x5439a6;try{switch(_0x5bbcfb[_0x5a834(0x3eb)]){case _0xdffdbc[_0x5a834(0x282)][_0x5a834(0x1f9)]:this[_0x5a834(0x497)]((0x0,_0xdffdbc[_0x5a834(0x41a)])(_0x5bbcfb[_0x5a834(0x29a)]));break;case _0xdffdbc[_0x5a834(0x282)][_0x5a834(0x1fb)]:this[_0x5a834(0x430)](_0x5bbcfb[_0x5a834(0x29a)]);break;case _0xdffdbc[_0x5a834(0x282)][_0x5a834(0x395)]:this[_0x5a834(0x2af)]();break;case _0xdffdbc[_0x5a834(0x282)]['CHANGESET_SHOULD_RETRY']:this[_0x5a834(0x276)](_0x5bbcfb['data']);break;case _0xdffdbc['CollaborationEvent'][_0x5a834(0x4c3)]:this['_onFetchMissResult'](_0x5bbcfb[_0x5a834(0x29a)][_0x5a834(0x38a)][_0x5a834(0x2a0)](_0x169ac2=>(0x0,_0xdffdbc[_0x5a834(0x41a)])(_0x169ac2)));break;case _0xdffdbc[_0x5a834(0x282)]['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0xdffdbc[_0x5a834(0x282)][_0x5a834(0x271)]:break;}}catch(_0x4a5e2e){throw console[_0x5a834(0x363)](_0x5a834(0x3a0),_0x4a5e2e),_0x4a5e2e;}})),this[_0x5439a6(0x453)];}[_0x4f02e5(0x4f5)](){this['_transitionLocked']=!0x1;}[_0x4f02e5(0x369)](){const _0x6a9489=_0x4f02e5;if(this[_0x6a9489(0x4f3)])throw Error(_0x6a9489(0x2f9));this['_transitionLocked']=!0x0;}[_0x4f02e5(0x41f)](_0x322939){const _0x1cce60=_0x4f02e5;this[_0x1cce60(0x369)](),this[_0x1cce60(0x224)](this[_0x1cce60(0x453)]['appendMutation'](_0x322939)),this[_0x1cce60(0x4f5)]();}[_0x4f02e5(0x497)](_0x33dc37){const _0x1e9190=_0x4f02e5;if(!(_0x33dc37[_0x1e9190(0x36e)]<=this['_revisionService']['getCurrentRevOfUnit'](this['unitID']))){if(this['_collaborationPaused']){this['_remoteChangesetQueue'][_0x1e9190(0x2c4)](_0x33dc37);return;}this[_0x1e9190(0x21a)](_0x33dc37);}}['_exhaustRemoteChangesetQueue'](){const _0x3b109d=_0x4f02e5;this[_0x3b109d(0x4c2)][_0x3b109d(0x217)](_0x5e450=>this[_0x3b109d(0x21a)](_0x5e450)),this[_0x3b109d(0x4c2)]=[];}[_0x4f02e5(0x21a)](_0x93a214){const _0x59155f=_0x4f02e5;let _0x2e0c97=this[_0x59155f(0x2dd)]['interceptor'][_0x59155f(0x31f)](this['_compressMutationService'][_0x59155f(0x20f)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x93a214[_0x59155f(0x371)],null)||_0x93a214[_0x59155f(0x371)],_0x5ecf93={..._0x93a214,'mutations':_0x2e0c97};this['_lockTransition'](),this[_0x59155f(0x224)](this[_0x59155f(0x453)][_0x59155f(0x2fd)](_0x5ecf93)),this[_0x59155f(0x4f5)]();}[_0x4f02e5(0x430)](_0x3f0604){const _0x502682=_0x4f02e5;this[_0x502682(0x369)](),this['_updateState'](this['_state'][_0x502682(0x525)](_0x3f0604)),this[_0x502682(0x4f5)]();}[_0x4f02e5(0x2af)](_0x3492c6){const _0x3d3113=_0x4f02e5;this['_lockTransition'](),this[_0x3d3113(0x224)](this[_0x3d3113(0x453)][_0x3d3113(0x2ed)](_0x3492c6)),this['_unlockTransition']();}[_0x4f02e5(0x276)](_0x506503){const _0x4b07f7=_0x4f02e5;this[_0x4b07f7(0x369)](),this[_0x4b07f7(0x224)](this[_0x4b07f7(0x453)][_0x4b07f7(0x4ed)](_0x506503)),this[_0x4b07f7(0x4f5)]();}[_0x4f02e5(0x392)](_0xb149eb){const _0xdb63b8=_0x4f02e5;if(!(this[_0xdb63b8(0x453)]instanceof _0x52059d))throw TypeError(_0xdb63b8(0x23a));let _0x459635=_0xb149eb['map'](_0x19c7fb=>{const _0x5acd08=_0xdb63b8;let _0x4110c8=this[_0x5acd08(0x2dd)][_0x5acd08(0x20f)][_0x5acd08(0x31f)](this['_compressMutationService']['interceptor'][_0x5acd08(0x552)]()[_0x5acd08(0x252)])(_0x19c7fb['mutations'],null)||_0x19c7fb[_0x5acd08(0x371)];return{..._0x19c7fb,'mutations':_0x4110c8};});this[_0xdb63b8(0x369)](),this[_0xdb63b8(0x224)](this['_state'][_0xdb63b8(0x2f0)](_0x459635)),this[_0xdb63b8(0x4f5)]();}[_0x4f02e5(0x52c)](){const _0x505269=_0x4f02e5;this[_0x505269(0x369)](),this[_0x505269(0x224)](this[_0x505269(0x453)]['toggleOffline']()),this[_0x505269(0x4f5)]();}[_0x4f02e5(0x300)](_0x43fd3c=!0x1){const _0x41ed5a=_0x4f02e5;this[_0x41ed5a(0x369)](),this[_0x41ed5a(0x224)](this[_0x41ed5a(0x453)][_0x41ed5a(0x3dc)]()),this[_0x41ed5a(0x4f5)]();let _0x281a55=this[_0x41ed5a(0x453)];_0x43fd3c&&_0x281a55 instanceof _0x1707ff&&(this['_lockTransition'](),this[_0x41ed5a(0x224)](_0x281a55[_0x41ed5a(0x330)]()),this[_0x41ed5a(0x4f5)]());}async[_0x4f02e5(0x2eb)](){return new Promise(_0xebd57d=>{const _0x47ac4f=_0x429f;this['session'][_0x47ac4f(0x4d2)]['pipe']((0x0,_0x1090a1['take'])(0x1))[_0x47ac4f(0x2b6)](async _0x2dbf86=>{_0xebd57d(await this['_createInitialStateImpl'](_0x2dbf86===0x3));});});}[_0x4f02e5(0x42b)](){let _0x2f1c33=this['unitID'];return{'onStateChange':(_0x11c76f,_0x472014)=>{const _0x2ed6dc=_0x429f;if(_0x11c76f!==this['_state'])throw Error(_0x2ed6dc(0x214)+_0x11c76f[_0x2ed6dc(0x488)]+_0x2ed6dc(0x2cb)+_0x472014[_0x2ed6dc(0x488)]+_0x2ed6dc(0x25f)+this[_0x2ed6dc(0x453)]['status']);this['_updateState'](_0x472014);},'onSendChangeset':_0x55c8b7=>{const _0x106a07=_0x429f;_0x55c8b7[_0x106a07(0x2a2)]||(_0x55c8b7['sid']=this[_0x106a07(0x203)],_0x55c8b7[_0x106a07(0x339)]=++this[_0x106a07(0x2c7)]);let _0x10403e={'eventID':_0xdffdbc[_0x106a07(0x282)][_0x106a07(0x4ee)],'data':{'unitID':_0x55c8b7[_0x106a07(0x317)],'unitType':this[_0x106a07(0x439)],'changeset':_0x55c8b7,'memberID':this[_0x106a07(0x37c)]['getMemberID']()}};this[_0x106a07(0x37c)][_0x106a07(0x255)](_0x10403e,this[_0x106a07(0x317)]);},'onMissingChangesets':({from:_0x3d29c9,to:_0x323166})=>{const _0xd524ba=_0x429f;this[_0xd524ba(0x431)][_0xd524ba(0x2bc)](_0xd524ba(0x514),_0xd524ba(0x325)+_0x3d29c9+'\x20to\x20'+_0x323166);let _0x39a25b={'eventID':_0xdffdbc[_0xd524ba(0x282)][_0xd524ba(0x1f4)],'data':{'unitID':_0x2f1c33,'unitType':this[_0xd524ba(0x439)],'from':_0x3d29c9,'to':_0x323166}};this[_0xd524ba(0x37c)]['send'](_0x39a25b,this['unitID']);}};}async[_0x4f02e5(0x4d1)](_0x5e9cf9){const _0x59c4de=_0x4f02e5;var _0x527aed,_0x2cdfba,_0x19bab7;let _0x54b392=await((_0x527aed=this['_localCacheService'])==null?void 0x0:_0x527aed[_0x59c4de(0x390)](this['unitID'])),_0x12a7d9=(_0x2cdfba=_0x54b392==null?void 0x0:_0x54b392[_0x59c4de(0x371)])==null?[]:_0x2cdfba,_0x17929b=(_0x19bab7=_0x54b392==null?void 0x0:_0x54b392[_0x59c4de(0x258)])==null?null:_0x19bab7,_0x46497f=!!(_0x17929b!=null&&_0x17929b[_0x59c4de(0x2a2)])&&!!(_0x17929b!=null&&_0x17929b[_0x59c4de(0x339)]);this[_0x59c4de(0x203)]=_0x46497f?_0x17929b[_0x59c4de(0x2a2)]:(0x0,_0xdffdbc[_0x59c4de(0x30c)])(),this[_0x59c4de(0x2c7)]=_0x46497f?_0x17929b[_0x59c4de(0x339)]:0x0;let _0x5441e8=this[_0x59c4de(0x317)];try{this[_0x59c4de(0x4b4)](_0x17929b,_0x12a7d9);}catch(_0x5cd404){this[_0x59c4de(0x431)][_0x59c4de(0x363)](_0x5cd404);}let _0x154968=this[_0x59c4de(0x42b)]();if(_0x5e9cf9){let _0x21936e=_0x316ff4(this[_0x59c4de(0x22d)],_0x5441e8,this[_0x59c4de(0x439)],_0x17929b,_0x12a7d9,_0x154968);return _0x21936e instanceof _0x5c7573?_0x21936e[_0x59c4de(0x2c1)]():(_0x21936e instanceof _0x384168||_0x21936e instanceof _0xd8acb7)&&_0x21936e['resend'](),_0x21936e;}return this[_0x59c4de(0x22d)][_0x59c4de(0x433)](_0x5aca18,_0x5441e8,this[_0x59c4de(0x439)],_0x17929b,_0x12a7d9,_0x154968);}[_0x4f02e5(0x4b4)](_0x191088,_0xee92ba){const _0x42ff12=_0x4f02e5;var _0x25464d,_0x210a01;let _0x272300=this[_0x42ff12(0x2dd)][_0x42ff12(0x20f)][_0x42ff12(0x31f)](this[_0x42ff12(0x2dd)]['interceptor'][_0x42ff12(0x552)]()[_0x42ff12(0x252)]);(_0x25464d=_0x272300((_0x191088==null?void 0x0:_0x191088['mutations'])||[],null))==null||_0x25464d['forEach'](_0x1a9b13=>this[_0x42ff12(0x413)][_0x42ff12(0x32f)](_0x1a9b13['id'],_0x1a9b13[_0x42ff12(0x3c4)])),(_0x210a01=_0x272300(_0xee92ba||[],null))==null||_0x210a01[_0x42ff12(0x217)](_0x94a0d2=>this[_0x42ff12(0x413)][_0x42ff12(0x32f)](_0x94a0d2['id'],_0x94a0d2[_0x42ff12(0x3c4)]));}};_0x4a42ea=_0x411a83([_0x2f2fb0(0x3,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c[_0x4f02e5(0x33d)])),_0x2f2fb0(0x4,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xdffdbc[_0x4f02e5(0x4a5)])),_0x2f2fb0(0x5,(0x0,_0x5d4a9c['Inject'])(_0x5d4a9c['LocaleService'])),_0x2f2fb0(0x6,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xdffdbc[_0x4f02e5(0x373)])),_0x2f2fb0(0x7,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xaaa1eb)),_0x2f2fb0(0x8,_0x5d4a9c['IUniverInstanceService']),_0x2f2fb0(0x9,_0x5d4a9c[_0x4f02e5(0x33a)]),_0x2f2fb0(0xa,_0x5d4a9c[_0x4f02e5(0x4f9)]),_0x2f2fb0(0xb,_0x5d4a9c[_0x4f02e5(0x4e6)]),_0x2f2fb0(0xc,(0x0,_0x5d4a9c['Optional'])(_0x2bf173)),_0x2f2fb0(0xd,(0x0,_0x5d4a9c[_0x4f02e5(0x251)])(_0x207b84))],_0x4a42ea);let _0x421885=class extends _0x4a42ea{constructor(_0x3cef03,_0x47129c,_0xd60911,_0x51d17b,_0x4c29c8,_0x417306,_0x341ae,_0xf4a466,_0x37ac77,_0x168873,_0xd5dbfd,_0x34d39b,_0xb9f897,_0x1dc2f7,_0x50b2f2){const _0x11b87f=_0x4f02e5;super(_0x3cef03,_0xd60911,_0x47129c,_0x51d17b,_0x4c29c8,_0x417306,_0x341ae,_0xf4a466,_0x37ac77,_0x168873,_0xd5dbfd,_0x34d39b,_0x1dc2f7,_0x50b2f2),this[_0x11b87f(0x317)]=_0x3cef03,this[_0x11b87f(0x4d6)]=_0x47129c,this['_docStateChangeManagerService']=_0xb9f897,_0xef01a1(this,'_handlerCallback',null);}[_0x4f02e5(0x536)](_0x160b8c){this['_handlerCallback']=_0x160b8c;}[_0x4f02e5(0x378)](){const _0xf7f0a8=_0x4f02e5;this[_0xf7f0a8(0x411)]=null,super[_0xf7f0a8(0x378)]();}[_0x4f02e5(0x42b)](){const _0x1c9d94=_0x4f02e5;let _0x3d01bb=super[_0x1c9d94(0x42b)]();return _0x3d01bb['onTransformIME']=_0x1cec2e=>{const _0x25ac4f=_0x1c9d94;var _0xd802be,_0x3bce46;return(_0xd802be=this['_handlerCallback'])==null||(_0x3bce46=_0xd802be['onTransformIME'])==null?void 0x0:_0x3bce46[_0x25ac4f(0x295)](_0xd802be,_0x1cec2e);},_0x3d01bb[_0x1c9d94(0x424)]=_0x87a099=>{const _0x114a9d=_0x1c9d94;var _0x202470,_0x171f40;return(_0x202470=this[_0x114a9d(0x411)])==null||(_0x171f40=_0x202470[_0x114a9d(0x424)])==null?void 0x0:_0x171f40[_0x114a9d(0x295)](_0x202470,_0x87a099);},_0x3d01bb['onTransformSelections']=_0xed89b5=>{const _0x57f026=_0x1c9d94;var _0x2f5546,_0x3cba30;return(_0x2f5546=this['_handlerCallback'])==null||(_0x3cba30=_0x2f5546[_0x57f026(0x291)])==null?void 0x0:_0x3cba30['call'](_0x2f5546,_0xed89b5);},_0x3d01bb[_0x1c9d94(0x4fc)]=_0x1a3bc9=>{const _0x209f99=_0x1c9d94;var _0x23b2dc,_0x4d9768;return(_0x23b2dc=this['_handlerCallback'])==null||(_0x4d9768=_0x23b2dc[_0x209f99(0x4fc)])==null?void 0x0:_0x4d9768[_0x209f99(0x295)](_0x23b2dc,_0x1a3bc9);},_0x3d01bb[_0x1c9d94(0x293)]=_0xadda55=>{const _0x407bff=_0x1c9d94;var _0x40fbe2,_0x5cc2b4,_0x3fc0e4;return(_0x40fbe2=(_0x5cc2b4=this[_0x407bff(0x411)])==null||(_0x3fc0e4=_0x5cc2b4[_0x407bff(0x293)])==null?void 0x0:_0x3fc0e4[_0x407bff(0x295)](_0x5cc2b4,_0xadda55))==null?_0xadda55:_0x40fbe2;},_0x3d01bb[_0x1c9d94(0x347)]=_0x514a92=>{const _0x54f72f=_0x1c9d94;var _0x3b2b89,_0x536d5a,_0x1b3996;return(_0x3b2b89=(_0x536d5a=this[_0x54f72f(0x411)])==null||(_0x1b3996=_0x536d5a[_0x54f72f(0x347)])==null?void 0x0:_0x1b3996[_0x54f72f(0x295)](_0x536d5a,_0x514a92))==null?_0x514a92:_0x3b2b89;},_0x3d01bb;}async[_0x4f02e5(0x228)](){const _0xd27e8=_0x4f02e5;if(this[_0xd27e8(0x218)]==null)throw Error(_0xd27e8(0x45f));let _0x25ceb4=await super['_init']();return this['disposeWithMe'](this[_0xd27e8(0x218)][_0xd27e8(0x225)][_0xd27e8(0x2b6)](_0x22f9fc=>{const _0x5d2b9a=_0xd27e8;if(_0x22f9fc==null||_0x22f9fc[_0x5d2b9a(0x277)]!==this[_0x5d2b9a(0x317)])return;let {commandId:_0x6f9303,redoState:_0x14cc76,unitId:_0x3ab2b7}=_0x22f9fc,_0x380e78={'id':_0x6f9303,'type':_0x5d4a9c[_0x5d2b9a(0x504)][_0x5d2b9a(0x494)],'params':{'unitId':_0x3ab2b7,'actions':_0x14cc76[_0x5d2b9a(0x21f)],'textRanges':null}};this[_0x5d2b9a(0x41f)](_0x380e78);})),this[_0xd27e8(0x38e)](this[_0xd27e8(0x413)][_0xd27e8(0x32c)]((_0x16acf3,_0x4fcb75)=>{const _0xefff88=_0xd27e8;if(_0x16acf3['type']!==_0x5d4a9c[_0xefff88(0x504)][_0xefff88(0x494)]||_0x4fcb75!=null&&_0x4fcb75[_0xefff88(0x519)]||_0x4fcb75!=null&&_0x4fcb75['onlyLocal']||_0x16acf3['id']===_0x2d7ee3[_0xefff88(0x2f8)]['id'])return;let _0x1ea892=_0x16acf3[_0xefff88(0x3c4)];if((_0x1ea892==null?void 0x0:_0x1ea892[_0xefff88(0x277)])!==this[_0xefff88(0x317)])return;let _0x59b82e=_0x16acf3,_0x2ab705=this['_compressMutationService'][_0xefff88(0x20f)][_0xefff88(0x31f)](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0xefff88(0x2c2)])([_0x59b82e],this[_0xefff88(0x2e1)])||[_0x59b82e];this[_0xefff88(0x41f)](_0x2ab705[0x0]);})),_0x25ceb4;}};_0x421885=_0x411a83([_0x2f2fb0(0x3,(0x0,_0x5d4a9c['Inject'])(_0x5d4a9c[_0x4f02e5(0x33d)])),_0x2f2fb0(0x4,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xdffdbc['CompressMutationService'])),_0x2f2fb0(0x5,(0x0,_0x5d4a9c['Inject'])(_0x5d4a9c[_0x4f02e5(0x387)])),_0x2f2fb0(0x6,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xdffdbc[_0x4f02e5(0x373)])),_0x2f2fb0(0x7,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xaaa1eb)),_0x2f2fb0(0x8,_0x5d4a9c[_0x4f02e5(0x3f3)]),_0x2f2fb0(0x9,_0x5d4a9c[_0x4f02e5(0x33a)]),_0x2f2fb0(0xa,_0x5d4a9c[_0x4f02e5(0x4f9)]),_0x2f2fb0(0xb,_0x5d4a9c[_0x4f02e5(0x4e6)]),_0x2f2fb0(0xc,(0x0,_0x5d4a9c[_0x4f02e5(0x251)])(_0x2d7ee3[_0x4f02e5(0x2ad)])),_0x2f2fb0(0xd,(0x0,_0x5d4a9c[_0x4f02e5(0x251)])(_0x2bf173)),_0x2f2fb0(0xe,(0x0,_0x5d4a9c[_0x4f02e5(0x251)])(_0x207b84))],_0x421885);let _0x4dd63d=class extends _0x4a42ea{constructor(_0x404b56,_0x5e080a,_0xdbcc4d,_0x11005f,_0x49b8c0,_0x5c54c1,_0x2a6d6b,_0x163455,_0x67ed86,_0x2c86e1,_0x1a2963,_0x4caee3,_0x566266,_0x3d2c42){const _0x22dd33=_0x4f02e5;super(_0x404b56,_0xdbcc4d,_0x5e080a,_0x11005f,_0x49b8c0,_0x5c54c1,_0x2a6d6b,_0x163455,_0x67ed86,_0x2c86e1,_0x1a2963,_0x4caee3,_0x566266,_0x3d2c42),this['unitID']=_0x404b56,this[_0x22dd33(0x4d6)]=_0x5e080a;}async[_0x4f02e5(0x228)](){const _0x4af902=_0x4f02e5;let _0x31f026=await super[_0x4af902(0x228)]();return this[_0x4af902(0x38e)](this['_commandService']['onMutationExecutedForCollab']((_0x1e5ddf,_0x181a87)=>{const _0x598c5f=_0x4af902;if(_0x1e5ddf[_0x598c5f(0x4d6)]!==_0x5d4a9c[_0x598c5f(0x504)][_0x598c5f(0x494)]||_0x181a87!=null&&_0x181a87[_0x598c5f(0x519)]||_0x181a87!=null&&_0x181a87[_0x598c5f(0x425)])return;let _0x47f623=_0x1e5ddf[_0x598c5f(0x3c4)];if((_0x47f623==null?void 0x0:_0x47f623[_0x598c5f(0x277)])!==this[_0x598c5f(0x317)])return;let _0x2d96fc=_0x1e5ddf,_0x2d4537=this[_0x598c5f(0x2dd)][_0x598c5f(0x20f)][_0x598c5f(0x31f)](this[_0x598c5f(0x2dd)]['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x2d96fc],this[_0x598c5f(0x2e1)])||[_0x2d96fc];this['_onLocalMutation'](_0x2d4537[0x0]);})),_0x31f026;}};_0x4dd63d=_0x411a83([_0x2f2fb0(0x3,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c['Injector'])),_0x2f2fb0(0x4,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xdffdbc[_0x4f02e5(0x4a5)])),_0x2f2fb0(0x5,(0x0,_0x5d4a9c['Inject'])(_0x5d4a9c[_0x4f02e5(0x387)])),_0x2f2fb0(0x6,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xdffdbc[_0x4f02e5(0x373)])),_0x2f2fb0(0x7,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xaaa1eb)),_0x2f2fb0(0x8,_0x5d4a9c[_0x4f02e5(0x3f3)]),_0x2f2fb0(0x9,_0x5d4a9c[_0x4f02e5(0x33a)]),_0x2f2fb0(0xa,_0x5d4a9c[_0x4f02e5(0x4f9)]),_0x2f2fb0(0xb,_0x5d4a9c[_0x4f02e5(0x4e6)]),_0x2f2fb0(0xc,(0x0,_0x5d4a9c[_0x4f02e5(0x251)])(_0x2bf173)),_0x2f2fb0(0xd,(0x0,_0x5d4a9c['Optional'])(_0x207b84))],_0x4dd63d);let _0x1f94eb=class extends _0x4a42ea{constructor(_0x40673c,_0x2c4121,_0x2216a1,_0x1f009f,_0x37bda8,_0x2250d5,_0x253869,_0x3301da,_0x31df52,_0x37af27,_0x584758,_0x22080f,_0x52006b,_0x1d792d,_0x4dd160){const _0x15e9dd=_0x4f02e5;super(_0x40673c,_0x2216a1,_0x2c4121,_0x1f009f,_0x37bda8,_0x2250d5,_0x253869,_0x31df52,_0x37af27,_0x584758,_0x22080f,_0x52006b,_0x1d792d,_0x4dd160),this[_0x15e9dd(0x317)]=_0x40673c,this[_0x15e9dd(0x4d6)]=_0x2c4121,this[_0x15e9dd(0x2ff)]=_0x3301da;}[_0x4f02e5(0x42b)](){const _0x38cf86=_0x4f02e5;let _0x4e4059=super[_0x38cf86(0x42b)]();return _0x4e4059[_0x38cf86(0x291)]=_0x1774e2=>this['_sheetTransformSelectionsService'][_0x38cf86(0x284)](_0x1774e2),_0x4e4059;}async['_init'](){const _0x248364=_0x4f02e5;let _0x4c4e56=await super['_init']();return this[_0x248364(0x38e)](this[_0x248364(0x413)][_0x248364(0x32c)]((_0x3a5171,_0x5ba147)=>{const _0x2d077d=_0x248364;if(_0x3a5171[_0x2d077d(0x4d6)]!==_0x5d4a9c[_0x2d077d(0x504)][_0x2d077d(0x494)]||_0x5ba147!=null&&_0x5ba147['fromCollab']||_0x5ba147!=null&&_0x5ba147[_0x2d077d(0x425)])return;let _0x255baf=_0x3a5171[_0x2d077d(0x3c4)];if((_0x255baf==null?void 0x0:_0x255baf['unitId'])!==this[_0x2d077d(0x317)])return;let _0x56f599=_0x3a5171,_0xd265af=this[_0x2d077d(0x2dd)]['interceptor']['fetchThroughInterceptors'](this[_0x2d077d(0x2dd)][_0x2d077d(0x20f)][_0x2d077d(0x552)]()[_0x2d077d(0x2c2)])([_0x56f599],this[_0x2d077d(0x2e1)])||[_0x56f599];this[_0x2d077d(0x41f)](_0xd265af[0x0]);})),_0x4c4e56;}};_0x1f94eb=_0x411a83([_0x2f2fb0(0x3,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c[_0x4f02e5(0x33d)])),_0x2f2fb0(0x4,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xdffdbc['CompressMutationService'])),_0x2f2fb0(0x5,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c[_0x4f02e5(0x387)])),_0x2f2fb0(0x6,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xdffdbc[_0x4f02e5(0x373)])),_0x2f2fb0(0x7,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x1af5bb)),_0x2f2fb0(0x8,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xaaa1eb)),_0x2f2fb0(0x9,_0x5d4a9c[_0x4f02e5(0x3f3)]),_0x2f2fb0(0xa,_0x5d4a9c[_0x4f02e5(0x33a)]),_0x2f2fb0(0xb,_0x5d4a9c[_0x4f02e5(0x4f9)]),_0x2f2fb0(0xc,_0x5d4a9c[_0x4f02e5(0x4e6)]),_0x2f2fb0(0xd,(0x0,_0x5d4a9c[_0x4f02e5(0x251)])(_0x2bf173)),_0x2f2fb0(0xe,(0x0,_0x5d4a9c['Optional'])(_0x207b84))],_0x1f94eb);let _0xc056a2=class extends _0x4a42ea{constructor(_0x1f2016,_0x3ae8e9,_0x538b40,_0xf2052e,_0x444b60,_0x3d956c,_0x5b1248,_0x233163,_0x2ba80d,_0x51b09e,_0x51d0af,_0x7c7753,_0x2c85b3,_0x2491fa){super(_0x1f2016,_0x538b40,_0x3ae8e9,_0xf2052e,_0x444b60,_0x3d956c,_0x5b1248,_0x233163,_0x2ba80d,_0x51b09e,_0x51d0af,_0x7c7753,_0x2c85b3,_0x2491fa),this['unitID']=_0x1f2016,this['type']=_0x3ae8e9;}async['_init'](){const _0x53199b=_0x4f02e5;let _0x18e339=await super[_0x53199b(0x228)]();return this[_0x53199b(0x38e)](this[_0x53199b(0x413)][_0x53199b(0x32c)]((_0x2ddcc1,_0x499a90)=>{const _0x1d65c6=_0x53199b;if(_0x2ddcc1['type']!==_0x5d4a9c[_0x1d65c6(0x504)][_0x1d65c6(0x494)]||_0x499a90!=null&&_0x499a90[_0x1d65c6(0x519)]||_0x499a90!=null&&_0x499a90[_0x1d65c6(0x425)])return;let _0x328bab=_0x2ddcc1[_0x1d65c6(0x3c4)];if((_0x328bab==null?void 0x0:_0x328bab[_0x1d65c6(0x277)])!==this[_0x1d65c6(0x317)])return;let _0x4148c4=_0x2ddcc1,_0x4d6004=this[_0x1d65c6(0x2dd)][_0x1d65c6(0x20f)][_0x1d65c6(0x31f)](this[_0x1d65c6(0x2dd)][_0x1d65c6(0x20f)]['getInterceptPoints']()[_0x1d65c6(0x2c2)])([_0x4148c4],this['_univerInstanceService'])||[_0x4148c4];this[_0x1d65c6(0x41f)](_0x4d6004[0x0]);})),_0x18e339;}};_0xc056a2=_0x411a83([_0x2f2fb0(0x3,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c[_0x4f02e5(0x33d)])),_0x2f2fb0(0x4,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xdffdbc[_0x4f02e5(0x4a5)])),_0x2f2fb0(0x5,(0x0,_0x5d4a9c['Inject'])(_0x5d4a9c['LocaleService'])),_0x2f2fb0(0x6,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xdffdbc[_0x4f02e5(0x373)])),_0x2f2fb0(0x7,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xaaa1eb)),_0x2f2fb0(0x8,_0x5d4a9c[_0x4f02e5(0x3f3)]),_0x2f2fb0(0x9,_0x5d4a9c[_0x4f02e5(0x33a)]),_0x2f2fb0(0xa,_0x5d4a9c[_0x4f02e5(0x4f9)]),_0x2f2fb0(0xb,_0x5d4a9c['IPermissionService']),_0x2f2fb0(0xc,(0x0,_0x5d4a9c[_0x4f02e5(0x251)])(_0x2bf173)),_0x2f2fb0(0xd,(0x0,_0x5d4a9c[_0x4f02e5(0x251)])(_0x207b84))],_0xc056a2);let _0x24d1d6=class extends _0x4a42ea{constructor(_0x2424c2,_0x36f614,_0x530444,_0x414c8,_0x22eb35,_0x301064,_0x2e5844,_0x2bc19d,_0x588aa7,_0x1c3559,_0x53041b,_0x4cd690,_0x5f3903,_0x3c2eb2){super(_0x2424c2,_0x530444,_0x36f614,_0x414c8,_0x22eb35,_0x301064,_0x2e5844,_0x2bc19d,_0x588aa7,_0x1c3559,_0x53041b,_0x4cd690,_0x5f3903,_0x3c2eb2),this['unitID']=_0x2424c2,this['type']=_0x36f614;}async[_0x4f02e5(0x228)](){const _0x875e38=_0x4f02e5;let _0x50e697=await super[_0x875e38(0x228)]();return this[_0x875e38(0x38e)](this['_commandService']['onMutationExecutedForCollab']((_0xf547ed,_0x4ea281)=>{const _0x31beeb=_0x875e38;if(_0xf547ed[_0x31beeb(0x4d6)]!==_0x5d4a9c[_0x31beeb(0x504)][_0x31beeb(0x494)]||_0x4ea281!=null&&_0x4ea281[_0x31beeb(0x519)]||_0x4ea281!=null&&_0x4ea281[_0x31beeb(0x425)])return;let _0x35e6e4=_0xf547ed[_0x31beeb(0x3c4)];if((_0x35e6e4==null?void 0x0:_0x35e6e4[_0x31beeb(0x277)])!==this[_0x31beeb(0x317)])return;let _0x1147db=_0xf547ed,_0x593857=this[_0x31beeb(0x2dd)][_0x31beeb(0x20f)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x31beeb(0x20f)][_0x31beeb(0x552)]()[_0x31beeb(0x2c2)])([_0x1147db],this[_0x31beeb(0x2e1)])||[_0x1147db];this[_0x31beeb(0x41f)](_0x593857[0x0]);})),_0x50e697;}};_0x24d1d6=_0x411a83([_0x2f2fb0(0x3,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c[_0x4f02e5(0x33d)])),_0x2f2fb0(0x4,(0x0,_0x5d4a9c['Inject'])(_0xdffdbc[_0x4f02e5(0x4a5)])),_0x2f2fb0(0x5,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c[_0x4f02e5(0x387)])),_0x2f2fb0(0x6,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xdffdbc['RevisionService'])),_0x2f2fb0(0x7,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xaaa1eb)),_0x2f2fb0(0x8,_0x5d4a9c[_0x4f02e5(0x3f3)]),_0x2f2fb0(0x9,_0x5d4a9c[_0x4f02e5(0x33a)]),_0x2f2fb0(0xa,_0x5d4a9c['ICommandService']),_0x2f2fb0(0xb,_0x5d4a9c['IPermissionService']),_0x2f2fb0(0xc,(0x0,_0x5d4a9c[_0x4f02e5(0x251)])(_0x2bf173)),_0x2f2fb0(0xd,(0x0,_0x5d4a9c['Optional'])(_0x207b84))],_0x24d1d6);let _0x3d71be=(0x0,_0x5d4a9c[_0x4f02e5(0x4e0)])(_0x4f02e5(0x215));function _0x5497e4(_0x5eb71d){const _0x5157ba=_0x4f02e5;let _0x262938=_0x5eb71d['data'],_0x2f7d6d=JSON[_0x5157ba(0x400)](_0x262938);switch(_0x2f7d6d['cmd']){case _0x2a2edc[_0x5157ba(0x4d3)][_0x5157ba(0x443)]:case _0x2a2edc['CombCmd']['HELLO']:{let _0x26ee22=_0x2f7d6d['infoRsp'];return{..._0x2f7d6d,'data':_0x26ee22,'cmd':_0x2f7d6d['cmd']};}case _0x2a2edc['CombCmd'][_0x5157ba(0x3aa)]:{let _0xed91d5=_0x2f7d6d[_0x5157ba(0x2d8)];return{..._0x2f7d6d,'data':_0xed91d5,'cmd':_0x2f7d6d[_0x5157ba(0x3a5)]};}case _0x2a2edc[_0x5157ba(0x4d3)][_0x5157ba(0x474)]:{let _0x1e31c2=_0x2f7d6d[_0x5157ba(0x328)];switch(_0x1e31c2[_0x5157ba(0x3eb)]){case _0xdffdbc['CollaborationEvent'][_0x5157ba(0x241)]:var _0x2b1636;return{..._0x2f7d6d,'data':{..._0x1e31c2,'data':(_0x2b1636=_0x1e31c2[_0x5157ba(0x4de)])==null?void 0x0:_0x2b1636['cs']},'cmd':_0x2f7d6d['cmd']};case _0xdffdbc['CollaborationEvent'][_0x5157ba(0x1fb)]:var _0x1ebde5;return{..._0x2f7d6d,'data':{..._0x1e31c2,'data':(_0x1ebde5=_0x1e31c2[_0x5157ba(0x370)])==null?void 0x0:_0x1ebde5['cs']},'cmd':_0x2f7d6d[_0x5157ba(0x3a5)]};case _0xdffdbc['CollaborationEvent'][_0x5157ba(0x1f9)]:var _0x47d16f;return{..._0x2f7d6d,'data':{..._0x1e31c2,'data':(_0x47d16f=_0x1e31c2[_0x5157ba(0x4b3)])==null?void 0x0:_0x47d16f['cs']},'cmd':_0x2f7d6d[_0x5157ba(0x3a5)]};case _0xdffdbc[_0x5157ba(0x282)][_0x5157ba(0x395)]:var _0x252205;return{..._0x2f7d6d,'data':{..._0x1e31c2,'data':(_0x252205=_0x1e31c2[_0x5157ba(0x26e)])==null?void 0x0:_0x252205['cs']},'cmd':_0x2f7d6d[_0x5157ba(0x3a5)]};case _0xdffdbc[_0x5157ba(0x282)][_0x5157ba(0x4b2)]:var _0x437ac3;return{..._0x2f7d6d,'data':{..._0x1e31c2,'data':(_0x437ac3=_0x1e31c2[_0x5157ba(0x307)])==null?void 0x0:_0x437ac3['cs']},'cmd':_0x2f7d6d['cmd']};case _0xdffdbc['CollaborationEvent']['UPDATE_CURSOR']:return{..._0x2f7d6d,'data':{..._0x1e31c2,'data':_0x1e31c2[_0x5157ba(0x414)]},'cmd':_0x2f7d6d['cmd']};case _0xdffdbc['CollaborationEvent'][_0x5157ba(0x2d2)]:return{..._0x2f7d6d,'data':{..._0x1e31c2,'data':_0x1e31c2[_0x5157ba(0x487)]},'cmd':_0x2f7d6d['cmd']};case _0xdffdbc['CollaborationEvent'][_0x5157ba(0x20b)]:return{..._0x2f7d6d,'data':{..._0x1e31c2,'data':_0x1e31c2[_0x5157ba(0x200)]},'cmd':_0x2f7d6d[_0x5157ba(0x3a5)]};case _0xdffdbc[_0x5157ba(0x282)][_0x5157ba(0x54b)]:return{..._0x2f7d6d,'data':{..._0x1e31c2,'data':_0x1e31c2['liveShareNewHost']},'cmd':_0x2f7d6d[_0x5157ba(0x3a5)]};case _0xdffdbc[_0x5157ba(0x282)]['LIVESHARE_FETCH_OPERATIONS']:case _0xdffdbc['CollaborationEvent']['LIVESHARE_OPERATION']:return{..._0x2f7d6d,'data':{..._0x1e31c2,'data':_0x1e31c2['liveShareOperation']},'cmd':_0x2f7d6d['cmd']};case _0xdffdbc[_0x5157ba(0x282)][_0x5157ba(0x47a)]:return{..._0x2f7d6d,'data':{..._0x1e31c2,'data':_0x1e31c2[_0x5157ba(0x321)]},'cmd':_0x2f7d6d[_0x5157ba(0x3a5)]};case _0xdffdbc['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x2f7d6d,'data':_0x1e31c2,'cmd':_0x2f7d6d[_0x5157ba(0x3a5)]};case _0xdffdbc[_0x5157ba(0x282)][_0x5157ba(0x27c)]:return{..._0x2f7d6d,'data':{..._0x1e31c2,'data':_0x1e31c2['commentUpdateEvent']},'cmd':_0x2f7d6d[_0x5157ba(0x3a5)]};case _0xdffdbc[_0x5157ba(0x282)][_0x5157ba(0x3f5)]:return{..._0x2f7d6d,'data':{..._0x1e31c2,'data':_0x1e31c2['updatePermissionObjEvent']},'cmd':_0x2f7d6d['cmd']};case _0xdffdbc['CollaborationEvent'][_0x5157ba(0x31b)]:return{..._0x2f7d6d,'data':{..._0x1e31c2,'data':_0x1e31c2[_0x5157ba(0x3b6)]},'cmd':_0x2f7d6d['cmd']};case _0xdffdbc['CollaborationEvent'][_0x5157ba(0x271)]:return{..._0x2f7d6d,'data':{..._0x1e31c2,'data':_0x1e31c2[_0x5157ba(0x4aa)]},'cmd':_0x2f7d6d[_0x5157ba(0x3a5)]};default:return _0x2f7d6d;}}default:return _0x2f7d6d;}}function _0x103c98(_0x18a44a){const _0x321536=_0x4f02e5;switch(_0x18a44a[_0x321536(0x3a5)]){case _0x2a2edc[_0x321536(0x4d3)][_0x321536(0x443)]:case _0x2a2edc[_0x321536(0x4d3)][_0x321536(0x49e)]:return JSON[_0x321536(0x2db)]({'cmd':_0x18a44a[_0x321536(0x3a5)],'routeKey':_0x18a44a['routeKey']});case _0x2a2edc[_0x321536(0x4d3)][_0x321536(0x350)]:{let _0x6cbf9c;switch(_0x18a44a[_0x321536(0x29a)]['eventID']){case _0xdffdbc[_0x321536(0x282)]['UPDATE_CURSOR']:_0x6cbf9c={'eventID':_0xdffdbc[_0x321536(0x282)][_0x321536(0x30b)],'updateCursorEvent':_0x18a44a[_0x321536(0x29a)][_0x321536(0x29a)]};break;case _0xdffdbc[_0x321536(0x282)]['USERS_LEAVE']:_0x6cbf9c={'eventID':_0xdffdbc[_0x321536(0x282)][_0x321536(0x20b)],'leaveEvent':_0x18a44a['data']['data']};break;case _0xdffdbc[_0x321536(0x282)]['USERS_ENTER']:_0x6cbf9c={'eventID':_0xdffdbc[_0x321536(0x282)]['USERS_ENTER'],'joinEvent':_0x18a44a[_0x321536(0x29a)][_0x321536(0x29a)]};break;case _0xdffdbc[_0x321536(0x282)][_0x321536(0x54b)]:_0x6cbf9c={'eventID':_0xdffdbc[_0x321536(0x282)][_0x321536(0x54b)],'liveShareNewHost':_0x18a44a['data']['data']};break;case _0xdffdbc[_0x321536(0x282)]['LIVESHARE_OPERATION']:_0x6cbf9c={'eventID':_0xdffdbc['CollaborationEvent'][_0x321536(0x279)],'liveShareOperation':_0x18a44a[_0x321536(0x29a)][_0x321536(0x29a)]};break;case _0xdffdbc[_0x321536(0x282)][_0x321536(0x47a)]:_0x6cbf9c={'eventID':_0xdffdbc[_0x321536(0x282)][_0x321536(0x47a)],'liveShareTerminate':_0x18a44a[_0x321536(0x29a)][_0x321536(0x29a)]};break;case _0xdffdbc[_0x321536(0x282)][_0x321536(0x2fe)]:_0x6cbf9c={'eventID':_0xdffdbc['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x18a44a[_0x321536(0x29a)][_0x321536(0x29a)]};break;case _0xdffdbc[_0x321536(0x282)][_0x321536(0x2e9)]:_0x6cbf9c={'eventID':_0xdffdbc[_0x321536(0x282)][_0x321536(0x2e9)]};break;default:_0x6cbf9c={'eventID':_0x18a44a[_0x321536(0x29a)][_0x321536(0x3eb)]};}return JSON[_0x321536(0x2db)]({'cmd':_0x18a44a[_0x321536(0x3a5)],'routeKey':_0x18a44a[_0x321536(0x555)],'collaMsg':_0x6cbf9c});}case _0x2a2edc[_0x321536(0x4d3)][_0x321536(0x3aa)]:return JSON['stringify']({'cmd':_0x18a44a[_0x321536(0x3a5)],'routeKey':_0x18a44a[_0x321536(0x555)],'joinReq':_0x18a44a[_0x321536(0x29a)]});case _0x2a2edc['CombCmd'][_0x321536(0x341)]:return JSON[_0x321536(0x2db)]({'cmd':_0x18a44a['cmd'],'routeKey':_0x18a44a['routeKey'],'leaveReq':_0x18a44a[_0x321536(0x29a)]});default:throw Error(_0x321536(0x227));}}let _0x1589e2=(0x0,_0x5d4a9c['createIdentifier'])(_0x4f02e5(0x44f));function _0x3d7dfd(_0xb31797,_0x49c3f7,_0x3bf9de){const _0x257149=_0x4f02e5;return _0xb31797+'/'+_0x49c3f7+_0x257149(0x237)+_0x3bf9de+_0x257149(0x53b);}let _0x207798=class extends _0x5d4a9c[_0x4f02e5(0x35f)]{constructor(_0x1ebb85,_0x369b85,_0x1963d1,_0x89a508,_0x1a9c6f){const _0x162212=_0x4f02e5;super(),this[_0x162212(0x22d)]=_0x1ebb85,this[_0x162212(0x286)]=_0x369b85,this[_0x162212(0x543)]=_0x1963d1,this[_0x162212(0x431)]=_0x89a508,this[_0x162212(0x20a)]=_0x1a9c6f;}['_doCreateSocket'](_0x2caa5f){const _0xad0246=_0x4f02e5;let _0x57b4ef=this['_injector'][_0xad0246(0x272)](_0x1405b7[_0xad0246(0x3d2)]);if(!_0x57b4ef)throw Error(_0xad0246(0x402));let _0x2e6699=_0x57b4ef[_0xad0246(0x1f6)](_0x2caa5f);if(!_0x2e6699)throw Error(_0xad0246(0x229));let _0x19e538=new _0x5d4a9c[(_0xad0246(0x2ef))](),_0x22c07a=new _0x1090a1['Subject']();_0x19e538[_0xad0246(0x459)](_0x2e6699['close$'][_0xad0246(0x2b6)](_0x421346=>_0x22c07a[_0xad0246(0x31e)](_0x421346))),_0x19e538['add']((0x0,_0x5d4a9c[_0xad0246(0x31a)])(()=>_0x22c07a[_0xad0246(0x4a3)]()));let _0x263468=new _0x1090a1['Subject']();_0x19e538[_0xad0246(0x459)](_0x2e6699['error$'][_0xad0246(0x2b6)](_0x5b0ce6=>_0x263468['next'](_0x5b0ce6))),_0x19e538[_0xad0246(0x459)]((0x0,_0x5d4a9c[_0xad0246(0x31a)])(()=>_0x263468[_0xad0246(0x4a3)]()));let _0x2acc23=new _0x1090a1[(_0xad0246(0x231))]();_0x19e538[_0xad0246(0x459)](_0x2e6699[_0xad0246(0x4cf)][_0xad0246(0x2b6)](_0x3b9fac=>{const _0x356a68=_0xad0246;let _0x96b92d=_0x5497e4(_0x3b9fac);_0x2acc23[_0x356a68(0x31e)](_0x96b92d);})),_0x19e538['add']((0x0,_0x5d4a9c[_0xad0246(0x31a)])(()=>_0x2acc23[_0xad0246(0x4a3)]()));let _0x1c3e29,_0x2f96b3=()=>{const _0x20d0bb=_0xad0246;_0x263468[_0x20d0bb(0x31e)](new Event('connection\x20error')),_0x22c07a[_0x20d0bb(0x31e)](new Event(_0x20d0bb(0x4c5))),_0x1c3e29[_0x20d0bb(0x37b)]();};return _0x1c3e29={'memberID':'','close$':_0x22c07a['asObservable'](),'error$':_0x263468['asObservable'](),'open$':_0x2e6699[_0xad0246(0x1f3)],'message$':_0x2acc23['asObservable'](),'send':_0x590d58=>{const _0x2e2596=_0xad0246;if(_0x590d58[_0x2e2596(0x3a5)]===_0x2a2edc[_0x2e2596(0x4d3)][_0x2e2596(0x350)]){if(_0x590d58[_0x2e2596(0x29a)][_0x2e2596(0x3eb)]===_0xdffdbc[_0x2e2596(0x282)][_0x2e2596(0x4ee)]){this[_0x2e2596(0x366)](_0x1c3e29,_0x590d58[_0x2e2596(0x29a)])[_0x2e2596(0x333)](_0xd08ce9=>{const _0x46d372=_0x2e2596;this[_0x46d372(0x431)][_0x46d372(0x363)](_0xd08ce9),_0x2f96b3();});return;}if(_0x590d58[_0x2e2596(0x29a)][_0x2e2596(0x3eb)]===_0xdffdbc[_0x2e2596(0x282)][_0x2e2596(0x1f4)]){let _0x102118=_0x590d58[_0x2e2596(0x29a)];this['_fetchMissChangesets'](_0x102118)[_0x2e2596(0x4e8)](_0x5c3947=>{const _0x335e1d=_0x2e2596;_0x2acc23[_0x335e1d(0x31e)]({'cmd':_0x2a2edc[_0x335e1d(0x4d3)][_0x335e1d(0x474)],'code':_0x2a2edc[_0x335e1d(0x3d8)]['OK'],'routeKey':_0x102118['data'][_0x335e1d(0x317)],'routeType':'','data':{'eventID':_0xdffdbc[_0x335e1d(0x282)][_0x335e1d(0x4c3)],'data':{'changesets':_0x5c3947}}});})[_0x2e2596(0x333)](_0xbf7796=>{const _0x1f9267=_0x2e2596;this[_0x1f9267(0x431)]['error'](_0xbf7796),_0x2f96b3();});return;}}_0x2e6699[_0x2e2596(0x255)](_0x103c98(_0x590d58));},'close':()=>{const _0x3719d3=_0xad0246;_0x2e6699['close'](),_0x19e538[_0x3719d3(0x378)]();}},_0x1c3e29;}async[_0x4f02e5(0x366)](_0x1dee47,_0x179cd3){const _0x230738=_0x4f02e5;var _0x1e0c6b;let {unitType:_0x2d531b,unitID:_0x5a75da,changeset:_0x3aa975}=_0x179cd3['data'],_0x1714c5={'unitID':_0x5a75da,'memberID':_0x1dee47[_0x230738(0x20e)],'type':_0x2d531b,'changeset':(0x0,_0xdffdbc[_0x230738(0x250)])(_0x3aa975)},_0x3de6c6=this[_0x230738(0x543)][_0x230738(0x2f7)](_0x165ad1),_0x51f287=_0x3d7dfd((_0x1e0c6b=_0x3de6c6==null?void 0x0:_0x3de6c6[_0x230738(0x3b5)])==null?_0x230738(0x37f):_0x1e0c6b,_0x2d531b,_0x5a75da);try{await this[_0x230738(0x286)]['post'](_0x51f287,{'body':_0x1714c5});}catch(_0x22075d){throw this[_0x230738(0x431)][_0x230738(0x363)](_0x230738(0x39f),'submit\x20changeset\x20error!'),_0x22075d;}}async[_0x4f02e5(0x4f8)](_0x55516e){const _0x1dea58=_0x4f02e5;let {unitID:_0x6b92a4,from:_0x4e2ee1,to:_0xee0dd,unitType:_0x1024ee}=_0x55516e['data'];return(await this[_0x1dea58(0x20a)][_0x1dea58(0x482)]({'metadata':void 0x0},{'unitID':_0x6b92a4,'type':_0x1024ee,'from':_0x4e2ee1,'to':_0xee0dd}))[_0x1dea58(0x38a)]['map'](_0xf36f43=>((_0xf36f43[_0x1dea58(0x371)]===null||_0xf36f43['mutations']===void 0x0)&&(_0xf36f43['mutations']=[]),_0xf36f43));}};_0x207798=_0x411a83([_0x2f2fb0(0x0,(0x0,_0x5d4a9c['Inject'])(_0x5d4a9c[_0x4f02e5(0x33d)])),_0x2f2fb0(0x1,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x1405b7[_0x4f02e5(0x30a)])),_0x2f2fb0(0x2,_0x5d4a9c[_0x4f02e5(0x4f1)]),_0x2f2fb0(0x3,_0x5d4a9c[_0x4f02e5(0x33a)]),_0x2f2fb0(0x4,_0xdffdbc[_0x4f02e5(0x318)])],_0x207798);let _0x4d7dfa=(0x0,_0x5d4a9c[_0x4f02e5(0x4e0)])(_0x4f02e5(0x3b1));function _0x34f7ec(_0x533ac7={}){const _0x36f5fa=_0x4f02e5;return _0x533ac7[_0x36f5fa(0x3c2)]?{'resolveUnit':_0x533ac7[_0x36f5fa(0x3c2)]}:{'resolveUnit':_0x73c6af=>({'target':{'unitId':_0x73c6af[_0x36f5fa(0x277)],'unitType':_0x73c6af[_0x36f5fa(0x43c)]}})};}function _0xcf872d(_0x2ce4df,_0x3efd9a,_0x506c07){const _0x54f1b4=_0x4f02e5;var _0x39465a;let _0x127327=_0x506c07[_0x54f1b4(0x340)][_0x54f1b4(0x463)];if(_0x127327!=null&&_0x127327[_0x54f1b4(0x52b)]()==='')throw Error(_0x54f1b4(0x31c));if(!_0x506c07[_0x54f1b4(0x340)][_0x54f1b4(0x277)])throw Error(_0x54f1b4(0x4e9));return{'localUnitId':_0x2ce4df,'unitType':_0x3efd9a,'target':{'endpoint':_0x127327,'unitId':_0x506c07['target'][_0x54f1b4(0x277)],'unitType':(_0x39465a=_0x506c07[_0x54f1b4(0x340)][_0x54f1b4(0x43c)])==null?_0x3efd9a:_0x39465a},'changeset':_0x506c07[_0x54f1b4(0x23b)]};}let _0x187f66=class extends _0x5d4a9c[_0x4f02e5(0x35f)]{constructor(_0x2eee8f,_0x1c00df,_0x4a28e8,_0x4a1c1e,_0x559839,_0x40c678,_0x25e8c0){const _0x1b407d=_0x4f02e5;super(),this[_0x1b407d(0x22d)]=_0x2eee8f,this[_0x1b407d(0x431)]=_0x1c00df,this[_0x1b407d(0x543)]=_0x4a28e8,this[_0x1b407d(0x549)]=_0x4a1c1e,this['_collaborationUIEventService']=_0x559839,this['_adapter']=_0x40c678,this[_0x1b407d(0x38f)]=_0x25e8c0,_0xef01a1(this,'_sessions',new Map()),_0xef01a1(this,_0x1b407d(0x274),new Map()),_0xef01a1(this,_0x1b407d(0x20d),new Map()),_0xef01a1(this,_0x1b407d(0x4a7),new Map()),_0xef01a1(this,_0x1b407d(0x4e5),this[_0x1b407d(0x376)](void 0x0)[_0x1b407d(0x4e5)][_0x1b407d(0x294)]()),_0xef01a1(this,_0x1b407d(0x238),new _0x1090a1[(_0x1b407d(0x22c))](0x0)),_0xef01a1(this,_0x1b407d(0x34c),this['_status$'][_0x1b407d(0x294)]()),this['_listenToNetworkCondition']();}['_listenToNetworkCondition'](){const _0x1d6332=_0x4f02e5;this[_0x1d6332(0x38f)]&&this[_0x1d6332(0x38e)](this[_0x1d6332(0x38f)][_0x1d6332(0x256)][_0x1d6332(0x2b6)](_0x21b2dd=>{const _0x4e9740=_0x1d6332;_0x21b2dd&&this['reconnect'](),_0x21b2dd||this[_0x4e9740(0x4a7)][_0x4e9740(0x217)](_0x1138db=>this[_0x4e9740(0x476)](_0x1138db));}));}[_0x4f02e5(0x378)](){const _0x4956d1=_0x4f02e5;super[_0x4956d1(0x378)](),this[_0x4956d1(0x4a7)][_0x4956d1(0x217)](_0x5bb319=>{const _0x393ad2=_0x4956d1;var _0xc20d90,_0x41a3ea;(_0xc20d90=_0x5bb319[_0x393ad2(0x2b5)])==null||_0xc20d90[_0x393ad2(0x407)](),_0x5bb319[_0x393ad2(0x2b5)]=null,this[_0x393ad2(0x2cf)](_0x5bb319),this[_0x393ad2(0x2fb)](_0x5bb319),this[_0x393ad2(0x4c4)](_0x5bb319),(_0x41a3ea=_0x5bb319['socket$'][_0x393ad2(0x50f)]())==null||_0x41a3ea[_0x393ad2(0x37b)](),_0x5bb319[_0x393ad2(0x4e5)][_0x393ad2(0x4a3)]();}),this[_0x4956d1(0x4a7)][_0x4956d1(0x352)](),this[_0x4956d1(0x206)][_0x4956d1(0x217)](_0x3e7d41=>_0x3e7d41['dispose']()),this[_0x4956d1(0x206)]['clear'](),this[_0x4956d1(0x20d)]['clear'](),this[_0x4956d1(0x238)]['complete']();}async[_0x4f02e5(0x460)](_0x4f4931,_0x36d75c){const _0x14abce=_0x4f02e5;if(this[_0x14abce(0x206)][_0x14abce(0x32d)](_0x4f4931))return this['_sessions'][_0x14abce(0x272)](_0x4f4931);let _0x5db305=this['_pendingSessions'][_0x14abce(0x272)](_0x4f4931);if(_0x5db305)return _0x5db305;let _0x4cc0fa=this[_0x14abce(0x43b)](_0x4f4931,_0x36d75c);this['_pendingSessions'][_0x14abce(0x297)](_0x4f4931,_0x4cc0fa);try{return await _0x4cc0fa;}finally{this[_0x14abce(0x274)]['delete'](_0x4f4931);}}async[_0x4f02e5(0x43b)](_0x8d3b3f,_0x28157b){const _0x162b0d=_0x4f02e5;let _0x50f794=await this[_0x162b0d(0x52a)](_0x8d3b3f,_0x28157b),_0x5349a0=this[_0x162b0d(0x376)](_0x50f794['target'][_0x162b0d(0x463)]);this[_0x162b0d(0x273)](_0x5349a0);let _0x153e5c=this[_0x162b0d(0x22d)][_0x162b0d(0x433)](_0x11d6a7,_0x50f794,_0x5349a0[_0x162b0d(0x4e5)]['asObservable']());return this[_0x162b0d(0x206)][_0x162b0d(0x297)](_0x8d3b3f,_0x153e5c),this[_0x162b0d(0x20d)]['set'](_0x8d3b3f,_0x5349a0['endpointKey']),_0x153e5c;}[_0x4f02e5(0x257)](_0x51709b){const _0x55d17c=_0x4f02e5;let _0x386e9d=this['_sessions'][_0x55d17c(0x272)](_0x51709b),_0x430630=this[_0x55d17c(0x20d)][_0x55d17c(0x272)](_0x51709b);if(_0x386e9d&&(this[_0x55d17c(0x206)][_0x55d17c(0x4ea)](_0x51709b),this[_0x55d17c(0x20d)][_0x55d17c(0x4ea)](_0x51709b),_0x386e9d[_0x55d17c(0x37b)]()),_0x430630&&!this['_hasSessionsForEndpoint'](_0x430630)){var _0x3e7332;let _0x8908b0=this[_0x55d17c(0x4a7)][_0x55d17c(0x272)](_0x430630);_0x8908b0==null||(_0x3e7332=_0x8908b0[_0x55d17c(0x4e5)][_0x55d17c(0x50f)]())==null||_0x3e7332[_0x55d17c(0x37b)]();}}[_0x4f02e5(0x1fc)](){const _0x34da40=_0x4f02e5;(this['_socketChannels']['size']?[...this[_0x34da40(0x4a7)]['values']()]:[this[_0x34da40(0x376)](void 0x0)])['forEach'](_0x424c61=>{const _0x52a068=_0x34da40;_0x424c61[_0x52a068(0x2b8)]=0x0,this[_0x52a068(0x2cf)](_0x424c61),this[_0x52a068(0x29c)](_0x424c61);});}['_clearRetryConnectingTimer'](_0x5e362d){const _0x495eaa=_0x4f02e5;_0x5e362d[_0x495eaa(0x266)]!=null&&(clearTimeout(_0x5e362d[_0x495eaa(0x266)]),_0x5e362d[_0x495eaa(0x266)]=null);}async['_createSocket'](_0x19db05){const _0x52bf25=_0x4f02e5;var _0x3363a9,_0x475d84;let _0x183d53=this[_0x52bf25(0x543)]['getConfig'](_0x165ad1),_0x50381e=(_0x3363a9=(_0x475d84=_0x19db05[_0x52bf25(0x463)])==null?_0x183d53==null?void 0x0:_0x183d53[_0x52bf25(0x4ad)]:_0x475d84)==null?_0x38d0fe:_0x3363a9,_0x5e506c=await this[_0x52bf25(0x549)][_0x52bf25(0x1f6)](_0x50381e);return _0x19db05['candidateSocket']=_0x5e506c,_0x5e506c;}async[_0x4f02e5(0x273)](_0x3c667c){const _0x1c0e65=_0x4f02e5;try{var _0x8b718,_0x16a299;let _0x5a7c03=(_0x8b718=(_0x16a299=_0x3c667c[_0x1c0e65(0x4e5)]['getValue']())==null?_0x3c667c[_0x1c0e65(0x403)]:_0x16a299)==null?await this[_0x1c0e65(0x26c)](_0x3c667c):_0x8b718;if(_0x5a7c03){var _0x55853e;let _0x2c86a7=_0x5a7c03[_0x1c0e65(0x255)];_0x5a7c03[_0x1c0e65(0x255)]=_0x4abd6c=>(_0x4abd6c[_0x1c0e65(0x3a5)]!==_0x2a2edc[_0x1c0e65(0x4d3)][_0x1c0e65(0x341)]&&this[_0x1c0e65(0x44b)](_0x3c667c),_0x2c86a7['apply'](_0x5a7c03,[_0x4abd6c])),(_0x55853e=_0x3c667c[_0x1c0e65(0x2b5)])==null||_0x55853e[_0x1c0e65(0x407)](),_0x3c667c['socketMessageSubscription']=null,_0x3c667c['socketMessageSubscription']=_0x5a7c03[_0x1c0e65(0x4cf)]['subscribe'](_0x17af24=>this[_0x1c0e65(0x45a)](_0x3c667c,_0x5a7c03,_0x17af24)),_0x5a7c03[_0x1c0e65(0x23d)][_0x1c0e65(0x456)]((0x0,_0x39586e[_0x1c0e65(0x397)])(0x1))[_0x1c0e65(0x2b6)](_0x553d44=>this[_0x1c0e65(0x431)][_0x1c0e65(0x363)](_0x1c0e65(0x38c),_0x553d44)),_0x5a7c03[_0x1c0e65(0x1f3)][_0x1c0e65(0x456)]((0x0,_0x39586e[_0x1c0e65(0x397)])(0x1))[_0x1c0e65(0x2b6)](()=>{const _0xec1935=_0x1c0e65;this[_0xec1935(0x410)](_0x3c667c,_0x5a7c03);}),_0x5a7c03[_0x1c0e65(0x2ee)]['pipe']((0x0,_0x39586e[_0x1c0e65(0x397)])(0x1))[_0x1c0e65(0x2b6)](_0x34a34b=>{const _0x3246ed=_0x1c0e65;this['_logService'][_0x3246ed(0x2bc)](_0x3246ed(0x4cc),_0x3246ed(0x401),_0x34a34b),this['_onConnectionFailed'](_0x3c667c);});}}catch(_0x175f4e){this['_logService'][_0x1c0e65(0x363)](_0x175f4e),this[_0x1c0e65(0x21c)](_0x3c667c);}}[_0x4f02e5(0x410)](_0x1091fe,_0x2ad24e){const _0x38a22e=_0x4f02e5;this[_0x38a22e(0x431)][_0x38a22e(0x2bc)](_0x38a22e(0x4cc),_0x38a22e(0x3b2)),_0x2ad24e[_0x38a22e(0x255)]({'cmd':_0x2a2edc['CombCmd'][_0x38a22e(0x49e)]}),this[_0x38a22e(0x44b)](_0x1091fe);}['_onOffline'](_0x9f041e){const _0xd0daec=_0x4f02e5;_0x9f041e[_0xd0daec(0x427)]=!0x1,_0x9f041e['candidateSocket']=null,this[_0xd0daec(0x238)][_0xd0daec(0x31e)](0x2),_0x9f041e[_0xd0daec(0x4e5)][_0xd0daec(0x31e)](null),this[_0xd0daec(0x2fb)](_0x9f041e),this[_0xd0daec(0x4c4)](_0x9f041e);}['_onConnectionFailed'](_0x2c1709){const _0x47bb6d=_0x4f02e5;var _0x1ea0f4;this['_onOffline'](_0x2c1709),this[_0x47bb6d(0x3ab)](_0x2c1709[_0x47bb6d(0x391)])&&(_0x2c1709['retryCount']<((_0x1ea0f4=this['_configService'][_0x47bb6d(0x2f7)](_0x47bb6d(0x4ec)))==null?0x3:_0x1ea0f4)?(this['_collaborationUIEventService'][_0x47bb6d(0x216)]({'id':'SOCKET_FAILED_RETRY'}),this[_0x47bb6d(0x29c)](_0x2c1709)):this[_0x47bb6d(0x25c)]['emitEvent']({'id':_0x47bb6d(0x23e)}));}[_0x4f02e5(0x29c)](_0x23f088){const _0x491e75=_0x4f02e5;var _0x5edfa8;let _0x29e608=_0x23f088[_0x491e75(0x2b8)],_0x28599b=this[_0x491e75(0x543)][_0x491e75(0x2f7)](_0x165ad1),_0x1070ce=_0x29e608===0x0?0x0:((_0x5edfa8=_0x28599b==null?void 0x0:_0x28599b[_0x491e75(0x29b)])==null?0x4e20:_0x5edfa8)*0x2**_0x29e608;_0x23f088[_0x491e75(0x266)]=setTimeout(()=>{const _0xcc6e5=_0x491e75;clearTimeout(_0x23f088[_0xcc6e5(0x266)]),_0x23f088['retryConnectingTimer']=null,this[_0xcc6e5(0x273)](_0x23f088);},_0x1070ce),_0x23f088[_0x491e75(0x2b8)]+=0x1;}async[_0x4f02e5(0x52a)](_0x52d7a8,_0x67227f){const _0x3b2b99=_0x4f02e5;return _0xcf872d(_0x52d7a8,_0x67227f,await this[_0x3b2b99(0x34b)][_0x3b2b99(0x3c2)]({'unitId':_0x52d7a8,'unitType':_0x67227f}));}[_0x4f02e5(0x45a)](_0x15790e,_0x552a27,_0x502963){const _0x50ceca=_0x4f02e5;let {cmd:_0x3671d3}=_0x502963;_0x3671d3===_0x2a2edc[_0x50ceca(0x4d3)][_0x50ceca(0x49e)]&&!_0x15790e[_0x50ceca(0x427)]&&(_0x552a27['memberID']=_0x502963['data'][_0x50ceca(0x20e)],_0x15790e[_0x50ceca(0x4e5)]['next'](_0x552a27),this[_0x50ceca(0x238)][_0x50ceca(0x31e)](0x3),_0x15790e[_0x50ceca(0x427)]=!0x0,_0x15790e['candidateSocket']=null),_0x3671d3===_0x2a2edc[_0x50ceca(0x4d3)][_0x50ceca(0x443)]&&this['_clearTimeoutTimer'](_0x15790e),this[_0x50ceca(0x44b)](_0x15790e);}[_0x4f02e5(0x3ab)](_0x46a69d){const _0x36c3ca=_0x4f02e5;return[...this[_0x36c3ca(0x20d)][_0x36c3ca(0x4bd)]()][_0x36c3ca(0x4cd)](_0x166b85=>_0x166b85===_0x46a69d);}[_0x4f02e5(0x376)](_0x3ca711){const _0x2f13f0=_0x4f02e5;let _0x59c6cc=_0x3ca711==null?'':_0x3ca711,_0x49c2c1=this[_0x2f13f0(0x4a7)][_0x2f13f0(0x272)](_0x59c6cc);if(_0x49c2c1)return _0x49c2c1;let _0x5c0cbb={'endpointKey':_0x59c6cc,'endpoint':_0x3ca711,'socket$':new _0x1090a1[(_0x2f13f0(0x22c))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x2f13f0(0x4a7)][_0x2f13f0(0x297)](_0x59c6cc,_0x5c0cbb),_0x5c0cbb;}[_0x4f02e5(0x44b)](_0x10622e){const _0x340d95=_0x4f02e5;var _0x31b9ae;this[_0x340d95(0x4c4)](_0x10622e),_0x10622e[_0x340d95(0x365)]=setTimeout(()=>this[_0x340d95(0x25a)](_0x10622e),(_0x31b9ae=this[_0x340d95(0x543)][_0x340d95(0x2f7)](_0x340d95(0x486)))==null?0x7530:_0x31b9ae);}['_sendHeartbeat'](_0x4feddb){const _0x28c8c1=_0x4f02e5;_0x4feddb[_0x28c8c1(0x4e5)][_0x28c8c1(0x50f)]()[_0x28c8c1(0x255)]({'cmd':_0x2a2edc[_0x28c8c1(0x4d3)][_0x28c8c1(0x443)]}),this[_0x28c8c1(0x38b)](_0x4feddb);}['_waitForHeartbeatResponse'](_0x3d0754){const _0x38c7df=_0x4f02e5;var _0x42cfa6;_0x3d0754[_0x38c7df(0x244)]=setTimeout(()=>this[_0x38c7df(0x21c)](_0x3d0754),(_0x42cfa6=this[_0x38c7df(0x543)]['getConfig']('HEARTBEAT_TIMEOUT'))==null?_0x37056b:_0x42cfa6);}['_clearHeartbeatTimer'](_0x3ece64){const _0xd7e202=_0x4f02e5;_0x3ece64['sendHeartbeatTimer']!=null&&(clearTimeout(_0x3ece64[_0xd7e202(0x365)]),_0x3ece64['sendHeartbeatTimer']=null);}[_0x4f02e5(0x2fb)](_0x4f1705){const _0x38acae=_0x4f02e5;_0x4f1705['timeoutTimer']!=null&&(clearTimeout(_0x4f1705[_0x38acae(0x244)]),_0x4f1705[_0x38acae(0x244)]=null);}};_0x187f66=_0x411a83([_0x2f2fb0(0x0,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c[_0x4f02e5(0x33d)])),_0x2f2fb0(0x1,_0x5d4a9c[_0x4f02e5(0x33a)]),_0x2f2fb0(0x2,_0x5d4a9c['IConfigService']),_0x2f2fb0(0x3,_0x1589e2),_0x2f2fb0(0x4,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xaaa1eb)),_0x2f2fb0(0x5,_0x4d7dfa),_0x2f2fb0(0x6,(0x0,_0x5d4a9c['Optional'])(_0x3d71be))],_0x187f66);let _0x5985ca=class extends _0x5d4a9c['RxDisposable']{constructor(_0x30167e,_0x40aa6b,_0x1655fd,_0x22e64a){const _0x305989=_0x4f02e5;var _0x1d1b9b;super(),this[_0x305989(0x22d)]=_0x30167e,this['_collabSessionService']=_0x40aa6b,this[_0x305989(0x543)]=_0x1655fd,this['_univerInstanceService']=_0x22e64a,_0xef01a1(this,_0x305989(0x50d),new Map()),_0xef01a1(this,'_entityInit$',new _0x1090a1[(_0x305989(0x231))]()),_0xef01a1(this,'entityInit$',this[_0x305989(0x3d7)][_0x305989(0x294)]()),((_0x1d1b9b=this[_0x305989(0x543)][_0x305989(0x2f7)](_0x305989(0x247)))==null?void 0x0:_0x1d1b9b[_0x305989(0x4c8)])!==!0x1&&this[_0x305989(0x228)]();}['dispose'](){const _0x474ec3=_0x4f02e5;super[_0x474ec3(0x378)](),this[_0x474ec3(0x50d)][_0x474ec3(0x217)](_0x1a60fd=>_0x1a60fd[_0x474ec3(0x378)]()),this[_0x474ec3(0x50d)][_0x474ec3(0x352)]();}[_0x4f02e5(0x27d)](_0x5ea2e8){const _0x39bf60=_0x4f02e5;var _0x52d41d;return(_0x52d41d=this[_0x39bf60(0x50d)]['get'](_0x5ea2e8))==null?null:_0x52d41d;}['getCollabEntity$'](_0x816059){const _0x1691e5=_0x4f02e5;let _0x4bd78e=this['getCollabEntity'](_0x816059);return _0x4bd78e?(0x0,_0x1090a1['of'])(_0x4bd78e):this[_0x1691e5(0x3d7)][_0x1691e5(0x456)]((0x0,_0x39586e[_0x1691e5(0x515)])(_0x379a85=>_0x379a85[_0x1691e5(0x317)]===_0x816059));}[_0x4f02e5(0x2a4)](_0x25a359){const _0x95c8e5=_0x4f02e5;return(0x0,_0x1090a1[_0x95c8e5(0x1f0)])(this['getCollabEntity$'](_0x25a359)['pipe']((0x0,_0x39586e['map'])(()=>void 0x0)));}[_0x4f02e5(0x228)](){const _0x5f16fb=_0x4f02e5;this[_0x5f16fb(0x2e1)][_0x5f16fb(0x399)](_0x5d4a9c[_0x5f16fb(0x3a3)][_0x5f16fb(0x531)])[_0x5f16fb(0x456)]((0x0,_0x1090a1[_0x5f16fb(0x3e7)])(this['dispose$']),(0x0,_0x39586e['delay'])(0x10))[_0x5f16fb(0x2b6)](async _0x3730e2=>{const _0x3f156a=_0x5f16fb;let _0x1a3eb6=_0x3730e2['unit'][_0x3f156a(0x37d)](),_0x428277=await this[_0x3f156a(0x54f)](_0x1a3eb6,_0x5d4a9c[_0x3f156a(0x3a3)][_0x3f156a(0x531)]);this['_entities'][_0x3f156a(0x297)](_0x1a3eb6,_0x428277);}),this[_0x5f16fb(0x2e1)]['getTypeOfUnitAdded$'](_0x5d4a9c[_0x5f16fb(0x3a3)][_0x5f16fb(0x304)])[_0x5f16fb(0x456)]((0x0,_0x1090a1[_0x5f16fb(0x3e7)])(this[_0x5f16fb(0x4e2)]),(0x0,_0x39586e[_0x5f16fb(0x42d)])(0x10))[_0x5f16fb(0x456)]((0x0,_0x39586e[_0x5f16fb(0x515)])(_0x2ab681=>!_0x2ab681[_0x5f16fb(0x263)]['getUnitId']()['startsWith']('__')))[_0x5f16fb(0x2b6)](async _0x142575=>{const _0x3cdd38=_0x5f16fb;let _0x35289a=_0x142575['unit'][_0x3cdd38(0x37d)](),_0x57f99a=await this[_0x3cdd38(0x54f)](_0x35289a,_0x5d4a9c[_0x3cdd38(0x3a3)]['UNIVER_DOC']);this[_0x3cdd38(0x50d)]['set'](_0x35289a,_0x57f99a);}),this[_0x5f16fb(0x2e1)][_0x5f16fb(0x399)](_0x5d4a9c[_0x5f16fb(0x3a3)][_0x5f16fb(0x3ef)])[_0x5f16fb(0x456)]((0x0,_0x1090a1[_0x5f16fb(0x3e7)])(this['dispose$']),(0x0,_0x39586e[_0x5f16fb(0x42d)])(0x10))['subscribe'](async _0x2cab77=>{const _0x3c23c5=_0x5f16fb;let _0x12aefd=_0x2cab77['unit'][_0x3c23c5(0x37d)](),_0x636595=await this['_startCollaboration'](_0x12aefd,_0x5d4a9c[_0x3c23c5(0x3a3)][_0x3c23c5(0x3ef)]);this['_entities'][_0x3c23c5(0x297)](_0x12aefd,_0x636595);}),this['_univerInstanceService'][_0x5f16fb(0x399)](_0x5d4a9c[_0x5f16fb(0x3a3)]['UNIVER_BOARD'])['pipe']((0x0,_0x1090a1[_0x5f16fb(0x3e7)])(this[_0x5f16fb(0x4e2)]),(0x0,_0x39586e['delay'])(0x10))[_0x5f16fb(0x2b6)](async _0x5b8c99=>{const _0x385ca0=_0x5f16fb;let _0xd9a0c8=_0x5b8c99[_0x385ca0(0x263)][_0x385ca0(0x37d)](),_0x4442d8=await this[_0x385ca0(0x54f)](_0xd9a0c8,_0x5d4a9c[_0x385ca0(0x3a3)][_0x385ca0(0x43d)]);this['_entities']['set'](_0xd9a0c8,_0x4442d8);}),this[_0x5f16fb(0x2e1)][_0x5f16fb(0x399)](_0x5d4a9c[_0x5f16fb(0x3a3)][_0x5f16fb(0x3e8)])[_0x5f16fb(0x456)]((0x0,_0x1090a1[_0x5f16fb(0x3e7)])(this['dispose$']),(0x0,_0x39586e[_0x5f16fb(0x42d)])(0x10))[_0x5f16fb(0x2b6)](async _0x229021=>{const _0xd5248a=_0x5f16fb;let _0x587f71=_0x229021['unit'][_0xd5248a(0x37d)](),_0x2fccf9=await this['_startCollaboration'](_0x587f71,_0x5d4a9c[_0xd5248a(0x3a3)][_0xd5248a(0x3e8)]);this[_0xd5248a(0x50d)][_0xd5248a(0x297)](_0x587f71,_0x2fccf9);}),(0x0,_0x1090a1[_0x5f16fb(0x501)])(this[_0x5f16fb(0x2e1)][_0x5f16fb(0x36a)](_0x5d4a9c['UniverInstanceType'][_0x5f16fb(0x531)]),this[_0x5f16fb(0x2e1)]['getTypeOfUnitDisposed$'](_0x5d4a9c[_0x5f16fb(0x3a3)][_0x5f16fb(0x304)]),this[_0x5f16fb(0x2e1)][_0x5f16fb(0x36a)](_0x5d4a9c[_0x5f16fb(0x3a3)][_0x5f16fb(0x3ef)]),this['_univerInstanceService'][_0x5f16fb(0x36a)](_0x5d4a9c[_0x5f16fb(0x3a3)][_0x5f16fb(0x43d)]),this['_univerInstanceService'][_0x5f16fb(0x36a)](_0x5d4a9c['UniverInstanceType'][_0x5f16fb(0x3e8)]))['pipe']((0x0,_0x1090a1[_0x5f16fb(0x3e7)])(this[_0x5f16fb(0x4e2)]))['subscribe'](_0x537907=>{const _0xf35f36=_0x5f16fb;let _0x454d5d=_0x537907['getUnitId'](),_0x3e6a32=this[_0xf35f36(0x50d)][_0xf35f36(0x272)](_0x454d5d);_0x3e6a32&&(_0x3e6a32[_0xf35f36(0x378)](),this[_0xf35f36(0x50d)][_0xf35f36(0x4ea)](_0x454d5d));});}async[_0x4f02e5(0x54f)](_0x30b2de,_0x571be8){const _0x3e1e7b=_0x4f02e5;let _0x301cd2=await this[_0x3e1e7b(0x2df)][_0x3e1e7b(0x460)](_0x30b2de),_0x5cc890=this['_injector']['createInstance'](this[_0x3e1e7b(0x2e0)](_0x571be8),_0x30b2de,_0x571be8,_0x301cd2);return await _0x5cc890[_0x3e1e7b(0x299)](),this['_entityInit$']['next'](_0x5cc890),_0x5cc890;}[_0x4f02e5(0x2e0)](_0x2dc30b){const _0x1eeccc=_0x4f02e5;switch(_0x2dc30b){case _0x5d4a9c['UniverInstanceType']['UNIVER_DOC']:return _0x421885;case _0x5d4a9c[_0x1eeccc(0x3a3)][_0x1eeccc(0x531)]:return _0x1f94eb;case _0x5d4a9c[_0x1eeccc(0x3a3)]['UNIVER_SLIDE']:return _0xc056a2;case _0x5d4a9c[_0x1eeccc(0x3a3)][_0x1eeccc(0x43d)]:return _0x24d1d6;case _0x5d4a9c[_0x1eeccc(0x3a3)]['UNIVER_BASE']:return _0x4dd63d;default:throw Error(_0x1eeccc(0x40b)+_0x2dc30b);}}};_0x5985ca=_0x411a83([_0x2f2fb0(0x0,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c[_0x4f02e5(0x33d)])),_0x2f2fb0(0x1,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x187f66)),_0x2f2fb0(0x2,_0x5d4a9c['IConfigService']),_0x2f2fb0(0x3,_0x5d4a9c[_0x4f02e5(0x3f3)])],_0x5985ca);var _0x1836d8=_0x4f02e5(0x42e),_0x1fe685=_0x4f02e5(0x4d9);let _0x4dbe67=class extends _0x5d4a9c[_0x4f02e5(0x35f)]{constructor(_0x5818cf,_0x1b56e6){const _0x1ccd7d=_0x4f02e5;super(),this['_univerInstanceService']=_0x5818cf,this[_0x1ccd7d(0x543)]=_0x1b56e6,this['_init']();}['_init'](){const _0x305ef0=_0x4f02e5;this[_0x305ef0(0x38e)](this[_0x305ef0(0x2e1)][_0x305ef0(0x42f)][_0x305ef0(0x2b6)](()=>{const _0x5b5443=_0x305ef0;var _0x1044c0;let _0x4fdbdf=this[_0x5b5443(0x2e1)]['getFocusedUnit'](),_0x48f394=(_0x1044c0=this[_0x5b5443(0x543)][_0x5b5443(0x2f7)](_0x5b5443(0x470)))==null?'Univer':_0x1044c0;_0x4fdbdf instanceof _0x5d4a9c['Workbook']&&(_0x48f394=_0x4fdbdf['name']),document[_0x5b5443(0x3a8)]=_0x48f394;}));}};_0x4dbe67=_0x411a83([_0x2f2fb0(0x0,_0x5d4a9c[_0x4f02e5(0x3f3)]),_0x2f2fb0(0x1,_0x5d4a9c[_0x4f02e5(0x4f1)])],_0x4dbe67);let _0x35c469=function(_0x4a16e4){const _0x1fda13=_0x4f02e5;return _0x4a16e4[_0x1fda13(0x3c0)]=_0x1fda13(0x3c0),_0x4a16e4[_0x1fda13(0x4b5)]='UUID',_0x4a16e4[_0x1fda13(0x466)]='BASE64',_0x4a16e4;}({}),_0x500d70=(0x0,_0x5d4a9c['createIdentifier'])(_0x4f02e5(0x3fa)),_0x306f93=class{constructor(_0x2d3cff,_0xc7e3ae,_0x4f46ca){const _0x20b083=_0x4f02e5;this['_httpService']=_0x2d3cff,this[_0x20b083(0x543)]=_0xc7e3ae,this[_0x20b083(0x2e1)]=_0x4f46ca;}[_0x4f02e5(0x213)](){const _0x4fc57c=_0x4f02e5;var _0x2655d9;return(_0x2655d9=this[_0x4fc57c(0x3bf)]()[_0x4fc57c(0x394)])==null?{}:_0x2655d9;}async[_0x4f02e5(0x448)](_0x22018e){const _0x568f44=_0x4f02e5;let _0x42901a=this['getUploadOptions']();if(_0x51b534(_0x22018e,_0x42901a),_0x42901a[_0x568f44(0x359)])return _0x42901a['upload'](_0x22018e);let _0x4854e6=await this[_0x568f44(0x478)](_0x22018e);return{'id':_0x4854e6,'name':_0x22018e[_0x568f44(0x380)],'mimeType':_0x22018e[_0x568f44(0x4d6)],'size':_0x22018e[_0x568f44(0x530)],'sourceType':_0x568f44(0x4b5),'source':_0x4854e6};}async['_upload'](_0x1b506e){const _0x73b6b8=_0x4f02e5;let _0x4cd899=this[_0x73b6b8(0x2e1)]['getFocusedUnit'](),_0x15f6e9=_0x4cd899==null?void 0x0:_0x4cd899[_0x73b6b8(0x37d)]();if(!_0x15f6e9)throw Error(_0x73b6b8(0x236));let _0x5b8c00=new FormData();_0x5b8c00[_0x73b6b8(0x45c)](_0x73b6b8(0x4be),_0x1b506e);let _0x7c9892=this['_getUploadFileURL']()+_0x73b6b8(0x547)+_0x1b506e[_0x73b6b8(0x530)]['toString']()+_0x73b6b8(0x1ef)+_0x2a2edc[_0x73b6b8(0x332)][_0x73b6b8(0x212)]+_0x73b6b8(0x3ba)+encodeURIComponent(_0x15f6e9),_0x51fabe=(await this[_0x73b6b8(0x286)][_0x73b6b8(0x505)](_0x7c9892,{'body':_0x5b8c00}))[_0x73b6b8(0x3b8)][_0x73b6b8(0x3a7)];if(typeof _0x51fabe!=_0x73b6b8(0x383)||!_0x51fabe)throw Error(_0x73b6b8(0x4df));return _0x51fabe;}[_0x4f02e5(0x3e0)](){const _0x2a44d4=_0x4f02e5;var _0x9c68a9;return(_0x9c68a9=this[_0x2a44d4(0x3bf)]()[_0x2a44d4(0x292)])==null?_0x2a44d4(0x3cb):_0x9c68a9;}['_getConfig'](){const _0x2c778f=_0x4f02e5;var _0x28211f;return(_0x28211f=this['_configService'][_0x2c778f(0x2f7)](_0x2c778f(0x247)))==null?{}:_0x28211f;}};_0x306f93=_0x411a83([_0x2f2fb0(0x0,(0x0,_0x5d4a9c['Inject'])(_0x1405b7[_0x4f02e5(0x30a)])),_0x2f2fb0(0x1,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c[_0x4f02e5(0x4f1)])),_0x2f2fb0(0x2,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c[_0x4f02e5(0x3f3)]))],_0x306f93);function _0x51b534(_0x55a370,_0x2593f0){const _0x440001=_0x4f02e5;var _0x3f8a0f;if(_0x2593f0[_0x440001(0x3b9)]!=null&&_0x55a370[_0x440001(0x530)]>_0x2593f0[_0x440001(0x3b9)])throw Error(_0x440001(0x290));if((_0x3f8a0f=_0x2593f0[_0x440001(0x3ce)])!=null&&_0x3f8a0f[_0x440001(0x48e)]&&!_0x2593f0[_0x440001(0x3ce)][_0x440001(0x4cd)](_0x52c217=>_0x55a370['type']===_0x52c217||_0x55a370['name'][_0x440001(0x464)](_0x52c217)||_0x52c217[_0x440001(0x464)]('/*')&&_0x55a370['type'][_0x440001(0x3c7)](_0x52c217[_0x440001(0x537)](0x0,-0x1))))throw Error(_0x440001(0x3e9));}let _0x27c85d=class{constructor(_0x4bda56,_0x63f480,_0x2adb64){const _0x38f76a=_0x4f02e5;this[_0x38f76a(0x543)]=_0x4bda56,this['_httpService']=_0x63f480,this[_0x38f76a(0x529)]=_0x2adb64,this['init']();}[_0x4f02e5(0x299)](){const _0x481951=_0x4f02e5;this[_0x481951(0x286)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x163645,_0x33dfbc)=>_0x33dfbc(_0x163645)[_0x481951(0x456)]((0x0,_0x1090a1[_0x481951(0x50e)])(async _0x2cb7af=>{const _0x5c2706=_0x481951;let _0x3ae2e4=_0x2cb7af;if(_0x3ae2e4['status']===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window['confirm'](this[_0x5c2706(0x529)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0xaf15b=window[_0x5c2706(0x22b)](window[_0x5c2706(0x2b1)][_0x5c2706(0x43e)]);window[_0x5c2706(0x2b1)][_0x5c2706(0x43e)]=this[_0x5c2706(0x4f2)]()+_0x5c2706(0x48d)+_0xaf15b;}}return _0x3ae2e4;}))});}[_0x4f02e5(0x4f2)](){const _0x57af9f=_0x4f02e5;var _0x3c418d;let _0x5306a4=this[_0x57af9f(0x543)][_0x57af9f(0x2f7)](_0x165ad1);return(_0x3c418d=_0x5306a4==null?void 0x0:_0x5306a4[_0x57af9f(0x375)])==null?'/universer-api/oidc/authpage':_0x3c418d;}};_0x27c85d=_0x411a83([_0x2f2fb0(0x0,_0x5d4a9c['IConfigService']),_0x2f2fb0(0x1,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x1405b7[_0x4f02e5(0x30a)])),_0x2f2fb0(0x2,(0x0,_0x5d4a9c['Inject'])(_0x5d4a9c['LocaleService']))],_0x27c85d);let _0x44dc7b=class extends _0x5d4a9c[_0x4f02e5(0x35f)]{constructor(_0x55ccef,_0x8f4d12){const _0x4dbb35=_0x4f02e5;super(),this['_HTTPService']=_0x55ccef,this[_0x4dbb35(0x543)]=_0x8f4d12,_0xef01a1(this,'_cfgEnableObjInherit',!0x1),this['_initMergeInterceptor']();}['_initMergeInterceptor'](){const _0x3252d1=_0x4f02e5;let _0x2398d5=this;this[_0x3252d1(0x38e)](this[_0x3252d1(0x3c9)][_0x3252d1(0x35e)]({'priority':0x3e7,'interceptor':(0x0,_0x1405b7[_0x3252d1(0x393)])({'isMatch'(_0x17ba21){const _0x592cd3=_0x3252d1;var _0x390ee6;if(_0x17ba21[_0x592cd3(0x2a3)]===_0x592cd3(0x3f7)&&(_0x390ee6=_0x17ba21[_0x592cd3(0x2d0)])!=null&&_0x390ee6['body']){let {objectID:_0x41eb1b,objectType:_0xb3976f}=_0x17ba21[_0x592cd3(0x2d0)][_0x592cd3(0x3b8)]||{};if(!_0x41eb1b||_0xb3976f===void 0x0)return!0x1;let _0x203af6=_0x2398d5['_getAPIPrefixPath']()+'/'+_0xb3976f+'/object/'+_0x41eb1b+_0x592cd3(0x327);if(_0x17ba21[_0x592cd3(0x4ab)]===_0x203af6)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x24dc84){const _0x39f85a=_0x3252d1;var _0x5e9f09;return(_0x5e9f09=_0x24dc84[_0x39f85a(0x2d0)])==null?void 0x0:_0x5e9f09['body'];},'mergeParamsToRequest'(_0x5d41a2,_0x17f5fd){const _0x19b612=_0x3252d1;let _0x4c9779=_0x2398d5[_0x19b612(0x503)]()+_0x19b612(0x40e),_0x54a487=_0x5d41a2[_0x19b612(0x472)]((_0x2935f5,_0x351eb8)=>{let {unitID:_0x323e05,objectID:_0x1d90a6,objectType:_0x2a6439,actions:_0x4a00d2}=_0x351eb8;return _0x2935f5[_0x323e05]||(_0x2935f5[_0x323e05]={}),_0x2935f5[_0x323e05][_0x1d90a6]||(_0x2935f5[_0x323e05][_0x1d90a6]={'objectID':_0x1d90a6,'objectType':_0x2a6439,'actions':[]}),_0x2935f5[_0x323e05][_0x1d90a6]['actions']['push'](..._0x4a00d2),_0x2935f5;},{}),_0x5ac50f=[];for(let _0x3e3684 in _0x54a487)for(let _0x5237e8 in _0x54a487[_0x3e3684]){let {actions:_0x3dd56f,objectType:_0x32b912}=_0x54a487[_0x3e3684][_0x5237e8],_0x5d069e=[...new Set(_0x3dd56f)];_0x5ac50f[_0x19b612(0x2c4)]({'unitID':_0x3e3684,'objectID':_0x5237e8,'objectType':_0x32b912,'actions':_0x5d069e});}return new _0x1405b7['HTTPRequest']('POST',_0x4c9779,{'headers':_0x17f5fd[_0x19b612(0x4da)],'withCredentials':_0x17f5fd[_0x19b612(0x22a)],'responseType':_0x17f5fd[_0x19b612(0x235)],'body':{'requests':_0x5ac50f}});}},{'distributeResult'(_0x3791e6,_0x22f0ba){const _0x4d501c=_0x3252d1;let {objectActions:_0x4c2f38}=_0x3791e6;return _0x22f0ba[_0x4d501c(0x2a0)](_0x2ada97=>{const _0xb8e126=_0x4d501c;let {unitID:_0x3a6c63,objectID:_0x3bc35e,actions:_0x3dfa9c}=_0x2ada97,_0x16d5c7=_0x4c2f38[_0xb8e126(0x408)](_0x4cb15f=>_0x4cb15f['unitID']===_0x3a6c63&&_0x4cb15f[_0xb8e126(0x4a1)]===_0x3bc35e);return{'config':_0x2ada97,'result':{'actions':_0x3dfa9c['map'](_0x1da8f3=>_0x16d5c7==null?void 0x0:_0x16d5c7[_0xb8e126(0x21f)][_0xb8e126(0x408)](_0x348582=>_0x348582[_0xb8e126(0x498)]===_0x1da8f3))[_0xb8e126(0x515)](_0x1b8f92=>!!_0x1b8f92),'error':_0x3791e6[_0xb8e126(0x363)]}};});}})}));}[_0x4f02e5(0x503)](){const _0x476447=_0x4f02e5;var _0x4c2128;let _0x1b2c1e=this['_configService']['getConfig'](_0x165ad1);return(_0x4c2128=_0x1b2c1e==null?void 0x0:_0x1b2c1e[_0x476447(0x4a8)])==null?_0x476447(0x54d):_0x4c2128;}async[_0x4f02e5(0x480)](_0x1172eb){const _0x43cb7b=_0x4f02e5;let _0x3bd443=this[_0x43cb7b(0x503)]()+'/'+_0x1172eb[_0x43cb7b(0x260)]+_0x43cb7b(0x3ea);return(await this[_0x43cb7b(0x3c9)][_0x43cb7b(0x505)](_0x3bd443,{'body':_0x1172eb}))['body']['objectID']||'';}async['list'](_0x3dde65){const _0x54aa69=_0x4f02e5;let _0x3d6e81=this[_0x54aa69(0x503)]()+'/-/object/list';return(await this[_0x54aa69(0x3c9)][_0x54aa69(0x505)](_0x3d6e81,{'body':_0x3dde65}))[_0x54aa69(0x3b8)][_0x54aa69(0x540)];}async[_0x4f02e5(0x360)](_0xbe4dba){const _0x413ddf=_0x4f02e5;var _0x551204;let _0x3423a6=this['_getAPIPrefixPath']()+'/'+_0xbe4dba['objectType']+_0x413ddf(0x4ca)+_0xbe4dba['objectID'],_0x5f4051=await this['_HTTPService'][_0x413ddf(0x249)](_0x3423a6,{'body':_0xbe4dba});if((_0x5f4051==null||(_0x551204=_0x5f4051['body'])==null||(_0x551204=_0x551204[_0x413ddf(0x363)])==null?void 0x0:_0x551204['code'])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async[_0x4f02e5(0x3cf)](_0x5550cc){const _0x121403=_0x4f02e5;let _0x395b9d=this['_getAPIPrefixPath']()+'/'+_0x5550cc['objectType']+_0x121403(0x4ca)+_0x5550cc[_0x121403(0x4a1)]+_0x121403(0x327);return(await this[_0x121403(0x3c9)][_0x121403(0x505)](_0x395b9d,{'body':_0x5550cc}))['body']['actions'];}async[_0x4f02e5(0x483)](_0x37fad3){const _0x48c5ca=_0x4f02e5;let _0x1eb452=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x48c5ca(0x3c9)][_0x48c5ca(0x505)](_0x1eb452,{'body':{'requests':_0x37fad3}}))[_0x48c5ca(0x3b8)][_0x48c5ca(0x278)];}async[_0x4f02e5(0x52f)](_0x351279){const _0x58ae17=_0x4f02e5;let _0x6276e0=this['_getAPIPrefixPath']()+'/'+_0x351279['objectType']+'/role',_0xc1a04d=await this[_0x58ae17(0x3c9)]['post'](_0x6276e0,{'body':_0x351279});return{'roles':_0xc1a04d[_0x58ae17(0x3b8)][_0x58ae17(0x3a2)],'actions':_0xc1a04d[_0x58ae17(0x3b8)][_0x58ae17(0x21f)]};}async[_0x4f02e5(0x207)](_0x1c5ebb){const _0x3b515f=_0x4f02e5;let _0x26836c=this[_0x3b515f(0x503)]()+_0x3b515f(0x45d);await this[_0x3b515f(0x3c9)][_0x3b515f(0x4ea)](_0x26836c,{'params':{'collaboratorID':_0x1c5ebb[_0x3b515f(0x221)],'objectID':_0x1c5ebb['objectID'],'unitID':_0x1c5ebb[_0x3b515f(0x317)]}});}async['updateCollaborator'](_0x111bd9){const _0x2a0ddf=_0x4f02e5;let _0x416442=this[_0x2a0ddf(0x503)]()+_0x2a0ddf(0x45d);await this[_0x2a0ddf(0x3c9)][_0x2a0ddf(0x2d4)](_0x416442,{'body':_0x111bd9});}async[_0x4f02e5(0x353)](_0x2796fd){const _0x10cbb6=_0x4f02e5;let _0x1fc63b=this[_0x10cbb6(0x503)]()+'/collaborator';await this[_0x10cbb6(0x3c9)][_0x10cbb6(0x505)](_0x1fc63b,{'body':_0x2796fd});}async[_0x4f02e5(0x24a)](_0x259abd){const _0x5989dc=_0x4f02e5;var _0x1be329;let _0x9a44ff=this[_0x5989dc(0x503)]()+_0x5989dc(0x45d),_0x39b50f=await this[_0x5989dc(0x3c9)]['get'](_0x9a44ff,{'params':{'objectID':_0x259abd[_0x5989dc(0x4a1)],'unitID':_0x259abd[_0x5989dc(0x317)]}});return this[_0x5989dc(0x422)]((_0x1be329=_0x39b50f[_0x5989dc(0x3b8)]['cfgEnableObjInherit'])==null?!0x1:_0x1be329),_0x39b50f[_0x5989dc(0x3b8)]['collaborators'];}async[_0x4f02e5(0x415)](_0xd08e15){const _0x268abf=_0x4f02e5;let _0x1c60d1=this[_0x268abf(0x503)]()+_0x268abf(0x45d);await this[_0x268abf(0x3c9)]['put'](_0x1c60d1,{'body':_0xd08e15});}['setCfgEnableObjInherit'](_0x40f63e){this['_cfgEnableObjInherit']=_0x40f63e;}[_0x4f02e5(0x335)](){const _0x2938ce=_0x4f02e5;return this[_0x2938ce(0x379)];}};_0x44dc7b=_0x411a83([_0x2f2fb0(0x0,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x1405b7[_0x4f02e5(0x30a)])),_0x2f2fb0(0x1,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c['IConfigService']))],_0x44dc7b);function _0x28921e(_0x52015d){const _0x53a4f6=_0x4f02e5;return _0x52015d instanceof Uint8Array||ArrayBuffer[_0x53a4f6(0x21d)](_0x52015d)&&_0x52015d[_0x53a4f6(0x40f)][_0x53a4f6(0x380)]===_0x53a4f6(0x270)&&_0x53a4f6(0x45e)in _0x52015d&&_0x52015d[_0x53a4f6(0x45e)]===0x1;}function _0x183170(_0x13851e){const _0x2a7d69=_0x4f02e5;if(typeof _0x13851e!=_0x2a7d69(0x539))throw TypeError(_0x2a7d69(0x349)+typeof _0x13851e);if(!Number['isSafeInteger'](_0x13851e)||_0x13851e<0x0)throw RangeError(_0x2a7d69(0x3df)+_0x13851e);}function _0x56cd1(_0x65d6a7,_0xaafd4c,_0x22792d=''){const _0x4d803f=_0x4f02e5;let _0x10252a=_0x28921e(_0x65d6a7),_0x55864b=_0x65d6a7==null?void 0x0:_0x65d6a7[_0x4d803f(0x48e)],_0x1f2ac3=_0xaafd4c!==void 0x0;if(!_0x10252a||_0x1f2ac3&&_0x55864b!==_0xaafd4c){let _0x260cb5=_0x22792d&&'\x22'+_0x22792d+'\x22\x20',_0x3f98c5=_0x1f2ac3?_0x4d803f(0x4e3)+_0xaafd4c:'',_0x5d35e2=_0x10252a?_0x4d803f(0x4fa)+_0x55864b:_0x4d803f(0x405)+typeof _0x65d6a7,_0x4850ac=_0x260cb5+_0x4d803f(0x208)+_0x3f98c5+_0x4d803f(0x21e)+_0x5d35e2;throw _0x10252a?RangeError(_0x4850ac):TypeError(_0x4850ac);}return _0x65d6a7;}function _0x16284c(_0x59564c){const _0x392a34=_0x4f02e5;return new Uint32Array(_0x59564c[_0x392a34(0x4a9)],_0x59564c[_0x392a34(0x522)],Math[_0x392a34(0x499)](_0x59564c[_0x392a34(0x3af)]/0x4));}function _0x340d62(..._0x192b8a){const _0x26d146=_0x4f02e5;for(let _0x2d742b=0x0;_0x2d742b<_0x192b8a[_0x26d146(0x48e)];_0x2d742b++)_0x192b8a[_0x2d742b][_0x26d146(0x491)](0x0);}let _0x298ce5=new Uint8Array(new Uint32Array([0x11223344])[_0x4f02e5(0x4a9)])[0x0]===0x44,_0x22d619=_0x128deb=>_0x128deb<<0x18&0xff000000|_0x128deb<<0x8&0xff0000|_0x128deb>>>0x8&0xff00|_0x128deb>>>0x18&0xff,_0x17fc48=_0x298ce5?_0x4cc256=>_0x4cc256:_0x2b7fad=>{const _0x16744f=_0x4f02e5;for(let _0x1d2d46=0x0;_0x1d2d46<_0x2b7fad[_0x16744f(0x48e)];_0x1d2d46++)_0x2b7fad[_0x1d2d46]=_0x22d619(_0x2b7fad[_0x1d2d46]);return _0x2b7fad;};function _0x4a4d96(_0x361e5c){const _0xc54baf=_0x4f02e5;if(typeof _0x361e5c!=_0xc54baf(0x383))throw TypeError(_0xc54baf(0x3f0));return new Uint8Array(new TextEncoder()[_0xc54baf(0x35a)](_0x361e5c));}function _0x546035(_0x5faad6,_0x255e00){const _0x563a3e=_0x4f02e5;return!_0x5faad6[_0x563a3e(0x3af)]||!_0x255e00[_0x563a3e(0x3af)]?!0x1:_0x5faad6[_0x563a3e(0x4a9)]===_0x255e00['buffer']&&_0x5faad6['byteOffset']<_0x255e00[_0x563a3e(0x522)]+_0x255e00[_0x563a3e(0x3af)]&&_0x255e00[_0x563a3e(0x522)]<_0x5faad6[_0x563a3e(0x522)]+_0x5faad6[_0x563a3e(0x3af)];}function _0x390309(_0x19fb0f,_0x347087){const _0x283c18=_0x4f02e5;if(_0x546035(_0x19fb0f,_0x347087)&&_0x19fb0f[_0x283c18(0x522)]<_0x347087[_0x283c18(0x522)])throw Error(_0x283c18(0x310));}function _0x16c004(..._0x3aac37){const _0x34a27a=_0x4f02e5;let _0x4af356=0x0;for(let _0x2b1564=0x0;_0x2b1564<_0x3aac37[_0x34a27a(0x48e)];_0x2b1564++){let _0x3b258f=_0x3aac37[_0x2b1564];_0x56cd1(_0x3b258f),_0x4af356+=_0x3b258f[_0x34a27a(0x48e)];}let _0x2c47c7=new Uint8Array(_0x4af356);for(let _0x52d13e=0x0,_0x18350d=0x0;_0x52d13e<_0x3aac37['length'];_0x52d13e++){let _0x3794c0=_0x3aac37[_0x52d13e];_0x2c47c7[_0x34a27a(0x297)](_0x3794c0,_0x18350d),_0x18350d+=_0x3794c0['length'];}return _0x2c47c7;}let _0x4209aa=(_0x9e30e5,_0x52c152)=>{function _0x2421b5(_0x12078e,..._0x4abb25){const _0x14cef6=_0x429f;if(_0x56cd1(_0x12078e,void 0x0,_0x14cef6(0x3d0)),_0x9e30e5['nonceLength']!==void 0x0){let _0x1a165c=_0x4abb25[0x0];_0x56cd1(_0x1a165c,_0x9e30e5['varSizeNonce']?void 0x0:_0x9e30e5[_0x14cef6(0x259)],'nonce');}let _0x3da2e7=_0x9e30e5['tagLength'];_0x3da2e7&&_0x4abb25[0x1]!==void 0x0&&_0x56cd1(_0x4abb25[0x1],void 0x0,'AAD');let _0x21bbe5=_0x52c152(_0x12078e,..._0x4abb25),_0x4f54a9=(_0x2eb4ae,_0x38f923)=>{const _0x337125=_0x14cef6;if(_0x38f923!==void 0x0){if(_0x2eb4ae!==0x2)throw Error(_0x337125(0x511));_0x56cd1(_0x38f923,void 0x0,_0x337125(0x50b));}},_0xf6d1af=!0x1;return{'encrypt'(_0x4c83b8,_0x30ab97){const _0x5adf9a=_0x14cef6;if(_0xf6d1af)throw Error(_0x5adf9a(0x2c9));return _0xf6d1af=!0x0,_0x56cd1(_0x4c83b8),_0x4f54a9(_0x21bbe5['encrypt'][_0x5adf9a(0x48e)],_0x30ab97),_0x21bbe5[_0x5adf9a(0x4ef)](_0x4c83b8,_0x30ab97);},'decrypt'(_0x50435d,_0xb854ed){const _0x1dcef8=_0x14cef6;if(_0x56cd1(_0x50435d),_0x3da2e7&&_0x50435d[_0x1dcef8(0x48e)]<_0x3da2e7)throw Error('\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength='+_0x3da2e7);return _0x4f54a9(_0x21bbe5[_0x1dcef8(0x48c)]['length'],_0xb854ed),_0x21bbe5[_0x1dcef8(0x48c)](_0x50435d,_0xb854ed);}};}return Object['assign'](_0x2421b5,_0x9e30e5),_0x2421b5;};function _0x47063d(_0x3f6e9e,_0x248dc6,_0x5d237a=!0x0){const _0x18bdda=_0x4f02e5;if(_0x248dc6===void 0x0)return new Uint8Array(_0x3f6e9e);if(_0x56cd1(_0x248dc6,void 0x0,_0x18bdda(0x50b)),_0x248dc6[_0x18bdda(0x48e)]!==_0x3f6e9e)throw Error(_0x18bdda(0x357)+_0x3f6e9e+_0x18bdda(0x3bd)+_0x248dc6['length']);if(_0x5d237a&&!_0x5143ca(_0x248dc6))throw Error(_0x18bdda(0x31d));return _0x248dc6;}function _0x5143ca(_0x32f46e){const _0x16fe6f=_0x4f02e5;return _0x32f46e[_0x16fe6f(0x522)]%0x4==0x0;}function _0x5e0d38(_0x42d76b){const _0x56338d=_0x4f02e5;return Uint8Array[_0x56338d(0x469)](_0x56cd1(_0x42d76b));}function _0x46b612(_0x2231fe=0x20){const _0x5c476f=_0x4f02e5;_0x183170(_0x2231fe);let _0x1a2d18=typeof globalThis==_0x5c476f(0x50c)?globalThis[_0x5c476f(0x3e5)]:null;if(typeof(_0x1a2d18==null?void 0x0:_0x1a2d18[_0x5c476f(0x211)])!='function')throw Error(_0x5c476f(0x47d));return _0x1a2d18[_0x5c476f(0x211)](new Uint8Array(_0x2231fe));}function _0x4018f4(_0x3184e8){const _0x5a57d4=_0x4f02e5;if(![0x10,0x18,0x20]['includes'](_0x3184e8['length']))throw Error(_0x5a57d4(0x3e4)+_0x3184e8[_0x5a57d4(0x48e)]);}function _0x4f39f7(_0x4c3be3){return _0x4c3be3<<0x1^0x11b&-(_0x4c3be3>>0x7);}function _0x31716e(_0x127740,_0x43b654){let _0x3097ff=0x0;for(;_0x43b654>0x0;_0x43b654>>=0x1)_0x3097ff^=_0x127740&-(_0x43b654&0x1),_0x127740=_0x4f39f7(_0x127740);return _0x3097ff;}let _0x239bcc=((()=>{let _0x1e9663=new Uint8Array(0x100);for(let _0x19fb55=0x0,_0x2379cf=0x1;_0x19fb55<0x100;_0x19fb55++,_0x2379cf^=_0x4f39f7(_0x2379cf))_0x1e9663[_0x19fb55]=_0x2379cf;let _0x3112fa=new Uint8Array(0x100);_0x3112fa[0x0]=0x63;for(let _0x19433b=0x0;_0x19433b<0xff;_0x19433b++){let _0x28e3a4=_0x1e9663[0xff-_0x19433b];_0x28e3a4|=_0x28e3a4<<0x8,_0x3112fa[_0x1e9663[_0x19433b]]=(_0x28e3a4^_0x28e3a4>>0x4^_0x28e3a4>>0x5^_0x28e3a4>>0x6^_0x28e3a4>>0x7^0x63)&0xff;}return _0x340d62(_0x1e9663),_0x3112fa;})()),_0x3034db=_0x239bcc['map']((_0x196a2d,_0x1313e3)=>_0x239bcc['indexOf'](_0x1313e3)),_0x9e6118=_0x442c5f=>_0x442c5f<<0x18|_0x442c5f>>>0x8,_0x48a4b5=_0xfdff3=>_0xfdff3<<0x8|_0xfdff3>>>0x18;function _0x6fcec0(_0x4cba5c,_0x2f1a0f){const _0x24e816=_0x4f02e5;if(_0x4cba5c[_0x24e816(0x48e)]!==0x100)throw Error(_0x24e816(0x438));let _0x9d0627=new Uint32Array(0x100)[_0x24e816(0x2a0)]((_0x4739a0,_0x450d64)=>_0x2f1a0f(_0x4cba5c[_0x450d64])),_0x18e8f0=_0x9d0627[_0x24e816(0x2a0)](_0x48a4b5),_0x33a4b7=_0x18e8f0[_0x24e816(0x2a0)](_0x48a4b5),_0x21117c=_0x33a4b7['map'](_0x48a4b5),_0x3cb4db=new Uint32Array(0x100*0x100),_0x28ee88=new Uint32Array(0x100*0x100),_0x396581=new Uint16Array(0x100*0x100);for(let _0x42099d=0x0;_0x42099d<0x100;_0x42099d++)for(let _0x13504b=0x0;_0x13504b<0x100;_0x13504b++){let _0x430d2c=_0x42099d*0x100+_0x13504b;_0x3cb4db[_0x430d2c]=_0x9d0627[_0x42099d]^_0x18e8f0[_0x13504b],_0x28ee88[_0x430d2c]=_0x33a4b7[_0x42099d]^_0x21117c[_0x13504b],_0x396581[_0x430d2c]=_0x4cba5c[_0x42099d]<<0x8|_0x4cba5c[_0x13504b];}return{'sbox':_0x4cba5c,'sbox2':_0x396581,'T0':_0x9d0627,'T1':_0x18e8f0,'T2':_0x33a4b7,'T3':_0x21117c,'T01':_0x3cb4db,'T23':_0x28ee88};}let _0x5ab2ba=_0x6fcec0(_0x239bcc,_0x1d5168=>_0x31716e(_0x1d5168,0x3)<<0x18|_0x1d5168<<0x10|_0x1d5168<<0x8|_0x31716e(_0x1d5168,0x2)),_0x448f21=_0x6fcec0(_0x3034db,_0xb7abd4=>_0x31716e(_0xb7abd4,0xb)<<0x18|_0x31716e(_0xb7abd4,0xd)<<0x10|_0x31716e(_0xb7abd4,0x9)<<0x8|_0x31716e(_0xb7abd4,0xe)),_0x723c21=((()=>{let _0x2db835=new Uint8Array(0x10);for(let _0x31b436=0x0,_0x215940=0x1;_0x31b436<0x10;_0x31b436++,_0x215940=_0x4f39f7(_0x215940))_0x2db835[_0x31b436]=_0x215940;return _0x2db835;})());function _0x51b418(_0x42fb2d){const _0x3ff349=_0x4f02e5;_0x56cd1(_0x42fb2d);let _0x13da79=_0x42fb2d[_0x3ff349(0x48e)];_0x4018f4(_0x42fb2d);let {sbox2:_0x5c73bf}=_0x5ab2ba,_0x3db68c=[];(!_0x298ce5||!_0x5143ca(_0x42fb2d))&&_0x3db68c[_0x3ff349(0x2c4)](_0x42fb2d=_0x5e0d38(_0x42fb2d));let _0x441312=_0x17fc48(_0x16284c(_0x42fb2d)),_0x592639=_0x441312[_0x3ff349(0x48e)],_0x59c0f6=_0x5e83b6=>_0x2d3184(_0x5c73bf,_0x5e83b6,_0x5e83b6,_0x5e83b6,_0x5e83b6),_0x527fd0=new Uint32Array(_0x13da79+0x1c);_0x527fd0[_0x3ff349(0x297)](_0x441312);for(let _0x8228d3=_0x592639;_0x8228d3<_0x527fd0[_0x3ff349(0x48e)];_0x8228d3++){let _0x512043=_0x527fd0[_0x8228d3-0x1];_0x8228d3%_0x592639===0x0?_0x512043=_0x59c0f6(_0x9e6118(_0x512043))^_0x723c21[_0x8228d3/_0x592639-0x1]:_0x592639>0x6&&_0x8228d3%_0x592639===0x4&&(_0x512043=_0x59c0f6(_0x512043)),_0x527fd0[_0x8228d3]=_0x527fd0[_0x8228d3-_0x592639]^_0x512043;}return _0x340d62(..._0x3db68c),_0x527fd0;}function _0x36c3d4(_0x5206c7){const _0x475b11=_0x4f02e5;let _0x4ef3e5=_0x51b418(_0x5206c7),_0x32211a=_0x4ef3e5[_0x475b11(0x537)](),_0x1cbc20=_0x4ef3e5[_0x475b11(0x48e)],{sbox2:_0x142cad}=_0x5ab2ba,{T0:_0x16f01f,T1:_0x2772d2,T2:_0x44227b,T3:_0x22f39e}=_0x448f21;for(let _0x373f1f=0x0;_0x373f1f<_0x1cbc20;_0x373f1f+=0x4)for(let _0x593469=0x0;_0x593469<0x4;_0x593469++)_0x32211a[_0x373f1f+_0x593469]=_0x4ef3e5[_0x1cbc20-_0x373f1f-0x4+_0x593469];_0x340d62(_0x4ef3e5);for(let _0x90b7b7=0x4;_0x90b7b7<_0x1cbc20-0x4;_0x90b7b7++){let _0x363b1c=_0x32211a[_0x90b7b7],_0x325c9f=_0x2d3184(_0x142cad,_0x363b1c,_0x363b1c,_0x363b1c,_0x363b1c);_0x32211a[_0x90b7b7]=_0x16f01f[_0x325c9f&0xff]^_0x2772d2[_0x325c9f>>>0x8&0xff]^_0x44227b[_0x325c9f>>>0x10&0xff]^_0x22f39e[_0x325c9f>>>0x18];}return _0x32211a;}function _0x487263(_0x2ee6ab,_0xe91158,_0x1dcee1,_0x22428a,_0x11a656,_0x388eff){return _0x2ee6ab[_0x1dcee1<<0x8&0xff00|_0x22428a>>>0x8&0xff]^_0xe91158[_0x11a656>>>0x8&0xff00|_0x388eff>>>0x18&0xff];}function _0x2d3184(_0x54b75f,_0x12d403,_0xa31095,_0x832486,_0x4b5303){return _0x54b75f[_0x12d403&0xff|_0xa31095&0xff00]|_0x54b75f[_0x832486>>>0x10&0xff|_0x4b5303>>>0x10&0xff00]<<0x10;}function _0x38e82f(_0x82dcb,_0x575a5d,_0xac6efe,_0x4b2e44,_0x281460){let {sbox2:_0x58b735,T01:_0x4a384b,T23:_0x4de196}=_0x5ab2ba,_0x4eb7cd=0x0;_0x575a5d^=_0x82dcb[_0x4eb7cd++],_0xac6efe^=_0x82dcb[_0x4eb7cd++],_0x4b2e44^=_0x82dcb[_0x4eb7cd++],_0x281460^=_0x82dcb[_0x4eb7cd++];let _0x119724=_0x82dcb['length']/0x4-0x2;for(let _0x5c872d=0x0;_0x5c872d<_0x119724;_0x5c872d++){let _0x4b3341=_0x82dcb[_0x4eb7cd++]^_0x487263(_0x4a384b,_0x4de196,_0x575a5d,_0xac6efe,_0x4b2e44,_0x281460),_0x53f04f=_0x82dcb[_0x4eb7cd++]^_0x487263(_0x4a384b,_0x4de196,_0xac6efe,_0x4b2e44,_0x281460,_0x575a5d),_0x3737c6=_0x82dcb[_0x4eb7cd++]^_0x487263(_0x4a384b,_0x4de196,_0x4b2e44,_0x281460,_0x575a5d,_0xac6efe),_0x7e18f2=_0x82dcb[_0x4eb7cd++]^_0x487263(_0x4a384b,_0x4de196,_0x281460,_0x575a5d,_0xac6efe,_0x4b2e44);_0x575a5d=_0x4b3341,_0xac6efe=_0x53f04f,_0x4b2e44=_0x3737c6,_0x281460=_0x7e18f2;}return{'s0':_0x82dcb[_0x4eb7cd++]^_0x2d3184(_0x58b735,_0x575a5d,_0xac6efe,_0x4b2e44,_0x281460),'s1':_0x82dcb[_0x4eb7cd++]^_0x2d3184(_0x58b735,_0xac6efe,_0x4b2e44,_0x281460,_0x575a5d),'s2':_0x82dcb[_0x4eb7cd++]^_0x2d3184(_0x58b735,_0x4b2e44,_0x281460,_0x575a5d,_0xac6efe),'s3':_0x82dcb[_0x4eb7cd++]^_0x2d3184(_0x58b735,_0x281460,_0x575a5d,_0xac6efe,_0x4b2e44)};}function _0x5bffab(_0x381410,_0x26b07,_0x4efc50,_0x24ce09,_0x5673ad){let {sbox2:_0x4e5b1e,T01:_0x597596,T23:_0x43f93f}=_0x448f21,_0x30deb0=0x0;_0x26b07^=_0x381410[_0x30deb0++],_0x4efc50^=_0x381410[_0x30deb0++],_0x24ce09^=_0x381410[_0x30deb0++],_0x5673ad^=_0x381410[_0x30deb0++];let _0x2a2e31=_0x381410['length']/0x4-0x2;for(let _0x43eb4e=0x0;_0x43eb4e<_0x2a2e31;_0x43eb4e++){let _0x25fca7=_0x381410[_0x30deb0++]^_0x487263(_0x597596,_0x43f93f,_0x26b07,_0x5673ad,_0x24ce09,_0x4efc50),_0x1d7011=_0x381410[_0x30deb0++]^_0x487263(_0x597596,_0x43f93f,_0x4efc50,_0x26b07,_0x5673ad,_0x24ce09),_0x548670=_0x381410[_0x30deb0++]^_0x487263(_0x597596,_0x43f93f,_0x24ce09,_0x4efc50,_0x26b07,_0x5673ad),_0x2fa0cb=_0x381410[_0x30deb0++]^_0x487263(_0x597596,_0x43f93f,_0x5673ad,_0x24ce09,_0x4efc50,_0x26b07);_0x26b07=_0x25fca7,_0x4efc50=_0x1d7011,_0x24ce09=_0x548670,_0x5673ad=_0x2fa0cb;}return{'s0':_0x381410[_0x30deb0++]^_0x2d3184(_0x4e5b1e,_0x26b07,_0x5673ad,_0x24ce09,_0x4efc50),'s1':_0x381410[_0x30deb0++]^_0x2d3184(_0x4e5b1e,_0x4efc50,_0x26b07,_0x5673ad,_0x24ce09),'s2':_0x381410[_0x30deb0++]^_0x2d3184(_0x4e5b1e,_0x24ce09,_0x4efc50,_0x26b07,_0x5673ad),'s3':_0x381410[_0x30deb0++]^_0x2d3184(_0x4e5b1e,_0x5673ad,_0x24ce09,_0x4efc50,_0x26b07)};}function _0xd38690(_0x431ab9){const _0x151337=_0x4f02e5;if(_0x56cd1(_0x431ab9),_0x431ab9[_0x151337(0x48e)]%0x10!=0x0)throw Error(_0x151337(0x454));}function _0x5e068d(_0x1d2948,_0x4b96fc,_0x43c4a5){const _0x53ad65=_0x4f02e5;_0x56cd1(_0x1d2948);let _0x10b970=_0x1d2948[_0x53ad65(0x48e)],_0x550886=_0x10b970%0x10;if(!_0x4b96fc&&_0x550886!==0x0)throw Error(_0x53ad65(0x315));if(_0x4b96fc){let _0x39b0e8=0x10-_0x550886;_0x39b0e8||(_0x39b0e8=0x10),_0x10b970+=_0x39b0e8;}_0x43c4a5=_0x47063d(_0x10b970,_0x43c4a5),_0x390309(_0x1d2948,_0x43c4a5),(!_0x298ce5||!_0x5143ca(_0x1d2948))&&(_0x1d2948=_0x5e0d38(_0x1d2948));let _0x222a6e=_0x16284c(_0x1d2948);return _0x17fc48(_0x222a6e),{'b':_0x222a6e,'o':_0x16284c(_0x43c4a5),'out':_0x43c4a5};}function _0x5cc5bb(_0x1551ef,_0x1c1172){const _0x40f1a5=_0x4f02e5;if(!_0x1c1172)return _0x1551ef;let _0x42e06c=_0x1551ef['length'];if(_0x42e06c===0x0)throw Error('aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed');let _0x25ae5d=_0x1551ef[_0x42e06c-0x1],_0x253e90=0x1;_0x253e90&=_0x25ae5d-0x1>>>0x1f^0x1,_0x253e90&=0x10-_0x25ae5d>>>0x1f^0x1;for(let _0x599ee9=0x0;_0x599ee9<0x10;_0x599ee9++){let _0x324e4d=_0x599ee9-_0x25ae5d>>>0x1f,_0x5d582f=+((_0x1551ef[_0x42e06c-0x1-_0x599ee9]^_0x25ae5d)===0x0);_0x253e90&=_0x5d582f|_0x324e4d^0x1;}if(!_0x253e90)throw Error(_0x40f1a5(0x2d6));return _0x1551ef[_0x40f1a5(0x51e)](0x0,_0x42e06c-_0x25ae5d);}function _0x825caa(_0xe3fc4f){const _0x45e470=_0x4f02e5;let _0x2fd58c=new Uint8Array(0x10),_0x1abd48=_0x16284c(_0x2fd58c);_0x2fd58c[_0x45e470(0x297)](_0xe3fc4f);let _0x49b4a6=0x10-_0xe3fc4f[_0x45e470(0x48e)];for(let _0x1ec322=0x10-_0x49b4a6;_0x1ec322<0x10;_0x1ec322++)_0x2fd58c[_0x1ec322]=_0x49b4a6;return _0x1abd48;}let _0x85e42d=_0x4209aa({'blockSize':0x10,'nonceLength':0x10},function(_0x51bf1f,_0x3587d3,_0x9ce006={}){let _0x24d6ae=!_0x9ce006['disablePadding'];return{'encrypt'(_0x2d9820,_0x24b846){const _0x4683f8=_0x429f;let _0x327eb4=_0x51b418(_0x51bf1f),{b:_0x53117b,o:_0xdee0ce,out:_0x4bdbd1}=_0x5e068d(_0x2d9820,_0x24d6ae,_0x24b846),_0x5859b8=_0x3587d3,_0x268731=[_0x327eb4];(!_0x298ce5||!_0x5143ca(_0x5859b8))&&_0x268731[_0x4683f8(0x2c4)](_0x5859b8=_0x5e0d38(_0x5859b8));let _0x2400ca=_0x16284c(_0x5859b8);_0x17fc48(_0x2400ca);let _0x4d317f=_0x2400ca[0x0],_0x25c313=_0x2400ca[0x1],_0x3539a4=_0x2400ca[0x2],_0x6ed05e=_0x2400ca[0x3],_0x419efe=0x0;for(;_0x419efe+0x4<=_0x53117b[_0x4683f8(0x48e)];)_0x4d317f^=_0x53117b[_0x419efe+0x0],_0x25c313^=_0x53117b[_0x419efe+0x1],_0x3539a4^=_0x53117b[_0x419efe+0x2],_0x6ed05e^=_0x53117b[_0x419efe+0x3],{s0:_0x4d317f,s1:_0x25c313,s2:_0x3539a4,s3:_0x6ed05e}=_0x38e82f(_0x327eb4,_0x4d317f,_0x25c313,_0x3539a4,_0x6ed05e),_0xdee0ce[_0x419efe++]=_0x4d317f,_0xdee0ce[_0x419efe++]=_0x25c313,_0xdee0ce[_0x419efe++]=_0x3539a4,_0xdee0ce[_0x419efe++]=_0x6ed05e;if(_0x24d6ae){let _0x6a07cd=_0x825caa(_0x2d9820['subarray'](_0x419efe*0x4));_0x17fc48(_0x6a07cd),_0x4d317f^=_0x6a07cd[0x0],_0x25c313^=_0x6a07cd[0x1],_0x3539a4^=_0x6a07cd[0x2],_0x6ed05e^=_0x6a07cd[0x3],{s0:_0x4d317f,s1:_0x25c313,s2:_0x3539a4,s3:_0x6ed05e}=_0x38e82f(_0x327eb4,_0x4d317f,_0x25c313,_0x3539a4,_0x6ed05e),_0xdee0ce[_0x419efe++]=_0x4d317f,_0xdee0ce[_0x419efe++]=_0x25c313,_0xdee0ce[_0x419efe++]=_0x3539a4,_0xdee0ce[_0x419efe++]=_0x6ed05e;}return _0x17fc48(_0xdee0ce),_0x340d62(..._0x268731),_0x4bdbd1;},'decrypt'(_0x403574,_0x19bd54){const _0xdf42ad=_0x429f;_0xd38690(_0x403574);let _0x3a3bd6=_0x36c3d4(_0x51bf1f),_0x3c391b=_0x3587d3,_0x39209f=[_0x3a3bd6];(!_0x298ce5||!_0x5143ca(_0x3c391b))&&_0x39209f[_0xdf42ad(0x2c4)](_0x3c391b=_0x5e0d38(_0x3c391b));let _0x34b308=_0x16284c(_0x3c391b);_0x17fc48(_0x34b308),_0x19bd54=_0x47063d(_0x403574['length'],_0x19bd54),_0x390309(_0x403574,_0x19bd54),(!_0x298ce5||!_0x5143ca(_0x403574))&&_0x39209f['push'](_0x403574=_0x5e0d38(_0x403574));let _0x4caa3a=_0x16284c(_0x403574),_0x2e2618=_0x16284c(_0x19bd54);_0x17fc48(_0x4caa3a);let _0x101f82=_0x34b308[0x0],_0x3cc26e=_0x34b308[0x1],_0x4c2341=_0x34b308[0x2],_0x17b0ef=_0x34b308[0x3];for(let _0x23f565=0x0;_0x23f565+0x4<=_0x4caa3a[_0xdf42ad(0x48e)];){let _0x14bb85=_0x101f82,_0xbefa7=_0x3cc26e,_0x130800=_0x4c2341,_0x37a067=_0x17b0ef;_0x101f82=_0x4caa3a[_0x23f565+0x0],_0x3cc26e=_0x4caa3a[_0x23f565+0x1],_0x4c2341=_0x4caa3a[_0x23f565+0x2],_0x17b0ef=_0x4caa3a[_0x23f565+0x3];let {s0:_0x36bb9b,s1:_0x33762f,s2:_0x26bbe0,s3:_0x5d3bde}=_0x5bffab(_0x3a3bd6,_0x101f82,_0x3cc26e,_0x4c2341,_0x17b0ef);_0x2e2618[_0x23f565++]=_0x36bb9b^_0x14bb85,_0x2e2618[_0x23f565++]=_0x33762f^_0xbefa7,_0x2e2618[_0x23f565++]=_0x26bbe0^_0x130800,_0x2e2618[_0x23f565++]=_0x5d3bde^_0x37a067;}return _0x17fc48(_0x2e2618),_0x340d62(..._0x39209f),_0x5cc5bb(_0x19bd54,_0x24d6ae);}};});function _0xf14c72(_0x236f30){const _0x2857ef=_0x4f02e5;let _0x500084=atob(_0x236f30),_0x41d078=new Uint8Array(_0x500084[_0x2857ef(0x48e)]);for(let _0x554309=0x0;_0x554309<_0x500084[_0x2857ef(0x48e)];_0x554309++)_0x41d078[_0x554309]=_0x500084[_0x2857ef(0x4fe)](_0x554309);return _0x41d078;}function _0x5af7ff(_0x3e6a3f){const _0x41c74c=_0x4f02e5;let _0x43b2d3='';for(let _0x4248c7=0x0;_0x4248c7<_0x3e6a3f[_0x41c74c(0x48e)];_0x4248c7++)_0x43b2d3+=String[_0x41c74c(0x4b9)](_0x3e6a3f[_0x4248c7]);return btoa(_0x43b2d3);}function _0x386ae8(_0x565bcb,_0x586391){const _0x1e4220=_0x4f02e5;let _0x4d7b7e=_0xf14c72(_0x586391),_0x20f1ca=_0x46b612(0x10);return _0x5af7ff(_0x16c004(_0x20f1ca,_0x85e42d(_0x4d7b7e,_0x20f1ca)[_0x1e4220(0x4ef)](_0x4a4d96(_0x565bcb))));}function _0x36764f(){const _0x341ce8=_0x4f02e5;let _0x52cbba=(0x0,_0x11b136[_0x341ce8(0x44c)])()[_0x341ce8(0x533)];if(typeof window<'u'&&window[_0x341ce8(0x2b1)]!==void 0x0&&_0x52cbba){let _0x51e646={'time':Math[_0x341ce8(0x499)](Date['now']()/0x3e8),'domain':location[_0x341ce8(0x509)]};return _0x386ae8(JSON[_0x341ce8(0x2db)](_0x51e646),_0x52cbba);}}let _0x162431=class{constructor(_0x4b4a2f){const _0x54f3f0=_0x4f02e5;this[_0x54f3f0(0x286)]=_0x4b4a2f,this[_0x54f3f0(0x527)]();}[_0x4f02e5(0x527)](){const _0x53d786=_0x4f02e5;this[_0x53d786(0x286)]['registerHTTPInterceptor']({'interceptor':(_0x23d306,_0x110975)=>{const _0x312431=_0x53d786;let _0x15e567=_0x36764f();return _0x15e567&&_0x23d306[_0x312431(0x4da)][_0x312431(0x297)](_0x312431(0x3b3),_0x15e567),_0x110975(_0x23d306);}});}};_0x162431=_0x411a83([_0x2f2fb0(0x0,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x1405b7['HTTPService']))],_0x162431);let _0x1b0cbb=class extends _0x5d4a9c[_0x4f02e5(0x3c6)]{constructor(_0x23eca3,_0x3ec0f3,_0x48fb3a){const _0x24b34b=_0x4f02e5;super(),this[_0x24b34b(0x431)]=_0x23eca3,this[_0x24b34b(0x520)]=_0x3ec0f3,this[_0x24b34b(0x4e1)]=_0x48fb3a,_0xef01a1(this,'_unitInfo$',new _0x1090a1['BehaviorSubject'](null)),_0xef01a1(this,_0x24b34b(0x377),new _0x1090a1['Subject']()),_0xef01a1(this,_0x24b34b(0x372),this[_0x24b34b(0x202)][_0x24b34b(0x294)]()),_0xef01a1(this,_0x24b34b(0x51a),this['_unitLoaded$'][_0x24b34b(0x294)]());}[_0x4f02e5(0x378)](){const _0x1d2efe=_0x4f02e5;super['dispose'](),this['_unitLoaded$']['complete'](),this[_0x1d2efe(0x202)][_0x1d2efe(0x4a3)]();}async[_0x4f02e5(0x3d1)](_0x4f555e,_0xadcd9c,_0x1d071b){const _0x373e2b=_0x4f02e5;this['_unitInfo$'][_0x373e2b(0x31e)]({'unitId':_0x4f555e,'type':_0xadcd9c});let _0x1efe85=null;switch(_0xadcd9c){case _0x5d4a9c[_0x373e2b(0x3a3)]['UNIVER_SHEET']:_0x1efe85=await this[_0x373e2b(0x520)][_0x373e2b(0x3cd)](_0x4f555e,_0x1d071b);break;case _0x5d4a9c['UniverInstanceType'][_0x373e2b(0x304)]:_0x1efe85=await this[_0x373e2b(0x520)][_0x373e2b(0x417)](_0x4f555e,_0x1d071b);break;case _0x5d4a9c['UniverInstanceType']['UNIVER_SLIDE']:_0x1efe85=await this[_0x373e2b(0x520)][_0x373e2b(0x34e)](_0x4f555e,_0x1d071b);break;case _0x5d4a9c['UniverInstanceType'][_0x373e2b(0x43d)]:_0x1efe85=await this[_0x373e2b(0x520)]['loadBoard'](_0x4f555e,_0x1d071b);break;case _0x5d4a9c['UniverInstanceType'][_0x373e2b(0x3e8)]:_0x1efe85=await this['_snapshotService']['loadBase'](_0x4f555e,_0x1d071b);break;default:this['_logService'][_0x373e2b(0x363)](_0x373e2b(0x3f9),_0x373e2b(0x2bb));break;}return _0x1efe85&&this[_0x373e2b(0x377)][_0x373e2b(0x31e)](_0x1efe85),_0x1efe85;}async[_0x4f02e5(0x471)](_0x5926a4,_0x5251fe,_0x5f5794){const _0x202de2=_0x4f02e5;var _0x18d657;this['_unitInfo$'][_0x202de2(0x31e)]({'unitId':_0x5926a4,'type':_0x5251fe,'subUnitId':_0x5f5794});let _0x352201=0x0,_0x569248=await((_0x18d657=this['_localCacheService'])==null?void 0x0:_0x18d657[_0x202de2(0x390)](_0x5926a4));return _0x569248&&(_0x569248[_0x202de2(0x258)]||_0x569248[_0x202de2(0x371)]['length']!==0x0)&&(_0x352201=_0x569248['rev']),_0x352201===0x0&&this[_0x202de2(0x431)]['debug'](_0x202de2(0x3f9),_0x202de2(0x461)),this[_0x202de2(0x3d1)](_0x5926a4,_0x5251fe,_0x352201);}};_0x1b0cbb=_0x411a83([_0x2f2fb0(0x0,_0x5d4a9c[_0x4f02e5(0x33a)]),_0x2f2fb0(0x1,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xdffdbc['SnapshotService'])),_0x2f2fb0(0x2,(0x0,_0x5d4a9c[_0x4f02e5(0x251)])(_0x207b84))],_0x1b0cbb);let _0xb8ec3=class{constructor(_0x421b15,_0x4966bc,_0x3f28da){const _0x5d84d4=_0x4f02e5;this[_0x5d84d4(0x286)]=_0x421b15,this[_0x5d84d4(0x543)]=_0x4966bc,this[_0x5d84d4(0x2e1)]=_0x3f28da,_0xef01a1(this,'_waitCount',0x0),_0xef01a1(this,_0x5d84d4(0x302),new _0x1090a1['Subject']()),_0xef01a1(this,_0x5d84d4(0x521),this[_0x5d84d4(0x302)]),_0xef01a1(this,'_imageSourceCache',new Map());}[_0x4f02e5(0x3c3)](_0x104439){const _0x4fad4e=_0x4f02e5;this['_waitCount']=_0x104439,this[_0x4fad4e(0x302)][_0x4fad4e(0x31e)](_0x104439);}['getImageSourceCache'](_0x227ca0,_0x5a7fa5){const _0x4a203b=_0x4f02e5;if(_0x5a7fa5===_0x5d4a9c[_0x4a203b(0x4b8)][_0x4a203b(0x466)]){let _0x3e8fe8=new Image();return _0x3e8fe8[_0x4a203b(0x2b9)]=_0x227ca0,_0x3e8fe8;}return this[_0x4a203b(0x458)]['get'](_0x227ca0);}['addImageSourceCache'](_0x534a35,_0x4717a7,_0x3c931f){const _0x1643dd=_0x4f02e5;_0x4717a7===_0x5d4a9c[_0x1643dd(0x4b8)][_0x1643dd(0x466)]||_0x3c931f==null||this[_0x1643dd(0x458)][_0x1643dd(0x297)](_0x534a35,_0x3c931f);}async[_0x4f02e5(0x280)](_0x202d7f){const _0x35c657=_0x4f02e5;try{let _0x52d628=this['_replaceFileID'](this[_0x35c657(0x2c5)](),''+_0x202d7f),_0x4a9234=(await this[_0x35c657(0x286)][_0x35c657(0x272)](_0x52d628))[_0x35c657(0x3b8)];if(_0x4a9234[_0x35c657(0x363)]&&_0x4a9234[_0x35c657(0x363)][_0x35c657(0x3b4)]===_0x2a2edc[_0x35c657(0x54a)]['OK']){let _0x11f663=(0x0,_0x5d4a9c[_0x35c657(0x524)])(_0x4a9234['url'],this[_0x35c657(0x2ce)]());return Promise['resolve'](_0x11f663);}return Promise[_0x35c657(0x3ca)](_0x4a9234[_0x35c657(0x363)]);}catch(_0x8ed932){return Promise['reject'](_0x8ed932);}}async[_0x4f02e5(0x534)](_0x5c4582){const _0x24a3bf=_0x4f02e5;let _0x310055='';if(!_0x2f17bc[_0x24a3bf(0x33c)]['includes'](_0x5c4582['type']))return this[_0x24a3bf(0x4f7)](),Promise['reject'](Error(_0x5d4a9c[_0x24a3bf(0x1fd)][_0x24a3bf(0x1ff)]));if(_0x5c4582[_0x24a3bf(0x530)]>(0x0,_0x2f17bc[_0x24a3bf(0x242)])())return this['_decreaseWaiting'](),Promise[_0x24a3bf(0x3ca)](Error(_0x5d4a9c[_0x24a3bf(0x1fd)][_0x24a3bf(0x4d7)]));try{let _0x3a2c89=new FormData();_0x3a2c89[_0x24a3bf(0x45c)]('file',_0x5c4582);let _0x1095c0=this[_0x24a3bf(0x2e1)][_0x24a3bf(0x437)](),_0x1ca101=_0x1095c0==null?void 0x0:_0x1095c0[_0x24a3bf(0x37d)]();if(!_0x1ca101)throw Error(_0x24a3bf(0x451));let _0x3df63d=this[_0x24a3bf(0x3e0)]()+_0x24a3bf(0x547)+_0x5c4582[_0x24a3bf(0x530)]['toString']()+_0x24a3bf(0x1ef)+_0x2a2edc[_0x24a3bf(0x332)][_0x24a3bf(0x212)]+'&assign='+encodeURIComponent(_0x1ca101),_0x180567={'body':_0x3a2c89},_0x3f2957=(await this['_httpService'][_0x24a3bf(0x505)](_0x3df63d,_0x180567))[_0x24a3bf(0x3b8)];if(typeof _0x3f2957[_0x24a3bf(0x3a7)]!=_0x24a3bf(0x383))return this[_0x24a3bf(0x4f7)](),Promise[_0x24a3bf(0x3ca)](Error(_0x5d4a9c[_0x24a3bf(0x1fd)][_0x24a3bf(0x22e)]));_0x310055=_0x3f2957[_0x24a3bf(0x3a7)];}catch{return this[_0x24a3bf(0x4f7)](),Promise[_0x24a3bf(0x3ca)](Error(_0x5d4a9c[_0x24a3bf(0x1fd)][_0x24a3bf(0x22e)]));}return new Promise((_0x229ad8,_0x1c0b59)=>{const _0x2781e1=_0x24a3bf;let _0x2077be=new FileReader();_0x2077be[_0x2781e1(0x336)](_0x5c4582),_0x2077be[_0x2781e1(0x24e)]=_0x1cb76a=>{const _0xda1042=_0x2781e1;var _0x47d3fa;let _0x4e8ef9=(_0x47d3fa=_0x1cb76a[_0xda1042(0x340)])==null?void 0x0:_0x47d3fa[_0xda1042(0x48b)];if(_0x4e8ef9==null){this['_decreaseWaiting'](),_0x1c0b59(Error(_0x5d4a9c[_0xda1042(0x1fd)][_0xda1042(0x22e)]));return;}_0x229ad8({'imageId':(0x0,_0x5d4a9c[_0xda1042(0x28a)])(0x6),'imageSourceType':_0x5d4a9c['ImageSourceType'][_0xda1042(0x4b5)],'source':_0x310055,'base64Cache':_0x4e8ef9,'status':_0x5d4a9c[_0xda1042(0x1fd)][_0xda1042(0x268)]}),this['_decreaseWaiting']();};});}[_0x4f02e5(0x3e0)](){const _0x2c3150=_0x4f02e5;var _0x4300ec;let _0x5f3541=this[_0x2c3150(0x543)][_0x2c3150(0x2f7)](_0x165ad1);return(_0x4300ec=_0x5f3541==null?void 0x0:_0x5f3541[_0x2c3150(0x292)])==null?_0x2c3150(0x3cb):_0x4300ec;}[_0x4f02e5(0x2c5)](){const _0x40c200=_0x4f02e5;var _0x4be61e;let _0x3fce92=this[_0x40c200(0x543)][_0x40c200(0x2f7)](_0x165ad1);return(_0x4be61e=_0x3fce92==null?void 0x0:_0x3fce92[_0x40c200(0x2aa)])==null?_0x40c200(0x2dc):_0x4be61e;}[_0x4f02e5(0x2ce)](){const _0x148ead=_0x4f02e5;var _0x2db2d1;let _0x464ce3=this[_0x148ead(0x543)]['getConfig'](_0x165ad1);return(_0x2db2d1=_0x464ce3==null?void 0x0:_0x464ce3[_0x148ead(0x452)])==null?location[_0x148ead(0x337)]:_0x2db2d1;}[_0x4f02e5(0x432)](_0x59b6c7,_0x489bcc){return _0x59b6c7['replace']('{fileID}',_0x489bcc);}[_0x4f02e5(0x4f7)](){const _0x5e715e=_0x4f02e5;--this[_0x5e715e(0x3d6)],this[_0x5e715e(0x302)][_0x5e715e(0x31e)](this[_0x5e715e(0x3d6)]);}};_0xb8ec3=_0x411a83([_0x2f2fb0(0x0,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x1405b7[_0x4f02e5(0x30a)])),_0x2f2fb0(0x1,_0x5d4a9c[_0x4f02e5(0x4f1)]),_0x2f2fb0(0x2,(0x0,_0x5d4a9c['Inject'])(_0x5d4a9c['IUniverInstanceService']))],_0xb8ec3);let _0x4edda7=class{constructor(_0x201537,_0x5c01c3){const _0x5a39cb=_0x4f02e5;this[_0x5a39cb(0x543)]=_0x201537,this[_0x5a39cb(0x3c9)]=_0x5c01c3;}[_0x4f02e5(0x503)](){const _0x52a5e6=_0x4f02e5;var _0x1f187a;let _0x1f18de=this[_0x52a5e6(0x543)][_0x52a5e6(0x2f7)](_0x165ad1);return(_0x1f187a=_0x1f18de==null?void 0x0:_0x1f18de['authzUrl'])==null?'/universer-api/authz':_0x1f187a;}async[_0x4f02e5(0x23f)](_0x524c83){const _0x574e34=_0x4f02e5;let _0x2855f2=this[_0x574e34(0x503)]()+'/collaborator';return{'list':[{'title':_0x574e34(0x462),'mentions':(await this[_0x574e34(0x3c9)]['get'](_0x2855f2,{'params':{'objectID':_0x524c83[_0x574e34(0x277)],'unitID':_0x524c83[_0x574e34(0x277)]}}))[_0x574e34(0x3b8)][_0x574e34(0x2b0)]['map'](_0x130af9=>({'objectId':_0x130af9['id'],'name':_0x130af9[_0x574e34(0x420)][_0x574e34(0x380)],'metadata':{'icon':_0x130af9[_0x574e34(0x420)][_0x574e34(0x36c)]},'label':_0x130af9[_0x574e34(0x420)][_0x574e34(0x380)],'objectType':_0x5d4a9c[_0x574e34(0x382)][_0x574e34(0x3e6)]})),'metadata':{},'type':_0x5d4a9c['MentionType'][_0x574e34(0x3e6)]}]};}};_0x4edda7=_0x411a83([_0x2f2fb0(0x0,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c[_0x4f02e5(0x4f1)])),_0x2f2fb0(0x1,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x1405b7[_0x4f02e5(0x30a)]))],_0x4edda7);let _0x303a66=class extends _0x5d4a9c[_0x4f02e5(0x3c6)]{constructor(_0x344e6e,_0x15b748,_0x5bac77,_0x1159f6,_0x22f743){const _0x574cb4=_0x4f02e5;super(),this[_0x574cb4(0x22d)]=_0x344e6e,this[_0x574cb4(0x2e1)]=_0x15b748,this[_0x574cb4(0x320)]=_0x5bac77,this[_0x574cb4(0x2f6)]=_0x1159f6,this[_0x574cb4(0x25c)]=_0x22f743,this['_initUnitPermissionChange'](),this[_0x574cb4(0x51f)]();}[_0x4f02e5(0x51f)](){const _0x304e44=_0x4f02e5;let _0x243ac5=async _0x404b7b=>{const _0x46c2db=_0x429f;(await this['_collaborationSessionService'][_0x46c2db(0x460)](_0x404b7b))[_0x46c2db(0x49b)][_0x46c2db(0x456)]((0x0,_0x39586e[_0x46c2db(0x515)])(_0x49bbb4=>_0x49bbb4[_0x46c2db(0x3eb)]===_0xdffdbc['CollaborationEvent'][_0x46c2db(0x31b)]),(0x0,_0x39586e['takeUntil'])(this[_0x46c2db(0x4e2)]))[_0x46c2db(0x2b6)](_0x23292c=>{const _0x1ece71=_0x46c2db;let {reason:_0x91b0ff}=_0x23292c[_0x1ece71(0x29a)];this[_0x1ece71(0x25c)][_0x1ece71(0x216)]({'id':_0x1ece71(0x3d5),'data':_0x91b0ff}),this[_0x1ece71(0x320)][_0x1ece71(0x512)](new _0x35e648[(_0x1ece71(0x52d))](_0x404b7b)['id'],!0x1),this[_0x1ece71(0x2f6)][_0x1ece71(0x257)](_0x404b7b);});};(0x0,_0x1090a1['merge'])(this['_univerInstanceService'][_0x304e44(0x399)](_0x5d4a9c[_0x304e44(0x3a3)][_0x304e44(0x531)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5d4a9c[_0x304e44(0x3a3)][_0x304e44(0x304)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5d4a9c[_0x304e44(0x3a3)]['UNIVER_BOARD']),this[_0x304e44(0x2e1)][_0x304e44(0x399)](_0x5d4a9c['UniverInstanceType'][_0x304e44(0x3e8)]))[_0x304e44(0x456)]((0x0,_0x39586e[_0x304e44(0x2a0)])(_0x1ac947=>_0x1ac947[_0x304e44(0x263)][_0x304e44(0x37d)]()),(0x0,_0x39586e[_0x304e44(0x515)])(_0x2da985=>!(0x0,_0x5d4a9c[_0x304e44(0x289)])(_0x2da985)),(0x0,_0x39586e[_0x304e44(0x3e7)])(this['dispose$']))[_0x304e44(0x2b6)](_0x49afd5=>{_0x243ac5(_0x49afd5);});}[_0x4f02e5(0x4ae)](){const _0x237003=_0x4f02e5;let _0x3a1045=async _0x3ef344=>{const _0x5c6ac7=_0x429f;let _0x485e58=await this['_collaborationSessionService'][_0x5c6ac7(0x460)](_0x3ef344),_0xa18223=this[_0x5c6ac7(0x22d)]['get'](_0x35e648['SheetPermissionInitController']);_0x485e58[_0x5c6ac7(0x49b)][_0x5c6ac7(0x456)]((0x0,_0x39586e[_0x5c6ac7(0x515)])(_0x5534fc=>_0x5534fc[_0x5c6ac7(0x3eb)]===_0xdffdbc['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),(0x0,_0x39586e[_0x5c6ac7(0x3e7)])(this[_0x5c6ac7(0x4e2)]))[_0x5c6ac7(0x2b6)](_0x40feeb=>{const _0x2563d0=_0x5c6ac7;let {objectId:_0x156139}=_0x40feeb[_0x2563d0(0x29a)];_0x156139===_0x3ef344?_0xa18223[_0x2563d0(0x43f)](_0x3ef344):_0xa18223['refreshPermission'](_0x3ef344,_0x156139);});};(0x0,_0x1090a1[_0x237003(0x501)])(this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5d4a9c[_0x237003(0x3a3)][_0x237003(0x531)]))[_0x237003(0x456)]((0x0,_0x39586e[_0x237003(0x2a0)])(_0x5c5325=>_0x5c5325[_0x237003(0x263)][_0x237003(0x37d)]()),(0x0,_0x39586e[_0x237003(0x515)])(_0x5b122b=>!(0x0,_0x5d4a9c['isInternalEditorID'])(_0x5b122b)),(0x0,_0x39586e[_0x237003(0x3e7)])(this['dispose$']))[_0x237003(0x2b6)](_0x378c19=>{_0x3a1045(_0x378c19);});}};_0x303a66=_0x411a83([_0x2f2fb0(0x0,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c[_0x4f02e5(0x33d)])),_0x2f2fb0(0x1,_0x5d4a9c[_0x4f02e5(0x3f3)]),_0x2f2fb0(0x2,_0x5d4a9c[_0x4f02e5(0x4e6)]),_0x2f2fb0(0x3,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x187f66)),_0x2f2fb0(0x4,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0xaaa1eb))],_0x303a66);let _0x20ea90=class{constructor(_0x342150,_0x3a4ac0){const _0x262744=_0x4f02e5;this[_0x262744(0x543)]=_0x342150,this[_0x262744(0x286)]=_0x3a4ac0;}async[_0x4f02e5(0x2c3)](_0x2dfcb1,_0x12b092){const _0x3dc5e=_0x4f02e5;var _0x501e4d;let {unitID:_0xa06f50,type:_0x14270a,revision:_0x206339=0x0}=_0x12b092,_0x166dd2=this[_0x3dc5e(0x364)]()+'/'+_0x14270a+_0x3dc5e(0x237)+_0xa06f50+_0x3dc5e(0x442)+_0x206339,_0x148e25=(await this[_0x3dc5e(0x286)][_0x3dc5e(0x272)](_0x166dd2))[_0x3dc5e(0x3b8)],_0x132477=(_0x501e4d=_0x148e25[_0x3dc5e(0x51d)])==null?void 0x0:_0x501e4d[_0x3dc5e(0x2d9)];if(_0x132477){let _0x4276c6=_0x132477==null?void 0x0:_0x132477['originalMeta'];_0x132477[_0x3dc5e(0x4b7)]=_0xdffdbc[_0x3dc5e(0x285)][_0x3dc5e(0x35a)]((0x0,_0xdffdbc[_0x3dc5e(0x1f7)])(_0x4276c6)),Object[_0x3dc5e(0x553)](_0x132477['sheets'])[_0x3dc5e(0x217)](([,_0x1b784d])=>{const _0x19117a=_0x3dc5e;let _0x4d53ad=_0x1b784d['originalMeta'];_0x1b784d[_0x19117a(0x4b7)]=_0xdffdbc['textEncoder'][_0x19117a(0x35a)]((0x0,_0xdffdbc[_0x19117a(0x1f7)])(_0x4d53ad));});}return _0x148e25;}async[_0x4f02e5(0x489)](_0xab1dad,_0x27bdf1){const _0x5813f4=_0x4f02e5;let {unitID:_0x2395a7,type:_0x33b939,blockID:_0x50a3d4}=_0x27bdf1,_0x4519f0=this['_getAPIPrefix']()+'/'+_0x33b939+_0x5813f4(0x237)+_0x2395a7+_0x5813f4(0x49a)+_0x50a3d4;return(await this['_httpService'][_0x5813f4(0x272)](_0x4519f0))['body'];}async[_0x4f02e5(0x323)](_0x4457ed,_0x2c2558){const _0x5a54e2=_0x4f02e5;let {unitID:_0x3b4419,type:_0x37931a,blockID:_0x3cf519}=_0x2c2558,_0x1a5941=this[_0x5a54e2(0x3b7)]()+_0x5a54e2(0x49a)+_0x37931a+_0x5a54e2(0x237)+_0x3b4419+_0x5a54e2(0x49a)+_0x3cf519;return(await this[_0x5a54e2(0x286)]['get'](_0x1a5941))[_0x5a54e2(0x3b8)];}async[_0x4f02e5(0x482)](_0x9ac775,_0x13ba5d){const _0x4738b9=_0x4f02e5;let {unitID:_0x1bca4d,type:_0x215171,from:_0x50065d,to:_0x3b46c7}=_0x13ba5d,_0x4159d0=this[_0x4738b9(0x3b7)]()+'/'+_0x215171+_0x4738b9(0x237)+_0x1bca4d+_0x4738b9(0x441)+_0x50065d+_0x4738b9(0x303)+_0x3b46c7;return(await this['_httpService']['get'](_0x4159d0))['body'];}['getSnapshotAPIPath'](){const _0x4da2f6=_0x4f02e5;var _0x18e344;return(_0x18e344=this['_configService'][_0x4da2f6(0x2f7)](_0x4da2f6(0x2a6)))==null?this['_getAPIPrefix']():_0x18e344;}[_0x4f02e5(0x3b7)](){const _0x1af072=_0x4f02e5;var _0xcd132a;let _0x2b4302=this[_0x1af072(0x543)][_0x1af072(0x2f7)](_0x165ad1);return(_0xcd132a=_0x2b4302==null?void 0x0:_0x2b4302['snapshotServerUrl'])==null?_0x1af072(0x1ed):_0xcd132a;}async[_0x4f02e5(0x287)](_0x362455,_0x1e4076){const _0x5d5945=_0x4f02e5;let _0x517be4=_0x5d5945(0x419)+_0x1e4076[_0x5d5945(0x4d6)]+_0x5d5945(0x237)+_0x1e4076['unitID']+_0x5d5945(0x2e2);return(await this['_httpService'][_0x5d5945(0x272)](_0x517be4,{'params':{'resourceId':JSON['stringify'](_0x1e4076[_0x5d5945(0x312)])}}))[_0x5d5945(0x3b8)];}[_0x4f02e5(0x3a4)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4f02e5(0x42c)](){const _0x557f57=_0x4f02e5;throw Error(_0x557f57(0x49f));}[_0x4f02e5(0x309)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4f02e5(0x1f8)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4f02e5(0x367)](){const _0x138500=_0x4f02e5;throw Error(_0x138500(0x49f));}[_0x4f02e5(0x4db)](){const _0x4abf0b=_0x4f02e5;throw Error(_0x4abf0b(0x49f));}};_0x20ea90=_0x411a83([_0x2f2fb0(0x0,_0x5d4a9c[_0x4f02e5(0x4f1)]),_0x2f2fb0(0x1,(0x0,_0x5d4a9c['Inject'])(_0x1405b7[_0x4f02e5(0x30a)]))],_0x20ea90);let _0x48fef2=class extends _0x5d4a9c[_0x4f02e5(0x3d4)]{constructor(_0x3013f3,_0x5f05c5,_0x1fd653,_0x56b358,_0x17b279){super(_0x3013f3,_0x5f05c5,_0x1fd653),this['_transformService']=_0x56b358,this['_logService']=_0x17b279;}[_0x4f02e5(0x29d)](_0x384d9a,_0x20c49c){const _0x31ee60=_0x4f02e5;let _0x5b6ae3=this[_0x31ee60(0x3f1)](_0x384d9a);if(_0x5b6ae3)try{let _0x36c551=this[_0x31ee60(0x465)](_0x5b6ae3,_0x20c49c);this[_0x31ee60(0x548)](_0x384d9a,_0x36c551);}catch(_0x31c798){this['_logService'][_0x31ee60(0x363)]('[CollaborationUndoRedoService]',_0x31c798),this['_clearUndo'](_0x384d9a);}let _0x3a9576=this[_0x31ee60(0x230)](_0x384d9a);if(_0x3a9576)try{let _0x397100=this[_0x31ee60(0x465)](_0x3a9576,_0x20c49c);this[_0x31ee60(0x24d)](_0x384d9a,_0x397100);}catch(_0x292c4f){this['_logService'][_0x31ee60(0x363)](_0x292c4f),this[_0x31ee60(0x27f)](_0x384d9a);}}[_0x4f02e5(0x4b6)](_0x4caa34){const _0x2277d5=_0x4f02e5;let _0x3ca9dc=this[_0x2277d5(0x3f1)](_0x4caa34);_0x3ca9dc&&(_0x3ca9dc[_0x2277d5(0x48e)]=0x0,this[_0x2277d5(0x343)]());}['_clearRedo'](_0x539c91){const _0x5928e7=_0x4f02e5;let _0x34fb0d=this[_0x5928e7(0x230)](_0x539c91);_0x34fb0d&&(_0x34fb0d[_0x5928e7(0x48e)]=0x0,this[_0x5928e7(0x343)]());}['_substituteUndoStack'](_0x1ad9a1,_0x3f480a){const _0x18c769=_0x4f02e5;this[_0x18c769(0x368)]['set'](_0x1ad9a1,_0x3f480a),this['_updateStatus']();}[_0x4f02e5(0x24d)](_0x24fec7,_0x5bcb69){const _0xb3199e=_0x4f02e5;this[_0xb3199e(0x326)][_0xb3199e(0x297)](_0x24fec7,_0x5bcb69),this[_0xb3199e(0x343)]();}[_0x4f02e5(0x465)](_0x57e5a4,_0x10ece2){const _0x21bdd3=_0x4f02e5;let _0x28ea96=[],_0x3c5108=_0x10ece2,_0x7e2811=_0x10ece2;for(let _0x4123c8=_0x57e5a4[_0x21bdd3(0x48e)]-0x1;_0x4123c8>=0x0;_0x4123c8--){let {unitID:_0x28a47c,undoMutations:_0x519610,redoMutations:_0x31cf7e}=_0x57e5a4[_0x4123c8],_0x3f5589=this['_transformService'][_0x21bdd3(0x38d)](_0x3c5108,_0x519610),_0x509f6b=this[_0x21bdd3(0x3fb)][_0x21bdd3(0x38d)](_0x7e2811,_0x31cf7e);if((0x0,_0xdffdbc[_0x21bdd3(0x311)])(_0x3f5589)||(0x0,_0xdffdbc[_0x21bdd3(0x311)])(_0x509f6b)){this[_0x21bdd3(0x431)]['error'](_0x21bdd3(0x49c),'transformStack\x20failed!',_0x3f5589,_0x509f6b);break;}_0x3c5108=_0x3f5589[_0x21bdd3(0x25b)],_0x7e2811=_0x509f6b[_0x21bdd3(0x25b)],_0x28ea96[_0x21bdd3(0x2c4)]({'unitID':_0x28a47c,'undoMutations':_0x3f5589[_0x21bdd3(0x3ac)],'redoMutations':_0x509f6b['m2Prime']});}return _0x28ea96['reverse']();}};_0x48fef2=_0x411a83([_0x2f2fb0(0x0,_0x5d4a9c['IUniverInstanceService']),_0x2f2fb0(0x1,_0x5d4a9c[_0x4f02e5(0x4f9)]),_0x2f2fb0(0x2,_0x5d4a9c[_0x4f02e5(0x384)]),_0x2f2fb0(0x3,_0xdffdbc[_0x4f02e5(0x1f2)]),_0x2f2fb0(0x4,_0x5d4a9c[_0x4f02e5(0x33a)])],_0x48fef2);let _0x332225=class extends _0x5d4a9c[_0x4f02e5(0x518)]{constructor(_0x1d4ebb=_0x146cb0,_0x3f28e5,_0x4d0448,_0x17fff4){const _0xcbb99b=_0x4f02e5;super(),this[_0xcbb99b(0x434)]=_0x1d4ebb,this[_0xcbb99b(0x431)]=_0x3f28e5,this[_0xcbb99b(0x22d)]=_0x4d0448,this[_0xcbb99b(0x543)]=_0x17fff4;let {..._0x4a0385}=(0x0,_0x5d4a9c['merge'])({},_0x146cb0,this[_0xcbb99b(0x434)]);if(!_0x4a0385[_0xcbb99b(0x39a)])throw Error(_0xcbb99b(0x3f6));this[_0xcbb99b(0x434)]=_0x4a0385,this[_0xcbb99b(0x543)]['setConfig'](_0x165ad1,_0x4a0385);}['onStarting'](){const _0x41ac68=_0x4f02e5;this[_0x41ac68(0x30e)](),this[_0x41ac68(0x204)]();}[_0x4f02e5(0x30e)](){const _0x375c89=_0x4f02e5;var _0x2fca17,_0x536b9a;this[_0x375c89(0x22d)][_0x375c89(0x32d)](_0x5d4a9c[_0x375c89(0x314)])&&this[_0x375c89(0x431)][_0x375c89(0x363)](_0x375c89(0x2da),_0x375c89(0x27a));let _0x59f87e=(0x0,_0x5d4a9c[_0x375c89(0x316)])([[_0x5d4a9c['IUndoRedoService'],{'useClass':_0x48fef2}],[_0x4d7dfa,{'useValue':_0x34f7ec()}],[_0x187f66],[_0x41fab1],[_0x1af5bb],[_0x27c85d],[_0x162431],[_0x33d67b],[_0x303a66],[_0xaaa1eb],[_0x1b0cbb],[_0x1589e2,{'useClass':this[_0x375c89(0x434)][_0x375c89(0x39a)]}],[_0xdffdbc[_0x375c89(0x318)],{'useClass':_0x20ea90}],[_0x5d4a9c[_0x375c89(0x495)],{'useClass':_0x44dc7b}],[_0x5d4a9c[_0x375c89(0x2e5)],{'useClass':_0xb8ec3}],[_0x500d70,{'useClass':_0x306f93}],[_0x5d4a9c[_0x375c89(0x28c)],{'useClass':_0x4edda7}],[_0x5985ca],[_0x4dbe67]],(_0x2fca17=this[_0x375c89(0x434)])==null?void 0x0:_0x2fca17[_0x375c89(0x248)]);if(!((_0x536b9a=this[_0x375c89(0x434)])!=null&&_0x536b9a['enableSingleActiveInstanceLock'])){let _0x5640b4=_0x59f87e[_0x375c89(0x344)](([_0x3f585e])=>_0x3f585e===_0x2bf173);_0x5640b4!==-0x1&&_0x59f87e['splice'](_0x5640b4,0x1);}(0x0,_0x5d4a9c[_0x375c89(0x50a)])(this[_0x375c89(0x22d)],_0x59f87e);}[_0x4f02e5(0x204)](){const _0x1c6a46=_0x4f02e5;var _0x5f3a8b,_0x53e9c2;if(this[_0x1c6a46(0x22d)]['get'](_0x1405b7[_0x1c6a46(0x30a)])[_0x1c6a46(0x35e)]({'priority':0x14,'interceptor':(0x0,_0x1405b7['ThresholdInterceptorFactory'])({'maxParallel':0x6})}),!((_0x5f3a8b=this[_0x1c6a46(0x434)])!=null&&_0x5f3a8b[_0x1c6a46(0x2e3)])){var _0x1ba389;(_0x1ba389=this[_0x1c6a46(0x22d)][_0x1c6a46(0x272)](_0x207b84,_0x5d4a9c[_0x1c6a46(0x447)][_0x1c6a46(0x53e)]))==null||_0x1ba389[_0x1c6a46(0x348)]();}(_0x53e9c2=this[_0x1c6a46(0x434)])!=null&&_0x53e9c2['enableAuthServer']&&(0x0,_0x5d4a9c[_0x1c6a46(0x2f3)])(this[_0x1c6a46(0x22d)],[[_0x27c85d]]),(0x0,_0x5d4a9c[_0x1c6a46(0x2f3)])(this[_0x1c6a46(0x22d)],[[_0x162431],[_0x5985ca],[_0x303a66]]);}};_0xef01a1(_0x332225,_0x4f02e5(0x3db),_0x4f02e5(0x4bb)),_0xef01a1(_0x332225,'packageName',_0x1836d8),_0xef01a1(_0x332225,_0x4f02e5(0x2fc),_0x1fe685),_0x332225=_0x411a83([(0x0,_0x5d4a9c[_0x4f02e5(0x4fd)])(_0x11b136[_0x4f02e5(0x342)],_0xdffdbc[_0x4f02e5(0x1f1)],_0x1405b7[_0x4f02e5(0x246)]),_0x2f2fb0(0x1,_0x5d4a9c[_0x4f02e5(0x33a)]),_0x2f2fb0(0x2,(0x0,_0x5d4a9c[_0x4f02e5(0x2a7)])(_0x5d4a9c[_0x4f02e5(0x33d)])),_0x2f2fb0(0x3,_0x5d4a9c['IConfigService'])],_0x332225),_0x285584['AttachmentSourceType']=_0x35c469,Object[_0x4f02e5(0x220)](_0x285584,'AuthzIoHttpService',{'enumerable':!0x0,'get':function(){return _0x44dc7b;}}),Object[_0x4f02e5(0x220)](_0x285584,_0x4f02e5(0x3f2),{'enumerable':!0x0,'get':function(){return _0xd8acb7;}}),Object['defineProperty'](_0x285584,_0x4f02e5(0x53c),{'enumerable':!0x0,'get':function(){return _0x384168;}}),Object[_0x4f02e5(0x220)](_0x285584,_0x4f02e5(0x3fc),{'enumerable':!0x0,'get':function(){return _0x4dd63d;}}),Object[_0x4f02e5(0x220)](_0x285584,_0x4f02e5(0x275),{'enumerable':!0x0,'get':function(){return _0x24d1d6;}}),_0x285584[_0x4f02e5(0x381)]=_0x165ad1,Object[_0x4f02e5(0x220)](_0x285584,_0x4f02e5(0x44e),{'enumerable':!0x0,'get':function(){return _0x306f93;}}),Object[_0x4f02e5(0x220)](_0x285584,'CollaborationController',{'enumerable':!0x0,'get':function(){return _0x5985ca;}}),Object[_0x4f02e5(0x220)](_0x285584,_0x4f02e5(0x4dc),{'enumerable':!0x0,'get':function(){return _0x4a42ea;}}),Object[_0x4f02e5(0x220)](_0x285584,_0x4f02e5(0x510),{'enumerable':!0x0,'get':function(){return _0xb8ec3;}}),Object[_0x4f02e5(0x220)](_0x285584,_0x4f02e5(0x245),{'enumerable':!0x0,'get':function(){return _0x11d6a7;}}),Object[_0x4f02e5(0x220)](_0x285584,_0x4f02e5(0x538),{'enumerable':!0x0,'get':function(){return _0x187f66;}}),Object[_0x4f02e5(0x220)](_0x285584,_0x4f02e5(0x346),{'enumerable':!0x0,'get':function(){return _0x207798;}}),_0x285584[_0x4f02e5(0x426)]=_0x2a33e5,_0x285584['CollaborationUIEventId']=_0x3a4fbe,_0x285584[_0x4f02e5(0x528)]=_0xaaa1eb,Object['defineProperty'](_0x285584,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return _0x48fef2;}}),_0x285584[_0x4f02e5(0x484)]=_0x33d67b,Object[_0x4f02e5(0x220)](_0x285584,_0x4f02e5(0x2c6),{'enumerable':!0x0,'get':function(){return _0x41164a;}}),_0x285584[_0x4f02e5(0x28f)]=_0x38d0fe,_0x285584[_0x4f02e5(0x2c8)]='/universer-api/uniscript',_0x285584['DEFAULT_WS_SESSION_TICKET_URL']=_0x4f02e5(0x32e),Object[_0x4f02e5(0x220)](_0x285584,_0x4f02e5(0x29e),{'enumerable':!0x0,'get':function(){return _0x1b0cbb;}}),Object[_0x4f02e5(0x220)](_0x285584,_0x4f02e5(0x550),{'enumerable':!0x0,'get':function(){return _0x421885;}}),Object[_0x4f02e5(0x220)](_0x285584,_0x4f02e5(0x3f8),{'enumerable':!0x0,'get':function(){return _0x52059d;}}),_0x285584[_0x4f02e5(0x2f1)]=_0x4f02e5(0x486),_0x285584[_0x4f02e5(0x4ba)]='HEARTBEAT_TIMEOUT',_0x285584[_0x4f02e5(0x475)]=_0x500d70,_0x285584[_0x4f02e5(0x4ff)]=_0x4d7dfa,_0x285584[_0x4f02e5(0x2be)]=_0x1589e2,_0x285584[_0x4f02e5(0x262)]=_0x207b84,_0x285584[_0x4f02e5(0x4af)]=_0x3d71be,_0x285584[_0x4f02e5(0x3d9)]=_0x2bf173,_0x285584['LOCAL_CACHE_INTERVAL']=0x3e8,_0x285584['LOCAL_CACHE_INTERVAL_KEY']='LOCAL_CACHE_INTERVAL',Object[_0x4f02e5(0x220)](_0x285584,'MemberService',{'enumerable':!0x0,'get':function(){return _0x41fab1;}}),Object[_0x4f02e5(0x220)](_0x285584,_0x4f02e5(0x338),{'enumerable':!0x0,'get':function(){return _0x4edda7;}}),Object['defineProperty'](_0x285584,_0x4f02e5(0x388),{'enumerable':!0x0,'get':function(){return _0x5aca18;}}),Object['defineProperty'](_0x285584,_0x4f02e5(0x205),{'enumerable':!0x0,'get':function(){return _0x5c7573;}}),_0x285584[_0x4f02e5(0x2d1)]=_0x4f02e5(0x4d5),_0x285584[_0x4f02e5(0x27e)]=_0x4f02e5(0x4ec),_0x285584[_0x4f02e5(0x313)]=_0x3e9f1e,Object[_0x4f02e5(0x220)](_0x285584,_0x4f02e5(0x334),{'enumerable':!0x0,'get':function(){return _0x1f94eb;}}),Object[_0x4f02e5(0x220)](_0x285584,_0x4f02e5(0x23c),{'enumerable':!0x0,'get':function(){return _0x1af5bb;}}),Object[_0x4f02e5(0x220)](_0x285584,_0x4f02e5(0x4a6),{'enumerable':!0x0,'get':function(){return _0xc056a2;}}),Object[_0x4f02e5(0x220)](_0x285584,_0x4f02e5(0x34f),{'enumerable':!0x0,'get':function(){return _0x20ea90;}}),Object[_0x4f02e5(0x220)](_0x285584,'SyncedState',{'enumerable':!0x0,'get':function(){return _0x1707ff;}}),_0x285584['UnitStatus']=_0x546258,Object[_0x4f02e5(0x220)](_0x285584,_0x4f02e5(0x351),{'enumerable':!0x0,'get':function(){return _0x332225;}}),_0x285584[_0x4f02e5(0x4bc)]=_0x34f7ec,_0x285584[_0x4f02e5(0x455)]=_0x5497e4,_0x285584['getLocalCacheKey']=_0x441e12,_0x285584['serializeCombRequest']=_0x103c98;}));
1
+ function _0x2b93(_0x453626,_0x42080f){_0x453626=_0x453626-0xc3;const _0x184503=_0x1845();let _0x2b935f=_0x184503[_0x453626];return _0x2b935f;}(function(_0x518ed7,_0x4d7e7a){const _0x212e04=_0x2b93,_0x56a473=_0x518ed7();while(!![]){try{const _0x5dcf11=parseInt(_0x212e04(0x2c4))/0x1+parseInt(_0x212e04(0x262))/0x2+parseInt(_0x212e04(0x27b))/0x3+-parseInt(_0x212e04(0x3bc))/0x4+parseInt(_0x212e04(0x3bb))/0x5*(-parseInt(_0x212e04(0x16d))/0x6)+-parseInt(_0x212e04(0x309))/0x7+parseInt(_0x212e04(0x35a))/0x8*(parseInt(_0x212e04(0x258))/0x9);if(_0x5dcf11===_0x4d7e7a)break;else _0x56a473['push'](_0x56a473['shift']());}catch(_0x2f29e0){_0x56a473['push'](_0x56a473['shift']());}}}(_0x1845,0xb4faf),function(_0x11a0db,_0x1c65fe){const _0xedd403=_0x2b93;typeof exports=='object'&&typeof module<'u'?_0x1c65fe(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==_0xedd403(0x259)&&define[_0xedd403(0x13e)]?define(['exports','@univerjs-pro/collaboration',_0xedd403(0x35f),_0xedd403(0x16c),_0xedd403(0x302),_0xedd403(0x25a),_0xedd403(0x39e),'@univerjs/telemetry',_0xedd403(0x100),_0xedd403(0x202),_0xedd403(0x2d4),_0xedd403(0x38a),_0xedd403(0xd2)],_0x1c65fe):(_0x11a0db=typeof globalThis<'u'?globalThis:_0x11a0db||self,_0x1c65fe(_0x11a0db[_0xedd403(0x3b7)]={},_0x11a0db[_0xedd403(0x398)],_0x11a0db[_0xedd403(0x1eb)],_0x11a0db['UniverDocs'],_0x11a0db['UniverSheets'],_0x11a0db['rxjs'],_0x11a0db['UniverProtocol'],_0x11a0db['UniverTelemetry'],_0x11a0db[_0xedd403(0x25a)][_0xedd403(0x1e7)],_0x11a0db[_0xedd403(0x216)],_0x11a0db[_0xedd403(0x2d5)],_0x11a0db[_0xedd403(0x260)],_0x11a0db[_0xedd403(0x201)]));}(this,function(_0x15bcea,_0x4c2ece,_0x868841,_0x45a7a0,_0x1d347c,_0x409690,_0x1df2bb,_0x5a2801,_0x4f74e1,_0x5aad88,_0x8bc35f,_0xae8d13,_0x50acd0){const _0x21648f=_0x2b93;Object['defineProperty'](_0x15bcea,Symbol['toStringTag'],{'value':_0x21648f(0x3a2)});let _0x4b92ba='collaboration-client.config',_0x361839={},_0x3838c0=_0x21648f(0x2e8),_0x4067ce=0x4e20;function _0x503d89(_0x1a26fd){const _0x3b3adc=_0x21648f;return JSON[_0x3b3adc(0x102)](_0x1a26fd)['length'];}function _0x1ba9b8(_0x34130b){'@babel/helpers - typeof';const _0x2ea7a0=_0x21648f;return _0x1ba9b8=typeof Symbol==_0x2ea7a0(0x259)&&typeof Symbol[_0x2ea7a0(0x3ef)]=='symbol'?function(_0x52a812){return typeof _0x52a812;}:function(_0x2bd6c4){const _0x3e61fc=_0x2ea7a0;return _0x2bd6c4&&typeof Symbol=='function'&&_0x2bd6c4[_0x3e61fc(0x32e)]===Symbol&&_0x2bd6c4!==Symbol[_0x3e61fc(0x180)]?_0x3e61fc(0x12d):typeof _0x2bd6c4;},_0x1ba9b8(_0x34130b);}function _0xa931ec(_0x57b192,_0x238a0b){const _0x26a046=_0x21648f;if(_0x1ba9b8(_0x57b192)!=_0x26a046(0x2a6)||!_0x57b192)return _0x57b192;var _0xfce670=_0x57b192[Symbol[_0x26a046(0x3fe)]];if(_0xfce670!==void 0x0){var _0x33ce7b=_0xfce670[_0x26a046(0x257)](_0x57b192,_0x238a0b||'default');if(_0x1ba9b8(_0x33ce7b)!=_0x26a046(0x2a6))return _0x33ce7b;throw TypeError(_0x26a046(0x30a));}return(_0x238a0b===_0x26a046(0x353)?String:Number)(_0x57b192);}function _0x493338(_0xdcd2d2){const _0x17cf5d=_0x21648f;var _0x53774d=_0xa931ec(_0xdcd2d2,_0x17cf5d(0x353));return _0x1ba9b8(_0x53774d)==_0x17cf5d(0x12d)?_0x53774d:_0x53774d+'';}function _0x6d65c2(_0x45be95,_0x1a8ec8,_0x140abe){const _0x1c36dd=_0x21648f;return(_0x1a8ec8=_0x493338(_0x1a8ec8))in _0x45be95?Object[_0x1c36dd(0x131)](_0x45be95,_0x1a8ec8,{'value':_0x140abe,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x45be95[_0x1a8ec8]=_0x140abe,_0x45be95;}let _0x1ca442=function(_0x412781){const _0xd4730d=_0x21648f;return _0x412781[_0xd4730d(0x1aa)]=_0xd4730d(0x1aa),_0x412781['PERMISSION_DENIED']='PERMISSION_DENIED',_0x412781['CONFLICT']=_0xd4730d(0xdf),_0x412781['CLOSE_ROOM']='CLOSE_ROOM',_0x412781[_0xd4730d(0x256)]=_0xd4730d(0x256),_0x412781[_0xd4730d(0x363)]=_0xd4730d(0x363),_0x412781[_0xd4730d(0x1bf)]=_0xd4730d(0x1bf),_0x412781['SUBMIT_CHANGESET_TIMEOUT']=_0xd4730d(0x208),_0x412781;}({});var _0x55b02d=class{constructor(){const _0x2912c4=_0x21648f;_0x6d65c2(this,_0x2912c4(0x397),new _0x409690[(_0x2912c4(0x409))]()),_0x6d65c2(this,_0x2912c4(0x219),this[_0x2912c4(0x397)][_0x2912c4(0x340)]());}['emitEvent'](_0xd7f722){const _0x545918=_0x21648f;this[_0x545918(0x397)][_0x545918(0xdd)](_0xd7f722);}},_0x278d59=class{constructor(){const _0x4bd0a1=_0x21648f;_0x6d65c2(this,'_commentUpdate$',new _0x409690[(_0x4bd0a1(0x409))]()),_0x6d65c2(this,_0x4bd0a1(0x20d),this[_0x4bd0a1(0x22b)]['asObservable']());}['onCommentUpdate'](_0x2967f6){const _0x242c9f=_0x21648f;this[_0x242c9f(0x22b)][_0x242c9f(0xdd)](_0x2967f6);}};function _0x273192(_0x317ef7,_0x1c783b){return function(_0x58a84b,_0x2cf3b0){_0x1c783b(_0x58a84b,_0x2cf3b0,_0x317ef7);};}function _0x3e0941(_0x1c346d,_0xca1e8e,_0x495f91,_0x3f2aa8){const _0x1d4be8=_0x21648f;var _0x210ff9=arguments[_0x1d4be8(0x207)],_0x26f230=_0x210ff9<0x3?_0xca1e8e:_0x3f2aa8===null?_0x3f2aa8=Object[_0x1d4be8(0xee)](_0xca1e8e,_0x495f91):_0x3f2aa8,_0x11ea26;if(typeof Reflect==_0x1d4be8(0x2a6)&&typeof Reflect[_0x1d4be8(0x377)]=='function')_0x26f230=Reflect[_0x1d4be8(0x377)](_0x1c346d,_0xca1e8e,_0x495f91,_0x3f2aa8);else{for(var _0x2ea1e7=_0x1c346d[_0x1d4be8(0x207)]-0x1;_0x2ea1e7>=0x0;_0x2ea1e7--)(_0x11ea26=_0x1c346d[_0x2ea1e7])&&(_0x26f230=(_0x210ff9<0x3?_0x11ea26(_0x26f230):_0x210ff9>0x3?_0x11ea26(_0xca1e8e,_0x495f91,_0x26f230):_0x11ea26(_0xca1e8e,_0x495f91))||_0x26f230);}return _0x210ff9>0x3&&_0x26f230&&Object[_0x1d4be8(0x131)](_0xca1e8e,_0x495f91,_0x26f230),_0x26f230;}let _0x568427=class extends _0x868841[_0x21648f(0x25b)]{constructor(_0x37a3b5,_0x337d70){const _0x33c3cf=_0x21648f;super(),this['_univerInstanceService']=_0x37a3b5,this[_0x33c3cf(0x37f)]=_0x337d70,_0x6d65c2(this,_0x33c3cf(0x292),new Map()),_0x6d65c2(this,_0x33c3cf(0x289),new _0x409690[(_0x33c3cf(0x409))]()),this[_0x33c3cf(0xd1)]((0x0,_0x409690[_0x33c3cf(0x382)])(this[_0x33c3cf(0x32f)][_0x33c3cf(0x166)](_0x868841[_0x33c3cf(0x2f8)][_0x33c3cf(0x23b)])[_0x33c3cf(0x320)]((0x0,_0x4f74e1[_0x33c3cf(0x26e)])(_0x1fa643=>_0x1fa643[_0x33c3cf(0x128)]())),this[_0x33c3cf(0x32f)][_0x33c3cf(0x166)](_0x868841['UniverInstanceType'][_0x33c3cf(0x332)])['pipe']((0x0,_0x4f74e1[_0x33c3cf(0x26e)])(_0x5ade4a=>_0x5ade4a[_0x33c3cf(0x128)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x868841['UniverInstanceType'][_0x33c3cf(0x28a)])['pipe']((0x0,_0x4f74e1[_0x33c3cf(0x26e)])(_0x27749a=>_0x27749a[_0x33c3cf(0x128)]())),this['_univerInstanceService'][_0x33c3cf(0x166)](_0x868841[_0x33c3cf(0x2f8)][_0x33c3cf(0x2a9)])['pipe']((0x0,_0x4f74e1['map'])(_0xc5603d=>_0xc5603d[_0x33c3cf(0x128)]())))['subscribe'](_0x361a0c=>this[_0x33c3cf(0x2da)](_0x361a0c)));}[_0x21648f(0x39d)](_0x207b9d){const _0x5a5a40=_0x21648f;return this[_0x5a5a40(0x292)][_0x5a5a40(0x215)](_0x207b9d)?(0x0,_0x409690['of'])(this[_0x5a5a40(0x292)][_0x5a5a40(0x224)](_0x207b9d)):this['_roomCreated$'][_0x5a5a40(0x320)]((0x0,_0x4f74e1[_0x5a5a40(0x26e)])(_0x2633d7=>{const _0x3cc90e=_0x5a5a40;if(_0x2633d7===_0x207b9d)return this[_0x3cc90e(0x292)]['get'](_0x2633d7);}));}[_0x21648f(0x380)](_0x68cc0f){const _0x57901b=_0x21648f;this['_userManagerService'][_0x57901b(0x380)](_0x68cc0f);}[_0x21648f(0x11f)](){const _0x52ba7f=_0x21648f;return this[_0x52ba7f(0x37f)][_0x52ba7f(0x11f)]();}[_0x21648f(0x10e)](_0x58960c,_0x1c8856){const _0x7e42d=_0x21648f;let _0x3298f8=this[_0x7e42d(0x292)][_0x7e42d(0x224)](_0x58960c);_0x3298f8||(_0x3298f8=new _0x3c8861(),this[_0x7e42d(0x292)][_0x7e42d(0x213)](_0x58960c,_0x3298f8),this[_0x7e42d(0x289)][_0x7e42d(0xdd)](_0x58960c)),_0x3298f8[_0x7e42d(0x10e)](_0x1c8856);}[_0x21648f(0x19e)](_0x2c3260,_0x393262){const _0x280e53=_0x21648f;let _0x3e82c0=this[_0x280e53(0x292)]['get'](_0x2c3260);_0x3e82c0&&_0x3e82c0[_0x280e53(0x19e)](_0x393262);}[_0x21648f(0x2ca)](_0x18e50a){const _0x4e3eae=_0x21648f;return this[_0x4e3eae(0x292)][_0x4e3eae(0x224)](_0x18e50a);}['getMember'](_0xa618b0,_0x1adbde){const _0x215de3=_0x21648f;let _0x59153e=this[_0x215de3(0x292)]['get'](_0xa618b0);if(_0x59153e)return _0x59153e[_0x215de3(0x1b0)](_0x1adbde);}[_0x21648f(0x2da)](_0x2bf0fe){const _0x7074d5=_0x21648f;let _0x318d87=this[_0x7074d5(0x292)][_0x7074d5(0x224)](_0x2bf0fe);_0x318d87&&(_0x318d87['dispose'](),this[_0x7074d5(0x292)]['delete'](_0x2bf0fe));}[_0x21648f(0x265)](){const _0x302eb1=_0x21648f;this[_0x302eb1(0x292)][_0x302eb1(0x352)](_0x36e006=>_0x36e006[_0x302eb1(0x265)]()),this[_0x302eb1(0x292)][_0x302eb1(0x13a)](),this[_0x302eb1(0x289)]['complete']();}};_0x568427=_0x3e0941([_0x273192(0x0,_0x868841[_0x21648f(0x214)]),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x297)]))],_0x568427);var _0x3c8861=class extends _0x868841[_0x21648f(0x25b)]{constructor(..._0xf3e333){const _0x4be757=_0x21648f;super(..._0xf3e333),_0x6d65c2(this,_0x4be757(0x2dc),new Map()),_0x6d65c2(this,_0x4be757(0x1cc),new _0x409690[(_0x4be757(0x193))](this[_0x4be757(0x2dc)])),_0x6d65c2(this,'members$',this[_0x4be757(0x1cc)][_0x4be757(0x340)]());}['dispose'](){const _0x586482=_0x21648f;this[_0x586482(0x2dc)][_0x586482(0x13a)](),this['_members$'][_0x586482(0x3f5)]();}[_0x21648f(0x10e)](_0x5344ab){const _0x14a14e=_0x21648f;this[_0x14a14e(0x2dc)][_0x14a14e(0x213)](_0x5344ab[_0x14a14e(0x14c)],_0x5344ab),this[_0x14a14e(0x2e5)]();}[_0x21648f(0x19e)](_0x2a135d){const _0x5ad294=_0x21648f;this[_0x5ad294(0x2dc)][_0x5ad294(0xe0)](_0x2a135d),this[_0x5ad294(0x2e5)]();}['getMember'](_0x56f3fb){const _0x1b95cb=_0x21648f;return this[_0x1b95cb(0x2dc)]['get'](_0x56f3fb);}[_0x21648f(0x140)](){const _0x53a875=_0x21648f;return Array[_0x53a875(0x1a1)](this[_0x53a875(0x2dc)][_0x53a875(0x2d7)]());}[_0x21648f(0x2e5)](){const _0x56ee22=_0x21648f;this['_members$'][_0x56ee22(0xdd)](this[_0x56ee22(0x2dc)]);}};function _0x1d758e(_0x1e0b67,_0x484380){const _0x1e429d=_0x21648f;if(_0xf42fbb(_0x1e0b67))return _0x484380;if(_0x484380[_0x1e429d(0x1d9)]===_0x4c2ece[_0x1e429d(0x343)]['SUBMIT_CHANGESET']){var _0x2f2ebc;let _0x14f98c=_0x155741(_0x1e0b67),_0x5662b2=_0x484380;return{..._0x5662b2,'data':{..._0x5662b2['data'],'unitID':_0x1e0b67['target'][_0x1e429d(0x3b9)],'unitType':(_0x2f2ebc=_0x1e0b67['target'][_0x1e429d(0x172)])==null?_0x5662b2[_0x1e429d(0x29b)][_0x1e429d(0x172)]:_0x2f2ebc,'changeset':_0x14f98c[_0x1e429d(0x3fc)](_0x5662b2[_0x1e429d(0x29b)][_0x1e429d(0x17b)],_0xe428e0(_0x1e0b67))}};}if(_0x484380[_0x1e429d(0x1d9)]===_0x4c2ece['CollaborationEvent'][_0x1e429d(0x2f4)]){var _0x1dfe18;let _0x512963=_0x484380;return{..._0x512963,'data':{..._0x512963[_0x1e429d(0x29b)],'unitID':_0x1e0b67[_0x1e429d(0x355)]['unitId'],'unitType':(_0x1dfe18=_0x1e0b67[_0x1e429d(0x355)][_0x1e429d(0x172)])==null?_0x512963[_0x1e429d(0x29b)]['unitType']:_0x1dfe18}};}return _0x484380;}function _0xee3e37(_0xeb5ccf,_0x5c118a){const _0x161465=_0x21648f;if(_0xf42fbb(_0xeb5ccf))return[_0x5c118a];switch(_0x5c118a['eventID']){case _0x4c2ece[_0x161465(0x343)][_0x161465(0x174)]:return[_0x36cfc6(_0xeb5ccf,_0x5c118a)];case _0x4c2ece[_0x161465(0x343)][_0x161465(0x26a)]:return[_0x2140ec(_0xeb5ccf,_0x5c118a)];case _0x4c2ece['CollaborationEvent']['CHANGESET_SHOULD_RETRY']:return[_0x5178e5(_0xeb5ccf,_0x5c118a)];default:return[_0x5c118a];}}function _0xf42fbb(_0x4d1ef2){const _0x22b3e5=_0x21648f;return _0x4d1ef2[_0x22b3e5(0x355)][_0x22b3e5(0x3db)]==null&&_0x4d1ef2[_0x22b3e5(0x355)][_0x22b3e5(0x3b9)]===_0x4d1ef2[_0x22b3e5(0x3bf)]&&!_0x4d1ef2[_0x22b3e5(0x17b)];}function _0x36cfc6(_0x3ce053,_0x5a057f){const _0x38833f=_0x21648f;return{..._0x5a057f,'data':(0x0,_0x4c2ece[_0x38833f(0x383)])(_0x59be3c(_0x3ce053,(0x0,_0x4c2ece[_0x38833f(0x3bd)])(_0x5a057f[_0x38833f(0x29b)])))};}function _0x5178e5(_0x3421ab,_0x521940){const _0x2f7c35=_0x21648f;return{..._0x521940,'data':_0x59be3c(_0x3421ab,_0x521940[_0x2f7c35(0x29b)])};}function _0x2140ec(_0x59d97d,_0x2fb5ee){const _0x4ba596=_0x21648f;let _0x54621f=_0x2fb5ee['data'];return{..._0x2fb5ee,'data':{..._0x54621f,'changesets':_0x54621f['changesets']['map'](_0x23b90b=>(0x0,_0x4c2ece[_0x4ba596(0x383)])(_0x59be3c(_0x59d97d,(0x0,_0x4c2ece['parseProtocolChangeset'])(_0x23b90b))))}};}function _0x59be3c(_0x2fcb2c,_0x2eb16e){const _0x28f6e5=_0x21648f;return _0x155741(_0x2fcb2c)[_0x28f6e5(0x136)](_0x2eb16e,_0xe428e0(_0x2fcb2c));}function _0x155741(_0xf62f0a){const _0x2fcdc3=_0x21648f;if(!_0xf62f0a[_0x2fcdc3(0x17b)])throw Error(_0x2fcdc3(0x223));return _0xf62f0a[_0x2fcdc3(0x17b)];}function _0xe428e0(_0x21d3d3){const _0x2d257d=_0x21648f;return{'localUnitId':_0x21d3d3[_0x2d257d(0x3bf)],'unitType':_0x21d3d3['unitType'],'target':_0x21d3d3[_0x2d257d(0x355)]};}let _0x138ed3=function(_0xc73412){const _0x5dd4fd=_0x21648f;return _0xc73412[_0xc73412[_0x5dd4fd(0x384)]=0x0]=_0x5dd4fd(0x384),_0xc73412[_0xc73412[_0x5dd4fd(0x337)]=0x1]=_0x5dd4fd(0x337),_0xc73412[_0xc73412[_0x5dd4fd(0x33b)]=0x2]=_0x5dd4fd(0x33b),_0xc73412[_0xc73412[_0x5dd4fd(0x2c5)]=0x3]=_0x5dd4fd(0x2c5),_0xc73412;}({}),_0x12cc86={[_0x1df2bb[_0x21648f(0x17a)][_0x21648f(0x15e)]]:_0x21648f(0x2b0),[_0x1df2bb[_0x21648f(0x17a)]['JOIN_ROOM_FULL']]:'session.room-full',[_0x1df2bb[_0x21648f(0x17a)][_0x21648f(0x27c)]]:_0x21648f(0xea),[_0x1df2bb[_0x21648f(0x17a)][_0x21648f(0x3c8)]]:_0x21648f(0x3d7),[_0x1df2bb[_0x21648f(0x17a)][_0x21648f(0xcb)]]:_0x21648f(0x1c7)},_0x4d2902=class extends _0x868841['RxDisposable']{get['sessionStatus'](){const _0x1bafdd=_0x21648f;return this[_0x1bafdd(0x147)][_0x1bafdd(0x2eb)]();}constructor(_0x5e1116,_0x22a20e,_0x255952,_0x371f34,_0x4bd640,_0x5b2056,_0x32cf60,_0x37f0dd){const _0x1e5c9=_0x21648f;super(),this[_0x1e5c9(0x1bc)]=_0x5e1116,this['_logService']=_0x255952,this['_configService']=_0x371f34,this[_0x1e5c9(0x132)]=_0x4bd640,this[_0x1e5c9(0x40c)]=_0x5b2056,this['_collaborationUIEventService']=_0x32cf60,this[_0x1e5c9(0x34a)]=_0x37f0dd,_0x6d65c2(this,'_sessionStatus$',new _0x409690[(_0x1e5c9(0x193))](0x0)),_0x6d65c2(this,_0x1e5c9(0x1ce),this[_0x1e5c9(0x147)][_0x1e5c9(0x340)]()),_0x6d65c2(this,_0x1e5c9(0x397),new _0x409690['Subject']()),_0x6d65c2(this,'event$',this[_0x1e5c9(0x397)][_0x1e5c9(0x340)]()),_0x6d65c2(this,'_socket',void 0x0),_0x6d65c2(this,_0x1e5c9(0x167),void 0x0),_0x6d65c2(this,'_collaborationTimeoutTimer',void 0x0),_0x6d65c2(this,_0x1e5c9(0x34d),!0x1),_0x6d65c2(this,_0x1e5c9(0x1fb),null),this[_0x1e5c9(0x34d)]=!!this['_telemetryService'],_0x22a20e[_0x1e5c9(0x320)]((0x0,_0x409690['takeUntil'])(this['dispose$']))[_0x1e5c9(0x3b6)](_0xaa9a5d=>{const _0x19c432=_0x1e5c9;if(_0xaa9a5d!==void 0x0){if(this[_0x19c432(0x1b2)]=_0xaa9a5d,_0xaa9a5d)this[_0x19c432(0x2cf)](_0xaa9a5d),this[_0x19c432(0x167)]=_0xaa9a5d['message$'][_0x19c432(0x3b6)](_0x40a5d8=>{const _0x4c3eb7=_0x19c432;_0x40a5d8['routeKey']===this['_identity']['target'][_0x4c3eb7(0x3b9)]&&this[_0x4c3eb7(0x3f6)](_0x40a5d8);});else{var _0x414b73;this[_0x19c432(0x199)](),this[_0x19c432(0x147)][_0x19c432(0xdd)](0x2),(_0x414b73=this[_0x19c432(0x167)])==null||_0x414b73[_0x19c432(0x157)](),this['_socketMessageSubscription']=null;}}});}['getMemberID'](){const _0x558dc3=_0x21648f;var _0xac5f28,_0x5f345e;return(_0xac5f28=(_0x5f345e=this['_socket'])==null?void 0x0:_0x5f345e[_0x558dc3(0x14c)])==null?null:_0xac5f28;}[_0x21648f(0x265)](){const _0x511529=_0x21648f;super[_0x511529(0x265)](),this[_0x511529(0x3da)](),this['dispose$'][_0x511529(0xdd)](),this[_0x511529(0xf2)][_0x511529(0x3f5)]();}[_0x21648f(0x3da)](){const _0x51a986=_0x21648f;var _0xf65532;this[_0x51a986(0x199)](),(_0xf65532=this['_socket'])==null||_0xf65532[_0x51a986(0x182)]({'cmd':_0x1df2bb[_0x51a986(0x3d6)][_0x51a986(0x168)],'data':{'roomID':this[_0x51a986(0x1bc)]['target'][_0x51a986(0x3b9)]}}),this['_event$'][_0x51a986(0x3f5)](),this[_0x51a986(0x147)][_0x51a986(0x3f5)]();}[_0x21648f(0x3f6)](_0xcb15b4){const _0x3e2e97=_0x21648f;_0xcb15b4[_0x3e2e97(0x26b)]===_0x1df2bb[_0x3e2e97(0x3d6)]['JOIN']?this['_onJoinRoomEvent'](_0xcb15b4):_0xcb15b4[_0x3e2e97(0x26b)]===_0x1df2bb[_0x3e2e97(0x3d6)][_0x3e2e97(0x176)]&&this[_0x3e2e97(0xfb)](_0xcb15b4);}[_0x21648f(0x2cf)](_0xda9612){const _0x104b30=_0x21648f;this[_0x104b30(0x147)][_0x104b30(0xdd)](0x1),_0xda9612[_0x104b30(0x182)]({'cmd':_0x1df2bb[_0x104b30(0x3d6)][_0x104b30(0xf1)],'routeKey':this[_0x104b30(0x1bc)][_0x104b30(0x355)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this[_0x104b30(0x1bc)][_0x104b30(0x355)][_0x104b30(0x3b9)]}]}});}['_onJoinRoomEvent'](_0x854478){const _0x28cb23=_0x21648f;var _0xdd002a;if(_0x854478[_0x28cb23(0x2b5)]in _0x12cc86){this[_0x28cb23(0x2bd)]['emitEvent']({'id':_0x28cb23(0x256),'data':_0x12cc86[_0x854478[_0x28cb23(0x2b5)]]}),this['_sessionStatus$']['next'](0x2);return;}this[_0x28cb23(0x147)]['next'](0x3);let _0x530902=(_0xdd002a=_0x854478['data']['roomInfos'][this[_0x28cb23(0x1bc)][_0x28cb23(0x355)][_0x28cb23(0x3b9)]])==null?void 0x0:_0xdd002a['members'];_0x530902&&_0x530902[_0x28cb23(0x352)](_0x481d7b=>this[_0x28cb23(0x132)][_0x28cb23(0x10e)](this[_0x28cb23(0x1bc)][_0x28cb23(0x3bf)],_0x481d7b));}['_onRecvEvent'](_0xd0d8e1){const _0x465be7=_0x21648f;try{let _0x208a42=_0xee3e37(this[_0x465be7(0x1bc)],_0xd0d8e1[_0x465be7(0x29b)]);for(let _0x289be8 of _0x208a42)switch(_0x289be8['eventID']){case _0x4c2ece[_0x465be7(0x343)]['USERS_ENTER']:this[_0x465be7(0x328)](_0x289be8),this[_0x465be7(0x397)][_0x465be7(0xdd)](_0x289be8);break;case _0x4c2ece[_0x465be7(0x343)]['USERS_LEAVE']:this[_0x465be7(0x231)](_0x289be8),this['_event$'][_0x465be7(0xdd)](_0x289be8);break;case _0x4c2ece[_0x465be7(0x343)]['CHANGESET_ACK']:case _0x4c2ece[_0x465be7(0x343)]['CHANGESET_SHOULD_RETRY']:this[_0x465be7(0x304)](),this[_0x465be7(0x1de)](),this[_0x465be7(0x397)][_0x465be7(0xdd)](_0x289be8);break;case _0x4c2ece['CollaborationEvent']['MSG_FOR_ERROR']:this['_logService']['error'](_0x465be7(0x3ec)+JSON[_0x465be7(0x102)](_0x289be8)),this[_0x465be7(0x397)][_0x465be7(0xdd)](_0x289be8);break;case _0x4c2ece[_0x465be7(0x343)][_0x465be7(0x1a9)]:this[_0x465be7(0x40c)][_0x465be7(0x3cc)](_0x289be8[_0x465be7(0x29b)]),this[_0x465be7(0x397)][_0x465be7(0xdd)](_0x289be8);break;default:this[_0x465be7(0x397)]['next'](_0x289be8);}}catch(_0x2ff079){this[_0x465be7(0x2fc)]['error'](_0x2ff079,_0xd0d8e1);}}[_0x21648f(0x328)](_0x1866e3){const _0x4934a1=_0x21648f;this[_0x4934a1(0x132)][_0x4934a1(0x10e)](this[_0x4934a1(0x1bc)][_0x4934a1(0x3bf)],_0x1866e3[_0x4934a1(0x29b)]);}[_0x21648f(0x231)](_0x37e1ef){const _0xa7957=_0x21648f;this[_0xa7957(0x132)][_0xa7957(0x19e)](this[_0xa7957(0x1bc)]['localUnitId'],_0x37e1ef[_0xa7957(0x29b)][_0xa7957(0x14c)]);}async[_0x21648f(0x182)](_0x5a7257,_0x27f270){const _0x160eb6=_0x21648f;if(this[_0x160eb6(0x141)]!==0x3||!this[_0x160eb6(0x1b2)])throw Error(_0x160eb6(0x142));try{let _0x439fad=_0x1d758e(this[_0x160eb6(0x1bc)],_0x5a7257);_0x439fad[_0x160eb6(0x1d9)]===_0x4c2ece['CollaborationEvent'][_0x160eb6(0x2a3)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x160eb6(0x36d)](_0x439fad)),this[_0x160eb6(0x1b2)][_0x160eb6(0x182)]({'cmd':_0x1df2bb['CombCmd'][_0x160eb6(0x159)],'routeKey':this[_0x160eb6(0x1bc)]['target']['unitId'],'routeType':'','data':_0x439fad});}catch(_0x54517b){this['_logService'][_0x160eb6(0x29e)](_0x54517b);}}['_scheduleCollaborationTimeoutTimer'](){const _0x20477f=_0x21648f;var _0x4ba5da;this[_0x20477f(0x177)]=setTimeout(()=>{const _0x285bba=_0x20477f;this[_0x285bba(0x177)]=null,this[_0x285bba(0x2bd)][_0x285bba(0x203)]({'id':_0x285bba(0x208)});},(_0x4ba5da=this[_0x20477f(0x23e)][_0x20477f(0x33e)](_0x20477f(0x276)))==null?_0x4067ce:_0x4ba5da);}[_0x21648f(0x1de)](){const _0x636cf0=_0x21648f;this[_0x636cf0(0x177)]&&(clearTimeout(this[_0x636cf0(0x177)]),this[_0x636cf0(0x177)]=null);}[_0x21648f(0x36d)](_0x335738){const _0x349495=_0x21648f;if(!this['_shouldReportTelemetry'])return;let {data:_0xb82da4}=_0x335738,{unitID:_0x43a284,changeset:_0x33e496}=_0xb82da4,{mutations:_0x2c78e7,type:_0xc63af5}=_0x33e496;this[_0x349495(0x1fb)]={'unitId':_0x43a284,'type':_0xc63af5,'startTime':performance[_0x349495(0x1c2)](),'stopTime':0x0,'duration':0x0,'size':_0x503d89(_0x2c78e7)};}[_0x21648f(0x304)](){const _0x11b8e4=_0x21648f;if(this['_shouldReportTelemetry']){if(!this[_0x11b8e4(0x1fb)]){this[_0x11b8e4(0x2fc)][_0x11b8e4(0x29e)]('[CollaborationSession]',_0x11b8e4(0x22e));return;}this[_0x11b8e4(0x1fb)]['stopTime']=performance[_0x11b8e4(0x1c2)](),this[_0x11b8e4(0x1fb)][_0x11b8e4(0xc8)]=this['_telemetryInfo'][_0x11b8e4(0x371)]-this[_0x11b8e4(0x1fb)][_0x11b8e4(0x21b)],this[_0x11b8e4(0x34a)][_0x11b8e4(0x148)](_0x11b8e4(0x225),this[_0x11b8e4(0x1fb)]),this[_0x11b8e4(0x1fb)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x35be7f=_0x21648f;this[_0x35be7f(0x1fb)]=null;}};_0x4d2902=_0x3e0941([_0x273192(0x2,_0x868841[_0x21648f(0x206)]),_0x273192(0x3,_0x868841[_0x21648f(0x2ba)]),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x568427)),_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x278d59)),_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d)),_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x238)])(_0x5a2801['ITelemetryService']))],_0x4d2902);let _0x47d8b0=(0x0,_0x868841[_0x21648f(0x330)])(_0x21648f(0x36e));function _0x32415a(_0x5e6de9){const _0x14c39d=_0x21648f;return _0x14c39d(0x3d2)+_0x5e6de9;}function _0x305427(_0x5b1839){const _0x3b8ee3=_0x21648f;let {unitID:_0x4888c9,mutations:_0x907cb7}=_0x5b1839;return{'unitId':_0x4888c9,'subUnitId':_0x907cb7[_0x3b8ee3(0x207)]>0x0?_0x907cb7[0x0]['params'][_0x3b8ee3(0x410)]:null};}let _0xd82d96=class{constructor(_0x5bd23b,_0x417081,_0x23d2b6){const _0x2f72f9=_0x21648f;this[_0x2f72f9(0x2d9)]=_0x5bd23b,this['_transformService']=_0x417081,this['_instanceService']=_0x23d2b6;}[_0x21648f(0x3f0)](_0x26f08d){const _0xd4ee2a=_0x21648f;var _0x5709fd,_0x12e4cc;let _0x5529cf=this['_injector'][_0xd4ee2a(0x224)](_0x1d347c['SheetsSelectionsService']),{unitId:_0x30f6e9,subUnitId:_0x3084f6}=_0x305427(_0x26f08d),_0x5ac66a=_0x5529cf==null?void 0x0:_0x5529cf['getWorkbookSelections'](_0x30f6e9)[_0xd4ee2a(0x41c)](),_0x1ad502=(_0x5709fd=this[_0xd4ee2a(0x2b7)][_0xd4ee2a(0x209)](_0x30f6e9))==null||(_0x5709fd=_0x5709fd[_0xd4ee2a(0x3d5)]())==null?void 0x0:_0x5709fd[_0xd4ee2a(0x162)]();if(_0x5ac66a[_0xd4ee2a(0x207)]===0x0||!_0x30f6e9||!_0x3084f6)return;let _0x5a243f=[{'id':_0x1d347c['SetSelectionsOperation']['id'],'params':{'unitId':_0x30f6e9,'subUnitId':_0x1ad502,'selections':_0x868841['Tools']['deepClone'](_0x5ac66a)}}],_0x12421e=this[_0xd4ee2a(0x376)]['transformMutationsWithChangeset'](_0x26f08d,_0x5a243f);if(!(0x0,_0x4c2ece[_0xd4ee2a(0x2fa)])(_0x12421e))throw _0x12421e[_0xd4ee2a(0x29e)];let _0x7baf38=(_0x12e4cc=_0x12421e['m2Prime'][0x0])==null||(_0x12e4cc=_0x12e4cc[_0xd4ee2a(0x2b4)])==null?void 0x0:_0x12e4cc[_0xd4ee2a(0x31d)];if(Array[_0xd4ee2a(0x3af)](_0x7baf38)&&_0x7baf38[_0xd4ee2a(0x207)]){if(_0x7baf38[_0xd4ee2a(0x207)]===_0x5a243f[0x0]['params'][_0xd4ee2a(0x31d)][_0xd4ee2a(0x207)]&&_0x7baf38[_0xd4ee2a(0x27e)]((_0xcca689,_0x145697)=>_0x868841[_0xd4ee2a(0x348)]['equals'](_0xcca689[_0xd4ee2a(0x161)],_0x5a243f[0x0][_0xd4ee2a(0x2b4)]['selections'][_0x145697][_0xd4ee2a(0x161)])))return;this[_0xd4ee2a(0x2d9)][_0xd4ee2a(0x224)](_0x868841[_0xd4ee2a(0x2fd)])['executeCommand'](_0x1d347c['SetSelectionsOperation']['id'],{'unitId':_0x30f6e9,'subUnitId':_0x1ad502,'selections':_0x7baf38});}}};_0xd82d96=_0x3e0941([_0x273192(0x0,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['Injector'])),_0x273192(0x1,_0x4c2ece[_0x21648f(0x236)]),_0x273192(0x2,_0x868841[_0x21648f(0x214)])],_0xd82d96);let _0x3857c0=(0x0,_0x868841[_0x21648f(0x330)])(_0x21648f(0x181)),_0x294d78=function(_0x1f528b){const _0x50e08c=_0x21648f;return _0x1f528b[_0x1f528b[_0x50e08c(0x2d8)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x1f528b[_0x1f528b['OTHER_CLIENTS_EDITING']=0x1]=_0x50e08c(0x111),_0x1f528b;}({});function _0x5eaa92(_0x55a25f){const _0x3347b6=_0x21648f;var _0x109781;return!!((_0x109781=_0x55a25f[_0x3347b6(0x2b4)])!=null&&_0x109781[_0x3347b6(0x13b)]);}let _0x26c3bc=new Set([_0x1d347c['InsertSheetMutation']['id']]),_0x4130ba=new Set([_0x5aad88[_0x21648f(0x1b6)]['id'],_0x5aad88[_0x21648f(0x16e)]['id'],_0x5aad88[_0x21648f(0x317)]['id'],_0x5aad88[_0x21648f(0x2cc)]['id']]);function _0x2414e9(_0x2643cf,_0x43bbc4=_0x26c3bc){const _0x4cfd84=_0x21648f;let _0x5aa50c=[];for(let _0x2730aa of _0x2643cf){if(_0x43bbc4[_0x4cfd84(0x215)](_0x2730aa['id'])){if(_0x5aa50c['length']>0x0)break;_0x5aa50c[_0x4cfd84(0x327)](_0x2730aa);break;}if(_0x5eaa92(_0x2730aa)){if(_0x5aa50c[_0x4cfd84(0x207)]>0x0)break;_0x5aa50c[_0x4cfd84(0x327)](_0x2730aa);break;}_0x5aa50c[_0x4cfd84(0x327)](_0x2730aa);}return _0x5aa50c;}function _0x3782fb(_0x1e8292,_0x5d3203,_0x3ddf10,_0x2f7350,_0x48515f){const _0x1537c4=_0x21648f;var _0x280e80,_0x21c987,_0x5ed6fa,_0x1cdda1;let _0x51a9c3=_0x2414e9(_0x1e8292),_0x5cd162=(_0x280e80=(_0x21c987=_0x48515f[_0x1537c4(0x11f)]())==null?void 0x0:_0x21c987['userID'])==null?'unknown':_0x280e80,_0x3f8694=(_0x5ed6fa=(_0x1cdda1=_0x48515f[_0x1537c4(0x11f)]())==null?void 0x0:_0x1cdda1['memberID'])==null?_0x1537c4(0x20c):_0x5ed6fa;return{'changeset':{'unitID':_0x5d3203,'type':(0x0,_0x4c2ece['mapDocumentTypeToUniverInstanceType'])(_0x3ddf10[_0x1537c4(0x101)](_0x5d3203)),'baseRev':_0x2f7350[_0x1537c4(0x133)](_0x5d3203),'revision':0x0,'userID':_0x5cd162,'memberID':_0x3f8694,'mutations':_0x51a9c3},'pendingMutations':_0x1e8292[_0x1537c4(0x129)](_0x51a9c3['length'])};}function _0x1be665(_0x4ea150,_0x578466,_0x599a10,_0x2d3b74,_0x476cd7){const _0x43a971=_0x21648f;var _0x514152,_0x690bf2,_0x30ed31,_0x23f50b;let _0x4f47ad=_0x2414e9(_0x4ea150,_0x4130ba),_0x2c95c6=(_0x514152=(_0x690bf2=_0x476cd7['getCurrentUser']())==null?void 0x0:_0x690bf2[_0x43a971(0x185)])==null?'unknown':_0x514152,_0xdba0fc=(_0x30ed31=(_0x23f50b=_0x476cd7[_0x43a971(0x11f)]())==null?void 0x0:_0x23f50b['memberID'])==null?'unknown':_0x30ed31;return{'changeset':{'unitID':_0x578466,'type':(0x0,_0x4c2ece['mapDocumentTypeToUniverInstanceType'])(_0x599a10[_0x43a971(0x101)](_0x578466)),'baseRev':_0x2d3b74['getCurrentRevOfUnit'](_0x578466),'revision':0x0,'userID':_0x2c95c6,'memberID':_0xdba0fc,'mutations':_0x4f47ad},'pendingMutations':_0x4ea150['slice'](_0x4f47ad['length'])};}function _0x1a4977(_0xf17977,_0x20bc71,_0x19d9af,_0x1a1535,_0x10796b){const _0x2d2bda=_0x21648f;var _0x654db5,_0xb5c18b,_0x7449c6,_0x250fbb;let _0x5a0af8=_0xf17977[_0x2d2bda(0x25f)]((_0x4a9221,_0x529dac)=>{const _0x270826=_0x2d2bda;let _0x15332f=_0x4a9221[_0x4a9221[_0x270826(0x207)]-0x1],{id:_0x47c4b8}=_0x15332f==null?{}:_0x15332f,{id:_0x4cfd3c,type:_0x174b0a}=_0x529dac,_0x54dd9d=_0x529dac['params'];if(_0x47c4b8&&_0x47c4b8!==_0x4cfd3c)throw Error(_0x270826(0xe2)+_0x47c4b8+_0x270826(0x150)+_0x4cfd3c+'.');if(!_0x15332f)return[{'id':_0x4cfd3c,'type':_0x174b0a,'params':{'unitId':_0x54dd9d['unitId'],'textRanges':_0x54dd9d[_0x270826(0x40d)],'actions':_0x54dd9d[_0x270826(0x130)]}}];let _0x1e9354=_0x15332f[_0x270826(0x2b4)];return _0x23e2e8(_0x1e9354,_0x54dd9d)?[..._0x4a9221[_0x270826(0x129)](0x0,-0x1),{..._0x15332f,'id':_0x4cfd3c,'type':_0x174b0a,'params':{'unitId':_0x54dd9d[_0x270826(0x3b9)],'textRanges':_0x54dd9d['textRanges'],'actions':_0x868841[_0x270826(0x310)][_0x270826(0x268)](_0x1e9354[_0x270826(0x130)],_0x54dd9d[_0x270826(0x130)])}}]:[..._0x4a9221,{'id':_0x4cfd3c,'type':_0x174b0a,'params':{'unitId':_0x54dd9d[_0x270826(0x3b9)],'textRanges':_0x54dd9d['textRanges'],'actions':_0x54dd9d[_0x270826(0x130)]}}];},[]),_0x50a348=(_0x654db5=(_0xb5c18b=_0x10796b[_0x2d2bda(0x11f)]())==null?void 0x0:_0xb5c18b[_0x2d2bda(0x185)])==null?_0x2d2bda(0x20c):_0x654db5,_0x28707a=(_0x7449c6=(_0x250fbb=_0x10796b[_0x2d2bda(0x11f)]())==null?void 0x0:_0x250fbb[_0x2d2bda(0x14c)])==null?_0x2d2bda(0x20c):_0x7449c6;return{'changeset':{'unitID':_0x20bc71,'type':(0x0,_0x4c2ece[_0x2d2bda(0x3ee)])(_0x19d9af['getUnitType'](_0x20bc71)),'baseRev':_0x1a1535[_0x2d2bda(0x133)](_0x20bc71),'revision':0x0,'userID':_0x50a348,'memberID':_0x28707a,'mutations':_0x5a0af8},'pendingMutations':_0xf17977['slice'](_0xf17977[_0x2d2bda(0x207)])};}function _0x23e2e8(_0x322db7,_0x34950e){const _0x1b04ad=_0x21648f;return!_0x4deb3e(_0x322db7)&&!_0x4deb3e(_0x34950e)&&_0xe3dc4(_0x322db7[_0x1b04ad(0x130)],_0x34950e['actions']);}function _0x4deb3e(_0x22b01c){const _0x1e224b=_0x21648f;return _0x22b01c[_0x1e224b(0x3e6)]!==void 0x0;}function _0xe3dc4(_0x17e8e6,_0x4e4268){return _0x235ef7(_0x17e8e6)&&_0x235ef7(_0x4e4268)&&!_0x2c975f(_0x17e8e6)&&!_0x2c975f(_0x4e4268)&&!_0x48609b(_0x17e8e6)&&!_0x48609b(_0x4e4268);}function _0x235ef7(_0x35de33){const _0x10c6c9=_0x21648f;return _0xbdb930(_0x35de33)[_0x10c6c9(0x329)](_0x5426f7=>_0x232392(_0x5426f7)&&_0x5426f7['et']===_0x10c6c9(0x1c4));}function _0x48609b(_0x2a5556){const _0x117583=_0x21648f;return _0xbdb930(_0x2a5556)[_0x117583(0x329)](_0x517adf=>Array[_0x117583(0x3af)](_0x517adf)||typeof _0x517adf==_0x117583(0x353)||typeof _0x517adf==_0x117583(0x373));}function _0x2c975f(_0x46a73e){const _0x3a65c6=_0x21648f;return _0xbdb930(_0x46a73e)[_0x3a65c6(0x329)](_0x541053=>!_0x232392(_0x541053)||_0x541053['et']!=='text-x'||!Array['isArray'](_0x541053['e'])?!0x1:_0x541053['e'][_0x3a65c6(0x329)](_0x35e442=>!_0x232392(_0x35e442)||!_0x232392(_0x35e442['body'])?!0x1:Object[_0x3a65c6(0x180)][_0x3a65c6(0xc4)]['call'](_0x35e442['body'],'tables')||Object['prototype'][_0x3a65c6(0xc4)][_0x3a65c6(0x257)](_0x35e442[_0x3a65c6(0x346)],_0x3a65c6(0x110))||Object['prototype'][_0x3a65c6(0xc4)][_0x3a65c6(0x257)](_0x35e442[_0x3a65c6(0x346)],_0x3a65c6(0x11c))));}function _0xbdb930(_0x13e662){const _0x535ed=_0x21648f;if(!Array[_0x535ed(0x3af)](_0x13e662))return[];let _0x166f08=_0x13e662['includes']('body')?_0x13e662:_0x13e662['find'](_0x149cf3=>Array['isArray'](_0x149cf3)&&_0x149cf3[_0x535ed(0x335)](_0x535ed(0x346)));if(!Array[_0x535ed(0x3af)](_0x166f08))return[];let _0x39adbf=_0x166f08[_0x535ed(0xed)](_0x535ed(0x346));return _0x39adbf===-0x1?[]:_0x166f08[_0x535ed(0x129)](_0x39adbf+0x1);}function _0x232392(_0x259f01){const _0xf3b545=_0x21648f;return typeof _0x259f01=='object'&&!!_0x259f01&&!Array[_0xf3b545(0x3af)](_0x259f01);}function _0x11cbd2(_0x2c5486,_0x26ca69){const _0x650849=_0x21648f;let _0x385b34=new _0x409690[(_0x650849(0x235))](0x1);return setTimeout(()=>_0x385b34[_0x650849(0xdd)](_0x26ca69),_0x2c5486),_0x385b34[_0x650849(0x340)]()['pipe']((0x0,_0x409690['take'])(0x1));}var _0x402be7,_0x22ebf8,_0x4b7fc1;let _0x5c8834=function(_0x3cea28){const _0x19eef1=_0x21648f;return _0x3cea28[_0x19eef1(0x3ba)]='not_collab',_0x3cea28[_0x19eef1(0x286)]=_0x19eef1(0x39f),_0x3cea28[_0x19eef1(0x308)]=_0x19eef1(0x1f2),_0x3cea28['AWAITING']=_0x19eef1(0x359),_0x3cea28[_0x19eef1(0x10f)]='awaiting_with_pending',_0x3cea28[_0x19eef1(0xd7)]='fetch_missing',_0x3cea28[_0x19eef1(0xdf)]=_0x19eef1(0x1c5),_0x3cea28[_0x19eef1(0x33b)]=_0x19eef1(0x250),_0x3cea28;}({}),_0xf1445d=0x4e20,_0x4ff607=0x2bf20;var _0x316f37=class{constructor(_0x16dac4,_0x11bc9d,_0x29aee8,_0x5519aa,_0x15d99c,_0x14b68c,_0x165373,_0x475565,_0x38f642){const _0xb0b8d9=_0x21648f;this[_0xb0b8d9(0xff)]=_0x16dac4,this[_0xb0b8d9(0x350)]=_0x11bc9d,this['_handler']=_0x15d99c,this['_commandService']=_0x14b68c,this[_0xb0b8d9(0x17e)]=_0x165373,this[_0xb0b8d9(0xda)]=_0x475565,this[_0xb0b8d9(0x2c8)]=_0x38f642,_0x6d65c2(this,'_awaitingChangeset',null),_0x6d65c2(this,_0xb0b8d9(0x3c3),[]),this[_0xb0b8d9(0x1ca)]=_0x29aee8,this[_0xb0b8d9(0x3c3)]=_0x5519aa;}[_0x21648f(0x3c0)](_0x12d7e3){const _0x2f4f77=_0x21648f;let _0x3696da=this[_0x2f4f77(0xda)][_0x2f4f77(0x133)](this['unitID']);return _0x12d7e3[_0x2f4f77(0xcf)]>_0x3696da+0x1?(this[_0x2f4f77(0x306)][_0x2f4f77(0x25d)]({'from':_0x3696da,'to':_0x12d7e3[_0x2f4f77(0xcf)]-0x1}),!0x0):!0x1;}[_0x21648f(0x25c)](_0x31170f){const _0x3c367f=_0x21648f;this[_0x3c367f(0x17e)][_0x3c367f(0x3e8)](this[_0x3c367f(0xff)],_0x31170f);}[_0x21648f(0x1fd)](_0x147b73){const _0x22d32a=_0x21648f;var _0x12dbcb,_0x227655;(_0x12dbcb=(_0x227655=this[_0x22d32a(0x306)])[_0x22d32a(0x33c)])==null||_0x12dbcb['call'](_0x227655,_0x147b73);}[_0x21648f(0x400)](_0x10d0ca){const _0x3b2dce=_0x21648f;var _0x20e742,_0x1633c3;return(_0x20e742=(_0x1633c3=this[_0x3b2dce(0x306)])[_0x3b2dce(0x1d5)])==null?void 0x0:_0x20e742[_0x3b2dce(0x257)](_0x1633c3,_0x10d0ca);}[_0x21648f(0x2a7)](_0x13a8af){const _0x3fd7ac=_0x21648f;var _0x1c3b08,_0x1dc3e5;return(_0x1c3b08=(_0x1dc3e5=this['_handler'])[_0x3fd7ac(0x2e0)])==null?void 0x0:_0x1c3b08['call'](_0x1dc3e5,_0x13a8af);}[_0x21648f(0x29a)](_0x2d6f1b){const _0x134c76=_0x21648f;var _0x569785,_0x39c775,_0x5e4780;return(_0x569785=(_0x39c775=(_0x5e4780=this[_0x134c76(0x306)])[_0x134c76(0x19f)])==null?void 0x0:_0x39c775[_0x134c76(0x257)](_0x5e4780,_0x2d6f1b))==null?_0x2d6f1b:_0x569785;}[_0x21648f(0x18c)](_0x234c1b){const _0x4ec5bb=_0x21648f;var _0x3d098d,_0x50be7a,_0x49eeeb;return(_0x3d098d=(_0x50be7a=(_0x49eeeb=this['_handler'])[_0x4ec5bb(0x347)])==null?void 0x0:_0x50be7a['call'](_0x49eeeb,_0x234c1b))==null?_0x234c1b:_0x3d098d;}[_0x21648f(0x164)](_0x6b9721){const _0x3e9833=_0x21648f;if(this[_0x3e9833(0x350)]===_0x868841[_0x3e9833(0x2f8)]['UNIVER_DOC']){let {unitID:_0x4db691,mutations:_0xdb2e4e,memberID:_0x1109f4}=_0x6b9721,_0x6b5a0=_0xdb2e4e[_0x3e9833(0x207)]>0x0?_0xdb2e4e[0x0][_0x3e9833(0x2b4)][_0x3e9833(0x40d)]:[];if(Array[_0x3e9833(0x3af)](_0x6b5a0)&&_0x6b5a0[_0x3e9833(0x207)]>0x0){var _0x567999,_0x10580e;(_0x567999=(_0x10580e=this[_0x3e9833(0x306)])['onSyncEditingCollabCursor'])==null||_0x567999[_0x3e9833(0x257)](_0x10580e,{'unitID':_0x4db691,'memberID':_0x1109f4,'textRanges':_0x6b5a0});}}}[_0x21648f(0xf3)](){const _0x194d19=_0x21648f;var _0x22a023;(_0x22a023=this['_localCacheService'])==null||_0x22a023[_0x194d19(0x2f0)](this[_0x194d19(0xff)],this[_0x194d19(0x350)],this[_0x194d19(0x1ca)],this[_0x194d19(0x3c3)]);}[_0x21648f(0x183)](){const _0x5a7613=_0x21648f;return this[_0x5a7613(0xda)]['getCurrentRevOfUnit'](this['unitID']);}['_incrementRevisionNumber'](){const _0x4770e5=_0x21648f;this[_0x4770e5(0xda)][_0x4770e5(0xe6)](this[_0x4770e5(0xff)]);}[_0x21648f(0x296)](_0xe2d5d1){const _0x68942c=_0x21648f;let _0x427d1f=this[_0x68942c(0x29a)](_0xe2d5d1);_0x427d1f=this['_transformRemoteChangesetByStateCache'](_0x427d1f);let _0x54f59d=(0x0,_0x868841[_0x68942c(0x190)])(_0x427d1f[_0x68942c(0x1bb)],this[_0x68942c(0x155)],{'fromCollab':!0x0});if(!_0x54f59d['result']){var _0xaa9270;throw _0x54f59d[_0x68942c(0x29e)]instanceof Error?_0x54f59d[_0x68942c(0x29e)]:Error((_0xaa9270=_0x54f59d['error'])==null?_0x68942c(0x27d):_0xaa9270);}this[_0x68942c(0x400)](_0x427d1f),this[_0x68942c(0x2a7)](_0x427d1f),this[_0x68942c(0x25c)](_0xe2d5d1),this[_0x68942c(0x1fd)](_0x427d1f),this['_syncEditingCollabCursor'](_0x427d1f),this[_0x68942c(0x3d3)]();}};let _0x1e7b48=class extends _0x316f37{constructor(_0x28596a,_0x1003f0,_0x3902a2,_0x382168,_0x197ee9,_0x28e0fc,_0x338a24,_0x3bbd59,_0x5c8383,_0x31201b){const _0x25fef4=_0x21648f;super(_0x28596a,_0x1003f0,null,[],_0x3902a2,_0x338a24,_0x28e0fc,_0x382168,_0x31201b),this[_0x25fef4(0x2d9)]=_0x197ee9,this[_0x25fef4(0x2fc)]=_0x3bbd59,this[_0x25fef4(0x376)]=_0x5c8383,this[_0x25fef4(0x3f1)]=_0x31201b,_0x6d65c2(this,_0x25fef4(0x341),_0x25fef4(0x39f));}['appendMutation'](_0x369665){const _0x49ab15=_0x21648f;let _0x17476d=this[_0x49ab15(0x2d9)][_0x49ab15(0x3d9)](_0x5f0bc1,this['unitID'],this['type'],[_0x369665],this[_0x49ab15(0x306)]);return _0x17476d[_0x49ab15(0xf4)](),_0x17476d[_0x49ab15(0xf3)](),_0x17476d;}[_0x21648f(0x2ae)](_0x5331a6){const _0x11acc5=_0x21648f;if(this[_0x11acc5(0x3c0)](_0x5331a6))return this[_0x11acc5(0x2d9)][_0x11acc5(0x3d9)](_0x2ef93b,this[_0x11acc5(0xff)],this[_0x11acc5(0x350)],null,[],null,[_0x5331a6],this['_handler']);try{let _0xb74efe=this[_0x11acc5(0x376)]['transformMutationsWithChangeset'](_0x5331a6,[_0x4c2ece[_0x11acc5(0x2bb)]]);if((0x0,_0x4c2ece['isTransformMutationsWithChangesetSuccess'])(_0xb74efe)){let {c1Prime:_0x1f0716}=_0xb74efe;return this[_0x11acc5(0x296)](_0x1f0716),this;}throw _0xb74efe[_0x11acc5(0x29e)];}catch(_0xfc7dc6){return this['_logService']['error'](_0xfc7dc6),this['_onConflict'](!0x1);}}[_0x21648f(0x2b9)](_0x2420bc){const _0x253f96=_0x21648f;return this[_0x253f96(0x2d9)][_0x253f96(0x3d9)](_0x391b2a,this[_0x253f96(0xff)],this[_0x253f96(0x350)],null,[],this[_0x253f96(0x306)],_0x2420bc);}[_0x21648f(0xc9)](_0x50b5bd){const _0x217f01=_0x21648f;if(_0x50b5bd['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x217f01(0x3fa));}[_0x21648f(0x394)](){const _0x11b267=_0x21648f;throw Error(_0x11b267(0x298));}[_0x21648f(0x145)](){return this;}[_0x21648f(0x3b5)](){const _0x198807=_0x21648f;return this['_injector'][_0x198807(0x3d9)](_0x519d9e,this[_0x198807(0xff)],this[_0x198807(0x350)],null,[],this['_handler']);}[_0x21648f(0x29d)](){return this;}['resend'](){const _0x34da07=_0x21648f;throw Error(_0x34da07(0x305));}[_0x21648f(0x175)](){const _0xdddcb0=_0x21648f;let _0x2873fc=this[_0xdddcb0(0xda)][_0xdddcb0(0x133)](this[_0xdddcb0(0xff)]);return this['_handler']['onMissingChangesets']({'from':_0x2873fc,'to':0x0}),this['_injector'][_0xdddcb0(0x3d9)](_0x2ef93b,this[_0xdddcb0(0xff)],this[_0xdddcb0(0x350)],null,[],null,[],this['_handler']);}};_0x1e7b48=_0x3e0941([_0x273192(0x3,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x5,_0x868841['IUndoRedoService']),_0x273192(0x6,_0x868841[_0x21648f(0x2fd)]),_0x273192(0x7,_0x868841['ILogService']),_0x273192(0x8,_0x4c2ece[_0x21648f(0x236)]),_0x273192(0x9,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x1e7b48);let _0x5f0bc1=_0x402be7=class extends _0x316f37{constructor(_0x31790b,_0x3464ac,_0x54bd81,_0x3651d3,_0x561c88,_0x462302,_0x1acb1f,_0xc4512e,_0x3a6fa9,_0x1ab000,_0x3653eb,_0x3aecc7,_0x2accca,_0x2e9cb6){const _0x3634c1=_0x21648f;super(_0x31790b,_0x3464ac,null,_0x54bd81,_0x3651d3,_0x3a6fa9,_0x2accca,_0x462302,_0x2e9cb6),this[_0x3634c1(0x2d9)]=_0x561c88,this[_0x3634c1(0x132)]=_0x1acb1f,this['_logService']=_0xc4512e,this[_0x3634c1(0x23e)]=_0x1ab000,this[_0x3634c1(0x376)]=_0x3653eb,this[_0x3634c1(0x32f)]=_0x3aecc7,_0x6d65c2(this,_0x3634c1(0x341),_0x3634c1(0x1f2)),_0x6d65c2(this,_0x3634c1(0x212),null),_0x6d65c2(this,'_sendingTimer',null);}[_0x21648f(0x20f)](_0x4925a5){const _0x2fe1d6=_0x21648f;return this[_0x2fe1d6(0x3c3)][_0x2fe1d6(0x327)](_0x4925a5),this[_0x2fe1d6(0xf3)](),this;}[_0x21648f(0x2ae)](_0x11c9c6){const _0x340136=_0x21648f;if(this[_0x340136(0x3c0)](_0x11c9c6))return this[_0x340136(0x12b)](),this[_0x340136(0x2d9)]['createInstance'](_0x2ef93b,this[_0x340136(0xff)],this['type'],null,this['_pendingMutations'],null,[_0x11c9c6],this[_0x340136(0x306)]);try{let _0x2a8d55=this[_0x340136(0x376)]['transformMutationsWithChangeset'](_0x11c9c6,this[_0x340136(0x3c3)]);if((0x0,_0x4c2ece[_0x340136(0x2fa)])(_0x2a8d55)){let {c1Prime:_0x11e06d,m2Prime:_0xbdefc2}=_0x2a8d55;this['_executeRemoteChangeset'](_0x11e06d);let _0x27ba2e=this[_0x340136(0x2d9)][_0x340136(0x3d9)](_0x402be7,this[_0x340136(0xff)],this[_0x340136(0x350)],_0xbdefc2,this['_handler']);this['_clearScheduledTask']();let _0x56d743=new Date()[_0x340136(0x21f)](),_0x3c472c=this[_0x340136(0x212)]?Math['max'](this[_0x340136(0x212)]-_0x56d743,0x0):this[_0x340136(0x205)]();return _0x27ba2e[_0x340136(0xf4)](_0x3c472c),_0x27ba2e;}throw _0x2a8d55[_0x340136(0x29e)];}catch(_0x56e3c2){return this[_0x340136(0x2fc)]['error'](_0x56e3c2),this['_onConflict'](!0x1);}}[_0x21648f(0xc9)](_0x194d71){if(_0x194d71['revision']<=this['_getCurrentRevision']())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x21648f(0x394)](){const _0x351154=_0x21648f;throw Error(_0x351154(0x35b));}[_0x21648f(0x145)](){return this;}[_0x21648f(0x3b5)](){const _0x1325b4=_0x21648f;return this[_0x1325b4(0x12b)](),this[_0x1325b4(0x2d9)][_0x1325b4(0x3d9)](_0x519d9e,this['unitID'],this['type'],null,this[_0x1325b4(0x3c3)],this[_0x1325b4(0x306)]);}[_0x21648f(0x29d)](){return this;}[_0x21648f(0xf4)](_0x4ee875){const _0x3b5429=_0x21648f;let _0x179dc6=_0x4ee875==null?this['_getSendChangesetTimeout']():_0x4ee875;this[_0x3b5429(0x212)]=new Date()[_0x3b5429(0x21f)]()+_0x179dc6,this[_0x3b5429(0x253)]=setTimeout(()=>{const _0x143ff1=_0x3b5429;this[_0x143ff1(0x12b)]();let _0x1768fb=null;switch(this['type']){case _0x868841['UniverInstanceType'][_0x143ff1(0x23b)]:_0x1768fb=_0x3782fb(this[_0x143ff1(0x3c3)],this['unitID'],this[_0x143ff1(0x32f)],this['_revisionService'],this[_0x143ff1(0x132)]);break;case _0x868841[_0x143ff1(0x2f8)]['UNIVER_DOC']:_0x1768fb=this[_0x143ff1(0x3c3)][_0x143ff1(0x27e)](_0xc18059=>_0xc18059['id']===_0x45a7a0[_0x143ff1(0x364)]['id'])?_0x1a4977(this['_pendingMutations'],this[_0x143ff1(0xff)],this[_0x143ff1(0x32f)],this[_0x143ff1(0xda)],this[_0x143ff1(0x132)]):_0x3782fb(this[_0x143ff1(0x3c3)],this[_0x143ff1(0xff)],this[_0x143ff1(0x32f)],this[_0x143ff1(0xda)],this[_0x143ff1(0x132)]);break;case _0x868841['UniverInstanceType'][_0x143ff1(0x2b1)]:_0x1768fb=_0x1be665(this[_0x143ff1(0x3c3)],this[_0x143ff1(0xff)],this['_univerInstanceService'],this['_revisionService'],this['_memberService']);break;case _0x868841[_0x143ff1(0x2f8)][_0x143ff1(0x28a)]:_0x1768fb=_0x3782fb(this[_0x143ff1(0x3c3)],this[_0x143ff1(0xff)],this[_0x143ff1(0x32f)],this[_0x143ff1(0xda)],this[_0x143ff1(0x132)]);break;case _0x868841[_0x143ff1(0x2f8)]['UNIVER_BASE']:_0x1768fb=_0x3782fb(this[_0x143ff1(0x3c3)],this[_0x143ff1(0xff)],this[_0x143ff1(0x32f)],this[_0x143ff1(0xda)],this['_memberService']);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x143ff1(0x165));}let {changeset:_0x532721,pendingMutations:_0x43f5d0}=_0x1768fb;this[_0x143ff1(0x306)][_0x143ff1(0x11d)](_0x532721);let _0x160015=_0x43f5d0['length']?this[_0x143ff1(0x2d9)][_0x143ff1(0x3d9)](_0x4c911a,this[_0x143ff1(0xff)],this[_0x143ff1(0x350)],_0x532721,_0x43f5d0,this[_0x143ff1(0x306)],void 0x0):this['_injector'][_0x143ff1(0x3d9)](_0x403ace,this[_0x143ff1(0xff)],this[_0x143ff1(0x350)],_0x532721,this[_0x143ff1(0x306)]);_0x160015[_0x143ff1(0xf3)](),this[_0x143ff1(0x306)][_0x143ff1(0x1ba)](this,_0x160015);},_0x179dc6);}[_0x21648f(0x205)](){const _0x46c01d=_0x21648f;var _0x213287;let _0x28bb7f=this[_0x46c01d(0x23e)][_0x46c01d(0x33e)](_0x4b92ba);return(_0x213287=_0x28bb7f==null?void 0x0:_0x28bb7f[_0x46c01d(0x1da)])==null?0x7d0:_0x213287;}[_0x21648f(0x3ac)](){const _0x4bbf57=_0x21648f;throw Error(_0x4bbf57(0x20e));}[_0x21648f(0x12b)](){const _0x57a910=_0x21648f;this['_sendingTimer']!=null&&(clearTimeout(this[_0x57a910(0x253)]),this[_0x57a910(0x253)]=null);}['_onConflict'](_0xc4569){const _0x269ed9=_0x21648f;return this[_0x269ed9(0x12b)](),this['_injector'][_0x269ed9(0x3d9)](_0x391b2a,this[_0x269ed9(0xff)],this[_0x269ed9(0x350)],null,this[_0x269ed9(0x3c3)],this[_0x269ed9(0x306)],_0xc4569);}};_0x5f0bc1=_0x402be7=_0x3e0941([_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x6,(0x0,_0x868841['Inject'])(_0x568427)),_0x273192(0x7,_0x868841[_0x21648f(0x206)]),_0x273192(0x8,_0x868841[_0x21648f(0x2fd)]),_0x273192(0x9,_0x868841[_0x21648f(0x2ba)]),_0x273192(0xa,_0x4c2ece[_0x21648f(0x236)]),_0x273192(0xb,_0x868841[_0x21648f(0x214)]),_0x273192(0xc,_0x868841[_0x21648f(0x351)]),_0x273192(0xd,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x5f0bc1);let _0x403ace=_0x22ebf8=class extends _0x316f37{constructor(_0x567123,_0x4fa01e,_0x48d64d,_0x111284,_0x4ab0d2,_0x54e873,_0x319569,_0x3e3796,_0x54ea18,_0x585d98,_0x511833){const _0x1a96b8=_0x21648f;super(_0x567123,_0x4fa01e,_0x48d64d,[],_0x111284,_0x319569,_0x585d98,_0x54e873,_0x511833),this[_0x1a96b8(0x2d9)]=_0x4ab0d2,this[_0x1a96b8(0x2fc)]=_0x3e3796,this['_transformService']=_0x54ea18,_0x6d65c2(this,_0x1a96b8(0x341),_0x1a96b8(0x359)),_0x6d65c2(this,_0x1a96b8(0x3e3),0x0),_0x6d65c2(this,_0x1a96b8(0x415),0x0),_0x6d65c2(this,_0x1a96b8(0x2ff),void 0x0),_0x6d65c2(this,_0x1a96b8(0xf7),void 0x0);}[_0x21648f(0x20f)](_0x4ff127){const _0x327416=_0x21648f;this[_0x327416(0x12b)]();let _0xae963=this[_0x327416(0x2d9)]['createInstance'](_0x4c911a,this[_0x327416(0xff)],this[_0x327416(0x350)],this[_0x327416(0x1ca)],[_0x4ff127],this['_handler'],this[_0x327416(0x2ff)]);return _0xae963[_0x327416(0xf3)](),_0xae963;}[_0x21648f(0x2ae)](_0x22077a){const _0x59eaf0=_0x21648f;if(this[_0x59eaf0(0x3c0)](_0x22077a))return this[_0x59eaf0(0x12b)](),this['_injector'][_0x59eaf0(0x3d9)](_0x2ef93b,this['unitID'],this[_0x59eaf0(0x350)],this[_0x59eaf0(0x1ca)],[],null,[_0x22077a],this[_0x59eaf0(0x306)]);try{let _0xb346a8=this[_0x59eaf0(0x376)][_0x59eaf0(0x419)]([_0x22077a],[this[_0x59eaf0(0x1ca)]],!0x1);if((0x0,_0x4c2ece['isTransformChangesetsSuccess'])(_0xb346a8)){let {c1Prime:_0x3d6eef,c2Prime:_0x542453}=_0xb346a8;this['_executeRemoteChangeset'](_0x3d6eef[0x0]),_0x542453[0x0][_0x59eaf0(0x1d8)]=this[_0x59eaf0(0x183)](),this[_0x59eaf0(0x12b)]();let _0x433757=this[_0x59eaf0(0x2d9)][_0x59eaf0(0x3d9)](_0x22ebf8,this[_0x59eaf0(0xff)],this[_0x59eaf0(0x350)],_0x542453[0x0],this[_0x59eaf0(0x306)]);return _0x433757[_0x59eaf0(0xf3)](),_0x433757;}throw _0xb346a8[_0x59eaf0(0x29e)];}catch(_0x141ab4){return this['_logService']['error'](_0x141ab4),this[_0x59eaf0(0x2b9)](!0x1);}}[_0x21648f(0xc9)](_0x5a526a){const _0x593c43=_0x21648f;this[_0x593c43(0x12b)]();let _0x45eb78=this[_0x593c43(0xda)][_0x593c43(0x133)](this['unitID']);if(_0x5a526a[_0x593c43(0xcf)]<=_0x45eb78)return this;if(this[_0x593c43(0x3c0)](_0x5a526a))return this[_0x593c43(0x2d9)]['createInstance'](_0x2ef93b,this[_0x593c43(0xff)],this[_0x593c43(0x350)],this['_awaitingChangeset'],[],_0x5a526a[_0x593c43(0xcf)],[],this[_0x593c43(0x306)]);this['_incrementRevisionNumber']();let _0x18dc40=this[_0x593c43(0x2d9)]['createInstance'](_0x1e7b48,this['unitID'],this[_0x593c43(0x350)],this[_0x593c43(0x306)]);return _0x18dc40[_0x593c43(0xf3)](),_0x18dc40;}[_0x21648f(0x394)](_0xff5aac){const _0x2fec91=_0x21648f;return this[_0x2fec91(0x2b9)](!!(_0xff5aac!=null&&_0xff5aac['isPermissionRej']));}[_0x21648f(0x145)](_0x155ab8){const _0x3cee16=_0x21648f;return this[_0x3cee16(0x415)]>_0x4ff607?this[_0x3cee16(0x3b5)]():(this[_0x3cee16(0x2ff)]=_0x11cbd2(this[_0x3cee16(0x3e3)],{'timeout':this['_resendTimeout'],'reqId':_0x155ab8[_0x3cee16(0x1ff)]}),this[_0x3cee16(0xf7)]=this[_0x3cee16(0x2ff)][_0x3cee16(0x3b6)](({reqId:_0x2f6a28,timeout:_0x5b2729})=>{this['_resendWithTimeout'](_0x2f6a28,_0x5b2729);}),this);}[_0x21648f(0x3b5)](){const _0x3b1428=_0x21648f;return this[_0x3b1428(0x12b)](),this[_0x3b1428(0x2d9)][_0x3b1428(0x3d9)](_0x519d9e,this[_0x3b1428(0xff)],this[_0x3b1428(0x350)],this['_awaitingChangeset'],[],this[_0x3b1428(0x306)]);}[_0x21648f(0x29d)](){return this;}[_0x21648f(0x3ac)](){const _0x2da836=_0x21648f;this[_0x2da836(0x306)][_0x2da836(0x11d)](this['_awaitingChangeset']);}['_onConflict'](_0x3eb075){const _0x28fa34=_0x21648f;return this[_0x28fa34(0x12b)](),this[_0x28fa34(0x2d9)][_0x28fa34(0x3d9)](_0x391b2a,this[_0x28fa34(0xff)],this['type'],this[_0x28fa34(0x1ca)],[],this[_0x28fa34(0x306)],_0x3eb075);}['_resendWithTimeout'](_0x8157da,_0x42b20a){const _0x243966=_0x21648f;var _0x39bd69;_0x8157da===((_0x39bd69=this[_0x243966(0x1ca)])==null?void 0x0:_0x39bd69[_0x243966(0x1ff)])&&(this[_0x243966(0x3ac)](),this['_resendTimeout']=_0x42b20a===0x0?0x3e8:Math[_0x243966(0xdb)](_0x42b20a*0x2,_0xf1445d),this[_0x243966(0x415)]+=this[_0x243966(0x3e3)]);}['_clearScheduledTask'](){const _0x323503=_0x21648f;var _0x5d237c;(_0x5d237c=this[_0x323503(0xf7)])==null||_0x5d237c[_0x323503(0x157)](),this[_0x323503(0x3e3)]=0x0,this[_0x323503(0x415)]=0x0;}};_0x403ace=_0x22ebf8=_0x3e0941([_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x6,_0x868841[_0x21648f(0x2fd)]),_0x273192(0x7,_0x868841[_0x21648f(0x206)]),_0x273192(0x8,_0x4c2ece[_0x21648f(0x236)]),_0x273192(0x9,_0x868841[_0x21648f(0x351)]),_0x273192(0xa,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x403ace);let _0x4c911a=_0x4b7fc1=class extends _0x316f37{constructor(_0x1545f4,_0x326363,_0x3a17ba,_0x2485e4,_0x3d727b,_0x3dbdb9,_0x303364,_0x344a94,_0x4843a7,_0x4fb051,_0x1ed5d9,_0x251732,_0x575a36){const _0x3d4adf=_0x21648f;super(_0x1545f4,_0x326363,_0x3a17ba,_0x2485e4,_0x3d727b,_0x4843a7,_0x251732,_0x344a94,_0x575a36),this['_injector']=_0x303364,this[_0x3d4adf(0x2fc)]=_0x4fb051,this['_transformService']=_0x1ed5d9,this['localCacheService']=_0x575a36,_0x6d65c2(this,_0x3d4adf(0x341),_0x3d4adf(0x3dc)),_0x6d65c2(this,_0x3d4adf(0x3e3),0x0),_0x6d65c2(this,_0x3d4adf(0x415),0x0),_0x6d65c2(this,_0x3d4adf(0x2ff),void 0x0),_0x6d65c2(this,'_sender',void 0x0),_0x3dbdb9&&(this['_resendTimer']=_0x3dbdb9,this[_0x3d4adf(0xf7)]=this['_resendTimer'][_0x3d4adf(0x3b6)](({reqId:_0x1392cc,timeout:_0x5326db})=>{const _0x2247ea=_0x3d4adf;this[_0x2247ea(0x1e3)](_0x1392cc,_0x5326db);}));}['appendMutation'](_0x278e75){const _0x5cc352=_0x21648f;return this[_0x5cc352(0x3c3)]['push'](_0x278e75),this;}[_0x21648f(0x2ae)](_0x5d4c52){const _0x37c736=_0x21648f;if(this['_checkMissing'](_0x5d4c52))return this['_clearScheduledTask'](),this[_0x37c736(0x2d9)]['createInstance'](_0x2ef93b,this['unitID'],this[_0x37c736(0x350)],this[_0x37c736(0x1ca)],this['_pendingMutations'],null,[_0x5d4c52],this['_handler']);try{let _0x1e815a=this[_0x37c736(0x376)][_0x37c736(0x419)]([_0x5d4c52],[this[_0x37c736(0x1ca)]],!0x1);if((0x0,_0x4c2ece['isTransformChangesetsSuccess'])(_0x1e815a)){let {c1Prime:_0x1f3243,c2Prime:_0x21430d}=_0x1e815a,_0xd54dc3=this[_0x37c736(0x376)][_0x37c736(0x3e9)](_0x1f3243[0x0],this[_0x37c736(0x3c3)]);if((0x0,_0x4c2ece[_0x37c736(0x2fa)])(_0xd54dc3)){let {c1Prime:_0x38d4d3,m2Prime:_0x4068d0}=_0xd54dc3;return this[_0x37c736(0x296)](_0x38d4d3),_0x21430d[0x0][_0x37c736(0x1d8)]=this[_0x37c736(0x183)](),this[_0x37c736(0x12b)](),this[_0x37c736(0x2d9)][_0x37c736(0x3d9)](_0x4b7fc1,this[_0x37c736(0xff)],this[_0x37c736(0x350)],_0x21430d[0x0],_0x4068d0,this['_handler'],void 0x0);}throw _0xd54dc3['error'];}throw _0x1e815a[_0x37c736(0x29e)];}catch(_0x5d22c9){return this['_logService'][_0x37c736(0x29e)](_0x5d22c9),this[_0x37c736(0x2b9)](!0x1);}}[_0x21648f(0xc9)](_0x54cca7){const _0x48b5b6=_0x21648f;this[_0x48b5b6(0x12b)]();let _0x2e4a19=this['_getCurrentRevision']();if(_0x54cca7['revision']<=_0x2e4a19)return this;if(this[_0x48b5b6(0x3c0)](_0x54cca7))return this[_0x48b5b6(0x2d9)][_0x48b5b6(0x3d9)](_0x2ef93b,this['unitID'],this[_0x48b5b6(0x350)],this['_awaitingChangeset'],this[_0x48b5b6(0x3c3)],_0x54cca7[_0x48b5b6(0xcf)],[],this['_handler']);this[_0x48b5b6(0x3d3)]();let _0x67c0bd=this[_0x48b5b6(0x2d9)][_0x48b5b6(0x3d9)](_0x5f0bc1,this[_0x48b5b6(0xff)],this[_0x48b5b6(0x350)],this[_0x48b5b6(0x3c3)],this[_0x48b5b6(0x306)]);return _0x67c0bd[_0x48b5b6(0xf4)](),_0x67c0bd['_updateLocalCache'](),_0x67c0bd;}[_0x21648f(0x394)](_0x26ca86){return this['_onConflict'](!!(_0x26ca86!=null&&_0x26ca86['isPermissionRej']));}[_0x21648f(0x145)](_0x36ac7e){const _0x291d59=_0x21648f;return this[_0x291d59(0x415)]>_0x4ff607?this[_0x291d59(0x3b5)]():(this['_resendTimer']=_0x11cbd2(this[_0x291d59(0x3e3)],{'timeout':this[_0x291d59(0x3e3)],'reqId':_0x36ac7e[_0x291d59(0x1ff)]}),this[_0x291d59(0xf7)]=this[_0x291d59(0x2ff)][_0x291d59(0x3b6)](({reqId:_0x203127,timeout:_0x1cbc07})=>{const _0x1f3c5c=_0x291d59;this[_0x1f3c5c(0x1e3)](_0x203127,_0x1cbc07);}),this);}[_0x21648f(0x3b5)](){const _0x59a5da=_0x21648f;return this['_clearScheduledTask'](),this['_injector'][_0x59a5da(0x3d9)](_0x519d9e,this[_0x59a5da(0xff)],this[_0x59a5da(0x350)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x59a5da(0x306)]);}[_0x21648f(0x29d)](){return this;}[_0x21648f(0x3ac)](){const _0x192d08=_0x21648f;this[_0x192d08(0x306)][_0x192d08(0x11d)](this['_awaitingChangeset']);}[_0x21648f(0x2b9)](_0x3aa7aa){const _0x52799c=_0x21648f;return this['_clearScheduledTask'](),this[_0x52799c(0x2d9)][_0x52799c(0x3d9)](_0x391b2a,this[_0x52799c(0xff)],this[_0x52799c(0x350)],null,this[_0x52799c(0x3c3)],this[_0x52799c(0x306)],_0x3aa7aa);}['_resendWithTimeout'](_0x438e99,_0x3ec63a){const _0x2eab44=_0x21648f;var _0x1d6ef4;_0x438e99===((_0x1d6ef4=this['_awaitingChangeset'])==null?void 0x0:_0x1d6ef4[_0x2eab44(0x1ff)])&&(this[_0x2eab44(0x3ac)](),this['_resendTimeout']=_0x3ec63a===0x0?0x3e8:Math[_0x2eab44(0xdb)](_0x3ec63a*0x2,_0xf1445d),this[_0x2eab44(0x415)]+=this['_resendTimeout']);}[_0x21648f(0x12b)](){const _0x2cd220=_0x21648f;var _0x7c1f7a;(_0x7c1f7a=this[_0x2cd220(0xf7)])==null||_0x7c1f7a[_0x2cd220(0x157)](),this[_0x2cd220(0x3e3)]=0x0,this[_0x2cd220(0x415)]=0x0;}};_0x4c911a=_0x4b7fc1=_0x3e0941([_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x7,(0x0,_0x868841['Inject'])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x8,_0x868841[_0x21648f(0x2fd)]),_0x273192(0x9,_0x868841[_0x21648f(0x206)]),_0x273192(0xa,_0x4c2ece[_0x21648f(0x236)]),_0x273192(0xb,_0x868841[_0x21648f(0x351)]),_0x273192(0xc,(0x0,_0x868841['Optional'])(_0x47d8b0))],_0x4c911a);let _0x391b2a=class extends _0x316f37{constructor(_0x1fa4bb,_0x4fe3af,_0x44d3c6,_0x711e4c,_0x394721,_0x220d1e=!0x1,_0x2f9282,_0x439a53,_0x1dedb6,_0x329cce,_0x42b005,_0x536963,_0x3dddab){const _0x2fdcc2=_0x21648f;super(_0x1fa4bb,_0x4fe3af,_0x44d3c6,_0x711e4c,_0x394721,_0x439a53,_0x1dedb6,_0x329cce,_0x3dddab),this[_0x2fdcc2(0x301)]=_0x220d1e,this[_0x2fdcc2(0x393)]=_0x2f9282,this[_0x2fdcc2(0x178)]=_0x42b005,this['_collaborationUIEventService']=_0x536963,this[_0x2fdcc2(0x3f1)]=_0x3dddab,_0x6d65c2(this,_0x2fdcc2(0x341),_0x2fdcc2(0x1c5)),this[_0x2fdcc2(0x2bf)](),this[_0x2fdcc2(0x1f9)](),this['_disableEditing']();}[_0x21648f(0x20f)](){return this;}['onRemoteChangeset'](){return this;}[_0x21648f(0xc9)](){return this;}[_0x21648f(0x394)](){return this;}[_0x21648f(0x145)](){return this;}['toggleOffline'](){return this;}[_0x21648f(0x29d)](){return this;}[_0x21648f(0x3ac)](){const _0x5813cc=_0x21648f;throw Error(_0x5813cc(0xf5));}[_0x21648f(0x1f9)](){const _0x57d56e=_0x21648f;var _0x2538b1,_0x35e0c5,_0x36783d;(_0x2538b1=this[_0x57d56e(0x2c8)])==null||(_0x35e0c5=_0x2538b1[_0x57d56e(0x379)])==null||(_0x35e0c5=_0x35e0c5[_0x57d56e(0x257)](_0x2538b1,this[_0x57d56e(0xff)],_0x57d56e(0x1c5)))==null||_0x35e0c5[_0x57d56e(0x34b)](()=>void 0x0),(_0x36783d=this[_0x57d56e(0x2c8)])==null||_0x36783d[_0x57d56e(0x2f0)](this[_0x57d56e(0xff)],this['type'],null,[]);}[_0x21648f(0x2bf)](){const _0x12451d=_0x21648f;this[_0x12451d(0x301)]?this[_0x12451d(0x2bd)][_0x12451d(0x203)]({'id':_0x12451d(0xe7)}):this[_0x12451d(0x2bd)][_0x12451d(0x203)]({'id':'CONFLICT'});}[_0x21648f(0x152)](){const _0x26ed4b=_0x21648f;this[_0x26ed4b(0x393)][_0x26ed4b(0x339)](new _0x1d347c[(_0x26ed4b(0x360))](this['unitID'])['id'],!0x1);}};_0x391b2a=_0x3e0941([_0x273192(0x6,(0x0,_0x868841['Inject'])(_0x868841[_0x21648f(0x307)])),_0x273192(0x7,_0x868841[_0x21648f(0x2fd)]),_0x273192(0x8,_0x868841[_0x21648f(0x351)]),_0x273192(0x9,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece['RevisionService'])),_0x273192(0xa,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x290)])),_0x273192(0xb,(0x0,_0x868841['Inject'])(_0x55b02d)),_0x273192(0xc,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x391b2a);let _0x519d9e=class extends _0x316f37{constructor(_0x1458d6,_0x316881,_0x34d0d3,_0x25195f,_0x3367d9,_0x7f01f0,_0x2d3633,_0x4c434a,_0x50b797,_0x37cef3){const _0x1e9e7a=_0x21648f;super(_0x1458d6,_0x316881,_0x34d0d3,_0x25195f,_0x3367d9,_0x4c434a,_0x50b797,_0x2d3633,_0x37cef3),this['_injector']=_0x7f01f0,_0x6d65c2(this,'status',_0x1e9e7a(0x250));}[_0x21648f(0x20f)](_0x1d240c){const _0x3ffccf=_0x21648f;return this['_pendingMutations']['push'](_0x1d240c),this[_0x3ffccf(0xf3)](),this;}[_0x21648f(0x2ae)](_0x2f4845){const _0x277f22=_0x21648f;throw Error(_0x277f22(0x295));}[_0x21648f(0xc9)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x2ffd21=_0x21648f;throw Error(_0x2ffd21(0x270));}[_0x21648f(0x145)](){return this;}['toggleOffline'](){return this;}[_0x21648f(0x29d)](){const _0x733b5d=_0x21648f;let {_injector:_0x3720ff,_pendingMutations:_0x25d72f,_awaitingChangeset:_0x9911d3,unitID:_0x2cbedd,_handler:_0x41375d,type:_0x38091e}=this,_0x42e244=_0x1522ce(_0x3720ff,_0x2cbedd,_0x38091e,_0x9911d3,_0x25d72f,_0x41375d);return _0x42e244 instanceof _0x5f0bc1?_0x42e244[_0x733b5d(0xf4)]():(_0x42e244 instanceof _0x4c911a||_0x42e244 instanceof _0x403ace)&&_0x42e244[_0x733b5d(0x3ac)](),_0x42e244;}[_0x21648f(0x3ac)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x519d9e=_0x3e0941([_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x7,_0x868841[_0x21648f(0x2fd)]),_0x273192(0x8,_0x868841['IUndoRedoService']),_0x273192(0x9,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x519d9e);let _0x2ef93b=class extends _0x316f37{constructor(_0x2d2fa5,_0x56ef58,_0x5eb312,_0x2cb5ef,_0x51f5f0,_0x3d81db,_0x36701d,_0x3a5a31,_0x451b05,_0x5c5fe7,_0x592ed4,_0x4c4b47,_0x4b71f7,_0x2b2da5){const _0x1cc25b=_0x21648f;super(_0x2d2fa5,_0x56ef58,_0x5eb312,_0x2cb5ef,_0x36701d,_0x592ed4,_0x4c4b47,_0x451b05,_0x2b2da5),this[_0x1cc25b(0x2f7)]=_0x51f5f0,this['_queuedRemoteChangesets']=_0x3d81db,this[_0x1cc25b(0x2d9)]=_0x3a5a31,this[_0x1cc25b(0x2fc)]=_0x5c5fe7,this[_0x1cc25b(0x376)]=_0x4b71f7,this[_0x1cc25b(0x3f1)]=_0x2b2da5,_0x6d65c2(this,_0x1cc25b(0x341),_0x1cc25b(0x402));}[_0x21648f(0xc7)](_0x1aa240){const _0x52b322=_0x21648f;try{if(this[_0x52b322(0x342)](_0x1aa240)[_0x52b322(0x3e2)])throw Error(_0x52b322(0x403));if(this['_handleRemoteChangesets']([...this[_0x52b322(0x3f3)]]['sort']((_0x1a0bb5,_0x17905f)=>_0x1a0bb5[_0x52b322(0xcf)]-_0x17905f[_0x52b322(0xcf)]))[_0x52b322(0x3e2)])return this[_0x52b322(0x3f3)]=[],this[_0x52b322(0xf3)](),this['_handler'][_0x52b322(0x25d)]({'from':this[_0x52b322(0x183)](),'to':0x0}),this;let _0x3ac448=this[_0x52b322(0x1ca)],_0x4bfbd1=this[_0x52b322(0x3c3)],_0x4151ae;if(_0x3ac448&&_0x4bfbd1[_0x52b322(0x207)]!==0x0)_0x4151ae=this['_injector'][_0x52b322(0x3d9)](_0x4c911a,this[_0x52b322(0xff)],this[_0x52b322(0x350)],_0x3ac448,_0x4bfbd1,this[_0x52b322(0x306)],void 0x0);else{if(_0x3ac448&&_0x4bfbd1[_0x52b322(0x207)]===0x0)_0x3ac448[_0x52b322(0x1d8)]=this['_getCurrentRevision'](),_0x4151ae=this[_0x52b322(0x2d9)]['createInstance'](_0x403ace,this['unitID'],this[_0x52b322(0x350)],_0x3ac448,this[_0x52b322(0x306)]);else{if(_0x4bfbd1[_0x52b322(0x207)]!==0x0){let _0x210198=this[_0x52b322(0x2d9)]['createInstance'](_0x5f0bc1,this[_0x52b322(0xff)],this[_0x52b322(0x350)],_0x4bfbd1,this[_0x52b322(0x306)]);_0x210198[_0x52b322(0xf4)](),_0x4151ae=_0x210198;}else _0x4151ae=this[_0x52b322(0x2d9)][_0x52b322(0x3d9)](_0x1e7b48,this[_0x52b322(0xff)],this['type'],this[_0x52b322(0x306)]);}}return _0x4151ae[_0x52b322(0xf3)](),_0x4151ae;}catch(_0x53937f){return this['_logService']['error']('[FetchMissState]',_0x52b322(0x32d),_0x53937f),this[_0x52b322(0x2d9)][_0x52b322(0x3d9)](_0x391b2a,this['unitID'],this[_0x52b322(0x350)],this[_0x52b322(0x1ca)],this[_0x52b322(0x3c3)],this[_0x52b322(0x306)],!0x1);}}[_0x21648f(0x342)](_0x5e0e20){const _0x26ff9d=_0x21648f;this[_0x26ff9d(0x12a)]();for(let _0x3c7968=0x0;_0x3c7968<_0x5e0e20[_0x26ff9d(0x207)];_0x3c7968++){let _0x185664=_0x5e0e20[_0x3c7968],_0x322897=this[_0x26ff9d(0x183)]();if(!(_0x185664[_0x26ff9d(0xcf)]<=_0x322897)){if(_0x185664['revision']>_0x322897+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x185664)){this[_0x26ff9d(0x375)]();continue;}this[_0x26ff9d(0x1f1)](_0x185664),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x21648f(0x1f1)](_0x159b49){const _0x331a9c=_0x21648f;let _0x549fda=_0x159b49,_0x432d78=this[_0x331a9c(0x1ca)];if(_0x432d78){let _0x44abca=this[_0x331a9c(0x376)]['transformChangesets']([_0x159b49],[_0x432d78],!0x1);if(!(0x0,_0x4c2ece[_0x331a9c(0x3a4)])(_0x44abca))throw _0x44abca[_0x331a9c(0x29e)];_0x549fda=_0x44abca[_0x331a9c(0x3ae)][0x0],_0x432d78=_0x44abca[_0x331a9c(0x1dc)][0x0];}let _0x46f055=this[_0x331a9c(0x3c3)];if(_0x46f055[_0x331a9c(0x207)]){let _0x30e93c=this[_0x331a9c(0x376)][_0x331a9c(0x3e9)](_0x549fda,_0x46f055);if(!(0x0,_0x4c2ece[_0x331a9c(0x2fa)])(_0x30e93c))throw _0x30e93c['error'];_0x549fda=_0x30e93c[_0x331a9c(0x3ae)],_0x46f055=_0x30e93c[_0x331a9c(0x188)];}this[_0x331a9c(0x296)](_0x549fda),_0x432d78&&(_0x432d78[_0x331a9c(0x1d8)]=this[_0x331a9c(0x183)]()),this[_0x331a9c(0x1ca)]=_0x432d78,this[_0x331a9c(0x3c3)]=_0x46f055;}[_0x21648f(0x12a)](){const _0x53f3c2=_0x21648f;if(!this[_0x53f3c2(0x1ca)]||this[_0x53f3c2(0x2f7)]==null)return;let _0xe0dc16=this[_0x53f3c2(0x183)]();if(this[_0x53f3c2(0x2f7)]<=_0xe0dc16)throw Error(_0x53f3c2(0x16f)+this[_0x53f3c2(0x2f7)]+'.');this['_acknowledgedAwaitingRevision']===_0xe0dc16+0x1&&this[_0x53f3c2(0x375)]();}[_0x21648f(0x375)](){const _0x34ed63=_0x21648f;this[_0x34ed63(0x3d3)](),this[_0x34ed63(0x1ca)]=null,this[_0x34ed63(0x2f7)]=null;}[_0x21648f(0x12e)](_0x439fd5){const _0x26495b=_0x21648f;let _0x5ddd1f=this['_awaitingChangeset'];return!_0x5ddd1f||!_0x5ddd1f[_0x26495b(0x2d6)]||_0x5ddd1f[_0x26495b(0x1ff)]===null||_0x5ddd1f[_0x26495b(0x1ff)]===void 0x0?!0x1:_0x439fd5['unitID']===_0x5ddd1f['unitID']&&_0x439fd5[_0x26495b(0x2d6)]===_0x5ddd1f[_0x26495b(0x2d6)]&&_0x439fd5[_0x26495b(0x1ff)]===_0x5ddd1f[_0x26495b(0x1ff)];}[_0x21648f(0x3ac)](){const _0xb16caa=_0x21648f;throw Error(_0xb16caa(0x248));}['appendMutation'](_0x4453af){const _0x577b8e=_0x21648f;return this[_0x577b8e(0x3c3)][_0x577b8e(0x327)](_0x4453af),this;}[_0x21648f(0x2ae)](_0x3c99b9){const _0x1187d2=_0x21648f;return this[_0x1187d2(0x3f3)][_0x1187d2(0x327)](_0x3c99b9),this;}[_0x21648f(0xc9)](_0x28bb11){const _0x3a54bd=_0x21648f;if(this[_0x3a54bd(0x1ca)]){let _0x1d842b=this[_0x3a54bd(0x183)]();return _0x28bb11['revision']<=_0x1d842b||(_0x1d842b+0x1===_0x28bb11['revision']?(this['_incrementRevisionNumber'](),this[_0x3a54bd(0x1ca)]=null,this[_0x3a54bd(0x2f7)]=null):this[_0x3a54bd(0x2f7)]=_0x28bb11[_0x3a54bd(0xcf)]),this;}if(_0x28bb11[_0x3a54bd(0xcf)]<=this['_getCurrentRevision']())return this;throw Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x17834b){const _0x42ade0=_0x21648f;return this[_0x42ade0(0x2b9)](!!(_0x17834b!=null&&_0x17834b['isPermissionRej']));}[_0x21648f(0x145)](){return this;}[_0x21648f(0x3b5)](){const _0x197895=_0x21648f;return this[_0x197895(0x2d9)][_0x197895(0x3d9)](_0x519d9e,this[_0x197895(0xff)],this[_0x197895(0x350)],this[_0x197895(0x1ca)],this['_pendingMutations'],this[_0x197895(0x306)]);}[_0x21648f(0x29d)](){return this;}[_0x21648f(0x2b9)](_0x5c4b63){const _0x2c4c55=_0x21648f;return this[_0x2c4c55(0x2d9)]['createInstance'](_0x391b2a,this[_0x2c4c55(0xff)],this[_0x2c4c55(0x350)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x2c4c55(0x306)],_0x5c4b63);}};_0x2ef93b=_0x3e0941([_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x8,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x9,_0x868841[_0x21648f(0x206)]),_0x273192(0xa,_0x868841[_0x21648f(0x2fd)]),_0x273192(0xb,_0x868841[_0x21648f(0x351)]),_0x273192(0xc,_0x4c2ece[_0x21648f(0x236)]),_0x273192(0xd,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x2ef93b);function _0x1522ce(_0x12f76d,_0x12fbd4,_0x3b33f7,_0x3ccd6d,_0x37e4e9,_0x18bb95){const _0x177e92=_0x21648f;return _0x3ccd6d&&_0x37e4e9['length']?_0x12f76d['createInstance'](_0x4c911a,_0x12fbd4,_0x3b33f7,_0x3ccd6d,_0x37e4e9,_0x18bb95,void 0x0):_0x3ccd6d?_0x12f76d[_0x177e92(0x3d9)](_0x403ace,_0x12fbd4,_0x3b33f7,_0x3ccd6d,_0x18bb95):_0x37e4e9[_0x177e92(0x207)]?_0x12f76d[_0x177e92(0x3d9)](_0x5f0bc1,_0x12fbd4,_0x3b33f7,_0x37e4e9,_0x18bb95):_0x12f76d['createInstance'](_0x1e7b48,_0x12fbd4,_0x3b33f7,_0x18bb95);}let _0x598b2a=class extends _0x868841[_0x21648f(0x112)]{get[_0x21648f(0xcc)](){return this['_state'];}constructor(_0x4be8eb,_0x4fd579,_0x4bc0c1,_0xf5bb5e,_0x3e40c2,_0x5ab8a5,_0x2fd36f,_0x115cce,_0x146ea5,_0x5c5944,_0x2a680a,_0x3cefb3,_0x40014d,_0x234439){const _0x3f8697=_0x21648f;super(),this[_0x3f8697(0xff)]=_0x4be8eb,this['session']=_0x4fd579,this[_0x3f8697(0x321)]=_0x4bc0c1,this[_0x3f8697(0x2d9)]=_0xf5bb5e,this[_0x3f8697(0x2ab)]=_0x3e40c2,this[_0x3f8697(0x178)]=_0x5ab8a5,this[_0x3f8697(0xda)]=_0x2fd36f,this[_0x3f8697(0x11e)]=_0x115cce,this[_0x3f8697(0x32f)]=_0x146ea5,this[_0x3f8697(0x2fc)]=_0x5c5944,this[_0x3f8697(0x155)]=_0x2a680a,this['_permissionService']=_0x3cefb3,this['_singleActiveUnitService']=_0x40014d,this[_0x3f8697(0x2c8)]=_0x234439,_0x6d65c2(this,_0x3f8697(0x18b),new _0x409690['BehaviorSubject'](null)),_0x6d65c2(this,'state$',this['_state$'][_0x3f8697(0x340)]()),_0x6d65c2(this,'_state',void 0x0),_0x6d65c2(this,'_collaborationPaused',!0x1),_0x6d65c2(this,_0x3f8697(0x2e6),''),_0x6d65c2(this,_0x3f8697(0x2d0),0x0),_0x6d65c2(this,_0x3f8697(0x396),this[_0x3f8697(0xfc)][_0x3f8697(0x320)]((0x0,_0x409690[_0x3f8697(0x26e)])(_0x13ec61=>_0x13ec61?_0x13ec61['status']:'offline'),(0x0,_0x409690['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_0x6d65c2(this,_0x3f8697(0x323),!0x1),_0x6d65c2(this,_0x3f8697(0x2f2),[]);}async[_0x21648f(0x18a)](){const _0x223762=_0x21648f;if(this[_0x223762(0xcc)])throw Error(_0x223762(0x2e4));await this[_0x223762(0x139)]();}[_0x21648f(0x13f)](){const _0x302e80=_0x21648f;return this[_0x302e80(0x28c)]=!0x0,(0x0,_0x868841['toDisposable'])(()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x21648f(0x3b1)](_0x4b0caa){const _0x3f6426=_0x21648f;this[_0x3f6426(0x211)](_0x4b0caa);}[_0x21648f(0x3dd)](_0x1b2811){const _0x220302=_0x21648f;this[_0x220302(0x392)]=_0x1b2811,this[_0x220302(0x18b)][_0x220302(0xdd)](_0x1b2811);}async[_0x21648f(0x139)](){const _0x37651c=_0x21648f;if(this[_0x37651c(0x3dd)](await this[_0x37651c(0x1f6)]()),this[_0x37651c(0x1a6)]){var _0x48db3b;(_0x48db3b=this[_0x37651c(0x1a6)])==null||_0x48db3b[_0x37651c(0x1f4)](this['unitID']),this[_0x37651c(0xd1)](this['_singleActiveUnitService'][_0x37651c(0x19b)](this[_0x37651c(0xff)])[_0x37651c(0x3b6)](_0x4c131c=>{const _0x134d99=_0x37651c;this['_logService'][_0x134d99(0x39c)](_0x134d99(0xde),_0x134d99(0x3b0),_0x4c131c),_0x4c131c===0x1?(this[_0x134d99(0x11e)][_0x134d99(0x203)]({'id':'OTHER_CLIENT_EDITING'}),this['_permissionService'][_0x134d99(0x339)](new _0x1d347c[(_0x134d99(0x360))](this[_0x134d99(0xff)])['id'],!0x1),this[_0x134d99(0x393)][_0x134d99(0x2b6)](!0x1)):(this[_0x134d99(0x393)][_0x134d99(0x339)](new _0x1d347c[(_0x134d99(0x360))](this['unitID'])['id'],!0x0),this[_0x134d99(0x393)][_0x134d99(0x2b6)](!0x0));}));}let _0x571e6d=!0x1;return this['disposeWithMe'](this[_0x37651c(0x24d)][_0x37651c(0x1ce)][_0x37651c(0x3b6)](_0x53f712=>{const _0x49bf78=_0x37651c;_0x53f712===0x3?this[_0x49bf78(0x1e2)](_0x571e6d):_0x53f712===0x2&&(_0x571e6d=!0x0,this[_0x49bf78(0x311)]());})),this[_0x37651c(0xd1)](this[_0x37651c(0x24d)]['event$'][_0x37651c(0x3b6)](_0x43bda4=>{const _0x3dfb7c=_0x37651c;try{switch(_0x43bda4[_0x3dfb7c(0x1d9)]){case _0x4c2ece['CollaborationEvent'][_0x3dfb7c(0x174)]:this[_0x3dfb7c(0x221)]((0x0,_0x4c2ece['parseProtocolChangeset'])(_0x43bda4[_0x3dfb7c(0x29b)]));break;case _0x4c2ece['CollaborationEvent'][_0x3dfb7c(0x3c2)]:this[_0x3dfb7c(0x1d2)](_0x43bda4[_0x3dfb7c(0x29b)]);break;case _0x4c2ece[_0x3dfb7c(0x343)]['CHANGESET_REJ']:this[_0x3dfb7c(0x361)]();break;case _0x4c2ece[_0x3dfb7c(0x343)][_0x3dfb7c(0x2be)]:this[_0x3dfb7c(0x12f)](_0x43bda4[_0x3dfb7c(0x29b)]);break;case _0x4c2ece[_0x3dfb7c(0x343)][_0x3dfb7c(0x26a)]:this['_onFetchMissResult'](_0x43bda4[_0x3dfb7c(0x29b)][_0x3dfb7c(0x14b)]['map'](_0x4cc82d=>(0x0,_0x4c2ece['parseProtocolChangeset'])(_0x4cc82d)));break;case _0x4c2ece[_0x3dfb7c(0x343)]['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x4c2ece['CollaborationEvent'][_0x3dfb7c(0x1cd)]:break;}}catch(_0x347df9){throw console[_0x3dfb7c(0x29e)](_0x3dfb7c(0x29c),_0x347df9),_0x347df9;}})),this[_0x37651c(0x392)];}['_unlockTransition'](){const _0x11e18a=_0x21648f;this[_0x11e18a(0x323)]=!0x1;}[_0x21648f(0x365)](){const _0x56538e=_0x21648f;if(this[_0x56538e(0x323)])throw Error(_0x56538e(0x34e));this['_transitionLocked']=!0x0;}[_0x21648f(0x211)](_0x455eae){const _0x36527c=_0x21648f;this[_0x36527c(0x365)](),this[_0x36527c(0x3dd)](this[_0x36527c(0x392)]['appendMutation'](_0x455eae)),this['_unlockTransition']();}[_0x21648f(0x221)](_0x275215){const _0x1021ec=_0x21648f;if(!(_0x275215['revision']<=this[_0x1021ec(0xda)][_0x1021ec(0x133)](this['unitID']))){if(this['_collaborationPaused']){this['_remoteChangesetQueue']['push'](_0x275215);return;}this[_0x1021ec(0x405)](_0x275215);}}[_0x21648f(0x105)](){const _0x1ba669=_0x21648f;this[_0x1ba669(0x2f2)][_0x1ba669(0x352)](_0x593eca=>this[_0x1ba669(0x405)](_0x593eca)),this[_0x1ba669(0x2f2)]=[];}[_0x21648f(0x405)](_0x444928){const _0x5b7c21=_0x21648f;let _0xd8a8fe=this[_0x5b7c21(0x2ab)]['interceptor'][_0x5b7c21(0x3b3)](this[_0x5b7c21(0x2ab)][_0x5b7c21(0x1a2)][_0x5b7c21(0x378)]()[_0x5b7c21(0xc6)])(_0x444928[_0x5b7c21(0x1bb)],null)||_0x444928[_0x5b7c21(0x1bb)],_0xed1f79={..._0x444928,'mutations':_0xd8a8fe};this[_0x5b7c21(0x365)](),this[_0x5b7c21(0x3dd)](this['_state'][_0x5b7c21(0x2ae)](_0xed1f79)),this['_unlockTransition']();}[_0x21648f(0x1d2)](_0x4d6841){const _0x2eebf6=_0x21648f;this['_lockTransition'](),this[_0x2eebf6(0x3dd)](this[_0x2eebf6(0x392)]['onRemoteAck'](_0x4d6841)),this['_unlockTransition']();}['_onRemoteRejected'](_0x1d1939){const _0x372a08=_0x21648f;this['_lockTransition'](),this[_0x372a08(0x3dd)](this['_state'][_0x372a08(0x394)](_0x1d1939)),this[_0x372a08(0x18f)]();}['_onRemoteRetry'](_0x1de9b0){const _0x281e52=_0x21648f;this['_lockTransition'](),this['_updateState'](this[_0x281e52(0x392)]['onRemoteRetry'](_0x1de9b0)),this[_0x281e52(0x18f)]();}['_onFetchMissResult'](_0x18d77b){const _0x3d0fd2=_0x21648f;if(!(this[_0x3d0fd2(0x392)]instanceof _0x2ef93b))throw TypeError(_0x3d0fd2(0x247));let _0x4945b5=_0x18d77b[_0x3d0fd2(0x26e)](_0x1c66aa=>{const _0x2835c8=_0x3d0fd2;let _0x37102b=this['_compressMutationService'][_0x2835c8(0x1a2)][_0x2835c8(0x3b3)](this[_0x2835c8(0x2ab)][_0x2835c8(0x1a2)][_0x2835c8(0x378)]()['COMPRESS_MUTATION_APPLY'])(_0x1c66aa['mutations'],null)||_0x1c66aa['mutations'];return{..._0x1c66aa,'mutations':_0x37102b};});this[_0x3d0fd2(0x365)](),this['_updateState'](this[_0x3d0fd2(0x392)][_0x3d0fd2(0xc7)](_0x4945b5)),this[_0x3d0fd2(0x18f)]();}[_0x21648f(0x311)](){const _0x47b022=_0x21648f;this[_0x47b022(0x365)](),this['_updateState'](this[_0x47b022(0x392)][_0x47b022(0x3b5)]()),this[_0x47b022(0x18f)]();}[_0x21648f(0x1e2)](_0x30fc87=!0x1){const _0x4e7cfa=_0x21648f;this['_lockTransition'](),this[_0x4e7cfa(0x3dd)](this[_0x4e7cfa(0x392)][_0x4e7cfa(0x29d)]()),this['_unlockTransition']();let _0x1b6b57=this[_0x4e7cfa(0x392)];_0x30fc87&&_0x1b6b57 instanceof _0x1e7b48&&(this[_0x4e7cfa(0x365)](),this[_0x4e7cfa(0x3dd)](_0x1b6b57[_0x4e7cfa(0x175)]()),this[_0x4e7cfa(0x18f)]());}async['_createInitialState'](){return new Promise(_0x1d328c=>{const _0x40d769=_0x2b93;this[_0x40d769(0x24d)]['sessionStatus$'][_0x40d769(0x320)]((0x0,_0x409690[_0x40d769(0x2e2)])(0x1))[_0x40d769(0x3b6)](async _0x2017eb=>{const _0x12751f=_0x40d769;_0x1d328c(await this[_0x12751f(0x10b)](_0x2017eb===0x3));});});}['_createHandler'](){const _0x3a4aaf=_0x21648f;let _0x36b61f=this[_0x3a4aaf(0xff)];return{'onStateChange':(_0x275da5,_0xb8b92a)=>{const _0x47799a=_0x3a4aaf;if(_0x275da5!==this[_0x47799a(0x392)])throw Error(_0x47799a(0x26c)+_0x275da5['status']+_0x47799a(0x22f)+_0xb8b92a[_0x47799a(0x341)]+_0x47799a(0x23d)+this['_state']['status']);this[_0x47799a(0x3dd)](_0xb8b92a);},'onSendChangeset':_0x1b84d1=>{const _0x46cec2=_0x3a4aaf;_0x1b84d1[_0x46cec2(0x2d6)]||(_0x1b84d1[_0x46cec2(0x2d6)]=this[_0x46cec2(0x2e6)],_0x1b84d1['reqId']=++this[_0x46cec2(0x2d0)]);let _0xfbecf5={'eventID':_0x4c2ece[_0x46cec2(0x343)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x1b84d1['unitID'],'unitType':this['_type'],'changeset':_0x1b84d1,'memberID':this[_0x46cec2(0x24d)][_0x46cec2(0x372)]()}};this[_0x46cec2(0x24d)][_0x46cec2(0x182)](_0xfbecf5,this[_0x46cec2(0xff)]);},'onMissingChangesets':({from:_0x253d53,to:_0x1baa33})=>{const _0x4c5209=_0x3a4aaf;this[_0x4c5209(0x2fc)][_0x4c5209(0x39c)](_0x4c5209(0xde),_0x4c5209(0x2af)+_0x253d53+_0x4c5209(0x368)+_0x1baa33);let _0x2ebec9={'eventID':_0x4c2ece[_0x4c5209(0x343)][_0x4c5209(0x2f4)],'data':{'unitID':_0x36b61f,'unitType':this[_0x4c5209(0x321)],'from':_0x253d53,'to':_0x1baa33}};this[_0x4c5209(0x24d)]['send'](_0x2ebec9,this[_0x4c5209(0xff)]);}};}async['_createInitialStateImpl'](_0x3bbdb4){const _0x448190=_0x21648f;var _0x1d80bf,_0x6e39e7,_0x4a3a74;let _0x39f77a=await((_0x1d80bf=this[_0x448190(0x2c8)])==null?void 0x0:_0x1d80bf[_0x448190(0x38e)](this[_0x448190(0xff)])),_0x2f9da2=(_0x6e39e7=_0x39f77a==null?void 0x0:_0x39f77a[_0x448190(0x1bb)])==null?[]:_0x6e39e7,_0x3c4431=(_0x4a3a74=_0x39f77a==null?void 0x0:_0x39f77a[_0x448190(0x1ed)])==null?null:_0x4a3a74,_0x361e06=!!(_0x3c4431!=null&&_0x3c4431[_0x448190(0x2d6)])&&!!(_0x3c4431!=null&&_0x3c4431[_0x448190(0x1ff)]);this[_0x448190(0x2e6)]=_0x361e06?_0x3c4431[_0x448190(0x2d6)]:(0x0,_0x4c2ece['uuidv4'])(),this[_0x448190(0x2d0)]=_0x361e06?_0x3c4431['reqId']:0x0;let _0x406679=this['unitID'];try{this['_replayCachedMutations'](_0x3c4431,_0x2f9da2);}catch(_0x2eee9c){this['_logService'][_0x448190(0x29e)](_0x2eee9c);}let _0x2e42ae=this[_0x448190(0x1a7)]();if(_0x3bbdb4){let _0x215a77=_0x1522ce(this[_0x448190(0x2d9)],_0x406679,this[_0x448190(0x321)],_0x3c4431,_0x2f9da2,_0x2e42ae);return _0x215a77 instanceof _0x5f0bc1?_0x215a77[_0x448190(0xf4)]():(_0x215a77 instanceof _0x4c911a||_0x215a77 instanceof _0x403ace)&&_0x215a77[_0x448190(0x3ac)](),_0x215a77;}return this[_0x448190(0x2d9)][_0x448190(0x3d9)](_0x519d9e,_0x406679,this[_0x448190(0x321)],_0x3c4431,_0x2f9da2,_0x2e42ae);}[_0x21648f(0x169)](_0x4eff8d,_0x5ced76){const _0x2b61e4=_0x21648f;var _0x279c86,_0x266434;let _0x52f7fb=this[_0x2b61e4(0x2ab)][_0x2b61e4(0x1a2)][_0x2b61e4(0x3b3)](this['_compressMutationService']['interceptor'][_0x2b61e4(0x378)]()[_0x2b61e4(0xc6)]);(_0x279c86=_0x52f7fb((_0x4eff8d==null?void 0x0:_0x4eff8d['mutations'])||[],null))==null||_0x279c86[_0x2b61e4(0x352)](_0x2067b7=>this[_0x2b61e4(0x155)]['executeCommand'](_0x2067b7['id'],_0x2067b7[_0x2b61e4(0x2b4)])),(_0x266434=_0x52f7fb(_0x5ced76||[],null))==null||_0x266434[_0x2b61e4(0x352)](_0x2e599b=>this['_commandService'][_0x2b61e4(0x1cb)](_0x2e599b['id'],_0x2e599b[_0x2b61e4(0x2b4)]));}};_0x598b2a=_0x3e0941([_0x273192(0x3,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x4,(0x0,_0x868841['Inject'])(_0x4c2ece[_0x21648f(0x275)])),_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x290)])),_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d)),_0x273192(0x8,_0x868841[_0x21648f(0x214)]),_0x273192(0x9,_0x868841[_0x21648f(0x206)]),_0x273192(0xa,_0x868841[_0x21648f(0x2fd)]),_0x273192(0xb,_0x868841[_0x21648f(0x307)]),_0x273192(0xc,(0x0,_0x868841['Optional'])(_0x3857c0)),_0x273192(0xd,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x598b2a);let _0x148d55=class extends _0x598b2a{constructor(_0x17f7da,_0x3931cc,_0x55f2f2,_0x354dd9,_0x4069fa,_0xfdbccb,_0xb8af4a,_0x37ff4e,_0x2ed815,_0x4ee4ae,_0x4016d5,_0x2dad82,_0x3a9fbf,_0x42a31a,_0x86b865){const _0x22146d=_0x21648f;super(_0x17f7da,_0x55f2f2,_0x3931cc,_0x354dd9,_0x4069fa,_0xfdbccb,_0xb8af4a,_0x37ff4e,_0x2ed815,_0x4ee4ae,_0x4016d5,_0x2dad82,_0x42a31a,_0x86b865),this[_0x22146d(0xff)]=_0x17f7da,this[_0x22146d(0x350)]=_0x3931cc,this[_0x22146d(0x14a)]=_0x3a9fbf,_0x6d65c2(this,_0x22146d(0x3ff),null);}[_0x21648f(0x31c)](_0x2fb48d){const _0x22a0f0=_0x21648f;this[_0x22a0f0(0x3ff)]=_0x2fb48d;}[_0x21648f(0x265)](){this['_handlerCallback']=null,super['dispose']();}[_0x21648f(0x1a7)](){const _0xd159e8=_0x21648f;let _0x22bea2=super['_createHandler']();return _0x22bea2[_0xd159e8(0x1d5)]=_0x218232=>{const _0x5c3e6c=_0xd159e8;var _0xeffb27,_0x5e6a54;return(_0xeffb27=this['_handlerCallback'])==null||(_0x5e6a54=_0xeffb27[_0x5c3e6c(0x1d5)])==null?void 0x0:_0x5e6a54[_0x5c3e6c(0x257)](_0xeffb27,_0x218232);},_0x22bea2[_0xd159e8(0x2e0)]=_0x51597b=>{const _0x34f593=_0xd159e8;var _0x2b536b,_0x4f0d89;return(_0x2b536b=this[_0x34f593(0x3ff)])==null||(_0x4f0d89=_0x2b536b[_0x34f593(0x2e0)])==null?void 0x0:_0x4f0d89[_0x34f593(0x257)](_0x2b536b,_0x51597b);},_0x22bea2[_0xd159e8(0x33c)]=_0x38e5cf=>{const _0x2d2104=_0xd159e8;var _0x294729,_0x310019;return(_0x294729=this[_0x2d2104(0x3ff)])==null||(_0x310019=_0x294729[_0x2d2104(0x33c)])==null?void 0x0:_0x310019[_0x2d2104(0x257)](_0x294729,_0x38e5cf);},_0x22bea2[_0xd159e8(0x2f6)]=_0x5d649e=>{const _0x16c791=_0xd159e8;var _0x1de910,_0x59aaef;return(_0x1de910=this[_0x16c791(0x3ff)])==null||(_0x59aaef=_0x1de910[_0x16c791(0x2f6)])==null?void 0x0:_0x59aaef['call'](_0x1de910,_0x5d649e);},_0x22bea2[_0xd159e8(0x19f)]=_0x48151a=>{const _0x30e389=_0xd159e8;var _0x4c0359,_0x28e2ac,_0x1ba06d;return(_0x4c0359=(_0x28e2ac=this[_0x30e389(0x3ff)])==null||(_0x1ba06d=_0x28e2ac[_0x30e389(0x19f)])==null?void 0x0:_0x1ba06d[_0x30e389(0x257)](_0x28e2ac,_0x48151a))==null?_0x48151a:_0x4c0359;},_0x22bea2[_0xd159e8(0x347)]=_0x4fe4a5=>{const _0x4bfb77=_0xd159e8;var _0x165193,_0x2f83ee,_0xa73929;return(_0x165193=(_0x2f83ee=this[_0x4bfb77(0x3ff)])==null||(_0xa73929=_0x2f83ee[_0x4bfb77(0x347)])==null?void 0x0:_0xa73929[_0x4bfb77(0x257)](_0x2f83ee,_0x4fe4a5))==null?_0x4fe4a5:_0x165193;},_0x22bea2;}async[_0x21648f(0x139)](){const _0x3527c2=_0x21648f;let _0x184730=await super[_0x3527c2(0x139)]();return this[_0x3527c2(0xd1)](this[_0x3527c2(0x14a)]['docStateChange$']['subscribe'](_0x3a8d72=>{const _0xe82aea=_0x3527c2;if(_0x3a8d72==null||_0x3a8d72[_0xe82aea(0x3b9)]!==this[_0xe82aea(0xff)])return;let {commandId:_0xef0038,redoState:_0x41fc93,unitId:_0x8a5b0d}=_0x3a8d72,_0x6c313={'id':_0xef0038,'type':_0x868841[_0xe82aea(0x3a8)][_0xe82aea(0x2f9)],'params':{'unitId':_0x8a5b0d,'actions':_0x41fc93[_0xe82aea(0x130)],'textRanges':null}};this[_0xe82aea(0x211)](_0x6c313);})),this[_0x3527c2(0xd1)](this[_0x3527c2(0x155)][_0x3527c2(0x217)]((_0x243989,_0x593b35)=>{const _0x1a03a3=_0x3527c2;if(_0x243989[_0x1a03a3(0x350)]!==_0x868841[_0x1a03a3(0x3a8)]['MUTATION']||_0x593b35!=null&&_0x593b35[_0x1a03a3(0xd8)]||_0x593b35!=null&&_0x593b35[_0x1a03a3(0x234)]||_0x243989['id']===_0x45a7a0[_0x1a03a3(0x364)]['id'])return;let _0x17fb1d=_0x243989[_0x1a03a3(0x2b4)];if((_0x17fb1d==null?void 0x0:_0x17fb1d[_0x1a03a3(0x3b9)])!==this[_0x1a03a3(0xff)])return;let _0x4641bf=_0x243989,_0x27c2fb=this[_0x1a03a3(0x2ab)][_0x1a03a3(0x1a2)][_0x1a03a3(0x3b3)](this[_0x1a03a3(0x2ab)][_0x1a03a3(0x1a2)][_0x1a03a3(0x378)]()['COMPRESS_MUTATION_SEND'])([_0x4641bf],this['_univerInstanceService'])||[_0x4641bf];this[_0x1a03a3(0x211)](_0x27c2fb[0x0]);})),_0x184730;}};_0x148d55=_0x3e0941([_0x273192(0x3,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x275)])),_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['LocaleService'])),_0x273192(0x6,(0x0,_0x868841['Inject'])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d)),_0x273192(0x8,_0x868841[_0x21648f(0x214)]),_0x273192(0x9,_0x868841['ILogService']),_0x273192(0xa,_0x868841[_0x21648f(0x2fd)]),_0x273192(0xb,_0x868841[_0x21648f(0x307)]),_0x273192(0xc,(0x0,_0x868841['Inject'])(_0x45a7a0[_0x21648f(0x1a8)])),_0x273192(0xd,(0x0,_0x868841[_0x21648f(0x238)])(_0x3857c0)),_0x273192(0xe,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x148d55);let _0x552cde=class extends _0x598b2a{constructor(_0x186d7a,_0x4323e9,_0x30b0da,_0x466a33,_0x2aa647,_0x177394,_0x4d3cd3,_0x1e31c9,_0x3cc2f7,_0x1a8e43,_0x272e9c,_0x2b54ef,_0x4808ec,_0x20c77b){const _0x2c3002=_0x21648f;super(_0x186d7a,_0x30b0da,_0x4323e9,_0x466a33,_0x2aa647,_0x177394,_0x4d3cd3,_0x1e31c9,_0x3cc2f7,_0x1a8e43,_0x272e9c,_0x2b54ef,_0x4808ec,_0x20c77b),this[_0x2c3002(0xff)]=_0x186d7a,this[_0x2c3002(0x350)]=_0x4323e9;}async[_0x21648f(0x139)](){const _0xfe353e=_0x21648f;let _0x3e3a81=await super[_0xfe353e(0x139)]();return this[_0xfe353e(0xd1)](this[_0xfe353e(0x155)][_0xfe353e(0x217)]((_0x2cbd2e,_0x226759)=>{const _0x24c0c0=_0xfe353e;if(_0x2cbd2e[_0x24c0c0(0x350)]!==_0x868841[_0x24c0c0(0x3a8)][_0x24c0c0(0x2f9)]||_0x226759!=null&&_0x226759['fromCollab']||_0x226759!=null&&_0x226759[_0x24c0c0(0x234)])return;let _0x5e04c2=_0x2cbd2e[_0x24c0c0(0x2b4)];if((_0x5e04c2==null?void 0x0:_0x5e04c2[_0x24c0c0(0x3b9)])!==this[_0x24c0c0(0xff)])return;let _0x401639=_0x2cbd2e,_0x3e746a=this[_0x24c0c0(0x2ab)][_0x24c0c0(0x1a2)]['fetchThroughInterceptors'](this[_0x24c0c0(0x2ab)][_0x24c0c0(0x1a2)][_0x24c0c0(0x378)]()[_0x24c0c0(0x232)])([_0x401639],this[_0x24c0c0(0x32f)])||[_0x401639];this['_onLocalMutation'](_0x3e746a[0x0]);})),_0x3e3a81;}};_0x552cde=_0x3e0941([_0x273192(0x3,(0x0,_0x868841['Inject'])(_0x868841['Injector'])),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece['CompressMutationService'])),_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['LocaleService'])),_0x273192(0x6,(0x0,_0x868841['Inject'])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d)),_0x273192(0x8,_0x868841[_0x21648f(0x214)]),_0x273192(0x9,_0x868841['ILogService']),_0x273192(0xa,_0x868841[_0x21648f(0x2fd)]),_0x273192(0xb,_0x868841[_0x21648f(0x307)]),_0x273192(0xc,(0x0,_0x868841[_0x21648f(0x238)])(_0x3857c0)),_0x273192(0xd,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x552cde);let _0x4b3c61=class extends _0x598b2a{constructor(_0x546c45,_0x430960,_0x3dd5ef,_0x46c816,_0x5f3ef5,_0x161c92,_0x45a231,_0x7a50f8,_0x4ab9b2,_0x14a51c,_0x23a81c,_0x3a76e9,_0x69fcf0,_0x1dedca,_0x236483){const _0x55fc0f=_0x21648f;super(_0x546c45,_0x3dd5ef,_0x430960,_0x46c816,_0x5f3ef5,_0x161c92,_0x45a231,_0x4ab9b2,_0x14a51c,_0x23a81c,_0x3a76e9,_0x69fcf0,_0x1dedca,_0x236483),this[_0x55fc0f(0xff)]=_0x546c45,this[_0x55fc0f(0x350)]=_0x430960,this['_sheetTransformSelectionsService']=_0x7a50f8;}[_0x21648f(0x1a7)](){const _0x49c307=_0x21648f;let _0x34d240=super['_createHandler']();return _0x34d240[_0x49c307(0x33c)]=_0x37c2f3=>this[_0x49c307(0x385)][_0x49c307(0x3f0)](_0x37c2f3),_0x34d240;}async['_init'](){const _0x36276c=_0x21648f;let _0x48cb5b=await super['_init']();return this[_0x36276c(0xd1)](this[_0x36276c(0x155)][_0x36276c(0x217)]((_0x108427,_0x15ced0)=>{const _0x4e4e04=_0x36276c;if(_0x108427[_0x4e4e04(0x350)]!==_0x868841['CommandType'][_0x4e4e04(0x2f9)]||_0x15ced0!=null&&_0x15ced0['fromCollab']||_0x15ced0!=null&&_0x15ced0[_0x4e4e04(0x234)])return;let _0x2d3a99=_0x108427[_0x4e4e04(0x2b4)];if((_0x2d3a99==null?void 0x0:_0x2d3a99[_0x4e4e04(0x3b9)])!==this[_0x4e4e04(0xff)])return;let _0x464732=_0x108427,_0x24692f=this[_0x4e4e04(0x2ab)][_0x4e4e04(0x1a2)][_0x4e4e04(0x3b3)](this[_0x4e4e04(0x2ab)][_0x4e4e04(0x1a2)][_0x4e4e04(0x378)]()['COMPRESS_MUTATION_SEND'])([_0x464732],this[_0x4e4e04(0x32f)])||[_0x464732];this[_0x4e4e04(0x211)](_0x24692f[0x0]);})),_0x48cb5b;}};_0x4b3c61=_0x3e0941([_0x273192(0x3,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['Injector'])),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x275)])),_0x273192(0x5,(0x0,_0x868841['Inject'])(_0x868841[_0x21648f(0x290)])),_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece['RevisionService'])),_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x138)])(_0xd82d96)),_0x273192(0x8,(0x0,_0x868841['Inject'])(_0x55b02d)),_0x273192(0x9,_0x868841[_0x21648f(0x214)]),_0x273192(0xa,_0x868841['ILogService']),_0x273192(0xb,_0x868841[_0x21648f(0x2fd)]),_0x273192(0xc,_0x868841[_0x21648f(0x307)]),_0x273192(0xd,(0x0,_0x868841[_0x21648f(0x238)])(_0x3857c0)),_0x273192(0xe,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x4b3c61);let _0x52744e=class extends _0x598b2a{constructor(_0x392e77,_0x27b124,_0x47576f,_0x31b428,_0x29d625,_0x1d19c7,_0x3bcd9f,_0x56db5d,_0x4d9975,_0x1c964d,_0x409e03,_0x107d21,_0x10ac95,_0x3f62e3){const _0x472ca1=_0x21648f;super(_0x392e77,_0x47576f,_0x27b124,_0x31b428,_0x29d625,_0x1d19c7,_0x3bcd9f,_0x56db5d,_0x4d9975,_0x1c964d,_0x409e03,_0x107d21,_0x10ac95,_0x3f62e3),this[_0x472ca1(0xff)]=_0x392e77,this[_0x472ca1(0x350)]=_0x27b124;}async['_init'](){const _0x5b1b3f=_0x21648f;let _0x381b20=await super[_0x5b1b3f(0x139)]();return this[_0x5b1b3f(0xd1)](this[_0x5b1b3f(0x155)][_0x5b1b3f(0x217)]((_0x572392,_0x19095f)=>{const _0x2e8c01=_0x5b1b3f;if(_0x572392['type']!==_0x868841[_0x2e8c01(0x3a8)][_0x2e8c01(0x2f9)]||_0x19095f!=null&&_0x19095f[_0x2e8c01(0xd8)]||_0x19095f!=null&&_0x19095f[_0x2e8c01(0x234)])return;let _0x54b6e7=_0x572392['params'];if((_0x54b6e7==null?void 0x0:_0x54b6e7['unitId'])!==this[_0x2e8c01(0xff)])return;let _0x3bb2f3=_0x572392,_0x3d67c2=this[_0x2e8c01(0x2ab)][_0x2e8c01(0x1a2)][_0x2e8c01(0x3b3)](this['_compressMutationService'][_0x2e8c01(0x1a2)][_0x2e8c01(0x378)]()[_0x2e8c01(0x232)])([_0x3bb2f3],this[_0x2e8c01(0x32f)])||[_0x3bb2f3];this[_0x2e8c01(0x211)](_0x3d67c2[0x0]);})),_0x381b20;}};_0x52744e=_0x3e0941([_0x273192(0x3,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['Injector'])),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x275)])),_0x273192(0x5,(0x0,_0x868841['Inject'])(_0x868841[_0x21648f(0x290)])),_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d)),_0x273192(0x8,_0x868841[_0x21648f(0x214)]),_0x273192(0x9,_0x868841[_0x21648f(0x206)]),_0x273192(0xa,_0x868841['ICommandService']),_0x273192(0xb,_0x868841['IPermissionService']),_0x273192(0xc,(0x0,_0x868841[_0x21648f(0x238)])(_0x3857c0)),_0x273192(0xd,(0x0,_0x868841['Optional'])(_0x47d8b0))],_0x52744e);let _0x9a1332=class extends _0x598b2a{constructor(_0x195e8d,_0x1557fb,_0x413977,_0x2b8a6e,_0x23ac6b,_0x5b619a,_0x1007e7,_0x5182f8,_0x6bc01c,_0x2467dc,_0x3c5e30,_0x504c41,_0x38897f,_0x50c7f3){const _0x51c008=_0x21648f;super(_0x195e8d,_0x413977,_0x1557fb,_0x2b8a6e,_0x23ac6b,_0x5b619a,_0x1007e7,_0x5182f8,_0x6bc01c,_0x2467dc,_0x3c5e30,_0x504c41,_0x38897f,_0x50c7f3),this['unitID']=_0x195e8d,this[_0x51c008(0x350)]=_0x1557fb;}async['_init'](){const _0x3ef3c7=_0x21648f;let _0x3bca3c=await super[_0x3ef3c7(0x139)]();return this['disposeWithMe'](this[_0x3ef3c7(0x155)][_0x3ef3c7(0x217)]((_0x588378,_0x5f1753)=>{const _0x4981ce=_0x3ef3c7;if(_0x588378[_0x4981ce(0x350)]!==_0x868841[_0x4981ce(0x3a8)][_0x4981ce(0x2f9)]||_0x5f1753!=null&&_0x5f1753[_0x4981ce(0xd8)]||_0x5f1753!=null&&_0x5f1753['onlyLocal'])return;let _0x42b4ed=_0x588378[_0x4981ce(0x2b4)];if((_0x42b4ed==null?void 0x0:_0x42b4ed['unitId'])!==this['unitID'])return;let _0x4a19e2=_0x588378,_0x58f2ff=this[_0x4981ce(0x2ab)][_0x4981ce(0x1a2)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x4981ce(0x1a2)][_0x4981ce(0x378)]()[_0x4981ce(0x232)])([_0x4a19e2],this[_0x4981ce(0x32f)])||[_0x4a19e2];this['_onLocalMutation'](_0x58f2ff[0x0]);})),_0x3bca3c;}};_0x9a1332=_0x3e0941([_0x273192(0x3,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['Injector'])),_0x273192(0x4,(0x0,_0x868841['Inject'])(_0x4c2ece[_0x21648f(0x275)])),_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['LocaleService'])),_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d)),_0x273192(0x8,_0x868841[_0x21648f(0x214)]),_0x273192(0x9,_0x868841[_0x21648f(0x206)]),_0x273192(0xa,_0x868841[_0x21648f(0x2fd)]),_0x273192(0xb,_0x868841['IPermissionService']),_0x273192(0xc,(0x0,_0x868841[_0x21648f(0x238)])(_0x3857c0)),_0x273192(0xd,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x9a1332);let _0x161fca=(0x0,_0x868841[_0x21648f(0x330)])(_0x21648f(0x31f));function _0x3b8398(_0x46b29e){const _0x4c5da3=_0x21648f;let _0x56a881=_0x46b29e['data'],_0x79cf66=JSON['parse'](_0x56a881);switch(_0x79cf66['cmd']){case _0x1df2bb[_0x4c5da3(0x3d6)][_0x4c5da3(0x1d6)]:case _0x1df2bb[_0x4c5da3(0x3d6)][_0x4c5da3(0x3ed)]:{let _0x27f621=_0x79cf66[_0x4c5da3(0xe9)];return{..._0x79cf66,'data':_0x27f621,'cmd':_0x79cf66[_0x4c5da3(0x26b)]};}case _0x1df2bb['CombCmd'][_0x4c5da3(0xf1)]:{let _0x228e7f=_0x79cf66['joinRsp'];return{..._0x79cf66,'data':_0x228e7f,'cmd':_0x79cf66[_0x4c5da3(0x26b)]};}case _0x1df2bb[_0x4c5da3(0x3d6)][_0x4c5da3(0x176)]:{let _0x557bec=_0x79cf66['collaMsg'];switch(_0x557bec['eventID']){case _0x4c2ece['CollaborationEvent']['PERMISSION_REJ']:var _0x5bc9a2;return{..._0x79cf66,'data':{..._0x557bec,'data':(_0x5bc9a2=_0x557bec[_0x4c5da3(0x1ac)])==null?void 0x0:_0x5bc9a2['cs']},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)]['CHANGESET_ACK']:var _0x434395;return{..._0x79cf66,'data':{..._0x557bec,'data':(_0x434395=_0x557bec[_0x4c5da3(0x273)])==null?void 0x0:_0x434395['cs']},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x174)]:var _0x3d30bd;return{..._0x79cf66,'data':{..._0x557bec,'data':(_0x3d30bd=_0x557bec['newCsEvent'])==null?void 0x0:_0x3d30bd['cs']},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece['CollaborationEvent'][_0x4c5da3(0x13d)]:var _0x4cdaef;return{..._0x79cf66,'data':{..._0x557bec,'data':(_0x4cdaef=_0x557bec[_0x4c5da3(0x3c4)])==null?void 0x0:_0x4cdaef['cs']},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x2be)]:var _0x422d25;return{..._0x79cf66,'data':{..._0x557bec,'data':(_0x422d25=_0x557bec['csShouldRetryEvent'])==null?void 0x0:_0x422d25['cs']},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x1a3)]:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec['updateCursorEvent']},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x146)]:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec['joinEvent']},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece['CollaborationEvent'][_0x4c5da3(0x27a)]:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0xd6)]},'cmd':_0x79cf66['cmd']};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x1a0)]:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0x106)]},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x24a)]:case _0x4c2ece[_0x4c5da3(0x343)]['LIVESHARE_OPERATION']:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0x2c3)]},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)]['LIVESHARE_TERMINATE']:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0x106)]},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x3f4)]:return{..._0x79cf66,'data':_0x557bec,'cmd':_0x79cf66['cmd']};case _0x4c2ece[_0x4c5da3(0x343)]['COMMENT_UPDATE']:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0x280)]},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x2ea)]:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0x40e)]},'cmd':_0x79cf66['cmd']};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x1fe)]:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0x13c)]},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x1cd)]:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0x255)]},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};default:return _0x79cf66;}}default:return _0x79cf66;}}function _0x43de64(_0x58f43a){const _0xdaf5e=_0x21648f;switch(_0x58f43a[_0xdaf5e(0x26b)]){case _0x1df2bb[_0xdaf5e(0x3d6)][_0xdaf5e(0x1d6)]:case _0x1df2bb[_0xdaf5e(0x3d6)]['HELLO']:return JSON[_0xdaf5e(0x102)]({'cmd':_0x58f43a[_0xdaf5e(0x26b)],'routeKey':_0x58f43a[_0xdaf5e(0x25e)]});case _0x1df2bb[_0xdaf5e(0x3d6)][_0xdaf5e(0x159)]:{let _0x3f9748;switch(_0x58f43a[_0xdaf5e(0x29b)][_0xdaf5e(0x1d9)]){case _0x4c2ece['CollaborationEvent'][_0xdaf5e(0x1a3)]:_0x3f9748={'eventID':_0x4c2ece[_0xdaf5e(0x343)][_0xdaf5e(0x1a3)],'updateCursorEvent':_0x58f43a[_0xdaf5e(0x29b)][_0xdaf5e(0x29b)]};break;case _0x4c2ece[_0xdaf5e(0x343)][_0xdaf5e(0x27a)]:_0x3f9748={'eventID':_0x4c2ece[_0xdaf5e(0x343)]['USERS_LEAVE'],'leaveEvent':_0x58f43a[_0xdaf5e(0x29b)][_0xdaf5e(0x29b)]};break;case _0x4c2ece[_0xdaf5e(0x343)][_0xdaf5e(0x146)]:_0x3f9748={'eventID':_0x4c2ece[_0xdaf5e(0x343)][_0xdaf5e(0x146)],'joinEvent':_0x58f43a[_0xdaf5e(0x29b)][_0xdaf5e(0x29b)]};break;case _0x4c2ece['CollaborationEvent']['LIVESHARE_NEW_HOST']:_0x3f9748={'eventID':_0x4c2ece[_0xdaf5e(0x343)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x58f43a[_0xdaf5e(0x29b)]['data']};break;case _0x4c2ece['CollaborationEvent'][_0xdaf5e(0x1b7)]:_0x3f9748={'eventID':_0x4c2ece[_0xdaf5e(0x343)][_0xdaf5e(0x1b7)],'liveShareOperation':_0x58f43a[_0xdaf5e(0x29b)][_0xdaf5e(0x29b)]};break;case _0x4c2ece[_0xdaf5e(0x343)]['LIVESHARE_TERMINATE']:_0x3f9748={'eventID':_0x4c2ece['CollaborationEvent'][_0xdaf5e(0x2ce)],'liveShareTerminate':_0x58f43a['data'][_0xdaf5e(0x29b)]};break;case _0x4c2ece['CollaborationEvent'][_0xdaf5e(0xf9)]:_0x3f9748={'eventID':_0x4c2ece[_0xdaf5e(0x343)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x58f43a[_0xdaf5e(0x29b)][_0xdaf5e(0x29b)]};break;case _0x4c2ece[_0xdaf5e(0x343)]['LIVESHARE_FETCH_OPERATIONS']:_0x3f9748={'eventID':_0x4c2ece[_0xdaf5e(0x343)]['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x3f9748={'eventID':_0x58f43a['data'][_0xdaf5e(0x1d9)]};}return JSON['stringify']({'cmd':_0x58f43a[_0xdaf5e(0x26b)],'routeKey':_0x58f43a[_0xdaf5e(0x25e)],'collaMsg':_0x3f9748});}case _0x1df2bb['CombCmd']['JOIN']:return JSON['stringify']({'cmd':_0x58f43a['cmd'],'routeKey':_0x58f43a[_0xdaf5e(0x25e)],'joinReq':_0x58f43a['data']});case _0x1df2bb[_0xdaf5e(0x3d6)]['LEAVE']:return JSON['stringify']({'cmd':_0x58f43a[_0xdaf5e(0x26b)],'routeKey':_0x58f43a[_0xdaf5e(0x25e)],'leaveReq':_0x58f43a[_0xdaf5e(0x29b)]});default:throw Error(_0xdaf5e(0x2d1));}}let _0x4e1025=(0x0,_0x868841['createIdentifier'])(_0x21648f(0x408));function _0x1b6dad(_0x496ffb,_0x18e938,_0x287720){const _0xb5d0c5=_0x21648f;return _0x496ffb+'/'+_0x18e938+_0xb5d0c5(0x19c)+_0x287720+'/new_changes';}let _0x594520=class extends _0x868841['Disposable']{constructor(_0x5bc5c6,_0x449065,_0x31a7ca,_0xda3843,_0x5a4e29){const _0x144229=_0x21648f;super(),this[_0x144229(0x2d9)]=_0x5bc5c6,this['_httpService']=_0x449065,this['_configService']=_0x31a7ca,this[_0x144229(0x2fc)]=_0xda3843,this['_snapshotServerService']=_0x5a4e29;}[_0x21648f(0x370)](_0x24ff96){const _0xd48c30=_0x21648f;let _0x5bc034=this[_0xd48c30(0x2d9)][_0xd48c30(0x224)](_0x8bc35f[_0xd48c30(0x3e0)]);if(!_0x5bc034)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x16203f=_0x5bc034[_0xd48c30(0x113)](_0x24ff96);if(!_0x16203f)throw Error(_0xd48c30(0x357));let _0x16d4ee=new _0x868841['DisposableCollection'](),_0x38f507=new _0x409690[(_0xd48c30(0x409))]();_0x16d4ee[_0xd48c30(0x388)](_0x16203f[_0xd48c30(0x2ef)]['subscribe'](_0x4a655a=>_0x38f507[_0xd48c30(0xdd)](_0x4a655a))),_0x16d4ee[_0xd48c30(0x388)]((0x0,_0x868841[_0xd48c30(0x233)])(()=>_0x38f507['complete']()));let _0x485cf4=new _0x409690[(_0xd48c30(0x409))]();_0x16d4ee[_0xd48c30(0x388)](_0x16203f[_0xd48c30(0x31e)]['subscribe'](_0x44d770=>_0x485cf4['next'](_0x44d770))),_0x16d4ee['add']((0x0,_0x868841[_0xd48c30(0x233)])(()=>_0x485cf4['complete']()));let _0x2e5de5=new _0x409690['Subject']();_0x16d4ee['add'](_0x16203f[_0xd48c30(0x32c)][_0xd48c30(0x3b6)](_0x49c175=>{const _0x4e42c8=_0xd48c30;let _0x3ff90f=_0x3b8398(_0x49c175);_0x2e5de5[_0x4e42c8(0xdd)](_0x3ff90f);})),_0x16d4ee[_0xd48c30(0x388)]((0x0,_0x868841[_0xd48c30(0x233)])(()=>_0x2e5de5[_0xd48c30(0x3f5)]()));let _0x20256e,_0x8af2b0=()=>{const _0x434246=_0xd48c30;_0x485cf4[_0x434246(0xdd)](new Event(_0x434246(0x229))),_0x38f507['next'](new Event(_0x434246(0x229))),_0x20256e[_0x434246(0x3da)]();};return _0x20256e={'memberID':'','close$':_0x38f507['asObservable'](),'error$':_0x485cf4[_0xd48c30(0x340)](),'open$':_0x16203f[_0xd48c30(0x20a)],'message$':_0x2e5de5[_0xd48c30(0x340)](),'send':_0x11cfa8=>{const _0x57dc82=_0xd48c30;if(_0x11cfa8['cmd']===_0x1df2bb['CombCmd'][_0x57dc82(0x159)]){if(_0x11cfa8['data'][_0x57dc82(0x1d9)]===_0x4c2ece['CollaborationEvent'][_0x57dc82(0x2a3)]){this[_0x57dc82(0x24e)](_0x20256e,_0x11cfa8[_0x57dc82(0x29b)])[_0x57dc82(0x34b)](_0x2785da=>{const _0x5674da=_0x57dc82;this[_0x5674da(0x2fc)][_0x5674da(0x29e)](_0x2785da),_0x8af2b0();});return;}if(_0x11cfa8['data']['eventID']===_0x4c2ece[_0x57dc82(0x343)][_0x57dc82(0x2f4)]){let _0x38438c=_0x11cfa8['data'];this[_0x57dc82(0x2c7)](_0x38438c)[_0x57dc82(0x2e1)](_0x4d4bbe=>{const _0x2a0635=_0x57dc82;_0x2e5de5['next']({'cmd':_0x1df2bb[_0x2a0635(0x3d6)][_0x2a0635(0x176)],'code':_0x1df2bb[_0x2a0635(0x17a)]['OK'],'routeKey':_0x38438c['data']['unitID'],'routeType':'','data':{'eventID':_0x4c2ece[_0x2a0635(0x343)][_0x2a0635(0x26a)],'data':{'changesets':_0x4d4bbe}}});})[_0x57dc82(0x34b)](_0x23b425=>{const _0x10fba6=_0x57dc82;this[_0x10fba6(0x2fc)]['error'](_0x23b425),_0x8af2b0();});return;}}_0x16203f[_0x57dc82(0x182)](_0x43de64(_0x11cfa8));},'close':()=>{const _0x43db86=_0xd48c30;_0x16203f[_0x43db86(0x3da)](),_0x16d4ee[_0x43db86(0x265)]();}},_0x20256e;}async[_0x21648f(0x24e)](_0x103ac6,_0x4e9d44){const _0xcfd72=_0x21648f;var _0xc4b570;let {unitType:_0x27dc16,unitID:_0x2be19d,changeset:_0x3e728c}=_0x4e9d44['data'],_0x220504={'unitID':_0x2be19d,'memberID':_0x103ac6[_0xcfd72(0x14c)],'type':_0x27dc16,'changeset':(0x0,_0x4c2ece['parseChangesetToProtocol'])(_0x3e728c)},_0x530af0=this['_configService']['getConfig'](_0x4b92ba),_0x5148fe=_0x1b6dad((_0xc4b570=_0x530af0==null?void 0x0:_0x530af0[_0xcfd72(0x124)])==null?_0xcfd72(0x313):_0xc4b570,_0x27dc16,_0x2be19d);try{await this[_0xcfd72(0x3a7)][_0xcfd72(0x18e)](_0x5148fe,{'body':_0x220504});}catch(_0xb09880){throw this[_0xcfd72(0x2fc)][_0xcfd72(0x29e)]('[CollaborationSession]',_0xcfd72(0x26f)),_0xb09880;}}async[_0x21648f(0x2c7)](_0x313966){const _0x50c505=_0x21648f;let {unitID:_0x509d87,from:_0x4721df,to:_0xa4236b,unitType:_0x1640e7}=_0x313966['data'];return(await this[_0x50c505(0x104)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x509d87,'type':_0x1640e7,'from':_0x4721df,'to':_0xa4236b}))[_0x50c505(0x14b)][_0x50c505(0x26e)](_0x317095=>((_0x317095[_0x50c505(0x1bb)]===null||_0x317095[_0x50c505(0x1bb)]===void 0x0)&&(_0x317095[_0x50c505(0x1bb)]=[]),_0x317095));}};_0x594520=_0x3e0941([_0x273192(0x0,(0x0,_0x868841['Inject'])(_0x868841[_0x21648f(0x404)])),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x8bc35f[_0x21648f(0x1a4)])),_0x273192(0x2,_0x868841[_0x21648f(0x2ba)]),_0x273192(0x3,_0x868841[_0x21648f(0x206)]),_0x273192(0x4,_0x4c2ece[_0x21648f(0x170)])],_0x594520);let _0x2bd49e=(0x0,_0x868841[_0x21648f(0x330)])(_0x21648f(0x284));function _0x55fb30(_0x4c23d={}){const _0x164b45=_0x21648f;return _0x4c23d['resolveUnit']?{'resolveUnit':_0x4c23d[_0x164b45(0x160)]}:{'resolveUnit':_0x356226=>({'target':{'unitId':_0x356226[_0x164b45(0x3b9)],'unitType':_0x356226['unitType']}})};}function _0x35cec2(_0x5b4bb9,_0x4b9034,_0xb0160b){const _0x19ed7f=_0x21648f;var _0x50418f;let _0x19f271=_0xb0160b[_0x19ed7f(0x355)]['endpoint'];if(_0x19f271!=null&&_0x19f271[_0x19ed7f(0x3eb)]()==='')throw Error(_0x19ed7f(0x3f7));if(!_0xb0160b[_0x19ed7f(0x355)][_0x19ed7f(0x3b9)])throw Error(_0x19ed7f(0x1b1));return{'localUnitId':_0x5b4bb9,'unitType':_0x4b9034,'target':{'endpoint':_0x19f271,'unitId':_0xb0160b[_0x19ed7f(0x355)][_0x19ed7f(0x3b9)],'unitType':(_0x50418f=_0xb0160b['target'][_0x19ed7f(0x172)])==null?_0x4b9034:_0x50418f},'changeset':_0xb0160b[_0x19ed7f(0x17b)]};}let _0x4bf0aa=class extends _0x868841[_0x21648f(0x25b)]{constructor(_0x5f1297,_0x1dea19,_0x30d513,_0x134566,_0x1d34f7,_0x28c940,_0x411751){const _0x44ba7d=_0x21648f;super(),this[_0x44ba7d(0x2d9)]=_0x5f1297,this[_0x44ba7d(0x2fc)]=_0x1dea19,this[_0x44ba7d(0x23e)]=_0x30d513,this[_0x44ba7d(0x3d1)]=_0x134566,this[_0x44ba7d(0x2bd)]=_0x1d34f7,this[_0x44ba7d(0x21a)]=_0x28c940,this['_networkConditionService']=_0x411751,_0x6d65c2(this,_0x44ba7d(0x288),new Map()),_0x6d65c2(this,_0x44ba7d(0x264),new Map()),_0x6d65c2(this,_0x44ba7d(0x204),new Map()),_0x6d65c2(this,_0x44ba7d(0x3c9),new Map()),_0x6d65c2(this,'socket$',this[_0x44ba7d(0x15a)](void 0x0)[_0x44ba7d(0x118)][_0x44ba7d(0x340)]()),_0x6d65c2(this,'_status$',new _0x409690['BehaviorSubject'](0x0)),_0x6d65c2(this,_0x44ba7d(0x396),this[_0x44ba7d(0x107)]['asObservable']()),this[_0x44ba7d(0x303)]();}[_0x21648f(0x303)](){const _0x4fbd3a=_0x21648f;this[_0x4fbd3a(0x3a9)]&&this['disposeWithMe'](this['_networkConditionService']['online$'][_0x4fbd3a(0x3b6)](_0xb3be63=>{const _0x33caed=_0x4fbd3a;_0xb3be63&&this[_0x33caed(0xd0)](),_0xb3be63||this['_socketChannels'][_0x33caed(0x352)](_0x42c973=>this[_0x33caed(0x2dd)](_0x42c973));}));}[_0x21648f(0x265)](){const _0x28565d=_0x21648f;super['dispose'](),this['_socketChannels'][_0x28565d(0x352)](_0x126a3a=>{const _0x352ed5=_0x28565d;var _0x12dbb2,_0x3676d1;(_0x12dbb2=_0x126a3a[_0x352ed5(0x186)])==null||_0x12dbb2['unsubscribe'](),_0x126a3a['socketMessageSubscription']=null,this[_0x352ed5(0x37e)](_0x126a3a),this[_0x352ed5(0x282)](_0x126a3a),this[_0x352ed5(0x1b8)](_0x126a3a),(_0x3676d1=_0x126a3a[_0x352ed5(0x118)][_0x352ed5(0x2eb)]())==null||_0x3676d1[_0x352ed5(0x3da)](),_0x126a3a[_0x352ed5(0x118)][_0x352ed5(0x3f5)]();}),this[_0x28565d(0x3c9)][_0x28565d(0x13a)](),this['_sessions'][_0x28565d(0x352)](_0xff8cf1=>_0xff8cf1['dispose']()),this[_0x28565d(0x288)][_0x28565d(0x13a)](),this['_sessionChannels'][_0x28565d(0x13a)](),this['_status$'][_0x28565d(0x3f5)]();}async[_0x21648f(0x2a4)](_0x42f925,_0x5269c6){const _0x4a85dc=_0x21648f;if(this[_0x4a85dc(0x288)][_0x4a85dc(0x215)](_0x42f925))return this['_sessions'][_0x4a85dc(0x224)](_0x42f925);let _0x37c4ba=this[_0x4a85dc(0x264)][_0x4a85dc(0x224)](_0x42f925);if(_0x37c4ba)return _0x37c4ba;let _0x553cff=this[_0x4a85dc(0x125)](_0x42f925,_0x5269c6);this[_0x4a85dc(0x264)][_0x4a85dc(0x213)](_0x42f925,_0x553cff);try{return await _0x553cff;}finally{this[_0x4a85dc(0x264)]['delete'](_0x42f925);}}async['_createSession'](_0x1ea2e7,_0x379cde){const _0x28b0f7=_0x21648f;let _0x1e471a=await this[_0x28b0f7(0x40a)](_0x1ea2e7,_0x379cde),_0x33f59b=this[_0x28b0f7(0x15a)](_0x1e471a['target'][_0x28b0f7(0x3db)]);this[_0x28b0f7(0x38d)](_0x33f59b);let _0x40bf70=this[_0x28b0f7(0x2d9)][_0x28b0f7(0x3d9)](_0x4d2902,_0x1e471a,_0x33f59b['socket$'][_0x28b0f7(0x340)]());return this[_0x28b0f7(0x288)]['set'](_0x1ea2e7,_0x40bf70),this[_0x28b0f7(0x204)][_0x28b0f7(0x213)](_0x1ea2e7,_0x33f59b[_0x28b0f7(0x2ed)]),_0x40bf70;}[_0x21648f(0x115)](_0x187962){const _0x54bf91=_0x21648f;let _0x40ddb2=this[_0x54bf91(0x288)][_0x54bf91(0x224)](_0x187962),_0x238bb6=this[_0x54bf91(0x204)][_0x54bf91(0x224)](_0x187962);if(_0x40ddb2&&(this[_0x54bf91(0x288)][_0x54bf91(0xe0)](_0x187962),this[_0x54bf91(0x204)]['delete'](_0x187962),_0x40ddb2['close']()),_0x238bb6&&!this[_0x54bf91(0x278)](_0x238bb6)){var _0x3aa571;let _0xdd2fc2=this['_socketChannels'][_0x54bf91(0x224)](_0x238bb6);_0xdd2fc2==null||(_0x3aa571=_0xdd2fc2[_0x54bf91(0x118)][_0x54bf91(0x2eb)]())==null||_0x3aa571[_0x54bf91(0x3da)]();}}[_0x21648f(0xd0)](){const _0x4b4968=_0x21648f;(this[_0x4b4968(0x3c9)][_0x4b4968(0x362)]?[...this[_0x4b4968(0x3c9)][_0x4b4968(0x2d7)]()]:[this[_0x4b4968(0x15a)](void 0x0)])[_0x4b4968(0x352)](_0x31db0b=>{const _0x2577a4=_0x4b4968;_0x31db0b[_0x2577a4(0x243)]=0x0,this[_0x2577a4(0x37e)](_0x31db0b),this[_0x2577a4(0x293)](_0x31db0b);});}[_0x21648f(0x37e)](_0x1ef4a9){const _0x3c8d9f=_0x21648f;_0x1ef4a9['retryConnectingTimer']!=null&&(clearTimeout(_0x1ef4a9['retryConnectingTimer']),_0x1ef4a9[_0x3c8d9f(0x20b)]=null);}async[_0x21648f(0x195)](_0x4a281f){const _0x229bfe=_0x21648f;var _0x110216,_0x19a584;let _0x65793d=this['_configService']['getConfig'](_0x4b92ba),_0x55d615=(_0x110216=(_0x19a584=_0x4a281f['endpoint'])==null?_0x65793d==null?void 0x0:_0x65793d[_0x229bfe(0x277)]:_0x19a584)==null?_0x3838c0:_0x110216,_0x1d5201=await this[_0x229bfe(0x3d1)][_0x229bfe(0x113)](_0x55d615);return _0x4a281f[_0x229bfe(0x3a3)]=_0x1d5201,_0x1d5201;}async[_0x21648f(0x38d)](_0x576f72){const _0x3c36ef=_0x21648f;try{var _0x5bae3a,_0x434353;let _0x104418=(_0x5bae3a=(_0x434353=_0x576f72[_0x3c36ef(0x118)]['getValue']())==null?_0x576f72[_0x3c36ef(0x3a3)]:_0x434353)==null?await this[_0x3c36ef(0x195)](_0x576f72):_0x5bae3a;if(_0x104418){var _0x4e368e;let _0xca14ec=_0x104418[_0x3c36ef(0x182)];_0x104418[_0x3c36ef(0x182)]=_0x5bcd6e=>(_0x5bcd6e[_0x3c36ef(0x26b)]!==_0x1df2bb[_0x3c36ef(0x3d6)][_0x3c36ef(0x168)]&&this[_0x3c36ef(0x2cd)](_0x576f72),_0xca14ec[_0x3c36ef(0x294)](_0x104418,[_0x5bcd6e])),(_0x4e368e=_0x576f72[_0x3c36ef(0x186)])==null||_0x4e368e[_0x3c36ef(0x157)](),_0x576f72[_0x3c36ef(0x186)]=null,_0x576f72[_0x3c36ef(0x186)]=_0x104418['message$'][_0x3c36ef(0x3b6)](_0x16a9cf=>this[_0x3c36ef(0x200)](_0x576f72,_0x104418,_0x16a9cf)),_0x104418[_0x3c36ef(0x31e)][_0x3c36ef(0x320)]((0x0,_0x4f74e1['take'])(0x1))[_0x3c36ef(0x3b6)](_0x4bcb5c=>this['_logService'][_0x3c36ef(0x29e)](_0x3c36ef(0x23a),_0x4bcb5c)),_0x104418[_0x3c36ef(0x20a)][_0x3c36ef(0x320)]((0x0,_0x4f74e1[_0x3c36ef(0x2e2)])(0x1))[_0x3c36ef(0x3b6)](()=>{this['_onConnectionOpen'](_0x576f72,_0x104418);}),_0x104418[_0x3c36ef(0x2ef)][_0x3c36ef(0x320)]((0x0,_0x4f74e1[_0x3c36ef(0x2e2)])(0x1))['subscribe'](_0x10adea=>{const _0x59f0a2=_0x3c36ef;this[_0x59f0a2(0x2fc)][_0x59f0a2(0x39c)](_0x59f0a2(0x406),_0x59f0a2(0x41b),_0x10adea),this['_onConnectionFailed'](_0x576f72);});}}catch(_0x2ee50b){this[_0x3c36ef(0x2fc)][_0x3c36ef(0x29e)](_0x2ee50b),this['_onConnectionFailed'](_0x576f72);}}[_0x21648f(0x35d)](_0x58995a,_0x3ed93d){const _0x2b1032=_0x21648f;this['_logService'][_0x2b1032(0x39c)](_0x2b1032(0x406),'socket\x20open.'),_0x3ed93d[_0x2b1032(0x182)]({'cmd':_0x1df2bb[_0x2b1032(0x3d6)]['HELLO']}),this[_0x2b1032(0x2cd)](_0x58995a);}[_0x21648f(0x2dd)](_0x4a0cbf){const _0x1be033=_0x21648f;_0x4a0cbf[_0x1be033(0xca)]=!0x1,_0x4a0cbf[_0x1be033(0x3a3)]=null,this[_0x1be033(0x107)][_0x1be033(0xdd)](0x2),_0x4a0cbf[_0x1be033(0x118)][_0x1be033(0xdd)](null),this['_clearTimeoutTimer'](_0x4a0cbf),this['_clearHeartbeatTimer'](_0x4a0cbf);}[_0x21648f(0x22a)](_0x4a9aca){const _0x121447=_0x21648f;var _0x31ede3;this[_0x121447(0x2dd)](_0x4a9aca),this[_0x121447(0x278)](_0x4a9aca[_0x121447(0x2ed)])&&(_0x4a9aca[_0x121447(0x243)]<((_0x31ede3=this[_0x121447(0x23e)][_0x121447(0x33e)](_0x121447(0x2d2)))==null?0x3:_0x31ede3)?(this[_0x121447(0x2bd)]['emitEvent']({'id':'SOCKET_FAILED_RETRY'}),this[_0x121447(0x293)](_0x4a9aca)):this[_0x121447(0x2bd)]['emitEvent']({'id':_0x121447(0x1bf)}));}[_0x21648f(0x293)](_0x4b0706){const _0x227848=_0x21648f;var _0x4fb259;let _0x5a5323=_0x4b0706['retryCount'],_0x1b61bb=this[_0x227848(0x23e)][_0x227848(0x33e)](_0x4b92ba),_0x39bdb4=_0x5a5323===0x0?0x0:((_0x4fb259=_0x1b61bb==null?void 0x0:_0x1b61bb[_0x227848(0x14e)])==null?0x4e20:_0x4fb259)*0x2**_0x5a5323;_0x4b0706[_0x227848(0x20b)]=setTimeout(()=>{const _0x4e86de=_0x227848;clearTimeout(_0x4b0706[_0x4e86de(0x20b)]),_0x4b0706[_0x4e86de(0x20b)]=null,this[_0x4e86de(0x38d)](_0x4b0706);},_0x39bdb4),_0x4b0706[_0x227848(0x243)]+=0x1;}async[_0x21648f(0x40a)](_0x3329a3,_0x1c507d){const _0x55b3ab=_0x21648f;return _0x35cec2(_0x3329a3,_0x1c507d,await this['_adapter'][_0x55b3ab(0x160)]({'unitId':_0x3329a3,'unitType':_0x1c507d}));}[_0x21648f(0x200)](_0x27e30d,_0x184449,_0xe86c11){const _0xa91b7d=_0x21648f;let {cmd:_0x721d85}=_0xe86c11;_0x721d85===_0x1df2bb[_0xa91b7d(0x3d6)]['HELLO']&&!_0x27e30d[_0xa91b7d(0xca)]&&(_0x184449[_0xa91b7d(0x14c)]=_0xe86c11[_0xa91b7d(0x29b)][_0xa91b7d(0x14c)],_0x27e30d[_0xa91b7d(0x118)][_0xa91b7d(0xdd)](_0x184449),this[_0xa91b7d(0x107)][_0xa91b7d(0xdd)](0x3),_0x27e30d[_0xa91b7d(0xca)]=!0x0,_0x27e30d[_0xa91b7d(0x3a3)]=null),_0x721d85===_0x1df2bb[_0xa91b7d(0x3d6)]['HEARTBEAT']&&this[_0xa91b7d(0x282)](_0x27e30d),this['_rescheduleHeartbeat'](_0x27e30d);}[_0x21648f(0x278)](_0xd34267){const _0xdbf9c3=_0x21648f;return[...this['_sessionChannels'][_0xdbf9c3(0x2d7)]()][_0xdbf9c3(0x329)](_0x3625c4=>_0x3625c4===_0xd34267);}[_0x21648f(0x15a)](_0x3b55fd){const _0x5a2517=_0x21648f;let _0x15c7bc=_0x3b55fd==null?'':_0x3b55fd,_0x1c6ec7=this['_socketChannels'][_0x5a2517(0x224)](_0x15c7bc);if(_0x1c6ec7)return _0x1c6ec7;let _0x3f22ce={'endpointKey':_0x15c7bc,'endpoint':_0x3b55fd,'socket$':new _0x409690[(_0x5a2517(0x193))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x5a2517(0x3c9)]['set'](_0x15c7bc,_0x3f22ce),_0x3f22ce;}[_0x21648f(0x2cd)](_0x3f045a){const _0x3de94c=_0x21648f;var _0x4c29aa;this[_0x3de94c(0x1b8)](_0x3f045a),_0x3f045a['sendHeartbeatTimer']=setTimeout(()=>this[_0x3de94c(0x1df)](_0x3f045a),(_0x4c29aa=this['_configService'][_0x3de94c(0x33e)](_0x3de94c(0x1ef)))==null?0x7530:_0x4c29aa);}[_0x21648f(0x1df)](_0x4c580e){const _0x43676f=_0x21648f;_0x4c580e['socket$'][_0x43676f(0x2eb)]()[_0x43676f(0x182)]({'cmd':_0x1df2bb[_0x43676f(0x3d6)][_0x43676f(0x1d6)]}),this[_0x43676f(0x1e8)](_0x4c580e);}[_0x21648f(0x1e8)](_0x1a1b46){const _0x5e01fd=_0x21648f;var _0x3c9f44;_0x1a1b46[_0x5e01fd(0x24b)]=setTimeout(()=>this[_0x5e01fd(0x22a)](_0x1a1b46),(_0x3c9f44=this[_0x5e01fd(0x23e)][_0x5e01fd(0x33e)](_0x5e01fd(0x276)))==null?_0x4067ce:_0x3c9f44);}[_0x21648f(0x1b8)](_0x4332af){const _0x34f67d=_0x21648f;_0x4332af[_0x34f67d(0x1b5)]!=null&&(clearTimeout(_0x4332af[_0x34f67d(0x1b5)]),_0x4332af[_0x34f67d(0x1b5)]=null);}[_0x21648f(0x282)](_0x219f27){const _0x40ab2b=_0x21648f;_0x219f27[_0x40ab2b(0x24b)]!=null&&(clearTimeout(_0x219f27[_0x40ab2b(0x24b)]),_0x219f27[_0x40ab2b(0x24b)]=null);}};_0x4bf0aa=_0x3e0941([_0x273192(0x0,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x1,_0x868841[_0x21648f(0x206)]),_0x273192(0x2,_0x868841['IConfigService']),_0x273192(0x3,_0x4e1025),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d)),_0x273192(0x5,_0x2bd49e),_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x238)])(_0x161fca))],_0x4bf0aa);let _0x5ad10a=class extends _0x868841['RxDisposable']{constructor(_0x1837d3,_0x5b4030,_0x4fa3ac,_0x278ea7){const _0x5ee03a=_0x21648f;var _0x407238;super(),this[_0x5ee03a(0x2d9)]=_0x1837d3,this[_0x5ee03a(0x2ec)]=_0x5b4030,this[_0x5ee03a(0x23e)]=_0x4fa3ac,this[_0x5ee03a(0x32f)]=_0x278ea7,_0x6d65c2(this,'_entities',new Map()),_0x6d65c2(this,_0x5ee03a(0x41d),new _0x409690[(_0x5ee03a(0x409))]()),_0x6d65c2(this,_0x5ee03a(0x230),this[_0x5ee03a(0x41d)][_0x5ee03a(0x340)]()),((_0x407238=this[_0x5ee03a(0x23e)][_0x5ee03a(0x33e)](_0x5ee03a(0x369)))==null?void 0x0:_0x407238[_0x5ee03a(0x153)])!==!0x1&&this[_0x5ee03a(0x139)]();}[_0x21648f(0x265)](){const _0x5687d6=_0x21648f;super[_0x5687d6(0x265)](),this[_0x5687d6(0x143)][_0x5687d6(0x352)](_0x54de69=>_0x54de69[_0x5687d6(0x265)]()),this[_0x5687d6(0x143)][_0x5687d6(0x13a)]();}[_0x21648f(0xdc)](_0x3d597c){const _0x3859cb=_0x21648f;var _0x217308;return(_0x217308=this[_0x3859cb(0x143)][_0x3859cb(0x224)](_0x3d597c))==null?null:_0x217308;}[_0x21648f(0x23f)](_0x4a2756){const _0x2e902b=_0x21648f;let _0x4991d0=this[_0x2e902b(0xdc)](_0x4a2756);return _0x4991d0?(0x0,_0x409690['of'])(_0x4991d0):this['_entityInit$'][_0x2e902b(0x320)]((0x0,_0x4f74e1[_0x2e902b(0x11a)])(_0xd9f1c9=>_0xd9f1c9[_0x2e902b(0xff)]===_0x4a2756));}['readyForCollab'](_0x2f0e9d){const _0x3588f9=_0x21648f;return(0x0,_0x409690[_0x3588f9(0x14f)])(this[_0x3588f9(0x23f)](_0x2f0e9d)[_0x3588f9(0x320)]((0x0,_0x4f74e1[_0x3588f9(0x26e)])(()=>void 0x0)));}[_0x21648f(0x139)](){const _0x367a0a=_0x21648f;this[_0x367a0a(0x32f)][_0x367a0a(0x14d)](_0x868841[_0x367a0a(0x2f8)][_0x367a0a(0x23b)])['pipe']((0x0,_0x409690[_0x367a0a(0x374)])(this[_0x367a0a(0xf2)]),(0x0,_0x4f74e1['delay'])(0x10))[_0x367a0a(0x3b6)](async _0x2c800f=>{const _0x17c41a=_0x367a0a;let _0x4418cf=_0x2c800f[_0x17c41a(0x2ee)][_0x17c41a(0x128)](),_0x4451cd=await this[_0x17c41a(0xd3)](_0x4418cf,_0x868841[_0x17c41a(0x2f8)][_0x17c41a(0x23b)]);this[_0x17c41a(0x143)][_0x17c41a(0x213)](_0x4418cf,_0x4451cd);}),this[_0x367a0a(0x32f)][_0x367a0a(0x14d)](_0x868841[_0x367a0a(0x2f8)][_0x367a0a(0x332)])[_0x367a0a(0x320)]((0x0,_0x409690[_0x367a0a(0x374)])(this['dispose$']),(0x0,_0x4f74e1['delay'])(0x10))[_0x367a0a(0x320)]((0x0,_0x4f74e1['filter'])(_0x12b89b=>!_0x12b89b[_0x367a0a(0x2ee)][_0x367a0a(0x128)]()[_0x367a0a(0x3c1)]('__')))[_0x367a0a(0x3b6)](async _0x127909=>{const _0x1a6ff9=_0x367a0a;let _0x87e7e9=_0x127909['unit']['getUnitId'](),_0x522892=await this['_startCollaboration'](_0x87e7e9,_0x868841[_0x1a6ff9(0x2f8)][_0x1a6ff9(0x332)]);this[_0x1a6ff9(0x143)][_0x1a6ff9(0x213)](_0x87e7e9,_0x522892);}),this[_0x367a0a(0x32f)][_0x367a0a(0x14d)](_0x868841['UniverInstanceType'][_0x367a0a(0x2b1)])[_0x367a0a(0x320)]((0x0,_0x409690[_0x367a0a(0x374)])(this['dispose$']),(0x0,_0x4f74e1[_0x367a0a(0x184)])(0x10))[_0x367a0a(0x3b6)](async _0x3040d1=>{const _0x4e8b5a=_0x367a0a;let _0x2a539b=_0x3040d1['unit'][_0x4e8b5a(0x128)](),_0x1fe010=await this[_0x4e8b5a(0xd3)](_0x2a539b,_0x868841[_0x4e8b5a(0x2f8)]['UNIVER_SLIDE']);this[_0x4e8b5a(0x143)]['set'](_0x2a539b,_0x1fe010);}),this[_0x367a0a(0x32f)][_0x367a0a(0x14d)](_0x868841['UniverInstanceType']['UNIVER_BOARD'])[_0x367a0a(0x320)]((0x0,_0x409690[_0x367a0a(0x374)])(this[_0x367a0a(0xf2)]),(0x0,_0x4f74e1[_0x367a0a(0x184)])(0x10))[_0x367a0a(0x3b6)](async _0x3e3c2d=>{const _0x431c2f=_0x367a0a;let _0x256879=_0x3e3c2d['unit'][_0x431c2f(0x128)](),_0x2c19c9=await this[_0x431c2f(0xd3)](_0x256879,_0x868841[_0x431c2f(0x2f8)]['UNIVER_BOARD']);this['_entities'][_0x431c2f(0x213)](_0x256879,_0x2c19c9);}),this[_0x367a0a(0x32f)][_0x367a0a(0x14d)](_0x868841[_0x367a0a(0x2f8)][_0x367a0a(0x2a9)])[_0x367a0a(0x320)]((0x0,_0x409690[_0x367a0a(0x374)])(this['dispose$']),(0x0,_0x4f74e1[_0x367a0a(0x184)])(0x10))['subscribe'](async _0x5d823c=>{const _0x379037=_0x367a0a;let _0x59d5f4=_0x5d823c[_0x379037(0x2ee)]['getUnitId'](),_0x403bef=await this[_0x379037(0xd3)](_0x59d5f4,_0x868841[_0x379037(0x2f8)][_0x379037(0x2a9)]);this[_0x379037(0x143)][_0x379037(0x213)](_0x59d5f4,_0x403bef);}),(0x0,_0x409690[_0x367a0a(0x382)])(this[_0x367a0a(0x32f)][_0x367a0a(0x166)](_0x868841[_0x367a0a(0x2f8)][_0x367a0a(0x23b)]),this[_0x367a0a(0x32f)][_0x367a0a(0x166)](_0x868841[_0x367a0a(0x2f8)][_0x367a0a(0x332)]),this[_0x367a0a(0x32f)][_0x367a0a(0x166)](_0x868841[_0x367a0a(0x2f8)]['UNIVER_SLIDE']),this[_0x367a0a(0x32f)][_0x367a0a(0x166)](_0x868841['UniverInstanceType'][_0x367a0a(0x28a)]),this[_0x367a0a(0x32f)]['getTypeOfUnitDisposed$'](_0x868841['UniverInstanceType']['UNIVER_BASE']))['pipe']((0x0,_0x409690[_0x367a0a(0x374)])(this[_0x367a0a(0xf2)]))[_0x367a0a(0x3b6)](_0x140edb=>{const _0x504966=_0x367a0a;let _0x25e208=_0x140edb['getUnitId'](),_0x5e839b=this[_0x504966(0x143)][_0x504966(0x224)](_0x25e208);_0x5e839b&&(_0x5e839b[_0x504966(0x265)](),this['_entities'][_0x504966(0xe0)](_0x25e208));});}async[_0x21648f(0xd3)](_0xa2fe03,_0x138691){const _0x3fcd22=_0x21648f;let _0x339150=await this[_0x3fcd22(0x2ec)][_0x3fcd22(0x2a4)](_0xa2fe03),_0x1c254e=this[_0x3fcd22(0x2d9)][_0x3fcd22(0x3d9)](this[_0x3fcd22(0x390)](_0x138691),_0xa2fe03,_0x138691,_0x339150);return await _0x1c254e[_0x3fcd22(0x18a)](),this['_entityInit$'][_0x3fcd22(0xdd)](_0x1c254e),_0x1c254e;}['_getCtorByUniverInstanceType'](_0x1b25cd){const _0x29b081=_0x21648f;switch(_0x1b25cd){case _0x868841[_0x29b081(0x2f8)][_0x29b081(0x332)]:return _0x148d55;case _0x868841[_0x29b081(0x2f8)][_0x29b081(0x23b)]:return _0x4b3c61;case _0x868841[_0x29b081(0x2f8)][_0x29b081(0x2b1)]:return _0x52744e;case _0x868841[_0x29b081(0x2f8)][_0x29b081(0x28a)]:return _0x9a1332;case _0x868841[_0x29b081(0x2f8)][_0x29b081(0x2a9)]:return _0x552cde;default:throw Error(_0x29b081(0x33f)+_0x1b25cd);}}};_0x5ad10a=_0x3e0941([_0x273192(0x0,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x1,(0x0,_0x868841['Inject'])(_0x4bf0aa)),_0x273192(0x2,_0x868841['IConfigService']),_0x273192(0x3,_0x868841['IUniverInstanceService'])],_0x5ad10a);var _0x32f204='@univerjs-pro/collaboration-client',_0x3be6e8=_0x21648f(0x33a);let _0x448220=class extends _0x868841[_0x21648f(0x25b)]{constructor(_0x1e8c03,_0x56f4fc){const _0x44e9fc=_0x21648f;super(),this['_univerInstanceService']=_0x1e8c03,this[_0x44e9fc(0x23e)]=_0x56f4fc,this[_0x44e9fc(0x139)]();}[_0x21648f(0x139)](){const _0x36cb7b=_0x21648f;this[_0x36cb7b(0xd1)](this[_0x36cb7b(0x32f)][_0x36cb7b(0x1ec)][_0x36cb7b(0x3b6)](()=>{const _0x52fb5c=_0x36cb7b;var _0xb48104;let _0x619d6e=this['_univerInstanceService'][_0x52fb5c(0x2e3)](),_0x225197=(_0xb48104=this[_0x52fb5c(0x23e)]['getConfig'](_0x52fb5c(0x3ce)))==null?_0x52fb5c(0x30b):_0xb48104;_0x619d6e instanceof _0x868841[_0x52fb5c(0xe1)]&&(_0x225197=_0x619d6e['name']),document[_0x52fb5c(0x3e5)]=_0x225197;}));}};_0x448220=_0x3e0941([_0x273192(0x0,_0x868841[_0x21648f(0x214)]),_0x273192(0x1,_0x868841['IConfigService'])],_0x448220);let _0x5ec8e0=function(_0xdc3347){const _0x2b0ff4=_0x21648f;return _0xdc3347[_0x2b0ff4(0x2ac)]=_0x2b0ff4(0x2ac),_0xdc3347[_0x2b0ff4(0x3de)]=_0x2b0ff4(0x3de),_0xdc3347[_0x2b0ff4(0x37b)]='BASE64',_0xdc3347;}({}),_0x3673e6=(0x0,_0x868841[_0x21648f(0x330)])('base-ui.attachment-io.service'),_0x1ba482=class{constructor(_0x54f264,_0x4fedbc,_0x56c886){const _0x2e8cf7=_0x21648f;this[_0x2e8cf7(0x3a7)]=_0x54f264,this['_configService']=_0x4fedbc,this[_0x2e8cf7(0x32f)]=_0x56c886;}[_0x21648f(0x324)](){const _0xdfec2f=_0x21648f;var _0x3bed90;return(_0x3bed90=this[_0xdfec2f(0x156)]()[_0xdfec2f(0x1f5)])==null?{}:_0x3bed90;}async[_0x21648f(0x210)](_0x4db81a){const _0x92f195=_0x21648f;let _0x5939cc=this['getUploadOptions']();if(_0x422f11(_0x4db81a,_0x5939cc),_0x5939cc[_0x92f195(0x261)])return _0x5939cc[_0x92f195(0x261)](_0x4db81a);let _0x4f62ba=await this[_0x92f195(0x287)](_0x4db81a);return{'id':_0x4f62ba,'name':_0x4db81a[_0x92f195(0x414)],'mimeType':_0x4db81a['type'],'size':_0x4db81a[_0x92f195(0x362)],'sourceType':_0x92f195(0x3de),'source':_0x4f62ba};}async[_0x21648f(0x287)](_0x19add9){const _0x27ba42=_0x21648f;let _0x28bfa5=this['_univerInstanceService'][_0x27ba42(0x2e3)](),_0x48d1c3=_0x28bfa5==null?void 0x0:_0x28bfa5['getUnitId']();if(!_0x48d1c3)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0xd185ed=new FormData();_0xd185ed[_0x27ba42(0x407)](_0x27ba42(0xce),_0x19add9);let _0x480e24=this[_0x27ba42(0xfa)]()+_0x27ba42(0x10a)+_0x19add9['size'][_0x27ba42(0x11b)]()+_0x27ba42(0x244)+_0x1df2bb[_0x27ba42(0x2bc)][_0x27ba42(0x108)]+_0x27ba42(0x1bd)+encodeURIComponent(_0x48d1c3),_0x33a0ab=(await this[_0x27ba42(0x3a7)][_0x27ba42(0x18e)](_0x480e24,{'body':_0xd185ed}))[_0x27ba42(0x346)][_0x27ba42(0x3c7)];if(typeof _0x33a0ab!='string'||!_0x33a0ab)throw Error(_0x27ba42(0x271));return _0x33a0ab;}['_getUploadFileURL'](){const _0xb12f7b=_0x21648f;var _0x420ed8;return(_0x420ed8=this['_getConfig']()[_0xb12f7b(0x2a2)])==null?_0xb12f7b(0xeb):_0x420ed8;}['_getConfig'](){const _0x3a5c4e=_0x21648f;var _0x47a83f;return(_0x47a83f=this['_configService'][_0x3a5c4e(0x33e)](_0x3a5c4e(0x369)))==null?{}:_0x47a83f;}};_0x1ba482=_0x3e0941([_0x273192(0x0,(0x0,_0x868841[_0x21648f(0x138)])(_0x8bc35f['HTTPService'])),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x2ba)])),_0x273192(0x2,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x214)]))],_0x1ba482);function _0x422f11(_0x960d64,_0xb79a1c){const _0x2f2eb4=_0x21648f;var _0x556177;if(_0xb79a1c[_0x2f2eb4(0x227)]!=null&&_0x960d64[_0x2f2eb4(0x362)]>_0xb79a1c['maxSize'])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x556177=_0xb79a1c[_0x2f2eb4(0x413)])!=null&&_0x556177[_0x2f2eb4(0x207)]&&!_0xb79a1c[_0x2f2eb4(0x413)]['some'](_0x39462d=>_0x960d64[_0x2f2eb4(0x350)]===_0x39462d||_0x960d64[_0x2f2eb4(0x414)]['endsWith'](_0x39462d)||_0x39462d[_0x2f2eb4(0x21e)]('/*')&&_0x960d64['type'][_0x2f2eb4(0x3c1)](_0x39462d[_0x2f2eb4(0x129)](0x0,-0x1))))throw Error(_0x2f2eb4(0x31a));}let _0x36e2b4=class{constructor(_0x4d721a,_0x4a1d47,_0x1a38e5){const _0x3730ca=_0x21648f;this[_0x3730ca(0x23e)]=_0x4d721a,this[_0x3730ca(0x3a7)]=_0x4a1d47,this['localeService']=_0x1a38e5,this['init']();}[_0x21648f(0x18a)](){const _0x1c1679=_0x21648f;this[_0x1c1679(0x3a7)][_0x1c1679(0x2a0)]({'priority':0x1,'interceptor':(_0x13ca62,_0x407afb)=>_0x407afb(_0x13ca62)['pipe']((0x0,_0x409690[_0x1c1679(0x3be)])(async _0x406e14=>{const _0x420cdd=_0x1c1679;let _0x2c78cb=_0x406e14;if(_0x2c78cb['status']===0x191){if(typeof window>'u')throw Error(_0x420cdd(0x1a5));if(window['confirm'](this[_0x420cdd(0x27f)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x5d650e=window[_0x420cdd(0x3ad)](window[_0x420cdd(0x241)][_0x420cdd(0x36f)]);window[_0x420cdd(0x241)]['href']=this[_0x420cdd(0x28f)]()+_0x420cdd(0x1ae)+_0x5d650e;}}return _0x2c78cb;}))});}[_0x21648f(0x28f)](){const _0x5b46c5=_0x21648f;var _0x253896;let _0x2f8cdf=this[_0x5b46c5(0x23e)]['getConfig'](_0x4b92ba);return(_0x253896=_0x2f8cdf==null?void 0x0:_0x2f8cdf[_0x5b46c5(0x267)])==null?'/universer-api/oidc/authpage':_0x253896;}};_0x36e2b4=_0x3e0941([_0x273192(0x0,_0x868841[_0x21648f(0x2ba)]),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x8bc35f['HTTPService'])),_0x273192(0x2,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['LocaleService']))],_0x36e2b4);let _0x37ea91=class extends _0x868841[_0x21648f(0x25b)]{constructor(_0x41cfa7,_0x376b3a){const _0x321ab6=_0x21648f;super(),this['_HTTPService']=_0x41cfa7,this['_configService']=_0x376b3a,_0x6d65c2(this,_0x321ab6(0x126),!0x1),this['_initMergeInterceptor']();}[_0x21648f(0xd5)](){const _0x59ecc6=_0x21648f;let _0x58d2a6=this;this[_0x59ecc6(0xd1)](this[_0x59ecc6(0x1ad)][_0x59ecc6(0x2a0)]({'priority':0x3e7,'interceptor':(0x0,_0x8bc35f[_0x59ecc6(0x1c6)])({'isMatch'(_0x272901){const _0x11b1df=_0x59ecc6;var _0x5d2d93;if(_0x272901[_0x11b1df(0x2e9)]===_0x11b1df(0x325)&&(_0x5d2d93=_0x272901[_0x11b1df(0x171)])!=null&&_0x5d2d93[_0x11b1df(0x346)]){let {objectID:_0x262592,objectType:_0x8a5c6}=_0x272901[_0x11b1df(0x171)][_0x11b1df(0x346)]||{};if(!_0x262592||_0x8a5c6===void 0x0)return!0x1;let _0x524cf5=_0x58d2a6[_0x11b1df(0x366)]()+'/'+_0x8a5c6+_0x11b1df(0x349)+_0x262592+'/allowed';if(_0x272901['url']===_0x524cf5)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x18b5f7){const _0x390de0=_0x59ecc6;var _0x25fe24;return(_0x25fe24=_0x18b5f7['requestParams'])==null?void 0x0:_0x25fe24[_0x390de0(0x346)];},'mergeParamsToRequest'(_0x4524e1,_0x408c41){const _0x2990de=_0x59ecc6;let _0x3654aa=_0x58d2a6[_0x2990de(0x366)]()+_0x2990de(0x2f5),_0xdf4b9f=_0x4524e1[_0x2990de(0x25f)]((_0x6a2c39,_0x516442)=>{const _0x2d6f17=_0x2990de;let {unitID:_0x42bc54,objectID:_0x31a020,objectType:_0x3826e3,actions:_0x52b13c}=_0x516442;return _0x6a2c39[_0x42bc54]||(_0x6a2c39[_0x42bc54]={}),_0x6a2c39[_0x42bc54][_0x31a020]||(_0x6a2c39[_0x42bc54][_0x31a020]={'objectID':_0x31a020,'objectType':_0x3826e3,'actions':[]}),_0x6a2c39[_0x42bc54][_0x31a020][_0x2d6f17(0x130)][_0x2d6f17(0x327)](..._0x52b13c),_0x6a2c39;},{}),_0x233a10=[];for(let _0x3d4fd9 in _0xdf4b9f)for(let _0x57c44b in _0xdf4b9f[_0x3d4fd9]){let {actions:_0x22a011,objectType:_0x4f2501}=_0xdf4b9f[_0x3d4fd9][_0x57c44b],_0x3bfee5=[...new Set(_0x22a011)];_0x233a10[_0x2990de(0x327)]({'unitID':_0x3d4fd9,'objectID':_0x57c44b,'objectType':_0x4f2501,'actions':_0x3bfee5});}return new _0x8bc35f['HTTPRequest'](_0x2990de(0x325),_0x3654aa,{'headers':_0x408c41[_0x2990de(0x356)],'withCredentials':_0x408c41['withCredentials'],'responseType':_0x408c41[_0x2990de(0x31b)],'body':{'requests':_0x233a10}});}},{'distributeResult'(_0x51f87b,_0x5005a7){const _0x86fa82=_0x59ecc6;let {objectActions:_0x237ee3}=_0x51f87b;return _0x5005a7[_0x86fa82(0x26e)](_0x97a191=>{const _0x44985a=_0x86fa82;let {unitID:_0x268ded,objectID:_0x5867b7,actions:_0x16acab}=_0x97a191,_0x713033=_0x237ee3[_0x44985a(0x3ab)](_0x32280c=>_0x32280c['unitID']===_0x268ded&&_0x32280c[_0x44985a(0x24f)]===_0x5867b7);return{'config':_0x97a191,'result':{'actions':_0x16acab[_0x44985a(0x26e)](_0xe295ee=>_0x713033==null?void 0x0:_0x713033['actions'][_0x44985a(0x3ab)](_0x23883d=>_0x23883d[_0x44985a(0x12c)]===_0xe295ee))[_0x44985a(0x11a)](_0x2a0690=>!!_0x2a0690),'error':_0x51f87b['error']}};});}})}));}[_0x21648f(0x366)](){const _0x25ec52=_0x21648f;var _0x97093e;let _0x2fc58a=this['_configService'][_0x25ec52(0x33e)](_0x4b92ba);return(_0x97093e=_0x2fc58a==null?void 0x0:_0x2fc58a[_0x25ec52(0x1be)])==null?_0x25ec52(0x1b3):_0x97093e;}async[_0x21648f(0x3c6)](_0x421587){const _0x5973fa=_0x21648f;let _0x29898e=this[_0x5973fa(0x366)]()+'/'+_0x421587[_0x5973fa(0x35e)]+_0x5973fa(0x399);return(await this[_0x5973fa(0x1ad)][_0x5973fa(0x18e)](_0x29898e,{'body':_0x421587}))[_0x5973fa(0x346)][_0x5973fa(0x24f)]||'';}async[_0x21648f(0x417)](_0x36603c){const _0x18b3e2=_0x21648f;let _0x5133a9=this[_0x18b3e2(0x366)]()+_0x18b3e2(0x1c8);return(await this[_0x18b3e2(0x1ad)][_0x18b3e2(0x18e)](_0x5133a9,{'body':_0x36603c}))[_0x18b3e2(0x346)][_0x18b3e2(0x154)];}async[_0x21648f(0x120)](_0x6d1587){const _0x1e9b24=_0x21648f;var _0x2c13a6;let _0x350ac5=this['_getAPIPrefixPath']()+'/'+_0x6d1587[_0x1e9b24(0x35e)]+_0x1e9b24(0x349)+_0x6d1587[_0x1e9b24(0x24f)],_0x1f69b0=await this[_0x1e9b24(0x1ad)]['put'](_0x350ac5,{'body':_0x6d1587});if((_0x1f69b0==null||(_0x2c13a6=_0x1f69b0[_0x1e9b24(0x346)])==null||(_0x2c13a6=_0x2c13a6[_0x1e9b24(0x29e)])==null?void 0x0:_0x2c13a6[_0x1e9b24(0x2b5)])!==0x1)throw Error(_0x1e9b24(0x338));}async[_0x21648f(0x1c0)](_0x527299){const _0x3591fd=_0x21648f;let _0x5603c2=this[_0x3591fd(0x366)]()+'/'+_0x527299['objectType']+'/object/'+_0x527299[_0x3591fd(0x24f)]+'/allowed';return(await this['_HTTPService']['post'](_0x5603c2,{'body':_0x527299}))[_0x3591fd(0x346)][_0x3591fd(0x130)];}async[_0x21648f(0x2c1)](_0x3256db){const _0x30e1a6=_0x21648f;let _0x3360e3=this[_0x30e1a6(0x366)]()+_0x30e1a6(0x2f5);return(await this[_0x30e1a6(0x1ad)][_0x30e1a6(0x18e)](_0x3360e3,{'body':{'requests':_0x3256db}}))['body'][_0x30e1a6(0x36a)];}async[_0x21648f(0x122)](_0x55eb56){const _0x4873a3=_0x21648f;let _0x1d83f3=this[_0x4873a3(0x366)]()+'/'+_0x55eb56[_0x4873a3(0x35e)]+_0x4873a3(0x15d),_0x3ebccf=await this[_0x4873a3(0x1ad)][_0x4873a3(0x18e)](_0x1d83f3,{'body':_0x55eb56});return{'roles':_0x3ebccf[_0x4873a3(0x346)][_0x4873a3(0x137)],'actions':_0x3ebccf[_0x4873a3(0x346)][_0x4873a3(0x130)]};}async[_0x21648f(0x3f2)](_0x27d3e0){const _0x331c0a=_0x21648f;let _0x5c7dc3=this[_0x331c0a(0x366)]()+_0x331c0a(0x10c);await this[_0x331c0a(0x1ad)][_0x331c0a(0xe0)](_0x5c7dc3,{'params':{'collaboratorID':_0x27d3e0['collaboratorID'],'objectID':_0x27d3e0[_0x331c0a(0x24f)],'unitID':_0x27d3e0[_0x331c0a(0xff)]}});}async[_0x21648f(0x1f8)](_0x2e9036){const _0x27b2da=_0x21648f;let _0x4e5966=this['_getAPIPrefixPath']()+_0x27b2da(0x10c);await this[_0x27b2da(0x1ad)][_0x27b2da(0x251)](_0x4e5966,{'body':_0x2e9036});}async[_0x21648f(0x3a6)](_0x58a01f){const _0x193b4b=_0x21648f;let _0x5bec3a=this[_0x193b4b(0x366)]()+_0x193b4b(0x10c);await this[_0x193b4b(0x1ad)][_0x193b4b(0x18e)](_0x5bec3a,{'body':_0x58a01f});}async[_0x21648f(0x35c)](_0x59a9cb){const _0x370642=_0x21648f;var _0x4c71b5;let _0x2a6f1f=this[_0x370642(0x366)]()+_0x370642(0x10c),_0x1e3bf2=await this[_0x370642(0x1ad)]['get'](_0x2a6f1f,{'params':{'objectID':_0x59a9cb[_0x370642(0x24f)],'unitID':_0x59a9cb['unitID']}});return this['setCfgEnableObjInherit']((_0x4c71b5=_0x1e3bf2['body'][_0x370642(0x3a0)])==null?!0x1:_0x4c71b5),_0x1e3bf2[_0x370642(0x346)][_0x370642(0x2a8)];}async[_0x21648f(0xfd)](_0x5775a7){const _0xa961b7=_0x21648f;let _0x5a78f3=this[_0xa961b7(0x366)]()+'/collaborator';await this[_0xa961b7(0x1ad)][_0xa961b7(0x2fe)](_0x5a78f3,{'body':_0x5775a7});}[_0x21648f(0x26d)](_0x12e033){const _0x15601=_0x21648f;this[_0x15601(0x126)]=_0x12e033;}['getCfgEnableObjInherit'](){const _0x29502d=_0x21648f;return this[_0x29502d(0x126)];}};_0x37ea91=_0x3e0941([_0x273192(0x0,(0x0,_0x868841[_0x21648f(0x138)])(_0x8bc35f[_0x21648f(0x1a4)])),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x2ba)]))],_0x37ea91);function _0x1d4a37(_0xb155e7){const _0x4b9058=_0x21648f;return _0xb155e7 instanceof Uint8Array||ArrayBuffer[_0x4b9058(0x269)](_0xb155e7)&&_0xb155e7[_0x4b9058(0x32e)]['name']==='Uint8Array'&&'BYTES_PER_ELEMENT'in _0xb155e7&&_0xb155e7[_0x4b9058(0x1c3)]===0x1;}function _0x508742(_0x2ae40c){const _0x1ccb8c=_0x21648f;if(typeof _0x2ae40c!='number')throw TypeError('number\x20expected,\x20got\x20'+typeof _0x2ae40c);if(!Number[_0x1ccb8c(0x3e7)](_0x2ae40c)||_0x2ae40c<0x0)throw RangeError('positive\x20integer\x20expected,\x20got\x20'+_0x2ae40c);}function _0x4ace98(_0x2b58ad,_0x55152f,_0x19aa12=''){const _0x5b9e96=_0x21648f;let _0x310141=_0x1d4a37(_0x2b58ad),_0x5bae8f=_0x2b58ad==null?void 0x0:_0x2b58ad[_0x5b9e96(0x207)],_0x3d0f08=_0x55152f!==void 0x0;if(!_0x310141||_0x3d0f08&&_0x5bae8f!==_0x55152f){let _0x5c961b=_0x19aa12&&'\x22'+_0x19aa12+'\x22\x20',_0x342cd9=_0x3d0f08?_0x5b9e96(0x17d)+_0x55152f:'',_0x1e59b7=_0x310141?'length='+_0x5bae8f:_0x5b9e96(0x418)+typeof _0x2b58ad,_0x3acf37=_0x5c961b+_0x5b9e96(0x149)+_0x342cd9+_0x5b9e96(0x134)+_0x1e59b7;throw _0x310141?RangeError(_0x3acf37):TypeError(_0x3acf37);}return _0x2b58ad;}function _0x3950d7(_0x97cb30){const _0x21d13e=_0x21648f;return new Uint32Array(_0x97cb30['buffer'],_0x97cb30['byteOffset'],Math[_0x21d13e(0x299)](_0x97cb30['byteLength']/0x4));}function _0xa6a925(..._0x1aea95){const _0x395d51=_0x21648f;for(let _0x1c67b7=0x0;_0x1c67b7<_0x1aea95['length'];_0x1c67b7++)_0x1aea95[_0x1c67b7][_0x395d51(0x344)](0x0);}let _0x5bfac2=new Uint8Array(new Uint32Array([0x11223344])[_0x21648f(0x412)])[0x0]===0x44,_0x29d85e=_0x5c4d10=>_0x5c4d10<<0x18&0xff000000|_0x5c4d10<<0x8&0xff0000|_0x5c4d10>>>0x8&0xff00|_0x5c4d10>>>0x18&0xff,_0x27bf18=_0x5bfac2?_0x1407d2=>_0x1407d2:_0x12bea5=>{for(let _0x2589fd=0x0;_0x2589fd<_0x12bea5['length'];_0x2589fd++)_0x12bea5[_0x2589fd]=_0x29d85e(_0x12bea5[_0x2589fd]);return _0x12bea5;};function _0x51fa95(_0x5a0554){const _0x3c44fd=_0x21648f;if(typeof _0x5a0554!='string')throw TypeError(_0x3c44fd(0x2c6));return new Uint8Array(new TextEncoder()[_0x3c44fd(0x28e)](_0x5a0554));}function _0xfb58bc(_0x46086d,_0x5cabbe){const _0x543dfd=_0x21648f;return!_0x46086d[_0x543dfd(0x249)]||!_0x5cabbe[_0x543dfd(0x249)]?!0x1:_0x46086d[_0x543dfd(0x412)]===_0x5cabbe[_0x543dfd(0x412)]&&_0x46086d[_0x543dfd(0x38b)]<_0x5cabbe['byteOffset']+_0x5cabbe[_0x543dfd(0x249)]&&_0x5cabbe[_0x543dfd(0x38b)]<_0x46086d['byteOffset']+_0x46086d[_0x543dfd(0x249)];}function _0x307ed9(_0x298312,_0x250bd6){const _0x164895=_0x21648f;if(_0xfb58bc(_0x298312,_0x250bd6)&&_0x298312[_0x164895(0x38b)]<_0x250bd6[_0x164895(0x38b)])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0xf48190(..._0x2dd8a8){const _0x17ee90=_0x21648f;let _0x1700c4=0x0;for(let _0x34f70f=0x0;_0x34f70f<_0x2dd8a8[_0x17ee90(0x207)];_0x34f70f++){let _0x3cfaa9=_0x2dd8a8[_0x34f70f];_0x4ace98(_0x3cfaa9),_0x1700c4+=_0x3cfaa9[_0x17ee90(0x207)];}let _0x64ca42=new Uint8Array(_0x1700c4);for(let _0x172ac1=0x0,_0x334b78=0x0;_0x172ac1<_0x2dd8a8[_0x17ee90(0x207)];_0x172ac1++){let _0x1a51e8=_0x2dd8a8[_0x172ac1];_0x64ca42[_0x17ee90(0x213)](_0x1a51e8,_0x334b78),_0x334b78+=_0x1a51e8[_0x17ee90(0x207)];}return _0x64ca42;}let _0x4a721e=(_0x1005fd,_0x19538d)=>{function _0x485c21(_0x58c603,..._0x2caf98){const _0x4b5bd1=_0x2b93;if(_0x4ace98(_0x58c603,void 0x0,_0x4b5bd1(0xec)),_0x1005fd[_0x4b5bd1(0x192)]!==void 0x0){let _0x27ff7d=_0x2caf98[0x0];_0x4ace98(_0x27ff7d,_0x1005fd[_0x4b5bd1(0x19d)]?void 0x0:_0x1005fd[_0x4b5bd1(0x192)],_0x4b5bd1(0x3aa));}let _0x30d542=_0x1005fd[_0x4b5bd1(0x334)];_0x30d542&&_0x2caf98[0x1]!==void 0x0&&_0x4ace98(_0x2caf98[0x1],void 0x0,_0x4b5bd1(0x279));let _0x189e9a=_0x19538d(_0x58c603,..._0x2caf98),_0x2f1845=(_0x1b6471,_0x518165)=>{if(_0x518165!==void 0x0){if(_0x1b6471!==0x2)throw Error('cipher\x20output\x20not\x20supported');_0x4ace98(_0x518165,void 0x0,'output');}},_0x55132b=!0x1;return{'encrypt'(_0x563ecf,_0x2c8842){const _0x13053c=_0x4b5bd1;if(_0x55132b)throw Error(_0x13053c(0x41e));return _0x55132b=!0x0,_0x4ace98(_0x563ecf),_0x2f1845(_0x189e9a['encrypt'][_0x13053c(0x207)],_0x2c8842),_0x189e9a[_0x13053c(0xc3)](_0x563ecf,_0x2c8842);},'decrypt'(_0x4525a4,_0x14c3ce){const _0x1bb892=_0x4b5bd1;if(_0x4ace98(_0x4525a4),_0x30d542&&_0x4525a4[_0x1bb892(0x207)]<_0x30d542)throw Error(_0x1bb892(0x2a1)+_0x30d542);return _0x2f1845(_0x189e9a[_0x1bb892(0x322)]['length'],_0x14c3ce),_0x189e9a[_0x1bb892(0x322)](_0x4525a4,_0x14c3ce);}};}return Object['assign'](_0x485c21,_0x1005fd),_0x485c21;};function _0x1e24ee(_0x486675,_0x1d2ad1,_0x368aaf=!0x0){const _0x3f0e3c=_0x21648f;if(_0x1d2ad1===void 0x0)return new Uint8Array(_0x486675);if(_0x4ace98(_0x1d2ad1,void 0x0,_0x3f0e3c(0x242)),_0x1d2ad1[_0x3f0e3c(0x207)]!==_0x486675)throw Error(_0x3f0e3c(0x3cb)+_0x486675+_0x3f0e3c(0x228)+_0x1d2ad1[_0x3f0e3c(0x207)]);if(_0x368aaf&&!_0x39f7e5(_0x1d2ad1))throw Error(_0x3f0e3c(0x2a5));return _0x1d2ad1;}function _0x39f7e5(_0x7945ac){const _0x4af272=_0x21648f;return _0x7945ac[_0x4af272(0x38b)]%0x4==0x0;}function _0x1138f9(_0x38a9b6){return Uint8Array['from'](_0x4ace98(_0x38a9b6));}function _0x41fb8b(_0x2a7bd2=0x20){const _0x433425=_0x21648f;_0x508742(_0x2a7bd2);let _0x3635e2=typeof globalThis==_0x433425(0x2a6)?globalThis['crypto']:null;if(typeof(_0x3635e2==null?void 0x0:_0x3635e2[_0x433425(0xf0)])!=_0x433425(0x259))throw Error(_0x433425(0x32a));return _0x3635e2['getRandomValues'](new Uint8Array(_0x2a7bd2));}function _0x418a99(_0xc1aaab){const _0xf62e2b=_0x21648f;if(![0x10,0x18,0x20][_0xf62e2b(0x335)](_0xc1aaab[_0xf62e2b(0x207)]))throw Error(_0xf62e2b(0x1e0)+_0xc1aaab['length']);}function _0x4482e7(_0x19b7dd){return _0x19b7dd<<0x1^0x11b&-(_0x19b7dd>>0x7);}function _0x32cd2d(_0x2a045f,_0x247e5e){let _0x2b8eba=0x0;for(;_0x247e5e>0x0;_0x247e5e>>=0x1)_0x2b8eba^=_0x2a045f&-(_0x247e5e&0x1),_0x2a045f=_0x4482e7(_0x2a045f);return _0x2b8eba;}let _0x13f9b2=((()=>{let _0x11a003=new Uint8Array(0x100);for(let _0x507c85=0x0,_0x59d175=0x1;_0x507c85<0x100;_0x507c85++,_0x59d175^=_0x4482e7(_0x59d175))_0x11a003[_0x507c85]=_0x59d175;let _0x32b077=new Uint8Array(0x100);_0x32b077[0x0]=0x63;for(let _0x1e85d5=0x0;_0x1e85d5<0xff;_0x1e85d5++){let _0x29fcbf=_0x11a003[0xff-_0x1e85d5];_0x29fcbf|=_0x29fcbf<<0x8,_0x32b077[_0x11a003[_0x1e85d5]]=(_0x29fcbf^_0x29fcbf>>0x4^_0x29fcbf>>0x5^_0x29fcbf>>0x6^_0x29fcbf>>0x7^0x63)&0xff;}return _0xa6a925(_0x11a003),_0x32b077;})()),_0x73ad1f=_0x13f9b2[_0x21648f(0x26e)]((_0x4b47e3,_0x357073)=>_0x13f9b2[_0x21648f(0xed)](_0x357073)),_0x3ac031=_0x53a339=>_0x53a339<<0x18|_0x53a339>>>0x8,_0x1ee802=_0x6ce9e7=>_0x6ce9e7<<0x8|_0x6ce9e7>>>0x18;function _0x19bf21(_0x1243c0,_0x3bb26b){const _0xf86b47=_0x21648f;if(_0x1243c0[_0xf86b47(0x207)]!==0x100)throw Error(_0xf86b47(0x29f));let _0x540707=new Uint32Array(0x100)[_0xf86b47(0x26e)]((_0x302bb6,_0x151d74)=>_0x3bb26b(_0x1243c0[_0x151d74])),_0x3a921e=_0x540707[_0xf86b47(0x26e)](_0x1ee802),_0x2710f5=_0x3a921e['map'](_0x1ee802),_0x3cd067=_0x2710f5[_0xf86b47(0x26e)](_0x1ee802),_0x4d016b=new Uint32Array(0x100*0x100),_0x49d710=new Uint32Array(0x100*0x100),_0x12fe1f=new Uint16Array(0x100*0x100);for(let _0xf68ba6=0x0;_0xf68ba6<0x100;_0xf68ba6++)for(let _0x1b4e4d=0x0;_0x1b4e4d<0x100;_0x1b4e4d++){let _0x7fb296=_0xf68ba6*0x100+_0x1b4e4d;_0x4d016b[_0x7fb296]=_0x540707[_0xf68ba6]^_0x3a921e[_0x1b4e4d],_0x49d710[_0x7fb296]=_0x2710f5[_0xf68ba6]^_0x3cd067[_0x1b4e4d],_0x12fe1f[_0x7fb296]=_0x1243c0[_0xf68ba6]<<0x8|_0x1243c0[_0x1b4e4d];}return{'sbox':_0x1243c0,'sbox2':_0x12fe1f,'T0':_0x540707,'T1':_0x3a921e,'T2':_0x2710f5,'T3':_0x3cd067,'T01':_0x4d016b,'T23':_0x49d710};}let _0x23a347=_0x19bf21(_0x13f9b2,_0x196f79=>_0x32cd2d(_0x196f79,0x3)<<0x18|_0x196f79<<0x10|_0x196f79<<0x8|_0x32cd2d(_0x196f79,0x2)),_0x383ebf=_0x19bf21(_0x73ad1f,_0x4eee50=>_0x32cd2d(_0x4eee50,0xb)<<0x18|_0x32cd2d(_0x4eee50,0xd)<<0x10|_0x32cd2d(_0x4eee50,0x9)<<0x8|_0x32cd2d(_0x4eee50,0xe)),_0x4325fc=((()=>{let _0x3099de=new Uint8Array(0x10);for(let _0x3fea12=0x0,_0x3fbf30=0x1;_0x3fea12<0x10;_0x3fea12++,_0x3fbf30=_0x4482e7(_0x3fbf30))_0x3099de[_0x3fea12]=_0x3fbf30;return _0x3099de;})());function _0x217231(_0x32562d){const _0x5e8c7d=_0x21648f;_0x4ace98(_0x32562d);let _0x467745=_0x32562d[_0x5e8c7d(0x207)];_0x418a99(_0x32562d);let {sbox2:_0x253225}=_0x23a347,_0x39927b=[];(!_0x5bfac2||!_0x39f7e5(_0x32562d))&&_0x39927b['push'](_0x32562d=_0x1138f9(_0x32562d));let _0x28fcfb=_0x27bf18(_0x3950d7(_0x32562d)),_0x36d4fb=_0x28fcfb[_0x5e8c7d(0x207)],_0x3d89e2=_0x3842e6=>_0x443ac3(_0x253225,_0x3842e6,_0x3842e6,_0x3842e6,_0x3842e6),_0x310d25=new Uint32Array(_0x467745+0x1c);_0x310d25['set'](_0x28fcfb);for(let _0x373899=_0x36d4fb;_0x373899<_0x310d25['length'];_0x373899++){let _0x368e7a=_0x310d25[_0x373899-0x1];_0x373899%_0x36d4fb===0x0?_0x368e7a=_0x3d89e2(_0x3ac031(_0x368e7a))^_0x4325fc[_0x373899/_0x36d4fb-0x1]:_0x36d4fb>0x6&&_0x373899%_0x36d4fb===0x4&&(_0x368e7a=_0x3d89e2(_0x368e7a)),_0x310d25[_0x373899]=_0x310d25[_0x373899-_0x36d4fb]^_0x368e7a;}return _0xa6a925(..._0x39927b),_0x310d25;}function _0x3f6652(_0x5b4041){let _0x17c195=_0x217231(_0x5b4041),_0xe5978f=_0x17c195['slice'](),_0x191c20=_0x17c195['length'],{sbox2:_0xc4d29e}=_0x23a347,{T0:_0x5a9142,T1:_0x2aecc8,T2:_0x52d860,T3:_0x47592d}=_0x383ebf;for(let _0x5a2291=0x0;_0x5a2291<_0x191c20;_0x5a2291+=0x4)for(let _0x1ca840=0x0;_0x1ca840<0x4;_0x1ca840++)_0xe5978f[_0x5a2291+_0x1ca840]=_0x17c195[_0x191c20-_0x5a2291-0x4+_0x1ca840];_0xa6a925(_0x17c195);for(let _0x7d6016=0x4;_0x7d6016<_0x191c20-0x4;_0x7d6016++){let _0x5f3d3a=_0xe5978f[_0x7d6016],_0x553f7b=_0x443ac3(_0xc4d29e,_0x5f3d3a,_0x5f3d3a,_0x5f3d3a,_0x5f3d3a);_0xe5978f[_0x7d6016]=_0x5a9142[_0x553f7b&0xff]^_0x2aecc8[_0x553f7b>>>0x8&0xff]^_0x52d860[_0x553f7b>>>0x10&0xff]^_0x47592d[_0x553f7b>>>0x18];}return _0xe5978f;}function _0x24ac2b(_0x5c7fb6,_0x193d64,_0x56eb7a,_0x42fd27,_0x5a0e42,_0x41f4cd){return _0x5c7fb6[_0x56eb7a<<0x8&0xff00|_0x42fd27>>>0x8&0xff]^_0x193d64[_0x5a0e42>>>0x8&0xff00|_0x41f4cd>>>0x18&0xff];}function _0x443ac3(_0xa99fa6,_0x4572b7,_0x5985e8,_0x26f05a,_0x365feb){return _0xa99fa6[_0x4572b7&0xff|_0x5985e8&0xff00]|_0xa99fa6[_0x26f05a>>>0x10&0xff|_0x365feb>>>0x10&0xff00]<<0x10;}function _0x5d3c98(_0x4d5239,_0x6e5db1,_0x4a9f7c,_0x3e9a2b,_0x9c789d){const _0x58aa8d=_0x21648f;let {sbox2:_0x314ca6,T01:_0x2c99e2,T23:_0x533658}=_0x23a347,_0x5acefd=0x0;_0x6e5db1^=_0x4d5239[_0x5acefd++],_0x4a9f7c^=_0x4d5239[_0x5acefd++],_0x3e9a2b^=_0x4d5239[_0x5acefd++],_0x9c789d^=_0x4d5239[_0x5acefd++];let _0x4a18f1=_0x4d5239[_0x58aa8d(0x207)]/0x4-0x2;for(let _0x563c93=0x0;_0x563c93<_0x4a18f1;_0x563c93++){let _0x32babc=_0x4d5239[_0x5acefd++]^_0x24ac2b(_0x2c99e2,_0x533658,_0x6e5db1,_0x4a9f7c,_0x3e9a2b,_0x9c789d),_0x210dc4=_0x4d5239[_0x5acefd++]^_0x24ac2b(_0x2c99e2,_0x533658,_0x4a9f7c,_0x3e9a2b,_0x9c789d,_0x6e5db1),_0xdbb414=_0x4d5239[_0x5acefd++]^_0x24ac2b(_0x2c99e2,_0x533658,_0x3e9a2b,_0x9c789d,_0x6e5db1,_0x4a9f7c),_0xa2ec56=_0x4d5239[_0x5acefd++]^_0x24ac2b(_0x2c99e2,_0x533658,_0x9c789d,_0x6e5db1,_0x4a9f7c,_0x3e9a2b);_0x6e5db1=_0x32babc,_0x4a9f7c=_0x210dc4,_0x3e9a2b=_0xdbb414,_0x9c789d=_0xa2ec56;}return{'s0':_0x4d5239[_0x5acefd++]^_0x443ac3(_0x314ca6,_0x6e5db1,_0x4a9f7c,_0x3e9a2b,_0x9c789d),'s1':_0x4d5239[_0x5acefd++]^_0x443ac3(_0x314ca6,_0x4a9f7c,_0x3e9a2b,_0x9c789d,_0x6e5db1),'s2':_0x4d5239[_0x5acefd++]^_0x443ac3(_0x314ca6,_0x3e9a2b,_0x9c789d,_0x6e5db1,_0x4a9f7c),'s3':_0x4d5239[_0x5acefd++]^_0x443ac3(_0x314ca6,_0x9c789d,_0x6e5db1,_0x4a9f7c,_0x3e9a2b)};}function _0x2924f2(_0x3f2b95,_0x4022d7,_0x4df684,_0x394663,_0x7592f5){const _0x36db84=_0x21648f;let {sbox2:_0x241f31,T01:_0x2ae9d0,T23:_0x229cb1}=_0x383ebf,_0x3561be=0x0;_0x4022d7^=_0x3f2b95[_0x3561be++],_0x4df684^=_0x3f2b95[_0x3561be++],_0x394663^=_0x3f2b95[_0x3561be++],_0x7592f5^=_0x3f2b95[_0x3561be++];let _0x3942a8=_0x3f2b95[_0x36db84(0x207)]/0x4-0x2;for(let _0x23200d=0x0;_0x23200d<_0x3942a8;_0x23200d++){let _0x1c1a7e=_0x3f2b95[_0x3561be++]^_0x24ac2b(_0x2ae9d0,_0x229cb1,_0x4022d7,_0x7592f5,_0x394663,_0x4df684),_0x419215=_0x3f2b95[_0x3561be++]^_0x24ac2b(_0x2ae9d0,_0x229cb1,_0x4df684,_0x4022d7,_0x7592f5,_0x394663),_0x125eb9=_0x3f2b95[_0x3561be++]^_0x24ac2b(_0x2ae9d0,_0x229cb1,_0x394663,_0x4df684,_0x4022d7,_0x7592f5),_0x524432=_0x3f2b95[_0x3561be++]^_0x24ac2b(_0x2ae9d0,_0x229cb1,_0x7592f5,_0x394663,_0x4df684,_0x4022d7);_0x4022d7=_0x1c1a7e,_0x4df684=_0x419215,_0x394663=_0x125eb9,_0x7592f5=_0x524432;}return{'s0':_0x3f2b95[_0x3561be++]^_0x443ac3(_0x241f31,_0x4022d7,_0x7592f5,_0x394663,_0x4df684),'s1':_0x3f2b95[_0x3561be++]^_0x443ac3(_0x241f31,_0x4df684,_0x4022d7,_0x7592f5,_0x394663),'s2':_0x3f2b95[_0x3561be++]^_0x443ac3(_0x241f31,_0x394663,_0x4df684,_0x4022d7,_0x7592f5),'s3':_0x3f2b95[_0x3561be++]^_0x443ac3(_0x241f31,_0x7592f5,_0x394663,_0x4df684,_0x4022d7)};}function _0x3c06fc(_0x2f6d1d){const _0x829ac1=_0x21648f;if(_0x4ace98(_0x2f6d1d),_0x2f6d1d[_0x829ac1(0x207)]%0x10!=0x0)throw Error(_0x829ac1(0x187));}function _0x2341df(_0x155727,_0x29d84c,_0x5aed0b){const _0x222258=_0x21648f;_0x4ace98(_0x155727);let _0x2ee885=_0x155727[_0x222258(0x207)],_0x4a24ef=_0x2ee885%0x10;if(!_0x29d84c&&_0x4a24ef!==0x0)throw Error(_0x222258(0x17f));if(_0x29d84c){let _0x20d6ff=0x10-_0x4a24ef;_0x20d6ff||(_0x20d6ff=0x10),_0x2ee885+=_0x20d6ff;}_0x5aed0b=_0x1e24ee(_0x2ee885,_0x5aed0b),_0x307ed9(_0x155727,_0x5aed0b),(!_0x5bfac2||!_0x39f7e5(_0x155727))&&(_0x155727=_0x1138f9(_0x155727));let _0x183b9d=_0x3950d7(_0x155727);return _0x27bf18(_0x183b9d),{'b':_0x183b9d,'o':_0x3950d7(_0x5aed0b),'out':_0x5aed0b};}function _0x4307d1(_0x29b671,_0x2453df){const _0xe97730=_0x21648f;if(!_0x2453df)return _0x29b671;let _0x52a18f=_0x29b671[_0xe97730(0x207)];if(_0x52a18f===0x0)throw Error(_0xe97730(0x319));let _0x5c1778=_0x29b671[_0x52a18f-0x1],_0x4a2002=0x1;_0x4a2002&=_0x5c1778-0x1>>>0x1f^0x1,_0x4a2002&=0x10-_0x5c1778>>>0x1f^0x1;for(let _0x4affec=0x0;_0x4affec<0x10;_0x4affec++){let _0x3957d5=_0x4affec-_0x5c1778>>>0x1f,_0x5b0003=+((_0x29b671[_0x52a18f-0x1-_0x4affec]^_0x5c1778)===0x0);_0x4a2002&=_0x5b0003|_0x3957d5^0x1;}if(!_0x4a2002)throw Error(_0xe97730(0x2df));return _0x29b671[_0xe97730(0x314)](0x0,_0x52a18f-_0x5c1778);}function _0x398041(_0x5d768f){const _0x4b6e41=_0x21648f;let _0x55cd85=new Uint8Array(0x10),_0x549030=_0x3950d7(_0x55cd85);_0x55cd85[_0x4b6e41(0x213)](_0x5d768f);let _0x953bd5=0x10-_0x5d768f[_0x4b6e41(0x207)];for(let _0x54a493=0x10-_0x953bd5;_0x54a493<0x10;_0x54a493++)_0x55cd85[_0x54a493]=_0x953bd5;return _0x549030;}let _0x22b264=_0x4a721e({'blockSize':0x10,'nonceLength':0x10},function(_0x18989c,_0x2f99bd,_0x3b4170={}){let _0x2179b4=!_0x3b4170['disablePadding'];return{'encrypt'(_0x5da101,_0x4ddc28){const _0x2ba143=_0x2b93;let _0x9da018=_0x217231(_0x18989c),{b:_0x23d981,o:_0x5c8ce7,out:_0x1530ae}=_0x2341df(_0x5da101,_0x2179b4,_0x4ddc28),_0x17fa34=_0x2f99bd,_0x16d08b=[_0x9da018];(!_0x5bfac2||!_0x39f7e5(_0x17fa34))&&_0x16d08b[_0x2ba143(0x327)](_0x17fa34=_0x1138f9(_0x17fa34));let _0x18808d=_0x3950d7(_0x17fa34);_0x27bf18(_0x18808d);let _0x345830=_0x18808d[0x0],_0xa2803a=_0x18808d[0x1],_0x469eb7=_0x18808d[0x2],_0x2182b7=_0x18808d[0x3],_0x3a3640=0x0;for(;_0x3a3640+0x4<=_0x23d981[_0x2ba143(0x207)];)_0x345830^=_0x23d981[_0x3a3640+0x0],_0xa2803a^=_0x23d981[_0x3a3640+0x1],_0x469eb7^=_0x23d981[_0x3a3640+0x2],_0x2182b7^=_0x23d981[_0x3a3640+0x3],{s0:_0x345830,s1:_0xa2803a,s2:_0x469eb7,s3:_0x2182b7}=_0x5d3c98(_0x9da018,_0x345830,_0xa2803a,_0x469eb7,_0x2182b7),_0x5c8ce7[_0x3a3640++]=_0x345830,_0x5c8ce7[_0x3a3640++]=_0xa2803a,_0x5c8ce7[_0x3a3640++]=_0x469eb7,_0x5c8ce7[_0x3a3640++]=_0x2182b7;if(_0x2179b4){let _0x159bb6=_0x398041(_0x5da101[_0x2ba143(0x314)](_0x3a3640*0x4));_0x27bf18(_0x159bb6),_0x345830^=_0x159bb6[0x0],_0xa2803a^=_0x159bb6[0x1],_0x469eb7^=_0x159bb6[0x2],_0x2182b7^=_0x159bb6[0x3],{s0:_0x345830,s1:_0xa2803a,s2:_0x469eb7,s3:_0x2182b7}=_0x5d3c98(_0x9da018,_0x345830,_0xa2803a,_0x469eb7,_0x2182b7),_0x5c8ce7[_0x3a3640++]=_0x345830,_0x5c8ce7[_0x3a3640++]=_0xa2803a,_0x5c8ce7[_0x3a3640++]=_0x469eb7,_0x5c8ce7[_0x3a3640++]=_0x2182b7;}return _0x27bf18(_0x5c8ce7),_0xa6a925(..._0x16d08b),_0x1530ae;},'decrypt'(_0x52b95d,_0x2d0963){const _0x479cbd=_0x2b93;_0x3c06fc(_0x52b95d);let _0x4801c6=_0x3f6652(_0x18989c),_0x16083a=_0x2f99bd,_0x21582a=[_0x4801c6];(!_0x5bfac2||!_0x39f7e5(_0x16083a))&&_0x21582a['push'](_0x16083a=_0x1138f9(_0x16083a));let _0x4121ad=_0x3950d7(_0x16083a);_0x27bf18(_0x4121ad),_0x2d0963=_0x1e24ee(_0x52b95d[_0x479cbd(0x207)],_0x2d0963),_0x307ed9(_0x52b95d,_0x2d0963),(!_0x5bfac2||!_0x39f7e5(_0x52b95d))&&_0x21582a[_0x479cbd(0x327)](_0x52b95d=_0x1138f9(_0x52b95d));let _0x20ff75=_0x3950d7(_0x52b95d),_0x6c9c33=_0x3950d7(_0x2d0963);_0x27bf18(_0x20ff75);let _0x398e05=_0x4121ad[0x0],_0x1ec1a8=_0x4121ad[0x1],_0x32930e=_0x4121ad[0x2],_0x1452e3=_0x4121ad[0x3];for(let _0x1eaaa5=0x0;_0x1eaaa5+0x4<=_0x20ff75[_0x479cbd(0x207)];){let _0x1aecc6=_0x398e05,_0x5896fb=_0x1ec1a8,_0x5a7d34=_0x32930e,_0x335b96=_0x1452e3;_0x398e05=_0x20ff75[_0x1eaaa5+0x0],_0x1ec1a8=_0x20ff75[_0x1eaaa5+0x1],_0x32930e=_0x20ff75[_0x1eaaa5+0x2],_0x1452e3=_0x20ff75[_0x1eaaa5+0x3];let {s0:_0x49e950,s1:_0x4f3409,s2:_0x58f776,s3:_0x12d0f1}=_0x2924f2(_0x4801c6,_0x398e05,_0x1ec1a8,_0x32930e,_0x1452e3);_0x6c9c33[_0x1eaaa5++]=_0x49e950^_0x1aecc6,_0x6c9c33[_0x1eaaa5++]=_0x4f3409^_0x5896fb,_0x6c9c33[_0x1eaaa5++]=_0x58f776^_0x5a7d34,_0x6c9c33[_0x1eaaa5++]=_0x12d0f1^_0x335b96;}return _0x27bf18(_0x6c9c33),_0xa6a925(..._0x21582a),_0x4307d1(_0x2d0963,_0x2179b4);}};});function _0x5d4008(_0x39c832){const _0x264e19=_0x21648f;let _0x4384bb=atob(_0x39c832),_0x2c42ae=new Uint8Array(_0x4384bb[_0x264e19(0x207)]);for(let _0x59549a=0x0;_0x59549a<_0x4384bb[_0x264e19(0x207)];_0x59549a++)_0x2c42ae[_0x59549a]=_0x4384bb['charCodeAt'](_0x59549a);return _0x2c42ae;}function _0xc11ea2(_0x5fda37){const _0x13550a=_0x21648f;let _0x1ea8da='';for(let _0xbd9d56=0x0;_0xbd9d56<_0x5fda37[_0x13550a(0x207)];_0xbd9d56++)_0x1ea8da+=String[_0x13550a(0x3fd)](_0x5fda37[_0xbd9d56]);return btoa(_0x1ea8da);}function _0x54d039(_0x23534d,_0x149f84){const _0x31d1b5=_0x21648f;let _0x74faf5=_0x5d4008(_0x149f84),_0x5bc8f1=_0x41fb8b(0x10);return _0xc11ea2(_0xf48190(_0x5bc8f1,_0x22b264(_0x74faf5,_0x5bc8f1)[_0x31d1b5(0xc3)](_0x51fa95(_0x23534d))));}function _0x101d1c(){const _0xa272b1=_0x21648f;let _0x424da0=(0x0,_0xae8d13[_0xa272b1(0x15b)])()[_0xa272b1(0x239)];if(typeof window<'u'&&window[_0xa272b1(0x241)]!==void 0x0&&_0x424da0){let _0x2d4ecb={'time':Math[_0xa272b1(0x299)](Date[_0xa272b1(0x1c2)]()/0x3e8),'domain':location[_0xa272b1(0x30c)]};return _0x54d039(JSON[_0xa272b1(0x102)](_0x2d4ecb),_0x424da0);}}let _0x2f8f91=class{constructor(_0x37acfa){const _0x2d83a1=_0x21648f;this[_0x2d83a1(0x3a7)]=_0x37acfa,this[_0x2d83a1(0x196)]();}[_0x21648f(0x196)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x2227e1,_0x12fdb)=>{const _0x21ef9f=_0x2b93;let _0x21b5c6=_0x101d1c();return _0x21b5c6&&_0x2227e1['headers'][_0x21ef9f(0x213)]('x-univer-host',_0x21b5c6),_0x12fdb(_0x2227e1);}});}};_0x2f8f91=_0x3e0941([_0x273192(0x0,(0x0,_0x868841[_0x21648f(0x138)])(_0x8bc35f['HTTPService']))],_0x2f8f91);let _0x49a43c=class extends _0x868841['RxDisposable']{constructor(_0xade241,_0x2ea219,_0x471d3e){const _0x49c9ff=_0x21648f;super(),this[_0x49c9ff(0x2fc)]=_0xade241,this[_0x49c9ff(0x179)]=_0x2ea219,this[_0x49c9ff(0x2c8)]=_0x471d3e,_0x6d65c2(this,_0x49c9ff(0x391),new _0x409690[(_0x49c9ff(0x193))](null)),_0x6d65c2(this,_0x49c9ff(0x285),new _0x409690['Subject']()),_0x6d65c2(this,_0x49c9ff(0x245),this['_unitInfo$']['asObservable']()),_0x6d65c2(this,_0x49c9ff(0x1e1),this[_0x49c9ff(0x285)][_0x49c9ff(0x340)]());}[_0x21648f(0x265)](){const _0x5875fd=_0x21648f;super[_0x5875fd(0x265)](),this[_0x5875fd(0x285)][_0x5875fd(0x3f5)](),this[_0x5875fd(0x391)]['complete']();}async[_0x21648f(0x3a1)](_0x1e8825,_0x130e4c,_0x2cec49,_0x3638f3){const _0x339f77=_0x21648f;this[_0x339f77(0x391)][_0x339f77(0xdd)]({'unitId':_0x1e8825,'type':_0x130e4c,'subUnitId':_0x3638f3});let _0x3cc234=null;switch(_0x130e4c){case _0x868841[_0x339f77(0x2f8)][_0x339f77(0x23b)]:_0x3cc234=await this[_0x339f77(0x179)][_0x339f77(0x326)](_0x1e8825,_0x2cec49,void 0x0,{'initialSubUnitId':_0x3638f3});break;case _0x868841['UniverInstanceType']['UNIVER_DOC']:_0x3cc234=await this[_0x339f77(0x179)][_0x339f77(0x34c)](_0x1e8825,_0x2cec49);break;case _0x868841['UniverInstanceType'][_0x339f77(0x2b1)]:_0x3cc234=await this[_0x339f77(0x179)]['loadSlide'](_0x1e8825,_0x2cec49);break;case _0x868841['UniverInstanceType'][_0x339f77(0x28a)]:_0x3cc234=await this[_0x339f77(0x179)][_0x339f77(0x1d3)](_0x1e8825,_0x2cec49);break;case _0x868841[_0x339f77(0x2f8)][_0x339f77(0x2a9)]:_0x3cc234=await this[_0x339f77(0x179)]['loadBase'](_0x1e8825,_0x2cec49);break;default:this[_0x339f77(0x2fc)][_0x339f77(0x29e)](_0x339f77(0x18d),_0x339f77(0x2c2));break;}return _0x3cc234&&this[_0x339f77(0x285)]['next'](_0x3cc234),_0x3cc234;}async[_0x21648f(0x291)](_0x59c6ed,_0xa105d,_0xaf3871){const _0x69003=_0x21648f;var _0x5a9f3f;this[_0x69003(0x391)][_0x69003(0xdd)]({'unitId':_0x59c6ed,'type':_0xa105d,'subUnitId':_0xaf3871});let _0x4b59c4=0x0,_0x5b29d3=await((_0x5a9f3f=this['_localCacheService'])==null?void 0x0:_0x5a9f3f[_0x69003(0x38e)](_0x59c6ed));return _0x5b29d3&&(_0x5b29d3[_0x69003(0x1ed)]||_0x5b29d3[_0x69003(0x1bb)][_0x69003(0x207)]!==0x0)&&(_0x4b59c4=_0x5b29d3['rev']),_0x4b59c4===0x0&&this[_0x69003(0x2fc)][_0x69003(0x39c)](_0x69003(0x18d),_0x69003(0x3b4)),this[_0x69003(0x3a1)](_0x59c6ed,_0xa105d,_0x4b59c4,_0xaf3871);}};_0x49a43c=_0x3e0941([_0x273192(0x0,_0x868841[_0x21648f(0x206)]),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x1e5)])),_0x273192(0x2,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x49a43c);let _0x4a2349=class{constructor(_0x375d46,_0x1e86a7,_0xdffc2f){const _0x5a524c=_0x21648f;this[_0x5a524c(0x3a7)]=_0x375d46,this['_configService']=_0x1e86a7,this[_0x5a524c(0x32f)]=_0xdffc2f,_0x6d65c2(this,_0x5a524c(0x1ea),0x0),_0x6d65c2(this,_0x5a524c(0xe3),new _0x409690[(_0x5a524c(0x409))]()),_0x6d65c2(this,_0x5a524c(0x37a),this[_0x5a524c(0xe3)]),_0x6d65c2(this,_0x5a524c(0x158),new Map());}[_0x21648f(0x41a)](_0xc2318a){const _0x174a9d=_0x21648f;this[_0x174a9d(0x1ea)]=_0xc2318a,this[_0x174a9d(0xe3)][_0x174a9d(0xdd)](_0xc2318a);}[_0x21648f(0x3cf)](_0x365fff,_0x2c8dbd){const _0x1f037b=_0x21648f;if(_0x2c8dbd===_0x868841[_0x1f037b(0x1ee)][_0x1f037b(0x37b)]){let _0x1d459e=new Image();return _0x1d459e[_0x1f037b(0x315)]=_0x365fff,_0x1d459e;}return this[_0x1f037b(0x158)][_0x1f037b(0x224)](_0x365fff);}['addImageSourceCache'](_0x3c13a8,_0x4a5ec6,_0x3bf52d){const _0x554153=_0x21648f;_0x4a5ec6===_0x868841['ImageSourceType'][_0x554153(0x37b)]||_0x3bf52d==null||this[_0x554153(0x158)]['set'](_0x3c13a8,_0x3bf52d);}async[_0x21648f(0x123)](_0x3b7279){const _0x1fc2cb=_0x21648f;try{let _0x45185f=this[_0x1fc2cb(0x135)](this['_getSignURL'](),''+_0x3b7279),_0x28084a=(await this['_httpService'][_0x1fc2cb(0x224)](_0x45185f))[_0x1fc2cb(0x346)];if(_0x28084a[_0x1fc2cb(0x29e)]&&_0x28084a[_0x1fc2cb(0x29e)]['code']===_0x1df2bb[_0x1fc2cb(0xf6)]['OK']){let _0x53845f=(0x0,_0x868841[_0x1fc2cb(0x33d)])(_0x28084a['url'],this[_0x1fc2cb(0x189)]());return Promise[_0x1fc2cb(0x103)](_0x53845f);}return Promise[_0x1fc2cb(0x2d3)](_0x28084a[_0x1fc2cb(0x29e)]);}catch(_0xe05115){return Promise[_0x1fc2cb(0x2d3)](_0xe05115);}}async[_0x21648f(0x331)](_0x18030c){const _0x698d35=_0x21648f;let _0x535fb5='';if(!_0x50acd0[_0x698d35(0x2aa)]['includes'](_0x18030c['type']))return this[_0x698d35(0x28d)](),Promise[_0x698d35(0x2d3)](Error(_0x868841[_0x698d35(0x39a)][_0x698d35(0x3b8)]));if(_0x18030c[_0x698d35(0x362)]>(0x0,_0x50acd0['getDrawingImageAllowSize'])())return this[_0x698d35(0x28d)](),Promise['reject'](Error(_0x868841[_0x698d35(0x39a)][_0x698d35(0x316)]));try{let _0x1df78e=new FormData();_0x1df78e[_0x698d35(0x407)]('file',_0x18030c);let _0x314e5f=this[_0x698d35(0x32f)][_0x698d35(0x2e3)](),_0xee9b51=_0x314e5f==null?void 0x0:_0x314e5f['getUnitId']();if(!_0xee9b51)throw Error(_0x698d35(0x3ca));let _0x12e1d5=this[_0x698d35(0xfa)]()+_0x698d35(0x10a)+_0x18030c[_0x698d35(0x362)][_0x698d35(0x11b)]()+'&source='+_0x1df2bb['FileSource']['UnitEmbedded']+'&assign='+encodeURIComponent(_0xee9b51),_0x405ee6={'body':_0x1df78e},_0x2eb1e6=(await this[_0x698d35(0x3a7)]['post'](_0x12e1d5,_0x405ee6))[_0x698d35(0x346)];if(typeof _0x2eb1e6[_0x698d35(0x3c7)]!=_0x698d35(0x353))return this[_0x698d35(0x28d)](),Promise[_0x698d35(0x2d3)](Error(_0x868841[_0x698d35(0x39a)][_0x698d35(0xef)]));_0x535fb5=_0x2eb1e6[_0x698d35(0x3c7)];}catch{return this[_0x698d35(0x28d)](),Promise[_0x698d35(0x2d3)](Error(_0x868841['ImageUploadStatusType']['ERROR_IMAGE']));}return new Promise((_0x371fa8,_0x284270)=>{const _0xbd7028=_0x698d35;let _0x3ef25e=new FileReader();_0x3ef25e[_0xbd7028(0x40f)](_0x18030c),_0x3ef25e[_0xbd7028(0x281)]=_0xa0e8c1=>{const _0x45441d=_0xbd7028;var _0xb12346;let _0x4183a6=(_0xb12346=_0xa0e8c1['target'])==null?void 0x0:_0xb12346[_0x45441d(0x144)];if(_0x4183a6==null){this['_decreaseWaiting'](),_0x284270(Error(_0x868841['ImageUploadStatusType'][_0x45441d(0xef)]));return;}_0x371fa8({'imageId':(0x0,_0x868841[_0x45441d(0x2db)])(0x6),'imageSourceType':_0x868841['ImageSourceType'][_0x45441d(0x3de)],'source':_0x535fb5,'base64Cache':_0x4183a6,'status':_0x868841[_0x45441d(0x39a)][_0x45441d(0x318)]}),this[_0x45441d(0x28d)]();};});}[_0x21648f(0xfa)](){const _0x378742=_0x21648f;var _0x1a6c66;let _0x3fb55e=this[_0x378742(0x23e)][_0x378742(0x33e)](_0x4b92ba);return(_0x1a6c66=_0x3fb55e==null?void 0x0:_0x3fb55e[_0x378742(0x2a2)])==null?_0x378742(0xeb):_0x1a6c66;}['_getSignURL'](){const _0x2ba620=_0x21648f;var _0x163b00;let _0x23dfcf=this[_0x2ba620(0x23e)][_0x2ba620(0x33e)](_0x4b92ba);return(_0x163b00=_0x23dfcf==null?void 0x0:_0x23dfcf[_0x2ba620(0x30f)])==null?_0x2ba620(0x274):_0x163b00;}[_0x21648f(0x189)](){const _0x2cb2df=_0x21648f;var _0x467055;let _0x505f4b=this[_0x2cb2df(0x23e)][_0x2cb2df(0x33e)](_0x4b92ba);return(_0x467055=_0x505f4b==null?void 0x0:_0x505f4b[_0x2cb2df(0x21d)])==null?location[_0x2cb2df(0x1c9)]:_0x467055;}[_0x21648f(0x135)](_0x4ec18f,_0x33ff09){const _0xa58c4d=_0x21648f;return _0x4ec18f[_0xa58c4d(0x336)](_0xa58c4d(0x1e4),_0x33ff09);}[_0x21648f(0x28d)](){const _0x1147f8=_0x21648f;--this[_0x1147f8(0x1ea)],this[_0x1147f8(0xe3)][_0x1147f8(0xdd)](this[_0x1147f8(0x1ea)]);}};_0x4a2349=_0x3e0941([_0x273192(0x0,(0x0,_0x868841['Inject'])(_0x8bc35f[_0x21648f(0x1a4)])),_0x273192(0x1,_0x868841[_0x21648f(0x2ba)]),_0x273192(0x2,(0x0,_0x868841['Inject'])(_0x868841['IUniverInstanceService']))],_0x4a2349);let _0x3f1171=class{constructor(_0x477ced,_0x4197a6){const _0x4363a5=_0x21648f;this[_0x4363a5(0x23e)]=_0x477ced,this[_0x4363a5(0x1ad)]=_0x4197a6;}[_0x21648f(0x366)](){const _0x5c468e=_0x21648f;var _0x368fb1;let _0x1c9cf5=this['_configService'][_0x5c468e(0x33e)](_0x4b92ba);return(_0x368fb1=_0x1c9cf5==null?void 0x0:_0x1c9cf5['authzUrl'])==null?_0x5c468e(0x1b3):_0x368fb1;}async[_0x21648f(0x417)](_0x8f7010){const _0x5902e3=_0x21648f;let _0x30e59e=this[_0x5902e3(0x366)]()+_0x5902e3(0x10c);return{'list':[{'title':'People','mentions':(await this[_0x5902e3(0x1ad)]['get'](_0x30e59e,{'params':{'objectID':_0x8f7010['unitId'],'unitID':_0x8f7010[_0x5902e3(0x3b9)]}}))[_0x5902e3(0x346)][_0x5902e3(0x2a8)][_0x5902e3(0x26e)](_0x5db6a0=>({'objectId':_0x5db6a0['id'],'name':_0x5db6a0[_0x5902e3(0xcd)][_0x5902e3(0x414)],'metadata':{'icon':_0x5db6a0[_0x5902e3(0xcd)][_0x5902e3(0x3e1)]},'label':_0x5db6a0['subject'][_0x5902e3(0x414)],'objectType':_0x868841[_0x5902e3(0x345)]['PERSON']})),'metadata':{},'type':_0x868841[_0x5902e3(0x345)][_0x5902e3(0x21c)]}]};}};_0x3f1171=_0x3e0941([_0x273192(0x0,(0x0,_0x868841['Inject'])(_0x868841[_0x21648f(0x2ba)])),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x8bc35f[_0x21648f(0x1a4)]))],_0x3f1171);let _0x473d8e=class extends _0x868841[_0x21648f(0x112)]{constructor(_0x18e4b3,_0x46426a,_0x4cc25e,_0x360b05,_0xad89d2){const _0x3f9d1d=_0x21648f;super(),this[_0x3f9d1d(0x2d9)]=_0x18e4b3,this[_0x3f9d1d(0x32f)]=_0x46426a,this[_0x3f9d1d(0x393)]=_0x4cc25e,this[_0x3f9d1d(0x226)]=_0x360b05,this[_0x3f9d1d(0x2bd)]=_0xad89d2,this[_0x3f9d1d(0xd4)](),this[_0x3f9d1d(0x3d4)]();}[_0x21648f(0x3d4)](){const _0x2a80f2=_0x21648f;let _0x59db62=async _0x383b88=>{const _0x4742e2=_0x2b93;(await this[_0x4742e2(0x226)][_0x4742e2(0x2a4)](_0x383b88))[_0x4742e2(0x219)][_0x4742e2(0x320)]((0x0,_0x4f74e1['filter'])(_0x599763=>_0x599763[_0x4742e2(0x1d9)]===_0x4c2ece['CollaborationEvent'][_0x4742e2(0x1fe)]),(0x0,_0x4f74e1[_0x4742e2(0x374)])(this['dispose$']))[_0x4742e2(0x3b6)](_0x29abfb=>{const _0x78ea3f=_0x4742e2;let {reason:_0x4fa3d6}=_0x29abfb['data'];this[_0x78ea3f(0x2bd)][_0x78ea3f(0x203)]({'id':_0x78ea3f(0x386),'data':_0x4fa3d6}),this[_0x78ea3f(0x393)][_0x78ea3f(0x339)](new _0x1d347c[(_0x78ea3f(0x360))](_0x383b88)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x383b88);});};(0x0,_0x409690[_0x2a80f2(0x382)])(this[_0x2a80f2(0x32f)]['getTypeOfUnitAdded$'](_0x868841['UniverInstanceType'][_0x2a80f2(0x23b)]),this['_univerInstanceService'][_0x2a80f2(0x14d)](_0x868841[_0x2a80f2(0x2f8)][_0x2a80f2(0x332)]),this[_0x2a80f2(0x32f)][_0x2a80f2(0x14d)](_0x868841[_0x2a80f2(0x2f8)]['UNIVER_BOARD']),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x868841['UniverInstanceType'][_0x2a80f2(0x2a9)]))[_0x2a80f2(0x320)]((0x0,_0x4f74e1['map'])(_0x97fb3d=>_0x97fb3d['unit'][_0x2a80f2(0x128)]()),(0x0,_0x4f74e1[_0x2a80f2(0x11a)])(_0x5effac=>!(0x0,_0x868841[_0x2a80f2(0x1fc)])(_0x5effac)),(0x0,_0x4f74e1[_0x2a80f2(0x374)])(this['dispose$']))[_0x2a80f2(0x3b6)](_0x539a60=>{_0x59db62(_0x539a60);});}[_0x21648f(0xd4)](){const _0x556b0c=_0x21648f;let _0x435f49=async _0x22826f=>{const _0x51bd98=_0x2b93;let _0x46ea70=await this[_0x51bd98(0x226)][_0x51bd98(0x2a4)](_0x22826f),_0x15bd94=this[_0x51bd98(0x2d9)]['get'](_0x1d347c[_0x51bd98(0x254)]);_0x46ea70[_0x51bd98(0x219)]['pipe']((0x0,_0x4f74e1[_0x51bd98(0x11a)])(_0x23e63b=>_0x23e63b[_0x51bd98(0x1d9)]===_0x4c2ece[_0x51bd98(0x343)][_0x51bd98(0x2ea)]),(0x0,_0x4f74e1[_0x51bd98(0x374)])(this[_0x51bd98(0xf2)]))['subscribe'](_0x2517b2=>{const _0x396b61=_0x51bd98;let {objectId:_0x3da172}=_0x2517b2[_0x396b61(0x29b)];_0x3da172===_0x22826f?_0x15bd94[_0x396b61(0x2f3)](_0x22826f):_0x15bd94[_0x396b61(0x333)](_0x22826f,_0x3da172);});};(0x0,_0x409690[_0x556b0c(0x382)])(this[_0x556b0c(0x32f)][_0x556b0c(0x14d)](_0x868841[_0x556b0c(0x2f8)][_0x556b0c(0x23b)]))[_0x556b0c(0x320)]((0x0,_0x4f74e1[_0x556b0c(0x26e)])(_0x565388=>_0x565388[_0x556b0c(0x2ee)][_0x556b0c(0x128)]()),(0x0,_0x4f74e1['filter'])(_0x59eb0d=>!(0x0,_0x868841[_0x556b0c(0x1fc)])(_0x59eb0d)),(0x0,_0x4f74e1[_0x556b0c(0x374)])(this[_0x556b0c(0xf2)]))[_0x556b0c(0x3b6)](_0x9541ab=>{_0x435f49(_0x9541ab);});}};_0x473d8e=_0x3e0941([_0x273192(0x0,(0x0,_0x868841['Inject'])(_0x868841['Injector'])),_0x273192(0x1,_0x868841['IUniverInstanceService']),_0x273192(0x2,_0x868841[_0x21648f(0x307)]),_0x273192(0x3,(0x0,_0x868841[_0x21648f(0x138)])(_0x4bf0aa)),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d))],_0x473d8e);let _0x238261=class{constructor(_0x3d7d09,_0x520dda){const _0x3b22ed=_0x21648f;this[_0x3b22ed(0x23e)]=_0x3d7d09,this[_0x3b22ed(0x3a7)]=_0x520dda;}async[_0x21648f(0x416)](_0x4ababb,_0x3128b3){const _0x42fe1f=_0x21648f;var _0x58274b;let {unitID:_0x4d0833,type:_0x37ca7b,revision:_0x233d52=0x0}=_0x3128b3,_0x18c4eb=this[_0x42fe1f(0x23c)]()+'/'+_0x37ca7b+_0x42fe1f(0x19c)+_0x4d0833+_0x42fe1f(0x24c)+_0x233d52,_0x3fa3ec=(await this[_0x42fe1f(0x3a7)][_0x42fe1f(0x224)](_0x18c4eb))[_0x42fe1f(0x346)],_0x3c15c3=(_0x58274b=_0x3fa3ec['snapshot'])==null?void 0x0:_0x58274b[_0x42fe1f(0x411)];if(_0x3c15c3){let _0xcd835c=_0x3c15c3==null?void 0x0:_0x3c15c3[_0x42fe1f(0x237)];_0x3c15c3[_0x42fe1f(0x237)]=_0x4c2ece[_0x42fe1f(0x16b)][_0x42fe1f(0x28e)]((0x0,_0x4c2ece[_0x42fe1f(0x266)])(_0xcd835c)),Object[_0x42fe1f(0x1d1)](_0x3c15c3['sheets'])[_0x42fe1f(0x352)](([,_0x36554a])=>{const _0x466621=_0x42fe1f;let _0x2f6ede=_0x36554a[_0x466621(0x237)];_0x36554a[_0x466621(0x237)]=_0x4c2ece[_0x466621(0x16b)][_0x466621(0x28e)]((0x0,_0x4c2ece[_0x466621(0x266)])(_0x2f6ede));});}return _0x3fa3ec;}async[_0x21648f(0x263)](_0x351e2c,_0x1c0af1){const _0x3a8a11=_0x21648f;let {unitID:_0x25ebfb,type:_0x4b5310,blockID:_0x1372d6}=_0x1c0af1,_0x2e9a2a=this[_0x3a8a11(0x1ab)]()+'/'+_0x4b5310+_0x3a8a11(0x19c)+_0x25ebfb+_0x3a8a11(0x272)+_0x1372d6;return(await this[_0x3a8a11(0x3a7)][_0x3a8a11(0x224)](_0x2e9a2a))[_0x3a8a11(0x346)];}async['getDeserializedSheetBlock'](_0x486804,_0x28bc72){const _0x43ae95=_0x21648f;let {unitID:_0x4798bc,type:_0x49e792,blockID:_0x216f26}=_0x28bc72,_0x198b84=this['_getAPIPrefix']()+_0x43ae95(0x272)+_0x49e792+_0x43ae95(0x19c)+_0x4798bc+'/block/'+_0x216f26;return(await this[_0x43ae95(0x3a7)][_0x43ae95(0x224)](_0x198b84))['body'];}async[_0x21648f(0x1f7)](_0x415e40,_0xb1ed09){const _0x417d43=_0x21648f;let {unitID:_0x487705,type:_0x42886d,from:_0x176417,to:_0xbc9912}=_0xb1ed09,_0x568896=this['_getAPIPrefix']()+'/'+_0x42886d+_0x417d43(0x19c)+_0x487705+_0x417d43(0x163)+_0x176417+'&to='+_0xbc9912;return(await this[_0x417d43(0x3a7)]['get'](_0x568896))[_0x417d43(0x346)];}[_0x21648f(0x23c)](){const _0x5641fe=_0x21648f;var _0x5d249d;return(_0x5d249d=this[_0x5641fe(0x23e)][_0x5641fe(0x33e)](_0x5641fe(0x1af)))==null?this[_0x5641fe(0x1ab)]():_0x5d249d;}['_getAPIPrefix'](){const _0x163938=_0x21648f;var _0x27add4;let _0x3dbfa6=this['_configService'][_0x163938(0x33e)](_0x4b92ba);return(_0x27add4=_0x3dbfa6==null?void 0x0:_0x3dbfa6['snapshotServerUrl'])==null?_0x163938(0xc5):_0x27add4;}async['getResourcesRequest'](_0x3d6ff3,_0x8308a6){const _0x12e21a=_0x21648f;let _0x58bea3='/universer-api/snapshot/'+_0x8308a6[_0x12e21a(0x350)]+_0x12e21a(0x19c)+_0x8308a6['unitID']+'/resources';return(await this['_httpService'][_0x12e21a(0x224)](_0x58bea3,{'params':{'resourceId':JSON['stringify'](_0x8308a6[_0x12e21a(0x3e4)])}}))[_0x12e21a(0x346)];}['saveSnapshot'](){const _0x54433f=_0x21648f;throw Error(_0x54433f(0x36b));}[_0x21648f(0x2c9)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x21648f(0x1f0)](){const _0x3fb897=_0x21648f;throw Error(_0x3fb897(0x36b));}[_0x21648f(0x2e7)](){const _0x1844b6=_0x21648f;throw Error(_0x1844b6(0x36b));}[_0x21648f(0x3a5)](){const _0x156805=_0x21648f;throw Error(_0x156805(0x36b));}[_0x21648f(0x1b4)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};_0x238261=_0x3e0941([_0x273192(0x0,_0x868841[_0x21648f(0x2ba)]),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x8bc35f[_0x21648f(0x1a4)]))],_0x238261);let _0x42867b=class extends _0x868841[_0x21648f(0x1f3)]{constructor(_0x57d07b,_0x2e7805,_0x29f7b6,_0x5d887f,_0x3200c4){const _0x43ab4b=_0x21648f;super(_0x57d07b,_0x2e7805,_0x29f7b6),this[_0x43ab4b(0x376)]=_0x5d887f,this[_0x43ab4b(0x2fc)]=_0x3200c4;}[_0x21648f(0x3e8)](_0x7dcff3,_0x5ec8b0){const _0x6f215e=_0x21648f;let _0x4fd00f=this[_0x6f215e(0x151)](_0x7dcff3);if(_0x4fd00f)try{let _0x25ec28=this[_0x6f215e(0x1db)](_0x4fd00f,_0x5ec8b0);this[_0x6f215e(0x222)](_0x7dcff3,_0x25ec28);}catch(_0x42f640){this['_logService'][_0x6f215e(0x29e)]('[CollaborationUndoRedoService]',_0x42f640),this[_0x6f215e(0x2cb)](_0x7dcff3);}let _0x47243d=this[_0x6f215e(0x36c)](_0x7dcff3);if(_0x47243d)try{let _0x20cd88=this[_0x6f215e(0x1db)](_0x47243d,_0x5ec8b0);this[_0x6f215e(0x2b3)](_0x7dcff3,_0x20cd88);}catch(_0x3a00e7){this[_0x6f215e(0x2fc)][_0x6f215e(0x29e)](_0x3a00e7),this['_clearRedo'](_0x7dcff3);}}[_0x21648f(0x2cb)](_0x32863b){const _0x1e86a6=_0x21648f;let _0x209ee4=this['_getUndoStack'](_0x32863b);_0x209ee4&&(_0x209ee4[_0x1e86a6(0x207)]=0x0,this['_updateStatus']());}[_0x21648f(0xfe)](_0x1cfae5){const _0x25bbb8=_0x21648f;let _0x21d5bb=this[_0x25bbb8(0x36c)](_0x1cfae5);_0x21d5bb&&(_0x21d5bb['length']=0x0,this[_0x25bbb8(0x1d7)]());}[_0x21648f(0x222)](_0x2eb8a5,_0x5c03c0){const _0x40b514=_0x21648f;this[_0x40b514(0x3cd)][_0x40b514(0x213)](_0x2eb8a5,_0x5c03c0),this['_updateStatus']();}['_substituteRedoStack'](_0x3ec5c2,_0x584dda){const _0x660ae3=_0x21648f;this['_redoStacks']['set'](_0x3ec5c2,_0x584dda),this[_0x660ae3(0x1d7)]();}['_transformStack'](_0x964e27,_0x2c6a4e){const _0x272eb7=_0x21648f;let _0x3de360=[],_0x9b7121=_0x2c6a4e,_0x539d3d=_0x2c6a4e;for(let _0x878066=_0x964e27[_0x272eb7(0x207)]-0x1;_0x878066>=0x0;_0x878066--){let {unitID:_0x202ad6,undoMutations:_0x1d501c,redoMutations:_0x23cd42}=_0x964e27[_0x878066],_0x2b9577=this[_0x272eb7(0x376)][_0x272eb7(0x3e9)](_0x9b7121,_0x1d501c),_0x38c6f0=this[_0x272eb7(0x376)][_0x272eb7(0x3e9)](_0x539d3d,_0x23cd42);if((0x0,_0x4c2ece[_0x272eb7(0x3f9)])(_0x2b9577)||(0x0,_0x4c2ece['isTransformMutationsWithChangesetFailure'])(_0x38c6f0)){this[_0x272eb7(0x2fc)][_0x272eb7(0x29e)](_0x272eb7(0x220),_0x272eb7(0x395),_0x2b9577,_0x38c6f0);break;}_0x9b7121=_0x2b9577[_0x272eb7(0x3ae)],_0x539d3d=_0x38c6f0['c1Prime'],_0x3de360[_0x272eb7(0x327)]({'unitID':_0x202ad6,'undoMutations':_0x2b9577[_0x272eb7(0x188)],'redoMutations':_0x38c6f0[_0x272eb7(0x188)]});}return _0x3de360[_0x272eb7(0x38f)]();}};_0x42867b=_0x3e0941([_0x273192(0x0,_0x868841[_0x21648f(0x214)]),_0x273192(0x1,_0x868841[_0x21648f(0x2fd)]),_0x273192(0x2,_0x868841['IContextService']),_0x273192(0x3,_0x4c2ece['ITransformService']),_0x273192(0x4,_0x868841[_0x21648f(0x206)])],_0x42867b);let _0xc03cc9=class extends _0x868841[_0x21648f(0x197)]{constructor(_0x5cdcab=_0x361839,_0x2cbaf2,_0xb7c95b,_0x1eb90d){const _0x53be8c=_0x21648f;super(),this['_config']=_0x5cdcab,this[_0x53be8c(0x2fc)]=_0x2cbaf2,this[_0x53be8c(0x2d9)]=_0xb7c95b,this[_0x53be8c(0x23e)]=_0x1eb90d;let {..._0x5815e0}=(0x0,_0x868841['merge'])({},_0x361839,this['_config']);if(!_0x5815e0[_0x53be8c(0x389)])throw Error(_0x53be8c(0x32b));this[_0x53be8c(0x3fb)]=_0x5815e0,this[_0x53be8c(0x23e)][_0x53be8c(0xe8)](_0x4b92ba,_0x5815e0);}['onStarting'](){const _0x21c718=_0x21648f;this['_registerDependencies'](),this[_0x21c718(0x252)]();}[_0x21648f(0xe5)](){const _0x5229cb=_0x21648f;var _0x26a5e3,_0x3e8d8c;this['_injector'][_0x5229cb(0x215)](_0x868841[_0x5229cb(0x351)])&&this[_0x5229cb(0x2fc)][_0x5229cb(0x29e)](_0x5229cb(0x1d0),_0x5229cb(0x37c));let _0x517329=(0x0,_0x868841['mergeOverrideWithDependencies'])([[_0x868841[_0x5229cb(0x351)],{'useClass':_0x42867b}],[_0x2bd49e,{'useValue':_0x55fb30()}],[_0x4bf0aa],[_0x568427],[_0xd82d96],[_0x36e2b4],[_0x2f8f91],[_0x278d59],[_0x473d8e],[_0x55b02d],[_0x49a43c],[_0x4e1025,{'useClass':this[_0x5229cb(0x3fb)][_0x5229cb(0x389)]}],[_0x4c2ece[_0x5229cb(0x170)],{'useClass':_0x238261}],[_0x868841[_0x5229cb(0x218)],{'useClass':_0x37ea91}],[_0x868841[_0x5229cb(0x28b)],{'useClass':_0x4a2349}],[_0x3673e6,{'useClass':_0x1ba482}],[_0x868841['IMentionIOService'],{'useClass':_0x3f1171}],[_0x5ad10a],[_0x448220]],(_0x26a5e3=this[_0x5229cb(0x3fb)])==null?void 0x0:_0x26a5e3[_0x5229cb(0x367)]);if(!((_0x3e8d8c=this[_0x5229cb(0x3fb)])!=null&&_0x3e8d8c[_0x5229cb(0x3d8)])){let _0x4a5964=_0x517329['findIndex'](([_0x484fe8])=>_0x484fe8===_0x3857c0);_0x4a5964!==-0x1&&_0x517329[_0x5229cb(0x109)](_0x4a5964,0x1);}(0x0,_0x868841[_0x5229cb(0x354)])(this['_injector'],_0x517329);}[_0x21648f(0x252)](){const _0x2e4b6a=_0x21648f;var _0xac3cee,_0x4f5906;if(this['_injector']['get'](_0x8bc35f['HTTPService'])[_0x2e4b6a(0x2a0)]({'priority':0x14,'interceptor':(0x0,_0x8bc35f[_0x2e4b6a(0x2f1)])({'maxParallel':0x6})}),!((_0xac3cee=this[_0x2e4b6a(0x3fb)])!=null&&_0xac3cee[_0x2e4b6a(0x22c)])){var _0x1c2e62;(_0x1c2e62=this['_injector'][_0x2e4b6a(0x224)](_0x47d8b0,_0x868841[_0x2e4b6a(0x37d)]['OPTIONAL']))==null||_0x1c2e62[_0x2e4b6a(0x381)]();}(_0x4f5906=this[_0x2e4b6a(0x3fb)])!=null&&_0x4f5906[_0x2e4b6a(0x19a)]&&(0x0,_0x868841[_0x2e4b6a(0x121)])(this[_0x2e4b6a(0x2d9)],[[_0x36e2b4]]),(0x0,_0x868841['touchDependencies'])(this[_0x2e4b6a(0x2d9)],[[_0x2f8f91],[_0x5ad10a],[_0x473d8e]]);}};_0x6d65c2(_0xc03cc9,_0x21648f(0x1dd),_0x21648f(0x1c1)),_0x6d65c2(_0xc03cc9,'packageName',_0x32f204),_0x6d65c2(_0xc03cc9,'version',_0x3be6e8),_0xc03cc9=_0x3e0941([(0x0,_0x868841[_0x21648f(0x283)])(_0xae8d13[_0x21648f(0x1cf)],_0x4c2ece[_0x21648f(0x22d)],_0x8bc35f[_0x21648f(0x3c5)]),_0x273192(0x1,_0x868841[_0x21648f(0x206)]),_0x273192(0x2,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x3,_0x868841['IConfigService'])],_0xc03cc9),_0x15bcea['AttachmentSourceType']=_0x5ec8e0,Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x1b9),{'enumerable':!0x0,'get':function(){return _0x37ea91;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x15c),{'enumerable':!0x0,'get':function(){return _0x403ace;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x17c),{'enumerable':!0x0,'get':function(){return _0x4c911a;}}),Object['defineProperty'](_0x15bcea,'BaseCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x552cde;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x39b),{'enumerable':!0x0,'get':function(){return _0x9a1332;}}),_0x15bcea['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=_0x4b92ba,Object[_0x21648f(0x131)](_0x15bcea,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return _0x1ba482;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x114),{'enumerable':!0x0,'get':function(){return _0x5ad10a;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x117),{'enumerable':!0x0,'get':function(){return _0x598b2a;}}),Object['defineProperty'](_0x15bcea,_0x21648f(0x10d),{'enumerable':!0x0,'get':function(){return _0x4a2349;}}),Object['defineProperty'](_0x15bcea,_0x21648f(0x3ea),{'enumerable':!0x0,'get':function(){return _0x4d2902;}}),Object['defineProperty'](_0x15bcea,_0x21648f(0x30d),{'enumerable':!0x0,'get':function(){return _0x4bf0aa;}}),Object['defineProperty'](_0x15bcea,_0x21648f(0x358),{'enumerable':!0x0,'get':function(){return _0x594520;}}),_0x15bcea[_0x21648f(0x2ad)]=_0x5c8834,_0x15bcea[_0x21648f(0x1fa)]=_0x1ca442,_0x15bcea[_0x21648f(0x16a)]=_0x55b02d,Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x3f8),{'enumerable':!0x0,'get':function(){return _0x42867b;}}),_0x15bcea['CommentService']=_0x278d59,Object['defineProperty'](_0x15bcea,_0x21648f(0x2b8),{'enumerable':!0x0,'get':function(){return _0x391b2a;}}),_0x15bcea[_0x21648f(0x300)]=_0x3838c0,_0x15bcea[_0x21648f(0x2b2)]=_0x21648f(0x38c),_0x15bcea[_0x21648f(0x240)]=_0x21648f(0x387),Object['defineProperty'](_0x15bcea,_0x21648f(0x1d4),{'enumerable':!0x0,'get':function(){return _0x49a43c;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x1e6),{'enumerable':!0x0,'get':function(){return _0x148d55;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x3d0),{'enumerable':!0x0,'get':function(){return _0x2ef93b;}}),_0x15bcea['HEARTBEAT_INTERVAL_KEY']=_0x21648f(0x1ef),_0x15bcea[_0x21648f(0x312)]='HEARTBEAT_TIMEOUT',_0x15bcea[_0x21648f(0x116)]=_0x3673e6,_0x15bcea[_0x21648f(0x173)]=_0x2bd49e,_0x15bcea[_0x21648f(0x3b2)]=_0x4e1025,_0x15bcea['ILocalCacheService']=_0x47d8b0,_0x15bcea[_0x21648f(0xd9)]=_0x161fca,_0x15bcea[_0x21648f(0x30e)]=_0x3857c0,_0x15bcea[_0x21648f(0x34f)]=0x3e8,_0x15bcea['LOCAL_CACHE_INTERVAL_KEY']=_0x21648f(0x34f),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x119),{'enumerable':!0x0,'get':function(){return _0x568427;}}),Object['defineProperty'](_0x15bcea,_0x21648f(0x40b),{'enumerable':!0x0,'get':function(){return _0x3f1171;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x2fb),{'enumerable':!0x0,'get':function(){return _0x519d9e;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x194),{'enumerable':!0x0,'get':function(){return _0x5f0bc1;}}),_0x15bcea[_0x21648f(0x246)]=_0x21648f(0x3df),_0x15bcea[_0x21648f(0x198)]=_0x21648f(0x2d2),_0x15bcea['SessionStatus']=_0x138ed3,Object['defineProperty'](_0x15bcea,_0x21648f(0x1e9),{'enumerable':!0x0,'get':function(){return _0x4b3c61;}}),Object['defineProperty'](_0x15bcea,'SheetTransformSelectionsService',{'enumerable':!0x0,'get':function(){return _0xd82d96;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x127),{'enumerable':!0x0,'get':function(){return _0x52744e;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x2c0),{'enumerable':!0x0,'get':function(){return _0x238261;}}),Object['defineProperty'](_0x15bcea,_0x21648f(0x401),{'enumerable':!0x0,'get':function(){return _0x1e7b48;}}),_0x15bcea['UnitStatus']=_0x294d78,Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0xe4),{'enumerable':!0x0,'get':function(){return _0xc03cc9;}}),_0x15bcea[_0x21648f(0xf8)]=_0x55fb30,_0x15bcea['deserializeToCombResponse']=_0x3b8398,_0x15bcea[_0x21648f(0x2de)]=_0x32415a,_0x15bcea[_0x21648f(0x191)]=_0x43de64;}));function _0x1845(){const _0x48f206=['replace','JOINING','Failed\x20to\x20update\x20permission\x20point','updatePermissionPoint','1.0.0-alpha.5','OFFLINE','onTransformSelections','resolveWithBasePath','getConfig','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','asObservable','status','_handleRemoteChangesets','CollaborationEvent','fill','MentionType','body','onTransformRemoteChangesetByStateCache','Rectangle','/object/','_telemetryService','catch','loadDoc','_shouldReportTelemetry','[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.','LOCAL_CACHE_INTERVAL','type','IUndoRedoService','forEach','string','registerDependencies','target','headers','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','CollaborationSocketService','awaiting','8368368GzFwPU','[PendingState]:\x20received\x20rejection.','listCollaborators','_onConnectionOpen','objectType','@univerjs/core','WorkbookEditablePermission','_onRemoteRejected','size','SOCKET_FAILED_RETRY','RichTextEditingMutation','_lockTransition','_getAPIPrefixPath','override','\x20to\x20','collaboration-client.config','objectActions','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_getRedoStack','_startTelemetryCollaborationNewChangeset','collaboration-client.local-cache-service','href','_doCreateSocket','stopTime','getMemberID','number','takeUntil','_acknowledgeAwaiting','_transformService','decorate','getInterceptPoints','backupOfflineData','change$','BASE64','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','Quantity','_clearRetryConnectingTimer','_userManagerService','setCurrentUser','disableLocalCache','merge','parseChangesetToProtocol','IDLE','_sheetTransformSelectionsService','CLOSE_ROOM','/universer-api/user/session-ticket','add','socketService','@univerjs-pro/license','byteOffset','/universer-api/uniscript','_tryEnsureSocket','loadOfflineData','reverse','_getCtorByUniverInstanceType','_unitInfo$','_state','_permissionService','onRemoteRej','transformStack\x20failed!','status$','_event$','UniverProCollaboration','/object','ImageUploadStatusType','BoardCollaborationEntity','debug','waitForRoom$','@univerjs/protocol','synced','cfgEnableObjInherit','loadUnitOfRevision','Module','candidateSocket','isTransformChangesetsSuccess','copyFileMeta','createCollaborator','_httpService','CommandType','_networkConditionService','nonce','find','resend','encodeURIComponent','c1Prime','isArray','editing\x20status\x20changed\x20to','onLocalMutation','ICollaborationSocketService','fetchThroughInterceptors','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','toggleOffline','subscribe','UniverProCollaborationClient','ERROR_IMAGE_TYPE','unitId','NOT_COLLAB','5IUgWsd','3163676IPtqTF','parseProtocolChangeset','concatMap','localUnitId','_checkMissing','startsWith','CHANGESET_ACK','_pendingMutations','csRejEvent','UniverNetworkPlugin','create','FileId','JOIN_ROOM_PERMISSION_DENIED','_socketChannels','unitId\x20is\x20not\x20found','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','onCommentUpdate','_undoStacks','DEFAULT_FILE_NAME','getImageSourceCache','FetchingMissState','_socketService','unit-cache-','_incrementRevisionNumber','_initCloseConn','getActiveSheet','CombCmd','session.room-permission-denied','enableSingleActiveInstanceLock','createInstance','close','endpoint','awaiting_with_pending','_updateState','UUID','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','ISocketService','avatar','missingChangesets','_resendTimeout','resourceIDs','title','isCompositionEnd','isSafeInteger','transformUndoRedo','transformMutationsWithChangeset','CollaborationSession','trim','save\x20fail\x20reason\x20is\x20','HELLO','mapDocumentTypeToUniverInstanceType','iterator','transformSelections','localCacheService','deleteCollaborator','_queuedRemoteChangesets','MSG_FOR_ERROR','complete','_onCombEvent','COLLABORATION_ENDPOINT_INVALID','CollaborativeUndoRedoService','isTransformMutationsWithChangesetFailure','[SyncedState]:\x20received\x20acknowledgement.','_config','toRemote','fromCharCode','toPrimitive','_handlerCallback','_transformIMECache','SyncedState','fetch_missing','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','Injector','_applyRemoteChangeset','[CollaborationSessionService]','append','univer-pro.collaboration-client-socket-service','Subject','_resolveSessionIdentity','MentionIoHttpService','_commentService','textRanges','updatePermissionObjEvent','readAsDataURL','subUnitId','workbook','buffer','accept','name','_maxTotalRetryTimeout','getUnitOnRev','list','type=','transformChangesets','setWaitCount','socket\x20close','getCurrentSelections','_entityInit$','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','encrypt','hasOwnProperty','/universer-api/snapshot','COMPRESS_MUTATION_APPLY','onMissedChangesetFetched','duration','onRemoteAck','socketReady','GLOBAL_ROOMS_CNT_EXCEEDS','state','subject','file','revision','reconnect','disposeWithMe','@univerjs/drawing','_startCollaboration','_initUnitPermissionChange','_initMergeInterceptor','leaveEvent','FETCH_MISS','fromCollab','INetworkConditionService','_revisionService','min','getCollabEntity','next','[CollaborationEntity]','CONFLICT','delete','Workbook','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_change$','UniverCollaborationClientPlugin','_registerDependencies','incrementRevOfUnit','PERMISSION_DENIED','setConfig','infoRsp','session.room-not-exists','/universer-api/stream/file/upload','key','indexOf','getOwnPropertyDescriptor','ERROR_IMAGE','getRandomValues','JOIN','dispose$','_updateLocalCache','_schedule','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','ErrorCode','_sender','createUniverCollaborationAdapter','LIVESHARE_REQUEST_HOST','_getUploadFileURL','_onRecvEvent','state$','putCollaborators','_clearRedo','unitID','rxjs/operators','getUnitType','stringify','resolve','_snapshotServerService','_exhaustRemoteChangesetQueue','liveShareNewHost','_status$','UnitEmbedded','splice','?size=','_createInitialStateImpl','/collaborator','CollaborationImageIoService','updateMember','AWAITING_WITH_PENDING','columnGroups','OTHER_CLIENTS_EDITING','RxDisposable','createSocket','CollaborationController','closeSession','IAttachmentIoService','CollaborationEntity','socket$','MemberService','filter','toString','blockRanges','onSendChangeset','_eventService','getCurrentUser','update','touchDependencies','listRoles','getImage','collabSubmitChangesetUrl','_createSession','_cfgEnableObjInherit','SlideCollaborationEntity','getUnitId','slice','_acknowledgeAwaitingIfReady','_clearScheduledTask','action','symbol','_isEchoedAwaitingChangeset','_onRemoteRetry','actions','defineProperty','_memberService','getCurrentRevOfUnit',',\x20got\x20','_replaceFileID','toLocal','roles','Inject','_init','clear','__splitChunk__','shouldCloseConn','CHANGESET_REJ','amd','pauseCollaboration','getAllMembers','sessionStatus','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_entities','result','onRemoteRetry','USERS_ENTER','_sessionStatus$','capture','expected\x20Uint8Array','_docStateChangeManagerService','changesets','memberID','getTypeOfUnitAdded$','retryConnectingInterval','firstValueFrom','\x20-\x20','_getUndoStack','_disableEditing','enableCollaboration','objects','_commandService','_getConfig','unsubscribe','_imageSourceCache','INGEST','_getSocketChannel','getGlobalObject','AwaitingState','/role','FAIL','RevisionService','resolveUnit','range','getSheetId','/fetchmissing?from=','_syncEditingCollabCursor','\x20in\x20_schedule.','getTypeOfUnitDisposed$','_socketMessageSubscription','LEAVE','_replayCachedMutations','CollaborationUIEventService','textEncoder','@univerjs/docs','2366526ZaUvld','EnsureSlideMasterPageMutation','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','ISnapshotServerService','requestParams','unitType','ICollaborationClientAdapterService','NEW_CHANGESETS','fetchMiss','RECV','_collaborationTimeoutTimer','_localeService','_snapshotService','CmdRspCode','changeset','AwaitingWithPendingState','\x20of\x20length\x20','_undoRedoService','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','prototype','univer-pro.collaboration-client.single-active-unit-service','send','_getCurrentRevision','delay','userID','socketMessageSubscription','aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','m2Prime','_getDownloadEndpointURL','init','_state$','_transformRemoteChangesetByStateCache','[DataLoaderService]','post','_unlockTransition','sequenceExecute','serializeCombRequest','nonceLength','BehaviorSubject','PendingState','_createSocket','_initRequestHeader','Plugin','RETRY_CONNECTING_MAX_COUNT_KEY','_throwTelemetryCollaborationNewChangeset','enableAuthServer','getUnitStatus$','/unit/','varSizeNonce','removeMember','onTransformRemoteChangesetByIMECache','LIVESHARE_NEW_HOST','from','interceptor','UPDATE_CURSOR','HTTPService','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_singleActiveUnitService','_createHandler','DocStateChangeManagerService','COMMENT_UPDATE','OTHER_CLIENT_EDITING','_getAPIPrefix','permissionRejEvent','_HTTPService','?url=','SNAPSHOT_URL_KEY','getMember','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','_socket','/universer-api/authz','getLatestCsReqIdBySid','sendHeartbeatTimer','AddSlidePageMutation','LIVESHARE_OPERATION','_clearHeartbeatTimer','AuthzIoHttpService','onStateChange','mutations','_identity','&assign=','authzUrl','SOCKET_FAILED','allowed','UNIVER_COLLABORATION_CLIENT_PLUGIN','now','BYTES_PER_ELEMENT','text-x','conflict','MergeInterceptorFactory','session.room-cnt-exceeds','/-/object/list','origin','_awaitingChangeset','executeCommand','_members$','UNISCRIPT_RUN','sessionStatus$','UniverLicensePlugin','[UniverCollaborationClientPlugin]','entries','_onRemoteACK','loadBoard','DataLoaderService','onTransformIME','HEARTBEAT','_updateStatus','baseRev','eventID','sendChangesetTimeout','_transformStack','c2Prime','pluginName','_clearCollaborationTimeoutTimer','_sendHeartbeat','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','unitLoaded$','_toggleOnline','_resendWithTimeout','{fileID}','SnapshotService','DocCollaborationEntity','operators','_waitForHeartbeatResponse','SheetCollaborationEntity','_waitCount','UniverCore','focused$','awaitingChangeset','ImageSourceType','HEARTBEAT_INTERVAL','saveSheetBlock','_transformAndApplyRemoteChangeset','pending','LocalUndoRedoService','editingUnit','attachment','_createInitialState','fetchMissingChangesets','updateCollaborator','_clearLocalCache','CollaborationUIEventId','_telemetryInfo','isInternalEditorID','_transformSelections','SHOULD_CLOSE_CONN','reqId','_onMessage','UniverDrawing','@univerjs-pro/slides','emitEvent','_sessionChannels','_getSendChangesetTimeout','ILogService','length','SUBMIT_CHANGESET_TIMEOUT','getUnit','open$','retryConnectingTimer','unknown','commentUpdate$','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','appendMutation','saveAttachment','_onLocalMutation','_scheduleCompleteTimestamp','set','IUniverInstanceService','has','UniverProSlides','onMutationExecutedForCollab','IAuthzIoService','event$','_adapter','startTime','PERSON','downloadEndpointUrl','endsWith','getTime','[CollaborationUndoRedoService]','_onRemoteChangeset','_substituteUndoStack','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','get','collaboration_new_changeset','_collaborationSessionService','maxSize',',\x20got:\x20','connection\x20error','_onConnectionFailed','_commentUpdate$','enableOfflineEditing','UniverCollaborationPlugin','telemetry\x20info\x20is\x20not\x20initialized','\x0aAfter:\x20','entityInit$','_onUserLeave','COMPRESS_MUTATION_SEND','toDisposable','onlyLocal','ReplaySubject','ITransformService','originalMeta','Optional','__Key__','[CollaborationSessionService]:\x20socket\x20error','UNIVER_SHEET','getSnapshotAPIPath','\x0aCurrent:\x20','_configService','getCollabEntity$','DEFAULT_WS_SESSION_TICKET_URL','location','output','retryCount','&source=','unitInfo$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','byteLength','LIVESHARE_FETCH_OPERATIONS','timeoutTimer','/rev/','session','_submitChangeset','objectID','offline','patch','_initDependencies','_sendingTimer','SheetPermissionInitController','uniscriptRunEvent','JOIN_ROOM_FAILED','call','18bhAPGv','function','rxjs','Disposable','_transformUndoredo','onMissingChangesets','routeKey','reduce','UniverProLicense','upload','309472USnFSa','getSheetBlock','_pendingSessions','dispose','b64DecodeUnicode','loginUrlKey','compose','isView','PSEUDO_FETCH_MISSING_RESULT','cmd','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','setCfgEnableObjInherit','map','submit\x20changeset\x20error!','[OfflineState]:\x20received\x20rejection.','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','/block/','csAckEvent','/universer-api/file/{fileID}/sign-url','CompressMutationService','HEARTBEAT_TIMEOUT','collabWebSocketUrl','_hasSessionsForEndpoint','AAD','USERS_LEAVE','961059AoDdts','JOIN_ROOM_NOT_EXISTS','[CollaborationState]:\x20apply\x20error!','every','localeService','commentUpdateEvent','onload','_clearTimeoutTimer','DependentOn','univer-pro.collaboration-client-adapter-service','_unitLoaded$','SYNCED','_upload','_sessions','_roomCreated$','UNIVER_BOARD','IImageIoService','_collaborationPaused','_decreaseWaiting','encode','_getLoginPath','LocaleService','loadUnit','_roomMembers','_tryReconnect','apply','[OfflineState]:\x20received\x20changeset.','_executeRemoteChangeset','UserManagerService','[SyncedState]:\x20received\x20rejection.','floor','_transformRemoteChangesetByIMECache','data','Error\x20on\x20receiving\x20event','toggleOnline','error','Wrong\x20sbox\x20length','registerHTTPInterceptor','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','uploadFileServerUrl','SUBMIT_CHANGESET','requireSession','invalid\x20output,\x20must\x20be\x20aligned','object','_transformStateCache','collaborators','UNIVER_BASE','DRAWING_IMAGE_ALLOW_IMAGE_LIST','_compressMutationService','URL','CollaborationStatus','onRemoteChangeset','fetching\x20missing\x20changesets\x20from\x20','session.join-failed','UNIVER_SLIDE','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_substituteRedoStack','params','code','setShowComponents','_instanceService','ConflictState','_onConflict','IConfigService','EmptyMutationInfo','FileSource','_collaborationUIEventService','CHANGESET_SHOULD_RETRY','_showConflictNotification','SnapshotServerOverHTTPService','batchAllowed','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','liveShareOperation','822518ONdhVn','ONLINE','string\x20expected','_fetchMissChangesets','_localCacheService','updateSnapshot','getRoom','_clearUndo','RemoveSlidePageMutation','_rescheduleHeartbeat','LIVESHARE_TERMINATE','_joinRoom','_changesetReqId','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','RETRY_CONNECTING_MAX_COUNT','reject','@univerjs/network','UniverNetwork','sid','values','NO_OTHER_CLIENTS_EDITING','_injector','_removeRoom','generateRandomId','_members','_onOffline','getLocalCacheKey','aes/pkcs7:\x20wrong\x20padding','onTransformState','then','take','getFocusedUnit','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_emitMembers','_changesetSessionId','saveChangeset','ws://127.0.0.1:8000/universer-api/comb/connect','method','UPDATE_PERMISSION_OBJ','getValue','_collabSessionService','endpointKey','unit','close$','updateOfflineData','ThresholdInterceptorFactory','_remoteChangesetQueue','initWorkbookPermissionChange','FETCH_MISSING','/-/object/-/batch_allowed','onSyncEditingCollabCursor','_acknowledgedAwaitingRevision','UniverInstanceType','MUTATION','isTransformMutationsWithChangesetSuccess','OfflineState','_logService','ICommandService','put','_resendTimer','DEFAULT_COLLAB_WEB_SOCKET_URL','_isPermissionRej','@univerjs/sheets','_listenToNetworkCondition','_stopTelemetryCollaborationNewChangeset','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_handler','IPermissionService','PENDING','10241448GDmmVQ','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Univer','hostname','CollaborationSessionService','ISingleActiveUnitService','signUrlServerUrl','JSONX','_toggleOffline','HEARTBEAT_TIMEOUT_KEY','/universer-api/comb','subarray','src','ERROR_EXCEED_SIZE','MoveSlidePageMutation','SUCCUSS','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','responseType','addHandlerCallback','selections','error$','univer-pro.collaboration-client.network-condition.service','pipe','_type','decrypt','_transitionLocked','getUploadOptions','POST','loadSheet','push','_onUserJoin','some','crypto.getRandomValues\x20must\x20be\x20defined','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','message$','failed\x20to\x20apply\x20missed\x20changesets!','constructor','_univerInstanceService','createIdentifier','saveImage','UNIVER_DOC','refreshPermission','tagLength','includes'];_0x1845=function(){return _0x48f206;};return _0x1845();}