@univerjs-pro/collaboration-client 0.5.5-nightly.202501221606 → 0.5.5-nightly.202501241606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x5deefc=_0x450a;(function(_0x41e823,_0x44d497){var _0x42fa58=_0x450a,_0x1700c9=_0x41e823();while(!![]){try{var _0x59490c=parseInt(_0x42fa58(0x2f5))/0x1*(parseInt(_0x42fa58(0x345))/0x2)+parseInt(_0x42fa58(0x34d))/0x3+parseInt(_0x42fa58(0x46c))/0x4*(-parseInt(_0x42fa58(0x222))/0x5)+-parseInt(_0x42fa58(0x225))/0x6+parseInt(_0x42fa58(0x3fd))/0x7*(-parseInt(_0x42fa58(0x2e8))/0x8)+parseInt(_0x42fa58(0x244))/0x9+parseInt(_0x42fa58(0x24e))/0xa;if(_0x59490c===_0x44d497)break;else _0x1700c9['push'](_0x1700c9['shift']());}catch(_0x598f7f){_0x1700c9['push'](_0x1700c9['shift']());}}}(_0x1b9e,0xc682b));var __defProp=Object[_0x5deefc(0x4ad)],__defNormalProp=(_0x365794,_0x3e4590,_0x1a78c1)=>_0x3e4590 in _0x365794?__defProp(_0x365794,_0x3e4590,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a78c1}):_0x365794[_0x3e4590]=_0x1a78c1,__name=(_0x528aab,_0x30d6d1)=>__defProp(_0x528aab,_0x5deefc(0x32e),{'value':_0x30d6d1,'configurable':!0x0}),__publicField=(_0x1d48bf,_0x4f5825,_0x3dbcfc)=>__defNormalProp(_0x1d48bf,typeof _0x4f5825!='symbol'?_0x4f5825+'':_0x4f5825,_0x3dbcfc);import{createIdentifier,Inject,Injector,Disposable,DisposableCollection,toDisposable,IConfigService,ILogService,UserManagerService,UniverInstanceType,IUniverInstanceService,LocaleService,Optional,RxDisposable,Tools,Rectangle,ICommandService,JSONX,CommandType,IPermissionService,IUndoRedoService,sequenceExecute,Workbook,MentionType,IAuthzIoService,isInternalEditorID,LocalUndoRedoService,IContextService,DependentOn,Plugin,merge as _0x254d2d,mergeOverrideWithDependencies,IMentionIOService,registerDependencies,Quantity,touchDependencies}from'@univerjs/core';import{Subject,merge,of,BehaviorSubject,takeUntil,ReplaySubject,take as _0x21435b,map as _0x228a63,shareReplay,firstValueFrom,concatMap}from'rxjs';import{map,take,filter,delay,takeUntil as _0x160a42}from'rxjs/operators';import{HTTPService,ISocketService,MergeInterceptorFactory,HTTPRequest,UniverNetworkPlugin,ThresholdInterceptorFactory}from'@univerjs/network';import{CollaborationEvent,parseChangesetToProtocol,ISnapshotServerService,isTransformMutationsWithChangesetSuccess,ITransformService,mapDocumentTypeToUniverType,RevisionService,isTransformChangesetsSuccess,CompressMutationService,parseProtocolChangeset,SnapshotService,textEncoder,b64DecodeUnicode,isTransformMutationsWithChangesetFailure,UniverCollaborationPlugin}from'@univerjs-pro/collaboration';import{ITelemetryService}from'@univerjs/telemetry';import{RichTextEditingMutation}from'@univerjs/docs';import{SheetsSelectionsService,SetSelectionsOperation,InsertSheetMutation,EmptyMutation,WorkbookEditablePermission,SheetPermissionInitController,UniverSheetsPlugin}from'@univerjs/sheets';import{ImageSourceType,ImageUploadStatusType,IImageIoService}from'@univerjs/drawing';import{getGlobalObject}from'@univerjs-pro/license';const SNAPSHOT_SERVER_URL_KEY='SNAPSHOT_SERVER_URL_KEY',DEFAULT_SNAPSHOT_SERVER_URL='/universer-api/snapshot',SNAPSHOT_URL_KEY=_0x5deefc(0x20c),SEND_CHANGESET_TIMEOUT_KEY='SEND_CHANGESET_TIMEOUT',DEFAULT_SEND_CHANGESET_TIMEOUT=0x7d0,COLLAB_WEB_SOCKET_URL_KEY=_0x5deefc(0x462),DEFAULT_COLLAB_WEB_SOCKET_URL='ws://127.0.0.1:8000/universer-api/comb/connect',DEFAULT_WS_SESSION_TICKET_URL='/universer-api/user/session-ticket',HEARTBEAT_INTERVAL_KEY='HEARTBEAT_INTERVAL',DEFAULT_HEARTBEAT_INTERVAL=0x7530,HEARTBEAT_TIMEOUT_KEY=_0x5deefc(0x31d),DEFAULT_HEARTBEAT_TIMEOUT=0x4e20,DEFAULT_RETRY_CONNECTING_INTERVAL=0x4e20,RETRY_CONNECTING_MAX_COUNT_KEY=_0x5deefc(0x230),DEFAULT_RETRY_CONNECTING_MAX_COUNT=0x3,LOCAL_CACHE_INTERVAL_KEY=_0x5deefc(0x3a9),LOCAL_CACHE_INTERVAL=0x3e8,COLLAB_SUBMIT_CHANGESET_URL_KEY=_0x5deefc(0x448),DEFAULT_COLLAB_SUBMIT_CHANGESET_URL=_0x5deefc(0x355),LOGIN_URL_KEY='LOGIN_URL_KEY',DEFAULT_LOGIN_URL=_0x5deefc(0x1da),REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY=_0x5deefc(0x481),DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT=_0x5deefc(0x442);var ErrorCode=(_0x4be594=>(_0x4be594[_0x4be594[_0x5deefc(0x2d8)]=0x0]='UNDEFINED',_0x4be594[_0x4be594['OK']=0x1]='OK',_0x4be594[_0x4be594[_0x5deefc(0x3ee)]=0x2]=_0x5deefc(0x3ee),_0x4be594[_0x4be594[_0x5deefc(0x33b)]=0x3]=_0x5deefc(0x33b),_0x4be594[_0x4be594['NOT_FOUND']=0x4]=_0x5deefc(0x48f),_0x4be594[_0x4be594[_0x5deefc(0x2e0)]=0x5]='UNAUTHENTICATED',_0x4be594[_0x4be594[_0x5deefc(0x4a7)]=0x6]=_0x5deefc(0x4a7),_0x4be594[_0x4be594[_0x5deefc(0x1f7)]=0x7]='INVALID_ARGUMENT',_0x4be594[_0x4be594['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x4be594[_0x4be594[_0x5deefc(0x2d6)]=0x9]=_0x5deefc(0x2d6),_0x4be594[_0x4be594[_0x5deefc(0x32f)]=0x1389]=_0x5deefc(0x32f),_0x4be594[_0x4be594['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x5deefc(0x228),_0x4be594[_0x4be594[_0x5deefc(0x4ca)]=0x1772]=_0x5deefc(0x4ca),_0x4be594[_0x4be594[_0x5deefc(0x4c2)]=0x1773]=_0x5deefc(0x4c2),_0x4be594[_0x4be594['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x4be594[_0x4be594[_0x5deefc(0x3df)]=0x1b5a]=_0x5deefc(0x3df),_0x4be594[_0x4be594[_0x5deefc(0x238)]=0x1b5b]=_0x5deefc(0x238),_0x4be594[_0x4be594[_0x5deefc(0x383)]=0x1b5c]=_0x5deefc(0x383),_0x4be594[_0x4be594[_0x5deefc(0x3e9)]=0x1b5d]=_0x5deefc(0x3e9),_0x4be594[_0x4be594[_0x5deefc(0x33c)]=0x1f41]=_0x5deefc(0x33c),_0x4be594[_0x4be594['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x5deefc(0x389),_0x4be594[_0x4be594[_0x5deefc(0x29e)]=0x232a]=_0x5deefc(0x29e),_0x4be594[_0x4be594[_0x5deefc(0x310)]=0x232b]=_0x5deefc(0x310),_0x4be594[_0x4be594[_0x5deefc(0x493)]=0x232c]=_0x5deefc(0x493),_0x4be594[_0x4be594['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x4be594[_0x4be594[_0x5deefc(0x346)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x4be594[_0x4be594[_0x5deefc(0x257)]=0x2712]=_0x5deefc(0x257),_0x4be594[_0x4be594[_0x5deefc(0x2e5)]=0x2713]=_0x5deefc(0x2e5),_0x4be594[_0x4be594[_0x5deefc(0x20f)]=0x2714]=_0x5deefc(0x20f),_0x4be594[_0x4be594['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x5deefc(0x28e),_0x4be594[_0x4be594['UNRECOGNIZED']=-0x1]=_0x5deefc(0x3ed),_0x4be594))(ErrorCode||{}),UniverType=(_0x2019ac=>(_0x2019ac[_0x2019ac[_0x5deefc(0x497)]=0x0]='UNIVER_UNKNOWN',_0x2019ac[_0x2019ac['UNIVER_DOC']=0x1]=_0x5deefc(0x385),_0x2019ac[_0x2019ac[_0x5deefc(0x4a9)]=0x2]=_0x5deefc(0x4a9),_0x2019ac[_0x2019ac[_0x5deefc(0x455)]=0x3]=_0x5deefc(0x455),_0x2019ac[_0x2019ac[_0x5deefc(0x1b2)]=0x4]='UNIVER_PROJECT',_0x2019ac[_0x2019ac[_0x5deefc(0x3ed)]=-0x1]=_0x5deefc(0x3ed),_0x2019ac))(UniverType||{}),CombCmd=(_0x299185=>(_0x299185[_0x299185[_0x5deefc(0x495)]=0x0]='UNKNOWN_CMD',_0x299185[_0x299185[_0x5deefc(0x200)]=0x1]=_0x5deefc(0x200),_0x299185[_0x299185[_0x5deefc(0x4a0)]=0x2]=_0x5deefc(0x4a0),_0x299185[_0x299185[_0x5deefc(0x3a2)]=0x3]=_0x5deefc(0x3a2),_0x299185[_0x299185[_0x5deefc(0x2ca)]=0x4]=_0x5deefc(0x2ca),_0x299185[_0x299185[_0x5deefc(0x1d5)]=0x5]=_0x5deefc(0x1d5),_0x299185[_0x299185[_0x5deefc(0x1e7)]=0x6]='RECV',_0x299185[_0x299185[_0x5deefc(0x3ed)]=-0x1]=_0x5deefc(0x3ed),_0x299185))(CombCmd||{}),CmdRspCode=(_0x272f9b=>(_0x272f9b[_0x272f9b[_0x5deefc(0x429)]=0x0]=_0x5deefc(0x429),_0x272f9b[_0x272f9b['OK']=0x1]='OK',_0x272f9b[_0x272f9b[_0x5deefc(0x231)]=0x2]=_0x5deefc(0x231),_0x272f9b[_0x272f9b[_0x5deefc(0x471)]=0x3e9]=_0x5deefc(0x471),_0x272f9b[_0x272f9b['JOIN_ROOM_NOT_EXISTS']=0x3ea]=_0x5deefc(0x2f3),_0x272f9b[_0x272f9b[_0x5deefc(0x28d)]=0x3eb]='JOIN_ROOM_PERMISSION_DENIED',_0x272f9b[_0x272f9b[_0x5deefc(0x2e7)]=0x3ec]=_0x5deefc(0x2e7),_0x272f9b[_0x272f9b[_0x5deefc(0x3ed)]=-0x1]=_0x5deefc(0x3ed),_0x272f9b))(CmdRspCode||{}),FileSource=(_0x427a87=>(_0x427a87[_0x427a87[_0x5deefc(0x4dd)]=0x0]=_0x5deefc(0x4dd),_0x427a87[_0x427a87[_0x5deefc(0x381)]=0x1]=_0x5deefc(0x381),_0x427a87[_0x427a87['HttpExport']=0x2]=_0x5deefc(0x393),_0x427a87[_0x427a87[_0x5deefc(0x3f6)]=0x3]=_0x5deefc(0x3f6),_0x427a87[_0x427a87[_0x5deefc(0x38d)]=0x4]=_0x5deefc(0x38d),_0x427a87[_0x427a87['UNRECOGNIZED']=-0x1]=_0x5deefc(0x3ed),_0x427a87))(FileSource||{});const COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY=_0x5deefc(0x4ab),defaultPluginConfig={};var CollaborationUIEventId=(_0x2fb256=>(_0x2fb256[_0x5deefc(0x1c1)]=_0x5deefc(0x1c1),_0x2fb256[_0x5deefc(0x33b)]=_0x5deefc(0x33b),_0x2fb256[_0x5deefc(0x203)]='CONFLICT',_0x2fb256[_0x5deefc(0x3c4)]='CLOSE_ROOM',_0x2fb256[_0x5deefc(0x2d1)]=_0x5deefc(0x2d1),_0x2fb256[_0x5deefc(0x280)]=_0x5deefc(0x280),_0x2fb256[_0x5deefc(0x2c6)]=_0x5deefc(0x2c6),_0x2fb256[_0x5deefc(0x3b2)]='SUBMIT_CHANGESET_TIMEOUT',_0x2fb256))(CollaborationUIEventId||{});const _CollaborationUIEventService=class _CollaborationUIEventService{constructor(){var _0xc614c8=_0x5deefc;__publicField(this,_0xc614c8(0x263),new Subject()),__publicField(this,_0xc614c8(0x37b),this[_0xc614c8(0x263)][_0xc614c8(0x272)]());}[_0x5deefc(0x333)](_0x4dfbec){var _0x4aacdc=_0x5deefc;this[_0x4aacdc(0x263)][_0x4aacdc(0x41a)](_0x4dfbec);}};__name(_CollaborationUIEventService,'CollaborationUIEventService');let CollaborationUIEventService=_CollaborationUIEventService;const INetworkConditionService=createIdentifier('univer-pro.collaboration-client.network-condition.service');function _0x1b9e(){var _0xef4425=['hasOwnProperty','_onJoinRoomEvent','appendMutation','_unitInfo$','put','_sendHeartbeatTimer','xorBlock','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','146768qfVrwN','YUUMI_UNABLE_LOAD_URL','clamp','floor','synced','_collabSessionService','PERSON','_transformService','1402368PzWzso','editing\x20status\x20changed\x20to','Decryptor','_stopTelemetryCollaborationNewChangeset','_append','getFocusedUnit','decryptBlock','_clearCollaborationTimeoutTimer','/universer-api/comb','AuthzIoHttpService','_createInitialStateImpl','ERROR_IMAGE','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','commonjsRequire','Pkcs7','objects','joinRsp','allowed','mutations','href','socketService','getAttachHeader','DomainRequestService','{fileID}','getConfig','create','requireLibTypedarrays','_iKey','collaboration-client.local-cache-service','_onMessage','_onConnectionOpen','unitInfo$','CollaborationEntity','updatePermissionObjEvent','_HTTPService','exports','createInstance','_sessions','message$','fromCharCode','/object','CHANGESET_ACK','getCurrentRevOfUnit','__decorateParam$3','requireEvpkdf','_getAPIPrefix','event$','ticket','state','socket\x20open.','requirePadNopadding','string','HttpImport','delete','APPLY_PERMISSION_DENIED','_socket','UNIVER_DOC','/rev/','_getSessionTicket','execute','LICENSE_MAX_UNITS_EXCEEDED','Hex','__decorateClass$4','_candidateSocket','UnitSnapshot','__decorateClass','_onFetchMissResult','_toggleOffline','_map','onlyLocal','HttpExport','session.join-failed','pkcs7Padding','_nRounds','Could\x20not\x20dynamically\x20require\x20\x22','duration','offline','image/png','_retryCount','createEncryptor','_decreaseWaiting','saveSheetBlock','startTime','objectActions','getSnapshotAPIPath','LEAVE','ceil','target','_socketService','_resendTimer','_updateStatus','_registerDependencies','LOCAL_CACHE_INTERVAL','_undoRedoService','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_httpService','MemberService','_onUserLeave','_http','ivSize','PasswordBasedCipher','SUBMIT_CHANGESET_TIMEOUT','_sheetTransformSelectionsService','toLowerCase','/block/','CBC','authzUrl','_scheduleCollaborationTimeoutTimer','__decorateParam$h','_awaitingChangeset','_eventService','_entityInit$','mode','getWorkbookSelections','__decorateParam$6','getRandomValues','LIVESHARE_NEW_HOST','__decorateParam$2','FETCH_MISSING','CLOSE_ROOM','POST','getTypeOfUnitAdded$','onRemoteChangeset','getUnitType','[CollaborationSession]','_process','collaboratorID','_executeRemoteChangeset','/universer-api/file/{fileID}/sign-url','_collaborationPaused','_state','__decorateClass$1','CHANGESET_REJ','_doCryptBlock','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_xformMode','/unit/','unknown','salt','__decorateClass$h','_replayCachedMutations','leaveEvent','_snapshotServerService','cfg','retryConnectingInterval','_onRemoteChangeset','APPLY_NON_SEQUENTIAL_REVISION','/fetchmissing?from=','focused$','awaiting','_telemetryInfo','data','clone','\x0aAfter:\x20','now','readyForCollab','APPLY_DUPLICATED','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_sendingTimer','WordArray','UNRECOGNIZED','INTERNAL_ERROR','_getUploadFileURL','_config','/-/object/list','_clearHeartbeatTimer','memberID','_startTelemetryCollaborationNewChangeset','debug','UnitEmbedded','image/jpeg','unit-cache-','getCollabEntity$','objectID','_timeoutTimer','replace','198863sGWmHH','JOINING','__decorateParam$c','extend','liveShareNewHost','NO_OTHER_CLIENTS_EDITING','createTimerObservable$','image/gif','readInt32LE','BASE64','/object/','_rescheduleHeartbeat','ERROR_EXCEED_SIZE','_updateLocalCache','pending','/new_changes','_transformRemoteChangesetByIMECache','_univerInstanceService','Random\x20bytes\x20length\x20must\x20be\x20>=\x2016','NoPadding','downloadEndpointUrl','__decorateParam$i','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','getCollabEntity','disposeWithMe','[CollaborationSessionService]:\x20socket\x20error','_data','FileNameController','[PendingState]:\x20received\x20acknowledgement.','next','commentUpdateEvent','_entities','then','\x20-\x20','_socketReady','__decorateParam$e','onTransformRemoteChangesetByIMECache','__decorateParam$a','COMPRESS_MUTATION_APPLY','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','/allowed','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','fromCollab','PendingState','UNKNOWN_CODE','_key','processBlock','capture','not_collab','_initMergeInterceptor','_tryEnsureSocket','RoomMember','pipe','fetchThroughInterceptors','/universer-api/authz','_getUndoStack','_keySchedule','_submitChangeset','mixIn','_substituteUndoStack','__publicField','EvpKDF','_collaborationSessionService','params','CollaborationSessionService','save\x20fail\x20reason\x20is\x20','USERS_LEAVE','_transformStateCache','Cipher','/universer-api/uniscript','infoRsp','online$','_roomMembers','_isPermissionRej','_DEC_XFORM_MODE','COLLAB_SUBMIT_CHANGESET_URL','onCommentUpdate','_clearLocalCache','SnapshotServerOverHTTPService','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','session.room-permission-denied','_clearScheduledTask','method','onStateChange','shouldCloseConn','_snapshotService','rng','unitId\x20is\x20not\x20found','UNIVER_SLIDE','_hash','connection\x20error','LIVESHARE_OPERATION','json','_remoteChangesetQueue','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','stopTime','unsafeStringify','SyncedState','_compressMutationService','_members$','updatePermissionPoint','COLLAB_WEB_SOCKET_URL','updateOfflineData','_doFinalize','serializeCombRequest','getValue','process','generateSubmitChangesPath','sessionTicket','_disableEditing','send','8588OgtDiX','__decorateClass$a','unitID','Error\x20on\x20receiving\x20event','_checkMissing','JOIN_ROOM_FULL','resolve','_imageSourceCache','searchParams','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','session.room-not-exists','_nDataBytes','requireAes','slice','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','post','setConfig','_commentUpdate$','cmd','crypto','stringify','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','Hasher','localCacheService','Univer','_onOffline','_onRemoteRejected','range','reduce','PermissionService','selections','_oKey','session.room-full','BlockCipherMode','?url=','NOT_FOUND','bind','transformUndoRedo','CHANGESET_SHOULD_RETRY','LICENSE_EXPORT_SIZE_EXCEEDED','requireEncBase64','UNKNOWN_CMD','error$','UNIVER_UNKNOWN','csAckEvent','_init','onTransformState','__decorateClass$3','subscribe','terminateWithError','_getLoginPath','listCollaborators','JOIN','onTransformRemoteChangesetByStateCache','saveImage','[PendingState]:\x20received\x20rejection.','LIVESHARE_TERMINATE','_ENC_XFORM_MODE','DataLoaderService','ALREADY_EXISTS','handleUnitPermissionChange','UNIVER_SHEET','_loadSheet','collaboration-client.config','_getCtorByUniverType','defineProperty','random','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_collaborationTimeoutTimer','CollaborationSocketService','OTHER_CLIENTS_EDITING','sid','transformMutationsWithChangeset','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','__defNormalProp','Base64','eventID','getUnitStatus$','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','_resendWithTimeout','src','sessionStatus','summaryChangesetSize','_createHmacHelper','unitId','toString','ENSURE_SNAPSHOT_EXECUTION','_initUnitPermissionChange','_onConflict','onRemoteAck','closeSession','Base','_parse','reconnect','SNAPSHOT_HAS_BEEN_REMOVED','hostname','__Key__','requestParams','_retryConnectingTimer','UUID','subject','routeKey','Utf8','assembleSheetChangeset','[DataLoaderService]','loadOfflineData','add','loginUrlKey','_fetchMissChangesets','_doReset','getCurrentSelections','call','onSyncEditingCollabCursor','Undefined','_sessionStatus$','__decorateParam$5','enableAuthServer','_clearUndo','AwaitingWithPendingState','getOwnPropertyDescriptor','_exhaustRemoteChangesetQueue','session.room-cnt-exceeds','_loadDoc','size','changesets','_socketMessageSubscription','_unitID','_getSignURL','MD5','transformChangesets','responseType','_unlockTransition','complete','?size=','roles','editingUnit','snapshot','requireCore','userID','_members','default','finalize','AUTHZ_URL_KEY','hasher','sessionStatus$','FileId','LIVESHARE_FETCH_OPERATIONS','getLocalCacheKey','onTransformIME','deserializeToCombResponse','_localCacheService','_createSocket','_logService','byteLength','UNIVER_PROJECT','_changesetSessionId','catch','conflict','originalMeta','format','encodeURIComponent','__decorateClass$g','startsWith','Latin1','CommentService','getUnitId','reset','incrementRevOfUnit','_joinRoom','OTHER_CLIENT_EDITING','_handler','requireSha1','__decorateClass$e','OFFLINE','dispose$','Encryptor','[UniverCollaborationClientPlugin]','fetchMiss','runId','_scheduleCompleteTimestamp','status','parse','NEW_CHANGESETS','indexOf','USERS_ENTER','_transformUndoredo','updateCursorEvent','_change$','__decorateClass$f','HEARTBEAT','updateCollaborator','BufferedBlockAlgorithm','_type','randomUUID','/universer-api/oidc/authpage','unsubscribe','PSEUDO_FETCH_MISSING_RESULT','interceptor','_showConflictNotification','_revisionService','confirm','SUBMIT_CHANGESET','fetch_missing','_minBufferSize','updateMember','_sender','_invKeySchedule','RECV','FetchingMissState','charCodeAt','uniscriptRunEvent','getSheetBlock','_userManagerService','findIndex','setCurrentUser','getLatestCsReqIdBySid','result','_onRemoteRetry','signUrlServerUrl','_doProcessBlock','_mode','newCsEvent','key','INVALID_ARGUMENT','ConflictState','joinEvent','_transformRemoteChangesetByStateCache','_getSendChangesetTimeout','_initDependencies','\x20in\x20_schedule.','sigBytes','get','HELLO','buffer','push','CONFLICT','uploadFileServerUrl','_queuedRemoteChangesets','AWAITING_WITH_PENDING','_initCloseConn','encode','__decorateParam','_applyRemoteChangeset','reqId','SNAPSHOT_URL_KEY','members','OfflineState','YUUMI_SUBSCRIPTION_NOT_FOUND','code','UNIVER_COLLABORATION_CLIENT_PLUGIN','BlockCipher','localeService','_collaborationUIEventService','_commandService','encrypt','clear','patch','executeCommand','[CollaborationUndoRedoService]','CollaborationController','addHandlerCallback','&to=','_createHelper','init','createSocket','members$','1855XXErbU','compute','SheetCollaborationEntity','8958912LkUkLj','_tryReconnect','randomBytes','SNAPSHOT_INVALID_SNAPSHOT','generateRandomId','csShouldRetryEvent','IDLE','entries','onMissingChangesets','_startCollaboration','AES','RETRY_CONNECTING_MAX_COUNT','FAIL','/resources','splice','ONLINE','__decorateClass$2','_handlerCallback','file','APPLY_REVISION_CONFILICT','list','_onLocalMutation','enc','__decorateClass$d','_transformIMECache','loadDoc','_telemetryService','join','url','onCommandExecuted','_lockTransition','7046145qVMhfc','registerHTTPInterceptor','parseLoop','msCrypto','createDecryptor','[CollaborationState]:\x20apply\x20error!','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_memberService','_clearRedo','_prevBlock','18548240aAoABY','/-/object/-/batch_allowed','_localeService','_undoStacks','_pendingMutations','words','SHOULD_CLOSE_CONN','getTypeOfUnitDisposed$','_getRedoStack','YUUMI_URL_COL_OUT_OF_RANGE','PERMISSION_REJ','_incrementRevisionNumber','isArray','_waitCount','Malformed\x20UTF-8\x20data','_authzIoService','onTransformSelections','transformSelections','[OfflineState]:\x20received\x20acknowledgement.','requireMd5','_onConnectionFailed','_event$','location','encryptBlock','algo','__decorateParam$7','title','unpad','baseRev','cryptoSecureRandomInt','onRemoteRetry','_throwTelemetryCollaborationNewChangeset','getImageSourceCache','auth.needGotoLoginAlert','MUTATION','_iv','asObservable','_createSocketURL','c1Prime','loadUnit','_toggleOnline','_redoStacks','resend','onload','_socket$','workbook','_clearTimeoutTimer','kdf','ERROR_IMAGE_TYPE','abs','SOCKET_FAILED_RETRY','/universer-api/snapshot/','UPDATE_PERMISSION_OBJ','compose','deleteCollaborator','close$','getMemberID','every','_permissionService','session','_acknowledgedAwaitingChangeset','univer-pro.collaboration-client-socket-service','_status$','JOIN_ROOM_PERMISSION_DENIED','PY_RUNTIME_SCRIPT_ERROR','__decorateParam$f','dispose','HmacMD5','/collaborator','snapshotServerUrl','_keyPriorReset','origin','_onUserJoin','_state$','deepClone','_sendHeartbeat','collaMsg','initWorkbookPermissionChange','max','x-univer-host','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','__creator','includes','MentionIoHttpService','filter','_transitionLocked','HMAC','__decorateParam$4','rev','fetchMissingChangesets','status$','copyFileMeta','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','pauseCollaboration','error','People','UNISCRIPT_RUN','onStarting','AwaitingState','image/jpg','search','lib','_updateState','type','keySize','onRemoteRej','CipherParams','$super','removeMember','_initRequestHeader','apply','_hasher','MSG_FOR_ERROR','_singleActiveUnitService','open$','equals','sendChangesetTimeout','headers','SUCCUSS','COMMENT_UPDATE','SOCKET_FAILED','&source=','actions','StreamCipher','INGEST','collaborators','_waitForHeartbeatResponse','setShowComponents','OpenSSL','__decorateParam$b','/universer-api/stream/file/upload','JOIN_ROOM_FAILED','pad','formatter','__decorateParam$8','_transformStack','COMPLETION_FINISHED','AuthServerService','UNDEFINED','_networkConditionService','disableLocalCache','function','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','m2Prime','commentUpdate$','\x20to\x20','UNAUTHENTICATED','getCurrentUser','concat','getInterceptPoints','collaboration_new_changeset','YUUMI_RATE_OVER_LIMIT','COMPRESS_MUTATION_SEND','GLOBAL_ROOMS_CNT_EXCEEDS','104lZggve','_getCurrentRevision','update','blockSize','decrypt','_onCombEvent','min','map','createOnlineState','SYNCED','length','JOIN_ROOM_NOT_EXISTS','getRoom','5ncrEpf','awaitingChangeset','_removeRoom','CollaborationImageIoService','onSendChangeset','_instanceService','onLocalMutation','getMember','__decorateParam$d','[PendingState]:\x20unhandled\x20univer\x20type:\x20','getActiveSheet','OPTIONAL','waitForRoom$','_commentService','objectType','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','getAllMembers','reject','_reverseMap','_cipher','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','[CollaborationSessionService]','toggleOffline','isPermissionRej','_schedule','prototype','toggleOnline','LICENSE_IMPORT_SIZE_EXCEEDED','append','close','_replaceFileID','onMissedChangesetFetched','getSheetId','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','getDeserializedSheetBlock','textRanges','LIVESHARE_REQUEST_HOST','set','has','_resendTimeout','HEARTBEAT_TIMEOUT','_createHandler','getUnit','charAt','_injector','_roomCreated$','state$','body','ciphertext','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','revision','SHA1','forEach','_configService','_onRemoteACK','AWAITING','_getAPIPrefixPath','name','CHANGESET_REVISION_CONFILICT','requireSession','byteOffset','awaiting_with_pending','emitEvent','UPDATE_CURSOR','__decorateClass$b','socket\x20close','saveSnapshot','[SyncedState]:\x20received\x20rejection.','_shouldReportTelemetry','liveShareOperation','PERMISSION_DENIED','CONNECTOR_DATA_TOO_LARGE'];_0x1b9e=function(){return _0xef4425;};return _0x1b9e();}function deserializeToCombResponse(_0x547b50){var _0x3b9da3=_0x5deefc,_0x486508,_0x10d572,_0x306a10,_0x59e494,_0xb42e4f;const _0x40d732=_0x547b50[_0x3b9da3(0x3e4)],_0x45b559=JSON[_0x3b9da3(0x1cd)](_0x40d732);switch(_0x45b559['cmd']){case CombCmd[_0x3b9da3(0x1d5)]:case CombCmd[_0x3b9da3(0x200)]:{const _0x50a228=_0x45b559[_0x3b9da3(0x443)];return{..._0x45b559,'data':_0x50a228,'cmd':_0x45b559['cmd']};}case CombCmd[_0x3b9da3(0x4a0)]:{const _0x15d02c=_0x45b559[_0x3b9da3(0x35d)];return{..._0x45b559,'data':_0x15d02c,'cmd':_0x45b559[_0x3b9da3(0x47e)]};}case CombCmd[_0x3b9da3(0x1e7)]:{const _0x3796df=_0x45b559[_0x3b9da3(0x29a)];switch(_0x3796df[_0x3b9da3(0x4b8)]){case CollaborationEvent[_0x3b9da3(0x258)]:return{..._0x45b559,'data':{..._0x3796df,'data':(_0x486508=_0x3796df['permissionRejEvent'])==null?void 0x0:_0x486508['cs']},'cmd':_0x45b559[_0x3b9da3(0x47e)]};case CollaborationEvent[_0x3b9da3(0x376)]:return{..._0x45b559,'data':{..._0x3796df,'data':(_0x10d572=_0x3796df[_0x3b9da3(0x498)])==null?void 0x0:_0x10d572['cs']},'cmd':_0x45b559[_0x3b9da3(0x47e)]};case CollaborationEvent[_0x3b9da3(0x1ce)]:return{..._0x45b559,'data':{..._0x3796df,'data':(_0x306a10=_0x3796df[_0x3b9da3(0x1f5)])==null?void 0x0:_0x306a10['cs']},'cmd':_0x45b559[_0x3b9da3(0x47e)]};case CollaborationEvent['CHANGESET_REJ']:return{..._0x45b559,'data':{..._0x3796df,'data':(_0x59e494=_0x3796df['csRejEvent'])==null?void 0x0:_0x59e494['cs']},'cmd':_0x45b559['cmd']};case CollaborationEvent[_0x3b9da3(0x492)]:return{..._0x45b559,'data':{..._0x3796df,'data':(_0xb42e4f=_0x3796df[_0x3b9da3(0x22a)])==null?void 0x0:_0xb42e4f['cs']},'cmd':_0x45b559['cmd']};case CollaborationEvent[_0x3b9da3(0x334)]:return{..._0x45b559,'data':{..._0x3796df,'data':_0x3796df[_0x3b9da3(0x1d2)]},'cmd':_0x45b559[_0x3b9da3(0x47e)]};case CollaborationEvent['USERS_ENTER']:return{..._0x45b559,'data':{..._0x3796df,'data':_0x3796df[_0x3b9da3(0x1f9)]},'cmd':_0x45b559['cmd']};case CollaborationEvent[_0x3b9da3(0x43f)]:return{..._0x45b559,'data':{..._0x3796df,'data':_0x3796df[_0x3b9da3(0x3da)]},'cmd':_0x45b559[_0x3b9da3(0x47e)]};case CollaborationEvent[_0x3b9da3(0x3c1)]:return{..._0x45b559,'data':{..._0x3796df,'data':_0x3796df[_0x3b9da3(0x401)]},'cmd':_0x45b559[_0x3b9da3(0x47e)]};case CollaborationEvent[_0x3b9da3(0x1aa)]:case CollaborationEvent[_0x3b9da3(0x458)]:return{..._0x45b559,'data':{..._0x3796df,'data':_0x3796df[_0x3b9da3(0x33a)]},'cmd':_0x45b559[_0x3b9da3(0x47e)]};case CollaborationEvent[_0x3b9da3(0x4a4)]:return{..._0x45b559,'data':{..._0x3796df,'data':_0x3796df[_0x3b9da3(0x401)]},'cmd':_0x45b559[_0x3b9da3(0x47e)]};case CollaborationEvent[_0x3b9da3(0x2be)]:return{..._0x45b559,'data':_0x3796df,'cmd':_0x45b559[_0x3b9da3(0x47e)]};case CollaborationEvent[_0x3b9da3(0x2c5)]:return{..._0x45b559,'data':{..._0x3796df,'data':_0x3796df[_0x3b9da3(0x41b)]},'cmd':_0x45b559[_0x3b9da3(0x47e)]};case CollaborationEvent[_0x3b9da3(0x282)]:return{..._0x45b559,'data':{..._0x3796df,'data':_0x3796df[_0x3b9da3(0x36e)]},'cmd':_0x45b559['cmd']};case CollaborationEvent[_0x3b9da3(0x254)]:return{..._0x45b559,'data':{..._0x3796df,'data':_0x3796df[_0x3b9da3(0x451)]},'cmd':_0x45b559['cmd']};case CollaborationEvent[_0x3b9da3(0x2ae)]:return{..._0x45b559,'data':{..._0x3796df,'data':_0x3796df[_0x3b9da3(0x1ea)]},'cmd':_0x45b559[_0x3b9da3(0x47e)]};default:return _0x45b559;}}default:return _0x45b559;}}__name(deserializeToCombResponse,_0x5deefc(0x1ad));function serializeCombRequest(_0x4171dd){var _0x32fac7=_0x5deefc;switch(_0x4171dd['cmd']){case CombCmd[_0x32fac7(0x1d5)]:case CombCmd[_0x32fac7(0x200)]:return JSON[_0x32fac7(0x480)]({'cmd':_0x4171dd[_0x32fac7(0x47e)],'routeKey':_0x4171dd['routeKey']});case CombCmd[_0x32fac7(0x2ca)]:{let _0x504973;switch(_0x4171dd[_0x32fac7(0x3e4)][_0x32fac7(0x4b8)]){case CollaborationEvent[_0x32fac7(0x334)]:{_0x504973={'eventID':CollaborationEvent['UPDATE_CURSOR'],'updateCursorEvent':_0x4171dd[_0x32fac7(0x3e4)][_0x32fac7(0x3e4)]};break;}case CollaborationEvent[_0x32fac7(0x43f)]:{_0x504973={'eventID':CollaborationEvent['USERS_LEAVE'],'leaveEvent':_0x4171dd['data'][_0x32fac7(0x3e4)]};break;}case CollaborationEvent[_0x32fac7(0x1d0)]:{_0x504973={'eventID':CollaborationEvent['USERS_ENTER'],'joinEvent':_0x4171dd[_0x32fac7(0x3e4)][_0x32fac7(0x3e4)]};break;}case CollaborationEvent[_0x32fac7(0x3c1)]:{_0x504973={'eventID':CollaborationEvent[_0x32fac7(0x3c1)],'liveShareNewHost':_0x4171dd[_0x32fac7(0x3e4)][_0x32fac7(0x3e4)]};break;}case CollaborationEvent['LIVESHARE_OPERATION']:{_0x504973={'eventID':CollaborationEvent[_0x32fac7(0x458)],'liveShareOperation':_0x4171dd['data'][_0x32fac7(0x3e4)]};break;}case CollaborationEvent[_0x32fac7(0x4a4)]:{_0x504973={'eventID':CollaborationEvent[_0x32fac7(0x4a4)],'liveShareTerminate':_0x4171dd['data']['data']};break;}case CollaborationEvent[_0x32fac7(0x319)]:{_0x504973={'eventID':CollaborationEvent[_0x32fac7(0x319)],'liveShareRequestHost':_0x4171dd[_0x32fac7(0x3e4)][_0x32fac7(0x3e4)]};break;}case CollaborationEvent['LIVESHARE_FETCH_OPERATIONS']:{_0x504973={'eventID':CollaborationEvent[_0x32fac7(0x1aa)]};break;}default:_0x504973={'eventID':_0x4171dd[_0x32fac7(0x3e4)][_0x32fac7(0x4b8)]};}return JSON[_0x32fac7(0x480)]({'cmd':_0x4171dd['cmd'],'routeKey':_0x4171dd['routeKey'],'collaMsg':_0x504973});}case CombCmd[_0x32fac7(0x4a0)]:return JSON[_0x32fac7(0x480)]({'cmd':_0x4171dd[_0x32fac7(0x47e)],'routeKey':_0x4171dd[_0x32fac7(0x4d1)],'joinReq':_0x4171dd['data']});case CombCmd['LEAVE']:return JSON[_0x32fac7(0x480)]({'cmd':_0x4171dd[_0x32fac7(0x47e)],'routeKey':_0x4171dd['routeKey'],'leaveReq':_0x4171dd['data']});default:throw new Error(_0x32fac7(0x45b));}}__name(serializeCombRequest,_0x5deefc(0x465));var __defProp$i=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$i=Object[_0x5deefc(0x4e3)],__decorateClass$i=__name((_0x268472,_0xb5a9c6,_0x16e7a8,_0x410096)=>{for(var _0x4b6033=_0x410096>0x1?void 0x0:_0x410096?__getOwnPropDesc$i(_0xb5a9c6,_0x16e7a8):_0xb5a9c6,_0x9eb780=_0x268472['length']-0x1,_0x2f7403;_0x9eb780>=0x0;_0x9eb780--)(_0x2f7403=_0x268472[_0x9eb780])&&(_0x4b6033=(_0x410096?_0x2f7403(_0xb5a9c6,_0x16e7a8,_0x4b6033):_0x2f7403(_0x4b6033))||_0x4b6033);return _0x410096&&_0x4b6033&&__defProp$i(_0xb5a9c6,_0x16e7a8,_0x4b6033),_0x4b6033;},'__decorateClass$i'),__decorateParam$i=__name((_0x373e8e,_0x8e2dc8)=>(_0x5101fa,_0x23c80e)=>_0x8e2dc8(_0x5101fa,_0x23c80e,_0x373e8e),_0x5deefc(0x412));const ICollaborationSocketService=createIdentifier(_0x5deefc(0x28b));function generateSubmitChangesPath(_0x568ae7,_0x458551,_0x3193b9){var _0x3befeb=_0x5deefc;return _0x568ae7+'/'+_0x458551+'/unit/'+_0x3193b9+_0x3befeb(0x40c);}__name(generateSubmitChangesPath,_0x5deefc(0x468));var _a;let CollaborationSocketService=(_a=class extends Disposable{constructor(_0x19cb0f,_0x4f26c7,_0x243df8,_0x598bc6,_0x1149e0){var _0x428275=_0x5deefc;super(),this['_injector']=_0x19cb0f,this[_0x428275(0x3af)]=_0x4f26c7,this[_0x428275(0x32a)]=_0x243df8,this[_0x428275(0x1b0)]=_0x598bc6,this['_snapshotServerService']=_0x1149e0;}[_0x5deefc(0x220)](_0x9794c3){var _0x3bb8fb=_0x5deefc;const _0x13d8f3=this['_injector']['get'](ISocketService);if(!_0x13d8f3)throw new Error(_0x3bb8fb(0x3ab));const _0x5de1c1=_0x13d8f3[_0x3bb8fb(0x220)](_0x9794c3);if(!_0x5de1c1)throw new Error(_0x3bb8fb(0x426));const _0x2c92db=new DisposableCollection(),_0x1b9fe1=new Subject();_0x2c92db[_0x3bb8fb(0x4d6)](_0x5de1c1[_0x3bb8fb(0x285)]['subscribe'](_0x17a5ca=>_0x1b9fe1[_0x3bb8fb(0x41a)](_0x17a5ca))),_0x2c92db[_0x3bb8fb(0x4d6)](toDisposable(()=>_0x1b9fe1[_0x3bb8fb(0x4f0)]()));const _0x6b29d8=new Subject();_0x2c92db[_0x3bb8fb(0x4d6)](_0x5de1c1['error$'][_0x3bb8fb(0x49c)](_0x179643=>_0x6b29d8['next'](_0x179643))),_0x2c92db[_0x3bb8fb(0x4d6)](toDisposable(()=>_0x6b29d8[_0x3bb8fb(0x4f0)]()));const _0x4a274d=new Subject();_0x2c92db[_0x3bb8fb(0x4d6)](_0x5de1c1[_0x3bb8fb(0x373)]['subscribe'](_0xba491d=>{var _0x585b38=_0x3bb8fb;const _0x182ccc=deserializeToCombResponse(_0xba491d);_0x4a274d[_0x585b38(0x41a)](_0x182ccc);})),_0x2c92db[_0x3bb8fb(0x4d6)](toDisposable(()=>_0x4a274d[_0x3bb8fb(0x4f0)]()));let _0x4e3744;const _0x4d40ef=__name(()=>{var _0x4c41dc=_0x3bb8fb;_0x6b29d8[_0x4c41dc(0x41a)](new Event(_0x4c41dc(0x457))),_0x1b9fe1['next'](new CloseEvent(_0x4c41dc(0x457))),_0x4e3744[_0x4c41dc(0x312)]();},_0x3bb8fb(0x49d));return _0x4e3744={'memberID':'','close$':_0x1b9fe1[_0x3bb8fb(0x272)](),'error$':_0x6b29d8['asObservable'](),'open$':_0x5de1c1['open$'],'message$':_0x4a274d[_0x3bb8fb(0x272)](),'send':__name(_0x5e3f0b=>{var _0x5b37f8=_0x3bb8fb;if(_0x5e3f0b['cmd']===CombCmd[_0x5b37f8(0x2ca)]){if(_0x5e3f0b[_0x5b37f8(0x3e4)][_0x5b37f8(0x4b8)]===CollaborationEvent['SUBMIT_CHANGESET']){this[_0x5b37f8(0x436)](_0x4e3744,_0x5e3f0b[_0x5b37f8(0x3e4)])[_0x5b37f8(0x1b4)](_0x4fa02e=>{var _0x349ed4=_0x5b37f8;this[_0x349ed4(0x1b0)][_0x349ed4(0x2ac)](_0x4fa02e),_0x4d40ef();});return;}if(_0x5e3f0b[_0x5b37f8(0x3e4)][_0x5b37f8(0x4b8)]===CollaborationEvent[_0x5b37f8(0x3c3)]){const _0xe0dce7=_0x5e3f0b['data'];this[_0x5b37f8(0x4d8)](_0xe0dce7)[_0x5b37f8(0x41d)](_0x1ec617=>{var _0x31a94b=_0x5b37f8;_0x4a274d[_0x31a94b(0x41a)]({'cmd':CombCmd[_0x31a94b(0x1e7)],'code':CmdRspCode['OK'],'routeKey':_0xe0dce7[_0x31a94b(0x3e4)]['unitID'],'routeType':'','data':{'eventID':CollaborationEvent[_0x31a94b(0x1dc)],'data':{'changesets':_0x1ec617}}});})[_0x5b37f8(0x1b4)](_0x22eaeb=>{var _0x8c9933=_0x5b37f8;this['_logService'][_0x8c9933(0x2ac)](_0x22eaeb),_0x4d40ef();});return;}}_0x5de1c1['send'](serializeCombRequest(_0x5e3f0b));},_0x3bb8fb(0x46b)),'close':__name(()=>{var _0x5ee7fe=_0x3bb8fb;_0x5de1c1[_0x5ee7fe(0x312)](),_0x2c92db[_0x5ee7fe(0x290)]();},_0x3bb8fb(0x312))},_0x4e3744;}async[_0x5deefc(0x436)](_0x4191f9,_0x1dce91){var _0x304e21=_0x5deefc,_0x34e419,_0x2671af;const {unitType:_0x3f5cec,unitID:_0x11da6d,changeset:_0x4ffec5}=_0x1dce91[_0x304e21(0x3e4)],_0x58d19d={'unitID':_0x11da6d,'memberID':_0x4191f9['memberID'],'type':_0x3f5cec,'changeset':parseChangesetToProtocol(_0x4ffec5)},_0x5f19da=this['_configService'][_0x304e21(0x365)](COLLAB_SUBMIT_CHANGESET_URL_KEY),_0x55c0ac=this[_0x304e21(0x32a)][_0x304e21(0x365)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x2f5c33=generateSubmitChangesPath((_0x2671af=(_0x34e419=_0x55c0ac==null?void 0x0:_0x55c0ac['collabSubmitChangesetUrl'])!=null?_0x34e419:_0x5f19da)!=null?_0x2671af:DEFAULT_COLLAB_SUBMIT_CHANGESET_URL,_0x3f5cec,_0x11da6d);try{await this[_0x304e21(0x3af)][_0x304e21(0x47b)](_0x2f5c33,{'body':_0x58d19d});}catch(_0x3c24aa){throw this[_0x304e21(0x1b0)][_0x304e21(0x2ac)]('[CollaborationSession]','submit\x20changeset\x20error!'),_0x3c24aa;}}async[_0x5deefc(0x4d8)](_0x2528cb){var _0x390758=_0x5deefc;const {unitID:_0x2e235,from:_0x1a6429,to:_0x121ac8,unitType:_0x1d1e6d}=_0x2528cb['data'];return(await this[_0x390758(0x3db)][_0x390758(0x2a7)]({'metadata':void 0x0},{'unitID':_0x2e235,'type':_0x1d1e6d,'from':_0x1a6429,'to':_0x121ac8}))[_0x390758(0x4e8)];}},__name(_a,_0x5deefc(0x4b1)),_a);CollaborationSocketService=__decorateClass$i([__decorateParam$i(0x0,Inject(Injector)),__decorateParam$i(0x1,Inject(HTTPService)),__decorateParam$i(0x2,IConfigService),__decorateParam$i(0x3,ILogService),__decorateParam$i(0x4,ISnapshotServerService)],CollaborationSocketService);const TELEMETRY_COLLABORATION_NEW_CHANGESET=_0x5deefc(0x2e4);function summaryChangesetSize(_0x39db0c){var _0x33dc71=_0x5deefc;return JSON[_0x33dc71(0x480)](_0x39db0c)[_0x33dc71(0x2f2)];}__name(summaryChangesetSize,_0x5deefc(0x4be));const _CommentService=class _CommentService{constructor(){var _0xdcee54=_0x5deefc;__publicField(this,_0xdcee54(0x47d),new Subject()),__publicField(this,_0xdcee54(0x2de),this[_0xdcee54(0x47d)]['asObservable']());}[_0x5deefc(0x449)](_0x141036){this['_commentUpdate$']['next'](_0x141036);}};__name(_CommentService,_0x5deefc(0x1bc));let CommentService=_CommentService;var __defProp$h=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$h=Object['getOwnPropertyDescriptor'],__decorateClass$h=__name((_0x664b58,_0x107675,_0x4cb210,_0x1f4455)=>{var _0x1bf48b=_0x5deefc;for(var _0x595fe1=_0x1f4455>0x1?void 0x0:_0x1f4455?__getOwnPropDesc$h(_0x107675,_0x4cb210):_0x107675,_0x3cb64e=_0x664b58[_0x1bf48b(0x2f2)]-0x1,_0x3e98d4;_0x3cb64e>=0x0;_0x3cb64e--)(_0x3e98d4=_0x664b58[_0x3cb64e])&&(_0x595fe1=(_0x1f4455?_0x3e98d4(_0x107675,_0x4cb210,_0x595fe1):_0x3e98d4(_0x595fe1))||_0x595fe1);return _0x1f4455&&_0x595fe1&&__defProp$h(_0x107675,_0x4cb210,_0x595fe1),_0x595fe1;},_0x5deefc(0x3d8)),__decorateParam$h=__name((_0x53c2bb,_0x3a32b2)=>(_0x469949,_0x4a8424)=>_0x3a32b2(_0x469949,_0x4a8424,_0x53c2bb),_0x5deefc(0x3b9)),_a2;let MemberService=(_a2=class extends Disposable{constructor(_0xf0714f,_0x4a24e9){var _0x1129d7=_0x5deefc;super(),__publicField(this,'_roomMembers',new Map()),__publicField(this,_0x1129d7(0x322),new Subject()),(this[_0x1129d7(0x40e)]=_0xf0714f,this[_0x1129d7(0x1ec)]=_0x4a24e9,this[_0x1129d7(0x415)](merge(this[_0x1129d7(0x40e)][_0x1129d7(0x255)](UniverInstanceType[_0x1129d7(0x4a9)])[_0x1129d7(0x431)](map(_0x3f8db8=>_0x3f8db8['getUnitId']())),this[_0x1129d7(0x40e)][_0x1129d7(0x255)](UniverInstanceType[_0x1129d7(0x385)])[_0x1129d7(0x431)](map(_0x3f181f=>_0x3f181f['getUnitId']())),this[_0x1129d7(0x40e)][_0x1129d7(0x255)](UniverInstanceType['UNIVER_SLIDE'])[_0x1129d7(0x431)](map(_0x3cfcd1=>_0x3cfcd1[_0x1129d7(0x1bd)]())))['subscribe'](_0x573aba=>this[_0x1129d7(0x2f7)](_0x573aba))));}[_0x5deefc(0x301)](_0x32f4e8){var _0x49d929=_0x5deefc;return this['_roomMembers']['has'](_0x32f4e8)?of(this[_0x49d929(0x445)][_0x49d929(0x1ff)](_0x32f4e8)):this['_roomCreated$']['pipe'](map(_0x26896a=>{var _0x11fbd1=_0x49d929;if(_0x26896a===_0x32f4e8)return this[_0x11fbd1(0x445)][_0x11fbd1(0x1ff)](_0x26896a);}));}[_0x5deefc(0x1ee)](_0x1752fb){var _0x2429df=_0x5deefc;this['_userManagerService'][_0x2429df(0x1ee)](_0x1752fb);}[_0x5deefc(0x2e1)](){var _0x18bfc0=_0x5deefc;return this[_0x18bfc0(0x1ec)]['getCurrentUser']();}['updateMember'](_0x29d523,_0x3698f9){var _0x5eec5d=_0x5deefc;let _0x2d8009=this[_0x5eec5d(0x445)][_0x5eec5d(0x1ff)](_0x29d523);_0x2d8009||(_0x2d8009=new RoomMember(),this[_0x5eec5d(0x445)][_0x5eec5d(0x31a)](_0x29d523,_0x2d8009),this[_0x5eec5d(0x322)][_0x5eec5d(0x41a)](_0x29d523)),_0x2d8009[_0x5eec5d(0x1e4)](_0x3698f9);}['removeMember'](_0x7bb20d,_0x571a62){var _0x5ec3bd=_0x5deefc;const _0x4c3609=this[_0x5ec3bd(0x445)][_0x5ec3bd(0x1ff)](_0x7bb20d);_0x4c3609&&_0x4c3609['removeMember'](_0x571a62);}[_0x5deefc(0x2f4)](_0x4b5411){var _0x195407=_0x5deefc;return this[_0x195407(0x445)][_0x195407(0x1ff)](_0x4b5411);}[_0x5deefc(0x2fc)](_0x3b4f75,_0x5b91c2){var _0x435a3a=_0x5deefc;const _0x221424=this[_0x435a3a(0x445)][_0x435a3a(0x1ff)](_0x3b4f75);if(_0x221424)return _0x221424[_0x435a3a(0x2fc)](_0x5b91c2);}[_0x5deefc(0x2f7)](_0x501ea6){var _0x5474c5=_0x5deefc;const _0x134030=this[_0x5474c5(0x445)]['get'](_0x501ea6);_0x134030&&(_0x134030['dispose'](),this[_0x5474c5(0x445)][_0x5474c5(0x382)](_0x501ea6));}['dispose'](){var _0x3a867c=_0x5deefc;this['_roomMembers'][_0x3a867c(0x329)](_0xa019c3=>_0xa019c3[_0x3a867c(0x290)]()),this['_roomMembers'][_0x3a867c(0x217)](),this[_0x3a867c(0x322)][_0x3a867c(0x4f0)]();}},__name(_a2,_0x5deefc(0x3ad)),_a2);MemberService=__decorateClass$h([__decorateParam$h(0x0,IUniverInstanceService),__decorateParam$h(0x1,Inject(UserManagerService))],MemberService);const _RoomMember=class _RoomMember extends Disposable{constructor(){var _0x3b153e=_0x5deefc;super(...arguments),__publicField(this,_0x3b153e(0x4f7),new Map()),__publicField(this,_0x3b153e(0x460),new BehaviorSubject(this[_0x3b153e(0x4f7)])),__publicField(this,_0x3b153e(0x221),this[_0x3b153e(0x460)][_0x3b153e(0x272)]());}['dispose'](){var _0x5a35d7=_0x5deefc;this[_0x5a35d7(0x4f7)][_0x5a35d7(0x217)]();}[_0x5deefc(0x1e4)](_0x4a80cc){var _0xf26a93=_0x5deefc;this['_members'][_0xf26a93(0x31a)](_0x4a80cc[_0xf26a93(0x3f3)],_0x4a80cc),this['_emitMembers']();}[_0x5deefc(0x2ba)](_0x256640){var _0x2fe544=_0x5deefc;this[_0x2fe544(0x4f7)][_0x2fe544(0x382)](_0x256640);}[_0x5deefc(0x2fc)](_0xb15d17){var _0x595a92=_0x5deefc;return this[_0x595a92(0x4f7)][_0x595a92(0x1ff)](_0xb15d17);}[_0x5deefc(0x305)](){var _0x13417e=_0x5deefc;return Array['from'](this[_0x13417e(0x4f7)]['values']());}['_emitMembers'](){var _0x434d0f=_0x5deefc;this[_0x434d0f(0x460)][_0x434d0f(0x41a)](this['_members']);}};__name(_RoomMember,_0x5deefc(0x430));let RoomMember=_RoomMember;var __defProp$g=Object['defineProperty'],__getOwnPropDesc$g=Object[_0x5deefc(0x4e3)],__decorateClass$g=__name((_0x2a9a81,_0x4576ad,_0x256db5,_0x3a1ac3)=>{var _0x1df65b=_0x5deefc;for(var _0x4405b8=_0x3a1ac3>0x1?void 0x0:_0x3a1ac3?__getOwnPropDesc$g(_0x4576ad,_0x256db5):_0x4576ad,_0x4c4a62=_0x2a9a81[_0x1df65b(0x2f2)]-0x1,_0x571c2b;_0x4c4a62>=0x0;_0x4c4a62--)(_0x571c2b=_0x2a9a81[_0x4c4a62])&&(_0x4405b8=(_0x3a1ac3?_0x571c2b(_0x4576ad,_0x256db5,_0x4405b8):_0x571c2b(_0x4405b8))||_0x4405b8);return _0x3a1ac3&&_0x4405b8&&__defProp$g(_0x4576ad,_0x256db5,_0x4405b8),_0x4405b8;},_0x5deefc(0x1b9)),__decorateParam$g=__name((_0x50b96a,_0x502b96)=>(_0x5ac613,_0x33f448)=>_0x502b96(_0x5ac613,_0x33f448,_0x50b96a),'__decorateParam$g'),SessionStatus=(_0x5f05e6=>(_0x5f05e6[_0x5f05e6[_0x5deefc(0x22b)]=0x0]=_0x5deefc(0x22b),_0x5f05e6[_0x5f05e6[_0x5deefc(0x3fe)]=0x1]='JOINING',_0x5f05e6[_0x5f05e6[_0x5deefc(0x1c5)]=0x2]=_0x5deefc(0x1c5),_0x5f05e6[_0x5f05e6['ONLINE']=0x3]=_0x5deefc(0x234),_0x5f05e6))(SessionStatus||{});const FailedReason={[CmdRspCode['FAIL']]:_0x5deefc(0x394),[CmdRspCode[_0x5deefc(0x471)]]:_0x5deefc(0x48c),[CmdRspCode[_0x5deefc(0x2f3)]]:_0x5deefc(0x476),[CmdRspCode[_0x5deefc(0x28d)]]:_0x5deefc(0x44d),[CmdRspCode[_0x5deefc(0x2e7)]]:_0x5deefc(0x4e5)};var _a3;let CollaborationSession=(_a3=class extends RxDisposable{constructor(_0x26c715,_0x2de2ef,_0x564a38,_0x16a62d,_0x4056f3,_0x1328a2,_0x3208f4,_0x1f6218,_0x19161b){var _0x36ab94=_0x5deefc;super(),__publicField(this,_0x36ab94(0x4de),new BehaviorSubject(0x0)),__publicField(this,_0x36ab94(0x4fc),this[_0x36ab94(0x4de)][_0x36ab94(0x272)]()),__publicField(this,_0x36ab94(0x263),new Subject()),__publicField(this,_0x36ab94(0x37b),this[_0x36ab94(0x263)][_0x36ab94(0x272)]()),__publicField(this,_0x36ab94(0x384)),__publicField(this,_0x36ab94(0x4e9)),__publicField(this,_0x36ab94(0x4b0)),__publicField(this,'_shouldReportTelemetry',!0x1),__publicField(this,_0x36ab94(0x3e3),null),(this[_0x36ab94(0x4ea)]=_0x26c715,this['_logService']=_0x564a38,this[_0x36ab94(0x32a)]=_0x16a62d,this[_0x36ab94(0x250)]=_0x4056f3,this[_0x36ab94(0x24b)]=_0x1328a2,this[_0x36ab94(0x302)]=_0x3208f4,this['_collaborationUIEventService']=_0x1f6218,this[_0x36ab94(0x23f)]=_0x19161b,this['_shouldReportTelemetry']=!!this[_0x36ab94(0x23f)],_0x2de2ef['pipe'](takeUntil(this['dispose$']))[_0x36ab94(0x49c)](_0x1a39b9=>{var _0x54619a=_0x36ab94,_0x9444d9;typeof _0x1a39b9>'u'||(this[_0x54619a(0x384)]=_0x1a39b9,_0x1a39b9?(this[_0x54619a(0x1c0)](_0x1a39b9),this[_0x54619a(0x4e9)]=_0x1a39b9[_0x54619a(0x373)][_0x54619a(0x49c)](_0x53a6f2=>{var _0x564a9f=_0x54619a;_0x53a6f2[_0x564a9f(0x4d1)]===this[_0x564a9f(0x4ea)]&&this['_onCombEvent'](_0x53a6f2);})):(this[_0x54619a(0x26d)](),this[_0x54619a(0x4de)][_0x54619a(0x41a)](0x2),(_0x9444d9=this[_0x54619a(0x4e9)])==null||_0x9444d9[_0x54619a(0x1db)](),this['_socketMessageSubscription']=null));}));}get[_0x5deefc(0x4bd)](){var _0x35f155=_0x5deefc;return this['_sessionStatus$'][_0x35f155(0x466)]();}[_0x5deefc(0x286)](){var _0x220120=_0x5deefc,_0x4df89b,_0x9a1ce5;return(_0x9a1ce5=(_0x4df89b=this[_0x220120(0x384)])==null?void 0x0:_0x4df89b[_0x220120(0x3f3)])!=null?_0x9a1ce5:null;}[_0x5deefc(0x290)](){var _0x31b3df=_0x5deefc;super[_0x31b3df(0x290)](),this['dispose$'][_0x31b3df(0x41a)](),this[_0x31b3df(0x1c6)][_0x31b3df(0x4f0)]();}[_0x5deefc(0x312)](){var _0x22021a=_0x5deefc,_0x53f3e7,_0x13f8f9;this[_0x22021a(0x26d)](),(_0x53f3e7=this[_0x22021a(0x384)])==null||_0x53f3e7['send']({'cmd':CombCmd[_0x22021a(0x3a2)],'data':{'roomID':this[_0x22021a(0x4ea)]}}),(_0x13f8f9=this[_0x22021a(0x384)])==null||_0x13f8f9[_0x22021a(0x312)](),this['_event$'][_0x22021a(0x4f0)](),this[_0x22021a(0x4de)]['complete'](),this[_0x22021a(0x290)]();}[_0x5deefc(0x2ed)](_0x109e15){var _0x4b0347=_0x5deefc;_0x109e15[_0x4b0347(0x47e)]===CombCmd['JOIN']?this['_onJoinRoomEvent'](_0x109e15):_0x109e15[_0x4b0347(0x47e)]===CombCmd[_0x4b0347(0x1e7)]&&this['_onRecvEvent'](_0x109e15);}[_0x5deefc(0x1c0)](_0x3ea7b0){var _0x1aeb74=_0x5deefc;this[_0x1aeb74(0x4de)][_0x1aeb74(0x41a)](0x1),_0x3ea7b0[_0x1aeb74(0x46b)]({'cmd':CombCmd[_0x1aeb74(0x4a0)],'routeKey':this[_0x1aeb74(0x4ea)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x5deefc(0x33e)](_0x1cbfb8){var _0x2efcd9=_0x5deefc,_0x55bbc4;if(_0x1cbfb8[_0x2efcd9(0x210)]in FailedReason){this[_0x2efcd9(0x214)][_0x2efcd9(0x333)]({'id':CollaborationUIEventId[_0x2efcd9(0x2d1)],'data':FailedReason[_0x1cbfb8[_0x2efcd9(0x210)]]}),this[_0x2efcd9(0x4de)][_0x2efcd9(0x41a)](0x2);return;}this['_sessionStatus$']['next'](0x3);const _0x4e085d=(_0x55bbc4=_0x1cbfb8[_0x2efcd9(0x3e4)]['roomInfos'][this[_0x2efcd9(0x4ea)]])==null?void 0x0:_0x55bbc4[_0x2efcd9(0x20d)];_0x4e085d&&_0x4e085d[_0x2efcd9(0x329)](_0x157834=>this[_0x2efcd9(0x24b)]['updateMember'](this[_0x2efcd9(0x4ea)],_0x157834));}['_onRecvEvent'](_0x16b1fa){var _0x15a292=_0x5deefc;try{const _0x26bd77=_0x16b1fa[_0x15a292(0x3e4)];switch(_0x26bd77[_0x15a292(0x4b8)]){case CollaborationEvent[_0x15a292(0x1d0)]:this['_onUserJoin'](_0x26bd77),this['_event$']['next'](_0x26bd77);break;case CollaborationEvent[_0x15a292(0x43f)]:this[_0x15a292(0x3ae)](_0x26bd77),this[_0x15a292(0x263)][_0x15a292(0x41a)](_0x26bd77);break;case CollaborationEvent[_0x15a292(0x376)]:case CollaborationEvent['CHANGESET_SHOULD_RETRY']:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x15a292(0x354)](),this['_event$'][_0x15a292(0x41a)](_0x26bd77);break;case CollaborationEvent[_0x15a292(0x2be)]:this['_logService'][_0x15a292(0x2ac)](_0x15a292(0x43e)+JSON[_0x15a292(0x480)](_0x26bd77)),this[_0x15a292(0x263)]['next'](_0x26bd77);break;case CollaborationEvent[_0x15a292(0x2c5)]:this['_commentService'][_0x15a292(0x449)](_0x26bd77[_0x15a292(0x3e4)]),this[_0x15a292(0x263)][_0x15a292(0x41a)](_0x26bd77);break;default:this[_0x15a292(0x263)][_0x15a292(0x41a)](_0x26bd77);}}catch(_0x1ea3ea){this[_0x15a292(0x1b0)][_0x15a292(0x2ac)](_0x1ea3ea,_0x16b1fa);}}[_0x5deefc(0x296)](_0x7edd89){var _0x112c34=_0x5deefc;this[_0x112c34(0x24b)][_0x112c34(0x1e4)](this['_unitID'],_0x7edd89[_0x112c34(0x3e4)]);}[_0x5deefc(0x3ae)](_0x48c524){var _0x2c43ad=_0x5deefc;this[_0x2c43ad(0x24b)]['removeMember'](this[_0x2c43ad(0x4ea)],_0x48c524[_0x2c43ad(0x3e4)][_0x2c43ad(0x3f3)]);}async[_0x5deefc(0x46b)](_0x21b3b,_0x33c5c4){var _0x3820f8=_0x5deefc;if(this['sessionStatus']!==0x3||!this[_0x3820f8(0x384)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x21b3b[_0x3820f8(0x4b8)]===CollaborationEvent[_0x3820f8(0x1e1)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x3820f8(0x3f4)](_0x21b3b)),this['_socket'][_0x3820f8(0x46b)]({'cmd':CombCmd[_0x3820f8(0x2ca)],'routeKey':_0x33c5c4,'routeType':'','data':_0x21b3b});}catch(_0x2b5f4a){this[_0x3820f8(0x1b0)]['error'](_0x2b5f4a);}}[_0x5deefc(0x3b8)](){var _0xaea1b6=_0x5deefc,_0x3d56a4;this['_collaborationTimeoutTimer']=setTimeout(()=>{var _0x2e1269=_0x450a;this['_collaborationTimeoutTimer']=null,this[_0x2e1269(0x214)][_0x2e1269(0x333)]({'id':CollaborationUIEventId['SUBMIT_CHANGESET_TIMEOUT']});},(_0x3d56a4=this[_0xaea1b6(0x32a)][_0xaea1b6(0x365)](HEARTBEAT_TIMEOUT_KEY))!=null?_0x3d56a4:DEFAULT_HEARTBEAT_TIMEOUT);}['_clearCollaborationTimeoutTimer'](){var _0x5b5a81=_0x5deefc;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x5b5a81(0x4b0)]),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x66aee){var _0x28bd8c=_0x5deefc;if(!this[_0x28bd8c(0x339)])return;const {data:_0x6e21fb}=_0x66aee,{unitID:_0x3a2490,changeset:_0x57e8b9}=_0x6e21fb,{mutations:_0x20bb16,type:_0x3ca442}=_0x57e8b9;this[_0x28bd8c(0x3e3)]={'unitId':_0x3a2490,'type':_0x3ca442,'startTime':performance[_0x28bd8c(0x3e7)](),'stopTime':0x0,'duration':0x0,'size':summaryChangesetSize(_0x20bb16)};}[_0x5deefc(0x350)](){var _0xea70c7=_0x5deefc;if(this[_0xea70c7(0x339)]){if(!this[_0xea70c7(0x3e3)]){this[_0xea70c7(0x1b0)][_0xea70c7(0x2ac)](_0xea70c7(0x3c9),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0xea70c7(0x3e3)]['stopTime']=performance[_0xea70c7(0x3e7)](),this[_0xea70c7(0x3e3)][_0xea70c7(0x398)]=this['_telemetryInfo'][_0xea70c7(0x45c)]-this[_0xea70c7(0x3e3)][_0xea70c7(0x39f)],this[_0xea70c7(0x23f)][_0xea70c7(0x42c)](TELEMETRY_COLLABORATION_NEW_CHANGESET,this['_telemetryInfo']),this[_0xea70c7(0x3e3)]=null;}}[_0x5deefc(0x26d)](){var _0x18d778=_0x5deefc;this[_0x18d778(0x3e3)]=null;}},__name(_a3,'CollaborationSession'),_a3);CollaborationSession=__decorateClass$g([__decorateParam$g(0x2,ILogService),__decorateParam$g(0x3,IConfigService),__decorateParam$g(0x4,Inject(LocaleService)),__decorateParam$g(0x5,Inject(MemberService)),__decorateParam$g(0x6,Inject(CommentService)),__decorateParam$g(0x7,Inject(CollaborationUIEventService)),__decorateParam$g(0x8,Optional(ITelemetryService))],CollaborationSession);var __defProp$f=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$f=Object['getOwnPropertyDescriptor'],__decorateClass$f=__name((_0x451f0c,_0x2c1f1f,_0x311315,_0x3af20e)=>{var _0x1359f7=_0x5deefc;for(var _0x48e585=_0x3af20e>0x1?void 0x0:_0x3af20e?__getOwnPropDesc$f(_0x2c1f1f,_0x311315):_0x2c1f1f,_0x432822=_0x451f0c[_0x1359f7(0x2f2)]-0x1,_0x66a706;_0x432822>=0x0;_0x432822--)(_0x66a706=_0x451f0c[_0x432822])&&(_0x48e585=(_0x3af20e?_0x66a706(_0x2c1f1f,_0x311315,_0x48e585):_0x66a706(_0x48e585))||_0x48e585);return _0x3af20e&&_0x48e585&&__defProp$f(_0x2c1f1f,_0x311315,_0x48e585),_0x48e585;},_0x5deefc(0x1d4)),__decorateParam$f=__name((_0x32ce20,_0x4fe451)=>(_0x3e4079,_0x24ec03)=>_0x4fe451(_0x3e4079,_0x24ec03,_0x32ce20),_0x5deefc(0x28f)),_a4;let CollaborationSessionService=(_a4=class extends Disposable{constructor(_0x35a239,_0x5663f7,_0x3e42b3,_0x2a85ff,_0x51fade,_0x5b20eb,_0x39522f){var _0x2dff08=_0x5deefc;super(),__publicField(this,_0x2dff08(0x27a),new BehaviorSubject(void 0x0)),__publicField(this,'socket$',this[_0x2dff08(0x27a)]['asObservable']()),__publicField(this,_0x2dff08(0x38c),null),__publicField(this,'_sessions',new Map()),__publicField(this,_0x2dff08(0x28c),new BehaviorSubject(SessionStatus[_0x2dff08(0x22b)])),__publicField(this,_0x2dff08(0x2a8),this[_0x2dff08(0x28c)]['asObservable']()),__publicField(this,_0x2dff08(0x41f),!0x1),__publicField(this,_0x2dff08(0x4ce)),__publicField(this,_0x2dff08(0x39b),0x0),__publicField(this,'_sendHeartbeatTimer'),__publicField(this,_0x2dff08(0x3fb)),(this[_0x2dff08(0x321)]=_0x35a239,this['_logService']=_0x5663f7,this[_0x2dff08(0x32a)]=_0x3e42b3,this['_socketService']=_0x2a85ff,this['_httpService']=_0x51fade,this['_collaborationUIEventService']=_0x5b20eb,this[_0x2dff08(0x2d9)]=_0x39522f,this['_listenToNetworkCondition']());}get['_socket'](){var _0x5b45b1=_0x5deefc;return this['_socket$'][_0x5b45b1(0x466)]();}['_listenToNetworkCondition'](){var _0x1ecbce=_0x5deefc;this[_0x1ecbce(0x2d9)]&&this[_0x1ecbce(0x415)](this[_0x1ecbce(0x2d9)][_0x1ecbce(0x444)]['subscribe'](_0x58689b=>{var _0xd312f4=_0x1ecbce;_0x58689b&&!this[_0xd312f4(0x384)]&&this[_0xd312f4(0x4c9)](),_0x58689b||this[_0xd312f4(0x485)]();}));}[_0x5deefc(0x290)](){var _0x317d4f=_0x5deefc;super['dispose'](),this[_0x317d4f(0x372)][_0x317d4f(0x329)](_0x48b1f6=>_0x48b1f6[_0x317d4f(0x290)]()),this[_0x317d4f(0x372)]['clear'](),this[_0x317d4f(0x28c)][_0x317d4f(0x4f0)]();}async[_0x5deefc(0x330)](_0x335fb8){var _0xe752a=_0x5deefc;if(this[_0xe752a(0x372)][_0xe752a(0x31b)](_0x335fb8))return this['_sessions'][_0xe752a(0x1ff)](_0x335fb8);this[_0xe752a(0x42f)]();const _0x446b8d=this['_injector'][_0xe752a(0x371)](CollaborationSession,_0x335fb8,this[_0xe752a(0x27a)][_0xe752a(0x272)]());return this['_sessions'][_0xe752a(0x31a)](_0x335fb8,_0x446b8d),_0x446b8d;}['closeSession'](_0x30930a){var _0x3aaa8d=_0x5deefc,_0x4aae16;const _0x43010e=this['_sessions']['get'](_0x30930a);_0x43010e&&(this[_0x3aaa8d(0x372)]['delete'](_0x30930a),_0x43010e[_0x3aaa8d(0x312)]()),this['_sessions'][_0x3aaa8d(0x4e7)]||(_0x4aae16=this[_0x3aaa8d(0x384)])==null||_0x4aae16[_0x3aaa8d(0x312)]();}['reconnect'](){var _0x29bbe6=_0x5deefc;this['_retryCount']=0x0,this[_0x29bbe6(0x4ce)]!=null&&(clearTimeout(this[_0x29bbe6(0x4ce)]),this['_retryConnectingTimer']=null),this['_tryReconnect']();}async[_0x5deefc(0x387)](){var _0x70a9f3=_0x5deefc,_0x2b4bd4,_0x277f56,_0x30cc80;const _0x554f4c=this['_configService']['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x101e91=(_0x2b4bd4=_0x554f4c==null?void 0x0:_0x554f4c['wsSessionTicketUrl'])!=null?_0x2b4bd4:DEFAULT_WS_SESSION_TICKET_URL;return(_0x30cc80=(_0x277f56=(await this[_0x70a9f3(0x3ac)][_0x70a9f3(0x1ff)](_0x101e91,{'headers':{'Content-Type':'application/json'}}))[_0x70a9f3(0x324)])==null?void 0x0:_0x277f56[_0x70a9f3(0x37c)])!=null?_0x30cc80:'';}[_0x5deefc(0x273)](_0x1882d0){var _0x168bbe=_0x5deefc,_0x57f950,_0x2997dc;const _0x1cd345=this[_0x168bbe(0x32a)][_0x168bbe(0x365)](COLLAB_WEB_SOCKET_URL_KEY),_0x12b803=this[_0x168bbe(0x32a)][_0x168bbe(0x365)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x60287d=(_0x2997dc=(_0x57f950=_0x12b803==null?void 0x0:_0x12b803['collabWebSocketUrl'])!=null?_0x57f950:_0x1cd345)!=null?_0x2997dc:DEFAULT_COLLAB_WEB_SOCKET_URL,_0x1971ab=typeof window>'u'?new URL(_0x60287d):new URL(_0x60287d,window[_0x168bbe(0x264)][_0x168bbe(0x295)]);_0x1971ab[_0x168bbe(0x474)][_0x168bbe(0x31a)](_0x168bbe(0x469),_0x1882d0);const _0x392578=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x168bbe(0x264)][_0x168bbe(0x2b2)]);return _0x392578[_0x168bbe(0x1ff)](_0x168bbe(0x1ca))&&_0x1971ab['searchParams'][_0x168bbe(0x31a)]('runId',_0x392578[_0x168bbe(0x1ff)](_0x168bbe(0x1ca))),_0x1971ab[_0x168bbe(0x4c1)]();}async[_0x5deefc(0x1af)](){var _0x1deaf8=_0x5deefc;const _0x24e37f=await this[_0x1deaf8(0x387)](),_0x2f4805=this[_0x1deaf8(0x273)](_0x24e37f),_0x2db6f5=this[_0x1deaf8(0x3a5)][_0x1deaf8(0x220)](_0x2f4805);return this[_0x1deaf8(0x38c)]=_0x2db6f5,_0x2db6f5;}async[_0x5deefc(0x42f)](){var _0x179058=_0x5deefc,_0x253265,_0x5cff13;try{const _0x587f6e=(_0x5cff13=(_0x253265=this[_0x179058(0x384)])!=null?_0x253265:this['_candidateSocket'])!=null?_0x5cff13:await this[_0x179058(0x1af)]();if(_0x587f6e){const _0x13f125=_0x587f6e[_0x179058(0x46b)];_0x587f6e['send']=_0x713628=>(this[_0x179058(0x408)](),_0x13f125[_0x179058(0x2bc)](_0x587f6e,[_0x713628])),_0x587f6e[_0x179058(0x373)][_0x179058(0x49c)](_0x449e26=>this['_onMessage'](_0x587f6e,_0x449e26)),_0x587f6e[_0x179058(0x496)]['pipe'](take(0x1))[_0x179058(0x49c)](_0x1fcf64=>this['_logService'][_0x179058(0x2ac)](_0x179058(0x416),_0x1fcf64)),_0x587f6e[_0x179058(0x2c0)]['pipe'](take(0x1))[_0x179058(0x49c)](()=>{var _0x276f85=_0x179058;this[_0x276f85(0x36b)](_0x587f6e);}),_0x587f6e[_0x179058(0x285)][_0x179058(0x431)](take(0x1))['subscribe'](_0x122bfb=>{var _0x30e796=_0x179058;this[_0x30e796(0x1b0)]['debug']('[CollaborationSessionService]',_0x30e796(0x336),_0x122bfb),this[_0x30e796(0x262)]();});}}catch(_0x456c6c){this[_0x179058(0x1b0)]['error'](_0x456c6c),this[_0x179058(0x262)]();}}[_0x5deefc(0x36b)](_0x2a5a5d){var _0x27f5ea=_0x5deefc;this[_0x27f5ea(0x1b0)][_0x27f5ea(0x3f5)](_0x27f5ea(0x30a),_0x27f5ea(0x37e)),_0x2a5a5d[_0x27f5ea(0x46b)]({'cmd':CombCmd[_0x27f5ea(0x200)]}),this['_rescheduleHeartbeat']();}['_onOffline'](){var _0x1eec42=_0x5deefc;this[_0x1eec42(0x41f)]=!0x1,this[_0x1eec42(0x38c)]=null,this['_status$'][_0x1eec42(0x41a)](SessionStatus[_0x1eec42(0x1c5)]),this[_0x1eec42(0x27a)]['next'](null),this['_clearTimeoutTimer'](),this[_0x1eec42(0x3f2)]();}[_0x5deefc(0x262)](){var _0x923089=_0x5deefc,_0x40e60d;this['_onOffline'](),this[_0x923089(0x39b)]<((_0x40e60d=this[_0x923089(0x32a)][_0x923089(0x365)](RETRY_CONNECTING_MAX_COUNT_KEY))!=null?_0x40e60d:DEFAULT_RETRY_CONNECTING_MAX_COUNT)?(this['_collaborationUIEventService'][_0x923089(0x333)]({'id':CollaborationUIEventId[_0x923089(0x280)]}),this[_0x923089(0x226)]()):this['_collaborationUIEventService'][_0x923089(0x333)]({'id':CollaborationUIEventId[_0x923089(0x2c6)]});}[_0x5deefc(0x226)](){var _0x2e6dce=_0x5deefc,_0x10b827;const _0x2980cf=this[_0x2e6dce(0x39b)],_0x327468=this[_0x2e6dce(0x32a)][_0x2e6dce(0x365)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0xf3569e=_0x2980cf===0x0?0x0:((_0x10b827=_0x327468==null?void 0x0:_0x327468[_0x2e6dce(0x3dd)])!=null?_0x10b827:DEFAULT_RETRY_CONNECTING_INTERVAL)*0x2**_0x2980cf;this['_retryConnectingTimer']=setTimeout(()=>{var _0x3d3ddc=_0x2e6dce;clearTimeout(this[_0x3d3ddc(0x4ce)]),this[_0x3d3ddc(0x4ce)]=null,this[_0x3d3ddc(0x42f)]();},_0xf3569e),this['_retryCount']+=0x1;}[_0x5deefc(0x36a)](_0x2bf7d1,_0x18b14e){var _0x344aa7=_0x5deefc;const {cmd:_0x40d7d3}=_0x18b14e;_0x40d7d3===CombCmd[_0x344aa7(0x200)]&&!this[_0x344aa7(0x41f)]&&(_0x2bf7d1[_0x344aa7(0x3f3)]=_0x18b14e[_0x344aa7(0x3e4)][_0x344aa7(0x3f3)],this[_0x344aa7(0x27a)][_0x344aa7(0x41a)](_0x2bf7d1),this['_status$']['next'](SessionStatus[_0x344aa7(0x234)]),this[_0x344aa7(0x41f)]=!0x0,this[_0x344aa7(0x38c)]=null),_0x40d7d3===CombCmd[_0x344aa7(0x1d5)]&&this[_0x344aa7(0x27c)](),this[_0x344aa7(0x408)]();}['_rescheduleHeartbeat'](){var _0x399217=_0x5deefc,_0x218bd8;this[_0x399217(0x3f2)](),this[_0x399217(0x342)]=setTimeout(()=>this[_0x399217(0x299)](),(_0x218bd8=this['_configService']['getConfig'](HEARTBEAT_INTERVAL_KEY))!=null?_0x218bd8:DEFAULT_HEARTBEAT_INTERVAL);}[_0x5deefc(0x299)](){var _0x2e3374=_0x5deefc;this[_0x2e3374(0x384)][_0x2e3374(0x46b)]({'cmd':CombCmd[_0x2e3374(0x1d5)]}),this['_waitForHeartbeatResponse']();}[_0x5deefc(0x2cc)](){var _0x3dd0dc=_0x5deefc,_0x1de80c;this[_0x3dd0dc(0x3fb)]=setTimeout(()=>this[_0x3dd0dc(0x262)](),(_0x1de80c=this['_configService']['getConfig'](HEARTBEAT_TIMEOUT_KEY))!=null?_0x1de80c:DEFAULT_HEARTBEAT_TIMEOUT);}[_0x5deefc(0x3f2)](){var _0x4545b2=_0x5deefc;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x4545b2(0x342)]),this['_sendHeartbeatTimer']=null);}[_0x5deefc(0x27c)](){var _0x3cbd70=_0x5deefc;this[_0x3cbd70(0x3fb)]!=null&&(clearTimeout(this[_0x3cbd70(0x3fb)]),this[_0x3cbd70(0x3fb)]=null);}},__name(_a4,_0x5deefc(0x43d)),_a4);CollaborationSessionService=__decorateClass$f([__decorateParam$f(0x0,Inject(Injector)),__decorateParam$f(0x1,ILogService),__decorateParam$f(0x2,IConfigService),__decorateParam$f(0x3,ICollaborationSocketService),__decorateParam$f(0x4,Inject(HTTPService)),__decorateParam$f(0x5,Inject(CollaborationUIEventService)),__decorateParam$f(0x6,Optional(INetworkConditionService))],CollaborationSessionService);const byteToHex=[];for(let i=0x0;i<0x100;++i)byteToHex[_0x5deefc(0x202)]((i+0x100)[_0x5deefc(0x4c1)](0x10)[_0x5deefc(0x479)](0x1));function unsafeStringify(_0x1dc52a,_0xe208b4=0x0){var _0x39f259=_0x5deefc;return(byteToHex[_0x1dc52a[_0xe208b4+0x0]]+byteToHex[_0x1dc52a[_0xe208b4+0x1]]+byteToHex[_0x1dc52a[_0xe208b4+0x2]]+byteToHex[_0x1dc52a[_0xe208b4+0x3]]+'-'+byteToHex[_0x1dc52a[_0xe208b4+0x4]]+byteToHex[_0x1dc52a[_0xe208b4+0x5]]+'-'+byteToHex[_0x1dc52a[_0xe208b4+0x6]]+byteToHex[_0x1dc52a[_0xe208b4+0x7]]+'-'+byteToHex[_0x1dc52a[_0xe208b4+0x8]]+byteToHex[_0x1dc52a[_0xe208b4+0x9]]+'-'+byteToHex[_0x1dc52a[_0xe208b4+0xa]]+byteToHex[_0x1dc52a[_0xe208b4+0xb]]+byteToHex[_0x1dc52a[_0xe208b4+0xc]]+byteToHex[_0x1dc52a[_0xe208b4+0xd]]+byteToHex[_0x1dc52a[_0xe208b4+0xe]]+byteToHex[_0x1dc52a[_0xe208b4+0xf]])[_0x39f259(0x3b4)]();}__name(unsafeStringify,_0x5deefc(0x45d));function _0x450a(_0x2c3fa3,_0x1c88bc){var _0x1b9edb=_0x1b9e();return _0x450a=function(_0x450ab3,_0x4f1f09){_0x450ab3=_0x450ab3-0x1a9;var _0x2bdec7=_0x1b9edb[_0x450ab3];return _0x2bdec7;},_0x450a(_0x2c3fa3,_0x1c88bc);}let getRandomValues;const rnds8=new Uint8Array(0x10);function rng(){var _0x320bb5=_0x5deefc;if(!getRandomValues){if(typeof crypto>'u'||!crypto[_0x320bb5(0x3c0)])throw new Error(_0x320bb5(0x359));getRandomValues=crypto[_0x320bb5(0x3c0)][_0x320bb5(0x490)](crypto);}return getRandomValues(rnds8);}__name(rng,'rng');const randomUUID=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x5deefc(0x1d9)]['bind'](crypto),native={'randomUUID':randomUUID};function v4(_0x227790,_0x470278,_0x5ebe40){var _0x2110fa=_0x5deefc,_0x14cb39,_0xf129ef,_0x567752;if(native[_0x2110fa(0x1d9)]&&!_0x227790)return native[_0x2110fa(0x1d9)]();_0x227790=_0x227790||{};const _0x55a6e0=(_0x567752=(_0xf129ef=_0x227790[_0x2110fa(0x4ae)])!=null?_0xf129ef:(_0x14cb39=_0x227790[_0x2110fa(0x453)])==null?void 0x0:_0x14cb39[_0x2110fa(0x4db)](_0x227790))!=null?_0x567752:rng();if(_0x55a6e0['length']<0x10)throw new Error(_0x2110fa(0x40f));return _0x55a6e0[0x6]=_0x55a6e0[0x6]&0xf|0x40,_0x55a6e0[0x8]=_0x55a6e0[0x8]&0x3f|0x80,unsafeStringify(_0x55a6e0);}__name(v4,'v4');const ILocalCacheService=createIdentifier(_0x5deefc(0x369));function getLocalCacheKey(_0x5bb0c0){var _0x54748e=_0x5deefc;return _0x54748e(0x3f8)+_0x5bb0c0;}__name(getLocalCacheKey,_0x5deefc(0x1ab));var __defProp$e=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$e=Object['getOwnPropertyDescriptor'],__decorateClass$e=__name((_0x3afd32,_0x311849,_0x39c0d3,_0x5a3a4f)=>{var _0x3bdc8e=_0x5deefc;for(var _0x36e1d9=_0x5a3a4f>0x1?void 0x0:_0x5a3a4f?__getOwnPropDesc$e(_0x311849,_0x39c0d3):_0x311849,_0x45000d=_0x3afd32[_0x3bdc8e(0x2f2)]-0x1,_0xd8243b;_0x45000d>=0x0;_0x45000d--)(_0xd8243b=_0x3afd32[_0x45000d])&&(_0x36e1d9=(_0x5a3a4f?_0xd8243b(_0x311849,_0x39c0d3,_0x36e1d9):_0xd8243b(_0x36e1d9))||_0x36e1d9);return _0x5a3a4f&&_0x36e1d9&&__defProp$e(_0x311849,_0x39c0d3,_0x36e1d9),_0x36e1d9;},_0x5deefc(0x1c4)),__decorateParam$e=__name((_0x5b8cf6,_0x177d61)=>(_0x3b09d3,_0x10b820)=>_0x177d61(_0x3b09d3,_0x10b820,_0x5b8cf6),_0x5deefc(0x420));function extractTargetFromFirstChangeset(_0x2768fb){var _0x3bc73a=_0x5deefc;const {unitID:_0x5556da,mutations:_0x436417}=_0x2768fb;return{'unitId':_0x5556da,'subUnitId':_0x436417[0x0][_0x3bc73a(0x43c)]['subUnitId']};}__name(extractTargetFromFirstChangeset,'extractTargetFromFirstChangeset');var _a5;let SheetTransformSelectionsService=(_a5=class{constructor(_0x1ad9fe,_0x53e2b6,_0x7d0b52){var _0x219052=_0x5deefc;this['_injector']=_0x1ad9fe,this[_0x219052(0x34c)]=_0x53e2b6,this[_0x219052(0x2fa)]=_0x7d0b52;}['transformSelections'](_0x58a9a5){var _0x5a027f=_0x5deefc,_0x397174,_0x1c5419,_0x1bccaf,_0x235902;const _0x4e7e43=this['_injector'][_0x5a027f(0x1ff)](SheetsSelectionsService),{unitId:_0x281440,subUnitId:_0x47ae12}=extractTargetFromFirstChangeset(_0x58a9a5),_0x35759c=_0x4e7e43==null?void 0x0:_0x4e7e43[_0x5a027f(0x3be)](_0x281440)[_0x5a027f(0x4da)](),_0x28b016=(_0x1c5419=(_0x397174=this['_instanceService'][_0x5a027f(0x31f)](_0x281440))==null?void 0x0:_0x397174[_0x5a027f(0x2ff)]())==null?void 0x0:_0x1c5419[_0x5a027f(0x315)]();if(_0x35759c['length']===0x0||!_0x281440||!_0x47ae12)return;const _0x338ee9=[{'id':SetSelectionsOperation['id'],'params':{'unitId':_0x281440,'subUnitId':_0x28b016,'selections':Tools[_0x5a027f(0x298)](_0x35759c)}}],_0x458c2b=this[_0x5a027f(0x34c)][_0x5a027f(0x4b4)](_0x58a9a5,_0x338ee9);if(!isTransformMutationsWithChangesetSuccess(_0x458c2b))throw _0x458c2b[_0x5a027f(0x2ac)];const _0x442f6c=(_0x235902=(_0x1bccaf=_0x458c2b[_0x5a027f(0x2dd)][0x0])==null?void 0x0:_0x1bccaf['params'])==null?void 0x0:_0x235902[_0x5a027f(0x48a)];if(Array[_0x5a027f(0x25a)](_0x442f6c)&&_0x442f6c['length']){if(_0x442f6c['length']===_0x338ee9[0x0][_0x5a027f(0x43c)][_0x5a027f(0x48a)][_0x5a027f(0x2f2)]&&_0x442f6c[_0x5a027f(0x287)]((_0x48a7e8,_0x1cc919)=>Rectangle[_0x5a027f(0x2c1)](_0x48a7e8[_0x5a027f(0x487)],_0x338ee9[0x0][_0x5a027f(0x43c)][_0x5a027f(0x48a)][_0x1cc919][_0x5a027f(0x487)])))return;this[_0x5a027f(0x321)][_0x5a027f(0x1ff)](ICommandService)['executeCommand'](SetSelectionsOperation['id'],{'unitId':_0x281440,'subUnitId':_0x28b016,'selections':_0x442f6c});}}},__name(_a5,'SheetTransformSelectionsService'),_a5);SheetTransformSelectionsService=__decorateClass$e([__decorateParam$e(0x0,Inject(Injector)),__decorateParam$e(0x1,ITransformService),__decorateParam$e(0x2,IUniverInstanceService)],SheetTransformSelectionsService);const ISingleActiveUnitService=createIdentifier('univer-pro.collaboration-client.single-active-unit-service');var UnitStatus=(_0x5259ea=>(_0x5259ea[_0x5259ea[_0x5deefc(0x402)]=0x0]=_0x5deefc(0x402),_0x5259ea[_0x5259ea['OTHER_CLIENTS_EDITING']=0x1]=_0x5deefc(0x4b2),_0x5259ea))(UnitStatus||{});const SINGLE_CHANGESET_MUTATIONS=new Set([InsertSheetMutation['id']]);function assembleSheetChangeset(_0x1befae,_0x24be68,_0x31acdb,_0x213fea,_0x224d6a){var _0x38022f=_0x5deefc,_0x262abb,_0x28d9e5,_0x4fd3ac,_0x39819c;const _0x22108f=[];for(const _0x3f27da of _0x1befae)if(SINGLE_CHANGESET_MUTATIONS[_0x38022f(0x31b)](_0x3f27da['id'])){if(_0x22108f[_0x38022f(0x2f2)]>0x0)break;_0x22108f['push'](_0x3f27da);break;}else _0x22108f[_0x38022f(0x202)](_0x3f27da);const _0x201e0e=(_0x28d9e5=(_0x262abb=_0x224d6a[_0x38022f(0x2e1)]())==null?void 0x0:_0x262abb[_0x38022f(0x4f6)])!=null?_0x28d9e5:'unknown',_0x5af055=(_0x39819c=(_0x4fd3ac=_0x224d6a[_0x38022f(0x2e1)]())==null?void 0x0:_0x4fd3ac['memberID'])!=null?_0x39819c:'unknown';return{'changeset':{'unitID':_0x24be68,'type':mapDocumentTypeToUniverType(_0x31acdb['getUnitType'](_0x24be68)),'baseRev':_0x213fea['getCurrentRevOfUnit'](_0x24be68),'revision':0x0,'userID':_0x201e0e,'memberID':_0x5af055,'mutations':_0x22108f},'pendingMutations':_0x1befae[_0x38022f(0x479)](_0x22108f[_0x38022f(0x2f2)])};}__name(assembleSheetChangeset,_0x5deefc(0x4d3));function assembleDocChangeset(_0x46be30,_0x54ae9d,_0x4d7317,_0x59826f,_0x3c45d0){var _0x284599=_0x5deefc,_0x1a87b0,_0x41592d,_0x877358,_0x13b8c2;const _0x2ae741=[_0x46be30['reduce']((_0x185b3f,_0x3985c7)=>{var _0x3ba07a=_0x450a,_0x184cfa;const {id:_0x4fc40f}=_0x185b3f,{id:_0x56e411,type:_0x31a3ad}=_0x3985c7,_0x3e9fcf=(_0x184cfa=_0x185b3f[_0x3ba07a(0x43c)])!=null?_0x184cfa:{'actions':null},_0x3fb15e=_0x3985c7[_0x3ba07a(0x43c)];if(_0x4fc40f&&_0x4fc40f!==_0x56e411)throw new Error(_0x3ba07a(0x3d3)+_0x4fc40f+_0x3ba07a(0x41e)+_0x56e411+'.');return{..._0x185b3f,'id':_0x56e411,'type':_0x31a3ad,'params':{'unitId':_0x3fb15e[_0x3ba07a(0x4c0)],'textRanges':_0x3fb15e[_0x3ba07a(0x318)],'actions':JSONX[_0x3ba07a(0x283)](_0x3e9fcf[_0x3ba07a(0x2c8)],_0x3fb15e[_0x3ba07a(0x2c8)])}};},{})],_0x50d3d7=(_0x41592d=(_0x1a87b0=_0x3c45d0[_0x284599(0x2e1)]())==null?void 0x0:_0x1a87b0[_0x284599(0x4f6)])!=null?_0x41592d:_0x284599(0x3d6),_0x57c3a1=(_0x13b8c2=(_0x877358=_0x3c45d0[_0x284599(0x2e1)]())==null?void 0x0:_0x877358[_0x284599(0x3f3)])!=null?_0x13b8c2:_0x284599(0x3d6);return{'changeset':{'unitID':_0x54ae9d,'type':mapDocumentTypeToUniverType(_0x4d7317[_0x284599(0x3c8)](_0x54ae9d)),'baseRev':_0x59826f[_0x284599(0x377)](_0x54ae9d),'revision':0x0,'userID':_0x50d3d7,'memberID':_0x57c3a1,'mutations':_0x2ae741},'pendingMutations':[]};}__name(assembleDocChangeset,'assembleDocChangeset');function createTimerObservable$(_0x45dabc,_0x510210){var _0x17ec02=_0x5deefc;const _0xc171dd=new ReplaySubject(0x1);return setTimeout(()=>_0xc171dd['next'](_0x510210),_0x45dabc),_0xc171dd[_0x17ec02(0x272)]()['pipe'](_0x21435b(0x1));}__name(createTimerObservable$,_0x5deefc(0x403));const EmptyMutationInfo={'id':EmptyMutation['id'],'type':CommandType[_0x5deefc(0x270)],'params':{}};var __defProp$d=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$d=Object[_0x5deefc(0x4e3)],__decorateClass$d=__name((_0x2a7e09,_0x5901e9,_0x2ce7f6,_0x524034)=>{var _0x438d05=_0x5deefc;for(var _0x4387af=_0x524034>0x1?void 0x0:_0x524034?__getOwnPropDesc$d(_0x5901e9,_0x2ce7f6):_0x5901e9,_0x91a403=_0x2a7e09[_0x438d05(0x2f2)]-0x1,_0x598615;_0x91a403>=0x0;_0x91a403--)(_0x598615=_0x2a7e09[_0x91a403])&&(_0x4387af=(_0x524034?_0x598615(_0x5901e9,_0x2ce7f6,_0x4387af):_0x598615(_0x4387af))||_0x4387af);return _0x524034&&_0x4387af&&__defProp$d(_0x5901e9,_0x2ce7f6,_0x4387af),_0x4387af;},_0x5deefc(0x23c)),__decorateParam$d=__name((_0x6a68ae,_0x23a213)=>(_0x455e37,_0xb00edf)=>_0x23a213(_0x455e37,_0xb00edf,_0x6a68ae),_0x5deefc(0x2fd)),CollaborationStatus=(_0x3233e3=>(_0x3233e3['NOT_COLLAB']=_0x5deefc(0x42d),_0x3233e3[_0x5deefc(0x2f1)]=_0x5deefc(0x349),_0x3233e3['PENDING']='pending',_0x3233e3[_0x5deefc(0x32c)]=_0x5deefc(0x3e2),_0x3233e3[_0x5deefc(0x206)]=_0x5deefc(0x332),_0x3233e3['FETCH_MISS']=_0x5deefc(0x1e2),_0x3233e3[_0x5deefc(0x203)]='conflict',_0x3233e3['OFFLINE']=_0x5deefc(0x399),_0x3233e3))(CollaborationStatus||{});const MAX_RETRY_TIMEOUT=0xea60,_CollaborationState=class _CollaborationState{constructor(_0x3e0e95,_0x4e8cc2,_0xe74b9c,_0x4b5769,_0x52dcc8,_0x1a766f,_0x581846,_0x18211b,_0xc3f569){var _0x189d48=_0x5deefc;__publicField(this,_0x189d48(0x3ba),null),__publicField(this,'_pendingMutations',[]),(this[_0x189d48(0x46e)]=_0x3e0e95,this[_0x189d48(0x2b5)]=_0x4e8cc2,this['_handler']=_0x52dcc8,this[_0x189d48(0x215)]=_0x1a766f,this['_undoRedoService']=_0x581846,this['_revisionService']=_0x18211b,this['_localCacheService']=_0xc3f569,this[_0x189d48(0x3ba)]=_0xe74b9c,this[_0x189d48(0x252)]=_0x4b5769);}[_0x5deefc(0x470)](_0x2cd12e){var _0xa438c=_0x5deefc;const _0x48cfff=this[_0xa438c(0x1df)]['getCurrentRevOfUnit'](this[_0xa438c(0x46e)]);return _0x2cd12e[_0xa438c(0x327)]>_0x48cfff+0x1?(this[_0xa438c(0x1c2)]['onMissingChangesets']({'from':_0x48cfff,'to':_0x2cd12e[_0xa438c(0x327)]-0x1}),!0x0):!0x1;}[_0x5deefc(0x1d1)](_0x5cb77b){var _0x5f24f8=_0x5deefc;this[_0x5f24f8(0x3aa)][_0x5f24f8(0x491)](this['unitID'],_0x5cb77b);}['_transformSelections'](_0x280de5){var _0x4da552=_0x5deefc,_0x2c49b0,_0x519693;(_0x519693=(_0x2c49b0=this[_0x4da552(0x1c2)])[_0x4da552(0x25e)])==null||_0x519693['call'](_0x2c49b0,_0x280de5);}['_transformIMECache'](_0x2b9863){var _0x5c00bd=_0x5deefc,_0x5b58e3,_0x4c85d9;return(_0x4c85d9=(_0x5b58e3=this[_0x5c00bd(0x1c2)])[_0x5c00bd(0x1ac)])==null?void 0x0:_0x4c85d9['call'](_0x5b58e3,_0x2b9863);}[_0x5deefc(0x440)](_0x5f02d5){var _0x5c765f=_0x5deefc,_0x1afc51,_0x3387ed;return(_0x3387ed=(_0x1afc51=this[_0x5c765f(0x1c2)])[_0x5c765f(0x49a)])==null?void 0x0:_0x3387ed[_0x5c765f(0x4db)](_0x1afc51,_0x5f02d5);}[_0x5deefc(0x40d)](_0x1f95f7){var _0x2e8227=_0x5deefc,_0x2c2fc4,_0x12e99c,_0x4bfa5a;return(_0x4bfa5a=(_0x12e99c=(_0x2c2fc4=this[_0x2e8227(0x1c2)])[_0x2e8227(0x421)])==null?void 0x0:_0x12e99c['call'](_0x2c2fc4,_0x1f95f7))!=null?_0x4bfa5a:_0x1f95f7;}[_0x5deefc(0x1fa)](_0x35e808){var _0x2c79d8=_0x5deefc,_0x5c0b68,_0x6659e0,_0x2e0ab8;return(_0x2e0ab8=(_0x6659e0=(_0x5c0b68=this[_0x2c79d8(0x1c2)])[_0x2c79d8(0x4a1)])==null?void 0x0:_0x6659e0[_0x2c79d8(0x4db)](_0x5c0b68,_0x35e808))!=null?_0x2e0ab8:_0x35e808;}['_syncEditingCollabCursor'](_0x27c3f5){var _0xf5524a=_0x5deefc,_0x188308,_0x1cadc3;if(this[_0xf5524a(0x2b5)]===UniverType[_0xf5524a(0x385)]){const {unitID:_0x246931,mutations:_0x4bb0a6,memberID:_0x2df66c}=_0x27c3f5,_0x5c6fe0=_0x4bb0a6[0x0]['params'][_0xf5524a(0x318)];Array[_0xf5524a(0x25a)](_0x5c6fe0)&&_0x5c6fe0[_0xf5524a(0x2f2)]>0x0&&((_0x1cadc3=(_0x188308=this[_0xf5524a(0x1c2)])[_0xf5524a(0x4dc)])==null||_0x1cadc3['call'](_0x188308,{'unitID':_0x246931,'memberID':_0x2df66c,'textRanges':_0x5c6fe0}));}}[_0x5deefc(0x40a)](){var _0x4c16be=_0x5deefc,_0x2f11e8;(_0x2f11e8=this[_0x4c16be(0x1ae)])==null||_0x2f11e8[_0x4c16be(0x463)](this[_0x4c16be(0x46e)],this[_0x4c16be(0x2b5)],this['_awaitingChangeset'],this[_0x4c16be(0x252)]);}[_0x5deefc(0x2e9)](){var _0xcd48f4=_0x5deefc;return this['_revisionService'][_0xcd48f4(0x377)](this['unitID']);}['_incrementRevisionNumber'](){var _0x35561a=_0x5deefc;this[_0x35561a(0x1df)][_0x35561a(0x1bf)](this['unitID']);}['_executeRemoteChangeset'](_0x46c397){var _0x3716c6=_0x5deefc,_0x1a8d9e;let _0x326b36=this[_0x3716c6(0x40d)](_0x46c397);_0x326b36=this['_transformRemoteChangesetByStateCache'](_0x326b36);const _0x3223f1=sequenceExecute(_0x326b36[_0x3716c6(0x35f)],this[_0x3716c6(0x215)],{'fromCollab':!0x0});if(!_0x3223f1[_0x3716c6(0x1f0)])throw _0x3223f1[_0x3716c6(0x2ac)]instanceof Error?_0x3223f1['error']:new Error((_0x1a8d9e=_0x3223f1[_0x3716c6(0x2ac)])!=null?_0x1a8d9e:_0x3716c6(0x249));this[_0x3716c6(0x23d)](_0x326b36),this['_transformStateCache'](_0x326b36),this[_0x3716c6(0x1d1)](_0x46c397),this['_transformSelections'](_0x326b36),this['_syncEditingCollabCursor'](_0x326b36),this[_0x3716c6(0x259)]();}};__name(_CollaborationState,'CollaborationState');let CollaborationState=_CollaborationState;var _a6;let SyncedState=(_a6=class extends CollaborationState{constructor(_0x370e3f,_0x31c76d,_0x30984f,_0x2bff30,_0xa4951,_0x13621c,_0x1ce0c0,_0x5e9c50,_0xcb38,_0x527a03){var _0x4772ce=_0x5deefc;super(_0x370e3f,_0x31c76d,null,[],_0x30984f,_0x1ce0c0,_0x13621c,_0x2bff30,_0x527a03),__publicField(this,_0x4772ce(0x1cc),'synced'),(this[_0x4772ce(0x321)]=_0xa4951,this['_logService']=_0x5e9c50,this[_0x4772ce(0x34c)]=_0xcb38,this[_0x4772ce(0x483)]=_0x527a03);}['appendMutation'](_0x306613){var _0x4cb781=_0x5deefc;const _0x287663=this['_injector']['createInstance'](PendingState,this[_0x4cb781(0x46e)],this[_0x4cb781(0x2b5)],[_0x306613],this[_0x4cb781(0x1c2)]);return _0x287663[_0x4cb781(0x30d)](),_0x287663[_0x4cb781(0x40a)](),_0x287663;}['onRemoteChangeset'](_0x504325){var _0x4296b1=_0x5deefc;if(this[_0x4296b1(0x470)](_0x504325))return this[_0x4296b1(0x321)][_0x4296b1(0x371)](FetchingMissState,this['unitID'],this[_0x4296b1(0x2b5)],null,[],null,[_0x504325],this[_0x4296b1(0x1c2)]);try{const _0x381b56=this[_0x4296b1(0x34c)][_0x4296b1(0x4b4)](_0x504325,[EmptyMutationInfo]);if(isTransformMutationsWithChangesetSuccess(_0x381b56)){const {c1Prime:_0x3ac095}=_0x381b56;return this['_executeRemoteChangeset'](_0x3ac095),this;}throw _0x381b56['error'];}catch(_0x2ad72d){return this['_logService'][_0x4296b1(0x2ac)](_0x2ad72d),this['_onConflict'](!0x1);}}['_onConflict'](_0x2871fa){var _0x267c98=_0x5deefc;return this[_0x267c98(0x321)][_0x267c98(0x371)](ConflictState,this[_0x267c98(0x46e)],this['type'],null,[],this['_handler'],_0x2871fa);}[_0x5deefc(0x4c5)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){var _0x705892=_0x5deefc;throw new Error(_0x705892(0x338));}[_0x5deefc(0x26c)](){return this;}['toggleOffline'](){var _0x1255f8=_0x5deefc;return this[_0x1255f8(0x321)][_0x1255f8(0x371)](OfflineState,this[_0x1255f8(0x46e)],this[_0x1255f8(0x2b5)],null,[],this[_0x1255f8(0x1c2)]);}[_0x5deefc(0x30f)](){return this;}[_0x5deefc(0x278)](){var _0x5892dc=_0x5deefc;throw new Error(_0x5892dc(0x24a));}[_0x5deefc(0x1c9)](){var _0x2ff47e=_0x5deefc;const _0x438eeb=this[_0x2ff47e(0x1df)][_0x2ff47e(0x377)](this['unitID']);return this[_0x2ff47e(0x1c2)][_0x2ff47e(0x22d)]({'from':_0x438eeb,'to':0x0}),this[_0x2ff47e(0x321)][_0x2ff47e(0x371)](FetchingMissState,this[_0x2ff47e(0x46e)],this[_0x2ff47e(0x2b5)],null,[],null,[],this[_0x2ff47e(0x1c2)]);}},__name(_a6,_0x5deefc(0x45e)),_a6);SyncedState=__decorateClass$d([__decorateParam$d(0x3,Inject(RevisionService)),__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,IUndoRedoService),__decorateParam$d(0x6,ICommandService),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ITransformService),__decorateParam$d(0x9,Optional(ILocalCacheService))],SyncedState);var _a7;let PendingState=(_a7=class extends CollaborationState{constructor(_0x5f49c8,_0x525f33,_0x2adf00,_0x57a945,_0x29d557,_0x19f83e,_0x1bdd00,_0x3fcba6,_0x5a66d5,_0x42f218,_0xefeaf9,_0xc2f7b8,_0xd52c92,_0x4f477c){var _0x53b733=_0x5deefc;super(_0x5f49c8,_0x525f33,null,_0x2adf00,_0x57a945,_0x5a66d5,_0xd52c92,_0x19f83e,_0x4f477c),__publicField(this,_0x53b733(0x1cc),_0x53b733(0x40b)),__publicField(this,_0x53b733(0x1cb),null),__publicField(this,_0x53b733(0x3eb),null),(this['_injector']=_0x29d557,this[_0x53b733(0x24b)]=_0x1bdd00,this[_0x53b733(0x1b0)]=_0x3fcba6,this[_0x53b733(0x32a)]=_0x42f218,this[_0x53b733(0x34c)]=_0xefeaf9,this[_0x53b733(0x40e)]=_0xc2f7b8);}['appendMutation'](_0xeb7d7d){var _0x58a185=_0x5deefc;return this[_0x58a185(0x252)]['push'](_0xeb7d7d),this[_0x58a185(0x40a)](),this;}[_0x5deefc(0x3c7)](_0xcf9b93){var _0x2ed03c=_0x5deefc;if(this['_checkMissing'](_0xcf9b93))return this['_clearScheduledTask'](),this[_0x2ed03c(0x321)][_0x2ed03c(0x371)](FetchingMissState,this[_0x2ed03c(0x46e)],this[_0x2ed03c(0x2b5)],null,this[_0x2ed03c(0x252)],null,[_0xcf9b93],this[_0x2ed03c(0x1c2)]);try{const _0x1ead9c=this['_transformService']['transformMutationsWithChangeset'](_0xcf9b93,this[_0x2ed03c(0x252)]);if(isTransformMutationsWithChangesetSuccess(_0x1ead9c)){const {c1Prime:_0x482721,m2Prime:_0xfc2fa0}=_0x1ead9c;this[_0x2ed03c(0x3cc)](_0x482721);const _0x3f553d=this[_0x2ed03c(0x321)][_0x2ed03c(0x371)](PendingState,this[_0x2ed03c(0x46e)],this[_0x2ed03c(0x2b5)],_0xfc2fa0,this['_handler']);this[_0x2ed03c(0x44e)]();const _0x4174a5=new Date()['getTime'](),_0x186929=this[_0x2ed03c(0x1cb)]?Math['max'](this[_0x2ed03c(0x1cb)]-_0x4174a5,0x0):this[_0x2ed03c(0x1fb)]();return _0x3f553d['_schedule'](_0x186929),_0x3f553d;}throw _0x1ead9c[_0x2ed03c(0x2ac)];}catch(_0x3296b1){return this[_0x2ed03c(0x1b0)][_0x2ed03c(0x2ac)](_0x3296b1),this[_0x2ed03c(0x4c4)](!0x1);}}[_0x5deefc(0x4c5)](){var _0x4df8a0=_0x5deefc;throw new Error(_0x4df8a0(0x419));}[_0x5deefc(0x2b7)](){var _0x456419=_0x5deefc;throw new Error(_0x456419(0x4a3));}['onRemoteRetry'](){return this;}[_0x5deefc(0x30b)](){var _0x1c0843=_0x5deefc;return this[_0x1c0843(0x44e)](),this[_0x1c0843(0x321)]['createInstance'](OfflineState,this['unitID'],this[_0x1c0843(0x2b5)],null,this['_pendingMutations'],this['_handler']);}[_0x5deefc(0x30f)](){return this;}[_0x5deefc(0x30d)](_0x35ade4){var _0x14e986=_0x5deefc;const _0x47fe19=_0x35ade4!=null?_0x35ade4:this[_0x14e986(0x1fb)]();this[_0x14e986(0x1cb)]=new Date()['getTime']()+_0x47fe19,this[_0x14e986(0x3eb)]=setTimeout(()=>{var _0x5904e7=_0x14e986;this[_0x5904e7(0x44e)]();let _0x193a3b=null;switch(this['type']){case UniverType[_0x5904e7(0x4a9)]:{_0x193a3b=assembleSheetChangeset(this[_0x5904e7(0x252)],this[_0x5904e7(0x46e)],this[_0x5904e7(0x40e)],this[_0x5904e7(0x1df)],this[_0x5904e7(0x24b)]);break;}case UniverType[_0x5904e7(0x385)]:{this[_0x5904e7(0x252)][_0x5904e7(0x287)](_0x2145c2=>_0x2145c2['id']===RichTextEditingMutation['id'])?_0x193a3b=assembleDocChangeset(this[_0x5904e7(0x252)],this[_0x5904e7(0x46e)],this['_univerInstanceService'],this[_0x5904e7(0x1df)],this['_memberService']):_0x193a3b=assembleSheetChangeset(this['_pendingMutations'],this[_0x5904e7(0x46e)],this['_univerInstanceService'],this[_0x5904e7(0x1df)],this['_memberService']);break;}default:throw new Error(_0x5904e7(0x2fe)+this['type']+_0x5904e7(0x1fd));}const {changeset:_0x58f490,pendingMutations:_0x4046e5}=_0x193a3b;this[_0x5904e7(0x1c2)][_0x5904e7(0x2f9)](_0x58f490);const _0x5d6cf2=_0x4046e5[_0x5904e7(0x2f2)]?this[_0x5904e7(0x321)][_0x5904e7(0x371)](AwaitingWithPendingState,this[_0x5904e7(0x46e)],this[_0x5904e7(0x2b5)],_0x58f490,_0x4046e5,this['_handler'],void 0x0):this[_0x5904e7(0x321)]['createInstance'](AwaitingState,this[_0x5904e7(0x46e)],this[_0x5904e7(0x2b5)],_0x58f490,this[_0x5904e7(0x1c2)]);_0x5d6cf2[_0x5904e7(0x40a)](),this[_0x5904e7(0x1c2)][_0x5904e7(0x450)](this,_0x5d6cf2);},_0x47fe19);}['_getSendChangesetTimeout'](){var _0x54cbe8=_0x5deefc,_0x25e99e;const _0x2f542f=this['_configService'][_0x54cbe8(0x365)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x25e99e=_0x2f542f==null?void 0x0:_0x2f542f[_0x54cbe8(0x2c2)])!=null?_0x25e99e:DEFAULT_SEND_CHANGESET_TIMEOUT;}[_0x5deefc(0x278)](){var _0x115998=_0x5deefc;throw new Error(_0x115998(0x413));}[_0x5deefc(0x44e)](){var _0x12607d=_0x5deefc;this[_0x12607d(0x3eb)]!=null&&(clearTimeout(this[_0x12607d(0x3eb)]),this['_sendingTimer']=null);}[_0x5deefc(0x4c4)](_0xe04c7c){var _0x12357f=_0x5deefc;return this[_0x12357f(0x44e)](),this['_injector'][_0x12357f(0x371)](ConflictState,this[_0x12357f(0x46e)],this[_0x12357f(0x2b5)],null,this[_0x12357f(0x252)],this['_handler'],_0xe04c7c);}},__name(_a7,_0x5deefc(0x428)),_a7);PendingState=__decorateClass$d([__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,Inject(RevisionService)),__decorateParam$d(0x6,Inject(MemberService)),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,IConfigService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUniverInstanceService),__decorateParam$d(0xc,IUndoRedoService),__decorateParam$d(0xd,Optional(ILocalCacheService))],PendingState);var _a8;let AwaitingState=(_a8=class extends CollaborationState{constructor(_0x55f788,_0x5d298d,_0x3dc672,_0x45c266,_0x4fdd9a,_0x259834,_0x9391a2,_0xf203e3,_0xb7837f,_0x207b9b,_0x1eae21){var _0x7b96ef=_0x5deefc;super(_0x55f788,_0x5d298d,_0x3dc672,[],_0x45c266,_0x9391a2,_0x207b9b,_0x259834,_0x1eae21),__publicField(this,'status',_0x7b96ef(0x3e2)),__publicField(this,_0x7b96ef(0x31c),0x0),__publicField(this,_0x7b96ef(0x3a6)),__publicField(this,_0x7b96ef(0x1e5)),(this[_0x7b96ef(0x321)]=_0x4fdd9a,this['_logService']=_0xf203e3,this[_0x7b96ef(0x34c)]=_0xb7837f);}[_0x5deefc(0x33f)](_0x42075c){var _0x10d410=_0x5deefc;this[_0x10d410(0x44e)]();const _0x3ee786=this['_injector'][_0x10d410(0x371)](AwaitingWithPendingState,this['unitID'],this[_0x10d410(0x2b5)],this[_0x10d410(0x3ba)],[_0x42075c],this['_handler'],this[_0x10d410(0x3a6)]);return _0x3ee786[_0x10d410(0x40a)](),_0x3ee786;}['onRemoteChangeset'](_0x246256){var _0x10c967=_0x5deefc;if(this['_checkMissing'](_0x246256))return this['_clearScheduledTask'](),this[_0x10c967(0x321)]['createInstance'](FetchingMissState,this[_0x10c967(0x46e)],this[_0x10c967(0x2b5)],this[_0x10c967(0x3ba)],[],null,[_0x246256],this['_handler']);try{const _0x50d926=this[_0x10c967(0x34c)][_0x10c967(0x4ed)]([_0x246256],[this[_0x10c967(0x3ba)]],!0x1);if(isTransformChangesetsSuccess(_0x50d926)){const {c1Prime:_0x230697,c2Prime:_0x439930}=_0x50d926;this[_0x10c967(0x3cc)](_0x230697[0x0]),_0x439930[0x0][_0x10c967(0x26a)]=this[_0x10c967(0x2e9)](),this[_0x10c967(0x44e)]();const _0x367e26=this['_injector'][_0x10c967(0x371)](AwaitingState,this[_0x10c967(0x46e)],this['type'],_0x439930[0x0],this[_0x10c967(0x1c2)]);return _0x367e26[_0x10c967(0x40a)](),_0x367e26;}return this['_onConflict'](!0x1);}catch(_0x345250){return this[_0x10c967(0x1b0)][_0x10c967(0x2ac)](_0x345250),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x4e1530){var _0x97b482=_0x5deefc;this[_0x97b482(0x44e)]();const _0x26d6c1=this[_0x97b482(0x1df)][_0x97b482(0x377)](this['unitID']);if(_0x4e1530[_0x97b482(0x327)]<_0x26d6c1-0x1)return this;if(this['_checkMissing'](_0x4e1530))return this[_0x97b482(0x321)][_0x97b482(0x371)](FetchingMissState,this[_0x97b482(0x46e)],this[_0x97b482(0x2b5)],null,[],this[_0x97b482(0x3ba)],[],this[_0x97b482(0x1c2)]);this[_0x97b482(0x259)]();const _0x127e83=this['_injector'][_0x97b482(0x371)](SyncedState,this[_0x97b482(0x46e)],this[_0x97b482(0x2b5)],this[_0x97b482(0x1c2)]);return _0x127e83[_0x97b482(0x40a)](),_0x127e83;}[_0x5deefc(0x2b7)](_0x3d7ce1){var _0x4f043b=_0x5deefc;return this[_0x4f043b(0x4c4)](!!(_0x3d7ce1!=null&&_0x3d7ce1['isPermissionRej']));}[_0x5deefc(0x26c)](_0x14fbaf){var _0x37302d=_0x5deefc;return this[_0x37302d(0x31c)]>MAX_RETRY_TIMEOUT?this[_0x37302d(0x30b)]():(this['_resendTimer']=createTimerObservable$(this[_0x37302d(0x31c)],{'timeout':this[_0x37302d(0x31c)],'reqId':_0x14fbaf['reqId']}),this[_0x37302d(0x1e5)]=this[_0x37302d(0x3a6)][_0x37302d(0x49c)](({reqId:_0x3d3850,timeout:_0x1a553e})=>{this['_resendWithTimeout'](_0x3d3850,_0x1a553e);}),this);}[_0x5deefc(0x30b)](){var _0x3bf6e6=_0x5deefc;return this[_0x3bf6e6(0x44e)](),this[_0x3bf6e6(0x321)][_0x3bf6e6(0x371)](OfflineState,this[_0x3bf6e6(0x46e)],this[_0x3bf6e6(0x2b5)],this[_0x3bf6e6(0x3ba)],[],this[_0x3bf6e6(0x1c2)]);}[_0x5deefc(0x30f)](){return this;}['resend'](){var _0x3fe030=_0x5deefc;this[_0x3fe030(0x1c2)]['onSendChangeset'](this[_0x3fe030(0x3ba)]);}['_onConflict'](_0x13b12d){var _0x5a3662=_0x5deefc;return this[_0x5a3662(0x44e)](),this['_injector'][_0x5a3662(0x371)](ConflictState,this[_0x5a3662(0x46e)],this[_0x5a3662(0x2b5)],this[_0x5a3662(0x3ba)],[],this[_0x5a3662(0x1c2)],_0x13b12d);}[_0x5deefc(0x4bb)](_0x27fabf,_0x2752f0){var _0x1dd495=_0x5deefc,_0x15ad37;_0x27fabf===((_0x15ad37=this[_0x1dd495(0x3ba)])==null?void 0x0:_0x15ad37[_0x1dd495(0x20b)])&&(this[_0x1dd495(0x278)](),this['_resendTimeout']=_0x2752f0===0x0?0x3e8:_0x2752f0*0x2);}['_clearScheduledTask'](){var _0x5909d5=_0x5deefc,_0x79a9d6;(_0x79a9d6=this[_0x5909d5(0x1e5)])==null||_0x79a9d6[_0x5909d5(0x1db)](),this[_0x5909d5(0x31c)]=0x0;}},__name(_a8,_0x5deefc(0x2b0)),_a8);AwaitingState=__decorateClass$d([__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,Inject(RevisionService)),__decorateParam$d(0x6,ICommandService),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ITransformService),__decorateParam$d(0x9,IUndoRedoService),__decorateParam$d(0xa,Optional(ILocalCacheService))],AwaitingState);var _a9;let AwaitingWithPendingState=(_a9=class extends CollaborationState{constructor(_0x4e3d20,_0x2003ac,_0x484453,_0x3a5b13,_0x41ff5c,_0x4cbeea,_0x2adf12,_0x3523dd,_0x4c92e5,_0x1efef1,_0x56c46d,_0x3cbb86,_0x20bf11){var _0x32ac3c=_0x5deefc;super(_0x4e3d20,_0x2003ac,_0x484453,_0x3a5b13,_0x41ff5c,_0x4c92e5,_0x3cbb86,_0x3523dd,_0x20bf11),__publicField(this,_0x32ac3c(0x1cc),_0x32ac3c(0x332)),__publicField(this,'_resendTimeout',0x0),__publicField(this,_0x32ac3c(0x3a6)),__publicField(this,_0x32ac3c(0x1e5)),(this[_0x32ac3c(0x321)]=_0x2adf12,this['_logService']=_0x1efef1,this[_0x32ac3c(0x34c)]=_0x56c46d,this[_0x32ac3c(0x483)]=_0x20bf11,_0x4cbeea&&(this[_0x32ac3c(0x3a6)]=_0x4cbeea,this[_0x32ac3c(0x1e5)]=this[_0x32ac3c(0x3a6)][_0x32ac3c(0x49c)](({reqId:_0x3f0f2f,timeout:_0x4dc5d1})=>{var _0x4ce057=_0x32ac3c;this[_0x4ce057(0x4bb)](_0x3f0f2f,_0x4dc5d1);})));}[_0x5deefc(0x33f)](_0xa64adf){var _0x3454cf=_0x5deefc;return this[_0x3454cf(0x252)][_0x3454cf(0x202)](_0xa64adf),this;}[_0x5deefc(0x3c7)](_0x3649c3){var _0x6074ed=_0x5deefc;if(this[_0x6074ed(0x470)](_0x3649c3))return this[_0x6074ed(0x44e)](),this['_injector'][_0x6074ed(0x371)](FetchingMissState,this[_0x6074ed(0x46e)],this[_0x6074ed(0x2b5)],this[_0x6074ed(0x3ba)],this[_0x6074ed(0x252)],null,[_0x3649c3],this[_0x6074ed(0x1c2)]);try{const _0x3885b5=this['_transformService'][_0x6074ed(0x4ed)]([_0x3649c3],[this[_0x6074ed(0x3ba)]],!0x1);if(isTransformChangesetsSuccess(_0x3885b5)){const {c1Prime:_0x1ccf67,c2Prime:_0xdadbf3}=_0x3885b5,_0x315a79=this[_0x6074ed(0x34c)]['transformMutationsWithChangeset'](_0x1ccf67[0x0],this['_pendingMutations']);if(isTransformMutationsWithChangesetSuccess(_0x315a79)){const {c1Prime:_0x3f100a,m2Prime:_0x2b977e}=_0x315a79;return this[_0x6074ed(0x3cc)](_0x3f100a),_0xdadbf3[0x0][_0x6074ed(0x26a)]=this[_0x6074ed(0x2e9)](),this[_0x6074ed(0x44e)](),this[_0x6074ed(0x321)][_0x6074ed(0x371)](AwaitingWithPendingState,this[_0x6074ed(0x46e)],this[_0x6074ed(0x2b5)],_0xdadbf3[0x0],_0x2b977e,this['_handler'],void 0x0);}throw _0x315a79[_0x6074ed(0x2ac)];}throw _0x3885b5[_0x6074ed(0x2ac)];}catch(_0x26a133){return this[_0x6074ed(0x1b0)][_0x6074ed(0x2ac)](_0x26a133),this[_0x6074ed(0x4c4)](!0x1);}}[_0x5deefc(0x4c5)](_0x166abf){var _0x13c9b4=_0x5deefc;if(this['_clearScheduledTask'](),this['_checkMissing'](_0x166abf))return this[_0x13c9b4(0x321)]['createInstance'](FetchingMissState,this[_0x13c9b4(0x46e)],this[_0x13c9b4(0x2b5)],null,this[_0x13c9b4(0x252)],this[_0x13c9b4(0x3ba)],[],this['_handler']);this[_0x13c9b4(0x259)]();const _0x6d634c=this['_injector'][_0x13c9b4(0x371)](PendingState,this[_0x13c9b4(0x46e)],this[_0x13c9b4(0x2b5)],this['_pendingMutations'],this[_0x13c9b4(0x1c2)]);return _0x6d634c[_0x13c9b4(0x30d)](),_0x6d634c[_0x13c9b4(0x40a)](),_0x6d634c;}['onRemoteRej'](_0x3e43e6){var _0x1e6489=_0x5deefc;return this['_onConflict'](!!(_0x3e43e6!=null&&_0x3e43e6[_0x1e6489(0x30c)]));}[_0x5deefc(0x26c)](_0x493a0b){var _0x5b02b7=_0x5deefc;return this[_0x5b02b7(0x31c)]>MAX_RETRY_TIMEOUT?this[_0x5b02b7(0x30b)]():(this[_0x5b02b7(0x3a6)]=createTimerObservable$(this[_0x5b02b7(0x31c)],{'timeout':this[_0x5b02b7(0x31c)],'reqId':_0x493a0b[_0x5b02b7(0x20b)]}),this['_sender']=this['_resendTimer'][_0x5b02b7(0x49c)](({reqId:_0x59eb2a,timeout:_0x148ff8})=>{var _0x219c42=_0x5b02b7;this[_0x219c42(0x4bb)](_0x59eb2a,_0x148ff8);}),this);}['toggleOffline'](){var _0x12a5a5=_0x5deefc;return this['_clearScheduledTask'](),this[_0x12a5a5(0x321)][_0x12a5a5(0x371)](OfflineState,this['unitID'],this[_0x12a5a5(0x2b5)],this[_0x12a5a5(0x3ba)],this[_0x12a5a5(0x252)],this['_handler']);}[_0x5deefc(0x30f)](){return this;}[_0x5deefc(0x278)](){var _0x247e1c=_0x5deefc;this[_0x247e1c(0x1c2)][_0x247e1c(0x2f9)](this[_0x247e1c(0x3ba)]);}[_0x5deefc(0x4c4)](_0x56ce74){var _0x4cc1c8=_0x5deefc;return this['_clearScheduledTask'](),this[_0x4cc1c8(0x321)][_0x4cc1c8(0x371)](ConflictState,this['unitID'],this['type'],null,this[_0x4cc1c8(0x252)],this[_0x4cc1c8(0x1c2)],_0x56ce74);}['_resendWithTimeout'](_0x119527,_0x18b2eb){var _0x288051=_0x5deefc,_0x3a8b49;_0x119527===((_0x3a8b49=this[_0x288051(0x3ba)])==null?void 0x0:_0x3a8b49[_0x288051(0x20b)])&&(this[_0x288051(0x278)](),this[_0x288051(0x31c)]=_0x18b2eb===0x0?0x3e8:_0x18b2eb*0x2);}['_clearScheduledTask'](){var _0x17f013=_0x5deefc,_0x22add2;(_0x22add2=this[_0x17f013(0x1e5)])==null||_0x22add2[_0x17f013(0x1db)](),this['_resendTimeout']=0x0;}},__name(_a9,_0x5deefc(0x4e2)),_a9);AwaitingWithPendingState=__decorateClass$d([__decorateParam$d(0x6,Inject(Injector)),__decorateParam$d(0x7,Inject(RevisionService)),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,ILogService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUndoRedoService),__decorateParam$d(0xc,Optional(ILocalCacheService))],AwaitingWithPendingState);var _a10;let ConflictState=(_a10=class extends CollaborationState{constructor(_0xc32911,_0x4ade48,_0x5ea720,_0x31b5b5,_0x1c1c4b,_0x5a8719=!0x1,_0xd7650a,_0x24d0ee,_0x3be44a,_0x546c71,_0x34e490,_0x510dd4,_0x381168){var _0x49de1f=_0x5deefc;super(_0xc32911,_0x4ade48,_0x5ea720,_0x31b5b5,_0x1c1c4b,_0x24d0ee,_0x3be44a,_0x546c71,_0x381168),__publicField(this,_0x49de1f(0x1cc),_0x49de1f(0x1b5)),(this[_0x49de1f(0x446)]=_0x5a8719,this[_0x49de1f(0x288)]=_0xd7650a,this[_0x49de1f(0x250)]=_0x34e490,this[_0x49de1f(0x214)]=_0x510dd4,this['localCacheService']=_0x381168,this[_0x49de1f(0x1de)](),this['_clearLocalCache'](),this[_0x49de1f(0x46a)]());}[_0x5deefc(0x33f)](){return this;}['onRemoteChangeset'](){return this;}[_0x5deefc(0x4c5)](){return this;}[_0x5deefc(0x2b7)](){return this;}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x5deefc(0x44a)](){var _0x42d7e8=_0x5deefc,_0x76a05;(_0x76a05=this[_0x42d7e8(0x1ae)])==null||_0x76a05[_0x42d7e8(0x463)](this[_0x42d7e8(0x46e)],this[_0x42d7e8(0x2b5)],null,[]);}[_0x5deefc(0x1de)](){var _0x404283=_0x5deefc;this['_isPermissionRej']?this[_0x404283(0x214)][_0x404283(0x333)]({'id':CollaborationUIEventId[_0x404283(0x33b)]}):this[_0x404283(0x214)][_0x404283(0x333)]({'id':CollaborationUIEventId[_0x404283(0x203)]});}['_disableEditing'](){var _0xe3f58a=_0x5deefc;this[_0xe3f58a(0x288)][_0xe3f58a(0x461)](new WorkbookEditablePermission(this['unitID'])['id'],!0x1);}},__name(_a10,_0x5deefc(0x1f8)),_a10);ConflictState=__decorateClass$d([__decorateParam$d(0x6,Inject(IPermissionService)),__decorateParam$d(0x7,ICommandService),__decorateParam$d(0x8,IUndoRedoService),__decorateParam$d(0x9,Inject(RevisionService)),__decorateParam$d(0xa,Inject(LocaleService)),__decorateParam$d(0xb,Inject(CollaborationUIEventService)),__decorateParam$d(0xc,Optional(ILocalCacheService))],ConflictState);var _a11;let OfflineState=(_a11=class extends CollaborationState{constructor(_0x3ce4f7,_0x2fc11c,_0x53ad3f,_0x4526bf,_0x4651b7,_0x438033,_0x439d9f,_0x101b28,_0xd1b3ac,_0x577bb7){var _0x32852c=_0x5deefc;super(_0x3ce4f7,_0x2fc11c,_0x53ad3f,_0x4526bf,_0x4651b7,_0x101b28,_0xd1b3ac,_0x439d9f,_0x577bb7),__publicField(this,_0x32852c(0x1cc),'offline'),this['_injector']=_0x438033;}[_0x5deefc(0x33f)](_0x594047){var _0x4b40b5=_0x5deefc;return this[_0x4b40b5(0x252)][_0x4b40b5(0x202)](_0x594047),this[_0x4b40b5(0x40a)](),this;}['onRemoteChangeset'](_0x177581){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x5deefc(0x4c5)](){var _0x36f0e6=_0x5deefc;throw new Error(_0x36f0e6(0x260));}[_0x5deefc(0x2b7)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x5deefc(0x30b)](){return this;}['toggleOnline'](){var _0x289d07=_0x5deefc;const {_injector:_0x2e1dd8,_pendingMutations:_0x1be5d6,_awaitingChangeset:_0xa854af,unitID:_0x2ebaa7,_handler:_0x4761a0,type:_0x21f7b3}=this,_0x2e0b46=createOnlineState(_0x2e1dd8,_0x2ebaa7,_0x21f7b3,_0xa854af,_0x1be5d6,_0x4761a0);return _0x2e0b46 instanceof PendingState?_0x2e0b46[_0x289d07(0x30d)]():(_0x2e0b46 instanceof AwaitingWithPendingState||_0x2e0b46 instanceof AwaitingState)&&_0x2e0b46[_0x289d07(0x278)](),_0x2e0b46;}['resend'](){var _0x26ad84=_0x5deefc;throw new Error(_0x26ad84(0x2dc));}},__name(_a11,_0x5deefc(0x20e)),_a11);OfflineState=__decorateClass$d([__decorateParam$d(0x5,Inject(Injector)),__decorateParam$d(0x6,Inject(RevisionService)),__decorateParam$d(0x7,ICommandService),__decorateParam$d(0x8,IUndoRedoService),__decorateParam$d(0x9,Optional(ILocalCacheService))],OfflineState);var _a12;let FetchingMissState=(_a12=class extends CollaborationState{constructor(_0x58728f,_0x2268d6,_0x3cae22,_0x2615e8,_0x155fe9,_0xe54e90,_0x1afd60,_0x1a8071,_0x5e476e,_0x39c8ea,_0x36420b,_0x411d4a,_0x2ccdd0,_0x411a0d){var _0x4a74a9=_0x5deefc;super(_0x58728f,_0x2268d6,_0x3cae22,_0x2615e8,_0x1afd60,_0x36420b,_0x411d4a,_0x5e476e,_0x411a0d),__publicField(this,_0x4a74a9(0x1cc),_0x4a74a9(0x1e2)),(this[_0x4a74a9(0x28a)]=_0x155fe9,this['_queuedRemoteChangesets']=_0xe54e90,this[_0x4a74a9(0x321)]=_0x1a8071,this[_0x4a74a9(0x1b0)]=_0x39c8ea,this['_transformService']=_0x2ccdd0,this[_0x4a74a9(0x483)]=_0x411a0d);}[_0x5deefc(0x314)](_0x247bf0){var _0x5745d7=_0x5deefc;try{const _0x414884=[..._0x247bf0,...this[_0x5745d7(0x205)]],_0x167739=[this[_0x5745d7(0x3ba)]||this[_0x5745d7(0x28a)]][_0x5745d7(0x2a2)](_0x2695ec=>!!_0x2695ec);let _0x4f2ffb,_0x15ea4b;if(_0x167739[_0x5745d7(0x2f2)]){const _0x2edcfb=this[_0x5745d7(0x34c)][_0x5745d7(0x4ed)](_0x414884,_0x167739,!0x1);if(!isTransformChangesetsSuccess(_0x2edcfb))throw _0x2edcfb[_0x5745d7(0x2ac)];_0x4f2ffb=_0x2edcfb[_0x5745d7(0x274)],_0x15ea4b=_0x2edcfb['c2Prime'];}else _0x4f2ffb=_0x414884,_0x15ea4b=[];let _0x5e4e94=this[_0x5745d7(0x252)];_0x4f2ffb[_0x5745d7(0x329)](_0xc088c6=>{var _0x2031f6=_0x5745d7;let _0x5b643e;if(_0x5e4e94[_0x2031f6(0x2f2)]){const _0x597792=this[_0x2031f6(0x34c)][_0x2031f6(0x4b4)](_0xc088c6,_0x5e4e94);if(!isTransformMutationsWithChangesetSuccess(_0x597792))throw _0x597792[_0x2031f6(0x2ac)];_0x5b643e=_0x597792['c1Prime'],_0x5e4e94=_0x597792[_0x2031f6(0x2dd)];}else _0x5b643e=_0xc088c6;this[_0x2031f6(0x3cc)](_0x5b643e);}),this['_acknowledgedAwaitingChangeset']&&this['_incrementRevisionNumber'](),this['_awaitingChangeset']&&_0x15ea4b[_0x5745d7(0x2f2)]&&(_0x15ea4b[0x0][_0x5745d7(0x26a)]=this[_0x5745d7(0x2e9)]());let _0x3cf55a;if(this['_awaitingChangeset']&&_0x5e4e94[_0x5745d7(0x2f2)]!==0x0)_0x3cf55a=this[_0x5745d7(0x321)]['createInstance'](AwaitingWithPendingState,this[_0x5745d7(0x46e)],this[_0x5745d7(0x2b5)],_0x15ea4b[0x0],_0x5e4e94,this['_handler'],void 0x0);else{if(this[_0x5745d7(0x3ba)]&&_0x5e4e94[_0x5745d7(0x2f2)]===0x0)_0x15ea4b[0x0]['baseRev']=this[_0x5745d7(0x2e9)](),_0x3cf55a=this['_injector'][_0x5745d7(0x371)](AwaitingState,this[_0x5745d7(0x46e)],this[_0x5745d7(0x2b5)],_0x15ea4b[0x0],this['_handler']);else{if(_0x5e4e94['length']!==0x0){const _0x2a368f=this[_0x5745d7(0x321)][_0x5745d7(0x371)](PendingState,this[_0x5745d7(0x46e)],this[_0x5745d7(0x2b5)],_0x5e4e94,this[_0x5745d7(0x1c2)]);_0x2a368f[_0x5745d7(0x30d)](),_0x3cf55a=_0x2a368f;}else _0x3cf55a=this[_0x5745d7(0x321)][_0x5745d7(0x371)](SyncedState,this[_0x5745d7(0x46e)],this[_0x5745d7(0x2b5)],this['_handler']);}}return _0x3cf55a['_updateLocalCache'](),_0x3cf55a;}catch(_0x4efb3b){return this[_0x5745d7(0x1b0)][_0x5745d7(0x2ac)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x4efb3b),this[_0x5745d7(0x321)]['createInstance'](ConflictState,this[_0x5745d7(0x46e)],this['type'],this['_awaitingChangeset'],this[_0x5745d7(0x252)],this[_0x5745d7(0x1c2)],!0x1);}}[_0x5deefc(0x278)](){var _0x2cbf18=_0x5deefc;throw new Error(_0x2cbf18(0x304));}['appendMutation'](_0x40507a){var _0x495c04=_0x5deefc;return this[_0x495c04(0x252)][_0x495c04(0x202)](_0x40507a),this;}[_0x5deefc(0x3c7)](_0x23a236){var _0x400b24=_0x5deefc;return this['_queuedRemoteChangesets'][_0x400b24(0x202)](_0x23a236),this;}[_0x5deefc(0x4c5)](_0x373cb7){var _0x33a883=_0x5deefc;if(this[_0x33a883(0x3ba)])return this[_0x33a883(0x28a)]=this[_0x33a883(0x3ba)],this[_0x33a883(0x3ba)]=null,this;throw new Error(_0x33a883(0x326));}[_0x5deefc(0x2b7)](_0x100c7c){var _0x4b0771=_0x5deefc;return this[_0x4b0771(0x4c4)](!!(_0x100c7c!=null&&_0x100c7c['isPermissionRej']));}[_0x5deefc(0x26c)](){return this;}[_0x5deefc(0x30b)](){var _0x1c8eb0=_0x5deefc;return this['_injector'][_0x1c8eb0(0x371)](OfflineState,this['unitID'],this[_0x1c8eb0(0x2b5)],this[_0x1c8eb0(0x3ba)],this[_0x1c8eb0(0x252)],this[_0x1c8eb0(0x1c2)]);}[_0x5deefc(0x30f)](){return this;}[_0x5deefc(0x4c4)](_0x34e5ab){var _0x6fb05a=_0x5deefc;return this[_0x6fb05a(0x321)][_0x6fb05a(0x371)](ConflictState,this[_0x6fb05a(0x46e)],this[_0x6fb05a(0x2b5)],this['_awaitingChangeset'],this[_0x6fb05a(0x252)],this['_handler'],_0x34e5ab);}},__name(_a12,_0x5deefc(0x1e8)),_a12);FetchingMissState=__decorateClass$d([__decorateParam$d(0x7,Inject(Injector)),__decorateParam$d(0x8,Inject(RevisionService)),__decorateParam$d(0x9,ILogService),__decorateParam$d(0xa,ICommandService),__decorateParam$d(0xb,IUndoRedoService),__decorateParam$d(0xc,ITransformService),__decorateParam$d(0xd,Optional(ILocalCacheService))],FetchingMissState);function createOnlineState(_0x3fcb0d,_0x2910f6,_0x2f0af9,_0x135c1d,_0x4b65a5,_0x3d7de2){var _0x125669=_0x5deefc;return _0x135c1d&&_0x4b65a5[_0x125669(0x2f2)]?_0x3fcb0d[_0x125669(0x371)](AwaitingWithPendingState,_0x2910f6,_0x2f0af9,_0x135c1d,_0x4b65a5,_0x3d7de2,void 0x0):_0x135c1d?_0x3fcb0d['createInstance'](AwaitingState,_0x2910f6,_0x2f0af9,_0x135c1d,_0x3d7de2):_0x4b65a5['length']?_0x3fcb0d[_0x125669(0x371)](PendingState,_0x2910f6,_0x2f0af9,_0x4b65a5,_0x3d7de2):_0x3fcb0d[_0x125669(0x371)](SyncedState,_0x2910f6,_0x2f0af9,_0x3d7de2);}__name(createOnlineState,_0x5deefc(0x2f0));var __defProp$c=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$c=Object[_0x5deefc(0x4e3)],__decorateClass$c=__name((_0x88639c,_0x1d1242,_0x44a7a5,_0x350567)=>{var _0x47c276=_0x5deefc;for(var _0x373883=_0x350567>0x1?void 0x0:_0x350567?__getOwnPropDesc$c(_0x1d1242,_0x44a7a5):_0x1d1242,_0x42d71e=_0x88639c[_0x47c276(0x2f2)]-0x1,_0x34aae9;_0x42d71e>=0x0;_0x42d71e--)(_0x34aae9=_0x88639c[_0x42d71e])&&(_0x373883=(_0x350567?_0x34aae9(_0x1d1242,_0x44a7a5,_0x373883):_0x34aae9(_0x373883))||_0x373883);return _0x350567&&_0x373883&&__defProp$c(_0x1d1242,_0x44a7a5,_0x373883),_0x373883;},'__decorateClass$c'),__decorateParam$c=__name((_0x4f14c6,_0x2ba264)=>(_0x7cfce6,_0x4f514d)=>_0x2ba264(_0x7cfce6,_0x4f514d,_0x4f14c6),_0x5deefc(0x3ff)),_a13;let CollaborationEntity=(_a13=class extends RxDisposable{constructor(_0x496302,_0x433a38,_0x11895e,_0xb87a1,_0x5e8df4,_0x3378b0,_0x292cec,_0x2c76f8,_0x353da9,_0x44eef1,_0x358635,_0x113a86,_0x490cb5){var _0x34e5e2=_0x5deefc;super(),__publicField(this,_0x34e5e2(0x297),new BehaviorSubject(null)),__publicField(this,_0x34e5e2(0x323),this['_state$'][_0x34e5e2(0x272)]()),__publicField(this,_0x34e5e2(0x3cf)),__publicField(this,_0x34e5e2(0x3ce),!0x1),__publicField(this,_0x34e5e2(0x1b3),''),__publicField(this,'_changesetReqId',0x0),__publicField(this,_0x34e5e2(0x2a8),this[_0x34e5e2(0x323)][_0x34e5e2(0x431)](_0x228a63(_0x331c05=>_0x331c05?_0x331c05[_0x34e5e2(0x1cc)]:CollaborationStatus[_0x34e5e2(0x1c5)]),shareReplay(0x1))),__publicField(this,'_transitionLocked',!0x1),__publicField(this,_0x34e5e2(0x45a),[]),(this[_0x34e5e2(0x46e)]=_0x496302,this['session']=_0x433a38,this['_type']=_0x11895e,this[_0x34e5e2(0x321)]=_0xb87a1,this[_0x34e5e2(0x45f)]=_0x5e8df4,this[_0x34e5e2(0x250)]=_0x3378b0,this[_0x34e5e2(0x1df)]=_0x292cec,this[_0x34e5e2(0x3bb)]=_0x2c76f8,this[_0x34e5e2(0x1b0)]=_0x353da9,this['_commandService']=_0x44eef1,this[_0x34e5e2(0x288)]=_0x358635,this[_0x34e5e2(0x2bf)]=_0x113a86,this[_0x34e5e2(0x1ae)]=_0x490cb5);}get[_0x5deefc(0x37d)](){var _0x158166=_0x5deefc;return this[_0x158166(0x3cf)];}async[_0x5deefc(0x21f)](){var _0x52555b=_0x5deefc;if(this[_0x52555b(0x37d)])throw new Error(_0x52555b(0x2aa));await this[_0x52555b(0x499)]();}[_0x5deefc(0x2ab)](){var _0x4b43c6=_0x5deefc;return this[_0x4b43c6(0x3ce)]=!0x0,toDisposable(()=>{var _0x406347=_0x4b43c6;this[_0x406347(0x3ce)]=!0x1,this[_0x406347(0x4e4)]();});}[_0x5deefc(0x2fb)](_0x3f3b2f){var _0x1f2aab=_0x5deefc;this[_0x1f2aab(0x23a)](_0x3f3b2f);}[_0x5deefc(0x2b4)](_0x117e94){var _0x57bd82=_0x5deefc;this[_0x57bd82(0x3cf)]=_0x117e94,this[_0x57bd82(0x297)][_0x57bd82(0x41a)](_0x117e94);}async[_0x5deefc(0x499)](){var _0x4f8d44=_0x5deefc,_0x2c2f0f;this['_updateState'](await this['_createInitialState']()),this[_0x4f8d44(0x2bf)]&&((_0x2c2f0f=this[_0x4f8d44(0x2bf)])==null||_0x2c2f0f[_0x4f8d44(0x4f3)](this['unitID']),this[_0x4f8d44(0x415)](this['_singleActiveUnitService'][_0x4f8d44(0x4b9)](this[_0x4f8d44(0x46e)])[_0x4f8d44(0x49c)](_0x324666=>{var _0x59ece8=_0x4f8d44;this[_0x59ece8(0x1b0)]['debug']('[CollaborationEntity]',_0x59ece8(0x34e),_0x324666),_0x324666===UnitStatus['OTHER_CLIENTS_EDITING']?(this[_0x59ece8(0x3bb)][_0x59ece8(0x333)]({'id':CollaborationUIEventId['OTHER_CLIENT_EDITING']}),this[_0x59ece8(0x288)][_0x59ece8(0x461)](new WorkbookEditablePermission(this[_0x59ece8(0x46e)])['id'],!0x1),this[_0x59ece8(0x288)][_0x59ece8(0x2cd)](!0x1)):(this[_0x59ece8(0x288)]['updatePermissionPoint'](new WorkbookEditablePermission(this['unitID'])['id'],!0x0),this[_0x59ece8(0x288)][_0x59ece8(0x2cd)](!0x0));})));let _0x4d8e8c=!0x1;return this['disposeWithMe'](this[_0x4f8d44(0x289)][_0x4f8d44(0x4fc)]['subscribe'](_0x3edeea=>{var _0x36aab5=_0x4f8d44;_0x3edeea===SessionStatus['ONLINE']?this[_0x36aab5(0x276)](_0x4d8e8c):_0x3edeea===SessionStatus['OFFLINE']&&(_0x4d8e8c=!0x0,this[_0x36aab5(0x390)]());})),this['disposeWithMe'](this[_0x4f8d44(0x289)][_0x4f8d44(0x37b)][_0x4f8d44(0x49c)](_0xcaf149=>{var _0x248488=_0x4f8d44;try{switch(_0xcaf149[_0x248488(0x4b8)]){case CollaborationEvent[_0x248488(0x1ce)]:{this[_0x248488(0x3de)](parseProtocolChangeset(_0xcaf149[_0x248488(0x3e4)]));break;}case CollaborationEvent[_0x248488(0x376)]:{this[_0x248488(0x32b)](_0xcaf149[_0x248488(0x3e4)]);break;}case CollaborationEvent[_0x248488(0x3d1)]:{this[_0x248488(0x486)]();break;}case CollaborationEvent['CHANGESET_SHOULD_RETRY']:{this[_0x248488(0x1f1)](_0xcaf149[_0x248488(0x3e4)]);break;}case CollaborationEvent['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x248488(0x38f)](_0xcaf149['data']['changesets'][_0x248488(0x2ef)](_0x554ca1=>parseProtocolChangeset(_0x554ca1)));break;}case CollaborationEvent[_0x248488(0x258)]:{this[_0x248488(0x486)]({'isPermissionRej':!0x0});break;}case CollaborationEvent[_0x248488(0x2ae)]:break;}}catch(_0x3e7b50){throw console[_0x248488(0x2ac)](_0x248488(0x46f),_0x3e7b50),_0x3e7b50;}})),this[_0x4f8d44(0x3cf)];}[_0x5deefc(0x4ef)](){var _0x3ba04e=_0x5deefc;this[_0x3ba04e(0x2a3)]=!0x1;}[_0x5deefc(0x243)](){var _0x455326=_0x5deefc;if(this['_transitionLocked'])throw new 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[_0x455326(0x2a3)]=!0x0;}[_0x5deefc(0x23a)](_0x327197){var _0x4b3e1b=_0x5deefc;this[_0x4b3e1b(0x243)](),this[_0x4b3e1b(0x2b4)](this[_0x4b3e1b(0x3cf)][_0x4b3e1b(0x33f)](_0x327197)),this[_0x4b3e1b(0x4ef)]();}[_0x5deefc(0x3de)](_0xe0aa68){var _0x430c2d=_0x5deefc;if(!(_0xe0aa68[_0x430c2d(0x327)]<=this[_0x430c2d(0x1df)]['getCurrentRevOfUnit'](this[_0x430c2d(0x46e)]))){if(this[_0x430c2d(0x3ce)]){this['_remoteChangesetQueue'][_0x430c2d(0x202)](_0xe0aa68);return;}this['_applyRemoteChangeset'](_0xe0aa68);}}['_exhaustRemoteChangesetQueue'](){var _0x5caaa8=_0x5deefc;this[_0x5caaa8(0x45a)][_0x5caaa8(0x329)](_0x578993=>this['_applyRemoteChangeset'](_0x578993)),this['_remoteChangesetQueue']=[];}[_0x5deefc(0x20a)](_0x22ae24){var _0xd85f44=_0x5deefc;const _0x4233e6=this['_compressMutationService']['interceptor']['fetchThroughInterceptors'](this[_0xd85f44(0x45f)]['interceptor'][_0xd85f44(0x2e3)]()[_0xd85f44(0x423)])(_0x22ae24['mutations'],null)||_0x22ae24[_0xd85f44(0x35f)],_0x1ffb15={..._0x22ae24,'mutations':_0x4233e6};this['_lockTransition'](),this[_0xd85f44(0x2b4)](this['_state'][_0xd85f44(0x3c7)](_0x1ffb15)),this[_0xd85f44(0x4ef)]();}['_onRemoteACK'](_0xb239c0){var _0xdcc3c=_0x5deefc;this[_0xdcc3c(0x243)](),this[_0xdcc3c(0x2b4)](this[_0xdcc3c(0x3cf)][_0xdcc3c(0x4c5)](_0xb239c0)),this[_0xdcc3c(0x4ef)]();}[_0x5deefc(0x486)](_0x199f2b){var _0x2b9ddf=_0x5deefc;this[_0x2b9ddf(0x243)](),this[_0x2b9ddf(0x2b4)](this['_state'][_0x2b9ddf(0x2b7)](_0x199f2b)),this[_0x2b9ddf(0x4ef)]();}['_onRemoteRetry'](_0x4e4a56){var _0x2f80ec=_0x5deefc;this[_0x2f80ec(0x243)](),this[_0x2f80ec(0x2b4)](this[_0x2f80ec(0x3cf)]['onRemoteRetry'](_0x4e4a56)),this[_0x2f80ec(0x4ef)]();}['_onFetchMissResult'](_0x40d3ac){var _0x3bccfb=_0x5deefc;if(!(this[_0x3bccfb(0x3cf)]instanceof FetchingMissState))throw new TypeError(_0x3bccfb(0x47a));const _0x3cee76=_0x40d3ac[_0x3bccfb(0x2ef)](_0x45e8a3=>{var _0x2f7a75=_0x3bccfb;const _0x93cb8c=this['_compressMutationService'][_0x2f7a75(0x1dd)][_0x2f7a75(0x432)](this[_0x2f7a75(0x45f)][_0x2f7a75(0x1dd)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x45e8a3[_0x2f7a75(0x35f)],null)||_0x45e8a3['mutations'];return{..._0x45e8a3,'mutations':_0x93cb8c};});this['_lockTransition'](),this[_0x3bccfb(0x2b4)](this['_state']['onMissedChangesetFetched'](_0x3cee76)),this[_0x3bccfb(0x4ef)]();}['_toggleOffline'](){var _0x135688=_0x5deefc;this['_lockTransition'](),this[_0x135688(0x2b4)](this['_state']['toggleOffline']()),this[_0x135688(0x4ef)]();}['_toggleOnline'](_0x3e9913=!0x1){var _0x440f4f=_0x5deefc;this[_0x440f4f(0x243)](),this['_updateState'](this[_0x440f4f(0x3cf)][_0x440f4f(0x30f)]()),this[_0x440f4f(0x4ef)]();const _0x344f9e=this[_0x440f4f(0x3cf)];_0x3e9913&&_0x344f9e instanceof SyncedState&&(this[_0x440f4f(0x243)](),this[_0x440f4f(0x2b4)](_0x344f9e[_0x440f4f(0x1c9)]()),this[_0x440f4f(0x4ef)]());}async['_createInitialState'](){return new Promise(_0x1e958e=>{var _0x4a00c2=_0x450a;this[_0x4a00c2(0x289)]['sessionStatus$'][_0x4a00c2(0x431)](_0x21435b(0x1))[_0x4a00c2(0x49c)](async _0x3fd579=>{var _0x57987e=_0x4a00c2;_0x1e958e(await this[_0x57987e(0x357)](_0x3fd579===SessionStatus['ONLINE']));});});}['_createHandler'](){var _0x4325a4=_0x5deefc;const _0x41d9e8=this[_0x4325a4(0x46e)];return{'onStateChange':__name((_0x4cf52,_0x5c2ba0)=>{var _0x331335=_0x4325a4;if(_0x4cf52!==this[_0x331335(0x3cf)])throw new Error(_0x331335(0x4af)+_0x4cf52['status']+_0x331335(0x3e6)+_0x5c2ba0[_0x331335(0x1cc)]+'\x0aCurrent:\x20'+this[_0x331335(0x3cf)][_0x331335(0x1cc)]);this[_0x331335(0x2b4)](_0x5c2ba0);},_0x4325a4(0x450)),'onSendChangeset':__name(_0x30ed33=>{var _0x16fca2=_0x4325a4;_0x30ed33['sid']||(_0x30ed33[_0x16fca2(0x4b3)]=this[_0x16fca2(0x1b3)],_0x30ed33[_0x16fca2(0x20b)]=++this['_changesetReqId']);const _0x3e06a3={'eventID':CollaborationEvent[_0x16fca2(0x1e1)],'data':{'unitID':_0x30ed33['unitID'],'unitType':this[_0x16fca2(0x1d8)],'changeset':_0x30ed33,'memberID':this[_0x16fca2(0x289)]['getMemberID']()}};this[_0x16fca2(0x289)][_0x16fca2(0x46b)](_0x3e06a3,this['unitID']);},_0x4325a4(0x2f9)),'onMissingChangesets':__name(({from:_0x24687d,to:_0x4869bb})=>{var _0x34ff96=_0x4325a4;this[_0x34ff96(0x1b0)]['debug']('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x24687d+_0x34ff96(0x2df)+_0x4869bb);const _0x419a39={'eventID':CollaborationEvent[_0x34ff96(0x3c3)],'data':{'unitID':_0x41d9e8,'unitType':this[_0x34ff96(0x1d8)],'from':_0x24687d,'to':_0x4869bb}};this[_0x34ff96(0x289)][_0x34ff96(0x46b)](_0x419a39,this[_0x34ff96(0x46e)]);},_0x4325a4(0x22d))};}async[_0x5deefc(0x357)](_0x526dbd){var _0x995e96=_0x5deefc,_0x548a81,_0x3716b0,_0x83568a;const _0x4d928e=await((_0x548a81=this['_localCacheService'])==null?void 0x0:_0x548a81[_0x995e96(0x4d5)](this['unitID'])),_0x46b6a1=(_0x3716b0=_0x4d928e==null?void 0x0:_0x4d928e[_0x995e96(0x35f)])!=null?_0x3716b0:[],_0x467d5a=(_0x83568a=_0x4d928e==null?void 0x0:_0x4d928e[_0x995e96(0x2f6)])!=null?_0x83568a:null,_0x2bd83e=!!(_0x467d5a!=null&&_0x467d5a[_0x995e96(0x4b3)])&&!!(_0x467d5a!=null&&_0x467d5a['reqId']);this['_changesetSessionId']=_0x2bd83e?_0x467d5a[_0x995e96(0x4b3)]:v4(),this['_changesetReqId']=_0x2bd83e?_0x467d5a[_0x995e96(0x20b)]:0x0;const _0xdac7c1=this[_0x995e96(0x46e)];try{this[_0x995e96(0x3d9)](_0x467d5a,_0x46b6a1);}catch(_0x311fa4){this['_logService'][_0x995e96(0x2ac)](_0x311fa4);}const _0x1eba8b=this[_0x995e96(0x31e)]();if(_0x526dbd){const _0x170812=createOnlineState(this[_0x995e96(0x321)],_0xdac7c1,this[_0x995e96(0x1d8)],_0x467d5a,_0x46b6a1,_0x1eba8b);return _0x170812 instanceof PendingState?_0x170812[_0x995e96(0x30d)]():(_0x170812 instanceof AwaitingWithPendingState||_0x170812 instanceof AwaitingState)&&_0x170812[_0x995e96(0x278)](),_0x170812;}return this[_0x995e96(0x321)][_0x995e96(0x371)](OfflineState,_0xdac7c1,this[_0x995e96(0x1d8)],_0x467d5a,_0x46b6a1,_0x1eba8b);}['_replayCachedMutations'](_0x76f7db,_0x19cefe){var _0x19aa14=_0x5deefc,_0x453a0e,_0x4c0fd1;const _0x5a2902=this['_compressMutationService'][_0x19aa14(0x1dd)][_0x19aa14(0x432)](this[_0x19aa14(0x45f)][_0x19aa14(0x1dd)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);(_0x453a0e=_0x5a2902((_0x76f7db==null?void 0x0:_0x76f7db['mutations'])||[],null))==null||_0x453a0e['forEach'](_0x426221=>this[_0x19aa14(0x215)][_0x19aa14(0x219)](_0x426221['id'],_0x426221['params'])),(_0x4c0fd1=_0x5a2902(_0x19cefe||[],null))==null||_0x4c0fd1[_0x19aa14(0x329)](_0x2e3ddc=>this[_0x19aa14(0x215)][_0x19aa14(0x219)](_0x2e3ddc['id'],_0x2e3ddc[_0x19aa14(0x43c)]));}},__name(_a13,_0x5deefc(0x36d)),_a13);CollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(CollaborationUIEventService)),__decorateParam$c(0x8,ILogService),__decorateParam$c(0x9,ICommandService),__decorateParam$c(0xa,IPermissionService),__decorateParam$c(0xb,Optional(ISingleActiveUnitService)),__decorateParam$c(0xc,Optional(ILocalCacheService))],CollaborationEntity);var _a14;let DocCollaborationEntity=(_a14=class extends CollaborationEntity{constructor(_0x4c6863,_0x5945bb,_0xd07629,_0xcd1272,_0x1e351b,_0x35043d,_0x2922f7,_0xa24b16,_0x36d352,_0x982a0b,_0x452a83,_0x5b0370,_0x5cbc71){var _0x36172f=_0x5deefc;super(_0x4c6863,_0xd07629,_0x5945bb,_0xcd1272,_0x1e351b,_0x35043d,_0x2922f7,_0xa24b16,_0x36d352,_0x982a0b,_0x452a83,_0x5b0370,_0x5cbc71),__publicField(this,'_handlerCallback',null),(this[_0x36172f(0x46e)]=_0x4c6863,this['type']=_0x5945bb);}[_0x5deefc(0x21c)](_0x1fa1ee){this['_handlerCallback']=_0x1fa1ee;}[_0x5deefc(0x290)](){var _0x579b1e=_0x5deefc;this[_0x579b1e(0x236)]=null,super['dispose']();}[_0x5deefc(0x31e)](){var _0x3a81fa=_0x5deefc;const _0x416d79=super[_0x3a81fa(0x31e)]();return _0x416d79['onTransformIME']=_0x43caf5=>{var _0x44cfbe=_0x3a81fa,_0x5ee25d,_0x551d44;return(_0x551d44=(_0x5ee25d=this[_0x44cfbe(0x236)])==null?void 0x0:_0x5ee25d[_0x44cfbe(0x1ac)])==null?void 0x0:_0x551d44['call'](_0x5ee25d,_0x43caf5);},_0x416d79[_0x3a81fa(0x49a)]=_0x40169c=>{var _0x13bee1=_0x3a81fa,_0x38bdcc,_0x12abe3;return(_0x12abe3=(_0x38bdcc=this[_0x13bee1(0x236)])==null?void 0x0:_0x38bdcc[_0x13bee1(0x49a)])==null?void 0x0:_0x12abe3[_0x13bee1(0x4db)](_0x38bdcc,_0x40169c);},_0x416d79[_0x3a81fa(0x25e)]=_0x2ae0fc=>{var _0x24d645=_0x3a81fa,_0x261c6d,_0x2be35a;return(_0x2be35a=(_0x261c6d=this[_0x24d645(0x236)])==null?void 0x0:_0x261c6d[_0x24d645(0x25e)])==null?void 0x0:_0x2be35a[_0x24d645(0x4db)](_0x261c6d,_0x2ae0fc);},_0x416d79['onSyncEditingCollabCursor']=_0xe73886=>{var _0x1a67fb=_0x3a81fa,_0xfad4c,_0x22d205;return(_0x22d205=(_0xfad4c=this[_0x1a67fb(0x236)])==null?void 0x0:_0xfad4c['onSyncEditingCollabCursor'])==null?void 0x0:_0x22d205['call'](_0xfad4c,_0xe73886);},_0x416d79['onTransformRemoteChangesetByIMECache']=_0x24b380=>{var _0x2b0012=_0x3a81fa,_0x4c2da3,_0x535930,_0x91c446;if(!((_0x4c2da3=this['_handlerCallback'])!=null&&_0x4c2da3['onTransformRemoteChangesetByIMECache']))throw new Error(_0x2b0012(0x475));return(_0x91c446=(_0x535930=this[_0x2b0012(0x236)])==null?void 0x0:_0x535930['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x91c446[_0x2b0012(0x4db)](_0x535930,_0x24b380);},_0x416d79[_0x3a81fa(0x4a1)]=_0x26dc52=>{var _0x116ea9=_0x3a81fa,_0x43fc46,_0x564c59,_0x117b2;if(!((_0x43fc46=this[_0x116ea9(0x236)])!=null&&_0x43fc46[_0x116ea9(0x4a1)]))throw new Error(_0x116ea9(0x4ba));return(_0x117b2=(_0x564c59=this[_0x116ea9(0x236)])==null?void 0x0:_0x564c59[_0x116ea9(0x4a1)])==null?void 0x0:_0x117b2['call'](_0x564c59,_0x26dc52);},_0x416d79;}async['_init'](){var _0x31e48=_0x5deefc;const _0x188581=await super[_0x31e48(0x499)]();return this[_0x31e48(0x415)](this[_0x31e48(0x215)][_0x31e48(0x242)]((_0x133fce,_0x241eb2)=>{var _0x59276a=_0x31e48;if(_0x133fce['type']!==CommandType[_0x59276a(0x270)]||_0x241eb2!=null&&_0x241eb2[_0x59276a(0x427)]||_0x241eb2!=null&&_0x241eb2[_0x59276a(0x392)]||_0x133fce['id']===RichTextEditingMutation['id'])return;const _0x2930c0=_0x133fce[_0x59276a(0x43c)];if((_0x2930c0==null?void 0x0:_0x2930c0[_0x59276a(0x4c0)])!==this[_0x59276a(0x46e)])return;const _0x2c127d=_0x133fce,_0x1fa351=this['_compressMutationService'][_0x59276a(0x1dd)][_0x59276a(0x432)](this[_0x59276a(0x45f)][_0x59276a(0x1dd)][_0x59276a(0x2e3)]()[_0x59276a(0x2e6)])([_0x2c127d],null)||[_0x2c127d];this[_0x59276a(0x23a)](_0x1fa351[0x0]);})),_0x188581;}},__name(_a14,'DocCollaborationEntity'),_a14);DocCollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(CollaborationUIEventService)),__decorateParam$c(0x8,ILogService),__decorateParam$c(0x9,ICommandService),__decorateParam$c(0xa,IPermissionService),__decorateParam$c(0xb,Optional(ISingleActiveUnitService)),__decorateParam$c(0xc,Optional(ILocalCacheService))],DocCollaborationEntity);var _a15;let SheetCollaborationEntity=(_a15=class extends CollaborationEntity{constructor(_0x330570,_0x45692f,_0x13823e,_0x2ee089,_0x30cf71,_0x435eae,_0x458595,_0x3147bf,_0x51ece3,_0x166975,_0x234a15,_0x5b72b3,_0x5b8b06,_0x32368d){var _0x195eb8=_0x5deefc;super(_0x330570,_0x13823e,_0x45692f,_0x2ee089,_0x30cf71,_0x435eae,_0x458595,_0x51ece3,_0x166975,_0x234a15,_0x5b72b3,_0x5b8b06,_0x32368d),this[_0x195eb8(0x46e)]=_0x330570,this[_0x195eb8(0x2b5)]=_0x45692f,this[_0x195eb8(0x3b3)]=_0x3147bf;}[_0x5deefc(0x31e)](){var _0x1aa533=_0x5deefc;const _0x86fb45=super[_0x1aa533(0x31e)]();return _0x86fb45['onTransformSelections']=_0x44bf57=>this['_sheetTransformSelectionsService'][_0x1aa533(0x25f)](_0x44bf57),_0x86fb45;}async['_init'](){var _0x132c77=_0x5deefc;const _0x25fa03=await super[_0x132c77(0x499)]();return this[_0x132c77(0x415)](this[_0x132c77(0x215)][_0x132c77(0x242)]((_0x5eb98c,_0x141b9e)=>{var _0x562b13=_0x132c77;if(_0x5eb98c['type']!==CommandType[_0x562b13(0x270)]||_0x141b9e!=null&&_0x141b9e['fromCollab']||_0x141b9e!=null&&_0x141b9e[_0x562b13(0x392)])return;const _0x5ac819=_0x5eb98c[_0x562b13(0x43c)];if((_0x5ac819==null?void 0x0:_0x5ac819['unitId'])!==this[_0x562b13(0x46e)])return;const _0x3cf000=_0x5eb98c,_0x383643=this[_0x562b13(0x45f)][_0x562b13(0x1dd)][_0x562b13(0x432)](this[_0x562b13(0x45f)][_0x562b13(0x1dd)]['getInterceptPoints']()[_0x562b13(0x2e6)])([_0x3cf000],null)||[_0x3cf000];this[_0x562b13(0x23a)](_0x383643[0x0]);})),_0x25fa03;}},__name(_a15,_0x5deefc(0x224)),_a15);SheetCollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(SheetTransformSelectionsService)),__decorateParam$c(0x8,Inject(CollaborationUIEventService)),__decorateParam$c(0x9,ILogService),__decorateParam$c(0xa,ICommandService),__decorateParam$c(0xb,IPermissionService),__decorateParam$c(0xc,Optional(ISingleActiveUnitService)),__decorateParam$c(0xd,Optional(ILocalCacheService))],SheetCollaborationEntity);var __defProp$b=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$b=Object[_0x5deefc(0x4e3)],__decorateClass$b=__name((_0x2318b6,_0x3898a8,_0x39d8de,_0x1dc164)=>{var _0x546377=_0x5deefc;for(var _0x2f8c6d=_0x1dc164>0x1?void 0x0:_0x1dc164?__getOwnPropDesc$b(_0x3898a8,_0x39d8de):_0x3898a8,_0x55b071=_0x2318b6[_0x546377(0x2f2)]-0x1,_0x40c475;_0x55b071>=0x0;_0x55b071--)(_0x40c475=_0x2318b6[_0x55b071])&&(_0x2f8c6d=(_0x1dc164?_0x40c475(_0x3898a8,_0x39d8de,_0x2f8c6d):_0x40c475(_0x2f8c6d))||_0x2f8c6d);return _0x1dc164&&_0x2f8c6d&&__defProp$b(_0x3898a8,_0x39d8de,_0x2f8c6d),_0x2f8c6d;},_0x5deefc(0x335)),__decorateParam$b=__name((_0x390310,_0x332362)=>(_0x4a1ac9,_0x52a2ae)=>_0x332362(_0x4a1ac9,_0x52a2ae,_0x390310),_0x5deefc(0x2cf)),_a16;let CollaborationController=(_a16=class extends RxDisposable{constructor(_0x27b344,_0x2dfcf9,_0x100507){var _0x152923=_0x5deefc;super(),__publicField(this,_0x152923(0x41c),new Map()),__publicField(this,_0x152923(0x3bc),new Subject()),__publicField(this,'entityInit$',this[_0x152923(0x3bc)][_0x152923(0x272)]()),(this[_0x152923(0x321)]=_0x27b344,this['_collabSessionService']=_0x2dfcf9,this[_0x152923(0x40e)]=_0x100507,this[_0x152923(0x499)]());}['dispose'](){var _0x3c4fd3=_0x5deefc;super[_0x3c4fd3(0x290)](),this[_0x3c4fd3(0x41c)][_0x3c4fd3(0x329)](_0x37e738=>_0x37e738['dispose']()),this[_0x3c4fd3(0x41c)]['clear']();}[_0x5deefc(0x414)](_0x468c17){var _0xce4907=_0x5deefc,_0x144604;return(_0x144604=this[_0xce4907(0x41c)][_0xce4907(0x1ff)](_0x468c17))!=null?_0x144604:null;}[_0x5deefc(0x3f9)](_0x2215b0){var _0x231e59=_0x5deefc;const _0x275005=this[_0x231e59(0x414)](_0x2215b0);return _0x275005?of(_0x275005):this['_entityInit$']['pipe'](filter(_0x12d808=>_0x12d808['unitID']===_0x2215b0));}[_0x5deefc(0x3e8)](_0x58f821){var _0x55b340=_0x5deefc;return firstValueFrom(this[_0x55b340(0x3f9)](_0x58f821)[_0x55b340(0x431)](map(()=>{})));}[_0x5deefc(0x499)](){var _0x381d0d=_0x5deefc;this[_0x381d0d(0x40e)][_0x381d0d(0x3c6)](UniverInstanceType[_0x381d0d(0x4a9)])[_0x381d0d(0x431)](takeUntil(this[_0x381d0d(0x1c6)]),delay(0x10))[_0x381d0d(0x49c)](async _0x37ed81=>{var _0x2ae6e8=_0x381d0d;const _0x16f7b9=_0x37ed81['getUnitId'](),_0x201db9=await this['_startCollaboration'](_0x16f7b9,UniverType[_0x2ae6e8(0x4a9)]);this[_0x2ae6e8(0x41c)]['set'](_0x16f7b9,_0x201db9);}),this['_univerInstanceService'][_0x381d0d(0x3c6)](UniverInstanceType[_0x381d0d(0x385)])['pipe'](takeUntil(this[_0x381d0d(0x1c6)]),delay(0x10))[_0x381d0d(0x431)](filter(_0x2b19ac=>!_0x2b19ac[_0x381d0d(0x1bd)]()[_0x381d0d(0x1ba)]('__')))['subscribe'](async _0x270f05=>{var _0x8538ed=_0x381d0d;const _0x1e1d49=_0x270f05[_0x8538ed(0x1bd)](),_0x21c8c8=await this['_startCollaboration'](_0x1e1d49,UniverType[_0x8538ed(0x385)]);this[_0x8538ed(0x41c)][_0x8538ed(0x31a)](_0x1e1d49,_0x21c8c8);}),merge(this[_0x381d0d(0x40e)][_0x381d0d(0x255)](UniverInstanceType[_0x381d0d(0x4a9)]),this[_0x381d0d(0x40e)][_0x381d0d(0x255)](UniverInstanceType[_0x381d0d(0x385)]))[_0x381d0d(0x431)](takeUntil(this['dispose$']))['subscribe'](_0x52880f=>{var _0x363119=_0x381d0d;const _0x181a8f=_0x52880f[_0x363119(0x1bd)](),_0x2473d8=this[_0x363119(0x41c)]['get'](_0x181a8f);_0x2473d8&&(_0x2473d8['dispose'](),this['_entities'][_0x363119(0x382)](_0x181a8f));});}async[_0x5deefc(0x22e)](_0x3d1e24,_0x2107fc){var _0x4bc25c=_0x5deefc;const _0x2a9fb3=await this[_0x4bc25c(0x34a)][_0x4bc25c(0x330)](_0x3d1e24),_0x5ef9f5=this[_0x4bc25c(0x321)][_0x4bc25c(0x371)](this[_0x4bc25c(0x4ac)](_0x2107fc),_0x3d1e24,_0x2107fc,_0x2a9fb3);return await _0x5ef9f5[_0x4bc25c(0x21f)](),this[_0x4bc25c(0x3bc)][_0x4bc25c(0x41a)](_0x5ef9f5),_0x5ef9f5;}[_0x5deefc(0x4ac)](_0x4f2f35){var _0x17a09c=_0x5deefc;switch(_0x4f2f35){case UniverType['UNIVER_DOC']:return DocCollaborationEntity;case UniverType['UNIVER_SHEET']:return SheetCollaborationEntity;default:throw new Error(_0x17a09c(0x3ea)+_0x4f2f35);}}},__name(_a16,_0x5deefc(0x21b)),_a16);CollaborationController=__decorateClass$b([__decorateParam$b(0x0,Inject(Injector)),__decorateParam$b(0x1,Inject(CollaborationSessionService)),__decorateParam$b(0x2,IUniverInstanceService)],CollaborationController);var __defProp$a=Object['defineProperty'],__getOwnPropDesc$a=Object[_0x5deefc(0x4e3)],__decorateClass$a=__name((_0x5cf4ff,_0xacf9b5,_0x3ae434,_0x4b5b7c)=>{var _0x5eebfd=_0x5deefc;for(var _0x21da67=_0x4b5b7c>0x1?void 0x0:_0x4b5b7c?__getOwnPropDesc$a(_0xacf9b5,_0x3ae434):_0xacf9b5,_0x2c10a2=_0x5cf4ff[_0x5eebfd(0x2f2)]-0x1,_0x18a742;_0x2c10a2>=0x0;_0x2c10a2--)(_0x18a742=_0x5cf4ff[_0x2c10a2])&&(_0x21da67=(_0x4b5b7c?_0x18a742(_0xacf9b5,_0x3ae434,_0x21da67):_0x18a742(_0x21da67))||_0x21da67);return _0x4b5b7c&&_0x21da67&&__defProp$a(_0xacf9b5,_0x3ae434,_0x21da67),_0x21da67;},_0x5deefc(0x46d)),__decorateParam$a=__name((_0x410da1,_0x18ae9d)=>(_0xd90893,_0x5c9f39)=>_0x18ae9d(_0xd90893,_0x5c9f39,_0x410da1),_0x5deefc(0x422));const DEFAULT_FILE_NAME_KEY='DEFAULT_FILE_NAME',UNIVER_DEFAULT_FILE_NAME=_0x5deefc(0x484);var _a17;let FileNameController=(_a17=class extends Disposable{constructor(_0x27a6df,_0x585758){var _0xa62a46=_0x5deefc;super(),this['_univerInstanceService']=_0x27a6df,this['_configService']=_0x585758,this[_0xa62a46(0x499)]();}[_0x5deefc(0x499)](){var _0x52023d=_0x5deefc;this[_0x52023d(0x415)](this['_univerInstanceService'][_0x52023d(0x3e1)][_0x52023d(0x49c)](()=>{var _0x2c994e=_0x52023d,_0x2dc28b;const _0x5dd635=this[_0x2c994e(0x40e)][_0x2c994e(0x352)]();let _0x3920e5=(_0x2dc28b=this[_0x2c994e(0x32a)][_0x2c994e(0x365)](DEFAULT_FILE_NAME_KEY))!=null?_0x2dc28b:UNIVER_DEFAULT_FILE_NAME;_0x5dd635 instanceof Workbook&&(_0x3920e5=_0x5dd635['name']),document[_0x2c994e(0x268)]=_0x3920e5;}));}},__name(_a17,_0x5deefc(0x418)),_a17);FileNameController=__decorateClass$a([__decorateParam$a(0x0,IUniverInstanceService),__decorateParam$a(0x1,IConfigService)],FileNameController);var __defProp$9=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$9=Object['getOwnPropertyDescriptor'],__decorateClass$9=__name((_0x118c5b,_0x3a4f5d,_0x20c85c,_0x353f6f)=>{var _0x4d8a1d=_0x5deefc;for(var _0x135f7b=_0x353f6f>0x1?void 0x0:_0x353f6f?__getOwnPropDesc$9(_0x3a4f5d,_0x20c85c):_0x3a4f5d,_0x43ce38=_0x118c5b[_0x4d8a1d(0x2f2)]-0x1,_0x5e1733;_0x43ce38>=0x0;_0x43ce38--)(_0x5e1733=_0x118c5b[_0x43ce38])&&(_0x135f7b=(_0x353f6f?_0x5e1733(_0x3a4f5d,_0x20c85c,_0x135f7b):_0x5e1733(_0x135f7b))||_0x135f7b);return _0x353f6f&&_0x135f7b&&__defProp$9(_0x3a4f5d,_0x20c85c,_0x135f7b),_0x135f7b;},'__decorateClass$9'),__decorateParam$9=__name((_0x39872d,_0x2b32f9)=>(_0x1a83ff,_0x7387be)=>_0x2b32f9(_0x1a83ff,_0x7387be,_0x39872d),'__decorateParam$9'),_a18;let AuthServerService=(_a18=class{constructor(_0x4933f8,_0x70e75f,_0x464c1d){var _0x4be669=_0x5deefc;this[_0x4be669(0x32a)]=_0x4933f8,this[_0x4be669(0x3ac)]=_0x70e75f,this[_0x4be669(0x213)]=_0x464c1d,this[_0x4be669(0x21f)]();}[_0x5deefc(0x21f)](){var _0x46e5cd=_0x5deefc;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':__name((_0x261225,_0x4ee440)=>_0x4ee440(_0x261225)[_0x46e5cd(0x431)](concatMap(async _0x664e2c=>{var _0x1bf9a6=_0x46e5cd;const _0x408306=_0x664e2c;if(_0x408306[_0x1bf9a6(0x1cc)]===0x191){if(typeof window>'u')throw new Error(_0x1bf9a6(0x44c));if(window[_0x1bf9a6(0x1e0)](this[_0x1bf9a6(0x213)]['t'](_0x1bf9a6(0x26f)))){const _0x208f9c=window[_0x1bf9a6(0x1b8)](window['location'][_0x1bf9a6(0x360)]);window[_0x1bf9a6(0x264)][_0x1bf9a6(0x360)]=this[_0x1bf9a6(0x49e)]()+_0x1bf9a6(0x48e)+_0x208f9c;}}return _0x408306;})),_0x46e5cd(0x1dd))});}[_0x5deefc(0x49e)](){var _0x979613=_0x5deefc,_0x4c095a,_0x3db0f5;const _0x4bf4de=this[_0x979613(0x32a)][_0x979613(0x365)](LOGIN_URL_KEY),_0x9139d4=this[_0x979613(0x32a)][_0x979613(0x365)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x3db0f5=(_0x4c095a=_0x9139d4==null?void 0x0:_0x9139d4[_0x979613(0x4d7)])!=null?_0x4c095a:_0x4bf4de)!=null?_0x3db0f5:DEFAULT_LOGIN_URL;}},__name(_a18,_0x5deefc(0x2d7)),_a18);AuthServerService=__decorateClass$9([__decorateParam$9(0x0,IConfigService),__decorateParam$9(0x1,Inject(HTTPService)),__decorateParam$9(0x2,Inject(LocaleService))],AuthServerService);var __defProp$8=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$8=Object['getOwnPropertyDescriptor'],__decorateClass$8=__name((_0x4b3ff6,_0x3eda78,_0x11451a,_0x20c64b)=>{var _0x43df65=_0x5deefc;for(var _0x1a36df=_0x20c64b>0x1?void 0x0:_0x20c64b?__getOwnPropDesc$8(_0x3eda78,_0x11451a):_0x3eda78,_0x2d23f7=_0x4b3ff6[_0x43df65(0x2f2)]-0x1,_0x707677;_0x2d23f7>=0x0;_0x2d23f7--)(_0x707677=_0x4b3ff6[_0x2d23f7])&&(_0x1a36df=(_0x20c64b?_0x707677(_0x3eda78,_0x11451a,_0x1a36df):_0x707677(_0x1a36df))||_0x1a36df);return _0x20c64b&&_0x1a36df&&__defProp$8(_0x3eda78,_0x11451a,_0x1a36df),_0x1a36df;},'__decorateClass$8'),__decorateParam$8=__name((_0x325907,_0x24e3ac)=>(_0x29756f,_0x4bb70c)=>_0x24e3ac(_0x29756f,_0x4bb70c,_0x325907),_0x5deefc(0x2d4));const AUTHZ_URL_KEY=_0x5deefc(0x4fa),DEFAULT_AUTHZ_URL_KEY$1=_0x5deefc(0x433);var _a19;let AuthzIoHttpService=(_a19=class extends Disposable{constructor(_0x56bf64,_0x21378b){var _0x167534=_0x5deefc;super(),this[_0x167534(0x36f)]=_0x56bf64,this[_0x167534(0x32a)]=_0x21378b,this[_0x167534(0x42e)]();}[_0x5deefc(0x42e)](){var _0xefcc3e=_0x5deefc;const _0x4936d0=this;this[_0xefcc3e(0x415)](this['_HTTPService'][_0xefcc3e(0x245)]({'priority':0x3e7,'interceptor':MergeInterceptorFactory({'isMatch'(_0x7c4b39){var _0x372a85=_0xefcc3e,_0x1ecbca;if(_0x7c4b39[_0x372a85(0x44f)]===_0x372a85(0x3c5)&&((_0x1ecbca=_0x7c4b39['requestParams'])!=null&&_0x1ecbca[_0x372a85(0x324)])){const {objectID:_0x535a1e,objectType:_0x523061}=_0x7c4b39[_0x372a85(0x4cd)][_0x372a85(0x324)]||{};if(!_0x535a1e||_0x523061===void 0x0)return!0x1;const _0x284843=_0x4936d0[_0x372a85(0x32d)]()+'/'+_0x523061+_0x372a85(0x407)+_0x535a1e+'/allowed';if(_0x7c4b39[_0x372a85(0x241)]===_0x284843)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x28db09){var _0x2ca234=_0xefcc3e,_0x57c15d;return(_0x57c15d=_0x28db09[_0x2ca234(0x4cd)])==null?void 0x0:_0x57c15d[_0x2ca234(0x324)];},'mergeParamsToRequest'(_0x1812a6,_0x48c997){var _0x1802e5=_0xefcc3e;const _0x430fde=_0x4936d0['_getAPIPrefixPath']()+_0x1802e5(0x24f),_0x271cf9=_0x1812a6[_0x1802e5(0x488)]((_0x32c6f1,_0x26391f)=>{var _0x3a62fe=_0x1802e5;const {unitID:_0x3acc34,objectID:_0x38283c,objectType:_0x4d3bba,actions:_0x25c76a}=_0x26391f;return _0x32c6f1[_0x3acc34]||(_0x32c6f1[_0x3acc34]={}),_0x32c6f1[_0x3acc34][_0x38283c]||(_0x32c6f1[_0x3acc34][_0x38283c]={'objectID':_0x38283c,'objectType':_0x4d3bba,'actions':[]}),_0x32c6f1[_0x3acc34][_0x38283c][_0x3a62fe(0x2c8)]['push'](..._0x25c76a),_0x32c6f1;},{}),_0x5d10fb=[];for(const _0x4b9d6f in _0x271cf9)for(const _0x1da796 in _0x271cf9[_0x4b9d6f]){const {actions:_0x4d3ce5,objectType:_0x3aaf95}=_0x271cf9[_0x4b9d6f][_0x1da796],_0xf8031b=[...new Set(_0x4d3ce5)];_0x5d10fb[_0x1802e5(0x202)]({'unitID':_0x4b9d6f,'objectID':_0x1da796,'objectType':_0x3aaf95,'actions':_0xf8031b});}return new HTTPRequest(_0x1802e5(0x3c5),_0x430fde,{'headers':_0x48c997[_0x1802e5(0x2c3)],'withCredentials':_0x48c997['withCredentials'],'responseType':_0x48c997[_0x1802e5(0x4ee)],'body':{'requests':_0x5d10fb}});}},{'distributeResult'(_0xb633a3,_0xac6be){const {objectActions:_0x42654b}=_0xb633a3;return _0xac6be['map'](_0x449968=>{var _0x373ed1=_0x450a;const {unitID:_0x4edd96,objectID:_0x2685ed,actions:_0x32d30c}=_0x449968,_0x2765a4=_0x42654b['find'](_0x56af16=>_0x56af16['unitID']===_0x4edd96&&_0x56af16[_0x373ed1(0x3fa)]===_0x2685ed),_0x1ddede=_0x32d30c[_0x373ed1(0x2ef)](_0xe8b710=>_0x2765a4==null?void 0x0:_0x2765a4[_0x373ed1(0x2c8)]['find'](_0x7833d=>_0x7833d['action']===_0xe8b710))[_0x373ed1(0x2a2)](_0x3819d5=>!!_0x3819d5);return{'config':_0x449968,'result':{'actions':_0x1ddede,'error':_0xb633a3[_0x373ed1(0x2ac)]}};});}})}));}[_0x5deefc(0x32d)](){var _0xd4bccc=_0x5deefc,_0x312b99,_0x488c65;const _0x381b97=this[_0xd4bccc(0x32a)][_0xd4bccc(0x365)](AUTHZ_URL_KEY),_0x57b52c=this[_0xd4bccc(0x32a)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x488c65=(_0x312b99=_0x57b52c==null?void 0x0:_0x57b52c['authzUrl'])!=null?_0x312b99:_0x381b97)!=null?_0x488c65:DEFAULT_AUTHZ_URL_KEY$1;}async['create'](_0x5c91dd){var _0x201a2b=_0x5deefc;const _0x12a789=this[_0x201a2b(0x32d)]()+'/'+_0x5c91dd[_0x201a2b(0x303)]+_0x201a2b(0x375);return(await this['_HTTPService'][_0x201a2b(0x47b)](_0x12a789,{'body':_0x5c91dd}))[_0x201a2b(0x324)][_0x201a2b(0x3fa)]||'';}async['list'](_0xea688e){var _0x4e2408=_0x5deefc;const _0xa173ee=this[_0x4e2408(0x32d)]()+_0x4e2408(0x3f1);return(await this[_0x4e2408(0x36f)][_0x4e2408(0x47b)](_0xa173ee,{'body':_0xea688e}))[_0x4e2408(0x324)][_0x4e2408(0x35c)];}async[_0x5deefc(0x2ea)](_0x13486f){var _0x4454e6=_0x5deefc;const _0x513999=this[_0x4454e6(0x32d)]()+'/'+_0x13486f[_0x4454e6(0x303)]+_0x4454e6(0x407)+_0x13486f[_0x4454e6(0x3fa)];await this[_0x4454e6(0x36f)]['put'](_0x513999,{'body':_0x13486f});}async[_0x5deefc(0x35e)](_0x2c6657){var _0x2d04a7=_0x5deefc;const _0x38acc8=this[_0x2d04a7(0x32d)]()+'/'+_0x2c6657[_0x2d04a7(0x303)]+_0x2d04a7(0x407)+_0x2c6657['objectID']+_0x2d04a7(0x425);return(await this[_0x2d04a7(0x36f)][_0x2d04a7(0x47b)](_0x38acc8,{'body':_0x2c6657}))['body'][_0x2d04a7(0x2c8)];}async['batchAllowed'](_0x959d5d){var _0x2f7078=_0x5deefc;const _0x4f2ca2=this[_0x2f7078(0x32d)]()+_0x2f7078(0x24f);return(await this[_0x2f7078(0x36f)][_0x2f7078(0x47b)](_0x4f2ca2,{'body':{'requests':_0x959d5d}}))['body'][_0x2f7078(0x3a0)];}async['listRoles'](_0x59f618){var _0x439c93=_0x5deefc;const _0x25cbf8=this[_0x439c93(0x32d)]()+'/'+_0x59f618[_0x439c93(0x303)]+'/role',_0x14ba29=await this[_0x439c93(0x36f)][_0x439c93(0x47b)](_0x25cbf8,{'body':_0x59f618});return{'roles':_0x14ba29[_0x439c93(0x324)][_0x439c93(0x4f2)],'actions':_0x14ba29[_0x439c93(0x324)]['actions']};}async[_0x5deefc(0x284)](_0x4958a){var _0x193656=_0x5deefc;const _0x47ada3=this[_0x193656(0x32d)]()+_0x193656(0x292);await this[_0x193656(0x36f)][_0x193656(0x382)](_0x47ada3,{'params':{'collaboratorID':_0x4958a[_0x193656(0x3cb)],'objectID':_0x4958a['objectID'],'unitID':_0x4958a[_0x193656(0x46e)]}});}async[_0x5deefc(0x1d6)](_0x4db833){var _0x436868=_0x5deefc;const _0x39d641=this[_0x436868(0x32d)]()+_0x436868(0x292);await this[_0x436868(0x36f)][_0x436868(0x218)](_0x39d641,{'body':_0x4db833});}async['createCollaborator'](_0x57b7cf){var _0x13c604=_0x5deefc;const _0x4a8066=this[_0x13c604(0x32d)]()+'/collaborator';await this[_0x13c604(0x36f)]['post'](_0x4a8066,{'body':_0x57b7cf});}async[_0x5deefc(0x49f)](_0x533f55){var _0x36090e=_0x5deefc;const _0x409341=this[_0x36090e(0x32d)]()+_0x36090e(0x292);return(await this[_0x36090e(0x36f)][_0x36090e(0x1ff)](_0x409341,{'params':{'objectID':_0x533f55[_0x36090e(0x3fa)],'unitID':_0x533f55[_0x36090e(0x46e)]}}))[_0x36090e(0x324)]['collaborators'];}async['putCollaborators'](_0xe20201){var _0x3de029=_0x5deefc;const _0x2703b8=this[_0x3de029(0x32d)]()+_0x3de029(0x292);await this['_HTTPService'][_0x3de029(0x341)](_0x2703b8,{'body':_0xe20201});}},__name(_a19,_0x5deefc(0x356)),_a19);AuthzIoHttpService=__decorateClass$8([__decorateParam$8(0x0,Inject(HTTPService)),__decorateParam$8(0x1,Inject(IConfigService))],AuthzIoHttpService);var commonjsGlobal=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function getDefaultExportFromCjs(_0x363b01){var _0x164b89=_0x5deefc;return _0x363b01&&_0x363b01['__esModule']&&Object[_0x164b89(0x30e)]['hasOwnProperty'][_0x164b89(0x4db)](_0x363b01,_0x164b89(0x4f8))?_0x363b01[_0x164b89(0x4f8)]:_0x363b01;}__name(getDefaultExportFromCjs,'getDefaultExportFromCjs');var aes$1={'exports':{}};function commonjsRequire(_0x539951){var _0x5d634d=_0x5deefc;throw new Error(_0x5d634d(0x397)+_0x539951+'\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.');}__name(commonjsRequire,_0x5deefc(0x35a));var core$1={'exports':{}},core=core$1['exports'],hasRequiredCore;function requireCore(){var _0x29faef=_0x5deefc;return hasRequiredCore||(hasRequiredCore=0x1,function(_0x27494a,_0x121b72){(function(_0xb1e1f5,_0x1b29c7){var _0x2e3464=_0x450a;_0x27494a[_0x2e3464(0x370)]=_0x1b29c7();}(core,function(){var _0x37f9be=_0x37f9be||function(_0x8fe164,_0x1baec0){var _0x5d5b03=_0x450a,_0x501ab9;if(typeof window<'u'&&window[_0x5d5b03(0x47f)]&&(_0x501ab9=window[_0x5d5b03(0x47f)]),typeof self<'u'&&self['crypto']&&(_0x501ab9=self['crypto']),typeof globalThis<'u'&&globalThis[_0x5d5b03(0x47f)]&&(_0x501ab9=globalThis[_0x5d5b03(0x47f)]),!_0x501ab9&&typeof window<'u'&&window['msCrypto']&&(_0x501ab9=window[_0x5d5b03(0x247)]),!_0x501ab9&&typeof commonjsGlobal<'u'&&commonjsGlobal[_0x5d5b03(0x47f)]&&(_0x501ab9=commonjsGlobal[_0x5d5b03(0x47f)]),!_0x501ab9&&typeof commonjsRequire==_0x5d5b03(0x2db))try{_0x501ab9=require('crypto');}catch{}var _0x4a3aa1=__name(function(){var _0x545741=_0x5d5b03;if(_0x501ab9){if(typeof _0x501ab9[_0x545741(0x3c0)]==_0x545741(0x2db))try{return _0x501ab9['getRandomValues'](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x501ab9[_0x545741(0x227)]==_0x545741(0x2db))try{return _0x501ab9['randomBytes'](0x4)[_0x545741(0x405)]();}catch{}}throw new Error('Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.');},_0x5d5b03(0x26b)),_0x57eb12=Object[_0x5d5b03(0x366)]||(function(){function _0x4d37a1(){}return __name(_0x4d37a1,'F'),function(_0x409f73){var _0x165d83=_0x450a,_0x57342b;return _0x4d37a1[_0x165d83(0x30e)]=_0x409f73,_0x57342b=new _0x4d37a1(),_0x4d37a1[_0x165d83(0x30e)]=null,_0x57342b;};}()),_0x2aaa7f={},_0x469ae2=_0x2aaa7f[_0x5d5b03(0x2b3)]={},_0x30019d=_0x469ae2[_0x5d5b03(0x4c7)]=(function(){var _0x5ec6d6=_0x5d5b03;return{'extend':__name(function(_0x2eac5b){var _0x4fe10f=_0x450a,_0xa1038b=_0x57eb12(this);return _0x2eac5b&&_0xa1038b[_0x4fe10f(0x437)](_0x2eac5b),(!_0xa1038b[_0x4fe10f(0x33d)]('init')||this[_0x4fe10f(0x21f)]===_0xa1038b[_0x4fe10f(0x21f)])&&(_0xa1038b[_0x4fe10f(0x21f)]=function(){var _0x9e2cfa=_0x4fe10f;_0xa1038b['$super'][_0x9e2cfa(0x21f)][_0x9e2cfa(0x2bc)](this,arguments);}),_0xa1038b[_0x4fe10f(0x21f)][_0x4fe10f(0x30e)]=_0xa1038b,_0xa1038b[_0x4fe10f(0x2b9)]=this,_0xa1038b;},_0x5ec6d6(0x400)),'create':__name(function(){var _0x329c69=_0x5ec6d6,_0x502169=this[_0x329c69(0x400)]();return _0x502169['init']['apply'](_0x502169,arguments),_0x502169;},_0x5ec6d6(0x366)),'init':__name(function(){},'init'),'mixIn':__name(function(_0x40de0b){var _0x1fdd62=_0x5ec6d6;for(var _0x1ceb69 in _0x40de0b)_0x40de0b[_0x1fdd62(0x33d)](_0x1ceb69)&&(this[_0x1ceb69]=_0x40de0b[_0x1ceb69]);_0x40de0b[_0x1fdd62(0x33d)](_0x1fdd62(0x4c1))&&(this[_0x1fdd62(0x4c1)]=_0x40de0b['toString']);},_0x5ec6d6(0x437)),'clone':__name(function(){var _0x4efb01=_0x5ec6d6;return this['init'][_0x4efb01(0x30e)][_0x4efb01(0x400)](this);},'clone')};}()),_0x32bbf8=_0x469ae2['WordArray']=_0x30019d['extend']({'init':__name(function(_0x48aaeb,_0x21830c){var _0x334e89=_0x5d5b03;_0x48aaeb=this[_0x334e89(0x253)]=_0x48aaeb||[],_0x21830c!=_0x1baec0?this['sigBytes']=_0x21830c:this['sigBytes']=_0x48aaeb[_0x334e89(0x2f2)]*0x4;},_0x5d5b03(0x21f)),'toString':__name(function(_0x126b19){var _0x385e4b=_0x5d5b03;return(_0x126b19||_0x525e29)[_0x385e4b(0x480)](this);},_0x5d5b03(0x4c1)),'concat':__name(function(_0x6f4e5d){var _0x4a643e=_0x5d5b03,_0x58a87c=this[_0x4a643e(0x253)],_0x30df4b=_0x6f4e5d[_0x4a643e(0x253)],_0x415380=this[_0x4a643e(0x1fe)],_0x4a5a1c=_0x6f4e5d[_0x4a643e(0x1fe)];if(this['clamp'](),_0x415380%0x4)for(var _0x5602b9=0x0;_0x5602b9<_0x4a5a1c;_0x5602b9++){var _0x3ba7e8=_0x30df4b[_0x5602b9>>>0x2]>>>0x18-_0x5602b9%0x4*0x8&0xff;_0x58a87c[_0x415380+_0x5602b9>>>0x2]|=_0x3ba7e8<<0x18-(_0x415380+_0x5602b9)%0x4*0x8;}else{for(var _0x3d409c=0x0;_0x3d409c<_0x4a5a1c;_0x3d409c+=0x4)_0x58a87c[_0x415380+_0x3d409c>>>0x2]=_0x30df4b[_0x3d409c>>>0x2];}return this[_0x4a643e(0x1fe)]+=_0x4a5a1c,this;},_0x5d5b03(0x2e2)),'clamp':__name(function(){var _0x3b56c1=_0x5d5b03,_0x18dcf7=this['words'],_0x5472ed=this[_0x3b56c1(0x1fe)];_0x18dcf7[_0x5472ed>>>0x2]&=0xffffffff<<0x20-_0x5472ed%0x4*0x8,_0x18dcf7[_0x3b56c1(0x2f2)]=_0x8fe164['ceil'](_0x5472ed/0x4);},'clamp'),'clone':__name(function(){var _0x445081=_0x5d5b03,_0x555fab=_0x30019d[_0x445081(0x3e5)][_0x445081(0x4db)](this);return _0x555fab[_0x445081(0x253)]=this[_0x445081(0x253)][_0x445081(0x479)](0x0),_0x555fab;},_0x5d5b03(0x3e5)),'random':__name(function(_0x477e45){var _0x3a1fc6=_0x5d5b03;for(var _0x46b653=[],_0x114ebf=0x0;_0x114ebf<_0x477e45;_0x114ebf+=0x4)_0x46b653[_0x3a1fc6(0x202)](_0x4a3aa1());return new _0x32bbf8[(_0x3a1fc6(0x21f))](_0x46b653,_0x477e45);},_0x5d5b03(0x4ae))}),_0x2e6183=_0x2aaa7f[_0x5d5b03(0x23b)]={},_0x525e29=_0x2e6183[_0x5d5b03(0x38a)]={'stringify':__name(function(_0x5b7411){var _0x525f30=_0x5d5b03;for(var _0xf33fbe=_0x5b7411[_0x525f30(0x253)],_0x4d608b=_0x5b7411[_0x525f30(0x1fe)],_0x27595c=[],_0x393b18=0x0;_0x393b18<_0x4d608b;_0x393b18++){var _0x5d2496=_0xf33fbe[_0x393b18>>>0x2]>>>0x18-_0x393b18%0x4*0x8&0xff;_0x27595c[_0x525f30(0x202)]((_0x5d2496>>>0x4)[_0x525f30(0x4c1)](0x10)),_0x27595c[_0x525f30(0x202)]((_0x5d2496&0xf)['toString'](0x10));}return _0x27595c['join']('');},'stringify'),'parse':__name(function(_0x7eb4f9){var _0x32619d=_0x5d5b03;for(var _0x4c8f39=_0x7eb4f9[_0x32619d(0x2f2)],_0x1da75b=[],_0x583eb8=0x0;_0x583eb8<_0x4c8f39;_0x583eb8+=0x2)_0x1da75b[_0x583eb8>>>0x3]|=parseInt(_0x7eb4f9['substr'](_0x583eb8,0x2),0x10)<<0x18-_0x583eb8%0x8*0x4;return new _0x32bbf8['init'](_0x1da75b,_0x4c8f39/0x2);},_0x5d5b03(0x1cd))},_0x37d089=_0x2e6183[_0x5d5b03(0x1bb)]={'stringify':__name(function(_0x4ff9c7){var _0xfd03f0=_0x5d5b03;for(var _0x2d98c0=_0x4ff9c7[_0xfd03f0(0x253)],_0x10a22b=_0x4ff9c7[_0xfd03f0(0x1fe)],_0x5a7847=[],_0x4e1ed3=0x0;_0x4e1ed3<_0x10a22b;_0x4e1ed3++){var _0x401b60=_0x2d98c0[_0x4e1ed3>>>0x2]>>>0x18-_0x4e1ed3%0x4*0x8&0xff;_0x5a7847[_0xfd03f0(0x202)](String[_0xfd03f0(0x374)](_0x401b60));}return _0x5a7847[_0xfd03f0(0x240)]('');},_0x5d5b03(0x480)),'parse':__name(function(_0x3f1c58){var _0xddadb8=_0x5d5b03;for(var _0x596e6d=_0x3f1c58[_0xddadb8(0x2f2)],_0x382ef3=[],_0x59d110=0x0;_0x59d110<_0x596e6d;_0x59d110++)_0x382ef3[_0x59d110>>>0x2]|=(_0x3f1c58[_0xddadb8(0x1e9)](_0x59d110)&0xff)<<0x18-_0x59d110%0x4*0x8;return new _0x32bbf8[(_0xddadb8(0x21f))](_0x382ef3,_0x596e6d);},_0x5d5b03(0x1cd))},_0x3fbab7=_0x2e6183[_0x5d5b03(0x4d2)]={'stringify':__name(function(_0x427d1f){var _0x1ff0e7=_0x5d5b03;try{return decodeURIComponent(escape(_0x37d089[_0x1ff0e7(0x480)](_0x427d1f)));}catch{throw new Error(_0x1ff0e7(0x25c));}},_0x5d5b03(0x480)),'parse':__name(function(_0x5279cc){var _0x793212=_0x5d5b03;return _0x37d089[_0x793212(0x1cd)](unescape(encodeURIComponent(_0x5279cc)));},_0x5d5b03(0x1cd))},_0x55993f=_0x469ae2[_0x5d5b03(0x1d7)]=_0x30019d[_0x5d5b03(0x400)]({'reset':__name(function(){var _0x592e27=_0x5d5b03;this[_0x592e27(0x417)]=new _0x32bbf8[(_0x592e27(0x21f))](),this['_nDataBytes']=0x0;},'reset'),'_append':__name(function(_0x312435){var _0x19786d=_0x5d5b03;typeof _0x312435==_0x19786d(0x380)&&(_0x312435=_0x3fbab7[_0x19786d(0x1cd)](_0x312435)),this['_data'][_0x19786d(0x2e2)](_0x312435),this[_0x19786d(0x477)]+=_0x312435[_0x19786d(0x1fe)];},_0x5d5b03(0x351)),'_process':__name(function(_0x30d9ea){var _0x258628=_0x5d5b03,_0x2247ad,_0x341670=this[_0x258628(0x417)],_0x2b0e82=_0x341670[_0x258628(0x253)],_0x119915=_0x341670[_0x258628(0x1fe)],_0x1653ed=this['blockSize'],_0x20d31f=_0x1653ed*0x4,_0x2490b5=_0x119915/_0x20d31f;_0x30d9ea?_0x2490b5=_0x8fe164[_0x258628(0x3a3)](_0x2490b5):_0x2490b5=_0x8fe164[_0x258628(0x29c)]((_0x2490b5|0x0)-this[_0x258628(0x1e3)],0x0);var _0x115668=_0x2490b5*_0x1653ed,_0x4d2a75=_0x8fe164[_0x258628(0x2ee)](_0x115668*0x4,_0x119915);if(_0x115668){for(var _0x3153ed=0x0;_0x3153ed<_0x115668;_0x3153ed+=_0x1653ed)this[_0x258628(0x1f3)](_0x2b0e82,_0x3153ed);_0x2247ad=_0x2b0e82[_0x258628(0x233)](0x0,_0x115668),_0x341670[_0x258628(0x1fe)]-=_0x4d2a75;}return new _0x32bbf8[(_0x258628(0x21f))](_0x2247ad,_0x4d2a75);},_0x5d5b03(0x3ca)),'clone':__name(function(){var _0x5c31c9=_0x5d5b03,_0x4bb020=_0x30019d[_0x5c31c9(0x3e5)][_0x5c31c9(0x4db)](this);return _0x4bb020[_0x5c31c9(0x417)]=this[_0x5c31c9(0x417)][_0x5c31c9(0x3e5)](),_0x4bb020;},_0x5d5b03(0x3e5)),'_minBufferSize':0x0});_0x469ae2[_0x5d5b03(0x482)]=_0x55993f[_0x5d5b03(0x400)]({'cfg':_0x30019d[_0x5d5b03(0x400)](),'init':__name(function(_0x3d1e66){var _0x3caed8=_0x5d5b03;this[_0x3caed8(0x3dc)]=this[_0x3caed8(0x3dc)][_0x3caed8(0x400)](_0x3d1e66),this[_0x3caed8(0x1be)]();},_0x5d5b03(0x21f)),'reset':__name(function(){var _0xc31cf4=_0x5d5b03;_0x55993f['reset'][_0xc31cf4(0x4db)](this),this[_0xc31cf4(0x4d9)]();},_0x5d5b03(0x1be)),'update':__name(function(_0x3c6db9){var _0x3219e2=_0x5d5b03;return this[_0x3219e2(0x351)](_0x3c6db9),this[_0x3219e2(0x3ca)](),this;},_0x5d5b03(0x2ea)),'finalize':__name(function(_0x48806a){var _0x5f5877=_0x5d5b03;_0x48806a&&this[_0x5f5877(0x351)](_0x48806a);var _0x3c3b12=this['_doFinalize']();return _0x3c3b12;},_0x5d5b03(0x4f9)),'blockSize':0x10,'_createHelper':__name(function(_0x3b68a6){return function(_0x57bcc9,_0x5b62c7){var _0x320ab6=_0x450a;return new _0x3b68a6[(_0x320ab6(0x21f))](_0x5b62c7)[_0x320ab6(0x4f9)](_0x57bcc9);};},_0x5d5b03(0x21e)),'_createHmacHelper':__name(function(_0x3115c1){return function(_0x5140bc,_0x3f6a4e){var _0x1f5412=_0x450a;return new _0x190480[(_0x1f5412(0x2a4))][(_0x1f5412(0x21f))](_0x3115c1,_0x3f6a4e)['finalize'](_0x5140bc);};},'_createHmacHelper')});var _0x190480=_0x2aaa7f['algo']={};return _0x2aaa7f;}(Math);return _0x37f9be;}));}(core$1)),core$1[_0x29faef(0x370)];}__name(requireCore,_0x5deefc(0x4f5));var encBase64$1={'exports':{}},encBase64=encBase64$1[_0x5deefc(0x370)],hasRequiredEncBase64;function requireEncBase64(){var _0x364882=_0x5deefc;return hasRequiredEncBase64||(hasRequiredEncBase64=0x1,function(_0x21ca7b,_0x488c21){(function(_0x5158ca,_0xa7e149){_0x21ca7b['exports']=_0xa7e149(requireCore());}(encBase64,function(_0x2df081){var _0x4c16c5=_0x450a;return(function(){var _0xf713a3=_0x450a,_0x3ba163=_0x2df081,_0x189216=_0x3ba163[_0xf713a3(0x2b3)],_0x291dd8=_0x189216[_0xf713a3(0x3ec)],_0x4b4cac=_0x3ba163[_0xf713a3(0x23b)];_0x4b4cac['Base64']={'stringify':__name(function(_0x2df0d0){var _0x330b1e=_0xf713a3,_0x211313=_0x2df0d0[_0x330b1e(0x253)],_0x527f66=_0x2df0d0[_0x330b1e(0x1fe)],_0x1d36a9=this[_0x330b1e(0x391)];_0x2df0d0[_0x330b1e(0x347)]();for(var _0x56fb63=[],_0x495eef=0x0;_0x495eef<_0x527f66;_0x495eef+=0x3)for(var _0x4abfd7=_0x211313[_0x495eef>>>0x2]>>>0x18-_0x495eef%0x4*0x8&0xff,_0x504d18=_0x211313[_0x495eef+0x1>>>0x2]>>>0x18-(_0x495eef+0x1)%0x4*0x8&0xff,_0x3c5ff1=_0x211313[_0x495eef+0x2>>>0x2]>>>0x18-(_0x495eef+0x2)%0x4*0x8&0xff,_0x49ec03=_0x4abfd7<<0x10|_0x504d18<<0x8|_0x3c5ff1,_0x1217f1=0x0;_0x1217f1<0x4&&_0x495eef+_0x1217f1*0.75<_0x527f66;_0x1217f1++)_0x56fb63[_0x330b1e(0x202)](_0x1d36a9[_0x330b1e(0x320)](_0x49ec03>>>0x6*(0x3-_0x1217f1)&0x3f));var _0x4d4b54=_0x1d36a9[_0x330b1e(0x320)](0x40);if(_0x4d4b54){for(;_0x56fb63[_0x330b1e(0x2f2)]%0x4;)_0x56fb63[_0x330b1e(0x202)](_0x4d4b54);}return _0x56fb63[_0x330b1e(0x240)]('');},_0xf713a3(0x480)),'parse':__name(function(_0x39428c){var _0x29df1b=_0xf713a3,_0x47d81e=_0x39428c[_0x29df1b(0x2f2)],_0x5b523e=this[_0x29df1b(0x391)],_0x174042=this[_0x29df1b(0x307)];if(!_0x174042){_0x174042=this['_reverseMap']=[];for(var _0x4f2f0d=0x0;_0x4f2f0d<_0x5b523e['length'];_0x4f2f0d++)_0x174042[_0x5b523e[_0x29df1b(0x1e9)](_0x4f2f0d)]=_0x4f2f0d;}var _0x25e5cd=_0x5b523e[_0x29df1b(0x320)](0x40);if(_0x25e5cd){var _0xd7f469=_0x39428c[_0x29df1b(0x1cf)](_0x25e5cd);_0xd7f469!==-0x1&&(_0x47d81e=_0xd7f469);}return _0x3d83f1(_0x39428c,_0x47d81e,_0x174042);},'parse'),'_map':'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='};function _0x3d83f1(_0x177cdf,_0x17b7c4,_0x48a4ca){var _0x3df2a9=_0xf713a3;for(var _0x49dad1=[],_0x27810e=0x0,_0xb3003=0x0;_0xb3003<_0x17b7c4;_0xb3003++)if(_0xb3003%0x4){var _0x26f68e=_0x48a4ca[_0x177cdf[_0x3df2a9(0x1e9)](_0xb3003-0x1)]<<_0xb3003%0x4*0x2,_0x49becc=_0x48a4ca[_0x177cdf[_0x3df2a9(0x1e9)](_0xb3003)]>>>0x6-_0xb3003%0x4*0x2,_0x2b14d6=_0x26f68e|_0x49becc;_0x49dad1[_0x27810e>>>0x2]|=_0x2b14d6<<0x18-_0x27810e%0x4*0x8,_0x27810e++;}return _0x291dd8[_0x3df2a9(0x366)](_0x49dad1,_0x27810e);}__name(_0x3d83f1,_0xf713a3(0x246));}()),_0x2df081[_0x4c16c5(0x23b)][_0x4c16c5(0x4b7)];}));}(encBase64$1)),encBase64$1[_0x364882(0x370)];}__name(requireEncBase64,_0x5deefc(0x494));var md5$1={'exports':{}},md5=md5$1['exports'],hasRequiredMd5;function requireMd5(){var _0x5068ed=_0x5deefc;return hasRequiredMd5||(hasRequiredMd5=0x1,function(_0x4bc242,_0x9767a){(function(_0x5a3c35,_0x5068cf){var _0x50098f=_0x450a;_0x4bc242[_0x50098f(0x370)]=_0x5068cf(requireCore());}(md5,function(_0x1bb079){return function(_0x4a340c){var _0x28fd06=_0x450a,_0x595b41=_0x1bb079,_0x13d069=_0x595b41[_0x28fd06(0x2b3)],_0x421669=_0x13d069[_0x28fd06(0x3ec)],_0x3703f7=_0x13d069[_0x28fd06(0x482)],_0x311c83=_0x595b41['algo'],_0x282a1d=[];(function(){var _0x2e4d02=_0x28fd06;for(var _0x2e5da4=0x0;_0x2e5da4<0x40;_0x2e5da4++)_0x282a1d[_0x2e5da4]=_0x4a340c[_0x2e4d02(0x27f)](_0x4a340c['sin'](_0x2e5da4+0x1))*0x100000000|0x0;}());var _0x40d0f4=_0x311c83[_0x28fd06(0x4ec)]=_0x3703f7[_0x28fd06(0x400)]({'_doReset':__name(function(){var _0x27eb11=_0x28fd06;this[_0x27eb11(0x456)]=new _0x421669[(_0x27eb11(0x21f))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},_0x28fd06(0x4d9)),'_doProcessBlock':__name(function(_0x4b54cc,_0x145c07){var _0xc280a6=_0x28fd06;for(var _0x100a73=0x0;_0x100a73<0x10;_0x100a73++){var _0x383bbd=_0x145c07+_0x100a73,_0x2246a0=_0x4b54cc[_0x383bbd];_0x4b54cc[_0x383bbd]=(_0x2246a0<<0x8|_0x2246a0>>>0x18)&0xff00ff|(_0x2246a0<<0x18|_0x2246a0>>>0x8)&0xff00ff00;}var _0x30a985=this[_0xc280a6(0x456)][_0xc280a6(0x253)],_0x1559d5=_0x4b54cc[_0x145c07+0x0],_0x29f657=_0x4b54cc[_0x145c07+0x1],_0x3ceb5b=_0x4b54cc[_0x145c07+0x2],_0x3ddfc7=_0x4b54cc[_0x145c07+0x3],_0x54c5be=_0x4b54cc[_0x145c07+0x4],_0x1ca069=_0x4b54cc[_0x145c07+0x5],_0xae135b=_0x4b54cc[_0x145c07+0x6],_0x1281be=_0x4b54cc[_0x145c07+0x7],_0x4939f9=_0x4b54cc[_0x145c07+0x8],_0xf55f66=_0x4b54cc[_0x145c07+0x9],_0x7231f2=_0x4b54cc[_0x145c07+0xa],_0x44ba33=_0x4b54cc[_0x145c07+0xb],_0x2f49e4=_0x4b54cc[_0x145c07+0xc],_0x599cce=_0x4b54cc[_0x145c07+0xd],_0x5574fe=_0x4b54cc[_0x145c07+0xe],_0x334b8d=_0x4b54cc[_0x145c07+0xf],_0x41187a=_0x30a985[0x0],_0x26193a=_0x30a985[0x1],_0x26f677=_0x30a985[0x2],_0x247850=_0x30a985[0x3];_0x41187a=_0x8d3a2c(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x1559d5,0x7,_0x282a1d[0x0]),_0x247850=_0x8d3a2c(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x29f657,0xc,_0x282a1d[0x1]),_0x26f677=_0x8d3a2c(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x3ceb5b,0x11,_0x282a1d[0x2]),_0x26193a=_0x8d3a2c(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x3ddfc7,0x16,_0x282a1d[0x3]),_0x41187a=_0x8d3a2c(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x54c5be,0x7,_0x282a1d[0x4]),_0x247850=_0x8d3a2c(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x1ca069,0xc,_0x282a1d[0x5]),_0x26f677=_0x8d3a2c(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0xae135b,0x11,_0x282a1d[0x6]),_0x26193a=_0x8d3a2c(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x1281be,0x16,_0x282a1d[0x7]),_0x41187a=_0x8d3a2c(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x4939f9,0x7,_0x282a1d[0x8]),_0x247850=_0x8d3a2c(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0xf55f66,0xc,_0x282a1d[0x9]),_0x26f677=_0x8d3a2c(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x7231f2,0x11,_0x282a1d[0xa]),_0x26193a=_0x8d3a2c(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x44ba33,0x16,_0x282a1d[0xb]),_0x41187a=_0x8d3a2c(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x2f49e4,0x7,_0x282a1d[0xc]),_0x247850=_0x8d3a2c(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x599cce,0xc,_0x282a1d[0xd]),_0x26f677=_0x8d3a2c(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x5574fe,0x11,_0x282a1d[0xe]),_0x26193a=_0x8d3a2c(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x334b8d,0x16,_0x282a1d[0xf]),_0x41187a=_0x1198a3(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x29f657,0x5,_0x282a1d[0x10]),_0x247850=_0x1198a3(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0xae135b,0x9,_0x282a1d[0x11]),_0x26f677=_0x1198a3(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x44ba33,0xe,_0x282a1d[0x12]),_0x26193a=_0x1198a3(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x1559d5,0x14,_0x282a1d[0x13]),_0x41187a=_0x1198a3(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x1ca069,0x5,_0x282a1d[0x14]),_0x247850=_0x1198a3(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x7231f2,0x9,_0x282a1d[0x15]),_0x26f677=_0x1198a3(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x334b8d,0xe,_0x282a1d[0x16]),_0x26193a=_0x1198a3(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x54c5be,0x14,_0x282a1d[0x17]),_0x41187a=_0x1198a3(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0xf55f66,0x5,_0x282a1d[0x18]),_0x247850=_0x1198a3(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x5574fe,0x9,_0x282a1d[0x19]),_0x26f677=_0x1198a3(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x3ddfc7,0xe,_0x282a1d[0x1a]),_0x26193a=_0x1198a3(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x4939f9,0x14,_0x282a1d[0x1b]),_0x41187a=_0x1198a3(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x599cce,0x5,_0x282a1d[0x1c]),_0x247850=_0x1198a3(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x3ceb5b,0x9,_0x282a1d[0x1d]),_0x26f677=_0x1198a3(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x1281be,0xe,_0x282a1d[0x1e]),_0x26193a=_0x1198a3(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x2f49e4,0x14,_0x282a1d[0x1f]),_0x41187a=_0x31dcf0(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x1ca069,0x4,_0x282a1d[0x20]),_0x247850=_0x31dcf0(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x4939f9,0xb,_0x282a1d[0x21]),_0x26f677=_0x31dcf0(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x44ba33,0x10,_0x282a1d[0x22]),_0x26193a=_0x31dcf0(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x5574fe,0x17,_0x282a1d[0x23]),_0x41187a=_0x31dcf0(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x29f657,0x4,_0x282a1d[0x24]),_0x247850=_0x31dcf0(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x54c5be,0xb,_0x282a1d[0x25]),_0x26f677=_0x31dcf0(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x1281be,0x10,_0x282a1d[0x26]),_0x26193a=_0x31dcf0(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x7231f2,0x17,_0x282a1d[0x27]),_0x41187a=_0x31dcf0(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x599cce,0x4,_0x282a1d[0x28]),_0x247850=_0x31dcf0(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x1559d5,0xb,_0x282a1d[0x29]),_0x26f677=_0x31dcf0(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x3ddfc7,0x10,_0x282a1d[0x2a]),_0x26193a=_0x31dcf0(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0xae135b,0x17,_0x282a1d[0x2b]),_0x41187a=_0x31dcf0(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0xf55f66,0x4,_0x282a1d[0x2c]),_0x247850=_0x31dcf0(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x2f49e4,0xb,_0x282a1d[0x2d]),_0x26f677=_0x31dcf0(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x334b8d,0x10,_0x282a1d[0x2e]),_0x26193a=_0x31dcf0(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x3ceb5b,0x17,_0x282a1d[0x2f]),_0x41187a=_0x1be9d(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x1559d5,0x6,_0x282a1d[0x30]),_0x247850=_0x1be9d(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x1281be,0xa,_0x282a1d[0x31]),_0x26f677=_0x1be9d(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x5574fe,0xf,_0x282a1d[0x32]),_0x26193a=_0x1be9d(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x1ca069,0x15,_0x282a1d[0x33]),_0x41187a=_0x1be9d(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x2f49e4,0x6,_0x282a1d[0x34]),_0x247850=_0x1be9d(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x3ddfc7,0xa,_0x282a1d[0x35]),_0x26f677=_0x1be9d(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x7231f2,0xf,_0x282a1d[0x36]),_0x26193a=_0x1be9d(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x29f657,0x15,_0x282a1d[0x37]),_0x41187a=_0x1be9d(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x4939f9,0x6,_0x282a1d[0x38]),_0x247850=_0x1be9d(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x334b8d,0xa,_0x282a1d[0x39]),_0x26f677=_0x1be9d(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0xae135b,0xf,_0x282a1d[0x3a]),_0x26193a=_0x1be9d(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x599cce,0x15,_0x282a1d[0x3b]),_0x41187a=_0x1be9d(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x54c5be,0x6,_0x282a1d[0x3c]),_0x247850=_0x1be9d(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x44ba33,0xa,_0x282a1d[0x3d]),_0x26f677=_0x1be9d(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x3ceb5b,0xf,_0x282a1d[0x3e]),_0x26193a=_0x1be9d(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0xf55f66,0x15,_0x282a1d[0x3f]),_0x30a985[0x0]=_0x30a985[0x0]+_0x41187a|0x0,_0x30a985[0x1]=_0x30a985[0x1]+_0x26193a|0x0,_0x30a985[0x2]=_0x30a985[0x2]+_0x26f677|0x0,_0x30a985[0x3]=_0x30a985[0x3]+_0x247850|0x0;},_0x28fd06(0x1f3)),'_doFinalize':__name(function(){var _0x42d767=_0x28fd06,_0x3f9a6b=this[_0x42d767(0x417)],_0x31fd60=_0x3f9a6b[_0x42d767(0x253)],_0x4dc664=this[_0x42d767(0x477)]*0x8,_0x3866ba=_0x3f9a6b['sigBytes']*0x8;_0x31fd60[_0x3866ba>>>0x5]|=0x80<<0x18-_0x3866ba%0x20;var _0x1a1f74=_0x4a340c['floor'](_0x4dc664/0x100000000),_0x5e7f07=_0x4dc664;_0x31fd60[(_0x3866ba+0x40>>>0x9<<0x4)+0xf]=(_0x1a1f74<<0x8|_0x1a1f74>>>0x18)&0xff00ff|(_0x1a1f74<<0x18|_0x1a1f74>>>0x8)&0xff00ff00,_0x31fd60[(_0x3866ba+0x40>>>0x9<<0x4)+0xe]=(_0x5e7f07<<0x8|_0x5e7f07>>>0x18)&0xff00ff|(_0x5e7f07<<0x18|_0x5e7f07>>>0x8)&0xff00ff00,_0x3f9a6b['sigBytes']=(_0x31fd60[_0x42d767(0x2f2)]+0x1)*0x4,this[_0x42d767(0x3ca)]();for(var _0x38ea80=this[_0x42d767(0x456)],_0x59d3d2=_0x38ea80[_0x42d767(0x253)],_0x380faa=0x0;_0x380faa<0x4;_0x380faa++){var _0x443a5d=_0x59d3d2[_0x380faa];_0x59d3d2[_0x380faa]=(_0x443a5d<<0x8|_0x443a5d>>>0x18)&0xff00ff|(_0x443a5d<<0x18|_0x443a5d>>>0x8)&0xff00ff00;}return _0x38ea80;},_0x28fd06(0x464)),'clone':__name(function(){var _0x4c62ad=_0x28fd06,_0x2863b1=_0x3703f7[_0x4c62ad(0x3e5)]['call'](this);return _0x2863b1[_0x4c62ad(0x456)]=this['_hash'][_0x4c62ad(0x3e5)](),_0x2863b1;},'clone')});function _0x8d3a2c(_0x205f03,_0x33f911,_0x1fa5a6,_0x1eecfe,_0x23ef79,_0x28ba24,_0x4ca54b){var _0x5281b0=_0x205f03+(_0x33f911&_0x1fa5a6|~_0x33f911&_0x1eecfe)+_0x23ef79+_0x4ca54b;return(_0x5281b0<<_0x28ba24|_0x5281b0>>>0x20-_0x28ba24)+_0x33f911;}__name(_0x8d3a2c,'FF');function _0x1198a3(_0x4ceb00,_0x3c8e00,_0x33789e,_0x4fba37,_0xc49b43,_0x52fb44,_0x2ad349){var _0x10dfcf=_0x4ceb00+(_0x3c8e00&_0x4fba37|_0x33789e&~_0x4fba37)+_0xc49b43+_0x2ad349;return(_0x10dfcf<<_0x52fb44|_0x10dfcf>>>0x20-_0x52fb44)+_0x3c8e00;}__name(_0x1198a3,'GG');function _0x31dcf0(_0x287a98,_0x8b1f51,_0x3370ad,_0x4534c8,_0x379013,_0x4bf4d7,_0x26bea4){var _0x30f671=_0x287a98+(_0x8b1f51^_0x3370ad^_0x4534c8)+_0x379013+_0x26bea4;return(_0x30f671<<_0x4bf4d7|_0x30f671>>>0x20-_0x4bf4d7)+_0x8b1f51;}__name(_0x31dcf0,'HH');function _0x1be9d(_0x1b346e,_0x1f1540,_0x1ca21e,_0x30661b,_0xe72f40,_0x4cd12a,_0x324187){var _0x3a7bed=_0x1b346e+(_0x1ca21e^(_0x1f1540|~_0x30661b))+_0xe72f40+_0x324187;return(_0x3a7bed<<_0x4cd12a|_0x3a7bed>>>0x20-_0x4cd12a)+_0x1f1540;}__name(_0x1be9d,'II'),_0x595b41[_0x28fd06(0x4ec)]=_0x3703f7[_0x28fd06(0x21e)](_0x40d0f4),_0x595b41[_0x28fd06(0x291)]=_0x3703f7[_0x28fd06(0x4bf)](_0x40d0f4);}(Math),_0x1bb079['MD5'];}));}(md5$1)),md5$1[_0x5068ed(0x370)];}__name(requireMd5,_0x5deefc(0x261));var evpkdf$1={'exports':{}},sha1$1={'exports':{}},sha1=sha1$1[_0x5deefc(0x370)],hasRequiredSha1;function requireSha1(){var _0x62aab5=_0x5deefc;return hasRequiredSha1||(hasRequiredSha1=0x1,function(_0x28e71d,_0x159bee){(function(_0xbb52a2,_0xdb2c01){var _0x5d3315=_0x450a;_0x28e71d[_0x5d3315(0x370)]=_0xdb2c01(requireCore());}(sha1,function(_0x551ba8){var _0x4f396f=_0x450a;return(function(){var _0x1d1629=_0x450a,_0x132030=_0x551ba8,_0x3df094=_0x132030[_0x1d1629(0x2b3)],_0xa058a1=_0x3df094[_0x1d1629(0x3ec)],_0x300926=_0x3df094['Hasher'],_0x2650ea=_0x132030[_0x1d1629(0x266)],_0x4f9936=[],_0x22a1e3=_0x2650ea['SHA1']=_0x300926['extend']({'_doReset':__name(function(){this['_hash']=new _0xa058a1['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},_0x1d1629(0x4d9)),'_doProcessBlock':__name(function(_0x20739f,_0x3b05e8){var _0x519d2f=_0x1d1629;for(var _0x2b0160=this[_0x519d2f(0x456)][_0x519d2f(0x253)],_0x5d0b56=_0x2b0160[0x0],_0x33ec0a=_0x2b0160[0x1],_0x5f4b02=_0x2b0160[0x2],_0xbc4373=_0x2b0160[0x3],_0x4072b7=_0x2b0160[0x4],_0x19a8a3=0x0;_0x19a8a3<0x50;_0x19a8a3++){if(_0x19a8a3<0x10)_0x4f9936[_0x19a8a3]=_0x20739f[_0x3b05e8+_0x19a8a3]|0x0;else{var _0x44d808=_0x4f9936[_0x19a8a3-0x3]^_0x4f9936[_0x19a8a3-0x8]^_0x4f9936[_0x19a8a3-0xe]^_0x4f9936[_0x19a8a3-0x10];_0x4f9936[_0x19a8a3]=_0x44d808<<0x1|_0x44d808>>>0x1f;}var _0x16a00b=(_0x5d0b56<<0x5|_0x5d0b56>>>0x1b)+_0x4072b7+_0x4f9936[_0x19a8a3];_0x19a8a3<0x14?_0x16a00b+=(_0x33ec0a&_0x5f4b02|~_0x33ec0a&_0xbc4373)+0x5a827999:_0x19a8a3<0x28?_0x16a00b+=(_0x33ec0a^_0x5f4b02^_0xbc4373)+0x6ed9eba1:_0x19a8a3<0x3c?_0x16a00b+=(_0x33ec0a&_0x5f4b02|_0x33ec0a&_0xbc4373|_0x5f4b02&_0xbc4373)-0x70e44324:_0x16a00b+=(_0x33ec0a^_0x5f4b02^_0xbc4373)-0x359d3e2a,_0x4072b7=_0xbc4373,_0xbc4373=_0x5f4b02,_0x5f4b02=_0x33ec0a<<0x1e|_0x33ec0a>>>0x2,_0x33ec0a=_0x5d0b56,_0x5d0b56=_0x16a00b;}_0x2b0160[0x0]=_0x2b0160[0x0]+_0x5d0b56|0x0,_0x2b0160[0x1]=_0x2b0160[0x1]+_0x33ec0a|0x0,_0x2b0160[0x2]=_0x2b0160[0x2]+_0x5f4b02|0x0,_0x2b0160[0x3]=_0x2b0160[0x3]+_0xbc4373|0x0,_0x2b0160[0x4]=_0x2b0160[0x4]+_0x4072b7|0x0;},_0x1d1629(0x1f3)),'_doFinalize':__name(function(){var _0x5272d7=_0x1d1629,_0x3d109d=this[_0x5272d7(0x417)],_0xe7d9c=_0x3d109d[_0x5272d7(0x253)],_0x352b87=this[_0x5272d7(0x477)]*0x8,_0x185cd8=_0x3d109d[_0x5272d7(0x1fe)]*0x8;return _0xe7d9c[_0x185cd8>>>0x5]|=0x80<<0x18-_0x185cd8%0x20,_0xe7d9c[(_0x185cd8+0x40>>>0x9<<0x4)+0xe]=Math[_0x5272d7(0x348)](_0x352b87/0x100000000),_0xe7d9c[(_0x185cd8+0x40>>>0x9<<0x4)+0xf]=_0x352b87,_0x3d109d[_0x5272d7(0x1fe)]=_0xe7d9c[_0x5272d7(0x2f2)]*0x4,this['_process'](),this['_hash'];},'_doFinalize'),'clone':__name(function(){var _0x32c7fc=_0x1d1629,_0x6665f4=_0x300926['clone'][_0x32c7fc(0x4db)](this);return _0x6665f4[_0x32c7fc(0x456)]=this[_0x32c7fc(0x456)][_0x32c7fc(0x3e5)](),_0x6665f4;},_0x1d1629(0x3e5))});_0x132030[_0x1d1629(0x328)]=_0x300926['_createHelper'](_0x22a1e3),_0x132030['HmacSHA1']=_0x300926['_createHmacHelper'](_0x22a1e3);}()),_0x551ba8[_0x4f396f(0x328)];}));}(sha1$1)),sha1$1[_0x62aab5(0x370)];}__name(requireSha1,_0x5deefc(0x1c3));var hmac$1={'exports':{}},hmac=hmac$1[_0x5deefc(0x370)],hasRequiredHmac;function requireHmac(){var _0xeed9d5=_0x5deefc;return hasRequiredHmac||(hasRequiredHmac=0x1,function(_0x58b942,_0x3a160d){(function(_0x1bbdb7,_0x35c727){var _0x61ddab=_0x450a;_0x58b942[_0x61ddab(0x370)]=_0x35c727(requireCore());}(hmac,function(_0x55e153){(function(){var _0x14bbba=_0x450a,_0x3f6994=_0x55e153,_0x507bc7=_0x3f6994[_0x14bbba(0x2b3)],_0x349c65=_0x507bc7['Base'],_0xbf0b8a=_0x3f6994[_0x14bbba(0x23b)],_0xc945ea=_0xbf0b8a['Utf8'],_0x144dff=_0x3f6994[_0x14bbba(0x266)];_0x144dff['HMAC']=_0x349c65[_0x14bbba(0x400)]({'init':__name(function(_0x5506b3,_0x16cd76){var _0x517576=_0x14bbba;_0x5506b3=this[_0x517576(0x2bd)]=new _0x5506b3[(_0x517576(0x21f))](),typeof _0x16cd76==_0x517576(0x380)&&(_0x16cd76=_0xc945ea[_0x517576(0x1cd)](_0x16cd76));var _0x5e03aa=_0x5506b3[_0x517576(0x2eb)],_0x19d59d=_0x5e03aa*0x4;_0x16cd76[_0x517576(0x1fe)]>_0x19d59d&&(_0x16cd76=_0x5506b3['finalize'](_0x16cd76)),_0x16cd76[_0x517576(0x347)]();for(var _0x174b21=this[_0x517576(0x48b)]=_0x16cd76[_0x517576(0x3e5)](),_0x58b617=this[_0x517576(0x368)]=_0x16cd76[_0x517576(0x3e5)](),_0x33f228=_0x174b21[_0x517576(0x253)],_0x185650=_0x58b617[_0x517576(0x253)],_0x3af5cd=0x0;_0x3af5cd<_0x5e03aa;_0x3af5cd++)_0x33f228[_0x3af5cd]^=0x5c5c5c5c,_0x185650[_0x3af5cd]^=0x36363636;_0x174b21['sigBytes']=_0x58b617[_0x517576(0x1fe)]=_0x19d59d,this[_0x517576(0x1be)]();},'init'),'reset':__name(function(){var _0x4bff26=_0x14bbba,_0x3b6b1c=this[_0x4bff26(0x2bd)];_0x3b6b1c[_0x4bff26(0x1be)](),_0x3b6b1c[_0x4bff26(0x2ea)](this['_iKey']);},'reset'),'update':__name(function(_0x52ab9e){var _0x23d50e=_0x14bbba;return this[_0x23d50e(0x2bd)][_0x23d50e(0x2ea)](_0x52ab9e),this;},_0x14bbba(0x2ea)),'finalize':__name(function(_0x1f230a){var _0x3669ef=_0x14bbba,_0xe364f0=this[_0x3669ef(0x2bd)],_0x211ccb=_0xe364f0['finalize'](_0x1f230a);_0xe364f0['reset']();var _0x37a696=_0xe364f0['finalize'](this[_0x3669ef(0x48b)]['clone']()[_0x3669ef(0x2e2)](_0x211ccb));return _0x37a696;},_0x14bbba(0x4f9))});}());}));}(hmac$1)),hmac$1[_0xeed9d5(0x370)];}__name(requireHmac,'requireHmac');var evpkdf=evpkdf$1[_0x5deefc(0x370)],hasRequiredEvpkdf;function requireEvpkdf(){var _0xf070c5=_0x5deefc;return hasRequiredEvpkdf||(hasRequiredEvpkdf=0x1,function(_0x3c0dd3,_0x4c0663){(function(_0x36533e,_0x57a3bc,_0x54c693){_0x3c0dd3['exports']=_0x57a3bc(requireCore(),requireSha1(),requireHmac());}(evpkdf,function(_0x4ad8f2){var _0x99c1b3=_0x450a;return(function(){var _0x188805=_0x450a,_0x1a0ca9=_0x4ad8f2,_0x1a1ffb=_0x1a0ca9[_0x188805(0x2b3)],_0x3b57f3=_0x1a1ffb[_0x188805(0x4c7)],_0x2480fc=_0x1a1ffb[_0x188805(0x3ec)],_0x1f9dab=_0x1a0ca9[_0x188805(0x266)],_0x2d3efd=_0x1f9dab['MD5'],_0x4416b7=_0x1f9dab['EvpKDF']=_0x3b57f3[_0x188805(0x400)]({'cfg':_0x3b57f3[_0x188805(0x400)]({'keySize':0x80/0x20,'hasher':_0x2d3efd,'iterations':0x1}),'init':__name(function(_0x11aa75){var _0xdd6ae9=_0x188805;this[_0xdd6ae9(0x3dc)]=this[_0xdd6ae9(0x3dc)][_0xdd6ae9(0x400)](_0x11aa75);},_0x188805(0x21f)),'compute':__name(function(_0x3e34bd,_0x25da01){var _0x402b1e=_0x188805;for(var _0x35c455,_0x162682=this[_0x402b1e(0x3dc)],_0x2f29d9=_0x162682[_0x402b1e(0x4fb)][_0x402b1e(0x366)](),_0x57d886=_0x2480fc[_0x402b1e(0x366)](),_0x41afcb=_0x57d886['words'],_0x5a1748=_0x162682[_0x402b1e(0x2b6)],_0x1dc6c8=_0x162682['iterations'];_0x41afcb['length']<_0x5a1748;){_0x35c455&&_0x2f29d9[_0x402b1e(0x2ea)](_0x35c455),_0x35c455=_0x2f29d9[_0x402b1e(0x2ea)](_0x3e34bd)[_0x402b1e(0x4f9)](_0x25da01),_0x2f29d9['reset']();for(var _0x576ae3=0x1;_0x576ae3<_0x1dc6c8;_0x576ae3++)_0x35c455=_0x2f29d9[_0x402b1e(0x4f9)](_0x35c455),_0x2f29d9[_0x402b1e(0x1be)]();_0x57d886[_0x402b1e(0x2e2)](_0x35c455);}return _0x57d886[_0x402b1e(0x1fe)]=_0x5a1748*0x4,_0x57d886;},_0x188805(0x223))});_0x1a0ca9[_0x188805(0x43a)]=function(_0x1bac84,_0x153756,_0x5d36b6){return _0x4416b7['create'](_0x5d36b6)['compute'](_0x1bac84,_0x153756);};}()),_0x4ad8f2[_0x99c1b3(0x43a)];}));}(evpkdf$1)),evpkdf$1[_0xf070c5(0x370)];}__name(requireEvpkdf,_0x5deefc(0x379));var cipherCore$1={'exports':{}},cipherCore=cipherCore$1[_0x5deefc(0x370)],hasRequiredCipherCore;function requireCipherCore(){var _0x54c5bb=_0x5deefc;return hasRequiredCipherCore||(hasRequiredCipherCore=0x1,function(_0x267551,_0x13b2dd){(function(_0x8c1e6a,_0x5ba514,_0x426031){var _0x502049=_0x450a;_0x267551[_0x502049(0x370)]=_0x5ba514(requireCore(),requireEvpkdf());}(cipherCore,function(_0x2f5827){var _0x40980d=_0x450a;_0x2f5827[_0x40980d(0x2b3)][_0x40980d(0x441)]||function(_0x484956){var _0x497a6c=_0x40980d,_0x41d08c=_0x2f5827,_0xbdcf3b=_0x41d08c[_0x497a6c(0x2b3)],_0x155d48=_0xbdcf3b[_0x497a6c(0x4c7)],_0xba9238=_0xbdcf3b[_0x497a6c(0x3ec)],_0x191517=_0xbdcf3b[_0x497a6c(0x1d7)],_0x36eae3=_0x41d08c[_0x497a6c(0x23b)];_0x36eae3[_0x497a6c(0x4d2)];var _0x4598bc=_0x36eae3['Base64'],_0x1675e7=_0x41d08c[_0x497a6c(0x266)],_0xd6423c=_0x1675e7[_0x497a6c(0x43a)],_0x306c73=_0xbdcf3b[_0x497a6c(0x441)]=_0x191517[_0x497a6c(0x400)]({'cfg':_0x155d48[_0x497a6c(0x400)](),'createEncryptor':__name(function(_0x5b7502,_0x4e200a){var _0x297e32=_0x497a6c;return this[_0x297e32(0x366)](this[_0x297e32(0x4a5)],_0x5b7502,_0x4e200a);},_0x497a6c(0x39c)),'createDecryptor':__name(function(_0x58cff1,_0x29203d){var _0x2a721c=_0x497a6c;return this['create'](this[_0x2a721c(0x447)],_0x58cff1,_0x29203d);},_0x497a6c(0x248)),'init':__name(function(_0x4f6b22,_0x4ca6fc,_0x169a52){var _0x40902b=_0x497a6c;this[_0x40902b(0x3dc)]=this['cfg'][_0x40902b(0x400)](_0x169a52),this[_0x40902b(0x3d4)]=_0x4f6b22,this['_key']=_0x4ca6fc,this[_0x40902b(0x1be)]();},_0x497a6c(0x21f)),'reset':__name(function(){var _0x10582c=_0x497a6c;_0x191517['reset'][_0x10582c(0x4db)](this),this[_0x10582c(0x4d9)]();},_0x497a6c(0x1be)),'process':__name(function(_0x31b273){var _0x52901c=_0x497a6c;return this[_0x52901c(0x351)](_0x31b273),this['_process']();},_0x497a6c(0x467)),'finalize':__name(function(_0x2d0ef7){var _0x573da1=_0x497a6c;_0x2d0ef7&&this[_0x573da1(0x351)](_0x2d0ef7);var _0x5fe434=this['_doFinalize']();return _0x5fe434;},_0x497a6c(0x4f9)),'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x344d07(_0x99c80e){var _0x58d625=_0x450a;return typeof _0x99c80e==_0x58d625(0x380)?_0xbbd410:_0x169519;}return __name(_0x344d07,'selectCipherStrategy'),function(_0x2ffdfa){var _0x5a4ad7=_0x450a;return{'encrypt':__name(function(_0x28f557,_0x1e5b9c,_0x123e8a){var _0x461490=_0x450a;return _0x344d07(_0x1e5b9c)[_0x461490(0x216)](_0x2ffdfa,_0x28f557,_0x1e5b9c,_0x123e8a);},_0x5a4ad7(0x216)),'decrypt':__name(function(_0x5ca927,_0x53c920,_0x51b8ff){var _0x57695e=_0x5a4ad7;return _0x344d07(_0x53c920)[_0x57695e(0x2ec)](_0x2ffdfa,_0x5ca927,_0x53c920,_0x51b8ff);},'decrypt')};};}())});_0xbdcf3b[_0x497a6c(0x2c9)]=_0x306c73[_0x497a6c(0x400)]({'_doFinalize':__name(function(){var _0x53a14=_0x497a6c,_0x4d4adf=this[_0x53a14(0x3ca)](!0x0);return _0x4d4adf;},_0x497a6c(0x464)),'blockSize':0x1});var _0x5ac9aa=_0x41d08c[_0x497a6c(0x3bd)]={},_0x4995c8=_0xbdcf3b[_0x497a6c(0x48d)]=_0x155d48[_0x497a6c(0x400)]({'createEncryptor':__name(function(_0x366a9c,_0xea15e5){var _0x1047a0=_0x497a6c;return this[_0x1047a0(0x1c7)][_0x1047a0(0x366)](_0x366a9c,_0xea15e5);},'createEncryptor'),'createDecryptor':__name(function(_0xafc43f,_0x56520f){var _0x511e32=_0x497a6c;return this[_0x511e32(0x34f)][_0x511e32(0x366)](_0xafc43f,_0x56520f);},_0x497a6c(0x248)),'init':__name(function(_0xa3e545,_0x2fc517){this['_cipher']=_0xa3e545,this['_iv']=_0x2fc517;},_0x497a6c(0x21f))}),_0x546c1d=_0x5ac9aa[_0x497a6c(0x3b6)]=(function(){var _0x14b020=_0x497a6c,_0x55e761=_0x4995c8[_0x14b020(0x400)]();_0x55e761[_0x14b020(0x1c7)]=_0x55e761['extend']({'processBlock':__name(function(_0x36fcf2,_0x18c78e){var _0x35951f=_0x14b020,_0x3e0ea8=this[_0x35951f(0x308)],_0x3261c7=_0x3e0ea8[_0x35951f(0x2eb)];_0x551b63['call'](this,_0x36fcf2,_0x18c78e,_0x3261c7),_0x3e0ea8[_0x35951f(0x265)](_0x36fcf2,_0x18c78e),this[_0x35951f(0x24d)]=_0x36fcf2[_0x35951f(0x479)](_0x18c78e,_0x18c78e+_0x3261c7);},_0x14b020(0x42b))}),_0x55e761[_0x14b020(0x34f)]=_0x55e761[_0x14b020(0x400)]({'processBlock':__name(function(_0x501db3,_0x2d5c4d){var _0x4e3126=_0x14b020,_0x2f0b77=this[_0x4e3126(0x308)],_0xf97ab=_0x2f0b77[_0x4e3126(0x2eb)],_0x2deadb=_0x501db3[_0x4e3126(0x479)](_0x2d5c4d,_0x2d5c4d+_0xf97ab);_0x2f0b77['decryptBlock'](_0x501db3,_0x2d5c4d),_0x551b63['call'](this,_0x501db3,_0x2d5c4d,_0xf97ab),this[_0x4e3126(0x24d)]=_0x2deadb;},'processBlock')});function _0x551b63(_0x15cd42,_0x2e85a0,_0x59da3c){var _0x27679c=_0x14b020,_0x1033f6,_0x1d3af4=this[_0x27679c(0x271)];_0x1d3af4?(_0x1033f6=_0x1d3af4,this[_0x27679c(0x271)]=_0x484956):_0x1033f6=this[_0x27679c(0x24d)];for(var _0x5a79bc=0x0;_0x5a79bc<_0x59da3c;_0x5a79bc++)_0x15cd42[_0x2e85a0+_0x5a79bc]^=_0x1033f6[_0x5a79bc];}return __name(_0x551b63,_0x14b020(0x343)),_0x55e761;}()),_0x45ae5a=_0x41d08c[_0x497a6c(0x2d2)]={},_0x5b49b2=_0x45ae5a[_0x497a6c(0x35b)]={'pad':__name(function(_0x27786f,_0x5f016b){var _0x5976fd=_0x497a6c;for(var _0xf3972=_0x5f016b*0x4,_0x6d849f=_0xf3972-_0x27786f[_0x5976fd(0x1fe)]%_0xf3972,_0x4e7f68=_0x6d849f<<0x18|_0x6d849f<<0x10|_0x6d849f<<0x8|_0x6d849f,_0x47e9ec=[],_0x3a7419=0x0;_0x3a7419<_0x6d849f;_0x3a7419+=0x4)_0x47e9ec[_0x5976fd(0x202)](_0x4e7f68);var _0x153474=_0xba9238[_0x5976fd(0x366)](_0x47e9ec,_0x6d849f);_0x27786f[_0x5976fd(0x2e2)](_0x153474);},_0x497a6c(0x2d2)),'unpad':__name(function(_0x34bad8){var _0x2c2445=_0x497a6c,_0x3d0b84=_0x34bad8[_0x2c2445(0x253)][_0x34bad8['sigBytes']-0x1>>>0x2]&0xff;_0x34bad8[_0x2c2445(0x1fe)]-=_0x3d0b84;},_0x497a6c(0x269))};_0xbdcf3b['BlockCipher']=_0x306c73[_0x497a6c(0x400)]({'cfg':_0x306c73[_0x497a6c(0x3dc)][_0x497a6c(0x400)]({'mode':_0x546c1d,'padding':_0x5b49b2}),'reset':__name(function(){var _0x50a2a6=_0x497a6c,_0x39c60d;_0x306c73[_0x50a2a6(0x1be)][_0x50a2a6(0x4db)](this);var _0x515e8d=this['cfg'],_0x10f80f=_0x515e8d['iv'],_0x59e308=_0x515e8d[_0x50a2a6(0x3bd)];this[_0x50a2a6(0x3d4)]==this[_0x50a2a6(0x4a5)]?_0x39c60d=_0x59e308[_0x50a2a6(0x39c)]:(_0x39c60d=_0x59e308[_0x50a2a6(0x248)],this[_0x50a2a6(0x1e3)]=0x1),this[_0x50a2a6(0x1f4)]&&this[_0x50a2a6(0x1f4)][_0x50a2a6(0x29f)]==_0x39c60d?this[_0x50a2a6(0x1f4)][_0x50a2a6(0x21f)](this,_0x10f80f&&_0x10f80f['words']):(this[_0x50a2a6(0x1f4)]=_0x39c60d[_0x50a2a6(0x4db)](_0x59e308,this,_0x10f80f&&_0x10f80f[_0x50a2a6(0x253)]),this['_mode']['__creator']=_0x39c60d);},_0x497a6c(0x1be)),'_doProcessBlock':__name(function(_0x2aed88,_0x276845){var _0x809a7e=_0x497a6c;this[_0x809a7e(0x1f4)][_0x809a7e(0x42b)](_0x2aed88,_0x276845);},_0x497a6c(0x1f3)),'_doFinalize':__name(function(){var _0x5be1dc=_0x497a6c,_0x549e40,_0x2459d1=this['cfg']['padding'];return this[_0x5be1dc(0x3d4)]==this[_0x5be1dc(0x4a5)]?(_0x2459d1['pad'](this['_data'],this['blockSize']),_0x549e40=this['_process'](!0x0)):(_0x549e40=this['_process'](!0x0),_0x2459d1[_0x5be1dc(0x269)](_0x549e40)),_0x549e40;},_0x497a6c(0x464)),'blockSize':0x80/0x20});var _0x1a1688=_0xbdcf3b[_0x497a6c(0x2b8)]=_0x155d48['extend']({'init':__name(function(_0x15cd96){var _0x22295e=_0x497a6c;this[_0x22295e(0x437)](_0x15cd96);},'init'),'toString':__name(function(_0x594947){var _0x17d11e=_0x497a6c;return(_0x594947||this[_0x17d11e(0x2d3)])['stringify'](this);},_0x497a6c(0x4c1))}),_0x3523e7=_0x41d08c[_0x497a6c(0x1b7)]={},_0x3333e2=_0x3523e7[_0x497a6c(0x2ce)]={'stringify':__name(function(_0x227c2d){var _0xd270bf=_0x497a6c,_0x579e0b,_0x576676=_0x227c2d[_0xd270bf(0x325)],_0x201eac=_0x227c2d[_0xd270bf(0x3d7)];return _0x201eac?_0x579e0b=_0xba9238[_0xd270bf(0x366)]([0x53616c74,0x65645f5f])['concat'](_0x201eac)[_0xd270bf(0x2e2)](_0x576676):_0x579e0b=_0x576676,_0x579e0b[_0xd270bf(0x4c1)](_0x4598bc);},'stringify'),'parse':__name(function(_0x45fbab){var _0x5adc55=_0x497a6c,_0x107337,_0x5af27d=_0x4598bc[_0x5adc55(0x1cd)](_0x45fbab),_0x592859=_0x5af27d['words'];return _0x592859[0x0]==0x53616c74&&_0x592859[0x1]==0x65645f5f&&(_0x107337=_0xba9238[_0x5adc55(0x366)](_0x592859[_0x5adc55(0x479)](0x2,0x4)),_0x592859[_0x5adc55(0x233)](0x0,0x4),_0x5af27d['sigBytes']-=0x10),_0x1a1688['create']({'ciphertext':_0x5af27d,'salt':_0x107337});},_0x497a6c(0x1cd))},_0x169519=_0xbdcf3b['SerializableCipher']=_0x155d48[_0x497a6c(0x400)]({'cfg':_0x155d48[_0x497a6c(0x400)]({'format':_0x3333e2}),'encrypt':__name(function(_0x125202,_0x48849d,_0x27f31e,_0xf1a15a){var _0x86033a=_0x497a6c;_0xf1a15a=this[_0x86033a(0x3dc)][_0x86033a(0x400)](_0xf1a15a);var _0x5664b2=_0x125202[_0x86033a(0x39c)](_0x27f31e,_0xf1a15a),_0x3bf404=_0x5664b2[_0x86033a(0x4f9)](_0x48849d),_0x3d66af=_0x5664b2[_0x86033a(0x3dc)];return _0x1a1688[_0x86033a(0x366)]({'ciphertext':_0x3bf404,'key':_0x27f31e,'iv':_0x3d66af['iv'],'algorithm':_0x125202,'mode':_0x3d66af[_0x86033a(0x3bd)],'padding':_0x3d66af['padding'],'blockSize':_0x125202[_0x86033a(0x2eb)],'formatter':_0xf1a15a[_0x86033a(0x1b7)]});},_0x497a6c(0x216)),'decrypt':__name(function(_0x16f296,_0x44e499,_0x1d7a1d,_0x1c13c9){var _0x14eead=_0x497a6c;_0x1c13c9=this['cfg'][_0x14eead(0x400)](_0x1c13c9),_0x44e499=this[_0x14eead(0x4c8)](_0x44e499,_0x1c13c9[_0x14eead(0x1b7)]);var _0x3235d5=_0x16f296[_0x14eead(0x248)](_0x1d7a1d,_0x1c13c9)['finalize'](_0x44e499[_0x14eead(0x325)]);return _0x3235d5;},_0x497a6c(0x2ec)),'_parse':__name(function(_0x2d6f3d,_0x263319){var _0x47cb3e=_0x497a6c;return typeof _0x2d6f3d==_0x47cb3e(0x380)?_0x263319[_0x47cb3e(0x1cd)](_0x2d6f3d,this):_0x2d6f3d;},_0x497a6c(0x4c8))}),_0x886afb=_0x41d08c[_0x497a6c(0x27d)]={},_0x2ff939=_0x886afb[_0x497a6c(0x2ce)]={'execute':__name(function(_0x5bec9e,_0x4379fd,_0x434bee,_0x2a6f9d,_0x4a8744){var _0x394a52=_0x497a6c;if(_0x2a6f9d||(_0x2a6f9d=_0xba9238[_0x394a52(0x4ae)](0x40/0x8)),_0x4a8744)var _0x441650=_0xd6423c[_0x394a52(0x366)]({'keySize':_0x4379fd+_0x434bee,'hasher':_0x4a8744})[_0x394a52(0x223)](_0x5bec9e,_0x2a6f9d);else var _0x441650=_0xd6423c[_0x394a52(0x366)]({'keySize':_0x4379fd+_0x434bee})[_0x394a52(0x223)](_0x5bec9e,_0x2a6f9d);var _0x1dc3df=_0xba9238[_0x394a52(0x366)](_0x441650[_0x394a52(0x253)]['slice'](_0x4379fd),_0x434bee*0x4);return _0x441650['sigBytes']=_0x4379fd*0x4,_0x1a1688[_0x394a52(0x366)]({'key':_0x441650,'iv':_0x1dc3df,'salt':_0x2a6f9d});},_0x497a6c(0x388))},_0xbbd410=_0xbdcf3b[_0x497a6c(0x3b1)]=_0x169519[_0x497a6c(0x400)]({'cfg':_0x169519['cfg'][_0x497a6c(0x400)]({'kdf':_0x2ff939}),'encrypt':__name(function(_0x21c71c,_0x39abdb,_0x1f612a,_0x49e842){var _0x5afa81=_0x497a6c;_0x49e842=this['cfg'][_0x5afa81(0x400)](_0x49e842);var _0x2e36be=_0x49e842['kdf'][_0x5afa81(0x388)](_0x1f612a,_0x21c71c[_0x5afa81(0x2b6)],_0x21c71c[_0x5afa81(0x3b0)],_0x49e842[_0x5afa81(0x3d7)],_0x49e842[_0x5afa81(0x4fb)]);_0x49e842['iv']=_0x2e36be['iv'];var _0x246a5a=_0x169519[_0x5afa81(0x216)]['call'](this,_0x21c71c,_0x39abdb,_0x2e36be[_0x5afa81(0x1f6)],_0x49e842);return _0x246a5a[_0x5afa81(0x437)](_0x2e36be),_0x246a5a;},_0x497a6c(0x216)),'decrypt':__name(function(_0x46252a,_0x206718,_0x52cce9,_0x5a98d6){var _0x5c1637=_0x497a6c;_0x5a98d6=this['cfg']['extend'](_0x5a98d6),_0x206718=this['_parse'](_0x206718,_0x5a98d6[_0x5c1637(0x1b7)]);var _0x4bd5b6=_0x5a98d6[_0x5c1637(0x27d)][_0x5c1637(0x388)](_0x52cce9,_0x46252a['keySize'],_0x46252a['ivSize'],_0x206718['salt'],_0x5a98d6[_0x5c1637(0x4fb)]);_0x5a98d6['iv']=_0x4bd5b6['iv'];var _0x25c5f7=_0x169519[_0x5c1637(0x2ec)]['call'](this,_0x46252a,_0x206718,_0x4bd5b6[_0x5c1637(0x1f6)],_0x5a98d6);return _0x25c5f7;},_0x497a6c(0x2ec))});}();}));}(cipherCore$1)),cipherCore$1[_0x54c5bb(0x370)];}__name(requireCipherCore,'requireCipherCore');var aes=aes$1[_0x5deefc(0x370)],hasRequiredAes;function requireAes(){var _0x37d89a=_0x5deefc;return hasRequiredAes||(hasRequiredAes=0x1,function(_0x47c732,_0x34c4d0){(function(_0x35e805,_0x4e901b,_0x25577c){var _0x826944=_0x450a;_0x47c732[_0x826944(0x370)]=_0x4e901b(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore());}(aes,function(_0x24ef18){var _0x322957=_0x450a;return(function(){var _0x87e4d8=_0x450a,_0x30633f=_0x24ef18,_0x3d6a3a=_0x30633f[_0x87e4d8(0x2b3)],_0x1dd0bc=_0x3d6a3a[_0x87e4d8(0x212)],_0x190ed3=_0x30633f[_0x87e4d8(0x266)],_0x1d0aea=[],_0xd30fff=[],_0x3107c2=[],_0x4a3666=[],_0x5397cb=[],_0x2e6964=[],_0x3e3d36=[],_0x63f661=[],_0x4d4931=[],_0x5be9f7=[];(function(){for(var _0x51413d=[],_0xf890a9=0x0;_0xf890a9<0x100;_0xf890a9++)_0xf890a9<0x80?_0x51413d[_0xf890a9]=_0xf890a9<<0x1:_0x51413d[_0xf890a9]=_0xf890a9<<0x1^0x11b;for(var _0x5f3159=0x0,_0x432764=0x0,_0xf890a9=0x0;_0xf890a9<0x100;_0xf890a9++){var _0x35046f=_0x432764^_0x432764<<0x1^_0x432764<<0x2^_0x432764<<0x3^_0x432764<<0x4;_0x35046f=_0x35046f>>>0x8^_0x35046f&0xff^0x63,_0x1d0aea[_0x5f3159]=_0x35046f,_0xd30fff[_0x35046f]=_0x5f3159;var _0x5b63d0=_0x51413d[_0x5f3159],_0x2b8025=_0x51413d[_0x5b63d0],_0x2e681f=_0x51413d[_0x2b8025],_0x5a4e1d=_0x51413d[_0x35046f]*0x101^_0x35046f*0x1010100;_0x3107c2[_0x5f3159]=_0x5a4e1d<<0x18|_0x5a4e1d>>>0x8,_0x4a3666[_0x5f3159]=_0x5a4e1d<<0x10|_0x5a4e1d>>>0x10,_0x5397cb[_0x5f3159]=_0x5a4e1d<<0x8|_0x5a4e1d>>>0x18,_0x2e6964[_0x5f3159]=_0x5a4e1d;var _0x5a4e1d=_0x2e681f*0x1010101^_0x2b8025*0x10001^_0x5b63d0*0x101^_0x5f3159*0x1010100;_0x3e3d36[_0x35046f]=_0x5a4e1d<<0x18|_0x5a4e1d>>>0x8,_0x63f661[_0x35046f]=_0x5a4e1d<<0x10|_0x5a4e1d>>>0x10,_0x4d4931[_0x35046f]=_0x5a4e1d<<0x8|_0x5a4e1d>>>0x18,_0x5be9f7[_0x35046f]=_0x5a4e1d,_0x5f3159?(_0x5f3159=_0x5b63d0^_0x51413d[_0x51413d[_0x51413d[_0x2e681f^_0x5b63d0]]],_0x432764^=_0x51413d[_0x51413d[_0x432764]]):_0x5f3159=_0x432764=0x1;}}());var _0xdc81d7=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x174349=_0x190ed3[_0x87e4d8(0x22f)]=_0x1dd0bc[_0x87e4d8(0x400)]({'_doReset':__name(function(){var _0x46f6f5=_0x87e4d8,_0x3d89ee;if(!(this['_nRounds']&&this[_0x46f6f5(0x294)]===this['_key'])){for(var _0x2b83bd=this[_0x46f6f5(0x294)]=this[_0x46f6f5(0x42a)],_0xe3337f=_0x2b83bd[_0x46f6f5(0x253)],_0x5d9d12=_0x2b83bd[_0x46f6f5(0x1fe)]/0x4,_0x5e56ea=this[_0x46f6f5(0x396)]=_0x5d9d12+0x6,_0x17c7c5=(_0x5e56ea+0x1)*0x4,_0x15c178=this[_0x46f6f5(0x435)]=[],_0x3f06a4=0x0;_0x3f06a4<_0x17c7c5;_0x3f06a4++)_0x3f06a4<_0x5d9d12?_0x15c178[_0x3f06a4]=_0xe3337f[_0x3f06a4]:(_0x3d89ee=_0x15c178[_0x3f06a4-0x1],_0x3f06a4%_0x5d9d12?_0x5d9d12>0x6&&_0x3f06a4%_0x5d9d12==0x4&&(_0x3d89ee=_0x1d0aea[_0x3d89ee>>>0x18]<<0x18|_0x1d0aea[_0x3d89ee>>>0x10&0xff]<<0x10|_0x1d0aea[_0x3d89ee>>>0x8&0xff]<<0x8|_0x1d0aea[_0x3d89ee&0xff]):(_0x3d89ee=_0x3d89ee<<0x8|_0x3d89ee>>>0x18,_0x3d89ee=_0x1d0aea[_0x3d89ee>>>0x18]<<0x18|_0x1d0aea[_0x3d89ee>>>0x10&0xff]<<0x10|_0x1d0aea[_0x3d89ee>>>0x8&0xff]<<0x8|_0x1d0aea[_0x3d89ee&0xff],_0x3d89ee^=_0xdc81d7[_0x3f06a4/_0x5d9d12|0x0]<<0x18),_0x15c178[_0x3f06a4]=_0x15c178[_0x3f06a4-_0x5d9d12]^_0x3d89ee);for(var _0x4a11a7=this[_0x46f6f5(0x1e6)]=[],_0x13a403=0x0;_0x13a403<_0x17c7c5;_0x13a403++){var _0x3f06a4=_0x17c7c5-_0x13a403;if(_0x13a403%0x4)var _0x3d89ee=_0x15c178[_0x3f06a4];else var _0x3d89ee=_0x15c178[_0x3f06a4-0x4];_0x13a403<0x4||_0x3f06a4<=0x4?_0x4a11a7[_0x13a403]=_0x3d89ee:_0x4a11a7[_0x13a403]=_0x3e3d36[_0x1d0aea[_0x3d89ee>>>0x18]]^_0x63f661[_0x1d0aea[_0x3d89ee>>>0x10&0xff]]^_0x4d4931[_0x1d0aea[_0x3d89ee>>>0x8&0xff]]^_0x5be9f7[_0x1d0aea[_0x3d89ee&0xff]];}}},_0x87e4d8(0x4d9)),'encryptBlock':__name(function(_0x3de709,_0xc963b3){var _0x2d80a6=_0x87e4d8;this[_0x2d80a6(0x3d2)](_0x3de709,_0xc963b3,this[_0x2d80a6(0x435)],_0x3107c2,_0x4a3666,_0x5397cb,_0x2e6964,_0x1d0aea);},_0x87e4d8(0x265)),'decryptBlock':__name(function(_0x2aa85b,_0x2824fa){var _0x36ce68=_0x87e4d8,_0x3a6d41=_0x2aa85b[_0x2824fa+0x1];_0x2aa85b[_0x2824fa+0x1]=_0x2aa85b[_0x2824fa+0x3],_0x2aa85b[_0x2824fa+0x3]=_0x3a6d41,this[_0x36ce68(0x3d2)](_0x2aa85b,_0x2824fa,this['_invKeySchedule'],_0x3e3d36,_0x63f661,_0x4d4931,_0x5be9f7,_0xd30fff);var _0x3a6d41=_0x2aa85b[_0x2824fa+0x1];_0x2aa85b[_0x2824fa+0x1]=_0x2aa85b[_0x2824fa+0x3],_0x2aa85b[_0x2824fa+0x3]=_0x3a6d41;},_0x87e4d8(0x353)),'_doCryptBlock':__name(function(_0x2938c6,_0x57a855,_0x2eb546,_0x2fab97,_0x212cab,_0x11cec3,_0x3a7bae,_0x55b903){var _0xafdd66=_0x87e4d8;for(var _0x36f423=this[_0xafdd66(0x396)],_0x423f73=_0x2938c6[_0x57a855]^_0x2eb546[0x0],_0x20ca59=_0x2938c6[_0x57a855+0x1]^_0x2eb546[0x1],_0x19702f=_0x2938c6[_0x57a855+0x2]^_0x2eb546[0x2],_0x3512b0=_0x2938c6[_0x57a855+0x3]^_0x2eb546[0x3],_0x832910=0x4,_0x5d801d=0x1;_0x5d801d<_0x36f423;_0x5d801d++){var _0x924e40=_0x2fab97[_0x423f73>>>0x18]^_0x212cab[_0x20ca59>>>0x10&0xff]^_0x11cec3[_0x19702f>>>0x8&0xff]^_0x3a7bae[_0x3512b0&0xff]^_0x2eb546[_0x832910++],_0x2fda8b=_0x2fab97[_0x20ca59>>>0x18]^_0x212cab[_0x19702f>>>0x10&0xff]^_0x11cec3[_0x3512b0>>>0x8&0xff]^_0x3a7bae[_0x423f73&0xff]^_0x2eb546[_0x832910++],_0x5eaa10=_0x2fab97[_0x19702f>>>0x18]^_0x212cab[_0x3512b0>>>0x10&0xff]^_0x11cec3[_0x423f73>>>0x8&0xff]^_0x3a7bae[_0x20ca59&0xff]^_0x2eb546[_0x832910++],_0xcf8093=_0x2fab97[_0x3512b0>>>0x18]^_0x212cab[_0x423f73>>>0x10&0xff]^_0x11cec3[_0x20ca59>>>0x8&0xff]^_0x3a7bae[_0x19702f&0xff]^_0x2eb546[_0x832910++];_0x423f73=_0x924e40,_0x20ca59=_0x2fda8b,_0x19702f=_0x5eaa10,_0x3512b0=_0xcf8093;}var _0x924e40=(_0x55b903[_0x423f73>>>0x18]<<0x18|_0x55b903[_0x20ca59>>>0x10&0xff]<<0x10|_0x55b903[_0x19702f>>>0x8&0xff]<<0x8|_0x55b903[_0x3512b0&0xff])^_0x2eb546[_0x832910++],_0x2fda8b=(_0x55b903[_0x20ca59>>>0x18]<<0x18|_0x55b903[_0x19702f>>>0x10&0xff]<<0x10|_0x55b903[_0x3512b0>>>0x8&0xff]<<0x8|_0x55b903[_0x423f73&0xff])^_0x2eb546[_0x832910++],_0x5eaa10=(_0x55b903[_0x19702f>>>0x18]<<0x18|_0x55b903[_0x3512b0>>>0x10&0xff]<<0x10|_0x55b903[_0x423f73>>>0x8&0xff]<<0x8|_0x55b903[_0x20ca59&0xff])^_0x2eb546[_0x832910++],_0xcf8093=(_0x55b903[_0x3512b0>>>0x18]<<0x18|_0x55b903[_0x423f73>>>0x10&0xff]<<0x10|_0x55b903[_0x20ca59>>>0x8&0xff]<<0x8|_0x55b903[_0x19702f&0xff])^_0x2eb546[_0x832910++];_0x2938c6[_0x57a855]=_0x924e40,_0x2938c6[_0x57a855+0x1]=_0x2fda8b,_0x2938c6[_0x57a855+0x2]=_0x5eaa10,_0x2938c6[_0x57a855+0x3]=_0xcf8093;},'_doCryptBlock'),'keySize':0x100/0x20});_0x30633f[_0x87e4d8(0x22f)]=_0x1dd0bc[_0x87e4d8(0x21e)](_0x174349);}()),_0x24ef18[_0x322957(0x22f)];}));}(aes$1)),aes$1[_0x37d89a(0x370)];}__name(requireAes,_0x5deefc(0x478));var aesExports=requireAes();const AES=getDefaultExportFromCjs(aesExports);var encBase64Exports=requireEncBase64();const Base64=getDefaultExportFromCjs(encBase64Exports);var encUtf8$1={'exports':{}},encUtf8=encUtf8$1[_0x5deefc(0x370)],hasRequiredEncUtf8;function requireEncUtf8(){var _0x208d73=_0x5deefc;return hasRequiredEncUtf8||(hasRequiredEncUtf8=0x1,function(_0x4cab6f,_0x64a23a){(function(_0x598872,_0x1cc103){_0x4cab6f['exports']=_0x1cc103(requireCore());}(encUtf8,function(_0x44b9d6){var _0x3c2dee=_0x450a;return _0x44b9d6[_0x3c2dee(0x23b)][_0x3c2dee(0x4d2)];}));}(encUtf8$1)),encUtf8$1[_0x208d73(0x370)];}__name(requireEncUtf8,'requireEncUtf8');var encUtf8Exports=requireEncUtf8();const Utf8=getDefaultExportFromCjs(encUtf8Exports);var libTypedarrays$1={'exports':{}},libTypedarrays=libTypedarrays$1[_0x5deefc(0x370)],hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=0x1,function(_0x4d38f1,_0x449332){(function(_0x4d19c5,_0x9c3862){var _0x31eb59=_0x450a;_0x4d38f1[_0x31eb59(0x370)]=_0x9c3862(requireCore());}(libTypedarrays,function(_0x44aa81){var _0x2c7c73=_0x450a;return(function(){var _0x58b047=_0x450a;if(typeof ArrayBuffer==_0x58b047(0x2db)){var _0x597898=_0x44aa81,_0x2edf3c=_0x597898[_0x58b047(0x2b3)],_0x213ba9=_0x2edf3c[_0x58b047(0x3ec)],_0x4b61fa=_0x213ba9['init'],_0x190fae=_0x213ba9[_0x58b047(0x21f)]=function(_0x46d160){var _0x2e250b=_0x58b047;if(_0x46d160 instanceof ArrayBuffer&&(_0x46d160=new Uint8Array(_0x46d160)),(_0x46d160 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x46d160 instanceof Uint8ClampedArray||_0x46d160 instanceof Int16Array||_0x46d160 instanceof Uint16Array||_0x46d160 instanceof Int32Array||_0x46d160 instanceof Uint32Array||_0x46d160 instanceof Float32Array||_0x46d160 instanceof Float64Array)&&(_0x46d160=new Uint8Array(_0x46d160[_0x2e250b(0x201)],_0x46d160[_0x2e250b(0x331)],_0x46d160[_0x2e250b(0x1b1)])),_0x46d160 instanceof Uint8Array){for(var _0x5c87a8=_0x46d160['byteLength'],_0x58bb19=[],_0x15dfe0=0x0;_0x15dfe0<_0x5c87a8;_0x15dfe0++)_0x58bb19[_0x15dfe0>>>0x2]|=_0x46d160[_0x15dfe0]<<0x18-_0x15dfe0%0x4*0x8;_0x4b61fa['call'](this,_0x58bb19,_0x5c87a8);}else _0x4b61fa[_0x2e250b(0x2bc)](this,arguments);};_0x190fae[_0x58b047(0x30e)]=_0x213ba9;}}()),_0x44aa81[_0x2c7c73(0x2b3)][_0x2c7c73(0x3ec)];}));}(libTypedarrays$1)),libTypedarrays$1['exports'];}__name(requireLibTypedarrays,_0x5deefc(0x367));var libTypedarraysExports=requireLibTypedarrays();const WordArray=getDefaultExportFromCjs(libTypedarraysExports);var padNopadding$1={'exports':{}},padNopadding=padNopadding$1[_0x5deefc(0x370)],hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=0x1,function(_0x55c3d7,_0x585568){(function(_0x240268,_0x113118,_0x1e0f87){var _0x3f944b=_0x450a;_0x55c3d7[_0x3f944b(0x370)]=_0x113118(requireCore(),requireCipherCore());}(padNopadding,function(_0x5be51a){var _0x425897=_0x450a;return _0x5be51a[_0x425897(0x2d2)][_0x425897(0x410)]={'pad':__name(function(){},_0x425897(0x2d2)),'unpad':__name(function(){},_0x425897(0x269))},_0x5be51a['pad']['NoPadding'];}));}(padNopadding$1)),padNopadding$1['exports'];}__name(requirePadNopadding,_0x5deefc(0x37f));var padNopaddingExports=requirePadNopadding();const NoPadding=getDefaultExportFromCjs(padNopaddingExports);function pkcs7Padding(_0x5b5769,_0x5d1570){var _0x4e8388=_0x5deefc;const _0x3487f4=_0x5d1570-_0x5b5769[_0x4e8388(0x2f2)]%_0x5d1570,_0x4ea95d=String[_0x4e8388(0x374)](_0x3487f4)['repeat'](_0x3487f4);return _0x5b5769+_0x4ea95d;}__name(pkcs7Padding,_0x5deefc(0x395));function encrypt(_0x3f1a02,_0xe1c2b1){var _0x1907a8=_0x5deefc;const _0x4caa8a=WordArray[_0x1907a8(0x4ae)](0x10),_0x587fe1=pkcs7Padding(_0x3f1a02,0x10),_0x4fb446=AES[_0x1907a8(0x216)](Utf8[_0x1907a8(0x1cd)](_0x587fe1),Base64[_0x1907a8(0x1cd)](_0xe1c2b1),{'iv':_0x4caa8a,'padding':NoPadding});return _0x4caa8a[_0x1907a8(0x2e2)](_0x4fb446['ciphertext'])['toString'](Base64);}__name(encrypt,_0x5deefc(0x216));function getAttachHeader(){var _0x2f7583=_0x5deefc;const _0x3a00ed=getGlobalObject()[_0x2f7583(0x4cc)];if(_0x3a00ed){const _0x5086ca={'time':Math['floor'](Date[_0x2f7583(0x3e7)]()/0x3e8),'domain':location[_0x2f7583(0x4cb)]};return encrypt(JSON[_0x2f7583(0x480)](_0x5086ca),_0x3a00ed);}}__name(getAttachHeader,_0x5deefc(0x362));var __defProp$7=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$7=Object[_0x5deefc(0x4e3)],__decorateClass$7=__name((_0x33087d,_0x319298,_0x1a92d0,_0x173047)=>{var _0x1eb385=_0x5deefc;for(var _0x311fe5=_0x173047>0x1?void 0x0:_0x173047?__getOwnPropDesc$7(_0x319298,_0x1a92d0):_0x319298,_0xfa5c9d=_0x33087d[_0x1eb385(0x2f2)]-0x1,_0x4549f0;_0xfa5c9d>=0x0;_0xfa5c9d--)(_0x4549f0=_0x33087d[_0xfa5c9d])&&(_0x311fe5=(_0x173047?_0x4549f0(_0x319298,_0x1a92d0,_0x311fe5):_0x4549f0(_0x311fe5))||_0x311fe5);return _0x173047&&_0x311fe5&&__defProp$7(_0x319298,_0x1a92d0,_0x311fe5),_0x311fe5;},'__decorateClass$7'),__decorateParam$7=__name((_0x8b5af7,_0x478162)=>(_0x1ed1ef,_0x2eb339)=>_0x478162(_0x1ed1ef,_0x2eb339,_0x8b5af7),_0x5deefc(0x267)),_a20;let DomainRequestService=(_a20=class{constructor(_0x20a55d){var _0x237d1d=_0x5deefc;this['_httpService']=_0x20a55d,this[_0x237d1d(0x2bb)]();}[_0x5deefc(0x2bb)](){var _0x3369b6=_0x5deefc;this['_httpService'][_0x3369b6(0x245)]({'interceptor':__name((_0xf07a97,_0x360518)=>{var _0x3cb38f=_0x3369b6;const _0xe8bd06=_0xf07a97[_0x3cb38f(0x2c3)],_0x38e8ca=getAttachHeader();return _0x38e8ca&&_0xe8bd06[_0x3cb38f(0x31a)](_0x3cb38f(0x29d),_0x38e8ca),_0x360518(_0xf07a97);},_0x3369b6(0x1dd))});}},__name(_a20,_0x5deefc(0x363)),_a20);DomainRequestService=__decorateClass$7([__decorateParam$7(0x0,Inject(HTTPService))],DomainRequestService);var __defProp$6=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$6=Object['getOwnPropertyDescriptor'],__decorateClass$6=__name((_0x23f0f6,_0x10fcf2,_0x11505d,_0x367707)=>{var _0x281e74=_0x5deefc;for(var _0x3e5f19=_0x367707>0x1?void 0x0:_0x367707?__getOwnPropDesc$6(_0x10fcf2,_0x11505d):_0x10fcf2,_0x345c5f=_0x23f0f6[_0x281e74(0x2f2)]-0x1,_0x6166a3;_0x345c5f>=0x0;_0x345c5f--)(_0x6166a3=_0x23f0f6[_0x345c5f])&&(_0x3e5f19=(_0x367707?_0x6166a3(_0x10fcf2,_0x11505d,_0x3e5f19):_0x6166a3(_0x3e5f19))||_0x3e5f19);return _0x367707&&_0x3e5f19&&__defProp$6(_0x10fcf2,_0x11505d,_0x3e5f19),_0x3e5f19;},'__decorateClass$6'),__decorateParam$6=__name((_0x3340dd,_0x508d1f)=>(_0x5a67a9,_0xe39482)=>_0x508d1f(_0x5a67a9,_0xe39482,_0x3340dd),_0x5deefc(0x3bf)),_a21;let DataLoaderService=(_a21=class extends RxDisposable{constructor(_0x2c4911,_0x2702c7,_0x22018d){var _0x4a61e4=_0x5deefc;super(),__publicField(this,_0x4a61e4(0x340),new BehaviorSubject(null)),__publicField(this,_0x4a61e4(0x36c),this[_0x4a61e4(0x340)][_0x4a61e4(0x272)]()),(this['_logService']=_0x2c4911,this[_0x4a61e4(0x452)]=_0x2702c7,this[_0x4a61e4(0x1ae)]=_0x22018d);}async[_0x5deefc(0x275)](_0x5389ef,_0x3f127d,_0x13d7f2){var _0x2b387d=_0x5deefc;this[_0x2b387d(0x340)][_0x2b387d(0x41a)]({'unitId':_0x5389ef,'type':_0x3f127d,'subUnitId':_0x13d7f2});let _0x4dc82b=null;switch(_0x3f127d){case UniverType[_0x2b387d(0x4a9)]:{_0x4dc82b=await this['_loadSheet'](_0x5389ef);break;}case UniverType['UNIVER_DOC']:{_0x4dc82b=await this['_loadDoc'](_0x5389ef);break;}default:{this[_0x2b387d(0x1b0)][_0x2b387d(0x2ac)]('[DataLoaderService]',_0x2b387d(0x4b5));break;}}return _0x4dc82b;}async[_0x5deefc(0x4aa)](_0x29c715){var _0x286319=_0x5deefc,_0x5164ef;let _0x4d768c=0x0;const _0x4134ce=await((_0x5164ef=this[_0x286319(0x1ae)])==null?void 0x0:_0x5164ef[_0x286319(0x4d5)](_0x29c715));return _0x4134ce&&(_0x4134ce[_0x286319(0x2f6)]||_0x4134ce[_0x286319(0x35f)][_0x286319(0x2f2)]!==0x0)&&(_0x4d768c=_0x4134ce[_0x286319(0x2a6)]),_0x4d768c===0x0&&this[_0x286319(0x1b0)][_0x286319(0x3f5)](_0x286319(0x4d4),_0x286319(0x344)),this[_0x286319(0x452)]['loadSheet'](_0x29c715,_0x4d768c);}async[_0x5deefc(0x4e6)](_0xb7a775){var _0x2917ca=_0x5deefc,_0x591059;let _0x397aff=0x0;const _0x32b8f2=await((_0x591059=this[_0x2917ca(0x1ae)])==null?void 0x0:_0x591059['loadOfflineData'](_0xb7a775));return _0x32b8f2&&(_0x32b8f2['awaitingChangeset']||_0x32b8f2[_0x2917ca(0x35f)][_0x2917ca(0x2f2)]!==0x0)&&(_0x397aff=_0x32b8f2[_0x2917ca(0x2a6)]),_0x397aff===0x0&&this['_logService'][_0x2917ca(0x3f5)](_0x2917ca(0x4d4),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x2917ca(0x23e)](_0xb7a775,_0x397aff);}},__name(_a21,_0x5deefc(0x4a6)),_a21);DataLoaderService=__decorateClass$6([__decorateParam$6(0x0,ILogService),__decorateParam$6(0x1,Inject(SnapshotService)),__decorateParam$6(0x2,Optional(ILocalCacheService))],DataLoaderService);var __defProp$5=Object['defineProperty'],__getOwnPropDesc$5=Object[_0x5deefc(0x4e3)],__decorateClass$5=__name((_0x1c9c99,_0x3420fe,_0x327c61,_0x8309f9)=>{var _0x3d8848=_0x5deefc;for(var _0x1736d0=_0x8309f9>0x1?void 0x0:_0x8309f9?__getOwnPropDesc$5(_0x3420fe,_0x327c61):_0x3420fe,_0x5ae3a1=_0x1c9c99[_0x3d8848(0x2f2)]-0x1,_0x3ad0ef;_0x5ae3a1>=0x0;_0x5ae3a1--)(_0x3ad0ef=_0x1c9c99[_0x5ae3a1])&&(_0x1736d0=(_0x8309f9?_0x3ad0ef(_0x3420fe,_0x327c61,_0x1736d0):_0x3ad0ef(_0x1736d0))||_0x1736d0);return _0x8309f9&&_0x1736d0&&__defProp$5(_0x3420fe,_0x327c61,_0x1736d0),_0x1736d0;},'__decorateClass$5'),__decorateParam$5=__name((_0x3f06d2,_0x37b176)=>(_0x309ec0,_0x5a83a4)=>_0x37b176(_0x309ec0,_0x5a83a4,_0x3f06d2),_0x5deefc(0x4df));const ALLOW_IMAGE_LIST=[_0x5deefc(0x39a),_0x5deefc(0x3f7),_0x5deefc(0x2b1),_0x5deefc(0x404),'image/bmp'],ALLOW_IMAGE_SIZE=0x5*0x400*0x400,EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x5deefc(0x309),DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x5deefc(0x2d0),EXCHANGE_SIGN_URL_SERVER_URL_KEY='EXCHANGE_SIGN_URL_SERVER_URL_KEY',DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0x5deefc(0x3cd);var _a22;let CollaborationImageIoService=(_a22=class{constructor(_0x1aee10,_0x2d7546,_0xd60f58){var _0x4047e1=_0x5deefc;__publicField(this,_0x4047e1(0x25b),0x0),__publicField(this,_0x4047e1(0x1d3),new Subject()),__publicField(this,'change$',this[_0x4047e1(0x1d3)]),__publicField(this,'_imageSourceCache',new Map()),(this[_0x4047e1(0x3ac)]=_0x1aee10,this[_0x4047e1(0x32a)]=_0x2d7546,this[_0x4047e1(0x40e)]=_0xd60f58);}['setWaitCount'](_0x4540a6){var _0x55b646=_0x5deefc;this[_0x55b646(0x25b)]=_0x4540a6,this[_0x55b646(0x1d3)][_0x55b646(0x41a)](_0x4540a6);}[_0x5deefc(0x26e)](_0x313686,_0x11af21){var _0x1bc59f=_0x5deefc;if(_0x11af21===ImageSourceType[_0x1bc59f(0x406)]){const _0x7a817a=new Image();return _0x7a817a[_0x1bc59f(0x4bc)]=_0x313686,_0x7a817a;}return this[_0x1bc59f(0x473)]['get'](_0x313686);}['addImageSourceCache'](_0x1946f2,_0x42a8fa,_0x423973){var _0xb35462=_0x5deefc;_0x42a8fa===ImageSourceType[_0xb35462(0x406)]||_0x423973==null||this[_0xb35462(0x473)]['set'](_0x1946f2,_0x423973);}async['getImage'](_0x1d8be2){var _0x14586d=_0x5deefc;try{const _0x3fd9a4=this[_0x14586d(0x313)](this[_0x14586d(0x4eb)](),''+_0x1d8be2),_0x1f6ed1=(await this[_0x14586d(0x3ac)][_0x14586d(0x1ff)](_0x3fd9a4))[_0x14586d(0x324)];if(_0x1f6ed1[_0x14586d(0x2ac)]&&_0x1f6ed1['error'][_0x14586d(0x210)]===ErrorCode['OK']){const _0x4c118f=new URL(_0x1f6ed1['url'],this['_getDownloadEndpointURL']())[_0x14586d(0x4c1)]();return Promise[_0x14586d(0x472)](_0x4c118f);}return Promise[_0x14586d(0x306)](_0x1f6ed1[_0x14586d(0x2ac)]);}catch(_0x1910eb){return Promise[_0x14586d(0x306)](_0x1910eb);}}async[_0x5deefc(0x4a2)](_0x49ed2d){var _0x1730ba=_0x5deefc;let _0x46dc41='';if(!ALLOW_IMAGE_LIST[_0x1730ba(0x2a0)](_0x49ed2d['type']))return this[_0x1730ba(0x39d)](),Promise[_0x1730ba(0x306)](new Error(ImageUploadStatusType[_0x1730ba(0x27e)]));if(_0x49ed2d[_0x1730ba(0x4e7)]>ALLOW_IMAGE_SIZE)return this[_0x1730ba(0x39d)](),Promise[_0x1730ba(0x306)](new Error(ImageUploadStatusType[_0x1730ba(0x409)]));try{const _0x1cd7c8=new FormData();_0x1cd7c8[_0x1730ba(0x311)](_0x1730ba(0x237),_0x49ed2d);const _0x470859=this[_0x1730ba(0x40e)][_0x1730ba(0x352)](),_0x1dd0ba=_0x470859==null?void 0x0:_0x470859[_0x1730ba(0x1bd)]();if(!_0x1dd0ba)throw new Error(_0x1730ba(0x454));const _0xe222fe=this[_0x1730ba(0x3ef)]()+_0x1730ba(0x4f1)+_0x49ed2d[_0x1730ba(0x4e7)][_0x1730ba(0x4c1)]()+_0x1730ba(0x2c7)+FileSource[_0x1730ba(0x3f6)]+'&assign='+encodeURIComponent(_0x1dd0ba),_0x2761a8=await(await fetch(_0xe222fe,{'method':_0x1730ba(0x3c5),'body':_0x1cd7c8}))[_0x1730ba(0x459)]();if(typeof _0x2761a8[_0x1730ba(0x1a9)]!=_0x1730ba(0x380))return this[_0x1730ba(0x39d)](),Promise[_0x1730ba(0x306)](new Error(ImageUploadStatusType[_0x1730ba(0x358)]));_0x46dc41=_0x2761a8[_0x1730ba(0x1a9)];}catch{return this[_0x1730ba(0x39d)](),Promise[_0x1730ba(0x306)](new Error(ImageUploadStatusType[_0x1730ba(0x358)]));}return new Promise((_0x3d51b7,_0x1c46d1)=>{var _0x15e35f=_0x1730ba;const _0x281acd=new FileReader();_0x281acd['readAsDataURL'](_0x49ed2d),_0x281acd[_0x15e35f(0x279)]=_0x6cb9f5=>{var _0x49d3b8=_0x15e35f,_0x3eb8e1;const _0x4e205f=(_0x3eb8e1=_0x6cb9f5[_0x49d3b8(0x3a4)])==null?void 0x0:_0x3eb8e1[_0x49d3b8(0x1f0)];if(_0x4e205f==null){this[_0x49d3b8(0x39d)](),_0x1c46d1(new Error(ImageUploadStatusType['ERROR_IMAGE']));return;}const _0x309e1e=Tools[_0x49d3b8(0x229)](0x6);_0x3d51b7({'imageId':_0x309e1e,'imageSourceType':ImageSourceType[_0x49d3b8(0x4cf)],'source':_0x46dc41,'base64Cache':_0x4e205f,'status':ImageUploadStatusType[_0x49d3b8(0x2c4)]}),this[_0x49d3b8(0x39d)]();};});}[_0x5deefc(0x3ef)](){var _0x219976=_0x5deefc,_0x5ee4cd,_0x7d4ec0;const _0xc15e82=this[_0x219976(0x32a)][_0x219976(0x365)](EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY),_0x246542=this[_0x219976(0x32a)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x7d4ec0=(_0x5ee4cd=_0x246542==null?void 0x0:_0x246542[_0x219976(0x204)])!=null?_0x5ee4cd:_0xc15e82)!=null?_0x7d4ec0:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}[_0x5deefc(0x4eb)](){var _0x882e2d=_0x5deefc,_0x4c5cd1,_0x512163;const _0xefce5e=this[_0x882e2d(0x32a)][_0x882e2d(0x365)](EXCHANGE_SIGN_URL_SERVER_URL_KEY),_0x7b79e8=this[_0x882e2d(0x32a)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x512163=(_0x4c5cd1=_0x7b79e8==null?void 0x0:_0x7b79e8[_0x882e2d(0x1f2)])!=null?_0x4c5cd1:_0xefce5e)!=null?_0x512163:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}['_getDownloadEndpointURL'](){var _0x572e8d=_0x5deefc,_0x2915ab;const _0x2c37e6=this[_0x572e8d(0x32a)][_0x572e8d(0x365)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x2915ab=_0x2c37e6==null?void 0x0:_0x2c37e6[_0x572e8d(0x411)])!=null?_0x2915ab:location[_0x572e8d(0x295)];}[_0x5deefc(0x313)](_0x489402,_0x2cd75e){var _0x5711b8=_0x5deefc;return _0x489402[_0x5711b8(0x3fc)](_0x5711b8(0x364),_0x2cd75e);}[_0x5deefc(0x39d)](){var _0x2aab61=_0x5deefc;this[_0x2aab61(0x25b)]-=0x1,this[_0x2aab61(0x1d3)]['next'](this[_0x2aab61(0x25b)]);}},__name(_a22,_0x5deefc(0x2f8)),_a22);CollaborationImageIoService=__decorateClass$5([__decorateParam$5(0x0,Inject(HTTPService)),__decorateParam$5(0x1,IConfigService),__decorateParam$5(0x2,Inject(IUniverInstanceService))],CollaborationImageIoService);var __defProp$4=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$4=Object[_0x5deefc(0x4e3)],__decorateClass$4=__name((_0x235e38,_0x28e6ef,_0x55ecec,_0x39482b)=>{var _0x345b70=_0x5deefc;for(var _0x115c5b=_0x39482b>0x1?void 0x0:_0x39482b?__getOwnPropDesc$4(_0x28e6ef,_0x55ecec):_0x28e6ef,_0x4e1dc3=_0x235e38[_0x345b70(0x2f2)]-0x1,_0x3fe9d8;_0x4e1dc3>=0x0;_0x4e1dc3--)(_0x3fe9d8=_0x235e38[_0x4e1dc3])&&(_0x115c5b=(_0x39482b?_0x3fe9d8(_0x28e6ef,_0x55ecec,_0x115c5b):_0x3fe9d8(_0x115c5b))||_0x115c5b);return _0x39482b&&_0x115c5b&&__defProp$4(_0x28e6ef,_0x55ecec,_0x115c5b),_0x115c5b;},_0x5deefc(0x38b)),__decorateParam$4=__name((_0x236311,_0x432105)=>(_0x4fef3,_0x459dc1)=>_0x432105(_0x4fef3,_0x459dc1,_0x236311),_0x5deefc(0x2a5));const DEFAULT_AUTHZ_URL_KEY=_0x5deefc(0x433);var _a23;let MentionIoHttpService=(_a23=class{constructor(_0x216a8a,_0x4f89e0){var _0x145875=_0x5deefc;this[_0x145875(0x32a)]=_0x216a8a,this[_0x145875(0x36f)]=_0x4f89e0;}[_0x5deefc(0x32d)](){var _0x78b478=_0x5deefc,_0x4fe2fb,_0x13a954;const _0x50a966=this[_0x78b478(0x32a)][_0x78b478(0x365)](AUTHZ_URL_KEY),_0x1976eb=this['_configService']['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x13a954=(_0x4fe2fb=_0x1976eb==null?void 0x0:_0x1976eb[_0x78b478(0x3b7)])!=null?_0x4fe2fb:_0x50a966)!=null?_0x13a954:DEFAULT_AUTHZ_URL_KEY;}async[_0x5deefc(0x239)](_0x3055f4){var _0x5e265a=_0x5deefc;const _0x50e5be=this[_0x5e265a(0x32d)]()+_0x5e265a(0x292);return{'list':[{'title':_0x5e265a(0x2ad),'mentions':(await this[_0x5e265a(0x36f)][_0x5e265a(0x1ff)](_0x50e5be,{'params':{'objectID':_0x3055f4['unitId'],'unitID':_0x3055f4[_0x5e265a(0x4c0)]}}))[_0x5e265a(0x324)][_0x5e265a(0x2cb)]['map'](_0x41b3a3=>({'objectId':_0x41b3a3['id'],'name':_0x41b3a3[_0x5e265a(0x4d0)][_0x5e265a(0x32e)],'metadata':{'icon':_0x41b3a3[_0x5e265a(0x4d0)]['avatar']},'label':_0x41b3a3[_0x5e265a(0x4d0)][_0x5e265a(0x32e)],'objectType':MentionType['PERSON']})),'metadata':{},'type':MentionType[_0x5e265a(0x34b)]}]};}},__name(_a23,_0x5deefc(0x2a1)),_a23);MentionIoHttpService=__decorateClass$4([__decorateParam$4(0x0,Inject(IConfigService)),__decorateParam$4(0x1,Inject(HTTPService))],MentionIoHttpService);var __defProp$3=Object['defineProperty'],__getOwnPropDesc$3=Object['getOwnPropertyDescriptor'],__decorateClass$3=__name((_0x32fc2a,_0x1a5836,_0x3a68f9,_0x562981)=>{var _0x56ce0f=_0x5deefc;for(var _0xd8e777=_0x562981>0x1?void 0x0:_0x562981?__getOwnPropDesc$3(_0x1a5836,_0x3a68f9):_0x1a5836,_0x5d02eb=_0x32fc2a[_0x56ce0f(0x2f2)]-0x1,_0x267e1d;_0x5d02eb>=0x0;_0x5d02eb--)(_0x267e1d=_0x32fc2a[_0x5d02eb])&&(_0xd8e777=(_0x562981?_0x267e1d(_0x1a5836,_0x3a68f9,_0xd8e777):_0x267e1d(_0xd8e777))||_0xd8e777);return _0x562981&&_0xd8e777&&__defProp$3(_0x1a5836,_0x3a68f9,_0xd8e777),_0xd8e777;},_0x5deefc(0x49b)),__decorateParam$3=__name((_0x175242,_0x54e496)=>(_0xafda09,_0x4369c0)=>_0x54e496(_0xafda09,_0x4369c0,_0x175242),_0x5deefc(0x378)),_a24;let PermissionService=(_a24=class extends RxDisposable{constructor(_0x402527,_0x52e72e,_0x360f93,_0x29e5d0,_0x5acdac,_0x37552c,_0x1abbf5){var _0x2b898b=_0x5deefc;super(),this[_0x2b898b(0x321)]=_0x402527,this[_0x2b898b(0x40e)]=_0x52e72e,this['_permissionService']=_0x360f93,this[_0x2b898b(0x43b)]=_0x29e5d0,this['_collaborationUIEventService']=_0x5acdac,this[_0x2b898b(0x25d)]=_0x37552c,this['_undoRedoService']=_0x1abbf5,this[_0x2b898b(0x4c3)](),this[_0x2b898b(0x207)]();}[_0x5deefc(0x207)](){var _0xe2dcfc=_0x5deefc;const _0x23548b=__name(async _0x594550=>{var _0x29c60=_0x450a;(await this[_0x29c60(0x43b)]['requireSession'](_0x594550))[_0x29c60(0x37b)][_0x29c60(0x431)](filter(_0x5193be=>_0x5193be[_0x29c60(0x4b8)]===CollaborationEvent[_0x29c60(0x254)]),_0x160a42(this[_0x29c60(0x1c6)]))['subscribe'](_0x31c18c=>{var _0x859949=_0x29c60;const _0x2c69b9=_0x31c18c,{reason:_0xcd0d7b}=_0x2c69b9[_0x859949(0x3e4)];this[_0x859949(0x214)][_0x859949(0x333)]({'id':CollaborationUIEventId[_0x859949(0x3c4)],'data':_0xcd0d7b}),this[_0x859949(0x288)][_0x859949(0x461)](new WorkbookEditablePermission(_0x594550)['id'],!0x1),this[_0x859949(0x43b)][_0x859949(0x4c6)](_0x594550);});},'handleCloseConn');merge(this[_0xe2dcfc(0x40e)][_0xe2dcfc(0x3c6)](UniverInstanceType['UNIVER_SHEET']),this[_0xe2dcfc(0x40e)][_0xe2dcfc(0x3c6)](UniverInstanceType[_0xe2dcfc(0x385)]))['pipe'](map(_0x786b3b=>_0x786b3b[_0xe2dcfc(0x1bd)]()),filter(_0x128dc4=>!isInternalEditorID(_0x128dc4)),_0x160a42(this[_0xe2dcfc(0x1c6)]))[_0xe2dcfc(0x49c)](_0x334419=>{_0x23548b(_0x334419);});}[_0x5deefc(0x4c3)](){var _0x4fd17a=_0x5deefc;const _0x292b81=__name(async _0x4a4dcc=>{var _0x62136a=_0x450a;const _0x49ed56=await this['_collaborationSessionService'][_0x62136a(0x330)](_0x4a4dcc),_0x42fc64=this[_0x62136a(0x321)][_0x62136a(0x1ff)](SheetPermissionInitController);_0x49ed56[_0x62136a(0x37b)][_0x62136a(0x431)](filter(_0x805cc0=>_0x805cc0[_0x62136a(0x4b8)]===CollaborationEvent[_0x62136a(0x282)]),_0x160a42(this[_0x62136a(0x1c6)]))[_0x62136a(0x49c)](_0x287bca=>{var _0x59606e=_0x62136a;const _0x4b1a70=_0x287bca,{objectId:_0x410029}=_0x4b1a70[_0x59606e(0x3e4)];_0x410029===_0x4a4dcc?_0x42fc64[_0x59606e(0x29b)](_0x4a4dcc):_0x42fc64['refreshPermission'](_0x4a4dcc,_0x410029);});},_0x4fd17a(0x4a8));merge(this[_0x4fd17a(0x40e)][_0x4fd17a(0x3c6)](UniverInstanceType['UNIVER_SHEET']),this['_univerInstanceService'][_0x4fd17a(0x3c6)](UniverInstanceType['UNIVER_DOC']))[_0x4fd17a(0x431)](map(_0xbe7833=>_0xbe7833[_0x4fd17a(0x1bd)]()),filter(_0x22bae4=>!isInternalEditorID(_0x22bae4)),_0x160a42(this[_0x4fd17a(0x1c6)]))['subscribe'](_0x1555b8=>{_0x292b81(_0x1555b8);});}},__name(_a24,_0x5deefc(0x489)),_a24);PermissionService=__decorateClass$3([__decorateParam$3(0x0,Inject(Injector)),__decorateParam$3(0x1,IUniverInstanceService),__decorateParam$3(0x2,IPermissionService),__decorateParam$3(0x3,Inject(CollaborationSessionService)),__decorateParam$3(0x4,Inject(CollaborationUIEventService)),__decorateParam$3(0x5,IAuthzIoService),__decorateParam$3(0x6,IUndoRedoService)],PermissionService);var __defProp$2=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$2=Object[_0x5deefc(0x4e3)],__decorateClass$2=__name((_0x295d70,_0x5a1da6,_0xf82516,_0x328ff2)=>{var _0x39f13a=_0x5deefc;for(var _0x20b375=_0x328ff2>0x1?void 0x0:_0x328ff2?__getOwnPropDesc$2(_0x5a1da6,_0xf82516):_0x5a1da6,_0x41543f=_0x295d70[_0x39f13a(0x2f2)]-0x1,_0x56c1e;_0x41543f>=0x0;_0x41543f--)(_0x56c1e=_0x295d70[_0x41543f])&&(_0x20b375=(_0x328ff2?_0x56c1e(_0x5a1da6,_0xf82516,_0x20b375):_0x56c1e(_0x20b375))||_0x20b375);return _0x328ff2&&_0x20b375&&__defProp$2(_0x5a1da6,_0xf82516,_0x20b375),_0x20b375;},_0x5deefc(0x235)),__decorateParam$2=__name((_0x378693,_0x382d27)=>(_0x2c6673,_0x3e9953)=>_0x382d27(_0x2c6673,_0x3e9953,_0x378693),_0x5deefc(0x3c2)),_a25;let SnapshotServerOverHTTPService=(_a25=class{constructor(_0x5524b6,_0x5e059d){var _0x143136=_0x5deefc;this[_0x143136(0x32a)]=_0x5524b6,this[_0x143136(0x3ac)]=_0x5e059d;}async['getUnitOnRev'](_0x32acb2,_0x4145dd){var _0x55229c=_0x5deefc,_0x4070dc;const {unitID:_0x275cb7,type:_0x103cb1,revision:revision=0x0}=_0x4145dd,_0x48db46=this[_0x55229c(0x3a1)]()+'/'+_0x103cb1+_0x55229c(0x3d5)+_0x275cb7+_0x55229c(0x386)+revision,_0x127819=(await this['_httpService']['get'](_0x48db46))[_0x55229c(0x324)],_0x400d18=(_0x4070dc=_0x127819[_0x55229c(0x4f4)])==null?void 0x0:_0x4070dc[_0x55229c(0x27b)];if(_0x400d18){const _0x24c831=_0x400d18==null?void 0x0:_0x400d18['originalMeta'],_0x5153fa=textEncoder['encode'](b64DecodeUnicode(_0x24c831));_0x400d18[_0x55229c(0x1b6)]=_0x5153fa,Object[_0x55229c(0x22c)](_0x400d18['sheets'])['forEach'](([,_0x417f6b])=>{var _0x28dd57=_0x55229c;const _0x102a0b=_0x417f6b[_0x28dd57(0x1b6)],_0x4957bb=textEncoder[_0x28dd57(0x208)](b64DecodeUnicode(_0x102a0b));_0x417f6b[_0x28dd57(0x1b6)]=_0x4957bb;});}return _0x127819;}async[_0x5deefc(0x1eb)](_0x3ce37d,_0x4d1f0b){var _0x36e3be=_0x5deefc;const {unitID:_0x17434b,type:_0x211c70,blockID:_0x58594a}=_0x4d1f0b,_0x268665=this[_0x36e3be(0x37a)]()+'/'+_0x211c70+_0x36e3be(0x3d5)+_0x17434b+'/block/'+_0x58594a;return(await this[_0x36e3be(0x3ac)][_0x36e3be(0x1ff)](_0x268665))[_0x36e3be(0x324)];}async[_0x5deefc(0x317)](_0x210539,_0x16c370){var _0x52d371=_0x5deefc;const {unitID:_0x43a417,type:_0x17f3e7,blockID:_0x5e0d4c}=_0x16c370,_0x28e5c3=this[_0x52d371(0x37a)]()+_0x52d371(0x3b5)+_0x17f3e7+'/unit/'+_0x43a417+_0x52d371(0x3b5)+_0x5e0d4c;return(await this['_httpService'][_0x52d371(0x1ff)](_0x28e5c3))[_0x52d371(0x324)];}async[_0x5deefc(0x2a7)](_0x2f7cb5,_0x224bf5){var _0x13ecfe=_0x5deefc;const {unitID:_0x2de77a,type:_0x11cb4a,from:_0x1d5255,to:_0x15b8ea}=_0x224bf5,_0x202d81=this[_0x13ecfe(0x37a)]()+'/'+_0x11cb4a+_0x13ecfe(0x3d5)+_0x2de77a+_0x13ecfe(0x3e0)+_0x1d5255+_0x13ecfe(0x21d)+_0x15b8ea;return(await this[_0x13ecfe(0x3ac)][_0x13ecfe(0x1ff)](_0x202d81))[_0x13ecfe(0x324)];}['getSnapshotAPIPath'](){var _0xa81a26=_0x5deefc,_0x247062;return(_0x247062=this['_configService'][_0xa81a26(0x365)](SNAPSHOT_URL_KEY))!=null?_0x247062:this['_getAPIPrefix']();}['_getAPIPrefix'](){var _0x364485=_0x5deefc,_0x39e83d,_0x199bc4;const _0x20d47e=this[_0x364485(0x32a)]['getConfig'](SNAPSHOT_SERVER_URL_KEY),_0xa4691d=this[_0x364485(0x32a)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x199bc4=(_0x39e83d=_0xa4691d==null?void 0x0:_0xa4691d[_0x364485(0x293)])!=null?_0x39e83d:_0x20d47e)!=null?_0x199bc4:DEFAULT_SNAPSHOT_SERVER_URL;}async['getResourcesRequest'](_0x3e83fb,_0x50c945){var _0x595ba7=_0x5deefc;const _0x4679ff=_0x595ba7(0x281)+_0x50c945[_0x595ba7(0x2b5)]+_0x595ba7(0x3d5)+_0x50c945[_0x595ba7(0x46e)]+_0x595ba7(0x232);return(await this[_0x595ba7(0x3ac)][_0x595ba7(0x1ff)](_0x4679ff,{'params':{'resourceId':JSON['stringify'](_0x50c945['resourceIDs'])}}))[_0x595ba7(0x324)];}[_0x5deefc(0x337)](){var _0x5402c3=_0x5deefc;throw new Error(_0x5402c3(0x316));}[_0x5deefc(0x39e)](){var _0x3b0849=_0x5deefc;throw new Error(_0x3b0849(0x316));}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x5deefc(0x2a9)](){var _0x1e94b5=_0x5deefc;throw new Error(_0x1e94b5(0x316));}[_0x5deefc(0x1ef)](){var _0x3cd3f4=_0x5deefc;throw new Error(_0x3cd3f4(0x316));}},__name(_a25,_0x5deefc(0x44b)),_a25);SnapshotServerOverHTTPService=__decorateClass$2([__decorateParam$2(0x0,IConfigService),__decorateParam$2(0x1,Inject(HTTPService))],SnapshotServerOverHTTPService);var __defProp$1=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$1=Object[_0x5deefc(0x4e3)],__decorateClass$1=__name((_0x213e38,_0x53747f,_0x19a016,_0x2fb76b)=>{var _0x1a32f8=_0x5deefc;for(var _0x3543fe=_0x2fb76b>0x1?void 0x0:_0x2fb76b?__getOwnPropDesc$1(_0x53747f,_0x19a016):_0x53747f,_0x10aab5=_0x213e38[_0x1a32f8(0x2f2)]-0x1,_0x324fa2;_0x10aab5>=0x0;_0x10aab5--)(_0x324fa2=_0x213e38[_0x10aab5])&&(_0x3543fe=(_0x2fb76b?_0x324fa2(_0x53747f,_0x19a016,_0x3543fe):_0x324fa2(_0x3543fe))||_0x3543fe);return _0x2fb76b&&_0x3543fe&&__defProp$1(_0x53747f,_0x19a016,_0x3543fe),_0x3543fe;},_0x5deefc(0x3d0)),__decorateParam$1=__name((_0x3efadb,_0x49140c)=>(_0x51aa62,_0x706623)=>_0x49140c(_0x51aa62,_0x706623,_0x3efadb),'__decorateParam$1'),_a26;let CollaborativeUndoRedoService=(_a26=class extends LocalUndoRedoService{constructor(_0x15c53a,_0x98effa,_0x481fca,_0x181b26,_0xd0882){var _0x5af9f8=_0x5deefc;super(_0x15c53a,_0x98effa,_0x481fca),this[_0x5af9f8(0x34c)]=_0x181b26,this['_logService']=_0xd0882;}[_0x5deefc(0x491)](_0x2f85ef,_0x356ad5){var _0x37ed91=_0x5deefc;const _0x416f18=this['_getUndoStack'](_0x2f85ef);if(_0x416f18)try{const _0x2c61cb=this[_0x37ed91(0x2d5)](_0x416f18,_0x356ad5);this[_0x37ed91(0x438)](_0x2f85ef,_0x2c61cb);}catch(_0xad4d58){this[_0x37ed91(0x1b0)]['error'](_0x37ed91(0x21a),_0xad4d58),this[_0x37ed91(0x4e1)](_0x2f85ef);}const _0x1baa78=this[_0x37ed91(0x256)](_0x2f85ef);if(_0x1baa78)try{const _0x55c44a=this[_0x37ed91(0x2d5)](_0x1baa78,_0x356ad5);this['_substituteRedoStack'](_0x2f85ef,_0x55c44a);}catch(_0x489893){this[_0x37ed91(0x1b0)][_0x37ed91(0x2ac)](_0x489893),this[_0x37ed91(0x24c)](_0x2f85ef);}}[_0x5deefc(0x4e1)](_0x1ebe35){var _0x5410e4=_0x5deefc;const _0x404546=this[_0x5410e4(0x434)](_0x1ebe35);_0x404546&&(_0x404546[_0x5410e4(0x2f2)]=0x0,this['_updateStatus']());}[_0x5deefc(0x24c)](_0x2054a6){var _0x36b24c=_0x5deefc;const _0x1a0bfb=this['_getRedoStack'](_0x2054a6);_0x1a0bfb&&(_0x1a0bfb[_0x36b24c(0x2f2)]=0x0,this[_0x36b24c(0x3a7)]());}[_0x5deefc(0x438)](_0x16ddfe,_0x477147){var _0x15427e=_0x5deefc;this[_0x15427e(0x251)][_0x15427e(0x31a)](_0x16ddfe,_0x477147),this['_updateStatus']();}['_substituteRedoStack'](_0x23165c,_0x412a28){var _0x5214fd=_0x5deefc;this[_0x5214fd(0x277)]['set'](_0x23165c,_0x412a28),this['_updateStatus']();}[_0x5deefc(0x2d5)](_0x1cf5ab,_0x531e6f){var _0x2feb5f=_0x5deefc;const _0x374855=[];let _0x451e9d=_0x531e6f,_0x541052=_0x531e6f;for(let _0x6fef7b=_0x1cf5ab['length']-0x1;_0x6fef7b>=0x0;_0x6fef7b--){const {unitID:_0x16a332,undoMutations:_0x53c558,redoMutations:_0x2ccb0f}=_0x1cf5ab[_0x6fef7b],_0x1fe337=this[_0x2feb5f(0x34c)]['transformMutationsWithChangeset'](_0x451e9d,_0x53c558),_0x1131f3=this[_0x2feb5f(0x34c)][_0x2feb5f(0x4b4)](_0x541052,_0x2ccb0f);if(isTransformMutationsWithChangesetFailure(_0x1fe337)||isTransformMutationsWithChangesetFailure(_0x1131f3)){this['_logService'][_0x2feb5f(0x2ac)](_0x2feb5f(0x21a),'transformStack\x20failed!',_0x1fe337,_0x1131f3);break;}_0x451e9d=_0x1fe337[_0x2feb5f(0x274)],_0x541052=_0x1131f3['c1Prime'],_0x374855['push']({'unitID':_0x16a332,'undoMutations':_0x1fe337[_0x2feb5f(0x2dd)],'redoMutations':_0x1131f3[_0x2feb5f(0x2dd)]});}return _0x374855['reverse']();}},__name(_a26,'CollaborativeUndoRedoService'),_a26);CollaborativeUndoRedoService=__decorateClass$1([__decorateParam$1(0x0,IUniverInstanceService),__decorateParam$1(0x1,ICommandService),__decorateParam$1(0x2,IContextService),__decorateParam$1(0x3,ITransformService),__decorateParam$1(0x4,ILogService)],CollaborativeUndoRedoService);var __defProp2=Object[_0x5deefc(0x4ad)],__getOwnPropDesc=Object[_0x5deefc(0x4e3)],__defNormalProp2=__name((_0x3bcad1,_0x5c6019,_0x38e5e7)=>_0x5c6019 in _0x3bcad1?__defProp2(_0x3bcad1,_0x5c6019,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38e5e7}):_0x3bcad1[_0x5c6019]=_0x38e5e7,_0x5deefc(0x4b6)),__decorateClass=__name((_0x368465,_0x9db3fd,_0x196bff,_0x18776b)=>{var _0x4e7475=_0x5deefc;for(var _0x48b69e=_0x18776b>0x1?void 0x0:_0x18776b?__getOwnPropDesc(_0x9db3fd,_0x196bff):_0x9db3fd,_0xc1f345=_0x368465[_0x4e7475(0x2f2)]-0x1,_0x40ca7c;_0xc1f345>=0x0;_0xc1f345--)(_0x40ca7c=_0x368465[_0xc1f345])&&(_0x48b69e=(_0x18776b?_0x40ca7c(_0x9db3fd,_0x196bff,_0x48b69e):_0x40ca7c(_0x48b69e))||_0x48b69e);return _0x18776b&&_0x48b69e&&__defProp2(_0x9db3fd,_0x196bff,_0x48b69e),_0x48b69e;},_0x5deefc(0x38e)),__decorateParam=__name((_0x4b172e,_0x4cd779)=>(_0x4c8b76,_0x381e40)=>_0x4cd779(_0x4c8b76,_0x381e40,_0x4b172e),_0x5deefc(0x209)),__publicField2=__name((_0x32bfa1,_0x244ffb,_0x33c42f)=>__defNormalProp2(_0x32bfa1,_0x244ffb+'',_0x33c42f),_0x5deefc(0x439));const PLUGIN_NAME=_0x5deefc(0x211);var _a27;let UniverCollaborationClientPlugin=(_a27=class extends Plugin{constructor(_0x6863e9=defaultPluginConfig,_0x124486,_0x5967d7,_0x27ef7e){var _0x246f60=_0x5deefc;super(),this['_config']=_0x6863e9,this[_0x246f60(0x1b0)]=_0x124486,this['_injector']=_0x5967d7,this[_0x246f60(0x32a)]=_0x27ef7e;const {..._0x4d5363}=_0x254d2d({},defaultPluginConfig,this[_0x246f60(0x3f0)]);this[_0x246f60(0x32a)][_0x246f60(0x47c)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,_0x4d5363);}[_0x5deefc(0x2af)](){var _0x1fec81=_0x5deefc;this[_0x1fec81(0x3a8)](),this[_0x1fec81(0x1fc)]();}[_0x5deefc(0x3a8)](){var _0x2c6380=_0x5deefc,_0x134f71,_0x24905e,_0x3a2e5f,_0x33412a;this[_0x2c6380(0x321)][_0x2c6380(0x31b)](IUndoRedoService)&&this['_logService'][_0x2c6380(0x2ac)](_0x2c6380(0x1c8),_0x2c6380(0x424));const _0x28264c=mergeOverrideWithDependencies([[IUndoRedoService,{'useClass':CollaborativeUndoRedoService}],[CollaborationSessionService],[MemberService],[SheetTransformSelectionsService],[AuthServerService],[DomainRequestService],[CommentService],[PermissionService],[CollaborationUIEventService],[DataLoaderService],[ICollaborationSocketService,{'useClass':(_0x24905e=(_0x134f71=this[_0x2c6380(0x3f0)])==null?void 0x0:_0x134f71[_0x2c6380(0x361)])!=null?_0x24905e:CollaborationSocketService}],[ISnapshotServerService,{'useClass':SnapshotServerOverHTTPService}],[IAuthzIoService,{'useClass':AuthzIoHttpService}],[IImageIoService,{'useClass':CollaborationImageIoService}],[IMentionIOService,{'useClass':MentionIoHttpService}],[CollaborationController],[FileNameController]],(_0x3a2e5f=this[_0x2c6380(0x3f0)])==null?void 0x0:_0x3a2e5f['override']);if(!((_0x33412a=this[_0x2c6380(0x3f0)])!=null&&_0x33412a['enableSingleActiveInstanceLock'])){const _0x14293e=_0x28264c[_0x2c6380(0x1ed)](([_0xf987ce])=>_0xf987ce===ISingleActiveUnitService);_0x14293e!==-0x1&&_0x28264c[_0x2c6380(0x233)](_0x14293e,0x1);}registerDependencies(this['_injector'],_0x28264c);}[_0x5deefc(0x1fc)](){var _0x4f59d1=_0x5deefc,_0x3ba07b,_0x1f2127,_0x1a2b34;this[_0x4f59d1(0x321)][_0x4f59d1(0x1ff)](HTTPService)[_0x4f59d1(0x245)]({'priority':0x14,'interceptor':ThresholdInterceptorFactory({'maxParallel':0x6})}),(_0x3ba07b=this['_config'])!=null&&_0x3ba07b['enableOfflineEditing']||(_0x1f2127=this[_0x4f59d1(0x321)]['get'](ILocalCacheService,Quantity[_0x4f59d1(0x300)]))==null||_0x1f2127[_0x4f59d1(0x2da)](),(_0x1a2b34=this[_0x4f59d1(0x3f0)])!=null&&_0x1a2b34[_0x4f59d1(0x4e0)]&&touchDependencies(this[_0x4f59d1(0x321)],[[AuthServerService]]),touchDependencies(this[_0x4f59d1(0x321)],[[DomainRequestService],[CollaborationController],[PermissionService]]);}},__name(_a27,'UniverCollaborationClientPlugin'),_a27);__publicField2(UniverCollaborationClientPlugin,'pluginName',PLUGIN_NAME),UniverCollaborationClientPlugin=__decorateClass([DependentOn(UniverCollaborationPlugin,UniverSheetsPlugin,UniverNetworkPlugin),__decorateParam(0x1,ILogService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService)],UniverCollaborationClientPlugin);export{AUTHZ_URL_KEY,AuthzIoHttpService,AwaitingState,AwaitingWithPendingState,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,COLLAB_SUBMIT_CHANGESET_URL_KEY,COLLAB_WEB_SOCKET_URL_KEY,CollaborationController,CollaborationEntity,CollaborationImageIoService,CollaborationSession,CollaborationSessionService,CollaborationSocketService,CollaborationStatus,CollaborationUIEventId,CollaborationUIEventService,CollaborativeUndoRedoService,CommentService,ConflictState,DEFAULT_COLLAB_WEB_SOCKET_URL,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,DataLoaderService,DocCollaborationEntity,FetchingMissState,HEARTBEAT_INTERVAL_KEY,HEARTBEAT_TIMEOUT_KEY,ICollaborationSocketService,ILocalCacheService,INetworkConditionService,ISingleActiveUnitService,LOCAL_CACHE_INTERVAL,LOCAL_CACHE_INTERVAL_KEY,LOGIN_URL_KEY,MemberService,MentionIoHttpService,OfflineState,PendingState,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,RETRY_CONNECTING_MAX_COUNT_KEY,SEND_CHANGESET_TIMEOUT_KEY,SNAPSHOT_SERVER_URL_KEY,SNAPSHOT_URL_KEY,SessionStatus,SheetCollaborationEntity,SheetTransformSelectionsService,SnapshotServerOverHTTPService,SyncedState,UnitStatus,UniverCollaborationClientPlugin,deserializeToCombResponse,getLocalCacheKey,serializeCombRequest};
1
+ var _0x51f535=_0x46c5;(function(_0x461b28,_0x7a011a){var _0xfae449=_0x46c5,_0x3f2d06=_0x461b28();while(!![]){try{var _0x487c62=-parseInt(_0xfae449(0x3fb))/0x1+-parseInt(_0xfae449(0x34c))/0x2*(-parseInt(_0xfae449(0x4c9))/0x3)+parseInt(_0xfae449(0x460))/0x4+-parseInt(_0xfae449(0x4e0))/0x5*(parseInt(_0xfae449(0x31b))/0x6)+parseInt(_0xfae449(0x266))/0x7*(parseInt(_0xfae449(0x39b))/0x8)+parseInt(_0xfae449(0x3eb))/0x9*(parseInt(_0xfae449(0x4e9))/0xa)+-parseInt(_0xfae449(0x22c))/0xb*(-parseInt(_0xfae449(0x2a8))/0xc);if(_0x487c62===_0x7a011a)break;else _0x3f2d06['push'](_0x3f2d06['shift']());}catch(_0x580af3){_0x3f2d06['push'](_0x3f2d06['shift']());}}}(_0x11f7,0x93c28));var __defProp=Object[_0x51f535(0x2c3)],__defNormalProp=(_0x5ec70b,_0x5ea82c,_0x161ba7)=>_0x5ea82c in _0x5ec70b?__defProp(_0x5ec70b,_0x5ea82c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x161ba7}):_0x5ec70b[_0x5ea82c]=_0x161ba7,__name=(_0x22067c,_0x128a35)=>__defProp(_0x22067c,_0x51f535(0x3ea),{'value':_0x128a35,'configurable':!0x0}),__publicField=(_0x32d0dc,_0x5c86b3,_0x43eca7)=>__defNormalProp(_0x32d0dc,typeof _0x5c86b3!=_0x51f535(0x41d)?_0x5c86b3+'':_0x5c86b3,_0x43eca7);import{createIdentifier,Inject,Injector,Disposable,DisposableCollection,toDisposable,IConfigService,ILogService,UserManagerService,UniverInstanceType,IUniverInstanceService,LocaleService,Optional,RxDisposable,Tools,Rectangle,ICommandService,JSONX,CommandType,IPermissionService,IUndoRedoService,sequenceExecute,Workbook,MentionType,IAuthzIoService,isInternalEditorID,LocalUndoRedoService,IContextService,DependentOn,Plugin,merge as _0x35bfeb,mergeOverrideWithDependencies,IMentionIOService,registerDependencies,Quantity,touchDependencies}from'@univerjs/core';import{Subject,merge,of,BehaviorSubject,takeUntil,ReplaySubject,take as _0x18ca8f,map as _0x20344d,shareReplay,firstValueFrom,concatMap}from'rxjs';import{map,take,filter,delay,takeUntil as _0x3dbbe5}from'rxjs/operators';import{HTTPService,ISocketService,MergeInterceptorFactory,HTTPRequest,UniverNetworkPlugin,ThresholdInterceptorFactory}from'@univerjs/network';import{CollaborationEvent,parseChangesetToProtocol,ISnapshotServerService,isTransformMutationsWithChangesetSuccess,ITransformService,mapDocumentTypeToUniverType,RevisionService,isTransformChangesetsSuccess,CompressMutationService,parseProtocolChangeset,SnapshotService,textEncoder,b64DecodeUnicode,isTransformMutationsWithChangesetFailure,UniverCollaborationPlugin}from'@univerjs-pro/collaboration';import{ITelemetryService}from'@univerjs/telemetry';import{RichTextEditingMutation}from'@univerjs/docs';import{SheetsSelectionsService,SetSelectionsOperation,InsertSheetMutation,EmptyMutation,WorkbookEditablePermission,SheetPermissionInitController,UniverSheetsPlugin}from'@univerjs/sheets';import{ImageSourceType,ImageUploadStatusType,IImageIoService}from'@univerjs/drawing';import{getGlobalObject}from'@univerjs-pro/license';const SNAPSHOT_SERVER_URL_KEY=_0x51f535(0x462),DEFAULT_SNAPSHOT_SERVER_URL='/universer-api/snapshot',SNAPSHOT_URL_KEY=_0x51f535(0x40c),SEND_CHANGESET_TIMEOUT_KEY='SEND_CHANGESET_TIMEOUT',DEFAULT_SEND_CHANGESET_TIMEOUT=0x7d0,COLLAB_WEB_SOCKET_URL_KEY='COLLAB_WEB_SOCKET_URL',DEFAULT_COLLAB_WEB_SOCKET_URL=_0x51f535(0x39c),DEFAULT_WS_SESSION_TICKET_URL='/universer-api/user/session-ticket',HEARTBEAT_INTERVAL_KEY='HEARTBEAT_INTERVAL',DEFAULT_HEARTBEAT_INTERVAL=0x7530,HEARTBEAT_TIMEOUT_KEY=_0x51f535(0x21a),DEFAULT_HEARTBEAT_TIMEOUT=0x4e20,DEFAULT_RETRY_CONNECTING_INTERVAL=0x4e20,RETRY_CONNECTING_MAX_COUNT_KEY=_0x51f535(0x22e),DEFAULT_RETRY_CONNECTING_MAX_COUNT=0x3,LOCAL_CACHE_INTERVAL_KEY=_0x51f535(0x516),LOCAL_CACHE_INTERVAL=0x3e8,COLLAB_SUBMIT_CHANGESET_URL_KEY=_0x51f535(0x3b2),DEFAULT_COLLAB_SUBMIT_CHANGESET_URL=_0x51f535(0x374),LOGIN_URL_KEY=_0x51f535(0x45c),DEFAULT_LOGIN_URL=_0x51f535(0x1d7),REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT=_0x51f535(0x3d3);var ErrorCode=(_0x4129c8=>(_0x4129c8[_0x4129c8[_0x51f535(0x491)]=0x0]=_0x51f535(0x491),_0x4129c8[_0x4129c8['OK']=0x1]='OK',_0x4129c8[_0x4129c8[_0x51f535(0x3c8)]=0x2]=_0x51f535(0x3c8),_0x4129c8[_0x4129c8[_0x51f535(0x20f)]=0x3]=_0x51f535(0x20f),_0x4129c8[_0x4129c8[_0x51f535(0x3d8)]=0x4]=_0x51f535(0x3d8),_0x4129c8[_0x4129c8['UNAUTHENTICATED']=0x5]=_0x51f535(0x375),_0x4129c8[_0x4129c8[_0x51f535(0x4ef)]=0x6]=_0x51f535(0x4ef),_0x4129c8[_0x4129c8[_0x51f535(0x4d3)]=0x7]='INVALID_ARGUMENT',_0x4129c8[_0x4129c8[_0x51f535(0x34f)]=0x8]=_0x51f535(0x34f),_0x4129c8[_0x4129c8[_0x51f535(0x1f2)]=0x9]=_0x51f535(0x1f2),_0x4129c8[_0x4129c8[_0x51f535(0x355)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x4129c8[_0x4129c8[_0x51f535(0x459)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x4129c8[_0x4129c8[_0x51f535(0x450)]=0x1772]=_0x51f535(0x450),_0x4129c8[_0x4129c8[_0x51f535(0x2dc)]=0x1773]=_0x51f535(0x2dc),_0x4129c8[_0x4129c8[_0x51f535(0x397)]=0x1b59]=_0x51f535(0x397),_0x4129c8[_0x4129c8[_0x51f535(0x3f9)]=0x1b5a]=_0x51f535(0x3f9),_0x4129c8[_0x4129c8[_0x51f535(0x470)]=0x1b5b]=_0x51f535(0x470),_0x4129c8[_0x4129c8[_0x51f535(0x478)]=0x1b5c]=_0x51f535(0x478),_0x4129c8[_0x4129c8['APPLY_DUPLICATED']=0x1b5d]=_0x51f535(0x340),_0x4129c8[_0x4129c8[_0x51f535(0x416)]=0x1f41]=_0x51f535(0x416),_0x4129c8[_0x4129c8[_0x51f535(0x1d2)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x4129c8[_0x4129c8[_0x51f535(0x314)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x4129c8[_0x4129c8[_0x51f535(0x4cd)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x4129c8[_0x4129c8[_0x51f535(0x319)]=0x232c]=_0x51f535(0x319),_0x4129c8[_0x4129c8[_0x51f535(0x42b)]=0x232d]=_0x51f535(0x42b),_0x4129c8[_0x4129c8[_0x51f535(0x341)]=0x2711]=_0x51f535(0x341),_0x4129c8[_0x4129c8['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x4129c8[_0x4129c8['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x51f535(0x2ce),_0x4129c8[_0x4129c8[_0x51f535(0x40f)]=0x2714]=_0x51f535(0x40f),_0x4129c8[_0x4129c8['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x51f535(0x3fc),_0x4129c8[_0x4129c8[_0x51f535(0x3cd)]=-0x1]=_0x51f535(0x3cd),_0x4129c8))(ErrorCode||{}),UniverType=(_0x30486f=>(_0x30486f[_0x30486f[_0x51f535(0x1e0)]=0x0]=_0x51f535(0x1e0),_0x30486f[_0x30486f[_0x51f535(0x4ac)]=0x1]='UNIVER_DOC',_0x30486f[_0x30486f[_0x51f535(0x4b7)]=0x2]=_0x51f535(0x4b7),_0x30486f[_0x30486f['UNIVER_SLIDE']=0x3]=_0x51f535(0x303),_0x30486f[_0x30486f['UNIVER_PROJECT']=0x4]=_0x51f535(0x44f),_0x30486f[_0x30486f[_0x51f535(0x3cd)]=-0x1]=_0x51f535(0x3cd),_0x30486f))(UniverType||{}),CombCmd=(_0x462e63=>(_0x462e63[_0x462e63[_0x51f535(0x2c7)]=0x0]=_0x51f535(0x2c7),_0x462e63[_0x462e63[_0x51f535(0x1d5)]=0x1]=_0x51f535(0x1d5),_0x462e63[_0x462e63[_0x51f535(0x494)]=0x2]=_0x51f535(0x494),_0x462e63[_0x462e63[_0x51f535(0x2b9)]=0x3]=_0x51f535(0x2b9),_0x462e63[_0x462e63[_0x51f535(0x522)]=0x4]=_0x51f535(0x522),_0x462e63[_0x462e63[_0x51f535(0x495)]=0x5]=_0x51f535(0x495),_0x462e63[_0x462e63[_0x51f535(0x300)]=0x6]='RECV',_0x462e63[_0x462e63[_0x51f535(0x3cd)]=-0x1]=_0x51f535(0x3cd),_0x462e63))(CombCmd||{}),CmdRspCode=(_0x4a8221=>(_0x4a8221[_0x4a8221[_0x51f535(0x2a4)]=0x0]=_0x51f535(0x2a4),_0x4a8221[_0x4a8221['OK']=0x1]='OK',_0x4a8221[_0x4a8221[_0x51f535(0x41a)]=0x2]=_0x51f535(0x41a),_0x4a8221[_0x4a8221[_0x51f535(0x308)]=0x3e9]=_0x51f535(0x308),_0x4a8221[_0x4a8221[_0x51f535(0x2ac)]=0x3ea]=_0x51f535(0x2ac),_0x4a8221[_0x4a8221[_0x51f535(0x3b0)]=0x3eb]=_0x51f535(0x3b0),_0x4a8221[_0x4a8221[_0x51f535(0x4dc)]=0x3ec]=_0x51f535(0x4dc),_0x4a8221[_0x4a8221[_0x51f535(0x3cd)]=-0x1]=_0x51f535(0x3cd),_0x4a8221))(CmdRspCode||{}),FileSource=(_0x4ca3fc=>(_0x4ca3fc[_0x4ca3fc[_0x51f535(0x203)]=0x0]=_0x51f535(0x203),_0x4ca3fc[_0x4ca3fc[_0x51f535(0x3e5)]=0x1]='HttpImport',_0x4ca3fc[_0x4ca3fc[_0x51f535(0x226)]=0x2]=_0x51f535(0x226),_0x4ca3fc[_0x4ca3fc['UnitEmbedded']=0x3]=_0x51f535(0x3ef),_0x4ca3fc[_0x4ca3fc[_0x51f535(0x1ce)]=0x4]='UnitSnapshot',_0x4ca3fc[_0x4ca3fc[_0x51f535(0x3cd)]=-0x1]=_0x51f535(0x3cd),_0x4ca3fc))(FileSource||{});const COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY=_0x51f535(0x38a),defaultPluginConfig={};var CollaborationUIEventId=(_0x2c62=>(_0x2c62[_0x51f535(0x50b)]='OTHER_CLIENT_EDITING',_0x2c62[_0x51f535(0x20f)]=_0x51f535(0x20f),_0x2c62[_0x51f535(0x458)]=_0x51f535(0x458),_0x2c62[_0x51f535(0x2f5)]='CLOSE_ROOM',_0x2c62[_0x51f535(0x3f8)]='JOIN_ROOM_FAILED',_0x2c62[_0x51f535(0x1d9)]=_0x51f535(0x1d9),_0x2c62[_0x51f535(0x4f6)]='SOCKET_FAILED',_0x2c62[_0x51f535(0x29f)]=_0x51f535(0x29f),_0x2c62))(CollaborationUIEventId||{});const _CollaborationUIEventService=class _CollaborationUIEventService{constructor(){var _0x2a3130=_0x51f535;__publicField(this,_0x2a3130(0x327),new Subject()),__publicField(this,_0x2a3130(0x452),this[_0x2a3130(0x327)][_0x2a3130(0x38b)]());}[_0x51f535(0x209)](_0x3deb07){var _0x2f0d47=_0x51f535;this['_event$'][_0x2f0d47(0x24d)](_0x3deb07);}};__name(_CollaborationUIEventService,'CollaborationUIEventService');let CollaborationUIEventService=_CollaborationUIEventService;const INetworkConditionService=createIdentifier(_0x51f535(0x245));function deserializeToCombResponse(_0x2cd67d){var _0x6815bb=_0x51f535,_0x1f918f,_0x436842,_0x2c54e8,_0x44eed8,_0x4611a1;const _0x7b2a=_0x2cd67d['data'],_0x13baf4=JSON[_0x6815bb(0x2a9)](_0x7b2a);switch(_0x13baf4[_0x6815bb(0x2a3)]){case CombCmd[_0x6815bb(0x495)]:case CombCmd[_0x6815bb(0x1d5)]:{const _0xd47257=_0x13baf4[_0x6815bb(0x2bc)];return{..._0x13baf4,'data':_0xd47257,'cmd':_0x13baf4[_0x6815bb(0x2a3)]};}case CombCmd[_0x6815bb(0x494)]:{const _0x3cf8bc=_0x13baf4[_0x6815bb(0x489)];return{..._0x13baf4,'data':_0x3cf8bc,'cmd':_0x13baf4['cmd']};}case CombCmd[_0x6815bb(0x300)]:{const _0x214196=_0x13baf4[_0x6815bb(0x22b)];switch(_0x214196[_0x6815bb(0x50e)]){case CollaborationEvent[_0x6815bb(0x228)]:return{..._0x13baf4,'data':{..._0x214196,'data':(_0x1f918f=_0x214196[_0x6815bb(0x446)])==null?void 0x0:_0x1f918f['cs']},'cmd':_0x13baf4[_0x6815bb(0x2a3)]};case CollaborationEvent['CHANGESET_ACK']:return{..._0x13baf4,'data':{..._0x214196,'data':(_0x436842=_0x214196[_0x6815bb(0x28f)])==null?void 0x0:_0x436842['cs']},'cmd':_0x13baf4[_0x6815bb(0x2a3)]};case CollaborationEvent['NEW_CHANGESETS']:return{..._0x13baf4,'data':{..._0x214196,'data':(_0x2c54e8=_0x214196[_0x6815bb(0x4a4)])==null?void 0x0:_0x2c54e8['cs']},'cmd':_0x13baf4[_0x6815bb(0x2a3)]};case CollaborationEvent[_0x6815bb(0x33b)]:return{..._0x13baf4,'data':{..._0x214196,'data':(_0x44eed8=_0x214196[_0x6815bb(0x2e5)])==null?void 0x0:_0x44eed8['cs']},'cmd':_0x13baf4['cmd']};case CollaborationEvent['CHANGESET_SHOULD_RETRY']:return{..._0x13baf4,'data':{..._0x214196,'data':(_0x4611a1=_0x214196[_0x6815bb(0x238)])==null?void 0x0:_0x4611a1['cs']},'cmd':_0x13baf4[_0x6815bb(0x2a3)]};case CollaborationEvent[_0x6815bb(0x2be)]:return{..._0x13baf4,'data':{..._0x214196,'data':_0x214196[_0x6815bb(0x293)]},'cmd':_0x13baf4['cmd']};case CollaborationEvent[_0x6815bb(0x325)]:return{..._0x13baf4,'data':{..._0x214196,'data':_0x214196['joinEvent']},'cmd':_0x13baf4['cmd']};case CollaborationEvent[_0x6815bb(0x4e2)]:return{..._0x13baf4,'data':{..._0x214196,'data':_0x214196[_0x6815bb(0x2e9)]},'cmd':_0x13baf4[_0x6815bb(0x2a3)]};case CollaborationEvent[_0x6815bb(0x498)]:return{..._0x13baf4,'data':{..._0x214196,'data':_0x214196[_0x6815bb(0x34a)]},'cmd':_0x13baf4['cmd']};case CollaborationEvent[_0x6815bb(0x3dd)]:case CollaborationEvent[_0x6815bb(0x42c)]:return{..._0x13baf4,'data':{..._0x214196,'data':_0x214196[_0x6815bb(0x4e3)]},'cmd':_0x13baf4[_0x6815bb(0x2a3)]};case CollaborationEvent['LIVESHARE_TERMINATE']:return{..._0x13baf4,'data':{..._0x214196,'data':_0x214196[_0x6815bb(0x34a)]},'cmd':_0x13baf4[_0x6815bb(0x2a3)]};case CollaborationEvent[_0x6815bb(0x440)]:return{..._0x13baf4,'data':_0x214196,'cmd':_0x13baf4[_0x6815bb(0x2a3)]};case CollaborationEvent[_0x6815bb(0x4ab)]:return{..._0x13baf4,'data':{..._0x214196,'data':_0x214196[_0x6815bb(0x348)]},'cmd':_0x13baf4['cmd']};case CollaborationEvent[_0x6815bb(0x399)]:return{..._0x13baf4,'data':{..._0x214196,'data':_0x214196[_0x6815bb(0x25a)]},'cmd':_0x13baf4[_0x6815bb(0x2a3)]};case CollaborationEvent[_0x6815bb(0x353)]:return{..._0x13baf4,'data':{..._0x214196,'data':_0x214196[_0x6815bb(0x493)]},'cmd':_0x13baf4[_0x6815bb(0x2a3)]};case CollaborationEvent['UNISCRIPT_RUN']:return{..._0x13baf4,'data':{..._0x214196,'data':_0x214196[_0x6815bb(0x359)]},'cmd':_0x13baf4[_0x6815bb(0x2a3)]};default:return _0x13baf4;}}default:return _0x13baf4;}}__name(deserializeToCombResponse,_0x51f535(0x3c3));function serializeCombRequest(_0x6cd826){var _0x5f723f=_0x51f535;switch(_0x6cd826[_0x5f723f(0x2a3)]){case CombCmd['HEARTBEAT']:case CombCmd[_0x5f723f(0x1d5)]:return JSON[_0x5f723f(0x36e)]({'cmd':_0x6cd826[_0x5f723f(0x2a3)],'routeKey':_0x6cd826[_0x5f723f(0x24a)]});case CombCmd[_0x5f723f(0x522)]:{let _0x574734;switch(_0x6cd826[_0x5f723f(0x432)][_0x5f723f(0x50e)]){case CollaborationEvent[_0x5f723f(0x2be)]:{_0x574734={'eventID':CollaborationEvent[_0x5f723f(0x2be)],'updateCursorEvent':_0x6cd826[_0x5f723f(0x432)][_0x5f723f(0x432)]};break;}case CollaborationEvent[_0x5f723f(0x4e2)]:{_0x574734={'eventID':CollaborationEvent[_0x5f723f(0x4e2)],'leaveEvent':_0x6cd826['data'][_0x5f723f(0x432)]};break;}case CollaborationEvent[_0x5f723f(0x325)]:{_0x574734={'eventID':CollaborationEvent['USERS_ENTER'],'joinEvent':_0x6cd826[_0x5f723f(0x432)][_0x5f723f(0x432)]};break;}case CollaborationEvent[_0x5f723f(0x498)]:{_0x574734={'eventID':CollaborationEvent[_0x5f723f(0x498)],'liveShareNewHost':_0x6cd826['data'][_0x5f723f(0x432)]};break;}case CollaborationEvent[_0x5f723f(0x42c)]:{_0x574734={'eventID':CollaborationEvent[_0x5f723f(0x42c)],'liveShareOperation':_0x6cd826[_0x5f723f(0x432)][_0x5f723f(0x432)]};break;}case CollaborationEvent['LIVESHARE_TERMINATE']:{_0x574734={'eventID':CollaborationEvent[_0x5f723f(0x42e)],'liveShareTerminate':_0x6cd826[_0x5f723f(0x432)]['data']};break;}case CollaborationEvent[_0x5f723f(0x267)]:{_0x574734={'eventID':CollaborationEvent[_0x5f723f(0x267)],'liveShareRequestHost':_0x6cd826[_0x5f723f(0x432)][_0x5f723f(0x432)]};break;}case CollaborationEvent['LIVESHARE_FETCH_OPERATIONS']:{_0x574734={'eventID':CollaborationEvent[_0x5f723f(0x3dd)]};break;}default:_0x574734={'eventID':_0x6cd826[_0x5f723f(0x432)][_0x5f723f(0x50e)]};}return JSON[_0x5f723f(0x36e)]({'cmd':_0x6cd826[_0x5f723f(0x2a3)],'routeKey':_0x6cd826[_0x5f723f(0x24a)],'collaMsg':_0x574734});}case CombCmd[_0x5f723f(0x494)]:return JSON[_0x5f723f(0x36e)]({'cmd':_0x6cd826['cmd'],'routeKey':_0x6cd826[_0x5f723f(0x24a)],'joinReq':_0x6cd826[_0x5f723f(0x432)]});case CombCmd[_0x5f723f(0x2b9)]:return JSON[_0x5f723f(0x36e)]({'cmd':_0x6cd826['cmd'],'routeKey':_0x6cd826['routeKey'],'leaveReq':_0x6cd826[_0x5f723f(0x432)]});default:throw new Error(_0x5f723f(0x4eb));}}__name(serializeCombRequest,'serializeCombRequest');var __defProp$i=Object[_0x51f535(0x2c3)],__getOwnPropDesc$i=Object[_0x51f535(0x32f)],__decorateClass$i=__name((_0x1cde41,_0x247e07,_0x16fd4f,_0x293763)=>{var _0x1e972a=_0x51f535;for(var _0x1e08ca=_0x293763>0x1?void 0x0:_0x293763?__getOwnPropDesc$i(_0x247e07,_0x16fd4f):_0x247e07,_0x57fb0a=_0x1cde41[_0x1e972a(0x1d3)]-0x1,_0x3f47e1;_0x57fb0a>=0x0;_0x57fb0a--)(_0x3f47e1=_0x1cde41[_0x57fb0a])&&(_0x1e08ca=(_0x293763?_0x3f47e1(_0x247e07,_0x16fd4f,_0x1e08ca):_0x3f47e1(_0x1e08ca))||_0x1e08ca);return _0x293763&&_0x1e08ca&&__defProp$i(_0x247e07,_0x16fd4f,_0x1e08ca),_0x1e08ca;},'__decorateClass$i'),__decorateParam$i=__name((_0x41b5f8,_0x281426)=>(_0x4fea83,_0xf077d3)=>_0x281426(_0x4fea83,_0xf077d3,_0x41b5f8),_0x51f535(0x503));const ICollaborationSocketService=createIdentifier(_0x51f535(0x243));function generateSubmitChangesPath(_0x5b084c,_0xf61b2e,_0x34a58a){var _0x4c234a=_0x51f535;return _0x5b084c+'/'+_0xf61b2e+'/unit/'+_0x34a58a+_0x4c234a(0x247);}__name(generateSubmitChangesPath,_0x51f535(0x307));var _a;let CollaborationSocketService=(_a=class extends Disposable{constructor(_0x286004,_0x280918,_0x1ec268,_0x55d30c,_0x4d7d01){var _0x4b68e2=_0x51f535;super(),this['_injector']=_0x286004,this['_http']=_0x280918,this['_configService']=_0x1ec268,this['_logService']=_0x55d30c,this[_0x4b68e2(0x2b2)]=_0x4d7d01;}[_0x51f535(0x51f)](_0x812eb9){var _0xdc664c=_0x51f535;const _0x386200=this[_0xdc664c(0x45a)]['get'](ISocketService);if(!_0x386200)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');const _0x4b3dcc=_0x386200[_0xdc664c(0x51f)](_0x812eb9);if(!_0x4b3dcc)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x150169=new DisposableCollection(),_0x265094=new Subject();_0x150169['add'](_0x4b3dcc[_0xdc664c(0x349)][_0xdc664c(0x4d5)](_0x43fb4d=>_0x265094['next'](_0x43fb4d))),_0x150169[_0xdc664c(0x457)](toDisposable(()=>_0x265094[_0xdc664c(0x4ad)]()));const _0x5a0575=new Subject();_0x150169[_0xdc664c(0x457)](_0x4b3dcc[_0xdc664c(0x2c5)][_0xdc664c(0x4d5)](_0x2cfa8b=>_0x5a0575[_0xdc664c(0x24d)](_0x2cfa8b))),_0x150169[_0xdc664c(0x457)](toDisposable(()=>_0x5a0575['complete']()));const _0x47e265=new Subject();_0x150169[_0xdc664c(0x457)](_0x4b3dcc[_0xdc664c(0x301)][_0xdc664c(0x4d5)](_0x59304d=>{var _0x1fda2a=_0xdc664c;const _0x2b97b6=deserializeToCombResponse(_0x59304d);_0x47e265[_0x1fda2a(0x24d)](_0x2b97b6);})),_0x150169['add'](toDisposable(()=>_0x47e265[_0xdc664c(0x4ad)]()));let _0x269dbe;const _0x44e7ea=__name(()=>{var _0x50d9ae=_0xdc664c;_0x5a0575[_0x50d9ae(0x24d)](new Event(_0x50d9ae(0x356))),_0x265094['next'](new CloseEvent(_0x50d9ae(0x356))),_0x269dbe['close']();},'terminateWithError');return _0x269dbe={'memberID':'','close$':_0x265094[_0xdc664c(0x38b)](),'error$':_0x5a0575['asObservable'](),'open$':_0x4b3dcc['open$'],'message$':_0x47e265[_0xdc664c(0x38b)](),'send':__name(_0x4ed8d7=>{var _0x2988d1=_0xdc664c;if(_0x4ed8d7[_0x2988d1(0x2a3)]===CombCmd[_0x2988d1(0x522)]){if(_0x4ed8d7[_0x2988d1(0x432)][_0x2988d1(0x50e)]===CollaborationEvent['SUBMIT_CHANGESET']){this[_0x2988d1(0x48b)](_0x269dbe,_0x4ed8d7['data'])[_0x2988d1(0x2c6)](_0xe097c4=>{var _0x4851c6=_0x2988d1;this[_0x4851c6(0x3c9)][_0x4851c6(0x269)](_0xe097c4),_0x44e7ea();});return;}if(_0x4ed8d7['data'][_0x2988d1(0x50e)]===CollaborationEvent[_0x2988d1(0x4f9)]){const _0x24f2e9=_0x4ed8d7[_0x2988d1(0x432)];this[_0x2988d1(0x229)](_0x24f2e9)[_0x2988d1(0x302)](_0x570757=>{var _0x42840e=_0x2988d1;_0x47e265[_0x42840e(0x24d)]({'cmd':CombCmd[_0x42840e(0x300)],'code':CmdRspCode['OK'],'routeKey':_0x24f2e9[_0x42840e(0x432)][_0x42840e(0x1d6)],'routeType':'','data':{'eventID':CollaborationEvent[_0x42840e(0x404)],'data':{'changesets':_0x570757}}});})['catch'](_0x3eed99=>{var _0x9fc455=_0x2988d1;this[_0x9fc455(0x3c9)][_0x9fc455(0x269)](_0x3eed99),_0x44e7ea();});return;}}_0x4b3dcc['send'](serializeCombRequest(_0x4ed8d7));},_0xdc664c(0x2b6)),'close':__name(()=>{var _0x336fc8=_0xdc664c;_0x4b3dcc[_0x336fc8(0x47b)](),_0x150169[_0x336fc8(0x4b0)]();},_0xdc664c(0x47b))},_0x269dbe;}async[_0x51f535(0x48b)](_0xbde889,_0x3a0ed5){var _0x4ad64b=_0x51f535,_0x7c824,_0x73e8a4;const {unitType:_0x11a191,unitID:_0x2843f4,changeset:_0x47bbdc}=_0x3a0ed5[_0x4ad64b(0x432)],_0x39e2f7={'unitID':_0x2843f4,'memberID':_0xbde889[_0x4ad64b(0x206)],'type':_0x11a191,'changeset':parseChangesetToProtocol(_0x47bbdc)},_0x24af8b=this['_configService'][_0x4ad64b(0x310)](COLLAB_SUBMIT_CHANGESET_URL_KEY),_0x41a688=this['_configService'][_0x4ad64b(0x310)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x20f487=generateSubmitChangesPath((_0x73e8a4=(_0x7c824=_0x41a688==null?void 0x0:_0x41a688[_0x4ad64b(0x473)])!=null?_0x7c824:_0x24af8b)!=null?_0x73e8a4:DEFAULT_COLLAB_SUBMIT_CHANGESET_URL,_0x11a191,_0x2843f4);try{await this[_0x4ad64b(0x33c)][_0x4ad64b(0x4d8)](_0x20f487,{'body':_0x39e2f7});}catch(_0x50a010){throw this['_logService'][_0x4ad64b(0x269)]('[CollaborationSession]',_0x4ad64b(0x2a6)),_0x50a010;}}async[_0x51f535(0x229)](_0x383b4e){var _0x5186fc=_0x51f535;const {unitID:_0x40afec,from:_0xe02339,to:_0x41ab08,unitType:_0x2b4a61}=_0x383b4e[_0x5186fc(0x432)];return(await this[_0x5186fc(0x2b2)][_0x5186fc(0x3b1)]({'metadata':void 0x0},{'unitID':_0x40afec,'type':_0x2b4a61,'from':_0xe02339,'to':_0x41ab08}))[_0x5186fc(0x441)];}},__name(_a,_0x51f535(0x231)),_a);CollaborationSocketService=__decorateClass$i([__decorateParam$i(0x0,Inject(Injector)),__decorateParam$i(0x1,Inject(HTTPService)),__decorateParam$i(0x2,IConfigService),__decorateParam$i(0x3,ILogService),__decorateParam$i(0x4,ISnapshotServerService)],CollaborationSocketService);const TELEMETRY_COLLABORATION_NEW_CHANGESET=_0x51f535(0x44b);function summaryChangesetSize(_0x1b9e01){var _0x565b1f=_0x51f535;return JSON[_0x565b1f(0x36e)](_0x1b9e01)['length'];}__name(summaryChangesetSize,'summaryChangesetSize');const _CommentService=class _CommentService{constructor(){var _0x42f69d=_0x51f535;__publicField(this,_0x42f69d(0x233),new Subject()),__publicField(this,'commentUpdate$',this['_commentUpdate$'][_0x42f69d(0x38b)]());}[_0x51f535(0x1ee)](_0x15ea00){var _0x3c276e=_0x51f535;this['_commentUpdate$'][_0x3c276e(0x24d)](_0x15ea00);}};__name(_CommentService,_0x51f535(0x274));let CommentService=_CommentService;var __defProp$h=Object[_0x51f535(0x2c3)],__getOwnPropDesc$h=Object[_0x51f535(0x32f)],__decorateClass$h=__name((_0x385a62,_0x41d6d5,_0x3a527a,_0x4b2c8f)=>{var _0x4b6abc=_0x51f535;for(var _0x2f0bb9=_0x4b2c8f>0x1?void 0x0:_0x4b2c8f?__getOwnPropDesc$h(_0x41d6d5,_0x3a527a):_0x41d6d5,_0x2e27f8=_0x385a62[_0x4b6abc(0x1d3)]-0x1,_0x4944b0;_0x2e27f8>=0x0;_0x2e27f8--)(_0x4944b0=_0x385a62[_0x2e27f8])&&(_0x2f0bb9=(_0x4b2c8f?_0x4944b0(_0x41d6d5,_0x3a527a,_0x2f0bb9):_0x4944b0(_0x2f0bb9))||_0x2f0bb9);return _0x4b2c8f&&_0x2f0bb9&&__defProp$h(_0x41d6d5,_0x3a527a,_0x2f0bb9),_0x2f0bb9;},_0x51f535(0x26f)),__decorateParam$h=__name((_0x3aaa22,_0xd17787)=>(_0x59726b,_0x1d066b)=>_0xd17787(_0x59726b,_0x1d066b,_0x3aaa22),'__decorateParam$h'),_a2;let MemberService=(_a2=class extends Disposable{constructor(_0x5e83ff,_0x549201){var _0x4a385b=_0x51f535;super(),__publicField(this,_0x4a385b(0x49d),new Map()),__publicField(this,_0x4a385b(0x254),new Subject()),(this[_0x4a385b(0x20b)]=_0x5e83ff,this[_0x4a385b(0x298)]=_0x549201,this[_0x4a385b(0x1fe)](merge(this['_univerInstanceService']['getTypeOfUnitDisposed$'](UniverInstanceType[_0x4a385b(0x4b7)])[_0x4a385b(0x283)](map(_0x19e7d1=>_0x19e7d1['getUnitId']())),this['_univerInstanceService'][_0x4a385b(0x376)](UniverInstanceType[_0x4a385b(0x4ac)])['pipe'](map(_0x4437f8=>_0x4437f8[_0x4a385b(0x2b1)]())),this[_0x4a385b(0x20b)]['getTypeOfUnitDisposed$'](UniverInstanceType['UNIVER_SLIDE'])[_0x4a385b(0x283)](map(_0x2cba92=>_0x2cba92['getUnitId']())))['subscribe'](_0x51a75d=>this['_removeRoom'](_0x51a75d))));}[_0x51f535(0x33f)](_0x3b7306){var _0x51a008=_0x51f535;return this[_0x51a008(0x49d)][_0x51a008(0x4af)](_0x3b7306)?of(this[_0x51a008(0x49d)][_0x51a008(0x40e)](_0x3b7306)):this[_0x51a008(0x254)][_0x51a008(0x283)](map(_0x1146a5=>{var _0x54d182=_0x51a008;if(_0x1146a5===_0x3b7306)return this['_roomMembers'][_0x54d182(0x40e)](_0x1146a5);}));}['setCurrentUser'](_0x38f337){var _0xbcef16=_0x51f535;this[_0xbcef16(0x298)][_0xbcef16(0x4bb)](_0x38f337);}[_0x51f535(0x3ba)](){var _0x5b8742=_0x51f535;return this[_0x5b8742(0x298)][_0x5b8742(0x3ba)]();}['updateMember'](_0x47008c,_0xff25a5){var _0x48c2bc=_0x51f535;let _0x195cc3=this[_0x48c2bc(0x49d)][_0x48c2bc(0x40e)](_0x47008c);_0x195cc3||(_0x195cc3=new RoomMember(),this[_0x48c2bc(0x49d)][_0x48c2bc(0x202)](_0x47008c,_0x195cc3),this[_0x48c2bc(0x254)]['next'](_0x47008c)),_0x195cc3['updateMember'](_0xff25a5);}[_0x51f535(0x337)](_0x5c36ab,_0x2e83cd){var _0x5cbe15=_0x51f535;const _0x298769=this[_0x5cbe15(0x49d)][_0x5cbe15(0x40e)](_0x5c36ab);_0x298769&&_0x298769[_0x5cbe15(0x337)](_0x2e83cd);}[_0x51f535(0x47e)](_0x18ff22){var _0x513db9=_0x51f535;return this[_0x513db9(0x49d)][_0x513db9(0x40e)](_0x18ff22);}[_0x51f535(0x4d1)](_0x5180c7,_0x42e0c8){var _0x4fe4d4=_0x51f535;const _0x43eced=this[_0x4fe4d4(0x49d)][_0x4fe4d4(0x40e)](_0x5180c7);if(_0x43eced)return _0x43eced[_0x4fe4d4(0x4d1)](_0x42e0c8);}['_removeRoom'](_0x336ef0){var _0x730599=_0x51f535;const _0x2d9335=this[_0x730599(0x49d)][_0x730599(0x40e)](_0x336ef0);_0x2d9335&&(_0x2d9335[_0x730599(0x4b0)](),this[_0x730599(0x49d)]['delete'](_0x336ef0));}[_0x51f535(0x4b0)](){var _0x241fd5=_0x51f535;this[_0x241fd5(0x49d)][_0x241fd5(0x41c)](_0x3801e6=>_0x3801e6[_0x241fd5(0x4b0)]()),this[_0x241fd5(0x49d)][_0x241fd5(0x2d8)](),this[_0x241fd5(0x254)][_0x241fd5(0x4ad)]();}},__name(_a2,_0x51f535(0x1ed)),_a2);MemberService=__decorateClass$h([__decorateParam$h(0x0,IUniverInstanceService),__decorateParam$h(0x1,Inject(UserManagerService))],MemberService);const _RoomMember=class _RoomMember extends Disposable{constructor(){var _0x1e40d4=_0x51f535;super(...arguments),__publicField(this,_0x1e40d4(0x4ec),new Map()),__publicField(this,'_members$',new BehaviorSubject(this['_members'])),__publicField(this,_0x1e40d4(0x234),this[_0x1e40d4(0x3e4)]['asObservable']());}['dispose'](){var _0x2ef5a6=_0x51f535;this[_0x2ef5a6(0x4ec)][_0x2ef5a6(0x2d8)]();}[_0x51f535(0x3ec)](_0x2b3b7f){var _0x2acb67=_0x51f535;this[_0x2acb67(0x4ec)][_0x2acb67(0x202)](_0x2b3b7f[_0x2acb67(0x206)],_0x2b3b7f),this[_0x2acb67(0x1d4)]();}[_0x51f535(0x337)](_0x49a0be){var _0x5bfd3a=_0x51f535;this['_members'][_0x5bfd3a(0x4b6)](_0x49a0be);}[_0x51f535(0x4d1)](_0x3f0094){var _0x42cf2d=_0x51f535;return this['_members'][_0x42cf2d(0x40e)](_0x3f0094);}[_0x51f535(0x2d5)](){var _0x16836a=_0x51f535;return Array['from'](this[_0x16836a(0x4ec)]['values']());}[_0x51f535(0x1d4)](){var _0x1beba1=_0x51f535;this[_0x1beba1(0x3e4)][_0x1beba1(0x24d)](this[_0x1beba1(0x4ec)]);}};__name(_RoomMember,_0x51f535(0x3a7));let RoomMember=_RoomMember;var __defProp$g=Object['defineProperty'],__getOwnPropDesc$g=Object[_0x51f535(0x32f)],__decorateClass$g=__name((_0x2d3a85,_0x5b1be7,_0x1a0025,_0xd3cf5)=>{var _0x100ec8=_0x51f535;for(var _0x25a42e=_0xd3cf5>0x1?void 0x0:_0xd3cf5?__getOwnPropDesc$g(_0x5b1be7,_0x1a0025):_0x5b1be7,_0x1f4bfe=_0x2d3a85[_0x100ec8(0x1d3)]-0x1,_0x3dc923;_0x1f4bfe>=0x0;_0x1f4bfe--)(_0x3dc923=_0x2d3a85[_0x1f4bfe])&&(_0x25a42e=(_0xd3cf5?_0x3dc923(_0x5b1be7,_0x1a0025,_0x25a42e):_0x3dc923(_0x25a42e))||_0x25a42e);return _0xd3cf5&&_0x25a42e&&__defProp$g(_0x5b1be7,_0x1a0025,_0x25a42e),_0x25a42e;},_0x51f535(0x22a)),__decorateParam$g=__name((_0xae03e6,_0x5a393f)=>(_0x4f965f,_0x1d21b2)=>_0x5a393f(_0x4f965f,_0x1d21b2,_0xae03e6),_0x51f535(0x2ff)),SessionStatus=(_0x3770e7=>(_0x3770e7[_0x3770e7[_0x51f535(0x361)]=0x0]='IDLE',_0x3770e7[_0x3770e7[_0x51f535(0x39f)]=0x1]=_0x51f535(0x39f),_0x3770e7[_0x3770e7[_0x51f535(0x215)]=0x2]=_0x51f535(0x215),_0x3770e7[_0x3770e7[_0x51f535(0x32a)]=0x3]='ONLINE',_0x3770e7))(SessionStatus||{});const FailedReason={[CmdRspCode['FAIL']]:_0x51f535(0x500),[CmdRspCode[_0x51f535(0x308)]]:_0x51f535(0x360),[CmdRspCode[_0x51f535(0x2ac)]]:_0x51f535(0x276),[CmdRspCode[_0x51f535(0x3b0)]]:_0x51f535(0x4b9),[CmdRspCode[_0x51f535(0x4dc)]]:'session.room-cnt-exceeds'};var _a3;let CollaborationSession=(_a3=class extends RxDisposable{constructor(_0x13c573,_0x292795,_0x3ca5c8,_0x1e3216,_0x292dae,_0xd759e,_0xae6130,_0x22d079,_0x374cd9){var _0xc995c1=_0x51f535;super(),__publicField(this,_0xc995c1(0x365),new BehaviorSubject(0x0)),__publicField(this,_0xc995c1(0x1fd),this[_0xc995c1(0x365)][_0xc995c1(0x38b)]()),__publicField(this,_0xc995c1(0x327),new Subject()),__publicField(this,'event$',this[_0xc995c1(0x327)][_0xc995c1(0x38b)]()),__publicField(this,'_socket'),__publicField(this,_0xc995c1(0x43d)),__publicField(this,_0xc995c1(0x1de)),__publicField(this,_0xc995c1(0x256),!0x1),__publicField(this,_0xc995c1(0x37b),null),(this[_0xc995c1(0x1e5)]=_0x13c573,this[_0xc995c1(0x3c9)]=_0x3ca5c8,this[_0xc995c1(0x393)]=_0x1e3216,this[_0xc995c1(0x438)]=_0x292dae,this[_0xc995c1(0x4cf)]=_0xd759e,this[_0xc995c1(0x2a7)]=_0xae6130,this['_collaborationUIEventService']=_0x22d079,this[_0xc995c1(0x4c8)]=_0x374cd9,this[_0xc995c1(0x256)]=!!this['_telemetryService'],_0x292795[_0xc995c1(0x283)](takeUntil(this['dispose$']))[_0xc995c1(0x4d5)](_0x1af019=>{var _0x38eb26=_0xc995c1,_0x3cf4c4;typeof _0x1af019>'u'||(this[_0x38eb26(0x33a)]=_0x1af019,_0x1af019?(this[_0x38eb26(0x420)](_0x1af019),this[_0x38eb26(0x43d)]=_0x1af019[_0x38eb26(0x301)][_0x38eb26(0x4d5)](_0x1188b4=>{var _0x302a45=_0x38eb26;_0x1188b4['routeKey']===this['_unitID']&&this[_0x302a45(0x275)](_0x1188b4);})):(this[_0x38eb26(0x410)](),this[_0x38eb26(0x365)][_0x38eb26(0x24d)](0x2),(_0x3cf4c4=this[_0x38eb26(0x43d)])==null||_0x3cf4c4[_0x38eb26(0x3a6)](),this['_socketMessageSubscription']=null));}));}get['sessionStatus'](){var _0x117486=_0x51f535;return this[_0x117486(0x365)][_0x117486(0x263)]();}[_0x51f535(0x443)](){var _0x1c51a3=_0x51f535,_0x3e8023,_0x4362cb;return(_0x4362cb=(_0x3e8023=this[_0x1c51a3(0x33a)])==null?void 0x0:_0x3e8023['memberID'])!=null?_0x4362cb:null;}['dispose'](){var _0x5d8925=_0x51f535;super[_0x5d8925(0x4b0)](),this[_0x5d8925(0x23d)][_0x5d8925(0x24d)](),this[_0x5d8925(0x23d)][_0x5d8925(0x4ad)]();}[_0x51f535(0x47b)](){var _0x4f138a=_0x51f535,_0x23f62a,_0x50448a;this[_0x4f138a(0x410)](),(_0x23f62a=this[_0x4f138a(0x33a)])==null||_0x23f62a[_0x4f138a(0x2b6)]({'cmd':CombCmd['LEAVE'],'data':{'roomID':this[_0x4f138a(0x1e5)]}}),(_0x50448a=this[_0x4f138a(0x33a)])==null||_0x50448a['close'](),this['_event$']['complete'](),this[_0x4f138a(0x365)][_0x4f138a(0x4ad)](),this[_0x4f138a(0x4b0)]();}[_0x51f535(0x275)](_0x3fbfc7){var _0x1ce0a4=_0x51f535;_0x3fbfc7[_0x1ce0a4(0x2a3)]===CombCmd[_0x1ce0a4(0x494)]?this[_0x1ce0a4(0x4e4)](_0x3fbfc7):_0x3fbfc7[_0x1ce0a4(0x2a3)]===CombCmd['RECV']&&this['_onRecvEvent'](_0x3fbfc7);}[_0x51f535(0x420)](_0x1c3cdf){var _0xe4d96b=_0x51f535;this['_sessionStatus$']['next'](0x1),_0x1c3cdf['send']({'cmd':CombCmd[_0xe4d96b(0x494)],'routeKey':this[_0xe4d96b(0x1e5)],'routeType':'','data':{'rooms':[{'roomID':this[_0xe4d96b(0x1e5)]}]}});}[_0x51f535(0x4e4)](_0x369aac){var _0x52587d=_0x51f535,_0x1a193f;if(_0x369aac[_0x52587d(0x437)]in FailedReason){this[_0x52587d(0x36f)][_0x52587d(0x209)]({'id':CollaborationUIEventId['JOIN_ROOM_FAILED'],'data':FailedReason[_0x369aac[_0x52587d(0x437)]]}),this[_0x52587d(0x365)]['next'](0x2);return;}this[_0x52587d(0x365)][_0x52587d(0x24d)](0x3);const _0x4cde17=(_0x1a193f=_0x369aac['data']['roomInfos'][this['_unitID']])==null?void 0x0:_0x1a193f[_0x52587d(0x461)];_0x4cde17&&_0x4cde17[_0x52587d(0x41c)](_0x103d8f=>this[_0x52587d(0x4cf)][_0x52587d(0x3ec)](this['_unitID'],_0x103d8f));}[_0x51f535(0x485)](_0x90be38){var _0x470cda=_0x51f535;try{const _0x2692aa=_0x90be38[_0x470cda(0x432)];switch(_0x2692aa['eventID']){case CollaborationEvent[_0x470cda(0x325)]:this[_0x470cda(0x30a)](_0x2692aa),this[_0x470cda(0x327)][_0x470cda(0x24d)](_0x2692aa);break;case CollaborationEvent[_0x470cda(0x4e2)]:this[_0x470cda(0x380)](_0x2692aa),this[_0x470cda(0x327)][_0x470cda(0x24d)](_0x2692aa);break;case CollaborationEvent[_0x470cda(0x3df)]:case CollaborationEvent['CHANGESET_SHOULD_RETRY']:this[_0x470cda(0x4a7)](),this[_0x470cda(0x28b)](),this['_event$'][_0x470cda(0x24d)](_0x2692aa);break;case CollaborationEvent[_0x470cda(0x440)]:this[_0x470cda(0x3c9)][_0x470cda(0x269)](_0x470cda(0x3ca)+JSON[_0x470cda(0x36e)](_0x2692aa)),this[_0x470cda(0x327)]['next'](_0x2692aa);break;case CollaborationEvent['COMMENT_UPDATE']:this[_0x470cda(0x2a7)][_0x470cda(0x1ee)](_0x2692aa[_0x470cda(0x432)]),this[_0x470cda(0x327)][_0x470cda(0x24d)](_0x2692aa);break;default:this[_0x470cda(0x327)][_0x470cda(0x24d)](_0x2692aa);}}catch(_0x2843a8){this[_0x470cda(0x3c9)][_0x470cda(0x269)](_0x2843a8,_0x90be38);}}['_onUserJoin'](_0x3a0ee5){var _0x22b27b=_0x51f535;this[_0x22b27b(0x4cf)]['updateMember'](this[_0x22b27b(0x1e5)],_0x3a0ee5[_0x22b27b(0x432)]);}['_onUserLeave'](_0x3729f5){var _0x16298d=_0x51f535;this[_0x16298d(0x4cf)][_0x16298d(0x337)](this[_0x16298d(0x1e5)],_0x3729f5[_0x16298d(0x432)]['memberID']);}async[_0x51f535(0x2b6)](_0x595bc0,_0x478947){var _0x18a518=_0x51f535;if(this[_0x18a518(0x2e7)]!==0x3||!this['_socket'])throw new Error(_0x18a518(0x3f7));try{_0x595bc0[_0x18a518(0x50e)]===CollaborationEvent[_0x18a518(0x43c)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x18a518(0x427)](_0x595bc0)),this[_0x18a518(0x33a)][_0x18a518(0x2b6)]({'cmd':CombCmd[_0x18a518(0x522)],'routeKey':_0x478947,'routeType':'','data':_0x595bc0});}catch(_0xfd47dd){this[_0x18a518(0x3c9)][_0x18a518(0x269)](_0xfd47dd);}}[_0x51f535(0x49c)](){var _0x484832=_0x51f535,_0x2f3cb7;this['_collaborationTimeoutTimer']=setTimeout(()=>{var _0x3bef9f=_0x46c5;this[_0x3bef9f(0x1de)]=null,this[_0x3bef9f(0x36f)][_0x3bef9f(0x209)]({'id':CollaborationUIEventId['SUBMIT_CHANGESET_TIMEOUT']});},(_0x2f3cb7=this['_configService'][_0x484832(0x310)](HEARTBEAT_TIMEOUT_KEY))!=null?_0x2f3cb7:DEFAULT_HEARTBEAT_TIMEOUT);}['_clearCollaborationTimeoutTimer'](){var _0x299788=_0x51f535;this[_0x299788(0x1de)]&&(clearTimeout(this[_0x299788(0x1de)]),this['_collaborationTimeoutTimer']=null);}[_0x51f535(0x427)](_0x225bf1){var _0x1237e8=_0x51f535;if(!this['_shouldReportTelemetry'])return;const {data:_0x4a386e}=_0x225bf1,{unitID:_0x5d970e,changeset:_0x3477d5}=_0x4a386e,{mutations:_0x37160f,type:_0x391c0f}=_0x3477d5;this[_0x1237e8(0x37b)]={'unitId':_0x5d970e,'type':_0x391c0f,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':summaryChangesetSize(_0x37160f)};}[_0x51f535(0x4a7)](){var _0x29f468=_0x51f535;if(this[_0x29f468(0x256)]){if(!this[_0x29f468(0x37b)]){this[_0x29f468(0x3c9)][_0x29f468(0x269)]('[CollaborationSession]',_0x29f468(0x332));return;}this[_0x29f468(0x37b)]['stopTime']=performance['now'](),this['_telemetryInfo'][_0x29f468(0x331)]=this['_telemetryInfo'][_0x29f468(0x4be)]-this[_0x29f468(0x37b)]['startTime'],this['_telemetryService'][_0x29f468(0x29e)](TELEMETRY_COLLABORATION_NEW_CHANGESET,this['_telemetryInfo']),this['_telemetryInfo']=null;}}[_0x51f535(0x410)](){var _0x42201a=_0x51f535;this[_0x42201a(0x37b)]=null;}},__name(_a3,_0x51f535(0x510)),_a3);CollaborationSession=__decorateClass$g([__decorateParam$g(0x2,ILogService),__decorateParam$g(0x3,IConfigService),__decorateParam$g(0x4,Inject(LocaleService)),__decorateParam$g(0x5,Inject(MemberService)),__decorateParam$g(0x6,Inject(CommentService)),__decorateParam$g(0x7,Inject(CollaborationUIEventService)),__decorateParam$g(0x8,Optional(ITelemetryService))],CollaborationSession);var __defProp$f=Object[_0x51f535(0x2c3)],__getOwnPropDesc$f=Object[_0x51f535(0x32f)],__decorateClass$f=__name((_0x14382a,_0x344a69,_0x2d981a,_0x4ee2bf)=>{var _0x3524fb=_0x51f535;for(var _0x3ac814=_0x4ee2bf>0x1?void 0x0:_0x4ee2bf?__getOwnPropDesc$f(_0x344a69,_0x2d981a):_0x344a69,_0x522069=_0x14382a[_0x3524fb(0x1d3)]-0x1,_0x3f7147;_0x522069>=0x0;_0x522069--)(_0x3f7147=_0x14382a[_0x522069])&&(_0x3ac814=(_0x4ee2bf?_0x3f7147(_0x344a69,_0x2d981a,_0x3ac814):_0x3f7147(_0x3ac814))||_0x3ac814);return _0x4ee2bf&&_0x3ac814&&__defProp$f(_0x344a69,_0x2d981a,_0x3ac814),_0x3ac814;},'__decorateClass$f'),__decorateParam$f=__name((_0x3e6781,_0x5488f3)=>(_0x2fce94,_0x255c93)=>_0x5488f3(_0x2fce94,_0x255c93,_0x3e6781),_0x51f535(0x4cb)),_a4;let CollaborationSessionService=(_a4=class extends Disposable{constructor(_0x174f4c,_0x3da868,_0x51c268,_0x4a56c0,_0x185d94,_0xac7218,_0x61ca04){var _0x46784a=_0x51f535;super(),__publicField(this,'_socket$',new BehaviorSubject(void 0x0)),__publicField(this,_0x46784a(0x401),this[_0x46784a(0x2b0)][_0x46784a(0x38b)]()),__publicField(this,_0x46784a(0x3b6),null),__publicField(this,_0x46784a(0x1f8),new Map()),__publicField(this,_0x46784a(0x377),new BehaviorSubject(SessionStatus[_0x46784a(0x361)])),__publicField(this,_0x46784a(0x3d5),this['_status$']['asObservable']()),__publicField(this,_0x46784a(0x32c),!0x1),__publicField(this,_0x46784a(0x25b)),__publicField(this,'_retryCount',0x0),__publicField(this,'_sendHeartbeatTimer'),__publicField(this,'_timeoutTimer'),(this[_0x46784a(0x45a)]=_0x174f4c,this['_logService']=_0x3da868,this['_configService']=_0x51c268,this[_0x46784a(0x200)]=_0x4a56c0,this[_0x46784a(0x527)]=_0x185d94,this[_0x46784a(0x36f)]=_0xac7218,this['_networkConditionService']=_0x61ca04,this[_0x46784a(0x32b)]());}get[_0x51f535(0x33a)](){var _0x158282=_0x51f535;return this[_0x158282(0x2b0)][_0x158282(0x263)]();}[_0x51f535(0x32b)](){var _0x19dc80=_0x51f535;this[_0x19dc80(0x439)]&&this['disposeWithMe'](this[_0x19dc80(0x439)][_0x19dc80(0x4c2)][_0x19dc80(0x4d5)](_0x4f5f6d=>{var _0x172db3=_0x19dc80;_0x4f5f6d&&!this['_socket']&&this['reconnect'](),_0x4f5f6d||this[_0x172db3(0x323)]();}));}[_0x51f535(0x4b0)](){var _0x25bdb1=_0x51f535;super['dispose'](),this[_0x25bdb1(0x1f8)][_0x25bdb1(0x41c)](_0x12ed35=>_0x12ed35[_0x25bdb1(0x4b0)]()),this[_0x25bdb1(0x1f8)][_0x25bdb1(0x2d8)](),this[_0x25bdb1(0x377)][_0x25bdb1(0x4ad)]();}async['requireSession'](_0x4b2bef){var _0x4f0072=_0x51f535;if(this['_sessions'][_0x4f0072(0x4af)](_0x4b2bef))return this['_sessions'][_0x4f0072(0x40e)](_0x4b2bef);this['_tryEnsureSocket']();const _0xe7b48c=this[_0x4f0072(0x45a)][_0x4f0072(0x3b3)](CollaborationSession,_0x4b2bef,this[_0x4f0072(0x2b0)][_0x4f0072(0x38b)]());return this[_0x4f0072(0x1f8)][_0x4f0072(0x202)](_0x4b2bef,_0xe7b48c),_0xe7b48c;}[_0x51f535(0x235)](_0x13e409){var _0x4afac8=_0x51f535,_0x24f0ee;const _0x4b2a06=this[_0x4afac8(0x1f8)][_0x4afac8(0x40e)](_0x13e409);_0x4b2a06&&(this[_0x4afac8(0x1f8)][_0x4afac8(0x4b6)](_0x13e409),_0x4b2a06[_0x4afac8(0x47b)]()),this['_sessions'][_0x4afac8(0x44a)]||(_0x24f0ee=this[_0x4afac8(0x33a)])==null||_0x24f0ee[_0x4afac8(0x47b)]();}['reconnect'](){var _0x93cfbc=_0x51f535;this[_0x93cfbc(0x2d7)]=0x0,this[_0x93cfbc(0x25b)]!=null&&(clearTimeout(this[_0x93cfbc(0x25b)]),this[_0x93cfbc(0x25b)]=null),this[_0x93cfbc(0x4bc)]();}async[_0x51f535(0x249)](){var _0x309bc3=_0x51f535,_0x32881d,_0x2a4d88,_0x31f4be;const _0x4e74a6=this[_0x309bc3(0x393)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x1b8408=(_0x32881d=_0x4e74a6==null?void 0x0:_0x4e74a6[_0x309bc3(0x433)])!=null?_0x32881d:DEFAULT_WS_SESSION_TICKET_URL;return(_0x31f4be=(_0x2a4d88=(await this[_0x309bc3(0x527)]['get'](_0x1b8408,{'headers':{'Content-Type':'application/json'}}))[_0x309bc3(0x225)])==null?void 0x0:_0x2a4d88['ticket'])!=null?_0x31f4be:'';}['_createSocketURL'](_0x2b7b57){var _0x18550b=_0x51f535,_0x5a9202,_0x4a29fb;const _0x9920c1=this[_0x18550b(0x393)][_0x18550b(0x310)](COLLAB_WEB_SOCKET_URL_KEY),_0x260dce=this[_0x18550b(0x393)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x121c91=(_0x4a29fb=(_0x5a9202=_0x260dce==null?void 0x0:_0x260dce[_0x18550b(0x2af)])!=null?_0x5a9202:_0x9920c1)!=null?_0x4a29fb:DEFAULT_COLLAB_WEB_SOCKET_URL,_0x480f3e=typeof window>'u'?new URL(_0x121c91):new URL(_0x121c91,window[_0x18550b(0x37f)][_0x18550b(0x423)]);_0x480f3e['searchParams']['set']('sessionTicket',_0x2b7b57);const _0x36f029=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x18550b(0x37f)][_0x18550b(0x25d)]);return _0x36f029['get'](_0x18550b(0x3a8))&&_0x480f3e[_0x18550b(0x444)][_0x18550b(0x202)](_0x18550b(0x3a8),_0x36f029['get'](_0x18550b(0x3a8))),_0x480f3e[_0x18550b(0x3c1)]();}async['_createSocket'](){var _0x31719a=_0x51f535;const _0x34a419=await this[_0x31719a(0x249)](),_0xeb0142=this[_0x31719a(0x525)](_0x34a419),_0x5b5ac5=this[_0x31719a(0x200)][_0x31719a(0x51f)](_0xeb0142);return this[_0x31719a(0x3b6)]=_0x5b5ac5,_0x5b5ac5;}async[_0x51f535(0x389)](){var _0x2d821a=_0x51f535,_0x317a4f,_0x1a20c3;try{const _0xba702e=(_0x1a20c3=(_0x317a4f=this[_0x2d821a(0x33a)])!=null?_0x317a4f:this[_0x2d821a(0x3b6)])!=null?_0x1a20c3:await this[_0x2d821a(0x2fa)]();if(_0xba702e){const _0x3701af=_0xba702e[_0x2d821a(0x2b6)];_0xba702e['send']=_0x4b3697=>(this[_0x2d821a(0x291)](),_0x3701af['apply'](_0xba702e,[_0x4b3697])),_0xba702e[_0x2d821a(0x301)][_0x2d821a(0x4d5)](_0x2e4cc7=>this[_0x2d821a(0x270)](_0xba702e,_0x2e4cc7)),_0xba702e[_0x2d821a(0x2c5)][_0x2d821a(0x283)](take(0x1))[_0x2d821a(0x4d5)](_0x5e2068=>this[_0x2d821a(0x3c9)][_0x2d821a(0x269)](_0x2d821a(0x499),_0x5e2068)),_0xba702e['open$']['pipe'](take(0x1))[_0x2d821a(0x4d5)](()=>{var _0x220191=_0x2d821a;this[_0x220191(0x413)](_0xba702e);}),_0xba702e['close$'][_0x2d821a(0x283)](take(0x1))[_0x2d821a(0x4d5)](_0x1ac56f=>{var _0xce8aa9=_0x2d821a;this[_0xce8aa9(0x3c9)][_0xce8aa9(0x46e)](_0xce8aa9(0x31f),'socket\x20close',_0x1ac56f),this[_0xce8aa9(0x386)]();});}}catch(_0x2147b9){this[_0x2d821a(0x3c9)][_0x2d821a(0x269)](_0x2147b9),this[_0x2d821a(0x386)]();}}['_onConnectionOpen'](_0x20254d){var _0x3d1d74=_0x51f535;this[_0x3d1d74(0x3c9)][_0x3d1d74(0x46e)](_0x3d1d74(0x31f),_0x3d1d74(0x4a2)),_0x20254d[_0x3d1d74(0x2b6)]({'cmd':CombCmd[_0x3d1d74(0x1d5)]}),this[_0x3d1d74(0x291)]();}[_0x51f535(0x323)](){var _0x281cbf=_0x51f535;this[_0x281cbf(0x32c)]=!0x1,this['_candidateSocket']=null,this['_status$'][_0x281cbf(0x24d)](SessionStatus[_0x281cbf(0x215)]),this[_0x281cbf(0x2b0)][_0x281cbf(0x24d)](null),this[_0x281cbf(0x2d6)](),this['_clearHeartbeatTimer']();}[_0x51f535(0x386)](){var _0x37f45e=_0x51f535,_0x2c9bed;this[_0x37f45e(0x323)](),this[_0x37f45e(0x2d7)]<((_0x2c9bed=this['_configService'][_0x37f45e(0x310)](RETRY_CONNECTING_MAX_COUNT_KEY))!=null?_0x2c9bed:DEFAULT_RETRY_CONNECTING_MAX_COUNT)?(this['_collaborationUIEventService']['emitEvent']({'id':CollaborationUIEventId['SOCKET_FAILED_RETRY']}),this['_tryReconnect']()):this[_0x37f45e(0x36f)][_0x37f45e(0x209)]({'id':CollaborationUIEventId[_0x37f45e(0x4f6)]});}[_0x51f535(0x4bc)](){var _0x2cd1ec=_0x51f535,_0x2e76b2;const _0x98528c=this[_0x2cd1ec(0x2d7)],_0x1cc59f=this['_configService'][_0x2cd1ec(0x310)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x26c8b2=_0x98528c===0x0?0x0:((_0x2e76b2=_0x1cc59f==null?void 0x0:_0x1cc59f[_0x2cd1ec(0x383)])!=null?_0x2e76b2:DEFAULT_RETRY_CONNECTING_INTERVAL)*0x2**_0x98528c;this[_0x2cd1ec(0x25b)]=setTimeout(()=>{var _0x4b19e2=_0x2cd1ec;clearTimeout(this[_0x4b19e2(0x25b)]),this[_0x4b19e2(0x25b)]=null,this[_0x4b19e2(0x389)]();},_0x26c8b2),this[_0x2cd1ec(0x2d7)]+=0x1;}['_onMessage'](_0x689ec7,_0x2d7a54){var _0xc775ad=_0x51f535;const {cmd:_0x1233a0}=_0x2d7a54;_0x1233a0===CombCmd[_0xc775ad(0x1d5)]&&!this['_socketReady']&&(_0x689ec7[_0xc775ad(0x206)]=_0x2d7a54[_0xc775ad(0x432)][_0xc775ad(0x206)],this[_0xc775ad(0x2b0)][_0xc775ad(0x24d)](_0x689ec7),this[_0xc775ad(0x377)]['next'](SessionStatus['ONLINE']),this[_0xc775ad(0x32c)]=!0x0,this['_candidateSocket']=null),_0x1233a0===CombCmd[_0xc775ad(0x495)]&&this[_0xc775ad(0x2d6)](),this[_0xc775ad(0x291)]();}[_0x51f535(0x291)](){var _0x2717c3=_0x51f535,_0x5882d1;this[_0x2717c3(0x27d)](),this['_sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](),(_0x5882d1=this[_0x2717c3(0x393)][_0x2717c3(0x310)](HEARTBEAT_INTERVAL_KEY))!=null?_0x5882d1:DEFAULT_HEARTBEAT_INTERVAL);}[_0x51f535(0x3a4)](){var _0x41059e=_0x51f535;this['_socket'][_0x41059e(0x2b6)]({'cmd':CombCmd[_0x41059e(0x495)]}),this[_0x41059e(0x21c)]();}['_waitForHeartbeatResponse'](){var _0x308de9=_0x51f535,_0x244ee8;this[_0x308de9(0x35d)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x244ee8=this[_0x308de9(0x393)][_0x308de9(0x310)](HEARTBEAT_TIMEOUT_KEY))!=null?_0x244ee8:DEFAULT_HEARTBEAT_TIMEOUT);}[_0x51f535(0x27d)](){var _0x512848=_0x51f535;this[_0x512848(0x4a8)]!=null&&(clearTimeout(this[_0x512848(0x4a8)]),this[_0x512848(0x4a8)]=null);}[_0x51f535(0x2d6)](){var _0x3f3381=_0x51f535;this[_0x3f3381(0x35d)]!=null&&(clearTimeout(this[_0x3f3381(0x35d)]),this[_0x3f3381(0x35d)]=null);}},__name(_a4,_0x51f535(0x3ee)),_a4);CollaborationSessionService=__decorateClass$f([__decorateParam$f(0x0,Inject(Injector)),__decorateParam$f(0x1,ILogService),__decorateParam$f(0x2,IConfigService),__decorateParam$f(0x3,ICollaborationSocketService),__decorateParam$f(0x4,Inject(HTTPService)),__decorateParam$f(0x5,Inject(CollaborationUIEventService)),__decorateParam$f(0x6,Optional(INetworkConditionService))],CollaborationSessionService);const byteToHex=[];for(let i=0x0;i<0x100;++i)byteToHex[_0x51f535(0x4c5)]((i+0x100)[_0x51f535(0x3c1)](0x10)['slice'](0x1));function unsafeStringify(_0x24eab1,_0x4af073=0x0){return(byteToHex[_0x24eab1[_0x4af073+0x0]]+byteToHex[_0x24eab1[_0x4af073+0x1]]+byteToHex[_0x24eab1[_0x4af073+0x2]]+byteToHex[_0x24eab1[_0x4af073+0x3]]+'-'+byteToHex[_0x24eab1[_0x4af073+0x4]]+byteToHex[_0x24eab1[_0x4af073+0x5]]+'-'+byteToHex[_0x24eab1[_0x4af073+0x6]]+byteToHex[_0x24eab1[_0x4af073+0x7]]+'-'+byteToHex[_0x24eab1[_0x4af073+0x8]]+byteToHex[_0x24eab1[_0x4af073+0x9]]+'-'+byteToHex[_0x24eab1[_0x4af073+0xa]]+byteToHex[_0x24eab1[_0x4af073+0xb]]+byteToHex[_0x24eab1[_0x4af073+0xc]]+byteToHex[_0x24eab1[_0x4af073+0xd]]+byteToHex[_0x24eab1[_0x4af073+0xe]]+byteToHex[_0x24eab1[_0x4af073+0xf]])['toLowerCase']();}__name(unsafeStringify,_0x51f535(0x2b7));let getRandomValues;const rnds8=new Uint8Array(0x10);function rng(){var _0x331764=_0x51f535;if(!getRandomValues){if(typeof crypto>'u'||!crypto['getRandomValues'])throw new Error(_0x331764(0x521));getRandomValues=crypto[_0x331764(0x3f5)][_0x331764(0x4c3)](crypto);}return getRandomValues(rnds8);}__name(rng,_0x51f535(0x23e));const randomUUID=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x51f535(0x272)][_0x51f535(0x4c3)](crypto),native={'randomUUID':randomUUID};function v4(_0x3855f7,_0x199903,_0x59ef3d){var _0x30ff34=_0x51f535,_0x1cb4a8,_0x1a5c97,_0x3d1bd4;if(native[_0x30ff34(0x272)]&&!_0x3855f7)return native[_0x30ff34(0x272)]();_0x3855f7=_0x3855f7||{};const _0x2c27a7=(_0x3d1bd4=(_0x1a5c97=_0x3855f7['random'])!=null?_0x1a5c97:(_0x1cb4a8=_0x3855f7[_0x30ff34(0x23e)])==null?void 0x0:_0x1cb4a8[_0x30ff34(0x25c)](_0x3855f7))!=null?_0x3d1bd4:rng();if(_0x2c27a7[_0x30ff34(0x1d3)]<0x10)throw new Error('Random\x20bytes\x20length\x20must\x20be\x20>=\x2016');return _0x2c27a7[0x6]=_0x2c27a7[0x6]&0xf|0x40,_0x2c27a7[0x8]=_0x2c27a7[0x8]&0x3f|0x80,unsafeStringify(_0x2c27a7);}__name(v4,'v4');const ILocalCacheService=createIdentifier('collaboration-client.local-cache-service');function getLocalCacheKey(_0x25f058){var _0x56e985=_0x51f535;return _0x56e985(0x43f)+_0x25f058;}__name(getLocalCacheKey,_0x51f535(0x520));var __defProp$e=Object['defineProperty'],__getOwnPropDesc$e=Object[_0x51f535(0x32f)],__decorateClass$e=__name((_0x4a8f87,_0x2efb3c,_0x43e2d0,_0x502fb8)=>{for(var _0xcbce14=_0x502fb8>0x1?void 0x0:_0x502fb8?__getOwnPropDesc$e(_0x2efb3c,_0x43e2d0):_0x2efb3c,_0x199fc1=_0x4a8f87['length']-0x1,_0x31e47f;_0x199fc1>=0x0;_0x199fc1--)(_0x31e47f=_0x4a8f87[_0x199fc1])&&(_0xcbce14=(_0x502fb8?_0x31e47f(_0x2efb3c,_0x43e2d0,_0xcbce14):_0x31e47f(_0xcbce14))||_0xcbce14);return _0x502fb8&&_0xcbce14&&__defProp$e(_0x2efb3c,_0x43e2d0,_0xcbce14),_0xcbce14;},_0x51f535(0x368)),__decorateParam$e=__name((_0x24a4e5,_0x443318)=>(_0xf9fb5a,_0x44e290)=>_0x443318(_0xf9fb5a,_0x44e290,_0x24a4e5),_0x51f535(0x414));function extractTargetFromFirstChangeset(_0x56dad5){var _0x421719=_0x51f535;const {unitID:_0x50c3d7,mutations:_0xc53cd0}=_0x56dad5;return{'unitId':_0x50c3d7,'subUnitId':_0xc53cd0[0x0][_0x421719(0x3cc)][_0x421719(0x4b5)]};}__name(extractTargetFromFirstChangeset,_0x51f535(0x3cb));var _a5;let SheetTransformSelectionsService=(_a5=class{constructor(_0x1504b9,_0x3aa74f,_0x3e5453){var _0x47cb84=_0x51f535;this[_0x47cb84(0x45a)]=_0x1504b9,this[_0x47cb84(0x45e)]=_0x3aa74f,this[_0x47cb84(0x50d)]=_0x3e5453;}[_0x51f535(0x4d0)](_0x23e97b){var _0x5134ae=_0x51f535,_0x865733,_0x5c14c1,_0x351c4b,_0x525434;const _0x407edf=this[_0x5134ae(0x45a)][_0x5134ae(0x40e)](SheetsSelectionsService),{unitId:_0x7cc643,subUnitId:_0x408009}=extractTargetFromFirstChangeset(_0x23e97b),_0x4c8453=_0x407edf==null?void 0x0:_0x407edf['getWorkbookSelections'](_0x7cc643)[_0x5134ae(0x38d)](),_0x288736=(_0x5c14c1=(_0x865733=this['_instanceService']['getUnit'](_0x7cc643))==null?void 0x0:_0x865733[_0x5134ae(0x4ee)]())==null?void 0x0:_0x5c14c1[_0x5134ae(0x381)]();if(_0x4c8453[_0x5134ae(0x1d3)]===0x0||!_0x7cc643||!_0x408009)return;const _0x18a63b=[{'id':SetSelectionsOperation['id'],'params':{'unitId':_0x7cc643,'subUnitId':_0x288736,'selections':Tools[_0x5134ae(0x517)](_0x4c8453)}}],_0x542b18=this[_0x5134ae(0x45e)][_0x5134ae(0x1f6)](_0x23e97b,_0x18a63b);if(!isTransformMutationsWithChangesetSuccess(_0x542b18))throw _0x542b18[_0x5134ae(0x269)];const _0x321d8d=(_0x525434=(_0x351c4b=_0x542b18[_0x5134ae(0x38e)][0x0])==null?void 0x0:_0x351c4b[_0x5134ae(0x3cc)])==null?void 0x0:_0x525434['selections'];if(Array[_0x5134ae(0x305)](_0x321d8d)&&_0x321d8d['length']){if(_0x321d8d['length']===_0x18a63b[0x0][_0x5134ae(0x3cc)][_0x5134ae(0x429)][_0x5134ae(0x1d3)]&&_0x321d8d['every']((_0x592d53,_0x51a2ee)=>Rectangle[_0x5134ae(0x29b)](_0x592d53[_0x5134ae(0x258)],_0x18a63b[0x0][_0x5134ae(0x3cc)][_0x5134ae(0x429)][_0x51a2ee][_0x5134ae(0x258)])))return;this['_injector'][_0x5134ae(0x40e)](ICommandService)['executeCommand'](SetSelectionsOperation['id'],{'unitId':_0x7cc643,'subUnitId':_0x288736,'selections':_0x321d8d});}}},__name(_a5,_0x51f535(0x2cb)),_a5);SheetTransformSelectionsService=__decorateClass$e([__decorateParam$e(0x0,Inject(Injector)),__decorateParam$e(0x1,ITransformService),__decorateParam$e(0x2,IUniverInstanceService)],SheetTransformSelectionsService);const ISingleActiveUnitService=createIdentifier(_0x51f535(0x318));var UnitStatus=(_0x3e8f3c=>(_0x3e8f3c[_0x3e8f3c[_0x51f535(0x286)]=0x0]=_0x51f535(0x286),_0x3e8f3c[_0x3e8f3c[_0x51f535(0x28e)]=0x1]=_0x51f535(0x28e),_0x3e8f3c))(UnitStatus||{});const SINGLE_CHANGESET_MUTATIONS=new Set([InsertSheetMutation['id']]);function assembleSheetChangeset(_0xe7533c,_0x5f0cbf,_0x120cc3,_0x15a870,_0x1a23b2){var _0xfe16ec=_0x51f535,_0x30c789,_0x5f4e86,_0x1b3070,_0x491876;const _0x4acf2c=[];for(const _0x599778 of _0xe7533c)if(SINGLE_CHANGESET_MUTATIONS[_0xfe16ec(0x4af)](_0x599778['id'])){if(_0x4acf2c[_0xfe16ec(0x1d3)]>0x0)break;_0x4acf2c[_0xfe16ec(0x4c5)](_0x599778);break;}else _0x4acf2c[_0xfe16ec(0x4c5)](_0x599778);const _0x1ee5d5=(_0x5f4e86=(_0x30c789=_0x1a23b2[_0xfe16ec(0x3ba)]())==null?void 0x0:_0x30c789['userID'])!=null?_0x5f4e86:'unknown',_0x58e573=(_0x491876=(_0x1b3070=_0x1a23b2[_0xfe16ec(0x3ba)]())==null?void 0x0:_0x1b3070['memberID'])!=null?_0x491876:_0xfe16ec(0x3ff);return{'changeset':{'unitID':_0x5f0cbf,'type':mapDocumentTypeToUniverType(_0x120cc3[_0xfe16ec(0x346)](_0x5f0cbf)),'baseRev':_0x15a870['getCurrentRevOfUnit'](_0x5f0cbf),'revision':0x0,'userID':_0x1ee5d5,'memberID':_0x58e573,'mutations':_0x4acf2c},'pendingMutations':_0xe7533c[_0xfe16ec(0x31c)](_0x4acf2c[_0xfe16ec(0x1d3)])};}__name(assembleSheetChangeset,_0x51f535(0x3ab));function assembleDocChangeset(_0x169dc5,_0x32af35,_0x1ee663,_0x2b3553,_0x2459a3){var _0xc7590c=_0x51f535,_0x28e9e8,_0x1be6ad,_0x396caa,_0x38fd93;const _0x78a71d=[_0x169dc5[_0xc7590c(0x35a)]((_0x50d60e,_0x5773bb)=>{var _0x3d565b=_0xc7590c,_0x3cbdbf;const {id:_0x111891}=_0x50d60e,{id:_0x3ffd3d,type:_0x388320}=_0x5773bb,_0x6dec14=(_0x3cbdbf=_0x50d60e[_0x3d565b(0x3cc)])!=null?_0x3cbdbf:{'actions':null},_0x3c7b53=_0x5773bb[_0x3d565b(0x3cc)];if(_0x111891&&_0x111891!==_0x3ffd3d)throw new Error(_0x3d565b(0x2ed)+_0x111891+_0x3d565b(0x281)+_0x3ffd3d+'.');return{..._0x50d60e,'id':_0x3ffd3d,'type':_0x388320,'params':{'unitId':_0x3c7b53['unitId'],'textRanges':_0x3c7b53[_0x3d565b(0x2f6)],'actions':JSONX[_0x3d565b(0x25e)](_0x6dec14['actions'],_0x3c7b53['actions'])}};},{})],_0x2127ca=(_0x1be6ad=(_0x28e9e8=_0x2459a3['getCurrentUser']())==null?void 0x0:_0x28e9e8[_0xc7590c(0x431)])!=null?_0x1be6ad:'unknown',_0x8a53cb=(_0x38fd93=(_0x396caa=_0x2459a3[_0xc7590c(0x3ba)]())==null?void 0x0:_0x396caa[_0xc7590c(0x206)])!=null?_0x38fd93:'unknown';return{'changeset':{'unitID':_0x32af35,'type':mapDocumentTypeToUniverType(_0x1ee663[_0xc7590c(0x346)](_0x32af35)),'baseRev':_0x2b3553[_0xc7590c(0x27f)](_0x32af35),'revision':0x0,'userID':_0x2127ca,'memberID':_0x8a53cb,'mutations':_0x78a71d},'pendingMutations':[]};}__name(assembleDocChangeset,_0x51f535(0x4de));function createTimerObservable$(_0x57a2da,_0x45d044){var _0xc8cec=_0x51f535;const _0x426358=new ReplaySubject(0x1);return setTimeout(()=>_0x426358['next'](_0x45d044),_0x57a2da),_0x426358[_0xc8cec(0x38b)]()[_0xc8cec(0x283)](_0x18ca8f(0x1));}__name(createTimerObservable$,'createTimerObservable$');const EmptyMutationInfo={'id':EmptyMutation['id'],'type':CommandType['MUTATION'],'params':{}};var __defProp$d=Object[_0x51f535(0x2c3)],__getOwnPropDesc$d=Object[_0x51f535(0x32f)],__decorateClass$d=__name((_0x8e921c,_0x5dd2b5,_0x5356dd,_0x311e61)=>{var _0x1773dc=_0x51f535;for(var _0x112370=_0x311e61>0x1?void 0x0:_0x311e61?__getOwnPropDesc$d(_0x5dd2b5,_0x5356dd):_0x5dd2b5,_0x324c7c=_0x8e921c[_0x1773dc(0x1d3)]-0x1,_0x76d97c;_0x324c7c>=0x0;_0x324c7c--)(_0x76d97c=_0x8e921c[_0x324c7c])&&(_0x112370=(_0x311e61?_0x76d97c(_0x5dd2b5,_0x5356dd,_0x112370):_0x76d97c(_0x112370))||_0x112370);return _0x311e61&&_0x112370&&__defProp$d(_0x5dd2b5,_0x5356dd,_0x112370),_0x112370;},_0x51f535(0x405)),__decorateParam$d=__name((_0x4d6536,_0x1cde76)=>(_0x48926f,_0x5cdd7d)=>_0x1cde76(_0x48926f,_0x5cdd7d,_0x4d6536),_0x51f535(0x475)),CollaborationStatus=(_0x102241=>(_0x102241[_0x51f535(0x453)]='not_collab',_0x102241['SYNCED']=_0x51f535(0x223),_0x102241[_0x51f535(0x237)]=_0x51f535(0x320),_0x102241[_0x51f535(0x35b)]='awaiting',_0x102241[_0x51f535(0x1d8)]=_0x51f535(0x51e),_0x102241['FETCH_MISS']=_0x51f535(0x2c4),_0x102241['CONFLICT']=_0x51f535(0x2dd),_0x102241[_0x51f535(0x215)]='offline',_0x102241))(CollaborationStatus||{});const MAX_RETRY_TIMEOUT=0xea60,_CollaborationState=class _CollaborationState{constructor(_0x840d34,_0x346586,_0xe15698,_0x30363b,_0x5912ff,_0x9c21df,_0x5e296c,_0x42907d,_0x5501ec){var _0x22498b=_0x51f535;__publicField(this,_0x22498b(0x3ed),null),__publicField(this,'_pendingMutations',[]),(this['unitID']=_0x840d34,this['type']=_0x346586,this['_handler']=_0x5912ff,this['_commandService']=_0x9c21df,this[_0x22498b(0x514)]=_0x5e296c,this[_0x22498b(0x1df)]=_0x42907d,this['_localCacheService']=_0x5501ec,this[_0x22498b(0x3ed)]=_0xe15698,this[_0x22498b(0x345)]=_0x30363b);}[_0x51f535(0x4a5)](_0x4dcd77){var _0x1a9114=_0x51f535;const _0x301264=this[_0x1a9114(0x1df)]['getCurrentRevOfUnit'](this[_0x1a9114(0x1d6)]);return _0x4dcd77[_0x1a9114(0x4f3)]>_0x301264+0x1?(this['_handler'][_0x1a9114(0x2d9)]({'from':_0x301264,'to':_0x4dcd77['revision']-0x1}),!0x0):!0x1;}[_0x51f535(0x22d)](_0x2ee003){var _0x499eac=_0x51f535;this[_0x499eac(0x514)][_0x499eac(0x2e4)](this['unitID'],_0x2ee003);}[_0x51f535(0x1f4)](_0x2588e7){var _0x146fe0=_0x51f535,_0x4ad10b,_0x445236;(_0x445236=(_0x4ad10b=this[_0x146fe0(0x2e0)])['onTransformSelections'])==null||_0x445236[_0x146fe0(0x25c)](_0x4ad10b,_0x2588e7);}['_transformIMECache'](_0x35ca66){var _0x54885c=_0x51f535,_0x561241,_0x964dc5;return(_0x964dc5=(_0x561241=this[_0x54885c(0x2e0)])['onTransformIME'])==null?void 0x0:_0x964dc5[_0x54885c(0x25c)](_0x561241,_0x35ca66);}[_0x51f535(0x370)](_0x4909d0){var _0x349180=_0x51f535,_0x297615,_0x2fa5bb;return(_0x2fa5bb=(_0x297615=this[_0x349180(0x2e0)])['onTransformState'])==null?void 0x0:_0x2fa5bb[_0x349180(0x25c)](_0x297615,_0x4909d0);}[_0x51f535(0x2ba)](_0xa1955){var _0x358d39=_0x51f535,_0x59247e,_0x5f0de5,_0x575f9e;return(_0x575f9e=(_0x5f0de5=(_0x59247e=this[_0x358d39(0x2e0)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x5f0de5[_0x358d39(0x25c)](_0x59247e,_0xa1955))!=null?_0x575f9e:_0xa1955;}[_0x51f535(0x2c8)](_0x5739ae){var _0x5be52c=_0x51f535,_0x5330ac,_0x5c03d8,_0x4d338f;return(_0x4d338f=(_0x5c03d8=(_0x5330ac=this[_0x5be52c(0x2e0)])[_0x5be52c(0x33d)])==null?void 0x0:_0x5c03d8[_0x5be52c(0x25c)](_0x5330ac,_0x5739ae))!=null?_0x4d338f:_0x5739ae;}[_0x51f535(0x336)](_0x191ce9){var _0x2c8436=_0x51f535,_0x13352b,_0x11f95d;if(this[_0x2c8436(0x425)]===UniverType[_0x2c8436(0x4ac)]){const {unitID:_0x260222,mutations:_0x458d76,memberID:_0x1a7fe2}=_0x191ce9,_0x41e3d9=_0x458d76[0x0][_0x2c8436(0x3cc)][_0x2c8436(0x2f6)];Array[_0x2c8436(0x305)](_0x41e3d9)&&_0x41e3d9[_0x2c8436(0x1d3)]>0x0&&((_0x11f95d=(_0x13352b=this[_0x2c8436(0x2e0)])['onSyncEditingCollabCursor'])==null||_0x11f95d[_0x2c8436(0x25c)](_0x13352b,{'unitID':_0x260222,'memberID':_0x1a7fe2,'textRanges':_0x41e3d9}));}}[_0x51f535(0x2d0)](){var _0xea88e=_0x51f535,_0x1737cc;(_0x1737cc=this[_0xea88e(0x34b)])==null||_0x1737cc[_0xea88e(0x296)](this[_0xea88e(0x1d6)],this[_0xea88e(0x425)],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x51f535(0x321)](){var _0x80afbb=_0x51f535;return this[_0x80afbb(0x1df)][_0x80afbb(0x27f)](this[_0x80afbb(0x1d6)]);}[_0x51f535(0x42a)](){var _0x3377f7=_0x51f535;this[_0x3377f7(0x1df)][_0x3377f7(0x240)](this[_0x3377f7(0x1d6)]);}['_executeRemoteChangeset'](_0x5b2b48){var _0x2fe22d=_0x51f535,_0x586abe;let _0x474139=this[_0x2fe22d(0x2ba)](_0x5b2b48);_0x474139=this[_0x2fe22d(0x2c8)](_0x474139);const _0x5974e5=sequenceExecute(_0x474139['mutations'],this[_0x2fe22d(0x40d)],{'fromCollab':!0x0});if(!_0x5974e5[_0x2fe22d(0x285)])throw _0x5974e5[_0x2fe22d(0x269)]instanceof Error?_0x5974e5[_0x2fe22d(0x269)]:new Error((_0x586abe=_0x5974e5['error'])!=null?_0x586abe:_0x2fe22d(0x38c));this[_0x2fe22d(0x366)](_0x474139),this['_transformStateCache'](_0x474139),this['_transformUndoredo'](_0x5b2b48),this[_0x2fe22d(0x1f4)](_0x474139),this['_syncEditingCollabCursor'](_0x474139),this[_0x2fe22d(0x42a)]();}};__name(_CollaborationState,_0x51f535(0x4fc));let CollaborationState=_CollaborationState;var _a6;let SyncedState=(_a6=class extends CollaborationState{constructor(_0x3ca16d,_0x515ad2,_0x586f8a,_0x518baf,_0x178362,_0x322ae3,_0x5c32a1,_0x59db9b,_0x54b51f,_0x57f330){var _0x216ad1=_0x51f535;super(_0x3ca16d,_0x515ad2,null,[],_0x586f8a,_0x5c32a1,_0x322ae3,_0x518baf,_0x57f330),__publicField(this,_0x216ad1(0x34e),_0x216ad1(0x223)),(this[_0x216ad1(0x45a)]=_0x178362,this[_0x216ad1(0x3c9)]=_0x59db9b,this[_0x216ad1(0x45e)]=_0x54b51f,this[_0x216ad1(0x456)]=_0x57f330);}[_0x51f535(0x411)](_0x34a3ed){var _0x3628fd=_0x51f535;const _0x382043=this[_0x3628fd(0x45a)][_0x3628fd(0x3b3)](PendingState,this[_0x3628fd(0x1d6)],this[_0x3628fd(0x425)],[_0x34a3ed],this[_0x3628fd(0x2e0)]);return _0x382043[_0x3628fd(0x3f4)](),_0x382043[_0x3628fd(0x2d0)](),_0x382043;}[_0x51f535(0x23f)](_0x189d97){var _0x35ce0d=_0x51f535;if(this[_0x35ce0d(0x4a5)](_0x189d97))return this['_injector'][_0x35ce0d(0x3b3)](FetchingMissState,this[_0x35ce0d(0x1d6)],this[_0x35ce0d(0x425)],null,[],null,[_0x189d97],this['_handler']);try{const _0x78af23=this['_transformService'][_0x35ce0d(0x1f6)](_0x189d97,[EmptyMutationInfo]);if(isTransformMutationsWithChangesetSuccess(_0x78af23)){const {c1Prime:_0x406cfb}=_0x78af23;return this[_0x35ce0d(0x28a)](_0x406cfb),this;}throw _0x78af23['error'];}catch(_0x26ca35){return this[_0x35ce0d(0x3c9)][_0x35ce0d(0x269)](_0x26ca35),this[_0x35ce0d(0x4aa)](!0x1);}}['_onConflict'](_0x4a3ab7){var _0x109aa0=_0x51f535;return this['_injector']['createInstance'](ConflictState,this[_0x109aa0(0x1d6)],this[_0x109aa0(0x425)],null,[],this[_0x109aa0(0x2e0)],_0x4a3ab7);}[_0x51f535(0x476)](){var _0x1ab48a=_0x51f535;throw new Error(_0x1ab48a(0x49b));}[_0x51f535(0x236)](){var _0x383dcc=_0x51f535;throw new Error(_0x383dcc(0x3c4));}['onRemoteRetry'](){return this;}['toggleOffline'](){var _0x1d13ad=_0x51f535;return this[_0x1d13ad(0x45a)][_0x1d13ad(0x3b3)](OfflineState,this[_0x1d13ad(0x1d6)],this['type'],null,[],this[_0x1d13ad(0x2e0)]);}[_0x51f535(0x4e5)](){return this;}['resend'](){var _0x41aef0=_0x51f535;throw new Error(_0x41aef0(0x1ec));}[_0x51f535(0x509)](){var _0x13b8e5=_0x51f535;const _0x1624d5=this[_0x13b8e5(0x1df)][_0x13b8e5(0x27f)](this['unitID']);return this[_0x13b8e5(0x2e0)][_0x13b8e5(0x2d9)]({'from':_0x1624d5,'to':0x0}),this[_0x13b8e5(0x45a)][_0x13b8e5(0x3b3)](FetchingMissState,this['unitID'],this['type'],null,[],null,[],this[_0x13b8e5(0x2e0)]);}},__name(_a6,'SyncedState'),_a6);SyncedState=__decorateClass$d([__decorateParam$d(0x3,Inject(RevisionService)),__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,IUndoRedoService),__decorateParam$d(0x6,ICommandService),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ITransformService),__decorateParam$d(0x9,Optional(ILocalCacheService))],SyncedState);var _a7;let PendingState=(_a7=class extends CollaborationState{constructor(_0x62be41,_0x39d974,_0x14aeab,_0x3d9f95,_0x53ac1f,_0x1ecb74,_0x64dc4e,_0x13459f,_0x39e0fe,_0x5bf1fe,_0x451565,_0x889018,_0x376676,_0x359aa9){var _0x2d50eb=_0x51f535;super(_0x62be41,_0x39d974,null,_0x14aeab,_0x3d9f95,_0x39e0fe,_0x376676,_0x1ecb74,_0x359aa9),__publicField(this,_0x2d50eb(0x34e),_0x2d50eb(0x320)),__publicField(this,_0x2d50eb(0x1f3),null),__publicField(this,_0x2d50eb(0x3ac),null),(this['_injector']=_0x53ac1f,this[_0x2d50eb(0x4cf)]=_0x64dc4e,this[_0x2d50eb(0x3c9)]=_0x13459f,this[_0x2d50eb(0x393)]=_0x5bf1fe,this[_0x2d50eb(0x45e)]=_0x451565,this[_0x2d50eb(0x20b)]=_0x889018);}[_0x51f535(0x411)](_0x2415e6){var _0x494256=_0x51f535;return this[_0x494256(0x345)]['push'](_0x2415e6),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x5c43ff){var _0x5ab703=_0x51f535;if(this[_0x5ab703(0x4a5)](_0x5c43ff))return this['_clearScheduledTask'](),this[_0x5ab703(0x45a)][_0x5ab703(0x3b3)](FetchingMissState,this['unitID'],this[_0x5ab703(0x425)],null,this[_0x5ab703(0x345)],null,[_0x5c43ff],this[_0x5ab703(0x2e0)]);try{const _0x5979e9=this[_0x5ab703(0x45e)][_0x5ab703(0x1f6)](_0x5c43ff,this[_0x5ab703(0x345)]);if(isTransformMutationsWithChangesetSuccess(_0x5979e9)){const {c1Prime:_0x39ef01,m2Prime:_0x3b1853}=_0x5979e9;this[_0x5ab703(0x28a)](_0x39ef01);const _0x532338=this[_0x5ab703(0x45a)][_0x5ab703(0x3b3)](PendingState,this[_0x5ab703(0x1d6)],this[_0x5ab703(0x425)],_0x3b1853,this[_0x5ab703(0x2e0)]);this[_0x5ab703(0x3a2)]();const _0x525cc6=new Date()[_0x5ab703(0x278)](),_0x38dcf9=this[_0x5ab703(0x1f3)]?Math[_0x5ab703(0x2f2)](this[_0x5ab703(0x1f3)]-_0x525cc6,0x0):this['_getSendChangesetTimeout']();return _0x532338['_schedule'](_0x38dcf9),_0x532338;}throw _0x5979e9[_0x5ab703(0x269)];}catch(_0x41056d){return this[_0x5ab703(0x3c9)][_0x5ab703(0x269)](_0x41056d),this[_0x5ab703(0x4aa)](!0x1);}}[_0x51f535(0x476)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x51f535(0x236)](){var _0x44c96b=_0x51f535;throw new Error(_0x44c96b(0x3f1));}[_0x51f535(0x379)](){return this;}[_0x51f535(0x1ff)](){var _0x25b9e2=_0x51f535;return this[_0x25b9e2(0x3a2)](),this[_0x25b9e2(0x45a)][_0x25b9e2(0x3b3)](OfflineState,this[_0x25b9e2(0x1d6)],this[_0x25b9e2(0x425)],null,this[_0x25b9e2(0x345)],this[_0x25b9e2(0x2e0)]);}['toggleOnline'](){return this;}[_0x51f535(0x3f4)](_0x1fe8d4){var _0x3f3244=_0x51f535;const _0x54cf8e=_0x1fe8d4!=null?_0x1fe8d4:this['_getSendChangesetTimeout']();this[_0x3f3244(0x1f3)]=new Date()[_0x3f3244(0x278)]()+_0x54cf8e,this[_0x3f3244(0x3ac)]=setTimeout(()=>{var _0x376540=_0x3f3244;this[_0x376540(0x3a2)]();let _0x3ad213=null;switch(this['type']){case UniverType['UNIVER_SHEET']:{_0x3ad213=assembleSheetChangeset(this[_0x376540(0x345)],this[_0x376540(0x1d6)],this[_0x376540(0x20b)],this[_0x376540(0x1df)],this['_memberService']);break;}case UniverType['UNIVER_DOC']:{this[_0x376540(0x345)][_0x376540(0x4e6)](_0x39045d=>_0x39045d['id']===RichTextEditingMutation['id'])?_0x3ad213=assembleDocChangeset(this['_pendingMutations'],this[_0x376540(0x1d6)],this['_univerInstanceService'],this[_0x376540(0x1df)],this[_0x376540(0x4cf)]):_0x3ad213=assembleSheetChangeset(this[_0x376540(0x345)],this[_0x376540(0x1d6)],this[_0x376540(0x20b)],this[_0x376540(0x1df)],this['_memberService']);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x376540(0x425)]+_0x376540(0x208));}const {changeset:_0x1c109a,pendingMutations:_0x4d95bc}=_0x3ad213;this[_0x376540(0x2e0)][_0x376540(0x3f0)](_0x1c109a);const _0x27ca71=_0x4d95bc['length']?this[_0x376540(0x45a)]['createInstance'](AwaitingWithPendingState,this[_0x376540(0x1d6)],this['type'],_0x1c109a,_0x4d95bc,this[_0x376540(0x2e0)],void 0x0):this[_0x376540(0x45a)][_0x376540(0x3b3)](AwaitingState,this[_0x376540(0x1d6)],this[_0x376540(0x425)],_0x1c109a,this[_0x376540(0x2e0)]);_0x27ca71[_0x376540(0x2d0)](),this[_0x376540(0x2e0)]['onStateChange'](this,_0x27ca71);},_0x54cf8e);}[_0x51f535(0x212)](){var _0x422226=_0x51f535,_0x134ea2;const _0x5c7439=this['_configService'][_0x422226(0x310)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x134ea2=_0x5c7439==null?void 0x0:_0x5c7439['sendChangesetTimeout'])!=null?_0x134ea2:DEFAULT_SEND_CHANGESET_TIMEOUT;}[_0x51f535(0x502)](){var _0xdf9808=_0x51f535;throw new Error(_0xdf9808(0x388));}['_clearScheduledTask'](){var _0x17541b=_0x51f535;this[_0x17541b(0x3ac)]!=null&&(clearTimeout(this[_0x17541b(0x3ac)]),this[_0x17541b(0x3ac)]=null);}['_onConflict'](_0x3b23c8){var _0x2d83a3=_0x51f535;return this[_0x2d83a3(0x3a2)](),this[_0x2d83a3(0x45a)][_0x2d83a3(0x3b3)](ConflictState,this[_0x2d83a3(0x1d6)],this[_0x2d83a3(0x425)],null,this[_0x2d83a3(0x345)],this[_0x2d83a3(0x2e0)],_0x3b23c8);}},__name(_a7,_0x51f535(0x3d0)),_a7);PendingState=__decorateClass$d([__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,Inject(RevisionService)),__decorateParam$d(0x6,Inject(MemberService)),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,IConfigService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUniverInstanceService),__decorateParam$d(0xc,IUndoRedoService),__decorateParam$d(0xd,Optional(ILocalCacheService))],PendingState);var _a8;let AwaitingState=(_a8=class extends CollaborationState{constructor(_0x3ed247,_0x5f36c9,_0xf4233e,_0x34d8c9,_0x22db86,_0x2c6b7a,_0x418662,_0x4ef902,_0x189648,_0x3e79fb,_0x570f59){var _0x1667b7=_0x51f535;super(_0x3ed247,_0x5f36c9,_0xf4233e,[],_0x34d8c9,_0x418662,_0x3e79fb,_0x2c6b7a,_0x570f59),__publicField(this,'status',_0x1667b7(0x1da)),__publicField(this,_0x1667b7(0x472),0x0),__publicField(this,_0x1667b7(0x312)),__publicField(this,'_sender'),(this['_injector']=_0x22db86,this[_0x1667b7(0x3c9)]=_0x4ef902,this[_0x1667b7(0x45e)]=_0x189648);}[_0x51f535(0x411)](_0x5ad76a){var _0xd85f0=_0x51f535;this[_0xd85f0(0x3a2)]();const _0x21a68b=this[_0xd85f0(0x45a)][_0xd85f0(0x3b3)](AwaitingWithPendingState,this[_0xd85f0(0x1d6)],this[_0xd85f0(0x425)],this[_0xd85f0(0x3ed)],[_0x5ad76a],this['_handler'],this['_resendTimer']);return _0x21a68b[_0xd85f0(0x2d0)](),_0x21a68b;}['onRemoteChangeset'](_0x110726){var _0x3c787d=_0x51f535;if(this['_checkMissing'](_0x110726))return this[_0x3c787d(0x3a2)](),this['_injector'][_0x3c787d(0x3b3)](FetchingMissState,this[_0x3c787d(0x1d6)],this[_0x3c787d(0x425)],this[_0x3c787d(0x3ed)],[],null,[_0x110726],this[_0x3c787d(0x2e0)]);try{const _0x5b95e3=this[_0x3c787d(0x45e)][_0x3c787d(0x4cc)]([_0x110726],[this[_0x3c787d(0x3ed)]],!0x1);if(isTransformChangesetsSuccess(_0x5b95e3)){const {c1Prime:_0x1bb0fb,c2Prime:_0x186d9c}=_0x5b95e3;this[_0x3c787d(0x28a)](_0x1bb0fb[0x0]),_0x186d9c[0x0][_0x3c787d(0x2f3)]=this[_0x3c787d(0x321)](),this[_0x3c787d(0x3a2)]();const _0x480e43=this[_0x3c787d(0x45a)][_0x3c787d(0x3b3)](AwaitingState,this[_0x3c787d(0x1d6)],this['type'],_0x186d9c[0x0],this['_handler']);return _0x480e43[_0x3c787d(0x2d0)](),_0x480e43;}return this['_onConflict'](!0x1);}catch(_0x29b89b){return this[_0x3c787d(0x3c9)][_0x3c787d(0x269)](_0x29b89b),this['_onConflict'](!0x1);}}[_0x51f535(0x476)](_0x4defe1){var _0x1f2c2=_0x51f535;this['_clearScheduledTask']();const _0x5c7e02=this['_revisionService']['getCurrentRevOfUnit'](this[_0x1f2c2(0x1d6)]);if(_0x4defe1[_0x1f2c2(0x4f3)]<_0x5c7e02-0x1)return this;if(this['_checkMissing'](_0x4defe1))return this[_0x1f2c2(0x45a)]['createInstance'](FetchingMissState,this[_0x1f2c2(0x1d6)],this[_0x1f2c2(0x425)],null,[],this['_awaitingChangeset'],[],this[_0x1f2c2(0x2e0)]);this[_0x1f2c2(0x42a)]();const _0x15a121=this['_injector'][_0x1f2c2(0x3b3)](SyncedState,this['unitID'],this[_0x1f2c2(0x425)],this[_0x1f2c2(0x2e0)]);return _0x15a121[_0x1f2c2(0x2d0)](),_0x15a121;}[_0x51f535(0x236)](_0x54f84b){var _0x5aaae7=_0x51f535;return this[_0x5aaae7(0x4aa)](!!(_0x54f84b!=null&&_0x54f84b['isPermissionRej']));}[_0x51f535(0x379)](_0x4ca7c7){var _0x93c3b1=_0x51f535;return this['_resendTimeout']>MAX_RETRY_TIMEOUT?this[_0x93c3b1(0x1ff)]():(this['_resendTimer']=createTimerObservable$(this[_0x93c3b1(0x472)],{'timeout':this['_resendTimeout'],'reqId':_0x4ca7c7[_0x93c3b1(0x279)]}),this[_0x93c3b1(0x424)]=this[_0x93c3b1(0x312)][_0x93c3b1(0x4d5)](({reqId:_0xe58b12,timeout:_0x18899f})=>{this['_resendWithTimeout'](_0xe58b12,_0x18899f);}),this);}[_0x51f535(0x1ff)](){var _0x44e2ef=_0x51f535;return this[_0x44e2ef(0x3a2)](),this[_0x44e2ef(0x45a)]['createInstance'](OfflineState,this[_0x44e2ef(0x1d6)],this['type'],this[_0x44e2ef(0x3ed)],[],this[_0x44e2ef(0x2e0)]);}['toggleOnline'](){return this;}[_0x51f535(0x502)](){var _0xe94fae=_0x51f535;this[_0xe94fae(0x2e0)][_0xe94fae(0x3f0)](this[_0xe94fae(0x3ed)]);}[_0x51f535(0x4aa)](_0x2c9d41){var _0x183e11=_0x51f535;return this['_clearScheduledTask'](),this[_0x183e11(0x45a)][_0x183e11(0x3b3)](ConflictState,this[_0x183e11(0x1d6)],this[_0x183e11(0x425)],this['_awaitingChangeset'],[],this[_0x183e11(0x2e0)],_0x2c9d41);}['_resendWithTimeout'](_0x546ffd,_0x41c638){var _0x503495=_0x51f535,_0x12abea;_0x546ffd===((_0x12abea=this['_awaitingChangeset'])==null?void 0x0:_0x12abea[_0x503495(0x279)])&&(this[_0x503495(0x502)](),this[_0x503495(0x472)]=_0x41c638===0x0?0x3e8:_0x41c638*0x2);}[_0x51f535(0x3a2)](){var _0x3f59b0=_0x51f535,_0x1f2507;(_0x1f2507=this[_0x3f59b0(0x424)])==null||_0x1f2507[_0x3f59b0(0x3a6)](),this[_0x3f59b0(0x472)]=0x0;}},__name(_a8,_0x51f535(0x222)),_a8);AwaitingState=__decorateClass$d([__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,Inject(RevisionService)),__decorateParam$d(0x6,ICommandService),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ITransformService),__decorateParam$d(0x9,IUndoRedoService),__decorateParam$d(0xa,Optional(ILocalCacheService))],AwaitingState);var _a9;let AwaitingWithPendingState=(_a9=class extends CollaborationState{constructor(_0x42d6bc,_0xcdc701,_0x112ad9,_0x4673d8,_0x461fd7,_0x33da70,_0x1c2b8d,_0x1bd83b,_0x251ad7,_0x303b70,_0x1ffc78,_0x45f591,_0x26ddd4){var _0x579de3=_0x51f535;super(_0x42d6bc,_0xcdc701,_0x112ad9,_0x4673d8,_0x461fd7,_0x251ad7,_0x45f591,_0x1bd83b,_0x26ddd4),__publicField(this,_0x579de3(0x34e),'awaiting_with_pending'),__publicField(this,'_resendTimeout',0x0),__publicField(this,_0x579de3(0x312)),__publicField(this,'_sender'),(this[_0x579de3(0x45a)]=_0x1c2b8d,this[_0x579de3(0x3c9)]=_0x303b70,this['_transformService']=_0x1ffc78,this['localCacheService']=_0x26ddd4,_0x33da70&&(this[_0x579de3(0x312)]=_0x33da70,this[_0x579de3(0x424)]=this[_0x579de3(0x312)]['subscribe'](({reqId:_0x308fe7,timeout:_0x3fc2ca})=>{var _0x4bf4bd=_0x579de3;this[_0x4bf4bd(0x505)](_0x308fe7,_0x3fc2ca);})));}[_0x51f535(0x411)](_0x1a6fea){var _0x3fd261=_0x51f535;return this[_0x3fd261(0x345)][_0x3fd261(0x4c5)](_0x1a6fea),this;}[_0x51f535(0x23f)](_0xfd5a8f){var _0x4006fe=_0x51f535;if(this[_0x4006fe(0x4a5)](_0xfd5a8f))return this[_0x4006fe(0x3a2)](),this[_0x4006fe(0x45a)][_0x4006fe(0x3b3)](FetchingMissState,this[_0x4006fe(0x1d6)],this[_0x4006fe(0x425)],this[_0x4006fe(0x3ed)],this[_0x4006fe(0x345)],null,[_0xfd5a8f],this[_0x4006fe(0x2e0)]);try{const _0x435ad1=this[_0x4006fe(0x45e)][_0x4006fe(0x4cc)]([_0xfd5a8f],[this[_0x4006fe(0x3ed)]],!0x1);if(isTransformChangesetsSuccess(_0x435ad1)){const {c1Prime:_0x7d6e63,c2Prime:_0x24fc14}=_0x435ad1,_0x33627a=this[_0x4006fe(0x45e)]['transformMutationsWithChangeset'](_0x7d6e63[0x0],this[_0x4006fe(0x345)]);if(isTransformMutationsWithChangesetSuccess(_0x33627a)){const {c1Prime:_0x2ed7d6,m2Prime:_0x4af010}=_0x33627a;return this['_executeRemoteChangeset'](_0x2ed7d6),_0x24fc14[0x0]['baseRev']=this[_0x4006fe(0x321)](),this['_clearScheduledTask'](),this[_0x4006fe(0x45a)][_0x4006fe(0x3b3)](AwaitingWithPendingState,this[_0x4006fe(0x1d6)],this[_0x4006fe(0x425)],_0x24fc14[0x0],_0x4af010,this['_handler'],void 0x0);}throw _0x33627a[_0x4006fe(0x269)];}throw _0x435ad1[_0x4006fe(0x269)];}catch(_0x424903){return this[_0x4006fe(0x3c9)][_0x4006fe(0x269)](_0x424903),this[_0x4006fe(0x4aa)](!0x1);}}['onRemoteAck'](_0x12cfbf){var _0x10d36f=_0x51f535;if(this[_0x10d36f(0x3a2)](),this[_0x10d36f(0x4a5)](_0x12cfbf))return this[_0x10d36f(0x45a)]['createInstance'](FetchingMissState,this[_0x10d36f(0x1d6)],this[_0x10d36f(0x425)],null,this[_0x10d36f(0x345)],this[_0x10d36f(0x3ed)],[],this[_0x10d36f(0x2e0)]);this[_0x10d36f(0x42a)]();const _0xe22fcf=this['_injector'][_0x10d36f(0x3b3)](PendingState,this[_0x10d36f(0x1d6)],this[_0x10d36f(0x425)],this[_0x10d36f(0x345)],this[_0x10d36f(0x2e0)]);return _0xe22fcf[_0x10d36f(0x3f4)](),_0xe22fcf['_updateLocalCache'](),_0xe22fcf;}[_0x51f535(0x236)](_0x469d14){var _0x1f0125=_0x51f535;return this['_onConflict'](!!(_0x469d14!=null&&_0x469d14[_0x1f0125(0x362)]));}[_0x51f535(0x379)](_0x507732){var _0x1c767e=_0x51f535;return this['_resendTimeout']>MAX_RETRY_TIMEOUT?this['toggleOffline']():(this['_resendTimer']=createTimerObservable$(this[_0x1c767e(0x472)],{'timeout':this['_resendTimeout'],'reqId':_0x507732['reqId']}),this['_sender']=this[_0x1c767e(0x312)][_0x1c767e(0x4d5)](({reqId:_0x22f7c7,timeout:_0x34b421})=>{var _0x4c9f0e=_0x1c767e;this[_0x4c9f0e(0x505)](_0x22f7c7,_0x34b421);}),this);}[_0x51f535(0x1ff)](){var _0x1622aa=_0x51f535;return this['_clearScheduledTask'](),this[_0x1622aa(0x45a)][_0x1622aa(0x3b3)](OfflineState,this[_0x1622aa(0x1d6)],this[_0x1622aa(0x425)],this[_0x1622aa(0x3ed)],this['_pendingMutations'],this[_0x1622aa(0x2e0)]);}[_0x51f535(0x4e5)](){return this;}[_0x51f535(0x502)](){var _0x1f0a93=_0x51f535;this['_handler'][_0x1f0a93(0x3f0)](this[_0x1f0a93(0x3ed)]);}[_0x51f535(0x4aa)](_0x4485b2){var _0x1b6cc2=_0x51f535;return this[_0x1b6cc2(0x3a2)](),this[_0x1b6cc2(0x45a)][_0x1b6cc2(0x3b3)](ConflictState,this[_0x1b6cc2(0x1d6)],this[_0x1b6cc2(0x425)],null,this[_0x1b6cc2(0x345)],this[_0x1b6cc2(0x2e0)],_0x4485b2);}[_0x51f535(0x505)](_0x45c64d,_0x20f9f9){var _0xec0d42=_0x51f535,_0x35b10d;_0x45c64d===((_0x35b10d=this[_0xec0d42(0x3ed)])==null?void 0x0:_0x35b10d[_0xec0d42(0x279)])&&(this['resend'](),this[_0xec0d42(0x472)]=_0x20f9f9===0x0?0x3e8:_0x20f9f9*0x2);}['_clearScheduledTask'](){var _0x353371=_0x51f535,_0x2c7ca8;(_0x2c7ca8=this[_0x353371(0x424)])==null||_0x2c7ca8['unsubscribe'](),this[_0x353371(0x472)]=0x0;}},__name(_a9,'AwaitingWithPendingState'),_a9);AwaitingWithPendingState=__decorateClass$d([__decorateParam$d(0x6,Inject(Injector)),__decorateParam$d(0x7,Inject(RevisionService)),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,ILogService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUndoRedoService),__decorateParam$d(0xc,Optional(ILocalCacheService))],AwaitingWithPendingState);var _a10;let ConflictState=(_a10=class extends CollaborationState{constructor(_0x2ae99c,_0x30864e,_0x48f55c,_0x180341,_0x54f701,_0x30da59=!0x1,_0x51da0e,_0x5858d9,_0x2f7d8b,_0x364f79,_0x78e3b9,_0x25c839,_0x42356f){var _0x17cc8f=_0x51f535;super(_0x2ae99c,_0x30864e,_0x48f55c,_0x180341,_0x54f701,_0x5858d9,_0x2f7d8b,_0x364f79,_0x42356f),__publicField(this,_0x17cc8f(0x34e),_0x17cc8f(0x2dd)),(this[_0x17cc8f(0x2ae)]=_0x30da59,this[_0x17cc8f(0x2cf)]=_0x51da0e,this['_localeService']=_0x78e3b9,this[_0x17cc8f(0x36f)]=_0x25c839,this[_0x17cc8f(0x456)]=_0x42356f,this['_showConflictNotification'](),this[_0x17cc8f(0x3d9)](),this[_0x17cc8f(0x241)]());}[_0x51f535(0x411)](){return this;}[_0x51f535(0x23f)](){return this;}['onRemoteAck'](){return this;}[_0x51f535(0x236)](){return this;}[_0x51f535(0x379)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x51f535(0x502)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x51f535(0x3d9)](){var _0x547957=_0x51f535,_0x3ec430;(_0x3ec430=this[_0x547957(0x34b)])==null||_0x3ec430[_0x547957(0x296)](this['unitID'],this['type'],null,[]);}[_0x51f535(0x4fd)](){var _0x41c54a=_0x51f535;this[_0x41c54a(0x2ae)]?this[_0x41c54a(0x36f)][_0x41c54a(0x209)]({'id':CollaborationUIEventId[_0x41c54a(0x20f)]}):this['_collaborationUIEventService'][_0x41c54a(0x209)]({'id':CollaborationUIEventId[_0x41c54a(0x458)]});}[_0x51f535(0x241)](){var _0x4c46d6=_0x51f535;this[_0x4c46d6(0x2cf)][_0x4c46d6(0x3e6)](new WorkbookEditablePermission(this['unitID'])['id'],!0x1);}},__name(_a10,'ConflictState'),_a10);ConflictState=__decorateClass$d([__decorateParam$d(0x6,Inject(IPermissionService)),__decorateParam$d(0x7,ICommandService),__decorateParam$d(0x8,IUndoRedoService),__decorateParam$d(0x9,Inject(RevisionService)),__decorateParam$d(0xa,Inject(LocaleService)),__decorateParam$d(0xb,Inject(CollaborationUIEventService)),__decorateParam$d(0xc,Optional(ILocalCacheService))],ConflictState);var _a11;let OfflineState=(_a11=class extends CollaborationState{constructor(_0x59f488,_0x57872d,_0x3e2d94,_0x2c05f1,_0x22f327,_0x538933,_0x38655c,_0x4b9d0e,_0x2dd544,_0x514eb7){var _0xb9bb6a=_0x51f535;super(_0x59f488,_0x57872d,_0x3e2d94,_0x2c05f1,_0x22f327,_0x4b9d0e,_0x2dd544,_0x38655c,_0x514eb7),__publicField(this,_0xb9bb6a(0x34e),'offline'),this[_0xb9bb6a(0x45a)]=_0x538933;}[_0x51f535(0x411)](_0x250bd8){var _0x4f05e0=_0x51f535;return this[_0x4f05e0(0x345)]['push'](_0x250bd8),this[_0x4f05e0(0x2d0)](),this;}[_0x51f535(0x23f)](_0x1716ba){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x51f535(0x476)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x51f535(0x236)](){var _0x49343c=_0x51f535;throw new Error(_0x49343c(0x4c0));}[_0x51f535(0x379)](){return this;}[_0x51f535(0x1ff)](){return this;}[_0x51f535(0x4e5)](){var _0x5f4e88=_0x51f535;const {_injector:_0x21dbd3,_pendingMutations:_0x4006e3,_awaitingChangeset:_0x6fd12d,unitID:_0x4c872e,_handler:_0x535643,type:_0x563bd3}=this,_0x3ce277=createOnlineState(_0x21dbd3,_0x4c872e,_0x563bd3,_0x6fd12d,_0x4006e3,_0x535643);return _0x3ce277 instanceof PendingState?_0x3ce277[_0x5f4e88(0x3f4)]():(_0x3ce277 instanceof AwaitingWithPendingState||_0x3ce277 instanceof AwaitingState)&&_0x3ce277['resend'](),_0x3ce277;}[_0x51f535(0x502)](){var _0x4c7e3f=_0x51f535;throw new Error(_0x4c7e3f(0x2b5));}},__name(_a11,_0x51f535(0x3f2)),_a11);OfflineState=__decorateClass$d([__decorateParam$d(0x5,Inject(Injector)),__decorateParam$d(0x6,Inject(RevisionService)),__decorateParam$d(0x7,ICommandService),__decorateParam$d(0x8,IUndoRedoService),__decorateParam$d(0x9,Optional(ILocalCacheService))],OfflineState);var _a12;let FetchingMissState=(_a12=class extends CollaborationState{constructor(_0x58c4e9,_0x38ec81,_0x441e1e,_0x3e61a3,_0x59a116,_0x30db52,_0x2afc63,_0x1fd84c,_0x4529db,_0x676ba8,_0x39eda3,_0x252b1e,_0x4109b7,_0x3a3000){var _0x3116ad=_0x51f535;super(_0x58c4e9,_0x38ec81,_0x441e1e,_0x3e61a3,_0x2afc63,_0x39eda3,_0x252b1e,_0x4529db,_0x3a3000),__publicField(this,'status',_0x3116ad(0x2c4)),(this['_acknowledgedAwaitingChangeset']=_0x59a116,this[_0x3116ad(0x227)]=_0x30db52,this['_injector']=_0x1fd84c,this[_0x3116ad(0x3c9)]=_0x676ba8,this['_transformService']=_0x4109b7,this[_0x3116ad(0x456)]=_0x3a3000);}[_0x51f535(0x31e)](_0x3831c1){var _0x5c67b9=_0x51f535;try{const _0x44c105=[..._0x3831c1,...this[_0x5c67b9(0x227)]],_0x24e279=[this[_0x5c67b9(0x3ed)]||this[_0x5c67b9(0x1d0)]]['filter'](_0x2d82dc=>!!_0x2d82dc);let _0x528a66,_0x13f49f;if(_0x24e279[_0x5c67b9(0x1d3)]){const _0x37952c=this[_0x5c67b9(0x45e)][_0x5c67b9(0x4cc)](_0x44c105,_0x24e279,!0x1);if(!isTransformChangesetsSuccess(_0x37952c))throw _0x37952c['error'];_0x528a66=_0x37952c[_0x5c67b9(0x471)],_0x13f49f=_0x37952c[_0x5c67b9(0x242)];}else _0x528a66=_0x44c105,_0x13f49f=[];let _0x989bd2=this[_0x5c67b9(0x345)];_0x528a66[_0x5c67b9(0x41c)](_0x534c63=>{var _0x3a8ec1=_0x5c67b9;let _0x3d68d1;if(_0x989bd2['length']){const _0x2a2c6a=this['_transformService'][_0x3a8ec1(0x1f6)](_0x534c63,_0x989bd2);if(!isTransformMutationsWithChangesetSuccess(_0x2a2c6a))throw _0x2a2c6a[_0x3a8ec1(0x269)];_0x3d68d1=_0x2a2c6a[_0x3a8ec1(0x471)],_0x989bd2=_0x2a2c6a[_0x3a8ec1(0x38e)];}else _0x3d68d1=_0x534c63;this[_0x3a8ec1(0x28a)](_0x3d68d1);}),this[_0x5c67b9(0x1d0)]&&this[_0x5c67b9(0x42a)](),this[_0x5c67b9(0x3ed)]&&_0x13f49f[_0x5c67b9(0x1d3)]&&(_0x13f49f[0x0][_0x5c67b9(0x2f3)]=this[_0x5c67b9(0x321)]());let _0x295378;if(this[_0x5c67b9(0x3ed)]&&_0x989bd2[_0x5c67b9(0x1d3)]!==0x0)_0x295378=this[_0x5c67b9(0x45a)][_0x5c67b9(0x3b3)](AwaitingWithPendingState,this[_0x5c67b9(0x1d6)],this[_0x5c67b9(0x425)],_0x13f49f[0x0],_0x989bd2,this[_0x5c67b9(0x2e0)],void 0x0);else{if(this[_0x5c67b9(0x3ed)]&&_0x989bd2[_0x5c67b9(0x1d3)]===0x0)_0x13f49f[0x0][_0x5c67b9(0x2f3)]=this[_0x5c67b9(0x321)](),_0x295378=this[_0x5c67b9(0x45a)][_0x5c67b9(0x3b3)](AwaitingState,this['unitID'],this[_0x5c67b9(0x425)],_0x13f49f[0x0],this['_handler']);else{if(_0x989bd2['length']!==0x0){const _0x5d91ba=this[_0x5c67b9(0x45a)][_0x5c67b9(0x3b3)](PendingState,this[_0x5c67b9(0x1d6)],this[_0x5c67b9(0x425)],_0x989bd2,this[_0x5c67b9(0x2e0)]);_0x5d91ba[_0x5c67b9(0x3f4)](),_0x295378=_0x5d91ba;}else _0x295378=this[_0x5c67b9(0x45a)][_0x5c67b9(0x3b3)](SyncedState,this[_0x5c67b9(0x1d6)],this[_0x5c67b9(0x425)],this[_0x5c67b9(0x2e0)]);}}return _0x295378[_0x5c67b9(0x2d0)](),_0x295378;}catch(_0x286f96){return this[_0x5c67b9(0x3c9)][_0x5c67b9(0x269)]('[FetchMissState]',_0x5c67b9(0x26b),_0x286f96),this[_0x5c67b9(0x45a)][_0x5c67b9(0x3b3)](ConflictState,this[_0x5c67b9(0x1d6)],this['type'],this['_awaitingChangeset'],this[_0x5c67b9(0x345)],this[_0x5c67b9(0x2e0)],!0x1);}}[_0x51f535(0x502)](){var _0x5ba332=_0x51f535;throw new Error(_0x5ba332(0x4b8));}[_0x51f535(0x411)](_0x4c7442){var _0x56ccca=_0x51f535;return this[_0x56ccca(0x345)]['push'](_0x4c7442),this;}[_0x51f535(0x23f)](_0x41ac06){var _0x258778=_0x51f535;return this[_0x258778(0x227)][_0x258778(0x4c5)](_0x41ac06),this;}['onRemoteAck'](_0x47b457){var _0x44f80c=_0x51f535;if(this[_0x44f80c(0x3ed)])return this['_acknowledgedAwaitingChangeset']=this[_0x44f80c(0x3ed)],this[_0x44f80c(0x3ed)]=null,this;throw new Error(_0x44f80c(0x324));}[_0x51f535(0x236)](_0x40154a){var _0x545dd8=_0x51f535;return this[_0x545dd8(0x4aa)](!!(_0x40154a!=null&&_0x40154a[_0x545dd8(0x362)]));}['onRemoteRetry'](){return this;}[_0x51f535(0x1ff)](){var _0x29b08a=_0x51f535;return this[_0x29b08a(0x45a)][_0x29b08a(0x3b3)](OfflineState,this[_0x29b08a(0x1d6)],this[_0x29b08a(0x425)],this[_0x29b08a(0x3ed)],this['_pendingMutations'],this[_0x29b08a(0x2e0)]);}[_0x51f535(0x4e5)](){return this;}[_0x51f535(0x4aa)](_0x2a32ff){var _0x15d08b=_0x51f535;return this[_0x15d08b(0x45a)][_0x15d08b(0x3b3)](ConflictState,this[_0x15d08b(0x1d6)],this[_0x15d08b(0x425)],this[_0x15d08b(0x3ed)],this[_0x15d08b(0x345)],this['_handler'],_0x2a32ff);}},__name(_a12,_0x51f535(0x29c)),_a12);FetchingMissState=__decorateClass$d([__decorateParam$d(0x7,Inject(Injector)),__decorateParam$d(0x8,Inject(RevisionService)),__decorateParam$d(0x9,ILogService),__decorateParam$d(0xa,ICommandService),__decorateParam$d(0xb,IUndoRedoService),__decorateParam$d(0xc,ITransformService),__decorateParam$d(0xd,Optional(ILocalCacheService))],FetchingMissState);function createOnlineState(_0x28a440,_0x5ccf35,_0x143a0e,_0x3d778f,_0x4963aa,_0x2ed471){var _0x2e236f=_0x51f535;return _0x3d778f&&_0x4963aa[_0x2e236f(0x1d3)]?_0x28a440[_0x2e236f(0x3b3)](AwaitingWithPendingState,_0x5ccf35,_0x143a0e,_0x3d778f,_0x4963aa,_0x2ed471,void 0x0):_0x3d778f?_0x28a440[_0x2e236f(0x3b3)](AwaitingState,_0x5ccf35,_0x143a0e,_0x3d778f,_0x2ed471):_0x4963aa[_0x2e236f(0x1d3)]?_0x28a440[_0x2e236f(0x3b3)](PendingState,_0x5ccf35,_0x143a0e,_0x4963aa,_0x2ed471):_0x28a440['createInstance'](SyncedState,_0x5ccf35,_0x143a0e,_0x2ed471);}__name(createOnlineState,_0x51f535(0x292));var __defProp$c=Object[_0x51f535(0x2c3)],__getOwnPropDesc$c=Object['getOwnPropertyDescriptor'],__decorateClass$c=__name((_0x23586f,_0x1c4465,_0x5f148b,_0x15c553)=>{var _0x85cd2d=_0x51f535;for(var _0x4195f0=_0x15c553>0x1?void 0x0:_0x15c553?__getOwnPropDesc$c(_0x1c4465,_0x5f148b):_0x1c4465,_0x5d9b9b=_0x23586f[_0x85cd2d(0x1d3)]-0x1,_0xd9a29c;_0x5d9b9b>=0x0;_0x5d9b9b--)(_0xd9a29c=_0x23586f[_0x5d9b9b])&&(_0x4195f0=(_0x15c553?_0xd9a29c(_0x1c4465,_0x5f148b,_0x4195f0):_0xd9a29c(_0x4195f0))||_0x4195f0);return _0x15c553&&_0x4195f0&&__defProp$c(_0x1c4465,_0x5f148b,_0x4195f0),_0x4195f0;},_0x51f535(0x468)),__decorateParam$c=__name((_0x2a6029,_0x2ca25a)=>(_0x196ff5,_0x104979)=>_0x2ca25a(_0x196ff5,_0x104979,_0x2a6029),'__decorateParam$c'),_a13;let CollaborationEntity=(_a13=class extends RxDisposable{constructor(_0x405ea8,_0x3e191d,_0x5968f7,_0x1553f0,_0x456c0f,_0x3c7563,_0xe6634b,_0x371b56,_0x51cf81,_0xed09d2,_0x7bc4fa,_0x17b051,_0x238803){var _0x4b25b5=_0x51f535;super(),__publicField(this,_0x4b25b5(0x352),new BehaviorSubject(null)),__publicField(this,_0x4b25b5(0x262),this[_0x4b25b5(0x352)][_0x4b25b5(0x38b)]()),__publicField(this,_0x4b25b5(0x2df)),__publicField(this,_0x4b25b5(0x259),!0x1),__publicField(this,_0x4b25b5(0x4ed),''),__publicField(this,_0x4b25b5(0x408),0x0),__publicField(this,_0x4b25b5(0x3d5),this[_0x4b25b5(0x262)][_0x4b25b5(0x283)](_0x20344d(_0x3e4382=>_0x3e4382?_0x3e4382['status']:CollaborationStatus[_0x4b25b5(0x215)]),shareReplay(0x1))),__publicField(this,_0x4b25b5(0x492),!0x1),__publicField(this,'_remoteChangesetQueue',[]),(this[_0x4b25b5(0x1d6)]=_0x405ea8,this[_0x4b25b5(0x3fd)]=_0x3e191d,this['_type']=_0x5968f7,this['_injector']=_0x1553f0,this[_0x4b25b5(0x36c)]=_0x456c0f,this['_localeService']=_0x3c7563,this[_0x4b25b5(0x1df)]=_0xe6634b,this[_0x4b25b5(0x40a)]=_0x371b56,this['_logService']=_0x51cf81,this[_0x4b25b5(0x40d)]=_0xed09d2,this[_0x4b25b5(0x2cf)]=_0x7bc4fa,this[_0x4b25b5(0x37c)]=_0x17b051,this[_0x4b25b5(0x34b)]=_0x238803);}get[_0x51f535(0x497)](){return this['_state'];}async[_0x51f535(0x351)](){var _0x53f98a=_0x51f535;if(this[_0x53f98a(0x497)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x51f535(0x4f4)](){return this['_collaborationPaused']=!0x0,toDisposable(()=>{var _0x49621a=_0x46c5;this[_0x49621a(0x259)]=!0x1,this[_0x49621a(0x45d)]();});}['onLocalMutation'](_0x3e8e73){this['_onLocalMutation'](_0x3e8e73);}[_0x51f535(0x1db)](_0x7fb0cc){var _0x26b809=_0x51f535;this[_0x26b809(0x2df)]=_0x7fb0cc,this[_0x26b809(0x352)][_0x26b809(0x24d)](_0x7fb0cc);}async['_init'](){var _0x1c36c9=_0x51f535,_0x1ac3af;this[_0x1c36c9(0x1db)](await this[_0x1c36c9(0x1e4)]()),this[_0x1c36c9(0x37c)]&&((_0x1ac3af=this[_0x1c36c9(0x37c)])==null||_0x1ac3af['editingUnit'](this['unitID']),this[_0x1c36c9(0x1fe)](this[_0x1c36c9(0x37c)][_0x1c36c9(0x382)](this[_0x1c36c9(0x1d6)])[_0x1c36c9(0x4d5)](_0x2a2620=>{var _0x43ffbf=_0x1c36c9;this[_0x43ffbf(0x3c9)][_0x43ffbf(0x46e)](_0x43ffbf(0x32e),_0x43ffbf(0x482),_0x2a2620),_0x2a2620===UnitStatus[_0x43ffbf(0x28e)]?(this[_0x43ffbf(0x40a)][_0x43ffbf(0x209)]({'id':CollaborationUIEventId[_0x43ffbf(0x50b)]}),this[_0x43ffbf(0x2cf)][_0x43ffbf(0x3e6)](new WorkbookEditablePermission(this['unitID'])['id'],!0x1),this['_permissionService'][_0x43ffbf(0x2a1)](!0x1)):(this[_0x43ffbf(0x2cf)][_0x43ffbf(0x3e6)](new WorkbookEditablePermission(this[_0x43ffbf(0x1d6)])['id'],!0x0),this[_0x43ffbf(0x2cf)][_0x43ffbf(0x2a1)](!0x0));})));let _0x2bf5c2=!0x1;return this[_0x1c36c9(0x1fe)](this[_0x1c36c9(0x3fd)]['sessionStatus$'][_0x1c36c9(0x4d5)](_0x2579ca=>{var _0x255dd0=_0x1c36c9;_0x2579ca===SessionStatus['ONLINE']?this['_toggleOnline'](_0x2bf5c2):_0x2579ca===SessionStatus[_0x255dd0(0x215)]&&(_0x2bf5c2=!0x0,this[_0x255dd0(0x315)]());})),this[_0x1c36c9(0x1fe)](this[_0x1c36c9(0x3fd)][_0x1c36c9(0x452)][_0x1c36c9(0x4d5)](_0x1f5687=>{var _0x528043=_0x1c36c9;try{switch(_0x1f5687['eventID']){case CollaborationEvent['NEW_CHANGESETS']:{this[_0x528043(0x207)](parseProtocolChangeset(_0x1f5687['data']));break;}case CollaborationEvent['CHANGESET_ACK']:{this[_0x528043(0x3fe)](_0x1f5687[_0x528043(0x432)]);break;}case CollaborationEvent[_0x528043(0x33b)]:{this[_0x528043(0x280)]();break;}case CollaborationEvent[_0x528043(0x3d2)]:{this[_0x528043(0x25f)](_0x1f5687[_0x528043(0x432)]);break;}case CollaborationEvent[_0x528043(0x404)]:{this['_onFetchMissResult'](_0x1f5687[_0x528043(0x432)][_0x528043(0x441)][_0x528043(0x2b8)](_0x4df500=>parseProtocolChangeset(_0x4df500)));break;}case CollaborationEvent[_0x528043(0x228)]:{this[_0x528043(0x280)]({'isPermissionRej':!0x0});break;}case CollaborationEvent['UNISCRIPT_RUN']:break;}}catch(_0x20da1e){throw console[_0x528043(0x269)]('Error\x20on\x20receiving\x20event',_0x20da1e),_0x20da1e;}})),this['_state'];}[_0x51f535(0x4da)](){var _0x10b675=_0x51f535;this[_0x10b675(0x492)]=!0x1;}[_0x51f535(0x2f8)](){var _0x5414d1=_0x51f535;if(this[_0x5414d1(0x492)])throw new Error(_0x5414d1(0x2c2));this[_0x5414d1(0x492)]=!0x0;}['_onLocalMutation'](_0x86c36f){var _0x1c0bbb=_0x51f535;this[_0x1c0bbb(0x2f8)](),this[_0x1c0bbb(0x1db)](this[_0x1c0bbb(0x2df)]['appendMutation'](_0x86c36f)),this['_unlockTransition']();}[_0x51f535(0x207)](_0x198587){var _0x52867c=_0x51f535;if(!(_0x198587[_0x52867c(0x4f3)]<=this[_0x52867c(0x1df)][_0x52867c(0x27f)](this['unitID']))){if(this[_0x52867c(0x259)]){this[_0x52867c(0x2ee)][_0x52867c(0x4c5)](_0x198587);return;}this[_0x52867c(0x524)](_0x198587);}}[_0x51f535(0x45d)](){var _0x4b8f26=_0x51f535;this['_remoteChangesetQueue']['forEach'](_0xf5e9b6=>this['_applyRemoteChangeset'](_0xf5e9b6)),this[_0x4b8f26(0x2ee)]=[];}[_0x51f535(0x524)](_0x39f81e){var _0x525da0=_0x51f535;const _0x3f843b=this[_0x525da0(0x36c)][_0x525da0(0x20c)][_0x525da0(0x51a)](this[_0x525da0(0x36c)][_0x525da0(0x20c)][_0x525da0(0x484)]()['COMPRESS_MUTATION_APPLY'])(_0x39f81e[_0x525da0(0x39d)],null)||_0x39f81e[_0x525da0(0x39d)],_0x33fd76={..._0x39f81e,'mutations':_0x3f843b};this[_0x525da0(0x2f8)](),this[_0x525da0(0x1db)](this[_0x525da0(0x2df)][_0x525da0(0x23f)](_0x33fd76)),this[_0x525da0(0x4da)]();}['_onRemoteACK'](_0x6145e1){var _0x366767=_0x51f535;this[_0x366767(0x2f8)](),this['_updateState'](this[_0x366767(0x2df)][_0x366767(0x476)](_0x6145e1)),this[_0x366767(0x4da)]();}['_onRemoteRejected'](_0x2037b9){var _0x545c0f=_0x51f535;this[_0x545c0f(0x2f8)](),this[_0x545c0f(0x1db)](this[_0x545c0f(0x2df)]['onRemoteRej'](_0x2037b9)),this['_unlockTransition']();}[_0x51f535(0x25f)](_0x2ab324){var _0x16b213=_0x51f535;this[_0x16b213(0x2f8)](),this[_0x16b213(0x1db)](this[_0x16b213(0x2df)][_0x16b213(0x379)](_0x2ab324)),this[_0x16b213(0x4da)]();}[_0x51f535(0x273)](_0x4371fa){var _0x4c1a16=_0x51f535;if(!(this[_0x4c1a16(0x2df)]instanceof FetchingMissState))throw new TypeError(_0x4c1a16(0x23b));const _0x642e8c=_0x4371fa[_0x4c1a16(0x2b8)](_0x4d6c6e=>{var _0x58e858=_0x4c1a16;const _0x9761ae=this[_0x58e858(0x36c)][_0x58e858(0x20c)][_0x58e858(0x51a)](this['_compressMutationService'][_0x58e858(0x20c)][_0x58e858(0x484)]()[_0x58e858(0x313)])(_0x4d6c6e[_0x58e858(0x39d)],null)||_0x4d6c6e[_0x58e858(0x39d)];return{..._0x4d6c6e,'mutations':_0x9761ae};});this['_lockTransition'](),this[_0x4c1a16(0x1db)](this[_0x4c1a16(0x2df)][_0x4c1a16(0x31e)](_0x642e8c)),this[_0x4c1a16(0x4da)]();}['_toggleOffline'](){var _0x15bf9d=_0x51f535;this[_0x15bf9d(0x2f8)](),this['_updateState'](this[_0x15bf9d(0x2df)]['toggleOffline']()),this[_0x15bf9d(0x4da)]();}['_toggleOnline'](_0x1e25fe=!0x1){var _0x5cf609=_0x51f535;this[_0x5cf609(0x2f8)](),this[_0x5cf609(0x1db)](this['_state'][_0x5cf609(0x4e5)]()),this['_unlockTransition']();const _0x343be6=this[_0x5cf609(0x2df)];_0x1e25fe&&_0x343be6 instanceof SyncedState&&(this[_0x5cf609(0x2f8)](),this[_0x5cf609(0x1db)](_0x343be6['fetchMiss']()),this['_unlockTransition']());}async[_0x51f535(0x1e4)](){return new Promise(_0x39e19e=>{var _0x48220c=_0x46c5;this[_0x48220c(0x3fd)][_0x48220c(0x1fd)][_0x48220c(0x283)](_0x18ca8f(0x1))[_0x48220c(0x4d5)](async _0x45d135=>{var _0x3b439c=_0x48220c;_0x39e19e(await this[_0x3b439c(0x2e6)](_0x45d135===SessionStatus[_0x3b439c(0x32a)]));});});}[_0x51f535(0x26d)](){var _0x49e3e3=_0x51f535;const _0x4c8b53=this['unitID'];return{'onStateChange':__name((_0x39cb0b,_0x2882ca)=>{var _0x3eae35=_0x46c5;if(_0x39cb0b!==this[_0x3eae35(0x2df)])throw new Error(_0x3eae35(0x434)+_0x39cb0b[_0x3eae35(0x34e)]+_0x3eae35(0x3e9)+_0x2882ca[_0x3eae35(0x34e)]+_0x3eae35(0x49a)+this[_0x3eae35(0x2df)]['status']);this[_0x3eae35(0x1db)](_0x2882ca);},_0x49e3e3(0x48a)),'onSendChangeset':__name(_0x1ecee3=>{var _0x4d7d29=_0x49e3e3;_0x1ecee3[_0x4d7d29(0x214)]||(_0x1ecee3['sid']=this[_0x4d7d29(0x4ed)],_0x1ecee3[_0x4d7d29(0x279)]=++this[_0x4d7d29(0x408)]);const _0x390802={'eventID':CollaborationEvent['SUBMIT_CHANGESET'],'data':{'unitID':_0x1ecee3[_0x4d7d29(0x1d6)],'unitType':this['_type'],'changeset':_0x1ecee3,'memberID':this[_0x4d7d29(0x3fd)][_0x4d7d29(0x443)]()}};this[_0x4d7d29(0x3fd)][_0x4d7d29(0x2b6)](_0x390802,this[_0x4d7d29(0x1d6)]);},'onSendChangeset'),'onMissingChangesets':__name(({from:_0x4c31a1,to:_0x5af652})=>{var _0x469214=_0x49e3e3;this[_0x469214(0x3c9)][_0x469214(0x46e)](_0x469214(0x32e),_0x469214(0x4e1)+_0x4c31a1+_0x469214(0x455)+_0x5af652);const _0x3a861d={'eventID':CollaborationEvent[_0x469214(0x4f9)],'data':{'unitID':_0x4c8b53,'unitType':this[_0x469214(0x239)],'from':_0x4c31a1,'to':_0x5af652}};this[_0x469214(0x3fd)][_0x469214(0x2b6)](_0x3a861d,this[_0x469214(0x1d6)]);},_0x49e3e3(0x2d9))};}async[_0x51f535(0x2e6)](_0x2d85c2){var _0x20d9f1=_0x51f535,_0x14af49,_0x37b106,_0x570afa;const _0x3da0ce=await((_0x14af49=this[_0x20d9f1(0x34b)])==null?void 0x0:_0x14af49[_0x20d9f1(0x373)](this['unitID'])),_0x3237cb=(_0x37b106=_0x3da0ce==null?void 0x0:_0x3da0ce['mutations'])!=null?_0x37b106:[],_0x4878ab=(_0x570afa=_0x3da0ce==null?void 0x0:_0x3da0ce[_0x20d9f1(0x4ca)])!=null?_0x570afa:null,_0x4aa45a=!!(_0x4878ab!=null&&_0x4878ab[_0x20d9f1(0x214)])&&!!(_0x4878ab!=null&&_0x4878ab[_0x20d9f1(0x279)]);this[_0x20d9f1(0x4ed)]=_0x4aa45a?_0x4878ab[_0x20d9f1(0x214)]:v4(),this[_0x20d9f1(0x408)]=_0x4aa45a?_0x4878ab[_0x20d9f1(0x279)]:0x0;const _0x24746e=this[_0x20d9f1(0x1d6)];try{this[_0x20d9f1(0x271)](_0x4878ab,_0x3237cb);}catch(_0x41fd8f){this[_0x20d9f1(0x3c9)][_0x20d9f1(0x269)](_0x41fd8f);}const _0x39f524=this[_0x20d9f1(0x26d)]();if(_0x2d85c2){const _0x44abeb=createOnlineState(this[_0x20d9f1(0x45a)],_0x24746e,this['_type'],_0x4878ab,_0x3237cb,_0x39f524);return _0x44abeb instanceof PendingState?_0x44abeb[_0x20d9f1(0x3f4)]():(_0x44abeb instanceof AwaitingWithPendingState||_0x44abeb instanceof AwaitingState)&&_0x44abeb[_0x20d9f1(0x502)](),_0x44abeb;}return this[_0x20d9f1(0x45a)][_0x20d9f1(0x3b3)](OfflineState,_0x24746e,this[_0x20d9f1(0x239)],_0x4878ab,_0x3237cb,_0x39f524);}[_0x51f535(0x271)](_0x404c30,_0xaf1b28){var _0x5c216f=_0x51f535,_0xc98142,_0x54fa8f;const _0x5d62be=this[_0x5c216f(0x36c)][_0x5c216f(0x20c)][_0x5c216f(0x51a)](this[_0x5c216f(0x36c)]['interceptor'][_0x5c216f(0x484)]()[_0x5c216f(0x313)]);(_0xc98142=_0x5d62be((_0x404c30==null?void 0x0:_0x404c30['mutations'])||[],null))==null||_0xc98142[_0x5c216f(0x41c)](_0x246905=>this[_0x5c216f(0x40d)][_0x5c216f(0x20d)](_0x246905['id'],_0x246905[_0x5c216f(0x3cc)])),(_0x54fa8f=_0x5d62be(_0xaf1b28||[],null))==null||_0x54fa8f[_0x5c216f(0x41c)](_0x24c665=>this[_0x5c216f(0x40d)][_0x5c216f(0x20d)](_0x24c665['id'],_0x24c665[_0x5c216f(0x3cc)]));}},__name(_a13,'CollaborationEntity'),_a13);CollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(CollaborationUIEventService)),__decorateParam$c(0x8,ILogService),__decorateParam$c(0x9,ICommandService),__decorateParam$c(0xa,IPermissionService),__decorateParam$c(0xb,Optional(ISingleActiveUnitService)),__decorateParam$c(0xc,Optional(ILocalCacheService))],CollaborationEntity);var _a14;let DocCollaborationEntity=(_a14=class extends CollaborationEntity{constructor(_0x5caf47,_0x6280a9,_0x18b458,_0x1ff145,_0x169c68,_0x515a8f,_0x4872de,_0x37ed6e,_0x67519e,_0x191e79,_0x594496,_0x59eab3,_0x365977){var _0x4be97f=_0x51f535;super(_0x5caf47,_0x18b458,_0x6280a9,_0x1ff145,_0x169c68,_0x515a8f,_0x4872de,_0x37ed6e,_0x67519e,_0x191e79,_0x594496,_0x59eab3,_0x365977),__publicField(this,_0x4be97f(0x29a),null),(this[_0x4be97f(0x1d6)]=_0x5caf47,this[_0x4be97f(0x425)]=_0x6280a9);}[_0x51f535(0x277)](_0x333f35){this['_handlerCallback']=_0x333f35;}[_0x51f535(0x4b0)](){var _0x1925f3=_0x51f535;this[_0x1925f3(0x29a)]=null,super['dispose']();}[_0x51f535(0x26d)](){var _0x45298c=_0x51f535;const _0x44209a=super['_createHandler']();return _0x44209a['onTransformIME']=_0x423503=>{var _0x22f2e7=_0x46c5,_0x146ba7,_0xbe86d3;return(_0xbe86d3=(_0x146ba7=this['_handlerCallback'])==null?void 0x0:_0x146ba7[_0x22f2e7(0x342)])==null?void 0x0:_0xbe86d3[_0x22f2e7(0x25c)](_0x146ba7,_0x423503);},_0x44209a[_0x45298c(0x428)]=_0x2d2069=>{var _0x263b4c=_0x45298c,_0x48961d,_0x3acdcb;return(_0x3acdcb=(_0x48961d=this[_0x263b4c(0x29a)])==null?void 0x0:_0x48961d[_0x263b4c(0x428)])==null?void 0x0:_0x3acdcb[_0x263b4c(0x25c)](_0x48961d,_0x2d2069);},_0x44209a[_0x45298c(0x3c6)]=_0x1a7294=>{var _0x57c0e2=_0x45298c,_0x5c3c88,_0x23cfbc;return(_0x23cfbc=(_0x5c3c88=this[_0x57c0e2(0x29a)])==null?void 0x0:_0x5c3c88[_0x57c0e2(0x3c6)])==null?void 0x0:_0x23cfbc['call'](_0x5c3c88,_0x1a7294);},_0x44209a[_0x45298c(0x1eb)]=_0x13a3c0=>{var _0x5bebfc=_0x45298c,_0x49f2c7,_0x1af927;return(_0x1af927=(_0x49f2c7=this[_0x5bebfc(0x29a)])==null?void 0x0:_0x49f2c7['onSyncEditingCollabCursor'])==null?void 0x0:_0x1af927[_0x5bebfc(0x25c)](_0x49f2c7,_0x13a3c0);},_0x44209a[_0x45298c(0x221)]=_0x1fda56=>{var _0x393e94=_0x45298c,_0x49afd3,_0x123083,_0x474393;if(!((_0x49afd3=this[_0x393e94(0x29a)])!=null&&_0x49afd3[_0x393e94(0x221)]))throw new Error(_0x393e94(0x2ec));return(_0x474393=(_0x123083=this['_handlerCallback'])==null?void 0x0:_0x123083[_0x393e94(0x221)])==null?void 0x0:_0x474393[_0x393e94(0x25c)](_0x123083,_0x1fda56);},_0x44209a['onTransformRemoteChangesetByStateCache']=_0x3eabbd=>{var _0x58d284=_0x45298c,_0x3a2b53,_0x6e2f0b,_0x532850;if(!((_0x3a2b53=this['_handlerCallback'])!=null&&_0x3a2b53[_0x58d284(0x33d)]))throw new Error(_0x58d284(0x435));return(_0x532850=(_0x6e2f0b=this[_0x58d284(0x29a)])==null?void 0x0:_0x6e2f0b[_0x58d284(0x33d)])==null?void 0x0:_0x532850['call'](_0x6e2f0b,_0x3eabbd);},_0x44209a;}async[_0x51f535(0x466)](){var _0x3a309e=_0x51f535;const _0x5373b3=await super[_0x3a309e(0x466)]();return this['disposeWithMe'](this['_commandService'][_0x3a309e(0x288)]((_0x59e792,_0x2ce053)=>{var _0x4308f5=_0x3a309e;if(_0x59e792[_0x4308f5(0x425)]!==CommandType[_0x4308f5(0x295)]||_0x2ce053!=null&&_0x2ce053['fromCollab']||_0x2ce053!=null&&_0x2ce053[_0x4308f5(0x230)]||_0x59e792['id']===RichTextEditingMutation['id'])return;const _0x473260=_0x59e792[_0x4308f5(0x3cc)];if((_0x473260==null?void 0x0:_0x473260[_0x4308f5(0x2bd)])!==this[_0x4308f5(0x1d6)])return;const _0x458427=_0x59e792,_0xcdffd0=this[_0x4308f5(0x36c)]['interceptor'][_0x4308f5(0x51a)](this['_compressMutationService'][_0x4308f5(0x20c)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x458427],null)||[_0x458427];this['_onLocalMutation'](_0xcdffd0[0x0]);})),_0x5373b3;}},__name(_a14,'DocCollaborationEntity'),_a14);DocCollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(CollaborationUIEventService)),__decorateParam$c(0x8,ILogService),__decorateParam$c(0x9,ICommandService),__decorateParam$c(0xa,IPermissionService),__decorateParam$c(0xb,Optional(ISingleActiveUnitService)),__decorateParam$c(0xc,Optional(ILocalCacheService))],DocCollaborationEntity);var _a15;let SheetCollaborationEntity=(_a15=class extends CollaborationEntity{constructor(_0x5e37f0,_0x46873d,_0x19fcda,_0x4cf59e,_0x4f485e,_0x4e0894,_0x1e1f13,_0x5d026d,_0x526ebe,_0x35f3ca,_0x18ca96,_0x2cb844,_0x1e21b2,_0x15c1f7){var _0x18515c=_0x51f535;super(_0x5e37f0,_0x19fcda,_0x46873d,_0x4cf59e,_0x4f485e,_0x4e0894,_0x1e1f13,_0x526ebe,_0x35f3ca,_0x18ca96,_0x2cb844,_0x1e21b2,_0x15c1f7),this['unitID']=_0x5e37f0,this[_0x18515c(0x425)]=_0x46873d,this[_0x18515c(0x213)]=_0x5d026d;}[_0x51f535(0x26d)](){var _0x39370=_0x51f535;const _0x108fe7=super[_0x39370(0x26d)]();return _0x108fe7[_0x39370(0x3c6)]=_0x2bfee5=>this[_0x39370(0x213)][_0x39370(0x4d0)](_0x2bfee5),_0x108fe7;}async[_0x51f535(0x466)](){var _0x449ee2=_0x51f535;const _0x263cd6=await super[_0x449ee2(0x466)]();return this[_0x449ee2(0x1fe)](this[_0x449ee2(0x40d)][_0x449ee2(0x288)]((_0x55d5e9,_0x2093b5)=>{var _0x5dc10a=_0x449ee2;if(_0x55d5e9['type']!==CommandType['MUTATION']||_0x2093b5!=null&&_0x2093b5[_0x5dc10a(0x4ff)]||_0x2093b5!=null&&_0x2093b5[_0x5dc10a(0x230)])return;const _0x220bea=_0x55d5e9['params'];if((_0x220bea==null?void 0x0:_0x220bea['unitId'])!==this['unitID'])return;const _0x3b83b1=_0x55d5e9,_0x5d9f75=this['_compressMutationService'][_0x5dc10a(0x20c)][_0x5dc10a(0x51a)](this[_0x5dc10a(0x36c)][_0x5dc10a(0x20c)][_0x5dc10a(0x484)]()['COMPRESS_MUTATION_SEND'])([_0x3b83b1],null)||[_0x3b83b1];this[_0x5dc10a(0x392)](_0x5d9f75[0x0]);})),_0x263cd6;}},__name(_a15,_0x51f535(0x3a1)),_a15);SheetCollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(SheetTransformSelectionsService)),__decorateParam$c(0x8,Inject(CollaborationUIEventService)),__decorateParam$c(0x9,ILogService),__decorateParam$c(0xa,ICommandService),__decorateParam$c(0xb,IPermissionService),__decorateParam$c(0xc,Optional(ISingleActiveUnitService)),__decorateParam$c(0xd,Optional(ILocalCacheService))],SheetCollaborationEntity);var __defProp$b=Object[_0x51f535(0x2c3)],__getOwnPropDesc$b=Object[_0x51f535(0x32f)],__decorateClass$b=__name((_0x2d2e00,_0x4a2ac3,_0x1d8b95,_0x293741)=>{var _0x243586=_0x51f535;for(var _0x2dac57=_0x293741>0x1?void 0x0:_0x293741?__getOwnPropDesc$b(_0x4a2ac3,_0x1d8b95):_0x4a2ac3,_0x265629=_0x2d2e00[_0x243586(0x1d3)]-0x1,_0x315b15;_0x265629>=0x0;_0x265629--)(_0x315b15=_0x2d2e00[_0x265629])&&(_0x2dac57=(_0x293741?_0x315b15(_0x4a2ac3,_0x1d8b95,_0x2dac57):_0x315b15(_0x2dac57))||_0x2dac57);return _0x293741&&_0x2dac57&&__defProp$b(_0x4a2ac3,_0x1d8b95,_0x2dac57),_0x2dac57;},_0x51f535(0x31a)),__decorateParam$b=__name((_0x20fd43,_0x19ecf5)=>(_0x57fd04,_0x5ac528)=>_0x19ecf5(_0x57fd04,_0x5ac528,_0x20fd43),_0x51f535(0x3e7)),_a16;let CollaborationController=(_a16=class extends RxDisposable{constructor(_0x4bd9f3,_0xdd75ba,_0xcda706){var _0x10f7bd=_0x51f535;super(),__publicField(this,_0x10f7bd(0x3a9),new Map()),__publicField(this,_0x10f7bd(0x334),new Subject()),__publicField(this,'entityInit$',this[_0x10f7bd(0x334)]['asObservable']()),(this[_0x10f7bd(0x45a)]=_0x4bd9f3,this[_0x10f7bd(0x2fd)]=_0xdd75ba,this[_0x10f7bd(0x20b)]=_0xcda706,this['_init']());}[_0x51f535(0x4b0)](){var _0xfeade7=_0x51f535;super[_0xfeade7(0x4b0)](),this['_entities'][_0xfeade7(0x41c)](_0x5e6b94=>_0x5e6b94[_0xfeade7(0x4b0)]()),this[_0xfeade7(0x3a9)][_0xfeade7(0x2d8)]();}[_0x51f535(0x3e3)](_0x543eec){var _0x28b8ed=_0x51f535,_0x1c488f;return(_0x1c488f=this[_0x28b8ed(0x3a9)][_0x28b8ed(0x40e)](_0x543eec))!=null?_0x1c488f:null;}[_0x51f535(0x3c5)](_0x26f86d){var _0x1c684c=_0x51f535;const _0x57401f=this[_0x1c684c(0x3e3)](_0x26f86d);return _0x57401f?of(_0x57401f):this[_0x1c684c(0x334)][_0x1c684c(0x283)](filter(_0x3d8899=>_0x3d8899[_0x1c684c(0x1d6)]===_0x26f86d));}[_0x51f535(0x47d)](_0x293b99){var _0x38d851=_0x51f535;return firstValueFrom(this[_0x38d851(0x3c5)](_0x293b99)[_0x38d851(0x283)](map(()=>{})));}[_0x51f535(0x466)](){var _0x24ab3e=_0x51f535;this[_0x24ab3e(0x20b)][_0x24ab3e(0x4a0)](UniverInstanceType['UNIVER_SHEET'])[_0x24ab3e(0x283)](takeUntil(this[_0x24ab3e(0x23d)]),delay(0x10))[_0x24ab3e(0x4d5)](async _0x216f31=>{var _0x1c5e8e=_0x24ab3e;const _0x47b38b=_0x216f31['getUnitId'](),_0xff4ab8=await this['_startCollaboration'](_0x47b38b,UniverType['UNIVER_SHEET']);this['_entities'][_0x1c5e8e(0x202)](_0x47b38b,_0xff4ab8);}),this[_0x24ab3e(0x20b)]['getTypeOfUnitAdded$'](UniverInstanceType['UNIVER_DOC'])[_0x24ab3e(0x283)](takeUntil(this[_0x24ab3e(0x23d)]),delay(0x10))['pipe'](filter(_0x4979a7=>!_0x4979a7['getUnitId']()['startsWith']('__')))[_0x24ab3e(0x4d5)](async _0x18afbd=>{var _0x54ada4=_0x24ab3e;const _0x3a26a8=_0x18afbd[_0x54ada4(0x2b1)](),_0xe0a1bb=await this[_0x54ada4(0x409)](_0x3a26a8,UniverType[_0x54ada4(0x4ac)]);this[_0x54ada4(0x3a9)]['set'](_0x3a26a8,_0xe0a1bb);}),merge(this['_univerInstanceService']['getTypeOfUnitDisposed$'](UniverInstanceType[_0x24ab3e(0x4b7)]),this[_0x24ab3e(0x20b)]['getTypeOfUnitDisposed$'](UniverInstanceType[_0x24ab3e(0x4ac)]))[_0x24ab3e(0x283)](takeUntil(this[_0x24ab3e(0x23d)]))[_0x24ab3e(0x4d5)](_0x284858=>{var _0x2d2ba8=_0x24ab3e;const _0x47becf=_0x284858[_0x2d2ba8(0x2b1)](),_0x2b9318=this[_0x2d2ba8(0x3a9)]['get'](_0x47becf);_0x2b9318&&(_0x2b9318['dispose'](),this['_entities']['delete'](_0x47becf));});}async[_0x51f535(0x409)](_0x39b947,_0x50623f){var _0x289823=_0x51f535;const _0x2c23e7=await this[_0x289823(0x2fd)][_0x289823(0x50a)](_0x39b947),_0x2bad82=this[_0x289823(0x45a)][_0x289823(0x3b3)](this[_0x289823(0x211)](_0x50623f),_0x39b947,_0x50623f,_0x2c23e7);return await _0x2bad82[_0x289823(0x351)](),this[_0x289823(0x334)]['next'](_0x2bad82),_0x2bad82;}[_0x51f535(0x211)](_0x4975ba){var _0x461af4=_0x51f535;switch(_0x4975ba){case UniverType[_0x461af4(0x4ac)]:return DocCollaborationEntity;case UniverType[_0x461af4(0x4b7)]:return SheetCollaborationEntity;default:throw new Error(_0x461af4(0x445)+_0x4975ba);}}},__name(_a16,_0x51f535(0x4dd)),_a16);CollaborationController=__decorateClass$b([__decorateParam$b(0x0,Inject(Injector)),__decorateParam$b(0x1,Inject(CollaborationSessionService)),__decorateParam$b(0x2,IUniverInstanceService)],CollaborationController);var __defProp$a=Object[_0x51f535(0x2c3)],__getOwnPropDesc$a=Object['getOwnPropertyDescriptor'],__decorateClass$a=__name((_0x402d1c,_0xfdb135,_0x1ed7e1,_0x32fc08)=>{var _0x9be96d=_0x51f535;for(var _0x4dd25c=_0x32fc08>0x1?void 0x0:_0x32fc08?__getOwnPropDesc$a(_0xfdb135,_0x1ed7e1):_0xfdb135,_0x314085=_0x402d1c[_0x9be96d(0x1d3)]-0x1,_0x4d605c;_0x314085>=0x0;_0x314085--)(_0x4d605c=_0x402d1c[_0x314085])&&(_0x4dd25c=(_0x32fc08?_0x4d605c(_0xfdb135,_0x1ed7e1,_0x4dd25c):_0x4d605c(_0x4dd25c))||_0x4dd25c);return _0x32fc08&&_0x4dd25c&&__defProp$a(_0xfdb135,_0x1ed7e1,_0x4dd25c),_0x4dd25c;},_0x51f535(0x454)),__decorateParam$a=__name((_0x21d88d,_0xc3f195)=>(_0x4cbaa1,_0x128b71)=>_0xc3f195(_0x4cbaa1,_0x128b71,_0x21d88d),_0x51f535(0x328));const DEFAULT_FILE_NAME_KEY=_0x51f535(0x21d),UNIVER_DEFAULT_FILE_NAME=_0x51f535(0x23c);var _a17;let FileNameController=(_a17=class extends Disposable{constructor(_0x4ceca1,_0x4d93c4){var _0x20fb10=_0x51f535;super(),this[_0x20fb10(0x20b)]=_0x4ceca1,this['_configService']=_0x4d93c4,this[_0x20fb10(0x466)]();}[_0x51f535(0x466)](){var _0x410eaf=_0x51f535;this[_0x410eaf(0x1fe)](this[_0x410eaf(0x20b)][_0x410eaf(0x2bf)]['subscribe'](()=>{var _0x1d9718=_0x410eaf,_0xc904b1;const _0x3c55d1=this[_0x1d9718(0x20b)][_0x1d9718(0x329)]();let _0x839e1f=(_0xc904b1=this[_0x1d9718(0x393)][_0x1d9718(0x310)](DEFAULT_FILE_NAME_KEY))!=null?_0xc904b1:UNIVER_DEFAULT_FILE_NAME;_0x3c55d1 instanceof Workbook&&(_0x839e1f=_0x3c55d1['name']),document[_0x1d9718(0x3aa)]=_0x839e1f;}));}},__name(_a17,_0x51f535(0x483)),_a17);FileNameController=__decorateClass$a([__decorateParam$a(0x0,IUniverInstanceService),__decorateParam$a(0x1,IConfigService)],FileNameController);var __defProp$9=Object[_0x51f535(0x2c3)],__getOwnPropDesc$9=Object[_0x51f535(0x32f)],__decorateClass$9=__name((_0x4080e8,_0x35430b,_0x4e3c43,_0xf26e65)=>{var _0x1da1f7=_0x51f535;for(var _0x32f20a=_0xf26e65>0x1?void 0x0:_0xf26e65?__getOwnPropDesc$9(_0x35430b,_0x4e3c43):_0x35430b,_0x175d11=_0x4080e8[_0x1da1f7(0x1d3)]-0x1,_0x3d2322;_0x175d11>=0x0;_0x175d11--)(_0x3d2322=_0x4080e8[_0x175d11])&&(_0x32f20a=(_0xf26e65?_0x3d2322(_0x35430b,_0x4e3c43,_0x32f20a):_0x3d2322(_0x32f20a))||_0x32f20a);return _0xf26e65&&_0x32f20a&&__defProp$9(_0x35430b,_0x4e3c43,_0x32f20a),_0x32f20a;},_0x51f535(0x1f0)),__decorateParam$9=__name((_0x2bc58a,_0x1a32c1)=>(_0x4aa501,_0x394a44)=>_0x1a32c1(_0x4aa501,_0x394a44,_0x2bc58a),'__decorateParam$9'),_a18;let AuthServerService=(_a18=class{constructor(_0x562009,_0x5f2391,_0x4167f1){var _0x362159=_0x51f535;this['_configService']=_0x562009,this[_0x362159(0x527)]=_0x5f2391,this[_0x362159(0x2e1)]=_0x4167f1,this['init']();}[_0x51f535(0x351)](){var _0x33a87d=_0x51f535;this[_0x33a87d(0x527)][_0x33a87d(0x2c0)]({'priority':0x1,'interceptor':__name((_0x114c2a,_0x49715d)=>_0x49715d(_0x114c2a)['pipe'](concatMap(async _0x5ab06a=>{var _0x154463=_0x33a87d;const _0x1dc037=_0x5ab06a;if(_0x1dc037[_0x154463(0x34e)]===0x191){if(typeof window>'u')throw new Error(_0x154463(0x255));if(window[_0x154463(0x20e)](this['localeService']['t'](_0x154463(0x477)))){const _0x4dfa6c=window[_0x154463(0x358)](window[_0x154463(0x37f)][_0x154463(0x311)]);window['location']['href']=this[_0x154463(0x4ae)]()+_0x154463(0x467)+_0x4dfa6c;}}return _0x1dc037;})),_0x33a87d(0x20c))});}[_0x51f535(0x4ae)](){var _0x320702=_0x51f535,_0x4fb9d8,_0xabd04;const _0x204489=this['_configService']['getConfig'](LOGIN_URL_KEY),_0x589a76=this[_0x320702(0x393)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0xabd04=(_0x4fb9d8=_0x589a76==null?void 0x0:_0x589a76[_0x320702(0x3a0)])!=null?_0x4fb9d8:_0x204489)!=null?_0xabd04:DEFAULT_LOGIN_URL;}},__name(_a18,_0x51f535(0x3b5)),_a18);AuthServerService=__decorateClass$9([__decorateParam$9(0x0,IConfigService),__decorateParam$9(0x1,Inject(HTTPService)),__decorateParam$9(0x2,Inject(LocaleService))],AuthServerService);var __defProp$8=Object['defineProperty'],__getOwnPropDesc$8=Object[_0x51f535(0x32f)],__decorateClass$8=__name((_0x5973ca,_0x2d1579,_0x57c648,_0x42edb4)=>{for(var _0x1dbd2d=_0x42edb4>0x1?void 0x0:_0x42edb4?__getOwnPropDesc$8(_0x2d1579,_0x57c648):_0x2d1579,_0x3f2ce3=_0x5973ca['length']-0x1,_0x17ae36;_0x3f2ce3>=0x0;_0x3f2ce3--)(_0x17ae36=_0x5973ca[_0x3f2ce3])&&(_0x1dbd2d=(_0x42edb4?_0x17ae36(_0x2d1579,_0x57c648,_0x1dbd2d):_0x17ae36(_0x1dbd2d))||_0x1dbd2d);return _0x42edb4&&_0x1dbd2d&&__defProp$8(_0x2d1579,_0x57c648,_0x1dbd2d),_0x1dbd2d;},_0x51f535(0x412)),__decorateParam$8=__name((_0x472322,_0x50da89)=>(_0x4c4b2a,_0x1e9654)=>_0x50da89(_0x4c4b2a,_0x1e9654,_0x472322),_0x51f535(0x529));const AUTHZ_URL_KEY=_0x51f535(0x43a),DEFAULT_AUTHZ_URL_KEY$1=_0x51f535(0x391);var _a19;let AuthzIoHttpService=(_a19=class extends Disposable{constructor(_0x4ab204,_0x59c1eb){var _0x46dc3d=_0x51f535;super(),this[_0x46dc3d(0x50c)]=_0x4ab204,this[_0x46dc3d(0x393)]=_0x59c1eb,this[_0x46dc3d(0x257)]();}[_0x51f535(0x257)](){var _0x4d719c=_0x51f535;const _0x30f428=this;this[_0x4d719c(0x1fe)](this['_HTTPService'][_0x4d719c(0x2c0)]({'priority':0x3e7,'interceptor':MergeInterceptorFactory({'isMatch'(_0x563fa0){var _0x42407f=_0x4d719c,_0x318d10;if(_0x563fa0[_0x42407f(0x400)]===_0x42407f(0x378)&&((_0x318d10=_0x563fa0[_0x42407f(0x37a)])!=null&&_0x318d10[_0x42407f(0x225)])){const {objectID:_0x5a11a5,objectType:_0x29991f}=_0x563fa0[_0x42407f(0x37a)][_0x42407f(0x225)]||{};if(!_0x5a11a5||_0x29991f===void 0x0)return!0x1;const _0x5d8dc0=_0x30f428[_0x42407f(0x51d)]()+'/'+_0x29991f+_0x42407f(0x442)+_0x5a11a5+_0x42407f(0x1dd);if(_0x563fa0[_0x42407f(0x246)]===_0x5d8dc0)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x15f67f){var _0x5a2325=_0x4d719c,_0x2a33aa;return(_0x2a33aa=_0x15f67f[_0x5a2325(0x37a)])==null?void 0x0:_0x2a33aa['body'];},'mergeParamsToRequest'(_0x3fd453,_0x2d6bac){var _0x2ced01=_0x4d719c;const _0x20c2da=_0x30f428[_0x2ced01(0x51d)]()+_0x2ced01(0x1e9),_0x5ac0c1=_0x3fd453[_0x2ced01(0x35a)]((_0x485f44,_0x2bc1e4)=>{var _0x391c86=_0x2ced01;const {unitID:_0x52dd38,objectID:_0x83dafc,objectType:_0x562ea5,actions:_0x4f1f8b}=_0x2bc1e4;return _0x485f44[_0x52dd38]||(_0x485f44[_0x52dd38]={}),_0x485f44[_0x52dd38][_0x83dafc]||(_0x485f44[_0x52dd38][_0x83dafc]={'objectID':_0x83dafc,'objectType':_0x562ea5,'actions':[]}),_0x485f44[_0x52dd38][_0x83dafc][_0x391c86(0x4b3)]['push'](..._0x4f1f8b),_0x485f44;},{}),_0x2318a8=[];for(const _0x39d435 in _0x5ac0c1)for(const _0xfaf5f5 in _0x5ac0c1[_0x39d435]){const {actions:_0x2d80d7,objectType:_0x488a37}=_0x5ac0c1[_0x39d435][_0xfaf5f5],_0x2e0591=[...new Set(_0x2d80d7)];_0x2318a8[_0x2ced01(0x4c5)]({'unitID':_0x39d435,'objectID':_0xfaf5f5,'objectType':_0x488a37,'actions':_0x2e0591});}return new HTTPRequest(_0x2ced01(0x378),_0x20c2da,{'headers':_0x2d6bac[_0x2ced01(0x402)],'withCredentials':_0x2d6bac['withCredentials'],'responseType':_0x2d6bac['responseType'],'body':{'requests':_0x2318a8}});}},{'distributeResult'(_0x30c14b,_0xe4ca4c){var _0x4bb99a=_0x4d719c;const {objectActions:_0x5248bc}=_0x30c14b;return _0xe4ca4c[_0x4bb99a(0x2b8)](_0x43a23f=>{var _0x5ce42c=_0x4bb99a;const {unitID:_0x10c933,objectID:_0x111047,actions:_0x4df02f}=_0x43a23f,_0x47acb9=_0x5248bc[_0x5ce42c(0x426)](_0x22255b=>_0x22255b['unitID']===_0x10c933&&_0x22255b[_0x5ce42c(0x2ad)]===_0x111047),_0x2243ff=_0x4df02f[_0x5ce42c(0x2b8)](_0x4cd233=>_0x47acb9==null?void 0x0:_0x47acb9[_0x5ce42c(0x4b3)][_0x5ce42c(0x426)](_0x204708=>_0x204708['action']===_0x4cd233))[_0x5ce42c(0x201)](_0x2cb3a1=>!!_0x2cb3a1);return{'config':_0x43a23f,'result':{'actions':_0x2243ff,'error':_0x30c14b['error']}};});}})}));}['_getAPIPrefixPath'](){var _0x2cc332=_0x51f535,_0x206aed,_0xef8c55;const _0x59d90a=this['_configService'][_0x2cc332(0x310)](AUTHZ_URL_KEY),_0x3e9a4f=this[_0x2cc332(0x393)][_0x2cc332(0x310)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0xef8c55=(_0x206aed=_0x3e9a4f==null?void 0x0:_0x3e9a4f['authzUrl'])!=null?_0x206aed:_0x59d90a)!=null?_0xef8c55:DEFAULT_AUTHZ_URL_KEY$1;}async[_0x51f535(0x3e8)](_0x1c5adb){var _0x4b3109=_0x51f535;const _0x398180=this[_0x4b3109(0x51d)]()+'/'+_0x1c5adb[_0x4b3109(0x1fc)]+_0x4b3109(0x354);return(await this[_0x4b3109(0x50c)][_0x4b3109(0x4d8)](_0x398180,{'body':_0x1c5adb}))[_0x4b3109(0x225)][_0x4b3109(0x2ad)]||'';}async[_0x51f535(0x224)](_0x3549d1){var _0x530051=_0x51f535;const _0x4ca239=this[_0x530051(0x51d)]()+_0x530051(0x403);return(await this[_0x530051(0x50c)][_0x530051(0x4d8)](_0x4ca239,{'body':_0x3549d1}))[_0x530051(0x225)][_0x530051(0x290)];}async['update'](_0x2b542e){var _0xc6ecbd=_0x51f535;const _0x34ce9e=this[_0xc6ecbd(0x51d)]()+'/'+_0x2b542e[_0xc6ecbd(0x1fc)]+'/object/'+_0x2b542e[_0xc6ecbd(0x2ad)];await this[_0xc6ecbd(0x50c)][_0xc6ecbd(0x343)](_0x34ce9e,{'body':_0x2b542e});}async[_0x51f535(0x3ae)](_0x222fa7){var _0x418af5=_0x51f535;const _0x2d055e=this['_getAPIPrefixPath']()+'/'+_0x222fa7[_0x418af5(0x1fc)]+'/object/'+_0x222fa7[_0x418af5(0x2ad)]+'/allowed';return(await this['_HTTPService']['post'](_0x2d055e,{'body':_0x222fa7}))[_0x418af5(0x225)]['actions'];}async[_0x51f535(0x219)](_0x4c6627){var _0x1c565e=_0x51f535;const _0x188aa2=this[_0x1c565e(0x51d)]()+_0x1c565e(0x1e9);return(await this[_0x1c565e(0x50c)][_0x1c565e(0x4d8)](_0x188aa2,{'body':{'requests':_0x4c6627}}))[_0x1c565e(0x225)][_0x1c565e(0x46a)];}async[_0x51f535(0x30b)](_0x2132a7){var _0x4bb0e0=_0x51f535;const _0x494904=this[_0x4bb0e0(0x51d)]()+'/'+_0x2132a7[_0x4bb0e0(0x1fc)]+'/role',_0x48e2f6=await this[_0x4bb0e0(0x50c)]['post'](_0x494904,{'body':_0x2132a7});return{'roles':_0x48e2f6[_0x4bb0e0(0x225)][_0x4bb0e0(0x4b2)],'actions':_0x48e2f6[_0x4bb0e0(0x225)][_0x4bb0e0(0x4b3)]};}async[_0x51f535(0x45f)](_0x5ac823){var _0x496226=_0x51f535;const _0xbe89c=this[_0x496226(0x51d)]()+_0x496226(0x204);await this[_0x496226(0x50c)][_0x496226(0x4b6)](_0xbe89c,{'params':{'collaboratorID':_0x5ac823[_0x496226(0x27b)],'objectID':_0x5ac823[_0x496226(0x2ad)],'unitID':_0x5ac823[_0x496226(0x1d6)]}});}async[_0x51f535(0x30d)](_0x4368ae){var _0xc152ff=_0x51f535;const _0x20d2b2=this[_0xc152ff(0x51d)]()+_0xc152ff(0x204);await this[_0xc152ff(0x50c)][_0xc152ff(0x417)](_0x20d2b2,{'body':_0x4368ae});}async[_0x51f535(0x268)](_0x3fa96c){var _0x51f30f=_0x51f535;const _0x495d33=this[_0x51f30f(0x51d)]()+_0x51f30f(0x204);await this[_0x51f30f(0x50c)][_0x51f30f(0x4d8)](_0x495d33,{'body':_0x3fa96c});}async[_0x51f535(0x333)](_0x5b93b0){var _0x3a81b8=_0x51f535;const _0x253219=this['_getAPIPrefixPath']()+_0x3a81b8(0x204);return(await this['_HTTPService'][_0x3a81b8(0x40e)](_0x253219,{'params':{'objectID':_0x5b93b0[_0x3a81b8(0x2ad)],'unitID':_0x5b93b0[_0x3a81b8(0x1d6)]}}))[_0x3a81b8(0x225)][_0x3a81b8(0x3ad)];}async['putCollaborators'](_0x555a50){var _0x357e0d=_0x51f535;const _0x234738=this[_0x357e0d(0x51d)]()+_0x357e0d(0x204);await this[_0x357e0d(0x50c)][_0x357e0d(0x343)](_0x234738,{'body':_0x555a50});}},__name(_a19,_0x51f535(0x27a)),_a19);AuthzIoHttpService=__decorateClass$8([__decorateParam$8(0x0,Inject(HTTPService)),__decorateParam$8(0x1,Inject(IConfigService))],AuthzIoHttpService);var commonjsGlobal=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function getDefaultExportFromCjs(_0x4ec3da){var _0x4f3a24=_0x51f535;return _0x4ec3da&&_0x4ec3da[_0x4f3a24(0x30f)]&&Object[_0x4f3a24(0x4f1)]['hasOwnProperty']['call'](_0x4ec3da,_0x4f3a24(0x3f6))?_0x4ec3da[_0x4f3a24(0x3f6)]:_0x4ec3da;}__name(getDefaultExportFromCjs,_0x51f535(0x316));var aes$1={'exports':{}};function commonjsRequire(_0xc1ca50){var _0x2b59f7=_0x51f535;throw new Error('Could\x20not\x20dynamically\x20require\x20\x22'+_0xc1ca50+_0x2b59f7(0x22f));}__name(commonjsRequire,_0x51f535(0x3bf));var core$1={'exports':{}},core=core$1[_0x51f535(0x45b)],hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=0x1,function(_0xc1474f,_0x5bb368){(function(_0x46f551,_0x305ac0){var _0x3638c5=_0x46c5;_0xc1474f[_0x3638c5(0x45b)]=_0x305ac0();}(core,function(){var _0x2756df=_0x2756df||function(_0xe6924a,_0x2eeebe){var _0x141038=_0x46c5,_0x2feb67;if(typeof window<'u'&&window[_0x141038(0x415)]&&(_0x2feb67=window[_0x141038(0x415)]),typeof self<'u'&&self[_0x141038(0x415)]&&(_0x2feb67=self[_0x141038(0x415)]),typeof globalThis<'u'&&globalThis[_0x141038(0x415)]&&(_0x2feb67=globalThis[_0x141038(0x415)]),!_0x2feb67&&typeof window<'u'&&window[_0x141038(0x338)]&&(_0x2feb67=window[_0x141038(0x338)]),!_0x2feb67&&typeof commonjsGlobal<'u'&&commonjsGlobal[_0x141038(0x415)]&&(_0x2feb67=commonjsGlobal[_0x141038(0x415)]),!_0x2feb67&&typeof commonjsRequire==_0x141038(0x506))try{_0x2feb67=require(_0x141038(0x415));}catch{}var _0x3c9679=__name(function(){var _0x41c14a=_0x141038;if(_0x2feb67){if(typeof _0x2feb67[_0x41c14a(0x3f5)]=='function')try{return _0x2feb67[_0x41c14a(0x3f5)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x2feb67['randomBytes']==_0x41c14a(0x506))try{return _0x2feb67[_0x41c14a(0x299)](0x4)[_0x41c14a(0x480)]();}catch{}}throw new Error(_0x41c14a(0x2c9));},_0x141038(0x369)),_0x928277=Object['create']||(function(){function _0x27309c(){}return __name(_0x27309c,'F'),function(_0x310eeb){var _0x573525=_0x46c5,_0x3eb888;return _0x27309c[_0x573525(0x4f1)]=_0x310eeb,_0x3eb888=new _0x27309c(),_0x27309c['prototype']=null,_0x3eb888;};}()),_0x74c59e={},_0xbff6dd=_0x74c59e[_0x141038(0x2b3)]={},_0x23d8cb=_0xbff6dd[_0x141038(0x220)]=(function(){var _0x369963=_0x141038;return{'extend':__name(function(_0x741381){var _0x2634ce=_0x46c5,_0x2d60a9=_0x928277(this);return _0x741381&&_0x2d60a9['mixIn'](_0x741381),(!_0x2d60a9[_0x2634ce(0x474)]('init')||this['init']===_0x2d60a9[_0x2634ce(0x351)])&&(_0x2d60a9[_0x2634ce(0x351)]=function(){var _0x3bea93=_0x2634ce;_0x2d60a9[_0x3bea93(0x49f)][_0x3bea93(0x351)]['apply'](this,arguments);}),_0x2d60a9[_0x2634ce(0x351)][_0x2634ce(0x4f1)]=_0x2d60a9,_0x2d60a9[_0x2634ce(0x49f)]=this,_0x2d60a9;},_0x369963(0x3d1)),'create':__name(function(){var _0x537087=_0x369963,_0x464009=this[_0x537087(0x3d1)]();return _0x464009['init'][_0x537087(0x367)](_0x464009,arguments),_0x464009;},'create'),'init':__name(function(){},_0x369963(0x351)),'mixIn':__name(function(_0x492a20){var _0x49d60f=_0x369963;for(var _0x4f49b6 in _0x492a20)_0x492a20[_0x49d60f(0x474)](_0x4f49b6)&&(this[_0x4f49b6]=_0x492a20[_0x4f49b6]);_0x492a20['hasOwnProperty'](_0x49d60f(0x3c1))&&(this['toString']=_0x492a20[_0x49d60f(0x3c1)]);},_0x369963(0x528)),'clone':__name(function(){var _0x1e1cdf=_0x369963;return this[_0x1e1cdf(0x351)][_0x1e1cdf(0x4f1)]['extend'](this);},'clone')};}()),_0x106877=_0xbff6dd['WordArray']=_0x23d8cb['extend']({'init':__name(function(_0x398d1f,_0x570ac5){var _0x4dd3b5=_0x141038;_0x398d1f=this[_0x4dd3b5(0x2fc)]=_0x398d1f||[],_0x570ac5!=_0x2eeebe?this[_0x4dd3b5(0x21b)]=_0x570ac5:this['sigBytes']=_0x398d1f[_0x4dd3b5(0x1d3)]*0x4;},_0x141038(0x351)),'toString':__name(function(_0x2a4a6a){return(_0x2a4a6a||_0x2a1593)['stringify'](this);},_0x141038(0x3c1)),'concat':__name(function(_0x1fcaa1){var _0x51654f=_0x141038,_0x590d92=this[_0x51654f(0x2fc)],_0x11b441=_0x1fcaa1[_0x51654f(0x2fc)],_0x2198b2=this[_0x51654f(0x21b)],_0x34ab4a=_0x1fcaa1[_0x51654f(0x21b)];if(this[_0x51654f(0x1e8)](),_0x2198b2%0x4)for(var _0x2f7757=0x0;_0x2f7757<_0x34ab4a;_0x2f7757++){var _0x367acd=_0x11b441[_0x2f7757>>>0x2]>>>0x18-_0x2f7757%0x4*0x8&0xff;_0x590d92[_0x2198b2+_0x2f7757>>>0x2]|=_0x367acd<<0x18-(_0x2198b2+_0x2f7757)%0x4*0x8;}else{for(var _0x279ecf=0x0;_0x279ecf<_0x34ab4a;_0x279ecf+=0x4)_0x590d92[_0x2198b2+_0x279ecf>>>0x2]=_0x11b441[_0x279ecf>>>0x2];}return this[_0x51654f(0x21b)]+=_0x34ab4a,this;},_0x141038(0x364)),'clamp':__name(function(){var _0x517514=_0x141038,_0x17d666=this['words'],_0x234389=this['sigBytes'];_0x17d666[_0x234389>>>0x2]&=0xffffffff<<0x20-_0x234389%0x4*0x8,_0x17d666['length']=_0xe6924a[_0x517514(0x2f9)](_0x234389/0x4);},'clamp'),'clone':__name(function(){var _0x21339c=_0x141038,_0x1d666c=_0x23d8cb[_0x21339c(0x37e)]['call'](this);return _0x1d666c['words']=this[_0x21339c(0x2fc)][_0x21339c(0x31c)](0x0),_0x1d666c;},_0x141038(0x37e)),'random':__name(function(_0x5f47f3){var _0x19fb7e=_0x141038;for(var _0x3c3e8b=[],_0x57fdeb=0x0;_0x57fdeb<_0x5f47f3;_0x57fdeb+=0x4)_0x3c3e8b[_0x19fb7e(0x4c5)](_0x3c9679());return new _0x106877[(_0x19fb7e(0x351))](_0x3c3e8b,_0x5f47f3);},_0x141038(0x4a3))}),_0x481ace=_0x74c59e[_0x141038(0x261)]={},_0x2a1593=_0x481ace[_0x141038(0x4a9)]={'stringify':__name(function(_0x16e9da){var _0x5ef94d=_0x141038;for(var _0x57fcc9=_0x16e9da[_0x5ef94d(0x2fc)],_0x298031=_0x16e9da['sigBytes'],_0x4b72c1=[],_0x4edefd=0x0;_0x4edefd<_0x298031;_0x4edefd++){var _0x964fed=_0x57fcc9[_0x4edefd>>>0x2]>>>0x18-_0x4edefd%0x4*0x8&0xff;_0x4b72c1[_0x5ef94d(0x4c5)]((_0x964fed>>>0x4)['toString'](0x10)),_0x4b72c1[_0x5ef94d(0x4c5)]((_0x964fed&0xf)['toString'](0x10));}return _0x4b72c1[_0x5ef94d(0x515)]('');},_0x141038(0x36e)),'parse':__name(function(_0x46b0c2){var _0x5113d7=_0x141038;for(var _0x5f29ba=_0x46b0c2[_0x5113d7(0x1d3)],_0x50c737=[],_0x4639ef=0x0;_0x4639ef<_0x5f29ba;_0x4639ef+=0x2)_0x50c737[_0x4639ef>>>0x3]|=parseInt(_0x46b0c2['substr'](_0x4639ef,0x2),0x10)<<0x18-_0x4639ef%0x8*0x4;return new _0x106877[(_0x5113d7(0x351))](_0x50c737,_0x5f29ba/0x2);},'parse')},_0x11533b=_0x481ace[_0x141038(0x357)]={'stringify':__name(function(_0x2f220a){var _0x46ff25=_0x141038;for(var _0x5f156d=_0x2f220a['words'],_0x18b0be=_0x2f220a[_0x46ff25(0x21b)],_0x7af443=[],_0xbbc88=0x0;_0xbbc88<_0x18b0be;_0xbbc88++){var _0x176100=_0x5f156d[_0xbbc88>>>0x2]>>>0x18-_0xbbc88%0x4*0x8&0xff;_0x7af443['push'](String['fromCharCode'](_0x176100));}return _0x7af443[_0x46ff25(0x515)]('');},_0x141038(0x36e)),'parse':__name(function(_0x1d3a78){var _0x462939=_0x141038;for(var _0x2b82cc=_0x1d3a78[_0x462939(0x1d3)],_0x3ccf8c=[],_0xa7495f=0x0;_0xa7495f<_0x2b82cc;_0xa7495f++)_0x3ccf8c[_0xa7495f>>>0x2]|=(_0x1d3a78[_0x462939(0x330)](_0xa7495f)&0xff)<<0x18-_0xa7495f%0x4*0x8;return new _0x106877['init'](_0x3ccf8c,_0x2b82cc);},_0x141038(0x2a9))},_0x599f02=_0x481ace['Utf8']={'stringify':__name(function(_0x3a1432){try{return decodeURIComponent(escape(_0x11533b['stringify'](_0x3a1432)));}catch{throw new Error('Malformed\x20UTF-8\x20data');}},_0x141038(0x36e)),'parse':__name(function(_0xb3162c){var _0x4233a4=_0x141038;return _0x11533b[_0x4233a4(0x2a9)](unescape(encodeURIComponent(_0xb3162c)));},'parse')},_0x4deed8=_0xbff6dd[_0x141038(0x344)]=_0x23d8cb[_0x141038(0x3d1)]({'reset':__name(function(){var _0x4df905=_0x141038;this[_0x4df905(0x4df)]=new _0x106877[(_0x4df905(0x351))](),this['_nDataBytes']=0x0;},'reset'),'_append':__name(function(_0x36b3b3){var _0x350a60=_0x141038;typeof _0x36b3b3==_0x350a60(0x264)&&(_0x36b3b3=_0x599f02[_0x350a60(0x2a9)](_0x36b3b3)),this['_data'][_0x350a60(0x364)](_0x36b3b3),this[_0x350a60(0x38f)]+=_0x36b3b3['sigBytes'];},_0x141038(0x3bc)),'_process':__name(function(_0x10cd34){var _0x584360=_0x141038,_0xb78261,_0x25d776=this[_0x584360(0x4df)],_0x8f7a0e=_0x25d776[_0x584360(0x2fc)],_0x29bf17=_0x25d776['sigBytes'],_0xafba70=this[_0x584360(0x2aa)],_0x3dcf3c=_0xafba70*0x4,_0x40ba14=_0x29bf17/_0x3dcf3c;_0x10cd34?_0x40ba14=_0xe6924a[_0x584360(0x2f9)](_0x40ba14):_0x40ba14=_0xe6924a[_0x584360(0x2f2)]((_0x40ba14|0x0)-this['_minBufferSize'],0x0);var _0x3ba466=_0x40ba14*_0xafba70,_0x499033=_0xe6924a[_0x584360(0x1e2)](_0x3ba466*0x4,_0x29bf17);if(_0x3ba466){for(var _0x17988b=0x0;_0x17988b<_0x3ba466;_0x17988b+=_0xafba70)this[_0x584360(0x4b1)](_0x8f7a0e,_0x17988b);_0xb78261=_0x8f7a0e[_0x584360(0x36d)](0x0,_0x3ba466),_0x25d776[_0x584360(0x21b)]-=_0x499033;}return new _0x106877[(_0x584360(0x351))](_0xb78261,_0x499033);},_0x141038(0x488)),'clone':__name(function(){var _0x510590=_0x141038,_0x101fc5=_0x23d8cb[_0x510590(0x37e)][_0x510590(0x25c)](this);return _0x101fc5[_0x510590(0x4df)]=this[_0x510590(0x4df)]['clone'](),_0x101fc5;},_0x141038(0x37e)),'_minBufferSize':0x0});_0xbff6dd['Hasher']=_0x4deed8[_0x141038(0x3d1)]({'cfg':_0x23d8cb['extend'](),'init':__name(function(_0x3f7cf4){var _0x234d6b=_0x141038;this[_0x234d6b(0x2a0)]=this[_0x234d6b(0x2a0)][_0x234d6b(0x3d1)](_0x3f7cf4),this[_0x234d6b(0x41b)]();},_0x141038(0x351)),'reset':__name(function(){var _0x3acacf=_0x141038;_0x4deed8[_0x3acacf(0x41b)][_0x3acacf(0x25c)](this),this[_0x3acacf(0x4e7)]();},_0x141038(0x41b)),'update':__name(function(_0x2ac4fc){var _0x4821c4=_0x141038;return this['_append'](_0x2ac4fc),this[_0x4821c4(0x488)](),this;},'update'),'finalize':__name(function(_0x192c13){var _0x8e2d7e=_0x141038;_0x192c13&&this[_0x8e2d7e(0x3bc)](_0x192c13);var _0x523128=this[_0x8e2d7e(0x3d4)]();return _0x523128;},'finalize'),'blockSize':0x10,'_createHelper':__name(function(_0x3ccc0e){return function(_0x24421a,_0x5d4029){var _0x535577=_0x46c5;return new _0x3ccc0e[(_0x535577(0x351))](_0x5d4029)[_0x535577(0x3be)](_0x24421a);};},'_createHelper'),'_createHmacHelper':__name(function(_0x3f17d8){return function(_0x4b3132,_0x2787bb){var _0x281a6e=_0x46c5;return new _0x92301f[(_0x281a6e(0x2d3))]['init'](_0x3f17d8,_0x2787bb)[_0x281a6e(0x3be)](_0x4b3132);};},_0x141038(0x217))});var _0x92301f=_0x74c59e['algo']={};return _0x74c59e;}(Math);return _0x2756df;}));}(core$1)),core$1['exports'];}__name(requireCore,_0x51f535(0x51b));var encBase64$1={'exports':{}},encBase64=encBase64$1['exports'],hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=0x1,function(_0x286f49,_0x461b8b){(function(_0x51d42f,_0x5a5a50){var _0x1e87ed=_0x46c5;_0x286f49[_0x1e87ed(0x45b)]=_0x5a5a50(requireCore());}(encBase64,function(_0x442493){var _0x278a0f=_0x46c5;return(function(){var _0x144014=_0x46c5,_0x31b052=_0x442493,_0x1fdc19=_0x31b052[_0x144014(0x2b3)],_0x37139c=_0x1fdc19[_0x144014(0x265)],_0x2ce553=_0x31b052['enc'];_0x2ce553['Base64']={'stringify':__name(function(_0x5cbe52){var _0x25cc72=_0x144014,_0x2c7898=_0x5cbe52[_0x25cc72(0x2fc)],_0x267e5c=_0x5cbe52[_0x25cc72(0x21b)],_0x534a33=this[_0x25cc72(0x24e)];_0x5cbe52['clamp']();for(var _0x473a29=[],_0x458422=0x0;_0x458422<_0x267e5c;_0x458422+=0x3)for(var _0x2b3f0c=_0x2c7898[_0x458422>>>0x2]>>>0x18-_0x458422%0x4*0x8&0xff,_0x4aa8db=_0x2c7898[_0x458422+0x1>>>0x2]>>>0x18-(_0x458422+0x1)%0x4*0x8&0xff,_0x3d97e3=_0x2c7898[_0x458422+0x2>>>0x2]>>>0x18-(_0x458422+0x2)%0x4*0x8&0xff,_0x5890c6=_0x2b3f0c<<0x10|_0x4aa8db<<0x8|_0x3d97e3,_0x49faf3=0x0;_0x49faf3<0x4&&_0x458422+_0x49faf3*0.75<_0x267e5c;_0x49faf3++)_0x473a29[_0x25cc72(0x4c5)](_0x534a33['charAt'](_0x5890c6>>>0x6*(0x3-_0x49faf3)&0x3f));var _0x4d4b57=_0x534a33[_0x25cc72(0x50f)](0x40);if(_0x4d4b57){for(;_0x473a29[_0x25cc72(0x1d3)]%0x4;)_0x473a29[_0x25cc72(0x4c5)](_0x4d4b57);}return _0x473a29[_0x25cc72(0x515)]('');},_0x144014(0x36e)),'parse':__name(function(_0x1b0840){var _0x5efb3f=_0x144014,_0x576588=_0x1b0840[_0x5efb3f(0x1d3)],_0x53b8e2=this[_0x5efb3f(0x24e)],_0x574580=this['_reverseMap'];if(!_0x574580){_0x574580=this['_reverseMap']=[];for(var _0x212b92=0x0;_0x212b92<_0x53b8e2[_0x5efb3f(0x1d3)];_0x212b92++)_0x574580[_0x53b8e2[_0x5efb3f(0x330)](_0x212b92)]=_0x212b92;}var _0x3584b8=_0x53b8e2[_0x5efb3f(0x50f)](0x40);if(_0x3584b8){var _0x1ba657=_0x1b0840[_0x5efb3f(0x3bd)](_0x3584b8);_0x1ba657!==-0x1&&(_0x576588=_0x1ba657);}return _0x37db8d(_0x1b0840,_0x576588,_0x574580);},_0x144014(0x2a9)),'_map':_0x144014(0x419)};function _0x37db8d(_0x18b157,_0x459133,_0x311226){var _0x24bcef=_0x144014;for(var _0x38d4b7=[],_0x5d7cba=0x0,_0x3d669e=0x0;_0x3d669e<_0x459133;_0x3d669e++)if(_0x3d669e%0x4){var _0x58d80d=_0x311226[_0x18b157[_0x24bcef(0x330)](_0x3d669e-0x1)]<<_0x3d669e%0x4*0x2,_0x917392=_0x311226[_0x18b157['charCodeAt'](_0x3d669e)]>>>0x6-_0x3d669e%0x4*0x2,_0x23d53d=_0x58d80d|_0x917392;_0x38d4b7[_0x5d7cba>>>0x2]|=_0x23d53d<<0x18-_0x5d7cba%0x4*0x8,_0x5d7cba++;}return _0x37139c[_0x24bcef(0x3e8)](_0x38d4b7,_0x5d7cba);}__name(_0x37db8d,_0x144014(0x2ab));}()),_0x442493['enc'][_0x278a0f(0x512)];}));}(encBase64$1)),encBase64$1['exports'];}__name(requireEncBase64,_0x51f535(0x26a));var md5$1={'exports':{}},md5=md5$1['exports'],hasRequiredMd5;function requireMd5(){var _0x4397e3=_0x51f535;return hasRequiredMd5||(hasRequiredMd5=0x1,function(_0x26f726,_0x1dc0d6){(function(_0x54d906,_0x3e2009){var _0x4bd4a5=_0x46c5;_0x26f726[_0x4bd4a5(0x45b)]=_0x3e2009(requireCore());}(md5,function(_0x55b46f){return function(_0x3422d8){var _0x418487=_0x46c5,_0x44953c=_0x55b46f,_0x2e2d45=_0x44953c['lib'],_0x8a9280=_0x2e2d45[_0x418487(0x265)],_0x4ad36e=_0x2e2d45['Hasher'],_0x5c5c22=_0x44953c[_0x418487(0x46f)],_0x1fde9d=[];(function(){var _0x3e4ead=_0x418487;for(var _0x367227=0x0;_0x367227<0x40;_0x367227++)_0x1fde9d[_0x367227]=_0x3422d8[_0x3e4ead(0x1ea)](_0x3422d8[_0x3e4ead(0x4f0)](_0x367227+0x1))*0x100000000|0x0;}());var _0x2c4742=_0x5c5c22[_0x418487(0x42d)]=_0x4ad36e[_0x418487(0x3d1)]({'_doReset':__name(function(){var _0x3b7fcd=_0x418487;this[_0x3b7fcd(0x508)]=new _0x8a9280[(_0x3b7fcd(0x351))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doReset'),'_doProcessBlock':__name(function(_0x3b93b5,_0x41fd76){var _0x3fe090=_0x418487;for(var _0x3a4b93=0x0;_0x3a4b93<0x10;_0x3a4b93++){var _0x4cce39=_0x41fd76+_0x3a4b93,_0x3a545b=_0x3b93b5[_0x4cce39];_0x3b93b5[_0x4cce39]=(_0x3a545b<<0x8|_0x3a545b>>>0x18)&0xff00ff|(_0x3a545b<<0x18|_0x3a545b>>>0x8)&0xff00ff00;}var _0x57df7b=this['_hash'][_0x3fe090(0x2fc)],_0x1002cf=_0x3b93b5[_0x41fd76+0x0],_0x23c1e4=_0x3b93b5[_0x41fd76+0x1],_0x57ea4f=_0x3b93b5[_0x41fd76+0x2],_0x4b8881=_0x3b93b5[_0x41fd76+0x3],_0xf37d92=_0x3b93b5[_0x41fd76+0x4],_0x52a00b=_0x3b93b5[_0x41fd76+0x5],_0x3b39b9=_0x3b93b5[_0x41fd76+0x6],_0x3c3429=_0x3b93b5[_0x41fd76+0x7],_0x43e915=_0x3b93b5[_0x41fd76+0x8],_0x2f1733=_0x3b93b5[_0x41fd76+0x9],_0x25f70f=_0x3b93b5[_0x41fd76+0xa],_0xa7d0f7=_0x3b93b5[_0x41fd76+0xb],_0xb1c7c7=_0x3b93b5[_0x41fd76+0xc],_0x245f00=_0x3b93b5[_0x41fd76+0xd],_0x450486=_0x3b93b5[_0x41fd76+0xe],_0x2c5dbc=_0x3b93b5[_0x41fd76+0xf],_0x64e25c=_0x57df7b[0x0],_0x1b7454=_0x57df7b[0x1],_0x36e1b2=_0x57df7b[0x2],_0x23daab=_0x57df7b[0x3];_0x64e25c=_0x3ef497(_0x64e25c,_0x1b7454,_0x36e1b2,_0x23daab,_0x1002cf,0x7,_0x1fde9d[0x0]),_0x23daab=_0x3ef497(_0x23daab,_0x64e25c,_0x1b7454,_0x36e1b2,_0x23c1e4,0xc,_0x1fde9d[0x1]),_0x36e1b2=_0x3ef497(_0x36e1b2,_0x23daab,_0x64e25c,_0x1b7454,_0x57ea4f,0x11,_0x1fde9d[0x2]),_0x1b7454=_0x3ef497(_0x1b7454,_0x36e1b2,_0x23daab,_0x64e25c,_0x4b8881,0x16,_0x1fde9d[0x3]),_0x64e25c=_0x3ef497(_0x64e25c,_0x1b7454,_0x36e1b2,_0x23daab,_0xf37d92,0x7,_0x1fde9d[0x4]),_0x23daab=_0x3ef497(_0x23daab,_0x64e25c,_0x1b7454,_0x36e1b2,_0x52a00b,0xc,_0x1fde9d[0x5]),_0x36e1b2=_0x3ef497(_0x36e1b2,_0x23daab,_0x64e25c,_0x1b7454,_0x3b39b9,0x11,_0x1fde9d[0x6]),_0x1b7454=_0x3ef497(_0x1b7454,_0x36e1b2,_0x23daab,_0x64e25c,_0x3c3429,0x16,_0x1fde9d[0x7]),_0x64e25c=_0x3ef497(_0x64e25c,_0x1b7454,_0x36e1b2,_0x23daab,_0x43e915,0x7,_0x1fde9d[0x8]),_0x23daab=_0x3ef497(_0x23daab,_0x64e25c,_0x1b7454,_0x36e1b2,_0x2f1733,0xc,_0x1fde9d[0x9]),_0x36e1b2=_0x3ef497(_0x36e1b2,_0x23daab,_0x64e25c,_0x1b7454,_0x25f70f,0x11,_0x1fde9d[0xa]),_0x1b7454=_0x3ef497(_0x1b7454,_0x36e1b2,_0x23daab,_0x64e25c,_0xa7d0f7,0x16,_0x1fde9d[0xb]),_0x64e25c=_0x3ef497(_0x64e25c,_0x1b7454,_0x36e1b2,_0x23daab,_0xb1c7c7,0x7,_0x1fde9d[0xc]),_0x23daab=_0x3ef497(_0x23daab,_0x64e25c,_0x1b7454,_0x36e1b2,_0x245f00,0xc,_0x1fde9d[0xd]),_0x36e1b2=_0x3ef497(_0x36e1b2,_0x23daab,_0x64e25c,_0x1b7454,_0x450486,0x11,_0x1fde9d[0xe]),_0x1b7454=_0x3ef497(_0x1b7454,_0x36e1b2,_0x23daab,_0x64e25c,_0x2c5dbc,0x16,_0x1fde9d[0xf]),_0x64e25c=_0x3f0c43(_0x64e25c,_0x1b7454,_0x36e1b2,_0x23daab,_0x23c1e4,0x5,_0x1fde9d[0x10]),_0x23daab=_0x3f0c43(_0x23daab,_0x64e25c,_0x1b7454,_0x36e1b2,_0x3b39b9,0x9,_0x1fde9d[0x11]),_0x36e1b2=_0x3f0c43(_0x36e1b2,_0x23daab,_0x64e25c,_0x1b7454,_0xa7d0f7,0xe,_0x1fde9d[0x12]),_0x1b7454=_0x3f0c43(_0x1b7454,_0x36e1b2,_0x23daab,_0x64e25c,_0x1002cf,0x14,_0x1fde9d[0x13]),_0x64e25c=_0x3f0c43(_0x64e25c,_0x1b7454,_0x36e1b2,_0x23daab,_0x52a00b,0x5,_0x1fde9d[0x14]),_0x23daab=_0x3f0c43(_0x23daab,_0x64e25c,_0x1b7454,_0x36e1b2,_0x25f70f,0x9,_0x1fde9d[0x15]),_0x36e1b2=_0x3f0c43(_0x36e1b2,_0x23daab,_0x64e25c,_0x1b7454,_0x2c5dbc,0xe,_0x1fde9d[0x16]),_0x1b7454=_0x3f0c43(_0x1b7454,_0x36e1b2,_0x23daab,_0x64e25c,_0xf37d92,0x14,_0x1fde9d[0x17]),_0x64e25c=_0x3f0c43(_0x64e25c,_0x1b7454,_0x36e1b2,_0x23daab,_0x2f1733,0x5,_0x1fde9d[0x18]),_0x23daab=_0x3f0c43(_0x23daab,_0x64e25c,_0x1b7454,_0x36e1b2,_0x450486,0x9,_0x1fde9d[0x19]),_0x36e1b2=_0x3f0c43(_0x36e1b2,_0x23daab,_0x64e25c,_0x1b7454,_0x4b8881,0xe,_0x1fde9d[0x1a]),_0x1b7454=_0x3f0c43(_0x1b7454,_0x36e1b2,_0x23daab,_0x64e25c,_0x43e915,0x14,_0x1fde9d[0x1b]),_0x64e25c=_0x3f0c43(_0x64e25c,_0x1b7454,_0x36e1b2,_0x23daab,_0x245f00,0x5,_0x1fde9d[0x1c]),_0x23daab=_0x3f0c43(_0x23daab,_0x64e25c,_0x1b7454,_0x36e1b2,_0x57ea4f,0x9,_0x1fde9d[0x1d]),_0x36e1b2=_0x3f0c43(_0x36e1b2,_0x23daab,_0x64e25c,_0x1b7454,_0x3c3429,0xe,_0x1fde9d[0x1e]),_0x1b7454=_0x3f0c43(_0x1b7454,_0x36e1b2,_0x23daab,_0x64e25c,_0xb1c7c7,0x14,_0x1fde9d[0x1f]),_0x64e25c=_0x47d6b5(_0x64e25c,_0x1b7454,_0x36e1b2,_0x23daab,_0x52a00b,0x4,_0x1fde9d[0x20]),_0x23daab=_0x47d6b5(_0x23daab,_0x64e25c,_0x1b7454,_0x36e1b2,_0x43e915,0xb,_0x1fde9d[0x21]),_0x36e1b2=_0x47d6b5(_0x36e1b2,_0x23daab,_0x64e25c,_0x1b7454,_0xa7d0f7,0x10,_0x1fde9d[0x22]),_0x1b7454=_0x47d6b5(_0x1b7454,_0x36e1b2,_0x23daab,_0x64e25c,_0x450486,0x17,_0x1fde9d[0x23]),_0x64e25c=_0x47d6b5(_0x64e25c,_0x1b7454,_0x36e1b2,_0x23daab,_0x23c1e4,0x4,_0x1fde9d[0x24]),_0x23daab=_0x47d6b5(_0x23daab,_0x64e25c,_0x1b7454,_0x36e1b2,_0xf37d92,0xb,_0x1fde9d[0x25]),_0x36e1b2=_0x47d6b5(_0x36e1b2,_0x23daab,_0x64e25c,_0x1b7454,_0x3c3429,0x10,_0x1fde9d[0x26]),_0x1b7454=_0x47d6b5(_0x1b7454,_0x36e1b2,_0x23daab,_0x64e25c,_0x25f70f,0x17,_0x1fde9d[0x27]),_0x64e25c=_0x47d6b5(_0x64e25c,_0x1b7454,_0x36e1b2,_0x23daab,_0x245f00,0x4,_0x1fde9d[0x28]),_0x23daab=_0x47d6b5(_0x23daab,_0x64e25c,_0x1b7454,_0x36e1b2,_0x1002cf,0xb,_0x1fde9d[0x29]),_0x36e1b2=_0x47d6b5(_0x36e1b2,_0x23daab,_0x64e25c,_0x1b7454,_0x4b8881,0x10,_0x1fde9d[0x2a]),_0x1b7454=_0x47d6b5(_0x1b7454,_0x36e1b2,_0x23daab,_0x64e25c,_0x3b39b9,0x17,_0x1fde9d[0x2b]),_0x64e25c=_0x47d6b5(_0x64e25c,_0x1b7454,_0x36e1b2,_0x23daab,_0x2f1733,0x4,_0x1fde9d[0x2c]),_0x23daab=_0x47d6b5(_0x23daab,_0x64e25c,_0x1b7454,_0x36e1b2,_0xb1c7c7,0xb,_0x1fde9d[0x2d]),_0x36e1b2=_0x47d6b5(_0x36e1b2,_0x23daab,_0x64e25c,_0x1b7454,_0x2c5dbc,0x10,_0x1fde9d[0x2e]),_0x1b7454=_0x47d6b5(_0x1b7454,_0x36e1b2,_0x23daab,_0x64e25c,_0x57ea4f,0x17,_0x1fde9d[0x2f]),_0x64e25c=_0x1b2c79(_0x64e25c,_0x1b7454,_0x36e1b2,_0x23daab,_0x1002cf,0x6,_0x1fde9d[0x30]),_0x23daab=_0x1b2c79(_0x23daab,_0x64e25c,_0x1b7454,_0x36e1b2,_0x3c3429,0xa,_0x1fde9d[0x31]),_0x36e1b2=_0x1b2c79(_0x36e1b2,_0x23daab,_0x64e25c,_0x1b7454,_0x450486,0xf,_0x1fde9d[0x32]),_0x1b7454=_0x1b2c79(_0x1b7454,_0x36e1b2,_0x23daab,_0x64e25c,_0x52a00b,0x15,_0x1fde9d[0x33]),_0x64e25c=_0x1b2c79(_0x64e25c,_0x1b7454,_0x36e1b2,_0x23daab,_0xb1c7c7,0x6,_0x1fde9d[0x34]),_0x23daab=_0x1b2c79(_0x23daab,_0x64e25c,_0x1b7454,_0x36e1b2,_0x4b8881,0xa,_0x1fde9d[0x35]),_0x36e1b2=_0x1b2c79(_0x36e1b2,_0x23daab,_0x64e25c,_0x1b7454,_0x25f70f,0xf,_0x1fde9d[0x36]),_0x1b7454=_0x1b2c79(_0x1b7454,_0x36e1b2,_0x23daab,_0x64e25c,_0x23c1e4,0x15,_0x1fde9d[0x37]),_0x64e25c=_0x1b2c79(_0x64e25c,_0x1b7454,_0x36e1b2,_0x23daab,_0x43e915,0x6,_0x1fde9d[0x38]),_0x23daab=_0x1b2c79(_0x23daab,_0x64e25c,_0x1b7454,_0x36e1b2,_0x2c5dbc,0xa,_0x1fde9d[0x39]),_0x36e1b2=_0x1b2c79(_0x36e1b2,_0x23daab,_0x64e25c,_0x1b7454,_0x3b39b9,0xf,_0x1fde9d[0x3a]),_0x1b7454=_0x1b2c79(_0x1b7454,_0x36e1b2,_0x23daab,_0x64e25c,_0x245f00,0x15,_0x1fde9d[0x3b]),_0x64e25c=_0x1b2c79(_0x64e25c,_0x1b7454,_0x36e1b2,_0x23daab,_0xf37d92,0x6,_0x1fde9d[0x3c]),_0x23daab=_0x1b2c79(_0x23daab,_0x64e25c,_0x1b7454,_0x36e1b2,_0xa7d0f7,0xa,_0x1fde9d[0x3d]),_0x36e1b2=_0x1b2c79(_0x36e1b2,_0x23daab,_0x64e25c,_0x1b7454,_0x57ea4f,0xf,_0x1fde9d[0x3e]),_0x1b7454=_0x1b2c79(_0x1b7454,_0x36e1b2,_0x23daab,_0x64e25c,_0x2f1733,0x15,_0x1fde9d[0x3f]),_0x57df7b[0x0]=_0x57df7b[0x0]+_0x64e25c|0x0,_0x57df7b[0x1]=_0x57df7b[0x1]+_0x1b7454|0x0,_0x57df7b[0x2]=_0x57df7b[0x2]+_0x36e1b2|0x0,_0x57df7b[0x3]=_0x57df7b[0x3]+_0x23daab|0x0;},_0x418487(0x4b1)),'_doFinalize':__name(function(){var _0x406bf5=_0x418487,_0xc39031=this[_0x406bf5(0x4df)],_0x473405=_0xc39031[_0x406bf5(0x2fc)],_0x3b46dd=this[_0x406bf5(0x38f)]*0x8,_0x9dd0a2=_0xc39031[_0x406bf5(0x21b)]*0x8;_0x473405[_0x9dd0a2>>>0x5]|=0x80<<0x18-_0x9dd0a2%0x20;var _0x5bf793=_0x3422d8['floor'](_0x3b46dd/0x100000000),_0x31653c=_0x3b46dd;_0x473405[(_0x9dd0a2+0x40>>>0x9<<0x4)+0xf]=(_0x5bf793<<0x8|_0x5bf793>>>0x18)&0xff00ff|(_0x5bf793<<0x18|_0x5bf793>>>0x8)&0xff00ff00,_0x473405[(_0x9dd0a2+0x40>>>0x9<<0x4)+0xe]=(_0x31653c<<0x8|_0x31653c>>>0x18)&0xff00ff|(_0x31653c<<0x18|_0x31653c>>>0x8)&0xff00ff00,_0xc39031[_0x406bf5(0x21b)]=(_0x473405[_0x406bf5(0x1d3)]+0x1)*0x4,this[_0x406bf5(0x488)]();for(var _0x10756d=this[_0x406bf5(0x508)],_0x4cf512=_0x10756d[_0x406bf5(0x2fc)],_0xbaed7c=0x0;_0xbaed7c<0x4;_0xbaed7c++){var _0x2586cd=_0x4cf512[_0xbaed7c];_0x4cf512[_0xbaed7c]=(_0x2586cd<<0x8|_0x2586cd>>>0x18)&0xff00ff|(_0x2586cd<<0x18|_0x2586cd>>>0x8)&0xff00ff00;}return _0x10756d;},'_doFinalize'),'clone':__name(function(){var _0x3529df=_0x418487,_0x4f3683=_0x4ad36e[_0x3529df(0x37e)][_0x3529df(0x25c)](this);return _0x4f3683[_0x3529df(0x508)]=this['_hash'][_0x3529df(0x37e)](),_0x4f3683;},_0x418487(0x37e))});function _0x3ef497(_0x1691b7,_0x19b04a,_0x1f3f44,_0xaa3607,_0x372b6e,_0x42d565,_0x16d86b){var _0x96e7d0=_0x1691b7+(_0x19b04a&_0x1f3f44|~_0x19b04a&_0xaa3607)+_0x372b6e+_0x16d86b;return(_0x96e7d0<<_0x42d565|_0x96e7d0>>>0x20-_0x42d565)+_0x19b04a;}__name(_0x3ef497,'FF');function _0x3f0c43(_0x48679c,_0x24dd50,_0x2e445e,_0x146df5,_0x3389c6,_0xc1a5db,_0x2416b2){var _0x4f7a1c=_0x48679c+(_0x24dd50&_0x146df5|_0x2e445e&~_0x146df5)+_0x3389c6+_0x2416b2;return(_0x4f7a1c<<_0xc1a5db|_0x4f7a1c>>>0x20-_0xc1a5db)+_0x24dd50;}__name(_0x3f0c43,'GG');function _0x47d6b5(_0x4028fa,_0xc5070b,_0x32dbc0,_0xfb9a10,_0x212301,_0x163633,_0x25769f){var _0x602985=_0x4028fa+(_0xc5070b^_0x32dbc0^_0xfb9a10)+_0x212301+_0x25769f;return(_0x602985<<_0x163633|_0x602985>>>0x20-_0x163633)+_0xc5070b;}__name(_0x47d6b5,'HH');function _0x1b2c79(_0x47d7fc,_0x552050,_0x11c93e,_0x11226a,_0xe311b1,_0xc19bd0,_0x7057ff){var _0x539897=_0x47d7fc+(_0x11c93e^(_0x552050|~_0x11226a))+_0xe311b1+_0x7057ff;return(_0x539897<<_0xc19bd0|_0x539897>>>0x20-_0xc19bd0)+_0x552050;}__name(_0x1b2c79,'II'),_0x44953c[_0x418487(0x42d)]=_0x4ad36e[_0x418487(0x504)](_0x2c4742),_0x44953c[_0x418487(0x3fa)]=_0x4ad36e[_0x418487(0x217)](_0x2c4742);}(Math),_0x55b46f['MD5'];}));}(md5$1)),md5$1[_0x4397e3(0x45b)];}__name(requireMd5,'requireMd5');var evpkdf$1={'exports':{}},sha1$1={'exports':{}},sha1=sha1$1[_0x51f535(0x45b)],hasRequiredSha1;function requireSha1(){var _0x3aea6b=_0x51f535;return hasRequiredSha1||(hasRequiredSha1=0x1,function(_0x1f280d,_0x152500){(function(_0x46d9e1,_0x1f2966){var _0x3f8f8c=_0x46c5;_0x1f280d[_0x3f8f8c(0x45b)]=_0x1f2966(requireCore());}(sha1,function(_0x25d8dc){var _0x41a9ae=_0x46c5;return(function(){var _0x56f787=_0x46c5,_0x3bffa4=_0x25d8dc,_0xf97096=_0x3bffa4[_0x56f787(0x2b3)],_0x26f7ca=_0xf97096[_0x56f787(0x265)],_0x258409=_0xf97096[_0x56f787(0x260)],_0x303755=_0x3bffa4['algo'],_0x2a35b7=[],_0x13c7d5=_0x303755[_0x56f787(0x24c)]=_0x258409[_0x56f787(0x3d1)]({'_doReset':__name(function(){this['_hash']=new _0x26f7ca['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},_0x56f787(0x4e7)),'_doProcessBlock':__name(function(_0x479d1c,_0xc5b5cf){var _0x4f9e87=_0x56f787;for(var _0x1552bb=this[_0x4f9e87(0x508)][_0x4f9e87(0x2fc)],_0xec7f8=_0x1552bb[0x0],_0x4b9214=_0x1552bb[0x1],_0x4d8fd5=_0x1552bb[0x2],_0xe857d8=_0x1552bb[0x3],_0x2978a9=_0x1552bb[0x4],_0x398466=0x0;_0x398466<0x50;_0x398466++){if(_0x398466<0x10)_0x2a35b7[_0x398466]=_0x479d1c[_0xc5b5cf+_0x398466]|0x0;else{var _0x3a9c71=_0x2a35b7[_0x398466-0x3]^_0x2a35b7[_0x398466-0x8]^_0x2a35b7[_0x398466-0xe]^_0x2a35b7[_0x398466-0x10];_0x2a35b7[_0x398466]=_0x3a9c71<<0x1|_0x3a9c71>>>0x1f;}var _0x13f2d9=(_0xec7f8<<0x5|_0xec7f8>>>0x1b)+_0x2978a9+_0x2a35b7[_0x398466];_0x398466<0x14?_0x13f2d9+=(_0x4b9214&_0x4d8fd5|~_0x4b9214&_0xe857d8)+0x5a827999:_0x398466<0x28?_0x13f2d9+=(_0x4b9214^_0x4d8fd5^_0xe857d8)+0x6ed9eba1:_0x398466<0x3c?_0x13f2d9+=(_0x4b9214&_0x4d8fd5|_0x4b9214&_0xe857d8|_0x4d8fd5&_0xe857d8)-0x70e44324:_0x13f2d9+=(_0x4b9214^_0x4d8fd5^_0xe857d8)-0x359d3e2a,_0x2978a9=_0xe857d8,_0xe857d8=_0x4d8fd5,_0x4d8fd5=_0x4b9214<<0x1e|_0x4b9214>>>0x2,_0x4b9214=_0xec7f8,_0xec7f8=_0x13f2d9;}_0x1552bb[0x0]=_0x1552bb[0x0]+_0xec7f8|0x0,_0x1552bb[0x1]=_0x1552bb[0x1]+_0x4b9214|0x0,_0x1552bb[0x2]=_0x1552bb[0x2]+_0x4d8fd5|0x0,_0x1552bb[0x3]=_0x1552bb[0x3]+_0xe857d8|0x0,_0x1552bb[0x4]=_0x1552bb[0x4]+_0x2978a9|0x0;},'_doProcessBlock'),'_doFinalize':__name(function(){var _0x24fb13=_0x56f787,_0x45c5b2=this[_0x24fb13(0x4df)],_0x574a38=_0x45c5b2[_0x24fb13(0x2fc)],_0x2b8a51=this[_0x24fb13(0x38f)]*0x8,_0x493efc=_0x45c5b2['sigBytes']*0x8;return _0x574a38[_0x493efc>>>0x5]|=0x80<<0x18-_0x493efc%0x20,_0x574a38[(_0x493efc+0x40>>>0x9<<0x4)+0xe]=Math['floor'](_0x2b8a51/0x100000000),_0x574a38[(_0x493efc+0x40>>>0x9<<0x4)+0xf]=_0x2b8a51,_0x45c5b2[_0x24fb13(0x21b)]=_0x574a38['length']*0x4,this[_0x24fb13(0x488)](),this[_0x24fb13(0x508)];},_0x56f787(0x3d4)),'clone':__name(function(){var _0x201f71=_0x56f787,_0xc919b1=_0x258409[_0x201f71(0x37e)][_0x201f71(0x25c)](this);return _0xc919b1[_0x201f71(0x508)]=this[_0x201f71(0x508)][_0x201f71(0x37e)](),_0xc919b1;},_0x56f787(0x37e))});_0x3bffa4[_0x56f787(0x24c)]=_0x258409[_0x56f787(0x504)](_0x13c7d5),_0x3bffa4['HmacSHA1']=_0x258409[_0x56f787(0x217)](_0x13c7d5);}()),_0x25d8dc[_0x41a9ae(0x24c)];}));}(sha1$1)),sha1$1[_0x3aea6b(0x45b)];}__name(requireSha1,_0x51f535(0x284));function _0x11f7(){var _0x597b4e=['getInterceptPoints','_onRecvEvent','__creator','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_process','joinRsp','onStateChange','_submitChangeset','json','_registerDependencies','[CollaborationUndoRedoService]','_getAPIPrefix','reverse','UNDEFINED','_transitionLocked','shouldCloseConn','JOIN','HEARTBEAT','enableAuthServer','state','LIVESHARE_NEW_HOST','[CollaborationSessionService]:\x20socket\x20error','\x0aCurrent:\x20','[SyncedState]:\x20received\x20acknowledgement.','_scheduleCollaborationTimeoutTimer','_roomMembers','getImageSourceCache','$super','getTypeOfUnitAdded$','__defNormalProp','socket\x20open.','random','newCsEvent','_checkMissing','__decorateClass$6','_stopTelemetryCollaborationNewChangeset','_sendHeartbeatTimer','Hex','_onConflict','COMMENT_UPDATE','UNIVER_DOC','complete','_getLoginPath','has','dispose','_doProcessBlock','roles','actions','BASE64','subUnitId','delete','UNIVER_SHEET','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','session.room-permission-denied','format','setCurrentUser','_tryReconnect','requireEvpkdf','stopTime','unpad','[OfflineState]:\x20received\x20rejection.','__decorateParam$7','online$','bind','addImageSourceCache','push','/resources','SUCCUSS','_telemetryService','687xiTnuS','awaitingChangeset','__decorateParam$f','transformChangesets','LICENSE_IMPORT_SIZE_EXCEEDED','_clearUndo','_memberService','transformSelections','getMember','image/jpeg','INVALID_ARGUMENT','change$','subscribe','__decorateClass$7','_hasher','post','People','_unlockTransition','_change$','GLOBAL_ROOMS_CNT_EXCEEDS','CollaborationController','assembleDocChangeset','_data','355opxLrU','fetching\x20missing\x20changesets\x20from\x20','USERS_LEAVE','liveShareOperation','_onJoinRoomEvent','toggleOnline','every','_doReset','CipherParams','5944010BYAIwb','__decorateParam$3','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_members','_changesetSessionId','getActiveSheet','ALREADY_EXISTS','sin','prototype','signUrlServerUrl','revision','pauseCollaboration','authzUrl','SOCKET_FAILED','_DEC_XFORM_MODE','processBlock','FETCH_MISSING','{fileID}','_invKeySchedule','CollaborationState','_showConflictNotification','decrypt','fromCollab','session.join-failed','override','resend','__decorateParam$i','_createHelper','_resendWithTimeout','function','__publicField','_hash','fetchMiss','requireSession','OTHER_CLIENT_EDITING','_HTTPService','_instanceService','eventID','charAt','CollaborationSession','CBC','Base64','_substituteUndoStack','_undoRedoService','join','LOCAL_CACHE_INTERVAL','deepClone','_keySchedule','__decorateParam$5','fetchThroughInterceptors','requireCore','__decorateClass$1','_getAPIPrefixPath','awaiting_with_pending','createSocket','getLocalCacheKey','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','INGEST','enableSingleActiveInstanceLock','_applyRemoteChangeset','_createSocketURL','__decorateClass$3','_httpService','mixIn','__decorateParam$8','UnitSnapshot','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_acknowledgedAwaitingChangeset','__decorateParam$1','LICENSE_MAX_UNITS_EXCEEDED','length','_emitMembers','HELLO','unitID','/universer-api/oidc/authpage','AWAITING_WITH_PENDING','SOCKET_FAILED_RETRY','awaiting','_updateState','byteLength','/allowed','_collaborationTimeoutTimer','_revisionService','UNIVER_UNKNOWN','BlockCipher','min','__decorateClass$5','_createInitialState','_unitID','&assign=','src','clamp','/-/object/-/batch_allowed','abs','onSyncEditingCollabCursor','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','MemberService','onCommentUpdate','encryptBlock','__decorateClass$9','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','COMPLETION_FINISHED','_scheduleCompleteTimestamp','_transformSelections','_iKey','transformMutationsWithChangeset','iterations','_sessions','_unitInfo$','_minBufferSize','_doCryptBlock','objectType','sessionStatus$','disposeWithMe','toggleOffline','_socketService','filter','set','Undefined','/collaborator','repeat','memberID','_onRemoteChangeset','\x20in\x20_schedule.','emitEvent','_key','_univerInstanceService','interceptor','executeCommand','confirm','PERMISSION_DENIED','_redoStacks','_getCtorByUniverType','_getSendChangesetTimeout','_sheetTransformSelectionsService','sid','OFFLINE','includes','_createHmacHelper','UNIVER_COLLABORATION_CLIENT_PLUGIN','batchAllowed','HEARTBEAT_TIMEOUT','sigBytes','_waitForHeartbeatResponse','DEFAULT_FILE_NAME','_transformStack','pkcs7Padding','Base','onTransformRemoteChangesetByIMECache','AwaitingState','synced','list','body','HttpExport','_queuedRemoteChangesets','PERMISSION_REJ','_fetchMissChangesets','__decorateClass$g','collaMsg','33WkOdxj','_transformUndoredo','RETRY_CONNECTING_MAX_COUNT','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','onlyLocal','CollaborationSocketService','snapshotServerUrl','_commentUpdate$','members$','closeSession','onRemoteRej','PENDING','csShouldRetryEvent','_type','padding','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','Univer','dispose$','rng','onRemoteChangeset','incrementRevOfUnit','_disableEditing','c2Prime','univer-pro.collaboration-client-socket-service','initWorkbookPermissionChange','univer-pro.collaboration-client.network-condition.service','url','/new_changes','_xformMode','_getSessionTicket','routeKey','MentionIoHttpService','SHA1','next','_map','saveImage','EvpKDF','_collaborationSessionService','getUnitOnRev','_initCloseConn','_roomCreated$','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_shouldReportTelemetry','_initMergeInterceptor','range','_collaborationPaused','updatePermissionObjEvent','_retryConnectingTimer','call','search','compose','_onRemoteRetry','Hasher','enc','state$','getValue','string','WordArray','94619kqPIaL','LIVESHARE_REQUEST_HOST','createCollaborator','error','requireEncBase64','failed\x20to\x20apply\x20missed\x20changesets!','pluginName','_createHandler','setWaitCount','__decorateClass$h','_onMessage','_replayCachedMutations','randomUUID','_onFetchMissResult','CommentService','_onCombEvent','session.room-not-exists','addHandlerCallback','getTime','reqId','AuthzIoHttpService','collaboratorID','update','_clearHeartbeatTimer','Decryptor','getCurrentRevOfUnit','_onRemoteRejected','\x20-\x20','[DataLoaderService]','pipe','requireSha1','result','NO_OTHER_CLIENTS_EDITING','_getDownloadEndpointURL','onCommandExecuted','transformStack\x20failed!','_executeRemoteChangeset','_clearCollaborationTimeoutTimer','readAsDataURL','floor','OTHER_CLIENTS_EDITING','csAckEvent','objects','_rescheduleHeartbeat','createOnlineState','updateCursorEvent','_undoStacks','MUTATION','updateOfflineData','socketService','_userManagerService','randomBytes','_handlerCallback','equals','FetchingMissState','_authzIoService','capture','SUBMIT_CHANGESET_TIMEOUT','cfg','setShowComponents','_initDependencies','cmd','UNKNOWN_CODE','sheets','submit\x20changeset\x20error!','_commentService','2167020fqjtPP','parse','blockSize','parseLoop','JOIN_ROOM_NOT_EXISTS','objectID','_isPermissionRej','collabWebSocketUrl','_socket$','getUnitId','_snapshotServerService','lib','/rev/','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','send','unsafeStringify','map','LEAVE','_transformRemoteChangesetByIMECache','Utf8','infoRsp','unitId','UPDATE_CURSOR','focused$','registerHTTPInterceptor','copyFileMeta','[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.','defineProperty','fetch_missing','error$','catch','UNKNOWN_CMD','_transformRemoteChangesetByStateCache','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','ERROR_IMAGE_TYPE','SheetTransformSelectionsService','hasher','x-univer-host','YUUMI_RATE_OVER_LIMIT','_permissionService','_updateLocalCache','_updateStatus','OPTIONAL','HMAC','_loadDoc','getAllMembers','_clearTimeoutTimer','_retryCount','clear','onMissingChangesets','salt','requireAes','ENSURE_SNAPSHOT_EXECUTION','conflict','mode','_state','_handler','localeService','__decorateParam$4','requireLibTypedarrays','transformUndoRedo','csRejEvent','_createInitialStateImpl','sessionStatus','[UniverCollaborationClientPlugin]','leaveEvent','loadSheet','_imageSourceCache','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_remoteChangesetQueue','getResourcesRequest','_mode','__decorateClass','max','baseRev','/universer-api/stream/file/upload','CLOSE_ROOM','textRanges','decryptBlock','_lockTransition','ceil','_createSocket','resolve','words','_collabSessionService','encrypt','__decorateParam$g','RECV','message$','then','UNIVER_SLIDE','_replaceFileID','isArray','_substituteRedoStack','generateSubmitChangesPath','JOIN_ROOM_FULL','downloadEndpointUrl','_onUserJoin','listRoles','loadUnit','updateCollaborator','Encryptor','__esModule','getConfig','href','_resendTimer','COMPRESS_MUTATION_APPLY','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_toggleOffline','getDefaultExportFromCjs','getAttachHeader','univer-pro.collaboration-client.single-active-unit-service','LICENSE_EXPORT_SIZE_EXCEEDED','__decorateClass$b','68538GBduzj','slice','rev','onMissedChangesetFetched','[CollaborationSessionService]','pending','_getCurrentRevision','getSnapshotAPIPath','_onOffline','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','USERS_ENTER','replace','_event$','__decorateParam$a','getFocusedUnit','ONLINE','_listenToNetworkCondition','_socketReady','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','[CollaborationEntity]','getOwnPropertyDescriptor','charCodeAt','duration','telemetry\x20info\x20is\x20not\x20initialized','listCollaborators','_entityInit$','byteOffset','_syncEditingCollabCursor','removeMember','msCrypto','__decorateParam$2','_socket','CHANGESET_REJ','_http','onTransformRemoteChangesetByStateCache','Cipher','waitForRoom$','APPLY_DUPLICATED','YUUMI_UNABLE_LOAD_URL','onTransformIME','put','BufferedBlockAlgorithm','_pendingMutations','getUnitType','saveSheetBlock','commentUpdateEvent','close$','liveShareNewHost','_localCacheService','1160wJoJHs','getImage','status','TOO_MANY_REQUESTS','_keyPriorReset','init','_state$','SHOULD_CLOSE_CONN','/object','CHANGESET_REVISION_CONFILICT','connection\x20error','Latin1','encodeURIComponent','uniscriptRunEvent','reduce','AWAITING','kdf','_timeoutTimer','_iv','CollaborativeUndoRedoService','session.room-full','IDLE','isPermissionRej','getDeserializedSheetBlock','concat','_sessionStatus$','_transformIMECache','apply','__decorateClass$e','cryptoSecureRandomInt','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','BlockCipherMode','_compressMutationService','splice','stringify','_collaborationUIEventService','_transformStateCache','createDecryptor','requirePadNopadding','loadOfflineData','/universer-api/comb','UNAUTHENTICATED','getTypeOfUnitDisposed$','_status$','POST','onRemoteRetry','requestParams','_telemetryInfo','_singleActiveUnitService','hostname','clone','location','_onUserLeave','getSheetId','getUnitStatus$','retryConnectingInterval','ciphertext','_config','_onConnectionFailed','_initUnitPermissionChange','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_tryEnsureSocket','collaboration-client.config','asObservable','[CollaborationState]:\x20apply\x20error!','getCurrentSelections','m2Prime','_nDataBytes','/universer-api/file/{fileID}/sign-url','/universer-api/authz','_onLocalMutation','_configService','pad','OpenSSL','disableLocalCache','APPLY_REJECT','originalMeta','UPDATE_PERMISSION_OBJ','requireEncUtf8','320qlAsOD','ws://127.0.0.1:8000/universer-api/comb/connect','mutations','_decreaseWaiting','JOINING','loginUrlKey','SheetCollaborationEntity','_clearScheduledTask','saveSnapshot','_sendHeartbeat','process','unsubscribe','RoomMember','runId','_entities','title','assembleSheetChangeset','_sendingTimer','collaborators','allowed','ERROR_IMAGE','JOIN_ROOM_PERMISSION_DENIED','fetchMissingChangesets','COLLAB_SUBMIT_CHANGESET_URL','createInstance','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','AuthServerService','_candidateSocket','ivSize','onload','append','getCurrentUser','_getRedoStack','_append','indexOf','finalize','commonjsRequire','encode','toString','PermissionService','deserializeToCombResponse','[SyncedState]:\x20received\x20rejection.','getCollabEntity$','onTransformSelections','keySize','INTERNAL_ERROR','_logService','save\x20fail\x20reason\x20is\x20','extractTargetFromFirstChangeset','params','UNRECOGNIZED','_snapshotService','/fetchmissing?from=','PendingState','extend','CHANGESET_SHOULD_RETRY','/universer-api/uniscript','_doFinalize','status$','/unit/','setConfig','NOT_FOUND','_clearLocalCache','_waitCount','createEncryptor','_prevBlock','LIVESHARE_FETCH_OPERATIONS','unitId\x20is\x20not\x20found','CHANGESET_ACK','subject','_nRounds','buffer','getCollabEntity','_members$','HttpImport','updatePermissionPoint','__decorateParam$b','create','\x0aAfter:\x20','name','9otcsrN','updateMember','_awaitingChangeset','CollaborationSessionService','UnitEmbedded','onSendChangeset','[PendingState]:\x20received\x20rejection.','OfflineState','UniverCollaborationClientPlugin','_schedule','getRandomValues','default','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','JOIN_ROOM_FAILED','APPLY_NON_SEQUENTIAL_REVISION','HmacMD5','701671TFGNaM','PY_RUNTIME_SCRIPT_ERROR','session','_onRemoteACK','unknown','method','socket$','headers','/-/object/list','PSEUDO_FETCH_MISSING_RESULT','__decorateClass$d','StreamCipher','_oKey','_changesetReqId','_startCollaboration','_eventService','_parse','SNAPSHOT_URL_KEY','_commandService','get','YUUMI_SUBSCRIPTION_NOT_FOUND','_throwTelemetryCollaborationNewChangeset','appendMutation','__decorateClass$8','_onConnectionOpen','__decorateParam$e','crypto','CONNECTOR_DATA_TOO_LARGE','patch','key','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','FAIL','reset','forEach','symbol','_ENC_XFORM_MODE','__decorateParam','_joinRoom','execute','/block/','origin','_sender','type','find','_startTelemetryCollaborationNewChangeset','onTransformState','selections','_incrementRevisionNumber','LICENSE_DISTRO_REJECTED','LIVESHARE_OPERATION','MD5','LIVESHARE_TERMINATE','&source=','SerializableCipher','userID','data','wsSessionTicketUrl','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','image/bmp','code','_localeService','_networkConditionService','AUTHZ_URL_KEY','AES','SUBMIT_CHANGESET','_socketMessageSubscription','SnapshotServerOverHTTPService','unit-cache-','MSG_FOR_ERROR','changesets','/object/','getMemberID','searchParams','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','permissionRejEvent','PERSON','__decorateParam$6','CollaborationImageIoService','size','collaboration_new_changeset','_getUploadFileURL','Pkcs7','handleCloseConn','UNIVER_PROJECT','SNAPSHOT_HAS_BEEN_REMOVED','NoPadding','event$','NOT_COLLAB','__decorateClass$a','\x20to\x20','localCacheService','add','CONFLICT','SNAPSHOT_INVALID_SNAPSHOT','_injector','exports','LOGIN_URL_KEY','_exhaustRemoteChangesetQueue','_transformService','deleteCollaborator','1233088gEvCtv','members','SNAPSHOT_SERVER_URL_KEY','generateRandomId','workbook','loadDoc','_init','?url=','__decorateClass$c','_getSignURL','objectActions','saveChangeset','_loadSheet','__decorateClass$2','debug','algo','APPLY_REVISION_CONFILICT','c1Prime','_resendTimeout','collabSubmitChangesetUrl','hasOwnProperty','__decorateParam$d','onRemoteAck','auth.needGotoLoginAlert','APPLY_PERMISSION_DENIED','unitInfo$','requireCipherCore','close','reject','readyForCollab','getRoom','requireHmac','readInt32LE','_clearRedo','editing\x20status\x20changed\x20to','FileNameController'];_0x11f7=function(){return _0x597b4e;};return _0x11f7();}var hmac$1={'exports':{}},hmac=hmac$1[_0x51f535(0x45b)],hasRequiredHmac;function requireHmac(){var _0xdbcc8d=_0x51f535;return hasRequiredHmac||(hasRequiredHmac=0x1,function(_0x45cfce,_0x598cad){(function(_0x175a4a,_0x39969c){_0x45cfce['exports']=_0x39969c(requireCore());}(hmac,function(_0x5ddfff){(function(){var _0x3f430a=_0x46c5,_0x1a5d1f=_0x5ddfff,_0x5ed9b2=_0x1a5d1f[_0x3f430a(0x2b3)],_0x191c61=_0x5ed9b2['Base'],_0x2fa20a=_0x1a5d1f[_0x3f430a(0x261)],_0x2710be=_0x2fa20a[_0x3f430a(0x2bb)],_0x3e0fbc=_0x1a5d1f[_0x3f430a(0x46f)];_0x3e0fbc[_0x3f430a(0x2d3)]=_0x191c61['extend']({'init':__name(function(_0x12a377,_0x5a01fc){var _0x4b1c3c=_0x3f430a;_0x12a377=this[_0x4b1c3c(0x4d7)]=new _0x12a377[(_0x4b1c3c(0x351))](),typeof _0x5a01fc==_0x4b1c3c(0x264)&&(_0x5a01fc=_0x2710be['parse'](_0x5a01fc));var _0x431522=_0x12a377[_0x4b1c3c(0x2aa)],_0x344b59=_0x431522*0x4;_0x5a01fc[_0x4b1c3c(0x21b)]>_0x344b59&&(_0x5a01fc=_0x12a377[_0x4b1c3c(0x3be)](_0x5a01fc)),_0x5a01fc['clamp']();for(var _0x163fde=this[_0x4b1c3c(0x407)]=_0x5a01fc[_0x4b1c3c(0x37e)](),_0x5b863b=this[_0x4b1c3c(0x1f5)]=_0x5a01fc[_0x4b1c3c(0x37e)](),_0x20b995=_0x163fde[_0x4b1c3c(0x2fc)],_0x36fe9d=_0x5b863b[_0x4b1c3c(0x2fc)],_0x28ff0b=0x0;_0x28ff0b<_0x431522;_0x28ff0b++)_0x20b995[_0x28ff0b]^=0x5c5c5c5c,_0x36fe9d[_0x28ff0b]^=0x36363636;_0x163fde['sigBytes']=_0x5b863b[_0x4b1c3c(0x21b)]=_0x344b59,this[_0x4b1c3c(0x41b)]();},_0x3f430a(0x351)),'reset':__name(function(){var _0x401ced=_0x3f430a,_0x55d8c5=this[_0x401ced(0x4d7)];_0x55d8c5[_0x401ced(0x41b)](),_0x55d8c5[_0x401ced(0x27c)](this[_0x401ced(0x1f5)]);},'reset'),'update':__name(function(_0x9d09a4){var _0x126ce9=_0x3f430a;return this[_0x126ce9(0x4d7)][_0x126ce9(0x27c)](_0x9d09a4),this;},_0x3f430a(0x27c)),'finalize':__name(function(_0x5e19a0){var _0x200bca=_0x3f430a,_0x18ee67=this[_0x200bca(0x4d7)],_0x23e8cd=_0x18ee67[_0x200bca(0x3be)](_0x5e19a0);_0x18ee67[_0x200bca(0x41b)]();var _0x2766d9=_0x18ee67[_0x200bca(0x3be)](this['_oKey']['clone']()[_0x200bca(0x364)](_0x23e8cd));return _0x2766d9;},_0x3f430a(0x3be))});}());}));}(hmac$1)),hmac$1[_0xdbcc8d(0x45b)];}__name(requireHmac,_0x51f535(0x47f));var evpkdf=evpkdf$1['exports'],hasRequiredEvpkdf;function requireEvpkdf(){return hasRequiredEvpkdf||(hasRequiredEvpkdf=0x1,function(_0x2a1f3f,_0x31dc44){(function(_0x4486fd,_0x5554cd,_0xd09fea){var _0x1e8842=_0x46c5;_0x2a1f3f[_0x1e8842(0x45b)]=_0x5554cd(requireCore(),requireSha1(),requireHmac());}(evpkdf,function(_0x5e63d2){var _0x17e593=_0x46c5;return(function(){var _0x4d0e9d=_0x46c5,_0x3dc42a=_0x5e63d2,_0x198865=_0x3dc42a['lib'],_0x493f40=_0x198865[_0x4d0e9d(0x220)],_0x1e5957=_0x198865[_0x4d0e9d(0x265)],_0x27e742=_0x3dc42a[_0x4d0e9d(0x46f)],_0x423a40=_0x27e742[_0x4d0e9d(0x42d)],_0x57b75c=_0x27e742['EvpKDF']=_0x493f40['extend']({'cfg':_0x493f40[_0x4d0e9d(0x3d1)]({'keySize':0x80/0x20,'hasher':_0x423a40,'iterations':0x1}),'init':__name(function(_0x284890){var _0x2f34b2=_0x4d0e9d;this[_0x2f34b2(0x2a0)]=this[_0x2f34b2(0x2a0)][_0x2f34b2(0x3d1)](_0x284890);},'init'),'compute':__name(function(_0x51a9d0,_0xb8dc7f){var _0x44b423=_0x4d0e9d;for(var _0x18f79b,_0x1ea99f=this[_0x44b423(0x2a0)],_0x1bbdd7=_0x1ea99f[_0x44b423(0x2cc)][_0x44b423(0x3e8)](),_0x5e60ef=_0x1e5957[_0x44b423(0x3e8)](),_0x4e1783=_0x5e60ef[_0x44b423(0x2fc)],_0x453795=_0x1ea99f[_0x44b423(0x3c7)],_0xb07831=_0x1ea99f[_0x44b423(0x1f7)];_0x4e1783[_0x44b423(0x1d3)]<_0x453795;){_0x18f79b&&_0x1bbdd7[_0x44b423(0x27c)](_0x18f79b),_0x18f79b=_0x1bbdd7[_0x44b423(0x27c)](_0x51a9d0)[_0x44b423(0x3be)](_0xb8dc7f),_0x1bbdd7[_0x44b423(0x41b)]();for(var _0x49b73a=0x1;_0x49b73a<_0xb07831;_0x49b73a++)_0x18f79b=_0x1bbdd7[_0x44b423(0x3be)](_0x18f79b),_0x1bbdd7[_0x44b423(0x41b)]();_0x5e60ef[_0x44b423(0x364)](_0x18f79b);}return _0x5e60ef[_0x44b423(0x21b)]=_0x453795*0x4,_0x5e60ef;},'compute')});_0x3dc42a[_0x4d0e9d(0x250)]=function(_0x69eb8b,_0x417410,_0x4652aa){return _0x57b75c['create'](_0x4652aa)['compute'](_0x69eb8b,_0x417410);};}()),_0x5e63d2[_0x17e593(0x250)];}));}(evpkdf$1)),evpkdf$1['exports'];}__name(requireEvpkdf,_0x51f535(0x4bd));var cipherCore$1={'exports':{}},cipherCore=cipherCore$1['exports'],hasRequiredCipherCore;function requireCipherCore(){var _0x23d969=_0x51f535;return hasRequiredCipherCore||(hasRequiredCipherCore=0x1,function(_0x1f2e5c,_0xccd8a9){(function(_0x5c5cf7,_0x469a34,_0x142c0b){var _0x3769d4=_0x46c5;_0x1f2e5c[_0x3769d4(0x45b)]=_0x469a34(requireCore(),requireEvpkdf());}(cipherCore,function(_0x51d464){var _0x3568f8=_0x46c5;_0x51d464[_0x3568f8(0x2b3)][_0x3568f8(0x33e)]||function(_0x29433b){var _0x207c39=_0x3568f8,_0x1f5c75=_0x51d464,_0x2dad3e=_0x1f5c75[_0x207c39(0x2b3)],_0x3496b9=_0x2dad3e[_0x207c39(0x220)],_0x6278b8=_0x2dad3e[_0x207c39(0x265)],_0x377a1f=_0x2dad3e['BufferedBlockAlgorithm'],_0x1c4ef7=_0x1f5c75['enc'];_0x1c4ef7['Utf8'];var _0xd29bdf=_0x1c4ef7['Base64'],_0x494aae=_0x1f5c75['algo'],_0x2bb10f=_0x494aae[_0x207c39(0x250)],_0x1178ee=_0x2dad3e[_0x207c39(0x33e)]=_0x377a1f[_0x207c39(0x3d1)]({'cfg':_0x3496b9[_0x207c39(0x3d1)](),'createEncryptor':__name(function(_0x2b0461,_0x265ee9){var _0x454ef4=_0x207c39;return this[_0x454ef4(0x3e8)](this[_0x454ef4(0x41e)],_0x2b0461,_0x265ee9);},'createEncryptor'),'createDecryptor':__name(function(_0x420972,_0x4e1834){var _0x2a46a9=_0x207c39;return this[_0x2a46a9(0x3e8)](this[_0x2a46a9(0x4f7)],_0x420972,_0x4e1834);},_0x207c39(0x371)),'init':__name(function(_0x204533,_0x15d61b,_0x15aea3){var _0x315e71=_0x207c39;this[_0x315e71(0x2a0)]=this['cfg'][_0x315e71(0x3d1)](_0x15aea3),this['_xformMode']=_0x204533,this['_key']=_0x15d61b,this[_0x315e71(0x41b)]();},'init'),'reset':__name(function(){var _0x218a3b=_0x207c39;_0x377a1f[_0x218a3b(0x41b)]['call'](this),this[_0x218a3b(0x4e7)]();},'reset'),'process':__name(function(_0x384ab0){var _0xcbf226=_0x207c39;return this[_0xcbf226(0x3bc)](_0x384ab0),this['_process']();},_0x207c39(0x3a5)),'finalize':__name(function(_0x464b83){var _0x4e1720=_0x207c39;_0x464b83&&this[_0x4e1720(0x3bc)](_0x464b83);var _0x26949f=this[_0x4e1720(0x3d4)]();return _0x26949f;},_0x207c39(0x3be)),'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x2adc3c(_0x3eae91){var _0x53fe56=_0x46c5;return typeof _0x3eae91==_0x53fe56(0x264)?_0x425825:_0x2fe352;}return __name(_0x2adc3c,'selectCipherStrategy'),function(_0x2c74c8){var _0x64b633=_0x46c5;return{'encrypt':__name(function(_0x462d2c,_0x4bd596,_0x1ac63f){var _0x2f8695=_0x46c5;return _0x2adc3c(_0x4bd596)[_0x2f8695(0x2fe)](_0x2c74c8,_0x462d2c,_0x4bd596,_0x1ac63f);},_0x64b633(0x2fe)),'decrypt':__name(function(_0x1c51f0,_0x521834,_0x1bfb7e){var _0x160ddd=_0x64b633;return _0x2adc3c(_0x521834)[_0x160ddd(0x4fe)](_0x2c74c8,_0x1c51f0,_0x521834,_0x1bfb7e);},'decrypt')};};}())});_0x2dad3e[_0x207c39(0x406)]=_0x1178ee[_0x207c39(0x3d1)]({'_doFinalize':__name(function(){var _0x44067c=this['_process'](!0x0);return _0x44067c;},_0x207c39(0x3d4)),'blockSize':0x1});var _0xa484d8=_0x1f5c75[_0x207c39(0x2de)]={},_0x30306f=_0x2dad3e[_0x207c39(0x36b)]=_0x3496b9[_0x207c39(0x3d1)]({'createEncryptor':__name(function(_0x184c8b,_0x5dec70){var _0x25bffe=_0x207c39;return this[_0x25bffe(0x30e)][_0x25bffe(0x3e8)](_0x184c8b,_0x5dec70);},'createEncryptor'),'createDecryptor':__name(function(_0x1c8013,_0x14fc05){var _0x1c4080=_0x207c39;return this['Decryptor'][_0x1c4080(0x3e8)](_0x1c8013,_0x14fc05);},_0x207c39(0x371)),'init':__name(function(_0x5731de,_0x4ab261){var _0x3fa3ba=_0x207c39;this['_cipher']=_0x5731de,this[_0x3fa3ba(0x35e)]=_0x4ab261;},'init')}),_0x1f8a8a=_0xa484d8[_0x207c39(0x511)]=(function(){var _0x3dc1df=_0x207c39,_0x363e4e=_0x30306f[_0x3dc1df(0x3d1)]();_0x363e4e[_0x3dc1df(0x30e)]=_0x363e4e[_0x3dc1df(0x3d1)]({'processBlock':__name(function(_0x224201,_0x5b5c43){var _0x280937=_0x3dc1df,_0x44fe6c=this['_cipher'],_0x387ad2=_0x44fe6c[_0x280937(0x2aa)];_0x2b362b[_0x280937(0x25c)](this,_0x224201,_0x5b5c43,_0x387ad2),_0x44fe6c[_0x280937(0x1ef)](_0x224201,_0x5b5c43),this['_prevBlock']=_0x224201[_0x280937(0x31c)](_0x5b5c43,_0x5b5c43+_0x387ad2);},_0x3dc1df(0x4f8))}),_0x363e4e[_0x3dc1df(0x27e)]=_0x363e4e[_0x3dc1df(0x3d1)]({'processBlock':__name(function(_0x5f1a4b,_0x5b7446){var _0x201628=_0x3dc1df,_0x4951c6=this['_cipher'],_0x50b643=_0x4951c6[_0x201628(0x2aa)],_0xa0b5d7=_0x5f1a4b[_0x201628(0x31c)](_0x5b7446,_0x5b7446+_0x50b643);_0x4951c6[_0x201628(0x2f7)](_0x5f1a4b,_0x5b7446),_0x2b362b[_0x201628(0x25c)](this,_0x5f1a4b,_0x5b7446,_0x50b643),this[_0x201628(0x3dc)]=_0xa0b5d7;},_0x3dc1df(0x4f8))});function _0x2b362b(_0x15c991,_0x4b105d,_0x1b11ac){var _0x4a76ec=_0x3dc1df,_0x52366a,_0x38e8b1=this[_0x4a76ec(0x35e)];_0x38e8b1?(_0x52366a=_0x38e8b1,this[_0x4a76ec(0x35e)]=_0x29433b):_0x52366a=this[_0x4a76ec(0x3dc)];for(var _0x4cfd5a=0x0;_0x4cfd5a<_0x1b11ac;_0x4cfd5a++)_0x15c991[_0x4b105d+_0x4cfd5a]^=_0x52366a[_0x4cfd5a];}return __name(_0x2b362b,'xorBlock'),_0x363e4e;}()),_0x103396=_0x1f5c75[_0x207c39(0x394)]={},_0x710e48=_0x103396[_0x207c39(0x44d)]={'pad':__name(function(_0x370c76,_0x321858){var _0x49a058=_0x207c39;for(var _0x5267a9=_0x321858*0x4,_0x135c08=_0x5267a9-_0x370c76[_0x49a058(0x21b)]%_0x5267a9,_0x256c63=_0x135c08<<0x18|_0x135c08<<0x10|_0x135c08<<0x8|_0x135c08,_0x180d30=[],_0x1df464=0x0;_0x1df464<_0x135c08;_0x1df464+=0x4)_0x180d30['push'](_0x256c63);var _0xc00f49=_0x6278b8['create'](_0x180d30,_0x135c08);_0x370c76[_0x49a058(0x364)](_0xc00f49);},_0x207c39(0x394)),'unpad':__name(function(_0x37cb66){var _0x103345=_0x207c39,_0x3e2aac=_0x37cb66[_0x103345(0x2fc)][_0x37cb66[_0x103345(0x21b)]-0x1>>>0x2]&0xff;_0x37cb66[_0x103345(0x21b)]-=_0x3e2aac;},'unpad')};_0x2dad3e[_0x207c39(0x1e1)]=_0x1178ee[_0x207c39(0x3d1)]({'cfg':_0x1178ee[_0x207c39(0x2a0)][_0x207c39(0x3d1)]({'mode':_0x1f8a8a,'padding':_0x710e48}),'reset':__name(function(){var _0x5d5888=_0x207c39,_0x212806;_0x1178ee['reset'][_0x5d5888(0x25c)](this);var _0x37eca7=this['cfg'],_0x18d6d2=_0x37eca7['iv'],_0x641568=_0x37eca7[_0x5d5888(0x2de)];this[_0x5d5888(0x248)]==this[_0x5d5888(0x41e)]?_0x212806=_0x641568[_0x5d5888(0x3db)]:(_0x212806=_0x641568['createDecryptor'],this[_0x5d5888(0x1fa)]=0x1),this[_0x5d5888(0x2f0)]&&this['_mode']['__creator']==_0x212806?this['_mode'][_0x5d5888(0x351)](this,_0x18d6d2&&_0x18d6d2[_0x5d5888(0x2fc)]):(this[_0x5d5888(0x2f0)]=_0x212806[_0x5d5888(0x25c)](_0x641568,this,_0x18d6d2&&_0x18d6d2['words']),this[_0x5d5888(0x2f0)][_0x5d5888(0x486)]=_0x212806);},'reset'),'_doProcessBlock':__name(function(_0xeee4e2,_0x4a08e2){var _0x529c98=_0x207c39;this['_mode'][_0x529c98(0x4f8)](_0xeee4e2,_0x4a08e2);},_0x207c39(0x4b1)),'_doFinalize':__name(function(){var _0x3e01fc=_0x207c39,_0x474199,_0x3822d2=this[_0x3e01fc(0x2a0)][_0x3e01fc(0x23a)];return this['_xformMode']==this[_0x3e01fc(0x41e)]?(_0x3822d2['pad'](this[_0x3e01fc(0x4df)],this[_0x3e01fc(0x2aa)]),_0x474199=this[_0x3e01fc(0x488)](!0x0)):(_0x474199=this['_process'](!0x0),_0x3822d2[_0x3e01fc(0x4bf)](_0x474199)),_0x474199;},_0x207c39(0x3d4)),'blockSize':0x80/0x20});var _0x59736c=_0x2dad3e[_0x207c39(0x4e8)]=_0x3496b9[_0x207c39(0x3d1)]({'init':__name(function(_0x365d0e){this['mixIn'](_0x365d0e);},_0x207c39(0x351)),'toString':__name(function(_0x43f131){var _0x472064=_0x207c39;return(_0x43f131||this['formatter'])[_0x472064(0x36e)](this);},_0x207c39(0x3c1))}),_0x2bc7b7=_0x1f5c75[_0x207c39(0x4ba)]={},_0x4af120=_0x2bc7b7['OpenSSL']={'stringify':__name(function(_0x1f30ef){var _0x74f86=_0x207c39,_0x540ba8,_0x2e9802=_0x1f30ef['ciphertext'],_0xb7ba9e=_0x1f30ef['salt'];return _0xb7ba9e?_0x540ba8=_0x6278b8[_0x74f86(0x3e8)]([0x53616c74,0x65645f5f])[_0x74f86(0x364)](_0xb7ba9e)['concat'](_0x2e9802):_0x540ba8=_0x2e9802,_0x540ba8[_0x74f86(0x3c1)](_0xd29bdf);},_0x207c39(0x36e)),'parse':__name(function(_0xe387d4){var _0x32c5dc=_0x207c39,_0x37ab4d,_0x4f0371=_0xd29bdf[_0x32c5dc(0x2a9)](_0xe387d4),_0x3557ac=_0x4f0371[_0x32c5dc(0x2fc)];return _0x3557ac[0x0]==0x53616c74&&_0x3557ac[0x1]==0x65645f5f&&(_0x37ab4d=_0x6278b8[_0x32c5dc(0x3e8)](_0x3557ac['slice'](0x2,0x4)),_0x3557ac['splice'](0x0,0x4),_0x4f0371[_0x32c5dc(0x21b)]-=0x10),_0x59736c[_0x32c5dc(0x3e8)]({'ciphertext':_0x4f0371,'salt':_0x37ab4d});},_0x207c39(0x2a9))},_0x2fe352=_0x2dad3e[_0x207c39(0x430)]=_0x3496b9[_0x207c39(0x3d1)]({'cfg':_0x3496b9[_0x207c39(0x3d1)]({'format':_0x4af120}),'encrypt':__name(function(_0x1ab4d3,_0x161754,_0x57f12d,_0x797b37){var _0x35e7c4=_0x207c39;_0x797b37=this[_0x35e7c4(0x2a0)]['extend'](_0x797b37);var _0x3b6243=_0x1ab4d3['createEncryptor'](_0x57f12d,_0x797b37),_0x1a3e69=_0x3b6243['finalize'](_0x161754),_0x46c2c0=_0x3b6243[_0x35e7c4(0x2a0)];return _0x59736c[_0x35e7c4(0x3e8)]({'ciphertext':_0x1a3e69,'key':_0x57f12d,'iv':_0x46c2c0['iv'],'algorithm':_0x1ab4d3,'mode':_0x46c2c0['mode'],'padding':_0x46c2c0[_0x35e7c4(0x23a)],'blockSize':_0x1ab4d3[_0x35e7c4(0x2aa)],'formatter':_0x797b37[_0x35e7c4(0x4ba)]});},_0x207c39(0x2fe)),'decrypt':__name(function(_0x56ced3,_0x4f975a,_0x2a6c5c,_0x4c24f5){var _0x5bd33c=_0x207c39;_0x4c24f5=this[_0x5bd33c(0x2a0)][_0x5bd33c(0x3d1)](_0x4c24f5),_0x4f975a=this['_parse'](_0x4f975a,_0x4c24f5[_0x5bd33c(0x4ba)]);var _0x500707=_0x56ced3['createDecryptor'](_0x2a6c5c,_0x4c24f5)[_0x5bd33c(0x3be)](_0x4f975a[_0x5bd33c(0x384)]);return _0x500707;},_0x207c39(0x4fe)),'_parse':__name(function(_0x5d75c9,_0x2f9b9b){return typeof _0x5d75c9=='string'?_0x2f9b9b['parse'](_0x5d75c9,this):_0x5d75c9;},_0x207c39(0x40b))}),_0x2d437c=_0x1f5c75[_0x207c39(0x35c)]={},_0x5711aa=_0x2d437c[_0x207c39(0x395)]={'execute':__name(function(_0x4cf474,_0x2baae8,_0x42e7d1,_0x51cb22,_0x213ef9){var _0x2ca63f=_0x207c39;if(_0x51cb22||(_0x51cb22=_0x6278b8[_0x2ca63f(0x4a3)](0x40/0x8)),_0x213ef9)var _0x11d19f=_0x2bb10f[_0x2ca63f(0x3e8)]({'keySize':_0x2baae8+_0x42e7d1,'hasher':_0x213ef9})['compute'](_0x4cf474,_0x51cb22);else var _0x11d19f=_0x2bb10f[_0x2ca63f(0x3e8)]({'keySize':_0x2baae8+_0x42e7d1})['compute'](_0x4cf474,_0x51cb22);var _0x232b13=_0x6278b8[_0x2ca63f(0x3e8)](_0x11d19f['words']['slice'](_0x2baae8),_0x42e7d1*0x4);return _0x11d19f[_0x2ca63f(0x21b)]=_0x2baae8*0x4,_0x59736c[_0x2ca63f(0x3e8)]({'key':_0x11d19f,'iv':_0x232b13,'salt':_0x51cb22});},'execute')},_0x425825=_0x2dad3e['PasswordBasedCipher']=_0x2fe352[_0x207c39(0x3d1)]({'cfg':_0x2fe352[_0x207c39(0x2a0)][_0x207c39(0x3d1)]({'kdf':_0x5711aa}),'encrypt':__name(function(_0x36419a,_0x4d0bd1,_0x5510cc,_0x48ec67){var _0x42d615=_0x207c39;_0x48ec67=this['cfg']['extend'](_0x48ec67);var _0x1096c2=_0x48ec67[_0x42d615(0x35c)][_0x42d615(0x421)](_0x5510cc,_0x36419a[_0x42d615(0x3c7)],_0x36419a[_0x42d615(0x3b7)],_0x48ec67[_0x42d615(0x2da)],_0x48ec67[_0x42d615(0x2cc)]);_0x48ec67['iv']=_0x1096c2['iv'];var _0x408235=_0x2fe352[_0x42d615(0x2fe)]['call'](this,_0x36419a,_0x4d0bd1,_0x1096c2[_0x42d615(0x418)],_0x48ec67);return _0x408235[_0x42d615(0x528)](_0x1096c2),_0x408235;},_0x207c39(0x2fe)),'decrypt':__name(function(_0x3b7bdc,_0x583996,_0x6cf3db,_0x58aecb){var _0x4f783f=_0x207c39;_0x58aecb=this[_0x4f783f(0x2a0)][_0x4f783f(0x3d1)](_0x58aecb),_0x583996=this['_parse'](_0x583996,_0x58aecb[_0x4f783f(0x4ba)]);var _0x8611d2=_0x58aecb[_0x4f783f(0x35c)][_0x4f783f(0x421)](_0x6cf3db,_0x3b7bdc[_0x4f783f(0x3c7)],_0x3b7bdc[_0x4f783f(0x3b7)],_0x583996[_0x4f783f(0x2da)],_0x58aecb[_0x4f783f(0x2cc)]);_0x58aecb['iv']=_0x8611d2['iv'];var _0x3c90d7=_0x2fe352['decrypt'][_0x4f783f(0x25c)](this,_0x3b7bdc,_0x583996,_0x8611d2[_0x4f783f(0x418)],_0x58aecb);return _0x3c90d7;},_0x207c39(0x4fe))});}();}));}(cipherCore$1)),cipherCore$1[_0x23d969(0x45b)];}__name(requireCipherCore,_0x51f535(0x47a));var aes=aes$1['exports'],hasRequiredAes;function requireAes(){var _0x4822ed=_0x51f535;return hasRequiredAes||(hasRequiredAes=0x1,function(_0x34bc45,_0x28e7ca){(function(_0x162351,_0x17459c,_0x56891a){var _0x5f0df1=_0x46c5;_0x34bc45[_0x5f0df1(0x45b)]=_0x17459c(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore());}(aes,function(_0x50ac60){var _0x2f5031=_0x46c5;return(function(){var _0x14f14c=_0x46c5,_0x431f19=_0x50ac60,_0x48ec06=_0x431f19['lib'],_0x40c25d=_0x48ec06['BlockCipher'],_0x45305c=_0x431f19[_0x14f14c(0x46f)],_0x28ce9b=[],_0x15b115=[],_0x3a603f=[],_0x78b3fe=[],_0x4a8c04=[],_0x14f670=[],_0x43174d=[],_0x3fa954=[],_0x1ecf12=[],_0x1770ae=[];(function(){for(var _0x3e2c5a=[],_0x87974e=0x0;_0x87974e<0x100;_0x87974e++)_0x87974e<0x80?_0x3e2c5a[_0x87974e]=_0x87974e<<0x1:_0x3e2c5a[_0x87974e]=_0x87974e<<0x1^0x11b;for(var _0x1a727d=0x0,_0x10fb25=0x0,_0x87974e=0x0;_0x87974e<0x100;_0x87974e++){var _0x2a30ce=_0x10fb25^_0x10fb25<<0x1^_0x10fb25<<0x2^_0x10fb25<<0x3^_0x10fb25<<0x4;_0x2a30ce=_0x2a30ce>>>0x8^_0x2a30ce&0xff^0x63,_0x28ce9b[_0x1a727d]=_0x2a30ce,_0x15b115[_0x2a30ce]=_0x1a727d;var _0x1354bd=_0x3e2c5a[_0x1a727d],_0xcdadf0=_0x3e2c5a[_0x1354bd],_0x789458=_0x3e2c5a[_0xcdadf0],_0x2b8970=_0x3e2c5a[_0x2a30ce]*0x101^_0x2a30ce*0x1010100;_0x3a603f[_0x1a727d]=_0x2b8970<<0x18|_0x2b8970>>>0x8,_0x78b3fe[_0x1a727d]=_0x2b8970<<0x10|_0x2b8970>>>0x10,_0x4a8c04[_0x1a727d]=_0x2b8970<<0x8|_0x2b8970>>>0x18,_0x14f670[_0x1a727d]=_0x2b8970;var _0x2b8970=_0x789458*0x1010101^_0xcdadf0*0x10001^_0x1354bd*0x101^_0x1a727d*0x1010100;_0x43174d[_0x2a30ce]=_0x2b8970<<0x18|_0x2b8970>>>0x8,_0x3fa954[_0x2a30ce]=_0x2b8970<<0x10|_0x2b8970>>>0x10,_0x1ecf12[_0x2a30ce]=_0x2b8970<<0x8|_0x2b8970>>>0x18,_0x1770ae[_0x2a30ce]=_0x2b8970,_0x1a727d?(_0x1a727d=_0x1354bd^_0x3e2c5a[_0x3e2c5a[_0x3e2c5a[_0x789458^_0x1354bd]]],_0x10fb25^=_0x3e2c5a[_0x3e2c5a[_0x10fb25]]):_0x1a727d=_0x10fb25=0x1;}}());var _0xbb6347=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x338a65=_0x45305c[_0x14f14c(0x43b)]=_0x40c25d[_0x14f14c(0x3d1)]({'_doReset':__name(function(){var _0x2e4408=_0x14f14c,_0x1ef790;if(!(this['_nRounds']&&this['_keyPriorReset']===this[_0x2e4408(0x20a)])){for(var _0x56d58d=this[_0x2e4408(0x350)]=this['_key'],_0x1a9311=_0x56d58d['words'],_0x17c795=_0x56d58d[_0x2e4408(0x21b)]/0x4,_0x2b386a=this[_0x2e4408(0x3e1)]=_0x17c795+0x6,_0x494431=(_0x2b386a+0x1)*0x4,_0x45ddbb=this[_0x2e4408(0x518)]=[],_0x4a71d2=0x0;_0x4a71d2<_0x494431;_0x4a71d2++)_0x4a71d2<_0x17c795?_0x45ddbb[_0x4a71d2]=_0x1a9311[_0x4a71d2]:(_0x1ef790=_0x45ddbb[_0x4a71d2-0x1],_0x4a71d2%_0x17c795?_0x17c795>0x6&&_0x4a71d2%_0x17c795==0x4&&(_0x1ef790=_0x28ce9b[_0x1ef790>>>0x18]<<0x18|_0x28ce9b[_0x1ef790>>>0x10&0xff]<<0x10|_0x28ce9b[_0x1ef790>>>0x8&0xff]<<0x8|_0x28ce9b[_0x1ef790&0xff]):(_0x1ef790=_0x1ef790<<0x8|_0x1ef790>>>0x18,_0x1ef790=_0x28ce9b[_0x1ef790>>>0x18]<<0x18|_0x28ce9b[_0x1ef790>>>0x10&0xff]<<0x10|_0x28ce9b[_0x1ef790>>>0x8&0xff]<<0x8|_0x28ce9b[_0x1ef790&0xff],_0x1ef790^=_0xbb6347[_0x4a71d2/_0x17c795|0x0]<<0x18),_0x45ddbb[_0x4a71d2]=_0x45ddbb[_0x4a71d2-_0x17c795]^_0x1ef790);for(var _0x30dec7=this[_0x2e4408(0x4fb)]=[],_0x5ee33b=0x0;_0x5ee33b<_0x494431;_0x5ee33b++){var _0x4a71d2=_0x494431-_0x5ee33b;if(_0x5ee33b%0x4)var _0x1ef790=_0x45ddbb[_0x4a71d2];else var _0x1ef790=_0x45ddbb[_0x4a71d2-0x4];_0x5ee33b<0x4||_0x4a71d2<=0x4?_0x30dec7[_0x5ee33b]=_0x1ef790:_0x30dec7[_0x5ee33b]=_0x43174d[_0x28ce9b[_0x1ef790>>>0x18]]^_0x3fa954[_0x28ce9b[_0x1ef790>>>0x10&0xff]]^_0x1ecf12[_0x28ce9b[_0x1ef790>>>0x8&0xff]]^_0x1770ae[_0x28ce9b[_0x1ef790&0xff]];}}},_0x14f14c(0x4e7)),'encryptBlock':__name(function(_0x3c1b4f,_0x47e715){var _0x23202a=_0x14f14c;this['_doCryptBlock'](_0x3c1b4f,_0x47e715,this[_0x23202a(0x518)],_0x3a603f,_0x78b3fe,_0x4a8c04,_0x14f670,_0x28ce9b);},_0x14f14c(0x1ef)),'decryptBlock':__name(function(_0xe8549e,_0x120c09){var _0x40f871=_0x14f14c,_0x1124ab=_0xe8549e[_0x120c09+0x1];_0xe8549e[_0x120c09+0x1]=_0xe8549e[_0x120c09+0x3],_0xe8549e[_0x120c09+0x3]=_0x1124ab,this[_0x40f871(0x1fb)](_0xe8549e,_0x120c09,this['_invKeySchedule'],_0x43174d,_0x3fa954,_0x1ecf12,_0x1770ae,_0x15b115);var _0x1124ab=_0xe8549e[_0x120c09+0x1];_0xe8549e[_0x120c09+0x1]=_0xe8549e[_0x120c09+0x3],_0xe8549e[_0x120c09+0x3]=_0x1124ab;},_0x14f14c(0x2f7)),'_doCryptBlock':__name(function(_0x14fcbf,_0x5f30ea,_0x41d899,_0x1db425,_0x57a94a,_0x44c813,_0xe698df,_0x4380c2){var _0x381700=_0x14f14c;for(var _0x487729=this[_0x381700(0x3e1)],_0xa9f2f7=_0x14fcbf[_0x5f30ea]^_0x41d899[0x0],_0x4fe2bf=_0x14fcbf[_0x5f30ea+0x1]^_0x41d899[0x1],_0x1c2250=_0x14fcbf[_0x5f30ea+0x2]^_0x41d899[0x2],_0x54d703=_0x14fcbf[_0x5f30ea+0x3]^_0x41d899[0x3],_0x3330cf=0x4,_0x2fc55a=0x1;_0x2fc55a<_0x487729;_0x2fc55a++){var _0x4b5b90=_0x1db425[_0xa9f2f7>>>0x18]^_0x57a94a[_0x4fe2bf>>>0x10&0xff]^_0x44c813[_0x1c2250>>>0x8&0xff]^_0xe698df[_0x54d703&0xff]^_0x41d899[_0x3330cf++],_0x469080=_0x1db425[_0x4fe2bf>>>0x18]^_0x57a94a[_0x1c2250>>>0x10&0xff]^_0x44c813[_0x54d703>>>0x8&0xff]^_0xe698df[_0xa9f2f7&0xff]^_0x41d899[_0x3330cf++],_0x4c9c5e=_0x1db425[_0x1c2250>>>0x18]^_0x57a94a[_0x54d703>>>0x10&0xff]^_0x44c813[_0xa9f2f7>>>0x8&0xff]^_0xe698df[_0x4fe2bf&0xff]^_0x41d899[_0x3330cf++],_0x4a2fa2=_0x1db425[_0x54d703>>>0x18]^_0x57a94a[_0xa9f2f7>>>0x10&0xff]^_0x44c813[_0x4fe2bf>>>0x8&0xff]^_0xe698df[_0x1c2250&0xff]^_0x41d899[_0x3330cf++];_0xa9f2f7=_0x4b5b90,_0x4fe2bf=_0x469080,_0x1c2250=_0x4c9c5e,_0x54d703=_0x4a2fa2;}var _0x4b5b90=(_0x4380c2[_0xa9f2f7>>>0x18]<<0x18|_0x4380c2[_0x4fe2bf>>>0x10&0xff]<<0x10|_0x4380c2[_0x1c2250>>>0x8&0xff]<<0x8|_0x4380c2[_0x54d703&0xff])^_0x41d899[_0x3330cf++],_0x469080=(_0x4380c2[_0x4fe2bf>>>0x18]<<0x18|_0x4380c2[_0x1c2250>>>0x10&0xff]<<0x10|_0x4380c2[_0x54d703>>>0x8&0xff]<<0x8|_0x4380c2[_0xa9f2f7&0xff])^_0x41d899[_0x3330cf++],_0x4c9c5e=(_0x4380c2[_0x1c2250>>>0x18]<<0x18|_0x4380c2[_0x54d703>>>0x10&0xff]<<0x10|_0x4380c2[_0xa9f2f7>>>0x8&0xff]<<0x8|_0x4380c2[_0x4fe2bf&0xff])^_0x41d899[_0x3330cf++],_0x4a2fa2=(_0x4380c2[_0x54d703>>>0x18]<<0x18|_0x4380c2[_0xa9f2f7>>>0x10&0xff]<<0x10|_0x4380c2[_0x4fe2bf>>>0x8&0xff]<<0x8|_0x4380c2[_0x1c2250&0xff])^_0x41d899[_0x3330cf++];_0x14fcbf[_0x5f30ea]=_0x4b5b90,_0x14fcbf[_0x5f30ea+0x1]=_0x469080,_0x14fcbf[_0x5f30ea+0x2]=_0x4c9c5e,_0x14fcbf[_0x5f30ea+0x3]=_0x4a2fa2;},'_doCryptBlock'),'keySize':0x100/0x20});_0x431f19[_0x14f14c(0x43b)]=_0x40c25d['_createHelper'](_0x338a65);}()),_0x50ac60[_0x2f5031(0x43b)];}));}(aes$1)),aes$1[_0x4822ed(0x45b)];}__name(requireAes,_0x51f535(0x2db));var aesExports=requireAes();const AES=getDefaultExportFromCjs(aesExports);var encBase64Exports=requireEncBase64();const Base64=getDefaultExportFromCjs(encBase64Exports);var encUtf8$1={'exports':{}},encUtf8=encUtf8$1[_0x51f535(0x45b)],hasRequiredEncUtf8;function requireEncUtf8(){return hasRequiredEncUtf8||(hasRequiredEncUtf8=0x1,function(_0x2cb21a,_0xf15ee){(function(_0x56f82b,_0x3354c0){var _0x2e0358=_0x46c5;_0x2cb21a[_0x2e0358(0x45b)]=_0x3354c0(requireCore());}(encUtf8,function(_0x5a3eca){var _0x539f50=_0x46c5;return _0x5a3eca[_0x539f50(0x261)][_0x539f50(0x2bb)];}));}(encUtf8$1)),encUtf8$1['exports'];}__name(requireEncUtf8,_0x51f535(0x39a));var encUtf8Exports=requireEncUtf8();const Utf8=getDefaultExportFromCjs(encUtf8Exports);var libTypedarrays$1={'exports':{}},libTypedarrays=libTypedarrays$1[_0x51f535(0x45b)],hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=0x1,function(_0x1be91f,_0x35bc70){(function(_0x3e27ea,_0x341925){_0x1be91f['exports']=_0x341925(requireCore());}(libTypedarrays,function(_0x4c68b8){var _0x392056=_0x46c5;return(function(){var _0x2eb8e0=_0x46c5;if(typeof ArrayBuffer==_0x2eb8e0(0x506)){var _0x54381e=_0x4c68b8,_0x95a3de=_0x54381e[_0x2eb8e0(0x2b3)],_0x169dc9=_0x95a3de[_0x2eb8e0(0x265)],_0x26b711=_0x169dc9[_0x2eb8e0(0x351)],_0xad6a79=_0x169dc9[_0x2eb8e0(0x351)]=function(_0x395e64){var _0xb7c042=_0x2eb8e0;if(_0x395e64 instanceof ArrayBuffer&&(_0x395e64=new Uint8Array(_0x395e64)),(_0x395e64 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x395e64 instanceof Uint8ClampedArray||_0x395e64 instanceof Int16Array||_0x395e64 instanceof Uint16Array||_0x395e64 instanceof Int32Array||_0x395e64 instanceof Uint32Array||_0x395e64 instanceof Float32Array||_0x395e64 instanceof Float64Array)&&(_0x395e64=new Uint8Array(_0x395e64[_0xb7c042(0x3e2)],_0x395e64[_0xb7c042(0x335)],_0x395e64['byteLength'])),_0x395e64 instanceof Uint8Array){for(var _0x296c76=_0x395e64[_0xb7c042(0x1dc)],_0x120b06=[],_0x2da36c=0x0;_0x2da36c<_0x296c76;_0x2da36c++)_0x120b06[_0x2da36c>>>0x2]|=_0x395e64[_0x2da36c]<<0x18-_0x2da36c%0x4*0x8;_0x26b711[_0xb7c042(0x25c)](this,_0x120b06,_0x296c76);}else _0x26b711[_0xb7c042(0x367)](this,arguments);};_0xad6a79['prototype']=_0x169dc9;}}()),_0x4c68b8[_0x392056(0x2b3)]['WordArray'];}));}(libTypedarrays$1)),libTypedarrays$1['exports'];}__name(requireLibTypedarrays,_0x51f535(0x2e3));var libTypedarraysExports=requireLibTypedarrays();const WordArray=getDefaultExportFromCjs(libTypedarraysExports);var padNopadding$1={'exports':{}},padNopadding=padNopadding$1[_0x51f535(0x45b)],hasRequiredPadNopadding;function requirePadNopadding(){var _0x2b4e49=_0x51f535;return hasRequiredPadNopadding||(hasRequiredPadNopadding=0x1,function(_0xe83bc7,_0x219dec){(function(_0x331b5a,_0x150fe2,_0x47977e){var _0x32eafe=_0x46c5;_0xe83bc7[_0x32eafe(0x45b)]=_0x150fe2(requireCore(),requireCipherCore());}(padNopadding,function(_0x497865){var _0x3b6768=_0x46c5;return _0x497865['pad'][_0x3b6768(0x451)]={'pad':__name(function(){},_0x3b6768(0x394)),'unpad':__name(function(){},_0x3b6768(0x4bf))},_0x497865[_0x3b6768(0x394)][_0x3b6768(0x451)];}));}(padNopadding$1)),padNopadding$1[_0x2b4e49(0x45b)];}__name(requirePadNopadding,_0x51f535(0x372));var padNopaddingExports=requirePadNopadding();const NoPadding=getDefaultExportFromCjs(padNopaddingExports);function pkcs7Padding(_0x29f692,_0x2371fa){var _0x47994d=_0x51f535;const _0x4a0db7=_0x2371fa-_0x29f692[_0x47994d(0x1d3)]%_0x2371fa,_0x34edd2=String['fromCharCode'](_0x4a0db7)[_0x47994d(0x205)](_0x4a0db7);return _0x29f692+_0x34edd2;}__name(pkcs7Padding,_0x51f535(0x21f));function encrypt(_0x179317,_0x79f3c2){var _0x42fce2=_0x51f535;const _0x77ddf6=WordArray['random'](0x10),_0x1415e3=pkcs7Padding(_0x179317,0x10),_0xe227a2=AES[_0x42fce2(0x2fe)](Utf8['parse'](_0x1415e3),Base64['parse'](_0x79f3c2),{'iv':_0x77ddf6,'padding':NoPadding});return _0x77ddf6[_0x42fce2(0x364)](_0xe227a2[_0x42fce2(0x384)])[_0x42fce2(0x3c1)](Base64);}__name(encrypt,_0x51f535(0x2fe));function getAttachHeader(){var _0x454370=_0x51f535;const _0x292e36=getGlobalObject()['__Key__'];if(_0x292e36){const _0x4c13c6={'time':Math[_0x454370(0x28d)](Date['now']()/0x3e8),'domain':location[_0x454370(0x37d)]};return encrypt(JSON[_0x454370(0x36e)](_0x4c13c6),_0x292e36);}}__name(getAttachHeader,_0x51f535(0x317));var __defProp$7=Object[_0x51f535(0x2c3)],__getOwnPropDesc$7=Object[_0x51f535(0x32f)],__decorateClass$7=__name((_0x199bfd,_0x422268,_0x1f8f0e,_0x581823)=>{var _0x2fae63=_0x51f535;for(var _0x544979=_0x581823>0x1?void 0x0:_0x581823?__getOwnPropDesc$7(_0x422268,_0x1f8f0e):_0x422268,_0x348329=_0x199bfd[_0x2fae63(0x1d3)]-0x1,_0x23006f;_0x348329>=0x0;_0x348329--)(_0x23006f=_0x199bfd[_0x348329])&&(_0x544979=(_0x581823?_0x23006f(_0x422268,_0x1f8f0e,_0x544979):_0x23006f(_0x544979))||_0x544979);return _0x581823&&_0x544979&&__defProp$7(_0x422268,_0x1f8f0e,_0x544979),_0x544979;},_0x51f535(0x4d6)),__decorateParam$7=__name((_0x1edb7d,_0x2d4722)=>(_0x2fc3a9,_0x5b48f0)=>_0x2d4722(_0x2fc3a9,_0x5b48f0,_0x1edb7d),_0x51f535(0x4c1)),_a20;let DomainRequestService=(_a20=class{constructor(_0x1c2db3){var _0x135845=_0x51f535;this[_0x135845(0x527)]=_0x1c2db3,this['_initRequestHeader']();}['_initRequestHeader'](){var _0x1953f4=_0x51f535;this[_0x1953f4(0x527)][_0x1953f4(0x2c0)]({'interceptor':__name((_0x1794c9,_0x27355a)=>{var _0x62bc3b=_0x1953f4;const _0x48c030=_0x1794c9[_0x62bc3b(0x402)],_0x3b242a=getAttachHeader();return _0x3b242a&&_0x48c030[_0x62bc3b(0x202)](_0x62bc3b(0x2cd),_0x3b242a),_0x27355a(_0x1794c9);},'interceptor')});}},__name(_a20,'DomainRequestService'),_a20);DomainRequestService=__decorateClass$7([__decorateParam$7(0x0,Inject(HTTPService))],DomainRequestService);var __defProp$6=Object[_0x51f535(0x2c3)],__getOwnPropDesc$6=Object[_0x51f535(0x32f)],__decorateClass$6=__name((_0x109e6d,_0x1f5b67,_0x3434e5,_0x4eecae)=>{var _0x246699=_0x51f535;for(var _0x3cb096=_0x4eecae>0x1?void 0x0:_0x4eecae?__getOwnPropDesc$6(_0x1f5b67,_0x3434e5):_0x1f5b67,_0x34eb62=_0x109e6d[_0x246699(0x1d3)]-0x1,_0x38253a;_0x34eb62>=0x0;_0x34eb62--)(_0x38253a=_0x109e6d[_0x34eb62])&&(_0x3cb096=(_0x4eecae?_0x38253a(_0x1f5b67,_0x3434e5,_0x3cb096):_0x38253a(_0x3cb096))||_0x3cb096);return _0x4eecae&&_0x3cb096&&__defProp$6(_0x1f5b67,_0x3434e5,_0x3cb096),_0x3cb096;},_0x51f535(0x4a6)),__decorateParam$6=__name((_0xcb4483,_0x19b7fc)=>(_0x4fb135,_0x67d86f)=>_0x19b7fc(_0x4fb135,_0x67d86f,_0xcb4483),_0x51f535(0x448)),_a21;let DataLoaderService=(_a21=class extends RxDisposable{constructor(_0x227db1,_0x311779,_0x2096f4){var _0x5ade96=_0x51f535;super(),__publicField(this,_0x5ade96(0x1f9),new BehaviorSubject(null)),__publicField(this,_0x5ade96(0x479),this[_0x5ade96(0x1f9)][_0x5ade96(0x38b)]()),(this[_0x5ade96(0x3c9)]=_0x227db1,this['_snapshotService']=_0x311779,this[_0x5ade96(0x34b)]=_0x2096f4);}async[_0x51f535(0x30c)](_0x224909,_0x1cc8c3,_0x37f2bf){var _0x4adc13=_0x51f535;this[_0x4adc13(0x1f9)][_0x4adc13(0x24d)]({'unitId':_0x224909,'type':_0x1cc8c3,'subUnitId':_0x37f2bf});let _0x1e26f7=null;switch(_0x1cc8c3){case UniverType[_0x4adc13(0x4b7)]:{_0x1e26f7=await this[_0x4adc13(0x46c)](_0x224909);break;}case UniverType[_0x4adc13(0x4ac)]:{_0x1e26f7=await this[_0x4adc13(0x2d4)](_0x224909);break;}default:{this[_0x4adc13(0x3c9)][_0x4adc13(0x269)](_0x4adc13(0x282),_0x4adc13(0x1cf));break;}}return _0x1e26f7;}async['_loadSheet'](_0x5c0a7d){var _0xe269d4=_0x51f535,_0x3e2954;let _0x41f958=0x0;const _0xb0878b=await((_0x3e2954=this[_0xe269d4(0x34b)])==null?void 0x0:_0x3e2954[_0xe269d4(0x373)](_0x5c0a7d));return _0xb0878b&&(_0xb0878b[_0xe269d4(0x4ca)]||_0xb0878b[_0xe269d4(0x39d)][_0xe269d4(0x1d3)]!==0x0)&&(_0x41f958=_0xb0878b[_0xe269d4(0x31d)]),_0x41f958===0x0&&this['_logService'][_0xe269d4(0x46e)](_0xe269d4(0x282),_0xe269d4(0x3b4)),this[_0xe269d4(0x3ce)][_0xe269d4(0x2ea)](_0x5c0a7d,_0x41f958);}async['_loadDoc'](_0x3e8616){var _0x340193=_0x51f535,_0x128aaa;let _0x302f96=0x0;const _0x37b5c0=await((_0x128aaa=this['_localCacheService'])==null?void 0x0:_0x128aaa['loadOfflineData'](_0x3e8616));return _0x37b5c0&&(_0x37b5c0[_0x340193(0x4ca)]||_0x37b5c0[_0x340193(0x39d)]['length']!==0x0)&&(_0x302f96=_0x37b5c0[_0x340193(0x31d)]),_0x302f96===0x0&&this[_0x340193(0x3c9)][_0x340193(0x46e)](_0x340193(0x282),_0x340193(0x3b4)),this['_snapshotService'][_0x340193(0x465)](_0x3e8616,_0x302f96);}},__name(_a21,'DataLoaderService'),_a21);DataLoaderService=__decorateClass$6([__decorateParam$6(0x0,ILogService),__decorateParam$6(0x1,Inject(SnapshotService)),__decorateParam$6(0x2,Optional(ILocalCacheService))],DataLoaderService);var __defProp$5=Object[_0x51f535(0x2c3)],__getOwnPropDesc$5=Object[_0x51f535(0x32f)],__decorateClass$5=__name((_0x5cd322,_0x361da9,_0x1801b3,_0x2ea731)=>{var _0x1386ac=_0x51f535;for(var _0x264bbe=_0x2ea731>0x1?void 0x0:_0x2ea731?__getOwnPropDesc$5(_0x361da9,_0x1801b3):_0x361da9,_0x5454e9=_0x5cd322[_0x1386ac(0x1d3)]-0x1,_0x53f250;_0x5454e9>=0x0;_0x5454e9--)(_0x53f250=_0x5cd322[_0x5454e9])&&(_0x264bbe=(_0x2ea731?_0x53f250(_0x361da9,_0x1801b3,_0x264bbe):_0x53f250(_0x264bbe))||_0x264bbe);return _0x2ea731&&_0x264bbe&&__defProp$5(_0x361da9,_0x1801b3,_0x264bbe),_0x264bbe;},_0x51f535(0x1e3)),__decorateParam$5=__name((_0x5755d5,_0x5b9941)=>(_0x330e30,_0x5a65df)=>_0x5b9941(_0x330e30,_0x5a65df,_0x5755d5),_0x51f535(0x519));const ALLOW_IMAGE_LIST=['image/png',_0x51f535(0x4d2),'image/jpg','image/gif',_0x51f535(0x436)],ALLOW_IMAGE_SIZE=0x5*0x400*0x400,EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x51f535(0x1f1),DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x51f535(0x2f4),EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0x51f535(0x487),DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0x51f535(0x390);var _a22;let CollaborationImageIoService=(_a22=class{constructor(_0x12bfec,_0x559b92,_0x2d415f){var _0x3179de=_0x51f535;__publicField(this,_0x3179de(0x3da),0x0),__publicField(this,_0x3179de(0x4db),new Subject()),__publicField(this,_0x3179de(0x4d4),this[_0x3179de(0x4db)]),__publicField(this,_0x3179de(0x2eb),new Map()),(this['_httpService']=_0x12bfec,this[_0x3179de(0x393)]=_0x559b92,this[_0x3179de(0x20b)]=_0x2d415f);}[_0x51f535(0x26e)](_0x1edae0){var _0x191076=_0x51f535;this['_waitCount']=_0x1edae0,this[_0x191076(0x4db)][_0x191076(0x24d)](_0x1edae0);}[_0x51f535(0x49e)](_0x3c81f6,_0x4955a5){var _0x2e1d79=_0x51f535;if(_0x4955a5===ImageSourceType[_0x2e1d79(0x4b4)]){const _0x29c851=new Image();return _0x29c851[_0x2e1d79(0x1e7)]=_0x3c81f6,_0x29c851;}return this[_0x2e1d79(0x2eb)][_0x2e1d79(0x40e)](_0x3c81f6);}[_0x51f535(0x4c4)](_0x5032ab,_0x1f9d2e,_0x55ab8d){var _0x325c86=_0x51f535;_0x1f9d2e===ImageSourceType[_0x325c86(0x4b4)]||_0x55ab8d==null||this[_0x325c86(0x2eb)][_0x325c86(0x202)](_0x5032ab,_0x55ab8d);}async[_0x51f535(0x34d)](_0x20175b){var _0x1d4cb2=_0x51f535;try{const _0x87b1cf=this[_0x1d4cb2(0x304)](this[_0x1d4cb2(0x469)](),''+_0x20175b),_0x57a616=(await this[_0x1d4cb2(0x527)][_0x1d4cb2(0x40e)](_0x87b1cf))['body'];if(_0x57a616[_0x1d4cb2(0x269)]&&_0x57a616[_0x1d4cb2(0x269)][_0x1d4cb2(0x437)]===ErrorCode['OK']){const _0x577eed=new URL(_0x57a616[_0x1d4cb2(0x246)],this[_0x1d4cb2(0x287)]())['toString']();return Promise[_0x1d4cb2(0x2fb)](_0x577eed);}return Promise[_0x1d4cb2(0x47c)](_0x57a616['error']);}catch(_0x193eb9){return Promise[_0x1d4cb2(0x47c)](_0x193eb9);}}async[_0x51f535(0x24f)](_0x3aada2){var _0x2df9e8=_0x51f535;let _0x5da748='';if(!ALLOW_IMAGE_LIST[_0x2df9e8(0x216)](_0x3aada2[_0x2df9e8(0x425)]))return this[_0x2df9e8(0x39e)](),Promise[_0x2df9e8(0x47c)](new Error(ImageUploadStatusType[_0x2df9e8(0x2ca)]));if(_0x3aada2[_0x2df9e8(0x44a)]>ALLOW_IMAGE_SIZE)return this['_decreaseWaiting'](),Promise[_0x2df9e8(0x47c)](new Error(ImageUploadStatusType['ERROR_EXCEED_SIZE']));try{const _0x3d3dae=new FormData();_0x3d3dae[_0x2df9e8(0x3b9)]('file',_0x3aada2);const _0x4e428b=this[_0x2df9e8(0x20b)]['getFocusedUnit'](),_0x1f0e75=_0x4e428b==null?void 0x0:_0x4e428b[_0x2df9e8(0x2b1)]();if(!_0x1f0e75)throw new Error(_0x2df9e8(0x3de));const _0x257767=this[_0x2df9e8(0x44c)]()+'?size='+_0x3aada2[_0x2df9e8(0x44a)]['toString']()+_0x2df9e8(0x42f)+FileSource[_0x2df9e8(0x3ef)]+_0x2df9e8(0x1e6)+encodeURIComponent(_0x1f0e75),_0x3e798e=await(await fetch(_0x257767,{'method':_0x2df9e8(0x378),'body':_0x3d3dae}))[_0x2df9e8(0x48c)]();if(typeof _0x3e798e['FileId']!='string')return this[_0x2df9e8(0x39e)](),Promise[_0x2df9e8(0x47c)](new Error(ImageUploadStatusType[_0x2df9e8(0x3af)]));_0x5da748=_0x3e798e['FileId'];}catch{return this[_0x2df9e8(0x39e)](),Promise['reject'](new Error(ImageUploadStatusType[_0x2df9e8(0x3af)]));}return new Promise((_0x22b348,_0x3db715)=>{var _0x24d865=_0x2df9e8;const _0x252fa4=new FileReader();_0x252fa4[_0x24d865(0x28c)](_0x3aada2),_0x252fa4[_0x24d865(0x3b8)]=_0x44141e=>{var _0x4ba4c1=_0x24d865,_0x15c856;const _0x50ae11=(_0x15c856=_0x44141e['target'])==null?void 0x0:_0x15c856[_0x4ba4c1(0x285)];if(_0x50ae11==null){this[_0x4ba4c1(0x39e)](),_0x3db715(new Error(ImageUploadStatusType[_0x4ba4c1(0x3af)]));return;}const _0x28c09f=Tools[_0x4ba4c1(0x463)](0x6);_0x22b348({'imageId':_0x28c09f,'imageSourceType':ImageSourceType['UUID'],'source':_0x5da748,'base64Cache':_0x50ae11,'status':ImageUploadStatusType[_0x4ba4c1(0x4c7)]}),this[_0x4ba4c1(0x39e)]();};});}[_0x51f535(0x44c)](){var _0x1857a4=_0x51f535,_0x78718a,_0x3678e8;const _0x1d526b=this['_configService'][_0x1857a4(0x310)](EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY),_0x5f2d8c=this[_0x1857a4(0x393)][_0x1857a4(0x310)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x3678e8=(_0x78718a=_0x5f2d8c==null?void 0x0:_0x5f2d8c['uploadFileServerUrl'])!=null?_0x78718a:_0x1d526b)!=null?_0x3678e8:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}[_0x51f535(0x469)](){var _0x162b92=_0x51f535,_0x16009b,_0x5229de;const _0x4b13f6=this[_0x162b92(0x393)][_0x162b92(0x310)](EXCHANGE_SIGN_URL_SERVER_URL_KEY),_0x8276bf=this[_0x162b92(0x393)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x5229de=(_0x16009b=_0x8276bf==null?void 0x0:_0x8276bf[_0x162b92(0x4f2)])!=null?_0x16009b:_0x4b13f6)!=null?_0x5229de:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}[_0x51f535(0x287)](){var _0x2f30cd=_0x51f535,_0x1c6758;const _0x26e1e7=this[_0x2f30cd(0x393)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1c6758=_0x26e1e7==null?void 0x0:_0x26e1e7[_0x2f30cd(0x309)])!=null?_0x1c6758:location[_0x2f30cd(0x423)];}[_0x51f535(0x304)](_0x4bda17,_0x542016){var _0x164341=_0x51f535;return _0x4bda17[_0x164341(0x326)](_0x164341(0x4fa),_0x542016);}['_decreaseWaiting'](){var _0x457bca=_0x51f535;this[_0x457bca(0x3da)]-=0x1,this[_0x457bca(0x4db)]['next'](this[_0x457bca(0x3da)]);}},__name(_a22,_0x51f535(0x449)),_a22);CollaborationImageIoService=__decorateClass$5([__decorateParam$5(0x0,Inject(HTTPService)),__decorateParam$5(0x1,IConfigService),__decorateParam$5(0x2,Inject(IUniverInstanceService))],CollaborationImageIoService);var __defProp$4=Object[_0x51f535(0x2c3)],__getOwnPropDesc$4=Object['getOwnPropertyDescriptor'],__decorateClass$4=__name((_0x52d7f5,_0x527cf7,_0x1871d3,_0x43f435)=>{var _0x4b587f=_0x51f535;for(var _0x2abfea=_0x43f435>0x1?void 0x0:_0x43f435?__getOwnPropDesc$4(_0x527cf7,_0x1871d3):_0x527cf7,_0x4d21fa=_0x52d7f5[_0x4b587f(0x1d3)]-0x1,_0x5a2988;_0x4d21fa>=0x0;_0x4d21fa--)(_0x5a2988=_0x52d7f5[_0x4d21fa])&&(_0x2abfea=(_0x43f435?_0x5a2988(_0x527cf7,_0x1871d3,_0x2abfea):_0x5a2988(_0x2abfea))||_0x2abfea);return _0x43f435&&_0x2abfea&&__defProp$4(_0x527cf7,_0x1871d3,_0x2abfea),_0x2abfea;},'__decorateClass$4'),__decorateParam$4=__name((_0x131678,_0x53e6ce)=>(_0x2e8cbb,_0xded3a6)=>_0x53e6ce(_0x2e8cbb,_0xded3a6,_0x131678),_0x51f535(0x2e2));const DEFAULT_AUTHZ_URL_KEY=_0x51f535(0x391);var _a23;let MentionIoHttpService=(_a23=class{constructor(_0x131fed,_0xd0ecaa){var _0x1d38d0=_0x51f535;this[_0x1d38d0(0x393)]=_0x131fed,this['_HTTPService']=_0xd0ecaa;}[_0x51f535(0x51d)](){var _0xb15209=_0x51f535,_0x2eab09,_0x2c1e74;const _0x528e01=this[_0xb15209(0x393)][_0xb15209(0x310)](AUTHZ_URL_KEY),_0x45db72=this[_0xb15209(0x393)][_0xb15209(0x310)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x2c1e74=(_0x2eab09=_0x45db72==null?void 0x0:_0x45db72[_0xb15209(0x4f5)])!=null?_0x2eab09:_0x528e01)!=null?_0x2c1e74:DEFAULT_AUTHZ_URL_KEY;}async[_0x51f535(0x224)](_0x678bab){var _0x347906=_0x51f535;const _0x2382e1=this[_0x347906(0x51d)]()+_0x347906(0x204);return{'list':[{'title':_0x347906(0x4d9),'mentions':(await this['_HTTPService']['get'](_0x2382e1,{'params':{'objectID':_0x678bab['unitId'],'unitID':_0x678bab['unitId']}}))[_0x347906(0x225)][_0x347906(0x3ad)]['map'](_0x1a4f47=>({'objectId':_0x1a4f47['id'],'name':_0x1a4f47[_0x347906(0x3e0)][_0x347906(0x3ea)],'metadata':{'icon':_0x1a4f47[_0x347906(0x3e0)]['avatar']},'label':_0x1a4f47[_0x347906(0x3e0)][_0x347906(0x3ea)],'objectType':MentionType[_0x347906(0x447)]})),'metadata':{},'type':MentionType[_0x347906(0x447)]}]};}},__name(_a23,_0x51f535(0x24b)),_a23);MentionIoHttpService=__decorateClass$4([__decorateParam$4(0x0,Inject(IConfigService)),__decorateParam$4(0x1,Inject(HTTPService))],MentionIoHttpService);var __defProp$3=Object['defineProperty'],__getOwnPropDesc$3=Object[_0x51f535(0x32f)],__decorateClass$3=__name((_0x1176b5,_0x3a803e,_0x3a7245,_0x420f24)=>{var _0x5a1b20=_0x51f535;for(var _0x2ceef3=_0x420f24>0x1?void 0x0:_0x420f24?__getOwnPropDesc$3(_0x3a803e,_0x3a7245):_0x3a803e,_0x262ce5=_0x1176b5[_0x5a1b20(0x1d3)]-0x1,_0x23bf52;_0x262ce5>=0x0;_0x262ce5--)(_0x23bf52=_0x1176b5[_0x262ce5])&&(_0x2ceef3=(_0x420f24?_0x23bf52(_0x3a803e,_0x3a7245,_0x2ceef3):_0x23bf52(_0x2ceef3))||_0x2ceef3);return _0x420f24&&_0x2ceef3&&__defProp$3(_0x3a803e,_0x3a7245,_0x2ceef3),_0x2ceef3;},_0x51f535(0x526)),__decorateParam$3=__name((_0x1febff,_0x3b1a4d)=>(_0x30568d,_0x54241b)=>_0x3b1a4d(_0x30568d,_0x54241b,_0x1febff),_0x51f535(0x4ea)),_a24;let PermissionService=(_a24=class extends RxDisposable{constructor(_0xee6740,_0x4af2ce,_0x2333d5,_0x3f5f89,_0x4ef833,_0x42d9fe,_0x51e29c){var _0x3b3169=_0x51f535;super(),this[_0x3b3169(0x45a)]=_0xee6740,this[_0x3b3169(0x20b)]=_0x4af2ce,this[_0x3b3169(0x2cf)]=_0x2333d5,this[_0x3b3169(0x251)]=_0x3f5f89,this['_collaborationUIEventService']=_0x4ef833,this[_0x3b3169(0x29d)]=_0x42d9fe,this[_0x3b3169(0x514)]=_0x51e29c,this['_initUnitPermissionChange'](),this[_0x3b3169(0x253)]();}[_0x51f535(0x253)](){var _0x575eb1=_0x51f535;const _0x13f882=__name(async _0x6e939c=>{var _0x1a31f6=_0x46c5;(await this['_collaborationSessionService'][_0x1a31f6(0x50a)](_0x6e939c))[_0x1a31f6(0x452)]['pipe'](filter(_0x2d61f2=>_0x2d61f2[_0x1a31f6(0x50e)]===CollaborationEvent[_0x1a31f6(0x353)]),_0x3dbbe5(this['dispose$']))['subscribe'](_0x49d575=>{var _0x5d3eaa=_0x1a31f6;const _0x334195=_0x49d575,{reason:_0x106a4d}=_0x334195['data'];this['_collaborationUIEventService'][_0x5d3eaa(0x209)]({'id':CollaborationUIEventId[_0x5d3eaa(0x2f5)],'data':_0x106a4d}),this[_0x5d3eaa(0x2cf)][_0x5d3eaa(0x3e6)](new WorkbookEditablePermission(_0x6e939c)['id'],!0x1),this['_collaborationSessionService'][_0x5d3eaa(0x235)](_0x6e939c);});},_0x575eb1(0x44e));merge(this[_0x575eb1(0x20b)][_0x575eb1(0x4a0)](UniverInstanceType['UNIVER_SHEET']),this[_0x575eb1(0x20b)][_0x575eb1(0x4a0)](UniverInstanceType[_0x575eb1(0x4ac)]))['pipe'](map(_0x269a79=>_0x269a79['getUnitId']()),filter(_0x5c5e98=>!isInternalEditorID(_0x5c5e98)),_0x3dbbe5(this[_0x575eb1(0x23d)]))[_0x575eb1(0x4d5)](_0xe28881=>{_0x13f882(_0xe28881);});}[_0x51f535(0x387)](){var _0x45cdab=_0x51f535;const _0x2e4f07=__name(async _0x4617c1=>{var _0x5f210c=_0x46c5;const _0x5c4505=await this['_collaborationSessionService'][_0x5f210c(0x50a)](_0x4617c1),_0x4b5e52=this[_0x5f210c(0x45a)][_0x5f210c(0x40e)](SheetPermissionInitController);_0x5c4505[_0x5f210c(0x452)][_0x5f210c(0x283)](filter(_0x487e62=>_0x487e62[_0x5f210c(0x50e)]===CollaborationEvent[_0x5f210c(0x399)]),_0x3dbbe5(this[_0x5f210c(0x23d)]))[_0x5f210c(0x4d5)](_0x48df58=>{var _0x4e8e2d=_0x5f210c;const _0x39863c=_0x48df58,{objectId:_0x55b2b2}=_0x39863c[_0x4e8e2d(0x432)];_0x55b2b2===_0x4617c1?_0x4b5e52[_0x4e8e2d(0x244)](_0x4617c1):_0x4b5e52['refreshPermission'](_0x4617c1,_0x55b2b2);});},'handleUnitPermissionChange');merge(this[_0x45cdab(0x20b)][_0x45cdab(0x4a0)](UniverInstanceType['UNIVER_SHEET']),this[_0x45cdab(0x20b)][_0x45cdab(0x4a0)](UniverInstanceType[_0x45cdab(0x4ac)]))['pipe'](map(_0x3202dc=>_0x3202dc[_0x45cdab(0x2b1)]()),filter(_0x18deef=>!isInternalEditorID(_0x18deef)),_0x3dbbe5(this[_0x45cdab(0x23d)]))[_0x45cdab(0x4d5)](_0x185793=>{_0x2e4f07(_0x185793);});}},__name(_a24,_0x51f535(0x3c2)),_a24);PermissionService=__decorateClass$3([__decorateParam$3(0x0,Inject(Injector)),__decorateParam$3(0x1,IUniverInstanceService),__decorateParam$3(0x2,IPermissionService),__decorateParam$3(0x3,Inject(CollaborationSessionService)),__decorateParam$3(0x4,Inject(CollaborationUIEventService)),__decorateParam$3(0x5,IAuthzIoService),__decorateParam$3(0x6,IUndoRedoService)],PermissionService);var __defProp$2=Object[_0x51f535(0x2c3)],__getOwnPropDesc$2=Object[_0x51f535(0x32f)],__decorateClass$2=__name((_0x2e22f7,_0x281392,_0x3a7ce8,_0x5257d2)=>{for(var _0x292be0=_0x5257d2>0x1?void 0x0:_0x5257d2?__getOwnPropDesc$2(_0x281392,_0x3a7ce8):_0x281392,_0x590e1d=_0x2e22f7['length']-0x1,_0x45427d;_0x590e1d>=0x0;_0x590e1d--)(_0x45427d=_0x2e22f7[_0x590e1d])&&(_0x292be0=(_0x5257d2?_0x45427d(_0x281392,_0x3a7ce8,_0x292be0):_0x45427d(_0x292be0))||_0x292be0);return _0x5257d2&&_0x292be0&&__defProp$2(_0x281392,_0x3a7ce8,_0x292be0),_0x292be0;},_0x51f535(0x46d)),__decorateParam$2=__name((_0x2d6785,_0x184421)=>(_0x1c1d21,_0x1b0417)=>_0x184421(_0x1c1d21,_0x1b0417,_0x2d6785),_0x51f535(0x339)),_a25;let SnapshotServerOverHTTPService=(_a25=class{constructor(_0x1d5f5c,_0x531f2f){var _0x28390b=_0x51f535;this[_0x28390b(0x393)]=_0x1d5f5c,this[_0x28390b(0x527)]=_0x531f2f;}async[_0x51f535(0x252)](_0x194921,_0x2f917a){var _0x3e2134=_0x51f535,_0x4ad6cc;const {unitID:_0x37ee9b,type:_0x1f885b,revision:revision=0x0}=_0x2f917a,_0x113436=this[_0x3e2134(0x322)]()+'/'+_0x1f885b+'/unit/'+_0x37ee9b+_0x3e2134(0x2b4)+revision,_0xce3de3=(await this['_httpService'][_0x3e2134(0x40e)](_0x113436))[_0x3e2134(0x225)],_0x9db3f6=(_0x4ad6cc=_0xce3de3['snapshot'])==null?void 0x0:_0x4ad6cc[_0x3e2134(0x464)];if(_0x9db3f6){const _0x657ef9=_0x9db3f6==null?void 0x0:_0x9db3f6[_0x3e2134(0x398)],_0x44bbe5=textEncoder[_0x3e2134(0x3c0)](b64DecodeUnicode(_0x657ef9));_0x9db3f6[_0x3e2134(0x398)]=_0x44bbe5,Object['entries'](_0x9db3f6[_0x3e2134(0x2a5)])[_0x3e2134(0x41c)](([,_0x1643f8])=>{var _0x219c57=_0x3e2134;const _0x8e5ec6=_0x1643f8[_0x219c57(0x398)],_0xc39fac=textEncoder['encode'](b64DecodeUnicode(_0x8e5ec6));_0x1643f8[_0x219c57(0x398)]=_0xc39fac;});}return _0xce3de3;}async['getSheetBlock'](_0x49d9dd,_0x548269){var _0x4e272c=_0x51f535;const {unitID:_0x5247d7,type:_0x54c2e5,blockID:_0x262594}=_0x548269,_0x38bdd3=this[_0x4e272c(0x48f)]()+'/'+_0x54c2e5+_0x4e272c(0x3d6)+_0x5247d7+_0x4e272c(0x422)+_0x262594;return(await this['_httpService'][_0x4e272c(0x40e)](_0x38bdd3))[_0x4e272c(0x225)];}async[_0x51f535(0x363)](_0x455b6b,_0x2258ed){var _0x23815c=_0x51f535;const {unitID:_0xc9d524,type:_0x287985,blockID:_0x301daf}=_0x2258ed,_0x32c7b7=this[_0x23815c(0x48f)]()+_0x23815c(0x422)+_0x287985+_0x23815c(0x3d6)+_0xc9d524+'/block/'+_0x301daf;return(await this['_httpService']['get'](_0x32c7b7))[_0x23815c(0x225)];}async[_0x51f535(0x3b1)](_0x291fbb,_0x7b5c6c){var _0x1c6432=_0x51f535;const {unitID:_0x350201,type:_0x3b34c9,from:_0x5d00f7,to:_0x2624be}=_0x7b5c6c,_0x5aa1a6=this[_0x1c6432(0x48f)]()+'/'+_0x3b34c9+_0x1c6432(0x3d6)+_0x350201+_0x1c6432(0x3cf)+_0x5d00f7+'&to='+_0x2624be;return(await this['_httpService']['get'](_0x5aa1a6))['body'];}[_0x51f535(0x322)](){var _0x49ada8=_0x51f535,_0x3f0846;return(_0x3f0846=this[_0x49ada8(0x393)][_0x49ada8(0x310)](SNAPSHOT_URL_KEY))!=null?_0x3f0846:this['_getAPIPrefix']();}[_0x51f535(0x48f)](){var _0x4e6c6=_0x51f535,_0x20aa55,_0x3c8551;const _0x1cb900=this[_0x4e6c6(0x393)][_0x4e6c6(0x310)](SNAPSHOT_SERVER_URL_KEY),_0x3a237c=this[_0x4e6c6(0x393)][_0x4e6c6(0x310)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x3c8551=(_0x20aa55=_0x3a237c==null?void 0x0:_0x3a237c[_0x4e6c6(0x232)])!=null?_0x20aa55:_0x1cb900)!=null?_0x3c8551:DEFAULT_SNAPSHOT_SERVER_URL;}async[_0x51f535(0x2ef)](_0x50eaa0,_0xabac4a){var _0x214145=_0x51f535;const _0x86580e='/universer-api/snapshot/'+_0xabac4a['type']+_0x214145(0x3d6)+_0xabac4a[_0x214145(0x1d6)]+_0x214145(0x4c6);return(await this[_0x214145(0x527)][_0x214145(0x40e)](_0x86580e,{'params':{'resourceId':JSON[_0x214145(0x36e)](_0xabac4a['resourceIDs'])}}))[_0x214145(0x225)];}[_0x51f535(0x3a3)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x51f535(0x347)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x51f535(0x46b)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x51f535(0x2c1)](){var _0x50ace8=_0x51f535;throw new Error(_0x50ace8(0x32d));}['getLatestCsReqIdBySid'](){var _0x23b089=_0x51f535;throw new Error(_0x23b089(0x32d));}},__name(_a25,_0x51f535(0x43e)),_a25);SnapshotServerOverHTTPService=__decorateClass$2([__decorateParam$2(0x0,IConfigService),__decorateParam$2(0x1,Inject(HTTPService))],SnapshotServerOverHTTPService);var __defProp$1=Object[_0x51f535(0x2c3)],__getOwnPropDesc$1=Object['getOwnPropertyDescriptor'],__decorateClass$1=__name((_0x1ed540,_0x365f0a,_0x5bf357,_0x52c901)=>{var _0x100451=_0x51f535;for(var _0x269e0d=_0x52c901>0x1?void 0x0:_0x52c901?__getOwnPropDesc$1(_0x365f0a,_0x5bf357):_0x365f0a,_0x32385b=_0x1ed540[_0x100451(0x1d3)]-0x1,_0xbd6ccd;_0x32385b>=0x0;_0x32385b--)(_0xbd6ccd=_0x1ed540[_0x32385b])&&(_0x269e0d=(_0x52c901?_0xbd6ccd(_0x365f0a,_0x5bf357,_0x269e0d):_0xbd6ccd(_0x269e0d))||_0x269e0d);return _0x52c901&&_0x269e0d&&__defProp$1(_0x365f0a,_0x5bf357,_0x269e0d),_0x269e0d;},_0x51f535(0x51c)),__decorateParam$1=__name((_0x357c43,_0x43031f)=>(_0x2e2da0,_0x4ccd67)=>_0x43031f(_0x2e2da0,_0x4ccd67,_0x357c43),_0x51f535(0x1d1)),_a26;let CollaborativeUndoRedoService=(_a26=class extends LocalUndoRedoService{constructor(_0x3fe1ea,_0x562e9b,_0x2a9a08,_0xf613aa,_0x24c436){var _0x34e4fe=_0x51f535;super(_0x3fe1ea,_0x562e9b,_0x2a9a08),this['_transformService']=_0xf613aa,this[_0x34e4fe(0x3c9)]=_0x24c436;}[_0x51f535(0x2e4)](_0x5055fa,_0x532170){var _0x133da4=_0x51f535;const _0x6ead38=this['_getUndoStack'](_0x5055fa);if(_0x6ead38)try{const _0x393e28=this['_transformStack'](_0x6ead38,_0x532170);this[_0x133da4(0x513)](_0x5055fa,_0x393e28);}catch(_0x201d28){this[_0x133da4(0x3c9)]['error'](_0x133da4(0x48e),_0x201d28),this[_0x133da4(0x4ce)](_0x5055fa);}const _0x411b72=this[_0x133da4(0x3bb)](_0x5055fa);if(_0x411b72)try{const _0x2f68c3=this[_0x133da4(0x21e)](_0x411b72,_0x532170);this[_0x133da4(0x306)](_0x5055fa,_0x2f68c3);}catch(_0x3420d1){this[_0x133da4(0x3c9)][_0x133da4(0x269)](_0x3420d1),this[_0x133da4(0x481)](_0x5055fa);}}[_0x51f535(0x4ce)](_0x4cf7d5){var _0x398a7a=_0x51f535;const _0x5e4ab4=this['_getUndoStack'](_0x4cf7d5);_0x5e4ab4&&(_0x5e4ab4[_0x398a7a(0x1d3)]=0x0,this['_updateStatus']());}[_0x51f535(0x481)](_0x4441af){var _0x5a9dfb=_0x51f535;const _0x1d4c91=this['_getRedoStack'](_0x4441af);_0x1d4c91&&(_0x1d4c91[_0x5a9dfb(0x1d3)]=0x0,this[_0x5a9dfb(0x2d1)]());}[_0x51f535(0x513)](_0x58d61f,_0x2f23bf){var _0x450b8b=_0x51f535;this[_0x450b8b(0x294)][_0x450b8b(0x202)](_0x58d61f,_0x2f23bf),this[_0x450b8b(0x2d1)]();}[_0x51f535(0x306)](_0x2b1714,_0x18fd33){var _0x33ef9c=_0x51f535;this[_0x33ef9c(0x210)][_0x33ef9c(0x202)](_0x2b1714,_0x18fd33),this[_0x33ef9c(0x2d1)]();}[_0x51f535(0x21e)](_0x3b4751,_0x6d166d){var _0x4bf6d7=_0x51f535;const _0x3ca148=[];let _0x1777f4=_0x6d166d,_0x19fff1=_0x6d166d;for(let _0x7c7549=_0x3b4751[_0x4bf6d7(0x1d3)]-0x1;_0x7c7549>=0x0;_0x7c7549--){const {unitID:_0x5e4ac6,undoMutations:_0x39d749,redoMutations:_0x21c21a}=_0x3b4751[_0x7c7549],_0x758001=this[_0x4bf6d7(0x45e)][_0x4bf6d7(0x1f6)](_0x1777f4,_0x39d749),_0x47c8f8=this[_0x4bf6d7(0x45e)][_0x4bf6d7(0x1f6)](_0x19fff1,_0x21c21a);if(isTransformMutationsWithChangesetFailure(_0x758001)||isTransformMutationsWithChangesetFailure(_0x47c8f8)){this[_0x4bf6d7(0x3c9)][_0x4bf6d7(0x269)](_0x4bf6d7(0x48e),_0x4bf6d7(0x289),_0x758001,_0x47c8f8);break;}_0x1777f4=_0x758001[_0x4bf6d7(0x471)],_0x19fff1=_0x47c8f8[_0x4bf6d7(0x471)],_0x3ca148[_0x4bf6d7(0x4c5)]({'unitID':_0x5e4ac6,'undoMutations':_0x758001[_0x4bf6d7(0x38e)],'redoMutations':_0x47c8f8['m2Prime']});}return _0x3ca148[_0x4bf6d7(0x490)]();}},__name(_a26,_0x51f535(0x35f)),_a26);CollaborativeUndoRedoService=__decorateClass$1([__decorateParam$1(0x0,IUniverInstanceService),__decorateParam$1(0x1,ICommandService),__decorateParam$1(0x2,IContextService),__decorateParam$1(0x3,ITransformService),__decorateParam$1(0x4,ILogService)],CollaborativeUndoRedoService);var __defProp2=Object['defineProperty'],__getOwnPropDesc=Object[_0x51f535(0x32f)],__defNormalProp2=__name((_0x153f84,_0x131a90,_0xa14716)=>_0x131a90 in _0x153f84?__defProp2(_0x153f84,_0x131a90,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa14716}):_0x153f84[_0x131a90]=_0xa14716,_0x51f535(0x4a1)),__decorateClass=__name((_0x577323,_0x5c1681,_0x115d2a,_0x78575)=>{var _0xd115cb=_0x51f535;for(var _0x2eb93f=_0x78575>0x1?void 0x0:_0x78575?__getOwnPropDesc(_0x5c1681,_0x115d2a):_0x5c1681,_0x4ee8ee=_0x577323[_0xd115cb(0x1d3)]-0x1,_0x346992;_0x4ee8ee>=0x0;_0x4ee8ee--)(_0x346992=_0x577323[_0x4ee8ee])&&(_0x2eb93f=(_0x78575?_0x346992(_0x5c1681,_0x115d2a,_0x2eb93f):_0x346992(_0x2eb93f))||_0x2eb93f);return _0x78575&&_0x2eb93f&&__defProp2(_0x5c1681,_0x115d2a,_0x2eb93f),_0x2eb93f;},_0x51f535(0x2f1)),__decorateParam=__name((_0x5b25de,_0x3000e1)=>(_0x146c87,_0x396e99)=>_0x3000e1(_0x146c87,_0x396e99,_0x5b25de),_0x51f535(0x41f)),__publicField2=__name((_0x3e4fe2,_0x3b71f6,_0x179d8d)=>__defNormalProp2(_0x3e4fe2,_0x3b71f6+'',_0x179d8d),_0x51f535(0x507));const PLUGIN_NAME=_0x51f535(0x218);var _a27;let UniverCollaborationClientPlugin=(_a27=class extends Plugin{constructor(_0x4e9055=defaultPluginConfig,_0x47a633,_0x5aa083,_0x25268d){var _0xe7ad33=_0x51f535;super(),this['_config']=_0x4e9055,this['_logService']=_0x47a633,this[_0xe7ad33(0x45a)]=_0x5aa083,this['_configService']=_0x25268d;const {..._0x3f3320}=_0x35bfeb({},defaultPluginConfig,this[_0xe7ad33(0x385)]);this[_0xe7ad33(0x393)][_0xe7ad33(0x3d7)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,_0x3f3320);}['onStarting'](){var _0x86ffbf=_0x51f535;this['_registerDependencies'](),this[_0x86ffbf(0x2a2)]();}[_0x51f535(0x48d)](){var _0x1e44cd=_0x51f535,_0x483015,_0x3f3c44,_0x2598de,_0x58ea50;this[_0x1e44cd(0x45a)][_0x1e44cd(0x4af)](IUndoRedoService)&&this[_0x1e44cd(0x3c9)][_0x1e44cd(0x269)](_0x1e44cd(0x2e8),_0x1e44cd(0x36a));const _0x2d7f38=mergeOverrideWithDependencies([[IUndoRedoService,{'useClass':CollaborativeUndoRedoService}],[CollaborationSessionService],[MemberService],[SheetTransformSelectionsService],[AuthServerService],[DomainRequestService],[CommentService],[PermissionService],[CollaborationUIEventService],[DataLoaderService],[ICollaborationSocketService,{'useClass':(_0x3f3c44=(_0x483015=this['_config'])==null?void 0x0:_0x483015[_0x1e44cd(0x297)])!=null?_0x3f3c44:CollaborationSocketService}],[ISnapshotServerService,{'useClass':SnapshotServerOverHTTPService}],[IAuthzIoService,{'useClass':AuthzIoHttpService}],[IImageIoService,{'useClass':CollaborationImageIoService}],[IMentionIOService,{'useClass':MentionIoHttpService}],[CollaborationController],[FileNameController]],(_0x2598de=this[_0x1e44cd(0x385)])==null?void 0x0:_0x2598de[_0x1e44cd(0x501)]);if(!((_0x58ea50=this['_config'])!=null&&_0x58ea50[_0x1e44cd(0x523)])){const _0x3919e=_0x2d7f38['findIndex'](([_0x21a2a1])=>_0x21a2a1===ISingleActiveUnitService);_0x3919e!==-0x1&&_0x2d7f38['splice'](_0x3919e,0x1);}registerDependencies(this[_0x1e44cd(0x45a)],_0x2d7f38);}['_initDependencies'](){var _0x39b2e8=_0x51f535,_0x5b0e0a,_0x1207ea,_0xbb8a98;this[_0x39b2e8(0x45a)][_0x39b2e8(0x40e)](HTTPService)[_0x39b2e8(0x2c0)]({'priority':0x14,'interceptor':ThresholdInterceptorFactory({'maxParallel':0x6})}),(_0x5b0e0a=this[_0x39b2e8(0x385)])!=null&&_0x5b0e0a['enableOfflineEditing']||(_0x1207ea=this[_0x39b2e8(0x45a)]['get'](ILocalCacheService,Quantity[_0x39b2e8(0x2d2)]))==null||_0x1207ea[_0x39b2e8(0x396)](),(_0xbb8a98=this[_0x39b2e8(0x385)])!=null&&_0xbb8a98[_0x39b2e8(0x496)]&&touchDependencies(this[_0x39b2e8(0x45a)],[[AuthServerService]]),touchDependencies(this['_injector'],[[DomainRequestService],[CollaborationController],[PermissionService]]);}},__name(_a27,_0x51f535(0x3f3)),_a27);function _0x46c5(_0x597892,_0x28bee9){var _0x11f714=_0x11f7();return _0x46c5=function(_0x46c5f8,_0x2ba709){_0x46c5f8=_0x46c5f8-0x1ce;var _0x4026f5=_0x11f714[_0x46c5f8];return _0x4026f5;},_0x46c5(_0x597892,_0x28bee9);}__publicField2(UniverCollaborationClientPlugin,_0x51f535(0x26c),PLUGIN_NAME),UniverCollaborationClientPlugin=__decorateClass([DependentOn(UniverCollaborationPlugin,UniverSheetsPlugin,UniverNetworkPlugin),__decorateParam(0x1,ILogService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService)],UniverCollaborationClientPlugin);export{AUTHZ_URL_KEY,AuthzIoHttpService,AwaitingState,AwaitingWithPendingState,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,COLLAB_SUBMIT_CHANGESET_URL_KEY,COLLAB_WEB_SOCKET_URL_KEY,CollaborationController,CollaborationEntity,CollaborationImageIoService,CollaborationSession,CollaborationSessionService,CollaborationSocketService,CollaborationStatus,CollaborationUIEventId,CollaborationUIEventService,CollaborativeUndoRedoService,CommentService,ConflictState,DEFAULT_COLLAB_WEB_SOCKET_URL,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,DataLoaderService,DocCollaborationEntity,FetchingMissState,HEARTBEAT_INTERVAL_KEY,HEARTBEAT_TIMEOUT_KEY,ICollaborationSocketService,ILocalCacheService,INetworkConditionService,ISingleActiveUnitService,LOCAL_CACHE_INTERVAL,LOCAL_CACHE_INTERVAL_KEY,LOGIN_URL_KEY,MemberService,MentionIoHttpService,OfflineState,PendingState,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,RETRY_CONNECTING_MAX_COUNT_KEY,SEND_CHANGESET_TIMEOUT_KEY,SNAPSHOT_SERVER_URL_KEY,SNAPSHOT_URL_KEY,SessionStatus,SheetCollaborationEntity,SheetTransformSelectionsService,SnapshotServerOverHTTPService,SyncedState,UnitStatus,UniverCollaborationClientPlugin,deserializeToCombResponse,getLocalCacheKey,serializeCombRequest};