@univerjs-pro/collaboration-client 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/sk-SK.js +1 -1
  12. package/lib/cjs/locale/vi-VN.js +1 -1
  13. package/lib/cjs/locale/zh-CN.js +1 -1
  14. package/lib/cjs/locale/zh-TW.js +1 -1
  15. package/lib/es/facade.js +1 -1
  16. package/lib/es/index.js +1 -1
  17. package/lib/es/locale/ca-ES.js +1 -1
  18. package/lib/es/locale/en-US.js +1 -1
  19. package/lib/es/locale/es-ES.js +1 -1
  20. package/lib/es/locale/fa-IR.js +1 -1
  21. package/lib/es/locale/fr-FR.js +1 -1
  22. package/lib/es/locale/ja-JP.js +1 -1
  23. package/lib/es/locale/ko-KR.js +1 -1
  24. package/lib/es/locale/ru-RU.js +1 -1
  25. package/lib/es/locale/sk-SK.js +1 -1
  26. package/lib/es/locale/vi-VN.js +1 -1
  27. package/lib/es/locale/zh-CN.js +1 -1
  28. package/lib/es/locale/zh-TW.js +1 -1
  29. package/lib/facade.js +1 -1
  30. package/lib/index.js +1 -1
  31. package/lib/locale/ca-ES.js +1 -1
  32. package/lib/locale/en-US.js +1 -1
  33. package/lib/locale/es-ES.js +1 -1
  34. package/lib/locale/fa-IR.js +1 -1
  35. package/lib/locale/fr-FR.js +1 -1
  36. package/lib/locale/ja-JP.js +1 -1
  37. package/lib/locale/ko-KR.js +1 -1
  38. package/lib/locale/ru-RU.js +1 -1
  39. package/lib/locale/sk-SK.js +1 -1
  40. package/lib/locale/vi-VN.js +1 -1
  41. package/lib/locale/zh-CN.js +1 -1
  42. package/lib/locale/zh-TW.js +1 -1
  43. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +1 -0
  44. package/lib/umd/facade.js +1 -1
  45. package/lib/umd/index.js +1 -1
  46. package/lib/umd/locale/ca-ES.js +1 -1
  47. package/lib/umd/locale/en-US.js +1 -1
  48. package/lib/umd/locale/es-ES.js +1 -1
  49. package/lib/umd/locale/fa-IR.js +1 -1
  50. package/lib/umd/locale/fr-FR.js +1 -1
  51. package/lib/umd/locale/ja-JP.js +1 -1
  52. package/lib/umd/locale/ko-KR.js +1 -1
  53. package/lib/umd/locale/ru-RU.js +1 -1
  54. package/lib/umd/locale/sk-SK.js +1 -1
  55. package/lib/umd/locale/vi-VN.js +1 -1
  56. package/lib/umd/locale/zh-CN.js +1 -1
  57. package/lib/umd/locale/zh-TW.js +1 -1
  58. package/package.json +13 -13
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4f27(_0x2e16f6,_0x306e4d){_0x2e16f6=_0x2e16f6-0x1e1;const _0x3d6151=_0x3d61();let _0x4f276f=_0x3d6151[_0x2e16f6];return _0x4f276f;}function _0x3d61(){const _0x2306f1=['&to=','_remoteChangesetQueue','editing\x20status\x20changed\x20to','function','_updateState','[CollaborationUndoRedoService]','BYTES_PER_ELEMENT','_shouldReportTelemetry','/universer-api/comb','SUBMIT_CHANGESET_TIMEOUT','isTransformMutationsWithChangesetSuccess','_decreaseWaiting','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','startTime','stringify','IPermissionService','_updateStatus','Subject','every','_localCacheService','_undoStacks','ReplaySubject','putCollaborators','LocaleService','objects','SOCKET_FAILED_RETRY','_status$','getTypeOfUnitDisposed$','_clearUndo','range','_substituteUndoStack','onRemoteChangeset','saveImage','cipher\x20output\x20not\x20supported','unsubscribe','JOIN_ROOM_FULL','_roomCreated$','_showConflictNotification','OPTIONAL','getFocusedUnit','univer-pro.collaboration-client.single-active-unit-service','isArray','MentionType','call','_getDownloadEndpointURL','splice','BASE64','_onCombEvent','_singleActiveUnitService','_onRemoteRejected','_change$','message$','interceptor','initWorkbookPermissionChange','error','_resendTimer','_waitCount','responseType','ConflictState','_transformRemoteChangesetByIMECache','13076704KVTSiJ','catch','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','SHOULD_CLOSE_CONN','_socketMessageSubscription','min','enableCollaboration','localeService','onMutationExecutedForCollab','EmptyMutationInfo','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','@univerjs-pro/license','_applyRemoteChangeset','JOINING','objectType','subUnitId','requestParams','cfgEnableObjInherit','onTransformSelections','UnitStatus','joinRsp','_handleRemoteChangesets','deserializeToCombResponse','PERMISSION_DENIED','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','unitID','RichTextEditingMutation','copyFileMeta','_members','add','assign','@univerjs/core','getCfgEnableObjInherit','_clearRedo','ERROR_EXCEED_SIZE','onMissingChangesets','_univerInstanceService','_sender','Tools','updateMember','[OfflineState]:\x20received\x20rejection.','addHandlerCallback','getGlobalObject','sid','BehaviorSubject','_collaborationUIEventService','deepClone','_handlerCallback','setWaitCount','_networkConditionService','replace','mapDocumentTypeToUniverInstanceType','_commandService','ICollaborationSocketService','_changesetReqId','amd','location','_listenToNetworkCondition','mergeOverrideWithDependencies','allowed','findIndex','sessionStatus','reject','_entities','status$','aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','getUnitId','_initUnitPermissionChange','telemetry\x20info\x20is\x20not\x20initialized','\x20in\x20_schedule.','/role','&assign=','resolveWithBasePath','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','ERROR_IMAGE_TYPE','CHANGESET_ACK','WorkbookEditablePermission','method','updatePermissionObjEvent','decorate','symbol','@univerjs/drawing','event$','requireSession','_onLocalMutation','_doCreateSocket','href','open$','UniverNetwork','_getUploadFileURL','_startTelemetryCollaborationNewChangeset','getUnitStatus$','JOIN_ROOM_NOT_EXISTS','session.room-cnt-exceeds','_socket$','_startCollaboration','getSheetId','_tryReconnect','@univerjs/telemetry','cmd','session.room-full','encodeURIComponent',',\x20got:\x20','changesets','isView','from','SNAPSHOT_URL_KEY','_onUserJoin','isTransformChangesetsSuccess','_onRemoteACK','src','_replayCachedMutations','_retryConnectingTimer','_sendHeartbeatTimer','compose','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_executeRemoteChangeset','shareReplay','transformMutationsWithChangeset','_acknowledgeAwaiting','reduce','_clearScheduledTask','CollaborationImageIoService','snapshot','fromCollab','append','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_undoRedoService','_telemetryService','_onUserLeave','_isPermissionRej','aes/pkcs7:\x20wrong\x20padding','ITransformService','dispose$','USERS_ENTER','_collaborationSessionService','_localeService','AAD','2130KvcxzE','_instanceService','editingUnit','onStarting','crypto','_toggleOffline','executeCommand','_transformSelections','onRemoteRetry','type','signUrlServerUrl','Injector','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','@univerjs-pro/collaboration','UniverCollaborationClientPlugin','capture','LIVESHARE_OPERATION','unit','incrementRevOfUnit','_type','onTransformIME','_scheduleCollaborationTimeoutTimer','_unlockTransition','CollaborationEvent','output','createInstance','_transformService','originalMeta','MSG_FOR_ERROR','close$','generateRandomId','[OfflineState]:\x20received\x20acknowledgement.','resolve','IContextService','Rectangle','state','packageName','HEARTBEAT_INTERVAL','actions','COMPRESS_MUTATION_APPLY','OFFLINE','toggleOffline','ErrorCode','set','registerHTTPInterceptor','_maxTotalRetryTimeout','csAckEvent','localCacheService','avatar','collabSubmitChangesetUrl','PSEUDO_FETCH_MISSING_RESULT','filter','DEFAULT_FILE_NAME','\x20to\x20','collabWebSocketUrl','getWorkbookSelections','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','readAsDataURL','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','merge','CombCmd','saveChangeset','loadSheet','length=','get','reconnect','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','encrypt','origin','collaMsg','saveSnapshot','fill','CHANGESET_SHOULD_RETRY','onload','getRandomValues','data','synced','collaboration_new_changeset','SheetTransformSelectionsService','_removeRoom','update','[CollaborationEntity]','_syncEditingCollabCursor','UniverInstanceType','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','rev','getImage','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','CmdRspCode','UNIVER_COLLABORATION_CLIENT_PLUGIN','/collaborator','NEW_CHANGESETS','transformUndoRedo','_handler','_awaitingChangeset','toggleOnline','ThresholdInterceptorFactory','@univerjs/sheets','floor','_onOffline','/-/object/-/batch_allowed','_timeoutTimer','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','uniscriptRunEvent','onSendChangeset','listCollaborators','disableLocalCache','create','firstValueFrom','encode','getUnit','_roomMembers','_checkMissing','resend','_permissionService','post','CollaborationController','ONLINE','indexOf','unknown','_transformRemoteChangesetByStateCache','_revisionService','MUTATION','CompressMutationService','_acknowledgedAwaitingRevision','getConfig','onTransformState','baseRev','body','ImageSourceType','HELLO','RETRY_CONNECTING_MAX_COUNT','_changesetSessionId','715352FZJnyC','[PendingState]:\x20received\x20rejection.','?url=','UNIVER_DOC','_onRemoteRetry','addImageSourceCache','_members$','[UniverCollaborationClientPlugin]','_onConnectionOpen','_lockTransition','CollaborationSocketService','SheetCollaborationEntity','0.23.0','csShouldRetryEvent','_snapshotServerService','UniverProCollaboration','CLOSE_ROOM','isTransformMutationsWithChangesetFailure','CommentService','max','IConfigService','snapshotServerUrl','NOT_COLLAB','userID','_telemetryInfo','_createHandler','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','slice','c1Prime','_sessionStatus$','onSyncEditingCollabCursor','byteOffset','RevisionService','SnapshotServerOverHTTPService','defineProperty','SheetsSelectionsService','change$','toString','parseChangesetToProtocol','isSafeInteger','_collaborationPaused','_emitMembers','HEARTBEAT','_clearRetryConnectingTimer','JOIN','_transformUndoredo','_isEchoedAwaitingChangeset','AuthzIoHttpService','listRoles','disposeWithMe','{fileID}','crypto.getRandomValues\x20must\x20be\x20defined','now','RECV','unitInfo$','_getAPIPrefix','1184185BteISE','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','removeMember','getCollabEntity','getUnitOnRev','loadUnitOfRevision','_config','People','_onConnectionFailed','result','fetchMissingChangesets','parseProtocolChangeset','clear','onlyLocal','LOCAL_CACHE_INTERVAL','RETRY_CONNECTING_MAX_COUNT_KEY','IUndoRedoService','pipe','pauseCollaboration','getMember','object','getDeserializedSheetBlock','FETCH_MISS','OfflineState','IAuthzIoService','AwaitingWithPendingState','params','USERS_LEAVE','m2Prime','take','LOCAL_CACHE_INTERVAL_KEY','/object','[CollaborationSessionService]','downloadEndpointUrl','univer-pro.collaboration-client-socket-service','IUniverInstanceService','awaitingChangeset','[CollaborationSessionService]:\x20socket\x20error','_clearTimeoutTimer','readyForCollab','delete','updatePermissionPoint','HEARTBEAT_TIMEOUT','expected\x20Uint8Array','eventID','UniverSheets','connection\x20error','Wrong\x20sbox\x20length','selections','b64DecodeUnicode','onRemoteAck','conflict','refreshPermission','_getSendChangesetTimeout','default','IMentionIOService','focused$','pending','@univerjs/docs','IDLE','equals','revision','send','_resendTimeout','POST','CollaborationSession','ERROR_IMAGE','MentionIoHttpService','_initCloseConn','workbook','startsWith','_pendingMutations','[SyncedState]:\x20received\x20acknowledgement.','setCurrentUser','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','exports','missingChangesets','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','duration','takeUntil','appendMutation','version','code','_collabSessionService','disablePadding','string','number','/universer-api/snapshot','map','getLocalCacheKey','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','buffer','UniverCore','_compressMutationService','_retryCount','SessionStatus','_tryEnsureSocket','hostname','/universer-api/snapshot/','toDisposable','x-univer-host','UserManagerService','378gfbiUv','_userManagerService','_replaceFileID','socket\x20open.','rxjs','_sendingTimer','_createInitialState','_fetchMissChangesets','Uint8Array','UniverDrawing','CollaborativeUndoRedoService','liveShareOperation','init','permissionRejEvent','awaiting','COMPRESS_MUTATION_SEND','setConfig','_transitionLocked','csRejEvent','loginUrlKey','loadUnit','ILocalCacheService','HTTPService','_incrementRevisionNumber','/universer-api/oidc/authpage','UNIVER_SHEET','_getCtorByUniverInstanceType','then','session','values',',\x20got\x20','title','tagLength','onRemoteRej','_schedule','getRoom','onCommentUpdate','emitEvent','UnitEmbedded','getActiveSheet','number\x20expected,\x20got\x20','LIVESHARE_FETCH_OPERATIONS','ILogService','_throwTelemetryCollaborationNewChangeset','getCollabEntity$','collaborators','_httpService','getTypeOfUnitAdded$','_getUndoStack','_unitInfo$','FAIL','decrypt','error$','_init','onTransformRemoteChangesetByStateCache','isInternalEditorID','newCsEvent','_scheduleCompleteTimestamp','byteLength','1142646ULJuST','getCurrentSelections','_updateLocalCache','/universer-api/authz','saveSheetBlock','routeKey','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','pluginName','createCollaborator','_joinRoom','_logService','enableSingleActiveInstanceLock','_registerDependencies','OTHER_CLIENTS_EDITING','entries','_snapshotService','SetSelectionsOperation','subarray','SYNCED','push','ImageUploadStatusType','Quantity','_submitChangeset','close','_eventService','getTime','UPDATE_PERMISSION_OBJ','leaveEvent','concatMap','INGEST','list','loadDoc','/fetchmissing?from=','[DataLoaderService]','joinEvent','confirm','_state$','collaboratorID','has','CollaborationUIEventId','PERMISSION_REJ','_transformStack','UniverProCollaborationClient','_initDependencies','[SyncedState]:\x20received\x20rejection.','deleteCollaborator','auth.needGotoLoginAlert','fromCharCode','closeSession','CONFLICT','DocCollaborationEntity','AWAITING','memberID','getInterceptPoints','_commentUpdate$','_clearCollaborationTimeoutTimer','_imageSourceCache','debug','_configService','[FetchMissState]','createSocket','authzUrl','UniverCollaborationPlugin','UniverDocs','IImageIoService','&source=','Plugin','updateOfflineData','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_rescheduleHeartbeat','_onRecvEvent','_transformIMECache','next','members','onTransformRemoteChangesetByIMECache','mutations','_commentService','/universer-api/uniscript','setShowComponents','UniverProtocol','find','Workbook','_HTTPService','PERSON','_sessions','unitId','fetchMiss','setCfgEnableObjInherit','prototype','objectID','headers','session.room-permission-denied','Module','sessionStatus$','ISnapshotServerService','_getRedoStack','ICommandService','_candidateSocket','UniverTelemetry','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','textEncoder','UniverNetworkPlugin','ws://127.0.0.1:8000/universer-api/comb/connect','DependentOn','_waitForHeartbeatResponse','_socketReady','UUID','MemberService','_collaborationTimeoutTimer','resourceIDs','commentUpdate$','SyncedState','@univerjs/network','_exhaustRemoteChangesetQueue','getSnapshotAPIPath','reqId','_unitID','_entityInit$','_onFetchMissResult','apply','_memberService','SOCKET_FAILED','_createSocket','size','isPermissionRej','_socketService','/-/object/list','LIVESHARE_REQUEST_HOST','c2Prime','getOwnPropertyDescriptor','INetworkConditionService','infoRsp','Univer','_resendWithTimeout','CommandType','socketService','liveShareNewHost','?size=','withCredentials','/resources','_sendHeartbeat','transformStack\x20failed!','_onRemoteChangeset','JOIN_ROOM_FAILED','subject','_createInitialStateImpl','invalid\x20output,\x20must\x20be\x20aligned','getCurrentUser','includes','/block/','override','Inject','positive\x20integer\x20expected,\x20got\x20','_clearLocalCache','offline','save\x20fail\x20reason\x20is\x20','createIdentifier','LIVESHARE_TERMINATE','collaboration-client.config','CollaborationStatus','fetchThroughInterceptors','action','_onMessage','onMissedChangesetFetched','_transformAndApplyRemoteChangeset','_stopTelemetryCollaborationNewChangeset','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','[CollaborationSession]','_injector','UNISCRIPT_RUN','getDrawingImageAllowSize','MergeInterceptorFactory','_clearHeartbeatTimer','_toggleOnline','UPDATE_CURSOR','AwaitingState','iterator','getCurrentRevOfUnit','Optional','SUCCUSS','_substituteRedoStack','dispose','length','_redoStacks','onLocalMutation','Disposable','_cfgEnableObjInherit','commentUpdateEvent','asObservable','registerDependencies','updateSnapshot','_socket','RxDisposable','__Key__','awaiting_with_pending','1518352qWikNq','stopTime','LEAVE','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getLatestCsReqIdBySid','reverse','url','shouldCloseConn','_getAPIPrefixPath','_queuedRemoteChangesets','varSizeNonce','unit-cache-','/allowed','name','getValue','Failed\x20to\x20update\x20permission\x20point','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_onJoinRoomEvent','_state','_sheetTransformSelectionsService','batchAllowed','getMemberID','session.room-not-exists','status','_disableEditing','Error\x20on\x20receiving\x20event','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','/unit/','state$','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','SheetPermissionInitController','getUnitType','complete','forEach','[PendingState]:\x20received\x20acknowledgement.','@univerjs/protocol','_getCurrentRevision','COMMENT_UPDATE','ISingleActiveUnitService','_onConflict','[OfflineState]:\x20received\x20changeset.','1494878FUnIZT','FETCH_MISSING','transformChangesets','DisposableCollection','CollaborationEntity','subscribe','submit\x20changeset\x20error!','enableOfflineEditing','fetch_missing','/universer-api/stream/file/upload','FileSource','_acknowledgeAwaitingIfReady','_event$','CollaborationUIEventService','LIVESHARE_NEW_HOST'];_0x3d61=function(){return _0x2306f1;};return _0x3d61();}(function(_0x4a8ac1,_0x39966c){const _0x5ced57=_0x4f27,_0x54ef60=_0x4a8ac1();while(!![]){try{const _0x52b01c=parseInt(_0x5ced57(0x4ad))/0x1+parseInt(_0x5ced57(0x2f0))/0x2+parseInt(_0x5ced57(0x22c))/0x3+parseInt(_0x5ced57(0x474))/0x4+parseInt(_0x5ced57(0x3ef))/0x5*(-parseInt(_0x5ced57(0x1f1))/0x6)+-parseInt(_0x5ced57(0x31a))/0x7+-parseInt(_0x5ced57(0x365))/0x8;if(_0x52b01c===_0x39966c)break;else _0x54ef60['push'](_0x54ef60['shift']());}catch(_0xda2983){_0x54ef60['push'](_0x54ef60['shift']());}}}(_0x3d61,0x99585),function(_0x3d9db0,_0x4be09d){const _0x4140a1=_0x4f27;typeof exports==_0x4140a1(0x4c1)&&typeof module<'u'?_0x4be09d(exports,require(`@univerjs-pro/collaboration`),require(`@univerjs/core`),require(`@univerjs/docs`),require(`@univerjs/sheets`),require(`rxjs`),require(`@univerjs/protocol`),require(`@univerjs/telemetry`),require(`rxjs/operators`),require(`@univerjs/network`),require(`@univerjs-pro/license`),require(`@univerjs/drawing`)):typeof define=='function'&&define[_0x4140a1(0x39c)]?define([_0x4140a1(0x4f8),_0x4140a1(0x3fc),_0x4140a1(0x384),_0x4140a1(0x4e7),_0x4140a1(0x450),_0x4140a1(0x1f5),_0x4140a1(0x314),_0x4140a1(0x3c7),'rxjs/operators',_0x4140a1(0x29c),_0x4140a1(0x370),_0x4140a1(0x3b6)],_0x4be09d):(_0x3d9db0=typeof globalThis<'u'?globalThis:_0x3d9db0||self,_0x4be09d(_0x3d9db0[_0x4140a1(0x256)]={},_0x3d9db0[_0x4140a1(0x483)],_0x3d9db0[_0x4140a1(0x1e7)],_0x3d9db0[_0x4140a1(0x26b)],_0x3d9db0[_0x4140a1(0x4da)],_0x3d9db0['rxjs'],_0x3d9db0[_0x4140a1(0x27b)],_0x3d9db0[_0x4140a1(0x28e)],_0x3d9db0[_0x4140a1(0x1f5)]['operators'],_0x3d9db0[_0x4140a1(0x3bd)],_0x3d9db0['UniverProLicense'],_0x3d9db0[_0x4140a1(0x1fa)]));}(this,function(_0x44d4a3,_0x2b53f2,_0x2dbbd9,_0x13703b,_0x184bfa,_0x4f3716,_0x240cfb,_0x564f5a,_0x2ab3d8,_0x5f56f9,_0x3b77ee,_0x4e927a){const _0x5bf0eb=_0x4f27;Object[_0x5bf0eb(0x497)](_0x44d4a3,Symbol['toStringTag'],{'value':_0x5bf0eb(0x288)});let _0xcb84c1=_0x5bf0eb(0x292),_0x39fe51=0x4e20;function _0x4050ec(_0x29d059){return JSON['stringify'](_0x29d059)['length'];}function _0xfc8cb8(_0x2130fb){'@babel/helpers - typeof';const _0x1315a0=_0x5bf0eb;return _0xfc8cb8=typeof Symbol=='function'&&typeof Symbol[_0x1315a0(0x2dd)]=='symbol'?function(_0x41a841){return typeof _0x41a841;}:function(_0x2ddd85){const _0x3e21cd=_0x1315a0;return _0x2ddd85&&typeof Symbol==_0x3e21cd(0x32c)&&_0x2ddd85['constructor']===Symbol&&_0x2ddd85!==Symbol[_0x3e21cd(0x284)]?_0x3e21cd(0x3b5):typeof _0x2ddd85;},_0xfc8cb8(_0x2130fb);}function _0x162c6b(_0x4e32ad,_0x53b5ad){const _0x1121b6=_0x5bf0eb;if(_0xfc8cb8(_0x4e32ad)!=_0x1121b6(0x4c1)||!_0x4e32ad)return _0x4e32ad;var _0x345db7=_0x4e32ad[Symbol['toPrimitive']];if(_0x345db7!==void 0x0){var _0x45a015=_0x345db7['call'](_0x4e32ad,_0x53b5ad||_0x1121b6(0x4e3));if(_0xfc8cb8(_0x45a015)!='object')return _0x45a015;throw TypeError(_0x1121b6(0x3fb));}return(_0x53b5ad===_0x1121b6(0x502)?String:Number)(_0x4e32ad);}function _0x38d98e(_0x4f90a6){const _0x148d1c=_0x5bf0eb;var _0x1f0161=_0x162c6b(_0x4f90a6,_0x148d1c(0x502));return _0xfc8cb8(_0x1f0161)=='symbol'?_0x1f0161:_0x1f0161+'';}function _0x527b5d(_0x18c19b,_0x4e5475,_0xcaefb0){const _0x20b4d8=_0x5bf0eb;return(_0x4e5475=_0x38d98e(_0x4e5475))in _0x18c19b?Object[_0x20b4d8(0x497)](_0x18c19b,_0x4e5475,{'value':_0xcaefb0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x18c19b[_0x4e5475]=_0xcaefb0,_0x18c19b;}let _0x3c5b62=function(_0x1ee552){const _0x3068ca=_0x5bf0eb;return _0x1ee552['OTHER_CLIENT_EDITING']='OTHER_CLIENT_EDITING',_0x1ee552[_0x3068ca(0x37c)]=_0x3068ca(0x37c),_0x1ee552[_0x3068ca(0x25d)]='CONFLICT',_0x1ee552[_0x3068ca(0x484)]=_0x3068ca(0x484),_0x1ee552[_0x3068ca(0x2bb)]=_0x3068ca(0x2bb),_0x1ee552[_0x3068ca(0x342)]=_0x3068ca(0x342),_0x1ee552['SOCKET_FAILED']=_0x3068ca(0x2a5),_0x1ee552['SUBMIT_CHANGESET_TIMEOUT']=_0x3068ca(0x332),_0x1ee552;}({});var _0x10b08d=class{constructor(){const _0x31917c=_0x5bf0eb;_0x527b5d(this,'_event$',new _0x4f3716[(_0x31917c(0x33a))]()),_0x527b5d(this,_0x31917c(0x3b7),this[_0x31917c(0x326)]['asObservable']());}[_0x5bf0eb(0x216)](_0x33cd3e){const _0x1586b8=_0x5bf0eb;this[_0x1586b8(0x326)][_0x1586b8(0x274)](_0x33cd3e);}},_0x4f6931=class{constructor(){const _0x1c11ba=_0x5bf0eb;_0x527b5d(this,_0x1c11ba(0x262),new _0x4f3716[(_0x1c11ba(0x33a))]()),_0x527b5d(this,_0x1c11ba(0x29a),this['_commentUpdate$']['asObservable']());}[_0x5bf0eb(0x215)](_0x18922a){const _0xc64554=_0x5bf0eb;this[_0xc64554(0x262)][_0xc64554(0x274)](_0x18922a);}};function _0xe72533(_0x5b1ead,_0x1bae47){return function(_0x4c3a49,_0x5d8d98){_0x1bae47(_0x4c3a49,_0x5d8d98,_0x5b1ead);};}function _0x4e6e0f(_0x5a323e,_0x319813,_0x138aca,_0xef2d75){const _0x19530e=_0x5bf0eb;var _0x538153=arguments[_0x19530e(0x2e3)],_0xfa1d3e=_0x538153<0x3?_0x319813:_0xef2d75===null?_0xef2d75=Object[_0x19530e(0x2ad)](_0x319813,_0x138aca):_0xef2d75,_0x3c8dc2;if(typeof Reflect=='object'&&typeof Reflect[_0x19530e(0x3b4)]==_0x19530e(0x32c))_0xfa1d3e=Reflect[_0x19530e(0x3b4)](_0x5a323e,_0x319813,_0x138aca,_0xef2d75);else{for(var _0x5a60fa=_0x5a323e[_0x19530e(0x2e3)]-0x1;_0x5a60fa>=0x0;_0x5a60fa--)(_0x3c8dc2=_0x5a323e[_0x5a60fa])&&(_0xfa1d3e=(_0x538153<0x3?_0x3c8dc2(_0xfa1d3e):_0x538153>0x3?_0x3c8dc2(_0x319813,_0x138aca,_0xfa1d3e):_0x3c8dc2(_0x319813,_0x138aca))||_0xfa1d3e);}return _0x538153>0x3&&_0xfa1d3e&&Object[_0x19530e(0x497)](_0x319813,_0x138aca,_0xfa1d3e),_0xfa1d3e;}let _0xf86089=class extends _0x2dbbd9[_0x5bf0eb(0x2e6)]{constructor(_0x216414,_0xe00463){const _0x121645=_0x5bf0eb;super(),this[_0x121645(0x389)]=_0x216414,this[_0x121645(0x1f2)]=_0xe00463,_0x527b5d(this,_0x121645(0x45e),new Map()),_0x527b5d(this,_0x121645(0x34d),new _0x4f3716[(_0x121645(0x33a))]()),this[_0x121645(0x4a6)]((0x0,_0x4f3716[_0x121645(0x42a)])(this[_0x121645(0x389)][_0x121645(0x344)](_0x2dbbd9[_0x121645(0x442)][_0x121645(0x20a)])[_0x121645(0x4be)]((0x0,_0x2ab3d8[_0x121645(0x1e3)])(_0x528530=>_0x528530[_0x121645(0x3a7)]())),this['_univerInstanceService'][_0x121645(0x344)](_0x2dbbd9[_0x121645(0x442)][_0x121645(0x477)])['pipe']((0x0,_0x2ab3d8[_0x121645(0x1e3)])(_0x371c14=>_0x371c14[_0x121645(0x3a7)]())))[_0x121645(0x31f)](_0x5eff81=>this['_removeRoom'](_0x5eff81)));}['waitForRoom$'](_0x585d09){const _0xa86fa9=_0x5bf0eb;return this['_roomMembers'][_0xa86fa9(0x252)](_0x585d09)?(0x0,_0x4f3716['of'])(this['_roomMembers']['get'](_0x585d09)):this[_0xa86fa9(0x34d)][_0xa86fa9(0x4be)]((0x0,_0x2ab3d8[_0xa86fa9(0x1e3)])(_0x31a9f3=>{if(_0x31a9f3===_0x585d09)return this['_roomMembers']['get'](_0x31a9f3);}));}[_0x5bf0eb(0x4f6)](_0x5e7ce5){const _0x508755=_0x5bf0eb;this[_0x508755(0x1f2)]['setCurrentUser'](_0x5e7ce5);}[_0x5bf0eb(0x2bf)](){const _0x4967d0=_0x5bf0eb;return this[_0x4967d0(0x1f2)]['getCurrentUser']();}[_0x5bf0eb(0x38c)](_0x5b94bc,_0x9fb53f){const _0x44df45=_0x5bf0eb;let _0x250cd4=this[_0x44df45(0x45e)][_0x44df45(0x42f)](_0x5b94bc);_0x250cd4||(_0x250cd4=new _0x1f1a3a(),this[_0x44df45(0x45e)][_0x44df45(0x41a)](_0x5b94bc,_0x250cd4),this[_0x44df45(0x34d)][_0x44df45(0x274)](_0x5b94bc)),_0x250cd4[_0x44df45(0x38c)](_0x9fb53f);}[_0x5bf0eb(0x4af)](_0x5b96ed,_0x2b3c13){const _0x2e1c56=_0x5bf0eb;let _0x151033=this['_roomMembers'][_0x2e1c56(0x42f)](_0x5b96ed);_0x151033&&_0x151033['removeMember'](_0x2b3c13);}[_0x5bf0eb(0x214)](_0x37241c){const _0x3fe673=_0x5bf0eb;return this[_0x3fe673(0x45e)][_0x3fe673(0x42f)](_0x37241c);}[_0x5bf0eb(0x4c0)](_0x2cb0c9,_0x463ae6){let _0x216d7a=this['_roomMembers']['get'](_0x2cb0c9);if(_0x216d7a)return _0x216d7a['getMember'](_0x463ae6);}[_0x5bf0eb(0x43e)](_0x10a667){const _0x2441c4=_0x5bf0eb;let _0x1a9545=this[_0x2441c4(0x45e)][_0x2441c4(0x42f)](_0x10a667);_0x1a9545&&(_0x1a9545[_0x2441c4(0x2e2)](),this['_roomMembers']['delete'](_0x10a667));}[_0x5bf0eb(0x2e2)](){const _0x1cea25=_0x5bf0eb;this[_0x1cea25(0x45e)][_0x1cea25(0x312)](_0x29a10f=>_0x29a10f[_0x1cea25(0x2e2)]()),this['_roomMembers'][_0x1cea25(0x4b9)](),this[_0x1cea25(0x34d)][_0x1cea25(0x311)]();}};_0xf86089=_0x4e6e0f([_0xe72533(0x0,_0x2dbbd9['IUniverInstanceService']),_0xe72533(0x1,(0x0,_0x2dbbd9['Inject'])(_0x2dbbd9[_0x5bf0eb(0x1f0)]))],_0xf86089);var _0x1f1a3a=class extends _0x2dbbd9[_0x5bf0eb(0x2e6)]{constructor(..._0x25a323){const _0x2e3ae7=_0x5bf0eb;super(..._0x25a323),_0x527b5d(this,_0x2e3ae7(0x381),new Map()),_0x527b5d(this,_0x2e3ae7(0x47a),new _0x4f3716[(_0x2e3ae7(0x391))](this[_0x2e3ae7(0x381)])),_0x527b5d(this,'members$',this[_0x2e3ae7(0x47a)]['asObservable']());}['dispose'](){const _0x290d3c=_0x5bf0eb;this[_0x290d3c(0x381)]['clear'](),this[_0x290d3c(0x47a)][_0x290d3c(0x311)]();}[_0x5bf0eb(0x38c)](_0xf146d7){const _0xbc2e18=_0x5bf0eb;this[_0xbc2e18(0x381)][_0xbc2e18(0x41a)](_0xf146d7[_0xbc2e18(0x260)],_0xf146d7),this[_0xbc2e18(0x49e)]();}['removeMember'](_0xf05f35){const _0x249f54=_0x5bf0eb;this['_members'][_0x249f54(0x4d5)](_0xf05f35),this[_0x249f54(0x49e)]();}[_0x5bf0eb(0x4c0)](_0x298545){const _0x1f134c=_0x5bf0eb;return this['_members'][_0x1f134c(0x42f)](_0x298545);}['getAllMembers'](){const _0x36e0a7=_0x5bf0eb;return Array[_0x36e0a7(0x3ce)](this[_0x36e0a7(0x381)][_0x36e0a7(0x20e)]());}[_0x5bf0eb(0x49e)](){const _0xa4549f=_0x5bf0eb;this[_0xa4549f(0x47a)][_0xa4549f(0x274)](this['_members']);}};let _0x45b19d=function(_0xcc59b1){const _0x3ee5eb=_0x5bf0eb;return _0xcc59b1[_0xcc59b1[_0x3ee5eb(0x4e8)]=0x0]=_0x3ee5eb(0x4e8),_0xcc59b1[_0xcc59b1[_0x3ee5eb(0x372)]=0x1]='JOINING',_0xcc59b1[_0xcc59b1[_0x3ee5eb(0x417)]=0x2]=_0x3ee5eb(0x417),_0xcc59b1[_0xcc59b1[_0x3ee5eb(0x464)]=0x3]=_0x3ee5eb(0x464),_0xcc59b1;}({}),_0x6d4b86={[_0x240cfb[_0x5bf0eb(0x447)][_0x5bf0eb(0x223)]]:'session.join-failed',[_0x240cfb['CmdRspCode'][_0x5bf0eb(0x34c)]]:_0x5bf0eb(0x3c9),[_0x240cfb[_0x5bf0eb(0x447)][_0x5bf0eb(0x3c1)]]:_0x5bf0eb(0x307),[_0x240cfb[_0x5bf0eb(0x447)]['JOIN_ROOM_PERMISSION_DENIED']]:_0x5bf0eb(0x287),[_0x240cfb[_0x5bf0eb(0x447)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x5bf0eb(0x3c2)},_0x2fe3e1=class extends _0x2dbbd9[_0x5bf0eb(0x2ed)]{get[_0x5bf0eb(0x3a2)](){const _0x5931a5=_0x5bf0eb;return this[_0x5931a5(0x492)]['getValue']();}constructor(_0x11f55b,_0xa9459f,_0x7b7e60,_0x342bef,_0x36f00f,_0x18d2f2,_0x4bf71d,_0xcf03cc){const _0xe3b717=_0x5bf0eb;super(),this[_0xe3b717(0x2a0)]=_0x11f55b,this[_0xe3b717(0x236)]=_0x7b7e60,this[_0xe3b717(0x266)]=_0x342bef,this[_0xe3b717(0x2a4)]=_0x36f00f,this[_0xe3b717(0x278)]=_0x18d2f2,this[_0xe3b717(0x392)]=_0x4bf71d,this[_0xe3b717(0x3e5)]=_0xcf03cc,_0x527b5d(this,_0xe3b717(0x492),new _0x4f3716[(_0xe3b717(0x391))](0x0)),_0x527b5d(this,_0xe3b717(0x289),this[_0xe3b717(0x492)][_0xe3b717(0x2e9)]()),_0x527b5d(this,'_event$',new _0x4f3716[(_0xe3b717(0x33a))]()),_0x527b5d(this,_0xe3b717(0x3b7),this[_0xe3b717(0x326)][_0xe3b717(0x2e9)]()),_0x527b5d(this,_0xe3b717(0x2ec),void 0x0),_0x527b5d(this,_0xe3b717(0x369),void 0x0),_0x527b5d(this,_0xe3b717(0x298),void 0x0),_0x527b5d(this,_0xe3b717(0x330),!0x1),_0x527b5d(this,'_telemetryInfo',null),this[_0xe3b717(0x330)]=!!this[_0xe3b717(0x3e5)],_0xa9459f['pipe']((0x0,_0x4f3716[_0xe3b717(0x4fc)])(this[_0xe3b717(0x3ea)]))['subscribe'](_0x3fd341=>{const _0x3eca66=_0xe3b717;if(_0x3fd341!==void 0x0){if(this[_0x3eca66(0x2ec)]=_0x3fd341,_0x3fd341)this[_0x3eca66(0x235)](_0x3fd341),this['_socketMessageSubscription']=_0x3fd341[_0x3eca66(0x35c)][_0x3eca66(0x31f)](_0x2637b3=>{const _0x48d644=_0x3eca66;_0x2637b3[_0x48d644(0x231)]===this[_0x48d644(0x2a0)]&&this['_onCombEvent'](_0x2637b3);});else{var _0x578fa7;this[_0x3eca66(0x21c)](),this[_0x3eca66(0x492)][_0x3eca66(0x274)](0x2),(_0x578fa7=this['_socketMessageSubscription'])==null||_0x578fa7[_0x3eca66(0x34b)](),this[_0x3eca66(0x369)]=null;}}});}['getMemberID'](){const _0x156c2d=_0x5bf0eb;var _0x417a5b,_0x286176;return(_0x417a5b=(_0x286176=this[_0x156c2d(0x2ec)])==null?void 0x0:_0x286176[_0x156c2d(0x260)])==null?null:_0x417a5b;}[_0x5bf0eb(0x2e2)](){const _0x2c4eb5=_0x5bf0eb;super['dispose'](),this[_0x2c4eb5(0x243)](),this[_0x2c4eb5(0x3ea)][_0x2c4eb5(0x274)](),this[_0x2c4eb5(0x3ea)][_0x2c4eb5(0x311)]();}[_0x5bf0eb(0x243)](){const _0x246251=_0x5bf0eb;var _0x8537ad,_0x35cf22;this['_throwTelemetryCollaborationNewChangeset'](),(_0x8537ad=this[_0x246251(0x2ec)])==null||_0x8537ad[_0x246251(0x4eb)]({'cmd':_0x240cfb['CombCmd'][_0x246251(0x2f2)],'data':{'roomID':this['_unitID']}}),(_0x35cf22=this[_0x246251(0x2ec)])==null||_0x35cf22[_0x246251(0x243)](),this['_event$'][_0x246251(0x311)](),this[_0x246251(0x492)][_0x246251(0x311)]();}[_0x5bf0eb(0x358)](_0x184466){const _0x5754aa=_0x5bf0eb;_0x184466[_0x5754aa(0x3c8)]===_0x240cfb['CombCmd'][_0x5754aa(0x4a1)]?this[_0x5754aa(0x302)](_0x184466):_0x184466['cmd']===_0x240cfb[_0x5754aa(0x42b)]['RECV']&&this[_0x5754aa(0x272)](_0x184466);}['_joinRoom'](_0x2b8eaf){const _0x2f22a9=_0x5bf0eb;this[_0x2f22a9(0x492)]['next'](0x1),_0x2b8eaf[_0x2f22a9(0x4eb)]({'cmd':_0x240cfb[_0x2f22a9(0x42b)]['JOIN'],'routeKey':this[_0x2f22a9(0x2a0)],'routeType':'','data':{'rooms':[{'roomID':this[_0x2f22a9(0x2a0)]}]}});}[_0x5bf0eb(0x302)](_0x5c0764){const _0x50da25=_0x5bf0eb;var _0x59c848;if(_0x5c0764[_0x50da25(0x4ff)]in _0x6d4b86){this[_0x50da25(0x392)]['emitEvent']({'id':'JOIN_ROOM_FAILED','data':_0x6d4b86[_0x5c0764[_0x50da25(0x4ff)]]}),this[_0x50da25(0x492)][_0x50da25(0x274)](0x2);return;}this[_0x50da25(0x492)][_0x50da25(0x274)](0x3);let _0x31ade4=(_0x59c848=_0x5c0764[_0x50da25(0x43a)]['roomInfos'][this[_0x50da25(0x2a0)]])==null?void 0x0:_0x59c848[_0x50da25(0x275)];_0x31ade4&&_0x31ade4['forEach'](_0x12a783=>this['_memberService']['updateMember'](this[_0x50da25(0x2a0)],_0x12a783));}[_0x5bf0eb(0x272)](_0x507ee6){const _0x2c4725=_0x5bf0eb;try{let _0x11077a=_0x507ee6[_0x2c4725(0x43a)];switch(_0x11077a[_0x2c4725(0x4d9)]){case _0x2b53f2[_0x2c4725(0x406)][_0x2c4725(0x3eb)]:this[_0x2c4725(0x3d0)](_0x11077a),this['_event$'][_0x2c4725(0x274)](_0x11077a);break;case _0x2b53f2['CollaborationEvent'][_0x2c4725(0x4c8)]:this[_0x2c4725(0x3e6)](_0x11077a),this[_0x2c4725(0x326)]['next'](_0x11077a);break;case _0x2b53f2[_0x2c4725(0x406)][_0x2c4725(0x3b0)]:case _0x2b53f2[_0x2c4725(0x406)][_0x2c4725(0x437)]:this[_0x2c4725(0x2d1)](),this[_0x2c4725(0x263)](),this['_event$'][_0x2c4725(0x274)](_0x11077a);break;case _0x2b53f2['CollaborationEvent'][_0x2c4725(0x40b)]:this[_0x2c4725(0x236)][_0x2c4725(0x35f)](_0x2c4725(0x2c7)+JSON['stringify'](_0x11077a)),this[_0x2c4725(0x326)]['next'](_0x11077a);break;case _0x2b53f2['CollaborationEvent']['COMMENT_UPDATE']:this[_0x2c4725(0x278)][_0x2c4725(0x215)](_0x11077a['data']),this['_event$'][_0x2c4725(0x274)](_0x11077a);break;default:this['_event$']['next'](_0x11077a);}}catch(_0x52ffc9){this[_0x2c4725(0x236)][_0x2c4725(0x35f)](_0x52ffc9,_0x507ee6);}}['_onUserJoin'](_0x389fea){const _0x50ca90=_0x5bf0eb;this[_0x50ca90(0x2a4)]['updateMember'](this[_0x50ca90(0x2a0)],_0x389fea[_0x50ca90(0x43a)]);}[_0x5bf0eb(0x3e6)](_0x38c33c){const _0x34bbb3=_0x5bf0eb;this[_0x34bbb3(0x2a4)]['removeMember'](this[_0x34bbb3(0x2a0)],_0x38c33c[_0x34bbb3(0x43a)][_0x34bbb3(0x260)]);}async['send'](_0x2dc9bf,_0x2eec20){const _0x349b0b=_0x5bf0eb;if(this[_0x349b0b(0x3a2)]!==0x3||!this[_0x349b0b(0x2ec)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x2dc9bf[_0x349b0b(0x4d9)]===_0x2b53f2[_0x349b0b(0x406)]['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x349b0b(0x3bf)](_0x2dc9bf)),this['_socket']['send']({'cmd':_0x240cfb[_0x349b0b(0x42b)][_0x349b0b(0x249)],'routeKey':_0x2eec20,'routeType':'','data':_0x2dc9bf});}catch(_0x2bec92){this[_0x349b0b(0x236)][_0x349b0b(0x35f)](_0x2bec92);}}[_0x5bf0eb(0x404)](){const _0x52bef3=_0x5bf0eb;var _0x5d2d42;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x101e9f=_0x4f27;this[_0x101e9f(0x298)]=null,this[_0x101e9f(0x392)][_0x101e9f(0x216)]({'id':_0x101e9f(0x332)});},(_0x5d2d42=this[_0x52bef3(0x266)][_0x52bef3(0x46c)]('HEARTBEAT_TIMEOUT'))==null?_0x39fe51:_0x5d2d42);}[_0x5bf0eb(0x263)](){const _0xc01f9c=_0x5bf0eb;this[_0xc01f9c(0x298)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0xc01f9c(0x298)]=null);}[_0x5bf0eb(0x3bf)](_0x29adaa){const _0x26f6d6=_0x5bf0eb;if(!this[_0x26f6d6(0x330)])return;let {data:_0x277a88}=_0x29adaa,{unitID:_0x1f37d4,changeset:_0x433e0e}=_0x277a88,{mutations:_0x4aaab6,type:_0x522b3b}=_0x433e0e;this['_telemetryInfo']={'unitId':_0x1f37d4,'type':_0x522b3b,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x4050ec(_0x4aaab6)};}[_0x5bf0eb(0x2d1)](){const _0x1dd0f7=_0x5bf0eb;if(this[_0x1dd0f7(0x330)]){if(!this[_0x1dd0f7(0x48c)]){this[_0x1dd0f7(0x236)]['error']('[CollaborationSession]',_0x1dd0f7(0x3a9));return;}this['_telemetryInfo'][_0x1dd0f7(0x2f1)]=performance[_0x1dd0f7(0x4a9)](),this[_0x1dd0f7(0x48c)][_0x1dd0f7(0x4fb)]=this['_telemetryInfo'][_0x1dd0f7(0x2f1)]-this[_0x1dd0f7(0x48c)][_0x1dd0f7(0x336)],this['_telemetryService'][_0x1dd0f7(0x3fe)](_0x1dd0f7(0x43c),this[_0x1dd0f7(0x48c)]),this[_0x1dd0f7(0x48c)]=null;}}[_0x5bf0eb(0x21c)](){this['_telemetryInfo']=null;}};_0x2fe3e1=_0x4e6e0f([_0xe72533(0x2,_0x2dbbd9[_0x5bf0eb(0x21b)]),_0xe72533(0x3,_0x2dbbd9[_0x5bf0eb(0x488)]),_0xe72533(0x4,(0x0,_0x2dbbd9['Inject'])(_0xf86089)),_0xe72533(0x5,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x4f6931)),_0xe72533(0x6,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x10b08d)),_0xe72533(0x7,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x564f5a['ITelemetryService']))],_0x2fe3e1);let _0x36e220=(0x0,_0x2dbbd9['createIdentifier'])('collaboration-client.local-cache-service');function _0x41fc85(_0x4d2b68){const _0x1b4298=_0x5bf0eb;return _0x1b4298(0x2fb)+_0x4d2b68;}function _0x3aa1a3(_0xe88341){const _0x5c556e=_0x5bf0eb;let {unitID:_0x3e8d4f,mutations:_0x2ae15c}=_0xe88341;return{'unitId':_0x3e8d4f,'subUnitId':_0x2ae15c[_0x5c556e(0x2e3)]>0x0?_0x2ae15c[0x0]['params'][_0x5c556e(0x374)]:null};}let _0x53e950=class{constructor(_0x5ec547,_0x8b0ec8,_0x32c214){const _0x46f684=_0x5bf0eb;this[_0x46f684(0x2d5)]=_0x5ec547,this[_0x46f684(0x409)]=_0x8b0ec8,this[_0x46f684(0x3f0)]=_0x32c214;}['transformSelections'](_0x10fa0a){const _0x1c0356=_0x5bf0eb;var _0x594bff,_0x212663;let _0x58416c=this[_0x1c0356(0x2d5)][_0x1c0356(0x42f)](_0x184bfa[_0x1c0356(0x498)]),{unitId:_0x5486bc,subUnitId:_0x54a04a}=_0x3aa1a3(_0x10fa0a),_0x4bb167=_0x58416c==null?void 0x0:_0x58416c[_0x1c0356(0x426)](_0x5486bc)[_0x1c0356(0x22d)](),_0x4437dc=(_0x594bff=this[_0x1c0356(0x3f0)][_0x1c0356(0x45d)](_0x5486bc))==null||(_0x594bff=_0x594bff[_0x1c0356(0x218)]())==null?void 0x0:_0x594bff[_0x1c0356(0x3c5)]();if(_0x4bb167['length']===0x0||!_0x5486bc||!_0x54a04a)return;let _0x5fa596=[{'id':_0x184bfa[_0x1c0356(0x23c)]['id'],'params':{'unitId':_0x5486bc,'subUnitId':_0x4437dc,'selections':_0x2dbbd9[_0x1c0356(0x38b)][_0x1c0356(0x393)](_0x4bb167)}}],_0x3bf10f=this['_transformService'][_0x1c0356(0x3db)](_0x10fa0a,_0x5fa596);if(!(0x0,_0x2b53f2['isTransformMutationsWithChangesetSuccess'])(_0x3bf10f))throw _0x3bf10f[_0x1c0356(0x35f)];let _0x100683=(_0x212663=_0x3bf10f[_0x1c0356(0x4c9)][0x0])==null||(_0x212663=_0x212663[_0x1c0356(0x4c7)])==null?void 0x0:_0x212663[_0x1c0356(0x4dd)];if(Array[_0x1c0356(0x352)](_0x100683)&&_0x100683[_0x1c0356(0x2e3)]){if(_0x100683['length']===_0x5fa596[0x0][_0x1c0356(0x4c7)]['selections']['length']&&_0x100683[_0x1c0356(0x33b)]((_0xb29e1,_0x142396)=>_0x2dbbd9[_0x1c0356(0x411)][_0x1c0356(0x4e9)](_0xb29e1[_0x1c0356(0x346)],_0x5fa596[0x0][_0x1c0356(0x4c7)][_0x1c0356(0x4dd)][_0x142396][_0x1c0356(0x346)])))return;this['_injector'][_0x1c0356(0x42f)](_0x2dbbd9[_0x1c0356(0x28c)])[_0x1c0356(0x3f5)](_0x184bfa[_0x1c0356(0x23c)]['id'],{'unitId':_0x5486bc,'subUnitId':_0x4437dc,'selections':_0x100683});}}};_0x53e950=_0x4e6e0f([_0xe72533(0x0,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x3fa)])),_0xe72533(0x1,_0x2b53f2['ITransformService']),_0xe72533(0x2,_0x2dbbd9['IUniverInstanceService'])],_0x53e950);let _0x268fcd=(0x0,_0x2dbbd9[_0x5bf0eb(0x2c8)])(_0x5bf0eb(0x351)),_0x26ce4c=function(_0x4bf5ba){const _0x214c43=_0x5bf0eb;return _0x4bf5ba[_0x4bf5ba['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x4bf5ba[_0x4bf5ba[_0x214c43(0x239)]=0x1]=_0x214c43(0x239),_0x4bf5ba;}({}),_0x2a84dd=_0x5bf0eb(0x2ca);Symbol(_0x2a84dd);let _0x3b8dd5={};function _0x4a422f(_0x4445ac){const _0x390d88=_0x5bf0eb;var _0x147600;return!!((_0x147600=_0x4445ac[_0x390d88(0x4c7)])!=null&&_0x147600['__splitChunk__']);}let _0x2e926e=new Set([_0x184bfa['InsertSheetMutation']['id']]);function _0x1f473b(_0x1e4571,_0x323d1b,_0x3b6b46,_0x52313,_0x582075){const _0x18bd32=_0x5bf0eb;var _0x1b6aab,_0x233f67,_0x4af70a,_0x3eea2c;let _0x58a855=[];for(let _0x59133c of _0x1e4571){if(_0x2e926e[_0x18bd32(0x252)](_0x59133c['id'])){if(_0x58a855[_0x18bd32(0x2e3)]>0x0)break;_0x58a855[_0x18bd32(0x23f)](_0x59133c);break;}if(_0x4a422f(_0x59133c)){if(_0x58a855['length']>0x0)break;_0x58a855[_0x18bd32(0x23f)](_0x59133c);break;}_0x58a855[_0x18bd32(0x23f)](_0x59133c);}let _0x15a150=(_0x1b6aab=(_0x233f67=_0x582075['getCurrentUser']())==null?void 0x0:_0x233f67[_0x18bd32(0x48b)])==null?_0x18bd32(0x466):_0x1b6aab,_0x4431a1=(_0x4af70a=(_0x3eea2c=_0x582075[_0x18bd32(0x2bf)]())==null?void 0x0:_0x3eea2c['memberID'])==null?_0x18bd32(0x466):_0x4af70a;return{'changeset':{'unitID':_0x323d1b,'type':(0x0,_0x2b53f2[_0x18bd32(0x398)])(_0x3b6b46[_0x18bd32(0x310)](_0x323d1b)),'baseRev':_0x52313[_0x18bd32(0x2de)](_0x323d1b),'revision':0x0,'userID':_0x15a150,'memberID':_0x4431a1,'mutations':_0x58a855},'pendingMutations':_0x1e4571[_0x18bd32(0x490)](_0x58a855['length'])};}function _0x11ffe5(_0x703780,_0x1b18fb,_0x48a55e,_0x5da3c5,_0x4f0efa){const _0x29d202=_0x5bf0eb;var _0x137bb5,_0x306313,_0x4ba8aa,_0x21d5cc;let _0x794028=[_0x703780[_0x29d202(0x3dd)]((_0x4d9742,_0xc6d097)=>{const _0x515aab=_0x29d202;var _0x3ce79f;let {id:_0x938f85}=_0x4d9742,{id:_0x5341ad,type:_0x39081e}=_0xc6d097,_0x236cee=(_0x3ce79f=_0x4d9742[_0x515aab(0x4c7)])==null?{'actions':null}:_0x3ce79f,_0x2cf092=_0xc6d097[_0x515aab(0x4c7)];if(_0x938f85&&_0x938f85!==_0x5341ad)throw Error(_0x515aab(0x301)+_0x938f85+'\x20-\x20'+_0x5341ad+'.');return{..._0x4d9742,'id':_0x5341ad,'type':_0x39081e,'params':{'unitId':_0x2cf092[_0x515aab(0x281)],'textRanges':_0x2cf092['textRanges'],'actions':_0x2dbbd9['JSONX'][_0x515aab(0x3d7)](_0x236cee['actions'],_0x2cf092[_0x515aab(0x415)])}};},{})],_0x55b906=(_0x137bb5=(_0x306313=_0x4f0efa[_0x29d202(0x2bf)]())==null?void 0x0:_0x306313[_0x29d202(0x48b)])==null?_0x29d202(0x466):_0x137bb5,_0x358615=(_0x4ba8aa=(_0x21d5cc=_0x4f0efa[_0x29d202(0x2bf)]())==null?void 0x0:_0x21d5cc[_0x29d202(0x260)])==null?_0x29d202(0x466):_0x4ba8aa;return{'changeset':{'unitID':_0x1b18fb,'type':(0x0,_0x2b53f2['mapDocumentTypeToUniverInstanceType'])(_0x48a55e[_0x29d202(0x310)](_0x1b18fb)),'baseRev':_0x5da3c5[_0x29d202(0x2de)](_0x1b18fb),'revision':0x0,'userID':_0x55b906,'memberID':_0x358615,'mutations':_0x794028},'pendingMutations':[]};}function _0x328c98(_0x2198a5,_0x142c6c){const _0x407b94=_0x5bf0eb;let _0x133d69=new _0x4f3716[(_0x407b94(0x33e))](0x1);return setTimeout(()=>_0x133d69[_0x407b94(0x274)](_0x142c6c),_0x2198a5),_0x133d69[_0x407b94(0x2e9)]()['pipe']((0x0,_0x4f3716[_0x407b94(0x4ca)])(0x1));}var _0x1b0a99,_0x379970,_0x23a599;let _0x41a59c=function(_0x4cc6e7){const _0xd68850=_0x5bf0eb;return _0x4cc6e7[_0xd68850(0x48a)]='not_collab',_0x4cc6e7[_0xd68850(0x23e)]=_0xd68850(0x43b),_0x4cc6e7['PENDING']=_0xd68850(0x4e6),_0x4cc6e7[_0xd68850(0x25f)]=_0xd68850(0x1ff),_0x4cc6e7['AWAITING_WITH_PENDING']='awaiting_with_pending',_0x4cc6e7[_0xd68850(0x4c3)]=_0xd68850(0x322),_0x4cc6e7[_0xd68850(0x25d)]=_0xd68850(0x4e0),_0x4cc6e7['OFFLINE']=_0xd68850(0x2c6),_0x4cc6e7;}({}),_0x29e294=0x4e20,_0xe13796=0x2bf20;var _0x48f410=class{constructor(_0x13c4c6,_0x58520f,_0x370c2a,_0x5043a6,_0x515458,_0x390816,_0x269030,_0x2bee60,_0x3611ab){const _0x1bb001=_0x5bf0eb;this['unitID']=_0x13c4c6,this[_0x1bb001(0x3f8)]=_0x58520f,this[_0x1bb001(0x44c)]=_0x515458,this[_0x1bb001(0x399)]=_0x390816,this[_0x1bb001(0x3e4)]=_0x269030,this[_0x1bb001(0x468)]=_0x2bee60,this[_0x1bb001(0x33c)]=_0x3611ab,_0x527b5d(this,_0x1bb001(0x44d),null),_0x527b5d(this,_0x1bb001(0x4f4),[]),this[_0x1bb001(0x44d)]=_0x370c2a,this[_0x1bb001(0x4f4)]=_0x5043a6;}['_checkMissing'](_0x55fcbd){const _0x100019=_0x5bf0eb;let _0x39f362=this[_0x100019(0x468)][_0x100019(0x2de)](this[_0x100019(0x37e)]);return _0x55fcbd['revision']>_0x39f362+0x1?(this[_0x100019(0x44c)][_0x100019(0x388)]({'from':_0x39f362,'to':_0x55fcbd[_0x100019(0x4ea)]-0x1}),!0x0):!0x1;}[_0x5bf0eb(0x4a2)](_0x1efb32){const _0x449ac4=_0x5bf0eb;this[_0x449ac4(0x3e4)][_0x449ac4(0x44b)](this[_0x449ac4(0x37e)],_0x1efb32);}[_0x5bf0eb(0x3f6)](_0x5c42cc){const _0x1dd361=_0x5bf0eb;var _0x103ebc,_0x313144;(_0x103ebc=(_0x313144=this[_0x1dd361(0x44c)])['onTransformSelections'])==null||_0x103ebc['call'](_0x313144,_0x5c42cc);}[_0x5bf0eb(0x273)](_0x3de3dd){const _0x159955=_0x5bf0eb;var _0x5f1a0e,_0x418354;return(_0x5f1a0e=(_0x418354=this[_0x159955(0x44c)])[_0x159955(0x403)])==null?void 0x0:_0x5f1a0e[_0x159955(0x354)](_0x418354,_0x3de3dd);}['_transformStateCache'](_0x2a27f8){const _0x8403d5=_0x5bf0eb;var _0x26f72f,_0x5bcef0;return(_0x26f72f=(_0x5bcef0=this[_0x8403d5(0x44c)])[_0x8403d5(0x46d)])==null?void 0x0:_0x26f72f[_0x8403d5(0x354)](_0x5bcef0,_0x2a27f8);}[_0x5bf0eb(0x364)](_0x443c51){const _0x19f2d2=_0x5bf0eb;var _0xf5eca0,_0xbc319,_0x12b519;return(_0xf5eca0=(_0xbc319=(_0x12b519=this['_handler'])[_0x19f2d2(0x276)])==null?void 0x0:_0xbc319['call'](_0x12b519,_0x443c51))==null?_0x443c51:_0xf5eca0;}[_0x5bf0eb(0x467)](_0x5bca5e){const _0x17a2f6=_0x5bf0eb;var _0x4ff7d6,_0x37a702,_0x3f8d35;return(_0x4ff7d6=(_0x37a702=(_0x3f8d35=this[_0x17a2f6(0x44c)])[_0x17a2f6(0x227)])==null?void 0x0:_0x37a702[_0x17a2f6(0x354)](_0x3f8d35,_0x5bca5e))==null?_0x5bca5e:_0x4ff7d6;}[_0x5bf0eb(0x441)](_0x5c72b9){const _0x4b8917=_0x5bf0eb;if(this['type']===_0x2dbbd9['UniverInstanceType'][_0x4b8917(0x477)]){let {unitID:_0x1716aa,mutations:_0x5aee5c,memberID:_0x52c5a9}=_0x5c72b9,_0x52b9bc=_0x5aee5c[_0x4b8917(0x2e3)]>0x0?_0x5aee5c[0x0][_0x4b8917(0x4c7)]['textRanges']:[];if(Array[_0x4b8917(0x352)](_0x52b9bc)&&_0x52b9bc[_0x4b8917(0x2e3)]>0x0){var _0x54670a,_0x455fd5;(_0x54670a=(_0x455fd5=this[_0x4b8917(0x44c)])[_0x4b8917(0x493)])==null||_0x54670a[_0x4b8917(0x354)](_0x455fd5,{'unitID':_0x1716aa,'memberID':_0x52c5a9,'textRanges':_0x52b9bc});}}}['_updateLocalCache'](){const _0x497b8e=_0x5bf0eb;var _0x1449ff;(_0x1449ff=this[_0x497b8e(0x33c)])==null||_0x1449ff[_0x497b8e(0x26f)](this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x497b8e(0x4f4)]);}[_0x5bf0eb(0x315)](){const _0x2a5dc4=_0x5bf0eb;return this['_revisionService'][_0x2a5dc4(0x2de)](this['unitID']);}[_0x5bf0eb(0x208)](){const _0x2d1686=_0x5bf0eb;this[_0x2d1686(0x468)][_0x2d1686(0x401)](this[_0x2d1686(0x37e)]);}[_0x5bf0eb(0x3d9)](_0x3af240){const _0x362785=_0x5bf0eb;let _0x49f278=this[_0x362785(0x364)](_0x3af240);_0x49f278=this[_0x362785(0x467)](_0x49f278);let _0x22f99c=(0x0,_0x2dbbd9['sequenceExecute'])(_0x49f278[_0x362785(0x277)],this[_0x362785(0x399)],{'fromCollab':!0x0});if(!_0x22f99c[_0x362785(0x4b6)]){var _0x50413e;throw _0x22f99c[_0x362785(0x35f)]instanceof Error?_0x22f99c[_0x362785(0x35f)]:Error((_0x50413e=_0x22f99c[_0x362785(0x35f)])==null?'[CollaborationState]:\x20apply\x20error!':_0x50413e);}this[_0x362785(0x273)](_0x49f278),this['_transformStateCache'](_0x49f278),this[_0x362785(0x4a2)](_0x3af240),this['_transformSelections'](_0x49f278),this['_syncEditingCollabCursor'](_0x49f278),this[_0x362785(0x208)]();}};let _0x28d539=class extends _0x48f410{constructor(_0x181d1c,_0x2a4632,_0xecef6b,_0x2659d1,_0x57179b,_0x79141f,_0x314d51,_0x2b248f,_0x3d4659,_0x502622){const _0x3db587=_0x5bf0eb;super(_0x181d1c,_0x2a4632,null,[],_0xecef6b,_0x314d51,_0x79141f,_0x2659d1,_0x502622),this[_0x3db587(0x2d5)]=_0x57179b,this[_0x3db587(0x236)]=_0x2b248f,this['_transformService']=_0x3d4659,this[_0x3db587(0x41e)]=_0x502622,_0x527b5d(this,_0x3db587(0x308),_0x3db587(0x43b));}[_0x5bf0eb(0x4fd)](_0x45d526){const _0x36e73c=_0x5bf0eb;let _0x10c6e1=this[_0x36e73c(0x2d5)][_0x36e73c(0x408)](_0x17b236,this[_0x36e73c(0x37e)],this['type'],[_0x45d526],this[_0x36e73c(0x44c)]);return _0x10c6e1[_0x36e73c(0x213)](),_0x10c6e1[_0x36e73c(0x22e)](),_0x10c6e1;}[_0x5bf0eb(0x348)](_0x4a9897){const _0x48028c=_0x5bf0eb;if(this['_checkMissing'](_0x4a9897))return this['_injector'][_0x48028c(0x408)](_0x49dbd8,this[_0x48028c(0x37e)],this['type'],null,[],null,[_0x4a9897],this[_0x48028c(0x44c)]);try{let _0x4dbade=this[_0x48028c(0x409)][_0x48028c(0x3db)](_0x4a9897,[_0x2b53f2[_0x48028c(0x36e)]]);if((0x0,_0x2b53f2[_0x48028c(0x333)])(_0x4dbade)){let {c1Prime:_0x5c4ebc}=_0x4dbade;return this[_0x48028c(0x3d9)](_0x5c4ebc),this;}throw _0x4dbade[_0x48028c(0x35f)];}catch(_0x1c81de){return this[_0x48028c(0x236)][_0x48028c(0x35f)](_0x1c81de),this[_0x48028c(0x318)](!0x1);}}[_0x5bf0eb(0x318)](_0x35c445){const _0x5e28c6=_0x5bf0eb;return this[_0x5e28c6(0x2d5)][_0x5e28c6(0x408)](_0x4446c9,this[_0x5e28c6(0x37e)],this[_0x5e28c6(0x3f8)],null,[],this['_handler'],_0x35c445);}[_0x5bf0eb(0x4df)](_0x368577){const _0x44fb71=_0x5bf0eb;if(_0x368577['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x44fb71(0x4f5));}[_0x5bf0eb(0x212)](){const _0x5c4ac6=_0x5bf0eb;throw Error(_0x5c4ac6(0x258));}[_0x5bf0eb(0x3f7)](){return this;}[_0x5bf0eb(0x418)](){const _0xe489b=_0x5bf0eb;return this[_0xe489b(0x2d5)][_0xe489b(0x408)](_0x5a87ab,this['unitID'],this[_0xe489b(0x3f8)],null,[],this['_handler']);}[_0x5bf0eb(0x44e)](){return this;}['resend'](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x28a13e=_0x5bf0eb;let _0x40861c=this[_0x28a13e(0x468)][_0x28a13e(0x2de)](this[_0x28a13e(0x37e)]);return this[_0x28a13e(0x44c)][_0x28a13e(0x388)]({'from':_0x40861c,'to':0x0}),this[_0x28a13e(0x2d5)][_0x28a13e(0x408)](_0x49dbd8,this[_0x28a13e(0x37e)],this[_0x28a13e(0x3f8)],null,[],null,[],this['_handler']);}};_0x28d539=_0x4e6e0f([_0xe72533(0x3,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2b53f2[_0x5bf0eb(0x495)])),_0xe72533(0x4,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x3fa)])),_0xe72533(0x5,_0x2dbbd9[_0x5bf0eb(0x4bd)]),_0xe72533(0x6,_0x2dbbd9[_0x5bf0eb(0x28c)]),_0xe72533(0x7,_0x2dbbd9[_0x5bf0eb(0x21b)]),_0xe72533(0x8,_0x2b53f2[_0x5bf0eb(0x3e9)]),_0xe72533(0x9,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x36e220))],_0x28d539);let _0x17b236=_0x1b0a99=class extends _0x48f410{constructor(_0x3fc831,_0x49fd50,_0x23a4d,_0x1587e8,_0x4f9660,_0x4d5bcf,_0x3e4003,_0x1da2e5,_0x4422c0,_0x2aa7a,_0x30f6ab,_0x3788d5,_0x437847,_0x12188d){const _0x58311c=_0x5bf0eb;super(_0x3fc831,_0x49fd50,null,_0x23a4d,_0x1587e8,_0x4422c0,_0x437847,_0x4d5bcf,_0x12188d),this['_injector']=_0x4f9660,this['_memberService']=_0x3e4003,this[_0x58311c(0x236)]=_0x1da2e5,this[_0x58311c(0x266)]=_0x2aa7a,this['_transformService']=_0x30f6ab,this[_0x58311c(0x389)]=_0x3788d5,_0x527b5d(this,'status','pending'),_0x527b5d(this,_0x58311c(0x22a),null),_0x527b5d(this,_0x58311c(0x1f6),null);}[_0x5bf0eb(0x4fd)](_0x347118){const _0x2e2cb5=_0x5bf0eb;return this['_pendingMutations'][_0x2e2cb5(0x23f)](_0x347118),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x2e02c7){const _0x1bf69f=_0x5bf0eb;if(this['_checkMissing'](_0x2e02c7))return this['_clearScheduledTask'](),this[_0x1bf69f(0x2d5)][_0x1bf69f(0x408)](_0x49dbd8,this[_0x1bf69f(0x37e)],this[_0x1bf69f(0x3f8)],null,this[_0x1bf69f(0x4f4)],null,[_0x2e02c7],this[_0x1bf69f(0x44c)]);try{let _0x2fac84=this[_0x1bf69f(0x409)][_0x1bf69f(0x3db)](_0x2e02c7,this[_0x1bf69f(0x4f4)]);if((0x0,_0x2b53f2[_0x1bf69f(0x333)])(_0x2fac84)){let {c1Prime:_0x2b5d1d,m2Prime:_0x51da58}=_0x2fac84;this['_executeRemoteChangeset'](_0x2b5d1d);let _0x5cbca9=this[_0x1bf69f(0x2d5)][_0x1bf69f(0x408)](_0x1b0a99,this['unitID'],this[_0x1bf69f(0x3f8)],_0x51da58,this[_0x1bf69f(0x44c)]);this['_clearScheduledTask']();let _0x36cf5f=new Date()[_0x1bf69f(0x245)](),_0x19a73a=this[_0x1bf69f(0x22a)]?Math[_0x1bf69f(0x487)](this['_scheduleCompleteTimestamp']-_0x36cf5f,0x0):this[_0x1bf69f(0x4e2)]();return _0x5cbca9[_0x1bf69f(0x213)](_0x19a73a),_0x5cbca9;}throw _0x2fac84['error'];}catch(_0x3dcb1){return this[_0x1bf69f(0x236)]['error'](_0x3dcb1),this[_0x1bf69f(0x318)](!0x1);}}[_0x5bf0eb(0x4df)](_0x3c8280){const _0x34685e=_0x5bf0eb;if(_0x3c8280[_0x34685e(0x4ea)]<=this['_getCurrentRevision']())return this;throw Error(_0x34685e(0x313));}[_0x5bf0eb(0x212)](){const _0x5f09c4=_0x5bf0eb;throw Error(_0x5f09c4(0x475));}['onRemoteRetry'](){return this;}[_0x5bf0eb(0x418)](){const _0x1747f2=_0x5bf0eb;return this['_clearScheduledTask'](),this[_0x1747f2(0x2d5)][_0x1747f2(0x408)](_0x5a87ab,this['unitID'],this[_0x1747f2(0x3f8)],null,this[_0x1747f2(0x4f4)],this['_handler']);}[_0x5bf0eb(0x44e)](){return this;}[_0x5bf0eb(0x213)](_0x18898d){const _0x2a8806=_0x5bf0eb;let _0x54060c=_0x18898d==null?this['_getSendChangesetTimeout']():_0x18898d;this[_0x2a8806(0x22a)]=new Date()[_0x2a8806(0x245)]()+_0x54060c,this['_sendingTimer']=setTimeout(()=>{const _0x4bd947=_0x2a8806;this[_0x4bd947(0x3de)]();let _0x47524f=null;switch(this[_0x4bd947(0x3f8)]){case _0x2dbbd9[_0x4bd947(0x442)][_0x4bd947(0x20a)]:_0x47524f=_0x1f473b(this[_0x4bd947(0x4f4)],this['unitID'],this[_0x4bd947(0x389)],this[_0x4bd947(0x468)],this[_0x4bd947(0x2a4)]);break;case _0x2dbbd9[_0x4bd947(0x442)]['UNIVER_DOC']:_0x47524f=this['_pendingMutations'][_0x4bd947(0x33b)](_0x55bd9f=>_0x55bd9f['id']===_0x13703b['RichTextEditingMutation']['id'])?_0x11ffe5(this[_0x4bd947(0x4f4)],this[_0x4bd947(0x37e)],this['_univerInstanceService'],this['_revisionService'],this['_memberService']):_0x1f473b(this[_0x4bd947(0x4f4)],this[_0x4bd947(0x37e)],this[_0x4bd947(0x389)],this[_0x4bd947(0x468)],this[_0x4bd947(0x2a4)]);break;default:throw Error(_0x4bd947(0x3d8)+this[_0x4bd947(0x3f8)]+_0x4bd947(0x3aa));}let {changeset:_0x404785,pendingMutations:_0x26474a}=_0x47524f;this[_0x4bd947(0x44c)][_0x4bd947(0x457)](_0x404785);let _0x4fcaf2=_0x26474a[_0x4bd947(0x2e3)]?this['_injector'][_0x4bd947(0x408)](_0x2be15f,this[_0x4bd947(0x37e)],this['type'],_0x404785,_0x26474a,this[_0x4bd947(0x44c)],void 0x0):this[_0x4bd947(0x2d5)]['createInstance'](_0x45f3bd,this[_0x4bd947(0x37e)],this[_0x4bd947(0x3f8)],_0x404785,this[_0x4bd947(0x44c)]);_0x4fcaf2[_0x4bd947(0x22e)](),this[_0x4bd947(0x44c)]['onStateChange'](this,_0x4fcaf2);},_0x54060c);}[_0x5bf0eb(0x4e2)](){const _0x4f1681=_0x5bf0eb;var _0x5c8e73;let _0xa4c7dc=this[_0x4f1681(0x266)][_0x4f1681(0x46c)](_0x2a84dd);return(_0x5c8e73=_0xa4c7dc==null?void 0x0:_0xa4c7dc['sendChangesetTimeout'])==null?0x7d0:_0x5c8e73;}['resend'](){const _0x124014=_0x5bf0eb;throw Error(_0x124014(0x3e3));}['_clearScheduledTask'](){const _0x2ce7d4=_0x5bf0eb;this[_0x2ce7d4(0x1f6)]!=null&&(clearTimeout(this[_0x2ce7d4(0x1f6)]),this[_0x2ce7d4(0x1f6)]=null);}[_0x5bf0eb(0x318)](_0x3b8bc8){const _0x1d4b46=_0x5bf0eb;return this[_0x1d4b46(0x3de)](),this[_0x1d4b46(0x2d5)][_0x1d4b46(0x408)](_0x4446c9,this[_0x1d4b46(0x37e)],this[_0x1d4b46(0x3f8)],null,this[_0x1d4b46(0x4f4)],this['_handler'],_0x3b8bc8);}};_0x17b236=_0x1b0a99=_0x4e6e0f([_0xe72533(0x4,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x3fa)])),_0xe72533(0x5,(0x0,_0x2dbbd9['Inject'])(_0x2b53f2[_0x5bf0eb(0x495)])),_0xe72533(0x6,(0x0,_0x2dbbd9['Inject'])(_0xf86089)),_0xe72533(0x7,_0x2dbbd9['ILogService']),_0xe72533(0x8,_0x2dbbd9[_0x5bf0eb(0x28c)]),_0xe72533(0x9,_0x2dbbd9['IConfigService']),_0xe72533(0xa,_0x2b53f2[_0x5bf0eb(0x3e9)]),_0xe72533(0xb,_0x2dbbd9[_0x5bf0eb(0x4d0)]),_0xe72533(0xc,_0x2dbbd9[_0x5bf0eb(0x4bd)]),_0xe72533(0xd,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x36e220))],_0x17b236);let _0x45f3bd=_0x379970=class extends _0x48f410{constructor(_0x463a27,_0x2496ce,_0x45f56c,_0x599191,_0x105db1,_0x57655a,_0x2a9cab,_0x14d8e9,_0x5d5d52,_0x2cd92b,_0x5f11c3){const _0x3bcff5=_0x5bf0eb;super(_0x463a27,_0x2496ce,_0x45f56c,[],_0x599191,_0x2a9cab,_0x2cd92b,_0x57655a,_0x5f11c3),this['_injector']=_0x105db1,this[_0x3bcff5(0x236)]=_0x14d8e9,this[_0x3bcff5(0x409)]=_0x5d5d52,_0x527b5d(this,_0x3bcff5(0x308),_0x3bcff5(0x1ff)),_0x527b5d(this,_0x3bcff5(0x4ec),0x0),_0x527b5d(this,_0x3bcff5(0x41c),0x0),_0x527b5d(this,_0x3bcff5(0x360),void 0x0),_0x527b5d(this,_0x3bcff5(0x38a),void 0x0);}[_0x5bf0eb(0x4fd)](_0x5e21bd){const _0x418d67=_0x5bf0eb;this[_0x418d67(0x3de)]();let _0xf1493d=this['_injector']['createInstance'](_0x2be15f,this[_0x418d67(0x37e)],this[_0x418d67(0x3f8)],this['_awaitingChangeset'],[_0x5e21bd],this[_0x418d67(0x44c)],this[_0x418d67(0x360)]);return _0xf1493d[_0x418d67(0x22e)](),_0xf1493d;}[_0x5bf0eb(0x348)](_0x1b313d){const _0x214dae=_0x5bf0eb;if(this[_0x214dae(0x45f)](_0x1b313d))return this[_0x214dae(0x3de)](),this['_injector'][_0x214dae(0x408)](_0x49dbd8,this['unitID'],this[_0x214dae(0x3f8)],this[_0x214dae(0x44d)],[],null,[_0x1b313d],this[_0x214dae(0x44c)]);try{let _0x5266ba=this['_transformService'][_0x214dae(0x31c)]([_0x1b313d],[this[_0x214dae(0x44d)]],!0x1);if((0x0,_0x2b53f2[_0x214dae(0x3d1)])(_0x5266ba)){let {c1Prime:_0x39bc91,c2Prime:_0x3d53a7}=_0x5266ba;this[_0x214dae(0x3d9)](_0x39bc91[0x0]),_0x3d53a7[0x0][_0x214dae(0x46e)]=this[_0x214dae(0x315)](),this[_0x214dae(0x3de)]();let _0x1bd358=this[_0x214dae(0x2d5)][_0x214dae(0x408)](_0x379970,this[_0x214dae(0x37e)],this[_0x214dae(0x3f8)],_0x3d53a7[0x0],this[_0x214dae(0x44c)]);return _0x1bd358[_0x214dae(0x22e)](),_0x1bd358;}throw _0x5266ba['error'];}catch(_0x4786d0){return this['_logService'][_0x214dae(0x35f)](_0x4786d0),this[_0x214dae(0x318)](!0x1);}}[_0x5bf0eb(0x4df)](_0x1fe489){const _0x3f7333=_0x5bf0eb;this[_0x3f7333(0x3de)]();let _0x3f2dd5=this['_revisionService'][_0x3f7333(0x2de)](this[_0x3f7333(0x37e)]);if(_0x1fe489['revision']<=_0x3f2dd5)return this;if(this[_0x3f7333(0x45f)](_0x1fe489))return this['_injector'][_0x3f7333(0x408)](_0x49dbd8,this['unitID'],this[_0x3f7333(0x3f8)],this[_0x3f7333(0x44d)],[],_0x1fe489[_0x3f7333(0x4ea)],[],this[_0x3f7333(0x44c)]);this['_incrementRevisionNumber']();let _0x485488=this[_0x3f7333(0x2d5)]['createInstance'](_0x28d539,this['unitID'],this['type'],this[_0x3f7333(0x44c)]);return _0x485488[_0x3f7333(0x22e)](),_0x485488;}[_0x5bf0eb(0x212)](_0x154684){const _0x4ead7a=_0x5bf0eb;return this[_0x4ead7a(0x318)](!!(_0x154684!=null&&_0x154684[_0x4ead7a(0x2a8)]));}[_0x5bf0eb(0x3f7)](_0x3719ef){const _0x1a3b6f=_0x5bf0eb;return this['_maxTotalRetryTimeout']>_0xe13796?this[_0x1a3b6f(0x418)]():(this[_0x1a3b6f(0x360)]=_0x328c98(this[_0x1a3b6f(0x4ec)],{'timeout':this[_0x1a3b6f(0x4ec)],'reqId':_0x3719ef[_0x1a3b6f(0x29f)]}),this['_sender']=this[_0x1a3b6f(0x360)][_0x1a3b6f(0x31f)](({reqId:_0x25a72f,timeout:_0x35a106})=>{const _0x37e257=_0x1a3b6f;this[_0x37e257(0x2b1)](_0x25a72f,_0x35a106);}),this);}[_0x5bf0eb(0x418)](){const _0x42bc0d=_0x5bf0eb;return this[_0x42bc0d(0x3de)](),this[_0x42bc0d(0x2d5)][_0x42bc0d(0x408)](_0x5a87ab,this['unitID'],this[_0x42bc0d(0x3f8)],this[_0x42bc0d(0x44d)],[],this[_0x42bc0d(0x44c)]);}[_0x5bf0eb(0x44e)](){return this;}[_0x5bf0eb(0x460)](){const _0x4ebe8d=_0x5bf0eb;this[_0x4ebe8d(0x44c)][_0x4ebe8d(0x457)](this['_awaitingChangeset']);}[_0x5bf0eb(0x318)](_0x127728){const _0x5530ac=_0x5bf0eb;return this[_0x5530ac(0x3de)](),this[_0x5530ac(0x2d5)]['createInstance'](_0x4446c9,this[_0x5530ac(0x37e)],this[_0x5530ac(0x3f8)],this[_0x5530ac(0x44d)],[],this[_0x5530ac(0x44c)],_0x127728);}[_0x5bf0eb(0x2b1)](_0x3b5b43,_0x2db185){const _0x3c1616=_0x5bf0eb;var _0x2141fc;_0x3b5b43===((_0x2141fc=this['_awaitingChangeset'])==null?void 0x0:_0x2141fc[_0x3c1616(0x29f)])&&(this[_0x3c1616(0x460)](),this[_0x3c1616(0x4ec)]=_0x2db185===0x0?0x3e8:Math[_0x3c1616(0x36a)](_0x2db185*0x2,_0x29e294),this[_0x3c1616(0x41c)]+=this[_0x3c1616(0x4ec)]);}[_0x5bf0eb(0x3de)](){const _0x5e88c6=_0x5bf0eb;var _0x5a4bc0;(_0x5a4bc0=this['_sender'])==null||_0x5a4bc0[_0x5e88c6(0x34b)](),this['_resendTimeout']=0x0,this[_0x5e88c6(0x41c)]=0x0;}};_0x45f3bd=_0x379970=_0x4e6e0f([_0xe72533(0x4,(0x0,_0x2dbbd9['Inject'])(_0x2dbbd9[_0x5bf0eb(0x3fa)])),_0xe72533(0x5,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2b53f2[_0x5bf0eb(0x495)])),_0xe72533(0x6,_0x2dbbd9[_0x5bf0eb(0x28c)]),_0xe72533(0x7,_0x2dbbd9[_0x5bf0eb(0x21b)]),_0xe72533(0x8,_0x2b53f2[_0x5bf0eb(0x3e9)]),_0xe72533(0x9,_0x2dbbd9[_0x5bf0eb(0x4bd)]),_0xe72533(0xa,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x36e220))],_0x45f3bd);let _0x2be15f=_0x23a599=class extends _0x48f410{constructor(_0x4221d4,_0x1e2372,_0x1c4ded,_0x5e4272,_0x15c98e,_0x36e189,_0x504fd7,_0x1cbc8e,_0x1f81fd,_0x4c2a4c,_0x2542c5,_0x14a54e,_0xe7be4b){const _0x247839=_0x5bf0eb;super(_0x4221d4,_0x1e2372,_0x1c4ded,_0x5e4272,_0x15c98e,_0x1f81fd,_0x14a54e,_0x1cbc8e,_0xe7be4b),this['_injector']=_0x504fd7,this['_logService']=_0x4c2a4c,this[_0x247839(0x409)]=_0x2542c5,this[_0x247839(0x41e)]=_0xe7be4b,_0x527b5d(this,_0x247839(0x308),_0x247839(0x2ef)),_0x527b5d(this,_0x247839(0x4ec),0x0),_0x527b5d(this,_0x247839(0x41c),0x0),_0x527b5d(this,'_resendTimer',void 0x0),_0x527b5d(this,'_sender',void 0x0),_0x36e189&&(this[_0x247839(0x360)]=_0x36e189,this[_0x247839(0x38a)]=this[_0x247839(0x360)]['subscribe'](({reqId:_0x34221c,timeout:_0xdf41e3})=>{const _0x5a0317=_0x247839;this[_0x5a0317(0x2b1)](_0x34221c,_0xdf41e3);}));}['appendMutation'](_0x5cd3bc){const _0x44418d=_0x5bf0eb;return this['_pendingMutations'][_0x44418d(0x23f)](_0x5cd3bc),this;}[_0x5bf0eb(0x348)](_0x124690){const _0x11ea9b=_0x5bf0eb;if(this[_0x11ea9b(0x45f)](_0x124690))return this['_clearScheduledTask'](),this[_0x11ea9b(0x2d5)][_0x11ea9b(0x408)](_0x49dbd8,this[_0x11ea9b(0x37e)],this[_0x11ea9b(0x3f8)],this['_awaitingChangeset'],this[_0x11ea9b(0x4f4)],null,[_0x124690],this[_0x11ea9b(0x44c)]);try{let _0xd8b028=this[_0x11ea9b(0x409)][_0x11ea9b(0x31c)]([_0x124690],[this[_0x11ea9b(0x44d)]],!0x1);if((0x0,_0x2b53f2[_0x11ea9b(0x3d1)])(_0xd8b028)){let {c1Prime:_0x1053e3,c2Prime:_0x485a4f}=_0xd8b028,_0x42c897=this['_transformService'][_0x11ea9b(0x3db)](_0x1053e3[0x0],this[_0x11ea9b(0x4f4)]);if((0x0,_0x2b53f2[_0x11ea9b(0x333)])(_0x42c897)){let {c1Prime:_0x4fdfb4,m2Prime:_0x381c86}=_0x42c897;return this['_executeRemoteChangeset'](_0x4fdfb4),_0x485a4f[0x0][_0x11ea9b(0x46e)]=this[_0x11ea9b(0x315)](),this[_0x11ea9b(0x3de)](),this[_0x11ea9b(0x2d5)]['createInstance'](_0x23a599,this['unitID'],this[_0x11ea9b(0x3f8)],_0x485a4f[0x0],_0x381c86,this['_handler'],void 0x0);}throw _0x42c897['error'];}throw _0xd8b028[_0x11ea9b(0x35f)];}catch(_0xddf8c2){return this[_0x11ea9b(0x236)][_0x11ea9b(0x35f)](_0xddf8c2),this[_0x11ea9b(0x318)](!0x1);}}[_0x5bf0eb(0x4df)](_0x230f59){const _0xc34ff9=_0x5bf0eb;this[_0xc34ff9(0x3de)]();let _0x2d6a88=this['_getCurrentRevision']();if(_0x230f59[_0xc34ff9(0x4ea)]<=_0x2d6a88)return this;if(this[_0xc34ff9(0x45f)](_0x230f59))return this[_0xc34ff9(0x2d5)][_0xc34ff9(0x408)](_0x49dbd8,this[_0xc34ff9(0x37e)],this[_0xc34ff9(0x3f8)],this[_0xc34ff9(0x44d)],this['_pendingMutations'],_0x230f59[_0xc34ff9(0x4ea)],[],this['_handler']);this[_0xc34ff9(0x208)]();let _0x446463=this[_0xc34ff9(0x2d5)][_0xc34ff9(0x408)](_0x17b236,this['unitID'],this['type'],this[_0xc34ff9(0x4f4)],this[_0xc34ff9(0x44c)]);return _0x446463['_schedule'](),_0x446463[_0xc34ff9(0x22e)](),_0x446463;}[_0x5bf0eb(0x212)](_0x3eb4d9){const _0x4700de=_0x5bf0eb;return this[_0x4700de(0x318)](!!(_0x3eb4d9!=null&&_0x3eb4d9[_0x4700de(0x2a8)]));}['onRemoteRetry'](_0x48b08d){const _0x2f2023=_0x5bf0eb;return this['_maxTotalRetryTimeout']>_0xe13796?this['toggleOffline']():(this[_0x2f2023(0x360)]=_0x328c98(this[_0x2f2023(0x4ec)],{'timeout':this[_0x2f2023(0x4ec)],'reqId':_0x48b08d[_0x2f2023(0x29f)]}),this[_0x2f2023(0x38a)]=this[_0x2f2023(0x360)][_0x2f2023(0x31f)](({reqId:_0x156ef5,timeout:_0x2499b1})=>{const _0x478a71=_0x2f2023;this[_0x478a71(0x2b1)](_0x156ef5,_0x2499b1);}),this);}[_0x5bf0eb(0x418)](){const _0x1c8af7=_0x5bf0eb;return this[_0x1c8af7(0x3de)](),this['_injector'][_0x1c8af7(0x408)](_0x5a87ab,this[_0x1c8af7(0x37e)],this['type'],this['_awaitingChangeset'],this[_0x1c8af7(0x4f4)],this[_0x1c8af7(0x44c)]);}[_0x5bf0eb(0x44e)](){return this;}[_0x5bf0eb(0x460)](){const _0x3d3c31=_0x5bf0eb;this[_0x3d3c31(0x44c)]['onSendChangeset'](this[_0x3d3c31(0x44d)]);}[_0x5bf0eb(0x318)](_0x1cf473){const _0x5bf002=_0x5bf0eb;return this[_0x5bf002(0x3de)](),this['_injector'][_0x5bf002(0x408)](_0x4446c9,this[_0x5bf002(0x37e)],this[_0x5bf002(0x3f8)],null,this['_pendingMutations'],this[_0x5bf002(0x44c)],_0x1cf473);}[_0x5bf0eb(0x2b1)](_0x4cbcb6,_0x16fed8){const _0xc726dd=_0x5bf0eb;var _0x37c976;_0x4cbcb6===((_0x37c976=this['_awaitingChangeset'])==null?void 0x0:_0x37c976[_0xc726dd(0x29f)])&&(this[_0xc726dd(0x460)](),this[_0xc726dd(0x4ec)]=_0x16fed8===0x0?0x3e8:Math['min'](_0x16fed8*0x2,_0x29e294),this['_maxTotalRetryTimeout']+=this[_0xc726dd(0x4ec)]);}[_0x5bf0eb(0x3de)](){const _0x3b0e0f=_0x5bf0eb;var _0x58c6fe;(_0x58c6fe=this['_sender'])==null||_0x58c6fe[_0x3b0e0f(0x34b)](),this[_0x3b0e0f(0x4ec)]=0x0,this[_0x3b0e0f(0x41c)]=0x0;}};_0x2be15f=_0x23a599=_0x4e6e0f([_0xe72533(0x6,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9['Injector'])),_0xe72533(0x7,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2b53f2[_0x5bf0eb(0x495)])),_0xe72533(0x8,_0x2dbbd9[_0x5bf0eb(0x28c)]),_0xe72533(0x9,_0x2dbbd9[_0x5bf0eb(0x21b)]),_0xe72533(0xa,_0x2b53f2[_0x5bf0eb(0x3e9)]),_0xe72533(0xb,_0x2dbbd9[_0x5bf0eb(0x4bd)]),_0xe72533(0xc,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x36e220))],_0x2be15f);let _0x4446c9=class extends _0x48f410{constructor(_0x4a8fe4,_0x563ced,_0x2fe53d,_0x3d89be,_0x386421,_0x193b95=!0x1,_0xcdc7ad,_0x19adcd,_0x1a24ff,_0x1e06e0,_0x34e6f8,_0x3e9dd7,_0x30dba4){const _0x1a97f7=_0x5bf0eb;super(_0x4a8fe4,_0x563ced,_0x2fe53d,_0x3d89be,_0x386421,_0x19adcd,_0x1a24ff,_0x1e06e0,_0x30dba4),this[_0x1a97f7(0x3e7)]=_0x193b95,this[_0x1a97f7(0x461)]=_0xcdc7ad,this[_0x1a97f7(0x3ed)]=_0x34e6f8,this['_collaborationUIEventService']=_0x3e9dd7,this[_0x1a97f7(0x41e)]=_0x30dba4,_0x527b5d(this,_0x1a97f7(0x308),_0x1a97f7(0x4e0)),this[_0x1a97f7(0x34e)](),this['_clearLocalCache'](),this[_0x1a97f7(0x309)]();}[_0x5bf0eb(0x4fd)](){return this;}[_0x5bf0eb(0x348)](){return this;}['onRemoteAck'](){return this;}[_0x5bf0eb(0x212)](){return this;}[_0x5bf0eb(0x3f7)](){return this;}[_0x5bf0eb(0x418)](){return this;}['toggleOnline'](){return this;}[_0x5bf0eb(0x460)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x5bf0eb(0x2c5)](){const _0x285489=_0x5bf0eb;var _0x5cd38b;(_0x5cd38b=this[_0x285489(0x33c)])==null||_0x5cd38b['updateOfflineData'](this[_0x285489(0x37e)],this[_0x285489(0x3f8)],null,[]);}[_0x5bf0eb(0x34e)](){const _0x2caeea=_0x5bf0eb;this[_0x2caeea(0x3e7)]?this[_0x2caeea(0x392)][_0x2caeea(0x216)]({'id':_0x2caeea(0x37c)}):this['_collaborationUIEventService']['emitEvent']({'id':_0x2caeea(0x25d)});}['_disableEditing'](){const _0xd556cd=_0x5bf0eb;this[_0xd556cd(0x461)]['updatePermissionPoint'](new _0x184bfa['WorkbookEditablePermission'](this[_0xd556cd(0x37e)])['id'],!0x1);}};_0x4446c9=_0x4e6e0f([_0xe72533(0x6,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x338)])),_0xe72533(0x7,_0x2dbbd9[_0x5bf0eb(0x28c)]),_0xe72533(0x8,_0x2dbbd9[_0x5bf0eb(0x4bd)]),_0xe72533(0x9,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2b53f2[_0x5bf0eb(0x495)])),_0xe72533(0xa,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x340)])),_0xe72533(0xb,(0x0,_0x2dbbd9['Inject'])(_0x10b08d)),_0xe72533(0xc,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x36e220))],_0x4446c9);let _0x5a87ab=class extends _0x48f410{constructor(_0x28a73d,_0x277c28,_0x5e67a7,_0x5107b8,_0x341b93,_0x525b22,_0x502ae9,_0xe4a513,_0x271bf1,_0x398347){const _0x198b04=_0x5bf0eb;super(_0x28a73d,_0x277c28,_0x5e67a7,_0x5107b8,_0x341b93,_0xe4a513,_0x271bf1,_0x502ae9,_0x398347),this[_0x198b04(0x2d5)]=_0x525b22,_0x527b5d(this,_0x198b04(0x308),_0x198b04(0x2c6));}[_0x5bf0eb(0x4fd)](_0x1493dc){const _0x2eed36=_0x5bf0eb;return this[_0x2eed36(0x4f4)][_0x2eed36(0x23f)](_0x1493dc),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x227def){const _0x2c026a=_0x5bf0eb;throw Error(_0x2c026a(0x319));}[_0x5bf0eb(0x4df)](){const _0x526e70=_0x5bf0eb;throw Error(_0x526e70(0x40e));}['onRemoteRej'](){const _0x51cb72=_0x5bf0eb;throw Error(_0x51cb72(0x38d));}[_0x5bf0eb(0x3f7)](){return this;}[_0x5bf0eb(0x418)](){return this;}['toggleOnline'](){const _0x92ad2=_0x5bf0eb;let {_injector:_0x5213c4,_pendingMutations:_0x592fa6,_awaitingChangeset:_0x2cb115,unitID:_0x166ee5,_handler:_0xcffa49,type:_0x7b9f0b}=this,_0x2fad1f=_0x1f46ae(_0x5213c4,_0x166ee5,_0x7b9f0b,_0x2cb115,_0x592fa6,_0xcffa49);return _0x2fad1f instanceof _0x17b236?_0x2fad1f[_0x92ad2(0x213)]():(_0x2fad1f instanceof _0x2be15f||_0x2fad1f instanceof _0x45f3bd)&&_0x2fad1f[_0x92ad2(0x460)](),_0x2fad1f;}[_0x5bf0eb(0x460)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x5a87ab=_0x4e6e0f([_0xe72533(0x5,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x3fa)])),_0xe72533(0x6,(0x0,_0x2dbbd9['Inject'])(_0x2b53f2[_0x5bf0eb(0x495)])),_0xe72533(0x7,_0x2dbbd9[_0x5bf0eb(0x28c)]),_0xe72533(0x8,_0x2dbbd9[_0x5bf0eb(0x4bd)]),_0xe72533(0x9,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x36e220))],_0x5a87ab);let _0x49dbd8=class extends _0x48f410{constructor(_0x65371b,_0x599037,_0x24c86b,_0x488e73,_0x5a6b30,_0x58ffdf,_0x19f5ab,_0x44b31a,_0x25651a,_0x55f6c4,_0x471a81,_0x2a025c,_0x515b62,_0x2da153){const _0x4f30d8=_0x5bf0eb;super(_0x65371b,_0x599037,_0x24c86b,_0x488e73,_0x19f5ab,_0x471a81,_0x2a025c,_0x25651a,_0x2da153),this['_acknowledgedAwaitingRevision']=_0x5a6b30,this['_queuedRemoteChangesets']=_0x58ffdf,this[_0x4f30d8(0x2d5)]=_0x44b31a,this['_logService']=_0x55f6c4,this[_0x4f30d8(0x409)]=_0x515b62,this[_0x4f30d8(0x41e)]=_0x2da153,_0x527b5d(this,_0x4f30d8(0x308),_0x4f30d8(0x322));}['onMissedChangesetFetched'](_0x5b3924){const _0x660cb4=_0x5bf0eb;try{if(this[_0x660cb4(0x37a)](_0x5b3924)[_0x660cb4(0x4f9)])throw Error(_0x660cb4(0x4ae));if(this[_0x660cb4(0x37a)]([...this[_0x660cb4(0x2f9)]]['sort']((_0x5c3d37,_0x179c65)=>_0x5c3d37[_0x660cb4(0x4ea)]-_0x179c65['revision']))[_0x660cb4(0x4f9)])return this[_0x660cb4(0x2f9)]=[],this[_0x660cb4(0x22e)](),this[_0x660cb4(0x44c)][_0x660cb4(0x388)]({'from':this[_0x660cb4(0x315)](),'to':0x0}),this;let _0x3df6d8=this[_0x660cb4(0x44d)],_0x389352=this[_0x660cb4(0x4f4)],_0x330598;if(_0x3df6d8&&_0x389352[_0x660cb4(0x2e3)]!==0x0)_0x330598=this[_0x660cb4(0x2d5)][_0x660cb4(0x408)](_0x2be15f,this['unitID'],this[_0x660cb4(0x3f8)],_0x3df6d8,_0x389352,this['_handler'],void 0x0);else{if(_0x3df6d8&&_0x389352[_0x660cb4(0x2e3)]===0x0)_0x3df6d8[_0x660cb4(0x46e)]=this[_0x660cb4(0x315)](),_0x330598=this[_0x660cb4(0x2d5)][_0x660cb4(0x408)](_0x45f3bd,this['unitID'],this['type'],_0x3df6d8,this[_0x660cb4(0x44c)]);else{if(_0x389352[_0x660cb4(0x2e3)]!==0x0){let _0x24c076=this['_injector'][_0x660cb4(0x408)](_0x17b236,this[_0x660cb4(0x37e)],this[_0x660cb4(0x3f8)],_0x389352,this[_0x660cb4(0x44c)]);_0x24c076[_0x660cb4(0x213)](),_0x330598=_0x24c076;}else _0x330598=this['_injector'][_0x660cb4(0x408)](_0x28d539,this['unitID'],this[_0x660cb4(0x3f8)],this[_0x660cb4(0x44c)]);}}return _0x330598[_0x660cb4(0x22e)](),_0x330598;}catch(_0x545df9){return this[_0x660cb4(0x236)][_0x660cb4(0x35f)](_0x660cb4(0x267),'failed\x20to\x20apply\x20missed\x20changesets!',_0x545df9),this['_injector']['createInstance'](_0x4446c9,this[_0x660cb4(0x37e)],this[_0x660cb4(0x3f8)],this[_0x660cb4(0x44d)],this[_0x660cb4(0x4f4)],this[_0x660cb4(0x44c)],!0x1);}}[_0x5bf0eb(0x37a)](_0x4e5274){const _0x5224d8=_0x5bf0eb;this[_0x5224d8(0x325)]();for(let _0x5766c6=0x0;_0x5766c6<_0x4e5274[_0x5224d8(0x2e3)];_0x5766c6++){let _0x5488a3=_0x4e5274[_0x5766c6],_0x1aa427=this[_0x5224d8(0x315)]();if(!(_0x5488a3['revision']<=_0x1aa427)){if(_0x5488a3[_0x5224d8(0x4ea)]>_0x1aa427+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x5488a3)){this[_0x5224d8(0x3dc)]();continue;}this[_0x5224d8(0x2d0)](_0x5488a3),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x5bf0eb(0x2d0)](_0x1ca395){const _0x4e9260=_0x5bf0eb;let _0x224f43=_0x1ca395,_0x543712=this[_0x4e9260(0x44d)];if(_0x543712){let _0x4a0a86=this[_0x4e9260(0x409)][_0x4e9260(0x31c)]([_0x1ca395],[_0x543712],!0x1);if(!(0x0,_0x2b53f2['isTransformChangesetsSuccess'])(_0x4a0a86))throw _0x4a0a86[_0x4e9260(0x35f)];_0x224f43=_0x4a0a86[_0x4e9260(0x491)][0x0],_0x543712=_0x4a0a86[_0x4e9260(0x2ac)][0x0];}let _0x2e3b14=this['_pendingMutations'];if(_0x2e3b14[_0x4e9260(0x2e3)]){let _0x537535=this[_0x4e9260(0x409)][_0x4e9260(0x3db)](_0x224f43,_0x2e3b14);if(!(0x0,_0x2b53f2[_0x4e9260(0x333)])(_0x537535))throw _0x537535['error'];_0x224f43=_0x537535[_0x4e9260(0x491)],_0x2e3b14=_0x537535[_0x4e9260(0x4c9)];}this[_0x4e9260(0x3d9)](_0x224f43),_0x543712&&(_0x543712[_0x4e9260(0x46e)]=this[_0x4e9260(0x315)]()),this[_0x4e9260(0x44d)]=_0x543712,this[_0x4e9260(0x4f4)]=_0x2e3b14;}[_0x5bf0eb(0x325)](){const _0x53735e=_0x5bf0eb;if(!this[_0x53735e(0x44d)]||this[_0x53735e(0x46b)]==null)return;let _0x59a7f2=this[_0x53735e(0x315)]();if(this['_acknowledgedAwaitingRevision']<=_0x59a7f2)throw Error(_0x53735e(0x4f7)+this['_acknowledgedAwaitingRevision']+'.');this[_0x53735e(0x46b)]===_0x59a7f2+0x1&&this[_0x53735e(0x3dc)]();}['_acknowledgeAwaiting'](){const _0x34e912=_0x5bf0eb;this[_0x34e912(0x208)](),this[_0x34e912(0x44d)]=null,this[_0x34e912(0x46b)]=null;}[_0x5bf0eb(0x4a3)](_0x4fbffd){const _0x28ed09=_0x5bf0eb;let _0x5941ee=this[_0x28ed09(0x44d)];return!_0x5941ee||!_0x5941ee['sid']||_0x5941ee[_0x28ed09(0x29f)]===null||_0x5941ee['reqId']===void 0x0?!0x1:_0x4fbffd[_0x28ed09(0x37e)]===_0x5941ee[_0x28ed09(0x37e)]&&_0x4fbffd[_0x28ed09(0x390)]===_0x5941ee[_0x28ed09(0x390)]&&_0x4fbffd[_0x28ed09(0x29f)]===_0x5941ee[_0x28ed09(0x29f)];}[_0x5bf0eb(0x460)](){const _0xfe861e=_0x5bf0eb;throw Error(_0xfe861e(0x36f));}['appendMutation'](_0x5afef4){const _0x29dcbf=_0x5bf0eb;return this[_0x29dcbf(0x4f4)]['push'](_0x5afef4),this;}['onRemoteChangeset'](_0x2aaa9a){const _0x4fbc9f=_0x5bf0eb;return this['_queuedRemoteChangesets'][_0x4fbc9f(0x23f)](_0x2aaa9a),this;}[_0x5bf0eb(0x4df)](_0x11a23d){const _0x14e8ac=_0x5bf0eb;if(this[_0x14e8ac(0x44d)]){let _0x3eddbf=this['_getCurrentRevision']();return _0x11a23d['revision']<=_0x3eddbf||(_0x3eddbf+0x1===_0x11a23d[_0x14e8ac(0x4ea)]?(this[_0x14e8ac(0x208)](),this[_0x14e8ac(0x44d)]=null,this['_acknowledgedAwaitingRevision']=null):this[_0x14e8ac(0x46b)]=_0x11a23d[_0x14e8ac(0x4ea)]),this;}if(_0x11a23d[_0x14e8ac(0x4ea)]<=this['_getCurrentRevision']())return this;throw Error(_0x14e8ac(0x30e));}['onRemoteRej'](_0x47b740){const _0x425063=_0x5bf0eb;return this[_0x425063(0x318)](!!(_0x47b740!=null&&_0x47b740[_0x425063(0x2a8)]));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x15cd40=_0x5bf0eb;return this[_0x15cd40(0x2d5)][_0x15cd40(0x408)](_0x5a87ab,this[_0x15cd40(0x37e)],this[_0x15cd40(0x3f8)],this['_awaitingChangeset'],this[_0x15cd40(0x4f4)],this['_handler']);}[_0x5bf0eb(0x44e)](){return this;}[_0x5bf0eb(0x318)](_0x488827){const _0x5c87b0=_0x5bf0eb;return this[_0x5c87b0(0x2d5)][_0x5c87b0(0x408)](_0x4446c9,this[_0x5c87b0(0x37e)],this['type'],this[_0x5c87b0(0x44d)],this[_0x5c87b0(0x4f4)],this['_handler'],_0x488827);}};_0x49dbd8=_0x4e6e0f([_0xe72533(0x7,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9['Injector'])),_0xe72533(0x8,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2b53f2[_0x5bf0eb(0x495)])),_0xe72533(0x9,_0x2dbbd9[_0x5bf0eb(0x21b)]),_0xe72533(0xa,_0x2dbbd9['ICommandService']),_0xe72533(0xb,_0x2dbbd9[_0x5bf0eb(0x4bd)]),_0xe72533(0xc,_0x2b53f2['ITransformService']),_0xe72533(0xd,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x36e220))],_0x49dbd8);function _0x1f46ae(_0x61e00a,_0x4a6de8,_0x4b3a66,_0x15667a,_0x3c68d4,_0x182390){const _0xeaab5e=_0x5bf0eb;return _0x15667a&&_0x3c68d4[_0xeaab5e(0x2e3)]?_0x61e00a['createInstance'](_0x2be15f,_0x4a6de8,_0x4b3a66,_0x15667a,_0x3c68d4,_0x182390,void 0x0):_0x15667a?_0x61e00a[_0xeaab5e(0x408)](_0x45f3bd,_0x4a6de8,_0x4b3a66,_0x15667a,_0x182390):_0x3c68d4[_0xeaab5e(0x2e3)]?_0x61e00a[_0xeaab5e(0x408)](_0x17b236,_0x4a6de8,_0x4b3a66,_0x3c68d4,_0x182390):_0x61e00a[_0xeaab5e(0x408)](_0x28d539,_0x4a6de8,_0x4b3a66,_0x182390);}let _0x3e0a94=class extends _0x2dbbd9[_0x5bf0eb(0x2ed)]{get[_0x5bf0eb(0x412)](){return this['_state'];}constructor(_0x7775a4,_0x4c6b40,_0x31fbee,_0x27c9fc,_0x7625ee,_0xcc5951,_0x26be5a,_0x376ac5,_0x53b406,_0x445483,_0x4f7a07,_0x685fe1,_0x1bf2c7,_0xb730ab){const _0x18c795=_0x5bf0eb;super(),this[_0x18c795(0x37e)]=_0x7775a4,this[_0x18c795(0x20d)]=_0x4c6b40,this[_0x18c795(0x402)]=_0x31fbee,this['_injector']=_0x27c9fc,this[_0x18c795(0x1e8)]=_0x7625ee,this[_0x18c795(0x3ed)]=_0xcc5951,this[_0x18c795(0x468)]=_0x26be5a,this[_0x18c795(0x244)]=_0x376ac5,this[_0x18c795(0x389)]=_0x53b406,this[_0x18c795(0x236)]=_0x445483,this[_0x18c795(0x399)]=_0x4f7a07,this['_permissionService']=_0x685fe1,this[_0x18c795(0x359)]=_0x1bf2c7,this[_0x18c795(0x33c)]=_0xb730ab,_0x527b5d(this,_0x18c795(0x250),new _0x4f3716['BehaviorSubject'](null)),_0x527b5d(this,'state$',this[_0x18c795(0x250)][_0x18c795(0x2e9)]()),_0x527b5d(this,_0x18c795(0x303),void 0x0),_0x527b5d(this,_0x18c795(0x49d),!0x1),_0x527b5d(this,_0x18c795(0x473),''),_0x527b5d(this,_0x18c795(0x39b),0x0),_0x527b5d(this,_0x18c795(0x3a5),this[_0x18c795(0x30d)][_0x18c795(0x4be)]((0x0,_0x4f3716[_0x18c795(0x1e3)])(_0x174383=>_0x174383?_0x174383['status']:_0x18c795(0x2c6)),(0x0,_0x4f3716[_0x18c795(0x3da)])(0x1))),_0x527b5d(this,'_transitionLocked',!0x1),_0x527b5d(this,_0x18c795(0x32a),[]);}async[_0x5bf0eb(0x1fd)](){const _0x5b6fa7=_0x5bf0eb;if(this['state'])throw Error(_0x5b6fa7(0x2f3));await this['_init']();}[_0x5bf0eb(0x4bf)](){const _0x1d01cc=_0x5bf0eb;return this[_0x1d01cc(0x49d)]=!0x0,(0x0,_0x2dbbd9[_0x1d01cc(0x1ee)])(()=>{const _0x245760=_0x1d01cc;this[_0x245760(0x49d)]=!0x1,this[_0x245760(0x29d)]();});}[_0x5bf0eb(0x2e5)](_0x2cd165){const _0x118663=_0x5bf0eb;this[_0x118663(0x3b9)](_0x2cd165);}[_0x5bf0eb(0x32d)](_0x2b3c3d){const _0x2227b9=_0x5bf0eb;this['_state']=_0x2b3c3d,this[_0x2227b9(0x250)][_0x2227b9(0x274)](_0x2b3c3d);}async[_0x5bf0eb(0x226)](){const _0x3d6962=_0x5bf0eb;if(this[_0x3d6962(0x32d)](await this[_0x3d6962(0x1f7)]()),this[_0x3d6962(0x359)]){var _0x166833;(_0x166833=this[_0x3d6962(0x359)])==null||_0x166833[_0x3d6962(0x3f1)](this[_0x3d6962(0x37e)]),this[_0x3d6962(0x4a6)](this[_0x3d6962(0x359)][_0x3d6962(0x3c0)](this[_0x3d6962(0x37e)])[_0x3d6962(0x31f)](_0x1b4dac=>{const _0x22d56c=_0x3d6962;this['_logService'][_0x22d56c(0x265)]('[CollaborationEntity]',_0x22d56c(0x32b),_0x1b4dac),_0x1b4dac===0x1?(this[_0x22d56c(0x244)][_0x22d56c(0x216)]({'id':'OTHER_CLIENT_EDITING'}),this[_0x22d56c(0x461)]['updatePermissionPoint'](new _0x184bfa['WorkbookEditablePermission'](this[_0x22d56c(0x37e)])['id'],!0x1),this[_0x22d56c(0x461)]['setShowComponents'](!0x1)):(this[_0x22d56c(0x461)][_0x22d56c(0x4d6)](new _0x184bfa[(_0x22d56c(0x3b1))](this['unitID'])['id'],!0x0),this[_0x22d56c(0x461)][_0x22d56c(0x27a)](!0x0));}));}let _0xa5140d=!0x1;return this[_0x3d6962(0x4a6)](this[_0x3d6962(0x20d)]['sessionStatus$'][_0x3d6962(0x31f)](_0x145db9=>{const _0x1cad99=_0x3d6962;_0x145db9===0x3?this[_0x1cad99(0x2da)](_0xa5140d):_0x145db9===0x2&&(_0xa5140d=!0x0,this['_toggleOffline']());})),this[_0x3d6962(0x4a6)](this[_0x3d6962(0x20d)][_0x3d6962(0x3b7)][_0x3d6962(0x31f)](_0x17f07f=>{const _0x47e915=_0x3d6962;try{switch(_0x17f07f[_0x47e915(0x4d9)]){case _0x2b53f2[_0x47e915(0x406)][_0x47e915(0x44a)]:this['_onRemoteChangeset']((0x0,_0x2b53f2[_0x47e915(0x4b8)])(_0x17f07f[_0x47e915(0x43a)]));break;case _0x2b53f2[_0x47e915(0x406)]['CHANGESET_ACK']:this['_onRemoteACK'](_0x17f07f[_0x47e915(0x43a)]);break;case _0x2b53f2[_0x47e915(0x406)]['CHANGESET_REJ']:this[_0x47e915(0x35a)]();break;case _0x2b53f2[_0x47e915(0x406)][_0x47e915(0x437)]:this[_0x47e915(0x478)](_0x17f07f['data']);break;case _0x2b53f2[_0x47e915(0x406)][_0x47e915(0x421)]:this['_onFetchMissResult'](_0x17f07f[_0x47e915(0x43a)][_0x47e915(0x3cc)][_0x47e915(0x1e3)](_0x29b22c=>(0x0,_0x2b53f2[_0x47e915(0x4b8)])(_0x29b22c)));break;case _0x2b53f2[_0x47e915(0x406)]['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x2b53f2['CollaborationEvent'][_0x47e915(0x2d6)]:break;}}catch(_0x288558){throw console[_0x47e915(0x35f)](_0x47e915(0x30a),_0x288558),_0x288558;}})),this['_state'];}[_0x5bf0eb(0x405)](){const _0x1f9ca5=_0x5bf0eb;this[_0x1f9ca5(0x202)]=!0x1;}[_0x5bf0eb(0x47d)](){const _0x5edfc6=_0x5bf0eb;if(this['_transitionLocked'])throw Error(_0x5edfc6(0x431));this[_0x5edfc6(0x202)]=!0x0;}[_0x5bf0eb(0x3b9)](_0x2c4ab1){const _0x4c30c8=_0x5bf0eb;this['_lockTransition'](),this[_0x4c30c8(0x32d)](this[_0x4c30c8(0x303)][_0x4c30c8(0x4fd)](_0x2c4ab1)),this[_0x4c30c8(0x405)]();}[_0x5bf0eb(0x2ba)](_0x4b8131){const _0x56dee3=_0x5bf0eb;if(!(_0x4b8131[_0x56dee3(0x4ea)]<=this[_0x56dee3(0x468)][_0x56dee3(0x2de)](this[_0x56dee3(0x37e)]))){if(this['_collaborationPaused']){this[_0x56dee3(0x32a)][_0x56dee3(0x23f)](_0x4b8131);return;}this['_applyRemoteChangeset'](_0x4b8131);}}[_0x5bf0eb(0x29d)](){const _0x17c29a=_0x5bf0eb;this['_remoteChangesetQueue'][_0x17c29a(0x312)](_0x1a7e83=>this[_0x17c29a(0x371)](_0x1a7e83)),this['_remoteChangesetQueue']=[];}[_0x5bf0eb(0x371)](_0x586197){const _0x25caca=_0x5bf0eb;let _0x2933f7=this[_0x25caca(0x1e8)][_0x25caca(0x35d)][_0x25caca(0x2cc)](this['_compressMutationService'][_0x25caca(0x35d)]['getInterceptPoints']()[_0x25caca(0x416)])(_0x586197[_0x25caca(0x277)],null)||_0x586197[_0x25caca(0x277)],_0x26c65a={..._0x586197,'mutations':_0x2933f7};this[_0x25caca(0x47d)](),this[_0x25caca(0x32d)](this[_0x25caca(0x303)][_0x25caca(0x348)](_0x26c65a)),this[_0x25caca(0x405)]();}[_0x5bf0eb(0x3d2)](_0x4c56e4){const _0x119593=_0x5bf0eb;this['_lockTransition'](),this['_updateState'](this['_state'][_0x119593(0x4df)](_0x4c56e4)),this[_0x119593(0x405)]();}[_0x5bf0eb(0x35a)](_0x1df9ca){const _0x1cb0a5=_0x5bf0eb;this[_0x1cb0a5(0x47d)](),this['_updateState'](this[_0x1cb0a5(0x303)][_0x1cb0a5(0x212)](_0x1df9ca)),this[_0x1cb0a5(0x405)]();}[_0x5bf0eb(0x478)](_0x439388){const _0x42acfc=_0x5bf0eb;this[_0x42acfc(0x47d)](),this['_updateState'](this[_0x42acfc(0x303)][_0x42acfc(0x3f7)](_0x439388)),this[_0x42acfc(0x405)]();}[_0x5bf0eb(0x2a2)](_0x58b2e1){const _0x3f3934=_0x5bf0eb;if(!(this[_0x3f3934(0x303)]instanceof _0x49dbd8))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x23e8aa=_0x58b2e1[_0x3f3934(0x1e3)](_0x18ae07=>{const _0x1d79d2=_0x3f3934;let _0x5f173e=this['_compressMutationService'][_0x1d79d2(0x35d)][_0x1d79d2(0x2cc)](this['_compressMutationService'][_0x1d79d2(0x35d)][_0x1d79d2(0x261)]()['COMPRESS_MUTATION_APPLY'])(_0x18ae07[_0x1d79d2(0x277)],null)||_0x18ae07[_0x1d79d2(0x277)];return{..._0x18ae07,'mutations':_0x5f173e};});this[_0x3f3934(0x47d)](),this['_updateState'](this['_state'][_0x3f3934(0x2cf)](_0x23e8aa)),this[_0x3f3934(0x405)]();}[_0x5bf0eb(0x3f4)](){const _0x20c295=_0x5bf0eb;this[_0x20c295(0x47d)](),this[_0x20c295(0x32d)](this[_0x20c295(0x303)][_0x20c295(0x418)]()),this['_unlockTransition']();}[_0x5bf0eb(0x2da)](_0x2b8bb7=!0x1){const _0xc605eb=_0x5bf0eb;this[_0xc605eb(0x47d)](),this[_0xc605eb(0x32d)](this[_0xc605eb(0x303)][_0xc605eb(0x44e)]()),this[_0xc605eb(0x405)]();let _0x1b38cf=this[_0xc605eb(0x303)];_0x2b8bb7&&_0x1b38cf instanceof _0x28d539&&(this[_0xc605eb(0x47d)](),this[_0xc605eb(0x32d)](_0x1b38cf[_0xc605eb(0x282)]()),this[_0xc605eb(0x405)]());}async['_createInitialState'](){return new Promise(_0x5790a8=>{const _0x3af914=_0x4f27;this[_0x3af914(0x20d)]['sessionStatus$'][_0x3af914(0x4be)]((0x0,_0x4f3716['take'])(0x1))[_0x3af914(0x31f)](async _0x2358f2=>{const _0x173295=_0x3af914;_0x5790a8(await this[_0x173295(0x2bd)](_0x2358f2===0x3));});});}[_0x5bf0eb(0x48d)](){const _0x43f762=_0x5bf0eb;let _0x11bec2=this[_0x43f762(0x37e)];return{'onStateChange':(_0x5b5bd4,_0x340f65)=>{const _0x5ad769=_0x43f762;if(_0x5b5bd4!==this[_0x5ad769(0x303)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x5b5bd4['status']+'\x0aAfter:\x20'+_0x340f65[_0x5ad769(0x308)]+'\x0aCurrent:\x20'+this['_state']['status']);this[_0x5ad769(0x32d)](_0x340f65);},'onSendChangeset':_0x763ddc=>{const _0x17580e=_0x43f762;_0x763ddc[_0x17580e(0x390)]||(_0x763ddc[_0x17580e(0x390)]=this[_0x17580e(0x473)],_0x763ddc[_0x17580e(0x29f)]=++this[_0x17580e(0x39b)]);let _0x10573e={'eventID':_0x2b53f2['CollaborationEvent']['SUBMIT_CHANGESET'],'data':{'unitID':_0x763ddc[_0x17580e(0x37e)],'unitType':this[_0x17580e(0x402)],'changeset':_0x763ddc,'memberID':this[_0x17580e(0x20d)][_0x17580e(0x306)]()}};this[_0x17580e(0x20d)][_0x17580e(0x4eb)](_0x10573e,this[_0x17580e(0x37e)]);},'onMissingChangesets':({from:_0x3ef1d4,to:_0x4a0df9})=>{const _0x10e8ce=_0x43f762;this[_0x10e8ce(0x236)][_0x10e8ce(0x265)](_0x10e8ce(0x440),'fetching\x20missing\x20changesets\x20from\x20'+_0x3ef1d4+_0x10e8ce(0x424)+_0x4a0df9);let _0x5c37e0={'eventID':_0x2b53f2[_0x10e8ce(0x406)][_0x10e8ce(0x31b)],'data':{'unitID':_0x11bec2,'unitType':this[_0x10e8ce(0x402)],'from':_0x3ef1d4,'to':_0x4a0df9}};this[_0x10e8ce(0x20d)]['send'](_0x5c37e0,this[_0x10e8ce(0x37e)]);}};}async['_createInitialStateImpl'](_0x555c3a){const _0x59671a=_0x5bf0eb;var _0x11de98,_0xb38096,_0x5d0c64;let _0x7f7cac=await((_0x11de98=this[_0x59671a(0x33c)])==null?void 0x0:_0x11de98['loadOfflineData'](this[_0x59671a(0x37e)])),_0x40589c=(_0xb38096=_0x7f7cac==null?void 0x0:_0x7f7cac[_0x59671a(0x277)])==null?[]:_0xb38096,_0x114d0e=(_0x5d0c64=_0x7f7cac==null?void 0x0:_0x7f7cac[_0x59671a(0x4d1)])==null?null:_0x5d0c64,_0xab9273=!!(_0x114d0e!=null&&_0x114d0e['sid'])&&!!(_0x114d0e!=null&&_0x114d0e[_0x59671a(0x29f)]);this[_0x59671a(0x473)]=_0xab9273?_0x114d0e[_0x59671a(0x390)]:(0x0,_0x2b53f2['uuidv4'])(),this[_0x59671a(0x39b)]=_0xab9273?_0x114d0e['reqId']:0x0;let _0x8beb58=this[_0x59671a(0x37e)];try{this[_0x59671a(0x3d4)](_0x114d0e,_0x40589c);}catch(_0x4a0946){this['_logService'][_0x59671a(0x35f)](_0x4a0946);}let _0x19c29d=this[_0x59671a(0x48d)]();if(_0x555c3a){let _0x5d2cc8=_0x1f46ae(this[_0x59671a(0x2d5)],_0x8beb58,this['_type'],_0x114d0e,_0x40589c,_0x19c29d);return _0x5d2cc8 instanceof _0x17b236?_0x5d2cc8['_schedule']():(_0x5d2cc8 instanceof _0x2be15f||_0x5d2cc8 instanceof _0x45f3bd)&&_0x5d2cc8[_0x59671a(0x460)](),_0x5d2cc8;}return this[_0x59671a(0x2d5)]['createInstance'](_0x5a87ab,_0x8beb58,this[_0x59671a(0x402)],_0x114d0e,_0x40589c,_0x19c29d);}[_0x5bf0eb(0x3d4)](_0x2f9a58,_0x378f82){const _0x402062=_0x5bf0eb;var _0x723a3d,_0x49cd18;let _0x4fd216=this[_0x402062(0x1e8)][_0x402062(0x35d)][_0x402062(0x2cc)](this[_0x402062(0x1e8)][_0x402062(0x35d)]['getInterceptPoints']()[_0x402062(0x416)]);(_0x723a3d=_0x4fd216((_0x2f9a58==null?void 0x0:_0x2f9a58[_0x402062(0x277)])||[],null))==null||_0x723a3d[_0x402062(0x312)](_0x343085=>this[_0x402062(0x399)][_0x402062(0x3f5)](_0x343085['id'],_0x343085['params'])),(_0x49cd18=_0x4fd216(_0x378f82||[],null))==null||_0x49cd18['forEach'](_0x979c6e=>this[_0x402062(0x399)][_0x402062(0x3f5)](_0x979c6e['id'],_0x979c6e[_0x402062(0x4c7)]));}};_0x3e0a94=_0x4e6e0f([_0xe72533(0x3,(0x0,_0x2dbbd9['Inject'])(_0x2dbbd9['Injector'])),_0xe72533(0x4,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2b53f2['CompressMutationService'])),_0xe72533(0x5,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x340)])),_0xe72533(0x6,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2b53f2[_0x5bf0eb(0x495)])),_0xe72533(0x7,(0x0,_0x2dbbd9['Inject'])(_0x10b08d)),_0xe72533(0x8,_0x2dbbd9[_0x5bf0eb(0x4d0)]),_0xe72533(0x9,_0x2dbbd9[_0x5bf0eb(0x21b)]),_0xe72533(0xa,_0x2dbbd9['ICommandService']),_0xe72533(0xb,_0x2dbbd9[_0x5bf0eb(0x338)]),_0xe72533(0xc,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x268fcd)),_0xe72533(0xd,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x36e220))],_0x3e0a94);let _0xe7b4d0=class extends _0x3e0a94{constructor(_0x4afe71,_0x14b8b2,_0x50abc6,_0x20caba,_0x57cee4,_0x102ca2,_0x12d500,_0xb5295,_0x16fe1e,_0x4a6b6b,_0x1988b9,_0x533e1a,_0x1650ac,_0x4ac18b){const _0x6895e2=_0x5bf0eb;super(_0x4afe71,_0x50abc6,_0x14b8b2,_0x20caba,_0x57cee4,_0x102ca2,_0x12d500,_0xb5295,_0x16fe1e,_0x4a6b6b,_0x1988b9,_0x533e1a,_0x1650ac,_0x4ac18b),this['unitID']=_0x4afe71,this[_0x6895e2(0x3f8)]=_0x14b8b2,_0x527b5d(this,'_handlerCallback',null);}[_0x5bf0eb(0x38e)](_0x34ab09){this['_handlerCallback']=_0x34ab09;}[_0x5bf0eb(0x2e2)](){const _0x452856=_0x5bf0eb;this[_0x452856(0x394)]=null,super[_0x452856(0x2e2)]();}[_0x5bf0eb(0x48d)](){const _0x5891d3=_0x5bf0eb;let _0x3a11b3=super[_0x5891d3(0x48d)]();return _0x3a11b3[_0x5891d3(0x403)]=_0x28ae8a=>{const _0x418daa=_0x5891d3;var _0x25a12d,_0x2f0864;return(_0x25a12d=this[_0x418daa(0x394)])==null||(_0x2f0864=_0x25a12d['onTransformIME'])==null?void 0x0:_0x2f0864[_0x418daa(0x354)](_0x25a12d,_0x28ae8a);},_0x3a11b3[_0x5891d3(0x46d)]=_0xfffa7f=>{const _0x343632=_0x5891d3;var _0x304681,_0xe6940f;return(_0x304681=this[_0x343632(0x394)])==null||(_0xe6940f=_0x304681['onTransformState'])==null?void 0x0:_0xe6940f[_0x343632(0x354)](_0x304681,_0xfffa7f);},_0x3a11b3[_0x5891d3(0x377)]=_0x169f9a=>{const _0x5b72bb=_0x5891d3;var _0x3ec4dd,_0x43a9d0;return(_0x3ec4dd=this[_0x5b72bb(0x394)])==null||(_0x43a9d0=_0x3ec4dd[_0x5b72bb(0x377)])==null?void 0x0:_0x43a9d0['call'](_0x3ec4dd,_0x169f9a);},_0x3a11b3[_0x5891d3(0x493)]=_0x5e0da3=>{const _0x328181=_0x5891d3;var _0x38ccc9,_0x4eedf0;return(_0x38ccc9=this[_0x328181(0x394)])==null||(_0x4eedf0=_0x38ccc9[_0x328181(0x493)])==null?void 0x0:_0x4eedf0['call'](_0x38ccc9,_0x5e0da3);},_0x3a11b3['onTransformRemoteChangesetByIMECache']=_0x3b9804=>{const _0x437148=_0x5891d3;var _0x4e0019,_0x417281,_0x80fba0;if(!((_0x4e0019=this[_0x437148(0x394)])!=null&&_0x4e0019['onTransformRemoteChangesetByIMECache']))throw Error(_0x437148(0x429));return(_0x417281=this[_0x437148(0x394)])==null||(_0x80fba0=_0x417281[_0x437148(0x276)])==null?void 0x0:_0x80fba0['call'](_0x417281,_0x3b9804);},_0x3a11b3[_0x5891d3(0x227)]=_0x420817=>{const _0x3dcf25=_0x5891d3;var _0x5c235b,_0x25870f,_0x119956;if(!((_0x5c235b=this[_0x3dcf25(0x394)])!=null&&_0x5c235b['onTransformRemoteChangesetByStateCache']))throw Error(_0x3dcf25(0x300));return(_0x25870f=this[_0x3dcf25(0x394)])==null||(_0x119956=_0x25870f[_0x3dcf25(0x227)])==null?void 0x0:_0x119956['call'](_0x25870f,_0x420817);},_0x3a11b3;}async[_0x5bf0eb(0x226)](){const _0x295f5f=_0x5bf0eb;let _0x2bd405=await super[_0x295f5f(0x226)]();return this[_0x295f5f(0x4a6)](this['_commandService'][_0x295f5f(0x36d)]((_0x42a6d3,_0x3e9845)=>{const _0x2be856=_0x295f5f;if(_0x42a6d3['type']!==_0x2dbbd9[_0x2be856(0x2b2)][_0x2be856(0x469)]||_0x3e9845!=null&&_0x3e9845['fromCollab']||_0x3e9845!=null&&_0x3e9845[_0x2be856(0x4ba)]||_0x42a6d3['id']===_0x13703b[_0x2be856(0x37f)]['id'])return;let _0x32298a=_0x42a6d3[_0x2be856(0x4c7)];if((_0x32298a==null?void 0x0:_0x32298a['unitId'])!==this[_0x2be856(0x37e)])return;let _0x5832f7=_0x42a6d3,_0x5b8110=this[_0x2be856(0x1e8)][_0x2be856(0x35d)][_0x2be856(0x2cc)](this[_0x2be856(0x1e8)][_0x2be856(0x35d)][_0x2be856(0x261)]()[_0x2be856(0x200)])([_0x5832f7],this[_0x2be856(0x389)])||[_0x5832f7];this[_0x2be856(0x3b9)](_0x5b8110[0x0]);})),_0x2bd405;}};_0xe7b4d0=_0x4e6e0f([_0xe72533(0x3,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x3fa)])),_0xe72533(0x4,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2b53f2[_0x5bf0eb(0x46a)])),_0xe72533(0x5,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9['LocaleService'])),_0xe72533(0x6,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2b53f2[_0x5bf0eb(0x495)])),_0xe72533(0x7,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x10b08d)),_0xe72533(0x8,_0x2dbbd9[_0x5bf0eb(0x4d0)]),_0xe72533(0x9,_0x2dbbd9[_0x5bf0eb(0x21b)]),_0xe72533(0xa,_0x2dbbd9[_0x5bf0eb(0x28c)]),_0xe72533(0xb,_0x2dbbd9['IPermissionService']),_0xe72533(0xc,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x268fcd)),_0xe72533(0xd,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x36e220))],_0xe7b4d0);let _0x4db82b=class extends _0x3e0a94{constructor(_0x590fea,_0x569811,_0x2d85ef,_0x18239c,_0x38c86f,_0x4b1891,_0x24b8fa,_0x3206d1,_0x429bd5,_0x2d2c1d,_0xa4c990,_0x570fdd,_0x497a87,_0x2c5bdc,_0x3d4f52){const _0x231a67=_0x5bf0eb;super(_0x590fea,_0x2d85ef,_0x569811,_0x18239c,_0x38c86f,_0x4b1891,_0x24b8fa,_0x429bd5,_0x2d2c1d,_0xa4c990,_0x570fdd,_0x497a87,_0x2c5bdc,_0x3d4f52),this[_0x231a67(0x37e)]=_0x590fea,this['type']=_0x569811,this[_0x231a67(0x304)]=_0x3206d1;}['_createHandler'](){const _0x56e43d=_0x5bf0eb;let _0x3cfbeb=super[_0x56e43d(0x48d)]();return _0x3cfbeb[_0x56e43d(0x377)]=_0x2bdae8=>this[_0x56e43d(0x304)]['transformSelections'](_0x2bdae8),_0x3cfbeb;}async[_0x5bf0eb(0x226)](){const _0x5e47cf=_0x5bf0eb;let _0x19fd86=await super[_0x5e47cf(0x226)]();return this['disposeWithMe'](this[_0x5e47cf(0x399)][_0x5e47cf(0x36d)]((_0x23a8af,_0x217e16)=>{const _0x4e7cfb=_0x5e47cf;if(_0x23a8af[_0x4e7cfb(0x3f8)]!==_0x2dbbd9['CommandType']['MUTATION']||_0x217e16!=null&&_0x217e16[_0x4e7cfb(0x3e1)]||_0x217e16!=null&&_0x217e16[_0x4e7cfb(0x4ba)])return;let _0x4329b4=_0x23a8af['params'];if((_0x4329b4==null?void 0x0:_0x4329b4[_0x4e7cfb(0x281)])!==this[_0x4e7cfb(0x37e)])return;let _0x70b660=_0x23a8af,_0x446f14=this[_0x4e7cfb(0x1e8)][_0x4e7cfb(0x35d)][_0x4e7cfb(0x2cc)](this[_0x4e7cfb(0x1e8)]['interceptor']['getInterceptPoints']()[_0x4e7cfb(0x200)])([_0x70b660],this[_0x4e7cfb(0x389)])||[_0x70b660];this[_0x4e7cfb(0x3b9)](_0x446f14[0x0]);})),_0x19fd86;}};_0x4db82b=_0x4e6e0f([_0xe72533(0x3,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x3fa)])),_0xe72533(0x4,(0x0,_0x2dbbd9['Inject'])(_0x2b53f2[_0x5bf0eb(0x46a)])),_0xe72533(0x5,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x340)])),_0xe72533(0x6,(0x0,_0x2dbbd9['Inject'])(_0x2b53f2[_0x5bf0eb(0x495)])),_0xe72533(0x7,(0x0,_0x2dbbd9['Inject'])(_0x53e950)),_0xe72533(0x8,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x10b08d)),_0xe72533(0x9,_0x2dbbd9[_0x5bf0eb(0x4d0)]),_0xe72533(0xa,_0x2dbbd9['ILogService']),_0xe72533(0xb,_0x2dbbd9[_0x5bf0eb(0x28c)]),_0xe72533(0xc,_0x2dbbd9['IPermissionService']),_0xe72533(0xd,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x268fcd)),_0xe72533(0xe,(0x0,_0x2dbbd9['Optional'])(_0x36e220))],_0x4db82b);let _0x235c1d=(0x0,_0x2dbbd9['createIdentifier'])('univer-pro.collaboration-client.network-condition.service');function _0x1a0343(_0x4f1a07){const _0x24995c=_0x5bf0eb;let _0x59e7fb=_0x4f1a07[_0x24995c(0x43a)],_0x892557=JSON['parse'](_0x59e7fb);switch(_0x892557[_0x24995c(0x3c8)]){case _0x240cfb['CombCmd'][_0x24995c(0x49f)]:case _0x240cfb['CombCmd']['HELLO']:{let _0x4c1bd5=_0x892557[_0x24995c(0x2af)];return{..._0x892557,'data':_0x4c1bd5,'cmd':_0x892557['cmd']};}case _0x240cfb[_0x24995c(0x42b)][_0x24995c(0x4a1)]:{let _0x458ca2=_0x892557[_0x24995c(0x379)];return{..._0x892557,'data':_0x458ca2,'cmd':_0x892557['cmd']};}case _0x240cfb['CombCmd']['RECV']:{let _0x273a07=_0x892557[_0x24995c(0x434)];switch(_0x273a07[_0x24995c(0x4d9)]){case _0x2b53f2['CollaborationEvent'][_0x24995c(0x254)]:var _0x25db2c;return{..._0x892557,'data':{..._0x273a07,'data':(_0x25db2c=_0x273a07[_0x24995c(0x1fe)])==null?void 0x0:_0x25db2c['cs']},'cmd':_0x892557['cmd']};case _0x2b53f2[_0x24995c(0x406)]['CHANGESET_ACK']:var _0x691bdf;return{..._0x892557,'data':{..._0x273a07,'data':(_0x691bdf=_0x273a07[_0x24995c(0x41d)])==null?void 0x0:_0x691bdf['cs']},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2['CollaborationEvent'][_0x24995c(0x44a)]:var _0x2e1b21;return{..._0x892557,'data':{..._0x273a07,'data':(_0x2e1b21=_0x273a07[_0x24995c(0x229)])==null?void 0x0:_0x2e1b21['cs']},'cmd':_0x892557['cmd']};case _0x2b53f2[_0x24995c(0x406)]['CHANGESET_REJ']:var _0x182e4d;return{..._0x892557,'data':{..._0x273a07,'data':(_0x182e4d=_0x273a07[_0x24995c(0x203)])==null?void 0x0:_0x182e4d['cs']},'cmd':_0x892557['cmd']};case _0x2b53f2['CollaborationEvent'][_0x24995c(0x437)]:var _0x45181b;return{..._0x892557,'data':{..._0x273a07,'data':(_0x45181b=_0x273a07[_0x24995c(0x481)])==null?void 0x0:_0x45181b['cs']},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2['CollaborationEvent'][_0x24995c(0x2db)]:return{..._0x892557,'data':{..._0x273a07,'data':_0x273a07['updateCursorEvent']},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2['CollaborationEvent']['USERS_ENTER']:return{..._0x892557,'data':{..._0x273a07,'data':_0x273a07[_0x24995c(0x24e)]},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2[_0x24995c(0x406)][_0x24995c(0x4c8)]:return{..._0x892557,'data':{..._0x273a07,'data':_0x273a07[_0x24995c(0x247)]},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2['CollaborationEvent'][_0x24995c(0x328)]:return{..._0x892557,'data':{..._0x273a07,'data':_0x273a07[_0x24995c(0x2b4)]},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2[_0x24995c(0x406)][_0x24995c(0x21a)]:case _0x2b53f2[_0x24995c(0x406)][_0x24995c(0x3ff)]:return{..._0x892557,'data':{..._0x273a07,'data':_0x273a07[_0x24995c(0x1fc)]},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2[_0x24995c(0x406)][_0x24995c(0x2c9)]:return{..._0x892557,'data':{..._0x273a07,'data':_0x273a07[_0x24995c(0x2b4)]},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2[_0x24995c(0x406)]['MSG_FOR_ERROR']:return{..._0x892557,'data':_0x273a07,'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2[_0x24995c(0x406)][_0x24995c(0x316)]:return{..._0x892557,'data':{..._0x273a07,'data':_0x273a07[_0x24995c(0x2e8)]},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2['CollaborationEvent'][_0x24995c(0x246)]:return{..._0x892557,'data':{..._0x273a07,'data':_0x273a07[_0x24995c(0x3b3)]},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2[_0x24995c(0x406)][_0x24995c(0x368)]:return{..._0x892557,'data':{..._0x273a07,'data':_0x273a07[_0x24995c(0x2f7)]},'cmd':_0x892557[_0x24995c(0x3c8)]};case _0x2b53f2['CollaborationEvent'][_0x24995c(0x2d6)]:return{..._0x892557,'data':{..._0x273a07,'data':_0x273a07[_0x24995c(0x456)]},'cmd':_0x892557[_0x24995c(0x3c8)]};default:return _0x892557;}}default:return _0x892557;}}function _0x600b81(_0x615d2){const _0x3cd6b1=_0x5bf0eb;switch(_0x615d2[_0x3cd6b1(0x3c8)]){case _0x240cfb[_0x3cd6b1(0x42b)][_0x3cd6b1(0x49f)]:case _0x240cfb['CombCmd']['HELLO']:return JSON[_0x3cd6b1(0x337)]({'cmd':_0x615d2[_0x3cd6b1(0x3c8)],'routeKey':_0x615d2['routeKey']});case _0x240cfb['CombCmd'][_0x3cd6b1(0x249)]:{let _0x50a520;switch(_0x615d2[_0x3cd6b1(0x43a)][_0x3cd6b1(0x4d9)]){case _0x2b53f2[_0x3cd6b1(0x406)][_0x3cd6b1(0x2db)]:_0x50a520={'eventID':_0x2b53f2['CollaborationEvent'][_0x3cd6b1(0x2db)],'updateCursorEvent':_0x615d2[_0x3cd6b1(0x43a)][_0x3cd6b1(0x43a)]};break;case _0x2b53f2[_0x3cd6b1(0x406)][_0x3cd6b1(0x4c8)]:_0x50a520={'eventID':_0x2b53f2[_0x3cd6b1(0x406)][_0x3cd6b1(0x4c8)],'leaveEvent':_0x615d2['data'][_0x3cd6b1(0x43a)]};break;case _0x2b53f2[_0x3cd6b1(0x406)]['USERS_ENTER']:_0x50a520={'eventID':_0x2b53f2['CollaborationEvent'][_0x3cd6b1(0x3eb)],'joinEvent':_0x615d2[_0x3cd6b1(0x43a)][_0x3cd6b1(0x43a)]};break;case _0x2b53f2[_0x3cd6b1(0x406)]['LIVESHARE_NEW_HOST']:_0x50a520={'eventID':_0x2b53f2[_0x3cd6b1(0x406)][_0x3cd6b1(0x328)],'liveShareNewHost':_0x615d2[_0x3cd6b1(0x43a)][_0x3cd6b1(0x43a)]};break;case _0x2b53f2[_0x3cd6b1(0x406)][_0x3cd6b1(0x3ff)]:_0x50a520={'eventID':_0x2b53f2[_0x3cd6b1(0x406)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x615d2[_0x3cd6b1(0x43a)][_0x3cd6b1(0x43a)]};break;case _0x2b53f2['CollaborationEvent'][_0x3cd6b1(0x2c9)]:_0x50a520={'eventID':_0x2b53f2['CollaborationEvent'][_0x3cd6b1(0x2c9)],'liveShareTerminate':_0x615d2['data'][_0x3cd6b1(0x43a)]};break;case _0x2b53f2[_0x3cd6b1(0x406)][_0x3cd6b1(0x2ab)]:_0x50a520={'eventID':_0x2b53f2[_0x3cd6b1(0x406)][_0x3cd6b1(0x2ab)],'liveShareRequestHost':_0x615d2['data']['data']};break;case _0x2b53f2[_0x3cd6b1(0x406)][_0x3cd6b1(0x21a)]:_0x50a520={'eventID':_0x2b53f2['CollaborationEvent'][_0x3cd6b1(0x21a)]};break;default:_0x50a520={'eventID':_0x615d2['data'][_0x3cd6b1(0x4d9)]};}return JSON[_0x3cd6b1(0x337)]({'cmd':_0x615d2['cmd'],'routeKey':_0x615d2[_0x3cd6b1(0x231)],'collaMsg':_0x50a520});}case _0x240cfb['CombCmd'][_0x3cd6b1(0x4a1)]:return JSON[_0x3cd6b1(0x337)]({'cmd':_0x615d2[_0x3cd6b1(0x3c8)],'routeKey':_0x615d2[_0x3cd6b1(0x231)],'joinReq':_0x615d2[_0x3cd6b1(0x43a)]});case _0x240cfb[_0x3cd6b1(0x42b)]['LEAVE']:return JSON[_0x3cd6b1(0x337)]({'cmd':_0x615d2[_0x3cd6b1(0x3c8)],'routeKey':_0x615d2['routeKey'],'leaveReq':_0x615d2[_0x3cd6b1(0x43a)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}let _0x18a142=(0x0,_0x2dbbd9[_0x5bf0eb(0x2c8)])(_0x5bf0eb(0x4cf));function _0x26ebb7(_0x31d87d,_0x1b9765,_0x3c3256){return _0x31d87d+'/'+_0x1b9765+'/unit/'+_0x3c3256+'/new_changes';}let _0x47e4bb=class extends _0x2dbbd9[_0x5bf0eb(0x2e6)]{constructor(_0x1d9a79,_0x2194dc,_0x1af019,_0x41ef6a,_0x172187){const _0x1cb35b=_0x5bf0eb;super(),this[_0x1cb35b(0x2d5)]=_0x1d9a79,this[_0x1cb35b(0x21f)]=_0x2194dc,this['_configService']=_0x1af019,this[_0x1cb35b(0x236)]=_0x41ef6a,this['_snapshotServerService']=_0x172187;}[_0x5bf0eb(0x3ba)](_0x3cee2e){const _0x32390d=_0x5bf0eb;let _0x2eb4d6=this['_injector'][_0x32390d(0x42f)](_0x5f56f9['ISocketService']);if(!_0x2eb4d6)throw Error(_0x32390d(0x335));let _0x569295=_0x2eb4d6[_0x32390d(0x268)](_0x3cee2e);if(!_0x569295)throw Error(_0x32390d(0x232));let _0x23edd7=new _0x2dbbd9[(_0x32390d(0x31d))](),_0x549ff0=new _0x4f3716[(_0x32390d(0x33a))]();_0x23edd7['add'](_0x569295[_0x32390d(0x40c)][_0x32390d(0x31f)](_0x5108ac=>_0x549ff0[_0x32390d(0x274)](_0x5108ac))),_0x23edd7['add']((0x0,_0x2dbbd9['toDisposable'])(()=>_0x549ff0['complete']()));let _0x10f574=new _0x4f3716['Subject']();_0x23edd7['add'](_0x569295['error$'][_0x32390d(0x31f)](_0x400321=>_0x10f574[_0x32390d(0x274)](_0x400321))),_0x23edd7[_0x32390d(0x382)]((0x0,_0x2dbbd9[_0x32390d(0x1ee)])(()=>_0x10f574[_0x32390d(0x311)]()));let _0x2cbadc=new _0x4f3716[(_0x32390d(0x33a))]();_0x23edd7['add'](_0x569295['message$'][_0x32390d(0x31f)](_0x3d4418=>{const _0x129c28=_0x32390d;let _0x1ba4e0=_0x1a0343(_0x3d4418);_0x2cbadc[_0x129c28(0x274)](_0x1ba4e0);})),_0x23edd7['add']((0x0,_0x2dbbd9['toDisposable'])(()=>_0x2cbadc[_0x32390d(0x311)]()));let _0x4db891,_0x29e820=()=>{const _0x107da2=_0x32390d;_0x10f574[_0x107da2(0x274)](new Event(_0x107da2(0x4db))),_0x549ff0[_0x107da2(0x274)](new Event(_0x107da2(0x4db))),_0x4db891['close']();};return _0x4db891={'memberID':'','close$':_0x549ff0[_0x32390d(0x2e9)](),'error$':_0x10f574[_0x32390d(0x2e9)](),'open$':_0x569295[_0x32390d(0x3bc)],'message$':_0x2cbadc['asObservable'](),'send':_0x535372=>{const _0xde1262=_0x32390d;if(_0x535372[_0xde1262(0x3c8)]===_0x240cfb[_0xde1262(0x42b)][_0xde1262(0x249)]){if(_0x535372[_0xde1262(0x43a)][_0xde1262(0x4d9)]===_0x2b53f2[_0xde1262(0x406)]['SUBMIT_CHANGESET']){this[_0xde1262(0x242)](_0x4db891,_0x535372['data'])[_0xde1262(0x366)](_0x180e37=>{const _0x520b91=_0xde1262;this['_logService'][_0x520b91(0x35f)](_0x180e37),_0x29e820();});return;}if(_0x535372['data'][_0xde1262(0x4d9)]===_0x2b53f2[_0xde1262(0x406)][_0xde1262(0x31b)]){let _0x2c4326=_0x535372[_0xde1262(0x43a)];this[_0xde1262(0x1f8)](_0x2c4326)[_0xde1262(0x20c)](_0x1102fd=>{const _0x1b2400=_0xde1262;_0x2cbadc['next']({'cmd':_0x240cfb['CombCmd'][_0x1b2400(0x4aa)],'code':_0x240cfb[_0x1b2400(0x447)]['OK'],'routeKey':_0x2c4326[_0x1b2400(0x43a)][_0x1b2400(0x37e)],'routeType':'','data':{'eventID':_0x2b53f2[_0x1b2400(0x406)][_0x1b2400(0x421)],'data':{'changesets':_0x1102fd}}});})['catch'](_0x540003=>{const _0x4e6630=_0xde1262;this[_0x4e6630(0x236)][_0x4e6630(0x35f)](_0x540003),_0x29e820();});return;}}_0x569295[_0xde1262(0x4eb)](_0x600b81(_0x535372));},'close':()=>{const _0x33d259=_0x32390d;_0x569295[_0x33d259(0x243)](),_0x23edd7[_0x33d259(0x2e2)]();}},_0x4db891;}async[_0x5bf0eb(0x242)](_0x26d2c8,_0x57cff8){const _0x3006d0=_0x5bf0eb;var _0x3d905f;let {unitType:_0x478502,unitID:_0x375afd,changeset:_0x45e806}=_0x57cff8['data'],_0x3cc297={'unitID':_0x375afd,'memberID':_0x26d2c8['memberID'],'type':_0x478502,'changeset':(0x0,_0x2b53f2[_0x3006d0(0x49b)])(_0x45e806)},_0x341b11=this[_0x3006d0(0x266)][_0x3006d0(0x46c)](_0x2a84dd),_0x547d14=_0x26ebb7((_0x3d905f=_0x341b11==null?void 0x0:_0x341b11[_0x3006d0(0x420)])==null?_0x3006d0(0x331):_0x3d905f,_0x478502,_0x375afd);try{await this[_0x3006d0(0x21f)]['post'](_0x547d14,{'body':_0x3cc297});}catch(_0x1d5d38){throw this[_0x3006d0(0x236)][_0x3006d0(0x35f)](_0x3006d0(0x2d4),_0x3006d0(0x320)),_0x1d5d38;}}async['_fetchMissChangesets'](_0x7f17e3){const _0x2b2ac3=_0x5bf0eb;let {unitID:_0x359163,from:_0x2e40bb,to:_0xa29691,unitType:_0x701a4f}=_0x7f17e3[_0x2b2ac3(0x43a)];return(await this[_0x2b2ac3(0x482)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x359163,'type':_0x701a4f,'from':_0x2e40bb,'to':_0xa29691}))['changesets'][_0x2b2ac3(0x1e3)](_0x25b68f=>((_0x25b68f[_0x2b2ac3(0x277)]===null||_0x25b68f['mutations']===void 0x0)&&(_0x25b68f['mutations']=[]),_0x25b68f));}};_0x47e4bb=_0x4e6e0f([_0xe72533(0x0,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9['Injector'])),_0xe72533(0x1,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x5f56f9[_0x5bf0eb(0x207)])),_0xe72533(0x2,_0x2dbbd9[_0x5bf0eb(0x488)]),_0xe72533(0x3,_0x2dbbd9[_0x5bf0eb(0x21b)]),_0xe72533(0x4,_0x2b53f2[_0x5bf0eb(0x28a)])],_0x47e4bb);let _0x1d8d49=class extends _0x2dbbd9[_0x5bf0eb(0x2e6)]{get[_0x5bf0eb(0x2ec)](){const _0x41acc5=_0x5bf0eb;return this[_0x41acc5(0x3c3)][_0x41acc5(0x2fe)]();}constructor(_0x8b979e,_0x4af259,_0x3b22fe,_0x27a2a2,_0x50e67a,_0x362bda){const _0x277039=_0x5bf0eb;super(),this['_injector']=_0x8b979e,this[_0x277039(0x236)]=_0x4af259,this[_0x277039(0x266)]=_0x3b22fe,this[_0x277039(0x2a9)]=_0x27a2a2,this[_0x277039(0x392)]=_0x50e67a,this[_0x277039(0x396)]=_0x362bda,_0x527b5d(this,_0x277039(0x3c3),new _0x4f3716[(_0x277039(0x391))](void 0x0)),_0x527b5d(this,'socket$',this[_0x277039(0x3c3)][_0x277039(0x2e9)]()),_0x527b5d(this,_0x277039(0x28d),null),_0x527b5d(this,_0x277039(0x280),new Map()),_0x527b5d(this,'_status$',new _0x4f3716[(_0x277039(0x391))](0x0)),_0x527b5d(this,'status$',this[_0x277039(0x343)][_0x277039(0x2e9)]()),_0x527b5d(this,'_socketReady',!0x1),_0x527b5d(this,'_retryConnectingTimer',void 0x0),_0x527b5d(this,'_retryCount',0x0),_0x527b5d(this,'_sendHeartbeatTimer',void 0x0),_0x527b5d(this,_0x277039(0x454),void 0x0),this[_0x277039(0x39e)]();}[_0x5bf0eb(0x39e)](){const _0x6a70ee=_0x5bf0eb;this[_0x6a70ee(0x396)]&&this[_0x6a70ee(0x4a6)](this[_0x6a70ee(0x396)]['online$']['subscribe'](_0x543eb7=>{const _0x1665f3=_0x6a70ee;_0x543eb7&&!this[_0x1665f3(0x2ec)]&&this[_0x1665f3(0x430)](),_0x543eb7||this[_0x1665f3(0x452)]();}));}['dispose'](){const _0x3e76ae=_0x5bf0eb;super['dispose'](),this[_0x3e76ae(0x4a0)](),this['_clearTimeoutTimer'](),this[_0x3e76ae(0x2d9)](),this[_0x3e76ae(0x280)]['forEach'](_0x1e11f9=>_0x1e11f9[_0x3e76ae(0x2e2)]()),this['_sessions'][_0x3e76ae(0x4b9)](),this[_0x3e76ae(0x343)][_0x3e76ae(0x311)]();}async[_0x5bf0eb(0x3b8)](_0x27a9cf){const _0x49573b=_0x5bf0eb;if(this[_0x49573b(0x280)]['has'](_0x27a9cf))return this[_0x49573b(0x280)][_0x49573b(0x42f)](_0x27a9cf);this[_0x49573b(0x1eb)]();let _0x504e39=this[_0x49573b(0x2d5)][_0x49573b(0x408)](_0x2fe3e1,_0x27a9cf,this[_0x49573b(0x3c3)][_0x49573b(0x2e9)]());return this[_0x49573b(0x280)][_0x49573b(0x41a)](_0x27a9cf,_0x504e39),_0x504e39;}['closeSession'](_0x271b00){const _0x222f6c=_0x5bf0eb;let _0x54faa5=this[_0x222f6c(0x280)][_0x222f6c(0x42f)](_0x271b00);if(_0x54faa5&&(this[_0x222f6c(0x280)][_0x222f6c(0x4d5)](_0x271b00),_0x54faa5['close']()),!this['_sessions'][_0x222f6c(0x2a7)]){var _0x368cc8;(_0x368cc8=this['_socket'])==null||_0x368cc8[_0x222f6c(0x243)]();}}[_0x5bf0eb(0x430)](){const _0x2a6b08=_0x5bf0eb;this['_retryCount']=0x0,this[_0x2a6b08(0x4a0)](),this[_0x2a6b08(0x3c6)]();}[_0x5bf0eb(0x4a0)](){const _0x5897fd=_0x5bf0eb;this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x5897fd(0x3d5)]),this[_0x5897fd(0x3d5)]=null);}async[_0x5bf0eb(0x2a6)](){const _0x1bf4a9=_0x5bf0eb;var _0xfbcf52;let _0x22ebf4=this[_0x1bf4a9(0x266)][_0x1bf4a9(0x46c)](_0x2a84dd),_0x5b9f69=(_0xfbcf52=_0x22ebf4==null?void 0x0:_0x22ebf4[_0x1bf4a9(0x425)])==null?_0xcb84c1:_0xfbcf52,_0x28780b=await this['_socketService'][_0x1bf4a9(0x268)](_0x5b9f69);return this[_0x1bf4a9(0x28d)]=_0x28780b,_0x28780b;}async['_tryEnsureSocket'](){const _0x4bda8b=_0x5bf0eb;try{var _0x3a4f3a,_0x385430;let _0x5b5a71=(_0x3a4f3a=(_0x385430=this[_0x4bda8b(0x2ec)])==null?this['_candidateSocket']:_0x385430)==null?await this[_0x4bda8b(0x2a6)]():_0x3a4f3a;if(_0x5b5a71){let _0x354ad6=_0x5b5a71[_0x4bda8b(0x4eb)];_0x5b5a71[_0x4bda8b(0x4eb)]=_0x25909d=>(_0x25909d[_0x4bda8b(0x3c8)]!==_0x240cfb['CombCmd']['LEAVE']&&this['_rescheduleHeartbeat'](),_0x354ad6[_0x4bda8b(0x2a3)](_0x5b5a71,[_0x25909d])),_0x5b5a71[_0x4bda8b(0x35c)][_0x4bda8b(0x31f)](_0x1e12ea=>this[_0x4bda8b(0x2ce)](_0x5b5a71,_0x1e12ea)),_0x5b5a71[_0x4bda8b(0x225)][_0x4bda8b(0x4be)]((0x0,_0x2ab3d8[_0x4bda8b(0x4ca)])(0x1))[_0x4bda8b(0x31f)](_0x22ba89=>this[_0x4bda8b(0x236)][_0x4bda8b(0x35f)](_0x4bda8b(0x4d2),_0x22ba89)),_0x5b5a71['open$'][_0x4bda8b(0x4be)]((0x0,_0x2ab3d8[_0x4bda8b(0x4ca)])(0x1))[_0x4bda8b(0x31f)](()=>{this['_onConnectionOpen'](_0x5b5a71);}),_0x5b5a71[_0x4bda8b(0x40c)][_0x4bda8b(0x4be)]((0x0,_0x2ab3d8[_0x4bda8b(0x4ca)])(0x1))['subscribe'](_0x1ecd16=>{const _0x49e7a5=_0x4bda8b;this['_logService'][_0x49e7a5(0x265)]('[CollaborationSessionService]','socket\x20close',_0x1ecd16),this[_0x49e7a5(0x4b5)]();});}}catch(_0x28d7ae){this[_0x4bda8b(0x236)][_0x4bda8b(0x35f)](_0x28d7ae),this[_0x4bda8b(0x4b5)]();}}[_0x5bf0eb(0x47c)](_0x3a8cef){const _0x3b7a49=_0x5bf0eb;this[_0x3b7a49(0x236)][_0x3b7a49(0x265)](_0x3b7a49(0x4cd),_0x3b7a49(0x1f4)),_0x3a8cef[_0x3b7a49(0x4eb)]({'cmd':_0x240cfb[_0x3b7a49(0x42b)]['HELLO']}),this[_0x3b7a49(0x271)]();}['_onOffline'](){const _0x556005=_0x5bf0eb;this['_socketReady']=!0x1,this[_0x556005(0x28d)]=null,this[_0x556005(0x343)]['next'](0x2),this[_0x556005(0x3c3)]['next'](null),this[_0x556005(0x4d3)](),this[_0x556005(0x2d9)]();}[_0x5bf0eb(0x4b5)](){const _0x1f1ea2=_0x5bf0eb;var _0x1b1270;this[_0x1f1ea2(0x452)](),this['_retryCount']<((_0x1b1270=this['_configService'][_0x1f1ea2(0x46c)](_0x1f1ea2(0x472)))==null?0x3:_0x1b1270)?(this[_0x1f1ea2(0x392)][_0x1f1ea2(0x216)]({'id':_0x1f1ea2(0x342)}),this[_0x1f1ea2(0x3c6)]()):this[_0x1f1ea2(0x392)][_0x1f1ea2(0x216)]({'id':_0x1f1ea2(0x2a5)});}[_0x5bf0eb(0x3c6)](){const _0x1e6f7d=_0x5bf0eb;var _0xe2042e;let _0x51be22=this['_retryCount'],_0x1671aa=this[_0x1e6f7d(0x266)][_0x1e6f7d(0x46c)](_0x2a84dd),_0x5dcf73=_0x51be22===0x0?0x0:((_0xe2042e=_0x1671aa==null?void 0x0:_0x1671aa['retryConnectingInterval'])==null?0x4e20:_0xe2042e)*0x2**_0x51be22;this[_0x1e6f7d(0x3d5)]=setTimeout(()=>{const _0x9ec16d=_0x1e6f7d;clearTimeout(this[_0x9ec16d(0x3d5)]),this[_0x9ec16d(0x3d5)]=null,this[_0x9ec16d(0x1eb)]();},_0x5dcf73),this[_0x1e6f7d(0x1e9)]+=0x1;}[_0x5bf0eb(0x2ce)](_0x1b7ba5,_0x31a1ec){const _0x91e95c=_0x5bf0eb;let {cmd:_0x42cd8b}=_0x31a1ec;_0x42cd8b===_0x240cfb[_0x91e95c(0x42b)][_0x91e95c(0x471)]&&!this[_0x91e95c(0x295)]&&(_0x1b7ba5['memberID']=_0x31a1ec[_0x91e95c(0x43a)][_0x91e95c(0x260)],this[_0x91e95c(0x3c3)][_0x91e95c(0x274)](_0x1b7ba5),this[_0x91e95c(0x343)]['next'](0x3),this[_0x91e95c(0x295)]=!0x0,this[_0x91e95c(0x28d)]=null),_0x42cd8b===_0x240cfb[_0x91e95c(0x42b)][_0x91e95c(0x49f)]&&this['_clearTimeoutTimer'](),this['_rescheduleHeartbeat']();}[_0x5bf0eb(0x271)](){const _0x10bd49=_0x5bf0eb;var _0x525e26;this[_0x10bd49(0x2d9)](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x10bd49(0x2b8)](),(_0x525e26=this['_configService']['getConfig'](_0x10bd49(0x414)))==null?0x7530:_0x525e26);}[_0x5bf0eb(0x2b8)](){const _0x5c6a53=_0x5bf0eb;this[_0x5c6a53(0x2ec)]['send']({'cmd':_0x240cfb[_0x5c6a53(0x42b)]['HEARTBEAT']}),this[_0x5c6a53(0x294)]();}[_0x5bf0eb(0x294)](){const _0x43a4c8=_0x5bf0eb;var _0x11322d;this[_0x43a4c8(0x454)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x11322d=this[_0x43a4c8(0x266)][_0x43a4c8(0x46c)](_0x43a4c8(0x4d7)))==null?_0x39fe51:_0x11322d);}[_0x5bf0eb(0x2d9)](){const _0x5f5d2f=_0x5bf0eb;this[_0x5f5d2f(0x3d6)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x5f5d2f(0x3d6)]=null);}[_0x5bf0eb(0x4d3)](){const _0x4dda9f=_0x5bf0eb;this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x4dda9f(0x454)]=null);}};_0x1d8d49=_0x4e6e0f([_0xe72533(0x0,(0x0,_0x2dbbd9['Inject'])(_0x2dbbd9[_0x5bf0eb(0x3fa)])),_0xe72533(0x1,_0x2dbbd9['ILogService']),_0xe72533(0x2,_0x2dbbd9[_0x5bf0eb(0x488)]),_0xe72533(0x3,_0x18a142),_0xe72533(0x4,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x10b08d)),_0xe72533(0x5,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x235c1d))],_0x1d8d49);let _0x573fbd=class extends _0x2dbbd9[_0x5bf0eb(0x2ed)]{constructor(_0x4b5ebf,_0xd0cf7e,_0x513c6f,_0x145669){const _0x3f7969=_0x5bf0eb;var _0x259e66;super(),this[_0x3f7969(0x2d5)]=_0x4b5ebf,this[_0x3f7969(0x500)]=_0xd0cf7e,this[_0x3f7969(0x266)]=_0x513c6f,this[_0x3f7969(0x389)]=_0x145669,_0x527b5d(this,'_entities',new Map()),_0x527b5d(this,_0x3f7969(0x2a1),new _0x4f3716[(_0x3f7969(0x33a))]()),_0x527b5d(this,'entityInit$',this[_0x3f7969(0x2a1)]['asObservable']()),((_0x259e66=this[_0x3f7969(0x266)][_0x3f7969(0x46c)](_0x3f7969(0x2ca)))==null?void 0x0:_0x259e66[_0x3f7969(0x36b)])!==!0x1&&this[_0x3f7969(0x226)]();}[_0x5bf0eb(0x2e2)](){const _0x3f4cb6=_0x5bf0eb;super[_0x3f4cb6(0x2e2)](),this['_entities']['forEach'](_0x522d3d=>_0x522d3d[_0x3f4cb6(0x2e2)]()),this['_entities']['clear']();}[_0x5bf0eb(0x4b0)](_0x3eb622){const _0x4892ae=_0x5bf0eb;var _0x142296;return(_0x142296=this['_entities'][_0x4892ae(0x42f)](_0x3eb622))==null?null:_0x142296;}['getCollabEntity$'](_0x5557b2){const _0xfb0768=_0x5bf0eb;let _0x531859=this[_0xfb0768(0x4b0)](_0x5557b2);return _0x531859?(0x0,_0x4f3716['of'])(_0x531859):this[_0xfb0768(0x2a1)][_0xfb0768(0x4be)]((0x0,_0x2ab3d8[_0xfb0768(0x422)])(_0x42fbf5=>_0x42fbf5[_0xfb0768(0x37e)]===_0x5557b2));}[_0x5bf0eb(0x4d4)](_0x51339a){const _0x1772d9=_0x5bf0eb;return(0x0,_0x4f3716[_0x1772d9(0x45b)])(this[_0x1772d9(0x21d)](_0x51339a)[_0x1772d9(0x4be)]((0x0,_0x2ab3d8[_0x1772d9(0x1e3)])(()=>void 0x0)));}[_0x5bf0eb(0x226)](){const _0x46b0c2=_0x5bf0eb;this[_0x46b0c2(0x389)][_0x46b0c2(0x220)](_0x2dbbd9[_0x46b0c2(0x442)][_0x46b0c2(0x20a)])['pipe']((0x0,_0x4f3716[_0x46b0c2(0x4fc)])(this[_0x46b0c2(0x3ea)]),(0x0,_0x2ab3d8['delay'])(0x10))[_0x46b0c2(0x31f)](async _0x42ea0f=>{const _0x4bc554=_0x46b0c2;let _0x9f9eb8=_0x42ea0f['unit'][_0x4bc554(0x3a7)](),_0x348b63=await this['_startCollaboration'](_0x9f9eb8,_0x2dbbd9[_0x4bc554(0x442)][_0x4bc554(0x20a)]);this[_0x4bc554(0x3a4)]['set'](_0x9f9eb8,_0x348b63);}),this['_univerInstanceService'][_0x46b0c2(0x220)](_0x2dbbd9[_0x46b0c2(0x442)][_0x46b0c2(0x477)])[_0x46b0c2(0x4be)]((0x0,_0x4f3716[_0x46b0c2(0x4fc)])(this[_0x46b0c2(0x3ea)]),(0x0,_0x2ab3d8['delay'])(0x10))[_0x46b0c2(0x4be)]((0x0,_0x2ab3d8[_0x46b0c2(0x422)])(_0x12afdb=>!_0x12afdb['unit'][_0x46b0c2(0x3a7)]()[_0x46b0c2(0x4f3)]('__')))['subscribe'](async _0x2802db=>{const _0x55cbd2=_0x46b0c2;let _0x519443=_0x2802db[_0x55cbd2(0x400)]['getUnitId'](),_0x5e4177=await this[_0x55cbd2(0x3c4)](_0x519443,_0x2dbbd9[_0x55cbd2(0x442)]['UNIVER_DOC']);this[_0x55cbd2(0x3a4)]['set'](_0x519443,_0x5e4177);}),(0x0,_0x4f3716[_0x46b0c2(0x42a)])(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x2dbbd9['UniverInstanceType'][_0x46b0c2(0x20a)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x2dbbd9[_0x46b0c2(0x442)][_0x46b0c2(0x477)]))['pipe']((0x0,_0x4f3716['takeUntil'])(this[_0x46b0c2(0x3ea)]))[_0x46b0c2(0x31f)](_0x454b46=>{const _0x2d3499=_0x46b0c2;let _0x5c87e2=_0x454b46[_0x2d3499(0x3a7)](),_0x332d95=this[_0x2d3499(0x3a4)][_0x2d3499(0x42f)](_0x5c87e2);_0x332d95&&(_0x332d95[_0x2d3499(0x2e2)](),this[_0x2d3499(0x3a4)][_0x2d3499(0x4d5)](_0x5c87e2));});}async[_0x5bf0eb(0x3c4)](_0x5a75db,_0x2f6765){const _0x351a2b=_0x5bf0eb;let _0x36c05b=await this[_0x351a2b(0x500)][_0x351a2b(0x3b8)](_0x5a75db),_0x95a8d0=this[_0x351a2b(0x2d5)]['createInstance'](this[_0x351a2b(0x20b)](_0x2f6765),_0x5a75db,_0x2f6765,_0x36c05b);return await _0x95a8d0['init'](),this[_0x351a2b(0x2a1)][_0x351a2b(0x274)](_0x95a8d0),_0x95a8d0;}[_0x5bf0eb(0x20b)](_0x53973c){const _0x23eab9=_0x5bf0eb;switch(_0x53973c){case _0x2dbbd9[_0x23eab9(0x442)][_0x23eab9(0x477)]:return _0xe7b4d0;case _0x2dbbd9[_0x23eab9(0x442)][_0x23eab9(0x20a)]:return _0x4db82b;default:throw Error(_0x23eab9(0x48f)+_0x53973c);}}};_0x573fbd=_0x4e6e0f([_0xe72533(0x0,(0x0,_0x2dbbd9['Inject'])(_0x2dbbd9[_0x5bf0eb(0x3fa)])),_0xe72533(0x1,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x1d8d49)),_0xe72533(0x2,_0x2dbbd9[_0x5bf0eb(0x488)]),_0xe72533(0x3,_0x2dbbd9['IUniverInstanceService'])],_0x573fbd);var _0x36adc3='@univerjs-pro/collaboration-client',_0xc8583d=_0x5bf0eb(0x480);let _0x2af5f4=class extends _0x2dbbd9[_0x5bf0eb(0x2e6)]{constructor(_0x1911a8,_0x572a12){const _0x4ce31f=_0x5bf0eb;super(),this['_univerInstanceService']=_0x1911a8,this[_0x4ce31f(0x266)]=_0x572a12,this[_0x4ce31f(0x226)]();}['_init'](){const _0x200792=_0x5bf0eb;this[_0x200792(0x4a6)](this[_0x200792(0x389)][_0x200792(0x4e5)][_0x200792(0x31f)](()=>{const _0x3f3813=_0x200792;var _0x55b724;let _0x141fec=this[_0x3f3813(0x389)][_0x3f3813(0x350)](),_0x20ecca=(_0x55b724=this[_0x3f3813(0x266)][_0x3f3813(0x46c)](_0x3f3813(0x423)))==null?_0x3f3813(0x2b0):_0x55b724;_0x141fec instanceof _0x2dbbd9[_0x3f3813(0x27d)]&&(_0x20ecca=_0x141fec['name']),document[_0x3f3813(0x210)]=_0x20ecca;}));}};_0x2af5f4=_0x4e6e0f([_0xe72533(0x0,_0x2dbbd9[_0x5bf0eb(0x4d0)]),_0xe72533(0x1,_0x2dbbd9[_0x5bf0eb(0x488)])],_0x2af5f4);let _0x39e94c=class{constructor(_0x373adc,_0x34b397,_0x17d7bd){const _0x265529=_0x5bf0eb;this[_0x265529(0x266)]=_0x373adc,this['_httpService']=_0x34b397,this[_0x265529(0x36c)]=_0x17d7bd,this[_0x265529(0x1fd)]();}[_0x5bf0eb(0x1fd)](){const _0x253465=_0x5bf0eb;this[_0x253465(0x21f)][_0x253465(0x41b)]({'priority':0x1,'interceptor':(_0x872292,_0x4ed0bd)=>_0x4ed0bd(_0x872292)[_0x253465(0x4be)]((0x0,_0x4f3716[_0x253465(0x248)])(async _0x10a415=>{const _0x1438c4=_0x253465;let _0x303f08=_0x10a415;if(_0x303f08[_0x1438c4(0x308)]===0x191){if(typeof window>'u')throw Error(_0x1438c4(0x2d3));if(window[_0x1438c4(0x24f)](this[_0x1438c4(0x36c)]['t'](_0x1438c4(0x25a)))){let _0x16ac41=window[_0x1438c4(0x3ca)](window['location'][_0x1438c4(0x3bb)]);window[_0x1438c4(0x39d)][_0x1438c4(0x3bb)]=this['_getLoginPath']()+_0x1438c4(0x476)+_0x16ac41;}}return _0x303f08;}))});}['_getLoginPath'](){const _0xef5fe2=_0x5bf0eb;var _0x282d5a;let _0x438ae5=this['_configService'][_0xef5fe2(0x46c)](_0x2a84dd);return(_0x282d5a=_0x438ae5==null?void 0x0:_0x438ae5[_0xef5fe2(0x204)])==null?_0xef5fe2(0x209):_0x282d5a;}};_0x39e94c=_0x4e6e0f([_0xe72533(0x0,_0x2dbbd9[_0x5bf0eb(0x488)]),_0xe72533(0x1,(0x0,_0x2dbbd9['Inject'])(_0x5f56f9[_0x5bf0eb(0x207)])),_0xe72533(0x2,(0x0,_0x2dbbd9['Inject'])(_0x2dbbd9['LocaleService']))],_0x39e94c);let _0x2d37b7=class extends _0x2dbbd9[_0x5bf0eb(0x2e6)]{constructor(_0x354580,_0xd6f4a2){const _0x5398e5=_0x5bf0eb;super(),this[_0x5398e5(0x27e)]=_0x354580,this['_configService']=_0xd6f4a2,_0x527b5d(this,_0x5398e5(0x2e7),!0x1),this['_initMergeInterceptor']();}['_initMergeInterceptor'](){const _0x2f11f3=_0x5bf0eb;let _0x3202ec=this;this[_0x2f11f3(0x4a6)](this['_HTTPService'][_0x2f11f3(0x41b)]({'priority':0x3e7,'interceptor':(0x0,_0x5f56f9[_0x2f11f3(0x2d8)])({'isMatch'(_0x48d9b4){const _0x216548=_0x2f11f3;var _0x1d118;if(_0x48d9b4[_0x216548(0x3b2)]===_0x216548(0x4ed)&&(_0x1d118=_0x48d9b4['requestParams'])!=null&&_0x1d118['body']){let {objectID:_0x3cefa6,objectType:_0x1e68e7}=_0x48d9b4['requestParams'][_0x216548(0x46f)]||{};if(!_0x3cefa6||_0x1e68e7===void 0x0)return!0x1;let _0x5a4a99=_0x3202ec['_getAPIPrefixPath']()+'/'+_0x1e68e7+'/object/'+_0x3cefa6+_0x216548(0x2fc);if(_0x48d9b4[_0x216548(0x2f6)]===_0x5a4a99)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1fda06){const _0x39d909=_0x2f11f3;var _0x1adafe;return(_0x1adafe=_0x1fda06[_0x39d909(0x375)])==null?void 0x0:_0x1adafe[_0x39d909(0x46f)];},'mergeParamsToRequest'(_0x1f601a,_0x487a7e){const _0x45fe08=_0x2f11f3;let _0x5bb3dd=_0x3202ec[_0x45fe08(0x2f8)]()+_0x45fe08(0x453),_0x30475b=_0x1f601a[_0x45fe08(0x3dd)]((_0x5d5610,_0x4f658)=>{const _0x302d5e=_0x45fe08;let {unitID:_0x55343e,objectID:_0x14891e,objectType:_0x2aba5a,actions:_0x334dda}=_0x4f658;return _0x5d5610[_0x55343e]||(_0x5d5610[_0x55343e]={}),_0x5d5610[_0x55343e][_0x14891e]||(_0x5d5610[_0x55343e][_0x14891e]={'objectID':_0x14891e,'objectType':_0x2aba5a,'actions':[]}),_0x5d5610[_0x55343e][_0x14891e][_0x302d5e(0x415)]['push'](..._0x334dda),_0x5d5610;},{}),_0x250c5a=[];for(let _0x589151 in _0x30475b)for(let _0x2728af in _0x30475b[_0x589151]){let {actions:_0x546e12,objectType:_0x20d434}=_0x30475b[_0x589151][_0x2728af],_0x1ae872=[...new Set(_0x546e12)];_0x250c5a[_0x45fe08(0x23f)]({'unitID':_0x589151,'objectID':_0x2728af,'objectType':_0x20d434,'actions':_0x1ae872});}return new _0x5f56f9['HTTPRequest'](_0x45fe08(0x4ed),_0x5bb3dd,{'headers':_0x487a7e[_0x45fe08(0x286)],'withCredentials':_0x487a7e[_0x45fe08(0x2b6)],'responseType':_0x487a7e[_0x45fe08(0x362)],'body':{'requests':_0x250c5a}});}},{'distributeResult'(_0x12c724,_0x552043){const _0x4bea25=_0x2f11f3;let {objectActions:_0x1427c7}=_0x12c724;return _0x552043[_0x4bea25(0x1e3)](_0x244230=>{const _0x20a9f9=_0x4bea25;let {unitID:_0x191c16,objectID:_0x3b5f36,actions:_0x5dba2a}=_0x244230,_0x257264=_0x1427c7[_0x20a9f9(0x27c)](_0x4fc38a=>_0x4fc38a[_0x20a9f9(0x37e)]===_0x191c16&&_0x4fc38a[_0x20a9f9(0x285)]===_0x3b5f36);return{'config':_0x244230,'result':{'actions':_0x5dba2a[_0x20a9f9(0x1e3)](_0x107040=>_0x257264==null?void 0x0:_0x257264['actions'][_0x20a9f9(0x27c)](_0x269e4b=>_0x269e4b[_0x20a9f9(0x2cd)]===_0x107040))['filter'](_0x29ec09=>!!_0x29ec09),'error':_0x12c724[_0x20a9f9(0x35f)]}};});}})}));}['_getAPIPrefixPath'](){const _0x34e6d1=_0x5bf0eb;var _0x4385ca;let _0x53a042=this[_0x34e6d1(0x266)]['getConfig'](_0x2a84dd);return(_0x4385ca=_0x53a042==null?void 0x0:_0x53a042[_0x34e6d1(0x269)])==null?_0x34e6d1(0x22f):_0x4385ca;}async[_0x5bf0eb(0x45a)](_0x1c484e){const _0xcf5b44=_0x5bf0eb;let _0x29311c=this[_0xcf5b44(0x2f8)]()+'/'+_0x1c484e[_0xcf5b44(0x373)]+_0xcf5b44(0x4cc);return(await this[_0xcf5b44(0x27e)][_0xcf5b44(0x462)](_0x29311c,{'body':_0x1c484e}))[_0xcf5b44(0x46f)]['objectID']||'';}async[_0x5bf0eb(0x24a)](_0x3f3b0a){const _0x2f0674=_0x5bf0eb;let _0x4ff350=this[_0x2f0674(0x2f8)]()+_0x2f0674(0x2aa);return(await this[_0x2f0674(0x27e)][_0x2f0674(0x462)](_0x4ff350,{'body':_0x3f3b0a}))[_0x2f0674(0x46f)][_0x2f0674(0x341)];}async[_0x5bf0eb(0x43f)](_0x5a600c){const _0x88ec4=_0x5bf0eb;var _0x2c1111;let _0x2b9c9d=this[_0x88ec4(0x2f8)]()+'/'+_0x5a600c[_0x88ec4(0x373)]+'/object/'+_0x5a600c[_0x88ec4(0x285)],_0x16cabc=await this['_HTTPService']['put'](_0x2b9c9d,{'body':_0x5a600c});if((_0x16cabc==null||(_0x2c1111=_0x16cabc[_0x88ec4(0x46f)])==null||(_0x2c1111=_0x2c1111[_0x88ec4(0x35f)])==null?void 0x0:_0x2c1111[_0x88ec4(0x4ff)])!==0x1)throw Error(_0x88ec4(0x2ff));}async[_0x5bf0eb(0x3a0)](_0x1d1719){const _0x24ede9=_0x5bf0eb;let _0x5e4139=this[_0x24ede9(0x2f8)]()+'/'+_0x1d1719['objectType']+'/object/'+_0x1d1719[_0x24ede9(0x285)]+_0x24ede9(0x2fc);return(await this[_0x24ede9(0x27e)][_0x24ede9(0x462)](_0x5e4139,{'body':_0x1d1719}))[_0x24ede9(0x46f)][_0x24ede9(0x415)];}async[_0x5bf0eb(0x305)](_0x32ca33){const _0x1c6a0c=_0x5bf0eb;let _0x1bc7ed=this[_0x1c6a0c(0x2f8)]()+'/-/object/-/batch_allowed';return(await this[_0x1c6a0c(0x27e)]['post'](_0x1bc7ed,{'body':{'requests':_0x32ca33}}))[_0x1c6a0c(0x46f)]['objectActions'];}async[_0x5bf0eb(0x4a5)](_0x2d0c3d){const _0x5834e5=_0x5bf0eb;let _0x31cd19=this[_0x5834e5(0x2f8)]()+'/'+_0x2d0c3d[_0x5834e5(0x373)]+_0x5834e5(0x3ab),_0x5b9053=await this[_0x5834e5(0x27e)][_0x5834e5(0x462)](_0x31cd19,{'body':_0x2d0c3d});return{'roles':_0x5b9053[_0x5834e5(0x46f)]['roles'],'actions':_0x5b9053[_0x5834e5(0x46f)]['actions']};}async[_0x5bf0eb(0x259)](_0x5ef25a){const _0x5a7d7e=_0x5bf0eb;let _0x5dc92a=this[_0x5a7d7e(0x2f8)]()+_0x5a7d7e(0x449);await this['_HTTPService'][_0x5a7d7e(0x4d5)](_0x5dc92a,{'params':{'collaboratorID':_0x5ef25a[_0x5a7d7e(0x251)],'objectID':_0x5ef25a[_0x5a7d7e(0x285)],'unitID':_0x5ef25a['unitID']}});}async['updateCollaborator'](_0x192fc6){const _0x3e1023=_0x5bf0eb;let _0x48894e=this['_getAPIPrefixPath']()+_0x3e1023(0x449);await this['_HTTPService']['patch'](_0x48894e,{'body':_0x192fc6});}async[_0x5bf0eb(0x234)](_0x5e3d6c){const _0xe7a1b5=_0x5bf0eb;let _0x44edc7=this['_getAPIPrefixPath']()+_0xe7a1b5(0x449);await this['_HTTPService'][_0xe7a1b5(0x462)](_0x44edc7,{'body':_0x5e3d6c});}async[_0x5bf0eb(0x458)](_0x14cb68){const _0x45baea=_0x5bf0eb;var _0x480abb;let _0x11e316=this[_0x45baea(0x2f8)]()+_0x45baea(0x449),_0x305d15=await this[_0x45baea(0x27e)]['get'](_0x11e316,{'params':{'objectID':_0x14cb68[_0x45baea(0x285)],'unitID':_0x14cb68[_0x45baea(0x37e)]}});return this[_0x45baea(0x283)]((_0x480abb=_0x305d15[_0x45baea(0x46f)][_0x45baea(0x376)])==null?!0x1:_0x480abb),_0x305d15[_0x45baea(0x46f)][_0x45baea(0x21e)];}async[_0x5bf0eb(0x33f)](_0x480db1){const _0x3950f7=_0x5bf0eb;let _0x413e92=this[_0x3950f7(0x2f8)]()+'/collaborator';await this[_0x3950f7(0x27e)]['put'](_0x413e92,{'body':_0x480db1});}[_0x5bf0eb(0x283)](_0x5f4f42){const _0x3f622f=_0x5bf0eb;this[_0x3f622f(0x2e7)]=_0x5f4f42;}[_0x5bf0eb(0x385)](){const _0x120e6c=_0x5bf0eb;return this[_0x120e6c(0x2e7)];}};_0x2d37b7=_0x4e6e0f([_0xe72533(0x0,(0x0,_0x2dbbd9['Inject'])(_0x5f56f9[_0x5bf0eb(0x207)])),_0xe72533(0x1,(0x0,_0x2dbbd9['Inject'])(_0x2dbbd9[_0x5bf0eb(0x488)]))],_0x2d37b7);function _0x42d178(_0x4eea16){const _0x47cc89=_0x5bf0eb;return _0x4eea16 instanceof Uint8Array||ArrayBuffer[_0x47cc89(0x3cd)](_0x4eea16)&&_0x4eea16['constructor'][_0x47cc89(0x2fd)]===_0x47cc89(0x1f9)&&'BYTES_PER_ELEMENT'in _0x4eea16&&_0x4eea16[_0x47cc89(0x32f)]===0x1;}function _0x8d084e(_0x2dbe31){const _0x2fd1aa=_0x5bf0eb;if(typeof _0x2dbe31!=_0x2fd1aa(0x1e1))throw TypeError(_0x2fd1aa(0x219)+typeof _0x2dbe31);if(!Number[_0x2fd1aa(0x49c)](_0x2dbe31)||_0x2dbe31<0x0)throw RangeError(_0x2fd1aa(0x2c4)+_0x2dbe31);}function _0x27a1c5(_0x25e678,_0xabc77e,_0x3739f1=''){const _0x3d9e48=_0x5bf0eb;let _0x37109b=_0x42d178(_0x25e678),_0x90f47f=_0x25e678==null?void 0x0:_0x25e678[_0x3d9e48(0x2e3)],_0x58c9a8=_0xabc77e!==void 0x0;if(!_0x37109b||_0x58c9a8&&_0x90f47f!==_0xabc77e){let _0x345243=_0x3739f1&&'\x22'+_0x3739f1+'\x22\x20',_0x5b0851=_0x58c9a8?'\x20of\x20length\x20'+_0xabc77e:'',_0x214178=_0x37109b?_0x3d9e48(0x42e)+_0x90f47f:'type='+typeof _0x25e678,_0x416bf5=_0x345243+_0x3d9e48(0x4d8)+_0x5b0851+_0x3d9e48(0x20f)+_0x214178;throw _0x37109b?RangeError(_0x416bf5):TypeError(_0x416bf5);}return _0x25e678;}function _0x497337(_0x45569d){const _0x1ddbb5=_0x5bf0eb;return new Uint32Array(_0x45569d[_0x1ddbb5(0x1e6)],_0x45569d[_0x1ddbb5(0x494)],Math['floor'](_0x45569d[_0x1ddbb5(0x22b)]/0x4));}function _0x5e2b71(..._0x49f2dd){const _0x549b08=_0x5bf0eb;for(let _0x54a586=0x0;_0x54a586<_0x49f2dd[_0x549b08(0x2e3)];_0x54a586++)_0x49f2dd[_0x54a586][_0x549b08(0x436)](0x0);}let _0x4efbb2=new Uint8Array(new Uint32Array([0x11223344])[_0x5bf0eb(0x1e6)])[0x0]===0x44,_0x338916=_0x1de267=>_0x1de267<<0x18&0xff000000|_0x1de267<<0x8&0xff0000|_0x1de267>>>0x8&0xff00|_0x1de267>>>0x18&0xff,_0x50c762=_0x4efbb2?_0x1928dc=>_0x1928dc:_0x3d5685=>{const _0x49a887=_0x5bf0eb;for(let _0x4f007d=0x0;_0x4f007d<_0x3d5685[_0x49a887(0x2e3)];_0x4f007d++)_0x3d5685[_0x4f007d]=_0x338916(_0x3d5685[_0x4f007d]);return _0x3d5685;};typeof Uint8Array['from']([])['toHex']==_0x5bf0eb(0x32c)&&Uint8Array['fromHex'];function _0x5e6931(_0x1c8cf2){const _0x23136c=_0x5bf0eb;if(typeof _0x1c8cf2!='string')throw TypeError('string\x20expected');return new Uint8Array(new TextEncoder()[_0x23136c(0x45c)](_0x1c8cf2));}function _0x5e258c(_0xe1e1b2,_0x5c8a27){const _0x5dcc45=_0x5bf0eb;return!_0xe1e1b2[_0x5dcc45(0x22b)]||!_0x5c8a27['byteLength']?!0x1:_0xe1e1b2[_0x5dcc45(0x1e6)]===_0x5c8a27[_0x5dcc45(0x1e6)]&&_0xe1e1b2['byteOffset']<_0x5c8a27[_0x5dcc45(0x494)]+_0x5c8a27[_0x5dcc45(0x22b)]&&_0x5c8a27[_0x5dcc45(0x494)]<_0xe1e1b2['byteOffset']+_0xe1e1b2[_0x5dcc45(0x22b)];}function _0x4de166(_0xac7c0f,_0x4db227){const _0x1d40f6=_0x5bf0eb;if(_0x5e258c(_0xac7c0f,_0x4db227)&&_0xac7c0f[_0x1d40f6(0x494)]<_0x4db227[_0x1d40f6(0x494)])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0x4c7178(..._0x248547){const _0x1f8f0b=_0x5bf0eb;let _0x18beb9=0x0;for(let _0x38e03c=0x0;_0x38e03c<_0x248547[_0x1f8f0b(0x2e3)];_0x38e03c++){let _0x477710=_0x248547[_0x38e03c];_0x27a1c5(_0x477710),_0x18beb9+=_0x477710[_0x1f8f0b(0x2e3)];}let _0x3c3bb5=new Uint8Array(_0x18beb9);for(let _0x1aad09=0x0,_0x46fc10=0x0;_0x1aad09<_0x248547[_0x1f8f0b(0x2e3)];_0x1aad09++){let _0x3b9221=_0x248547[_0x1aad09];_0x3c3bb5['set'](_0x3b9221,_0x46fc10),_0x46fc10+=_0x3b9221[_0x1f8f0b(0x2e3)];}return _0x3c3bb5;}let _0x10cc83=(_0x3e3cb1,_0x26eafe)=>{const _0x2fcd4b=_0x5bf0eb;function _0x3eb5bc(_0x3cf004,..._0x5bdd50){const _0x58215a=_0x4f27;if(_0x27a1c5(_0x3cf004,void 0x0,'key'),_0x3e3cb1['nonceLength']!==void 0x0){let _0xf4040a=_0x5bdd50[0x0];_0x27a1c5(_0xf4040a,_0x3e3cb1[_0x58215a(0x2fa)]?void 0x0:_0x3e3cb1['nonceLength'],'nonce');}let _0x7be6f7=_0x3e3cb1[_0x58215a(0x211)];_0x7be6f7&&_0x5bdd50[0x1]!==void 0x0&&_0x27a1c5(_0x5bdd50[0x1],void 0x0,_0x58215a(0x3ee));let _0x1d15b5=_0x26eafe(_0x3cf004,..._0x5bdd50),_0x4c1aea=(_0x53735c,_0x424885)=>{const _0x4149ab=_0x58215a;if(_0x424885!==void 0x0){if(_0x53735c!==0x2)throw Error(_0x4149ab(0x34a));_0x27a1c5(_0x424885,void 0x0,_0x4149ab(0x407));}},_0x3b7b5c=!0x1;return{'encrypt'(_0x1550ea,_0x3949f3){const _0x3e70db=_0x58215a;if(_0x3b7b5c)throw Error(_0x3e70db(0x427));return _0x3b7b5c=!0x0,_0x27a1c5(_0x1550ea),_0x4c1aea(_0x1d15b5['encrypt'][_0x3e70db(0x2e3)],_0x3949f3),_0x1d15b5[_0x3e70db(0x432)](_0x1550ea,_0x3949f3);},'decrypt'(_0x58009b,_0x5a2929){const _0x58f075=_0x58215a;if(_0x27a1c5(_0x58009b),_0x7be6f7&&_0x58009b[_0x58f075(0x2e3)]<_0x7be6f7)throw Error(_0x58f075(0x367)+_0x7be6f7);return _0x4c1aea(_0x1d15b5[_0x58f075(0x224)][_0x58f075(0x2e3)],_0x5a2929),_0x1d15b5[_0x58f075(0x224)](_0x58009b,_0x5a2929);}};}return Object[_0x2fcd4b(0x383)](_0x3eb5bc,_0x3e3cb1),_0x3eb5bc;};function _0x300ba8(_0x251239,_0x5dd85f,_0x5c96d0=!0x0){const _0x3380c8=_0x5bf0eb;if(_0x5dd85f===void 0x0)return new Uint8Array(_0x251239);if(_0x27a1c5(_0x5dd85f,void 0x0,'output'),_0x5dd85f[_0x3380c8(0x2e3)]!==_0x251239)throw Error(_0x3380c8(0x455)+_0x251239+_0x3380c8(0x3cb)+_0x5dd85f[_0x3380c8(0x2e3)]);if(_0x5c96d0&&!_0x43cbb1(_0x5dd85f))throw Error(_0x3380c8(0x2be));return _0x5dd85f;}function _0x43cbb1(_0x4d67ea){const _0x2aecb8=_0x5bf0eb;return _0x4d67ea[_0x2aecb8(0x494)]%0x4==0x0;}function _0x3d8331(_0x25056a){const _0x4f1ca5=_0x5bf0eb;return Uint8Array[_0x4f1ca5(0x3ce)](_0x27a1c5(_0x25056a));}function _0x3e6665(_0x518364=0x20){const _0x2a9bb3=_0x5bf0eb;_0x8d084e(_0x518364);let _0xb750dd=typeof globalThis==_0x2a9bb3(0x4c1)?globalThis[_0x2a9bb3(0x3f3)]:null;if(typeof(_0xb750dd==null?void 0x0:_0xb750dd[_0x2a9bb3(0x439)])!=_0x2a9bb3(0x32c))throw Error(_0x2a9bb3(0x4a8));return _0xb750dd[_0x2a9bb3(0x439)](new Uint8Array(_0x518364));}function _0x492979(_0x2a7a4e){const _0x4c3e5a=_0x5bf0eb;if(![0x10,0x18,0x20][_0x4c3e5a(0x2c0)](_0x2a7a4e[_0x4c3e5a(0x2e3)]))throw Error(_0x4c3e5a(0x4fa)+_0x2a7a4e[_0x4c3e5a(0x2e3)]);}function _0x11e127(_0x59c304){return _0x59c304<<0x1^0x11b&-(_0x59c304>>0x7);}function _0x17debe(_0xa02041,_0xcbd798){let _0x399caf=0x0;for(;_0xcbd798>0x0;_0xcbd798>>=0x1)_0x399caf^=_0xa02041&-(_0xcbd798&0x1),_0xa02041=_0x11e127(_0xa02041);return _0x399caf;}let _0x5dfd0c=((()=>{let _0x4fd039=new Uint8Array(0x100);for(let _0x18af32=0x0,_0x463841=0x1;_0x18af32<0x100;_0x18af32++,_0x463841^=_0x11e127(_0x463841))_0x4fd039[_0x18af32]=_0x463841;let _0x169e74=new Uint8Array(0x100);_0x169e74[0x0]=0x63;for(let _0x1fe45c=0x0;_0x1fe45c<0xff;_0x1fe45c++){let _0x5d5641=_0x4fd039[0xff-_0x1fe45c];_0x5d5641|=_0x5d5641<<0x8,_0x169e74[_0x4fd039[_0x1fe45c]]=(_0x5d5641^_0x5d5641>>0x4^_0x5d5641>>0x5^_0x5d5641>>0x6^_0x5d5641>>0x7^0x63)&0xff;}return _0x5e2b71(_0x4fd039),_0x169e74;})()),_0x1e0375=_0x5dfd0c[_0x5bf0eb(0x1e3)]((_0x2d0a6f,_0x1accae)=>_0x5dfd0c[_0x5bf0eb(0x465)](_0x1accae)),_0x2c221c=_0xe40bd7=>_0xe40bd7<<0x18|_0xe40bd7>>>0x8,_0x21c13b=_0x242cc1=>_0x242cc1<<0x8|_0x242cc1>>>0x18;function _0x5d5d60(_0x5057c1,_0x42eef3){const _0x5360e8=_0x5bf0eb;if(_0x5057c1[_0x5360e8(0x2e3)]!==0x100)throw Error(_0x5360e8(0x4dc));let _0x41c356=new Uint32Array(0x100)[_0x5360e8(0x1e3)]((_0x3755ef,_0x5c998e)=>_0x42eef3(_0x5057c1[_0x5c998e])),_0x32adb6=_0x41c356[_0x5360e8(0x1e3)](_0x21c13b),_0x276a68=_0x32adb6['map'](_0x21c13b),_0x54485d=_0x276a68[_0x5360e8(0x1e3)](_0x21c13b),_0x2481d3=new Uint32Array(0x100*0x100),_0x35dedf=new Uint32Array(0x100*0x100),_0x2aada6=new Uint16Array(0x100*0x100);for(let _0x7d1ab0=0x0;_0x7d1ab0<0x100;_0x7d1ab0++)for(let _0x5c46be=0x0;_0x5c46be<0x100;_0x5c46be++){let _0x501514=_0x7d1ab0*0x100+_0x5c46be;_0x2481d3[_0x501514]=_0x41c356[_0x7d1ab0]^_0x32adb6[_0x5c46be],_0x35dedf[_0x501514]=_0x276a68[_0x7d1ab0]^_0x54485d[_0x5c46be],_0x2aada6[_0x501514]=_0x5057c1[_0x7d1ab0]<<0x8|_0x5057c1[_0x5c46be];}return{'sbox':_0x5057c1,'sbox2':_0x2aada6,'T0':_0x41c356,'T1':_0x32adb6,'T2':_0x276a68,'T3':_0x54485d,'T01':_0x2481d3,'T23':_0x35dedf};}let _0x1b6424=_0x5d5d60(_0x5dfd0c,_0x2b6543=>_0x17debe(_0x2b6543,0x3)<<0x18|_0x2b6543<<0x10|_0x2b6543<<0x8|_0x17debe(_0x2b6543,0x2)),_0x20b002=_0x5d5d60(_0x1e0375,_0x326bb8=>_0x17debe(_0x326bb8,0xb)<<0x18|_0x17debe(_0x326bb8,0xd)<<0x10|_0x17debe(_0x326bb8,0x9)<<0x8|_0x17debe(_0x326bb8,0xe)),_0x38733c=((()=>{let _0x2839dc=new Uint8Array(0x10);for(let _0x59a795=0x0,_0x5afe0b=0x1;_0x59a795<0x10;_0x59a795++,_0x5afe0b=_0x11e127(_0x5afe0b))_0x2839dc[_0x59a795]=_0x5afe0b;return _0x2839dc;})());function _0x5af3b6(_0x5b046f){const _0x134bf2=_0x5bf0eb;_0x27a1c5(_0x5b046f);let _0x1ae4d1=_0x5b046f[_0x134bf2(0x2e3)];_0x492979(_0x5b046f);let {sbox2:_0x2745b7}=_0x1b6424,_0x2f6f2d=[];(!_0x4efbb2||!_0x43cbb1(_0x5b046f))&&_0x2f6f2d['push'](_0x5b046f=_0x3d8331(_0x5b046f));let _0x501498=_0x50c762(_0x497337(_0x5b046f)),_0x659cc9=_0x501498['length'],_0x52e278=_0x21eed3=>_0x3bdcb6(_0x2745b7,_0x21eed3,_0x21eed3,_0x21eed3,_0x21eed3),_0xab6c0c=new Uint32Array(_0x1ae4d1+0x1c);_0xab6c0c[_0x134bf2(0x41a)](_0x501498);for(let _0x3235b4=_0x659cc9;_0x3235b4<_0xab6c0c[_0x134bf2(0x2e3)];_0x3235b4++){let _0x4fc768=_0xab6c0c[_0x3235b4-0x1];_0x3235b4%_0x659cc9===0x0?_0x4fc768=_0x52e278(_0x2c221c(_0x4fc768))^_0x38733c[_0x3235b4/_0x659cc9-0x1]:_0x659cc9>0x6&&_0x3235b4%_0x659cc9===0x4&&(_0x4fc768=_0x52e278(_0x4fc768)),_0xab6c0c[_0x3235b4]=_0xab6c0c[_0x3235b4-_0x659cc9]^_0x4fc768;}return _0x5e2b71(..._0x2f6f2d),_0xab6c0c;}function _0xa8970c(_0x58e1ba){const _0xb1ddea=_0x5bf0eb;let _0x1092ee=_0x5af3b6(_0x58e1ba),_0x32791e=_0x1092ee[_0xb1ddea(0x490)](),_0xf5e5a4=_0x1092ee['length'],{sbox2:_0x1a2e64}=_0x1b6424,{T0:_0x3522ec,T1:_0x51be7b,T2:_0xad33c0,T3:_0x1f3f6c}=_0x20b002;for(let _0x237aee=0x0;_0x237aee<_0xf5e5a4;_0x237aee+=0x4)for(let _0x104e9f=0x0;_0x104e9f<0x4;_0x104e9f++)_0x32791e[_0x237aee+_0x104e9f]=_0x1092ee[_0xf5e5a4-_0x237aee-0x4+_0x104e9f];_0x5e2b71(_0x1092ee);for(let _0x24c202=0x4;_0x24c202<_0xf5e5a4-0x4;_0x24c202++){let _0x50ded5=_0x32791e[_0x24c202],_0x515088=_0x3bdcb6(_0x1a2e64,_0x50ded5,_0x50ded5,_0x50ded5,_0x50ded5);_0x32791e[_0x24c202]=_0x3522ec[_0x515088&0xff]^_0x51be7b[_0x515088>>>0x8&0xff]^_0xad33c0[_0x515088>>>0x10&0xff]^_0x1f3f6c[_0x515088>>>0x18];}return _0x32791e;}function _0x34f09e(_0x41aed4,_0x23218c,_0x13ea72,_0x4cde3f,_0x388952,_0x72618f){return _0x41aed4[_0x13ea72<<0x8&0xff00|_0x4cde3f>>>0x8&0xff]^_0x23218c[_0x388952>>>0x8&0xff00|_0x72618f>>>0x18&0xff];}function _0x3bdcb6(_0x41dfb8,_0x3849ca,_0x9528da,_0x4222d0,_0x2eac73){return _0x41dfb8[_0x3849ca&0xff|_0x9528da&0xff00]|_0x41dfb8[_0x4222d0>>>0x10&0xff|_0x2eac73>>>0x10&0xff00]<<0x10;}function _0x391a28(_0x942d37,_0x1df626,_0x2bbfde,_0x364f35,_0x2739bd){const _0x15cb04=_0x5bf0eb;let {sbox2:_0x278ef1,T01:_0x1a87b9,T23:_0x1ac55c}=_0x1b6424,_0x1f6097=0x0;_0x1df626^=_0x942d37[_0x1f6097++],_0x2bbfde^=_0x942d37[_0x1f6097++],_0x364f35^=_0x942d37[_0x1f6097++],_0x2739bd^=_0x942d37[_0x1f6097++];let _0x48286c=_0x942d37[_0x15cb04(0x2e3)]/0x4-0x2;for(let _0xde7bc8=0x0;_0xde7bc8<_0x48286c;_0xde7bc8++){let _0x40aeb3=_0x942d37[_0x1f6097++]^_0x34f09e(_0x1a87b9,_0x1ac55c,_0x1df626,_0x2bbfde,_0x364f35,_0x2739bd),_0x38ed66=_0x942d37[_0x1f6097++]^_0x34f09e(_0x1a87b9,_0x1ac55c,_0x2bbfde,_0x364f35,_0x2739bd,_0x1df626),_0x40bf96=_0x942d37[_0x1f6097++]^_0x34f09e(_0x1a87b9,_0x1ac55c,_0x364f35,_0x2739bd,_0x1df626,_0x2bbfde),_0x5a82b6=_0x942d37[_0x1f6097++]^_0x34f09e(_0x1a87b9,_0x1ac55c,_0x2739bd,_0x1df626,_0x2bbfde,_0x364f35);_0x1df626=_0x40aeb3,_0x2bbfde=_0x38ed66,_0x364f35=_0x40bf96,_0x2739bd=_0x5a82b6;}return{'s0':_0x942d37[_0x1f6097++]^_0x3bdcb6(_0x278ef1,_0x1df626,_0x2bbfde,_0x364f35,_0x2739bd),'s1':_0x942d37[_0x1f6097++]^_0x3bdcb6(_0x278ef1,_0x2bbfde,_0x364f35,_0x2739bd,_0x1df626),'s2':_0x942d37[_0x1f6097++]^_0x3bdcb6(_0x278ef1,_0x364f35,_0x2739bd,_0x1df626,_0x2bbfde),'s3':_0x942d37[_0x1f6097++]^_0x3bdcb6(_0x278ef1,_0x2739bd,_0x1df626,_0x2bbfde,_0x364f35)};}function _0x18e28d(_0x108416,_0x45af60,_0x495711,_0xf29eb1,_0x2c5e10){const _0x25d4ed=_0x5bf0eb;let {sbox2:_0x3dacc7,T01:_0x164cef,T23:_0x155c11}=_0x20b002,_0x654305=0x0;_0x45af60^=_0x108416[_0x654305++],_0x495711^=_0x108416[_0x654305++],_0xf29eb1^=_0x108416[_0x654305++],_0x2c5e10^=_0x108416[_0x654305++];let _0xd3bccf=_0x108416[_0x25d4ed(0x2e3)]/0x4-0x2;for(let _0x2a2be3=0x0;_0x2a2be3<_0xd3bccf;_0x2a2be3++){let _0x3d19eb=_0x108416[_0x654305++]^_0x34f09e(_0x164cef,_0x155c11,_0x45af60,_0x2c5e10,_0xf29eb1,_0x495711),_0x286f50=_0x108416[_0x654305++]^_0x34f09e(_0x164cef,_0x155c11,_0x495711,_0x45af60,_0x2c5e10,_0xf29eb1),_0x21d35e=_0x108416[_0x654305++]^_0x34f09e(_0x164cef,_0x155c11,_0xf29eb1,_0x495711,_0x45af60,_0x2c5e10),_0x3967e9=_0x108416[_0x654305++]^_0x34f09e(_0x164cef,_0x155c11,_0x2c5e10,_0xf29eb1,_0x495711,_0x45af60);_0x45af60=_0x3d19eb,_0x495711=_0x286f50,_0xf29eb1=_0x21d35e,_0x2c5e10=_0x3967e9;}return{'s0':_0x108416[_0x654305++]^_0x3bdcb6(_0x3dacc7,_0x45af60,_0x2c5e10,_0xf29eb1,_0x495711),'s1':_0x108416[_0x654305++]^_0x3bdcb6(_0x3dacc7,_0x495711,_0x45af60,_0x2c5e10,_0xf29eb1),'s2':_0x108416[_0x654305++]^_0x3bdcb6(_0x3dacc7,_0xf29eb1,_0x495711,_0x45af60,_0x2c5e10),'s3':_0x108416[_0x654305++]^_0x3bdcb6(_0x3dacc7,_0x2c5e10,_0xf29eb1,_0x495711,_0x45af60)};}function _0x20ae11(_0x6a5e31){const _0xa75e0b=_0x5bf0eb;if(_0x27a1c5(_0x6a5e31),_0x6a5e31[_0xa75e0b(0x2e3)]%0x10!=0x0)throw Error(_0xa75e0b(0x3a6));}function _0x2fdcf5(_0x4fbf36,_0x5c9028,_0x21b17a){const _0x4bf532=_0x5bf0eb;_0x27a1c5(_0x4fbf36);let _0x52f125=_0x4fbf36['length'],_0x500dca=_0x52f125%0x10;if(!_0x5c9028&&_0x500dca!==0x0)throw Error(_0x4bf532(0x2d2));if(_0x5c9028){let _0xeb7bba=0x10-_0x500dca;_0xeb7bba||(_0xeb7bba=0x10),_0x52f125+=_0xeb7bba;}_0x21b17a=_0x300ba8(_0x52f125,_0x21b17a),_0x4de166(_0x4fbf36,_0x21b17a),(!_0x4efbb2||!_0x43cbb1(_0x4fbf36))&&(_0x4fbf36=_0x3d8331(_0x4fbf36));let _0x123ad7=_0x497337(_0x4fbf36);return _0x50c762(_0x123ad7),{'b':_0x123ad7,'o':_0x497337(_0x21b17a),'out':_0x21b17a};}function _0x21b6b9(_0x3f73b8,_0x2787cf){const _0x318888=_0x5bf0eb;if(!_0x2787cf)return _0x3f73b8;let _0x16f8dd=_0x3f73b8[_0x318888(0x2e3)];if(_0x16f8dd===0x0)throw Error(_0x318888(0x28f));let _0x262d9e=_0x3f73b8[_0x16f8dd-0x1],_0x328b69=0x1;_0x328b69&=_0x262d9e-0x1>>>0x1f^0x1,_0x328b69&=0x10-_0x262d9e>>>0x1f^0x1;for(let _0x54d1b7=0x0;_0x54d1b7<0x10;_0x54d1b7++){let _0x49af91=_0x54d1b7-_0x262d9e>>>0x1f,_0x2c259b=+((_0x3f73b8[_0x16f8dd-0x1-_0x54d1b7]^_0x262d9e)===0x0);_0x328b69&=_0x2c259b|_0x49af91^0x1;}if(!_0x328b69)throw Error(_0x318888(0x3e8));return _0x3f73b8[_0x318888(0x23d)](0x0,_0x16f8dd-_0x262d9e);}function _0x3b5ee3(_0x470ddb){const _0x360e41=_0x5bf0eb;let _0xa8a161=new Uint8Array(0x10),_0x409bec=_0x497337(_0xa8a161);_0xa8a161['set'](_0x470ddb);let _0x16a511=0x10-_0x470ddb[_0x360e41(0x2e3)];for(let _0x56fe56=0x10-_0x16a511;_0x56fe56<0x10;_0x56fe56++)_0xa8a161[_0x56fe56]=_0x16a511;return _0x409bec;}let _0x10ab97=_0x10cc83({'blockSize':0x10,'nonceLength':0x10},function(_0x26c28c,_0x291009,_0x433abe={}){const _0x3767a3=_0x5bf0eb;let _0x158da8=!_0x433abe[_0x3767a3(0x501)];return{'encrypt'(_0x2ecdb8,_0x38ff3c){const _0x41dc20=_0x3767a3;let _0x75e005=_0x5af3b6(_0x26c28c),{b:_0x1aa692,o:_0x2a86c3,out:_0x2f3262}=_0x2fdcf5(_0x2ecdb8,_0x158da8,_0x38ff3c),_0x42162d=_0x291009,_0x3ef87f=[_0x75e005];(!_0x4efbb2||!_0x43cbb1(_0x42162d))&&_0x3ef87f['push'](_0x42162d=_0x3d8331(_0x42162d));let _0x3e0a44=_0x497337(_0x42162d);_0x50c762(_0x3e0a44);let _0x1d8a6a=_0x3e0a44[0x0],_0x3cfa9a=_0x3e0a44[0x1],_0x2cd24b=_0x3e0a44[0x2],_0x1845cf=_0x3e0a44[0x3],_0x5ee7f9=0x0;for(;_0x5ee7f9+0x4<=_0x1aa692[_0x41dc20(0x2e3)];)_0x1d8a6a^=_0x1aa692[_0x5ee7f9+0x0],_0x3cfa9a^=_0x1aa692[_0x5ee7f9+0x1],_0x2cd24b^=_0x1aa692[_0x5ee7f9+0x2],_0x1845cf^=_0x1aa692[_0x5ee7f9+0x3],{s0:_0x1d8a6a,s1:_0x3cfa9a,s2:_0x2cd24b,s3:_0x1845cf}=_0x391a28(_0x75e005,_0x1d8a6a,_0x3cfa9a,_0x2cd24b,_0x1845cf),_0x2a86c3[_0x5ee7f9++]=_0x1d8a6a,_0x2a86c3[_0x5ee7f9++]=_0x3cfa9a,_0x2a86c3[_0x5ee7f9++]=_0x2cd24b,_0x2a86c3[_0x5ee7f9++]=_0x1845cf;if(_0x158da8){let _0xc8f874=_0x3b5ee3(_0x2ecdb8[_0x41dc20(0x23d)](_0x5ee7f9*0x4));_0x50c762(_0xc8f874),_0x1d8a6a^=_0xc8f874[0x0],_0x3cfa9a^=_0xc8f874[0x1],_0x2cd24b^=_0xc8f874[0x2],_0x1845cf^=_0xc8f874[0x3],{s0:_0x1d8a6a,s1:_0x3cfa9a,s2:_0x2cd24b,s3:_0x1845cf}=_0x391a28(_0x75e005,_0x1d8a6a,_0x3cfa9a,_0x2cd24b,_0x1845cf),_0x2a86c3[_0x5ee7f9++]=_0x1d8a6a,_0x2a86c3[_0x5ee7f9++]=_0x3cfa9a,_0x2a86c3[_0x5ee7f9++]=_0x2cd24b,_0x2a86c3[_0x5ee7f9++]=_0x1845cf;}return _0x50c762(_0x2a86c3),_0x5e2b71(..._0x3ef87f),_0x2f3262;},'decrypt'(_0x305103,_0x42162e){const _0xfb2bcf=_0x3767a3;_0x20ae11(_0x305103);let _0xb02082=_0xa8970c(_0x26c28c),_0x71a036=_0x291009,_0x233f51=[_0xb02082];(!_0x4efbb2||!_0x43cbb1(_0x71a036))&&_0x233f51['push'](_0x71a036=_0x3d8331(_0x71a036));let _0x84a854=_0x497337(_0x71a036);_0x50c762(_0x84a854),_0x42162e=_0x300ba8(_0x305103['length'],_0x42162e),_0x4de166(_0x305103,_0x42162e),(!_0x4efbb2||!_0x43cbb1(_0x305103))&&_0x233f51[_0xfb2bcf(0x23f)](_0x305103=_0x3d8331(_0x305103));let _0x5a41d2=_0x497337(_0x305103),_0x28b179=_0x497337(_0x42162e);_0x50c762(_0x5a41d2);let _0x169af7=_0x84a854[0x0],_0x1d4fa4=_0x84a854[0x1],_0x2b6836=_0x84a854[0x2],_0x1b828c=_0x84a854[0x3];for(let _0xc31726=0x0;_0xc31726+0x4<=_0x5a41d2[_0xfb2bcf(0x2e3)];){let _0x2dcc75=_0x169af7,_0x3f8f9b=_0x1d4fa4,_0x5cbf73=_0x2b6836,_0x13b9b8=_0x1b828c;_0x169af7=_0x5a41d2[_0xc31726+0x0],_0x1d4fa4=_0x5a41d2[_0xc31726+0x1],_0x2b6836=_0x5a41d2[_0xc31726+0x2],_0x1b828c=_0x5a41d2[_0xc31726+0x3];let {s0:_0x4a96fb,s1:_0x2f43ca,s2:_0x4e1116,s3:_0x5be020}=_0x18e28d(_0xb02082,_0x169af7,_0x1d4fa4,_0x2b6836,_0x1b828c);_0x28b179[_0xc31726++]=_0x4a96fb^_0x2dcc75,_0x28b179[_0xc31726++]=_0x2f43ca^_0x3f8f9b,_0x28b179[_0xc31726++]=_0x4e1116^_0x5cbf73,_0x28b179[_0xc31726++]=_0x5be020^_0x13b9b8;}return _0x50c762(_0x28b179),_0x5e2b71(..._0x233f51),_0x21b6b9(_0x42162e,_0x158da8);}};});function _0x5c7f23(_0xc9d79){const _0x491a96=_0x5bf0eb;let _0x38c91c=atob(_0xc9d79),_0x5c62b2=new Uint8Array(_0x38c91c[_0x491a96(0x2e3)]);for(let _0x4cdf46=0x0;_0x4cdf46<_0x38c91c[_0x491a96(0x2e3)];_0x4cdf46++)_0x5c62b2[_0x4cdf46]=_0x38c91c['charCodeAt'](_0x4cdf46);return _0x5c62b2;}function _0x29b1cd(_0xcba37d){const _0x594f67=_0x5bf0eb;let _0x49db1f='';for(let _0x2763fe=0x0;_0x2763fe<_0xcba37d[_0x594f67(0x2e3)];_0x2763fe++)_0x49db1f+=String[_0x594f67(0x25b)](_0xcba37d[_0x2763fe]);return btoa(_0x49db1f);}function _0x532e8c(_0x429d92,_0x2d7398){const _0x197022=_0x5bf0eb;let _0x3954e5=_0x5c7f23(_0x2d7398),_0x2ed672=_0x3e6665(0x10);return _0x29b1cd(_0x4c7178(_0x2ed672,_0x10ab97(_0x3954e5,_0x2ed672)[_0x197022(0x432)](_0x5e6931(_0x429d92))));}function _0x529779(){const _0x3d91c4=_0x5bf0eb;let _0x33cf84=(0x0,_0x3b77ee[_0x3d91c4(0x38f)])()[_0x3d91c4(0x2ee)];if(typeof window<'u'&&window[_0x3d91c4(0x39d)]!==void 0x0&&_0x33cf84){let _0x2c620d={'time':Math[_0x3d91c4(0x451)](Date[_0x3d91c4(0x4a9)]()/0x3e8),'domain':location[_0x3d91c4(0x1ec)]};return _0x532e8c(JSON[_0x3d91c4(0x337)](_0x2c620d),_0x33cf84);}}let _0x41e2cb=class{constructor(_0xc28caf){this['_httpService']=_0xc28caf,this['_initRequestHeader']();}['_initRequestHeader'](){const _0x15f0b0=_0x5bf0eb;this[_0x15f0b0(0x21f)][_0x15f0b0(0x41b)]({'interceptor':(_0x477ce3,_0x3a6137)=>{const _0x37ad5f=_0x15f0b0;let _0x5f1434=_0x529779();return _0x5f1434&&_0x477ce3['headers'][_0x37ad5f(0x41a)](_0x37ad5f(0x1ef),_0x5f1434),_0x3a6137(_0x477ce3);}});}};_0x41e2cb=_0x4e6e0f([_0xe72533(0x0,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x5f56f9[_0x5bf0eb(0x207)]))],_0x41e2cb);let _0x48b093=class extends _0x2dbbd9[_0x5bf0eb(0x2ed)]{constructor(_0x23f6a1,_0x1ad2a3,_0x119bac){const _0x4d05cb=_0x5bf0eb;super(),this[_0x4d05cb(0x236)]=_0x23f6a1,this[_0x4d05cb(0x23b)]=_0x1ad2a3,this['_localCacheService']=_0x119bac,_0x527b5d(this,_0x4d05cb(0x222),new _0x4f3716[(_0x4d05cb(0x391))](null)),_0x527b5d(this,_0x4d05cb(0x4ab),this[_0x4d05cb(0x222)]['asObservable']());}async[_0x5bf0eb(0x4b2)](_0x43a59a,_0x5b8815,_0x36e208){const _0x56822e=_0x5bf0eb;this['_unitInfo$']['next']({'unitId':_0x43a59a,'type':_0x5b8815});let _0x2f09cd=null;switch(_0x5b8815){case _0x2dbbd9['UniverInstanceType'][_0x56822e(0x20a)]:_0x2f09cd=await this[_0x56822e(0x23b)][_0x56822e(0x42d)](_0x43a59a,_0x36e208);break;case _0x2dbbd9[_0x56822e(0x442)][_0x56822e(0x477)]:_0x2f09cd=await this[_0x56822e(0x23b)][_0x56822e(0x24b)](_0x43a59a,_0x36e208);break;default:this[_0x56822e(0x236)]['error'](_0x56822e(0x24d),_0x56822e(0x37d));break;}return _0x2f09cd;}async[_0x5bf0eb(0x205)](_0xada565,_0x3d4a9f,_0x4ce3fd){const _0x23e2dc=_0x5bf0eb;var _0xa43fbd;this['_unitInfo$'][_0x23e2dc(0x274)]({'unitId':_0xada565,'type':_0x3d4a9f,'subUnitId':_0x4ce3fd});let _0x5b88ae=0x0,_0x26d217=await((_0xa43fbd=this[_0x23e2dc(0x33c)])==null?void 0x0:_0xa43fbd['loadOfflineData'](_0xada565));return _0x26d217&&(_0x26d217['awaitingChangeset']||_0x26d217[_0x23e2dc(0x277)][_0x23e2dc(0x2e3)]!==0x0)&&(_0x5b88ae=_0x26d217[_0x23e2dc(0x444)]),_0x5b88ae===0x0&&this[_0x23e2dc(0x236)][_0x23e2dc(0x265)](_0x23e2dc(0x24d),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['loadUnitOfRevision'](_0xada565,_0x3d4a9f,_0x5b88ae);}};_0x48b093=_0x4e6e0f([_0xe72533(0x0,_0x2dbbd9['ILogService']),_0xe72533(0x1,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2b53f2['SnapshotService'])),_0xe72533(0x2,(0x0,_0x2dbbd9[_0x5bf0eb(0x2df)])(_0x36e220))],_0x48b093);let _0x68b0f9=class{constructor(_0x2fa423,_0x28f458,_0x3962e3){const _0x3a653e=_0x5bf0eb;this[_0x3a653e(0x21f)]=_0x2fa423,this[_0x3a653e(0x266)]=_0x28f458,this[_0x3a653e(0x389)]=_0x3962e3,_0x527b5d(this,_0x3a653e(0x361),0x0),_0x527b5d(this,'_change$',new _0x4f3716['Subject']()),_0x527b5d(this,_0x3a653e(0x499),this['_change$']),_0x527b5d(this,_0x3a653e(0x264),new Map());}[_0x5bf0eb(0x395)](_0x4fc2e5){const _0x1ade7d=_0x5bf0eb;this[_0x1ade7d(0x361)]=_0x4fc2e5,this[_0x1ade7d(0x35b)][_0x1ade7d(0x274)](_0x4fc2e5);}['getImageSourceCache'](_0x3772bf,_0x1d8f52){const _0x1a70e3=_0x5bf0eb;if(_0x1d8f52===_0x4e927a[_0x1a70e3(0x470)][_0x1a70e3(0x357)]){let _0x4477d2=new Image();return _0x4477d2[_0x1a70e3(0x3d3)]=_0x3772bf,_0x4477d2;}return this['_imageSourceCache'][_0x1a70e3(0x42f)](_0x3772bf);}[_0x5bf0eb(0x479)](_0x344fb8,_0x1a8746,_0x3c9be5){const _0xb4d730=_0x5bf0eb;_0x1a8746===_0x4e927a[_0xb4d730(0x470)]['BASE64']||_0x3c9be5==null||this[_0xb4d730(0x264)][_0xb4d730(0x41a)](_0x344fb8,_0x3c9be5);}async[_0x5bf0eb(0x445)](_0x52d242){const _0x499d19=_0x5bf0eb;try{let _0x983a7=this[_0x499d19(0x1f3)](this['_getSignURL'](),''+_0x52d242),_0x1c321b=(await this[_0x499d19(0x21f)][_0x499d19(0x42f)](_0x983a7))[_0x499d19(0x46f)];if(_0x1c321b[_0x499d19(0x35f)]&&_0x1c321b['error'][_0x499d19(0x4ff)]===_0x240cfb[_0x499d19(0x419)]['OK']){let _0x37a962=(0x0,_0x2dbbd9[_0x499d19(0x3ad)])(_0x1c321b[_0x499d19(0x2f6)],this[_0x499d19(0x355)]());return Promise[_0x499d19(0x40f)](_0x37a962);}return Promise[_0x499d19(0x3a3)](_0x1c321b[_0x499d19(0x35f)]);}catch(_0x2ff598){return Promise[_0x499d19(0x3a3)](_0x2ff598);}}async[_0x5bf0eb(0x349)](_0x2e96ea){const _0x11c413=_0x5bf0eb;let _0x2bfa75='';if(!_0x4e927a['DRAWING_IMAGE_ALLOW_IMAGE_LIST'][_0x11c413(0x2c0)](_0x2e96ea[_0x11c413(0x3f8)]))return this[_0x11c413(0x334)](),Promise[_0x11c413(0x3a3)](Error(_0x4e927a['ImageUploadStatusType'][_0x11c413(0x3af)]));if(_0x2e96ea[_0x11c413(0x2a7)]>(0x0,_0x4e927a[_0x11c413(0x2d7)])())return this['_decreaseWaiting'](),Promise[_0x11c413(0x3a3)](Error(_0x4e927a[_0x11c413(0x240)][_0x11c413(0x387)]));try{let _0x3032cf=new FormData();_0x3032cf[_0x11c413(0x3e2)]('file',_0x2e96ea);let _0x5bf55b=this[_0x11c413(0x389)][_0x11c413(0x350)](),_0x5ba5f1=_0x5bf55b==null?void 0x0:_0x5bf55b[_0x11c413(0x3a7)]();if(!_0x5ba5f1)throw Error('unitId\x20is\x20not\x20found');let _0x168dec=this[_0x11c413(0x3be)]()+_0x11c413(0x2b5)+_0x2e96ea['size'][_0x11c413(0x49a)]()+_0x11c413(0x26d)+_0x240cfb[_0x11c413(0x324)][_0x11c413(0x217)]+_0x11c413(0x3ac)+encodeURIComponent(_0x5ba5f1),_0x2d4f5c={'body':_0x3032cf},_0x297452=(await this[_0x11c413(0x21f)]['post'](_0x168dec,_0x2d4f5c))[_0x11c413(0x46f)];if(typeof _0x297452['FileId']!=_0x11c413(0x502))return this['_decreaseWaiting'](),Promise[_0x11c413(0x3a3)](Error(_0x4e927a[_0x11c413(0x240)][_0x11c413(0x4ef)]));_0x2bfa75=_0x297452['FileId'];}catch{return this[_0x11c413(0x334)](),Promise[_0x11c413(0x3a3)](Error(_0x4e927a['ImageUploadStatusType'][_0x11c413(0x4ef)]));}return new Promise((_0x5e6029,_0x18c880)=>{const _0x3df140=_0x11c413;let _0x5ea21c=new FileReader();_0x5ea21c[_0x3df140(0x428)](_0x2e96ea),_0x5ea21c[_0x3df140(0x438)]=_0x27d947=>{const _0x484cb5=_0x3df140;var _0x31a47b;let _0x2652cb=(_0x31a47b=_0x27d947['target'])==null?void 0x0:_0x31a47b[_0x484cb5(0x4b6)];if(_0x2652cb==null){this[_0x484cb5(0x334)](),_0x18c880(Error(_0x4e927a['ImageUploadStatusType'][_0x484cb5(0x4ef)]));return;}_0x5e6029({'imageId':(0x0,_0x2dbbd9[_0x484cb5(0x40d)])(0x6),'imageSourceType':_0x4e927a[_0x484cb5(0x470)][_0x484cb5(0x296)],'source':_0x2bfa75,'base64Cache':_0x2652cb,'status':_0x4e927a[_0x484cb5(0x240)][_0x484cb5(0x2e0)]}),this[_0x484cb5(0x334)]();};});}['_getUploadFileURL'](){const _0x3ac542=_0x5bf0eb;var _0x19630b;let _0x5dce10=this[_0x3ac542(0x266)][_0x3ac542(0x46c)](_0x2a84dd);return(_0x19630b=_0x5dce10==null?void 0x0:_0x5dce10['uploadFileServerUrl'])==null?_0x3ac542(0x323):_0x19630b;}['_getSignURL'](){const _0x58664c=_0x5bf0eb;var _0x239249;let _0x577fc1=this[_0x58664c(0x266)][_0x58664c(0x46c)](_0x2a84dd);return(_0x239249=_0x577fc1==null?void 0x0:_0x577fc1[_0x58664c(0x3f9)])==null?'/universer-api/file/{fileID}/sign-url':_0x239249;}[_0x5bf0eb(0x355)](){const _0x44823a=_0x5bf0eb;var _0x4db432;let _0x22b9af=this[_0x44823a(0x266)][_0x44823a(0x46c)](_0x2a84dd);return(_0x4db432=_0x22b9af==null?void 0x0:_0x22b9af[_0x44823a(0x4ce)])==null?location[_0x44823a(0x433)]:_0x4db432;}[_0x5bf0eb(0x1f3)](_0x3fe38f,_0x260162){const _0x3fbadf=_0x5bf0eb;return _0x3fe38f[_0x3fbadf(0x397)](_0x3fbadf(0x4a7),_0x260162);}['_decreaseWaiting'](){const _0x43afc7=_0x5bf0eb;--this[_0x43afc7(0x361)],this[_0x43afc7(0x35b)][_0x43afc7(0x274)](this[_0x43afc7(0x361)]);}};_0x68b0f9=_0x4e6e0f([_0xe72533(0x0,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x5f56f9[_0x5bf0eb(0x207)])),_0xe72533(0x1,_0x2dbbd9[_0x5bf0eb(0x488)]),_0xe72533(0x2,(0x0,_0x2dbbd9['Inject'])(_0x2dbbd9[_0x5bf0eb(0x4d0)]))],_0x68b0f9);let _0x521f8d=class{constructor(_0xd3cd02,_0x300de8){const _0x4adb4c=_0x5bf0eb;this[_0x4adb4c(0x266)]=_0xd3cd02,this['_HTTPService']=_0x300de8;}[_0x5bf0eb(0x2f8)](){const _0xecaa76=_0x5bf0eb;var _0x26ef26;let _0x3d6f63=this['_configService'][_0xecaa76(0x46c)](_0x2a84dd);return(_0x26ef26=_0x3d6f63==null?void 0x0:_0x3d6f63[_0xecaa76(0x269)])==null?_0xecaa76(0x22f):_0x26ef26;}async[_0x5bf0eb(0x24a)](_0x49ca4f){const _0x607590=_0x5bf0eb;let _0x31ac03=this['_getAPIPrefixPath']()+_0x607590(0x449);return{'list':[{'title':_0x607590(0x4b4),'mentions':(await this[_0x607590(0x27e)][_0x607590(0x42f)](_0x31ac03,{'params':{'objectID':_0x49ca4f[_0x607590(0x281)],'unitID':_0x49ca4f[_0x607590(0x281)]}}))[_0x607590(0x46f)][_0x607590(0x21e)][_0x607590(0x1e3)](_0x55becd=>({'objectId':_0x55becd['id'],'name':_0x55becd['subject']['name'],'metadata':{'icon':_0x55becd[_0x607590(0x2bc)][_0x607590(0x41f)]},'label':_0x55becd['subject'][_0x607590(0x2fd)],'objectType':_0x2dbbd9[_0x607590(0x353)][_0x607590(0x27f)]})),'metadata':{},'type':_0x2dbbd9[_0x607590(0x353)][_0x607590(0x27f)]}]};}};_0x521f8d=_0x4e6e0f([_0xe72533(0x0,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9[_0x5bf0eb(0x488)])),_0xe72533(0x1,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x5f56f9[_0x5bf0eb(0x207)]))],_0x521f8d);let _0x4f64c9=class extends _0x2dbbd9['RxDisposable']{constructor(_0x2e32dc,_0x5d746a,_0x16cb86,_0x42566a,_0x1803a5){const _0x17f1ad=_0x5bf0eb;super(),this['_injector']=_0x2e32dc,this[_0x17f1ad(0x389)]=_0x5d746a,this['_permissionService']=_0x16cb86,this[_0x17f1ad(0x3ec)]=_0x42566a,this['_collaborationUIEventService']=_0x1803a5,this[_0x17f1ad(0x3a8)](),this[_0x17f1ad(0x4f1)]();}[_0x5bf0eb(0x4f1)](){const _0xae562a=_0x5bf0eb;let _0x21a548=async _0x52f4ab=>{const _0x4b0b28=_0x4f27;(await this['_collaborationSessionService']['requireSession'](_0x52f4ab))[_0x4b0b28(0x3b7)][_0x4b0b28(0x4be)]((0x0,_0x2ab3d8['filter'])(_0x26d18a=>_0x26d18a[_0x4b0b28(0x4d9)]===_0x2b53f2['CollaborationEvent'][_0x4b0b28(0x368)]),(0x0,_0x2ab3d8['takeUntil'])(this[_0x4b0b28(0x3ea)]))['subscribe'](_0x1ad40a=>{const _0x5244f6=_0x4b0b28;let {reason:_0x2c8dfa}=_0x1ad40a[_0x5244f6(0x43a)];this['_collaborationUIEventService'][_0x5244f6(0x216)]({'id':_0x5244f6(0x484),'data':_0x2c8dfa}),this[_0x5244f6(0x461)][_0x5244f6(0x4d6)](new _0x184bfa[(_0x5244f6(0x3b1))](_0x52f4ab)['id'],!0x1),this[_0x5244f6(0x3ec)][_0x5244f6(0x25c)](_0x52f4ab);});};(0x0,_0x4f3716['merge'])(this[_0xae562a(0x389)]['getTypeOfUnitAdded$'](_0x2dbbd9[_0xae562a(0x442)][_0xae562a(0x20a)]),this[_0xae562a(0x389)][_0xae562a(0x220)](_0x2dbbd9[_0xae562a(0x442)]['UNIVER_DOC']))[_0xae562a(0x4be)]((0x0,_0x2ab3d8[_0xae562a(0x1e3)])(_0x2177f1=>_0x2177f1[_0xae562a(0x400)][_0xae562a(0x3a7)]()),(0x0,_0x2ab3d8[_0xae562a(0x422)])(_0x3edb10=>!(0x0,_0x2dbbd9[_0xae562a(0x228)])(_0x3edb10)),(0x0,_0x2ab3d8[_0xae562a(0x4fc)])(this[_0xae562a(0x3ea)]))[_0xae562a(0x31f)](_0x48b02f=>{_0x21a548(_0x48b02f);});}['_initUnitPermissionChange'](){const _0x251801=_0x5bf0eb;let _0x4010b2=async _0xf0e73e=>{const _0x28a200=_0x4f27;let _0x398b08=await this['_collaborationSessionService'][_0x28a200(0x3b8)](_0xf0e73e),_0x1eeb56=this[_0x28a200(0x2d5)][_0x28a200(0x42f)](_0x184bfa[_0x28a200(0x30f)]);_0x398b08[_0x28a200(0x3b7)][_0x28a200(0x4be)]((0x0,_0x2ab3d8['filter'])(_0x179e27=>_0x179e27['eventID']===_0x2b53f2[_0x28a200(0x406)][_0x28a200(0x246)]),(0x0,_0x2ab3d8[_0x28a200(0x4fc)])(this['dispose$']))[_0x28a200(0x31f)](_0x40d866=>{const _0x3243ee=_0x28a200;let {objectId:_0x3c7704}=_0x40d866[_0x3243ee(0x43a)];_0x3c7704===_0xf0e73e?_0x1eeb56[_0x3243ee(0x35e)](_0xf0e73e):_0x1eeb56[_0x3243ee(0x4e1)](_0xf0e73e,_0x3c7704);});};(0x0,_0x4f3716[_0x251801(0x42a)])(this[_0x251801(0x389)][_0x251801(0x220)](_0x2dbbd9[_0x251801(0x442)]['UNIVER_SHEET']))['pipe']((0x0,_0x2ab3d8[_0x251801(0x1e3)])(_0x5001c0=>_0x5001c0[_0x251801(0x400)][_0x251801(0x3a7)]()),(0x0,_0x2ab3d8[_0x251801(0x422)])(_0x265575=>!(0x0,_0x2dbbd9[_0x251801(0x228)])(_0x265575)),(0x0,_0x2ab3d8['takeUntil'])(this[_0x251801(0x3ea)]))['subscribe'](_0x19bc90=>{_0x4010b2(_0x19bc90);});}};_0x4f64c9=_0x4e6e0f([_0xe72533(0x0,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9['Injector'])),_0xe72533(0x1,_0x2dbbd9['IUniverInstanceService']),_0xe72533(0x2,_0x2dbbd9[_0x5bf0eb(0x338)]),_0xe72533(0x3,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x1d8d49)),_0xe72533(0x4,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x10b08d))],_0x4f64c9);let _0x13e673=class{constructor(_0x534959,_0x4fe0e3){const _0x319c95=_0x5bf0eb;this[_0x319c95(0x266)]=_0x534959,this[_0x319c95(0x21f)]=_0x4fe0e3;}async[_0x5bf0eb(0x4b1)](_0x5d1761,_0x43ec15){const _0x2d5a33=_0x5bf0eb;var _0x3a4fa3;let {unitID:_0x4a73b5,type:_0x110e48,revision:_0x5236df=0x0}=_0x43ec15,_0x4e4e99=this['getSnapshotAPIPath']()+'/'+_0x110e48+_0x2d5a33(0x30c)+_0x4a73b5+'/rev/'+_0x5236df,_0x35489e=(await this[_0x2d5a33(0x21f)][_0x2d5a33(0x42f)](_0x4e4e99))['body'],_0x1dc388=(_0x3a4fa3=_0x35489e[_0x2d5a33(0x3e0)])==null?void 0x0:_0x3a4fa3[_0x2d5a33(0x4f2)];if(_0x1dc388){let _0x39dc7e=_0x1dc388==null?void 0x0:_0x1dc388[_0x2d5a33(0x40a)];_0x1dc388['originalMeta']=_0x2b53f2[_0x2d5a33(0x290)][_0x2d5a33(0x45c)]((0x0,_0x2b53f2[_0x2d5a33(0x4de)])(_0x39dc7e)),Object[_0x2d5a33(0x23a)](_0x1dc388['sheets'])[_0x2d5a33(0x312)](([,_0x26e01a])=>{const _0x2fd64f=_0x2d5a33;let _0x186b8c=_0x26e01a[_0x2fd64f(0x40a)];_0x26e01a[_0x2fd64f(0x40a)]=_0x2b53f2['textEncoder'][_0x2fd64f(0x45c)]((0x0,_0x2b53f2[_0x2fd64f(0x4de)])(_0x186b8c));});}return _0x35489e;}async['getSheetBlock'](_0x1a1b92,_0x3d4329){const _0x4852ad=_0x5bf0eb;let {unitID:_0xf5c150,type:_0x1f4ff4,blockID:_0x2cdf8c}=_0x3d4329,_0x59b445=this[_0x4852ad(0x4ac)]()+'/'+_0x1f4ff4+_0x4852ad(0x30c)+_0xf5c150+_0x4852ad(0x2c1)+_0x2cdf8c;return(await this[_0x4852ad(0x21f)]['get'](_0x59b445))[_0x4852ad(0x46f)];}async[_0x5bf0eb(0x4c2)](_0xc27a38,_0x3df773){const _0x429d57=_0x5bf0eb;let {unitID:_0x3f6871,type:_0xc2d317,blockID:_0x5e2513}=_0x3df773,_0x1fc19b=this[_0x429d57(0x4ac)]()+_0x429d57(0x2c1)+_0xc2d317+_0x429d57(0x30c)+_0x3f6871+_0x429d57(0x2c1)+_0x5e2513;return(await this['_httpService']['get'](_0x1fc19b))[_0x429d57(0x46f)];}async[_0x5bf0eb(0x4b7)](_0x2b88f0,_0xaf3cfe){const _0x321dbe=_0x5bf0eb;let {unitID:_0x3708b9,type:_0x5a0a3b,from:_0x1e9e24,to:_0x5a272c}=_0xaf3cfe,_0x63f5f1=this[_0x321dbe(0x4ac)]()+'/'+_0x5a0a3b+'/unit/'+_0x3708b9+_0x321dbe(0x24c)+_0x1e9e24+_0x321dbe(0x329)+_0x5a272c;return(await this['_httpService'][_0x321dbe(0x42f)](_0x63f5f1))[_0x321dbe(0x46f)];}[_0x5bf0eb(0x29e)](){const _0xeb05=_0x5bf0eb;var _0x1919ec;return(_0x1919ec=this[_0xeb05(0x266)][_0xeb05(0x46c)](_0xeb05(0x3cf)))==null?this[_0xeb05(0x4ac)]():_0x1919ec;}['_getAPIPrefix'](){const _0x596efc=_0x5bf0eb;var _0x25743c;let _0x14f0b3=this[_0x596efc(0x266)][_0x596efc(0x46c)](_0x2a84dd);return(_0x25743c=_0x14f0b3==null?void 0x0:_0x14f0b3[_0x596efc(0x489)])==null?_0x596efc(0x1e2):_0x25743c;}async['getResourcesRequest'](_0xd33948,_0x147181){const _0x89663=_0x5bf0eb;let _0x5c8601=_0x89663(0x1ed)+_0x147181['type']+'/unit/'+_0x147181[_0x89663(0x37e)]+_0x89663(0x2b7);return(await this['_httpService'][_0x89663(0x42f)](_0x5c8601,{'params':{'resourceId':JSON[_0x89663(0x337)](_0x147181[_0x89663(0x299)])}}))[_0x89663(0x46f)];}[_0x5bf0eb(0x435)](){const _0x3aa95b=_0x5bf0eb;throw Error(_0x3aa95b(0x446));}[_0x5bf0eb(0x2eb)](){const _0xa96c6c=_0x5bf0eb;throw Error(_0xa96c6c(0x446));}[_0x5bf0eb(0x230)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x5bf0eb(0x42c)](){const _0x3135f3=_0x5bf0eb;throw Error(_0x3135f3(0x446));}[_0x5bf0eb(0x380)](){const _0x15defa=_0x5bf0eb;throw Error(_0x15defa(0x446));}[_0x5bf0eb(0x2f4)](){const _0xf2bc79=_0x5bf0eb;throw Error(_0xf2bc79(0x446));}};_0x13e673=_0x4e6e0f([_0xe72533(0x0,_0x2dbbd9['IConfigService']),_0xe72533(0x1,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x5f56f9[_0x5bf0eb(0x207)]))],_0x13e673);let _0x29d13a=class extends _0x2dbbd9['LocalUndoRedoService']{constructor(_0x2d2a08,_0xa5c0f5,_0x20c9f1,_0x144a34,_0x1e4085){const _0x25ba5b=_0x5bf0eb;super(_0x2d2a08,_0xa5c0f5,_0x20c9f1),this[_0x25ba5b(0x409)]=_0x144a34,this[_0x25ba5b(0x236)]=_0x1e4085;}[_0x5bf0eb(0x44b)](_0xf55f86,_0x165bdf){const _0x495001=_0x5bf0eb;let _0x2d05ad=this[_0x495001(0x221)](_0xf55f86);if(_0x2d05ad)try{let _0xc21630=this[_0x495001(0x255)](_0x2d05ad,_0x165bdf);this['_substituteUndoStack'](_0xf55f86,_0xc21630);}catch(_0x28c1de){this[_0x495001(0x236)]['error'](_0x495001(0x32e),_0x28c1de),this[_0x495001(0x345)](_0xf55f86);}let _0x5a984b=this[_0x495001(0x28b)](_0xf55f86);if(_0x5a984b)try{let _0x3ea45f=this[_0x495001(0x255)](_0x5a984b,_0x165bdf);this[_0x495001(0x2e1)](_0xf55f86,_0x3ea45f);}catch(_0x2c8e14){this[_0x495001(0x236)][_0x495001(0x35f)](_0x2c8e14),this['_clearRedo'](_0xf55f86);}}['_clearUndo'](_0x3f4de6){const _0x39a4c4=_0x5bf0eb;let _0x250553=this[_0x39a4c4(0x221)](_0x3f4de6);_0x250553&&(_0x250553[_0x39a4c4(0x2e3)]=0x0,this['_updateStatus']());}[_0x5bf0eb(0x386)](_0x12b0b3){const _0x2d8e36=_0x5bf0eb;let _0x4541e8=this[_0x2d8e36(0x28b)](_0x12b0b3);_0x4541e8&&(_0x4541e8[_0x2d8e36(0x2e3)]=0x0,this[_0x2d8e36(0x339)]());}[_0x5bf0eb(0x347)](_0x4e8eba,_0x1533bf){const _0x462c50=_0x5bf0eb;this[_0x462c50(0x33d)][_0x462c50(0x41a)](_0x4e8eba,_0x1533bf),this[_0x462c50(0x339)]();}[_0x5bf0eb(0x2e1)](_0x2b1af8,_0x5d73d9){const _0x16cf1a=_0x5bf0eb;this[_0x16cf1a(0x2e4)][_0x16cf1a(0x41a)](_0x2b1af8,_0x5d73d9),this[_0x16cf1a(0x339)]();}[_0x5bf0eb(0x255)](_0x45f85b,_0xd8d00){const _0x33e49c=_0x5bf0eb;let _0x4dbe8f=[],_0x2ca3d4=_0xd8d00,_0x62e47d=_0xd8d00;for(let _0x4d22fc=_0x45f85b[_0x33e49c(0x2e3)]-0x1;_0x4d22fc>=0x0;_0x4d22fc--){let {unitID:_0x58d493,undoMutations:_0x3a2677,redoMutations:_0x3c3f17}=_0x45f85b[_0x4d22fc],_0x434587=this[_0x33e49c(0x409)][_0x33e49c(0x3db)](_0x2ca3d4,_0x3a2677),_0x4064f9=this['_transformService']['transformMutationsWithChangeset'](_0x62e47d,_0x3c3f17);if((0x0,_0x2b53f2[_0x33e49c(0x485)])(_0x434587)||(0x0,_0x2b53f2[_0x33e49c(0x485)])(_0x4064f9)){this['_logService'][_0x33e49c(0x35f)](_0x33e49c(0x32e),_0x33e49c(0x2b9),_0x434587,_0x4064f9);break;}_0x2ca3d4=_0x434587[_0x33e49c(0x491)],_0x62e47d=_0x4064f9['c1Prime'],_0x4dbe8f['push']({'unitID':_0x58d493,'undoMutations':_0x434587[_0x33e49c(0x4c9)],'redoMutations':_0x4064f9[_0x33e49c(0x4c9)]});}return _0x4dbe8f[_0x33e49c(0x2f5)]();}};_0x29d13a=_0x4e6e0f([_0xe72533(0x0,_0x2dbbd9[_0x5bf0eb(0x4d0)]),_0xe72533(0x1,_0x2dbbd9[_0x5bf0eb(0x28c)]),_0xe72533(0x2,_0x2dbbd9[_0x5bf0eb(0x410)]),_0xe72533(0x3,_0x2b53f2[_0x5bf0eb(0x3e9)]),_0xe72533(0x4,_0x2dbbd9[_0x5bf0eb(0x21b)])],_0x29d13a);let _0x59dcfc=class extends _0x2dbbd9[_0x5bf0eb(0x26e)]{constructor(_0x5f4879={},_0x72c5d4,_0x5a5872,_0x3acc8b){const _0x6cb3a0=_0x5bf0eb;super(),this['_config']=_0x5f4879,this[_0x6cb3a0(0x236)]=_0x72c5d4,this[_0x6cb3a0(0x2d5)]=_0x5a5872,this[_0x6cb3a0(0x266)]=_0x3acc8b;let {..._0x5a594a}=(0x0,_0x2dbbd9[_0x6cb3a0(0x42a)])({},_0x3b8dd5,_0x5f4879);if(!_0x5a594a[_0x6cb3a0(0x2b3)])throw Error(_0x6cb3a0(0x270));this['_config']=_0x5a594a,this['_configService'][_0x6cb3a0(0x201)](_0x2a84dd,_0x5a594a);}[_0x5bf0eb(0x3f2)](){const _0x2935b9=_0x5bf0eb;this[_0x2935b9(0x238)](),this[_0x2935b9(0x257)]();}[_0x5bf0eb(0x238)](){const _0x2440d7=_0x5bf0eb;var _0x2339e5,_0x3d6524;this[_0x2440d7(0x2d5)][_0x2440d7(0x252)](_0x2dbbd9['IUndoRedoService'])&&this['_logService'][_0x2440d7(0x35f)](_0x2440d7(0x47b),_0x2440d7(0x48e));let _0x5021a9=(0x0,_0x2dbbd9[_0x2440d7(0x39f)])([[_0x2dbbd9[_0x2440d7(0x4bd)],{'useClass':_0x29d13a}],[_0x1d8d49],[_0xf86089],[_0x53e950],[_0x39e94c],[_0x41e2cb],[_0x4f6931],[_0x4f64c9],[_0x10b08d],[_0x48b093],[_0x18a142,{'useClass':this[_0x2440d7(0x4b3)][_0x2440d7(0x2b3)]}],[_0x2b53f2[_0x2440d7(0x28a)],{'useClass':_0x13e673}],[_0x2dbbd9[_0x2440d7(0x4c5)],{'useClass':_0x2d37b7}],[_0x4e927a[_0x2440d7(0x26c)],{'useClass':_0x68b0f9}],[_0x2dbbd9[_0x2440d7(0x4e4)],{'useClass':_0x521f8d}],[_0x573fbd],[_0x2af5f4]],(_0x2339e5=this[_0x2440d7(0x4b3)])==null?void 0x0:_0x2339e5[_0x2440d7(0x2c2)]);if(!((_0x3d6524=this['_config'])!=null&&_0x3d6524[_0x2440d7(0x237)])){let _0xee17e1=_0x5021a9[_0x2440d7(0x3a1)](([_0x2a1a88])=>_0x2a1a88===_0x268fcd);_0xee17e1!==-0x1&&_0x5021a9[_0x2440d7(0x356)](_0xee17e1,0x1);}(0x0,_0x2dbbd9[_0x2440d7(0x2ea)])(this[_0x2440d7(0x2d5)],_0x5021a9);}[_0x5bf0eb(0x257)](){const _0x4f368a=_0x5bf0eb;var _0x5ac68e,_0x56c771;if(this[_0x4f368a(0x2d5)][_0x4f368a(0x42f)](_0x5f56f9['HTTPService'])[_0x4f368a(0x41b)]({'priority':0x14,'interceptor':(0x0,_0x5f56f9[_0x4f368a(0x44f)])({'maxParallel':0x6})}),!((_0x5ac68e=this['_config'])!=null&&_0x5ac68e[_0x4f368a(0x321)])){var _0x589980;(_0x589980=this[_0x4f368a(0x2d5)][_0x4f368a(0x42f)](_0x36e220,_0x2dbbd9[_0x4f368a(0x241)][_0x4f368a(0x34f)]))==null||_0x589980[_0x4f368a(0x459)]();}(_0x56c771=this[_0x4f368a(0x4b3)])!=null&&_0x56c771['enableAuthServer']&&(0x0,_0x2dbbd9['touchDependencies'])(this[_0x4f368a(0x2d5)],[[_0x39e94c]]),(0x0,_0x2dbbd9['touchDependencies'])(this[_0x4f368a(0x2d5)],[[_0x41e2cb],[_0x573fbd],[_0x4f64c9]]);}};_0x527b5d(_0x59dcfc,_0x5bf0eb(0x233),_0x5bf0eb(0x448)),_0x527b5d(_0x59dcfc,_0x5bf0eb(0x413),_0x36adc3),_0x527b5d(_0x59dcfc,_0x5bf0eb(0x4fe),_0xc8583d),_0x59dcfc=_0x4e6e0f([(0x0,_0x2dbbd9[_0x5bf0eb(0x293)])(_0x3b77ee['UniverLicensePlugin'],_0x2b53f2[_0x5bf0eb(0x26a)],_0x5f56f9[_0x5bf0eb(0x291)]),_0xe72533(0x1,_0x2dbbd9[_0x5bf0eb(0x21b)]),_0xe72533(0x2,(0x0,_0x2dbbd9[_0x5bf0eb(0x2c3)])(_0x2dbbd9['Injector'])),_0xe72533(0x3,_0x2dbbd9[_0x5bf0eb(0x488)])],_0x59dcfc),Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x4a4),{'enumerable':!0x0,'get':function(){return _0x2d37b7;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x2dc),{'enumerable':!0x0,'get':function(){return _0x45f3bd;}}),Object['defineProperty'](_0x44d4a3,_0x5bf0eb(0x4c6),{'enumerable':!0x0,'get':function(){return _0x2be15f;}}),_0x44d4a3[_0x5bf0eb(0x3ae)]=_0x2a84dd,Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x463),{'enumerable':!0x0,'get':function(){return _0x573fbd;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x31e),{'enumerable':!0x0,'get':function(){return _0x3e0a94;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x3df),{'enumerable':!0x0,'get':function(){return _0x68b0f9;}}),Object['defineProperty'](_0x44d4a3,_0x5bf0eb(0x4ee),{'enumerable':!0x0,'get':function(){return _0x2fe3e1;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,'CollaborationSessionService',{'enumerable':!0x0,'get':function(){return _0x1d8d49;}}),Object['defineProperty'](_0x44d4a3,_0x5bf0eb(0x47e),{'enumerable':!0x0,'get':function(){return _0x47e4bb;}}),_0x44d4a3[_0x5bf0eb(0x2cb)]=_0x41a59c,_0x44d4a3[_0x5bf0eb(0x253)]=_0x3c5b62,_0x44d4a3[_0x5bf0eb(0x327)]=_0x10b08d,Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x1fb),{'enumerable':!0x0,'get':function(){return _0x29d13a;}}),_0x44d4a3[_0x5bf0eb(0x486)]=_0x4f6931,Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x363),{'enumerable':!0x0,'get':function(){return _0x4446c9;}}),_0x44d4a3['DEFAULT_COLLAB_WEB_SOCKET_URL']=_0xcb84c1,_0x44d4a3[_0x5bf0eb(0x443)]=_0x5bf0eb(0x279),_0x44d4a3['DEFAULT_WS_SESSION_TICKET_URL']='/universer-api/user/session-ticket',Object[_0x5bf0eb(0x497)](_0x44d4a3,'DataLoaderService',{'enumerable':!0x0,'get':function(){return _0x48b093;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x25e),{'enumerable':!0x0,'get':function(){return _0xe7b4d0;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,'FetchingMissState',{'enumerable':!0x0,'get':function(){return _0x49dbd8;}}),_0x44d4a3['HEARTBEAT_INTERVAL_KEY']=_0x5bf0eb(0x414),_0x44d4a3['HEARTBEAT_TIMEOUT_KEY']=_0x5bf0eb(0x4d7),_0x44d4a3[_0x5bf0eb(0x39a)]=_0x18a142,_0x44d4a3[_0x5bf0eb(0x206)]=_0x36e220,_0x44d4a3[_0x5bf0eb(0x2ae)]=_0x235c1d,_0x44d4a3[_0x5bf0eb(0x317)]=_0x268fcd,_0x44d4a3[_0x5bf0eb(0x4bb)]=0x3e8,_0x44d4a3[_0x5bf0eb(0x4cb)]=_0x5bf0eb(0x4bb),Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x297),{'enumerable':!0x0,'get':function(){return _0xf86089;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x4f0),{'enumerable':!0x0,'get':function(){return _0x521f8d;}}),Object['defineProperty'](_0x44d4a3,_0x5bf0eb(0x4c4),{'enumerable':!0x0,'get':function(){return _0x5a87ab;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,'PendingState',{'enumerable':!0x0,'get':function(){return _0x17b236;}}),_0x44d4a3[_0x5bf0eb(0x1e5)]=_0x5bf0eb(0x30b),_0x44d4a3[_0x5bf0eb(0x4bc)]=_0x5bf0eb(0x472),_0x44d4a3[_0x5bf0eb(0x1ea)]=_0x45b19d,Object['defineProperty'](_0x44d4a3,_0x5bf0eb(0x47f),{'enumerable':!0x0,'get':function(){return _0x4db82b;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x43d),{'enumerable':!0x0,'get':function(){return _0x53e950;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x496),{'enumerable':!0x0,'get':function(){return _0x13e673;}}),Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x29b),{'enumerable':!0x0,'get':function(){return _0x28d539;}}),_0x44d4a3[_0x5bf0eb(0x378)]=_0x26ce4c,Object[_0x5bf0eb(0x497)](_0x44d4a3,_0x5bf0eb(0x3fd),{'enumerable':!0x0,'get':function(){return _0x59dcfc;}}),_0x44d4a3[_0x5bf0eb(0x37b)]=_0x1a0343,_0x44d4a3[_0x5bf0eb(0x1e4)]=_0x41fc85,_0x44d4a3['serializeCombRequest']=_0x600b81;}));
1
+ function _0x2112(){const _0x2ab8ac=['_sessions',',\x20got:\x20','forEach','DependentOn','clear','_snapshotService','_changesetReqId','executeCommand','SYNCED','_sendHeartbeatTimer','removeMember','_initCloseConn','isTransformChangesetsSuccess','_collaborationTimeoutTimer','InsertSheetMutation','decorate','_onRemoteRetry','packageName','_sendingTimer','pluginName','override','RECV','_initMergeInterceptor','every','_awaitingChangeset','getTypeOfUnitAdded$','AWAITING_WITH_PENDING','_onJoinRoomEvent','WorkbookEditablePermission','close$','rxjs/operators','_removeRoom','SUBMIT_CHANGESET_TIMEOUT','[CollaborationSessionService]','_transformService','onRemoteAck','2593953WmSVpI','FETCH_MISS','getTime','_roomCreated$','OTHER_CLIENTS_EDITING','getImage','sid','Quantity','_maxTotalRetryTimeout','memberID','/block/','push','/role','setWaitCount','getMemberID','_tryEnsureSocket','collaboration_new_changeset','_startCollaboration','fromHex','status$','35MezOeS','onRemoteRetry','@univerjs-pro/license','post','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_localeService','_executeRemoteChangeset','_init','[CollaborationSession]','RevisionService','_onRecvEvent','save\x20fail\x20reason\x20is\x20','sort','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_getSignURL','nonceLength','body','_acknowledgedAwaitingRevision','&source=','ImageUploadStatusType','_schedule','ReplaySubject','_undoStacks','_doCreateSocket','readAsDataURL','getUnitOnRev','default','transformMutationsWithChangeset','COMPRESS_MUTATION_APPLY','open$','prototype','awaitingChangeset','DocCollaborationEntity','LIVESHARE_TERMINATE','max','SHOULD_CLOSE_CONN','resend','/unit/','initWorkbookPermissionChange','cmd','_transformStack','UPDATE_CURSOR','_getUndoStack','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','/fetchmissing?from=','CombCmd','session.join-failed','has','CompressMutationService','decrypt','_sheetTransformSelectionsService','updateCollaborator','collabWebSocketUrl','Failed\x20to\x20update\x20permission\x20point','Subject','updatePermissionPoint','result','&to=','complete','_retryConnectingTimer','_onRemoteRejected','output','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','enableOfflineEditing','objectActions','enableSingleActiveInstanceLock','isPermissionRej','CollaborativeUndoRedoService','code','length=','_sender','toStringTag','CHANGESET_REJ','@univerjs/network','object','DisposableCollection','_httpService','_event$','location','SheetPermissionInitController','onTransformRemoteChangesetByIMECache','incrementRevOfUnit','appendMutation','saveSnapshot','_transformRemoteChangesetByStateCache','floor','[SyncedState]:\x20received\x20rejection.','_pendingMutations','allowed','toggleOnline','message$','JOIN_ROOM_NOT_EXISTS','getCurrentRevOfUnit','objectID','SyncedState','_showConflictNotification','_clearCollaborationTimeoutTimer','call','UniverProCollaborationClient','delay','setCurrentUser','crypto.getRandomValues\x20must\x20be\x20defined','_createInitialStateImpl','HEARTBEAT_TIMEOUT','OFFLINE','HTTPService','key','DRAWING_IMAGE_ALLOW_IMAGE_LIST','ERROR_IMAGE','c1Prime','_sendHeartbeat','[PendingState]:\x20received\x20acknowledgement.','includes','delete','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','IUniverInstanceService','_configService','univer-pro.collaboration-client-socket-service','length','event$','BYTES_PER_ELEMENT','_listenToNetworkCondition','_config','routeKey','_imageSourceCache','_startTelemetryCollaborationNewChangeset','@univerjs/core','_resendTimeout','values','NO_OTHER_CLIENTS_EDITING','[DataLoaderService]','_sessionStatus$','_fetchMissChangesets','stopTime','_socket','IPermissionService','_unitInfo$','ITelemetryService','_timeoutTimer','/universer-api/uniscript','IImageIoService','charCodeAt','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','PERMISSION_DENIED','__splitChunk__','byteLength','iterator','loadOfflineData','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','session.room-not-exists','SUBMIT_CHANGESET','missingChangesets','addImageSourceCache','SnapshotServerOverHTTPService','CLOSE_ROOM','socket$','onSendChangeset','_members','aes/pkcs7:\x20wrong\x20padding','_onConflict','reverse','SOCKET_FAILED_RETRY','FileId','takeUntil','_createHandler','objectType','requireSession','getUnit','getOwnPropertyDescriptor','change$','find','subscribe','hostname','RxDisposable','DataLoaderService','data','fetching\x20missing\x20changesets\x20from\x20','ERROR_EXCEED_SIZE','confirm','_entityInit$','getTypeOfUnitDisposed$','AWAITING','_commentUpdate$','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_applyRemoteChangeset','JOIN_ROOM_FULL','retryConnectingInterval','ITransformService','debug','_stopTelemetryCollaborationNewChangeset','CollaborationUIEventId','RETRY_CONNECTING_MAX_COUNT_KEY','onMissingChangesets','isTransformMutationsWithChangesetSuccess','map','_acknowledgeAwaiting','parse','@univerjs/protocol','conflict','CONFLICT','transformUndoRedo','ImageSourceType','COMPRESS_MUTATION_SEND','onCommentUpdate','size','UserManagerService','_getRedoStack','LOCAL_CACHE_INTERVAL','ONLINE','Tools','6724xxLeYg','getCfgEnableObjInherit','_handleRemoteChangesets','/rev/','/universer-api/comb','POST','_HTTPService','@univerjs/docs','type','from','auth.needGotoLoginAlert','\x20in\x20_schedule.','UniverCollaborationPlugin','EmptyMutationInfo','getCollabEntity$','status','cipher\x20output\x20not\x20supported','sheets','[OfflineState]:\x20received\x20acknowledgement.','subject','invalid\x20output,\x20must\x20be\x20aligned','capture','SUCCUSS','@univerjs/sheets','version','NEW_CHANGESETS','loadSheet','[CollaborationState]:\x20apply\x20error!','IDLE','@univerjs/telemetry','getMember','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','csRejEvent','getCurrentUser','_transformIMECache','exports','parseProtocolChangeset','href','_scheduleCompleteTimestamp','collaborators','state$','eventID','UniverTelemetry','Inject','src','_transformUndoredo','disposeWithMe','filter','selections','fromCharCode','loadUnitOfRevision','method','byteOffset','apply','onRemoteRej','_updateState','Error\x20on\x20receiving\x20event','socket\x20close','/allowed','action','_clearScheduledTask','copyFileMeta','refreshPermission','createCollaborator','toString','_substituteRedoStack','_onRemoteChangeset','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_getSendChangesetTimeout','Module','{fileID}','entityInit$','createIdentifier','target','baseRev','UniverDrawing','SheetsSelectionsService','SetSelectionsOperation','tagLength','JOINING','_onConnectionFailed','collaMsg','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','getGlobalObject','_isPermissionRej','_commandService','saveSheetBlock','b64DecodeUnicode','ThresholdInterceptorFactory','IAuthzIoService','setCfgEnableObjInherit','_changesetSessionId','defineProperty','onload','collabSubmitChangesetUrl','\x0aCurrent:\x20','submit\x20changeset\x20error!','_logService','merge','focused$','LIVESHARE_REQUEST_HOST','COMMENT_UPDATE','_handler','responseType','updatePermissionObjEvent','not_collab','PendingState','getUnitType','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','HELLO','toggleOffline','commentUpdate$','_clearUndo','_type','synced','updateOfflineData','encrypt','_onUserLeave','UNIVER_DOC','disablePadding','UniverLicensePlugin','duration','NOT_COLLAB','&assign=','onTransformSelections','_getUploadFileURL','_emitMembers','deepClone','Optional','CollaborationUIEventService','firstValueFrom','range','ISingleActiveUnitService','connection\x20error','CollaborationEntity','_status$','c2Prime','updateCursorEvent','title','_permissionService','Plugin','touchDependencies','15835yViJRp','UniverSheets','replace','encode','roomInfos','stringify','_throwTelemetryCollaborationNewChangeset','_checkMissing','univer-pro.collaboration-client.single-active-unit-service','MemberService','compose',',\x20got\x20','_compressMutationService','518192Payjti','localeService','workbook','CollaborationImageIoService','getFocusedUnit','x-univer-host','_change$','assign','createSocket','LIVESHARE_OPERATION','_eventService','batchAllowed','fill','CommandType','registerHTTPInterceptor','UniverCollaborationClientPlugin','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','FETCH_MISSING','csShouldRetryEvent','roles','/-/object/list','saveImage','_remoteChangesetQueue','session','PERMISSION_REJ','_submitChangeset','withCredentials','_transformAndApplyRemoteChangeset','CollaborationEvent','editing\x20status\x20changed\x20to','send','onTransformIME','10nCpamW','unsubscribe','liveShareOperation','_clearHeartbeatTimer','ICollaborationSocketService','snapshot','_state$','_acknowledgeAwaitingIfReady','_handlerCallback','fetchMiss','onTransformRemoteChangesetByStateCache','RETRY_CONNECTING_MAX_COUNT','_entities','resourceIDs','authzUrl','resolveWithBasePath','/universer-api/file/{fileID}/sign-url','error','/collaborator','IUndoRedoService','update','MentionType','_unitID','asObservable','_revisionService','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_createSocket','generateRandomId','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_clearTimeoutTimer','_localCacheService','getResourcesRequest','USERS_LEAVE','_collabSessionService','_onMessage','_members$','sessionStatus','unit','MSG_FOR_ERROR','UNISCRIPT_RUN','_roomMembers','_getDownloadEndpointURL','registerDependencies','put','_getCurrentRevision','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','cfgEnableObjInherit','transformSelections','list','1867020yrCOro','isSafeInteger','CmdRspCode','state','reqId','interceptor','telemetry\x20info\x20is\x20not\x20initialized','_exhaustRemoteChangesetQueue','set','_transformStateCache','listRoles','unitId\x20is\x20not\x20found','LIVESHARE_FETCH_OPERATIONS','CommentService','getRandomValues','AwaitingWithPendingState','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_onOffline','_initUnitPermissionChange','originalMeta','catch','_state','pending','0.24.0','HEARTBEAT_INTERVAL','RichTextEditingMutation','string\x20expected','_joinRoom','_candidateSocket','CHANGESET_SHOULD_RETRY','DEFAULT_COLLAB_WEB_SOCKET_URL','_onUserJoin','fetch_missing','positive\x20integer\x20expected,\x20got\x20','_commentService','_collaborationPaused','toDisposable','_updateLocalCache','MergeInterceptorFactory','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','snapshotServerUrl','SnapshotService','startTime','ISocketService','init','loadUnit','nonce','_onLocalMutation','_collaborationUIEventService','FetchingMissState','putCollaborators','changesets','_replayCachedMutations','/universer-api/authz','isTransformMutationsWithChangesetFailure','MentionIoHttpService','unitInfo$','deleteCollaborator','UNIVER_COLLABORATION_CLIENT_PLUGIN','shouldCloseConn','UniverInstanceType','getSheetBlock','ISnapshotServerService','textRanges','_tryReconnect','error$','[OfflineState]:\x20received\x20rejection.','online$','updateMember','_createInitialState','13504700kYAnAP','getWorkbookSelections','/universer-api/snapshot/','UniverProCollaboration','name','_univerInstanceService','CollaborationStatus','Wrong\x20sbox\x20length','UPDATE_PERMISSION_OBJ','/object','\x20of\x20length\x20','symbol','FileSource','rxjs','origin','[SyncedState]:\x20received\x20acknowledgement.','_redoStacks','_transformRemoteChangesetByIMECache','INGEST','startsWith','reconnect','LocaleService','_getCtorByUniverInstanceType','editingUnit','mutations','_scheduleCollaborationTimeoutTimer','newCsEvent','_initDependencies','_toggleOffline','/-/object/-/batch_allowed','type=','getConfig','shareReplay','_collaborationSessionService','_injector','concatMap','_telemetryInfo','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','session.room-permission-denied','socket\x20open.','/universer-api/oidc/authpage','LEAVE','Rectangle','_resendTimer','ICommandService','LIVESHARE_NEW_HOST','revision','_networkConditionService','_cfgEnableObjInherit','take','setShowComponents','_rescheduleHeartbeat','\x20to\x20','AuthzIoHttpService','actions','mergeOverrideWithDependencies','FAIL','indexOf','m2Prime','JOIN_ROOM_FAILED','PERSON','file','_getAPIPrefixPath','ILogService','constructor','enableCollaboration','function','emitEvent','_retryCount','reject','[CollaborationUndoRedoService]','getLatestCsReqIdBySid','get','_socketReady','_transformSelections','_transitionLocked','url','SheetCollaborationEntity','GLOBAL_ROOMS_CNT_EXCEEDS','now','pauseCollaboration','sessionStatus$','onLocalMutation','offline','Injector','buffer','_socketMessageSubscription','getSnapshotAPIPath','subarray','_lockTransition','listCollaborators','onlyLocal','getActiveSheet','closeSession','Uint8Array','_updateStatus','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','BASE64','transformChangesets','mapDocumentTypeToUniverInstanceType','onRemoteChangeset','UniverProLicense','onStarting','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','close','_syncEditingCollabCursor','patch','Disposable','PSEUDO_FETCH_MISSING_RESULT','_disableEditing','1602DaGYyY','unknown','isArray','_onConnectionOpen','?size=','JOIN_ROOM_PERMISSION_DENIED','OPTIONAL','_queuedRemoteChangesets','getImageSourceCache','requestParams','/object/','onMutationExecutedForCollab','getAllMembers','\x20-\x20','MUTATION','_getAPIPrefix','_memberService','getLocalCacheKey','UnitStatus','CHANGESET_ACK','_clearRedo','_clearLocalCache','sendChangesetTimeout','BehaviorSubject','@univerjs-pro/collaboration','string','sequenceExecute','entries','USERS_ENTER','readyForCollab','add','findIndex','_clearRetryConnectingTimer','CollaborationSession','468282lzvWRK','_singleActiveUnitService','__Key__','varSizeNonce','setConfig','crypto','_decreaseWaiting','number\x20expected,\x20got\x20','_telemetryService','[CollaborationEntity]','_instanceService','collaboration-client.config','getValue','UNIVER_SHEET','_getLoginPath','joinEvent','_incrementRevisionNumber','socketService','[PendingState]:\x20unhandled\x20univer\x20type:\x20','localCacheService','_resendWithTimeout','getInterceptPoints','saveChangeset','ErrorCode','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','csAckEvent','onMissedChangesetFetched','userID','pipe','_initRequestHeader','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','liveShareNewHost','dispose$','fetchThroughInterceptors','min','JOIN','[OfflineState]:\x20received\x20changeset.','_shouldReportTelemetry','124qwScQM','_onCombEvent','_waitCount','UUID','unitId','HEARTBEAT','SOCKET_FAILED','members$','_substituteUndoStack','LocalUndoRedoService','CollaborationController','_userManagerService','unitID','_socket$','objects','textEncoder','reduce','onSyncEditingCollabCursor','amd','params','_isEchoedAwaitingChangeset','IConfigService','_onRemoteACK','onTransformState','createInstance','failed\x20to\x20apply\x20missed\x20changesets!','serializeCombRequest','getUnitStatus$','enableAuthServer','_registerDependencies','getCollabEntity','next','dispose','Workbook','deserializeToCombResponse','awaiting_with_pending','unit-cache-','_unlockTransition','session.room-cnt-exceeds','\x0aAfter:\x20','_socketService','_snapshotServerService','getUnitId','JSONX','awaiting','infoRsp'];_0x2112=function(){return _0x2ab8ac;};return _0x2112();}function _0x2103(_0x35fecc,_0x145abc){_0x35fecc=_0x35fecc-0x1f0;const _0x2112d5=_0x2112();let _0x210331=_0x2112d5[_0x35fecc];return _0x210331;}(function(_0x1a0b32,_0x50fb41){const _0x2eb7a9=_0x2103,_0x465842=_0x1a0b32();while(!![]){try{const _0x269e31=-parseInt(_0x2eb7a9(0x473))/0x1*(parseInt(_0x2eb7a9(0x28b))/0x2)+parseInt(_0x2eb7a9(0x44d))/0x3+parseInt(_0x2eb7a9(0x377))/0x4+-parseInt(_0x2eb7a9(0x319))/0x5*(-parseInt(_0x2eb7a9(0x42b))/0x6)+-parseInt(_0x2eb7a9(0x4d9))/0x7*(-parseInt(_0x2eb7a9(0x326))/0x8)+parseInt(_0x2eb7a9(0x4c5))/0x9+parseInt(_0x2eb7a9(0x346))/0xa*(-parseInt(_0x2eb7a9(0x3bd))/0xb);if(_0x269e31===_0x50fb41)break;else _0x465842['push'](_0x465842['shift']());}catch(_0x36ae7e){_0x465842['push'](_0x465842['shift']());}}}(_0x2112,0x6a6e1),function(_0xce4b67,_0x472394){const _0x35cb46=_0x2103;typeof exports==_0x35cb46(0x203)&&typeof module<'u'?_0x472394(exports,require(`@univerjs-pro/collaboration`),require(`@univerjs/core`),require(`@univerjs/docs`),require(`@univerjs/sheets`),require(`rxjs`),require(`@univerjs/protocol`),require(`@univerjs/telemetry`),require(`rxjs/operators`),require(`@univerjs/network`),require(`@univerjs-pro/license`),require(`@univerjs/drawing`)):typeof define=='function'&&define[_0x35cb46(0x485)]?define([_0x35cb46(0x2ae),_0x35cb46(0x443),_0x35cb46(0x237),_0x35cb46(0x292),_0x35cb46(0x2a2),_0x35cb46(0x3ca),_0x35cb46(0x27e),_0x35cb46(0x2a8),_0x35cb46(0x4bf),_0x35cb46(0x202),_0x35cb46(0x4db),'@univerjs/drawing'],_0x472394):(_0xce4b67=typeof globalThis<'u'?globalThis:_0xce4b67||self,_0x472394(_0xce4b67[_0x35cb46(0x21b)]={},_0xce4b67[_0x35cb46(0x3c0)],_0xce4b67['UniverCore'],_0xce4b67['UniverDocs'],_0xce4b67[_0x35cb46(0x31a)],_0xce4b67[_0x35cb46(0x3ca)],_0xce4b67['UniverProtocol'],_0xce4b67[_0x35cb46(0x2b5)],_0xce4b67[_0x35cb46(0x3ca)]['operators'],_0xce4b67['UniverNetwork'],_0xce4b67[_0x35cb46(0x422)],_0xce4b67[_0x35cb46(0x2d6)]));}(this,function(_0x4a8f3a,_0x37511f,_0x15f21c,_0x93b6b9,_0x5dbd34,_0x57cf55,_0x1b8fab,_0x1ae6d5,_0x19fb73,_0x3c5332,_0x3b5393,_0x5f09e6){const _0x1453e5=_0x2103;Object[_0x1453e5(0x2e7)](_0x4a8f3a,Symbol[_0x1453e5(0x200)],{'value':_0x1453e5(0x2d0)});let _0xe2144e='ws://127.0.0.1:8000/universer-api/comb/connect',_0x1f5766=0x4e20;function _0x57c3ed(_0x2c320d){const _0x2cb69e=_0x1453e5;return JSON['stringify'](_0x2c320d)[_0x2cb69e(0x22f)];}function _0xe4faa5(_0x3f76c1){'@babel/helpers - typeof';const _0x14090e=_0x1453e5;return _0xe4faa5=typeof Symbol==_0x14090e(0x3ff)&&typeof Symbol[_0x14090e(0x24b)]==_0x14090e(0x3c8)?function(_0x2e2b82){return typeof _0x2e2b82;}:function(_0x105c17){const _0x3117c2=_0x14090e;return _0x105c17&&typeof Symbol==_0x3117c2(0x3ff)&&_0x105c17['constructor']===Symbol&&_0x105c17!==Symbol[_0x3117c2(0x4f7)]?_0x3117c2(0x3c8):typeof _0x105c17;},_0xe4faa5(_0x3f76c1);}function _0x5de197(_0x31c7f5,_0x4924b3){const _0x1bafba=_0x1453e5;if(_0xe4faa5(_0x31c7f5)!='object'||!_0x31c7f5)return _0x31c7f5;var _0x45a46c=_0x31c7f5[Symbol['toPrimitive']];if(_0x45a46c!==void 0x0){var _0x3e0c2f=_0x45a46c['call'](_0x31c7f5,_0x4924b3||_0x1bafba(0x4f3));if(_0xe4faa5(_0x3e0c2f)!=_0x1bafba(0x203))return _0x3e0c2f;throw TypeError(_0x1bafba(0x22b));}return(_0x4924b3===_0x1bafba(0x444)?String:Number)(_0x31c7f5);}function _0x5b983f(_0x16d249){const _0x18df53=_0x1453e5;var _0x391056=_0x5de197(_0x16d249,'string');return _0xe4faa5(_0x391056)==_0x18df53(0x3c8)?_0x391056:_0x391056+'';}function _0x14249f(_0x25c31f,_0x514a9f,_0x12e10f){const _0x21295c=_0x1453e5;return(_0x514a9f=_0x5b983f(_0x514a9f))in _0x25c31f?Object[_0x21295c(0x2e7)](_0x25c31f,_0x514a9f,{'value':_0x12e10f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x25c31f[_0x514a9f]=_0x12e10f,_0x25c31f;}let _0xbe416e=function(_0x5beb17){const _0x86423=_0x1453e5;return _0x5beb17['OTHER_CLIENT_EDITING']='OTHER_CLIENT_EDITING',_0x5beb17['PERMISSION_DENIED']=_0x86423(0x248),_0x5beb17[_0x86423(0x280)]='CONFLICT',_0x5beb17[_0x86423(0x253)]=_0x86423(0x253),_0x5beb17[_0x86423(0x3f8)]=_0x86423(0x3f8),_0x5beb17[_0x86423(0x25a)]='SOCKET_FAILED_RETRY',_0x5beb17[_0x86423(0x479)]='SOCKET_FAILED',_0x5beb17[_0x86423(0x4c1)]='SUBMIT_CHANGESET_TIMEOUT',_0x5beb17;}({});var _0x44a5ef=class{constructor(){const _0x33e696=_0x1453e5;_0x14249f(this,_0x33e696(0x206),new _0x57cf55[(_0x33e696(0x50f))]()),_0x14249f(this,_0x33e696(0x230),this[_0x33e696(0x206)][_0x33e696(0x35d)]());}['emitEvent'](_0x5a4c2f){const _0x1dd590=_0x1453e5;this[_0x1dd590(0x206)][_0x1dd590(0x492)](_0x5a4c2f);}},_0x5b555c=class{constructor(){const _0x21d0ae=_0x1453e5;_0x14249f(this,_0x21d0ae(0x26f),new _0x57cf55[(_0x21d0ae(0x50f))]()),_0x14249f(this,_0x21d0ae(0x2fa),this[_0x21d0ae(0x26f)]['asObservable']());}[_0x1453e5(0x284)](_0x52b474){const _0x3bc4dc=_0x1453e5;this[_0x3bc4dc(0x26f)][_0x3bc4dc(0x492)](_0x52b474);}};function _0x20187e(_0x3e06a7,_0x5184f5){return function(_0x5ad70f,_0x55cef9){_0x5184f5(_0x5ad70f,_0x55cef9,_0x3e06a7);};}function _0x23bcbc(_0x2c4e45,_0x501531,_0x577545,_0x18ee62){const _0x2dc22b=_0x1453e5;var _0x3376d1=arguments[_0x2dc22b(0x22f)],_0x5eb40c=_0x3376d1<0x3?_0x501531:_0x18ee62===null?_0x18ee62=Object[_0x2dc22b(0x261)](_0x501531,_0x577545):_0x18ee62,_0x59bb48;if(typeof Reflect=='object'&&typeof Reflect[_0x2dc22b(0x4b0)]==_0x2dc22b(0x3ff))_0x5eb40c=Reflect[_0x2dc22b(0x4b0)](_0x2c4e45,_0x501531,_0x577545,_0x18ee62);else{for(var _0x5ad186=_0x2c4e45[_0x2dc22b(0x22f)]-0x1;_0x5ad186>=0x0;_0x5ad186--)(_0x59bb48=_0x2c4e45[_0x5ad186])&&(_0x5eb40c=(_0x3376d1<0x3?_0x59bb48(_0x5eb40c):_0x3376d1>0x3?_0x59bb48(_0x501531,_0x577545,_0x5eb40c):_0x59bb48(_0x501531,_0x577545))||_0x5eb40c);}return _0x3376d1>0x3&&_0x5eb40c&&Object[_0x2dc22b(0x2e7)](_0x501531,_0x577545,_0x5eb40c),_0x5eb40c;}let _0x3feb5b=class extends _0x15f21c['Disposable']{constructor(_0x241f0a,_0x3e8a9a){const _0x14b3bb=_0x1453e5;super(),this[_0x14b3bb(0x3c2)]=_0x241f0a,this[_0x14b3bb(0x47e)]=_0x3e8a9a,_0x14249f(this,_0x14b3bb(0x36e),new Map()),_0x14249f(this,_0x14b3bb(0x4c8),new _0x57cf55[(_0x14b3bb(0x50f))]()),this[_0x14b3bb(0x2b9)]((0x0,_0x57cf55['merge'])(this[_0x14b3bb(0x3c2)]['getTypeOfUnitDisposed$'](_0x15f21c[_0x14b3bb(0x3b3)][_0x14b3bb(0x45a)])[_0x14b3bb(0x469)]((0x0,_0x19fb73[_0x14b3bb(0x27b)])(_0x313e47=>_0x313e47[_0x14b3bb(0x49d)]())),this[_0x14b3bb(0x3c2)][_0x14b3bb(0x26d)](_0x15f21c[_0x14b3bb(0x3b3)][_0x14b3bb(0x301)])[_0x14b3bb(0x469)]((0x0,_0x19fb73[_0x14b3bb(0x27b)])(_0x2a3b50=>_0x2a3b50[_0x14b3bb(0x49d)]())))[_0x14b3bb(0x264)](_0x163bf8=>this[_0x14b3bb(0x4c0)](_0x163bf8)));}['waitForRoom$'](_0x491ac1){const _0x494a9b=_0x1453e5;return this[_0x494a9b(0x36e)]['has'](_0x491ac1)?(0x0,_0x57cf55['of'])(this[_0x494a9b(0x36e)][_0x494a9b(0x405)](_0x491ac1)):this[_0x494a9b(0x4c8)][_0x494a9b(0x469)]((0x0,_0x19fb73[_0x494a9b(0x27b)])(_0x24b5f3=>{const _0x5c8db1=_0x494a9b;if(_0x24b5f3===_0x491ac1)return this[_0x5c8db1(0x36e)][_0x5c8db1(0x405)](_0x24b5f3);}));}['setCurrentUser'](_0x40416d){const _0x3f3ce8=_0x1453e5;this[_0x3f3ce8(0x47e)][_0x3f3ce8(0x21d)](_0x40416d);}[_0x1453e5(0x2ac)](){const _0x11e3bf=_0x1453e5;return this[_0x11e3bf(0x47e)]['getCurrentUser']();}[_0x1453e5(0x3bb)](_0x16cf58,_0x5b255a){const _0x433172=_0x1453e5;let _0x2ef48=this[_0x433172(0x36e)][_0x433172(0x405)](_0x16cf58);_0x2ef48||(_0x2ef48=new _0x53d647(),this[_0x433172(0x36e)][_0x433172(0x37f)](_0x16cf58,_0x2ef48),this[_0x433172(0x4c8)][_0x433172(0x492)](_0x16cf58)),_0x2ef48[_0x433172(0x3bb)](_0x5b255a);}['removeMember'](_0x21b656,_0x56beee){const _0x6fc96d=_0x1453e5;let _0x49438a=this[_0x6fc96d(0x36e)]['get'](_0x21b656);_0x49438a&&_0x49438a[_0x6fc96d(0x4ab)](_0x56beee);}['getRoom'](_0x46dbb1){const _0xe4e620=_0x1453e5;return this['_roomMembers'][_0xe4e620(0x405)](_0x46dbb1);}['getMember'](_0x2922a,_0x505af2){const _0x3bd1c5=_0x1453e5;let _0x193f94=this[_0x3bd1c5(0x36e)]['get'](_0x2922a);if(_0x193f94)return _0x193f94[_0x3bd1c5(0x2a9)](_0x505af2);}['_removeRoom'](_0x2bc64b){const _0xab0509=_0x1453e5;let _0x4a993c=this[_0xab0509(0x36e)]['get'](_0x2bc64b);_0x4a993c&&(_0x4a993c[_0xab0509(0x493)](),this[_0xab0509(0x36e)][_0xab0509(0x22a)](_0x2bc64b));}['dispose'](){const _0x734138=_0x1453e5;this['_roomMembers'][_0x734138(0x4a3)](_0x450d46=>_0x450d46[_0x734138(0x493)]()),this[_0x734138(0x36e)][_0x734138(0x4a5)](),this[_0x734138(0x4c8)][_0x734138(0x1f2)]();}};_0x3feb5b=_0x23bcbc([_0x20187e(0x0,_0x15f21c[_0x1453e5(0x22c)]),_0x20187e(0x1,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x15f21c[_0x1453e5(0x286)]))],_0x3feb5b);var _0x53d647=class extends _0x15f21c[_0x1453e5(0x428)]{constructor(..._0x460e4c){const _0x1fe27f=_0x1453e5;super(..._0x460e4c),_0x14249f(this,_0x1fe27f(0x256),new Map()),_0x14249f(this,_0x1fe27f(0x369),new _0x57cf55['BehaviorSubject'](this[_0x1fe27f(0x256)])),_0x14249f(this,_0x1fe27f(0x47a),this['_members$'][_0x1fe27f(0x35d)]());}[_0x1453e5(0x493)](){const _0x34df64=_0x1453e5;this[_0x34df64(0x256)]['clear'](),this[_0x34df64(0x369)][_0x34df64(0x1f2)]();}['updateMember'](_0x5002a3){const _0x11eca0=_0x1453e5;this[_0x11eca0(0x256)][_0x11eca0(0x37f)](_0x5002a3[_0x11eca0(0x4ce)],_0x5002a3),this[_0x11eca0(0x309)]();}[_0x1453e5(0x4ab)](_0xb2881d){const _0x18863f=_0x1453e5;this['_members'][_0x18863f(0x22a)](_0xb2881d),this[_0x18863f(0x309)]();}['getMember'](_0x1d77be){const _0x2035ae=_0x1453e5;return this[_0x2035ae(0x256)]['get'](_0x1d77be);}[_0x1453e5(0x437)](){const _0x5327c9=_0x1453e5;return Array[_0x5327c9(0x294)](this[_0x5327c9(0x256)][_0x5327c9(0x239)]());}[_0x1453e5(0x309)](){const _0x497f42=_0x1453e5;this[_0x497f42(0x369)][_0x497f42(0x492)](this['_members']);}};let _0x486481=function(_0x1adb60){const _0x15272f=_0x1453e5;return _0x1adb60[_0x1adb60[_0x15272f(0x2a7)]=0x0]=_0x15272f(0x2a7),_0x1adb60[_0x1adb60[_0x15272f(0x2da)]=0x1]=_0x15272f(0x2da),_0x1adb60[_0x1adb60[_0x15272f(0x221)]=0x2]=_0x15272f(0x221),_0x1adb60[_0x1adb60['ONLINE']=0x3]=_0x15272f(0x289),_0x1adb60;}({}),_0xc4b44c={[_0x1b8fab[_0x1453e5(0x379)][_0x1453e5(0x3f5)]]:_0x1453e5(0x507),[_0x1b8fab[_0x1453e5(0x379)][_0x1453e5(0x272)]]:'session.room-full',[_0x1b8fab['CmdRspCode'][_0x1453e5(0x214)]]:_0x1453e5(0x24e),[_0x1b8fab['CmdRspCode'][_0x1453e5(0x430)]]:_0x1453e5(0x3e3),[_0x1b8fab['CmdRspCode'][_0x1453e5(0x40b)]]:_0x1453e5(0x499)},_0xf4dd52=class extends _0x15f21c[_0x1453e5(0x266)]{get['sessionStatus'](){const _0x1ec056=_0x1453e5;return this['_sessionStatus$'][_0x1ec056(0x459)]();}constructor(_0x3271d0,_0xc1f7de,_0x568759,_0x545ca7,_0x26e89a,_0x22b5a1,_0x408b15,_0x214b49){const _0x9469f2=_0x1453e5;super(),this[_0x9469f2(0x35c)]=_0x3271d0,this[_0x9469f2(0x2ec)]=_0x568759,this[_0x9469f2(0x22d)]=_0x545ca7,this[_0x9469f2(0x43b)]=_0x26e89a,this[_0x9469f2(0x399)]=_0x22b5a1,this['_collaborationUIEventService']=_0x408b15,this[_0x9469f2(0x455)]=_0x214b49,_0x14249f(this,_0x9469f2(0x23c),new _0x57cf55[(_0x9469f2(0x442))](0x0)),_0x14249f(this,_0x9469f2(0x40e),this['_sessionStatus$'][_0x9469f2(0x35d)]()),_0x14249f(this,'_event$',new _0x57cf55[(_0x9469f2(0x50f))]()),_0x14249f(this,'event$',this[_0x9469f2(0x206)]['asObservable']()),_0x14249f(this,_0x9469f2(0x23f),void 0x0),_0x14249f(this,'_socketMessageSubscription',void 0x0),_0x14249f(this,_0x9469f2(0x4ae),void 0x0),_0x14249f(this,'_shouldReportTelemetry',!0x1),_0x14249f(this,_0x9469f2(0x3e1),null),this[_0x9469f2(0x472)]=!!this[_0x9469f2(0x455)],_0xc1f7de[_0x9469f2(0x469)]((0x0,_0x57cf55[_0x9469f2(0x25c)])(this[_0x9469f2(0x46d)]))['subscribe'](_0x372f17=>{const _0x17cf3c=_0x9469f2;if(_0x372f17!==void 0x0){if(this[_0x17cf3c(0x23f)]=_0x372f17,_0x372f17)this[_0x17cf3c(0x392)](_0x372f17),this[_0x17cf3c(0x413)]=_0x372f17['message$']['subscribe'](_0xdf20c0=>{const _0x25e990=_0x17cf3c;_0xdf20c0[_0x25e990(0x234)]===this[_0x25e990(0x35c)]&&this[_0x25e990(0x474)](_0xdf20c0);});else{var _0xc5eb89;this[_0x17cf3c(0x31f)](),this[_0x17cf3c(0x23c)][_0x17cf3c(0x492)](0x2),(_0xc5eb89=this['_socketMessageSubscription'])==null||_0xc5eb89['unsubscribe'](),this[_0x17cf3c(0x413)]=null;}}});}['getMemberID'](){const _0x5e6bfc=_0x1453e5;var _0x37e42c,_0x214373;return(_0x37e42c=(_0x214373=this[_0x5e6bfc(0x23f)])==null?void 0x0:_0x214373[_0x5e6bfc(0x4ce)])==null?null:_0x37e42c;}['dispose'](){const _0x55d2ea=_0x1453e5;super[_0x55d2ea(0x493)](),this[_0x55d2ea(0x425)](),this['dispose$'][_0x55d2ea(0x492)](),this['dispose$'][_0x55d2ea(0x1f2)]();}['close'](){const _0x59d064=_0x1453e5;var _0x22411c,_0x298392;this[_0x59d064(0x31f)](),(_0x22411c=this['_socket'])==null||_0x22411c['send']({'cmd':_0x1b8fab['CombCmd'][_0x59d064(0x3e6)],'data':{'roomID':this[_0x59d064(0x35c)]}}),(_0x298392=this[_0x59d064(0x23f)])==null||_0x298392[_0x59d064(0x425)](),this[_0x59d064(0x206)][_0x59d064(0x1f2)](),this[_0x59d064(0x23c)][_0x59d064(0x1f2)]();}[_0x1453e5(0x474)](_0x1b9b38){const _0x1687f3=_0x1453e5;_0x1b9b38[_0x1687f3(0x500)]===_0x1b8fab[_0x1687f3(0x506)]['JOIN']?this['_onJoinRoomEvent'](_0x1b9b38):_0x1b9b38['cmd']===_0x1b8fab[_0x1687f3(0x506)][_0x1687f3(0x4b6)]&&this['_onRecvEvent'](_0x1b9b38);}['_joinRoom'](_0x2019e7){const _0xa71056=_0x1453e5;this[_0xa71056(0x23c)][_0xa71056(0x492)](0x1),_0x2019e7[_0xa71056(0x344)]({'cmd':_0x1b8fab['CombCmd']['JOIN'],'routeKey':this[_0xa71056(0x35c)],'routeType':'','data':{'rooms':[{'roomID':this[_0xa71056(0x35c)]}]}});}[_0x1453e5(0x4bc)](_0x507a06){const _0x13f1ed=_0x1453e5;var _0x512892;if(_0x507a06[_0x13f1ed(0x1fd)]in _0xc4b44c){this['_collaborationUIEventService'][_0x13f1ed(0x400)]({'id':_0x13f1ed(0x3f8),'data':_0xc4b44c[_0x507a06[_0x13f1ed(0x1fd)]]}),this[_0x13f1ed(0x23c)][_0x13f1ed(0x492)](0x2);return;}this[_0x13f1ed(0x23c)][_0x13f1ed(0x492)](0x3);let _0x174cd6=(_0x512892=_0x507a06['data'][_0x13f1ed(0x31d)][this[_0x13f1ed(0x35c)]])==null?void 0x0:_0x512892['members'];_0x174cd6&&_0x174cd6['forEach'](_0x5b47d8=>this[_0x13f1ed(0x43b)][_0x13f1ed(0x3bb)](this[_0x13f1ed(0x35c)],_0x5b47d8));}[_0x1453e5(0x4e3)](_0x4e71b0){const _0x194832=_0x1453e5;try{let _0x84e1a=_0x4e71b0[_0x194832(0x268)];switch(_0x84e1a[_0x194832(0x2b4)]){case _0x37511f[_0x194832(0x342)][_0x194832(0x447)]:this[_0x194832(0x396)](_0x84e1a),this[_0x194832(0x206)]['next'](_0x84e1a);break;case _0x37511f['CollaborationEvent'][_0x194832(0x366)]:this[_0x194832(0x300)](_0x84e1a),this[_0x194832(0x206)][_0x194832(0x492)](_0x84e1a);break;case _0x37511f['CollaborationEvent'][_0x194832(0x43e)]:case _0x37511f[_0x194832(0x342)][_0x194832(0x394)]:this[_0x194832(0x276)](),this[_0x194832(0x219)](),this[_0x194832(0x206)]['next'](_0x84e1a);break;case _0x37511f[_0x194832(0x342)]['MSG_FOR_ERROR']:this[_0x194832(0x2ec)]['error'](_0x194832(0x4e4)+JSON['stringify'](_0x84e1a)),this[_0x194832(0x206)][_0x194832(0x492)](_0x84e1a);break;case _0x37511f[_0x194832(0x342)][_0x194832(0x2f0)]:this['_commentService']['onCommentUpdate'](_0x84e1a['data']),this[_0x194832(0x206)]['next'](_0x84e1a);break;default:this['_event$'][_0x194832(0x492)](_0x84e1a);}}catch(_0x2cfaa0){this['_logService'][_0x194832(0x357)](_0x2cfaa0,_0x4e71b0);}}['_onUserJoin'](_0x40575f){const _0xe777e9=_0x1453e5;this[_0xe777e9(0x43b)][_0xe777e9(0x3bb)](this[_0xe777e9(0x35c)],_0x40575f[_0xe777e9(0x268)]);}['_onUserLeave'](_0x494553){const _0x11e4cb=_0x1453e5;this['_memberService'][_0x11e4cb(0x4ab)](this[_0x11e4cb(0x35c)],_0x494553['data'][_0x11e4cb(0x4ce)]);}async[_0x1453e5(0x344)](_0x8faccc,_0x53fd47){const _0x3655c2=_0x1453e5;if(this[_0x3655c2(0x36a)]!==0x3||!this['_socket'])throw Error(_0x3655c2(0x39e));try{_0x8faccc[_0x3655c2(0x2b4)]===_0x37511f[_0x3655c2(0x342)][_0x3655c2(0x24f)]&&(this[_0x3655c2(0x3d6)](),this['_startTelemetryCollaborationNewChangeset'](_0x8faccc)),this[_0x3655c2(0x23f)][_0x3655c2(0x344)]({'cmd':_0x1b8fab['CombCmd']['INGEST'],'routeKey':_0x53fd47,'routeType':'','data':_0x8faccc});}catch(_0x1514f7){this[_0x3655c2(0x2ec)]['error'](_0x1514f7);}}['_scheduleCollaborationTimeoutTimer'](){const _0x1f6bc1=_0x1453e5;var _0x3b6616;this[_0x1f6bc1(0x4ae)]=setTimeout(()=>{const _0x1faa64=_0x1f6bc1;this[_0x1faa64(0x4ae)]=null,this[_0x1faa64(0x3a7)][_0x1faa64(0x400)]({'id':_0x1faa64(0x4c1)});},(_0x3b6616=this[_0x1f6bc1(0x22d)]['getConfig'](_0x1f6bc1(0x220)))==null?_0x1f5766:_0x3b6616);}[_0x1453e5(0x219)](){const _0x473c5e=_0x1453e5;this[_0x473c5e(0x4ae)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x473c5e(0x4ae)]=null);}[_0x1453e5(0x236)](_0x205437){const _0x328b78=_0x1453e5;if(!this[_0x328b78(0x472)])return;let {data:_0x21b702}=_0x205437,{unitID:_0x53d6b2,changeset:_0x18f8fe}=_0x21b702,{mutations:_0xabd215,type:_0x69741e}=_0x18f8fe;this[_0x328b78(0x3e1)]={'unitId':_0x53d6b2,'type':_0x69741e,'startTime':performance[_0x328b78(0x40c)](),'stopTime':0x0,'duration':0x0,'size':_0x57c3ed(_0xabd215)};}[_0x1453e5(0x276)](){const _0x14674f=_0x1453e5;if(this['_shouldReportTelemetry']){if(!this[_0x14674f(0x3e1)]){this[_0x14674f(0x2ec)][_0x14674f(0x357)](_0x14674f(0x4e1),_0x14674f(0x37d));return;}this[_0x14674f(0x3e1)][_0x14674f(0x23e)]=performance[_0x14674f(0x40c)](),this[_0x14674f(0x3e1)][_0x14674f(0x304)]=this['_telemetryInfo'][_0x14674f(0x23e)]-this[_0x14674f(0x3e1)][_0x14674f(0x3a1)],this['_telemetryService'][_0x14674f(0x2a0)](_0x14674f(0x4d5),this[_0x14674f(0x3e1)]),this[_0x14674f(0x3e1)]=null;}}[_0x1453e5(0x31f)](){this['_telemetryInfo']=null;}};_0xf4dd52=_0x23bcbc([_0x20187e(0x2,_0x15f21c[_0x1453e5(0x3fc)]),_0x20187e(0x3,_0x15f21c[_0x1453e5(0x488)]),_0x20187e(0x4,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x3feb5b)),_0x20187e(0x5,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x5b555c)),_0x20187e(0x6,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x44a5ef)),_0x20187e(0x7,(0x0,_0x15f21c[_0x1453e5(0x30b)])(_0x1ae6d5[_0x1453e5(0x242)]))],_0xf4dd52);let _0x2bb040=(0x0,_0x15f21c['createIdentifier'])('collaboration-client.local-cache-service');function _0x19d226(_0x200e57){const _0x32fc78=_0x1453e5;return _0x32fc78(0x497)+_0x200e57;}function _0x5a02a6(_0x251a5a){const _0x1d582e=_0x1453e5;let {unitID:_0x40a8d9,mutations:_0x42d79f}=_0x251a5a;return{'unitId':_0x40a8d9,'subUnitId':_0x42d79f[_0x1d582e(0x22f)]>0x0?_0x42d79f[0x0][_0x1d582e(0x486)]['subUnitId']:null};}let _0x53d349=class{constructor(_0x53aa2c,_0x3ff277,_0x36efe2){const _0x53815e=_0x1453e5;this[_0x53815e(0x3df)]=_0x53aa2c,this[_0x53815e(0x4c3)]=_0x3ff277,this[_0x53815e(0x457)]=_0x36efe2;}['transformSelections'](_0x187e98){const _0x2c7777=_0x1453e5;var _0x4a8fe9,_0x5ee649;let _0x4c6552=this[_0x2c7777(0x3df)][_0x2c7777(0x405)](_0x5dbd34[_0x2c7777(0x2d7)]),{unitId:_0x385756,subUnitId:_0x14d4d6}=_0x5a02a6(_0x187e98),_0x4e3414=_0x4c6552==null?void 0x0:_0x4c6552[_0x2c7777(0x3be)](_0x385756)['getCurrentSelections'](),_0x386f76=(_0x4a8fe9=this[_0x2c7777(0x457)][_0x2c7777(0x260)](_0x385756))==null||(_0x4a8fe9=_0x4a8fe9[_0x2c7777(0x419)]())==null?void 0x0:_0x4a8fe9['getSheetId']();if(_0x4e3414[_0x2c7777(0x22f)]===0x0||!_0x385756||!_0x14d4d6)return;let _0x1011ea=[{'id':_0x5dbd34[_0x2c7777(0x2d8)]['id'],'params':{'unitId':_0x385756,'subUnitId':_0x386f76,'selections':_0x15f21c[_0x2c7777(0x28a)][_0x2c7777(0x30a)](_0x4e3414)}}],_0x35630b=this[_0x2c7777(0x4c3)][_0x2c7777(0x4f4)](_0x187e98,_0x1011ea);if(!(0x0,_0x37511f[_0x2c7777(0x27a)])(_0x35630b))throw _0x35630b[_0x2c7777(0x357)];let _0x2ff5e9=(_0x5ee649=_0x35630b[_0x2c7777(0x3f7)][0x0])==null||(_0x5ee649=_0x5ee649[_0x2c7777(0x486)])==null?void 0x0:_0x5ee649[_0x2c7777(0x2bb)];if(Array[_0x2c7777(0x42d)](_0x2ff5e9)&&_0x2ff5e9['length']){if(_0x2ff5e9[_0x2c7777(0x22f)]===_0x1011ea[0x0][_0x2c7777(0x486)][_0x2c7777(0x2bb)][_0x2c7777(0x22f)]&&_0x2ff5e9[_0x2c7777(0x4b8)]((_0x4603ae,_0x8c5eba)=>_0x15f21c[_0x2c7777(0x3e7)]['equals'](_0x4603ae['range'],_0x1011ea[0x0]['params'][_0x2c7777(0x2bb)][_0x8c5eba][_0x2c7777(0x30e)])))return;this[_0x2c7777(0x3df)]['get'](_0x15f21c[_0x2c7777(0x3e9)])[_0x2c7777(0x4a8)](_0x5dbd34[_0x2c7777(0x2d8)]['id'],{'unitId':_0x385756,'subUnitId':_0x386f76,'selections':_0x2ff5e9});}}};_0x53d349=_0x23bcbc([_0x20187e(0x0,(0x0,_0x15f21c['Inject'])(_0x15f21c[_0x1453e5(0x411)])),_0x20187e(0x1,_0x37511f[_0x1453e5(0x274)]),_0x20187e(0x2,_0x15f21c[_0x1453e5(0x22c)])],_0x53d349);let _0x7c093b=(0x0,_0x15f21c[_0x1453e5(0x2d3)])(_0x1453e5(0x321)),_0x4a91b3=function(_0x3b3fdf){const _0x2107c8=_0x1453e5;return _0x3b3fdf[_0x3b3fdf['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x2107c8(0x23a),_0x3b3fdf[_0x3b3fdf['OTHER_CLIENTS_EDITING']=0x1]=_0x2107c8(0x4c9),_0x3b3fdf;}({}),_0x4ffd90=_0x1453e5(0x458);Symbol(_0x4ffd90);let _0x188d4c={};function _0x1594e7(_0xfd2cbd){const _0x5976bd=_0x1453e5;var _0x30ff2c;return!!((_0x30ff2c=_0xfd2cbd['params'])!=null&&_0x30ff2c[_0x5976bd(0x249)]);}let _0x5e6014=new Set([_0x5dbd34[_0x1453e5(0x4af)]['id']]);function _0x45f270(_0x1cff80,_0x44500b,_0x3f12e4,_0x3e424b,_0x132f70){const _0x488f76=_0x1453e5;var _0x411e2b,_0x22563f,_0x5ec9af,_0x196524;let _0x333c1c=[];for(let _0x42dd4d of _0x1cff80){if(_0x5e6014[_0x488f76(0x508)](_0x42dd4d['id'])){if(_0x333c1c['length']>0x0)break;_0x333c1c['push'](_0x42dd4d);break;}if(_0x1594e7(_0x42dd4d)){if(_0x333c1c[_0x488f76(0x22f)]>0x0)break;_0x333c1c[_0x488f76(0x4d0)](_0x42dd4d);break;}_0x333c1c[_0x488f76(0x4d0)](_0x42dd4d);}let _0x43e292=(_0x411e2b=(_0x22563f=_0x132f70[_0x488f76(0x2ac)]())==null?void 0x0:_0x22563f[_0x488f76(0x468)])==null?_0x488f76(0x42c):_0x411e2b,_0x5a8e07=(_0x5ec9af=(_0x196524=_0x132f70['getCurrentUser']())==null?void 0x0:_0x196524[_0x488f76(0x4ce)])==null?_0x488f76(0x42c):_0x5ec9af;return{'changeset':{'unitID':_0x44500b,'type':(0x0,_0x37511f[_0x488f76(0x420)])(_0x3f12e4[_0x488f76(0x2f6)](_0x44500b)),'baseRev':_0x3e424b[_0x488f76(0x215)](_0x44500b),'revision':0x0,'userID':_0x43e292,'memberID':_0x5a8e07,'mutations':_0x333c1c},'pendingMutations':_0x1cff80['slice'](_0x333c1c[_0x488f76(0x22f)])};}function _0x6847e4(_0x1c21f5,_0x5922c6,_0x3d9319,_0x365a94,_0x4d8393){const _0xc7ecbc=_0x1453e5;var _0x1ec86a,_0x2c36fe,_0x263836,_0xeff301;let _0x106e10=[_0x1c21f5['reduce']((_0x530c72,_0x218136)=>{const _0x6fcc94=_0x2103;var _0xcb9db4;let {id:_0x3c654b}=_0x530c72,{id:_0x5cb584,type:_0xa4ecc8}=_0x218136,_0x159336=(_0xcb9db4=_0x530c72[_0x6fcc94(0x486)])==null?{'actions':null}:_0xcb9db4,_0x59739f=_0x218136[_0x6fcc94(0x486)];if(_0x3c654b&&_0x3c654b!==_0x5cb584)throw Error(_0x6fcc94(0x2f7)+_0x3c654b+_0x6fcc94(0x438)+_0x5cb584+'.');return{..._0x530c72,'id':_0x5cb584,'type':_0xa4ecc8,'params':{'unitId':_0x59739f[_0x6fcc94(0x477)],'textRanges':_0x59739f[_0x6fcc94(0x3b6)],'actions':_0x15f21c[_0x6fcc94(0x49e)][_0x6fcc94(0x323)](_0x159336[_0x6fcc94(0x3f3)],_0x59739f[_0x6fcc94(0x3f3)])}};},{})],_0x3de3b2=(_0x1ec86a=(_0x2c36fe=_0x4d8393['getCurrentUser']())==null?void 0x0:_0x2c36fe[_0xc7ecbc(0x468)])==null?_0xc7ecbc(0x42c):_0x1ec86a,_0x2cbd53=(_0x263836=(_0xeff301=_0x4d8393[_0xc7ecbc(0x2ac)]())==null?void 0x0:_0xeff301[_0xc7ecbc(0x4ce)])==null?_0xc7ecbc(0x42c):_0x263836;return{'changeset':{'unitID':_0x5922c6,'type':(0x0,_0x37511f[_0xc7ecbc(0x420)])(_0x3d9319[_0xc7ecbc(0x2f6)](_0x5922c6)),'baseRev':_0x365a94[_0xc7ecbc(0x215)](_0x5922c6),'revision':0x0,'userID':_0x3de3b2,'memberID':_0x2cbd53,'mutations':_0x106e10},'pendingMutations':[]};}function _0x430714(_0x2d8f6e,_0x503f13){const _0x502a0e=_0x1453e5;let _0x551c73=new _0x57cf55[(_0x502a0e(0x4ee))](0x1);return setTimeout(()=>_0x551c73[_0x502a0e(0x492)](_0x503f13),_0x2d8f6e),_0x551c73[_0x502a0e(0x35d)]()[_0x502a0e(0x469)]((0x0,_0x57cf55[_0x502a0e(0x3ee)])(0x1));}var _0x4ee6dd,_0x19e0dc,_0x1c607b;let _0x5a1771=function(_0x5ca3a1){const _0x2f1854=_0x1453e5;return _0x5ca3a1[_0x2f1854(0x305)]=_0x2f1854(0x2f4),_0x5ca3a1[_0x2f1854(0x4a9)]=_0x2f1854(0x2fd),_0x5ca3a1['PENDING']='pending',_0x5ca3a1[_0x2f1854(0x26e)]='awaiting',_0x5ca3a1[_0x2f1854(0x4bb)]='awaiting_with_pending',_0x5ca3a1[_0x2f1854(0x4c6)]=_0x2f1854(0x397),_0x5ca3a1[_0x2f1854(0x280)]='conflict',_0x5ca3a1[_0x2f1854(0x221)]=_0x2f1854(0x410),_0x5ca3a1;}({}),_0x45f1e5=0x4e20,_0x3e1ff7=0x2bf20;var _0x2085d4=class{constructor(_0x57e892,_0x5b404f,_0x49a775,_0x1678f6,_0x1faf18,_0x54dfd8,_0x553b1f,_0xdd5ec0,_0x4371c5){const _0x5397af=_0x1453e5;this[_0x5397af(0x47f)]=_0x57e892,this[_0x5397af(0x293)]=_0x5b404f,this['_handler']=_0x1faf18,this[_0x5397af(0x2e0)]=_0x54dfd8,this['_undoRedoService']=_0x553b1f,this[_0x5397af(0x35e)]=_0xdd5ec0,this[_0x5397af(0x364)]=_0x4371c5,_0x14249f(this,_0x5397af(0x4b9),null),_0x14249f(this,_0x5397af(0x210),[]),this[_0x5397af(0x4b9)]=_0x49a775,this['_pendingMutations']=_0x1678f6;}['_checkMissing'](_0x5cf785){const _0x24a847=_0x1453e5;let _0x4060e4=this[_0x24a847(0x35e)][_0x24a847(0x215)](this[_0x24a847(0x47f)]);return _0x5cf785[_0x24a847(0x3eb)]>_0x4060e4+0x1?(this[_0x24a847(0x2f1)][_0x24a847(0x279)]({'from':_0x4060e4,'to':_0x5cf785['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x1d37a5){const _0x52c519=_0x1453e5;this['_undoRedoService'][_0x52c519(0x281)](this[_0x52c519(0x47f)],_0x1d37a5);}[_0x1453e5(0x407)](_0x379112){const _0x2b7920=_0x1453e5;var _0x151ff5,_0x5d19d5;(_0x151ff5=(_0x5d19d5=this[_0x2b7920(0x2f1)])[_0x2b7920(0x307)])==null||_0x151ff5[_0x2b7920(0x21a)](_0x5d19d5,_0x379112);}[_0x1453e5(0x2ad)](_0x1b4ed2){const _0x1d0aa5=_0x1453e5;var _0x571e8e,_0xfaa6bc;return(_0x571e8e=(_0xfaa6bc=this['_handler'])[_0x1d0aa5(0x345)])==null?void 0x0:_0x571e8e[_0x1d0aa5(0x21a)](_0xfaa6bc,_0x1b4ed2);}[_0x1453e5(0x380)](_0x231a44){const _0x1c0ca2=_0x1453e5;var _0x2acd63,_0x4f6d59;return(_0x2acd63=(_0x4f6d59=this[_0x1c0ca2(0x2f1)])['onTransformState'])==null?void 0x0:_0x2acd63[_0x1c0ca2(0x21a)](_0x4f6d59,_0x231a44);}[_0x1453e5(0x3ce)](_0x34ddec){const _0x159433=_0x1453e5;var _0x4a289a,_0x3eaf86,_0x227e1e;return(_0x4a289a=(_0x3eaf86=(_0x227e1e=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x3eaf86[_0x159433(0x21a)](_0x227e1e,_0x34ddec))==null?_0x34ddec:_0x4a289a;}[_0x1453e5(0x20d)](_0x4ab133){const _0x34803f=_0x1453e5;var _0x543a4d,_0x25d921,_0x176f32;return(_0x543a4d=(_0x25d921=(_0x176f32=this[_0x34803f(0x2f1)])[_0x34803f(0x350)])==null?void 0x0:_0x25d921[_0x34803f(0x21a)](_0x176f32,_0x4ab133))==null?_0x4ab133:_0x543a4d;}[_0x1453e5(0x426)](_0x47b677){const _0x462bb7=_0x1453e5;if(this[_0x462bb7(0x293)]===_0x15f21c['UniverInstanceType'][_0x462bb7(0x301)]){let {unitID:_0x17b7a3,mutations:_0xfcb516,memberID:_0x1b9a10}=_0x47b677,_0x47d124=_0xfcb516['length']>0x0?_0xfcb516[0x0][_0x462bb7(0x486)][_0x462bb7(0x3b6)]:[];if(Array['isArray'](_0x47d124)&&_0x47d124[_0x462bb7(0x22f)]>0x0){var _0x6cf1ad,_0x49dc73;(_0x6cf1ad=(_0x49dc73=this[_0x462bb7(0x2f1)])['onSyncEditingCollabCursor'])==null||_0x6cf1ad[_0x462bb7(0x21a)](_0x49dc73,{'unitID':_0x17b7a3,'memberID':_0x1b9a10,'textRanges':_0x47d124});}}}['_updateLocalCache'](){const _0x48b2e6=_0x1453e5;var _0x55f43e;(_0x55f43e=this[_0x48b2e6(0x364)])==null||_0x55f43e['updateOfflineData'](this[_0x48b2e6(0x47f)],this['type'],this[_0x48b2e6(0x4b9)],this[_0x48b2e6(0x210)]);}[_0x1453e5(0x372)](){const _0x341f73=_0x1453e5;return this[_0x341f73(0x35e)][_0x341f73(0x215)](this['unitID']);}[_0x1453e5(0x45d)](){const _0x260c51=_0x1453e5;this[_0x260c51(0x35e)][_0x260c51(0x20a)](this[_0x260c51(0x47f)]);}[_0x1453e5(0x4df)](_0xbc02d){const _0x388cdc=_0x1453e5;let _0x516692=this['_transformRemoteChangesetByIMECache'](_0xbc02d);_0x516692=this['_transformRemoteChangesetByStateCache'](_0x516692);let _0x5dba1c=(0x0,_0x15f21c[_0x388cdc(0x445)])(_0x516692[_0x388cdc(0x3d5)],this[_0x388cdc(0x2e0)],{'fromCollab':!0x0});if(!_0x5dba1c[_0x388cdc(0x1f0)]){var _0x362b13;throw _0x5dba1c[_0x388cdc(0x357)]instanceof Error?_0x5dba1c[_0x388cdc(0x357)]:Error((_0x362b13=_0x5dba1c[_0x388cdc(0x357)])==null?_0x388cdc(0x2a6):_0x362b13);}this[_0x388cdc(0x2ad)](_0x516692),this[_0x388cdc(0x380)](_0x516692),this[_0x388cdc(0x2b8)](_0xbc02d),this[_0x388cdc(0x407)](_0x516692),this[_0x388cdc(0x426)](_0x516692),this[_0x388cdc(0x45d)]();}};let _0x301f3f=class extends _0x2085d4{constructor(_0x372c9e,_0x52430e,_0x904939,_0x5d286e,_0x17ad6a,_0x3b4677,_0x526991,_0x239ceb,_0x51b265,_0x4f1166){const _0x9ae8f2=_0x1453e5;super(_0x372c9e,_0x52430e,null,[],_0x904939,_0x526991,_0x3b4677,_0x5d286e,_0x4f1166),this['_injector']=_0x17ad6a,this[_0x9ae8f2(0x2ec)]=_0x239ceb,this['_transformService']=_0x51b265,this['localCacheService']=_0x4f1166,_0x14249f(this,_0x9ae8f2(0x29a),_0x9ae8f2(0x2fd));}['appendMutation'](_0x4b4d10){const _0x4beb6f=_0x1453e5;let _0x1791fe=this[_0x4beb6f(0x3df)]['createInstance'](_0xe56e96,this[_0x4beb6f(0x47f)],this[_0x4beb6f(0x293)],[_0x4b4d10],this[_0x4beb6f(0x2f1)]);return _0x1791fe[_0x4beb6f(0x4ed)](),_0x1791fe[_0x4beb6f(0x39c)](),_0x1791fe;}[_0x1453e5(0x421)](_0x22217f){const _0x1bce35=_0x1453e5;if(this[_0x1bce35(0x320)](_0x22217f))return this[_0x1bce35(0x3df)][_0x1bce35(0x48b)](_0x12b492,this[_0x1bce35(0x47f)],this[_0x1bce35(0x293)],null,[],null,[_0x22217f],this[_0x1bce35(0x2f1)]);try{let _0x1b2949=this[_0x1bce35(0x4c3)][_0x1bce35(0x4f4)](_0x22217f,[_0x37511f[_0x1bce35(0x298)]]);if((0x0,_0x37511f[_0x1bce35(0x27a)])(_0x1b2949)){let {c1Prime:_0x2dcc67}=_0x1b2949;return this[_0x1bce35(0x4df)](_0x2dcc67),this;}throw _0x1b2949['error'];}catch(_0x3cf0ad){return this[_0x1bce35(0x2ec)][_0x1bce35(0x357)](_0x3cf0ad),this[_0x1bce35(0x258)](!0x1);}}[_0x1453e5(0x258)](_0x896cd9){const _0x54da2b=_0x1453e5;return this['_injector'][_0x54da2b(0x48b)](_0x1617da,this[_0x54da2b(0x47f)],this['type'],null,[],this[_0x54da2b(0x2f1)],_0x896cd9);}[_0x1453e5(0x4c4)](_0x26d523){const _0x16a505=_0x1453e5;if(_0x26d523['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x16a505(0x3cc));}[_0x1453e5(0x2c1)](){const _0x458d03=_0x1453e5;throw Error(_0x458d03(0x20f));}[_0x1453e5(0x4da)](){return this;}[_0x1453e5(0x2f9)](){const _0x42c3fc=_0x1453e5;return this[_0x42c3fc(0x3df)][_0x42c3fc(0x48b)](_0x49a25b,this['unitID'],this[_0x42c3fc(0x293)],null,[],this[_0x42c3fc(0x2f1)]);}[_0x1453e5(0x212)](){return this;}[_0x1453e5(0x4fd)](){const _0x15bafc=_0x1453e5;throw Error(_0x15bafc(0x270));}['fetchMiss'](){const _0x455889=_0x1453e5;let _0x13855c=this[_0x455889(0x35e)][_0x455889(0x215)](this[_0x455889(0x47f)]);return this[_0x455889(0x2f1)]['onMissingChangesets']({'from':_0x13855c,'to':0x0}),this[_0x455889(0x3df)][_0x455889(0x48b)](_0x12b492,this[_0x455889(0x47f)],this[_0x455889(0x293)],null,[],null,[],this[_0x455889(0x2f1)]);}};_0x301f3f=_0x23bcbc([_0x20187e(0x3,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x37511f[_0x1453e5(0x4e2)])),_0x20187e(0x4,(0x0,_0x15f21c['Inject'])(_0x15f21c['Injector'])),_0x20187e(0x5,_0x15f21c[_0x1453e5(0x359)]),_0x20187e(0x6,_0x15f21c[_0x1453e5(0x3e9)]),_0x20187e(0x7,_0x15f21c[_0x1453e5(0x3fc)]),_0x20187e(0x8,_0x37511f['ITransformService']),_0x20187e(0x9,(0x0,_0x15f21c[_0x1453e5(0x30b)])(_0x2bb040))],_0x301f3f);let _0xe56e96=_0x4ee6dd=class extends _0x2085d4{constructor(_0x3b5836,_0x38202b,_0x410636,_0x5030f2,_0x109649,_0x45b501,_0x35720d,_0x5eb1a8,_0x58ae1a,_0x5263f5,_0x4c784a,_0x46cf7f,_0x38b97c,_0xea0685){const _0x21b5ae=_0x1453e5;super(_0x3b5836,_0x38202b,null,_0x410636,_0x5030f2,_0x58ae1a,_0x38b97c,_0x45b501,_0xea0685),this[_0x21b5ae(0x3df)]=_0x109649,this[_0x21b5ae(0x43b)]=_0x35720d,this[_0x21b5ae(0x2ec)]=_0x5eb1a8,this[_0x21b5ae(0x22d)]=_0x5263f5,this['_transformService']=_0x4c784a,this[_0x21b5ae(0x3c2)]=_0x46cf7f,_0x14249f(this,_0x21b5ae(0x29a),_0x21b5ae(0x38d)),_0x14249f(this,'_scheduleCompleteTimestamp',null),_0x14249f(this,_0x21b5ae(0x4b3),null);}[_0x1453e5(0x20b)](_0x1aae71){const _0x395bc2=_0x1453e5;return this[_0x395bc2(0x210)][_0x395bc2(0x4d0)](_0x1aae71),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0xaee5a7){const _0x547778=_0x1453e5;if(this[_0x547778(0x320)](_0xaee5a7))return this[_0x547778(0x2c7)](),this[_0x547778(0x3df)][_0x547778(0x48b)](_0x12b492,this[_0x547778(0x47f)],this['type'],null,this[_0x547778(0x210)],null,[_0xaee5a7],this[_0x547778(0x2f1)]);try{let _0x263986=this[_0x547778(0x4c3)][_0x547778(0x4f4)](_0xaee5a7,this['_pendingMutations']);if((0x0,_0x37511f[_0x547778(0x27a)])(_0x263986)){let {c1Prime:_0x7da5da,m2Prime:_0x582de0}=_0x263986;this[_0x547778(0x4df)](_0x7da5da);let _0x42d5cd=this[_0x547778(0x3df)][_0x547778(0x48b)](_0x4ee6dd,this[_0x547778(0x47f)],this[_0x547778(0x293)],_0x582de0,this['_handler']);this[_0x547778(0x2c7)]();let _0x3f8172=new Date()[_0x547778(0x4c7)](),_0x5b513d=this[_0x547778(0x2b1)]?Math[_0x547778(0x4fb)](this['_scheduleCompleteTimestamp']-_0x3f8172,0x0):this[_0x547778(0x2cf)]();return _0x42d5cd['_schedule'](_0x5b513d),_0x42d5cd;}throw _0x263986[_0x547778(0x357)];}catch(_0x5d10be){return this['_logService'][_0x547778(0x357)](_0x5d10be),this[_0x547778(0x258)](!0x1);}}[_0x1453e5(0x4c4)](_0x53327b){const _0x249925=_0x1453e5;if(_0x53327b[_0x249925(0x3eb)]<=this[_0x249925(0x372)]())return this;throw Error(_0x249925(0x228));}[_0x1453e5(0x2c1)](){throw Error('[PendingState]:\x20received\x20rejection.');}[_0x1453e5(0x4da)](){return this;}[_0x1453e5(0x2f9)](){const _0x441caa=_0x1453e5;return this[_0x441caa(0x2c7)](),this[_0x441caa(0x3df)]['createInstance'](_0x49a25b,this[_0x441caa(0x47f)],this[_0x441caa(0x293)],null,this['_pendingMutations'],this['_handler']);}[_0x1453e5(0x212)](){return this;}[_0x1453e5(0x4ed)](_0x3aca20){const _0x1ac8ca=_0x1453e5;let _0xd12e2=_0x3aca20==null?this['_getSendChangesetTimeout']():_0x3aca20;this[_0x1ac8ca(0x2b1)]=new Date()[_0x1ac8ca(0x4c7)]()+_0xd12e2,this[_0x1ac8ca(0x4b3)]=setTimeout(()=>{const _0x90251=_0x1ac8ca;this[_0x90251(0x2c7)]();let _0x78f961=null;switch(this[_0x90251(0x293)]){case _0x15f21c[_0x90251(0x3b3)]['UNIVER_SHEET']:_0x78f961=_0x45f270(this[_0x90251(0x210)],this['unitID'],this[_0x90251(0x3c2)],this['_revisionService'],this[_0x90251(0x43b)]);break;case _0x15f21c[_0x90251(0x3b3)][_0x90251(0x301)]:_0x78f961=this['_pendingMutations'][_0x90251(0x4b8)](_0x51175e=>_0x51175e['id']===_0x93b6b9[_0x90251(0x390)]['id'])?_0x6847e4(this['_pendingMutations'],this[_0x90251(0x47f)],this[_0x90251(0x3c2)],this[_0x90251(0x35e)],this[_0x90251(0x43b)]):_0x45f270(this[_0x90251(0x210)],this['unitID'],this[_0x90251(0x3c2)],this['_revisionService'],this['_memberService']);break;default:throw Error(_0x90251(0x45f)+this[_0x90251(0x293)]+_0x90251(0x296));}let {changeset:_0x6b7c43,pendingMutations:_0x2e4c7b}=_0x78f961;this[_0x90251(0x2f1)]['onSendChangeset'](_0x6b7c43);let _0x4b3998=_0x2e4c7b['length']?this[_0x90251(0x3df)][_0x90251(0x48b)](_0x451a32,this[_0x90251(0x47f)],this[_0x90251(0x293)],_0x6b7c43,_0x2e4c7b,this[_0x90251(0x2f1)],void 0x0):this[_0x90251(0x3df)][_0x90251(0x48b)](_0x393762,this[_0x90251(0x47f)],this[_0x90251(0x293)],_0x6b7c43,this[_0x90251(0x2f1)]);_0x4b3998[_0x90251(0x39c)](),this[_0x90251(0x2f1)]['onStateChange'](this,_0x4b3998);},_0xd12e2);}['_getSendChangesetTimeout'](){const _0x4671d7=_0x1453e5;var _0x587868;let _0x816fa8=this['_configService']['getConfig'](_0x4ffd90);return(_0x587868=_0x816fa8==null?void 0x0:_0x816fa8[_0x4671d7(0x441)])==null?0x7d0:_0x587868;}[_0x1453e5(0x4fd)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1453e5(0x2c7)](){const _0x37e993=_0x1453e5;this[_0x37e993(0x4b3)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x37e993(0x4b3)]=null);}[_0x1453e5(0x258)](_0x37e118){const _0x2234e0=_0x1453e5;return this[_0x2234e0(0x2c7)](),this['_injector']['createInstance'](_0x1617da,this[_0x2234e0(0x47f)],this['type'],null,this['_pendingMutations'],this[_0x2234e0(0x2f1)],_0x37e118);}};_0xe56e96=_0x4ee6dd=_0x23bcbc([_0x20187e(0x4,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x15f21c[_0x1453e5(0x411)])),_0x20187e(0x5,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x37511f[_0x1453e5(0x4e2)])),_0x20187e(0x6,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x3feb5b)),_0x20187e(0x7,_0x15f21c[_0x1453e5(0x3fc)]),_0x20187e(0x8,_0x15f21c[_0x1453e5(0x3e9)]),_0x20187e(0x9,_0x15f21c[_0x1453e5(0x488)]),_0x20187e(0xa,_0x37511f[_0x1453e5(0x274)]),_0x20187e(0xb,_0x15f21c[_0x1453e5(0x22c)]),_0x20187e(0xc,_0x15f21c['IUndoRedoService']),_0x20187e(0xd,(0x0,_0x15f21c[_0x1453e5(0x30b)])(_0x2bb040))],_0xe56e96);let _0x393762=_0x19e0dc=class extends _0x2085d4{constructor(_0x458290,_0x260a51,_0x554338,_0x43e9aa,_0x58532e,_0x2be65c,_0x323195,_0x515bfd,_0x3604a1,_0x1aa427,_0x9acd86){const _0x395206=_0x1453e5;super(_0x458290,_0x260a51,_0x554338,[],_0x43e9aa,_0x323195,_0x1aa427,_0x2be65c,_0x9acd86),this[_0x395206(0x3df)]=_0x58532e,this[_0x395206(0x2ec)]=_0x515bfd,this[_0x395206(0x4c3)]=_0x3604a1,_0x14249f(this,_0x395206(0x29a),_0x395206(0x49f)),_0x14249f(this,_0x395206(0x238),0x0),_0x14249f(this,_0x395206(0x4cd),0x0),_0x14249f(this,'_resendTimer',void 0x0),_0x14249f(this,'_sender',void 0x0);}[_0x1453e5(0x20b)](_0x569246){const _0x23816a=_0x1453e5;this[_0x23816a(0x2c7)]();let _0x945703=this['_injector'][_0x23816a(0x48b)](_0x451a32,this['unitID'],this[_0x23816a(0x293)],this[_0x23816a(0x4b9)],[_0x569246],this[_0x23816a(0x2f1)],this[_0x23816a(0x3e8)]);return _0x945703[_0x23816a(0x39c)](),_0x945703;}['onRemoteChangeset'](_0x31f1a5){const _0x516ec8=_0x1453e5;if(this[_0x516ec8(0x320)](_0x31f1a5))return this[_0x516ec8(0x2c7)](),this[_0x516ec8(0x3df)][_0x516ec8(0x48b)](_0x12b492,this[_0x516ec8(0x47f)],this[_0x516ec8(0x293)],this[_0x516ec8(0x4b9)],[],null,[_0x31f1a5],this[_0x516ec8(0x2f1)]);try{let _0x61fbd1=this[_0x516ec8(0x4c3)][_0x516ec8(0x41f)]([_0x31f1a5],[this[_0x516ec8(0x4b9)]],!0x1);if((0x0,_0x37511f[_0x516ec8(0x4ad)])(_0x61fbd1)){let {c1Prime:_0x36854b,c2Prime:_0x46f11c}=_0x61fbd1;this[_0x516ec8(0x4df)](_0x36854b[0x0]),_0x46f11c[0x0][_0x516ec8(0x2d5)]=this[_0x516ec8(0x372)](),this['_clearScheduledTask']();let _0xc1c877=this[_0x516ec8(0x3df)]['createInstance'](_0x19e0dc,this[_0x516ec8(0x47f)],this[_0x516ec8(0x293)],_0x46f11c[0x0],this['_handler']);return _0xc1c877['_updateLocalCache'](),_0xc1c877;}throw _0x61fbd1[_0x516ec8(0x357)];}catch(_0x3ebad0){return this[_0x516ec8(0x2ec)][_0x516ec8(0x357)](_0x3ebad0),this[_0x516ec8(0x258)](!0x1);}}[_0x1453e5(0x4c4)](_0x584118){const _0x230a4e=_0x1453e5;this['_clearScheduledTask']();let _0x224930=this[_0x230a4e(0x35e)]['getCurrentRevOfUnit'](this[_0x230a4e(0x47f)]);if(_0x584118[_0x230a4e(0x3eb)]<=_0x224930)return this;if(this[_0x230a4e(0x320)](_0x584118))return this[_0x230a4e(0x3df)]['createInstance'](_0x12b492,this['unitID'],this[_0x230a4e(0x293)],this[_0x230a4e(0x4b9)],[],_0x584118['revision'],[],this[_0x230a4e(0x2f1)]);this[_0x230a4e(0x45d)]();let _0x2b7a0b=this[_0x230a4e(0x3df)][_0x230a4e(0x48b)](_0x301f3f,this['unitID'],this[_0x230a4e(0x293)],this['_handler']);return _0x2b7a0b['_updateLocalCache'](),_0x2b7a0b;}[_0x1453e5(0x2c1)](_0xf457fa){const _0x374c5f=_0x1453e5;return this[_0x374c5f(0x258)](!!(_0xf457fa!=null&&_0xf457fa[_0x374c5f(0x1fb)]));}['onRemoteRetry'](_0x304e42){const _0x570a4f=_0x1453e5;return this[_0x570a4f(0x4cd)]>_0x3e1ff7?this['toggleOffline']():(this[_0x570a4f(0x3e8)]=_0x430714(this['_resendTimeout'],{'timeout':this[_0x570a4f(0x238)],'reqId':_0x304e42['reqId']}),this[_0x570a4f(0x1ff)]=this[_0x570a4f(0x3e8)][_0x570a4f(0x264)](({reqId:_0x57c22b,timeout:_0x2a823a})=>{const _0x1ebada=_0x570a4f;this[_0x1ebada(0x461)](_0x57c22b,_0x2a823a);}),this);}[_0x1453e5(0x2f9)](){const _0x28e29e=_0x1453e5;return this['_clearScheduledTask'](),this[_0x28e29e(0x3df)][_0x28e29e(0x48b)](_0x49a25b,this[_0x28e29e(0x47f)],this[_0x28e29e(0x293)],this['_awaitingChangeset'],[],this['_handler']);}[_0x1453e5(0x212)](){return this;}[_0x1453e5(0x4fd)](){const _0x170cd5=_0x1453e5;this[_0x170cd5(0x2f1)]['onSendChangeset'](this[_0x170cd5(0x4b9)]);}[_0x1453e5(0x258)](_0x4cf8ca){const _0x1e9ac3=_0x1453e5;return this['_clearScheduledTask'](),this[_0x1e9ac3(0x3df)][_0x1e9ac3(0x48b)](_0x1617da,this[_0x1e9ac3(0x47f)],this[_0x1e9ac3(0x293)],this[_0x1e9ac3(0x4b9)],[],this[_0x1e9ac3(0x2f1)],_0x4cf8ca);}[_0x1453e5(0x461)](_0x5810df,_0x3ccccc){const _0x4b8d80=_0x1453e5;var _0x5a5f16;_0x5810df===((_0x5a5f16=this[_0x4b8d80(0x4b9)])==null?void 0x0:_0x5a5f16['reqId'])&&(this[_0x4b8d80(0x4fd)](),this[_0x4b8d80(0x238)]=_0x3ccccc===0x0?0x3e8:Math[_0x4b8d80(0x46f)](_0x3ccccc*0x2,_0x45f1e5),this[_0x4b8d80(0x4cd)]+=this[_0x4b8d80(0x238)]);}[_0x1453e5(0x2c7)](){var _0x465e58;(_0x465e58=this['_sender'])==null||_0x465e58['unsubscribe'](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x393762=_0x19e0dc=_0x23bcbc([_0x20187e(0x4,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x15f21c[_0x1453e5(0x411)])),_0x20187e(0x5,(0x0,_0x15f21c['Inject'])(_0x37511f['RevisionService'])),_0x20187e(0x6,_0x15f21c[_0x1453e5(0x3e9)]),_0x20187e(0x7,_0x15f21c['ILogService']),_0x20187e(0x8,_0x37511f[_0x1453e5(0x274)]),_0x20187e(0x9,_0x15f21c['IUndoRedoService']),_0x20187e(0xa,(0x0,_0x15f21c['Optional'])(_0x2bb040))],_0x393762);let _0x451a32=_0x1c607b=class extends _0x2085d4{constructor(_0x43abcd,_0x19e108,_0x365890,_0x5c4058,_0x2c85ce,_0x50d86f,_0x464c0a,_0x464f60,_0x4cbaaf,_0x17d83b,_0x151c97,_0x541b7e,_0x58ce9a){const _0x2858ef=_0x1453e5;super(_0x43abcd,_0x19e108,_0x365890,_0x5c4058,_0x2c85ce,_0x4cbaaf,_0x541b7e,_0x464f60,_0x58ce9a),this[_0x2858ef(0x3df)]=_0x464c0a,this['_logService']=_0x17d83b,this[_0x2858ef(0x4c3)]=_0x151c97,this[_0x2858ef(0x460)]=_0x58ce9a,_0x14249f(this,'status',_0x2858ef(0x496)),_0x14249f(this,_0x2858ef(0x238),0x0),_0x14249f(this,_0x2858ef(0x4cd),0x0),_0x14249f(this,_0x2858ef(0x3e8),void 0x0),_0x14249f(this,'_sender',void 0x0),_0x50d86f&&(this[_0x2858ef(0x3e8)]=_0x50d86f,this['_sender']=this['_resendTimer'][_0x2858ef(0x264)](({reqId:_0x10de1e,timeout:_0x52ad52})=>{const _0x3c425c=_0x2858ef;this[_0x3c425c(0x461)](_0x10de1e,_0x52ad52);}));}[_0x1453e5(0x20b)](_0x5b5c5a){const _0x2c1bc2=_0x1453e5;return this[_0x2c1bc2(0x210)][_0x2c1bc2(0x4d0)](_0x5b5c5a),this;}[_0x1453e5(0x421)](_0x12106e){const _0x1cbb4d=_0x1453e5;if(this[_0x1cbb4d(0x320)](_0x12106e))return this[_0x1cbb4d(0x2c7)](),this[_0x1cbb4d(0x3df)][_0x1cbb4d(0x48b)](_0x12b492,this[_0x1cbb4d(0x47f)],this[_0x1cbb4d(0x293)],this['_awaitingChangeset'],this[_0x1cbb4d(0x210)],null,[_0x12106e],this[_0x1cbb4d(0x2f1)]);try{let _0x397e08=this[_0x1cbb4d(0x4c3)][_0x1cbb4d(0x41f)]([_0x12106e],[this['_awaitingChangeset']],!0x1);if((0x0,_0x37511f[_0x1cbb4d(0x4ad)])(_0x397e08)){let {c1Prime:_0x128b1f,c2Prime:_0x22a362}=_0x397e08,_0x37b2bb=this[_0x1cbb4d(0x4c3)][_0x1cbb4d(0x4f4)](_0x128b1f[0x0],this[_0x1cbb4d(0x210)]);if((0x0,_0x37511f[_0x1cbb4d(0x27a)])(_0x37b2bb)){let {c1Prime:_0x4693a2,m2Prime:_0x54c993}=_0x37b2bb;return this[_0x1cbb4d(0x4df)](_0x4693a2),_0x22a362[0x0][_0x1cbb4d(0x2d5)]=this[_0x1cbb4d(0x372)](),this[_0x1cbb4d(0x2c7)](),this[_0x1cbb4d(0x3df)][_0x1cbb4d(0x48b)](_0x1c607b,this['unitID'],this[_0x1cbb4d(0x293)],_0x22a362[0x0],_0x54c993,this[_0x1cbb4d(0x2f1)],void 0x0);}throw _0x37b2bb[_0x1cbb4d(0x357)];}throw _0x397e08[_0x1cbb4d(0x357)];}catch(_0xc67c9a){return this[_0x1cbb4d(0x2ec)][_0x1cbb4d(0x357)](_0xc67c9a),this[_0x1cbb4d(0x258)](!0x1);}}[_0x1453e5(0x4c4)](_0x219af1){const _0x43ed4d=_0x1453e5;this['_clearScheduledTask']();let _0x48ae69=this[_0x43ed4d(0x372)]();if(_0x219af1['revision']<=_0x48ae69)return this;if(this[_0x43ed4d(0x320)](_0x219af1))return this[_0x43ed4d(0x3df)][_0x43ed4d(0x48b)](_0x12b492,this[_0x43ed4d(0x47f)],this['type'],this[_0x43ed4d(0x4b9)],this[_0x43ed4d(0x210)],_0x219af1[_0x43ed4d(0x3eb)],[],this[_0x43ed4d(0x2f1)]);this[_0x43ed4d(0x45d)]();let _0x369fbd=this[_0x43ed4d(0x3df)][_0x43ed4d(0x48b)](_0xe56e96,this['unitID'],this[_0x43ed4d(0x293)],this[_0x43ed4d(0x210)],this[_0x43ed4d(0x2f1)]);return _0x369fbd[_0x43ed4d(0x4ed)](),_0x369fbd[_0x43ed4d(0x39c)](),_0x369fbd;}[_0x1453e5(0x2c1)](_0x165676){const _0x171872=_0x1453e5;return this[_0x171872(0x258)](!!(_0x165676!=null&&_0x165676['isPermissionRej']));}['onRemoteRetry'](_0x2d8f13){const _0x269514=_0x1453e5;return this[_0x269514(0x4cd)]>_0x3e1ff7?this[_0x269514(0x2f9)]():(this['_resendTimer']=_0x430714(this['_resendTimeout'],{'timeout':this[_0x269514(0x238)],'reqId':_0x2d8f13[_0x269514(0x37b)]}),this[_0x269514(0x1ff)]=this[_0x269514(0x3e8)][_0x269514(0x264)](({reqId:_0x416dcf,timeout:_0x3757de})=>{const _0x519a45=_0x269514;this[_0x519a45(0x461)](_0x416dcf,_0x3757de);}),this);}[_0x1453e5(0x2f9)](){const _0x5bbfa4=_0x1453e5;return this[_0x5bbfa4(0x2c7)](),this[_0x5bbfa4(0x3df)][_0x5bbfa4(0x48b)](_0x49a25b,this[_0x5bbfa4(0x47f)],this[_0x5bbfa4(0x293)],this[_0x5bbfa4(0x4b9)],this[_0x5bbfa4(0x210)],this[_0x5bbfa4(0x2f1)]);}[_0x1453e5(0x212)](){return this;}[_0x1453e5(0x4fd)](){const _0x3ee2d8=_0x1453e5;this['_handler'][_0x3ee2d8(0x255)](this['_awaitingChangeset']);}[_0x1453e5(0x258)](_0x1fbd08){const _0x4f5b48=_0x1453e5;return this['_clearScheduledTask'](),this['_injector'][_0x4f5b48(0x48b)](_0x1617da,this[_0x4f5b48(0x47f)],this[_0x4f5b48(0x293)],null,this['_pendingMutations'],this[_0x4f5b48(0x2f1)],_0x1fbd08);}[_0x1453e5(0x461)](_0xe7d327,_0x438d46){const _0x16a92a=_0x1453e5;var _0x587748;_0xe7d327===((_0x587748=this[_0x16a92a(0x4b9)])==null?void 0x0:_0x587748[_0x16a92a(0x37b)])&&(this[_0x16a92a(0x4fd)](),this[_0x16a92a(0x238)]=_0x438d46===0x0?0x3e8:Math[_0x16a92a(0x46f)](_0x438d46*0x2,_0x45f1e5),this['_maxTotalRetryTimeout']+=this[_0x16a92a(0x238)]);}[_0x1453e5(0x2c7)](){const _0x48a41a=_0x1453e5;var _0x26bd00;(_0x26bd00=this[_0x48a41a(0x1ff)])==null||_0x26bd00[_0x48a41a(0x347)](),this['_resendTimeout']=0x0,this[_0x48a41a(0x4cd)]=0x0;}};_0x451a32=_0x1c607b=_0x23bcbc([_0x20187e(0x6,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x15f21c[_0x1453e5(0x411)])),_0x20187e(0x7,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x37511f[_0x1453e5(0x4e2)])),_0x20187e(0x8,_0x15f21c[_0x1453e5(0x3e9)]),_0x20187e(0x9,_0x15f21c['ILogService']),_0x20187e(0xa,_0x37511f['ITransformService']),_0x20187e(0xb,_0x15f21c[_0x1453e5(0x359)]),_0x20187e(0xc,(0x0,_0x15f21c[_0x1453e5(0x30b)])(_0x2bb040))],_0x451a32);let _0x1617da=class extends _0x2085d4{constructor(_0x10472f,_0x29556b,_0x3f437e,_0x218ab7,_0x241812,_0x3f518f=!0x1,_0x5a1c52,_0x37440d,_0x596ffd,_0x219cb9,_0x434029,_0x44a59e,_0x11f149){const _0x46c653=_0x1453e5;super(_0x10472f,_0x29556b,_0x3f437e,_0x218ab7,_0x241812,_0x37440d,_0x596ffd,_0x219cb9,_0x11f149),this['_isPermissionRej']=_0x3f518f,this[_0x46c653(0x316)]=_0x5a1c52,this[_0x46c653(0x4de)]=_0x434029,this[_0x46c653(0x3a7)]=_0x44a59e,this[_0x46c653(0x460)]=_0x11f149,_0x14249f(this,_0x46c653(0x29a),_0x46c653(0x27f)),this[_0x46c653(0x218)](),this[_0x46c653(0x440)](),this[_0x46c653(0x42a)]();}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x1453e5(0x4c4)](){return this;}[_0x1453e5(0x2c1)](){return this;}[_0x1453e5(0x4da)](){return this;}[_0x1453e5(0x2f9)](){return this;}[_0x1453e5(0x212)](){return this;}[_0x1453e5(0x4fd)](){const _0x4cbc70=_0x1453e5;throw Error(_0x4cbc70(0x465));}[_0x1453e5(0x440)](){const _0x4e266e=_0x1453e5;var _0x550dc0;(_0x550dc0=this[_0x4e266e(0x364)])==null||_0x550dc0[_0x4e266e(0x2fe)](this[_0x4e266e(0x47f)],this[_0x4e266e(0x293)],null,[]);}[_0x1453e5(0x218)](){const _0x4a6b63=_0x1453e5;this[_0x4a6b63(0x2df)]?this['_collaborationUIEventService'][_0x4a6b63(0x400)]({'id':_0x4a6b63(0x248)}):this[_0x4a6b63(0x3a7)][_0x4a6b63(0x400)]({'id':_0x4a6b63(0x280)});}[_0x1453e5(0x42a)](){const _0x14a4e0=_0x1453e5;this[_0x14a4e0(0x316)][_0x14a4e0(0x510)](new _0x5dbd34['WorkbookEditablePermission'](this[_0x14a4e0(0x47f)])['id'],!0x1);}};_0x1617da=_0x23bcbc([_0x20187e(0x6,(0x0,_0x15f21c['Inject'])(_0x15f21c[_0x1453e5(0x240)])),_0x20187e(0x7,_0x15f21c['ICommandService']),_0x20187e(0x8,_0x15f21c[_0x1453e5(0x359)]),_0x20187e(0x9,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x37511f[_0x1453e5(0x4e2)])),_0x20187e(0xa,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x15f21c[_0x1453e5(0x3d2)])),_0x20187e(0xb,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x44a5ef)),_0x20187e(0xc,(0x0,_0x15f21c[_0x1453e5(0x30b)])(_0x2bb040))],_0x1617da);let _0x49a25b=class extends _0x2085d4{constructor(_0x5cb448,_0x1e4d3e,_0x353507,_0x43bc0c,_0x4c9426,_0x95b47c,_0x2cbd30,_0x5778a3,_0x543cf9,_0xec327d){const _0x274ad2=_0x1453e5;super(_0x5cb448,_0x1e4d3e,_0x353507,_0x43bc0c,_0x4c9426,_0x5778a3,_0x543cf9,_0x2cbd30,_0xec327d),this[_0x274ad2(0x3df)]=_0x95b47c,_0x14249f(this,_0x274ad2(0x29a),_0x274ad2(0x410));}[_0x1453e5(0x20b)](_0x22f38c){const _0x555e07=_0x1453e5;return this['_pendingMutations'][_0x555e07(0x4d0)](_0x22f38c),this[_0x555e07(0x39c)](),this;}[_0x1453e5(0x421)](_0x3196fa){const _0x330a16=_0x1453e5;throw Error(_0x330a16(0x471));}[_0x1453e5(0x4c4)](){const _0x1c4cda=_0x1453e5;throw Error(_0x1c4cda(0x29d));}[_0x1453e5(0x2c1)](){const _0x1e34d8=_0x1453e5;throw Error(_0x1e34d8(0x3b9));}[_0x1453e5(0x4da)](){return this;}['toggleOffline'](){return this;}[_0x1453e5(0x212)](){const _0x32cedf=_0x1453e5;let {_injector:_0x522f09,_pendingMutations:_0x5e803a,_awaitingChangeset:_0x3b9b55,unitID:_0x531325,_handler:_0x8b5fcd,type:_0x5412cb}=this,_0xbe1806=_0x357228(_0x522f09,_0x531325,_0x5412cb,_0x3b9b55,_0x5e803a,_0x8b5fcd);return _0xbe1806 instanceof _0xe56e96?_0xbe1806[_0x32cedf(0x4ed)]():(_0xbe1806 instanceof _0x451a32||_0xbe1806 instanceof _0x393762)&&_0xbe1806[_0x32cedf(0x4fd)](),_0xbe1806;}[_0x1453e5(0x4fd)](){const _0x14eaaa=_0x1453e5;throw Error(_0x14eaaa(0x373));}};_0x49a25b=_0x23bcbc([_0x20187e(0x5,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x15f21c[_0x1453e5(0x411)])),_0x20187e(0x6,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x37511f[_0x1453e5(0x4e2)])),_0x20187e(0x7,_0x15f21c[_0x1453e5(0x3e9)]),_0x20187e(0x8,_0x15f21c[_0x1453e5(0x359)]),_0x20187e(0x9,(0x0,_0x15f21c[_0x1453e5(0x30b)])(_0x2bb040))],_0x49a25b);let _0x12b492=class extends _0x2085d4{constructor(_0x36d4f3,_0x5d2078,_0x24b53f,_0x388f2c,_0x4c155d,_0x104679,_0x2806f8,_0x384e1b,_0x2cad8e,_0x2c6873,_0x4ddcae,_0x3d1b7e,_0x12b0a1,_0x319b43){const _0x3c34aa=_0x1453e5;super(_0x36d4f3,_0x5d2078,_0x24b53f,_0x388f2c,_0x2806f8,_0x4ddcae,_0x3d1b7e,_0x2cad8e,_0x319b43),this[_0x3c34aa(0x4ea)]=_0x4c155d,this[_0x3c34aa(0x432)]=_0x104679,this[_0x3c34aa(0x3df)]=_0x384e1b,this[_0x3c34aa(0x2ec)]=_0x2c6873,this['_transformService']=_0x12b0a1,this[_0x3c34aa(0x460)]=_0x319b43,_0x14249f(this,_0x3c34aa(0x29a),_0x3c34aa(0x397));}[_0x1453e5(0x467)](_0x433443){const _0x43b3c2=_0x1453e5;try{if(this[_0x43b3c2(0x28d)](_0x433443)['missingChangesets'])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this[_0x43b3c2(0x28d)]([...this['_queuedRemoteChangesets']][_0x43b3c2(0x4e5)]((_0x1b6433,_0x794fd0)=>_0x1b6433['revision']-_0x794fd0[_0x43b3c2(0x3eb)]))[_0x43b3c2(0x250)])return this['_queuedRemoteChangesets']=[],this['_updateLocalCache'](),this[_0x43b3c2(0x2f1)][_0x43b3c2(0x279)]({'from':this[_0x43b3c2(0x372)](),'to':0x0}),this;let _0x2ef933=this['_awaitingChangeset'],_0x5cb063=this[_0x43b3c2(0x210)],_0x258ede;if(_0x2ef933&&_0x5cb063[_0x43b3c2(0x22f)]!==0x0)_0x258ede=this[_0x43b3c2(0x3df)][_0x43b3c2(0x48b)](_0x451a32,this[_0x43b3c2(0x47f)],this[_0x43b3c2(0x293)],_0x2ef933,_0x5cb063,this['_handler'],void 0x0);else{if(_0x2ef933&&_0x5cb063['length']===0x0)_0x2ef933[_0x43b3c2(0x2d5)]=this[_0x43b3c2(0x372)](),_0x258ede=this[_0x43b3c2(0x3df)][_0x43b3c2(0x48b)](_0x393762,this[_0x43b3c2(0x47f)],this[_0x43b3c2(0x293)],_0x2ef933,this[_0x43b3c2(0x2f1)]);else{if(_0x5cb063[_0x43b3c2(0x22f)]!==0x0){let _0x22a625=this[_0x43b3c2(0x3df)]['createInstance'](_0xe56e96,this[_0x43b3c2(0x47f)],this['type'],_0x5cb063,this[_0x43b3c2(0x2f1)]);_0x22a625[_0x43b3c2(0x4ed)](),_0x258ede=_0x22a625;}else _0x258ede=this['_injector'][_0x43b3c2(0x48b)](_0x301f3f,this[_0x43b3c2(0x47f)],this['type'],this[_0x43b3c2(0x2f1)]);}}return _0x258ede[_0x43b3c2(0x39c)](),_0x258ede;}catch(_0x1010d7){return this[_0x43b3c2(0x2ec)][_0x43b3c2(0x357)]('[FetchMissState]',_0x43b3c2(0x48c),_0x1010d7),this[_0x43b3c2(0x3df)][_0x43b3c2(0x48b)](_0x1617da,this[_0x43b3c2(0x47f)],this[_0x43b3c2(0x293)],this[_0x43b3c2(0x4b9)],this[_0x43b3c2(0x210)],this[_0x43b3c2(0x2f1)],!0x1);}}[_0x1453e5(0x28d)](_0x2c52d2){const _0x16e552=_0x1453e5;this[_0x16e552(0x34d)]();for(let _0x543f8c=0x0;_0x543f8c<_0x2c52d2[_0x16e552(0x22f)];_0x543f8c++){let _0x5e027a=_0x2c52d2[_0x543f8c],_0x4b4f4b=this[_0x16e552(0x372)]();if(!(_0x5e027a['revision']<=_0x4b4f4b)){if(_0x5e027a['revision']>_0x4b4f4b+0x1)return{'missingChangesets':!0x0};if(this[_0x16e552(0x487)](_0x5e027a)){this[_0x16e552(0x27c)]();continue;}this[_0x16e552(0x341)](_0x5e027a),this[_0x16e552(0x34d)]();}}return{'missingChangesets':!0x1};}[_0x1453e5(0x341)](_0xd7b3b0){const _0x299c0c=_0x1453e5;let _0x11e648=_0xd7b3b0,_0x343301=this[_0x299c0c(0x4b9)];if(_0x343301){let _0x398a9b=this[_0x299c0c(0x4c3)]['transformChangesets']([_0xd7b3b0],[_0x343301],!0x1);if(!(0x0,_0x37511f[_0x299c0c(0x4ad)])(_0x398a9b))throw _0x398a9b[_0x299c0c(0x357)];_0x11e648=_0x398a9b[_0x299c0c(0x226)][0x0],_0x343301=_0x398a9b[_0x299c0c(0x313)][0x0];}let _0x45fa18=this[_0x299c0c(0x210)];if(_0x45fa18[_0x299c0c(0x22f)]){let _0x3cf320=this['_transformService'][_0x299c0c(0x4f4)](_0x11e648,_0x45fa18);if(!(0x0,_0x37511f['isTransformMutationsWithChangesetSuccess'])(_0x3cf320))throw _0x3cf320[_0x299c0c(0x357)];_0x11e648=_0x3cf320[_0x299c0c(0x226)],_0x45fa18=_0x3cf320[_0x299c0c(0x3f7)];}this[_0x299c0c(0x4df)](_0x11e648),_0x343301&&(_0x343301[_0x299c0c(0x2d5)]=this[_0x299c0c(0x372)]()),this['_awaitingChangeset']=_0x343301,this[_0x299c0c(0x210)]=_0x45fa18;}[_0x1453e5(0x34d)](){const _0x404727=_0x1453e5;if(!this[_0x404727(0x4b9)]||this[_0x404727(0x4ea)]==null)return;let _0x46cf9b=this[_0x404727(0x372)]();if(this[_0x404727(0x4ea)]<=_0x46cf9b)throw Error(_0x404727(0x2ce)+this[_0x404727(0x4ea)]+'.');this[_0x404727(0x4ea)]===_0x46cf9b+0x1&&this[_0x404727(0x27c)]();}[_0x1453e5(0x27c)](){const _0x4210e8=_0x1453e5;this['_incrementRevisionNumber'](),this[_0x4210e8(0x4b9)]=null,this[_0x4210e8(0x4ea)]=null;}[_0x1453e5(0x487)](_0xafe16b){const _0x5cfb91=_0x1453e5;let _0x232264=this[_0x5cfb91(0x4b9)];return!_0x232264||!_0x232264[_0x5cfb91(0x4cb)]||_0x232264[_0x5cfb91(0x37b)]===null||_0x232264[_0x5cfb91(0x37b)]===void 0x0?!0x1:_0xafe16b[_0x5cfb91(0x47f)]===_0x232264['unitID']&&_0xafe16b[_0x5cfb91(0x4cb)]===_0x232264['sid']&&_0xafe16b[_0x5cfb91(0x37b)]===_0x232264[_0x5cfb91(0x37b)];}[_0x1453e5(0x4fd)](){const _0x12e633=_0x1453e5;throw Error(_0x12e633(0x424));}['appendMutation'](_0x36f22a){const _0x4a274b=_0x1453e5;return this['_pendingMutations'][_0x4a274b(0x4d0)](_0x36f22a),this;}[_0x1453e5(0x421)](_0x37c4cb){const _0xdcd809=_0x1453e5;return this[_0xdcd809(0x432)][_0xdcd809(0x4d0)](_0x37c4cb),this;}[_0x1453e5(0x4c4)](_0x1e8bc1){const _0x4c4c1a=_0x1453e5;if(this[_0x4c4c1a(0x4b9)]){let _0x340bc4=this[_0x4c4c1a(0x372)]();return _0x1e8bc1[_0x4c4c1a(0x3eb)]<=_0x340bc4||(_0x340bc4+0x1===_0x1e8bc1[_0x4c4c1a(0x3eb)]?(this[_0x4c4c1a(0x45d)](),this[_0x4c4c1a(0x4b9)]=null,this[_0x4c4c1a(0x4ea)]=null):this['_acknowledgedAwaitingRevision']=_0x1e8bc1[_0x4c4c1a(0x3eb)]),this;}if(_0x1e8bc1[_0x4c4c1a(0x3eb)]<=this[_0x4c4c1a(0x372)]())return this;throw Error(_0x4c4c1a(0x4dd));}[_0x1453e5(0x2c1)](_0x2ee6e5){const _0x3cf5e0=_0x1453e5;return this[_0x3cf5e0(0x258)](!!(_0x2ee6e5!=null&&_0x2ee6e5[_0x3cf5e0(0x1fb)]));}[_0x1453e5(0x4da)](){return this;}[_0x1453e5(0x2f9)](){const _0x595e2e=_0x1453e5;return this[_0x595e2e(0x3df)][_0x595e2e(0x48b)](_0x49a25b,this[_0x595e2e(0x47f)],this[_0x595e2e(0x293)],this[_0x595e2e(0x4b9)],this[_0x595e2e(0x210)],this[_0x595e2e(0x2f1)]);}[_0x1453e5(0x212)](){return this;}[_0x1453e5(0x258)](_0x53dfda){const _0x39b8b1=_0x1453e5;return this[_0x39b8b1(0x3df)][_0x39b8b1(0x48b)](_0x1617da,this[_0x39b8b1(0x47f)],this['type'],this[_0x39b8b1(0x4b9)],this[_0x39b8b1(0x210)],this[_0x39b8b1(0x2f1)],_0x53dfda);}};_0x12b492=_0x23bcbc([_0x20187e(0x7,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x15f21c[_0x1453e5(0x411)])),_0x20187e(0x8,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x37511f[_0x1453e5(0x4e2)])),_0x20187e(0x9,_0x15f21c[_0x1453e5(0x3fc)]),_0x20187e(0xa,_0x15f21c[_0x1453e5(0x3e9)]),_0x20187e(0xb,_0x15f21c[_0x1453e5(0x359)]),_0x20187e(0xc,_0x37511f[_0x1453e5(0x274)]),_0x20187e(0xd,(0x0,_0x15f21c[_0x1453e5(0x30b)])(_0x2bb040))],_0x12b492);function _0x357228(_0x26380a,_0x1879f9,_0x319e70,_0x2da304,_0x524340,_0x3ceaa4){const _0x5b5a93=_0x1453e5;return _0x2da304&&_0x524340[_0x5b5a93(0x22f)]?_0x26380a['createInstance'](_0x451a32,_0x1879f9,_0x319e70,_0x2da304,_0x524340,_0x3ceaa4,void 0x0):_0x2da304?_0x26380a[_0x5b5a93(0x48b)](_0x393762,_0x1879f9,_0x319e70,_0x2da304,_0x3ceaa4):_0x524340[_0x5b5a93(0x22f)]?_0x26380a[_0x5b5a93(0x48b)](_0xe56e96,_0x1879f9,_0x319e70,_0x524340,_0x3ceaa4):_0x26380a[_0x5b5a93(0x48b)](_0x301f3f,_0x1879f9,_0x319e70,_0x3ceaa4);}let _0x2dfe9f=class extends _0x15f21c['RxDisposable']{get[_0x1453e5(0x37a)](){const _0x53c10c=_0x1453e5;return this[_0x53c10c(0x38c)];}constructor(_0x328b3c,_0x429930,_0x1e20c1,_0x44717a,_0x43cd66,_0x3f68c5,_0x152c18,_0x2bda29,_0xfcc021,_0x142569,_0x53c761,_0x1ffa05,_0x26c1e1,_0x419080){const _0x396fbc=_0x1453e5;super(),this[_0x396fbc(0x47f)]=_0x328b3c,this[_0x396fbc(0x33d)]=_0x429930,this[_0x396fbc(0x2fc)]=_0x1e20c1,this[_0x396fbc(0x3df)]=_0x44717a,this['_compressMutationService']=_0x43cd66,this[_0x396fbc(0x4de)]=_0x3f68c5,this[_0x396fbc(0x35e)]=_0x152c18,this[_0x396fbc(0x330)]=_0x2bda29,this[_0x396fbc(0x3c2)]=_0xfcc021,this['_logService']=_0x142569,this[_0x396fbc(0x2e0)]=_0x53c761,this[_0x396fbc(0x316)]=_0x1ffa05,this[_0x396fbc(0x44e)]=_0x26c1e1,this[_0x396fbc(0x364)]=_0x419080,_0x14249f(this,_0x396fbc(0x34c),new _0x57cf55[(_0x396fbc(0x442))](null)),_0x14249f(this,_0x396fbc(0x2b3),this[_0x396fbc(0x34c)][_0x396fbc(0x35d)]()),_0x14249f(this,_0x396fbc(0x38c),void 0x0),_0x14249f(this,_0x396fbc(0x39a),!0x1),_0x14249f(this,'_changesetSessionId',''),_0x14249f(this,_0x396fbc(0x4a7),0x0),_0x14249f(this,'status$',this['state$'][_0x396fbc(0x469)]((0x0,_0x57cf55['map'])(_0x47d18c=>_0x47d18c?_0x47d18c[_0x396fbc(0x29a)]:_0x396fbc(0x410)),(0x0,_0x57cf55[_0x396fbc(0x3dd)])(0x1))),_0x14249f(this,_0x396fbc(0x408),!0x1),_0x14249f(this,_0x396fbc(0x33c),[]);}async[_0x1453e5(0x3a3)](){const _0x3c9812=_0x1453e5;if(this[_0x3c9812(0x37a)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x3c9812(0x4e0)]();}[_0x1453e5(0x40d)](){const _0x4245c1=_0x1453e5;return this[_0x4245c1(0x39a)]=!0x0,(0x0,_0x15f21c[_0x4245c1(0x39b)])(()=>{const _0x577097=_0x4245c1;this[_0x577097(0x39a)]=!0x1,this[_0x577097(0x37e)]();});}[_0x1453e5(0x40f)](_0x41c32e){this['_onLocalMutation'](_0x41c32e);}[_0x1453e5(0x2c2)](_0x616142){const _0x1323e2=_0x1453e5;this['_state']=_0x616142,this[_0x1323e2(0x34c)][_0x1323e2(0x492)](_0x616142);}async[_0x1453e5(0x4e0)](){const _0x7cdf6f=_0x1453e5;if(this[_0x7cdf6f(0x2c2)](await this[_0x7cdf6f(0x3bc)]()),this[_0x7cdf6f(0x44e)]){var _0x30f7ac;(_0x30f7ac=this['_singleActiveUnitService'])==null||_0x30f7ac[_0x7cdf6f(0x3d4)](this[_0x7cdf6f(0x47f)]),this[_0x7cdf6f(0x2b9)](this[_0x7cdf6f(0x44e)][_0x7cdf6f(0x48e)](this['unitID'])[_0x7cdf6f(0x264)](_0x180aa1=>{const _0x529cbf=_0x7cdf6f;this[_0x529cbf(0x2ec)]['debug'](_0x529cbf(0x456),_0x529cbf(0x343),_0x180aa1),_0x180aa1===0x1?(this['_eventService']['emitEvent']({'id':'OTHER_CLIENT_EDITING'}),this[_0x529cbf(0x316)][_0x529cbf(0x510)](new _0x5dbd34[(_0x529cbf(0x4bd))](this[_0x529cbf(0x47f)])['id'],!0x1),this[_0x529cbf(0x316)][_0x529cbf(0x3ef)](!0x1)):(this['_permissionService']['updatePermissionPoint'](new _0x5dbd34[(_0x529cbf(0x4bd))](this[_0x529cbf(0x47f)])['id'],!0x0),this[_0x529cbf(0x316)][_0x529cbf(0x3ef)](!0x0));}));}let _0x5402ac=!0x1;return this[_0x7cdf6f(0x2b9)](this[_0x7cdf6f(0x33d)]['sessionStatus$']['subscribe'](_0x554f6a=>{const _0x445dc2=_0x7cdf6f;_0x554f6a===0x3?this['_toggleOnline'](_0x5402ac):_0x554f6a===0x2&&(_0x5402ac=!0x0,this[_0x445dc2(0x3d9)]());})),this[_0x7cdf6f(0x2b9)](this[_0x7cdf6f(0x33d)][_0x7cdf6f(0x230)][_0x7cdf6f(0x264)](_0x295230=>{const _0x5b3289=_0x7cdf6f;try{switch(_0x295230[_0x5b3289(0x2b4)]){case _0x37511f[_0x5b3289(0x342)][_0x5b3289(0x2a4)]:this[_0x5b3289(0x2cd)]((0x0,_0x37511f[_0x5b3289(0x2af)])(_0x295230[_0x5b3289(0x268)]));break;case _0x37511f['CollaborationEvent'][_0x5b3289(0x43e)]:this[_0x5b3289(0x489)](_0x295230[_0x5b3289(0x268)]);break;case _0x37511f['CollaborationEvent']['CHANGESET_REJ']:this[_0x5b3289(0x1f4)]();break;case _0x37511f[_0x5b3289(0x342)][_0x5b3289(0x394)]:this[_0x5b3289(0x4b1)](_0x295230[_0x5b3289(0x268)]);break;case _0x37511f[_0x5b3289(0x342)]['PSEUDO_FETCH_MISSING_RESULT']:this['_onFetchMissResult'](_0x295230[_0x5b3289(0x268)][_0x5b3289(0x3aa)][_0x5b3289(0x27b)](_0xd93a17=>(0x0,_0x37511f[_0x5b3289(0x2af)])(_0xd93a17)));break;case _0x37511f['CollaborationEvent'][_0x5b3289(0x33e)]:this[_0x5b3289(0x1f4)]({'isPermissionRej':!0x0});break;case _0x37511f['CollaborationEvent'][_0x5b3289(0x36d)]:break;}}catch(_0x5b5047){throw console[_0x5b3289(0x357)](_0x5b3289(0x2c3),_0x5b5047),_0x5b5047;}})),this[_0x7cdf6f(0x38c)];}[_0x1453e5(0x498)](){const _0x4936e1=_0x1453e5;this[_0x4936e1(0x408)]=!0x1;}[_0x1453e5(0x416)](){const _0x549ce6=_0x1453e5;if(this[_0x549ce6(0x408)])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x549ce6(0x408)]=!0x0;}[_0x1453e5(0x3a6)](_0x5f3efe){const _0x4ab1f9=_0x1453e5;this[_0x4ab1f9(0x416)](),this[_0x4ab1f9(0x2c2)](this['_state'][_0x4ab1f9(0x20b)](_0x5f3efe)),this[_0x4ab1f9(0x498)]();}[_0x1453e5(0x2cd)](_0x1cbc2b){const _0x3fa7b2=_0x1453e5;if(!(_0x1cbc2b[_0x3fa7b2(0x3eb)]<=this['_revisionService'][_0x3fa7b2(0x215)](this[_0x3fa7b2(0x47f)]))){if(this['_collaborationPaused']){this[_0x3fa7b2(0x33c)][_0x3fa7b2(0x4d0)](_0x1cbc2b);return;}this[_0x3fa7b2(0x271)](_0x1cbc2b);}}['_exhaustRemoteChangesetQueue'](){const _0x491481=_0x1453e5;this[_0x491481(0x33c)][_0x491481(0x4a3)](_0x455eb2=>this['_applyRemoteChangeset'](_0x455eb2)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x3a7cbc){const _0x2740ae=_0x1453e5;let _0x2df0c8=this[_0x2740ae(0x325)][_0x2740ae(0x37c)][_0x2740ae(0x46e)](this[_0x2740ae(0x325)][_0x2740ae(0x37c)]['getInterceptPoints']()[_0x2740ae(0x4f5)])(_0x3a7cbc[_0x2740ae(0x3d5)],null)||_0x3a7cbc['mutations'],_0x48d4e2={..._0x3a7cbc,'mutations':_0x2df0c8};this[_0x2740ae(0x416)](),this['_updateState'](this[_0x2740ae(0x38c)][_0x2740ae(0x421)](_0x48d4e2)),this[_0x2740ae(0x498)]();}[_0x1453e5(0x489)](_0x166bc8){const _0x5b5d0c=_0x1453e5;this[_0x5b5d0c(0x416)](),this[_0x5b5d0c(0x2c2)](this[_0x5b5d0c(0x38c)][_0x5b5d0c(0x4c4)](_0x166bc8)),this['_unlockTransition']();}['_onRemoteRejected'](_0x162889){const _0x2ef2ab=_0x1453e5;this['_lockTransition'](),this['_updateState'](this[_0x2ef2ab(0x38c)][_0x2ef2ab(0x2c1)](_0x162889)),this['_unlockTransition']();}[_0x1453e5(0x4b1)](_0x44f8ec){const _0x20818f=_0x1453e5;this[_0x20818f(0x416)](),this[_0x20818f(0x2c2)](this[_0x20818f(0x38c)][_0x20818f(0x4da)](_0x44f8ec)),this[_0x20818f(0x498)]();}['_onFetchMissResult'](_0x3ea148){const _0x85825e=_0x1453e5;if(!(this[_0x85825e(0x38c)]instanceof _0x12b492))throw TypeError(_0x85825e(0x362));let _0x364cf1=_0x3ea148['map'](_0xdb6f6=>{const _0x51d99c=_0x85825e;let _0x3e5d87=this[_0x51d99c(0x325)]['interceptor']['fetchThroughInterceptors'](this[_0x51d99c(0x325)]['interceptor'][_0x51d99c(0x462)]()[_0x51d99c(0x4f5)])(_0xdb6f6['mutations'],null)||_0xdb6f6['mutations'];return{..._0xdb6f6,'mutations':_0x3e5d87};});this[_0x85825e(0x416)](),this[_0x85825e(0x2c2)](this[_0x85825e(0x38c)][_0x85825e(0x467)](_0x364cf1)),this['_unlockTransition']();}['_toggleOffline'](){const _0x4a34f0=_0x1453e5;this[_0x4a34f0(0x416)](),this[_0x4a34f0(0x2c2)](this[_0x4a34f0(0x38c)][_0x4a34f0(0x2f9)]()),this['_unlockTransition']();}['_toggleOnline'](_0x3ba14a=!0x1){const _0x2529d8=_0x1453e5;this[_0x2529d8(0x416)](),this[_0x2529d8(0x2c2)](this[_0x2529d8(0x38c)]['toggleOnline']()),this[_0x2529d8(0x498)]();let _0x2ea47a=this[_0x2529d8(0x38c)];_0x3ba14a&&_0x2ea47a instanceof _0x301f3f&&(this['_lockTransition'](),this[_0x2529d8(0x2c2)](_0x2ea47a[_0x2529d8(0x34f)]()),this['_unlockTransition']());}async[_0x1453e5(0x3bc)](){return new Promise(_0x1ed191=>{const _0x4a12a3=_0x2103;this[_0x4a12a3(0x33d)][_0x4a12a3(0x40e)][_0x4a12a3(0x469)]((0x0,_0x57cf55[_0x4a12a3(0x3ee)])(0x1))[_0x4a12a3(0x264)](async _0x4cc644=>{const _0x53356d=_0x4a12a3;_0x1ed191(await this[_0x53356d(0x21f)](_0x4cc644===0x3));});});}[_0x1453e5(0x25d)](){const _0x2fe6ce=_0x1453e5;let _0x1f3e70=this[_0x2fe6ce(0x47f)];return{'onStateChange':(_0x163913,_0x1c7872)=>{const _0x12e86b=_0x2fe6ce;if(_0x163913!==this[_0x12e86b(0x38c)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x163913[_0x12e86b(0x29a)]+_0x12e86b(0x49a)+_0x1c7872[_0x12e86b(0x29a)]+_0x12e86b(0x2ea)+this[_0x12e86b(0x38c)][_0x12e86b(0x29a)]);this['_updateState'](_0x1c7872);},'onSendChangeset':_0x589a8a=>{const _0x3ad1f1=_0x2fe6ce;_0x589a8a[_0x3ad1f1(0x4cb)]||(_0x589a8a[_0x3ad1f1(0x4cb)]=this[_0x3ad1f1(0x2e6)],_0x589a8a[_0x3ad1f1(0x37b)]=++this[_0x3ad1f1(0x4a7)]);let _0x1faf4b={'eventID':_0x37511f[_0x3ad1f1(0x342)][_0x3ad1f1(0x24f)],'data':{'unitID':_0x589a8a[_0x3ad1f1(0x47f)],'unitType':this[_0x3ad1f1(0x2fc)],'changeset':_0x589a8a,'memberID':this[_0x3ad1f1(0x33d)][_0x3ad1f1(0x4d3)]()}};this['session'][_0x3ad1f1(0x344)](_0x1faf4b,this[_0x3ad1f1(0x47f)]);},'onMissingChangesets':({from:_0x32e41d,to:_0x48c6d1})=>{const _0x10e008=_0x2fe6ce;this['_logService'][_0x10e008(0x275)](_0x10e008(0x456),_0x10e008(0x269)+_0x32e41d+_0x10e008(0x3f1)+_0x48c6d1);let _0x2c2df5={'eventID':_0x37511f[_0x10e008(0x342)]['FETCH_MISSING'],'data':{'unitID':_0x1f3e70,'unitType':this[_0x10e008(0x2fc)],'from':_0x32e41d,'to':_0x48c6d1}};this[_0x10e008(0x33d)]['send'](_0x2c2df5,this[_0x10e008(0x47f)]);}};}async[_0x1453e5(0x21f)](_0x393faf){const _0x3e233b=_0x1453e5;var _0x206b03,_0x46a15e,_0x1979c1;let _0xb21e8c=await((_0x206b03=this['_localCacheService'])==null?void 0x0:_0x206b03['loadOfflineData'](this[_0x3e233b(0x47f)])),_0xc0eda2=(_0x46a15e=_0xb21e8c==null?void 0x0:_0xb21e8c[_0x3e233b(0x3d5)])==null?[]:_0x46a15e,_0x35d575=(_0x1979c1=_0xb21e8c==null?void 0x0:_0xb21e8c[_0x3e233b(0x4f8)])==null?null:_0x1979c1,_0xb5da6f=!!(_0x35d575!=null&&_0x35d575[_0x3e233b(0x4cb)])&&!!(_0x35d575!=null&&_0x35d575['reqId']);this[_0x3e233b(0x2e6)]=_0xb5da6f?_0x35d575[_0x3e233b(0x4cb)]:(0x0,_0x37511f['uuidv4'])(),this[_0x3e233b(0x4a7)]=_0xb5da6f?_0x35d575[_0x3e233b(0x37b)]:0x0;let _0x338c33=this[_0x3e233b(0x47f)];try{this[_0x3e233b(0x3ab)](_0x35d575,_0xc0eda2);}catch(_0x3d6618){this['_logService'][_0x3e233b(0x357)](_0x3d6618);}let _0xb6c44d=this[_0x3e233b(0x25d)]();if(_0x393faf){let _0x49f7b0=_0x357228(this[_0x3e233b(0x3df)],_0x338c33,this[_0x3e233b(0x2fc)],_0x35d575,_0xc0eda2,_0xb6c44d);return _0x49f7b0 instanceof _0xe56e96?_0x49f7b0[_0x3e233b(0x4ed)]():(_0x49f7b0 instanceof _0x451a32||_0x49f7b0 instanceof _0x393762)&&_0x49f7b0[_0x3e233b(0x4fd)](),_0x49f7b0;}return this[_0x3e233b(0x3df)][_0x3e233b(0x48b)](_0x49a25b,_0x338c33,this[_0x3e233b(0x2fc)],_0x35d575,_0xc0eda2,_0xb6c44d);}['_replayCachedMutations'](_0x108942,_0x3b4199){const _0x2f7a9f=_0x1453e5;var _0x39c3be,_0x3f6b24;let _0x56919f=this[_0x2f7a9f(0x325)][_0x2f7a9f(0x37c)][_0x2f7a9f(0x46e)](this[_0x2f7a9f(0x325)][_0x2f7a9f(0x37c)]['getInterceptPoints']()[_0x2f7a9f(0x4f5)]);(_0x39c3be=_0x56919f((_0x108942==null?void 0x0:_0x108942['mutations'])||[],null))==null||_0x39c3be['forEach'](_0x1caa9d=>this[_0x2f7a9f(0x2e0)][_0x2f7a9f(0x4a8)](_0x1caa9d['id'],_0x1caa9d[_0x2f7a9f(0x486)])),(_0x3f6b24=_0x56919f(_0x3b4199||[],null))==null||_0x3f6b24[_0x2f7a9f(0x4a3)](_0x3ea205=>this['_commandService'][_0x2f7a9f(0x4a8)](_0x3ea205['id'],_0x3ea205[_0x2f7a9f(0x486)]));}};_0x2dfe9f=_0x23bcbc([_0x20187e(0x3,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x15f21c[_0x1453e5(0x411)])),_0x20187e(0x4,(0x0,_0x15f21c['Inject'])(_0x37511f[_0x1453e5(0x509)])),_0x20187e(0x5,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x15f21c[_0x1453e5(0x3d2)])),_0x20187e(0x6,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x37511f[_0x1453e5(0x4e2)])),_0x20187e(0x7,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x44a5ef)),_0x20187e(0x8,_0x15f21c[_0x1453e5(0x22c)]),_0x20187e(0x9,_0x15f21c['ILogService']),_0x20187e(0xa,_0x15f21c[_0x1453e5(0x3e9)]),_0x20187e(0xb,_0x15f21c['IPermissionService']),_0x20187e(0xc,(0x0,_0x15f21c['Optional'])(_0x7c093b)),_0x20187e(0xd,(0x0,_0x15f21c[_0x1453e5(0x30b)])(_0x2bb040))],_0x2dfe9f);let _0x3313c8=class extends _0x2dfe9f{constructor(_0x19e181,_0x46a5f7,_0x5776ad,_0x267287,_0x3665b2,_0x741be,_0xb99cc9,_0x5afeaf,_0x1268d6,_0x591816,_0x13afdc,_0xa0d328,_0x1652be,_0x150491){const _0x1adada=_0x1453e5;super(_0x19e181,_0x5776ad,_0x46a5f7,_0x267287,_0x3665b2,_0x741be,_0xb99cc9,_0x5afeaf,_0x1268d6,_0x591816,_0x13afdc,_0xa0d328,_0x1652be,_0x150491),this['unitID']=_0x19e181,this[_0x1adada(0x293)]=_0x46a5f7,_0x14249f(this,_0x1adada(0x34e),null);}['addHandlerCallback'](_0x4566d9){const _0xd1838f=_0x1453e5;this[_0xd1838f(0x34e)]=_0x4566d9;}['dispose'](){const _0x117505=_0x1453e5;this['_handlerCallback']=null,super[_0x117505(0x493)]();}[_0x1453e5(0x25d)](){const _0x157b77=_0x1453e5;let _0x93cc12=super[_0x157b77(0x25d)]();return _0x93cc12[_0x157b77(0x345)]=_0x2e0ddb=>{const _0x533c30=_0x157b77;var _0x4bfeb7,_0xf5d0a7;return(_0x4bfeb7=this['_handlerCallback'])==null||(_0xf5d0a7=_0x4bfeb7[_0x533c30(0x345)])==null?void 0x0:_0xf5d0a7['call'](_0x4bfeb7,_0x2e0ddb);},_0x93cc12['onTransformState']=_0x4bcf9c=>{const _0xa96bb2=_0x157b77;var _0x35a901,_0x272301;return(_0x35a901=this[_0xa96bb2(0x34e)])==null||(_0x272301=_0x35a901[_0xa96bb2(0x48a)])==null?void 0x0:_0x272301[_0xa96bb2(0x21a)](_0x35a901,_0x4bcf9c);},_0x93cc12[_0x157b77(0x307)]=_0xf02a78=>{const _0x364ad9=_0x157b77;var _0x32aff4,_0xb7336b;return(_0x32aff4=this[_0x364ad9(0x34e)])==null||(_0xb7336b=_0x32aff4[_0x364ad9(0x307)])==null?void 0x0:_0xb7336b[_0x364ad9(0x21a)](_0x32aff4,_0xf02a78);},_0x93cc12[_0x157b77(0x484)]=_0x2fb065=>{const _0x3ac889=_0x157b77;var _0xbb5800,_0x5bb0ce;return(_0xbb5800=this[_0x3ac889(0x34e)])==null||(_0x5bb0ce=_0xbb5800[_0x3ac889(0x484)])==null?void 0x0:_0x5bb0ce[_0x3ac889(0x21a)](_0xbb5800,_0x2fb065);},_0x93cc12[_0x157b77(0x209)]=_0x292796=>{const _0x23c2a6=_0x157b77;var _0x512f5b,_0x12539d,_0x8d2396;if(!((_0x512f5b=this[_0x23c2a6(0x34e)])!=null&&_0x512f5b[_0x23c2a6(0x209)]))throw Error('onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.');return(_0x12539d=this['_handlerCallback'])==null||(_0x8d2396=_0x12539d[_0x23c2a6(0x209)])==null?void 0x0:_0x8d2396[_0x23c2a6(0x21a)](_0x12539d,_0x292796);},_0x93cc12['onTransformRemoteChangesetByStateCache']=_0x1e8ad2=>{const _0x4ceaec=_0x157b77;var _0x2a9789,_0x3fcf80,_0x45c380;if(!((_0x2a9789=this['_handlerCallback'])!=null&&_0x2a9789['onTransformRemoteChangesetByStateCache']))throw Error(_0x4ceaec(0x3e2));return(_0x3fcf80=this[_0x4ceaec(0x34e)])==null||(_0x45c380=_0x3fcf80['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x45c380['call'](_0x3fcf80,_0x1e8ad2);},_0x93cc12;}async[_0x1453e5(0x4e0)](){const _0x15708f=_0x1453e5;let _0x297556=await super[_0x15708f(0x4e0)]();return this[_0x15708f(0x2b9)](this[_0x15708f(0x2e0)][_0x15708f(0x436)]((_0x3d1fbf,_0x5d1fcd)=>{const _0xd32bb9=_0x15708f;if(_0x3d1fbf[_0xd32bb9(0x293)]!==_0x15f21c[_0xd32bb9(0x333)][_0xd32bb9(0x439)]||_0x5d1fcd!=null&&_0x5d1fcd['fromCollab']||_0x5d1fcd!=null&&_0x5d1fcd[_0xd32bb9(0x418)]||_0x3d1fbf['id']===_0x93b6b9[_0xd32bb9(0x390)]['id'])return;let _0x3c0c72=_0x3d1fbf[_0xd32bb9(0x486)];if((_0x3c0c72==null?void 0x0:_0x3c0c72[_0xd32bb9(0x477)])!==this[_0xd32bb9(0x47f)])return;let _0x569af8=_0x3d1fbf,_0x28e040=this[_0xd32bb9(0x325)][_0xd32bb9(0x37c)][_0xd32bb9(0x46e)](this[_0xd32bb9(0x325)][_0xd32bb9(0x37c)][_0xd32bb9(0x462)]()[_0xd32bb9(0x283)])([_0x569af8],this['_univerInstanceService'])||[_0x569af8];this[_0xd32bb9(0x3a6)](_0x28e040[0x0]);})),_0x297556;}};_0x3313c8=_0x23bcbc([_0x20187e(0x3,(0x0,_0x15f21c['Inject'])(_0x15f21c[_0x1453e5(0x411)])),_0x20187e(0x4,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x37511f[_0x1453e5(0x509)])),_0x20187e(0x5,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x15f21c['LocaleService'])),_0x20187e(0x6,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x37511f[_0x1453e5(0x4e2)])),_0x20187e(0x7,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x44a5ef)),_0x20187e(0x8,_0x15f21c['IUniverInstanceService']),_0x20187e(0x9,_0x15f21c[_0x1453e5(0x3fc)]),_0x20187e(0xa,_0x15f21c['ICommandService']),_0x20187e(0xb,_0x15f21c[_0x1453e5(0x240)]),_0x20187e(0xc,(0x0,_0x15f21c[_0x1453e5(0x30b)])(_0x7c093b)),_0x20187e(0xd,(0x0,_0x15f21c[_0x1453e5(0x30b)])(_0x2bb040))],_0x3313c8);let _0x5a3f3c=class extends _0x2dfe9f{constructor(_0xbcef46,_0x2a5f1b,_0xdf84a8,_0xbe3ae0,_0x270ef3,_0x2c8419,_0x22058a,_0x521dbe,_0x38cbc8,_0xcfe4d1,_0x1883d5,_0x409e81,_0x50a53b,_0xb22296,_0x5bd1a8){const _0x43475d=_0x1453e5;super(_0xbcef46,_0xdf84a8,_0x2a5f1b,_0xbe3ae0,_0x270ef3,_0x2c8419,_0x22058a,_0x38cbc8,_0xcfe4d1,_0x1883d5,_0x409e81,_0x50a53b,_0xb22296,_0x5bd1a8),this[_0x43475d(0x47f)]=_0xbcef46,this[_0x43475d(0x293)]=_0x2a5f1b,this[_0x43475d(0x50b)]=_0x521dbe;}[_0x1453e5(0x25d)](){const _0x170bec=_0x1453e5;let _0x538e41=super[_0x170bec(0x25d)]();return _0x538e41[_0x170bec(0x307)]=_0xd63635=>this[_0x170bec(0x50b)][_0x170bec(0x375)](_0xd63635),_0x538e41;}async[_0x1453e5(0x4e0)](){const _0x24e439=_0x1453e5;let _0x46bde3=await super['_init']();return this[_0x24e439(0x2b9)](this[_0x24e439(0x2e0)]['onMutationExecutedForCollab']((_0x30e181,_0x113abd)=>{const _0x4477cb=_0x24e439;if(_0x30e181[_0x4477cb(0x293)]!==_0x15f21c['CommandType']['MUTATION']||_0x113abd!=null&&_0x113abd['fromCollab']||_0x113abd!=null&&_0x113abd[_0x4477cb(0x418)])return;let _0x53b8a8=_0x30e181[_0x4477cb(0x486)];if((_0x53b8a8==null?void 0x0:_0x53b8a8[_0x4477cb(0x477)])!==this[_0x4477cb(0x47f)])return;let _0x589747=_0x30e181,_0x52a16e=this[_0x4477cb(0x325)]['interceptor'][_0x4477cb(0x46e)](this[_0x4477cb(0x325)][_0x4477cb(0x37c)]['getInterceptPoints']()[_0x4477cb(0x283)])([_0x589747],this[_0x4477cb(0x3c2)])||[_0x589747];this['_onLocalMutation'](_0x52a16e[0x0]);})),_0x46bde3;}};_0x5a3f3c=_0x23bcbc([_0x20187e(0x3,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x15f21c[_0x1453e5(0x411)])),_0x20187e(0x4,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x37511f[_0x1453e5(0x509)])),_0x20187e(0x5,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x15f21c[_0x1453e5(0x3d2)])),_0x20187e(0x6,(0x0,_0x15f21c['Inject'])(_0x37511f[_0x1453e5(0x4e2)])),_0x20187e(0x7,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x53d349)),_0x20187e(0x8,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x44a5ef)),_0x20187e(0x9,_0x15f21c[_0x1453e5(0x22c)]),_0x20187e(0xa,_0x15f21c[_0x1453e5(0x3fc)]),_0x20187e(0xb,_0x15f21c[_0x1453e5(0x3e9)]),_0x20187e(0xc,_0x15f21c[_0x1453e5(0x240)]),_0x20187e(0xd,(0x0,_0x15f21c[_0x1453e5(0x30b)])(_0x7c093b)),_0x20187e(0xe,(0x0,_0x15f21c[_0x1453e5(0x30b)])(_0x2bb040))],_0x5a3f3c);let _0x49ddf5=(0x0,_0x15f21c[_0x1453e5(0x2d3)])('univer-pro.collaboration-client.network-condition.service');function _0x12e05c(_0x2b281c){const _0x3820aa=_0x1453e5;let _0x5b8679=_0x2b281c[_0x3820aa(0x268)],_0x2111dc=JSON[_0x3820aa(0x27d)](_0x5b8679);switch(_0x2111dc[_0x3820aa(0x500)]){case _0x1b8fab[_0x3820aa(0x506)][_0x3820aa(0x478)]:case _0x1b8fab[_0x3820aa(0x506)][_0x3820aa(0x2f8)]:{let _0x46cc82=_0x2111dc[_0x3820aa(0x4a0)];return{..._0x2111dc,'data':_0x46cc82,'cmd':_0x2111dc['cmd']};}case _0x1b8fab[_0x3820aa(0x506)][_0x3820aa(0x470)]:{let _0x73776d=_0x2111dc['joinRsp'];return{..._0x2111dc,'data':_0x73776d,'cmd':_0x2111dc[_0x3820aa(0x500)]};}case _0x1b8fab['CombCmd'][_0x3820aa(0x4b6)]:{let _0xb91270=_0x2111dc[_0x3820aa(0x2dc)];switch(_0xb91270[_0x3820aa(0x2b4)]){case _0x37511f[_0x3820aa(0x342)][_0x3820aa(0x33e)]:var _0x1680c3;return{..._0x2111dc,'data':{..._0xb91270,'data':(_0x1680c3=_0xb91270['permissionRejEvent'])==null?void 0x0:_0x1680c3['cs']},'cmd':_0x2111dc[_0x3820aa(0x500)]};case _0x37511f['CollaborationEvent'][_0x3820aa(0x43e)]:var _0x108680;return{..._0x2111dc,'data':{..._0xb91270,'data':(_0x108680=_0xb91270[_0x3820aa(0x466)])==null?void 0x0:_0x108680['cs']},'cmd':_0x2111dc['cmd']};case _0x37511f[_0x3820aa(0x342)][_0x3820aa(0x2a4)]:var _0x3c6d45;return{..._0x2111dc,'data':{..._0xb91270,'data':(_0x3c6d45=_0xb91270[_0x3820aa(0x3d7)])==null?void 0x0:_0x3c6d45['cs']},'cmd':_0x2111dc[_0x3820aa(0x500)]};case _0x37511f[_0x3820aa(0x342)][_0x3820aa(0x201)]:var _0x2492c4;return{..._0x2111dc,'data':{..._0xb91270,'data':(_0x2492c4=_0xb91270[_0x3820aa(0x2ab)])==null?void 0x0:_0x2492c4['cs']},'cmd':_0x2111dc['cmd']};case _0x37511f['CollaborationEvent'][_0x3820aa(0x394)]:var _0x5fe25d;return{..._0x2111dc,'data':{..._0xb91270,'data':(_0x5fe25d=_0xb91270[_0x3820aa(0x338)])==null?void 0x0:_0x5fe25d['cs']},'cmd':_0x2111dc[_0x3820aa(0x500)]};case _0x37511f[_0x3820aa(0x342)][_0x3820aa(0x502)]:return{..._0x2111dc,'data':{..._0xb91270,'data':_0xb91270[_0x3820aa(0x314)]},'cmd':_0x2111dc[_0x3820aa(0x500)]};case _0x37511f[_0x3820aa(0x342)][_0x3820aa(0x447)]:return{..._0x2111dc,'data':{..._0xb91270,'data':_0xb91270[_0x3820aa(0x45c)]},'cmd':_0x2111dc[_0x3820aa(0x500)]};case _0x37511f[_0x3820aa(0x342)][_0x3820aa(0x366)]:return{..._0x2111dc,'data':{..._0xb91270,'data':_0xb91270['leaveEvent']},'cmd':_0x2111dc[_0x3820aa(0x500)]};case _0x37511f[_0x3820aa(0x342)]['LIVESHARE_NEW_HOST']:return{..._0x2111dc,'data':{..._0xb91270,'data':_0xb91270['liveShareNewHost']},'cmd':_0x2111dc[_0x3820aa(0x500)]};case _0x37511f[_0x3820aa(0x342)]['LIVESHARE_FETCH_OPERATIONS']:case _0x37511f[_0x3820aa(0x342)]['LIVESHARE_OPERATION']:return{..._0x2111dc,'data':{..._0xb91270,'data':_0xb91270[_0x3820aa(0x348)]},'cmd':_0x2111dc['cmd']};case _0x37511f[_0x3820aa(0x342)][_0x3820aa(0x4fa)]:return{..._0x2111dc,'data':{..._0xb91270,'data':_0xb91270[_0x3820aa(0x46c)]},'cmd':_0x2111dc[_0x3820aa(0x500)]};case _0x37511f['CollaborationEvent'][_0x3820aa(0x36c)]:return{..._0x2111dc,'data':_0xb91270,'cmd':_0x2111dc[_0x3820aa(0x500)]};case _0x37511f[_0x3820aa(0x342)][_0x3820aa(0x2f0)]:return{..._0x2111dc,'data':{..._0xb91270,'data':_0xb91270['commentUpdateEvent']},'cmd':_0x2111dc[_0x3820aa(0x500)]};case _0x37511f[_0x3820aa(0x342)][_0x3820aa(0x3c5)]:return{..._0x2111dc,'data':{..._0xb91270,'data':_0xb91270[_0x3820aa(0x2f3)]},'cmd':_0x2111dc[_0x3820aa(0x500)]};case _0x37511f[_0x3820aa(0x342)][_0x3820aa(0x4fc)]:return{..._0x2111dc,'data':{..._0xb91270,'data':_0xb91270[_0x3820aa(0x3b2)]},'cmd':_0x2111dc[_0x3820aa(0x500)]};case _0x37511f[_0x3820aa(0x342)][_0x3820aa(0x36d)]:return{..._0x2111dc,'data':{..._0xb91270,'data':_0xb91270['uniscriptRunEvent']},'cmd':_0x2111dc[_0x3820aa(0x500)]};default:return _0x2111dc;}}default:return _0x2111dc;}}function _0x2cf58b(_0x399948){const _0x463be6=_0x1453e5;switch(_0x399948[_0x463be6(0x500)]){case _0x1b8fab[_0x463be6(0x506)]['HEARTBEAT']:case _0x1b8fab[_0x463be6(0x506)][_0x463be6(0x2f8)]:return JSON['stringify']({'cmd':_0x399948[_0x463be6(0x500)],'routeKey':_0x399948['routeKey']});case _0x1b8fab[_0x463be6(0x506)][_0x463be6(0x3cf)]:{let _0x53ce55;switch(_0x399948['data']['eventID']){case _0x37511f[_0x463be6(0x342)][_0x463be6(0x502)]:_0x53ce55={'eventID':_0x37511f[_0x463be6(0x342)][_0x463be6(0x502)],'updateCursorEvent':_0x399948[_0x463be6(0x268)][_0x463be6(0x268)]};break;case _0x37511f[_0x463be6(0x342)][_0x463be6(0x366)]:_0x53ce55={'eventID':_0x37511f[_0x463be6(0x342)]['USERS_LEAVE'],'leaveEvent':_0x399948[_0x463be6(0x268)][_0x463be6(0x268)]};break;case _0x37511f[_0x463be6(0x342)][_0x463be6(0x447)]:_0x53ce55={'eventID':_0x37511f[_0x463be6(0x342)][_0x463be6(0x447)],'joinEvent':_0x399948[_0x463be6(0x268)][_0x463be6(0x268)]};break;case _0x37511f[_0x463be6(0x342)][_0x463be6(0x3ea)]:_0x53ce55={'eventID':_0x37511f[_0x463be6(0x342)][_0x463be6(0x3ea)],'liveShareNewHost':_0x399948[_0x463be6(0x268)]['data']};break;case _0x37511f[_0x463be6(0x342)][_0x463be6(0x32f)]:_0x53ce55={'eventID':_0x37511f[_0x463be6(0x342)][_0x463be6(0x32f)],'liveShareOperation':_0x399948[_0x463be6(0x268)]['data']};break;case _0x37511f[_0x463be6(0x342)][_0x463be6(0x4fa)]:_0x53ce55={'eventID':_0x37511f['CollaborationEvent']['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x399948['data'][_0x463be6(0x268)]};break;case _0x37511f[_0x463be6(0x342)][_0x463be6(0x2ef)]:_0x53ce55={'eventID':_0x37511f[_0x463be6(0x342)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x399948[_0x463be6(0x268)]['data']};break;case _0x37511f[_0x463be6(0x342)][_0x463be6(0x383)]:_0x53ce55={'eventID':_0x37511f[_0x463be6(0x342)][_0x463be6(0x383)]};break;default:_0x53ce55={'eventID':_0x399948[_0x463be6(0x268)][_0x463be6(0x2b4)]};}return JSON[_0x463be6(0x31e)]({'cmd':_0x399948['cmd'],'routeKey':_0x399948[_0x463be6(0x234)],'collaMsg':_0x53ce55});}case _0x1b8fab['CombCmd'][_0x463be6(0x470)]:return JSON[_0x463be6(0x31e)]({'cmd':_0x399948[_0x463be6(0x500)],'routeKey':_0x399948['routeKey'],'joinReq':_0x399948[_0x463be6(0x268)]});case _0x1b8fab['CombCmd'][_0x463be6(0x3e6)]:return JSON[_0x463be6(0x31e)]({'cmd':_0x399948['cmd'],'routeKey':_0x399948[_0x463be6(0x234)],'leaveReq':_0x399948[_0x463be6(0x268)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}let _0x20db02=(0x0,_0x15f21c[_0x1453e5(0x2d3)])(_0x1453e5(0x22e));function _0x71d41f(_0x335d5c,_0x54b27a,_0x35aee4){const _0xb1ffdd=_0x1453e5;return _0x335d5c+'/'+_0x54b27a+_0xb1ffdd(0x4fe)+_0x35aee4+'/new_changes';}let _0x2d2413=class extends _0x15f21c[_0x1453e5(0x428)]{constructor(_0x659868,_0x3aeafb,_0x37b2c0,_0x1cc0e3,_0x10d9b8){const _0x3fface=_0x1453e5;super(),this[_0x3fface(0x3df)]=_0x659868,this[_0x3fface(0x205)]=_0x3aeafb,this[_0x3fface(0x22d)]=_0x37b2c0,this[_0x3fface(0x2ec)]=_0x1cc0e3,this[_0x3fface(0x49c)]=_0x10d9b8;}[_0x1453e5(0x4f0)](_0x26ce3e){const _0x49c306=_0x1453e5;let _0x9dc0fe=this[_0x49c306(0x3df)][_0x49c306(0x405)](_0x3c5332[_0x49c306(0x3a2)]);if(!_0x9dc0fe)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x7c9d65=_0x9dc0fe[_0x49c306(0x32e)](_0x26ce3e);if(!_0x7c9d65)throw Error(_0x49c306(0x1f6));let _0x3f9347=new _0x15f21c[(_0x49c306(0x204))](),_0x1fbd0e=new _0x57cf55[(_0x49c306(0x50f))]();_0x3f9347['add'](_0x7c9d65['close$'][_0x49c306(0x264)](_0x14098a=>_0x1fbd0e[_0x49c306(0x492)](_0x14098a))),_0x3f9347[_0x49c306(0x449)]((0x0,_0x15f21c[_0x49c306(0x39b)])(()=>_0x1fbd0e['complete']()));let _0x423d7a=new _0x57cf55[(_0x49c306(0x50f))]();_0x3f9347['add'](_0x7c9d65[_0x49c306(0x3b8)][_0x49c306(0x264)](_0x137b78=>_0x423d7a[_0x49c306(0x492)](_0x137b78))),_0x3f9347['add']((0x0,_0x15f21c[_0x49c306(0x39b)])(()=>_0x423d7a[_0x49c306(0x1f2)]()));let _0x1e3024=new _0x57cf55[(_0x49c306(0x50f))]();_0x3f9347[_0x49c306(0x449)](_0x7c9d65[_0x49c306(0x213)][_0x49c306(0x264)](_0x419d6c=>{let _0x14ce8e=_0x12e05c(_0x419d6c);_0x1e3024['next'](_0x14ce8e);})),_0x3f9347['add']((0x0,_0x15f21c[_0x49c306(0x39b)])(()=>_0x1e3024[_0x49c306(0x1f2)]()));let _0x4435be,_0x2f2260=()=>{const _0x338c84=_0x49c306;_0x423d7a['next'](new Event(_0x338c84(0x310))),_0x1fbd0e[_0x338c84(0x492)](new Event(_0x338c84(0x310))),_0x4435be[_0x338c84(0x425)]();};return _0x4435be={'memberID':'','close$':_0x1fbd0e[_0x49c306(0x35d)](),'error$':_0x423d7a[_0x49c306(0x35d)](),'open$':_0x7c9d65[_0x49c306(0x4f6)],'message$':_0x1e3024[_0x49c306(0x35d)](),'send':_0x2a6012=>{const _0x106cee=_0x49c306;if(_0x2a6012[_0x106cee(0x500)]===_0x1b8fab[_0x106cee(0x506)]['INGEST']){if(_0x2a6012[_0x106cee(0x268)]['eventID']===_0x37511f[_0x106cee(0x342)][_0x106cee(0x24f)]){this[_0x106cee(0x33f)](_0x4435be,_0x2a6012[_0x106cee(0x268)])['catch'](_0x42d7d8=>{const _0x194b52=_0x106cee;this[_0x194b52(0x2ec)][_0x194b52(0x357)](_0x42d7d8),_0x2f2260();});return;}if(_0x2a6012[_0x106cee(0x268)][_0x106cee(0x2b4)]===_0x37511f[_0x106cee(0x342)][_0x106cee(0x337)]){let _0xe51382=_0x2a6012['data'];this[_0x106cee(0x23d)](_0xe51382)['then'](_0x3398ed=>{const _0x415ec6=_0x106cee;_0x1e3024[_0x415ec6(0x492)]({'cmd':_0x1b8fab[_0x415ec6(0x506)][_0x415ec6(0x4b6)],'code':_0x1b8fab['CmdRspCode']['OK'],'routeKey':_0xe51382['data'][_0x415ec6(0x47f)],'routeType':'','data':{'eventID':_0x37511f['CollaborationEvent'][_0x415ec6(0x429)],'data':{'changesets':_0x3398ed}}});})[_0x106cee(0x38b)](_0x981527=>{const _0x369bb7=_0x106cee;this[_0x369bb7(0x2ec)][_0x369bb7(0x357)](_0x981527),_0x2f2260();});return;}}_0x7c9d65[_0x106cee(0x344)](_0x2cf58b(_0x2a6012));},'close':()=>{const _0x1424c2=_0x49c306;_0x7c9d65[_0x1424c2(0x425)](),_0x3f9347[_0x1424c2(0x493)]();}},_0x4435be;}async[_0x1453e5(0x33f)](_0x4ca2d9,_0x34d2f4){const _0x5bb05b=_0x1453e5;var _0x51e5a6;let {unitType:_0x4862ca,unitID:_0x134b2d,changeset:_0x19e27f}=_0x34d2f4[_0x5bb05b(0x268)],_0x49867d={'unitID':_0x134b2d,'memberID':_0x4ca2d9[_0x5bb05b(0x4ce)],'type':_0x4862ca,'changeset':(0x0,_0x37511f['parseChangesetToProtocol'])(_0x19e27f)},_0x3b09ef=this[_0x5bb05b(0x22d)]['getConfig'](_0x4ffd90),_0x5e3f1b=_0x71d41f((_0x51e5a6=_0x3b09ef==null?void 0x0:_0x3b09ef[_0x5bb05b(0x2e9)])==null?_0x5bb05b(0x28f):_0x51e5a6,_0x4862ca,_0x134b2d);try{await this[_0x5bb05b(0x205)][_0x5bb05b(0x4dc)](_0x5e3f1b,{'body':_0x49867d});}catch(_0x289b84){throw this[_0x5bb05b(0x2ec)][_0x5bb05b(0x357)](_0x5bb05b(0x4e1),_0x5bb05b(0x2eb)),_0x289b84;}}async[_0x1453e5(0x23d)](_0x59d1e6){const _0x3725a7=_0x1453e5;let {unitID:_0x36cd2d,from:_0x320cc3,to:_0x43c3ce,unitType:_0x1ff41f}=_0x59d1e6[_0x3725a7(0x268)];return(await this[_0x3725a7(0x49c)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x36cd2d,'type':_0x1ff41f,'from':_0x320cc3,'to':_0x43c3ce}))['changesets']['map'](_0x26dfe1=>((_0x26dfe1[_0x3725a7(0x3d5)]===null||_0x26dfe1[_0x3725a7(0x3d5)]===void 0x0)&&(_0x26dfe1[_0x3725a7(0x3d5)]=[]),_0x26dfe1));}};_0x2d2413=_0x23bcbc([_0x20187e(0x0,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x15f21c[_0x1453e5(0x411)])),_0x20187e(0x1,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x3c5332['HTTPService'])),_0x20187e(0x2,_0x15f21c[_0x1453e5(0x488)]),_0x20187e(0x3,_0x15f21c[_0x1453e5(0x3fc)]),_0x20187e(0x4,_0x37511f[_0x1453e5(0x3b5)])],_0x2d2413);let _0x2bd27e=class extends _0x15f21c[_0x1453e5(0x428)]{get[_0x1453e5(0x23f)](){const _0x539b6c=_0x1453e5;return this[_0x539b6c(0x480)][_0x539b6c(0x459)]();}constructor(_0x2c1a1d,_0x2a05e9,_0x42370e,_0x3982d6,_0x44d853,_0x24f5cf){const _0x15b655=_0x1453e5;super(),this[_0x15b655(0x3df)]=_0x2c1a1d,this[_0x15b655(0x2ec)]=_0x2a05e9,this[_0x15b655(0x22d)]=_0x42370e,this['_socketService']=_0x3982d6,this[_0x15b655(0x3a7)]=_0x44d853,this[_0x15b655(0x3ec)]=_0x24f5cf,_0x14249f(this,'_socket$',new _0x57cf55[(_0x15b655(0x442))](void 0x0)),_0x14249f(this,_0x15b655(0x254),this['_socket$']['asObservable']()),_0x14249f(this,_0x15b655(0x393),null),_0x14249f(this,'_sessions',new Map()),_0x14249f(this,_0x15b655(0x312),new _0x57cf55[(_0x15b655(0x442))](0x0)),_0x14249f(this,_0x15b655(0x4d8),this['_status$'][_0x15b655(0x35d)]()),_0x14249f(this,_0x15b655(0x406),!0x1),_0x14249f(this,_0x15b655(0x1f3),void 0x0),_0x14249f(this,_0x15b655(0x401),0x0),_0x14249f(this,'_socketMessageSubscription',null),_0x14249f(this,_0x15b655(0x4aa),void 0x0),_0x14249f(this,_0x15b655(0x243),void 0x0),this[_0x15b655(0x232)]();}[_0x1453e5(0x232)](){const _0xcb0cab=_0x1453e5;this[_0xcb0cab(0x3ec)]&&this['disposeWithMe'](this[_0xcb0cab(0x3ec)][_0xcb0cab(0x3ba)][_0xcb0cab(0x264)](_0x5939ae=>{const _0x1d9187=_0xcb0cab;_0x5939ae&&!this[_0x1d9187(0x23f)]&&this[_0x1d9187(0x3d1)](),_0x5939ae||this[_0x1d9187(0x388)]();}));}['dispose'](){const _0x35a2de=_0x1453e5;var _0x5de43c;super['dispose'](),(_0x5de43c=this['_socketMessageSubscription'])==null||_0x5de43c[_0x35a2de(0x347)](),this['_socketMessageSubscription']=null,this[_0x35a2de(0x44b)](),this[_0x35a2de(0x363)](),this[_0x35a2de(0x349)](),this['_sessions']['forEach'](_0x547cdc=>_0x547cdc[_0x35a2de(0x493)]()),this[_0x35a2de(0x4a1)][_0x35a2de(0x4a5)](),this[_0x35a2de(0x312)][_0x35a2de(0x1f2)]();}async[_0x1453e5(0x25f)](_0x3e0991){const _0x40e5b2=_0x1453e5;if(this[_0x40e5b2(0x4a1)][_0x40e5b2(0x508)](_0x3e0991))return this[_0x40e5b2(0x4a1)][_0x40e5b2(0x405)](_0x3e0991);this[_0x40e5b2(0x4d4)]();let _0x125678=this[_0x40e5b2(0x3df)]['createInstance'](_0xf4dd52,_0x3e0991,this[_0x40e5b2(0x480)][_0x40e5b2(0x35d)]());return this[_0x40e5b2(0x4a1)][_0x40e5b2(0x37f)](_0x3e0991,_0x125678),_0x125678;}[_0x1453e5(0x41a)](_0x3568cd){const _0x4cd746=_0x1453e5;let _0x39ba79=this['_sessions']['get'](_0x3568cd);if(_0x39ba79&&(this[_0x4cd746(0x4a1)]['delete'](_0x3568cd),_0x39ba79[_0x4cd746(0x425)]()),!this[_0x4cd746(0x4a1)]['size']){var _0x20b180;(_0x20b180=this['_socket'])==null||_0x20b180[_0x4cd746(0x425)]();}}['reconnect'](){const _0x11f49c=_0x1453e5;this[_0x11f49c(0x401)]=0x0,this['_clearRetryConnectingTimer'](),this['_tryReconnect']();}[_0x1453e5(0x44b)](){const _0x2d231f=_0x1453e5;this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x2d231f(0x1f3)]),this['_retryConnectingTimer']=null);}async['_createSocket'](){const _0x412bb4=_0x1453e5;var _0x4e3573;let _0x118a6f=this['_configService'][_0x412bb4(0x3dc)](_0x4ffd90),_0x48e35d=(_0x4e3573=_0x118a6f==null?void 0x0:_0x118a6f[_0x412bb4(0x50d)])==null?_0xe2144e:_0x4e3573,_0x3b418b=await this[_0x412bb4(0x49b)]['createSocket'](_0x48e35d);return this[_0x412bb4(0x393)]=_0x3b418b,_0x3b418b;}async[_0x1453e5(0x4d4)](){const _0x440a7e=_0x1453e5;try{var _0x42439b,_0x568326;let _0x5696cd=(_0x42439b=(_0x568326=this[_0x440a7e(0x23f)])==null?this[_0x440a7e(0x393)]:_0x568326)==null?await this[_0x440a7e(0x360)]():_0x42439b;if(_0x5696cd){var _0x1f8e34;let _0x26d0d2=_0x5696cd[_0x440a7e(0x344)];_0x5696cd[_0x440a7e(0x344)]=_0x34daae=>(_0x34daae[_0x440a7e(0x500)]!==_0x1b8fab[_0x440a7e(0x506)]['LEAVE']&&this[_0x440a7e(0x3f0)](),_0x26d0d2[_0x440a7e(0x2c0)](_0x5696cd,[_0x34daae])),(_0x1f8e34=this['_socketMessageSubscription'])==null||_0x1f8e34[_0x440a7e(0x347)](),this[_0x440a7e(0x413)]=null,this[_0x440a7e(0x413)]=_0x5696cd[_0x440a7e(0x213)][_0x440a7e(0x264)](_0x545218=>this[_0x440a7e(0x368)](_0x5696cd,_0x545218)),_0x5696cd[_0x440a7e(0x3b8)][_0x440a7e(0x469)]((0x0,_0x19fb73[_0x440a7e(0x3ee)])(0x1))[_0x440a7e(0x264)](_0x1ebd59=>this[_0x440a7e(0x2ec)][_0x440a7e(0x357)]('[CollaborationSessionService]:\x20socket\x20error',_0x1ebd59)),_0x5696cd[_0x440a7e(0x4f6)][_0x440a7e(0x469)]((0x0,_0x19fb73[_0x440a7e(0x3ee)])(0x1))[_0x440a7e(0x264)](()=>{this['_onConnectionOpen'](_0x5696cd);}),_0x5696cd[_0x440a7e(0x4be)]['pipe']((0x0,_0x19fb73['take'])(0x1))[_0x440a7e(0x264)](_0x3b74cb=>{const _0x4ae31f=_0x440a7e;this['_logService']['debug'](_0x4ae31f(0x4c2),_0x4ae31f(0x2c4),_0x3b74cb),this[_0x4ae31f(0x2db)]();});}}catch(_0x28cca9){this[_0x440a7e(0x2ec)]['error'](_0x28cca9),this[_0x440a7e(0x2db)]();}}[_0x1453e5(0x42e)](_0x415eb2){const _0x2018b5=_0x1453e5;this['_logService'][_0x2018b5(0x275)](_0x2018b5(0x4c2),_0x2018b5(0x3e4)),_0x415eb2['send']({'cmd':_0x1b8fab[_0x2018b5(0x506)][_0x2018b5(0x2f8)]}),this[_0x2018b5(0x3f0)]();}[_0x1453e5(0x388)](){const _0x4f958c=_0x1453e5;this[_0x4f958c(0x406)]=!0x1,this[_0x4f958c(0x393)]=null,this['_status$'][_0x4f958c(0x492)](0x2),this['_socket$']['next'](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer']();}[_0x1453e5(0x2db)](){const _0x251999=_0x1453e5;var _0x3c4029;this[_0x251999(0x388)](),this[_0x251999(0x401)]<((_0x3c4029=this[_0x251999(0x22d)][_0x251999(0x3dc)](_0x251999(0x351)))==null?0x3:_0x3c4029)?(this[_0x251999(0x3a7)]['emitEvent']({'id':_0x251999(0x25a)}),this['_tryReconnect']()):this[_0x251999(0x3a7)][_0x251999(0x400)]({'id':_0x251999(0x479)});}[_0x1453e5(0x3b7)](){const _0x18dd3d=_0x1453e5;var _0x60831;let _0x3a225f=this['_retryCount'],_0x50cacf=this[_0x18dd3d(0x22d)][_0x18dd3d(0x3dc)](_0x4ffd90),_0x2bdc69=_0x3a225f===0x0?0x0:((_0x60831=_0x50cacf==null?void 0x0:_0x50cacf[_0x18dd3d(0x273)])==null?0x4e20:_0x60831)*0x2**_0x3a225f;this[_0x18dd3d(0x1f3)]=setTimeout(()=>{const _0x1a3f5a=_0x18dd3d;clearTimeout(this[_0x1a3f5a(0x1f3)]),this['_retryConnectingTimer']=null,this['_tryEnsureSocket']();},_0x2bdc69),this[_0x18dd3d(0x401)]+=0x1;}[_0x1453e5(0x368)](_0x46d818,_0xd540bf){const _0x55af3e=_0x1453e5;let {cmd:_0x5d92b6}=_0xd540bf;_0x5d92b6===_0x1b8fab['CombCmd'][_0x55af3e(0x2f8)]&&!this[_0x55af3e(0x406)]&&(_0x46d818[_0x55af3e(0x4ce)]=_0xd540bf[_0x55af3e(0x268)]['memberID'],this[_0x55af3e(0x480)][_0x55af3e(0x492)](_0x46d818),this[_0x55af3e(0x312)][_0x55af3e(0x492)](0x3),this['_socketReady']=!0x0,this[_0x55af3e(0x393)]=null),_0x5d92b6===_0x1b8fab['CombCmd'][_0x55af3e(0x478)]&&this[_0x55af3e(0x363)](),this['_rescheduleHeartbeat']();}[_0x1453e5(0x3f0)](){const _0xbd4ccb=_0x1453e5;var _0x235cf8;this[_0xbd4ccb(0x349)](),this['_sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](),(_0x235cf8=this['_configService'][_0xbd4ccb(0x3dc)](_0xbd4ccb(0x38f)))==null?0x7530:_0x235cf8);}[_0x1453e5(0x227)](){const _0x16e1fb=_0x1453e5;this[_0x16e1fb(0x23f)][_0x16e1fb(0x344)]({'cmd':_0x1b8fab[_0x16e1fb(0x506)][_0x16e1fb(0x478)]}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x223659=_0x1453e5;var _0x2f7d05;this[_0x223659(0x243)]=setTimeout(()=>this[_0x223659(0x2db)](),(_0x2f7d05=this[_0x223659(0x22d)][_0x223659(0x3dc)]('HEARTBEAT_TIMEOUT'))==null?_0x1f5766:_0x2f7d05);}['_clearHeartbeatTimer'](){const _0x580562=_0x1453e5;this[_0x580562(0x4aa)]!=null&&(clearTimeout(this[_0x580562(0x4aa)]),this[_0x580562(0x4aa)]=null);}[_0x1453e5(0x363)](){const _0x532bed=_0x1453e5;this[_0x532bed(0x243)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x532bed(0x243)]=null);}};_0x2bd27e=_0x23bcbc([_0x20187e(0x0,(0x0,_0x15f21c['Inject'])(_0x15f21c[_0x1453e5(0x411)])),_0x20187e(0x1,_0x15f21c['ILogService']),_0x20187e(0x2,_0x15f21c[_0x1453e5(0x488)]),_0x20187e(0x3,_0x20db02),_0x20187e(0x4,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x44a5ef)),_0x20187e(0x5,(0x0,_0x15f21c['Optional'])(_0x49ddf5))],_0x2bd27e);let _0x3c00a4=class extends _0x15f21c['RxDisposable']{constructor(_0xaf5727,_0x19d53c,_0x439369,_0xa0e6af){const _0xe23c82=_0x1453e5;var _0x2f77c4;super(),this[_0xe23c82(0x3df)]=_0xaf5727,this['_collabSessionService']=_0x19d53c,this[_0xe23c82(0x22d)]=_0x439369,this['_univerInstanceService']=_0xa0e6af,_0x14249f(this,_0xe23c82(0x352),new Map()),_0x14249f(this,_0xe23c82(0x26c),new _0x57cf55[(_0xe23c82(0x50f))]()),_0x14249f(this,_0xe23c82(0x2d2),this[_0xe23c82(0x26c)][_0xe23c82(0x35d)]()),((_0x2f77c4=this[_0xe23c82(0x22d)]['getConfig'](_0xe23c82(0x458)))==null?void 0x0:_0x2f77c4[_0xe23c82(0x3fe)])!==!0x1&&this['_init']();}[_0x1453e5(0x493)](){const _0x275197=_0x1453e5;super['dispose'](),this['_entities'][_0x275197(0x4a3)](_0x133c8c=>_0x133c8c[_0x275197(0x493)]()),this[_0x275197(0x352)][_0x275197(0x4a5)]();}[_0x1453e5(0x491)](_0x55bcf9){const _0x2485cb=_0x1453e5;var _0x516ae;return(_0x516ae=this['_entities'][_0x2485cb(0x405)](_0x55bcf9))==null?null:_0x516ae;}[_0x1453e5(0x299)](_0x5e5a28){const _0x2a6bfc=_0x1453e5;let _0x293d78=this['getCollabEntity'](_0x5e5a28);return _0x293d78?(0x0,_0x57cf55['of'])(_0x293d78):this[_0x2a6bfc(0x26c)][_0x2a6bfc(0x469)]((0x0,_0x19fb73[_0x2a6bfc(0x2ba)])(_0x129abb=>_0x129abb[_0x2a6bfc(0x47f)]===_0x5e5a28));}[_0x1453e5(0x448)](_0x3263bc){const _0xb46ee5=_0x1453e5;return(0x0,_0x57cf55[_0xb46ee5(0x30d)])(this[_0xb46ee5(0x299)](_0x3263bc)['pipe']((0x0,_0x19fb73[_0xb46ee5(0x27b)])(()=>void 0x0)));}[_0x1453e5(0x4e0)](){const _0x5d0664=_0x1453e5;this['_univerInstanceService'][_0x5d0664(0x4ba)](_0x15f21c[_0x5d0664(0x3b3)]['UNIVER_SHEET'])[_0x5d0664(0x469)]((0x0,_0x57cf55['takeUntil'])(this[_0x5d0664(0x46d)]),(0x0,_0x19fb73[_0x5d0664(0x21c)])(0x10))[_0x5d0664(0x264)](async _0x3b2e59=>{const _0x373e81=_0x5d0664;let _0x419ccf=_0x3b2e59[_0x373e81(0x36b)]['getUnitId'](),_0x748103=await this[_0x373e81(0x4d6)](_0x419ccf,_0x15f21c['UniverInstanceType']['UNIVER_SHEET']);this[_0x373e81(0x352)]['set'](_0x419ccf,_0x748103);}),this[_0x5d0664(0x3c2)]['getTypeOfUnitAdded$'](_0x15f21c['UniverInstanceType'][_0x5d0664(0x301)])[_0x5d0664(0x469)]((0x0,_0x57cf55[_0x5d0664(0x25c)])(this[_0x5d0664(0x46d)]),(0x0,_0x19fb73[_0x5d0664(0x21c)])(0x10))['pipe']((0x0,_0x19fb73[_0x5d0664(0x2ba)])(_0x226468=>!_0x226468[_0x5d0664(0x36b)][_0x5d0664(0x49d)]()[_0x5d0664(0x3d0)]('__')))['subscribe'](async _0xf190c0=>{const _0x6808c2=_0x5d0664;let _0x249a91=_0xf190c0[_0x6808c2(0x36b)]['getUnitId'](),_0xee7c74=await this[_0x6808c2(0x4d6)](_0x249a91,_0x15f21c[_0x6808c2(0x3b3)][_0x6808c2(0x301)]);this[_0x6808c2(0x352)][_0x6808c2(0x37f)](_0x249a91,_0xee7c74);}),(0x0,_0x57cf55[_0x5d0664(0x2ed)])(this[_0x5d0664(0x3c2)][_0x5d0664(0x26d)](_0x15f21c[_0x5d0664(0x3b3)][_0x5d0664(0x45a)]),this['_univerInstanceService'][_0x5d0664(0x26d)](_0x15f21c[_0x5d0664(0x3b3)]['UNIVER_DOC']))[_0x5d0664(0x469)]((0x0,_0x57cf55['takeUntil'])(this[_0x5d0664(0x46d)]))[_0x5d0664(0x264)](_0x463021=>{const _0x33d021=_0x5d0664;let _0x23ccc2=_0x463021[_0x33d021(0x49d)](),_0x2e574d=this[_0x33d021(0x352)][_0x33d021(0x405)](_0x23ccc2);_0x2e574d&&(_0x2e574d[_0x33d021(0x493)](),this['_entities'][_0x33d021(0x22a)](_0x23ccc2));});}async[_0x1453e5(0x4d6)](_0x344539,_0x4e0678){const _0x45403d=_0x1453e5;let _0x479625=await this[_0x45403d(0x367)][_0x45403d(0x25f)](_0x344539),_0x340c52=this[_0x45403d(0x3df)][_0x45403d(0x48b)](this[_0x45403d(0x3d3)](_0x4e0678),_0x344539,_0x4e0678,_0x479625);return await _0x340c52[_0x45403d(0x3a3)](),this[_0x45403d(0x26c)][_0x45403d(0x492)](_0x340c52),_0x340c52;}[_0x1453e5(0x3d3)](_0x14884c){const _0x3dab6f=_0x1453e5;switch(_0x14884c){case _0x15f21c[_0x3dab6f(0x3b3)]['UNIVER_DOC']:return _0x3313c8;case _0x15f21c['UniverInstanceType'][_0x3dab6f(0x45a)]:return _0x5a3f3c;default:throw Error(_0x3dab6f(0x35f)+_0x14884c);}}};_0x3c00a4=_0x23bcbc([_0x20187e(0x0,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x15f21c[_0x1453e5(0x411)])),_0x20187e(0x1,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x2bd27e)),_0x20187e(0x2,_0x15f21c[_0x1453e5(0x488)]),_0x20187e(0x3,_0x15f21c[_0x1453e5(0x22c)])],_0x3c00a4);var _0x5dfe46='@univerjs-pro/collaboration-client',_0x5e44b1=_0x1453e5(0x38e);let _0x2ec451=class extends _0x15f21c[_0x1453e5(0x428)]{constructor(_0x55faba,_0x326dba){const _0x418ea2=_0x1453e5;super(),this[_0x418ea2(0x3c2)]=_0x55faba,this['_configService']=_0x326dba,this[_0x418ea2(0x4e0)]();}[_0x1453e5(0x4e0)](){const _0x24d39e=_0x1453e5;this[_0x24d39e(0x2b9)](this[_0x24d39e(0x3c2)][_0x24d39e(0x2ee)][_0x24d39e(0x264)](()=>{const _0x42acdd=_0x24d39e;var _0x2b8aba;let _0x53f89d=this[_0x42acdd(0x3c2)][_0x42acdd(0x32a)](),_0xb85328=(_0x2b8aba=this['_configService'][_0x42acdd(0x3dc)]('DEFAULT_FILE_NAME'))==null?'Univer':_0x2b8aba;_0x53f89d instanceof _0x15f21c[_0x42acdd(0x494)]&&(_0xb85328=_0x53f89d[_0x42acdd(0x3c1)]),document[_0x42acdd(0x315)]=_0xb85328;}));}};_0x2ec451=_0x23bcbc([_0x20187e(0x0,_0x15f21c[_0x1453e5(0x22c)]),_0x20187e(0x1,_0x15f21c[_0x1453e5(0x488)])],_0x2ec451);let _0x246b1c=class{constructor(_0x22e412,_0x1fad73,_0x18a506){const _0xd73d71=_0x1453e5;this[_0xd73d71(0x22d)]=_0x22e412,this[_0xd73d71(0x205)]=_0x1fad73,this[_0xd73d71(0x327)]=_0x18a506,this[_0xd73d71(0x3a3)]();}[_0x1453e5(0x3a3)](){const _0x4004bb=_0x1453e5;this[_0x4004bb(0x205)][_0x4004bb(0x334)]({'priority':0x1,'interceptor':(_0x110a9b,_0x16f589)=>_0x16f589(_0x110a9b)[_0x4004bb(0x469)]((0x0,_0x57cf55[_0x4004bb(0x3e0)])(async _0x57ae21=>{const _0x33c186=_0x4004bb;let _0x4d24e6=_0x57ae21;if(_0x4d24e6[_0x33c186(0x29a)]===0x191){if(typeof window>'u')throw Error(_0x33c186(0x336));if(window[_0x33c186(0x26b)](this[_0x33c186(0x327)]['t'](_0x33c186(0x295)))){let _0x2d03b4=window['encodeURIComponent'](window[_0x33c186(0x207)]['href']);window['location'][_0x33c186(0x2b0)]=this[_0x33c186(0x45b)]()+'?url='+_0x2d03b4;}}return _0x4d24e6;}))});}[_0x1453e5(0x45b)](){const _0x3934c6=_0x1453e5;var _0x4da016;let _0x208a41=this[_0x3934c6(0x22d)][_0x3934c6(0x3dc)](_0x4ffd90);return(_0x4da016=_0x208a41==null?void 0x0:_0x208a41['loginUrlKey'])==null?_0x3934c6(0x3e5):_0x4da016;}};_0x246b1c=_0x23bcbc([_0x20187e(0x0,_0x15f21c['IConfigService']),_0x20187e(0x1,(0x0,_0x15f21c['Inject'])(_0x3c5332[_0x1453e5(0x222)])),_0x20187e(0x2,(0x0,_0x15f21c['Inject'])(_0x15f21c[_0x1453e5(0x3d2)]))],_0x246b1c);let _0x8459f8=class extends _0x15f21c[_0x1453e5(0x428)]{constructor(_0x48da9f,_0x3881a3){const _0x91825d=_0x1453e5;super(),this['_HTTPService']=_0x48da9f,this[_0x91825d(0x22d)]=_0x3881a3,_0x14249f(this,_0x91825d(0x3ed),!0x1),this[_0x91825d(0x4b7)]();}[_0x1453e5(0x4b7)](){const _0x48cb95=_0x1453e5;let _0x2fa09e=this;this[_0x48cb95(0x2b9)](this[_0x48cb95(0x291)][_0x48cb95(0x334)]({'priority':0x3e7,'interceptor':(0x0,_0x3c5332[_0x48cb95(0x39d)])({'isMatch'(_0x38628b){const _0x5cf604=_0x48cb95;var _0x45b7fe;if(_0x38628b[_0x5cf604(0x2be)]===_0x5cf604(0x290)&&(_0x45b7fe=_0x38628b[_0x5cf604(0x434)])!=null&&_0x45b7fe[_0x5cf604(0x4e9)]){let {objectID:_0x414339,objectType:_0x3c280a}=_0x38628b[_0x5cf604(0x434)][_0x5cf604(0x4e9)]||{};if(!_0x414339||_0x3c280a===void 0x0)return!0x1;let _0x3da94e=_0x2fa09e['_getAPIPrefixPath']()+'/'+_0x3c280a+_0x5cf604(0x435)+_0x414339+'/allowed';if(_0x38628b[_0x5cf604(0x409)]===_0x3da94e)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x365022){const _0x188883=_0x48cb95;var _0x426704;return(_0x426704=_0x365022[_0x188883(0x434)])==null?void 0x0:_0x426704[_0x188883(0x4e9)];},'mergeParamsToRequest'(_0x3d9331,_0x10b77d){const _0x592dfd=_0x48cb95;let _0x1a6899=_0x2fa09e[_0x592dfd(0x3fb)]()+'/-/object/-/batch_allowed',_0x3de75a=_0x3d9331[_0x592dfd(0x483)]((_0x1ae330,_0x3f23a7)=>{const _0x4752ab=_0x592dfd;let {unitID:_0x299d82,objectID:_0x129a8d,objectType:_0x240714,actions:_0x4e8ce0}=_0x3f23a7;return _0x1ae330[_0x299d82]||(_0x1ae330[_0x299d82]={}),_0x1ae330[_0x299d82][_0x129a8d]||(_0x1ae330[_0x299d82][_0x129a8d]={'objectID':_0x129a8d,'objectType':_0x240714,'actions':[]}),_0x1ae330[_0x299d82][_0x129a8d][_0x4752ab(0x3f3)][_0x4752ab(0x4d0)](..._0x4e8ce0),_0x1ae330;},{}),_0x4e10dd=[];for(let _0x46a268 in _0x3de75a)for(let _0x33a42c in _0x3de75a[_0x46a268]){let {actions:_0x312592,objectType:_0x237413}=_0x3de75a[_0x46a268][_0x33a42c],_0x79305b=[...new Set(_0x312592)];_0x4e10dd[_0x592dfd(0x4d0)]({'unitID':_0x46a268,'objectID':_0x33a42c,'objectType':_0x237413,'actions':_0x79305b});}return new _0x3c5332['HTTPRequest'](_0x592dfd(0x290),_0x1a6899,{'headers':_0x10b77d['headers'],'withCredentials':_0x10b77d[_0x592dfd(0x340)],'responseType':_0x10b77d[_0x592dfd(0x2f2)],'body':{'requests':_0x4e10dd}});}},{'distributeResult'(_0x1a73ef,_0x23c9c9){let {objectActions:_0x3d4160}=_0x1a73ef;return _0x23c9c9['map'](_0x198cc7=>{const _0x3e5928=_0x2103;let {unitID:_0x32b3cc,objectID:_0x38219a,actions:_0x4b1516}=_0x198cc7,_0xe87cab=_0x3d4160[_0x3e5928(0x263)](_0x353a0e=>_0x353a0e[_0x3e5928(0x47f)]===_0x32b3cc&&_0x353a0e[_0x3e5928(0x216)]===_0x38219a);return{'config':_0x198cc7,'result':{'actions':_0x4b1516['map'](_0x556ffd=>_0xe87cab==null?void 0x0:_0xe87cab[_0x3e5928(0x3f3)]['find'](_0x4af2b1=>_0x4af2b1[_0x3e5928(0x2c6)]===_0x556ffd))[_0x3e5928(0x2ba)](_0x2c021d=>!!_0x2c021d),'error':_0x1a73ef['error']}};});}})}));}[_0x1453e5(0x3fb)](){const _0x28e1bc=_0x1453e5;var _0x2ee807;let _0x40f953=this[_0x28e1bc(0x22d)]['getConfig'](_0x4ffd90);return(_0x2ee807=_0x40f953==null?void 0x0:_0x40f953[_0x28e1bc(0x354)])==null?_0x28e1bc(0x3ac):_0x2ee807;}async['create'](_0x2edd89){const _0x1fbd6b=_0x1453e5;let _0x19b1d1=this['_getAPIPrefixPath']()+'/'+_0x2edd89[_0x1fbd6b(0x25e)]+_0x1fbd6b(0x3c6);return(await this[_0x1fbd6b(0x291)][_0x1fbd6b(0x4dc)](_0x19b1d1,{'body':_0x2edd89}))[_0x1fbd6b(0x4e9)][_0x1fbd6b(0x216)]||'';}async['list'](_0x2bc6b0){const _0x213b11=_0x1453e5;let _0x2497aa=this[_0x213b11(0x3fb)]()+_0x213b11(0x33a);return(await this[_0x213b11(0x291)][_0x213b11(0x4dc)](_0x2497aa,{'body':_0x2bc6b0}))[_0x213b11(0x4e9)][_0x213b11(0x481)];}async[_0x1453e5(0x35a)](_0x4515a5){const _0x48c0ea=_0x1453e5;var _0x8dd4dd;let _0xb4060f=this[_0x48c0ea(0x3fb)]()+'/'+_0x4515a5[_0x48c0ea(0x25e)]+_0x48c0ea(0x435)+_0x4515a5[_0x48c0ea(0x216)],_0x34fdd6=await this[_0x48c0ea(0x291)]['put'](_0xb4060f,{'body':_0x4515a5});if((_0x34fdd6==null||(_0x8dd4dd=_0x34fdd6[_0x48c0ea(0x4e9)])==null||(_0x8dd4dd=_0x8dd4dd[_0x48c0ea(0x357)])==null?void 0x0:_0x8dd4dd[_0x48c0ea(0x1fd)])!==0x1)throw Error(_0x48c0ea(0x50e));}async[_0x1453e5(0x211)](_0x31b92d){const _0x432751=_0x1453e5;let _0x24a36f=this[_0x432751(0x3fb)]()+'/'+_0x31b92d[_0x432751(0x25e)]+'/object/'+_0x31b92d[_0x432751(0x216)]+_0x432751(0x2c5);return(await this[_0x432751(0x291)]['post'](_0x24a36f,{'body':_0x31b92d}))[_0x432751(0x4e9)][_0x432751(0x3f3)];}async[_0x1453e5(0x331)](_0x377e65){const _0x2dfb0f=_0x1453e5;let _0x59fc43=this[_0x2dfb0f(0x3fb)]()+_0x2dfb0f(0x3da);return(await this[_0x2dfb0f(0x291)][_0x2dfb0f(0x4dc)](_0x59fc43,{'body':{'requests':_0x377e65}}))['body'][_0x2dfb0f(0x1f9)];}async[_0x1453e5(0x381)](_0x89e780){const _0xcc4627=_0x1453e5;let _0x1a19e9=this[_0xcc4627(0x3fb)]()+'/'+_0x89e780[_0xcc4627(0x25e)]+_0xcc4627(0x4d1),_0x32d902=await this[_0xcc4627(0x291)]['post'](_0x1a19e9,{'body':_0x89e780});return{'roles':_0x32d902['body'][_0xcc4627(0x339)],'actions':_0x32d902['body'][_0xcc4627(0x3f3)]};}async[_0x1453e5(0x3b0)](_0x24530b){const _0x4346be=_0x1453e5;let _0x1d975a=this['_getAPIPrefixPath']()+_0x4346be(0x358);await this[_0x4346be(0x291)][_0x4346be(0x22a)](_0x1d975a,{'params':{'collaboratorID':_0x24530b['collaboratorID'],'objectID':_0x24530b[_0x4346be(0x216)],'unitID':_0x24530b[_0x4346be(0x47f)]}});}async[_0x1453e5(0x50c)](_0x4db9d2){const _0x593b9a=_0x1453e5;let _0x272f9e=this[_0x593b9a(0x3fb)]()+_0x593b9a(0x358);await this['_HTTPService'][_0x593b9a(0x427)](_0x272f9e,{'body':_0x4db9d2});}async[_0x1453e5(0x2ca)](_0x5bd688){const _0x139f92=_0x1453e5;let _0x1d8530=this[_0x139f92(0x3fb)]()+_0x139f92(0x358);await this[_0x139f92(0x291)][_0x139f92(0x4dc)](_0x1d8530,{'body':_0x5bd688});}async[_0x1453e5(0x417)](_0x392bb5){const _0xd0a742=_0x1453e5;var _0x35da77;let _0x33dc27=this[_0xd0a742(0x3fb)]()+_0xd0a742(0x358),_0x39f4a3=await this[_0xd0a742(0x291)][_0xd0a742(0x405)](_0x33dc27,{'params':{'objectID':_0x392bb5[_0xd0a742(0x216)],'unitID':_0x392bb5[_0xd0a742(0x47f)]}});return this[_0xd0a742(0x2e5)]((_0x35da77=_0x39f4a3[_0xd0a742(0x4e9)][_0xd0a742(0x374)])==null?!0x1:_0x35da77),_0x39f4a3[_0xd0a742(0x4e9)]['collaborators'];}async[_0x1453e5(0x3a9)](_0x460751){const _0x19458f=_0x1453e5;let _0x3d1365=this[_0x19458f(0x3fb)]()+_0x19458f(0x358);await this[_0x19458f(0x291)][_0x19458f(0x371)](_0x3d1365,{'body':_0x460751});}['setCfgEnableObjInherit'](_0x40f618){const _0x1c44bd=_0x1453e5;this[_0x1c44bd(0x3ed)]=_0x40f618;}[_0x1453e5(0x28c)](){const _0x4d5711=_0x1453e5;return this[_0x4d5711(0x3ed)];}};_0x8459f8=_0x23bcbc([_0x20187e(0x0,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x3c5332['HTTPService'])),_0x20187e(0x1,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x15f21c[_0x1453e5(0x488)]))],_0x8459f8);function _0x34bf47(_0xfb641f){const _0x58b3bb=_0x1453e5;return _0xfb641f instanceof Uint8Array||ArrayBuffer['isView'](_0xfb641f)&&_0xfb641f[_0x58b3bb(0x3fd)][_0x58b3bb(0x3c1)]===_0x58b3bb(0x41b)&&_0x58b3bb(0x231)in _0xfb641f&&_0xfb641f[_0x58b3bb(0x231)]===0x1;}function _0x5b62a7(_0x50a85e){const _0x203275=_0x1453e5;if(typeof _0x50a85e!='number')throw TypeError(_0x203275(0x454)+typeof _0x50a85e);if(!Number[_0x203275(0x378)](_0x50a85e)||_0x50a85e<0x0)throw RangeError(_0x203275(0x398)+_0x50a85e);}function _0x4b74eb(_0x350aa5,_0x5683e7,_0x2d121a=''){const _0x5adaf7=_0x1453e5;let _0x3bfcc8=_0x34bf47(_0x350aa5),_0x4a2772=_0x350aa5==null?void 0x0:_0x350aa5[_0x5adaf7(0x22f)],_0x9cf1ab=_0x5683e7!==void 0x0;if(!_0x3bfcc8||_0x9cf1ab&&_0x4a2772!==_0x5683e7){let _0x579132=_0x2d121a&&'\x22'+_0x2d121a+'\x22\x20',_0x454223=_0x9cf1ab?_0x5adaf7(0x3c7)+_0x5683e7:'',_0x88a47b=_0x3bfcc8?_0x5adaf7(0x1fe)+_0x4a2772:_0x5adaf7(0x3db)+typeof _0x350aa5,_0x374b37=_0x579132+'expected\x20Uint8Array'+_0x454223+_0x5adaf7(0x324)+_0x88a47b;throw _0x3bfcc8?RangeError(_0x374b37):TypeError(_0x374b37);}return _0x350aa5;}function _0xda43d0(_0x294ade){return new Uint32Array(_0x294ade['buffer'],_0x294ade['byteOffset'],Math['floor'](_0x294ade['byteLength']/0x4));}function _0x4dcd4d(..._0x244efb){const _0x15b9f8=_0x1453e5;for(let _0x5a89a9=0x0;_0x5a89a9<_0x244efb[_0x15b9f8(0x22f)];_0x5a89a9++)_0x244efb[_0x5a89a9][_0x15b9f8(0x332)](0x0);}let _0x47c89c=new Uint8Array(new Uint32Array([0x11223344])[_0x1453e5(0x412)])[0x0]===0x44,_0x211705=_0xd8657d=>_0xd8657d<<0x18&0xff000000|_0xd8657d<<0x8&0xff0000|_0xd8657d>>>0x8&0xff00|_0xd8657d>>>0x18&0xff,_0x367d32=_0x47c89c?_0x22d38d=>_0x22d38d:_0x4dbc87=>{const _0x358a6a=_0x1453e5;for(let _0x5995ba=0x0;_0x5995ba<_0x4dbc87[_0x358a6a(0x22f)];_0x5995ba++)_0x4dbc87[_0x5995ba]=_0x211705(_0x4dbc87[_0x5995ba]);return _0x4dbc87;};typeof Uint8Array[_0x1453e5(0x294)]([])['toHex']==_0x1453e5(0x3ff)&&Uint8Array[_0x1453e5(0x4d7)];function _0x5e4550(_0x5ef294){const _0x1dc0b7=_0x1453e5;if(typeof _0x5ef294!=_0x1dc0b7(0x444))throw TypeError(_0x1dc0b7(0x391));return new Uint8Array(new TextEncoder()[_0x1dc0b7(0x31c)](_0x5ef294));}function _0x2bd927(_0x18dec3,_0x38d72c){const _0x48a56e=_0x1453e5;return!_0x18dec3[_0x48a56e(0x24a)]||!_0x38d72c[_0x48a56e(0x24a)]?!0x1:_0x18dec3['buffer']===_0x38d72c[_0x48a56e(0x412)]&&_0x18dec3['byteOffset']<_0x38d72c[_0x48a56e(0x2bf)]+_0x38d72c[_0x48a56e(0x24a)]&&_0x38d72c[_0x48a56e(0x2bf)]<_0x18dec3['byteOffset']+_0x18dec3['byteLength'];}function _0x3a4acd(_0x257f8b,_0x335ad8){const _0xc3f7ca=_0x1453e5;if(_0x2bd927(_0x257f8b,_0x335ad8)&&_0x257f8b['byteOffset']<_0x335ad8[_0xc3f7ca(0x2bf)])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0x50991e(..._0x205245){const _0x12e8c9=_0x1453e5;let _0x5036bc=0x0;for(let _0x27d2b3=0x0;_0x27d2b3<_0x205245['length'];_0x27d2b3++){let _0x191abb=_0x205245[_0x27d2b3];_0x4b74eb(_0x191abb),_0x5036bc+=_0x191abb['length'];}let _0x39046e=new Uint8Array(_0x5036bc);for(let _0x1b31f5=0x0,_0x31f394=0x0;_0x1b31f5<_0x205245[_0x12e8c9(0x22f)];_0x1b31f5++){let _0xa75cb5=_0x205245[_0x1b31f5];_0x39046e[_0x12e8c9(0x37f)](_0xa75cb5,_0x31f394),_0x31f394+=_0xa75cb5['length'];}return _0x39046e;}let _0x5efb0b=(_0x39ac5e,_0x22b58c)=>{const _0x3d39cd=_0x1453e5;function _0x3ab971(_0x327485,..._0x4a80c1){const _0x13e52c=_0x2103;if(_0x4b74eb(_0x327485,void 0x0,_0x13e52c(0x223)),_0x39ac5e[_0x13e52c(0x4e8)]!==void 0x0){let _0x38d28c=_0x4a80c1[0x0];_0x4b74eb(_0x38d28c,_0x39ac5e[_0x13e52c(0x450)]?void 0x0:_0x39ac5e['nonceLength'],_0x13e52c(0x3a5));}let _0x16eceb=_0x39ac5e[_0x13e52c(0x2d9)];_0x16eceb&&_0x4a80c1[0x1]!==void 0x0&&_0x4b74eb(_0x4a80c1[0x1],void 0x0,'AAD');let _0x4c3306=_0x22b58c(_0x327485,..._0x4a80c1),_0x1cbc01=(_0x3117db,_0x52a60a)=>{const _0x156da2=_0x13e52c;if(_0x52a60a!==void 0x0){if(_0x3117db!==0x2)throw Error(_0x156da2(0x29b));_0x4b74eb(_0x52a60a,void 0x0,_0x156da2(0x1f5));}},_0x43f15d=!0x1;return{'encrypt'(_0x271586,_0x4bf7cc){const _0x34b8b4=_0x13e52c;if(_0x43f15d)throw Error(_0x34b8b4(0x2aa));return _0x43f15d=!0x0,_0x4b74eb(_0x271586),_0x1cbc01(_0x4c3306[_0x34b8b4(0x2ff)]['length'],_0x4bf7cc),_0x4c3306[_0x34b8b4(0x2ff)](_0x271586,_0x4bf7cc);},'decrypt'(_0xea58b8,_0x376135){const _0x45034d=_0x13e52c;if(_0x4b74eb(_0xea58b8),_0x16eceb&&_0xea58b8[_0x45034d(0x22f)]<_0x16eceb)throw Error(_0x45034d(0x41d)+_0x16eceb);return _0x1cbc01(_0x4c3306['decrypt'][_0x45034d(0x22f)],_0x376135),_0x4c3306[_0x45034d(0x50a)](_0xea58b8,_0x376135);}};}return Object[_0x3d39cd(0x32d)](_0x3ab971,_0x39ac5e),_0x3ab971;};function _0x49d46d(_0x4e8c82,_0x395944,_0x3f3e1f=!0x0){const _0x2bc930=_0x1453e5;if(_0x395944===void 0x0)return new Uint8Array(_0x4e8c82);if(_0x4b74eb(_0x395944,void 0x0,'output'),_0x395944[_0x2bc930(0x22f)]!==_0x4e8c82)throw Error('\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20'+_0x4e8c82+_0x2bc930(0x4a2)+_0x395944['length']);if(_0x3f3e1f&&!_0x58c7b8(_0x395944))throw Error(_0x2bc930(0x29f));return _0x395944;}function _0x58c7b8(_0x1611a2){return _0x1611a2['byteOffset']%0x4==0x0;}function _0x7d6f1f(_0x1d2f57){return Uint8Array['from'](_0x4b74eb(_0x1d2f57));}function _0x38fb0b(_0x11381e=0x20){const _0x16debb=_0x1453e5;_0x5b62a7(_0x11381e);let _0x54e5ef=typeof globalThis==_0x16debb(0x203)?globalThis[_0x16debb(0x452)]:null;if(typeof(_0x54e5ef==null?void 0x0:_0x54e5ef[_0x16debb(0x385)])!=_0x16debb(0x3ff))throw Error(_0x16debb(0x21e));return _0x54e5ef[_0x16debb(0x385)](new Uint8Array(_0x11381e));}function _0x1f69b4(_0x5a0849){const _0x5e2c51=_0x1453e5;if(![0x10,0x18,0x20][_0x5e2c51(0x229)](_0x5a0849[_0x5e2c51(0x22f)]))throw Error('\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length='+_0x5a0849[_0x5e2c51(0x22f)]);}function _0x3c973d(_0x16d88d){return _0x16d88d<<0x1^0x11b&-(_0x16d88d>>0x7);}function _0x59796b(_0x569e53,_0xd53578){let _0x22d941=0x0;for(;_0xd53578>0x0;_0xd53578>>=0x1)_0x22d941^=_0x569e53&-(_0xd53578&0x1),_0x569e53=_0x3c973d(_0x569e53);return _0x22d941;}let _0x5b52f4=((()=>{let _0xab966=new Uint8Array(0x100);for(let _0x29dacf=0x0,_0x392597=0x1;_0x29dacf<0x100;_0x29dacf++,_0x392597^=_0x3c973d(_0x392597))_0xab966[_0x29dacf]=_0x392597;let _0x45579b=new Uint8Array(0x100);_0x45579b[0x0]=0x63;for(let _0x34be4f=0x0;_0x34be4f<0xff;_0x34be4f++){let _0x3c04ff=_0xab966[0xff-_0x34be4f];_0x3c04ff|=_0x3c04ff<<0x8,_0x45579b[_0xab966[_0x34be4f]]=(_0x3c04ff^_0x3c04ff>>0x4^_0x3c04ff>>0x5^_0x3c04ff>>0x6^_0x3c04ff>>0x7^0x63)&0xff;}return _0x4dcd4d(_0xab966),_0x45579b;})()),_0x1dada6=_0x5b52f4[_0x1453e5(0x27b)]((_0x25cc5e,_0xc24328)=>_0x5b52f4[_0x1453e5(0x3f6)](_0xc24328)),_0x5c1aa6=_0x589273=>_0x589273<<0x18|_0x589273>>>0x8,_0x22ccb0=_0x4ba0e2=>_0x4ba0e2<<0x8|_0x4ba0e2>>>0x18;function _0x25db54(_0x1d53f7,_0x4ac9e4){const _0x481aaa=_0x1453e5;if(_0x1d53f7[_0x481aaa(0x22f)]!==0x100)throw Error(_0x481aaa(0x3c4));let _0x1b25a5=new Uint32Array(0x100)[_0x481aaa(0x27b)]((_0x38cd97,_0x30ab68)=>_0x4ac9e4(_0x1d53f7[_0x30ab68])),_0x52f98a=_0x1b25a5[_0x481aaa(0x27b)](_0x22ccb0),_0x16a69c=_0x52f98a[_0x481aaa(0x27b)](_0x22ccb0),_0xeaefe5=_0x16a69c[_0x481aaa(0x27b)](_0x22ccb0),_0x53f8dd=new Uint32Array(0x100*0x100),_0x28b113=new Uint32Array(0x100*0x100),_0x10caec=new Uint16Array(0x100*0x100);for(let _0x4f51e2=0x0;_0x4f51e2<0x100;_0x4f51e2++)for(let _0xa1dc59=0x0;_0xa1dc59<0x100;_0xa1dc59++){let _0x37cd7e=_0x4f51e2*0x100+_0xa1dc59;_0x53f8dd[_0x37cd7e]=_0x1b25a5[_0x4f51e2]^_0x52f98a[_0xa1dc59],_0x28b113[_0x37cd7e]=_0x16a69c[_0x4f51e2]^_0xeaefe5[_0xa1dc59],_0x10caec[_0x37cd7e]=_0x1d53f7[_0x4f51e2]<<0x8|_0x1d53f7[_0xa1dc59];}return{'sbox':_0x1d53f7,'sbox2':_0x10caec,'T0':_0x1b25a5,'T1':_0x52f98a,'T2':_0x16a69c,'T3':_0xeaefe5,'T01':_0x53f8dd,'T23':_0x28b113};}let _0x1588b6=_0x25db54(_0x5b52f4,_0x41446b=>_0x59796b(_0x41446b,0x3)<<0x18|_0x41446b<<0x10|_0x41446b<<0x8|_0x59796b(_0x41446b,0x2)),_0x4d1784=_0x25db54(_0x1dada6,_0x59628d=>_0x59796b(_0x59628d,0xb)<<0x18|_0x59796b(_0x59628d,0xd)<<0x10|_0x59796b(_0x59628d,0x9)<<0x8|_0x59796b(_0x59628d,0xe)),_0x5ed0b4=((()=>{let _0x456966=new Uint8Array(0x10);for(let _0x306853=0x0,_0x20fad4=0x1;_0x306853<0x10;_0x306853++,_0x20fad4=_0x3c973d(_0x20fad4))_0x456966[_0x306853]=_0x20fad4;return _0x456966;})());function _0x4fd916(_0x5e901a){const _0x94bcd=_0x1453e5;_0x4b74eb(_0x5e901a);let _0x290450=_0x5e901a[_0x94bcd(0x22f)];_0x1f69b4(_0x5e901a);let {sbox2:_0x3dc0a2}=_0x1588b6,_0x153235=[];(!_0x47c89c||!_0x58c7b8(_0x5e901a))&&_0x153235[_0x94bcd(0x4d0)](_0x5e901a=_0x7d6f1f(_0x5e901a));let _0x51ec6c=_0x367d32(_0xda43d0(_0x5e901a)),_0x868f20=_0x51ec6c[_0x94bcd(0x22f)],_0x4d5733=_0x3b86f9=>_0x92f847(_0x3dc0a2,_0x3b86f9,_0x3b86f9,_0x3b86f9,_0x3b86f9),_0x358b06=new Uint32Array(_0x290450+0x1c);_0x358b06[_0x94bcd(0x37f)](_0x51ec6c);for(let _0x5b2090=_0x868f20;_0x5b2090<_0x358b06[_0x94bcd(0x22f)];_0x5b2090++){let _0x50caf1=_0x358b06[_0x5b2090-0x1];_0x5b2090%_0x868f20===0x0?_0x50caf1=_0x4d5733(_0x5c1aa6(_0x50caf1))^_0x5ed0b4[_0x5b2090/_0x868f20-0x1]:_0x868f20>0x6&&_0x5b2090%_0x868f20===0x4&&(_0x50caf1=_0x4d5733(_0x50caf1)),_0x358b06[_0x5b2090]=_0x358b06[_0x5b2090-_0x868f20]^_0x50caf1;}return _0x4dcd4d(..._0x153235),_0x358b06;}function _0x56f450(_0x53b21d){const _0x3b5b40=_0x1453e5;let _0x396b20=_0x4fd916(_0x53b21d),_0x1e558f=_0x396b20['slice'](),_0x49ccab=_0x396b20[_0x3b5b40(0x22f)],{sbox2:_0x43b811}=_0x1588b6,{T0:_0x4c98ba,T1:_0x6c5719,T2:_0x298aba,T3:_0x3c4470}=_0x4d1784;for(let _0x5724ea=0x0;_0x5724ea<_0x49ccab;_0x5724ea+=0x4)for(let _0x5c40b4=0x0;_0x5c40b4<0x4;_0x5c40b4++)_0x1e558f[_0x5724ea+_0x5c40b4]=_0x396b20[_0x49ccab-_0x5724ea-0x4+_0x5c40b4];_0x4dcd4d(_0x396b20);for(let _0x5dbf9c=0x4;_0x5dbf9c<_0x49ccab-0x4;_0x5dbf9c++){let _0x58753d=_0x1e558f[_0x5dbf9c],_0x110233=_0x92f847(_0x43b811,_0x58753d,_0x58753d,_0x58753d,_0x58753d);_0x1e558f[_0x5dbf9c]=_0x4c98ba[_0x110233&0xff]^_0x6c5719[_0x110233>>>0x8&0xff]^_0x298aba[_0x110233>>>0x10&0xff]^_0x3c4470[_0x110233>>>0x18];}return _0x1e558f;}function _0x2be600(_0x39150c,_0x3a1956,_0x29b1f7,_0x120047,_0x1e9b9a,_0x55dc27){return _0x39150c[_0x29b1f7<<0x8&0xff00|_0x120047>>>0x8&0xff]^_0x3a1956[_0x1e9b9a>>>0x8&0xff00|_0x55dc27>>>0x18&0xff];}function _0x92f847(_0x49b923,_0x2371c5,_0x4a5713,_0x292175,_0x3ab3bf){return _0x49b923[_0x2371c5&0xff|_0x4a5713&0xff00]|_0x49b923[_0x292175>>>0x10&0xff|_0x3ab3bf>>>0x10&0xff00]<<0x10;}function _0x58021b(_0x3003b1,_0x1f49b8,_0x268d4a,_0x5ab736,_0x209f3c){const _0x57e7d0=_0x1453e5;let {sbox2:_0x53c6d2,T01:_0x5825e,T23:_0x351cda}=_0x1588b6,_0x1db606=0x0;_0x1f49b8^=_0x3003b1[_0x1db606++],_0x268d4a^=_0x3003b1[_0x1db606++],_0x5ab736^=_0x3003b1[_0x1db606++],_0x209f3c^=_0x3003b1[_0x1db606++];let _0x133750=_0x3003b1[_0x57e7d0(0x22f)]/0x4-0x2;for(let _0x1e633a=0x0;_0x1e633a<_0x133750;_0x1e633a++){let _0x432a4e=_0x3003b1[_0x1db606++]^_0x2be600(_0x5825e,_0x351cda,_0x1f49b8,_0x268d4a,_0x5ab736,_0x209f3c),_0x443310=_0x3003b1[_0x1db606++]^_0x2be600(_0x5825e,_0x351cda,_0x268d4a,_0x5ab736,_0x209f3c,_0x1f49b8),_0x5071d3=_0x3003b1[_0x1db606++]^_0x2be600(_0x5825e,_0x351cda,_0x5ab736,_0x209f3c,_0x1f49b8,_0x268d4a),_0x44d3ae=_0x3003b1[_0x1db606++]^_0x2be600(_0x5825e,_0x351cda,_0x209f3c,_0x1f49b8,_0x268d4a,_0x5ab736);_0x1f49b8=_0x432a4e,_0x268d4a=_0x443310,_0x5ab736=_0x5071d3,_0x209f3c=_0x44d3ae;}return{'s0':_0x3003b1[_0x1db606++]^_0x92f847(_0x53c6d2,_0x1f49b8,_0x268d4a,_0x5ab736,_0x209f3c),'s1':_0x3003b1[_0x1db606++]^_0x92f847(_0x53c6d2,_0x268d4a,_0x5ab736,_0x209f3c,_0x1f49b8),'s2':_0x3003b1[_0x1db606++]^_0x92f847(_0x53c6d2,_0x5ab736,_0x209f3c,_0x1f49b8,_0x268d4a),'s3':_0x3003b1[_0x1db606++]^_0x92f847(_0x53c6d2,_0x209f3c,_0x1f49b8,_0x268d4a,_0x5ab736)};}function _0x2d2102(_0x5109ba,_0x5f4a8f,_0x1e75a3,_0x2b4ce4,_0x4cf151){const _0x3b1797=_0x1453e5;let {sbox2:_0x30fe25,T01:_0x2cd0cf,T23:_0x3ab5bb}=_0x4d1784,_0x553be8=0x0;_0x5f4a8f^=_0x5109ba[_0x553be8++],_0x1e75a3^=_0x5109ba[_0x553be8++],_0x2b4ce4^=_0x5109ba[_0x553be8++],_0x4cf151^=_0x5109ba[_0x553be8++];let _0x595a02=_0x5109ba[_0x3b1797(0x22f)]/0x4-0x2;for(let _0x415cbd=0x0;_0x415cbd<_0x595a02;_0x415cbd++){let _0x244c0c=_0x5109ba[_0x553be8++]^_0x2be600(_0x2cd0cf,_0x3ab5bb,_0x5f4a8f,_0x4cf151,_0x2b4ce4,_0x1e75a3),_0x48dc82=_0x5109ba[_0x553be8++]^_0x2be600(_0x2cd0cf,_0x3ab5bb,_0x1e75a3,_0x5f4a8f,_0x4cf151,_0x2b4ce4),_0xad1070=_0x5109ba[_0x553be8++]^_0x2be600(_0x2cd0cf,_0x3ab5bb,_0x2b4ce4,_0x1e75a3,_0x5f4a8f,_0x4cf151),_0x52c4f1=_0x5109ba[_0x553be8++]^_0x2be600(_0x2cd0cf,_0x3ab5bb,_0x4cf151,_0x2b4ce4,_0x1e75a3,_0x5f4a8f);_0x5f4a8f=_0x244c0c,_0x1e75a3=_0x48dc82,_0x2b4ce4=_0xad1070,_0x4cf151=_0x52c4f1;}return{'s0':_0x5109ba[_0x553be8++]^_0x92f847(_0x30fe25,_0x5f4a8f,_0x4cf151,_0x2b4ce4,_0x1e75a3),'s1':_0x5109ba[_0x553be8++]^_0x92f847(_0x30fe25,_0x1e75a3,_0x5f4a8f,_0x4cf151,_0x2b4ce4),'s2':_0x5109ba[_0x553be8++]^_0x92f847(_0x30fe25,_0x2b4ce4,_0x1e75a3,_0x5f4a8f,_0x4cf151),'s3':_0x5109ba[_0x553be8++]^_0x92f847(_0x30fe25,_0x4cf151,_0x2b4ce4,_0x1e75a3,_0x5f4a8f)};}function _0x4adffa(_0x1be65c){if(_0x4b74eb(_0x1be65c),_0x1be65c['length']%0x10!=0x0)throw Error('aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016');}function _0x540e10(_0x3af9b6,_0x2e2bad,_0x2fa37d){const _0x46c670=_0x1453e5;_0x4b74eb(_0x3af9b6);let _0x4671da=_0x3af9b6[_0x46c670(0x22f)],_0x55ef67=_0x4671da%0x10;if(!_0x2e2bad&&_0x55ef67!==0x0)throw Error('aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding');if(_0x2e2bad){let _0x16aa2c=0x10-_0x55ef67;_0x16aa2c||(_0x16aa2c=0x10),_0x4671da+=_0x16aa2c;}_0x2fa37d=_0x49d46d(_0x4671da,_0x2fa37d),_0x3a4acd(_0x3af9b6,_0x2fa37d),(!_0x47c89c||!_0x58c7b8(_0x3af9b6))&&(_0x3af9b6=_0x7d6f1f(_0x3af9b6));let _0xac4ab9=_0xda43d0(_0x3af9b6);return _0x367d32(_0xac4ab9),{'b':_0xac4ab9,'o':_0xda43d0(_0x2fa37d),'out':_0x2fa37d};}function _0x11d3b6(_0x26dfe6,_0x3bb640){const _0x5102ef=_0x1453e5;if(!_0x3bb640)return _0x26dfe6;let _0x32e766=_0x26dfe6[_0x5102ef(0x22f)];if(_0x32e766===0x0)throw Error(_0x5102ef(0x1f7));let _0x45192d=_0x26dfe6[_0x32e766-0x1],_0x5c730a=0x1;_0x5c730a&=_0x45192d-0x1>>>0x1f^0x1,_0x5c730a&=0x10-_0x45192d>>>0x1f^0x1;for(let _0x3fc3cb=0x0;_0x3fc3cb<0x10;_0x3fc3cb++){let _0x13d103=_0x3fc3cb-_0x45192d>>>0x1f,_0x181566=+((_0x26dfe6[_0x32e766-0x1-_0x3fc3cb]^_0x45192d)===0x0);_0x5c730a&=_0x181566|_0x13d103^0x1;}if(!_0x5c730a)throw Error(_0x5102ef(0x257));return _0x26dfe6[_0x5102ef(0x415)](0x0,_0x32e766-_0x45192d);}function _0x5ca4d6(_0x5f3f04){const _0x5d0caf=_0x1453e5;let _0x4c9436=new Uint8Array(0x10),_0x2111d4=_0xda43d0(_0x4c9436);_0x4c9436[_0x5d0caf(0x37f)](_0x5f3f04);let _0x5b6b05=0x10-_0x5f3f04[_0x5d0caf(0x22f)];for(let _0x31ff9e=0x10-_0x5b6b05;_0x31ff9e<0x10;_0x31ff9e++)_0x4c9436[_0x31ff9e]=_0x5b6b05;return _0x2111d4;}let _0x575da1=_0x5efb0b({'blockSize':0x10,'nonceLength':0x10},function(_0x45d1ee,_0x6cfe59,_0x1a940b={}){const _0x2c1ff0=_0x1453e5;let _0x2b817c=!_0x1a940b[_0x2c1ff0(0x302)];return{'encrypt'(_0x536729,_0x47a394){const _0x592b1f=_0x2c1ff0;let _0x2b59ac=_0x4fd916(_0x45d1ee),{b:_0x49bdef,o:_0x26b5c5,out:_0x495f09}=_0x540e10(_0x536729,_0x2b817c,_0x47a394),_0x5a02e7=_0x6cfe59,_0x592e8d=[_0x2b59ac];(!_0x47c89c||!_0x58c7b8(_0x5a02e7))&&_0x592e8d[_0x592b1f(0x4d0)](_0x5a02e7=_0x7d6f1f(_0x5a02e7));let _0x5c8780=_0xda43d0(_0x5a02e7);_0x367d32(_0x5c8780);let _0x4624b5=_0x5c8780[0x0],_0x2c44d0=_0x5c8780[0x1],_0x34e7c1=_0x5c8780[0x2],_0x187174=_0x5c8780[0x3],_0x4f6b49=0x0;for(;_0x4f6b49+0x4<=_0x49bdef[_0x592b1f(0x22f)];)_0x4624b5^=_0x49bdef[_0x4f6b49+0x0],_0x2c44d0^=_0x49bdef[_0x4f6b49+0x1],_0x34e7c1^=_0x49bdef[_0x4f6b49+0x2],_0x187174^=_0x49bdef[_0x4f6b49+0x3],{s0:_0x4624b5,s1:_0x2c44d0,s2:_0x34e7c1,s3:_0x187174}=_0x58021b(_0x2b59ac,_0x4624b5,_0x2c44d0,_0x34e7c1,_0x187174),_0x26b5c5[_0x4f6b49++]=_0x4624b5,_0x26b5c5[_0x4f6b49++]=_0x2c44d0,_0x26b5c5[_0x4f6b49++]=_0x34e7c1,_0x26b5c5[_0x4f6b49++]=_0x187174;if(_0x2b817c){let _0x511104=_0x5ca4d6(_0x536729[_0x592b1f(0x415)](_0x4f6b49*0x4));_0x367d32(_0x511104),_0x4624b5^=_0x511104[0x0],_0x2c44d0^=_0x511104[0x1],_0x34e7c1^=_0x511104[0x2],_0x187174^=_0x511104[0x3],{s0:_0x4624b5,s1:_0x2c44d0,s2:_0x34e7c1,s3:_0x187174}=_0x58021b(_0x2b59ac,_0x4624b5,_0x2c44d0,_0x34e7c1,_0x187174),_0x26b5c5[_0x4f6b49++]=_0x4624b5,_0x26b5c5[_0x4f6b49++]=_0x2c44d0,_0x26b5c5[_0x4f6b49++]=_0x34e7c1,_0x26b5c5[_0x4f6b49++]=_0x187174;}return _0x367d32(_0x26b5c5),_0x4dcd4d(..._0x592e8d),_0x495f09;},'decrypt'(_0x31fa1f,_0x535567){const _0x40bf51=_0x2c1ff0;_0x4adffa(_0x31fa1f);let _0x599617=_0x56f450(_0x45d1ee),_0x573372=_0x6cfe59,_0x83aa64=[_0x599617];(!_0x47c89c||!_0x58c7b8(_0x573372))&&_0x83aa64['push'](_0x573372=_0x7d6f1f(_0x573372));let _0x31a6f1=_0xda43d0(_0x573372);_0x367d32(_0x31a6f1),_0x535567=_0x49d46d(_0x31fa1f['length'],_0x535567),_0x3a4acd(_0x31fa1f,_0x535567),(!_0x47c89c||!_0x58c7b8(_0x31fa1f))&&_0x83aa64[_0x40bf51(0x4d0)](_0x31fa1f=_0x7d6f1f(_0x31fa1f));let _0x369292=_0xda43d0(_0x31fa1f),_0x38bb73=_0xda43d0(_0x535567);_0x367d32(_0x369292);let _0x18f2e7=_0x31a6f1[0x0],_0x1ea466=_0x31a6f1[0x1],_0xe89363=_0x31a6f1[0x2],_0x2240a2=_0x31a6f1[0x3];for(let _0x17d2e2=0x0;_0x17d2e2+0x4<=_0x369292['length'];){let _0x1fdc4b=_0x18f2e7,_0x36ae12=_0x1ea466,_0x250f72=_0xe89363,_0x4da2cb=_0x2240a2;_0x18f2e7=_0x369292[_0x17d2e2+0x0],_0x1ea466=_0x369292[_0x17d2e2+0x1],_0xe89363=_0x369292[_0x17d2e2+0x2],_0x2240a2=_0x369292[_0x17d2e2+0x3];let {s0:_0x738898,s1:_0x2c35de,s2:_0x5528d7,s3:_0x417ab6}=_0x2d2102(_0x599617,_0x18f2e7,_0x1ea466,_0xe89363,_0x2240a2);_0x38bb73[_0x17d2e2++]=_0x738898^_0x1fdc4b,_0x38bb73[_0x17d2e2++]=_0x2c35de^_0x36ae12,_0x38bb73[_0x17d2e2++]=_0x5528d7^_0x250f72,_0x38bb73[_0x17d2e2++]=_0x417ab6^_0x4da2cb;}return _0x367d32(_0x38bb73),_0x4dcd4d(..._0x83aa64),_0x11d3b6(_0x535567,_0x2b817c);}};});function _0x5a7f89(_0x39233b){const _0x4edcb1=_0x1453e5;let _0x13b798=atob(_0x39233b),_0x2398fb=new Uint8Array(_0x13b798[_0x4edcb1(0x22f)]);for(let _0x30572e=0x0;_0x30572e<_0x13b798[_0x4edcb1(0x22f)];_0x30572e++)_0x2398fb[_0x30572e]=_0x13b798[_0x4edcb1(0x246)](_0x30572e);return _0x2398fb;}function _0x563fd5(_0x400909){const _0x13e667=_0x1453e5;let _0x3cca93='';for(let _0xb8900b=0x0;_0xb8900b<_0x400909[_0x13e667(0x22f)];_0xb8900b++)_0x3cca93+=String[_0x13e667(0x2bc)](_0x400909[_0xb8900b]);return btoa(_0x3cca93);}function _0x32f57d(_0x1fba28,_0x5f5957){const _0x411d02=_0x1453e5;let _0x4173c4=_0x5a7f89(_0x5f5957),_0x1487a4=_0x38fb0b(0x10);return _0x563fd5(_0x50991e(_0x1487a4,_0x575da1(_0x4173c4,_0x1487a4)[_0x411d02(0x2ff)](_0x5e4550(_0x1fba28))));}function _0x1e2769(){const _0x4006ff=_0x1453e5;let _0xae6919=(0x0,_0x3b5393[_0x4006ff(0x2de)])()[_0x4006ff(0x44f)];if(typeof window<'u'&&window['location']!==void 0x0&&_0xae6919){let _0x3d421e={'time':Math[_0x4006ff(0x20e)](Date[_0x4006ff(0x40c)]()/0x3e8),'domain':location[_0x4006ff(0x265)]};return _0x32f57d(JSON[_0x4006ff(0x31e)](_0x3d421e),_0xae6919);}}let _0x4358e9=class{constructor(_0x245d6d){const _0x5f15e0=_0x1453e5;this[_0x5f15e0(0x205)]=_0x245d6d,this[_0x5f15e0(0x46a)]();}[_0x1453e5(0x46a)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x3358e9,_0x2658b6)=>{const _0x4b1924=_0x2103;let _0x1a34b0=_0x1e2769();return _0x1a34b0&&_0x3358e9['headers']['set'](_0x4b1924(0x32b),_0x1a34b0),_0x2658b6(_0x3358e9);}});}};_0x4358e9=_0x23bcbc([_0x20187e(0x0,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x3c5332[_0x1453e5(0x222)]))],_0x4358e9);let _0x57339c=class extends _0x15f21c['RxDisposable']{constructor(_0x1c09ca,_0x4ef159,_0x53d444){const _0x1912da=_0x1453e5;super(),this[_0x1912da(0x2ec)]=_0x1c09ca,this[_0x1912da(0x4a6)]=_0x4ef159,this[_0x1912da(0x364)]=_0x53d444,_0x14249f(this,_0x1912da(0x241),new _0x57cf55[(_0x1912da(0x442))](null)),_0x14249f(this,_0x1912da(0x3af),this[_0x1912da(0x241)][_0x1912da(0x35d)]());}async[_0x1453e5(0x2bd)](_0x45b9af,_0x26444c,_0x269079){const _0x47811c=_0x1453e5;this[_0x47811c(0x241)][_0x47811c(0x492)]({'unitId':_0x45b9af,'type':_0x26444c});let _0x1d5b15=null;switch(_0x26444c){case _0x15f21c[_0x47811c(0x3b3)][_0x47811c(0x45a)]:_0x1d5b15=await this[_0x47811c(0x4a6)][_0x47811c(0x2a5)](_0x45b9af,_0x269079);break;case _0x15f21c[_0x47811c(0x3b3)][_0x47811c(0x301)]:_0x1d5b15=await this[_0x47811c(0x4a6)]['loadDoc'](_0x45b9af,_0x269079);break;default:this['_logService']['error'](_0x47811c(0x23b),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}return _0x1d5b15;}async[_0x1453e5(0x3a4)](_0x1c8e05,_0x7808ad,_0x1bf903){const _0x335ba1=_0x1453e5;var _0xc9fa8b;this[_0x335ba1(0x241)][_0x335ba1(0x492)]({'unitId':_0x1c8e05,'type':_0x7808ad,'subUnitId':_0x1bf903});let _0x9e55d6=0x0,_0x4520b6=await((_0xc9fa8b=this[_0x335ba1(0x364)])==null?void 0x0:_0xc9fa8b[_0x335ba1(0x24c)](_0x1c8e05));return _0x4520b6&&(_0x4520b6[_0x335ba1(0x4f8)]||_0x4520b6[_0x335ba1(0x3d5)]['length']!==0x0)&&(_0x9e55d6=_0x4520b6['rev']),_0x9e55d6===0x0&&this[_0x335ba1(0x2ec)][_0x335ba1(0x275)]('[DataLoaderService]',_0x335ba1(0x24d)),this[_0x335ba1(0x2bd)](_0x1c8e05,_0x7808ad,_0x9e55d6);}};_0x57339c=_0x23bcbc([_0x20187e(0x0,_0x15f21c['ILogService']),_0x20187e(0x1,(0x0,_0x15f21c['Inject'])(_0x37511f[_0x1453e5(0x3a0)])),_0x20187e(0x2,(0x0,_0x15f21c['Optional'])(_0x2bb040))],_0x57339c);let _0x1debe8=class{constructor(_0x53fe81,_0x5ae124,_0x208514){const _0x4454ed=_0x1453e5;this['_httpService']=_0x53fe81,this[_0x4454ed(0x22d)]=_0x5ae124,this[_0x4454ed(0x3c2)]=_0x208514,_0x14249f(this,_0x4454ed(0x475),0x0),_0x14249f(this,_0x4454ed(0x32c),new _0x57cf55['Subject']()),_0x14249f(this,_0x4454ed(0x262),this[_0x4454ed(0x32c)]),_0x14249f(this,'_imageSourceCache',new Map());}[_0x1453e5(0x4d2)](_0x52f616){const _0x111c8d=_0x1453e5;this[_0x111c8d(0x475)]=_0x52f616,this[_0x111c8d(0x32c)][_0x111c8d(0x492)](_0x52f616);}[_0x1453e5(0x433)](_0x2fd394,_0x33513f){const _0x814a83=_0x1453e5;if(_0x33513f===_0x5f09e6[_0x814a83(0x282)][_0x814a83(0x41e)]){let _0x165a47=new Image();return _0x165a47[_0x814a83(0x2b7)]=_0x2fd394,_0x165a47;}return this[_0x814a83(0x235)][_0x814a83(0x405)](_0x2fd394);}[_0x1453e5(0x251)](_0x38fe4d,_0xa4254,_0x484b5c){const _0x4402f3=_0x1453e5;_0xa4254===_0x5f09e6[_0x4402f3(0x282)][_0x4402f3(0x41e)]||_0x484b5c==null||this[_0x4402f3(0x235)][_0x4402f3(0x37f)](_0x38fe4d,_0x484b5c);}async[_0x1453e5(0x4ca)](_0x23c5e8){const _0x1c33e5=_0x1453e5;try{let _0x138422=this['_replaceFileID'](this[_0x1c33e5(0x4e7)](),''+_0x23c5e8),_0x98325a=(await this[_0x1c33e5(0x205)]['get'](_0x138422))[_0x1c33e5(0x4e9)];if(_0x98325a['error']&&_0x98325a['error'][_0x1c33e5(0x1fd)]===_0x1b8fab[_0x1c33e5(0x464)]['OK']){let _0x31d184=(0x0,_0x15f21c[_0x1c33e5(0x355)])(_0x98325a[_0x1c33e5(0x409)],this[_0x1c33e5(0x36f)]());return Promise['resolve'](_0x31d184);}return Promise[_0x1c33e5(0x402)](_0x98325a[_0x1c33e5(0x357)]);}catch(_0x52b5fe){return Promise[_0x1c33e5(0x402)](_0x52b5fe);}}async[_0x1453e5(0x33b)](_0x27e29b){const _0x26b340=_0x1453e5;let _0x29ffee='';if(!_0x5f09e6[_0x26b340(0x224)][_0x26b340(0x229)](_0x27e29b[_0x26b340(0x293)]))return this['_decreaseWaiting'](),Promise[_0x26b340(0x402)](Error(_0x5f09e6[_0x26b340(0x4ec)]['ERROR_IMAGE_TYPE']));if(_0x27e29b[_0x26b340(0x285)]>(0x0,_0x5f09e6['getDrawingImageAllowSize'])())return this[_0x26b340(0x453)](),Promise[_0x26b340(0x402)](Error(_0x5f09e6[_0x26b340(0x4ec)][_0x26b340(0x26a)]));try{let _0x5db7d3=new FormData();_0x5db7d3['append'](_0x26b340(0x3fa),_0x27e29b);let _0x4ebcd0=this['_univerInstanceService']['getFocusedUnit'](),_0x27f620=_0x4ebcd0==null?void 0x0:_0x4ebcd0[_0x26b340(0x49d)]();if(!_0x27f620)throw Error(_0x26b340(0x382));let _0x4401dd=this[_0x26b340(0x308)]()+_0x26b340(0x42f)+_0x27e29b['size'][_0x26b340(0x2cb)]()+_0x26b340(0x4eb)+_0x1b8fab[_0x26b340(0x3c9)]['UnitEmbedded']+_0x26b340(0x306)+encodeURIComponent(_0x27f620),_0x45dda7={'body':_0x5db7d3},_0x12fe0b=(await this['_httpService'][_0x26b340(0x4dc)](_0x4401dd,_0x45dda7))[_0x26b340(0x4e9)];if(typeof _0x12fe0b[_0x26b340(0x25b)]!=_0x26b340(0x444))return this['_decreaseWaiting'](),Promise[_0x26b340(0x402)](Error(_0x5f09e6[_0x26b340(0x4ec)][_0x26b340(0x225)]));_0x29ffee=_0x12fe0b[_0x26b340(0x25b)];}catch{return this[_0x26b340(0x453)](),Promise[_0x26b340(0x402)](Error(_0x5f09e6['ImageUploadStatusType'][_0x26b340(0x225)]));}return new Promise((_0x3578f7,_0x56b19c)=>{const _0x502e4d=_0x26b340;let _0x139996=new FileReader();_0x139996[_0x502e4d(0x4f1)](_0x27e29b),_0x139996[_0x502e4d(0x2e8)]=_0x21e01b=>{const _0x17d2d4=_0x502e4d;var _0x34f678;let _0xef6d50=(_0x34f678=_0x21e01b[_0x17d2d4(0x2d4)])==null?void 0x0:_0x34f678[_0x17d2d4(0x1f0)];if(_0xef6d50==null){this['_decreaseWaiting'](),_0x56b19c(Error(_0x5f09e6[_0x17d2d4(0x4ec)][_0x17d2d4(0x225)]));return;}_0x3578f7({'imageId':(0x0,_0x15f21c[_0x17d2d4(0x361)])(0x6),'imageSourceType':_0x5f09e6['ImageSourceType'][_0x17d2d4(0x476)],'source':_0x29ffee,'base64Cache':_0xef6d50,'status':_0x5f09e6[_0x17d2d4(0x4ec)][_0x17d2d4(0x2a1)]}),this[_0x17d2d4(0x453)]();};});}[_0x1453e5(0x308)](){const _0x139219=_0x1453e5;var _0x1bd89e;let _0x591305=this[_0x139219(0x22d)]['getConfig'](_0x4ffd90);return(_0x1bd89e=_0x591305==null?void 0x0:_0x591305['uploadFileServerUrl'])==null?'/universer-api/stream/file/upload':_0x1bd89e;}[_0x1453e5(0x4e7)](){const _0x1c1600=_0x1453e5;var _0xf05268;let _0xf4cb35=this['_configService'][_0x1c1600(0x3dc)](_0x4ffd90);return(_0xf05268=_0xf4cb35==null?void 0x0:_0xf4cb35['signUrlServerUrl'])==null?_0x1c1600(0x356):_0xf05268;}['_getDownloadEndpointURL'](){const _0x53619d=_0x1453e5;var _0x3a57cf;let _0x5d3ed6=this[_0x53619d(0x22d)][_0x53619d(0x3dc)](_0x4ffd90);return(_0x3a57cf=_0x5d3ed6==null?void 0x0:_0x5d3ed6['downloadEndpointUrl'])==null?location[_0x53619d(0x3cb)]:_0x3a57cf;}['_replaceFileID'](_0x445fa6,_0x51cddf){const _0x3cfa48=_0x1453e5;return _0x445fa6[_0x3cfa48(0x31b)](_0x3cfa48(0x2d1),_0x51cddf);}['_decreaseWaiting'](){const _0x3fbc63=_0x1453e5;--this[_0x3fbc63(0x475)],this[_0x3fbc63(0x32c)]['next'](this[_0x3fbc63(0x475)]);}};_0x1debe8=_0x23bcbc([_0x20187e(0x0,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x3c5332[_0x1453e5(0x222)])),_0x20187e(0x1,_0x15f21c[_0x1453e5(0x488)]),_0x20187e(0x2,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x15f21c['IUniverInstanceService']))],_0x1debe8);let _0x4e89df=class{constructor(_0x504a45,_0x1d2af9){this['_configService']=_0x504a45,this['_HTTPService']=_0x1d2af9;}[_0x1453e5(0x3fb)](){const _0x251522=_0x1453e5;var _0x4aba13;let _0x1cdd56=this[_0x251522(0x22d)]['getConfig'](_0x4ffd90);return(_0x4aba13=_0x1cdd56==null?void 0x0:_0x1cdd56[_0x251522(0x354)])==null?'/universer-api/authz':_0x4aba13;}async[_0x1453e5(0x376)](_0x4841ce){const _0xb3d219=_0x1453e5;let _0x1e801a=this[_0xb3d219(0x3fb)]()+_0xb3d219(0x358);return{'list':[{'title':'People','mentions':(await this[_0xb3d219(0x291)][_0xb3d219(0x405)](_0x1e801a,{'params':{'objectID':_0x4841ce[_0xb3d219(0x477)],'unitID':_0x4841ce[_0xb3d219(0x477)]}}))[_0xb3d219(0x4e9)][_0xb3d219(0x2b2)][_0xb3d219(0x27b)](_0x4d0c5b=>({'objectId':_0x4d0c5b['id'],'name':_0x4d0c5b[_0xb3d219(0x29e)][_0xb3d219(0x3c1)],'metadata':{'icon':_0x4d0c5b[_0xb3d219(0x29e)]['avatar']},'label':_0x4d0c5b[_0xb3d219(0x29e)][_0xb3d219(0x3c1)],'objectType':_0x15f21c['MentionType']['PERSON']})),'metadata':{},'type':_0x15f21c[_0xb3d219(0x35b)][_0xb3d219(0x3f9)]}]};}};_0x4e89df=_0x23bcbc([_0x20187e(0x0,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x15f21c['IConfigService'])),_0x20187e(0x1,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x3c5332[_0x1453e5(0x222)]))],_0x4e89df);let _0xa80062=class extends _0x15f21c[_0x1453e5(0x266)]{constructor(_0x19174d,_0x2e37af,_0x9ffc12,_0x4ac235,_0x3ade00){const _0x4461b9=_0x1453e5;super(),this[_0x4461b9(0x3df)]=_0x19174d,this[_0x4461b9(0x3c2)]=_0x2e37af,this[_0x4461b9(0x316)]=_0x9ffc12,this['_collaborationSessionService']=_0x4ac235,this[_0x4461b9(0x3a7)]=_0x3ade00,this[_0x4461b9(0x389)](),this[_0x4461b9(0x4ac)]();}[_0x1453e5(0x4ac)](){const _0x2ae00e=_0x1453e5;let _0x182832=async _0x1ed171=>{const _0x396cca=_0x2103;(await this[_0x396cca(0x3de)][_0x396cca(0x25f)](_0x1ed171))[_0x396cca(0x230)][_0x396cca(0x469)]((0x0,_0x19fb73[_0x396cca(0x2ba)])(_0x3a8406=>_0x3a8406[_0x396cca(0x2b4)]===_0x37511f[_0x396cca(0x342)][_0x396cca(0x4fc)]),(0x0,_0x19fb73[_0x396cca(0x25c)])(this[_0x396cca(0x46d)]))[_0x396cca(0x264)](_0x59fc45=>{const _0xea250f=_0x396cca;let {reason:_0x5d330c}=_0x59fc45['data'];this[_0xea250f(0x3a7)][_0xea250f(0x400)]({'id':'CLOSE_ROOM','data':_0x5d330c}),this[_0xea250f(0x316)][_0xea250f(0x510)](new _0x5dbd34[(_0xea250f(0x4bd))](_0x1ed171)['id'],!0x1),this[_0xea250f(0x3de)][_0xea250f(0x41a)](_0x1ed171);});};(0x0,_0x57cf55[_0x2ae00e(0x2ed)])(this[_0x2ae00e(0x3c2)][_0x2ae00e(0x4ba)](_0x15f21c[_0x2ae00e(0x3b3)][_0x2ae00e(0x45a)]),this[_0x2ae00e(0x3c2)][_0x2ae00e(0x4ba)](_0x15f21c[_0x2ae00e(0x3b3)][_0x2ae00e(0x301)]))[_0x2ae00e(0x469)]((0x0,_0x19fb73[_0x2ae00e(0x27b)])(_0x451698=>_0x451698[_0x2ae00e(0x36b)][_0x2ae00e(0x49d)]()),(0x0,_0x19fb73['filter'])(_0x408ef0=>!(0x0,_0x15f21c['isInternalEditorID'])(_0x408ef0)),(0x0,_0x19fb73[_0x2ae00e(0x25c)])(this[_0x2ae00e(0x46d)]))[_0x2ae00e(0x264)](_0x156d10=>{_0x182832(_0x156d10);});}[_0x1453e5(0x389)](){const _0x52b05a=_0x1453e5;let _0x3c2041=async _0x346f82=>{const _0x43c127=_0x2103;let _0x5d623f=await this[_0x43c127(0x3de)][_0x43c127(0x25f)](_0x346f82),_0x22cd14=this['_injector'][_0x43c127(0x405)](_0x5dbd34[_0x43c127(0x208)]);_0x5d623f[_0x43c127(0x230)]['pipe']((0x0,_0x19fb73['filter'])(_0x3d54d3=>_0x3d54d3['eventID']===_0x37511f[_0x43c127(0x342)][_0x43c127(0x3c5)]),(0x0,_0x19fb73[_0x43c127(0x25c)])(this[_0x43c127(0x46d)]))[_0x43c127(0x264)](_0x338965=>{const _0x2d1e41=_0x43c127;let {objectId:_0x4d1596}=_0x338965['data'];_0x4d1596===_0x346f82?_0x22cd14[_0x2d1e41(0x4ff)](_0x346f82):_0x22cd14[_0x2d1e41(0x2c9)](_0x346f82,_0x4d1596);});};(0x0,_0x57cf55[_0x52b05a(0x2ed)])(this[_0x52b05a(0x3c2)]['getTypeOfUnitAdded$'](_0x15f21c[_0x52b05a(0x3b3)][_0x52b05a(0x45a)]))['pipe']((0x0,_0x19fb73[_0x52b05a(0x27b)])(_0x55fc68=>_0x55fc68[_0x52b05a(0x36b)]['getUnitId']()),(0x0,_0x19fb73['filter'])(_0x488921=>!(0x0,_0x15f21c['isInternalEditorID'])(_0x488921)),(0x0,_0x19fb73[_0x52b05a(0x25c)])(this['dispose$']))[_0x52b05a(0x264)](_0x40e659=>{_0x3c2041(_0x40e659);});}};_0xa80062=_0x23bcbc([_0x20187e(0x0,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x15f21c['Injector'])),_0x20187e(0x1,_0x15f21c[_0x1453e5(0x22c)]),_0x20187e(0x2,_0x15f21c[_0x1453e5(0x240)]),_0x20187e(0x3,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x2bd27e)),_0x20187e(0x4,(0x0,_0x15f21c['Inject'])(_0x44a5ef))],_0xa80062);let _0x2eb448=class{constructor(_0x5143e9,_0xd4b6ae){const _0x1e9035=_0x1453e5;this[_0x1e9035(0x22d)]=_0x5143e9,this[_0x1e9035(0x205)]=_0xd4b6ae;}async[_0x1453e5(0x4f2)](_0x1875c7,_0x5b695e){const _0x369d55=_0x1453e5;var _0x4d6867;let {unitID:_0xd3e6dc,type:_0x1c8d8e,revision:_0x1fcc37=0x0}=_0x5b695e,_0x375468=this[_0x369d55(0x414)]()+'/'+_0x1c8d8e+_0x369d55(0x4fe)+_0xd3e6dc+_0x369d55(0x28e)+_0x1fcc37,_0x55f1c2=(await this[_0x369d55(0x205)][_0x369d55(0x405)](_0x375468))['body'],_0x3f8d9f=(_0x4d6867=_0x55f1c2[_0x369d55(0x34b)])==null?void 0x0:_0x4d6867[_0x369d55(0x328)];if(_0x3f8d9f){let _0x194ae8=_0x3f8d9f==null?void 0x0:_0x3f8d9f[_0x369d55(0x38a)];_0x3f8d9f['originalMeta']=_0x37511f[_0x369d55(0x482)][_0x369d55(0x31c)]((0x0,_0x37511f[_0x369d55(0x2e2)])(_0x194ae8)),Object[_0x369d55(0x446)](_0x3f8d9f[_0x369d55(0x29c)])[_0x369d55(0x4a3)](([,_0x521c5d])=>{const _0x4901b7=_0x369d55;let _0x6de74=_0x521c5d[_0x4901b7(0x38a)];_0x521c5d[_0x4901b7(0x38a)]=_0x37511f['textEncoder'][_0x4901b7(0x31c)]((0x0,_0x37511f[_0x4901b7(0x2e2)])(_0x6de74));});}return _0x55f1c2;}async[_0x1453e5(0x3b4)](_0x42dfa3,_0x13c3f0){const _0x5850d2=_0x1453e5;let {unitID:_0x21c021,type:_0x5bd303,blockID:_0x4508e9}=_0x13c3f0,_0x14c478=this[_0x5850d2(0x43a)]()+'/'+_0x5bd303+'/unit/'+_0x21c021+_0x5850d2(0x4cf)+_0x4508e9;return(await this['_httpService']['get'](_0x14c478))[_0x5850d2(0x4e9)];}async['getDeserializedSheetBlock'](_0xfc24ce,_0xc21769){const _0xa8b39f=_0x1453e5;let {unitID:_0x416fd6,type:_0xcd7ae1,blockID:_0x4f0a00}=_0xc21769,_0x4d4d6b=this[_0xa8b39f(0x43a)]()+_0xa8b39f(0x4cf)+_0xcd7ae1+_0xa8b39f(0x4fe)+_0x416fd6+_0xa8b39f(0x4cf)+_0x4f0a00;return(await this['_httpService'][_0xa8b39f(0x405)](_0x4d4d6b))[_0xa8b39f(0x4e9)];}async['fetchMissingChangesets'](_0x304755,_0x3670fe){const _0x38340e=_0x1453e5;let {unitID:_0x2e5a92,type:_0x5307ae,from:_0x3f591d,to:_0x50d319}=_0x3670fe,_0x3722c6=this['_getAPIPrefix']()+'/'+_0x5307ae+_0x38340e(0x4fe)+_0x2e5a92+_0x38340e(0x505)+_0x3f591d+_0x38340e(0x1f1)+_0x50d319;return(await this[_0x38340e(0x205)][_0x38340e(0x405)](_0x3722c6))[_0x38340e(0x4e9)];}[_0x1453e5(0x414)](){const _0x1e3c59=_0x1453e5;var _0xa244aa;return(_0xa244aa=this[_0x1e3c59(0x22d)][_0x1e3c59(0x3dc)]('SNAPSHOT_URL_KEY'))==null?this['_getAPIPrefix']():_0xa244aa;}['_getAPIPrefix'](){const _0xfa41fa=_0x1453e5;var _0x1f5b9f;let _0x189404=this[_0xfa41fa(0x22d)]['getConfig'](_0x4ffd90);return(_0x1f5b9f=_0x189404==null?void 0x0:_0x189404[_0xfa41fa(0x39f)])==null?'/universer-api/snapshot':_0x1f5b9f;}async[_0x1453e5(0x365)](_0x2172f8,_0xdc9b34){const _0x493488=_0x1453e5;let _0x345fe9=_0x493488(0x3bf)+_0xdc9b34[_0x493488(0x293)]+_0x493488(0x4fe)+_0xdc9b34[_0x493488(0x47f)]+'/resources';return(await this[_0x493488(0x205)][_0x493488(0x405)](_0x345fe9,{'params':{'resourceId':JSON['stringify'](_0xdc9b34[_0x493488(0x353)])}}))[_0x493488(0x4e9)];}[_0x1453e5(0x20c)](){const _0x3322e8=_0x1453e5;throw Error(_0x3322e8(0x4e6));}['updateSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x1453e5(0x2e1)](){const _0x3260bf=_0x1453e5;throw Error(_0x3260bf(0x4e6));}[_0x1453e5(0x463)](){const _0x249f01=_0x1453e5;throw Error(_0x249f01(0x4e6));}[_0x1453e5(0x2c8)](){const _0x63a743=_0x1453e5;throw Error(_0x63a743(0x4e6));}[_0x1453e5(0x404)](){const _0x17c718=_0x1453e5;throw Error(_0x17c718(0x4e6));}};_0x2eb448=_0x23bcbc([_0x20187e(0x0,_0x15f21c['IConfigService']),_0x20187e(0x1,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x3c5332[_0x1453e5(0x222)]))],_0x2eb448);let _0x48500c=class extends _0x15f21c[_0x1453e5(0x47c)]{constructor(_0x4d6954,_0x468bf9,_0x57db0c,_0x17487c,_0x4692b5){const _0x5e883d=_0x1453e5;super(_0x4d6954,_0x468bf9,_0x57db0c),this[_0x5e883d(0x4c3)]=_0x17487c,this[_0x5e883d(0x2ec)]=_0x4692b5;}['transformUndoRedo'](_0x19b8e0,_0x132932){const _0x57c7fc=_0x1453e5;let _0x44fe4e=this[_0x57c7fc(0x503)](_0x19b8e0);if(_0x44fe4e)try{let _0x3d3746=this['_transformStack'](_0x44fe4e,_0x132932);this[_0x57c7fc(0x47b)](_0x19b8e0,_0x3d3746);}catch(_0x230f94){this[_0x57c7fc(0x2ec)][_0x57c7fc(0x357)](_0x57c7fc(0x403),_0x230f94),this[_0x57c7fc(0x2fb)](_0x19b8e0);}let _0xa2137a=this[_0x57c7fc(0x287)](_0x19b8e0);if(_0xa2137a)try{let _0x2c48b3=this[_0x57c7fc(0x501)](_0xa2137a,_0x132932);this[_0x57c7fc(0x2cc)](_0x19b8e0,_0x2c48b3);}catch(_0x2c0d18){this[_0x57c7fc(0x2ec)][_0x57c7fc(0x357)](_0x2c0d18),this['_clearRedo'](_0x19b8e0);}}[_0x1453e5(0x2fb)](_0x138fb0){const _0x49053a=_0x1453e5;let _0x2dd99d=this[_0x49053a(0x503)](_0x138fb0);_0x2dd99d&&(_0x2dd99d[_0x49053a(0x22f)]=0x0,this[_0x49053a(0x41c)]());}[_0x1453e5(0x43f)](_0x25ddf2){const _0x4f6036=_0x1453e5;let _0x3401df=this['_getRedoStack'](_0x25ddf2);_0x3401df&&(_0x3401df[_0x4f6036(0x22f)]=0x0,this['_updateStatus']());}[_0x1453e5(0x47b)](_0x52cdb2,_0x2a4f5a){const _0x24ea97=_0x1453e5;this[_0x24ea97(0x4ef)][_0x24ea97(0x37f)](_0x52cdb2,_0x2a4f5a),this[_0x24ea97(0x41c)]();}[_0x1453e5(0x2cc)](_0x5056a9,_0x7f0a37){const _0x2ef98c=_0x1453e5;this[_0x2ef98c(0x3cd)][_0x2ef98c(0x37f)](_0x5056a9,_0x7f0a37),this['_updateStatus']();}[_0x1453e5(0x501)](_0x5c9501,_0x401ef3){const _0x3556cb=_0x1453e5;let _0xcdb946=[],_0x89c72c=_0x401ef3,_0x3f9d19=_0x401ef3;for(let _0x3ce66a=_0x5c9501[_0x3556cb(0x22f)]-0x1;_0x3ce66a>=0x0;_0x3ce66a--){let {unitID:_0x58d822,undoMutations:_0x3861de,redoMutations:_0x549efd}=_0x5c9501[_0x3ce66a],_0x51d6c2=this['_transformService'][_0x3556cb(0x4f4)](_0x89c72c,_0x3861de),_0x55b327=this[_0x3556cb(0x4c3)][_0x3556cb(0x4f4)](_0x3f9d19,_0x549efd);if((0x0,_0x37511f['isTransformMutationsWithChangesetFailure'])(_0x51d6c2)||(0x0,_0x37511f[_0x3556cb(0x3ad)])(_0x55b327)){this['_logService'][_0x3556cb(0x357)](_0x3556cb(0x403),'transformStack\x20failed!',_0x51d6c2,_0x55b327);break;}_0x89c72c=_0x51d6c2[_0x3556cb(0x226)],_0x3f9d19=_0x55b327[_0x3556cb(0x226)],_0xcdb946[_0x3556cb(0x4d0)]({'unitID':_0x58d822,'undoMutations':_0x51d6c2[_0x3556cb(0x3f7)],'redoMutations':_0x55b327[_0x3556cb(0x3f7)]});}return _0xcdb946[_0x3556cb(0x259)]();}};_0x48500c=_0x23bcbc([_0x20187e(0x0,_0x15f21c[_0x1453e5(0x22c)]),_0x20187e(0x1,_0x15f21c['ICommandService']),_0x20187e(0x2,_0x15f21c['IContextService']),_0x20187e(0x3,_0x37511f['ITransformService']),_0x20187e(0x4,_0x15f21c[_0x1453e5(0x3fc)])],_0x48500c);let _0x2adbe9=class extends _0x15f21c[_0x1453e5(0x317)]{constructor(_0x230b9e={},_0x2b8124,_0x1ca72e,_0x2f041d){const _0x5e8772=_0x1453e5;super(),this[_0x5e8772(0x233)]=_0x230b9e,this['_logService']=_0x2b8124,this[_0x5e8772(0x3df)]=_0x1ca72e,this[_0x5e8772(0x22d)]=_0x2f041d;let {..._0x505bb2}=(0x0,_0x15f21c['merge'])({},_0x188d4c,_0x230b9e);if(!_0x505bb2[_0x5e8772(0x45e)])throw Error(_0x5e8772(0x2dd));this[_0x5e8772(0x233)]=_0x505bb2,this[_0x5e8772(0x22d)][_0x5e8772(0x451)](_0x4ffd90,_0x505bb2);}[_0x1453e5(0x423)](){const _0x45556b=_0x1453e5;this[_0x45556b(0x490)](),this[_0x45556b(0x3d8)]();}[_0x1453e5(0x490)](){const _0xda98e7=_0x1453e5;var _0x4345e2,_0xd283d8;this[_0xda98e7(0x3df)][_0xda98e7(0x508)](_0x15f21c[_0xda98e7(0x359)])&&this[_0xda98e7(0x2ec)]['error']('[UniverCollaborationClientPlugin]',_0xda98e7(0x247));let _0x3d06f1=(0x0,_0x15f21c[_0xda98e7(0x3f4)])([[_0x15f21c['IUndoRedoService'],{'useClass':_0x48500c}],[_0x2bd27e],[_0x3feb5b],[_0x53d349],[_0x246b1c],[_0x4358e9],[_0x5b555c],[_0xa80062],[_0x44a5ef],[_0x57339c],[_0x20db02,{'useClass':this[_0xda98e7(0x233)][_0xda98e7(0x45e)]}],[_0x37511f['ISnapshotServerService'],{'useClass':_0x2eb448}],[_0x15f21c[_0xda98e7(0x2e4)],{'useClass':_0x8459f8}],[_0x5f09e6[_0xda98e7(0x245)],{'useClass':_0x1debe8}],[_0x15f21c['IMentionIOService'],{'useClass':_0x4e89df}],[_0x3c00a4],[_0x2ec451]],(_0x4345e2=this['_config'])==null?void 0x0:_0x4345e2[_0xda98e7(0x4b5)]);if(!((_0xd283d8=this[_0xda98e7(0x233)])!=null&&_0xd283d8[_0xda98e7(0x1fa)])){let _0x1ab4c1=_0x3d06f1[_0xda98e7(0x44a)](([_0x5065b9])=>_0x5065b9===_0x7c093b);_0x1ab4c1!==-0x1&&_0x3d06f1['splice'](_0x1ab4c1,0x1);}(0x0,_0x15f21c[_0xda98e7(0x370)])(this[_0xda98e7(0x3df)],_0x3d06f1);}[_0x1453e5(0x3d8)](){const _0x596b88=_0x1453e5;var _0x48917c,_0x4fc587;if(this[_0x596b88(0x3df)][_0x596b88(0x405)](_0x3c5332[_0x596b88(0x222)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,_0x3c5332[_0x596b88(0x2e3)])({'maxParallel':0x6})}),!((_0x48917c=this[_0x596b88(0x233)])!=null&&_0x48917c[_0x596b88(0x1f8)])){var _0x43d292;(_0x43d292=this[_0x596b88(0x3df)][_0x596b88(0x405)](_0x2bb040,_0x15f21c[_0x596b88(0x4cc)][_0x596b88(0x431)]))==null||_0x43d292['disableLocalCache']();}(_0x4fc587=this[_0x596b88(0x233)])!=null&&_0x4fc587[_0x596b88(0x48f)]&&(0x0,_0x15f21c[_0x596b88(0x318)])(this['_injector'],[[_0x246b1c]]),(0x0,_0x15f21c[_0x596b88(0x318)])(this['_injector'],[[_0x4358e9],[_0x3c00a4],[_0xa80062]]);}};_0x14249f(_0x2adbe9,_0x1453e5(0x4b4),_0x1453e5(0x3b1)),_0x14249f(_0x2adbe9,_0x1453e5(0x4b2),_0x5dfe46),_0x14249f(_0x2adbe9,_0x1453e5(0x2a3),_0x5e44b1),_0x2adbe9=_0x23bcbc([(0x0,_0x15f21c[_0x1453e5(0x4a4)])(_0x3b5393[_0x1453e5(0x303)],_0x37511f[_0x1453e5(0x297)],_0x3c5332['UniverNetworkPlugin']),_0x20187e(0x1,_0x15f21c['ILogService']),_0x20187e(0x2,(0x0,_0x15f21c[_0x1453e5(0x2b6)])(_0x15f21c[_0x1453e5(0x411)])),_0x20187e(0x3,_0x15f21c[_0x1453e5(0x488)])],_0x2adbe9),Object[_0x1453e5(0x2e7)](_0x4a8f3a,_0x1453e5(0x3f2),{'enumerable':!0x0,'get':function(){return _0x8459f8;}}),Object['defineProperty'](_0x4a8f3a,'AwaitingState',{'enumerable':!0x0,'get':function(){return _0x393762;}}),Object['defineProperty'](_0x4a8f3a,_0x1453e5(0x386),{'enumerable':!0x0,'get':function(){return _0x451a32;}}),_0x4a8f3a[_0x1453e5(0x46b)]=_0x4ffd90,Object[_0x1453e5(0x2e7)](_0x4a8f3a,_0x1453e5(0x47d),{'enumerable':!0x0,'get':function(){return _0x3c00a4;}}),Object[_0x1453e5(0x2e7)](_0x4a8f3a,_0x1453e5(0x311),{'enumerable':!0x0,'get':function(){return _0x2dfe9f;}}),Object[_0x1453e5(0x2e7)](_0x4a8f3a,_0x1453e5(0x329),{'enumerable':!0x0,'get':function(){return _0x1debe8;}}),Object[_0x1453e5(0x2e7)](_0x4a8f3a,_0x1453e5(0x44c),{'enumerable':!0x0,'get':function(){return _0xf4dd52;}}),Object['defineProperty'](_0x4a8f3a,'CollaborationSessionService',{'enumerable':!0x0,'get':function(){return _0x2bd27e;}}),Object[_0x1453e5(0x2e7)](_0x4a8f3a,'CollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x2d2413;}}),_0x4a8f3a[_0x1453e5(0x3c3)]=_0x5a1771,_0x4a8f3a[_0x1453e5(0x277)]=_0xbe416e,_0x4a8f3a[_0x1453e5(0x30c)]=_0x44a5ef,Object[_0x1453e5(0x2e7)](_0x4a8f3a,_0x1453e5(0x1fc),{'enumerable':!0x0,'get':function(){return _0x48500c;}}),_0x4a8f3a[_0x1453e5(0x384)]=_0x5b555c,Object[_0x1453e5(0x2e7)](_0x4a8f3a,'ConflictState',{'enumerable':!0x0,'get':function(){return _0x1617da;}}),_0x4a8f3a[_0x1453e5(0x395)]=_0xe2144e,_0x4a8f3a[_0x1453e5(0x504)]=_0x1453e5(0x244),_0x4a8f3a['DEFAULT_WS_SESSION_TICKET_URL']='/universer-api/user/session-ticket',Object[_0x1453e5(0x2e7)](_0x4a8f3a,_0x1453e5(0x267),{'enumerable':!0x0,'get':function(){return _0x57339c;}}),Object['defineProperty'](_0x4a8f3a,_0x1453e5(0x4f9),{'enumerable':!0x0,'get':function(){return _0x3313c8;}}),Object[_0x1453e5(0x2e7)](_0x4a8f3a,_0x1453e5(0x3a8),{'enumerable':!0x0,'get':function(){return _0x12b492;}}),_0x4a8f3a['HEARTBEAT_INTERVAL_KEY']=_0x1453e5(0x38f),_0x4a8f3a['HEARTBEAT_TIMEOUT_KEY']=_0x1453e5(0x220),_0x4a8f3a[_0x1453e5(0x34a)]=_0x20db02,_0x4a8f3a['ILocalCacheService']=_0x2bb040,_0x4a8f3a['INetworkConditionService']=_0x49ddf5,_0x4a8f3a[_0x1453e5(0x30f)]=_0x7c093b,_0x4a8f3a[_0x1453e5(0x288)]=0x3e8,_0x4a8f3a['LOCAL_CACHE_INTERVAL_KEY']=_0x1453e5(0x288),Object[_0x1453e5(0x2e7)](_0x4a8f3a,_0x1453e5(0x322),{'enumerable':!0x0,'get':function(){return _0x3feb5b;}}),Object['defineProperty'](_0x4a8f3a,_0x1453e5(0x3ae),{'enumerable':!0x0,'get':function(){return _0x4e89df;}}),Object[_0x1453e5(0x2e7)](_0x4a8f3a,'OfflineState',{'enumerable':!0x0,'get':function(){return _0x49a25b;}}),Object[_0x1453e5(0x2e7)](_0x4a8f3a,_0x1453e5(0x2f5),{'enumerable':!0x0,'get':function(){return _0xe56e96;}}),_0x4a8f3a[_0x1453e5(0x387)]='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',_0x4a8f3a[_0x1453e5(0x278)]=_0x1453e5(0x351),_0x4a8f3a['SessionStatus']=_0x486481,Object[_0x1453e5(0x2e7)](_0x4a8f3a,_0x1453e5(0x40a),{'enumerable':!0x0,'get':function(){return _0x5a3f3c;}}),Object[_0x1453e5(0x2e7)](_0x4a8f3a,'SheetTransformSelectionsService',{'enumerable':!0x0,'get':function(){return _0x53d349;}}),Object['defineProperty'](_0x4a8f3a,_0x1453e5(0x252),{'enumerable':!0x0,'get':function(){return _0x2eb448;}}),Object['defineProperty'](_0x4a8f3a,_0x1453e5(0x217),{'enumerable':!0x0,'get':function(){return _0x301f3f;}}),_0x4a8f3a[_0x1453e5(0x43d)]=_0x4a91b3,Object[_0x1453e5(0x2e7)](_0x4a8f3a,_0x1453e5(0x335),{'enumerable':!0x0,'get':function(){return _0x2adbe9;}}),_0x4a8f3a[_0x1453e5(0x495)]=_0x12e05c,_0x4a8f3a[_0x1453e5(0x43c)]=_0x19d226,_0x4a8f3a[_0x1453e5(0x48d)]=_0x2cf58b;}));