@univerjs-pro/collaboration-client 0.4.1-experimental.20241023-bbb123f → 0.4.1-experimental.20241024-9717e6c

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
- const _0x5009fc=_0x3280;function _0x1a52(){const _0x36814e=['_onRemoteRetry','_setupSubUnitSync','body','_socket','capture','currentSkeleton$','_registerRenderDependencies','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','href','getOwnPropertyDescriptor','removeParam','getRoom','unsubscribe','getSkeleton','...','verdancy600','name','max','Undefined','_undoRedoService','/universer-api/snapshot','sessionStatus$','_disabled','_urlService','_removeCollabCursors','_cachedData','enableSingleActiveInstanceLock','2773337rCUFDv','_snapshotServerService','stringify','UNIVER_SHEET','_resendWithTimeout','unshift','objectID','labelPosition','disposeWithMe','onRemoteChangeset','_getSaveTimeout','_cursor','createInstance','_clearRedo','memberID','onlyLocal','clipPath','_sender','[SyncedState]:\x20received\x20acknowledgement.','RETRY_CONNECTING_MAX_COUNT','_startSheetCollabCursor','_cursors','replaceTextRanges','roomMembers','x-univer-host','onTransformChange$','_scheduleSaving','UNAUTHENTICATED','blue400','commentUpdate$','CHANGESET_REVISION_CONFILICT','_state$','COLLAB_WEB_SOCKET_URL','MoveRangeCommandId','_userManagerService','dispose$','replace','UNRECOGNIZED','SNAPSHOT_INVALID_SNAPSHOT','action','_configService','storage','data','width','setCurrentUser','getParam','then','USERS_ENTER','_updateCollabCursors','getCollabCursors$','/universer-api/comb','collabStatus.conflict','ERROR_IMAGE_TYPE','TOO_MANY_REQUESTS','UNIVER_DOC','_shouldReportTelemetry','_clearUndo','CHANGESET_ACK','_acknowledgedAwaitingChangeset','endColumn','signUrlServerUrl','filter','createElement','getUnitStatus$','unitId\x20is\x20not\x20found','commentUpdateEvent','?url=','SHOULD_CLOSE_CONN','_event$','_sessionStatus$','deleteCollaborator','COMPRESS_MUTATION_SEND','get','_unitOnClients','_colorIndex','on-line-single_clip0_910_349','_drawTextRange','concat','HttpExport','_assignedColors','SUBMIT_CHANGESET','awaitingChangeset','_startCollaboration','column','_collaborationSessionService','collaboration-client.config','round','open$','_startDocCollabCursor','bind','_docTransformIMECacheService','post','0\x200\x2017\x2016','asObservable','rev','getUndoRedoMutationParamsCache','MSG_FOR_ERROR','session.collaboration-timeout','getTypeOfUnitAdded$','_refRangeService','_getSignURL','_singleActiveUnitService','_beforeCloseService','_transformUndoredo','LICENSE_EXPORT_SIZE_EXCEEDED','currentTheme$','_collaborationTimeoutTimer','_initStatusListener','onlineStatus','registerRenderModule','init','_handleHeartbeatEvent','addObject','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','csAckEvent','loginUrlKey','FileId','_removeRoom','_scheduleCollaborationTimeoutTimer','onReady','[CollaborationSession]','editing\x20status\x20changed\x20to','assignAColorForMemberID','_onRemoteChangeset','onTransformRemoteChangesetByIMECache','newCsEvent','unknown','_handleJoinEvent','YUUMI_URL_COL_OUT_OF_RANGE','subscribeEvent','getDeserializedSheetBlock','collaboration_new_changeset','listRoles','_rescheduleHeartbeat','fillRule','[PendingState]:\x20unhandled\x20univer\x20type:\x20','getUnhiddenWorksheets','_onUserLeave','resourceIDs','_getSnapshotAPIPrefix','1861428BxbyFV','propertyIsEnumerable','cmd','path','OTHER_CLIENTS_EDITING','send','_showConflictNotification','\x20-\x20','moveTo','xlink:href','getUniverSheetInstance','ENSURE_SNAPSHOT_EXECUTION','every','ERROR_IMAGE','originalMeta','whenReady','/universer-api/oidc/authpage','_getRedoStack','_entityInit$','_handler','failed\x20to\x20apply\x20missed\x20changesets!','_updateStatus','_unitID','/collaborator','getCollabEntity','prototype','COMPLETION_FINISHED','_context','COMMENT_UPDATE','_getAnchorBounding','_queuedRemoteChangesets','textRanges','_anchorDot','call','_docStateChangeManagerService','ranges','enableOfflineEditing','add','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','updateMember','code','setParam','NOT_FOUND','HELLO','permission.content','INGEST','close$','_snapshotService','rgba(255,\x20255,\x20255,\x200.01)','M0\x200H16V16H0z','sheets','_onRecvEvent','shouldCloseConn','[CollaborationUndoRedoService]','toggleOffline','_onConnectionOpen','_replaceFileID','on-line-single','onlineStatusTitle','_collaborationController','closeSession','YUUMI_SUBSCRIPTION_NOT_FOUND','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','getRangePointData','_transformUndoRedoStack','getMergeData','_shapes','saveSnapshot','url(#$1','_memberService','_themeService','_loadSheet','_syncEditingCollabCursor','members','onSendChangeset','fetchMiss','set','unit-cache-','APPLY_NON_SEQUENTIAL_REVISION','setUndoRedoMutationParamsCache','CONNECTOR_DATA_TOO_LARGE','evenodd','_awaitingChangeset','enableAuthServer','_onConnectionFailed','arc','getUnitOnRev','_roomMembers','reduce','UNKNOWN_CMD','reject','JOINING','reqId','setActiveRange','_updateState','onMouseMove','UniverIcon','univer-online-status-title','event$','_getDownloadEndpointURL','10BXsCIn','_sendingTimer','session.room-full','_getScale','transformIMECache','_transformService','getTime','BASE64','closePath','_uiPartsService','_onRemoteRejected','getInterceptPoints','collaboration-client.offline-data-not-saved','_http','disposeUnit','_stopTelemetryCollaborationNewChangeset','object','/object/','univer-online','_textBubble','_handleHover','_submitChangeset','InsertRangeMoveRightCommandId','children','_tryEnsureSocket','collabCursorState$','_scene','text','onCommandExecuted','_toggleOnline','_exhaustRemoteChangesetQueue','_injector','toString','_timeoutTimer','bottom','off-line-single_clip0_910_343','file','Error','pipe','_getLoginPath','userID','subUnitId','m2Prime','_resendTimer','_scheduleClearOtherTimer','getViewport','row','_hovered','/-/object/list','UNKNOWN_CODE','getSheetBySheetId','2VpWFLh','auth.needGotoLoginAlert','joinEvent','onStarting','cursorInfo$','synced','extend','_initCloseConn','LIVESHARE_TERMINATE','_onRemoteACK','_docTransformSelectionsService','image/jpg','confirm','_docSyncEditingCollabCursorService','RemoveRowCommandId','updatePermissionObjEvent','_initEventListeners','number','csRejEvent','getUnitType','AWAITING','_incrementRevisionNumber','getTypeOfUnitDisposed$','interceptor','stopTime','colorChannel1','reconnect','svg','_onCursorUpdate','show','uni.network.url-service','MUTATION','3842996WQdthE','transformRemoteChangeset','c2Prime','icon','createCollaborator','_ws','substring','NEW_CHANGESETS','connection\x20error','requestParams','_messageService','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','urlChange$','_imageSourceCache','isEditing','executeCommand','UPDATE_PERMISSION_OBJ','hovered','_listenToOnlineEvent','top','getFocusedUnit','_transformStack','generateRandomId','url','awaiting','_localStorageService','cursorInfo','_selfUnitIDs','_clearCollaborationTimeoutTimer','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_unitStatus','getLatestCsReqIdBySid','updateCollaborator','none','&assign=','infoRsp','/unit/','sheetID','/allowed','registerComponent','_applyRemoteChangeset','LIVESHARE_OPERATION','includes','_updateURLWithCurrentState','getActiveSheet','defIds','off-line-single','_removeClearOtherTimer','_socketMessageSubscription','jiqing500','mutations','onRemoteRej','PERMISSION_REJ','session.will-retry','parse','NO_OTHER_CLIENTS_EDITING','editingUnit','height','1em','_toggleOffline','_docSkeleton','[UniverCollaborationClientPlugin]','[SyncedState]:\x20received\x20rejection.','append','getCurrentRevOfUnit','subunit','removeMember','_decreaseWaiting','save','setTimeout','_getUploadFileURL','LICENSE_IMPORT_SIZE_EXCEEDED','_initResize','triggerDblclick','_labelPosition','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','CHANGESET_REJ','getUnitId','_waitForHeartbeatResponse','onRemoteAck','_ensureSubject','objects','_telemetryService','socketService','_sessions','currentColor','/new_changes','_handleLeaveEvent','push','localeService','idSuffix','saveSheetBlock','_localCacheService','#fff','collaborators','_listenToOfflineEvent','\x20to\x20','hidden','indexOf','onTransformSelections','fillText','1626499WkOYwh','EXCHANGE_SIGN_URL_SERVER_URL_KEY','random','collabStatus.synced','_scheduleHeartbeat','registerBeforeClose','_isPermissionRej','[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.','toRgbString','onMissingChangesets','OffLineSingle','_onRefRangeChange','displayName','ONLINE','_retryConnectingTimer','collabStatus.notCollab','_draw','offline','setAlpha','purple300','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_getCurrentRevision','_refreshCollabCursors','loadSheet','_onJoinRoomEvent','HEADER_MENU','AWAITING_WITH_PENDING','headers','resolve','clearInterval','restore','transformMutation','assign','_online','pushState','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_collabCursorState$','delete','InsertRangeMoveDownCommandId','_range','unitID','_commentService','clearTimeout','beginPath','#FFF','_anchor','_socketService','_color','createSocket','status','awaiting_with_pending','LIVESHARE_NEW_HOST','addObjects','params','_docSkeletonManagerService','_initStatusComponent','drawWith','joinRsp','snapshotServerUrl','all','_revisionService','image/bmp','sessionStatus','SNAPSHOT_SERVER_URL_KEY','COMPRESS_MUTATION_APPLY','save\x20fail\x20reason\x20is\x20','location','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_heartbeatTimer','div','_entities','_initRequestHeader','findNodePositionByCharIndex','_clearLocalCache','Unknown\x20user','setConfig','updateCursorEvent','UNIVER_PROJECT','loadOfflineData','_name','SEND_CHANGESET_TIMEOUT','focused$','isActive','_onCursorDelete','session.connection-failed','YUUMI_RATE_OVER_LIMIT','univer-online-status','_redoStacks','_changesetReqId','getUnit','univer-pro.collaboration-client-socket-service','/object','error','_tryReconnect','_change$','image/gif','json','APPLY_DUPLICATED','docStateChange$','_commentUpdate$','_transitionLocked','_hideTimer','socket\x20close','_cursorInfo$','_updateLocalCursor','UPDATE_CURSOR','some','title','appendMutation','9563050tqTQYj','defs','socket$','next','UUID','_startTelemetryCollaborationNewChangeset','disableLocalCache','csShouldRetryEvent','forEach','_hover','toLowerCase','close','collabSubmitChangesetUrl','submit\x20changeset\x20error!','ERROR_EXCEED_SIZE','fillStyle','getImageSourceCache','m1Prime','onStateChange','registerHTTPInterceptor','_createInitialState','_getSheetObject','conflict','_substituteUndoStack','_permissionService','onPointerLeave$','_onOffline','_colorAssignService','transform','SYNCED','measureText','collaboratorID','transformMutationsWithChangeset','saveImage','_sheetSkeletonManagerService','/block/','_getAPIPrefix','ws://127.0.0.1:8000/universer-api/comb/connect','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','type','updateOfflineData','[CollaborationSessionService]','size','POST','map','toggleOnline','getAncestorScale','RECV','collab-client.tooltip.reconnect','requireSession','_compressMutationService','_disableEditing','sid','setItem','transformByState','getRandomValues','snapshot','image/jpeg','subscribe','getSheetId','_logService','batchAllowed','replaceState','getWorkbookSelections','unit','complete','addEventListener','_remoteChangesetQueue','collaboration-session-retry','_checkMissing','_getAPIPrefixPath','_pendingMutations','_backgroundColor','contains','onPointerEnter$','split','_unlockTransition','FETCH_MISSING','allowed','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_retryCount','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','length','_setupBeforeClosingHandler','getResourcesRequest','_handleEvent','_members','_notificationService','FAIL','_saveTaskMap','_changesetSessionId','collab-text-range-','skeleton','red300','leaveEvent','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','9nGabVS','deepClone','_type','HttpImport','LOGIN_URL_KEY','setShapeProps','debug','_scheduleTimestamp','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','defineProperty','_socket$','onMissedChangesetFetched','getCurrentSelections','hide','_clearTimeoutTimer','getConfig','lineTo','900378FgWoqY','INVALID_ARGUMENT','_getUndoStack','roles','onTransformIME','4087256gcwKDV','_collaborationPaused','UnitEmbedded','registerOnClose','/universer-api/snapshot/','getActiveRange','getMember','resize','LICENSE_MAX_UNITS_EXCEEDED','patch','_cursorShapes','saveChangeset','session','url(#on-line-single_clip0_910_349)','_univerInstanceService','encode','[CollaborationState]:\x20apply\x20error!','message$','state$','catch','slice','actions','url(#off-line-single_clip0_910_343)','withCredentials','SUCCUSS','startRow','_updateLocalCache','_loadDoc','onSyncEditingCollabCursor','_telemetryInfo','AUTHZ_URL_KEY','find','onRemoteRetry','image/png','syncEditingCollabCursor','_getMergeRange','className','IDLE','_clearHeartbeatTimer','apply','ALREADY_EXISTS','_httpService','RemoveColCommandId','getSheetBlock','_socketReady','_createHandler','newValue','fill','baseRev','_clearOtherTimers','uploadFileServerUrl','LIVESHARE_FETCH_OPERATIONS','_drawRectRange','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','searchParams','_lockTransition','state','_instanceService','status$','\x0aAfter:\x20','selection','_roomMembers$','_fetchMissChangesets','_waitCount','_resendTimeout','origin','getValue','onlineStatusIcon','LEAVE','from','color','_commandService','gold400','univer-online-status-icon','_session','isPermissionRej','_clearScheduledTask','Warning','incrementRevOfUnit','USERS_LEAVE','transformChangesets','JOIN','_drawAnchor','_onUserJoin','create','APPLY_REVISION_CONFILICT','dispose','eventID','retryConnectingInterval','NOT_COLLAB','HEARTBEAT','min','OFFLINE','SNAPSHOT_HAS_BEEN_REMOVED','OnLineSingle','/universer-api/file/{fileID}/sign-url','SNAPSHOT_URL_KEY','_registerDependencies','_send','pauseCollaboration','_localeService','now','getDocRanges','getRenderById','InsertColCommandId','history','range','PSEUDO_FETCH_MISSING_RESULT','getMemberID','not_collab','has','entries','getOwnPropertySymbols','CONFLICT','c1Prime','_render','compose','fetchMissingChangesets','FETCH_MISS','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_schedule','LICENSE_DISTRO_REJECTED','conflict.title','put','attrs','_init','[CollaborationSessionService]:\x20socket\x20error','_sheetTransformSelectionsService','_updateSubUnitFromURLParams','startsWith','_throwTelemetryCollaborationNewChangeset','\x0aCurrent:\x20','collabStatus.offline','revision','updatePermissionPoint','_HTTPService','_renderManagerService','addImageSourceCache','onRendered','getCurrentUser','_initModules','_sendHeartbeat','CHANGESET_SHOULD_RETRY','?size=','UNDEFINED','_config','_substituteRedoStack','_initCommandExecutedListener','unitId','liveShareOperation','key','resend','[DataLoaderController]','fetching\x20missing\x20changesets\x20from\x20','_initMergeInterceptor','changesets','_collabCursorController','getCollabEntity$','_transformIMECache','reverse','univer-pro.collaboration-client.single-active-unit-service','_eventUnsubscribe','UNIVER_COLLABORATION_CLIENT_PLUGIN','objectType','transformSelections','selections','UNIVER_SLIDE','hasOwnProperty','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_getSendChangesetTimeout','popstate','[CollaborationEntity]','registerRefRange','fetch_missing','getVpScrollXYInfoByPosToVp','onCommentUpdate','HEARTBEAT_TIMEOUT','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','pending','visibilitychange','_lastPointer','_saveCache','_onCombEvent','current','_transformSelections','_status$','refreshPermission','_transformPreviousActiveRange','startColumn','update','randomUUID','_getCtorByUniverType','/-/object/-/batch_allowed','_executeRemoteChangeset','result','doc.mutation.rich-text-editing','clear','_onConflict','_onLocalMutation','routeKey','/resources','_sendHeartbeatTimer','onload','_transformRemoteChangesetByIMECache','_onFetchMissResult','with','_candidateSocket','_state','tag','black','_collabSessionService','liveShareNewHost','string','_id','INTERNAL_ERROR','LIVESHARE_REQUEST_HOST','collaboration.closeRoom','isArray','values','fetchThroughInterceptors'];_0x1a52=function(){return _0x36814e;};return _0x1a52();}(function(_0x6f6b9,_0x3e0adf){const _0x344b61=_0x3280,_0x478868=_0x6f6b9();while(!![]){try{const _0xed92e7=-parseInt(_0x344b61(0x15f))/0x1*(parseInt(_0x344b61(0xda))/0x2)+-parseInt(_0x344b61(0x3c5))/0x3+parseInt(_0x344b61(0xfa))/0x4+parseInt(_0x344b61(0x429))/0x5*(parseInt(_0x344b61(0x23d))/0x6)+parseInt(_0x344b61(0x339))/0x7+parseInt(_0x344b61(0x242))/0x8*(parseInt(_0x344b61(0x22c))/0x9)+parseInt(_0x344b61(0x1cc))/0xa;if(_0xed92e7===_0x3e0adf)break;else _0x478868['push'](_0x478868['shift']());}catch(_0x2be545){_0x478868['push'](_0x478868['shift']());}}}(_0x1a52,0xd62f7));var ri=Object[_0x5009fc(0x235)],oi=(_0x4955de,_0x3769ba,_0x57b842)=>_0x3769ba in _0x4955de?ri(_0x4955de,_0x3769ba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57b842}):_0x4955de[_0x3769ba]=_0x57b842,l=(_0x135f14,_0x3425bb,_0x30113a)=>oi(_0x135f14,typeof _0x3425bb!='symbol'?_0x3425bb+'':_0x3425bb,_0x30113a);import{createIdentifier as _0x5c6f0d,Inject as _0x1f955f,Disposable as _0x16541d,DisposableCollection as _0xa23355,toDisposable as _0x2b2e4c,IConfigService as _0x4b96c2,ILogService as _0x5cfe43,UserManagerService as _0x1bc870,UniverInstanceType as _0x53f477,IUniverInstanceService as _0x2d78d8,LocaleService as _0x371029,Optional as _0x25fcfd,RxDisposable as _0x5889a4,Injector as _0x97bef,Tools as _0x548d2b,ILocalStorageService as _0x4fd9ec,Rectangle as _0x3b84dd,ICommandService as _0xfcd33f,JSONX as _0x2aaea2,CommandType as _0x5b3aba,IPermissionService as _0x46a842,IUndoRedoService as _0xf4d2d4,sequenceExecute as _0x45d245,debounce as _0x8d4f93,COLORS as _0x4b7722,ColorKit as _0x9ea147,ThemeService as _0x5d658e,fromEventSubject as _0x482453,useDependency as _0x209420,connectInjector as _0x1fc806,Workbook as _0x497a84,isInternalEditorID as _0x594798,LocalUndoRedoService as _0x27b177,IContextService as _0x1bc6ba,DependentOn as _0x39ac8b,Plugin as _0x5daa5a,touchDependencies as _0x1e9d2e,IAuthzIoService as _0x25d73f,mergeOverrideWithDependencies as _0x1224cf}from'@univerjs/core';import{Subject as _0x379f4,merge as _0x370802,takeUntil as _0x810e9a,BehaviorSubject as _0x3a492f,distinctUntilChanged as _0x1fd0e9,fromEvent as _0x35b99f,ReplaySubject as _0x55b851,take as _0x1825da,map as _0x563f1f,shareReplay as _0x2ee8ad,of as _0x347b80,debounceTime as _0x116225,filter as _0x26b580,switchMap as _0xb54ee,combineLatest as _0x1c0847,concatMap as _0x2f78e1,mapTo as _0x505731}from'rxjs';import{map as _0x13fcf1,take as _0x4e7c24,filter as _0x5d3bcc,delay as _0x271981,throttleTime as _0x4bca90,takeUntil as _0x22831a,switchMap as _0x1b8752}from'rxjs/operators';import{MessageType as _0x3738f0,Tooltip as _0x88e8b3}from'@univerjs/design';import{IBeforeCloseService as _0x548106,IMessageService as _0x40b38a,INotificationService as _0x258190,useObservable as _0x39332a,BuiltInUIPart as _0x40f64a,IUIPartsService as _0x475baa}from'@univerjs/ui';import{HTTPService as _0x3a167c,WebSocketService as _0x4a2775,MergeInterceptorFactory as _0x3d00f0,HTTPRequest as _0x4d0064,IHTTPImplementation as _0x930210,XHRHTTPImplementation as _0x3f6857,ThresholdInterceptorFactory as _0x1d972c}from'@univerjs/network';import{CollaborationEvent as _0x5bf9c6,parseChangesetToProtocol as _0x38bdce,ISnapshotServerService as _0x180893,isTransformMutationFailure as _0x4ee9e9,isTransformMutationsWithChangesetSuccess as _0x110ba3,ITransformService as _0x191396,RevisionService as _0x49adf8,mapDocumentTypeToUniverType as _0x5e774f,isTransformChangesetsSuccess as _0x47a6ae,CompressMutationService as _0x3c64bb,parseProtocolChangeset as _0x3a768d,SnapshotService as _0x234f02,textEncoder as _0x4049ad,b64DecodeUnicode as _0x2a5fc5,isTransformMutationsWithChangesetFailure as _0x4cd7ab,UniverCollaborationPlugin as _0x165c9d}from'@univerjs-pro/collaboration';import{ITelemetryService as _0xfb6e22}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0xa62fc1,DocStateChangeManagerService as _0x381024,NodePositionConvertToCursor as _0x438426,isValidRectRange as _0xa20c,NodePositionConvertToRectRange as _0x20f37d,TEXT_RANGE_LAYER_INDEX as _0x3fab62,SetDocZoomRatioOperation as _0x48d2e7}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x5ced1d,SetSelectionsOperation as _0xbeb346,InsertSheetMutation as _0x22989c,EmptyMutation as _0x6b935d,WorkbookEditablePermission as _0x496922,RefRangeService as _0xfc322f,EffectRefRangId as _0x341f0b,handleIRemoveRow as _0x1a7c1f,handleIRemoveCol as _0x2012a5,handleMoveRange as _0x39ef57,handleInsertRow as _0x1a55df,handleInsertRangeMoveRight as _0x16806d,handleInsertRangeMoveDown as _0xd00542,handleInsertCol as _0x16e24d,handleDeleteRangeMoveUp as _0x8f8669,handleDeleteRangeMoveLeft as _0x5eae21,runRefRangeMutations as _0x43ad00,SetWorksheetActivateCommand as _0x1c03e6}from'@univerjs/sheets';import{IRenderManagerService as _0x7fdfc4,Shape as _0x3656aa,Rect as _0x574b0c,getColor as _0x1aeb73,RegularPolygon as _0x465234,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x3d48ac,Vector2 as _0x240869}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x2af257,RichTextEditingMutation as _0x185416,SetTextSelectionsOperation as _0x28119f,DocSkeletonManagerService as _0x4ef7b1}from'@univerjs/docs';import{ImageSourceType as _0x2f7913,ImageUploadStatusType as _0x13fb43,IImageIoService as _0x2be35a}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x410864,serializeRangeWithSheet as _0xfdce30}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x5e78a,VIEWPORT_KEY as _0x3cbf38,getCoordByCell as _0x5b4d99,getSheetObject as _0x1d7703,SheetPermissionInitController as _0xcd44b3}from'@univerjs/sheets-ui';import _0xcdebad,{forwardRef as _0x4b042d,useRef as _0x12589b,createElement as _0x5d5c63,useCallback as _0x15171f}from'react';import{IRemoteInstanceService as _0x2db9d4}from'@univerjs/rpc';import{getAttachHeader as _0x258e3b}from'@univerjs-pro/license';const In=_0x5009fc(0x19e),En=_0x5009fc(0x332),Cn=_0x5009fc(0x2a2),Ha=_0x5009fc(0x1af),bn=0x7d0,Tn=_0x5009fc(0x359),Rn=_0x5009fc(0x1f1),On='HEARTBEAT_INTERVAL',Dn=0x7530,js=_0x5009fc(0x2f2),Hs=0x4e20,wn=0x4e20,Pn=_0x5009fc(0x34c),yn=0x3,Un='LOCAL_CACHE_INTERVAL',Nn=0x3e8,Mn='COLLAB_SUBMIT_CHANGESET_URL',An=_0x5009fc(0x36b),Ln=_0x5009fc(0x230),$n=_0x5009fc(0x3d5);var xs=(_0x235b1a=>(_0x235b1a[_0x235b1a[_0x5009fc(0x2d2)]=0x0]='UNDEFINED',_0x235b1a[_0x235b1a['OK']=0x1]='OK',_0x235b1a[_0x235b1a[_0x5009fc(0x318)]=0x2]=_0x5009fc(0x318),_0x235b1a[_0x235b1a['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x235b1a[_0x235b1a[_0x5009fc(0x3ef)]=0x4]='NOT_FOUND',_0x235b1a[_0x235b1a[_0x5009fc(0x354)]=0x5]=_0x5009fc(0x354),_0x235b1a[_0x235b1a[_0x5009fc(0x26a)]=0x6]=_0x5009fc(0x26a),_0x235b1a[_0x235b1a[_0x5009fc(0x23e)]=0x7]=_0x5009fc(0x23e),_0x235b1a[_0x235b1a['TOO_MANY_REQUESTS']=0x8]=_0x5009fc(0x36e),_0x235b1a[_0x235b1a[_0x5009fc(0x3df)]=0x9]=_0x5009fc(0x3df),_0x235b1a[_0x235b1a[_0x5009fc(0x357)]=0x1389]=_0x5009fc(0x357),_0x235b1a[_0x235b1a[_0x5009fc(0x35f)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x235b1a[_0x235b1a[_0x5009fc(0x29f)]=0x1772]=_0x5009fc(0x29f),_0x235b1a[_0x235b1a[_0x5009fc(0x3d0)]=0x1773]=_0x5009fc(0x3d0),_0x235b1a[_0x235b1a['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x235b1a[_0x235b1a[_0x5009fc(0x413)]=0x1b5a]=_0x5009fc(0x413),_0x235b1a[_0x235b1a['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x5009fc(0x297),_0x235b1a[_0x235b1a['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x235b1a[_0x235b1a[_0x5009fc(0x1c0)]=0x1b5d]=_0x5009fc(0x1c0),_0x235b1a[_0x235b1a[_0x5009fc(0x415)]=0x1f41]=_0x5009fc(0x415),_0x235b1a[_0x235b1a['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x5009fc(0x24a),_0x235b1a[_0x235b1a[_0x5009fc(0x2f3)]=0x232a]=_0x5009fc(0x2f3),_0x235b1a[_0x235b1a[_0x5009fc(0x141)]=0x232b]=_0x5009fc(0x141),_0x235b1a[_0x235b1a[_0x5009fc(0x3a1)]=0x232c]=_0x5009fc(0x3a1),_0x235b1a[_0x235b1a[_0x5009fc(0x2bb)]=0x232d]=_0x5009fc(0x2bb),_0x235b1a[_0x235b1a['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x235b1a[_0x235b1a['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x5009fc(0x3b9),_0x235b1a[_0x235b1a[_0x5009fc(0x1b4)]=0x2713]=_0x5009fc(0x1b4),_0x235b1a[_0x235b1a['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x5009fc(0x402),_0x235b1a[_0x235b1a[_0x5009fc(0x35e)]=-0x1]=_0x5009fc(0x35e),_0x235b1a))(xs||{}),k=(_0x15a986=>(_0x15a986[_0x15a986['UNIVER_UNKNOWN']=0x0]='UNIVER_UNKNOWN',_0x15a986[_0x15a986['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x15a986[_0x15a986[_0x5009fc(0x33c)]=0x2]=_0x5009fc(0x33c),_0x15a986[_0x15a986[_0x5009fc(0x2e8)]=0x3]=_0x5009fc(0x2e8),_0x15a986[_0x15a986[_0x5009fc(0x1ac)]=0x4]='UNIVER_PROJECT',_0x15a986[_0x15a986[_0x5009fc(0x35e)]=-0x1]='UNRECOGNIZED',_0x15a986))(k||{}),I=(_0x8a93ff=>(_0x8a93ff[_0x8a93ff[_0x5009fc(0x41e)]=0x0]='UNKNOWN_CMD',_0x8a93ff[_0x8a93ff[_0x5009fc(0x3f0)]=0x1]=_0x5009fc(0x3f0),_0x8a93ff[_0x8a93ff[_0x5009fc(0x293)]=0x2]=_0x5009fc(0x293),_0x8a93ff[_0x8a93ff[_0x5009fc(0x286)]=0x3]=_0x5009fc(0x286),_0x8a93ff[_0x8a93ff[_0x5009fc(0x3f2)]=0x4]=_0x5009fc(0x3f2),_0x8a93ff[_0x8a93ff[_0x5009fc(0x29c)]=0x5]=_0x5009fc(0x29c),_0x8a93ff[_0x8a93ff[_0x5009fc(0x1fb)]=0x6]=_0x5009fc(0x1fb),_0x8a93ff[_0x8a93ff[_0x5009fc(0x35e)]=-0x1]='UNRECOGNIZED',_0x8a93ff))(I||{}),Vt=(_0xd9fad7=>(_0xd9fad7[_0xd9fad7[_0x5009fc(0xd8)]=0x0]=_0x5009fc(0xd8),_0xd9fad7[_0xd9fad7['OK']=0x1]='OK',_0xd9fad7[_0xd9fad7[_0x5009fc(0x224)]=0x2]='FAIL',_0xd9fad7[_0xd9fad7['UNRECOGNIZED']=-0x1]=_0x5009fc(0x35e),_0xd9fad7))(Vt||{}),ks=(_0x373f07=>(_0x373f07[_0x373f07[_0x5009fc(0x330)]=0x0]=_0x5009fc(0x330),_0x373f07[_0x373f07['HttpImport']=0x1]=_0x5009fc(0x22f),_0x373f07[_0x373f07[_0x5009fc(0x387)]=0x2]='HttpExport',_0x373f07[_0x373f07['UnitEmbedded']=0x3]=_0x5009fc(0x244),_0x373f07[_0x373f07['UnitSnapshot']=0x4]='UnitSnapshot',_0x373f07[_0x373f07['UNRECOGNIZED']=-0x1]=_0x5009fc(0x35e),_0x373f07))(ks||{});const $=_0x5009fc(0x38e),jn={};function Hn(_0x1cdeb2){const _0x9391bf=_0x5009fc;var _0x25f8d7,_0x28aefd,_0x4d08cf,_0x2a6c99,_0x2309aa;const _0xc85090=_0x1cdeb2[_0x9391bf(0x363)],_0x48e72d=JSON['parse'](_0xc85090);switch(_0x48e72d[_0x9391bf(0x3c7)]){case I[_0x9391bf(0x29c)]:case I[_0x9391bf(0x3f0)]:{const _0x380bda=_0x48e72d[_0x9391bf(0x11d)];return{..._0x48e72d,'data':_0x380bda,'cmd':_0x48e72d[_0x9391bf(0x3c7)]};}case I['JOIN']:{const _0x1bb8c4=_0x48e72d[_0x9391bf(0x198)];return{..._0x48e72d,'data':_0x1bb8c4,'cmd':_0x48e72d[_0x9391bf(0x3c7)]};}case I[_0x9391bf(0x1fb)]:{const _0x5d8982=_0x48e72d['collaMsg'];switch(_0x5d8982[_0x9391bf(0x299)]){case _0x5bf9c6[_0x9391bf(0x12e)]:return{..._0x48e72d,'data':{..._0x5d8982,'data':(_0x25f8d7=_0x5d8982['permissionRejEvent'])==null?void 0x0:_0x25f8d7['cs']},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6[_0x9391bf(0x372)]:return{..._0x48e72d,'data':{..._0x5d8982,'data':(_0x28aefd=_0x5d8982[_0x9391bf(0x3ab)])==null?void 0x0:_0x28aefd['cs']},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6['NEW_CHANGESETS']:return{..._0x48e72d,'data':{..._0x5d8982,'data':(_0x4d08cf=_0x5d8982[_0x9391bf(0x3b6)])==null?void 0x0:_0x4d08cf['cs']},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6['CHANGESET_REJ']:return{..._0x48e72d,'data':{..._0x5d8982,'data':(_0x2a6c99=_0x5d8982[_0x9391bf(0xec)])==null?void 0x0:_0x2a6c99['cs']},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6['CHANGESET_SHOULD_RETRY']:return{..._0x48e72d,'data':{..._0x5d8982,'data':(_0x2309aa=_0x5d8982[_0x9391bf(0x1d3)])==null?void 0x0:_0x2309aa['cs']},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6[_0x9391bf(0x1c8)]:return{..._0x48e72d,'data':{..._0x5d8982,'data':_0x5d8982[_0x9391bf(0x1ab)]},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6[_0x9391bf(0x368)]:return{..._0x48e72d,'data':{..._0x5d8982,'data':_0x5d8982[_0x9391bf(0xdc)]},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6[_0x9391bf(0x291)]:return{..._0x48e72d,'data':{..._0x5d8982,'data':_0x5d8982[_0x9391bf(0x22a)]},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6['LIVESHARE_NEW_HOST']:return{..._0x48e72d,'data':{..._0x5d8982,'data':_0x5d8982[_0x9391bf(0x315)]},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6[_0x9391bf(0x275)]:case _0x5bf9c6['LIVESHARE_OPERATION']:return{..._0x48e72d,'data':{..._0x5d8982,'data':_0x5d8982[_0x9391bf(0x2d7)]},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6['LIVESHARE_TERMINATE']:return{..._0x48e72d,'data':{..._0x5d8982,'data':_0x5d8982[_0x9391bf(0x315)]},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6[_0x9391bf(0x399)]:return{..._0x48e72d,'data':_0x5d8982,'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6[_0x9391bf(0x3e1)]:return{..._0x48e72d,'data':{..._0x5d8982,'data':_0x5d8982[_0x9391bf(0x37a)]},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6[_0x9391bf(0x10a)]:return{..._0x48e72d,'data':{..._0x5d8982,'data':_0x5d8982[_0x9391bf(0xe9)]},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6[_0x9391bf(0x37c)]:return{..._0x48e72d,'data':{..._0x5d8982,'data':_0x5d8982[_0x9391bf(0x3f9)]},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};default:return _0x48e72d;}}default:return _0x48e72d;}}function xn(_0x261390){const _0x5c8c10=_0x5009fc;switch(_0x261390['cmd']){case I[_0x5c8c10(0x29c)]:case I[_0x5c8c10(0x3f0)]:return JSON[_0x5c8c10(0x33b)]({'cmd':_0x261390[_0x5c8c10(0x3c7)],'routeKey':_0x261390[_0x5c8c10(0x309)]});case I[_0x5c8c10(0x3f2)]:{let _0x168f21;switch(_0x261390[_0x5c8c10(0x363)][_0x5c8c10(0x299)]){case _0x5bf9c6[_0x5c8c10(0x1c8)]:{_0x168f21={'eventID':_0x5bf9c6['UPDATE_CURSOR'],'updateCursorEvent':_0x261390[_0x5c8c10(0x363)][_0x5c8c10(0x363)]};break;}case _0x5bf9c6['USERS_LEAVE']:{_0x168f21={'eventID':_0x5bf9c6[_0x5c8c10(0x291)],'leaveEvent':_0x261390[_0x5c8c10(0x363)][_0x5c8c10(0x363)]};break;}case _0x5bf9c6['USERS_ENTER']:{_0x168f21={'eventID':_0x5bf9c6[_0x5c8c10(0x368)],'joinEvent':_0x261390['data'][_0x5c8c10(0x363)]};break;}case _0x5bf9c6[_0x5c8c10(0x192)]:{_0x168f21={'eventID':_0x5bf9c6['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x261390['data'][_0x5c8c10(0x363)]};break;}case _0x5bf9c6[_0x5c8c10(0x123)]:{_0x168f21={'eventID':_0x5bf9c6['LIVESHARE_OPERATION'],'liveShareOperation':_0x261390[_0x5c8c10(0x363)]['data']};break;}case _0x5bf9c6[_0x5c8c10(0xe2)]:{_0x168f21={'eventID':_0x5bf9c6[_0x5c8c10(0xe2)],'liveShareTerminate':_0x261390[_0x5c8c10(0x363)][_0x5c8c10(0x363)]};break;}case _0x5bf9c6['LIVESHARE_REQUEST_HOST']:{_0x168f21={'eventID':_0x5bf9c6[_0x5c8c10(0x319)],'liveShareRequestHost':_0x261390[_0x5c8c10(0x363)][_0x5c8c10(0x363)]};break;}case _0x5bf9c6[_0x5c8c10(0x275)]:{_0x168f21={'eventID':_0x5bf9c6[_0x5c8c10(0x275)]};break;}default:_0x168f21={'eventID':_0x261390[_0x5c8c10(0x363)][_0x5c8c10(0x299)]};}return JSON[_0x5c8c10(0x33b)]({'cmd':_0x261390[_0x5c8c10(0x3c7)],'routeKey':_0x261390['routeKey'],'collaMsg':_0x168f21});}case I[_0x5c8c10(0x293)]:return JSON[_0x5c8c10(0x33b)]({'cmd':_0x261390[_0x5c8c10(0x3c7)],'routeKey':_0x261390[_0x5c8c10(0x309)],'joinReq':_0x261390['data']});case I[_0x5c8c10(0x286)]:return JSON[_0x5c8c10(0x33b)]({'cmd':_0x261390[_0x5c8c10(0x3c7)],'routeKey':_0x261390[_0x5c8c10(0x309)],'leaveReq':_0x261390[_0x5c8c10(0x363)]});default:throw new Error(_0x5c8c10(0x105));}}var kn=Object[_0x5009fc(0x235)],Bn=Object[_0x5009fc(0x327)],Vn=(_0x10a99e,_0x326232,_0x3131fe,_0x4dfac6)=>{const _0x1ec77f=_0x5009fc;for(var _0x13da6c=_0x4dfac6>0x1?void 0x0:_0x4dfac6?Bn(_0x326232,_0x3131fe):_0x326232,_0x4db153=_0x10a99e[_0x1ec77f(0x21e)]-0x1,_0x2390f5;_0x4db153>=0x0;_0x4db153--)(_0x2390f5=_0x10a99e[_0x4db153])&&(_0x13da6c=(_0x4dfac6?_0x2390f5(_0x326232,_0x3131fe,_0x13da6c):_0x2390f5(_0x13da6c))||_0x13da6c);return _0x4dfac6&&_0x13da6c&&kn(_0x326232,_0x3131fe,_0x13da6c),_0x13da6c;},Oe=(_0x52cad4,_0x2179fc)=>(_0x1945f6,_0x39908a)=>_0x2179fc(_0x1945f6,_0x39908a,_0x52cad4);const Bs=_0x5c6f0d(_0x5009fc(0x1b9));function Fn(_0x5cff63,_0x1af451,_0x254f3d){const _0xa33291=_0x5009fc;return _0x5cff63+'/'+_0x1af451+_0xa33291(0x11e)+_0x254f3d+_0xa33291(0x150);}let Ct=class extends _0x16541d{constructor(_0x3e5f4f,_0x54e6e6,_0x223060,_0x22e9b3,_0x301b30){const _0x4ee8a8=_0x5009fc;super(),this['_http']=_0x3e5f4f,this[_0x4ee8a8(0xff)]=_0x54e6e6,this[_0x4ee8a8(0x361)]=_0x223060,this[_0x4ee8a8(0x208)]=_0x22e9b3,this[_0x4ee8a8(0x33a)]=_0x301b30;}['createSocket'](_0x3daf46){const _0x595d29=_0x5009fc,_0x38f70d=this[_0x595d29(0xff)]['createSocket'](_0x3daf46);if(!_0x38f70d)throw new Error(_0x595d29(0x1a2));const _0x2b7c81=new _0xa23355(),_0x25ce63=new _0x379f4();_0x2b7c81[_0x595d29(0x3ea)](_0x38f70d['close$'][_0x595d29(0x206)](_0x1303fc=>_0x25ce63['next'](_0x1303fc))),_0x2b7c81[_0x595d29(0x3ea)](_0x2b2e4c(()=>_0x25ce63['complete']()));const _0x279c1f=new _0x379f4();_0x2b7c81[_0x595d29(0x3ea)](_0x38f70d['error$'][_0x595d29(0x206)](_0x3bc758=>_0x279c1f[_0x595d29(0x1cf)](_0x3bc758))),_0x2b7c81[_0x595d29(0x3ea)](_0x2b2e4c(()=>_0x279c1f['complete']()));const _0x52199f=new _0x379f4();_0x2b7c81['add'](_0x38f70d[_0x595d29(0x253)]['subscribe'](_0x1d18fe=>{const _0x1900e5=Hn(_0x1d18fe);_0x52199f['next'](_0x1900e5);})),_0x2b7c81[_0x595d29(0x3ea)](_0x2b2e4c(()=>_0x52199f[_0x595d29(0x20d)]()));let _0x23be85;const _0xb06145=()=>{const _0x305dd2=_0x595d29;_0x279c1f[_0x305dd2(0x1cf)](new Event(_0x305dd2(0x102))),_0x25ce63[_0x305dd2(0x1cf)](new CloseEvent(_0x305dd2(0x102))),_0x23be85['close']();};return _0x23be85={'memberID':'','close$':_0x25ce63['asObservable'](),'error$':_0x279c1f[_0x595d29(0x396)](),'open$':_0x38f70d[_0x595d29(0x390)],'message$':_0x52199f['asObservable'](),'send':_0x98553e=>{const _0x465542=_0x595d29;if(_0x98553e[_0x465542(0x3c7)]===I[_0x465542(0x3f2)]){if(_0x98553e[_0x465542(0x363)][_0x465542(0x299)]===_0x5bf9c6[_0x465542(0x389)]){this[_0x465542(0x43e)](_0x23be85,_0x98553e[_0x465542(0x363)])['catch'](_0x4a90aa=>{const _0x4144d2=_0x465542;this[_0x4144d2(0x208)]['error'](_0x4a90aa),_0xb06145();});return;}if(_0x98553e[_0x465542(0x363)][_0x465542(0x299)]===_0x5bf9c6[_0x465542(0x219)]){const _0xfa5296=_0x98553e[_0x465542(0x363)];this[_0x465542(0x280)](_0xfa5296)[_0x465542(0x367)](_0x2e7f8d=>{const _0x172e3a=_0x465542;_0x52199f[_0x172e3a(0x1cf)]({'cmd':I[_0x172e3a(0x1fb)],'code':Vt['OK'],'routeKey':_0xfa5296[_0x172e3a(0x363)][_0x172e3a(0x187)],'routeType':'','data':{'eventID':_0x5bf9c6[_0x172e3a(0x2ad)],'data':{'changesets':_0x2e7f8d}}});})[_0x465542(0x255)](_0xc53653=>{const _0xcb0503=_0x465542;this[_0xcb0503(0x208)][_0xcb0503(0x1bb)](_0xc53653),_0xb06145();});return;}}_0x38f70d[_0x465542(0x3ca)](xn(_0x98553e));},'close':()=>{const _0x4c7989=_0x595d29;_0x38f70d[_0x4c7989(0x1d7)](),_0x2b7c81[_0x4c7989(0x298)]();}},_0x23be85;}async[_0x5009fc(0x43e)](_0x2a98f4,_0xa3db37){const _0x34f5d8=_0x5009fc;var _0x4446dc,_0x46d424;const {unitType:_0x32a292,unitID:_0x330ba8,changeset:_0x29ac10}=_0xa3db37[_0x34f5d8(0x363)],_0x5121a4={'unitID':_0x330ba8,'memberID':_0x2a98f4[_0x34f5d8(0x347)],'type':_0x32a292,'changeset':_0x38bdce(_0x29ac10)},_0x5d0393=this['_configService'][_0x34f5d8(0x23b)](Mn),_0x3ecf6c=this[_0x34f5d8(0x361)][_0x34f5d8(0x23b)]($),_0x3aa9d2=Fn((_0x46d424=(_0x4446dc=_0x3ecf6c==null?void 0x0:_0x3ecf6c[_0x34f5d8(0x1d8)])!=null?_0x4446dc:_0x5d0393)!=null?_0x46d424:An,_0x32a292,_0x330ba8);try{await this[_0x34f5d8(0x436)]['post'](_0x3aa9d2,{'body':_0x5121a4});}catch(_0x30ee3f){throw this[_0x34f5d8(0x208)][_0x34f5d8(0x1bb)](_0x34f5d8(0x3b1),_0x34f5d8(0x1d9)),_0x30ee3f;}}async[_0x5009fc(0x280)](_0x55a6f0){const _0x348b10=_0x5009fc,{unitID:_0x2dc1ad,from:_0x298734,to:_0x179b02,unitType:_0x226404}=_0x55a6f0[_0x348b10(0x363)];return(await this[_0x348b10(0x33a)][_0x348b10(0x2b7)]({'metadata':void 0x0},{'unitID':_0x2dc1ad,'type':_0x226404,'from':_0x298734,'to':_0x179b02}))['changesets'];}};Ct=Vn([Oe(0x0,_0x1f955f(_0x3a167c)),Oe(0x1,_0x1f955f(_0x4a2775)),Oe(0x2,_0x4b96c2),Oe(0x3,_0x5cfe43),Oe(0x4,_0x180893)],Ct);const Wn=_0x5009fc(0x3bc);function Gn(_0x3d4715){const _0x3b06aa=_0x5009fc;return JSON['stringify'](_0x3d4715)[_0x3b06aa(0x21e)];}class Vs{constructor(){const _0xb82c3a=_0x5009fc;l(this,_0xb82c3a(0x1c2),new _0x379f4()),l(this,_0xb82c3a(0x356),this['_commentUpdate$']['asObservable']());}[_0x5009fc(0x2f1)](_0x4361a7){const _0x1fd99e=_0x5009fc;this[_0x1fd99e(0x1c2)]['next'](_0x4361a7);}}var Yn=Object[_0x5009fc(0x235)],Kn=Object[_0x5009fc(0x327)],Xn=(_0x17874c,_0x2213fd,_0x119c4f,_0x437358)=>{const _0x5a365c=_0x5009fc;for(var _0x4d1de1=_0x437358>0x1?void 0x0:_0x437358?Kn(_0x2213fd,_0x119c4f):_0x2213fd,_0x449400=_0x17874c[_0x5a365c(0x21e)]-0x1,_0x151383;_0x449400>=0x0;_0x449400--)(_0x151383=_0x17874c[_0x449400])&&(_0x4d1de1=(_0x437358?_0x151383(_0x2213fd,_0x119c4f,_0x4d1de1):_0x151383(_0x4d1de1))||_0x4d1de1);return _0x437358&&_0x4d1de1&&Yn(_0x2213fd,_0x119c4f,_0x4d1de1),_0x4d1de1;},as=(_0x33dd1b,_0xa8d5cd)=>(_0x53c5b5,_0x27aa21)=>_0xa8d5cd(_0x53c5b5,_0x27aa21,_0x33dd1b);let ce=class extends _0x16541d{constructor(_0x3056e6,_0x5e9984){const _0x3098e1=_0x5009fc;super(),l(this,_0x3098e1(0x41c),new Map()),(this[_0x3098e1(0x250)]=_0x3056e6,this[_0x3098e1(0x35b)]=_0x5e9984,this['disposeWithMe'](_0x2b2e4c(_0x370802(this[_0x3098e1(0x250)][_0x3098e1(0xf0)](_0x53f477[_0x3098e1(0x33c)])['pipe'](_0x13fcf1(_0x464ea2=>_0x464ea2[_0x3098e1(0x147)]())),this[_0x3098e1(0x250)][_0x3098e1(0xf0)](_0x53f477[_0x3098e1(0x36f)])[_0x3098e1(0x44f)](_0x13fcf1(_0x3fc812=>_0x3fc812[_0x3098e1(0x147)]())),this[_0x3098e1(0x250)][_0x3098e1(0xf0)](_0x53f477[_0x3098e1(0x2e8)])['pipe'](_0x13fcf1(_0x52adac=>_0x52adac[_0x3098e1(0x147)]())))[_0x3098e1(0x206)](_0x4835fb=>this[_0x3098e1(0x3ae)](_0x4835fb)))));}[_0x5009fc(0x365)](_0x4ae5ee){this['_userManagerService']['setCurrentUser'](_0x4ae5ee);}['getCurrentUser'](){const _0x111afd=_0x5009fc;return this[_0x111afd(0x35b)]['getCurrentUser']();}['updateMember'](_0x5cd23b,_0x4fc732){const _0x4f6baf=_0x5009fc;let _0x347e70=this[_0x4f6baf(0x41c)]['get'](_0x5cd23b);_0x347e70||(_0x347e70=new qn(),this[_0x4f6baf(0x41c)]['set'](_0x5cd23b,_0x347e70)),_0x347e70['updateMember'](_0x4fc732);}[_0x5009fc(0x13c)](_0x4ab3a8,_0x15367e){const _0x21f419=_0x5009fc,_0x321588=this[_0x21f419(0x41c)][_0x21f419(0x381)](_0x4ab3a8);_0x321588&&_0x321588[_0x21f419(0x13c)](_0x15367e);}[_0x5009fc(0x329)](_0x5ef6f9){const _0x5df090=_0x5009fc;return this['_roomMembers'][_0x5df090(0x381)](_0x5ef6f9);}[_0x5009fc(0x248)](_0x56f41e,_0x23cd86){const _0x4c992e=_0x5009fc,_0x42bb09=this[_0x4c992e(0x41c)][_0x4c992e(0x381)](_0x56f41e);if(_0x42bb09)return _0x42bb09[_0x4c992e(0x248)](_0x23cd86);}[_0x5009fc(0x3ae)](_0xf1db59){const _0x1be1e4=_0x5009fc,_0x1731e4=this[_0x1be1e4(0x41c)][_0x1be1e4(0x381)](_0xf1db59);_0x1731e4&&(_0x1731e4[_0x1be1e4(0x298)](),this[_0x1be1e4(0x41c)][_0x1be1e4(0x184)](_0xf1db59));}[_0x5009fc(0x298)](){const _0x25b1d5=_0x5009fc;this[_0x25b1d5(0x41c)][_0x25b1d5(0x1d4)](_0xac9d9a=>_0xac9d9a[_0x25b1d5(0x298)]()),this[_0x25b1d5(0x41c)][_0x25b1d5(0x306)]();}};ce=Xn([as(0x0,_0x2d78d8),as(0x1,_0x1f955f(_0x1bc870))],ce);class qn extends _0x16541d{constructor(){const _0x287764=_0x5009fc;super(...arguments),l(this,_0x287764(0x222),new Map());}[_0x5009fc(0x298)](){const _0xd19605=_0x5009fc;this['_members'][_0xd19605(0x306)]();}[_0x5009fc(0x3ec)](_0x1cf7ba){const _0x2f291e=_0x5009fc;this['_members'][_0x2f291e(0x411)](_0x1cf7ba[_0x2f291e(0x347)],_0x1cf7ba);}['removeMember'](_0x449516){const _0x990104=_0x5009fc;this['_members'][_0x990104(0x184)](_0x449516);}[_0x5009fc(0x248)](_0x140166){const _0x2d9c43=_0x5009fc;return this[_0x2d9c43(0x222)][_0x2d9c43(0x381)](_0x140166);}}var Jn=Object[_0x5009fc(0x235)],zn=Object[_0x5009fc(0x327)],Zn=(_0x53f10c,_0x52e5b8,_0x4bad1a,_0x46c0e0)=>{const _0x23d3f8=_0x5009fc;for(var _0x20b269=_0x46c0e0>0x1?void 0x0:_0x46c0e0?zn(_0x52e5b8,_0x4bad1a):_0x52e5b8,_0x3252a3=_0x53f10c[_0x23d3f8(0x21e)]-0x1,_0x52bc53;_0x3252a3>=0x0;_0x3252a3--)(_0x52bc53=_0x53f10c[_0x3252a3])&&(_0x20b269=(_0x46c0e0?_0x52bc53(_0x52e5b8,_0x4bad1a,_0x20b269):_0x52bc53(_0x20b269))||_0x20b269);return _0x46c0e0&&_0x20b269&&Jn(_0x52e5b8,_0x4bad1a,_0x20b269),_0x20b269;},J=(_0x4fc121,_0x50eb70)=>(_0xbb97c3,_0x1d0698)=>_0x50eb70(_0xbb97c3,_0x1d0698,_0x4fc121),Y=(_0x4b5a82=>(_0x4b5a82[_0x4b5a82[_0x5009fc(0x267)]=0x0]=_0x5009fc(0x267),_0x4b5a82[_0x4b5a82[_0x5009fc(0x420)]=0x1]=_0x5009fc(0x420),_0x4b5a82[_0x4b5a82['OFFLINE']=0x2]=_0x5009fc(0x29e),_0x4b5a82[_0x4b5a82[_0x5009fc(0x16c)]=0x3]=_0x5009fc(0x16c),_0x4b5a82))(Y||{});let bt=class extends _0x5889a4{constructor(_0x21469a,_0x3658c8,_0x3be128,_0x4eaa16,_0x54c7af,_0x38dabf,_0x55c5a0,_0x125593,_0x40d78d,_0x49d7e3){const _0x3d5515=_0x5009fc;super(),l(this,_0x3d5515(0x37e),new _0x3a492f(0x0)),l(this,'sessionStatus$',this[_0x3d5515(0x37e)][_0x3d5515(0x396)]()),l(this,_0x3d5515(0x37d),new _0x379f4()),l(this,_0x3d5515(0x427),this[_0x3d5515(0x37d)][_0x3d5515(0x396)]()),l(this,_0x3d5515(0x321)),l(this,'_socketMessageSubscription'),l(this,'_collaborationTimeoutTimer'),l(this,_0x3d5515(0x370),!0x1),l(this,_0x3d5515(0x25f),null),(this[_0x3d5515(0x3db)]=_0x21469a,this[_0x3d5515(0x208)]=_0x3be128,this['_beforeCloseService']=_0x4eaa16,this[_0x3d5515(0x104)]=_0x54c7af,this[_0x3d5515(0x361)]=_0x38dabf,this['_localeService']=_0x55c5a0,this['_memberService']=_0x125593,this[_0x3d5515(0x188)]=_0x40d78d,this[_0x3d5515(0x14c)]=_0x49d7e3,this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x3658c8['pipe'](_0x810e9a(this[_0x3d5515(0x35c)]))[_0x3d5515(0x206)](_0x2cf4ed=>{const _0x15d92e=_0x3d5515;var _0x39411d;typeof _0x2cf4ed>'u'||(this['_socket']=_0x2cf4ed,_0x2cf4ed?(this['_joinRoom'](_0x2cf4ed),this[_0x15d92e(0x12a)]=_0x2cf4ed[_0x15d92e(0x253)][_0x15d92e(0x206)](_0x536530=>{const _0x1cbb00=_0x15d92e;_0x536530[_0x1cbb00(0x309)]===this['_unitID']&&this[_0x1cbb00(0x2f8)](_0x536530);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x15d92e(0x37e)][_0x15d92e(0x1cf)](0x2),(_0x39411d=this[_0x15d92e(0x12a)])==null||_0x39411d[_0x15d92e(0x32a)](),this[_0x15d92e(0x12a)]=null));}),this[_0x3d5515(0x341)](this[_0x3d5515(0x39f)][_0x3d5515(0x245)](()=>{const _0x4d2d82=_0x3d5515;var _0x2275fa;(_0x2275fa=this[_0x4d2d82(0x321)])==null||_0x2275fa[_0x4d2d82(0x3ca)]({'cmd':I[_0x4d2d82(0x286)],'data':{'roomID':this[_0x4d2d82(0x3db)]}});})));}get[_0x5009fc(0x19d)](){const _0x34a48b=_0x5009fc;return this[_0x34a48b(0x37e)][_0x34a48b(0x284)]();}[_0x5009fc(0x2ae)](){const _0x33ce90=_0x5009fc;var _0x13861a,_0x3ea519;return(_0x3ea519=(_0x13861a=this['_socket'])==null?void 0x0:_0x13861a[_0x33ce90(0x347)])!=null?_0x3ea519:null;}[_0x5009fc(0x298)](){const _0x2dc99b=_0x5009fc;super['dispose'](),this['dispose$'][_0x2dc99b(0x1cf)](),this[_0x2dc99b(0x35c)][_0x2dc99b(0x20d)]();}[_0x5009fc(0x1d7)](){const _0x39ca8e=_0x5009fc;var _0x5d09a3,_0x424cca;this['_throwTelemetryCollaborationNewChangeset'](),(_0x5d09a3=this[_0x39ca8e(0x321)])==null||_0x5d09a3[_0x39ca8e(0x3ca)]({'cmd':I[_0x39ca8e(0x286)],'data':{'roomID':this['_unitID']}}),(_0x424cca=this['_socket'])==null||_0x424cca[_0x39ca8e(0x1d7)](),this[_0x39ca8e(0x37d)]['complete'](),this[_0x39ca8e(0x37e)][_0x39ca8e(0x20d)](),this[_0x39ca8e(0x298)]();}[_0x5009fc(0x2f8)](_0x228461){const _0x2151fb=_0x5009fc;_0x228461[_0x2151fb(0x3c7)]===I[_0x2151fb(0x293)]?this[_0x2151fb(0x177)](_0x228461):_0x228461[_0x2151fb(0x3c7)]===I['RECV']&&this['_onRecvEvent'](_0x228461);}['_joinRoom'](_0x36bba1){const _0x56d616=_0x5009fc;this['_sessionStatus$']['next'](0x1),_0x36bba1['send']({'cmd':I['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x56d616(0x3db)]}]}});}[_0x5009fc(0x177)](_0x1bdf61){const _0x3fff85=_0x5009fc;var _0x56d7e5;if(_0x1bdf61[_0x3fff85(0x3ed)]===Vt[_0x3fff85(0x224)]){this['_messageService'][_0x3fff85(0xf7)]({'type':_0x3738f0[_0x3fff85(0x28f)],'content':this[_0x3fff85(0x2a6)]['t'](_0x3fff85(0x42b))}),this[_0x3fff85(0x37e)]['next'](0x2);return;}this['_sessionStatus$'][_0x3fff85(0x1cf)](0x3);const _0x2fd208=(_0x56d7e5=_0x1bdf61['data']['roomInfos'][this[_0x3fff85(0x3db)]])==null?void 0x0:_0x56d7e5[_0x3fff85(0x40e)];_0x2fd208&&_0x2fd208[_0x3fff85(0x1d4)](_0x3d06b9=>this[_0x3fff85(0x40a)][_0x3fff85(0x3ec)](this[_0x3fff85(0x3db)],_0x3d06b9));}[_0x5009fc(0x3f8)](_0x3879ad){const _0x27f499=_0x5009fc;try{const _0x32b9e2=_0x3879ad[_0x27f499(0x363)];switch(_0x32b9e2[_0x27f499(0x299)]){case _0x5bf9c6['USERS_ENTER']:this[_0x27f499(0x295)](_0x32b9e2),this['_event$'][_0x27f499(0x1cf)](_0x32b9e2);break;case _0x5bf9c6[_0x27f499(0x291)]:this[_0x27f499(0x3c2)](_0x32b9e2),this['_event$']['next'](_0x32b9e2);break;case _0x5bf9c6[_0x27f499(0x372)]:case _0x5bf9c6[_0x27f499(0x2d0)]:this[_0x27f499(0x438)](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x27f499(0x1cf)](_0x32b9e2);break;case _0x5bf9c6['MSG_FOR_ERROR']:this[_0x27f499(0x208)][_0x27f499(0x1bb)](_0x27f499(0x1a0)+JSON[_0x27f499(0x33b)](_0x32b9e2)),this[_0x27f499(0x37d)][_0x27f499(0x1cf)](_0x32b9e2);break;case _0x5bf9c6[_0x27f499(0x3e1)]:this[_0x27f499(0x188)]['onCommentUpdate'](_0x32b9e2[_0x27f499(0x363)]),this[_0x27f499(0x37d)][_0x27f499(0x1cf)](_0x32b9e2);break;default:this['_event$'][_0x27f499(0x1cf)](_0x32b9e2);}}catch(_0x2f18de){this[_0x27f499(0x208)]['error'](_0x2f18de,_0x3879ad);}}[_0x5009fc(0x295)](_0x1616da){const _0xe2cabb=_0x5009fc;this[_0xe2cabb(0x40a)]['updateMember'](this['_unitID'],_0x1616da['data']);}[_0x5009fc(0x3c2)](_0x41e110){const _0x4c6b19=_0x5009fc;this[_0x4c6b19(0x40a)][_0x4c6b19(0x13c)](this['_unitID'],_0x41e110[_0x4c6b19(0x363)][_0x4c6b19(0x347)]);}async[_0x5009fc(0x3ca)](_0x447271,_0x4f60b8){const _0x1a3a71=_0x5009fc;if(this['sessionStatus']!==0x3||!this[_0x1a3a71(0x321)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x447271[_0x1a3a71(0x299)]===_0x5bf9c6[_0x1a3a71(0x389)]&&(this[_0x1a3a71(0x3af)](),this[_0x1a3a71(0x1d1)](_0x447271)),this['_socket'][_0x1a3a71(0x3ca)]({'cmd':I[_0x1a3a71(0x3f2)],'routeKey':_0x4f60b8,'routeType':'','data':_0x447271});}catch(_0x567b24){this[_0x1a3a71(0x208)][_0x1a3a71(0x1bb)](_0x567b24);}}['_scheduleCollaborationTimeoutTimer'](){const _0x3808db=_0x5009fc;var _0x1ff012;this[_0x3808db(0x3a3)]=window[_0x3808db(0x13f)](()=>{const _0x5b3e90=_0x3808db;this[_0x5b3e90(0x3a3)]=null,this[_0x5b3e90(0x104)][_0x5b3e90(0xf7)]({'type':_0x3738f0['Error'],'content':this['_localeService']['t'](_0x5b3e90(0x39a))});},(_0x1ff012=this['_configService']['getConfig'](js))!=null?_0x1ff012:Hs);}[_0x5009fc(0x116)](){const _0x4255aa=_0x5009fc;this[_0x4255aa(0x3a3)]&&(clearTimeout(this[_0x4255aa(0x3a3)]),this[_0x4255aa(0x3a3)]=null);}[_0x5009fc(0x1d1)](_0x1fc19e){const _0x52b45e=_0x5009fc;if(!this[_0x52b45e(0x370)])return;const {data:_0x514c2c}=_0x1fc19e,{unitID:_0x221202,changeset:_0x4d2d62}=_0x514c2c,{mutations:_0x1ab52d,type:_0x285e78}=_0x4d2d62;this['_telemetryInfo']={'unitId':_0x221202,'type':_0x285e78,'startTime':performance[_0x52b45e(0x2a7)](),'stopTime':0x0,'duration':0x0,'size':Gn(_0x1ab52d)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x279496=_0x5009fc;if(this[_0x279496(0x370)]){if(!this['_telemetryInfo']){this[_0x279496(0x208)][_0x279496(0x1bb)](_0x279496(0x3b1),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x279496(0x25f)][_0x279496(0xf2)]=performance[_0x279496(0x2a7)](),this[_0x279496(0x25f)]['duration']=this[_0x279496(0x25f)][_0x279496(0xf2)]-this['_telemetryInfo']['startTime'],this[_0x279496(0x14c)][_0x279496(0x322)](Wn,this[_0x279496(0x25f)]),this['_telemetryInfo']=null;}}[_0x5009fc(0x2c4)](){this['_telemetryInfo']=null;}};bt=Zn([J(0x2,_0x5cfe43),J(0x3,_0x548106),J(0x4,_0x40b38a),J(0x5,_0x4b96c2),J(0x6,_0x1f955f(_0x371029)),J(0x7,_0x1f955f(ce)),J(0x8,_0x1f955f(Vs)),J(0x9,_0x25fcfd(_0xfb6e22))],bt);var Qn=Object[_0x5009fc(0x235)],er=Object[_0x5009fc(0x327)],tr=(_0x5872cd,_0x55a817,_0x46b3a4,_0x84fc75)=>{const _0x27b4dd=_0x5009fc;for(var _0x129a04=_0x84fc75>0x1?void 0x0:_0x84fc75?er(_0x55a817,_0x46b3a4):_0x55a817,_0x257b8e=_0x5872cd[_0x27b4dd(0x21e)]-0x1,_0x2ccba6;_0x257b8e>=0x0;_0x257b8e--)(_0x2ccba6=_0x5872cd[_0x257b8e])&&(_0x129a04=(_0x84fc75?_0x2ccba6(_0x55a817,_0x46b3a4,_0x129a04):_0x2ccba6(_0x129a04))||_0x129a04);return _0x84fc75&&_0x129a04&&Qn(_0x55a817,_0x46b3a4,_0x129a04),_0x129a04;},me=(_0x493420,_0x5a53f6)=>(_0x5e4159,_0x181274)=>_0x5a53f6(_0x5e4159,_0x181274,_0x493420);let he=class extends _0x16541d{constructor(_0x507fc1,_0x426159,_0xc88ab7,_0x1e48a7,_0x2a5964,_0x2a567c){const _0x5689d9=_0x5009fc;super(),l(this,_0x5689d9(0x236),new _0x3a492f(void 0x0)),l(this,_0x5689d9(0x1ce),this[_0x5689d9(0x236)][_0x5689d9(0x396)]()),l(this,'_candidateSocket',null),l(this,'_sessions',new Map()),l(this,_0x5689d9(0x2fb),new _0x3a492f(Y[_0x5689d9(0x267)])),l(this,_0x5689d9(0x27c),this['_status$'][_0x5689d9(0x396)]()),l(this,_0x5689d9(0x26e),!0x1),l(this,_0x5689d9(0x16d)),l(this,_0x5689d9(0x21c),0x0),l(this,_0x5689d9(0x30b)),l(this,'_timeoutTimer'),(this[_0x5689d9(0x448)]=_0x507fc1,this[_0x5689d9(0x2a6)]=_0x426159,this[_0x5689d9(0x104)]=_0xc88ab7,this[_0x5689d9(0x208)]=_0x1e48a7,this[_0x5689d9(0x361)]=_0x2a5964,this[_0x5689d9(0x18d)]=_0x2a567c,this[_0x5689d9(0xea)]());}get[_0x5009fc(0x321)](){const _0x4c7e54=_0x5009fc;return this['_socket$'][_0x4c7e54(0x284)]();}[_0x5009fc(0xea)](){const _0xcd791d=_0x5009fc;this[_0xcd791d(0x159)](),this['_listenToOnlineEvent']();}[_0x5009fc(0x298)](){const _0x1fc1d4=_0x5009fc;super[_0x1fc1d4(0x298)](),this[_0x1fc1d4(0x14e)]['forEach'](_0x279dd2=>_0x279dd2[_0x1fc1d4(0x298)]()),this[_0x1fc1d4(0x14e)][_0x1fc1d4(0x306)](),this[_0x1fc1d4(0x2fb)]['complete']();}async[_0x5009fc(0x1fd)](_0x30cd82){const _0x318444=_0x5009fc;if(this[_0x318444(0x14e)]['has'](_0x30cd82))return this[_0x318444(0x14e)][_0x318444(0x381)](_0x30cd82);this[_0x318444(0x441)]();const _0x3df9f9=this[_0x318444(0x448)]['createInstance'](bt,_0x30cd82,this['_socket$'][_0x318444(0x396)]());return this[_0x318444(0x14e)][_0x318444(0x411)](_0x30cd82,_0x3df9f9),_0x3df9f9;}['closeSession'](_0x2f6f5d){const _0x1bf236=_0x5009fc;var _0x172064;const _0x875bd3=this[_0x1bf236(0x14e)][_0x1bf236(0x381)](_0x2f6f5d);_0x875bd3&&(this['_sessions'][_0x1bf236(0x184)](_0x2f6f5d),_0x875bd3[_0x1bf236(0x1d7)]()),this[_0x1bf236(0x14e)][_0x1bf236(0x1f6)]||(_0x172064=this[_0x1bf236(0x321)])==null||_0x172064[_0x1bf236(0x1d7)]();}[_0x5009fc(0xf4)](){const _0x3ffee7=_0x5009fc;this[_0x3ffee7(0x21c)]=0x0,this[_0x3ffee7(0x16d)]!=null&&(clearTimeout(this[_0x3ffee7(0x16d)]),this['_retryConnectingTimer']=null),this[_0x3ffee7(0x1bc)]();}['_createSocket'](){const _0x5acefc=_0x5009fc;var _0x536026,_0xe6695d;const _0x215757=this[_0x5acefc(0x361)][_0x5acefc(0x23b)](Tn),_0x9f8d91=this[_0x5acefc(0x361)]['getConfig']($),_0x24e267=(_0xe6695d=(_0x536026=_0x9f8d91==null?void 0x0:_0x9f8d91['collabWebSocketUrl'])!=null?_0x536026:_0x215757)!=null?_0xe6695d:Rn,_0x2fd2b2=this[_0x5acefc(0x18d)][_0x5acefc(0x18f)](_0x24e267);return this[_0x5acefc(0x310)]=_0x2fd2b2,_0x2fd2b2;}[_0x5009fc(0x441)](){const _0x105643=_0x5009fc;var _0x4e6b15,_0x27fb98;try{const _0x4b4030=(_0x27fb98=(_0x4e6b15=this[_0x105643(0x321)])!=null?_0x4e6b15:this[_0x105643(0x310)])!=null?_0x27fb98:this['_createSocket']();if(_0x4b4030){const _0x48dbd4=_0x4b4030[_0x105643(0x3ca)];_0x4b4030[_0x105643(0x3ca)]=_0x11f78f=>(this[_0x105643(0x3be)](),_0x48dbd4[_0x105643(0x269)](_0x4b4030,[_0x11f78f])),_0x4b4030[_0x105643(0x253)]['subscribe'](_0x269dfc=>this['_onMessage'](_0x4b4030,_0x269dfc)),_0x4b4030['error$']['pipe'](_0x4e7c24(0x1))[_0x105643(0x206)](_0x59b433=>this[_0x105643(0x208)][_0x105643(0x1bb)](_0x105643(0x2c0),_0x59b433)),_0x4b4030[_0x105643(0x390)][_0x105643(0x44f)](_0x4e7c24(0x1))[_0x105643(0x206)](()=>{this['_onConnectionOpen'](_0x4b4030);}),_0x4b4030[_0x105643(0x3f3)][_0x105643(0x44f)](_0x4e7c24(0x1))[_0x105643(0x206)](_0x3825e9=>{const _0x598bcf=_0x105643;this[_0x598bcf(0x208)][_0x598bcf(0x232)](_0x598bcf(0x1f5),_0x598bcf(0x1c5),_0x3825e9),this[_0x598bcf(0x419)]();});}}catch(_0x1f5694){this[_0x105643(0x208)][_0x105643(0x1bb)](_0x1f5694),this[_0x105643(0x419)]();}}[_0x5009fc(0x3fc)](_0x5784af){const _0x31aedc=_0x5009fc;this[_0x31aedc(0x208)][_0x31aedc(0x232)](_0x31aedc(0x1f5),'socket\x20open.'),_0x5784af['send']({'cmd':I[_0x31aedc(0x3f0)]}),this[_0x31aedc(0x3be)]();}[_0x5009fc(0x159)](){const _0x2bf1c3=_0x5009fc;window[_0x2bf1c3(0x20e)](_0x2bf1c3(0x170),()=>this[_0x2bf1c3(0x1e6)]());}[_0x5009fc(0x1e6)](){const _0x21791e=_0x5009fc;this[_0x21791e(0x26e)]=!0x1,this['_candidateSocket']=null,this[_0x21791e(0x2fb)][_0x21791e(0x1cf)](Y[_0x21791e(0x29e)]),this['_socket$']['next'](null),this[_0x21791e(0x23a)](),this[_0x21791e(0x268)]();}[_0x5009fc(0x419)](){const _0x3b52fc=_0x5009fc;var _0x53cd1b;this['_onOffline'](),this[_0x3b52fc(0x21c)]<((_0x53cd1b=this[_0x3b52fc(0x361)]['getConfig'](Pn))!=null?_0x53cd1b:yn)?(this[_0x3b52fc(0x104)][_0x3b52fc(0xf7)]({'key':_0x3b52fc(0x210),'type':_0x3738f0['Warning'],'content':this['_localeService']['t'](_0x3b52fc(0x12f))}),this[_0x3b52fc(0x1bc)]()):this[_0x3b52fc(0x104)][_0x3b52fc(0xf7)]({'key':'collaboration-session-retry','type':_0x3738f0[_0x3b52fc(0x44e)],'content':this[_0x3b52fc(0x2a6)]['t'](_0x3b52fc(0x1b3))});}[_0x5009fc(0x10c)](){const _0x21e6a2=_0x5009fc,_0x2f4125=()=>{const _0x59bdbe=_0x3280;this[_0x59bdbe(0x321)]||this['reconnect']();},_0x31298f=()=>{const _0x372719=_0x3280;this[_0x372719(0x321)]||document['visibilityState']===_0x372719(0x15b)||this['reconnect']();};window[_0x21e6a2(0x20e)]('online',_0x2f4125),document[_0x21e6a2(0x20e)](_0x21e6a2(0x2f5),_0x31298f);}[_0x5009fc(0x1bc)](){const _0x386b16=_0x5009fc;var _0x18ccbc;const _0x231482=this[_0x386b16(0x21c)],_0x4025e5=this[_0x386b16(0x361)][_0x386b16(0x23b)]($),_0x5a865d=_0x231482===0x0?0x0:((_0x18ccbc=_0x4025e5==null?void 0x0:_0x4025e5[_0x386b16(0x29a)])!=null?_0x18ccbc:wn)*0x2**_0x231482;this[_0x386b16(0x16d)]=window[_0x386b16(0x13f)](()=>{const _0x4fff39=_0x386b16;clearTimeout(this[_0x4fff39(0x16d)]),this[_0x4fff39(0x16d)]=null,this[_0x4fff39(0x441)]();},_0x5a865d),this[_0x386b16(0x21c)]+=0x1;}['_onMessage'](_0x38b942,_0x5f1cf0){const _0x14faa6=_0x5009fc,{cmd:_0x1731c3}=_0x5f1cf0;_0x1731c3===I[_0x14faa6(0x3f0)]&&!this['_socketReady']&&(_0x38b942['memberID']=_0x5f1cf0[_0x14faa6(0x363)][_0x14faa6(0x347)],this[_0x14faa6(0x236)][_0x14faa6(0x1cf)](_0x38b942),this[_0x14faa6(0x2fb)][_0x14faa6(0x1cf)](Y['ONLINE']),this[_0x14faa6(0x26e)]=!0x0,this[_0x14faa6(0x310)]=null),_0x1731c3===I[_0x14faa6(0x29c)]&&this[_0x14faa6(0x23a)](),this['_rescheduleHeartbeat']();}[_0x5009fc(0x3be)](){const _0x21e7ae=_0x5009fc;var _0x1ff34a;this[_0x21e7ae(0x268)](),this[_0x21e7ae(0x30b)]=window[_0x21e7ae(0x13f)](()=>this[_0x21e7ae(0x2cf)](),(_0x1ff34a=this['_configService']['getConfig'](On))!=null?_0x1ff34a:Dn);}[_0x5009fc(0x2cf)](){const _0x4cde4a=_0x5009fc;this['_socket']['send']({'cmd':I[_0x4cde4a(0x29c)]}),this['_waitForHeartbeatResponse']();}[_0x5009fc(0x148)](){const _0x48fcbc=_0x5009fc;var _0x4d368a;this['_timeoutTimer']=window['setTimeout'](()=>this['_onConnectionFailed'](),(_0x4d368a=this[_0x48fcbc(0x361)][_0x48fcbc(0x23b)](js))!=null?_0x4d368a:Hs);}[_0x5009fc(0x268)](){const _0x4a3d6a=_0x5009fc;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x4a3d6a(0x30b)]),this[_0x4a3d6a(0x30b)]=null);}[_0x5009fc(0x23a)](){const _0x154ff0=_0x5009fc;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x154ff0(0x44a)]),this[_0x154ff0(0x44a)]=null);}};he=tr([me(0x0,_0x1f955f(_0x97bef)),me(0x1,_0x1f955f(_0x371029)),me(0x2,_0x40b38a),me(0x3,_0x5cfe43),me(0x4,_0x4b96c2),me(0x5,Bs)],he);var T=[];for(var ct=0x0;ct<0x100;++ct)T[_0x5009fc(0x152)]((ct+0x100)['toString'](0x10)['slice'](0x1));function sr(_0x254ef8,_0x6eb529=0x0){const _0x3d40d4=_0x5009fc;return(T[_0x254ef8[_0x6eb529+0x0]]+T[_0x254ef8[_0x6eb529+0x1]]+T[_0x254ef8[_0x6eb529+0x2]]+T[_0x254ef8[_0x6eb529+0x3]]+'-'+T[_0x254ef8[_0x6eb529+0x4]]+T[_0x254ef8[_0x6eb529+0x5]]+'-'+T[_0x254ef8[_0x6eb529+0x6]]+T[_0x254ef8[_0x6eb529+0x7]]+'-'+T[_0x254ef8[_0x6eb529+0x8]]+T[_0x254ef8[_0x6eb529+0x9]]+'-'+T[_0x254ef8[_0x6eb529+0xa]]+T[_0x254ef8[_0x6eb529+0xb]]+T[_0x254ef8[_0x6eb529+0xc]]+T[_0x254ef8[_0x6eb529+0xd]]+T[_0x254ef8[_0x6eb529+0xe]]+T[_0x254ef8[_0x6eb529+0xf]])[_0x3d40d4(0x1d6)]();}var xe,ir=new Uint8Array(0x10);function nr(){const _0x1e8dac=_0x5009fc;if(!xe&&(xe=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x1e8dac(0x203)]['bind'](crypto),!xe))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return xe(ir);}var rr=typeof crypto<'u'&&crypto[_0x5009fc(0x300)]&&crypto[_0x5009fc(0x300)][_0x5009fc(0x392)](crypto);const cs={'randomUUID':rr};function or(_0x1ee245,_0x4b96e6,_0x27a99b){const _0x14e3bc=_0x5009fc;if(cs[_0x14e3bc(0x300)]&&!_0x4b96e6&&!_0x1ee245)return cs[_0x14e3bc(0x300)]();_0x1ee245=_0x1ee245||{};var _0x1ccba8=_0x1ee245[_0x14e3bc(0x161)]||(_0x1ee245['rng']||nr)();return _0x1ccba8[0x6]=_0x1ccba8[0x6]&0xf|0x40,_0x1ccba8[0x8]=_0x1ccba8[0x8]&0x3f|0x80,sr(_0x1ccba8);}var ar=Object[_0x5009fc(0x235)],cr=Object[_0x5009fc(0x327)],hr=(_0xb4e21c,_0x468eff,_0x35d464,_0x4347b4)=>{const _0x501973=_0x5009fc;for(var _0x34299d=_0x4347b4>0x1?void 0x0:_0x4347b4?cr(_0x468eff,_0x35d464):_0x468eff,_0x34ef42=_0xb4e21c[_0x501973(0x21e)]-0x1,_0x5d9f1e;_0x34ef42>=0x0;_0x34ef42--)(_0x5d9f1e=_0xb4e21c[_0x34ef42])&&(_0x34299d=(_0x4347b4?_0x5d9f1e(_0x468eff,_0x35d464,_0x34299d):_0x5d9f1e(_0x34299d))||_0x34299d);return _0x4347b4&&_0x34299d&&ar(_0x468eff,_0x35d464,_0x34299d),_0x34299d;},ht=(_0x1f8a04,_0x5767e1)=>(_0x2dc2f8,_0x40a523)=>_0x5767e1(_0x2dc2f8,_0x40a523,_0x1f8a04);let Ye=class{constructor(_0x30ce2a,_0x3a1459,_0x1e180c){const _0x9666eb=_0x5009fc;this[_0x9666eb(0x448)]=_0x30ce2a,this[_0x9666eb(0x42e)]=_0x3a1459,this[_0x9666eb(0x2ca)]=_0x1e180c;}[_0x5009fc(0x42d)](_0x1a9530){const _0xff099b=_0x5009fc;this[_0xff099b(0x405)](_0x1a9530),this[_0xff099b(0x2fd)](_0x1a9530);}[_0x5009fc(0xfb)](_0xf8c180){const _0x3b21fa=_0x5009fc,{unitID:_0x4107d9}=_0xf8c180,_0x33d074=this[_0x3b21fa(0x2ca)][_0x3b21fa(0x2a9)](_0x4107d9)[_0x3b21fa(0x30f)](_0xa62fc1),{redoCache:_0x2fcfaa}=_0x33d074[_0x3b21fa(0x398)]();if(_0x2fcfaa[_0x3b21fa(0x21e)]===0x0)return _0xf8c180;let _0x377ae7=_0x548d2b[_0x3b21fa(0x22d)](_0xf8c180[_0x3b21fa(0x12c)][0x0]);for(let _0x5c04ca=0x0;_0x5c04ca<_0x2fcfaa[_0x3b21fa(0x21e)];_0x5c04ca++){const _0x5f502a={'id':_0x3b21fa(0x305),'params':{..._0x2fcfaa[_0x5c04ca]}},_0x48002a=this[_0x3b21fa(0x42e)][_0x3b21fa(0x17e)](_0x377ae7,_0x5f502a,!0x1);if(_0x4ee9e9(_0x48002a))throw _0x48002a['error'];_0x377ae7=_0x48002a[_0x3b21fa(0x1dd)];}return{..._0x548d2b[_0x3b21fa(0x22d)](_0xf8c180),'mutations':[_0x377ae7]};}['_transformUndoRedoStack'](_0xfc83d8){const _0x186184=_0x5009fc,{unitID:_0x3667d6}=_0xfc83d8,_0x4eb1f8=this['_renderManagerService'][_0x186184(0x2a9)](_0x3667d6)['with'](_0xa62fc1),{undoCache:_0x19be09,redoCache:_0x2a5d89}=_0x4eb1f8[_0x186184(0x398)]();if(_0x19be09[_0x186184(0x21e)]===0x0||_0x2a5d89[_0x186184(0x21e)]===0x0)return;const _0x1ef6c8=[],_0x5b1d50=[];let _0x11b063=_0x548d2b[_0x186184(0x22d)](_0xfc83d8[_0x186184(0x12c)][0x0]),_0x3abac4=_0x548d2b[_0x186184(0x22d)](_0xfc83d8[_0x186184(0x12c)][0x0]);for(let _0x28d043=_0x19be09[_0x186184(0x21e)]-0x1;_0x28d043>=0x0;_0x28d043--){const _0x5b5d28={'id':_0x186184(0x305),'params':{..._0x19be09[_0x28d043]}},_0xb7a2eb={'id':'doc.mutation.rich-text-editing','params':{..._0x2a5d89[_0x28d043]}},_0x4d5b2b=this[_0x186184(0x42e)]['transformMutation'](_0x11b063,_0x5b5d28,!0x1),_0x119772=this[_0x186184(0x42e)][_0x186184(0x17e)](_0x3abac4,_0xb7a2eb,!0x1);if(_0x4ee9e9(_0x4d5b2b))throw _0x4d5b2b[_0x186184(0x1bb)];if(_0x4ee9e9(_0x119772))throw _0x119772['error'];_0x1ef6c8[_0x186184(0x33e)](_0x4d5b2b[_0x186184(0xd1)][_0x186184(0x194)]),_0x5b1d50[_0x186184(0x33e)](_0x119772[_0x186184(0xd1)][_0x186184(0x194)]),_0x11b063=_0x4d5b2b[_0x186184(0x1dd)],_0x3abac4=_0x119772[_0x186184(0x1dd)];}_0x4eb1f8[_0x186184(0x414)]({'undoCache':_0x1ef6c8,'redoCache':_0x5b1d50});}[_0x5009fc(0x2fd)](_0x5a5abd){const _0x3175e6=_0x5009fc,{unitID:_0x5e0bb7}=_0x5a5abd,_0x14b33a=this['_renderManagerService'][_0x3175e6(0x2a9)](_0x5e0bb7)['with'](_0xa62fc1),_0x4db52c=_0x14b33a[_0x3175e6(0x247)]();if(_0x4db52c==null)return;const _0x4c8277=[{'id':_0x3175e6(0x305),'params':{'unitId':_0x5a5abd[_0x3175e6(0x187)],'actions':null,'textRanges':[_0x4db52c]}}],_0x287db3=this['_transformService'][_0x3175e6(0x1ec)](_0x5a5abd,_0x4c8277);if(!_0x110ba3(_0x287db3))throw _0x287db3[_0x3175e6(0x1bb)];const _0x47d94c=_0x287db3[_0x3175e6(0xd1)][0x0][_0x3175e6(0x194)][_0x3175e6(0x3e4)];Array['isArray'](_0x47d94c)&&_0x47d94c[_0x3175e6(0x21e)]&&_0x14b33a[_0x3175e6(0x422)](_0x47d94c[0x0]);}};Ye=hr([ht(0x0,_0x1f955f(_0x97bef)),ht(0x1,_0x191396),ht(0x2,_0x7fdfc4)],Ye);var lr=Object[_0x5009fc(0x235)],_r=Object[_0x5009fc(0x327)],ur=(_0x3e9533,_0x3f3224,_0x1b113e,_0x16e6d5)=>{const _0x24bf92=_0x5009fc;for(var _0x1c62a9=_0x16e6d5>0x1?void 0x0:_0x16e6d5?_r(_0x3f3224,_0x1b113e):_0x3f3224,_0xc84818=_0x3e9533[_0x24bf92(0x21e)]-0x1,_0x108de3;_0xc84818>=0x0;_0xc84818--)(_0x108de3=_0x3e9533[_0xc84818])&&(_0x1c62a9=(_0x16e6d5?_0x108de3(_0x3f3224,_0x1b113e,_0x1c62a9):_0x108de3(_0x1c62a9))||_0x1c62a9);return _0x16e6d5&&_0x1c62a9&&lr(_0x3f3224,_0x1b113e,_0x1c62a9),_0x1c62a9;},De=(_0x2cea45,_0x21cd97)=>(_0x40a277,_0x5931df)=>_0x21cd97(_0x40a277,_0x5931df,_0x2cea45);let w=class extends _0x16541d{constructor(_0x268567,_0x3b082a,_0x16347b,_0x59f0e2,_0x17b25d){const _0x14d954=_0x5009fc;super(),l(this,_0x14d954(0x337),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x14d954(0x334),!0x1),(this['_configService']=_0x268567,this[_0x14d954(0x113)]=_0x3b082a,this[_0x14d954(0x39f)]=_0x16347b,this[_0x14d954(0x2a6)]=_0x59f0e2,this[_0x14d954(0x19b)]=_0x17b25d,this[_0x14d954(0x21f)]());}[_0x5009fc(0x1d2)](){const _0x1f0246=_0x5009fc;this[_0x1f0246(0x334)]=!0x0;}['enableLocalCache'](){const _0x18561f=_0x5009fc;this[_0x18561f(0x334)]=!0x1;}['dispose'](){const _0xfa84b6=_0x5009fc;this['exhaustSavingTask']()[_0xfa84b6(0x367)](()=>super[_0xfa84b6(0x298)]());}async[_0x5009fc(0x1ad)](_0x5f637){return this['_disabled']?null:this['_localStorageService']['getItem'](hs(_0x5f637));}async['saveOfflineData'](_0x4c4fde,_0x3f5fcd){const _0x4d1532=_0x5009fc;return!!this[_0x4d1532(0x113)]['setItem'](_0x4c4fde,_0x3f5fcd);}[_0x5009fc(0x1f4)](_0x5311e8,_0x6a6edf,_0x2d2085,_0x49652e){const _0x3286cd=_0x5009fc,_0xb2669=this['_revisionService'][_0x3286cd(0x13a)](_0x5311e8);this['_cachedData']['set'](_0x5311e8,{'unitID':_0x5311e8,'type':_0x6a6edf,'awaitingChangeset':_0x2d2085,'mutations':_0x49652e,'rev':_0xb2669}),this[_0x3286cd(0x225)][_0x3286cd(0x2b0)](_0x5311e8)||this['_scheduleSaving'](_0x5311e8);}[_0x5009fc(0x353)](_0xbdb4a5){const _0x45b92b=_0x5009fc,_0x2d56da=this[_0x45b92b(0x343)]();_0x2d56da===0x0?this[_0x45b92b(0x2f7)](_0xbdb4a5):this['_saveTaskMap'][_0x45b92b(0x411)](_0xbdb4a5,setTimeout(()=>this[_0x45b92b(0x2f7)](_0xbdb4a5),_0x2d56da));}['_getSaveTimeout'](){const _0x114e03=_0x5009fc;var _0xcf889a;return(_0xcf889a=this['_configService'][_0x114e03(0x23b)](Un))!=null?_0xcf889a:Nn;}[_0x5009fc(0x2f7)](_0xe56256){const _0x37a21c=_0x5009fc,_0x3f9bbd=this[_0x37a21c(0x225)][_0x37a21c(0x381)](_0xe56256);return _0x3f9bbd!==void 0x0&&window['clearTimeout'](_0x3f9bbd),this[_0x37a21c(0x113)][_0x37a21c(0x201)](hs(_0xe56256),this[_0x37a21c(0x337)][_0x37a21c(0x381)](_0xe56256))[_0x37a21c(0x367)](()=>this['_saveTaskMap']['delete'](_0xe56256));}async['exhaustSavingTask'](){const _0x51fc19=_0x5009fc,_0x3469b3=[];this['_saveTaskMap'][_0x51fc19(0x1d4)]((_0x5a2a2c,_0x139520)=>{const _0x2a0e50=_0x51fc19;window[_0x2a0e50(0x189)](_0x5a2a2c),_0x3469b3[_0x2a0e50(0x152)](this[_0x2a0e50(0x2f7)](_0x139520)[_0x2a0e50(0x367)](()=>{const _0x253c7a=_0x2a0e50;this[_0x253c7a(0x225)][_0x253c7a(0x184)](_0x139520);}));}),await Promise[_0x51fc19(0x19a)](_0x3469b3);}[_0x5009fc(0x21f)](){const _0x1fcdf3=_0x5009fc;this[_0x1fcdf3(0x341)](this[_0x1fcdf3(0x39f)][_0x1fcdf3(0x164)](()=>{const _0x54f44c=_0x1fcdf3;if(this[_0x54f44c(0x225)]['size'])return this['_localeService']['t'](_0x54f44c(0x435));}));}};w=ur([De(0x0,_0x4b96c2),De(0x1,_0x4fd9ec),De(0x2,_0x548106),De(0x3,_0x1f955f(_0x371029)),De(0x4,_0x1f955f(_0x49adf8))],w);function hs(_0xd8308a){const _0x76aaa1=_0x5009fc;return _0x76aaa1(0x412)+_0xd8308a;}var dr=Object[_0x5009fc(0x235)],mr=Object[_0x5009fc(0x327)],fr=(_0x21f62f,_0x25ae95,_0x1a2d8b,_0x47e4af)=>{for(var _0x41a8ad=_0x47e4af>0x1?void 0x0:_0x47e4af?mr(_0x25ae95,_0x1a2d8b):_0x25ae95,_0x1593dc=_0x21f62f['length']-0x1,_0xfe8cf6;_0x1593dc>=0x0;_0x1593dc--)(_0xfe8cf6=_0x21f62f[_0x1593dc])&&(_0x41a8ad=(_0x47e4af?_0xfe8cf6(_0x25ae95,_0x1a2d8b,_0x41a8ad):_0xfe8cf6(_0x41a8ad))||_0x41a8ad);return _0x47e4af&&_0x41a8ad&&dr(_0x25ae95,_0x1a2d8b,_0x41a8ad),_0x41a8ad;},lt=(_0x1d807e,_0x1ff619)=>(_0x5c313b,_0x1668f6)=>_0x1ff619(_0x5c313b,_0x1668f6,_0x1d807e);function gr(_0x26f492){const _0x4f49f4=_0x5009fc,{unitID:_0x2af946,mutations:_0x587e44}=_0x26f492;return{'unitId':_0x2af946,'subUnitId':_0x587e44[0x0][_0x4f49f4(0x194)][_0x4f49f4(0x452)]};}let Ke=class{constructor(_0x1d1060,_0x95cf83,_0x24302e){const _0x2a9b8f=_0x5009fc;this[_0x2a9b8f(0x448)]=_0x1d1060,this[_0x2a9b8f(0x42e)]=_0x95cf83,this[_0x2a9b8f(0x27b)]=_0x24302e;}[_0x5009fc(0x2e6)](_0x54e702){const _0x409f6f=_0x5009fc;var _0x1b12ae,_0x5ee10c,_0x121b62,_0x11d242;const _0x14ea37=this[_0x409f6f(0x448)][_0x409f6f(0x381)](_0x5ced1d),{unitId:_0x4a9fc2,subUnitId:_0x29ec24}=gr(_0x54e702),_0x33bda9=_0x14ea37[_0x409f6f(0x20b)](_0x4a9fc2)[_0x409f6f(0x238)](),_0x11843f=(_0x5ee10c=(_0x1b12ae=this[_0x409f6f(0x27b)][_0x409f6f(0x1b8)](_0x4a9fc2))==null?void 0x0:_0x1b12ae[_0x409f6f(0x126)]())==null?void 0x0:_0x5ee10c[_0x409f6f(0x207)]();if(_0x33bda9['length']===0x0||!_0x4a9fc2||!_0x29ec24)return;const _0x4788de=[{'id':_0xbeb346['id'],'params':{'unitId':_0x4a9fc2,'subUnitId':_0x11843f,'selections':_0x548d2b['deepClone'](_0x33bda9)}}],_0x490299=this[_0x409f6f(0x42e)][_0x409f6f(0x1ec)](_0x54e702,_0x4788de);if(!_0x110ba3(_0x490299))throw _0x490299[_0x409f6f(0x1bb)];const _0x3060d8=(_0x11d242=(_0x121b62=_0x490299[_0x409f6f(0xd1)][0x0])==null?void 0x0:_0x121b62[_0x409f6f(0x194)])==null?void 0x0:_0x11d242[_0x409f6f(0x2e7)];if(Array['isArray'](_0x3060d8)&&_0x3060d8['length']){if(_0x3060d8[_0x409f6f(0x21e)]===_0x4788de[0x0][_0x409f6f(0x194)][_0x409f6f(0x2e7)]['length']&&_0x3060d8[_0x409f6f(0x3d1)]((_0x1f24b4,_0xba0aba)=>_0x3b84dd['equals'](_0x1f24b4[_0x409f6f(0x2ac)],_0x4788de[0x0][_0x409f6f(0x194)][_0x409f6f(0x2e7)][_0xba0aba]['range'])))return;this[_0x409f6f(0x448)][_0x409f6f(0x381)](_0xfcd33f)[_0x409f6f(0x109)](_0xbeb346['id'],{'unitId':_0x4a9fc2,'subUnitId':_0x11843f,'selections':_0x3060d8});}}};Ke=fr([lt(0x0,_0x1f955f(_0x97bef)),lt(0x1,_0x191396),lt(0x2,_0x2d78d8)],Ke);const tt=_0x5c6f0d(_0x5009fc(0x2e2));var Fs=(_0x1adc73=>(_0x1adc73[_0x1adc73[_0x5009fc(0x131)]=0x0]=_0x5009fc(0x131),_0x1adc73[_0x1adc73['OTHER_CLIENTS_EDITING']=0x1]=_0x5009fc(0x3c9),_0x1adc73))(Fs||{});const ls=0x7530,_s='ACTIVE_UNIT_EVENT_CHANNEL';class Sr extends _0x16541d{constructor(){const _0x599c38=_0x5009fc;super(),l(this,_0x599c38(0x317),_0x548d2b[_0x599c38(0x110)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x599c38(0x382),new Map()),l(this,_0x599c38(0x1a3),null),l(this,'_clearOtherTimers',new Map()),l(this,_0x599c38(0x118),new Map()),this[_0x599c38(0x2bf)]();}['dispose'](){const _0x2a8255=_0x5009fc;super[_0x2a8255(0x298)](),this['_clearOtherTimers'][_0x2a8255(0x1d4)]((_0x24c90c,_0x1481d9)=>this[_0x2a8255(0x129)](_0x1481d9)),this[_0x2a8255(0x1a3)]&&window[_0x2a8255(0x17c)](this[_0x2a8255(0x1a3)]);}['getUnitStatus$'](_0x228a1d){const _0x20373a=_0x5009fc;return this[_0x20373a(0x14a)](_0x228a1d)[_0x20373a(0x44f)](_0x1fd0e9());}['editingUnit'](_0x4b3dd5){const _0x1e8d51=_0x5009fc;this[_0x1e8d51(0x115)]['size']===0x0&&this[_0x1e8d51(0x163)](),this[_0x1e8d51(0x115)][_0x1e8d51(0x3ea)](_0x4b3dd5),this[_0x1e8d51(0x2a4)]({'type':0x0,'memberID':this[_0x1e8d51(0x317)],'unitIDs':[_0x4b3dd5],'isForwarded':!0x1});}[_0x5009fc(0x437)](_0x8dc8e0){const _0x465c6c=_0x5009fc;this[_0x465c6c(0x115)][_0x465c6c(0x184)](_0x8dc8e0),this[_0x465c6c(0x115)]['size']===0x0&&this[_0x465c6c(0x1a3)]&&window[_0x465c6c(0x17c)](this[_0x465c6c(0x1a3)]);}[_0x5009fc(0x2bf)](){const _0x4d1f1c=_0x5009fc;this[_0x4d1f1c(0x341)](_0x2b2e4c(_0x35b99f(window,_0x4d1f1c(0x362))['subscribe'](_0x2f522a=>{const _0x5f2583=_0x4d1f1c;if(_0x2f522a[_0x5f2583(0x2d8)]!==_s||!_0x2f522a[_0x5f2583(0x270)])return;const _0xdfc97d=JSON[_0x5f2583(0x130)](_0x2f522a[_0x5f2583(0x270)]);this[_0x5f2583(0x221)](_0xdfc97d);}))),window[_0x4d1f1c(0x20e)]('unload',()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x5009fc(0x221)](_0x5051fb){const _0x2663b9=_0x5009fc;switch(_0x5051fb[_0x2663b9(0x1f3)]){case 0x0:this[_0x2663b9(0x3b8)](_0x5051fb);break;case 0x1:this[_0x2663b9(0x151)](_0x5051fb);break;case 0x2:this[_0x2663b9(0x3a8)](_0x5051fb);break;}}[_0x5009fc(0x3b8)](_0x239356){const _0x1faed5=_0x5009fc,{unitIDs:_0x24b2b4,memberID:_0x669f42,isForwarded:_0x307c1f}=_0x239356;_0x24b2b4[_0x1faed5(0x1d4)](_0x266ec6=>{const _0x1eb1ea=_0x1faed5;if(!_0x307c1f&&this[_0x1eb1ea(0x382)][_0x1eb1ea(0x2b0)](_0x266ec6)&&this[_0x1eb1ea(0x14a)](_0x266ec6)[_0x1eb1ea(0x1cf)](0x1),!this[_0x1eb1ea(0x382)][_0x1eb1ea(0x2b0)](_0x266ec6)||!this[_0x1eb1ea(0x382)]['get'](_0x266ec6)[_0x1eb1ea(0x2b0)](_0x669f42)){const _0x166dfa=this[_0x1eb1ea(0x382)][_0x1eb1ea(0x381)](_0x266ec6)||new Set();_0x166dfa[_0x1eb1ea(0x3ea)](_0x669f42),this[_0x1eb1ea(0x382)]['set'](_0x266ec6,_0x166dfa),this[_0x1eb1ea(0xd3)](_0x669f42);}}),_0x307c1f||this[_0x1faed5(0x2a4)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x1faed5(0x115)]],'isForwarded':!0x0});}[_0x5009fc(0xd3)](_0x1f3a33){const _0x10d2e3=_0x5009fc;this['_removeClearOtherTimer'](_0x1f3a33);const _0x3669c8=window[_0x10d2e3(0x13f)](()=>{const _0x32200d=_0x10d2e3;this[_0x32200d(0x382)][_0x32200d(0x1d4)](_0x574dc9=>{_0x574dc9['delete'](_0x1f3a33);});},ls*0x2);this[_0x10d2e3(0x273)]['set'](_0x1f3a33,_0x3669c8);}[_0x5009fc(0x129)](_0x177d6b){const _0x5c84b3=_0x5009fc;if(this[_0x5c84b3(0x273)][_0x5c84b3(0x2b0)](_0x177d6b)){const _0x5a2e3a=this[_0x5c84b3(0x273)][_0x5c84b3(0x381)](_0x177d6b);_0x5a2e3a&&window['clearTimeout'](_0x5a2e3a),this[_0x5c84b3(0x273)][_0x5c84b3(0x411)](_0x177d6b,null);}}[_0x5009fc(0x151)](_0x22b0b1){const _0x546716=_0x5009fc,{memberID:_0x235fd9,unitIDs:_0x5caa4e}=_0x22b0b1;_0x5caa4e['forEach'](_0xbcd89e=>{const _0x4c24de=_0x3280;var _0x4a751a;const _0xb38d0e=this['_unitOnClients'][_0x4c24de(0x381)](_0xbcd89e);_0xb38d0e&&(_0xb38d0e[_0x4c24de(0x184)](_0x235fd9),(_0x4a751a=this[_0x4c24de(0x14a)](_0xbcd89e))==null||_0x4a751a[_0x4c24de(0x1cf)](_0xb38d0e[_0x4c24de(0x1f6)]===0x0?0x0:0x1));}),this[_0x546716(0x129)](_0x235fd9);}[_0x5009fc(0x3a8)](_0x20bdc1){const _0x17514b=_0x5009fc;this[_0x17514b(0xd3)](_0x20bdc1[_0x17514b(0x347)]);}[_0x5009fc(0x2a4)](_0x3260e5){localStorage['setItem'](_s,JSON['stringify'](_0x3260e5));}[_0x5009fc(0x163)](){const _0x3f6acb=_0x5009fc;this[_0x3f6acb(0x1a3)]=window['setInterval'](()=>{const _0x49922e=_0x3f6acb;this[_0x49922e(0x2a4)]({'type':0x2,'memberID':this[_0x49922e(0x317)]});},ls);}[_0x5009fc(0x14a)](_0x5de014){const _0x40222b=_0x5009fc;return this[_0x40222b(0x118)]['has'](_0x5de014)||this['_unitStatus'][_0x40222b(0x411)](_0x5de014,new _0x3a492f(0x0)),this[_0x40222b(0x118)]['get'](_0x5de014);}}function Ws(_0x348466){const _0xac340b=_0x5009fc;let _0x184614='';for(const _0x2e2fde of _0x348466){const {startOffset:_0x389a4e,endOffset:_0x5cead3,isActive:_0x1b1829}=_0x2e2fde;_0x184614[_0xac340b(0x21e)]&&(_0x184614+=','),_0x184614+=_0x389a4e+':'+_0x5cead3+':'+(_0x1b1829?'1':'0');}return _0x184614;}function pr(_0x252c0c){const _0x443d4d=_0x5009fc,_0x3d1b49=_0x252c0c[_0x443d4d(0x217)](','),_0x1ab638=[];for(const _0xe0d10e of _0x3d1b49){const [_0x55a5ba,_0x5acf7b,_0x5b82fc]=_0xe0d10e[_0x443d4d(0x217)](':');_0x1ab638[_0x443d4d(0x152)]({'startOffset':Number(_0x55a5ba),'endOffset':Number(_0x5acf7b),'collapsed':_0x55a5ba===_0x5acf7b,'isActive':_0x5b82fc==='1'});}return _0x1ab638[_0x443d4d(0x1c9)](_0x533bd9=>_0x533bd9[_0x443d4d(0x1b1)])||(_0x1ab638[0x0]['isActive']=!0x0),_0x1ab638;}class Ft extends _0x5889a4{constructor(){const _0x47a1ad=_0x5009fc;super(...arguments),l(this,_0x47a1ad(0x183),new _0x3a492f(null)),l(this,_0x47a1ad(0x442),this['_collabCursorState$'][_0x47a1ad(0x396)]());}[_0x5009fc(0x264)](_0x2ac20d){const _0x2de155=_0x5009fc,{unitID:_0x3c3800,memberID:_0x57a27f,textRanges:_0x3cd512}=_0x2ac20d,_0x4e6a18=Ws(_0x3cd512),_0x4124a1={'unitID':_0x3c3800,'memberID':_0x57a27f,'selection':_0x4e6a18};this[_0x2de155(0x183)]['next'](_0x4124a1);}}var vr=Object[_0x5009fc(0x235)],Ir=Object[_0x5009fc(0x327)],Er=(_0x220798,_0x351c1f,_0x27c2f0,_0x3c96ed)=>{const _0x1cd85a=_0x5009fc;for(var _0x4934f3=_0x3c96ed>0x1?void 0x0:_0x3c96ed?Ir(_0x351c1f,_0x27c2f0):_0x351c1f,_0x7ff84=_0x220798[_0x1cd85a(0x21e)]-0x1,_0x13b1fd;_0x7ff84>=0x0;_0x7ff84--)(_0x13b1fd=_0x220798[_0x7ff84])&&(_0x4934f3=(_0x3c96ed?_0x13b1fd(_0x351c1f,_0x27c2f0,_0x4934f3):_0x13b1fd(_0x4934f3))||_0x4934f3);return _0x3c96ed&&_0x4934f3&&vr(_0x351c1f,_0x27c2f0,_0x4934f3),_0x4934f3;},us=(_0xef5b52,_0x4169e8)=>(_0x2b645d,_0x458993)=>_0x4169e8(_0x2b645d,_0x458993,_0xef5b52);let Xe=class{constructor(_0x2cc83c,_0x1dcd40){const _0x3c469c=_0x5009fc;this[_0x3c469c(0x448)]=_0x2cc83c,this['_transformService']=_0x1dcd40;}[_0x5009fc(0x2e6)](_0x14a33b){const _0x1e36a1=_0x5009fc;var _0x87c5f5;const _0x149bc0=this[_0x1e36a1(0x448)][_0x1e36a1(0x381)](_0x2af257),_0xabae53=(_0x87c5f5=_0x149bc0[_0x1e36a1(0x2a8)]())!=null?_0x87c5f5:[];if(_0xabae53['length']===0x0)return;const _0x2e19e3=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x14a33b[_0x1e36a1(0x187)],'actions':null,'textRanges':_0xabae53}}],_0x15a574=this['_transformService'][_0x1e36a1(0x1ec)](_0x14a33b,_0x2e19e3);if(!_0x110ba3(_0x15a574))throw _0x15a574['error'];const _0x418456=_0x15a574[_0x1e36a1(0xd1)][0x0][_0x1e36a1(0x194)][_0x1e36a1(0x3e4)];Array[_0x1e36a1(0x31b)](_0x418456)&&_0x418456[_0x1e36a1(0x21e)]&&_0x149bc0[_0x1e36a1(0x34f)](_0x418456,!0x1);}};Xe=Er([us(0x0,_0x1f955f(_0x97bef)),us(0x1,_0x191396)],Xe);const Cr=new Set([_0x22989c['id']]);function ds(_0x3db9ec,_0x1ba92a,_0x206ed5,_0x4e7e1e,_0x2fbc94){const _0x3dfdb7=_0x5009fc;var _0x4d5f61,_0x4acdd1,_0x23868d,_0x224b02;const _0x18263a=[];for(const _0x48cd94 of _0x3db9ec)if(Cr[_0x3dfdb7(0x2b0)](_0x48cd94['id'])){if(_0x18263a[_0x3dfdb7(0x21e)]>0x0)break;_0x18263a[_0x3dfdb7(0x152)](_0x48cd94);break;}else _0x18263a[_0x3dfdb7(0x152)](_0x48cd94);const _0x177c95=(_0x4acdd1=(_0x4d5f61=_0x2fbc94[_0x3dfdb7(0x2cd)]())==null?void 0x0:_0x4d5f61[_0x3dfdb7(0x451)])!=null?_0x4acdd1:_0x3dfdb7(0x3b7),_0x5a371b=(_0x224b02=(_0x23868d=_0x2fbc94[_0x3dfdb7(0x2cd)]())==null?void 0x0:_0x23868d[_0x3dfdb7(0x347)])!=null?_0x224b02:_0x3dfdb7(0x3b7);return{'changeset':{'unitID':_0x1ba92a,'type':_0x5e774f(_0x206ed5[_0x3dfdb7(0xed)](_0x1ba92a)),'baseRev':_0x4e7e1e[_0x3dfdb7(0x13a)](_0x1ba92a),'revision':0x0,'userID':_0x177c95,'memberID':_0x5a371b,'mutations':_0x18263a},'pendingMutations':_0x3db9ec[_0x3dfdb7(0x256)](_0x18263a[_0x3dfdb7(0x21e)])};}function br(_0x36f084,_0x3548ed,_0x58d97f,_0x31bb5f,_0x577b81){const _0x5af307=_0x5009fc;var _0x2cefe6,_0x607705,_0x478930,_0x53307e;const _0x4df214=[_0x36f084[_0x5af307(0x41d)]((_0x116333,_0x1fd78d)=>{const _0x2a626d=_0x5af307;var _0x23ffd3;const {id:_0x93a9a9}=_0x116333,{id:_0x25c0a8,type:_0x558503}=_0x1fd78d,_0x510e04=(_0x23ffd3=_0x116333[_0x2a626d(0x194)])!=null?_0x23ffd3:{'actions':null},_0x2d9115=_0x1fd78d[_0x2a626d(0x194)];if(_0x93a9a9&&_0x93a9a9!==_0x25c0a8)throw new Error(_0x2a626d(0x325)+_0x93a9a9+_0x2a626d(0x3cc)+_0x25c0a8+'.');return{..._0x116333,'id':_0x25c0a8,'type':_0x558503,'params':{'unitId':_0x2d9115[_0x2a626d(0x2d6)],'textRanges':_0x2d9115[_0x2a626d(0x3e4)],'actions':_0x2aaea2[_0x2a626d(0x2b6)](_0x510e04['actions'],_0x2d9115['actions'])}};},{})],_0x584c49=(_0x607705=(_0x2cefe6=_0x577b81[_0x5af307(0x2cd)]())==null?void 0x0:_0x2cefe6[_0x5af307(0x451)])!=null?_0x607705:'unknown',_0x2d0a4b=(_0x53307e=(_0x478930=_0x577b81[_0x5af307(0x2cd)]())==null?void 0x0:_0x478930[_0x5af307(0x347)])!=null?_0x53307e:'unknown';return{'changeset':{'unitID':_0x3548ed,'type':_0x5e774f(_0x58d97f['getUnitType'](_0x3548ed)),'baseRev':_0x31bb5f[_0x5af307(0x13a)](_0x3548ed),'revision':0x0,'userID':_0x584c49,'memberID':_0x2d0a4b,'mutations':_0x4df214},'pendingMutations':[]};}function Gs(_0x3f0f6f,_0x86025f){const _0x475a96=_0x5009fc,_0x30b08c=new _0x55b851(0x1);return setTimeout(()=>_0x30b08c[_0x475a96(0x1cf)](_0x86025f),_0x3f0f6f),_0x30b08c[_0x475a96(0x396)]()[_0x475a96(0x44f)](_0x1825da(0x1));}const Tr={'id':_0x6b935d['id'],'type':_0x5b3aba[_0x5009fc(0xf9)],'params':{}};var Rr=Object[_0x5009fc(0x235)],Or=Object[_0x5009fc(0x327)],_e=(_0x419ae8,_0x31f059,_0x4e90f2,_0x379ea6)=>{const _0x1e54ec=_0x5009fc;for(var _0x2055b1=_0x379ea6>0x1?void 0x0:_0x379ea6?Or(_0x31f059,_0x4e90f2):_0x31f059,_0x1e3d5e=_0x419ae8[_0x1e54ec(0x21e)]-0x1,_0x3b72bd;_0x1e3d5e>=0x0;_0x1e3d5e--)(_0x3b72bd=_0x419ae8[_0x1e3d5e])&&(_0x2055b1=(_0x379ea6?_0x3b72bd(_0x31f059,_0x4e90f2,_0x2055b1):_0x3b72bd(_0x2055b1))||_0x2055b1);return _0x379ea6&&_0x2055b1&&Rr(_0x31f059,_0x4e90f2,_0x2055b1),_0x2055b1;},f=(_0x3d61d4,_0x2acb11)=>(_0x29c22b,_0x4a4587)=>_0x2acb11(_0x29c22b,_0x4a4587,_0x3d61d4),P=(_0x161cff=>(_0x161cff[_0x5009fc(0x29b)]=_0x5009fc(0x2af),_0x161cff['SYNCED']=_0x5009fc(0xdf),_0x161cff['PENDING']=_0x5009fc(0x2f4),_0x161cff[_0x5009fc(0xee)]='awaiting',_0x161cff[_0x5009fc(0x179)]=_0x5009fc(0x191),_0x161cff['FETCH_MISS']=_0x5009fc(0x2ef),_0x161cff['CONFLICT']=_0x5009fc(0x1e2),_0x161cff[_0x5009fc(0x29e)]='offline',_0x161cff))(P||{});const Ys=0xea60;class ue{constructor(_0x30e4f6,_0x3c0221,_0xd9d0a6,_0x51bf3f,_0x132917,_0x537947,_0x22a1d8,_0x30ebc3,_0x4df3da){const _0x2bf262=_0x5009fc;l(this,_0x2bf262(0x417),null),l(this,_0x2bf262(0x213),[]),(this[_0x2bf262(0x187)]=_0x30e4f6,this['type']=_0x3c0221,this[_0x2bf262(0x3d8)]=_0x132917,this[_0x2bf262(0x289)]=_0x537947,this[_0x2bf262(0x331)]=_0x22a1d8,this[_0x2bf262(0x19b)]=_0x30ebc3,this[_0x2bf262(0x156)]=_0x4df3da,this[_0x2bf262(0x417)]=_0xd9d0a6,this[_0x2bf262(0x213)]=_0x51bf3f);}[_0x5009fc(0x211)](_0x8b198a){const _0x3bab59=_0x5009fc,_0x3bebc0=this['_revisionService'][_0x3bab59(0x13a)](this[_0x3bab59(0x187)]);return _0x8b198a[_0x3bab59(0x2c7)]>_0x3bebc0+0x1?(this['_handler']['onMissingChangesets']({'from':_0x3bebc0,'to':_0x8b198a[_0x3bab59(0x2c7)]-0x1}),!0x0):!0x1;}[_0x5009fc(0x3a0)](_0x268924){const _0x57c1f6=_0x5009fc;this[_0x57c1f6(0x331)]['transformUndoRedo'](this[_0x57c1f6(0x187)],_0x268924);}['_transformSelections'](_0x3ce373){const _0x1f5fb0=_0x5009fc;var _0x166136,_0x54a8ed;(_0x54a8ed=(_0x166136=this[_0x1f5fb0(0x3d8)])[_0x1f5fb0(0x15d)])==null||_0x54a8ed[_0x1f5fb0(0x3e6)](_0x166136,_0x3ce373);}[_0x5009fc(0x2e0)](_0x586c78){const _0x43a783=_0x5009fc;var _0x3f76ed,_0x155b5e;return(_0x155b5e=(_0x3f76ed=this[_0x43a783(0x3d8)])[_0x43a783(0x241)])==null?void 0x0:_0x155b5e[_0x43a783(0x3e6)](_0x3f76ed,_0x586c78);}[_0x5009fc(0x30d)](_0x415e24){const _0x1b03c1=_0x5009fc;var _0x431074,_0x2c4290,_0x574d2d;return(_0x574d2d=(_0x2c4290=(_0x431074=this[_0x1b03c1(0x3d8)])[_0x1b03c1(0x3b5)])==null?void 0x0:_0x2c4290[_0x1b03c1(0x3e6)](_0x431074,_0x415e24))!=null?_0x574d2d:_0x415e24;}[_0x5009fc(0x40d)](_0x2755bc){const _0xf4b718=_0x5009fc;var _0x173c48,_0x10ddf8;if(this[_0xf4b718(0x1f3)]===k[_0xf4b718(0x36f)]){const {unitID:_0x228117,mutations:_0x46dae0,memberID:_0x3bdf56}=_0x2755bc,_0x57c706=_0x46dae0[0x0][_0xf4b718(0x194)][_0xf4b718(0x3e4)];Array[_0xf4b718(0x31b)](_0x57c706)&&_0x57c706['length']>0x0&&((_0x10ddf8=(_0x173c48=this[_0xf4b718(0x3d8)])[_0xf4b718(0x25e)])==null||_0x10ddf8['call'](_0x173c48,{'unitID':_0x228117,'memberID':_0x3bdf56,'textRanges':_0x57c706}));}}['_updateLocalCache'](){const _0x355f00=_0x5009fc;this['_localCacheService'][_0x355f00(0x1f4)](this[_0x355f00(0x187)],this[_0x355f00(0x1f3)],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x5009fc(0x174)](){const _0x542830=_0x5009fc;return this[_0x542830(0x19b)][_0x542830(0x13a)](this[_0x542830(0x187)]);}[_0x5009fc(0xef)](){const _0x5041ae=_0x5009fc;this[_0x5041ae(0x19b)][_0x5041ae(0x290)](this['unitID']);}['_executeRemoteChangeset'](_0x39de8e){const _0xd95246=_0x5009fc;var _0x28ca57;const _0x5f588e=this['_transformRemoteChangesetByIMECache'](_0x39de8e),_0xfec6d7=_0x45d245(_0x5f588e[_0xd95246(0x12c)],this[_0xd95246(0x289)],{'fromCollab':!0x0});if(!_0xfec6d7[_0xd95246(0x304)])throw _0xfec6d7[_0xd95246(0x1bb)]instanceof Error?_0xfec6d7['error']:new Error((_0x28ca57=_0xfec6d7[_0xd95246(0x1bb)])!=null?_0x28ca57:_0xd95246(0x252));this[_0xd95246(0x2e0)](_0x5f588e),this[_0xd95246(0x3a0)](_0x39de8e),this[_0xd95246(0x2fa)](_0x5f588e),this['_syncEditingCollabCursor'](_0x5f588e),this['_incrementRevisionNumber']();}}let pe=class extends ue{constructor(_0x62d7fb,_0x1ed881,_0xd06c2e,_0x42ab4c,_0xd1fe88,_0x2a04c5,_0x445cdd,_0x559f7c,_0x1cab45,_0x374673){const _0x7417f2=_0x5009fc;super(_0x62d7fb,_0x1ed881,null,[],_0xd06c2e,_0x559f7c,_0x445cdd,_0x42ab4c,_0xd1fe88),l(this,_0x7417f2(0x190),_0x7417f2(0xdf)),(this['_injector']=_0x2a04c5,this[_0x7417f2(0x208)]=_0x1cab45,this[_0x7417f2(0x42e)]=_0x374673);}[_0x5009fc(0x1cb)](_0x1642df){const _0x2701df=_0x5009fc,_0x2a8fa1=this[_0x2701df(0x448)][_0x2701df(0x345)](X,this['unitID'],this[_0x2701df(0x1f3)],[_0x1642df],this['_handler']);return _0x2a8fa1['_schedule'](),_0x2a8fa1[_0x2701df(0x25c)](),_0x2a8fa1;}[_0x5009fc(0x342)](_0x4ec21f){const _0x3d4ba0=_0x5009fc;if(this['_checkMissing'](_0x4ec21f))return this[_0x3d4ba0(0x448)]['createInstance'](B,this[_0x3d4ba0(0x187)],this[_0x3d4ba0(0x1f3)],null,[],null,[_0x4ec21f],this[_0x3d4ba0(0x3d8)]);try{const _0x10d4f2=this[_0x3d4ba0(0x42e)][_0x3d4ba0(0x1ec)](_0x4ec21f,[Tr]);if(_0x110ba3(_0x10d4f2)){const {c1Prime:_0x32191e}=_0x10d4f2;return this[_0x3d4ba0(0x303)](_0x32191e),this;}throw _0x10d4f2['error'];}catch(_0x55390f){return this[_0x3d4ba0(0x208)][_0x3d4ba0(0x1bb)](_0x55390f),this['_onConflict'](!0x1);}}[_0x5009fc(0x307)](_0x1b9015){const _0x3de59f=_0x5009fc;return this[_0x3de59f(0x448)]['createInstance'](ee,this[_0x3de59f(0x187)],this[_0x3de59f(0x1f3)],null,[],this[_0x3de59f(0x3d8)],_0x1b9015);}[_0x5009fc(0x149)](){const _0x3a9da0=_0x5009fc;throw new Error(_0x3a9da0(0x34b));}[_0x5009fc(0x12d)](){const _0x22a754=_0x5009fc;throw new Error(_0x22a754(0x138));}[_0x5009fc(0x262)](){return this;}[_0x5009fc(0x3fb)](){const _0x4c11e2=_0x5009fc;return this['_injector']['createInstance'](te,this[_0x4c11e2(0x187)],this['type'],null,[],this['_handler']);}[_0x5009fc(0x1f9)](){return this;}[_0x5009fc(0x2d9)](){const _0x24c895=_0x5009fc;throw new Error(_0x24c895(0x2b9));}[_0x5009fc(0x410)](){const _0x2c7c11=_0x5009fc,_0x5688c6=this[_0x2c7c11(0x19b)][_0x2c7c11(0x13a)](this[_0x2c7c11(0x187)]);return this['_handler'][_0x2c7c11(0x168)]({'from':_0x5688c6,'to':0x0}),this[_0x2c7c11(0x448)]['createInstance'](B,this[_0x2c7c11(0x187)],this[_0x2c7c11(0x1f3)],null,[],null,[],this[_0x2c7c11(0x3d8)]);}};pe=_e([f(0x3,_0x1f955f(_0x49adf8)),f(0x4,_0x1f955f(w)),f(0x5,_0x1f955f(_0x97bef)),f(0x6,_0xf4d2d4),f(0x7,_0xfcd33f),f(0x8,_0x5cfe43),f(0x9,_0x191396)],pe);let X=class extends ue{constructor(_0x213f63,_0xe04e08,_0x136f2d,_0x327441,_0x443b04,_0x4d7a38,_0x1b279a,_0x5545f3,_0x4e312a,_0x237ffb,_0x19c9a5,_0x355c77,_0x57c774,_0x2b4f87){const _0xf2502=_0x5009fc;super(_0x213f63,_0xe04e08,null,_0x136f2d,_0x327441,_0x237ffb,_0x2b4f87,_0x4d7a38,_0x1b279a),l(this,'status','pending'),l(this,_0xf2502(0x233),null),l(this,'_sendingTimer',null),(this[_0xf2502(0x448)]=_0x443b04,this[_0xf2502(0x40a)]=_0x5545f3,this['_logService']=_0x4e312a,this[_0xf2502(0x361)]=_0x19c9a5,this[_0xf2502(0x42e)]=_0x355c77,this[_0xf2502(0x250)]=_0x57c774);}[_0x5009fc(0x1cb)](_0x488d63){const _0x98813c=_0x5009fc;return this[_0x98813c(0x213)][_0x98813c(0x152)](_0x488d63),this[_0x98813c(0x25c)](),this;}[_0x5009fc(0x342)](_0x3e12b6){const _0x285c7b=_0x5009fc;if(this[_0x285c7b(0x211)](_0x3e12b6))return this[_0x285c7b(0x28e)](),this[_0x285c7b(0x448)][_0x285c7b(0x345)](B,this[_0x285c7b(0x187)],this[_0x285c7b(0x1f3)],null,this[_0x285c7b(0x213)],null,[_0x3e12b6],this['_handler']);try{const _0x4f0553=this[_0x285c7b(0x42e)][_0x285c7b(0x1ec)](_0x3e12b6,this[_0x285c7b(0x213)]);if(_0x110ba3(_0x4f0553)){const {c1Prime:_0x45be50,m2Prime:_0x4480fb}=_0x4f0553;this[_0x285c7b(0x303)](_0x45be50);const _0x2906e9=this[_0x285c7b(0x448)][_0x285c7b(0x345)](X,this['unitID'],this['type'],_0x4480fb,this['_handler']);return this[_0x285c7b(0x28e)](),_0x2906e9[_0x285c7b(0x2ba)](this[_0x285c7b(0x233)]?Math[_0x285c7b(0x32f)](0x0,new Date()[_0x285c7b(0x42f)]()-this['_scheduleTimestamp']):this[_0x285c7b(0x2eb)]()),_0x2906e9;}throw _0x4f0553['error'];}catch(_0x48061c){return this[_0x285c7b(0x208)]['error'](_0x48061c),this['_onConflict'](!0x1);}}['onRemoteAck'](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x5009fc(0x12d)](){throw new Error('[PendingState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x5009fc(0x3fb)](){const _0x193665=_0x5009fc;return this[_0x193665(0x28e)](),this[_0x193665(0x448)][_0x193665(0x345)](te,this['unitID'],this[_0x193665(0x1f3)],null,this[_0x193665(0x213)],this[_0x193665(0x3d8)]);}[_0x5009fc(0x1f9)](){return this;}[_0x5009fc(0x2ba)](_0xb81789){const _0x24a35c=_0x5009fc,_0x29d090=_0xb81789!=null?_0xb81789:this[_0x24a35c(0x2eb)]();this[_0x24a35c(0x233)]=new Date()[_0x24a35c(0x42f)](),this['_sendingTimer']=window[_0x24a35c(0x13f)](()=>{const _0x3efba2=_0x24a35c;this[_0x3efba2(0x28e)]();let _0x571661=null;switch(this[_0x3efba2(0x1f3)]){case k[_0x3efba2(0x33c)]:{_0x571661=ds(this[_0x3efba2(0x213)],this[_0x3efba2(0x187)],this['_univerInstanceService'],this[_0x3efba2(0x19b)],this[_0x3efba2(0x40a)]);break;}case k['UNIVER_DOC']:{this[_0x3efba2(0x213)]['every'](_0x385065=>_0x385065['id']===_0x185416['id'])?_0x571661=br(this[_0x3efba2(0x213)],this[_0x3efba2(0x187)],this[_0x3efba2(0x250)],this[_0x3efba2(0x19b)],this['_memberService']):_0x571661=ds(this['_pendingMutations'],this[_0x3efba2(0x187)],this['_univerInstanceService'],this[_0x3efba2(0x19b)],this[_0x3efba2(0x40a)]);break;}default:throw new Error(_0x3efba2(0x3c0)+this[_0x3efba2(0x1f3)]+'\x20in\x20_schedule.');}const {changeset:_0x2b9174,pendingMutations:_0x5654e6}=_0x571661;this[_0x3efba2(0x3d8)]['onSendChangeset'](_0x2b9174);const _0x42b236=_0x5654e6[_0x3efba2(0x21e)]?this[_0x3efba2(0x448)][_0x3efba2(0x345)](q,this[_0x3efba2(0x187)],this[_0x3efba2(0x1f3)],_0x2b9174,_0x5654e6,this[_0x3efba2(0x3d8)],void 0x0):this[_0x3efba2(0x448)]['createInstance'](Q,this[_0x3efba2(0x187)],this[_0x3efba2(0x1f3)],_0x2b9174,this[_0x3efba2(0x3d8)]);_0x42b236[_0x3efba2(0x25c)](),this[_0x3efba2(0x3d8)][_0x3efba2(0x1de)](this,_0x42b236);},_0x29d090);}[_0x5009fc(0x2eb)](){var _0x19ba48;const _0x2e9306=this['_configService']['getConfig']($);return(_0x19ba48=_0x2e9306==null?void 0x0:_0x2e9306['sendChangesetTimeout'])!=null?_0x19ba48:bn;}[_0x5009fc(0x2d9)](){const _0x9a3d0d=_0x5009fc;throw new Error(_0x9a3d0d(0x277));}['_clearScheduledTask'](){const _0x2ea5f1=_0x5009fc;this['_sendingTimer']!=null&&(clearTimeout(this[_0x2ea5f1(0x42a)]),this['_sendingTimer']=null);}[_0x5009fc(0x307)](_0x56d567){const _0x4c567c=_0x5009fc;return this[_0x4c567c(0x28e)](),this[_0x4c567c(0x448)][_0x4c567c(0x345)](ee,this[_0x4c567c(0x187)],this[_0x4c567c(0x1f3)],null,this[_0x4c567c(0x213)],this[_0x4c567c(0x3d8)],_0x56d567);}};X=_e([f(0x4,_0x1f955f(_0x97bef)),f(0x5,_0x1f955f(_0x49adf8)),f(0x6,_0x1f955f(w)),f(0x7,_0x1f955f(ce)),f(0x8,_0x5cfe43),f(0x9,_0xfcd33f),f(0xa,_0x4b96c2),f(0xb,_0x191396),f(0xc,_0x2d78d8),f(0xd,_0xf4d2d4)],X);let Q=class extends ue{constructor(_0x5cebcb,_0xd30034,_0xbf05d6,_0x5cae26,_0x4bf429,_0x2cbaa9,_0x38338d,_0x174869,_0x41bbe8,_0x58d4cd,_0x57e50){const _0x2bee9b=_0x5009fc;super(_0x5cebcb,_0xd30034,_0xbf05d6,[],_0x5cae26,_0x174869,_0x57e50,_0x2cbaa9,_0x38338d),l(this,'status',_0x2bee9b(0x112)),l(this,_0x2bee9b(0x282),0x0),l(this,_0x2bee9b(0xd2)),l(this,'_sender'),(this[_0x2bee9b(0x448)]=_0x4bf429,this[_0x2bee9b(0x208)]=_0x41bbe8,this[_0x2bee9b(0x42e)]=_0x58d4cd);}[_0x5009fc(0x1cb)](_0x50fd13){const _0x43448a=_0x5009fc;this[_0x43448a(0x28e)]();const _0x427b4d=this[_0x43448a(0x448)]['createInstance'](q,this[_0x43448a(0x187)],this[_0x43448a(0x1f3)],this[_0x43448a(0x417)],[_0x50fd13],this[_0x43448a(0x3d8)],this['_resendTimer']);return _0x427b4d[_0x43448a(0x25c)](),_0x427b4d;}['onRemoteChangeset'](_0x348b37){const _0x354805=_0x5009fc;if(this[_0x354805(0x211)](_0x348b37))return this['_clearScheduledTask'](),this[_0x354805(0x448)][_0x354805(0x345)](B,this[_0x354805(0x187)],this[_0x354805(0x1f3)],this['_awaitingChangeset'],[],null,[_0x348b37],this[_0x354805(0x3d8)]);try{const _0x236c6d=this[_0x354805(0x42e)]['transformChangesets']([_0x348b37],[this[_0x354805(0x417)]],!0x1);if(_0x47a6ae(_0x236c6d)){const {c1Prime:_0x5ab3c0,c2Prime:_0x5a25f8}=_0x236c6d;this[_0x354805(0x303)](_0x5ab3c0[0x0]),_0x5a25f8[0x0][_0x354805(0x272)]=this['_getCurrentRevision'](),this[_0x354805(0x28e)]();const _0x10af31=this[_0x354805(0x448)]['createInstance'](Q,this[_0x354805(0x187)],this[_0x354805(0x1f3)],_0x5a25f8[0x0],this[_0x354805(0x3d8)]);return _0x10af31['_updateLocalCache'](),_0x10af31;}return this[_0x354805(0x307)](!0x1);}catch(_0x33a911){return this[_0x354805(0x208)][_0x354805(0x1bb)](_0x33a911),this[_0x354805(0x307)](!0x1);}}[_0x5009fc(0x149)](_0xae6a1){const _0x3d9e3a=_0x5009fc;this[_0x3d9e3a(0x28e)]();const _0xc0d338=this['_revisionService'][_0x3d9e3a(0x13a)](this['unitID']);if(_0xae6a1[_0x3d9e3a(0x2c7)]<_0xc0d338-0x1)return this;if(this[_0x3d9e3a(0x211)](_0xae6a1))return this[_0x3d9e3a(0x448)][_0x3d9e3a(0x345)](B,this['unitID'],this[_0x3d9e3a(0x1f3)],null,[],this[_0x3d9e3a(0x417)],[],this[_0x3d9e3a(0x3d8)]);this[_0x3d9e3a(0xef)]();const _0x4ae105=this['_injector'][_0x3d9e3a(0x345)](pe,this[_0x3d9e3a(0x187)],this[_0x3d9e3a(0x1f3)],this[_0x3d9e3a(0x3d8)]);return _0x4ae105[_0x3d9e3a(0x25c)](),_0x4ae105;}[_0x5009fc(0x12d)](_0x296087){const _0x4da83a=_0x5009fc;return this[_0x4da83a(0x307)](!!(_0x296087!=null&&_0x296087[_0x4da83a(0x28d)]));}[_0x5009fc(0x262)](_0x36c983){const _0x3f6dee=_0x5009fc;return this[_0x3f6dee(0x282)]>Ys?this[_0x3f6dee(0x3fb)]():(this[_0x3f6dee(0xd2)]=Gs(this[_0x3f6dee(0x282)],{'timeout':this['_resendTimeout'],'reqId':_0x36c983[_0x3f6dee(0x421)]}),this[_0x3f6dee(0x34a)]=this['_resendTimer'][_0x3f6dee(0x206)](({reqId:_0x333fc0,timeout:_0x3ceffa})=>{const _0x534c67=_0x3f6dee;this[_0x534c67(0x33d)](_0x333fc0,_0x3ceffa);}),this);}['toggleOffline'](){const _0x69f821=_0x5009fc;return this[_0x69f821(0x28e)](),this[_0x69f821(0x448)]['createInstance'](te,this[_0x69f821(0x187)],this[_0x69f821(0x1f3)],this[_0x69f821(0x417)],[],this[_0x69f821(0x3d8)]);}[_0x5009fc(0x1f9)](){return this;}['resend'](){const _0x4f6455=_0x5009fc;this[_0x4f6455(0x3d8)][_0x4f6455(0x40f)](this[_0x4f6455(0x417)]);}[_0x5009fc(0x307)](_0x1381f6){const _0x4a7ca5=_0x5009fc;return this['_clearScheduledTask'](),this[_0x4a7ca5(0x448)][_0x4a7ca5(0x345)](ee,this[_0x4a7ca5(0x187)],this[_0x4a7ca5(0x1f3)],this[_0x4a7ca5(0x417)],[],this[_0x4a7ca5(0x3d8)],_0x1381f6);}[_0x5009fc(0x33d)](_0x5535b0,_0x2a2b53){const _0x36dcbd=_0x5009fc;var _0x12ec0e;_0x5535b0===((_0x12ec0e=this[_0x36dcbd(0x417)])==null?void 0x0:_0x12ec0e[_0x36dcbd(0x421)])&&(this[_0x36dcbd(0x2d9)](),this[_0x36dcbd(0x282)]=_0x2a2b53===0x0?0x3e8:_0x2a2b53*0x2);}['_clearScheduledTask'](){const _0x167196=_0x5009fc;var _0x67c6ca;(_0x67c6ca=this[_0x167196(0x34a)])==null||_0x67c6ca['unsubscribe'](),this[_0x167196(0x282)]=0x0;}};Q=_e([f(0x4,_0x1f955f(_0x97bef)),f(0x5,_0x1f955f(_0x49adf8)),f(0x6,_0x1f955f(w)),f(0x7,_0xfcd33f),f(0x8,_0x5cfe43),f(0x9,_0x191396),f(0xa,_0xf4d2d4)],Q);let q=class extends ue{constructor(_0x316df2,_0x290869,_0x38bb0b,_0x228fa6,_0x44227e,_0x187431,_0x30893d,_0x47ee90,_0x2fdcc9,_0x43c391,_0x3b4213,_0x52fcd6,_0x263334){const _0x79974b=_0x5009fc;super(_0x316df2,_0x290869,_0x38bb0b,_0x228fa6,_0x44227e,_0x43c391,_0x263334,_0x47ee90,_0x2fdcc9),l(this,_0x79974b(0x190),'awaiting_with_pending'),l(this,'_resendTimeout',0x0),l(this,_0x79974b(0xd2)),l(this,_0x79974b(0x34a)),(this[_0x79974b(0x448)]=_0x30893d,this[_0x79974b(0x208)]=_0x3b4213,this[_0x79974b(0x42e)]=_0x52fcd6,_0x187431&&(this[_0x79974b(0xd2)]=_0x187431,this[_0x79974b(0x34a)]=this[_0x79974b(0xd2)]['subscribe'](({reqId:_0x168ea7,timeout:_0x378ec9})=>{const _0x1f1741=_0x79974b;this[_0x1f1741(0x33d)](_0x168ea7,_0x378ec9);})));}['appendMutation'](_0x2b7d23){const _0x1187c7=_0x5009fc;return this[_0x1187c7(0x213)][_0x1187c7(0x152)](_0x2b7d23),this;}[_0x5009fc(0x342)](_0x28fef4){const _0x5a8a11=_0x5009fc;if(this['_checkMissing'](_0x28fef4))return this['_clearScheduledTask'](),this[_0x5a8a11(0x448)]['createInstance'](B,this[_0x5a8a11(0x187)],this[_0x5a8a11(0x1f3)],this[_0x5a8a11(0x417)],this[_0x5a8a11(0x213)],null,[_0x28fef4],this['_handler']);try{const _0x374467=this[_0x5a8a11(0x42e)][_0x5a8a11(0x292)]([_0x28fef4],[this['_awaitingChangeset']],!0x1);if(_0x47a6ae(_0x374467)){const {c1Prime:_0x6c36aa,c2Prime:_0x4f70ba}=_0x374467,_0x646a4e=this[_0x5a8a11(0x42e)][_0x5a8a11(0x1ec)](_0x6c36aa[0x0],this[_0x5a8a11(0x213)]);if(_0x110ba3(_0x646a4e)){const {c1Prime:_0x80bd1f,m2Prime:_0xb1a4f3}=_0x646a4e;return this['_executeRemoteChangeset'](_0x80bd1f),_0x4f70ba[0x0]['baseRev']=this[_0x5a8a11(0x174)](),this[_0x5a8a11(0x28e)](),this[_0x5a8a11(0x448)][_0x5a8a11(0x345)](q,this['unitID'],this[_0x5a8a11(0x1f3)],_0x4f70ba[0x0],_0xb1a4f3,this[_0x5a8a11(0x3d8)],void 0x0);}throw _0x646a4e['error'];}throw _0x374467[_0x5a8a11(0x1bb)];}catch(_0x3647c6){return this[_0x5a8a11(0x208)][_0x5a8a11(0x1bb)](_0x3647c6),this[_0x5a8a11(0x307)](!0x1);}}[_0x5009fc(0x149)](_0xc931c0){const _0x228178=_0x5009fc;if(this[_0x228178(0x28e)](),this['_checkMissing'](_0xc931c0))return this[_0x228178(0x448)][_0x228178(0x345)](B,this['unitID'],this[_0x228178(0x1f3)],null,this[_0x228178(0x213)],this[_0x228178(0x417)],[],this[_0x228178(0x3d8)]);this[_0x228178(0xef)]();const _0x3636d3=this[_0x228178(0x448)]['createInstance'](X,this['unitID'],this[_0x228178(0x1f3)],this[_0x228178(0x213)],this[_0x228178(0x3d8)]);return _0x3636d3[_0x228178(0x2ba)](),_0x3636d3[_0x228178(0x25c)](),_0x3636d3;}[_0x5009fc(0x12d)](_0x4aa165){const _0x4bd1fe=_0x5009fc;return this[_0x4bd1fe(0x307)](!!(_0x4aa165!=null&&_0x4aa165[_0x4bd1fe(0x28d)]));}[_0x5009fc(0x262)](_0x258c6b){const _0x51c6ef=_0x5009fc;return this[_0x51c6ef(0x282)]>Ys?this['toggleOffline']():(this['_resendTimer']=Gs(this[_0x51c6ef(0x282)],{'timeout':this[_0x51c6ef(0x282)],'reqId':_0x258c6b[_0x51c6ef(0x421)]}),this[_0x51c6ef(0x34a)]=this[_0x51c6ef(0xd2)][_0x51c6ef(0x206)](({reqId:_0x403a17,timeout:_0x33a74d})=>{const _0x4e559b=_0x51c6ef;this[_0x4e559b(0x33d)](_0x403a17,_0x33a74d);}),this);}[_0x5009fc(0x3fb)](){const _0x3d8b90=_0x5009fc;return this[_0x3d8b90(0x28e)](),this['_injector']['createInstance'](te,this['unitID'],this[_0x3d8b90(0x1f3)],this[_0x3d8b90(0x417)],this[_0x3d8b90(0x213)],this[_0x3d8b90(0x3d8)]);}[_0x5009fc(0x1f9)](){return this;}[_0x5009fc(0x2d9)](){const _0x4d0361=_0x5009fc;this[_0x4d0361(0x3d8)][_0x4d0361(0x40f)](this[_0x4d0361(0x417)]);}[_0x5009fc(0x307)](_0x207a20){const _0x1f75cd=_0x5009fc;return this['_clearScheduledTask'](),this['_injector']['createInstance'](ee,this[_0x1f75cd(0x187)],this[_0x1f75cd(0x1f3)],null,this['_pendingMutations'],this[_0x1f75cd(0x3d8)],_0x207a20);}['_resendWithTimeout'](_0x745b6c,_0x412c42){const _0x324742=_0x5009fc;var _0x16caae;_0x745b6c===((_0x16caae=this['_awaitingChangeset'])==null?void 0x0:_0x16caae[_0x324742(0x421)])&&(this['resend'](),this[_0x324742(0x282)]=_0x412c42===0x0?0x3e8:_0x412c42*0x2);}[_0x5009fc(0x28e)](){const _0x55cb73=_0x5009fc;var _0x23f19e;(_0x23f19e=this[_0x55cb73(0x34a)])==null||_0x23f19e[_0x55cb73(0x32a)](),this['_resendTimeout']=0x0;}};q=_e([f(0x6,_0x1f955f(_0x97bef)),f(0x7,_0x1f955f(_0x49adf8)),f(0x8,_0x1f955f(w)),f(0x9,_0xfcd33f),f(0xa,_0x5cfe43),f(0xb,_0x191396),f(0xc,_0xf4d2d4)],q);let ee=class extends ue{constructor(_0x47ede6,_0x58ba89,_0xf241e7,_0x1b07da,_0x1ee52e,_0xac6500=!0x1,_0x3bbe40,_0x30e0ee,_0x1c1fe1,_0x40d8ce,_0x113e2f,_0x36da2b,_0x1dda53){const _0x560dd7=_0x5009fc;super(_0x47ede6,_0x58ba89,_0xf241e7,_0x1b07da,_0x1ee52e,_0x30e0ee,_0x1c1fe1,_0x113e2f,_0x40d8ce),l(this,_0x560dd7(0x190),'conflict'),(this['_isPermissionRej']=_0xac6500,this['_permissionService']=_0x3bbe40,this[_0x560dd7(0x2a6)]=_0x36da2b,this[_0x560dd7(0x223)]=_0x1dda53,this[_0x560dd7(0x3cb)](),this[_0x560dd7(0x1a8)](),this[_0x560dd7(0x1ff)]());}[_0x5009fc(0x1cb)](){return this;}[_0x5009fc(0x342)](){return this;}[_0x5009fc(0x149)](){return this;}['onRemoteRej'](){return this;}[_0x5009fc(0x262)](){return this;}[_0x5009fc(0x3fb)](){return this;}[_0x5009fc(0x1f9)](){return this;}[_0x5009fc(0x2d9)](){const _0x757832=_0x5009fc;throw new Error(_0x757832(0x145));}[_0x5009fc(0x1a8)](){const _0x5b5287=_0x5009fc;this[_0x5b5287(0x156)][_0x5b5287(0x1f4)](this[_0x5b5287(0x187)],this[_0x5b5287(0x1f3)],null,[]);}[_0x5009fc(0x3cb)](){const _0x4d7e81=_0x5009fc;this[_0x4d7e81(0x165)]?this[_0x4d7e81(0x223)][_0x4d7e81(0xf7)]({'title':this[_0x4d7e81(0x2a6)]['t']('permission.title'),'content':this['_localeService']['t'](_0x4d7e81(0x3f1)),'type':'error','duration':0x0}):this['_notificationService'][_0x4d7e81(0xf7)]({'title':this[_0x4d7e81(0x2a6)]['t'](_0x4d7e81(0x2bc)),'content':this[_0x4d7e81(0x2a6)]['t']('conflict.content'),'type':_0x4d7e81(0x1bb),'duration':0x0});}['_disableEditing'](){const _0x1d5040=_0x5009fc;this[_0x1d5040(0x1e4)][_0x1d5040(0x2c8)](new _0x496922(this[_0x1d5040(0x187)])['id'],!0x1);}};ee=_e([f(0x6,_0x1f955f(_0x46a842)),f(0x7,_0xfcd33f),f(0x8,_0xf4d2d4),f(0x9,_0x1f955f(w)),f(0xa,_0x1f955f(_0x49adf8)),f(0xb,_0x1f955f(_0x371029)),f(0xc,_0x258190)],ee);let te=class extends ue{constructor(_0x38ac95,_0x337acd,_0x132581,_0x2c1634,_0x2f0703,_0x23ed55,_0x3d6eed,_0x12033d,_0x47e096,_0x2bcc5b){const _0x17c653=_0x5009fc;super(_0x38ac95,_0x337acd,_0x132581,_0x2c1634,_0x2f0703,_0x47e096,_0x2bcc5b,_0x3d6eed,_0x12033d),l(this,_0x17c653(0x190),_0x17c653(0x170)),this['_injector']=_0x23ed55;}[_0x5009fc(0x1cb)](_0x580138){const _0x1415ef=_0x5009fc;return this['_pendingMutations']['push'](_0x580138),this[_0x1415ef(0x25c)](),this;}[_0x5009fc(0x342)](_0x19496d){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x5009fc(0x149)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x5009fc(0x12d)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x5009fc(0x262)](){return this;}['toggleOffline'](){return this;}[_0x5009fc(0x1f9)](){const _0x269720=_0x5009fc,{_injector:_0x2ff7e0,_pendingMutations:_0x2887e1,_awaitingChangeset:_0x3e2a17,unitID:_0x31a548,_handler:_0x486a67,type:_0xe1d6ea}=this,_0x56af65=Ks(_0x2ff7e0,_0x31a548,_0xe1d6ea,_0x3e2a17,_0x2887e1,_0x486a67);return _0x56af65 instanceof X?_0x56af65[_0x269720(0x2ba)]():(_0x56af65 instanceof q||_0x56af65 instanceof Q)&&_0x56af65['resend'](),_0x56af65;}[_0x5009fc(0x2d9)](){const _0x372ea6=_0x5009fc;throw new Error(_0x372ea6(0x21b));}};te=_e([f(0x5,_0x1f955f(_0x97bef)),f(0x6,_0x1f955f(_0x49adf8)),f(0x7,_0x1f955f(w)),f(0x8,_0xfcd33f),f(0x9,_0xf4d2d4)],te);let B=class extends ue{constructor(_0x2240ef,_0x111780,_0xa4087e,_0x25c8e8,_0x2e9792,_0x4b1180,_0x3ac75a,_0x1b9e66,_0x56ae73,_0x383e86,_0xd7c9be,_0x11f839,_0x366685,_0x164864){const _0x5e4e5c=_0x5009fc;super(_0x2240ef,_0x111780,_0xa4087e,_0x25c8e8,_0x3ac75a,_0x11f839,_0x366685,_0x56ae73,_0x383e86),l(this,_0x5e4e5c(0x190),_0x5e4e5c(0x2ef)),(this[_0x5e4e5c(0x373)]=_0x2e9792,this[_0x5e4e5c(0x3e3)]=_0x4b1180,this[_0x5e4e5c(0x448)]=_0x1b9e66,this['_logService']=_0xd7c9be,this[_0x5e4e5c(0x42e)]=_0x164864);}[_0x5009fc(0x237)](_0x312550){const _0x193703=_0x5009fc;try{const _0x3d2ce7=[..._0x312550,...this[_0x193703(0x3e3)]],_0x1dc628=[this['_awaitingChangeset']||this[_0x193703(0x373)]][_0x193703(0x376)](_0x3c9299=>!!_0x3c9299);let _0x4d0e4d,_0xd7aa2b;if(_0x1dc628[_0x193703(0x21e)]){const _0x29ebe9=this[_0x193703(0x42e)]['transformChangesets'](_0x3d2ce7,_0x1dc628,!0x1);if(!_0x47a6ae(_0x29ebe9))throw _0x29ebe9[_0x193703(0x1bb)];_0x4d0e4d=_0x29ebe9[_0x193703(0x2b4)],_0xd7aa2b=_0x29ebe9[_0x193703(0xfc)];}else _0x4d0e4d=_0x3d2ce7,_0xd7aa2b=[];let _0x412d49=this[_0x193703(0x213)];_0x4d0e4d['forEach'](_0x38cc7f=>{const _0x2dfb99=_0x193703;let _0x338d17;if(_0x412d49['length']){const _0x2f9e99=this['_transformService']['transformMutationsWithChangeset'](_0x38cc7f,_0x412d49);if(!_0x110ba3(_0x2f9e99))throw _0x2f9e99[_0x2dfb99(0x1bb)];_0x338d17=_0x2f9e99['c1Prime'],_0x412d49=_0x2f9e99[_0x2dfb99(0xd1)];}else _0x338d17=_0x38cc7f;this[_0x2dfb99(0x303)](_0x338d17);}),this[_0x193703(0x373)]&&this['_incrementRevisionNumber'](),this[_0x193703(0x417)]&&_0xd7aa2b[_0x193703(0x21e)]&&(_0xd7aa2b[0x0][_0x193703(0x272)]=this[_0x193703(0x174)]());let _0x510bd2;if(this[_0x193703(0x417)]&&_0x412d49[_0x193703(0x21e)]!==0x0)_0x510bd2=this['_injector'][_0x193703(0x345)](q,this[_0x193703(0x187)],this[_0x193703(0x1f3)],_0xd7aa2b[0x0],_0x412d49,this['_handler'],void 0x0);else{if(this[_0x193703(0x417)]&&_0x412d49[_0x193703(0x21e)]===0x0)_0xd7aa2b[0x0][_0x193703(0x272)]=this['_getCurrentRevision'](),_0x510bd2=this[_0x193703(0x448)][_0x193703(0x345)](Q,this[_0x193703(0x187)],this[_0x193703(0x1f3)],_0xd7aa2b[0x0],this[_0x193703(0x3d8)]);else{if(_0x412d49[_0x193703(0x21e)]!==0x0){const _0x546f7f=this[_0x193703(0x448)][_0x193703(0x345)](X,this[_0x193703(0x187)],this['type'],_0x412d49,this['_handler']);_0x546f7f[_0x193703(0x2ba)](),_0x510bd2=_0x546f7f;}else _0x510bd2=this[_0x193703(0x448)][_0x193703(0x345)](pe,this[_0x193703(0x187)],this[_0x193703(0x1f3)],this[_0x193703(0x3d8)]);}}return _0x510bd2[_0x193703(0x25c)](),_0x510bd2;}catch(_0x3f6052){return this[_0x193703(0x208)][_0x193703(0x1bb)]('[FetchMissState]',_0x193703(0x3d9),_0x3f6052),this['_injector'][_0x193703(0x345)](ee,this['unitID'],this[_0x193703(0x1f3)],this['_awaitingChangeset'],this[_0x193703(0x213)],this[_0x193703(0x3d8)],!0x1);}}[_0x5009fc(0x2d9)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x5780e4){const _0x19b710=_0x5009fc;return this['_pendingMutations'][_0x19b710(0x152)](_0x5780e4),this;}[_0x5009fc(0x342)](_0x166792){const _0x420ac8=_0x5009fc;return this['_queuedRemoteChangesets'][_0x420ac8(0x152)](_0x166792),this;}[_0x5009fc(0x149)](_0x195f2a){const _0x2355a4=_0x5009fc;if(this[_0x2355a4(0x417)])return this[_0x2355a4(0x373)]=this[_0x2355a4(0x417)],this[_0x2355a4(0x417)]=null,this;throw new Error(_0x2355a4(0x173));}[_0x5009fc(0x12d)](_0x4b2cfa){const _0x34caa0=_0x5009fc;return this[_0x34caa0(0x307)](!!(_0x4b2cfa!=null&&_0x4b2cfa[_0x34caa0(0x28d)]));}[_0x5009fc(0x262)](){return this;}[_0x5009fc(0x3fb)](){const _0x276f1b=_0x5009fc;return this[_0x276f1b(0x448)][_0x276f1b(0x345)](te,this[_0x276f1b(0x187)],this['type'],this[_0x276f1b(0x417)],this[_0x276f1b(0x213)],this['_handler']);}['toggleOnline'](){return this;}[_0x5009fc(0x307)](_0x38a0f4){const _0x28973f=_0x5009fc;return this[_0x28973f(0x448)][_0x28973f(0x345)](ee,this[_0x28973f(0x187)],this[_0x28973f(0x1f3)],this[_0x28973f(0x417)],this[_0x28973f(0x213)],this[_0x28973f(0x3d8)],_0x38a0f4);}};B=_e([f(0x7,_0x1f955f(_0x97bef)),f(0x8,_0x1f955f(_0x49adf8)),f(0x9,_0x1f955f(w)),f(0xa,_0x5cfe43),f(0xb,_0xfcd33f),f(0xc,_0xf4d2d4),f(0xd,_0x191396)],B);function Ks(_0x2f0748,_0x1c4a27,_0x3ec3d3,_0x3be81f,_0x11994e,_0x3dfd82){const _0x5e0314=_0x5009fc;return _0x3be81f&&_0x11994e['length']?_0x2f0748[_0x5e0314(0x345)](q,_0x1c4a27,_0x3ec3d3,_0x3be81f,_0x11994e,_0x3dfd82,void 0x0):_0x3be81f?_0x2f0748[_0x5e0314(0x345)](Q,_0x1c4a27,_0x3ec3d3,_0x3be81f,_0x3dfd82):_0x11994e[_0x5e0314(0x21e)]?_0x2f0748[_0x5e0314(0x345)](X,_0x1c4a27,_0x3ec3d3,_0x11994e,_0x3dfd82):_0x2f0748[_0x5e0314(0x345)](pe,_0x1c4a27,_0x3ec3d3,_0x3dfd82);}var Dr=Object[_0x5009fc(0x235)],wr=Object[_0x5009fc(0x327)],Wt=(_0x470b8c,_0x2da15a,_0x1c6d6c,_0x334892)=>{for(var _0x3cdc72=_0x334892>0x1?void 0x0:_0x334892?wr(_0x2da15a,_0x1c6d6c):_0x2da15a,_0x576bd1=_0x470b8c['length']-0x1,_0x4465c5;_0x576bd1>=0x0;_0x576bd1--)(_0x4465c5=_0x470b8c[_0x576bd1])&&(_0x3cdc72=(_0x334892?_0x4465c5(_0x2da15a,_0x1c6d6c,_0x3cdc72):_0x4465c5(_0x3cdc72))||_0x3cdc72);return _0x334892&&_0x3cdc72&&Dr(_0x2da15a,_0x1c6d6c,_0x3cdc72),_0x3cdc72;},p=(_0x3de80d,_0x5c105f)=>(_0x3decd4,_0x2462bd)=>_0x5c105f(_0x3decd4,_0x2462bd,_0x3de80d);let qe=class extends _0x5889a4{constructor(_0x39f594,_0x29940b,_0x9082e4,_0x29d4c4,_0x30968f,_0x586fc9,_0x38783e,_0x474bbe,_0x58cc2e,_0x1d18cd,_0x809044,_0x337262,_0x30c3b3){const _0x74ace6=_0x5009fc;super(),l(this,_0x74ace6(0x358),new _0x3a492f(null)),l(this,_0x74ace6(0x254),this[_0x74ace6(0x358)][_0x74ace6(0x396)]()),l(this,_0x74ace6(0x311)),l(this,_0x74ace6(0x243),!0x1),l(this,_0x74ace6(0x226),''),l(this,'_changesetReqId',0x0),l(this,_0x74ace6(0x27c),this[_0x74ace6(0x254)][_0x74ace6(0x44f)](_0x563f1f(_0x4c4eee=>_0x4c4eee?_0x4c4eee['status']:P[_0x74ace6(0x29e)]),_0x2ee8ad(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x74ace6(0x20f),[]),(this['unitID']=_0x39f594,this[_0x74ace6(0x24e)]=_0x29940b,this[_0x74ace6(0x22e)]=_0x9082e4,this[_0x74ace6(0x448)]=_0x29d4c4,this[_0x74ace6(0x156)]=_0x30968f,this['_compressMutationService']=_0x586fc9,this[_0x74ace6(0x2a6)]=_0x38783e,this['_revisionService']=_0x474bbe,this[_0x74ace6(0x208)]=_0x58cc2e,this[_0x74ace6(0x289)]=_0x1d18cd,this[_0x74ace6(0x104)]=_0x809044,this[_0x74ace6(0x1e4)]=_0x337262,this[_0x74ace6(0x39e)]=_0x30c3b3);}get[_0x5009fc(0x27a)](){const _0x48f0c9=_0x5009fc;return this[_0x48f0c9(0x311)];}async[_0x5009fc(0x3a7)](){const _0x1100ad=_0x5009fc;if(this[_0x1100ad(0x27a)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x1100ad(0x2bf)]();}[_0x5009fc(0x2a5)](){const _0x4a1097=_0x5009fc;return this[_0x4a1097(0x243)]=!0x0,_0x2b2e4c(()=>{const _0x1ec453=_0x4a1097;this[_0x1ec453(0x243)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x5009fc(0x423)](_0x491b07){const _0x529b28=_0x5009fc;this[_0x529b28(0x311)]=_0x491b07,this[_0x529b28(0x358)][_0x529b28(0x1cf)](_0x491b07);}async['_init'](){const _0x40e87c=_0x5009fc;var _0x3139c4;this[_0x40e87c(0x423)](await this[_0x40e87c(0x1e0)]()),this[_0x40e87c(0x39e)]&&((_0x3139c4=this[_0x40e87c(0x39e)])==null||_0x3139c4[_0x40e87c(0x132)](this[_0x40e87c(0x187)]),this[_0x40e87c(0x341)](this[_0x40e87c(0x39e)][_0x40e87c(0x378)](this[_0x40e87c(0x187)])['subscribe'](_0x478f0e=>{const _0xf9a9ed=_0x40e87c;this['_logService']['debug'](_0xf9a9ed(0x2ed),_0xf9a9ed(0x3b2),_0x478f0e),_0x478f0e===Fs['OTHER_CLIENTS_EDITING']?(this[_0xf9a9ed(0x104)][_0xf9a9ed(0xf7)]({'content':this[_0xf9a9ed(0x2a6)]['t']('collaboration.single-unit.warning'),'type':_0x3738f0[_0xf9a9ed(0x28f)]}),this[_0xf9a9ed(0x1e4)][_0xf9a9ed(0x2c8)](new _0x496922(this[_0xf9a9ed(0x187)])['id'],!0x1)):this[_0xf9a9ed(0x1e4)][_0xf9a9ed(0x2c8)](new _0x496922(this['unitID'])['id'],!0x0);})));let _0x4cc210=!0x1;return this[_0x40e87c(0x341)](this[_0x40e87c(0x24e)][_0x40e87c(0x333)][_0x40e87c(0x206)](_0x4d4508=>{const _0xcc33c8=_0x40e87c;_0x4d4508===Y[_0xcc33c8(0x16c)]?this[_0xcc33c8(0x446)](_0x4cc210):_0x4d4508===Y[_0xcc33c8(0x29e)]&&(_0x4cc210=!0x0,this[_0xcc33c8(0x135)]());})),this['disposeWithMe'](this['session'][_0x40e87c(0x427)]['subscribe'](_0x40f79c=>{const _0xe11f7e=_0x40e87c;try{switch(_0x40f79c[_0xe11f7e(0x299)]){case _0x5bf9c6[_0xe11f7e(0x101)]:{this[_0xe11f7e(0x3b4)](_0x3a768d(_0x40f79c[_0xe11f7e(0x363)]));break;}case _0x5bf9c6['CHANGESET_ACK']:{this[_0xe11f7e(0xe3)](_0x40f79c['data']);break;}case _0x5bf9c6[_0xe11f7e(0x146)]:{this[_0xe11f7e(0x433)]();break;}case _0x5bf9c6[_0xe11f7e(0x2d0)]:{this[_0xe11f7e(0x31e)](_0x40f79c[_0xe11f7e(0x363)]);break;}case _0x5bf9c6[_0xe11f7e(0x2ad)]:{this['_onFetchMissResult'](_0x40f79c[_0xe11f7e(0x363)][_0xe11f7e(0x2dd)][_0xe11f7e(0x1f8)](_0x50ea92=>_0x3a768d(_0x50ea92)));break;}case _0x5bf9c6[_0xe11f7e(0x12e)]:this[_0xe11f7e(0x433)]({'isPermissionRej':!0x0});}}catch(_0x79ece9){throw console['error']('Error\x20on\x20receiving\x20event',_0x79ece9),_0x79ece9;}})),this['_state'];}[_0x5009fc(0x218)](){const _0x49bc13=_0x5009fc;this[_0x49bc13(0x1c3)]=!0x1;}['_lockTransition'](){const _0x284daa=_0x5009fc;if(this[_0x284daa(0x1c3)])throw new Error(_0x284daa(0x166));this['_transitionLocked']=!0x0;}[_0x5009fc(0x308)](_0x4f8bf4){const _0x4ad096=_0x5009fc;this[_0x4ad096(0x279)](),this[_0x4ad096(0x423)](this[_0x4ad096(0x311)][_0x4ad096(0x1cb)](_0x4f8bf4)),this[_0x4ad096(0x218)]();}[_0x5009fc(0x3b4)](_0x246bff){const _0x51a208=_0x5009fc;if(!(_0x246bff[_0x51a208(0x2c7)]<=this['_revisionService'][_0x51a208(0x13a)](this[_0x51a208(0x187)]))){if(this[_0x51a208(0x243)]){this['_remoteChangesetQueue'][_0x51a208(0x152)](_0x246bff);return;}this['_applyRemoteChangeset'](_0x246bff);}}[_0x5009fc(0x447)](){const _0x3b5c1e=_0x5009fc;this[_0x3b5c1e(0x20f)]['forEach'](_0x29fa4b=>this[_0x3b5c1e(0x122)](_0x29fa4b)),this[_0x3b5c1e(0x20f)]=[];}['_applyRemoteChangeset'](_0x3d9e6f){const _0x54eb77=_0x5009fc,_0xb29997=this['_compressMutationService'][_0x54eb77(0xf1)][_0x54eb77(0x31d)](this[_0x54eb77(0x1fe)][_0x54eb77(0xf1)]['getInterceptPoints']()[_0x54eb77(0x19f)])(_0x3d9e6f[_0x54eb77(0x12c)],null)||_0x3d9e6f['mutations'],_0x3b61c9={..._0x3d9e6f,'mutations':_0xb29997};this[_0x54eb77(0x279)](),this[_0x54eb77(0x423)](this[_0x54eb77(0x311)][_0x54eb77(0x342)](_0x3b61c9)),this[_0x54eb77(0x218)]();}[_0x5009fc(0xe3)](_0x53894f){const _0x2dadf3=_0x5009fc;this['_lockTransition'](),this['_updateState'](this[_0x2dadf3(0x311)][_0x2dadf3(0x149)](_0x53894f)),this[_0x2dadf3(0x218)]();}[_0x5009fc(0x433)](_0x35449d){const _0x514970=_0x5009fc;this[_0x514970(0x279)](),this[_0x514970(0x423)](this[_0x514970(0x311)][_0x514970(0x12d)](_0x35449d)),this['_unlockTransition']();}[_0x5009fc(0x31e)](_0x4bd224){const _0x35fa9d=_0x5009fc;this[_0x35fa9d(0x279)](),this[_0x35fa9d(0x423)](this[_0x35fa9d(0x311)][_0x35fa9d(0x262)](_0x4bd224)),this[_0x35fa9d(0x218)]();}[_0x5009fc(0x30e)](_0x11324e){const _0x125b80=_0x5009fc;if(!(this[_0x125b80(0x311)]instanceof B))throw new TypeError(_0x125b80(0x234));const _0x1ccbbf=_0x11324e[_0x125b80(0x1f8)](_0x39c6e7=>{const _0x34c97b=_0x125b80,_0x12594a=this[_0x34c97b(0x1fe)][_0x34c97b(0xf1)][_0x34c97b(0x31d)](this['_compressMutationService'][_0x34c97b(0xf1)]['getInterceptPoints']()[_0x34c97b(0x19f)])(_0x39c6e7['mutations'],null)||_0x39c6e7[_0x34c97b(0x12c)];return{..._0x39c6e7,'mutations':_0x12594a};});this['_lockTransition'](),this[_0x125b80(0x423)](this[_0x125b80(0x311)]['onMissedChangesetFetched'](_0x1ccbbf)),this[_0x125b80(0x218)]();}[_0x5009fc(0x135)](){const _0x34d7ef=_0x5009fc;this[_0x34d7ef(0x279)](),this[_0x34d7ef(0x423)](this['_state'][_0x34d7ef(0x3fb)]()),this[_0x34d7ef(0x218)]();}[_0x5009fc(0x446)](_0x4d7201=!0x1){const _0x111345=_0x5009fc;this[_0x111345(0x279)](),this[_0x111345(0x423)](this[_0x111345(0x311)]['toggleOnline']()),this[_0x111345(0x218)]();const _0x5853b1=this[_0x111345(0x311)];_0x4d7201&&_0x5853b1 instanceof pe&&(this['_lockTransition'](),this[_0x111345(0x423)](_0x5853b1[_0x111345(0x410)]()),this[_0x111345(0x218)]());}async['_createInitialState'](){return new Promise(_0x588646=>{const _0x25932d=_0x3280;this[_0x25932d(0x24e)][_0x25932d(0x333)]['pipe'](_0x1825da(0x1))[_0x25932d(0x206)](async _0x22313e=>{const _0x52cfb0=_0x25932d;_0x588646(await this['_createInitialStateImpl'](_0x22313e===Y[_0x52cfb0(0x16c)]));});});}[_0x5009fc(0x26f)](){const _0x45dd12=_0x5009fc,_0x45aed0=this[_0x45dd12(0x187)];return{'onStateChange':(_0xfc22af,_0x1a9792)=>{const _0x52052e=_0x45dd12;if(_0xfc22af!==this[_0x52052e(0x311)])throw new Error(_0x52052e(0x3eb)+_0xfc22af[_0x52052e(0x190)]+_0x52052e(0x27d)+_0x1a9792[_0x52052e(0x190)]+_0x52052e(0x2c5)+this[_0x52052e(0x311)]['status']);this['_updateState'](_0x1a9792);},'onSendChangeset':_0x589ca0=>{const _0x5b377e=_0x45dd12;_0x589ca0[_0x5b377e(0x200)]||(_0x589ca0[_0x5b377e(0x200)]=this['_changesetSessionId'],_0x589ca0[_0x5b377e(0x421)]=++this['_changesetReqId']);const _0xcc83f0={'eventID':_0x5bf9c6[_0x5b377e(0x389)],'data':{'unitID':_0x589ca0[_0x5b377e(0x187)],'unitType':this[_0x5b377e(0x22e)],'changeset':_0x589ca0,'memberID':this[_0x5b377e(0x24e)][_0x5b377e(0x2ae)]()}};this[_0x5b377e(0x24e)][_0x5b377e(0x3ca)](_0xcc83f0,this[_0x5b377e(0x187)]);},'onMissingChangesets':({from:_0x558d9e,to:_0x2b741})=>{const _0x4a97e9=_0x45dd12;this[_0x4a97e9(0x208)][_0x4a97e9(0x232)](_0x4a97e9(0x2ed),_0x4a97e9(0x2db)+_0x558d9e+_0x4a97e9(0x15a)+_0x2b741);const _0x12f377={'eventID':_0x5bf9c6[_0x4a97e9(0x219)],'data':{'unitID':_0x45aed0,'unitType':this[_0x4a97e9(0x22e)],'from':_0x558d9e,'to':_0x2b741}};this[_0x4a97e9(0x24e)][_0x4a97e9(0x3ca)](_0x12f377,this[_0x4a97e9(0x187)]);}};}async['_createInitialStateImpl'](_0x4a628e){const _0x35beb9=_0x5009fc;var _0x1979b3,_0x1f0a41;const _0x3d0746=await this[_0x35beb9(0x156)][_0x35beb9(0x1ad)](this[_0x35beb9(0x187)]),_0x3ca198=(_0x1979b3=_0x3d0746==null?void 0x0:_0x3d0746[_0x35beb9(0x12c)])!=null?_0x1979b3:[],_0x5797ae=(_0x1f0a41=_0x3d0746==null?void 0x0:_0x3d0746[_0x35beb9(0x38a)])!=null?_0x1f0a41:null,_0x400f96=!!(_0x5797ae!=null&&_0x5797ae['sid'])&&!!(_0x5797ae!=null&&_0x5797ae[_0x35beb9(0x421)]);this['_changesetSessionId']=_0x400f96?_0x5797ae['sid']:or(),this[_0x35beb9(0x1b7)]=_0x400f96?_0x5797ae[_0x35beb9(0x421)]:0x0;const _0x476f5d=this[_0x35beb9(0x187)];try{this['_replayCachedMutations'](_0x5797ae,_0x3ca198);}catch(_0x59e60a){this[_0x35beb9(0x208)]['error'](_0x59e60a);}const _0xd9fc44=this[_0x35beb9(0x26f)]();if(_0x4a628e){const _0x4d2325=Ks(this[_0x35beb9(0x448)],_0x476f5d,this['_type'],_0x5797ae,_0x3ca198,_0xd9fc44);return _0x4d2325 instanceof X?_0x4d2325[_0x35beb9(0x2ba)]():(_0x4d2325 instanceof q||_0x4d2325 instanceof Q)&&_0x4d2325['resend'](),_0x4d2325;}return this['_injector'][_0x35beb9(0x345)](te,_0x476f5d,this[_0x35beb9(0x22e)],_0x5797ae,_0x3ca198,_0xd9fc44);}['_replayCachedMutations'](_0x1daa83,_0x778ad){const _0x27dd45=_0x5009fc;var _0x764d6e,_0xbb4295;const _0x22b406=this[_0x27dd45(0x1fe)][_0x27dd45(0xf1)]['fetchThroughInterceptors'](this[_0x27dd45(0x1fe)][_0x27dd45(0xf1)][_0x27dd45(0x434)]()[_0x27dd45(0x19f)]);(_0x764d6e=_0x22b406((_0x1daa83==null?void 0x0:_0x1daa83[_0x27dd45(0x12c)])||[],null))==null||_0x764d6e[_0x27dd45(0x1d4)](_0xdab4cc=>this[_0x27dd45(0x289)]['executeCommand'](_0xdab4cc['id'],_0xdab4cc[_0x27dd45(0x194)])),(_0xbb4295=_0x22b406(_0x778ad||[],null))==null||_0xbb4295['forEach'](_0x550e84=>this[_0x27dd45(0x289)][_0x27dd45(0x109)](_0x550e84['id'],_0x550e84[_0x27dd45(0x194)]));}};qe=Wt([p(0x3,_0x1f955f(_0x97bef)),p(0x4,_0x1f955f(w)),p(0x5,_0x1f955f(_0x3c64bb)),p(0x6,_0x1f955f(_0x371029)),p(0x7,_0x1f955f(_0x49adf8)),p(0x8,_0x5cfe43),p(0x9,_0xfcd33f),p(0xa,_0x40b38a),p(0xb,_0x46a842),p(0xc,_0x25fcfd(tt))],qe);let Tt=class extends qe{constructor(_0x547734,_0x2e4872,_0x5938c6,_0xbad314,_0x2817bb,_0x38df32,_0x558d08,_0x42079d,_0x1555bc,_0x52ac82,_0x293cbb,_0x1eb973,_0xcc0eeb,_0x4cbe10,_0x5ce3a5,_0x460b7e,_0x395456){const _0x57345b=_0x5009fc;super(_0x547734,_0x5938c6,_0x2e4872,_0xbad314,_0x2817bb,_0x38df32,_0x558d08,_0x42079d,_0xcc0eeb,_0x4cbe10,_0x5ce3a5,_0x460b7e,_0x395456),this[_0x57345b(0x187)]=_0x547734,this['type']=_0x2e4872,this[_0x57345b(0x3e7)]=_0x1555bc,this[_0x57345b(0x393)]=_0x52ac82,this[_0x57345b(0xe4)]=_0x293cbb,this[_0x57345b(0xe7)]=_0x1eb973;}[_0x5009fc(0x26f)](){const _0x3ce87c=_0x5009fc,_0x1ce195=super[_0x3ce87c(0x26f)]();return _0x1ce195[_0x3ce87c(0x241)]=_0x2da29a=>this[_0x3ce87c(0x393)][_0x3ce87c(0x42d)](_0x2da29a),_0x1ce195['onTransformSelections']=_0x15ba2e=>this['_docTransformSelectionsService']['transformSelections'](_0x15ba2e),_0x1ce195[_0x3ce87c(0x25e)]=_0xc3e52d=>this[_0x3ce87c(0xe7)][_0x3ce87c(0x264)](_0xc3e52d),_0x1ce195['onTransformRemoteChangesetByIMECache']=_0x3853f5=>this[_0x3ce87c(0x393)]['transformRemoteChangeset'](_0x3853f5),_0x1ce195;}async['_init'](){const _0x1f0b99=_0x5009fc,_0xcd96b5=await super[_0x1f0b99(0x2bf)]();return this[_0x1f0b99(0x3e7)][_0x1f0b99(0x1c1)]['pipe'](_0x810e9a(this[_0x1f0b99(0x35c)]))['subscribe'](_0xf28236=>{const _0x142d39=_0x1f0b99;if(_0xf28236==null)return;const {unitId:_0x18c4bb,redoState:_0xc01a73,commandId:_0x47793c}=_0xf28236;if(_0x18c4bb!==this[_0x142d39(0x187)])return;const _0x44f416={'id':_0x47793c,'type':_0x5b3aba[_0x142d39(0xf9)],'params':{'unitId':_0x18c4bb,'actions':_0xc01a73['actions'],'textRanges':null}};this[_0x142d39(0x308)](_0x44f416);}),_0xcd96b5;}};Tt=Wt([p(0x3,_0x1f955f(_0x97bef)),p(0x4,_0x1f955f(w)),p(0x5,_0x1f955f(_0x3c64bb)),p(0x6,_0x1f955f(_0x371029)),p(0x7,_0x1f955f(_0x49adf8)),p(0x8,_0x1f955f(_0x381024)),p(0x9,_0x1f955f(Ye)),p(0xa,_0x1f955f(Xe)),p(0xb,_0x1f955f(Ft)),p(0xc,_0x5cfe43),p(0xd,_0xfcd33f),p(0xe,_0x40b38a),p(0xf,_0x46a842),p(0x10,_0x25fcfd(tt))],Tt);let Rt=class extends qe{constructor(_0x3334fb,_0x44bada,_0x57daa6,_0x253150,_0x4f1109,_0x547c64,_0x2ca811,_0x352413,_0x47588e,_0x59beea,_0x276bf1,_0x13884a,_0x1cb377,_0x3d4bed){const _0xc1d0e3=_0x5009fc;super(_0x3334fb,_0x57daa6,_0x44bada,_0x253150,_0x4f1109,_0x547c64,_0x2ca811,_0x352413,_0x59beea,_0x276bf1,_0x13884a,_0x1cb377,_0x3d4bed),this[_0xc1d0e3(0x187)]=_0x3334fb,this[_0xc1d0e3(0x1f3)]=_0x44bada,this[_0xc1d0e3(0x2c1)]=_0x47588e;}[_0x5009fc(0x26f)](){const _0x3fe33f=_0x5009fc,_0x3cd134=super['_createHandler']();return _0x3cd134[_0x3fe33f(0x15d)]=_0xc58c51=>this['_sheetTransformSelectionsService'][_0x3fe33f(0x2e6)](_0xc58c51),_0x3cd134;}async[_0x5009fc(0x2bf)](){const _0x45cd17=_0x5009fc,_0x145a5d=await super[_0x45cd17(0x2bf)]();return this[_0x45cd17(0x341)](this[_0x45cd17(0x289)][_0x45cd17(0x445)]((_0x2bcc5f,_0x45b8b5)=>{const _0x595f9d=_0x45cd17;if(_0x2bcc5f['type']!==_0x5b3aba['MUTATION']||_0x45b8b5!=null&&_0x45b8b5['fromCollab']||_0x45b8b5!=null&&_0x45b8b5[_0x595f9d(0x348)])return;const _0x5a8fec=_0x2bcc5f['params'];if((_0x5a8fec==null?void 0x0:_0x5a8fec['unitId'])!==this[_0x595f9d(0x187)])return;const _0x429cfa=_0x2bcc5f,_0x102457=this[_0x595f9d(0x1fe)][_0x595f9d(0xf1)][_0x595f9d(0x31d)](this[_0x595f9d(0x1fe)][_0x595f9d(0xf1)][_0x595f9d(0x434)]()[_0x595f9d(0x380)])([_0x429cfa],null)||[_0x429cfa];this['_onLocalMutation'](_0x102457[0x0]);})),_0x145a5d;}};Rt=Wt([p(0x3,_0x1f955f(_0x97bef)),p(0x4,_0x1f955f(w)),p(0x5,_0x1f955f(_0x3c64bb)),p(0x6,_0x1f955f(_0x371029)),p(0x7,_0x1f955f(_0x49adf8)),p(0x8,_0x1f955f(Ke)),p(0x9,_0x5cfe43),p(0xa,_0xfcd33f),p(0xb,_0x40b38a),p(0xc,_0x46a842),p(0xd,_0x25fcfd(tt))],Rt);var Pr=Object[_0x5009fc(0x235)],yr=Object[_0x5009fc(0x327)],Ur=(_0x4a64a2,_0x58a843,_0xec587b,_0x2181fc)=>{const _0x2399c7=_0x5009fc;for(var _0xe17477=_0x2181fc>0x1?void 0x0:_0x2181fc?yr(_0x58a843,_0xec587b):_0x58a843,_0x371379=_0x4a64a2[_0x2399c7(0x21e)]-0x1,_0x43c329;_0x371379>=0x0;_0x371379--)(_0x43c329=_0x4a64a2[_0x371379])&&(_0xe17477=(_0x2181fc?_0x43c329(_0x58a843,_0xec587b,_0xe17477):_0x43c329(_0xe17477))||_0xe17477);return _0x2181fc&&_0xe17477&&Pr(_0x58a843,_0xec587b,_0xe17477),_0xe17477;},_t=(_0x1dd72b,_0x40de63)=>(_0x5c7d65,_0x3f46ec)=>_0x40de63(_0x5c7d65,_0x3f46ec,_0x1dd72b);let Le=class extends _0x5889a4{constructor(_0x47c5f3,_0x1e896c,_0x5d582c){const _0x206192=_0x5009fc;super(),l(this,_0x206192(0x1a5),new Map()),l(this,_0x206192(0x3d7),new _0x379f4()),(this[_0x206192(0x448)]=_0x47c5f3,this[_0x206192(0x314)]=_0x1e896c,this[_0x206192(0x250)]=_0x5d582c,this[_0x206192(0x2bf)]());}['dispose'](){const _0x37ec9f=_0x5009fc;super[_0x37ec9f(0x298)](),this['_entities'][_0x37ec9f(0x1d4)](_0x9cc620=>_0x9cc620['dispose']()),this[_0x37ec9f(0x1a5)][_0x37ec9f(0x306)]();}[_0x5009fc(0x3dd)](_0x26e339){const _0x248180=_0x5009fc;var _0x15330e;return(_0x15330e=this['_entities'][_0x248180(0x381)](_0x26e339))!=null?_0x15330e:null;}[_0x5009fc(0x2df)](_0xa9c19e){const _0x48ea33=_0x5009fc,_0x18be9f=this[_0x48ea33(0x3dd)](_0xa9c19e);return _0x18be9f?_0x347b80(_0x18be9f):this['_entityInit$']['pipe'](_0x5d3bcc(_0x359183=>_0x359183[_0x48ea33(0x187)]===_0xa9c19e));}[_0x5009fc(0x2bf)](){const _0x11825f=_0x5009fc;this[_0x11825f(0x250)]['getTypeOfUnitAdded$'](_0x53f477[_0x11825f(0x33c)])[_0x11825f(0x44f)](_0x810e9a(this[_0x11825f(0x35c)]),_0x271981(0x10))[_0x11825f(0x206)](async _0x2989ee=>{const _0x234cc0=_0x11825f,_0x527725=_0x2989ee[_0x234cc0(0x147)](),_0x5c1449=await this[_0x234cc0(0x38b)](_0x527725,k[_0x234cc0(0x33c)]);this[_0x234cc0(0x1a5)][_0x234cc0(0x411)](_0x527725,_0x5c1449);}),this[_0x11825f(0x250)][_0x11825f(0x39b)](_0x53f477[_0x11825f(0x36f)])[_0x11825f(0x44f)](_0x810e9a(this[_0x11825f(0x35c)]),_0x271981(0x10))['pipe'](_0x5d3bcc(_0x2683ce=>!_0x2683ce[_0x11825f(0x147)]()[_0x11825f(0x2c3)]('__')))[_0x11825f(0x206)](async _0x7f9015=>{const _0x144b57=_0x11825f,_0x26a50d=_0x7f9015['getUnitId'](),_0x971caf=await this[_0x144b57(0x38b)](_0x26a50d,k[_0x144b57(0x36f)]);this[_0x144b57(0x1a5)][_0x144b57(0x411)](_0x26a50d,_0x971caf);}),_0x370802(this[_0x11825f(0x250)][_0x11825f(0xf0)](_0x53f477[_0x11825f(0x33c)]),this['_univerInstanceService'][_0x11825f(0xf0)](_0x53f477[_0x11825f(0x36f)]))['pipe'](_0x810e9a(this[_0x11825f(0x35c)]))[_0x11825f(0x206)](_0x20c45c=>{const _0x2d8163=_0x11825f,_0x1bedfc=_0x20c45c['getUnitId'](),_0xc558b3=this[_0x2d8163(0x1a5)][_0x2d8163(0x381)](_0x1bedfc);_0xc558b3&&(_0xc558b3[_0x2d8163(0x298)](),this[_0x2d8163(0x1a5)][_0x2d8163(0x184)](_0x1bedfc));});}async['_startCollaboration'](_0x497322,_0x29177a){const _0x404351=_0x5009fc,_0x2374b6=await this[_0x404351(0x314)][_0x404351(0x1fd)](_0x497322),_0x1b6bdf=this['_injector']['createInstance'](this['_getCtorByUniverType'](_0x29177a),_0x497322,_0x29177a,_0x2374b6);return await _0x1b6bdf[_0x404351(0x3a7)](),this[_0x404351(0x3d7)][_0x404351(0x1cf)](_0x1b6bdf),_0x1b6bdf;}[_0x5009fc(0x301)](_0x137e11){const _0x2f0cd6=_0x5009fc;switch(_0x137e11){case k[_0x2f0cd6(0x36f)]:return Tt;case k[_0x2f0cd6(0x33c)]:return Rt;default:throw new Error(_0x2f0cd6(0x117)+_0x137e11);}}};Le=Ur([_t(0x0,_0x1f955f(_0x97bef)),_t(0x1,_0x1f955f(he)),_t(0x2,_0x2d78d8)],Le);const ms=[_0x5009fc(0x172),_0x5009fc(0x12b),_0x5009fc(0x32d),_0x5009fc(0x229),_0x5009fc(0x355),_0x5009fc(0x28a)];class Gt extends _0x16541d{constructor(){const _0x40fe5b=_0x5009fc;super(...arguments),l(this,_0x40fe5b(0x388),new Map()),l(this,_0x40fe5b(0x383),0x0);}[_0x5009fc(0x3b3)](_0x2c386f){const _0x2dc218=_0x5009fc;if(this[_0x2dc218(0x388)][_0x2dc218(0x2b0)](_0x2c386f))return this[_0x2dc218(0x388)][_0x2dc218(0x381)](_0x2c386f);const _0x545d53=ms[this[_0x2dc218(0x383)]];return this[_0x2dc218(0x383)]=(this['_colorIndex']+0x1)%ms[_0x2dc218(0x21e)],this[_0x2dc218(0x388)][_0x2dc218(0x411)](_0x2c386f,_0x545d53),_0x545d53;}}var Nr=Object['defineProperty'],Mr=Object[_0x5009fc(0x327)],Ar=(_0x62f338,_0x52699e,_0x2e4e2b,_0xd24807)=>{const _0x56b9f9=_0x5009fc;for(var _0x57c273=_0xd24807>0x1?void 0x0:_0xd24807?Mr(_0x52699e,_0x2e4e2b):_0x52699e,_0x34944c=_0x62f338[_0x56b9f9(0x21e)]-0x1,_0x415a18;_0x34944c>=0x0;_0x34944c--)(_0x415a18=_0x62f338[_0x34944c])&&(_0x57c273=(_0xd24807?_0x415a18(_0x52699e,_0x2e4e2b,_0x57c273):_0x415a18(_0x57c273))||_0x57c273);return _0xd24807&&_0x57c273&&Nr(_0x52699e,_0x2e4e2b,_0x57c273),_0x57c273;},ie=(_0x12989d,_0x111979)=>(_0x3ea8ed,_0x5d0a94)=>_0x111979(_0x3ea8ed,_0x5d0a94,_0x12989d);const Lr=0x12c,$r=0x64;let Ot=class extends _0x5889a4{constructor(_0x41b9d3,_0x434a2b,_0x2ca515,_0x5d07b6,_0x2b54a1,_0x1f096a,_0x47a318,_0x54c3d0,_0x120f14){const _0x30ab51=_0x5009fc;super(),l(this,_0x30ab51(0x180),!0x1),l(this,_0x30ab51(0x2bf),!0x1),l(this,'_cursorInfo$',new _0x3a492f(new Map())),l(this,_0x30ab51(0xde),this[_0x30ab51(0x1c6)][_0x30ab51(0x396)]()),l(this,_0x30ab51(0x27f),new _0x3a492f([])),l(this,'roomMembers$',this['_roomMembers$'][_0x30ab51(0x44f)](_0x116225(Lr))),l(this,_0x30ab51(0x1c7),_0x8d4f93(_0x3ace81=>{const _0x6ead56=_0x30ab51,_0x4980ff={'eventID':_0x5bf9c6[_0x6ead56(0x1c8)],'data':{'unitID':this[_0x6ead56(0x187)],'memberID':this[_0x6ead56(0x28c)]['getMemberID'](),'selection':Ws(_0x3ace81)}};this[_0x6ead56(0x28c)][_0x6ead56(0x3ca)](_0x4980ff,this[_0x6ead56(0x187)]);},$r)),(this['unitID']=_0x41b9d3,this[_0x30ab51(0x28c)]=_0x434a2b,this[_0x30ab51(0x448)]=_0x2ca515,this[_0x30ab51(0x1e7)]=_0x5d07b6,this[_0x30ab51(0x40a)]=_0x2b54a1,this['_syncEditingCollabCursorService']=_0x1f096a,this[_0x30ab51(0x42e)]=_0x47a318,this[_0x30ab51(0x250)]=_0x54c3d0,this[_0x30ab51(0x289)]=_0x120f14);}get[_0x5009fc(0x114)](){const _0xe0a691=_0x5009fc;return this['_cursorInfo$'][_0xe0a691(0x284)]();}get['roomMembers'](){const _0x5f088b=_0x5009fc;return this[_0x5f088b(0x27f)][_0x5f088b(0x284)]();}[_0x5009fc(0x298)](){const _0x30d4db=_0x5009fc;super[_0x30d4db(0x298)](),this[_0x30d4db(0x1c6)][_0x30d4db(0x1cf)](new Map()),this[_0x30d4db(0x1c6)][_0x30d4db(0x20d)](),this[_0x30d4db(0x27f)][_0x30d4db(0x1cf)]([]),this['_roomMembers$'][_0x30d4db(0x20d)]();}[_0x5009fc(0x3a7)](){const _0x322ede=_0x5009fc;this[_0x322ede(0x2bf)]||(this[_0x322ede(0x2bf)]=!0x0,this[_0x322ede(0x28c)][_0x322ede(0x333)]['pipe'](_0x810e9a(this['dispose$']))[_0x322ede(0x206)](_0x331ca1=>{const _0x49b8a5=_0x322ede;_0x331ca1===Y[_0x49b8a5(0x16c)]?this[_0x49b8a5(0x446)]():this[_0x49b8a5(0x135)]();}),this[_0x322ede(0x28c)][_0x322ede(0x427)][_0x322ede(0x44f)](_0x810e9a(this['dispose$']))['subscribe'](_0xcace45=>{const _0x194ad2=_0x322ede,_0x4a104c=_0xcace45[_0x194ad2(0x299)];_0x4a104c===_0x5bf9c6[_0x194ad2(0x1c8)]&&this[_0x194ad2(0xf6)](_0xcace45),_0x4a104c===_0x5bf9c6[_0x194ad2(0x291)]&&this['_onCursorDelete'](_0xcace45);}),this['disposeWithMe'](this[_0x322ede(0x289)][_0x322ede(0x445)](_0x21b815=>{const _0x48a457=_0x322ede,_0x1e2bd3=_0x21b815[_0x48a457(0x194)];_0x1e2bd3!=null&&this[_0x48a457(0x180)]&&_0x21b815['id']===_0x28119f['id']&&_0x1e2bd3[_0x48a457(0x2d6)]===this[_0x48a457(0x187)]&&_0x1e2bd3[_0x48a457(0x108)]===!0x1&&this[_0x48a457(0x1c7)](_0x1e2bd3[_0x48a457(0x3e8)]);})),this['_syncEditingCollabCursorService'][_0x322ede(0x442)]['pipe'](_0x810e9a(this[_0x322ede(0x35c)]))[_0x322ede(0x206)](_0x46ba7c=>{const _0x330ae7=_0x322ede;if((_0x46ba7c==null?void 0x0:_0x46ba7c[_0x330ae7(0x187)])!==this[_0x330ae7(0x187)])return;const _0x1a7e1b={'eventID':_0x5bf9c6[_0x330ae7(0x1c8)],'data':_0x46ba7c};this['_onCursorUpdate'](_0x1a7e1b);}),this[_0x322ede(0x341)](this[_0x322ede(0x289)][_0x322ede(0x445)](_0x2b2eef=>{const _0xa243e8=_0x322ede;if(_0x2b2eef[_0xa243e8(0x194)]==null)return;const _0xcf6eb1=_0x2b2eef['params'];if(_0x2b2eef['id']!==_0x185416['id']||_0xcf6eb1[_0xa243e8(0x2d6)]!==this[_0xa243e8(0x187)])return;const _0x215a7b={'id':_0xa243e8(0x305),'params':_0xcf6eb1},_0x2eb42c=this[_0xa243e8(0x114)];for(const [_0x190751,_0x12173c]of _0x2eb42c){const _0x44e18f={'id':_0xa243e8(0x305),'params':{'unitId':this[_0xa243e8(0x187)],'actions':null,'textRanges':_0x12173c['ranges']}},_0x5f10bd=this['_transformService']['transformMutation'](_0x215a7b,_0x44e18f,!0x1);if(_0x4ee9e9(_0x5f10bd))throw _0x5f10bd[_0xa243e8(0x1bb)];_0x2eb42c[_0xa243e8(0x411)](_0x190751,{..._0x12173c,'ranges':_0x5f10bd[_0xa243e8(0xd1)][_0xa243e8(0x194)][_0xa243e8(0x3e4)]});}queueMicrotask(()=>{const _0x171bb4=_0xa243e8;this[_0x171bb4(0x1c6)][_0x171bb4(0x1cf)](_0x2eb42c);});})));}[_0x5009fc(0xf6)](_0x4a8dba){const _0x4bde70=_0x5009fc;var _0x16f610,_0x27aa81;const {memberID:_0xf279d1,selection:_0x5d1904}=_0x4a8dba[_0x4bde70(0x363)],_0x44bb83=pr(_0x5d1904),_0x2aee9a=(_0x27aa81=(_0x16f610=this[_0x4bde70(0x40a)]['getMember'](this[_0x4bde70(0x187)],_0xf279d1))==null?void 0x0:_0x16f610[_0x4bde70(0x32e)])!=null?_0x27aa81:'Unknown\x20user',_0xda5b9e={'color':this[_0x4bde70(0x1e7)][_0x4bde70(0x3b3)](_0xf279d1),'name':_0x2aee9a,'ranges':_0x44bb83},_0x35d7a6=this['cursorInfo'];_0x35d7a6['set'](_0xf279d1,_0xda5b9e),this['_cursorInfo$'][_0x4bde70(0x1cf)](_0x35d7a6);}[_0x5009fc(0x1b2)](_0x1c5361){const _0x302440=_0x5009fc,{memberID:_0x39d0b0}=_0x1c5361[_0x302440(0x363)],_0x589a83=this[_0x302440(0x114)];_0x589a83[_0x302440(0x184)](_0x39d0b0),this['_cursorInfo$'][_0x302440(0x1cf)](_0x589a83);}[_0x5009fc(0x446)](){const _0x573da5=_0x5009fc;var _0x4a4677;if(this['_online']=!0x0,((_0x4a4677=this[_0x573da5(0x250)]['getFocusedUnit']())==null?void 0x0:_0x4a4677[_0x573da5(0x147)]())!==this['unitID'])return;const _0x495ba8=this[_0x573da5(0x448)][_0x573da5(0x381)](_0x2af257)[_0x573da5(0x2a8)]();Array['isArray'](_0x495ba8)&&_0x495ba8[_0x573da5(0x21e)]>0x0&&this[_0x573da5(0x1c7)](_0x495ba8);}['_toggleOffline'](){this['_online']=!0x1;}};Ot=Ar([ie(0x2,_0x1f955f(_0x97bef)),ie(0x3,_0x1f955f(Gt)),ie(0x4,_0x1f955f(ce)),ie(0x5,_0x1f955f(Ft)),ie(0x6,_0x191396),ie(0x7,_0x2d78d8),ie(0x8,_0xfcd33f)],Ot);var jr=Object[_0x5009fc(0x235)],Hr=Object[_0x5009fc(0x327)],xr=(_0x388c7c,_0x398086,_0x7b4376,_0x239c5a)=>{const _0x3aa499=_0x5009fc;for(var _0x1da4c4=_0x239c5a>0x1?void 0x0:_0x239c5a?Hr(_0x398086,_0x7b4376):_0x398086,_0x3756fd=_0x388c7c[_0x3aa499(0x21e)]-0x1,_0x54c16a;_0x3756fd>=0x0;_0x3756fd--)(_0x54c16a=_0x388c7c[_0x3756fd])&&(_0x1da4c4=(_0x239c5a?_0x54c16a(_0x398086,_0x7b4376,_0x1da4c4):_0x54c16a(_0x1da4c4))||_0x1da4c4);return _0x239c5a&&_0x1da4c4&&jr(_0x398086,_0x7b4376,_0x1da4c4),_0x1da4c4;},fe=(_0x45087f,_0x437231)=>(_0x5e51db,_0x2a6be9)=>_0x437231(_0x5e51db,_0x2a6be9,_0x45087f);const kr=0x12c,Br=0x64,Vr=()=>{let _0x4a704c=[],_0x23786d=!0x1;return _0x352a3d=>{const _0x2cca17=_0x3280;_0x4a704c[_0x2cca17(0x152)](_0x352a3d),_0x23786d||(_0x23786d=!0x0,setTimeout(()=>{const _0x31bde2=_0x2cca17;_0x4a704c[_0x31bde2(0x1d4)](_0x1b6724=>_0x1b6724()),_0x4a704c=[],_0x23786d=!0x1;}));};};let Dt=class extends _0x5889a4{constructor(_0x14e974,_0x266b57,_0x237545,_0x1836ad,_0x440821,_0x21ad44,_0x456967,_0x9924d5){const _0x38d8c3=_0x5009fc;super(),l(this,'_online',!0x1),l(this,'_init',!0x1),l(this,_0x38d8c3(0x1c6),new _0x3a492f(new Map())),l(this,_0x38d8c3(0xde),this[_0x38d8c3(0x1c6)][_0x38d8c3(0x396)]()),l(this,_0x38d8c3(0x27f),new _0x3a492f([])),l(this,'roomMembers$',this[_0x38d8c3(0x27f)]['pipe'](_0x116225(kr))),l(this,_0x38d8c3(0x1c7),_0x8d4f93((_0x262342,_0x115b65)=>{const _0x227a23=_0x38d8c3,_0x199b9c={'eventID':_0x5bf9c6['UPDATE_CURSOR'],'data':{'unitID':this[_0x227a23(0x187)],'memberID':this[_0x227a23(0x28c)][_0x227a23(0x2ae)](),'selection':_0xfdce30(_0x262342,_0x115b65[_0x227a23(0x2ac)])}};this[_0x227a23(0x28c)]['send'](_0x199b9c,this['unitID']);},Br)),(this[_0x38d8c3(0x187)]=_0x14e974,this[_0x38d8c3(0x28c)]=_0x266b57,this[_0x38d8c3(0x448)]=_0x237545,this[_0x38d8c3(0x1e7)]=_0x1836ad,this['_memberService']=_0x440821,this[_0x38d8c3(0x250)]=_0x21ad44,this[_0x38d8c3(0x289)]=_0x456967,this[_0x38d8c3(0x39c)]=_0x9924d5);}get[_0x5009fc(0x114)](){const _0x175219=_0x5009fc;return this[_0x175219(0x1c6)][_0x175219(0x284)]();}get[_0x5009fc(0x350)](){const _0x50371a=_0x5009fc;return this[_0x50371a(0x27f)][_0x50371a(0x284)]();}['dispose'](){const _0x3e6acc=_0x5009fc;super['dispose'](),this[_0x3e6acc(0x1c6)][_0x3e6acc(0x1cf)](new Map()),this[_0x3e6acc(0x1c6)][_0x3e6acc(0x20d)](),this[_0x3e6acc(0x27f)]['next']([]),this['_roomMembers$'][_0x3e6acc(0x20d)]();}[_0x5009fc(0x3a7)](){const _0x4c28bc=_0x5009fc;this['_init']||(this[_0x4c28bc(0x2bf)]=!0x0,this[_0x4c28bc(0x28c)]['sessionStatus$'][_0x4c28bc(0x44f)](_0x810e9a(this[_0x4c28bc(0x35c)]))[_0x4c28bc(0x206)](_0x4cd5fc=>{const _0x1678e5=_0x4c28bc;_0x4cd5fc===Y['ONLINE']?this[_0x1678e5(0x446)]():this[_0x1678e5(0x135)]();}),this[_0x4c28bc(0x28c)]['event$'][_0x4c28bc(0x44f)](_0x810e9a(this['dispose$']))[_0x4c28bc(0x206)](_0x10c380=>{const _0x246554=_0x4c28bc,_0x5aba60=_0x10c380[_0x246554(0x299)];_0x5aba60===_0x5bf9c6[_0x246554(0x1c8)]&&this[_0x246554(0xf6)](_0x10c380),_0x5aba60===_0x5bf9c6['USERS_LEAVE']&&this[_0x246554(0x1b2)](_0x10c380);}),this[_0x4c28bc(0x16a)](),this['disposeWithMe'](this[_0x4c28bc(0x289)][_0x4c28bc(0x445)](_0x193f4b=>{const _0x27aaa2=_0x4c28bc;if(this[_0x27aaa2(0x180)]&&_0x193f4b['id']===_0xbeb346['id']&&_0x193f4b[_0x27aaa2(0x194)][_0x27aaa2(0x2d6)]===this[_0x27aaa2(0x187)]){const _0x3dc45d=_0x193f4b[_0x27aaa2(0x194)];this['_updateLocalCursor'](_0x3dc45d['subUnitId'],_0x3dc45d['selections'][0x0]);}})));}['_onCursorUpdate'](_0x33e1ed){const _0x24758a=_0x5009fc;var _0x24f87,_0x40fad1;const {memberID:_0x231b60,selection:_0x37824f}=_0x33e1ed[_0x24758a(0x363)],{sheetName:_0x460398,range:_0x554969}=_0x410864(_0x37824f),_0x25700f={'name':(_0x40fad1=(_0x24f87=this[_0x24758a(0x40a)][_0x24758a(0x248)](this[_0x24758a(0x187)],_0x231b60))==null?void 0x0:_0x24f87[_0x24758a(0x32e)])!=null?_0x40fad1:_0x24758a(0x1a9),'range':this[_0x24758a(0x265)](_0x460398,_0x554969),'sheetID':_0x460398,'color':this['_colorAssignService'][_0x24758a(0x3b3)](_0x231b60),'selection':_0x37824f},_0x1aaba4=this[_0x24758a(0x114)];_0x1aaba4[_0x24758a(0x411)](_0x231b60,_0x25700f),this[_0x24758a(0x1c6)][_0x24758a(0x1cf)](_0x1aaba4);}[_0x5009fc(0x1b2)](_0x5c1db4){const _0x3a84f6=_0x5009fc,{memberID:_0x120f4a}=_0x5c1db4[_0x3a84f6(0x363)],_0x46dee7=this[_0x3a84f6(0x114)];_0x46dee7[_0x3a84f6(0x184)](_0x120f4a),this[_0x3a84f6(0x1c6)][_0x3a84f6(0x1cf)](_0x46dee7);}[_0x5009fc(0x265)](_0xb43c3c,_0x531b4){const _0x236f69=_0x5009fc;var _0xc73cc7,_0x190a7b;const _0x2f2b3a=(_0x190a7b=(_0xc73cc7=this[_0x236f69(0x250)][_0x236f69(0x3cf)](this['unitID']))==null?void 0x0:_0xc73cc7['getSheetBySheetId'](_0xb43c3c))==null?void 0x0:_0x190a7b[_0x236f69(0x406)]();return(_0x2f2b3a==null?void 0x0:_0x2f2b3a[_0x236f69(0x261)](_0xade33e=>_0x3b84dd[_0x236f69(0x215)](_0xade33e,_0x531b4)))||_0x531b4;}[_0x5009fc(0x16a)](){const _0x5973a3=_0x5009fc,_0x35d4b3=new _0xa23355(),_0x22496d=Vr(),_0x1be77e=()=>{const _0x25b5ae=_0x3280;_0x35d4b3[_0x25b5ae(0x298)]();const _0x53c591=(_0x2f840b,_0x1e226d,_0x23a225,_0x289b97)=>{const _0x51e1ca=_0x25b5ae;let _0x250ac0=[];switch(_0x2f840b['id']){case _0x341f0b['DeleteRangeMoveLeftCommandId']:{_0x250ac0=_0x5eae21(_0x2f840b,_0x289b97);break;}case _0x341f0b['DeleteRangeMoveUpCommandId']:{_0x250ac0=_0x8f8669(_0x2f840b,_0x289b97);break;}case _0x341f0b[_0x51e1ca(0x2aa)]:{_0x250ac0=_0x16e24d(_0x2f840b,_0x289b97);break;}case _0x341f0b[_0x51e1ca(0x185)]:{_0x250ac0=_0xd00542(_0x2f840b,_0x289b97);break;}case _0x341f0b[_0x51e1ca(0x43f)]:{_0x250ac0=_0x16806d(_0x2f840b,_0x289b97);break;}case _0x341f0b['InsertRowCommandId']:{_0x250ac0=_0x1a55df(_0x2f840b,_0x289b97);break;}case _0x341f0b[_0x51e1ca(0x35a)]:{_0x250ac0=_0x39ef57(_0x2f840b,_0x289b97);break;}case _0x341f0b[_0x51e1ca(0x26c)]:{_0x250ac0=_0x2012a5(_0x2f840b,_0x289b97);break;}case _0x341f0b[_0x51e1ca(0xe8)]:{_0x250ac0=_0x1a7c1f(_0x2f840b,_0x289b97);break;}}const _0x531256=_0x43ad00(_0x250ac0,_0x289b97),_0xcb41e7=this[_0x51e1ca(0x114)][_0x51e1ca(0x381)](_0x1e226d);if(_0xcb41e7&&_0x531256){const _0xf77b4d={..._0xcb41e7,'range':_0x531256};this[_0x51e1ca(0x114)][_0x51e1ca(0x411)](_0x1e226d,_0xf77b4d),_0x22496d(()=>{const _0x243772=_0x51e1ca,_0x22765e=this[_0x243772(0x39c)]['registerRefRange'](_0x531256,_0xbeb1d4=>(_0x22765e[_0x243772(0x298)](),_0x53c591(_0xbeb1d4,_0x1e226d,_0x23a225,_0x531256)));_0x35d4b3[_0x243772(0x3ea)](_0x22765e);});}return{'redos':[],'undos':[]};};this[_0x25b5ae(0x114)][_0x25b5ae(0x1d4)]((_0x16ea0e,_0x46cb87)=>{const _0x2b332b=_0x25b5ae,{range:_0x5a439d,sheetID:_0x3310de}=_0x16ea0e,_0xd60787=this[_0x2b332b(0x39c)][_0x2b332b(0x2ee)](_0x5a439d,_0x21868e=>(_0xd60787['dispose'](),_0x53c591(_0x21868e,_0x46cb87,_0x3310de,_0x5a439d)));_0x35d4b3[_0x2b332b(0x3ea)](_0xd60787);});};this[_0x5973a3(0x341)](_0x2b2e4c(this[_0x5973a3(0x1c6)][_0x5973a3(0x206)](()=>{_0x1be77e();})));}[_0x5009fc(0x446)](){const _0x462b3f=_0x5009fc;var _0x1c4d12,_0x4731e8;if(this[_0x462b3f(0x180)]=!0x0,((_0x1c4d12=this[_0x462b3f(0x250)][_0x462b3f(0x10e)]())==null?void 0x0:_0x1c4d12[_0x462b3f(0x147)]())!==this['unitID'])return;const _0x191d36=(_0x4731e8=this['_injector'][_0x462b3f(0x381)](_0x5ced1d)[_0x462b3f(0x238)]())==null?void 0x0:_0x4731e8[0x0],_0x211b61=this[_0x462b3f(0x250)]['getCurrentUnitForType'](_0x53f477[_0x462b3f(0x33c)])[_0x462b3f(0x126)]();_0x191d36&&_0x211b61&&this[_0x462b3f(0x1c7)](_0x211b61[_0x462b3f(0x207)](),_0x191d36);}[_0x5009fc(0x135)](){this['_online']=!0x1;}};Dt=xr([fe(0x2,_0x1f955f(_0x97bef)),fe(0x3,_0x1f955f(Gt)),fe(0x4,_0x1f955f(ce)),fe(0x5,_0x2d78d8),fe(0x6,_0xfcd33f),fe(0x7,_0x1f955f(_0xfc322f))],Dt);var Fr=Object[_0x5009fc(0x235)],Wr=Object[_0x5009fc(0x327)],Gr=(_0x38075d,_0x527cd5,_0x3aeb44,_0x39d527)=>{const _0x3753ec=_0x5009fc;for(var _0x6be67d=_0x39d527>0x1?void 0x0:_0x39d527?Wr(_0x527cd5,_0x3aeb44):_0x527cd5,_0x4364e0=_0x38075d[_0x3753ec(0x21e)]-0x1,_0x4e7da3;_0x4364e0>=0x0;_0x4364e0--)(_0x4e7da3=_0x38075d[_0x4364e0])&&(_0x6be67d=(_0x39d527?_0x4e7da3(_0x527cd5,_0x3aeb44,_0x6be67d):_0x4e7da3(_0x6be67d))||_0x6be67d);return _0x39d527&&_0x6be67d&&Fr(_0x527cd5,_0x3aeb44,_0x6be67d),_0x6be67d;},ut=(_0x5b6004,_0x5129b4)=>(_0x421308,_0xd6d75c)=>_0x5129b4(_0x421308,_0xd6d75c,_0x5b6004);let ve=class extends _0x5889a4{constructor(_0x87e279,_0x4825a7,_0xb10ae5){const _0x17698e=_0x5009fc;super(),l(this,_0x17698e(0x1a5),new Map()),l(this,_0x17698e(0x3d7),new _0x379f4()),(this[_0x17698e(0x250)]=_0x87e279,this[_0x17698e(0x448)]=_0x4825a7,this[_0x17698e(0x314)]=_0xb10ae5,this[_0x17698e(0x2bf)]());}[_0x5009fc(0x298)](){const _0x4f945b=_0x5009fc;super[_0x4f945b(0x298)](),this[_0x4f945b(0x3d7)][_0x4f945b(0x20d)](),this[_0x4f945b(0x1a5)]['forEach'](_0x348982=>_0x348982[_0x4f945b(0x298)]());}[_0x5009fc(0x36a)](_0x4afaf8){const _0x4bde55=_0x5009fc;return this[_0x4bde55(0x1a5)][_0x4bde55(0x2b0)](_0x4afaf8)?this[_0x4bde55(0x1a5)][_0x4bde55(0x381)](_0x4afaf8)['cursorInfo$']:this[_0x4bde55(0x3d7)][_0x4bde55(0x44f)](_0x26b580(_0x339da8=>_0x339da8['unitID']===_0x4afaf8),_0xb54ee(_0x3f196d=>_0x3f196d[_0x4bde55(0xde)]));}[_0x5009fc(0x2bf)](){const _0x488213=_0x5009fc;this['_univerInstanceService'][_0x488213(0x39b)](_0x53f477['UNIVER_SHEET'])[_0x488213(0x44f)](_0x810e9a(this['dispose$']))[_0x488213(0x206)](async _0x9f7dc8=>{const _0x220cf3=_0x488213,_0x3be097=_0x9f7dc8[_0x220cf3(0x147)](),_0x102aad=await this[_0x220cf3(0x34d)](_0x3be097);this['_entityInit$'][_0x220cf3(0x1cf)](_0x102aad),this[_0x220cf3(0x1a5)][_0x220cf3(0x411)](_0x3be097,_0x102aad);}),this[_0x488213(0x250)][_0x488213(0x39b)](_0x53f477[_0x488213(0x36f)])[_0x488213(0x44f)](_0x810e9a(this['dispose$']))[_0x488213(0x44f)](_0x26b580(_0x1ba15d=>!_0x1ba15d[_0x488213(0x147)]()[_0x488213(0x2c3)]('__')))[_0x488213(0x206)](async _0x189e09=>{const _0x342dc2=_0x488213,_0x3c2e6a=_0x189e09[_0x342dc2(0x147)](),_0x419611=await this[_0x342dc2(0x391)](_0x3c2e6a);this[_0x342dc2(0x3d7)][_0x342dc2(0x1cf)](_0x419611),this['_entities'][_0x342dc2(0x411)](_0x3c2e6a,_0x419611);}),_0x370802(this[_0x488213(0x250)]['getTypeOfUnitDisposed$'](_0x53f477[_0x488213(0x36f)]),this[_0x488213(0x250)]['getTypeOfUnitDisposed$'](_0x53f477[_0x488213(0x33c)]))[_0x488213(0x44f)](_0x810e9a(this[_0x488213(0x35c)]))[_0x488213(0x206)](_0x4387f5=>{const _0x1ca6c2=_0x488213,_0x2814c5=_0x4387f5[_0x1ca6c2(0x147)](),_0x3d53af=this[_0x1ca6c2(0x1a5)][_0x1ca6c2(0x381)](_0x2814c5);_0x3d53af&&(_0x3d53af[_0x1ca6c2(0x298)](),this[_0x1ca6c2(0x1a5)][_0x1ca6c2(0x184)](_0x2814c5));});}async[_0x5009fc(0x34d)](_0x563f4e){const _0x2c439b=_0x5009fc,_0x3813cb=await this[_0x2c439b(0x314)][_0x2c439b(0x1fd)](_0x563f4e),_0x2adeac=this[_0x2c439b(0x448)]['createInstance'](Dt,_0x563f4e,_0x3813cb);return _0x2adeac[_0x2c439b(0x3a7)](),_0x2adeac;}async['_startDocCollabCursor'](_0x378923){const _0x31887f=_0x5009fc,_0x4c0584=await this['_collabSessionService'][_0x31887f(0x1fd)](_0x378923),_0x4ce4fa=this[_0x31887f(0x448)][_0x31887f(0x345)](Ot,_0x378923,_0x4c0584);return _0x4ce4fa[_0x31887f(0x3a7)](),_0x4ce4fa;}};ve=Gr([ut(0x0,_0x2d78d8),ut(0x1,_0x1f955f(_0x97bef)),ut(0x2,_0x1f955f(he))],ve);const $e=0x14,fs=0xc8,dt=0x4,Yr=0x5;function Kr(_0x495cd4,_0xecfb3f){const _0x44767b=_0x5009fc;let {radius:_0x3dd77b,width:_0x269268,height:_0x246963}=_0xecfb3f;_0x3dd77b=_0x3dd77b!=null?_0x3dd77b:0x0,_0x269268=_0x269268!=null?_0x269268:0x1e,_0x246963=_0x246963!=null?_0x246963:0x1e;let _0x5dd8b3=0x0,_0x3339bf=0x0,_0x4da87a=0x0;_0x5dd8b3=_0x3339bf=_0x4da87a=Math[_0x44767b(0x29d)](_0x3dd77b,_0x269268/0x2,_0x246963/0x2),_0x495cd4[_0x44767b(0x18a)](),_0x495cd4[_0x44767b(0x3cd)](_0x5dd8b3,0x0),_0x495cd4['lineTo'](_0x269268-_0x3339bf,0x0),_0x495cd4['arc'](_0x269268-_0x3339bf,_0x3339bf,_0x3339bf,Math['PI']*0x3/0x2,0x0,!0x1),_0x495cd4[_0x44767b(0x23c)](_0x269268,_0x246963-_0x4da87a),_0x495cd4[_0x44767b(0x41a)](_0x269268-_0x4da87a,_0x246963-_0x4da87a,_0x4da87a,0x0,Math['PI']/0x2,!0x1),_0x495cd4[_0x44767b(0x23c)](0x0,_0x246963),_0x495cd4[_0x44767b(0x23c)](0x0,_0x5dd8b3),_0x495cd4['arc'](_0x5dd8b3,_0x5dd8b3,_0x5dd8b3,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x495cd4[_0x44767b(0x431)](),_0xecfb3f['fill']&&(_0x495cd4[_0x44767b(0x13e)](),_0x495cd4[_0x44767b(0x1db)]=_0xecfb3f['fill'],_0xecfb3f[_0x44767b(0x3bf)]===_0x44767b(0x416)?_0x495cd4['fill'](_0x44767b(0x416)):_0x495cd4['fill'](),_0x495cd4[_0x44767b(0x17d)]());}class st extends _0x3656aa{constructor(_0x18cf53,_0x4467f2){const _0x515c97=_0x5009fc;super(_0x18cf53,_0x4467f2),l(this,_0x515c97(0x288)),l(this,_0x515c97(0x444)),(this['color']=_0x4467f2==null?void 0x0:_0x4467f2[_0x515c97(0x288)],this[_0x515c97(0x444)]=_0x4467f2==null?void 0x0:_0x4467f2[_0x515c97(0x444)]);}static['drawWith'](_0x4d4a3b,_0x569183){const _0x526364=_0x5009fc,{text:_0xe44ce6,color:_0x284bb2}=_0x569183;_0x4d4a3b[_0x526364(0x13e)](),_0x4d4a3b['font']=_0x526364(0x182);const _0x4b85b2=_0x4d4a3b[_0x526364(0x1ea)](_0xe44ce6)['width'],_0x48b063=Math['min'](_0x4b85b2+0x2*dt,fs);Kr(_0x4d4a3b,{'height':$e,'radius':0x4,'width':_0x48b063,'fill':_0x284bb2,'evented':!0x1}),_0x4d4a3b['fillStyle']=_0x526364(0x18b);const _0xa75771=dt,_0x4d43bf=$e-Yr,_0x1c1c3a=fs-0x2*dt;if(_0x4b85b2>_0x1c1c3a){let _0x4e1fe4='',_0x2b7052=0x0;for(const _0x1451d7 of _0xe44ce6){const _0x33db27=_0x4d4a3b[_0x526364(0x1ea)](_0x1451d7)[_0x526364(0x364)];if(_0x2b7052+_0x33db27<=_0x1c1c3a-_0x4d4a3b[_0x526364(0x1ea)](_0x526364(0x32c))[_0x526364(0x364)])_0x4e1fe4+=_0x1451d7,_0x2b7052+=_0x33db27;else{_0x4e1fe4+='...';break;}}_0x4d4a3b[_0x526364(0x15e)](_0x4e1fe4,_0xa75771,_0x4d43bf);}else _0x4d4a3b['fillText'](_0xe44ce6,_0xa75771,_0x4d43bf);_0x4d4a3b[_0x526364(0x17d)]();}[_0x5009fc(0x16f)](_0x18268c){const _0x4147fc=_0x5009fc;st[_0x4147fc(0x197)](_0x18268c,this);}}const mt='collab-text-anchor-',Xr=_0x5009fc(0x227),qr='collab-rect-range-',we=0x6,Jr=1.5,ft=0x4,zr=1.5,Zr=_0x5009fc(0x3f5);class gs{constructor(_0x4e1d36,_0x46eded,_0x1a3945,_0x1e1d4a){const _0x42bcca=_0x5009fc;l(this,_0x42bcca(0x407),[]),l(this,_0x42bcca(0x18c),null),l(this,_0x42bcca(0x43c),null),l(this,_0x42bcca(0x3e5),null),l(this,_0x42bcca(0x1c4),null),l(this,'_eventUnsubscribe',null),(this[_0x42bcca(0x344)]=_0x4e1d36,this[_0x42bcca(0x443)]=_0x46eded,this[_0x42bcca(0x136)]=_0x1a3945,this['_document']=_0x1e1d4a,this['_render']());}set[_0x5009fc(0x1d5)](_0x3aa7cd){const _0x43104a=_0x5009fc;_0x3aa7cd?(this[_0x43104a(0x3e5)]&&this[_0x43104a(0x3e5)][_0x43104a(0x239)](),this[_0x43104a(0x43c)]&&this[_0x43104a(0x43c)][_0x43104a(0xf7)]()):(this[_0x43104a(0x3e5)]&&this[_0x43104a(0x3e5)][_0x43104a(0xf7)](),this[_0x43104a(0x43c)]&&this[_0x43104a(0x43c)][_0x43104a(0x239)]());}[_0x5009fc(0x298)](){const _0x1208f6=_0x5009fc;for(const _0x332a43 of this[_0x1208f6(0x407)])_0x332a43['dispose']();this['_textBubble']&&this['_textBubble'][_0x1208f6(0x298)](),this[_0x1208f6(0x3e5)]&&this[_0x1208f6(0x3e5)]['dispose'](),this[_0x1208f6(0x18c)]&&this[_0x1208f6(0x18c)]['dispose'](),this[_0x1208f6(0x2e3)]&&this[_0x1208f6(0x2e3)]();}[_0x5009fc(0x2b5)](){const _0x365763=_0x5009fc;var _0x11284d;const {_docSkeleton:_0x9b27e3,_document:_0xdb22d3}=this,{color:_0xfb1b64,name:_0xc890c9,ranges:_0xa2ae96}=this[_0x365763(0x344)],_0x3e0ffa=_0xdb22d3['getOffsetConfig'](),{docsLeft:_0x33a50c,docsTop:_0x25a021}=_0x3e0ffa,_0x1eec66=new _0x438426(_0x3e0ffa,_0x9b27e3);for(const {startOffset:_0x4d5034,endOffset:_0x58242a,collapsed:_0x5a6291,isActive:_0x2d8778}of _0xa2ae96){const _0x56749d=_0x9b27e3['findNodePositionByCharIndex'](_0x4d5034),_0x4af884=_0x9b27e3[_0x365763(0x1a7)](_0x58242a);if(_0x2d8778){const {contentBoxPointGroup:_0x589a7b}=_0x1eec66[_0x365763(0x404)](_0x4af884,_0x4af884);if(_0x589a7b['length']===0x0)continue;this[_0x365763(0x294)](_0xfb1b64,_0x589a7b,_0x33a50c,_0x25a021,_0xc890c9),this[_0x365763(0x2e3)]=this[_0x365763(0x43d)]();}if(!_0x5a6291&&_0x56749d&&_0x4af884){if(_0xa20c(_0x56749d,_0x4af884)){const _0x2c88bc=new _0x20f37d(_0x3e0ffa,_0x9b27e3),{pointGroup:_0x13325b}=(_0x11284d=_0x2c88bc[_0x365763(0x404)](_0x56749d,_0x4af884))!=null?_0x11284d:{};if(_0x13325b==null||_0x13325b[_0x365763(0x21e)]===0x0)continue;this[_0x365763(0x276)](_0xfb1b64,_0x13325b,_0x33a50c,_0x25a021);}else{const {contentBoxPointGroup:_0x59ddc7}=_0x1eec66['getRangePointData'](_0x56749d,_0x4af884);if(_0x59ddc7[_0x365763(0x21e)]===0x0)continue;this[_0x365763(0x385)](_0xfb1b64,_0x59ddc7,_0x33a50c,_0x25a021);}}}}[_0x5009fc(0x294)](_0x19dc53,_0x262e90,_0x16ebbe,_0x4a045c,_0x2a9827){const _0x2b10e9=_0x5009fc,_0x1ce608=this[_0x2b10e9(0x3e2)](_0x262e90),{left:_0x37471b,top:_0x35ab54,height:_0x2f1747}=_0x1ce608,_0x232954=this[_0x2b10e9(0x42c)](),_0x4284be=zr/_0x232954,_0x23ce1c=new _0x574b0c(mt+_0x548d2b['generateRandomId'](we),{'left':_0x37471b+_0x16ebbe-_0x4284be,'top':_0x35ab54+_0x4a045c,'height':_0x2f1747,'width':Jr,'fill':_0x19dc53||_0x1aeb73(_0x4b7722['black'],0x0),'strokeWidth':_0x4284be,'stroke':Zr,'evented':!0x0});this[_0x2b10e9(0x18c)]=_0x23ce1c,this['_scene']['addObject'](_0x23ce1c,_0x3fab62);const _0xec9d57=new _0x574b0c(mt+_0x548d2b[_0x2b10e9(0x110)](we),{'left':_0x37471b+_0x16ebbe-_0x4284be,'top':_0x35ab54+_0x4a045c-ft/0x2,'height':ft,'width':ft,'fill':_0x19dc53||_0x1aeb73(_0x4b7722[_0x2b10e9(0x313)],0x0),'strokeWidth':0x0,'stroke':_0x19dc53||_0x1aeb73(_0x4b7722[_0x2b10e9(0x313)],0x0),'evented':!0x1});this[_0x2b10e9(0x3e5)]=_0xec9d57,this[_0x2b10e9(0x443)][_0x2b10e9(0x3a9)](_0xec9d57,_0x3fab62);const _0x547d06=new st(mt+_0x548d2b['generateRandomId'](we),{'left':_0x37471b+_0x16ebbe-_0x4284be,'top':_0x35ab54+_0x4a045c-$e,'text':_0x2a9827,'color':_0x19dc53});this[_0x2b10e9(0x43c)]=_0x547d06,this[_0x2b10e9(0x443)][_0x2b10e9(0x3a9)](_0x547d06,_0x3fab62),this[_0x2b10e9(0x1d5)]=!0x1;}[_0x5009fc(0x43d)](){const _0x1f9978=_0x5009fc,_0x59fd4c=this['_anchor'][_0x1f9978(0x216)][_0x1f9978(0x3ba)](()=>{const _0x27f167=_0x1f9978;this[_0x27f167(0x1d5)]=!0x0;}),_0x6a23a7=this['_anchor'][_0x1f9978(0x1e5)][_0x1f9978(0x3ba)](()=>{const _0x3009f3=_0x1f9978;this[_0x3009f3(0x1c4)]&&clearTimeout(this[_0x3009f3(0x1c4)]),this[_0x3009f3(0x1c4)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x1dc558=_0x1f9978;_0x59fd4c[_0x1dc558(0x32a)](),_0x6a23a7['unsubscribe']();};}['_drawTextRange'](_0x419e83,_0x52eee8,_0x23a010,_0x82dc54){const _0x5eaa54=_0x5009fc,_0x4fd05f=new _0x9ea147(_0x419e83)[_0x5eaa54(0x171)](0.2)[_0x5eaa54(0x167)](),_0x30f4e8=new _0x465234(Xr+_0x548d2b[_0x5eaa54(0x110)](we),{'pointsGroup':_0x52eee8,'fill':_0x4fd05f||_0x1aeb73(_0x4b7722[_0x5eaa54(0x313)],0.2),'left':_0x23a010,'top':_0x82dc54,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x30f4e8),this[_0x5eaa54(0x443)][_0x5eaa54(0x3a9)](_0x30f4e8,_0x3fab62);}['_drawRectRange'](_0x256480,_0x3aef3a,_0x4f1beb,_0x4659bc){const _0x5c964b=_0x5009fc,_0x1c0b31=new _0x9ea147(_0x256480)['setAlpha'](0.2)[_0x5c964b(0x167)](),_0x3733a5=new _0x465234(qr+_0x548d2b['generateRandomId'](we),{'pointsGroup':_0x3aef3a,'fill':_0x1c0b31||_0x1aeb73(_0x4b7722[_0x5c964b(0x313)],0.2),'left':_0x4f1beb,'top':_0x4659bc,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5c964b(0x407)][_0x5c964b(0x152)](_0x3733a5),this[_0x5c964b(0x443)][_0x5c964b(0x3a9)](_0x3733a5,_0x3fab62);}[_0x5009fc(0x3e2)](_0x4432a5){const _0x54a766=_0x4432a5[0x0],_0x2ad17c=_0x54a766[0x0],_0x4404bd=_0x54a766[0x2],{x:_0x59a54e,y:_0x3e1e69}=_0x2ad17c,{x:_0x8e20c1,y:_0x37fcb2}=_0x4404bd;return{'left':_0x59a54e,'top':_0x3e1e69,'width':_0x8e20c1-_0x59a54e,'height':_0x37fcb2-_0x3e1e69};}[_0x5009fc(0x42c)](){const _0x166ddc=_0x5009fc,{scaleX:_0x3f5f21,scaleY:_0x5896a0}=this[_0x166ddc(0x443)]['getAncestorScale']();return Math['max'](_0x3f5f21,_0x5896a0);}}var Qr=Object[_0x5009fc(0x235)],eo=Object['getOwnPropertyDescriptor'],to=(_0x544392,_0x2deff3,_0x4c79c4,_0x4ba8b6)=>{const _0x1be6bb=_0x5009fc;for(var _0x3c1ace=_0x4ba8b6>0x1?void 0x0:_0x4ba8b6?eo(_0x2deff3,_0x4c79c4):_0x2deff3,_0x49b377=_0x544392[_0x1be6bb(0x21e)]-0x1,_0x3259ab;_0x49b377>=0x0;_0x49b377--)(_0x3259ab=_0x544392[_0x49b377])&&(_0x3c1ace=(_0x4ba8b6?_0x3259ab(_0x2deff3,_0x4c79c4,_0x3c1ace):_0x3259ab(_0x3c1ace))||_0x3c1ace);return _0x4ba8b6&&_0x3c1ace&&Qr(_0x2deff3,_0x4c79c4,_0x3c1ace),_0x3c1ace;},ke=(_0x3be081,_0x2d3eb5)=>(_0x494a53,_0x5044f6)=>_0x2d3eb5(_0x494a53,_0x5044f6,_0x3be081);let wt=class extends _0x5889a4{constructor(_0x380c4d,_0x50b4ab,_0x3a7726,_0x440cb0,_0x251a9a){const _0x365c37=_0x5009fc;super(),l(this,'_cursorShapes',[]),l(this,_0x365c37(0x34e),[]),(this[_0x365c37(0x3e0)]=_0x380c4d,this[_0x365c37(0x195)]=_0x50b4ab,this['_collabCursorController']=_0x3a7726,this[_0x365c37(0x289)]=_0x440cb0,this[_0x365c37(0x40b)]=_0x251a9a,this[_0x365c37(0x2bf)]());}[_0x5009fc(0x2bf)](){const _0x29bd16=_0x5009fc,_0x3bc2ef=this['_context'][_0x29bd16(0x2d6)],_0x3341cf=this[_0x29bd16(0x195)];this[_0x29bd16(0x341)](_0x1c0847([this[_0x29bd16(0x2de)]['getCollabCursors$'](_0x3bc2ef),this['_themeService'][_0x29bd16(0x3a2)]])[_0x29bd16(0x44f)](_0x13fcf1(([_0x3cde8d,_0x5669d6])=>({'skeleton':_0x3341cf['getSkeleton'](),'cursors':[..._0x3cde8d['values']()]['flatMap'](_0x2f9ee4=>({..._0x2f9ee4,'color':_0x5669d6[_0x2f9ee4['color']]}))})))[_0x29bd16(0x206)](_0x2f249b=>{const _0x5f0e05=_0x29bd16;if(this['_removeCollabCursors'](),_0x2f249b){const {skeleton:_0x345189,cursors:_0x3cdc2e}=_0x2f249b;this[_0x5f0e05(0x369)](_0x345189,_0x3cdc2e);}})),this[_0x29bd16(0x142)](),this[_0x29bd16(0x2d5)]();}[_0x5009fc(0x369)](_0x462a0c,_0x1c8e16){const _0x1ceae7=_0x5009fc,{scene:_0x46fc79,mainComponent:_0x1d84a2}=this[_0x1ceae7(0x3e0)],_0x46ca0f=_0x1c8e16[_0x1ceae7(0x1f8)](_0xeeaee8=>new gs(_0xeeaee8,_0x46fc79,_0x462a0c,_0x1d84a2));this[_0x1ceae7(0x24c)]=_0x46ca0f,this['_cursors']=_0x1c8e16;}['_refreshCollabCursors'](){const _0x16548b=_0x5009fc;this[_0x16548b(0x336)]();const {scene:_0x588538,mainComponent:_0x27db59}=this[_0x16548b(0x3e0)],_0x77feb1=this[_0x16548b(0x195)][_0x16548b(0x32b)](),_0x13726f=this[_0x16548b(0x34e)][_0x16548b(0x1f8)](_0x34eacc=>new gs(_0x34eacc,_0x588538,_0x77feb1,_0x27db59));this[_0x16548b(0x24c)]=_0x13726f;}[_0x5009fc(0x336)](){const _0x4b6324=_0x5009fc;this[_0x4b6324(0x24c)]['forEach'](_0x4a5858=>_0x4a5858[_0x4b6324(0x298)]()),this[_0x4b6324(0x24c)]=[];}['_initCommandExecutedListener'](){const _0x4530c2=_0x5009fc,_0x17b6df=[_0x48d2e7['id']];this[_0x4530c2(0x341)](this[_0x4530c2(0x289)][_0x4530c2(0x445)](_0x4236b2=>{const _0x136e83=_0x4530c2;_0x17b6df[_0x136e83(0x124)](_0x4236b2['id'])&&_0x4236b2[_0x136e83(0x194)][_0x136e83(0x2d6)]===this[_0x136e83(0x3e0)][_0x136e83(0x2d6)]&&this[_0x136e83(0x175)]();}));}[_0x5009fc(0x142)](){const _0x4aa8fa=_0x5009fc;this['disposeWithMe'](_0x482453(this[_0x4aa8fa(0x3e0)]['engine'][_0x4aa8fa(0x352)])[_0x4aa8fa(0x44f)](_0x5d3bcc(_0x2770ff=>_0x2770ff[_0x4aa8fa(0x1f3)]===_0x3d48ac[_0x4aa8fa(0x249)]),_0x4bca90(0x10))['subscribe'](()=>{const _0x2a7ec4=_0x4aa8fa;this[_0x2a7ec4(0x175)]();}));}};wt=to([ke(0x1,_0x1f955f(_0x4ef7b1)),ke(0x2,_0x1f955f(ve)),ke(0x3,_0xfcd33f),ke(0x4,_0x1f955f(_0x5d658e))],wt);const so=0x1,io=1.5;class no extends _0x3656aa{constructor(_0x2156db,_0x4945cb){const _0x388915=_0x5009fc;super(_0x2156db,_0x4945cb),l(this,'_color'),l(this,_0x388915(0xd6),!0x1),l(this,_0x388915(0x186)),l(this,_0x388915(0x1ae),''),l(this,'_labelPosition',_0x388915(0x10d)),l(this,_0x388915(0x214)),(_0x4945cb&&this[_0x388915(0x231)](_0x4945cb),this[_0x388915(0x216)][_0x388915(0x3ba)](()=>this[_0x388915(0x231)]({'hovered':!0x0})),this[_0x388915(0x1e5)][_0x388915(0x3ba)](()=>this[_0x388915(0x231)]({'hovered':!0x1})));}[_0x5009fc(0x231)](_0x358f46){const _0x374c6f=_0x5009fc;var _0x1b33de,_0x47505b,_0x4f4989,_0x537dbe,_0x314880,_0x5badc8;this['_color']=(_0x1b33de=_0x358f46[_0x374c6f(0x288)])!=null?_0x1b33de:this['_color'],this[_0x374c6f(0xd6)]=(_0x47505b=_0x358f46[_0x374c6f(0x10b)])!=null?_0x47505b:this['_hovered'],this[_0x374c6f(0x186)]=(_0x4f4989=_0x358f46[_0x374c6f(0x2ac)])!=null?_0x4f4989:this[_0x374c6f(0x186)],this[_0x374c6f(0x1ae)]=(_0x537dbe=_0x358f46['name'])!=null?_0x537dbe:this[_0x374c6f(0x1ae)],this[_0x374c6f(0x144)]=(_0x314880=_0x358f46[_0x374c6f(0x340)])!=null?_0x314880:this[_0x374c6f(0x144)],this[_0x374c6f(0x214)]=(_0x5badc8=_0x358f46['backgroundColor'])!=null?_0x5badc8:this[_0x374c6f(0x214)],this[_0x374c6f(0x202)]({'width':_0x358f46[_0x374c6f(0x364)],'height':_0x358f46[_0x374c6f(0x133)]});}[_0x5009fc(0x424)](_0x12ac1e){const _0x1f2036=_0x5009fc,{row:_0x28bc70,column:_0x1ede2f}=_0x12ac1e;if(_0x28bc70>=this[_0x1f2036(0x186)][_0x1f2036(0x25b)]&&_0x28bc70<=this[_0x1f2036(0x186)]['endRow']&&_0x1ede2f>=this['_range'][_0x1f2036(0x2fe)]&&_0x1ede2f<=this[_0x1f2036(0x186)][_0x1f2036(0x374)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x1f2036(0x231)]({'hovered':!0x1});}[_0x5009fc(0x143)](_0x2a5f00){return!0x1;}[_0x5009fc(0x16f)](_0x1a998a){const _0x6af0bd=_0x5009fc;_0x574b0c[_0x6af0bd(0x197)](_0x1a998a,{'width':this[_0x6af0bd(0x364)],'height':this[_0x6af0bd(0x133)],'strokeWidth':io,'stroke':this[_0x6af0bd(0x18e)],'evented':!0x1,'fill':this[_0x6af0bd(0x214)]}),this[_0x6af0bd(0xd6)]&&(_0x1a998a['save'](),_0x1a998a[_0x6af0bd(0x1e8)](0x1,0x0,0x0,0x1,this[_0x6af0bd(0x364)],this[_0x6af0bd(0x144)]==='bottom'?0x0:-$e),st[_0x6af0bd(0x197)](_0x1a998a,{'text':this[_0x6af0bd(0x1ae)],'color':this[_0x6af0bd(0x18e)]}),_0x1a998a['restore']());}}var ro=Object[_0x5009fc(0x235)],oo=Object[_0x5009fc(0x327)],ao=(_0x43b64c,_0x1029d4,_0x55035e,_0x2b3122)=>{const _0x2c54a1=_0x5009fc;for(var _0x5c5af6=_0x2b3122>0x1?void 0x0:_0x2b3122?oo(_0x1029d4,_0x55035e):_0x1029d4,_0x3f9eeb=_0x43b64c[_0x2c54a1(0x21e)]-0x1,_0x2a55da;_0x3f9eeb>=0x0;_0x3f9eeb--)(_0x2a55da=_0x43b64c[_0x3f9eeb])&&(_0x5c5af6=(_0x2b3122?_0x2a55da(_0x1029d4,_0x55035e,_0x5c5af6):_0x2a55da(_0x5c5af6))||_0x5c5af6);return _0x2b3122&&_0x5c5af6&&ro(_0x1029d4,_0x55035e,_0x5c5af6),_0x5c5af6;},gt=(_0x25b447,_0xfbb11b)=>(_0x323042,_0x315826)=>_0xfbb11b(_0x323042,_0x315826,_0x25b447);const co=0x1389;let Pt=class extends _0x5889a4{constructor(_0x137c13,_0x2cc8d5,_0x3fc860,_0x24a992){const _0x3db3d6=_0x5009fc;super(),l(this,_0x3db3d6(0x34e),new Set()),l(this,_0x3db3d6(0x2f6),null),(this['_context']=_0x137c13,this['_sheetSkeletonManagerService']=_0x2cc8d5,this[_0x3db3d6(0x2de)]=_0x3fc860,this['_themeService']=_0x24a992,this['_init']());}[_0x5009fc(0x2bf)](){const _0x3618e1=_0x5009fc;this[_0x3618e1(0x1ee)][_0x3618e1(0x323)]['pipe'](_0x22831a(this['dispose$']),_0x1b8752(_0x19e408=>{const _0x2ba278=_0x3618e1;if(_0x19e408){const _0x1606ac=_0x19e408['sheetId'];return _0x1c0847(this['_collabCursorController'][_0x2ba278(0x36a)](this[_0x2ba278(0x3e0)]['unitId']),this[_0x2ba278(0x40b)][_0x2ba278(0x3a2)])[_0x2ba278(0x44f)](_0x13fcf1(([_0x5ce36f,_0x3111b4])=>{const _0x14f44b=_0x2ba278,_0x399bf1=new Map();return _0x5ce36f[_0x14f44b(0x1d4)]((_0x39a209,_0x229791)=>{const _0x539025=_0x14f44b;if(_0x39a209[_0x539025(0x11f)]===_0x1606ac){const _0x2ff43e={..._0x39a209};_0x2ff43e['color']=_0x3111b4[_0x39a209[_0x539025(0x288)]],_0x399bf1[_0x539025(0x411)](_0x229791,_0x2ff43e);}}),{'skeleton':_0x19e408,'cursors':_0x399bf1};}));}return _0x347b80({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x37cac6,cursors:_0xc05848})=>{const _0x15e44e=_0x3618e1;this[_0x15e44e(0x336)](),_0x37cac6&&this[_0x15e44e(0x369)](_0x37cac6,_0xc05848);}),this[_0x3618e1(0x1ee)][_0x3618e1(0x323)][_0x3618e1(0x206)](_0x2e54fe=>{const _0x2d4e99=_0x3618e1;if(_0x2e54fe==null)return;const {skeleton:_0x3a76ae}=_0x2e54fe,{scene:_0x4e7b97}=this['_context'];_0x4e7b97['onPointerMove$'][_0x2d4e99(0x3ba)](_0x8d4f93(_0x44b373=>{const _0x16426d=_0x2d4e99;var _0x1b07ed,_0x2d84e8;const {offsetX:_0x1f9347,offsetY:_0x4a7bf2}=_0x44b373,{x:_0x139160,y:_0x1caa6d}=_0x4e7b97['getRelativeToViewportCoord'](_0x240869['FromArray']([_0x1f9347,_0x4a7bf2])),{scaleX:_0x24f299,scaleY:_0x958679}=_0x4e7b97[_0x16426d(0x1fa)](),_0x13ae34=_0x4e7b97[_0x16426d(0xd4)](_0x3cbf38['VIEW_MAIN']),_0x408d1e=_0x4e7b97[_0x16426d(0x2f0)](_0x240869['FromArray']([_0x139160,_0x1caa6d]),_0x13ae34),_0x2d899f=_0x3a76ae['getCellPositionByOffset'](_0x1f9347,_0x4a7bf2,_0x24f299,_0x958679,_0x408d1e);((_0x1b07ed=this[_0x16426d(0x2f6)])==null?void 0x0:_0x1b07ed[_0x16426d(0x38c)])===_0x2d899f['column']&&((_0x2d84e8=this[_0x16426d(0x2f6)])==null?void 0x0:_0x2d84e8[_0x16426d(0xd5)])===_0x2d899f['row']||this[_0x16426d(0x34e)]['forEach'](_0x2dffde=>{const _0x4379b6=_0x16426d;_0x2dffde[_0x4379b6(0x424)](_0x2d899f);});},0x64));});}[_0x5009fc(0x369)](_0x14291d,_0x19797d){const _0x3b32c0=_0x5009fc;var _0x1ba430;const _0x471b4=(_0x1ba430=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x1ba430[_0x3b32c0(0x228)];if(!_0x471b4)return;const _0x3b0ace=this[_0x3b32c0(0x1e1)]();if(!_0x3b0ace)return;this['_cursors'][_0x3b32c0(0x1d4)](_0x239023=>{_0x239023['makeDirty']();});const {scene:_0x461783}=_0x3b0ace,_0x1ec2c5=ho(Array[_0x3b32c0(0x287)](_0x19797d[_0x3b32c0(0x31c)]()))[_0x3b32c0(0x1f8)](_0x4e6325=>{const _0x59bb17=_0x3b32c0,{color:_0x4ef159,range:_0x375c69,name:_0x310888,selection:_0x30f1a7,sheetID:_0x2059ee}=_0x4e6325,{startColumn:_0x555d13,startRow:_0x7e4e00,endColumn:_0x37284b,endRow:_0x2bc7e3}=_0x375c69,_0x10d192=_0x5b4d99(_0x7e4e00,_0x555d13,_0x461783,_0x471b4),_0x1d0d71=_0x5b4d99(_0x2bc7e3,_0x37284b,_0x461783,_0x471b4),{columnHeaderHeightAndMarginTop:_0x302315}=_0x471b4,{startX:_0xdc81ac,startY:_0x239223}=_0x10d192,{endX:_0x7fc75e,endY:_0x428af8}=_0x1d0d71,_0x262575=_0x7fc75e-_0xdc81ac,_0x908462=_0x428af8-_0x239223,_0x48c8e1={'labelPosition':_0x239223-_0x302315>=$e?_0x59bb17(0x10d):_0x59bb17(0x44b),'sheetID':_0x2059ee,'range':_0x375c69,'color':_0x4ef159,'name':_0x310888,'selection':_0x30f1a7,'left':_0xdc81ac,'top':_0x239223,'width':_0x262575,'height':_0x908462,'evented':!0x1,'zIndex':co};return new no(_0x310888,_0x48c8e1);});_0x461783[_0x3b32c0(0x193)](_0x1ec2c5,so),this[_0x3b32c0(0x34e)]=new Set(_0x1ec2c5);}[_0x5009fc(0x336)](){const _0x11115d=_0x5009fc;var _0x4f3421;(_0x4f3421=this[_0x11115d(0x34e)])==null||_0x4f3421[_0x11115d(0x1d4)](_0x1aa528=>_0x1aa528[_0x11115d(0x298)]());}[_0x5009fc(0x1e1)](){const _0x346d99=_0x5009fc;return _0x1d7703(this['_context'][_0x346d99(0x20c)],this[_0x346d99(0x3e0)]);}};Pt=ao([gt(0x1,_0x1f955f(_0x5e78a)),gt(0x2,_0x1f955f(ve)),gt(0x3,_0x1f955f(_0x5d658e))],Pt);function ho(_0x174769){const _0x771b7a=_0x5009fc,_0x19534b=new Map();return _0x174769[_0x771b7a(0x1d4)](_0x4f3321=>{const _0xdfec7a=_0x771b7a;if(_0x19534b[_0xdfec7a(0x2b0)](_0x4f3321[_0xdfec7a(0x27e)])){const _0x5332fb=_0x19534b[_0xdfec7a(0x381)](_0x4f3321['selection']);_0x5332fb[_0xdfec7a(0x32e)]+=',\x20'+_0x4f3321[_0xdfec7a(0x32e)];}else _0x19534b['set'](_0x4f3321[_0xdfec7a(0x27e)],_0x4f3321);}),Array[_0x771b7a(0x287)](_0x19534b[_0x771b7a(0x31c)]());}var N=function(){const _0x163dc6=_0x5009fc;return N=Object['assign']||function(_0x1b5b60){const _0x706815=_0x3280;for(var _0xfab839,_0x28c850=0x1,_0x4ba0fb=arguments[_0x706815(0x21e)];_0x28c850<_0x4ba0fb;_0x28c850++){_0xfab839=arguments[_0x28c850];for(var _0x3f3e2c in _0xfab839)Object[_0x706815(0x3de)][_0x706815(0x2e9)][_0x706815(0x3e6)](_0xfab839,_0x3f3e2c)&&(_0x1b5b60[_0x3f3e2c]=_0xfab839[_0x3f3e2c]);}return _0x1b5b60;},N[_0x163dc6(0x269)](this,arguments);},lo=function(_0x4204a9,_0x30d133){const _0xddc948=_0x5009fc;var _0x486e3f={};for(var _0x1a3625 in _0x4204a9)Object[_0xddc948(0x3de)][_0xddc948(0x2e9)][_0xddc948(0x3e6)](_0x4204a9,_0x1a3625)&&_0x30d133[_0xddc948(0x15c)](_0x1a3625)<0x0&&(_0x486e3f[_0x1a3625]=_0x4204a9[_0x1a3625]);if(_0x4204a9!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x48a647=0x0,_0x1a3625=Object[_0xddc948(0x2b2)](_0x4204a9);_0x48a647<_0x1a3625[_0xddc948(0x21e)];_0x48a647++)_0x30d133[_0xddc948(0x15c)](_0x1a3625[_0x48a647])<0x0&&Object['prototype'][_0xddc948(0x3c6)]['call'](_0x4204a9,_0x1a3625[_0x48a647])&&(_0x486e3f[_0x1a3625[_0x48a647]]=_0x4204a9[_0x1a3625[_0x48a647]]);}return _0x486e3f;},Yt=_0x4b042d(function(_0x1965b4,_0x22eafe){const _0x694480=_0x5009fc;var _0x4b6086=_0x1965b4[_0x694480(0xfd)],_0x3284de=_0x1965b4['id'],_0x593959=_0x1965b4[_0x694480(0x266)],_0x55717c=_0x1965b4['extend'],_0x29a457=lo(_0x1965b4,[_0x694480(0xfd),'id','className',_0x694480(0xe0)]),_0x7858d8='univerjs-icon\x20univerjs-icon-'[_0x694480(0x386)](_0x3284de,'\x20')[_0x694480(0x386)](_0x593959||'')['trim'](),_0x4e52ef=_0x12589b('_'[_0x694480(0x386)](mo()));return Xs(_0x4b6086,''['concat'](_0x3284de),{'defIds':_0x4b6086[_0x694480(0x127)],'idSuffix':_0x4e52ef[_0x694480(0x2f9)]},N({'ref':_0x22eafe,'className':_0x7858d8},_0x29a457),_0x55717c);});function Xs(_0x217ef3,_0x55d23f,_0x5338a9,_0x1f1e72,_0x27916b){const _0x30e2e7=_0x5009fc;return _0x5d5c63(_0x217ef3[_0x30e2e7(0x312)],N(N({'key':_0x55d23f},_o(_0x217ef3,_0x5338a9,_0x27916b)),_0x1f1e72),(uo(_0x217ef3,_0x5338a9)[_0x30e2e7(0x440)]||[])[_0x30e2e7(0x1f8)](function(_0x188afd,_0x2482d8){const _0x14e89b=_0x30e2e7;return Xs(_0x188afd,''[_0x14e89b(0x386)](_0x55d23f,'-')[_0x14e89b(0x386)](_0x217ef3['tag'],'-')[_0x14e89b(0x386)](_0x2482d8),_0x5338a9,void 0x0,_0x27916b);}));}function _o(_0x45044d,_0x25f652,_0x2e3420){const _0x239252=_0x5009fc;var _0x512a88=N({},_0x45044d[_0x239252(0x2be)]);_0x2e3420!=null&&_0x2e3420[_0x239252(0xf3)]&&_0x512a88[_0x239252(0x271)]===_0x239252(0xf3)&&(_0x512a88[_0x239252(0x271)]=_0x2e3420[_0x239252(0xf3)]);var _0x34b802=_0x25f652[_0x239252(0x127)];return!_0x34b802||_0x34b802[_0x239252(0x21e)]===0x0||(_0x45044d['tag']==='use'&&_0x512a88['xlink:href']&&(_0x512a88[_0x239252(0x3ce)]=_0x512a88[_0x239252(0x3ce)]+_0x25f652[_0x239252(0x154)]),Object[_0x239252(0x2b1)](_0x512a88)[_0x239252(0x1d4)](function(_0x3189c3){const _0x5cfd8a=_0x239252;var _0x2e9f62=_0x3189c3[0x0],_0x5bb7fc=_0x3189c3[0x1];typeof _0x5bb7fc==_0x5cfd8a(0x316)&&(_0x512a88[_0x2e9f62]=_0x5bb7fc[_0x5cfd8a(0x35d)](/url\(#(.*)\)/,_0x5cfd8a(0x409)[_0x5cfd8a(0x386)](_0x25f652[_0x5cfd8a(0x154)],')')));})),_0x512a88;}function uo(_0x4f8caa,_0x1bee9b){const _0x879fc2=_0x5009fc;var _0x18b254,_0x17357d=_0x1bee9b[_0x879fc2(0x127)];return!_0x17357d||_0x17357d[_0x879fc2(0x21e)]===0x0?_0x4f8caa:_0x4f8caa[_0x879fc2(0x312)]===_0x879fc2(0x1cd)&&(!((_0x18b254=_0x4f8caa[_0x879fc2(0x440)])===null||_0x18b254===void 0x0)&&_0x18b254[_0x879fc2(0x21e)])?N(N({},_0x4f8caa),{'children':_0x4f8caa[_0x879fc2(0x440)][_0x879fc2(0x1f8)](function(_0xdc617a){const _0x591a9f=_0x879fc2;return typeof _0xdc617a[_0x591a9f(0x2be)]['id']==_0x591a9f(0x316)&&_0x17357d&&_0x17357d['indexOf'](_0xdc617a['attrs']['id'])>-0x1?N(N({},_0xdc617a),{'attrs':N(N({},_0xdc617a[_0x591a9f(0x2be)]),{'id':_0xdc617a[_0x591a9f(0x2be)]['id']+_0x1bee9b[_0x591a9f(0x154)]})}):_0xdc617a;})}):_0x4f8caa;}function mo(){const _0x2e8b91=_0x5009fc;return Math[_0x2e8b91(0x161)]()[_0x2e8b91(0x449)](0x24)[_0x2e8b91(0x100)](0x2,0x8);}Yt[_0x5009fc(0x16b)]=_0x5009fc(0x425);var fo={'tag':_0x5009fc(0xf5),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x5009fc(0x134),'height':_0x5009fc(0x134)},'children':[{'tag':'g','attrs':{'clipPath':_0x5009fc(0x258)},'children':[{'tag':_0x5009fc(0x3c8),'attrs':{'stroke':_0x5009fc(0x14f),'d':_0x5009fc(0x1f2),'strokeLinecap':_0x5009fc(0x38f),'strokeLinejoin':_0x5009fc(0x38f),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5009fc(0x349),'attrs':{'id':_0x5009fc(0x44c)},'children':[{'tag':_0x5009fc(0x3c8),'attrs':{'fill':_0x5009fc(0x157),'d':_0x5009fc(0x3f6)}}]}]}],'defIds':[_0x5009fc(0x44c)]},qs=_0x4b042d(function(_0x10fe93,_0x13b4be){const _0x291789=_0x5009fc;return _0x5d5c63(Yt,Object[_0x291789(0x17f)]({},_0x10fe93,{'id':_0x291789(0x128),'ref':_0x13b4be,'icon':fo}));});qs[_0x5009fc(0x16b)]=_0x5009fc(0x169);var go={'tag':_0x5009fc(0xf5),'attrs':{'fill':_0x5009fc(0x11b),'viewBox':_0x5009fc(0x395),'width':_0x5009fc(0x134),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x5009fc(0x24f)},'children':[{'tag':_0x5009fc(0x3c8),'attrs':{'stroke':_0x5009fc(0x14f),'d':_0x5009fc(0x22b),'strokeLinecap':_0x5009fc(0x38f),'strokeLinejoin':_0x5009fc(0x38f),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5009fc(0x384)},'children':[{'tag':_0x5009fc(0x3c8),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x5009fc(0x384)]},Js=_0x4b042d(function(_0x45f2a6,_0x1938f1){const _0x1085bc=_0x5009fc;return _0x5d5c63(Yt,Object[_0x1085bc(0x17f)]({},_0x45f2a6,{'id':_0x1085bc(0x3fe),'ref':_0x1938f1,'icon':go}));});Js[_0x5009fc(0x16b)]=_0x5009fc(0x2a0);function zs(_0x1c81de){const _0x4ee7e5=_0x5009fc;var _0x2361d3,_0x15b939,_0x7ea7b='';if(typeof _0x1c81de==_0x4ee7e5(0x316)||typeof _0x1c81de==_0x4ee7e5(0xeb))_0x7ea7b+=_0x1c81de;else{if(typeof _0x1c81de==_0x4ee7e5(0x439)){if(Array[_0x4ee7e5(0x31b)](_0x1c81de)){var _0x1fd1a3=_0x1c81de[_0x4ee7e5(0x21e)];for(_0x2361d3=0x0;_0x2361d3<_0x1fd1a3;_0x2361d3++)_0x1c81de[_0x2361d3]&&(_0x15b939=zs(_0x1c81de[_0x2361d3]))&&(_0x7ea7b&&(_0x7ea7b+='\x20'),_0x7ea7b+=_0x15b939);}else{for(_0x15b939 in _0x1c81de)_0x1c81de[_0x15b939]&&(_0x7ea7b&&(_0x7ea7b+='\x20'),_0x7ea7b+=_0x15b939);}}}return _0x7ea7b;}function So(){const _0x69f7a5=_0x5009fc;for(var _0x55d9db,_0x3097af,_0x52ef67=0x0,_0x2771c1='',_0x50a369=arguments[_0x69f7a5(0x21e)];_0x52ef67<_0x50a369;_0x52ef67++)(_0x55d9db=arguments[_0x52ef67])&&(_0x3097af=zs(_0x55d9db))&&(_0x2771c1&&(_0x2771c1+='\x20'),_0x2771c1+=_0x3097af);return _0x2771c1;}const po=_0x5009fc(0x28b),vo=_0x5009fc(0x426),Io=_0x5009fc(0x1b5),Eo=_0x5009fc(0x43b),Co='univer-offline',Pe={'onlineStatusIcon':po,'onlineStatusTitle':vo,'onlineStatus':Io,'online':Eo,'offline':Co};function bo(_0x42556b){const _0x5cd4c5=_0x5009fc;switch(_0x42556b){case P[_0x5cd4c5(0x29e)]:return _0x5cd4c5(0x2c6);case P[_0x5cd4c5(0x2b3)]:return _0x5cd4c5(0x36c);case P[_0x5cd4c5(0x2b8)]:return'collabStatus.fetchMiss';case P[_0x5cd4c5(0x29b)]:return _0x5cd4c5(0x16e);case P['AWAITING']:case P[_0x5cd4c5(0x179)]:return'collabStatus.syncing';case P[_0x5cd4c5(0x1e9)]:case P['PENDING']:return _0x5cd4c5(0x162);}}function To(_0x3a83a7){const _0x231a4a=_0x5009fc,{status$:_0x5b7897}=_0x3a83a7,_0x403cbc=_0x39332a(_0x5b7897,P[_0x231a4a(0x29b)]),_0x272145=_0x209420(_0x371029),_0x3e6419=_0x209420(he),_0x35b8a1=_0x403cbc!==P[_0x231a4a(0x29e)],_0x3653b3=_0x272145['t'](bo(_0x403cbc)),_0x486d51=So(Pe[_0x231a4a(0x3a5)],{[Pe['online']]:_0x35b8a1,[Pe[_0x231a4a(0x170)]]:!_0x35b8a1}),_0x264726=_0x35b8a1?_0xcdebad[_0x231a4a(0x377)](Js,null):_0xcdebad[_0x231a4a(0x377)](qs,null),_0x4268d6=_0x15171f(()=>{const _0x2da216=_0x231a4a;_0x35b8a1||_0x3e6419[_0x2da216(0xf4)]();},[_0x35b8a1,_0x3e6419]);function _0x499f82(){const _0x21c79e=_0x231a4a;return _0xcdebad[_0x21c79e(0x377)](_0x21c79e(0x1a4),{'className':_0x486d51,'onClick':_0x4268d6},_0xcdebad[_0x21c79e(0x377)](_0x21c79e(0x1a4),{'className':Pe[_0x21c79e(0x285)]},_0x264726),_0xcdebad['createElement']('div',{'className':Pe[_0x21c79e(0x3ff)]},_0x3653b3));}return _0x35b8a1?_0x499f82():_0xcdebad[_0x231a4a(0x377)](_0x88e8b3,{'title':_0x272145['t'](_0x231a4a(0x1fc))},_0x499f82());}var Ro=Object['defineProperty'],Oo=Object[_0x5009fc(0x327)],Do=(_0x4d072e,_0x3f829b,_0x1a29ed,_0x14fb12)=>{const _0x1e72ea=_0x5009fc;for(var _0x39d0d3=_0x14fb12>0x1?void 0x0:_0x14fb12?Oo(_0x3f829b,_0x1a29ed):_0x3f829b,_0x322301=_0x4d072e[_0x1e72ea(0x21e)]-0x1,_0x2d3a7f;_0x322301>=0x0;_0x322301--)(_0x2d3a7f=_0x4d072e[_0x322301])&&(_0x39d0d3=(_0x14fb12?_0x2d3a7f(_0x3f829b,_0x1a29ed,_0x39d0d3):_0x2d3a7f(_0x39d0d3))||_0x39d0d3);return _0x14fb12&&_0x39d0d3&&Ro(_0x3f829b,_0x1a29ed,_0x39d0d3),_0x39d0d3;},Be=(_0x2cff1e,_0x518821)=>(_0x3963ea,_0x5ef726)=>_0x518821(_0x3963ea,_0x5ef726,_0x2cff1e);let Me=class extends _0x16541d{constructor(_0x34d5ff,_0x25a408,_0x110c5c,_0x8198ca){const _0x718c84=_0x5009fc;super(),l(this,_0x718c84(0x2fb),new _0x3a492f(P[_0x718c84(0x29b)])),(this[_0x718c84(0x250)]=_0x34d5ff,this[_0x718c84(0x432)]=_0x25a408,this[_0x718c84(0x448)]=_0x110c5c,this['_collaborationController']=_0x8198ca,this[_0x718c84(0x196)](),this[_0x718c84(0x3a4)]());}[_0x5009fc(0x3a4)](){const _0x348320=_0x5009fc;this['disposeWithMe'](this[_0x348320(0x250)][_0x348320(0x1b0)]['pipe'](_0xb54ee(()=>{const _0xa3bba=_0x348320,_0x530442=this[_0xa3bba(0x250)]['getFocusedUnit']();return _0x530442?this[_0xa3bba(0x400)][_0xa3bba(0x2df)](_0x530442[_0xa3bba(0x147)]()):_0x347b80(null);}),_0xb54ee(_0x4ae530=>_0x4ae530?_0x4ae530[_0x348320(0x27c)]:_0x347b80(P[_0x348320(0x29b)])))[_0x348320(0x206)](_0x1c63af=>{const _0x5804ab=_0x348320;this['_status$'][_0x5804ab(0x1cf)](_0x1c63af);}));}[_0x5009fc(0x196)](){const _0xc2d14a=_0x5009fc;this[_0xc2d14a(0x341)](this[_0xc2d14a(0x432)][_0xc2d14a(0x121)](_0x40f64a[_0xc2d14a(0x178)],()=>_0x1fc806(wo({'status$':this[_0xc2d14a(0x2fb)]['asObservable']()}),this[_0xc2d14a(0x448)])));}};Me=Do([Be(0x0,_0x2d78d8),Be(0x1,_0x475baa),Be(0x2,_0x1f955f(_0x97bef)),Be(0x3,_0x1f955f(Le))],Me);function wo(_0x3393e5){const {status$:_0xb07d5f}=_0x3393e5;return function(){const _0x9e1c51=_0x3280;return _0xcdebad[_0x9e1c51(0x377)](To,{'status$':_0xb07d5f});};}const Zs=_0x5c6f0d(_0x5009fc(0xf8));var Po=Object[_0x5009fc(0x235)],yo=Object[_0x5009fc(0x327)],Uo=(_0x275f9c,_0x43eaca,_0x98b458,_0x381d40)=>{const _0xd288d1=_0x5009fc;for(var _0x3797c3=_0x381d40>0x1?void 0x0:_0x381d40?yo(_0x43eaca,_0x98b458):_0x43eaca,_0x359905=_0x275f9c[_0xd288d1(0x21e)]-0x1,_0x5d884a;_0x359905>=0x0;_0x359905--)(_0x5d884a=_0x275f9c[_0x359905])&&(_0x3797c3=(_0x381d40?_0x5d884a(_0x43eaca,_0x98b458,_0x3797c3):_0x5d884a(_0x3797c3))||_0x3797c3);return _0x381d40&&_0x3797c3&&Po(_0x43eaca,_0x98b458,_0x3797c3),_0x3797c3;},ge=(_0x154032,_0x52896a)=>(_0x2577f8,_0x3eea0b)=>_0x52896a(_0x2577f8,_0x3eea0b,_0x154032);let Je=class extends _0x5889a4{constructor(_0x59cc16,_0x435820,_0x5d3910,_0x4c8d4f,_0x482d17,_0x3c529d){const _0x9020c1=_0x5009fc;super(),this[_0x9020c1(0x335)]=_0x59cc16,this[_0x9020c1(0x208)]=_0x435820,this[_0x9020c1(0x289)]=_0x5d3910,this[_0x9020c1(0x156)]=_0x4c8d4f,this[_0x9020c1(0x3f4)]=_0x482d17,_0x3c529d?_0x3c529d==null||_0x3c529d[_0x9020c1(0x3d4)]()['then'](()=>this['_init']()):(this[_0x9020c1(0x208)]['debug']('[DataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async['_init'](){const _0x1ea3ab=_0x5009fc,_0x1aaaf1=this[_0x1ea3ab(0x335)][_0x1ea3ab(0x366)]('unit'),_0x4655e0=this[_0x1ea3ab(0x335)][_0x1ea3ab(0x366)](_0x1ea3ab(0x1f3));if(!_0x1aaaf1||!_0x4655e0){this[_0x1ea3ab(0x208)][_0x1ea3ab(0x232)](_0x1ea3ab(0x2da),_0x1ea3ab(0x3aa));return;}switch(Number(_0x4655e0)){case k[_0x1ea3ab(0x33c)]:{const _0x310d7c=await this[_0x1ea3ab(0x40c)](_0x1aaaf1);this[_0x1ea3ab(0x31f)](_0x310d7c);break;}case k[_0x1ea3ab(0x36f)]:{await this[_0x1ea3ab(0x25d)](_0x1aaaf1);break;}default:{this['_logService'][_0x1ea3ab(0x1bb)](_0x1ea3ab(0x2da),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x5009fc(0x31f)](_0x375c28){const _0x4d3f30=_0x5009fc;await this[_0x4d3f30(0x2c2)](_0x375c28),_0x375c28['activeSheet$'][_0x4d3f30(0x44f)](_0x810e9a(this['dispose$']))[_0x4d3f30(0x206)](_0x41162f=>{const _0x567725=_0x4d3f30;_0x41162f&&this[_0x567725(0x125)](_0x41162f);}),this['_urlService'][_0x4d3f30(0x106)][_0x4d3f30(0x44f)](_0x810e9a(this[_0x4d3f30(0x35c)]))[_0x4d3f30(0x206)](()=>this[_0x4d3f30(0x2c2)](_0x375c28));}['_updateURLWithCurrentState'](_0x24db62,_0x1bc6a1=!0x1){const _0x3fb4db=_0x5009fc,_0x2c6ace=this[_0x3fb4db(0x335)][_0x3fb4db(0x366)](_0x3fb4db(0x13b));_0x24db62[_0x3fb4db(0x207)]()!==_0x2c6ace&&this[_0x3fb4db(0x335)]['setParam'](_0x3fb4db(0x13b),_0x24db62[_0x3fb4db(0x207)](),_0x1bc6a1);}async[_0x5009fc(0x2c2)](_0x23e92c){const _0x45d0b8=_0x5009fc;var _0x3baa9e;const _0x58652e=this[_0x45d0b8(0x335)]['getParam'](_0x45d0b8(0x13b));if(!_0x58652e||!_0x23e92c['getSheetBySheetId'](_0x58652e)){const _0x29a995=_0x23e92c[_0x45d0b8(0x3c1)]()[0x0],_0x45cbd4=_0x23e92c[_0x45d0b8(0xd9)](_0x29a995);if(!_0x45cbd4)return;this[_0x45d0b8(0x125)](_0x45cbd4,!0x0),await this[_0x45d0b8(0x289)][_0x45d0b8(0x109)](_0x1c03e6['id'],{'unitId':_0x23e92c[_0x45d0b8(0x147)](),'subUnitId':_0x29a995});return;}((_0x3baa9e=_0x23e92c[_0x45d0b8(0x126)]())==null?void 0x0:_0x3baa9e[_0x45d0b8(0x207)]())!==_0x58652e&&await this[_0x45d0b8(0x289)]['executeCommand'](_0x1c03e6['id'],{'unitId':_0x23e92c[_0x45d0b8(0x147)](),'subUnitId':_0x58652e});}async[_0x5009fc(0x40c)](_0x4854ef){const _0x1954fb=_0x5009fc;let _0x557ac6=0x0;const _0x44a9e5=await this[_0x1954fb(0x156)][_0x1954fb(0x1ad)](_0x4854ef);return _0x44a9e5&&(_0x44a9e5[_0x1954fb(0x38a)]||_0x44a9e5[_0x1954fb(0x12c)]['length']!==0x0)&&(_0x557ac6=_0x44a9e5[_0x1954fb(0x397)]),_0x557ac6===0x0&&this[_0x1954fb(0x208)][_0x1954fb(0x232)](_0x1954fb(0x2da),_0x1954fb(0x21d)),this[_0x1954fb(0x3f4)][_0x1954fb(0x176)](_0x4854ef,_0x557ac6);}async[_0x5009fc(0x25d)](_0x19c09d){const _0x16bf32=_0x5009fc;let _0x356567=0x0;const _0x640cb8=await this[_0x16bf32(0x156)][_0x16bf32(0x1ad)](_0x19c09d);return _0x640cb8&&(_0x640cb8[_0x16bf32(0x38a)]||_0x640cb8[_0x16bf32(0x12c)][_0x16bf32(0x21e)]!==0x0)&&(_0x356567=_0x640cb8[_0x16bf32(0x397)]),_0x356567===0x0&&this[_0x16bf32(0x208)][_0x16bf32(0x232)](_0x16bf32(0x2da),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x16bf32(0x3f4)]['loadDoc'](_0x19c09d,_0x356567);}};Je=Uo([ge(0x0,Zs),ge(0x1,_0x5cfe43),ge(0x2,_0xfcd33f),ge(0x3,_0x1f955f(w)),ge(0x4,_0x1f955f(_0x234f02)),ge(0x5,_0x25fcfd(_0x2db9d4))],Je);var No=Object[_0x5009fc(0x235)],Mo=Object[_0x5009fc(0x327)],Ao=(_0x4e5927,_0x330dfc,_0x4349e0,_0x12afeb)=>{for(var _0x3a6446=_0x12afeb>0x1?void 0x0:_0x12afeb?Mo(_0x330dfc,_0x4349e0):_0x330dfc,_0x4c2863=_0x4e5927['length']-0x1,_0x95124e;_0x4c2863>=0x0;_0x4c2863--)(_0x95124e=_0x4e5927[_0x4c2863])&&(_0x3a6446=(_0x12afeb?_0x95124e(_0x330dfc,_0x4349e0,_0x3a6446):_0x95124e(_0x3a6446))||_0x3a6446);return _0x12afeb&&_0x3a6446&&No(_0x330dfc,_0x4349e0,_0x3a6446),_0x3a6446;},Ss=(_0x468d96,_0x3151d6)=>(_0x1fbc39,_0x54e99c)=>_0x3151d6(_0x1fbc39,_0x54e99c,_0x468d96);const Lo='DEFAULT_FILE_NAME',$o='Univer';let ze=class extends _0x16541d{constructor(_0x45ae2f,_0x2c87c8){const _0x24c3d2=_0x5009fc;super(),this[_0x24c3d2(0x250)]=_0x45ae2f,this[_0x24c3d2(0x361)]=_0x2c87c8,this[_0x24c3d2(0x2bf)]();}[_0x5009fc(0x2bf)](){const _0x53cb9f=_0x5009fc;this[_0x53cb9f(0x341)](this[_0x53cb9f(0x250)][_0x53cb9f(0x1b0)][_0x53cb9f(0x206)](()=>{const _0x1c6189=_0x53cb9f;var _0xb91c8b;const _0x4dbd33=this['_univerInstanceService'][_0x1c6189(0x10e)]();let _0x2e9eca=(_0xb91c8b=this[_0x1c6189(0x361)][_0x1c6189(0x23b)](Lo))!=null?_0xb91c8b:$o;_0x4dbd33 instanceof _0x497a84&&(_0x2e9eca=_0x4dbd33['name']),document[_0x1c6189(0x1ca)]=_0x2e9eca;}));}};ze=Ao([Ss(0x0,_0x2d78d8),Ss(0x1,_0x4b96c2)],ze);var jo=Object[_0x5009fc(0x235)],Ho=Object['getOwnPropertyDescriptor'],xo=(_0x1ab3d2,_0x96df8a,_0x57a99f,_0x180bd6)=>{const _0x4ce53d=_0x5009fc;for(var _0xc833c0=_0x180bd6>0x1?void 0x0:_0x180bd6?Ho(_0x96df8a,_0x57a99f):_0x96df8a,_0x4d9fe6=_0x1ab3d2[_0x4ce53d(0x21e)]-0x1,_0x3f4442;_0x4d9fe6>=0x0;_0x4d9fe6--)(_0x3f4442=_0x1ab3d2[_0x4d9fe6])&&(_0xc833c0=(_0x180bd6?_0x3f4442(_0x96df8a,_0x57a99f,_0xc833c0):_0x3f4442(_0xc833c0))||_0xc833c0);return _0x180bd6&&_0xc833c0&&jo(_0x96df8a,_0x57a99f,_0xc833c0),_0xc833c0;},St=(_0x5623d3,_0x5731b0)=>(_0x1a6198,_0xdfcbce)=>_0x5731b0(_0x1a6198,_0xdfcbce,_0x5623d3);let Ze=class{constructor(_0x23b5fa,_0x569bdb,_0x337875){const _0x53bd5b=_0x5009fc;this[_0x53bd5b(0x361)]=_0x23b5fa,this[_0x53bd5b(0x26b)]=_0x569bdb,this[_0x53bd5b(0x153)]=_0x337875,this[_0x53bd5b(0x3a7)]();}['init'](){this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x501b56,_0x1ca190)=>_0x1ca190(_0x501b56)['pipe'](_0x2f78e1(async _0x69db7e=>{const _0x1b3686=_0x3280,_0x2e8d3b=_0x69db7e;if(_0x2e8d3b[_0x1b3686(0x190)]===0x191&&window[_0x1b3686(0xe6)](this[_0x1b3686(0x153)]['t'](_0x1b3686(0xdb)))){const _0x3f9240=window['encodeURIComponent'](window['location'][_0x1b3686(0x326)]);window['location'][_0x1b3686(0x326)]=this['_getLoginPath']()+_0x1b3686(0x37b)+_0x3f9240;}return _0x2e8d3b;}))});}[_0x5009fc(0x450)](){const _0x1a2936=_0x5009fc;var _0x33c43a,_0xb2ddd4;const _0xe677c9=this[_0x1a2936(0x361)][_0x1a2936(0x23b)](Ln),_0x9f962f=this[_0x1a2936(0x361)]['getConfig']($);return(_0xb2ddd4=(_0x33c43a=_0x9f962f==null?void 0x0:_0x9f962f[_0x1a2936(0x3ac)])!=null?_0x33c43a:_0xe677c9)!=null?_0xb2ddd4:$n;}};Ze=xo([St(0x0,_0x4b96c2),St(0x1,_0x1f955f(_0x3a167c)),St(0x2,_0x1f955f(_0x371029))],Ze);var ko=Object['defineProperty'],Bo=Object['getOwnPropertyDescriptor'],Vo=(_0x5ad291,_0x3d25f5,_0x572329,_0x1e2d0f)=>{const _0x357c98=_0x5009fc;for(var _0x26af0e=_0x1e2d0f>0x1?void 0x0:_0x1e2d0f?Bo(_0x3d25f5,_0x572329):_0x3d25f5,_0x47a34b=_0x5ad291[_0x357c98(0x21e)]-0x1,_0x2efd8;_0x47a34b>=0x0;_0x47a34b--)(_0x2efd8=_0x5ad291[_0x47a34b])&&(_0x26af0e=(_0x1e2d0f?_0x2efd8(_0x3d25f5,_0x572329,_0x26af0e):_0x2efd8(_0x26af0e))||_0x26af0e);return _0x1e2d0f&&_0x26af0e&&ko(_0x3d25f5,_0x572329,_0x26af0e),_0x26af0e;},ps=(_0x3159ad,_0x504c5e)=>(_0x140ef2,_0x5690bf)=>_0x504c5e(_0x140ef2,_0x5690bf,_0x3159ad);const Fo=_0x5009fc(0x260),Wo='/universer-api/authz';let yt=class extends _0x16541d{constructor(_0x336790,_0x4ca1bb){const _0x77a37=_0x5009fc;super(),this[_0x77a37(0x2c9)]=_0x336790,this['_configService']=_0x4ca1bb,this[_0x77a37(0x2dc)]();}[_0x5009fc(0x2dc)](){const _0x155842=_0x5009fc,_0x32ed44=this;this[_0x155842(0x341)](this[_0x155842(0x2c9)][_0x155842(0x1df)]({'priority':0x3e7,'interceptor':_0x3d00f0({'isMatch'(_0x216798){const _0x2972cd=_0x155842;var _0x3f3814;if(_0x216798['method']==='POST'&&((_0x3f3814=_0x216798[_0x2972cd(0x103)])!=null&&_0x3f3814[_0x2972cd(0x320)])){const {objectID:_0x39b30a,objectType:_0xd23064}=_0x216798['requestParams']['body']||{};if(!_0x39b30a||_0xd23064===void 0x0)return!0x1;const _0x19b5c8=_0x32ed44['_getAPIPrefixPath']()+'/'+_0xd23064+_0x2972cd(0x43a)+_0x39b30a+_0x2972cd(0x120);if(_0x216798[_0x2972cd(0x111)]===_0x19b5c8)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2f01b0){const _0x3af0a1=_0x155842;var _0x5e9761;return(_0x5e9761=_0x2f01b0[_0x3af0a1(0x103)])==null?void 0x0:_0x5e9761[_0x3af0a1(0x320)];},'mergeParamsToRequest'(_0x2111d7,_0xcedbd2){const _0x274d6d=_0x155842,_0x27b7bf=_0x32ed44[_0x274d6d(0x212)]()+_0x274d6d(0x302),_0xe0dfa=_0x2111d7[_0x274d6d(0x41d)]((_0x4b70f8,_0x4b0155)=>{const _0x222dcb=_0x274d6d,{unitID:_0x5c6bc7,objectID:_0x121d7c,objectType:_0x19c04c,actions:_0xf90125}=_0x4b0155;return _0x4b70f8[_0x5c6bc7]||(_0x4b70f8[_0x5c6bc7]={}),_0x4b70f8[_0x5c6bc7][_0x121d7c]||(_0x4b70f8[_0x5c6bc7][_0x121d7c]={'objectID':_0x121d7c,'objectType':_0x19c04c,'actions':[]}),_0x4b70f8[_0x5c6bc7][_0x121d7c][_0x222dcb(0x257)][_0x222dcb(0x152)](..._0xf90125),_0x4b70f8;},{}),_0x24d9fc=[];for(const _0x3b5ff7 in _0xe0dfa)for(const _0x103d16 in _0xe0dfa[_0x3b5ff7]){const {actions:_0x172a0c,objectType:_0x30f2d0}=_0xe0dfa[_0x3b5ff7][_0x103d16],_0x32bb25=[...new Set(_0x172a0c)];_0x24d9fc[_0x274d6d(0x152)]({'unitID':_0x3b5ff7,'objectID':_0x103d16,'objectType':_0x30f2d0,'actions':_0x32bb25});}return new _0x4d0064(_0x274d6d(0x1f7),_0x27b7bf,{'headers':_0xcedbd2[_0x274d6d(0x17a)],'withCredentials':_0xcedbd2[_0x274d6d(0x259)],'responseType':_0xcedbd2['responseType'],'body':{'requests':_0x24d9fc}});}},{'distributeResult'(_0x477926,_0x2adb01){const _0x3ad6a1=_0x155842,{objectActions:_0x20f3a2}=_0x477926;return _0x2adb01[_0x3ad6a1(0x1f8)](_0x56c8dc=>{const _0x4f3dc1=_0x3ad6a1,{unitID:_0x233cd0,objectID:_0x3835b3,actions:_0x3c9688}=_0x56c8dc,_0x4281cd=_0x20f3a2[_0x4f3dc1(0x261)](_0x2a04a1=>_0x2a04a1['unitID']===_0x233cd0&&_0x2a04a1[_0x4f3dc1(0x33f)]===_0x3835b3),_0x421ad5=_0x3c9688[_0x4f3dc1(0x1f8)](_0xbe5c19=>_0x4281cd==null?void 0x0:_0x4281cd[_0x4f3dc1(0x257)][_0x4f3dc1(0x261)](_0x2bc712=>_0x2bc712[_0x4f3dc1(0x360)]===_0xbe5c19))[_0x4f3dc1(0x376)](_0x4398a5=>!!_0x4398a5);return{'config':_0x56c8dc,'result':{'actions':_0x421ad5,'error':_0x477926['error']}};});}})}));}[_0x5009fc(0x212)](){const _0x2578ab=_0x5009fc;var _0x3bcacc,_0x3cc24a;const _0xcbfcc8=this[_0x2578ab(0x361)][_0x2578ab(0x23b)](Fo),_0x24d83f=this[_0x2578ab(0x361)]['getConfig']($);return(_0x3cc24a=(_0x3bcacc=_0x24d83f==null?void 0x0:_0x24d83f['authzUrl'])!=null?_0x3bcacc:_0xcbfcc8)!=null?_0x3cc24a:Wo;}async[_0x5009fc(0x296)](_0x529b7d){const _0x14fc99=_0x5009fc,_0x104704=this[_0x14fc99(0x212)]()+'/'+_0x529b7d[_0x14fc99(0x2e5)]+_0x14fc99(0x1ba);return(await this['_HTTPService']['post'](_0x104704,{'body':_0x529b7d}))[_0x14fc99(0x320)]['objectID']||'';}async['list'](_0x39b5f4){const _0x2880a3=_0x5009fc,_0xb33566=this['_getAPIPrefixPath']()+_0x2880a3(0xd7);return(await this['_HTTPService'][_0x2880a3(0x394)](_0xb33566,{'body':_0x39b5f4}))[_0x2880a3(0x320)][_0x2880a3(0x14b)];}async[_0x5009fc(0x2ff)](_0xf10d53){const _0x4f12dc=_0x5009fc,_0x7b54be=this[_0x4f12dc(0x212)]()+'/'+_0xf10d53[_0x4f12dc(0x2e5)]+_0x4f12dc(0x43a)+_0xf10d53[_0x4f12dc(0x33f)];await this[_0x4f12dc(0x2c9)][_0x4f12dc(0x2bd)](_0x7b54be,{'body':_0xf10d53});}async[_0x5009fc(0x21a)](_0x2cbea9){const _0x24652c=_0x5009fc,_0x4efcaa=this[_0x24652c(0x212)]()+'/'+_0x2cbea9[_0x24652c(0x2e5)]+'/object/'+_0x2cbea9[_0x24652c(0x33f)]+_0x24652c(0x120);return(await this[_0x24652c(0x2c9)]['post'](_0x4efcaa,{'body':_0x2cbea9}))['body'][_0x24652c(0x257)];}async[_0x5009fc(0x209)](_0x392e10){const _0x800c12=_0x5009fc,_0x426afc=this[_0x800c12(0x212)]()+_0x800c12(0x302);return(await this[_0x800c12(0x2c9)][_0x800c12(0x394)](_0x426afc,{'body':{'requests':_0x392e10}}))['body']['objectActions'];}async[_0x5009fc(0x3bd)](_0x21db1f){const _0x53fe5f=_0x5009fc,_0x20a226=this[_0x53fe5f(0x212)]()+'/'+_0x21db1f[_0x53fe5f(0x2e5)]+'/role',_0x204c61=await this[_0x53fe5f(0x2c9)][_0x53fe5f(0x394)](_0x20a226,{'body':_0x21db1f});return{'roles':_0x204c61[_0x53fe5f(0x320)][_0x53fe5f(0x240)],'actions':_0x204c61[_0x53fe5f(0x320)]['actions']};}async[_0x5009fc(0x37f)](_0x3051f6){const _0x3bcdb5=_0x5009fc,_0x1c54d7=this['_getAPIPrefixPath']()+_0x3bcdb5(0x3dc);await this[_0x3bcdb5(0x2c9)][_0x3bcdb5(0x184)](_0x1c54d7,{'params':{'collaboratorID':_0x3051f6[_0x3bcdb5(0x1eb)],'objectID':_0x3051f6[_0x3bcdb5(0x33f)],'unitID':_0x3051f6[_0x3bcdb5(0x187)]}});}async[_0x5009fc(0x11a)](_0x3595d5){const _0x12f96b=_0x5009fc,_0x727db3=this['_getAPIPrefixPath']()+_0x12f96b(0x3dc);await this[_0x12f96b(0x2c9)][_0x12f96b(0x24b)](_0x727db3,{'body':_0x3595d5});}async[_0x5009fc(0xfe)](_0x1b3e6f){const _0x1ad43a=_0x5009fc,_0x5be30b=this['_getAPIPrefixPath']()+_0x1ad43a(0x3dc);await this[_0x1ad43a(0x2c9)][_0x1ad43a(0x394)](_0x5be30b,{'body':_0x1b3e6f});}async['listCollaborators'](_0x4bb20a){const _0xb72ef3=_0x5009fc,_0x3235cc=this['_getAPIPrefixPath']()+_0xb72ef3(0x3dc);return(await this[_0xb72ef3(0x2c9)][_0xb72ef3(0x381)](_0x3235cc,{'params':{'objectID':_0x4bb20a[_0xb72ef3(0x33f)],'unitID':_0x4bb20a[_0xb72ef3(0x187)]}}))[_0xb72ef3(0x320)][_0xb72ef3(0x158)];}async['putCollaborators'](_0x20cb8){const _0x1d4644=_0x5009fc,_0x3fa6c5=this[_0x1d4644(0x212)]()+_0x1d4644(0x3dc);await this[_0x1d4644(0x2c9)][_0x1d4644(0x2bd)](_0x3fa6c5,{'body':_0x20cb8});}};yt=Vo([ps(0x0,_0x1f955f(_0x3a167c)),ps(0x1,_0x1f955f(_0x4b96c2))],yt);var Go=Object[_0x5009fc(0x235)],Yo=Object[_0x5009fc(0x327)],Ko=(_0x12cb38,_0x30343f,_0x212dc7,_0x5a33b0)=>{for(var _0x45fe7a=_0x5a33b0>0x1?void 0x0:_0x5a33b0?Yo(_0x30343f,_0x212dc7):_0x30343f,_0x3e2244=_0x12cb38['length']-0x1,_0x3227d5;_0x3e2244>=0x0;_0x3e2244--)(_0x3227d5=_0x12cb38[_0x3e2244])&&(_0x45fe7a=(_0x5a33b0?_0x3227d5(_0x30343f,_0x212dc7,_0x45fe7a):_0x3227d5(_0x45fe7a))||_0x45fe7a);return _0x5a33b0&&_0x45fe7a&&Go(_0x30343f,_0x212dc7,_0x45fe7a),_0x45fe7a;},Xo=(_0x5820c7,_0x145483)=>(_0x451ae5,_0xe8da46)=>_0x145483(_0x451ae5,_0xe8da46,_0x5820c7);function _0x3280(_0x5545ec,_0x5eae49){const _0x1a52d6=_0x1a52();return _0x3280=function(_0x328051,_0x16b12c){_0x328051=_0x328051-0xd1;let _0x4ba8d3=_0x1a52d6[_0x328051];return _0x4ba8d3;},_0x3280(_0x5545ec,_0x5eae49);}let Qe=class{constructor(_0xd0e1c6){const _0x258527=_0x5009fc;this[_0x258527(0x26b)]=_0xd0e1c6,this[_0x258527(0x1a6)]();}[_0x5009fc(0x1a6)](){const _0x315d01=_0x5009fc;this[_0x315d01(0x26b)][_0x315d01(0x1df)]({'interceptor':(_0x3031bd,_0x3943c1)=>{const _0x145e8f=_0x315d01,_0x23c35d=_0x3031bd['headers'],_0x30d59b=_0x258e3b();return _0x30d59b&&_0x23c35d[_0x145e8f(0x411)](_0x145e8f(0x351),_0x30d59b),_0x3943c1(_0x3031bd);}});}};Qe=Ko([Xo(0x0,_0x1f955f(_0x3a167c))],Qe);var qo=Object[_0x5009fc(0x235)],Jo=Object[_0x5009fc(0x327)],zo=(_0x1c24a4,_0x5a573d,_0x29d273,_0x5f134d)=>{const _0x2e923c=_0x5009fc;for(var _0x904685=_0x5f134d>0x1?void 0x0:_0x5f134d?Jo(_0x5a573d,_0x29d273):_0x5a573d,_0x398b34=_0x1c24a4[_0x2e923c(0x21e)]-0x1,_0x4a339a;_0x398b34>=0x0;_0x398b34--)(_0x4a339a=_0x1c24a4[_0x398b34])&&(_0x904685=(_0x5f134d?_0x4a339a(_0x5a573d,_0x29d273,_0x904685):_0x4a339a(_0x904685))||_0x904685);return _0x5f134d&&_0x904685&&qo(_0x5a573d,_0x29d273,_0x904685),_0x904685;},pt=(_0x34cac5,_0x1bd8dd)=>(_0x407842,_0x208d7c)=>_0x1bd8dd(_0x407842,_0x208d7c,_0x34cac5);const Zo=[_0x5009fc(0x263),_0x5009fc(0x205),_0x5009fc(0xe5),_0x5009fc(0x1be),_0x5009fc(0x19c)],Qo=0x5*0x400*0x400,ea='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',ta='/universer-api/stream/file/upload',sa=_0x5009fc(0x160),ia=_0x5009fc(0x2a1);let Ut=class{constructor(_0x326780,_0x57951e,_0x5aaccf){const _0x14866e=_0x5009fc;l(this,_0x14866e(0x281),0x0),l(this,_0x14866e(0x1bd),new _0x379f4()),l(this,'change$',this[_0x14866e(0x1bd)]),l(this,_0x14866e(0x107),new Map()),(this[_0x14866e(0x26b)]=_0x326780,this['_configService']=_0x57951e,this[_0x14866e(0x250)]=_0x5aaccf);}['setWaitCount'](_0xbc2e67){const _0x1d31c7=_0x5009fc;this[_0x1d31c7(0x281)]=_0xbc2e67,this[_0x1d31c7(0x1bd)][_0x1d31c7(0x1cf)](_0xbc2e67);}[_0x5009fc(0x1dc)](_0x116fc9,_0x4b8953){const _0x15f4d0=_0x5009fc;if(_0x4b8953===_0x2f7913[_0x15f4d0(0x430)]){const _0x158f1d=new Image();return _0x158f1d['src']=_0x116fc9,_0x158f1d;}return this[_0x15f4d0(0x107)]['get'](_0x116fc9);}[_0x5009fc(0x2cb)](_0x237c9a,_0x3f96d2,_0x3eb907){const _0x3cbc19=_0x5009fc;_0x3f96d2===_0x2f7913[_0x3cbc19(0x430)]||_0x3eb907==null||this[_0x3cbc19(0x107)][_0x3cbc19(0x411)](_0x237c9a,_0x3eb907);}async['getImage'](_0x23a089){const _0x33ad15=_0x5009fc;try{const _0x1c7e0e=this['_replaceFileID'](this[_0x33ad15(0x39d)](),''+_0x23a089),_0x4390a5=(await this[_0x33ad15(0x26b)][_0x33ad15(0x381)](_0x1c7e0e))['body'];if(_0x4390a5['error']&&_0x4390a5['error'][_0x33ad15(0x3ed)]===xs['OK']){const _0x36ab9e=new URL(_0x4390a5[_0x33ad15(0x111)],this[_0x33ad15(0x428)]())[_0x33ad15(0x449)]();return Promise[_0x33ad15(0x17b)](_0x36ab9e);}return Promise[_0x33ad15(0x41f)](_0x4390a5[_0x33ad15(0x1bb)]);}catch(_0x1b1196){return Promise[_0x33ad15(0x41f)](_0x1b1196);}}async[_0x5009fc(0x1ed)](_0xe1daf7){const _0x11bbb2=_0x5009fc;let _0x5370b8='';if(!Zo[_0x11bbb2(0x124)](_0xe1daf7[_0x11bbb2(0x1f3)]))return this[_0x11bbb2(0x13d)](),Promise[_0x11bbb2(0x41f)](new Error(_0x13fb43[_0x11bbb2(0x36d)]));if(_0xe1daf7[_0x11bbb2(0x1f6)]>Qo)return this[_0x11bbb2(0x13d)](),Promise[_0x11bbb2(0x41f)](new Error(_0x13fb43[_0x11bbb2(0x1da)]));try{const _0x1f2c3c=new FormData();_0x1f2c3c[_0x11bbb2(0x139)](_0x11bbb2(0x44d),_0xe1daf7);const _0x50344b=this[_0x11bbb2(0x250)][_0x11bbb2(0x10e)](),_0x3a3e87=_0x50344b==null?void 0x0:_0x50344b[_0x11bbb2(0x147)]();if(!_0x3a3e87)throw new Error(_0x11bbb2(0x379));const _0x37c9c2=this[_0x11bbb2(0x140)]()+_0x11bbb2(0x2d1)+_0xe1daf7['size'][_0x11bbb2(0x449)]()+'&source='+ks[_0x11bbb2(0x244)]+_0x11bbb2(0x11c)+encodeURIComponent(_0x3a3e87),_0x2c2e16=await(await fetch(_0x37c9c2,{'method':_0x11bbb2(0x1f7),'body':_0x1f2c3c}))[_0x11bbb2(0x1bf)]();if(typeof _0x2c2e16['FileId']!='string')return this[_0x11bbb2(0x13d)](),Promise[_0x11bbb2(0x41f)](new Error(_0x13fb43['ERROR_IMAGE']));_0x5370b8=_0x2c2e16[_0x11bbb2(0x3ad)];}catch{return this['_decreaseWaiting'](),Promise[_0x11bbb2(0x41f)](new Error(_0x13fb43[_0x11bbb2(0x3d2)]));}return new Promise((_0x5f1107,_0x58b0b2)=>{const _0x4ecfe1=_0x11bbb2,_0x49681a=new FileReader();_0x49681a['readAsDataURL'](_0xe1daf7),_0x49681a[_0x4ecfe1(0x30c)]=_0x20f392=>{const _0x264ac2=_0x4ecfe1;var _0xa06679;const _0xe41d73=(_0xa06679=_0x20f392['target'])==null?void 0x0:_0xa06679[_0x264ac2(0x304)];if(_0xe41d73==null){this[_0x264ac2(0x13d)](),_0x58b0b2(new Error(_0x13fb43[_0x264ac2(0x3d2)]));return;}const _0x403051=_0x548d2b['generateRandomId'](0x6);_0x5f1107({'imageId':_0x403051,'imageSourceType':_0x2f7913[_0x264ac2(0x1d0)],'source':_0x5370b8,'base64Cache':_0xe41d73,'status':_0x13fb43[_0x264ac2(0x25a)]}),this[_0x264ac2(0x13d)]();};});}[_0x5009fc(0x140)](){const _0x50d301=_0x5009fc;var _0x3dcc7c,_0x56bcd5;const _0x4094cb=this[_0x50d301(0x361)][_0x50d301(0x23b)](ea),_0x5aca34=this[_0x50d301(0x361)][_0x50d301(0x23b)]($);return(_0x56bcd5=(_0x3dcc7c=_0x5aca34==null?void 0x0:_0x5aca34[_0x50d301(0x274)])!=null?_0x3dcc7c:_0x4094cb)!=null?_0x56bcd5:ta;}[_0x5009fc(0x39d)](){const _0x3e7369=_0x5009fc;var _0x333e09,_0x5156da;const _0xd33f9=this[_0x3e7369(0x361)][_0x3e7369(0x23b)](sa),_0x104648=this[_0x3e7369(0x361)][_0x3e7369(0x23b)]($);return(_0x5156da=(_0x333e09=_0x104648==null?void 0x0:_0x104648[_0x3e7369(0x375)])!=null?_0x333e09:_0xd33f9)!=null?_0x5156da:ia;}['_getDownloadEndpointURL'](){const _0x134b43=_0x5009fc;var _0x12c0fd;const _0x21dcce=this[_0x134b43(0x361)][_0x134b43(0x23b)]($);return(_0x12c0fd=_0x21dcce==null?void 0x0:_0x21dcce['downloadEndpointUrl'])!=null?_0x12c0fd:location[_0x134b43(0x283)];}[_0x5009fc(0x3fd)](_0x4f0ce4,_0x1a4836){const _0x156bf2=_0x5009fc;return _0x4f0ce4[_0x156bf2(0x35d)]('{fileID}',_0x1a4836);}['_decreaseWaiting'](){const _0x132919=_0x5009fc;this[_0x132919(0x281)]-=0x1,this[_0x132919(0x1bd)][_0x132919(0x1cf)](this['_waitCount']);}};Ut=zo([pt(0x0,_0x1f955f(_0x3a167c)),pt(0x1,_0x4b96c2),pt(0x2,_0x1f955f(_0x2d78d8))],Ut);var na=Object['defineProperty'],ra=Object[_0x5009fc(0x327)],oa=(_0x44df2d,_0x5c5410,_0x14bb64,_0x35b329)=>{const _0x2a9242=_0x5009fc;for(var _0x60e708=_0x35b329>0x1?void 0x0:_0x35b329?ra(_0x5c5410,_0x14bb64):_0x5c5410,_0xd8176c=_0x44df2d[_0x2a9242(0x21e)]-0x1,_0x15ae12;_0xd8176c>=0x0;_0xd8176c--)(_0x15ae12=_0x44df2d[_0xd8176c])&&(_0x60e708=(_0x35b329?_0x15ae12(_0x5c5410,_0x14bb64,_0x60e708):_0x15ae12(_0x60e708))||_0x60e708);return _0x35b329&&_0x60e708&&na(_0x5c5410,_0x14bb64,_0x60e708),_0x60e708;},ye=(_0x49a7be,_0x2680ca)=>(_0x25b030,_0x560de8)=>_0x2680ca(_0x25b030,_0x560de8,_0x49a7be);let et=class extends _0x5889a4{constructor(_0x78e5a9,_0x5bd7f4,_0x454dc4,_0x522b46,_0x4ec427){const _0x4e64ea=_0x5009fc;super(),this[_0x4e64ea(0x448)]=_0x78e5a9,this[_0x4e64ea(0x250)]=_0x5bd7f4,this['_permissionService']=_0x454dc4,this[_0x4e64ea(0x38d)]=_0x522b46,this[_0x4e64ea(0x2a6)]=_0x4ec427,this['_initUnitPermissionChange'](),this[_0x4e64ea(0xe1)]();}['_initCloseConn'](){const _0x81475d=_0x5009fc,_0x347721=async _0x15007c=>{const _0x5430dd=_0x3280;(await this[_0x5430dd(0x38d)][_0x5430dd(0x1fd)](_0x15007c))[_0x5430dd(0x427)]['pipe'](_0x5d3bcc(_0x2c3192=>_0x2c3192[_0x5430dd(0x299)]===_0x5bf9c6['SHOULD_CLOSE_CONN']),_0x22831a(this[_0x5430dd(0x35c)]))[_0x5430dd(0x206)](_0x101d72=>{const _0x26cc5a=_0x5430dd,_0x1c6cef=_0x101d72,{reason:_0x5908b0}=_0x1c6cef[_0x26cc5a(0x363)];this[_0x26cc5a(0x448)][_0x26cc5a(0x381)](_0x40b38a)[_0x26cc5a(0xf7)]({'type':_0x3738f0['Error'],'content':this[_0x26cc5a(0x2a6)]['t'](_0x26cc5a(0x31a))+'('+_0x5908b0+')'}),this[_0x26cc5a(0x1e4)][_0x26cc5a(0x2c8)](new _0x496922(_0x15007c)['id'],!0x1),this[_0x26cc5a(0x38d)][_0x26cc5a(0x401)](_0x15007c);});};_0x370802(this[_0x81475d(0x250)][_0x81475d(0x39b)](_0x53f477[_0x81475d(0x33c)]),this['_univerInstanceService'][_0x81475d(0x39b)](_0x53f477['UNIVER_DOC']))['pipe'](_0x13fcf1(_0x3edec5=>_0x3edec5[_0x81475d(0x147)]()),_0x5d3bcc(_0x54eab0=>!_0x594798(_0x54eab0)),_0x22831a(this[_0x81475d(0x35c)]))[_0x81475d(0x206)](_0x5c2f2c=>{_0x347721(_0x5c2f2c);});}['_initUnitPermissionChange'](){const _0x346fec=_0x5009fc,_0x23a71f=async _0x1b6db9=>{const _0x26baee=_0x3280;(await this[_0x26baee(0x38d)][_0x26baee(0x1fd)](_0x1b6db9))[_0x26baee(0x427)]['pipe'](_0x5d3bcc(_0x165a61=>_0x165a61[_0x26baee(0x299)]===_0x5bf9c6['UPDATE_PERMISSION_OBJ']),_0x22831a(this[_0x26baee(0x35c)]))[_0x26baee(0x206)](_0x51a077=>{const _0x3d2a68=_0x26baee,_0x27d6a9=_0x51a077,{objectId:_0x467bab}=_0x27d6a9[_0x3d2a68(0x363)],_0x2fa426=this[_0x3d2a68(0x448)]['get'](_0xcd44b3);_0x467bab===_0x1b6db9?_0x2fa426['initWorkbookPermissionChange'](_0x1b6db9):_0x2fa426[_0x3d2a68(0x2fc)](_0x1b6db9,_0x467bab);});};_0x370802(this['_univerInstanceService'][_0x346fec(0x39b)](_0x53f477[_0x346fec(0x33c)]),this[_0x346fec(0x250)][_0x346fec(0x39b)](_0x53f477[_0x346fec(0x36f)]))[_0x346fec(0x44f)](_0x13fcf1(_0x13be43=>_0x13be43[_0x346fec(0x147)]()),_0x5d3bcc(_0x539a37=>!_0x594798(_0x539a37)),_0x22831a(this[_0x346fec(0x35c)]))[_0x346fec(0x206)](_0x5682dc=>{_0x23a71f(_0x5682dc);});}};et=oa([ye(0x0,_0x1f955f(_0x97bef)),ye(0x1,_0x2d78d8),ye(0x2,_0x46a842),ye(0x3,_0x1f955f(he)),ye(0x4,_0x1f955f(_0x371029))],et);var aa=Object['defineProperty'],ca=Object['getOwnPropertyDescriptor'],ha=(_0xe2a08e,_0x4a4320,_0x5d5e23,_0x2f56fc)=>{const _0x1feaa4=_0x5009fc;for(var _0x54ad11=_0x2f56fc>0x1?void 0x0:_0x2f56fc?ca(_0x4a4320,_0x5d5e23):_0x4a4320,_0x4fed9f=_0xe2a08e[_0x1feaa4(0x21e)]-0x1,_0x47e1a3;_0x4fed9f>=0x0;_0x4fed9f--)(_0x47e1a3=_0xe2a08e[_0x4fed9f])&&(_0x54ad11=(_0x2f56fc?_0x47e1a3(_0x4a4320,_0x5d5e23,_0x54ad11):_0x47e1a3(_0x54ad11))||_0x54ad11);return _0x2f56fc&&_0x54ad11&&aa(_0x4a4320,_0x5d5e23,_0x54ad11),_0x54ad11;},vs=(_0x80874b,_0xa5d567)=>(_0x2cba1d,_0x3e71ae)=>_0xa5d567(_0x2cba1d,_0x3e71ae,_0x80874b);let Nt=class{constructor(_0x3ca590,_0x4e5ed4){const _0x4fc84f=_0x5009fc;this[_0x4fc84f(0x361)]=_0x3ca590,this['_httpService']=_0x4e5ed4;}async[_0x5009fc(0x41b)](_0x5db6b6,_0x25a067){const _0x1a2880=_0x5009fc;var _0x4f8fb2;const {unitID:_0x3ea774,type:_0x4e7e83,revision:_0x5957a9=0x0}=_0x25a067,_0x267089=this[_0x1a2880(0x3c4)]()+'/'+_0x4e7e83+_0x1a2880(0x11e)+_0x3ea774+'/rev/'+_0x5957a9,_0x255114=(await this[_0x1a2880(0x26b)]['get'](_0x267089))[_0x1a2880(0x320)],_0x4f92f5=(_0x4f8fb2=_0x255114[_0x1a2880(0x204)])==null?void 0x0:_0x4f8fb2['workbook'];if(_0x4f92f5){const _0x2faf2f=_0x4f92f5==null?void 0x0:_0x4f92f5[_0x1a2880(0x3d3)],_0x327e28=_0x4049ad[_0x1a2880(0x251)](_0x2a5fc5(_0x2faf2f));_0x4f92f5[_0x1a2880(0x3d3)]=_0x327e28,Object['entries'](_0x4f92f5[_0x1a2880(0x3f7)])[_0x1a2880(0x1d4)](([,_0x4583c3])=>{const _0x1342c9=_0x1a2880,_0x2bda4c=_0x4583c3[_0x1342c9(0x3d3)],_0x2eb1a6=_0x4049ad[_0x1342c9(0x251)](_0x2a5fc5(_0x2bda4c));_0x4583c3[_0x1342c9(0x3d3)]=_0x2eb1a6;});}return _0x255114;}async[_0x5009fc(0x26d)](_0x2ee39a,_0xd89366){const _0x403003=_0x5009fc,{unitID:_0x45ce6b,type:_0x3b0fe8,blockID:_0x5038a8}=_0xd89366,_0x2e81ba=this[_0x403003(0x1f0)]()+'/'+_0x3b0fe8+_0x403003(0x11e)+_0x45ce6b+_0x403003(0x1ef)+_0x5038a8;return(await this[_0x403003(0x26b)][_0x403003(0x381)](_0x2e81ba))[_0x403003(0x320)];}async[_0x5009fc(0x3bb)](_0x105ede,_0x1a1f53){const _0x580ce2=_0x5009fc,{unitID:_0x197a34,type:_0x156eee,blockID:_0x54847b}=_0x1a1f53,_0x99489a=this[_0x580ce2(0x1f0)]()+'/block/'+_0x156eee+'/unit/'+_0x197a34+_0x580ce2(0x1ef)+_0x54847b;return(await this[_0x580ce2(0x26b)][_0x580ce2(0x381)](_0x99489a))[_0x580ce2(0x320)];}async[_0x5009fc(0x2b7)](_0x39255b,_0xc4080f){const _0x37d933=_0x5009fc,{unitID:_0x4960fd,type:_0x43d13b,from:_0x72e139,to:_0x253d38}=_0xc4080f,_0x1d17e4=this['_getAPIPrefix']()+'/'+_0x43d13b+_0x37d933(0x11e)+_0x4960fd+'/fetchmissing?from='+_0x72e139+'&to='+_0x253d38;return(await this[_0x37d933(0x26b)]['get'](_0x1d17e4))[_0x37d933(0x320)];}[_0x5009fc(0x3c4)](){const _0x2dec9c=_0x5009fc;var _0x2e0d3a;return(_0x2e0d3a=this[_0x2dec9c(0x361)][_0x2dec9c(0x23b)](Cn))!=null?_0x2e0d3a:this['_getAPIPrefix']();}[_0x5009fc(0x1f0)](){const _0x28e393=_0x5009fc;var _0x2a08b3,_0x53ad36;const _0x53686a=this['_configService'][_0x28e393(0x23b)](In),_0x23293f=this[_0x28e393(0x361)][_0x28e393(0x23b)]($);return(_0x53ad36=(_0x2a08b3=_0x23293f==null?void 0x0:_0x23293f[_0x28e393(0x199)])!=null?_0x2a08b3:_0x53686a)!=null?_0x53ad36:En;}async[_0x5009fc(0x220)](_0x3da27e,_0x52589f){const _0x1d693b=_0x5009fc,_0x460fd6=_0x1d693b(0x246)+_0x52589f[_0x1d693b(0x1f3)]+_0x1d693b(0x11e)+_0x52589f[_0x1d693b(0x187)]+_0x1d693b(0x30a);return(await this['_httpService'][_0x1d693b(0x381)](_0x460fd6,{'params':{'resourceId':JSON[_0x1d693b(0x33b)](_0x52589f[_0x1d693b(0x3c3)])}}))[_0x1d693b(0x320)];}[_0x5009fc(0x408)](){const _0x5b1369=_0x5009fc;throw new Error(_0x5b1369(0x2ea));}[_0x5009fc(0x155)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x5009fc(0x24d)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x5754ff=_0x5009fc;throw new Error(_0x5754ff(0x2ea));}[_0x5009fc(0x119)](){const _0x15f63f=_0x5009fc;throw new Error(_0x15f63f(0x2ea));}};Nt=ha([vs(0x0,_0x4b96c2),vs(0x1,_0x1f955f(_0x3a167c))],Nt);var la=Object[_0x5009fc(0x235)],_a=Object[_0x5009fc(0x327)],ua=(_0x3e1e0e,_0x312c8b,_0x2484b2,_0xd8a719)=>{const _0x4f0b57=_0x5009fc;for(var _0x33c218=_0xd8a719>0x1?void 0x0:_0xd8a719?_a(_0x312c8b,_0x2484b2):_0x312c8b,_0x5f3a12=_0x3e1e0e[_0x4f0b57(0x21e)]-0x1,_0x5d674b;_0x5f3a12>=0x0;_0x5f3a12--)(_0x5d674b=_0x3e1e0e[_0x5f3a12])&&(_0x33c218=(_0xd8a719?_0x5d674b(_0x312c8b,_0x2484b2,_0x33c218):_0x5d674b(_0x33c218))||_0x33c218);return _0xd8a719&&_0x33c218&&la(_0x312c8b,_0x2484b2,_0x33c218),_0x33c218;},Ue=(_0x4a4af8,_0x9de003)=>(_0x29d7f1,_0x52d840)=>_0x9de003(_0x29d7f1,_0x52d840,_0x4a4af8);let Mt=class extends _0x27b177{constructor(_0x43321b,_0x57a903,_0x24d2b7,_0x3a2821,_0x44f53f){const _0x5d2261=_0x5009fc;super(_0x43321b,_0x57a903,_0x24d2b7),this['_transformService']=_0x3a2821,this[_0x5d2261(0x208)]=_0x44f53f;}['transformUndoRedo'](_0x3f039c,_0x12f495){const _0x4b6486=_0x5009fc,_0x5b7099=this[_0x4b6486(0x23f)](_0x3f039c);if(_0x5b7099)try{const _0x5745a7=this[_0x4b6486(0x10f)](_0x5b7099,_0x12f495);this[_0x4b6486(0x1e3)](_0x3f039c,_0x5745a7);}catch(_0x50c873){this[_0x4b6486(0x208)]['error'](_0x4b6486(0x3fa),_0x50c873),this[_0x4b6486(0x371)](_0x3f039c);}const _0x5004ab=this[_0x4b6486(0x3d6)](_0x3f039c);if(_0x5004ab)try{const _0x1b2931=this['_transformStack'](_0x5004ab,_0x12f495);this[_0x4b6486(0x2d4)](_0x3f039c,_0x1b2931);}catch(_0x1f0d01){this[_0x4b6486(0x208)]['error'](_0x1f0d01),this[_0x4b6486(0x346)](_0x3f039c);}}[_0x5009fc(0x371)](_0x232a95){const _0x2f2e4a=_0x5009fc,_0x1eb184=this[_0x2f2e4a(0x23f)](_0x232a95);_0x1eb184&&(_0x1eb184[_0x2f2e4a(0x21e)]=0x0,this[_0x2f2e4a(0x3da)]());}['_clearRedo'](_0x1fa6e1){const _0xb103a8=_0x5009fc,_0x3b74bc=this[_0xb103a8(0x3d6)](_0x1fa6e1);_0x3b74bc&&(_0x3b74bc[_0xb103a8(0x21e)]=0x0,this[_0xb103a8(0x3da)]());}[_0x5009fc(0x1e3)](_0x1ad3a0,_0x5df0f3){const _0x54201b=_0x5009fc;this['_undoStacks'][_0x54201b(0x411)](_0x1ad3a0,_0x5df0f3),this[_0x54201b(0x3da)]();}[_0x5009fc(0x2d4)](_0x309a8c,_0x5ca4db){const _0x48d0f1=_0x5009fc;this[_0x48d0f1(0x1b6)][_0x48d0f1(0x411)](_0x309a8c,_0x5ca4db),this[_0x48d0f1(0x3da)]();}[_0x5009fc(0x10f)](_0x4dc9c9,_0x2986fb){const _0x473abc=_0x5009fc,_0x4e1f28=[];let _0x52f5d2=_0x2986fb,_0x5af60d=_0x2986fb;for(let _0x5e26b1=_0x4dc9c9[_0x473abc(0x21e)]-0x1;_0x5e26b1>=0x0;_0x5e26b1--){const {unitID:_0x43d9b2,undoMutations:_0x5f35c0,redoMutations:_0x517d1e}=_0x4dc9c9[_0x5e26b1],_0x45aafb=this['_transformService'][_0x473abc(0x1ec)](_0x52f5d2,_0x5f35c0),_0x133186=this['_transformService'][_0x473abc(0x1ec)](_0x5af60d,_0x517d1e);if(_0x4cd7ab(_0x45aafb)||_0x4cd7ab(_0x133186)){this[_0x473abc(0x208)][_0x473abc(0x1bb)](_0x473abc(0x3fa),'transformStack\x20failed!',_0x45aafb,_0x133186);break;}_0x52f5d2=_0x45aafb['c1Prime'],_0x5af60d=_0x133186['c1Prime'],_0x4e1f28[_0x473abc(0x152)]({'unitID':_0x43d9b2,'undoMutations':_0x45aafb[_0x473abc(0xd1)],'redoMutations':_0x133186[_0x473abc(0xd1)]});}return _0x4e1f28[_0x473abc(0x2e1)]();}};Mt=ua([Ue(0x0,_0x2d78d8),Ue(0x1,_0xfcd33f),Ue(0x2,_0x1bc6ba),Ue(0x3,_0x191396),Ue(0x4,_0x5cfe43)],Mt);class da extends _0x5889a4{constructor(){const _0x1ce775=_0x5009fc;super(),l(this,_0x1ce775(0x106)),this[_0x1ce775(0x106)]=_0x35b99f(window,_0x1ce775(0x2ec))[_0x1ce775(0x44f)](_0x810e9a(this[_0x1ce775(0x35c)]),_0x2ee8ad(0x1),_0x505731(void 0x0));}[_0x5009fc(0x3ee)](_0x2f220f,_0x54df37,_0x5ba455=!0x1){const _0x1884c0=_0x5009fc,_0x21e573=new URL(window[_0x1884c0(0x1a1)][_0x1884c0(0x326)]);_0x21e573['searchParams']['set'](_0x2f220f,_0x54df37),_0x5ba455?window[_0x1884c0(0x2ab)][_0x1884c0(0x20a)]('','',_0x21e573[_0x1884c0(0x449)]()):window[_0x1884c0(0x2ab)][_0x1884c0(0x181)]('','',_0x21e573[_0x1884c0(0x449)]());}[_0x5009fc(0x328)](_0x2a0736,_0x195190=!0x1){const _0x32aaee=_0x5009fc,_0x24c480=new URL(window[_0x32aaee(0x1a1)]['href']);_0x24c480[_0x32aaee(0x278)][_0x32aaee(0x184)](_0x2a0736),_0x195190?window[_0x32aaee(0x2ab)]['replaceState']('','',_0x24c480['toString']()):window['history']['pushState']('','',_0x24c480[_0x32aaee(0x449)]());}[_0x5009fc(0x366)](_0x1ad604){const _0x2f7a95=_0x5009fc;var _0x33d4fe;return(_0x33d4fe=new URL(window['location'][_0x2f7a95(0x326)])[_0x2f7a95(0x278)]['get'](_0x1ad604))!=null?_0x33d4fe:void 0x0;}}var Qs=Object[_0x5009fc(0x235)],ma=Object['getOwnPropertyDescriptor'],fa=(_0x7cd04d,_0x51bd0c,_0x50cfd1)=>_0x51bd0c in _0x7cd04d?Qs(_0x7cd04d,_0x51bd0c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50cfd1}):_0x7cd04d[_0x51bd0c]=_0x50cfd1,ga=(_0x35cc68,_0x315e18,_0x3497df,_0x352dd5)=>{const _0x4c8484=_0x5009fc;for(var _0x1c9a96=_0x352dd5>0x1?void 0x0:_0x352dd5?ma(_0x315e18,_0x3497df):_0x315e18,_0x408b32=_0x35cc68[_0x4c8484(0x21e)]-0x1,_0x181b0a;_0x408b32>=0x0;_0x408b32--)(_0x181b0a=_0x35cc68[_0x408b32])&&(_0x1c9a96=(_0x352dd5?_0x181b0a(_0x315e18,_0x3497df,_0x1c9a96):_0x181b0a(_0x1c9a96))||_0x1c9a96);return _0x352dd5&&_0x1c9a96&&Qs(_0x315e18,_0x3497df,_0x1c9a96),_0x1c9a96;},Ve=(_0x5f0782,_0x5a3f4b)=>(_0x4ef9bf,_0x5a7301)=>_0x5a3f4b(_0x4ef9bf,_0x5a7301,_0x5f0782),Sa=(_0x3a5f29,_0x95e05c,_0xe3c183)=>fa(_0x3a5f29,_0x95e05c+'',_0xe3c183);const pa=_0x5009fc(0x2e4);let At=class extends _0x5daa5a{constructor(_0x4037bc=jn,_0x4e619c,_0x513ace,_0x25b540,_0x5633e6){const _0x7baa8e=_0x5009fc;super(),this[_0x7baa8e(0x2d3)]=_0x4037bc,this[_0x7baa8e(0x208)]=_0x4e619c,this[_0x7baa8e(0x2ca)]=_0x513ace,this[_0x7baa8e(0x448)]=_0x25b540,this[_0x7baa8e(0x361)]=_0x5633e6;const {..._0xd13aec}=this[_0x7baa8e(0x2d3)];this[_0x7baa8e(0x361)][_0x7baa8e(0x1aa)]($,_0xd13aec);}[_0x5009fc(0xdd)](){const _0x4aebdf=_0x5009fc;this[_0x4aebdf(0x2a3)](),_0x1e9d2e(this[_0x4aebdf(0x448)],[[ve],[Je],[et]]);}[_0x5009fc(0x3b0)](){const _0x5c5154=_0x5009fc;_0x1e9d2e(this[_0x5c5154(0x448)],[[ze]]);}[_0x5009fc(0x2cc)](){const _0x2dd6bc=_0x5009fc;this[_0x2dd6bc(0x324)]();}['_registerDependencies'](){const _0x10a1bb=_0x5009fc;var _0x256810,_0x345882,_0x106adb,_0x504995;this[_0x10a1bb(0x448)][_0x10a1bb(0x2b0)](_0xf4d2d4)&&this['_logService'][_0x10a1bb(0x1bb)](_0x10a1bb(0x137),_0x10a1bb(0x403));let _0x39917a=[[_0xf4d2d4,{'useClass':Mt}],[he],[Gt],[_0x3a167c],[Zs,{'useClass':da}],[ce],[w],[_0x4a2775],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[Vs],[et],[Bs,{'useClass':(_0x345882=(_0x256810=this['_config'])==null?void 0x0:_0x256810[_0x10a1bb(0x14d)])!=null?_0x345882:Ct}],[_0x930210,{'useClass':_0x3f6857}],[_0x180893,{'useClass':Nt}],[_0x25d73f,{'useClass':yt}],[_0x2be35a,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0x106adb=this[_0x10a1bb(0x2d3)])!=null&&_0x106adb[_0x10a1bb(0x338)]&&_0x39917a[_0x10a1bb(0x152)]([tt,{'useClass':Sr}]),_0x39917a=_0x1224cf(_0x39917a,(_0x504995=this['_config'])==null?void 0x0:_0x504995['override']),_0x39917a['forEach'](_0x43f670=>this[_0x10a1bb(0x448)][_0x10a1bb(0x3ea)](_0x43f670)),this['_initModules']();}[_0x5009fc(0x324)](){const _0x1d8927=_0x5009fc;this[_0x1d8927(0x341)](this[_0x1d8927(0x2ca)][_0x1d8927(0x3a6)](_0x53f477[_0x1d8927(0x36f)],[wt])),this[_0x1d8927(0x341)](this[_0x1d8927(0x2ca)]['registerRenderModule'](_0x53f477['UNIVER_SHEET'],[Pt]));}[_0x5009fc(0x2ce)](){const _0x4add9e=_0x5009fc;var _0x10e567,_0x53717f;this[_0x4add9e(0x448)][_0x4add9e(0x381)](_0x3a167c)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x1d972c({'maxParallel':0x6})}),this[_0x4add9e(0x448)]['get'](Qe),(_0x10e567=this[_0x4add9e(0x2d3)])!=null&&_0x10e567[_0x4add9e(0x3e9)]||this[_0x4add9e(0x448)][_0x4add9e(0x381)](w)[_0x4add9e(0x1d2)](),(_0x53717f=this[_0x4add9e(0x2d3)])!=null&&_0x53717f[_0x4add9e(0x418)]&&this['_injector'][_0x4add9e(0x381)](Ze),this[_0x4add9e(0x448)][_0x4add9e(0x381)](Le),this[_0x4add9e(0x448)][_0x4add9e(0x2b0)](Me)&&this[_0x4add9e(0x448)][_0x4add9e(0x381)](Me);}};Sa(At,'pluginName',pa),At=ga([_0x39ac8b(_0x165c9d),Ve(0x1,_0x5cfe43),Ve(0x2,_0x7fdfc4),Ve(0x3,_0x1f955f(_0x97bef)),Ve(0x4,_0x4b96c2)],At);export{Fo as AUTHZ_URL_KEY,yt as AuthzIoHttpService,Mn as COLLAB_SUBMIT_CHANGESET_URL_KEY,Tn as COLLAB_WEB_SOCKET_URL_KEY,Le as CollaborationController,qe as CollaborationEntity,bt as CollaborationSession,he as CollaborationSessionService,Ct as CollaborationSocketService,P as CollaborationStatus,To as CollaborationStatusDisplay,Vs as CommentService,Je as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,On as HEARTBEAT_INTERVAL_KEY,js as HEARTBEAT_TIMEOUT_KEY,Bs as ICollaborationSocketService,Zs as IURLService,Ut as ImageIoService,Un as LOCAL_CACHE_INTERVAL_KEY,Ln as LOGIN_URL_KEY,w as LocalCacheService,Pn as RETRY_CONNECTING_MAX_COUNT_KEY,Ha as SEND_CHANGESET_TIMEOUT_KEY,In as SNAPSHOT_SERVER_URL_KEY,Cn as SNAPSHOT_URL_KEY,Y as SessionStatus,no as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,da as WebURLService,Hn as deserializeToCombResponse,xn as serializeCombRequest};
1
+ const _0x23c7d1=_0x3e56;(function(_0x367005,_0x4fcb12){const _0xba910c=_0x3e56,_0x2846f8=_0x367005();while(!![]){try{const _0xb03d35=-parseInt(_0xba910c(0x34c))/0x1*(-parseInt(_0xba910c(0x114))/0x2)+parseInt(_0xba910c(0x83))/0x3*(parseInt(_0xba910c(0x1c9))/0x4)+-parseInt(_0xba910c(0x162))/0x5+-parseInt(_0xba910c(0xf0))/0x6*(-parseInt(_0xba910c(0xc6))/0x7)+parseInt(_0xba910c(0x2bb))/0x8*(parseInt(_0xba910c(0x315))/0x9)+-parseInt(_0xba910c(0x378))/0xa+parseInt(_0xba910c(0x1db))/0xb*(-parseInt(_0xba910c(0x92))/0xc);if(_0xb03d35===_0x4fcb12)break;else _0x2846f8['push'](_0x2846f8['shift']());}catch(_0x170da1){_0x2846f8['push'](_0x2846f8['shift']());}}}(_0x2b41,0x3e0ab));var ri=Object['defineProperty'],oi=(_0x220ca0,_0x3b05cd,_0x2c8f95)=>_0x3b05cd in _0x220ca0?ri(_0x220ca0,_0x3b05cd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c8f95}):_0x220ca0[_0x3b05cd]=_0x2c8f95,l=(_0x4bbb52,_0x5f430b,_0x2a62d2)=>oi(_0x4bbb52,typeof _0x5f430b!=_0x23c7d1(0x2e6)?_0x5f430b+'':_0x5f430b,_0x2a62d2);import{createIdentifier as _0x437a8e,Inject as _0x4dc04f,Disposable as _0x48670f,DisposableCollection as _0x174f1b,toDisposable as _0x546354,IConfigService as _0x5ae707,ILogService as _0x20dcfc,UserManagerService as _0x19e638,UniverInstanceType as _0x12affe,IUniverInstanceService as _0x9f62da,LocaleService as _0x19fdc8,Optional as _0x4ab0b0,RxDisposable as _0x55967c,Injector as _0x22396d,Tools as _0x344d53,ILocalStorageService as _0x1ead3d,Rectangle as _0x27110e,ICommandService as _0x45f63f,JSONX as _0x5577d7,CommandType as _0x1e1816,IPermissionService as _0x241914,IUndoRedoService as _0x13d877,sequenceExecute as _0x39a28b,debounce as _0x2a1758,COLORS as _0x4d0df0,ColorKit as _0x26117b,ThemeService as _0x499eb8,fromEventSubject as _0x3b2366,useDependency as _0x33243a,connectInjector as _0x1ae714,Workbook as _0x1e3463,isInternalEditorID as _0x53df5f,LocalUndoRedoService as _0x39ed46,IContextService as _0x282657,DependentOn as _0x4eaec9,Plugin as _0x19d8fe,touchDependencies as _0x2f6d83,IAuthzIoService as _0x32175b,mergeOverrideWithDependencies as _0x56cd0e}from'@univerjs/core';import{Subject as _0x41261f,merge as _0x3a25d1,takeUntil as _0x21580d,BehaviorSubject as _0x4a4faf,distinctUntilChanged as _0x48ac4f,fromEvent as _0x1c3647,ReplaySubject as _0x4bcbbe,take as _0xf57bcd,map as _0x4780de,shareReplay as _0x25be7a,of as _0xaed9b5,debounceTime as _0x3df71a,filter as _0x5e384f,switchMap as _0x1fe2f3,combineLatest as _0x3c4bb8,concatMap as _0x3fbd3f,mapTo as _0x41b7dd}from'rxjs';import{map as _0x2abcf2,take as _0x10cb40,filter as _0x3cca70,delay as _0x5504ff,throttleTime as _0x366ff2,takeUntil as _0x1f0b24,switchMap as _0x4ca445}from'rxjs/operators';import{MessageType as _0x2b8ac7,Tooltip as _0x3dab34}from'@univerjs/design';import{IBeforeCloseService as _0x16cd89,IMessageService as _0x413020,INotificationService as _0x3c8540,useObservable as _0x3eb386,BuiltInUIPart as _0x432ccf,IUIPartsService as _0x5cc120}from'@univerjs/ui';import{HTTPService as _0x3bbd66,WebSocketService as _0x564323,MergeInterceptorFactory as _0x37a48f,HTTPRequest as _0x24e2ab,IHTTPImplementation as _0xe09d1b,XHRHTTPImplementation as _0x4474e8,ThresholdInterceptorFactory as _0x1dd1e0}from'@univerjs/network';import{CollaborationEvent as _0x3e2e84,parseChangesetToProtocol as _0x2e4d6c,ISnapshotServerService as _0xfe39de,isTransformMutationFailure as _0x20d9cf,isTransformMutationsWithChangesetSuccess as _0x4a2341,ITransformService as _0x1c29f3,RevisionService as _0x2fb629,mapDocumentTypeToUniverType as _0x51595f,isTransformChangesetsSuccess as _0x275c76,CompressMutationService as _0x2113b3,parseProtocolChangeset as _0xeed60c,SnapshotService as _0x53a932,textEncoder as _0x305580,b64DecodeUnicode as _0x3ad1a8,isTransformMutationsWithChangesetFailure as _0x1064ee,UniverCollaborationPlugin as _0x4e9ef4}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x4bbd1f}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x3fbce3,DocStateChangeManagerService as _0x16b8be,NodePositionConvertToCursor as _0x3744f9,isValidRectRange as _0x374be8,NodePositionConvertToRectRange as _0xca6cb5,TEXT_RANGE_LAYER_INDEX as _0x448b14,SetDocZoomRatioOperation as _0x3568df}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x49c5af,SetSelectionsOperation as _0x3f3cc1,InsertSheetMutation as _0x105f97,EmptyMutation as _0x3fb9fa,WorkbookEditablePermission as _0x957589,RefRangeService as _0x37258f,EffectRefRangId as _0x64b599,handleIRemoveRow as _0x135cee,handleIRemoveCol as _0x6f4cbe,handleMoveRange as _0x2d85b0,handleInsertRow as _0x4c18ea,handleInsertRangeMoveRight as _0x5892e7,handleInsertRangeMoveDown as _0x153d6f,handleInsertCol as _0x28ee26,handleDeleteRangeMoveUp as _0x457ca0,handleDeleteRangeMoveLeft as _0x335d68,runRefRangeMutations as _0x51d17a,SetWorksheetActivateCommand as _0x1d2849}from'@univerjs/sheets';import{IRenderManagerService as _0x3bd096,Shape as _0x2b7442,Rect as _0x4a28e4,getColor as _0x4021a6,RegularPolygon as _0xa741b9,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x3757d6,Vector2 as _0x4052cb}from'@univerjs/engine-render';import{DocSelectionManagerService as _0xd815b9,RichTextEditingMutation as _0x1cda85,SetTextSelectionsOperation as _0x4e7fe9,DocSkeletonManagerService as _0x1826bf}from'@univerjs/docs';import{ImageSourceType as _0x558861,ImageUploadStatusType as _0x4631a2,IImageIoService as _0x11257d}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x3ea094,serializeRangeWithSheet as _0x33ed04}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x57ecbe,VIEWPORT_KEY as _0x42c4cf,getCoordByCell as _0x45a831,getSheetObject as _0x5b9a2d,SheetPermissionInitController as _0x36f2d7}from'@univerjs/sheets-ui';import _0x483511,{forwardRef as _0x261ce7,useRef as _0xe6ffb4,createElement as _0x32d714,useCallback as _0xb5f8c6}from'react';import{IRemoteInstanceService as _0x3016d2}from'@univerjs/rpc';import{getAttachHeader as _0x1af55d}from'@univerjs-pro/license';const In=_0x23c7d1(0x25b),En=_0x23c7d1(0x3b2),Cn=_0x23c7d1(0x2ba),Ha=_0x23c7d1(0x3b6),bn=0x7d0,Tn=_0x23c7d1(0x3d5),Rn=_0x23c7d1(0x2a0),On=_0x23c7d1(0x3f2),Dn=0x7530,js=_0x23c7d1(0x149),Hs=0x4e20,wn=0x4e20,Pn=_0x23c7d1(0x9f),yn=0x3,Un=_0x23c7d1(0x39f),Nn=0x3e8,Mn=_0x23c7d1(0x3fa),An=_0x23c7d1(0x3bd),Ln=_0x23c7d1(0x382),$n=_0x23c7d1(0x13c);var xs=(_0x2720fb=>(_0x2720fb[_0x2720fb[_0x23c7d1(0xa4)]=0x0]='UNDEFINED',_0x2720fb[_0x2720fb['OK']=0x1]='OK',_0x2720fb[_0x2720fb[_0x23c7d1(0xa5)]=0x2]=_0x23c7d1(0xa5),_0x2720fb[_0x2720fb['PERMISSION_DENIED']=0x3]=_0x23c7d1(0x1fb),_0x2720fb[_0x2720fb['NOT_FOUND']=0x4]=_0x23c7d1(0x1da),_0x2720fb[_0x2720fb[_0x23c7d1(0x258)]=0x5]=_0x23c7d1(0x258),_0x2720fb[_0x2720fb[_0x23c7d1(0x399)]=0x6]=_0x23c7d1(0x399),_0x2720fb[_0x2720fb[_0x23c7d1(0x247)]=0x7]='INVALID_ARGUMENT',_0x2720fb[_0x2720fb['TOO_MANY_REQUESTS']=0x8]=_0x23c7d1(0x1aa),_0x2720fb[_0x2720fb[_0x23c7d1(0x376)]=0x9]='COMPLETION_FINISHED',_0x2720fb[_0x2720fb['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2720fb[_0x2720fb['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x23c7d1(0x21a),_0x2720fb[_0x2720fb['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2720fb[_0x2720fb['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x23c7d1(0x18c),_0x2720fb[_0x2720fb[_0x23c7d1(0xc2)]=0x1b59]=_0x23c7d1(0xc2),_0x2720fb[_0x2720fb[_0x23c7d1(0x17b)]=0x1b5a]=_0x23c7d1(0x17b),_0x2720fb[_0x2720fb['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x23c7d1(0x129),_0x2720fb[_0x2720fb[_0x23c7d1(0x3ca)]=0x1b5c]=_0x23c7d1(0x3ca),_0x2720fb[_0x2720fb[_0x23c7d1(0x2b0)]=0x1b5d]=_0x23c7d1(0x2b0),_0x2720fb[_0x2720fb['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x23c7d1(0x23e),_0x2720fb[_0x2720fb[_0x23c7d1(0x186)]=0x2329]=_0x23c7d1(0x186),_0x2720fb[_0x2720fb['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2720fb[_0x2720fb['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x23c7d1(0xd5),_0x2720fb[_0x2720fb[_0x23c7d1(0x335)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x2720fb[_0x2720fb[_0x23c7d1(0x291)]=0x232d]=_0x23c7d1(0x291),_0x2720fb[_0x2720fb[_0x23c7d1(0x160)]=0x2711]=_0x23c7d1(0x160),_0x2720fb[_0x2720fb[_0x23c7d1(0x3a0)]=0x2712]=_0x23c7d1(0x3a0),_0x2720fb[_0x2720fb[_0x23c7d1(0x2a2)]=0x2713]=_0x23c7d1(0x2a2),_0x2720fb[_0x2720fb[_0x23c7d1(0x1d4)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2720fb[_0x2720fb[_0x23c7d1(0x374)]=-0x1]='UNRECOGNIZED',_0x2720fb))(xs||{}),k=(_0x2299c0=>(_0x2299c0[_0x2299c0['UNIVER_UNKNOWN']=0x0]=_0x23c7d1(0x3f6),_0x2299c0[_0x2299c0[_0x23c7d1(0x195)]=0x1]=_0x23c7d1(0x195),_0x2299c0[_0x2299c0[_0x23c7d1(0x3de)]=0x2]=_0x23c7d1(0x3de),_0x2299c0[_0x2299c0['UNIVER_SLIDE']=0x3]=_0x23c7d1(0x2bc),_0x2299c0[_0x2299c0[_0x23c7d1(0x35e)]=0x4]=_0x23c7d1(0x35e),_0x2299c0[_0x2299c0[_0x23c7d1(0x374)]=-0x1]=_0x23c7d1(0x374),_0x2299c0))(k||{}),I=(_0xe79800=>(_0xe79800[_0xe79800[_0x23c7d1(0x1af)]=0x0]=_0x23c7d1(0x1af),_0xe79800[_0xe79800[_0x23c7d1(0x90)]=0x1]=_0x23c7d1(0x90),_0xe79800[_0xe79800[_0x23c7d1(0x13a)]=0x2]=_0x23c7d1(0x13a),_0xe79800[_0xe79800[_0x23c7d1(0x111)]=0x3]=_0x23c7d1(0x111),_0xe79800[_0xe79800[_0x23c7d1(0xfc)]=0x4]=_0x23c7d1(0xfc),_0xe79800[_0xe79800[_0x23c7d1(0x30b)]=0x5]='HEARTBEAT',_0xe79800[_0xe79800[_0x23c7d1(0x2ce)]=0x6]=_0x23c7d1(0x2ce),_0xe79800[_0xe79800[_0x23c7d1(0x374)]=-0x1]=_0x23c7d1(0x374),_0xe79800))(I||{}),Vt=(_0x40cae9=>(_0x40cae9[_0x40cae9[_0x23c7d1(0x9e)]=0x0]=_0x23c7d1(0x9e),_0x40cae9[_0x40cae9['OK']=0x1]='OK',_0x40cae9[_0x40cae9[_0x23c7d1(0x1ca)]=0x2]=_0x23c7d1(0x1ca),_0x40cae9[_0x40cae9[_0x23c7d1(0x374)]=-0x1]=_0x23c7d1(0x374),_0x40cae9))(Vt||{}),ks=(_0x3598f9=>(_0x3598f9[_0x3598f9[_0x23c7d1(0xf6)]=0x0]=_0x23c7d1(0xf6),_0x3598f9[_0x3598f9[_0x23c7d1(0xac)]=0x1]=_0x23c7d1(0xac),_0x3598f9[_0x3598f9[_0x23c7d1(0x2d2)]=0x2]='HttpExport',_0x3598f9[_0x3598f9['UnitEmbedded']=0x3]='UnitEmbedded',_0x3598f9[_0x3598f9[_0x23c7d1(0x34a)]=0x4]='UnitSnapshot',_0x3598f9[_0x3598f9[_0x23c7d1(0x374)]=-0x1]='UNRECOGNIZED',_0x3598f9))(ks||{});const $=_0x23c7d1(0x287),jn={};function Hn(_0xcb40de){const _0x596f31=_0x23c7d1;var _0xf80da2,_0x410956,_0x2bc34e,_0x3a632d,_0x31a95b;const _0x5b8668=_0xcb40de[_0x596f31(0x15d)],_0x3b03aa=JSON[_0x596f31(0x9b)](_0x5b8668);switch(_0x3b03aa['cmd']){case I[_0x596f31(0x30b)]:case I[_0x596f31(0x90)]:{const _0x15a114=_0x3b03aa[_0x596f31(0x3aa)];return{..._0x3b03aa,'data':_0x15a114,'cmd':_0x3b03aa['cmd']};}case I[_0x596f31(0x13a)]:{const _0x2f3957=_0x3b03aa[_0x596f31(0x386)];return{..._0x3b03aa,'data':_0x2f3957,'cmd':_0x3b03aa['cmd']};}case I[_0x596f31(0x2ce)]:{const _0x32507f=_0x3b03aa[_0x596f31(0x367)];switch(_0x32507f[_0x596f31(0x361)]){case _0x3e2e84[_0x596f31(0x212)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':(_0xf80da2=_0x32507f['permissionRejEvent'])==null?void 0x0:_0xf80da2['cs']},'cmd':_0x3b03aa['cmd']};case _0x3e2e84[_0x596f31(0xb4)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':(_0x410956=_0x32507f[_0x596f31(0x146)])==null?void 0x0:_0x410956['cs']},'cmd':_0x3b03aa['cmd']};case _0x3e2e84['NEW_CHANGESETS']:return{..._0x3b03aa,'data':{..._0x32507f,'data':(_0x2bc34e=_0x32507f[_0x596f31(0x204)])==null?void 0x0:_0x2bc34e['cs']},'cmd':_0x3b03aa[_0x596f31(0xdd)]};case _0x3e2e84[_0x596f31(0x1e8)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':(_0x3a632d=_0x32507f[_0x596f31(0x1bf)])==null?void 0x0:_0x3a632d['cs']},'cmd':_0x3b03aa[_0x596f31(0xdd)]};case _0x3e2e84[_0x596f31(0x166)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':(_0x31a95b=_0x32507f[_0x596f31(0x16b)])==null?void 0x0:_0x31a95b['cs']},'cmd':_0x3b03aa[_0x596f31(0xdd)]};case _0x3e2e84[_0x596f31(0xf2)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':_0x32507f['updateCursorEvent']},'cmd':_0x3b03aa[_0x596f31(0xdd)]};case _0x3e2e84[_0x596f31(0x321)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':_0x32507f[_0x596f31(0x135)]},'cmd':_0x3b03aa[_0x596f31(0xdd)]};case _0x3e2e84[_0x596f31(0x355)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':_0x32507f['leaveEvent']},'cmd':_0x3b03aa['cmd']};case _0x3e2e84[_0x596f31(0x14a)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':_0x32507f[_0x596f31(0x1ec)]},'cmd':_0x3b03aa[_0x596f31(0xdd)]};case _0x3e2e84['LIVESHARE_FETCH_OPERATIONS']:case _0x3e2e84[_0x596f31(0x373)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':_0x32507f[_0x596f31(0x7b)]},'cmd':_0x3b03aa[_0x596f31(0xdd)]};case _0x3e2e84['LIVESHARE_TERMINATE']:return{..._0x3b03aa,'data':{..._0x32507f,'data':_0x32507f[_0x596f31(0x1ec)]},'cmd':_0x3b03aa[_0x596f31(0xdd)]};case _0x3e2e84['MSG_FOR_ERROR']:return{..._0x3b03aa,'data':_0x32507f,'cmd':_0x3b03aa[_0x596f31(0xdd)]};case _0x3e2e84['COMMENT_UPDATE']:return{..._0x3b03aa,'data':{..._0x32507f,'data':_0x32507f[_0x596f31(0x132)]},'cmd':_0x3b03aa[_0x596f31(0xdd)]};case _0x3e2e84[_0x596f31(0x2d3)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':_0x32507f['updatePermissionObjEvent']},'cmd':_0x3b03aa['cmd']};case _0x3e2e84[_0x596f31(0x3dd)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':_0x32507f['shouldCloseConn']},'cmd':_0x3b03aa['cmd']};default:return _0x3b03aa;}}default:return _0x3b03aa;}}function xn(_0x313487){const _0x8d278d=_0x23c7d1;switch(_0x313487['cmd']){case I[_0x8d278d(0x30b)]:case I['HELLO']:return JSON[_0x8d278d(0x147)]({'cmd':_0x313487[_0x8d278d(0xdd)],'routeKey':_0x313487[_0x8d278d(0x255)]});case I[_0x8d278d(0xfc)]:{let _0x451b85;switch(_0x313487[_0x8d278d(0x15d)][_0x8d278d(0x361)]){case _0x3e2e84[_0x8d278d(0xf2)]:{_0x451b85={'eventID':_0x3e2e84[_0x8d278d(0xf2)],'updateCursorEvent':_0x313487['data'][_0x8d278d(0x15d)]};break;}case _0x3e2e84[_0x8d278d(0x355)]:{_0x451b85={'eventID':_0x3e2e84[_0x8d278d(0x355)],'leaveEvent':_0x313487['data'][_0x8d278d(0x15d)]};break;}case _0x3e2e84[_0x8d278d(0x321)]:{_0x451b85={'eventID':_0x3e2e84[_0x8d278d(0x321)],'joinEvent':_0x313487[_0x8d278d(0x15d)][_0x8d278d(0x15d)]};break;}case _0x3e2e84['LIVESHARE_NEW_HOST']:{_0x451b85={'eventID':_0x3e2e84[_0x8d278d(0x14a)],'liveShareNewHost':_0x313487[_0x8d278d(0x15d)][_0x8d278d(0x15d)]};break;}case _0x3e2e84[_0x8d278d(0x373)]:{_0x451b85={'eventID':_0x3e2e84['LIVESHARE_OPERATION'],'liveShareOperation':_0x313487['data'][_0x8d278d(0x15d)]};break;}case _0x3e2e84['LIVESHARE_TERMINATE']:{_0x451b85={'eventID':_0x3e2e84[_0x8d278d(0xc8)],'liveShareTerminate':_0x313487['data'][_0x8d278d(0x15d)]};break;}case _0x3e2e84[_0x8d278d(0x357)]:{_0x451b85={'eventID':_0x3e2e84['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x313487[_0x8d278d(0x15d)][_0x8d278d(0x15d)]};break;}case _0x3e2e84[_0x8d278d(0x29a)]:{_0x451b85={'eventID':_0x3e2e84[_0x8d278d(0x29a)]};break;}default:_0x451b85={'eventID':_0x313487[_0x8d278d(0x15d)]['eventID']};}return JSON[_0x8d278d(0x147)]({'cmd':_0x313487[_0x8d278d(0xdd)],'routeKey':_0x313487[_0x8d278d(0x255)],'collaMsg':_0x451b85});}case I[_0x8d278d(0x13a)]:return JSON[_0x8d278d(0x147)]({'cmd':_0x313487['cmd'],'routeKey':_0x313487[_0x8d278d(0x255)],'joinReq':_0x313487['data']});case I[_0x8d278d(0x111)]:return JSON[_0x8d278d(0x147)]({'cmd':_0x313487[_0x8d278d(0xdd)],'routeKey':_0x313487[_0x8d278d(0x255)],'leaveReq':_0x313487[_0x8d278d(0x15d)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var kn=Object[_0x23c7d1(0x252)],Bn=Object[_0x23c7d1(0x113)],Vn=(_0x2fe466,_0x4eaa74,_0x1c1943,_0x3e3a34)=>{const _0x5b9f7b=_0x23c7d1;for(var _0x33281a=_0x3e3a34>0x1?void 0x0:_0x3e3a34?Bn(_0x4eaa74,_0x1c1943):_0x4eaa74,_0x36ae61=_0x2fe466[_0x5b9f7b(0x22a)]-0x1,_0x44cfff;_0x36ae61>=0x0;_0x36ae61--)(_0x44cfff=_0x2fe466[_0x36ae61])&&(_0x33281a=(_0x3e3a34?_0x44cfff(_0x4eaa74,_0x1c1943,_0x33281a):_0x44cfff(_0x33281a))||_0x33281a);return _0x3e3a34&&_0x33281a&&kn(_0x4eaa74,_0x1c1943,_0x33281a),_0x33281a;},Oe=(_0x40155b,_0x43be6f)=>(_0x5b899e,_0x1b6846)=>_0x43be6f(_0x5b899e,_0x1b6846,_0x40155b);const Bs=_0x437a8e(_0x23c7d1(0x224));function Fn(_0x2ef9ae,_0x33a862,_0x4d39c7){const _0x389066=_0x23c7d1;return _0x2ef9ae+'/'+_0x33a862+_0x389066(0x2e0)+_0x4d39c7+_0x389066(0xc1);}let Ct=class extends _0x48670f{constructor(_0x76bac7,_0x1beab6,_0x558783,_0x560247,_0x1bc26f){const _0x12647a=_0x23c7d1;super(),this['_http']=_0x76bac7,this[_0x12647a(0x2c4)]=_0x1beab6,this[_0x12647a(0x3c0)]=_0x558783,this[_0x12647a(0x3e3)]=_0x560247,this[_0x12647a(0x89)]=_0x1bc26f;}['createSocket'](_0x1a95fa){const _0x4695dc=_0x23c7d1,_0x528ca4=this[_0x4695dc(0x2c4)][_0x4695dc(0x10c)](_0x1a95fa);if(!_0x528ca4)throw new Error(_0x4695dc(0x3c1));const _0xda553c=new _0x174f1b(),_0x4c5adf=new _0x41261f();_0xda553c[_0x4695dc(0x27e)](_0x528ca4['close$'][_0x4695dc(0x7f)](_0x5ddefe=>_0x4c5adf['next'](_0x5ddefe))),_0xda553c[_0x4695dc(0x27e)](_0x546354(()=>_0x4c5adf[_0x4695dc(0x3ba)]()));const _0x1c9206=new _0x41261f();_0xda553c[_0x4695dc(0x27e)](_0x528ca4['error$'][_0x4695dc(0x7f)](_0x485997=>_0x1c9206['next'](_0x485997))),_0xda553c['add'](_0x546354(()=>_0x1c9206[_0x4695dc(0x3ba)]()));const _0x4d5b10=new _0x41261f();_0xda553c['add'](_0x528ca4[_0x4695dc(0xaf)][_0x4695dc(0x7f)](_0x359b6f=>{const _0x4df5a6=_0x4695dc,_0x1ba5a2=Hn(_0x359b6f);_0x4d5b10[_0x4df5a6(0x183)](_0x1ba5a2);})),_0xda553c[_0x4695dc(0x27e)](_0x546354(()=>_0x4d5b10[_0x4695dc(0x3ba)]()));let _0x2d53f8;const _0x4a0134=()=>{const _0x22de52=_0x4695dc;_0x1c9206[_0x22de52(0x183)](new Event('connection\x20error')),_0x4c5adf[_0x22de52(0x183)](new CloseEvent(_0x22de52(0x3c9))),_0x2d53f8['close']();};return _0x2d53f8={'memberID':'','close$':_0x4c5adf[_0x4695dc(0x303)](),'error$':_0x1c9206[_0x4695dc(0x303)](),'open$':_0x528ca4['open$'],'message$':_0x4d5b10[_0x4695dc(0x303)](),'send':_0x455fd3=>{const _0x40e062=_0x4695dc;if(_0x455fd3[_0x40e062(0xdd)]===I[_0x40e062(0xfc)]){if(_0x455fd3[_0x40e062(0x15d)][_0x40e062(0x361)]===_0x3e2e84['SUBMIT_CHANGESET']){this['_submitChangeset'](_0x2d53f8,_0x455fd3['data'])[_0x40e062(0x231)](_0x2bdc9d=>{const _0x12c309=_0x40e062;this[_0x12c309(0x3e3)][_0x12c309(0x328)](_0x2bdc9d),_0x4a0134();});return;}if(_0x455fd3[_0x40e062(0x15d)][_0x40e062(0x361)]===_0x3e2e84[_0x40e062(0x127)]){const _0x3ae627=_0x455fd3[_0x40e062(0x15d)];this[_0x40e062(0x2c1)](_0x3ae627)[_0x40e062(0x136)](_0x124be8=>{const _0x2a7847=_0x40e062;_0x4d5b10[_0x2a7847(0x183)]({'cmd':I['RECV'],'code':Vt['OK'],'routeKey':_0x3ae627['data'][_0x2a7847(0x347)],'routeType':'','data':{'eventID':_0x3e2e84[_0x2a7847(0x286)],'data':{'changesets':_0x124be8}}});})[_0x40e062(0x231)](_0x31602b=>{const _0x28d497=_0x40e062;this[_0x28d497(0x3e3)]['error'](_0x31602b),_0x4a0134();});return;}}_0x528ca4[_0x40e062(0x25c)](xn(_0x455fd3));},'close':()=>{const _0x11f86d=_0x4695dc;_0x528ca4[_0x11f86d(0x197)](),_0xda553c['dispose']();}},_0x2d53f8;}async['_submitChangeset'](_0x434e75,_0xed3f){const _0x4d804c=_0x23c7d1;var _0x4f9477,_0x4247a4;const {unitType:_0x447327,unitID:_0x59bb06,changeset:_0x512734}=_0xed3f[_0x4d804c(0x15d)],_0x42c0e1={'unitID':_0x59bb06,'memberID':_0x434e75['memberID'],'type':_0x447327,'changeset':_0x2e4d6c(_0x512734)},_0x206af1=this[_0x4d804c(0x3c0)][_0x4d804c(0x30d)](Mn),_0x31ec18=this[_0x4d804c(0x3c0)]['getConfig']($),_0x1bb9a4=Fn((_0x4247a4=(_0x4f9477=_0x31ec18==null?void 0x0:_0x31ec18[_0x4d804c(0x3c3)])!=null?_0x4f9477:_0x206af1)!=null?_0x4247a4:An,_0x447327,_0x59bb06);try{await this[_0x4d804c(0x2a1)][_0x4d804c(0x1cf)](_0x1bb9a4,{'body':_0x42c0e1});}catch(_0x3463fa){throw this['_logService'][_0x4d804c(0x328)](_0x4d804c(0x21d),'submit\x20changeset\x20error!'),_0x3463fa;}}async[_0x23c7d1(0x2c1)](_0x18c914){const _0x1b4a7c=_0x23c7d1,{unitID:_0x15c84f,from:_0x50925d,to:_0x42bd62,unitType:_0x259280}=_0x18c914[_0x1b4a7c(0x15d)];return(await this[_0x1b4a7c(0x89)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x15c84f,'type':_0x259280,'from':_0x50925d,'to':_0x42bd62}))[_0x1b4a7c(0x122)];}};Ct=Vn([Oe(0x0,_0x4dc04f(_0x3bbd66)),Oe(0x1,_0x4dc04f(_0x564323)),Oe(0x2,_0x5ae707),Oe(0x3,_0x20dcfc),Oe(0x4,_0xfe39de)],Ct);const Wn=_0x23c7d1(0x33c);function Gn(_0x4ef3e5){const _0x598099=_0x23c7d1;return JSON[_0x598099(0x147)](_0x4ef3e5)['length'];}class Vs{constructor(){const _0x4ce778=_0x23c7d1;l(this,'_commentUpdate$',new _0x41261f()),l(this,_0x4ce778(0x40d),this[_0x4ce778(0x2ea)][_0x4ce778(0x303)]());}['onCommentUpdate'](_0x1b27f7){const _0x1c126e=_0x23c7d1;this[_0x1c126e(0x2ea)][_0x1c126e(0x183)](_0x1b27f7);}}var Yn=Object[_0x23c7d1(0x252)],Kn=Object['getOwnPropertyDescriptor'],Xn=(_0xedf19a,_0x2624ca,_0x372f79,_0x4a9817)=>{for(var _0x336772=_0x4a9817>0x1?void 0x0:_0x4a9817?Kn(_0x2624ca,_0x372f79):_0x2624ca,_0x1c5384=_0xedf19a['length']-0x1,_0x26f4d6;_0x1c5384>=0x0;_0x1c5384--)(_0x26f4d6=_0xedf19a[_0x1c5384])&&(_0x336772=(_0x4a9817?_0x26f4d6(_0x2624ca,_0x372f79,_0x336772):_0x26f4d6(_0x336772))||_0x336772);return _0x4a9817&&_0x336772&&Yn(_0x2624ca,_0x372f79,_0x336772),_0x336772;},as=(_0x22e1e3,_0x1be4b9)=>(_0x4e3e15,_0x15ed86)=>_0x1be4b9(_0x4e3e15,_0x15ed86,_0x22e1e3);let ce=class extends _0x48670f{constructor(_0x289ffc,_0x3c477e){const _0x7d5b4b=_0x23c7d1;super(),l(this,_0x7d5b4b(0x339),new Map()),(this[_0x7d5b4b(0x21f)]=_0x289ffc,this[_0x7d5b4b(0x383)]=_0x3c477e,this['disposeWithMe'](_0x546354(_0x3a25d1(this[_0x7d5b4b(0x21f)]['getTypeOfUnitDisposed$'](_0x12affe[_0x7d5b4b(0x3de)])['pipe'](_0x2abcf2(_0x2a0366=>_0x2a0366[_0x7d5b4b(0x366)]())),this[_0x7d5b4b(0x21f)][_0x7d5b4b(0x28c)](_0x12affe[_0x7d5b4b(0x195)])[_0x7d5b4b(0x254)](_0x2abcf2(_0x2dd6f8=>_0x2dd6f8[_0x7d5b4b(0x366)]())),this[_0x7d5b4b(0x21f)][_0x7d5b4b(0x28c)](_0x12affe[_0x7d5b4b(0x2bc)])[_0x7d5b4b(0x254)](_0x2abcf2(_0x5d7578=>_0x5d7578[_0x7d5b4b(0x366)]())))[_0x7d5b4b(0x7f)](_0x2fc153=>this[_0x7d5b4b(0x2d8)](_0x2fc153)))));}[_0x23c7d1(0x3be)](_0x4d5380){const _0x2cc19a=_0x23c7d1;this[_0x2cc19a(0x383)][_0x2cc19a(0x3be)](_0x4d5380);}[_0x23c7d1(0x144)](){const _0x4609ae=_0x23c7d1;return this['_userManagerService'][_0x4609ae(0x144)]();}[_0x23c7d1(0x360)](_0x53c612,_0x32cf6e){const _0x256cc5=_0x23c7d1;let _0x19c970=this['_roomMembers'][_0x256cc5(0xcc)](_0x53c612);_0x19c970||(_0x19c970=new qn(),this[_0x256cc5(0x339)]['set'](_0x53c612,_0x19c970)),_0x19c970[_0x256cc5(0x360)](_0x32cf6e);}['removeMember'](_0x24dc0f,_0x3f87ba){const _0x4881a1=_0x23c7d1,_0x1ec275=this[_0x4881a1(0x339)][_0x4881a1(0xcc)](_0x24dc0f);_0x1ec275&&_0x1ec275['removeMember'](_0x3f87ba);}[_0x23c7d1(0x15c)](_0x3d3871){const _0x364747=_0x23c7d1;return this[_0x364747(0x339)][_0x364747(0xcc)](_0x3d3871);}[_0x23c7d1(0x13e)](_0x4d67f8,_0x58cdda){const _0x5836e1=_0x23c7d1,_0x5bf7af=this['_roomMembers'][_0x5836e1(0xcc)](_0x4d67f8);if(_0x5bf7af)return _0x5bf7af[_0x5836e1(0x13e)](_0x58cdda);}[_0x23c7d1(0x2d8)](_0xc00037){const _0x4771f0=_0x23c7d1,_0x40d3f2=this[_0x4771f0(0x339)]['get'](_0xc00037);_0x40d3f2&&(_0x40d3f2[_0x4771f0(0x230)](),this['_roomMembers']['delete'](_0xc00037));}['dispose'](){const _0x389d7d=_0x23c7d1;this['_roomMembers'][_0x389d7d(0x28d)](_0x5e3e43=>_0x5e3e43[_0x389d7d(0x230)]()),this[_0x389d7d(0x339)][_0x389d7d(0x120)]();}};ce=Xn([as(0x0,_0x9f62da),as(0x1,_0x4dc04f(_0x19e638))],ce);class qn extends _0x48670f{constructor(){const _0x5e05f6=_0x23c7d1;super(...arguments),l(this,_0x5e05f6(0xc4),new Map());}[_0x23c7d1(0x230)](){const _0x34b6dd=_0x23c7d1;this[_0x34b6dd(0xc4)][_0x34b6dd(0x120)]();}[_0x23c7d1(0x360)](_0x557087){const _0x3c353a=_0x23c7d1;this[_0x3c353a(0xc4)]['set'](_0x557087[_0x3c353a(0x19f)],_0x557087);}[_0x23c7d1(0x301)](_0x1e0d08){const _0x28f2e0=_0x23c7d1;this['_members'][_0x28f2e0(0xd4)](_0x1e0d08);}[_0x23c7d1(0x13e)](_0x3e00ce){const _0x2a6000=_0x23c7d1;return this['_members'][_0x2a6000(0xcc)](_0x3e00ce);}}var Jn=Object[_0x23c7d1(0x252)],zn=Object[_0x23c7d1(0x113)],Zn=(_0x2ed338,_0xfc54d9,_0x520f7b,_0xc9e8b4)=>{const _0x44e3cd=_0x23c7d1;for(var _0x580b47=_0xc9e8b4>0x1?void 0x0:_0xc9e8b4?zn(_0xfc54d9,_0x520f7b):_0xfc54d9,_0x450122=_0x2ed338[_0x44e3cd(0x22a)]-0x1,_0x48873e;_0x450122>=0x0;_0x450122--)(_0x48873e=_0x2ed338[_0x450122])&&(_0x580b47=(_0xc9e8b4?_0x48873e(_0xfc54d9,_0x520f7b,_0x580b47):_0x48873e(_0x580b47))||_0x580b47);return _0xc9e8b4&&_0x580b47&&Jn(_0xfc54d9,_0x520f7b,_0x580b47),_0x580b47;},J=(_0x1b7b63,_0xaad8ef)=>(_0x57dfc8,_0x134822)=>_0xaad8ef(_0x57dfc8,_0x134822,_0x1b7b63),Y=(_0x27822b=>(_0x27822b[_0x27822b[_0x23c7d1(0xaa)]=0x0]=_0x23c7d1(0xaa),_0x27822b[_0x27822b[_0x23c7d1(0x38b)]=0x1]=_0x23c7d1(0x38b),_0x27822b[_0x27822b[_0x23c7d1(0x346)]=0x2]=_0x23c7d1(0x346),_0x27822b[_0x27822b[_0x23c7d1(0x130)]=0x3]=_0x23c7d1(0x130),_0x27822b))(Y||{});let bt=class extends _0x55967c{constructor(_0x4a9b97,_0x3ff30f,_0x42bfd6,_0x4bffcc,_0x1434c4,_0x5e3c9d,_0x829cbe,_0x19fe92,_0x4d84b2,_0x1bdfbb){const _0x372636=_0x23c7d1;super(),l(this,_0x372636(0x14f),new _0x4a4faf(0x0)),l(this,'sessionStatus$',this[_0x372636(0x14f)][_0x372636(0x303)]()),l(this,'_event$',new _0x41261f()),l(this,'event$',this[_0x372636(0x238)]['asObservable']()),l(this,_0x372636(0x7c)),l(this,_0x372636(0x198)),l(this,'_collaborationTimeoutTimer'),l(this,_0x372636(0x392),!0x1),l(this,_0x372636(0x3e7),null),(this[_0x372636(0x394)]=_0x4a9b97,this[_0x372636(0x3e3)]=_0x42bfd6,this[_0x372636(0x2a3)]=_0x4bffcc,this[_0x372636(0x39a)]=_0x1434c4,this['_configService']=_0x5e3c9d,this[_0x372636(0x307)]=_0x829cbe,this['_memberService']=_0x19fe92,this[_0x372636(0x250)]=_0x4d84b2,this[_0x372636(0x173)]=_0x1bdfbb,this[_0x372636(0x392)]=!!this[_0x372636(0x173)],_0x3ff30f[_0x372636(0x254)](_0x21580d(this[_0x372636(0x1ee)]))[_0x372636(0x7f)](_0x367e0d=>{const _0x565eff=_0x372636;var _0x1c5cb6;typeof _0x367e0d>'u'||(this[_0x565eff(0x7c)]=_0x367e0d,_0x367e0d?(this[_0x565eff(0x16e)](_0x367e0d),this[_0x565eff(0x198)]=_0x367e0d[_0x565eff(0xaf)][_0x565eff(0x7f)](_0x38bd46=>{const _0x573a06=_0x565eff;_0x38bd46[_0x573a06(0x255)]===this[_0x573a06(0x394)]&&this[_0x573a06(0x1bd)](_0x38bd46);})):(this[_0x565eff(0x40c)](),this[_0x565eff(0x14f)][_0x565eff(0x183)](0x2),(_0x1c5cb6=this['_socketMessageSubscription'])==null||_0x1c5cb6['unsubscribe'](),this[_0x565eff(0x198)]=null));}),this[_0x372636(0x216)](this[_0x372636(0x2a3)][_0x372636(0x233)](()=>{const _0x547d0b=_0x372636;var _0x43875c;(_0x43875c=this[_0x547d0b(0x7c)])==null||_0x43875c[_0x547d0b(0x25c)]({'cmd':I[_0x547d0b(0x111)],'data':{'roomID':this[_0x547d0b(0x394)]}});})));}get[_0x23c7d1(0x16f)](){const _0x6728c8=_0x23c7d1;return this[_0x6728c8(0x14f)]['getValue']();}['getMemberID'](){const _0x5e9923=_0x23c7d1;var _0x4373a9,_0x1588b7;return(_0x1588b7=(_0x4373a9=this[_0x5e9923(0x7c)])==null?void 0x0:_0x4373a9['memberID'])!=null?_0x1588b7:null;}[_0x23c7d1(0x230)](){const _0x306265=_0x23c7d1;super[_0x306265(0x230)](),this[_0x306265(0x1ee)][_0x306265(0x183)](),this[_0x306265(0x1ee)]['complete']();}[_0x23c7d1(0x197)](){const _0x152159=_0x23c7d1;var _0x2d6f60,_0x45e96a;this['_throwTelemetryCollaborationNewChangeset'](),(_0x2d6f60=this[_0x152159(0x7c)])==null||_0x2d6f60[_0x152159(0x25c)]({'cmd':I[_0x152159(0x111)],'data':{'roomID':this[_0x152159(0x394)]}}),(_0x45e96a=this[_0x152159(0x7c)])==null||_0x45e96a['close'](),this[_0x152159(0x238)][_0x152159(0x3ba)](),this[_0x152159(0x14f)][_0x152159(0x3ba)](),this[_0x152159(0x230)]();}['_onCombEvent'](_0x1c2ef7){const _0x2ee0ef=_0x23c7d1;_0x1c2ef7[_0x2ee0ef(0xdd)]===I[_0x2ee0ef(0x13a)]?this['_onJoinRoomEvent'](_0x1c2ef7):_0x1c2ef7[_0x2ee0ef(0xdd)]===I[_0x2ee0ef(0x2ce)]&&this[_0x2ee0ef(0xb7)](_0x1c2ef7);}[_0x23c7d1(0x16e)](_0x302dfd){const _0x2235b2=_0x23c7d1;this[_0x2235b2(0x14f)][_0x2235b2(0x183)](0x1),_0x302dfd[_0x2235b2(0x25c)]({'cmd':I[_0x2235b2(0x13a)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x2235b2(0x394)]}]}});}['_onJoinRoomEvent'](_0x4d7df5){const _0x47fe17=_0x23c7d1;var _0x172b47;if(_0x4d7df5['code']===Vt['FAIL']){this[_0x47fe17(0x39a)][_0x47fe17(0x3cf)]({'type':_0x2b8ac7[_0x47fe17(0x105)],'content':this[_0x47fe17(0x307)]['t'](_0x47fe17(0x34d))}),this[_0x47fe17(0x14f)][_0x47fe17(0x183)](0x2);return;}this['_sessionStatus$']['next'](0x3);const _0xe4c93d=(_0x172b47=_0x4d7df5['data']['roomInfos'][this[_0x47fe17(0x394)]])==null?void 0x0:_0x172b47[_0x47fe17(0x256)];_0xe4c93d&&_0xe4c93d[_0x47fe17(0x28d)](_0x41f418=>this[_0x47fe17(0x2da)][_0x47fe17(0x360)](this[_0x47fe17(0x394)],_0x41f418));}[_0x23c7d1(0xb7)](_0x516215){const _0x18a865=_0x23c7d1;try{const _0x56dd0f=_0x516215[_0x18a865(0x15d)];switch(_0x56dd0f[_0x18a865(0x361)]){case _0x3e2e84[_0x18a865(0x321)]:this[_0x18a865(0x176)](_0x56dd0f),this[_0x18a865(0x238)][_0x18a865(0x183)](_0x56dd0f);break;case _0x3e2e84[_0x18a865(0x355)]:this[_0x18a865(0x3ce)](_0x56dd0f),this['_event$'][_0x18a865(0x183)](_0x56dd0f);break;case _0x3e2e84[_0x18a865(0xb4)]:case _0x3e2e84[_0x18a865(0x166)]:this[_0x18a865(0x356)](),this['_clearCollaborationTimeoutTimer'](),this[_0x18a865(0x238)][_0x18a865(0x183)](_0x56dd0f);break;case _0x3e2e84[_0x18a865(0x154)]:this[_0x18a865(0x3e3)][_0x18a865(0x328)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x18a865(0x147)](_0x56dd0f)),this['_event$'][_0x18a865(0x183)](_0x56dd0f);break;case _0x3e2e84[_0x18a865(0x1e7)]:this[_0x18a865(0x250)][_0x18a865(0x32e)](_0x56dd0f[_0x18a865(0x15d)]),this[_0x18a865(0x238)][_0x18a865(0x183)](_0x56dd0f);break;default:this[_0x18a865(0x238)][_0x18a865(0x183)](_0x56dd0f);}}catch(_0x38f473){this['_logService']['error'](_0x38f473,_0x516215);}}['_onUserJoin'](_0x206355){const _0x1cf484=_0x23c7d1;this[_0x1cf484(0x2da)][_0x1cf484(0x360)](this[_0x1cf484(0x394)],_0x206355[_0x1cf484(0x15d)]);}[_0x23c7d1(0x3ce)](_0x563d9f){const _0x389d7f=_0x23c7d1;this[_0x389d7f(0x2da)][_0x389d7f(0x301)](this[_0x389d7f(0x394)],_0x563d9f['data'][_0x389d7f(0x19f)]);}async[_0x23c7d1(0x25c)](_0xced4e4,_0x43f250){const _0x438bf9=_0x23c7d1;if(this[_0x438bf9(0x16f)]!==0x3||!this[_0x438bf9(0x7c)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0xced4e4[_0x438bf9(0x361)]===_0x3e2e84[_0x438bf9(0x331)]&&(this[_0x438bf9(0x187)](),this['_startTelemetryCollaborationNewChangeset'](_0xced4e4)),this[_0x438bf9(0x7c)]['send']({'cmd':I['INGEST'],'routeKey':_0x43f250,'routeType':'','data':_0xced4e4});}catch(_0x114d66){this['_logService'][_0x438bf9(0x328)](_0x114d66);}}[_0x23c7d1(0x187)](){const _0x257887=_0x23c7d1;var _0x4b6684;this[_0x257887(0x110)]=window['setTimeout'](()=>{const _0x3c47b6=_0x257887;this[_0x3c47b6(0x110)]=null,this[_0x3c47b6(0x39a)][_0x3c47b6(0x3cf)]({'type':_0x2b8ac7[_0x3c47b6(0x306)],'content':this['_localeService']['t']('session.collaboration-timeout')});},(_0x4b6684=this['_configService'][_0x257887(0x30d)](js))!=null?_0x4b6684:Hs);}['_clearCollaborationTimeoutTimer'](){const _0x492b34=_0x23c7d1;this[_0x492b34(0x110)]&&(clearTimeout(this[_0x492b34(0x110)]),this[_0x492b34(0x110)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x5dac85){const _0x383167=_0x23c7d1;if(!this[_0x383167(0x392)])return;const {data:_0x2e7b72}=_0x5dac85,{unitID:_0x3ff998,changeset:_0x1ee32f}=_0x2e7b72,{mutations:_0x133ff7,type:_0x320c7d}=_0x1ee32f;this[_0x383167(0x3e7)]={'unitId':_0x3ff998,'type':_0x320c7d,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Gn(_0x133ff7)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x2d2c82=_0x23c7d1;if(this[_0x2d2c82(0x392)]){if(!this[_0x2d2c82(0x3e7)]){this[_0x2d2c82(0x3e3)][_0x2d2c82(0x328)](_0x2d2c82(0x21d),_0x2d2c82(0x38d));return;}this['_telemetryInfo']['stopTime']=performance[_0x2d2c82(0x1f5)](),this[_0x2d2c82(0x3e7)][_0x2d2c82(0x3c2)]=this[_0x2d2c82(0x3e7)][_0x2d2c82(0x2dc)]-this[_0x2d2c82(0x3e7)][_0x2d2c82(0xda)],this[_0x2d2c82(0x173)]['capture'](Wn,this[_0x2d2c82(0x3e7)]),this['_telemetryInfo']=null;}}[_0x23c7d1(0x40c)](){const _0x219145=_0x23c7d1;this[_0x219145(0x3e7)]=null;}};bt=Zn([J(0x2,_0x20dcfc),J(0x3,_0x16cd89),J(0x4,_0x413020),J(0x5,_0x5ae707),J(0x6,_0x4dc04f(_0x19fdc8)),J(0x7,_0x4dc04f(ce)),J(0x8,_0x4dc04f(Vs)),J(0x9,_0x4ab0b0(_0x4bbd1f))],bt);var Qn=Object[_0x23c7d1(0x252)],er=Object['getOwnPropertyDescriptor'],tr=(_0x4cd87c,_0x4528fe,_0x2bbe7a,_0xe11968)=>{const _0x3964ed=_0x23c7d1;for(var _0x27821e=_0xe11968>0x1?void 0x0:_0xe11968?er(_0x4528fe,_0x2bbe7a):_0x4528fe,_0x1b2a3d=_0x4cd87c[_0x3964ed(0x22a)]-0x1,_0x8107;_0x1b2a3d>=0x0;_0x1b2a3d--)(_0x8107=_0x4cd87c[_0x1b2a3d])&&(_0x27821e=(_0xe11968?_0x8107(_0x4528fe,_0x2bbe7a,_0x27821e):_0x8107(_0x27821e))||_0x27821e);return _0xe11968&&_0x27821e&&Qn(_0x4528fe,_0x2bbe7a,_0x27821e),_0x27821e;},me=(_0x358123,_0x3d168d)=>(_0x5a0ae5,_0x517c66)=>_0x3d168d(_0x5a0ae5,_0x517c66,_0x358123);let he=class extends _0x48670f{constructor(_0x29c594,_0xe795f8,_0x5b9d51,_0x7b919b,_0x2e1e3d,_0x220155){const _0x56d1da=_0x23c7d1;super(),l(this,_0x56d1da(0x121),new _0x4a4faf(void 0x0)),l(this,_0x56d1da(0x237),this['_socket$'][_0x56d1da(0x303)]()),l(this,_0x56d1da(0x23c),null),l(this,_0x56d1da(0x269),new Map()),l(this,_0x56d1da(0x16c),new _0x4a4faf(Y[_0x56d1da(0xaa)])),l(this,_0x56d1da(0x3e5),this[_0x56d1da(0x16c)][_0x56d1da(0x303)]()),l(this,'_socketReady',!0x1),l(this,_0x56d1da(0x27b)),l(this,_0x56d1da(0x34f),0x0),l(this,_0x56d1da(0x3f5)),l(this,_0x56d1da(0x40a)),(this[_0x56d1da(0xdc)]=_0x29c594,this['_localeService']=_0xe795f8,this[_0x56d1da(0x39a)]=_0x5b9d51,this[_0x56d1da(0x3e3)]=_0x7b919b,this[_0x56d1da(0x3c0)]=_0x2e1e3d,this['_socketService']=_0x220155,this[_0x56d1da(0x210)]());}get[_0x23c7d1(0x7c)](){const _0x4a607c=_0x23c7d1;return this[_0x4a607c(0x121)][_0x4a607c(0x264)]();}[_0x23c7d1(0x210)](){const _0x241fcc=_0x23c7d1;this[_0x241fcc(0xcf)](),this['_listenToOnlineEvent']();}[_0x23c7d1(0x230)](){const _0x171079=_0x23c7d1;super[_0x171079(0x230)](),this[_0x171079(0x269)][_0x171079(0x28d)](_0x76cd37=>_0x76cd37['dispose']()),this[_0x171079(0x269)][_0x171079(0x120)](),this[_0x171079(0x16c)]['complete']();}async['requireSession'](_0x4cecf5){const _0x14b6b4=_0x23c7d1;if(this['_sessions']['has'](_0x4cecf5))return this[_0x14b6b4(0x269)][_0x14b6b4(0xcc)](_0x4cecf5);this[_0x14b6b4(0x235)]();const _0x15d44e=this[_0x14b6b4(0xdc)]['createInstance'](bt,_0x4cecf5,this[_0x14b6b4(0x121)][_0x14b6b4(0x303)]());return this[_0x14b6b4(0x269)][_0x14b6b4(0x2f5)](_0x4cecf5,_0x15d44e),_0x15d44e;}[_0x23c7d1(0x3a8)](_0x441ab6){const _0x5912c8=_0x23c7d1;var _0x55cb8b;const _0x2f53ca=this[_0x5912c8(0x269)][_0x5912c8(0xcc)](_0x441ab6);_0x2f53ca&&(this[_0x5912c8(0x269)][_0x5912c8(0xd4)](_0x441ab6),_0x2f53ca['close']()),this[_0x5912c8(0x269)][_0x5912c8(0x37a)]||(_0x55cb8b=this[_0x5912c8(0x7c)])==null||_0x55cb8b[_0x5912c8(0x197)]();}[_0x23c7d1(0x2ad)](){const _0xeba5a9=_0x23c7d1;this[_0xeba5a9(0x34f)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0xeba5a9(0x27b)]),this[_0xeba5a9(0x27b)]=null),this['_tryReconnect']();}[_0x23c7d1(0x3a4)](){const _0x1d510e=_0x23c7d1;var _0x11e48d,_0x1b404c;const _0x51cd3a=this[_0x1d510e(0x3c0)][_0x1d510e(0x30d)](Tn),_0x296c21=this[_0x1d510e(0x3c0)]['getConfig']($),_0x36fc56=(_0x1b404c=(_0x11e48d=_0x296c21==null?void 0x0:_0x296c21['collabWebSocketUrl'])!=null?_0x11e48d:_0x51cd3a)!=null?_0x1b404c:Rn,_0x27f2f6=this[_0x1d510e(0x3c5)]['createSocket'](_0x36fc56);return this['_candidateSocket']=_0x27f2f6,_0x27f2f6;}['_tryEnsureSocket'](){const _0x103e40=_0x23c7d1;var _0x47e289,_0x21f2b1;try{const _0xcb7ae5=(_0x21f2b1=(_0x47e289=this[_0x103e40(0x7c)])!=null?_0x47e289:this[_0x103e40(0x23c)])!=null?_0x21f2b1:this['_createSocket']();if(_0xcb7ae5){const _0x497fde=_0xcb7ae5[_0x103e40(0x25c)];_0xcb7ae5[_0x103e40(0x25c)]=_0x225e65=>(this['_rescheduleHeartbeat'](),_0x497fde[_0x103e40(0x2cb)](_0xcb7ae5,[_0x225e65])),_0xcb7ae5[_0x103e40(0xaf)][_0x103e40(0x7f)](_0x297e0a=>this['_onMessage'](_0xcb7ae5,_0x297e0a)),_0xcb7ae5['error$'][_0x103e40(0x254)](_0x10cb40(0x1))[_0x103e40(0x7f)](_0xc6b435=>this[_0x103e40(0x3e3)]['error']('[CollaborationSessionService]:\x20socket\x20error',_0xc6b435)),_0xcb7ae5['open$']['pipe'](_0x10cb40(0x1))[_0x103e40(0x7f)](()=>{const _0x40c4fa=_0x103e40;this[_0x40c4fa(0x1cb)](_0xcb7ae5);}),_0xcb7ae5[_0x103e40(0x35f)][_0x103e40(0x254)](_0x10cb40(0x1))['subscribe'](_0x54f422=>{const _0x2da824=_0x103e40;this[_0x2da824(0x3e3)][_0x2da824(0x12b)](_0x2da824(0x203),_0x2da824(0x1ac),_0x54f422),this['_onConnectionFailed']();});}}catch(_0x5efd21){this['_logService']['error'](_0x5efd21),this[_0x103e40(0x341)]();}}[_0x23c7d1(0x1cb)](_0x3d820e){const _0x40d2d2=_0x23c7d1;this['_logService'][_0x40d2d2(0x12b)]('[CollaborationSessionService]',_0x40d2d2(0xed)),_0x3d820e['send']({'cmd':I[_0x40d2d2(0x90)]}),this[_0x40d2d2(0x2ec)]();}['_listenToOfflineEvent'](){const _0x2fca16=_0x23c7d1;window[_0x2fca16(0x297)](_0x2fca16(0x3f8),()=>this[_0x2fca16(0x98)]());}['_onOffline'](){const _0xcf137f=_0x23c7d1;this[_0xcf137f(0x275)]=!0x1,this[_0xcf137f(0x23c)]=null,this['_status$'][_0xcf137f(0x183)](Y[_0xcf137f(0x346)]),this[_0xcf137f(0x121)][_0xcf137f(0x183)](null),this[_0xcf137f(0x12d)](),this[_0xcf137f(0x38e)]();}[_0x23c7d1(0x341)](){const _0x328218=_0x23c7d1;var _0x338080;this[_0x328218(0x98)](),this['_retryCount']<((_0x338080=this[_0x328218(0x3c0)][_0x328218(0x30d)](Pn))!=null?_0x338080:yn)?(this[_0x328218(0x39a)]['show']({'key':'collaboration-session-retry','type':_0x2b8ac7['Warning'],'content':this[_0x328218(0x307)]['t'](_0x328218(0x14c))}),this[_0x328218(0x239)]()):this[_0x328218(0x39a)][_0x328218(0x3cf)]({'key':_0x328218(0x37c),'type':_0x2b8ac7[_0x328218(0x306)],'content':this[_0x328218(0x307)]['t'](_0x328218(0xdf))});}[_0x23c7d1(0x3d9)](){const _0x1c6c38=_0x23c7d1,_0x43813b=()=>{const _0x237609=_0x3e56;this[_0x237609(0x7c)]||this[_0x237609(0x2ad)]();},_0x5d1497=()=>{const _0x4a7367=_0x3e56;this[_0x4a7367(0x7c)]||document['visibilityState']===_0x4a7367(0x19a)||this['reconnect']();};window[_0x1c6c38(0x297)](_0x1c6c38(0x3bb),_0x43813b),document[_0x1c6c38(0x297)](_0x1c6c38(0x3a9),_0x5d1497);}[_0x23c7d1(0x239)](){const _0x3e2582=_0x23c7d1;var _0x337691;const _0x30b9d7=this[_0x3e2582(0x34f)],_0x55e175=this[_0x3e2582(0x3c0)][_0x3e2582(0x30d)]($),_0x3c4242=_0x30b9d7===0x0?0x0:((_0x337691=_0x55e175==null?void 0x0:_0x55e175['retryConnectingInterval'])!=null?_0x337691:wn)*0x2**_0x30b9d7;this[_0x3e2582(0x27b)]=window['setTimeout'](()=>{const _0x1b779f=_0x3e2582;clearTimeout(this['_retryConnectingTimer']),this[_0x1b779f(0x27b)]=null,this[_0x1b779f(0x235)]();},_0x3c4242),this[_0x3e2582(0x34f)]+=0x1;}[_0x23c7d1(0xbe)](_0x4e50a7,_0x2d2e65){const _0xef736e=_0x23c7d1,{cmd:_0x593449}=_0x2d2e65;_0x593449===I[_0xef736e(0x90)]&&!this[_0xef736e(0x275)]&&(_0x4e50a7[_0xef736e(0x19f)]=_0x2d2e65['data'][_0xef736e(0x19f)],this[_0xef736e(0x121)][_0xef736e(0x183)](_0x4e50a7),this[_0xef736e(0x16c)][_0xef736e(0x183)](Y['ONLINE']),this[_0xef736e(0x275)]=!0x0,this[_0xef736e(0x23c)]=null),_0x593449===I[_0xef736e(0x30b)]&&this[_0xef736e(0x12d)](),this['_rescheduleHeartbeat']();}['_rescheduleHeartbeat'](){const _0x2ac074=_0x23c7d1;var _0xcea0d6;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=window['setTimeout'](()=>this[_0x2ac074(0x1e4)](),(_0xcea0d6=this[_0x2ac074(0x3c0)][_0x2ac074(0x30d)](On))!=null?_0xcea0d6:Dn);}[_0x23c7d1(0x1e4)](){const _0x4e3d38=_0x23c7d1;this[_0x4e3d38(0x7c)]['send']({'cmd':I[_0x4e3d38(0x30b)]}),this[_0x4e3d38(0x15b)]();}['_waitForHeartbeatResponse'](){const _0x59c1f6=_0x23c7d1;var _0x1f2e84;this[_0x59c1f6(0x40a)]=window['setTimeout'](()=>this[_0x59c1f6(0x341)](),(_0x1f2e84=this[_0x59c1f6(0x3c0)][_0x59c1f6(0x30d)](js))!=null?_0x1f2e84:Hs);}['_clearHeartbeatTimer'](){const _0x2d9d09=_0x23c7d1;this[_0x2d9d09(0x3f5)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x2d9d09(0x3f5)]=null);}[_0x23c7d1(0x12d)](){const _0x2c67c9=_0x23c7d1;this[_0x2c67c9(0x40a)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x2c67c9(0x40a)]=null);}};he=tr([me(0x0,_0x4dc04f(_0x22396d)),me(0x1,_0x4dc04f(_0x19fdc8)),me(0x2,_0x413020),me(0x3,_0x20dcfc),me(0x4,_0x5ae707),me(0x5,Bs)],he);var T=[];for(var ct=0x0;ct<0x100;++ct)T[_0x23c7d1(0x3d1)]((ct+0x100)['toString'](0x10)[_0x23c7d1(0xf8)](0x1));function sr(_0x422a32,_0x17e7c6=0x0){return(T[_0x422a32[_0x17e7c6+0x0]]+T[_0x422a32[_0x17e7c6+0x1]]+T[_0x422a32[_0x17e7c6+0x2]]+T[_0x422a32[_0x17e7c6+0x3]]+'-'+T[_0x422a32[_0x17e7c6+0x4]]+T[_0x422a32[_0x17e7c6+0x5]]+'-'+T[_0x422a32[_0x17e7c6+0x6]]+T[_0x422a32[_0x17e7c6+0x7]]+'-'+T[_0x422a32[_0x17e7c6+0x8]]+T[_0x422a32[_0x17e7c6+0x9]]+'-'+T[_0x422a32[_0x17e7c6+0xa]]+T[_0x422a32[_0x17e7c6+0xb]]+T[_0x422a32[_0x17e7c6+0xc]]+T[_0x422a32[_0x17e7c6+0xd]]+T[_0x422a32[_0x17e7c6+0xe]]+T[_0x422a32[_0x17e7c6+0xf]])['toLowerCase']();}var xe,ir=new Uint8Array(0x10);function nr(){const _0x5ce9bb=_0x23c7d1;if(!xe&&(xe=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x5ce9bb(0x23f)]['bind'](crypto),!xe))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return xe(ir);}var rr=typeof crypto<'u'&&crypto[_0x23c7d1(0x277)]&&crypto[_0x23c7d1(0x277)]['bind'](crypto);const cs={'randomUUID':rr};function or(_0x314ddf,_0x56563d,_0x5bf3cc){const _0x1ed0d7=_0x23c7d1;if(cs['randomUUID']&&!_0x56563d&&!_0x314ddf)return cs[_0x1ed0d7(0x277)]();_0x314ddf=_0x314ddf||{};var _0x4e35fb=_0x314ddf[_0x1ed0d7(0xa2)]||(_0x314ddf['rng']||nr)();return _0x4e35fb[0x6]=_0x4e35fb[0x6]&0xf|0x40,_0x4e35fb[0x8]=_0x4e35fb[0x8]&0x3f|0x80,sr(_0x4e35fb);}var ar=Object[_0x23c7d1(0x252)],cr=Object[_0x23c7d1(0x113)],hr=(_0xfddc31,_0x5945f7,_0x223b21,_0x1fc44a)=>{const _0x5f3db0=_0x23c7d1;for(var _0x10a96b=_0x1fc44a>0x1?void 0x0:_0x1fc44a?cr(_0x5945f7,_0x223b21):_0x5945f7,_0x2e4740=_0xfddc31[_0x5f3db0(0x22a)]-0x1,_0x25a20d;_0x2e4740>=0x0;_0x2e4740--)(_0x25a20d=_0xfddc31[_0x2e4740])&&(_0x10a96b=(_0x1fc44a?_0x25a20d(_0x5945f7,_0x223b21,_0x10a96b):_0x25a20d(_0x10a96b))||_0x10a96b);return _0x1fc44a&&_0x10a96b&&ar(_0x5945f7,_0x223b21,_0x10a96b),_0x10a96b;},ht=(_0x5bc4a6,_0x6dbe64)=>(_0x11b594,_0x4e058a)=>_0x6dbe64(_0x11b594,_0x4e058a,_0x5bc4a6);let Ye=class{constructor(_0x3cae0c,_0x3204e0,_0x16c826){const _0x1022cd=_0x23c7d1;this[_0x1022cd(0xdc)]=_0x3cae0c,this['_transformService']=_0x3204e0,this['_renderManagerService']=_0x16c826;}[_0x23c7d1(0x141)](_0x45ab5e){this['_transformUndoRedoStack'](_0x45ab5e),this['_transformPreviousActiveRange'](_0x45ab5e);}[_0x23c7d1(0x1fe)](_0x319a59){const _0xc8fc5e=_0x23c7d1,{unitID:_0x5325bf}=_0x319a59,_0x286fe8=this['_renderManagerService'][_0xc8fc5e(0x24f)](_0x5325bf)[_0xc8fc5e(0x325)](_0x3fbce3),{redoCache:_0x5a7f88}=_0x286fe8[_0xc8fc5e(0x223)]();if(_0x5a7f88[_0xc8fc5e(0x22a)]===0x0)return _0x319a59;let _0x53c62b=_0x344d53[_0xc8fc5e(0x1fc)](_0x319a59[_0xc8fc5e(0x2aa)][0x0]);for(let _0x7fefeb=0x0;_0x7fefeb<_0x5a7f88['length'];_0x7fefeb++){const _0x26b3b2={'id':_0xc8fc5e(0x28e),'params':{..._0x5a7f88[_0x7fefeb]}},_0x31c122=this[_0xc8fc5e(0x152)][_0xc8fc5e(0xe3)](_0x53c62b,_0x26b3b2,!0x1);if(_0x20d9cf(_0x31c122))throw _0x31c122[_0xc8fc5e(0x328)];_0x53c62b=_0x31c122[_0xc8fc5e(0x1f0)];}return{..._0x344d53[_0xc8fc5e(0x1fc)](_0x319a59),'mutations':[_0x53c62b]};}[_0x23c7d1(0x148)](_0x1b60c2){const _0xb13c84=_0x23c7d1,{unitID:_0x50310e}=_0x1b60c2,_0xe8e442=this['_renderManagerService'][_0xb13c84(0x24f)](_0x50310e)[_0xb13c84(0x325)](_0x3fbce3),{undoCache:_0x330cb7,redoCache:_0x24b2f4}=_0xe8e442['getUndoRedoMutationParamsCache']();if(_0x330cb7[_0xb13c84(0x22a)]===0x0||_0x24b2f4['length']===0x0)return;const _0x3d6563=[],_0x24f72e=[];let _0x335ed6=_0x344d53[_0xb13c84(0x1fc)](_0x1b60c2[_0xb13c84(0x2aa)][0x0]),_0x183274=_0x344d53[_0xb13c84(0x1fc)](_0x1b60c2[_0xb13c84(0x2aa)][0x0]);for(let _0x1cfd54=_0x330cb7[_0xb13c84(0x22a)]-0x1;_0x1cfd54>=0x0;_0x1cfd54--){const _0x432099={'id':_0xb13c84(0x28e),'params':{..._0x330cb7[_0x1cfd54]}},_0x5a7dde={'id':_0xb13c84(0x28e),'params':{..._0x24b2f4[_0x1cfd54]}},_0x3428a0=this[_0xb13c84(0x152)][_0xb13c84(0xe3)](_0x335ed6,_0x432099,!0x1),_0x375c38=this['_transformService'][_0xb13c84(0xe3)](_0x183274,_0x5a7dde,!0x1);if(_0x20d9cf(_0x3428a0))throw _0x3428a0[_0xb13c84(0x328)];if(_0x20d9cf(_0x375c38))throw _0x375c38['error'];_0x3d6563[_0xb13c84(0x326)](_0x3428a0[_0xb13c84(0x388)][_0xb13c84(0x16d)]),_0x24f72e['unshift'](_0x375c38[_0xb13c84(0x388)][_0xb13c84(0x16d)]),_0x335ed6=_0x3428a0[_0xb13c84(0x1f0)],_0x183274=_0x375c38[_0xb13c84(0x1f0)];}_0xe8e442[_0xb13c84(0x1f6)]({'undoCache':_0x3d6563,'redoCache':_0x24f72e});}[_0x23c7d1(0x2d7)](_0x3c1847){const _0x37443d=_0x23c7d1,{unitID:_0x569e12}=_0x3c1847,_0x47585b=this[_0x37443d(0x8a)][_0x37443d(0x24f)](_0x569e12)[_0x37443d(0x325)](_0x3fbce3),_0x304b4c=_0x47585b[_0x37443d(0x18a)]();if(_0x304b4c==null)return;const _0x556adf=[{'id':_0x37443d(0x28e),'params':{'unitId':_0x3c1847[_0x37443d(0x347)],'actions':null,'textRanges':[_0x304b4c]}}],_0x2438ad=this[_0x37443d(0x152)][_0x37443d(0x2c0)](_0x3c1847,_0x556adf);if(!_0x4a2341(_0x2438ad))throw _0x2438ad['error'];const _0x482e2e=_0x2438ad['m2Prime'][0x0][_0x37443d(0x16d)][_0x37443d(0x36b)];Array[_0x37443d(0x1a0)](_0x482e2e)&&_0x482e2e[_0x37443d(0x22a)]&&_0x47585b[_0x37443d(0xe4)](_0x482e2e[0x0]);}};Ye=hr([ht(0x0,_0x4dc04f(_0x22396d)),ht(0x1,_0x1c29f3),ht(0x2,_0x3bd096)],Ye);var lr=Object[_0x23c7d1(0x252)],_r=Object[_0x23c7d1(0x113)],ur=(_0x373525,_0x3d7e81,_0x28649b,_0x49749b)=>{const _0x975037=_0x23c7d1;for(var _0x2f880c=_0x49749b>0x1?void 0x0:_0x49749b?_r(_0x3d7e81,_0x28649b):_0x3d7e81,_0x307652=_0x373525[_0x975037(0x22a)]-0x1,_0x5da340;_0x307652>=0x0;_0x307652--)(_0x5da340=_0x373525[_0x307652])&&(_0x2f880c=(_0x49749b?_0x5da340(_0x3d7e81,_0x28649b,_0x2f880c):_0x5da340(_0x2f880c))||_0x2f880c);return _0x49749b&&_0x2f880c&&lr(_0x3d7e81,_0x28649b,_0x2f880c),_0x2f880c;},De=(_0xc45e63,_0x38f211)=>(_0x1b1ea4,_0x29dd9a)=>_0x38f211(_0x1b1ea4,_0x29dd9a,_0xc45e63);let w=class extends _0x48670f{constructor(_0x33586b,_0x1639c3,_0x2d9feb,_0x560ec2,_0x51276d){const _0x34ea69=_0x23c7d1;super(),l(this,_0x34ea69(0x25f),new Map()),l(this,_0x34ea69(0x1ed),new Map()),l(this,_0x34ea69(0x278),!0x1),(this[_0x34ea69(0x3c0)]=_0x33586b,this[_0x34ea69(0x2a5)]=_0x1639c3,this[_0x34ea69(0x2a3)]=_0x2d9feb,this['_localeService']=_0x560ec2,this[_0x34ea69(0x175)]=_0x51276d,this[_0x34ea69(0x1bc)]());}[_0x23c7d1(0x387)](){const _0x5dfe2c=_0x23c7d1;this[_0x5dfe2c(0x278)]=!0x0;}[_0x23c7d1(0x37b)](){const _0x487ba2=_0x23c7d1;this[_0x487ba2(0x278)]=!0x1;}[_0x23c7d1(0x230)](){const _0xa2a6e5=_0x23c7d1;this['exhaustSavingTask']()[_0xa2a6e5(0x136)](()=>super[_0xa2a6e5(0x230)]());}async['loadOfflineData'](_0x37a81e){const _0x1fd936=_0x23c7d1;return this[_0x1fd936(0x278)]?null:this['_localStorageService'][_0x1fd936(0x211)](hs(_0x37a81e));}async[_0x23c7d1(0x214)](_0x4e4a7a,_0x4b352f){const _0x5225c5=_0x23c7d1;return!!this[_0x5225c5(0x2a5)][_0x5225c5(0x271)](_0x4e4a7a,_0x4b352f);}[_0x23c7d1(0x209)](_0x1aa8ed,_0x2c9e0a,_0x171936,_0x489410){const _0x40843d=_0x23c7d1,_0x258d83=this[_0x40843d(0x175)]['getCurrentRevOfUnit'](_0x1aa8ed);this['_cachedData']['set'](_0x1aa8ed,{'unitID':_0x1aa8ed,'type':_0x2c9e0a,'awaitingChangeset':_0x171936,'mutations':_0x489410,'rev':_0x258d83}),this[_0x40843d(0x1ed)][_0x40843d(0x143)](_0x1aa8ed)||this[_0x40843d(0x2ed)](_0x1aa8ed);}[_0x23c7d1(0x2ed)](_0x472b6d){const _0x2b0297=_0x23c7d1,_0x1d231c=this[_0x2b0297(0x16a)]();_0x1d231c===0x0?this['_saveCache'](_0x472b6d):this[_0x2b0297(0x1ed)]['set'](_0x472b6d,setTimeout(()=>this['_saveCache'](_0x472b6d),_0x1d231c));}[_0x23c7d1(0x16a)](){const _0x2a7113=_0x23c7d1;var _0x266606;return(_0x266606=this[_0x2a7113(0x3c0)][_0x2a7113(0x30d)](Un))!=null?_0x266606:Nn;}['_saveCache'](_0x40ba2c){const _0x4debf6=_0x23c7d1,_0x44fa09=this[_0x4debf6(0x1ed)][_0x4debf6(0xcc)](_0x40ba2c);return _0x44fa09!==void 0x0&&window['clearTimeout'](_0x44fa09),this[_0x4debf6(0x2a5)][_0x4debf6(0x271)](hs(_0x40ba2c),this[_0x4debf6(0x25f)][_0x4debf6(0xcc)](_0x40ba2c))['then'](()=>this[_0x4debf6(0x1ed)]['delete'](_0x40ba2c));}async[_0x23c7d1(0x102)](){const _0x51899a=_0x23c7d1,_0x30b643=[];this[_0x51899a(0x1ed)]['forEach']((_0x163190,_0xb30a47)=>{const _0x23df64=_0x51899a;window[_0x23df64(0x2f8)](_0x163190),_0x30b643[_0x23df64(0x3d1)](this[_0x23df64(0x167)](_0xb30a47)[_0x23df64(0x136)](()=>{this['_saveTaskMap']['delete'](_0xb30a47);}));}),await Promise[_0x51899a(0x2df)](_0x30b643);}[_0x23c7d1(0x1bc)](){const _0x490392=_0x23c7d1;this['disposeWithMe'](this[_0x490392(0x2a3)]['registerBeforeClose'](()=>{const _0x7e3bd8=_0x490392;if(this[_0x7e3bd8(0x1ed)][_0x7e3bd8(0x37a)])return this[_0x7e3bd8(0x307)]['t'](_0x7e3bd8(0x3ee));}));}};w=ur([De(0x0,_0x5ae707),De(0x1,_0x1ead3d),De(0x2,_0x16cd89),De(0x3,_0x4dc04f(_0x19fdc8)),De(0x4,_0x4dc04f(_0x2fb629))],w);function hs(_0x2acff7){return'unit-cache-'+_0x2acff7;}var dr=Object[_0x23c7d1(0x252)],mr=Object['getOwnPropertyDescriptor'],fr=(_0x21f76e,_0x320247,_0x47b8a9,_0x3383db)=>{for(var _0x3272f2=_0x3383db>0x1?void 0x0:_0x3383db?mr(_0x320247,_0x47b8a9):_0x320247,_0x86b3b9=_0x21f76e['length']-0x1,_0x5a4fb5;_0x86b3b9>=0x0;_0x86b3b9--)(_0x5a4fb5=_0x21f76e[_0x86b3b9])&&(_0x3272f2=(_0x3383db?_0x5a4fb5(_0x320247,_0x47b8a9,_0x3272f2):_0x5a4fb5(_0x3272f2))||_0x3272f2);return _0x3383db&&_0x3272f2&&dr(_0x320247,_0x47b8a9,_0x3272f2),_0x3272f2;},lt=(_0x5ea907,_0x20a807)=>(_0x2b27a4,_0x570ad0)=>_0x20a807(_0x2b27a4,_0x570ad0,_0x5ea907);function gr(_0x2dc7e5){const _0x50d868=_0x23c7d1,{unitID:_0x2c0365,mutations:_0x2d3b33}=_0x2dc7e5;return{'unitId':_0x2c0365,'subUnitId':_0x2d3b33[0x0][_0x50d868(0x16d)]['subUnitId']};}let Ke=class{constructor(_0x5d2469,_0x579cfe,_0xafaaca){const _0x50d2e9=_0x23c7d1;this[_0x50d2e9(0xdc)]=_0x5d2469,this[_0x50d2e9(0x152)]=_0x579cfe,this[_0x50d2e9(0x3b8)]=_0xafaaca;}['transformSelections'](_0x15f287){const _0x30e5d1=_0x23c7d1;var _0x1b7a2d,_0x3bc299,_0xccb920,_0x3fb3f9;const _0x20047f=this[_0x30e5d1(0xdc)][_0x30e5d1(0xcc)](_0x49c5af),{unitId:_0x2a0c00,subUnitId:_0x128a16}=gr(_0x15f287),_0x242839=_0x20047f['getWorkbookSelections'](_0x2a0c00)[_0x30e5d1(0x1a4)](),_0x1a6718=(_0x3bc299=(_0x1b7a2d=this[_0x30e5d1(0x3b8)][_0x30e5d1(0x1cd)](_0x2a0c00))==null?void 0x0:_0x1b7a2d[_0x30e5d1(0x131)]())==null?void 0x0:_0x3bc299[_0x30e5d1(0x157)]();if(_0x242839[_0x30e5d1(0x22a)]===0x0||!_0x2a0c00||!_0x128a16)return;const _0x14c4dd=[{'id':_0x3f3cc1['id'],'params':{'unitId':_0x2a0c00,'subUnitId':_0x1a6718,'selections':_0x344d53[_0x30e5d1(0x1fc)](_0x242839)}}],_0x49f61b=this[_0x30e5d1(0x152)][_0x30e5d1(0x2c0)](_0x15f287,_0x14c4dd);if(!_0x4a2341(_0x49f61b))throw _0x49f61b[_0x30e5d1(0x328)];const _0x492bc0=(_0x3fb3f9=(_0xccb920=_0x49f61b[_0x30e5d1(0x388)][0x0])==null?void 0x0:_0xccb920[_0x30e5d1(0x16d)])==null?void 0x0:_0x3fb3f9['selections'];if(Array[_0x30e5d1(0x1a0)](_0x492bc0)&&_0x492bc0['length']){if(_0x492bc0[_0x30e5d1(0x22a)]===_0x14c4dd[0x0]['params'][_0x30e5d1(0x401)][_0x30e5d1(0x22a)]&&_0x492bc0[_0x30e5d1(0x352)]((_0x127117,_0x4b8057)=>_0x27110e['equals'](_0x127117[_0x30e5d1(0x2cd)],_0x14c4dd[0x0][_0x30e5d1(0x16d)][_0x30e5d1(0x401)][_0x4b8057]['range'])))return;this[_0x30e5d1(0xdc)]['get'](_0x45f63f)[_0x30e5d1(0x12a)](_0x3f3cc1['id'],{'unitId':_0x2a0c00,'subUnitId':_0x1a6718,'selections':_0x492bc0});}}};Ke=fr([lt(0x0,_0x4dc04f(_0x22396d)),lt(0x1,_0x1c29f3),lt(0x2,_0x9f62da)],Ke);const tt=_0x437a8e('univer-pro.collaboration-client.single-active-unit-service');var Fs=(_0x5b00d6=>(_0x5b00d6[_0x5b00d6[_0x23c7d1(0x316)]=0x0]=_0x23c7d1(0x316),_0x5b00d6[_0x5b00d6[_0x23c7d1(0x8b)]=0x1]='OTHER_CLIENTS_EDITING',_0x5b00d6))(Fs||{});const ls=0x7530,_s=_0x23c7d1(0x1c4);class Sr extends _0x48670f{constructor(){const _0xa459c3=_0x23c7d1;super(),l(this,_0xa459c3(0x133),_0x344d53[_0xa459c3(0x257)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0xa459c3(0x3b9),new Map()),l(this,_0xa459c3(0x299),null),l(this,'_clearOtherTimers',new Map()),l(this,'_unitStatus',new Map()),this[_0xa459c3(0xad)]();}[_0x23c7d1(0x230)](){const _0x14c3fa=_0x23c7d1;super[_0x14c3fa(0x230)](),this[_0x14c3fa(0x11d)][_0x14c3fa(0x28d)]((_0x447815,_0x3151ee)=>this[_0x14c3fa(0x296)](_0x3151ee)),this[_0x14c3fa(0x299)]&&window['clearInterval'](this[_0x14c3fa(0x299)]);}[_0x23c7d1(0x1e1)](_0xa4492f){const _0x428edf=_0x23c7d1;return this[_0x428edf(0x27f)](_0xa4492f)[_0x428edf(0x254)](_0x48ac4f());}[_0x23c7d1(0x29e)](_0x4279fa){const _0x37bfca=_0x23c7d1;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x37bfca(0x27e)](_0x4279fa),this['_send']({'type':0x0,'memberID':this[_0x37bfca(0x133)],'unitIDs':[_0x4279fa],'isForwarded':!0x1});}[_0x23c7d1(0x1f7)](_0x1124e5){const _0xdb6873=_0x23c7d1;this[_0xdb6873(0x207)][_0xdb6873(0xd4)](_0x1124e5),this[_0xdb6873(0x207)][_0xdb6873(0x37a)]===0x0&&this[_0xdb6873(0x299)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x23c7d1(0xad)](){const _0xc00bc1=_0x23c7d1;this[_0xc00bc1(0x216)](_0x546354(_0x1c3647(window,_0xc00bc1(0x323))['subscribe'](_0x30458e=>{const _0xdaf366=_0xc00bc1;if(_0x30458e[_0xdaf366(0x2ef)]!==_s||!_0x30458e['newValue'])return;const _0x49cb48=JSON[_0xdaf366(0x9b)](_0x30458e[_0xdaf366(0x362)]);this['_handleEvent'](_0x49cb48);}))),window[_0xc00bc1(0x297)](_0xc00bc1(0x185),()=>this['_send']({'type':0x1,'memberID':this[_0xc00bc1(0x133)],'unitIDs':Array[_0xc00bc1(0xba)](this[_0xc00bc1(0x207)])}));}[_0x23c7d1(0x2fb)](_0x2d3789){const _0x59fa60=_0x23c7d1;switch(_0x2d3789[_0x59fa60(0x340)]){case 0x0:this[_0x59fa60(0x9d)](_0x2d3789);break;case 0x1:this[_0x59fa60(0xa7)](_0x2d3789);break;case 0x2:this[_0x59fa60(0x15e)](_0x2d3789);break;}}[_0x23c7d1(0x9d)](_0x515070){const _0x5a354c=_0x23c7d1,{unitIDs:_0x5dc33f,memberID:_0x3bfb35,isForwarded:_0x5d08d6}=_0x515070;_0x5dc33f[_0x5a354c(0x28d)](_0x1967cb=>{const _0x2872bd=_0x5a354c;if(!_0x5d08d6&&this[_0x2872bd(0x3b9)][_0x2872bd(0x143)](_0x1967cb)&&this[_0x2872bd(0x27f)](_0x1967cb)[_0x2872bd(0x183)](0x1),!this[_0x2872bd(0x3b9)]['has'](_0x1967cb)||!this[_0x2872bd(0x3b9)][_0x2872bd(0xcc)](_0x1967cb)[_0x2872bd(0x143)](_0x3bfb35)){const _0x46261e=this[_0x2872bd(0x3b9)][_0x2872bd(0xcc)](_0x1967cb)||new Set();_0x46261e[_0x2872bd(0x27e)](_0x3bfb35),this[_0x2872bd(0x3b9)]['set'](_0x1967cb,_0x46261e),this[_0x2872bd(0x2f1)](_0x3bfb35);}}),_0x5d08d6||this[_0x5a354c(0x39b)]({'type':0x0,'memberID':this[_0x5a354c(0x133)],'unitIDs':[...this[_0x5a354c(0x207)]],'isForwarded':!0x0});}[_0x23c7d1(0x2f1)](_0x1b90cb){const _0x5999ff=_0x23c7d1;this[_0x5999ff(0x296)](_0x1b90cb);const _0x45c298=window[_0x5999ff(0x3e2)](()=>{const _0x22b4b8=_0x5999ff;this[_0x22b4b8(0x3b9)]['forEach'](_0x48e3a7=>{const _0x1d91b9=_0x22b4b8;_0x48e3a7[_0x1d91b9(0xd4)](_0x1b90cb);});},ls*0x2);this['_clearOtherTimers'][_0x5999ff(0x2f5)](_0x1b90cb,_0x45c298);}['_removeClearOtherTimer'](_0x44847e){const _0x21bacb=_0x23c7d1;if(this[_0x21bacb(0x11d)][_0x21bacb(0x143)](_0x44847e)){const _0x4d9045=this[_0x21bacb(0x11d)][_0x21bacb(0xcc)](_0x44847e);_0x4d9045&&window[_0x21bacb(0x2f8)](_0x4d9045),this[_0x21bacb(0x11d)]['set'](_0x44847e,null);}}['_handleLeaveEvent'](_0x5862e8){const _0x4e86bf=_0x23c7d1,{memberID:_0xb695f4,unitIDs:_0x21470d}=_0x5862e8;_0x21470d[_0x4e86bf(0x28d)](_0xf690c4=>{const _0x78da98=_0x4e86bf;var _0x34682d;const _0x1c7c21=this[_0x78da98(0x3b9)][_0x78da98(0xcc)](_0xf690c4);_0x1c7c21&&(_0x1c7c21[_0x78da98(0xd4)](_0xb695f4),(_0x34682d=this['_ensureSubject'](_0xf690c4))==null||_0x34682d['next'](_0x1c7c21[_0x78da98(0x37a)]===0x0?0x0:0x1));}),this[_0x4e86bf(0x296)](_0xb695f4);}['_handleHeartbeatEvent'](_0x54a3bf){const _0x159247=_0x23c7d1;this[_0x159247(0x2f1)](_0x54a3bf[_0x159247(0x19f)]);}[_0x23c7d1(0x39b)](_0x18dba1){const _0x3103df=_0x23c7d1;localStorage[_0x3103df(0x271)](_s,JSON['stringify'](_0x18dba1));}[_0x23c7d1(0xce)](){const _0xbfa503=_0x23c7d1;this[_0xbfa503(0x299)]=window[_0xbfa503(0x288)](()=>{const _0x14f53e=_0xbfa503;this[_0x14f53e(0x39b)]({'type':0x2,'memberID':this[_0x14f53e(0x133)]});},ls);}[_0x23c7d1(0x27f)](_0x35d67d){const _0x4d3425=_0x23c7d1;return this[_0x4d3425(0x1d3)]['has'](_0x35d67d)||this[_0x4d3425(0x1d3)][_0x4d3425(0x2f5)](_0x35d67d,new _0x4a4faf(0x0)),this[_0x4d3425(0x1d3)][_0x4d3425(0xcc)](_0x35d67d);}}function Ws(_0x2fb233){let _0x429e0b='';for(const _0x5ca70f of _0x2fb233){const {startOffset:_0x374c25,endOffset:_0xa1a4db,isActive:_0x5da478}=_0x5ca70f;_0x429e0b['length']&&(_0x429e0b+=','),_0x429e0b+=_0x374c25+':'+_0xa1a4db+':'+(_0x5da478?'1':'0');}return _0x429e0b;}function pr(_0x2a0bf0){const _0x5077d6=_0x23c7d1,_0x223dd7=_0x2a0bf0['split'](','),_0x22777e=[];for(const _0x52527d of _0x223dd7){const [_0x12d3ef,_0x54f929,_0x4ed40b]=_0x52527d[_0x5077d6(0x1ab)](':');_0x22777e[_0x5077d6(0x3d1)]({'startOffset':Number(_0x12d3ef),'endOffset':Number(_0x54f929),'collapsed':_0x12d3ef===_0x54f929,'isActive':_0x4ed40b==='1'});}return _0x22777e[_0x5077d6(0x330)](_0x27ccb7=>_0x27ccb7[_0x5077d6(0x220)])||(_0x22777e[0x0][_0x5077d6(0x220)]=!0x0),_0x22777e;}class Ft extends _0x55967c{constructor(){const _0x26b142=_0x23c7d1;super(...arguments),l(this,_0x26b142(0xae),new _0x4a4faf(null)),l(this,_0x26b142(0x400),this['_collabCursorState$'][_0x26b142(0x303)]());}['syncEditingCollabCursor'](_0x37b1a9){const _0x3fe30e=_0x23c7d1,{unitID:_0x425a25,memberID:_0x394a9a,textRanges:_0x4fc2c3}=_0x37b1a9,_0x381976=Ws(_0x4fc2c3),_0x368315={'unitID':_0x425a25,'memberID':_0x394a9a,'selection':_0x381976};this[_0x3fe30e(0xae)][_0x3fe30e(0x183)](_0x368315);}}var vr=Object[_0x23c7d1(0x252)],Ir=Object['getOwnPropertyDescriptor'],Er=(_0x3f2f89,_0x2a1468,_0x3491f7,_0x1ad810)=>{for(var _0x14d730=_0x1ad810>0x1?void 0x0:_0x1ad810?Ir(_0x2a1468,_0x3491f7):_0x2a1468,_0x1d2c20=_0x3f2f89['length']-0x1,_0x26e85b;_0x1d2c20>=0x0;_0x1d2c20--)(_0x26e85b=_0x3f2f89[_0x1d2c20])&&(_0x14d730=(_0x1ad810?_0x26e85b(_0x2a1468,_0x3491f7,_0x14d730):_0x26e85b(_0x14d730))||_0x14d730);return _0x1ad810&&_0x14d730&&vr(_0x2a1468,_0x3491f7,_0x14d730),_0x14d730;},us=(_0x1db6dd,_0x31b4a5)=>(_0x22e448,_0x402cb8)=>_0x31b4a5(_0x22e448,_0x402cb8,_0x1db6dd);let Xe=class{constructor(_0x6f08b5,_0x1a39e1){const _0x45ce3e=_0x23c7d1;this['_injector']=_0x6f08b5,this[_0x45ce3e(0x152)]=_0x1a39e1;}['transformSelections'](_0x58dadf){const _0x421eeb=_0x23c7d1;var _0x22b137;const _0x6eae1b=this[_0x421eeb(0xdc)][_0x421eeb(0xcc)](_0xd815b9),_0x2857c6=(_0x22b137=_0x6eae1b[_0x421eeb(0x171)]())!=null?_0x22b137:[];if(_0x2857c6[_0x421eeb(0x22a)]===0x0)return;const _0x1adc79=[{'id':_0x421eeb(0x28e),'params':{'unitId':_0x58dadf['unitID'],'actions':null,'textRanges':_0x2857c6}}],_0x3d8c45=this[_0x421eeb(0x152)]['transformMutationsWithChangeset'](_0x58dadf,_0x1adc79);if(!_0x4a2341(_0x3d8c45))throw _0x3d8c45[_0x421eeb(0x328)];const _0x4ed8f3=_0x3d8c45[_0x421eeb(0x388)][0x0][_0x421eeb(0x16d)]['textRanges'];Array['isArray'](_0x4ed8f3)&&_0x4ed8f3[_0x421eeb(0x22a)]&&_0x6eae1b[_0x421eeb(0x21e)](_0x4ed8f3,!0x1);}};Xe=Er([us(0x0,_0x4dc04f(_0x22396d)),us(0x1,_0x1c29f3)],Xe);const Cr=new Set([_0x105f97['id']]);function ds(_0x3dbd62,_0x156a27,_0x60c807,_0x536176,_0x3258be){const _0x23bf3b=_0x23c7d1;var _0x3e3fb7,_0x57eb90,_0x5370b3,_0x4947f0;const _0x54f90d=[];for(const _0x47f8c5 of _0x3dbd62)if(Cr[_0x23bf3b(0x143)](_0x47f8c5['id'])){if(_0x54f90d[_0x23bf3b(0x22a)]>0x0)break;_0x54f90d[_0x23bf3b(0x3d1)](_0x47f8c5);break;}else _0x54f90d[_0x23bf3b(0x3d1)](_0x47f8c5);const _0x311a31=(_0x57eb90=(_0x3e3fb7=_0x3258be[_0x23bf3b(0x144)]())==null?void 0x0:_0x3e3fb7[_0x23bf3b(0x19d)])!=null?_0x57eb90:_0x23bf3b(0x119),_0x2f3cb3=(_0x4947f0=(_0x5370b3=_0x3258be[_0x23bf3b(0x144)]())==null?void 0x0:_0x5370b3[_0x23bf3b(0x19f)])!=null?_0x4947f0:_0x23bf3b(0x119);return{'changeset':{'unitID':_0x156a27,'type':_0x51595f(_0x60c807[_0x23bf3b(0x1d0)](_0x156a27)),'baseRev':_0x536176[_0x23bf3b(0x17d)](_0x156a27),'revision':0x0,'userID':_0x311a31,'memberID':_0x2f3cb3,'mutations':_0x54f90d},'pendingMutations':_0x3dbd62[_0x23bf3b(0xf8)](_0x54f90d[_0x23bf3b(0x22a)])};}function br(_0x3b6266,_0x58570e,_0x2c2766,_0xe8929d,_0x354dae){const _0x63d7cc=_0x23c7d1;var _0x35d212,_0x60a8d4,_0x4830df,_0x1b6dbb;const _0x3ca2b6=[_0x3b6266[_0x63d7cc(0x128)]((_0x38df95,_0x556ea0)=>{const _0x10420a=_0x63d7cc;var _0xcd6f1d;const {id:_0x1e2f63}=_0x38df95,{id:_0x56b22c,type:_0xfb179f}=_0x556ea0,_0x215705=(_0xcd6f1d=_0x38df95[_0x10420a(0x16d)])!=null?_0xcd6f1d:{'actions':null},_0x159e42=_0x556ea0[_0x10420a(0x16d)];if(_0x1e2f63&&_0x1e2f63!==_0x56b22c)throw new Error(_0x10420a(0x181)+_0x1e2f63+_0x10420a(0x3d2)+_0x56b22c+'.');return{..._0x38df95,'id':_0x56b22c,'type':_0xfb179f,'params':{'unitId':_0x159e42[_0x10420a(0x2f2)],'textRanges':_0x159e42[_0x10420a(0x36b)],'actions':_0x5577d7[_0x10420a(0x2bd)](_0x215705['actions'],_0x159e42[_0x10420a(0x1c0)])}};},{})],_0x111cbc=(_0x60a8d4=(_0x35d212=_0x354dae[_0x63d7cc(0x144)]())==null?void 0x0:_0x35d212[_0x63d7cc(0x19d)])!=null?_0x60a8d4:_0x63d7cc(0x119),_0x538171=(_0x1b6dbb=(_0x4830df=_0x354dae[_0x63d7cc(0x144)]())==null?void 0x0:_0x4830df[_0x63d7cc(0x19f)])!=null?_0x1b6dbb:'unknown';return{'changeset':{'unitID':_0x58570e,'type':_0x51595f(_0x2c2766['getUnitType'](_0x58570e)),'baseRev':_0xe8929d[_0x63d7cc(0x17d)](_0x58570e),'revision':0x0,'userID':_0x111cbc,'memberID':_0x538171,'mutations':_0x3ca2b6},'pendingMutations':[]};}function Gs(_0x172d83,_0xa8cfc7){const _0x5ac17b=_0x23c7d1,_0x83f2f5=new _0x4bcbbe(0x1);return setTimeout(()=>_0x83f2f5[_0x5ac17b(0x183)](_0xa8cfc7),_0x172d83),_0x83f2f5[_0x5ac17b(0x303)]()[_0x5ac17b(0x254)](_0xf57bcd(0x1));}const Tr={'id':_0x3fb9fa['id'],'type':_0x1e1816[_0x23c7d1(0x1d5)],'params':{}};var Rr=Object[_0x23c7d1(0x252)],Or=Object['getOwnPropertyDescriptor'],_e=(_0x456a9f,_0x196b7e,_0xa88e69,_0x3e6b41)=>{const _0x4739fe=_0x23c7d1;for(var _0x56d1ea=_0x3e6b41>0x1?void 0x0:_0x3e6b41?Or(_0x196b7e,_0xa88e69):_0x196b7e,_0xc8527d=_0x456a9f[_0x4739fe(0x22a)]-0x1,_0x5d524f;_0xc8527d>=0x0;_0xc8527d--)(_0x5d524f=_0x456a9f[_0xc8527d])&&(_0x56d1ea=(_0x3e6b41?_0x5d524f(_0x196b7e,_0xa88e69,_0x56d1ea):_0x5d524f(_0x56d1ea))||_0x56d1ea);return _0x3e6b41&&_0x56d1ea&&Rr(_0x196b7e,_0xa88e69,_0x56d1ea),_0x56d1ea;},f=(_0x47a862,_0x33e75b)=>(_0x55d58e,_0x3c657f)=>_0x33e75b(_0x55d58e,_0x3c657f,_0x47a862),P=(_0x4b20d7=>(_0x4b20d7[_0x23c7d1(0x1e5)]='not_collab',_0x4b20d7['SYNCED']=_0x23c7d1(0xe8),_0x4b20d7[_0x23c7d1(0x1a3)]=_0x23c7d1(0x3bc),_0x4b20d7[_0x23c7d1(0x151)]=_0x23c7d1(0x327),_0x4b20d7[_0x23c7d1(0x20b)]=_0x23c7d1(0x3a2),_0x4b20d7[_0x23c7d1(0x2d1)]='fetch_missing',_0x4b20d7[_0x23c7d1(0x322)]=_0x23c7d1(0x36d),_0x4b20d7[_0x23c7d1(0x346)]='offline',_0x4b20d7))(P||{});const Ys=0xea60;class ue{constructor(_0x44322e,_0x393e79,_0x3f367c,_0x7330be,_0x51234f,_0x5a3b3,_0x2ff3a5,_0x310c2d,_0x45524c){const _0x319b6d=_0x23c7d1;l(this,_0x319b6d(0x37e),null),l(this,_0x319b6d(0x3eb),[]),(this[_0x319b6d(0x347)]=_0x44322e,this[_0x319b6d(0x340)]=_0x393e79,this[_0x319b6d(0x310)]=_0x51234f,this['_commandService']=_0x5a3b3,this[_0x319b6d(0xd8)]=_0x2ff3a5,this['_revisionService']=_0x310c2d,this[_0x319b6d(0x2ee)]=_0x45524c,this[_0x319b6d(0x37e)]=_0x3f367c,this[_0x319b6d(0x3eb)]=_0x7330be);}['_checkMissing'](_0xf26a9d){const _0xa3aad4=_0x23c7d1,_0x167e4d=this['_revisionService']['getCurrentRevOfUnit'](this[_0xa3aad4(0x347)]);return _0xf26a9d[_0xa3aad4(0xc9)]>_0x167e4d+0x1?(this[_0xa3aad4(0x310)][_0xa3aad4(0x236)]({'from':_0x167e4d,'to':_0xf26a9d[_0xa3aad4(0xc9)]-0x1}),!0x0):!0x1;}[_0x23c7d1(0x34b)](_0x31d9b0){this['_undoRedoService']['transformUndoRedo'](this['unitID'],_0x31d9b0);}['_transformSelections'](_0x1d508d){const _0x5e21ba=_0x23c7d1;var _0x5f9ce4,_0x4c3ae6;(_0x4c3ae6=(_0x5f9ce4=this[_0x5e21ba(0x310)])['onTransformSelections'])==null||_0x4c3ae6[_0x5e21ba(0x385)](_0x5f9ce4,_0x1d508d);}[_0x23c7d1(0x298)](_0x399b55){const _0x687a3e=_0x23c7d1;var _0x79fb6c,_0x1e66a9;return(_0x1e66a9=(_0x79fb6c=this[_0x687a3e(0x310)])[_0x687a3e(0x2d0)])==null?void 0x0:_0x1e66a9[_0x687a3e(0x385)](_0x79fb6c,_0x399b55);}['_transformRemoteChangesetByIMECache'](_0x4c5ec2){const _0x1aa080=_0x23c7d1;var _0xc4d69c,_0x29c8f6,_0x563728;return(_0x563728=(_0x29c8f6=(_0xc4d69c=this[_0x1aa080(0x310)])[_0x1aa080(0x18e)])==null?void 0x0:_0x29c8f6[_0x1aa080(0x385)](_0xc4d69c,_0x4c5ec2))!=null?_0x563728:_0x4c5ec2;}['_syncEditingCollabCursor'](_0x4e0d6a){const _0x41bace=_0x23c7d1;var _0xdf5e4b,_0x3997a2;if(this[_0x41bace(0x340)]===k[_0x41bace(0x195)]){const {unitID:_0x575d7e,mutations:_0x105d92,memberID:_0x531c66}=_0x4e0d6a,_0x389a69=_0x105d92[0x0][_0x41bace(0x16d)][_0x41bace(0x36b)];Array[_0x41bace(0x1a0)](_0x389a69)&&_0x389a69[_0x41bace(0x22a)]>0x0&&((_0x3997a2=(_0xdf5e4b=this[_0x41bace(0x310)])[_0x41bace(0x1e2)])==null||_0x3997a2[_0x41bace(0x385)](_0xdf5e4b,{'unitID':_0x575d7e,'memberID':_0x531c66,'textRanges':_0x389a69}));}}[_0x23c7d1(0x134)](){const _0x5cca2e=_0x23c7d1;this[_0x5cca2e(0x2ee)][_0x5cca2e(0x209)](this['unitID'],this['type'],this[_0x5cca2e(0x37e)],this[_0x5cca2e(0x3eb)]);}[_0x23c7d1(0x206)](){const _0x1d494e=_0x23c7d1;return this[_0x1d494e(0x175)][_0x1d494e(0x17d)](this[_0x1d494e(0x347)]);}[_0x23c7d1(0x182)](){const _0x591ae0=_0x23c7d1;this[_0x591ae0(0x175)][_0x591ae0(0x112)](this[_0x591ae0(0x347)]);}['_executeRemoteChangeset'](_0x224df1){const _0x5352dd=_0x23c7d1;var _0x505ddd;const _0x30946f=this['_transformRemoteChangesetByIMECache'](_0x224df1),_0xab96be=_0x39a28b(_0x30946f[_0x5352dd(0x2aa)],this[_0x5352dd(0x309)],{'fromCollab':!0x0});if(!_0xab96be[_0x5352dd(0x1b5)])throw _0xab96be[_0x5352dd(0x328)]instanceof Error?_0xab96be['error']:new Error((_0x505ddd=_0xab96be['error'])!=null?_0x505ddd:_0x5352dd(0x263));this[_0x5352dd(0x298)](_0x30946f),this[_0x5352dd(0x34b)](_0x224df1),this[_0x5352dd(0x85)](_0x30946f),this[_0x5352dd(0x33a)](_0x30946f),this[_0x5352dd(0x182)]();}}let pe=class extends ue{constructor(_0x196f6e,_0xd38f7b,_0x554e92,_0x3f9371,_0x4fe27b,_0x578f20,_0x4406ca,_0x42350c,_0x4a983e,_0x4695d8){const _0x3d3cd1=_0x23c7d1;super(_0x196f6e,_0xd38f7b,null,[],_0x554e92,_0x42350c,_0x4406ca,_0x3f9371,_0x4fe27b),l(this,'status','synced'),(this['_injector']=_0x578f20,this[_0x3d3cd1(0x3e3)]=_0x4a983e,this[_0x3d3cd1(0x152)]=_0x4695d8);}[_0x23c7d1(0x18d)](_0xe288a6){const _0xa5f6ba=_0x23c7d1,_0x4134bd=this[_0xa5f6ba(0xdc)][_0xa5f6ba(0x1c8)](X,this['unitID'],this[_0xa5f6ba(0x340)],[_0xe288a6],this['_handler']);return _0x4134bd[_0xa5f6ba(0xd2)](),_0x4134bd[_0xa5f6ba(0x134)](),_0x4134bd;}[_0x23c7d1(0x10a)](_0x2210c2){const _0x35cc06=_0x23c7d1;if(this[_0x35cc06(0x313)](_0x2210c2))return this[_0x35cc06(0xdc)][_0x35cc06(0x1c8)](B,this[_0x35cc06(0x347)],this['type'],null,[],null,[_0x2210c2],this[_0x35cc06(0x310)]);try{const _0x40a31e=this[_0x35cc06(0x152)][_0x35cc06(0x2c0)](_0x2210c2,[Tr]);if(_0x4a2341(_0x40a31e)){const {c1Prime:_0x2c3dc2}=_0x40a31e;return this[_0x35cc06(0x19e)](_0x2c3dc2),this;}throw _0x40a31e[_0x35cc06(0x328)];}catch(_0x5aaa3e){return this[_0x35cc06(0x3e3)][_0x35cc06(0x328)](_0x5aaa3e),this[_0x35cc06(0x245)](!0x1);}}[_0x23c7d1(0x245)](_0x545c54){const _0x39a892=_0x23c7d1;return this[_0x39a892(0xdc)][_0x39a892(0x1c8)](ee,this[_0x39a892(0x347)],this[_0x39a892(0x340)],null,[],this[_0x39a892(0x310)],_0x545c54);}['onRemoteAck'](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x23c7d1(0x2e9)](){return this;}[_0x23c7d1(0x25d)](){const _0x4ab63d=_0x23c7d1;return this[_0x4ab63d(0xdc)][_0x4ab63d(0x1c8)](te,this[_0x4ab63d(0x347)],this[_0x4ab63d(0x340)],null,[],this[_0x4ab63d(0x310)]);}[_0x23c7d1(0x398)](){return this;}['resend'](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x23c7d1(0x2bf)](){const _0x3b99e9=_0x23c7d1,_0x22a206=this[_0x3b99e9(0x175)][_0x3b99e9(0x17d)](this[_0x3b99e9(0x347)]);return this['_handler'][_0x3b99e9(0x236)]({'from':_0x22a206,'to':0x0}),this[_0x3b99e9(0xdc)]['createInstance'](B,this[_0x3b99e9(0x347)],this['type'],null,[],null,[],this[_0x3b99e9(0x310)]);}};pe=_e([f(0x3,_0x4dc04f(_0x2fb629)),f(0x4,_0x4dc04f(w)),f(0x5,_0x4dc04f(_0x22396d)),f(0x6,_0x13d877),f(0x7,_0x45f63f),f(0x8,_0x20dcfc),f(0x9,_0x1c29f3)],pe);let X=class extends ue{constructor(_0x5218b4,_0x585935,_0x27de50,_0x2597c3,_0x2cf9fe,_0x53d5f0,_0x24f6bd,_0x32edc2,_0x3095cc,_0x392435,_0x4b735c,_0x4a08ed,_0x2b85a3,_0x2b2663){const _0xeb76be=_0x23c7d1;super(_0x5218b4,_0x585935,null,_0x27de50,_0x2597c3,_0x392435,_0x2b2663,_0x53d5f0,_0x24f6bd),l(this,'status','pending'),l(this,_0xeb76be(0x2b7),null),l(this,_0xeb76be(0x219),null),(this['_injector']=_0x2cf9fe,this[_0xeb76be(0x2da)]=_0x32edc2,this[_0xeb76be(0x3e3)]=_0x3095cc,this[_0xeb76be(0x3c0)]=_0x4b735c,this['_transformService']=_0x4a08ed,this['_univerInstanceService']=_0x2b85a3);}['appendMutation'](_0x2a4195){const _0x5ef1db=_0x23c7d1;return this[_0x5ef1db(0x3eb)][_0x5ef1db(0x3d1)](_0x2a4195),this[_0x5ef1db(0x134)](),this;}[_0x23c7d1(0x10a)](_0x4f86e9){const _0x153c74=_0x23c7d1;if(this['_checkMissing'](_0x4f86e9))return this[_0x153c74(0x124)](),this[_0x153c74(0xdc)][_0x153c74(0x1c8)](B,this[_0x153c74(0x347)],this[_0x153c74(0x340)],null,this[_0x153c74(0x3eb)],null,[_0x4f86e9],this[_0x153c74(0x310)]);try{const _0x40401b=this[_0x153c74(0x152)]['transformMutationsWithChangeset'](_0x4f86e9,this['_pendingMutations']);if(_0x4a2341(_0x40401b)){const {c1Prime:_0x36fccb,m2Prime:_0x1220ce}=_0x40401b;this['_executeRemoteChangeset'](_0x36fccb);const _0x40750b=this['_injector'][_0x153c74(0x1c8)](X,this[_0x153c74(0x347)],this[_0x153c74(0x340)],_0x1220ce,this[_0x153c74(0x310)]);return this[_0x153c74(0x124)](),_0x40750b[_0x153c74(0xd2)](this['_scheduleTimestamp']?Math[_0x153c74(0x368)](0x0,new Date()['getTime']()-this[_0x153c74(0x2b7)]):this['_getSendChangesetTimeout']()),_0x40750b;}throw _0x40401b[_0x153c74(0x328)];}catch(_0x54ae62){return this[_0x153c74(0x3e3)][_0x153c74(0x328)](_0x54ae62),this[_0x153c74(0x245)](!0x1);}}[_0x23c7d1(0x12c)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x4d03ff=_0x23c7d1;throw new Error(_0x4d03ff(0x1d6));}[_0x23c7d1(0x2e9)](){return this;}[_0x23c7d1(0x25d)](){const _0x2783b3=_0x23c7d1;return this[_0x2783b3(0x124)](),this[_0x2783b3(0xdc)]['createInstance'](te,this[_0x2783b3(0x347)],this[_0x2783b3(0x340)],null,this[_0x2783b3(0x3eb)],this[_0x2783b3(0x310)]);}[_0x23c7d1(0x398)](){return this;}['_schedule'](_0x1968cf){const _0x4639f5=_0x23c7d1,_0x86c445=_0x1968cf!=null?_0x1968cf:this[_0x4639f5(0x118)]();this[_0x4639f5(0x2b7)]=new Date()[_0x4639f5(0x11a)](),this['_sendingTimer']=window[_0x4639f5(0x3e2)](()=>{const _0x4147e5=_0x4639f5;this['_clearScheduledTask']();let _0x3d0e6d=null;switch(this['type']){case k[_0x4147e5(0x3de)]:{_0x3d0e6d=ds(this[_0x4147e5(0x3eb)],this[_0x4147e5(0x347)],this[_0x4147e5(0x21f)],this[_0x4147e5(0x175)],this[_0x4147e5(0x2da)]);break;}case k[_0x4147e5(0x195)]:{this[_0x4147e5(0x3eb)][_0x4147e5(0x352)](_0x26e0f8=>_0x26e0f8['id']===_0x1cda85['id'])?_0x3d0e6d=br(this['_pendingMutations'],this['unitID'],this[_0x4147e5(0x21f)],this[_0x4147e5(0x175)],this['_memberService']):_0x3d0e6d=ds(this[_0x4147e5(0x3eb)],this[_0x4147e5(0x347)],this['_univerInstanceService'],this[_0x4147e5(0x175)],this[_0x4147e5(0x2da)]);break;}default:throw new Error(_0x4147e5(0x165)+this['type']+_0x4147e5(0x27c));}const {changeset:_0x131dbe,pendingMutations:_0x418be8}=_0x3d0e6d;this['_handler'][_0x4147e5(0x1f9)](_0x131dbe);const _0x30800d=_0x418be8[_0x4147e5(0x22a)]?this[_0x4147e5(0xdc)][_0x4147e5(0x1c8)](q,this['unitID'],this[_0x4147e5(0x340)],_0x131dbe,_0x418be8,this['_handler'],void 0x0):this[_0x4147e5(0xdc)][_0x4147e5(0x1c8)](Q,this[_0x4147e5(0x347)],this[_0x4147e5(0x340)],_0x131dbe,this[_0x4147e5(0x310)]);_0x30800d[_0x4147e5(0x134)](),this[_0x4147e5(0x310)][_0x4147e5(0x2e7)](this,_0x30800d);},_0x86c445);}[_0x23c7d1(0x118)](){const _0x2634dd=_0x23c7d1;var _0x42a0fe;const _0x11b3c8=this['_configService'][_0x2634dd(0x30d)]($);return(_0x42a0fe=_0x11b3c8==null?void 0x0:_0x11b3c8['sendChangesetTimeout'])!=null?_0x42a0fe:bn;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x47b9fc=_0x23c7d1;this['_sendingTimer']!=null&&(clearTimeout(this[_0x47b9fc(0x219)]),this[_0x47b9fc(0x219)]=null);}[_0x23c7d1(0x245)](_0x30a6b6){const _0x3609c4=_0x23c7d1;return this[_0x3609c4(0x124)](),this[_0x3609c4(0xdc)][_0x3609c4(0x1c8)](ee,this['unitID'],this[_0x3609c4(0x340)],null,this[_0x3609c4(0x3eb)],this[_0x3609c4(0x310)],_0x30a6b6);}};X=_e([f(0x4,_0x4dc04f(_0x22396d)),f(0x5,_0x4dc04f(_0x2fb629)),f(0x6,_0x4dc04f(w)),f(0x7,_0x4dc04f(ce)),f(0x8,_0x20dcfc),f(0x9,_0x45f63f),f(0xa,_0x5ae707),f(0xb,_0x1c29f3),f(0xc,_0x9f62da),f(0xd,_0x13d877)],X);let Q=class extends ue{constructor(_0x1f7194,_0x294189,_0x309904,_0x5ee550,_0x5395f0,_0x5cd0aa,_0xaec26b,_0x337bfc,_0x29880a,_0x3f7096,_0x5ae47c){const _0x2b5891=_0x23c7d1;super(_0x1f7194,_0x294189,_0x309904,[],_0x5ee550,_0x337bfc,_0x5ae47c,_0x5cd0aa,_0xaec26b),l(this,_0x2b5891(0x371),_0x2b5891(0x327)),l(this,'_resendTimeout',0x0),l(this,_0x2b5891(0x108)),l(this,_0x2b5891(0x17a)),(this[_0x2b5891(0xdc)]=_0x5395f0,this['_logService']=_0x29880a,this[_0x2b5891(0x152)]=_0x3f7096);}[_0x23c7d1(0x18d)](_0x45b10e){const _0x3fccf9=_0x23c7d1;this[_0x3fccf9(0x124)]();const _0x2524d9=this[_0x3fccf9(0xdc)][_0x3fccf9(0x1c8)](q,this['unitID'],this['type'],this[_0x3fccf9(0x37e)],[_0x45b10e],this[_0x3fccf9(0x310)],this['_resendTimer']);return _0x2524d9[_0x3fccf9(0x134)](),_0x2524d9;}[_0x23c7d1(0x10a)](_0x2015b0){const _0xc44d0c=_0x23c7d1;if(this[_0xc44d0c(0x313)](_0x2015b0))return this['_clearScheduledTask'](),this[_0xc44d0c(0xdc)][_0xc44d0c(0x1c8)](B,this[_0xc44d0c(0x347)],this[_0xc44d0c(0x340)],this[_0xc44d0c(0x37e)],[],null,[_0x2015b0],this[_0xc44d0c(0x310)]);try{const _0x2645e4=this[_0xc44d0c(0x152)][_0xc44d0c(0x334)]([_0x2015b0],[this[_0xc44d0c(0x37e)]],!0x1);if(_0x275c76(_0x2645e4)){const {c1Prime:_0x169fa1,c2Prime:_0x285219}=_0x2645e4;this[_0xc44d0c(0x19e)](_0x169fa1[0x0]),_0x285219[0x0][_0xc44d0c(0xfd)]=this[_0xc44d0c(0x206)](),this[_0xc44d0c(0x124)]();const _0x492d50=this[_0xc44d0c(0xdc)][_0xc44d0c(0x1c8)](Q,this['unitID'],this[_0xc44d0c(0x340)],_0x285219[0x0],this[_0xc44d0c(0x310)]);return _0x492d50[_0xc44d0c(0x134)](),_0x492d50;}return this[_0xc44d0c(0x245)](!0x1);}catch(_0x42b8e9){return this['_logService'][_0xc44d0c(0x328)](_0x42b8e9),this['_onConflict'](!0x1);}}[_0x23c7d1(0x12c)](_0x34c0bb){const _0x35b990=_0x23c7d1;this[_0x35b990(0x124)]();const _0x5d974d=this[_0x35b990(0x175)][_0x35b990(0x17d)](this[_0x35b990(0x347)]);if(_0x34c0bb[_0x35b990(0xc9)]<_0x5d974d-0x1)return this;if(this[_0x35b990(0x313)](_0x34c0bb))return this[_0x35b990(0xdc)]['createInstance'](B,this[_0x35b990(0x347)],this[_0x35b990(0x340)],null,[],this[_0x35b990(0x37e)],[],this[_0x35b990(0x310)]);this['_incrementRevisionNumber']();const _0x3b35b5=this[_0x35b990(0xdc)][_0x35b990(0x1c8)](pe,this[_0x35b990(0x347)],this[_0x35b990(0x340)],this[_0x35b990(0x310)]);return _0x3b35b5['_updateLocalCache'](),_0x3b35b5;}[_0x23c7d1(0x300)](_0x3a1c6d){const _0x5d6abe=_0x23c7d1;return this[_0x5d6abe(0x245)](!!(_0x3a1c6d!=null&&_0x3a1c6d[_0x5d6abe(0x1b4)]));}[_0x23c7d1(0x2e9)](_0xb35dd2){const _0x1b6a98=_0x23c7d1;return this[_0x1b6a98(0x350)]>Ys?this['toggleOffline']():(this['_resendTimer']=Gs(this[_0x1b6a98(0x350)],{'timeout':this[_0x1b6a98(0x350)],'reqId':_0xb35dd2['reqId']}),this[_0x1b6a98(0x17a)]=this[_0x1b6a98(0x108)][_0x1b6a98(0x7f)](({reqId:_0x50ae1c,timeout:_0x5961dd})=>{const _0x3c8062=_0x1b6a98;this[_0x3c8062(0x3b7)](_0x50ae1c,_0x5961dd);}),this);}[_0x23c7d1(0x25d)](){const _0x3fc465=_0x23c7d1;return this[_0x3fc465(0x124)](),this[_0x3fc465(0xdc)][_0x3fc465(0x1c8)](te,this['unitID'],this[_0x3fc465(0x340)],this[_0x3fc465(0x37e)],[],this['_handler']);}['toggleOnline'](){return this;}[_0x23c7d1(0x2b4)](){const _0x394a77=_0x23c7d1;this[_0x394a77(0x310)][_0x394a77(0x1f9)](this['_awaitingChangeset']);}[_0x23c7d1(0x245)](_0x322beb){const _0x454203=_0x23c7d1;return this['_clearScheduledTask'](),this[_0x454203(0xdc)][_0x454203(0x1c8)](ee,this[_0x454203(0x347)],this[_0x454203(0x340)],this[_0x454203(0x37e)],[],this[_0x454203(0x310)],_0x322beb);}[_0x23c7d1(0x3b7)](_0xcb1ab0,_0x3c2149){const _0x440738=_0x23c7d1;var _0x3551d0;_0xcb1ab0===((_0x3551d0=this[_0x440738(0x37e)])==null?void 0x0:_0x3551d0['reqId'])&&(this[_0x440738(0x2b4)](),this[_0x440738(0x350)]=_0x3c2149===0x0?0x3e8:_0x3c2149*0x2);}[_0x23c7d1(0x124)](){const _0x5a603b=_0x23c7d1;var _0x5d9112;(_0x5d9112=this[_0x5a603b(0x17a)])==null||_0x5d9112[_0x5a603b(0x31f)](),this[_0x5a603b(0x350)]=0x0;}};Q=_e([f(0x4,_0x4dc04f(_0x22396d)),f(0x5,_0x4dc04f(_0x2fb629)),f(0x6,_0x4dc04f(w)),f(0x7,_0x45f63f),f(0x8,_0x20dcfc),f(0x9,_0x1c29f3),f(0xa,_0x13d877)],Q);let q=class extends ue{constructor(_0x211658,_0x52fec4,_0x59cae8,_0x2b1be6,_0x3121f8,_0x54ed83,_0x108aec,_0x4ae88c,_0x4d9bcf,_0x23c53f,_0x4ead75,_0x2e3098,_0x22c4a5){const _0x38c7ef=_0x23c7d1;super(_0x211658,_0x52fec4,_0x59cae8,_0x2b1be6,_0x3121f8,_0x23c53f,_0x22c4a5,_0x4ae88c,_0x4d9bcf),l(this,_0x38c7ef(0x371),'awaiting_with_pending'),l(this,_0x38c7ef(0x350),0x0),l(this,_0x38c7ef(0x108)),l(this,'_sender'),(this[_0x38c7ef(0xdc)]=_0x108aec,this['_logService']=_0x4ead75,this[_0x38c7ef(0x152)]=_0x2e3098,_0x54ed83&&(this['_resendTimer']=_0x54ed83,this[_0x38c7ef(0x17a)]=this['_resendTimer']['subscribe'](({reqId:_0xb219ba,timeout:_0x5aa07b})=>{const _0x563b49=_0x38c7ef;this[_0x563b49(0x3b7)](_0xb219ba,_0x5aa07b);})));}[_0x23c7d1(0x18d)](_0x4f42ce){return this['_pendingMutations']['push'](_0x4f42ce),this;}[_0x23c7d1(0x10a)](_0x29ba2e){const _0x5bae1c=_0x23c7d1;if(this[_0x5bae1c(0x313)](_0x29ba2e))return this[_0x5bae1c(0x124)](),this[_0x5bae1c(0xdc)][_0x5bae1c(0x1c8)](B,this[_0x5bae1c(0x347)],this['type'],this[_0x5bae1c(0x37e)],this[_0x5bae1c(0x3eb)],null,[_0x29ba2e],this[_0x5bae1c(0x310)]);try{const _0x3f1531=this[_0x5bae1c(0x152)][_0x5bae1c(0x334)]([_0x29ba2e],[this[_0x5bae1c(0x37e)]],!0x1);if(_0x275c76(_0x3f1531)){const {c1Prime:_0x262da1,c2Prime:_0x40d598}=_0x3f1531,_0x3fd40a=this[_0x5bae1c(0x152)][_0x5bae1c(0x2c0)](_0x262da1[0x0],this[_0x5bae1c(0x3eb)]);if(_0x4a2341(_0x3fd40a)){const {c1Prime:_0x17f3f3,m2Prime:_0x52717f}=_0x3fd40a;return this['_executeRemoteChangeset'](_0x17f3f3),_0x40d598[0x0][_0x5bae1c(0xfd)]=this[_0x5bae1c(0x206)](),this[_0x5bae1c(0x124)](),this[_0x5bae1c(0xdc)][_0x5bae1c(0x1c8)](q,this[_0x5bae1c(0x347)],this[_0x5bae1c(0x340)],_0x40d598[0x0],_0x52717f,this[_0x5bae1c(0x310)],void 0x0);}throw _0x3fd40a[_0x5bae1c(0x328)];}throw _0x3f1531[_0x5bae1c(0x328)];}catch(_0x275832){return this['_logService'][_0x5bae1c(0x328)](_0x275832),this[_0x5bae1c(0x245)](!0x1);}}[_0x23c7d1(0x12c)](_0x506207){const _0x569b36=_0x23c7d1;if(this[_0x569b36(0x124)](),this[_0x569b36(0x313)](_0x506207))return this[_0x569b36(0xdc)]['createInstance'](B,this[_0x569b36(0x347)],this[_0x569b36(0x340)],null,this['_pendingMutations'],this[_0x569b36(0x37e)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x202d86=this[_0x569b36(0xdc)][_0x569b36(0x1c8)](X,this['unitID'],this[_0x569b36(0x340)],this[_0x569b36(0x3eb)],this[_0x569b36(0x310)]);return _0x202d86[_0x569b36(0xd2)](),_0x202d86[_0x569b36(0x134)](),_0x202d86;}[_0x23c7d1(0x300)](_0x4c62ad){const _0xd0cb5b=_0x23c7d1;return this[_0xd0cb5b(0x245)](!!(_0x4c62ad!=null&&_0x4c62ad[_0xd0cb5b(0x1b4)]));}['onRemoteRetry'](_0x205ebc){const _0x44f185=_0x23c7d1;return this[_0x44f185(0x350)]>Ys?this[_0x44f185(0x25d)]():(this[_0x44f185(0x108)]=Gs(this[_0x44f185(0x350)],{'timeout':this['_resendTimeout'],'reqId':_0x205ebc[_0x44f185(0x345)]}),this[_0x44f185(0x17a)]=this['_resendTimer'][_0x44f185(0x7f)](({reqId:_0x537de8,timeout:_0x13b147})=>{const _0x19c6e0=_0x44f185;this[_0x19c6e0(0x3b7)](_0x537de8,_0x13b147);}),this);}['toggleOffline'](){const _0x213396=_0x23c7d1;return this[_0x213396(0x124)](),this[_0x213396(0xdc)]['createInstance'](te,this[_0x213396(0x347)],this[_0x213396(0x340)],this[_0x213396(0x37e)],this[_0x213396(0x3eb)],this[_0x213396(0x310)]);}[_0x23c7d1(0x398)](){return this;}[_0x23c7d1(0x2b4)](){const _0x777bc0=_0x23c7d1;this[_0x777bc0(0x310)][_0x777bc0(0x1f9)](this[_0x777bc0(0x37e)]);}[_0x23c7d1(0x245)](_0x517555){const _0x345a61=_0x23c7d1;return this[_0x345a61(0x124)](),this['_injector']['createInstance'](ee,this['unitID'],this[_0x345a61(0x340)],null,this[_0x345a61(0x3eb)],this[_0x345a61(0x310)],_0x517555);}['_resendWithTimeout'](_0x2bca7b,_0x130466){const _0x58d16b=_0x23c7d1;var _0x1107c4;_0x2bca7b===((_0x1107c4=this[_0x58d16b(0x37e)])==null?void 0x0:_0x1107c4[_0x58d16b(0x345)])&&(this[_0x58d16b(0x2b4)](),this[_0x58d16b(0x350)]=_0x130466===0x0?0x3e8:_0x130466*0x2);}[_0x23c7d1(0x124)](){const _0x130577=_0x23c7d1;var _0x1126f6;(_0x1126f6=this[_0x130577(0x17a)])==null||_0x1126f6[_0x130577(0x31f)](),this[_0x130577(0x350)]=0x0;}};q=_e([f(0x6,_0x4dc04f(_0x22396d)),f(0x7,_0x4dc04f(_0x2fb629)),f(0x8,_0x4dc04f(w)),f(0x9,_0x45f63f),f(0xa,_0x20dcfc),f(0xb,_0x1c29f3),f(0xc,_0x13d877)],q);let ee=class extends ue{constructor(_0x4958cb,_0x3a9d72,_0x20900c,_0x447a95,_0x165b00,_0x498135=!0x1,_0x52ebdb,_0xe07b05,_0x3373d1,_0x4828bf,_0x1878c8,_0x1cac53,_0x5f1c17){const _0x309597=_0x23c7d1;super(_0x4958cb,_0x3a9d72,_0x20900c,_0x447a95,_0x165b00,_0xe07b05,_0x3373d1,_0x1878c8,_0x4828bf),l(this,_0x309597(0x371),_0x309597(0x36d)),(this[_0x309597(0x311)]=_0x498135,this[_0x309597(0x3d4)]=_0x52ebdb,this[_0x309597(0x307)]=_0x1cac53,this[_0x309597(0x3f1)]=_0x5f1c17,this[_0x309597(0x1f8)](),this[_0x309597(0x156)](),this[_0x309597(0x244)]());}[_0x23c7d1(0x18d)](){return this;}[_0x23c7d1(0x10a)](){return this;}[_0x23c7d1(0x12c)](){return this;}[_0x23c7d1(0x300)](){return this;}[_0x23c7d1(0x2e9)](){return this;}[_0x23c7d1(0x25d)](){return this;}[_0x23c7d1(0x398)](){return this;}[_0x23c7d1(0x2b4)](){const _0xecd890=_0x23c7d1;throw new Error(_0xecd890(0x35d));}[_0x23c7d1(0x156)](){const _0x51043a=_0x23c7d1;this[_0x51043a(0x2ee)]['updateOfflineData'](this[_0x51043a(0x347)],this['type'],null,[]);}[_0x23c7d1(0x1f8)](){const _0xbf49c4=_0x23c7d1;this['_isPermissionRej']?this[_0xbf49c4(0x3f1)][_0xbf49c4(0x3cf)]({'title':this[_0xbf49c4(0x307)]['t'](_0xbf49c4(0x2b3)),'content':this[_0xbf49c4(0x307)]['t'](_0xbf49c4(0x384)),'type':_0xbf49c4(0x328),'duration':0x0}):this[_0xbf49c4(0x3f1)][_0xbf49c4(0x3cf)]({'title':this[_0xbf49c4(0x307)]['t'](_0xbf49c4(0x267)),'content':this[_0xbf49c4(0x307)]['t'](_0xbf49c4(0x379)),'type':'error','duration':0x0});}['_disableEditing'](){const _0x252ec9=_0x23c7d1;this[_0x252ec9(0x3d4)]['updatePermissionPoint'](new _0x957589(this[_0x252ec9(0x347)])['id'],!0x1);}};ee=_e([f(0x6,_0x4dc04f(_0x241914)),f(0x7,_0x45f63f),f(0x8,_0x13d877),f(0x9,_0x4dc04f(w)),f(0xa,_0x4dc04f(_0x2fb629)),f(0xb,_0x4dc04f(_0x19fdc8)),f(0xc,_0x3c8540)],ee);let te=class extends ue{constructor(_0x15272b,_0x544d8e,_0x4f4746,_0x19df54,_0x184827,_0x1b7737,_0x239ab8,_0x2ed7a2,_0x3003ee,_0x54ab40){const _0x1a9111=_0x23c7d1;super(_0x15272b,_0x544d8e,_0x4f4746,_0x19df54,_0x184827,_0x3003ee,_0x54ab40,_0x239ab8,_0x2ed7a2),l(this,_0x1a9111(0x371),_0x1a9111(0x3f8)),this[_0x1a9111(0xdc)]=_0x1b7737;}[_0x23c7d1(0x18d)](_0x21e5ef){const _0x5e4db0=_0x23c7d1;return this['_pendingMutations'][_0x5e4db0(0x3d1)](_0x21e5ef),this[_0x5e4db0(0x134)](),this;}['onRemoteChangeset'](_0x263fb8){const _0x2ae891=_0x23c7d1;throw new Error(_0x2ae891(0x31d));}['onRemoteAck'](){const _0x1e3bb0=_0x23c7d1;throw new Error(_0x1e3bb0(0x104));}[_0x23c7d1(0x300)](){const _0x3d04f0=_0x23c7d1;throw new Error(_0x3d04f0(0x84));}[_0x23c7d1(0x2e9)](){return this;}[_0x23c7d1(0x25d)](){return this;}[_0x23c7d1(0x398)](){const _0x4f8f78=_0x23c7d1,{_injector:_0x6d74a3,_pendingMutations:_0x4290c4,_awaitingChangeset:_0xa5e14c,unitID:_0x2cbd3e,_handler:_0x5559d2,type:_0x315b75}=this,_0x28f669=Ks(_0x6d74a3,_0x2cbd3e,_0x315b75,_0xa5e14c,_0x4290c4,_0x5559d2);return _0x28f669 instanceof X?_0x28f669[_0x4f8f78(0xd2)]():(_0x28f669 instanceof q||_0x28f669 instanceof Q)&&_0x28f669['resend'](),_0x28f669;}[_0x23c7d1(0x2b4)](){const _0x1c1d87=_0x23c7d1;throw new Error(_0x1c1d87(0x15f));}};te=_e([f(0x5,_0x4dc04f(_0x22396d)),f(0x6,_0x4dc04f(_0x2fb629)),f(0x7,_0x4dc04f(w)),f(0x8,_0x45f63f),f(0x9,_0x13d877)],te);let B=class extends ue{constructor(_0x53c7ca,_0x4485ea,_0x9b021a,_0xcde937,_0x5241c4,_0x6f84ea,_0x2ddefa,_0x40539d,_0x49b258,_0x2a7964,_0x557694,_0x33b213,_0x309b8d,_0x2fdfd8){const _0x35ccd8=_0x23c7d1;super(_0x53c7ca,_0x4485ea,_0x9b021a,_0xcde937,_0x2ddefa,_0x33b213,_0x309b8d,_0x49b258,_0x2a7964),l(this,_0x35ccd8(0x371),_0x35ccd8(0x2ff)),(this[_0x35ccd8(0x289)]=_0x5241c4,this[_0x35ccd8(0x3cb)]=_0x6f84ea,this['_injector']=_0x40539d,this[_0x35ccd8(0x3e3)]=_0x557694,this[_0x35ccd8(0x152)]=_0x2fdfd8);}[_0x23c7d1(0x1eb)](_0x77f0a4){const _0xffa770=_0x23c7d1;try{const _0x372723=[..._0x77f0a4,...this['_queuedRemoteChangesets']],_0x56f31b=[this[_0xffa770(0x37e)]||this['_acknowledgedAwaitingChangeset']]['filter'](_0x3bbfb5=>!!_0x3bbfb5);let _0x4b42d7,_0x174aba;if(_0x56f31b[_0xffa770(0x22a)]){const _0x390eda=this[_0xffa770(0x152)][_0xffa770(0x334)](_0x372723,_0x56f31b,!0x1);if(!_0x275c76(_0x390eda))throw _0x390eda[_0xffa770(0x328)];_0x4b42d7=_0x390eda['c1Prime'],_0x174aba=_0x390eda['c2Prime'];}else _0x4b42d7=_0x372723,_0x174aba=[];let _0x572704=this[_0xffa770(0x3eb)];_0x4b42d7[_0xffa770(0x28d)](_0x2bf0b3=>{const _0x539f1b=_0xffa770;let _0x12ca01;if(_0x572704[_0x539f1b(0x22a)]){const _0x273e65=this[_0x539f1b(0x152)][_0x539f1b(0x2c0)](_0x2bf0b3,_0x572704);if(!_0x4a2341(_0x273e65))throw _0x273e65[_0x539f1b(0x328)];_0x12ca01=_0x273e65['c1Prime'],_0x572704=_0x273e65[_0x539f1b(0x388)];}else _0x12ca01=_0x2bf0b3;this[_0x539f1b(0x19e)](_0x12ca01);}),this['_acknowledgedAwaitingChangeset']&&this[_0xffa770(0x182)](),this[_0xffa770(0x37e)]&&_0x174aba[_0xffa770(0x22a)]&&(_0x174aba[0x0][_0xffa770(0xfd)]=this['_getCurrentRevision']());let _0x1c8c8b;if(this[_0xffa770(0x37e)]&&_0x572704[_0xffa770(0x22a)]!==0x0)_0x1c8c8b=this[_0xffa770(0xdc)][_0xffa770(0x1c8)](q,this[_0xffa770(0x347)],this[_0xffa770(0x340)],_0x174aba[0x0],_0x572704,this['_handler'],void 0x0);else{if(this['_awaitingChangeset']&&_0x572704['length']===0x0)_0x174aba[0x0][_0xffa770(0xfd)]=this[_0xffa770(0x206)](),_0x1c8c8b=this['_injector'][_0xffa770(0x1c8)](Q,this[_0xffa770(0x347)],this['type'],_0x174aba[0x0],this[_0xffa770(0x310)]);else{if(_0x572704[_0xffa770(0x22a)]!==0x0){const _0x3f4c4e=this['_injector'][_0xffa770(0x1c8)](X,this['unitID'],this[_0xffa770(0x340)],_0x572704,this[_0xffa770(0x310)]);_0x3f4c4e[_0xffa770(0xd2)](),_0x1c8c8b=_0x3f4c4e;}else _0x1c8c8b=this['_injector'][_0xffa770(0x1c8)](pe,this['unitID'],this[_0xffa770(0x340)],this['_handler']);}}return _0x1c8c8b[_0xffa770(0x134)](),_0x1c8c8b;}catch(_0x4f711e){return this['_logService'][_0xffa770(0x328)](_0xffa770(0x227),_0xffa770(0x20d),_0x4f711e),this[_0xffa770(0xdc)]['createInstance'](ee,this[_0xffa770(0x347)],this[_0xffa770(0x340)],this[_0xffa770(0x37e)],this[_0xffa770(0x3eb)],this[_0xffa770(0x310)],!0x1);}}['resend'](){const _0x51e890=_0x23c7d1;throw new Error(_0x51e890(0x338));}[_0x23c7d1(0x18d)](_0x293b20){const _0x3b4fa9=_0x23c7d1;return this[_0x3b4fa9(0x3eb)][_0x3b4fa9(0x3d1)](_0x293b20),this;}['onRemoteChangeset'](_0x13076b){const _0xdb7645=_0x23c7d1;return this[_0xdb7645(0x3cb)][_0xdb7645(0x3d1)](_0x13076b),this;}[_0x23c7d1(0x12c)](_0x44dd37){const _0x1a0da9=_0x23c7d1;if(this[_0x1a0da9(0x37e)])return this[_0x1a0da9(0x289)]=this['_awaitingChangeset'],this['_awaitingChangeset']=null,this;throw new Error(_0x1a0da9(0x13f));}[_0x23c7d1(0x300)](_0x47ec7b){const _0x5e0d5b=_0x23c7d1;return this[_0x5e0d5b(0x245)](!!(_0x47ec7b!=null&&_0x47ec7b[_0x5e0d5b(0x1b4)]));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x41989d=_0x23c7d1;return this[_0x41989d(0xdc)][_0x41989d(0x1c8)](te,this[_0x41989d(0x347)],this['type'],this[_0x41989d(0x37e)],this[_0x41989d(0x3eb)],this[_0x41989d(0x310)]);}[_0x23c7d1(0x398)](){return this;}['_onConflict'](_0x11cfac){const _0x14fc18=_0x23c7d1;return this[_0x14fc18(0xdc)][_0x14fc18(0x1c8)](ee,this['unitID'],this[_0x14fc18(0x340)],this[_0x14fc18(0x37e)],this[_0x14fc18(0x3eb)],this['_handler'],_0x11cfac);}};B=_e([f(0x7,_0x4dc04f(_0x22396d)),f(0x8,_0x4dc04f(_0x2fb629)),f(0x9,_0x4dc04f(w)),f(0xa,_0x20dcfc),f(0xb,_0x45f63f),f(0xc,_0x13d877),f(0xd,_0x1c29f3)],B);function Ks(_0x43689a,_0x204ed7,_0x3b1adb,_0x3f887f,_0x4ecbed,_0x14da45){const _0x1ea182=_0x23c7d1;return _0x3f887f&&_0x4ecbed[_0x1ea182(0x22a)]?_0x43689a['createInstance'](q,_0x204ed7,_0x3b1adb,_0x3f887f,_0x4ecbed,_0x14da45,void 0x0):_0x3f887f?_0x43689a[_0x1ea182(0x1c8)](Q,_0x204ed7,_0x3b1adb,_0x3f887f,_0x14da45):_0x4ecbed[_0x1ea182(0x22a)]?_0x43689a[_0x1ea182(0x1c8)](X,_0x204ed7,_0x3b1adb,_0x4ecbed,_0x14da45):_0x43689a['createInstance'](pe,_0x204ed7,_0x3b1adb,_0x14da45);}var Dr=Object[_0x23c7d1(0x252)],wr=Object[_0x23c7d1(0x113)],Wt=(_0x40fe5f,_0x26c90c,_0x1c6945,_0xc79166)=>{const _0x477516=_0x23c7d1;for(var _0x397050=_0xc79166>0x1?void 0x0:_0xc79166?wr(_0x26c90c,_0x1c6945):_0x26c90c,_0x361bb9=_0x40fe5f[_0x477516(0x22a)]-0x1,_0x317559;_0x361bb9>=0x0;_0x361bb9--)(_0x317559=_0x40fe5f[_0x361bb9])&&(_0x397050=(_0xc79166?_0x317559(_0x26c90c,_0x1c6945,_0x397050):_0x317559(_0x397050))||_0x397050);return _0xc79166&&_0x397050&&Dr(_0x26c90c,_0x1c6945,_0x397050),_0x397050;},p=(_0x325298,_0x3a7a1a)=>(_0x53ba3d,_0x2576f9)=>_0x3a7a1a(_0x53ba3d,_0x2576f9,_0x325298);let qe=class extends _0x55967c{constructor(_0x2483cb,_0x375e96,_0x15e2b9,_0x51ff05,_0x47d855,_0x322039,_0x48d48f,_0x2c69c4,_0x129b02,_0x3a2ddd,_0x99e654,_0x3e401f,_0x5d3c7d){const _0x3c543a=_0x23c7d1;super(),l(this,_0x3c543a(0x3c8),new _0x4a4faf(null)),l(this,_0x3c543a(0x8d),this['_state$'][_0x3c543a(0x303)]()),l(this,_0x3c543a(0x2ab)),l(this,_0x3c543a(0x2cf),!0x1),l(this,_0x3c543a(0x308),''),l(this,_0x3c543a(0x222),0x0),l(this,_0x3c543a(0x3e5),this['state$'][_0x3c543a(0x254)](_0x4780de(_0x5bd011=>_0x5bd011?_0x5bd011['status']:P[_0x3c543a(0x346)]),_0x25be7a(0x1))),l(this,_0x3c543a(0x246),!0x1),l(this,_0x3c543a(0x2c5),[]),(this[_0x3c543a(0x347)]=_0x2483cb,this[_0x3c543a(0x18f)]=_0x375e96,this[_0x3c543a(0x1ce)]=_0x15e2b9,this['_injector']=_0x51ff05,this[_0x3c543a(0x2ee)]=_0x47d855,this[_0x3c543a(0x34e)]=_0x322039,this['_localeService']=_0x48d48f,this['_revisionService']=_0x2c69c4,this['_logService']=_0x129b02,this['_commandService']=_0x3a2ddd,this[_0x3c543a(0x39a)]=_0x99e654,this[_0x3c543a(0x3d4)]=_0x3e401f,this[_0x3c543a(0x2b6)]=_0x5d3c7d);}get['state'](){const _0xc23a23=_0x23c7d1;return this[_0xc23a23(0x2ab)];}async[_0x23c7d1(0x2b8)](){const _0x198152=_0x23c7d1;if(this[_0x198152(0xf7)])throw new Error(_0x198152(0x22b));await this['_init']();}['pauseCollaboration'](){const _0x477fa8=_0x23c7d1;return this[_0x477fa8(0x2cf)]=!0x0,_0x546354(()=>{const _0x477f4a=_0x477fa8;this[_0x477f4a(0x2cf)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x1fa83e){const _0x501023=_0x23c7d1;this[_0x501023(0x2ab)]=_0x1fa83e,this[_0x501023(0x3c8)]['next'](_0x1fa83e);}async['_init'](){const _0x3dde9c=_0x23c7d1;var _0x31cdfb;this['_updateState'](await this[_0x3dde9c(0xff)]()),this['_singleActiveUnitService']&&((_0x31cdfb=this[_0x3dde9c(0x2b6)])==null||_0x31cdfb['editingUnit'](this[_0x3dde9c(0x347)]),this[_0x3dde9c(0x216)](this['_singleActiveUnitService'][_0x3dde9c(0x1e1)](this[_0x3dde9c(0x347)])[_0x3dde9c(0x7f)](_0x426548=>{const _0x15844e=_0x3dde9c;this[_0x15844e(0x3e3)]['debug'](_0x15844e(0xeb),_0x15844e(0x35b),_0x426548),_0x426548===Fs[_0x15844e(0x8b)]?(this[_0x15844e(0x39a)][_0x15844e(0x3cf)]({'content':this[_0x15844e(0x307)]['t'](_0x15844e(0x1c6)),'type':_0x2b8ac7[_0x15844e(0x105)]}),this['_permissionService']['updatePermissionPoint'](new _0x957589(this[_0x15844e(0x347)])['id'],!0x1)):this[_0x15844e(0x3d4)]['updatePermissionPoint'](new _0x957589(this[_0x15844e(0x347)])['id'],!0x0);})));let _0xff3c93=!0x1;return this[_0x3dde9c(0x216)](this[_0x3dde9c(0x18f)]['sessionStatus$'][_0x3dde9c(0x7f)](_0x338ae=>{const _0x25d3ea=_0x3dde9c;_0x338ae===Y['ONLINE']?this[_0x25d3ea(0x3ff)](_0xff3c93):_0x338ae===Y[_0x25d3ea(0x346)]&&(_0xff3c93=!0x0,this[_0x25d3ea(0x2a7)]());})),this['disposeWithMe'](this['session'][_0x3dde9c(0x3f3)][_0x3dde9c(0x7f)](_0x1ca24c=>{const _0x2d4a88=_0x3dde9c;try{switch(_0x1ca24c[_0x2d4a88(0x361)]){case _0x3e2e84[_0x2d4a88(0x3fb)]:{this['_onRemoteChangeset'](_0xeed60c(_0x1ca24c[_0x2d4a88(0x15d)]));break;}case _0x3e2e84['CHANGESET_ACK']:{this[_0x2d4a88(0x265)](_0x1ca24c[_0x2d4a88(0x15d)]);break;}case _0x3e2e84[_0x2d4a88(0x1e8)]:{this[_0x2d4a88(0x159)]();break;}case _0x3e2e84[_0x2d4a88(0x166)]:{this['_onRemoteRetry'](_0x1ca24c[_0x2d4a88(0x15d)]);break;}case _0x3e2e84['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x2d4a88(0x1c2)](_0x1ca24c[_0x2d4a88(0x15d)][_0x2d4a88(0x122)][_0x2d4a88(0x396)](_0x1f5405=>_0xeed60c(_0x1f5405)));break;}case _0x3e2e84[_0x2d4a88(0x212)]:this[_0x2d4a88(0x159)]({'isPermissionRej':!0x0});}}catch(_0x34f5d4){throw console[_0x2d4a88(0x328)](_0x2d4a88(0x26e),_0x34f5d4),_0x34f5d4;}})),this['_state'];}[_0x23c7d1(0x107)](){const _0x3ba115=_0x23c7d1;this[_0x3ba115(0x246)]=!0x1;}['_lockTransition'](){const _0x31abd1=_0x23c7d1;if(this['_transitionLocked'])throw new Error(_0x31abd1(0x3e9));this[_0x31abd1(0x246)]=!0x0;}[_0x23c7d1(0x317)](_0x178999){const _0x1a6228=_0x23c7d1;this[_0x1a6228(0x22d)](),this[_0x1a6228(0xb1)](this[_0x1a6228(0x2ab)][_0x1a6228(0x18d)](_0x178999)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x3e7a40){const _0x3fe9d8=_0x23c7d1;if(!(_0x3e7a40[_0x3fe9d8(0xc9)]<=this[_0x3fe9d8(0x175)][_0x3fe9d8(0x17d)](this[_0x3fe9d8(0x347)]))){if(this[_0x3fe9d8(0x2cf)]){this[_0x3fe9d8(0x2c5)][_0x3fe9d8(0x3d1)](_0x3e7a40);return;}this[_0x3fe9d8(0x174)](_0x3e7a40);}}[_0x23c7d1(0x408)](){const _0x2e2879=_0x23c7d1;this[_0x2e2879(0x2c5)][_0x2e2879(0x28d)](_0xbd3881=>this[_0x2e2879(0x174)](_0xbd3881)),this[_0x2e2879(0x2c5)]=[];}['_applyRemoteChangeset'](_0x336538){const _0x32e647=_0x23c7d1,_0x2fd1be=this['_compressMutationService'][_0x32e647(0x1ae)]['fetchThroughInterceptors'](this[_0x32e647(0x34e)][_0x32e647(0x1ae)][_0x32e647(0x324)]()['COMPRESS_MUTATION_APPLY'])(_0x336538[_0x32e647(0x2aa)],null)||_0x336538[_0x32e647(0x2aa)],_0x20f6b0={..._0x336538,'mutations':_0x2fd1be};this[_0x32e647(0x22d)](),this[_0x32e647(0xb1)](this[_0x32e647(0x2ab)]['onRemoteChangeset'](_0x20f6b0)),this[_0x32e647(0x107)]();}[_0x23c7d1(0x265)](_0x497560){const _0x29b6ec=_0x23c7d1;this[_0x29b6ec(0x22d)](),this[_0x29b6ec(0xb1)](this[_0x29b6ec(0x2ab)][_0x29b6ec(0x12c)](_0x497560)),this['_unlockTransition']();}[_0x23c7d1(0x159)](_0xf12b1b){const _0x446866=_0x23c7d1;this[_0x446866(0x22d)](),this[_0x446866(0xb1)](this['_state'][_0x446866(0x300)](_0xf12b1b)),this[_0x446866(0x107)]();}['_onRemoteRetry'](_0xdef8f3){const _0x19fa04=_0x23c7d1;this[_0x19fa04(0x22d)](),this[_0x19fa04(0xb1)](this[_0x19fa04(0x2ab)][_0x19fa04(0x2e9)](_0xdef8f3)),this['_unlockTransition']();}[_0x23c7d1(0x1c2)](_0x8d9e8b){const _0x538af8=_0x23c7d1;if(!(this[_0x538af8(0x2ab)]instanceof B))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x439c08=_0x8d9e8b['map'](_0x26a5d3=>{const _0x5e3407=_0x538af8,_0x1027df=this[_0x5e3407(0x34e)][_0x5e3407(0x1ae)][_0x5e3407(0x1a1)](this[_0x5e3407(0x34e)][_0x5e3407(0x1ae)][_0x5e3407(0x324)]()[_0x5e3407(0xd1)])(_0x26a5d3[_0x5e3407(0x2aa)],null)||_0x26a5d3[_0x5e3407(0x2aa)];return{..._0x26a5d3,'mutations':_0x1027df};});this['_lockTransition'](),this[_0x538af8(0xb1)](this[_0x538af8(0x2ab)][_0x538af8(0x1eb)](_0x439c08)),this['_unlockTransition']();}[_0x23c7d1(0x2a7)](){const _0x443c5a=_0x23c7d1;this[_0x443c5a(0x22d)](),this[_0x443c5a(0xb1)](this['_state'][_0x443c5a(0x25d)]()),this[_0x443c5a(0x107)]();}[_0x23c7d1(0x3ff)](_0x4e9ef2=!0x1){const _0x1d1ff8=_0x23c7d1;this[_0x1d1ff8(0x22d)](),this['_updateState'](this[_0x1d1ff8(0x2ab)][_0x1d1ff8(0x398)]()),this[_0x1d1ff8(0x107)]();const _0x5ea3fd=this[_0x1d1ff8(0x2ab)];_0x4e9ef2&&_0x5ea3fd instanceof pe&&(this[_0x1d1ff8(0x22d)](),this['_updateState'](_0x5ea3fd[_0x1d1ff8(0x2bf)]()),this[_0x1d1ff8(0x107)]());}async[_0x23c7d1(0xff)](){return new Promise(_0x379ad8=>{const _0x2c27b8=_0x3e56;this[_0x2c27b8(0x18f)][_0x2c27b8(0x21c)][_0x2c27b8(0x254)](_0xf57bcd(0x1))[_0x2c27b8(0x7f)](async _0x5b7f7a=>{const _0x373350=_0x2c27b8;_0x379ad8(await this[_0x373350(0x1de)](_0x5b7f7a===Y['ONLINE']));});});}['_createHandler'](){const _0x358035=_0x23c7d1,_0x197ea9=this[_0x358035(0x347)];return{'onStateChange':(_0x492342,_0x55b204)=>{const _0x202c5c=_0x358035;if(_0x492342!==this['_state'])throw new Error(_0x202c5c(0xbd)+_0x492342[_0x202c5c(0x371)]+_0x202c5c(0x2fa)+_0x55b204[_0x202c5c(0x371)]+_0x202c5c(0x234)+this[_0x202c5c(0x2ab)]['status']);this[_0x202c5c(0xb1)](_0x55b204);},'onSendChangeset':_0x57dd8b=>{const _0xb385ba=_0x358035;_0x57dd8b['sid']||(_0x57dd8b[_0xb385ba(0x20c)]=this[_0xb385ba(0x308)],_0x57dd8b[_0xb385ba(0x345)]=++this[_0xb385ba(0x222)]);const _0x193b9d={'eventID':_0x3e2e84[_0xb385ba(0x331)],'data':{'unitID':_0x57dd8b[_0xb385ba(0x347)],'unitType':this[_0xb385ba(0x1ce)],'changeset':_0x57dd8b,'memberID':this[_0xb385ba(0x18f)][_0xb385ba(0x1fa)]()}};this['session'][_0xb385ba(0x25c)](_0x193b9d,this[_0xb385ba(0x347)]);},'onMissingChangesets':({from:_0x567604,to:_0x6a4ba1})=>{const _0x5b3972=_0x358035;this[_0x5b3972(0x3e3)][_0x5b3972(0x12b)](_0x5b3972(0xeb),_0x5b3972(0x194)+_0x567604+_0x5b3972(0x32c)+_0x6a4ba1);const _0x171359={'eventID':_0x3e2e84['FETCH_MISSING'],'data':{'unitID':_0x197ea9,'unitType':this[_0x5b3972(0x1ce)],'from':_0x567604,'to':_0x6a4ba1}};this[_0x5b3972(0x18f)][_0x5b3972(0x25c)](_0x171359,this[_0x5b3972(0x347)]);}};}async['_createInitialStateImpl'](_0x2064fb){const _0x5a3a6e=_0x23c7d1;var _0x58c34c,_0x32cba9;const _0x4ba00f=await this[_0x5a3a6e(0x2ee)][_0x5a3a6e(0x217)](this[_0x5a3a6e(0x347)]),_0x13f2d4=(_0x58c34c=_0x4ba00f==null?void 0x0:_0x4ba00f[_0x5a3a6e(0x2aa)])!=null?_0x58c34c:[],_0x1d935f=(_0x32cba9=_0x4ba00f==null?void 0x0:_0x4ba00f[_0x5a3a6e(0x290)])!=null?_0x32cba9:null,_0xd6bb24=!!(_0x1d935f!=null&&_0x1d935f['sid'])&&!!(_0x1d935f!=null&&_0x1d935f[_0x5a3a6e(0x345)]);this['_changesetSessionId']=_0xd6bb24?_0x1d935f[_0x5a3a6e(0x20c)]:or(),this[_0x5a3a6e(0x222)]=_0xd6bb24?_0x1d935f[_0x5a3a6e(0x345)]:0x0;const _0xdac1a8=this[_0x5a3a6e(0x347)];try{this[_0x5a3a6e(0xbb)](_0x1d935f,_0x13f2d4);}catch(_0x3fcb39){this[_0x5a3a6e(0x3e3)][_0x5a3a6e(0x328)](_0x3fcb39);}const _0xf5ea5=this[_0x5a3a6e(0x381)]();if(_0x2064fb){const _0x32a4b3=Ks(this[_0x5a3a6e(0xdc)],_0xdac1a8,this[_0x5a3a6e(0x1ce)],_0x1d935f,_0x13f2d4,_0xf5ea5);return _0x32a4b3 instanceof X?_0x32a4b3[_0x5a3a6e(0xd2)]():(_0x32a4b3 instanceof q||_0x32a4b3 instanceof Q)&&_0x32a4b3['resend'](),_0x32a4b3;}return this[_0x5a3a6e(0xdc)][_0x5a3a6e(0x1c8)](te,_0xdac1a8,this['_type'],_0x1d935f,_0x13f2d4,_0xf5ea5);}[_0x23c7d1(0xbb)](_0x23964b,_0x2dddd1){const _0x15ae26=_0x23c7d1;var _0x1a6405,_0x188bbe;const _0x256b33=this[_0x15ae26(0x34e)][_0x15ae26(0x1ae)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x15ae26(0x1ae)][_0x15ae26(0x324)]()[_0x15ae26(0xd1)]);(_0x1a6405=_0x256b33((_0x23964b==null?void 0x0:_0x23964b[_0x15ae26(0x2aa)])||[],null))==null||_0x1a6405['forEach'](_0x484f29=>this[_0x15ae26(0x309)]['executeCommand'](_0x484f29['id'],_0x484f29[_0x15ae26(0x16d)])),(_0x188bbe=_0x256b33(_0x2dddd1||[],null))==null||_0x188bbe['forEach'](_0x301132=>this['_commandService']['executeCommand'](_0x301132['id'],_0x301132[_0x15ae26(0x16d)]));}};qe=Wt([p(0x3,_0x4dc04f(_0x22396d)),p(0x4,_0x4dc04f(w)),p(0x5,_0x4dc04f(_0x2113b3)),p(0x6,_0x4dc04f(_0x19fdc8)),p(0x7,_0x4dc04f(_0x2fb629)),p(0x8,_0x20dcfc),p(0x9,_0x45f63f),p(0xa,_0x413020),p(0xb,_0x241914),p(0xc,_0x4ab0b0(tt))],qe);let Tt=class extends qe{constructor(_0x10c983,_0x2cf028,_0x556fa9,_0x1b86b2,_0x5e9fa0,_0x5f57ab,_0x2877ac,_0x399d32,_0x3a8940,_0x19fe20,_0x4a77d6,_0x112e38,_0x659ce4,_0x3ed867,_0x5e10c8,_0x52b5d5,_0x137a45){const _0x521d5d=_0x23c7d1;super(_0x10c983,_0x556fa9,_0x2cf028,_0x1b86b2,_0x5e9fa0,_0x5f57ab,_0x2877ac,_0x399d32,_0x659ce4,_0x3ed867,_0x5e10c8,_0x52b5d5,_0x137a45),this[_0x521d5d(0x347)]=_0x10c983,this['type']=_0x2cf028,this['_docStateChangeManagerService']=_0x3a8940,this[_0x521d5d(0x337)]=_0x19fe20,this[_0x521d5d(0x3b3)]=_0x4a77d6,this['_docSyncEditingCollabCursorService']=_0x112e38;}[_0x23c7d1(0x381)](){const _0x1a8562=_0x23c7d1,_0x34e7d3=super[_0x1a8562(0x381)]();return _0x34e7d3[_0x1a8562(0x2d0)]=_0x1c68a1=>this[_0x1a8562(0x337)][_0x1a8562(0x141)](_0x1c68a1),_0x34e7d3['onTransformSelections']=_0x4f0b20=>this[_0x1a8562(0x3b3)]['transformSelections'](_0x4f0b20),_0x34e7d3[_0x1a8562(0x1e2)]=_0x263903=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x263903),_0x34e7d3['onTransformRemoteChangesetByIMECache']=_0x570838=>this[_0x1a8562(0x337)][_0x1a8562(0x1fe)](_0x570838),_0x34e7d3;}async['_init'](){const _0x5a1afc=_0x23c7d1,_0x7e3f17=await super['_init']();return this[_0x5a1afc(0x1d9)][_0x5a1afc(0x1b6)]['pipe'](_0x21580d(this[_0x5a1afc(0x1ee)]))[_0x5a1afc(0x7f)](_0x21ccb3=>{const _0x3be9fa=_0x5a1afc;if(_0x21ccb3==null)return;const {unitId:_0x5a66f1,redoState:_0x479787,commandId:_0x3fe9c3}=_0x21ccb3;if(_0x5a66f1!==this[_0x3be9fa(0x347)])return;const _0x270f97={'id':_0x3fe9c3,'type':_0x1e1816[_0x3be9fa(0x1d5)],'params':{'unitId':_0x5a66f1,'actions':_0x479787[_0x3be9fa(0x1c0)],'textRanges':null}};this[_0x3be9fa(0x317)](_0x270f97);}),_0x7e3f17;}};Tt=Wt([p(0x3,_0x4dc04f(_0x22396d)),p(0x4,_0x4dc04f(w)),p(0x5,_0x4dc04f(_0x2113b3)),p(0x6,_0x4dc04f(_0x19fdc8)),p(0x7,_0x4dc04f(_0x2fb629)),p(0x8,_0x4dc04f(_0x16b8be)),p(0x9,_0x4dc04f(Ye)),p(0xa,_0x4dc04f(Xe)),p(0xb,_0x4dc04f(Ft)),p(0xc,_0x20dcfc),p(0xd,_0x45f63f),p(0xe,_0x413020),p(0xf,_0x241914),p(0x10,_0x4ab0b0(tt))],Tt);let Rt=class extends qe{constructor(_0x1bfb19,_0x39dfaf,_0x142305,_0x192a3e,_0x53eebf,_0x42174d,_0x2fa27e,_0x2abfd5,_0x3e9543,_0x248352,_0x1241a8,_0x4a042d,_0x13a8b2,_0x574c6f){const _0x1e14ad=_0x23c7d1;super(_0x1bfb19,_0x142305,_0x39dfaf,_0x192a3e,_0x53eebf,_0x42174d,_0x2fa27e,_0x2abfd5,_0x248352,_0x1241a8,_0x4a042d,_0x13a8b2,_0x574c6f),this[_0x1e14ad(0x347)]=_0x1bfb19,this[_0x1e14ad(0x340)]=_0x39dfaf,this[_0x1e14ad(0x2b9)]=_0x3e9543;}[_0x23c7d1(0x381)](){const _0x90eeb8=_0x23c7d1,_0x34876c=super[_0x90eeb8(0x381)]();return _0x34876c[_0x90eeb8(0xa0)]=_0x5dd776=>this[_0x90eeb8(0x2b9)][_0x90eeb8(0x259)](_0x5dd776),_0x34876c;}async[_0x23c7d1(0xad)](){const _0x2309e8=_0x23c7d1,_0x54444f=await super[_0x2309e8(0xad)]();return this[_0x2309e8(0x216)](this['_commandService']['onCommandExecuted']((_0x3a6276,_0x50161c)=>{const _0x224949=_0x2309e8;if(_0x3a6276[_0x224949(0x340)]!==_0x1e1816[_0x224949(0x1d5)]||_0x50161c!=null&&_0x50161c[_0x224949(0x2db)]||_0x50161c!=null&&_0x50161c['onlyLocal'])return;const _0x331e11=_0x3a6276[_0x224949(0x16d)];if((_0x331e11==null?void 0x0:_0x331e11[_0x224949(0x2f2)])!==this[_0x224949(0x347)])return;const _0x395e0a=_0x3a6276,_0x4bf363=this[_0x224949(0x34e)][_0x224949(0x1ae)][_0x224949(0x1a1)](this[_0x224949(0x34e)][_0x224949(0x1ae)][_0x224949(0x324)]()['COMPRESS_MUTATION_SEND'])([_0x395e0a],null)||[_0x395e0a];this['_onLocalMutation'](_0x4bf363[0x0]);})),_0x54444f;}};Rt=Wt([p(0x3,_0x4dc04f(_0x22396d)),p(0x4,_0x4dc04f(w)),p(0x5,_0x4dc04f(_0x2113b3)),p(0x6,_0x4dc04f(_0x19fdc8)),p(0x7,_0x4dc04f(_0x2fb629)),p(0x8,_0x4dc04f(Ke)),p(0x9,_0x20dcfc),p(0xa,_0x45f63f),p(0xb,_0x413020),p(0xc,_0x241914),p(0xd,_0x4ab0b0(tt))],Rt);var Pr=Object[_0x23c7d1(0x252)],yr=Object[_0x23c7d1(0x113)],Ur=(_0x184a57,_0x21fea6,_0x2e95aa,_0x26aa03)=>{for(var _0x48ce08=_0x26aa03>0x1?void 0x0:_0x26aa03?yr(_0x21fea6,_0x2e95aa):_0x21fea6,_0x2413ef=_0x184a57['length']-0x1,_0x4aa2f2;_0x2413ef>=0x0;_0x2413ef--)(_0x4aa2f2=_0x184a57[_0x2413ef])&&(_0x48ce08=(_0x26aa03?_0x4aa2f2(_0x21fea6,_0x2e95aa,_0x48ce08):_0x4aa2f2(_0x48ce08))||_0x48ce08);return _0x26aa03&&_0x48ce08&&Pr(_0x21fea6,_0x2e95aa,_0x48ce08),_0x48ce08;},_t=(_0x5b1d30,_0x2d2ab4)=>(_0x4d6e92,_0x50c603)=>_0x2d2ab4(_0x4d6e92,_0x50c603,_0x5b1d30);let Le=class extends _0x55967c{constructor(_0x38dbcd,_0xb9c035,_0x566664){const _0x20a6cb=_0x23c7d1;super(),l(this,_0x20a6cb(0xc5),new Map()),l(this,_0x20a6cb(0x218),new _0x41261f()),(this[_0x20a6cb(0xdc)]=_0x38dbcd,this[_0x20a6cb(0x3ad)]=_0xb9c035,this[_0x20a6cb(0x21f)]=_0x566664,this[_0x20a6cb(0xad)]());}[_0x23c7d1(0x230)](){const _0x39d97a=_0x23c7d1;super[_0x39d97a(0x230)](),this[_0x39d97a(0xc5)][_0x39d97a(0x28d)](_0x5e82c9=>_0x5e82c9[_0x39d97a(0x230)]()),this[_0x39d97a(0xc5)][_0x39d97a(0x120)]();}['getCollabEntity'](_0x6cb624){const _0x2bad5f=_0x23c7d1;var _0x22568a;return(_0x22568a=this[_0x2bad5f(0xc5)]['get'](_0x6cb624))!=null?_0x22568a:null;}['getCollabEntity$'](_0x133730){const _0x39446e=_0x23c7d1,_0x1ff4e1=this[_0x39446e(0x294)](_0x133730);return _0x1ff4e1?_0xaed9b5(_0x1ff4e1):this[_0x39446e(0x218)][_0x39446e(0x254)](_0x3cca70(_0x558d72=>_0x558d72['unitID']===_0x133730));}['_init'](){const _0x214b60=_0x23c7d1;this[_0x214b60(0x21f)][_0x214b60(0xd9)](_0x12affe[_0x214b60(0x3de)])[_0x214b60(0x254)](_0x21580d(this[_0x214b60(0x1ee)]),_0x5504ff(0x10))['subscribe'](async _0x121fc1=>{const _0x5cf37f=_0x214b60,_0x5b9f27=_0x121fc1[_0x5cf37f(0x366)](),_0x42f644=await this[_0x5cf37f(0x2fd)](_0x5b9f27,k[_0x5cf37f(0x3de)]);this[_0x5cf37f(0xc5)]['set'](_0x5b9f27,_0x42f644);}),this['_univerInstanceService'][_0x214b60(0xd9)](_0x12affe['UNIVER_DOC'])['pipe'](_0x21580d(this[_0x214b60(0x1ee)]),_0x5504ff(0x10))['pipe'](_0x3cca70(_0x129449=>!_0x129449[_0x214b60(0x366)]()['startsWith']('__')))[_0x214b60(0x7f)](async _0x1eee67=>{const _0x32cdba=_0x214b60,_0x1bc97d=_0x1eee67[_0x32cdba(0x366)](),_0xe23872=await this[_0x32cdba(0x2fd)](_0x1bc97d,k[_0x32cdba(0x195)]);this['_entities'][_0x32cdba(0x2f5)](_0x1bc97d,_0xe23872);}),_0x3a25d1(this[_0x214b60(0x21f)][_0x214b60(0x28c)](_0x12affe['UNIVER_SHEET']),this[_0x214b60(0x21f)][_0x214b60(0x28c)](_0x12affe[_0x214b60(0x195)]))[_0x214b60(0x254)](_0x21580d(this[_0x214b60(0x1ee)]))[_0x214b60(0x7f)](_0xeb0fc3=>{const _0x3e5726=_0x214b60,_0x57f193=_0xeb0fc3[_0x3e5726(0x366)](),_0x5a6add=this[_0x3e5726(0xc5)][_0x3e5726(0xcc)](_0x57f193);_0x5a6add&&(_0x5a6add['dispose'](),this[_0x3e5726(0xc5)][_0x3e5726(0xd4)](_0x57f193));});}async[_0x23c7d1(0x2fd)](_0x32d2ad,_0x14fc1d){const _0x167eb8=_0x23c7d1,_0x122c6f=await this[_0x167eb8(0x3ad)]['requireSession'](_0x32d2ad),_0x4bcd85=this[_0x167eb8(0xdc)][_0x167eb8(0x1c8)](this[_0x167eb8(0x404)](_0x14fc1d),_0x32d2ad,_0x14fc1d,_0x122c6f);return await _0x4bcd85[_0x167eb8(0x2b8)](),this[_0x167eb8(0x218)][_0x167eb8(0x183)](_0x4bcd85),_0x4bcd85;}[_0x23c7d1(0x404)](_0x31161e){const _0x1ef85e=_0x23c7d1;switch(_0x31161e){case k['UNIVER_DOC']:return Tt;case k[_0x1ef85e(0x3de)]:return Rt;default:throw new Error(_0x1ef85e(0x215)+_0x31161e);}}};Le=Ur([_t(0x0,_0x4dc04f(_0x22396d)),_t(0x1,_0x4dc04f(he)),_t(0x2,_0x9f62da)],Le);const ms=[_0x23c7d1(0xf4),_0x23c7d1(0x17c),'verdancy600',_0x23c7d1(0x3a1),_0x23c7d1(0x344),_0x23c7d1(0x391)];class Gt extends _0x48670f{constructor(){const _0x3a8c36=_0x23c7d1;super(...arguments),l(this,_0x3a8c36(0x241),new Map()),l(this,_0x3a8c36(0x2c9),0x0);}[_0x23c7d1(0x3f9)](_0x1df228){const _0x55da9d=_0x23c7d1;if(this[_0x55da9d(0x241)]['has'](_0x1df228))return this[_0x55da9d(0x241)]['get'](_0x1df228);const _0x18d810=ms[this[_0x55da9d(0x2c9)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%ms[_0x55da9d(0x22a)],this['_assignedColors']['set'](_0x1df228,_0x18d810),_0x18d810;}}var Nr=Object[_0x23c7d1(0x252)],Mr=Object['getOwnPropertyDescriptor'],Ar=(_0x2d9767,_0x1102e0,_0x481cb6,_0x2ed29c)=>{for(var _0x340b35=_0x2ed29c>0x1?void 0x0:_0x2ed29c?Mr(_0x1102e0,_0x481cb6):_0x1102e0,_0x296802=_0x2d9767['length']-0x1,_0x511765;_0x296802>=0x0;_0x296802--)(_0x511765=_0x2d9767[_0x296802])&&(_0x340b35=(_0x2ed29c?_0x511765(_0x1102e0,_0x481cb6,_0x340b35):_0x511765(_0x340b35))||_0x340b35);return _0x2ed29c&&_0x340b35&&Nr(_0x1102e0,_0x481cb6,_0x340b35),_0x340b35;},ie=(_0x5525bc,_0xf75031)=>(_0x40c744,_0x322112)=>_0xf75031(_0x40c744,_0x322112,_0x5525bc);const Lr=0x12c,$r=0x64;let Ot=class extends _0x55967c{constructor(_0x496427,_0x5c0adb,_0x2667af,_0x1ea99b,_0x29cbef,_0x41035d,_0x47cafe,_0x5b9ddb,_0x2ed20c){const _0x23d98a=_0x23c7d1;super(),l(this,_0x23d98a(0x38f),!0x1),l(this,'_init',!0x1),l(this,_0x23d98a(0x188),new _0x4a4faf(new Map())),l(this,_0x23d98a(0x1a9),this[_0x23d98a(0x188)][_0x23d98a(0x303)]()),l(this,_0x23d98a(0x2e5),new _0x4a4faf([])),l(this,'roomMembers$',this[_0x23d98a(0x2e5)][_0x23d98a(0x254)](_0x3df71a(Lr))),l(this,'_updateLocalCursor',_0x2a1758(_0x34c44a=>{const _0x45dffc=_0x23d98a,_0x1a4cd3={'eventID':_0x3e2e84['UPDATE_CURSOR'],'data':{'unitID':this[_0x45dffc(0x347)],'memberID':this[_0x45dffc(0x179)][_0x45dffc(0x1fa)](),'selection':Ws(_0x34c44a)}};this[_0x45dffc(0x179)][_0x45dffc(0x25c)](_0x1a4cd3,this[_0x45dffc(0x347)]);},$r)),(this['unitID']=_0x496427,this['_session']=_0x5c0adb,this['_injector']=_0x2667af,this[_0x23d98a(0x2e4)]=_0x1ea99b,this[_0x23d98a(0x2da)]=_0x29cbef,this[_0x23d98a(0x28a)]=_0x41035d,this[_0x23d98a(0x152)]=_0x47cafe,this['_univerInstanceService']=_0x5b9ddb,this['_commandService']=_0x2ed20c);}get[_0x23c7d1(0x24e)](){const _0x2b7186=_0x23c7d1;return this[_0x2b7186(0x188)][_0x2b7186(0x264)]();}get['roomMembers'](){const _0x56fc62=_0x23c7d1;return this[_0x56fc62(0x2e5)][_0x56fc62(0x264)]();}[_0x23c7d1(0x230)](){const _0x438eaa=_0x23c7d1;super['dispose'](),this[_0x438eaa(0x188)][_0x438eaa(0x183)](new Map()),this['_cursorInfo$'][_0x438eaa(0x3ba)](),this[_0x438eaa(0x2e5)]['next']([]),this[_0x438eaa(0x2e5)]['complete']();}[_0x23c7d1(0x2b8)](){const _0x2e4037=_0x23c7d1;this['_init']||(this[_0x2e4037(0xad)]=!0x0,this[_0x2e4037(0x179)][_0x2e4037(0x21c)]['pipe'](_0x21580d(this['dispose$']))[_0x2e4037(0x7f)](_0x4efda9=>{const _0x35fbae=_0x2e4037;_0x4efda9===Y[_0x35fbae(0x130)]?this['_toggleOnline']():this[_0x35fbae(0x2a7)]();}),this['_session'][_0x2e4037(0x3f3)][_0x2e4037(0x254)](_0x21580d(this[_0x2e4037(0x1ee)]))[_0x2e4037(0x7f)](_0x54de88=>{const _0x3fab2c=_0x2e4037,_0x3ca1a6=_0x54de88[_0x3fab2c(0x361)];_0x3ca1a6===_0x3e2e84['UPDATE_CURSOR']&&this[_0x3fab2c(0x318)](_0x54de88),_0x3ca1a6===_0x3e2e84[_0x3fab2c(0x355)]&&this[_0x3fab2c(0x33b)](_0x54de88);}),this[_0x2e4037(0x216)](this[_0x2e4037(0x309)][_0x2e4037(0x11c)](_0x589f65=>{const _0x125783=_0x2e4037,_0x1a0863=_0x589f65['params'];_0x1a0863!=null&&this[_0x125783(0x38f)]&&_0x589f65['id']===_0x4e7fe9['id']&&_0x1a0863[_0x125783(0x2f2)]===this['unitID']&&_0x1a0863[_0x125783(0x155)]===!0x1&&this[_0x125783(0x192)](_0x1a0863[_0x125783(0x2c2)]);})),this[_0x2e4037(0x28a)][_0x2e4037(0x400)][_0x2e4037(0x254)](_0x21580d(this[_0x2e4037(0x1ee)]))[_0x2e4037(0x7f)](_0x1dae0b=>{const _0x3a4333=_0x2e4037;if((_0x1dae0b==null?void 0x0:_0x1dae0b[_0x3a4333(0x347)])!==this[_0x3a4333(0x347)])return;const _0x1248ea={'eventID':_0x3e2e84[_0x3a4333(0xf2)],'data':_0x1dae0b};this[_0x3a4333(0x318)](_0x1248ea);}),this[_0x2e4037(0x216)](this['_commandService'][_0x2e4037(0x11c)](_0x222325=>{const _0x42f7fd=_0x2e4037;if(_0x222325[_0x42f7fd(0x16d)]==null)return;const _0x482547=_0x222325['params'];if(_0x222325['id']!==_0x1cda85['id']||_0x482547[_0x42f7fd(0x2f2)]!==this[_0x42f7fd(0x347)])return;const _0x660aae={'id':_0x42f7fd(0x28e),'params':_0x482547},_0x106c93=this[_0x42f7fd(0x24e)];for(const [_0x536e75,_0x534ac5]of _0x106c93){const _0x25de78={'id':_0x42f7fd(0x28e),'params':{'unitId':this[_0x42f7fd(0x347)],'actions':null,'textRanges':_0x534ac5[_0x42f7fd(0x2c2)]}},_0x59fa0f=this[_0x42f7fd(0x152)]['transformMutation'](_0x660aae,_0x25de78,!0x1);if(_0x20d9cf(_0x59fa0f))throw _0x59fa0f[_0x42f7fd(0x328)];_0x106c93[_0x42f7fd(0x2f5)](_0x536e75,{..._0x534ac5,'ranges':_0x59fa0f[_0x42f7fd(0x388)][_0x42f7fd(0x16d)][_0x42f7fd(0x36b)]});}queueMicrotask(()=>{const _0x630941=_0x42f7fd;this['_cursorInfo$'][_0x630941(0x183)](_0x106c93);});})));}['_onCursorUpdate'](_0x5b897f){const _0x519f90=_0x23c7d1;var _0x4c9119,_0x1429ee;const {memberID:_0x5420ec,selection:_0x54dc79}=_0x5b897f[_0x519f90(0x15d)],_0x4898ba=pr(_0x54dc79),_0x467aef=(_0x1429ee=(_0x4c9119=this[_0x519f90(0x2da)][_0x519f90(0x13e)](this[_0x519f90(0x347)],_0x5420ec))==null?void 0x0:_0x4c9119[_0x519f90(0x115)])!=null?_0x1429ee:_0x519f90(0x19c),_0x4b84b3={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x5420ec),'name':_0x467aef,'ranges':_0x4898ba},_0x1515be=this[_0x519f90(0x24e)];_0x1515be[_0x519f90(0x2f5)](_0x5420ec,_0x4b84b3),this['_cursorInfo$'][_0x519f90(0x183)](_0x1515be);}[_0x23c7d1(0x33b)](_0x28f53f){const _0x2468c3=_0x23c7d1,{memberID:_0x591f86}=_0x28f53f[_0x2468c3(0x15d)],_0x57d297=this[_0x2468c3(0x24e)];_0x57d297[_0x2468c3(0xd4)](_0x591f86),this[_0x2468c3(0x188)][_0x2468c3(0x183)](_0x57d297);}[_0x23c7d1(0x3ff)](){const _0x4f7072=_0x23c7d1;var _0x9cfe79;if(this[_0x4f7072(0x38f)]=!0x0,((_0x9cfe79=this[_0x4f7072(0x21f)]['getFocusedUnit']())==null?void 0x0:_0x9cfe79['getUnitId']())!==this[_0x4f7072(0x347)])return;const _0x2b5eac=this[_0x4f7072(0xdc)]['get'](_0xd815b9)[_0x4f7072(0x171)]();Array[_0x4f7072(0x1a0)](_0x2b5eac)&&_0x2b5eac[_0x4f7072(0x22a)]>0x0&&this[_0x4f7072(0x192)](_0x2b5eac);}[_0x23c7d1(0x2a7)](){const _0x5c9d96=_0x23c7d1;this[_0x5c9d96(0x38f)]=!0x1;}};Ot=Ar([ie(0x2,_0x4dc04f(_0x22396d)),ie(0x3,_0x4dc04f(Gt)),ie(0x4,_0x4dc04f(ce)),ie(0x5,_0x4dc04f(Ft)),ie(0x6,_0x1c29f3),ie(0x7,_0x9f62da),ie(0x8,_0x45f63f)],Ot);var jr=Object[_0x23c7d1(0x252)],Hr=Object[_0x23c7d1(0x113)],xr=(_0x454494,_0x31480b,_0x346685,_0x14c0fa)=>{for(var _0x4f7b51=_0x14c0fa>0x1?void 0x0:_0x14c0fa?Hr(_0x31480b,_0x346685):_0x31480b,_0x42d660=_0x454494['length']-0x1,_0x18b075;_0x42d660>=0x0;_0x42d660--)(_0x18b075=_0x454494[_0x42d660])&&(_0x4f7b51=(_0x14c0fa?_0x18b075(_0x31480b,_0x346685,_0x4f7b51):_0x18b075(_0x4f7b51))||_0x4f7b51);return _0x14c0fa&&_0x4f7b51&&jr(_0x31480b,_0x346685,_0x4f7b51),_0x4f7b51;},fe=(_0x152259,_0x8909a2)=>(_0x4cb037,_0x1889e4)=>_0x8909a2(_0x4cb037,_0x1889e4,_0x152259);const kr=0x12c,Br=0x64,Vr=()=>{let _0x290113=[],_0x371d15=!0x1;return _0x1860f5=>{const _0x13df13=_0x3e56;_0x290113[_0x13df13(0x3d1)](_0x1860f5),_0x371d15||(_0x371d15=!0x0,setTimeout(()=>{const _0x51fd63=_0x13df13;_0x290113[_0x51fd63(0x28d)](_0x52b5a3=>_0x52b5a3()),_0x290113=[],_0x371d15=!0x1;}));};};let Dt=class extends _0x55967c{constructor(_0x314073,_0x178bd5,_0x58565f,_0x598cb1,_0x14382b,_0x253d83,_0x12a2fd,_0x130df9){const _0x39ccb8=_0x23c7d1;super(),l(this,_0x39ccb8(0x38f),!0x1),l(this,_0x39ccb8(0xad),!0x1),l(this,_0x39ccb8(0x188),new _0x4a4faf(new Map())),l(this,_0x39ccb8(0x1a9),this[_0x39ccb8(0x188)][_0x39ccb8(0x303)]()),l(this,'_roomMembers$',new _0x4a4faf([])),l(this,_0x39ccb8(0x33f),this['_roomMembers$'][_0x39ccb8(0x254)](_0x3df71a(kr))),l(this,_0x39ccb8(0x192),_0x2a1758((_0x1f7afb,_0x3e938c)=>{const _0x19d180=_0x39ccb8,_0x5519c3={'eventID':_0x3e2e84[_0x19d180(0xf2)],'data':{'unitID':this[_0x19d180(0x347)],'memberID':this[_0x19d180(0x179)]['getMemberID'](),'selection':_0x33ed04(_0x1f7afb,_0x3e938c[_0x19d180(0x2cd)])}};this[_0x19d180(0x179)]['send'](_0x5519c3,this[_0x19d180(0x347)]);},Br)),(this['unitID']=_0x314073,this['_session']=_0x178bd5,this[_0x39ccb8(0xdc)]=_0x58565f,this[_0x39ccb8(0x2e4)]=_0x598cb1,this[_0x39ccb8(0x2da)]=_0x14382b,this[_0x39ccb8(0x21f)]=_0x253d83,this[_0x39ccb8(0x309)]=_0x12a2fd,this[_0x39ccb8(0x1f1)]=_0x130df9);}get['cursorInfo'](){const _0x49459f=_0x23c7d1;return this[_0x49459f(0x188)][_0x49459f(0x264)]();}get[_0x23c7d1(0xde)](){return this['_roomMembers$']['getValue']();}[_0x23c7d1(0x230)](){const _0x8fbee6=_0x23c7d1;super['dispose'](),this[_0x8fbee6(0x188)]['next'](new Map()),this['_cursorInfo$'][_0x8fbee6(0x3ba)](),this['_roomMembers$'][_0x8fbee6(0x183)]([]),this[_0x8fbee6(0x2e5)][_0x8fbee6(0x3ba)]();}[_0x23c7d1(0x2b8)](){const _0x3bce73=_0x23c7d1;this[_0x3bce73(0xad)]||(this[_0x3bce73(0xad)]=!0x0,this[_0x3bce73(0x179)][_0x3bce73(0x21c)]['pipe'](_0x21580d(this['dispose$']))['subscribe'](_0x2e5422=>{const _0x2bbdb6=_0x3bce73;_0x2e5422===Y[_0x2bbdb6(0x130)]?this[_0x2bbdb6(0x3ff)]():this['_toggleOffline']();}),this[_0x3bce73(0x179)][_0x3bce73(0x3f3)][_0x3bce73(0x254)](_0x21580d(this[_0x3bce73(0x1ee)]))[_0x3bce73(0x7f)](_0x2912bb=>{const _0x4ff6c8=_0x3bce73,_0xab832a=_0x2912bb[_0x4ff6c8(0x361)];_0xab832a===_0x3e2e84['UPDATE_CURSOR']&&this[_0x4ff6c8(0x318)](_0x2912bb),_0xab832a===_0x3e2e84[_0x4ff6c8(0x355)]&&this[_0x4ff6c8(0x33b)](_0x2912bb);}),this['_onRefRangeChange'](),this[_0x3bce73(0x216)](this[_0x3bce73(0x309)][_0x3bce73(0x11c)](_0x1034be=>{const _0x28d5a0=_0x3bce73;if(this[_0x28d5a0(0x38f)]&&_0x1034be['id']===_0x3f3cc1['id']&&_0x1034be['params']['unitId']===this[_0x28d5a0(0x347)]){const _0x24120f=_0x1034be[_0x28d5a0(0x16d)];this[_0x28d5a0(0x192)](_0x24120f[_0x28d5a0(0x1f4)],_0x24120f['selections'][0x0]);}})));}['_onCursorUpdate'](_0x56e74a){const _0x405690=_0x23c7d1;var _0x5b9065,_0x3b496d;const {memberID:_0x1b9c5b,selection:_0xc382c5}=_0x56e74a[_0x405690(0x15d)],{sheetName:_0x3ee78f,range:_0x348663}=_0x3ea094(_0xc382c5),_0x18eb24={'name':(_0x3b496d=(_0x5b9065=this['_memberService'][_0x405690(0x13e)](this[_0x405690(0x347)],_0x1b9c5b))==null?void 0x0:_0x5b9065[_0x405690(0x115)])!=null?_0x3b496d:_0x405690(0x19c),'range':this['_getMergeRange'](_0x3ee78f,_0x348663),'sheetID':_0x3ee78f,'color':this[_0x405690(0x2e4)][_0x405690(0x3f9)](_0x1b9c5b),'selection':_0xc382c5},_0x930e85=this['cursorInfo'];_0x930e85[_0x405690(0x2f5)](_0x1b9c5b,_0x18eb24),this[_0x405690(0x188)]['next'](_0x930e85);}[_0x23c7d1(0x33b)](_0x5e65c6){const _0x44e7d=_0x23c7d1,{memberID:_0x49cf1f}=_0x5e65c6[_0x44e7d(0x15d)],_0x4ef0b1=this[_0x44e7d(0x24e)];_0x4ef0b1[_0x44e7d(0xd4)](_0x49cf1f),this['_cursorInfo$']['next'](_0x4ef0b1);}[_0x23c7d1(0xdb)](_0x338f73,_0x3ec760){const _0x4ce867=_0x23c7d1;var _0x4ad9cc,_0x47708e;const _0x3d4011=(_0x47708e=(_0x4ad9cc=this[_0x4ce867(0x21f)]['getUniverSheetInstance'](this[_0x4ce867(0x347)]))==null?void 0x0:_0x4ad9cc[_0x4ce867(0x12e)](_0x338f73))==null?void 0x0:_0x47708e['getMergeData']();return(_0x3d4011==null?void 0x0:_0x3d4011[_0x4ce867(0x3e6)](_0x2488e0=>_0x27110e[_0x4ce867(0x161)](_0x2488e0,_0x3ec760)))||_0x3ec760;}['_onRefRangeChange'](){const _0x4e4af=_0x23c7d1,_0x2589eb=new _0x174f1b(),_0x1315fb=Vr(),_0x28fdbc=()=>{const _0x2a2ced=_0x3e56;_0x2589eb['dispose']();const _0x5a0fff=(_0x4d50d5,_0x52ad07,_0x3b714c,_0xf9323a)=>{const _0x4d8700=_0x3e56;let _0x7a86a7=[];switch(_0x4d50d5['id']){case _0x64b599[_0x4d8700(0x268)]:{_0x7a86a7=_0x335d68(_0x4d50d5,_0xf9323a);break;}case _0x64b599[_0x4d8700(0x395)]:{_0x7a86a7=_0x457ca0(_0x4d50d5,_0xf9323a);break;}case _0x64b599[_0x4d8700(0x1b1)]:{_0x7a86a7=_0x28ee26(_0x4d50d5,_0xf9323a);break;}case _0x64b599[_0x4d8700(0x178)]:{_0x7a86a7=_0x153d6f(_0x4d50d5,_0xf9323a);break;}case _0x64b599[_0x4d8700(0x191)]:{_0x7a86a7=_0x5892e7(_0x4d50d5,_0xf9323a);break;}case _0x64b599[_0x4d8700(0x1d8)]:{_0x7a86a7=_0x4c18ea(_0x4d50d5,_0xf9323a);break;}case _0x64b599[_0x4d8700(0x109)]:{_0x7a86a7=_0x2d85b0(_0x4d50d5,_0xf9323a);break;}case _0x64b599['RemoveColCommandId']:{_0x7a86a7=_0x6f4cbe(_0x4d50d5,_0xf9323a);break;}case _0x64b599[_0x4d8700(0x280)]:{_0x7a86a7=_0x135cee(_0x4d50d5,_0xf9323a);break;}}const _0x332eb4=_0x51d17a(_0x7a86a7,_0xf9323a),_0x5c0495=this[_0x4d8700(0x24e)][_0x4d8700(0xcc)](_0x52ad07);if(_0x5c0495&&_0x332eb4){const _0x3706f2={..._0x5c0495,'range':_0x332eb4};this[_0x4d8700(0x24e)][_0x4d8700(0x2f5)](_0x52ad07,_0x3706f2),_0x1315fb(()=>{const _0xa63523=_0x4d8700,_0x2fe764=this['_refRangeService'][_0xa63523(0x260)](_0x332eb4,_0xec9770=>(_0x2fe764[_0xa63523(0x230)](),_0x5a0fff(_0xec9770,_0x52ad07,_0x3b714c,_0x332eb4)));_0x2589eb[_0xa63523(0x27e)](_0x2fe764);});}return{'redos':[],'undos':[]};};this[_0x2a2ced(0x24e)][_0x2a2ced(0x28d)]((_0x53daa3,_0x125b18)=>{const _0x575bb4=_0x2a2ced,{range:_0xc2920a,sheetID:_0x473931}=_0x53daa3,_0x1e2f8c=this['_refRangeService']['registerRefRange'](_0xc2920a,_0x29a369=>(_0x1e2f8c[_0x575bb4(0x230)](),_0x5a0fff(_0x29a369,_0x125b18,_0x473931,_0xc2920a)));_0x2589eb['add'](_0x1e2f8c);});};this[_0x4e4af(0x216)](_0x546354(this[_0x4e4af(0x188)][_0x4e4af(0x7f)](()=>{_0x28fdbc();})));}['_toggleOnline'](){const _0x4f9de2=_0x23c7d1;var _0xa28b18,_0xff40d7;if(this['_online']=!0x0,((_0xa28b18=this[_0x4f9de2(0x21f)]['getFocusedUnit']())==null?void 0x0:_0xa28b18[_0x4f9de2(0x366)]())!==this[_0x4f9de2(0x347)])return;const _0x51827a=(_0xff40d7=this[_0x4f9de2(0xdc)][_0x4f9de2(0xcc)](_0x49c5af)[_0x4f9de2(0x1a4)]())==null?void 0x0:_0xff40d7[0x0],_0x2d1715=this[_0x4f9de2(0x21f)]['getCurrentUnitForType'](_0x12affe[_0x4f9de2(0x3de)])[_0x4f9de2(0x131)]();_0x51827a&&_0x2d1715&&this['_updateLocalCursor'](_0x2d1715['getSheetId'](),_0x51827a);}[_0x23c7d1(0x2a7)](){const _0x463cd1=_0x23c7d1;this[_0x463cd1(0x38f)]=!0x1;}};Dt=xr([fe(0x2,_0x4dc04f(_0x22396d)),fe(0x3,_0x4dc04f(Gt)),fe(0x4,_0x4dc04f(ce)),fe(0x5,_0x9f62da),fe(0x6,_0x45f63f),fe(0x7,_0x4dc04f(_0x37258f))],Dt);var Fr=Object[_0x23c7d1(0x252)],Wr=Object[_0x23c7d1(0x113)],Gr=(_0x380a25,_0x3c4769,_0x13b656,_0x457cd6)=>{const _0x3c4eeb=_0x23c7d1;for(var _0x5abe78=_0x457cd6>0x1?void 0x0:_0x457cd6?Wr(_0x3c4769,_0x13b656):_0x3c4769,_0x33dfe6=_0x380a25[_0x3c4eeb(0x22a)]-0x1,_0x3315a3;_0x33dfe6>=0x0;_0x33dfe6--)(_0x3315a3=_0x380a25[_0x33dfe6])&&(_0x5abe78=(_0x457cd6?_0x3315a3(_0x3c4769,_0x13b656,_0x5abe78):_0x3315a3(_0x5abe78))||_0x5abe78);return _0x457cd6&&_0x5abe78&&Fr(_0x3c4769,_0x13b656,_0x5abe78),_0x5abe78;},ut=(_0x405b82,_0x23fca3)=>(_0x1c5f18,_0x10ae74)=>_0x23fca3(_0x1c5f18,_0x10ae74,_0x405b82);let ve=class extends _0x55967c{constructor(_0x25896e,_0x16465b,_0x1f1dd8){const _0x1e3a07=_0x23c7d1;super(),l(this,_0x1e3a07(0xc5),new Map()),l(this,_0x1e3a07(0x218),new _0x41261f()),(this[_0x1e3a07(0x21f)]=_0x25896e,this[_0x1e3a07(0xdc)]=_0x16465b,this[_0x1e3a07(0x3ad)]=_0x1f1dd8,this[_0x1e3a07(0xad)]());}[_0x23c7d1(0x230)](){const _0x177d80=_0x23c7d1;super[_0x177d80(0x230)](),this[_0x177d80(0x218)]['complete'](),this[_0x177d80(0xc5)][_0x177d80(0x28d)](_0x526dcc=>_0x526dcc[_0x177d80(0x230)]());}[_0x23c7d1(0xe2)](_0x38dfa6){const _0x589678=_0x23c7d1;return this[_0x589678(0xc5)][_0x589678(0x143)](_0x38dfa6)?this['_entities'][_0x589678(0xcc)](_0x38dfa6)[_0x589678(0x1a9)]:this['_entityInit$'][_0x589678(0x254)](_0x5e384f(_0x1c14e4=>_0x1c14e4['unitID']===_0x38dfa6),_0x1fe2f3(_0x34755c=>_0x34755c[_0x589678(0x1a9)]));}['_init'](){const _0x15e4b5=_0x23c7d1;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x12affe['UNIVER_SHEET'])[_0x15e4b5(0x254)](_0x21580d(this[_0x15e4b5(0x1ee)]))['subscribe'](async _0x4c872c=>{const _0x385734=_0x15e4b5,_0x4a98af=_0x4c872c[_0x385734(0x366)](),_0x35661b=await this[_0x385734(0x23b)](_0x4a98af);this[_0x385734(0x218)]['next'](_0x35661b),this[_0x385734(0xc5)][_0x385734(0x2f5)](_0x4a98af,_0x35661b);}),this[_0x15e4b5(0x21f)][_0x15e4b5(0xd9)](_0x12affe[_0x15e4b5(0x195)])[_0x15e4b5(0x254)](_0x21580d(this[_0x15e4b5(0x1ee)]))[_0x15e4b5(0x254)](_0x5e384f(_0x58ea42=>!_0x58ea42[_0x15e4b5(0x366)]()['startsWith']('__')))[_0x15e4b5(0x7f)](async _0xaf2286=>{const _0x3c45b2=_0x15e4b5,_0x46d64b=_0xaf2286['getUnitId'](),_0x38932a=await this[_0x3c45b2(0x24c)](_0x46d64b);this['_entityInit$'][_0x3c45b2(0x183)](_0x38932a),this['_entities'][_0x3c45b2(0x2f5)](_0x46d64b,_0x38932a);}),_0x3a25d1(this[_0x15e4b5(0x21f)][_0x15e4b5(0x28c)](_0x12affe['UNIVER_DOC']),this['_univerInstanceService'][_0x15e4b5(0x28c)](_0x12affe[_0x15e4b5(0x3de)]))[_0x15e4b5(0x254)](_0x21580d(this['dispose$']))['subscribe'](_0x3eae82=>{const _0x279437=_0x15e4b5,_0x339f9d=_0x3eae82['getUnitId'](),_0x188810=this[_0x279437(0xc5)][_0x279437(0xcc)](_0x339f9d);_0x188810&&(_0x188810['dispose'](),this[_0x279437(0xc5)][_0x279437(0xd4)](_0x339f9d));});}async[_0x23c7d1(0x23b)](_0x9ea73f){const _0x43bdb5=_0x23c7d1,_0x47a4f3=await this[_0x43bdb5(0x3ad)]['requireSession'](_0x9ea73f),_0x5cdc71=this[_0x43bdb5(0xdc)][_0x43bdb5(0x1c8)](Dt,_0x9ea73f,_0x47a4f3);return _0x5cdc71[_0x43bdb5(0x2b8)](),_0x5cdc71;}async[_0x23c7d1(0x24c)](_0x34c1cf){const _0x6fb59b=_0x23c7d1,_0x32c85a=await this[_0x6fb59b(0x3ad)][_0x6fb59b(0x3f0)](_0x34c1cf),_0x4dad41=this[_0x6fb59b(0xdc)]['createInstance'](Ot,_0x34c1cf,_0x32c85a);return _0x4dad41[_0x6fb59b(0x2b8)](),_0x4dad41;}};ve=Gr([ut(0x0,_0x9f62da),ut(0x1,_0x4dc04f(_0x22396d)),ut(0x2,_0x4dc04f(he))],ve);const $e=0x14,fs=0xc8,dt=0x4,Yr=0x5;function Kr(_0x513108,_0x1de908){const _0x57d7ca=_0x23c7d1;let {radius:_0x2a9de6,width:_0xb3ac8,height:_0x26b736}=_0x1de908;_0x2a9de6=_0x2a9de6!=null?_0x2a9de6:0x0,_0xb3ac8=_0xb3ac8!=null?_0xb3ac8:0x1e,_0x26b736=_0x26b736!=null?_0x26b736:0x1e;let _0x30e95a=0x0,_0xf37a46=0x0,_0x355c1b=0x0;_0x30e95a=_0xf37a46=_0x355c1b=Math[_0x57d7ca(0x1e9)](_0x2a9de6,_0xb3ac8/0x2,_0x26b736/0x2),_0x513108[_0x57d7ca(0x3ef)](),_0x513108[_0x57d7ca(0x1c7)](_0x30e95a,0x0),_0x513108[_0x57d7ca(0x2ac)](_0xb3ac8-_0xf37a46,0x0),_0x513108[_0x57d7ca(0x3a5)](_0xb3ac8-_0xf37a46,_0xf37a46,_0xf37a46,Math['PI']*0x3/0x2,0x0,!0x1),_0x513108[_0x57d7ca(0x2ac)](_0xb3ac8,_0x26b736-_0x355c1b),_0x513108['arc'](_0xb3ac8-_0x355c1b,_0x26b736-_0x355c1b,_0x355c1b,0x0,Math['PI']/0x2,!0x1),_0x513108['lineTo'](0x0,_0x26b736),_0x513108[_0x57d7ca(0x2ac)](0x0,_0x30e95a),_0x513108[_0x57d7ca(0x3a5)](_0x30e95a,_0x30e95a,_0x30e95a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x513108[_0x57d7ca(0x29b)](),_0x1de908[_0x57d7ca(0x248)]&&(_0x513108[_0x57d7ca(0x251)](),_0x513108[_0x57d7ca(0x302)]=_0x1de908[_0x57d7ca(0x248)],_0x1de908[_0x57d7ca(0xa8)]==='evenodd'?_0x513108[_0x57d7ca(0x248)](_0x57d7ca(0x3bf)):_0x513108[_0x57d7ca(0x248)](),_0x513108[_0x57d7ca(0xe0)]());}class st extends _0x2b7442{constructor(_0x590e7d,_0x11f124){const _0x3317e9=_0x23c7d1;super(_0x590e7d,_0x11f124),l(this,_0x3317e9(0xca)),l(this,'text'),(this[_0x3317e9(0xca)]=_0x11f124==null?void 0x0:_0x11f124[_0x3317e9(0xca)],this['text']=_0x11f124==null?void 0x0:_0x11f124[_0x3317e9(0x26f)]);}static[_0x23c7d1(0x27a)](_0x38753e,_0x1cb937){const _0x589869=_0x23c7d1,{text:_0x117d29,color:_0x6312f6}=_0x1cb937;_0x38753e[_0x589869(0x251)](),_0x38753e['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x47fa3f=_0x38753e[_0x589869(0x312)](_0x117d29)[_0x589869(0x3ae)],_0x1009e3=Math['min'](_0x47fa3f+0x2*dt,fs);Kr(_0x38753e,{'height':$e,'radius':0x4,'width':_0x1009e3,'fill':_0x6312f6,'evented':!0x1}),_0x38753e['fillStyle']=_0x589869(0xb2);const _0x52c452=dt,_0x57d91a=$e-Yr,_0x221f88=fs-0x2*dt;if(_0x47fa3f>_0x221f88){let _0x3a7f23='',_0x7b8dbc=0x0;for(const _0x3719ab of _0x117d29){const _0x5bf5ec=_0x38753e[_0x589869(0x312)](_0x3719ab)[_0x589869(0x3ae)];if(_0x7b8dbc+_0x5bf5ec<=_0x221f88-_0x38753e[_0x589869(0x312)](_0x589869(0x2fc))['width'])_0x3a7f23+=_0x3719ab,_0x7b8dbc+=_0x5bf5ec;else{_0x3a7f23+='...';break;}}_0x38753e[_0x589869(0x32a)](_0x3a7f23,_0x52c452,_0x57d91a);}else _0x38753e[_0x589869(0x32a)](_0x117d29,_0x52c452,_0x57d91a);_0x38753e[_0x589869(0xe0)]();}['_draw'](_0x424923){const _0x3d4915=_0x23c7d1;st[_0x3d4915(0x27a)](_0x424923,this);}}const mt=_0x23c7d1(0x33e),Xr='collab-text-range-',qr=_0x23c7d1(0x10b),we=0x6,Jr=1.5,ft=0x4,zr=1.5,Zr=_0x23c7d1(0x1b0);class gs{constructor(_0x4466f0,_0x4d8e1a,_0x37f83b,_0x21c115){const _0x1d54d0=_0x23c7d1;l(this,'_shapes',[]),l(this,_0x1d54d0(0x29f),null),l(this,_0x1d54d0(0xe6),null),l(this,_0x1d54d0(0xab),null),l(this,_0x1d54d0(0x20f),null),l(this,_0x1d54d0(0x142),null),(this[_0x1d54d0(0xa6)]=_0x4466f0,this[_0x1d54d0(0xfa)]=_0x4d8e1a,this[_0x1d54d0(0x38c)]=_0x37f83b,this['_document']=_0x21c115,this[_0x1d54d0(0xfe)]());}set[_0x23c7d1(0x1d1)](_0x239f77){const _0x540682=_0x23c7d1;_0x239f77?(this['_anchorDot']&&this[_0x540682(0xab)][_0x540682(0x3fd)](),this[_0x540682(0xe6)]&&this[_0x540682(0xe6)]['show']()):(this[_0x540682(0xab)]&&this[_0x540682(0xab)]['show'](),this['_textBubble']&&this[_0x540682(0xe6)]['hide']());}['dispose'](){const _0x460d64=_0x23c7d1;for(const _0x3582ec of this[_0x460d64(0xd0)])_0x3582ec[_0x460d64(0x230)]();this[_0x460d64(0xe6)]&&this[_0x460d64(0xe6)][_0x460d64(0x230)](),this[_0x460d64(0xab)]&&this[_0x460d64(0xab)][_0x460d64(0x230)](),this['_anchor']&&this[_0x460d64(0x29f)][_0x460d64(0x230)](),this[_0x460d64(0x142)]&&this[_0x460d64(0x142)]();}['_render'](){const _0x4f4c73=_0x23c7d1;var _0x3f2a0e;const {_docSkeleton:_0x436df9,_document:_0x2c2233}=this,{color:_0x5b0b9e,name:_0x2b7198,ranges:_0x577e39}=this[_0x4f4c73(0xa6)],_0x3b9dd2=_0x2c2233['getOffsetConfig'](),{docsLeft:_0x5e516a,docsTop:_0x196990}=_0x3b9dd2,_0x3147d6=new _0x3744f9(_0x3b9dd2,_0x436df9);for(const {startOffset:_0xc87649,endOffset:_0x5e88c,collapsed:_0x194f0b,isActive:_0x50e6bd}of _0x577e39){const _0x211056=_0x436df9[_0x4f4c73(0x36c)](_0xc87649),_0x88d701=_0x436df9[_0x4f4c73(0x36c)](_0x5e88c);if(_0x50e6bd){const {contentBoxPointGroup:_0x35f93f}=_0x3147d6[_0x4f4c73(0xb9)](_0x88d701,_0x88d701);if(_0x35f93f[_0x4f4c73(0x22a)]===0x0)continue;this['_drawAnchor'](_0x5b0b9e,_0x35f93f,_0x5e516a,_0x196990,_0x2b7198),this['_eventUnsubscribe']=this[_0x4f4c73(0x7a)]();}if(!_0x194f0b&&_0x211056&&_0x88d701){if(_0x374be8(_0x211056,_0x88d701)){const _0x1b0f5f=new _0xca6cb5(_0x3b9dd2,_0x436df9),{pointGroup:_0x2dc26d}=(_0x3f2a0e=_0x1b0f5f[_0x4f4c73(0xb9)](_0x211056,_0x88d701))!=null?_0x3f2a0e:{};if(_0x2dc26d==null||_0x2dc26d['length']===0x0)continue;this[_0x4f4c73(0xc0)](_0x5b0b9e,_0x2dc26d,_0x5e516a,_0x196990);}else{const {contentBoxPointGroup:_0x521d7b}=_0x3147d6['getRangePointData'](_0x211056,_0x88d701);if(_0x521d7b[_0x4f4c73(0x22a)]===0x0)continue;this[_0x4f4c73(0x2d6)](_0x5b0b9e,_0x521d7b,_0x5e516a,_0x196990);}}}}[_0x23c7d1(0xcd)](_0x1e7637,_0x5f1f81,_0x1d62cb,_0x1abe63,_0x5c376d){const _0x235626=_0x23c7d1,_0x4590a6=this[_0x235626(0x11b)](_0x5f1f81),{left:_0x4fec25,top:_0x18d099,height:_0x41eb70}=_0x4590a6,_0x3c9302=this['_getScale'](),_0x3496ae=zr/_0x3c9302,_0x5e704e=new _0x4a28e4(mt+_0x344d53['generateRandomId'](we),{'left':_0x4fec25+_0x1d62cb-_0x3496ae,'top':_0x18d099+_0x1abe63,'height':_0x41eb70,'width':Jr,'fill':_0x1e7637||_0x4021a6(_0x4d0df0[_0x235626(0x39c)],0x0),'strokeWidth':_0x3496ae,'stroke':Zr,'evented':!0x0});this[_0x235626(0x29f)]=_0x5e704e,this[_0x235626(0xfa)]['addObject'](_0x5e704e,_0x448b14);const _0x14411d=new _0x4a28e4(mt+_0x344d53['generateRandomId'](we),{'left':_0x4fec25+_0x1d62cb-_0x3496ae,'top':_0x18d099+_0x1abe63-ft/0x2,'height':ft,'width':ft,'fill':_0x1e7637||_0x4021a6(_0x4d0df0['black'],0x0),'strokeWidth':0x0,'stroke':_0x1e7637||_0x4021a6(_0x4d0df0[_0x235626(0x39c)],0x0),'evented':!0x1});this[_0x235626(0xab)]=_0x14411d,this['_scene'][_0x235626(0x1dc)](_0x14411d,_0x448b14);const _0x3c3a05=new st(mt+_0x344d53['generateRandomId'](we),{'left':_0x4fec25+_0x1d62cb-_0x3496ae,'top':_0x18d099+_0x1abe63-$e,'text':_0x5c376d,'color':_0x1e7637});this[_0x235626(0xe6)]=_0x3c3a05,this[_0x235626(0xfa)][_0x235626(0x1dc)](_0x3c3a05,_0x448b14),this[_0x235626(0x1d1)]=!0x1;}[_0x23c7d1(0x7a)](){const _0x220693=_0x23c7d1,_0x52ffaf=this[_0x220693(0x29f)][_0x220693(0x1f2)][_0x220693(0x2b1)](()=>{const _0x2e8207=_0x220693;this[_0x2e8207(0x1d1)]=!0x0;}),_0x17fe3d=this[_0x220693(0x29f)][_0x220693(0x26c)][_0x220693(0x2b1)](()=>{const _0x15e4b2=_0x220693;this[_0x15e4b2(0x20f)]&&clearTimeout(this[_0x15e4b2(0x20f)]),this['_hideTimer']=setTimeout(()=>{const _0x152ed7=_0x15e4b2;this[_0x152ed7(0x1d1)]=!0x1;},0x7d0);});return()=>{const _0x577d3c=_0x220693;_0x52ffaf['unsubscribe'](),_0x17fe3d[_0x577d3c(0x31f)]();};}['_drawTextRange'](_0x4391b4,_0x37799f,_0x21894b,_0x4dc846){const _0x144a2e=_0x23c7d1,_0x381ae4=new _0x26117b(_0x4391b4)[_0x144a2e(0x3af)](0.2)[_0x144a2e(0x2f6)](),_0xbd97=new _0xa741b9(Xr+_0x344d53['generateRandomId'](we),{'pointsGroup':_0x37799f,'fill':_0x381ae4||_0x4021a6(_0x4d0df0['black'],0.2),'left':_0x21894b,'top':_0x4dc846,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x144a2e(0x3d1)](_0xbd97),this[_0x144a2e(0xfa)][_0x144a2e(0x1dc)](_0xbd97,_0x448b14);}[_0x23c7d1(0xc0)](_0x55d428,_0x3ac343,_0x443261,_0xb7f20a){const _0x4c121f=_0x23c7d1,_0x57cc05=new _0x26117b(_0x55d428)['setAlpha'](0.2)[_0x4c121f(0x2f6)](),_0x423dc2=new _0xa741b9(qr+_0x344d53[_0x4c121f(0x257)](we),{'pointsGroup':_0x3ac343,'fill':_0x57cc05||_0x4021a6(_0x4d0df0[_0x4c121f(0x39c)],0.2),'left':_0x443261,'top':_0xb7f20a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4c121f(0xd0)][_0x4c121f(0x3d1)](_0x423dc2),this[_0x4c121f(0xfa)][_0x4c121f(0x1dc)](_0x423dc2,_0x448b14);}['_getAnchorBounding'](_0x1fe526){const _0x432670=_0x1fe526[0x0],_0x5bf90c=_0x432670[0x0],_0x280add=_0x432670[0x2],{x:_0x15b83c,y:_0x126f99}=_0x5bf90c,{x:_0x864596,y:_0xecb87d}=_0x280add;return{'left':_0x15b83c,'top':_0x126f99,'width':_0x864596-_0x15b83c,'height':_0xecb87d-_0x126f99};}['_getScale'](){const _0x46e33e=_0x23c7d1,{scaleX:_0x477984,scaleY:_0x27f00f}=this[_0x46e33e(0xfa)]['getAncestorScale']();return Math['max'](_0x477984,_0x27f00f);}}var Qr=Object[_0x23c7d1(0x252)],eo=Object[_0x23c7d1(0x113)],to=(_0x1aab54,_0x24975a,_0x27cf91,_0x5e2bd4)=>{const _0x1ad7fe=_0x23c7d1;for(var _0x45aa33=_0x5e2bd4>0x1?void 0x0:_0x5e2bd4?eo(_0x24975a,_0x27cf91):_0x24975a,_0x1c53c8=_0x1aab54[_0x1ad7fe(0x22a)]-0x1,_0x3e1b5f;_0x1c53c8>=0x0;_0x1c53c8--)(_0x3e1b5f=_0x1aab54[_0x1c53c8])&&(_0x45aa33=(_0x5e2bd4?_0x3e1b5f(_0x24975a,_0x27cf91,_0x45aa33):_0x3e1b5f(_0x45aa33))||_0x45aa33);return _0x5e2bd4&&_0x45aa33&&Qr(_0x24975a,_0x27cf91,_0x45aa33),_0x45aa33;},ke=(_0x43ded2,_0x54687d)=>(_0x5badb8,_0x3b1ac8)=>_0x54687d(_0x5badb8,_0x3b1ac8,_0x43ded2);let wt=class extends _0x55967c{constructor(_0x2dff20,_0xa29eca,_0x1fcd87,_0x484813,_0x552cb6){const _0x3da75c=_0x23c7d1;super(),l(this,_0x3da75c(0xe7),[]),l(this,_0x3da75c(0x348),[]),(this[_0x3da75c(0x3da)]=_0x2dff20,this['_docSkeletonManagerService']=_0xa29eca,this[_0x3da75c(0x3d0)]=_0x1fcd87,this[_0x3da75c(0x309)]=_0x484813,this['_themeService']=_0x552cb6,this[_0x3da75c(0xad)]());}['_init'](){const _0x178bc7=_0x23c7d1,_0x5ca786=this['_context'][_0x178bc7(0x2f2)],_0x3cc697=this[_0x178bc7(0x1dd)];this[_0x178bc7(0x216)](_0x3c4bb8([this[_0x178bc7(0x3d0)]['getCollabCursors$'](_0x5ca786),this[_0x178bc7(0x2e3)]['currentTheme$']])[_0x178bc7(0x254)](_0x2abcf2(([_0x2a7052,_0x5a25c2])=>({'skeleton':_0x3cc697[_0x178bc7(0x2e8)](),'cursors':[..._0x2a7052[_0x178bc7(0x2a6)]()][_0x178bc7(0x32b)](_0x1ee5a5=>({..._0x1ee5a5,'color':_0x5a25c2[_0x1ee5a5[_0x178bc7(0xca)]]}))})))['subscribe'](_0x32d05b=>{const _0x500c64=_0x178bc7;if(this[_0x500c64(0x284)](),_0x32d05b){const {skeleton:_0x5be721,cursors:_0x2c880b}=_0x32d05b;this['_updateCollabCursors'](_0x5be721,_0x2c880b);}})),this[_0x178bc7(0x295)](),this[_0x178bc7(0x349)]();}['_updateCollabCursors'](_0x28e8c5,_0x4f76aa){const _0x2a3df5=_0x23c7d1,{scene:_0x19c9d1,mainComponent:_0x19e321}=this[_0x2a3df5(0x3da)],_0x358c7d=_0x4f76aa[_0x2a3df5(0x396)](_0x1bbeb5=>new gs(_0x1bbeb5,_0x19c9d1,_0x28e8c5,_0x19e321));this[_0x2a3df5(0xe7)]=_0x358c7d,this[_0x2a3df5(0x348)]=_0x4f76aa;}[_0x23c7d1(0x336)](){const _0x4c9099=_0x23c7d1;this[_0x4c9099(0x284)]();const {scene:_0x3c3814,mainComponent:_0x2021ad}=this[_0x4c9099(0x3da)],_0x44150a=this[_0x4c9099(0x1dd)]['getSkeleton'](),_0x4bb0d2=this[_0x4c9099(0x348)]['map'](_0x25cd4a=>new gs(_0x25cd4a,_0x3c3814,_0x44150a,_0x2021ad));this['_cursorShapes']=_0x4bb0d2;}['_removeCollabCursors'](){const _0x585d39=_0x23c7d1;this['_cursorShapes']['forEach'](_0x2248c3=>_0x2248c3[_0x585d39(0x230)]()),this[_0x585d39(0xe7)]=[];}[_0x23c7d1(0x349)](){const _0x4bbe03=_0x23c7d1,_0xa332d2=[_0x3568df['id']];this[_0x4bbe03(0x216)](this['_commandService'][_0x4bbe03(0x11c)](_0x15279c=>{const _0x39f2ae=_0x4bbe03;_0xa332d2['includes'](_0x15279c['id'])&&_0x15279c[_0x39f2ae(0x16d)]['unitId']===this[_0x39f2ae(0x3da)][_0x39f2ae(0x2f2)]&&this['_refreshCollabCursors']();}));}[_0x23c7d1(0x295)](){const _0x14dde6=_0x23c7d1;this['disposeWithMe'](_0x3b2366(this['_context'][_0x14dde6(0x101)][_0x14dde6(0x3b5)])[_0x14dde6(0x254)](_0x3cca70(_0xe55f53=>_0xe55f53[_0x14dde6(0x340)]===_0x3757d6[_0x14dde6(0x184)]),_0x366ff2(0x10))['subscribe'](()=>{const _0x372326=_0x14dde6;this[_0x372326(0x336)]();}));}};wt=to([ke(0x1,_0x4dc04f(_0x1826bf)),ke(0x2,_0x4dc04f(ve)),ke(0x3,_0x45f63f),ke(0x4,_0x4dc04f(_0x499eb8))],wt);const so=0x1,io=1.5;class no extends _0x2b7442{constructor(_0x233f68,_0x5a1e06){const _0x50cc0c=_0x23c7d1;super(_0x233f68,_0x5a1e06),l(this,_0x50cc0c(0x1e3)),l(this,'_hovered',!0x1),l(this,_0x50cc0c(0x9c)),l(this,_0x50cc0c(0x18b),''),l(this,_0x50cc0c(0x201),_0x50cc0c(0x365)),l(this,'_backgroundColor'),(_0x5a1e06&&this[_0x50cc0c(0x35c)](_0x5a1e06),this[_0x50cc0c(0x1f2)][_0x50cc0c(0x2b1)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x50cc0c(0x26c)][_0x50cc0c(0x2b1)](()=>this[_0x50cc0c(0x35c)]({'hovered':!0x1})));}[_0x23c7d1(0x35c)](_0x3fa5e8){const _0x5134b4=_0x23c7d1;var _0x11b929,_0x29cf4d,_0x2a4253,_0x4101a9,_0x589c3c,_0x152096;this[_0x5134b4(0x1e3)]=(_0x11b929=_0x3fa5e8['color'])!=null?_0x11b929:this[_0x5134b4(0x1e3)],this[_0x5134b4(0x32f)]=(_0x29cf4d=_0x3fa5e8[_0x5134b4(0x407)])!=null?_0x29cf4d:this[_0x5134b4(0x32f)],this[_0x5134b4(0x9c)]=(_0x2a4253=_0x3fa5e8[_0x5134b4(0x2cd)])!=null?_0x2a4253:this['_range'],this['_name']=(_0x4101a9=_0x3fa5e8[_0x5134b4(0x115)])!=null?_0x4101a9:this[_0x5134b4(0x18b)],this[_0x5134b4(0x201)]=(_0x589c3c=_0x3fa5e8[_0x5134b4(0x1a5)])!=null?_0x589c3c:this[_0x5134b4(0x201)],this['_backgroundColor']=(_0x152096=_0x3fa5e8[_0x5134b4(0x30f)])!=null?_0x152096:this['_backgroundColor'],this[_0x5134b4(0xc3)]({'width':_0x3fa5e8[_0x5134b4(0x3ae)],'height':_0x3fa5e8[_0x5134b4(0x35a)]});}['onMouseMove'](_0x37040e){const _0x1e7f1d=_0x23c7d1,{row:_0x3e0192,column:_0x30846c}=_0x37040e;if(_0x3e0192>=this[_0x1e7f1d(0x9c)][_0x1e7f1d(0x208)]&&_0x3e0192<=this[_0x1e7f1d(0x9c)][_0x1e7f1d(0x19b)]&&_0x30846c>=this[_0x1e7f1d(0x9c)][_0x1e7f1d(0x213)]&&_0x30846c<=this[_0x1e7f1d(0x9c)][_0x1e7f1d(0x10e)]){this[_0x1e7f1d(0x35c)]({'hovered':!0x0});return;}this[_0x1e7f1d(0x35c)]({'hovered':!0x1});}[_0x23c7d1(0x99)](_0x426cb4){return!0x1;}[_0x23c7d1(0x3ac)](_0x3399a3){const _0x4f331e=_0x23c7d1;_0x4a28e4[_0x4f331e(0x27a)](_0x3399a3,{'width':this['width'],'height':this[_0x4f331e(0x35a)],'strokeWidth':io,'stroke':this[_0x4f331e(0x1e3)],'evented':!0x1,'fill':this[_0x4f331e(0x3dc)]}),this[_0x4f331e(0x32f)]&&(_0x3399a3[_0x4f331e(0x251)](),_0x3399a3[_0x4f331e(0x409)](0x1,0x0,0x0,0x1,this[_0x4f331e(0x3ae)],this['_labelPosition']==='bottom'?0x0:-$e),st[_0x4f331e(0x27a)](_0x3399a3,{'text':this[_0x4f331e(0x18b)],'color':this[_0x4f331e(0x1e3)]}),_0x3399a3['restore']());}}var ro=Object['defineProperty'],oo=Object[_0x23c7d1(0x113)],ao=(_0x39ae26,_0x36bee9,_0x2c27ca,_0x5468c1)=>{const _0x2c1feb=_0x23c7d1;for(var _0x940281=_0x5468c1>0x1?void 0x0:_0x5468c1?oo(_0x36bee9,_0x2c27ca):_0x36bee9,_0x6ff9e2=_0x39ae26[_0x2c1feb(0x22a)]-0x1,_0x157a5a;_0x6ff9e2>=0x0;_0x6ff9e2--)(_0x157a5a=_0x39ae26[_0x6ff9e2])&&(_0x940281=(_0x5468c1?_0x157a5a(_0x36bee9,_0x2c27ca,_0x940281):_0x157a5a(_0x940281))||_0x940281);return _0x5468c1&&_0x940281&&ro(_0x36bee9,_0x2c27ca,_0x940281),_0x940281;},gt=(_0x56cef2,_0x44377b)=>(_0x4584b3,_0x1a1da9)=>_0x44377b(_0x4584b3,_0x1a1da9,_0x56cef2);const co=0x1389;let Pt=class extends _0x55967c{constructor(_0x3bb6a6,_0x1e8a90,_0x5db168,_0x356e6c){const _0xa0020b=_0x23c7d1;super(),l(this,_0xa0020b(0x348),new Set()),l(this,_0xa0020b(0x2d9),null),(this[_0xa0020b(0x3da)]=_0x3bb6a6,this[_0xa0020b(0x11f)]=_0x1e8a90,this['_collabCursorController']=_0x5db168,this['_themeService']=_0x356e6c,this['_init']());}[_0x23c7d1(0xad)](){const _0x34c579=_0x23c7d1;this[_0x34c579(0x11f)][_0x34c579(0x1a7)][_0x34c579(0x254)](_0x1f0b24(this[_0x34c579(0x1ee)]),_0x4ca445(_0x1e055a=>{const _0x1b5ace=_0x34c579;if(_0x1e055a){const _0x5d364a=_0x1e055a[_0x1b5ace(0x100)];return _0x3c4bb8(this['_collabCursorController']['getCollabCursors$'](this['_context'][_0x1b5ace(0x2f2)]),this[_0x1b5ace(0x2e3)]['currentTheme$'])[_0x1b5ace(0x254)](_0x2abcf2(([_0x3d9ef1,_0x57165e])=>{const _0x4c194d=_0x1b5ace,_0x4e2dea=new Map();return _0x3d9ef1[_0x4c194d(0x28d)]((_0x1cf344,_0xdf566)=>{const _0x2f4f18=_0x4c194d;if(_0x1cf344[_0x2f4f18(0x281)]===_0x5d364a){const _0x97037a={..._0x1cf344};_0x97037a[_0x2f4f18(0xca)]=_0x57165e[_0x1cf344[_0x2f4f18(0xca)]],_0x4e2dea[_0x2f4f18(0x2f5)](_0xdf566,_0x97037a);}}),{'skeleton':_0x1e055a,'cursors':_0x4e2dea};}));}return _0xaed9b5({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x277cd6,cursors:_0x5e30a8})=>{const _0x3ad528=_0x34c579;this[_0x3ad528(0x284)](),_0x277cd6&&this['_updateCollabCursors'](_0x277cd6,_0x5e30a8);}),this[_0x34c579(0x11f)][_0x34c579(0x1a7)]['subscribe'](_0x25de61=>{const _0x9d6e6a=_0x34c579;if(_0x25de61==null)return;const {skeleton:_0x4b6b03}=_0x25de61,{scene:_0x2b2b48}=this[_0x9d6e6a(0x3da)];_0x2b2b48[_0x9d6e6a(0x1fd)][_0x9d6e6a(0x2b1)](_0x2a1758(_0x9b2925=>{const _0x37f950=_0x9d6e6a;var _0x5bb20e,_0x16893c;const {offsetX:_0x43c647,offsetY:_0x264105}=_0x9b2925,{x:_0x4bd02d,y:_0x3e84a5}=_0x2b2b48['getRelativeToViewportCoord'](_0x4052cb['FromArray']([_0x43c647,_0x264105])),{scaleX:_0x483012,scaleY:_0x148f6f}=_0x2b2b48[_0x37f950(0x3cd)](),_0x53e463=_0x2b2b48[_0x37f950(0xf1)](_0x42c4cf['VIEW_MAIN']),_0x66456c=_0x2b2b48[_0x37f950(0x138)](_0x4052cb['FromArray']([_0x4bd02d,_0x3e84a5]),_0x53e463),_0x459a10=_0x4b6b03['getCellPositionByOffset'](_0x43c647,_0x264105,_0x483012,_0x148f6f,_0x66456c);((_0x5bb20e=this[_0x37f950(0x2d9)])==null?void 0x0:_0x5bb20e[_0x37f950(0x372)])===_0x459a10[_0x37f950(0x372)]&&((_0x16893c=this['_lastPointer'])==null?void 0x0:_0x16893c['row'])===_0x459a10[_0x37f950(0x23d)]||this['_cursors']['forEach'](_0x21894e=>{_0x21894e['onMouseMove'](_0x459a10);});},0x64));});}['_updateCollabCursors'](_0x5b27b8,_0x4de7de){const _0x2274b9=_0x23c7d1;var _0x59af73;const _0x5609f2=(_0x59af73=this['_sheetSkeletonManagerService'][_0x2274b9(0x2e1)]())==null?void 0x0:_0x59af73[_0x2274b9(0x3d3)];if(!_0x5609f2)return;const _0x63ac85=this['_getSheetObject']();if(!_0x63ac85)return;this[_0x2274b9(0x348)][_0x2274b9(0x28d)](_0x627f8f=>{const _0x4f7cf2=_0x2274b9;_0x627f8f[_0x4f7cf2(0x3fe)]();});const {scene:_0x44e70d}=_0x63ac85,_0xf007f6=ho(Array[_0x2274b9(0xba)](_0x4de7de[_0x2274b9(0x2a6)]()))[_0x2274b9(0x396)](_0x22ad94=>{const _0x46c274=_0x2274b9,{color:_0x203fb5,range:_0x4258ec,name:_0x2aabd1,selection:_0x57b62e,sheetID:_0x84e887}=_0x22ad94,{startColumn:_0x1b83c4,startRow:_0x514707,endColumn:_0xe221c7,endRow:_0x4b4fc6}=_0x4258ec,_0x43b59e=_0x45a831(_0x514707,_0x1b83c4,_0x44e70d,_0x5609f2),_0x24cb9d=_0x45a831(_0x4b4fc6,_0xe221c7,_0x44e70d,_0x5609f2),{columnHeaderHeightAndMarginTop:_0x5ccf7d}=_0x5609f2,{startX:_0x3e28a1,startY:_0x4f7991}=_0x43b59e,{endX:_0x42d12d,endY:_0x4c9eb8}=_0x24cb9d,_0x28c900=_0x42d12d-_0x3e28a1,_0x65cba9=_0x4c9eb8-_0x4f7991,_0x4d2b03={'labelPosition':_0x4f7991-_0x5ccf7d>=$e?_0x46c274(0x365):_0x46c274(0x329),'sheetID':_0x84e887,'range':_0x4258ec,'color':_0x203fb5,'name':_0x2aabd1,'selection':_0x57b62e,'left':_0x3e28a1,'top':_0x4f7991,'width':_0x28c900,'height':_0x65cba9,'evented':!0x1,'zIndex':co};return new no(_0x2aabd1,_0x4d2b03);});_0x44e70d[_0x2274b9(0x1c5)](_0xf007f6,so),this['_cursors']=new Set(_0xf007f6);}['_removeCollabCursors'](){const _0x153e46=_0x23c7d1;var _0x397c7a;(_0x397c7a=this['_cursors'])==null||_0x397c7a['forEach'](_0x4f74db=>_0x4f74db[_0x153e46(0x230)]());}['_getSheetObject'](){const _0x4b061a=_0x23c7d1;return _0x5b9a2d(this[_0x4b061a(0x3da)][_0x4b061a(0x190)],this['_context']);}};Pt=ao([gt(0x1,_0x4dc04f(_0x57ecbe)),gt(0x2,_0x4dc04f(ve)),gt(0x3,_0x4dc04f(_0x499eb8))],Pt);function ho(_0x5b8f39){const _0x33cee=_0x23c7d1,_0x57b31c=new Map();return _0x5b8f39[_0x33cee(0x28d)](_0x4573b3=>{const _0x4266b9=_0x33cee;if(_0x57b31c['has'](_0x4573b3[_0x4266b9(0x20e)])){const _0x249ae8=_0x57b31c[_0x4266b9(0xcc)](_0x4573b3['selection']);_0x249ae8['name']+=',\x20'+_0x4573b3[_0x4266b9(0x115)];}else _0x57b31c[_0x4266b9(0x2f5)](_0x4573b3[_0x4266b9(0x20e)],_0x4573b3);}),Array[_0x33cee(0xba)](_0x57b31c[_0x33cee(0x2a6)]());}var N=function(){const _0x4e1b9b=_0x23c7d1;return N=Object[_0x4e1b9b(0x2f9)]||function(_0x2a1337){const _0x49c628=_0x4e1b9b;for(var _0x1efede,_0x13fe92=0x1,_0x29405f=arguments[_0x49c628(0x22a)];_0x13fe92<_0x29405f;_0x13fe92++){_0x1efede=arguments[_0x13fe92];for(var _0x27a514 in _0x1efede)Object['prototype'][_0x49c628(0x1ad)]['call'](_0x1efede,_0x27a514)&&(_0x2a1337[_0x27a514]=_0x1efede[_0x27a514]);}return _0x2a1337;},N[_0x4e1b9b(0x2cb)](this,arguments);},lo=function(_0x9c4a8d,_0x4e986c){const _0x195df0=_0x23c7d1;var _0x391b23={};for(var _0x5ced2d in _0x9c4a8d)Object[_0x195df0(0x94)][_0x195df0(0x1ad)][_0x195df0(0x385)](_0x9c4a8d,_0x5ced2d)&&_0x4e986c[_0x195df0(0x168)](_0x5ced2d)<0x0&&(_0x391b23[_0x5ced2d]=_0x9c4a8d[_0x5ced2d]);if(_0x9c4a8d!=null&&typeof Object[_0x195df0(0x1ea)]=='function'){for(var _0x8b1982=0x0,_0x5ced2d=Object[_0x195df0(0x1ea)](_0x9c4a8d);_0x8b1982<_0x5ced2d['length'];_0x8b1982++)_0x4e986c['indexOf'](_0x5ced2d[_0x8b1982])<0x0&&Object[_0x195df0(0x94)][_0x195df0(0xcb)][_0x195df0(0x385)](_0x9c4a8d,_0x5ced2d[_0x8b1982])&&(_0x391b23[_0x5ced2d[_0x8b1982]]=_0x9c4a8d[_0x5ced2d[_0x8b1982]]);}return _0x391b23;},Yt=_0x261ce7(function(_0x412ee9,_0x977e35){const _0x49f2bf=_0x23c7d1;var _0x37e3a9=_0x412ee9[_0x49f2bf(0x249)],_0x57aa2a=_0x412ee9['id'],_0x5b46f8=_0x412ee9[_0x49f2bf(0x137)],_0x2cb036=_0x412ee9[_0x49f2bf(0x1e0)],_0x482a05=lo(_0x412ee9,[_0x49f2bf(0x249),'id','className',_0x49f2bf(0x1e0)]),_0x3d3dfb=_0x49f2bf(0x123)[_0x49f2bf(0x370)](_0x57aa2a,'\x20')[_0x49f2bf(0x370)](_0x5b46f8||'')[_0x49f2bf(0x2c7)](),_0x4538b4=_0xe6ffb4('_'[_0x49f2bf(0x370)](mo()));return Xs(_0x37e3a9,''['concat'](_0x57aa2a),{'defIds':_0x37e3a9[_0x49f2bf(0x2f0)],'idSuffix':_0x4538b4[_0x49f2bf(0x228)]},N({'ref':_0x977e35,'className':_0x3d3dfb},_0x482a05),_0x2cb036);});function Xs(_0x524c21,_0x2049b0,_0x51fdf3,_0x5c7cca,_0x1f69ec){const _0x2b4298=_0x23c7d1;return _0x32d714(_0x524c21[_0x2b4298(0xa9)],N(N({'key':_0x2049b0},_o(_0x524c21,_0x51fdf3,_0x1f69ec)),_0x5c7cca),(uo(_0x524c21,_0x51fdf3)[_0x2b4298(0x283)]||[])[_0x2b4298(0x396)](function(_0x1ee14b,_0x25dfbb){const _0x56b00a=_0x2b4298;return Xs(_0x1ee14b,''[_0x56b00a(0x370)](_0x2049b0,'-')[_0x56b00a(0x370)](_0x524c21['tag'],'-')[_0x56b00a(0x370)](_0x25dfbb),_0x51fdf3,void 0x0,_0x1f69ec);}));}function _0x3e56(_0x4e83de,_0x5a68a2){const _0x2b411f=_0x2b41();return _0x3e56=function(_0x3e569e,_0xb69c10){_0x3e569e=_0x3e569e-0x7a;let _0x141db1=_0x2b411f[_0x3e569e];return _0x141db1;},_0x3e56(_0x4e83de,_0x5a68a2);}function _o(_0xd4e55c,_0xcc3727,_0x476e3d){const _0xdc55b4=_0x23c7d1;var _0x2844d8=N({},_0xd4e55c[_0xdc55b4(0x354)]);_0x476e3d!=null&&_0x476e3d[_0xdc55b4(0x2c8)]&&_0x2844d8['fill']===_0xdc55b4(0x2c8)&&(_0x2844d8[_0xdc55b4(0x248)]=_0x476e3d[_0xdc55b4(0x2c8)]);var _0x11b895=_0xcc3727[_0xdc55b4(0x2f0)];return!_0x11b895||_0x11b895['length']===0x0||(_0xd4e55c[_0xdc55b4(0xa9)]===_0xdc55b4(0x8c)&&_0x2844d8[_0xdc55b4(0x285)]&&(_0x2844d8['xlink:href']=_0x2844d8[_0xdc55b4(0x285)]+_0xcc3727[_0xdc55b4(0xd6)]),Object[_0xdc55b4(0x3fc)](_0x2844d8)[_0xdc55b4(0x28d)](function(_0x1d2e92){const _0x55c901=_0xdc55b4;var _0x88def0=_0x1d2e92[0x0],_0x3129f1=_0x1d2e92[0x1];typeof _0x3129f1=='string'&&(_0x2844d8[_0x88def0]=_0x3129f1['replace'](/url\(#(.*)\)/,_0x55c901(0x93)[_0x55c901(0x370)](_0xcc3727[_0x55c901(0xd6)],')')));})),_0x2844d8;}function uo(_0x3beb59,_0x2c1b5c){const _0x47c62d=_0x23c7d1;var _0x16bf17,_0x7f757=_0x2c1b5c['defIds'];return!_0x7f757||_0x7f757[_0x47c62d(0x22a)]===0x0?_0x3beb59:_0x3beb59['tag']==='defs'&&(!((_0x16bf17=_0x3beb59[_0x47c62d(0x283)])===null||_0x16bf17===void 0x0)&&_0x16bf17[_0x47c62d(0x22a)])?N(N({},_0x3beb59),{'children':_0x3beb59['children'][_0x47c62d(0x396)](function(_0x300dea){const _0x3d473b=_0x47c62d;return typeof _0x300dea[_0x3d473b(0x354)]['id']=='string'&&_0x7f757&&_0x7f757[_0x3d473b(0x168)](_0x300dea['attrs']['id'])>-0x1?N(N({},_0x300dea),{'attrs':N(N({},_0x300dea[_0x3d473b(0x354)]),{'id':_0x300dea[_0x3d473b(0x354)]['id']+_0x2c1b5c[_0x3d473b(0xd6)]})}):_0x300dea;})}):_0x3beb59;}function mo(){const _0x52cf83=_0x23c7d1;return Math[_0x52cf83(0xa2)]()[_0x52cf83(0x3df)](0x24)[_0x52cf83(0x22c)](0x2,0x8);}Yt[_0x23c7d1(0x1df)]=_0x23c7d1(0x3ea);var fo={'tag':'svg','attrs':{'fill':'none','viewBox':_0x23c7d1(0x305),'width':'1em','height':_0x23c7d1(0x2d5)},'children':[{'tag':'g','attrs':{'clipPath':_0x23c7d1(0x3b1)},'children':[{'tag':_0x23c7d1(0x1ba),'attrs':{'stroke':_0x23c7d1(0x3a3),'d':_0x23c7d1(0xe9),'strokeLinecap':_0x23c7d1(0x103),'strokeLinejoin':_0x23c7d1(0x103),'strokeWidth':1.2}}]},{'tag':_0x23c7d1(0x1b2),'attrs':{},'children':[{'tag':_0x23c7d1(0x359),'attrs':{'id':_0x23c7d1(0x320)},'children':[{'tag':_0x23c7d1(0x1ba),'attrs':{'fill':'#fff','d':_0x23c7d1(0x3b0)}}]}]}],'defIds':[_0x23c7d1(0x320)]},qs=_0x261ce7(function(_0x80150a,_0xab628e){const _0x1e8f4a=_0x23c7d1;return _0x32d714(Yt,Object['assign']({},_0x80150a,{'id':_0x1e8f4a(0x270),'ref':_0xab628e,'icon':fo}));});qs['displayName']=_0x23c7d1(0xb8);var go={'tag':_0x23c7d1(0x88),'attrs':{'fill':_0x23c7d1(0x81),'viewBox':_0x23c7d1(0x3f7),'width':_0x23c7d1(0x2d5),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x23c7d1(0x364)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x23c7d1(0x10d),'strokeLinecap':_0x23c7d1(0x103),'strokeLinejoin':_0x23c7d1(0x103),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x23c7d1(0x116)},'children':[{'tag':_0x23c7d1(0x1ba),'attrs':{'fill':'#fff','d':_0x23c7d1(0x3b0),'transform':_0x23c7d1(0x2ae)}}]}]}],'defIds':[_0x23c7d1(0x116)]},Js=_0x261ce7(function(_0x3de83d,_0x544d1a){const _0x4c0bbc=_0x23c7d1;return _0x32d714(Yt,Object['assign']({},_0x3de83d,{'id':_0x4c0bbc(0x205),'ref':_0x544d1a,'icon':go}));});Js[_0x23c7d1(0x1df)]=_0x23c7d1(0x3ab);function zs(_0x8d055f){const _0x10abaa=_0x23c7d1;var _0x56a5ea,_0x791c8a,_0x490968='';if(typeof _0x8d055f==_0x10abaa(0x2af)||typeof _0x8d055f=='number')_0x490968+=_0x8d055f;else{if(typeof _0x8d055f==_0x10abaa(0x1d2)){if(Array[_0x10abaa(0x1a0)](_0x8d055f)){var _0x336ddc=_0x8d055f[_0x10abaa(0x22a)];for(_0x56a5ea=0x0;_0x56a5ea<_0x336ddc;_0x56a5ea++)_0x8d055f[_0x56a5ea]&&(_0x791c8a=zs(_0x8d055f[_0x56a5ea]))&&(_0x490968&&(_0x490968+='\x20'),_0x490968+=_0x791c8a);}else{for(_0x791c8a in _0x8d055f)_0x8d055f[_0x791c8a]&&(_0x490968&&(_0x490968+='\x20'),_0x490968+=_0x791c8a);}}}return _0x490968;}function So(){const _0x3b667c=_0x23c7d1;for(var _0x7aae,_0xb6182d,_0x2c3031=0x0,_0x55cdb6='',_0x4618d8=arguments[_0x3b667c(0x22a)];_0x2c3031<_0x4618d8;_0x2c3031++)(_0x7aae=arguments[_0x2c3031])&&(_0xb6182d=zs(_0x7aae))&&(_0x55cdb6&&(_0x55cdb6+='\x20'),_0x55cdb6+=_0xb6182d);return _0x55cdb6;}const po=_0x23c7d1(0xb6),vo=_0x23c7d1(0x37f),Io=_0x23c7d1(0x199),Eo=_0x23c7d1(0x15a),Co=_0x23c7d1(0x1a8),Pe={'onlineStatusIcon':po,'onlineStatusTitle':vo,'onlineStatus':Io,'online':Eo,'offline':Co};function bo(_0x211abc){const _0x456b0d=_0x23c7d1;switch(_0x211abc){case P['OFFLINE']:return'collabStatus.offline';case P[_0x456b0d(0x322)]:return _0x456b0d(0x3d8);case P[_0x456b0d(0x2d1)]:return _0x456b0d(0x22e);case P[_0x456b0d(0x1e5)]:return _0x456b0d(0x80);case P[_0x456b0d(0x151)]:case P[_0x456b0d(0x20b)]:return _0x456b0d(0x314);case P[_0x456b0d(0x1a6)]:case P[_0x456b0d(0x1a3)]:return _0x456b0d(0xb5);}}function To(_0x1bf311){const _0x142847=_0x23c7d1,{status$:_0x5a4fbf}=_0x1bf311,_0x49e56b=_0x3eb386(_0x5a4fbf,P[_0x142847(0x1e5)]),_0x436103=_0x33243a(_0x19fdc8),_0x165dc5=_0x33243a(he),_0x6c97b8=_0x49e56b!==P[_0x142847(0x346)],_0x53ac94=_0x436103['t'](bo(_0x49e56b)),_0x53a61b=So(Pe[_0x142847(0x8e)],{[Pe[_0x142847(0x3bb)]]:_0x6c97b8,[Pe[_0x142847(0x3f8)]]:!_0x6c97b8}),_0x447c52=_0x6c97b8?_0x483511[_0x142847(0x3a7)](Js,null):_0x483511['createElement'](qs,null),_0x4b629f=_0xb5f8c6(()=>{const _0x4a1b9d=_0x142847;_0x6c97b8||_0x165dc5[_0x4a1b9d(0x2ad)]();},[_0x6c97b8,_0x165dc5]);function _0x359e12(){const _0x82bce1=_0x142847;return _0x483511[_0x82bce1(0x3a7)](_0x82bce1(0x403),{'className':_0x53a61b,'onClick':_0x4b629f},_0x483511['createElement'](_0x82bce1(0x403),{'className':Pe[_0x82bce1(0x29d)]},_0x447c52),_0x483511[_0x82bce1(0x3a7)](_0x82bce1(0x403),{'className':Pe[_0x82bce1(0xee)]},_0x53ac94));}return _0x6c97b8?_0x359e12():_0x483511[_0x142847(0x3a7)](_0x3dab34,{'title':_0x436103['t'](_0x142847(0x164))},_0x359e12());}var Ro=Object[_0x23c7d1(0x252)],Oo=Object[_0x23c7d1(0x113)],Do=(_0x425704,_0x5189cf,_0xd0e5d,_0x2df63b)=>{const _0x2b2ac5=_0x23c7d1;for(var _0x4bfabb=_0x2df63b>0x1?void 0x0:_0x2df63b?Oo(_0x5189cf,_0xd0e5d):_0x5189cf,_0x3ff360=_0x425704[_0x2b2ac5(0x22a)]-0x1,_0x4f8579;_0x3ff360>=0x0;_0x3ff360--)(_0x4f8579=_0x425704[_0x3ff360])&&(_0x4bfabb=(_0x2df63b?_0x4f8579(_0x5189cf,_0xd0e5d,_0x4bfabb):_0x4f8579(_0x4bfabb))||_0x4bfabb);return _0x2df63b&&_0x4bfabb&&Ro(_0x5189cf,_0xd0e5d,_0x4bfabb),_0x4bfabb;},Be=(_0xbe37b,_0x1567bc)=>(_0x4fdd17,_0x5e642c)=>_0x1567bc(_0x4fdd17,_0x5e642c,_0xbe37b);function _0x2b41(){const _0x2fca70=['blue400','reqId','OFFLINE','unitID','_cursors','_initCommandExecutedListener','UnitSnapshot','_transformUndoredo','57yogPKh','session.room-full','_compressMutationService','_retryCount','_resendTimeout','localeService','every','change$','attrs','USERS_LEAVE','_stopTelemetryCollaborationNewChangeset','LIVESHARE_REQUEST_HOST','addImageSourceCache','clipPath','height','editing\x20status\x20changed\x20to','setShapeProps','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','UNIVER_PROJECT','close$','updateMember','eventID','newValue','history','url(#on-line-single_clip0_910_349)','top','getUnitId','collaMsg','max','readAsDataURL','_collaborationController','textRanges','findNodePositionByCharIndex','conflict','/universer-api/snapshot/','_getSnapshotAPIPrefix','concat','status','column','LIVESHARE_OPERATION','UNRECOGNIZED','urlChange$','COMPLETION_FINISHED','_getDownloadEndpointURL','171340QrhUoP','conflict.content','size','enableLocalCache','collaboration-session-retry','_initCloseConn','_awaitingChangeset','univer-online-status-title','ERROR_IMAGE_TYPE','_createHandler','LOGIN_URL_KEY','_userManagerService','permission.content','call','joinRsp','disableLocalCache','m2Prime','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','pushState','JOINING','_docSkeleton','telemetry\x20info\x20is\x20not\x20initialized','_clearHeartbeatTimer','_online','reject','gold400','_shouldReportTelemetry','append','_unitID','DeleteRangeMoveUpCommandId','map','loadSheet','toggleOnline','ALREADY_EXISTS','_messageService','_send','black','withCredentials','getImage','LOCAL_CACHE_INTERVAL','YUUMI_URL_COL_OUT_OF_RANGE','red300','awaiting_with_pending','currentColor','_createSocket','arc','method','createElement','closeSession','visibilitychange','infoRsp','OnLineSingle','_draw','_collabSessionService','width','setAlpha','M0\x200H16V16H0z','url(#off-line-single_clip0_910_343)','/universer-api/snapshot','_docTransformSelectionsService','setParam','onTransformChange$','SEND_CHANGESET_TIMEOUT','_resendWithTimeout','_instanceService','_unitOnClients','complete','online','pending','/universer-api/comb','setCurrentUser','evenodd','_configService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','duration','collabSubmitChangesetUrl','create','_socketService','_substituteUndoStack','encodeURIComponent','_state$','connection\x20error','APPLY_PERMISSION_DENIED','_queuedRemoteChangesets','collaborators','getAncestorScale','_onUserLeave','show','_collabCursorController','push','\x20-\x20','skeleton','_permissionService','COLLAB_WEB_SOCKET_URL','_getLoginPath','listCollaborators','collabStatus.conflict','_listenToOnlineEvent','_context','objects','_backgroundColor','SHOULD_CLOSE_CONN','UNIVER_SHEET','toString','_change$','target','setTimeout','_logService','_updateURLWithCurrentState','status$','find','_telemetryInfo','_initStatusComponent','[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.','UniverIcon','_pendingMutations','onStarting','reverse','collaboration-client.offline-data-not-saved','beginPath','requireSession','_notificationService','HEARTBEAT_INTERVAL','event$','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_sendHeartbeatTimer','UNIVER_UNKNOWN','0\x200\x2017\x2016','offline','assignAColorForMemberID','COLLAB_SUBMIT_CHANGESET_URL','NEW_CHANGESETS','entries','hide','makeDirty','_toggleOnline','collabCursorState$','selections','/universer-api/stream/file/upload','div','_getCtorByUniverType','url','pluginName','hovered','_exhaustRemoteChangesetQueue','transform','_timeoutTimer','/object/','_throwTelemetryCollaborationNewChangeset','commentUpdate$','_handleHover','liveShareOperation','_socket','fetchMissingChangesets','/-/object/list','subscribe','collabStatus.notCollab','none','_getRedoStack','21hCmmCe','[OfflineState]:\x20received\x20rejection.','_transformSelections','removeParam','_registerDependencies','svg','_snapshotServerService','_renderManagerService','OTHER_CLIENTS_EDITING','use','state$','onlineStatus','POST','HELLO','_httpService','552squlKD','url(#$1','prototype','batchAllowed','patch','/collaborator','_onOffline','triggerDblclick','_snapshotService','parse','_range','_handleJoinEvent','UNKNOWN_CODE','RETRY_CONNECTING_MAX_COUNT','onTransformSelections','_urlService','random','_getUndoStack','UNDEFINED','INTERNAL_ERROR','_cursor','_handleLeaveEvent','fillRule','tag','IDLE','_anchorDot','HttpImport','_init','_collabCursorState$','message$','deleteCollaborator','_updateState','#FFF','downloadEndpointUrl','CHANGESET_ACK','collabStatus.synced','univer-online-status-icon','_onRecvEvent','OffLineSingle','getRangePointData','from','_replayCachedMutations','update','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_onMessage','snapshotServerUrl','_drawRectRange','/new_changes','APPLY_REJECT','transformByState','_members','_entities','4494pZgbBI','focused$','LIVESHARE_TERMINATE','revision','color','propertyIsEnumerable','get','_drawAnchor','_scheduleHeartbeat','_listenToOfflineEvent','_shapes','COMPRESS_MUTATION_APPLY','_schedule','location','delete','LICENSE_IMPORT_SIZE_EXCEEDED','idSuffix','/block/','_undoRedoService','getTypeOfUnitAdded$','startTime','_getMergeRange','_injector','cmd','roomMembers','session.connection-failed','restore','setWaitCount','getCollabCursors$','transformMutation','setActiveRange','/universer-api/authz','_textBubble','_cursorShapes','synced','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','headers','[CollaborationEntity]','_registerRenderDependencies','socket\x20open.','onlineStatusTitle','image/jpeg','1614SCUGOT','getViewport','UPDATE_CURSOR','encode','purple300','&source=','Undefined','state','slice','override','_scene','filter','INGEST','baseRev','_render','_createInitialState','sheetId','engine','exhaustSavingTask','round','[OfflineState]:\x20received\x20acknowledgement.','Warning','getUnitOnRev','_unlockTransition','_resendTimer','MoveRangeCommandId','onRemoteChangeset','collab-rect-range-','createSocket','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','endColumn','&to=','_collaborationTimeoutTimer','LEAVE','incrementRevOfUnit','getOwnPropertyDescriptor','11486Gsizbo','name','on-line-single_clip0_910_349','file','_getSendChangesetTimeout','unknown','getTime','_getAnchorBounding','onCommandExecuted','_clearOtherTimers','_initModules','_sheetSkeletonManagerService','clear','_socket$','changesets','univerjs-icon\x20univerjs-icon-','_clearScheduledTask','Univer','collaboratorID','FETCH_MISSING','reduce','APPLY_REVISION_CONFILICT','executeCommand','debug','onRemoteAck','_clearTimeoutTimer','getSheetBySheetId','whenReady','ONLINE','getActiveSheet','commentUpdateEvent','_id','_updateLocalCache','joinEvent','then','className','getVpScrollXYInfoByPosToVp','_uiPartsService','JOIN','workbook','/universer-api/oidc/authpage','_getSignURL','getMember','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','SUCCUSS','transformIMECache','_eventUnsubscribe','has','getCurrentUser','refreshPermission','csAckEvent','stringify','_transformUndoRedoStack','HEARTBEAT_TIMEOUT','LIVESHARE_NEW_HOST','BASE64','session.will-retry','/allowed','_clearUndo','_sessionStatus$','[DataLoaderController]','AWAITING','_transformService','objectType','MSG_FOR_ERROR','isEditing','_clearLocalCache','getSheetId','onRendered','_onRemoteRejected','univer-online','_waitForHeartbeatResponse','getRoom','data','_handleHeartbeatEvent','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','YUUMI_UNABLE_LOAD_URL','contains','709560piZGhM','_loadSheet','collab-client.tooltip.reconnect','[PendingState]:\x20unhandled\x20univer\x20type:\x20','CHANGESET_SHOULD_RETRY','_saveCache','indexOf','ERROR_IMAGE','_getSaveTimeout','csShouldRetryEvent','_status$','params','_joinRoom','sessionStatus','popstate','getDocRanges','includes','_telemetryService','_applyRemoteChangeset','_revisionService','_onUserJoin','copyFileMeta','InsertRangeMoveDownCommandId','_session','_sender','APPLY_NON_SEQUENTIAL_REVISION','jiqing500','getCurrentRevOfUnit','listRoles','registerComponent','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_incrementRevisionNumber','next','resize','unload','LICENSE_MAX_UNITS_EXCEEDED','_scheduleCollaborationTimeoutTimer','_cursorInfo$','_decreaseWaiting','getActiveRange','_name','ENSURE_SNAPSHOT_EXECUTION','appendMutation','onTransformRemoteChangesetByIMECache','session','unit','InsertRangeMoveRightCommandId','_updateLocalCursor','getLatestCsReqIdBySid','fetching\x20missing\x20changesets\x20from\x20','UNIVER_DOC','_setupSubUnitSync','close','_socketMessageSubscription','univer-online-status','hidden','endRow','Unknown\x20user','userID','_executeRemoteChangeset','memberID','isArray','fetchThroughInterceptors','ERROR_EXCEED_SIZE','PENDING','getCurrentSelections','labelPosition','SYNCED','currentSkeleton$','univer-offline','cursorInfo$','TOO_MANY_REQUESTS','split','socket\x20close','hasOwnProperty','interceptor','UNKNOWN_CMD','rgba(255,\x20255,\x20255,\x200.01)','InsertColCommandId','defs','_transformStack','isPermissionRej','result','docStateChange$','getImageSourceCache','collaboration.closeRoom','updateCollaborator','path','initWorkbookPermissionChange','_setupBeforeClosingHandler','_onCombEvent','href','csRejEvent','actions','replace','_onFetchMissResult','title','ACTIVE_UNIT_EVENT_CHANNEL','addObjects','collaboration.single-unit.warning','moveTo','createInstance','59452npLRiC','FAIL','_onConnectionOpen','saveSheetBlock','getUnit','_type','post','getUnitType','_hover','object','_unitStatus','YUUMI_SUBSCRIPTION_NOT_FOUND','MUTATION','[PendingState]:\x20received\x20rejection.','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','InsertRowCommandId','_docStateChangeManagerService','NOT_FOUND','146707dIHtjz','addObject','_docSkeletonManagerService','_createInitialStateImpl','displayName','extend','getUnitStatus$','onSyncEditingCollabCursor','_color','_sendHeartbeat','NOT_COLLAB','c1Prime','COMMENT_UPDATE','CHANGESET_REJ','min','getOwnPropertySymbols','onMissedChangesetFetched','liveShareNewHost','_saveTaskMap','dispose$','replaceState','m1Prime','_refRangeService','onPointerEnter$','getParam','subUnitId','now','setUndoRedoMutationParamsCache','disposeUnit','_showConflictNotification','onSendChangeset','getMemberID','PERMISSION_DENIED','deepClone','onPointerMove$','transformRemoteChangeset','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_replaceFileID','_labelPosition','_substituteRedoStack','[CollaborationSessionService]','newCsEvent','on-line-single','_getCurrentRevision','_selfUnitIDs','startRow','updateOfflineData','searchParams','AWAITING_WITH_PENDING','sid','failed\x20to\x20apply\x20missed\x20changesets!','selection','_hideTimer','_initEventListeners','getItem','PERMISSION_REJ','startColumn','saveOfflineData','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','disposeWithMe','loadOfflineData','_entityInit$','_sendingTimer','SNAPSHOT_INVALID_SNAPSHOT','getUnhiddenWorksheets','sessionStatus$','[CollaborationSession]','replaceTextRanges','_univerInstanceService','isActive','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_changesetReqId','getUndoRedoMutationParamsCache','univer-pro.collaboration-client-socket-service','FileId','enableAuthServer','[FetchMissState]','current','_imageSourceCache','length','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','substring','_lockTransition','collabStatus.fetchMiss','image/bmp','dispose','catch','auth.needGotoLoginAlert','registerOnClose','\x0aCurrent:\x20','_tryEnsureSocket','onMissingChangesets','socket$','_event$','_tryReconnect','json','_startSheetCollabCursor','_candidateSocket','row','CONNECTOR_DATA_TOO_LARGE','getRandomValues','resourceIDs','_assignedColors','loginUrlKey','_getUploadFileURL','_disableEditing','_onConflict','_transitionLocked','INVALID_ARGUMENT','fill','icon','resolve','/resources','_startDocCollabCursor','originalMeta','cursorInfo','getRenderById','_commentService','save','defineProperty','_clearRedo','pipe','routeKey','members','generateRandomId','UNAUTHENTICATED','transformSelections','_initUnitPermissionChange','SNAPSHOT_SERVER_URL_KEY','send','toggleOffline','/universer-api/file/{fileID}/sign-url','_cachedData','registerRefRange','_collaborationSessionService','transformStack\x20failed!','[CollaborationState]:\x20apply\x20error!','getValue','_onRemoteACK','snapshot','conflict.title','DeleteRangeMoveLeftCommandId','_sessions','/role','put','onPointerLeave$','getFocusedUnit','Error\x20on\x20receiving\x20event','text','off-line-single','setItem','_HTTPService','_waitCount','_undoStacks','_socketReady','_getAPIPrefixPath','randomUUID','_disabled','requestParams','drawWith','_retryConnectingTimer','\x20in\x20_schedule.','uploadFileServerUrl','add','_ensureSubject','RemoveRowCommandId','sheetID','loadDoc','children','_removeCollabCursors','xlink:href','PSEUDO_FETCH_MISSING_RESULT','collaboration-client.config','setInterval','_acknowledgedAwaitingChangeset','_syncEditingCollabCursorService','activeSheet$','getTypeOfUnitDisposed$','forEach','doc.mutation.rich-text-editing','enableSingleActiveInstanceLock','awaitingChangeset','LICENSE_DISTRO_REJECTED','_initStatusListener','rev','getCollabEntity','_initResize','_removeClearOtherTimer','addEventListener','_transformIMECache','_heartbeatTimer','LIVESHARE_FETCH_OPERATIONS','closePath','_getAPIPrefix','onlineStatusIcon','editingUnit','_anchor','ws://127.0.0.1:8000/universer-api/comb/connect','_http','YUUMI_RATE_OVER_LIMIT','_beforeCloseService','confirm','_localStorageService','values','_toggleOffline','responseType','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','mutations','_state','lineTo','reconnect','translate(.97)','string','APPLY_DUPLICATED','subscribeEvent','UnitEmbedded','permission.title','resend','updatePermissionPoint','_singleActiveUnitService','_scheduleTimestamp','init','_sheetTransformSelectionsService','SNAPSHOT_URL_KEY','8RxiVRe','UNIVER_SLIDE','compose','[CollaborationUndoRedoService]','fetchMiss','transformMutationsWithChangeset','_fetchMissChangesets','ranges','_config','_ws','_remoteChangesetQueue','saveSnapshot','trim','colorChannel1','_colorIndex','onload','apply','/object','range','RECV','_collaborationPaused','onTransformIME','FETCH_MISS','HttpExport','UPDATE_PERMISSION_OBJ','{fileID}','1em','_drawTextRange','_transformPreviousActiveRange','_removeRoom','_lastPointer','_memberService','fromCollab','stopTime','setConfig','_updateStatus','all','/unit/','getCurrent','body','_themeService','_colorAssignService','_roomMembers$','symbol','onStateChange','getSkeleton','onRemoteRetry','_commentUpdate$','unitId\x20is\x20not\x20found','_rescheduleHeartbeat','_scheduleSaving','_localCacheService','key','defIds','_scheduleClearOtherTimer','unitId','createCollaborator','image/jpg','set','toRgbString','_initRequestHeader','clearTimeout','assign','\x0aAfter:\x20','_handleEvent','...','_startCollaboration','image/gif','fetch_missing','onRemoteRej','removeMember','fillStyle','asObservable','code','0\x200\x2016\x2016','Error','_localeService','_changesetSessionId','_commandService','saveImage','HEARTBEAT','[UniverCollaborationClientPlugin]','getConfig','/-/object/-/batch_allowed','backgroundColor','_handler','_isPermissionRej','measureText','_checkMissing','collabStatus.syncing','3803229nzWXTL','NO_OTHER_CLIENTS_EDITING','_onLocalMutation','_onCursorUpdate','socketService','uni.network.url-service','_initMergeInterceptor','getDeserializedSheetBlock','[OfflineState]:\x20received\x20changeset.','objectID','unsubscribe','off-line-single_clip0_910_343','USERS_ENTER','CONFLICT','storage','getInterceptPoints','with','unshift','awaiting','error','bottom','fillText','flatMap','\x20to\x20','subunit','onCommentUpdate','_hovered','some','SUBMIT_CHANGESET','EXCHANGE_SIGN_URL_SERVER_URL_KEY','registerRenderModule','transformChangesets','LICENSE_EXPORT_SIZE_EXCEEDED','_refreshCollabCursors','_docTransformIMECacheService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_roomMembers','_syncEditingCollabCursor','_onCursorDelete','collaboration_new_changeset','enableOfflineEditing','collab-text-anchor-','roomMembers$','type','_onConnectionFailed','registerHTTPInterceptor','x-univer-host'];_0x2b41=function(){return _0x2fca70;};return _0x2b41();}let Me=class extends _0x48670f{constructor(_0x5aa4e6,_0x59b1d2,_0x5b6e40,_0xb70c94){const _0x1fdee4=_0x23c7d1;super(),l(this,_0x1fdee4(0x16c),new _0x4a4faf(P[_0x1fdee4(0x1e5)])),(this[_0x1fdee4(0x21f)]=_0x5aa4e6,this[_0x1fdee4(0x139)]=_0x59b1d2,this[_0x1fdee4(0xdc)]=_0x5b6e40,this[_0x1fdee4(0x36a)]=_0xb70c94,this[_0x1fdee4(0x3e8)](),this[_0x1fdee4(0x292)]());}['_initStatusListener'](){const _0x4a029e=_0x23c7d1;this[_0x4a029e(0x216)](this['_univerInstanceService'][_0x4a029e(0xc7)][_0x4a029e(0x254)](_0x1fe2f3(()=>{const _0x2adfdc=_0x4a029e,_0x4c73df=this[_0x2adfdc(0x21f)][_0x2adfdc(0x26d)]();return _0x4c73df?this[_0x2adfdc(0x36a)]['getCollabEntity$'](_0x4c73df[_0x2adfdc(0x366)]()):_0xaed9b5(null);}),_0x1fe2f3(_0x2bf2d1=>_0x2bf2d1?_0x2bf2d1[_0x4a029e(0x3e5)]:_0xaed9b5(P['NOT_COLLAB'])))[_0x4a029e(0x7f)](_0x3eca65=>{const _0x3a5107=_0x4a029e;this[_0x3a5107(0x16c)][_0x3a5107(0x183)](_0x3eca65);}));}[_0x23c7d1(0x3e8)](){const _0x3452d0=_0x23c7d1;this[_0x3452d0(0x216)](this['_uiPartsService'][_0x3452d0(0x17f)](_0x432ccf['HEADER_MENU'],()=>_0x1ae714(wo({'status$':this['_status$'][_0x3452d0(0x303)]()}),this[_0x3452d0(0xdc)])));}};Me=Do([Be(0x0,_0x9f62da),Be(0x1,_0x5cc120),Be(0x2,_0x4dc04f(_0x22396d)),Be(0x3,_0x4dc04f(Le))],Me);function wo(_0x3f48c3){const {status$:_0x55f07f}=_0x3f48c3;return function(){const _0x50bc03=_0x3e56;return _0x483511[_0x50bc03(0x3a7)](To,{'status$':_0x55f07f});};}const Zs=_0x437a8e(_0x23c7d1(0x31a));var Po=Object[_0x23c7d1(0x252)],yo=Object['getOwnPropertyDescriptor'],Uo=(_0x13ea99,_0x39d8de,_0x23fff3,_0x2ac88f)=>{const _0x459993=_0x23c7d1;for(var _0x20cc28=_0x2ac88f>0x1?void 0x0:_0x2ac88f?yo(_0x39d8de,_0x23fff3):_0x39d8de,_0x3d7944=_0x13ea99[_0x459993(0x22a)]-0x1,_0x20b74a;_0x3d7944>=0x0;_0x3d7944--)(_0x20b74a=_0x13ea99[_0x3d7944])&&(_0x20cc28=(_0x2ac88f?_0x20b74a(_0x39d8de,_0x23fff3,_0x20cc28):_0x20b74a(_0x20cc28))||_0x20cc28);return _0x2ac88f&&_0x20cc28&&Po(_0x39d8de,_0x23fff3,_0x20cc28),_0x20cc28;},ge=(_0x475ed3,_0x1af18e)=>(_0x24c00d,_0x42d431)=>_0x1af18e(_0x24c00d,_0x42d431,_0x475ed3);let Je=class extends _0x55967c{constructor(_0x2b2bb4,_0x20ed01,_0x27f8e6,_0x3efefb,_0x4f24bd,_0x190393){const _0x530067=_0x23c7d1;super(),this[_0x530067(0xa1)]=_0x2b2bb4,this[_0x530067(0x3e3)]=_0x20ed01,this[_0x530067(0x309)]=_0x27f8e6,this[_0x530067(0x2ee)]=_0x3efefb,this[_0x530067(0x9a)]=_0x4f24bd,_0x190393?_0x190393==null||_0x190393[_0x530067(0x12f)]()['then'](()=>this[_0x530067(0xad)]()):(this[_0x530067(0x3e3)][_0x530067(0x12b)](_0x530067(0x150),_0x530067(0x180)),this[_0x530067(0xad)]());}async[_0x23c7d1(0xad)](){const _0x3464f2=_0x23c7d1,_0x35a903=this[_0x3464f2(0xa1)]['getParam'](_0x3464f2(0x190)),_0x896e08=this[_0x3464f2(0xa1)]['getParam'](_0x3464f2(0x340));if(!_0x35a903||!_0x896e08){this[_0x3464f2(0x3e3)][_0x3464f2(0x12b)]('[DataLoaderController]',_0x3464f2(0x221));return;}switch(Number(_0x896e08)){case k[_0x3464f2(0x3de)]:{const _0x336b77=await this[_0x3464f2(0x163)](_0x35a903);this[_0x3464f2(0x196)](_0x336b77);break;}case k['UNIVER_DOC']:{await this['_loadDoc'](_0x35a903);break;}default:{this[_0x3464f2(0x3e3)][_0x3464f2(0x328)](_0x3464f2(0x150),_0x3464f2(0x2a9));break;}}}async[_0x23c7d1(0x196)](_0xc5f3ff){const _0x2ae90b=_0x23c7d1;await this['_updateSubUnitFromURLParams'](_0xc5f3ff),_0xc5f3ff[_0x2ae90b(0x28b)][_0x2ae90b(0x254)](_0x21580d(this['dispose$']))[_0x2ae90b(0x7f)](_0x39500f=>{const _0x2fea69=_0x2ae90b;_0x39500f&&this[_0x2fea69(0x3e4)](_0x39500f);}),this['_urlService'][_0x2ae90b(0x375)]['pipe'](_0x21580d(this[_0x2ae90b(0x1ee)]))[_0x2ae90b(0x7f)](()=>this['_updateSubUnitFromURLParams'](_0xc5f3ff));}[_0x23c7d1(0x3e4)](_0x28bf2a,_0x567148=!0x1){const _0x55f71b=_0x23c7d1,_0x55b18a=this['_urlService'][_0x55f71b(0x1f3)](_0x55f71b(0x32d));_0x28bf2a[_0x55f71b(0x157)]()!==_0x55b18a&&this[_0x55f71b(0xa1)]['setParam']('subunit',_0x28bf2a['getSheetId'](),_0x567148);}async['_updateSubUnitFromURLParams'](_0x532fc4){const _0x3a2dd9=_0x23c7d1;var _0x58d05c;const _0x458313=this[_0x3a2dd9(0xa1)][_0x3a2dd9(0x1f3)](_0x3a2dd9(0x32d));if(!_0x458313||!_0x532fc4[_0x3a2dd9(0x12e)](_0x458313)){const _0x23ee12=_0x532fc4[_0x3a2dd9(0x21b)]()[0x0],_0x3a5565=_0x532fc4['getSheetBySheetId'](_0x23ee12);if(!_0x3a5565)return;this[_0x3a2dd9(0x3e4)](_0x3a5565,!0x0),await this[_0x3a2dd9(0x309)]['executeCommand'](_0x1d2849['id'],{'unitId':_0x532fc4[_0x3a2dd9(0x366)](),'subUnitId':_0x23ee12});return;}((_0x58d05c=_0x532fc4[_0x3a2dd9(0x131)]())==null?void 0x0:_0x58d05c[_0x3a2dd9(0x157)]())!==_0x458313&&await this['_commandService']['executeCommand'](_0x1d2849['id'],{'unitId':_0x532fc4[_0x3a2dd9(0x366)](),'subUnitId':_0x458313});}async[_0x23c7d1(0x163)](_0x354479){const _0x202566=_0x23c7d1;let _0x5931b2=0x0;const _0x187169=await this[_0x202566(0x2ee)]['loadOfflineData'](_0x354479);return _0x187169&&(_0x187169['awaitingChangeset']||_0x187169[_0x202566(0x2aa)]['length']!==0x0)&&(_0x5931b2=_0x187169[_0x202566(0x293)]),_0x5931b2===0x0&&this['_logService'][_0x202566(0x12b)](_0x202566(0x150),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x202566(0x9a)][_0x202566(0x397)](_0x354479,_0x5931b2);}async['_loadDoc'](_0x5710d5){const _0x313475=_0x23c7d1;let _0xcd61fa=0x0;const _0x32c6b4=await this['_localCacheService'][_0x313475(0x217)](_0x5710d5);return _0x32c6b4&&(_0x32c6b4['awaitingChangeset']||_0x32c6b4[_0x313475(0x2aa)][_0x313475(0x22a)]!==0x0)&&(_0xcd61fa=_0x32c6b4[_0x313475(0x293)]),_0xcd61fa===0x0&&this['_logService'][_0x313475(0x12b)]('[DataLoaderController]',_0x313475(0x389)),this[_0x313475(0x9a)][_0x313475(0x282)](_0x5710d5,_0xcd61fa);}};Je=Uo([ge(0x0,Zs),ge(0x1,_0x20dcfc),ge(0x2,_0x45f63f),ge(0x3,_0x4dc04f(w)),ge(0x4,_0x4dc04f(_0x53a932)),ge(0x5,_0x4ab0b0(_0x3016d2))],Je);var No=Object[_0x23c7d1(0x252)],Mo=Object['getOwnPropertyDescriptor'],Ao=(_0x1d7796,_0x2ac9d,_0x4cf515,_0x301f27)=>{for(var _0x442f0c=_0x301f27>0x1?void 0x0:_0x301f27?Mo(_0x2ac9d,_0x4cf515):_0x2ac9d,_0x339b04=_0x1d7796['length']-0x1,_0x37c261;_0x339b04>=0x0;_0x339b04--)(_0x37c261=_0x1d7796[_0x339b04])&&(_0x442f0c=(_0x301f27?_0x37c261(_0x2ac9d,_0x4cf515,_0x442f0c):_0x37c261(_0x442f0c))||_0x442f0c);return _0x301f27&&_0x442f0c&&No(_0x2ac9d,_0x4cf515,_0x442f0c),_0x442f0c;},Ss=(_0xb0215f,_0x58d3cb)=>(_0x584968,_0x4fcb36)=>_0x58d3cb(_0x584968,_0x4fcb36,_0xb0215f);const Lo='DEFAULT_FILE_NAME',$o=_0x23c7d1(0x125);let ze=class extends _0x48670f{constructor(_0x52c386,_0x5e6136){const _0x2777cd=_0x23c7d1;super(),this['_univerInstanceService']=_0x52c386,this[_0x2777cd(0x3c0)]=_0x5e6136,this[_0x2777cd(0xad)]();}['_init'](){const _0xd5c424=_0x23c7d1;this['disposeWithMe'](this['_univerInstanceService'][_0xd5c424(0xc7)]['subscribe'](()=>{const _0x33f737=_0xd5c424;var _0x334194;const _0x73e48d=this[_0x33f737(0x21f)][_0x33f737(0x26d)]();let _0x4623a9=(_0x334194=this[_0x33f737(0x3c0)][_0x33f737(0x30d)](Lo))!=null?_0x334194:$o;_0x73e48d instanceof _0x1e3463&&(_0x4623a9=_0x73e48d[_0x33f737(0x115)]),document[_0x33f737(0x1c3)]=_0x4623a9;}));}};ze=Ao([Ss(0x0,_0x9f62da),Ss(0x1,_0x5ae707)],ze);var jo=Object[_0x23c7d1(0x252)],Ho=Object[_0x23c7d1(0x113)],xo=(_0x2b7b43,_0x2f10d6,_0x96bad1,_0x309645)=>{for(var _0xdf4daf=_0x309645>0x1?void 0x0:_0x309645?Ho(_0x2f10d6,_0x96bad1):_0x2f10d6,_0x253759=_0x2b7b43['length']-0x1,_0x5e45a8;_0x253759>=0x0;_0x253759--)(_0x5e45a8=_0x2b7b43[_0x253759])&&(_0xdf4daf=(_0x309645?_0x5e45a8(_0x2f10d6,_0x96bad1,_0xdf4daf):_0x5e45a8(_0xdf4daf))||_0xdf4daf);return _0x309645&&_0xdf4daf&&jo(_0x2f10d6,_0x96bad1,_0xdf4daf),_0xdf4daf;},St=(_0x95bd6b,_0x3d9b08)=>(_0x4e5594,_0x21fe89)=>_0x3d9b08(_0x4e5594,_0x21fe89,_0x95bd6b);let Ze=class{constructor(_0x4dba70,_0x131599,_0x24f30){const _0x171a0e=_0x23c7d1;this[_0x171a0e(0x3c0)]=_0x4dba70,this['_httpService']=_0x131599,this[_0x171a0e(0x351)]=_0x24f30,this[_0x171a0e(0x2b8)]();}[_0x23c7d1(0x2b8)](){const _0x3e1bac=_0x23c7d1;this[_0x3e1bac(0x91)][_0x3e1bac(0x342)]({'priority':0x1,'interceptor':(_0x580b79,_0x1f498f)=>_0x1f498f(_0x580b79)[_0x3e1bac(0x254)](_0x3fbd3f(async _0x15c5cf=>{const _0x53a9f0=_0x3e1bac,_0x5da9f0=_0x15c5cf;if(_0x5da9f0['status']===0x191&&window[_0x53a9f0(0x2a4)](this[_0x53a9f0(0x351)]['t'](_0x53a9f0(0x232)))){const _0x84fe0c=window[_0x53a9f0(0x3c7)](window[_0x53a9f0(0xd3)][_0x53a9f0(0x1be)]);window[_0x53a9f0(0xd3)][_0x53a9f0(0x1be)]=this[_0x53a9f0(0x3d6)]()+'?url='+_0x84fe0c;}return _0x5da9f0;}))});}[_0x23c7d1(0x3d6)](){const _0x1e71e8=_0x23c7d1;var _0x519f33,_0x473245;const _0x2e9bd3=this[_0x1e71e8(0x3c0)]['getConfig'](Ln),_0x2d9305=this[_0x1e71e8(0x3c0)][_0x1e71e8(0x30d)]($);return(_0x473245=(_0x519f33=_0x2d9305==null?void 0x0:_0x2d9305[_0x1e71e8(0x242)])!=null?_0x519f33:_0x2e9bd3)!=null?_0x473245:$n;}};Ze=xo([St(0x0,_0x5ae707),St(0x1,_0x4dc04f(_0x3bbd66)),St(0x2,_0x4dc04f(_0x19fdc8))],Ze);var ko=Object[_0x23c7d1(0x252)],Bo=Object[_0x23c7d1(0x113)],Vo=(_0x576049,_0x393588,_0x58c2ee,_0x214ba9)=>{const _0x5964ac=_0x23c7d1;for(var _0x4c311a=_0x214ba9>0x1?void 0x0:_0x214ba9?Bo(_0x393588,_0x58c2ee):_0x393588,_0x353c70=_0x576049[_0x5964ac(0x22a)]-0x1,_0x107317;_0x353c70>=0x0;_0x353c70--)(_0x107317=_0x576049[_0x353c70])&&(_0x4c311a=(_0x214ba9?_0x107317(_0x393588,_0x58c2ee,_0x4c311a):_0x107317(_0x4c311a))||_0x4c311a);return _0x214ba9&&_0x4c311a&&ko(_0x393588,_0x58c2ee,_0x4c311a),_0x4c311a;},ps=(_0x3d4439,_0x2235c3)=>(_0x1ffe5d,_0x551564)=>_0x2235c3(_0x1ffe5d,_0x551564,_0x3d4439);const Fo='AUTHZ_URL_KEY',Wo=_0x23c7d1(0xe5);let yt=class extends _0x48670f{constructor(_0x498728,_0x247cd6){const _0x12fb08=_0x23c7d1;super(),this[_0x12fb08(0x272)]=_0x498728,this[_0x12fb08(0x3c0)]=_0x247cd6,this['_initMergeInterceptor']();}[_0x23c7d1(0x31b)](){const _0x19c911=_0x23c7d1,_0x4c2605=this;this[_0x19c911(0x216)](this['_HTTPService'][_0x19c911(0x342)]({'priority':0x3e7,'interceptor':_0x37a48f({'isMatch'(_0x2f6be0){const _0x48493b=_0x19c911;var _0x15a92b;if(_0x2f6be0[_0x48493b(0x3a6)]==='POST'&&((_0x15a92b=_0x2f6be0[_0x48493b(0x279)])!=null&&_0x15a92b[_0x48493b(0x2e2)])){const {objectID:_0xc4c2f9,objectType:_0x400d38}=_0x2f6be0[_0x48493b(0x279)][_0x48493b(0x2e2)]||{};if(!_0xc4c2f9||_0x400d38===void 0x0)return!0x1;const _0x5e1a67=_0x4c2605[_0x48493b(0x276)]()+'/'+_0x400d38+_0x48493b(0x40b)+_0xc4c2f9+_0x48493b(0x14d);if(_0x2f6be0[_0x48493b(0x405)]===_0x5e1a67)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xefe939){const _0x44bd20=_0x19c911;var _0x5d97eb;return(_0x5d97eb=_0xefe939[_0x44bd20(0x279)])==null?void 0x0:_0x5d97eb['body'];},'mergeParamsToRequest'(_0x412c7e,_0x570527){const _0x274396=_0x19c911,_0x4b05fb=_0x4c2605[_0x274396(0x276)]()+_0x274396(0x30e),_0x22fdcc=_0x412c7e['reduce']((_0x539e07,_0x3b71c7)=>{const _0x39028b=_0x274396,{unitID:_0x13e63b,objectID:_0x23b34c,objectType:_0x2abfbb,actions:_0xd8766f}=_0x3b71c7;return _0x539e07[_0x13e63b]||(_0x539e07[_0x13e63b]={}),_0x539e07[_0x13e63b][_0x23b34c]||(_0x539e07[_0x13e63b][_0x23b34c]={'objectID':_0x23b34c,'objectType':_0x2abfbb,'actions':[]}),_0x539e07[_0x13e63b][_0x23b34c][_0x39028b(0x1c0)][_0x39028b(0x3d1)](..._0xd8766f),_0x539e07;},{}),_0xe16a13=[];for(const _0xf1cafa in _0x22fdcc)for(const _0x272b72 in _0x22fdcc[_0xf1cafa]){const {actions:_0x287b2c,objectType:_0xfbe801}=_0x22fdcc[_0xf1cafa][_0x272b72],_0x137cda=[...new Set(_0x287b2c)];_0xe16a13[_0x274396(0x3d1)]({'unitID':_0xf1cafa,'objectID':_0x272b72,'objectType':_0xfbe801,'actions':_0x137cda});}return new _0x24e2ab('POST',_0x4b05fb,{'headers':_0x570527['headers'],'withCredentials':_0x570527[_0x274396(0x39d)],'responseType':_0x570527[_0x274396(0x2a8)],'body':{'requests':_0xe16a13}});}},{'distributeResult'(_0x353a73,_0x238d87){const _0x4d527a=_0x19c911,{objectActions:_0x411cd3}=_0x353a73;return _0x238d87[_0x4d527a(0x396)](_0x314992=>{const _0x274fbf=_0x4d527a,{unitID:_0x227e24,objectID:_0x1c4e33,actions:_0x112b43}=_0x314992,_0x26581c=_0x411cd3[_0x274fbf(0x3e6)](_0xb2c5d7=>_0xb2c5d7[_0x274fbf(0x347)]===_0x227e24&&_0xb2c5d7[_0x274fbf(0x31e)]===_0x1c4e33),_0x43caaa=_0x112b43[_0x274fbf(0x396)](_0x344414=>_0x26581c==null?void 0x0:_0x26581c[_0x274fbf(0x1c0)]['find'](_0xfa4311=>_0xfa4311['action']===_0x344414))[_0x274fbf(0xfb)](_0x58c767=>!!_0x58c767);return{'config':_0x314992,'result':{'actions':_0x43caaa,'error':_0x353a73[_0x274fbf(0x328)]}};});}})}));}['_getAPIPrefixPath'](){const _0x12cc8d=_0x23c7d1;var _0x5c68bf,_0x1e6969;const _0x30543d=this[_0x12cc8d(0x3c0)][_0x12cc8d(0x30d)](Fo),_0x1c5fe4=this[_0x12cc8d(0x3c0)][_0x12cc8d(0x30d)]($);return(_0x1e6969=(_0x5c68bf=_0x1c5fe4==null?void 0x0:_0x1c5fe4['authzUrl'])!=null?_0x5c68bf:_0x30543d)!=null?_0x1e6969:Wo;}async[_0x23c7d1(0x3c4)](_0x2257dc){const _0x54311f=_0x23c7d1,_0x4d9a27=this['_getAPIPrefixPath']()+'/'+_0x2257dc[_0x54311f(0x153)]+_0x54311f(0x2cc);return(await this[_0x54311f(0x272)][_0x54311f(0x1cf)](_0x4d9a27,{'body':_0x2257dc}))[_0x54311f(0x2e2)][_0x54311f(0x31e)]||'';}async['list'](_0x4e7b93){const _0x1a3b43=_0x23c7d1,_0x158ca5=this[_0x1a3b43(0x276)]()+_0x1a3b43(0x7e);return(await this['_HTTPService'][_0x1a3b43(0x1cf)](_0x158ca5,{'body':_0x4e7b93}))['body'][_0x1a3b43(0x3db)];}async[_0x23c7d1(0xbc)](_0x26c82e){const _0x5429ba=_0x23c7d1,_0x514b4a=this[_0x5429ba(0x276)]()+'/'+_0x26c82e['objectType']+'/object/'+_0x26c82e[_0x5429ba(0x31e)];await this[_0x5429ba(0x272)][_0x5429ba(0x26b)](_0x514b4a,{'body':_0x26c82e});}async['allowed'](_0x2c8518){const _0x2ffeec=_0x23c7d1,_0x180402=this['_getAPIPrefixPath']()+'/'+_0x2c8518[_0x2ffeec(0x153)]+_0x2ffeec(0x40b)+_0x2c8518['objectID']+_0x2ffeec(0x14d);return(await this['_HTTPService'][_0x2ffeec(0x1cf)](_0x180402,{'body':_0x2c8518}))[_0x2ffeec(0x2e2)]['actions'];}async[_0x23c7d1(0x95)](_0x1817bf){const _0x98958d=_0x23c7d1,_0x494395=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x98958d(0x272)]['post'](_0x494395,{'body':{'requests':_0x1817bf}}))[_0x98958d(0x2e2)]['objectActions'];}async[_0x23c7d1(0x17e)](_0x20b5fe){const _0x55dec6=_0x23c7d1,_0x265f96=this['_getAPIPrefixPath']()+'/'+_0x20b5fe[_0x55dec6(0x153)]+_0x55dec6(0x26a),_0x296894=await this[_0x55dec6(0x272)][_0x55dec6(0x1cf)](_0x265f96,{'body':_0x20b5fe});return{'roles':_0x296894[_0x55dec6(0x2e2)]['roles'],'actions':_0x296894['body']['actions']};}async[_0x23c7d1(0xb0)](_0x5b30b0){const _0x353cf3=_0x23c7d1,_0x142022=this[_0x353cf3(0x276)]()+_0x353cf3(0x97);await this[_0x353cf3(0x272)]['delete'](_0x142022,{'params':{'collaboratorID':_0x5b30b0[_0x353cf3(0x126)],'objectID':_0x5b30b0[_0x353cf3(0x31e)],'unitID':_0x5b30b0['unitID']}});}async[_0x23c7d1(0x1b9)](_0x184607){const _0x4fd015=_0x23c7d1,_0x557e74=this[_0x4fd015(0x276)]()+'/collaborator';await this[_0x4fd015(0x272)][_0x4fd015(0x96)](_0x557e74,{'body':_0x184607});}async[_0x23c7d1(0x2f3)](_0x2dee35){const _0x4b64f=_0x23c7d1,_0x41ffbd=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x4b64f(0x272)][_0x4b64f(0x1cf)](_0x41ffbd,{'body':_0x2dee35});}async[_0x23c7d1(0x3d7)](_0x33bd47){const _0x401547=_0x23c7d1,_0x1982be=this['_getAPIPrefixPath']()+'/collaborator';return(await this[_0x401547(0x272)][_0x401547(0xcc)](_0x1982be,{'params':{'objectID':_0x33bd47[_0x401547(0x31e)],'unitID':_0x33bd47[_0x401547(0x347)]}}))[_0x401547(0x2e2)][_0x401547(0x3cc)];}async['putCollaborators'](_0x1ace7f){const _0x4b10e9=_0x23c7d1,_0x1857d9=this[_0x4b10e9(0x276)]()+'/collaborator';await this[_0x4b10e9(0x272)][_0x4b10e9(0x26b)](_0x1857d9,{'body':_0x1ace7f});}};yt=Vo([ps(0x0,_0x4dc04f(_0x3bbd66)),ps(0x1,_0x4dc04f(_0x5ae707))],yt);var Go=Object[_0x23c7d1(0x252)],Yo=Object[_0x23c7d1(0x113)],Ko=(_0x283c79,_0x1900b0,_0x86b49,_0x501117)=>{const _0x53c4ed=_0x23c7d1;for(var _0xaef434=_0x501117>0x1?void 0x0:_0x501117?Yo(_0x1900b0,_0x86b49):_0x1900b0,_0x2aa725=_0x283c79[_0x53c4ed(0x22a)]-0x1,_0x335403;_0x2aa725>=0x0;_0x2aa725--)(_0x335403=_0x283c79[_0x2aa725])&&(_0xaef434=(_0x501117?_0x335403(_0x1900b0,_0x86b49,_0xaef434):_0x335403(_0xaef434))||_0xaef434);return _0x501117&&_0xaef434&&Go(_0x1900b0,_0x86b49,_0xaef434),_0xaef434;},Xo=(_0x4ba1cc,_0x19cc34)=>(_0x3fd9a9,_0x25c40d)=>_0x19cc34(_0x3fd9a9,_0x25c40d,_0x4ba1cc);let Qe=class{constructor(_0x1f26ed){this['_httpService']=_0x1f26ed,this['_initRequestHeader']();}[_0x23c7d1(0x2f7)](){const _0x358037=_0x23c7d1;this['_httpService'][_0x358037(0x342)]({'interceptor':(_0x3a3d5c,_0x47a204)=>{const _0x1c52cb=_0x358037,_0x180b48=_0x3a3d5c[_0x1c52cb(0xea)],_0x13acc9=_0x1af55d();return _0x13acc9&&_0x180b48[_0x1c52cb(0x2f5)](_0x1c52cb(0x343),_0x13acc9),_0x47a204(_0x3a3d5c);}});}};Qe=Ko([Xo(0x0,_0x4dc04f(_0x3bbd66))],Qe);var qo=Object[_0x23c7d1(0x252)],Jo=Object[_0x23c7d1(0x113)],zo=(_0x49d5e9,_0x11d5b0,_0x438d95,_0x1c1781)=>{const _0x5a9e73=_0x23c7d1;for(var _0xbd8a81=_0x1c1781>0x1?void 0x0:_0x1c1781?Jo(_0x11d5b0,_0x438d95):_0x11d5b0,_0x337f1d=_0x49d5e9[_0x5a9e73(0x22a)]-0x1,_0x16a9e0;_0x337f1d>=0x0;_0x337f1d--)(_0x16a9e0=_0x49d5e9[_0x337f1d])&&(_0xbd8a81=(_0x1c1781?_0x16a9e0(_0x11d5b0,_0x438d95,_0xbd8a81):_0x16a9e0(_0xbd8a81))||_0xbd8a81);return _0x1c1781&&_0xbd8a81&&qo(_0x11d5b0,_0x438d95,_0xbd8a81),_0xbd8a81;},pt=(_0x3a5115,_0x55acd2)=>(_0x43ea30,_0x36bb3f)=>_0x55acd2(_0x43ea30,_0x36bb3f,_0x3a5115);const Zo=['image/png',_0x23c7d1(0xef),_0x23c7d1(0x2f4),_0x23c7d1(0x2fe),_0x23c7d1(0x22f)],Qo=0x5*0x400*0x400,ea=_0x23c7d1(0x1ff),ta=_0x23c7d1(0x402),sa=_0x23c7d1(0x332),ia=_0x23c7d1(0x25e);let Ut=class{constructor(_0x2dd2a4,_0x4838a9,_0xddcc70){const _0x2b50b9=_0x23c7d1;l(this,_0x2b50b9(0x273),0x0),l(this,'_change$',new _0x41261f()),l(this,_0x2b50b9(0x353),this[_0x2b50b9(0x3e0)]),l(this,_0x2b50b9(0x229),new Map()),(this[_0x2b50b9(0x91)]=_0x2dd2a4,this[_0x2b50b9(0x3c0)]=_0x4838a9,this['_univerInstanceService']=_0xddcc70);}[_0x23c7d1(0xe1)](_0x338372){const _0x3150b2=_0x23c7d1;this[_0x3150b2(0x273)]=_0x338372,this[_0x3150b2(0x3e0)][_0x3150b2(0x183)](_0x338372);}[_0x23c7d1(0x1b7)](_0x4bb3fa,_0x55c73e){const _0x429f71=_0x23c7d1;if(_0x55c73e===_0x558861[_0x429f71(0x14b)]){const _0x592b52=new Image();return _0x592b52['src']=_0x4bb3fa,_0x592b52;}return this[_0x429f71(0x229)][_0x429f71(0xcc)](_0x4bb3fa);}[_0x23c7d1(0x358)](_0x1b70fd,_0x288926,_0x462720){const _0x3b8eca=_0x23c7d1;_0x288926===_0x558861[_0x3b8eca(0x14b)]||_0x462720==null||this[_0x3b8eca(0x229)][_0x3b8eca(0x2f5)](_0x1b70fd,_0x462720);}async[_0x23c7d1(0x39e)](_0x30f34f){const _0x3b3c9e=_0x23c7d1;try{const _0x36dd35=this[_0x3b3c9e(0x200)](this[_0x3b3c9e(0x13d)](),''+_0x30f34f),_0x51f7f2=(await this[_0x3b3c9e(0x91)]['get'](_0x36dd35))[_0x3b3c9e(0x2e2)];if(_0x51f7f2[_0x3b3c9e(0x328)]&&_0x51f7f2[_0x3b3c9e(0x328)][_0x3b3c9e(0x304)]===xs['OK']){const _0x54e396=new URL(_0x51f7f2[_0x3b3c9e(0x405)],this[_0x3b3c9e(0x377)]())[_0x3b3c9e(0x3df)]();return Promise[_0x3b3c9e(0x24a)](_0x54e396);}return Promise[_0x3b3c9e(0x390)](_0x51f7f2[_0x3b3c9e(0x328)]);}catch(_0x74885c){return Promise[_0x3b3c9e(0x390)](_0x74885c);}}async[_0x23c7d1(0x30a)](_0x320d9d){const _0x3780b9=_0x23c7d1;let _0x1f9e47='';if(!Zo[_0x3780b9(0x172)](_0x320d9d[_0x3780b9(0x340)]))return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x4631a2[_0x3780b9(0x380)]));if(_0x320d9d[_0x3780b9(0x37a)]>Qo)return this[_0x3780b9(0x189)](),Promise['reject'](new Error(_0x4631a2[_0x3780b9(0x1a2)]));try{const _0x3b9b06=new FormData();_0x3b9b06[_0x3780b9(0x393)](_0x3780b9(0x117),_0x320d9d);const _0x57607e=this['_univerInstanceService'][_0x3780b9(0x26d)](),_0x460019=_0x57607e==null?void 0x0:_0x57607e[_0x3780b9(0x366)]();if(!_0x460019)throw new Error(_0x3780b9(0x2eb));const _0x27e160=this[_0x3780b9(0x243)]()+'?size='+_0x320d9d[_0x3780b9(0x37a)]['toString']()+_0x3780b9(0xf5)+ks[_0x3780b9(0x2b2)]+'&assign='+encodeURIComponent(_0x460019),_0x447d3c=await(await fetch(_0x27e160,{'method':_0x3780b9(0x8f),'body':_0x3b9b06}))[_0x3780b9(0x23a)]();if(typeof _0x447d3c[_0x3780b9(0x225)]!=_0x3780b9(0x2af))return this['_decreaseWaiting'](),Promise[_0x3780b9(0x390)](new Error(_0x4631a2[_0x3780b9(0x169)]));_0x1f9e47=_0x447d3c['FileId'];}catch{return this[_0x3780b9(0x189)](),Promise['reject'](new Error(_0x4631a2[_0x3780b9(0x169)]));}return new Promise((_0x5bb2a4,_0x4235e1)=>{const _0x12fdbe=_0x3780b9,_0x54f0ba=new FileReader();_0x54f0ba[_0x12fdbe(0x369)](_0x320d9d),_0x54f0ba[_0x12fdbe(0x2ca)]=_0x2144a8=>{const _0x153065=_0x12fdbe;var _0x423c66;const _0x26c004=(_0x423c66=_0x2144a8[_0x153065(0x3e1)])==null?void 0x0:_0x423c66[_0x153065(0x1b5)];if(_0x26c004==null){this[_0x153065(0x189)](),_0x4235e1(new Error(_0x4631a2[_0x153065(0x169)]));return;}const _0x60dbf5=_0x344d53['generateRandomId'](0x6);_0x5bb2a4({'imageId':_0x60dbf5,'imageSourceType':_0x558861['UUID'],'source':_0x1f9e47,'base64Cache':_0x26c004,'status':_0x4631a2[_0x153065(0x140)]}),this[_0x153065(0x189)]();};});}['_getUploadFileURL'](){const _0xe3de36=_0x23c7d1;var _0x3d175f,_0x3fa53c;const _0x5beb7e=this[_0xe3de36(0x3c0)][_0xe3de36(0x30d)](ea),_0x52cbde=this[_0xe3de36(0x3c0)][_0xe3de36(0x30d)]($);return(_0x3fa53c=(_0x3d175f=_0x52cbde==null?void 0x0:_0x52cbde[_0xe3de36(0x27d)])!=null?_0x3d175f:_0x5beb7e)!=null?_0x3fa53c:ta;}['_getSignURL'](){const _0x3641db=_0x23c7d1;var _0x5c8f18,_0x270231;const _0xabc888=this[_0x3641db(0x3c0)][_0x3641db(0x30d)](sa),_0x1078b4=this[_0x3641db(0x3c0)][_0x3641db(0x30d)]($);return(_0x270231=(_0x5c8f18=_0x1078b4==null?void 0x0:_0x1078b4['signUrlServerUrl'])!=null?_0x5c8f18:_0xabc888)!=null?_0x270231:ia;}['_getDownloadEndpointURL'](){const _0x29449a=_0x23c7d1;var _0x530d24;const _0x1efd44=this[_0x29449a(0x3c0)][_0x29449a(0x30d)]($);return(_0x530d24=_0x1efd44==null?void 0x0:_0x1efd44[_0x29449a(0xb3)])!=null?_0x530d24:location['origin'];}[_0x23c7d1(0x200)](_0x55ffd4,_0x1dbc3c){const _0x4dc073=_0x23c7d1;return _0x55ffd4[_0x4dc073(0x1c1)](_0x4dc073(0x2d4),_0x1dbc3c);}[_0x23c7d1(0x189)](){const _0xe365e5=_0x23c7d1;this[_0xe365e5(0x273)]-=0x1,this[_0xe365e5(0x3e0)][_0xe365e5(0x183)](this[_0xe365e5(0x273)]);}};Ut=zo([pt(0x0,_0x4dc04f(_0x3bbd66)),pt(0x1,_0x5ae707),pt(0x2,_0x4dc04f(_0x9f62da))],Ut);var na=Object[_0x23c7d1(0x252)],ra=Object[_0x23c7d1(0x113)],oa=(_0x2bfd5e,_0x4f0831,_0x28152b,_0x2d8446)=>{const _0x173090=_0x23c7d1;for(var _0x500114=_0x2d8446>0x1?void 0x0:_0x2d8446?ra(_0x4f0831,_0x28152b):_0x4f0831,_0x5bcfa5=_0x2bfd5e[_0x173090(0x22a)]-0x1,_0x41a234;_0x5bcfa5>=0x0;_0x5bcfa5--)(_0x41a234=_0x2bfd5e[_0x5bcfa5])&&(_0x500114=(_0x2d8446?_0x41a234(_0x4f0831,_0x28152b,_0x500114):_0x41a234(_0x500114))||_0x500114);return _0x2d8446&&_0x500114&&na(_0x4f0831,_0x28152b,_0x500114),_0x500114;},ye=(_0x432524,_0x2fb3c8)=>(_0x4ecb9a,_0x443f85)=>_0x2fb3c8(_0x4ecb9a,_0x443f85,_0x432524);let et=class extends _0x55967c{constructor(_0x13b428,_0x4766cd,_0x5c74ea,_0x57ac46,_0x13933f){const _0x4bd81e=_0x23c7d1;super(),this[_0x4bd81e(0xdc)]=_0x13b428,this[_0x4bd81e(0x21f)]=_0x4766cd,this['_permissionService']=_0x5c74ea,this[_0x4bd81e(0x261)]=_0x57ac46,this['_localeService']=_0x13933f,this[_0x4bd81e(0x25a)](),this[_0x4bd81e(0x37d)]();}[_0x23c7d1(0x37d)](){const _0x22e6ca=_0x23c7d1,_0x839c45=async _0x4bbb3e=>{const _0x13ee96=_0x3e56;(await this[_0x13ee96(0x261)][_0x13ee96(0x3f0)](_0x4bbb3e))[_0x13ee96(0x3f3)]['pipe'](_0x3cca70(_0xadd348=>_0xadd348['eventID']===_0x3e2e84[_0x13ee96(0x3dd)]),_0x1f0b24(this[_0x13ee96(0x1ee)]))[_0x13ee96(0x7f)](_0x28bfdf=>{const _0x271121=_0x13ee96,_0x1d4915=_0x28bfdf,{reason:_0x5a6c15}=_0x1d4915[_0x271121(0x15d)];this['_injector']['get'](_0x413020)['show']({'type':_0x2b8ac7[_0x271121(0x306)],'content':this[_0x271121(0x307)]['t'](_0x271121(0x1b8))+'('+_0x5a6c15+')'}),this[_0x271121(0x3d4)][_0x271121(0x2b5)](new _0x957589(_0x4bbb3e)['id'],!0x1),this[_0x271121(0x261)][_0x271121(0x3a8)](_0x4bbb3e);});};_0x3a25d1(this[_0x22e6ca(0x21f)]['getTypeOfUnitAdded$'](_0x12affe[_0x22e6ca(0x3de)]),this[_0x22e6ca(0x21f)][_0x22e6ca(0xd9)](_0x12affe['UNIVER_DOC']))[_0x22e6ca(0x254)](_0x2abcf2(_0x289d9a=>_0x289d9a['getUnitId']()),_0x3cca70(_0x3e94b4=>!_0x53df5f(_0x3e94b4)),_0x1f0b24(this[_0x22e6ca(0x1ee)]))['subscribe'](_0x55e376=>{_0x839c45(_0x55e376);});}[_0x23c7d1(0x25a)](){const _0x545e71=_0x23c7d1,_0x4a1aff=async _0x56bf96=>{const _0x1cc032=_0x3e56;(await this[_0x1cc032(0x261)][_0x1cc032(0x3f0)](_0x56bf96))[_0x1cc032(0x3f3)]['pipe'](_0x3cca70(_0x586c38=>_0x586c38[_0x1cc032(0x361)]===_0x3e2e84[_0x1cc032(0x2d3)]),_0x1f0b24(this[_0x1cc032(0x1ee)]))[_0x1cc032(0x7f)](_0x16f5a4=>{const _0x5c60a1=_0x1cc032,_0x96c85=_0x16f5a4,{objectId:_0x23ecb8}=_0x96c85['data'],_0x4a9dd2=this[_0x5c60a1(0xdc)][_0x5c60a1(0xcc)](_0x36f2d7);_0x23ecb8===_0x56bf96?_0x4a9dd2[_0x5c60a1(0x1bb)](_0x56bf96):_0x4a9dd2[_0x5c60a1(0x145)](_0x56bf96,_0x23ecb8);});};_0x3a25d1(this[_0x545e71(0x21f)][_0x545e71(0xd9)](_0x12affe['UNIVER_SHEET']),this[_0x545e71(0x21f)][_0x545e71(0xd9)](_0x12affe[_0x545e71(0x195)]))[_0x545e71(0x254)](_0x2abcf2(_0x3268b8=>_0x3268b8[_0x545e71(0x366)]()),_0x3cca70(_0x100316=>!_0x53df5f(_0x100316)),_0x1f0b24(this[_0x545e71(0x1ee)]))[_0x545e71(0x7f)](_0x4930e4=>{_0x4a1aff(_0x4930e4);});}};et=oa([ye(0x0,_0x4dc04f(_0x22396d)),ye(0x1,_0x9f62da),ye(0x2,_0x241914),ye(0x3,_0x4dc04f(he)),ye(0x4,_0x4dc04f(_0x19fdc8))],et);var aa=Object['defineProperty'],ca=Object[_0x23c7d1(0x113)],ha=(_0x5dcb0c,_0x7a7705,_0x3eb017,_0x471ead)=>{for(var _0x27909b=_0x471ead>0x1?void 0x0:_0x471ead?ca(_0x7a7705,_0x3eb017):_0x7a7705,_0x375cb6=_0x5dcb0c['length']-0x1,_0x1b6074;_0x375cb6>=0x0;_0x375cb6--)(_0x1b6074=_0x5dcb0c[_0x375cb6])&&(_0x27909b=(_0x471ead?_0x1b6074(_0x7a7705,_0x3eb017,_0x27909b):_0x1b6074(_0x27909b))||_0x27909b);return _0x471ead&&_0x27909b&&aa(_0x7a7705,_0x3eb017,_0x27909b),_0x27909b;},vs=(_0x104cb6,_0x29ac0d)=>(_0x343cae,_0x315341)=>_0x29ac0d(_0x343cae,_0x315341,_0x104cb6);let Nt=class{constructor(_0x406a9d,_0x1d1b0d){const _0x18eeb4=_0x23c7d1;this[_0x18eeb4(0x3c0)]=_0x406a9d,this['_httpService']=_0x1d1b0d;}async[_0x23c7d1(0x106)](_0x5511b2,_0x37040d){const _0x57ec7b=_0x23c7d1;var _0x2b7004;const {unitID:_0x1f83ec,type:_0x1e8bdf,revision:_0x1e16bd=0x0}=_0x37040d,_0xcf0194=this[_0x57ec7b(0x36f)]()+'/'+_0x1e8bdf+_0x57ec7b(0x2e0)+_0x1f83ec+'/rev/'+_0x1e16bd,_0x242656=(await this['_httpService']['get'](_0xcf0194))['body'],_0x37040b=(_0x2b7004=_0x242656[_0x57ec7b(0x266)])==null?void 0x0:_0x2b7004[_0x57ec7b(0x13b)];if(_0x37040b){const _0x397846=_0x37040b==null?void 0x0:_0x37040b[_0x57ec7b(0x24d)],_0x5648e6=_0x305580[_0x57ec7b(0xf3)](_0x3ad1a8(_0x397846));_0x37040b[_0x57ec7b(0x24d)]=_0x5648e6,Object[_0x57ec7b(0x3fc)](_0x37040b['sheets'])[_0x57ec7b(0x28d)](([,_0x480373])=>{const _0x4bf311=_0x57ec7b,_0x4a91ce=_0x480373[_0x4bf311(0x24d)],_0x38a4d6=_0x305580['encode'](_0x3ad1a8(_0x4a91ce));_0x480373[_0x4bf311(0x24d)]=_0x38a4d6;});}return _0x242656;}async['getSheetBlock'](_0x43abf2,_0x2574b5){const _0x40a31f=_0x23c7d1,{unitID:_0x19f7b5,type:_0x266ebe,blockID:_0x1d40a0}=_0x2574b5,_0x403226=this[_0x40a31f(0x29c)]()+'/'+_0x266ebe+_0x40a31f(0x2e0)+_0x19f7b5+_0x40a31f(0xd7)+_0x1d40a0;return(await this['_httpService']['get'](_0x403226))[_0x40a31f(0x2e2)];}async[_0x23c7d1(0x31c)](_0x540c98,_0x3c04bb){const _0x4ecdb6=_0x23c7d1,{unitID:_0x413500,type:_0x1ad7a5,blockID:_0x1ccebc}=_0x3c04bb,_0x2b74b3=this[_0x4ecdb6(0x29c)]()+'/block/'+_0x1ad7a5+_0x4ecdb6(0x2e0)+_0x413500+'/block/'+_0x1ccebc;return(await this[_0x4ecdb6(0x91)][_0x4ecdb6(0xcc)](_0x2b74b3))['body'];}async[_0x23c7d1(0x7d)](_0x116bc3,_0x4733dd){const _0x520e5a=_0x23c7d1,{unitID:_0x5acce4,type:_0x17951a,from:_0x21e5c6,to:_0x2b33cb}=_0x4733dd,_0x257627=this[_0x520e5a(0x29c)]()+'/'+_0x17951a+_0x520e5a(0x2e0)+_0x5acce4+'/fetchmissing?from='+_0x21e5c6+_0x520e5a(0x10f)+_0x2b33cb;return(await this['_httpService'][_0x520e5a(0xcc)](_0x257627))[_0x520e5a(0x2e2)];}[_0x23c7d1(0x36f)](){const _0x48dbe9=_0x23c7d1;var _0x5c875f;return(_0x5c875f=this[_0x48dbe9(0x3c0)][_0x48dbe9(0x30d)](Cn))!=null?_0x5c875f:this[_0x48dbe9(0x29c)]();}['_getAPIPrefix'](){const _0x24cd29=_0x23c7d1;var _0x48ed8a,_0x12bc9d;const _0xf9b845=this[_0x24cd29(0x3c0)][_0x24cd29(0x30d)](In),_0x29b78d=this[_0x24cd29(0x3c0)][_0x24cd29(0x30d)]($);return(_0x12bc9d=(_0x48ed8a=_0x29b78d==null?void 0x0:_0x29b78d[_0x24cd29(0xbf)])!=null?_0x48ed8a:_0xf9b845)!=null?_0x12bc9d:En;}async['getResourcesRequest'](_0x59cad7,_0xc03ff){const _0x9d035a=_0x23c7d1,_0x5ab7e9=_0x9d035a(0x36e)+_0xc03ff['type']+'/unit/'+_0xc03ff[_0x9d035a(0x347)]+_0x9d035a(0x24b);return(await this[_0x9d035a(0x91)][_0x9d035a(0xcc)](_0x5ab7e9,{'params':{'resourceId':JSON['stringify'](_0xc03ff[_0x9d035a(0x240)])}}))[_0x9d035a(0x2e2)];}[_0x23c7d1(0x2c6)](){const _0x12a95c=_0x23c7d1;throw new Error(_0x12a95c(0x1d7));}[_0x23c7d1(0x1cc)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x23c7d1(0x177)](){const _0x12f340=_0x23c7d1;throw new Error(_0x12f340(0x1d7));}[_0x23c7d1(0x193)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Nt=ha([vs(0x0,_0x5ae707),vs(0x1,_0x4dc04f(_0x3bbd66))],Nt);var la=Object[_0x23c7d1(0x252)],_a=Object['getOwnPropertyDescriptor'],ua=(_0x3625d9,_0x5f06ce,_0x3c934f,_0x1a73d2)=>{const _0x368ba9=_0x23c7d1;for(var _0x5ed046=_0x1a73d2>0x1?void 0x0:_0x1a73d2?_a(_0x5f06ce,_0x3c934f):_0x5f06ce,_0x124249=_0x3625d9[_0x368ba9(0x22a)]-0x1,_0x1c0f40;_0x124249>=0x0;_0x124249--)(_0x1c0f40=_0x3625d9[_0x124249])&&(_0x5ed046=(_0x1a73d2?_0x1c0f40(_0x5f06ce,_0x3c934f,_0x5ed046):_0x1c0f40(_0x5ed046))||_0x5ed046);return _0x1a73d2&&_0x5ed046&&la(_0x5f06ce,_0x3c934f,_0x5ed046),_0x5ed046;},Ue=(_0x26ed97,_0x234b4f)=>(_0x14a160,_0x18accb)=>_0x234b4f(_0x14a160,_0x18accb,_0x26ed97);let Mt=class extends _0x39ed46{constructor(_0x49a44e,_0x136a64,_0x20f582,_0x4e98a3,_0xe1ff13){const _0x2e11a4=_0x23c7d1;super(_0x49a44e,_0x136a64,_0x20f582),this[_0x2e11a4(0x152)]=_0x4e98a3,this['_logService']=_0xe1ff13;}['transformUndoRedo'](_0x56fa3f,_0x47a1a0){const _0x311377=_0x23c7d1,_0x1bc8b6=this[_0x311377(0xa3)](_0x56fa3f);if(_0x1bc8b6)try{const _0x18d5f0=this['_transformStack'](_0x1bc8b6,_0x47a1a0);this[_0x311377(0x3c6)](_0x56fa3f,_0x18d5f0);}catch(_0x816fb9){this[_0x311377(0x3e3)][_0x311377(0x328)](_0x311377(0x2be),_0x816fb9),this[_0x311377(0x14e)](_0x56fa3f);}const _0x48415e=this['_getRedoStack'](_0x56fa3f);if(_0x48415e)try{const _0x20bdb4=this[_0x311377(0x1b3)](_0x48415e,_0x47a1a0);this[_0x311377(0x202)](_0x56fa3f,_0x20bdb4);}catch(_0xb2346d){this[_0x311377(0x3e3)][_0x311377(0x328)](_0xb2346d),this[_0x311377(0x253)](_0x56fa3f);}}[_0x23c7d1(0x14e)](_0x4f445b){const _0x12a243=_0x23c7d1,_0x254923=this['_getUndoStack'](_0x4f445b);_0x254923&&(_0x254923[_0x12a243(0x22a)]=0x0,this[_0x12a243(0x2de)]());}[_0x23c7d1(0x253)](_0x3b54d6){const _0x36535a=_0x23c7d1,_0x739989=this[_0x36535a(0x82)](_0x3b54d6);_0x739989&&(_0x739989['length']=0x0,this[_0x36535a(0x2de)]());}[_0x23c7d1(0x3c6)](_0x2faa41,_0x1fe904){const _0x5c8cec=_0x23c7d1;this[_0x5c8cec(0x274)][_0x5c8cec(0x2f5)](_0x2faa41,_0x1fe904),this[_0x5c8cec(0x2de)]();}[_0x23c7d1(0x202)](_0x2699fa,_0x349a83){const _0x99375=_0x23c7d1;this['_redoStacks'][_0x99375(0x2f5)](_0x2699fa,_0x349a83),this['_updateStatus']();}[_0x23c7d1(0x1b3)](_0x5a3d50,_0x3f3f5a){const _0x1abd1e=_0x23c7d1,_0x202bf9=[];let _0x1538ac=_0x3f3f5a,_0x4cc3e1=_0x3f3f5a;for(let _0x1adcc9=_0x5a3d50[_0x1abd1e(0x22a)]-0x1;_0x1adcc9>=0x0;_0x1adcc9--){const {unitID:_0x59a26b,undoMutations:_0x327d7a,redoMutations:_0x49dbd2}=_0x5a3d50[_0x1adcc9],_0x476f4e=this[_0x1abd1e(0x152)][_0x1abd1e(0x2c0)](_0x1538ac,_0x327d7a),_0x19a22a=this[_0x1abd1e(0x152)]['transformMutationsWithChangeset'](_0x4cc3e1,_0x49dbd2);if(_0x1064ee(_0x476f4e)||_0x1064ee(_0x19a22a)){this['_logService'][_0x1abd1e(0x328)]('[CollaborationUndoRedoService]',_0x1abd1e(0x262),_0x476f4e,_0x19a22a);break;}_0x1538ac=_0x476f4e[_0x1abd1e(0x1e6)],_0x4cc3e1=_0x19a22a[_0x1abd1e(0x1e6)],_0x202bf9[_0x1abd1e(0x3d1)]({'unitID':_0x59a26b,'undoMutations':_0x476f4e[_0x1abd1e(0x388)],'redoMutations':_0x19a22a[_0x1abd1e(0x388)]});}return _0x202bf9[_0x1abd1e(0x3ed)]();}};Mt=ua([Ue(0x0,_0x9f62da),Ue(0x1,_0x45f63f),Ue(0x2,_0x282657),Ue(0x3,_0x1c29f3),Ue(0x4,_0x20dcfc)],Mt);class da extends _0x55967c{constructor(){const _0xd8726e=_0x23c7d1;super(),l(this,_0xd8726e(0x375)),this[_0xd8726e(0x375)]=_0x1c3647(window,_0xd8726e(0x170))[_0xd8726e(0x254)](_0x21580d(this[_0xd8726e(0x1ee)]),_0x25be7a(0x1),_0x41b7dd(void 0x0));}[_0x23c7d1(0x3b4)](_0x590d82,_0x37c95a,_0x24b8e9=!0x1){const _0x2827bf=_0x23c7d1,_0x1eca3d=new URL(window['location'][_0x2827bf(0x1be)]);_0x1eca3d[_0x2827bf(0x20a)][_0x2827bf(0x2f5)](_0x590d82,_0x37c95a),_0x24b8e9?window[_0x2827bf(0x363)][_0x2827bf(0x1ef)]('','',_0x1eca3d[_0x2827bf(0x3df)]()):window['history'][_0x2827bf(0x38a)]('','',_0x1eca3d[_0x2827bf(0x3df)]());}[_0x23c7d1(0x86)](_0x2cd135,_0x16e6b5=!0x1){const _0x417cf3=_0x23c7d1,_0x3c0ae8=new URL(window[_0x417cf3(0xd3)]['href']);_0x3c0ae8['searchParams'][_0x417cf3(0xd4)](_0x2cd135),_0x16e6b5?window['history'][_0x417cf3(0x1ef)]('','',_0x3c0ae8['toString']()):window[_0x417cf3(0x363)][_0x417cf3(0x38a)]('','',_0x3c0ae8[_0x417cf3(0x3df)]());}[_0x23c7d1(0x1f3)](_0x2ae0b6){const _0x3ed31f=_0x23c7d1;var _0x4849b6;return(_0x4849b6=new URL(window[_0x3ed31f(0xd3)][_0x3ed31f(0x1be)])[_0x3ed31f(0x20a)]['get'](_0x2ae0b6))!=null?_0x4849b6:void 0x0;}}var Qs=Object[_0x23c7d1(0x252)],ma=Object[_0x23c7d1(0x113)],fa=(_0x4ff967,_0x3dcfc3,_0x538abc)=>_0x3dcfc3 in _0x4ff967?Qs(_0x4ff967,_0x3dcfc3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x538abc}):_0x4ff967[_0x3dcfc3]=_0x538abc,ga=(_0x1d907d,_0x2e9e18,_0x57a9fd,_0x2d5d17)=>{const _0x5df5fe=_0x23c7d1;for(var _0x3cc9ee=_0x2d5d17>0x1?void 0x0:_0x2d5d17?ma(_0x2e9e18,_0x57a9fd):_0x2e9e18,_0x301e6a=_0x1d907d[_0x5df5fe(0x22a)]-0x1,_0x229642;_0x301e6a>=0x0;_0x301e6a--)(_0x229642=_0x1d907d[_0x301e6a])&&(_0x3cc9ee=(_0x2d5d17?_0x229642(_0x2e9e18,_0x57a9fd,_0x3cc9ee):_0x229642(_0x3cc9ee))||_0x3cc9ee);return _0x2d5d17&&_0x3cc9ee&&Qs(_0x2e9e18,_0x57a9fd,_0x3cc9ee),_0x3cc9ee;},Ve=(_0x1ae0bf,_0x32d20c)=>(_0xb2a4f9,_0x199e5e)=>_0x32d20c(_0xb2a4f9,_0x199e5e,_0x1ae0bf),Sa=(_0x30ee5a,_0x1c634c,_0x30cf5d)=>fa(_0x30ee5a,_0x1c634c+'',_0x30cf5d);const pa='UNIVER_COLLABORATION_CLIENT_PLUGIN';let At=class extends _0x19d8fe{constructor(_0x5e12ce=jn,_0x16bb9b,_0xe44a1c,_0x438fd4,_0x49816f){const _0x2f0e7a=_0x23c7d1;super(),this['_config']=_0x5e12ce,this[_0x2f0e7a(0x3e3)]=_0x16bb9b,this[_0x2f0e7a(0x8a)]=_0xe44a1c,this[_0x2f0e7a(0xdc)]=_0x438fd4,this[_0x2f0e7a(0x3c0)]=_0x49816f;const {..._0x33c9af}=this[_0x2f0e7a(0x2c3)];this[_0x2f0e7a(0x3c0)][_0x2f0e7a(0x2dd)]($,_0x33c9af);}[_0x23c7d1(0x3ec)](){const _0x171a71=_0x23c7d1;this[_0x171a71(0x87)](),_0x2f6d83(this[_0x171a71(0xdc)],[[ve],[Je],[et]]);}['onReady'](){const _0x20da50=_0x23c7d1;_0x2f6d83(this[_0x20da50(0xdc)],[[ze]]);}[_0x23c7d1(0x158)](){const _0x391db5=_0x23c7d1;this[_0x391db5(0xec)]();}['_registerDependencies'](){const _0x23d74d=_0x23c7d1;var _0x4502a8,_0x456549,_0x14cdbd,_0x55cbe4;this[_0x23d74d(0xdc)][_0x23d74d(0x143)](_0x13d877)&&this['_logService']['error'](_0x23d74d(0x30c),_0x23d74d(0x3f4));let _0x493242=[[_0x13d877,{'useClass':Mt}],[he],[Gt],[_0x3bbd66],[Zs,{'useClass':da}],[ce],[w],[_0x564323],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[Vs],[et],[Bs,{'useClass':(_0x456549=(_0x4502a8=this[_0x23d74d(0x2c3)])==null?void 0x0:_0x4502a8[_0x23d74d(0x319)])!=null?_0x456549:Ct}],[_0xe09d1b,{'useClass':_0x4474e8}],[_0xfe39de,{'useClass':Nt}],[_0x32175b,{'useClass':yt}],[_0x11257d,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0x14cdbd=this[_0x23d74d(0x2c3)])!=null&&_0x14cdbd[_0x23d74d(0x28f)]&&_0x493242[_0x23d74d(0x3d1)]([tt,{'useClass':Sr}]),_0x493242=_0x56cd0e(_0x493242,(_0x55cbe4=this[_0x23d74d(0x2c3)])==null?void 0x0:_0x55cbe4[_0x23d74d(0xf9)]),_0x493242['forEach'](_0x4c5840=>this[_0x23d74d(0xdc)][_0x23d74d(0x27e)](_0x4c5840)),this[_0x23d74d(0x11e)]();}[_0x23c7d1(0xec)](){const _0x58cc23=_0x23c7d1;this[_0x58cc23(0x216)](this['_renderManagerService']['registerRenderModule'](_0x12affe[_0x58cc23(0x195)],[wt])),this['disposeWithMe'](this['_renderManagerService'][_0x58cc23(0x333)](_0x12affe[_0x58cc23(0x3de)],[Pt]));}[_0x23c7d1(0x11e)](){const _0x40018d=_0x23c7d1;var _0x160242,_0x5639fd;this[_0x40018d(0xdc)]['get'](_0x3bbd66)[_0x40018d(0x342)]({'priority':0x14,'interceptor':_0x1dd1e0({'maxParallel':0x6})}),this[_0x40018d(0xdc)][_0x40018d(0xcc)](Qe),(_0x160242=this[_0x40018d(0x2c3)])!=null&&_0x160242[_0x40018d(0x33d)]||this[_0x40018d(0xdc)]['get'](w)[_0x40018d(0x387)](),(_0x5639fd=this['_config'])!=null&&_0x5639fd[_0x40018d(0x226)]&&this[_0x40018d(0xdc)]['get'](Ze),this[_0x40018d(0xdc)][_0x40018d(0xcc)](Le),this[_0x40018d(0xdc)][_0x40018d(0x143)](Me)&&this[_0x40018d(0xdc)][_0x40018d(0xcc)](Me);}};Sa(At,_0x23c7d1(0x406),pa),At=ga([_0x4eaec9(_0x4e9ef4),Ve(0x1,_0x20dcfc),Ve(0x2,_0x3bd096),Ve(0x3,_0x4dc04f(_0x22396d)),Ve(0x4,_0x5ae707)],At);export{Fo as AUTHZ_URL_KEY,yt as AuthzIoHttpService,Mn as COLLAB_SUBMIT_CHANGESET_URL_KEY,Tn as COLLAB_WEB_SOCKET_URL_KEY,Le as CollaborationController,qe as CollaborationEntity,bt as CollaborationSession,he as CollaborationSessionService,Ct as CollaborationSocketService,P as CollaborationStatus,To as CollaborationStatusDisplay,Vs as CommentService,Je as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,On as HEARTBEAT_INTERVAL_KEY,js as HEARTBEAT_TIMEOUT_KEY,Bs as ICollaborationSocketService,Zs as IURLService,Ut as ImageIoService,Un as LOCAL_CACHE_INTERVAL_KEY,Ln as LOGIN_URL_KEY,w as LocalCacheService,Pn as RETRY_CONNECTING_MAX_COUNT_KEY,Ha as SEND_CHANGESET_TIMEOUT_KEY,In as SNAPSHOT_SERVER_URL_KEY,Cn as SNAPSHOT_URL_KEY,Y as SessionStatus,no as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,da as WebURLService,Hn as deserializeToCombResponse,xn as serializeCombRequest};