@univerjs-pro/collaboration-client 0.4.0-alpha.0 → 0.4.0-alpha.2

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 _0x4c1f23=_0x4c7d;(function(_0x584523,_0x59eca4){const _0x3c939b=_0x4c7d,_0x418f4c=_0x584523();while(!![]){try{const _0x117914=parseInt(_0x3c939b(0x122))/0x1+parseInt(_0x3c939b(0x39c))/0x2+-parseInt(_0x3c939b(0x3d2))/0x3*(-parseInt(_0x3c939b(0x2d8))/0x4)+parseInt(_0x3c939b(0x2a4))/0x5*(parseInt(_0x3c939b(0x3a1))/0x6)+-parseInt(_0x3c939b(0x349))/0x7*(-parseInt(_0x3c939b(0x231))/0x8)+-parseInt(_0x3c939b(0x39b))/0x9*(-parseInt(_0x3c939b(0x18b))/0xa)+-parseInt(_0x3c939b(0x267))/0xb*(parseInt(_0x3c939b(0x2e8))/0xc);if(_0x117914===_0x59eca4)break;else _0x418f4c['push'](_0x418f4c['shift']());}catch(_0x50b02c){_0x418f4c['push'](_0x418f4c['shift']());}}}(_0x583f,0xc16f8));var qs=Object[_0x4c1f23(0x2e9)],zs=(_0x958bb9,_0x488792,_0x396ceb)=>_0x488792 in _0x958bb9?qs(_0x958bb9,_0x488792,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x396ceb}):_0x958bb9[_0x488792]=_0x396ceb,l=(_0x2c576a,_0x5caf02,_0xe76fb6)=>zs(_0x2c576a,typeof _0x5caf02!=_0x4c1f23(0x12f)?_0x5caf02+'':_0x5caf02,_0xe76fb6);import{createIdentifier as _0x2d62b5,Inject as _0x321449,Disposable as _0x22db72,DisposableCollection as _0x242419,toDisposable as _0x5738c2,IConfigService as _0x4d21d1,ILogService as _0x50688a,UserManagerService as _0xc3ed3,UniverInstanceType as _0x4c91c9,IUniverInstanceService as _0x375068,LocaleService as _0x2e153b,Optional as _0x9bfc3c,RxDisposable as _0x2dacfb,Injector as _0x313fa0,Tools as _0x403f58,ILocalStorageService as _0x23441d,ICommandService as _0x265863,JSONX as _0x107e10,CommandType as _0xcd477b,IPermissionService as _0x52f39f,IUndoRedoService as _0x2fbed3,sequenceExecute as _0x2aed7d,debounce as _0x1b3960,Rectangle as _0x31476b,COLORS as _0x3ca793,ColorKit as _0x3fd1db,ThemeService as _0x6f1691,fromEventSubject as _0x46c56e,useDependency as _0x18fbb6,connectInjector as _0x538d64,Workbook as _0xa32c6e,isInternalEditorID as _0x46dc72,LocalUndoRedoService as _0x2d287d,IContextService as _0x163f08,DependentOn as _0x4869be,Plugin as _0x43f0d0,touchDependencies as _0x50ed8d,IAuthzIoService as _0x2eeda2,mergeOverrideWithDependencies as _0x1588d5}from'@univerjs/core';import{Subject as _0xacaad6,merge as _0x5de0ce,takeUntil as _0x289d57,BehaviorSubject as _0x2ec58d,distinctUntilChanged as _0x1f43e4,fromEvent as _0x1e2c02,map as _0x16d2df,shareReplay as _0xb96cea,take as _0x448807,of as _0x570d55,debounceTime as _0x3504d2,filter as _0x4c7e5a,switchMap as _0x4e9858,combineLatest as _0x4fd693,concatMap as _0x42e091,mapTo as _0x5810d1}from'rxjs';import{map as _0x3d528e,take as _0x41fec6,filter as _0x1f1135,delay as _0x160a7a,throttleTime as _0x4ac9c9,takeUntil as _0x3ae8cf,switchMap as _0x59e45c}from'rxjs/operators';import{MessageType as _0x57eb36,Tooltip as _0x465a5c}from'@univerjs/design';import{IBeforeCloseService as _0x3cc7ef,IMessageService as _0x5d3b7c,INotificationService as _0x7f7802,useObservable as _0x481936,BuiltInUIPart as _0x385326,IUIPartsService as _0x3fbc73}from'@univerjs/ui';import{HTTPService as _0x1fbfa2,WebSocketService as _0x57aa72,MergeInterceptorFactory as _0x34ac01,HTTPRequest as _0x4a19a1,IHTTPImplementation as _0x147a26,XHRHTTPImplementation as _0x5d6c50,ThresholdInterceptorFactory as _0x537a47}from'@univerjs/network';import{CollaborationEvent as _0x273d8c,parseChangesetToProtocol as _0x2b2dd8,ISnapshotServerService as _0x4c90dd,isTransformMutationFailure as _0x3737c9,isTransformMutationsWithChangesetSuccess as _0x8db330,ITransformService as _0x56767e,RevisionService as _0x5d1c03,mapDocumentTypeToUniverType as _0x53eda4,isTransformChangesetsSuccess as _0x428767,CompressMutationService as _0x2615ec,parseProtocolChangeset as _0x569e1c,SnapshotService as _0x38d13f,textEncoder as _0x2c535e,b64DecodeUnicode as _0x58e839,isTransformMutationsWithChangesetFailure as _0x54fa31,UniverCollaborationPlugin as _0x229d30}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x2263bf}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x322779,RichTextEditingMutation as _0x1b2745,SetTextSelectionsOperation as _0x254038,DocSkeletonManagerService as _0x5e9e87}from'@univerjs/docs';import{DocIMEInputManagerService as _0x74964,DocStateChangeManagerService as _0x3f8e0c,NodePositionConvertToCursor as _0x2b89f0,isValidRectRange as _0x53f2b8,NodePositionConvertToRectRange as _0x459c36,TEXT_RANGE_LAYER_INDEX as _0x1c10b5,SetDocZoomRatioOperation as _0xd8bdfb}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x152281,SetSelectionsOperation as _0x137748,InsertSheetMutation as _0x3f0b63,EmptyMutation as _0x489e71,WorkbookEditablePermission as _0x42c12f,RefRangeService as _0x70f3a6,EffectRefRangId as _0x5bd706,handleIRemoveRow as _0x37d328,handleIRemoveCol as _0x5ebff0,handleMoveRange as _0x104260,handleInsertRow as _0x4c71a9,handleInsertRangeMoveRight as _0x2d766e,handleInsertRangeMoveDown as _0x40cb3b,handleInsertCol as _0xb9b59c,handleDeleteRangeMoveUp as _0x362d52,handleDeleteRangeMoveLeft as _0x28d514,runRefRangeMutations as _0x12db35,SetWorksheetActivateCommand as _0x2ca650}from'@univerjs/sheets';import{IRenderManagerService as _0x3f9a6b,Shape as _0xca1f86,Rect as _0x3a075a,getColor as _0x17a368,RegularPolygon as _0x28ffa0,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x58f61e,Vector2 as _0x3b739f}from'@univerjs/engine-render';import{ImageSourceType as _0x1946dd,ImageUploadStatusType as _0x1f89ce,IImageIoService as _0x74670d}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x2363ba,serializeRangeWithSheet as _0x48cd80}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x3d1738,VIEWPORT_KEY as _0x14e392,getCoordByCell as _0x14b841,getSheetObject as _0x24a93b,SheetPermissionInitController as _0x293481}from'@univerjs/sheets-ui';import _0x1e4ea9,{forwardRef as _0x2e90f2,useRef as _0x5ed056,createElement as _0xff9a40,useCallback as _0x1d425c}from'react';function _0x583f(){const _0x5687a0=['_socketService','_lockTransition','_waitCount','updateOfflineData','removeMember','colorChannel1','reconnect','getSkeleton','cursorInfo$','_disableEditing','function','getRangePointData','status$','addObject','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','indexOf','addEventListener','toggleOffline','LIVESHARE_OPERATION','_clearScheduledTask','collaboration_new_changeset','CHANGESET_REJ','_substituteUndoStack','infoRsp','/allowed','_getSaveTimeout','_registerRenderDependencies','min','_unlockTransition','[PendingState]:\x20received\x20rejection.','YUUMI_RATE_OVER_LIMIT','_labelPosition','_docSkeleton','setCurrentUser','_revisionService','code','permission.content','history','create','207hTwWFi','228938vCtfAV','socketService','with','getMember','transformChangesets','642UCXBTx','disableLocalCache','_collabCursorController','clipPath','exhaustSavingTask','_eventUnsubscribe','PENDING','_notificationService','[CollaborationSessionService]','_executeRemoteChangeset','_setupBeforeClosingHandler','jiqing500','_clearOtherTimers','_listenToOfflineEvent','call','FileId','USERS_ENTER','location','_handleJoinEvent','...','triggerDblclick','_getUndoStack','_docSyncEditingCollabCursorService','requestParams','isPermissionRej','json','UNKNOWN_CODE','unload','_substituteRedoStack','resolve','_textBubble','InsertRangeMoveRightCommandId','_incrementRevisionNumber','_syncEditingCollabCursorService','_state$','_createSocket','_getAPIPrefixPath','_checkMissing','createElement','_clearRedo','_shouldReportTelemetry','tag','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','setTimeout','reduce','_undoRedoService','retryConnectingInterval','?url=','enableLocalCache','57RnxwCM','updateCollaborator','OFFLINE','_syncEditingCollabCursor','revision','mutations','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_snapshotService','onMouseMove','LIVESHARE_NEW_HOST','_sendingTimer','liveShareOperation','initWorkbookPermissionChange','NOT_COLLAB','resourceIDs','/unit/','none','_name','Error\x20on\x20receiving\x20event','UNDEFINED','values','LICENSE_MAX_UNITS_EXCEEDED','/universer-api/snapshot','_retryConnectingTimer','FETCH_MISSING','_snapshotServerService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','localeService','appendMutation','transformMutation','blue400','_initCommandExecutedListener','editingUnit','_getSendChangesetTimeout','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','#fff','getTypeOfUnitAdded$','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','close','_submitChangeset','[OfflineState]:\x20received\x20rejection.','getSheetBySheetId','length','_getUploadFileURL','black','OnLineSingle','getViewport','collab-text-range-','_initRequestHeader','_updateStatus','rgba(255,\x20255,\x20255,\x200.01)','UnitSnapshot','/block/','responseType','getCurrentSelections','c1Prime','JOIN','_members','sheets','closeSession','SUBMIT_CHANGESET','apply','_HTTPService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_createInitialStateImpl','getWorkbookSelections','then','_collaborationTimeoutTimer','svg','_handleEvent','gold400','unitId\x20is\x20not\x20found','_id','column','_joinRoom','event$','restore','_drawTextRange','LEAVE','_getMergeRange','OffLineSingle','MoveRangeCommandId','getParam','registerHTTPInterceptor','objectID','_compressMutationService','_shapes','_http','image/bmp','_cursor','clear','onStarting','getSheetBlock','_updateCollabCursors','_entities','status','LIVESHARE_FETCH_OPERATIONS','_getRedoStack','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','idSuffix','searchParams','[PendingState]:\x20unhandled\x20univer\x20type:\x20','INTERNAL_ERROR','getOwnPropertySymbols','updatePermissionPoint','/-/object/-/batch_allowed','/new_changes','_tryReconnect','_commentService','method','memberID','collabStatus.syncing','_telemetryInfo','transformMutationsWithChangeset','_hover','_heartbeatTimer','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_scheduleHeartbeat','UniverIcon','_updateURLWithCurrentState','[FetchMissState]','_scheduleTimestamp','_status$','_anchorDot','image/jpeg','_collaborationPaused','getAncestorScale','Error','_removeRoom','_scene','delete','InsertRowCommandId','_sheetTransformSelectionsService','defIds','font','_onCombEvent','getRelativeToViewportCoord','_localCacheService','_waitForHeartbeatResponse','_removeClearOtherTimer','\x20to\x20','now','LICENSE_DISTRO_REJECTED','_send','saveChangeset','MUTATION','state$','UNIVER_COLLABORATION_CLIENT_PLUGIN','encode','origin','_registerDependencies','unitId','_removeCollabCursors','saveImage','_toggleOffline','duration','_getSnapshotAPIPrefix','allowed','bottom','error$','shouldCloseConn','find','generateRandomId','subunit','UPDATE_CURSOR','OTHER_CLIENTS_EDITING','onRemoteRej','[PendingState]:\x20received\x20acknowledgement.','_fetchMissChangesets','_createHandler','_ws','editing\x20status\x20changed\x20to','_docTransformIMECacheService','onMissedChangesetFetched','asObservable','registerComponent','awaitingChangeset','fetchMiss','forEach','m2Prime','setConfig','reverse','off-line-single_clip0_910_343','[OfflineState]:\x20received\x20acknowledgement.','_onCursorUpdate','loadOfflineData','doc.mutation.rich-text-editing','prototype','sheetID','skeleton','onRemoteChangeset','UNIVER_SHEET','BASE64','range','sessionStatus','getConfig','urlChange$','SNAPSHOT_HAS_BEEN_REMOVED','enableOfflineEditing','roomMembers$','includes','message$','/-/object/list','_localeService','transformIMECache','getUniverSheetInstance','collaboration-session-retry','UNIVER_DOC','_drawAnchor','_handleHeartbeatEvent','onTransformChange$','url','494373KfsTJA','activeSheet$','name','textRanges','from','JOINING','_logService','Warning','CONFLICT','/universer-api/comb','getCellPositionByOffset','_getLoginPath','_transformUndoredo','symbol','some','_unitOnClients','_configService','getOwnPropertyDescriptor','getUnitOnRev','getActiveSheet','INGEST','_instanceService','ranges','snapshotServerUrl','_clearUndo','_socket','_replayCachedMutations','_onConnectionFailed','concat','/role','withCredentials','APPLY_PERMISSION_DENIED','compose','collaboration.single-unit.warning','[CollaborationSession]','_rescheduleHeartbeat','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_urlService','save','loginUrlKey','subscribeEvent','_pendingMutations','_updateState','_localStorageService','getTime','resize','size','_sendHeartbeat','executeCommand','round','_onRemoteACK','fetchMissingChangesets','MSG_FOR_ERROR','every','_startDocCollabCursor','USERS_LEAVE','originalMeta','_permissionService','unshift','unsubscribe','reject','show','_event$','_injector','csAckEvent','_transformStack','href','APPLY_REVISION_CONFILICT','_disabled','onCommandExecuted','_docSkeletonManagerService','_type','_getSignURL','getUndoRedoMutationParamsCache','getCurrentUser','path','_assignedColors','selections','createInstance','setActiveRange','deepClone','stopTime','COLLAB_SUBMIT_CHANGESET_URL','_getSheetObject','session','{fileID}','_refRangeService','error','_toggleOnline','clearInterval','map','verdancy600','commentUpdate$','/collaborator','src','NOT_FOUND','_onOffline','members','_initCloseConn','eventID','getUnitStatus$','close$','getCurrentRevOfUnit','roles','465830xlEJZm','_unitStatus','DeleteRangeMoveUpCommandId','replace','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','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','HELLO','COMPRESS_MUTATION_SEND','incrementRevOfUnit','SEND_CHANGESET_TIMEOUT','_state','_replaceFileID','HEARTBEAT_TIMEOUT','/object/','setParam','_loadSheet','m1Prime','_onUserJoin','_onJoinRoomEvent','_transformUndoRedoStack','_httpService','_clearCollaborationTimeoutTimer','_startCollaboration','override','_hideTimer','COMPRESS_MUTATION_APPLY','_range','createSocket','pipe','getActiveRange','getSheetId','className','copyFileMeta','_onRemoteChangeset','_transformPreviousActiveRange','_userManagerService','setInterval','red300','headers','getRenderById','_getDownloadEndpointURL','_onRecvEvent','_drawRectRange','YUUMI_SUBSCRIPTION_NOT_FOUND','_stopTelemetryCollaborationNewChangeset','collabStatus.fetchMiss','_colorIndex','init','_config','onStateChange','_redoStacks','substring','_beforeCloseService','getInterceptPoints','onTransformSelections','_unitID','_saveCache','UNIVER_SLIDE','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','FETCH_MISS','TOO_MANY_REQUESTS','registerRenderModule','_queuedRemoteChangesets','AWAITING','UNRECOGNIZED','[CollaborationState]:\x20apply\x20error!','session.collaboration-timeout','fromCollab','_cursorInfo$','lineTo','visibilitychange','body','type','image/jpg','_onRemoteRejected','getOffsetConfig','SHOULD_CLOSE_CONN','UNIVER_PROJECT','/object','_clearLocalCache','leaveEvent','fetch_missing','SNAPSHOT_INVALID_SNAPSHOT','univerjs-icon\x20univerjs-icon-','liveShareNewHost','HEARTBEAT','_collabSessionService','pushState','engine','dispose','hide','userID','onSyncEditingCollabCursor','newValue','max','createCollaborator','joinRsp','url(#on-line-single_clip0_910_349)','_sendHeartbeatTimer','_onFetchMissResult','_commandService','_transitionLocked','getCurrent','drawWith','unitID','_onRefRangeChange','_getCtorByUniverType','replaceState','conflict.title','syncEditingCollabCursor','_change$','transformStack\x20failed!','setShapeProps','baseRev','_initMergeInterceptor','_socket$','_remoteChangesetQueue','onTransformIME','loadSheet','_ensureSubject','_hovered','getFocusedUnit','findNodePositionByCharIndex','YUUMI_URL_COL_OUT_OF_RANGE','file','_render','offline','transformRemoteChangeset','debug','currentColor','_clearHeartbeatTimer','has','_scheduleSaving','_onUserLeave','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','UNAUTHENTICATED','subUnitId','commentUpdateEvent','RemoveColCommandId','/universer-api/snapshot/','DEFAULT_FILE_NAME','send','changesets','endRow','_imageSourceCache','div','M0\x200H16V16H0z','session.room-full','_handleHover','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_sessionStatus$','_onConflict','_initResize','catch','authzUrl','toString','resend','_telemetryService','collab-text-anchor-','collabStatus.conflict','assignAColorForMemberID','fillStyle','_sessions','EXCHANGE_SIGN_URL_SERVER_URL_KEY','confirm','SNAPSHOT_SERVER_URL_KEY','8dtDurG','_cursors','_collaborationController','onPointerEnter$','&source=','split','IDLE','visibilityState','collaboration-client.offline-data-not-saved','put','_cachedData','pauseCollaboration','next','measureText','[SyncedState]:\x20received\x20rejection.','_initUnitPermissionChange','uploadFileServerUrl','updatePermissionObjEvent','sheetId','hasOwnProperty','workbook','addImageSourceCache','closePath','disposeWithMe','x-univer-host','0\x200\x2017\x2016','_exhaustRemoteChangesetQueue','updateCursorEvent','_showConflictNotification','univer-online-status-icon','_selfUnitIDs','APPLY_REJECT','disposeUnit','_updateLocalCursor','conflict.content','getCollabEntity','readAsDataURL','string','_scheduleClearOtherTimer','_roomMembers$','collabSubmitChangesetUrl','onPointerLeave$','_online','getValue','_refreshCollabCursors','joinEvent','defs','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','onlineStatusTitle','_cursorShapes','fillText','_updateSubUnitFromURLParams','dispose$','_onMessage','7876sOPuki','entries','rev','UUID','_applyRemoteChangeset','change$','moveTo','hovered','#FFF','startsWith','_colorAssignService','endColumn','onRendered','_tryEnsureSocket','CONNECTOR_DATA_TOO_LARGE','/universer-api/authz','_anchor','xlink:href','attrs','_lastPointer','getUnitType','push','addObjects','_socketReady','submit\x20changeset\x20error!','subscribe','parse','_listenToOnlineEvent','currentTheme$','_uiPartsService','_clearTimeoutTimer','_startTelemetryCollaborationNewChangeset','unit','registerRefRange','collaborators','Undefined','failed\x20to\x20apply\x20missed\x20changesets!','InsertRangeMoveDownCommandId','SNAPSHOT_URL_KEY','getImageSourceCache','_messageService','LICENSE_IMPORT_SIZE_EXCEEDED','fill','_throwTelemetryCollaborationNewChangeset','loadDoc','sessionStatus$','_acknowledgedAwaitingChangeset','HEADER_MENU','replaceTextRanges','_schedule','collab-rect-range-','_retryCount','connection\x20error','url(#off-line-single_clip0_910_343)','slice','collaboration.closeRoom','_entityInit$','_createInitialState','use','isActive','/universer-api/stream/file/upload','12165ZzPxmy','capture','APPLY_NON_SEQUENTIAL_REVISION','fetching\x20missing\x20changesets\x20from\x20','_collaborationSessionService','off-line-single','_onConnectionOpen','DeleteRangeMoveLeftCommandId','_setupSubUnitSync','HttpExport','auth.needGotoLoginAlert','currentSkeleton$','COLLAB_WEB_SOCKET_URL','list','target','awaiting_with_pending','_initModules','_backgroundColor','online','getCollabEntity$','cursorInfo','_sheetSkeletonManagerService','row','labelPosition','transformUndoRedo','getDocRanges','ALREADY_EXISTS','PERMISSION_REJ','_session','FromArray','[SyncedState]:\x20received\x20acknowledgement.','univer-online-status','complete','result','RETRY_CONNECTING_MAX_COUNT','whenReady','_themeService','UPDATE_PERMISSION_OBJ','AUTHZ_URL_KEY','RemoveRowCommandId','FAIL','_isPermissionRej','_transformService','_getAPIPrefix','synced','saveSnapshot','_candidateSocket','_onCursorDelete','onSendChangeset','1em','updateMember','_initStatusComponent','9148UscBzD','toRgbString','_color','collab-client.tooltip.reconnect','_roomMembers','_onLocalMutation','displayName','_transformRemoteChangesetByIMECache','_getAnchorBounding','ONLINE','focused$','LIVESHARE_TERMINATE','NEW_CHANGESETS','onTransformRemoteChangesetByIMECache','extend','\x20in\x20_schedule.','27876PVTNMg','defineProperty','newCsEvent','&to=','requireSession','_memberService','getTypeOfUnitDisposed$','objectType','getResourcesRequest','ERROR_IMAGE','getUnhiddenWorksheets','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','onPointerMove$','collabCursorState$','getUnit','all','setItem','_decreaseWaiting','startColumn','add','action','conflict','listCollaborators','_docTransformSelectionsService','_document','setUndoRedoMutationParamsCache','top','roomMembers','UnitEmbedded','height','[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.','_socketMessageSubscription','_context','_getCurrentRevision','registerOnClose','onlyLocal','text','color','ws://127.0.0.1:8000/universer-api/comb/connect','unknown','_univerInstanceService','socket\x20open.','saveOfflineData','_timeoutTimer','clearTimeout','cmd','SYNCED','InsertColCommandId','_initStatusListener','[CollaborationUndoRedoService]','/resources','HttpImport','/universer-api/oidc/authpage','assign','onMissingChangesets','toggleOnline','getCollabCursors$','width','PERMISSION_DENIED','evenodd','ACTIVE_UNIT_EVENT_CHANNEL','arc','RECV','YUUMI_UNABLE_LOAD_URL','random','set','_updateLocalCache','collabStatus.offline','isEditing','patch','_awaitingChangeset','_transformIMECache','startRow','removeParam','LIVESHARE_REQUEST_HOST','_renderManagerService','_loadDoc','_singleActiveUnitService','[DataLoaderController]','collabStatus.synced','setAlpha','data','Unknown\x20user','/fetchmissing?from=','_draw','actions','SUCCUSS','collabStatus.notCollab','getRoom','post','[UniverCollaborationClientPlugin]','_commentUpdate$','append','open$','_transformSelections','filter','get','3300815EeivvE','_init','_handler','transformSelections','\x0aCurrent:\x20','getUnitId','unit-cache-','onReady','_saveTaskMap','getItem','POST','state','LICENSE_EXPORT_SIZE_EXCEEDED','_collabCursorState$','onRemoteAck','_startSheetCollabCursor','uni.network.url-service','onCommentUpdate','isArray','_initEventListeners','interceptor','fetchThroughInterceptors','_handleLeaveEvent','stringify','UNIVER_UNKNOWN','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','selection','params','onlineStatusIcon','CHANGESET_REVISION_CONFILICT','key','CHANGESET_ACK','awaiting','[CollaborationSessionService]:\x20socket\x20error','not_collab','collaboration-client.config','purple300','update','roomInfos','getMemberID','Univer','image/gif','routeKey'];_0x583f=function(){return _0x5687a0;};return _0x583f();}import _0x42940b from'clsx';import{IRemoteInstanceService as _0x51139b}from'@univerjs/rpc';import{getAttachHeader as _0x575ac8}from'@univerjs-pro/license';const dn=_0x4c1f23(0x230),fn=_0x4c1f23(0x3e8),mn=_0x4c1f23(0x28d),Oa=_0x4c1f23(0x194),gn=0x7d0,Sn=_0x4c1f23(0x2b0),pn=_0x4c1f23(0x30e),vn='HEARTBEAT_INTERVAL',In=0x7530,Ns=_0x4c1f23(0x197),Us=0x4e20,En=0x4e20,Cn=_0x4c1f23(0x2c6),bn=0x3,Tn='LOCAL_CACHE_INTERVAL',Rn=0x3e8,On=_0x4c1f23(0x175),Dn=_0x4c1f23(0x12b),wn='LOGIN_URL_KEY',Pn=_0x4c1f23(0x31c);var Ms=(_0x3c8afd=>(_0x3c8afd[_0x3c8afd[_0x4c1f23(0x3e5)]=0x0]=_0x4c1f23(0x3e5),_0x3c8afd[_0x3c8afd['OK']=0x1]='OK',_0x3c8afd[_0x3c8afd[_0x4c1f23(0xb4)]=0x2]='INTERNAL_ERROR',_0x3c8afd[_0x3c8afd['PERMISSION_DENIED']=0x3]=_0x4c1f23(0x322),_0x3c8afd[_0x3c8afd['NOT_FOUND']=0x4]=_0x4c1f23(0x182),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x212)]=0x5]=_0x4c1f23(0x212),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x2be)]=0x6]=_0x4c1f23(0x2be),_0x3c8afd[_0x3c8afd['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x1c7)]=0x8]='TOO_MANY_REQUESTS',_0x3c8afd[_0x3c8afd['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x366)]=0x1389]=_0x4c1f23(0x366),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x1dd)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x113)]=0x1772]=_0x4c1f23(0x113),_0x3c8afd[_0x3c8afd['APPLY_REJECT']=0x1b59]=_0x4c1f23(0x250),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x2a6)]=0x1b5a]=_0x4c1f23(0x2a6),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x166)]=0x1b5b]=_0x4c1f23(0x166),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x141)]=0x1b5c]=_0x4c1f23(0x141),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x275)]=0x1f41]=_0x4c1f23(0x275),_0x3c8afd[_0x3c8afd['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x4c1f23(0x3e7),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x3ed)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x290)]=0x232b]=_0x4c1f23(0x290),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x355)]=0x232c]=_0x4c1f23(0x355),_0x3c8afd[_0x3c8afd[_0x4c1f23(0xdc)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x327)]=0x2711]=_0x4c1f23(0x327),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x206)]=0x2712]=_0x4c1f23(0x206),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x392)]=0x2713]=_0x4c1f23(0x392),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x1b6)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x1cb)]=-0x1]=_0x4c1f23(0x1cb),_0x3c8afd))(Ms||{}),H=(_0x193fa5=>(_0x193fa5[_0x193fa5[_0x4c1f23(0x361)]=0x0]=_0x4c1f23(0x361),_0x193fa5[_0x193fa5[_0x4c1f23(0x11d)]=0x1]=_0x4c1f23(0x11d),_0x193fa5[_0x193fa5[_0x4c1f23(0x10d)]=0x2]=_0x4c1f23(0x10d),_0x193fa5[_0x193fa5[_0x4c1f23(0x1c4)]=0x3]='UNIVER_SLIDE',_0x193fa5[_0x193fa5[_0x4c1f23(0x1d8)]=0x4]='UNIVER_PROJECT',_0x193fa5[_0x193fa5[_0x4c1f23(0x1cb)]=-0x1]=_0x4c1f23(0x1cb),_0x193fa5))(H||{}),I=(_0x436903=>(_0x436903[_0x436903['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x436903[_0x436903['HELLO']=0x1]=_0x4c1f23(0x191),_0x436903[_0x436903[_0x4c1f23(0x86)]=0x2]='JOIN',_0x436903[_0x436903['LEAVE']=0x3]=_0x4c1f23(0x9c),_0x436903[_0x436903[_0x4c1f23(0x136)]=0x4]=_0x4c1f23(0x136),_0x436903[_0x436903['HEARTBEAT']=0x5]=_0x4c1f23(0x1e0),_0x436903[_0x436903['RECV']=0x6]='RECV',_0x436903[_0x436903['UNRECOGNIZED']=-0x1]=_0x4c1f23(0x1cb),_0x436903))(I||{}),kt=(_0x13dbbd=>(_0x13dbbd[_0x13dbbd[_0x4c1f23(0x3bb)]=0x0]=_0x4c1f23(0x3bb),_0x13dbbd[_0x13dbbd['OK']=0x1]='OK',_0x13dbbd[_0x13dbbd[_0x4c1f23(0x2cc)]=0x2]=_0x4c1f23(0x2cc),_0x13dbbd[_0x13dbbd['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x13dbbd))(kt||{}),As=(_0x14d295=>(_0x14d295[_0x14d295[_0x4c1f23(0x28a)]=0x0]=_0x4c1f23(0x28a),_0x14d295[_0x14d295[_0x4c1f23(0x31b)]=0x1]='HttpImport',_0x14d295[_0x14d295[_0x4c1f23(0x2ad)]=0x2]=_0x4c1f23(0x2ad),_0x14d295[_0x14d295['UnitEmbedded']=0x3]=_0x4c1f23(0x304),_0x14d295[_0x14d295[_0x4c1f23(0x81)]=0x4]=_0x4c1f23(0x81),_0x14d295[_0x14d295[_0x4c1f23(0x1cb)]=-0x1]=_0x4c1f23(0x1cb),_0x14d295))(As||{});const L=_0x4c1f23(0x36c),yn={};function Nn(_0xa62d04){const _0xede628=_0x4c1f23;var _0x1fa07b,_0x255cec,_0x1627b9,_0x20807b;const _0x3b16c9=_0xa62d04[_0xede628(0x339)],_0x4112c5=JSON['parse'](_0x3b16c9);switch(_0x4112c5[_0xede628(0x315)]){case I[_0xede628(0x1e0)]:case I[_0xede628(0x191)]:{const _0x27634f=_0x4112c5[_0xede628(0x38b)];return{..._0x4112c5,'data':_0x27634f,'cmd':_0x4112c5[_0xede628(0x315)]};}case I[_0xede628(0x86)]:{const _0x5d1b9f=_0x4112c5[_0xede628(0x1eb)];return{..._0x4112c5,'data':_0x5d1b9f,'cmd':_0x4112c5[_0xede628(0x315)]};}case I['RECV']:{const _0x21ce19=_0x4112c5['collaMsg'];switch(_0x21ce19[_0xede628(0x186)]){case _0x273d8c[_0xede628(0x2bf)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':(_0x1fa07b=_0x21ce19['permissionRejEvent'])==null?void 0x0:_0x1fa07b['cs']},'cmd':_0x4112c5['cmd']};case _0x273d8c[_0xede628(0x368)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':(_0x255cec=_0x21ce19[_0xede628(0x163)])==null?void 0x0:_0x255cec['cs']},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x2e4)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':(_0x1627b9=_0x21ce19[_0xede628(0x2ea)])==null?void 0x0:_0x1627b9['cs']},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x389)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':(_0x20807b=_0x21ce19['csRejEvent'])==null?void 0x0:_0x20807b['cs']},'cmd':_0x4112c5['cmd']};case _0x273d8c['UPDATE_CURSOR']:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x24c)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c['USERS_ENTER']:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x25e)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x15a)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x1db)]},'cmd':_0x4112c5['cmd']};case _0x273d8c[_0xede628(0x3db)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x1df)]},'cmd':_0x4112c5['cmd']};case _0x273d8c['LIVESHARE_FETCH_OPERATIONS']:case _0x273d8c[_0xede628(0x386)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x3dd)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c['LIVESHARE_TERMINATE']:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x1df)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x157)]:return{..._0x4112c5,'data':_0x21ce19,'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c['COMMENT_UPDATE']:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x214)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x2c9)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x242)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x1d7)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0xee)]},'cmd':_0x4112c5['cmd']};default:return _0x4112c5;}}default:return _0x4112c5;}}function Un(_0x582c4a){const _0x2c03ad=_0x4c1f23;switch(_0x582c4a[_0x2c03ad(0x315)]){case I['HEARTBEAT']:case I['HELLO']:return JSON[_0x2c03ad(0x360)]({'cmd':_0x582c4a[_0x2c03ad(0x315)],'routeKey':_0x582c4a[_0x2c03ad(0x373)]});case I['INGEST']:{let _0x5b4dd4;switch(_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x186)]){case _0x273d8c[_0x2c03ad(0xf2)]:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0xf2)],'updateCursorEvent':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x339)]};break;}case _0x273d8c['USERS_LEAVE']:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x15a)],'leaveEvent':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x339)]};break;}case _0x273d8c[_0x2c03ad(0x3b1)]:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x3b1)],'joinEvent':_0x582c4a[_0x2c03ad(0x339)]['data']};break;}case _0x273d8c[_0x2c03ad(0x3db)]:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x3db)],'liveShareNewHost':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x339)]};break;}case _0x273d8c[_0x2c03ad(0x386)]:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x386)],'liveShareOperation':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x339)]};break;}case _0x273d8c[_0x2c03ad(0x2e3)]:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x2e3)],'liveShareTerminate':_0x582c4a[_0x2c03ad(0x339)]['data']};break;}case _0x273d8c['LIVESHARE_REQUEST_HOST']:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x332)],'liveShareRequestHost':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x339)]};break;}case _0x273d8c[_0x2c03ad(0xae)]:{_0x5b4dd4={'eventID':_0x273d8c['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x5b4dd4={'eventID':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x186)]};}return JSON[_0x2c03ad(0x360)]({'cmd':_0x582c4a['cmd'],'routeKey':_0x582c4a['routeKey'],'collaMsg':_0x5b4dd4});}case I['JOIN']:return JSON['stringify']({'cmd':_0x582c4a['cmd'],'routeKey':_0x582c4a[_0x2c03ad(0x373)],'joinReq':_0x582c4a[_0x2c03ad(0x339)]});case I['LEAVE']:return JSON['stringify']({'cmd':_0x582c4a[_0x2c03ad(0x315)],'routeKey':_0x582c4a[_0x2c03ad(0x373)],'leaveReq':_0x582c4a['data']});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var Mn=Object['defineProperty'],An=Object[_0x4c1f23(0x133)],Ln=(_0x50e760,_0x4acce8,_0x818c9e,_0x23b747)=>{const _0x326986=_0x4c1f23;for(var _0x3eb5f8=_0x23b747>0x1?void 0x0:_0x23b747?An(_0x4acce8,_0x818c9e):_0x4acce8,_0x58eec7=_0x50e760[_0x326986(0x78)]-0x1,_0x52772a;_0x58eec7>=0x0;_0x58eec7--)(_0x52772a=_0x50e760[_0x58eec7])&&(_0x3eb5f8=(_0x23b747?_0x52772a(_0x4acce8,_0x818c9e,_0x3eb5f8):_0x52772a(_0x3eb5f8))||_0x3eb5f8);return _0x23b747&&_0x3eb5f8&&Mn(_0x4acce8,_0x818c9e,_0x3eb5f8),_0x3eb5f8;},Re=(_0x40d5aa,_0x2ade6c)=>(_0xa9fe0c,_0x1dd474)=>_0x2ade6c(_0xa9fe0c,_0x1dd474,_0x40d5aa);const Ls=_0x2d62b5('univer-pro.collaboration-client-socket-service');function $n(_0x2a1dab,_0x42cc4c,_0x3756b7){const _0xaa23be=_0x4c1f23;return _0x2a1dab+'/'+_0x42cc4c+_0xaa23be(0x3e1)+_0x3756b7+_0xaa23be(0xb8);}let Et=class extends _0x22db72{constructor(_0x36dca4,_0x10ab30,_0x186538,_0x2f937b,_0xe172d9){const _0x71c1a5=_0x4c1f23;super(),this[_0x71c1a5(0xa5)]=_0x36dca4,this[_0x71c1a5(0xf8)]=_0x10ab30,this[_0x71c1a5(0x132)]=_0x186538,this[_0x71c1a5(0x128)]=_0x2f937b,this['_snapshotServerService']=_0xe172d9;}[_0x4c1f23(0x1a6)](_0x130798){const _0x35fb53=_0x4c1f23,_0x5ca11d=this[_0x35fb53(0xf8)][_0x35fb53(0x1a6)](_0x130798);if(!_0x5ca11d)throw new Error(_0x35fb53(0x3f5));const _0x693d5c=new _0x242419(),_0x27ff60=new _0xacaad6();_0x693d5c[_0x35fb53(0x2fb)](_0x5ca11d['close$']['subscribe'](_0x4a9793=>_0x27ff60[_0x35fb53(0x23d)](_0x4a9793))),_0x693d5c[_0x35fb53(0x2fb)](_0x5738c2(()=>_0x27ff60[_0x35fb53(0x2c4)]()));const _0x3d209c=new _0xacaad6();_0x693d5c[_0x35fb53(0x2fb)](_0x5ca11d[_0x35fb53(0xed)][_0x35fb53(0x280)](_0x17aa78=>_0x3d209c[_0x35fb53(0x23d)](_0x17aa78))),_0x693d5c[_0x35fb53(0x2fb)](_0x5738c2(()=>_0x3d209c[_0x35fb53(0x2c4)]()));const _0x30c9a9=new _0xacaad6();_0x693d5c[_0x35fb53(0x2fb)](_0x5ca11d[_0x35fb53(0x117)][_0x35fb53(0x280)](_0x23afd1=>{const _0x11dd24=_0x35fb53,_0x15b7b2=Nn(_0x23afd1);_0x30c9a9[_0x11dd24(0x23d)](_0x15b7b2);})),_0x693d5c['add'](_0x5738c2(()=>_0x30c9a9['complete']()));let _0x30d95a;const _0x58cbcc=()=>{const _0x14871c=_0x35fb53;_0x3d209c[_0x14871c(0x23d)](new Event(_0x14871c(0x29b))),_0x27ff60['next'](new CloseEvent(_0x14871c(0x29b))),_0x30d95a[_0x14871c(0x74)]();};return _0x30d95a={'memberID':'','close$':_0x27ff60['asObservable'](),'error$':_0x3d209c[_0x35fb53(0xfc)](),'open$':_0x5ca11d[_0x35fb53(0x345)],'message$':_0x30c9a9[_0x35fb53(0xfc)](),'send':_0x1b66cb=>{const _0x17f8fe=_0x35fb53;if(_0x1b66cb[_0x17f8fe(0x315)]===I['INGEST']){if(_0x1b66cb[_0x17f8fe(0x339)][_0x17f8fe(0x186)]===_0x273d8c[_0x17f8fe(0x8a)]){this[_0x17f8fe(0x75)](_0x30d95a,_0x1b66cb[_0x17f8fe(0x339)])[_0x17f8fe(0x224)](_0x462d26=>{const _0xe8df5b=_0x17f8fe;this[_0xe8df5b(0x128)][_0xe8df5b(0x17a)](_0x462d26),_0x58cbcc();});return;}if(_0x1b66cb[_0x17f8fe(0x339)][_0x17f8fe(0x186)]===_0x273d8c[_0x17f8fe(0x3ea)]){const _0xdd37a3=_0x1b66cb[_0x17f8fe(0x339)];this[_0x17f8fe(0xf6)](_0xdd37a3)[_0x17f8fe(0x90)](_0x4438f9=>{const _0x4458f7=_0x17f8fe;_0x30c9a9[_0x4458f7(0x23d)]({'cmd':I[_0x4458f7(0x326)],'code':kt['OK'],'routeKey':_0xdd37a3[_0x4458f7(0x339)][_0x4458f7(0x1f3)],'routeType':'','data':{'eventID':_0x273d8c['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x4438f9}}});})[_0x17f8fe(0x224)](_0x236185=>{const _0x4a009f=_0x17f8fe;this[_0x4a009f(0x128)][_0x4a009f(0x17a)](_0x236185),_0x58cbcc();});return;}}_0x5ca11d[_0x17f8fe(0x218)](Un(_0x1b66cb));},'close':()=>{_0x5ca11d['close'](),_0x693d5c['dispose']();}},_0x30d95a;}async[_0x4c1f23(0x75)](_0x15b682,_0x209f55){const _0x3b8775=_0x4c1f23;var _0x3a2ad2,_0x34ecda;const {unitType:_0x2a9830,unitID:_0x1befaf,changeset:_0x244cc9}=_0x209f55[_0x3b8775(0x339)],_0x1c3fa8={'unitID':_0x1befaf,'memberID':_0x15b682['memberID'],'type':_0x2a9830,'changeset':_0x2b2dd8(_0x244cc9)},_0x3cf0b7=this[_0x3b8775(0x132)][_0x3b8775(0x111)](On),_0x5dd139=this['_configService'][_0x3b8775(0x111)](L),_0x9c7e2c=$n((_0x34ecda=(_0x3a2ad2=_0x5dd139==null?void 0x0:_0x5dd139[_0x3b8775(0x259)])!=null?_0x3a2ad2:_0x3cf0b7)!=null?_0x34ecda:Dn,_0x2a9830,_0x1befaf);try{await this['_http'][_0x3b8775(0x341)](_0x9c7e2c,{'body':_0x1c3fa8});}catch(_0x4512cb){throw this[_0x3b8775(0x128)][_0x3b8775(0x17a)](_0x3b8775(0x144),_0x3b8775(0x27f)),_0x4512cb;}}async[_0x4c1f23(0xf6)](_0x4896ac){const _0x4d9a09=_0x4c1f23,{unitID:_0x3dfd4f,from:_0x36b267,to:_0x30a705,unitType:_0x35912a}=_0x4896ac['data'];return(await this[_0x4d9a09(0x3eb)][_0x4d9a09(0x156)]({'metadata':void 0x0},{'unitID':_0x3dfd4f,'type':_0x35912a,'from':_0x36b267,'to':_0x30a705}))[_0x4d9a09(0x219)];}};Et=Ln([Re(0x0,_0x321449(_0x1fbfa2)),Re(0x1,_0x321449(_0x57aa72)),Re(0x2,_0x4d21d1),Re(0x3,_0x50688a),Re(0x4,_0x4c90dd)],Et);const jn=_0x4c1f23(0x388);function xn(_0x4e0973){const _0xebb7d3=_0x4c1f23;return JSON[_0xebb7d3(0x360)](_0x4e0973)['length'];}class $s{constructor(){const _0x307a83=_0x4c1f23;l(this,'_commentUpdate$',new _0xacaad6()),l(this,_0x307a83(0x17f),this[_0x307a83(0x343)][_0x307a83(0xfc)]());}['onCommentUpdate'](_0x497178){const _0xd10197=_0x4c1f23;this[_0xd10197(0x343)]['next'](_0x497178);}}var Hn=Object[_0x4c1f23(0x2e9)],kn=Object[_0x4c1f23(0x133)],Bn=(_0x259610,_0x45c057,_0x5b32f6,_0x2954c4)=>{const _0x3e16b8=_0x4c1f23;for(var _0x3975a5=_0x2954c4>0x1?void 0x0:_0x2954c4?kn(_0x45c057,_0x5b32f6):_0x45c057,_0x22362b=_0x259610[_0x3e16b8(0x78)]-0x1,_0x50d417;_0x22362b>=0x0;_0x22362b--)(_0x50d417=_0x259610[_0x22362b])&&(_0x3975a5=(_0x2954c4?_0x50d417(_0x45c057,_0x5b32f6,_0x3975a5):_0x50d417(_0x3975a5))||_0x3975a5);return _0x2954c4&&_0x3975a5&&Hn(_0x45c057,_0x5b32f6,_0x3975a5),_0x3975a5;},rs=(_0x472601,_0x16d3db)=>(_0x2be070,_0x1fc134)=>_0x16d3db(_0x2be070,_0x1fc134,_0x472601);let ae=class extends _0x22db72{constructor(_0x29478b,_0x413952){const _0x242e51=_0x4c1f23;super(),l(this,_0x242e51(0x2dc),new Map()),(this['_univerInstanceService']=_0x29478b,this[_0x242e51(0x1ae)]=_0x413952,this[_0x242e51(0x248)](_0x5738c2(_0x5de0ce(this[_0x242e51(0x310)]['getTypeOfUnitDisposed$'](_0x4c91c9['UNIVER_SHEET'])[_0x242e51(0x1a7)](_0x3d528e(_0x138c70=>_0x138c70[_0x242e51(0x34e)]())),this[_0x242e51(0x310)][_0x242e51(0x2ee)](_0x4c91c9[_0x242e51(0x11d)])[_0x242e51(0x1a7)](_0x3d528e(_0x54ca50=>_0x54ca50[_0x242e51(0x34e)]())),this[_0x242e51(0x310)]['getTypeOfUnitDisposed$'](_0x4c91c9[_0x242e51(0x1c4)])['pipe'](_0x3d528e(_0x243753=>_0x243753[_0x242e51(0x34e)]())))[_0x242e51(0x280)](_0xbd3083=>this[_0x242e51(0xce)](_0xbd3083)))));}[_0x4c1f23(0x395)](_0x40becd){const _0x525e6b=_0x4c1f23;this[_0x525e6b(0x1ae)][_0x525e6b(0x395)](_0x40becd);}[_0x4c1f23(0x16d)](){const _0x5537f8=_0x4c1f23;return this[_0x5537f8(0x1ae)]['getCurrentUser']();}[_0x4c1f23(0x2d6)](_0x16073a,_0x281ffc){const _0x37bffd=_0x4c1f23;let _0x508ff1=this['_roomMembers'][_0x37bffd(0x348)](_0x16073a);_0x508ff1||(_0x508ff1=new Vn(),this[_0x37bffd(0x2dc)]['set'](_0x16073a,_0x508ff1)),_0x508ff1[_0x37bffd(0x2d6)](_0x281ffc);}[_0x4c1f23(0x378)](_0x2d3327,_0x2fe043){const _0x1e95e1=_0x4c1f23,_0x46936b=this[_0x1e95e1(0x2dc)]['get'](_0x2d3327);_0x46936b&&_0x46936b[_0x1e95e1(0x378)](_0x2fe043);}[_0x4c1f23(0x340)](_0x43fc54){return this['_roomMembers']['get'](_0x43fc54);}['getMember'](_0x4dcc02,_0x37b213){const _0x43138e=_0x4c1f23,_0x4e5950=this[_0x43138e(0x2dc)]['get'](_0x4dcc02);if(_0x4e5950)return _0x4e5950[_0x43138e(0x39f)](_0x37b213);}[_0x4c1f23(0xce)](_0x5b9777){const _0x30b1c9=_0x4c1f23,_0x115f2f=this['_roomMembers']['get'](_0x5b9777);_0x115f2f&&(_0x115f2f[_0x30b1c9(0x1e4)](),this[_0x30b1c9(0x2dc)][_0x30b1c9(0xd0)](_0x5b9777));}[_0x4c1f23(0x1e4)](){const _0x47fff3=_0x4c1f23;this[_0x47fff3(0x2dc)][_0x47fff3(0x100)](_0x4e8277=>_0x4e8277[_0x47fff3(0x1e4)]()),this['_roomMembers'][_0x47fff3(0xa8)]();}};ae=Bn([rs(0x0,_0x375068),rs(0x1,_0x321449(_0xc3ed3))],ae);class Vn extends _0x22db72{constructor(){const _0x3d2095=_0x4c1f23;super(...arguments),l(this,_0x3d2095(0x87),new Map());}[_0x4c1f23(0x1e4)](){const _0xa33cb1=_0x4c1f23;this[_0xa33cb1(0x87)][_0xa33cb1(0xa8)]();}[_0x4c1f23(0x2d6)](_0x1650df){const _0x28725d=_0x4c1f23;this[_0x28725d(0x87)]['set'](_0x1650df[_0x28725d(0xbc)],_0x1650df);}['removeMember'](_0x385b58){const _0x4b7738=_0x4c1f23;this[_0x4b7738(0x87)][_0x4b7738(0xd0)](_0x385b58);}[_0x4c1f23(0x39f)](_0x43c94c){const _0x5d70f6=_0x4c1f23;return this['_members'][_0x5d70f6(0x348)](_0x43c94c);}}var Fn=Object['defineProperty'],Wn=Object[_0x4c1f23(0x133)],Gn=(_0x5d884c,_0x10f790,_0x2d69c6,_0x2572b0)=>{for(var _0x3d91bc=_0x2572b0>0x1?void 0x0:_0x2572b0?Wn(_0x10f790,_0x2d69c6):_0x10f790,_0x355d2e=_0x5d884c['length']-0x1,_0x3f10c5;_0x355d2e>=0x0;_0x355d2e--)(_0x3f10c5=_0x5d884c[_0x355d2e])&&(_0x3d91bc=(_0x2572b0?_0x3f10c5(_0x10f790,_0x2d69c6,_0x3d91bc):_0x3f10c5(_0x3d91bc))||_0x3d91bc);return _0x2572b0&&_0x3d91bc&&Fn(_0x10f790,_0x2d69c6,_0x3d91bc),_0x3d91bc;},J=(_0x44fde5,_0x49f553)=>(_0x1fc462,_0x4f3d6e)=>_0x49f553(_0x1fc462,_0x4f3d6e,_0x44fde5),G=(_0x2e7845=>(_0x2e7845[_0x2e7845[_0x4c1f23(0x237)]=0x0]='IDLE',_0x2e7845[_0x2e7845[_0x4c1f23(0x127)]=0x1]='JOINING',_0x2e7845[_0x2e7845['OFFLINE']=0x2]=_0x4c1f23(0x3d4),_0x2e7845[_0x2e7845[_0x4c1f23(0x2e1)]=0x3]=_0x4c1f23(0x2e1),_0x2e7845))(G||{});function _0x4c7d(_0xb72135,_0x28f116){const _0x583f58=_0x583f();return _0x4c7d=function(_0x4c7d20,_0xec52ac){_0x4c7d20=_0x4c7d20-0x73;let _0x238afb=_0x583f58[_0x4c7d20];return _0x238afb;},_0x4c7d(_0xb72135,_0x28f116);}let Ct=class extends _0x2dacfb{constructor(_0x376713,_0x56ae74,_0x2a9705,_0x40006f,_0x53c354,_0x4c1650,_0x1b2322,_0x291af3,_0x39f1ac,_0x25579a){const _0x55d9b2=_0x4c1f23;super(),l(this,_0x55d9b2(0x221),new _0x2ec58d(0x0)),l(this,_0x55d9b2(0x294),this['_sessionStatus$']['asObservable']()),l(this,'_event$',new _0xacaad6()),l(this,_0x55d9b2(0x99),this[_0x55d9b2(0x161)]['asObservable']()),l(this,_0x55d9b2(0x13b)),l(this,'_socketMessageSubscription'),l(this,_0x55d9b2(0x91)),l(this,_0x55d9b2(0x3c9),!0x1),l(this,_0x55d9b2(0xbe),null),(this[_0x55d9b2(0x1c2)]=_0x376713,this[_0x55d9b2(0x128)]=_0x2a9705,this['_beforeCloseService']=_0x40006f,this[_0x55d9b2(0x28f)]=_0x53c354,this[_0x55d9b2(0x132)]=_0x4c1650,this[_0x55d9b2(0x119)]=_0x1b2322,this[_0x55d9b2(0x2ed)]=_0x291af3,this[_0x55d9b2(0xba)]=_0x39f1ac,this['_telemetryService']=_0x25579a,this[_0x55d9b2(0x3c9)]=!!this[_0x55d9b2(0x228)],_0x56ae74[_0x55d9b2(0x1a7)](_0x289d57(this[_0x55d9b2(0x265)]))[_0x55d9b2(0x280)](_0x34c84f=>{const _0x322321=_0x55d9b2;var _0x1edf03;typeof _0x34c84f>'u'||(this[_0x322321(0x13b)]=_0x34c84f,_0x34c84f?(this['_joinRoom'](_0x34c84f),this[_0x322321(0x307)]=_0x34c84f[_0x322321(0x117)][_0x322321(0x280)](_0x114437=>{const _0x55c070=_0x322321;_0x114437[_0x55c070(0x373)]===this[_0x55c070(0x1c2)]&&this[_0x55c070(0xd5)](_0x114437);})):(this[_0x322321(0x292)](),this[_0x322321(0x221)]['next'](0x2),(_0x1edf03=this['_socketMessageSubscription'])==null||_0x1edf03['unsubscribe'](),this[_0x322321(0x307)]=null));}),this[_0x55d9b2(0x248)](this[_0x55d9b2(0x1bf)][_0x55d9b2(0x30a)](()=>{const _0x385b25=_0x55d9b2;var _0x42ea26;(_0x42ea26=this[_0x385b25(0x13b)])==null||_0x42ea26[_0x385b25(0x218)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x385b25(0x1c2)]}});})));}get[_0x4c1f23(0x110)](){const _0x66e913=_0x4c1f23;return this[_0x66e913(0x221)][_0x66e913(0x25c)]();}[_0x4c1f23(0x370)](){const _0x41ef16=_0x4c1f23;var _0x27c515,_0x368a78;return(_0x368a78=(_0x27c515=this[_0x41ef16(0x13b)])==null?void 0x0:_0x27c515[_0x41ef16(0xbc)])!=null?_0x368a78:null;}['dispose'](){const _0x11c284=_0x4c1f23;super[_0x11c284(0x1e4)](),this[_0x11c284(0x265)][_0x11c284(0x23d)](),this[_0x11c284(0x265)][_0x11c284(0x2c4)]();}['close'](){const _0x5bd256=_0x4c1f23;var _0x1fea9c,_0x584a53;this[_0x5bd256(0x292)](),(_0x1fea9c=this[_0x5bd256(0x13b)])==null||_0x1fea9c['send']({'cmd':I[_0x5bd256(0x9c)],'data':{'roomID':this[_0x5bd256(0x1c2)]}}),(_0x584a53=this[_0x5bd256(0x13b)])==null||_0x584a53[_0x5bd256(0x74)](),this['_event$'][_0x5bd256(0x2c4)](),this['_sessionStatus$']['complete'](),this[_0x5bd256(0x1e4)]();}['_onCombEvent'](_0x27c0b0){const _0x5e70e4=_0x4c1f23;_0x27c0b0[_0x5e70e4(0x315)]===I['JOIN']?this[_0x5e70e4(0x19d)](_0x27c0b0):_0x27c0b0[_0x5e70e4(0x315)]===I[_0x5e70e4(0x326)]&&this[_0x5e70e4(0x1b4)](_0x27c0b0);}[_0x4c1f23(0x98)](_0x3028a0){const _0x3cae92=_0x4c1f23;this['_sessionStatus$']['next'](0x1),_0x3028a0[_0x3cae92(0x218)]({'cmd':I[_0x3cae92(0x86)],'routeKey':this[_0x3cae92(0x1c2)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x4c1f23(0x19d)](_0x3a4dfd){const _0x55a458=_0x4c1f23;var _0x5c1ffd;if(_0x3a4dfd[_0x55a458(0x397)]===kt[_0x55a458(0x2cc)]){this[_0x55a458(0x28f)][_0x55a458(0x160)]({'type':_0x57eb36[_0x55a458(0x129)],'content':this[_0x55a458(0x119)]['t'](_0x55a458(0x21e))}),this[_0x55a458(0x221)]['next'](0x2);return;}this[_0x55a458(0x221)][_0x55a458(0x23d)](0x3);const _0x75bf5=(_0x5c1ffd=_0x3a4dfd[_0x55a458(0x339)][_0x55a458(0x36f)][this['_unitID']])==null?void 0x0:_0x5c1ffd[_0x55a458(0x184)];_0x75bf5&&_0x75bf5[_0x55a458(0x100)](_0x5bd3f2=>this['_memberService'][_0x55a458(0x2d6)](this[_0x55a458(0x1c2)],_0x5bd3f2));}[_0x4c1f23(0x1b4)](_0x19d4ce){const _0x345f3f=_0x4c1f23;try{const _0x1fc6fa=_0x19d4ce[_0x345f3f(0x339)];switch(_0x1fc6fa[_0x345f3f(0x186)]){case _0x273d8c[_0x345f3f(0x3b1)]:this[_0x345f3f(0x19c)](_0x1fc6fa),this[_0x345f3f(0x161)][_0x345f3f(0x23d)](_0x1fc6fa);break;case _0x273d8c[_0x345f3f(0x15a)]:this[_0x345f3f(0x210)](_0x1fc6fa),this[_0x345f3f(0x161)][_0x345f3f(0x23d)](_0x1fc6fa);break;case _0x273d8c[_0x345f3f(0x368)]:this[_0x345f3f(0x1b7)](),this['_clearCollaborationTimeoutTimer'](),this[_0x345f3f(0x161)][_0x345f3f(0x23d)](_0x1fc6fa);break;case _0x273d8c[_0x345f3f(0x157)]:this[_0x345f3f(0x128)][_0x345f3f(0x17a)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x1fc6fa)),this[_0x345f3f(0x161)][_0x345f3f(0x23d)](_0x1fc6fa);break;case _0x273d8c['COMMENT_UPDATE']:this[_0x345f3f(0xba)][_0x345f3f(0x35a)](_0x1fc6fa[_0x345f3f(0x339)]),this[_0x345f3f(0x161)][_0x345f3f(0x23d)](_0x1fc6fa);break;default:this[_0x345f3f(0x161)]['next'](_0x1fc6fa);}}catch(_0x58fafc){this[_0x345f3f(0x128)][_0x345f3f(0x17a)](_0x58fafc,_0x19d4ce);}}['_onUserJoin'](_0x5b8a4b){const _0x1659e6=_0x4c1f23;this[_0x1659e6(0x2ed)][_0x1659e6(0x2d6)](this[_0x1659e6(0x1c2)],_0x5b8a4b['data']);}['_onUserLeave'](_0x513503){const _0x5471fd=_0x4c1f23;this[_0x5471fd(0x2ed)][_0x5471fd(0x378)](this['_unitID'],_0x513503['data']['memberID']);}async['send'](_0x8b6c7b,_0x2c40af){const _0x4c3cfd=_0x4c1f23;if(this['sessionStatus']!==0x3||!this[_0x4c3cfd(0x13b)])throw new Error(_0x4c3cfd(0x147));try{_0x8b6c7b[_0x4c3cfd(0x186)]===_0x273d8c['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x4c3cfd(0x286)](_0x8b6c7b)),this[_0x4c3cfd(0x13b)][_0x4c3cfd(0x218)]({'cmd':I[_0x4c3cfd(0x136)],'routeKey':_0x2c40af,'routeType':'','data':_0x8b6c7b});}catch(_0x257b42){this['_logService']['error'](_0x257b42);}}['_scheduleCollaborationTimeoutTimer'](){const _0x4d5dd7=_0x4c1f23;var _0x2e28bf;this[_0x4d5dd7(0x91)]=window[_0x4d5dd7(0x3cc)](()=>{const _0x39d170=_0x4d5dd7;this['_collaborationTimeoutTimer']=null,this[_0x39d170(0x28f)]['show']({'type':_0x57eb36[_0x39d170(0xcd)],'content':this[_0x39d170(0x119)]['t'](_0x39d170(0x1cd))});},(_0x2e28bf=this[_0x4d5dd7(0x132)][_0x4d5dd7(0x111)](Ns))!=null?_0x2e28bf:Us);}[_0x4c1f23(0x1a0)](){const _0x5a8f64=_0x4c1f23;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x5a8f64(0x91)]),this[_0x5a8f64(0x91)]=null);}[_0x4c1f23(0x286)](_0x7888d4){const _0x38f5f5=_0x4c1f23;if(!this['_shouldReportTelemetry'])return;const {data:_0x4b3226}=_0x7888d4,{unitID:_0x3536de,changeset:_0x2ae39e}=_0x4b3226,{mutations:_0x411111,type:_0x5d0ba8}=_0x2ae39e;this[_0x38f5f5(0xbe)]={'unitId':_0x3536de,'type':_0x5d0ba8,'startTime':performance[_0x38f5f5(0xdb)](),'stopTime':0x0,'duration':0x0,'size':xn(_0x411111)};}[_0x4c1f23(0x1b7)](){const _0x337dad=_0x4c1f23;if(this[_0x337dad(0x3c9)]){if(!this[_0x337dad(0xbe)]){this[_0x337dad(0x128)]['error'](_0x337dad(0x144),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x337dad(0xbe)][_0x337dad(0x174)]=performance['now'](),this[_0x337dad(0xbe)][_0x337dad(0xe9)]=this['_telemetryInfo']['stopTime']-this['_telemetryInfo']['startTime'],this[_0x337dad(0x228)][_0x337dad(0x2a5)](jn,this[_0x337dad(0xbe)]),this[_0x337dad(0xbe)]=null;}}[_0x4c1f23(0x292)](){const _0x485a2c=_0x4c1f23;this[_0x485a2c(0xbe)]=null;}};Ct=Gn([J(0x2,_0x50688a),J(0x3,_0x3cc7ef),J(0x4,_0x5d3b7c),J(0x5,_0x4d21d1),J(0x6,_0x321449(_0x2e153b)),J(0x7,_0x321449(ae)),J(0x8,_0x321449($s)),J(0x9,_0x9bfc3c(_0x2263bf))],Ct);var Yn=Object[_0x4c1f23(0x2e9)],Kn=Object['getOwnPropertyDescriptor'],Xn=(_0x4b4d69,_0x5ac60f,_0x1a38b1,_0x3392d6)=>{const _0xf6c02a=_0x4c1f23;for(var _0x542e68=_0x3392d6>0x1?void 0x0:_0x3392d6?Kn(_0x5ac60f,_0x1a38b1):_0x5ac60f,_0xb3c961=_0x4b4d69[_0xf6c02a(0x78)]-0x1,_0x623383;_0xb3c961>=0x0;_0xb3c961--)(_0x623383=_0x4b4d69[_0xb3c961])&&(_0x542e68=(_0x3392d6?_0x623383(_0x5ac60f,_0x1a38b1,_0x542e68):_0x623383(_0x542e68))||_0x542e68);return _0x3392d6&&_0x542e68&&Yn(_0x5ac60f,_0x1a38b1,_0x542e68),_0x542e68;},de=(_0x36e9c2,_0x1c5e79)=>(_0x3b2f91,_0x11d767)=>_0x1c5e79(_0x3b2f91,_0x11d767,_0x36e9c2);let ce=class extends _0x22db72{constructor(_0x4f9df5,_0x1c3e4c,_0x2589f8,_0xab7459,_0x1abd30,_0xb4a1bd){const _0x5dcc2f=_0x4c1f23;super(),l(this,_0x5dcc2f(0x1fe),new _0x2ec58d(void 0x0)),l(this,'socket$',this[_0x5dcc2f(0x1fe)][_0x5dcc2f(0xfc)]()),l(this,_0x5dcc2f(0x2d2),null),l(this,'_sessions',new Map()),l(this,_0x5dcc2f(0xc8),new _0x2ec58d(G[_0x5dcc2f(0x237)])),l(this,_0x5dcc2f(0x380),this[_0x5dcc2f(0xc8)][_0x5dcc2f(0xfc)]()),l(this,_0x5dcc2f(0x27e),!0x1),l(this,'_retryConnectingTimer'),l(this,_0x5dcc2f(0x29a),0x0),l(this,_0x5dcc2f(0x1ed)),l(this,_0x5dcc2f(0x313)),(this['_injector']=_0x4f9df5,this[_0x5dcc2f(0x119)]=_0x1c3e4c,this[_0x5dcc2f(0x28f)]=_0x2589f8,this[_0x5dcc2f(0x128)]=_0xab7459,this[_0x5dcc2f(0x132)]=_0x1abd30,this[_0x5dcc2f(0x374)]=_0xb4a1bd,this[_0x5dcc2f(0x35c)]());}get['_socket'](){const _0x3cce74=_0x4c1f23;return this['_socket$'][_0x3cce74(0x25c)]();}['_initEventListeners'](){const _0x595238=_0x4c1f23;this['_listenToOfflineEvent'](),this[_0x595238(0x282)]();}['dispose'](){const _0x1afcd3=_0x4c1f23;super[_0x1afcd3(0x1e4)](),this[_0x1afcd3(0x22d)][_0x1afcd3(0x100)](_0x584510=>_0x584510['dispose']()),this[_0x1afcd3(0x22d)]['clear'](),this[_0x1afcd3(0xc8)]['complete']();}async['requireSession'](_0x4b992c){const _0x4b8fec=_0x4c1f23;if(this[_0x4b8fec(0x22d)]['has'](_0x4b992c))return this[_0x4b8fec(0x22d)][_0x4b8fec(0x348)](_0x4b992c);this[_0x4b8fec(0x274)]();const _0x3df09e=this[_0x4b8fec(0x162)][_0x4b8fec(0x171)](Ct,_0x4b992c,this[_0x4b8fec(0x1fe)][_0x4b8fec(0xfc)]());return this[_0x4b8fec(0x22d)]['set'](_0x4b992c,_0x3df09e),_0x3df09e;}[_0x4c1f23(0x89)](_0x21dacc){const _0x189b65=_0x4c1f23;var _0x5604e5;const _0x186b34=this[_0x189b65(0x22d)][_0x189b65(0x348)](_0x21dacc);_0x186b34&&(this[_0x189b65(0x22d)][_0x189b65(0xd0)](_0x21dacc),_0x186b34[_0x189b65(0x74)]()),this[_0x189b65(0x22d)]['size']||(_0x5604e5=this['_socket'])==null||_0x5604e5[_0x189b65(0x74)]();}[_0x4c1f23(0x37a)](){const _0x4a8f00=_0x4c1f23;this[_0x4a8f00(0x29a)]=0x0,this[_0x4a8f00(0x3e9)]!=null&&(clearTimeout(this[_0x4a8f00(0x3e9)]),this[_0x4a8f00(0x3e9)]=null),this[_0x4a8f00(0xb9)]();}[_0x4c1f23(0x3c4)](){const _0x31bf00=_0x4c1f23;var _0x5db8dd,_0x23f3bf;const _0x2acfd9=this[_0x31bf00(0x132)][_0x31bf00(0x111)](Sn),_0x50e33b=this[_0x31bf00(0x132)][_0x31bf00(0x111)](L),_0x168d50=(_0x23f3bf=(_0x5db8dd=_0x50e33b==null?void 0x0:_0x50e33b['collabWebSocketUrl'])!=null?_0x5db8dd:_0x2acfd9)!=null?_0x23f3bf:pn,_0x3699c4=this[_0x31bf00(0x374)][_0x31bf00(0x1a6)](_0x168d50);return this[_0x31bf00(0x2d2)]=_0x3699c4,_0x3699c4;}[_0x4c1f23(0x274)](){const _0x17335f=_0x4c1f23;var _0x3e2582,_0x265369;try{const _0x5ed0d2=(_0x265369=(_0x3e2582=this[_0x17335f(0x13b)])!=null?_0x3e2582:this[_0x17335f(0x2d2)])!=null?_0x265369:this[_0x17335f(0x3c4)]();if(_0x5ed0d2){const _0x282f8d=_0x5ed0d2[_0x17335f(0x218)];_0x5ed0d2['send']=_0x571705=>(this[_0x17335f(0x145)](),_0x282f8d['apply'](_0x5ed0d2,[_0x571705])),_0x5ed0d2[_0x17335f(0x117)][_0x17335f(0x280)](_0x58c6e3=>this[_0x17335f(0x266)](_0x5ed0d2,_0x58c6e3)),_0x5ed0d2[_0x17335f(0xed)][_0x17335f(0x1a7)](_0x41fec6(0x1))[_0x17335f(0x280)](_0x39b726=>this[_0x17335f(0x128)][_0x17335f(0x17a)](_0x17335f(0x36a),_0x39b726)),_0x5ed0d2[_0x17335f(0x345)][_0x17335f(0x1a7)](_0x41fec6(0x1))[_0x17335f(0x280)](()=>{this['_onConnectionOpen'](_0x5ed0d2);}),_0x5ed0d2[_0x17335f(0x188)][_0x17335f(0x1a7)](_0x41fec6(0x1))[_0x17335f(0x280)](_0x4b723a=>{const _0x319ee1=_0x17335f;this[_0x319ee1(0x128)]['debug']('[CollaborationSessionService]','socket\x20close',_0x4b723a),this[_0x319ee1(0x13d)]();});}}catch(_0x4c4971){this['_logService'][_0x17335f(0x17a)](_0x4c4971),this['_onConnectionFailed']();}}[_0x4c1f23(0x2aa)](_0x983293){const _0x5acecd=_0x4c1f23;this['_logService'][_0x5acecd(0x20b)](_0x5acecd(0x3a9),_0x5acecd(0x311)),_0x983293[_0x5acecd(0x218)]({'cmd':I[_0x5acecd(0x191)]}),this[_0x5acecd(0x145)]();}[_0x4c1f23(0x3ae)](){const _0x279249=_0x4c1f23;window[_0x279249(0x384)](_0x279249(0x209),()=>this[_0x279249(0x183)]());}[_0x4c1f23(0x183)](){const _0x33eb75=_0x4c1f23;this[_0x33eb75(0x27e)]=!0x1,this[_0x33eb75(0x2d2)]=null,this[_0x33eb75(0xc8)][_0x33eb75(0x23d)](G[_0x33eb75(0x3d4)]),this[_0x33eb75(0x1fe)]['next'](null),this[_0x33eb75(0x285)](),this[_0x33eb75(0x20d)]();}['_onConnectionFailed'](){const _0x22de71=_0x4c1f23;var _0x298718;this[_0x22de71(0x183)](),this[_0x22de71(0x29a)]<((_0x298718=this['_configService']['getConfig'](Cn))!=null?_0x298718:bn)?(this['_messageService'][_0x22de71(0x160)]({'key':_0x22de71(0x11c),'type':_0x57eb36[_0x22de71(0x129)],'content':this[_0x22de71(0x119)]['t']('session.will-retry')}),this['_tryReconnect']()):this[_0x22de71(0x28f)][_0x22de71(0x160)]({'key':_0x22de71(0x11c),'type':_0x57eb36['Error'],'content':this[_0x22de71(0x119)]['t']('session.connection-failed')});}[_0x4c1f23(0x282)](){const _0x2a6915=_0x4c1f23,_0x1b4797=()=>{const _0x3e8717=_0x4c7d;this['_socket']||this[_0x3e8717(0x37a)]();},_0x365c55=()=>{const _0x16dad2=_0x4c7d;this[_0x16dad2(0x13b)]||document[_0x16dad2(0x238)]==='hidden'||this[_0x16dad2(0x37a)]();};window[_0x2a6915(0x384)](_0x2a6915(0x2b6),_0x1b4797),document[_0x2a6915(0x384)](_0x2a6915(0x1d1),_0x365c55);}[_0x4c1f23(0xb9)](){const _0x86773e=_0x4c1f23;var _0x57996f;const _0x5cc163=this[_0x86773e(0x29a)],_0x5b2e5c=this[_0x86773e(0x132)][_0x86773e(0x111)](L),_0x368f75=_0x5cc163===0x0?0x0:((_0x57996f=_0x5b2e5c==null?void 0x0:_0x5b2e5c[_0x86773e(0x3cf)])!=null?_0x57996f:En)*0x2**_0x5cc163;this['_retryConnectingTimer']=window[_0x86773e(0x3cc)](()=>{clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null,this['_tryEnsureSocket']();},_0x368f75),this['_retryCount']+=0x1;}[_0x4c1f23(0x266)](_0x586ac8,_0x435d95){const _0xed5c97=_0x4c1f23,{cmd:_0x12029a}=_0x435d95;_0x12029a===I['HELLO']&&!this['_socketReady']&&(_0x586ac8['memberID']=_0x435d95['data']['memberID'],this[_0xed5c97(0x1fe)][_0xed5c97(0x23d)](_0x586ac8),this[_0xed5c97(0xc8)][_0xed5c97(0x23d)](G[_0xed5c97(0x2e1)]),this[_0xed5c97(0x27e)]=!0x0,this['_candidateSocket']=null),_0x12029a===I[_0xed5c97(0x1e0)]&&this[_0xed5c97(0x285)](),this[_0xed5c97(0x145)]();}['_rescheduleHeartbeat'](){const _0x3edd88=_0x4c1f23;var _0x3512dd;this['_clearHeartbeatTimer'](),this[_0x3edd88(0x1ed)]=window['setTimeout'](()=>this[_0x3edd88(0x152)](),(_0x3512dd=this['_configService'][_0x3edd88(0x111)](vn))!=null?_0x3512dd:In);}[_0x4c1f23(0x152)](){const _0x304fb2=_0x4c1f23;this[_0x304fb2(0x13b)][_0x304fb2(0x218)]({'cmd':I['HEARTBEAT']}),this[_0x304fb2(0xd8)]();}[_0x4c1f23(0xd8)](){const _0x591c9c=_0x4c1f23;var _0x1ba82c;this[_0x591c9c(0x313)]=window['setTimeout'](()=>this[_0x591c9c(0x13d)](),(_0x1ba82c=this[_0x591c9c(0x132)][_0x591c9c(0x111)](Ns))!=null?_0x1ba82c:Us);}[_0x4c1f23(0x20d)](){const _0x25d89a=_0x4c1f23;this[_0x25d89a(0x1ed)]!=null&&(clearTimeout(this[_0x25d89a(0x1ed)]),this[_0x25d89a(0x1ed)]=null);}[_0x4c1f23(0x285)](){const _0x20300d=_0x4c1f23;this[_0x20300d(0x313)]!=null&&(clearTimeout(this[_0x20300d(0x313)]),this['_timeoutTimer']=null);}};ce=Xn([de(0x0,_0x321449(_0x313fa0)),de(0x1,_0x321449(_0x2e153b)),de(0x2,_0x5d3b7c),de(0x3,_0x50688a),de(0x4,_0x4d21d1),de(0x5,Ls)],ce);var Jn=Object[_0x4c1f23(0x2e9)],qn=Object['getOwnPropertyDescriptor'],zn=(_0x49a211,_0x2351e8,_0x2dcfd1,_0x109817)=>{const _0x230caa=_0x4c1f23;for(var _0x106f69=_0x109817>0x1?void 0x0:_0x109817?qn(_0x2351e8,_0x2dcfd1):_0x2351e8,_0x2c8a05=_0x49a211[_0x230caa(0x78)]-0x1,_0xb2d8c;_0x2c8a05>=0x0;_0x2c8a05--)(_0xb2d8c=_0x49a211[_0x2c8a05])&&(_0x106f69=(_0x109817?_0xb2d8c(_0x2351e8,_0x2dcfd1,_0x106f69):_0xb2d8c(_0x106f69))||_0x106f69);return _0x109817&&_0x106f69&&Jn(_0x2351e8,_0x2dcfd1,_0x106f69),_0x106f69;},ct=(_0x29f393,_0x33f444)=>(_0x561dd1,_0x41793b)=>_0x33f444(_0x561dd1,_0x41793b,_0x29f393);let Ye=class{constructor(_0x1dc3e2,_0x52a656,_0x12817f){const _0x1c5b3d=_0x4c1f23;this[_0x1c5b3d(0x162)]=_0x1dc3e2,this['_transformService']=_0x52a656,this[_0x1c5b3d(0x333)]=_0x12817f;}[_0x4c1f23(0x11a)](_0x52617d){const _0x430673=_0x4c1f23;this[_0x430673(0x19e)](_0x52617d),this[_0x430673(0x1ad)](_0x52617d);}[_0x4c1f23(0x20a)](_0x67d63d){const _0x401b6d=_0x4c1f23,{unitID:_0x376503}=_0x67d63d,_0x1bbe29=this[_0x401b6d(0x333)]['getRenderById'](_0x376503)[_0x401b6d(0x39e)](_0x74964),{redoCache:_0x5365ea}=_0x1bbe29[_0x401b6d(0x16c)]();if(_0x5365ea[_0x401b6d(0x78)]===0x0)return _0x67d63d;let _0x4ffe9e=_0x403f58[_0x401b6d(0x173)](_0x67d63d[_0x401b6d(0x3d7)][0x0]);for(let _0x4f3ecb=0x0;_0x4f3ecb<_0x5365ea[_0x401b6d(0x78)];_0x4f3ecb++){const _0x4f20a4={'id':'doc.mutation.rich-text-editing','params':{..._0x5365ea[_0x4f3ecb]}},_0x39b69a=this['_transformService'][_0x401b6d(0x3f0)](_0x4ffe9e,_0x4f20a4,!0x1);if(_0x3737c9(_0x39b69a))throw _0x39b69a[_0x401b6d(0x17a)];_0x4ffe9e=_0x39b69a[_0x401b6d(0x19b)];}return{..._0x403f58[_0x401b6d(0x173)](_0x67d63d),'mutations':[_0x4ffe9e]};}[_0x4c1f23(0x19e)](_0x4ebc1f){const _0x598eb9=_0x4c1f23,{unitID:_0x56e6eb}=_0x4ebc1f,_0xdb3420=this[_0x598eb9(0x333)][_0x598eb9(0x1b2)](_0x56e6eb)['with'](_0x74964),{undoCache:_0x1fd2b4,redoCache:_0x23d6db}=_0xdb3420[_0x598eb9(0x16c)]();if(_0x1fd2b4[_0x598eb9(0x78)]===0x0||_0x23d6db[_0x598eb9(0x78)]===0x0)return;const _0x6f1942=[],_0x40c458=[];let _0xfe15a0=_0x403f58[_0x598eb9(0x173)](_0x4ebc1f['mutations'][0x0]),_0x1323ce=_0x403f58[_0x598eb9(0x173)](_0x4ebc1f['mutations'][0x0]);for(let _0x5acac1=_0x1fd2b4[_0x598eb9(0x78)]-0x1;_0x5acac1>=0x0;_0x5acac1--){const _0x226f0a={'id':_0x598eb9(0x108),'params':{..._0x1fd2b4[_0x5acac1]}},_0x2c48eb={'id':_0x598eb9(0x108),'params':{..._0x23d6db[_0x5acac1]}},_0x467359=this[_0x598eb9(0x2ce)][_0x598eb9(0x3f0)](_0xfe15a0,_0x226f0a,!0x1),_0x2a3a53=this[_0x598eb9(0x2ce)][_0x598eb9(0x3f0)](_0x1323ce,_0x2c48eb,!0x1);if(_0x3737c9(_0x467359))throw _0x467359[_0x598eb9(0x17a)];if(_0x3737c9(_0x2a3a53))throw _0x2a3a53['error'];_0x6f1942[_0x598eb9(0x15d)](_0x467359[_0x598eb9(0x101)]['params']),_0x40c458[_0x598eb9(0x15d)](_0x2a3a53[_0x598eb9(0x101)][_0x598eb9(0x364)]),_0xfe15a0=_0x467359[_0x598eb9(0x19b)],_0x1323ce=_0x2a3a53[_0x598eb9(0x19b)];}_0xdb3420[_0x598eb9(0x301)]({'undoCache':_0x6f1942,'redoCache':_0x40c458});}[_0x4c1f23(0x1ad)](_0x588559){const _0x1d1c14=_0x4c1f23,{unitID:_0x17552c}=_0x588559,_0x3c9903=this['_renderManagerService']['getRenderById'](_0x17552c)[_0x1d1c14(0x39e)](_0x74964),_0x1578e7=_0x3c9903[_0x1d1c14(0x1a8)]();if(_0x1578e7==null)return;const _0x3e2c77=[{'id':_0x1d1c14(0x108),'params':{'unitId':_0x588559[_0x1d1c14(0x1f3)],'actions':null,'textRanges':[_0x1578e7]}}],_0x30f7fe=this[_0x1d1c14(0x2ce)][_0x1d1c14(0xbf)](_0x588559,_0x3e2c77);if(!_0x8db330(_0x30f7fe))throw _0x30f7fe[_0x1d1c14(0x17a)];const _0x14fd03=_0x30f7fe[_0x1d1c14(0x101)][0x0][_0x1d1c14(0x364)]['textRanges'];Array[_0x1d1c14(0x35b)](_0x14fd03)&&_0x14fd03[_0x1d1c14(0x78)]&&_0x3c9903[_0x1d1c14(0x172)](_0x14fd03[0x0]);}};Ye=zn([ct(0x0,_0x321449(_0x313fa0)),ct(0x1,_0x56767e),ct(0x2,_0x3f9a6b)],Ye);var Zn=Object[_0x4c1f23(0x2e9)],Qn=Object[_0x4c1f23(0x133)],er=(_0x5f1311,_0x363175,_0x26e9e4,_0x12432c)=>{for(var _0x48c474=_0x12432c>0x1?void 0x0:_0x12432c?Qn(_0x363175,_0x26e9e4):_0x363175,_0x27810c=_0x5f1311['length']-0x1,_0x5cda1c;_0x27810c>=0x0;_0x27810c--)(_0x5cda1c=_0x5f1311[_0x27810c])&&(_0x48c474=(_0x12432c?_0x5cda1c(_0x363175,_0x26e9e4,_0x48c474):_0x5cda1c(_0x48c474))||_0x48c474);return _0x12432c&&_0x48c474&&Zn(_0x363175,_0x26e9e4,_0x48c474),_0x48c474;},Oe=(_0x3ca6f8,_0x54e781)=>(_0x251da9,_0x540e1b)=>_0x54e781(_0x251da9,_0x540e1b,_0x3ca6f8);let D=class extends _0x22db72{constructor(_0x46f5bc,_0x134f83,_0x43b87f,_0x3b4c77,_0xcbc34e){const _0x50b47b=_0x4c1f23;super(),l(this,'_cachedData',new Map()),l(this,_0x50b47b(0x351),new Map()),l(this,_0x50b47b(0x167),!0x1),(this[_0x50b47b(0x132)]=_0x46f5bc,this[_0x50b47b(0x14e)]=_0x134f83,this[_0x50b47b(0x1bf)]=_0x43b87f,this['_localeService']=_0x3b4c77,this[_0x50b47b(0x396)]=_0xcbc34e,this[_0x50b47b(0x3ab)]());}[_0x4c1f23(0x3a2)](){const _0x13a41f=_0x4c1f23;this[_0x13a41f(0x167)]=!0x0;}[_0x4c1f23(0x3d1)](){const _0x2e3111=_0x4c1f23;this[_0x2e3111(0x167)]=!0x1;}[_0x4c1f23(0x1e4)](){const _0x3fc0b2=_0x4c1f23;this[_0x3fc0b2(0x3a5)]()['then'](()=>super['dispose']());}async['loadOfflineData'](_0x1ae000){const _0xeb88c9=_0x4c1f23;return this[_0xeb88c9(0x167)]?null:this[_0xeb88c9(0x14e)][_0xeb88c9(0x352)](os(_0x1ae000));}async[_0x4c1f23(0x312)](_0x427cd9,_0x5b9315){const _0x48736b=_0x4c1f23;return!!this['_localStorageService'][_0x48736b(0x2f8)](_0x427cd9,_0x5b9315);}[_0x4c1f23(0x377)](_0x2b47cb,_0xef1e9e,_0x1d486d,_0x2340ad){const _0x582b51=_0x4c1f23,_0x2fe0d7=this[_0x582b51(0x396)]['getCurrentRevOfUnit'](_0x2b47cb);this['_cachedData'][_0x582b51(0x329)](_0x2b47cb,{'unitID':_0x2b47cb,'type':_0xef1e9e,'awaitingChangeset':_0x1d486d,'mutations':_0x2340ad,'rev':_0x2fe0d7}),this['_saveTaskMap'][_0x582b51(0x20e)](_0x2b47cb)||this[_0x582b51(0x20f)](_0x2b47cb);}[_0x4c1f23(0x20f)](_0x213115){const _0x23b728=_0x4c1f23,_0x152f41=this['_getSaveTimeout']();_0x152f41===0x0?this[_0x23b728(0x1c3)](_0x213115):this['_saveTaskMap']['set'](_0x213115,setTimeout(()=>this[_0x23b728(0x1c3)](_0x213115),_0x152f41));}[_0x4c1f23(0x38d)](){const _0x4a926b=_0x4c1f23;var _0x492c38;return(_0x492c38=this[_0x4a926b(0x132)][_0x4a926b(0x111)](Tn))!=null?_0x492c38:Rn;}['_saveCache'](_0x9a30cd){const _0x5b6df2=_0x4c1f23,_0xfee77e=this[_0x5b6df2(0x351)]['get'](_0x9a30cd);return _0xfee77e!==void 0x0&&window['clearTimeout'](_0xfee77e),this[_0x5b6df2(0x14e)][_0x5b6df2(0x2f8)](os(_0x9a30cd),this[_0x5b6df2(0x23b)][_0x5b6df2(0x348)](_0x9a30cd))[_0x5b6df2(0x90)](()=>this[_0x5b6df2(0x351)][_0x5b6df2(0xd0)](_0x9a30cd));}async[_0x4c1f23(0x3a5)](){const _0x93b82c=_0x4c1f23,_0x5d4f7b=[];this['_saveTaskMap'][_0x93b82c(0x100)]((_0x1e4a1f,_0x41443b)=>{const _0x5df8a6=_0x93b82c;window['clearTimeout'](_0x1e4a1f),_0x5d4f7b[_0x5df8a6(0x27c)](this['_saveCache'](_0x41443b)[_0x5df8a6(0x90)](()=>{const _0x17cab9=_0x5df8a6;this[_0x17cab9(0x351)][_0x17cab9(0xd0)](_0x41443b);}));}),await Promise[_0x93b82c(0x2f7)](_0x5d4f7b);}['_setupBeforeClosingHandler'](){this['disposeWithMe'](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x12daa5=_0x4c7d;if(this['_saveTaskMap'][_0x12daa5(0x151)])return this[_0x12daa5(0x119)]['t'](_0x12daa5(0x239));}));}};D=er([Oe(0x0,_0x4d21d1),Oe(0x1,_0x23441d),Oe(0x2,_0x3cc7ef),Oe(0x3,_0x321449(_0x2e153b)),Oe(0x4,_0x321449(_0x5d1c03))],D);function os(_0x56e5b){const _0x1db1d8=_0x4c1f23;return _0x1db1d8(0x34f)+_0x56e5b;}var tr=Object[_0x4c1f23(0x2e9)],sr=Object[_0x4c1f23(0x133)],ir=(_0x7dcf06,_0x38a710,_0x44947f,_0x14f085)=>{const _0x1383d4=_0x4c1f23;for(var _0x29a1e2=_0x14f085>0x1?void 0x0:_0x14f085?sr(_0x38a710,_0x44947f):_0x38a710,_0x3b346f=_0x7dcf06[_0x1383d4(0x78)]-0x1,_0x3c6a2c;_0x3b346f>=0x0;_0x3b346f--)(_0x3c6a2c=_0x7dcf06[_0x3b346f])&&(_0x29a1e2=(_0x14f085?_0x3c6a2c(_0x38a710,_0x44947f,_0x29a1e2):_0x3c6a2c(_0x29a1e2))||_0x29a1e2);return _0x14f085&&_0x29a1e2&&tr(_0x38a710,_0x44947f,_0x29a1e2),_0x29a1e2;},ht=(_0x4f34b0,_0x361283)=>(_0x23e61e,_0x683cc9)=>_0x361283(_0x23e61e,_0x683cc9,_0x4f34b0);function nr(_0x38a887){const _0x538375=_0x4c1f23,{unitID:_0x3f565f,mutations:_0x2bf021}=_0x38a887;return{'unitId':_0x3f565f,'subUnitId':_0x2bf021[0x0][_0x538375(0x364)][_0x538375(0x213)]};}let Ke=class{constructor(_0x5d4b98,_0x208792,_0x2fc560){const _0xcdc69d=_0x4c1f23;this['_injector']=_0x5d4b98,this[_0xcdc69d(0x2ce)]=_0x208792,this[_0xcdc69d(0x137)]=_0x2fc560;}[_0x4c1f23(0x34c)](_0x30cf5e){const _0x56949e=_0x4c1f23;var _0x595825,_0x3af790,_0x35c0e6,_0x51f5ae;const _0x32be0a=this[_0x56949e(0x162)][_0x56949e(0x348)](_0x152281),{unitId:_0x44cd75,subUnitId:_0x46a82e}=nr(_0x30cf5e),_0xf2c67d=_0x32be0a[_0x56949e(0x8f)](_0x44cd75)['getCurrentSelections'](),_0x2b3e04=(_0x3af790=(_0x595825=this[_0x56949e(0x137)][_0x56949e(0x2f6)](_0x44cd75))==null?void 0x0:_0x595825[_0x56949e(0x135)]())==null?void 0x0:_0x3af790[_0x56949e(0x1a9)]();if(_0xf2c67d[_0x56949e(0x78)]===0x0||!_0x44cd75||!_0x46a82e)return;const _0x3ffa16=[{'id':_0x137748['id'],'params':{'unitId':_0x44cd75,'subUnitId':_0x2b3e04,'selections':_0x403f58[_0x56949e(0x173)](_0xf2c67d)}}],_0x15cafa=this[_0x56949e(0x2ce)][_0x56949e(0xbf)](_0x30cf5e,_0x3ffa16);if(!_0x8db330(_0x15cafa))throw _0x15cafa[_0x56949e(0x17a)];const _0xc8311e=(_0x51f5ae=(_0x35c0e6=_0x15cafa['m2Prime'][0x0])==null?void 0x0:_0x35c0e6[_0x56949e(0x364)])==null?void 0x0:_0x51f5ae[_0x56949e(0x170)];Array[_0x56949e(0x35b)](_0xc8311e)&&_0xc8311e[_0x56949e(0x78)]&&this['_injector'][_0x56949e(0x348)](_0x265863)[_0x56949e(0x153)](_0x137748['id'],{'unitId':_0x44cd75,'subUnitId':_0x2b3e04,'selections':_0xc8311e});}};Ke=ir([ht(0x0,_0x321449(_0x313fa0)),ht(0x1,_0x56767e),ht(0x2,_0x375068)],Ke);const tt=_0x2d62b5('univer-pro.collaboration-client.single-active-unit-service');var js=(_0x288605=>(_0x288605[_0x288605['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x288605[_0x288605[_0x4c1f23(0xf3)]=0x1]=_0x4c1f23(0xf3),_0x288605))(js||{});const as=0x7530,cs=_0x4c1f23(0x324);class rr extends _0x22db72{constructor(){const _0x14493b=_0x4c1f23;super(),l(this,_0x14493b(0x96),_0x403f58['generateRandomId']()),l(this,'_selfUnitIDs',new Set()),l(this,_0x14493b(0x131),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x14493b(0x3ad),new Map()),l(this,_0x14493b(0x18c),new Map()),this[_0x14493b(0x34a)]();}[_0x4c1f23(0x1e4)](){const _0x3d96b7=_0x4c1f23;super['dispose'](),this[_0x3d96b7(0x3ad)][_0x3d96b7(0x100)]((_0xda1db8,_0x5bd452)=>this[_0x3d96b7(0xd9)](_0x5bd452)),this[_0x3d96b7(0xc1)]&&window[_0x3d96b7(0x17c)](this['_heartbeatTimer']);}[_0x4c1f23(0x187)](_0xca678a){const _0x506027=_0x4c1f23;return this[_0x506027(0x202)](_0xca678a)[_0x506027(0x1a7)](_0x1f43e4());}[_0x4c1f23(0x3f3)](_0x2ccbc8){const _0x37faca=_0x4c1f23;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x37faca(0x24f)][_0x37faca(0x2fb)](_0x2ccbc8),this[_0x37faca(0xdd)]({'type':0x0,'memberID':this[_0x37faca(0x96)],'unitIDs':[_0x2ccbc8],'isForwarded':!0x1});}[_0x4c1f23(0x251)](_0x47eceb){const _0x5a3ded=_0x4c1f23;this[_0x5a3ded(0x24f)][_0x5a3ded(0xd0)](_0x47eceb),this['_selfUnitIDs'][_0x5a3ded(0x151)]===0x0&&this['_heartbeatTimer']&&window[_0x5a3ded(0x17c)](this[_0x5a3ded(0xc1)]);}[_0x4c1f23(0x34a)](){const _0x4e2975=_0x4c1f23;this['disposeWithMe'](_0x5738c2(_0x1e2c02(window,'storage')[_0x4e2975(0x280)](_0x410abc=>{const _0x1cab54=_0x4e2975;if(_0x410abc[_0x1cab54(0x367)]!==cs||!_0x410abc[_0x1cab54(0x1e8)])return;const _0x5dc432=JSON[_0x1cab54(0x281)](_0x410abc[_0x1cab54(0x1e8)]);this[_0x1cab54(0x93)](_0x5dc432);}))),window['addEventListener'](_0x4e2975(0x3bc),()=>this[_0x4e2975(0xdd)]({'type':0x1,'memberID':this[_0x4e2975(0x96)],'unitIDs':Array[_0x4e2975(0x126)](this[_0x4e2975(0x24f)])}));}[_0x4c1f23(0x93)](_0x49046b){const _0x30e14e=_0x4c1f23;switch(_0x49046b[_0x30e14e(0x1d3)]){case 0x0:this[_0x30e14e(0x3b3)](_0x49046b);break;case 0x1:this[_0x30e14e(0x35f)](_0x49046b);break;case 0x2:this[_0x30e14e(0x11f)](_0x49046b);break;}}[_0x4c1f23(0x3b3)](_0x2a704d){const _0x1d7627=_0x4c1f23,{unitIDs:_0x46037c,memberID:_0x29b6b4,isForwarded:_0x256193}=_0x2a704d;_0x46037c[_0x1d7627(0x100)](_0x5d1cf2=>{const _0x494dd5=_0x1d7627;if(!_0x256193&&this[_0x494dd5(0x131)]['has'](_0x5d1cf2)&&this[_0x494dd5(0x202)](_0x5d1cf2)[_0x494dd5(0x23d)](0x1),!this['_unitOnClients'][_0x494dd5(0x20e)](_0x5d1cf2)||!this[_0x494dd5(0x131)][_0x494dd5(0x348)](_0x5d1cf2)[_0x494dd5(0x20e)](_0x29b6b4)){const _0x2fc01d=this[_0x494dd5(0x131)][_0x494dd5(0x348)](_0x5d1cf2)||new Set();_0x2fc01d[_0x494dd5(0x2fb)](_0x29b6b4),this[_0x494dd5(0x131)][_0x494dd5(0x329)](_0x5d1cf2,_0x2fc01d),this[_0x494dd5(0x257)](_0x29b6b4);}}),_0x256193||this[_0x1d7627(0xdd)]({'type':0x0,'memberID':this[_0x1d7627(0x96)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x4c1f23(0x257)](_0x47bf1f){const _0x1da06a=_0x4c1f23;this[_0x1da06a(0xd9)](_0x47bf1f);const _0x1c1cf9=window[_0x1da06a(0x3cc)](()=>{const _0x3117f9=_0x1da06a;this[_0x3117f9(0x131)][_0x3117f9(0x100)](_0x19b342=>{const _0x8091f3=_0x3117f9;_0x19b342[_0x8091f3(0xd0)](_0x47bf1f);});},as*0x2);this['_clearOtherTimers'][_0x1da06a(0x329)](_0x47bf1f,_0x1c1cf9);}[_0x4c1f23(0xd9)](_0x549a9f){const _0x43710a=_0x4c1f23;if(this[_0x43710a(0x3ad)][_0x43710a(0x20e)](_0x549a9f)){const _0x10959f=this['_clearOtherTimers'][_0x43710a(0x348)](_0x549a9f);_0x10959f&&window[_0x43710a(0x314)](_0x10959f),this[_0x43710a(0x3ad)]['set'](_0x549a9f,null);}}[_0x4c1f23(0x35f)](_0x445bd5){const _0x859d7e=_0x4c1f23,{memberID:_0x571eed,unitIDs:_0x131fd2}=_0x445bd5;_0x131fd2[_0x859d7e(0x100)](_0x13a59b=>{const _0x174733=_0x859d7e;var _0x1fd2d4;const _0x321f16=this[_0x174733(0x131)][_0x174733(0x348)](_0x13a59b);_0x321f16&&(_0x321f16[_0x174733(0xd0)](_0x571eed),(_0x1fd2d4=this[_0x174733(0x202)](_0x13a59b))==null||_0x1fd2d4[_0x174733(0x23d)](_0x321f16[_0x174733(0x151)]===0x0?0x0:0x1));}),this[_0x859d7e(0xd9)](_0x571eed);}[_0x4c1f23(0x11f)](_0x25fd20){const _0x16182f=_0x4c1f23;this[_0x16182f(0x257)](_0x25fd20[_0x16182f(0xbc)]);}['_send'](_0x2b090e){const _0x46fbcd=_0x4c1f23;localStorage[_0x46fbcd(0x2f8)](cs,JSON[_0x46fbcd(0x360)](_0x2b090e));}[_0x4c1f23(0xc3)](){const _0x407625=_0x4c1f23;this['_heartbeatTimer']=window[_0x407625(0x1af)](()=>{const _0x231491=_0x407625;this[_0x231491(0xdd)]({'type':0x2,'memberID':this[_0x231491(0x96)]});},as);}[_0x4c1f23(0x202)](_0x4064ad){const _0x38331f=_0x4c1f23;return this[_0x38331f(0x18c)]['has'](_0x4064ad)||this[_0x38331f(0x18c)][_0x38331f(0x329)](_0x4064ad,new _0x2ec58d(0x0)),this[_0x38331f(0x18c)][_0x38331f(0x348)](_0x4064ad);}}function xs(_0x39c3bb){const _0x42d003=_0x4c1f23;let _0x58f14c='';for(const _0x9ff902 of _0x39c3bb){const {startOffset:_0x27d74b,endOffset:_0x169ca0,isActive:_0x186016}=_0x9ff902;_0x58f14c[_0x42d003(0x78)]&&(_0x58f14c+=','),_0x58f14c+=_0x27d74b+':'+_0x169ca0+':'+(_0x186016?'1':'0');}return _0x58f14c;}function or(_0x3096ca){const _0x3dd455=_0x4c1f23,_0x4c94a8=_0x3096ca['split'](','),_0x581272=[];for(const _0x47d3ca of _0x4c94a8){const [_0x133341,_0x138120,_0x31eb6a]=_0x47d3ca[_0x3dd455(0x236)](':');_0x581272['push']({'startOffset':Number(_0x133341),'endOffset':Number(_0x138120),'collapsed':_0x133341===_0x138120,'isActive':_0x31eb6a==='1'});}return _0x581272[_0x3dd455(0x130)](_0x49bb6c=>_0x49bb6c[_0x3dd455(0x2a2)])||(_0x581272[0x0]['isActive']=!0x0),_0x581272;}class Bt extends _0x2dacfb{constructor(){const _0x594772=_0x4c1f23;super(...arguments),l(this,'_collabCursorState$',new _0x2ec58d(null)),l(this,_0x594772(0x2f5),this[_0x594772(0x356)][_0x594772(0xfc)]());}[_0x4c1f23(0x1f8)](_0x8c4037){const _0x2f9923=_0x4c1f23,{unitID:_0x329e02,memberID:_0x8bb08f,textRanges:_0x74bf6c}=_0x8c4037,_0xa46049=xs(_0x74bf6c),_0x52590d={'unitID':_0x329e02,'memberID':_0x8bb08f,'selection':_0xa46049};this[_0x2f9923(0x356)][_0x2f9923(0x23d)](_0x52590d);}}var ar=Object[_0x4c1f23(0x2e9)],cr=Object[_0x4c1f23(0x133)],hr=(_0x3fd7ed,_0x672d69,_0xf9fccb,_0x249774)=>{const _0x5d043f=_0x4c1f23;for(var _0x2e8305=_0x249774>0x1?void 0x0:_0x249774?cr(_0x672d69,_0xf9fccb):_0x672d69,_0x31f8e1=_0x3fd7ed[_0x5d043f(0x78)]-0x1,_0x5c86eb;_0x31f8e1>=0x0;_0x31f8e1--)(_0x5c86eb=_0x3fd7ed[_0x31f8e1])&&(_0x2e8305=(_0x249774?_0x5c86eb(_0x672d69,_0xf9fccb,_0x2e8305):_0x5c86eb(_0x2e8305))||_0x2e8305);return _0x249774&&_0x2e8305&&ar(_0x672d69,_0xf9fccb,_0x2e8305),_0x2e8305;},hs=(_0x20ee1b,_0x355f26)=>(_0x5ab485,_0x2c4ce1)=>_0x355f26(_0x5ab485,_0x2c4ce1,_0x20ee1b);let Xe=class{constructor(_0x263a28,_0x4c6b35){const _0x285ead=_0x4c1f23;this[_0x285ead(0x162)]=_0x263a28,this[_0x285ead(0x2ce)]=_0x4c6b35;}[_0x4c1f23(0x34c)](_0x4d59d3){const _0x242d05=_0x4c1f23;var _0x15128c;const _0x52f9d0=this[_0x242d05(0x162)][_0x242d05(0x348)](_0x322779),_0x5dfba9=(_0x15128c=_0x52f9d0[_0x242d05(0x2bd)]())!=null?_0x15128c:[];if(_0x5dfba9['length']===0x0)return;const _0x1d9535=[{'id':_0x242d05(0x108),'params':{'unitId':_0x4d59d3[_0x242d05(0x1f3)],'actions':null,'textRanges':_0x5dfba9}}],_0x3d677b=this[_0x242d05(0x2ce)][_0x242d05(0xbf)](_0x4d59d3,_0x1d9535);if(!_0x8db330(_0x3d677b))throw _0x3d677b[_0x242d05(0x17a)];const _0x196680=_0x3d677b['m2Prime'][0x0]['params'][_0x242d05(0x125)];Array[_0x242d05(0x35b)](_0x196680)&&_0x196680[_0x242d05(0x78)]&&_0x52f9d0[_0x242d05(0x297)](_0x196680,!0x1);}};Xe=hr([hs(0x0,_0x321449(_0x313fa0)),hs(0x1,_0x56767e)],Xe);const lr=new Set([_0x3f0b63['id']]);function ls(_0x435cf6,_0x53188f,_0x13da7a,_0x4867dc,_0x275391){const _0xa10d72=_0x4c1f23;var _0x5ec821,_0x2ffc1b,_0x316327,_0xf9cb50;const _0x59a4b0=[];for(const _0xf7921b of _0x435cf6)if(lr[_0xa10d72(0x20e)](_0xf7921b['id'])){if(_0x59a4b0['length']>0x0)break;_0x59a4b0[_0xa10d72(0x27c)](_0xf7921b);break;}else _0x59a4b0[_0xa10d72(0x27c)](_0xf7921b);const _0x4c56ce=(_0x2ffc1b=(_0x5ec821=_0x275391[_0xa10d72(0x16d)]())==null?void 0x0:_0x5ec821[_0xa10d72(0x1e6)])!=null?_0x2ffc1b:_0xa10d72(0x30f),_0x5c4e48=(_0xf9cb50=(_0x316327=_0x275391['getCurrentUser']())==null?void 0x0:_0x316327[_0xa10d72(0xbc)])!=null?_0xf9cb50:_0xa10d72(0x30f);return{'changeset':{'unitID':_0x53188f,'type':_0x53eda4(_0x13da7a[_0xa10d72(0x27b)](_0x53188f)),'baseRev':_0x4867dc[_0xa10d72(0x189)](_0x53188f),'revision':0x0,'userID':_0x4c56ce,'memberID':_0x5c4e48,'mutations':_0x59a4b0},'pendingMutations':_0x435cf6[_0xa10d72(0x29d)](_0x59a4b0[_0xa10d72(0x78)])};}function _r(_0x166621,_0x3e6f54,_0x16fa09,_0x594510,_0xe78855){const _0x355e8e=_0x4c1f23;var _0x2df672,_0x49800b,_0x31b858,_0x2bcbf8;const _0x2b199b=[_0x166621[_0x355e8e(0x3cd)]((_0x27d2f2,_0x182e12)=>{const _0x4a48cb=_0x355e8e;var _0x2218b1;const {id:_0x14919a}=_0x27d2f2,{id:_0x5ea084,type:_0x2173cf}=_0x182e12,_0x477a15=(_0x2218b1=_0x27d2f2['params'])!=null?_0x2218b1:{'actions':null},_0x1b0ff5=_0x182e12[_0x4a48cb(0x364)];if(_0x14919a&&_0x14919a!==_0x5ea084)throw new Error(_0x4a48cb(0x260)+_0x14919a+'\x20-\x20'+_0x5ea084+'.');return{..._0x27d2f2,'id':_0x5ea084,'type':_0x2173cf,'params':{'unitId':_0x1b0ff5['unitId'],'textRanges':_0x1b0ff5[_0x4a48cb(0x125)],'actions':_0x107e10[_0x4a48cb(0x142)](_0x477a15[_0x4a48cb(0x33d)],_0x1b0ff5[_0x4a48cb(0x33d)])}};},{})],_0x4e125d=(_0x49800b=(_0x2df672=_0xe78855[_0x355e8e(0x16d)]())==null?void 0x0:_0x2df672['userID'])!=null?_0x49800b:_0x355e8e(0x30f),_0x37828c=(_0x2bcbf8=(_0x31b858=_0xe78855[_0x355e8e(0x16d)]())==null?void 0x0:_0x31b858['memberID'])!=null?_0x2bcbf8:_0x355e8e(0x30f);return{'changeset':{'unitID':_0x3e6f54,'type':_0x53eda4(_0x16fa09[_0x355e8e(0x27b)](_0x3e6f54)),'baseRev':_0x594510[_0x355e8e(0x189)](_0x3e6f54),'revision':0x0,'userID':_0x4e125d,'memberID':_0x37828c,'mutations':_0x2b199b},'pendingMutations':[]};}const ur={'id':_0x489e71['id'],'type':_0xcd477b[_0x4c1f23(0xdf)],'params':{}};var dr=Object['defineProperty'],fr=Object[_0x4c1f23(0x133)],le=(_0x182cf5,_0x5dd82,_0x3e35fc,_0x13a299)=>{const _0x42dbcf=_0x4c1f23;for(var _0x54fbd0=_0x13a299>0x1?void 0x0:_0x13a299?fr(_0x5dd82,_0x3e35fc):_0x5dd82,_0x57aa36=_0x182cf5[_0x42dbcf(0x78)]-0x1,_0x51700b;_0x57aa36>=0x0;_0x57aa36--)(_0x51700b=_0x182cf5[_0x57aa36])&&(_0x54fbd0=(_0x13a299?_0x51700b(_0x5dd82,_0x3e35fc,_0x54fbd0):_0x51700b(_0x54fbd0))||_0x54fbd0);return _0x13a299&&_0x54fbd0&&dr(_0x5dd82,_0x3e35fc,_0x54fbd0),_0x54fbd0;},m=(_0x267d69,_0x23c0ce)=>(_0x3ed41b,_0x5575ab)=>_0x23c0ce(_0x3ed41b,_0x5575ab,_0x267d69),w=(_0x27f830=>(_0x27f830[_0x4c1f23(0x3df)]=_0x4c1f23(0x36b),_0x27f830[_0x4c1f23(0x316)]=_0x4c1f23(0x2d0),_0x27f830[_0x4c1f23(0x3a7)]='pending',_0x27f830[_0x4c1f23(0x1ca)]=_0x4c1f23(0x369),_0x27f830['AWAITING_WITH_PENDING']=_0x4c1f23(0x2b3),_0x27f830[_0x4c1f23(0x1c6)]=_0x4c1f23(0x1dc),_0x27f830[_0x4c1f23(0x12a)]=_0x4c1f23(0x2fd),_0x27f830['OFFLINE']=_0x4c1f23(0x209),_0x27f830))(w||{});class _e{constructor(_0x494ea9,_0x904a6b,_0x37a493,_0x488a08,_0x4a673e,_0x41a300,_0x332bbe,_0x5053dd,_0x2d46b2){const _0x49ccec=_0x4c1f23;l(this,_0x49ccec(0x32e),null),l(this,_0x49ccec(0x14c),[]),(this['unitID']=_0x494ea9,this[_0x49ccec(0x1d3)]=_0x904a6b,this[_0x49ccec(0x34b)]=_0x4a673e,this[_0x49ccec(0x1ef)]=_0x41a300,this[_0x49ccec(0x3ce)]=_0x332bbe,this['_revisionService']=_0x5053dd,this[_0x49ccec(0xd7)]=_0x2d46b2,this[_0x49ccec(0x32e)]=_0x37a493,this[_0x49ccec(0x14c)]=_0x488a08);}[_0x4c1f23(0x3c6)](_0x5267b2){const _0x18004a=_0x4c1f23,_0x537c78=this[_0x18004a(0x396)][_0x18004a(0x189)](this[_0x18004a(0x1f3)]);return _0x5267b2[_0x18004a(0x3d6)]>_0x537c78+0x1?(this[_0x18004a(0x34b)][_0x18004a(0x31e)]({'from':_0x537c78,'to':_0x5267b2['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x2ad504){const _0x2d94b5=_0x4c1f23;this['_undoRedoService'][_0x2d94b5(0x2bc)](this[_0x2d94b5(0x1f3)],_0x2ad504);}[_0x4c1f23(0x346)](_0x236a56){const _0x57d4b5=_0x4c1f23;var _0x4d7582,_0x522483;(_0x522483=(_0x4d7582=this[_0x57d4b5(0x34b)])[_0x57d4b5(0x1c1)])==null||_0x522483[_0x57d4b5(0x3af)](_0x4d7582,_0x236a56);}[_0x4c1f23(0x32f)](_0x46ba72){const _0x4d5cb6=_0x4c1f23;var _0x18255a,_0x2afd71;return(_0x2afd71=(_0x18255a=this[_0x4d5cb6(0x34b)])[_0x4d5cb6(0x200)])==null?void 0x0:_0x2afd71['call'](_0x18255a,_0x46ba72);}[_0x4c1f23(0x2df)](_0xb7ca14){const _0x421973=_0x4c1f23;var _0xd7e3e2,_0x2722ba,_0x57efcb;return(_0x57efcb=(_0x2722ba=(_0xd7e3e2=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x2722ba[_0x421973(0x3af)](_0xd7e3e2,_0xb7ca14))!=null?_0x57efcb:_0xb7ca14;}[_0x4c1f23(0x3d5)](_0x5e7156){const _0x32f894=_0x4c1f23;var _0x2a543c,_0x2f649e;if(this[_0x32f894(0x1d3)]===H['UNIVER_DOC']){const {unitID:_0x10ffd1,mutations:_0x1de38b,memberID:_0x5811f5}=_0x5e7156,_0x8ad858=_0x1de38b[0x0][_0x32f894(0x364)]['textRanges'];Array[_0x32f894(0x35b)](_0x8ad858)&&_0x8ad858['length']>0x0&&((_0x2f649e=(_0x2a543c=this[_0x32f894(0x34b)])[_0x32f894(0x1e7)])==null||_0x2f649e[_0x32f894(0x3af)](_0x2a543c,{'unitID':_0x10ffd1,'memberID':_0x5811f5,'textRanges':_0x8ad858}));}}[_0x4c1f23(0x32a)](){const _0x774252=_0x4c1f23;this[_0x774252(0xd7)][_0x774252(0x377)](this['unitID'],this[_0x774252(0x1d3)],this[_0x774252(0x32e)],this[_0x774252(0x14c)]);}['_getCurrentRevision'](){const _0xa461ab=_0x4c1f23;return this[_0xa461ab(0x396)]['getCurrentRevOfUnit'](this[_0xa461ab(0x1f3)]);}[_0x4c1f23(0x3c1)](){const _0xe8112e=_0x4c1f23;this['_revisionService'][_0xe8112e(0x193)](this['unitID']);}[_0x4c1f23(0x3aa)](_0x3ac055){const _0x2ac698=_0x4c1f23;var _0x3757d4;const _0x3d9b45=this[_0x2ac698(0x2df)](_0x3ac055),_0x636220=_0x2aed7d(_0x3d9b45['mutations'],this[_0x2ac698(0x1ef)],{'fromCollab':!0x0});if(!_0x636220[_0x2ac698(0x2c5)])throw _0x636220[_0x2ac698(0x17a)]instanceof Error?_0x636220[_0x2ac698(0x17a)]:new Error((_0x3757d4=_0x636220[_0x2ac698(0x17a)])!=null?_0x3757d4:_0x2ac698(0x1cc));this[_0x2ac698(0x32f)](_0x3d9b45),this[_0x2ac698(0x12e)](_0x3ac055),this[_0x2ac698(0x346)](_0x3d9b45),this['_syncEditingCollabCursor'](_0x3d9b45),this[_0x2ac698(0x3c1)]();}}let Se=class extends _e{constructor(_0x1cf2d6,_0x550005,_0x11445d,_0x122506,_0x1db12d,_0x35ed5d,_0x5a59cc,_0x3f44c0,_0xbc6877,_0x3af6d9){const _0x4c8c97=_0x4c1f23;super(_0x1cf2d6,_0x550005,null,[],_0x11445d,_0x3f44c0,_0x5a59cc,_0x122506,_0x1db12d),l(this,_0x4c8c97(0xad),'synced'),(this['_injector']=_0x35ed5d,this[_0x4c8c97(0x128)]=_0xbc6877,this[_0x4c8c97(0x2ce)]=_0x3af6d9);}[_0x4c1f23(0x3ef)](_0x20102e){const _0x267814=_0x4c1f23,_0x5010db=this['_injector'][_0x267814(0x171)](K,this[_0x267814(0x1f3)],this[_0x267814(0x1d3)],[_0x20102e],this[_0x267814(0x34b)]);return _0x5010db[_0x267814(0x298)](),_0x5010db[_0x267814(0x32a)](),_0x5010db;}[_0x4c1f23(0x10c)](_0x5a8739){const _0x2321ff=_0x4c1f23;if(this['_checkMissing'](_0x5a8739))return this['_injector'][_0x2321ff(0x171)](k,this[_0x2321ff(0x1f3)],this[_0x2321ff(0x1d3)],null,[],null,[_0x5a8739],this[_0x2321ff(0x34b)]);try{const _0x52816e=this['_transformService']['transformMutationsWithChangeset'](_0x5a8739,[ur]);if(_0x8db330(_0x52816e)){const {c1Prime:_0x71a0e5}=_0x52816e;return this[_0x2321ff(0x3aa)](_0x71a0e5),this;}throw _0x52816e[_0x2321ff(0x17a)];}catch(_0x91a9e4){return this[_0x2321ff(0x128)][_0x2321ff(0x17a)](_0x91a9e4),this[_0x2321ff(0x222)](!0x1);}}[_0x4c1f23(0x222)](_0x2d7205){const _0x221b40=_0x4c1f23;return this[_0x221b40(0x162)][_0x221b40(0x171)](Q,this[_0x221b40(0x1f3)],this[_0x221b40(0x1d3)],null,[],this['_handler'],_0x2d7205);}[_0x4c1f23(0x357)](){const _0x1b4a1f=_0x4c1f23;throw new Error(_0x1b4a1f(0x2c2));}[_0x4c1f23(0xf4)](){const _0x3eaf62=_0x4c1f23;throw new Error(_0x3eaf62(0x23f));}[_0x4c1f23(0x385)](){const _0x2e0343=_0x4c1f23;return this[_0x2e0343(0x162)][_0x2e0343(0x171)](ee,this['unitID'],this[_0x2e0343(0x1d3)],null,[],this[_0x2e0343(0x34b)]);}[_0x4c1f23(0x31f)](){return this;}['resend'](){const _0x3b9aa9=_0x4c1f23;throw new Error(_0x3b9aa9(0x3ec));}[_0x4c1f23(0xff)](){const _0x501cdc=_0x4c1f23,_0x5f5b4a=this['_revisionService'][_0x501cdc(0x189)](this['unitID']);return this[_0x501cdc(0x34b)][_0x501cdc(0x31e)]({'from':_0x5f5b4a,'to':0x0}),this[_0x501cdc(0x162)][_0x501cdc(0x171)](k,this[_0x501cdc(0x1f3)],this[_0x501cdc(0x1d3)],null,[],null,[],this[_0x501cdc(0x34b)]);}};Se=le([m(0x3,_0x321449(_0x5d1c03)),m(0x4,_0x321449(D)),m(0x5,_0x321449(_0x313fa0)),m(0x6,_0x2fbed3),m(0x7,_0x265863),m(0x8,_0x50688a),m(0x9,_0x56767e)],Se);let K=class extends _e{constructor(_0x151b5d,_0x4cee19,_0x4c0f62,_0x3faa6d,_0x4ee8e7,_0x28e173,_0x2c39e3,_0x10ce5e,_0x485fb9,_0x4fdcb0,_0x5dbadd,_0x524a88,_0x1edbe5,_0x3aae5a){const _0x334bda=_0x4c1f23;super(_0x151b5d,_0x4cee19,null,_0x4c0f62,_0x3faa6d,_0x4fdcb0,_0x3aae5a,_0x28e173,_0x2c39e3),l(this,_0x334bda(0xad),'pending'),l(this,_0x334bda(0xc7),null),l(this,'_sendingTimer',null),(this[_0x334bda(0x162)]=_0x4ee8e7,this[_0x334bda(0x2ed)]=_0x10ce5e,this['_logService']=_0x485fb9,this[_0x334bda(0x132)]=_0x5dbadd,this[_0x334bda(0x2ce)]=_0x524a88,this['_univerInstanceService']=_0x1edbe5);}[_0x4c1f23(0x3ef)](_0x2f2db1){const _0x4424b6=_0x4c1f23;return this[_0x4424b6(0x14c)][_0x4424b6(0x27c)](_0x2f2db1),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x31c93b){const _0x3616d8=_0x4c1f23;if(this[_0x3616d8(0x3c6)](_0x31c93b))return this[_0x3616d8(0x387)](),this[_0x3616d8(0x162)][_0x3616d8(0x171)](k,this[_0x3616d8(0x1f3)],this[_0x3616d8(0x1d3)],null,this['_pendingMutations'],null,[_0x31c93b],this['_handler']);try{const _0x2326fa=this['_transformService'][_0x3616d8(0xbf)](_0x31c93b,this[_0x3616d8(0x14c)]);if(_0x8db330(_0x2326fa)){const {c1Prime:_0x5660bc,m2Prime:_0x4a40cc}=_0x2326fa;this[_0x3616d8(0x3aa)](_0x5660bc);const _0x4aac19=this[_0x3616d8(0x162)][_0x3616d8(0x171)](K,this['unitID'],this[_0x3616d8(0x1d3)],_0x4a40cc,this[_0x3616d8(0x34b)]);return this[_0x3616d8(0x387)](),_0x4aac19[_0x3616d8(0x298)](this[_0x3616d8(0xc7)]?Math[_0x3616d8(0x1e9)](0x0,new Date()[_0x3616d8(0x14f)]()-this[_0x3616d8(0xc7)]):this[_0x3616d8(0x3f4)]()),_0x4aac19;}throw _0x2326fa[_0x3616d8(0x17a)];}catch(_0x15bea2){return this[_0x3616d8(0x128)][_0x3616d8(0x17a)](_0x15bea2),this[_0x3616d8(0x222)](!0x1);}}[_0x4c1f23(0x357)](){const _0x5ba2ca=_0x4c1f23;throw new Error(_0x5ba2ca(0xf5));}[_0x4c1f23(0xf4)](){const _0x193912=_0x4c1f23;throw new Error(_0x193912(0x391));}[_0x4c1f23(0x385)](){const _0x26f02d=_0x4c1f23;return this[_0x26f02d(0x387)](),this[_0x26f02d(0x162)][_0x26f02d(0x171)](ee,this[_0x26f02d(0x1f3)],this[_0x26f02d(0x1d3)],null,this[_0x26f02d(0x14c)],this['_handler']);}['toggleOnline'](){return this;}[_0x4c1f23(0x298)](_0x1c115e){const _0x18a12b=_0x4c1f23,_0x4e22d3=_0x1c115e!=null?_0x1c115e:this[_0x18a12b(0x3f4)]();this[_0x18a12b(0xc7)]=new Date()['getTime'](),this[_0x18a12b(0x3dc)]=window[_0x18a12b(0x3cc)](()=>{const _0x1c147f=_0x18a12b;this[_0x1c147f(0x387)]();let _0x412c3d=null;switch(this[_0x1c147f(0x1d3)]){case H[_0x1c147f(0x10d)]:{_0x412c3d=ls(this[_0x1c147f(0x14c)],this[_0x1c147f(0x1f3)],this[_0x1c147f(0x310)],this[_0x1c147f(0x396)],this[_0x1c147f(0x2ed)]);break;}case H[_0x1c147f(0x11d)]:{this[_0x1c147f(0x14c)][_0x1c147f(0x158)](_0xf1e36d=>_0xf1e36d['id']===_0x1b2745['id'])?_0x412c3d=_r(this[_0x1c147f(0x14c)],this[_0x1c147f(0x1f3)],this[_0x1c147f(0x310)],this['_revisionService'],this[_0x1c147f(0x2ed)]):_0x412c3d=ls(this[_0x1c147f(0x14c)],this[_0x1c147f(0x1f3)],this['_univerInstanceService'],this[_0x1c147f(0x396)],this[_0x1c147f(0x2ed)]);break;}default:throw new Error(_0x1c147f(0xb3)+this[_0x1c147f(0x1d3)]+_0x1c147f(0x2e7));}const {changeset:_0xc35701,pendingMutations:_0x3c947c}=_0x412c3d;this[_0x1c147f(0x34b)][_0x1c147f(0x2d4)](_0xc35701);const _0x5a2105=_0x3c947c[_0x1c147f(0x78)]?this['_injector'][_0x1c147f(0x171)](X,this['unitID'],this[_0x1c147f(0x1d3)],_0xc35701,_0x3c947c,this[_0x1c147f(0x34b)]):this[_0x1c147f(0x162)][_0x1c147f(0x171)](Z,this[_0x1c147f(0x1f3)],this[_0x1c147f(0x1d3)],_0xc35701,this[_0x1c147f(0x34b)]);_0x5a2105[_0x1c147f(0x32a)](),this[_0x1c147f(0x34b)][_0x1c147f(0x1bc)](this,_0x5a2105);},_0x4e22d3);}['_getSendChangesetTimeout'](){const _0x499e63=_0x4c1f23;var _0x39679b;const _0x15c0be=this[_0x499e63(0x132)][_0x499e63(0x111)](L);return(_0x39679b=_0x15c0be==null?void 0x0:_0x15c0be['sendChangesetTimeout'])!=null?_0x39679b:gn;}['resend'](){const _0x30c51d=_0x4c1f23;throw new Error(_0x30c51d(0x362));}['_clearScheduledTask'](){const _0xcf5880=_0x4c1f23;this[_0xcf5880(0x3dc)]!=null&&(clearTimeout(this[_0xcf5880(0x3dc)]),this[_0xcf5880(0x3dc)]=null);}[_0x4c1f23(0x222)](_0x1e9691){const _0x3c3da6=_0x4c1f23;return this[_0x3c3da6(0x387)](),this['_injector'][_0x3c3da6(0x171)](Q,this[_0x3c3da6(0x1f3)],this[_0x3c3da6(0x1d3)],null,this[_0x3c3da6(0x14c)],this[_0x3c3da6(0x34b)],_0x1e9691);}};K=le([m(0x4,_0x321449(_0x313fa0)),m(0x5,_0x321449(_0x5d1c03)),m(0x6,_0x321449(D)),m(0x7,_0x321449(ae)),m(0x8,_0x50688a),m(0x9,_0x265863),m(0xa,_0x4d21d1),m(0xb,_0x56767e),m(0xc,_0x375068),m(0xd,_0x2fbed3)],K);let Z=class extends _e{constructor(_0x22badc,_0x43dd7c,_0x1b7796,_0x1b0193,_0x32cb2e,_0xc2804a,_0x3c31cb,_0xbd5e51,_0x38ef78,_0x5b2a57,_0x28e3db){const _0xc9c97a=_0x4c1f23;super(_0x22badc,_0x43dd7c,_0x1b7796,[],_0x1b0193,_0xbd5e51,_0x28e3db,_0xc2804a,_0x3c31cb),l(this,_0xc9c97a(0xad),_0xc9c97a(0x369)),(this[_0xc9c97a(0x162)]=_0x32cb2e,this[_0xc9c97a(0x128)]=_0x38ef78,this[_0xc9c97a(0x2ce)]=_0x5b2a57);}[_0x4c1f23(0x3ef)](_0x41cab8){const _0x4b6238=_0x4c1f23,_0x47bdc7=this[_0x4b6238(0x162)]['createInstance'](X,this[_0x4b6238(0x1f3)],this['type'],this['_awaitingChangeset'],[_0x41cab8],this[_0x4b6238(0x34b)]);return _0x47bdc7['_updateLocalCache'](),_0x47bdc7;}[_0x4c1f23(0x10c)](_0x4fe864){const _0x11695c=_0x4c1f23;if(this[_0x11695c(0x3c6)](_0x4fe864))return this[_0x11695c(0x162)]['createInstance'](k,this[_0x11695c(0x1f3)],this[_0x11695c(0x1d3)],this[_0x11695c(0x32e)],[],null,[_0x4fe864],this[_0x11695c(0x34b)]);try{const _0x5e1b8d=this[_0x11695c(0x2ce)][_0x11695c(0x3a0)]([_0x4fe864],[this[_0x11695c(0x32e)]],!0x1);if(_0x428767(_0x5e1b8d)){const {c1Prime:_0x501c68,c2Prime:_0x3dd012}=_0x5e1b8d;this[_0x11695c(0x3aa)](_0x501c68[0x0]),_0x3dd012[0x0][_0x11695c(0x1fc)]=this[_0x11695c(0x309)]();const _0x560cbd=this[_0x11695c(0x162)][_0x11695c(0x171)](Z,this[_0x11695c(0x1f3)],this[_0x11695c(0x1d3)],_0x3dd012[0x0],this[_0x11695c(0x34b)]);return _0x560cbd[_0x11695c(0x32a)](),_0x560cbd;}return this[_0x11695c(0x222)](!0x1);}catch(_0x31f2f2){return this[_0x11695c(0x128)][_0x11695c(0x17a)](_0x31f2f2),this[_0x11695c(0x222)](!0x1);}}[_0x4c1f23(0x357)](_0x325984){const _0x164750=_0x4c1f23,_0x341dbe=this[_0x164750(0x396)]['getCurrentRevOfUnit'](this[_0x164750(0x1f3)]);if(_0x325984['revision']<_0x341dbe-0x1)return this;if(this['_checkMissing'](_0x325984))return this[_0x164750(0x162)][_0x164750(0x171)](k,this[_0x164750(0x1f3)],this[_0x164750(0x1d3)],null,[],this['_awaitingChangeset'],[],this[_0x164750(0x34b)]);this['_incrementRevisionNumber']();const _0x4c3399=this['_injector'][_0x164750(0x171)](Se,this[_0x164750(0x1f3)],this[_0x164750(0x1d3)],this['_handler']);return _0x4c3399[_0x164750(0x32a)](),_0x4c3399;}[_0x4c1f23(0xf4)](_0x3e9b1a){const _0x23a3a3=_0x4c1f23;return this[_0x23a3a3(0x222)](!!(_0x3e9b1a!=null&&_0x3e9b1a[_0x23a3a3(0x3b9)]));}['toggleOffline'](){const _0x437ade=_0x4c1f23;return this[_0x437ade(0x162)][_0x437ade(0x171)](ee,this[_0x437ade(0x1f3)],this[_0x437ade(0x1d3)],this[_0x437ade(0x32e)],[],this[_0x437ade(0x34b)]);}[_0x4c1f23(0x31f)](){return this;}[_0x4c1f23(0x227)](){const _0x29eba2=_0x4c1f23;this[_0x29eba2(0x34b)][_0x29eba2(0x2d4)](this[_0x29eba2(0x32e)]);}[_0x4c1f23(0x222)](_0xe7903f){const _0x4e2cc5=_0x4c1f23;return this[_0x4e2cc5(0x162)][_0x4e2cc5(0x171)](Q,this[_0x4e2cc5(0x1f3)],this['type'],this[_0x4e2cc5(0x32e)],[],this[_0x4e2cc5(0x34b)],_0xe7903f);}};Z=le([m(0x4,_0x321449(_0x313fa0)),m(0x5,_0x321449(_0x5d1c03)),m(0x6,_0x321449(D)),m(0x7,_0x265863),m(0x8,_0x50688a),m(0x9,_0x56767e),m(0xa,_0x2fbed3)],Z);let X=class extends _e{constructor(_0x4c0f75,_0x26c96b,_0x5f3f3a,_0x17bb8f,_0xf7a19c,_0x4b7607,_0x358856,_0x14fd4f,_0x400910,_0x479d5b,_0x256486,_0x451dc4){const _0x248cdb=_0x4c1f23;super(_0x4c0f75,_0x26c96b,_0x5f3f3a,_0x17bb8f,_0xf7a19c,_0x400910,_0x451dc4,_0x358856,_0x14fd4f),l(this,_0x248cdb(0xad),_0x248cdb(0x2b3)),(this[_0x248cdb(0x162)]=_0x4b7607,this[_0x248cdb(0x128)]=_0x479d5b,this[_0x248cdb(0x2ce)]=_0x256486);}[_0x4c1f23(0x3ef)](_0x8c8974){const _0x2852e4=_0x4c1f23;return this[_0x2852e4(0x14c)]['push'](_0x8c8974),this;}[_0x4c1f23(0x10c)](_0x32446f){const _0x258c2f=_0x4c1f23;if(this['_checkMissing'](_0x32446f))return this[_0x258c2f(0x162)]['createInstance'](k,this[_0x258c2f(0x1f3)],this[_0x258c2f(0x1d3)],this[_0x258c2f(0x32e)],this[_0x258c2f(0x14c)],null,[_0x32446f],this[_0x258c2f(0x34b)]);try{const _0x43d26b=this['_transformService'][_0x258c2f(0x3a0)]([_0x32446f],[this[_0x258c2f(0x32e)]],!0x1);if(_0x428767(_0x43d26b)){const {c1Prime:_0x350c09,c2Prime:_0x3d20f3}=_0x43d26b,_0x46e6c3=this['_transformService'][_0x258c2f(0xbf)](_0x350c09[0x0],this[_0x258c2f(0x14c)]);if(_0x8db330(_0x46e6c3)){const {c1Prime:_0x461dfc,m2Prime:_0x391063}=_0x46e6c3;return this['_executeRemoteChangeset'](_0x461dfc),_0x3d20f3[0x0]['baseRev']=this[_0x258c2f(0x309)](),this['_injector'][_0x258c2f(0x171)](X,this[_0x258c2f(0x1f3)],this[_0x258c2f(0x1d3)],_0x3d20f3[0x0],_0x391063,this[_0x258c2f(0x34b)]);}throw _0x46e6c3[_0x258c2f(0x17a)];}throw _0x43d26b[_0x258c2f(0x17a)];}catch(_0x22473e){return this[_0x258c2f(0x128)]['error'](_0x22473e),this[_0x258c2f(0x222)](!0x1);}}[_0x4c1f23(0x357)](_0x3832dc){const _0x57ff09=_0x4c1f23;if(this[_0x57ff09(0x3c6)](_0x3832dc))return this[_0x57ff09(0x162)][_0x57ff09(0x171)](k,this['unitID'],this[_0x57ff09(0x1d3)],null,this[_0x57ff09(0x14c)],this['_awaitingChangeset'],[],this['_handler']);this[_0x57ff09(0x3c1)]();const _0x4311ee=this['_injector'][_0x57ff09(0x171)](K,this[_0x57ff09(0x1f3)],this[_0x57ff09(0x1d3)],this[_0x57ff09(0x14c)],this['_handler']);return _0x4311ee[_0x57ff09(0x298)](),_0x4311ee[_0x57ff09(0x32a)](),_0x4311ee;}[_0x4c1f23(0xf4)](_0x644362){const _0x547a13=_0x4c1f23;return this[_0x547a13(0x222)](!!(_0x644362!=null&&_0x644362['isPermissionRej']));}[_0x4c1f23(0x385)](){const _0x3d26c6=_0x4c1f23;return this[_0x3d26c6(0x162)][_0x3d26c6(0x171)](ee,this[_0x3d26c6(0x1f3)],this[_0x3d26c6(0x1d3)],this[_0x3d26c6(0x32e)],this['_pendingMutations'],this['_handler']);}[_0x4c1f23(0x31f)](){return this;}['resend'](){const _0x527fdf=_0x4c1f23;this[_0x527fdf(0x34b)][_0x527fdf(0x2d4)](this[_0x527fdf(0x32e)]);}[_0x4c1f23(0x222)](_0x4e9a3c){const _0x192af2=_0x4c1f23;return this[_0x192af2(0x162)][_0x192af2(0x171)](Q,this[_0x192af2(0x1f3)],this[_0x192af2(0x1d3)],null,this[_0x192af2(0x14c)],this['_handler'],_0x4e9a3c);}};X=le([m(0x5,_0x321449(_0x313fa0)),m(0x6,_0x321449(_0x5d1c03)),m(0x7,_0x321449(D)),m(0x8,_0x265863),m(0x9,_0x50688a),m(0xa,_0x56767e),m(0xb,_0x2fbed3)],X);let Q=class extends _e{constructor(_0x2b2b14,_0x57c442,_0x4c3e32,_0x39311f,_0x21395c,_0x293360=!0x1,_0x4ec3b6,_0x568959,_0x54ec88,_0x214168,_0x5a20f2,_0x3cd3a0,_0x2e3734){const _0x129530=_0x4c1f23;super(_0x2b2b14,_0x57c442,_0x4c3e32,_0x39311f,_0x21395c,_0x568959,_0x54ec88,_0x5a20f2,_0x214168),l(this,_0x129530(0xad),_0x129530(0x2fd)),(this[_0x129530(0x2cd)]=_0x293360,this[_0x129530(0x15c)]=_0x4ec3b6,this['_localeService']=_0x3cd3a0,this[_0x129530(0x3a8)]=_0x2e3734,this['_showConflictNotification'](),this[_0x129530(0x1da)](),this[_0x129530(0x37d)]());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x4c1f23(0x357)](){return this;}['onRemoteRej'](){return this;}[_0x4c1f23(0x385)](){return this;}[_0x4c1f23(0x31f)](){return this;}[_0x4c1f23(0x227)](){const _0x267b4f=_0x4c1f23;throw new Error(_0x267b4f(0x220));}[_0x4c1f23(0x1da)](){const _0x452966=_0x4c1f23;this[_0x452966(0xd7)][_0x452966(0x377)](this[_0x452966(0x1f3)],this[_0x452966(0x1d3)],null,[]);}[_0x4c1f23(0x24d)](){const _0xef1b68=_0x4c1f23;this['_isPermissionRej']?this['_notificationService'][_0xef1b68(0x160)]({'title':this[_0xef1b68(0x119)]['t']('permission.title'),'content':this[_0xef1b68(0x119)]['t'](_0xef1b68(0x398)),'type':_0xef1b68(0x17a),'duration':0x0}):this[_0xef1b68(0x3a8)][_0xef1b68(0x160)]({'title':this['_localeService']['t'](_0xef1b68(0x1f7)),'content':this['_localeService']['t'](_0xef1b68(0x253)),'type':'error','duration':0x0});}[_0x4c1f23(0x37d)](){const _0xc21e08=_0x4c1f23;this[_0xc21e08(0x15c)][_0xc21e08(0xb6)](new _0x42c12f(this[_0xc21e08(0x1f3)])['id'],!0x1);}};Q=le([m(0x6,_0x321449(_0x52f39f)),m(0x7,_0x265863),m(0x8,_0x2fbed3),m(0x9,_0x321449(D)),m(0xa,_0x321449(_0x5d1c03)),m(0xb,_0x321449(_0x2e153b)),m(0xc,_0x7f7802)],Q);let ee=class extends _e{constructor(_0x186109,_0x2b96b4,_0x12935f,_0x4e06c9,_0x25911a,_0x25ec44,_0x4e809b,_0x453f10,_0xca638c,_0xbf7522){const _0x3db14c=_0x4c1f23;super(_0x186109,_0x2b96b4,_0x12935f,_0x4e06c9,_0x25911a,_0xca638c,_0xbf7522,_0x4e809b,_0x453f10),l(this,'status',_0x3db14c(0x209)),this[_0x3db14c(0x162)]=_0x25ec44;}['appendMutation'](_0x130fa4){const _0x5afcec=_0x4c1f23;return this[_0x5afcec(0x14c)][_0x5afcec(0x27c)](_0x130fa4),this[_0x5afcec(0x32a)](),this;}[_0x4c1f23(0x10c)](_0x507b95){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x4864a6=_0x4c1f23;throw new Error(_0x4864a6(0x105));}[_0x4c1f23(0xf4)](){const _0x4ae662=_0x4c1f23;throw new Error(_0x4ae662(0x76));}['toggleOffline'](){return this;}[_0x4c1f23(0x31f)](){const _0x570c2b=_0x4c1f23,{_injector:_0x5975b5,_pendingMutations:_0x264191,_awaitingChangeset:_0x3a813c,unitID:_0x250ea1,_handler:_0x37f71d,type:_0x113267}=this,_0x516f2e=Hs(_0x5975b5,_0x250ea1,_0x113267,_0x3a813c,_0x264191,_0x37f71d);return _0x516f2e instanceof K?_0x516f2e[_0x570c2b(0x298)]():(_0x516f2e instanceof X||_0x516f2e instanceof Z)&&_0x516f2e['resend'](),_0x516f2e;}[_0x4c1f23(0x227)](){const _0x186aed=_0x4c1f23;throw new Error(_0x186aed(0x1c5));}};ee=le([m(0x5,_0x321449(_0x313fa0)),m(0x6,_0x321449(_0x5d1c03)),m(0x7,_0x321449(D)),m(0x8,_0x265863),m(0x9,_0x2fbed3)],ee);let k=class extends _e{constructor(_0x4747cd,_0x4a6a02,_0x396f86,_0x428fd0,_0x2adc59,_0x16d44d,_0x3b254d,_0x164c09,_0x5092c1,_0x36f7d2,_0x1a3db9,_0x3d1657,_0x456caa,_0xaa0456){const _0x346d77=_0x4c1f23;super(_0x4747cd,_0x4a6a02,_0x396f86,_0x428fd0,_0x3b254d,_0x3d1657,_0x456caa,_0x5092c1,_0x36f7d2),l(this,_0x346d77(0xad),_0x346d77(0x1dc)),(this[_0x346d77(0x295)]=_0x2adc59,this[_0x346d77(0x1c9)]=_0x16d44d,this[_0x346d77(0x162)]=_0x164c09,this[_0x346d77(0x128)]=_0x1a3db9,this[_0x346d77(0x2ce)]=_0xaa0456);}['onMissedChangesetFetched'](_0x4fca33){const _0x5cbe65=_0x4c1f23;try{const _0xdd2ac5=[..._0x4fca33,...this[_0x5cbe65(0x1c9)]],_0x473da9=[this[_0x5cbe65(0x32e)]||this[_0x5cbe65(0x295)]][_0x5cbe65(0x347)](_0x46968a=>!!_0x46968a);let _0x4192b5,_0x8fc273;if(_0x473da9[_0x5cbe65(0x78)]){const _0x5aa5a7=this['_transformService'][_0x5cbe65(0x3a0)](_0xdd2ac5,_0x473da9,!0x1);if(!_0x428767(_0x5aa5a7))throw _0x5aa5a7[_0x5cbe65(0x17a)];_0x4192b5=_0x5aa5a7['c1Prime'],_0x8fc273=_0x5aa5a7['c2Prime'];}else _0x4192b5=_0xdd2ac5,_0x8fc273=[];let _0x3881ea=this['_pendingMutations'];_0x4192b5[_0x5cbe65(0x100)](_0x26baf0=>{const _0x8452f5=_0x5cbe65;let _0x581545;if(_0x3881ea[_0x8452f5(0x78)]){const _0x4a41f6=this['_transformService'][_0x8452f5(0xbf)](_0x26baf0,_0x3881ea);if(!_0x8db330(_0x4a41f6))throw _0x4a41f6[_0x8452f5(0x17a)];_0x581545=_0x4a41f6['c1Prime'],_0x3881ea=_0x4a41f6[_0x8452f5(0x101)];}else _0x581545=_0x26baf0;this[_0x8452f5(0x3aa)](_0x581545);}),this[_0x5cbe65(0x295)]&&this[_0x5cbe65(0x3c1)](),this['_awaitingChangeset']&&_0x8fc273['length']&&(_0x8fc273[0x0][_0x5cbe65(0x1fc)]=this[_0x5cbe65(0x309)]());let _0x3f4245;if(this['_awaitingChangeset']&&_0x3881ea[_0x5cbe65(0x78)]!==0x0)_0x3f4245=this['_injector'][_0x5cbe65(0x171)](X,this[_0x5cbe65(0x1f3)],this[_0x5cbe65(0x1d3)],_0x8fc273[0x0],_0x3881ea,this[_0x5cbe65(0x34b)]);else{if(this[_0x5cbe65(0x32e)]&&_0x3881ea['length']===0x0)_0x8fc273[0x0][_0x5cbe65(0x1fc)]=this[_0x5cbe65(0x309)](),_0x3f4245=this['_injector'][_0x5cbe65(0x171)](Z,this['unitID'],this[_0x5cbe65(0x1d3)],_0x8fc273[0x0],this[_0x5cbe65(0x34b)]);else{if(_0x3881ea['length']!==0x0){const _0x210769=this[_0x5cbe65(0x162)][_0x5cbe65(0x171)](K,this[_0x5cbe65(0x1f3)],this[_0x5cbe65(0x1d3)],_0x3881ea,this[_0x5cbe65(0x34b)]);_0x210769[_0x5cbe65(0x298)](),_0x3f4245=_0x210769;}else _0x3f4245=this[_0x5cbe65(0x162)]['createInstance'](Se,this[_0x5cbe65(0x1f3)],this[_0x5cbe65(0x1d3)],this[_0x5cbe65(0x34b)]);}}return _0x3f4245[_0x5cbe65(0x32a)](),_0x3f4245;}catch(_0x282da0){return this['_logService']['error'](_0x5cbe65(0xc6),_0x5cbe65(0x28b),_0x282da0),this[_0x5cbe65(0x162)][_0x5cbe65(0x171)](Q,this[_0x5cbe65(0x1f3)],this[_0x5cbe65(0x1d3)],this[_0x5cbe65(0x32e)],this[_0x5cbe65(0x14c)],this[_0x5cbe65(0x34b)],!0x1);}}[_0x4c1f23(0x227)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4c1f23(0x3ef)](_0x4223b6){const _0x27ef99=_0x4c1f23;return this[_0x27ef99(0x14c)][_0x27ef99(0x27c)](_0x4223b6),this;}[_0x4c1f23(0x10c)](_0x324787){const _0x290fd1=_0x4c1f23;return this[_0x290fd1(0x1c9)]['push'](_0x324787),this;}['onRemoteAck'](_0x3623d9){const _0x351ba7=_0x4c1f23;if(this['_awaitingChangeset'])return this[_0x351ba7(0x295)]=this[_0x351ba7(0x32e)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x4c1f23(0xf4)](_0x1511f7){const _0x158849=_0x4c1f23;return this[_0x158849(0x222)](!!(_0x1511f7!=null&&_0x1511f7[_0x158849(0x3b9)]));}[_0x4c1f23(0x385)](){const _0x2c6b56=_0x4c1f23;return this[_0x2c6b56(0x162)][_0x2c6b56(0x171)](ee,this['unitID'],this[_0x2c6b56(0x1d3)],this[_0x2c6b56(0x32e)],this[_0x2c6b56(0x14c)],this['_handler']);}[_0x4c1f23(0x31f)](){return this;}[_0x4c1f23(0x222)](_0x37f713){const _0x30edab=_0x4c1f23;return this['_injector']['createInstance'](Q,this[_0x30edab(0x1f3)],this['type'],this[_0x30edab(0x32e)],this[_0x30edab(0x14c)],this[_0x30edab(0x34b)],_0x37f713);}};k=le([m(0x7,_0x321449(_0x313fa0)),m(0x8,_0x321449(_0x5d1c03)),m(0x9,_0x321449(D)),m(0xa,_0x50688a),m(0xb,_0x265863),m(0xc,_0x2fbed3),m(0xd,_0x56767e)],k);function Hs(_0x2e4e3b,_0x12ef31,_0x52fb52,_0x2f1ac1,_0x22b2d3,_0x46cf91){const _0x433818=_0x4c1f23;return _0x2f1ac1&&_0x22b2d3['length']?_0x2e4e3b[_0x433818(0x171)](X,_0x12ef31,_0x52fb52,_0x2f1ac1,_0x22b2d3,_0x46cf91):_0x2f1ac1?_0x2e4e3b[_0x433818(0x171)](Z,_0x12ef31,_0x52fb52,_0x2f1ac1,_0x46cf91):_0x22b2d3[_0x433818(0x78)]?_0x2e4e3b[_0x433818(0x171)](K,_0x12ef31,_0x52fb52,_0x22b2d3,_0x46cf91):_0x2e4e3b['createInstance'](Se,_0x12ef31,_0x52fb52,_0x46cf91);}var mr=Object[_0x4c1f23(0x2e9)],gr=Object[_0x4c1f23(0x133)],Vt=(_0x5c516f,_0xecbd3b,_0x2ff63d,_0x1833ea)=>{const _0x58a222=_0x4c1f23;for(var _0x5f3e5b=_0x1833ea>0x1?void 0x0:_0x1833ea?gr(_0xecbd3b,_0x2ff63d):_0xecbd3b,_0xd1c1f9=_0x5c516f[_0x58a222(0x78)]-0x1,_0x53c110;_0xd1c1f9>=0x0;_0xd1c1f9--)(_0x53c110=_0x5c516f[_0xd1c1f9])&&(_0x5f3e5b=(_0x1833ea?_0x53c110(_0xecbd3b,_0x2ff63d,_0x5f3e5b):_0x53c110(_0x5f3e5b))||_0x5f3e5b);return _0x1833ea&&_0x5f3e5b&&mr(_0xecbd3b,_0x2ff63d,_0x5f3e5b),_0x5f3e5b;},p=(_0x4233d6,_0x5265b0)=>(_0x4e575f,_0x16ed68)=>_0x5265b0(_0x4e575f,_0x16ed68,_0x4233d6);let Je=class extends _0x2dacfb{constructor(_0x3b1635,_0x216fa0,_0x52a15d,_0x48a801,_0x14895f,_0x228be4,_0x4a1766,_0x39f8ea,_0x584ae0,_0x3a5378,_0x54eeed,_0x5112ac,_0x4a58d0){const _0x3e2d53=_0x4c1f23;super(),l(this,_0x3e2d53(0x3c3),new _0x2ec58d(null)),l(this,'state$',this['_state$'][_0x3e2d53(0xfc)]()),l(this,'_state'),l(this,_0x3e2d53(0xcb),!0x1),l(this,_0x3e2d53(0x380),this[_0x3e2d53(0xe0)][_0x3e2d53(0x1a7)](_0x16d2df(_0x5a09ab=>_0x5a09ab?_0x5a09ab[_0x3e2d53(0xad)]:w[_0x3e2d53(0x3d4)]),_0xb96cea(0x1))),l(this,_0x3e2d53(0x1f0),!0x1),l(this,'_remoteChangesetQueue',[]),(this[_0x3e2d53(0x1f3)]=_0x3b1635,this[_0x3e2d53(0x177)]=_0x216fa0,this['_type']=_0x52a15d,this['_injector']=_0x48a801,this[_0x3e2d53(0xd7)]=_0x14895f,this[_0x3e2d53(0xa3)]=_0x228be4,this[_0x3e2d53(0x119)]=_0x4a1766,this[_0x3e2d53(0x396)]=_0x39f8ea,this[_0x3e2d53(0x128)]=_0x584ae0,this['_commandService']=_0x3a5378,this['_messageService']=_0x54eeed,this[_0x3e2d53(0x15c)]=_0x5112ac,this[_0x3e2d53(0x335)]=_0x4a58d0);}get[_0x4c1f23(0x354)](){const _0x198ba1=_0x4c1f23;return this[_0x198ba1(0x195)];}async[_0x4c1f23(0x1ba)](){const _0x2f5f70=_0x4c1f23;if(this[_0x2f5f70(0x354)])throw new Error(_0x2f5f70(0x2f3));await this[_0x2f5f70(0x34a)]();}[_0x4c1f23(0x23c)](){const _0x4ac30a=_0x4c1f23;return this[_0x4ac30a(0xcb)]=!0x0,_0x5738c2(()=>{const _0x50f41b=_0x4ac30a;this['_collaborationPaused']=!0x1,this[_0x50f41b(0x24b)]();});}[_0x4c1f23(0x14d)](_0x880c57){const _0x474d9f=_0x4c1f23;this[_0x474d9f(0x195)]=_0x880c57,this[_0x474d9f(0x3c3)]['next'](_0x880c57);}async['_init'](){const _0x15bdd8=_0x4c1f23;var _0x1fa704;this[_0x15bdd8(0x14d)](await this[_0x15bdd8(0x2a0)]()),this[_0x15bdd8(0x335)]&&((_0x1fa704=this[_0x15bdd8(0x335)])==null||_0x1fa704['editingUnit'](this['unitID']),this['disposeWithMe'](this[_0x15bdd8(0x335)]['getUnitStatus$'](this[_0x15bdd8(0x1f3)])[_0x15bdd8(0x280)](_0x282144=>{const _0x258305=_0x15bdd8;this[_0x258305(0x128)][_0x258305(0x20b)]('[CollaborationEntity]',_0x258305(0xf9),_0x282144),_0x282144===js[_0x258305(0xf3)]?(this[_0x258305(0x28f)][_0x258305(0x160)]({'content':this[_0x258305(0x119)]['t'](_0x258305(0x143)),'type':_0x57eb36['Warning']}),this[_0x258305(0x15c)]['updatePermissionPoint'](new _0x42c12f(this[_0x258305(0x1f3)])['id'],!0x1)):this[_0x258305(0x15c)][_0x258305(0xb6)](new _0x42c12f(this[_0x258305(0x1f3)])['id'],!0x0);})));let _0x4193f9=!0x1;return this[_0x15bdd8(0x248)](this['session'][_0x15bdd8(0x294)][_0x15bdd8(0x280)](_0x23b041=>{const _0x4cc8ab=_0x15bdd8;_0x23b041===G[_0x4cc8ab(0x2e1)]?this[_0x4cc8ab(0x17b)](_0x4193f9):_0x23b041===G[_0x4cc8ab(0x3d4)]&&(_0x4193f9=!0x0,this[_0x4cc8ab(0xe8)]());})),this[_0x15bdd8(0x248)](this[_0x15bdd8(0x177)]['event$']['subscribe'](_0x22af5d=>{const _0x511938=_0x15bdd8;try{switch(_0x22af5d[_0x511938(0x186)]){case _0x273d8c['NEW_CHANGESETS']:{this[_0x511938(0x1ac)](_0x569e1c(_0x22af5d[_0x511938(0x339)]));break;}case _0x273d8c[_0x511938(0x368)]:{this[_0x511938(0x155)](_0x22af5d[_0x511938(0x339)]);break;}case _0x273d8c[_0x511938(0x389)]:{this['_onRemoteRejected']();break;}case _0x273d8c['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x511938(0x1ee)](_0x22af5d[_0x511938(0x339)][_0x511938(0x219)][_0x511938(0x17d)](_0x56e70e=>_0x569e1c(_0x56e70e)));break;}case _0x273d8c[_0x511938(0x2bf)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x1a83c4){throw console['error'](_0x511938(0x3e4),_0x1a83c4),_0x1a83c4;}})),this[_0x15bdd8(0x195)];}[_0x4c1f23(0x390)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x533c24=_0x4c1f23;if(this['_transitionLocked'])throw new Error(_0x533c24(0x306));this[_0x533c24(0x1f0)]=!0x0;}[_0x4c1f23(0x2dd)](_0x3853df){const _0x5db510=_0x4c1f23;this[_0x5db510(0x375)](),this['_updateState'](this[_0x5db510(0x195)][_0x5db510(0x3ef)](_0x3853df)),this[_0x5db510(0x390)]();}[_0x4c1f23(0x1ac)](_0x36005a){const _0x12d686=_0x4c1f23;if(!(_0x36005a['revision']<=this['_revisionService']['getCurrentRevOfUnit'](this[_0x12d686(0x1f3)]))){if(this[_0x12d686(0xcb)]){this['_remoteChangesetQueue'][_0x12d686(0x27c)](_0x36005a);return;}this[_0x12d686(0x26b)](_0x36005a);}}[_0x4c1f23(0x24b)](){const _0x52d52f=_0x4c1f23;this[_0x52d52f(0x1ff)]['forEach'](_0x69f4bb=>this[_0x52d52f(0x26b)](_0x69f4bb)),this[_0x52d52f(0x1ff)]=[];}['_applyRemoteChangeset'](_0xf71938){const _0x287762=_0x4c1f23,_0x762128=this['_compressMutationService'][_0x287762(0x35d)][_0x287762(0x35e)](this[_0x287762(0xa3)][_0x287762(0x35d)][_0x287762(0x1c0)]()['COMPRESS_MUTATION_APPLY'])(_0xf71938[_0x287762(0x3d7)],null)||_0xf71938[_0x287762(0x3d7)],_0x77adcc={..._0xf71938,'mutations':_0x762128};this[_0x287762(0x375)](),this[_0x287762(0x14d)](this[_0x287762(0x195)][_0x287762(0x10c)](_0x77adcc)),this[_0x287762(0x390)]();}['_onRemoteACK'](_0x4804c5){const _0x1cfa21=_0x4c1f23;this[_0x1cfa21(0x375)](),this[_0x1cfa21(0x14d)](this[_0x1cfa21(0x195)][_0x1cfa21(0x357)](_0x4804c5)),this['_unlockTransition']();}[_0x4c1f23(0x1d5)](_0x58532e){const _0x54a6f7=_0x4c1f23;this[_0x54a6f7(0x375)](),this['_updateState'](this[_0x54a6f7(0x195)][_0x54a6f7(0xf4)](_0x58532e)),this['_unlockTransition']();}['_onFetchMissResult'](_0x3401e1){const _0x407412=_0x4c1f23;if(!(this[_0x407412(0x195)]instanceof k))throw new TypeError(_0x407412(0x8d));const _0x2aff63=_0x3401e1[_0x407412(0x17d)](_0x5447e7=>{const _0xd9c56e=_0x407412,_0x4287e9=this[_0xd9c56e(0xa3)]['interceptor'][_0xd9c56e(0x35e)](this[_0xd9c56e(0xa3)][_0xd9c56e(0x35d)]['getInterceptPoints']()[_0xd9c56e(0x1a4)])(_0x5447e7[_0xd9c56e(0x3d7)],null)||_0x5447e7[_0xd9c56e(0x3d7)];return{..._0x5447e7,'mutations':_0x4287e9};});this[_0x407412(0x375)](),this[_0x407412(0x14d)](this[_0x407412(0x195)][_0x407412(0xfb)](_0x2aff63)),this[_0x407412(0x390)]();}[_0x4c1f23(0xe8)](){const _0x4e246e=_0x4c1f23;this[_0x4e246e(0x375)](),this[_0x4e246e(0x14d)](this[_0x4e246e(0x195)][_0x4e246e(0x385)]()),this[_0x4e246e(0x390)]();}[_0x4c1f23(0x17b)](_0xd51a33=!0x1){const _0x2e125c=_0x4c1f23;this['_lockTransition'](),this[_0x2e125c(0x14d)](this[_0x2e125c(0x195)][_0x2e125c(0x31f)]()),this[_0x2e125c(0x390)]();const _0x3cd207=this['_state'];_0xd51a33&&_0x3cd207 instanceof Se&&(this['_lockTransition'](),this[_0x2e125c(0x14d)](_0x3cd207[_0x2e125c(0xff)]()),this[_0x2e125c(0x390)]());}async[_0x4c1f23(0x2a0)](){return new Promise(_0x1d47c5=>{const _0x19c92c=_0x4c7d;this['session'][_0x19c92c(0x294)][_0x19c92c(0x1a7)](_0x448807(0x1))[_0x19c92c(0x280)](async _0x470a40=>{const _0x365b50=_0x19c92c;_0x1d47c5(await this['_createInitialStateImpl'](_0x470a40===G[_0x365b50(0x2e1)]));});});}[_0x4c1f23(0xf7)](){const _0x3fbadf=this['unitID'];return{'onStateChange':(_0x1ed29c,_0xf64be2)=>{const _0x2fc7c2=_0x4c7d;if(_0x1ed29c!==this[_0x2fc7c2(0x195)])throw new Error(_0x2fc7c2(0xc2)+_0x1ed29c[_0x2fc7c2(0xad)]+'\x0aAfter:\x20'+_0xf64be2['status']+_0x2fc7c2(0x34d)+this[_0x2fc7c2(0x195)]['status']);this[_0x2fc7c2(0x14d)](_0xf64be2);},'onSendChangeset':_0x312f97=>{const _0xe1e748=_0x4c7d,_0x59718c={'eventID':_0x273d8c[_0xe1e748(0x8a)],'data':{'unitID':_0x312f97[_0xe1e748(0x1f3)],'unitType':this[_0xe1e748(0x16a)],'changeset':_0x312f97,'memberID':this[_0xe1e748(0x177)][_0xe1e748(0x370)]()}};this[_0xe1e748(0x177)]['send'](_0x59718c,this['unitID']);},'onMissingChangesets':({from:_0xb13ac7,to:_0x16e8d9})=>{const _0x4fe3c3=_0x4c7d;this['_logService'][_0x4fe3c3(0x20b)]('[CollaborationEntity]',_0x4fe3c3(0x2a7)+_0xb13ac7+_0x4fe3c3(0xda)+_0x16e8d9);const _0x521960={'eventID':_0x273d8c['FETCH_MISSING'],'data':{'unitID':_0x3fbadf,'unitType':this['_type'],'from':_0xb13ac7,'to':_0x16e8d9}};this[_0x4fe3c3(0x177)][_0x4fe3c3(0x218)](_0x521960,this[_0x4fe3c3(0x1f3)]);}};}async[_0x4c1f23(0x8e)](_0x276fef){const _0x3a4707=_0x4c1f23;var _0x4c5143,_0x198010;const _0x352bd5=await this[_0x3a4707(0xd7)][_0x3a4707(0x107)](this[_0x3a4707(0x1f3)]),_0x138ec3=(_0x4c5143=_0x352bd5==null?void 0x0:_0x352bd5[_0x3a4707(0x3d7)])!=null?_0x4c5143:[],_0x1e198c=(_0x198010=_0x352bd5==null?void 0x0:_0x352bd5[_0x3a4707(0xfe)])!=null?_0x198010:null,_0x284ecc=this[_0x3a4707(0x1f3)];try{this[_0x3a4707(0x13c)](_0x1e198c,_0x138ec3);}catch(_0x2ac81f){this[_0x3a4707(0x128)][_0x3a4707(0x17a)](_0x2ac81f);}const _0x3bebbe=this[_0x3a4707(0xf7)]();if(_0x276fef){const _0x4a27b4=Hs(this['_injector'],_0x284ecc,this[_0x3a4707(0x16a)],_0x1e198c,_0x138ec3,_0x3bebbe);return _0x4a27b4 instanceof K?_0x4a27b4['_schedule']():(_0x4a27b4 instanceof X||_0x4a27b4 instanceof Z)&&_0x4a27b4['resend'](),_0x4a27b4;}return this['_injector'][_0x3a4707(0x171)](ee,_0x284ecc,this[_0x3a4707(0x16a)],_0x1e198c,_0x138ec3,_0x3bebbe);}['_replayCachedMutations'](_0x3e489d,_0x27ab26){const _0x215f6a=_0x4c1f23;var _0x336ab7,_0x17dc6c;const _0xa46bfb=this[_0x215f6a(0xa3)]['interceptor'][_0x215f6a(0x35e)](this[_0x215f6a(0xa3)][_0x215f6a(0x35d)][_0x215f6a(0x1c0)]()['COMPRESS_MUTATION_APPLY']);(_0x336ab7=_0xa46bfb((_0x3e489d==null?void 0x0:_0x3e489d[_0x215f6a(0x3d7)])||[],null))==null||_0x336ab7[_0x215f6a(0x100)](_0x724176=>this[_0x215f6a(0x1ef)][_0x215f6a(0x153)](_0x724176['id'],_0x724176[_0x215f6a(0x364)])),(_0x17dc6c=_0xa46bfb(_0x27ab26||[],null))==null||_0x17dc6c[_0x215f6a(0x100)](_0x437482=>this[_0x215f6a(0x1ef)][_0x215f6a(0x153)](_0x437482['id'],_0x437482[_0x215f6a(0x364)]));}};Je=Vt([p(0x3,_0x321449(_0x313fa0)),p(0x4,_0x321449(D)),p(0x5,_0x321449(_0x2615ec)),p(0x6,_0x321449(_0x2e153b)),p(0x7,_0x321449(_0x5d1c03)),p(0x8,_0x50688a),p(0x9,_0x265863),p(0xa,_0x5d3b7c),p(0xb,_0x52f39f),p(0xc,_0x9bfc3c(tt))],Je);let bt=class extends Je{constructor(_0x523246,_0x61fb11,_0x1b1c56,_0xed7f1f,_0x33360b,_0x477193,_0x9de878,_0x5b67be,_0x1b2a9b,_0x423f72,_0x4c5f53,_0x496f4e,_0xc8a3ba,_0xdcfc8e,_0x47ea93,_0x142ab8,_0x499502){const _0x600cca=_0x4c1f23;super(_0x523246,_0x1b1c56,_0x61fb11,_0xed7f1f,_0x33360b,_0x477193,_0x9de878,_0x5b67be,_0xc8a3ba,_0xdcfc8e,_0x47ea93,_0x142ab8,_0x499502),this['unitID']=_0x523246,this[_0x600cca(0x1d3)]=_0x61fb11,this['_docStateChangeManagerService']=_0x1b2a9b,this[_0x600cca(0xfa)]=_0x423f72,this[_0x600cca(0x2ff)]=_0x4c5f53,this[_0x600cca(0x3b7)]=_0x496f4e;}[_0x4c1f23(0xf7)](){const _0x4d1aea=_0x4c1f23,_0x2828e3=super['_createHandler']();return _0x2828e3[_0x4d1aea(0x200)]=_0x26abe4=>this[_0x4d1aea(0xfa)][_0x4d1aea(0x11a)](_0x26abe4),_0x2828e3['onTransformSelections']=_0x23d784=>this[_0x4d1aea(0x2ff)][_0x4d1aea(0x34c)](_0x23d784),_0x2828e3[_0x4d1aea(0x1e7)]=_0x1b8fd1=>this[_0x4d1aea(0x3b7)][_0x4d1aea(0x1f8)](_0x1b8fd1),_0x2828e3[_0x4d1aea(0x2e5)]=_0x3b7a4f=>this['_docTransformIMECacheService'][_0x4d1aea(0x20a)](_0x3b7a4f),_0x2828e3;}async['_init'](){const _0x573210=_0x4c1f23,_0x190760=await super[_0x573210(0x34a)]();return this[_0x573210(0x248)](this[_0x573210(0x1ef)][_0x573210(0x168)]((_0x15b9d3,_0x427fda)=>{const _0xfaccb8=_0x573210;if(_0x15b9d3[_0xfaccb8(0x1d3)]!==_0xcd477b[_0xfaccb8(0xdf)]||_0x427fda!=null&&_0x427fda[_0xfaccb8(0x1ce)]||_0x427fda!=null&&_0x427fda[_0xfaccb8(0x30b)])return;const _0x56d019=_0x15b9d3[_0xfaccb8(0x364)];if((_0x56d019==null?void 0x0:_0x56d019['unitId'])!==this[_0xfaccb8(0x1f3)])return;let _0x42fcf1=_0x15b9d3;if(_0x42fcf1['id']===_0x1b2745['id']){const _0x2668c1=_0x42fcf1[_0xfaccb8(0x364)];_0x42fcf1={'id':_0x1b2745['id'],'type':_0xcd477b[_0xfaccb8(0xdf)],'params':{'unitId':_0x2668c1[_0xfaccb8(0xe5)],'actions':_0x2668c1['actions'],'textRanges':null}};}const _0x52487b=this[_0xfaccb8(0xa3)][_0xfaccb8(0x35d)][_0xfaccb8(0x35e)](this[_0xfaccb8(0xa3)][_0xfaccb8(0x35d)]['getInterceptPoints']()[_0xfaccb8(0x192)])([_0x42fcf1],null)||[_0x42fcf1];this[_0xfaccb8(0x2dd)](_0x52487b[0x0]);})),_0x190760;}};bt=Vt([p(0x3,_0x321449(_0x313fa0)),p(0x4,_0x321449(D)),p(0x5,_0x321449(_0x2615ec)),p(0x6,_0x321449(_0x2e153b)),p(0x7,_0x321449(_0x5d1c03)),p(0x8,_0x321449(_0x3f8e0c)),p(0x9,_0x321449(Ye)),p(0xa,_0x321449(Xe)),p(0xb,_0x321449(Bt)),p(0xc,_0x50688a),p(0xd,_0x265863),p(0xe,_0x5d3b7c),p(0xf,_0x52f39f),p(0x10,_0x9bfc3c(tt))],bt);let Tt=class extends Je{constructor(_0x44549a,_0x308441,_0x15a7e8,_0x448404,_0x591b5d,_0x46d56c,_0x4d431d,_0x4e8d6c,_0xb9057c,_0xcd5185,_0x4e7fd4,_0x2b4232,_0x46c618,_0x317a01){const _0x36f5ce=_0x4c1f23;super(_0x44549a,_0x15a7e8,_0x308441,_0x448404,_0x591b5d,_0x46d56c,_0x4d431d,_0x4e8d6c,_0xcd5185,_0x4e7fd4,_0x2b4232,_0x46c618,_0x317a01),this['unitID']=_0x44549a,this[_0x36f5ce(0x1d3)]=_0x308441,this['_sheetTransformSelectionsService']=_0xb9057c;}[_0x4c1f23(0xf7)](){const _0x17b61f=_0x4c1f23,_0x547e41=super[_0x17b61f(0xf7)]();return _0x547e41[_0x17b61f(0x1c1)]=_0x100f11=>this[_0x17b61f(0xd2)]['transformSelections'](_0x100f11),_0x547e41;}async[_0x4c1f23(0x34a)](){const _0x7be811=_0x4c1f23,_0x16fab2=await super[_0x7be811(0x34a)]();return this[_0x7be811(0x248)](this[_0x7be811(0x1ef)][_0x7be811(0x168)]((_0x3b9a52,_0x46d1e8)=>{const _0x557ad9=_0x7be811;if(_0x3b9a52[_0x557ad9(0x1d3)]!==_0xcd477b['MUTATION']||_0x46d1e8!=null&&_0x46d1e8['fromCollab']||_0x46d1e8!=null&&_0x46d1e8[_0x557ad9(0x30b)])return;const _0x3367b6=_0x3b9a52[_0x557ad9(0x364)];if((_0x3367b6==null?void 0x0:_0x3367b6['unitId'])!==this[_0x557ad9(0x1f3)])return;const _0x12a4d2=_0x3b9a52,_0x258d12=this[_0x557ad9(0xa3)][_0x557ad9(0x35d)][_0x557ad9(0x35e)](this[_0x557ad9(0xa3)][_0x557ad9(0x35d)]['getInterceptPoints']()[_0x557ad9(0x192)])([_0x12a4d2],null)||[_0x12a4d2];this[_0x557ad9(0x2dd)](_0x258d12[0x0]);})),_0x16fab2;}};Tt=Vt([p(0x3,_0x321449(_0x313fa0)),p(0x4,_0x321449(D)),p(0x5,_0x321449(_0x2615ec)),p(0x6,_0x321449(_0x2e153b)),p(0x7,_0x321449(_0x5d1c03)),p(0x8,_0x321449(Ke)),p(0x9,_0x50688a),p(0xa,_0x265863),p(0xb,_0x5d3b7c),p(0xc,_0x52f39f),p(0xd,_0x9bfc3c(tt))],Tt);var Sr=Object[_0x4c1f23(0x2e9)],pr=Object[_0x4c1f23(0x133)],vr=(_0x5ea452,_0x5b8582,_0x2a8813,_0x32449f)=>{for(var _0x4fdddd=_0x32449f>0x1?void 0x0:_0x32449f?pr(_0x5b8582,_0x2a8813):_0x5b8582,_0x24107b=_0x5ea452['length']-0x1,_0x2dd6d3;_0x24107b>=0x0;_0x24107b--)(_0x2dd6d3=_0x5ea452[_0x24107b])&&(_0x4fdddd=(_0x32449f?_0x2dd6d3(_0x5b8582,_0x2a8813,_0x4fdddd):_0x2dd6d3(_0x4fdddd))||_0x4fdddd);return _0x32449f&&_0x4fdddd&&Sr(_0x5b8582,_0x2a8813,_0x4fdddd),_0x4fdddd;},lt=(_0x586ca9,_0x237b3c)=>(_0x45ecdb,_0x5393d1)=>_0x237b3c(_0x45ecdb,_0x5393d1,_0x586ca9);let Ae=class extends _0x2dacfb{constructor(_0x1294cf,_0x254ad6,_0x8a4385){const _0x445a1a=_0x4c1f23;super(),l(this,_0x445a1a(0xac),new Map()),l(this,_0x445a1a(0x29f),new _0xacaad6()),(this[_0x445a1a(0x162)]=_0x1294cf,this[_0x445a1a(0x1e1)]=_0x254ad6,this[_0x445a1a(0x310)]=_0x8a4385,this[_0x445a1a(0x34a)]());}[_0x4c1f23(0x1e4)](){const _0x475f5f=_0x4c1f23;super[_0x475f5f(0x1e4)](),this[_0x475f5f(0xac)]['forEach'](_0x152876=>_0x152876[_0x475f5f(0x1e4)]()),this[_0x475f5f(0xac)][_0x475f5f(0xa8)]();}['getCollabEntity'](_0x5171e7){const _0x3432bc=_0x4c1f23;var _0x5386b9;return(_0x5386b9=this[_0x3432bc(0xac)]['get'](_0x5171e7))!=null?_0x5386b9:null;}[_0x4c1f23(0x2b7)](_0xe0951a){const _0x1f353f=_0x4c1f23,_0x12f7d3=this[_0x1f353f(0x254)](_0xe0951a);return _0x12f7d3?_0x570d55(_0x12f7d3):this[_0x1f353f(0x29f)]['pipe'](_0x1f1135(_0x45b120=>_0x45b120[_0x1f353f(0x1f3)]===_0xe0951a));}['_init'](){const _0x49e38b=_0x4c1f23;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x4c91c9['UNIVER_SHEET'])[_0x49e38b(0x1a7)](_0x289d57(this[_0x49e38b(0x265)]),_0x160a7a(0x10))[_0x49e38b(0x280)](async _0x3c4be3=>{const _0x8fa491=_0x49e38b,_0x4925f9=_0x3c4be3['getUnitId'](),_0xdff029=await this[_0x8fa491(0x1a1)](_0x4925f9,H[_0x8fa491(0x10d)]);this[_0x8fa491(0xac)][_0x8fa491(0x329)](_0x4925f9,_0xdff029);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x4c91c9[_0x49e38b(0x11d)])[_0x49e38b(0x1a7)](_0x289d57(this[_0x49e38b(0x265)]),_0x160a7a(0x10))[_0x49e38b(0x1a7)](_0x1f1135(_0xb7414=>!_0xb7414[_0x49e38b(0x34e)]()['startsWith']('__')))[_0x49e38b(0x280)](async _0x499e8b=>{const _0x1ad7d9=_0x49e38b,_0x268e84=_0x499e8b['getUnitId'](),_0x5f3d4a=await this['_startCollaboration'](_0x268e84,H['UNIVER_DOC']);this[_0x1ad7d9(0xac)][_0x1ad7d9(0x329)](_0x268e84,_0x5f3d4a);}),_0x5de0ce(this['_univerInstanceService'][_0x49e38b(0x2ee)](_0x4c91c9[_0x49e38b(0x10d)]),this['_univerInstanceService'][_0x49e38b(0x2ee)](_0x4c91c9[_0x49e38b(0x11d)]))[_0x49e38b(0x1a7)](_0x289d57(this[_0x49e38b(0x265)]))[_0x49e38b(0x280)](_0x11b0f7=>{const _0x1ec34f=_0x49e38b,_0x1ea6f2=_0x11b0f7[_0x1ec34f(0x34e)](),_0x891344=this[_0x1ec34f(0xac)]['get'](_0x1ea6f2);_0x891344&&(_0x891344[_0x1ec34f(0x1e4)](),this[_0x1ec34f(0xac)][_0x1ec34f(0xd0)](_0x1ea6f2));});}async['_startCollaboration'](_0x4b0da8,_0x43aab9){const _0x2a5ceb=_0x4c1f23,_0x4857ea=await this['_collabSessionService']['requireSession'](_0x4b0da8),_0x5ce201=this[_0x2a5ceb(0x162)]['createInstance'](this['_getCtorByUniverType'](_0x43aab9),_0x4b0da8,_0x43aab9,_0x4857ea);return await _0x5ce201['init'](),this[_0x2a5ceb(0x29f)][_0x2a5ceb(0x23d)](_0x5ce201),_0x5ce201;}[_0x4c1f23(0x1f5)](_0x16d67f){const _0x47fa5d=_0x4c1f23;switch(_0x16d67f){case H[_0x47fa5d(0x11d)]:return bt;case H['UNIVER_SHEET']:return Tt;default:throw new Error(_0x47fa5d(0x3cb)+_0x16d67f);}}};Ae=vr([lt(0x0,_0x321449(_0x313fa0)),lt(0x1,_0x321449(ce)),lt(0x2,_0x375068)],Ae);const _s=[_0x4c1f23(0x36d),_0x4c1f23(0x3ac),_0x4c1f23(0x17e),_0x4c1f23(0x1b0),_0x4c1f23(0x3f1),_0x4c1f23(0x94)];class Ft extends _0x22db72{constructor(){const _0x3ab35c=_0x4c1f23;super(...arguments),l(this,_0x3ab35c(0x16f),new Map()),l(this,'_colorIndex',0x0);}[_0x4c1f23(0x22b)](_0x3d06e9){const _0x49e0d=_0x4c1f23;if(this[_0x49e0d(0x16f)][_0x49e0d(0x20e)](_0x3d06e9))return this[_0x49e0d(0x16f)][_0x49e0d(0x348)](_0x3d06e9);const _0x227747=_s[this[_0x49e0d(0x1b9)]];return this[_0x49e0d(0x1b9)]=(this['_colorIndex']+0x1)%_s[_0x49e0d(0x78)],this[_0x49e0d(0x16f)]['set'](_0x3d06e9,_0x227747),_0x227747;}}var Ir=Object[_0x4c1f23(0x2e9)],Er=Object[_0x4c1f23(0x133)],Cr=(_0x1a0a48,_0x415acd,_0x8c44db,_0x573633)=>{for(var _0x46f60d=_0x573633>0x1?void 0x0:_0x573633?Er(_0x415acd,_0x8c44db):_0x415acd,_0x442d83=_0x1a0a48['length']-0x1,_0x46d5fb;_0x442d83>=0x0;_0x442d83--)(_0x46d5fb=_0x1a0a48[_0x442d83])&&(_0x46f60d=(_0x573633?_0x46d5fb(_0x415acd,_0x8c44db,_0x46f60d):_0x46d5fb(_0x46f60d))||_0x46f60d);return _0x573633&&_0x46f60d&&Ir(_0x415acd,_0x8c44db,_0x46f60d),_0x46f60d;},se=(_0x18d7bc,_0x45beb5)=>(_0x9ba8e6,_0x323329)=>_0x45beb5(_0x9ba8e6,_0x323329,_0x18d7bc);const br=0x12c,Tr=0x64;let Rt=class extends _0x2dacfb{constructor(_0x2e55bd,_0x1acc8b,_0x57b672,_0x92a7af,_0x189907,_0x24908d,_0x14294e,_0xdcede9,_0x368be1){const _0x360b10=_0x4c1f23;super(),l(this,'_online',!0x1),l(this,_0x360b10(0x34a),!0x1),l(this,_0x360b10(0x1cf),new _0x2ec58d(new Map())),l(this,_0x360b10(0x37c),this['_cursorInfo$'][_0x360b10(0xfc)]()),l(this,_0x360b10(0x258),new _0x2ec58d([])),l(this,_0x360b10(0x115),this[_0x360b10(0x258)][_0x360b10(0x1a7)](_0x3504d2(br))),l(this,'_updateLocalCursor',_0x1b3960(_0x5e8466=>{const _0x205559=_0x360b10,_0x40af4c={'eventID':_0x273d8c[_0x205559(0xf2)],'data':{'unitID':this[_0x205559(0x1f3)],'memberID':this['_session'][_0x205559(0x370)](),'selection':xs(_0x5e8466)}};this[_0x205559(0x2c0)]['send'](_0x40af4c,this[_0x205559(0x1f3)]);},Tr)),(this[_0x360b10(0x1f3)]=_0x2e55bd,this[_0x360b10(0x2c0)]=_0x1acc8b,this[_0x360b10(0x162)]=_0x57b672,this[_0x360b10(0x271)]=_0x92a7af,this[_0x360b10(0x2ed)]=_0x189907,this[_0x360b10(0x3c2)]=_0x24908d,this[_0x360b10(0x2ce)]=_0x14294e,this[_0x360b10(0x310)]=_0xdcede9,this[_0x360b10(0x1ef)]=_0x368be1);}get[_0x4c1f23(0x2b8)](){const _0x1fa31a=_0x4c1f23;return this['_cursorInfo$'][_0x1fa31a(0x25c)]();}get[_0x4c1f23(0x303)](){const _0x3027a2=_0x4c1f23;return this[_0x3027a2(0x258)][_0x3027a2(0x25c)]();}['dispose'](){const _0x3b940a=_0x4c1f23;super[_0x3b940a(0x1e4)](),this['_cursorInfo$'][_0x3b940a(0x23d)](new Map()),this[_0x3b940a(0x1cf)]['complete'](),this[_0x3b940a(0x258)][_0x3b940a(0x23d)]([]),this[_0x3b940a(0x258)]['complete']();}[_0x4c1f23(0x1ba)](){const _0x2defc0=_0x4c1f23;this['_init']||(this[_0x2defc0(0x34a)]=!0x0,this['_session']['sessionStatus$'][_0x2defc0(0x1a7)](_0x289d57(this['dispose$']))[_0x2defc0(0x280)](_0x42e5e0=>{const _0x1e2a76=_0x2defc0;_0x42e5e0===G[_0x1e2a76(0x2e1)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x2defc0(0x2c0)]['event$']['pipe'](_0x289d57(this['dispose$']))[_0x2defc0(0x280)](_0x2f2882=>{const _0x515d0d=_0x2defc0,_0x4352b8=_0x2f2882['eventID'];_0x4352b8===_0x273d8c['UPDATE_CURSOR']&&this[_0x515d0d(0x106)](_0x2f2882),_0x4352b8===_0x273d8c[_0x515d0d(0x15a)]&&this[_0x515d0d(0x2d3)](_0x2f2882);}),this[_0x2defc0(0x248)](this['_commandService'][_0x2defc0(0x168)](_0x374d66=>{const _0xae98eb=_0x2defc0,_0x12cb14=_0x374d66[_0xae98eb(0x364)];_0x12cb14!=null&&this[_0xae98eb(0x25b)]&&_0x374d66['id']===_0x254038['id']&&_0x12cb14['unitId']===this[_0xae98eb(0x1f3)]&&_0x12cb14[_0xae98eb(0x32c)]===!0x1&&this[_0xae98eb(0x252)](_0x12cb14[_0xae98eb(0x138)]);})),this['_syncEditingCollabCursorService'][_0x2defc0(0x2f5)][_0x2defc0(0x1a7)](_0x289d57(this[_0x2defc0(0x265)]))[_0x2defc0(0x280)](_0x461033=>{const _0x27939b=_0x2defc0;if((_0x461033==null?void 0x0:_0x461033[_0x27939b(0x1f3)])!==this[_0x27939b(0x1f3)])return;const _0x60fdbe={'eventID':_0x273d8c['UPDATE_CURSOR'],'data':_0x461033};this[_0x27939b(0x106)](_0x60fdbe);}),this[_0x2defc0(0x248)](this[_0x2defc0(0x1ef)][_0x2defc0(0x168)](_0x7e57ce=>{const _0x2e1167=_0x2defc0;if(_0x7e57ce[_0x2e1167(0x364)]==null)return;const _0x2904c7=_0x7e57ce[_0x2e1167(0x364)];if(_0x7e57ce['id']!==_0x1b2745['id']||_0x2904c7[_0x2e1167(0xe5)]!==this[_0x2e1167(0x1f3)])return;const _0x551c8f={'id':'doc.mutation.rich-text-editing','params':_0x2904c7},_0x288a09=this[_0x2e1167(0x2b8)];for(const [_0x4056f0,_0x6e4384]of _0x288a09){const _0x5d3eed={'id':_0x2e1167(0x108),'params':{'unitId':this[_0x2e1167(0x1f3)],'actions':null,'textRanges':_0x6e4384[_0x2e1167(0x138)]}},_0x41aff6=this['_transformService'][_0x2e1167(0x3f0)](_0x551c8f,_0x5d3eed,!0x1);if(_0x3737c9(_0x41aff6))throw _0x41aff6[_0x2e1167(0x17a)];_0x288a09[_0x2e1167(0x329)](_0x4056f0,{..._0x6e4384,'ranges':_0x41aff6['m2Prime'][_0x2e1167(0x364)][_0x2e1167(0x125)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x288a09);});})));}[_0x4c1f23(0x106)](_0x50a203){const _0xe1d503=_0x4c1f23;var _0x122643,_0xb44630;const {memberID:_0x4f4e20,selection:_0x914011}=_0x50a203[_0xe1d503(0x339)],_0x1d8229=or(_0x914011),_0x1c2a93=(_0xb44630=(_0x122643=this[_0xe1d503(0x2ed)][_0xe1d503(0x39f)](this[_0xe1d503(0x1f3)],_0x4f4e20))==null?void 0x0:_0x122643[_0xe1d503(0x124)])!=null?_0xb44630:_0xe1d503(0x33a),_0x24ab8d={'color':this[_0xe1d503(0x271)][_0xe1d503(0x22b)](_0x4f4e20),'name':_0x1c2a93,'ranges':_0x1d8229},_0x7e3b=this[_0xe1d503(0x2b8)];_0x7e3b['set'](_0x4f4e20,_0x24ab8d),this[_0xe1d503(0x1cf)][_0xe1d503(0x23d)](_0x7e3b);}['_onCursorDelete'](_0x13e57e){const _0x217262=_0x4c1f23,{memberID:_0x2757a0}=_0x13e57e[_0x217262(0x339)],_0x1a7834=this[_0x217262(0x2b8)];_0x1a7834[_0x217262(0xd0)](_0x2757a0),this['_cursorInfo$'][_0x217262(0x23d)](_0x1a7834);}[_0x4c1f23(0x17b)](){const _0x587173=_0x4c1f23;var _0x269c29;if(this[_0x587173(0x25b)]=!0x0,((_0x269c29=this[_0x587173(0x310)][_0x587173(0x204)]())==null?void 0x0:_0x269c29['getUnitId']())!==this['unitID'])return;const _0x1071c6=this[_0x587173(0x162)][_0x587173(0x348)](_0x322779)[_0x587173(0x2bd)]();Array[_0x587173(0x35b)](_0x1071c6)&&_0x1071c6[_0x587173(0x78)]>0x0&&this[_0x587173(0x252)](_0x1071c6);}['_toggleOffline'](){this['_online']=!0x1;}};Rt=Cr([se(0x2,_0x321449(_0x313fa0)),se(0x3,_0x321449(Ft)),se(0x4,_0x321449(ae)),se(0x5,_0x321449(Bt)),se(0x6,_0x56767e),se(0x7,_0x375068),se(0x8,_0x265863)],Rt);var Rr=Object[_0x4c1f23(0x2e9)],Or=Object['getOwnPropertyDescriptor'],Dr=(_0xc7f8ab,_0x5a2923,_0x4f9df9,_0x4a60cd)=>{for(var _0x240c92=_0x4a60cd>0x1?void 0x0:_0x4a60cd?Or(_0x5a2923,_0x4f9df9):_0x5a2923,_0x4737ad=_0xc7f8ab['length']-0x1,_0x3f1f51;_0x4737ad>=0x0;_0x4737ad--)(_0x3f1f51=_0xc7f8ab[_0x4737ad])&&(_0x240c92=(_0x4a60cd?_0x3f1f51(_0x5a2923,_0x4f9df9,_0x240c92):_0x3f1f51(_0x240c92))||_0x240c92);return _0x4a60cd&&_0x240c92&&Rr(_0x5a2923,_0x4f9df9,_0x240c92),_0x240c92;},fe=(_0x4457e7,_0x5cd770)=>(_0x4587f4,_0x36459e)=>_0x5cd770(_0x4587f4,_0x36459e,_0x4457e7);const wr=0x12c,Pr=0x64,yr=()=>{let _0x2c9881=[],_0x2a843e=!0x1;return _0x4a4bfb=>{const _0x4f9cce=_0x4c7d;_0x2c9881[_0x4f9cce(0x27c)](_0x4a4bfb),_0x2a843e||(_0x2a843e=!0x0,setTimeout(()=>{const _0x12918e=_0x4f9cce;_0x2c9881[_0x12918e(0x100)](_0x308dd1=>_0x308dd1()),_0x2c9881=[],_0x2a843e=!0x1;}));};};let Ot=class extends _0x2dacfb{constructor(_0xc79435,_0x156143,_0xe57189,_0x51d1f8,_0x1d4141,_0x433352,_0x4fabe3,_0x5735c7){const _0x29c6bb=_0x4c1f23;super(),l(this,_0x29c6bb(0x25b),!0x1),l(this,'_init',!0x1),l(this,_0x29c6bb(0x1cf),new _0x2ec58d(new Map())),l(this,_0x29c6bb(0x37c),this['_cursorInfo$'][_0x29c6bb(0xfc)]()),l(this,_0x29c6bb(0x258),new _0x2ec58d([])),l(this,_0x29c6bb(0x115),this['_roomMembers$'][_0x29c6bb(0x1a7)](_0x3504d2(wr))),l(this,_0x29c6bb(0x252),_0x1b3960((_0x162e49,_0x2ca8fe)=>{const _0x17fd8a=_0x29c6bb,_0x40a4be={'eventID':_0x273d8c[_0x17fd8a(0xf2)],'data':{'unitID':this[_0x17fd8a(0x1f3)],'memberID':this['_session'][_0x17fd8a(0x370)](),'selection':_0x48cd80(_0x162e49,_0x2ca8fe[_0x17fd8a(0x10f)])}};this[_0x17fd8a(0x2c0)][_0x17fd8a(0x218)](_0x40a4be,this[_0x17fd8a(0x1f3)]);},Pr)),(this['unitID']=_0xc79435,this[_0x29c6bb(0x2c0)]=_0x156143,this[_0x29c6bb(0x162)]=_0xe57189,this[_0x29c6bb(0x271)]=_0x51d1f8,this[_0x29c6bb(0x2ed)]=_0x1d4141,this['_univerInstanceService']=_0x433352,this[_0x29c6bb(0x1ef)]=_0x4fabe3,this[_0x29c6bb(0x179)]=_0x5735c7);}get[_0x4c1f23(0x2b8)](){const _0x282d2a=_0x4c1f23;return this[_0x282d2a(0x1cf)][_0x282d2a(0x25c)]();}get[_0x4c1f23(0x303)](){const _0x1993f9=_0x4c1f23;return this[_0x1993f9(0x258)][_0x1993f9(0x25c)]();}[_0x4c1f23(0x1e4)](){const _0x39a057=_0x4c1f23;super[_0x39a057(0x1e4)](),this['_cursorInfo$'][_0x39a057(0x23d)](new Map()),this[_0x39a057(0x1cf)][_0x39a057(0x2c4)](),this[_0x39a057(0x258)][_0x39a057(0x23d)]([]),this[_0x39a057(0x258)][_0x39a057(0x2c4)]();}['init'](){const _0x14f19c=_0x4c1f23;this['_init']||(this['_init']=!0x0,this['_session'][_0x14f19c(0x294)][_0x14f19c(0x1a7)](_0x289d57(this[_0x14f19c(0x265)]))[_0x14f19c(0x280)](_0x41374a=>{const _0x4a40cb=_0x14f19c;_0x41374a===G[_0x4a40cb(0x2e1)]?this['_toggleOnline']():this[_0x4a40cb(0xe8)]();}),this['_session']['event$'][_0x14f19c(0x1a7)](_0x289d57(this[_0x14f19c(0x265)]))[_0x14f19c(0x280)](_0x174dd0=>{const _0x4171be=_0x14f19c,_0x33654b=_0x174dd0[_0x4171be(0x186)];_0x33654b===_0x273d8c[_0x4171be(0xf2)]&&this[_0x4171be(0x106)](_0x174dd0),_0x33654b===_0x273d8c[_0x4171be(0x15a)]&&this['_onCursorDelete'](_0x174dd0);}),this[_0x14f19c(0x1f4)](),this[_0x14f19c(0x248)](this['_commandService']['onCommandExecuted'](_0xb892cf=>{const _0x10905f=_0x14f19c;if(this[_0x10905f(0x25b)]&&_0xb892cf['id']===_0x137748['id']&&_0xb892cf[_0x10905f(0x364)][_0x10905f(0xe5)]===this[_0x10905f(0x1f3)]){const _0x4894b5=_0xb892cf[_0x10905f(0x364)];this[_0x10905f(0x252)](_0x4894b5[_0x10905f(0x213)],_0x4894b5['selections'][0x0]);}})));}[_0x4c1f23(0x106)](_0x2e6aee){const _0x5b2b0b=_0x4c1f23;var _0x7187b,_0xea928e;const {memberID:_0x381bed,selection:_0x475f1f}=_0x2e6aee[_0x5b2b0b(0x339)],{sheetName:_0x394ea4,range:_0x1c4a03}=_0x2363ba(_0x475f1f),_0x39812b={'name':(_0xea928e=(_0x7187b=this[_0x5b2b0b(0x2ed)]['getMember'](this[_0x5b2b0b(0x1f3)],_0x381bed))==null?void 0x0:_0x7187b['name'])!=null?_0xea928e:_0x5b2b0b(0x33a),'range':this[_0x5b2b0b(0x9d)](_0x394ea4,_0x1c4a03),'sheetID':_0x394ea4,'color':this[_0x5b2b0b(0x271)][_0x5b2b0b(0x22b)](_0x381bed),'selection':_0x475f1f},_0x3f742d=this[_0x5b2b0b(0x2b8)];_0x3f742d[_0x5b2b0b(0x329)](_0x381bed,_0x39812b),this[_0x5b2b0b(0x1cf)][_0x5b2b0b(0x23d)](_0x3f742d);}[_0x4c1f23(0x2d3)](_0x14dc15){const _0x4022b9=_0x4c1f23,{memberID:_0x175231}=_0x14dc15[_0x4022b9(0x339)],_0x5e922b=this[_0x4022b9(0x2b8)];_0x5e922b[_0x4022b9(0xd0)](_0x175231),this[_0x4022b9(0x1cf)]['next'](_0x5e922b);}['_getMergeRange'](_0xe207f1,_0xc7d771){const _0x56ac9e=_0x4c1f23;var _0x4c6ba8,_0x353d73;const _0x35cdf5=(_0x353d73=(_0x4c6ba8=this[_0x56ac9e(0x310)][_0x56ac9e(0x11b)](this[_0x56ac9e(0x1f3)]))==null?void 0x0:_0x4c6ba8[_0x56ac9e(0x77)](_0xe207f1))==null?void 0x0:_0x353d73['getMergeData']();return(_0x35cdf5==null?void 0x0:_0x35cdf5[_0x56ac9e(0xef)](_0xe11c55=>_0x31476b['contains'](_0xe11c55,_0xc7d771)))||_0xc7d771;}['_onRefRangeChange'](){const _0x440745=_0x4c1f23,_0x524e31=new _0x242419(),_0x2df8a0=yr(),_0xd142ff=()=>{const _0x5e6116=_0x4c7d;_0x524e31[_0x5e6116(0x1e4)]();const _0x45b39d=(_0x15be8c,_0x599ae8,_0x43839e,_0x2eaa8c)=>{const _0xe747c6=_0x5e6116;let _0x5461b3=[];switch(_0x15be8c['id']){case _0x5bd706[_0xe747c6(0x2ab)]:{_0x5461b3=_0x28d514(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x18d)]:{_0x5461b3=_0x362d52(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x317)]:{_0x5461b3=_0xb9b59c(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x28c)]:{_0x5461b3=_0x40cb3b(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x3c0)]:{_0x5461b3=_0x2d766e(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0xd1)]:{_0x5461b3=_0x4c71a9(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x9f)]:{_0x5461b3=_0x104260(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x215)]:{_0x5461b3=_0x5ebff0(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x2cb)]:{_0x5461b3=_0x37d328(_0x15be8c,_0x2eaa8c);break;}}const _0x4eaf58=_0x12db35(_0x5461b3,_0x2eaa8c),_0x125c6b=this['cursorInfo'][_0xe747c6(0x348)](_0x599ae8);if(_0x125c6b&&_0x4eaf58){const _0x1050b6={..._0x125c6b,'range':_0x4eaf58};this['cursorInfo'][_0xe747c6(0x329)](_0x599ae8,_0x1050b6),_0x2df8a0(()=>{const _0x24e5e4=_0xe747c6,_0x53ca10=this[_0x24e5e4(0x179)]['registerRefRange'](_0x4eaf58,_0x549284=>(_0x53ca10[_0x24e5e4(0x1e4)](),_0x45b39d(_0x549284,_0x599ae8,_0x43839e,_0x4eaf58)));_0x524e31['add'](_0x53ca10);});}return{'redos':[],'undos':[]};};this[_0x5e6116(0x2b8)][_0x5e6116(0x100)]((_0x1c1400,_0x53c5e5)=>{const _0x2075a2=_0x5e6116,{range:_0x535017,sheetID:_0x300d0f}=_0x1c1400,_0x142ad9=this[_0x2075a2(0x179)][_0x2075a2(0x288)](_0x535017,_0x2098e0=>(_0x142ad9[_0x2075a2(0x1e4)](),_0x45b39d(_0x2098e0,_0x53c5e5,_0x300d0f,_0x535017)));_0x524e31[_0x2075a2(0x2fb)](_0x142ad9);});};this[_0x440745(0x248)](_0x5738c2(this[_0x440745(0x1cf)]['subscribe'](()=>{_0xd142ff();})));}['_toggleOnline'](){const _0x2a226f=_0x4c1f23;var _0x8d31d7,_0x36bb1d;if(this[_0x2a226f(0x25b)]=!0x0,((_0x8d31d7=this[_0x2a226f(0x310)][_0x2a226f(0x204)]())==null?void 0x0:_0x8d31d7[_0x2a226f(0x34e)]())!==this[_0x2a226f(0x1f3)])return;const _0x31cf76=(_0x36bb1d=this['_injector']['get'](_0x152281)[_0x2a226f(0x84)]())==null?void 0x0:_0x36bb1d[0x0],_0xbb6452=this['_univerInstanceService']['getCurrentUnitForType'](_0x4c91c9[_0x2a226f(0x10d)])['getActiveSheet']();_0x31cf76&&_0xbb6452&&this[_0x2a226f(0x252)](_0xbb6452[_0x2a226f(0x1a9)](),_0x31cf76);}[_0x4c1f23(0xe8)](){const _0x10bfed=_0x4c1f23;this[_0x10bfed(0x25b)]=!0x1;}};Ot=Dr([fe(0x2,_0x321449(_0x313fa0)),fe(0x3,_0x321449(Ft)),fe(0x4,_0x321449(ae)),fe(0x5,_0x375068),fe(0x6,_0x265863),fe(0x7,_0x321449(_0x70f3a6))],Ot);var Nr=Object[_0x4c1f23(0x2e9)],Ur=Object['getOwnPropertyDescriptor'],Mr=(_0x28bb23,_0x4a41dd,_0x20c7bc,_0x56c9f2)=>{const _0x3698ae=_0x4c1f23;for(var _0x1d22d4=_0x56c9f2>0x1?void 0x0:_0x56c9f2?Ur(_0x4a41dd,_0x20c7bc):_0x4a41dd,_0x20fd80=_0x28bb23[_0x3698ae(0x78)]-0x1,_0x38fe8f;_0x20fd80>=0x0;_0x20fd80--)(_0x38fe8f=_0x28bb23[_0x20fd80])&&(_0x1d22d4=(_0x56c9f2?_0x38fe8f(_0x4a41dd,_0x20c7bc,_0x1d22d4):_0x38fe8f(_0x1d22d4))||_0x1d22d4);return _0x56c9f2&&_0x1d22d4&&Nr(_0x4a41dd,_0x20c7bc,_0x1d22d4),_0x1d22d4;},_t=(_0x32faf9,_0x11aba7)=>(_0x4cc2f5,_0x40d238)=>_0x11aba7(_0x4cc2f5,_0x40d238,_0x32faf9);let pe=class extends _0x2dacfb{constructor(_0x27af0a,_0x243979,_0x536f5d){const _0x3f3887=_0x4c1f23;super(),l(this,'_entities',new Map()),l(this,_0x3f3887(0x29f),new _0xacaad6()),(this[_0x3f3887(0x310)]=_0x27af0a,this[_0x3f3887(0x162)]=_0x243979,this['_collabSessionService']=_0x536f5d,this[_0x3f3887(0x34a)]());}['dispose'](){const _0x27b095=_0x4c1f23;super['dispose'](),this[_0x27b095(0x29f)][_0x27b095(0x2c4)](),this[_0x27b095(0xac)][_0x27b095(0x100)](_0xe4ea25=>_0xe4ea25[_0x27b095(0x1e4)]());}['getCollabCursors$'](_0x76897c){const _0x3104a6=_0x4c1f23;return this[_0x3104a6(0xac)][_0x3104a6(0x20e)](_0x76897c)?this['_entities'][_0x3104a6(0x348)](_0x76897c)[_0x3104a6(0x37c)]:this[_0x3104a6(0x29f)][_0x3104a6(0x1a7)](_0x4c7e5a(_0x13afb7=>_0x13afb7['unitID']===_0x76897c),_0x4e9858(_0xcf11f=>_0xcf11f['cursorInfo$']));}[_0x4c1f23(0x34a)](){const _0x40b43e=_0x4c1f23;this[_0x40b43e(0x310)][_0x40b43e(0x3f7)](_0x4c91c9['UNIVER_SHEET'])['pipe'](_0x289d57(this[_0x40b43e(0x265)]))['subscribe'](async _0x973300=>{const _0x48e541=_0x40b43e,_0x35c5bb=_0x973300[_0x48e541(0x34e)](),_0x70c101=await this[_0x48e541(0x358)](_0x35c5bb);this[_0x48e541(0x29f)]['next'](_0x70c101),this[_0x48e541(0xac)][_0x48e541(0x329)](_0x35c5bb,_0x70c101);}),this['_univerInstanceService'][_0x40b43e(0x3f7)](_0x4c91c9[_0x40b43e(0x11d)])[_0x40b43e(0x1a7)](_0x289d57(this[_0x40b43e(0x265)]))['pipe'](_0x4c7e5a(_0x1f4455=>!_0x1f4455[_0x40b43e(0x34e)]()[_0x40b43e(0x270)]('__')))[_0x40b43e(0x280)](async _0x3f0794=>{const _0x31f37c=_0x40b43e,_0x22ba29=_0x3f0794['getUnitId'](),_0x5375b9=await this[_0x31f37c(0x159)](_0x22ba29);this[_0x31f37c(0x29f)][_0x31f37c(0x23d)](_0x5375b9),this[_0x31f37c(0xac)][_0x31f37c(0x329)](_0x22ba29,_0x5375b9);}),_0x5de0ce(this['_univerInstanceService'][_0x40b43e(0x2ee)](_0x4c91c9[_0x40b43e(0x11d)]),this['_univerInstanceService'][_0x40b43e(0x2ee)](_0x4c91c9[_0x40b43e(0x10d)]))['pipe'](_0x289d57(this[_0x40b43e(0x265)]))[_0x40b43e(0x280)](_0x2e517e=>{const _0x210b65=_0x40b43e,_0xa7b8dc=_0x2e517e[_0x210b65(0x34e)](),_0x42511b=this[_0x210b65(0xac)][_0x210b65(0x348)](_0xa7b8dc);_0x42511b&&(_0x42511b[_0x210b65(0x1e4)](),this[_0x210b65(0xac)][_0x210b65(0xd0)](_0xa7b8dc));});}async['_startSheetCollabCursor'](_0xae3be5){const _0x4c1b5e=_0x4c1f23,_0x24372c=await this[_0x4c1b5e(0x1e1)][_0x4c1b5e(0x2ec)](_0xae3be5),_0x5cdf84=this[_0x4c1b5e(0x162)][_0x4c1b5e(0x171)](Ot,_0xae3be5,_0x24372c);return _0x5cdf84[_0x4c1b5e(0x1ba)](),_0x5cdf84;}async['_startDocCollabCursor'](_0x514661){const _0x241722=_0x4c1f23,_0x4e61a1=await this[_0x241722(0x1e1)][_0x241722(0x2ec)](_0x514661),_0x29e735=this['_injector'][_0x241722(0x171)](Rt,_0x514661,_0x4e61a1);return _0x29e735[_0x241722(0x1ba)](),_0x29e735;}};pe=Mr([_t(0x0,_0x375068),_t(0x1,_0x321449(_0x313fa0)),_t(0x2,_0x321449(ce))],pe);const Le=0x14,us=0xc8,ut=0x4,Ar=0x5;function Lr(_0x13801e,_0x3e27e){const _0x2fdc25=_0x4c1f23;let {radius:_0x36fa40,width:_0x440574,height:_0x1bda39}=_0x3e27e;_0x36fa40=_0x36fa40!=null?_0x36fa40:0x0,_0x440574=_0x440574!=null?_0x440574:0x1e,_0x1bda39=_0x1bda39!=null?_0x1bda39:0x1e;let _0x234fa2=0x0,_0x1e02ca=0x0,_0x34c555=0x0;_0x234fa2=_0x1e02ca=_0x34c555=Math['min'](_0x36fa40,_0x440574/0x2,_0x1bda39/0x2),_0x13801e['beginPath'](),_0x13801e[_0x2fdc25(0x26d)](_0x234fa2,0x0),_0x13801e[_0x2fdc25(0x1d0)](_0x440574-_0x1e02ca,0x0),_0x13801e['arc'](_0x440574-_0x1e02ca,_0x1e02ca,_0x1e02ca,Math['PI']*0x3/0x2,0x0,!0x1),_0x13801e['lineTo'](_0x440574,_0x1bda39-_0x34c555),_0x13801e['arc'](_0x440574-_0x34c555,_0x1bda39-_0x34c555,_0x34c555,0x0,Math['PI']/0x2,!0x1),_0x13801e[_0x2fdc25(0x1d0)](0x0,_0x1bda39),_0x13801e['lineTo'](0x0,_0x234fa2),_0x13801e[_0x2fdc25(0x325)](_0x234fa2,_0x234fa2,_0x234fa2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x13801e[_0x2fdc25(0x247)](),_0x3e27e['fill']&&(_0x13801e[_0x2fdc25(0x149)](),_0x13801e[_0x2fdc25(0x22c)]=_0x3e27e[_0x2fdc25(0x291)],_0x3e27e['fillRule']===_0x2fdc25(0x323)?_0x13801e[_0x2fdc25(0x291)](_0x2fdc25(0x323)):_0x13801e[_0x2fdc25(0x291)](),_0x13801e[_0x2fdc25(0x9a)]());}class st extends _0xca1f86{constructor(_0x2dc32b,_0x3d6d4c){const _0x103f80=_0x4c1f23;super(_0x2dc32b,_0x3d6d4c),l(this,_0x103f80(0x30d)),l(this,_0x103f80(0x30c)),(this[_0x103f80(0x30d)]=_0x3d6d4c==null?void 0x0:_0x3d6d4c['color'],this['text']=_0x3d6d4c==null?void 0x0:_0x3d6d4c[_0x103f80(0x30c)]);}static[_0x4c1f23(0x1f2)](_0x5748d6,_0x2dba9e){const _0x3e4bc=_0x4c1f23,{text:_0x4604f8,color:_0x1af701}=_0x2dba9e;_0x5748d6['save'](),_0x5748d6[_0x3e4bc(0xd4)]=_0x3e4bc(0x146);const _0x13c8cc=_0x5748d6[_0x3e4bc(0x23e)](_0x4604f8)[_0x3e4bc(0x321)],_0x56aeb6=Math[_0x3e4bc(0x38f)](_0x13c8cc+0x2*ut,us);Lr(_0x5748d6,{'height':Le,'radius':0x4,'width':_0x56aeb6,'fill':_0x1af701,'evented':!0x1}),_0x5748d6[_0x3e4bc(0x22c)]=_0x3e4bc(0x26f);const _0x23c730=ut,_0x347005=Le-Ar,_0x19239f=us-0x2*ut;if(_0x13c8cc>_0x19239f){let _0x150d6f='',_0x523cc3=0x0;for(const _0xf7196b of _0x4604f8){const _0x50aeee=_0x5748d6[_0x3e4bc(0x23e)](_0xf7196b)[_0x3e4bc(0x321)];if(_0x523cc3+_0x50aeee<=_0x19239f-_0x5748d6[_0x3e4bc(0x23e)](_0x3e4bc(0x3b4))['width'])_0x150d6f+=_0xf7196b,_0x523cc3+=_0x50aeee;else{_0x150d6f+='...';break;}}_0x5748d6[_0x3e4bc(0x263)](_0x150d6f,_0x23c730,_0x347005);}else _0x5748d6[_0x3e4bc(0x263)](_0x4604f8,_0x23c730,_0x347005);_0x5748d6[_0x3e4bc(0x9a)]();}[_0x4c1f23(0x33c)](_0x4f7659){const _0xe709b=_0x4c1f23;st[_0xe709b(0x1f2)](_0x4f7659,this);}}const dt=_0x4c1f23(0x229),$r=_0x4c1f23(0x7d),jr=_0x4c1f23(0x299),De=0x6,xr=1.5,ft=0x4,Hr=1.5,kr=_0x4c1f23(0x80);class ds{constructor(_0x5ee52c,_0xce05fa,_0xa7288f,_0x2300d2){const _0x553e30=_0x4c1f23;l(this,_0x553e30(0xa4),[]),l(this,_0x553e30(0x277),null),l(this,_0x553e30(0x3bf),null),l(this,'_anchorDot',null),l(this,_0x553e30(0x1a3),null),l(this,'_eventUnsubscribe',null),(this[_0x553e30(0xa7)]=_0x5ee52c,this[_0x553e30(0xcf)]=_0xce05fa,this[_0x553e30(0x394)]=_0xa7288f,this[_0x553e30(0x300)]=_0x2300d2,this['_render']());}set[_0x4c1f23(0xc0)](_0x55652a){const _0x172dce=_0x4c1f23;_0x55652a?(this[_0x172dce(0xc9)]&&this[_0x172dce(0xc9)]['hide'](),this[_0x172dce(0x3bf)]&&this['_textBubble'][_0x172dce(0x160)]()):(this[_0x172dce(0xc9)]&&this['_anchorDot'][_0x172dce(0x160)](),this['_textBubble']&&this[_0x172dce(0x3bf)][_0x172dce(0x1e5)]());}[_0x4c1f23(0x1e4)](){const _0x3fdeb9=_0x4c1f23;for(const _0x408d4c of this[_0x3fdeb9(0xa4)])_0x408d4c[_0x3fdeb9(0x1e4)]();this[_0x3fdeb9(0x3bf)]&&this['_textBubble'][_0x3fdeb9(0x1e4)](),this[_0x3fdeb9(0xc9)]&&this['_anchorDot'][_0x3fdeb9(0x1e4)](),this[_0x3fdeb9(0x277)]&&this[_0x3fdeb9(0x277)]['dispose'](),this[_0x3fdeb9(0x3a6)]&&this[_0x3fdeb9(0x3a6)]();}[_0x4c1f23(0x208)](){const _0xb6cd2f=_0x4c1f23;var _0x305379;const {_docSkeleton:_0x4dd00b,_document:_0x216acb}=this,{color:_0xc90da5,name:_0x33ecc7,ranges:_0x17507c}=this['_cursor'],_0x2ffac9=_0x216acb[_0xb6cd2f(0x1d6)](),{docsLeft:_0x2d15bf,docsTop:_0xcbc7e1}=_0x2ffac9,_0xee16c8=new _0x2b89f0(_0x2ffac9,_0x4dd00b);for(const {startOffset:_0xf51d1,endOffset:_0x3e6bfd,collapsed:_0x33cef3,isActive:_0x39e887}of _0x17507c){const _0x2b7fd5=_0x4dd00b[_0xb6cd2f(0x205)](_0xf51d1),_0x98511=_0x4dd00b['findNodePositionByCharIndex'](_0x3e6bfd);if(_0x39e887){const {contentBoxPointGroup:_0x10eea9}=_0xee16c8['getRangePointData'](_0x98511,_0x98511);if(_0x10eea9[_0xb6cd2f(0x78)]===0x0)continue;this[_0xb6cd2f(0x11e)](_0xc90da5,_0x10eea9,_0x2d15bf,_0xcbc7e1,_0x33ecc7),this[_0xb6cd2f(0x3a6)]=this[_0xb6cd2f(0x21f)]();}if(!_0x33cef3&&_0x2b7fd5&&_0x98511){if(_0x53f2b8(_0x2b7fd5,_0x98511)){const _0x10cf23=new _0x459c36(_0x2ffac9,_0x4dd00b),{pointGroup:_0x16a61d}=(_0x305379=_0x10cf23[_0xb6cd2f(0x37f)](_0x2b7fd5,_0x98511))!=null?_0x305379:{};if(_0x16a61d==null||_0x16a61d[_0xb6cd2f(0x78)]===0x0)continue;this[_0xb6cd2f(0x1b5)](_0xc90da5,_0x16a61d,_0x2d15bf,_0xcbc7e1);}else{const {contentBoxPointGroup:_0x35a7d1}=_0xee16c8[_0xb6cd2f(0x37f)](_0x2b7fd5,_0x98511);if(_0x35a7d1[_0xb6cd2f(0x78)]===0x0)continue;this[_0xb6cd2f(0x9b)](_0xc90da5,_0x35a7d1,_0x2d15bf,_0xcbc7e1);}}}}['_drawAnchor'](_0x56f301,_0x229d53,_0x5932c4,_0x1e54d9,_0x3bba9b){const _0x36c150=_0x4c1f23,_0x4f9e18=this[_0x36c150(0x2e0)](_0x229d53),{left:_0x4b1449,top:_0x1527d0,height:_0x1c9932}=_0x4f9e18,_0x21da14=this['_getScale'](),_0x43ed25=Hr/_0x21da14,_0xad405=new _0x3a075a(dt+_0x403f58[_0x36c150(0xf0)](De),{'left':_0x4b1449+_0x5932c4-_0x43ed25,'top':_0x1527d0+_0x1e54d9,'height':_0x1c9932,'width':xr,'fill':_0x56f301||_0x17a368(_0x3ca793[_0x36c150(0x7a)],0x0),'strokeWidth':_0x43ed25,'stroke':kr,'evented':!0x0});this[_0x36c150(0x277)]=_0xad405,this[_0x36c150(0xcf)][_0x36c150(0x381)](_0xad405,_0x1c10b5);const _0x2cf4dc=new _0x3a075a(dt+_0x403f58[_0x36c150(0xf0)](De),{'left':_0x4b1449+_0x5932c4-_0x43ed25,'top':_0x1527d0+_0x1e54d9-ft/0x2,'height':ft,'width':ft,'fill':_0x56f301||_0x17a368(_0x3ca793[_0x36c150(0x7a)],0x0),'strokeWidth':0x0,'stroke':_0x56f301||_0x17a368(_0x3ca793[_0x36c150(0x7a)],0x0),'evented':!0x1});this[_0x36c150(0xc9)]=_0x2cf4dc,this[_0x36c150(0xcf)]['addObject'](_0x2cf4dc,_0x1c10b5);const _0x2cfd87=new st(dt+_0x403f58[_0x36c150(0xf0)](De),{'left':_0x4b1449+_0x5932c4-_0x43ed25,'top':_0x1527d0+_0x1e54d9-Le,'text':_0x3bba9b,'color':_0x56f301});this[_0x36c150(0x3bf)]=_0x2cfd87,this[_0x36c150(0xcf)][_0x36c150(0x381)](_0x2cfd87,_0x1c10b5),this['_hover']=!0x1;}[_0x4c1f23(0x21f)](){const _0x3555dc=_0x4c1f23,_0x407e04=this[_0x3555dc(0x277)][_0x3555dc(0x234)][_0x3555dc(0x14b)](()=>{const _0x1a676a=_0x3555dc;this[_0x1a676a(0xc0)]=!0x0;}),_0x34602e=this['_anchor']['onPointerLeave$'][_0x3555dc(0x14b)](()=>{const _0x4b498a=_0x3555dc;this['_hideTimer']&&clearTimeout(this[_0x4b498a(0x1a3)]),this[_0x4b498a(0x1a3)]=setTimeout(()=>{const _0x2c9449=_0x4b498a;this[_0x2c9449(0xc0)]=!0x1;},0x7d0);});return()=>{const _0x17d79c=_0x3555dc;_0x407e04[_0x17d79c(0x15e)](),_0x34602e[_0x17d79c(0x15e)]();};}['_drawTextRange'](_0x3ede80,_0x3e3861,_0x4dab63,_0x3a625f){const _0x3634ce=_0x4c1f23,_0x4ab1c0=new _0x3fd1db(_0x3ede80)['setAlpha'](0.2)[_0x3634ce(0x2d9)](),_0x135542=new _0x28ffa0($r+_0x403f58[_0x3634ce(0xf0)](De),{'pointsGroup':_0x3e3861,'fill':_0x4ab1c0||_0x17a368(_0x3ca793[_0x3634ce(0x7a)],0.2),'left':_0x4dab63,'top':_0x3a625f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3634ce(0xa4)]['push'](_0x135542),this['_scene'][_0x3634ce(0x381)](_0x135542,_0x1c10b5);}[_0x4c1f23(0x1b5)](_0x353a18,_0x15a729,_0x4910db,_0x527840){const _0x15b1b4=_0x4c1f23,_0x3a4d26=new _0x3fd1db(_0x353a18)[_0x15b1b4(0x338)](0.2)['toRgbString'](),_0x1a869d=new _0x28ffa0(jr+_0x403f58[_0x15b1b4(0xf0)](De),{'pointsGroup':_0x15a729,'fill':_0x3a4d26||_0x17a368(_0x3ca793['black'],0.2),'left':_0x4910db,'top':_0x527840,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x15b1b4(0xa4)][_0x15b1b4(0x27c)](_0x1a869d),this['_scene'][_0x15b1b4(0x381)](_0x1a869d,_0x1c10b5);}['_getAnchorBounding'](_0x1ac26b){const _0x356f95=_0x1ac26b[0x0],_0x40ea84=_0x356f95[0x0],_0x101e81=_0x356f95[0x2],{x:_0x4780cd,y:_0x25cd97}=_0x40ea84,{x:_0x2eef57,y:_0x34c904}=_0x101e81;return{'left':_0x4780cd,'top':_0x25cd97,'width':_0x2eef57-_0x4780cd,'height':_0x34c904-_0x25cd97};}['_getScale'](){const _0x3790d7=_0x4c1f23,{scaleX:_0x26bc9d,scaleY:_0x19009f}=this['_scene'][_0x3790d7(0xcc)]();return Math['max'](_0x26bc9d,_0x19009f);}}var Br=Object[_0x4c1f23(0x2e9)],Vr=Object[_0x4c1f23(0x133)],Fr=(_0x200eb9,_0x482ba2,_0x517d4f,_0x3aed1c)=>{const _0x3443db=_0x4c1f23;for(var _0x35826e=_0x3aed1c>0x1?void 0x0:_0x3aed1c?Vr(_0x482ba2,_0x517d4f):_0x482ba2,_0x5b5bbd=_0x200eb9[_0x3443db(0x78)]-0x1,_0x3ed591;_0x5b5bbd>=0x0;_0x5b5bbd--)(_0x3ed591=_0x200eb9[_0x5b5bbd])&&(_0x35826e=(_0x3aed1c?_0x3ed591(_0x482ba2,_0x517d4f,_0x35826e):_0x3ed591(_0x35826e))||_0x35826e);return _0x3aed1c&&_0x35826e&&Br(_0x482ba2,_0x517d4f,_0x35826e),_0x35826e;},xe=(_0x5e455d,_0x14719a)=>(_0x324b1e,_0x3197fc)=>_0x14719a(_0x324b1e,_0x3197fc,_0x5e455d);let Dt=class extends _0x2dacfb{constructor(_0x24086d,_0x150979,_0x31295b,_0x14690a,_0x2909fd){const _0x498d64=_0x4c1f23;super(),l(this,_0x498d64(0x262),[]),l(this,_0x498d64(0x232),[]),(this[_0x498d64(0x308)]=_0x24086d,this[_0x498d64(0x169)]=_0x150979,this[_0x498d64(0x3a3)]=_0x31295b,this[_0x498d64(0x1ef)]=_0x14690a,this[_0x498d64(0x2c8)]=_0x2909fd,this['_init']());}[_0x4c1f23(0x34a)](){const _0x1f5fbd=_0x4c1f23,_0x2378d2=this[_0x1f5fbd(0x308)]['unitId'],_0x2bc286=this[_0x1f5fbd(0x169)];this['disposeWithMe'](_0x4fd693([this[_0x1f5fbd(0x3a3)][_0x1f5fbd(0x320)](_0x2378d2),this['_themeService']['currentTheme$']])[_0x1f5fbd(0x1a7)](_0x3d528e(([_0xd63552,_0x2362ab])=>({'skeleton':_0x2bc286[_0x1f5fbd(0x37b)](),'cursors':[..._0xd63552['values']()]['flatMap'](_0x14bf13=>({..._0x14bf13,'color':_0x2362ab[_0x14bf13['color']]}))})))[_0x1f5fbd(0x280)](_0x478152=>{if(this['_removeCollabCursors'](),_0x478152){const {skeleton:_0x29a106,cursors:_0x8a54a5}=_0x478152;this['_updateCollabCursors'](_0x29a106,_0x8a54a5);}})),this[_0x1f5fbd(0x223)](),this[_0x1f5fbd(0x3f2)]();}['_updateCollabCursors'](_0x152c8b,_0x41c1b5){const _0x3ab880=_0x4c1f23,{scene:_0x1237a2,mainComponent:_0xd3c349}=this['_context'],_0xca0a74=_0x41c1b5[_0x3ab880(0x17d)](_0x25f661=>new ds(_0x25f661,_0x1237a2,_0x152c8b,_0xd3c349));this[_0x3ab880(0x262)]=_0xca0a74,this[_0x3ab880(0x232)]=_0x41c1b5;}['_refreshCollabCursors'](){const _0x5577e2=_0x4c1f23;this[_0x5577e2(0xe6)]();const {scene:_0x2e6763,mainComponent:_0x252e73}=this[_0x5577e2(0x308)],_0xbcf349=this['_docSkeletonManagerService'][_0x5577e2(0x37b)](),_0x3faf01=this[_0x5577e2(0x232)][_0x5577e2(0x17d)](_0x4a1b1b=>new ds(_0x4a1b1b,_0x2e6763,_0xbcf349,_0x252e73));this[_0x5577e2(0x262)]=_0x3faf01;}[_0x4c1f23(0xe6)](){const _0xef0acb=_0x4c1f23;this[_0xef0acb(0x262)][_0xef0acb(0x100)](_0x3a6273=>_0x3a6273[_0xef0acb(0x1e4)]()),this[_0xef0acb(0x262)]=[];}[_0x4c1f23(0x3f2)](){const _0x59d017=_0x4c1f23,_0x1c6fba=[_0xd8bdfb['id']];this[_0x59d017(0x248)](this[_0x59d017(0x1ef)][_0x59d017(0x168)](_0x27e53d=>{const _0x4be4a6=_0x59d017;_0x1c6fba[_0x4be4a6(0x116)](_0x27e53d['id'])&&_0x27e53d[_0x4be4a6(0x364)][_0x4be4a6(0xe5)]===this['_context'][_0x4be4a6(0xe5)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0xa126e=_0x4c1f23;this['disposeWithMe'](_0x46c56e(this[_0xa126e(0x308)][_0xa126e(0x1e3)][_0xa126e(0x120)])['pipe'](_0x1f1135(_0x1edec3=>_0x1edec3[_0xa126e(0x1d3)]===_0x58f61e[_0xa126e(0x150)]),_0x4ac9c9(0x10))[_0xa126e(0x280)](()=>{const _0x10e50a=_0xa126e;this[_0x10e50a(0x25d)]();}));}};Dt=Fr([xe(0x1,_0x321449(_0x5e9e87)),xe(0x2,_0x321449(pe)),xe(0x3,_0x265863),xe(0x4,_0x321449(_0x6f1691))],Dt);const Wr=0x1,Gr=1.5;class Yr extends _0xca1f86{constructor(_0x41a825,_0x7ca72d){const _0x1232fb=_0x4c1f23;super(_0x41a825,_0x7ca72d),l(this,_0x1232fb(0x2da)),l(this,'_hovered',!0x1),l(this,'_range'),l(this,_0x1232fb(0x3e3),''),l(this,_0x1232fb(0x393),_0x1232fb(0x302)),l(this,_0x1232fb(0x2b5)),(_0x7ca72d&&this[_0x1232fb(0x1fb)](_0x7ca72d),this[_0x1232fb(0x234)][_0x1232fb(0x14b)](()=>this[_0x1232fb(0x1fb)]({'hovered':!0x0})),this[_0x1232fb(0x25a)][_0x1232fb(0x14b)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x3e24dd){const _0xd903df=_0x4c1f23;var _0x3c0e66,_0x170569,_0x4094b3,_0x29c08f,_0x42035c,_0x24f31c;this[_0xd903df(0x2da)]=(_0x3c0e66=_0x3e24dd['color'])!=null?_0x3c0e66:this[_0xd903df(0x2da)],this[_0xd903df(0x203)]=(_0x170569=_0x3e24dd[_0xd903df(0x26e)])!=null?_0x170569:this[_0xd903df(0x203)],this[_0xd903df(0x1a5)]=(_0x4094b3=_0x3e24dd['range'])!=null?_0x4094b3:this[_0xd903df(0x1a5)],this[_0xd903df(0x3e3)]=(_0x29c08f=_0x3e24dd[_0xd903df(0x124)])!=null?_0x29c08f:this['_name'],this['_labelPosition']=(_0x42035c=_0x3e24dd[_0xd903df(0x2bb)])!=null?_0x42035c:this['_labelPosition'],this[_0xd903df(0x2b5)]=(_0x24f31c=_0x3e24dd['backgroundColor'])!=null?_0x24f31c:this[_0xd903df(0x2b5)],this['transformByState']({'width':_0x3e24dd[_0xd903df(0x321)],'height':_0x3e24dd[_0xd903df(0x305)]});}[_0x4c1f23(0x3da)](_0x2308d7){const _0x54562a=_0x4c1f23,{row:_0x439db8,column:_0x3393fb}=_0x2308d7;if(_0x439db8>=this['_range'][_0x54562a(0x330)]&&_0x439db8<=this[_0x54562a(0x1a5)][_0x54562a(0x21a)]&&_0x3393fb>=this[_0x54562a(0x1a5)][_0x54562a(0x2fa)]&&_0x3393fb<=this[_0x54562a(0x1a5)][_0x54562a(0x272)]){this[_0x54562a(0x1fb)]({'hovered':!0x0});return;}this[_0x54562a(0x1fb)]({'hovered':!0x1});}[_0x4c1f23(0x3b5)](_0x52bb9e){return!0x1;}[_0x4c1f23(0x33c)](_0x5dd87b){const _0x4c2cdb=_0x4c1f23;_0x3a075a[_0x4c2cdb(0x1f2)](_0x5dd87b,{'width':this[_0x4c2cdb(0x321)],'height':this[_0x4c2cdb(0x305)],'strokeWidth':Gr,'stroke':this[_0x4c2cdb(0x2da)],'evented':!0x1,'fill':this[_0x4c2cdb(0x2b5)]}),this[_0x4c2cdb(0x203)]&&(_0x5dd87b[_0x4c2cdb(0x149)](),_0x5dd87b['transform'](0x1,0x0,0x0,0x1,this[_0x4c2cdb(0x321)],this[_0x4c2cdb(0x393)]==='bottom'?0x0:-Le),st['drawWith'](_0x5dd87b,{'text':this[_0x4c2cdb(0x3e3)],'color':this[_0x4c2cdb(0x2da)]}),_0x5dd87b[_0x4c2cdb(0x9a)]());}}var Kr=Object[_0x4c1f23(0x2e9)],Xr=Object[_0x4c1f23(0x133)],Jr=(_0xcaf088,_0x4c2798,_0x2e3e30,_0x1f66d1)=>{const _0xcd1366=_0x4c1f23;for(var _0x66997d=_0x1f66d1>0x1?void 0x0:_0x1f66d1?Xr(_0x4c2798,_0x2e3e30):_0x4c2798,_0x2faebc=_0xcaf088[_0xcd1366(0x78)]-0x1,_0x2d475c;_0x2faebc>=0x0;_0x2faebc--)(_0x2d475c=_0xcaf088[_0x2faebc])&&(_0x66997d=(_0x1f66d1?_0x2d475c(_0x4c2798,_0x2e3e30,_0x66997d):_0x2d475c(_0x66997d))||_0x66997d);return _0x1f66d1&&_0x66997d&&Kr(_0x4c2798,_0x2e3e30,_0x66997d),_0x66997d;},mt=(_0x25e0be,_0x4ad16f)=>(_0x3cea73,_0x51157c)=>_0x4ad16f(_0x3cea73,_0x51157c,_0x25e0be);const qr=0x1389;let wt=class extends _0x2dacfb{constructor(_0xb7d4a6,_0x23ee50,_0x2c50c3,_0x3a5123){const _0xd95751=_0x4c1f23;super(),l(this,_0xd95751(0x232),new Set()),l(this,_0xd95751(0x27a),null),(this[_0xd95751(0x308)]=_0xb7d4a6,this[_0xd95751(0x2b9)]=_0x23ee50,this['_collabCursorController']=_0x2c50c3,this[_0xd95751(0x2c8)]=_0x3a5123,this['_init']());}['_init'](){const _0x5c5454=_0x4c1f23;this['_sheetSkeletonManagerService'][_0x5c5454(0x2af)][_0x5c5454(0x1a7)](_0x3ae8cf(this[_0x5c5454(0x265)]),_0x59e45c(_0x526bc2=>{const _0x10007a=_0x5c5454;if(_0x526bc2){const _0x92c611=_0x526bc2[_0x10007a(0x243)];return _0x4fd693(this[_0x10007a(0x3a3)][_0x10007a(0x320)](this[_0x10007a(0x308)][_0x10007a(0xe5)]),this[_0x10007a(0x2c8)][_0x10007a(0x283)])['pipe'](_0x3d528e(([_0x4c28f6,_0x271529])=>{const _0x4fe5f2=new Map();return _0x4c28f6['forEach']((_0x366565,_0x3f7e98)=>{const _0x3d6644=_0x4c7d;if(_0x366565[_0x3d6644(0x10a)]===_0x92c611){const _0x3aa598={..._0x366565};_0x3aa598[_0x3d6644(0x30d)]=_0x271529[_0x366565[_0x3d6644(0x30d)]],_0x4fe5f2[_0x3d6644(0x329)](_0x3f7e98,_0x3aa598);}}),{'skeleton':_0x526bc2,'cursors':_0x4fe5f2};}));}return _0x570d55({'skeleton':null,'cursors':new Map()});}))[_0x5c5454(0x280)](({skeleton:_0x4ae99c,cursors:_0x263165})=>{const _0x25b2cc=_0x5c5454;this['_removeCollabCursors'](),_0x4ae99c&&this[_0x25b2cc(0xab)](_0x4ae99c,_0x263165);}),this[_0x5c5454(0x2b9)][_0x5c5454(0x2af)][_0x5c5454(0x280)](_0x521d75=>{const _0x178c7d=_0x5c5454;if(_0x521d75==null)return;const {skeleton:_0xd51fd2}=_0x521d75,{scene:_0x218b5d}=this['_context'];_0x218b5d[_0x178c7d(0x2f4)][_0x178c7d(0x14b)](_0x1b3960(_0x36c8b4=>{const _0xc244a7=_0x178c7d;var _0x672c8f,_0x293fd2;const {offsetX:_0xbb4ed2,offsetY:_0x116c64}=_0x36c8b4,{x:_0x24c9c4,y:_0x2ceb59}=_0x218b5d[_0xc244a7(0xd6)](_0x3b739f['FromArray']([_0xbb4ed2,_0x116c64])),{scaleX:_0x2831d5,scaleY:_0x3f2a4d}=_0x218b5d[_0xc244a7(0xcc)](),_0x15a40e=_0x218b5d[_0xc244a7(0x7c)](_0x14e392['VIEW_MAIN']),_0x5eb3e4=_0x218b5d['getVpScrollXYInfoByPosToVp'](_0x3b739f[_0xc244a7(0x2c1)]([_0x24c9c4,_0x2ceb59]),_0x15a40e),_0x475e62=_0xd51fd2[_0xc244a7(0x12c)](_0xbb4ed2,_0x116c64,_0x2831d5,_0x3f2a4d,_0x5eb3e4);((_0x672c8f=this['_lastPointer'])==null?void 0x0:_0x672c8f[_0xc244a7(0x97)])===_0x475e62['column']&&((_0x293fd2=this[_0xc244a7(0x27a)])==null?void 0x0:_0x293fd2[_0xc244a7(0x2ba)])===_0x475e62[_0xc244a7(0x2ba)]||this['_cursors'][_0xc244a7(0x100)](_0x408f78=>{const _0x4687f8=_0xc244a7;_0x408f78[_0x4687f8(0x3da)](_0x475e62);});},0x64));});}[_0x4c1f23(0xab)](_0x1b126f,_0xf3f0ad){const _0x5aadab=_0x4c1f23;var _0x12d946;const _0x22109a=(_0x12d946=this['_sheetSkeletonManagerService'][_0x5aadab(0x1f1)]())==null?void 0x0:_0x12d946[_0x5aadab(0x10b)];if(!_0x22109a)return;const _0x37bb38=this[_0x5aadab(0x176)]();if(!_0x37bb38)return;this[_0x5aadab(0x232)]['forEach'](_0x1bd30a=>{_0x1bd30a['makeDirty']();});const {scene:_0x56c6c2}=_0x37bb38,_0x1a213f=zr(Array['from'](_0xf3f0ad['values']()))['map'](_0x361a5d=>{const _0x16b5ca=_0x5aadab,{color:_0x3c22d0,range:_0x55a76e,name:_0x10e468,selection:_0x16bf1d,sheetID:_0x20e01c}=_0x361a5d,{startColumn:_0x15656a,startRow:_0x5ec023,endColumn:_0x575340,endRow:_0x16366a}=_0x55a76e,_0x6f75b3=_0x14b841(_0x5ec023,_0x15656a,_0x56c6c2,_0x22109a),_0x5a1026=_0x14b841(_0x16366a,_0x575340,_0x56c6c2,_0x22109a),{columnHeaderHeightAndMarginTop:_0x529303}=_0x22109a,{startX:_0x15c9a1,startY:_0x1b2911}=_0x6f75b3,{endX:_0x3c9c97,endY:_0x1ea178}=_0x5a1026,_0x3d75ee=_0x3c9c97-_0x15c9a1,_0x53200c=_0x1ea178-_0x1b2911,_0x375562={'labelPosition':_0x1b2911-_0x529303>=Le?_0x16b5ca(0x302):_0x16b5ca(0xec),'sheetID':_0x20e01c,'range':_0x55a76e,'color':_0x3c22d0,'name':_0x10e468,'selection':_0x16bf1d,'left':_0x15c9a1,'top':_0x1b2911,'width':_0x3d75ee,'height':_0x53200c,'evented':!0x1,'zIndex':qr};return new Yr(_0x10e468,_0x375562);});_0x56c6c2[_0x5aadab(0x27d)](_0x1a213f,Wr),this['_cursors']=new Set(_0x1a213f);}[_0x4c1f23(0xe6)](){const _0x325458=_0x4c1f23;var _0x351e8e;(_0x351e8e=this[_0x325458(0x232)])==null||_0x351e8e[_0x325458(0x100)](_0x393438=>_0x393438[_0x325458(0x1e4)]());}[_0x4c1f23(0x176)](){const _0x8e74c9=_0x4c1f23;return _0x24a93b(this[_0x8e74c9(0x308)]['unit'],this[_0x8e74c9(0x308)]);}};wt=Jr([mt(0x1,_0x321449(_0x3d1738)),mt(0x2,_0x321449(pe)),mt(0x3,_0x321449(_0x6f1691))],wt);function zr(_0x37503c){const _0x44054b=_0x4c1f23,_0x22ae47=new Map();return _0x37503c[_0x44054b(0x100)](_0x44e9a8=>{const _0x1de20b=_0x44054b;if(_0x22ae47['has'](_0x44e9a8[_0x1de20b(0x363)])){const _0x1bbd27=_0x22ae47[_0x1de20b(0x348)](_0x44e9a8[_0x1de20b(0x363)]);_0x1bbd27['name']+=',\x20'+_0x44e9a8[_0x1de20b(0x124)];}else _0x22ae47['set'](_0x44e9a8[_0x1de20b(0x363)],_0x44e9a8);}),Array[_0x44054b(0x126)](_0x22ae47[_0x44054b(0x3e6)]());}var N=function(){const _0x588d27=_0x4c1f23;return N=Object[_0x588d27(0x31d)]||function(_0x346e77){const _0x6bcf5f=_0x588d27;for(var _0x3c087c,_0x5ea7c9=0x1,_0xfc75e9=arguments['length'];_0x5ea7c9<_0xfc75e9;_0x5ea7c9++){_0x3c087c=arguments[_0x5ea7c9];for(var _0x2af2c5 in _0x3c087c)Object[_0x6bcf5f(0x109)][_0x6bcf5f(0x244)][_0x6bcf5f(0x3af)](_0x3c087c,_0x2af2c5)&&(_0x346e77[_0x2af2c5]=_0x3c087c[_0x2af2c5]);}return _0x346e77;},N[_0x588d27(0x8b)](this,arguments);},Zr=function(_0x8150ca,_0x2ccb5b){const _0x103820=_0x4c1f23;var _0x7c5823={};for(var _0x4ab07b in _0x8150ca)Object['prototype'][_0x103820(0x244)][_0x103820(0x3af)](_0x8150ca,_0x4ab07b)&&_0x2ccb5b[_0x103820(0x383)](_0x4ab07b)<0x0&&(_0x7c5823[_0x4ab07b]=_0x8150ca[_0x4ab07b]);if(_0x8150ca!=null&&typeof Object[_0x103820(0xb5)]==_0x103820(0x37e)){for(var _0xb2fe9c=0x0,_0x4ab07b=Object[_0x103820(0xb5)](_0x8150ca);_0xb2fe9c<_0x4ab07b['length'];_0xb2fe9c++)_0x2ccb5b[_0x103820(0x383)](_0x4ab07b[_0xb2fe9c])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x103820(0x3af)](_0x8150ca,_0x4ab07b[_0xb2fe9c])&&(_0x7c5823[_0x4ab07b[_0xb2fe9c]]=_0x8150ca[_0x4ab07b[_0xb2fe9c]]);}return _0x7c5823;},Wt=_0x2e90f2(function(_0x49ba6c,_0x3955f0){const _0x57b569=_0x4c1f23;var _0x35ad22=_0x49ba6c['icon'],_0x903635=_0x49ba6c['id'],_0x541d2c=_0x49ba6c[_0x57b569(0x1aa)],_0x82ce23=_0x49ba6c[_0x57b569(0x2e6)],_0x39b546=Zr(_0x49ba6c,['icon','id',_0x57b569(0x1aa),_0x57b569(0x2e6)]),_0x776c2a=_0x57b569(0x1de)[_0x57b569(0x13e)](_0x903635,'\x20')[_0x57b569(0x13e)](_0x541d2c||'')['trim'](),_0x581b43=_0x5ed056('_'[_0x57b569(0x13e)](to()));return ks(_0x35ad22,''['concat'](_0x903635),{'defIds':_0x35ad22[_0x57b569(0xd3)],'idSuffix':_0x581b43['current']},N({'ref':_0x3955f0,'className':_0x776c2a},_0x39b546),_0x82ce23);});function ks(_0x265f36,_0x5dd4e9,_0x5d88f3,_0x32133b,_0x566d7d){const _0x4e811c=_0x4c1f23;return _0xff9a40(_0x265f36[_0x4e811c(0x3ca)],N(N({'key':_0x5dd4e9},Qr(_0x265f36,_0x5d88f3,_0x566d7d)),_0x32133b),(eo(_0x265f36,_0x5d88f3)['children']||[])[_0x4e811c(0x17d)](function(_0x11871a,_0x271067){const _0x46e5b7=_0x4e811c;return ks(_0x11871a,''[_0x46e5b7(0x13e)](_0x5dd4e9,'-')[_0x46e5b7(0x13e)](_0x265f36[_0x46e5b7(0x3ca)],'-')['concat'](_0x271067),_0x5d88f3,void 0x0,_0x566d7d);}));}function Qr(_0x5eaa45,_0x59ba22,_0x561ad8){const _0x396ec0=_0x4c1f23;var _0x4ac996=N({},_0x5eaa45['attrs']);_0x561ad8!=null&&_0x561ad8[_0x396ec0(0x379)]&&_0x4ac996[_0x396ec0(0x291)]===_0x396ec0(0x379)&&(_0x4ac996[_0x396ec0(0x291)]=_0x561ad8['colorChannel1']);var _0xaa8075=_0x59ba22[_0x396ec0(0xd3)];return!_0xaa8075||_0xaa8075[_0x396ec0(0x78)]===0x0||(_0x5eaa45[_0x396ec0(0x3ca)]===_0x396ec0(0x2a1)&&_0x4ac996['xlink:href']&&(_0x4ac996[_0x396ec0(0x278)]=_0x4ac996[_0x396ec0(0x278)]+_0x59ba22[_0x396ec0(0xb1)]),Object[_0x396ec0(0x268)](_0x4ac996)['forEach'](function(_0x26aec5){const _0x230f1a=_0x396ec0;var _0xe364c3=_0x26aec5[0x0],_0x22db70=_0x26aec5[0x1];typeof _0x22db70==_0x230f1a(0x256)&&(_0x4ac996[_0xe364c3]=_0x22db70['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x59ba22[_0x230f1a(0xb1)],')')));})),_0x4ac996;}function eo(_0x588e9d,_0x467665){const _0x471625=_0x4c1f23;var _0x199a5d,_0x2d3085=_0x467665[_0x471625(0xd3)];return!_0x2d3085||_0x2d3085['length']===0x0?_0x588e9d:_0x588e9d[_0x471625(0x3ca)]===_0x471625(0x25f)&&(!((_0x199a5d=_0x588e9d['children'])===null||_0x199a5d===void 0x0)&&_0x199a5d[_0x471625(0x78)])?N(N({},_0x588e9d),{'children':_0x588e9d['children'][_0x471625(0x17d)](function(_0x33ca81){const _0x23dfb4=_0x471625;return typeof _0x33ca81[_0x23dfb4(0x279)]['id']==_0x23dfb4(0x256)&&_0x2d3085&&_0x2d3085[_0x23dfb4(0x383)](_0x33ca81['attrs']['id'])>-0x1?N(N({},_0x33ca81),{'attrs':N(N({},_0x33ca81[_0x23dfb4(0x279)]),{'id':_0x33ca81[_0x23dfb4(0x279)]['id']+_0x467665[_0x23dfb4(0xb1)]})}):_0x33ca81;})}):_0x588e9d;}function to(){const _0x5648bc=_0x4c1f23;return Math[_0x5648bc(0x328)]()['toString'](0x24)[_0x5648bc(0x1be)](0x2,0x8);}Wt[_0x4c1f23(0x2de)]=_0x4c1f23(0xc4);var so={'tag':_0x4c1f23(0x92),'attrs':{'fill':_0x4c1f23(0x3e2),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4c1f23(0x2d5)},'children':[{'tag':'g','attrs':{'clipPath':_0x4c1f23(0x29c)},'children':[{'tag':_0x4c1f23(0x16e),'attrs':{'stroke':_0x4c1f23(0x20c),'d':_0x4c1f23(0x211),'strokeLinecap':_0x4c1f23(0x154),'strokeLinejoin':_0x4c1f23(0x154),'strokeWidth':1.2}}]},{'tag':_0x4c1f23(0x25f),'attrs':{},'children':[{'tag':_0x4c1f23(0x3a4),'attrs':{'id':_0x4c1f23(0x104)},'children':[{'tag':_0x4c1f23(0x16e),'attrs':{'fill':_0x4c1f23(0x3f6),'d':_0x4c1f23(0x21d)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Bs=_0x2e90f2(function(_0x381628,_0x9e719a){const _0x4b4765=_0x4c1f23;return _0xff9a40(Wt,Object[_0x4b4765(0x31d)]({},_0x381628,{'id':_0x4b4765(0x2a9),'ref':_0x9e719a,'icon':so}));});Bs[_0x4c1f23(0x2de)]=_0x4c1f23(0x9e);var io={'tag':_0x4c1f23(0x92),'attrs':{'fill':_0x4c1f23(0x3e2),'viewBox':_0x4c1f23(0x24a),'width':_0x4c1f23(0x2d5),'height':_0x4c1f23(0x2d5)},'children':[{'tag':'g','attrs':{'clipPath':_0x4c1f23(0x1ec)},'children':[{'tag':_0x4c1f23(0x16e),'attrs':{'stroke':_0x4c1f23(0x20c),'d':_0x4c1f23(0x18f),'strokeLinecap':_0x4c1f23(0x154),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4c1f23(0x3a4),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x4c1f23(0x16e),'attrs':{'fill':_0x4c1f23(0x3f6),'d':_0x4c1f23(0x21d),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},Vs=_0x2e90f2(function(_0x53cc5a,_0x513ded){const _0x3ce99a=_0x4c1f23;return _0xff9a40(Wt,Object[_0x3ce99a(0x31d)]({},_0x53cc5a,{'id':'on-line-single','ref':_0x513ded,'icon':io}));});Vs[_0x4c1f23(0x2de)]=_0x4c1f23(0x7b);const no=_0x4c1f23(0x24e),ro='univer-online-status-title',oo=_0x4c1f23(0x2c3),ao='univer-online',co='univer-offline',we={'onlineStatusIcon':no,'onlineStatusTitle':ro,'onlineStatus':oo,'online':ao,'offline':co};function ho(_0x19046c){const _0x2463d5=_0x4c1f23;switch(_0x19046c){case w[_0x2463d5(0x3d4)]:return _0x2463d5(0x32b);case w['CONFLICT']:return _0x2463d5(0x22a);case w[_0x2463d5(0x1c6)]:return _0x2463d5(0x1b8);case w[_0x2463d5(0x3df)]:return _0x2463d5(0x33f);case w['PENDING']:case w[_0x2463d5(0x1ca)]:case w['AWAITING_WITH_PENDING']:return _0x2463d5(0xbd);case w['SYNCED']:return _0x2463d5(0x337);}}function lo(_0x513031){const _0x3a06d4=_0x4c1f23,{status$:_0x13590f}=_0x513031,_0x1a3465=_0x481936(_0x13590f,w[_0x3a06d4(0x3df)]),_0x339073=_0x18fbb6(_0x2e153b),_0x203039=_0x18fbb6(ce),_0xff894c=_0x1a3465!==w[_0x3a06d4(0x3d4)],_0x3a20f8=_0x339073['t'](ho(_0x1a3465)),_0x36ee32=_0x42940b(we['onlineStatus'],{[we['online']]:_0xff894c,[we[_0x3a06d4(0x209)]]:!_0xff894c}),_0x480c1c=_0xff894c?_0x1e4ea9[_0x3a06d4(0x3c7)](Vs,null):_0x1e4ea9[_0x3a06d4(0x3c7)](Bs,null),_0x311d25=_0x1d425c(()=>{const _0x1f14b0=_0x3a06d4;_0xff894c||_0x203039[_0x1f14b0(0x37a)]();},[_0xff894c,_0x203039]);function _0x17cf92(){const _0x5d81db=_0x3a06d4;return _0x1e4ea9['createElement'](_0x5d81db(0x21c),{'className':_0x36ee32,'onClick':_0x311d25},_0x1e4ea9[_0x5d81db(0x3c7)](_0x5d81db(0x21c),{'className':we[_0x5d81db(0x365)]},_0x480c1c),_0x1e4ea9[_0x5d81db(0x3c7)](_0x5d81db(0x21c),{'className':we[_0x5d81db(0x261)]},_0x3a20f8));}return _0xff894c?_0x17cf92():_0x1e4ea9[_0x3a06d4(0x3c7)](_0x465a5c,{'title':_0x339073['t'](_0x3a06d4(0x2db))},_0x17cf92());}var _o=Object[_0x4c1f23(0x2e9)],uo=Object[_0x4c1f23(0x133)],fo=(_0x18b214,_0x2d3a05,_0x4c7f88,_0x2b1f3b)=>{for(var _0x11640c=_0x2b1f3b>0x1?void 0x0:_0x2b1f3b?uo(_0x2d3a05,_0x4c7f88):_0x2d3a05,_0x1c3355=_0x18b214['length']-0x1,_0x254a57;_0x1c3355>=0x0;_0x1c3355--)(_0x254a57=_0x18b214[_0x1c3355])&&(_0x11640c=(_0x2b1f3b?_0x254a57(_0x2d3a05,_0x4c7f88,_0x11640c):_0x254a57(_0x11640c))||_0x11640c);return _0x2b1f3b&&_0x11640c&&_o(_0x2d3a05,_0x4c7f88,_0x11640c),_0x11640c;},He=(_0x375278,_0x1f1169)=>(_0x2b54f6,_0x282119)=>_0x1f1169(_0x2b54f6,_0x282119,_0x375278);let Ue=class extends _0x22db72{constructor(_0x4bbe41,_0x2e5d25,_0x105acf,_0x11ac0d){const _0x4b5c9b=_0x4c1f23;super(),l(this,_0x4b5c9b(0xc8),new _0x2ec58d(w['NOT_COLLAB'])),(this[_0x4b5c9b(0x310)]=_0x4bbe41,this['_uiPartsService']=_0x2e5d25,this['_injector']=_0x105acf,this[_0x4b5c9b(0x233)]=_0x11ac0d,this[_0x4b5c9b(0x2d7)](),this[_0x4b5c9b(0x318)]());}[_0x4c1f23(0x318)](){const _0x41ac79=_0x4c1f23;this[_0x41ac79(0x248)](this[_0x41ac79(0x310)][_0x41ac79(0x2e2)][_0x41ac79(0x1a7)](_0x4e9858(()=>{const _0x228ffb=_0x41ac79,_0x3340bb=this[_0x228ffb(0x310)]['getFocusedUnit']();return _0x3340bb?this[_0x228ffb(0x233)][_0x228ffb(0x2b7)](_0x3340bb[_0x228ffb(0x34e)]()):_0x570d55(null);}),_0x4e9858(_0x2566af=>_0x2566af?_0x2566af[_0x41ac79(0x380)]:_0x570d55(w['NOT_COLLAB'])))[_0x41ac79(0x280)](_0x403240=>{const _0x536743=_0x41ac79;this['_status$'][_0x536743(0x23d)](_0x403240);}));}[_0x4c1f23(0x2d7)](){const _0x3bd6c6=_0x4c1f23;this[_0x3bd6c6(0x248)](this[_0x3bd6c6(0x284)][_0x3bd6c6(0xfd)](_0x385326[_0x3bd6c6(0x296)],()=>_0x538d64(mo({'status$':this['_status$']['asObservable']()}),this[_0x3bd6c6(0x162)])));}};Ue=fo([He(0x0,_0x375068),He(0x1,_0x3fbc73),He(0x2,_0x321449(_0x313fa0)),He(0x3,_0x321449(Ae))],Ue);function mo(_0x30089d){const {status$:_0x25c1fd}=_0x30089d;return function(){const _0x2d2e78=_0x4c7d;return _0x1e4ea9[_0x2d2e78(0x3c7)](lo,{'status$':_0x25c1fd});};}const Fs=_0x2d62b5(_0x4c1f23(0x359));var go=Object[_0x4c1f23(0x2e9)],So=Object['getOwnPropertyDescriptor'],po=(_0x2893df,_0x54fcbd,_0x36864f,_0x1386bf)=>{const _0x1afd3f=_0x4c1f23;for(var _0x165a9f=_0x1386bf>0x1?void 0x0:_0x1386bf?So(_0x54fcbd,_0x36864f):_0x54fcbd,_0x360a21=_0x2893df[_0x1afd3f(0x78)]-0x1,_0x3cb4e8;_0x360a21>=0x0;_0x360a21--)(_0x3cb4e8=_0x2893df[_0x360a21])&&(_0x165a9f=(_0x1386bf?_0x3cb4e8(_0x54fcbd,_0x36864f,_0x165a9f):_0x3cb4e8(_0x165a9f))||_0x165a9f);return _0x1386bf&&_0x165a9f&&go(_0x54fcbd,_0x36864f,_0x165a9f),_0x165a9f;},me=(_0x31a9ee,_0x4c44b7)=>(_0x2b33df,_0x5b467d)=>_0x4c44b7(_0x2b33df,_0x5b467d,_0x31a9ee);let qe=class extends _0x2dacfb{constructor(_0x245393,_0xf1fa0e,_0x59631f,_0x50becd,_0x414d9d,_0x416972){const _0x4e06e0=_0x4c1f23;super(),this[_0x4e06e0(0x148)]=_0x245393,this['_logService']=_0xf1fa0e,this['_commandService']=_0x59631f,this[_0x4e06e0(0xd7)]=_0x50becd,this[_0x4e06e0(0x3d9)]=_0x414d9d,_0x416972?_0x416972==null||_0x416972[_0x4e06e0(0x2c7)]()[_0x4e06e0(0x90)](()=>this[_0x4e06e0(0x34a)]()):(this['_logService']['debug'](_0x4e06e0(0x336),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async['_init'](){const _0xc37d66=_0x4c1f23,_0x38654e=this['_urlService']['getParam'](_0xc37d66(0x287)),_0x5bf56e=this[_0xc37d66(0x148)][_0xc37d66(0xa0)](_0xc37d66(0x1d3));if(!_0x38654e||!_0x5bf56e){this[_0xc37d66(0x128)]['debug'](_0xc37d66(0x336),_0xc37d66(0x190));return;}switch(Number(_0x5bf56e)){case H[_0xc37d66(0x10d)]:{const _0x3c7178=await this[_0xc37d66(0x19a)](_0x38654e);this[_0xc37d66(0x2ac)](_0x3c7178);break;}case H[_0xc37d66(0x11d)]:{await this[_0xc37d66(0x334)](_0x38654e);break;}default:{this[_0xc37d66(0x128)][_0xc37d66(0x17a)]('[DataLoaderController]',_0xc37d66(0xb0));break;}}}async[_0x4c1f23(0x2ac)](_0x428a46){const _0x4b915e=_0x4c1f23;await this[_0x4b915e(0x264)](_0x428a46),_0x428a46[_0x4b915e(0x123)][_0x4b915e(0x1a7)](_0x289d57(this[_0x4b915e(0x265)]))[_0x4b915e(0x280)](_0x4f3229=>{const _0x3cbf16=_0x4b915e;_0x4f3229&&this[_0x3cbf16(0xc5)](_0x4f3229);}),this['_urlService'][_0x4b915e(0x112)][_0x4b915e(0x1a7)](_0x289d57(this['dispose$']))['subscribe'](()=>this[_0x4b915e(0x264)](_0x428a46));}[_0x4c1f23(0xc5)](_0x48d6ae,_0x19b97b=!0x1){const _0x2a9375=_0x4c1f23,_0x250f7c=this[_0x2a9375(0x148)][_0x2a9375(0xa0)](_0x2a9375(0xf1));_0x48d6ae[_0x2a9375(0x1a9)]()!==_0x250f7c&&this[_0x2a9375(0x148)][_0x2a9375(0x199)](_0x2a9375(0xf1),_0x48d6ae['getSheetId'](),_0x19b97b);}async['_updateSubUnitFromURLParams'](_0x13f531){const _0x2aad15=_0x4c1f23;var _0x106810;const _0x1ce14f=this[_0x2aad15(0x148)][_0x2aad15(0xa0)](_0x2aad15(0xf1));if(!_0x1ce14f||!_0x13f531['getSheetBySheetId'](_0x1ce14f)){const _0x88041d=_0x13f531[_0x2aad15(0x2f2)]()[0x0],_0x21c651=_0x13f531[_0x2aad15(0x77)](_0x88041d);if(!_0x21c651)return;this[_0x2aad15(0xc5)](_0x21c651,!0x0),await this[_0x2aad15(0x1ef)][_0x2aad15(0x153)](_0x2ca650['id'],{'unitId':_0x13f531['getUnitId'](),'subUnitId':_0x88041d});return;}((_0x106810=_0x13f531[_0x2aad15(0x135)]())==null?void 0x0:_0x106810['getSheetId']())!==_0x1ce14f&&await this[_0x2aad15(0x1ef)][_0x2aad15(0x153)](_0x2ca650['id'],{'unitId':_0x13f531[_0x2aad15(0x34e)](),'subUnitId':_0x1ce14f});}async[_0x4c1f23(0x19a)](_0x4d5e5d){const _0x500621=_0x4c1f23;let _0x451762=0x0;const _0xd60fda=await this[_0x500621(0xd7)]['loadOfflineData'](_0x4d5e5d);return _0xd60fda&&(_0xd60fda['awaitingChangeset']||_0xd60fda[_0x500621(0x3d7)]['length']!==0x0)&&(_0x451762=_0xd60fda['rev']),_0x451762===0x0&&this[_0x500621(0x128)][_0x500621(0x20b)](_0x500621(0x336),_0x500621(0x382)),this[_0x500621(0x3d9)][_0x500621(0x201)](_0x4d5e5d,_0x451762);}async['_loadDoc'](_0xafbb0f){const _0x56578c=_0x4c1f23;let _0xec9079=0x0;const _0x3dce5a=await this[_0x56578c(0xd7)][_0x56578c(0x107)](_0xafbb0f);return _0x3dce5a&&(_0x3dce5a['awaitingChangeset']||_0x3dce5a[_0x56578c(0x3d7)][_0x56578c(0x78)]!==0x0)&&(_0xec9079=_0x3dce5a[_0x56578c(0x269)]),_0xec9079===0x0&&this['_logService']['debug'](_0x56578c(0x336),_0x56578c(0x382)),this[_0x56578c(0x3d9)][_0x56578c(0x293)](_0xafbb0f,_0xec9079);}};qe=po([me(0x0,Fs),me(0x1,_0x50688a),me(0x2,_0x265863),me(0x3,_0x321449(D)),me(0x4,_0x321449(_0x38d13f)),me(0x5,_0x9bfc3c(_0x51139b))],qe);var vo=Object[_0x4c1f23(0x2e9)],Io=Object[_0x4c1f23(0x133)],Eo=(_0x5a47d9,_0x5ca22b,_0x29d2b9,_0x103ef9)=>{for(var _0x2a9150=_0x103ef9>0x1?void 0x0:_0x103ef9?Io(_0x5ca22b,_0x29d2b9):_0x5ca22b,_0x4846d1=_0x5a47d9['length']-0x1,_0x4e7bfb;_0x4846d1>=0x0;_0x4846d1--)(_0x4e7bfb=_0x5a47d9[_0x4846d1])&&(_0x2a9150=(_0x103ef9?_0x4e7bfb(_0x5ca22b,_0x29d2b9,_0x2a9150):_0x4e7bfb(_0x2a9150))||_0x2a9150);return _0x103ef9&&_0x2a9150&&vo(_0x5ca22b,_0x29d2b9,_0x2a9150),_0x2a9150;},fs=(_0x56c699,_0x5e42eb)=>(_0x2e1544,_0x118a2d)=>_0x5e42eb(_0x2e1544,_0x118a2d,_0x56c699);const Co=_0x4c1f23(0x217),bo=_0x4c1f23(0x371);let ze=class extends _0x22db72{constructor(_0x320960,_0x2a81ce){const _0x495c39=_0x4c1f23;super(),this[_0x495c39(0x310)]=_0x320960,this['_configService']=_0x2a81ce,this['_init']();}[_0x4c1f23(0x34a)](){const _0x2f30f1=_0x4c1f23;this[_0x2f30f1(0x248)](this[_0x2f30f1(0x310)][_0x2f30f1(0x2e2)][_0x2f30f1(0x280)](()=>{const _0x3f44bd=_0x2f30f1;var _0x5c28f7;const _0x16a849=this[_0x3f44bd(0x310)]['getFocusedUnit']();let _0x3916cf=(_0x5c28f7=this[_0x3f44bd(0x132)][_0x3f44bd(0x111)](Co))!=null?_0x5c28f7:bo;_0x16a849 instanceof _0xa32c6e&&(_0x3916cf=_0x16a849[_0x3f44bd(0x124)]),document['title']=_0x3916cf;}));}};ze=Eo([fs(0x0,_0x375068),fs(0x1,_0x4d21d1)],ze);var To=Object['defineProperty'],Ro=Object[_0x4c1f23(0x133)],Oo=(_0x52f303,_0x413bf0,_0x3cccf0,_0x56fae7)=>{const _0x38b666=_0x4c1f23;for(var _0x1192ba=_0x56fae7>0x1?void 0x0:_0x56fae7?Ro(_0x413bf0,_0x3cccf0):_0x413bf0,_0x7066e7=_0x52f303[_0x38b666(0x78)]-0x1,_0x1ecae3;_0x7066e7>=0x0;_0x7066e7--)(_0x1ecae3=_0x52f303[_0x7066e7])&&(_0x1192ba=(_0x56fae7?_0x1ecae3(_0x413bf0,_0x3cccf0,_0x1192ba):_0x1ecae3(_0x1192ba))||_0x1192ba);return _0x56fae7&&_0x1192ba&&To(_0x413bf0,_0x3cccf0,_0x1192ba),_0x1192ba;},gt=(_0x30654f,_0x57ff5d)=>(_0x1a1306,_0x5b1f5e)=>_0x57ff5d(_0x1a1306,_0x5b1f5e,_0x30654f);let Ze=class{constructor(_0x579e08,_0x4ddcbb,_0x1f92ea){const _0x93c9c2=_0x4c1f23;this[_0x93c9c2(0x132)]=_0x579e08,this[_0x93c9c2(0x19f)]=_0x4ddcbb,this[_0x93c9c2(0x3ee)]=_0x1f92ea,this[_0x93c9c2(0x1ba)]();}['init'](){const _0x476d56=_0x4c1f23;this[_0x476d56(0x19f)][_0x476d56(0xa1)]({'priority':0x1,'interceptor':(_0x125874,_0x59b099)=>_0x59b099(_0x125874)[_0x476d56(0x1a7)](_0x42e091(async _0x2a1acd=>{const _0x27cd71=_0x476d56,_0x5bd926=_0x2a1acd;if(_0x5bd926['status']===0x191&&window[_0x27cd71(0x22f)](this[_0x27cd71(0x3ee)]['t'](_0x27cd71(0x2ae)))){const _0x135dcf=window['encodeURIComponent'](window[_0x27cd71(0x3b2)][_0x27cd71(0x165)]);window[_0x27cd71(0x3b2)][_0x27cd71(0x165)]=this[_0x27cd71(0x12d)]()+_0x27cd71(0x3d0)+_0x135dcf;}return _0x5bd926;}))});}[_0x4c1f23(0x12d)](){const _0x505f63=_0x4c1f23;var _0x1ca43f,_0x4679dd;const _0x3b3544=this[_0x505f63(0x132)]['getConfig'](wn),_0x1858f2=this['_configService'][_0x505f63(0x111)](L);return(_0x4679dd=(_0x1ca43f=_0x1858f2==null?void 0x0:_0x1858f2[_0x505f63(0x14a)])!=null?_0x1ca43f:_0x3b3544)!=null?_0x4679dd:Pn;}};Ze=Oo([gt(0x0,_0x4d21d1),gt(0x1,_0x321449(_0x1fbfa2)),gt(0x2,_0x321449(_0x2e153b))],Ze);var Do=Object[_0x4c1f23(0x2e9)],wo=Object[_0x4c1f23(0x133)],Po=(_0x5a4a36,_0x1750b5,_0x891e87,_0x5a2079)=>{const _0x1f0489=_0x4c1f23;for(var _0x1ea626=_0x5a2079>0x1?void 0x0:_0x5a2079?wo(_0x1750b5,_0x891e87):_0x1750b5,_0x3fb4a3=_0x5a4a36[_0x1f0489(0x78)]-0x1,_0x22d94d;_0x3fb4a3>=0x0;_0x3fb4a3--)(_0x22d94d=_0x5a4a36[_0x3fb4a3])&&(_0x1ea626=(_0x5a2079?_0x22d94d(_0x1750b5,_0x891e87,_0x1ea626):_0x22d94d(_0x1ea626))||_0x1ea626);return _0x5a2079&&_0x1ea626&&Do(_0x1750b5,_0x891e87,_0x1ea626),_0x1ea626;},ms=(_0x5fc870,_0x592e9c)=>(_0x33fa57,_0xd46c5c)=>_0x592e9c(_0x33fa57,_0xd46c5c,_0x5fc870);const yo=_0x4c1f23(0x2ca),No=_0x4c1f23(0x276);let Pt=class extends _0x22db72{constructor(_0x369fd9,_0x58d2e0){const _0x102c0b=_0x4c1f23;super(),this[_0x102c0b(0x8c)]=_0x369fd9,this['_configService']=_0x58d2e0,this[_0x102c0b(0x1fd)]();}[_0x4c1f23(0x1fd)](){const _0x39624d=_0x4c1f23,_0x18ef28=this;this['disposeWithMe'](this['_HTTPService'][_0x39624d(0xa1)]({'priority':0x3e7,'interceptor':_0x34ac01({'isMatch'(_0x4b634d){const _0x2cbf7b=_0x39624d;var _0x3c599e;if(_0x4b634d[_0x2cbf7b(0xbb)]===_0x2cbf7b(0x353)&&((_0x3c599e=_0x4b634d[_0x2cbf7b(0x3b8)])!=null&&_0x3c599e[_0x2cbf7b(0x1d2)])){const {objectID:_0x382f30,objectType:_0x5ee163}=_0x4b634d[_0x2cbf7b(0x3b8)][_0x2cbf7b(0x1d2)]||{};if(!_0x382f30||_0x5ee163===void 0x0)return!0x1;const _0x4e0730=_0x18ef28[_0x2cbf7b(0x3c5)]()+'/'+_0x5ee163+_0x2cbf7b(0x198)+_0x382f30+_0x2cbf7b(0x38c);if(_0x4b634d[_0x2cbf7b(0x121)]===_0x4e0730)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x699429){const _0xde98c=_0x39624d;var _0x32c6fc;return(_0x32c6fc=_0x699429[_0xde98c(0x3b8)])==null?void 0x0:_0x32c6fc[_0xde98c(0x1d2)];},'mergeParamsToRequest'(_0x3bd169,_0xaa5dd){const _0x22a847=_0x39624d,_0x2050b4=_0x18ef28['_getAPIPrefixPath']()+_0x22a847(0xb7),_0x3aa58a=_0x3bd169[_0x22a847(0x3cd)]((_0x34f3d5,_0x302c5f)=>{const _0x365627=_0x22a847,{unitID:_0x37a769,objectID:_0x1577ae,objectType:_0x39cc37,actions:_0x1ee6c1}=_0x302c5f;return _0x34f3d5[_0x37a769]||(_0x34f3d5[_0x37a769]={}),_0x34f3d5[_0x37a769][_0x1577ae]||(_0x34f3d5[_0x37a769][_0x1577ae]={'objectID':_0x1577ae,'objectType':_0x39cc37,'actions':[]}),_0x34f3d5[_0x37a769][_0x1577ae][_0x365627(0x33d)]['push'](..._0x1ee6c1),_0x34f3d5;},{}),_0x4765de=[];for(const _0x130edf in _0x3aa58a)for(const _0x3e2586 in _0x3aa58a[_0x130edf]){const {actions:_0x5e436d,objectType:_0x568f5b}=_0x3aa58a[_0x130edf][_0x3e2586],_0x34c6d1=[...new Set(_0x5e436d)];_0x4765de[_0x22a847(0x27c)]({'unitID':_0x130edf,'objectID':_0x3e2586,'objectType':_0x568f5b,'actions':_0x34c6d1});}return new _0x4a19a1(_0x22a847(0x353),_0x2050b4,{'headers':_0xaa5dd[_0x22a847(0x1b1)],'withCredentials':_0xaa5dd[_0x22a847(0x140)],'responseType':_0xaa5dd[_0x22a847(0x83)],'body':{'requests':_0x4765de}});}},{'distributeResult'(_0x56a15c,_0x47b889){const _0x35bd2a=_0x39624d,{objectActions:_0x2957f5}=_0x56a15c;return _0x47b889[_0x35bd2a(0x17d)](_0x48a711=>{const _0x4b7a68=_0x35bd2a,{unitID:_0x471f1a,objectID:_0x28013b,actions:_0x18c9db}=_0x48a711,_0x7676aa=_0x2957f5['find'](_0x8bd79e=>_0x8bd79e[_0x4b7a68(0x1f3)]===_0x471f1a&&_0x8bd79e[_0x4b7a68(0xa2)]===_0x28013b),_0x267060=_0x18c9db[_0x4b7a68(0x17d)](_0x2d229a=>_0x7676aa==null?void 0x0:_0x7676aa[_0x4b7a68(0x33d)]['find'](_0x3e2eae=>_0x3e2eae[_0x4b7a68(0x2fc)]===_0x2d229a))['filter'](_0x44f481=>!!_0x44f481);return{'config':_0x48a711,'result':{'actions':_0x267060,'error':_0x56a15c[_0x4b7a68(0x17a)]}};});}})}));}[_0x4c1f23(0x3c5)](){const _0x2ce926=_0x4c1f23;var _0x38bc7e,_0x2a4e71;const _0x1f27ba=this[_0x2ce926(0x132)]['getConfig'](yo),_0x212f4f=this[_0x2ce926(0x132)][_0x2ce926(0x111)](L);return(_0x2a4e71=(_0x38bc7e=_0x212f4f==null?void 0x0:_0x212f4f[_0x2ce926(0x225)])!=null?_0x38bc7e:_0x1f27ba)!=null?_0x2a4e71:No;}async[_0x4c1f23(0x39a)](_0x44c123){const _0x41de4c=_0x4c1f23,_0x2ea342=this['_getAPIPrefixPath']()+'/'+_0x44c123[_0x41de4c(0x2ef)]+_0x41de4c(0x1d9);return(await this[_0x41de4c(0x8c)][_0x41de4c(0x341)](_0x2ea342,{'body':_0x44c123}))['body']['objectID']||'';}async[_0x4c1f23(0x2b1)](_0x913f15){const _0x6afd4f=_0x4c1f23,_0x262549=this['_getAPIPrefixPath']()+_0x6afd4f(0x118);return(await this[_0x6afd4f(0x8c)]['post'](_0x262549,{'body':_0x913f15}))[_0x6afd4f(0x1d2)]['objects'];}async[_0x4c1f23(0x36e)](_0x898dd8){const _0xef5e64=_0x4c1f23,_0x2b93d3=this['_getAPIPrefixPath']()+'/'+_0x898dd8[_0xef5e64(0x2ef)]+'/object/'+_0x898dd8[_0xef5e64(0xa2)];await this['_HTTPService']['put'](_0x2b93d3,{'body':_0x898dd8});}async[_0x4c1f23(0xeb)](_0x52db98){const _0x235acc=_0x4c1f23,_0x31c40f=this['_getAPIPrefixPath']()+'/'+_0x52db98[_0x235acc(0x2ef)]+_0x235acc(0x198)+_0x52db98[_0x235acc(0xa2)]+_0x235acc(0x38c);return(await this[_0x235acc(0x8c)]['post'](_0x31c40f,{'body':_0x52db98}))[_0x235acc(0x1d2)]['actions'];}async['batchAllowed'](_0x3f7c59){const _0x138d18=_0x4c1f23,_0x3b5890=this[_0x138d18(0x3c5)]()+_0x138d18(0xb7);return(await this[_0x138d18(0x8c)][_0x138d18(0x341)](_0x3b5890,{'body':{'requests':_0x3f7c59}}))[_0x138d18(0x1d2)]['objectActions'];}async['listRoles'](_0x15c0c2){const _0x50813c=_0x4c1f23,_0x5cbc44=this[_0x50813c(0x3c5)]()+'/'+_0x15c0c2[_0x50813c(0x2ef)]+_0x50813c(0x13f),_0x4ecc26=await this[_0x50813c(0x8c)][_0x50813c(0x341)](_0x5cbc44,{'body':_0x15c0c2});return{'roles':_0x4ecc26[_0x50813c(0x1d2)][_0x50813c(0x18a)],'actions':_0x4ecc26[_0x50813c(0x1d2)]['actions']};}async['deleteCollaborator'](_0x58c28a){const _0x23a693=_0x4c1f23,_0x92f122=this[_0x23a693(0x3c5)]()+_0x23a693(0x180);await this[_0x23a693(0x8c)][_0x23a693(0xd0)](_0x92f122,{'params':{'collaboratorID':_0x58c28a['collaboratorID'],'objectID':_0x58c28a['objectID'],'unitID':_0x58c28a[_0x23a693(0x1f3)]}});}async[_0x4c1f23(0x3d3)](_0x355a31){const _0x13972e=_0x4c1f23,_0x597721=this[_0x13972e(0x3c5)]()+'/collaborator';await this[_0x13972e(0x8c)][_0x13972e(0x32d)](_0x597721,{'body':_0x355a31});}async[_0x4c1f23(0x1ea)](_0x197efa){const _0x99f4db=_0x4c1f23,_0xfa1a55=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x99f4db(0x8c)]['post'](_0xfa1a55,{'body':_0x197efa});}async[_0x4c1f23(0x2fe)](_0x5951da){const _0x1fc495=_0x4c1f23,_0x378438=this[_0x1fc495(0x3c5)]()+'/collaborator';return(await this['_HTTPService'][_0x1fc495(0x348)](_0x378438,{'params':{'objectID':_0x5951da[_0x1fc495(0xa2)],'unitID':_0x5951da[_0x1fc495(0x1f3)]}}))[_0x1fc495(0x1d2)][_0x1fc495(0x289)];}async['putCollaborators'](_0x917012){const _0x2829cb=_0x4c1f23,_0x1fbe1f=this[_0x2829cb(0x3c5)]()+_0x2829cb(0x180);await this[_0x2829cb(0x8c)][_0x2829cb(0x23a)](_0x1fbe1f,{'body':_0x917012});}};Pt=Po([ms(0x0,_0x321449(_0x1fbfa2)),ms(0x1,_0x321449(_0x4d21d1))],Pt);var Uo=Object[_0x4c1f23(0x2e9)],Mo=Object[_0x4c1f23(0x133)],Ao=(_0x4c57d3,_0x1aae63,_0x5b9bd6,_0x486e15)=>{const _0x4ad00f=_0x4c1f23;for(var _0x5538a4=_0x486e15>0x1?void 0x0:_0x486e15?Mo(_0x1aae63,_0x5b9bd6):_0x1aae63,_0x352966=_0x4c57d3[_0x4ad00f(0x78)]-0x1,_0xbe6a52;_0x352966>=0x0;_0x352966--)(_0xbe6a52=_0x4c57d3[_0x352966])&&(_0x5538a4=(_0x486e15?_0xbe6a52(_0x1aae63,_0x5b9bd6,_0x5538a4):_0xbe6a52(_0x5538a4))||_0x5538a4);return _0x486e15&&_0x5538a4&&Uo(_0x1aae63,_0x5b9bd6,_0x5538a4),_0x5538a4;},Lo=(_0x46b8c9,_0x492286)=>(_0x4e9739,_0x10c7dc)=>_0x492286(_0x4e9739,_0x10c7dc,_0x46b8c9);let Qe=class{constructor(_0xab3630){const _0x3e05a1=_0x4c1f23;this[_0x3e05a1(0x19f)]=_0xab3630,this[_0x3e05a1(0x7e)]();}['_initRequestHeader'](){const _0x1ce8db=_0x4c1f23;this[_0x1ce8db(0x19f)]['registerHTTPInterceptor']({'interceptor':(_0x48eefd,_0x4ce275)=>{const _0xafd927=_0x1ce8db,_0x4cf9a9=_0x48eefd[_0xafd927(0x1b1)],_0x22fd3a=_0x575ac8();return _0x22fd3a&&_0x4cf9a9[_0xafd927(0x329)](_0xafd927(0x249),_0x22fd3a),_0x4ce275(_0x48eefd);}});}};Qe=Ao([Lo(0x0,_0x321449(_0x1fbfa2))],Qe);var $o=Object['defineProperty'],jo=Object['getOwnPropertyDescriptor'],xo=(_0x1fe0e0,_0xeeba48,_0x5e2167,_0x21cc00)=>{const _0x54995b=_0x4c1f23;for(var _0x226d7f=_0x21cc00>0x1?void 0x0:_0x21cc00?jo(_0xeeba48,_0x5e2167):_0xeeba48,_0x576b24=_0x1fe0e0[_0x54995b(0x78)]-0x1,_0x1c5933;_0x576b24>=0x0;_0x576b24--)(_0x1c5933=_0x1fe0e0[_0x576b24])&&(_0x226d7f=(_0x21cc00?_0x1c5933(_0xeeba48,_0x5e2167,_0x226d7f):_0x1c5933(_0x226d7f))||_0x226d7f);return _0x21cc00&&_0x226d7f&&$o(_0xeeba48,_0x5e2167,_0x226d7f),_0x226d7f;},St=(_0x52f609,_0x4397a8)=>(_0x5e77a8,_0x4dae57)=>_0x4397a8(_0x5e77a8,_0x4dae57,_0x52f609);const Ho=['image/png',_0x4c1f23(0xca),_0x4c1f23(0x1d4),_0x4c1f23(0x372),_0x4c1f23(0xa6)],ko=0x5*0x400*0x400,Bo=_0x4c1f23(0x3d8),Vo=_0x4c1f23(0x2a3),Fo=_0x4c1f23(0x22e),Wo='/universer-api/file/{fileID}/sign-url';let yt=class{constructor(_0x11f57b,_0x45d1b9,_0x2476db){const _0x58a533=_0x4c1f23;l(this,_0x58a533(0x376),0x0),l(this,_0x58a533(0x1f9),new _0xacaad6()),l(this,_0x58a533(0x26c),this[_0x58a533(0x1f9)]),l(this,_0x58a533(0x21b),new Map()),(this[_0x58a533(0x19f)]=_0x11f57b,this[_0x58a533(0x132)]=_0x45d1b9,this[_0x58a533(0x310)]=_0x2476db);}['setWaitCount'](_0x319468){const _0x36025d=_0x4c1f23;this['_waitCount']=_0x319468,this[_0x36025d(0x1f9)][_0x36025d(0x23d)](_0x319468);}[_0x4c1f23(0x28e)](_0x11fc23,_0x5a3c10){const _0x1d0a54=_0x4c1f23;if(_0x5a3c10===_0x1946dd[_0x1d0a54(0x10e)]){const _0x211e14=new Image();return _0x211e14[_0x1d0a54(0x181)]=_0x11fc23,_0x211e14;}return this['_imageSourceCache'][_0x1d0a54(0x348)](_0x11fc23);}[_0x4c1f23(0x246)](_0x1d3f27,_0x1022ae,_0x121c12){const _0x2cacfc=_0x4c1f23;_0x1022ae===_0x1946dd[_0x2cacfc(0x10e)]||_0x121c12==null||this[_0x2cacfc(0x21b)][_0x2cacfc(0x329)](_0x1d3f27,_0x121c12);}async['getImage'](_0x388338){const _0x57f0c0=_0x4c1f23;try{const _0xd04b4d=this[_0x57f0c0(0x196)](this[_0x57f0c0(0x16b)](),''+_0x388338),_0x2fbdd9=(await this[_0x57f0c0(0x19f)]['get'](_0xd04b4d))['body'];if(_0x2fbdd9['error']&&_0x2fbdd9['error'][_0x57f0c0(0x397)]===Ms['OK']){const _0x43331c=new URL(_0x2fbdd9[_0x57f0c0(0x121)],this[_0x57f0c0(0x1b3)]())['toString']();return Promise[_0x57f0c0(0x3be)](_0x43331c);}return Promise[_0x57f0c0(0x15f)](_0x2fbdd9[_0x57f0c0(0x17a)]);}catch(_0x4b8547){return Promise[_0x57f0c0(0x15f)](_0x4b8547);}}async[_0x4c1f23(0xe7)](_0x274d14){const _0x41d423=_0x4c1f23;let _0x476683='';if(!Ho[_0x41d423(0x116)](_0x274d14['type']))return this[_0x41d423(0x2f9)](),Promise[_0x41d423(0x15f)](new Error(_0x1f89ce['ERROR_IMAGE_TYPE']));if(_0x274d14['size']>ko)return this[_0x41d423(0x2f9)](),Promise[_0x41d423(0x15f)](new Error(_0x1f89ce['ERROR_EXCEED_SIZE']));try{const _0x28e239=new FormData();_0x28e239[_0x41d423(0x344)](_0x41d423(0x207),_0x274d14);const _0x5d2b28=this[_0x41d423(0x310)]['getFocusedUnit'](),_0x6f69fd=_0x5d2b28==null?void 0x0:_0x5d2b28[_0x41d423(0x34e)]();if(!_0x6f69fd)throw new Error(_0x41d423(0x95));const _0x17bcde=this[_0x41d423(0x79)]()+'?size='+_0x274d14[_0x41d423(0x151)]['toString']()+_0x41d423(0x235)+As[_0x41d423(0x304)]+'&assign='+encodeURIComponent(_0x6f69fd),_0x4a3e32=await(await fetch(_0x17bcde,{'method':_0x41d423(0x353),'body':_0x28e239}))[_0x41d423(0x3ba)]();if(typeof _0x4a3e32[_0x41d423(0x3b0)]!=_0x41d423(0x256))return this[_0x41d423(0x2f9)](),Promise['reject'](new Error(_0x1f89ce['ERROR_IMAGE']));_0x476683=_0x4a3e32[_0x41d423(0x3b0)];}catch{return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x1f89ce['ERROR_IMAGE']));}return new Promise((_0x536f7c,_0x2d6d34)=>{const _0xc2ee4=_0x41d423,_0x2cb691=new FileReader();_0x2cb691[_0xc2ee4(0x255)](_0x274d14),_0x2cb691['onload']=_0x272a76=>{const _0xc51e30=_0xc2ee4;var _0x39ac4f;const _0x2783ac=(_0x39ac4f=_0x272a76[_0xc51e30(0x2b2)])==null?void 0x0:_0x39ac4f[_0xc51e30(0x2c5)];if(_0x2783ac==null){this[_0xc51e30(0x2f9)](),_0x2d6d34(new Error(_0x1f89ce[_0xc51e30(0x2f1)]));return;}const _0x48903f=_0x403f58[_0xc51e30(0xf0)](0x6);_0x536f7c({'imageId':_0x48903f,'imageSourceType':_0x1946dd[_0xc51e30(0x26a)],'source':_0x476683,'base64Cache':_0x2783ac,'status':_0x1f89ce[_0xc51e30(0x33e)]}),this[_0xc51e30(0x2f9)]();};});}['_getUploadFileURL'](){const _0x19af33=_0x4c1f23;var _0xfb99d4,_0x13db58;const _0x311580=this[_0x19af33(0x132)][_0x19af33(0x111)](Bo),_0x53ebfb=this[_0x19af33(0x132)][_0x19af33(0x111)](L);return(_0x13db58=(_0xfb99d4=_0x53ebfb==null?void 0x0:_0x53ebfb[_0x19af33(0x241)])!=null?_0xfb99d4:_0x311580)!=null?_0x13db58:Vo;}['_getSignURL'](){const _0x56be6c=_0x4c1f23;var _0x4fabe8,_0x5470e7;const _0x3bab7e=this[_0x56be6c(0x132)]['getConfig'](Fo),_0x1fe6a7=this[_0x56be6c(0x132)][_0x56be6c(0x111)](L);return(_0x5470e7=(_0x4fabe8=_0x1fe6a7==null?void 0x0:_0x1fe6a7['signUrlServerUrl'])!=null?_0x4fabe8:_0x3bab7e)!=null?_0x5470e7:Wo;}[_0x4c1f23(0x1b3)](){const _0x1ea07e=_0x4c1f23;var _0x519be2;const _0x4047f8=this[_0x1ea07e(0x132)][_0x1ea07e(0x111)](L);return(_0x519be2=_0x4047f8==null?void 0x0:_0x4047f8['downloadEndpointUrl'])!=null?_0x519be2:location[_0x1ea07e(0xe3)];}[_0x4c1f23(0x196)](_0x3529d1,_0x253db9){const _0x340a07=_0x4c1f23;return _0x3529d1[_0x340a07(0x18e)](_0x340a07(0x178),_0x253db9);}[_0x4c1f23(0x2f9)](){const _0x58ca30=_0x4c1f23;this[_0x58ca30(0x376)]-=0x1,this['_change$'][_0x58ca30(0x23d)](this['_waitCount']);}};yt=xo([St(0x0,_0x321449(_0x1fbfa2)),St(0x1,_0x4d21d1),St(0x2,_0x321449(_0x375068))],yt);var Go=Object['defineProperty'],Yo=Object[_0x4c1f23(0x133)],Ko=(_0x51317b,_0x582bc7,_0x3363cc,_0x2fc0d5)=>{const _0x18d4c6=_0x4c1f23;for(var _0x18ca18=_0x2fc0d5>0x1?void 0x0:_0x2fc0d5?Yo(_0x582bc7,_0x3363cc):_0x582bc7,_0x3929bb=_0x51317b[_0x18d4c6(0x78)]-0x1,_0x151fd1;_0x3929bb>=0x0;_0x3929bb--)(_0x151fd1=_0x51317b[_0x3929bb])&&(_0x18ca18=(_0x2fc0d5?_0x151fd1(_0x582bc7,_0x3363cc,_0x18ca18):_0x151fd1(_0x18ca18))||_0x18ca18);return _0x2fc0d5&&_0x18ca18&&Go(_0x582bc7,_0x3363cc,_0x18ca18),_0x18ca18;},Pe=(_0x18987c,_0x53ad4f)=>(_0x50e1a1,_0x505f4d)=>_0x53ad4f(_0x50e1a1,_0x505f4d,_0x18987c);let et=class extends _0x2dacfb{constructor(_0x9a4408,_0x5ae19d,_0x422e7a,_0x5e92e6,_0x179e4d){const _0x5ab3ad=_0x4c1f23;super(),this[_0x5ab3ad(0x162)]=_0x9a4408,this[_0x5ab3ad(0x310)]=_0x5ae19d,this[_0x5ab3ad(0x15c)]=_0x422e7a,this['_collaborationSessionService']=_0x5e92e6,this[_0x5ab3ad(0x119)]=_0x179e4d,this[_0x5ab3ad(0x240)](),this[_0x5ab3ad(0x185)]();}['_initCloseConn'](){const _0x1defeb=_0x4c1f23,_0x241736=async _0x44854b=>{const _0xef8dbb=_0x4c7d;(await this[_0xef8dbb(0x2a8)][_0xef8dbb(0x2ec)](_0x44854b))[_0xef8dbb(0x99)][_0xef8dbb(0x1a7)](_0x1f1135(_0x4fe7e2=>_0x4fe7e2[_0xef8dbb(0x186)]===_0x273d8c[_0xef8dbb(0x1d7)]),_0x3ae8cf(this['dispose$']))[_0xef8dbb(0x280)](_0x193543=>{const _0x189236=_0xef8dbb,_0x3c6a78=_0x193543,{reason:_0x19bd48}=_0x3c6a78[_0x189236(0x339)];this[_0x189236(0x162)]['get'](_0x5d3b7c)[_0x189236(0x160)]({'type':_0x57eb36[_0x189236(0xcd)],'content':this['_localeService']['t'](_0x189236(0x29e))+'('+_0x19bd48+')'}),this[_0x189236(0x15c)][_0x189236(0xb6)](new _0x42c12f(_0x44854b)['id'],!0x1),this[_0x189236(0x2a8)][_0x189236(0x89)](_0x44854b);});};_0x5de0ce(this[_0x1defeb(0x310)][_0x1defeb(0x3f7)](_0x4c91c9[_0x1defeb(0x10d)]),this['_univerInstanceService'][_0x1defeb(0x3f7)](_0x4c91c9[_0x1defeb(0x11d)]))['pipe'](_0x3d528e(_0x385708=>_0x385708[_0x1defeb(0x34e)]()),_0x1f1135(_0x3ad20f=>!_0x46dc72(_0x3ad20f)),_0x3ae8cf(this[_0x1defeb(0x265)]))[_0x1defeb(0x280)](_0x4c291a=>{_0x241736(_0x4c291a);});}[_0x4c1f23(0x240)](){const _0x3d169c=_0x4c1f23,_0x6342=async _0x37811c=>{const _0x4d4163=_0x4c7d;(await this[_0x4d4163(0x2a8)][_0x4d4163(0x2ec)](_0x37811c))[_0x4d4163(0x99)][_0x4d4163(0x1a7)](_0x1f1135(_0x487ac7=>_0x487ac7['eventID']===_0x273d8c[_0x4d4163(0x2c9)]),_0x3ae8cf(this[_0x4d4163(0x265)]))[_0x4d4163(0x280)](_0x310fd0=>{const _0xfd56fc=_0x4d4163,_0x164e2e=_0x310fd0,{objectId:_0x192fd4}=_0x164e2e[_0xfd56fc(0x339)],_0x5a0420=this['_injector']['get'](_0x293481);_0x192fd4===_0x37811c?_0x5a0420[_0xfd56fc(0x3de)](_0x37811c):_0x5a0420['refreshPermission'](_0x37811c,_0x192fd4);});};_0x5de0ce(this[_0x3d169c(0x310)][_0x3d169c(0x3f7)](_0x4c91c9['UNIVER_SHEET']),this[_0x3d169c(0x310)][_0x3d169c(0x3f7)](_0x4c91c9[_0x3d169c(0x11d)]))[_0x3d169c(0x1a7)](_0x3d528e(_0x172dea=>_0x172dea[_0x3d169c(0x34e)]()),_0x1f1135(_0x2982b2=>!_0x46dc72(_0x2982b2)),_0x3ae8cf(this['dispose$']))['subscribe'](_0x3ce3a9=>{_0x6342(_0x3ce3a9);});}};et=Ko([Pe(0x0,_0x321449(_0x313fa0)),Pe(0x1,_0x375068),Pe(0x2,_0x52f39f),Pe(0x3,_0x321449(ce)),Pe(0x4,_0x321449(_0x2e153b))],et);var Xo=Object[_0x4c1f23(0x2e9)],Jo=Object[_0x4c1f23(0x133)],qo=(_0x158150,_0x30b1ca,_0x35aa81,_0x2a9490)=>{const _0x44e480=_0x4c1f23;for(var _0x7d06c8=_0x2a9490>0x1?void 0x0:_0x2a9490?Jo(_0x30b1ca,_0x35aa81):_0x30b1ca,_0x317a76=_0x158150[_0x44e480(0x78)]-0x1,_0x303401;_0x317a76>=0x0;_0x317a76--)(_0x303401=_0x158150[_0x317a76])&&(_0x7d06c8=(_0x2a9490?_0x303401(_0x30b1ca,_0x35aa81,_0x7d06c8):_0x303401(_0x7d06c8))||_0x7d06c8);return _0x2a9490&&_0x7d06c8&&Xo(_0x30b1ca,_0x35aa81,_0x7d06c8),_0x7d06c8;},gs=(_0x3fe6fd,_0x2beb97)=>(_0x3fccd3,_0x2aa934)=>_0x2beb97(_0x3fccd3,_0x2aa934,_0x3fe6fd);let Nt=class{constructor(_0x2d6011,_0x2fbe54){const _0x2a349e=_0x4c1f23;this[_0x2a349e(0x132)]=_0x2d6011,this[_0x2a349e(0x19f)]=_0x2fbe54;}async[_0x4c1f23(0x134)](_0xe02aec,_0x15245b){const _0x443fda=_0x4c1f23;var _0x3716ce;const {unitID:_0x32d875,type:_0x4d8c99,revision:_0x1c3dbc=0x0}=_0x15245b,_0x5d17b7=this['_getSnapshotAPIPrefix']()+'/'+_0x4d8c99+_0x443fda(0x3e1)+_0x32d875+'/rev/'+_0x1c3dbc,_0x21b0b6=(await this[_0x443fda(0x19f)][_0x443fda(0x348)](_0x5d17b7))[_0x443fda(0x1d2)],_0x308c68=(_0x3716ce=_0x21b0b6['snapshot'])==null?void 0x0:_0x3716ce[_0x443fda(0x245)];if(_0x308c68){const _0x54942b=_0x308c68==null?void 0x0:_0x308c68[_0x443fda(0x15b)],_0x421e8b=_0x2c535e[_0x443fda(0xe2)](_0x58e839(_0x54942b));_0x308c68[_0x443fda(0x15b)]=_0x421e8b,Object['entries'](_0x308c68[_0x443fda(0x88)])[_0x443fda(0x100)](([,_0x5dad7a])=>{const _0x5d82aa=_0x443fda,_0x4d4bd5=_0x5dad7a[_0x5d82aa(0x15b)],_0x5af493=_0x2c535e[_0x5d82aa(0xe2)](_0x58e839(_0x4d4bd5));_0x5dad7a[_0x5d82aa(0x15b)]=_0x5af493;});}return _0x21b0b6;}async[_0x4c1f23(0xaa)](_0x137743,_0x16905b){const _0x2497bc=_0x4c1f23,{unitID:_0x34e997,type:_0x2361f8,blockID:_0x5b20eb}=_0x16905b,_0x53bd32=this[_0x2497bc(0x2cf)]()+'/'+_0x2361f8+_0x2497bc(0x3e1)+_0x34e997+_0x2497bc(0x82)+_0x5b20eb;return(await this[_0x2497bc(0x19f)][_0x2497bc(0x348)](_0x53bd32))['body'];}async['getDeserializedSheetBlock'](_0x4a1501,_0xb1f19){const _0xcec57d=_0x4c1f23,{unitID:_0x2a7799,type:_0x593a52,blockID:_0x23f784}=_0xb1f19,_0x329e96=this[_0xcec57d(0x2cf)]()+_0xcec57d(0x82)+_0x593a52+'/unit/'+_0x2a7799+_0xcec57d(0x82)+_0x23f784;return(await this['_httpService'][_0xcec57d(0x348)](_0x329e96))[_0xcec57d(0x1d2)];}async[_0x4c1f23(0x156)](_0x3b0eba,_0x3246cb){const _0x2b5bc1=_0x4c1f23,{unitID:_0x89e701,type:_0x448d4e,from:_0x263997,to:_0x28e48b}=_0x3246cb,_0x4447e8=this['_getAPIPrefix']()+'/'+_0x448d4e+_0x2b5bc1(0x3e1)+_0x89e701+_0x2b5bc1(0x33b)+_0x263997+_0x2b5bc1(0x2eb)+_0x28e48b;return(await this[_0x2b5bc1(0x19f)][_0x2b5bc1(0x348)](_0x4447e8))[_0x2b5bc1(0x1d2)];}[_0x4c1f23(0xea)](){const _0x26605=_0x4c1f23;var _0x5870d0;return(_0x5870d0=this[_0x26605(0x132)][_0x26605(0x111)](mn))!=null?_0x5870d0:this['_getAPIPrefix']();}[_0x4c1f23(0x2cf)](){const _0x238588=_0x4c1f23;var _0x5a0953,_0x2aa118;const _0x54a779=this['_configService']['getConfig'](dn),_0x55803b=this[_0x238588(0x132)]['getConfig'](L);return(_0x2aa118=(_0x5a0953=_0x55803b==null?void 0x0:_0x55803b[_0x238588(0x139)])!=null?_0x5a0953:_0x54a779)!=null?_0x2aa118:fn;}async[_0x4c1f23(0x2f0)](_0xe6e3ee,_0x1258f5){const _0x166c14=_0x4c1f23,_0x52d4f5=_0x166c14(0x216)+_0x1258f5[_0x166c14(0x1d3)]+_0x166c14(0x3e1)+_0x1258f5[_0x166c14(0x1f3)]+_0x166c14(0x31a);return(await this[_0x166c14(0x19f)]['get'](_0x52d4f5,{'params':{'resourceId':JSON['stringify'](_0x1258f5[_0x166c14(0x3e0)])}}))[_0x166c14(0x1d2)];}[_0x4c1f23(0x2d1)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x5c1fc0=_0x4c1f23;throw new Error(_0x5c1fc0(0x73));}[_0x4c1f23(0xde)](){const _0x2ecc70=_0x4c1f23;throw new Error(_0x2ecc70(0x73));}[_0x4c1f23(0x1ab)](){const _0x3e9fd0=_0x4c1f23;throw new Error(_0x3e9fd0(0x73));}};Nt=qo([gs(0x0,_0x4d21d1),gs(0x1,_0x321449(_0x1fbfa2))],Nt);var zo=Object[_0x4c1f23(0x2e9)],Zo=Object['getOwnPropertyDescriptor'],Qo=(_0x501642,_0x19384c,_0x3704a4,_0x5f2f15)=>{const _0x18c7e6=_0x4c1f23;for(var _0x3fd2d1=_0x5f2f15>0x1?void 0x0:_0x5f2f15?Zo(_0x19384c,_0x3704a4):_0x19384c,_0x369403=_0x501642[_0x18c7e6(0x78)]-0x1,_0xb1066e;_0x369403>=0x0;_0x369403--)(_0xb1066e=_0x501642[_0x369403])&&(_0x3fd2d1=(_0x5f2f15?_0xb1066e(_0x19384c,_0x3704a4,_0x3fd2d1):_0xb1066e(_0x3fd2d1))||_0x3fd2d1);return _0x5f2f15&&_0x3fd2d1&&zo(_0x19384c,_0x3704a4,_0x3fd2d1),_0x3fd2d1;},ye=(_0x51a7d1,_0x5bf99f)=>(_0x203c44,_0x41650c)=>_0x5bf99f(_0x203c44,_0x41650c,_0x51a7d1);let Ut=class extends _0x2d287d{constructor(_0x3a01ae,_0x3ce015,_0x698998,_0x31c227,_0x3b744c){super(_0x3a01ae,_0x3ce015,_0x698998),this['_transformService']=_0x31c227,this['_logService']=_0x3b744c;}[_0x4c1f23(0x2bc)](_0xc5a02f,_0xb3b029){const _0x31df5c=_0x4c1f23,_0x1413ae=this['_getUndoStack'](_0xc5a02f);if(_0x1413ae)try{const _0x45f0d9=this['_transformStack'](_0x1413ae,_0xb3b029);this[_0x31df5c(0x38a)](_0xc5a02f,_0x45f0d9);}catch(_0x14081f){this[_0x31df5c(0x128)]['error'](_0x31df5c(0x319),_0x14081f),this[_0x31df5c(0x13a)](_0xc5a02f);}const _0x3c2374=this[_0x31df5c(0xaf)](_0xc5a02f);if(_0x3c2374)try{const _0x39c21e=this['_transformStack'](_0x3c2374,_0xb3b029);this[_0x31df5c(0x3bd)](_0xc5a02f,_0x39c21e);}catch(_0x2e98ca){this['_logService'][_0x31df5c(0x17a)](_0x2e98ca),this[_0x31df5c(0x3c8)](_0xc5a02f);}}[_0x4c1f23(0x13a)](_0x480e6d){const _0x10c3f6=_0x4c1f23,_0x1373a9=this[_0x10c3f6(0x3b6)](_0x480e6d);_0x1373a9&&(_0x1373a9[_0x10c3f6(0x78)]=0x0,this[_0x10c3f6(0x7f)]());}[_0x4c1f23(0x3c8)](_0x6148ac){const _0x52c34c=_0x4c1f23,_0x552da3=this['_getRedoStack'](_0x6148ac);_0x552da3&&(_0x552da3[_0x52c34c(0x78)]=0x0,this[_0x52c34c(0x7f)]());}[_0x4c1f23(0x38a)](_0x54c295,_0x59ed6c){const _0x47c581=_0x4c1f23;this['_undoStacks'][_0x47c581(0x329)](_0x54c295,_0x59ed6c),this[_0x47c581(0x7f)]();}[_0x4c1f23(0x3bd)](_0x573ea8,_0x2e08c2){const _0x1e6614=_0x4c1f23;this[_0x1e6614(0x1bd)][_0x1e6614(0x329)](_0x573ea8,_0x2e08c2),this['_updateStatus']();}[_0x4c1f23(0x164)](_0x326379,_0x5c2a55){const _0x209577=_0x4c1f23,_0x962588=[];let _0x2a7a9d=_0x5c2a55,_0x440239=_0x5c2a55;for(let _0x97c83b=_0x326379[_0x209577(0x78)]-0x1;_0x97c83b>=0x0;_0x97c83b--){const {unitID:_0x5bdbc5,undoMutations:_0x3a870f,redoMutations:_0x885321}=_0x326379[_0x97c83b],_0x4e0c9c=this[_0x209577(0x2ce)]['transformMutationsWithChangeset'](_0x2a7a9d,_0x3a870f),_0x219ffb=this[_0x209577(0x2ce)][_0x209577(0xbf)](_0x440239,_0x885321);if(_0x54fa31(_0x4e0c9c)||_0x54fa31(_0x219ffb)){this['_logService'][_0x209577(0x17a)](_0x209577(0x319),_0x209577(0x1fa),_0x4e0c9c,_0x219ffb);break;}_0x2a7a9d=_0x4e0c9c[_0x209577(0x85)],_0x440239=_0x219ffb['c1Prime'],_0x962588[_0x209577(0x27c)]({'unitID':_0x5bdbc5,'undoMutations':_0x4e0c9c[_0x209577(0x101)],'redoMutations':_0x219ffb['m2Prime']});}return _0x962588[_0x209577(0x103)]();}};Ut=Qo([ye(0x0,_0x375068),ye(0x1,_0x265863),ye(0x2,_0x163f08),ye(0x3,_0x56767e),ye(0x4,_0x50688a)],Ut);class ea extends _0x2dacfb{constructor(){const _0x58a577=_0x4c1f23;super(),l(this,_0x58a577(0x112)),this[_0x58a577(0x112)]=_0x1e2c02(window,'popstate')[_0x58a577(0x1a7)](_0x289d57(this[_0x58a577(0x265)]),_0xb96cea(0x1),_0x5810d1(void 0x0));}[_0x4c1f23(0x199)](_0x57b0b8,_0x27e870,_0x4a5550=!0x1){const _0x5ea994=_0x4c1f23,_0x2f0252=new URL(window['location'][_0x5ea994(0x165)]);_0x2f0252[_0x5ea994(0xb2)][_0x5ea994(0x329)](_0x57b0b8,_0x27e870),_0x4a5550?window['history']['replaceState']('','',_0x2f0252[_0x5ea994(0x226)]()):window['history']['pushState']('','',_0x2f0252['toString']());}[_0x4c1f23(0x331)](_0x31641b,_0x3a81e6=!0x1){const _0x432f92=_0x4c1f23,_0x559541=new URL(window[_0x432f92(0x3b2)][_0x432f92(0x165)]);_0x559541[_0x432f92(0xb2)]['delete'](_0x31641b),_0x3a81e6?window[_0x432f92(0x399)][_0x432f92(0x1f6)]('','',_0x559541[_0x432f92(0x226)]()):window[_0x432f92(0x399)][_0x432f92(0x1e2)]('','',_0x559541['toString']());}[_0x4c1f23(0xa0)](_0x11fd4c){const _0x21fbc9=_0x4c1f23;var _0x413502;return(_0x413502=new URL(window['location']['href'])['searchParams'][_0x21fbc9(0x348)](_0x11fd4c))!=null?_0x413502:void 0x0;}}var Ws=Object[_0x4c1f23(0x2e9)],ta=Object[_0x4c1f23(0x133)],sa=(_0x13b63d,_0xd4a9d3,_0x5b3b9d)=>_0xd4a9d3 in _0x13b63d?Ws(_0x13b63d,_0xd4a9d3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b3b9d}):_0x13b63d[_0xd4a9d3]=_0x5b3b9d,ia=(_0x221d4c,_0x1e6e43,_0x107220,_0x5353d4)=>{for(var _0x56cdf1=_0x5353d4>0x1?void 0x0:_0x5353d4?ta(_0x1e6e43,_0x107220):_0x1e6e43,_0x1f40f2=_0x221d4c['length']-0x1,_0x2ba653;_0x1f40f2>=0x0;_0x1f40f2--)(_0x2ba653=_0x221d4c[_0x1f40f2])&&(_0x56cdf1=(_0x5353d4?_0x2ba653(_0x1e6e43,_0x107220,_0x56cdf1):_0x2ba653(_0x56cdf1))||_0x56cdf1);return _0x5353d4&&_0x56cdf1&&Ws(_0x1e6e43,_0x107220,_0x56cdf1),_0x56cdf1;},ke=(_0x31ba63,_0x104238)=>(_0x1efcee,_0x532f53)=>_0x104238(_0x1efcee,_0x532f53,_0x31ba63),na=(_0x52eeb0,_0x4c3dc3,_0x47709d)=>sa(_0x52eeb0,_0x4c3dc3+'',_0x47709d);const ra=_0x4c1f23(0xe1);let Mt=class extends _0x43f0d0{constructor(_0x1e43d1=yn,_0x54d00d,_0x50ddb6,_0x26b044,_0x3b8d85){const _0x5c67bf=_0x4c1f23;super(),this[_0x5c67bf(0x1bb)]=_0x1e43d1,this['_logService']=_0x54d00d,this['_renderManagerService']=_0x50ddb6,this['_injector']=_0x26b044,this['_configService']=_0x3b8d85;const {..._0x173d19}=this[_0x5c67bf(0x1bb)];this[_0x5c67bf(0x132)][_0x5c67bf(0x102)](L,_0x173d19);}[_0x4c1f23(0xa9)](){const _0x4db76a=_0x4c1f23;this[_0x4db76a(0xe4)](),_0x50ed8d(this[_0x4db76a(0x162)],[[pe],[qe],[et]]);}[_0x4c1f23(0x350)](){const _0x2d9c8f=_0x4c1f23;_0x50ed8d(this[_0x2d9c8f(0x162)],[[ze]]);}[_0x4c1f23(0x273)](){const _0x596b09=_0x4c1f23;this[_0x596b09(0x38e)]();}[_0x4c1f23(0xe4)](){const _0x45b3f7=_0x4c1f23;var _0x1ccf22,_0x472eb3,_0x5ef82d,_0x1ba141;this['_injector']['has'](_0x2fbed3)&&this['_logService'][_0x45b3f7(0x17a)](_0x45b3f7(0x342),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x21af32=[[_0x2fbed3,{'useClass':Ut}],[ce],[Ft],[_0x1fbfa2],[Fs,{'useClass':ea}],[ae],[D],[_0x57aa72],[Ke],[Xe],[Ye],[Bt],[Ze],[Qe],[$s],[et],[Ls,{'useClass':(_0x472eb3=(_0x1ccf22=this[_0x45b3f7(0x1bb)])==null?void 0x0:_0x1ccf22[_0x45b3f7(0x39d)])!=null?_0x472eb3:Et}],[_0x147a26,{'useClass':_0x5d6c50}],[_0x4c90dd,{'useClass':Nt}],[_0x2eeda2,{'useClass':Pt}],[_0x74670d,{'useClass':yt}],[Ae],[qe],[Ue],[ze],[pe]];(_0x5ef82d=this[_0x45b3f7(0x1bb)])!=null&&_0x5ef82d['enableSingleActiveInstanceLock']&&_0x21af32[_0x45b3f7(0x27c)]([tt,{'useClass':rr}]),_0x21af32=_0x1588d5(_0x21af32,(_0x1ba141=this[_0x45b3f7(0x1bb)])==null?void 0x0:_0x1ba141[_0x45b3f7(0x1a2)]),_0x21af32['forEach'](_0x14ea91=>this[_0x45b3f7(0x162)]['add'](_0x14ea91)),this['_initModules']();}[_0x4c1f23(0x38e)](){const _0x2de209=_0x4c1f23;this['disposeWithMe'](this[_0x2de209(0x333)]['registerRenderModule'](_0x4c91c9[_0x2de209(0x11d)],[Dt])),this['disposeWithMe'](this['_renderManagerService'][_0x2de209(0x1c8)](_0x4c91c9[_0x2de209(0x10d)],[wt]));}[_0x4c1f23(0x2b4)](){const _0x75b607=_0x4c1f23;var _0x56019d,_0x7761a1;this['_injector']['get'](_0x1fbfa2)[_0x75b607(0xa1)]({'priority':0x14,'interceptor':_0x537a47({'maxParallel':0x6})}),this['_injector'][_0x75b607(0x348)](Qe),(_0x56019d=this['_config'])!=null&&_0x56019d[_0x75b607(0x114)]||this[_0x75b607(0x162)][_0x75b607(0x348)](D)[_0x75b607(0x3a2)](),(_0x7761a1=this[_0x75b607(0x1bb)])!=null&&_0x7761a1['enableAuthServer']&&this[_0x75b607(0x162)][_0x75b607(0x348)](Ze),this[_0x75b607(0x162)][_0x75b607(0x348)](Ae),this[_0x75b607(0x162)][_0x75b607(0x20e)](Ue)&&this[_0x75b607(0x162)][_0x75b607(0x348)](Ue);}};na(Mt,'pluginName',ra),Mt=ia([_0x4869be(_0x229d30),ke(0x1,_0x50688a),ke(0x2,_0x3f9a6b),ke(0x3,_0x321449(_0x313fa0)),ke(0x4,_0x4d21d1)],Mt);export{yo as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,On as COLLAB_SUBMIT_CHANGESET_URL_KEY,Sn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,Je as CollaborationEntity,Ct as CollaborationSession,ce as CollaborationSessionService,Et as CollaborationSocketService,w as CollaborationStatus,lo as CollaborationStatusDisplay,$s as CommentService,qe as DataLoaderController,Ue as DesktopCollaborationStatusDisplayController,bt as DocCollaborationEntity,vn as HEARTBEAT_INTERVAL_KEY,Ns as HEARTBEAT_TIMEOUT_KEY,Ls as ICollaborationSocketService,Fs as IURLService,yt as ImageIoService,Tn as LOCAL_CACHE_INTERVAL_KEY,wn as LOGIN_URL_KEY,D as LocalCacheService,Cn as RETRY_CONNECTING_MAX_COUNT_KEY,Oa as SEND_CHANGESET_TIMEOUT_KEY,dn as SNAPSHOT_SERVER_URL_KEY,mn as SNAPSHOT_URL_KEY,G as SessionStatus,Yr as SheetCollabCursorShape,Tt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,Mt as UniverCollaborationClientPlugin,ea as WebURLService,Nn as deserializeToCombResponse,Un as serializeCombRequest};
1
+ const _0x57f783=_0x5499;(function(_0x36664e,_0x14a629){const _0x309519=_0x5499,_0x4af61b=_0x36664e();while(!![]){try{const _0x9bbd3e=-parseInt(_0x309519(0x435))/0x1*(parseInt(_0x309519(0x4a1))/0x2)+parseInt(_0x309519(0x531))/0x3*(parseInt(_0x309519(0x2cf))/0x4)+parseInt(_0x309519(0x1d3))/0x5*(parseInt(_0x309519(0x260))/0x6)+-parseInt(_0x309519(0x3aa))/0x7+-parseInt(_0x309519(0x2a2))/0x8*(parseInt(_0x309519(0x451))/0x9)+-parseInt(_0x309519(0x1e2))/0xa+parseInt(_0x309519(0x27c))/0xb*(parseInt(_0x309519(0x52b))/0xc);if(_0x9bbd3e===_0x14a629)break;else _0x4af61b['push'](_0x4af61b['shift']());}catch(_0x4b3a23){_0x4af61b['push'](_0x4af61b['shift']());}}}(_0x2332,0x7a7d8));var ti=Object[_0x57f783(0x370)],si=(_0x150a34,_0x5e535c,_0x272dad)=>_0x5e535c in _0x150a34?ti(_0x150a34,_0x5e535c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x272dad}):_0x150a34[_0x5e535c]=_0x272dad,l=(_0x1c96af,_0x5aa419,_0x14d09c)=>si(_0x1c96af,typeof _0x5aa419!=_0x57f783(0x2b8)?_0x5aa419+'':_0x5aa419,_0x14d09c);import{createIdentifier as _0xe03866,Inject as _0xbf893e,Disposable as _0x291656,DisposableCollection as _0x297473,toDisposable as _0x46ce9c,IConfigService as _0x32e210,ILogService as _0x508ae2,UserManagerService as _0x3eb10f,UniverInstanceType as _0x3cefd0,IUniverInstanceService as _0x2fdc83,LocaleService as _0x2b49aa,Optional as _0x8646ba,RxDisposable as _0x4e2f23,Injector as _0x1e47c5,Tools as _0x13f79e,ILocalStorageService as _0x144750,ICommandService as _0x16b157,JSONX as _0x83ab7c,CommandType as _0xc98010,IPermissionService as _0x2eefce,IUndoRedoService as _0x5a196a,sequenceExecute as _0xa1610e,debounce as _0x314bbe,Rectangle as _0x3d407f,COLORS as _0x281501,ColorKit as _0x4459ec,ThemeService as _0x65d9c5,fromEventSubject as _0x1f7ed4,useDependency as _0x3dce0a,connectInjector as _0x1d20be,Workbook as _0x3b27dd,isInternalEditorID as _0x1a6e82,LocalUndoRedoService as _0x12c423,IContextService as _0x206e38,DependentOn as _0x5cca2d,Plugin as _0x288bca,touchDependencies as _0x1e0a11,IAuthzIoService as _0x2ae99d,mergeOverrideWithDependencies as _0x4ac76d}from'@univerjs/core';import{Subject as _0x4d30e5,merge as _0x431898,takeUntil as _0x341fba,BehaviorSubject as _0x1d28eb,distinctUntilChanged as _0x2eccf4,fromEvent as _0x31da28,map as _0x50a7a5,shareReplay as _0x541027,take as _0x19c20d,of as _0xd76332,debounceTime as _0x3f0923,filter as _0x4a170a,switchMap as _0x56169e,combineLatest as _0x307858,concatMap as _0x3aab28,mapTo as _0x1a64c4}from'rxjs';import{map as _0x24ae2d,take as _0x1ed091,filter as _0x5a107f,delay as _0x186907,throttleTime as _0x3a5fee,takeUntil as _0x3ce0c8,switchMap as _0x182cc7}from'rxjs/operators';import{MessageType as _0x13294d,Tooltip as _0x3ce20a}from'@univerjs/design';import{IBeforeCloseService as _0x41bb36,IMessageService as _0x37b80d,INotificationService as _0x520317,useObservable as _0x1ae99f,BuiltInUIPart as _0x202e96,IUIPartsService as _0x247425}from'@univerjs/ui';import{HTTPService as _0x55b0b1,WebSocketService as _0x2e70ea,MergeInterceptorFactory as _0x47133c,HTTPRequest as _0x213e9c,IHTTPImplementation as _0x3cf930,XHRHTTPImplementation as _0x3732ea,ThresholdInterceptorFactory as _0x20a7d8}from'@univerjs/network';import{CollaborationEvent as _0x39fb90,parseChangesetToProtocol as _0x317f29,ISnapshotServerService as _0x53ffaa,isTransformMutationFailure as _0x261e80,isTransformMutationsWithChangesetSuccess as _0x2bc65d,ITransformService as _0xe114b8,RevisionService as _0x9d3e90,mapDocumentTypeToUniverType as _0x15c809,isTransformChangesetsSuccess as _0x226c1d,CompressMutationService as _0x56e1ea,parseProtocolChangeset as _0x358d2a,SnapshotService as _0x345c31,textEncoder as _0x795c3e,b64DecodeUnicode as _0x208e88,isTransformMutationsWithChangesetFailure as _0x5aaa3e,UniverCollaborationPlugin as _0x883d03}from'@univerjs-pro/collaboration';import{ITelemetryService as _0xec589c}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x400ba1,RichTextEditingMutation as _0x4d740f,SetTextSelectionsOperation as _0x554b39,DocSkeletonManagerService as _0x43ea99}from'@univerjs/docs';import{DocIMEInputManagerService as _0x46e848,DocStateChangeManagerService as _0x4a2e09,NodePositionConvertToCursor as _0x2ac2eb,isValidRectRange as _0x2e2f7f,NodePositionConvertToRectRange as _0x5d6d04,TEXT_RANGE_LAYER_INDEX as _0x82fe8b,SetDocZoomRatioOperation as _0x248064}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x2ff974,SetSelectionsOperation as _0x3117a9,InsertSheetMutation as _0xbcf112,EmptyMutation as _0x528a42,WorkbookEditablePermission as _0x51ccc2,RefRangeService as _0x88ce42,EffectRefRangId as _0x5ed3cf,handleIRemoveRow as _0x4e8450,handleIRemoveCol as _0xa2beed,handleMoveRange as _0x577433,handleInsertRow as _0x30139c,handleInsertRangeMoveRight as _0x19b077,handleInsertRangeMoveDown as _0x4712bd,handleInsertCol as _0x4d21b9,handleDeleteRangeMoveUp as _0x385568,handleDeleteRangeMoveLeft as _0x51beb4,runRefRangeMutations as _0x53ba94,SetWorksheetActivateCommand as _0x1d38fd}from'@univerjs/sheets';import{IRenderManagerService as _0x5802ac,Shape as _0x261c3c,Rect as _0x442ba1,getColor as _0x30b673,RegularPolygon as _0x8acd3f,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1e5cb3,Vector2 as _0x2991a3}from'@univerjs/engine-render';import{ImageSourceType as _0x1eb7e5,ImageUploadStatusType as _0x2d435f,IImageIoService as _0x2ad49c}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0xbc5326,serializeRangeWithSheet as _0x296316}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x284dc5,VIEWPORT_KEY as _0x639500,getCoordByCell as _0x5e073b,getSheetObject as _0x2903ef,SheetPermissionInitController as _0x95d27e}from'@univerjs/sheets-ui';import _0x5c1cd4,{forwardRef as _0x2d4eab,useRef as _0x4ff364,createElement as _0x3aa812,useCallback as _0x40640a}from'react';import{IRemoteInstanceService as _0x191aed}from'@univerjs/rpc';import{getAttachHeader as _0x2b3dde}from'@univerjs-pro/license';const Sn='SNAPSHOT_SERVER_URL_KEY',pn='/universer-api/snapshot',vn=_0x57f783(0x232),La='SEND_CHANGESET_TIMEOUT',In=0x7d0,En=_0x57f783(0x2bd),Cn=_0x57f783(0x240),bn=_0x57f783(0x528),Tn=0x7530,Ls=_0x57f783(0x206),$s=0x4e20,Rn=0x4e20,On=_0x57f783(0x25f),Dn=0x3,wn='LOCAL_CACHE_INTERVAL',Pn=0x3e8,yn='COLLAB_SUBMIT_CHANGESET_URL',Un=_0x57f783(0x2ac),Nn=_0x57f783(0x3f5),Mn=_0x57f783(0x38b);var js=(_0x258049=>(_0x258049[_0x258049[_0x57f783(0x297)]=0x0]=_0x57f783(0x297),_0x258049[_0x258049['OK']=0x1]='OK',_0x258049[_0x258049[_0x57f783(0x41f)]=0x2]=_0x57f783(0x41f),_0x258049[_0x258049[_0x57f783(0x28a)]=0x3]='PERMISSION_DENIED',_0x258049[_0x258049[_0x57f783(0x335)]=0x4]='NOT_FOUND',_0x258049[_0x258049['UNAUTHENTICATED']=0x5]=_0x57f783(0x3f2),_0x258049[_0x258049['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x258049[_0x258049[_0x57f783(0x273)]=0x7]='INVALID_ARGUMENT',_0x258049[_0x258049[_0x57f783(0x352)]=0x8]=_0x57f783(0x352),_0x258049[_0x258049['COMPLETION_FINISHED']=0x9]=_0x57f783(0x51c),_0x258049[_0x258049['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x258049[_0x258049[_0x57f783(0x212)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x258049[_0x258049[_0x57f783(0x1de)]=0x1772]=_0x57f783(0x1de),_0x258049[_0x258049[_0x57f783(0x3b8)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x258049[_0x258049['APPLY_REJECT']=0x1b59]=_0x57f783(0x3e6),_0x258049[_0x258049['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x57f783(0x543),_0x258049[_0x258049['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x57f783(0x249),_0x258049[_0x258049['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x57f783(0x47b),_0x258049[_0x258049[_0x57f783(0x4b7)]=0x1b5d]=_0x57f783(0x4b7),_0x258049[_0x258049[_0x57f783(0x513)]=0x1f41]=_0x57f783(0x513),_0x258049[_0x258049[_0x57f783(0x1cf)]=0x2329]=_0x57f783(0x1cf),_0x258049[_0x258049[_0x57f783(0x532)]=0x232a]=_0x57f783(0x532),_0x258049[_0x258049[_0x57f783(0x276)]=0x232b]=_0x57f783(0x276),_0x258049[_0x258049['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x57f783(0x38f),_0x258049[_0x258049[_0x57f783(0x445)]=0x232d]=_0x57f783(0x445),_0x258049[_0x258049[_0x57f783(0x548)]=0x2711]=_0x57f783(0x548),_0x258049[_0x258049[_0x57f783(0x3a8)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x258049[_0x258049['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x57f783(0x373),_0x258049[_0x258049[_0x57f783(0x353)]=0x2714]=_0x57f783(0x353),_0x258049[_0x258049['UNRECOGNIZED']=-0x1]=_0x57f783(0x2ff),_0x258049))(js||{}),k=(_0x13558f=>(_0x13558f[_0x13558f[_0x57f783(0x4af)]=0x0]=_0x57f783(0x4af),_0x13558f[_0x13558f[_0x57f783(0x36f)]=0x1]='UNIVER_DOC',_0x13558f[_0x13558f[_0x57f783(0x258)]=0x2]=_0x57f783(0x258),_0x13558f[_0x13558f[_0x57f783(0x3fa)]=0x3]='UNIVER_SLIDE',_0x13558f[_0x13558f[_0x57f783(0x45c)]=0x4]=_0x57f783(0x45c),_0x13558f[_0x13558f[_0x57f783(0x2ff)]=-0x1]='UNRECOGNIZED',_0x13558f))(k||{}),I=(_0x315b90=>(_0x315b90[_0x315b90[_0x57f783(0x384)]=0x0]=_0x57f783(0x384),_0x315b90[_0x315b90['HELLO']=0x1]='HELLO',_0x315b90[_0x315b90[_0x57f783(0x43d)]=0x2]=_0x57f783(0x43d),_0x315b90[_0x315b90[_0x57f783(0x38c)]=0x3]=_0x57f783(0x38c),_0x315b90[_0x315b90[_0x57f783(0x41a)]=0x4]=_0x57f783(0x41a),_0x315b90[_0x315b90[_0x57f783(0x1d1)]=0x5]=_0x57f783(0x1d1),_0x315b90[_0x315b90[_0x57f783(0x438)]=0x6]=_0x57f783(0x438),_0x315b90[_0x315b90[_0x57f783(0x2ff)]=-0x1]=_0x57f783(0x2ff),_0x315b90))(I||{}),Ft=(_0x29a149=>(_0x29a149[_0x29a149['UNKNOWN_CODE']=0x0]=_0x57f783(0x43f),_0x29a149[_0x29a149['OK']=0x1]='OK',_0x29a149[_0x29a149[_0x57f783(0x1f6)]=0x2]=_0x57f783(0x1f6),_0x29a149[_0x29a149['UNRECOGNIZED']=-0x1]=_0x57f783(0x2ff),_0x29a149))(Ft||{}),xs=(_0x40a937=>(_0x40a937[_0x40a937[_0x57f783(0x390)]=0x0]='Undefined',_0x40a937[_0x40a937[_0x57f783(0x1e1)]=0x1]=_0x57f783(0x1e1),_0x40a937[_0x40a937[_0x57f783(0x2d2)]=0x2]='HttpExport',_0x40a937[_0x40a937[_0x57f783(0x338)]=0x3]='UnitEmbedded',_0x40a937[_0x40a937[_0x57f783(0x203)]=0x4]=_0x57f783(0x203),_0x40a937[_0x40a937[_0x57f783(0x2ff)]=-0x1]=_0x57f783(0x2ff),_0x40a937))(xs||{});const $=_0x57f783(0x35a),An={};function Ln(_0x4a73d5){const _0x258c43=_0x57f783;var _0x495c3f,_0x482387,_0x37c0b7,_0x1a0563;const _0x449e04=_0x4a73d5[_0x258c43(0x4c0)],_0x4e0e74=JSON[_0x258c43(0x26d)](_0x449e04);switch(_0x4e0e74['cmd']){case I[_0x258c43(0x1d1)]:case I[_0x258c43(0x366)]:{const _0x5742fd=_0x4e0e74[_0x258c43(0x343)];return{..._0x4e0e74,'data':_0x5742fd,'cmd':_0x4e0e74[_0x258c43(0x2da)]};}case I[_0x258c43(0x43d)]:{const _0x2b3eb7=_0x4e0e74[_0x258c43(0x4c4)];return{..._0x4e0e74,'data':_0x2b3eb7,'cmd':_0x4e0e74['cmd']};}case I['RECV']:{const _0x5c7f24=_0x4e0e74[_0x258c43(0x24a)];switch(_0x5c7f24['eventID']){case _0x39fb90[_0x258c43(0x49e)]:return{..._0x4e0e74,'data':{..._0x5c7f24,'data':(_0x495c3f=_0x5c7f24['permissionRejEvent'])==null?void 0x0:_0x495c3f['cs']},'cmd':_0x4e0e74[_0x258c43(0x2da)]};case _0x39fb90[_0x258c43(0x27e)]:return{..._0x4e0e74,'data':{..._0x5c7f24,'data':(_0x482387=_0x5c7f24[_0x258c43(0x496)])==null?void 0x0:_0x482387['cs']},'cmd':_0x4e0e74[_0x258c43(0x2da)]};case _0x39fb90['NEW_CHANGESETS']:return{..._0x4e0e74,'data':{..._0x5c7f24,'data':(_0x37c0b7=_0x5c7f24[_0x258c43(0x2a0)])==null?void 0x0:_0x37c0b7['cs']},'cmd':_0x4e0e74[_0x258c43(0x2da)]};case _0x39fb90['CHANGESET_REJ']:return{..._0x4e0e74,'data':{..._0x5c7f24,'data':(_0x1a0563=_0x5c7f24[_0x258c43(0x329)])==null?void 0x0:_0x1a0563['cs']},'cmd':_0x4e0e74['cmd']};case _0x39fb90[_0x258c43(0x3a5)]:return{..._0x4e0e74,'data':{..._0x5c7f24,'data':_0x5c7f24['updateCursorEvent']},'cmd':_0x4e0e74[_0x258c43(0x2da)]};case _0x39fb90[_0x258c43(0x395)]:return{..._0x4e0e74,'data':{..._0x5c7f24,'data':_0x5c7f24[_0x258c43(0x2ed)]},'cmd':_0x4e0e74[_0x258c43(0x2da)]};case _0x39fb90[_0x258c43(0x50a)]:return{..._0x4e0e74,'data':{..._0x5c7f24,'data':_0x5c7f24[_0x258c43(0x4fe)]},'cmd':_0x4e0e74[_0x258c43(0x2da)]};case _0x39fb90['LIVESHARE_NEW_HOST']:return{..._0x4e0e74,'data':{..._0x5c7f24,'data':_0x5c7f24[_0x258c43(0x303)]},'cmd':_0x4e0e74[_0x258c43(0x2da)]};case _0x39fb90[_0x258c43(0x27f)]:case _0x39fb90[_0x258c43(0x52e)]:return{..._0x4e0e74,'data':{..._0x5c7f24,'data':_0x5c7f24[_0x258c43(0x2d1)]},'cmd':_0x4e0e74[_0x258c43(0x2da)]};case _0x39fb90['LIVESHARE_TERMINATE']:return{..._0x4e0e74,'data':{..._0x5c7f24,'data':_0x5c7f24[_0x258c43(0x303)]},'cmd':_0x4e0e74['cmd']};case _0x39fb90[_0x258c43(0x4df)]:return{..._0x4e0e74,'data':_0x5c7f24,'cmd':_0x4e0e74[_0x258c43(0x2da)]};case _0x39fb90[_0x258c43(0x313)]:return{..._0x4e0e74,'data':{..._0x5c7f24,'data':_0x5c7f24[_0x258c43(0x512)]},'cmd':_0x4e0e74[_0x258c43(0x2da)]};case _0x39fb90['UPDATE_PERMISSION_OBJ']:return{..._0x4e0e74,'data':{..._0x5c7f24,'data':_0x5c7f24['updatePermissionObjEvent']},'cmd':_0x4e0e74[_0x258c43(0x2da)]};case _0x39fb90['SHOULD_CLOSE_CONN']:return{..._0x4e0e74,'data':{..._0x5c7f24,'data':_0x5c7f24[_0x258c43(0x46e)]},'cmd':_0x4e0e74[_0x258c43(0x2da)]};default:return _0x4e0e74;}}default:return _0x4e0e74;}}function $n(_0x589fff){const _0x44b5b5=_0x57f783;switch(_0x589fff[_0x44b5b5(0x2da)]){case I[_0x44b5b5(0x1d1)]:case I[_0x44b5b5(0x366)]:return JSON['stringify']({'cmd':_0x589fff[_0x44b5b5(0x2da)],'routeKey':_0x589fff[_0x44b5b5(0x298)]});case I[_0x44b5b5(0x41a)]:{let _0x713d15;switch(_0x589fff[_0x44b5b5(0x4c0)][_0x44b5b5(0x413)]){case _0x39fb90[_0x44b5b5(0x3a5)]:{_0x713d15={'eventID':_0x39fb90[_0x44b5b5(0x3a5)],'updateCursorEvent':_0x589fff['data'][_0x44b5b5(0x4c0)]};break;}case _0x39fb90['USERS_LEAVE']:{_0x713d15={'eventID':_0x39fb90[_0x44b5b5(0x50a)],'leaveEvent':_0x589fff[_0x44b5b5(0x4c0)][_0x44b5b5(0x4c0)]};break;}case _0x39fb90[_0x44b5b5(0x395)]:{_0x713d15={'eventID':_0x39fb90['USERS_ENTER'],'joinEvent':_0x589fff[_0x44b5b5(0x4c0)]['data']};break;}case _0x39fb90[_0x44b5b5(0x31e)]:{_0x713d15={'eventID':_0x39fb90[_0x44b5b5(0x31e)],'liveShareNewHost':_0x589fff[_0x44b5b5(0x4c0)][_0x44b5b5(0x4c0)]};break;}case _0x39fb90[_0x44b5b5(0x52e)]:{_0x713d15={'eventID':_0x39fb90['LIVESHARE_OPERATION'],'liveShareOperation':_0x589fff[_0x44b5b5(0x4c0)][_0x44b5b5(0x4c0)]};break;}case _0x39fb90[_0x44b5b5(0x3f7)]:{_0x713d15={'eventID':_0x39fb90[_0x44b5b5(0x3f7)],'liveShareTerminate':_0x589fff[_0x44b5b5(0x4c0)][_0x44b5b5(0x4c0)]};break;}case _0x39fb90[_0x44b5b5(0x33d)]:{_0x713d15={'eventID':_0x39fb90[_0x44b5b5(0x33d)],'liveShareRequestHost':_0x589fff[_0x44b5b5(0x4c0)][_0x44b5b5(0x4c0)]};break;}case _0x39fb90[_0x44b5b5(0x27f)]:{_0x713d15={'eventID':_0x39fb90[_0x44b5b5(0x27f)]};break;}default:_0x713d15={'eventID':_0x589fff['data'][_0x44b5b5(0x413)]};}return JSON[_0x44b5b5(0x301)]({'cmd':_0x589fff['cmd'],'routeKey':_0x589fff['routeKey'],'collaMsg':_0x713d15});}case I[_0x44b5b5(0x43d)]:return JSON[_0x44b5b5(0x301)]({'cmd':_0x589fff[_0x44b5b5(0x2da)],'routeKey':_0x589fff['routeKey'],'joinReq':_0x589fff[_0x44b5b5(0x4c0)]});case I[_0x44b5b5(0x38c)]:return JSON[_0x44b5b5(0x301)]({'cmd':_0x589fff[_0x44b5b5(0x2da)],'routeKey':_0x589fff[_0x44b5b5(0x298)],'leaveReq':_0x589fff[_0x44b5b5(0x4c0)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var jn=Object[_0x57f783(0x370)],xn=Object[_0x57f783(0x265)],Hn=(_0x547518,_0x28e738,_0x1aa838,_0x5ed4d5)=>{const _0x286da2=_0x57f783;for(var _0x2fc8ea=_0x5ed4d5>0x1?void 0x0:_0x5ed4d5?xn(_0x28e738,_0x1aa838):_0x28e738,_0x8e5d27=_0x547518[_0x286da2(0x331)]-0x1,_0x4acdf4;_0x8e5d27>=0x0;_0x8e5d27--)(_0x4acdf4=_0x547518[_0x8e5d27])&&(_0x2fc8ea=(_0x5ed4d5?_0x4acdf4(_0x28e738,_0x1aa838,_0x2fc8ea):_0x4acdf4(_0x2fc8ea))||_0x2fc8ea);return _0x5ed4d5&&_0x2fc8ea&&jn(_0x28e738,_0x1aa838,_0x2fc8ea),_0x2fc8ea;},Oe=(_0x18bae5,_0x40eb70)=>(_0xcb9cf,_0x2ce952)=>_0x40eb70(_0xcb9cf,_0x2ce952,_0x18bae5);const Hs=_0xe03866(_0x57f783(0x448));function kn(_0x4e6a09,_0x11ea15,_0x3db53a){const _0x13d521=_0x57f783;return _0x4e6a09+'/'+_0x11ea15+_0x13d521(0x4b9)+_0x3db53a+_0x13d521(0x50f);}let Tt=class extends _0x291656{constructor(_0x2634b7,_0x357c5e,_0x41444b,_0x4a7398,_0x335640){const _0x47f5dd=_0x57f783;super(),this[_0x47f5dd(0x4d4)]=_0x2634b7,this['_ws']=_0x357c5e,this[_0x47f5dd(0x1d6)]=_0x41444b,this[_0x47f5dd(0x542)]=_0x4a7398,this[_0x47f5dd(0x3fc)]=_0x335640;}['createSocket'](_0x1f0e20){const _0x574602=_0x57f783,_0x139e10=this['_ws']['createSocket'](_0x1f0e20);if(!_0x139e10)throw new Error(_0x574602(0x224));const _0x268471=new _0x297473(),_0x45d242=new _0x4d30e5();_0x268471['add'](_0x139e10['close$'][_0x574602(0x3c3)](_0x2f2c83=>_0x45d242[_0x574602(0x393)](_0x2f2c83))),_0x268471[_0x574602(0x3cc)](_0x46ce9c(()=>_0x45d242['complete']()));const _0x31bb3c=new _0x4d30e5();_0x268471[_0x574602(0x3cc)](_0x139e10[_0x574602(0x294)][_0x574602(0x3c3)](_0x484db0=>_0x31bb3c['next'](_0x484db0))),_0x268471[_0x574602(0x3cc)](_0x46ce9c(()=>_0x31bb3c[_0x574602(0x3d5)]()));const _0x1f5845=new _0x4d30e5();_0x268471[_0x574602(0x3cc)](_0x139e10[_0x574602(0x3fe)][_0x574602(0x3c3)](_0x34eede=>{const _0x56c88f=Ln(_0x34eede);_0x1f5845['next'](_0x56c88f);})),_0x268471['add'](_0x46ce9c(()=>_0x1f5845[_0x574602(0x3d5)]()));let _0x4677af;const _0x3fa714=()=>{const _0x1d74ee=_0x574602;_0x31bb3c[_0x1d74ee(0x393)](new Event(_0x1d74ee(0x248))),_0x45d242['next'](new CloseEvent('connection\x20error')),_0x4677af[_0x1d74ee(0x3d1)]();};return _0x4677af={'memberID':'','close$':_0x45d242[_0x574602(0x22b)](),'error$':_0x31bb3c[_0x574602(0x22b)](),'open$':_0x139e10[_0x574602(0x4f9)],'message$':_0x1f5845[_0x574602(0x22b)](),'send':_0x53c8a5=>{const _0x1b53e7=_0x574602;if(_0x53c8a5[_0x1b53e7(0x2da)]===I[_0x1b53e7(0x41a)]){if(_0x53c8a5[_0x1b53e7(0x4c0)]['eventID']===_0x39fb90[_0x1b53e7(0x354)]){this[_0x1b53e7(0x2f1)](_0x4677af,_0x53c8a5[_0x1b53e7(0x4c0)])[_0x1b53e7(0x495)](_0x546c65=>{const _0x1b340f=_0x1b53e7;this[_0x1b340f(0x542)][_0x1b340f(0x4ef)](_0x546c65),_0x3fa714();});return;}if(_0x53c8a5[_0x1b53e7(0x4c0)]['eventID']===_0x39fb90[_0x1b53e7(0x2a8)]){const _0x4e8e8c=_0x53c8a5['data'];this[_0x1b53e7(0x30e)](_0x4e8e8c)['then'](_0x39e219=>{const _0x1ac127=_0x1b53e7;_0x1f5845[_0x1ac127(0x393)]({'cmd':I['RECV'],'code':Ft['OK'],'routeKey':_0x4e8e8c[_0x1ac127(0x4c0)]['unitID'],'routeType':'','data':{'eventID':_0x39fb90[_0x1ac127(0x1fe)],'data':{'changesets':_0x39e219}}});})[_0x1b53e7(0x495)](_0x419503=>{this['_logService']['error'](_0x419503),_0x3fa714();});return;}}_0x139e10[_0x1b53e7(0x259)]($n(_0x53c8a5));},'close':()=>{_0x139e10['close'](),_0x268471['dispose']();}},_0x4677af;}async[_0x57f783(0x2f1)](_0x58a55a,_0x10e6e5){const _0x363f24=_0x57f783;var _0x28368b,_0x22dbb9;const {unitType:_0x14ba3a,unitID:_0xa6a57a,changeset:_0x23284b}=_0x10e6e5[_0x363f24(0x4c0)],_0x3d3a6f={'unitID':_0xa6a57a,'memberID':_0x58a55a['memberID'],'type':_0x14ba3a,'changeset':_0x317f29(_0x23284b)},_0x3009c6=this[_0x363f24(0x1d6)][_0x363f24(0x4fd)](yn),_0x47758d=this['_configService']['getConfig']($),_0xf408d7=kn((_0x22dbb9=(_0x28368b=_0x47758d==null?void 0x0:_0x47758d[_0x363f24(0x24d)])!=null?_0x28368b:_0x3009c6)!=null?_0x22dbb9:Un,_0x14ba3a,_0xa6a57a);try{await this[_0x363f24(0x4d4)]['post'](_0xf408d7,{'body':_0x3d3a6f});}catch(_0x515513){throw this[_0x363f24(0x542)][_0x363f24(0x4ef)](_0x363f24(0x50b),'submit\x20changeset\x20error!'),_0x515513;}}async[_0x57f783(0x30e)](_0x29b7b1){const _0xedf67e=_0x57f783,{unitID:_0x5c6e6c,from:_0x2e7fad,to:_0x22e1b6,unitType:_0x449852}=_0x29b7b1[_0xedf67e(0x4c0)];return(await this[_0xedf67e(0x3fc)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x5c6e6c,'type':_0x449852,'from':_0x2e7fad,'to':_0x22e1b6}))['changesets'];}};Tt=Hn([Oe(0x0,_0xbf893e(_0x55b0b1)),Oe(0x1,_0xbf893e(_0x2e70ea)),Oe(0x2,_0x32e210),Oe(0x3,_0x508ae2),Oe(0x4,_0x53ffaa)],Tt);const Bn=_0x57f783(0x245);function _0x2332(){const _0x3b6317=['requireSession','eventID','_renderManagerService','visibilityState','_onUserLeave','_handleEvent','getRangePointData','file','INGEST','string','now','startRow','1em','INTERNAL_ERROR','getUnitType','collabStatus.notCollab','_toggleOffline','_transformIMECache','sid','setShapeProps','c2Prime','/object','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','\x0aAfter:\x20','focused$','clearTimeout','toRgbString','propertyIsEnumerable','_loadDoc','some','_compressMutationService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','registerComponent','unknown','Error\x20on\x20receiving\x20event','1lTlrki','selection','BASE64','RECV','_univerInstanceService','hide','_transformService','sessionStatus','JOIN','_handleLeaveEvent','UNKNOWN_CODE','onPointerLeave$','defs','name','_docSkeletonManagerService','session.connection-failed','LICENSE_DISTRO_REJECTED','collaboration.closeRoom','/universer-api/authz','univer-pro.collaboration-client-socket-service','_transformStack','reject','_urlService','x-univer-host','roomInfos','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_collabCursorController','status','1778859xuvJHc','onMissedChangesetFetched','subscribeEvent','resend','_incrementRevisionNumber','getSheetBlock','color','baseRev','collabStatus.syncing','_createInitialStateImpl','collab-rect-range-','UNIVER_PROJECT','currentSkeleton$','_type','NOT_COLLAB','subunit','_unitStatus','objectActions','OffLineSingle','getSheetBySheetId','refreshPermission','visibilitychange','_removeCollabCursors','_socket','sheets','_waitForHeartbeatResponse','on-line-single','pushState','deepClone','shouldCloseConn','_onMessage','collabStatus.conflict','addObject','/rev/','colorChannel1','transformChangesets','measureText','fetchMiss','_docTransformSelectionsService','unshift','_collaborationSessionService','_getAnchorBounding','APPLY_PERMISSION_DENIED','_labelPosition','{fileID}','onTransformIME','_handleHover','_updateCollabCursors','subUnitId','startTime','InsertRangeMoveDownCommandId','_remoteChangesetQueue','addImageSourceCache','Error','m1Prime','_memberService','setCurrentUser','userID','socket\x20open.','disableLocalCache','_getSheetObject','method','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_onRemoteChangeset','objectID','_clearTimeoutTimer','_context','_render','catch','csAckEvent','getCurrentUser','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','toString','_acknowledgedAwaitingChangeset','replace','_sendHeartbeat','_updateSubUnitFromURLParams','PERMISSION_REJ','_decreaseWaiting','COMPRESS_MUTATION_APPLY','1481650fKWaau','_sendingTimer','VIEW_MAIN','registerHTTPInterceptor','attrs','lineTo','state$','show','_httpService','_schedule','history','replaceTextRanges','evenodd','_textBubble','UNIVER_UNKNOWN','whenReady','updateCollaborator','purple300','transformMutation','randomUUID','DeleteRangeMoveUpCommandId','_transformPreviousActiveRange','APPLY_DUPLICATED','fetchThroughInterceptors','/unit/','\x20to\x20','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','[SyncedState]:\x20received\x20rejection.','_onOffline','every','endColumn','data','searchParams','drawWith','_getRedoStack','joinRsp','online','_selfUnitIDs','collaboration-session-retry','unitId\x20is\x20not\x20found','fillText','conflict.content','_collaborationPaused','params','stopTime','getOwnPropertySymbols','_userManagerService','init','roomMembers$','_changesetSessionId','\x20in\x20_schedule.','_http','getTime','div','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','c1Prime','_handler','synced','_hover','_imageSourceCache','save\x20fail\x20reason\x20is\x20','trim','MSG_FOR_ERROR','rev','confirm','_clearCollaborationTimeoutTimer','[CollaborationSessionService]','_telemetryService','currentColor','objectType','isActive','onlineStatus','_disableEditing','cursorInfo$','_heartbeatTimer','actions','url(#on-line-single_clip0_910_349)','enableSingleActiveInstanceLock','error','univer-online-status','_unitID','UUID','_refreshCollabCursors','UNIVER_COLLABORATION_CLIENT_PLUGIN','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','workbook','_onRefRangeChange','onSyncEditingCollabCursor','open$','FromArray','icon','_checkMissing','getConfig','leaveEvent','transformByState','[CollaborationState]:\x20apply\x20error!','_onCursorDelete','getCurrentSelections','auth.needGotoLoginAlert','transformIMECache','createInstance','_sessions','getUnitId','_document','authzUrl','USERS_LEAVE','[CollaborationSession]','push','disposeWithMe','NEW_CHANGESETS','/new_changes','verdancy600','getTypeOfUnitDisposed$','commentUpdateEvent','CONNECTOR_DATA_TOO_LARGE','RemoveRowCommandId','getDocRanges','_entityInit$','_change$','_initCloseConn','_permissionService','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','_removeRoom','COMPLETION_FINISHED','displayName','PENDING','sheetID','_roomMembers$','unitID','activeSheet$','append','onPointerMove$','...','m2Prime','onRemoteRej','HEARTBEAT_INTERVAL','removeMember','forEach','6780FUFPJf','_injector','getRandomValues','LIVESHARE_OPERATION','session','getUnit','737739ljNESp','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_drawRectRange','onReady','reverse','_HTTPService','_listenToOfflineEvent','roles','registerBeforeClose','mutations','labelPosition','getViewport','flatMap','loadDoc','collaboration.single-unit.warning','getSheetId','_state','_logService','APPLY_NON_SEQUENTIAL_REVISION','update','body','from','pluginName','YUUMI_UNABLE_LOAD_URL','_cursorInfo$','/allowed','set','conflict.title','moveTo','includes','enableOfflineEditing','_anchor','LICENSE_MAX_UNITS_EXCEEDED','getCurrentUnitForType','HEARTBEAT','saveChangeset','3768410ICsXTa','[SyncedState]:\x20received\x20acknowledgement.','_initUnitPermissionChange','_configService','transformRemoteChangeset','retryConnectingInterval','_socketReady','bind','requestParams','getMember','closePath','SNAPSHOT_HAS_BEEN_REMOVED','snapshot','fetching\x20missing\x20changesets\x20from\x20','HttpImport','7733930IgBJyg','getMergeData','originalMeta','_executeRemoteChangeset','_getCurrentRevision','bottom','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','addEventListener','updateOfflineData','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_startTelemetryCollaborationNewChangeset','onTransformRemoteChangesetByIMECache','_commentUpdate$','_ensureSubject','_sessionStatus$','fetchMissingChangesets','setActiveRange','_drawTextRange','_docStateChangeManagerService','_onCombEvent','FAIL','commentUpdate$','/collaborator','_state$','none','_getAPIPrefixPath','list','_registerDependencies','PSEUDO_FETCH_MISSING_RESULT','awaitingChangeset','_scheduleTimestamp','RemoveColCommandId','_cachedData','UnitSnapshot','SHOULD_CLOSE_CONN','className','HEARTBEAT_TIMEOUT','onlyLocal','univer-offline','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','jiqing500','_handleJoinEvent','InsertRangeMoveRightCommandId','substring','headers','_getUndoStack','delete','_initRequestHeader','SNAPSHOT_INVALID_SNAPSHOT','_collabSessionService','UPDATE_PERMISSION_OBJ','InsertColCommandId','univer-online-status-icon','closeSession','post','removeParam','transformMutationsWithChangeset','updateMember','FETCH_MISS','fillRule','OTHER_CLIENTS_EDITING','size','getActiveRange','_retryCount','max','COMPRESS_MUTATION_SEND','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_setupSubUnitSync','Warning','fromCollab','_syncEditingCollabCursorService','getTypeOfUnitAdded$','_members','asObservable','toggleOffline','createElement','createSocket','_commandService','clearInterval','_collaborationTimeoutTimer','SNAPSHOT_URL_KEY','AWAITING_WITH_PENDING','_createHandler','_rescheduleHeartbeat','collab-text-range-','_getUploadFileURL','objects','[OfflineState]:\x20received\x20acknowledgement.','_onConnectionOpen','getOffsetConfig','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','storage','rgba(255,\x20255,\x20255,\x200.01)','collaboration-client.offline-data-not-saved','ws://127.0.0.1:8000/universer-api/comb/connect','values','collabWebSocketUrl','socket\x20close','signUrlServerUrl','collaboration_new_changeset','transformStack\x20failed!','put','connection\x20error','APPLY_REVISION_CONFILICT','collaMsg','red300','_initStatusComponent','collabSubmitChangesetUrl','_saveCache','_docSkeleton','setParam','href','onSendChangeset','_cursor','_sheetSkeletonManagerService','_refRangeService','_initCommandExecutedListener','action','UNIVER_SHEET','send','allowed','find','conflict','override','_themeService','RETRY_CONNECTING_MAX_COUNT','6IPNRqM','json','_clearScheduledTask','_transformUndoRedoStack','_sendHeartbeatTimer','getOwnPropertyDescriptor','getImageSourceCache','_retryConnectingTimer','[CollaborationUndoRedoService]','_updateLocalCursor','permission.title','executeCommand','_initEventListeners','parse','image/gif','[PendingState]:\x20received\x20rejection.','saveImage','getUnhiddenWorksheets','EXCHANGE_SIGN_URL_SERVER_URL_KEY','INVALID_ARGUMENT','_tryEnsureSocket','filter','LICENSE_IMPORT_SIZE_EXCEEDED','_onFetchMissResult','getLatestCsReqIdBySid','_startDocCollabCursor','_syncEditingCollabCursor','_scheduleClearOtherTimer','20801OTnAsv','change$','CHANGESET_ACK','LIVESHARE_FETCH_OPERATIONS','state','arc','getCurrentRevOfUnit','transformSelections','_registerRenderDependencies','0\x200\x2016\x2016','_onRecvEvent','sheetId','_shapes','_config','PERMISSION_DENIED','reqId','create','_name','_socket$','target','_initStatusListener','_scheduleSaving','incrementRevOfUnit','image/png','error$','getItem','_stopTelemetryCollaborationNewChangeset','UNDEFINED','routeKey','_cursors','unit','concat','sessionStatus$','loadOfflineData','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','telemetry\x20info\x20is\x20not\x20initialized','newCsEvent','_range','16FSyFgq','POST','[PendingState]:\x20unhandled\x20univer\x20type:\x20','off-line-single_clip0_910_343','failed\x20to\x20apply\x20missed\x20changesets!','_isPermissionRej','FETCH_MISSING','registerOnClose','_onConflict','image/bmp','/universer-api/comb','_drawAnchor','triggerDblclick','editingUnit','resize','text','_candidateSocket','_clearLocalCache','_clearHeartbeatTimer','SYNCED','[FetchMissState]','createCollaborator','symbol','fill','pipe','onTransformSelections','_clearRedo','COLLAB_WEB_SOCKET_URL','_startSheetCollabCursor','setWaitCount','_anchorDot','_startCollaboration','localeService','replaceState','currentTheme$','[CollaborationEntity]','startColumn','Univer','get','_assignedColors','_lockTransition','_loadSheet','then','_undoRedoService','_pendingMutations','12EynTBP','round','liveShareOperation','HttpExport','_onUserJoin','image/jpeg','_getMergeRange','getParam','AUTHZ_URL_KEY','onRemoteAck','sendChangesetTimeout','cmd','batchAllowed','blue400','textRanges','encode','onlineStatusIcon','/object/','onCommandExecuted','registerRefRange','entries','unsubscribe','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','apply','cursorInfo','saveSheetBlock','_colorAssignService','_cursorShapes','\x0aCurrent:\x20','code','joinEvent','univerjs-icon\x20univerjs-icon-','_session','collabCursorState$','_submitChangeset','_send','slice','editing\x20status\x20changed\x20to','DeleteRangeMoveLeftCommandId','MUTATION','resourceIDs','_saveTaskMap','_onLocalMutation','clipPath','onlineStatusTitle','ERROR_IMAGE','getUnitOnRev','getUniverSheetInstance','UNRECOGNIZED','with','stringify','offline','liveShareNewHost','_unitOnClients','OFFLINE','selections','transform','loginUrlKey','dispose','_getDownloadEndpointURL','fillStyle','_localeService','_event$','_fetchMissChangesets','listRoles','_onRemoteRejected','_timeoutTimer','type','COMMENT_UPDATE','_exhaustRemoteChangesetQueue','_localStorageService','exhaustSavingTask','location','awaiting','_getLoginPath','hidden','_eventUnsubscribe','_queuedRemoteChangesets','getActiveSheet','LIVESHARE_NEW_HOST','onRemoteChangeset','_disabled','encodeURIComponent','putCollaborators','toggleOnline','_sheetTransformSelectionsService','url','awaiting_with_pending','close$','JOINING','csRejEvent','getSkeleton','ERROR_EXCEED_SIZE','ONLINE','collabStatus.fetchMiss','getMemberID','hasOwnProperty','event$','length','copyFileMeta','_lastPointer','_handleHeartbeatEvent','NOT_FOUND','_getAPIPrefix','map','UnitEmbedded','listCollaborators','duration','_commentService','_listenToOnlineEvent','LIVESHARE_REQUEST_HOST','_hideTimer','origin','status$','getDeserializedSheetBlock','responseType','infoRsp','UniverIcon','_scene','/universer-api/file/{fileID}/sign-url','memberID','translate(.97)','_singleActiveUnitService','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_hovered','getCurrent','pending','getRenderById','univer-online-status-title','_messageService','enableAuthServer','TOO_MANY_REQUESTS','YUUMI_SUBSCRIPTION_NOT_FOUND','SUBMIT_CHANGESET','[UniverCollaborationClientPlugin]','changesets','skeleton','_transformRemoteChangesetByIMECache','initWorkbookPermissionChange','collaboration-client.config','popstate','_substituteUndoStack','registerRenderModule','_entities','min','getCollabCursors$','&to=','fetch_missing','path','_onJoinRoomEvent','Unknown\x20user','HELLO','_uiPartsService','_updateLocalCache','_onCursorUpdate','_setupBeforeClosingHandler','AWAITING','_tryReconnect','interceptor','_init','UNIVER_DOC','defineProperty','_shouldReportTelemetry','/universer-api/snapshot/','YUUMI_RATE_OVER_LIMIT','setInterval','setItem','reconnect','_transformUndoredo','pauseCollaboration','dispose$','_scheduleCollaborationTimeoutTimer','[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.','_changesetReqId','[CollaborationSessionService]:\x20socket\x20error','getImage','black','_notificationService','_transitionLocked','onMissingChangesets','_status$','UNKNOWN_CMD','_roomMembers','call','syncEditingCollabCursor','_updateState','save','IDLE','/universer-api/oidc/authpage','LEAVE','0\x200\x2017\x2016','_collaborationController','LICENSE_EXPORT_SIZE_EXCEEDED','Undefined','_backgroundColor','width','next','addObjects','USERS_ENTER','generateRandomId','setTimeout','getCollabEntity$','/-/object/-/batch_allowed','setUndoRedoMutationParamsCache','_color','_replaceFileID','_updateStatus','_id','_awaitingChangeset','_docSyncEditingCollabCursorService','_onConnectionFailed','saveOfflineData','row','random','UPDATE_CURSOR','getResourcesRequest','debug','YUUMI_URL_COL_OUT_OF_RANGE','_throwTelemetryCollaborationNewChangeset','1040172txQmLc','doc.mutation.rich-text-editing','_clearOtherTimers','_socketMessageSubscription','defIds','_draw','_initMergeInterceptor','transformUndoRedo','findNodePositionByCharIndex','_substituteRedoStack','_transformSelections','setAlpha','getRoom','roomMembers','ENSURE_SNAPSHOT_EXECUTION','number','patch','_revisionService','DEFAULT_FILE_NAME','MoveRangeCommandId','getValue','clear','_unlockTransition','column','&assign=','subscribe','_telemetryInfo','compose','_updateURLWithCurrentState','_createSocket','CONFLICT','prototype','_scheduleHeartbeat','xlink:href','add','getUnitStatus$','_online','_replayCachedMutations','FileId','close','indexOf','_getSendChangesetTimeout','urlChange$','complete','has','_colorIndex','onCommentUpdate','collab-client.tooltip.reconnect','unitId','[DataLoaderController]','getFocusedUnit','on-line-single_clip0_910_349','url(#$1','idSuffix','univer-online','ACTIVE_UNIT_EVENT_CHANNEL','onload','url(#off-line-single_clip0_910_343)','_waitCount','_onRemoteACK','APPLY_REJECT','engine','#fff','getRelativeToViewportCoord','_clearUndo','?url=','_beforeCloseService','tag','appendMutation','gold400','isPermissionRej','_snapshotService','UNAUTHENTICATED','onPointerEnter$','_localCacheService','LOGIN_URL_KEY','_createInitialState','LIVESHARE_TERMINATE','_instanceService','ranges','UNIVER_SLIDE','range','_snapshotServerService','_removeClearOtherTimer','message$','_docTransformIMECacheService','_initModules','getInterceptPoints','assign','_toggleOnline','disposeUnit','hovered','M0\x200H16V16H0z','_applyRemoteChangeset','updatePermissionPoint','_collabCursorState$','assignAColorForMemberID','?size=','_getCtorByUniverType','_getScale','isArray','/block/','startsWith','revision'];_0x2332=function(){return _0x3b6317;};return _0x2332();}function Vn(_0x3442a7){const _0x2809f6=_0x57f783;return JSON[_0x2809f6(0x301)](_0x3442a7)[_0x2809f6(0x331)];}class ks{constructor(){const _0x44d055=_0x57f783;l(this,_0x44d055(0x1ee),new _0x4d30e5()),l(this,_0x44d055(0x1f7),this[_0x44d055(0x1ee)]['asObservable']());}['onCommentUpdate'](_0x14b7fa){const _0x49cbe2=_0x57f783;this[_0x49cbe2(0x1ee)][_0x49cbe2(0x393)](_0x14b7fa);}}var Fn=Object['defineProperty'],Wn=Object[_0x57f783(0x265)],Gn=(_0x2bb69c,_0x4d115d,_0x59021c,_0x529979)=>{const _0x2d2378=_0x57f783;for(var _0x5b98cf=_0x529979>0x1?void 0x0:_0x529979?Wn(_0x4d115d,_0x59021c):_0x4d115d,_0x580da8=_0x2bb69c[_0x2d2378(0x331)]-0x1,_0x58b836;_0x580da8>=0x0;_0x580da8--)(_0x58b836=_0x2bb69c[_0x580da8])&&(_0x5b98cf=(_0x529979?_0x58b836(_0x4d115d,_0x59021c,_0x5b98cf):_0x58b836(_0x5b98cf))||_0x5b98cf);return _0x529979&&_0x5b98cf&&Fn(_0x4d115d,_0x59021c,_0x5b98cf),_0x5b98cf;},cs=(_0x16a422,_0x5382ae)=>(_0x2e08a5,_0x121da5)=>_0x5382ae(_0x2e08a5,_0x121da5,_0x16a422);let ce=class extends _0x291656{constructor(_0x4bcb28,_0xbaaee6){const _0x1f2602=_0x57f783;super(),l(this,'_roomMembers',new Map()),(this[_0x1f2602(0x439)]=_0x4bcb28,this[_0x1f2602(0x4cf)]=_0xbaaee6,this[_0x1f2602(0x50d)](_0x46ce9c(_0x431898(this[_0x1f2602(0x439)][_0x1f2602(0x511)](_0x3cefd0[_0x1f2602(0x258)])[_0x1f2602(0x2ba)](_0x24ae2d(_0x4ba39e=>_0x4ba39e[_0x1f2602(0x507)]())),this['_univerInstanceService'][_0x1f2602(0x511)](_0x3cefd0[_0x1f2602(0x36f)])[_0x1f2602(0x2ba)](_0x24ae2d(_0x110228=>_0x110228['getUnitId']())),this[_0x1f2602(0x439)][_0x1f2602(0x511)](_0x3cefd0[_0x1f2602(0x3fa)])[_0x1f2602(0x2ba)](_0x24ae2d(_0x54e205=>_0x54e205['getUnitId']())))[_0x1f2602(0x3c3)](_0x3b580f=>this[_0x1f2602(0x51b)](_0x3b580f)))));}[_0x57f783(0x489)](_0x34a7f2){this['_userManagerService']['setCurrentUser'](_0x34a7f2);}[_0x57f783(0x497)](){const _0x3395c2=_0x57f783;return this[_0x3395c2(0x4cf)]['getCurrentUser']();}[_0x57f783(0x21b)](_0x25ccef,_0x3b5461){const _0x307e06=_0x57f783;let _0x28e13d=this[_0x307e06(0x385)]['get'](_0x25ccef);_0x28e13d||(_0x28e13d=new Yn(),this[_0x307e06(0x385)][_0x307e06(0x54b)](_0x25ccef,_0x28e13d)),_0x28e13d[_0x307e06(0x21b)](_0x3b5461);}[_0x57f783(0x529)](_0x3bf06e,_0x2619b1){const _0x36f847=_0x57f783,_0x4e95cc=this[_0x36f847(0x385)][_0x36f847(0x2c8)](_0x3bf06e);_0x4e95cc&&_0x4e95cc[_0x36f847(0x529)](_0x2619b1);}[_0x57f783(0x3b6)](_0x5dea6f){return this['_roomMembers']['get'](_0x5dea6f);}[_0x57f783(0x1dc)](_0x2a8a76,_0x4587fd){const _0x1386ee=_0x57f783,_0x20d518=this[_0x1386ee(0x385)][_0x1386ee(0x2c8)](_0x2a8a76);if(_0x20d518)return _0x20d518[_0x1386ee(0x1dc)](_0x4587fd);}[_0x57f783(0x51b)](_0xa35219){const _0x283aad=_0x57f783,_0x308f19=this[_0x283aad(0x385)][_0x283aad(0x2c8)](_0xa35219);_0x308f19&&(_0x308f19['dispose'](),this[_0x283aad(0x385)]['delete'](_0xa35219));}['dispose'](){const _0x565385=_0x57f783;this['_roomMembers'][_0x565385(0x52a)](_0x41436a=>_0x41436a[_0x565385(0x309)]()),this[_0x565385(0x385)][_0x565385(0x3bf)]();}};ce=Gn([cs(0x0,_0x2fdc83),cs(0x1,_0xbf893e(_0x3eb10f))],ce);class Yn extends _0x291656{constructor(){super(...arguments),l(this,'_members',new Map());}[_0x57f783(0x309)](){const _0x37d226=_0x57f783;this[_0x37d226(0x22a)]['clear']();}[_0x57f783(0x21b)](_0x4a7a12){const _0x2cd1f8=_0x57f783;this[_0x2cd1f8(0x22a)][_0x2cd1f8(0x54b)](_0x4a7a12[_0x2cd1f8(0x347)],_0x4a7a12);}[_0x57f783(0x529)](_0xe7d86){const _0x1da9f5=_0x57f783;this[_0x1da9f5(0x22a)][_0x1da9f5(0x210)](_0xe7d86);}['getMember'](_0xca76d9){const _0x4382d8=_0x57f783;return this['_members'][_0x4382d8(0x2c8)](_0xca76d9);}}var Kn=Object[_0x57f783(0x370)],Xn=Object[_0x57f783(0x265)],qn=(_0x226339,_0x1d418b,_0x470a2b,_0x488021)=>{const _0x1e26f9=_0x57f783;for(var _0x3091af=_0x488021>0x1?void 0x0:_0x488021?Xn(_0x1d418b,_0x470a2b):_0x1d418b,_0x3d269d=_0x226339[_0x1e26f9(0x331)]-0x1,_0x3c79da;_0x3d269d>=0x0;_0x3d269d--)(_0x3c79da=_0x226339[_0x3d269d])&&(_0x3091af=(_0x488021?_0x3c79da(_0x1d418b,_0x470a2b,_0x3091af):_0x3c79da(_0x3091af))||_0x3091af);return _0x488021&&_0x3091af&&Kn(_0x1d418b,_0x470a2b,_0x3091af),_0x3091af;},J=(_0xebf73c,_0x4d7e1f)=>(_0x1ed1df,_0x33b0da)=>_0x4d7e1f(_0x1ed1df,_0x33b0da,_0xebf73c),Y=(_0x13b3b9=>(_0x13b3b9[_0x13b3b9['IDLE']=0x0]='IDLE',_0x13b3b9[_0x13b3b9[_0x57f783(0x328)]=0x1]=_0x57f783(0x328),_0x13b3b9[_0x13b3b9[_0x57f783(0x305)]=0x2]=_0x57f783(0x305),_0x13b3b9[_0x13b3b9[_0x57f783(0x32c)]=0x3]=_0x57f783(0x32c),_0x13b3b9))(Y||{});let Rt=class extends _0x4e2f23{constructor(_0x487eea,_0xa21098,_0x92b8bb,_0x3d4602,_0x4e8980,_0x343536,_0x13cabd,_0x18fdef,_0x1d6f4c,_0x4f5ab2){const _0xa431ce=_0x57f783;super(),l(this,_0xa431ce(0x1f0),new _0x1d28eb(0x0)),l(this,_0xa431ce(0x29c),this[_0xa431ce(0x1f0)][_0xa431ce(0x22b)]()),l(this,_0xa431ce(0x30d),new _0x4d30e5()),l(this,_0xa431ce(0x330),this['_event$'][_0xa431ce(0x22b)]()),l(this,_0xa431ce(0x468)),l(this,_0xa431ce(0x3ad)),l(this,_0xa431ce(0x231)),l(this,_0xa431ce(0x371),!0x1),l(this,'_telemetryInfo',null),(this[_0xa431ce(0x4f1)]=_0x487eea,this[_0xa431ce(0x542)]=_0x92b8bb,this[_0xa431ce(0x3ec)]=_0x3d4602,this[_0xa431ce(0x350)]=_0x4e8980,this[_0xa431ce(0x1d6)]=_0x343536,this['_localeService']=_0x13cabd,this[_0xa431ce(0x488)]=_0x18fdef,this[_0xa431ce(0x33b)]=_0x1d6f4c,this['_telemetryService']=_0x4f5ab2,this[_0xa431ce(0x371)]=!!this[_0xa431ce(0x4e4)],_0xa21098[_0xa431ce(0x2ba)](_0x341fba(this[_0xa431ce(0x379)]))[_0xa431ce(0x3c3)](_0x35db8d=>{const _0xf75a4f=_0xa431ce;var _0x20a159;typeof _0x35db8d>'u'||(this[_0xf75a4f(0x468)]=_0x35db8d,_0x35db8d?(this['_joinRoom'](_0x35db8d),this[_0xf75a4f(0x3ad)]=_0x35db8d[_0xf75a4f(0x3fe)][_0xf75a4f(0x3c3)](_0x351309=>{const _0x68940b=_0xf75a4f;_0x351309[_0x68940b(0x298)]===this[_0x68940b(0x4f1)]&&this[_0x68940b(0x1f5)](_0x351309);})):(this[_0xf75a4f(0x3a9)](),this[_0xf75a4f(0x1f0)][_0xf75a4f(0x393)](0x2),(_0x20a159=this[_0xf75a4f(0x3ad)])==null||_0x20a159['unsubscribe'](),this['_socketMessageSubscription']=null));}),this[_0xa431ce(0x50d)](this[_0xa431ce(0x3ec)][_0xa431ce(0x2a9)](()=>{const _0x2f14be=_0xa431ce;var _0xfb3a2a;(_0xfb3a2a=this[_0x2f14be(0x468)])==null||_0xfb3a2a['send']({'cmd':I[_0x2f14be(0x38c)],'data':{'roomID':this[_0x2f14be(0x4f1)]}});})));}get[_0x57f783(0x43c)](){const _0x5ac652=_0x57f783;return this[_0x5ac652(0x1f0)][_0x5ac652(0x3be)]();}[_0x57f783(0x32e)](){const _0x5bbed0=_0x57f783;var _0x55a8fc,_0x403f85;return(_0x403f85=(_0x55a8fc=this[_0x5bbed0(0x468)])==null?void 0x0:_0x55a8fc['memberID'])!=null?_0x403f85:null;}[_0x57f783(0x309)](){const _0x4bbe38=_0x57f783;super[_0x4bbe38(0x309)](),this[_0x4bbe38(0x379)][_0x4bbe38(0x393)](),this[_0x4bbe38(0x379)]['complete']();}['close'](){const _0x33f0f7=_0x57f783;var _0x543599,_0x464953;this[_0x33f0f7(0x3a9)](),(_0x543599=this[_0x33f0f7(0x468)])==null||_0x543599[_0x33f0f7(0x259)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x33f0f7(0x4f1)]}}),(_0x464953=this[_0x33f0f7(0x468)])==null||_0x464953[_0x33f0f7(0x3d1)](),this[_0x33f0f7(0x30d)]['complete'](),this[_0x33f0f7(0x1f0)]['complete'](),this['dispose']();}[_0x57f783(0x1f5)](_0x3bbfbf){const _0x37b873=_0x57f783;_0x3bbfbf[_0x37b873(0x2da)]===I[_0x37b873(0x43d)]?this[_0x37b873(0x364)](_0x3bbfbf):_0x3bbfbf[_0x37b873(0x2da)]===I['RECV']&&this[_0x37b873(0x286)](_0x3bbfbf);}['_joinRoom'](_0x39e7e9){const _0x100771=_0x57f783;this[_0x100771(0x1f0)][_0x100771(0x393)](0x1),_0x39e7e9[_0x100771(0x259)]({'cmd':I[_0x100771(0x43d)],'routeKey':this[_0x100771(0x4f1)],'routeType':'','data':{'rooms':[{'roomID':this[_0x100771(0x4f1)]}]}});}['_onJoinRoomEvent'](_0x527574){const _0x186c2b=_0x57f783;var _0x211c42;if(_0x527574['code']===Ft[_0x186c2b(0x1f6)]){this['_messageService'][_0x186c2b(0x4a8)]({'type':_0x13294d['Warning'],'content':this['_localeService']['t']('session.room-full')}),this[_0x186c2b(0x1f0)][_0x186c2b(0x393)](0x2);return;}this[_0x186c2b(0x1f0)][_0x186c2b(0x393)](0x3);const _0x42a30e=(_0x211c42=_0x527574[_0x186c2b(0x4c0)][_0x186c2b(0x44d)][this[_0x186c2b(0x4f1)]])==null?void 0x0:_0x211c42['members'];_0x42a30e&&_0x42a30e[_0x186c2b(0x52a)](_0x5f013e=>this[_0x186c2b(0x488)][_0x186c2b(0x21b)](this[_0x186c2b(0x4f1)],_0x5f013e));}[_0x57f783(0x286)](_0x1328da){const _0x334cbd=_0x57f783;try{const _0x16c7d1=_0x1328da[_0x334cbd(0x4c0)];switch(_0x16c7d1['eventID']){case _0x39fb90[_0x334cbd(0x395)]:this[_0x334cbd(0x2d3)](_0x16c7d1),this[_0x334cbd(0x30d)][_0x334cbd(0x393)](_0x16c7d1);break;case _0x39fb90[_0x334cbd(0x50a)]:this[_0x334cbd(0x416)](_0x16c7d1),this['_event$'][_0x334cbd(0x393)](_0x16c7d1);break;case _0x39fb90[_0x334cbd(0x27e)]:this[_0x334cbd(0x296)](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x334cbd(0x393)](_0x16c7d1);break;case _0x39fb90['MSG_FOR_ERROR']:this[_0x334cbd(0x542)]['error'](_0x334cbd(0x4dd)+JSON['stringify'](_0x16c7d1)),this[_0x334cbd(0x30d)][_0x334cbd(0x393)](_0x16c7d1);break;case _0x39fb90['COMMENT_UPDATE']:this[_0x334cbd(0x33b)][_0x334cbd(0x3d8)](_0x16c7d1[_0x334cbd(0x4c0)]),this[_0x334cbd(0x30d)][_0x334cbd(0x393)](_0x16c7d1);break;default:this['_event$']['next'](_0x16c7d1);}}catch(_0x5acd43){this[_0x334cbd(0x542)][_0x334cbd(0x4ef)](_0x5acd43,_0x1328da);}}['_onUserJoin'](_0x13320f){const _0x4470dc=_0x57f783;this[_0x4470dc(0x488)][_0x4470dc(0x21b)](this[_0x4470dc(0x4f1)],_0x13320f[_0x4470dc(0x4c0)]);}['_onUserLeave'](_0x1624f2){const _0x5d8182=_0x57f783;this[_0x5d8182(0x488)]['removeMember'](this[_0x5d8182(0x4f1)],_0x1624f2[_0x5d8182(0x4c0)][_0x5d8182(0x347)]);}async['send'](_0x3ae24e,_0x39f98f){const _0x2db1d2=_0x57f783;if(this['sessionStatus']!==0x3||!this[_0x2db1d2(0x468)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x3ae24e[_0x2db1d2(0x413)]===_0x39fb90[_0x2db1d2(0x354)]&&(this[_0x2db1d2(0x37a)](),this['_startTelemetryCollaborationNewChangeset'](_0x3ae24e)),this[_0x2db1d2(0x468)][_0x2db1d2(0x259)]({'cmd':I[_0x2db1d2(0x41a)],'routeKey':_0x39f98f,'routeType':'','data':_0x3ae24e});}catch(_0x548441){this['_logService']['error'](_0x548441);}}[_0x57f783(0x37a)](){const _0x5a66a2=_0x57f783;var _0x5299b6;this[_0x5a66a2(0x231)]=window['setTimeout'](()=>{const _0x287d77=_0x5a66a2;this['_collaborationTimeoutTimer']=null,this['_messageService'][_0x287d77(0x4a8)]({'type':_0x13294d[_0x287d77(0x486)],'content':this[_0x287d77(0x30c)]['t']('session.collaboration-timeout')});},(_0x5299b6=this[_0x5a66a2(0x1d6)][_0x5a66a2(0x4fd)](Ls))!=null?_0x5299b6:$s);}[_0x57f783(0x4e2)](){const _0x56f76f=_0x57f783;this[_0x56f76f(0x231)]&&(clearTimeout(this[_0x56f76f(0x231)]),this[_0x56f76f(0x231)]=null);}[_0x57f783(0x1ec)](_0x900743){const _0x15724d=_0x57f783;if(!this['_shouldReportTelemetry'])return;const {data:_0x1faf02}=_0x900743,{unitID:_0xf67630,changeset:_0x5d8bac}=_0x1faf02,{mutations:_0x35f736,type:_0x1948fe}=_0x5d8bac;this[_0x15724d(0x3c4)]={'unitId':_0xf67630,'type':_0x1948fe,'startTime':performance[_0x15724d(0x41c)](),'stopTime':0x0,'duration':0x0,'size':Vn(_0x35f736)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x3e2275=_0x57f783;if(this[_0x3e2275(0x371)]){if(!this[_0x3e2275(0x3c4)]){this[_0x3e2275(0x542)][_0x3e2275(0x4ef)]('[CollaborationSession]',_0x3e2275(0x29f));return;}this[_0x3e2275(0x3c4)][_0x3e2275(0x4cd)]=performance['now'](),this[_0x3e2275(0x3c4)][_0x3e2275(0x33a)]=this[_0x3e2275(0x3c4)][_0x3e2275(0x4cd)]-this['_telemetryInfo'][_0x3e2275(0x482)],this['_telemetryService']['capture'](Bn,this['_telemetryInfo']),this[_0x3e2275(0x3c4)]=null;}}[_0x57f783(0x3a9)](){this['_telemetryInfo']=null;}};Rt=qn([J(0x2,_0x508ae2),J(0x3,_0x41bb36),J(0x4,_0x37b80d),J(0x5,_0x32e210),J(0x6,_0xbf893e(_0x2b49aa)),J(0x7,_0xbf893e(ce)),J(0x8,_0xbf893e(ks)),J(0x9,_0x8646ba(_0xec589c))],Rt);var Jn=Object[_0x57f783(0x370)],zn=Object[_0x57f783(0x265)],Zn=(_0x2b2164,_0x48675e,_0x46709c,_0x2b7c90)=>{const _0x17c4dc=_0x57f783;for(var _0xae0970=_0x2b7c90>0x1?void 0x0:_0x2b7c90?zn(_0x48675e,_0x46709c):_0x48675e,_0x2dd366=_0x2b2164[_0x17c4dc(0x331)]-0x1,_0x592ada;_0x2dd366>=0x0;_0x2dd366--)(_0x592ada=_0x2b2164[_0x2dd366])&&(_0xae0970=(_0x2b7c90?_0x592ada(_0x48675e,_0x46709c,_0xae0970):_0x592ada(_0xae0970))||_0xae0970);return _0x2b7c90&&_0xae0970&&Jn(_0x48675e,_0x46709c,_0xae0970),_0xae0970;},fe=(_0x14df67,_0x36b8fc)=>(_0x3da653,_0x155dc5)=>_0x36b8fc(_0x3da653,_0x155dc5,_0x14df67);let he=class extends _0x291656{constructor(_0xd9707e,_0xf42081,_0x4aae57,_0x19f91f,_0x3b3745,_0x4ddbde){const _0x493810=_0x57f783;super(),l(this,'_socket$',new _0x1d28eb(void 0x0)),l(this,'socket$',this[_0x493810(0x28e)][_0x493810(0x22b)]()),l(this,_0x493810(0x2b2),null),l(this,'_sessions',new Map()),l(this,'_status$',new _0x1d28eb(Y[_0x493810(0x38a)])),l(this,_0x493810(0x340),this[_0x493810(0x383)]['asObservable']()),l(this,_0x493810(0x1d9),!0x1),l(this,_0x493810(0x267)),l(this,_0x493810(0x221),0x0),l(this,_0x493810(0x264)),l(this,_0x493810(0x311)),(this['_injector']=_0xd9707e,this['_localeService']=_0xf42081,this[_0x493810(0x350)]=_0x4aae57,this['_logService']=_0x19f91f,this[_0x493810(0x1d6)]=_0x3b3745,this['_socketService']=_0x4ddbde,this[_0x493810(0x26c)]());}get[_0x57f783(0x468)](){const _0x2196f1=_0x57f783;return this['_socket$'][_0x2196f1(0x3be)]();}['_initEventListeners'](){const _0x1f1bad=_0x57f783;this[_0x1f1bad(0x537)](),this[_0x1f1bad(0x33c)]();}[_0x57f783(0x309)](){const _0x4d772e=_0x57f783;super[_0x4d772e(0x309)](),this[_0x4d772e(0x506)][_0x4d772e(0x52a)](_0x4fa6f5=>_0x4fa6f5['dispose']()),this['_sessions'][_0x4d772e(0x3bf)](),this[_0x4d772e(0x383)][_0x4d772e(0x3d5)]();}async['requireSession'](_0x515676){const _0x2f1936=_0x57f783;if(this[_0x2f1936(0x506)][_0x2f1936(0x3d6)](_0x515676))return this[_0x2f1936(0x506)]['get'](_0x515676);this['_tryEnsureSocket']();const _0x22cf7f=this[_0x2f1936(0x52c)][_0x2f1936(0x505)](Rt,_0x515676,this['_socket$'][_0x2f1936(0x22b)]());return this[_0x2f1936(0x506)][_0x2f1936(0x54b)](_0x515676,_0x22cf7f),_0x22cf7f;}[_0x57f783(0x217)](_0x4f11da){const _0xdc0800=_0x57f783;var _0x55825f;const _0x34eee9=this[_0xdc0800(0x506)]['get'](_0x4f11da);_0x34eee9&&(this['_sessions']['delete'](_0x4f11da),_0x34eee9[_0xdc0800(0x3d1)]()),this[_0xdc0800(0x506)]['size']||(_0x55825f=this[_0xdc0800(0x468)])==null||_0x55825f[_0xdc0800(0x3d1)]();}[_0x57f783(0x376)](){const _0xbb2228=_0x57f783;this[_0xbb2228(0x221)]=0x0,this[_0xbb2228(0x267)]!=null&&(clearTimeout(this[_0xbb2228(0x267)]),this['_retryConnectingTimer']=null),this[_0xbb2228(0x36c)]();}[_0x57f783(0x3c7)](){const _0x5e0f94=_0x57f783;var _0xc05867,_0x3bec79;const _0x3134e9=this[_0x5e0f94(0x1d6)][_0x5e0f94(0x4fd)](En),_0x13280f=this[_0x5e0f94(0x1d6)][_0x5e0f94(0x4fd)]($),_0xa13adb=(_0x3bec79=(_0xc05867=_0x13280f==null?void 0x0:_0x13280f[_0x5e0f94(0x242)])!=null?_0xc05867:_0x3134e9)!=null?_0x3bec79:Cn,_0x3758bb=this['_socketService'][_0x5e0f94(0x22e)](_0xa13adb);return this['_candidateSocket']=_0x3758bb,_0x3758bb;}['_tryEnsureSocket'](){const _0x5a5b28=_0x57f783;var _0x5baade,_0x38a516;try{const _0x25261e=(_0x38a516=(_0x5baade=this[_0x5a5b28(0x468)])!=null?_0x5baade:this[_0x5a5b28(0x2b2)])!=null?_0x38a516:this['_createSocket']();if(_0x25261e){const _0x40dcb5=_0x25261e[_0x5a5b28(0x259)];_0x25261e[_0x5a5b28(0x259)]=_0x231a1e=>(this[_0x5a5b28(0x235)](),_0x40dcb5[_0x5a5b28(0x2e6)](_0x25261e,[_0x231a1e])),_0x25261e[_0x5a5b28(0x3fe)]['subscribe'](_0x17d1d9=>this['_onMessage'](_0x25261e,_0x17d1d9)),_0x25261e['error$'][_0x5a5b28(0x2ba)](_0x1ed091(0x1))[_0x5a5b28(0x3c3)](_0x20e415=>this['_logService'][_0x5a5b28(0x4ef)](_0x5a5b28(0x37d),_0x20e415)),_0x25261e[_0x5a5b28(0x4f9)][_0x5a5b28(0x2ba)](_0x1ed091(0x1))[_0x5a5b28(0x3c3)](()=>{const _0x10f2e7=_0x5a5b28;this[_0x10f2e7(0x23a)](_0x25261e);}),_0x25261e[_0x5a5b28(0x327)][_0x5a5b28(0x2ba)](_0x1ed091(0x1))['subscribe'](_0x560ff5=>{const _0x3038ad=_0x5a5b28;this[_0x3038ad(0x542)]['debug'](_0x3038ad(0x4e3),_0x3038ad(0x243),_0x560ff5),this[_0x3038ad(0x3a1)]();});}}catch(_0x1e39ea){this[_0x5a5b28(0x542)][_0x5a5b28(0x4ef)](_0x1e39ea),this['_onConnectionFailed']();}}[_0x57f783(0x23a)](_0x12f2d7){const _0x228b61=_0x57f783;this[_0x228b61(0x542)]['debug'](_0x228b61(0x4e3),_0x228b61(0x48b)),_0x12f2d7['send']({'cmd':I[_0x228b61(0x366)]}),this[_0x228b61(0x235)]();}[_0x57f783(0x537)](){const _0x24c149=_0x57f783;window['addEventListener'](_0x24c149(0x302),()=>this[_0x24c149(0x4bd)]());}[_0x57f783(0x4bd)](){const _0x138806=_0x57f783;this[_0x138806(0x1d9)]=!0x1,this[_0x138806(0x2b2)]=null,this[_0x138806(0x383)][_0x138806(0x393)](Y[_0x138806(0x305)]),this[_0x138806(0x28e)][_0x138806(0x393)](null),this[_0x138806(0x492)](),this[_0x138806(0x2b4)]();}[_0x57f783(0x3a1)](){const _0x527974=_0x57f783;var _0x8479e0;this[_0x527974(0x4bd)](),this[_0x527974(0x221)]<((_0x8479e0=this[_0x527974(0x1d6)]['getConfig'](On))!=null?_0x8479e0:Dn)?(this[_0x527974(0x350)][_0x527974(0x4a8)]({'key':_0x527974(0x4c7),'type':_0x13294d[_0x527974(0x226)],'content':this[_0x527974(0x30c)]['t']('session.will-retry')}),this[_0x527974(0x36c)]()):this[_0x527974(0x350)][_0x527974(0x4a8)]({'key':_0x527974(0x4c7),'type':_0x13294d[_0x527974(0x486)],'content':this[_0x527974(0x30c)]['t'](_0x527974(0x444))});}[_0x57f783(0x33c)](){const _0x1b88fd=_0x57f783,_0x303062=()=>{const _0x2dcc40=_0x5499;this[_0x2dcc40(0x468)]||this['reconnect']();},_0xb79d74=()=>{const _0x1bb618=_0x5499;this[_0x1bb618(0x468)]||document[_0x1bb618(0x415)]===_0x1bb618(0x31a)||this['reconnect']();};window[_0x1b88fd(0x1e9)](_0x1b88fd(0x4c5),_0x303062),document[_0x1b88fd(0x1e9)](_0x1b88fd(0x466),_0xb79d74);}['_tryReconnect'](){const _0x22bc79=_0x57f783;var _0x321b82;const _0x25f5d1=this[_0x22bc79(0x221)],_0x41f391=this[_0x22bc79(0x1d6)][_0x22bc79(0x4fd)]($),_0x48c966=_0x25f5d1===0x0?0x0:((_0x321b82=_0x41f391==null?void 0x0:_0x41f391[_0x22bc79(0x1d8)])!=null?_0x321b82:Rn)*0x2**_0x25f5d1;this[_0x22bc79(0x267)]=window[_0x22bc79(0x397)](()=>{const _0x77dfa5=_0x22bc79;clearTimeout(this[_0x77dfa5(0x267)]),this[_0x77dfa5(0x267)]=null,this[_0x77dfa5(0x274)]();},_0x48c966),this['_retryCount']+=0x1;}[_0x57f783(0x46f)](_0x54a08b,_0x4ceb2d){const _0xd34430=_0x57f783,{cmd:_0x447b69}=_0x4ceb2d;_0x447b69===I[_0xd34430(0x366)]&&!this[_0xd34430(0x1d9)]&&(_0x54a08b[_0xd34430(0x347)]=_0x4ceb2d[_0xd34430(0x4c0)][_0xd34430(0x347)],this[_0xd34430(0x28e)][_0xd34430(0x393)](_0x54a08b),this['_status$'][_0xd34430(0x393)](Y['ONLINE']),this['_socketReady']=!0x0,this[_0xd34430(0x2b2)]=null),_0x447b69===I[_0xd34430(0x1d1)]&&this[_0xd34430(0x492)](),this[_0xd34430(0x235)]();}['_rescheduleHeartbeat'](){const _0x3d97a6=_0x57f783;var _0x4b952f;this[_0x3d97a6(0x2b4)](),this['_sendHeartbeatTimer']=window[_0x3d97a6(0x397)](()=>this[_0x3d97a6(0x49c)](),(_0x4b952f=this[_0x3d97a6(0x1d6)][_0x3d97a6(0x4fd)](bn))!=null?_0x4b952f:Tn);}['_sendHeartbeat'](){const _0x5348cb=_0x57f783;this[_0x5348cb(0x468)]['send']({'cmd':I[_0x5348cb(0x1d1)]}),this[_0x5348cb(0x46a)]();}[_0x57f783(0x46a)](){const _0x28fad2=_0x57f783;var _0x2a6930;this[_0x28fad2(0x311)]=window['setTimeout'](()=>this['_onConnectionFailed'](),(_0x2a6930=this[_0x28fad2(0x1d6)]['getConfig'](Ls))!=null?_0x2a6930:$s);}['_clearHeartbeatTimer'](){const _0x534acf=_0x57f783;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x534acf(0x264)]),this[_0x534acf(0x264)]=null);}['_clearTimeoutTimer'](){const _0x277bb3=_0x57f783;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x277bb3(0x311)]),this[_0x277bb3(0x311)]=null);}};he=Zn([fe(0x0,_0xbf893e(_0x1e47c5)),fe(0x1,_0xbf893e(_0x2b49aa)),fe(0x2,_0x37b80d),fe(0x3,_0x508ae2),fe(0x4,_0x32e210),fe(0x5,Hs)],he);var b=[];for(var lt=0x0;lt<0x100;++lt)b['push']((lt+0x100)[_0x57f783(0x499)](0x10)['slice'](0x1));function Qn(_0x4dcf0c,_0x350cdb=0x0){return(b[_0x4dcf0c[_0x350cdb+0x0]]+b[_0x4dcf0c[_0x350cdb+0x1]]+b[_0x4dcf0c[_0x350cdb+0x2]]+b[_0x4dcf0c[_0x350cdb+0x3]]+'-'+b[_0x4dcf0c[_0x350cdb+0x4]]+b[_0x4dcf0c[_0x350cdb+0x5]]+'-'+b[_0x4dcf0c[_0x350cdb+0x6]]+b[_0x4dcf0c[_0x350cdb+0x7]]+'-'+b[_0x4dcf0c[_0x350cdb+0x8]]+b[_0x4dcf0c[_0x350cdb+0x9]]+'-'+b[_0x4dcf0c[_0x350cdb+0xa]]+b[_0x4dcf0c[_0x350cdb+0xb]]+b[_0x4dcf0c[_0x350cdb+0xc]]+b[_0x4dcf0c[_0x350cdb+0xd]]+b[_0x4dcf0c[_0x350cdb+0xe]]+b[_0x4dcf0c[_0x350cdb+0xf]])['toLowerCase']();}var He,er=new Uint8Array(0x10);function tr(){const _0x4f33be=_0x57f783;if(!He&&(He=typeof crypto<'u'&&crypto[_0x4f33be(0x52d)]&&crypto[_0x4f33be(0x52d)]['bind'](crypto),!He))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return He(er);}var sr=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x57f783(0x4b4)][_0x57f783(0x1da)](crypto);const hs={'randomUUID':sr};function ir(_0x19a7ab,_0x4d956e,_0xe34a03){const _0x9aac3f=_0x57f783;if(hs[_0x9aac3f(0x4b4)]&&!_0x4d956e&&!_0x19a7ab)return hs[_0x9aac3f(0x4b4)]();_0x19a7ab=_0x19a7ab||{};var _0x27e05d=_0x19a7ab[_0x9aac3f(0x3a4)]||(_0x19a7ab['rng']||tr)();return _0x27e05d[0x6]=_0x27e05d[0x6]&0xf|0x40,_0x27e05d[0x8]=_0x27e05d[0x8]&0x3f|0x80,Qn(_0x27e05d);}var nr=Object['defineProperty'],rr=Object[_0x57f783(0x265)],or=(_0x176a77,_0x2fd0a2,_0x3601cc,_0x1da889)=>{const _0x172a4c=_0x57f783;for(var _0x33a749=_0x1da889>0x1?void 0x0:_0x1da889?rr(_0x2fd0a2,_0x3601cc):_0x2fd0a2,_0x1b2192=_0x176a77[_0x172a4c(0x331)]-0x1,_0x264c2f;_0x1b2192>=0x0;_0x1b2192--)(_0x264c2f=_0x176a77[_0x1b2192])&&(_0x33a749=(_0x1da889?_0x264c2f(_0x2fd0a2,_0x3601cc,_0x33a749):_0x264c2f(_0x33a749))||_0x33a749);return _0x1da889&&_0x33a749&&nr(_0x2fd0a2,_0x3601cc,_0x33a749),_0x33a749;},_t=(_0x10a833,_0x2ad4b6)=>(_0x28f0f7,_0x4d7091)=>_0x2ad4b6(_0x28f0f7,_0x4d7091,_0x10a833);let Xe=class{constructor(_0x3ac8df,_0x57db04,_0x1c30d0){const _0x486397=_0x57f783;this['_injector']=_0x3ac8df,this[_0x486397(0x43b)]=_0x57db04,this[_0x486397(0x414)]=_0x1c30d0;}['transformIMECache'](_0x4d6e7b){const _0x199e81=_0x57f783;this[_0x199e81(0x263)](_0x4d6e7b),this['_transformPreviousActiveRange'](_0x4d6e7b);}[_0x57f783(0x1d7)](_0x5561c2){const _0x1a09ae=_0x57f783,{unitID:_0x20a6be}=_0x5561c2,_0x42efa5=this[_0x1a09ae(0x414)][_0x1a09ae(0x34e)](_0x20a6be)['with'](_0x46e848),{redoCache:_0x5992ca}=_0x42efa5['getUndoRedoMutationParamsCache']();if(_0x5992ca['length']===0x0)return _0x5561c2;let _0x2efdda=_0x13f79e[_0x1a09ae(0x46d)](_0x5561c2[_0x1a09ae(0x53a)][0x0]);for(let _0x4a6f10=0x0;_0x4a6f10<_0x5992ca[_0x1a09ae(0x331)];_0x4a6f10++){const _0x5f13d4={'id':_0x1a09ae(0x3ab),'params':{..._0x5992ca[_0x4a6f10]}},_0x53f262=this[_0x1a09ae(0x43b)][_0x1a09ae(0x4b3)](_0x2efdda,_0x5f13d4,!0x1);if(_0x261e80(_0x53f262))throw _0x53f262[_0x1a09ae(0x4ef)];_0x2efdda=_0x53f262[_0x1a09ae(0x487)];}return{..._0x13f79e[_0x1a09ae(0x46d)](_0x5561c2),'mutations':[_0x2efdda]};}[_0x57f783(0x263)](_0x246970){const _0x3be58e=_0x57f783,{unitID:_0x27a545}=_0x246970,_0xaf181=this[_0x3be58e(0x414)]['getRenderById'](_0x27a545)[_0x3be58e(0x300)](_0x46e848),{undoCache:_0x230ef2,redoCache:_0x2e3490}=_0xaf181['getUndoRedoMutationParamsCache']();if(_0x230ef2[_0x3be58e(0x331)]===0x0||_0x2e3490['length']===0x0)return;const _0x587f5f=[],_0x3191ae=[];let _0x48f023=_0x13f79e[_0x3be58e(0x46d)](_0x246970[_0x3be58e(0x53a)][0x0]),_0x1a78f2=_0x13f79e[_0x3be58e(0x46d)](_0x246970[_0x3be58e(0x53a)][0x0]);for(let _0x25678c=_0x230ef2[_0x3be58e(0x331)]-0x1;_0x25678c>=0x0;_0x25678c--){const _0x17626c={'id':_0x3be58e(0x3ab),'params':{..._0x230ef2[_0x25678c]}},_0x41e671={'id':_0x3be58e(0x3ab),'params':{..._0x2e3490[_0x25678c]}},_0xc94bdc=this['_transformService'][_0x3be58e(0x4b3)](_0x48f023,_0x17626c,!0x1),_0x1516d9=this[_0x3be58e(0x43b)]['transformMutation'](_0x1a78f2,_0x41e671,!0x1);if(_0x261e80(_0xc94bdc))throw _0xc94bdc[_0x3be58e(0x4ef)];if(_0x261e80(_0x1516d9))throw _0x1516d9[_0x3be58e(0x4ef)];_0x587f5f[_0x3be58e(0x478)](_0xc94bdc[_0x3be58e(0x526)][_0x3be58e(0x4cc)]),_0x3191ae[_0x3be58e(0x478)](_0x1516d9[_0x3be58e(0x526)]['params']),_0x48f023=_0xc94bdc[_0x3be58e(0x487)],_0x1a78f2=_0x1516d9['m1Prime'];}_0xaf181[_0x3be58e(0x39a)]({'undoCache':_0x587f5f,'redoCache':_0x3191ae});}[_0x57f783(0x4b6)](_0x2ef8a5){const _0x53329d=_0x57f783,{unitID:_0x45304b}=_0x2ef8a5,_0x4fb4fd=this[_0x53329d(0x414)]['getRenderById'](_0x45304b)[_0x53329d(0x300)](_0x46e848),_0x5ba702=_0x4fb4fd[_0x53329d(0x220)]();if(_0x5ba702==null)return;const _0x46dabe=[{'id':_0x53329d(0x3ab),'params':{'unitId':_0x2ef8a5[_0x53329d(0x521)],'actions':null,'textRanges':[_0x5ba702]}}],_0x1c2cbe=this[_0x53329d(0x43b)][_0x53329d(0x21a)](_0x2ef8a5,_0x46dabe);if(!_0x2bc65d(_0x1c2cbe))throw _0x1c2cbe['error'];const _0x3aa0e7=_0x1c2cbe[_0x53329d(0x526)][0x0]['params']['textRanges'];Array[_0x53329d(0x40e)](_0x3aa0e7)&&_0x3aa0e7['length']&&_0x4fb4fd[_0x53329d(0x1f2)](_0x3aa0e7[0x0]);}};Xe=or([_t(0x0,_0xbf893e(_0x1e47c5)),_t(0x1,_0xe114b8),_t(0x2,_0x5802ac)],Xe);var ar=Object[_0x57f783(0x370)],cr=Object['getOwnPropertyDescriptor'],hr=(_0x54bff8,_0x29a4a5,_0x1ea208,_0x3082ee)=>{const _0x899d4f=_0x57f783;for(var _0x1e9438=_0x3082ee>0x1?void 0x0:_0x3082ee?cr(_0x29a4a5,_0x1ea208):_0x29a4a5,_0x360f2a=_0x54bff8[_0x899d4f(0x331)]-0x1,_0x335ffa;_0x360f2a>=0x0;_0x360f2a--)(_0x335ffa=_0x54bff8[_0x360f2a])&&(_0x1e9438=(_0x3082ee?_0x335ffa(_0x29a4a5,_0x1ea208,_0x1e9438):_0x335ffa(_0x1e9438))||_0x1e9438);return _0x3082ee&&_0x1e9438&&ar(_0x29a4a5,_0x1ea208,_0x1e9438),_0x1e9438;},De=(_0xdd73e3,_0x4a3712)=>(_0x418d45,_0x32a2c6)=>_0x4a3712(_0x418d45,_0x32a2c6,_0xdd73e3);let w=class extends _0x291656{constructor(_0x15c09d,_0x47a5a9,_0x4c1ad4,_0x2993f6,_0x4fed02){const _0x8c1a7f=_0x57f783;super(),l(this,_0x8c1a7f(0x202),new Map()),l(this,_0x8c1a7f(0x2f8),new Map()),l(this,_0x8c1a7f(0x320),!0x1),(this['_configService']=_0x15c09d,this['_localStorageService']=_0x47a5a9,this[_0x8c1a7f(0x3ec)]=_0x4c1ad4,this['_localeService']=_0x2993f6,this[_0x8c1a7f(0x3bb)]=_0x4fed02,this[_0x8c1a7f(0x36a)]());}[_0x57f783(0x48c)](){const _0x23a150=_0x57f783;this[_0x23a150(0x320)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}[_0x57f783(0x309)](){const _0x3f7903=_0x57f783;this[_0x3f7903(0x316)]()[_0x3f7903(0x2cc)](()=>super[_0x3f7903(0x309)]());}async['loadOfflineData'](_0x780fca){const _0x30cd58=_0x57f783;return this[_0x30cd58(0x320)]?null:this[_0x30cd58(0x315)][_0x30cd58(0x295)](ls(_0x780fca));}async[_0x57f783(0x3a2)](_0x3a4742,_0x18bfb9){const _0x216497=_0x57f783;return!!this[_0x216497(0x315)][_0x216497(0x375)](_0x3a4742,_0x18bfb9);}['updateOfflineData'](_0x5a11ec,_0x317825,_0x1b2472,_0x410c70){const _0x1e3e91=_0x57f783,_0x4a0d99=this[_0x1e3e91(0x3bb)][_0x1e3e91(0x282)](_0x5a11ec);this['_cachedData'][_0x1e3e91(0x54b)](_0x5a11ec,{'unitID':_0x5a11ec,'type':_0x317825,'awaitingChangeset':_0x1b2472,'mutations':_0x410c70,'rev':_0x4a0d99}),this[_0x1e3e91(0x2f8)][_0x1e3e91(0x3d6)](_0x5a11ec)||this[_0x1e3e91(0x291)](_0x5a11ec);}[_0x57f783(0x291)](_0x3acccc){const _0x21def2=_0x57f783,_0x5ee0d6=this['_getSaveTimeout']();_0x5ee0d6===0x0?this[_0x21def2(0x24e)](_0x3acccc):this[_0x21def2(0x2f8)][_0x21def2(0x54b)](_0x3acccc,setTimeout(()=>this[_0x21def2(0x24e)](_0x3acccc),_0x5ee0d6));}['_getSaveTimeout'](){const _0x59e976=_0x57f783;var _0x43a3a3;return(_0x43a3a3=this[_0x59e976(0x1d6)][_0x59e976(0x4fd)](wn))!=null?_0x43a3a3:Pn;}[_0x57f783(0x24e)](_0x45e94e){const _0x37ee37=_0x57f783,_0x3c67b0=this[_0x37ee37(0x2f8)]['get'](_0x45e94e);return _0x3c67b0!==void 0x0&&window[_0x37ee37(0x42b)](_0x3c67b0),this[_0x37ee37(0x315)][_0x37ee37(0x375)](ls(_0x45e94e),this['_cachedData'][_0x37ee37(0x2c8)](_0x45e94e))[_0x37ee37(0x2cc)](()=>this[_0x37ee37(0x2f8)][_0x37ee37(0x210)](_0x45e94e));}async[_0x57f783(0x316)](){const _0x130165=_0x57f783,_0x5f2091=[];this[_0x130165(0x2f8)]['forEach']((_0x59f778,_0x53cb6a)=>{const _0x3911e3=_0x130165;window['clearTimeout'](_0x59f778),_0x5f2091[_0x3911e3(0x50c)](this[_0x3911e3(0x24e)](_0x53cb6a)[_0x3911e3(0x2cc)](()=>{const _0x39fd82=_0x3911e3;this[_0x39fd82(0x2f8)]['delete'](_0x53cb6a);}));}),await Promise['all'](_0x5f2091);}[_0x57f783(0x36a)](){const _0x204a4a=_0x57f783;this[_0x204a4a(0x50d)](this[_0x204a4a(0x3ec)][_0x204a4a(0x539)](()=>{const _0x530edf=_0x204a4a;if(this[_0x530edf(0x2f8)][_0x530edf(0x21f)])return this[_0x530edf(0x30c)]['t'](_0x530edf(0x23f));}));}};w=hr([De(0x0,_0x32e210),De(0x1,_0x144750),De(0x2,_0x41bb36),De(0x3,_0xbf893e(_0x2b49aa)),De(0x4,_0xbf893e(_0x9d3e90))],w);function ls(_0x28a42a){return'unit-cache-'+_0x28a42a;}var lr=Object[_0x57f783(0x370)],_r=Object[_0x57f783(0x265)],ur=(_0x4804f9,_0x103ac2,_0x4f717d,_0x173a1e)=>{const _0x2f0f0f=_0x57f783;for(var _0x4acc66=_0x173a1e>0x1?void 0x0:_0x173a1e?_r(_0x103ac2,_0x4f717d):_0x103ac2,_0xae113f=_0x4804f9[_0x2f0f0f(0x331)]-0x1,_0x28c128;_0xae113f>=0x0;_0xae113f--)(_0x28c128=_0x4804f9[_0xae113f])&&(_0x4acc66=(_0x173a1e?_0x28c128(_0x103ac2,_0x4f717d,_0x4acc66):_0x28c128(_0x4acc66))||_0x4acc66);return _0x173a1e&&_0x4acc66&&lr(_0x103ac2,_0x4f717d,_0x4acc66),_0x4acc66;},ut=(_0x3c9057,_0x4f7adb)=>(_0x3129de,_0x1b0a4b)=>_0x4f7adb(_0x3129de,_0x1b0a4b,_0x3c9057);function dr(_0x177352){const _0x3dcbda=_0x57f783,{unitID:_0x1779b3,mutations:_0x309b05}=_0x177352;return{'unitId':_0x1779b3,'subUnitId':_0x309b05[0x0]['params'][_0x3dcbda(0x481)]};}let qe=class{constructor(_0x532aa2,_0x1925c1,_0x5de7a4){const _0x5cc340=_0x57f783;this[_0x5cc340(0x52c)]=_0x532aa2,this[_0x5cc340(0x43b)]=_0x1925c1,this[_0x5cc340(0x3f8)]=_0x5de7a4;}[_0x57f783(0x283)](_0x46cb83){const _0x474699=_0x57f783;var _0x36c33a,_0x14c957,_0x5668d6,_0x3819bc;const _0x4d3444=this[_0x474699(0x52c)][_0x474699(0x2c8)](_0x2ff974),{unitId:_0x1d8925,subUnitId:_0x3b420b}=dr(_0x46cb83),_0x6b79b2=_0x4d3444['getWorkbookSelections'](_0x1d8925)[_0x474699(0x502)](),_0x54e264=(_0x14c957=(_0x36c33a=this['_instanceService'][_0x474699(0x530)](_0x1d8925))==null?void 0x0:_0x36c33a[_0x474699(0x31d)]())==null?void 0x0:_0x14c957[_0x474699(0x540)]();if(_0x6b79b2[_0x474699(0x331)]===0x0||!_0x1d8925||!_0x3b420b)return;const _0x5d7afd=[{'id':_0x3117a9['id'],'params':{'unitId':_0x1d8925,'subUnitId':_0x54e264,'selections':_0x13f79e['deepClone'](_0x6b79b2)}}],_0x56a5d5=this['_transformService'][_0x474699(0x21a)](_0x46cb83,_0x5d7afd);if(!_0x2bc65d(_0x56a5d5))throw _0x56a5d5['error'];const _0xa0ce3d=(_0x3819bc=(_0x5668d6=_0x56a5d5[_0x474699(0x526)][0x0])==null?void 0x0:_0x5668d6[_0x474699(0x4cc)])==null?void 0x0:_0x3819bc['selections'];Array[_0x474699(0x40e)](_0xa0ce3d)&&_0xa0ce3d['length']&&this['_injector'][_0x474699(0x2c8)](_0x16b157)[_0x474699(0x26b)](_0x3117a9['id'],{'unitId':_0x1d8925,'subUnitId':_0x54e264,'selections':_0xa0ce3d});}};qe=ur([ut(0x0,_0xbf893e(_0x1e47c5)),ut(0x1,_0xe114b8),ut(0x2,_0x2fdc83)],qe);const it=_0xe03866('univer-pro.collaboration-client.single-active-unit-service');var Bs=(_0x3411d2=>(_0x3411d2[_0x3411d2['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x3411d2[_0x3411d2[_0x57f783(0x21e)]=0x1]=_0x57f783(0x21e),_0x3411d2))(Bs||{});const _s=0x7530,us=_0x57f783(0x3e1);class fr extends _0x291656{constructor(){const _0x52c8ac=_0x57f783;super(),l(this,_0x52c8ac(0x39e),_0x13f79e[_0x52c8ac(0x396)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x52c8ac(0x304),new Map()),l(this,_0x52c8ac(0x4eb),null),l(this,_0x52c8ac(0x3ac),new Map()),l(this,_0x52c8ac(0x461),new Map()),this[_0x52c8ac(0x36e)]();}[_0x57f783(0x309)](){const _0x1ad7e7=_0x57f783;super['dispose'](),this['_clearOtherTimers'][_0x1ad7e7(0x52a)]((_0x231ae6,_0x57f55b)=>this['_removeClearOtherTimer'](_0x57f55b)),this[_0x1ad7e7(0x4eb)]&&window[_0x1ad7e7(0x230)](this[_0x1ad7e7(0x4eb)]);}[_0x57f783(0x3cd)](_0x5444e9){const _0x290d54=_0x57f783;return this[_0x290d54(0x1ef)](_0x5444e9)['pipe'](_0x2eccf4());}['editingUnit'](_0x342c7c){const _0x55c68b=_0x57f783;this['_selfUnitIDs'][_0x55c68b(0x21f)]===0x0&&this[_0x55c68b(0x3ca)](),this[_0x55c68b(0x4c6)]['add'](_0x342c7c),this[_0x55c68b(0x2f2)]({'type':0x0,'memberID':this[_0x55c68b(0x39e)],'unitIDs':[_0x342c7c],'isForwarded':!0x1});}[_0x57f783(0x404)](_0xfecff1){const _0x11d783=_0x57f783;this[_0x11d783(0x4c6)]['delete'](_0xfecff1),this[_0x11d783(0x4c6)][_0x11d783(0x21f)]===0x0&&this[_0x11d783(0x4eb)]&&window[_0x11d783(0x230)](this[_0x11d783(0x4eb)]);}[_0x57f783(0x36e)](){const _0x42c900=_0x57f783;this['disposeWithMe'](_0x46ce9c(_0x31da28(window,_0x42c900(0x23d))[_0x42c900(0x3c3)](_0x40a9e6=>{const _0x45952d=_0x42c900;if(_0x40a9e6['key']!==us||!_0x40a9e6['newValue'])return;const _0x53db1b=JSON[_0x45952d(0x26d)](_0x40a9e6['newValue']);this[_0x45952d(0x417)](_0x53db1b);}))),window[_0x42c900(0x1e9)]('unload',()=>this[_0x42c900(0x2f2)]({'type':0x1,'memberID':this[_0x42c900(0x39e)],'unitIDs':Array[_0x42c900(0x546)](this[_0x42c900(0x4c6)])}));}['_handleEvent'](_0x20b031){const _0x3e8238=_0x57f783;switch(_0x20b031[_0x3e8238(0x312)]){case 0x0:this[_0x3e8238(0x20b)](_0x20b031);break;case 0x1:this[_0x3e8238(0x43e)](_0x20b031);break;case 0x2:this['_handleHeartbeatEvent'](_0x20b031);break;}}[_0x57f783(0x20b)](_0x41190f){const _0x316be9=_0x57f783,{unitIDs:_0x5e068e,memberID:_0x49a477,isForwarded:_0x989ef}=_0x41190f;_0x5e068e['forEach'](_0x134827=>{const _0x47a73b=_0x5499;if(!_0x989ef&&this[_0x47a73b(0x304)][_0x47a73b(0x3d6)](_0x134827)&&this['_ensureSubject'](_0x134827)[_0x47a73b(0x393)](0x1),!this['_unitOnClients'][_0x47a73b(0x3d6)](_0x134827)||!this['_unitOnClients'][_0x47a73b(0x2c8)](_0x134827)[_0x47a73b(0x3d6)](_0x49a477)){const _0x5262b1=this[_0x47a73b(0x304)][_0x47a73b(0x2c8)](_0x134827)||new Set();_0x5262b1['add'](_0x49a477),this[_0x47a73b(0x304)][_0x47a73b(0x54b)](_0x134827,_0x5262b1),this[_0x47a73b(0x27b)](_0x49a477);}}),_0x989ef||this[_0x316be9(0x2f2)]({'type':0x0,'memberID':this[_0x316be9(0x39e)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x3a3565){const _0x452d83=_0x57f783;this[_0x452d83(0x3fd)](_0x3a3565);const _0x469f1a=window[_0x452d83(0x397)](()=>{const _0x2bfc5c=_0x452d83;this[_0x2bfc5c(0x304)][_0x2bfc5c(0x52a)](_0x118df8=>{const _0x4ed78f=_0x2bfc5c;_0x118df8[_0x4ed78f(0x210)](_0x3a3565);});},_s*0x2);this[_0x452d83(0x3ac)][_0x452d83(0x54b)](_0x3a3565,_0x469f1a);}[_0x57f783(0x3fd)](_0x420742){const _0x3ae981=_0x57f783;if(this[_0x3ae981(0x3ac)]['has'](_0x420742)){const _0x35ebf0=this['_clearOtherTimers'][_0x3ae981(0x2c8)](_0x420742);_0x35ebf0&&window[_0x3ae981(0x42b)](_0x35ebf0),this[_0x3ae981(0x3ac)][_0x3ae981(0x54b)](_0x420742,null);}}[_0x57f783(0x43e)](_0x246e77){const _0x4c80d8=_0x57f783,{memberID:_0x202e6a,unitIDs:_0x13a324}=_0x246e77;_0x13a324[_0x4c80d8(0x52a)](_0x396444=>{const _0x33da69=_0x4c80d8;var _0x3fcc6a;const _0x15c401=this[_0x33da69(0x304)][_0x33da69(0x2c8)](_0x396444);_0x15c401&&(_0x15c401['delete'](_0x202e6a),(_0x3fcc6a=this['_ensureSubject'](_0x396444))==null||_0x3fcc6a[_0x33da69(0x393)](_0x15c401[_0x33da69(0x21f)]===0x0?0x0:0x1));}),this[_0x4c80d8(0x3fd)](_0x202e6a);}[_0x57f783(0x334)](_0x5d5d0e){const _0x525c05=_0x57f783;this[_0x525c05(0x27b)](_0x5d5d0e['memberID']);}[_0x57f783(0x2f2)](_0x5c459c){const _0x3afea2=_0x57f783;localStorage['setItem'](us,JSON[_0x3afea2(0x301)](_0x5c459c));}['_scheduleHeartbeat'](){const _0x5e2f9b=_0x57f783;this['_heartbeatTimer']=window[_0x5e2f9b(0x374)](()=>{const _0x47a06f=_0x5e2f9b;this[_0x47a06f(0x2f2)]({'type':0x2,'memberID':this[_0x47a06f(0x39e)]});},_s);}['_ensureSubject'](_0x1b493a){const _0x16399a=_0x57f783;return this[_0x16399a(0x461)][_0x16399a(0x3d6)](_0x1b493a)||this[_0x16399a(0x461)][_0x16399a(0x54b)](_0x1b493a,new _0x1d28eb(0x0)),this['_unitStatus']['get'](_0x1b493a);}}function Vs(_0x2cc6bb){const _0x2eaf77=_0x57f783;let _0x36fee3='';for(const _0x51299f of _0x2cc6bb){const {startOffset:_0x4c76b2,endOffset:_0x3a5282,isActive:_0x6f449b}=_0x51299f;_0x36fee3[_0x2eaf77(0x331)]&&(_0x36fee3+=','),_0x36fee3+=_0x4c76b2+':'+_0x3a5282+':'+(_0x6f449b?'1':'0');}return _0x36fee3;}function mr(_0x5df8a6){const _0x5c2ab4=_0x57f783,_0x5e256a=_0x5df8a6['split'](','),_0x4bd478=[];for(const _0x38cdc9 of _0x5e256a){const [_0x2ac9d0,_0x37959b,_0x1d2604]=_0x38cdc9['split'](':');_0x4bd478[_0x5c2ab4(0x50c)]({'startOffset':Number(_0x2ac9d0),'endOffset':Number(_0x37959b),'collapsed':_0x2ac9d0===_0x37959b,'isActive':_0x1d2604==='1'});}return _0x4bd478[_0x5c2ab4(0x42f)](_0x3b7f5f=>_0x3b7f5f[_0x5c2ab4(0x4e7)])||(_0x4bd478[0x0][_0x5c2ab4(0x4e7)]=!0x0),_0x4bd478;}class Wt extends _0x4e2f23{constructor(){const _0x162385=_0x57f783;super(...arguments),l(this,_0x162385(0x409),new _0x1d28eb(null)),l(this,_0x162385(0x2f0),this[_0x162385(0x409)]['asObservable']());}[_0x57f783(0x387)](_0x894c6f){const _0x1faf10=_0x57f783,{unitID:_0x1f9388,memberID:_0xeff648,textRanges:_0x1b9a24}=_0x894c6f,_0x26ba3c=Vs(_0x1b9a24),_0xa77831={'unitID':_0x1f9388,'memberID':_0xeff648,'selection':_0x26ba3c};this[_0x1faf10(0x409)][_0x1faf10(0x393)](_0xa77831);}}var gr=Object[_0x57f783(0x370)],Sr=Object[_0x57f783(0x265)],pr=(_0x3f213d,_0x15ac2f,_0x2e4c58,_0x27e931)=>{const _0x2e27a1=_0x57f783;for(var _0x272772=_0x27e931>0x1?void 0x0:_0x27e931?Sr(_0x15ac2f,_0x2e4c58):_0x15ac2f,_0x33a566=_0x3f213d[_0x2e27a1(0x331)]-0x1,_0x1f2067;_0x33a566>=0x0;_0x33a566--)(_0x1f2067=_0x3f213d[_0x33a566])&&(_0x272772=(_0x27e931?_0x1f2067(_0x15ac2f,_0x2e4c58,_0x272772):_0x1f2067(_0x272772))||_0x272772);return _0x27e931&&_0x272772&&gr(_0x15ac2f,_0x2e4c58,_0x272772),_0x272772;},ds=(_0x50fa9e,_0x455a26)=>(_0x3c1c7c,_0x532cfd)=>_0x455a26(_0x3c1c7c,_0x532cfd,_0x50fa9e);let Je=class{constructor(_0x5174f0,_0x2db478){const _0x3dcbc2=_0x57f783;this[_0x3dcbc2(0x52c)]=_0x5174f0,this[_0x3dcbc2(0x43b)]=_0x2db478;}[_0x57f783(0x283)](_0x57eaf7){const _0x57194c=_0x57f783;var _0x2bf5d4;const _0x2cbd2e=this[_0x57194c(0x52c)][_0x57194c(0x2c8)](_0x400ba1),_0x37e1aa=(_0x2bf5d4=_0x2cbd2e[_0x57194c(0x515)]())!=null?_0x2bf5d4:[];if(_0x37e1aa[_0x57194c(0x331)]===0x0)return;const _0x4e878d=[{'id':_0x57194c(0x3ab),'params':{'unitId':_0x57eaf7[_0x57194c(0x521)],'actions':null,'textRanges':_0x37e1aa}}],_0x211469=this[_0x57194c(0x43b)][_0x57194c(0x21a)](_0x57eaf7,_0x4e878d);if(!_0x2bc65d(_0x211469))throw _0x211469[_0x57194c(0x4ef)];const _0xfe751a=_0x211469[_0x57194c(0x526)][0x0]['params'][_0x57194c(0x2dd)];Array[_0x57194c(0x40e)](_0xfe751a)&&_0xfe751a[_0x57194c(0x331)]&&_0x2cbd2e[_0x57194c(0x4ac)](_0xfe751a,!0x1);}};Je=pr([ds(0x0,_0xbf893e(_0x1e47c5)),ds(0x1,_0xe114b8)],Je);const vr=new Set([_0xbcf112['id']]);function fs(_0x4aca08,_0x307624,_0x27f664,_0x24cc71,_0x23600c){const _0x3eabfa=_0x57f783;var _0x527072,_0xd089ce,_0x1b37d6,_0x78461d;const _0x40d8b7=[];for(const _0x46605d of _0x4aca08)if(vr[_0x3eabfa(0x3d6)](_0x46605d['id'])){if(_0x40d8b7[_0x3eabfa(0x331)]>0x0)break;_0x40d8b7['push'](_0x46605d);break;}else _0x40d8b7['push'](_0x46605d);const _0x4c1be5=(_0xd089ce=(_0x527072=_0x23600c[_0x3eabfa(0x497)]())==null?void 0x0:_0x527072[_0x3eabfa(0x48a)])!=null?_0xd089ce:_0x3eabfa(0x433),_0x39414a=(_0x78461d=(_0x1b37d6=_0x23600c['getCurrentUser']())==null?void 0x0:_0x1b37d6['memberID'])!=null?_0x78461d:'unknown';return{'changeset':{'unitID':_0x307624,'type':_0x15c809(_0x27f664[_0x3eabfa(0x420)](_0x307624)),'baseRev':_0x24cc71[_0x3eabfa(0x282)](_0x307624),'revision':0x0,'userID':_0x4c1be5,'memberID':_0x39414a,'mutations':_0x40d8b7},'pendingMutations':_0x4aca08[_0x3eabfa(0x2f3)](_0x40d8b7[_0x3eabfa(0x331)])};}function Ir(_0x29d321,_0x50819b,_0x271674,_0x564897,_0x42322b){const _0x4c92c6=_0x57f783;var _0x2d22fb,_0x51ffc3,_0x52a433,_0x195a8d;const _0x13e861=[_0x29d321['reduce']((_0x217a37,_0x27ebcf)=>{const _0x13c5f4=_0x5499;var _0x2cde03;const {id:_0x564026}=_0x217a37,{id:_0x233d51,type:_0x22d5e6}=_0x27ebcf,_0x4332f5=(_0x2cde03=_0x217a37[_0x13c5f4(0x4cc)])!=null?_0x2cde03:{'actions':null},_0x2e49aa=_0x27ebcf[_0x13c5f4(0x4cc)];if(_0x564026&&_0x564026!==_0x233d51)throw new Error(_0x13c5f4(0x1eb)+_0x564026+'\x20-\x20'+_0x233d51+'.');return{..._0x217a37,'id':_0x233d51,'type':_0x22d5e6,'params':{'unitId':_0x2e49aa['unitId'],'textRanges':_0x2e49aa[_0x13c5f4(0x2dd)],'actions':_0x83ab7c[_0x13c5f4(0x3c5)](_0x4332f5['actions'],_0x2e49aa[_0x13c5f4(0x4ec)])}};},{})],_0x14834d=(_0x51ffc3=(_0x2d22fb=_0x42322b[_0x4c92c6(0x497)]())==null?void 0x0:_0x2d22fb[_0x4c92c6(0x48a)])!=null?_0x51ffc3:_0x4c92c6(0x433),_0x43afef=(_0x195a8d=(_0x52a433=_0x42322b[_0x4c92c6(0x497)]())==null?void 0x0:_0x52a433['memberID'])!=null?_0x195a8d:'unknown';return{'changeset':{'unitID':_0x50819b,'type':_0x15c809(_0x271674['getUnitType'](_0x50819b)),'baseRev':_0x564897[_0x4c92c6(0x282)](_0x50819b),'revision':0x0,'userID':_0x14834d,'memberID':_0x43afef,'mutations':_0x13e861},'pendingMutations':[]};}const Er={'id':_0x528a42['id'],'type':_0xc98010[_0x57f783(0x2f6)],'params':{}};var Cr=Object[_0x57f783(0x370)],br=Object['getOwnPropertyDescriptor'],_e=(_0x3cb6cb,_0x4ab4f3,_0x39fc0d,_0x1063cc)=>{for(var _0x3c4449=_0x1063cc>0x1?void 0x0:_0x1063cc?br(_0x4ab4f3,_0x39fc0d):_0x4ab4f3,_0x4b802a=_0x3cb6cb['length']-0x1,_0x23076d;_0x4b802a>=0x0;_0x4b802a--)(_0x23076d=_0x3cb6cb[_0x4b802a])&&(_0x3c4449=(_0x1063cc?_0x23076d(_0x4ab4f3,_0x39fc0d,_0x3c4449):_0x23076d(_0x3c4449))||_0x3c4449);return _0x1063cc&&_0x3c4449&&Cr(_0x4ab4f3,_0x39fc0d,_0x3c4449),_0x3c4449;},m=(_0xeab5bb,_0x4e83d1)=>(_0x27706a,_0x212867)=>_0x4e83d1(_0x27706a,_0x212867,_0xeab5bb),P=(_0x261200=>(_0x261200['NOT_COLLAB']='not_collab',_0x261200[_0x57f783(0x2b5)]=_0x57f783(0x4da),_0x261200[_0x57f783(0x51e)]=_0x57f783(0x34d),_0x261200[_0x57f783(0x36b)]='awaiting',_0x261200[_0x57f783(0x233)]=_0x57f783(0x326),_0x261200['FETCH_MISS']=_0x57f783(0x362),_0x261200[_0x57f783(0x3c8)]=_0x57f783(0x25c),_0x261200[_0x57f783(0x305)]='offline',_0x261200))(P||{});class ue{constructor(_0x28c471,_0x427e9f,_0x2455d0,_0x1f8ae7,_0x42c18f,_0x2d84a4,_0x5aa7e5,_0x578f76,_0x27949f){const _0x2b2a77=_0x57f783;l(this,'_awaitingChangeset',null),l(this,_0x2b2a77(0x2ce),[]),(this[_0x2b2a77(0x521)]=_0x28c471,this[_0x2b2a77(0x312)]=_0x427e9f,this[_0x2b2a77(0x4d9)]=_0x42c18f,this[_0x2b2a77(0x22f)]=_0x2d84a4,this[_0x2b2a77(0x2cd)]=_0x5aa7e5,this[_0x2b2a77(0x3bb)]=_0x578f76,this[_0x2b2a77(0x3f4)]=_0x27949f,this[_0x2b2a77(0x39f)]=_0x2455d0,this['_pendingMutations']=_0x1f8ae7);}[_0x57f783(0x4fc)](_0x218a3a){const _0x4f78e0=_0x57f783,_0x442219=this[_0x4f78e0(0x3bb)]['getCurrentRevOfUnit'](this[_0x4f78e0(0x521)]);return _0x218a3a[_0x4f78e0(0x411)]>_0x442219+0x1?(this[_0x4f78e0(0x4d9)][_0x4f78e0(0x382)]({'from':_0x442219,'to':_0x218a3a[_0x4f78e0(0x411)]-0x1}),!0x0):!0x1;}[_0x57f783(0x377)](_0x599df7){const _0x4fb653=_0x57f783;this[_0x4fb653(0x2cd)][_0x4fb653(0x3b1)](this[_0x4fb653(0x521)],_0x599df7);}['_transformSelections'](_0x5ae596){const _0x32559d=_0x57f783;var _0x52b2a3,_0x13c3fa;(_0x13c3fa=(_0x52b2a3=this[_0x32559d(0x4d9)])[_0x32559d(0x2bb)])==null||_0x13c3fa[_0x32559d(0x386)](_0x52b2a3,_0x5ae596);}[_0x57f783(0x423)](_0x94b655){const _0x5f5687=_0x57f783;var _0x2a0a5d,_0x52d67d;return(_0x52d67d=(_0x2a0a5d=this[_0x5f5687(0x4d9)])[_0x5f5687(0x47e)])==null?void 0x0:_0x52d67d[_0x5f5687(0x386)](_0x2a0a5d,_0x94b655);}[_0x57f783(0x358)](_0x1a51f1){const _0x1bc92f=_0x57f783;var _0x5f7c6a,_0xd2f1a5,_0x3a61e4;return(_0x3a61e4=(_0xd2f1a5=(_0x5f7c6a=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0xd2f1a5[_0x1bc92f(0x386)](_0x5f7c6a,_0x1a51f1))!=null?_0x3a61e4:_0x1a51f1;}[_0x57f783(0x27a)](_0x58ccbc){const _0x11c940=_0x57f783;var _0x33019a,_0x5cd8ab;if(this[_0x11c940(0x312)]===k['UNIVER_DOC']){const {unitID:_0x29e32e,mutations:_0x19f278,memberID:_0x55ea72}=_0x58ccbc,_0x350aab=_0x19f278[0x0][_0x11c940(0x4cc)]['textRanges'];Array[_0x11c940(0x40e)](_0x350aab)&&_0x350aab[_0x11c940(0x331)]>0x0&&((_0x5cd8ab=(_0x33019a=this[_0x11c940(0x4d9)])[_0x11c940(0x4f8)])==null||_0x5cd8ab[_0x11c940(0x386)](_0x33019a,{'unitID':_0x29e32e,'memberID':_0x55ea72,'textRanges':_0x350aab}));}}[_0x57f783(0x368)](){const _0x5946f8=_0x57f783;this['_localCacheService'][_0x5946f8(0x1ea)](this['unitID'],this['type'],this[_0x5946f8(0x39f)],this[_0x5946f8(0x2ce)]);}['_getCurrentRevision'](){const _0x4499a0=_0x57f783;return this[_0x4499a0(0x3bb)]['getCurrentRevOfUnit'](this['unitID']);}['_incrementRevisionNumber'](){const _0x218b70=_0x57f783;this[_0x218b70(0x3bb)][_0x218b70(0x292)](this[_0x218b70(0x521)]);}[_0x57f783(0x1e5)](_0x44387c){const _0x15ad50=_0x57f783;var _0x33bf3f;const _0x5b348e=this['_transformRemoteChangesetByIMECache'](_0x44387c),_0x3cc970=_0xa1610e(_0x5b348e['mutations'],this[_0x15ad50(0x22f)],{'fromCollab':!0x0});if(!_0x3cc970['result'])throw _0x3cc970[_0x15ad50(0x4ef)]instanceof Error?_0x3cc970[_0x15ad50(0x4ef)]:new Error((_0x33bf3f=_0x3cc970['error'])!=null?_0x33bf3f:_0x15ad50(0x500));this['_transformIMECache'](_0x5b348e),this[_0x15ad50(0x377)](_0x44387c),this[_0x15ad50(0x3b4)](_0x5b348e),this[_0x15ad50(0x27a)](_0x5b348e),this[_0x15ad50(0x455)]();}}let pe=class extends ue{constructor(_0x4cdf69,_0xee633a,_0x5173a0,_0x34d1c9,_0x5855ba,_0x4bba1b,_0x4d61f3,_0x2fc0e8,_0x50ed43,_0x1ad1b1){const _0x35b3e5=_0x57f783;super(_0x4cdf69,_0xee633a,null,[],_0x5173a0,_0x2fc0e8,_0x4d61f3,_0x34d1c9,_0x5855ba),l(this,_0x35b3e5(0x450),_0x35b3e5(0x4da)),(this['_injector']=_0x4bba1b,this[_0x35b3e5(0x542)]=_0x50ed43,this[_0x35b3e5(0x43b)]=_0x1ad1b1);}[_0x57f783(0x3ee)](_0x2e9d0d){const _0x5ff04e=_0x57f783,_0x17f6eb=this[_0x5ff04e(0x52c)]['createInstance'](X,this[_0x5ff04e(0x521)],this['type'],[_0x2e9d0d],this[_0x5ff04e(0x4d9)]);return _0x17f6eb[_0x5ff04e(0x4aa)](),_0x17f6eb['_updateLocalCache'](),_0x17f6eb;}[_0x57f783(0x31f)](_0x9e1e37){const _0x359b3d=_0x57f783;if(this[_0x359b3d(0x4fc)](_0x9e1e37))return this['_injector'][_0x359b3d(0x505)](B,this[_0x359b3d(0x521)],this[_0x359b3d(0x312)],null,[],null,[_0x9e1e37],this[_0x359b3d(0x4d9)]);try{const _0x3b7d0f=this['_transformService']['transformMutationsWithChangeset'](_0x9e1e37,[Er]);if(_0x2bc65d(_0x3b7d0f)){const {c1Prime:_0x53e749}=_0x3b7d0f;return this[_0x359b3d(0x1e5)](_0x53e749),this;}throw _0x3b7d0f[_0x359b3d(0x4ef)];}catch(_0x14c84a){return this['_logService'][_0x359b3d(0x4ef)](_0x14c84a),this[_0x359b3d(0x2aa)](!0x1);}}[_0x57f783(0x2aa)](_0x5e3521){const _0x2b93a8=_0x57f783;return this[_0x2b93a8(0x52c)][_0x2b93a8(0x505)](ee,this['unitID'],this[_0x2b93a8(0x312)],null,[],this[_0x2b93a8(0x4d9)],_0x5e3521);}['onRemoteAck'](){const _0xba0a1=_0x57f783;throw new Error(_0xba0a1(0x1d4));}[_0x57f783(0x527)](){const _0x1f074e=_0x57f783;throw new Error(_0x1f074e(0x4bc));}[_0x57f783(0x22c)](){const _0x162e04=_0x57f783;return this[_0x162e04(0x52c)][_0x162e04(0x505)](te,this[_0x162e04(0x521)],this[_0x162e04(0x312)],null,[],this[_0x162e04(0x4d9)]);}[_0x57f783(0x323)](){return this;}[_0x57f783(0x454)](){const _0x371ad3=_0x57f783;throw new Error(_0x371ad3(0x44e));}[_0x57f783(0x476)](){const _0x41fec8=_0x57f783,_0x1f47ea=this[_0x41fec8(0x3bb)][_0x41fec8(0x282)](this[_0x41fec8(0x521)]);return this[_0x41fec8(0x4d9)][_0x41fec8(0x382)]({'from':_0x1f47ea,'to':0x0}),this[_0x41fec8(0x52c)][_0x41fec8(0x505)](B,this[_0x41fec8(0x521)],this[_0x41fec8(0x312)],null,[],null,[],this[_0x41fec8(0x4d9)]);}};pe=_e([m(0x3,_0xbf893e(_0x9d3e90)),m(0x4,_0xbf893e(w)),m(0x5,_0xbf893e(_0x1e47c5)),m(0x6,_0x5a196a),m(0x7,_0x16b157),m(0x8,_0x508ae2),m(0x9,_0xe114b8)],pe);let X=class extends ue{constructor(_0x3b8faf,_0x50517e,_0x4b812c,_0x38512b,_0x111145,_0x4c448e,_0x58ef67,_0x3104d9,_0x499c5b,_0xb545d3,_0x36df39,_0x377b52,_0x957357,_0x2de1fb){const _0x221c8d=_0x57f783;super(_0x3b8faf,_0x50517e,null,_0x4b812c,_0x38512b,_0xb545d3,_0x2de1fb,_0x4c448e,_0x58ef67),l(this,_0x221c8d(0x450),'pending'),l(this,_0x221c8d(0x200),null),l(this,'_sendingTimer',null),(this[_0x221c8d(0x52c)]=_0x111145,this[_0x221c8d(0x488)]=_0x3104d9,this[_0x221c8d(0x542)]=_0x499c5b,this[_0x221c8d(0x1d6)]=_0x36df39,this['_transformService']=_0x377b52,this[_0x221c8d(0x439)]=_0x957357);}[_0x57f783(0x3ee)](_0x2b28ce){const _0x21fcc6=_0x57f783;return this[_0x21fcc6(0x2ce)][_0x21fcc6(0x50c)](_0x2b28ce),this[_0x21fcc6(0x368)](),this;}[_0x57f783(0x31f)](_0x3dd2fa){const _0x532370=_0x57f783;if(this['_checkMissing'](_0x3dd2fa))return this[_0x532370(0x262)](),this['_injector'][_0x532370(0x505)](B,this[_0x532370(0x521)],this['type'],null,this[_0x532370(0x2ce)],null,[_0x3dd2fa],this[_0x532370(0x4d9)]);try{const _0x57b5d4=this[_0x532370(0x43b)][_0x532370(0x21a)](_0x3dd2fa,this['_pendingMutations']);if(_0x2bc65d(_0x57b5d4)){const {c1Prime:_0x566cf6,m2Prime:_0x7da518}=_0x57b5d4;this[_0x532370(0x1e5)](_0x566cf6);const _0x11f606=this['_injector'][_0x532370(0x505)](X,this[_0x532370(0x521)],this[_0x532370(0x312)],_0x7da518,this[_0x532370(0x4d9)]);return this[_0x532370(0x262)](),_0x11f606[_0x532370(0x4aa)](this[_0x532370(0x200)]?Math[_0x532370(0x222)](0x0,new Date()['getTime']()-this['_scheduleTimestamp']):this[_0x532370(0x3d3)]()),_0x11f606;}throw _0x57b5d4[_0x532370(0x4ef)];}catch(_0x110e26){return this[_0x532370(0x542)]['error'](_0x110e26),this[_0x532370(0x2aa)](!0x1);}}[_0x57f783(0x2d8)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x2426cb=_0x57f783;throw new Error(_0x2426cb(0x26f));}[_0x57f783(0x22c)](){const _0x19805b=_0x57f783;return this[_0x19805b(0x262)](),this[_0x19805b(0x52c)][_0x19805b(0x505)](te,this[_0x19805b(0x521)],this[_0x19805b(0x312)],null,this[_0x19805b(0x2ce)],this[_0x19805b(0x4d9)]);}[_0x57f783(0x323)](){return this;}[_0x57f783(0x4aa)](_0x1c5627){const _0x5bd87f=_0x57f783,_0x1c9e33=_0x1c5627!=null?_0x1c5627:this[_0x5bd87f(0x3d3)]();this['_scheduleTimestamp']=new Date()[_0x5bd87f(0x4d5)](),this[_0x5bd87f(0x4a2)]=window[_0x5bd87f(0x397)](()=>{const _0x431e9c=_0x5bd87f;this[_0x431e9c(0x262)]();let _0x4b8bc6=null;switch(this[_0x431e9c(0x312)]){case k[_0x431e9c(0x258)]:{_0x4b8bc6=fs(this[_0x431e9c(0x2ce)],this['unitID'],this['_univerInstanceService'],this[_0x431e9c(0x3bb)],this['_memberService']);break;}case k[_0x431e9c(0x36f)]:{this[_0x431e9c(0x2ce)][_0x431e9c(0x4be)](_0x2b7e62=>_0x2b7e62['id']===_0x4d740f['id'])?_0x4b8bc6=Ir(this[_0x431e9c(0x2ce)],this[_0x431e9c(0x521)],this[_0x431e9c(0x439)],this['_revisionService'],this[_0x431e9c(0x488)]):_0x4b8bc6=fs(this[_0x431e9c(0x2ce)],this['unitID'],this[_0x431e9c(0x439)],this[_0x431e9c(0x3bb)],this['_memberService']);break;}default:throw new Error(_0x431e9c(0x2a4)+this[_0x431e9c(0x312)]+_0x431e9c(0x4d3));}const {changeset:_0x2f9537,pendingMutations:_0x579441}=_0x4b8bc6;this[_0x431e9c(0x4d9)][_0x431e9c(0x252)](_0x2f9537);const _0x12fa5c=_0x579441[_0x431e9c(0x331)]?this[_0x431e9c(0x52c)][_0x431e9c(0x505)](q,this['unitID'],this[_0x431e9c(0x312)],_0x2f9537,_0x579441,this[_0x431e9c(0x4d9)]):this[_0x431e9c(0x52c)]['createInstance'](Q,this['unitID'],this[_0x431e9c(0x312)],_0x2f9537,this[_0x431e9c(0x4d9)]);_0x12fa5c[_0x431e9c(0x368)](),this[_0x431e9c(0x4d9)]['onStateChange'](this,_0x12fa5c);},_0x1c9e33);}[_0x57f783(0x3d3)](){const _0x2eaca7=_0x57f783;var _0x600c1a;const _0x1ff130=this[_0x2eaca7(0x1d6)][_0x2eaca7(0x4fd)]($);return(_0x600c1a=_0x1ff130==null?void 0x0:_0x1ff130[_0x2eaca7(0x2d9)])!=null?_0x600c1a:In;}[_0x57f783(0x454)](){const _0x1e4882=_0x57f783;throw new Error(_0x1e4882(0x428));}['_clearScheduledTask'](){const _0x4f9008=_0x57f783;this['_sendingTimer']!=null&&(clearTimeout(this[_0x4f9008(0x4a2)]),this[_0x4f9008(0x4a2)]=null);}[_0x57f783(0x2aa)](_0x5e3ded){const _0x578a46=_0x57f783;return this['_clearScheduledTask'](),this[_0x578a46(0x52c)][_0x578a46(0x505)](ee,this[_0x578a46(0x521)],this[_0x578a46(0x312)],null,this[_0x578a46(0x2ce)],this[_0x578a46(0x4d9)],_0x5e3ded);}};X=_e([m(0x4,_0xbf893e(_0x1e47c5)),m(0x5,_0xbf893e(_0x9d3e90)),m(0x6,_0xbf893e(w)),m(0x7,_0xbf893e(ce)),m(0x8,_0x508ae2),m(0x9,_0x16b157),m(0xa,_0x32e210),m(0xb,_0xe114b8),m(0xc,_0x2fdc83),m(0xd,_0x5a196a)],X);let Q=class extends ue{constructor(_0x534e78,_0x4106b3,_0x4741e1,_0x1d549f,_0x2d03c2,_0x1d9d5c,_0x1212f0,_0x371b50,_0x2b0610,_0x46665b,_0x249c0d){const _0x763447=_0x57f783;super(_0x534e78,_0x4106b3,_0x4741e1,[],_0x1d549f,_0x371b50,_0x249c0d,_0x1d9d5c,_0x1212f0),l(this,_0x763447(0x450),_0x763447(0x318)),(this[_0x763447(0x52c)]=_0x2d03c2,this['_logService']=_0x2b0610,this[_0x763447(0x43b)]=_0x46665b);}['appendMutation'](_0x372b60){const _0x3d7e20=_0x57f783,_0x4cc17f=this[_0x3d7e20(0x52c)]['createInstance'](q,this[_0x3d7e20(0x521)],this['type'],this[_0x3d7e20(0x39f)],[_0x372b60],this[_0x3d7e20(0x4d9)]);return _0x4cc17f[_0x3d7e20(0x368)](),_0x4cc17f;}[_0x57f783(0x31f)](_0x36143f){const _0x1f044a=_0x57f783;if(this[_0x1f044a(0x4fc)](_0x36143f))return this[_0x1f044a(0x52c)]['createInstance'](B,this[_0x1f044a(0x521)],this['type'],this['_awaitingChangeset'],[],null,[_0x36143f],this[_0x1f044a(0x4d9)]);try{const _0x40ed90=this[_0x1f044a(0x43b)][_0x1f044a(0x474)]([_0x36143f],[this['_awaitingChangeset']],!0x1);if(_0x226c1d(_0x40ed90)){const {c1Prime:_0x30d506,c2Prime:_0x269304}=_0x40ed90;this[_0x1f044a(0x1e5)](_0x30d506[0x0]),_0x269304[0x0][_0x1f044a(0x458)]=this[_0x1f044a(0x1e6)]();const _0x59b7d0=this[_0x1f044a(0x52c)][_0x1f044a(0x505)](Q,this['unitID'],this[_0x1f044a(0x312)],_0x269304[0x0],this[_0x1f044a(0x4d9)]);return _0x59b7d0[_0x1f044a(0x368)](),_0x59b7d0;}return this[_0x1f044a(0x2aa)](!0x1);}catch(_0x185eed){return this[_0x1f044a(0x542)]['error'](_0x185eed),this['_onConflict'](!0x1);}}[_0x57f783(0x2d8)](_0x20b287){const _0x56e627=_0x57f783,_0x4674c6=this[_0x56e627(0x3bb)]['getCurrentRevOfUnit'](this[_0x56e627(0x521)]);if(_0x20b287['revision']<_0x4674c6-0x1)return this;if(this[_0x56e627(0x4fc)](_0x20b287))return this[_0x56e627(0x52c)][_0x56e627(0x505)](B,this[_0x56e627(0x521)],this[_0x56e627(0x312)],null,[],this[_0x56e627(0x39f)],[],this[_0x56e627(0x4d9)]);this[_0x56e627(0x455)]();const _0x2fdd9a=this['_injector']['createInstance'](pe,this[_0x56e627(0x521)],this['type'],this[_0x56e627(0x4d9)]);return _0x2fdd9a[_0x56e627(0x368)](),_0x2fdd9a;}[_0x57f783(0x527)](_0x25a3b9){const _0x14c4a4=_0x57f783;return this['_onConflict'](!!(_0x25a3b9!=null&&_0x25a3b9[_0x14c4a4(0x3f0)]));}[_0x57f783(0x22c)](){const _0x328e6d=_0x57f783;return this[_0x328e6d(0x52c)][_0x328e6d(0x505)](te,this[_0x328e6d(0x521)],this[_0x328e6d(0x312)],this['_awaitingChangeset'],[],this[_0x328e6d(0x4d9)]);}[_0x57f783(0x323)](){return this;}[_0x57f783(0x454)](){const _0x88a945=_0x57f783;this[_0x88a945(0x4d9)][_0x88a945(0x252)](this[_0x88a945(0x39f)]);}[_0x57f783(0x2aa)](_0xea34de){const _0x3e115b=_0x57f783;return this['_injector'][_0x3e115b(0x505)](ee,this[_0x3e115b(0x521)],this[_0x3e115b(0x312)],this[_0x3e115b(0x39f)],[],this[_0x3e115b(0x4d9)],_0xea34de);}};Q=_e([m(0x4,_0xbf893e(_0x1e47c5)),m(0x5,_0xbf893e(_0x9d3e90)),m(0x6,_0xbf893e(w)),m(0x7,_0x16b157),m(0x8,_0x508ae2),m(0x9,_0xe114b8),m(0xa,_0x5a196a)],Q);let q=class extends ue{constructor(_0x309ee3,_0x272344,_0x30132b,_0x20d60e,_0x2138f8,_0x33d656,_0xa57744,_0x4dd474,_0x3b2f6f,_0x31decf,_0x1ae302,_0x51af72){const _0x23b63b=_0x57f783;super(_0x309ee3,_0x272344,_0x30132b,_0x20d60e,_0x2138f8,_0x3b2f6f,_0x51af72,_0xa57744,_0x4dd474),l(this,'status',_0x23b63b(0x326)),(this[_0x23b63b(0x52c)]=_0x33d656,this[_0x23b63b(0x542)]=_0x31decf,this[_0x23b63b(0x43b)]=_0x1ae302);}[_0x57f783(0x3ee)](_0x5e6ff7){const _0x396585=_0x57f783;return this['_pendingMutations'][_0x396585(0x50c)](_0x5e6ff7),this;}[_0x57f783(0x31f)](_0xc82aa9){const _0x5ae1de=_0x57f783;if(this[_0x5ae1de(0x4fc)](_0xc82aa9))return this[_0x5ae1de(0x52c)][_0x5ae1de(0x505)](B,this[_0x5ae1de(0x521)],this[_0x5ae1de(0x312)],this['_awaitingChangeset'],this[_0x5ae1de(0x2ce)],null,[_0xc82aa9],this['_handler']);try{const _0x3cd501=this[_0x5ae1de(0x43b)][_0x5ae1de(0x474)]([_0xc82aa9],[this[_0x5ae1de(0x39f)]],!0x1);if(_0x226c1d(_0x3cd501)){const {c1Prime:_0xe68a9b,c2Prime:_0x537b5c}=_0x3cd501,_0x2fb428=this[_0x5ae1de(0x43b)][_0x5ae1de(0x21a)](_0xe68a9b[0x0],this[_0x5ae1de(0x2ce)]);if(_0x2bc65d(_0x2fb428)){const {c1Prime:_0x217b15,m2Prime:_0x314240}=_0x2fb428;return this['_executeRemoteChangeset'](_0x217b15),_0x537b5c[0x0][_0x5ae1de(0x458)]=this[_0x5ae1de(0x1e6)](),this[_0x5ae1de(0x52c)][_0x5ae1de(0x505)](q,this[_0x5ae1de(0x521)],this['type'],_0x537b5c[0x0],_0x314240,this[_0x5ae1de(0x4d9)]);}throw _0x2fb428[_0x5ae1de(0x4ef)];}throw _0x3cd501['error'];}catch(_0x5112f6){return this[_0x5ae1de(0x542)][_0x5ae1de(0x4ef)](_0x5112f6),this[_0x5ae1de(0x2aa)](!0x1);}}['onRemoteAck'](_0x551fad){const _0x34b4ee=_0x57f783;if(this[_0x34b4ee(0x4fc)](_0x551fad))return this[_0x34b4ee(0x52c)][_0x34b4ee(0x505)](B,this[_0x34b4ee(0x521)],this['type'],null,this['_pendingMutations'],this[_0x34b4ee(0x39f)],[],this[_0x34b4ee(0x4d9)]);this[_0x34b4ee(0x455)]();const _0xc3a2d2=this[_0x34b4ee(0x52c)]['createInstance'](X,this['unitID'],this[_0x34b4ee(0x312)],this['_pendingMutations'],this['_handler']);return _0xc3a2d2[_0x34b4ee(0x4aa)](),_0xc3a2d2[_0x34b4ee(0x368)](),_0xc3a2d2;}['onRemoteRej'](_0xc0fed6){const _0x3063b3=_0x57f783;return this[_0x3063b3(0x2aa)](!!(_0xc0fed6!=null&&_0xc0fed6[_0x3063b3(0x3f0)]));}[_0x57f783(0x22c)](){const _0x376b44=_0x57f783;return this[_0x376b44(0x52c)]['createInstance'](te,this['unitID'],this[_0x376b44(0x312)],this[_0x376b44(0x39f)],this['_pendingMutations'],this['_handler']);}['toggleOnline'](){return this;}['resend'](){const _0x18f662=_0x57f783;this[_0x18f662(0x4d9)][_0x18f662(0x252)](this[_0x18f662(0x39f)]);}['_onConflict'](_0x32c629){const _0x3fd503=_0x57f783;return this['_injector'][_0x3fd503(0x505)](ee,this[_0x3fd503(0x521)],this[_0x3fd503(0x312)],null,this[_0x3fd503(0x2ce)],this[_0x3fd503(0x4d9)],_0x32c629);}};q=_e([m(0x5,_0xbf893e(_0x1e47c5)),m(0x6,_0xbf893e(_0x9d3e90)),m(0x7,_0xbf893e(w)),m(0x8,_0x16b157),m(0x9,_0x508ae2),m(0xa,_0xe114b8),m(0xb,_0x5a196a)],q);let ee=class extends ue{constructor(_0x583742,_0x307ac4,_0x99134e,_0x3f4c93,_0x2b7088,_0x31475b=!0x1,_0x1d7e49,_0x163e90,_0x4567a3,_0x3732ae,_0x495e1d,_0x2ab907,_0x5715fe){const _0x2409be=_0x57f783;super(_0x583742,_0x307ac4,_0x99134e,_0x3f4c93,_0x2b7088,_0x163e90,_0x4567a3,_0x495e1d,_0x3732ae),l(this,_0x2409be(0x450),'conflict'),(this[_0x2409be(0x2a7)]=_0x31475b,this['_permissionService']=_0x1d7e49,this[_0x2409be(0x30c)]=_0x2ab907,this['_notificationService']=_0x5715fe,this['_showConflictNotification'](),this[_0x2409be(0x2b3)](),this[_0x2409be(0x4e9)]());}[_0x57f783(0x3ee)](){return this;}[_0x57f783(0x31f)](){return this;}[_0x57f783(0x2d8)](){return this;}[_0x57f783(0x527)](){return this;}[_0x57f783(0x22c)](){return this;}[_0x57f783(0x323)](){return this;}[_0x57f783(0x454)](){const _0x9cc18d=_0x57f783;throw new Error(_0x9cc18d(0x431));}[_0x57f783(0x2b3)](){const _0x448001=_0x57f783;this['_localCacheService'][_0x448001(0x1ea)](this['unitID'],this['type'],null,[]);}['_showConflictNotification'](){const _0x4adade=_0x57f783;this['_isPermissionRej']?this[_0x4adade(0x380)][_0x4adade(0x4a8)]({'title':this[_0x4adade(0x30c)]['t'](_0x4adade(0x26a)),'content':this[_0x4adade(0x30c)]['t']('permission.content'),'type':_0x4adade(0x4ef),'duration':0x0}):this[_0x4adade(0x380)]['show']({'title':this[_0x4adade(0x30c)]['t'](_0x4adade(0x54c)),'content':this[_0x4adade(0x30c)]['t'](_0x4adade(0x4ca)),'type':_0x4adade(0x4ef),'duration':0x0});}[_0x57f783(0x4e9)](){const _0x2dd493=_0x57f783;this['_permissionService']['updatePermissionPoint'](new _0x51ccc2(this[_0x2dd493(0x521)])['id'],!0x1);}};ee=_e([m(0x6,_0xbf893e(_0x2eefce)),m(0x7,_0x16b157),m(0x8,_0x5a196a),m(0x9,_0xbf893e(w)),m(0xa,_0xbf893e(_0x9d3e90)),m(0xb,_0xbf893e(_0x2b49aa)),m(0xc,_0x520317)],ee);let te=class extends ue{constructor(_0xedc8b0,_0x502912,_0x466578,_0x50ed75,_0x43a752,_0x329880,_0x549707,_0x7223,_0xed704e,_0x2c7f03){const _0x4b6b88=_0x57f783;super(_0xedc8b0,_0x502912,_0x466578,_0x50ed75,_0x43a752,_0xed704e,_0x2c7f03,_0x549707,_0x7223),l(this,_0x4b6b88(0x450),_0x4b6b88(0x302)),this[_0x4b6b88(0x52c)]=_0x329880;}[_0x57f783(0x3ee)](_0x3c6afd){const _0x1f92c0=_0x57f783;return this[_0x1f92c0(0x2ce)][_0x1f92c0(0x50c)](_0x3c6afd),this[_0x1f92c0(0x368)](),this;}[_0x57f783(0x31f)](_0x424758){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x57f783(0x2d8)](){const _0xa6a0a2=_0x57f783;throw new Error(_0xa6a0a2(0x239));}[_0x57f783(0x527)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x57f783(0x22c)](){return this;}['toggleOnline'](){const _0x4b0771=_0x57f783,{_injector:_0x20178f,_pendingMutations:_0x267332,_awaitingChangeset:_0x169a98,unitID:_0x36b00e,_handler:_0x2ac1ac,type:_0x1e42c9}=this,_0x4360dc=Fs(_0x20178f,_0x36b00e,_0x1e42c9,_0x169a98,_0x267332,_0x2ac1ac);return _0x4360dc instanceof X?_0x4360dc[_0x4b0771(0x4aa)]():(_0x4360dc instanceof q||_0x4360dc instanceof Q)&&_0x4360dc[_0x4b0771(0x454)](),_0x4360dc;}['resend'](){const _0x39ac44=_0x57f783;throw new Error(_0x39ac44(0x4d7));}};te=_e([m(0x5,_0xbf893e(_0x1e47c5)),m(0x6,_0xbf893e(_0x9d3e90)),m(0x7,_0xbf893e(w)),m(0x8,_0x16b157),m(0x9,_0x5a196a)],te);let B=class extends ue{constructor(_0x3af6e5,_0x5672a8,_0x2efef8,_0x1e0647,_0xf91410,_0x51564c,_0x2f1ebc,_0x1bc170,_0x466f38,_0x3c04e7,_0xb95e2,_0x20dceb,_0x1e325c,_0x4fafde){const _0x5a813a=_0x57f783;super(_0x3af6e5,_0x5672a8,_0x2efef8,_0x1e0647,_0x2f1ebc,_0x20dceb,_0x1e325c,_0x466f38,_0x3c04e7),l(this,_0x5a813a(0x450),'fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0xf91410,this[_0x5a813a(0x31c)]=_0x51564c,this[_0x5a813a(0x52c)]=_0x1bc170,this['_logService']=_0xb95e2,this[_0x5a813a(0x43b)]=_0x4fafde);}[_0x57f783(0x452)](_0x42773d){const _0x1da06a=_0x57f783;try{const _0x1b8738=[..._0x42773d,...this[_0x1da06a(0x31c)]],_0x240af0=[this[_0x1da06a(0x39f)]||this[_0x1da06a(0x49a)]][_0x1da06a(0x275)](_0xe815f4=>!!_0xe815f4);let _0x3b7852,_0x11a031;if(_0x240af0[_0x1da06a(0x331)]){const _0x3c5962=this[_0x1da06a(0x43b)][_0x1da06a(0x474)](_0x1b8738,_0x240af0,!0x1);if(!_0x226c1d(_0x3c5962))throw _0x3c5962[_0x1da06a(0x4ef)];_0x3b7852=_0x3c5962[_0x1da06a(0x4d8)],_0x11a031=_0x3c5962[_0x1da06a(0x426)];}else _0x3b7852=_0x1b8738,_0x11a031=[];let _0x339e54=this['_pendingMutations'];_0x3b7852[_0x1da06a(0x52a)](_0x384014=>{const _0x591f51=_0x1da06a;let _0x1b19e4;if(_0x339e54['length']){const _0x44309d=this[_0x591f51(0x43b)][_0x591f51(0x21a)](_0x384014,_0x339e54);if(!_0x2bc65d(_0x44309d))throw _0x44309d['error'];_0x1b19e4=_0x44309d[_0x591f51(0x4d8)],_0x339e54=_0x44309d['m2Prime'];}else _0x1b19e4=_0x384014;this[_0x591f51(0x1e5)](_0x1b19e4);}),this[_0x1da06a(0x49a)]&&this[_0x1da06a(0x455)](),this['_awaitingChangeset']&&_0x11a031[_0x1da06a(0x331)]&&(_0x11a031[0x0][_0x1da06a(0x458)]=this[_0x1da06a(0x1e6)]());let _0x31f40f;if(this[_0x1da06a(0x39f)]&&_0x339e54[_0x1da06a(0x331)]!==0x0)_0x31f40f=this['_injector']['createInstance'](q,this['unitID'],this[_0x1da06a(0x312)],_0x11a031[0x0],_0x339e54,this[_0x1da06a(0x4d9)]);else{if(this[_0x1da06a(0x39f)]&&_0x339e54[_0x1da06a(0x331)]===0x0)_0x11a031[0x0][_0x1da06a(0x458)]=this['_getCurrentRevision'](),_0x31f40f=this[_0x1da06a(0x52c)][_0x1da06a(0x505)](Q,this[_0x1da06a(0x521)],this['type'],_0x11a031[0x0],this[_0x1da06a(0x4d9)]);else{if(_0x339e54['length']!==0x0){const _0x2ee161=this[_0x1da06a(0x52c)][_0x1da06a(0x505)](X,this[_0x1da06a(0x521)],this['type'],_0x339e54,this[_0x1da06a(0x4d9)]);_0x2ee161[_0x1da06a(0x4aa)](),_0x31f40f=_0x2ee161;}else _0x31f40f=this[_0x1da06a(0x52c)]['createInstance'](pe,this[_0x1da06a(0x521)],this[_0x1da06a(0x312)],this[_0x1da06a(0x4d9)]);}}return _0x31f40f['_updateLocalCache'](),_0x31f40f;}catch(_0x499324){return this['_logService']['error'](_0x1da06a(0x2b6),_0x1da06a(0x2a6),_0x499324),this[_0x1da06a(0x52c)][_0x1da06a(0x505)](ee,this[_0x1da06a(0x521)],this[_0x1da06a(0x312)],this[_0x1da06a(0x39f)],this[_0x1da06a(0x2ce)],this[_0x1da06a(0x4d9)],!0x1);}}[_0x57f783(0x454)](){const _0x169e9d=_0x57f783;throw new Error(_0x169e9d(0x498));}[_0x57f783(0x3ee)](_0x483abb){const _0x5851ce=_0x57f783;return this[_0x5851ce(0x2ce)][_0x5851ce(0x50c)](_0x483abb),this;}['onRemoteChangeset'](_0x2dde3d){const _0x388636=_0x57f783;return this[_0x388636(0x31c)]['push'](_0x2dde3d),this;}['onRemoteAck'](_0x47ca1b){const _0x64e553=_0x57f783;if(this[_0x64e553(0x39f)])return this[_0x64e553(0x49a)]=this['_awaitingChangeset'],this[_0x64e553(0x39f)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x3d2cfd){const _0x34351c=_0x57f783;return this[_0x34351c(0x2aa)](!!(_0x3d2cfd!=null&&_0x3d2cfd[_0x34351c(0x3f0)]));}[_0x57f783(0x22c)](){const _0x170911=_0x57f783;return this[_0x170911(0x52c)][_0x170911(0x505)](te,this[_0x170911(0x521)],this[_0x170911(0x312)],this['_awaitingChangeset'],this[_0x170911(0x2ce)],this[_0x170911(0x4d9)]);}[_0x57f783(0x323)](){return this;}['_onConflict'](_0x31c38d){const _0x40e1b7=_0x57f783;return this[_0x40e1b7(0x52c)][_0x40e1b7(0x505)](ee,this['unitID'],this[_0x40e1b7(0x312)],this[_0x40e1b7(0x39f)],this[_0x40e1b7(0x2ce)],this[_0x40e1b7(0x4d9)],_0x31c38d);}};B=_e([m(0x7,_0xbf893e(_0x1e47c5)),m(0x8,_0xbf893e(_0x9d3e90)),m(0x9,_0xbf893e(w)),m(0xa,_0x508ae2),m(0xb,_0x16b157),m(0xc,_0x5a196a),m(0xd,_0xe114b8)],B);function Fs(_0x3f31be,_0x1cc94b,_0x484bf0,_0x4e1db9,_0x4448a4,_0x536a72){const _0x3a42b4=_0x57f783;return _0x4e1db9&&_0x4448a4['length']?_0x3f31be[_0x3a42b4(0x505)](q,_0x1cc94b,_0x484bf0,_0x4e1db9,_0x4448a4,_0x536a72):_0x4e1db9?_0x3f31be[_0x3a42b4(0x505)](Q,_0x1cc94b,_0x484bf0,_0x4e1db9,_0x536a72):_0x4448a4[_0x3a42b4(0x331)]?_0x3f31be[_0x3a42b4(0x505)](X,_0x1cc94b,_0x484bf0,_0x4448a4,_0x536a72):_0x3f31be['createInstance'](pe,_0x1cc94b,_0x484bf0,_0x536a72);}var Tr=Object[_0x57f783(0x370)],Rr=Object['getOwnPropertyDescriptor'],Gt=(_0x38ccd6,_0x1da07d,_0x3761b3,_0x27c472)=>{const _0x529cbf=_0x57f783;for(var _0x3a450d=_0x27c472>0x1?void 0x0:_0x27c472?Rr(_0x1da07d,_0x3761b3):_0x1da07d,_0xa1b0b7=_0x38ccd6[_0x529cbf(0x331)]-0x1,_0x9bfc72;_0xa1b0b7>=0x0;_0xa1b0b7--)(_0x9bfc72=_0x38ccd6[_0xa1b0b7])&&(_0x3a450d=(_0x27c472?_0x9bfc72(_0x1da07d,_0x3761b3,_0x3a450d):_0x9bfc72(_0x3a450d))||_0x3a450d);return _0x27c472&&_0x3a450d&&Tr(_0x1da07d,_0x3761b3,_0x3a450d),_0x3a450d;},p=(_0xd71f39,_0x46470c)=>(_0x2decac,_0x4f3a3d)=>_0x46470c(_0x2decac,_0x4f3a3d,_0xd71f39);let ze=class extends _0x4e2f23{constructor(_0x193421,_0x66baeb,_0x2359d1,_0x4ed0dc,_0x2931c7,_0x1223b5,_0x1ceaea,_0x55c6a3,_0x5151d2,_0x543a6f,_0x8b217,_0x23850e,_0x50d29a){const _0x25b58c=_0x57f783;super(),l(this,'_state$',new _0x1d28eb(null)),l(this,_0x25b58c(0x4a7),this[_0x25b58c(0x1f9)][_0x25b58c(0x22b)]()),l(this,_0x25b58c(0x541)),l(this,_0x25b58c(0x4cb),!0x1),l(this,_0x25b58c(0x4d2),''),l(this,_0x25b58c(0x37c),0x0),l(this,_0x25b58c(0x340),this['state$']['pipe'](_0x50a7a5(_0x438c3c=>_0x438c3c?_0x438c3c[_0x25b58c(0x450)]:P['OFFLINE']),_0x541027(0x1))),l(this,_0x25b58c(0x381),!0x1),l(this,_0x25b58c(0x484),[]),(this[_0x25b58c(0x521)]=_0x193421,this[_0x25b58c(0x52f)]=_0x66baeb,this['_type']=_0x2359d1,this[_0x25b58c(0x52c)]=_0x4ed0dc,this[_0x25b58c(0x3f4)]=_0x2931c7,this[_0x25b58c(0x430)]=_0x1223b5,this[_0x25b58c(0x30c)]=_0x1ceaea,this['_revisionService']=_0x55c6a3,this[_0x25b58c(0x542)]=_0x5151d2,this[_0x25b58c(0x22f)]=_0x543a6f,this['_messageService']=_0x8b217,this['_permissionService']=_0x23850e,this[_0x25b58c(0x349)]=_0x50d29a);}get[_0x57f783(0x280)](){const _0x4e30fd=_0x57f783;return this[_0x4e30fd(0x541)];}async['init'](){const _0x414717=_0x57f783;if(this[_0x414717(0x280)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x414717(0x36e)]();}[_0x57f783(0x378)](){const _0x552c08=_0x57f783;return this[_0x552c08(0x4cb)]=!0x0,_0x46ce9c(()=>{const _0x984299=_0x552c08;this[_0x984299(0x4cb)]=!0x1,this[_0x984299(0x314)]();});}[_0x57f783(0x388)](_0x5a7746){this['_state']=_0x5a7746,this['_state$']['next'](_0x5a7746);}async[_0x57f783(0x36e)](){const _0x3bead7=_0x57f783;var _0x12ede4;this[_0x3bead7(0x388)](await this[_0x3bead7(0x3f6)]()),this['_singleActiveUnitService']&&((_0x12ede4=this[_0x3bead7(0x349)])==null||_0x12ede4[_0x3bead7(0x2af)](this['unitID']),this['disposeWithMe'](this['_singleActiveUnitService'][_0x3bead7(0x3cd)](this['unitID'])[_0x3bead7(0x3c3)](_0x4d1439=>{const _0x120c99=_0x3bead7;this[_0x120c99(0x542)]['debug'](_0x120c99(0x2c5),_0x120c99(0x2f4),_0x4d1439),_0x4d1439===Bs['OTHER_CLIENTS_EDITING']?(this[_0x120c99(0x350)][_0x120c99(0x4a8)]({'content':this['_localeService']['t'](_0x120c99(0x53f)),'type':_0x13294d[_0x120c99(0x226)]}),this[_0x120c99(0x519)]['updatePermissionPoint'](new _0x51ccc2(this[_0x120c99(0x521)])['id'],!0x1)):this['_permissionService'][_0x120c99(0x408)](new _0x51ccc2(this['unitID'])['id'],!0x0);})));let _0x7cc707=!0x1;return this[_0x3bead7(0x50d)](this[_0x3bead7(0x52f)][_0x3bead7(0x29c)]['subscribe'](_0x159a0d=>{const _0xbd4d9c=_0x3bead7;_0x159a0d===Y[_0xbd4d9c(0x32c)]?this['_toggleOnline'](_0x7cc707):_0x159a0d===Y[_0xbd4d9c(0x305)]&&(_0x7cc707=!0x0,this[_0xbd4d9c(0x422)]());})),this[_0x3bead7(0x50d)](this['session'][_0x3bead7(0x330)][_0x3bead7(0x3c3)](_0x2320d7=>{const _0x49e397=_0x3bead7;try{switch(_0x2320d7['eventID']){case _0x39fb90[_0x49e397(0x50e)]:{this[_0x49e397(0x490)](_0x358d2a(_0x2320d7[_0x49e397(0x4c0)]));break;}case _0x39fb90['CHANGESET_ACK']:{this['_onRemoteACK'](_0x2320d7[_0x49e397(0x4c0)]);break;}case _0x39fb90['CHANGESET_REJ']:{this[_0x49e397(0x310)]();break;}case _0x39fb90[_0x49e397(0x1fe)]:{this['_onFetchMissResult'](_0x2320d7[_0x49e397(0x4c0)][_0x49e397(0x356)][_0x49e397(0x337)](_0x3ae50c=>_0x358d2a(_0x3ae50c)));break;}case _0x39fb90[_0x49e397(0x49e)]:this[_0x49e397(0x310)]({'isPermissionRej':!0x0});}}catch(_0xa2a0b5){throw console[_0x49e397(0x4ef)](_0x49e397(0x434),_0xa2a0b5),_0xa2a0b5;}})),this['_state'];}[_0x57f783(0x3c0)](){const _0xaa5406=_0x57f783;this[_0xaa5406(0x381)]=!0x1;}[_0x57f783(0x2ca)](){const _0x5cb62d=_0x57f783;if(this[_0x5cb62d(0x381)])throw new Error(_0x5cb62d(0x37b));this[_0x5cb62d(0x381)]=!0x0;}[_0x57f783(0x2f9)](_0x2c85c6){const _0x4743a5=_0x57f783;this[_0x4743a5(0x2ca)](),this[_0x4743a5(0x388)](this[_0x4743a5(0x541)]['appendMutation'](_0x2c85c6)),this[_0x4743a5(0x3c0)]();}[_0x57f783(0x490)](_0x309953){const _0x2d760a=_0x57f783;if(!(_0x309953[_0x2d760a(0x411)]<=this[_0x2d760a(0x3bb)][_0x2d760a(0x282)](this[_0x2d760a(0x521)]))){if(this['_collaborationPaused']){this[_0x2d760a(0x484)][_0x2d760a(0x50c)](_0x309953);return;}this[_0x2d760a(0x407)](_0x309953);}}[_0x57f783(0x314)](){const _0x4474f1=_0x57f783;this[_0x4474f1(0x484)][_0x4474f1(0x52a)](_0x1ee022=>this[_0x4474f1(0x407)](_0x1ee022)),this[_0x4474f1(0x484)]=[];}['_applyRemoteChangeset'](_0x49d3d1){const _0xd66592=_0x57f783,_0x4e730b=this['_compressMutationService'][_0xd66592(0x36d)]['fetchThroughInterceptors'](this[_0xd66592(0x430)][_0xd66592(0x36d)][_0xd66592(0x401)]()[_0xd66592(0x4a0)])(_0x49d3d1['mutations'],null)||_0x49d3d1[_0xd66592(0x53a)],_0x38e588={..._0x49d3d1,'mutations':_0x4e730b};this[_0xd66592(0x2ca)](),this[_0xd66592(0x388)](this[_0xd66592(0x541)][_0xd66592(0x31f)](_0x38e588)),this[_0xd66592(0x3c0)]();}[_0x57f783(0x3e5)](_0x3aa309){const _0x5f251e=_0x57f783;this[_0x5f251e(0x2ca)](),this[_0x5f251e(0x388)](this['_state'][_0x5f251e(0x2d8)](_0x3aa309)),this['_unlockTransition']();}['_onRemoteRejected'](_0x4a3d6e){const _0x3b8492=_0x57f783;this[_0x3b8492(0x2ca)](),this['_updateState'](this['_state']['onRemoteRej'](_0x4a3d6e)),this[_0x3b8492(0x3c0)]();}[_0x57f783(0x277)](_0xafd369){const _0x203077=_0x57f783;if(!(this['_state']instanceof B))throw new TypeError(_0x203077(0x209));const _0x5b0fee=_0xafd369[_0x203077(0x337)](_0x370bfe=>{const _0x24d20c=_0x203077,_0x4232e7=this[_0x24d20c(0x430)]['interceptor'][_0x24d20c(0x4b8)](this[_0x24d20c(0x430)][_0x24d20c(0x36d)][_0x24d20c(0x401)]()[_0x24d20c(0x4a0)])(_0x370bfe[_0x24d20c(0x53a)],null)||_0x370bfe[_0x24d20c(0x53a)];return{..._0x370bfe,'mutations':_0x4232e7};});this[_0x203077(0x2ca)](),this['_updateState'](this[_0x203077(0x541)][_0x203077(0x452)](_0x5b0fee)),this['_unlockTransition']();}[_0x57f783(0x422)](){const _0x58e940=_0x57f783;this[_0x58e940(0x2ca)](),this[_0x58e940(0x388)](this[_0x58e940(0x541)]['toggleOffline']()),this[_0x58e940(0x3c0)]();}['_toggleOnline'](_0x53bf46=!0x1){const _0x55ea7b=_0x57f783;this[_0x55ea7b(0x2ca)](),this[_0x55ea7b(0x388)](this['_state']['toggleOnline']()),this[_0x55ea7b(0x3c0)]();const _0x22007c=this[_0x55ea7b(0x541)];_0x53bf46&&_0x22007c instanceof pe&&(this[_0x55ea7b(0x2ca)](),this['_updateState'](_0x22007c['fetchMiss']()),this[_0x55ea7b(0x3c0)]());}async['_createInitialState'](){return new Promise(_0x5a284e=>{const _0x308e70=_0x5499;this[_0x308e70(0x52f)][_0x308e70(0x29c)][_0x308e70(0x2ba)](_0x19c20d(0x1))[_0x308e70(0x3c3)](async _0x3a7aa6=>{const _0x25141c=_0x308e70;_0x5a284e(await this[_0x25141c(0x45a)](_0x3a7aa6===Y['ONLINE']));});});}[_0x57f783(0x234)](){const _0x2694b2=this['unitID'];return{'onStateChange':(_0x16fcb2,_0x3f8514)=>{const _0x3b2577=_0x5499;if(_0x16fcb2!==this['_state'])throw new Error(_0x3b2577(0x2e5)+_0x16fcb2[_0x3b2577(0x450)]+_0x3b2577(0x429)+_0x3f8514[_0x3b2577(0x450)]+_0x3b2577(0x2eb)+this[_0x3b2577(0x541)]['status']);this[_0x3b2577(0x388)](_0x3f8514);},'onSendChangeset':_0x12f3da=>{const _0xbde3b1=_0x5499;_0x12f3da['sid']||(_0x12f3da['sid']=this['_changesetSessionId'],_0x12f3da[_0xbde3b1(0x28b)]=++this[_0xbde3b1(0x37c)]);const _0x57b45a={'eventID':_0x39fb90[_0xbde3b1(0x354)],'data':{'unitID':_0x12f3da[_0xbde3b1(0x521)],'unitType':this[_0xbde3b1(0x45e)],'changeset':_0x12f3da,'memberID':this['session'][_0xbde3b1(0x32e)]()}};this[_0xbde3b1(0x52f)][_0xbde3b1(0x259)](_0x57b45a,this['unitID']);},'onMissingChangesets':({from:_0x3d382e,to:_0xa7f6d9})=>{const _0x4dae74=_0x5499;this[_0x4dae74(0x542)][_0x4dae74(0x3a7)](_0x4dae74(0x2c5),_0x4dae74(0x1e0)+_0x3d382e+_0x4dae74(0x4ba)+_0xa7f6d9);const _0x141cd3={'eventID':_0x39fb90['FETCH_MISSING'],'data':{'unitID':_0x2694b2,'unitType':this['_type'],'from':_0x3d382e,'to':_0xa7f6d9}};this[_0x4dae74(0x52f)][_0x4dae74(0x259)](_0x141cd3,this[_0x4dae74(0x521)]);}};}async[_0x57f783(0x45a)](_0x2b649c){const _0x394148=_0x57f783;var _0x5165a9,_0x21e9e4;const _0x3adc1c=await this[_0x394148(0x3f4)]['loadOfflineData'](this[_0x394148(0x521)]),_0x5a9b2d=(_0x5165a9=_0x3adc1c==null?void 0x0:_0x3adc1c[_0x394148(0x53a)])!=null?_0x5165a9:[],_0x58267b=(_0x21e9e4=_0x3adc1c==null?void 0x0:_0x3adc1c['awaitingChangeset'])!=null?_0x21e9e4:null,_0x57e254=!!(_0x58267b!=null&&_0x58267b[_0x394148(0x424)])&&!!(_0x58267b!=null&&_0x58267b[_0x394148(0x28b)]);this['_changesetSessionId']=_0x57e254?_0x58267b['sid']:ir(),this[_0x394148(0x37c)]=_0x57e254?_0x58267b[_0x394148(0x28b)]:0x0;const _0x14b14e=this[_0x394148(0x521)];try{this[_0x394148(0x3cf)](_0x58267b,_0x5a9b2d);}catch(_0x3a30f5){this[_0x394148(0x542)][_0x394148(0x4ef)](_0x3a30f5);}const _0x348f1b=this[_0x394148(0x234)]();if(_0x2b649c){const _0x355733=Fs(this[_0x394148(0x52c)],_0x14b14e,this['_type'],_0x58267b,_0x5a9b2d,_0x348f1b);return _0x355733 instanceof X?_0x355733[_0x394148(0x4aa)]():(_0x355733 instanceof q||_0x355733 instanceof Q)&&_0x355733[_0x394148(0x454)](),_0x355733;}return this['_injector'][_0x394148(0x505)](te,_0x14b14e,this['_type'],_0x58267b,_0x5a9b2d,_0x348f1b);}['_replayCachedMutations'](_0x4fd865,_0x5c0386){const _0x3b8b41=_0x57f783;var _0x10e9d2,_0x1a07a9;const _0x136847=this[_0x3b8b41(0x430)][_0x3b8b41(0x36d)][_0x3b8b41(0x4b8)](this[_0x3b8b41(0x430)][_0x3b8b41(0x36d)][_0x3b8b41(0x401)]()[_0x3b8b41(0x4a0)]);(_0x10e9d2=_0x136847((_0x4fd865==null?void 0x0:_0x4fd865['mutations'])||[],null))==null||_0x10e9d2[_0x3b8b41(0x52a)](_0x3a8da2=>this[_0x3b8b41(0x22f)]['executeCommand'](_0x3a8da2['id'],_0x3a8da2['params'])),(_0x1a07a9=_0x136847(_0x5c0386||[],null))==null||_0x1a07a9[_0x3b8b41(0x52a)](_0x3a2da2=>this['_commandService'][_0x3b8b41(0x26b)](_0x3a2da2['id'],_0x3a2da2[_0x3b8b41(0x4cc)]));}};ze=Gt([p(0x3,_0xbf893e(_0x1e47c5)),p(0x4,_0xbf893e(w)),p(0x5,_0xbf893e(_0x56e1ea)),p(0x6,_0xbf893e(_0x2b49aa)),p(0x7,_0xbf893e(_0x9d3e90)),p(0x8,_0x508ae2),p(0x9,_0x16b157),p(0xa,_0x37b80d),p(0xb,_0x2eefce),p(0xc,_0x8646ba(it))],ze);let Ot=class extends ze{constructor(_0x14d5dd,_0x1aa8ce,_0x3f6ec8,_0x2068df,_0x6afaa6,_0x7b0c36,_0x1e4ce2,_0x24f537,_0x5be1a9,_0x2fa119,_0x242d86,_0x2691d3,_0x35fa0b,_0x186c8e,_0x14e14b,_0x5d08a7,_0x51b1d7){const _0x11c4ce=_0x57f783;super(_0x14d5dd,_0x3f6ec8,_0x1aa8ce,_0x2068df,_0x6afaa6,_0x7b0c36,_0x1e4ce2,_0x24f537,_0x35fa0b,_0x186c8e,_0x14e14b,_0x5d08a7,_0x51b1d7),this['unitID']=_0x14d5dd,this[_0x11c4ce(0x312)]=_0x1aa8ce,this[_0x11c4ce(0x1f4)]=_0x5be1a9,this[_0x11c4ce(0x3ff)]=_0x2fa119,this[_0x11c4ce(0x477)]=_0x242d86,this[_0x11c4ce(0x3a0)]=_0x2691d3;}['_createHandler'](){const _0x244b46=_0x57f783,_0x45d29b=super[_0x244b46(0x234)]();return _0x45d29b[_0x244b46(0x47e)]=_0xab956d=>this[_0x244b46(0x3ff)][_0x244b46(0x504)](_0xab956d),_0x45d29b[_0x244b46(0x2bb)]=_0x5acbee=>this[_0x244b46(0x477)][_0x244b46(0x283)](_0x5acbee),_0x45d29b[_0x244b46(0x4f8)]=_0x36a50b=>this['_docSyncEditingCollabCursorService'][_0x244b46(0x387)](_0x36a50b),_0x45d29b[_0x244b46(0x1ed)]=_0x570f50=>this[_0x244b46(0x3ff)][_0x244b46(0x1d7)](_0x570f50),_0x45d29b;}async['_init'](){const _0x532276=_0x57f783,_0x2f528e=await super['_init']();return this['disposeWithMe'](this[_0x532276(0x22f)][_0x532276(0x2e1)]((_0x286c20,_0x12bede)=>{const _0x46de1c=_0x532276;if(_0x286c20[_0x46de1c(0x312)]!==_0xc98010['MUTATION']||_0x12bede!=null&&_0x12bede['fromCollab']||_0x12bede!=null&&_0x12bede[_0x46de1c(0x207)])return;const _0x1d358d=_0x286c20[_0x46de1c(0x4cc)];if((_0x1d358d==null?void 0x0:_0x1d358d[_0x46de1c(0x3da)])!==this[_0x46de1c(0x521)])return;let _0x319ff1=_0x286c20;if(_0x319ff1['id']===_0x4d740f['id']){const _0x10473b=_0x319ff1['params'];_0x319ff1={'id':_0x4d740f['id'],'type':_0xc98010[_0x46de1c(0x2f6)],'params':{'unitId':_0x10473b[_0x46de1c(0x3da)],'actions':_0x10473b[_0x46de1c(0x4ec)],'textRanges':null}};}const _0x3646dd=this[_0x46de1c(0x430)][_0x46de1c(0x36d)][_0x46de1c(0x4b8)](this[_0x46de1c(0x430)]['interceptor'][_0x46de1c(0x401)]()['COMPRESS_MUTATION_SEND'])([_0x319ff1],null)||[_0x319ff1];this[_0x46de1c(0x2f9)](_0x3646dd[0x0]);})),_0x2f528e;}};Ot=Gt([p(0x3,_0xbf893e(_0x1e47c5)),p(0x4,_0xbf893e(w)),p(0x5,_0xbf893e(_0x56e1ea)),p(0x6,_0xbf893e(_0x2b49aa)),p(0x7,_0xbf893e(_0x9d3e90)),p(0x8,_0xbf893e(_0x4a2e09)),p(0x9,_0xbf893e(Xe)),p(0xa,_0xbf893e(Je)),p(0xb,_0xbf893e(Wt)),p(0xc,_0x508ae2),p(0xd,_0x16b157),p(0xe,_0x37b80d),p(0xf,_0x2eefce),p(0x10,_0x8646ba(it))],Ot);let Dt=class extends ze{constructor(_0x46ae09,_0x380046,_0x2908ba,_0x368a11,_0x302211,_0x562da7,_0x24caf2,_0x5c9b83,_0x138611,_0x3882a7,_0x3a931b,_0x2f85e7,_0x20df05,_0x1b8c06){const _0x4c525f=_0x57f783;super(_0x46ae09,_0x2908ba,_0x380046,_0x368a11,_0x302211,_0x562da7,_0x24caf2,_0x5c9b83,_0x3882a7,_0x3a931b,_0x2f85e7,_0x20df05,_0x1b8c06),this[_0x4c525f(0x521)]=_0x46ae09,this[_0x4c525f(0x312)]=_0x380046,this[_0x4c525f(0x324)]=_0x138611;}[_0x57f783(0x234)](){const _0x20a9e3=_0x57f783,_0x4f8c24=super['_createHandler']();return _0x4f8c24[_0x20a9e3(0x2bb)]=_0x4a84ca=>this[_0x20a9e3(0x324)][_0x20a9e3(0x283)](_0x4a84ca),_0x4f8c24;}async[_0x57f783(0x36e)](){const _0x2f3bed=_0x57f783,_0x111341=await super[_0x2f3bed(0x36e)]();return this[_0x2f3bed(0x50d)](this[_0x2f3bed(0x22f)][_0x2f3bed(0x2e1)]((_0x4bb2fb,_0x49ee57)=>{const _0x43142=_0x2f3bed;if(_0x4bb2fb[_0x43142(0x312)]!==_0xc98010[_0x43142(0x2f6)]||_0x49ee57!=null&&_0x49ee57[_0x43142(0x227)]||_0x49ee57!=null&&_0x49ee57['onlyLocal'])return;const _0x558513=_0x4bb2fb[_0x43142(0x4cc)];if((_0x558513==null?void 0x0:_0x558513[_0x43142(0x3da)])!==this['unitID'])return;const _0x134afa=_0x4bb2fb,_0x3bc578=this[_0x43142(0x430)][_0x43142(0x36d)][_0x43142(0x4b8)](this[_0x43142(0x430)][_0x43142(0x36d)][_0x43142(0x401)]()[_0x43142(0x223)])([_0x134afa],null)||[_0x134afa];this[_0x43142(0x2f9)](_0x3bc578[0x0]);})),_0x111341;}};Dt=Gt([p(0x3,_0xbf893e(_0x1e47c5)),p(0x4,_0xbf893e(w)),p(0x5,_0xbf893e(_0x56e1ea)),p(0x6,_0xbf893e(_0x2b49aa)),p(0x7,_0xbf893e(_0x9d3e90)),p(0x8,_0xbf893e(qe)),p(0x9,_0x508ae2),p(0xa,_0x16b157),p(0xb,_0x37b80d),p(0xc,_0x2eefce),p(0xd,_0x8646ba(it))],Dt);var Or=Object[_0x57f783(0x370)],Dr=Object['getOwnPropertyDescriptor'],wr=(_0x571a2c,_0x5dcf6c,_0x3dfdc0,_0x394394)=>{const _0x5d80c1=_0x57f783;for(var _0x1cc5b7=_0x394394>0x1?void 0x0:_0x394394?Dr(_0x5dcf6c,_0x3dfdc0):_0x5dcf6c,_0xfa4c11=_0x571a2c[_0x5d80c1(0x331)]-0x1,_0x4ab198;_0xfa4c11>=0x0;_0xfa4c11--)(_0x4ab198=_0x571a2c[_0xfa4c11])&&(_0x1cc5b7=(_0x394394?_0x4ab198(_0x5dcf6c,_0x3dfdc0,_0x1cc5b7):_0x4ab198(_0x1cc5b7))||_0x1cc5b7);return _0x394394&&_0x1cc5b7&&Or(_0x5dcf6c,_0x3dfdc0,_0x1cc5b7),_0x1cc5b7;},dt=(_0x3bde5f,_0x10063b)=>(_0x381074,_0x257bda)=>_0x10063b(_0x381074,_0x257bda,_0x3bde5f);let Le=class extends _0x4e2f23{constructor(_0x12ff5c,_0x3af541,_0x4aa922){const _0x2a7c7b=_0x57f783;super(),l(this,_0x2a7c7b(0x35e),new Map()),l(this,_0x2a7c7b(0x516),new _0x4d30e5()),(this[_0x2a7c7b(0x52c)]=_0x12ff5c,this['_collabSessionService']=_0x3af541,this[_0x2a7c7b(0x439)]=_0x4aa922,this[_0x2a7c7b(0x36e)]());}['dispose'](){const _0x21aec9=_0x57f783;super[_0x21aec9(0x309)](),this[_0x21aec9(0x35e)]['forEach'](_0x295cae=>_0x295cae[_0x21aec9(0x309)]()),this[_0x21aec9(0x35e)][_0x21aec9(0x3bf)]();}['getCollabEntity'](_0x4840ea){const _0x3c0cab=_0x57f783;var _0x3c4a0d;return(_0x3c4a0d=this[_0x3c0cab(0x35e)]['get'](_0x4840ea))!=null?_0x3c4a0d:null;}['getCollabEntity$'](_0x15290b){const _0xc3bf53=_0x57f783,_0x23022f=this['getCollabEntity'](_0x15290b);return _0x23022f?_0xd76332(_0x23022f):this[_0xc3bf53(0x516)][_0xc3bf53(0x2ba)](_0x5a107f(_0x5e01fb=>_0x5e01fb[_0xc3bf53(0x521)]===_0x15290b));}['_init'](){const _0x377f71=_0x57f783;this['_univerInstanceService'][_0x377f71(0x229)](_0x3cefd0[_0x377f71(0x258)])[_0x377f71(0x2ba)](_0x341fba(this[_0x377f71(0x379)]),_0x186907(0x10))['subscribe'](async _0x5b8316=>{const _0x3d6b7d=_0x377f71,_0x21a44c=_0x5b8316[_0x3d6b7d(0x507)](),_0x164517=await this[_0x3d6b7d(0x2c1)](_0x21a44c,k[_0x3d6b7d(0x258)]);this[_0x3d6b7d(0x35e)]['set'](_0x21a44c,_0x164517);}),this[_0x377f71(0x439)][_0x377f71(0x229)](_0x3cefd0['UNIVER_DOC'])['pipe'](_0x341fba(this['dispose$']),_0x186907(0x10))[_0x377f71(0x2ba)](_0x5a107f(_0x191bee=>!_0x191bee[_0x377f71(0x507)]()[_0x377f71(0x410)]('__')))[_0x377f71(0x3c3)](async _0x4e83e6=>{const _0x4cb78b=_0x377f71,_0x4c7085=_0x4e83e6[_0x4cb78b(0x507)](),_0x7a44b3=await this[_0x4cb78b(0x2c1)](_0x4c7085,k[_0x4cb78b(0x36f)]);this[_0x4cb78b(0x35e)][_0x4cb78b(0x54b)](_0x4c7085,_0x7a44b3);}),_0x431898(this[_0x377f71(0x439)][_0x377f71(0x511)](_0x3cefd0['UNIVER_SHEET']),this[_0x377f71(0x439)][_0x377f71(0x511)](_0x3cefd0[_0x377f71(0x36f)]))[_0x377f71(0x2ba)](_0x341fba(this[_0x377f71(0x379)]))[_0x377f71(0x3c3)](_0xbb2656=>{const _0x149f62=_0x377f71,_0x5c1b97=_0xbb2656[_0x149f62(0x507)](),_0x507c7f=this[_0x149f62(0x35e)][_0x149f62(0x2c8)](_0x5c1b97);_0x507c7f&&(_0x507c7f[_0x149f62(0x309)](),this[_0x149f62(0x35e)][_0x149f62(0x210)](_0x5c1b97));});}async[_0x57f783(0x2c1)](_0x3cb0a1,_0x30b241){const _0x387c92=_0x57f783,_0x31b345=await this[_0x387c92(0x213)]['requireSession'](_0x3cb0a1),_0x2a7b4e=this[_0x387c92(0x52c)][_0x387c92(0x505)](this[_0x387c92(0x40c)](_0x30b241),_0x3cb0a1,_0x30b241,_0x31b345);return await _0x2a7b4e[_0x387c92(0x4d0)](),this[_0x387c92(0x516)][_0x387c92(0x393)](_0x2a7b4e),_0x2a7b4e;}[_0x57f783(0x40c)](_0x9b5749){const _0x5953c7=_0x57f783;switch(_0x9b5749){case k['UNIVER_DOC']:return Ot;case k[_0x5953c7(0x258)]:return Dt;default:throw new Error(_0x5953c7(0x34a)+_0x9b5749);}}};Le=wr([dt(0x0,_0xbf893e(_0x1e47c5)),dt(0x1,_0xbf893e(he)),dt(0x2,_0x2fdc83)],Le);const ms=[_0x57f783(0x4b2),_0x57f783(0x20a),_0x57f783(0x510),_0x57f783(0x24b),_0x57f783(0x2dc),_0x57f783(0x3ef)];class Yt extends _0x291656{constructor(){const _0x58f369=_0x57f783;super(...arguments),l(this,_0x58f369(0x2c9),new Map()),l(this,_0x58f369(0x3d7),0x0);}[_0x57f783(0x40a)](_0x28bf2a){const _0x1502af=_0x57f783;if(this['_assignedColors'][_0x1502af(0x3d6)](_0x28bf2a))return this[_0x1502af(0x2c9)]['get'](_0x28bf2a);const _0x280d1a=ms[this[_0x1502af(0x3d7)]];return this['_colorIndex']=(this[_0x1502af(0x3d7)]+0x1)%ms[_0x1502af(0x331)],this[_0x1502af(0x2c9)]['set'](_0x28bf2a,_0x280d1a),_0x280d1a;}}var Pr=Object[_0x57f783(0x370)],yr=Object[_0x57f783(0x265)],Ur=(_0x5808a7,_0x59d301,_0x21aca8,_0x202843)=>{const _0x9e2607=_0x57f783;for(var _0x28f5f2=_0x202843>0x1?void 0x0:_0x202843?yr(_0x59d301,_0x21aca8):_0x59d301,_0x268d5c=_0x5808a7[_0x9e2607(0x331)]-0x1,_0x1128f2;_0x268d5c>=0x0;_0x268d5c--)(_0x1128f2=_0x5808a7[_0x268d5c])&&(_0x28f5f2=(_0x202843?_0x1128f2(_0x59d301,_0x21aca8,_0x28f5f2):_0x1128f2(_0x28f5f2))||_0x28f5f2);return _0x202843&&_0x28f5f2&&Pr(_0x59d301,_0x21aca8,_0x28f5f2),_0x28f5f2;},ie=(_0x1528be,_0x365817)=>(_0x382252,_0xdc129d)=>_0x365817(_0x382252,_0xdc129d,_0x1528be);const Nr=0x12c,Mr=0x64;let wt=class extends _0x4e2f23{constructor(_0x19596c,_0x1f630e,_0x1a7f53,_0x527ab3,_0x109f59,_0x208660,_0x35ecd1,_0x196dbe,_0x133835){const _0x3deefa=_0x57f783;super(),l(this,_0x3deefa(0x3ce),!0x1),l(this,_0x3deefa(0x36e),!0x1),l(this,_0x3deefa(0x549),new _0x1d28eb(new Map())),l(this,_0x3deefa(0x4ea),this[_0x3deefa(0x549)][_0x3deefa(0x22b)]()),l(this,'_roomMembers$',new _0x1d28eb([])),l(this,_0x3deefa(0x4d1),this['_roomMembers$'][_0x3deefa(0x2ba)](_0x3f0923(Nr))),l(this,_0x3deefa(0x269),_0x314bbe(_0x1225cf=>{const _0x2c439e=_0x3deefa,_0x285c7={'eventID':_0x39fb90['UPDATE_CURSOR'],'data':{'unitID':this[_0x2c439e(0x521)],'memberID':this[_0x2c439e(0x2ef)]['getMemberID'](),'selection':Vs(_0x1225cf)}};this[_0x2c439e(0x2ef)][_0x2c439e(0x259)](_0x285c7,this[_0x2c439e(0x521)]);},Mr)),(this[_0x3deefa(0x521)]=_0x19596c,this[_0x3deefa(0x2ef)]=_0x1f630e,this[_0x3deefa(0x52c)]=_0x1a7f53,this[_0x3deefa(0x2e9)]=_0x527ab3,this['_memberService']=_0x109f59,this[_0x3deefa(0x228)]=_0x208660,this['_transformService']=_0x35ecd1,this[_0x3deefa(0x439)]=_0x196dbe,this[_0x3deefa(0x22f)]=_0x133835);}get[_0x57f783(0x2e7)](){const _0x16672f=_0x57f783;return this['_cursorInfo$'][_0x16672f(0x3be)]();}get[_0x57f783(0x3b7)](){const _0x1a1bc4=_0x57f783;return this[_0x1a1bc4(0x520)][_0x1a1bc4(0x3be)]();}[_0x57f783(0x309)](){const _0x3f6727=_0x57f783;super[_0x3f6727(0x309)](),this['_cursorInfo$'][_0x3f6727(0x393)](new Map()),this[_0x3f6727(0x549)]['complete'](),this[_0x3f6727(0x520)][_0x3f6727(0x393)]([]),this[_0x3f6727(0x520)]['complete']();}[_0x57f783(0x4d0)](){const _0x11f940=_0x57f783;this[_0x11f940(0x36e)]||(this['_init']=!0x0,this[_0x11f940(0x2ef)]['sessionStatus$'][_0x11f940(0x2ba)](_0x341fba(this[_0x11f940(0x379)]))[_0x11f940(0x3c3)](_0x2895b8=>{const _0x2467e1=_0x11f940;_0x2895b8===Y['ONLINE']?this[_0x2467e1(0x403)]():this[_0x2467e1(0x422)]();}),this[_0x11f940(0x2ef)][_0x11f940(0x330)][_0x11f940(0x2ba)](_0x341fba(this[_0x11f940(0x379)]))[_0x11f940(0x3c3)](_0x489f7a=>{const _0x459e82=_0x11f940,_0x64acf8=_0x489f7a[_0x459e82(0x413)];_0x64acf8===_0x39fb90[_0x459e82(0x3a5)]&&this[_0x459e82(0x369)](_0x489f7a),_0x64acf8===_0x39fb90[_0x459e82(0x50a)]&&this['_onCursorDelete'](_0x489f7a);}),this[_0x11f940(0x50d)](this['_commandService'][_0x11f940(0x2e1)](_0x169438=>{const _0x29a0ee=_0x11f940,_0x999f1b=_0x169438[_0x29a0ee(0x4cc)];_0x999f1b!=null&&this[_0x29a0ee(0x3ce)]&&_0x169438['id']===_0x554b39['id']&&_0x999f1b[_0x29a0ee(0x3da)]===this['unitID']&&_0x999f1b['isEditing']===!0x1&&this[_0x29a0ee(0x269)](_0x999f1b[_0x29a0ee(0x3f9)]);})),this[_0x11f940(0x228)]['collabCursorState$']['pipe'](_0x341fba(this[_0x11f940(0x379)]))[_0x11f940(0x3c3)](_0x6a6196=>{const _0x2bd86f=_0x11f940;if((_0x6a6196==null?void 0x0:_0x6a6196['unitID'])!==this['unitID'])return;const _0x48e571={'eventID':_0x39fb90[_0x2bd86f(0x3a5)],'data':_0x6a6196};this['_onCursorUpdate'](_0x48e571);}),this['disposeWithMe'](this[_0x11f940(0x22f)][_0x11f940(0x2e1)](_0x2c942c=>{const _0x1b9cc6=_0x11f940;if(_0x2c942c[_0x1b9cc6(0x4cc)]==null)return;const _0x17336f=_0x2c942c[_0x1b9cc6(0x4cc)];if(_0x2c942c['id']!==_0x4d740f['id']||_0x17336f['unitId']!==this['unitID'])return;const _0x428d90={'id':_0x1b9cc6(0x3ab),'params':_0x17336f},_0x1fefad=this['cursorInfo'];for(const [_0x335c8a,_0x1a080f]of _0x1fefad){const _0x12951a={'id':_0x1b9cc6(0x3ab),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x1a080f[_0x1b9cc6(0x3f9)]}},_0x325e0c=this[_0x1b9cc6(0x43b)][_0x1b9cc6(0x4b3)](_0x428d90,_0x12951a,!0x1);if(_0x261e80(_0x325e0c))throw _0x325e0c[_0x1b9cc6(0x4ef)];_0x1fefad[_0x1b9cc6(0x54b)](_0x335c8a,{..._0x1a080f,'ranges':_0x325e0c[_0x1b9cc6(0x526)]['params'][_0x1b9cc6(0x2dd)]});}queueMicrotask(()=>{const _0x2bb808=_0x1b9cc6;this[_0x2bb808(0x549)][_0x2bb808(0x393)](_0x1fefad);});})));}[_0x57f783(0x369)](_0x3d8016){const _0x1a6606=_0x57f783;var _0x296567,_0x1317f9;const {memberID:_0x1fd98d,selection:_0x4ecca9}=_0x3d8016[_0x1a6606(0x4c0)],_0x449029=mr(_0x4ecca9),_0x50d046=(_0x1317f9=(_0x296567=this['_memberService']['getMember'](this[_0x1a6606(0x521)],_0x1fd98d))==null?void 0x0:_0x296567[_0x1a6606(0x442)])!=null?_0x1317f9:_0x1a6606(0x365),_0x17891e={'color':this['_colorAssignService'][_0x1a6606(0x40a)](_0x1fd98d),'name':_0x50d046,'ranges':_0x449029},_0x1a966a=this[_0x1a6606(0x2e7)];_0x1a966a[_0x1a6606(0x54b)](_0x1fd98d,_0x17891e),this['_cursorInfo$'][_0x1a6606(0x393)](_0x1a966a);}['_onCursorDelete'](_0x3f90fc){const _0x1b6294=_0x57f783,{memberID:_0x32ef0d}=_0x3f90fc['data'],_0x5bcc4f=this[_0x1b6294(0x2e7)];_0x5bcc4f['delete'](_0x32ef0d),this[_0x1b6294(0x549)]['next'](_0x5bcc4f);}[_0x57f783(0x403)](){const _0x546a7e=_0x57f783;var _0x126102;if(this[_0x546a7e(0x3ce)]=!0x0,((_0x126102=this[_0x546a7e(0x439)][_0x546a7e(0x3dc)]())==null?void 0x0:_0x126102[_0x546a7e(0x507)]())!==this[_0x546a7e(0x521)])return;const _0x1d604b=this['_injector']['get'](_0x400ba1)['getDocRanges']();Array[_0x546a7e(0x40e)](_0x1d604b)&&_0x1d604b[_0x546a7e(0x331)]>0x0&&this['_updateLocalCursor'](_0x1d604b);}[_0x57f783(0x422)](){const _0x5c4118=_0x57f783;this[_0x5c4118(0x3ce)]=!0x1;}};wt=Ur([ie(0x2,_0xbf893e(_0x1e47c5)),ie(0x3,_0xbf893e(Yt)),ie(0x4,_0xbf893e(ce)),ie(0x5,_0xbf893e(Wt)),ie(0x6,_0xe114b8),ie(0x7,_0x2fdc83),ie(0x8,_0x16b157)],wt);var Ar=Object[_0x57f783(0x370)],Lr=Object['getOwnPropertyDescriptor'],$r=(_0x374f00,_0x3f979e,_0x5cd5db,_0x1a4189)=>{for(var _0x1158cb=_0x1a4189>0x1?void 0x0:_0x1a4189?Lr(_0x3f979e,_0x5cd5db):_0x3f979e,_0x18a20c=_0x374f00['length']-0x1,_0x239ff7;_0x18a20c>=0x0;_0x18a20c--)(_0x239ff7=_0x374f00[_0x18a20c])&&(_0x1158cb=(_0x1a4189?_0x239ff7(_0x3f979e,_0x5cd5db,_0x1158cb):_0x239ff7(_0x1158cb))||_0x1158cb);return _0x1a4189&&_0x1158cb&&Ar(_0x3f979e,_0x5cd5db,_0x1158cb),_0x1158cb;},me=(_0x41cd6f,_0xba40b4)=>(_0x3419d9,_0x35c3d9)=>_0xba40b4(_0x3419d9,_0x35c3d9,_0x41cd6f);const jr=0x12c,xr=0x64,Hr=()=>{let _0x3658c4=[],_0x2416e6=!0x1;return _0x4be428=>{const _0x4d1202=_0x5499;_0x3658c4[_0x4d1202(0x50c)](_0x4be428),_0x2416e6||(_0x2416e6=!0x0,setTimeout(()=>{const _0x5211b2=_0x4d1202;_0x3658c4[_0x5211b2(0x52a)](_0x37e1be=>_0x37e1be()),_0x3658c4=[],_0x2416e6=!0x1;}));};};let Pt=class extends _0x4e2f23{constructor(_0x292616,_0x268fe7,_0x3629d8,_0x49a7d8,_0x2daa8b,_0x424c37,_0x2df7e5,_0x2b0a92){const _0x293d3f=_0x57f783;super(),l(this,_0x293d3f(0x3ce),!0x1),l(this,'_init',!0x1),l(this,_0x293d3f(0x549),new _0x1d28eb(new Map())),l(this,_0x293d3f(0x4ea),this['_cursorInfo$'][_0x293d3f(0x22b)]()),l(this,_0x293d3f(0x520),new _0x1d28eb([])),l(this,_0x293d3f(0x4d1),this[_0x293d3f(0x520)]['pipe'](_0x3f0923(jr))),l(this,'_updateLocalCursor',_0x314bbe((_0x1f31a5,_0x574634)=>{const _0x123512=_0x293d3f,_0x7dbc4f={'eventID':_0x39fb90[_0x123512(0x3a5)],'data':{'unitID':this['unitID'],'memberID':this[_0x123512(0x2ef)][_0x123512(0x32e)](),'selection':_0x296316(_0x1f31a5,_0x574634[_0x123512(0x3fb)])}};this[_0x123512(0x2ef)][_0x123512(0x259)](_0x7dbc4f,this[_0x123512(0x521)]);},xr)),(this[_0x293d3f(0x521)]=_0x292616,this[_0x293d3f(0x2ef)]=_0x268fe7,this['_injector']=_0x3629d8,this[_0x293d3f(0x2e9)]=_0x49a7d8,this['_memberService']=_0x2daa8b,this[_0x293d3f(0x439)]=_0x424c37,this[_0x293d3f(0x22f)]=_0x2df7e5,this['_refRangeService']=_0x2b0a92);}get[_0x57f783(0x2e7)](){const _0x2dcd79=_0x57f783;return this[_0x2dcd79(0x549)][_0x2dcd79(0x3be)]();}get[_0x57f783(0x3b7)](){const _0xb517fd=_0x57f783;return this[_0xb517fd(0x520)][_0xb517fd(0x3be)]();}[_0x57f783(0x309)](){const _0x3ac77b=_0x57f783;super[_0x3ac77b(0x309)](),this['_cursorInfo$'][_0x3ac77b(0x393)](new Map()),this[_0x3ac77b(0x549)][_0x3ac77b(0x3d5)](),this[_0x3ac77b(0x520)]['next']([]),this[_0x3ac77b(0x520)]['complete']();}[_0x57f783(0x4d0)](){const _0x1601e0=_0x57f783;this[_0x1601e0(0x36e)]||(this[_0x1601e0(0x36e)]=!0x0,this[_0x1601e0(0x2ef)][_0x1601e0(0x29c)][_0x1601e0(0x2ba)](_0x341fba(this[_0x1601e0(0x379)]))[_0x1601e0(0x3c3)](_0x8f9d8=>{const _0x140fbf=_0x1601e0;_0x8f9d8===Y[_0x140fbf(0x32c)]?this['_toggleOnline']():this[_0x140fbf(0x422)]();}),this['_session']['event$']['pipe'](_0x341fba(this['dispose$']))[_0x1601e0(0x3c3)](_0x2dd1c4=>{const _0x5e10f8=_0x1601e0,_0x5a13ce=_0x2dd1c4[_0x5e10f8(0x413)];_0x5a13ce===_0x39fb90[_0x5e10f8(0x3a5)]&&this[_0x5e10f8(0x369)](_0x2dd1c4),_0x5a13ce===_0x39fb90['USERS_LEAVE']&&this[_0x5e10f8(0x501)](_0x2dd1c4);}),this[_0x1601e0(0x4f7)](),this[_0x1601e0(0x50d)](this['_commandService'][_0x1601e0(0x2e1)](_0x42e8fd=>{const _0x386f7f=_0x1601e0;if(this[_0x386f7f(0x3ce)]&&_0x42e8fd['id']===_0x3117a9['id']&&_0x42e8fd[_0x386f7f(0x4cc)]['unitId']===this[_0x386f7f(0x521)]){const _0x285e23=_0x42e8fd['params'];this[_0x386f7f(0x269)](_0x285e23[_0x386f7f(0x481)],_0x285e23[_0x386f7f(0x306)][0x0]);}})));}[_0x57f783(0x369)](_0x3e7086){const _0x36c3f4=_0x57f783;var _0x3c950c,_0x589be6;const {memberID:_0x2811a1,selection:_0x1fd2f8}=_0x3e7086[_0x36c3f4(0x4c0)],{sheetName:_0x2db06b,range:_0x127df5}=_0xbc5326(_0x1fd2f8),_0x3bf478={'name':(_0x589be6=(_0x3c950c=this[_0x36c3f4(0x488)][_0x36c3f4(0x1dc)](this[_0x36c3f4(0x521)],_0x2811a1))==null?void 0x0:_0x3c950c['name'])!=null?_0x589be6:_0x36c3f4(0x365),'range':this[_0x36c3f4(0x2d5)](_0x2db06b,_0x127df5),'sheetID':_0x2db06b,'color':this[_0x36c3f4(0x2e9)][_0x36c3f4(0x40a)](_0x2811a1),'selection':_0x1fd2f8},_0x318e7a=this['cursorInfo'];_0x318e7a['set'](_0x2811a1,_0x3bf478),this[_0x36c3f4(0x549)][_0x36c3f4(0x393)](_0x318e7a);}[_0x57f783(0x501)](_0x28d513){const _0x3b1360=_0x57f783,{memberID:_0x5d563e}=_0x28d513['data'],_0x31a116=this['cursorInfo'];_0x31a116['delete'](_0x5d563e),this[_0x3b1360(0x549)][_0x3b1360(0x393)](_0x31a116);}['_getMergeRange'](_0x4806a6,_0x5a4d19){const _0x4c0924=_0x57f783;var _0xb3935f,_0x40c24d;const _0x55a62f=(_0x40c24d=(_0xb3935f=this[_0x4c0924(0x439)][_0x4c0924(0x2fe)](this['unitID']))==null?void 0x0:_0xb3935f['getSheetBySheetId'](_0x4806a6))==null?void 0x0:_0x40c24d[_0x4c0924(0x1e3)]();return(_0x55a62f==null?void 0x0:_0x55a62f[_0x4c0924(0x25b)](_0x2a0b36=>_0x3d407f['contains'](_0x2a0b36,_0x5a4d19)))||_0x5a4d19;}['_onRefRangeChange'](){const _0x4d8ae2=_0x57f783,_0x322e4a=new _0x297473(),_0x2cb73e=Hr(),_0x5582f2=()=>{_0x322e4a['dispose']();const _0x11f340=(_0x498048,_0x21b7aa,_0x352394,_0x54ae9f)=>{const _0x3511eb=_0x5499;let _0x7d0063=[];switch(_0x498048['id']){case _0x5ed3cf[_0x3511eb(0x2f5)]:{_0x7d0063=_0x51beb4(_0x498048,_0x54ae9f);break;}case _0x5ed3cf[_0x3511eb(0x4b5)]:{_0x7d0063=_0x385568(_0x498048,_0x54ae9f);break;}case _0x5ed3cf[_0x3511eb(0x215)]:{_0x7d0063=_0x4d21b9(_0x498048,_0x54ae9f);break;}case _0x5ed3cf[_0x3511eb(0x483)]:{_0x7d0063=_0x4712bd(_0x498048,_0x54ae9f);break;}case _0x5ed3cf[_0x3511eb(0x20c)]:{_0x7d0063=_0x19b077(_0x498048,_0x54ae9f);break;}case _0x5ed3cf['InsertRowCommandId']:{_0x7d0063=_0x30139c(_0x498048,_0x54ae9f);break;}case _0x5ed3cf[_0x3511eb(0x3bd)]:{_0x7d0063=_0x577433(_0x498048,_0x54ae9f);break;}case _0x5ed3cf[_0x3511eb(0x201)]:{_0x7d0063=_0xa2beed(_0x498048,_0x54ae9f);break;}case _0x5ed3cf[_0x3511eb(0x514)]:{_0x7d0063=_0x4e8450(_0x498048,_0x54ae9f);break;}}const _0x5dce7f=_0x53ba94(_0x7d0063,_0x54ae9f),_0x4dc9b5=this[_0x3511eb(0x2e7)]['get'](_0x21b7aa);if(_0x4dc9b5&&_0x5dce7f){const _0xe230c3={..._0x4dc9b5,'range':_0x5dce7f};this[_0x3511eb(0x2e7)][_0x3511eb(0x54b)](_0x21b7aa,_0xe230c3),_0x2cb73e(()=>{const _0x4995b5=_0x3511eb,_0x1dde30=this[_0x4995b5(0x255)][_0x4995b5(0x2e2)](_0x5dce7f,_0x543904=>(_0x1dde30[_0x4995b5(0x309)](),_0x11f340(_0x543904,_0x21b7aa,_0x352394,_0x5dce7f)));_0x322e4a[_0x4995b5(0x3cc)](_0x1dde30);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x354c4e,_0x36017e)=>{const _0x40d2bb=_0x5499,{range:_0x2ca40e,sheetID:_0x2f978c}=_0x354c4e,_0x554a7c=this[_0x40d2bb(0x255)][_0x40d2bb(0x2e2)](_0x2ca40e,_0x1619bf=>(_0x554a7c[_0x40d2bb(0x309)](),_0x11f340(_0x1619bf,_0x36017e,_0x2f978c,_0x2ca40e)));_0x322e4a[_0x40d2bb(0x3cc)](_0x554a7c);});};this['disposeWithMe'](_0x46ce9c(this[_0x4d8ae2(0x549)][_0x4d8ae2(0x3c3)](()=>{_0x5582f2();})));}[_0x57f783(0x403)](){const _0x316790=_0x57f783;var _0x4b6d6d,_0x5385fd;if(this[_0x316790(0x3ce)]=!0x0,((_0x4b6d6d=this[_0x316790(0x439)][_0x316790(0x3dc)]())==null?void 0x0:_0x4b6d6d[_0x316790(0x507)]())!==this[_0x316790(0x521)])return;const _0x5a3f2a=(_0x5385fd=this[_0x316790(0x52c)][_0x316790(0x2c8)](_0x2ff974)['getCurrentSelections']())==null?void 0x0:_0x5385fd[0x0],_0x6034ca=this[_0x316790(0x439)][_0x316790(0x1d0)](_0x3cefd0[_0x316790(0x258)])['getActiveSheet']();_0x5a3f2a&&_0x6034ca&&this[_0x316790(0x269)](_0x6034ca['getSheetId'](),_0x5a3f2a);}['_toggleOffline'](){this['_online']=!0x1;}};Pt=$r([me(0x2,_0xbf893e(_0x1e47c5)),me(0x3,_0xbf893e(Yt)),me(0x4,_0xbf893e(ce)),me(0x5,_0x2fdc83),me(0x6,_0x16b157),me(0x7,_0xbf893e(_0x88ce42))],Pt);var kr=Object[_0x57f783(0x370)],Br=Object[_0x57f783(0x265)],Vr=(_0x561808,_0x42c594,_0x1c7ce7,_0x5dad96)=>{const _0x5662b5=_0x57f783;for(var _0x4ee5d3=_0x5dad96>0x1?void 0x0:_0x5dad96?Br(_0x42c594,_0x1c7ce7):_0x42c594,_0x2d8588=_0x561808[_0x5662b5(0x331)]-0x1,_0x193903;_0x2d8588>=0x0;_0x2d8588--)(_0x193903=_0x561808[_0x2d8588])&&(_0x4ee5d3=(_0x5dad96?_0x193903(_0x42c594,_0x1c7ce7,_0x4ee5d3):_0x193903(_0x4ee5d3))||_0x4ee5d3);return _0x5dad96&&_0x4ee5d3&&kr(_0x42c594,_0x1c7ce7,_0x4ee5d3),_0x4ee5d3;},ft=(_0x1d1aa3,_0x39e177)=>(_0xb542fa,_0xe98f9f)=>_0x39e177(_0xb542fa,_0xe98f9f,_0x1d1aa3);let ve=class extends _0x4e2f23{constructor(_0x50a1c6,_0x4f7026,_0x5d879f){const _0x576caa=_0x57f783;super(),l(this,_0x576caa(0x35e),new Map()),l(this,'_entityInit$',new _0x4d30e5()),(this[_0x576caa(0x439)]=_0x50a1c6,this[_0x576caa(0x52c)]=_0x4f7026,this[_0x576caa(0x213)]=_0x5d879f,this[_0x576caa(0x36e)]());}[_0x57f783(0x309)](){const _0x399082=_0x57f783;super[_0x399082(0x309)](),this[_0x399082(0x516)][_0x399082(0x3d5)](),this['_entities']['forEach'](_0x114c4c=>_0x114c4c['dispose']());}[_0x57f783(0x360)](_0x24d58b){const _0x9fe459=_0x57f783;return this['_entities'][_0x9fe459(0x3d6)](_0x24d58b)?this['_entities'][_0x9fe459(0x2c8)](_0x24d58b)['cursorInfo$']:this[_0x9fe459(0x516)][_0x9fe459(0x2ba)](_0x4a170a(_0x3fc415=>_0x3fc415[_0x9fe459(0x521)]===_0x24d58b),_0x56169e(_0x3f9893=>_0x3f9893['cursorInfo$']));}['_init'](){const _0x33ebfe=_0x57f783;this['_univerInstanceService'][_0x33ebfe(0x229)](_0x3cefd0[_0x33ebfe(0x258)])[_0x33ebfe(0x2ba)](_0x341fba(this[_0x33ebfe(0x379)]))[_0x33ebfe(0x3c3)](async _0x41735e=>{const _0x25e0ba=_0x33ebfe,_0x55a911=_0x41735e[_0x25e0ba(0x507)](),_0x447821=await this['_startSheetCollabCursor'](_0x55a911);this['_entityInit$']['next'](_0x447821),this['_entities'][_0x25e0ba(0x54b)](_0x55a911,_0x447821);}),this[_0x33ebfe(0x439)][_0x33ebfe(0x229)](_0x3cefd0[_0x33ebfe(0x36f)])[_0x33ebfe(0x2ba)](_0x341fba(this['dispose$']))[_0x33ebfe(0x2ba)](_0x4a170a(_0x1c59be=>!_0x1c59be['getUnitId']()[_0x33ebfe(0x410)]('__')))[_0x33ebfe(0x3c3)](async _0xe86b39=>{const _0x5b8b81=_0x33ebfe,_0x115801=_0xe86b39[_0x5b8b81(0x507)](),_0x514dbb=await this[_0x5b8b81(0x279)](_0x115801);this['_entityInit$']['next'](_0x514dbb),this[_0x5b8b81(0x35e)]['set'](_0x115801,_0x514dbb);}),_0x431898(this[_0x33ebfe(0x439)]['getTypeOfUnitDisposed$'](_0x3cefd0[_0x33ebfe(0x36f)]),this[_0x33ebfe(0x439)]['getTypeOfUnitDisposed$'](_0x3cefd0[_0x33ebfe(0x258)]))['pipe'](_0x341fba(this['dispose$']))[_0x33ebfe(0x3c3)](_0x2a747e=>{const _0x162a7c=_0x33ebfe,_0x3c935f=_0x2a747e[_0x162a7c(0x507)](),_0x8c8a2f=this[_0x162a7c(0x35e)][_0x162a7c(0x2c8)](_0x3c935f);_0x8c8a2f&&(_0x8c8a2f[_0x162a7c(0x309)](),this[_0x162a7c(0x35e)][_0x162a7c(0x210)](_0x3c935f));});}async[_0x57f783(0x2be)](_0x3e00c2){const _0x57893e=_0x57f783,_0x16ca84=await this['_collabSessionService'][_0x57893e(0x412)](_0x3e00c2),_0x2f40c6=this[_0x57893e(0x52c)]['createInstance'](Pt,_0x3e00c2,_0x16ca84);return _0x2f40c6['init'](),_0x2f40c6;}async['_startDocCollabCursor'](_0x313601){const _0x5b35d2=_0x57f783,_0xb07176=await this[_0x5b35d2(0x213)][_0x5b35d2(0x412)](_0x313601),_0x484565=this[_0x5b35d2(0x52c)][_0x5b35d2(0x505)](wt,_0x313601,_0xb07176);return _0x484565[_0x5b35d2(0x4d0)](),_0x484565;}};ve=Vr([ft(0x0,_0x2fdc83),ft(0x1,_0xbf893e(_0x1e47c5)),ft(0x2,_0xbf893e(he))],ve);const $e=0x14,gs=0xc8,mt=0x4,Fr=0x5;function Wr(_0x25ec65,_0x286f58){const _0x28f076=_0x57f783;let {radius:_0x127f69,width:_0x53716b,height:_0x4736fd}=_0x286f58;_0x127f69=_0x127f69!=null?_0x127f69:0x0,_0x53716b=_0x53716b!=null?_0x53716b:0x1e,_0x4736fd=_0x4736fd!=null?_0x4736fd:0x1e;let _0x4dc8ea=0x0,_0x19e84e=0x0,_0x52930a=0x0;_0x4dc8ea=_0x19e84e=_0x52930a=Math[_0x28f076(0x35f)](_0x127f69,_0x53716b/0x2,_0x4736fd/0x2),_0x25ec65['beginPath'](),_0x25ec65[_0x28f076(0x54d)](_0x4dc8ea,0x0),_0x25ec65['lineTo'](_0x53716b-_0x19e84e,0x0),_0x25ec65[_0x28f076(0x281)](_0x53716b-_0x19e84e,_0x19e84e,_0x19e84e,Math['PI']*0x3/0x2,0x0,!0x1),_0x25ec65['lineTo'](_0x53716b,_0x4736fd-_0x52930a),_0x25ec65[_0x28f076(0x281)](_0x53716b-_0x52930a,_0x4736fd-_0x52930a,_0x52930a,0x0,Math['PI']/0x2,!0x1),_0x25ec65[_0x28f076(0x4a6)](0x0,_0x4736fd),_0x25ec65[_0x28f076(0x4a6)](0x0,_0x4dc8ea),_0x25ec65[_0x28f076(0x281)](_0x4dc8ea,_0x4dc8ea,_0x4dc8ea,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x25ec65[_0x28f076(0x1dd)](),_0x286f58['fill']&&(_0x25ec65['save'](),_0x25ec65['fillStyle']=_0x286f58[_0x28f076(0x2b9)],_0x286f58[_0x28f076(0x21d)]==='evenodd'?_0x25ec65[_0x28f076(0x2b9)](_0x28f076(0x4ad)):_0x25ec65[_0x28f076(0x2b9)](),_0x25ec65['restore']());}class nt extends _0x261c3c{constructor(_0x272fa2,_0x14e11c){const _0x13a7c9=_0x57f783;super(_0x272fa2,_0x14e11c),l(this,'color'),l(this,_0x13a7c9(0x2b1)),(this[_0x13a7c9(0x457)]=_0x14e11c==null?void 0x0:_0x14e11c['color'],this['text']=_0x14e11c==null?void 0x0:_0x14e11c[_0x13a7c9(0x2b1)]);}static['drawWith'](_0x3c5b4f,_0x24a490){const _0x13bb8a=_0x57f783,{text:_0x4107cb,color:_0x38f830}=_0x24a490;_0x3c5b4f[_0x13bb8a(0x389)](),_0x3c5b4f['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x110e35=_0x3c5b4f[_0x13bb8a(0x475)](_0x4107cb)[_0x13bb8a(0x392)],_0x317ecd=Math['min'](_0x110e35+0x2*mt,gs);Wr(_0x3c5b4f,{'height':$e,'radius':0x4,'width':_0x317ecd,'fill':_0x38f830,'evented':!0x1}),_0x3c5b4f[_0x13bb8a(0x30b)]='#FFF';const _0x90ce6f=mt,_0x461ab0=$e-Fr,_0x12ad63=gs-0x2*mt;if(_0x110e35>_0x12ad63){let _0x3404ba='',_0x4abed8=0x0;for(const _0x399319 of _0x4107cb){const _0x5bd983=_0x3c5b4f[_0x13bb8a(0x475)](_0x399319)['width'];if(_0x4abed8+_0x5bd983<=_0x12ad63-_0x3c5b4f[_0x13bb8a(0x475)](_0x13bb8a(0x525))[_0x13bb8a(0x392)])_0x3404ba+=_0x399319,_0x4abed8+=_0x5bd983;else{_0x3404ba+=_0x13bb8a(0x525);break;}}_0x3c5b4f[_0x13bb8a(0x4c9)](_0x3404ba,_0x90ce6f,_0x461ab0);}else _0x3c5b4f[_0x13bb8a(0x4c9)](_0x4107cb,_0x90ce6f,_0x461ab0);_0x3c5b4f['restore']();}[_0x57f783(0x3af)](_0x943770){nt['drawWith'](_0x943770,this);}}const gt='collab-text-anchor-',Gr=_0x57f783(0x236),Yr=_0x57f783(0x45b),we=0x6,Kr=1.5,St=0x4,Xr=1.5,qr=_0x57f783(0x23e);class Ss{constructor(_0x384b64,_0x586779,_0x5921b3,_0x3bc8b6){const _0x3082a1=_0x57f783;l(this,_0x3082a1(0x288),[]),l(this,_0x3082a1(0x1ce),null),l(this,_0x3082a1(0x4ae),null),l(this,_0x3082a1(0x2c0),null),l(this,_0x3082a1(0x33e),null),l(this,_0x3082a1(0x31b),null),(this[_0x3082a1(0x253)]=_0x384b64,this[_0x3082a1(0x345)]=_0x586779,this[_0x3082a1(0x24f)]=_0x5921b3,this[_0x3082a1(0x508)]=_0x3bc8b6,this[_0x3082a1(0x494)]());}set[_0x57f783(0x4db)](_0x560ed2){const _0x94f7ae=_0x57f783;_0x560ed2?(this[_0x94f7ae(0x2c0)]&&this[_0x94f7ae(0x2c0)]['hide'](),this['_textBubble']&&this[_0x94f7ae(0x4ae)][_0x94f7ae(0x4a8)]()):(this[_0x94f7ae(0x2c0)]&&this[_0x94f7ae(0x2c0)][_0x94f7ae(0x4a8)](),this[_0x94f7ae(0x4ae)]&&this[_0x94f7ae(0x4ae)][_0x94f7ae(0x43a)]());}['dispose'](){const _0x3633e2=_0x57f783;for(const _0x26cfa8 of this[_0x3633e2(0x288)])_0x26cfa8[_0x3633e2(0x309)]();this[_0x3633e2(0x4ae)]&&this[_0x3633e2(0x4ae)]['dispose'](),this[_0x3633e2(0x2c0)]&&this[_0x3633e2(0x2c0)][_0x3633e2(0x309)](),this['_anchor']&&this['_anchor'][_0x3633e2(0x309)](),this[_0x3633e2(0x31b)]&&this[_0x3633e2(0x31b)]();}['_render'](){const _0x15b082=_0x57f783;var _0x29e71e;const {_docSkeleton:_0x2bbe35,_document:_0x2cd1cb}=this,{color:_0x2a0ef0,name:_0x577825,ranges:_0x4334fb}=this[_0x15b082(0x253)],_0x170474=_0x2cd1cb[_0x15b082(0x23b)](),{docsLeft:_0x3e4157,docsTop:_0x3df9bc}=_0x170474,_0x225e8c=new _0x2ac2eb(_0x170474,_0x2bbe35);for(const {startOffset:_0x4bcadc,endOffset:_0x77c2be,collapsed:_0x15d417,isActive:_0x794efd}of _0x4334fb){const _0x4cc2b5=_0x2bbe35[_0x15b082(0x3b2)](_0x4bcadc),_0x312efb=_0x2bbe35[_0x15b082(0x3b2)](_0x77c2be);if(_0x794efd){const {contentBoxPointGroup:_0xa805e4}=_0x225e8c['getRangePointData'](_0x312efb,_0x312efb);if(_0xa805e4[_0x15b082(0x331)]===0x0)continue;this[_0x15b082(0x2ad)](_0x2a0ef0,_0xa805e4,_0x3e4157,_0x3df9bc,_0x577825),this[_0x15b082(0x31b)]=this[_0x15b082(0x47f)]();}if(!_0x15d417&&_0x4cc2b5&&_0x312efb){if(_0x2e2f7f(_0x4cc2b5,_0x312efb)){const _0x2c184a=new _0x5d6d04(_0x170474,_0x2bbe35),{pointGroup:_0x14ccc0}=(_0x29e71e=_0x2c184a[_0x15b082(0x418)](_0x4cc2b5,_0x312efb))!=null?_0x29e71e:{};if(_0x14ccc0==null||_0x14ccc0[_0x15b082(0x331)]===0x0)continue;this['_drawRectRange'](_0x2a0ef0,_0x14ccc0,_0x3e4157,_0x3df9bc);}else{const {contentBoxPointGroup:_0x5d24c3}=_0x225e8c[_0x15b082(0x418)](_0x4cc2b5,_0x312efb);if(_0x5d24c3[_0x15b082(0x331)]===0x0)continue;this[_0x15b082(0x1f3)](_0x2a0ef0,_0x5d24c3,_0x3e4157,_0x3df9bc);}}}}['_drawAnchor'](_0xec6181,_0x3adfcb,_0x55f5a2,_0x2aab26,_0x2db817){const _0x314f3f=_0x57f783,_0x312f2b=this[_0x314f3f(0x47a)](_0x3adfcb),{left:_0x17e1c4,top:_0x1389e5,height:_0x23b7b1}=_0x312f2b,_0x333e0a=this[_0x314f3f(0x40d)](),_0x1706b2=Xr/_0x333e0a,_0x23ab57=new _0x442ba1(gt+_0x13f79e[_0x314f3f(0x396)](we),{'left':_0x17e1c4+_0x55f5a2-_0x1706b2,'top':_0x1389e5+_0x2aab26,'height':_0x23b7b1,'width':Kr,'fill':_0xec6181||_0x30b673(_0x281501['black'],0x0),'strokeWidth':_0x1706b2,'stroke':qr,'evented':!0x0});this[_0x314f3f(0x1ce)]=_0x23ab57,this['_scene'][_0x314f3f(0x471)](_0x23ab57,_0x82fe8b);const _0x1be4da=new _0x442ba1(gt+_0x13f79e[_0x314f3f(0x396)](we),{'left':_0x17e1c4+_0x55f5a2-_0x1706b2,'top':_0x1389e5+_0x2aab26-St/0x2,'height':St,'width':St,'fill':_0xec6181||_0x30b673(_0x281501['black'],0x0),'strokeWidth':0x0,'stroke':_0xec6181||_0x30b673(_0x281501['black'],0x0),'evented':!0x1});this[_0x314f3f(0x2c0)]=_0x1be4da,this[_0x314f3f(0x345)][_0x314f3f(0x471)](_0x1be4da,_0x82fe8b);const _0x3d1432=new nt(gt+_0x13f79e[_0x314f3f(0x396)](we),{'left':_0x17e1c4+_0x55f5a2-_0x1706b2,'top':_0x1389e5+_0x2aab26-$e,'text':_0x2db817,'color':_0xec6181});this[_0x314f3f(0x4ae)]=_0x3d1432,this[_0x314f3f(0x345)][_0x314f3f(0x471)](_0x3d1432,_0x82fe8b),this[_0x314f3f(0x4db)]=!0x1;}[_0x57f783(0x47f)](){const _0x478e3a=_0x57f783,_0x51bf68=this[_0x478e3a(0x1ce)]['onPointerEnter$'][_0x478e3a(0x453)](()=>{const _0x35e574=_0x478e3a;this[_0x35e574(0x4db)]=!0x0;}),_0x4c814a=this[_0x478e3a(0x1ce)][_0x478e3a(0x440)][_0x478e3a(0x453)](()=>{const _0x10eec2=_0x478e3a;this[_0x10eec2(0x33e)]&&clearTimeout(this[_0x10eec2(0x33e)]),this[_0x10eec2(0x33e)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x29d4ac=_0x478e3a;_0x51bf68[_0x29d4ac(0x2e4)](),_0x4c814a[_0x29d4ac(0x2e4)]();};}['_drawTextRange'](_0x215ba6,_0x3c655f,_0x56b5eb,_0x52caba){const _0x123d29=_0x57f783,_0x3753f0=new _0x4459ec(_0x215ba6)[_0x123d29(0x3b5)](0.2)[_0x123d29(0x42c)](),_0x871303=new _0x8acd3f(Gr+_0x13f79e[_0x123d29(0x396)](we),{'pointsGroup':_0x3c655f,'fill':_0x3753f0||_0x30b673(_0x281501[_0x123d29(0x37f)],0.2),'left':_0x56b5eb,'top':_0x52caba,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x123d29(0x288)]['push'](_0x871303),this[_0x123d29(0x345)][_0x123d29(0x471)](_0x871303,_0x82fe8b);}[_0x57f783(0x533)](_0x1c1ae8,_0x2e7473,_0x1a57e6,_0xa53784){const _0x35f8d5=_0x57f783,_0xd91b3d=new _0x4459ec(_0x1c1ae8)[_0x35f8d5(0x3b5)](0.2)[_0x35f8d5(0x42c)](),_0x3db9ac=new _0x8acd3f(Yr+_0x13f79e[_0x35f8d5(0x396)](we),{'pointsGroup':_0x2e7473,'fill':_0xd91b3d||_0x30b673(_0x281501[_0x35f8d5(0x37f)],0.2),'left':_0x1a57e6,'top':_0xa53784,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x35f8d5(0x50c)](_0x3db9ac),this[_0x35f8d5(0x345)]['addObject'](_0x3db9ac,_0x82fe8b);}[_0x57f783(0x47a)](_0x48070){const _0x48a6d3=_0x48070[0x0],_0x2323af=_0x48a6d3[0x0],_0x161213=_0x48a6d3[0x2],{x:_0x4d0f55,y:_0x3b4913}=_0x2323af,{x:_0x56eea0,y:_0x3f58fd}=_0x161213;return{'left':_0x4d0f55,'top':_0x3b4913,'width':_0x56eea0-_0x4d0f55,'height':_0x3f58fd-_0x3b4913};}[_0x57f783(0x40d)](){const _0xd7cca=_0x57f783,{scaleX:_0x25e80e,scaleY:_0x32f8b0}=this[_0xd7cca(0x345)]['getAncestorScale']();return Math[_0xd7cca(0x222)](_0x25e80e,_0x32f8b0);}}var Jr=Object[_0x57f783(0x370)],zr=Object[_0x57f783(0x265)],Zr=(_0x2bcac5,_0x3eae6a,_0x15cbd2,_0xd97b8b)=>{const _0x4c9597=_0x57f783;for(var _0x254376=_0xd97b8b>0x1?void 0x0:_0xd97b8b?zr(_0x3eae6a,_0x15cbd2):_0x3eae6a,_0x3a2b8b=_0x2bcac5[_0x4c9597(0x331)]-0x1,_0x2ea1a7;_0x3a2b8b>=0x0;_0x3a2b8b--)(_0x2ea1a7=_0x2bcac5[_0x3a2b8b])&&(_0x254376=(_0xd97b8b?_0x2ea1a7(_0x3eae6a,_0x15cbd2,_0x254376):_0x2ea1a7(_0x254376))||_0x254376);return _0xd97b8b&&_0x254376&&Jr(_0x3eae6a,_0x15cbd2,_0x254376),_0x254376;},ke=(_0x165b28,_0x3796db)=>(_0xae08e0,_0x4a0903)=>_0x3796db(_0xae08e0,_0x4a0903,_0x165b28);let yt=class extends _0x4e2f23{constructor(_0x3d33f8,_0x1e7498,_0x36b8a2,_0x1c0b10,_0x5a97da){const _0x859595=_0x57f783;super(),l(this,_0x859595(0x2ea),[]),l(this,_0x859595(0x299),[]),(this[_0x859595(0x493)]=_0x3d33f8,this[_0x859595(0x443)]=_0x1e7498,this[_0x859595(0x44f)]=_0x36b8a2,this[_0x859595(0x22f)]=_0x1c0b10,this[_0x859595(0x25e)]=_0x5a97da,this[_0x859595(0x36e)]());}[_0x57f783(0x36e)](){const _0x1a4c8a=_0x57f783,_0x3744a0=this['_context']['unitId'],_0x38015=this[_0x1a4c8a(0x443)];this[_0x1a4c8a(0x50d)](_0x307858([this[_0x1a4c8a(0x44f)]['getCollabCursors$'](_0x3744a0),this[_0x1a4c8a(0x25e)]['currentTheme$']])[_0x1a4c8a(0x2ba)](_0x24ae2d(([_0x1706db,_0x2fcca3])=>({'skeleton':_0x38015['getSkeleton'](),'cursors':[..._0x1706db[_0x1a4c8a(0x241)]()][_0x1a4c8a(0x53d)](_0x570596=>({..._0x570596,'color':_0x2fcca3[_0x570596[_0x1a4c8a(0x457)]]}))})))[_0x1a4c8a(0x3c3)](_0x5ec88e=>{const _0x45f1e4=_0x1a4c8a;if(this[_0x45f1e4(0x467)](),_0x5ec88e){const {skeleton:_0x330cbf,cursors:_0x16b70a}=_0x5ec88e;this['_updateCollabCursors'](_0x330cbf,_0x16b70a);}})),this['_initResize'](),this[_0x1a4c8a(0x256)]();}[_0x57f783(0x480)](_0x5c470a,_0x2d8366){const _0x11021b=_0x57f783,{scene:_0x385a9b,mainComponent:_0x16ce06}=this[_0x11021b(0x493)],_0x35308b=_0x2d8366['map'](_0x3c7f00=>new Ss(_0x3c7f00,_0x385a9b,_0x5c470a,_0x16ce06));this[_0x11021b(0x2ea)]=_0x35308b,this['_cursors']=_0x2d8366;}[_0x57f783(0x4f3)](){const _0x264d1f=_0x57f783;this[_0x264d1f(0x467)]();const {scene:_0x529421,mainComponent:_0xa8e0bd}=this['_context'],_0x2cd99d=this['_docSkeletonManagerService'][_0x264d1f(0x32a)](),_0x1da94b=this[_0x264d1f(0x299)][_0x264d1f(0x337)](_0x1af824=>new Ss(_0x1af824,_0x529421,_0x2cd99d,_0xa8e0bd));this[_0x264d1f(0x2ea)]=_0x1da94b;}['_removeCollabCursors'](){const _0x56b63d=_0x57f783;this[_0x56b63d(0x2ea)][_0x56b63d(0x52a)](_0x4fb296=>_0x4fb296[_0x56b63d(0x309)]()),this[_0x56b63d(0x2ea)]=[];}['_initCommandExecutedListener'](){const _0x53d6c9=_0x57f783,_0x5ca01c=[_0x248064['id']];this[_0x53d6c9(0x50d)](this[_0x53d6c9(0x22f)][_0x53d6c9(0x2e1)](_0x3a6959=>{const _0x3cc847=_0x53d6c9;_0x5ca01c['includes'](_0x3a6959['id'])&&_0x3a6959[_0x3cc847(0x4cc)][_0x3cc847(0x3da)]===this['_context']['unitId']&&this[_0x3cc847(0x4f3)]();}));}['_initResize'](){const _0x146d75=_0x57f783;this[_0x146d75(0x50d)](_0x1f7ed4(this[_0x146d75(0x493)][_0x146d75(0x3e7)]['onTransformChange$'])[_0x146d75(0x2ba)](_0x5a107f(_0x56573c=>_0x56573c[_0x146d75(0x312)]===_0x1e5cb3[_0x146d75(0x2b0)]),_0x3a5fee(0x10))[_0x146d75(0x3c3)](()=>{const _0x19be1f=_0x146d75;this[_0x19be1f(0x4f3)]();}));}};yt=Zr([ke(0x1,_0xbf893e(_0x43ea99)),ke(0x2,_0xbf893e(ve)),ke(0x3,_0x16b157),ke(0x4,_0xbf893e(_0x65d9c5))],yt);const Qr=0x1,eo=1.5;class to extends _0x261c3c{constructor(_0x1de1e6,_0x47bfd0){const _0x261004=_0x57f783;super(_0x1de1e6,_0x47bfd0),l(this,_0x261004(0x39b)),l(this,_0x261004(0x34b),!0x1),l(this,_0x261004(0x2a1)),l(this,_0x261004(0x28d),''),l(this,_0x261004(0x47c),'top'),l(this,_0x261004(0x391)),(_0x47bfd0&&this[_0x261004(0x425)](_0x47bfd0),this[_0x261004(0x3f3)][_0x261004(0x453)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x261004(0x440)][_0x261004(0x453)](()=>this[_0x261004(0x425)]({'hovered':!0x1})));}[_0x57f783(0x425)](_0x4dc5f7){const _0x5955ab=_0x57f783;var _0x58ef12,_0x5e27fb,_0x49dafd,_0x4e220b,_0x3be60f,_0x1734c8;this['_color']=(_0x58ef12=_0x4dc5f7[_0x5955ab(0x457)])!=null?_0x58ef12:this[_0x5955ab(0x39b)],this[_0x5955ab(0x34b)]=(_0x5e27fb=_0x4dc5f7[_0x5955ab(0x405)])!=null?_0x5e27fb:this['_hovered'],this[_0x5955ab(0x2a1)]=(_0x49dafd=_0x4dc5f7['range'])!=null?_0x49dafd:this[_0x5955ab(0x2a1)],this[_0x5955ab(0x28d)]=(_0x4e220b=_0x4dc5f7[_0x5955ab(0x442)])!=null?_0x4e220b:this[_0x5955ab(0x28d)],this[_0x5955ab(0x47c)]=(_0x3be60f=_0x4dc5f7[_0x5955ab(0x53b)])!=null?_0x3be60f:this['_labelPosition'],this[_0x5955ab(0x391)]=(_0x1734c8=_0x4dc5f7['backgroundColor'])!=null?_0x1734c8:this['_backgroundColor'],this[_0x5955ab(0x4ff)]({'width':_0x4dc5f7[_0x5955ab(0x392)],'height':_0x4dc5f7['height']});}['onMouseMove'](_0x3a45f6){const _0x211e89=_0x57f783,{row:_0x288efe,column:_0x3765e5}=_0x3a45f6;if(_0x288efe>=this[_0x211e89(0x2a1)][_0x211e89(0x41d)]&&_0x288efe<=this['_range']['endRow']&&_0x3765e5>=this[_0x211e89(0x2a1)][_0x211e89(0x2c6)]&&_0x3765e5<=this['_range'][_0x211e89(0x4bf)]){this[_0x211e89(0x425)]({'hovered':!0x0});return;}this[_0x211e89(0x425)]({'hovered':!0x1});}[_0x57f783(0x2ae)](_0x2a923d){return!0x1;}[_0x57f783(0x3af)](_0x901290){const _0x5cd225=_0x57f783;_0x442ba1[_0x5cd225(0x4c2)](_0x901290,{'width':this[_0x5cd225(0x392)],'height':this['height'],'strokeWidth':eo,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x5cd225(0x391)]}),this[_0x5cd225(0x34b)]&&(_0x901290[_0x5cd225(0x389)](),_0x901290[_0x5cd225(0x307)](0x1,0x0,0x0,0x1,this[_0x5cd225(0x392)],this['_labelPosition']===_0x5cd225(0x1e7)?0x0:-$e),nt[_0x5cd225(0x4c2)](_0x901290,{'text':this['_name'],'color':this[_0x5cd225(0x39b)]}),_0x901290['restore']());}}var so=Object['defineProperty'],io=Object['getOwnPropertyDescriptor'],no=(_0x5c0df8,_0x5097a3,_0x17cf46,_0x5d0add)=>{const _0x368060=_0x57f783;for(var _0x18a7a9=_0x5d0add>0x1?void 0x0:_0x5d0add?io(_0x5097a3,_0x17cf46):_0x5097a3,_0x48df0e=_0x5c0df8[_0x368060(0x331)]-0x1,_0x3a3bfe;_0x48df0e>=0x0;_0x48df0e--)(_0x3a3bfe=_0x5c0df8[_0x48df0e])&&(_0x18a7a9=(_0x5d0add?_0x3a3bfe(_0x5097a3,_0x17cf46,_0x18a7a9):_0x3a3bfe(_0x18a7a9))||_0x18a7a9);return _0x5d0add&&_0x18a7a9&&so(_0x5097a3,_0x17cf46,_0x18a7a9),_0x18a7a9;},pt=(_0x78fc07,_0x350f71)=>(_0x1bb7f1,_0x407c21)=>_0x350f71(_0x1bb7f1,_0x407c21,_0x78fc07);const ro=0x1389;let Ut=class extends _0x4e2f23{constructor(_0x5502ea,_0x190530,_0x4bd025,_0x2f3b7f){const _0xac7d83=_0x57f783;super(),l(this,_0xac7d83(0x299),new Set()),l(this,_0xac7d83(0x333),null),(this[_0xac7d83(0x493)]=_0x5502ea,this['_sheetSkeletonManagerService']=_0x190530,this[_0xac7d83(0x44f)]=_0x4bd025,this[_0xac7d83(0x25e)]=_0x2f3b7f,this[_0xac7d83(0x36e)]());}[_0x57f783(0x36e)](){const _0x365f26=_0x57f783;this[_0x365f26(0x254)][_0x365f26(0x45d)][_0x365f26(0x2ba)](_0x3ce0c8(this[_0x365f26(0x379)]),_0x182cc7(_0x3c768a=>{const _0xd5e925=_0x365f26;if(_0x3c768a){const _0x21a3c7=_0x3c768a[_0xd5e925(0x287)];return _0x307858(this[_0xd5e925(0x44f)]['getCollabCursors$'](this[_0xd5e925(0x493)][_0xd5e925(0x3da)]),this['_themeService'][_0xd5e925(0x2c4)])[_0xd5e925(0x2ba)](_0x24ae2d(([_0x158164,_0x1a4236])=>{const _0x4f80f2=_0xd5e925,_0x3a2eea=new Map();return _0x158164[_0x4f80f2(0x52a)]((_0x3a726d,_0x531ec0)=>{const _0x2a7dd4=_0x4f80f2;if(_0x3a726d[_0x2a7dd4(0x51f)]===_0x21a3c7){const _0x29d671={..._0x3a726d};_0x29d671['color']=_0x1a4236[_0x3a726d[_0x2a7dd4(0x457)]],_0x3a2eea['set'](_0x531ec0,_0x29d671);}}),{'skeleton':_0x3c768a,'cursors':_0x3a2eea};}));}return _0xd76332({'skeleton':null,'cursors':new Map()});}))[_0x365f26(0x3c3)](({skeleton:_0x71841b,cursors:_0x1533c4})=>{const _0x48177b=_0x365f26;this[_0x48177b(0x467)](),_0x71841b&&this[_0x48177b(0x480)](_0x71841b,_0x1533c4);}),this[_0x365f26(0x254)][_0x365f26(0x45d)][_0x365f26(0x3c3)](_0x3d2f06=>{const _0x354292=_0x365f26;if(_0x3d2f06==null)return;const {skeleton:_0x27b934}=_0x3d2f06,{scene:_0x1609af}=this[_0x354292(0x493)];_0x1609af[_0x354292(0x524)][_0x354292(0x453)](_0x314bbe(_0x117244=>{const _0x23b527=_0x354292;var _0x109dd7,_0x7c2d63;const {offsetX:_0x510dfc,offsetY:_0x24cfdc}=_0x117244,{x:_0x40c55c,y:_0x1df784}=_0x1609af[_0x23b527(0x3e9)](_0x2991a3[_0x23b527(0x4fa)]([_0x510dfc,_0x24cfdc])),{scaleX:_0x46daee,scaleY:_0x5a6010}=_0x1609af['getAncestorScale'](),_0x19cb92=_0x1609af[_0x23b527(0x53c)](_0x639500[_0x23b527(0x4a3)]),_0x1805ed=_0x1609af['getVpScrollXYInfoByPosToVp'](_0x2991a3[_0x23b527(0x4fa)]([_0x40c55c,_0x1df784]),_0x19cb92),_0x181796=_0x27b934['getCellPositionByOffset'](_0x510dfc,_0x24cfdc,_0x46daee,_0x5a6010,_0x1805ed);((_0x109dd7=this[_0x23b527(0x333)])==null?void 0x0:_0x109dd7[_0x23b527(0x3c1)])===_0x181796[_0x23b527(0x3c1)]&&((_0x7c2d63=this[_0x23b527(0x333)])==null?void 0x0:_0x7c2d63[_0x23b527(0x3a3)])===_0x181796[_0x23b527(0x3a3)]||this['_cursors']['forEach'](_0x46a8f9=>{_0x46a8f9['onMouseMove'](_0x181796);});},0x64));});}[_0x57f783(0x480)](_0x2156a7,_0x5056cc){const _0x356031=_0x57f783;var _0x104a89;const _0x14126b=(_0x104a89=this[_0x356031(0x254)][_0x356031(0x34c)]())==null?void 0x0:_0x104a89[_0x356031(0x357)];if(!_0x14126b)return;const _0x386643=this[_0x356031(0x48d)]();if(!_0x386643)return;this['_cursors']['forEach'](_0x5d6aed=>{_0x5d6aed['makeDirty']();});const {scene:_0x234372}=_0x386643,_0x404575=oo(Array[_0x356031(0x546)](_0x5056cc['values']()))[_0x356031(0x337)](_0x5e0ae0=>{const _0x1d5239=_0x356031,{color:_0x4dbc41,range:_0x4d153e,name:_0x373bbc,selection:_0x4be05e,sheetID:_0x56ac8c}=_0x5e0ae0,{startColumn:_0x774ee9,startRow:_0x56fe48,endColumn:_0x1ad376,endRow:_0x49048c}=_0x4d153e,_0x4b65e3=_0x5e073b(_0x56fe48,_0x774ee9,_0x234372,_0x14126b),_0x49e2dd=_0x5e073b(_0x49048c,_0x1ad376,_0x234372,_0x14126b),{columnHeaderHeightAndMarginTop:_0x16e056}=_0x14126b,{startX:_0x251172,startY:_0x1700fb}=_0x4b65e3,{endX:_0x243338,endY:_0x213cb7}=_0x49e2dd,_0x4bb395=_0x243338-_0x251172,_0x3de4db=_0x213cb7-_0x1700fb,_0x106a71={'labelPosition':_0x1700fb-_0x16e056>=$e?'top':_0x1d5239(0x1e7),'sheetID':_0x56ac8c,'range':_0x4d153e,'color':_0x4dbc41,'name':_0x373bbc,'selection':_0x4be05e,'left':_0x251172,'top':_0x1700fb,'width':_0x4bb395,'height':_0x3de4db,'evented':!0x1,'zIndex':ro};return new to(_0x373bbc,_0x106a71);});_0x234372[_0x356031(0x394)](_0x404575,Qr),this[_0x356031(0x299)]=new Set(_0x404575);}['_removeCollabCursors'](){const _0x317be8=_0x57f783;var _0x1b34c1;(_0x1b34c1=this[_0x317be8(0x299)])==null||_0x1b34c1[_0x317be8(0x52a)](_0x257b31=>_0x257b31[_0x317be8(0x309)]());}[_0x57f783(0x48d)](){const _0x5537e9=_0x57f783;return _0x2903ef(this[_0x5537e9(0x493)][_0x5537e9(0x29a)],this[_0x5537e9(0x493)]);}};Ut=no([pt(0x1,_0xbf893e(_0x284dc5)),pt(0x2,_0xbf893e(ve)),pt(0x3,_0xbf893e(_0x65d9c5))],Ut);function oo(_0x4994bf){const _0x36f15b=_0x57f783,_0x49f25f=new Map();return _0x4994bf['forEach'](_0x175c6e=>{const _0x47fc31=_0x5499;if(_0x49f25f[_0x47fc31(0x3d6)](_0x175c6e[_0x47fc31(0x436)])){const _0x3be7b5=_0x49f25f['get'](_0x175c6e['selection']);_0x3be7b5[_0x47fc31(0x442)]+=',\x20'+_0x175c6e[_0x47fc31(0x442)];}else _0x49f25f[_0x47fc31(0x54b)](_0x175c6e['selection'],_0x175c6e);}),Array[_0x36f15b(0x546)](_0x49f25f['values']());}var N=function(){return N=Object['assign']||function(_0x32ba5f){const _0x26afd9=_0x5499;for(var _0x1c858f,_0x21c4d2=0x1,_0x3bc6d7=arguments[_0x26afd9(0x331)];_0x21c4d2<_0x3bc6d7;_0x21c4d2++){_0x1c858f=arguments[_0x21c4d2];for(var _0x5831a5 in _0x1c858f)Object[_0x26afd9(0x3c9)]['hasOwnProperty']['call'](_0x1c858f,_0x5831a5)&&(_0x32ba5f[_0x5831a5]=_0x1c858f[_0x5831a5]);}return _0x32ba5f;},N['apply'](this,arguments);},ao=function(_0x35f7a1,_0x3d4f9a){const _0x4cbfae=_0x57f783;var _0x9dfe8f={};for(var _0x5f17e8 in _0x35f7a1)Object[_0x4cbfae(0x3c9)][_0x4cbfae(0x32f)][_0x4cbfae(0x386)](_0x35f7a1,_0x5f17e8)&&_0x3d4f9a[_0x4cbfae(0x3d2)](_0x5f17e8)<0x0&&(_0x9dfe8f[_0x5f17e8]=_0x35f7a1[_0x5f17e8]);if(_0x35f7a1!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x437949=0x0,_0x5f17e8=Object[_0x4cbfae(0x4ce)](_0x35f7a1);_0x437949<_0x5f17e8[_0x4cbfae(0x331)];_0x437949++)_0x3d4f9a[_0x4cbfae(0x3d2)](_0x5f17e8[_0x437949])<0x0&&Object[_0x4cbfae(0x3c9)][_0x4cbfae(0x42d)][_0x4cbfae(0x386)](_0x35f7a1,_0x5f17e8[_0x437949])&&(_0x9dfe8f[_0x5f17e8[_0x437949]]=_0x35f7a1[_0x5f17e8[_0x437949]]);}return _0x9dfe8f;},Kt=_0x2d4eab(function(_0x5a1428,_0x3f9fc7){const _0x10509c=_0x57f783;var _0x156dcb=_0x5a1428[_0x10509c(0x4fb)],_0xadeb12=_0x5a1428['id'],_0x14dc82=_0x5a1428['className'],_0x56f4ff=_0x5a1428['extend'],_0xe26bd8=ao(_0x5a1428,[_0x10509c(0x4fb),'id',_0x10509c(0x205),'extend']),_0x2f3613=_0x10509c(0x2ee)[_0x10509c(0x29b)](_0xadeb12,'\x20')['concat'](_0x14dc82||'')[_0x10509c(0x4de)](),_0x4c5466=_0x4ff364('_'[_0x10509c(0x29b)](lo()));return Ws(_0x156dcb,''['concat'](_0xadeb12),{'defIds':_0x156dcb['defIds'],'idSuffix':_0x4c5466['current']},N({'ref':_0x3f9fc7,'className':_0x2f3613},_0xe26bd8),_0x56f4ff);});function Ws(_0x507a46,_0x20e88e,_0x4b7dfa,_0x49c19a,_0x522510){const _0xfccf9c=_0x57f783;return _0x3aa812(_0x507a46[_0xfccf9c(0x3ed)],N(N({'key':_0x20e88e},co(_0x507a46,_0x4b7dfa,_0x522510)),_0x49c19a),(ho(_0x507a46,_0x4b7dfa)['children']||[])['map'](function(_0x15e42d,_0x767778){const _0x36fc41=_0xfccf9c;return Ws(_0x15e42d,''['concat'](_0x20e88e,'-')[_0x36fc41(0x29b)](_0x507a46[_0x36fc41(0x3ed)],'-')['concat'](_0x767778),_0x4b7dfa,void 0x0,_0x522510);}));}function co(_0x4b8c40,_0x1b3898,_0x4a10bf){const _0xc9b866=_0x57f783;var _0x362d00=N({},_0x4b8c40[_0xc9b866(0x4a5)]);_0x4a10bf!=null&&_0x4a10bf[_0xc9b866(0x473)]&&_0x362d00[_0xc9b866(0x2b9)]===_0xc9b866(0x473)&&(_0x362d00[_0xc9b866(0x2b9)]=_0x4a10bf[_0xc9b866(0x473)]);var _0x407863=_0x1b3898['defIds'];return!_0x407863||_0x407863[_0xc9b866(0x331)]===0x0||(_0x4b8c40[_0xc9b866(0x3ed)]==='use'&&_0x362d00['xlink:href']&&(_0x362d00[_0xc9b866(0x3cb)]=_0x362d00[_0xc9b866(0x3cb)]+_0x1b3898[_0xc9b866(0x3df)]),Object[_0xc9b866(0x2e3)](_0x362d00)[_0xc9b866(0x52a)](function(_0xf8223a){const _0x48e6b5=_0xc9b866;var _0x1a5019=_0xf8223a[0x0],_0xc93c4e=_0xf8223a[0x1];typeof _0xc93c4e==_0x48e6b5(0x41b)&&(_0x362d00[_0x1a5019]=_0xc93c4e[_0x48e6b5(0x49b)](/url\(#(.*)\)/,_0x48e6b5(0x3de)[_0x48e6b5(0x29b)](_0x1b3898['idSuffix'],')')));})),_0x362d00;}function ho(_0x6a8318,_0x1331d1){const _0x595dbd=_0x57f783;var _0x39090a,_0xa90ae2=_0x1331d1[_0x595dbd(0x3ae)];return!_0xa90ae2||_0xa90ae2[_0x595dbd(0x331)]===0x0?_0x6a8318:_0x6a8318['tag']==='defs'&&(!((_0x39090a=_0x6a8318['children'])===null||_0x39090a===void 0x0)&&_0x39090a[_0x595dbd(0x331)])?N(N({},_0x6a8318),{'children':_0x6a8318['children'][_0x595dbd(0x337)](function(_0x208f8f){const _0x305edb=_0x595dbd;return typeof _0x208f8f[_0x305edb(0x4a5)]['id']==_0x305edb(0x41b)&&_0xa90ae2&&_0xa90ae2[_0x305edb(0x3d2)](_0x208f8f[_0x305edb(0x4a5)]['id'])>-0x1?N(N({},_0x208f8f),{'attrs':N(N({},_0x208f8f[_0x305edb(0x4a5)]),{'id':_0x208f8f[_0x305edb(0x4a5)]['id']+_0x1331d1['idSuffix']})}):_0x208f8f;})}):_0x6a8318;}function lo(){const _0x2a18bb=_0x57f783;return Math[_0x2a18bb(0x3a4)]()[_0x2a18bb(0x499)](0x24)[_0x2a18bb(0x20d)](0x2,0x8);}Kt[_0x57f783(0x51d)]=_0x57f783(0x344);var _o={'tag':'svg','attrs':{'fill':_0x57f783(0x1fa),'viewBox':_0x57f783(0x285),'width':_0x57f783(0x41e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x57f783(0x3e3)},'children':[{'tag':_0x57f783(0x363),'attrs':{'stroke':_0x57f783(0x4e5),'d':'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','strokeLinecap':'round','strokeLinejoin':_0x57f783(0x2d0),'strokeWidth':1.2}}]},{'tag':_0x57f783(0x441),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x57f783(0x2a5)},'children':[{'tag':_0x57f783(0x363),'attrs':{'fill':_0x57f783(0x3e8),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x57f783(0x2a5)]},Gs=_0x2d4eab(function(_0xe77cce,_0x11b349){const _0x1156ba=_0x57f783;return _0x3aa812(Kt,Object[_0x1156ba(0x402)]({},_0xe77cce,{'id':'off-line-single','ref':_0x11b349,'icon':_o}));});Gs[_0x57f783(0x51d)]=_0x57f783(0x463);var uo={'tag':'svg','attrs':{'fill':_0x57f783(0x1fa),'viewBox':_0x57f783(0x38d),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x57f783(0x4ed)},'children':[{'tag':'path','attrs':{'stroke':_0x57f783(0x4e5),'d':_0x57f783(0x51a),'strokeLinecap':_0x57f783(0x2d0),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x57f783(0x2fa),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x57f783(0x3e8),'d':_0x57f783(0x406),'transform':_0x57f783(0x348)}}]}]}],'defIds':[_0x57f783(0x3dd)]},Ys=_0x2d4eab(function(_0x5906bf,_0x35a227){const _0x1d2ccc=_0x57f783;return _0x3aa812(Kt,Object['assign']({},_0x5906bf,{'id':_0x1d2ccc(0x46b),'ref':_0x35a227,'icon':uo}));});Ys[_0x57f783(0x51d)]='OnLineSingle';function Ks(_0x11b885){const _0x2084fe=_0x57f783;var _0x4eb181,_0x575b9c,_0x383926='';if(typeof _0x11b885=='string'||typeof _0x11b885==_0x2084fe(0x3b9))_0x383926+=_0x11b885;else{if(typeof _0x11b885=='object'){if(Array[_0x2084fe(0x40e)](_0x11b885)){var _0x48b38b=_0x11b885[_0x2084fe(0x331)];for(_0x4eb181=0x0;_0x4eb181<_0x48b38b;_0x4eb181++)_0x11b885[_0x4eb181]&&(_0x575b9c=Ks(_0x11b885[_0x4eb181]))&&(_0x383926&&(_0x383926+='\x20'),_0x383926+=_0x575b9c);}else{for(_0x575b9c in _0x11b885)_0x11b885[_0x575b9c]&&(_0x383926&&(_0x383926+='\x20'),_0x383926+=_0x575b9c);}}}return _0x383926;}function fo(){const _0xfe2063=_0x57f783;for(var _0x292156,_0x44e5c5,_0x3953a1=0x0,_0x5531ca='',_0x1d71b2=arguments[_0xfe2063(0x331)];_0x3953a1<_0x1d71b2;_0x3953a1++)(_0x292156=arguments[_0x3953a1])&&(_0x44e5c5=Ks(_0x292156))&&(_0x5531ca&&(_0x5531ca+='\x20'),_0x5531ca+=_0x44e5c5);return _0x5531ca;}const mo=_0x57f783(0x216),go=_0x57f783(0x34f),So=_0x57f783(0x4f0),po=_0x57f783(0x3e0),vo=_0x57f783(0x208),Pe={'onlineStatusIcon':mo,'onlineStatusTitle':go,'onlineStatus':So,'online':po,'offline':vo};function Io(_0x52df34){const _0x50476e=_0x57f783;switch(_0x52df34){case P[_0x50476e(0x305)]:return'collabStatus.offline';case P[_0x50476e(0x3c8)]:return _0x50476e(0x470);case P[_0x50476e(0x21c)]:return _0x50476e(0x32d);case P[_0x50476e(0x45f)]:return _0x50476e(0x421);case P['PENDING']:case P[_0x50476e(0x36b)]:case P[_0x50476e(0x233)]:return _0x50476e(0x459);case P[_0x50476e(0x2b5)]:return'collabStatus.synced';}}function Eo(_0x44819d){const _0x2f9a21=_0x57f783,{status$:_0x34fc05}=_0x44819d,_0x5d5c48=_0x1ae99f(_0x34fc05,P[_0x2f9a21(0x45f)]),_0x10bbd8=_0x3dce0a(_0x2b49aa),_0x4463c9=_0x3dce0a(he),_0x55bb54=_0x5d5c48!==P[_0x2f9a21(0x305)],_0x10ce99=_0x10bbd8['t'](Io(_0x5d5c48)),_0x1a665a=fo(Pe[_0x2f9a21(0x4e8)],{[Pe[_0x2f9a21(0x4c5)]]:_0x55bb54,[Pe['offline']]:!_0x55bb54}),_0x59a503=_0x55bb54?_0x5c1cd4['createElement'](Ys,null):_0x5c1cd4[_0x2f9a21(0x22d)](Gs,null),_0xee74fb=_0x40640a(()=>{const _0x570f6e=_0x2f9a21;_0x55bb54||_0x4463c9[_0x570f6e(0x376)]();},[_0x55bb54,_0x4463c9]);function _0x4314f1(){const _0x2686f8=_0x2f9a21;return _0x5c1cd4[_0x2686f8(0x22d)](_0x2686f8(0x4d6),{'className':_0x1a665a,'onClick':_0xee74fb},_0x5c1cd4[_0x2686f8(0x22d)](_0x2686f8(0x4d6),{'className':Pe[_0x2686f8(0x2df)]},_0x59a503),_0x5c1cd4['createElement'](_0x2686f8(0x4d6),{'className':Pe[_0x2686f8(0x2fb)]},_0x10ce99));}return _0x55bb54?_0x4314f1():_0x5c1cd4[_0x2f9a21(0x22d)](_0x3ce20a,{'title':_0x10bbd8['t'](_0x2f9a21(0x3d9))},_0x4314f1());}var Co=Object[_0x57f783(0x370)],bo=Object[_0x57f783(0x265)],To=(_0xb07eb5,_0x1f8642,_0x5b42eb,_0x19de88)=>{const _0x159f01=_0x57f783;for(var _0x4afddf=_0x19de88>0x1?void 0x0:_0x19de88?bo(_0x1f8642,_0x5b42eb):_0x1f8642,_0x1c1cba=_0xb07eb5[_0x159f01(0x331)]-0x1,_0x39567b;_0x1c1cba>=0x0;_0x1c1cba--)(_0x39567b=_0xb07eb5[_0x1c1cba])&&(_0x4afddf=(_0x19de88?_0x39567b(_0x1f8642,_0x5b42eb,_0x4afddf):_0x39567b(_0x4afddf))||_0x4afddf);return _0x19de88&&_0x4afddf&&Co(_0x1f8642,_0x5b42eb,_0x4afddf),_0x4afddf;},Be=(_0x4f1664,_0x43bf1c)=>(_0x4da00c,_0xa4149a)=>_0x43bf1c(_0x4da00c,_0xa4149a,_0x4f1664);let Me=class extends _0x291656{constructor(_0x2ca43f,_0x5d8f69,_0x2e4925,_0x965f37){const _0x469b51=_0x57f783;super(),l(this,'_status$',new _0x1d28eb(P['NOT_COLLAB'])),(this[_0x469b51(0x439)]=_0x2ca43f,this['_uiPartsService']=_0x5d8f69,this[_0x469b51(0x52c)]=_0x2e4925,this[_0x469b51(0x38e)]=_0x965f37,this[_0x469b51(0x24c)](),this[_0x469b51(0x290)]());}[_0x57f783(0x290)](){const _0xf6e927=_0x57f783;this['disposeWithMe'](this[_0xf6e927(0x439)][_0xf6e927(0x42a)][_0xf6e927(0x2ba)](_0x56169e(()=>{const _0x17e5fb=_0xf6e927,_0x662901=this['_univerInstanceService'][_0x17e5fb(0x3dc)]();return _0x662901?this[_0x17e5fb(0x38e)][_0x17e5fb(0x398)](_0x662901[_0x17e5fb(0x507)]()):_0xd76332(null);}),_0x56169e(_0x44572c=>_0x44572c?_0x44572c[_0xf6e927(0x340)]:_0xd76332(P[_0xf6e927(0x45f)])))[_0xf6e927(0x3c3)](_0x18fb5f=>{const _0x1b06d0=_0xf6e927;this[_0x1b06d0(0x383)][_0x1b06d0(0x393)](_0x18fb5f);}));}[_0x57f783(0x24c)](){const _0x456a01=_0x57f783;this[_0x456a01(0x50d)](this[_0x456a01(0x367)][_0x456a01(0x432)](_0x202e96['HEADER_MENU'],()=>_0x1d20be(Ro({'status$':this[_0x456a01(0x383)][_0x456a01(0x22b)]()}),this[_0x456a01(0x52c)])));}};Me=To([Be(0x0,_0x2fdc83),Be(0x1,_0x247425),Be(0x2,_0xbf893e(_0x1e47c5)),Be(0x3,_0xbf893e(Le))],Me);function Ro(_0x4cd3a7){const {status$:_0x1f9e19}=_0x4cd3a7;return function(){const _0x51e5b2=_0x5499;return _0x5c1cd4[_0x51e5b2(0x22d)](Eo,{'status$':_0x1f9e19});};}const Xs=_0xe03866('uni.network.url-service');var Oo=Object['defineProperty'],Do=Object[_0x57f783(0x265)],wo=(_0x45fd30,_0x134c7a,_0x1ce9e9,_0x9aa857)=>{const _0xc8e1bb=_0x57f783;for(var _0x3a7c12=_0x9aa857>0x1?void 0x0:_0x9aa857?Do(_0x134c7a,_0x1ce9e9):_0x134c7a,_0x201608=_0x45fd30[_0xc8e1bb(0x331)]-0x1,_0x33fdfc;_0x201608>=0x0;_0x201608--)(_0x33fdfc=_0x45fd30[_0x201608])&&(_0x3a7c12=(_0x9aa857?_0x33fdfc(_0x134c7a,_0x1ce9e9,_0x3a7c12):_0x33fdfc(_0x3a7c12))||_0x3a7c12);return _0x9aa857&&_0x3a7c12&&Oo(_0x134c7a,_0x1ce9e9,_0x3a7c12),_0x3a7c12;},ge=(_0x32c198,_0x1f4962)=>(_0x4ba2cf,_0x87d9ae)=>_0x1f4962(_0x4ba2cf,_0x87d9ae,_0x32c198);let Ze=class extends _0x4e2f23{constructor(_0x18fc18,_0x52eb31,_0x110e10,_0x8dcc6d,_0x4ba30a,_0x14da3b){const _0x4a683e=_0x57f783;super(),this['_urlService']=_0x18fc18,this[_0x4a683e(0x542)]=_0x52eb31,this['_commandService']=_0x110e10,this[_0x4a683e(0x3f4)]=_0x8dcc6d,this[_0x4a683e(0x3f1)]=_0x4ba30a,_0x14da3b?_0x14da3b==null||_0x14da3b[_0x4a683e(0x4b0)]()[_0x4a683e(0x2cc)](()=>this[_0x4a683e(0x36e)]()):(this[_0x4a683e(0x542)][_0x4a683e(0x3a7)](_0x4a683e(0x3db),_0x4a683e(0x29e)),this['_init']());}async[_0x57f783(0x36e)](){const _0x54093f=_0x57f783,_0x41b537=this[_0x54093f(0x44b)]['getParam'](_0x54093f(0x29a)),_0x385d06=this[_0x54093f(0x44b)][_0x54093f(0x2d6)](_0x54093f(0x312));if(!_0x41b537||!_0x385d06){this[_0x54093f(0x542)][_0x54093f(0x3a7)]('[DataLoaderController]',_0x54093f(0x23c));return;}switch(Number(_0x385d06)){case k['UNIVER_SHEET']:{const _0x3281f0=await this[_0x54093f(0x2cb)](_0x41b537);this[_0x54093f(0x225)](_0x3281f0);break;}case k[_0x54093f(0x36f)]:{await this[_0x54093f(0x42e)](_0x41b537);break;}default:{this['_logService'][_0x54093f(0x4ef)](_0x54093f(0x3db),_0x54093f(0x48f));break;}}}async[_0x57f783(0x225)](_0x16d80c){const _0xda3cab=_0x57f783;await this[_0xda3cab(0x49d)](_0x16d80c),_0x16d80c[_0xda3cab(0x522)][_0xda3cab(0x2ba)](_0x341fba(this[_0xda3cab(0x379)]))[_0xda3cab(0x3c3)](_0x557daa=>{const _0x436667=_0xda3cab;_0x557daa&&this[_0x436667(0x3c6)](_0x557daa);}),this[_0xda3cab(0x44b)][_0xda3cab(0x3d4)][_0xda3cab(0x2ba)](_0x341fba(this[_0xda3cab(0x379)]))[_0xda3cab(0x3c3)](()=>this[_0xda3cab(0x49d)](_0x16d80c));}['_updateURLWithCurrentState'](_0x3b86e3,_0xf7487c=!0x1){const _0x25ff38=_0x57f783,_0x24f878=this[_0x25ff38(0x44b)][_0x25ff38(0x2d6)](_0x25ff38(0x460));_0x3b86e3[_0x25ff38(0x540)]()!==_0x24f878&&this[_0x25ff38(0x44b)][_0x25ff38(0x250)](_0x25ff38(0x460),_0x3b86e3[_0x25ff38(0x540)](),_0xf7487c);}async[_0x57f783(0x49d)](_0x4f1267){const _0x550d5d=_0x57f783;var _0x197762;const _0x360c17=this[_0x550d5d(0x44b)]['getParam']('subunit');if(!_0x360c17||!_0x4f1267[_0x550d5d(0x464)](_0x360c17)){const _0x1831d5=_0x4f1267[_0x550d5d(0x271)]()[0x0],_0x364296=_0x4f1267['getSheetBySheetId'](_0x1831d5);if(!_0x364296)return;this[_0x550d5d(0x3c6)](_0x364296,!0x0),await this['_commandService'][_0x550d5d(0x26b)](_0x1d38fd['id'],{'unitId':_0x4f1267[_0x550d5d(0x507)](),'subUnitId':_0x1831d5});return;}((_0x197762=_0x4f1267[_0x550d5d(0x31d)]())==null?void 0x0:_0x197762[_0x550d5d(0x540)]())!==_0x360c17&&await this[_0x550d5d(0x22f)][_0x550d5d(0x26b)](_0x1d38fd['id'],{'unitId':_0x4f1267['getUnitId'](),'subUnitId':_0x360c17});}async[_0x57f783(0x2cb)](_0x4559a0){const _0x28d85e=_0x57f783;let _0x5acf40=0x0;const _0x4b74fd=await this[_0x28d85e(0x3f4)][_0x28d85e(0x29d)](_0x4559a0);return _0x4b74fd&&(_0x4b74fd[_0x28d85e(0x1ff)]||_0x4b74fd[_0x28d85e(0x53a)][_0x28d85e(0x331)]!==0x0)&&(_0x5acf40=_0x4b74fd['rev']),_0x5acf40===0x0&&this[_0x28d85e(0x542)][_0x28d85e(0x3a7)]('[DataLoaderController]',_0x28d85e(0x4f5)),this[_0x28d85e(0x3f1)]['loadSheet'](_0x4559a0,_0x5acf40);}async[_0x57f783(0x42e)](_0x3bdd19){const _0x3288d9=_0x57f783;let _0x2160f6=0x0;const _0x5a6305=await this[_0x3288d9(0x3f4)][_0x3288d9(0x29d)](_0x3bdd19);return _0x5a6305&&(_0x5a6305[_0x3288d9(0x1ff)]||_0x5a6305['mutations']['length']!==0x0)&&(_0x2160f6=_0x5a6305[_0x3288d9(0x4e0)]),_0x2160f6===0x0&&this[_0x3288d9(0x542)][_0x3288d9(0x3a7)]('[DataLoaderController]',_0x3288d9(0x4f5)),this[_0x3288d9(0x3f1)][_0x3288d9(0x53e)](_0x3bdd19,_0x2160f6);}};Ze=wo([ge(0x0,Xs),ge(0x1,_0x508ae2),ge(0x2,_0x16b157),ge(0x3,_0xbf893e(w)),ge(0x4,_0xbf893e(_0x345c31)),ge(0x5,_0x8646ba(_0x191aed))],Ze);var Po=Object['defineProperty'],yo=Object[_0x57f783(0x265)],Uo=(_0x32a904,_0x4cc5e7,_0xe1d1a1,_0x416b48)=>{const _0x5b48d8=_0x57f783;for(var _0x4faf7a=_0x416b48>0x1?void 0x0:_0x416b48?yo(_0x4cc5e7,_0xe1d1a1):_0x4cc5e7,_0x500578=_0x32a904[_0x5b48d8(0x331)]-0x1,_0x439738;_0x500578>=0x0;_0x500578--)(_0x439738=_0x32a904[_0x500578])&&(_0x4faf7a=(_0x416b48?_0x439738(_0x4cc5e7,_0xe1d1a1,_0x4faf7a):_0x439738(_0x4faf7a))||_0x4faf7a);return _0x416b48&&_0x4faf7a&&Po(_0x4cc5e7,_0xe1d1a1,_0x4faf7a),_0x4faf7a;},ps=(_0x4e047d,_0x4756db)=>(_0x120c45,_0x441009)=>_0x4756db(_0x120c45,_0x441009,_0x4e047d);const No=_0x57f783(0x3bc),Mo=_0x57f783(0x2c7);let Qe=class extends _0x291656{constructor(_0x44ee04,_0x279ef0){const _0x1671c4=_0x57f783;super(),this[_0x1671c4(0x439)]=_0x44ee04,this[_0x1671c4(0x1d6)]=_0x279ef0,this[_0x1671c4(0x36e)]();}['_init'](){const _0x6c1e89=_0x57f783;this[_0x6c1e89(0x50d)](this[_0x6c1e89(0x439)]['focused$']['subscribe'](()=>{const _0x26af16=_0x6c1e89;var _0x36ae0f;const _0xd883da=this[_0x26af16(0x439)][_0x26af16(0x3dc)]();let _0xbd98ae=(_0x36ae0f=this[_0x26af16(0x1d6)]['getConfig'](No))!=null?_0x36ae0f:Mo;_0xd883da instanceof _0x3b27dd&&(_0xbd98ae=_0xd883da[_0x26af16(0x442)]),document['title']=_0xbd98ae;}));}};Qe=Uo([ps(0x0,_0x2fdc83),ps(0x1,_0x32e210)],Qe);var Ao=Object['defineProperty'],Lo=Object[_0x57f783(0x265)],$o=(_0x10130a,_0x242d2b,_0x36f9b1,_0x3d4b27)=>{const _0x2051fc=_0x57f783;for(var _0xe886dd=_0x3d4b27>0x1?void 0x0:_0x3d4b27?Lo(_0x242d2b,_0x36f9b1):_0x242d2b,_0x5aee32=_0x10130a[_0x2051fc(0x331)]-0x1,_0x364c30;_0x5aee32>=0x0;_0x5aee32--)(_0x364c30=_0x10130a[_0x5aee32])&&(_0xe886dd=(_0x3d4b27?_0x364c30(_0x242d2b,_0x36f9b1,_0xe886dd):_0x364c30(_0xe886dd))||_0xe886dd);return _0x3d4b27&&_0xe886dd&&Ao(_0x242d2b,_0x36f9b1,_0xe886dd),_0xe886dd;},vt=(_0x3e724f,_0x5dbd82)=>(_0x4c3145,_0x4e35e9)=>_0x5dbd82(_0x4c3145,_0x4e35e9,_0x3e724f);let et=class{constructor(_0x1fa979,_0x4c2cb,_0x30faad){const _0x3c5f80=_0x57f783;this['_configService']=_0x1fa979,this[_0x3c5f80(0x4a9)]=_0x4c2cb,this['localeService']=_0x30faad,this[_0x3c5f80(0x4d0)]();}[_0x57f783(0x4d0)](){const _0x5de0af=_0x57f783;this[_0x5de0af(0x4a9)][_0x5de0af(0x4a4)]({'priority':0x1,'interceptor':(_0x17bf84,_0x5df7fe)=>_0x5df7fe(_0x17bf84)[_0x5de0af(0x2ba)](_0x3aab28(async _0x3b3fd8=>{const _0x325521=_0x5de0af,_0x58af48=_0x3b3fd8;if(_0x58af48[_0x325521(0x450)]===0x191&&window[_0x325521(0x4e1)](this[_0x325521(0x2c2)]['t'](_0x325521(0x503)))){const _0x258569=window[_0x325521(0x321)](window[_0x325521(0x317)][_0x325521(0x251)]);window[_0x325521(0x317)][_0x325521(0x251)]=this[_0x325521(0x319)]()+_0x325521(0x3eb)+_0x258569;}return _0x58af48;}))});}['_getLoginPath'](){const _0x1cd615=_0x57f783;var _0x4bf8ea,_0x51ec3d;const _0x4d21f4=this[_0x1cd615(0x1d6)][_0x1cd615(0x4fd)](Nn),_0x3940f5=this[_0x1cd615(0x1d6)][_0x1cd615(0x4fd)]($);return(_0x51ec3d=(_0x4bf8ea=_0x3940f5==null?void 0x0:_0x3940f5[_0x1cd615(0x308)])!=null?_0x4bf8ea:_0x4d21f4)!=null?_0x51ec3d:Mn;}};et=$o([vt(0x0,_0x32e210),vt(0x1,_0xbf893e(_0x55b0b1)),vt(0x2,_0xbf893e(_0x2b49aa))],et);var jo=Object[_0x57f783(0x370)],xo=Object[_0x57f783(0x265)],Ho=(_0x4d5bc3,_0x2eec7f,_0x46c392,_0x10737b)=>{for(var _0x90c992=_0x10737b>0x1?void 0x0:_0x10737b?xo(_0x2eec7f,_0x46c392):_0x2eec7f,_0x1b0de4=_0x4d5bc3['length']-0x1,_0x2676fc;_0x1b0de4>=0x0;_0x1b0de4--)(_0x2676fc=_0x4d5bc3[_0x1b0de4])&&(_0x90c992=(_0x10737b?_0x2676fc(_0x2eec7f,_0x46c392,_0x90c992):_0x2676fc(_0x90c992))||_0x90c992);return _0x10737b&&_0x90c992&&jo(_0x2eec7f,_0x46c392,_0x90c992),_0x90c992;},vs=(_0xc00849,_0x3946a7)=>(_0x5c7131,_0x2ed301)=>_0x3946a7(_0x5c7131,_0x2ed301,_0xc00849);const ko=_0x57f783(0x2d7),Bo=_0x57f783(0x447);function _0x5499(_0x50c79a,_0x283451){const _0x2332a2=_0x2332();return _0x5499=function(_0x54990d,_0x596c0b){_0x54990d=_0x54990d-0x1cd;let _0x3926c8=_0x2332a2[_0x54990d];return _0x3926c8;},_0x5499(_0x50c79a,_0x283451);}let Nt=class extends _0x291656{constructor(_0x32ede5,_0x11aa84){const _0x43da35=_0x57f783;super(),this[_0x43da35(0x536)]=_0x32ede5,this[_0x43da35(0x1d6)]=_0x11aa84,this[_0x43da35(0x3b0)]();}['_initMergeInterceptor'](){const _0x11e186=_0x57f783,_0x347cec=this;this[_0x11e186(0x50d)](this[_0x11e186(0x536)][_0x11e186(0x4a4)]({'priority':0x3e7,'interceptor':_0x47133c({'isMatch'(_0x18dfe3){const _0x41f177=_0x11e186;var _0x1a53f3;if(_0x18dfe3[_0x41f177(0x48e)]===_0x41f177(0x2a3)&&((_0x1a53f3=_0x18dfe3['requestParams'])!=null&&_0x1a53f3[_0x41f177(0x545)])){const {objectID:_0x236117,objectType:_0x4edf17}=_0x18dfe3[_0x41f177(0x1db)][_0x41f177(0x545)]||{};if(!_0x236117||_0x4edf17===void 0x0)return!0x1;const _0x1f5138=_0x347cec[_0x41f177(0x1fb)]()+'/'+_0x4edf17+_0x41f177(0x2e0)+_0x236117+_0x41f177(0x54a);if(_0x18dfe3[_0x41f177(0x325)]===_0x1f5138)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xc30e26){const _0x422cdb=_0x11e186;var _0x6f5c29;return(_0x6f5c29=_0xc30e26[_0x422cdb(0x1db)])==null?void 0x0:_0x6f5c29[_0x422cdb(0x545)];},'mergeParamsToRequest'(_0x41f6f3,_0x2b21cc){const _0x81268a=_0x11e186,_0x20733c=_0x347cec[_0x81268a(0x1fb)]()+'/-/object/-/batch_allowed',_0x11f319=_0x41f6f3['reduce']((_0x4729a7,_0x3d308d)=>{const _0x14be6c=_0x81268a,{unitID:_0x4a3582,objectID:_0x384ada,objectType:_0x373ff6,actions:_0x4a0446}=_0x3d308d;return _0x4729a7[_0x4a3582]||(_0x4729a7[_0x4a3582]={}),_0x4729a7[_0x4a3582][_0x384ada]||(_0x4729a7[_0x4a3582][_0x384ada]={'objectID':_0x384ada,'objectType':_0x373ff6,'actions':[]}),_0x4729a7[_0x4a3582][_0x384ada]['actions'][_0x14be6c(0x50c)](..._0x4a0446),_0x4729a7;},{}),_0x3f9f2a=[];for(const _0xa84ead in _0x11f319)for(const _0x1dd315 in _0x11f319[_0xa84ead]){const {actions:_0x44e023,objectType:_0x3ad2fd}=_0x11f319[_0xa84ead][_0x1dd315],_0x363abe=[...new Set(_0x44e023)];_0x3f9f2a['push']({'unitID':_0xa84ead,'objectID':_0x1dd315,'objectType':_0x3ad2fd,'actions':_0x363abe});}return new _0x213e9c('POST',_0x20733c,{'headers':_0x2b21cc[_0x81268a(0x20e)],'withCredentials':_0x2b21cc['withCredentials'],'responseType':_0x2b21cc[_0x81268a(0x342)],'body':{'requests':_0x3f9f2a}});}},{'distributeResult'(_0x5bb5d8,_0x283e52){const {objectActions:_0x5df8d8}=_0x5bb5d8;return _0x283e52['map'](_0x564eac=>{const _0x35aa8c=_0x5499,{unitID:_0x4cd6de,objectID:_0x2bdf61,actions:_0x437f24}=_0x564eac,_0x3d34a7=_0x5df8d8[_0x35aa8c(0x25b)](_0x311e57=>_0x311e57[_0x35aa8c(0x521)]===_0x4cd6de&&_0x311e57[_0x35aa8c(0x491)]===_0x2bdf61),_0x554e23=_0x437f24['map'](_0x400dc6=>_0x3d34a7==null?void 0x0:_0x3d34a7[_0x35aa8c(0x4ec)][_0x35aa8c(0x25b)](_0x2bba81=>_0x2bba81[_0x35aa8c(0x257)]===_0x400dc6))[_0x35aa8c(0x275)](_0x3e917e=>!!_0x3e917e);return{'config':_0x564eac,'result':{'actions':_0x554e23,'error':_0x5bb5d8[_0x35aa8c(0x4ef)]}};});}})}));}[_0x57f783(0x1fb)](){const _0x4191aa=_0x57f783;var _0x28ced7,_0x1e00a2;const _0x1a9609=this[_0x4191aa(0x1d6)][_0x4191aa(0x4fd)](ko),_0x24365d=this[_0x4191aa(0x1d6)][_0x4191aa(0x4fd)]($);return(_0x1e00a2=(_0x28ced7=_0x24365d==null?void 0x0:_0x24365d[_0x4191aa(0x509)])!=null?_0x28ced7:_0x1a9609)!=null?_0x1e00a2:Bo;}async[_0x57f783(0x28c)](_0x43cac4){const _0x221dcf=_0x57f783,_0x3b4ad8=this['_getAPIPrefixPath']()+'/'+_0x43cac4[_0x221dcf(0x4e6)]+_0x221dcf(0x427);return(await this[_0x221dcf(0x536)][_0x221dcf(0x218)](_0x3b4ad8,{'body':_0x43cac4}))['body'][_0x221dcf(0x491)]||'';}async[_0x57f783(0x1fc)](_0x1ed682){const _0x2b0d24=_0x57f783,_0x36df93=this[_0x2b0d24(0x1fb)]()+'/-/object/list';return(await this[_0x2b0d24(0x536)][_0x2b0d24(0x218)](_0x36df93,{'body':_0x1ed682}))[_0x2b0d24(0x545)][_0x2b0d24(0x238)];}async[_0x57f783(0x544)](_0x8388b9){const _0x2b7fea=_0x57f783,_0x5e1eaa=this[_0x2b7fea(0x1fb)]()+'/'+_0x8388b9[_0x2b7fea(0x4e6)]+_0x2b7fea(0x2e0)+_0x8388b9[_0x2b7fea(0x491)];await this[_0x2b7fea(0x536)][_0x2b7fea(0x247)](_0x5e1eaa,{'body':_0x8388b9});}async[_0x57f783(0x25a)](_0x417d75){const _0x20f0a0=_0x57f783,_0x5ce7d4=this[_0x20f0a0(0x1fb)]()+'/'+_0x417d75[_0x20f0a0(0x4e6)]+'/object/'+_0x417d75[_0x20f0a0(0x491)]+_0x20f0a0(0x54a);return(await this['_HTTPService'][_0x20f0a0(0x218)](_0x5ce7d4,{'body':_0x417d75}))[_0x20f0a0(0x545)][_0x20f0a0(0x4ec)];}async[_0x57f783(0x2db)](_0x1789ee){const _0x244827=_0x57f783,_0x4c3330=this[_0x244827(0x1fb)]()+_0x244827(0x399);return(await this[_0x244827(0x536)]['post'](_0x4c3330,{'body':{'requests':_0x1789ee}}))['body'][_0x244827(0x462)];}async[_0x57f783(0x30f)](_0x1ddf89){const _0x524701=_0x57f783,_0x20cf0d=this['_getAPIPrefixPath']()+'/'+_0x1ddf89[_0x524701(0x4e6)]+'/role',_0x17a486=await this['_HTTPService'][_0x524701(0x218)](_0x20cf0d,{'body':_0x1ddf89});return{'roles':_0x17a486[_0x524701(0x545)][_0x524701(0x538)],'actions':_0x17a486[_0x524701(0x545)][_0x524701(0x4ec)]};}async['deleteCollaborator'](_0x5e0792){const _0x34c870=_0x57f783,_0x4007f0=this[_0x34c870(0x1fb)]()+_0x34c870(0x1f8);await this[_0x34c870(0x536)]['delete'](_0x4007f0,{'params':{'collaboratorID':_0x5e0792['collaboratorID'],'objectID':_0x5e0792[_0x34c870(0x491)],'unitID':_0x5e0792['unitID']}});}async[_0x57f783(0x4b1)](_0x10cfb6){const _0x381552=_0x57f783,_0x5f3fa3=this[_0x381552(0x1fb)]()+_0x381552(0x1f8);await this['_HTTPService'][_0x381552(0x3ba)](_0x5f3fa3,{'body':_0x10cfb6});}async[_0x57f783(0x2b7)](_0x34c67b){const _0x56453c=_0x57f783,_0x2151dc=this['_getAPIPrefixPath']()+_0x56453c(0x1f8);await this[_0x56453c(0x536)][_0x56453c(0x218)](_0x2151dc,{'body':_0x34c67b});}async[_0x57f783(0x339)](_0x3171af){const _0x2abb6f=_0x57f783,_0x3560f5=this['_getAPIPrefixPath']()+'/collaborator';return(await this[_0x2abb6f(0x536)][_0x2abb6f(0x2c8)](_0x3560f5,{'params':{'objectID':_0x3171af[_0x2abb6f(0x491)],'unitID':_0x3171af[_0x2abb6f(0x521)]}}))['body']['collaborators'];}async[_0x57f783(0x322)](_0x36a238){const _0x443d9b=_0x57f783,_0x5512ce=this['_getAPIPrefixPath']()+_0x443d9b(0x1f8);await this['_HTTPService']['put'](_0x5512ce,{'body':_0x36a238});}};Nt=Ho([vs(0x0,_0xbf893e(_0x55b0b1)),vs(0x1,_0xbf893e(_0x32e210))],Nt);var Vo=Object[_0x57f783(0x370)],Fo=Object[_0x57f783(0x265)],Wo=(_0x58d9ab,_0x42fc5b,_0x3a0d48,_0x72070e)=>{const _0xc19099=_0x57f783;for(var _0x3a1432=_0x72070e>0x1?void 0x0:_0x72070e?Fo(_0x42fc5b,_0x3a0d48):_0x42fc5b,_0x164849=_0x58d9ab[_0xc19099(0x331)]-0x1,_0x1a9e68;_0x164849>=0x0;_0x164849--)(_0x1a9e68=_0x58d9ab[_0x164849])&&(_0x3a1432=(_0x72070e?_0x1a9e68(_0x42fc5b,_0x3a0d48,_0x3a1432):_0x1a9e68(_0x3a1432))||_0x3a1432);return _0x72070e&&_0x3a1432&&Vo(_0x42fc5b,_0x3a0d48,_0x3a1432),_0x3a1432;},Go=(_0x1db212,_0xa37ddb)=>(_0xeea53,_0x360545)=>_0xa37ddb(_0xeea53,_0x360545,_0x1db212);let tt=class{constructor(_0x2fd76b){const _0x1aceff=_0x57f783;this[_0x1aceff(0x4a9)]=_0x2fd76b,this[_0x1aceff(0x211)]();}['_initRequestHeader'](){const _0x66c0bd=_0x57f783;this[_0x66c0bd(0x4a9)][_0x66c0bd(0x4a4)]({'interceptor':(_0x506b2c,_0x39b299)=>{const _0x132f7b=_0x66c0bd,_0x2d095f=_0x506b2c[_0x132f7b(0x20e)],_0x11c67d=_0x2b3dde();return _0x11c67d&&_0x2d095f[_0x132f7b(0x54b)](_0x132f7b(0x44c),_0x11c67d),_0x39b299(_0x506b2c);}});}};tt=Wo([Go(0x0,_0xbf893e(_0x55b0b1))],tt);var Yo=Object[_0x57f783(0x370)],Ko=Object['getOwnPropertyDescriptor'],Xo=(_0x48e632,_0x583f63,_0x5297a9,_0x21c4e7)=>{const _0x4ec478=_0x57f783;for(var _0x2ae6a7=_0x21c4e7>0x1?void 0x0:_0x21c4e7?Ko(_0x583f63,_0x5297a9):_0x583f63,_0x588f77=_0x48e632[_0x4ec478(0x331)]-0x1,_0x3bf617;_0x588f77>=0x0;_0x588f77--)(_0x3bf617=_0x48e632[_0x588f77])&&(_0x2ae6a7=(_0x21c4e7?_0x3bf617(_0x583f63,_0x5297a9,_0x2ae6a7):_0x3bf617(_0x2ae6a7))||_0x2ae6a7);return _0x21c4e7&&_0x2ae6a7&&Yo(_0x583f63,_0x5297a9,_0x2ae6a7),_0x2ae6a7;},It=(_0x115a35,_0x556232)=>(_0x60184e,_0x24c165)=>_0x556232(_0x60184e,_0x24c165,_0x115a35);const qo=[_0x57f783(0x293),_0x57f783(0x2d4),'image/jpg',_0x57f783(0x26e),_0x57f783(0x2ab)],Jo=0x5*0x400*0x400,zo='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',Zo='/universer-api/stream/file/upload',Qo=_0x57f783(0x272),ea=_0x57f783(0x346);let Mt=class{constructor(_0x23da4c,_0x288ca3,_0x4fc9df){const _0x566165=_0x57f783;l(this,_0x566165(0x3e4),0x0),l(this,'_change$',new _0x4d30e5()),l(this,_0x566165(0x27d),this[_0x566165(0x517)]),l(this,_0x566165(0x4dc),new Map()),(this[_0x566165(0x4a9)]=_0x23da4c,this['_configService']=_0x288ca3,this[_0x566165(0x439)]=_0x4fc9df);}[_0x57f783(0x2bf)](_0x1b4c20){const _0x523a57=_0x57f783;this['_waitCount']=_0x1b4c20,this[_0x523a57(0x517)]['next'](_0x1b4c20);}[_0x57f783(0x266)](_0x99e1a6,_0x3567b9){const _0x3d3bfb=_0x57f783;if(_0x3567b9===_0x1eb7e5[_0x3d3bfb(0x437)]){const _0x1cc2a4=new Image();return _0x1cc2a4['src']=_0x99e1a6,_0x1cc2a4;}return this[_0x3d3bfb(0x4dc)]['get'](_0x99e1a6);}[_0x57f783(0x485)](_0x364195,_0xf133c0,_0x4428de){const _0x17b2f6=_0x57f783;_0xf133c0===_0x1eb7e5[_0x17b2f6(0x437)]||_0x4428de==null||this['_imageSourceCache'][_0x17b2f6(0x54b)](_0x364195,_0x4428de);}async[_0x57f783(0x37e)](_0x331a9b){const _0x4d6f0b=_0x57f783;try{const _0x4ecbb3=this['_replaceFileID'](this['_getSignURL'](),''+_0x331a9b),_0x503bfa=(await this[_0x4d6f0b(0x4a9)][_0x4d6f0b(0x2c8)](_0x4ecbb3))[_0x4d6f0b(0x545)];if(_0x503bfa[_0x4d6f0b(0x4ef)]&&_0x503bfa[_0x4d6f0b(0x4ef)][_0x4d6f0b(0x2ec)]===js['OK']){const _0x447b4c=new URL(_0x503bfa['url'],this[_0x4d6f0b(0x30a)]())[_0x4d6f0b(0x499)]();return Promise['resolve'](_0x447b4c);}return Promise[_0x4d6f0b(0x44a)](_0x503bfa[_0x4d6f0b(0x4ef)]);}catch(_0x3e5f1f){return Promise[_0x4d6f0b(0x44a)](_0x3e5f1f);}}async[_0x57f783(0x270)](_0x1cc8a8){const _0xf2afff=_0x57f783;let _0x250ba1='';if(!qo[_0xf2afff(0x54e)](_0x1cc8a8[_0xf2afff(0x312)]))return this[_0xf2afff(0x49f)](),Promise[_0xf2afff(0x44a)](new Error(_0x2d435f['ERROR_IMAGE_TYPE']));if(_0x1cc8a8['size']>Jo)return this['_decreaseWaiting'](),Promise[_0xf2afff(0x44a)](new Error(_0x2d435f[_0xf2afff(0x32b)]));try{const _0xe1a9c8=new FormData();_0xe1a9c8[_0xf2afff(0x523)](_0xf2afff(0x419),_0x1cc8a8);const _0x192d45=this[_0xf2afff(0x439)][_0xf2afff(0x3dc)](),_0x34e6b7=_0x192d45==null?void 0x0:_0x192d45[_0xf2afff(0x507)]();if(!_0x34e6b7)throw new Error(_0xf2afff(0x4c8));const _0x13ddd1=this[_0xf2afff(0x237)]()+_0xf2afff(0x40b)+_0x1cc8a8[_0xf2afff(0x21f)][_0xf2afff(0x499)]()+'&source='+xs[_0xf2afff(0x338)]+_0xf2afff(0x3c2)+encodeURIComponent(_0x34e6b7),_0x462add=await(await fetch(_0x13ddd1,{'method':'POST','body':_0xe1a9c8}))[_0xf2afff(0x261)]();if(typeof _0x462add[_0xf2afff(0x3d0)]!=_0xf2afff(0x41b))return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x2d435f['ERROR_IMAGE']));_0x250ba1=_0x462add[_0xf2afff(0x3d0)];}catch{return this[_0xf2afff(0x49f)](),Promise[_0xf2afff(0x44a)](new Error(_0x2d435f['ERROR_IMAGE']));}return new Promise((_0x5b8ecd,_0x16cac9)=>{const _0x46ab95=_0xf2afff,_0xfafa3d=new FileReader();_0xfafa3d['readAsDataURL'](_0x1cc8a8),_0xfafa3d[_0x46ab95(0x3e2)]=_0x2aca03=>{const _0x42b202=_0x46ab95;var _0x4338ec;const _0x3aa7e1=(_0x4338ec=_0x2aca03[_0x42b202(0x28f)])==null?void 0x0:_0x4338ec['result'];if(_0x3aa7e1==null){this['_decreaseWaiting'](),_0x16cac9(new Error(_0x2d435f[_0x42b202(0x2fc)]));return;}const _0x56f264=_0x13f79e[_0x42b202(0x396)](0x6);_0x5b8ecd({'imageId':_0x56f264,'imageSourceType':_0x1eb7e5[_0x42b202(0x4f2)],'source':_0x250ba1,'base64Cache':_0x3aa7e1,'status':_0x2d435f['SUCCUSS']}),this['_decreaseWaiting']();};});}[_0x57f783(0x237)](){const _0x23bcf0=_0x57f783;var _0xfb42bc,_0x2ed5c0;const _0x3e24c6=this[_0x23bcf0(0x1d6)][_0x23bcf0(0x4fd)](zo),_0x3e8fe7=this[_0x23bcf0(0x1d6)][_0x23bcf0(0x4fd)]($);return(_0x2ed5c0=(_0xfb42bc=_0x3e8fe7==null?void 0x0:_0x3e8fe7['uploadFileServerUrl'])!=null?_0xfb42bc:_0x3e24c6)!=null?_0x2ed5c0:Zo;}['_getSignURL'](){const _0x2f4e89=_0x57f783;var _0xa8c847,_0x54a900;const _0x434b48=this[_0x2f4e89(0x1d6)][_0x2f4e89(0x4fd)](Qo),_0x16aa5f=this[_0x2f4e89(0x1d6)][_0x2f4e89(0x4fd)]($);return(_0x54a900=(_0xa8c847=_0x16aa5f==null?void 0x0:_0x16aa5f[_0x2f4e89(0x244)])!=null?_0xa8c847:_0x434b48)!=null?_0x54a900:ea;}[_0x57f783(0x30a)](){const _0x238692=_0x57f783;var _0xadbaa3;const _0xe55577=this[_0x238692(0x1d6)][_0x238692(0x4fd)]($);return(_0xadbaa3=_0xe55577==null?void 0x0:_0xe55577['downloadEndpointUrl'])!=null?_0xadbaa3:location[_0x238692(0x33f)];}[_0x57f783(0x39c)](_0x2cb77c,_0x1cc3d5){const _0x21bc76=_0x57f783;return _0x2cb77c[_0x21bc76(0x49b)](_0x21bc76(0x47d),_0x1cc3d5);}['_decreaseWaiting'](){const _0x47adc1=_0x57f783;this['_waitCount']-=0x1,this['_change$'][_0x47adc1(0x393)](this[_0x47adc1(0x3e4)]);}};Mt=Xo([It(0x0,_0xbf893e(_0x55b0b1)),It(0x1,_0x32e210),It(0x2,_0xbf893e(_0x2fdc83))],Mt);var ta=Object[_0x57f783(0x370)],sa=Object[_0x57f783(0x265)],ia=(_0xfd26d1,_0x409823,_0x2f2543,_0x2daf98)=>{for(var _0x214e51=_0x2daf98>0x1?void 0x0:_0x2daf98?sa(_0x409823,_0x2f2543):_0x409823,_0xebecc0=_0xfd26d1['length']-0x1,_0x8a2acc;_0xebecc0>=0x0;_0xebecc0--)(_0x8a2acc=_0xfd26d1[_0xebecc0])&&(_0x214e51=(_0x2daf98?_0x8a2acc(_0x409823,_0x2f2543,_0x214e51):_0x8a2acc(_0x214e51))||_0x214e51);return _0x2daf98&&_0x214e51&&ta(_0x409823,_0x2f2543,_0x214e51),_0x214e51;},ye=(_0x2c23a6,_0x448eb3)=>(_0x4235a6,_0x4b91b5)=>_0x448eb3(_0x4235a6,_0x4b91b5,_0x2c23a6);let st=class extends _0x4e2f23{constructor(_0x2bd0d0,_0x618fe8,_0x4b6b4c,_0x2801d9,_0x586ace){const _0xc216fc=_0x57f783;super(),this['_injector']=_0x2bd0d0,this[_0xc216fc(0x439)]=_0x618fe8,this[_0xc216fc(0x519)]=_0x4b6b4c,this['_collaborationSessionService']=_0x2801d9,this[_0xc216fc(0x30c)]=_0x586ace,this[_0xc216fc(0x1d5)](),this[_0xc216fc(0x518)]();}['_initCloseConn'](){const _0x45f049=_0x57f783,_0x5a94f1=async _0x596f31=>{const _0x3fcdbe=_0x5499;(await this[_0x3fcdbe(0x479)][_0x3fcdbe(0x412)](_0x596f31))[_0x3fcdbe(0x330)]['pipe'](_0x5a107f(_0x381506=>_0x381506[_0x3fcdbe(0x413)]===_0x39fb90[_0x3fcdbe(0x204)]),_0x3ce0c8(this['dispose$']))[_0x3fcdbe(0x3c3)](_0x34fe14=>{const _0x4170ce=_0x3fcdbe,_0x3a446e=_0x34fe14,{reason:_0x23140d}=_0x3a446e[_0x4170ce(0x4c0)];this[_0x4170ce(0x52c)][_0x4170ce(0x2c8)](_0x37b80d)[_0x4170ce(0x4a8)]({'type':_0x13294d[_0x4170ce(0x486)],'content':this['_localeService']['t'](_0x4170ce(0x446))+'('+_0x23140d+')'}),this['_permissionService'][_0x4170ce(0x408)](new _0x51ccc2(_0x596f31)['id'],!0x1),this[_0x4170ce(0x479)][_0x4170ce(0x217)](_0x596f31);});};_0x431898(this[_0x45f049(0x439)][_0x45f049(0x229)](_0x3cefd0[_0x45f049(0x258)]),this[_0x45f049(0x439)]['getTypeOfUnitAdded$'](_0x3cefd0['UNIVER_DOC']))['pipe'](_0x24ae2d(_0x3cee6b=>_0x3cee6b[_0x45f049(0x507)]()),_0x5a107f(_0xe697af=>!_0x1a6e82(_0xe697af)),_0x3ce0c8(this[_0x45f049(0x379)]))[_0x45f049(0x3c3)](_0x34087e=>{_0x5a94f1(_0x34087e);});}[_0x57f783(0x1d5)](){const _0x249c34=_0x57f783,_0x1b6843=async _0x5e4a09=>{const _0x4628fb=_0x5499;(await this[_0x4628fb(0x479)][_0x4628fb(0x412)](_0x5e4a09))[_0x4628fb(0x330)][_0x4628fb(0x2ba)](_0x5a107f(_0x5739f7=>_0x5739f7[_0x4628fb(0x413)]===_0x39fb90[_0x4628fb(0x214)]),_0x3ce0c8(this[_0x4628fb(0x379)]))[_0x4628fb(0x3c3)](_0x4f8baa=>{const _0x1e1afc=_0x4628fb,_0x5c98a7=_0x4f8baa,{objectId:_0x5c2e80}=_0x5c98a7[_0x1e1afc(0x4c0)],_0x3830f1=this['_injector'][_0x1e1afc(0x2c8)](_0x95d27e);_0x5c2e80===_0x5e4a09?_0x3830f1[_0x1e1afc(0x359)](_0x5e4a09):_0x3830f1[_0x1e1afc(0x465)](_0x5e4a09,_0x5c2e80);});};_0x431898(this[_0x249c34(0x439)]['getTypeOfUnitAdded$'](_0x3cefd0[_0x249c34(0x258)]),this['_univerInstanceService'][_0x249c34(0x229)](_0x3cefd0[_0x249c34(0x36f)]))[_0x249c34(0x2ba)](_0x24ae2d(_0xfb88a3=>_0xfb88a3[_0x249c34(0x507)]()),_0x5a107f(_0x2cb650=>!_0x1a6e82(_0x2cb650)),_0x3ce0c8(this['dispose$']))[_0x249c34(0x3c3)](_0x563b75=>{_0x1b6843(_0x563b75);});}};st=ia([ye(0x0,_0xbf893e(_0x1e47c5)),ye(0x1,_0x2fdc83),ye(0x2,_0x2eefce),ye(0x3,_0xbf893e(he)),ye(0x4,_0xbf893e(_0x2b49aa))],st);var na=Object[_0x57f783(0x370)],ra=Object['getOwnPropertyDescriptor'],oa=(_0x1e5db2,_0x4e973b,_0x433a04,_0x258bf5)=>{const _0x3c0fbe=_0x57f783;for(var _0x4b0f9a=_0x258bf5>0x1?void 0x0:_0x258bf5?ra(_0x4e973b,_0x433a04):_0x4e973b,_0x3c7ffe=_0x1e5db2[_0x3c0fbe(0x331)]-0x1,_0x1fe8c4;_0x3c7ffe>=0x0;_0x3c7ffe--)(_0x1fe8c4=_0x1e5db2[_0x3c7ffe])&&(_0x4b0f9a=(_0x258bf5?_0x1fe8c4(_0x4e973b,_0x433a04,_0x4b0f9a):_0x1fe8c4(_0x4b0f9a))||_0x4b0f9a);return _0x258bf5&&_0x4b0f9a&&na(_0x4e973b,_0x433a04,_0x4b0f9a),_0x4b0f9a;},Is=(_0x1e9574,_0x4c7b6b)=>(_0x55f131,_0x28ad2d)=>_0x4c7b6b(_0x55f131,_0x28ad2d,_0x1e9574);let At=class{constructor(_0x49da1c,_0x369d8b){const _0x4159e5=_0x57f783;this[_0x4159e5(0x1d6)]=_0x49da1c,this['_httpService']=_0x369d8b;}async[_0x57f783(0x2fd)](_0x55c9aa,_0x581488){const _0x50b254=_0x57f783;var _0xffcabb;const {unitID:_0x3c2fa6,type:_0xbb040c,revision:_0x3b1f0c=0x0}=_0x581488,_0x293a18=this['_getSnapshotAPIPrefix']()+'/'+_0xbb040c+_0x50b254(0x4b9)+_0x3c2fa6+_0x50b254(0x472)+_0x3b1f0c,_0xae5e3c=(await this[_0x50b254(0x4a9)][_0x50b254(0x2c8)](_0x293a18))[_0x50b254(0x545)],_0x1f30e0=(_0xffcabb=_0xae5e3c[_0x50b254(0x1df)])==null?void 0x0:_0xffcabb[_0x50b254(0x4f6)];if(_0x1f30e0){const _0x58684e=_0x1f30e0==null?void 0x0:_0x1f30e0[_0x50b254(0x1e4)],_0x550679=_0x795c3e[_0x50b254(0x2de)](_0x208e88(_0x58684e));_0x1f30e0[_0x50b254(0x1e4)]=_0x550679,Object['entries'](_0x1f30e0[_0x50b254(0x469)])[_0x50b254(0x52a)](([,_0x306bea])=>{const _0x113453=_0x306bea['originalMeta'],_0x45095b=_0x795c3e['encode'](_0x208e88(_0x113453));_0x306bea['originalMeta']=_0x45095b;});}return _0xae5e3c;}async[_0x57f783(0x456)](_0x3eae2b,_0x5b84cd){const _0x931c96=_0x57f783,{unitID:_0x29ce16,type:_0x12cf43,blockID:_0x1733fb}=_0x5b84cd,_0x527413=this[_0x931c96(0x336)]()+'/'+_0x12cf43+'/unit/'+_0x29ce16+_0x931c96(0x40f)+_0x1733fb;return(await this[_0x931c96(0x4a9)]['get'](_0x527413))[_0x931c96(0x545)];}async[_0x57f783(0x341)](_0x77d729,_0x36dc19){const _0x209be1=_0x57f783,{unitID:_0x382811,type:_0x1cf15a,blockID:_0x1e5109}=_0x36dc19,_0x20522b=this['_getAPIPrefix']()+_0x209be1(0x40f)+_0x1cf15a+_0x209be1(0x4b9)+_0x382811+_0x209be1(0x40f)+_0x1e5109;return(await this['_httpService'][_0x209be1(0x2c8)](_0x20522b))[_0x209be1(0x545)];}async[_0x57f783(0x1f1)](_0x5238d1,_0x530e5b){const _0x525ea7=_0x57f783,{unitID:_0x138e0d,type:_0x3b5106,from:_0x82cef,to:_0x142ba0}=_0x530e5b,_0x439c88=this['_getAPIPrefix']()+'/'+_0x3b5106+'/unit/'+_0x138e0d+'/fetchmissing?from='+_0x82cef+_0x525ea7(0x361)+_0x142ba0;return(await this[_0x525ea7(0x4a9)]['get'](_0x439c88))[_0x525ea7(0x545)];}['_getSnapshotAPIPrefix'](){const _0x1d7ccb=_0x57f783;var _0x5ba495;return(_0x5ba495=this[_0x1d7ccb(0x1d6)][_0x1d7ccb(0x4fd)](vn))!=null?_0x5ba495:this[_0x1d7ccb(0x336)]();}[_0x57f783(0x336)](){const _0x253c72=_0x57f783;var _0x234558,_0x1fed5f;const _0x9fc1c4=this[_0x253c72(0x1d6)]['getConfig'](Sn),_0x14820d=this['_configService'][_0x253c72(0x4fd)]($);return(_0x1fed5f=(_0x234558=_0x14820d==null?void 0x0:_0x14820d['snapshotServerUrl'])!=null?_0x234558:_0x9fc1c4)!=null?_0x1fed5f:pn;}async[_0x57f783(0x3a6)](_0x52f134,_0x145570){const _0x221605=_0x57f783,_0x31da9e=_0x221605(0x372)+_0x145570[_0x221605(0x312)]+'/unit/'+_0x145570[_0x221605(0x521)]+'/resources';return(await this[_0x221605(0x4a9)][_0x221605(0x2c8)](_0x31da9e,{'params':{'resourceId':JSON[_0x221605(0x301)](_0x145570[_0x221605(0x2f7)])}}))[_0x221605(0x545)];}['saveSnapshot'](){const _0x196fed=_0x57f783;throw new Error(_0x196fed(0x4bb));}[_0x57f783(0x2e8)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x57f783(0x1d2)](){const _0x3cb7f2=_0x57f783;throw new Error(_0x3cb7f2(0x4bb));}[_0x57f783(0x332)](){const _0x450749=_0x57f783;throw new Error(_0x450749(0x4bb));}[_0x57f783(0x278)](){const _0x176d95=_0x57f783;throw new Error(_0x176d95(0x4bb));}};At=oa([Is(0x0,_0x32e210),Is(0x1,_0xbf893e(_0x55b0b1))],At);var aa=Object['defineProperty'],ca=Object[_0x57f783(0x265)],ha=(_0xcdd07e,_0x166e5e,_0x3ca99b,_0x5ea274)=>{const _0xa3e4a7=_0x57f783;for(var _0x591148=_0x5ea274>0x1?void 0x0:_0x5ea274?ca(_0x166e5e,_0x3ca99b):_0x166e5e,_0x124f3b=_0xcdd07e[_0xa3e4a7(0x331)]-0x1,_0x12597d;_0x124f3b>=0x0;_0x124f3b--)(_0x12597d=_0xcdd07e[_0x124f3b])&&(_0x591148=(_0x5ea274?_0x12597d(_0x166e5e,_0x3ca99b,_0x591148):_0x12597d(_0x591148))||_0x591148);return _0x5ea274&&_0x591148&&aa(_0x166e5e,_0x3ca99b,_0x591148),_0x591148;},Ue=(_0x148f6e,_0x9d86d0)=>(_0x30f5c3,_0x45ac6d)=>_0x9d86d0(_0x30f5c3,_0x45ac6d,_0x148f6e);let Lt=class extends _0x12c423{constructor(_0x29260e,_0x190541,_0x53e827,_0xf75967,_0x2df212){const _0x58bd93=_0x57f783;super(_0x29260e,_0x190541,_0x53e827),this[_0x58bd93(0x43b)]=_0xf75967,this[_0x58bd93(0x542)]=_0x2df212;}[_0x57f783(0x3b1)](_0x2612e6,_0x4850b2){const _0x570399=_0x57f783,_0x5a7fba=this['_getUndoStack'](_0x2612e6);if(_0x5a7fba)try{const _0x26acfc=this['_transformStack'](_0x5a7fba,_0x4850b2);this[_0x570399(0x35c)](_0x2612e6,_0x26acfc);}catch(_0x4f4688){this[_0x570399(0x542)][_0x570399(0x4ef)](_0x570399(0x268),_0x4f4688),this[_0x570399(0x3ea)](_0x2612e6);}const _0x141337=this[_0x570399(0x4c3)](_0x2612e6);if(_0x141337)try{const _0x339b51=this[_0x570399(0x449)](_0x141337,_0x4850b2);this[_0x570399(0x3b3)](_0x2612e6,_0x339b51);}catch(_0x447764){this['_logService']['error'](_0x447764),this[_0x570399(0x2bc)](_0x2612e6);}}['_clearUndo'](_0x53da0b){const _0x5e2862=_0x57f783,_0x37c3d7=this[_0x5e2862(0x20f)](_0x53da0b);_0x37c3d7&&(_0x37c3d7[_0x5e2862(0x331)]=0x0,this[_0x5e2862(0x39d)]());}['_clearRedo'](_0x2e0f4e){const _0xe47a71=_0x57f783,_0xdc3add=this['_getRedoStack'](_0x2e0f4e);_0xdc3add&&(_0xdc3add[_0xe47a71(0x331)]=0x0,this['_updateStatus']());}[_0x57f783(0x35c)](_0x3f1a70,_0x2287be){const _0x37c682=_0x57f783;this['_undoStacks'][_0x37c682(0x54b)](_0x3f1a70,_0x2287be),this['_updateStatus']();}[_0x57f783(0x3b3)](_0x4a89df,_0x9fba6a){const _0x55c80b=_0x57f783;this['_redoStacks'][_0x55c80b(0x54b)](_0x4a89df,_0x9fba6a),this['_updateStatus']();}[_0x57f783(0x449)](_0x26e71c,_0x4a21b0){const _0x37e308=_0x57f783,_0x3249ab=[];let _0xd435c2=_0x4a21b0,_0x54a3bd=_0x4a21b0;for(let _0x166457=_0x26e71c['length']-0x1;_0x166457>=0x0;_0x166457--){const {unitID:_0x471758,undoMutations:_0x48d080,redoMutations:_0x103bb2}=_0x26e71c[_0x166457],_0x141a26=this[_0x37e308(0x43b)][_0x37e308(0x21a)](_0xd435c2,_0x48d080),_0x2e40b2=this[_0x37e308(0x43b)][_0x37e308(0x21a)](_0x54a3bd,_0x103bb2);if(_0x5aaa3e(_0x141a26)||_0x5aaa3e(_0x2e40b2)){this[_0x37e308(0x542)][_0x37e308(0x4ef)]('[CollaborationUndoRedoService]',_0x37e308(0x246),_0x141a26,_0x2e40b2);break;}_0xd435c2=_0x141a26['c1Prime'],_0x54a3bd=_0x2e40b2[_0x37e308(0x4d8)],_0x3249ab[_0x37e308(0x50c)]({'unitID':_0x471758,'undoMutations':_0x141a26[_0x37e308(0x526)],'redoMutations':_0x2e40b2['m2Prime']});}return _0x3249ab[_0x37e308(0x535)]();}};Lt=ha([Ue(0x0,_0x2fdc83),Ue(0x1,_0x16b157),Ue(0x2,_0x206e38),Ue(0x3,_0xe114b8),Ue(0x4,_0x508ae2)],Lt);class la extends _0x4e2f23{constructor(){const _0xe579fc=_0x57f783;super(),l(this,'urlChange$'),this[_0xe579fc(0x3d4)]=_0x31da28(window,_0xe579fc(0x35b))[_0xe579fc(0x2ba)](_0x341fba(this[_0xe579fc(0x379)]),_0x541027(0x1),_0x1a64c4(void 0x0));}[_0x57f783(0x250)](_0x39ce64,_0x2246f5,_0x5c9441=!0x1){const _0x3b84dc=_0x57f783,_0x3d6445=new URL(window[_0x3b84dc(0x317)][_0x3b84dc(0x251)]);_0x3d6445[_0x3b84dc(0x4c1)]['set'](_0x39ce64,_0x2246f5),_0x5c9441?window['history']['replaceState']('','',_0x3d6445[_0x3b84dc(0x499)]()):window['history'][_0x3b84dc(0x46c)]('','',_0x3d6445['toString']());}[_0x57f783(0x219)](_0x11eb24,_0x56fd74=!0x1){const _0x145f77=_0x57f783,_0x30be2a=new URL(window[_0x145f77(0x317)]['href']);_0x30be2a[_0x145f77(0x4c1)][_0x145f77(0x210)](_0x11eb24),_0x56fd74?window[_0x145f77(0x4ab)][_0x145f77(0x2c3)]('','',_0x30be2a[_0x145f77(0x499)]()):window['history'][_0x145f77(0x46c)]('','',_0x30be2a[_0x145f77(0x499)]());}[_0x57f783(0x2d6)](_0x4e8ccd){const _0x18cd4f=_0x57f783;var _0x267694;return(_0x267694=new URL(window[_0x18cd4f(0x317)]['href'])[_0x18cd4f(0x4c1)][_0x18cd4f(0x2c8)](_0x4e8ccd))!=null?_0x267694:void 0x0;}}var qs=Object[_0x57f783(0x370)],_a=Object['getOwnPropertyDescriptor'],ua=(_0x1b8895,_0x59ab2c,_0x5e34fe)=>_0x59ab2c in _0x1b8895?qs(_0x1b8895,_0x59ab2c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e34fe}):_0x1b8895[_0x59ab2c]=_0x5e34fe,da=(_0x328f09,_0x25cf0a,_0x2a637b,_0x22435b)=>{const _0x146f08=_0x57f783;for(var _0x374be5=_0x22435b>0x1?void 0x0:_0x22435b?_a(_0x25cf0a,_0x2a637b):_0x25cf0a,_0x50dd1a=_0x328f09[_0x146f08(0x331)]-0x1,_0xce96a4;_0x50dd1a>=0x0;_0x50dd1a--)(_0xce96a4=_0x328f09[_0x50dd1a])&&(_0x374be5=(_0x22435b?_0xce96a4(_0x25cf0a,_0x2a637b,_0x374be5):_0xce96a4(_0x374be5))||_0x374be5);return _0x22435b&&_0x374be5&&qs(_0x25cf0a,_0x2a637b,_0x374be5),_0x374be5;},Ve=(_0x26958f,_0xba1749)=>(_0x3364c1,_0x409bb6)=>_0xba1749(_0x3364c1,_0x409bb6,_0x26958f),fa=(_0xa2ceb6,_0xac6634,_0xa21724)=>ua(_0xa2ceb6,_0xac6634+'',_0xa21724);const ma=_0x57f783(0x4f4);let $t=class extends _0x288bca{constructor(_0x4c3e75=An,_0x41faac,_0x18a5eb,_0x402322,_0x18129e){const _0x2c39db=_0x57f783;super(),this['_config']=_0x4c3e75,this[_0x2c39db(0x542)]=_0x41faac,this[_0x2c39db(0x414)]=_0x18a5eb,this[_0x2c39db(0x52c)]=_0x402322,this[_0x2c39db(0x1d6)]=_0x18129e;const {..._0xaaaacd}=this[_0x2c39db(0x289)];this[_0x2c39db(0x1d6)]['setConfig']($,_0xaaaacd);}['onStarting'](){const _0x592f3c=_0x57f783;this[_0x592f3c(0x1fd)](),_0x1e0a11(this['_injector'],[[ve],[Ze],[st]]);}[_0x57f783(0x534)](){_0x1e0a11(this['_injector'],[[Qe]]);}['onRendered'](){const _0x5758cb=_0x57f783;this[_0x5758cb(0x284)]();}[_0x57f783(0x1fd)](){const _0x4f2bf5=_0x57f783;var _0x390dbd,_0x171395,_0x2cb01a,_0x199a9e;this[_0x4f2bf5(0x52c)]['has'](_0x5a196a)&&this[_0x4f2bf5(0x542)][_0x4f2bf5(0x4ef)](_0x4f2bf5(0x355),_0x4f2bf5(0x1e8));let _0x49f1d8=[[_0x5a196a,{'useClass':Lt}],[he],[Yt],[_0x55b0b1],[Xs,{'useClass':la}],[ce],[w],[_0x2e70ea],[qe],[Je],[Xe],[Wt],[et],[tt],[ks],[st],[Hs,{'useClass':(_0x171395=(_0x390dbd=this[_0x4f2bf5(0x289)])==null?void 0x0:_0x390dbd['socketService'])!=null?_0x171395:Tt}],[_0x3cf930,{'useClass':_0x3732ea}],[_0x53ffaa,{'useClass':At}],[_0x2ae99d,{'useClass':Nt}],[_0x2ad49c,{'useClass':Mt}],[Le],[Ze],[Me],[Qe],[ve]];(_0x2cb01a=this[_0x4f2bf5(0x289)])!=null&&_0x2cb01a[_0x4f2bf5(0x4ee)]&&_0x49f1d8[_0x4f2bf5(0x50c)]([it,{'useClass':fr}]),_0x49f1d8=_0x4ac76d(_0x49f1d8,(_0x199a9e=this[_0x4f2bf5(0x289)])==null?void 0x0:_0x199a9e[_0x4f2bf5(0x25d)]),_0x49f1d8[_0x4f2bf5(0x52a)](_0x23eeb4=>this[_0x4f2bf5(0x52c)][_0x4f2bf5(0x3cc)](_0x23eeb4)),this[_0x4f2bf5(0x400)]();}[_0x57f783(0x284)](){const _0x2f1d06=_0x57f783;this[_0x2f1d06(0x50d)](this[_0x2f1d06(0x414)][_0x2f1d06(0x35d)](_0x3cefd0['UNIVER_DOC'],[yt])),this[_0x2f1d06(0x50d)](this[_0x2f1d06(0x414)]['registerRenderModule'](_0x3cefd0[_0x2f1d06(0x258)],[Ut]));}[_0x57f783(0x400)](){const _0x5d9af7=_0x57f783;var _0x5a0f4a,_0x26e801;this[_0x5d9af7(0x52c)][_0x5d9af7(0x2c8)](_0x55b0b1)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x20a7d8({'maxParallel':0x6})}),this[_0x5d9af7(0x52c)][_0x5d9af7(0x2c8)](tt),(_0x5a0f4a=this[_0x5d9af7(0x289)])!=null&&_0x5a0f4a[_0x5d9af7(0x1cd)]||this[_0x5d9af7(0x52c)][_0x5d9af7(0x2c8)](w)[_0x5d9af7(0x48c)](),(_0x26e801=this[_0x5d9af7(0x289)])!=null&&_0x26e801[_0x5d9af7(0x351)]&&this[_0x5d9af7(0x52c)]['get'](et),this['_injector'][_0x5d9af7(0x2c8)](Le),this[_0x5d9af7(0x52c)][_0x5d9af7(0x3d6)](Me)&&this[_0x5d9af7(0x52c)][_0x5d9af7(0x2c8)](Me);}};fa($t,_0x57f783(0x547),ma),$t=da([_0x5cca2d(_0x883d03),Ve(0x1,_0x508ae2),Ve(0x2,_0x5802ac),Ve(0x3,_0xbf893e(_0x1e47c5)),Ve(0x4,_0x32e210)],$t);export{ko as AUTHZ_URL_KEY,Nt as AuthzIoHttpService,yn as COLLAB_SUBMIT_CHANGESET_URL_KEY,En as COLLAB_WEB_SOCKET_URL_KEY,Le as CollaborationController,ze as CollaborationEntity,Rt as CollaborationSession,he as CollaborationSessionService,Tt as CollaborationSocketService,P as CollaborationStatus,Eo as CollaborationStatusDisplay,ks as CommentService,Ze as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Ot as DocCollaborationEntity,bn as HEARTBEAT_INTERVAL_KEY,Ls as HEARTBEAT_TIMEOUT_KEY,Hs as ICollaborationSocketService,Xs as IURLService,Mt as ImageIoService,wn as LOCAL_CACHE_INTERVAL_KEY,Nn as LOGIN_URL_KEY,w as LocalCacheService,On as RETRY_CONNECTING_MAX_COUNT_KEY,La as SEND_CHANGESET_TIMEOUT_KEY,Sn as SNAPSHOT_SERVER_URL_KEY,vn as SNAPSHOT_URL_KEY,Y as SessionStatus,to as SheetCollabCursorShape,Dt as SheetCollaborationEntity,At as SnapshotServerOverHTTPService,$t as UniverCollaborationClientPlugin,la as WebURLService,Ln as deserializeToCombResponse,$n as serializeCombRequest};