@univerjs-pro/collaboration-client 0.4.0-nightly.202410151606 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3a2165=_0x4ca1;(function(_0x4cda34,_0x3a8fff){const _0x141a1c=_0x4ca1,_0xb1554e=_0x4cda34();while(!![]){try{const _0x3882b8=-parseInt(_0x141a1c(0x2ad))/0x1+-parseInt(_0x141a1c(0x149))/0x2*(-parseInt(_0x141a1c(0x265))/0x3)+-parseInt(_0x141a1c(0x45f))/0x4+parseInt(_0x141a1c(0x148))/0x5+-parseInt(_0x141a1c(0x170))/0x6*(-parseInt(_0x141a1c(0x123))/0x7)+parseInt(_0x141a1c(0x4bc))/0x8*(-parseInt(_0x141a1c(0x35f))/0x9)+parseInt(_0x141a1c(0x11d))/0xa;if(_0x3882b8===_0x3a8fff)break;else _0xb1554e['push'](_0xb1554e['shift']());}catch(_0xe34614){_0xb1554e['push'](_0xb1554e['shift']());}}}(_0x26d6,0xc81e3));function _0x26d6(){const _0x254b95=['COMPRESS_MUTATION_APPLY','_textBubble','BuiltInUIPart','object','isTransformMutationFailure','catch','_localStorageService','6476252jBokOV','MoveRangeCommandId','UniverInstanceType','resend','_docSkeletonManagerService','socket\x20close','SYNCED','getImage','InsertColCommandId','post','serializeCombRequest','cursorInfo$','_toggleOffline','_scheduleCollaborationTimeoutTimer','createSocket','touchDependencies','ColorKit','color','roomInfos','1em','getOwnPropertySymbols','_session','removeParam','CHANGESET_ACK','_context','submit\x20changeset\x20error!','defs','onStarting','CommentService','onlyLocal','getSheetId','setAlpha','_cursorShapes','_clearScheduledTask','univer-online-status-icon','substring','Tools','FETCH_MISSING','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_clearOtherTimers','sheets','SetWorksheetActivateCommand','currentSkeleton$','RefRangeService','connection\x20error','/allowed','pluginName','COMPRESS_MUTATION_SEND','replaceState','ILogService','dispose','status','getSheetBlock','name','COLLAB_WEB_SOCKET_URL','assign','DataLoaderController','tag','hovered','updateMember','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_compressMutationService','createElement','/universer-api/snapshot/','searchParams','ImageUploadStatusType','parseChangesetToProtocol','_handleHeartbeatEvent','SessionStatus','InsertRangeMoveDownCommandId','_updateStatus','RECV','_onCursorUpdate','_disabled','init','saveSnapshot','_state','has','origin','_docTransformIMECacheService','headers','_document','routeKey','YUUMI_RATE_OVER_LIMIT','_onRecvEvent','list','Univer','Optional','ERROR_IMAGE_TYPE','SNAPSHOT_HAS_BEEN_REMOVED','collaboration.single-unit.warning','DocCollaborationEntity','handleMoveRange','12131808eylxER','_id','collabStatus.conflict','fromEventSubject','_onConflict','DeleteRangeMoveLeftCommandId','setInterval','APPLY_PERMISSION_DENIED','commentUpdate$','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','createIdentifier','[CollaborationSessionService]','session.collaboration-timeout','concatMap','moveTo','OTHER_CLIENTS_EDITING','UNDEFINED','_getUploadFileURL','getUnhiddenWorksheets','closeSession','RETRY_CONNECTING_MAX_COUNT','state','_cachedData','append','_themeService','APPLY_REJECT','trim','_onRemoteRejected','_onOffline','CollaborationStatus','reduce','_notificationService','_render','_singleActiveUnitService','/resources','_getAPIPrefix','getCollabEntity','path','[CollaborationEntity]','_awaitingChangeset','userID','createInstance','toRgbString','_updateCollabCursors','SUBMIT_CHANGESET','delay','NOT_COLLAB','[CollaborationUndoRedoService]','_scheduleClearOtherTimer','ITransformService','onRendered','_labelPosition','RevisionService','_cursors','@univerjs-pro/license','getVpScrollXYInfoByPosToVp','YUUMI_SUBSCRIPTION_NOT_FOUND','selection','_scheduleSaving','debounce','IConfigService','registerHTTPInterceptor','_handleEvent','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','Module','_retryCount','_drawRectRange','location','unshift','[OfflineState]:\x20received\x20rejection.','_config','SetTextSelectionsOperation','_scheduleTimestamp','getCurrentRevOfUnit','HELLO','createCollaborator','isInternalEditorID','XHRHTTPImplementation','slice','_transformRemoteChangesetByIMECache','_HTTPService','then','filter','extend','CHANGESET_REVISION_CONFILICT','IAuthzIoService','unitId','Rectangle','_updateState','_startSheetCollabCursor','stopTime','collaboratorID','_showConflictNotification','COLORS','univer-pro.collaboration-client.single-active-unit-service','transformMutationsWithChangeset','_heartbeatTimer','members','_refreshCollabCursors','div','getCollabEntity$','_socketMessageSubscription','/universer-api/oidc/authpage','asObservable','_unitID','round','session.room-full','params','UniverCollaborationPlugin','LIVESHARE_OPERATION','Error','_configService','CollaborationSocketService','transformIMECache','LEAVE','result','UNAUTHENTICATED','_getAnchorBounding','_getUndoStack','encode','_collaborationPaused','pending','0\x200\x2017\x2016','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','LIVESHARE_NEW_HOST','show','toDisposable','RegularPolygon','setActiveRange','CollaborationEntity','\x20to\x20','downloadEndpointUrl','_send','awaiting_with_pending','fillRule','27622630NSWEOJ','_name','_setupBeforeClosingHandler','_lockTransition','runRefRangeMutations','action','42ZLbVsG','data','UNIVER_SLIDE','_hover','registerOnClose','urlChange$','_setupSubUnitSync','_cursorInfo$','_transformIMECache','POST','[PendingState]:\x20received\x20acknowledgement.','memberID','interceptor','@univerjs-pro/collaboration','visibilitychange','doc.mutation.rich-text-editing','collab-text-anchor-','confirm','body','_range','IUniverInstanceService','UniverCollaborationClientPlugin','\x20in\x20_schedule.','?url=','_createInitialState','Undefined','isValidRectRange','_selfUnitIDs','close$','delete','getOffsetConfig','baseRev','LICENSE_MAX_UNITS_EXCEEDED','width','_change$','isPermissionRej','[DataLoaderController]','4750615lntvec','587374eWPspt','_startTelemetryCollaborationNewChangeset','attrs','/new_changes','getUniverSheetInstance','create','COMMENT_UPDATE','_getAPIPrefixPath','_registerDependencies','loadOfflineData','_cursor','_toggleOnline','getUnitOnRev','collaboration-client.offline-data-not-saved','_socket$','onTransformIME','_fetchMissChangesets','dispose$','INVALID_ARGUMENT','synced','loginUrlKey','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','collabStatus.fetchMiss','off-line-single','AWAITING_WITH_PENDING','IHTTPImplementation','_transformUndoredo','setShapeProps','contains','range','disposeWithMe','_initMergeInterceptor','sheetID','&assign=','isTransformMutationsWithChangesetSuccess','CollaborationSessionService','colorChannel1','_docStateChangeManagerService','INTERNAL_ERROR','144270ewfjOX','CONFLICT','refreshPermission','blue400','getCoordByCell','_getSnapshotAPIPrefix','_unitStatus','exhaustSavingTask','MUTATION','CHANGESET_REJ','PSEUDO_FETCH_MISSING_RESULT','useRef','onPointerEnter$','_waitForHeartbeatResponse','_entities','_onCombEvent','CollaborationSession','href','onSendChangeset','JOINING','saveSheetBlock','_onRemoteChangeset','_onCursorDelete','_registerRenderDependencies','UUID','_sessions','SNAPSHOT_URL_KEY','_color','_drawAnchor','_initCommandExecutedListener','message$','SNAPSHOT_INVALID_SNAPSHOT','\x0aAfter:\x20','APPLY_NON_SEQUENTIAL_REVISION','_snapshotServerService','PENDING','set','_initStatusComponent','_uiPartsService','isTransformChangesetsSuccess','_scene','measureText','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','onlineStatusIcon','_members','save','liveShareOperation','uploadFileServerUrl','getFocusedUnit','/collaborator','UNKNOWN_CMD','_sessionStatus$','_initRequestHeader','compose','_hideTimer','sessionStatus','setUndoRedoMutationParamsCache','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_applyRemoteChangeset','EmptyMutation','retryConnectingInterval','_handler','ONLINE','none','text','_collabSessionService','online','LICENSE_EXPORT_SIZE_EXCEEDED','JSONX','handleDeleteRangeMoveUp','requestParams','disableLocalCache','number','_getCurrentRevision','[SyncedState]:\x20received\x20rejection.','put','getCurrent','_redoStacks','[OfflineState]:\x20received\x20changeset.','endRow','displayName','_getSheetObject','executeCommand','session','WorkbookEditablePermission','newValue','signUrlServerUrl','collaboration-session-retry','SUCCUSS','_transitionLocked','authzUrl','_permissionService','socketService','_tryEnsureSocket','values','icon','_socketService','_backgroundColor','assignAColorForMemberID','_checkMissing','restore','symbol','_localeService','LocalUndoRedoService','HTTPService','_init','collab-text-range-','_incrementRevisionNumber','getItem','startColumn','clearTimeout','sessionStatus$','toggleOnline','deserializeRangeWithSheet','defineProperty','_docTransformSelectionsService','LOGIN_URL_KEY','_substituteRedoStack','_unitOnClients','x-univer-host','_localCacheService','getParam','_shouldReportTelemetry','_startDocCollabCursor','csAckEvent','DocSkeletonManagerService','subscribe','call','getCurrentSelections','IUIPartsService','red300','_state$','rev','sequenceExecute','onMissedChangesetFetched','max','_getDownloadEndpointURL','transformRemoteChangeset','OnLineSingle','_event$','svg','prototype','IBeforeCloseService','SheetPermissionInitController','updateOfflineData','_draw','getColor','isArray','deepClone','IRenderManagerService','SHOULD_CLOSE_CONN','readAsDataURL','objectType','saveChangeset','getViewport','onReady','idSuffix','_userManagerService','size','addImageSourceCache','_onUserJoin','NodePositionConvertToRectRange','UNIVER_PROJECT','enableSingleActiveInstanceLock','_queuedRemoteChangesets','transformStack\x20failed!','_undoRedoService','eventID','onCommentUpdate','IRemoteInstanceService','beginPath','evenodd','Tooltip','RichTextEditingMutation','CONNECTOR_DATA_TOO_LARGE','UNIVER_SHEET','_collaborationTimeoutTimer','UniverIcon','_assignedColors','_getLoginPath','image/jpeg','setWaitCount','xlink:href','_updateSubUnitFromURLParams','OffLineSingle','offline','getAttachHeader','sheetId','addObject','...','_pendingMutations','PERMISSION_REJ','_clearRedo','m1Prime','LOCAL_CACHE_INTERVAL_KEY','_onRefRangeChange','_online','onload','url','toggleOffline','generateRandomId','_anchor','getActiveSheet','_syncEditingCollabCursor','getInterceptPoints','updateCollaborator','replaceTextRanges','UNIVER_UNKNOWN','onMouseMove','_replaceFileID','allowed','YUUMI_URL_COL_OUT_OF_RANGE','IUndoRedoService','getUnitStatus$','PERMISSION_DENIED','isTransformMutationsWithChangesetFailure','_roomMembers$','LIVESHARE_FETCH_OPERATIONS','loadSheet','arc','FETCH_MISS','use','/object/','ILocalStorageService','DesktopCollaborationStatusDisplayController','revision','onMissingChangesets','_initCloseConn','[CollaborationSession]','ALREADY_EXISTS','onPointerLeave$','Unknown\x20user','_loadSheet','b64DecodeUnicode','&to=','getAncestorScale','setTimeout','collabWebSocketUrl','_scheduleHeartbeat','_telemetryInfo','indexOf','WebURLService','_clearCollaborationTimeoutTimer','rxjs','_collabCursorState$','9buOvOK','_initEventListeners','_urlService','fill','min','@univerjs/sheets','_removeCollabCursors','univer-pro.collaboration-client-socket-service','/universer-api/stream/file/upload','fetchMissingChangesets','error$','_onRemoteACK','_getScale','RETRY_CONNECTING_MAX_COUNT_KEY','newCsEvent','_collaborationSessionService','textEncoder','title','IPermissionService','ImageIoService','putCollaborators','takeUntil','_transformSelections','registerBeforeClose','send','COLLAB_SUBMIT_CHANGESET_URL','_onLocalMutation','startRow','handleInsertRangeMoveDown','shareReplay','fetchThroughInterceptors','ERROR_IMAGE','/-/object/-/batch_allowed','onStateChange','Disposable','defIds','transformSelections','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','localeService','/rev/','Subject','_initUnitPermissionChange','cmd','_clearLocalCache','transform','resourceIDs','children','#FFF','replace','fillStyle','_getSignURL','setCurrentUser','OFFLINE','onSyncEditingCollabCursor','registerRefRange','labelPosition','override','all','concat','split','socket$','_getSaveTimeout','_commentUpdate$','reverse','_throwTelemetryCollaborationNewChangeset','HEARTBEAT_INTERVAL','getWorkbookSelections','findNodePositionByCharIndex','registerRenderModule','getRenderById','_startCollaboration','_telemetryService','782495tMIkYJ','SEND_CHANGESET_TIMEOUT','image/jpg','UNKNOWN_CODE','_snapshotService','joinEvent','toStringTag','enableAuthServer','setParam','drawWith','shouldCloseConn','auth.needGotoLoginAlert','ITelemetryService','UserManagerService','_messageService','VIEW_MAIN','_saveTaskMap','_sheetTransformSelectionsService','@univerjs/docs-ui','getCellPositionByOffset','CompressMutationService','mapDocumentTypeToUniverType','_memberService','permissionRejEvent','workbook','next','_refRangeService','_initResize','_removeClearOtherTimer','UnitEmbedded','hide','fromEvent','snapshot','/universer-api/snapshot','unit','_revisionService','getResourcesRequest','_updateLocalCursor','_updateURLWithCurrentState','@univerjs/engine-render','SnapshotService','enableOfflineEditing','/block/','registerComponent','syncEditingCollabCursor','updateCursorEvent','with','isActive','onTransformRemoteChangesetByIMECache','history','fetchMiss','UnitSnapshot','onRemoteAck','merge','_remoteChangesetQueue','getMergeData','add','/universer-api/file/{fileID}/sign-url','_socketReady','@univerjs/drawing','collaMsg','some','DisposableCollection','src','telemetry\x20info\x20is\x20not\x20initialized','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','SheetsSelectionsService','_collabCursorController','hasOwnProperty','code','_anchorDot','debounceTime','BehaviorSubject','mapTo','_unlockTransition','_collaborationController','from','DEFAULT_FILE_NAME','unit-cache-','_onMessage','onlineStatusTitle','/universer-api/comb','HEARTBEAT','AUTHZ_URL_KEY','_imageSourceCache','session.connection-failed','CommandType','collabStatus.offline','get','originalMeta','#fff','univer-online','liveShareNewHost','_createSocket','rgba(255,\x20255,\x20255,\x200.01)','SetDocZoomRatioOperation','LocalCacheService','_commentService','getTypeOfUnitDisposed$','failed\x20to\x20apply\x20missed\x20changesets!','getSheetBySheetId','_updateLocalCache','_substituteUndoStack','csRejEvent','patch','_transformService','@univerjs/network','RemoveColCommandId','clearInterval','url(#off-line-single_clip0_910_343)','resolve','getTypeOfUnitAdded$','CollaborationController','mutations','image/png','ThemeService','_getMergeRange','_undoStacks','lineTo','_decreaseWaiting','@univerjs/core','IImageIoService','USERS_LEAVE','_transformUndoRedoStack','whenReady','state$','COMPLETION_FINISHED','appendMutation','_onFetchMissResult','pushState','removeMember','leaveEvent','map','skeleton','apply','INGEST','[OfflineState]:\x20received\x20acknowledgement.','onRemoteChangeset','forEach','off-line-single_clip0_910_343','push','@univerjs/telemetry','roomMembers','fetch_missing','HTTPRequest','pauseCollaboration','updatePermissionPoint','height','_beforeCloseService','MergeInterceptorFactory','popstate','NOT_FOUND','onTransformSelections','_type','getConfig','getSheetObject','/object','deserializeToCombResponse','objectActions','getActiveRange','_disableEditing','UNIVER_DOC','/-/object/list','INotificationService','VIEWPORT_KEY','ranges','c1Prime','event$','infoRsp','_timeoutTimer','LIVESHARE_REQUEST_HOST','engine','@univerjs/docs','[FetchMissState]','objects','_saveCache','focused$','USERS_ENTER','9JlWaLS','_handleJoinEvent','unknown','listRoles','LICENSE_IMPORT_SIZE_EXCEEDED','column','univer-online-status-title','InsertSheetMutation','_getSendChangesetTimeout','NO_OTHER_CLIENTS_EDITING','EffectRefRangId','_acknowledgedAwaitingChangeset','every','Error\x20on\x20receiving\x20event','unload','className','_colorIndex','initWorkbookPermissionChange','SNAPSHOT_SERVER_URL_KEY','_colorAssignService','getUndoRedoMutationParamsCache','_docSyncEditingCollabCursorService','currentTheme$','HEARTBEAT_TIMEOUT_KEY','_ws','cursorInfo','_stopTelemetryCollaborationNewChangeset','reject','_status$','jiqing500','FileId','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','currentColor','_drawTextRange','collaboration.closeRoom','textRanges','getOwnPropertyDescriptor','/unit/','on-line-single_clip0_910_349','_waitCount','flatMap','MessageType','_handleHover','ERROR_EXCEED_SIZE','getDeserializedSheetBlock','?size=','\x20-\x20','serializeRangeWithSheet','MSG_FOR_ERROR','m2Prime','addEventListener','_lastPointer','LIVESHARE_TERMINATE','_sendHeartbeat','_createInitialStateImpl','updatePermissionObjEvent','getCollabCursors$','HttpExport','setConfig','collaborators','CollaborationEvent','_transformPreviousActiveRange','COLLAB_SUBMIT_CHANGESET_URL_KEY','IMessageService','univer-online-status','_transformStack','_syncEditingCollabCursorService','_submitChangeset','/universer-api/authz','type','length','stringify','Vector2','fillText','actions','debug','HttpImport','_executeRemoteChangeset','\x0aCurrent:\x20','getUnitId','listCollaborators','Injector','sendChangesetTimeout','getDocRanges','getSkeleton','_sendHeartbeatTimer','toString','awaiting','useDependency','M0\x200H16V16H0z','forwardRef','unitId\x20is\x20not\x20found','AuthzIoHttpService','enableLocalCache','NEW_CHANGESETS','_injector','getValue','backgroundColor','HEARTBEAT_TIMEOUT','UNRECOGNIZED','bottom','getMember','_loadDoc','resize','_onConnectionFailed','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_tryReconnect','responseType','transformUndoRedo','clear','_joinRoom','collabCursorState$','BASE64','_createHandler','onTransformChange$','clipPath','SnapshotServerOverHTTPService','ImageSourceType','switchMap','SetSelectionsOperation','commentUpdateEvent','purple300','_exhaustRemoteChangesetQueue','Rect','row','getTime','DocIMEInputManagerService','_commandService','_http','setItem','black','ICommandService','RemoveRowCommandId','objectID','getUnit','handleInsertCol','awaitingChangeset','IDLE','verdancy600','_candidateSocket','find','font','collabSubmitChangesetUrl','fromCollab','editingUnit','entries','image/gif','open$','includes','top','_sendingTimer','ISnapshotServerService','onRemoteRej','UPDATE_CURSOR','incrementRevOfUnit','_clearUndo','status$','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','subunit','_onUserLeave','LocaleService','collaboration_new_changeset','_onJoinRoomEvent','url(#on-line-single_clip0_910_349)','_removeRoom','[CollaborationState]:\x20apply\x20error!','HEADER_MENU','_univerInstanceService','_shapes','_roomMembers','FromArray','@univerjs/ui','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','string','getUnitType','_httpService','_retryConnectingTimer','_clearHeartbeatTimer','handleIRemoveRow','_socket','_getRedoStack','handleDeleteRangeMoveLeft','triggerDblclick','_clearTimeoutTimer','_renderManagerService','_ensureSubject','key','requireSession','subUnitId','complete','_listenToOfflineEvent','transformChangesets','UPDATE_PERMISSION_OBJ','_rescheduleHeartbeat','onPointerMove$','_entityInit$','file','activeSheet$','startTime','Inject','collabStatus.notCollab','_sheetSkeletonManagerService','function','getCurrentUser','conflict','YUUMI_UNABLE_LOAD_URL','_logService','_schedule','TOO_MANY_REQUESTS','uni.network.url-service','collaboration-client.config','FAIL','_hovered','APPLY_REVISION_CONFILICT','handleIRemoveCol','_onConnectionOpen','SheetCollaborationEntity','unitID','saveImage','transformMutation','subscribeEvent','closePath','image/bmp','TEXT_RANGE_LAYER_INDEX','ws://127.0.0.1:8000/universer-api/comb/connect','throttleTime','RxDisposable','error','_eventUnsubscribe','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','now','getMemberID','pipe','handleInsertRangeMoveRight','take','JOIN','c2Prime','DeleteRangeMoveUpCommandId','deleteCollaborator','onCommandExecuted','_replayCachedMutations','Shape','unsubscribe','startsWith','close','[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.','roomMembers$','combineLatest','_initModules'];_0x26d6=function(){return _0x254b95;};return _0x26d6();}var kt=Object[_0x3a2165(0x1e2)],Bt=(_0x468774,_0x16fa68,_0x4f4766)=>_0x16fa68 in _0x468774?kt(_0x468774,_0x16fa68,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f4766}):_0x468774[_0x16fa68]=_0x4f4766,d=(_0x92d239,_0x381da0,_0x50b314)=>Bt(_0x92d239,typeof _0x381da0!=_0x3a2165(0x1d5)?_0x381da0+'':_0x381da0,_0x50b314);Object['defineProperty'](exports,Symbol[_0x3a2165(0x2b3)],{'value':_0x3a2165(0xd6)});const a=require(_0x3a2165(0x325)),v=require(_0x3a2165(0x263)),E=require('rxjs/operators'),X=require('@univerjs/design'),N=require(_0x3a2165(0x40a)),P=require(_0x3a2165(0x317)),_=require(_0x3a2165(0x130)),Vt=require(_0x3a2165(0x33a)),V=require(_0x3a2165(0x359)),w=require(_0x3a2165(0x2bf)),C=require(_0x3a2165(0x26a)),R=require(_0x3a2165(0x2d4)),L=require(_0x3a2165(0x2e8)),Je=require('@univerjs/engine-formula'),te=require('@univerjs/sheets-ui'),U=require('react'),Wt=require('@univerjs/rpc'),Ft=require(_0x3a2165(0xcb)),ht=_0x3a2165(0x371),Gt=_0x3a2165(0x2ce),_t=_0x3a2165(0x18a),Yt=_0x3a2165(0x2ae),Kt=0x7d0,ut=_0x3a2165(0x495),Xt=_0x3a2165(0x43f),dt=_0x3a2165(0x2a6),qt=0x7530,Ve=_0x3a2165(0x3c1),St=0x4e20,zt=0x4e20,vt=_0x3a2165(0xa9),Jt=0x3,ft='LOCAL_CACHE_INTERVAL',Zt=0x3e8,gt=_0x3a2165(0x27e),Qt=_0x3a2165(0x2fe),mt='LOGIN_URL_KEY',es=_0x3a2165(0xfc);var It=(_0x1dccf3=>(_0x1dccf3[_0x1dccf3[_0x3a2165(0xa5)]=0x0]=_0x3a2165(0xa5),_0x1dccf3[_0x1dccf3['OK']=0x1]='OK',_0x1dccf3[_0x1dccf3[_0x3a2165(0x16f)]=0x2]='INTERNAL_ERROR',_0x1dccf3[_0x1dccf3[_0x3a2165(0x246)]=0x3]='PERMISSION_DENIED',_0x1dccf3[_0x1dccf3[_0x3a2165(0x344)]=0x4]=_0x3a2165(0x344),_0x1dccf3[_0x1dccf3['UNAUTHENTICATED']=0x5]=_0x3a2165(0x10a),_0x1dccf3[_0x1dccf3[_0x3a2165(0x255)]=0x6]=_0x3a2165(0x255),_0x1dccf3[_0x1dccf3[_0x3a2165(0x15b)]=0x7]='INVALID_ARGUMENT',_0x1dccf3[_0x1dccf3[_0x3a2165(0x42f)]=0x8]=_0x3a2165(0x42f),_0x1dccf3[_0x1dccf3[_0x3a2165(0x32b)]=0x9]=_0x3a2165(0x32b),_0x1dccf3[_0x1dccf3[_0x3a2165(0xea)]=0x1389]=_0x3a2165(0xea),_0x1dccf3[_0x1dccf3[_0x3a2165(0x18f)]=0x1771]=_0x3a2165(0x18f),_0x1dccf3[_0x1dccf3[_0x3a2165(0x4b8)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x1dccf3[_0x1dccf3['APPLY_REJECT']=0x1b59]=_0x3a2165(0xae),_0x1dccf3[_0x1dccf3[_0x3a2165(0x191)]=0x1b5a]=_0x3a2165(0x191),_0x1dccf3[_0x1dccf3[_0x3a2165(0x434)]=0x1b5b]=_0x3a2165(0x434),_0x1dccf3[_0x1dccf3[_0x3a2165(0x9c)]=0x1b5c]=_0x3a2165(0x9c),_0x1dccf3[_0x1dccf3['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3a2165(0x21e),_0x1dccf3[_0x1dccf3[_0x3a2165(0x143)]=0x2329]=_0x3a2165(0x143),_0x1dccf3[_0x1dccf3[_0x3a2165(0x444)]=0x232a]=_0x3a2165(0x444),_0x1dccf3[_0x1dccf3[_0x3a2165(0x363)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x1dccf3[_0x1dccf3[_0x3a2165(0x1b3)]=0x232c]=_0x3a2165(0x1b3),_0x1dccf3[_0x1dccf3['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x1dccf3[_0x1dccf3[_0x3a2165(0x42c)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1dccf3[_0x1dccf3[_0x3a2165(0x243)]=0x2712]=_0x3a2165(0x243),_0x1dccf3[_0x1dccf3[_0x3a2165(0x4b2)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x1dccf3[_0x1dccf3[_0x3a2165(0xcd)]=0x2714]=_0x3a2165(0xcd),_0x1dccf3[_0x1dccf3[_0x3a2165(0x3c2)]=-0x1]=_0x3a2165(0x3c2),_0x1dccf3))(It||{}),j=(_0xc4e8fb=>(_0xc4e8fb[_0xc4e8fb[_0x3a2165(0x23f)]=0x0]=_0x3a2165(0x23f),_0xc4e8fb[_0xc4e8fb[_0x3a2165(0x34e)]=0x1]=_0x3a2165(0x34e),_0xc4e8fb[_0xc4e8fb[_0x3a2165(0x21f)]=0x2]='UNIVER_SHEET',_0xc4e8fb[_0xc4e8fb[_0x3a2165(0x125)]=0x3]=_0x3a2165(0x125),_0xc4e8fb[_0xc4e8fb[_0x3a2165(0x212)]=0x4]='UNIVER_PROJECT',_0xc4e8fb[_0xc4e8fb[_0x3a2165(0x3c2)]=-0x1]=_0x3a2165(0x3c2),_0xc4e8fb))(j||{}),b=(_0xd9a309=>(_0xd9a309[_0xd9a309['UNKNOWN_CMD']=0x0]=_0x3a2165(0x1a2),_0xd9a309[_0xd9a309[_0x3a2165(0xe0)]=0x1]=_0x3a2165(0xe0),_0xd9a309[_0xd9a309[_0x3a2165(0x44a)]=0x2]='JOIN',_0xd9a309[_0xd9a309[_0x3a2165(0x108)]=0x3]=_0x3a2165(0x108),_0xd9a309[_0xd9a309[_0x3a2165(0x334)]=0x4]=_0x3a2165(0x334),_0xd9a309[_0xd9a309[_0x3a2165(0x2ff)]=0x5]=_0x3a2165(0x2ff),_0xd9a309[_0xd9a309['RECV']=0x6]=_0x3a2165(0x4a6),_0xd9a309[_0xd9a309['UNRECOGNIZED']=-0x1]=_0x3a2165(0x3c2),_0xd9a309))(b||{}),We=(_0x2c6228=>(_0x2c6228[_0x2c6228[_0x3a2165(0x2b0)]=0x0]='UNKNOWN_CODE',_0x2c6228[_0x2c6228['OK']=0x1]='OK',_0x2c6228[_0x2c6228[_0x3a2165(0x432)]=0x2]=_0x3a2165(0x432),_0x2c6228[_0x2c6228[_0x3a2165(0x3c2)]=-0x1]=_0x3a2165(0x3c2),_0x2c6228))(We||{}),pt=(_0x3c9fb1=>(_0x3c9fb1[_0x3c9fb1[_0x3a2165(0x13c)]=0x0]=_0x3a2165(0x13c),_0x3c9fb1[_0x3c9fb1[_0x3a2165(0x3ab)]=0x1]=_0x3a2165(0x3ab),_0x3c9fb1[_0x3c9fb1['HttpExport']=0x2]=_0x3a2165(0x398),_0x3c9fb1[_0x3c9fb1[_0x3a2165(0x2ca)]=0x3]=_0x3a2165(0x2ca),_0x3c9fb1[_0x3c9fb1['UnitSnapshot']=0x4]=_0x3a2165(0x2e0),_0x3c9fb1[_0x3c9fb1[_0x3a2165(0x3c2)]=-0x1]='UNRECOGNIZED',_0x3c9fb1))(pt||{});const A=_0x3a2165(0x431),ts={};function Ct(_0x29a4aa){const _0x430880=_0x3a2165;var _0x225af9,_0x52714f,_0x4f7fa2,_0x954e8c;const _0x18f088=_0x29a4aa['data'],_0x160e26=JSON['parse'](_0x18f088);switch(_0x160e26['cmd']){case b['HEARTBEAT']:case b[_0x430880(0xe0)]:{const _0x5e7a27=_0x160e26[_0x430880(0x355)];return{..._0x160e26,'data':_0x5e7a27,'cmd':_0x160e26[_0x430880(0x28f)]};}case b[_0x430880(0x44a)]:{const _0x3c96a4=_0x160e26['joinRsp'];return{..._0x160e26,'data':_0x3c96a4,'cmd':_0x160e26[_0x430880(0x28f)]};}case b[_0x430880(0x4a6)]:{const _0x50922f=_0x160e26[_0x430880(0x2e9)];switch(_0x50922f[_0x430880(0x217)]){case _[_0x430880(0x39b)][_0x430880(0x22f)]:return{..._0x160e26,'data':{..._0x50922f,'data':(_0x225af9=_0x50922f[_0x430880(0x2c4)])==null?void 0x0:_0x225af9['cs']},'cmd':_0x160e26[_0x430880(0x28f)]};case _[_0x430880(0x39b)][_0x430880(0x476)]:return{..._0x160e26,'data':{..._0x50922f,'data':(_0x52714f=_0x50922f[_0x430880(0x1ec)])==null?void 0x0:_0x52714f['cs']},'cmd':_0x160e26['cmd']};case _[_0x430880(0x39b)][_0x430880(0x3bd)]:return{..._0x160e26,'data':{..._0x50922f,'data':(_0x4f7fa2=_0x50922f[_0x430880(0x273)])==null?void 0x0:_0x4f7fa2['cs']},'cmd':_0x160e26['cmd']};case _[_0x430880(0x39b)][_0x430880(0x179)]:return{..._0x160e26,'data':{..._0x50922f,'data':(_0x954e8c=_0x50922f[_0x430880(0x314)])==null?void 0x0:_0x954e8c['cs']},'cmd':_0x160e26['cmd']};case _[_0x430880(0x39b)]['UPDATE_CURSOR']:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x2da)]},'cmd':_0x160e26[_0x430880(0x28f)]};case _[_0x430880(0x39b)][_0x430880(0x35e)]:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x2b2)]},'cmd':_0x160e26['cmd']};case _[_0x430880(0x39b)]['USERS_LEAVE']:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x330)]},'cmd':_0x160e26['cmd']};case _[_0x430880(0x39b)][_0x430880(0x112)]:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x309)]},'cmd':_0x160e26['cmd']};case _['CollaborationEvent'][_0x430880(0x249)]:case _[_0x430880(0x39b)][_0x430880(0x103)]:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x19e)]},'cmd':_0x160e26[_0x430880(0x28f)]};case _[_0x430880(0x39b)][_0x430880(0x393)]:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x309)]},'cmd':_0x160e26[_0x430880(0x28f)]};case _[_0x430880(0x39b)][_0x430880(0x38f)]:return{..._0x160e26,'data':_0x50922f,'cmd':_0x160e26['cmd']};case _[_0x430880(0x39b)][_0x430880(0x14f)]:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x3d7)]},'cmd':_0x160e26[_0x430880(0x28f)]};case _[_0x430880(0x39b)][_0x430880(0x41f)]:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x396)]},'cmd':_0x160e26[_0x430880(0x28f)]};case _[_0x430880(0x39b)][_0x430880(0x206)]:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x2b7)]},'cmd':_0x160e26[_0x430880(0x28f)]};default:return _0x160e26;}}default:return _0x160e26;}}function Et(_0x12b6aa){const _0xc6696c=_0x3a2165;switch(_0x12b6aa[_0xc6696c(0x28f)]){case b[_0xc6696c(0x2ff)]:case b[_0xc6696c(0xe0)]:return JSON[_0xc6696c(0x3a6)]({'cmd':_0x12b6aa['cmd'],'routeKey':_0x12b6aa['routeKey']});case b[_0xc6696c(0x334)]:{let _0x5d94f8;switch(_0x12b6aa['data'][_0xc6696c(0x217)]){case _['CollaborationEvent'][_0xc6696c(0x3f8)]:{_0x5d94f8={'eventID':_[_0xc6696c(0x39b)][_0xc6696c(0x3f8)],'updateCursorEvent':_0x12b6aa[_0xc6696c(0x124)]['data']};break;}case _[_0xc6696c(0x39b)][_0xc6696c(0x327)]:{_0x5d94f8={'eventID':_[_0xc6696c(0x39b)][_0xc6696c(0x327)],'leaveEvent':_0x12b6aa[_0xc6696c(0x124)][_0xc6696c(0x124)]};break;}case _[_0xc6696c(0x39b)][_0xc6696c(0x35e)]:{_0x5d94f8={'eventID':_['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x12b6aa[_0xc6696c(0x124)][_0xc6696c(0x124)]};break;}case _[_0xc6696c(0x39b)][_0xc6696c(0x112)]:{_0x5d94f8={'eventID':_['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x12b6aa[_0xc6696c(0x124)][_0xc6696c(0x124)]};break;}case _[_0xc6696c(0x39b)][_0xc6696c(0x103)]:{_0x5d94f8={'eventID':_[_0xc6696c(0x39b)][_0xc6696c(0x103)],'liveShareOperation':_0x12b6aa['data'][_0xc6696c(0x124)]};break;}case _[_0xc6696c(0x39b)][_0xc6696c(0x393)]:{_0x5d94f8={'eventID':_[_0xc6696c(0x39b)][_0xc6696c(0x393)],'liveShareTerminate':_0x12b6aa['data'][_0xc6696c(0x124)]};break;}case _[_0xc6696c(0x39b)][_0xc6696c(0x357)]:{_0x5d94f8={'eventID':_[_0xc6696c(0x39b)][_0xc6696c(0x357)],'liveShareRequestHost':_0x12b6aa[_0xc6696c(0x124)][_0xc6696c(0x124)]};break;}case _[_0xc6696c(0x39b)][_0xc6696c(0x249)]:{_0x5d94f8={'eventID':_['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x5d94f8={'eventID':_0x12b6aa[_0xc6696c(0x124)][_0xc6696c(0x217)]};}return JSON[_0xc6696c(0x3a6)]({'cmd':_0x12b6aa[_0xc6696c(0x28f)],'routeKey':_0x12b6aa[_0xc6696c(0x4b1)],'collaMsg':_0x5d94f8});}case b[_0xc6696c(0x44a)]:return JSON[_0xc6696c(0x3a6)]({'cmd':_0x12b6aa[_0xc6696c(0x28f)],'routeKey':_0x12b6aa[_0xc6696c(0x4b1)],'joinReq':_0x12b6aa[_0xc6696c(0x124)]});case b[_0xc6696c(0x108)]:return JSON['stringify']({'cmd':_0x12b6aa[_0xc6696c(0x28f)],'routeKey':_0x12b6aa[_0xc6696c(0x4b1)],'leaveReq':_0x12b6aa[_0xc6696c(0x124)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var ss=Object['defineProperty'],is=Object[_0x3a2165(0x383)],ns=(_0x556760,_0x14ba51,_0x1eb632,_0x59c842)=>{const _0x44cd1e=_0x3a2165;for(var _0x12f80f=_0x59c842>0x1?void 0x0:_0x59c842?is(_0x14ba51,_0x1eb632):_0x14ba51,_0x4dab70=_0x556760[_0x44cd1e(0x3a5)]-0x1,_0x13a685;_0x4dab70>=0x0;_0x4dab70--)(_0x13a685=_0x556760[_0x4dab70])&&(_0x12f80f=(_0x59c842?_0x13a685(_0x14ba51,_0x1eb632,_0x12f80f):_0x13a685(_0x12f80f))||_0x12f80f);return _0x59c842&&_0x12f80f&&ss(_0x14ba51,_0x1eb632,_0x12f80f),_0x12f80f;},oe=(_0x159e7d,_0x20944f)=>(_0x375f09,_0x5f072d)=>_0x20944f(_0x375f09,_0x5f072d,_0x159e7d);const Fe=a[_0x3a2165(0x9f)](_0x3a2165(0x26c));function rs(_0x2e0d4a,_0x24483f,_0x4e913e){const _0x35b93f=_0x3a2165;return _0x2e0d4a+'/'+_0x24483f+_0x35b93f(0x384)+_0x4e913e+_0x35b93f(0x14c);}exports['CollaborationSocketService']=class extends a[_0x3a2165(0x287)]{constructor(_0x45addf,_0x5e6063,_0x6f0d10,_0x1b7c9b,_0x41749f){const _0x2b61b7=_0x3a2165;super(),this['_http']=_0x45addf,this['_ws']=_0x5e6063,this[_0x2b61b7(0x105)]=_0x6f0d10,this[_0x2b61b7(0x42d)]=_0x1b7c9b,this[_0x2b61b7(0x192)]=_0x41749f;}['createSocket'](_0x11ba9f){const _0x41be86=_0x3a2165,_0x55ca57=this[_0x41be86(0x377)][_0x41be86(0x46d)](_0x11ba9f);if(!_0x55ca57)throw new Error(_0x41be86(0x40b));const _0x8fef3=new a['DisposableCollection'](),_0x158130=new v[(_0x41be86(0x28d))]();_0x8fef3[_0x41be86(0x2e5)](_0x55ca57[_0x41be86(0x13f)][_0x41be86(0x1ee)](_0x4bfcb4=>_0x158130[_0x41be86(0x2c6)](_0x4bfcb4))),_0x8fef3[_0x41be86(0x2e5)](a[_0x41be86(0x114)](()=>_0x158130[_0x41be86(0x41c)]()));const _0x367c7f=new v[(_0x41be86(0x28d))]();_0x8fef3[_0x41be86(0x2e5)](_0x55ca57['error$'][_0x41be86(0x1ee)](_0x31b7cf=>_0x367c7f['next'](_0x31b7cf))),_0x8fef3[_0x41be86(0x2e5)](a[_0x41be86(0x114)](()=>_0x367c7f[_0x41be86(0x41c)]()));const _0x40c145=new v[(_0x41be86(0x28d))]();_0x8fef3[_0x41be86(0x2e5)](_0x55ca57[_0x41be86(0x18e)][_0x41be86(0x1ee)](_0x517ea1=>{const _0x25b53c=_0x41be86,_0x4c7e6f=Ct(_0x517ea1);_0x40c145[_0x25b53c(0x2c6)](_0x4c7e6f);})),_0x8fef3['add'](a['toDisposable'](()=>_0x40c145[_0x41be86(0x41c)]()));let _0x4f5067;const _0x288896=()=>{const _0x414d00=_0x41be86;_0x367c7f[_0x414d00(0x2c6)](new Event(_0x414d00(0x48b))),_0x158130[_0x414d00(0x2c6)](new CloseEvent(_0x414d00(0x48b))),_0x4f5067[_0x414d00(0x453)]();};return _0x4f5067={'memberID':'','close$':_0x158130[_0x41be86(0xfd)](),'error$':_0x367c7f['asObservable'](),'open$':_0x55ca57[_0x41be86(0x3f2)],'message$':_0x40c145['asObservable'](),'send':_0x373f77=>{const _0x1a66b3=_0x41be86;if(_0x373f77[_0x1a66b3(0x28f)]===b[_0x1a66b3(0x334)]){if(_0x373f77[_0x1a66b3(0x124)]['eventID']===_['CollaborationEvent'][_0x1a66b3(0xc1)]){this[_0x1a66b3(0x3a2)](_0x4f5067,_0x373f77[_0x1a66b3(0x124)])[_0x1a66b3(0x45d)](_0x46e57d=>{const _0x2ad0a9=_0x1a66b3;this[_0x2ad0a9(0x42d)][_0x2ad0a9(0x442)](_0x46e57d),_0x288896();});return;}if(_0x373f77[_0x1a66b3(0x124)][_0x1a66b3(0x217)]===_[_0x1a66b3(0x39b)]['FETCH_MISSING']){const _0x208d73=_0x373f77[_0x1a66b3(0x124)];this[_0x1a66b3(0x159)](_0x208d73)[_0x1a66b3(0xe7)](_0x5c21d3=>{const _0x264121=_0x1a66b3;_0x40c145[_0x264121(0x2c6)]({'cmd':b['RECV'],'code':We['OK'],'routeKey':_0x208d73[_0x264121(0x124)][_0x264121(0x438)],'routeType':'','data':{'eventID':_['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x5c21d3}}});})[_0x1a66b3(0x45d)](_0x3c7849=>{const _0x1a0738=_0x1a66b3;this[_0x1a0738(0x42d)]['error'](_0x3c7849),_0x288896();});return;}}_0x55ca57[_0x1a66b3(0x27d)](Et(_0x373f77));},'close':()=>{const _0x43c3e9=_0x41be86;_0x55ca57['close'](),_0x8fef3[_0x43c3e9(0x491)]();}},_0x4f5067;}async['_submitChangeset'](_0x3663a1,_0x36bf48){const _0x2b0eae=_0x3a2165;var _0x1cb50c,_0x421e1c;const {unitType:_0x5e140f,unitID:_0x1d2982,changeset:_0x36787d}=_0x36bf48[_0x2b0eae(0x124)],_0x51073d={'unitID':_0x1d2982,'memberID':_0x3663a1[_0x2b0eae(0x12e)],'type':_0x5e140f,'changeset':_[_0x2b0eae(0x4a1)](_0x36787d)},_0x40181e=this['_configService'][_0x2b0eae(0x347)](gt),_0xc786a1=this[_0x2b0eae(0x105)][_0x2b0eae(0x347)](A),_0x896d7c=rs((_0x421e1c=(_0x1cb50c=_0xc786a1==null?void 0x0:_0xc786a1[_0x2b0eae(0x3ed)])!=null?_0x1cb50c:_0x40181e)!=null?_0x421e1c:Qt,_0x5e140f,_0x1d2982);try{await this[_0x2b0eae(0x3df)][_0x2b0eae(0x468)](_0x896d7c,{'body':_0x51073d});}catch(_0x39eb8a){throw this[_0x2b0eae(0x42d)]['error'](_0x2b0eae(0x254),_0x2b0eae(0x478)),_0x39eb8a;}}async[_0x3a2165(0x159)](_0x4bb003){const _0xc0f60e=_0x3a2165,{unitID:_0x12274f,from:_0x290477,to:_0x48ff68,unitType:_0x5b8a3c}=_0x4bb003[_0xc0f60e(0x124)];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x12274f,'type':_0x5b8a3c,'from':_0x290477,'to':_0x48ff68}))['changesets'];}},exports[_0x3a2165(0x106)]=ns([oe(0x0,a[_0x3a2165(0x426)](P['HTTPService'])),oe(0x1,a[_0x3a2165(0x426)](P['WebSocketService'])),oe(0x2,a[_0x3a2165(0xd1)]),oe(0x3,a['ILogService']),oe(0x4,_[_0x3a2165(0x3f6)])],exports[_0x3a2165(0x106)]);const os=_0x3a2165(0x400);function as(_0x13ac07){const _0x16e2f4=_0x3a2165;return JSON[_0x16e2f4(0x3a6)](_0x13ac07)[_0x16e2f4(0x3a5)];}class Ge{constructor(){const _0x10383c=_0x3a2165;d(this,_0x10383c(0x2a3),new v['Subject']()),d(this,_0x10383c(0x9d),this['_commentUpdate$'][_0x10383c(0xfd)]());}['onCommentUpdate'](_0x2aac1d){const _0x45630f=_0x3a2165;this[_0x45630f(0x2a3)][_0x45630f(0x2c6)](_0x2aac1d);}}var cs=Object[_0x3a2165(0x1e2)],ls=Object['getOwnPropertyDescriptor'],hs=(_0x153b44,_0xd5777f,_0x9c09d4,_0x49732e)=>{const _0x34d4ad=_0x3a2165;for(var _0x2e42f2=_0x49732e>0x1?void 0x0:_0x49732e?ls(_0xd5777f,_0x9c09d4):_0xd5777f,_0x190847=_0x153b44[_0x34d4ad(0x3a5)]-0x1,_0x4ef504;_0x190847>=0x0;_0x190847--)(_0x4ef504=_0x153b44[_0x190847])&&(_0x2e42f2=(_0x49732e?_0x4ef504(_0xd5777f,_0x9c09d4,_0x2e42f2):_0x4ef504(_0x2e42f2))||_0x2e42f2);return _0x49732e&&_0x2e42f2&&cs(_0xd5777f,_0x9c09d4,_0x2e42f2),_0x2e42f2;},Ze=(_0x1b66bb,_0x3af97b)=>(_0x159782,_0xa86dff)=>_0x3af97b(_0x159782,_0xa86dff,_0x1b66bb);let q=class extends a[_0x3a2165(0x287)]{constructor(_0x11b56a,_0x3702a8){const _0x3cb432=_0x3a2165;super(),d(this,_0x3cb432(0x408),new Map()),(this[_0x3cb432(0x406)]=_0x11b56a,this['_userManagerService']=_0x3702a8,this[_0x3cb432(0x167)](a[_0x3cb432(0x114)](v['merge'](this[_0x3cb432(0x406)][_0x3cb432(0x30f)](a[_0x3cb432(0x461)][_0x3cb432(0x21f)])[_0x3cb432(0x447)](E[_0x3cb432(0x331)](_0x3287c3=>_0x3287c3[_0x3cb432(0x3ae)]())),this[_0x3cb432(0x406)][_0x3cb432(0x30f)](a[_0x3cb432(0x461)][_0x3cb432(0x34e)])[_0x3cb432(0x447)](E[_0x3cb432(0x331)](_0x5686b0=>_0x5686b0[_0x3cb432(0x3ae)]())),this['_univerInstanceService'][_0x3cb432(0x30f)](a[_0x3cb432(0x461)]['UNIVER_SLIDE'])['pipe'](E[_0x3cb432(0x331)](_0x53150e=>_0x53150e[_0x3cb432(0x3ae)]())))[_0x3cb432(0x1ee)](_0x3f547a=>this[_0x3cb432(0x403)](_0x3f547a)))));}[_0x3a2165(0x298)](_0x596787){const _0x12c629=_0x3a2165;this[_0x12c629(0x20d)][_0x12c629(0x298)](_0x596787);}[_0x3a2165(0x42a)](){const _0x19b6d6=_0x3a2165;return this[_0x19b6d6(0x20d)]['getCurrentUser']();}['updateMember'](_0x3117ec,_0x2f23ca){const _0x1a08b5=_0x3a2165;let _0x55dc16=this[_0x1a08b5(0x408)][_0x1a08b5(0x305)](_0x3117ec);_0x55dc16||(_0x55dc16=new _s(),this[_0x1a08b5(0x408)][_0x1a08b5(0x194)](_0x3117ec,_0x55dc16)),_0x55dc16[_0x1a08b5(0x49a)](_0x2f23ca);}[_0x3a2165(0x32f)](_0x4c8cca,_0x4ff81f){const _0x40e5c2=_0x3a2165,_0x4675e9=this[_0x40e5c2(0x408)][_0x40e5c2(0x305)](_0x4c8cca);_0x4675e9&&_0x4675e9[_0x40e5c2(0x32f)](_0x4ff81f);}['getRoom'](_0x2777c9){const _0x5e4f73=_0x3a2165;return this[_0x5e4f73(0x408)][_0x5e4f73(0x305)](_0x2777c9);}[_0x3a2165(0x3c4)](_0x46a56e,_0x5d4303){const _0xc16e63=_0x3a2165,_0x25fcc3=this[_0xc16e63(0x408)][_0xc16e63(0x305)](_0x46a56e);if(_0x25fcc3)return _0x25fcc3[_0xc16e63(0x3c4)](_0x5d4303);}[_0x3a2165(0x403)](_0x1936e4){const _0x19934c=_0x3a2165,_0x3f197a=this[_0x19934c(0x408)]['get'](_0x1936e4);_0x3f197a&&(_0x3f197a[_0x19934c(0x491)](),this[_0x19934c(0x408)]['delete'](_0x1936e4));}['dispose'](){const _0x105e59=_0x3a2165;this[_0x105e59(0x408)]['forEach'](_0x10224b=>_0x10224b['dispose']()),this[_0x105e59(0x408)][_0x105e59(0x3cc)]();}};q=hs([Ze(0x0,a[_0x3a2165(0x137)]),Ze(0x1,a['Inject'](a[_0x3a2165(0x2ba)]))],q);class _s extends a[_0x3a2165(0x287)]{constructor(){const _0x47fe22=_0x3a2165;super(...arguments),d(this,_0x47fe22(0x19c),new Map());}[_0x3a2165(0x491)](){const _0x222d9e=_0x3a2165;this[_0x222d9e(0x19c)]['clear']();}[_0x3a2165(0x49a)](_0xa5f80e){const _0x4d114f=_0x3a2165;this[_0x4d114f(0x19c)]['set'](_0xa5f80e[_0x4d114f(0x12e)],_0xa5f80e);}[_0x3a2165(0x32f)](_0x43275f){const _0x2a70c2=_0x3a2165;this[_0x2a70c2(0x19c)]['delete'](_0x43275f);}[_0x3a2165(0x3c4)](_0x2dffdd){const _0x5e0c38=_0x3a2165;return this[_0x5e0c38(0x19c)]['get'](_0x2dffdd);}}var us=Object[_0x3a2165(0x1e2)],ds=Object[_0x3a2165(0x383)],Ss=(_0x300953,_0x5da1e0,_0x9a96ac,_0x30741a)=>{const _0xb7331c=_0x3a2165;for(var _0x423e9f=_0x30741a>0x1?void 0x0:_0x30741a?ds(_0x5da1e0,_0x9a96ac):_0x5da1e0,_0x4a23d4=_0x300953[_0xb7331c(0x3a5)]-0x1,_0x1eb942;_0x4a23d4>=0x0;_0x4a23d4--)(_0x1eb942=_0x300953[_0x4a23d4])&&(_0x423e9f=(_0x30741a?_0x1eb942(_0x5da1e0,_0x9a96ac,_0x423e9f):_0x1eb942(_0x423e9f))||_0x423e9f);return _0x30741a&&_0x423e9f&&us(_0x5da1e0,_0x9a96ac,_0x423e9f),_0x423e9f;},B=(_0x525187,_0x3049b6)=>(_0x467e60,_0x1d22cc)=>_0x3049b6(_0x467e60,_0x1d22cc,_0x525187),$=(_0x52155e=>(_0x52155e[_0x52155e[_0x3a2165(0x3e8)]=0x0]='IDLE',_0x52155e[_0x52155e[_0x3a2165(0x183)]=0x1]=_0x3a2165(0x183),_0x52155e[_0x52155e[_0x3a2165(0x299)]=0x2]=_0x3a2165(0x299),_0x52155e[_0x52155e[_0x3a2165(0x1ae)]=0x3]=_0x3a2165(0x1ae),_0x52155e))($||{});exports[_0x3a2165(0x180)]=class extends a[_0x3a2165(0x441)]{constructor(_0x1a631f,_0x16d918,_0x368126,_0x128978,_0x5c112c,_0x21806b,_0x345816,_0x51ae7a,_0x55ec15,_0x54a76f){const _0x2fe09f=_0x3a2165;super(),d(this,_0x2fe09f(0x1a3),new v[(_0x2fe09f(0x2f5))](0x0)),d(this,_0x2fe09f(0x1df),this[_0x2fe09f(0x1a3)][_0x2fe09f(0xfd)]()),d(this,_0x2fe09f(0x1fb),new v[(_0x2fe09f(0x28d))]()),d(this,'event$',this[_0x2fe09f(0x1fb)][_0x2fe09f(0xfd)]()),d(this,_0x2fe09f(0x412)),d(this,_0x2fe09f(0xfb)),d(this,'_collaborationTimeoutTimer'),d(this,'_shouldReportTelemetry',!0x1),d(this,_0x2fe09f(0x25f),null),(this['_unitID']=_0x1a631f,this['_logService']=_0x368126,this[_0x2fe09f(0x341)]=_0x128978,this['_messageService']=_0x5c112c,this['_configService']=_0x21806b,this[_0x2fe09f(0x1d6)]=_0x345816,this[_0x2fe09f(0x2c3)]=_0x51ae7a,this['_commentService']=_0x55ec15,this[_0x2fe09f(0x2ac)]=_0x54a76f,this[_0x2fe09f(0x1ea)]=!!this['_telemetryService'],_0x16d918['pipe'](v[_0x2fe09f(0x27a)](this['dispose$']))[_0x2fe09f(0x1ee)](_0x15394e=>{const _0x501a5e=_0x2fe09f;var _0x120ae8;typeof _0x15394e>'u'||(this[_0x501a5e(0x412)]=_0x15394e,_0x15394e?(this[_0x501a5e(0x3cd)](_0x15394e),this[_0x501a5e(0xfb)]=_0x15394e[_0x501a5e(0x18e)][_0x501a5e(0x1ee)](_0x637c47=>{const _0x53a6d2=_0x501a5e;_0x637c47[_0x53a6d2(0x4b1)]===this['_unitID']&&this[_0x53a6d2(0x17f)](_0x637c47);})):(this[_0x501a5e(0x2a5)](),this['_sessionStatus$'][_0x501a5e(0x2c6)](0x2),(_0x120ae8=this[_0x501a5e(0xfb)])==null||_0x120ae8['unsubscribe'](),this[_0x501a5e(0xfb)]=null));}),this[_0x2fe09f(0x167)](this[_0x2fe09f(0x341)][_0x2fe09f(0x127)](()=>{const _0x4bead8=_0x2fe09f;var _0x13d099;(_0x13d099=this[_0x4bead8(0x412)])==null||_0x13d099['send']({'cmd':b['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get[_0x3a2165(0x1a7)](){const _0x25999b=_0x3a2165;return this[_0x25999b(0x1a3)][_0x25999b(0x3bf)]();}[_0x3a2165(0x446)](){const _0x1de0d5=_0x3a2165;var _0x2c6d7d,_0x6d62e0;return(_0x6d62e0=(_0x2c6d7d=this['_socket'])==null?void 0x0:_0x2c6d7d[_0x1de0d5(0x12e)])!=null?_0x6d62e0:null;}[_0x3a2165(0x491)](){const _0x3d4087=_0x3a2165;super[_0x3d4087(0x491)](),this['dispose$'][_0x3d4087(0x2c6)](),this['dispose$']['complete']();}[_0x3a2165(0x453)](){const _0x8feb0e=_0x3a2165;var _0xa7acc1,_0x1f173a;this[_0x8feb0e(0x2a5)](),(_0xa7acc1=this['_socket'])==null||_0xa7acc1[_0x8feb0e(0x27d)]({'cmd':b[_0x8feb0e(0x108)],'data':{'roomID':this[_0x8feb0e(0xfe)]}}),(_0x1f173a=this[_0x8feb0e(0x412)])==null||_0x1f173a['close'](),this[_0x8feb0e(0x1fb)][_0x8feb0e(0x41c)](),this[_0x8feb0e(0x1a3)]['complete'](),this['dispose']();}['_onCombEvent'](_0x3d4c7c){const _0x59a221=_0x3a2165;_0x3d4c7c['cmd']===b[_0x59a221(0x44a)]?this[_0x59a221(0x401)](_0x3d4c7c):_0x3d4c7c[_0x59a221(0x28f)]===b[_0x59a221(0x4a6)]&&this[_0x59a221(0x4b3)](_0x3d4c7c);}[_0x3a2165(0x3cd)](_0x53502e){const _0x1bb7a8=_0x3a2165;this[_0x1bb7a8(0x1a3)]['next'](0x1),_0x53502e[_0x1bb7a8(0x27d)]({'cmd':b[_0x1bb7a8(0x44a)],'routeKey':this[_0x1bb7a8(0xfe)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1bb7a8(0xfe)]}]}});}[_0x3a2165(0x401)](_0x4dabb5){const _0x37b297=_0x3a2165;var _0x123a9b;if(_0x4dabb5[_0x37b297(0x2f2)]===We[_0x37b297(0x432)]){this['_messageService'][_0x37b297(0x113)]({'type':X[_0x37b297(0x388)]['Warning'],'content':this[_0x37b297(0x1d6)]['t'](_0x37b297(0x100))}),this['_sessionStatus$'][_0x37b297(0x2c6)](0x2);return;}this[_0x37b297(0x1a3)][_0x37b297(0x2c6)](0x3);const _0x110fdb=(_0x123a9b=_0x4dabb5['data'][_0x37b297(0x471)][this['_unitID']])==null?void 0x0:_0x123a9b[_0x37b297(0xf7)];_0x110fdb&&_0x110fdb[_0x37b297(0x337)](_0x48c2c7=>this[_0x37b297(0x2c3)][_0x37b297(0x49a)](this['_unitID'],_0x48c2c7));}[_0x3a2165(0x4b3)](_0x1bf2b3){const _0x36774a=_0x3a2165;try{const _0x40e9d6=_0x1bf2b3['data'];switch(_0x40e9d6[_0x36774a(0x217)]){case _[_0x36774a(0x39b)][_0x36774a(0x35e)]:this[_0x36774a(0x210)](_0x40e9d6),this[_0x36774a(0x1fb)]['next'](_0x40e9d6);break;case _[_0x36774a(0x39b)]['USERS_LEAVE']:this[_0x36774a(0x3fe)](_0x40e9d6),this[_0x36774a(0x1fb)]['next'](_0x40e9d6);break;case _['CollaborationEvent']['CHANGESET_ACK']:this[_0x36774a(0x379)](),this['_clearCollaborationTimeoutTimer'](),this[_0x36774a(0x1fb)][_0x36774a(0x2c6)](_0x40e9d6);break;case _[_0x36774a(0x39b)]['MSG_FOR_ERROR']:this[_0x36774a(0x42d)][_0x36774a(0x442)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x36774a(0x3a6)](_0x40e9d6)),this['_event$']['next'](_0x40e9d6);break;case _[_0x36774a(0x39b)][_0x36774a(0x14f)]:this[_0x36774a(0x30e)][_0x36774a(0x218)](_0x40e9d6[_0x36774a(0x124)]),this['_event$'][_0x36774a(0x2c6)](_0x40e9d6);break;default:this[_0x36774a(0x1fb)]['next'](_0x40e9d6);}}catch(_0x2b0965){this[_0x36774a(0x42d)]['error'](_0x2b0965,_0x1bf2b3);}}[_0x3a2165(0x210)](_0x2d3938){const _0xd482fe=_0x3a2165;this[_0xd482fe(0x2c3)][_0xd482fe(0x49a)](this[_0xd482fe(0xfe)],_0x2d3938['data']);}['_onUserLeave'](_0x54fe1a){const _0x432ea7=_0x3a2165;this[_0x432ea7(0x2c3)][_0x432ea7(0x32f)](this[_0x432ea7(0xfe)],_0x54fe1a[_0x432ea7(0x124)][_0x432ea7(0x12e)]);}async[_0x3a2165(0x27d)](_0x38a1df,_0x2a4b79){const _0x39228e=_0x3a2165;if(this[_0x39228e(0x1a7)]!==0x3||!this['_socket'])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x38a1df['eventID']===_['CollaborationEvent'][_0x39228e(0xc1)]&&(this[_0x39228e(0x46c)](),this[_0x39228e(0x14a)](_0x38a1df)),this[_0x39228e(0x412)][_0x39228e(0x27d)]({'cmd':b[_0x39228e(0x334)],'routeKey':_0x2a4b79,'routeType':'','data':_0x38a1df});}catch(_0x5ecbf7){this['_logService']['error'](_0x5ecbf7);}}[_0x3a2165(0x46c)](){const _0x286c2d=_0x3a2165;var _0x1bc543;this[_0x286c2d(0x220)]=window[_0x286c2d(0x25c)](()=>{const _0x11e489=_0x286c2d;this[_0x11e489(0x220)]=null,this[_0x11e489(0x2bb)]['show']({'type':X[_0x11e489(0x388)][_0x11e489(0x104)],'content':this['_localeService']['t'](_0x11e489(0xa1))});},(_0x1bc543=this[_0x286c2d(0x105)][_0x286c2d(0x347)](Ve))!=null?_0x1bc543:St);}[_0x3a2165(0x262)](){const _0x5757f8=_0x3a2165;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x5757f8(0x220)]),this[_0x5757f8(0x220)]=null);}[_0x3a2165(0x14a)](_0x22c178){if(!this['_shouldReportTelemetry'])return;const {data:_0x6e8918}=_0x22c178,{unitID:_0x53157f,changeset:_0x59b79d}=_0x6e8918,{mutations:_0x241654,type:_0x1da18a}=_0x59b79d;this['_telemetryInfo']={'unitId':_0x53157f,'type':_0x1da18a,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':as(_0x241654)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x119ee2=_0x3a2165;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this[_0x119ee2(0x42d)]['error'](_0x119ee2(0x254),_0x119ee2(0x2ed));return;}this['_telemetryInfo'][_0x119ee2(0xf0)]=performance[_0x119ee2(0x445)](),this[_0x119ee2(0x25f)]['duration']=this[_0x119ee2(0x25f)][_0x119ee2(0xf0)]-this['_telemetryInfo'][_0x119ee2(0x425)],this[_0x119ee2(0x2ac)]['capture'](os,this[_0x119ee2(0x25f)]),this[_0x119ee2(0x25f)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){this['_telemetryInfo']=null;}},exports['CollaborationSession']=Ss([B(0x2,a['ILogService']),B(0x3,N['IBeforeCloseService']),B(0x4,N['IMessageService']),B(0x5,a[_0x3a2165(0xd1)]),B(0x6,a[_0x3a2165(0x426)](a['LocaleService'])),B(0x7,a[_0x3a2165(0x426)](q)),B(0x8,a[_0x3a2165(0x426)](Ge)),B(0x9,a[_0x3a2165(0x4b6)](Vt[_0x3a2165(0x2b9)]))],exports[_0x3a2165(0x180)]);var vs=Object[_0x3a2165(0x1e2)],fs=Object[_0x3a2165(0x383)],gs=(_0x2415ae,_0x4ee83e,_0x413de9,_0x5f4904)=>{const _0x28f962=_0x3a2165;for(var _0x1e0ead=_0x5f4904>0x1?void 0x0:_0x5f4904?fs(_0x4ee83e,_0x413de9):_0x4ee83e,_0x25cb45=_0x2415ae[_0x28f962(0x3a5)]-0x1,_0x771440;_0x25cb45>=0x0;_0x25cb45--)(_0x771440=_0x2415ae[_0x25cb45])&&(_0x1e0ead=(_0x5f4904?_0x771440(_0x4ee83e,_0x413de9,_0x1e0ead):_0x771440(_0x1e0ead))||_0x1e0ead);return _0x5f4904&&_0x1e0ead&&vs(_0x4ee83e,_0x413de9,_0x1e0ead),_0x1e0ead;},Z=(_0x3a2ee0,_0x42c3db)=>(_0x403ec5,_0x4f4358)=>_0x42c3db(_0x403ec5,_0x4f4358,_0x3a2ee0);exports[_0x3a2165(0x16c)]=class extends a[_0x3a2165(0x287)]{constructor(_0x476462,_0x511761,_0x36598e,_0x323bc2,_0x53cb0e,_0x51f4b1){const _0x1c9fd9=_0x3a2165;super(),d(this,_0x1c9fd9(0x157),new v['BehaviorSubject'](void 0x0)),d(this,_0x1c9fd9(0x2a1),this[_0x1c9fd9(0x157)][_0x1c9fd9(0xfd)]()),d(this,_0x1c9fd9(0x3ea),null),d(this,'_sessions',new Map()),d(this,_0x1c9fd9(0x37b),new v[(_0x1c9fd9(0x2f5))]($[_0x1c9fd9(0x3e8)])),d(this,_0x1c9fd9(0x3fb),this[_0x1c9fd9(0x37b)][_0x1c9fd9(0xfd)]()),d(this,_0x1c9fd9(0x2e7),!0x1),d(this,'_retryConnectingTimer'),d(this,'_retryCount',0x0),d(this,'_sendHeartbeatTimer'),d(this,_0x1c9fd9(0x356)),(this[_0x1c9fd9(0x3be)]=_0x476462,this[_0x1c9fd9(0x1d6)]=_0x511761,this[_0x1c9fd9(0x2bb)]=_0x36598e,this['_logService']=_0x323bc2,this[_0x1c9fd9(0x105)]=_0x53cb0e,this['_socketService']=_0x51f4b1,this['_initEventListeners']());}get[_0x3a2165(0x412)](){const _0x2cf177=_0x3a2165;return this['_socket$'][_0x2cf177(0x3bf)]();}[_0x3a2165(0x266)](){const _0x2f340b=_0x3a2165;this[_0x2f340b(0x41d)](),this['_listenToOnlineEvent']();}[_0x3a2165(0x491)](){const _0x2b3598=_0x3a2165;super['dispose'](),this[_0x2b3598(0x189)][_0x2b3598(0x337)](_0x1d64f3=>_0x1d64f3['dispose']()),this[_0x2b3598(0x189)][_0x2b3598(0x3cc)](),this[_0x2b3598(0x37b)][_0x2b3598(0x41c)]();}async[_0x3a2165(0x41a)](_0x50b27f){const _0x4ccb05=_0x3a2165;if(this[_0x4ccb05(0x189)][_0x4ccb05(0x4ac)](_0x50b27f))return this[_0x4ccb05(0x189)][_0x4ccb05(0x305)](_0x50b27f);this[_0x4ccb05(0x1cd)]();const _0x5eb05b=this['_injector']['createInstance'](exports[_0x4ccb05(0x180)],_0x50b27f,this['_socket$'][_0x4ccb05(0xfd)]());return this['_sessions'][_0x4ccb05(0x194)](_0x50b27f,_0x5eb05b),_0x5eb05b;}[_0x3a2165(0xa8)](_0x283814){const _0x53d826=_0x3a2165;var _0x28d355;const _0x3a7b56=this[_0x53d826(0x189)]['get'](_0x283814);_0x3a7b56&&(this[_0x53d826(0x189)]['delete'](_0x283814),_0x3a7b56['close']()),this[_0x53d826(0x189)][_0x53d826(0x20e)]||(_0x28d355=this[_0x53d826(0x412)])==null||_0x28d355['close']();}['reconnect'](){const _0x4a5278=_0x3a2165;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x4a5278(0x40f)]),this[_0x4a5278(0x40f)]=null),this[_0x4a5278(0x3c9)]();}[_0x3a2165(0x30a)](){const _0xf75f75=_0x3a2165;var _0x22c086,_0x7e695d;const _0x20dab8=this[_0xf75f75(0x105)][_0xf75f75(0x347)](ut),_0x57103f=this[_0xf75f75(0x105)][_0xf75f75(0x347)](A),_0x5db0cb=(_0x7e695d=(_0x22c086=_0x57103f==null?void 0x0:_0x57103f[_0xf75f75(0x25d)])!=null?_0x22c086:_0x20dab8)!=null?_0x7e695d:Xt,_0x742348=this[_0xf75f75(0x1d0)][_0xf75f75(0x46d)](_0x5db0cb);return this[_0xf75f75(0x3ea)]=_0x742348,_0x742348;}[_0x3a2165(0x1cd)](){const _0x1c4aa6=_0x3a2165;var _0x5bf577,_0x454282;try{const _0x1fc8a2=(_0x454282=(_0x5bf577=this[_0x1c4aa6(0x412)])!=null?_0x5bf577:this['_candidateSocket'])!=null?_0x454282:this['_createSocket']();if(_0x1fc8a2){const _0x3e5a4a=_0x1fc8a2[_0x1c4aa6(0x27d)];_0x1fc8a2['send']=_0x563fe8=>(this[_0x1c4aa6(0x420)](),_0x3e5a4a[_0x1c4aa6(0x333)](_0x1fc8a2,[_0x563fe8])),_0x1fc8a2[_0x1c4aa6(0x18e)][_0x1c4aa6(0x1ee)](_0x3256b9=>this[_0x1c4aa6(0x2fc)](_0x1fc8a2,_0x3256b9)),_0x1fc8a2[_0x1c4aa6(0x26f)][_0x1c4aa6(0x447)](E['take'](0x1))[_0x1c4aa6(0x1ee)](_0x351e66=>this['_logService']['error']('[CollaborationSessionService]:\x20socket\x20error',_0x351e66)),_0x1fc8a2[_0x1c4aa6(0x3f2)][_0x1c4aa6(0x447)](E['take'](0x1))[_0x1c4aa6(0x1ee)](()=>{this['_onConnectionOpen'](_0x1fc8a2);}),_0x1fc8a2['close$'][_0x1c4aa6(0x447)](E[_0x1c4aa6(0x449)](0x1))['subscribe'](_0x1ad662=>{const _0x2f26d0=_0x1c4aa6;this['_logService'][_0x2f26d0(0x3aa)](_0x2f26d0(0xa0),_0x2f26d0(0x464),_0x1ad662),this[_0x2f26d0(0x3c7)]();});}}catch(_0x3a21da){this[_0x1c4aa6(0x42d)][_0x1c4aa6(0x442)](_0x3a21da),this[_0x1c4aa6(0x3c7)]();}}[_0x3a2165(0x436)](_0x3036e7){const _0x594b7e=_0x3a2165;this['_logService']['debug'](_0x594b7e(0xa0),'socket\x20open.'),_0x3036e7[_0x594b7e(0x27d)]({'cmd':b['HELLO']}),this[_0x594b7e(0x420)]();}['_listenToOfflineEvent'](){const _0x17d21e=_0x3a2165;window[_0x17d21e(0x391)]('offline',()=>this['_onOffline']());}[_0x3a2165(0xb1)](){const _0x42cd8b=_0x3a2165;this[_0x42cd8b(0x2e7)]=!0x1,this['_candidateSocket']=null,this['_status$'][_0x42cd8b(0x2c6)]($[_0x42cd8b(0x299)]),this[_0x42cd8b(0x157)][_0x42cd8b(0x2c6)](null),this[_0x42cd8b(0x416)](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0x3dd8b2=_0x3a2165;var _0x2409e9;this[_0x3dd8b2(0xb1)](),this['_retryCount']<((_0x2409e9=this[_0x3dd8b2(0x105)]['getConfig'](vt))!=null?_0x2409e9:Jt)?(this[_0x3dd8b2(0x2bb)][_0x3dd8b2(0x113)]({'key':_0x3dd8b2(0x1c7),'type':X['MessageType']['Warning'],'content':this[_0x3dd8b2(0x1d6)]['t']('session.will-retry')}),this['_tryReconnect']()):this[_0x3dd8b2(0x2bb)][_0x3dd8b2(0x113)]({'key':_0x3dd8b2(0x1c7),'type':X['MessageType'][_0x3dd8b2(0x104)],'content':this[_0x3dd8b2(0x1d6)]['t'](_0x3dd8b2(0x302))});}['_listenToOnlineEvent'](){const _0x493c4b=_0x3a2165,_0x16ccc5=()=>{const _0x14e773=_0x4ca1;this[_0x14e773(0x412)]||this['reconnect']();},_0x4023ca=()=>{const _0x4ccdac=_0x4ca1;this[_0x4ccdac(0x412)]||document['visibilityState']==='hidden'||this['reconnect']();};window[_0x493c4b(0x391)](_0x493c4b(0x1b2),_0x16ccc5),document['addEventListener'](_0x493c4b(0x131),_0x4023ca);}[_0x3a2165(0x3c9)](){const _0x42ebe5=_0x3a2165;var _0x17d506;const _0x1c0f52=this[_0x42ebe5(0xd7)],_0x2d5514=this[_0x42ebe5(0x105)][_0x42ebe5(0x347)](A),_0x523cfd=_0x1c0f52===0x0?0x0:((_0x17d506=_0x2d5514==null?void 0x0:_0x2d5514[_0x42ebe5(0x1ac)])!=null?_0x17d506:zt)*0x2**_0x1c0f52;this['_retryConnectingTimer']=window[_0x42ebe5(0x25c)](()=>{const _0x52ac96=_0x42ebe5;clearTimeout(this['_retryConnectingTimer']),this[_0x52ac96(0x40f)]=null,this[_0x52ac96(0x1cd)]();},_0x523cfd),this[_0x42ebe5(0xd7)]+=0x1;}['_onMessage'](_0x31e57c,_0x293d33){const _0x3bf13f=_0x3a2165,{cmd:_0x68f1fb}=_0x293d33;_0x68f1fb===b['HELLO']&&!this[_0x3bf13f(0x2e7)]&&(_0x31e57c[_0x3bf13f(0x12e)]=_0x293d33['data']['memberID'],this['_socket$'][_0x3bf13f(0x2c6)](_0x31e57c),this['_status$'][_0x3bf13f(0x2c6)]($[_0x3bf13f(0x1ae)]),this[_0x3bf13f(0x2e7)]=!0x0,this[_0x3bf13f(0x3ea)]=null),_0x68f1fb===b[_0x3bf13f(0x2ff)]&&this[_0x3bf13f(0x416)](),this['_rescheduleHeartbeat']();}[_0x3a2165(0x420)](){const _0x32267d=_0x3a2165;var _0x28b73b;this[_0x32267d(0x410)](),this[_0x32267d(0x3b4)]=window[_0x32267d(0x25c)](()=>this[_0x32267d(0x394)](),(_0x28b73b=this[_0x32267d(0x105)][_0x32267d(0x347)](dt))!=null?_0x28b73b:qt);}[_0x3a2165(0x394)](){const _0x10cd62=_0x3a2165;this[_0x10cd62(0x412)][_0x10cd62(0x27d)]({'cmd':b['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x3a2165(0x17d)](){const _0x4b2cca=_0x3a2165;var _0x2a90a6;this[_0x4b2cca(0x356)]=window[_0x4b2cca(0x25c)](()=>this[_0x4b2cca(0x3c7)](),(_0x2a90a6=this['_configService'][_0x4b2cca(0x347)](Ve))!=null?_0x2a90a6:St);}[_0x3a2165(0x410)](){const _0x44e49b=_0x3a2165;this[_0x44e49b(0x3b4)]!=null&&(clearTimeout(this[_0x44e49b(0x3b4)]),this[_0x44e49b(0x3b4)]=null);}[_0x3a2165(0x416)](){const _0x30c5f8=_0x3a2165;this[_0x30c5f8(0x356)]!=null&&(clearTimeout(this[_0x30c5f8(0x356)]),this[_0x30c5f8(0x356)]=null);}},exports[_0x3a2165(0x16c)]=gs([Z(0x0,a['Inject'](a[_0x3a2165(0x3b0)])),Z(0x1,a[_0x3a2165(0x426)](a[_0x3a2165(0x3ff)])),Z(0x2,N['IMessageService']),Z(0x3,a[_0x3a2165(0x490)]),Z(0x4,a[_0x3a2165(0xd1)]),Z(0x5,Fe)],exports['CollaborationSessionService']);var ms=Object[_0x3a2165(0x1e2)],Is=Object[_0x3a2165(0x383)],ps=(_0x40ed89,_0x3428e0,_0x6f9317,_0x4682ed)=>{const _0x2b5cb3=_0x3a2165;for(var _0x218e7c=_0x4682ed>0x1?void 0x0:_0x4682ed?Is(_0x3428e0,_0x6f9317):_0x3428e0,_0x37e570=_0x40ed89[_0x2b5cb3(0x3a5)]-0x1,_0x434ed2;_0x37e570>=0x0;_0x37e570--)(_0x434ed2=_0x40ed89[_0x37e570])&&(_0x218e7c=(_0x4682ed?_0x434ed2(_0x3428e0,_0x6f9317,_0x218e7c):_0x434ed2(_0x218e7c))||_0x218e7c);return _0x4682ed&&_0x218e7c&&ms(_0x3428e0,_0x6f9317,_0x218e7c),_0x218e7c;},De=(_0x425e21,_0x37ece2)=>(_0x31ebda,_0x20a17b)=>_0x37ece2(_0x31ebda,_0x20a17b,_0x425e21);let fe=class{constructor(_0xce1ecd,_0x43c2f4,_0x4536fe){const _0x5582b3=_0x3a2165;this['_injector']=_0xce1ecd,this[_0x5582b3(0x316)]=_0x43c2f4,this['_renderManagerService']=_0x4536fe;}[_0x3a2165(0x107)](_0x5ef986){const _0x4346d7=_0x3a2165;this[_0x4346d7(0x328)](_0x5ef986),this[_0x4346d7(0x39c)](_0x5ef986);}['transformRemoteChangeset'](_0x1dc880){const _0x414440=_0x3a2165,{unitID:_0x1eef79}=_0x1dc880,_0x3a967d=this[_0x414440(0x417)][_0x414440(0x2aa)](_0x1eef79)[_0x414440(0x2db)](w[_0x414440(0x3dd)]),{redoCache:_0x481770}=_0x3a967d[_0x414440(0x373)]();if(_0x481770[_0x414440(0x3a5)]===0x0)return _0x1dc880;let _0x409745=a[_0x414440(0x483)][_0x414440(0x204)](_0x1dc880[_0x414440(0x31e)][0x0]);for(let _0x41e843=0x0;_0x41e843<_0x481770['length'];_0x41e843++){const _0x1c01e9={'id':_0x414440(0x132),'params':{..._0x481770[_0x41e843]}},_0x3a41b6=this[_0x414440(0x316)][_0x414440(0x43a)](_0x409745,_0x1c01e9,!0x1);if(_[_0x414440(0x45c)](_0x3a41b6))throw _0x3a41b6[_0x414440(0x442)];_0x409745=_0x3a41b6[_0x414440(0x231)];}return{...a[_0x414440(0x483)][_0x414440(0x204)](_0x1dc880),'mutations':[_0x409745]};}[_0x3a2165(0x328)](_0x139329){const _0x22ab1c=_0x3a2165,{unitID:_0x57bacc}=_0x139329,_0x47936b=this[_0x22ab1c(0x417)]['getRenderById'](_0x57bacc)[_0x22ab1c(0x2db)](w[_0x22ab1c(0x3dd)]),{undoCache:_0x42db13,redoCache:_0x32eea2}=_0x47936b[_0x22ab1c(0x373)]();if(_0x42db13['length']===0x0||_0x32eea2[_0x22ab1c(0x3a5)]===0x0)return;const _0x5023fd=[],_0x56e4ee=[];let _0x53df6b=a[_0x22ab1c(0x483)][_0x22ab1c(0x204)](_0x139329[_0x22ab1c(0x31e)][0x0]),_0x20dc60=a[_0x22ab1c(0x483)][_0x22ab1c(0x204)](_0x139329[_0x22ab1c(0x31e)][0x0]);for(let _0x4852d7=_0x42db13[_0x22ab1c(0x3a5)]-0x1;_0x4852d7>=0x0;_0x4852d7--){const _0x49d6b0={'id':_0x22ab1c(0x132),'params':{..._0x42db13[_0x4852d7]}},_0x35674d={'id':_0x22ab1c(0x132),'params':{..._0x32eea2[_0x4852d7]}},_0x599226=this[_0x22ab1c(0x316)][_0x22ab1c(0x43a)](_0x53df6b,_0x49d6b0,!0x1),_0x3b27a4=this['_transformService'][_0x22ab1c(0x43a)](_0x20dc60,_0x35674d,!0x1);if(_[_0x22ab1c(0x45c)](_0x599226))throw _0x599226['error'];if(_[_0x22ab1c(0x45c)](_0x3b27a4))throw _0x3b27a4['error'];_0x5023fd[_0x22ab1c(0xda)](_0x599226[_0x22ab1c(0x390)][_0x22ab1c(0x101)]),_0x56e4ee[_0x22ab1c(0xda)](_0x3b27a4[_0x22ab1c(0x390)][_0x22ab1c(0x101)]),_0x53df6b=_0x599226['m1Prime'],_0x20dc60=_0x3b27a4['m1Prime'];}_0x47936b[_0x22ab1c(0x1a8)]({'undoCache':_0x5023fd,'redoCache':_0x56e4ee});}['_transformPreviousActiveRange'](_0xd583cf){const _0xee2bfb=_0x3a2165,{unitID:_0x3e9469}=_0xd583cf,_0x5ef86c=this[_0xee2bfb(0x417)][_0xee2bfb(0x2aa)](_0x3e9469)[_0xee2bfb(0x2db)](w[_0xee2bfb(0x3dd)]),_0x67910a=_0x5ef86c[_0xee2bfb(0x34c)]();if(_0x67910a==null)return;const _0x2b2573=[{'id':_0xee2bfb(0x132),'params':{'unitId':_0xd583cf[_0xee2bfb(0x438)],'actions':null,'textRanges':[_0x67910a]}}],_0x244797=this['_transformService'][_0xee2bfb(0xf5)](_0xd583cf,_0x2b2573);if(!_[_0xee2bfb(0x16b)](_0x244797))throw _0x244797[_0xee2bfb(0x442)];const _0x10b86c=_0x244797[_0xee2bfb(0x390)][0x0][_0xee2bfb(0x101)]['textRanges'];Array[_0xee2bfb(0x203)](_0x10b86c)&&_0x10b86c[_0xee2bfb(0x3a5)]&&_0x5ef86c[_0xee2bfb(0x116)](_0x10b86c[0x0]);}};fe=ps([De(0x0,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),De(0x1,_[_0x3a2165(0xc6)]),De(0x2,R['IRenderManagerService'])],fe);var Cs=Object[_0x3a2165(0x1e2)],Es=Object['getOwnPropertyDescriptor'],bs=(_0x10a163,_0x4740f8,_0x3afc27,_0xa30897)=>{for(var _0x2fc41f=_0xa30897>0x1?void 0x0:_0xa30897?Es(_0x4740f8,_0x3afc27):_0x4740f8,_0x198879=_0x10a163['length']-0x1,_0x38f30f;_0x198879>=0x0;_0x198879--)(_0x38f30f=_0x10a163[_0x198879])&&(_0x2fc41f=(_0xa30897?_0x38f30f(_0x4740f8,_0x3afc27,_0x2fc41f):_0x38f30f(_0x2fc41f))||_0x2fc41f);return _0xa30897&&_0x2fc41f&&Cs(_0x4740f8,_0x3afc27,_0x2fc41f),_0x2fc41f;},ae=(_0x3d42e5,_0x41d291)=>(_0x368fe1,_0x20e283)=>_0x41d291(_0x368fe1,_0x20e283,_0x3d42e5);exports[_0x3a2165(0x30d)]=class extends a['Disposable']{constructor(_0xedf4f,_0x24eed9,_0x1b62fe,_0x1910c7,_0x34dcf8){const _0x542ac7=_0x3a2165;super(),d(this,_0x542ac7(0xab),new Map()),d(this,_0x542ac7(0x2bd),new Map()),d(this,_0x542ac7(0x4a8),!0x1),(this['_configService']=_0xedf4f,this[_0x542ac7(0x45e)]=_0x24eed9,this[_0x542ac7(0x341)]=_0x1b62fe,this[_0x542ac7(0x1d6)]=_0x1910c7,this['_revisionService']=_0x34dcf8,this[_0x542ac7(0x11f)]());}[_0x3a2165(0x1b7)](){const _0x1772fb=_0x3a2165;this[_0x1772fb(0x4a8)]=!0x0;}[_0x3a2165(0x3bc)](){const _0x51f3cb=_0x3a2165;this[_0x51f3cb(0x4a8)]=!0x1;}[_0x3a2165(0x491)](){const _0x59a407=_0x3a2165;this[_0x59a407(0x177)]()[_0x59a407(0xe7)](()=>super[_0x59a407(0x491)]());}async[_0x3a2165(0x152)](_0x3e19a7){const _0x4b12b2=_0x3a2165;return this[_0x4b12b2(0x4a8)]?null:this[_0x4b12b2(0x45e)][_0x4b12b2(0x1dc)](Qe(_0x3e19a7));}async['saveOfflineData'](_0x23fb5d,_0x188066){const _0x19f01a=_0x3a2165;return!!this['_localStorageService'][_0x19f01a(0x3e0)](_0x23fb5d,_0x188066);}[_0x3a2165(0x200)](_0x25ceff,_0x2affb1,_0x2169ce,_0xde052e){const _0x4eddc5=_0x3a2165,_0x52efd4=this[_0x4eddc5(0x2d0)]['getCurrentRevOfUnit'](_0x25ceff);this['_cachedData'][_0x4eddc5(0x194)](_0x25ceff,{'unitID':_0x25ceff,'type':_0x2affb1,'awaitingChangeset':_0x2169ce,'mutations':_0xde052e,'rev':_0x52efd4}),this[_0x4eddc5(0x2bd)]['has'](_0x25ceff)||this[_0x4eddc5(0xcf)](_0x25ceff);}['_scheduleSaving'](_0x13aeb7){const _0x5751a8=_0x3a2165,_0x396b3e=this[_0x5751a8(0x2a2)]();_0x396b3e===0x0?this[_0x5751a8(0x35c)](_0x13aeb7):this[_0x5751a8(0x2bd)][_0x5751a8(0x194)](_0x13aeb7,setTimeout(()=>this[_0x5751a8(0x35c)](_0x13aeb7),_0x396b3e));}['_getSaveTimeout'](){const _0x1d5824=_0x3a2165;var _0x1056ea;return(_0x1056ea=this[_0x1d5824(0x105)][_0x1d5824(0x347)](ft))!=null?_0x1056ea:Zt;}[_0x3a2165(0x35c)](_0x5d5cca){const _0x201b37=_0x3a2165,_0x30cfe0=this[_0x201b37(0x2bd)][_0x201b37(0x305)](_0x5d5cca);return _0x30cfe0!==void 0x0&&window[_0x201b37(0x1de)](_0x30cfe0),this[_0x201b37(0x45e)][_0x201b37(0x3e0)](Qe(_0x5d5cca),this['_cachedData']['get'](_0x5d5cca))['then'](()=>this[_0x201b37(0x2bd)]['delete'](_0x5d5cca));}async['exhaustSavingTask'](){const _0x5682cf=_0x3a2165,_0x3db66e=[];this[_0x5682cf(0x2bd)]['forEach']((_0x16e7f9,_0x16fba7)=>{const _0x26aab5=_0x5682cf;window['clearTimeout'](_0x16e7f9),_0x3db66e[_0x26aab5(0x339)](this[_0x26aab5(0x35c)](_0x16fba7)['then'](()=>{const _0x4702dc=_0x26aab5;this['_saveTaskMap'][_0x4702dc(0x140)](_0x16fba7);}));}),await Promise[_0x5682cf(0x29e)](_0x3db66e);}[_0x3a2165(0x11f)](){const _0x2880da=_0x3a2165;this['disposeWithMe'](this[_0x2880da(0x341)][_0x2880da(0x27c)](()=>{const _0x161c46=_0x2880da;if(this['_saveTaskMap']['size'])return this[_0x161c46(0x1d6)]['t'](_0x161c46(0x156));}));}},exports[_0x3a2165(0x30d)]=bs([ae(0x0,a[_0x3a2165(0xd1)]),ae(0x1,a[_0x3a2165(0x24f)]),ae(0x2,N[_0x3a2165(0x1fe)]),ae(0x3,a[_0x3a2165(0x426)](a[_0x3a2165(0x3ff)])),ae(0x4,a['Inject'](_[_0x3a2165(0xc9)]))],exports[_0x3a2165(0x30d)]);function Qe(_0x3c373d){const _0x2e0606=_0x3a2165;return _0x2e0606(0x2fb)+_0x3c373d;}var Ts=Object[_0x3a2165(0x1e2)],Rs=Object[_0x3a2165(0x383)],Os=(_0x3b3dcc,_0x3937c5,_0x44c655,_0x430259)=>{const _0x3ea421=_0x3a2165;for(var _0x582b78=_0x430259>0x1?void 0x0:_0x430259?Rs(_0x3937c5,_0x44c655):_0x3937c5,_0x6b4400=_0x3b3dcc[_0x3ea421(0x3a5)]-0x1,_0x31f958;_0x6b4400>=0x0;_0x6b4400--)(_0x31f958=_0x3b3dcc[_0x6b4400])&&(_0x582b78=(_0x430259?_0x31f958(_0x3937c5,_0x44c655,_0x582b78):_0x31f958(_0x582b78))||_0x582b78);return _0x430259&&_0x582b78&&Ts(_0x3937c5,_0x44c655,_0x582b78),_0x582b78;},ye=(_0x1c82e7,_0x37ab1b)=>(_0x373d57,_0x67ea29)=>_0x37ab1b(_0x373d57,_0x67ea29,_0x1c82e7);function Ds(_0x168086){const _0x1d918a=_0x3a2165,{unitID:_0x504e34,mutations:_0x2d2f4a}=_0x168086;return{'unitId':_0x504e34,'subUnitId':_0x2d2f4a[0x0][_0x1d918a(0x101)][_0x1d918a(0x41b)]};}let ge=class{constructor(_0x38d395,_0x37285c,_0x4dc07d){const _0x58c854=_0x3a2165;this['_injector']=_0x38d395,this[_0x58c854(0x316)]=_0x37285c,this['_instanceService']=_0x4dc07d;}[_0x3a2165(0x289)](_0x355665){const _0x24a63d=_0x3a2165;var _0xe81f94,_0x1f920c,_0x3a93f5,_0x3c6026;const _0x273467=this[_0x24a63d(0x3be)][_0x24a63d(0x305)](C[_0x24a63d(0x2ef)]),{unitId:_0x44491b,subUnitId:_0x51dfd6}=Ds(_0x355665),_0x101073=_0x273467[_0x24a63d(0x2a7)](_0x44491b)[_0x24a63d(0x1f0)](),_0x233744=(_0x1f920c=(_0xe81f94=this['_instanceService'][_0x24a63d(0x3e5)](_0x44491b))==null?void 0x0:_0xe81f94['getActiveSheet']())==null?void 0x0:_0x1f920c['getSheetId']();if(_0x101073[_0x24a63d(0x3a5)]===0x0||!_0x44491b||!_0x51dfd6)return;const _0x1c51db=[{'id':C[_0x24a63d(0x3d6)]['id'],'params':{'unitId':_0x44491b,'subUnitId':_0x233744,'selections':a[_0x24a63d(0x483)][_0x24a63d(0x204)](_0x101073)}}],_0x149135=this[_0x24a63d(0x316)][_0x24a63d(0xf5)](_0x355665,_0x1c51db);if(!_['isTransformMutationsWithChangesetSuccess'](_0x149135))throw _0x149135[_0x24a63d(0x442)];const _0x3b4f32=(_0x3c6026=(_0x3a93f5=_0x149135['m2Prime'][0x0])==null?void 0x0:_0x3a93f5[_0x24a63d(0x101)])==null?void 0x0:_0x3c6026['selections'];Array['isArray'](_0x3b4f32)&&_0x3b4f32[_0x24a63d(0x3a5)]&&this[_0x24a63d(0x3be)][_0x24a63d(0x305)](a[_0x24a63d(0x3e2)])[_0x24a63d(0x1c2)](C[_0x24a63d(0x3d6)]['id'],{'unitId':_0x44491b,'subUnitId':_0x233744,'selections':_0x3b4f32});}};ge=Os([ye(0x0,a['Inject'](a[_0x3a2165(0x3b0)])),ye(0x1,_[_0x3a2165(0xc6)]),ye(0x2,a[_0x3a2165(0x137)])],ge);const be=a['createIdentifier'](_0x3a2165(0xf4));var bt=(_0x1578ed=>(_0x1578ed[_0x1578ed['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x3a2165(0x368),_0x1578ed[_0x1578ed[_0x3a2165(0xa4)]=0x1]=_0x3a2165(0xa4),_0x1578ed))(bt||{});const et=0x7530,tt='ACTIVE_UNIT_EVENT_CHANNEL';class ys extends a[_0x3a2165(0x287)]{constructor(){const _0x39d659=_0x3a2165;super(),d(this,'_id',a[_0x39d659(0x483)][_0x39d659(0x238)]()),d(this,'_selfUnitIDs',new Set()),d(this,'_unitOnClients',new Map()),d(this,_0x39d659(0xf6),null),d(this,'_clearOtherTimers',new Map()),d(this,'_unitStatus',new Map()),this[_0x39d659(0x1d9)]();}[_0x3a2165(0x491)](){const _0x438c7a=_0x3a2165;super[_0x438c7a(0x491)](),this[_0x438c7a(0x486)][_0x438c7a(0x337)]((_0x5438e5,_0x2d5ad0)=>this[_0x438c7a(0x2c9)](_0x2d5ad0)),this[_0x438c7a(0xf6)]&&window[_0x438c7a(0x319)](this['_heartbeatTimer']);}[_0x3a2165(0x245)](_0x338bba){const _0x4424b0=_0x3a2165;return this[_0x4424b0(0x418)](_0x338bba)[_0x4424b0(0x447)](v['distinctUntilChanged']());}['editingUnit'](_0x2bcecb){const _0x8d9299=_0x3a2165;this['_selfUnitIDs'][_0x8d9299(0x20e)]===0x0&&this[_0x8d9299(0x25e)](),this[_0x8d9299(0x13e)][_0x8d9299(0x2e5)](_0x2bcecb),this[_0x8d9299(0x11a)]({'type':0x0,'memberID':this[_0x8d9299(0x96)],'unitIDs':[_0x2bcecb],'isForwarded':!0x1});}['disposeUnit'](_0x113095){const _0x1309bc=_0x3a2165;this['_selfUnitIDs'][_0x1309bc(0x140)](_0x113095),this[_0x1309bc(0x13e)][_0x1309bc(0x20e)]===0x0&&this['_heartbeatTimer']&&window[_0x1309bc(0x319)](this[_0x1309bc(0xf6)]);}[_0x3a2165(0x1d9)](){const _0x3878f5=_0x3a2165;this[_0x3878f5(0x167)](a['toDisposable'](v[_0x3878f5(0x2cc)](window,'storage')[_0x3878f5(0x1ee)](_0x5d6245=>{const _0x5ede1c=_0x3878f5;if(_0x5d6245[_0x5ede1c(0x419)]!==tt||!_0x5d6245[_0x5ede1c(0x1c5)])return;const _0x5a8d8e=JSON['parse'](_0x5d6245[_0x5ede1c(0x1c5)]);this[_0x5ede1c(0xd3)](_0x5a8d8e);}))),window[_0x3878f5(0x391)](_0x3878f5(0x36d),()=>this[_0x3878f5(0x11a)]({'type':0x1,'memberID':this[_0x3878f5(0x96)],'unitIDs':Array[_0x3878f5(0x2f9)](this[_0x3878f5(0x13e)])}));}[_0x3a2165(0xd3)](_0x1cf1b8){switch(_0x1cf1b8['type']){case 0x0:this['_handleJoinEvent'](_0x1cf1b8);break;case 0x1:this['_handleLeaveEvent'](_0x1cf1b8);break;case 0x2:this['_handleHeartbeatEvent'](_0x1cf1b8);break;}}[_0x3a2165(0x360)](_0x2ebba4){const _0xfe1234=_0x3a2165,{unitIDs:_0x5306b0,memberID:_0x2a1730,isForwarded:_0x4c41d3}=_0x2ebba4;_0x5306b0[_0xfe1234(0x337)](_0x345072=>{const _0x29383c=_0xfe1234;if(!_0x4c41d3&&this[_0x29383c(0x1e6)][_0x29383c(0x4ac)](_0x345072)&&this[_0x29383c(0x418)](_0x345072)[_0x29383c(0x2c6)](0x1),!this[_0x29383c(0x1e6)]['has'](_0x345072)||!this['_unitOnClients'][_0x29383c(0x305)](_0x345072)[_0x29383c(0x4ac)](_0x2a1730)){const _0x37d811=this[_0x29383c(0x1e6)][_0x29383c(0x305)](_0x345072)||new Set();_0x37d811[_0x29383c(0x2e5)](_0x2a1730),this[_0x29383c(0x1e6)][_0x29383c(0x194)](_0x345072,_0x37d811),this[_0x29383c(0xc5)](_0x2a1730);}}),_0x4c41d3||this[_0xfe1234(0x11a)]({'type':0x0,'memberID':this[_0xfe1234(0x96)],'unitIDs':[...this[_0xfe1234(0x13e)]],'isForwarded':!0x0});}[_0x3a2165(0xc5)](_0xd6cff1){const _0x24d706=_0x3a2165;this['_removeClearOtherTimer'](_0xd6cff1);const _0x46a9ac=window[_0x24d706(0x25c)](()=>{const _0x4bbc7f=_0x24d706;this[_0x4bbc7f(0x1e6)]['forEach'](_0x455a66=>{_0x455a66['delete'](_0xd6cff1);});},et*0x2);this[_0x24d706(0x486)][_0x24d706(0x194)](_0xd6cff1,_0x46a9ac);}[_0x3a2165(0x2c9)](_0x3510d1){const _0x2c023e=_0x3a2165;if(this[_0x2c023e(0x486)][_0x2c023e(0x4ac)](_0x3510d1)){const _0x28e267=this['_clearOtherTimers'][_0x2c023e(0x305)](_0x3510d1);_0x28e267&&window[_0x2c023e(0x1de)](_0x28e267),this[_0x2c023e(0x486)][_0x2c023e(0x194)](_0x3510d1,null);}}['_handleLeaveEvent'](_0x551543){const _0x44123e=_0x3a2165,{memberID:_0x411a37,unitIDs:_0x49fdb7}=_0x551543;_0x49fdb7[_0x44123e(0x337)](_0x52de4c=>{const _0x82e0de=_0x44123e;var _0x31c5b1;const _0x358a09=this[_0x82e0de(0x1e6)][_0x82e0de(0x305)](_0x52de4c);_0x358a09&&(_0x358a09[_0x82e0de(0x140)](_0x411a37),(_0x31c5b1=this[_0x82e0de(0x418)](_0x52de4c))==null||_0x31c5b1['next'](_0x358a09[_0x82e0de(0x20e)]===0x0?0x0:0x1));}),this[_0x44123e(0x2c9)](_0x411a37);}[_0x3a2165(0x4a2)](_0x16c4c4){const _0x12bf19=_0x3a2165;this[_0x12bf19(0xc5)](_0x16c4c4[_0x12bf19(0x12e)]);}[_0x3a2165(0x11a)](_0x4d99f8){const _0x266d7e=_0x3a2165;localStorage['setItem'](tt,JSON[_0x266d7e(0x3a6)](_0x4d99f8));}[_0x3a2165(0x25e)](){const _0x508465=_0x3a2165;this[_0x508465(0xf6)]=window[_0x508465(0x9b)](()=>{const _0x4ca768=_0x508465;this[_0x4ca768(0x11a)]({'type':0x2,'memberID':this['_id']});},et);}['_ensureSubject'](_0x313fbd){const _0x183ab6=_0x3a2165;return this[_0x183ab6(0x176)][_0x183ab6(0x4ac)](_0x313fbd)||this[_0x183ab6(0x176)][_0x183ab6(0x194)](_0x313fbd,new v[(_0x183ab6(0x2f5))](0x0)),this[_0x183ab6(0x176)][_0x183ab6(0x305)](_0x313fbd);}}function Tt(_0x2d5823){const _0xd26471=_0x3a2165;let _0x30dd2a='';for(const _0x423bd7 of _0x2d5823){const {startOffset:_0x4186f7,endOffset:_0x46780a,isActive:_0x1058df}=_0x423bd7;_0x30dd2a[_0xd26471(0x3a5)]&&(_0x30dd2a+=','),_0x30dd2a+=_0x4186f7+':'+_0x46780a+':'+(_0x1058df?'1':'0');}return _0x30dd2a;}function Us(_0x5b9b4a){const _0x168daa=_0x3a2165,_0x369c0d=_0x5b9b4a['split'](','),_0x286b94=[];for(const _0x5c4317 of _0x369c0d){const [_0x1d7135,_0x3957f9,_0x52bcd9]=_0x5c4317[_0x168daa(0x2a0)](':');_0x286b94['push']({'startOffset':Number(_0x1d7135),'endOffset':Number(_0x3957f9),'collapsed':_0x1d7135===_0x3957f9,'isActive':_0x52bcd9==='1'});}return _0x286b94[_0x168daa(0x2ea)](_0x18d714=>_0x18d714[_0x168daa(0x2dc)])||(_0x286b94[0x0][_0x168daa(0x2dc)]=!0x0),_0x286b94;}class Ye extends a[_0x3a2165(0x441)]{constructor(){const _0x512083=_0x3a2165;super(...arguments),d(this,_0x512083(0x264),new v[(_0x512083(0x2f5))](null)),d(this,_0x512083(0x3ce),this[_0x512083(0x264)][_0x512083(0xfd)]());}[_0x3a2165(0x2d9)](_0x2df7b5){const _0x17849b=_0x3a2165,{unitID:_0x2082b7,memberID:_0x2f1f37,textRanges:_0x1319b0}=_0x2df7b5,_0x5836b8=Tt(_0x1319b0),_0x52374f={'unitID':_0x2082b7,'memberID':_0x2f1f37,'selection':_0x5836b8};this[_0x17849b(0x264)][_0x17849b(0x2c6)](_0x52374f);}}var Ps=Object[_0x3a2165(0x1e2)],ws=Object[_0x3a2165(0x383)],Ms=(_0x35602d,_0x211347,_0x42be4c,_0x155ac6)=>{for(var _0x15d14e=_0x155ac6>0x1?void 0x0:_0x155ac6?ws(_0x211347,_0x42be4c):_0x211347,_0x29d52e=_0x35602d['length']-0x1,_0x5bd325;_0x29d52e>=0x0;_0x29d52e--)(_0x5bd325=_0x35602d[_0x29d52e])&&(_0x15d14e=(_0x155ac6?_0x5bd325(_0x211347,_0x42be4c,_0x15d14e):_0x5bd325(_0x15d14e))||_0x15d14e);return _0x155ac6&&_0x15d14e&&Ps(_0x211347,_0x42be4c,_0x15d14e),_0x15d14e;},st=(_0x456d70,_0x571f92)=>(_0x5c90c2,_0x8b82da)=>_0x571f92(_0x5c90c2,_0x8b82da,_0x456d70);let me=class{constructor(_0x4bed70,_0x3c8625){const _0x4c4d11=_0x3a2165;this['_injector']=_0x4bed70,this[_0x4c4d11(0x316)]=_0x3c8625;}[_0x3a2165(0x289)](_0x17d1ef){const _0x1c6a4b=_0x3a2165;var _0x113346;const _0x502272=this[_0x1c6a4b(0x3be)][_0x1c6a4b(0x305)](V['DocSelectionManagerService']),_0x527179=(_0x113346=_0x502272[_0x1c6a4b(0x3b2)]())!=null?_0x113346:[];if(_0x527179[_0x1c6a4b(0x3a5)]===0x0)return;const _0x3968cc=[{'id':_0x1c6a4b(0x132),'params':{'unitId':_0x17d1ef[_0x1c6a4b(0x438)],'actions':null,'textRanges':_0x527179}}],_0x19a3a7=this[_0x1c6a4b(0x316)][_0x1c6a4b(0xf5)](_0x17d1ef,_0x3968cc);if(!_[_0x1c6a4b(0x16b)](_0x19a3a7))throw _0x19a3a7[_0x1c6a4b(0x442)];const _0x1c0abf=_0x19a3a7['m2Prime'][0x0][_0x1c6a4b(0x101)][_0x1c6a4b(0x382)];Array['isArray'](_0x1c0abf)&&_0x1c0abf[_0x1c6a4b(0x3a5)]&&_0x502272[_0x1c6a4b(0x23e)](_0x1c0abf,!0x1);}};me=Ms([st(0x0,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),st(0x1,_['ITransformService'])],me);const Ns=new Set([C[_0x3a2165(0x366)]['id']]);function it(_0x32824f,_0x51297d,_0x1ad622,_0x11ab97,_0xc811d8){const _0x26f2b0=_0x3a2165;var _0x5d7d8f,_0x78dae8,_0xeb4746,_0x4f9323;const _0x4c8ffd=[];for(const _0x35ed65 of _0x32824f)if(Ns['has'](_0x35ed65['id'])){if(_0x4c8ffd['length']>0x0)break;_0x4c8ffd[_0x26f2b0(0x339)](_0x35ed65);break;}else _0x4c8ffd[_0x26f2b0(0x339)](_0x35ed65);const _0x5489de=(_0x78dae8=(_0x5d7d8f=_0xc811d8[_0x26f2b0(0x42a)]())==null?void 0x0:_0x5d7d8f[_0x26f2b0(0xbd)])!=null?_0x78dae8:_0x26f2b0(0x361),_0x269375=(_0x4f9323=(_0xeb4746=_0xc811d8['getCurrentUser']())==null?void 0x0:_0xeb4746[_0x26f2b0(0x12e)])!=null?_0x4f9323:_0x26f2b0(0x361);return{'changeset':{'unitID':_0x51297d,'type':_[_0x26f2b0(0x2c2)](_0x1ad622[_0x26f2b0(0x40d)](_0x51297d)),'baseRev':_0x11ab97[_0x26f2b0(0xdf)](_0x51297d),'revision':0x0,'userID':_0x5489de,'memberID':_0x269375,'mutations':_0x4c8ffd},'pendingMutations':_0x32824f[_0x26f2b0(0xe4)](_0x4c8ffd['length'])};}function As(_0xae3ce8,_0x35c84b,_0x255dfc,_0x505d7e,_0x292692){const _0x12e710=_0x3a2165;var _0x4bdbea,_0x4aac46,_0x307290,_0x7347ac;const _0x3f0ac8=[_0xae3ce8[_0x12e710(0xb3)]((_0x47d338,_0x1dff0d)=>{const _0x6b9fa3=_0x12e710;var _0x2ae054;const {id:_0x5eeafc}=_0x47d338,{id:_0x45f060,type:_0xfae4b7}=_0x1dff0d,_0x477ea9=(_0x2ae054=_0x47d338[_0x6b9fa3(0x101)])!=null?_0x2ae054:{'actions':null},_0x127f3a=_0x1dff0d['params'];if(_0x5eeafc&&_0x5eeafc!==_0x45f060)throw new Error(_0x6b9fa3(0x9e)+_0x5eeafc+_0x6b9fa3(0x38d)+_0x45f060+'.');return{..._0x47d338,'id':_0x45f060,'type':_0xfae4b7,'params':{'unitId':_0x127f3a[_0x6b9fa3(0xec)],'textRanges':_0x127f3a[_0x6b9fa3(0x382)],'actions':a[_0x6b9fa3(0x1b4)][_0x6b9fa3(0x1a5)](_0x477ea9[_0x6b9fa3(0x3a9)],_0x127f3a['actions'])}};},{})],_0x39a855=(_0x4aac46=(_0x4bdbea=_0x292692[_0x12e710(0x42a)]())==null?void 0x0:_0x4bdbea[_0x12e710(0xbd)])!=null?_0x4aac46:_0x12e710(0x361),_0x2d6311=(_0x7347ac=(_0x307290=_0x292692[_0x12e710(0x42a)]())==null?void 0x0:_0x307290[_0x12e710(0x12e)])!=null?_0x7347ac:_0x12e710(0x361);return{'changeset':{'unitID':_0x35c84b,'type':_[_0x12e710(0x2c2)](_0x255dfc[_0x12e710(0x40d)](_0x35c84b)),'baseRev':_0x505d7e[_0x12e710(0xdf)](_0x35c84b),'revision':0x0,'userID':_0x39a855,'memberID':_0x2d6311,'mutations':_0x3f0ac8},'pendingMutations':[]};}const Ls={'id':C[_0x3a2165(0x1ab)]['id'],'type':a[_0x3a2165(0x303)][_0x3a2165(0x178)],'params':{}};var js=Object[_0x3a2165(0x1e2)],$s=Object[_0x3a2165(0x383)],z=(_0x59f00a,_0x210482,_0x1ef07b,_0x5bdba4)=>{const _0x35f450=_0x3a2165;for(var _0x1baaad=_0x5bdba4>0x1?void 0x0:_0x5bdba4?$s(_0x210482,_0x1ef07b):_0x210482,_0x5bc1ce=_0x59f00a[_0x35f450(0x3a5)]-0x1,_0x1bb0cd;_0x5bc1ce>=0x0;_0x5bc1ce--)(_0x1bb0cd=_0x59f00a[_0x5bc1ce])&&(_0x1baaad=(_0x5bdba4?_0x1bb0cd(_0x210482,_0x1ef07b,_0x1baaad):_0x1bb0cd(_0x1baaad))||_0x1baaad);return _0x5bdba4&&_0x1baaad&&js(_0x210482,_0x1ef07b,_0x1baaad),_0x1baaad;},g=(_0x216207,_0x36db76)=>(_0x3c1b4e,_0x191be5)=>_0x36db76(_0x3c1b4e,_0x191be5,_0x216207),y=(_0x52ed49=>(_0x52ed49['NOT_COLLAB']='not_collab',_0x52ed49['SYNCED']=_0x3a2165(0x15c),_0x52ed49[_0x3a2165(0x193)]='pending',_0x52ed49['AWAITING']=_0x3a2165(0x3b6),_0x52ed49['AWAITING_WITH_PENDING']=_0x3a2165(0x11b),_0x52ed49[_0x3a2165(0x24c)]=_0x3a2165(0x33c),_0x52ed49[_0x3a2165(0x171)]='conflict',_0x52ed49['OFFLINE']='offline',_0x52ed49))(y||{});class J{constructor(_0x468b18,_0xbed35e,_0x18d605,_0x1187ab,_0x343b69,_0x22ae51,_0x33fbfd,_0x4747b6,_0x47a870){const _0x13f935=_0x3a2165;d(this,_0x13f935(0xbc),null),d(this,_0x13f935(0x22e),[]),(this[_0x13f935(0x438)]=_0x468b18,this[_0x13f935(0x3a4)]=_0xbed35e,this['_handler']=_0x343b69,this[_0x13f935(0x3de)]=_0x22ae51,this['_undoRedoService']=_0x33fbfd,this[_0x13f935(0x2d0)]=_0x4747b6,this[_0x13f935(0x1e8)]=_0x47a870,this[_0x13f935(0xbc)]=_0x18d605,this[_0x13f935(0x22e)]=_0x1187ab);}[_0x3a2165(0x1d3)](_0x4c5879){const _0x14fd2e=_0x3a2165,_0xcc82a6=this[_0x14fd2e(0x2d0)][_0x14fd2e(0xdf)](this[_0x14fd2e(0x438)]);return _0x4c5879['revision']>_0xcc82a6+0x1?(this[_0x14fd2e(0x1ad)][_0x14fd2e(0x252)]({'from':_0xcc82a6,'to':_0x4c5879[_0x14fd2e(0x251)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x9561b5){const _0x1a8536=_0x3a2165;this[_0x1a8536(0x216)][_0x1a8536(0x3cb)](this[_0x1a8536(0x438)],_0x9561b5);}['_transformSelections'](_0x1c1d8d){const _0x4a9379=_0x3a2165;var _0x370026,_0x29ca15;(_0x29ca15=(_0x370026=this[_0x4a9379(0x1ad)])[_0x4a9379(0x345)])==null||_0x29ca15['call'](_0x370026,_0x1c1d8d);}[_0x3a2165(0x12b)](_0x10ad0a){const _0xda1150=_0x3a2165;var _0x555512,_0x238170;return(_0x238170=(_0x555512=this[_0xda1150(0x1ad)])[_0xda1150(0x158)])==null?void 0x0:_0x238170[_0xda1150(0x1ef)](_0x555512,_0x10ad0a);}[_0x3a2165(0xe5)](_0x5d015b){var _0x3e4213,_0x49d38d,_0x4377a3;return(_0x4377a3=(_0x49d38d=(_0x3e4213=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x49d38d['call'](_0x3e4213,_0x5d015b))!=null?_0x4377a3:_0x5d015b;}[_0x3a2165(0x23b)](_0x44f6f3){const _0x18ad7d=_0x3a2165;var _0x47b4df,_0x228e1f;if(this[_0x18ad7d(0x3a4)]===j[_0x18ad7d(0x34e)]){const {unitID:_0x3bdfcc,mutations:_0x102006,memberID:_0x38e790}=_0x44f6f3,_0x1303b3=_0x102006[0x0][_0x18ad7d(0x101)][_0x18ad7d(0x382)];Array[_0x18ad7d(0x203)](_0x1303b3)&&_0x1303b3['length']>0x0&&((_0x228e1f=(_0x47b4df=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x228e1f['call'](_0x47b4df,{'unitID':_0x3bdfcc,'memberID':_0x38e790,'textRanges':_0x1303b3}));}}[_0x3a2165(0x312)](){const _0x2fc374=_0x3a2165;this['_localCacheService'][_0x2fc374(0x200)](this[_0x2fc374(0x438)],this[_0x2fc374(0x3a4)],this[_0x2fc374(0xbc)],this[_0x2fc374(0x22e)]);}[_0x3a2165(0x1b9)](){const _0xa409d8=_0x3a2165;return this[_0xa409d8(0x2d0)][_0xa409d8(0xdf)](this['unitID']);}[_0x3a2165(0x1db)](){const _0x2875a7=_0x3a2165;this['_revisionService'][_0x2875a7(0x3f9)](this[_0x2875a7(0x438)]);}[_0x3a2165(0x3ac)](_0x126712){const _0x4b71b2=_0x3a2165;var _0x4a622c;const _0x4adf42=this[_0x4b71b2(0xe5)](_0x126712),_0x5ad283=a[_0x4b71b2(0x1f5)](_0x4adf42[_0x4b71b2(0x31e)],this['_commandService'],{'fromCollab':!0x0});if(!_0x5ad283[_0x4b71b2(0x109)])throw _0x5ad283[_0x4b71b2(0x442)]instanceof Error?_0x5ad283[_0x4b71b2(0x442)]:new Error((_0x4a622c=_0x5ad283['error'])!=null?_0x4a622c:_0x4b71b2(0x404));this[_0x4b71b2(0x12b)](_0x4adf42),this[_0x4b71b2(0x163)](_0x126712),this[_0x4b71b2(0x27b)](_0x4adf42),this[_0x4b71b2(0x23b)](_0x4adf42),this[_0x4b71b2(0x1db)]();}}let se=class extends J{constructor(_0x3870ac,_0x341872,_0x1598e5,_0xf4dd61,_0x4d91a0,_0x409a2b,_0x48f9d6,_0x47dd14,_0x2a2571,_0x15a3db){const _0x408021=_0x3a2165;super(_0x3870ac,_0x341872,null,[],_0x1598e5,_0x47dd14,_0x48f9d6,_0xf4dd61,_0x4d91a0),d(this,'status',_0x408021(0x15c)),(this[_0x408021(0x3be)]=_0x409a2b,this['_logService']=_0x2a2571,this[_0x408021(0x316)]=_0x15a3db);}[_0x3a2165(0x32c)](_0x5c4d9d){const _0x2da358=_0x3a2165,_0x3179fc=this[_0x2da358(0x3be)][_0x2da358(0xbe)](x,this['unitID'],this[_0x2da358(0x3a4)],[_0x5c4d9d],this[_0x2da358(0x1ad)]);return _0x3179fc['_schedule'](),_0x3179fc[_0x2da358(0x312)](),_0x3179fc;}[_0x3a2165(0x336)](_0x2e21e1){const _0x5ab9c7=_0x3a2165;if(this[_0x5ab9c7(0x1d3)](_0x2e21e1))return this[_0x5ab9c7(0x3be)][_0x5ab9c7(0xbe)](H,this[_0x5ab9c7(0x438)],this[_0x5ab9c7(0x3a4)],null,[],null,[_0x2e21e1],this[_0x5ab9c7(0x1ad)]);try{const _0x57d7c4=this[_0x5ab9c7(0x316)][_0x5ab9c7(0xf5)](_0x2e21e1,[Ls]);if(_[_0x5ab9c7(0x16b)](_0x57d7c4)){const {c1Prime:_0x54a8cc}=_0x57d7c4;return this[_0x5ab9c7(0x3ac)](_0x54a8cc),this;}throw _0x57d7c4[_0x5ab9c7(0x442)];}catch(_0x4863a2){return this['_logService']['error'](_0x4863a2),this[_0x5ab9c7(0x99)](!0x1);}}['_onConflict'](_0x41c2fe){const _0xe4f331=_0x3a2165;return this[_0xe4f331(0x3be)]['createInstance'](F,this['unitID'],this[_0xe4f331(0x3a4)],null,[],this[_0xe4f331(0x1ad)],_0x41c2fe);}[_0x3a2165(0x2e1)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x3a2165(0x3f7)](){const _0x4fe676=_0x3a2165;throw new Error(_0x4fe676(0x1ba));}[_0x3a2165(0x237)](){const _0x5024bc=_0x3a2165;return this[_0x5024bc(0x3be)][_0x5024bc(0xbe)](G,this[_0x5024bc(0x438)],this['type'],null,[],this[_0x5024bc(0x1ad)]);}[_0x3a2165(0x1e0)](){return this;}['resend'](){const _0x43c402=_0x3a2165;throw new Error(_0x43c402(0x49b));}[_0x3a2165(0x2df)](){const _0x40312f=_0x3a2165,_0x5a280e=this[_0x40312f(0x2d0)]['getCurrentRevOfUnit'](this[_0x40312f(0x438)]);return this[_0x40312f(0x1ad)][_0x40312f(0x252)]({'from':_0x5a280e,'to':0x0}),this[_0x40312f(0x3be)][_0x40312f(0xbe)](H,this[_0x40312f(0x438)],this['type'],null,[],null,[],this['_handler']);}};se=z([g(0x3,a['Inject'](_[_0x3a2165(0xc9)])),g(0x4,a['Inject'](exports['LocalCacheService'])),g(0x5,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),g(0x6,a['IUndoRedoService']),g(0x7,a[_0x3a2165(0x3e2)]),g(0x8,a[_0x3a2165(0x490)]),g(0x9,_[_0x3a2165(0xc6)])],se);let x=class extends J{constructor(_0x2ab85f,_0x347fa0,_0x1567ac,_0xe39257,_0x2ee000,_0x5d3e98,_0x96b175,_0x233338,_0x98dc91,_0x2f5bee,_0x22c735,_0x59d2f5,_0x1d65a8,_0x10f8e0){const _0x965f5=_0x3a2165;super(_0x2ab85f,_0x347fa0,null,_0x1567ac,_0xe39257,_0x2f5bee,_0x10f8e0,_0x5d3e98,_0x96b175),d(this,_0x965f5(0x492),_0x965f5(0x10f)),d(this,_0x965f5(0xde),null),d(this,_0x965f5(0x3f5),null),(this[_0x965f5(0x3be)]=_0x2ee000,this[_0x965f5(0x2c3)]=_0x233338,this[_0x965f5(0x42d)]=_0x98dc91,this[_0x965f5(0x105)]=_0x22c735,this[_0x965f5(0x316)]=_0x59d2f5,this[_0x965f5(0x406)]=_0x1d65a8);}[_0x3a2165(0x32c)](_0x1b7698){const _0xf28356=_0x3a2165;return this[_0xf28356(0x22e)][_0xf28356(0x339)](_0x1b7698),this[_0xf28356(0x312)](),this;}['onRemoteChangeset'](_0x23eb26){const _0x33500b=_0x3a2165;if(this[_0x33500b(0x1d3)](_0x23eb26))return this[_0x33500b(0x480)](),this[_0x33500b(0x3be)][_0x33500b(0xbe)](H,this['unitID'],this[_0x33500b(0x3a4)],null,this[_0x33500b(0x22e)],null,[_0x23eb26],this[_0x33500b(0x1ad)]);try{const _0x942b20=this['_transformService'][_0x33500b(0xf5)](_0x23eb26,this[_0x33500b(0x22e)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x942b20)){const {c1Prime:_0x186fcb,m2Prime:_0xc86709}=_0x942b20;this[_0x33500b(0x3ac)](_0x186fcb);const _0x1cb36e=this[_0x33500b(0x3be)][_0x33500b(0xbe)](x,this[_0x33500b(0x438)],this[_0x33500b(0x3a4)],_0xc86709,this[_0x33500b(0x1ad)]);return this['_clearScheduledTask'](),_0x1cb36e[_0x33500b(0x42e)](this[_0x33500b(0xde)]?Math['max'](0x0,new Date()['getTime']()-this[_0x33500b(0xde)]):this['_getSendChangesetTimeout']()),_0x1cb36e;}throw _0x942b20['error'];}catch(_0x10b957){return this[_0x33500b(0x42d)]['error'](_0x10b957),this[_0x33500b(0x99)](!0x1);}}[_0x3a2165(0x2e1)](){const _0xfda7e4=_0x3a2165;throw new Error(_0xfda7e4(0x12d));}['onRemoteRej'](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x3a2165(0x237)](){const _0x1c9da8=_0x3a2165;return this[_0x1c9da8(0x480)](),this[_0x1c9da8(0x3be)]['createInstance'](G,this[_0x1c9da8(0x438)],this['type'],null,this[_0x1c9da8(0x22e)],this[_0x1c9da8(0x1ad)]);}[_0x3a2165(0x1e0)](){return this;}[_0x3a2165(0x42e)](_0x19bbed){const _0x468617=_0x3a2165,_0x4e5e8e=_0x19bbed!=null?_0x19bbed:this[_0x468617(0x367)]();this['_scheduleTimestamp']=new Date()[_0x468617(0x3dc)](),this[_0x468617(0x3f5)]=window['setTimeout'](()=>{const _0x142d43=_0x468617;this['_clearScheduledTask']();let _0xd7ccdc=null;switch(this[_0x142d43(0x3a4)]){case j[_0x142d43(0x21f)]:{_0xd7ccdc=it(this['_pendingMutations'],this['unitID'],this[_0x142d43(0x406)],this['_revisionService'],this['_memberService']);break;}case j[_0x142d43(0x34e)]:{this[_0x142d43(0x22e)][_0x142d43(0x36b)](_0x50b741=>_0x50b741['id']===V[_0x142d43(0x21d)]['id'])?_0xd7ccdc=As(this[_0x142d43(0x22e)],this[_0x142d43(0x438)],this[_0x142d43(0x406)],this['_revisionService'],this[_0x142d43(0x2c3)]):_0xd7ccdc=it(this[_0x142d43(0x22e)],this['unitID'],this[_0x142d43(0x406)],this[_0x142d43(0x2d0)],this[_0x142d43(0x2c3)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x142d43(0x139));}const {changeset:_0x5c4f36,pendingMutations:_0x25795c}=_0xd7ccdc;this['_handler'][_0x142d43(0x182)](_0x5c4f36);const _0x37f661=_0x25795c[_0x142d43(0x3a5)]?this[_0x142d43(0x3be)]['createInstance'](k,this['unitID'],this[_0x142d43(0x3a4)],_0x5c4f36,_0x25795c,this['_handler']):this['_injector'][_0x142d43(0xbe)](W,this[_0x142d43(0x438)],this[_0x142d43(0x3a4)],_0x5c4f36,this[_0x142d43(0x1ad)]);_0x37f661[_0x142d43(0x312)](),this['_handler'][_0x142d43(0x286)](this,_0x37f661);},_0x4e5e8e);}[_0x3a2165(0x367)](){const _0x1cf078=_0x3a2165;var _0x7dba7d;const _0x15f0c0=this[_0x1cf078(0x105)][_0x1cf078(0x347)](A);return(_0x7dba7d=_0x15f0c0==null?void 0x0:_0x15f0c0[_0x1cf078(0x3b1)])!=null?_0x7dba7d:Kt;}[_0x3a2165(0x462)](){const _0x1b1a5b=_0x3a2165;throw new Error(_0x1b1a5b(0x111));}['_clearScheduledTask'](){const _0x5a01b0=_0x3a2165;this[_0x5a01b0(0x3f5)]!=null&&(clearTimeout(this[_0x5a01b0(0x3f5)]),this['_sendingTimer']=null);}[_0x3a2165(0x99)](_0xba2aed){const _0x29004f=_0x3a2165;return this['_clearScheduledTask'](),this[_0x29004f(0x3be)][_0x29004f(0xbe)](F,this['unitID'],this[_0x29004f(0x3a4)],null,this[_0x29004f(0x22e)],this[_0x29004f(0x1ad)],_0xba2aed);}};x=z([g(0x4,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),g(0x5,a[_0x3a2165(0x426)](_['RevisionService'])),g(0x6,a[_0x3a2165(0x426)](exports[_0x3a2165(0x30d)])),g(0x7,a[_0x3a2165(0x426)](q)),g(0x8,a[_0x3a2165(0x490)]),g(0x9,a[_0x3a2165(0x3e2)]),g(0xa,a[_0x3a2165(0xd1)]),g(0xb,_['ITransformService']),g(0xc,a[_0x3a2165(0x137)]),g(0xd,a[_0x3a2165(0x244)])],x);let W=class extends J{constructor(_0x58427e,_0x44410e,_0xd6dcc8,_0x5b427e,_0x2e7798,_0x130532,_0x42300e,_0x5d4438,_0x46aa97,_0x80c756,_0x51c68a){const _0x452e78=_0x3a2165;super(_0x58427e,_0x44410e,_0xd6dcc8,[],_0x5b427e,_0x5d4438,_0x51c68a,_0x130532,_0x42300e),d(this,'status',_0x452e78(0x3b6)),(this[_0x452e78(0x3be)]=_0x2e7798,this[_0x452e78(0x42d)]=_0x46aa97,this[_0x452e78(0x316)]=_0x80c756);}[_0x3a2165(0x32c)](_0x1bdb3c){const _0x5ef90c=_0x3a2165,_0x3edbee=this[_0x5ef90c(0x3be)]['createInstance'](k,this[_0x5ef90c(0x438)],this[_0x5ef90c(0x3a4)],this['_awaitingChangeset'],[_0x1bdb3c],this[_0x5ef90c(0x1ad)]);return _0x3edbee[_0x5ef90c(0x312)](),_0x3edbee;}[_0x3a2165(0x336)](_0x5b3a3c){const _0x1d56d3=_0x3a2165;if(this[_0x1d56d3(0x1d3)](_0x5b3a3c))return this[_0x1d56d3(0x3be)][_0x1d56d3(0xbe)](H,this[_0x1d56d3(0x438)],this[_0x1d56d3(0x3a4)],this[_0x1d56d3(0xbc)],[],null,[_0x5b3a3c],this[_0x1d56d3(0x1ad)]);try{const _0x4eb159=this[_0x1d56d3(0x316)]['transformChangesets']([_0x5b3a3c],[this[_0x1d56d3(0xbc)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x4eb159)){const {c1Prime:_0x5da2e4,c2Prime:_0x12e38a}=_0x4eb159;this[_0x1d56d3(0x3ac)](_0x5da2e4[0x0]),_0x12e38a[0x0]['baseRev']=this['_getCurrentRevision']();const _0x9a683b=this[_0x1d56d3(0x3be)][_0x1d56d3(0xbe)](W,this['unitID'],this[_0x1d56d3(0x3a4)],_0x12e38a[0x0],this[_0x1d56d3(0x1ad)]);return _0x9a683b[_0x1d56d3(0x312)](),_0x9a683b;}return this[_0x1d56d3(0x99)](!0x1);}catch(_0x1d318e){return this[_0x1d56d3(0x42d)][_0x1d56d3(0x442)](_0x1d318e),this['_onConflict'](!0x1);}}[_0x3a2165(0x2e1)](_0x1def1b){const _0x3e63e4=_0x3a2165,_0x228880=this['_revisionService'][_0x3e63e4(0xdf)](this[_0x3e63e4(0x438)]);if(_0x1def1b[_0x3e63e4(0x251)]<_0x228880-0x1)return this;if(this[_0x3e63e4(0x1d3)](_0x1def1b))return this[_0x3e63e4(0x3be)][_0x3e63e4(0xbe)](H,this[_0x3e63e4(0x438)],this['type'],null,[],this['_awaitingChangeset'],[],this[_0x3e63e4(0x1ad)]);this[_0x3e63e4(0x1db)]();const _0x5e2493=this['_injector']['createInstance'](se,this[_0x3e63e4(0x438)],this['type'],this[_0x3e63e4(0x1ad)]);return _0x5e2493[_0x3e63e4(0x312)](),_0x5e2493;}[_0x3a2165(0x3f7)](_0x552ae0){const _0x55c8c0=_0x3a2165;return this[_0x55c8c0(0x99)](!!(_0x552ae0!=null&&_0x552ae0[_0x55c8c0(0x146)]));}['toggleOffline'](){const _0x2d47c0=_0x3a2165;return this[_0x2d47c0(0x3be)][_0x2d47c0(0xbe)](G,this[_0x2d47c0(0x438)],this['type'],this['_awaitingChangeset'],[],this[_0x2d47c0(0x1ad)]);}[_0x3a2165(0x1e0)](){return this;}[_0x3a2165(0x462)](){this['_handler']['onSendChangeset'](this['_awaitingChangeset']);}[_0x3a2165(0x99)](_0x317ef1){const _0x2bc583=_0x3a2165;return this['_injector'][_0x2bc583(0xbe)](F,this[_0x2bc583(0x438)],this['type'],this[_0x2bc583(0xbc)],[],this[_0x2bc583(0x1ad)],_0x317ef1);}};W=z([g(0x4,a[_0x3a2165(0x426)](a['Injector'])),g(0x5,a['Inject'](_[_0x3a2165(0xc9)])),g(0x6,a[_0x3a2165(0x426)](exports[_0x3a2165(0x30d)])),g(0x7,a['ICommandService']),g(0x8,a[_0x3a2165(0x490)]),g(0x9,_[_0x3a2165(0xc6)]),g(0xa,a['IUndoRedoService'])],W);let k=class extends J{constructor(_0x497ca7,_0x441204,_0x15cc80,_0x441a78,_0x23160e,_0x551bf5,_0x49bcbb,_0x2ea5dc,_0x3df484,_0x269890,_0x22143b,_0x15702d){const _0x484af4=_0x3a2165;super(_0x497ca7,_0x441204,_0x15cc80,_0x441a78,_0x23160e,_0x3df484,_0x15702d,_0x49bcbb,_0x2ea5dc),d(this,_0x484af4(0x492),_0x484af4(0x11b)),(this[_0x484af4(0x3be)]=_0x551bf5,this['_logService']=_0x269890,this[_0x484af4(0x316)]=_0x22143b);}[_0x3a2165(0x32c)](_0x442e4d){const _0x43decf=_0x3a2165;return this[_0x43decf(0x22e)][_0x43decf(0x339)](_0x442e4d),this;}['onRemoteChangeset'](_0x5c3d5d){const _0xcb5da9=_0x3a2165;if(this['_checkMissing'](_0x5c3d5d))return this[_0xcb5da9(0x3be)][_0xcb5da9(0xbe)](H,this['unitID'],this[_0xcb5da9(0x3a4)],this[_0xcb5da9(0xbc)],this[_0xcb5da9(0x22e)],null,[_0x5c3d5d],this[_0xcb5da9(0x1ad)]);try{const _0x3a7d84=this[_0xcb5da9(0x316)][_0xcb5da9(0x41e)]([_0x5c3d5d],[this[_0xcb5da9(0xbc)]],!0x1);if(_[_0xcb5da9(0x197)](_0x3a7d84)){const {c1Prime:_0x3a3de6,c2Prime:_0x483c9a}=_0x3a7d84,_0x34f591=this[_0xcb5da9(0x316)][_0xcb5da9(0xf5)](_0x3a3de6[0x0],this['_pendingMutations']);if(_[_0xcb5da9(0x16b)](_0x34f591)){const {c1Prime:_0x310365,m2Prime:_0x6d1b7c}=_0x34f591;return this[_0xcb5da9(0x3ac)](_0x310365),_0x483c9a[0x0][_0xcb5da9(0x142)]=this[_0xcb5da9(0x1b9)](),this[_0xcb5da9(0x3be)][_0xcb5da9(0xbe)](k,this['unitID'],this[_0xcb5da9(0x3a4)],_0x483c9a[0x0],_0x6d1b7c,this['_handler']);}throw _0x34f591[_0xcb5da9(0x442)];}throw _0x3a7d84['error'];}catch(_0x2b1fed){return this[_0xcb5da9(0x42d)]['error'](_0x2b1fed),this[_0xcb5da9(0x99)](!0x1);}}[_0x3a2165(0x2e1)](_0x1c366a){const _0x50df87=_0x3a2165;if(this['_checkMissing'](_0x1c366a))return this[_0x50df87(0x3be)][_0x50df87(0xbe)](H,this[_0x50df87(0x438)],this['type'],null,this[_0x50df87(0x22e)],this[_0x50df87(0xbc)],[],this[_0x50df87(0x1ad)]);this[_0x50df87(0x1db)]();const _0x1237f9=this[_0x50df87(0x3be)][_0x50df87(0xbe)](x,this['unitID'],this[_0x50df87(0x3a4)],this[_0x50df87(0x22e)],this['_handler']);return _0x1237f9[_0x50df87(0x42e)](),_0x1237f9[_0x50df87(0x312)](),_0x1237f9;}[_0x3a2165(0x3f7)](_0x1ff990){const _0xbea86f=_0x3a2165;return this[_0xbea86f(0x99)](!!(_0x1ff990!=null&&_0x1ff990[_0xbea86f(0x146)]));}[_0x3a2165(0x237)](){const _0x22a954=_0x3a2165;return this[_0x22a954(0x3be)][_0x22a954(0xbe)](G,this[_0x22a954(0x438)],this['type'],this[_0x22a954(0xbc)],this[_0x22a954(0x22e)],this['_handler']);}[_0x3a2165(0x1e0)](){return this;}[_0x3a2165(0x462)](){const _0x4cce90=_0x3a2165;this[_0x4cce90(0x1ad)][_0x4cce90(0x182)](this[_0x4cce90(0xbc)]);}['_onConflict'](_0x522062){const _0xeadb36=_0x3a2165;return this[_0xeadb36(0x3be)]['createInstance'](F,this[_0xeadb36(0x438)],this['type'],null,this[_0xeadb36(0x22e)],this[_0xeadb36(0x1ad)],_0x522062);}};k=z([g(0x5,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),g(0x6,a[_0x3a2165(0x426)](_[_0x3a2165(0xc9)])),g(0x7,a[_0x3a2165(0x426)](exports[_0x3a2165(0x30d)])),g(0x8,a['ICommandService']),g(0x9,a['ILogService']),g(0xa,_[_0x3a2165(0xc6)]),g(0xb,a['IUndoRedoService'])],k);let F=class extends J{constructor(_0xbbb60a,_0x430a26,_0x593715,_0x47f283,_0x5b6f76,_0x3db5fd=!0x1,_0x38e5ad,_0x4f11e7,_0x29db6b,_0x3dadde,_0x24ce67,_0xad56fe,_0x3d6fc6){const _0x4d21b9=_0x3a2165;super(_0xbbb60a,_0x430a26,_0x593715,_0x47f283,_0x5b6f76,_0x4f11e7,_0x29db6b,_0x24ce67,_0x3dadde),d(this,_0x4d21b9(0x492),_0x4d21b9(0x42b)),(this['_isPermissionRej']=_0x3db5fd,this[_0x4d21b9(0x1cb)]=_0x38e5ad,this[_0x4d21b9(0x1d6)]=_0xad56fe,this['_notificationService']=_0x3d6fc6,this[_0x4d21b9(0xf2)](),this[_0x4d21b9(0x290)](),this[_0x4d21b9(0x34d)]());}[_0x3a2165(0x32c)](){return this;}[_0x3a2165(0x336)](){return this;}['onRemoteAck'](){return this;}[_0x3a2165(0x3f7)](){return this;}[_0x3a2165(0x237)](){return this;}[_0x3a2165(0x1e0)](){return this;}[_0x3a2165(0x462)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3a2165(0x290)](){const _0x441a71=_0x3a2165;this['_localCacheService'][_0x441a71(0x200)](this[_0x441a71(0x438)],this[_0x441a71(0x3a4)],null,[]);}['_showConflictNotification'](){const _0x5d6a30=_0x3a2165;this['_isPermissionRej']?this[_0x5d6a30(0xb4)][_0x5d6a30(0x113)]({'title':this[_0x5d6a30(0x1d6)]['t']('permission.title'),'content':this[_0x5d6a30(0x1d6)]['t']('permission.content'),'type':'error','duration':0x0}):this[_0x5d6a30(0xb4)][_0x5d6a30(0x113)]({'title':this['_localeService']['t']('conflict.title'),'content':this[_0x5d6a30(0x1d6)]['t']('conflict.content'),'type':_0x5d6a30(0x442),'duration':0x0});}['_disableEditing'](){const _0xf38f8b=_0x3a2165;this['_permissionService'][_0xf38f8b(0x33f)](new C[(_0xf38f8b(0x1c4))](this['unitID'])['id'],!0x1);}};F=z([g(0x6,a[_0x3a2165(0x426)](a[_0x3a2165(0x277)])),g(0x7,a[_0x3a2165(0x3e2)]),g(0x8,a[_0x3a2165(0x244)]),g(0x9,a['Inject'](exports[_0x3a2165(0x30d)])),g(0xa,a[_0x3a2165(0x426)](_[_0x3a2165(0xc9)])),g(0xb,a['Inject'](a[_0x3a2165(0x3ff)])),g(0xc,N[_0x3a2165(0x350)])],F);let G=class extends J{constructor(_0x3688f4,_0x5ded04,_0xf04523,_0x4aab9c,_0x5204a4,_0x2190d6,_0x42ac7b,_0xec3d6c,_0x642853,_0xb98d44){const _0x112170=_0x3a2165;super(_0x3688f4,_0x5ded04,_0xf04523,_0x4aab9c,_0x5204a4,_0x642853,_0xb98d44,_0x42ac7b,_0xec3d6c),d(this,_0x112170(0x492),_0x112170(0x229)),this[_0x112170(0x3be)]=_0x2190d6;}[_0x3a2165(0x32c)](_0x420c4f){const _0x43721c=_0x3a2165;return this[_0x43721c(0x22e)][_0x43721c(0x339)](_0x420c4f),this[_0x43721c(0x312)](),this;}[_0x3a2165(0x336)](_0x703485){const _0x33ac64=_0x3a2165;throw new Error(_0x33ac64(0x1be));}[_0x3a2165(0x2e1)](){const _0xd91fcd=_0x3a2165;throw new Error(_0xd91fcd(0x335));}[_0x3a2165(0x3f7)](){const _0x2896a6=_0x3a2165;throw new Error(_0x2896a6(0xdb));}['toggleOffline'](){return this;}[_0x3a2165(0x1e0)](){const _0x5e1109=_0x3a2165,{_injector:_0x8ea2b0,_pendingMutations:_0x38a78b,_awaitingChangeset:_0x84e37d,unitID:_0x5d6295,_handler:_0x3fe5ad,type:_0x11aad2}=this,_0x55c2f3=Rt(_0x8ea2b0,_0x5d6295,_0x11aad2,_0x84e37d,_0x38a78b,_0x3fe5ad);return _0x55c2f3 instanceof x?_0x55c2f3[_0x5e1109(0x42e)]():(_0x55c2f3 instanceof k||_0x55c2f3 instanceof W)&&_0x55c2f3[_0x5e1109(0x462)](),_0x55c2f3;}[_0x3a2165(0x462)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};G=z([g(0x5,a['Inject'](a[_0x3a2165(0x3b0)])),g(0x6,a['Inject'](_[_0x3a2165(0xc9)])),g(0x7,a[_0x3a2165(0x426)](exports[_0x3a2165(0x30d)])),g(0x8,a[_0x3a2165(0x3e2)]),g(0x9,a[_0x3a2165(0x244)])],G);let H=class extends J{constructor(_0x4f6708,_0xa3e38d,_0x4f2800,_0x374649,_0xad7022,_0x5b9ff1,_0x21aac5,_0x5723a7,_0x157e72,_0x45b2cb,_0x367c45,_0x10a241,_0x2240eb,_0x396124){const _0x5a446d=_0x3a2165;super(_0x4f6708,_0xa3e38d,_0x4f2800,_0x374649,_0x21aac5,_0x10a241,_0x2240eb,_0x157e72,_0x45b2cb),d(this,'status',_0x5a446d(0x33c)),(this[_0x5a446d(0x36a)]=_0xad7022,this[_0x5a446d(0x214)]=_0x5b9ff1,this[_0x5a446d(0x3be)]=_0x5723a7,this[_0x5a446d(0x42d)]=_0x367c45,this[_0x5a446d(0x316)]=_0x396124);}['onMissedChangesetFetched'](_0x1a15ed){const _0x5ab875=_0x3a2165;try{const _0x2fa622=[..._0x1a15ed,...this[_0x5ab875(0x214)]],_0xbbc837=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']][_0x5ab875(0xe8)](_0xc751ba=>!!_0xc751ba);let _0x56ab27,_0x81e4b1;if(_0xbbc837[_0x5ab875(0x3a5)]){const _0x477c8e=this['_transformService'][_0x5ab875(0x41e)](_0x2fa622,_0xbbc837,!0x1);if(!_[_0x5ab875(0x197)](_0x477c8e))throw _0x477c8e[_0x5ab875(0x442)];_0x56ab27=_0x477c8e[_0x5ab875(0x353)],_0x81e4b1=_0x477c8e[_0x5ab875(0x44b)];}else _0x56ab27=_0x2fa622,_0x81e4b1=[];let _0x31ce7b=this[_0x5ab875(0x22e)];_0x56ab27['forEach'](_0x520621=>{const _0x17303f=_0x5ab875;let _0x3793d4;if(_0x31ce7b[_0x17303f(0x3a5)]){const _0xba1dec=this[_0x17303f(0x316)][_0x17303f(0xf5)](_0x520621,_0x31ce7b);if(!_[_0x17303f(0x16b)](_0xba1dec))throw _0xba1dec['error'];_0x3793d4=_0xba1dec[_0x17303f(0x353)],_0x31ce7b=_0xba1dec['m2Prime'];}else _0x3793d4=_0x520621;this[_0x17303f(0x3ac)](_0x3793d4);}),this[_0x5ab875(0x36a)]&&this[_0x5ab875(0x1db)](),this['_awaitingChangeset']&&_0x81e4b1[_0x5ab875(0x3a5)]&&(_0x81e4b1[0x0][_0x5ab875(0x142)]=this[_0x5ab875(0x1b9)]());let _0x5c9dea;if(this[_0x5ab875(0xbc)]&&_0x31ce7b[_0x5ab875(0x3a5)]!==0x0)_0x5c9dea=this[_0x5ab875(0x3be)][_0x5ab875(0xbe)](k,this[_0x5ab875(0x438)],this['type'],_0x81e4b1[0x0],_0x31ce7b,this[_0x5ab875(0x1ad)]);else{if(this[_0x5ab875(0xbc)]&&_0x31ce7b[_0x5ab875(0x3a5)]===0x0)_0x81e4b1[0x0][_0x5ab875(0x142)]=this['_getCurrentRevision'](),_0x5c9dea=this[_0x5ab875(0x3be)][_0x5ab875(0xbe)](W,this[_0x5ab875(0x438)],this[_0x5ab875(0x3a4)],_0x81e4b1[0x0],this['_handler']);else{if(_0x31ce7b['length']!==0x0){const _0x3030ba=this[_0x5ab875(0x3be)][_0x5ab875(0xbe)](x,this[_0x5ab875(0x438)],this['type'],_0x31ce7b,this['_handler']);_0x3030ba[_0x5ab875(0x42e)](),_0x5c9dea=_0x3030ba;}else _0x5c9dea=this['_injector'][_0x5ab875(0xbe)](se,this[_0x5ab875(0x438)],this[_0x5ab875(0x3a4)],this[_0x5ab875(0x1ad)]);}}return _0x5c9dea[_0x5ab875(0x312)](),_0x5c9dea;}catch(_0x89339d){return this[_0x5ab875(0x42d)][_0x5ab875(0x442)](_0x5ab875(0x35a),_0x5ab875(0x310),_0x89339d),this[_0x5ab875(0x3be)][_0x5ab875(0xbe)](F,this[_0x5ab875(0x438)],this[_0x5ab875(0x3a4)],this[_0x5ab875(0xbc)],this['_pendingMutations'],this[_0x5ab875(0x1ad)],!0x1);}}[_0x3a2165(0x462)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3a2165(0x32c)](_0x706c61){const _0x2bbd32=_0x3a2165;return this[_0x2bbd32(0x22e)]['push'](_0x706c61),this;}[_0x3a2165(0x336)](_0x30ef26){const _0x2e12fc=_0x3a2165;return this[_0x2e12fc(0x214)]['push'](_0x30ef26),this;}[_0x3a2165(0x2e1)](_0x7d6970){const _0x524282=_0x3a2165;if(this[_0x524282(0xbc)])return this['_acknowledgedAwaitingChangeset']=this[_0x524282(0xbc)],this[_0x524282(0xbc)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x3a2165(0x3f7)](_0x413127){const _0x18ff9c=_0x3a2165;return this[_0x18ff9c(0x99)](!!(_0x413127!=null&&_0x413127[_0x18ff9c(0x146)]));}['toggleOffline'](){const _0x4ff528=_0x3a2165;return this['_injector']['createInstance'](G,this['unitID'],this[_0x4ff528(0x3a4)],this[_0x4ff528(0xbc)],this['_pendingMutations'],this[_0x4ff528(0x1ad)]);}[_0x3a2165(0x1e0)](){return this;}[_0x3a2165(0x99)](_0x18f0af){const _0x45d991=_0x3a2165;return this[_0x45d991(0x3be)][_0x45d991(0xbe)](F,this[_0x45d991(0x438)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x45d991(0x1ad)],_0x18f0af);}};H=z([g(0x7,a[_0x3a2165(0x426)](a['Injector'])),g(0x8,a[_0x3a2165(0x426)](_['RevisionService'])),g(0x9,a['Inject'](exports[_0x3a2165(0x30d)])),g(0xa,a[_0x3a2165(0x490)]),g(0xb,a[_0x3a2165(0x3e2)]),g(0xc,a[_0x3a2165(0x244)]),g(0xd,_[_0x3a2165(0xc6)])],H);function Rt(_0x24e969,_0x3c5414,_0x3a02eb,_0x597601,_0x12c513,_0x37cc63){const _0xe2a7dd=_0x3a2165;return _0x597601&&_0x12c513[_0xe2a7dd(0x3a5)]?_0x24e969[_0xe2a7dd(0xbe)](k,_0x3c5414,_0x3a02eb,_0x597601,_0x12c513,_0x37cc63):_0x597601?_0x24e969[_0xe2a7dd(0xbe)](W,_0x3c5414,_0x3a02eb,_0x597601,_0x37cc63):_0x12c513['length']?_0x24e969[_0xe2a7dd(0xbe)](x,_0x3c5414,_0x3a02eb,_0x12c513,_0x37cc63):_0x24e969[_0xe2a7dd(0xbe)](se,_0x3c5414,_0x3a02eb,_0x37cc63);}var Hs=Object[_0x3a2165(0x1e2)],xs=Object[_0x3a2165(0x383)],Ke=(_0x147839,_0x45eaa3,_0x6321ae,_0x580204)=>{const _0x30950d=_0x3a2165;for(var _0x136f48=_0x580204>0x1?void 0x0:_0x580204?xs(_0x45eaa3,_0x6321ae):_0x45eaa3,_0x2e5646=_0x147839[_0x30950d(0x3a5)]-0x1,_0x4aaf05;_0x2e5646>=0x0;_0x2e5646--)(_0x4aaf05=_0x147839[_0x2e5646])&&(_0x136f48=(_0x580204?_0x4aaf05(_0x45eaa3,_0x6321ae,_0x136f48):_0x4aaf05(_0x136f48))||_0x136f48);return _0x580204&&_0x136f48&&Hs(_0x45eaa3,_0x6321ae,_0x136f48),_0x136f48;},I=(_0xd046a,_0x1a0110)=>(_0x4809e1,_0x28cd18)=>_0x1a0110(_0x4809e1,_0x28cd18,_0xd046a);exports[_0x3a2165(0x117)]=class extends a[_0x3a2165(0x441)]{constructor(_0x1a3143,_0x7442a9,_0x3a1a09,_0x224c49,_0x4e111b,_0x1190c2,_0x1bf0d0,_0x13a5ac,_0x1bece6,_0x51b462,_0x367faa,_0x5a3cbc,_0x624d63){const _0x40e016=_0x3a2165;super(),d(this,_0x40e016(0x1f3),new v[(_0x40e016(0x2f5))](null)),d(this,_0x40e016(0x32a),this['_state$']['asObservable']()),d(this,_0x40e016(0x4ab)),d(this,_0x40e016(0x10e),!0x1),d(this,_0x40e016(0x3fb),this[_0x40e016(0x32a)][_0x40e016(0x447)](v[_0x40e016(0x331)](_0x2a22c1=>_0x2a22c1?_0x2a22c1[_0x40e016(0x492)]:y[_0x40e016(0x299)]),v[_0x40e016(0x282)](0x1))),d(this,_0x40e016(0x1c9),!0x1),d(this,'_remoteChangesetQueue',[]),(this[_0x40e016(0x438)]=_0x1a3143,this[_0x40e016(0x1c3)]=_0x7442a9,this[_0x40e016(0x346)]=_0x3a1a09,this[_0x40e016(0x3be)]=_0x224c49,this[_0x40e016(0x1e8)]=_0x4e111b,this[_0x40e016(0x49c)]=_0x1190c2,this['_localeService']=_0x1bf0d0,this[_0x40e016(0x2d0)]=_0x13a5ac,this[_0x40e016(0x42d)]=_0x1bece6,this[_0x40e016(0x3de)]=_0x51b462,this[_0x40e016(0x2bb)]=_0x367faa,this[_0x40e016(0x1cb)]=_0x5a3cbc,this['_singleActiveUnitService']=_0x624d63);}get[_0x3a2165(0xaa)](){const _0x327362=_0x3a2165;return this[_0x327362(0x4ab)];}async[_0x3a2165(0x4a9)](){const _0x250661=_0x3a2165;if(this[_0x250661(0xaa)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x250661(0x1d9)]();}[_0x3a2165(0x33e)](){const _0xd1da76=_0x3a2165;return this[_0xd1da76(0x10e)]=!0x0,a['toDisposable'](()=>{const _0x361e15=_0xd1da76;this[_0x361e15(0x10e)]=!0x1,this[_0x361e15(0x3d9)]();});}[_0x3a2165(0xee)](_0x4b6543){const _0x4f94c3=_0x3a2165;this[_0x4f94c3(0x4ab)]=_0x4b6543,this[_0x4f94c3(0x1f3)][_0x4f94c3(0x2c6)](_0x4b6543);}async[_0x3a2165(0x1d9)](){const _0x3eda2d=_0x3a2165;var _0x3c147b;this[_0x3eda2d(0xee)](await this[_0x3eda2d(0x13b)]()),this['_singleActiveUnitService']&&((_0x3c147b=this[_0x3eda2d(0xb6)])==null||_0x3c147b[_0x3eda2d(0x3ef)](this[_0x3eda2d(0x438)]),this[_0x3eda2d(0x167)](this[_0x3eda2d(0xb6)][_0x3eda2d(0x245)](this[_0x3eda2d(0x438)])[_0x3eda2d(0x1ee)](_0x31eb2b=>{const _0x3ac422=_0x3eda2d;this[_0x3ac422(0x42d)]['debug'](_0x3ac422(0xbb),'editing\x20status\x20changed\x20to',_0x31eb2b),_0x31eb2b===bt[_0x3ac422(0xa4)]?(this[_0x3ac422(0x2bb)][_0x3ac422(0x113)]({'content':this[_0x3ac422(0x1d6)]['t'](_0x3ac422(0x4b9)),'type':X[_0x3ac422(0x388)]['Warning']}),this['_permissionService'][_0x3ac422(0x33f)](new C[(_0x3ac422(0x1c4))](this[_0x3ac422(0x438)])['id'],!0x1)):this[_0x3ac422(0x1cb)]['updatePermissionPoint'](new C['WorkbookEditablePermission'](this[_0x3ac422(0x438)])['id'],!0x0);})));let _0xc33a61=!0x1;return this[_0x3eda2d(0x167)](this['session'][_0x3eda2d(0x1df)][_0x3eda2d(0x1ee)](_0x4b733f=>{const _0x8777e3=_0x3eda2d;_0x4b733f===$['ONLINE']?this['_toggleOnline'](_0xc33a61):_0x4b733f===$[_0x8777e3(0x299)]&&(_0xc33a61=!0x0,this[_0x8777e3(0x46b)]());})),this[_0x3eda2d(0x167)](this['session'][_0x3eda2d(0x354)][_0x3eda2d(0x1ee)](_0x43cc91=>{const _0x4f6145=_0x3eda2d;try{switch(_0x43cc91[_0x4f6145(0x217)]){case _[_0x4f6145(0x39b)][_0x4f6145(0x3bd)]:{this['_onRemoteChangeset'](_['parseProtocolChangeset'](_0x43cc91[_0x4f6145(0x124)]));break;}case _[_0x4f6145(0x39b)][_0x4f6145(0x476)]:{this[_0x4f6145(0x270)](_0x43cc91[_0x4f6145(0x124)]);break;}case _['CollaborationEvent'][_0x4f6145(0x179)]:{this[_0x4f6145(0xb0)]();break;}case _['CollaborationEvent'][_0x4f6145(0x17a)]:{this[_0x4f6145(0x32d)](_0x43cc91[_0x4f6145(0x124)]['changesets'][_0x4f6145(0x331)](_0x3f9d2a=>_['parseProtocolChangeset'](_0x3f9d2a)));break;}case _['CollaborationEvent']['PERMISSION_REJ']:this[_0x4f6145(0xb0)]({'isPermissionRej':!0x0});}}catch(_0x127739){throw console[_0x4f6145(0x442)](_0x4f6145(0x36c),_0x127739),_0x127739;}})),this[_0x3eda2d(0x4ab)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x3a2165(0x120)](){const _0x38ba4f=_0x3a2165;if(this['_transitionLocked'])throw new Error(_0x38ba4f(0x454));this[_0x38ba4f(0x1c9)]=!0x0;}[_0x3a2165(0x27f)](_0x41cac5){const _0x8d5200=_0x3a2165;this[_0x8d5200(0x120)](),this[_0x8d5200(0xee)](this[_0x8d5200(0x4ab)][_0x8d5200(0x32c)](_0x41cac5)),this[_0x8d5200(0x2f7)]();}[_0x3a2165(0x185)](_0x2af7a5){const _0x53797b=_0x3a2165;if(!(_0x2af7a5[_0x53797b(0x251)]<=this[_0x53797b(0x2d0)]['getCurrentRevOfUnit'](this[_0x53797b(0x438)]))){if(this['_collaborationPaused']){this[_0x53797b(0x2e3)]['push'](_0x2af7a5);return;}this[_0x53797b(0x1aa)](_0x2af7a5);}}[_0x3a2165(0x3d9)](){const _0x4037b8=_0x3a2165;this[_0x4037b8(0x2e3)][_0x4037b8(0x337)](_0x14feab=>this[_0x4037b8(0x1aa)](_0x14feab)),this[_0x4037b8(0x2e3)]=[];}[_0x3a2165(0x1aa)](_0x547ca3){const _0x5dae45=_0x3a2165,_0x3ce0e6=this[_0x5dae45(0x49c)][_0x5dae45(0x12f)][_0x5dae45(0x283)](this[_0x5dae45(0x49c)][_0x5dae45(0x12f)][_0x5dae45(0x23c)]()['COMPRESS_MUTATION_APPLY'])(_0x547ca3[_0x5dae45(0x31e)],null)||_0x547ca3[_0x5dae45(0x31e)],_0xe8cc5c={..._0x547ca3,'mutations':_0x3ce0e6};this[_0x5dae45(0x120)](),this[_0x5dae45(0xee)](this[_0x5dae45(0x4ab)][_0x5dae45(0x336)](_0xe8cc5c)),this[_0x5dae45(0x2f7)]();}[_0x3a2165(0x270)](_0x316337){const _0x2cf2e5=_0x3a2165;this['_lockTransition'](),this[_0x2cf2e5(0xee)](this[_0x2cf2e5(0x4ab)][_0x2cf2e5(0x2e1)](_0x316337)),this[_0x2cf2e5(0x2f7)]();}[_0x3a2165(0xb0)](_0x3a5410){const _0x5f4634=_0x3a2165;this[_0x5f4634(0x120)](),this['_updateState'](this[_0x5f4634(0x4ab)][_0x5f4634(0x3f7)](_0x3a5410)),this[_0x5f4634(0x2f7)]();}['_onFetchMissResult'](_0x54d90a){const _0x16a105=_0x3a2165;if(!(this[_0x16a105(0x4ab)]instanceof H))throw new TypeError(_0x16a105(0x3fc));const _0x1791ef=_0x54d90a['map'](_0x413487=>{const _0xfd0928=_0x16a105,_0x27541a=this[_0xfd0928(0x49c)][_0xfd0928(0x12f)][_0xfd0928(0x283)](this[_0xfd0928(0x49c)][_0xfd0928(0x12f)]['getInterceptPoints']()[_0xfd0928(0x458)])(_0x413487[_0xfd0928(0x31e)],null)||_0x413487[_0xfd0928(0x31e)];return{..._0x413487,'mutations':_0x27541a};});this[_0x16a105(0x120)](),this[_0x16a105(0xee)](this['_state'][_0x16a105(0x1f6)](_0x1791ef)),this[_0x16a105(0x2f7)]();}[_0x3a2165(0x46b)](){const _0x5beaba=_0x3a2165;this[_0x5beaba(0x120)](),this['_updateState'](this['_state']['toggleOffline']()),this[_0x5beaba(0x2f7)]();}[_0x3a2165(0x154)](_0x2ce9a7=!0x1){const _0x5cb1b5=_0x3a2165;this[_0x5cb1b5(0x120)](),this['_updateState'](this['_state'][_0x5cb1b5(0x1e0)]()),this['_unlockTransition']();const _0x46dd0a=this[_0x5cb1b5(0x4ab)];_0x2ce9a7&&_0x46dd0a instanceof se&&(this['_lockTransition'](),this['_updateState'](_0x46dd0a['fetchMiss']()),this[_0x5cb1b5(0x2f7)]());}async[_0x3a2165(0x13b)](){return new Promise(_0x530a81=>{const _0x2d2e76=_0x4ca1;this['session']['sessionStatus$'][_0x2d2e76(0x447)](v['take'](0x1))['subscribe'](async _0x147d02=>{const _0x7bc555=_0x2d2e76;_0x530a81(await this[_0x7bc555(0x395)](_0x147d02===$[_0x7bc555(0x1ae)]));});});}[_0x3a2165(0x3d0)](){const _0x39eb55=_0x3a2165,_0x96fad0=this[_0x39eb55(0x438)];return{'onStateChange':(_0x208f7f,_0x5c8d50)=>{const _0x48d11d=_0x39eb55;if(_0x208f7f!==this[_0x48d11d(0x4ab)])throw new Error(_0x48d11d(0x37e)+_0x208f7f[_0x48d11d(0x492)]+_0x48d11d(0x190)+_0x5c8d50[_0x48d11d(0x492)]+_0x48d11d(0x3ad)+this[_0x48d11d(0x4ab)][_0x48d11d(0x492)]);this['_updateState'](_0x5c8d50);},'onSendChangeset':_0x46379c=>{const _0xc36608=_0x39eb55,_0x41b0d1={'eventID':_[_0xc36608(0x39b)][_0xc36608(0xc1)],'data':{'unitID':_0x46379c[_0xc36608(0x438)],'unitType':this['_type'],'changeset':_0x46379c,'memberID':this[_0xc36608(0x1c3)][_0xc36608(0x446)]()}};this['session']['send'](_0x41b0d1,this[_0xc36608(0x438)]);},'onMissingChangesets':({from:_0x3c68ff,to:_0xe2fe08})=>{const _0x17d0de=_0x39eb55;this[_0x17d0de(0x42d)][_0x17d0de(0x3aa)](_0x17d0de(0xbb),'fetching\x20missing\x20changesets\x20from\x20'+_0x3c68ff+_0x17d0de(0x118)+_0xe2fe08);const _0x3415aa={'eventID':_[_0x17d0de(0x39b)][_0x17d0de(0x484)],'data':{'unitID':_0x96fad0,'unitType':this['_type'],'from':_0x3c68ff,'to':_0xe2fe08}};this[_0x17d0de(0x1c3)][_0x17d0de(0x27d)](_0x3415aa,this[_0x17d0de(0x438)]);}};}async['_createInitialStateImpl'](_0x35340b){const _0x45d5d7=_0x3a2165;var _0x402c44,_0x23d1d6;const _0x194508=await this[_0x45d5d7(0x1e8)][_0x45d5d7(0x152)](this[_0x45d5d7(0x438)]),_0x1fba1b=(_0x402c44=_0x194508==null?void 0x0:_0x194508['mutations'])!=null?_0x402c44:[],_0x443fb8=(_0x23d1d6=_0x194508==null?void 0x0:_0x194508[_0x45d5d7(0x3e7)])!=null?_0x23d1d6:null,_0x4907f4=this[_0x45d5d7(0x438)];try{this[_0x45d5d7(0x44f)](_0x443fb8,_0x1fba1b);}catch(_0x4b3886){this[_0x45d5d7(0x42d)][_0x45d5d7(0x442)](_0x4b3886);}const _0x159541=this[_0x45d5d7(0x3d0)]();if(_0x35340b){const _0x1bf2b5=Rt(this[_0x45d5d7(0x3be)],_0x4907f4,this[_0x45d5d7(0x346)],_0x443fb8,_0x1fba1b,_0x159541);return _0x1bf2b5 instanceof x?_0x1bf2b5[_0x45d5d7(0x42e)]():(_0x1bf2b5 instanceof k||_0x1bf2b5 instanceof W)&&_0x1bf2b5[_0x45d5d7(0x462)](),_0x1bf2b5;}return this[_0x45d5d7(0x3be)][_0x45d5d7(0xbe)](G,_0x4907f4,this[_0x45d5d7(0x346)],_0x443fb8,_0x1fba1b,_0x159541);}[_0x3a2165(0x44f)](_0x446636,_0x357834){const _0x1b3eb6=_0x3a2165;var _0x5952af,_0x5e981b;const _0x57eace=this['_compressMutationService'][_0x1b3eb6(0x12f)][_0x1b3eb6(0x283)](this[_0x1b3eb6(0x49c)][_0x1b3eb6(0x12f)]['getInterceptPoints']()[_0x1b3eb6(0x458)]);(_0x5952af=_0x57eace((_0x446636==null?void 0x0:_0x446636[_0x1b3eb6(0x31e)])||[],null))==null||_0x5952af[_0x1b3eb6(0x337)](_0x2ae1c6=>this[_0x1b3eb6(0x3de)][_0x1b3eb6(0x1c2)](_0x2ae1c6['id'],_0x2ae1c6['params'])),(_0x5e981b=_0x57eace(_0x357834||[],null))==null||_0x5e981b[_0x1b3eb6(0x337)](_0x290caf=>this['_commandService'][_0x1b3eb6(0x1c2)](_0x290caf['id'],_0x290caf[_0x1b3eb6(0x101)]));}},exports['CollaborationEntity']=Ke([I(0x3,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),I(0x4,a[_0x3a2165(0x426)](exports[_0x3a2165(0x30d)])),I(0x5,a[_0x3a2165(0x426)](_[_0x3a2165(0x2c1)])),I(0x6,a[_0x3a2165(0x426)](a['LocaleService'])),I(0x7,a[_0x3a2165(0x426)](_[_0x3a2165(0xc9)])),I(0x8,a[_0x3a2165(0x490)]),I(0x9,a['ICommandService']),I(0xa,N[_0x3a2165(0x39e)]),I(0xb,a[_0x3a2165(0x277)]),I(0xc,a['Optional'](be))],exports[_0x3a2165(0x117)]),exports[_0x3a2165(0x4ba)]=class extends exports[_0x3a2165(0x117)]{constructor(_0xdbf58,_0x347e70,_0x4e684d,_0x5b2a2b,_0x5d432f,_0x1babaf,_0x379944,_0x48af54,_0x364bf1,_0x4746ca,_0x3562bc,_0x215074,_0x36349c,_0x313a24,_0x3c1908,_0x202f02,_0x241647){const _0x28ddd9=_0x3a2165;super(_0xdbf58,_0x4e684d,_0x347e70,_0x5b2a2b,_0x5d432f,_0x1babaf,_0x379944,_0x48af54,_0x36349c,_0x313a24,_0x3c1908,_0x202f02,_0x241647),this[_0x28ddd9(0x438)]=_0xdbf58,this['type']=_0x347e70,this[_0x28ddd9(0x16e)]=_0x364bf1,this['_docTransformIMECacheService']=_0x4746ca,this[_0x28ddd9(0x1e3)]=_0x3562bc,this[_0x28ddd9(0x374)]=_0x215074;}[_0x3a2165(0x3d0)](){const _0x55864f=_0x3a2165,_0x46a748=super['_createHandler']();return _0x46a748['onTransformIME']=_0x4d8825=>this['_docTransformIMECacheService'][_0x55864f(0x107)](_0x4d8825),_0x46a748[_0x55864f(0x345)]=_0x29dfb7=>this[_0x55864f(0x1e3)][_0x55864f(0x289)](_0x29dfb7),_0x46a748[_0x55864f(0x29a)]=_0x5e65b7=>this[_0x55864f(0x374)]['syncEditingCollabCursor'](_0x5e65b7),_0x46a748[_0x55864f(0x2dd)]=_0x4a3996=>this[_0x55864f(0x4ae)][_0x55864f(0x1f9)](_0x4a3996),_0x46a748;}async[_0x3a2165(0x1d9)](){const _0x1964d4=_0x3a2165,_0x342387=await super[_0x1964d4(0x1d9)]();return this[_0x1964d4(0x167)](this[_0x1964d4(0x3de)][_0x1964d4(0x44e)]((_0x8332b9,_0x4963bc)=>{const _0x1f8cd8=_0x1964d4;if(_0x8332b9['type']!==a[_0x1f8cd8(0x303)][_0x1f8cd8(0x178)]||_0x4963bc!=null&&_0x4963bc['fromCollab']||_0x4963bc!=null&&_0x4963bc[_0x1f8cd8(0x47c)])return;const _0x55f69e=_0x8332b9[_0x1f8cd8(0x101)];if((_0x55f69e==null?void 0x0:_0x55f69e[_0x1f8cd8(0xec)])!==this[_0x1f8cd8(0x438)])return;let _0x5ee744=_0x8332b9;if(_0x5ee744['id']===V['RichTextEditingMutation']['id']){const _0x342ce2=_0x5ee744[_0x1f8cd8(0x101)];_0x5ee744={'id':V[_0x1f8cd8(0x21d)]['id'],'type':a['CommandType'][_0x1f8cd8(0x178)],'params':{'unitId':_0x342ce2[_0x1f8cd8(0xec)],'actions':_0x342ce2[_0x1f8cd8(0x3a9)],'textRanges':null}};}const _0x3c34bf=this[_0x1f8cd8(0x49c)]['interceptor'][_0x1f8cd8(0x283)](this['_compressMutationService'][_0x1f8cd8(0x12f)][_0x1f8cd8(0x23c)]()['COMPRESS_MUTATION_SEND'])([_0x5ee744],null)||[_0x5ee744];this[_0x1f8cd8(0x27f)](_0x3c34bf[0x0]);})),_0x342387;}},exports['DocCollaborationEntity']=Ke([I(0x3,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),I(0x4,a['Inject'](exports[_0x3a2165(0x30d)])),I(0x5,a['Inject'](_[_0x3a2165(0x2c1)])),I(0x6,a[_0x3a2165(0x426)](a[_0x3a2165(0x3ff)])),I(0x7,a[_0x3a2165(0x426)](_[_0x3a2165(0xc9)])),I(0x8,a[_0x3a2165(0x426)](w['DocStateChangeManagerService'])),I(0x9,a['Inject'](fe)),I(0xa,a[_0x3a2165(0x426)](me)),I(0xb,a[_0x3a2165(0x426)](Ye)),I(0xc,a[_0x3a2165(0x490)]),I(0xd,a[_0x3a2165(0x3e2)]),I(0xe,N['IMessageService']),I(0xf,a[_0x3a2165(0x277)]),I(0x10,a['Optional'](be))],exports['DocCollaborationEntity']),exports[_0x3a2165(0x437)]=class extends exports[_0x3a2165(0x117)]{constructor(_0xb4bcf4,_0x2444c9,_0x451195,_0x15d589,_0x4aa3e5,_0x1595c8,_0x1cb76a,_0x1fd431,_0x3fdd7e,_0x5d56cd,_0xc3d262,_0x2961b3,_0x42c59e,_0x475d83){const _0x3ecf86=_0x3a2165;super(_0xb4bcf4,_0x451195,_0x2444c9,_0x15d589,_0x4aa3e5,_0x1595c8,_0x1cb76a,_0x1fd431,_0x5d56cd,_0xc3d262,_0x2961b3,_0x42c59e,_0x475d83),this[_0x3ecf86(0x438)]=_0xb4bcf4,this[_0x3ecf86(0x3a4)]=_0x2444c9,this[_0x3ecf86(0x2be)]=_0x3fdd7e;}[_0x3a2165(0x3d0)](){const _0x2a5f78=_0x3a2165,_0x3a105d=super['_createHandler']();return _0x3a105d['onTransformSelections']=_0x282af2=>this[_0x2a5f78(0x2be)][_0x2a5f78(0x289)](_0x282af2),_0x3a105d;}async[_0x3a2165(0x1d9)](){const _0x5298aa=_0x3a2165,_0x495feb=await super[_0x5298aa(0x1d9)]();return this[_0x5298aa(0x167)](this['_commandService'][_0x5298aa(0x44e)]((_0x1615ea,_0x196edd)=>{const _0x453e8b=_0x5298aa;if(_0x1615ea[_0x453e8b(0x3a4)]!==a[_0x453e8b(0x303)][_0x453e8b(0x178)]||_0x196edd!=null&&_0x196edd[_0x453e8b(0x3ee)]||_0x196edd!=null&&_0x196edd['onlyLocal'])return;const _0x2eb5d3=_0x1615ea[_0x453e8b(0x101)];if((_0x2eb5d3==null?void 0x0:_0x2eb5d3[_0x453e8b(0xec)])!==this['unitID'])return;const _0x3f8438=_0x1615ea,_0x142c17=this['_compressMutationService'][_0x453e8b(0x12f)]['fetchThroughInterceptors'](this[_0x453e8b(0x49c)][_0x453e8b(0x12f)][_0x453e8b(0x23c)]()[_0x453e8b(0x48e)])([_0x3f8438],null)||[_0x3f8438];this[_0x453e8b(0x27f)](_0x142c17[0x0]);})),_0x495feb;}},exports[_0x3a2165(0x437)]=Ke([I(0x3,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),I(0x4,a[_0x3a2165(0x426)](exports['LocalCacheService'])),I(0x5,a[_0x3a2165(0x426)](_[_0x3a2165(0x2c1)])),I(0x6,a[_0x3a2165(0x426)](a[_0x3a2165(0x3ff)])),I(0x7,a['Inject'](_[_0x3a2165(0xc9)])),I(0x8,a[_0x3a2165(0x426)](ge)),I(0x9,a[_0x3a2165(0x490)]),I(0xa,a['ICommandService']),I(0xb,N[_0x3a2165(0x39e)]),I(0xc,a[_0x3a2165(0x277)]),I(0xd,a['Optional'](be))],exports[_0x3a2165(0x437)]);var ks=Object[_0x3a2165(0x1e2)],Bs=Object['getOwnPropertyDescriptor'],Vs=(_0xa96759,_0x7f1e7d,_0x4f6ac2,_0x520438)=>{const _0x3808c0=_0x3a2165;for(var _0x2911f6=_0x520438>0x1?void 0x0:_0x520438?Bs(_0x7f1e7d,_0x4f6ac2):_0x7f1e7d,_0x3315b6=_0xa96759[_0x3808c0(0x3a5)]-0x1,_0x1a94bf;_0x3315b6>=0x0;_0x3315b6--)(_0x1a94bf=_0xa96759[_0x3315b6])&&(_0x2911f6=(_0x520438?_0x1a94bf(_0x7f1e7d,_0x4f6ac2,_0x2911f6):_0x1a94bf(_0x2911f6))||_0x2911f6);return _0x520438&&_0x2911f6&&ks(_0x7f1e7d,_0x4f6ac2,_0x2911f6),_0x2911f6;},Ue=(_0x39a247,_0x9b9bbc)=>(_0x1c8b79,_0x49dcc1)=>_0x9b9bbc(_0x1c8b79,_0x49dcc1,_0x39a247);exports[_0x3a2165(0x31d)]=class extends a[_0x3a2165(0x441)]{constructor(_0x356130,_0x1b783b,_0x50ac4b){const _0x3bd43f=_0x3a2165;super(),d(this,_0x3bd43f(0x17e),new Map()),d(this,'_entityInit$',new v[(_0x3bd43f(0x28d))]()),(this[_0x3bd43f(0x3be)]=_0x356130,this[_0x3bd43f(0x1b1)]=_0x1b783b,this['_univerInstanceService']=_0x50ac4b,this['_init']());}[_0x3a2165(0x491)](){const _0x7fc04d=_0x3a2165;super['dispose'](),this['_entities'][_0x7fc04d(0x337)](_0x30458a=>_0x30458a[_0x7fc04d(0x491)]()),this[_0x7fc04d(0x17e)][_0x7fc04d(0x3cc)]();}[_0x3a2165(0xb9)](_0x3d8a4a){const _0x34dcc6=_0x3a2165;var _0x51a414;return(_0x51a414=this[_0x34dcc6(0x17e)][_0x34dcc6(0x305)](_0x3d8a4a))!=null?_0x51a414:null;}[_0x3a2165(0xfa)](_0x3ca0ad){const _0x519500=_0x3a2165,_0x5b04b4=this[_0x519500(0xb9)](_0x3ca0ad);return _0x5b04b4?v['of'](_0x5b04b4):this[_0x519500(0x422)]['pipe'](E[_0x519500(0xe8)](_0x3da9f6=>_0x3da9f6[_0x519500(0x438)]===_0x3ca0ad));}[_0x3a2165(0x1d9)](){const _0x23d022=_0x3a2165;this['_univerInstanceService'][_0x23d022(0x31c)](a[_0x23d022(0x461)]['UNIVER_SHEET'])[_0x23d022(0x447)](v[_0x23d022(0x27a)](this[_0x23d022(0x15a)]),E['delay'](0x10))[_0x23d022(0x1ee)](async _0x485a16=>{const _0x31af5d=_0x23d022,_0x1a5553=_0x485a16[_0x31af5d(0x3ae)](),_0x5c9bba=await this[_0x31af5d(0x2ab)](_0x1a5553,j[_0x31af5d(0x21f)]);this[_0x31af5d(0x17e)][_0x31af5d(0x194)](_0x1a5553,_0x5c9bba);}),this['_univerInstanceService'][_0x23d022(0x31c)](a[_0x23d022(0x461)][_0x23d022(0x34e)])['pipe'](v[_0x23d022(0x27a)](this[_0x23d022(0x15a)]),E[_0x23d022(0xc2)](0x10))[_0x23d022(0x447)](E['filter'](_0x27d3b7=>!_0x27d3b7[_0x23d022(0x3ae)]()['startsWith']('__')))[_0x23d022(0x1ee)](async _0x4ee5b1=>{const _0x104f36=_0x23d022,_0x18a1b8=_0x4ee5b1[_0x104f36(0x3ae)](),_0x1fbbb0=await this[_0x104f36(0x2ab)](_0x18a1b8,j[_0x104f36(0x34e)]);this[_0x104f36(0x17e)]['set'](_0x18a1b8,_0x1fbbb0);}),v[_0x23d022(0x2e2)](this['_univerInstanceService'][_0x23d022(0x30f)](a[_0x23d022(0x461)][_0x23d022(0x21f)]),this[_0x23d022(0x406)][_0x23d022(0x30f)](a[_0x23d022(0x461)][_0x23d022(0x34e)]))['pipe'](v['takeUntil'](this[_0x23d022(0x15a)]))[_0x23d022(0x1ee)](_0x17b4e7=>{const _0x4b6482=_0x23d022,_0x294ff8=_0x17b4e7[_0x4b6482(0x3ae)](),_0x5cdbc5=this[_0x4b6482(0x17e)][_0x4b6482(0x305)](_0x294ff8);_0x5cdbc5&&(_0x5cdbc5[_0x4b6482(0x491)](),this[_0x4b6482(0x17e)][_0x4b6482(0x140)](_0x294ff8));});}async['_startCollaboration'](_0x2d6515,_0x5c7d5e){const _0x13587d=_0x3a2165,_0x499ddc=await this[_0x13587d(0x1b1)][_0x13587d(0x41a)](_0x2d6515),_0x41d7b5=this[_0x13587d(0x3be)][_0x13587d(0xbe)](this['_getCtorByUniverType'](_0x5c7d5e),_0x2d6515,_0x5c7d5e,_0x499ddc);return await _0x41d7b5[_0x13587d(0x4a9)](),this[_0x13587d(0x422)]['next'](_0x41d7b5),_0x41d7b5;}['_getCtorByUniverType'](_0x530cdd){const _0x38ff55=_0x3a2165;switch(_0x530cdd){case j['UNIVER_DOC']:return exports[_0x38ff55(0x4ba)];case j['UNIVER_SHEET']:return exports[_0x38ff55(0x437)];default:throw new Error(_0x38ff55(0x1a9)+_0x530cdd);}}},exports[_0x3a2165(0x31d)]=Vs([Ue(0x0,a['Inject'](a[_0x3a2165(0x3b0)])),Ue(0x1,a[_0x3a2165(0x426)](exports[_0x3a2165(0x16c)])),Ue(0x2,a[_0x3a2165(0x137)])],exports[_0x3a2165(0x31d)]);const nt=[_0x3a2165(0x3d8),_0x3a2165(0x37c),_0x3a2165(0x3e9),_0x3a2165(0x1f2),_0x3a2165(0x173),'gold400'];class Xe extends a[_0x3a2165(0x287)]{constructor(){const _0x4d2735=_0x3a2165;super(...arguments),d(this,_0x4d2735(0x222),new Map()),d(this,_0x4d2735(0x36f),0x0);}['assignAColorForMemberID'](_0x16d31b){const _0x3fd159=_0x3a2165;if(this['_assignedColors'][_0x3fd159(0x4ac)](_0x16d31b))return this[_0x3fd159(0x222)][_0x3fd159(0x305)](_0x16d31b);const _0x43dce8=nt[this[_0x3fd159(0x36f)]];return this[_0x3fd159(0x36f)]=(this[_0x3fd159(0x36f)]+0x1)%nt[_0x3fd159(0x3a5)],this[_0x3fd159(0x222)][_0x3fd159(0x194)](_0x16d31b,_0x43dce8),_0x43dce8;}}var Ws=Object['defineProperty'],Fs=Object['getOwnPropertyDescriptor'],Gs=(_0x41e927,_0x1d7b39,_0x573ea6,_0x4d3b2e)=>{const _0x5258f6=_0x3a2165;for(var _0x1f624d=_0x4d3b2e>0x1?void 0x0:_0x4d3b2e?Fs(_0x1d7b39,_0x573ea6):_0x1d7b39,_0x3f72fb=_0x41e927[_0x5258f6(0x3a5)]-0x1,_0x46a22a;_0x3f72fb>=0x0;_0x3f72fb--)(_0x46a22a=_0x41e927[_0x3f72fb])&&(_0x1f624d=(_0x4d3b2e?_0x46a22a(_0x1d7b39,_0x573ea6,_0x1f624d):_0x46a22a(_0x1f624d))||_0x1f624d);return _0x4d3b2e&&_0x1f624d&&Ws(_0x1d7b39,_0x573ea6,_0x1f624d),_0x1f624d;},K=(_0x243917,_0x277454)=>(_0x20b568,_0x53a554)=>_0x277454(_0x20b568,_0x53a554,_0x243917);const Ys=0x12c,Ks=0x64;let $e=class extends a[_0x3a2165(0x441)]{constructor(_0x16b00f,_0x4b8bd9,_0x3bd535,_0xd4047f,_0x48fac0,_0x1228bc,_0x1cc259,_0x1f8ae3,_0x4f311f){const _0x35aa5f=_0x3a2165;super(),d(this,_0x35aa5f(0x234),!0x1),d(this,_0x35aa5f(0x1d9),!0x1),d(this,_0x35aa5f(0x12a),new v[(_0x35aa5f(0x2f5))](new Map())),d(this,_0x35aa5f(0x46a),this['_cursorInfo$']['asObservable']()),d(this,_0x35aa5f(0x248),new v['BehaviorSubject']([])),d(this,_0x35aa5f(0x455),this['_roomMembers$']['pipe'](v[_0x35aa5f(0x2f4)](Ys))),d(this,_0x35aa5f(0x2d2),a[_0x35aa5f(0xd0)](_0x58559d=>{const _0x55068e=_0x35aa5f,_0x5957ac={'eventID':_['CollaborationEvent'][_0x55068e(0x3f8)],'data':{'unitID':this[_0x55068e(0x438)],'memberID':this[_0x55068e(0x474)][_0x55068e(0x446)](),'selection':Tt(_0x58559d)}};this[_0x55068e(0x474)][_0x55068e(0x27d)](_0x5957ac,this[_0x55068e(0x438)]);},Ks)),(this[_0x35aa5f(0x438)]=_0x16b00f,this[_0x35aa5f(0x474)]=_0x4b8bd9,this['_injector']=_0x3bd535,this[_0x35aa5f(0x372)]=_0xd4047f,this[_0x35aa5f(0x2c3)]=_0x48fac0,this[_0x35aa5f(0x3a1)]=_0x1228bc,this[_0x35aa5f(0x316)]=_0x1cc259,this[_0x35aa5f(0x406)]=_0x1f8ae3,this[_0x35aa5f(0x3de)]=_0x4f311f);}get[_0x3a2165(0x378)](){const _0x473485=_0x3a2165;return this[_0x473485(0x12a)]['getValue']();}get[_0x3a2165(0x33b)](){const _0x392367=_0x3a2165;return this[_0x392367(0x248)][_0x392367(0x3bf)]();}[_0x3a2165(0x491)](){const _0x47d07e=_0x3a2165;super[_0x47d07e(0x491)](),this[_0x47d07e(0x12a)]['next'](new Map()),this['_cursorInfo$'][_0x47d07e(0x41c)](),this[_0x47d07e(0x248)][_0x47d07e(0x2c6)]([]),this[_0x47d07e(0x248)][_0x47d07e(0x41c)]();}[_0x3a2165(0x4a9)](){const _0x1da71f=_0x3a2165;this[_0x1da71f(0x1d9)]||(this[_0x1da71f(0x1d9)]=!0x0,this[_0x1da71f(0x474)][_0x1da71f(0x1df)][_0x1da71f(0x447)](v[_0x1da71f(0x27a)](this[_0x1da71f(0x15a)]))[_0x1da71f(0x1ee)](_0x11b66a=>{const _0x2f456=_0x1da71f;_0x11b66a===$[_0x2f456(0x1ae)]?this['_toggleOnline']():this[_0x2f456(0x46b)]();}),this[_0x1da71f(0x474)][_0x1da71f(0x354)][_0x1da71f(0x447)](v[_0x1da71f(0x27a)](this[_0x1da71f(0x15a)]))[_0x1da71f(0x1ee)](_0x355b10=>{const _0x3a565f=_0x1da71f,_0x279cb0=_0x355b10['eventID'];_0x279cb0===_[_0x3a565f(0x39b)][_0x3a565f(0x3f8)]&&this[_0x3a565f(0x4a7)](_0x355b10),_0x279cb0===_[_0x3a565f(0x39b)][_0x3a565f(0x327)]&&this[_0x3a565f(0x186)](_0x355b10);}),this[_0x1da71f(0x167)](this['_commandService'][_0x1da71f(0x44e)](_0x5a2628=>{const _0x4f9f04=_0x1da71f,_0x3568a4=_0x5a2628[_0x4f9f04(0x101)];_0x3568a4!=null&&this[_0x4f9f04(0x234)]&&_0x5a2628['id']===V[_0x4f9f04(0xdd)]['id']&&_0x3568a4['unitId']===this['unitID']&&_0x3568a4['isEditing']===!0x1&&this[_0x4f9f04(0x2d2)](_0x3568a4['ranges']);})),this[_0x1da71f(0x3a1)]['collabCursorState$'][_0x1da71f(0x447)](v['takeUntil'](this[_0x1da71f(0x15a)]))[_0x1da71f(0x1ee)](_0x25dbe6=>{const _0x3ff65c=_0x1da71f;if((_0x25dbe6==null?void 0x0:_0x25dbe6[_0x3ff65c(0x438)])!==this[_0x3ff65c(0x438)])return;const _0x4e1a8e={'eventID':_[_0x3ff65c(0x39b)][_0x3ff65c(0x3f8)],'data':_0x25dbe6};this['_onCursorUpdate'](_0x4e1a8e);}),this[_0x1da71f(0x167)](this['_commandService'][_0x1da71f(0x44e)](_0x5009b0=>{const _0x4c759e=_0x1da71f;if(_0x5009b0[_0x4c759e(0x101)]==null)return;const _0x352aa6=_0x5009b0[_0x4c759e(0x101)];if(_0x5009b0['id']!==V[_0x4c759e(0x21d)]['id']||_0x352aa6[_0x4c759e(0xec)]!==this[_0x4c759e(0x438)])return;const _0x8e5b5a={'id':'doc.mutation.rich-text-editing','params':_0x352aa6},_0x46aa70=this[_0x4c759e(0x378)];for(const [_0x5394b4,_0x199bbb]of _0x46aa70){const _0x481037={'id':_0x4c759e(0x132),'params':{'unitId':this[_0x4c759e(0x438)],'actions':null,'textRanges':_0x199bbb[_0x4c759e(0x352)]}},_0x535b74=this[_0x4c759e(0x316)]['transformMutation'](_0x8e5b5a,_0x481037,!0x1);if(_[_0x4c759e(0x45c)](_0x535b74))throw _0x535b74['error'];_0x46aa70[_0x4c759e(0x194)](_0x5394b4,{..._0x199bbb,'ranges':_0x535b74['m2Prime'][_0x4c759e(0x101)]['textRanges']});}queueMicrotask(()=>{const _0x1ea398=_0x4c759e;this[_0x1ea398(0x12a)][_0x1ea398(0x2c6)](_0x46aa70);});})));}['_onCursorUpdate'](_0x295164){const _0x259304=_0x3a2165;var _0x2f01b0,_0x48e7cb;const {memberID:_0x3ec1c4,selection:_0x4d3cd2}=_0x295164[_0x259304(0x124)],_0x1d125d=Us(_0x4d3cd2),_0x4c0628=(_0x48e7cb=(_0x2f01b0=this[_0x259304(0x2c3)][_0x259304(0x3c4)](this[_0x259304(0x438)],_0x3ec1c4))==null?void 0x0:_0x2f01b0[_0x259304(0x494)])!=null?_0x48e7cb:_0x259304(0x257),_0x50a749={'color':this[_0x259304(0x372)][_0x259304(0x1d2)](_0x3ec1c4),'name':_0x4c0628,'ranges':_0x1d125d},_0x227ea0=this[_0x259304(0x378)];_0x227ea0[_0x259304(0x194)](_0x3ec1c4,_0x50a749),this['_cursorInfo$'][_0x259304(0x2c6)](_0x227ea0);}[_0x3a2165(0x186)](_0x39e317){const _0x162502=_0x3a2165,{memberID:_0x281f56}=_0x39e317['data'],_0x206aeb=this['cursorInfo'];_0x206aeb[_0x162502(0x140)](_0x281f56),this[_0x162502(0x12a)][_0x162502(0x2c6)](_0x206aeb);}['_toggleOnline'](){const _0x195743=_0x3a2165;var _0x52244d;if(this[_0x195743(0x234)]=!0x0,((_0x52244d=this['_univerInstanceService'][_0x195743(0x1a0)]())==null?void 0x0:_0x52244d[_0x195743(0x3ae)]())!==this[_0x195743(0x438)])return;const _0xb5c640=this[_0x195743(0x3be)][_0x195743(0x305)](V['DocSelectionManagerService'])[_0x195743(0x3b2)]();Array['isArray'](_0xb5c640)&&_0xb5c640['length']>0x0&&this[_0x195743(0x2d2)](_0xb5c640);}['_toggleOffline'](){const _0x2043d2=_0x3a2165;this[_0x2043d2(0x234)]=!0x1;}};$e=Gs([K(0x2,a['Inject'](a[_0x3a2165(0x3b0)])),K(0x3,a[_0x3a2165(0x426)](Xe)),K(0x4,a[_0x3a2165(0x426)](q)),K(0x5,a[_0x3a2165(0x426)](Ye)),K(0x6,_['ITransformService']),K(0x7,a[_0x3a2165(0x137)]),K(0x8,a[_0x3a2165(0x3e2)])],$e);var Xs=Object[_0x3a2165(0x1e2)],qs=Object[_0x3a2165(0x383)],zs=(_0x503c81,_0x412a95,_0x297af0,_0x5d197e)=>{const _0x253aa4=_0x3a2165;for(var _0x20acd2=_0x5d197e>0x1?void 0x0:_0x5d197e?qs(_0x412a95,_0x297af0):_0x412a95,_0x4949e8=_0x503c81[_0x253aa4(0x3a5)]-0x1,_0x4f144f;_0x4949e8>=0x0;_0x4949e8--)(_0x4f144f=_0x503c81[_0x4949e8])&&(_0x20acd2=(_0x5d197e?_0x4f144f(_0x412a95,_0x297af0,_0x20acd2):_0x4f144f(_0x20acd2))||_0x20acd2);return _0x5d197e&&_0x20acd2&&Xs(_0x412a95,_0x297af0,_0x20acd2),_0x20acd2;},Q=(_0x2cbb3a,_0x30270f)=>(_0x247312,_0x390a75)=>_0x30270f(_0x247312,_0x390a75,_0x2cbb3a);const Js=0x12c,Zs=0x64,Qs=()=>{let _0x249c78=[],_0x56b842=!0x1;return _0x480446=>{const _0x2144f5=_0x4ca1;_0x249c78[_0x2144f5(0x339)](_0x480446),_0x56b842||(_0x56b842=!0x0,setTimeout(()=>{const _0x409b89=_0x2144f5;_0x249c78[_0x409b89(0x337)](_0x379212=>_0x379212()),_0x249c78=[],_0x56b842=!0x1;}));};};let He=class extends a[_0x3a2165(0x441)]{constructor(_0xbfb98e,_0x10db15,_0xcd1683,_0x1d252e,_0x2f1cfc,_0x5a6b58,_0x30069e,_0x240c46){const _0x503b4b=_0x3a2165;super(),d(this,'_online',!0x1),d(this,_0x503b4b(0x1d9),!0x1),d(this,_0x503b4b(0x12a),new v['BehaviorSubject'](new Map())),d(this,_0x503b4b(0x46a),this[_0x503b4b(0x12a)][_0x503b4b(0xfd)]()),d(this,'_roomMembers$',new v[(_0x503b4b(0x2f5))]([])),d(this,'roomMembers$',this[_0x503b4b(0x248)][_0x503b4b(0x447)](v['debounceTime'](Js))),d(this,'_updateLocalCursor',a['debounce']((_0x344f92,_0x9152ce)=>{const _0x5c9e38=_0x503b4b,_0x1f6bfc={'eventID':_[_0x5c9e38(0x39b)][_0x5c9e38(0x3f8)],'data':{'unitID':this['unitID'],'memberID':this[_0x5c9e38(0x474)][_0x5c9e38(0x446)](),'selection':Je[_0x5c9e38(0x38e)](_0x344f92,_0x9152ce[_0x5c9e38(0x166)])}};this['_session'][_0x5c9e38(0x27d)](_0x1f6bfc,this['unitID']);},Zs)),(this[_0x503b4b(0x438)]=_0xbfb98e,this['_session']=_0x10db15,this[_0x503b4b(0x3be)]=_0xcd1683,this[_0x503b4b(0x372)]=_0x1d252e,this['_memberService']=_0x2f1cfc,this[_0x503b4b(0x406)]=_0x5a6b58,this[_0x503b4b(0x3de)]=_0x30069e,this[_0x503b4b(0x2c7)]=_0x240c46);}get[_0x3a2165(0x378)](){const _0x58b304=_0x3a2165;return this['_cursorInfo$'][_0x58b304(0x3bf)]();}get[_0x3a2165(0x33b)](){const _0x586c38=_0x3a2165;return this[_0x586c38(0x248)][_0x586c38(0x3bf)]();}[_0x3a2165(0x491)](){const _0x5c1842=_0x3a2165;super[_0x5c1842(0x491)](),this['_cursorInfo$'][_0x5c1842(0x2c6)](new Map()),this[_0x5c1842(0x12a)][_0x5c1842(0x41c)](),this[_0x5c1842(0x248)]['next']([]),this[_0x5c1842(0x248)][_0x5c1842(0x41c)]();}['init'](){const _0x30ae08=_0x3a2165;this['_init']||(this[_0x30ae08(0x1d9)]=!0x0,this[_0x30ae08(0x474)]['sessionStatus$']['pipe'](v[_0x30ae08(0x27a)](this['dispose$']))['subscribe'](_0x39cdd1=>{const _0x1b56e3=_0x30ae08;_0x39cdd1===$[_0x1b56e3(0x1ae)]?this[_0x1b56e3(0x154)]():this['_toggleOffline']();}),this[_0x30ae08(0x474)][_0x30ae08(0x354)][_0x30ae08(0x447)](v[_0x30ae08(0x27a)](this[_0x30ae08(0x15a)]))[_0x30ae08(0x1ee)](_0x32edd3=>{const _0x37c1c8=_0x30ae08,_0x3e0e70=_0x32edd3[_0x37c1c8(0x217)];_0x3e0e70===_[_0x37c1c8(0x39b)][_0x37c1c8(0x3f8)]&&this[_0x37c1c8(0x4a7)](_0x32edd3),_0x3e0e70===_[_0x37c1c8(0x39b)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x32edd3);}),this[_0x30ae08(0x233)](),this['disposeWithMe'](this['_commandService'][_0x30ae08(0x44e)](_0x3f7d6e=>{const _0x182a91=_0x30ae08;if(this[_0x182a91(0x234)]&&_0x3f7d6e['id']===C[_0x182a91(0x3d6)]['id']&&_0x3f7d6e[_0x182a91(0x101)][_0x182a91(0xec)]===this['unitID']){const _0x53408c=_0x3f7d6e[_0x182a91(0x101)];this['_updateLocalCursor'](_0x53408c[_0x182a91(0x41b)],_0x53408c['selections'][0x0]);}})));}[_0x3a2165(0x4a7)](_0x1c7386){const _0x54c0b6=_0x3a2165;var _0x45331d,_0x5549a0;const {memberID:_0x33a0f8,selection:_0x33dafe}=_0x1c7386['data'],{sheetName:_0xe1a2e4,range:_0x5f1def}=Je[_0x54c0b6(0x1e1)](_0x33dafe),_0x324637={'name':(_0x5549a0=(_0x45331d=this['_memberService'][_0x54c0b6(0x3c4)](this['unitID'],_0x33a0f8))==null?void 0x0:_0x45331d[_0x54c0b6(0x494)])!=null?_0x5549a0:'Unknown\x20user','range':this['_getMergeRange'](_0xe1a2e4,_0x5f1def),'sheetID':_0xe1a2e4,'color':this[_0x54c0b6(0x372)]['assignAColorForMemberID'](_0x33a0f8),'selection':_0x33dafe},_0x5651b7=this['cursorInfo'];_0x5651b7[_0x54c0b6(0x194)](_0x33a0f8,_0x324637),this[_0x54c0b6(0x12a)][_0x54c0b6(0x2c6)](_0x5651b7);}[_0x3a2165(0x186)](_0x111830){const _0x36a2c1=_0x3a2165,{memberID:_0x3db4c6}=_0x111830[_0x36a2c1(0x124)],_0x2ee7cb=this[_0x36a2c1(0x378)];_0x2ee7cb[_0x36a2c1(0x140)](_0x3db4c6),this[_0x36a2c1(0x12a)]['next'](_0x2ee7cb);}[_0x3a2165(0x321)](_0x16927f,_0xaa13f7){const _0x251788=_0x3a2165;var _0x36fcd1,_0x3d1abb;const _0x20ffc7=(_0x3d1abb=(_0x36fcd1=this[_0x251788(0x406)][_0x251788(0x14d)](this['unitID']))==null?void 0x0:_0x36fcd1[_0x251788(0x311)](_0x16927f))==null?void 0x0:_0x3d1abb[_0x251788(0x2e4)]();return(_0x20ffc7==null?void 0x0:_0x20ffc7['find'](_0x9fa2ce=>a[_0x251788(0xed)][_0x251788(0x165)](_0x9fa2ce,_0xaa13f7)))||_0xaa13f7;}[_0x3a2165(0x233)](){const _0x2af431=_0x3a2165,_0x30f384=new a[(_0x2af431(0x2eb))](),_0x1888c7=Qs(),_0x1d7c01=()=>{const _0x31150e=_0x2af431;_0x30f384[_0x31150e(0x491)]();const _0x22e942=(_0x4e65b2,_0x1bb1c4,_0x3ec02f,_0x24bbbf)=>{const _0xd0c67=_0x31150e;let _0x3b35b8=[];switch(_0x4e65b2['id']){case C[_0xd0c67(0x369)][_0xd0c67(0x9a)]:{_0x3b35b8=C[_0xd0c67(0x414)](_0x4e65b2,_0x24bbbf);break;}case C[_0xd0c67(0x369)][_0xd0c67(0x44c)]:{_0x3b35b8=C[_0xd0c67(0x1b5)](_0x4e65b2,_0x24bbbf);break;}case C['EffectRefRangId'][_0xd0c67(0x467)]:{_0x3b35b8=C[_0xd0c67(0x3e6)](_0x4e65b2,_0x24bbbf);break;}case C[_0xd0c67(0x369)][_0xd0c67(0x4a4)]:{_0x3b35b8=C[_0xd0c67(0x281)](_0x4e65b2,_0x24bbbf);break;}case C['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x3b35b8=C[_0xd0c67(0x448)](_0x4e65b2,_0x24bbbf);break;}case C['EffectRefRangId']['InsertRowCommandId']:{_0x3b35b8=C['handleInsertRow'](_0x4e65b2,_0x24bbbf);break;}case C[_0xd0c67(0x369)][_0xd0c67(0x460)]:{_0x3b35b8=C[_0xd0c67(0x4bb)](_0x4e65b2,_0x24bbbf);break;}case C[_0xd0c67(0x369)][_0xd0c67(0x318)]:{_0x3b35b8=C[_0xd0c67(0x435)](_0x4e65b2,_0x24bbbf);break;}case C['EffectRefRangId'][_0xd0c67(0x3e3)]:{_0x3b35b8=C[_0xd0c67(0x411)](_0x4e65b2,_0x24bbbf);break;}}const _0x35fd2c=C[_0xd0c67(0x121)](_0x3b35b8,_0x24bbbf),_0xe6416f=this['cursorInfo'][_0xd0c67(0x305)](_0x1bb1c4);if(_0xe6416f&&_0x35fd2c){const _0x33ce6c={..._0xe6416f,'range':_0x35fd2c};this[_0xd0c67(0x378)][_0xd0c67(0x194)](_0x1bb1c4,_0x33ce6c),_0x1888c7(()=>{const _0x3198c4=_0xd0c67,_0x33b7be=this[_0x3198c4(0x2c7)][_0x3198c4(0x29b)](_0x35fd2c,_0x17f0f8=>(_0x33b7be[_0x3198c4(0x491)](),_0x22e942(_0x17f0f8,_0x1bb1c4,_0x3ec02f,_0x35fd2c)));_0x30f384[_0x3198c4(0x2e5)](_0x33b7be);});}return{'redos':[],'undos':[]};};this[_0x31150e(0x378)]['forEach']((_0x401d2b,_0x18b871)=>{const _0x593c9d=_0x31150e,{range:_0x1c2966,sheetID:_0x397239}=_0x401d2b,_0x3769b6=this['_refRangeService'][_0x593c9d(0x29b)](_0x1c2966,_0x251a8c=>(_0x3769b6[_0x593c9d(0x491)](),_0x22e942(_0x251a8c,_0x18b871,_0x397239,_0x1c2966)));_0x30f384[_0x593c9d(0x2e5)](_0x3769b6);});};this[_0x2af431(0x167)](a[_0x2af431(0x114)](this[_0x2af431(0x12a)][_0x2af431(0x1ee)](()=>{_0x1d7c01();})));}[_0x3a2165(0x154)](){const _0x267680=_0x3a2165;var _0x1e48f2,_0x110599;if(this['_online']=!0x0,((_0x1e48f2=this[_0x267680(0x406)]['getFocusedUnit']())==null?void 0x0:_0x1e48f2['getUnitId']())!==this['unitID'])return;const _0x272651=(_0x110599=this[_0x267680(0x3be)][_0x267680(0x305)](C['SheetsSelectionsService'])[_0x267680(0x1f0)]())==null?void 0x0:_0x110599[0x0],_0x19967d=this[_0x267680(0x406)]['getCurrentUnitForType'](a[_0x267680(0x461)][_0x267680(0x21f)])[_0x267680(0x23a)]();_0x272651&&_0x19967d&&this['_updateLocalCursor'](_0x19967d['getSheetId'](),_0x272651);}[_0x3a2165(0x46b)](){const _0x2bc23d=_0x3a2165;this[_0x2bc23d(0x234)]=!0x1;}};He=zs([Q(0x2,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),Q(0x3,a[_0x3a2165(0x426)](Xe)),Q(0x4,a['Inject'](q)),Q(0x5,a['IUniverInstanceService']),Q(0x6,a[_0x3a2165(0x3e2)]),Q(0x7,a[_0x3a2165(0x426)](C[_0x3a2165(0x48a)]))],He);var ei=Object[_0x3a2165(0x1e2)],ti=Object[_0x3a2165(0x383)],si=(_0x312342,_0x17c7c1,_0xa56cf2,_0x5e6aad)=>{const _0x6c76b1=_0x3a2165;for(var _0x14e405=_0x5e6aad>0x1?void 0x0:_0x5e6aad?ti(_0x17c7c1,_0xa56cf2):_0x17c7c1,_0x5bf8f6=_0x312342[_0x6c76b1(0x3a5)]-0x1,_0x280456;_0x5bf8f6>=0x0;_0x5bf8f6--)(_0x280456=_0x312342[_0x5bf8f6])&&(_0x14e405=(_0x5e6aad?_0x280456(_0x17c7c1,_0xa56cf2,_0x14e405):_0x280456(_0x14e405))||_0x14e405);return _0x5e6aad&&_0x14e405&&ei(_0x17c7c1,_0xa56cf2,_0x14e405),_0x14e405;},Pe=(_0x1e717c,_0x2bfba4)=>(_0x58ecc7,_0x2068be)=>_0x2bfba4(_0x58ecc7,_0x2068be,_0x1e717c);let ie=class extends a[_0x3a2165(0x441)]{constructor(_0x4bb235,_0x3e055e,_0x453e1c){const _0x76f9d2=_0x3a2165;super(),d(this,_0x76f9d2(0x17e),new Map()),d(this,_0x76f9d2(0x422),new v[(_0x76f9d2(0x28d))]()),(this[_0x76f9d2(0x406)]=_0x4bb235,this[_0x76f9d2(0x3be)]=_0x3e055e,this[_0x76f9d2(0x1b1)]=_0x453e1c,this[_0x76f9d2(0x1d9)]());}[_0x3a2165(0x491)](){const _0x17e6b3=_0x3a2165;super[_0x17e6b3(0x491)](),this[_0x17e6b3(0x422)][_0x17e6b3(0x41c)](),this[_0x17e6b3(0x17e)]['forEach'](_0x313f2d=>_0x313f2d[_0x17e6b3(0x491)]());}['getCollabCursors$'](_0x3e630a){const _0x396fbb=_0x3a2165;return this[_0x396fbb(0x17e)]['has'](_0x3e630a)?this[_0x396fbb(0x17e)][_0x396fbb(0x305)](_0x3e630a)[_0x396fbb(0x46a)]:this['_entityInit$'][_0x396fbb(0x447)](v[_0x396fbb(0xe8)](_0x26c2b1=>_0x26c2b1[_0x396fbb(0x438)]===_0x3e630a),v[_0x396fbb(0x3d5)](_0x43a052=>_0x43a052[_0x396fbb(0x46a)]));}[_0x3a2165(0x1d9)](){const _0x1ea2e2=_0x3a2165;this[_0x1ea2e2(0x406)]['getTypeOfUnitAdded$'](a[_0x1ea2e2(0x461)][_0x1ea2e2(0x21f)])[_0x1ea2e2(0x447)](v[_0x1ea2e2(0x27a)](this['dispose$']))['subscribe'](async _0x3e36bb=>{const _0x6cc463=_0x1ea2e2,_0x3326c7=_0x3e36bb[_0x6cc463(0x3ae)](),_0x468626=await this['_startSheetCollabCursor'](_0x3326c7);this[_0x6cc463(0x422)][_0x6cc463(0x2c6)](_0x468626),this[_0x6cc463(0x17e)]['set'](_0x3326c7,_0x468626);}),this[_0x1ea2e2(0x406)]['getTypeOfUnitAdded$'](a[_0x1ea2e2(0x461)][_0x1ea2e2(0x34e)])['pipe'](v[_0x1ea2e2(0x27a)](this[_0x1ea2e2(0x15a)]))[_0x1ea2e2(0x447)](v[_0x1ea2e2(0xe8)](_0x66a8c6=>!_0x66a8c6[_0x1ea2e2(0x3ae)]()[_0x1ea2e2(0x452)]('__')))[_0x1ea2e2(0x1ee)](async _0x1fa48e=>{const _0x3bd9ea=_0x1ea2e2,_0xaea9b8=_0x1fa48e['getUnitId'](),_0x513498=await this[_0x3bd9ea(0x1eb)](_0xaea9b8);this['_entityInit$'][_0x3bd9ea(0x2c6)](_0x513498),this[_0x3bd9ea(0x17e)][_0x3bd9ea(0x194)](_0xaea9b8,_0x513498);}),v[_0x1ea2e2(0x2e2)](this[_0x1ea2e2(0x406)]['getTypeOfUnitDisposed$'](a[_0x1ea2e2(0x461)]['UNIVER_DOC']),this[_0x1ea2e2(0x406)]['getTypeOfUnitDisposed$'](a[_0x1ea2e2(0x461)][_0x1ea2e2(0x21f)]))[_0x1ea2e2(0x447)](v[_0x1ea2e2(0x27a)](this[_0x1ea2e2(0x15a)]))[_0x1ea2e2(0x1ee)](_0x2a07a5=>{const _0x3e6b0e=_0x1ea2e2,_0x5195b2=_0x2a07a5['getUnitId'](),_0x15581b=this[_0x3e6b0e(0x17e)][_0x3e6b0e(0x305)](_0x5195b2);_0x15581b&&(_0x15581b['dispose'](),this[_0x3e6b0e(0x17e)][_0x3e6b0e(0x140)](_0x5195b2));});}async[_0x3a2165(0xef)](_0x179ee6){const _0x38cd11=_0x3a2165,_0x551ce5=await this['_collabSessionService'][_0x38cd11(0x41a)](_0x179ee6),_0x1502de=this['_injector'][_0x38cd11(0xbe)](He,_0x179ee6,_0x551ce5);return _0x1502de[_0x38cd11(0x4a9)](),_0x1502de;}async[_0x3a2165(0x1eb)](_0xf81f2c){const _0x3588c1=_0x3a2165,_0x549194=await this[_0x3588c1(0x1b1)][_0x3588c1(0x41a)](_0xf81f2c),_0x52205b=this[_0x3588c1(0x3be)]['createInstance']($e,_0xf81f2c,_0x549194);return _0x52205b[_0x3588c1(0x4a9)](),_0x52205b;}};ie=si([Pe(0x0,a[_0x3a2165(0x137)]),Pe(0x1,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),Pe(0x2,a[_0x3a2165(0x426)](exports['CollaborationSessionService']))],ie);const ue=0x14,rt=0xc8,we=0x4,ii=0x5;function ni(_0x329eba,_0x486f80){const _0x15bf6e=_0x3a2165;let {radius:_0x27eb16,width:_0xe76b0c,height:_0x1c02fa}=_0x486f80;_0x27eb16=_0x27eb16!=null?_0x27eb16:0x0,_0xe76b0c=_0xe76b0c!=null?_0xe76b0c:0x1e,_0x1c02fa=_0x1c02fa!=null?_0x1c02fa:0x1e;let _0xdeda83=0x0,_0x2f9d0f=0x0,_0x3d77d5=0x0;_0xdeda83=_0x2f9d0f=_0x3d77d5=Math[_0x15bf6e(0x269)](_0x27eb16,_0xe76b0c/0x2,_0x1c02fa/0x2),_0x329eba[_0x15bf6e(0x21a)](),_0x329eba[_0x15bf6e(0xa3)](_0xdeda83,0x0),_0x329eba[_0x15bf6e(0x323)](_0xe76b0c-_0x2f9d0f,0x0),_0x329eba[_0x15bf6e(0x24b)](_0xe76b0c-_0x2f9d0f,_0x2f9d0f,_0x2f9d0f,Math['PI']*0x3/0x2,0x0,!0x1),_0x329eba[_0x15bf6e(0x323)](_0xe76b0c,_0x1c02fa-_0x3d77d5),_0x329eba['arc'](_0xe76b0c-_0x3d77d5,_0x1c02fa-_0x3d77d5,_0x3d77d5,0x0,Math['PI']/0x2,!0x1),_0x329eba[_0x15bf6e(0x323)](0x0,_0x1c02fa),_0x329eba[_0x15bf6e(0x323)](0x0,_0xdeda83),_0x329eba[_0x15bf6e(0x24b)](_0xdeda83,_0xdeda83,_0xdeda83,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x329eba[_0x15bf6e(0x43c)](),_0x486f80[_0x15bf6e(0x268)]&&(_0x329eba[_0x15bf6e(0x19d)](),_0x329eba[_0x15bf6e(0x296)]=_0x486f80['fill'],_0x486f80[_0x15bf6e(0x11c)]==='evenodd'?_0x329eba[_0x15bf6e(0x268)](_0x15bf6e(0x21b)):_0x329eba[_0x15bf6e(0x268)](),_0x329eba[_0x15bf6e(0x1d4)]());}class Te extends R[_0x3a2165(0x450)]{constructor(_0x464710,_0x3b09e1){const _0x40f70d=_0x3a2165;super(_0x464710,_0x3b09e1),d(this,'color'),d(this,'text'),(this[_0x40f70d(0x470)]=_0x3b09e1==null?void 0x0:_0x3b09e1[_0x40f70d(0x470)],this[_0x40f70d(0x1b0)]=_0x3b09e1==null?void 0x0:_0x3b09e1[_0x40f70d(0x1b0)]);}static[_0x3a2165(0x2b6)](_0xf99f17,_0x5767aa){const _0x2461e1=_0x3a2165,{text:_0x314858,color:_0x26acb9}=_0x5767aa;_0xf99f17['save'](),_0xf99f17[_0x2461e1(0x3ec)]=_0x2461e1(0xd5);const _0x350ed5=_0xf99f17['measureText'](_0x314858)[_0x2461e1(0x144)],_0x5d5d30=Math[_0x2461e1(0x269)](_0x350ed5+0x2*we,rt);ni(_0xf99f17,{'height':ue,'radius':0x4,'width':_0x5d5d30,'fill':_0x26acb9,'evented':!0x1}),_0xf99f17['fillStyle']=_0x2461e1(0x294);const _0x179110=we,_0x260504=ue-ii,_0x362d7b=rt-0x2*we;if(_0x350ed5>_0x362d7b){let _0x1ae793='',_0x251224=0x0;for(const _0x142d8f of _0x314858){const _0x239508=_0xf99f17[_0x2461e1(0x199)](_0x142d8f)[_0x2461e1(0x144)];if(_0x251224+_0x239508<=_0x362d7b-_0xf99f17['measureText']('...')[_0x2461e1(0x144)])_0x1ae793+=_0x142d8f,_0x251224+=_0x239508;else{_0x1ae793+=_0x2461e1(0x22d);break;}}_0xf99f17[_0x2461e1(0x3a8)](_0x1ae793,_0x179110,_0x260504);}else _0xf99f17[_0x2461e1(0x3a8)](_0x314858,_0x179110,_0x260504);_0xf99f17[_0x2461e1(0x1d4)]();}[_0x3a2165(0x201)](_0xba753f){const _0x12cd52=_0x3a2165;Te[_0x12cd52(0x2b6)](_0xba753f,this);}}const Me=_0x3a2165(0x133),ri=_0x3a2165(0x1da),oi='collab-rect-range-',ce=0x6,ai=1.5,Ne=0x4,ci=1.5,li=_0x3a2165(0x30b);class ot{constructor(_0x30db04,_0x228a4b,_0x2bb644,_0x3cb043){const _0x26eb13=_0x3a2165;d(this,_0x26eb13(0x407),[]),d(this,'_anchor',null),d(this,_0x26eb13(0x459),null),d(this,'_anchorDot',null),d(this,_0x26eb13(0x1a6),null),d(this,_0x26eb13(0x443),null),(this[_0x26eb13(0x153)]=_0x30db04,this['_scene']=_0x228a4b,this['_docSkeleton']=_0x2bb644,this[_0x26eb13(0x4b0)]=_0x3cb043,this[_0x26eb13(0xb5)]());}set[_0x3a2165(0x126)](_0x3bf877){const _0x18e94f=_0x3a2165;_0x3bf877?(this['_anchorDot']&&this[_0x18e94f(0x2f3)]['hide'](),this[_0x18e94f(0x459)]&&this[_0x18e94f(0x459)][_0x18e94f(0x113)]()):(this[_0x18e94f(0x2f3)]&&this[_0x18e94f(0x2f3)][_0x18e94f(0x113)](),this[_0x18e94f(0x459)]&&this[_0x18e94f(0x459)][_0x18e94f(0x2cb)]());}[_0x3a2165(0x491)](){const _0xfc7576=_0x3a2165;for(const _0x22c969 of this[_0xfc7576(0x407)])_0x22c969[_0xfc7576(0x491)]();this[_0xfc7576(0x459)]&&this['_textBubble'][_0xfc7576(0x491)](),this[_0xfc7576(0x2f3)]&&this[_0xfc7576(0x2f3)]['dispose'](),this[_0xfc7576(0x239)]&&this[_0xfc7576(0x239)]['dispose'](),this[_0xfc7576(0x443)]&&this[_0xfc7576(0x443)]();}['_render'](){const _0x413545=_0x3a2165;var _0x1c4f38;const {_docSkeleton:_0x1deeac,_document:_0x551cad}=this,{color:_0x87c11e,name:_0x43b4ae,ranges:_0x5e4e9f}=this['_cursor'],_0x4066b2=_0x551cad[_0x413545(0x141)](),{docsLeft:_0x16e9f3,docsTop:_0x116a72}=_0x4066b2,_0xe21d9b=new w['NodePositionConvertToCursor'](_0x4066b2,_0x1deeac);for(const {startOffset:_0x34fab0,endOffset:_0x3c9857,collapsed:_0x2b8fc2,isActive:_0x3e8ba6}of _0x5e4e9f){const _0x5d6585=_0x1deeac[_0x413545(0x2a8)](_0x34fab0),_0x44e46d=_0x1deeac[_0x413545(0x2a8)](_0x3c9857);if(_0x3e8ba6){const {contentBoxPointGroup:_0x4b6cd0}=_0xe21d9b['getRangePointData'](_0x44e46d,_0x44e46d);if(_0x4b6cd0[_0x413545(0x3a5)]===0x0)continue;this[_0x413545(0x18c)](_0x87c11e,_0x4b6cd0,_0x16e9f3,_0x116a72,_0x43b4ae),this[_0x413545(0x443)]=this['_handleHover']();}if(!_0x2b8fc2&&_0x5d6585&&_0x44e46d){if(w[_0x413545(0x13d)](_0x5d6585,_0x44e46d)){const _0x49760=new w[(_0x413545(0x211))](_0x4066b2,_0x1deeac),{pointGroup:_0x462ebb}=(_0x1c4f38=_0x49760['getRangePointData'](_0x5d6585,_0x44e46d))!=null?_0x1c4f38:{};if(_0x462ebb==null||_0x462ebb[_0x413545(0x3a5)]===0x0)continue;this[_0x413545(0xd8)](_0x87c11e,_0x462ebb,_0x16e9f3,_0x116a72);}else{const {contentBoxPointGroup:_0x1f4e71}=_0xe21d9b['getRangePointData'](_0x5d6585,_0x44e46d);if(_0x1f4e71['length']===0x0)continue;this[_0x413545(0x380)](_0x87c11e,_0x1f4e71,_0x16e9f3,_0x116a72);}}}}[_0x3a2165(0x18c)](_0x380d90,_0x5dd100,_0x16b6b2,_0x53c695,_0x4c5a21){const _0x53ea46=_0x3a2165,_0x5db27a=this[_0x53ea46(0x10b)](_0x5dd100),{left:_0xbea09e,top:_0x43d978,height:_0x4bfcda}=_0x5db27a,_0x119380=this[_0x53ea46(0x271)](),_0x449061=ci/_0x119380,_0x2fe2e8=new R['Rect'](Me+a[_0x53ea46(0x483)][_0x53ea46(0x238)](ce),{'left':_0xbea09e+_0x16b6b2-_0x449061,'top':_0x43d978+_0x53c695,'height':_0x4bfcda,'width':ai,'fill':_0x380d90||R[_0x53ea46(0x202)](a[_0x53ea46(0xf3)]['black'],0x0),'strokeWidth':_0x449061,'stroke':li,'evented':!0x0});this[_0x53ea46(0x239)]=_0x2fe2e8,this[_0x53ea46(0x198)][_0x53ea46(0x22c)](_0x2fe2e8,w[_0x53ea46(0x43e)]);const _0x28cd91=new R['Rect'](Me+a['Tools'][_0x53ea46(0x238)](ce),{'left':_0xbea09e+_0x16b6b2-_0x449061,'top':_0x43d978+_0x53c695-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x380d90||R['getColor'](a['COLORS'][_0x53ea46(0x3e1)],0x0),'strokeWidth':0x0,'stroke':_0x380d90||R[_0x53ea46(0x202)](a[_0x53ea46(0xf3)][_0x53ea46(0x3e1)],0x0),'evented':!0x1});this[_0x53ea46(0x2f3)]=_0x28cd91,this['_scene'][_0x53ea46(0x22c)](_0x28cd91,w[_0x53ea46(0x43e)]);const _0x146570=new Te(Me+a[_0x53ea46(0x483)][_0x53ea46(0x238)](ce),{'left':_0xbea09e+_0x16b6b2-_0x449061,'top':_0x43d978+_0x53c695-ue,'text':_0x4c5a21,'color':_0x380d90});this[_0x53ea46(0x459)]=_0x146570,this[_0x53ea46(0x198)][_0x53ea46(0x22c)](_0x146570,w[_0x53ea46(0x43e)]),this[_0x53ea46(0x126)]=!0x1;}[_0x3a2165(0x389)](){const _0xdedf68=_0x3a2165,_0x41dea9=this[_0xdedf68(0x239)][_0xdedf68(0x17c)]['subscribeEvent'](()=>{const _0x45e02a=_0xdedf68;this[_0x45e02a(0x126)]=!0x0;}),_0x7c814f=this['_anchor'][_0xdedf68(0x256)][_0xdedf68(0x43b)](()=>{const _0x29e889=_0xdedf68;this[_0x29e889(0x1a6)]&&clearTimeout(this[_0x29e889(0x1a6)]),this[_0x29e889(0x1a6)]=setTimeout(()=>{const _0x2fc5b1=_0x29e889;this[_0x2fc5b1(0x126)]=!0x1;},0x7d0);});return()=>{const _0x3585b5=_0xdedf68;_0x41dea9[_0x3585b5(0x451)](),_0x7c814f[_0x3585b5(0x451)]();};}[_0x3a2165(0x380)](_0x5443d3,_0x1172d3,_0x1e1a2f,_0x2183a6){const _0xc7b04b=_0x3a2165,_0x417025=new a[(_0xc7b04b(0x46f))](_0x5443d3)[_0xc7b04b(0x47e)](0.2)[_0xc7b04b(0xbf)](),_0x4c6dcc=new R[(_0xc7b04b(0x115))](ri+a['Tools'][_0xc7b04b(0x238)](ce),{'pointsGroup':_0x1172d3,'fill':_0x417025||R[_0xc7b04b(0x202)](a[_0xc7b04b(0xf3)][_0xc7b04b(0x3e1)],0.2),'left':_0x1e1a2f,'top':_0x2183a6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xc7b04b(0x407)][_0xc7b04b(0x339)](_0x4c6dcc),this[_0xc7b04b(0x198)]['addObject'](_0x4c6dcc,w['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x1bf07d,_0x1d5c41,_0x599b38,_0x3d2647){const _0x32de3f=_0x3a2165,_0x123b51=new a[(_0x32de3f(0x46f))](_0x1bf07d)[_0x32de3f(0x47e)](0.2)[_0x32de3f(0xbf)](),_0x792fa0=new R[(_0x32de3f(0x115))](oi+a['Tools']['generateRandomId'](ce),{'pointsGroup':_0x1d5c41,'fill':_0x123b51||R[_0x32de3f(0x202)](a[_0x32de3f(0xf3)][_0x32de3f(0x3e1)],0.2),'left':_0x599b38,'top':_0x3d2647,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x32de3f(0x407)][_0x32de3f(0x339)](_0x792fa0),this['_scene'][_0x32de3f(0x22c)](_0x792fa0,w[_0x32de3f(0x43e)]);}[_0x3a2165(0x10b)](_0x2b7646){const _0x3f27df=_0x2b7646[0x0],_0x5bad76=_0x3f27df[0x0],_0x38c0ab=_0x3f27df[0x2],{x:_0x37422d,y:_0x2bed4e}=_0x5bad76,{x:_0x312eed,y:_0x53d53e}=_0x38c0ab;return{'left':_0x37422d,'top':_0x2bed4e,'width':_0x312eed-_0x37422d,'height':_0x53d53e-_0x2bed4e};}[_0x3a2165(0x271)](){const _0x4c0d57=_0x3a2165,{scaleX:_0x1f9614,scaleY:_0x19ee7b}=this[_0x4c0d57(0x198)][_0x4c0d57(0x25b)]();return Math[_0x4c0d57(0x1f7)](_0x1f9614,_0x19ee7b);}}var hi=Object[_0x3a2165(0x1e2)],_i=Object[_0x3a2165(0x383)],ui=(_0x274ec3,_0x5f2019,_0x81e9e2,_0x244349)=>{const _0x32d248=_0x3a2165;for(var _0x599b89=_0x244349>0x1?void 0x0:_0x244349?_i(_0x5f2019,_0x81e9e2):_0x5f2019,_0x2cb07b=_0x274ec3[_0x32d248(0x3a5)]-0x1,_0x4da862;_0x2cb07b>=0x0;_0x2cb07b--)(_0x4da862=_0x274ec3[_0x2cb07b])&&(_0x599b89=(_0x244349?_0x4da862(_0x5f2019,_0x81e9e2,_0x599b89):_0x4da862(_0x599b89))||_0x599b89);return _0x244349&&_0x599b89&&hi(_0x5f2019,_0x81e9e2,_0x599b89),_0x599b89;},de=(_0x480404,_0x3a3acc)=>(_0x3144a7,_0x545468)=>_0x3a3acc(_0x3144a7,_0x545468,_0x480404);let xe=class extends a[_0x3a2165(0x441)]{constructor(_0x49b4be,_0x48105a,_0xb47128,_0x5d5381,_0x43a418){const _0x2324f0=_0x3a2165;super(),d(this,_0x2324f0(0x47f),[]),d(this,'_cursors',[]),(this[_0x2324f0(0x477)]=_0x49b4be,this[_0x2324f0(0x463)]=_0x48105a,this[_0x2324f0(0x2f0)]=_0xb47128,this[_0x2324f0(0x3de)]=_0x5d5381,this['_themeService']=_0x43a418,this['_init']());}[_0x3a2165(0x1d9)](){const _0x3debdd=_0x3a2165,_0x5d63da=this[_0x3debdd(0x477)][_0x3debdd(0xec)],_0x16139e=this['_docSkeletonManagerService'];this[_0x3debdd(0x167)](v[_0x3debdd(0x456)]([this['_collabCursorController'][_0x3debdd(0x397)](_0x5d63da),this[_0x3debdd(0xad)]['currentTheme$']])['pipe'](E[_0x3debdd(0x331)](([_0x3917f6,_0x623986])=>({'skeleton':_0x16139e['getSkeleton'](),'cursors':[..._0x3917f6[_0x3debdd(0x1ce)]()][_0x3debdd(0x387)](_0x2efdd5=>({..._0x2efdd5,'color':_0x623986[_0x2efdd5[_0x3debdd(0x470)]]}))})))[_0x3debdd(0x1ee)](_0x521ae8=>{const _0x5edc08=_0x3debdd;if(this[_0x5edc08(0x26b)](),_0x521ae8){const {skeleton:_0x421477,cursors:_0x486a3c}=_0x521ae8;this[_0x5edc08(0xc0)](_0x421477,_0x486a3c);}})),this['_initResize'](),this[_0x3debdd(0x18d)]();}[_0x3a2165(0xc0)](_0x41d397,_0x4d2b0a){const _0x4b21cd=_0x3a2165,{scene:_0x4a0744,mainComponent:_0x33960e}=this['_context'],_0x423582=_0x4d2b0a[_0x4b21cd(0x331)](_0x2de04f=>new ot(_0x2de04f,_0x4a0744,_0x41d397,_0x33960e));this[_0x4b21cd(0x47f)]=_0x423582,this[_0x4b21cd(0xca)]=_0x4d2b0a;}[_0x3a2165(0xf8)](){const _0x250acb=_0x3a2165;this['_removeCollabCursors']();const {scene:_0x17cd41,mainComponent:_0x157601}=this[_0x250acb(0x477)],_0x2194e9=this[_0x250acb(0x463)][_0x250acb(0x3b3)](),_0x4b80b2=this[_0x250acb(0xca)][_0x250acb(0x331)](_0x428f6c=>new ot(_0x428f6c,_0x17cd41,_0x2194e9,_0x157601));this['_cursorShapes']=_0x4b80b2;}[_0x3a2165(0x26b)](){const _0x100a30=_0x3a2165;this['_cursorShapes']['forEach'](_0x359189=>_0x359189[_0x100a30(0x491)]()),this['_cursorShapes']=[];}[_0x3a2165(0x18d)](){const _0x19bc00=_0x3a2165,_0xf56de9=[w[_0x19bc00(0x30c)]['id']];this[_0x19bc00(0x167)](this['_commandService'][_0x19bc00(0x44e)](_0x555637=>{const _0x4c85fe=_0x19bc00;_0xf56de9[_0x4c85fe(0x3f3)](_0x555637['id'])&&_0x555637[_0x4c85fe(0x101)][_0x4c85fe(0xec)]===this[_0x4c85fe(0x477)]['unitId']&&this[_0x4c85fe(0xf8)]();}));}[_0x3a2165(0x2c8)](){const _0x1e55a4=_0x3a2165;this[_0x1e55a4(0x167)](a[_0x1e55a4(0x98)](this['_context'][_0x1e55a4(0x358)][_0x1e55a4(0x3d1)])[_0x1e55a4(0x447)](E['filter'](_0x42a7aa=>_0x42a7aa['type']===R['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x1e55a4(0x3c6)]),E[_0x1e55a4(0x440)](0x10))[_0x1e55a4(0x1ee)](()=>{const _0x557e3f=_0x1e55a4;this[_0x557e3f(0xf8)]();}));}};xe=ui([de(0x1,a[_0x3a2165(0x426)](V[_0x3a2165(0x1ed)])),de(0x2,a[_0x3a2165(0x426)](ie)),de(0x3,a[_0x3a2165(0x3e2)]),de(0x4,a[_0x3a2165(0x426)](a[_0x3a2165(0x320)]))],xe);function _0x4ca1(_0x5e362e,_0x26f901){const _0x26d6f1=_0x26d6();return _0x4ca1=function(_0x4ca187,_0x4f6e50){_0x4ca187=_0x4ca187-0x96;let _0x26ddf6=_0x26d6f1[_0x4ca187];return _0x26ddf6;},_0x4ca1(_0x5e362e,_0x26f901);}const di=0x1,Si=1.5;class Ot extends R[_0x3a2165(0x450)]{constructor(_0x489341,_0x2430bc){const _0x3f90d0=_0x3a2165;super(_0x489341,_0x2430bc),d(this,'_color'),d(this,_0x3f90d0(0x433),!0x1),d(this,_0x3f90d0(0x136)),d(this,'_name',''),d(this,_0x3f90d0(0xc8),_0x3f90d0(0x3f4)),d(this,_0x3f90d0(0x1d1)),(_0x2430bc&&this[_0x3f90d0(0x164)](_0x2430bc),this[_0x3f90d0(0x17c)]['subscribeEvent'](()=>this[_0x3f90d0(0x164)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x3f90d0(0x164)]({'hovered':!0x1})));}[_0x3a2165(0x164)](_0x34cca3){const _0x4089e4=_0x3a2165;var _0x3ecee7,_0x52b7af,_0x33c1dc,_0x1feb08,_0x153c32,_0x38d676;this[_0x4089e4(0x18b)]=(_0x3ecee7=_0x34cca3[_0x4089e4(0x470)])!=null?_0x3ecee7:this[_0x4089e4(0x18b)],this[_0x4089e4(0x433)]=(_0x52b7af=_0x34cca3[_0x4089e4(0x499)])!=null?_0x52b7af:this['_hovered'],this[_0x4089e4(0x136)]=(_0x33c1dc=_0x34cca3[_0x4089e4(0x166)])!=null?_0x33c1dc:this[_0x4089e4(0x136)],this[_0x4089e4(0x11e)]=(_0x1feb08=_0x34cca3[_0x4089e4(0x494)])!=null?_0x1feb08:this[_0x4089e4(0x11e)],this[_0x4089e4(0xc8)]=(_0x153c32=_0x34cca3[_0x4089e4(0x29c)])!=null?_0x153c32:this[_0x4089e4(0xc8)],this[_0x4089e4(0x1d1)]=(_0x38d676=_0x34cca3[_0x4089e4(0x3c0)])!=null?_0x38d676:this[_0x4089e4(0x1d1)],this['transformByState']({'width':_0x34cca3['width'],'height':_0x34cca3[_0x4089e4(0x340)]});}['onMouseMove'](_0x46f4eb){const _0x57d14d=_0x3a2165,{row:_0x40c3ce,column:_0x5ea585}=_0x46f4eb;if(_0x40c3ce>=this[_0x57d14d(0x136)][_0x57d14d(0x280)]&&_0x40c3ce<=this[_0x57d14d(0x136)][_0x57d14d(0x1bf)]&&_0x5ea585>=this[_0x57d14d(0x136)][_0x57d14d(0x1dd)]&&_0x5ea585<=this[_0x57d14d(0x136)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x57d14d(0x164)]({'hovered':!0x1});}[_0x3a2165(0x415)](_0xc46c82){return!0x1;}[_0x3a2165(0x201)](_0x33a56a){const _0x553fa6=_0x3a2165;R[_0x553fa6(0x3da)][_0x553fa6(0x2b6)](_0x33a56a,{'width':this[_0x553fa6(0x144)],'height':this['height'],'strokeWidth':Si,'stroke':this[_0x553fa6(0x18b)],'evented':!0x1,'fill':this[_0x553fa6(0x1d1)]}),this[_0x553fa6(0x433)]&&(_0x33a56a[_0x553fa6(0x19d)](),_0x33a56a[_0x553fa6(0x291)](0x1,0x0,0x0,0x1,this['width'],this[_0x553fa6(0xc8)]==='bottom'?0x0:-ue),Te[_0x553fa6(0x2b6)](_0x33a56a,{'text':this[_0x553fa6(0x11e)],'color':this['_color']}),_0x33a56a['restore']());}}var vi=Object[_0x3a2165(0x1e2)],fi=Object[_0x3a2165(0x383)],gi=(_0x21b4f7,_0x60223e,_0x37d488,_0x590e11)=>{for(var _0x391aa4=_0x590e11>0x1?void 0x0:_0x590e11?fi(_0x60223e,_0x37d488):_0x60223e,_0x901424=_0x21b4f7['length']-0x1,_0x3eb349;_0x901424>=0x0;_0x901424--)(_0x3eb349=_0x21b4f7[_0x901424])&&(_0x391aa4=(_0x590e11?_0x3eb349(_0x60223e,_0x37d488,_0x391aa4):_0x3eb349(_0x391aa4))||_0x391aa4);return _0x590e11&&_0x391aa4&&vi(_0x60223e,_0x37d488,_0x391aa4),_0x391aa4;},Ae=(_0x110198,_0x2d9be5)=>(_0x2e9a86,_0xa999b)=>_0x2d9be5(_0x2e9a86,_0xa999b,_0x110198);const mi=0x1389;let ke=class extends a['RxDisposable']{constructor(_0x36e523,_0x18f412,_0xfc15c1,_0x4c2c01){const _0xdfc610=_0x3a2165;super(),d(this,_0xdfc610(0xca),new Set()),d(this,'_lastPointer',null),(this[_0xdfc610(0x477)]=_0x36e523,this[_0xdfc610(0x428)]=_0x18f412,this['_collabCursorController']=_0xfc15c1,this['_themeService']=_0x4c2c01,this[_0xdfc610(0x1d9)]());}['_init'](){const _0x11b8c3=_0x3a2165;this[_0x11b8c3(0x428)][_0x11b8c3(0x489)][_0x11b8c3(0x447)](E[_0x11b8c3(0x27a)](this[_0x11b8c3(0x15a)]),E[_0x11b8c3(0x3d5)](_0xf5bffb=>{const _0x191d79=_0x11b8c3;if(_0xf5bffb){const _0x1d31c3=_0xf5bffb[_0x191d79(0x22b)];return v[_0x191d79(0x456)](this[_0x191d79(0x2f0)][_0x191d79(0x397)](this['_context'][_0x191d79(0xec)]),this[_0x191d79(0xad)][_0x191d79(0x375)])[_0x191d79(0x447)](E[_0x191d79(0x331)](([_0xaeefd3,_0x35ccda])=>{const _0x4ee7b5=new Map();return _0xaeefd3['forEach']((_0x7b8240,_0x2bfeb8)=>{const _0x14e6cb=_0x4ca1;if(_0x7b8240[_0x14e6cb(0x169)]===_0x1d31c3){const _0x1ae863={..._0x7b8240};_0x1ae863[_0x14e6cb(0x470)]=_0x35ccda[_0x7b8240[_0x14e6cb(0x470)]],_0x4ee7b5['set'](_0x2bfeb8,_0x1ae863);}}),{'skeleton':_0xf5bffb,'cursors':_0x4ee7b5};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x11b8c3(0x1ee)](({skeleton:_0x2336ce,cursors:_0x5685fb})=>{const _0x5a107c=_0x11b8c3;this[_0x5a107c(0x26b)](),_0x2336ce&&this[_0x5a107c(0xc0)](_0x2336ce,_0x5685fb);}),this[_0x11b8c3(0x428)][_0x11b8c3(0x489)][_0x11b8c3(0x1ee)](_0x4b3595=>{const _0x2602f2=_0x11b8c3;if(_0x4b3595==null)return;const {skeleton:_0x258628}=_0x4b3595,{scene:_0x19fa20}=this['_context'];_0x19fa20[_0x2602f2(0x421)][_0x2602f2(0x43b)](a[_0x2602f2(0xd0)](_0xa331cd=>{const _0x5f5b76=_0x2602f2;var _0x4a7a0e,_0x5c13b0;const {offsetX:_0x25af83,offsetY:_0x43662a}=_0xa331cd,{x:_0x2e1e2d,y:_0x4626f2}=_0x19fa20['getRelativeToViewportCoord'](R[_0x5f5b76(0x3a7)][_0x5f5b76(0x409)]([_0x25af83,_0x43662a])),{scaleX:_0x33320d,scaleY:_0x4f0f8b}=_0x19fa20[_0x5f5b76(0x25b)](),_0x56a818=_0x19fa20[_0x5f5b76(0x20a)](te[_0x5f5b76(0x351)][_0x5f5b76(0x2bc)]),_0x4c6f10=_0x19fa20[_0x5f5b76(0xcc)](R[_0x5f5b76(0x3a7)][_0x5f5b76(0x409)]([_0x2e1e2d,_0x4626f2]),_0x56a818),_0x47d257=_0x258628[_0x5f5b76(0x2c0)](_0x25af83,_0x43662a,_0x33320d,_0x4f0f8b,_0x4c6f10);((_0x4a7a0e=this[_0x5f5b76(0x392)])==null?void 0x0:_0x4a7a0e[_0x5f5b76(0x364)])===_0x47d257[_0x5f5b76(0x364)]&&((_0x5c13b0=this[_0x5f5b76(0x392)])==null?void 0x0:_0x5c13b0['row'])===_0x47d257[_0x5f5b76(0x3db)]||this[_0x5f5b76(0xca)][_0x5f5b76(0x337)](_0x466054=>{const _0x4687f2=_0x5f5b76;_0x466054[_0x4687f2(0x240)](_0x47d257);});},0x64));});}[_0x3a2165(0xc0)](_0x193ffc,_0xdbfa79){const _0x592989=_0x3a2165;var _0x88e3e1;const _0x146c4d=(_0x88e3e1=this[_0x592989(0x428)][_0x592989(0x1bc)]())==null?void 0x0:_0x88e3e1[_0x592989(0x332)];if(!_0x146c4d)return;const _0x5bf9bf=this[_0x592989(0x1c1)]();if(!_0x5bf9bf)return;this[_0x592989(0xca)]['forEach'](_0x269272=>{_0x269272['makeDirty']();});const {scene:_0x32180a}=_0x5bf9bf,_0x420595=Ii(Array[_0x592989(0x2f9)](_0xdbfa79['values']()))[_0x592989(0x331)](_0x5b074c=>{const _0x645152=_0x592989,{color:_0x795524,range:_0x55bfe3,name:_0x24e681,selection:_0x38ba76,sheetID:_0x1984f7}=_0x5b074c,{startColumn:_0x47e0eb,startRow:_0x67d459,endColumn:_0x2412dd,endRow:_0x3ac2a7}=_0x55bfe3,_0x45fae9=te[_0x645152(0x174)](_0x67d459,_0x47e0eb,_0x32180a,_0x146c4d),_0x473154=te[_0x645152(0x174)](_0x3ac2a7,_0x2412dd,_0x32180a,_0x146c4d),{columnHeaderHeightAndMarginTop:_0x4711cb}=_0x146c4d,{startX:_0x592516,startY:_0xfaef21}=_0x45fae9,{endX:_0x2c615b,endY:_0x1ce67a}=_0x473154,_0x11d7d8=_0x2c615b-_0x592516,_0x1a8fe9=_0x1ce67a-_0xfaef21,_0x42ea7b={'labelPosition':_0xfaef21-_0x4711cb>=ue?'top':_0x645152(0x3c3),'sheetID':_0x1984f7,'range':_0x55bfe3,'color':_0x795524,'name':_0x24e681,'selection':_0x38ba76,'left':_0x592516,'top':_0xfaef21,'width':_0x11d7d8,'height':_0x1a8fe9,'evented':!0x1,'zIndex':mi};return new Ot(_0x24e681,_0x42ea7b);});_0x32180a['addObjects'](_0x420595,di),this[_0x592989(0xca)]=new Set(_0x420595);}[_0x3a2165(0x26b)](){const _0x395c94=_0x3a2165;var _0x52cdeb;(_0x52cdeb=this[_0x395c94(0xca)])==null||_0x52cdeb[_0x395c94(0x337)](_0x310893=>_0x310893['dispose']());}[_0x3a2165(0x1c1)](){const _0x34ea2c=_0x3a2165;return te[_0x34ea2c(0x348)](this[_0x34ea2c(0x477)][_0x34ea2c(0x2cf)],this[_0x34ea2c(0x477)]);}};ke=gi([Ae(0x1,a[_0x3a2165(0x426)](te['SheetSkeletonManagerService'])),Ae(0x2,a['Inject'](ie)),Ae(0x3,a['Inject'](a['ThemeService']))],ke);function Ii(_0x448399){const _0x278de3=_0x3a2165,_0x15cf13=new Map();return _0x448399['forEach'](_0x2c2a95=>{const _0x5ecd4d=_0x4ca1;if(_0x15cf13[_0x5ecd4d(0x4ac)](_0x2c2a95[_0x5ecd4d(0xce)])){const _0x29e555=_0x15cf13['get'](_0x2c2a95[_0x5ecd4d(0xce)]);_0x29e555[_0x5ecd4d(0x494)]+=',\x20'+_0x2c2a95[_0x5ecd4d(0x494)];}else _0x15cf13['set'](_0x2c2a95[_0x5ecd4d(0xce)],_0x2c2a95);}),Array['from'](_0x15cf13[_0x278de3(0x1ce)]());}var M=function(){const _0x27545c=_0x3a2165;return M=Object['assign']||function(_0x28fd78){const _0x4736e5=_0x4ca1;for(var _0x4a25c4,_0x32004c=0x1,_0x173a2a=arguments[_0x4736e5(0x3a5)];_0x32004c<_0x173a2a;_0x32004c++){_0x4a25c4=arguments[_0x32004c];for(var _0x1e71e1 in _0x4a25c4)Object[_0x4736e5(0x1fd)]['hasOwnProperty'][_0x4736e5(0x1ef)](_0x4a25c4,_0x1e71e1)&&(_0x28fd78[_0x1e71e1]=_0x4a25c4[_0x1e71e1]);}return _0x28fd78;},M[_0x27545c(0x333)](this,arguments);},pi=function(_0x438110,_0x755d87){const _0x243f24=_0x3a2165;var _0x3eb7d5={};for(var _0x449f33 in _0x438110)Object['prototype'][_0x243f24(0x2f1)][_0x243f24(0x1ef)](_0x438110,_0x449f33)&&_0x755d87[_0x243f24(0x260)](_0x449f33)<0x0&&(_0x3eb7d5[_0x449f33]=_0x438110[_0x449f33]);if(_0x438110!=null&&typeof Object[_0x243f24(0x473)]==_0x243f24(0x429)){for(var _0x216826=0x0,_0x449f33=Object['getOwnPropertySymbols'](_0x438110);_0x216826<_0x449f33['length'];_0x216826++)_0x755d87['indexOf'](_0x449f33[_0x216826])<0x0&&Object[_0x243f24(0x1fd)]['propertyIsEnumerable']['call'](_0x438110,_0x449f33[_0x216826])&&(_0x3eb7d5[_0x449f33[_0x216826]]=_0x438110[_0x449f33[_0x216826]]);}return _0x3eb7d5;},qe=U[_0x3a2165(0x3b9)](function(_0x104c2e,_0x5e474c){const _0x10c7a0=_0x3a2165;var _0xa6c755=_0x104c2e['icon'],_0x43b609=_0x104c2e['id'],_0x34982a=_0x104c2e[_0x10c7a0(0x36e)],_0x4975ad=_0x104c2e['extend'],_0x3e153f=pi(_0x104c2e,[_0x10c7a0(0x1cf),'id',_0x10c7a0(0x36e),_0x10c7a0(0xe9)]),_0xbb90b7='univerjs-icon\x20univerjs-icon-'[_0x10c7a0(0x29f)](_0x43b609,'\x20')[_0x10c7a0(0x29f)](_0x34982a||'')[_0x10c7a0(0xaf)](),_0x2533f1=U[_0x10c7a0(0x17b)]('_'['concat'](bi()));return Dt(_0xa6c755,''[_0x10c7a0(0x29f)](_0x43b609),{'defIds':_0xa6c755[_0x10c7a0(0x288)],'idSuffix':_0x2533f1['current']},M({'ref':_0x5e474c,'className':_0xbb90b7},_0x3e153f),_0x4975ad);});function Dt(_0xc58014,_0x3ac29e,_0x329ce4,_0x5ba8af,_0x28b231){const _0x1d63be=_0x3a2165;return U[_0x1d63be(0x49d)](_0xc58014[_0x1d63be(0x498)],M(M({'key':_0x3ac29e},Ci(_0xc58014,_0x329ce4,_0x28b231)),_0x5ba8af),(Ei(_0xc58014,_0x329ce4)[_0x1d63be(0x293)]||[])['map'](function(_0xf2c2e,_0x2ed7ef){const _0x2d340b=_0x1d63be;return Dt(_0xf2c2e,''[_0x2d340b(0x29f)](_0x3ac29e,'-')['concat'](_0xc58014[_0x2d340b(0x498)],'-')['concat'](_0x2ed7ef),_0x329ce4,void 0x0,_0x28b231);}));}function Ci(_0x128423,_0x3dbbe4,_0x1cfb89){const _0x55b78c=_0x3a2165;var _0x5e46bd=M({},_0x128423[_0x55b78c(0x14b)]);_0x1cfb89!=null&&_0x1cfb89[_0x55b78c(0x16d)]&&_0x5e46bd[_0x55b78c(0x268)]===_0x55b78c(0x16d)&&(_0x5e46bd[_0x55b78c(0x268)]=_0x1cfb89[_0x55b78c(0x16d)]);var _0xfce612=_0x3dbbe4['defIds'];return!_0xfce612||_0xfce612[_0x55b78c(0x3a5)]===0x0||(_0x128423['tag']===_0x55b78c(0x24d)&&_0x5e46bd[_0x55b78c(0x226)]&&(_0x5e46bd[_0x55b78c(0x226)]=_0x5e46bd['xlink:href']+_0x3dbbe4[_0x55b78c(0x20c)]),Object[_0x55b78c(0x3f0)](_0x5e46bd)[_0x55b78c(0x337)](function(_0x2ab3eb){const _0x44e29d=_0x55b78c;var _0x4a828c=_0x2ab3eb[0x0],_0x1b4607=_0x2ab3eb[0x1];typeof _0x1b4607=='string'&&(_0x5e46bd[_0x4a828c]=_0x1b4607[_0x44e29d(0x295)](/url\(#(.*)\)/,'url(#$1'[_0x44e29d(0x29f)](_0x3dbbe4[_0x44e29d(0x20c)],')')));})),_0x5e46bd;}function Ei(_0x3d62cc,_0x136178){const _0x3287b9=_0x3a2165;var _0x3b600b,_0x8324cd=_0x136178[_0x3287b9(0x288)];return!_0x8324cd||_0x8324cd[_0x3287b9(0x3a5)]===0x0?_0x3d62cc:_0x3d62cc['tag']===_0x3287b9(0x479)&&(!((_0x3b600b=_0x3d62cc[_0x3287b9(0x293)])===null||_0x3b600b===void 0x0)&&_0x3b600b[_0x3287b9(0x3a5)])?M(M({},_0x3d62cc),{'children':_0x3d62cc[_0x3287b9(0x293)][_0x3287b9(0x331)](function(_0xe5f826){const _0x22a3b9=_0x3287b9;return typeof _0xe5f826[_0x22a3b9(0x14b)]['id']==_0x22a3b9(0x40c)&&_0x8324cd&&_0x8324cd[_0x22a3b9(0x260)](_0xe5f826[_0x22a3b9(0x14b)]['id'])>-0x1?M(M({},_0xe5f826),{'attrs':M(M({},_0xe5f826['attrs']),{'id':_0xe5f826['attrs']['id']+_0x136178[_0x22a3b9(0x20c)]})}):_0xe5f826;})}):_0x3d62cc;}function bi(){const _0x27304c=_0x3a2165;return Math['random']()[_0x27304c(0x3b5)](0x24)[_0x27304c(0x482)](0x2,0x8);}qe[_0x3a2165(0x1c0)]=_0x3a2165(0x221);var Ti={'tag':_0x3a2165(0x1fc),'attrs':{'fill':_0x3a2165(0x1af),'viewBox':'0\x200\x2016\x2016','width':_0x3a2165(0x472),'height':_0x3a2165(0x472)},'children':[{'tag':'g','attrs':{'clipPath':_0x3a2165(0x31a)},'children':[{'tag':_0x3a2165(0xba),'attrs':{'stroke':_0x3a2165(0x37f),'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':_0x3a2165(0xff),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3a2165(0x479),'attrs':{},'children':[{'tag':_0x3a2165(0x3d2),'attrs':{'id':_0x3a2165(0x338)},'children':[{'tag':_0x3a2165(0xba),'attrs':{'fill':_0x3a2165(0x307),'d':_0x3a2165(0x3b8)}}]}]}],'defIds':[_0x3a2165(0x338)]},yt=U['forwardRef'](function(_0x110327,_0xe060da){const _0x4282cf=_0x3a2165;return U[_0x4282cf(0x49d)](qe,Object['assign']({},_0x110327,{'id':_0x4282cf(0x160),'ref':_0xe060da,'icon':Ti}));});yt['displayName']=_0x3a2165(0x228);var Ri={'tag':_0x3a2165(0x1fc),'attrs':{'fill':_0x3a2165(0x1af),'viewBox':_0x3a2165(0x110),'width':_0x3a2165(0x472),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3a2165(0x402)},'children':[{'tag':_0x3a2165(0xba),'attrs':{'stroke':_0x3a2165(0x37f),'d':_0x3a2165(0x15e),'strokeLinecap':_0x3a2165(0xff),'strokeLinejoin':_0x3a2165(0xff),'strokeWidth':1.2}}]},{'tag':_0x3a2165(0x479),'attrs':{},'children':[{'tag':_0x3a2165(0x3d2),'attrs':{'id':_0x3a2165(0x385)},'children':[{'tag':_0x3a2165(0xba),'attrs':{'fill':_0x3a2165(0x307),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},Ut=U['forwardRef'](function(_0x1a05dd,_0x62e7f8){const _0x56fb35=_0x3a2165;return U[_0x56fb35(0x49d)](qe,Object[_0x56fb35(0x496)]({},_0x1a05dd,{'id':'on-line-single','ref':_0x62e7f8,'icon':Ri}));});Ut[_0x3a2165(0x1c0)]=_0x3a2165(0x1fa);function Pt(_0x4c22f4){const _0x22e573=_0x3a2165;var _0x40dbfe,_0x2932b,_0x2b1bf2='';if(typeof _0x4c22f4==_0x22e573(0x40c)||typeof _0x4c22f4==_0x22e573(0x1b8))_0x2b1bf2+=_0x4c22f4;else{if(typeof _0x4c22f4==_0x22e573(0x45b)){if(Array['isArray'](_0x4c22f4)){var _0x2b9e7f=_0x4c22f4[_0x22e573(0x3a5)];for(_0x40dbfe=0x0;_0x40dbfe<_0x2b9e7f;_0x40dbfe++)_0x4c22f4[_0x40dbfe]&&(_0x2932b=Pt(_0x4c22f4[_0x40dbfe]))&&(_0x2b1bf2&&(_0x2b1bf2+='\x20'),_0x2b1bf2+=_0x2932b);}else{for(_0x2932b in _0x4c22f4)_0x4c22f4[_0x2932b]&&(_0x2b1bf2&&(_0x2b1bf2+='\x20'),_0x2b1bf2+=_0x2932b);}}}return _0x2b1bf2;}function Oi(){const _0x584077=_0x3a2165;for(var _0x4454c8,_0x3c4693,_0x4a3eb6=0x0,_0x36ae3c='',_0x26e912=arguments[_0x584077(0x3a5)];_0x4a3eb6<_0x26e912;_0x4a3eb6++)(_0x4454c8=arguments[_0x4a3eb6])&&(_0x3c4693=Pt(_0x4454c8))&&(_0x36ae3c&&(_0x36ae3c+='\x20'),_0x36ae3c+=_0x3c4693);return _0x36ae3c;}const Di=_0x3a2165(0x481),yi=_0x3a2165(0x365),Ui=_0x3a2165(0x39f),Pi=_0x3a2165(0x308),wi='univer-offline',le={'onlineStatusIcon':Di,'onlineStatusTitle':yi,'onlineStatus':Ui,'online':Pi,'offline':wi};function Mi(_0xa2ba04){const _0x3cec82=_0x3a2165;switch(_0xa2ba04){case y[_0x3cec82(0x299)]:return _0x3cec82(0x304);case y[_0x3cec82(0x171)]:return _0x3cec82(0x97);case y[_0x3cec82(0x24c)]:return _0x3cec82(0x15f);case y[_0x3cec82(0xc3)]:return _0x3cec82(0x427);case y['PENDING']:case y['AWAITING']:case y[_0x3cec82(0x161)]:return'collabStatus.syncing';case y[_0x3cec82(0x465)]:return'collabStatus.synced';}}function wt(_0x5c1b5a){const _0x7c2e42=_0x3a2165,{status$:_0xe7d4c}=_0x5c1b5a,_0x1fe586=N['useObservable'](_0xe7d4c,y[_0x7c2e42(0xc3)]),_0x12216a=a[_0x7c2e42(0x3b7)](a[_0x7c2e42(0x3ff)]),_0x40e9d8=a[_0x7c2e42(0x3b7)](exports[_0x7c2e42(0x16c)]),_0x262217=_0x1fe586!==y['OFFLINE'],_0x4395e0=_0x12216a['t'](Mi(_0x1fe586)),_0x197be2=Oi(le['onlineStatus'],{[le[_0x7c2e42(0x1b2)]]:_0x262217,[le[_0x7c2e42(0x229)]]:!_0x262217}),_0x4908ba=_0x262217?U['createElement'](Ut,null):U[_0x7c2e42(0x49d)](yt,null),_0x34b78d=U['useCallback'](()=>{_0x262217||_0x40e9d8['reconnect']();},[_0x262217,_0x40e9d8]);function _0x4d65fb(){const _0x3d872c=_0x7c2e42;return U[_0x3d872c(0x49d)](_0x3d872c(0xf9),{'className':_0x197be2,'onClick':_0x34b78d},U['createElement']('div',{'className':le[_0x3d872c(0x19b)]},_0x4908ba),U[_0x3d872c(0x49d)](_0x3d872c(0xf9),{'className':le[_0x3d872c(0x2fd)]},_0x4395e0));}return _0x262217?_0x4d65fb():U['createElement'](X[_0x7c2e42(0x21c)],{'title':_0x12216a['t']('collab-client.tooltip.reconnect')},_0x4d65fb());}var Ni=Object['defineProperty'],Ai=Object[_0x3a2165(0x383)],Li=(_0x5f49d2,_0x1bdaa1,_0x2d66bc,_0x191779)=>{for(var _0x5fc912=_0x191779>0x1?void 0x0:_0x191779?Ai(_0x1bdaa1,_0x2d66bc):_0x1bdaa1,_0x216778=_0x5f49d2['length']-0x1,_0x18a575;_0x216778>=0x0;_0x216778--)(_0x18a575=_0x5f49d2[_0x216778])&&(_0x5fc912=(_0x191779?_0x18a575(_0x1bdaa1,_0x2d66bc,_0x5fc912):_0x18a575(_0x5fc912))||_0x5fc912);return _0x191779&&_0x5fc912&&Ni(_0x1bdaa1,_0x2d66bc,_0x5fc912),_0x5fc912;},Se=(_0x4e4ead,_0x3e311e)=>(_0x41b549,_0x575c12)=>_0x3e311e(_0x41b549,_0x575c12,_0x4e4ead);exports[_0x3a2165(0x250)]=class extends a[_0x3a2165(0x287)]{constructor(_0x1c8eb5,_0x36fca9,_0x206fe6,_0x108846){const _0x896319=_0x3a2165;super(),d(this,_0x896319(0x37b),new v[(_0x896319(0x2f5))](y[_0x896319(0xc3)])),(this['_univerInstanceService']=_0x1c8eb5,this[_0x896319(0x196)]=_0x36fca9,this[_0x896319(0x3be)]=_0x206fe6,this[_0x896319(0x2f8)]=_0x108846,this[_0x896319(0x195)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x1180a8=_0x3a2165;this['disposeWithMe'](this[_0x1180a8(0x406)][_0x1180a8(0x35d)]['pipe'](v[_0x1180a8(0x3d5)](()=>{const _0x1795e4=_0x1180a8,_0x35af8d=this[_0x1795e4(0x406)][_0x1795e4(0x1a0)]();return _0x35af8d?this[_0x1795e4(0x2f8)]['getCollabEntity$'](_0x35af8d[_0x1795e4(0x3ae)]()):v['of'](null);}),v[_0x1180a8(0x3d5)](_0x144242=>_0x144242?_0x144242[_0x1180a8(0x3fb)]:v['of'](y['NOT_COLLAB'])))[_0x1180a8(0x1ee)](_0x421e50=>{const _0x56362e=_0x1180a8;this[_0x56362e(0x37b)][_0x56362e(0x2c6)](_0x421e50);}));}[_0x3a2165(0x195)](){const _0x12ec1e=_0x3a2165;this[_0x12ec1e(0x167)](this[_0x12ec1e(0x196)][_0x12ec1e(0x2d8)](N[_0x12ec1e(0x45a)][_0x12ec1e(0x405)],()=>a['connectInjector'](ji({'status$':this[_0x12ec1e(0x37b)][_0x12ec1e(0xfd)]()}),this[_0x12ec1e(0x3be)])));}},exports[_0x3a2165(0x250)]=Li([Se(0x0,a['IUniverInstanceService']),Se(0x1,N[_0x3a2165(0x1f1)]),Se(0x2,a['Inject'](a['Injector'])),Se(0x3,a[_0x3a2165(0x426)](exports[_0x3a2165(0x31d)]))],exports['DesktopCollaborationStatusDisplayController']);function ji(_0x5869e2){const {status$:_0x1da6b}=_0x5869e2;return function(){const _0x1cbc73=_0x4ca1;return U[_0x1cbc73(0x49d)](wt,{'status$':_0x1da6b});};}const ze=a['createIdentifier'](_0x3a2165(0x430));var $i=Object[_0x3a2165(0x1e2)],Hi=Object['getOwnPropertyDescriptor'],xi=(_0x537c7f,_0x507f41,_0x44ea77,_0x5391a8)=>{const _0xae3d95=_0x3a2165;for(var _0x1d0250=_0x5391a8>0x1?void 0x0:_0x5391a8?Hi(_0x507f41,_0x44ea77):_0x507f41,_0x263aa2=_0x537c7f[_0xae3d95(0x3a5)]-0x1,_0x1cc876;_0x263aa2>=0x0;_0x263aa2--)(_0x1cc876=_0x537c7f[_0x263aa2])&&(_0x1d0250=(_0x5391a8?_0x1cc876(_0x507f41,_0x44ea77,_0x1d0250):_0x1cc876(_0x1d0250))||_0x1d0250);return _0x5391a8&&_0x1d0250&&$i(_0x507f41,_0x44ea77,_0x1d0250),_0x1d0250;},ee=(_0x1f8a96,_0x1ed1a6)=>(_0x332d3c,_0x48a1a6)=>_0x1ed1a6(_0x332d3c,_0x48a1a6,_0x1f8a96);exports[_0x3a2165(0x497)]=class extends a[_0x3a2165(0x441)]{constructor(_0x19973c,_0x536688,_0x5d1e66,_0x35ceb7,_0x517fa0,_0x18903f){const _0x364834=_0x3a2165;super(),this[_0x364834(0x267)]=_0x19973c,this[_0x364834(0x42d)]=_0x536688,this[_0x364834(0x3de)]=_0x5d1e66,this[_0x364834(0x1e8)]=_0x35ceb7,this[_0x364834(0x2b1)]=_0x517fa0,_0x18903f?_0x18903f==null||_0x18903f[_0x364834(0x329)]()[_0x364834(0xe7)](()=>this['_init']()):(this[_0x364834(0x42d)][_0x364834(0x3aa)](_0x364834(0x147),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x364834(0x1d9)]());}async[_0x3a2165(0x1d9)](){const _0x2883b7=_0x3a2165,_0x29262c=this['_urlService'][_0x2883b7(0x1e9)]('unit'),_0x426e8f=this['_urlService'][_0x2883b7(0x1e9)]('type');if(!_0x29262c||!_0x426e8f){this[_0x2883b7(0x42d)][_0x2883b7(0x3aa)]('[DataLoaderController]',_0x2883b7(0x3c8));return;}switch(Number(_0x426e8f)){case j['UNIVER_SHEET']:{const _0x2881af=await this[_0x2883b7(0x258)](_0x29262c);this['_setupSubUnitSync'](_0x2881af);break;}case j[_0x2883b7(0x34e)]:{await this[_0x2883b7(0x3c5)](_0x29262c);break;}default:{this[_0x2883b7(0x42d)]['error'](_0x2883b7(0x147),_0x2883b7(0xd4));break;}}}async[_0x3a2165(0x129)](_0x2d2e54){const _0x49a146=_0x3a2165;await this['_updateSubUnitFromURLParams'](_0x2d2e54),_0x2d2e54[_0x49a146(0x424)][_0x49a146(0x447)](v['takeUntil'](this[_0x49a146(0x15a)]))[_0x49a146(0x1ee)](_0x32183b=>{const _0x7d889b=_0x49a146;_0x32183b&&this[_0x7d889b(0x2d3)](_0x32183b);}),this[_0x49a146(0x267)][_0x49a146(0x128)][_0x49a146(0x447)](v[_0x49a146(0x27a)](this['dispose$']))[_0x49a146(0x1ee)](()=>this[_0x49a146(0x227)](_0x2d2e54));}[_0x3a2165(0x2d3)](_0x5bf85a,_0x99b6ef=!0x1){const _0x575b12=_0x3a2165,_0x8c1536=this['_urlService']['getParam'](_0x575b12(0x3fd));_0x5bf85a[_0x575b12(0x47d)]()!==_0x8c1536&&this[_0x575b12(0x267)][_0x575b12(0x2b5)]('subunit',_0x5bf85a[_0x575b12(0x47d)](),_0x99b6ef);}async['_updateSubUnitFromURLParams'](_0x35f64d){const _0x475d67=_0x3a2165;var _0x5125dd;const _0x983e5a=this[_0x475d67(0x267)][_0x475d67(0x1e9)](_0x475d67(0x3fd));if(!_0x983e5a||!_0x35f64d['getSheetBySheetId'](_0x983e5a)){const _0x373a98=_0x35f64d[_0x475d67(0xa7)]()[0x0],_0x434aa6=_0x35f64d['getSheetBySheetId'](_0x373a98);if(!_0x434aa6)return;this['_updateURLWithCurrentState'](_0x434aa6,!0x0),await this[_0x475d67(0x3de)][_0x475d67(0x1c2)](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x35f64d[_0x475d67(0x3ae)](),'subUnitId':_0x373a98});return;}((_0x5125dd=_0x35f64d[_0x475d67(0x23a)]())==null?void 0x0:_0x5125dd[_0x475d67(0x47d)]())!==_0x983e5a&&await this['_commandService'][_0x475d67(0x1c2)](C[_0x475d67(0x488)]['id'],{'unitId':_0x35f64d[_0x475d67(0x3ae)](),'subUnitId':_0x983e5a});}async[_0x3a2165(0x258)](_0x48f7c7){const _0x3fafc1=_0x3a2165;let _0x4c0248=0x0;const _0x46c108=await this['_localCacheService']['loadOfflineData'](_0x48f7c7);return _0x46c108&&(_0x46c108[_0x3fafc1(0x3e7)]||_0x46c108[_0x3fafc1(0x31e)][_0x3fafc1(0x3a5)]!==0x0)&&(_0x4c0248=_0x46c108[_0x3fafc1(0x1f4)]),_0x4c0248===0x0&&this[_0x3fafc1(0x42d)][_0x3fafc1(0x3aa)]('[DataLoaderController]',_0x3fafc1(0x28a)),this[_0x3fafc1(0x2b1)][_0x3fafc1(0x24a)](_0x48f7c7,_0x4c0248);}async[_0x3a2165(0x3c5)](_0xb8e52c){const _0x14a115=_0x3a2165;let _0x8ae191=0x0;const _0x534f00=await this[_0x14a115(0x1e8)][_0x14a115(0x152)](_0xb8e52c);return _0x534f00&&(_0x534f00['awaitingChangeset']||_0x534f00[_0x14a115(0x31e)][_0x14a115(0x3a5)]!==0x0)&&(_0x8ae191=_0x534f00[_0x14a115(0x1f4)]),_0x8ae191===0x0&&this[_0x14a115(0x42d)][_0x14a115(0x3aa)](_0x14a115(0x147),_0x14a115(0x28a)),this['_snapshotService']['loadDoc'](_0xb8e52c,_0x8ae191);}},exports['DataLoaderController']=xi([ee(0x0,ze),ee(0x1,a['ILogService']),ee(0x2,a[_0x3a2165(0x3e2)]),ee(0x3,a['Inject'](exports['LocalCacheService'])),ee(0x4,a[_0x3a2165(0x426)](_[_0x3a2165(0x2d5)])),ee(0x5,a[_0x3a2165(0x4b6)](Wt[_0x3a2165(0x219)]))],exports[_0x3a2165(0x497)]);var ki=Object['defineProperty'],Bi=Object[_0x3a2165(0x383)],Vi=(_0x16c208,_0x158b9e,_0xe5bfbf,_0x40656c)=>{const _0x129b8e=_0x3a2165;for(var _0x516c32=_0x40656c>0x1?void 0x0:_0x40656c?Bi(_0x158b9e,_0xe5bfbf):_0x158b9e,_0x2f9226=_0x16c208[_0x129b8e(0x3a5)]-0x1,_0xab3d0d;_0x2f9226>=0x0;_0x2f9226--)(_0xab3d0d=_0x16c208[_0x2f9226])&&(_0x516c32=(_0x40656c?_0xab3d0d(_0x158b9e,_0xe5bfbf,_0x516c32):_0xab3d0d(_0x516c32))||_0x516c32);return _0x40656c&&_0x516c32&&ki(_0x158b9e,_0xe5bfbf,_0x516c32),_0x516c32;},at=(_0x4f28a7,_0x912457)=>(_0x23fc0c,_0x5a98eb)=>_0x912457(_0x23fc0c,_0x5a98eb,_0x4f28a7);const Wi=_0x3a2165(0x2fa),Fi=_0x3a2165(0x4b5);let Ie=class extends a[_0x3a2165(0x287)]{constructor(_0x5d6ee3,_0x538fd6){const _0x1f598b=_0x3a2165;super(),this[_0x1f598b(0x406)]=_0x5d6ee3,this[_0x1f598b(0x105)]=_0x538fd6,this[_0x1f598b(0x1d9)]();}[_0x3a2165(0x1d9)](){const _0x278043=_0x3a2165;this[_0x278043(0x167)](this[_0x278043(0x406)][_0x278043(0x35d)][_0x278043(0x1ee)](()=>{const _0x2a93db=_0x278043;var _0x3f8147;const _0x39054d=this[_0x2a93db(0x406)][_0x2a93db(0x1a0)]();let _0x345323=(_0x3f8147=this['_configService'][_0x2a93db(0x347)](Wi))!=null?_0x3f8147:Fi;_0x39054d instanceof a['Workbook']&&(_0x345323=_0x39054d['name']),document[_0x2a93db(0x276)]=_0x345323;}));}};Ie=Vi([at(0x0,a[_0x3a2165(0x137)]),at(0x1,a[_0x3a2165(0xd1)])],Ie);var Gi=Object['defineProperty'],Yi=Object[_0x3a2165(0x383)],Ki=(_0x470bf0,_0x33b497,_0x114e93,_0x246013)=>{const _0xfb478=_0x3a2165;for(var _0x5501be=_0x246013>0x1?void 0x0:_0x246013?Yi(_0x33b497,_0x114e93):_0x33b497,_0x3a8dc6=_0x470bf0[_0xfb478(0x3a5)]-0x1,_0x416f9e;_0x3a8dc6>=0x0;_0x3a8dc6--)(_0x416f9e=_0x470bf0[_0x3a8dc6])&&(_0x5501be=(_0x246013?_0x416f9e(_0x33b497,_0x114e93,_0x5501be):_0x416f9e(_0x5501be))||_0x5501be);return _0x246013&&_0x5501be&&Gi(_0x33b497,_0x114e93,_0x5501be),_0x5501be;},Le=(_0x57350e,_0x35f57a)=>(_0x37cd21,_0x3087e6)=>_0x35f57a(_0x37cd21,_0x3087e6,_0x57350e);let pe=class{constructor(_0x29866b,_0x1ac639,_0x37d183){const _0x1557fb=_0x3a2165;this[_0x1557fb(0x105)]=_0x29866b,this[_0x1557fb(0x40e)]=_0x1ac639,this[_0x1557fb(0x28b)]=_0x37d183,this['init']();}[_0x3a2165(0x4a9)](){const _0x483199=_0x3a2165;this[_0x483199(0x40e)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x2185b9,_0x456496)=>_0x456496(_0x2185b9)[_0x483199(0x447)](v[_0x483199(0xa2)](async _0xe0e94c=>{const _0x24e817=_0x483199,_0x59a3d0=_0xe0e94c;if(_0x59a3d0['status']===0x191&&window[_0x24e817(0x134)](this['localeService']['t'](_0x24e817(0x2b8)))){const _0x2c3852=window['encodeURIComponent'](window[_0x24e817(0xd9)][_0x24e817(0x181)]);window[_0x24e817(0xd9)][_0x24e817(0x181)]=this[_0x24e817(0x223)]()+_0x24e817(0x13a)+_0x2c3852;}return _0x59a3d0;}))});}[_0x3a2165(0x223)](){const _0x4f6cfd=_0x3a2165;var _0x11a9b3,_0x6d9bd3;const _0x2462ce=this[_0x4f6cfd(0x105)]['getConfig'](mt),_0x257cf5=this[_0x4f6cfd(0x105)][_0x4f6cfd(0x347)](A);return(_0x6d9bd3=(_0x11a9b3=_0x257cf5==null?void 0x0:_0x257cf5[_0x4f6cfd(0x15d)])!=null?_0x11a9b3:_0x2462ce)!=null?_0x6d9bd3:es;}};pe=Ki([Le(0x0,a[_0x3a2165(0xd1)]),Le(0x1,a[_0x3a2165(0x426)](P[_0x3a2165(0x1d8)])),Le(0x2,a[_0x3a2165(0x426)](a[_0x3a2165(0x3ff)]))],pe);var Xi=Object[_0x3a2165(0x1e2)],qi=Object[_0x3a2165(0x383)],zi=(_0xff4e6,_0x3a0fb0,_0x210766,_0x3a6399)=>{const _0x3317c2=_0x3a2165;for(var _0x29c490=_0x3a6399>0x1?void 0x0:_0x3a6399?qi(_0x3a0fb0,_0x210766):_0x3a0fb0,_0x3d3c6a=_0xff4e6[_0x3317c2(0x3a5)]-0x1,_0x229cfc;_0x3d3c6a>=0x0;_0x3d3c6a--)(_0x229cfc=_0xff4e6[_0x3d3c6a])&&(_0x29c490=(_0x3a6399?_0x229cfc(_0x3a0fb0,_0x210766,_0x29c490):_0x229cfc(_0x29c490))||_0x29c490);return _0x3a6399&&_0x29c490&&Xi(_0x3a0fb0,_0x210766,_0x29c490),_0x29c490;},ct=(_0xd1a66e,_0x42a344)=>(_0x327a3f,_0x39d293)=>_0x42a344(_0x327a3f,_0x39d293,_0xd1a66e);const Mt=_0x3a2165(0x300),Ji=_0x3a2165(0x3a3);exports['AuthzIoHttpService']=class extends a[_0x3a2165(0x287)]{constructor(_0x4d9cf0,_0x2d04fd){const _0x2c710d=_0x3a2165;super(),this[_0x2c710d(0xe6)]=_0x4d9cf0,this[_0x2c710d(0x105)]=_0x2d04fd,this[_0x2c710d(0x168)]();}[_0x3a2165(0x168)](){const _0x2c4718=_0x3a2165,_0xc86bef=this;this['disposeWithMe'](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':P[_0x2c4718(0x342)]({'isMatch'(_0x78ce26){const _0x12727d=_0x2c4718;var _0x3515c1;if(_0x78ce26['method']===_0x12727d(0x12c)&&((_0x3515c1=_0x78ce26[_0x12727d(0x1b6)])!=null&&_0x3515c1[_0x12727d(0x135)])){const {objectID:_0x3d1de1,objectType:_0x503bdc}=_0x78ce26['requestParams'][_0x12727d(0x135)]||{};if(!_0x3d1de1||_0x503bdc===void 0x0)return!0x1;const _0x3dca77=_0xc86bef[_0x12727d(0x150)]()+'/'+_0x503bdc+_0x12727d(0x24e)+_0x3d1de1+'/allowed';if(_0x78ce26[_0x12727d(0x236)]===_0x3dca77)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x532f1b){const _0x2edeed=_0x2c4718;var _0x4e4d74;return(_0x4e4d74=_0x532f1b[_0x2edeed(0x1b6)])==null?void 0x0:_0x4e4d74[_0x2edeed(0x135)];},'mergeParamsToRequest'(_0x5f41a7,_0x1b33ec){const _0x390a5a=_0x2c4718,_0x43991a=_0xc86bef[_0x390a5a(0x150)]()+_0x390a5a(0x285),_0x118474=_0x5f41a7['reduce']((_0xc8e0a2,_0x528505)=>{const _0x476622=_0x390a5a,{unitID:_0xf0ebe9,objectID:_0x341173,objectType:_0x3d6831,actions:_0x493e7f}=_0x528505;return _0xc8e0a2[_0xf0ebe9]||(_0xc8e0a2[_0xf0ebe9]={}),_0xc8e0a2[_0xf0ebe9][_0x341173]||(_0xc8e0a2[_0xf0ebe9][_0x341173]={'objectID':_0x341173,'objectType':_0x3d6831,'actions':[]}),_0xc8e0a2[_0xf0ebe9][_0x341173][_0x476622(0x3a9)][_0x476622(0x339)](..._0x493e7f),_0xc8e0a2;},{}),_0x56ebea=[];for(const _0x55bdd9 in _0x118474)for(const _0x5e448b in _0x118474[_0x55bdd9]){const {actions:_0xa75c06,objectType:_0x4bed2d}=_0x118474[_0x55bdd9][_0x5e448b],_0x283025=[...new Set(_0xa75c06)];_0x56ebea['push']({'unitID':_0x55bdd9,'objectID':_0x5e448b,'objectType':_0x4bed2d,'actions':_0x283025});}return new P[(_0x390a5a(0x33d))](_0x390a5a(0x12c),_0x43991a,{'headers':_0x1b33ec[_0x390a5a(0x4af)],'withCredentials':_0x1b33ec['withCredentials'],'responseType':_0x1b33ec[_0x390a5a(0x3ca)],'body':{'requests':_0x56ebea}});}},{'distributeResult'(_0x1b0ed9,_0xa82d97){const _0x26ef71=_0x2c4718,{objectActions:_0xf7ac29}=_0x1b0ed9;return _0xa82d97[_0x26ef71(0x331)](_0x20b972=>{const _0x5bdb44=_0x26ef71,{unitID:_0x391594,objectID:_0xb2cfeb,actions:_0x171740}=_0x20b972,_0x186be7=_0xf7ac29['find'](_0x5b4c67=>_0x5b4c67['unitID']===_0x391594&&_0x5b4c67[_0x5bdb44(0x3e4)]===_0xb2cfeb),_0x296afb=_0x171740[_0x5bdb44(0x331)](_0x433ab8=>_0x186be7==null?void 0x0:_0x186be7[_0x5bdb44(0x3a9)][_0x5bdb44(0x3eb)](_0x49d01f=>_0x49d01f[_0x5bdb44(0x122)]===_0x433ab8))[_0x5bdb44(0xe8)](_0x115f66=>!!_0x115f66);return{'config':_0x20b972,'result':{'actions':_0x296afb,'error':_0x1b0ed9[_0x5bdb44(0x442)]}};});}})}));}['_getAPIPrefixPath'](){const _0x4212a0=_0x3a2165;var _0x5031d2,_0x2d6f28;const _0x5e8e7a=this[_0x4212a0(0x105)]['getConfig'](Mt),_0x92ad5d=this[_0x4212a0(0x105)][_0x4212a0(0x347)](A);return(_0x2d6f28=(_0x5031d2=_0x92ad5d==null?void 0x0:_0x92ad5d[_0x4212a0(0x1ca)])!=null?_0x5031d2:_0x5e8e7a)!=null?_0x2d6f28:Ji;}async[_0x3a2165(0x14e)](_0x856a61){const _0x39cec5=_0x3a2165,_0x35ad6f=this[_0x39cec5(0x150)]()+'/'+_0x856a61[_0x39cec5(0x208)]+_0x39cec5(0x349);return(await this[_0x39cec5(0xe6)][_0x39cec5(0x468)](_0x35ad6f,{'body':_0x856a61}))['body'][_0x39cec5(0x3e4)]||'';}async[_0x3a2165(0x4b4)](_0x1e43d0){const _0x25aef9=_0x3a2165,_0x1b838a=this[_0x25aef9(0x150)]()+_0x25aef9(0x34f);return(await this['_HTTPService'][_0x25aef9(0x468)](_0x1b838a,{'body':_0x1e43d0}))[_0x25aef9(0x135)][_0x25aef9(0x35b)];}async['update'](_0x318b95){const _0x5cfc3f=_0x3a2165,_0x1c27fa=this[_0x5cfc3f(0x150)]()+'/'+_0x318b95[_0x5cfc3f(0x208)]+_0x5cfc3f(0x24e)+_0x318b95[_0x5cfc3f(0x3e4)];await this['_HTTPService']['put'](_0x1c27fa,{'body':_0x318b95});}async[_0x3a2165(0x242)](_0x579b4d){const _0x54734c=_0x3a2165,_0x3ea9dc=this[_0x54734c(0x150)]()+'/'+_0x579b4d['objectType']+_0x54734c(0x24e)+_0x579b4d['objectID']+_0x54734c(0x48c);return(await this[_0x54734c(0xe6)][_0x54734c(0x468)](_0x3ea9dc,{'body':_0x579b4d}))[_0x54734c(0x135)]['actions'];}async['batchAllowed'](_0x3f5398){const _0xc0b278=_0x3a2165,_0x14b10b=this[_0xc0b278(0x150)]()+_0xc0b278(0x285);return(await this[_0xc0b278(0xe6)]['post'](_0x14b10b,{'body':{'requests':_0x3f5398}}))[_0xc0b278(0x135)][_0xc0b278(0x34b)];}async[_0x3a2165(0x362)](_0x17d9a4){const _0x87b81=_0x3a2165,_0x15870e=this[_0x87b81(0x150)]()+'/'+_0x17d9a4[_0x87b81(0x208)]+'/role',_0x39ddfc=await this[_0x87b81(0xe6)][_0x87b81(0x468)](_0x15870e,{'body':_0x17d9a4});return{'roles':_0x39ddfc[_0x87b81(0x135)]['roles'],'actions':_0x39ddfc['body'][_0x87b81(0x3a9)]};}async[_0x3a2165(0x44d)](_0x10d80c){const _0x137873=_0x3a2165,_0x56928e=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x137873(0xe6)][_0x137873(0x140)](_0x56928e,{'params':{'collaboratorID':_0x10d80c[_0x137873(0xf1)],'objectID':_0x10d80c[_0x137873(0x3e4)],'unitID':_0x10d80c[_0x137873(0x438)]}});}async[_0x3a2165(0x23d)](_0x1e35f){const _0x3fbf43=_0x3a2165,_0x19c60d=this[_0x3fbf43(0x150)]()+_0x3fbf43(0x1a1);await this[_0x3fbf43(0xe6)][_0x3fbf43(0x315)](_0x19c60d,{'body':_0x1e35f});}async[_0x3a2165(0xe1)](_0x3edebb){const _0x351171=_0x3a2165,_0x59b625=this[_0x351171(0x150)]()+_0x351171(0x1a1);await this['_HTTPService'][_0x351171(0x468)](_0x59b625,{'body':_0x3edebb});}async[_0x3a2165(0x3af)](_0x5dc5bc){const _0x3b852b=_0x3a2165,_0x40950f=this[_0x3b852b(0x150)]()+'/collaborator';return(await this['_HTTPService'][_0x3b852b(0x305)](_0x40950f,{'params':{'objectID':_0x5dc5bc['objectID'],'unitID':_0x5dc5bc['unitID']}}))[_0x3b852b(0x135)][_0x3b852b(0x39a)];}async[_0x3a2165(0x279)](_0x4109ae){const _0x5790f6=_0x3a2165,_0x4a39a8=this[_0x5790f6(0x150)]()+_0x5790f6(0x1a1);await this[_0x5790f6(0xe6)][_0x5790f6(0x1bb)](_0x4a39a8,{'body':_0x4109ae});}},exports['AuthzIoHttpService']=zi([ct(0x0,a[_0x3a2165(0x426)](P['HTTPService'])),ct(0x1,a[_0x3a2165(0x426)](a['IConfigService']))],exports[_0x3a2165(0x3bb)]);var Zi=Object[_0x3a2165(0x1e2)],Qi=Object['getOwnPropertyDescriptor'],en=(_0xf66ab5,_0x2ac4a1,_0x193bb7,_0x383e83)=>{const _0x55fbca=_0x3a2165;for(var _0x3919c8=_0x383e83>0x1?void 0x0:_0x383e83?Qi(_0x2ac4a1,_0x193bb7):_0x2ac4a1,_0x19b1f4=_0xf66ab5[_0x55fbca(0x3a5)]-0x1,_0x26896f;_0x19b1f4>=0x0;_0x19b1f4--)(_0x26896f=_0xf66ab5[_0x19b1f4])&&(_0x3919c8=(_0x383e83?_0x26896f(_0x2ac4a1,_0x193bb7,_0x3919c8):_0x26896f(_0x3919c8))||_0x3919c8);return _0x383e83&&_0x3919c8&&Zi(_0x2ac4a1,_0x193bb7,_0x3919c8),_0x3919c8;},tn=(_0x11965e,_0x59a6d9)=>(_0x5445fe,_0x3c6373)=>_0x59a6d9(_0x5445fe,_0x3c6373,_0x11965e);let Ce=class{constructor(_0x22df14){const _0x33a113=_0x3a2165;this['_httpService']=_0x22df14,this[_0x33a113(0x1a4)]();}['_initRequestHeader'](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0xfae93e,_0x2caef6)=>{const _0x5a7907=_0x4ca1,_0x1ae030=_0xfae93e[_0x5a7907(0x4af)],_0x30d5c8=Ft[_0x5a7907(0x22a)]();return _0x30d5c8&&_0x1ae030['set'](_0x5a7907(0x1e7),_0x30d5c8),_0x2caef6(_0xfae93e);}});}};Ce=en([tn(0x0,a[_0x3a2165(0x426)](P['HTTPService']))],Ce);var sn=Object[_0x3a2165(0x1e2)],nn=Object['getOwnPropertyDescriptor'],rn=(_0x40059d,_0x4d3e7,_0x291fdb,_0xcf18fb)=>{const _0x1af97f=_0x3a2165;for(var _0x2412ed=_0xcf18fb>0x1?void 0x0:_0xcf18fb?nn(_0x4d3e7,_0x291fdb):_0x4d3e7,_0x124df7=_0x40059d[_0x1af97f(0x3a5)]-0x1,_0x2a7dd5;_0x124df7>=0x0;_0x124df7--)(_0x2a7dd5=_0x40059d[_0x124df7])&&(_0x2412ed=(_0xcf18fb?_0x2a7dd5(_0x4d3e7,_0x291fdb,_0x2412ed):_0x2a7dd5(_0x2412ed))||_0x2412ed);return _0xcf18fb&&_0x2412ed&&sn(_0x4d3e7,_0x291fdb,_0x2412ed),_0x2412ed;},je=(_0x31cb4e,_0x76535e)=>(_0xb3d490,_0x209648)=>_0x76535e(_0xb3d490,_0x209648,_0x31cb4e);const on=[_0x3a2165(0x31f),_0x3a2165(0x224),_0x3a2165(0x2af),_0x3a2165(0x3f1),_0x3a2165(0x43d)],an=0x5*0x400*0x400,cn='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',ln=_0x3a2165(0x26d),hn=_0x3a2165(0x485),_n=_0x3a2165(0x2e6);exports[_0x3a2165(0x278)]=class{constructor(_0xe045cc,_0x13bbb4,_0x4c5112){const _0x468931=_0x3a2165;d(this,'_waitCount',0x0),d(this,_0x468931(0x145),new v['Subject']()),d(this,'change$',this['_change$']),d(this,_0x468931(0x301),new Map()),(this[_0x468931(0x40e)]=_0xe045cc,this[_0x468931(0x105)]=_0x13bbb4,this['_univerInstanceService']=_0x4c5112);}[_0x3a2165(0x225)](_0xc7cf45){const _0x24adb4=_0x3a2165;this[_0x24adb4(0x386)]=_0xc7cf45,this[_0x24adb4(0x145)][_0x24adb4(0x2c6)](_0xc7cf45);}['getImageSourceCache'](_0x36eed8,_0x29ed24){const _0x2cae03=_0x3a2165;if(_0x29ed24===L[_0x2cae03(0x3d4)]['BASE64']){const _0x28dd70=new Image();return _0x28dd70[_0x2cae03(0x2ec)]=_0x36eed8,_0x28dd70;}return this[_0x2cae03(0x301)][_0x2cae03(0x305)](_0x36eed8);}[_0x3a2165(0x20f)](_0x437c38,_0x910a43,_0x211ea9){const _0x57a620=_0x3a2165;_0x910a43===L[_0x57a620(0x3d4)][_0x57a620(0x3cf)]||_0x211ea9==null||this['_imageSourceCache']['set'](_0x437c38,_0x211ea9);}async[_0x3a2165(0x466)](_0x4cb8c9){const _0x17c3e1=_0x3a2165;try{const _0x4acb42=this[_0x17c3e1(0x241)](this[_0x17c3e1(0x297)](),''+_0x4cb8c9),_0x3fb65e=(await this[_0x17c3e1(0x40e)]['get'](_0x4acb42))[_0x17c3e1(0x135)];if(_0x3fb65e[_0x17c3e1(0x442)]&&_0x3fb65e[_0x17c3e1(0x442)]['code']===It['OK']){const _0x44f607=new URL(_0x3fb65e['url'],this[_0x17c3e1(0x1f8)]())[_0x17c3e1(0x3b5)]();return Promise[_0x17c3e1(0x31b)](_0x44f607);}return Promise['reject'](_0x3fb65e[_0x17c3e1(0x442)]);}catch(_0x1c83af){return Promise[_0x17c3e1(0x37a)](_0x1c83af);}}async[_0x3a2165(0x439)](_0x337cde){const _0x131d98=_0x3a2165;let _0x58a072='';if(!on[_0x131d98(0x3f3)](_0x337cde[_0x131d98(0x3a4)]))return this[_0x131d98(0x324)](),Promise[_0x131d98(0x37a)](new Error(L['ImageUploadStatusType'][_0x131d98(0x4b7)]));if(_0x337cde[_0x131d98(0x20e)]>an)return this[_0x131d98(0x324)](),Promise[_0x131d98(0x37a)](new Error(L['ImageUploadStatusType'][_0x131d98(0x38a)]));try{const _0x243ff6=new FormData();_0x243ff6[_0x131d98(0xac)](_0x131d98(0x423),_0x337cde);const _0x20f456=this[_0x131d98(0x406)][_0x131d98(0x1a0)](),_0xa3c261=_0x20f456==null?void 0x0:_0x20f456['getUnitId']();if(!_0xa3c261)throw new Error(_0x131d98(0x3ba));const _0x58abd3=this[_0x131d98(0xa6)]()+_0x131d98(0x38c)+_0x337cde[_0x131d98(0x20e)][_0x131d98(0x3b5)]()+'&source='+pt[_0x131d98(0x2ca)]+_0x131d98(0x16a)+encodeURIComponent(_0xa3c261),_0x4f90b9=await(await fetch(_0x58abd3,{'method':_0x131d98(0x12c),'body':_0x243ff6}))['json']();if(typeof _0x4f90b9[_0x131d98(0x37d)]!=_0x131d98(0x40c))return this[_0x131d98(0x324)](),Promise[_0x131d98(0x37a)](new Error(L[_0x131d98(0x4a0)][_0x131d98(0x284)]));_0x58a072=_0x4f90b9['FileId'];}catch{return this['_decreaseWaiting'](),Promise[_0x131d98(0x37a)](new Error(L['ImageUploadStatusType'][_0x131d98(0x284)]));}return new Promise((_0x15be77,_0x23be6d)=>{const _0x28080e=_0x131d98,_0xc63b2f=new FileReader();_0xc63b2f[_0x28080e(0x207)](_0x337cde),_0xc63b2f[_0x28080e(0x235)]=_0x3a124e=>{const _0x49a3a3=_0x28080e;var _0x5949b9;const _0x168705=(_0x5949b9=_0x3a124e['target'])==null?void 0x0:_0x5949b9[_0x49a3a3(0x109)];if(_0x168705==null){this[_0x49a3a3(0x324)](),_0x23be6d(new Error(L['ImageUploadStatusType'][_0x49a3a3(0x284)]));return;}const _0x15574b=a[_0x49a3a3(0x483)]['generateRandomId'](0x6);_0x15be77({'imageId':_0x15574b,'imageSourceType':L['ImageSourceType'][_0x49a3a3(0x188)],'source':_0x58a072,'base64Cache':_0x168705,'status':L['ImageUploadStatusType'][_0x49a3a3(0x1c8)]}),this[_0x49a3a3(0x324)]();};});}[_0x3a2165(0xa6)](){const _0x21cce8=_0x3a2165;var _0x587ec7,_0x269969;const _0x2f604f=this['_configService']['getConfig'](cn),_0x299533=this['_configService'][_0x21cce8(0x347)](A);return(_0x269969=(_0x587ec7=_0x299533==null?void 0x0:_0x299533[_0x21cce8(0x19f)])!=null?_0x587ec7:_0x2f604f)!=null?_0x269969:ln;}[_0x3a2165(0x297)](){const _0xf9e931=_0x3a2165;var _0x2f0230,_0x1d8f95;const _0x2ccfc6=this['_configService'][_0xf9e931(0x347)](hn),_0x4ac56e=this[_0xf9e931(0x105)]['getConfig'](A);return(_0x1d8f95=(_0x2f0230=_0x4ac56e==null?void 0x0:_0x4ac56e[_0xf9e931(0x1c6)])!=null?_0x2f0230:_0x2ccfc6)!=null?_0x1d8f95:_n;}[_0x3a2165(0x1f8)](){const _0x2fd07b=_0x3a2165;var _0x2c9ee0;const _0x4333d9=this[_0x2fd07b(0x105)][_0x2fd07b(0x347)](A);return(_0x2c9ee0=_0x4333d9==null?void 0x0:_0x4333d9[_0x2fd07b(0x119)])!=null?_0x2c9ee0:location[_0x2fd07b(0x4ad)];}[_0x3a2165(0x241)](_0x111008,_0x3d8c9d){const _0x2e3ff2=_0x3a2165;return _0x111008[_0x2e3ff2(0x295)]('{fileID}',_0x3d8c9d);}[_0x3a2165(0x324)](){const _0x365af3=_0x3a2165;this[_0x365af3(0x386)]-=0x1,this['_change$'][_0x365af3(0x2c6)](this[_0x365af3(0x386)]);}},exports[_0x3a2165(0x278)]=rn([je(0x0,a[_0x3a2165(0x426)](P[_0x3a2165(0x1d8)])),je(0x1,a[_0x3a2165(0xd1)]),je(0x2,a[_0x3a2165(0x426)](a[_0x3a2165(0x137)]))],exports['ImageIoService']);var un=Object[_0x3a2165(0x1e2)],dn=Object[_0x3a2165(0x383)],Sn=(_0x4a61a0,_0x213915,_0x147291,_0x44ab21)=>{for(var _0x1f6d32=_0x44ab21>0x1?void 0x0:_0x44ab21?dn(_0x213915,_0x147291):_0x213915,_0x368420=_0x4a61a0['length']-0x1,_0x11d368;_0x368420>=0x0;_0x368420--)(_0x11d368=_0x4a61a0[_0x368420])&&(_0x1f6d32=(_0x44ab21?_0x11d368(_0x213915,_0x147291,_0x1f6d32):_0x11d368(_0x1f6d32))||_0x1f6d32);return _0x44ab21&&_0x1f6d32&&un(_0x213915,_0x147291,_0x1f6d32),_0x1f6d32;},he=(_0x268440,_0x3deb2e)=>(_0x1853f7,_0x8f91d1)=>_0x3deb2e(_0x1853f7,_0x8f91d1,_0x268440);let Ee=class extends a[_0x3a2165(0x441)]{constructor(_0x15f608,_0x13b7e4,_0x3bfa09,_0x228ec0,_0x86c594){const _0x4b8217=_0x3a2165;super(),this[_0x4b8217(0x3be)]=_0x15f608,this[_0x4b8217(0x406)]=_0x13b7e4,this[_0x4b8217(0x1cb)]=_0x3bfa09,this[_0x4b8217(0x274)]=_0x228ec0,this[_0x4b8217(0x1d6)]=_0x86c594,this[_0x4b8217(0x28e)](),this[_0x4b8217(0x253)]();}[_0x3a2165(0x253)](){const _0x3a2f4d=_0x3a2165,_0x50f8a5=async _0x2e7c47=>{const _0x5c266e=_0x4ca1;(await this[_0x5c266e(0x274)][_0x5c266e(0x41a)](_0x2e7c47))[_0x5c266e(0x354)]['pipe'](E[_0x5c266e(0xe8)](_0x9c4b54=>_0x9c4b54['eventID']===_[_0x5c266e(0x39b)][_0x5c266e(0x206)]),E[_0x5c266e(0x27a)](this[_0x5c266e(0x15a)]))[_0x5c266e(0x1ee)](_0x1fd8be=>{const _0x305997=_0x5c266e,_0x5b02a=_0x1fd8be,{reason:_0x513573}=_0x5b02a[_0x305997(0x124)];this['_injector']['get'](N[_0x305997(0x39e)])[_0x305997(0x113)]({'type':X['MessageType'][_0x305997(0x104)],'content':this[_0x305997(0x1d6)]['t'](_0x305997(0x381))+'('+_0x513573+')'}),this[_0x305997(0x1cb)][_0x305997(0x33f)](new C[(_0x305997(0x1c4))](_0x2e7c47)['id'],!0x1),this[_0x305997(0x274)]['closeSession'](_0x2e7c47);});};v['merge'](this['_univerInstanceService'][_0x3a2f4d(0x31c)](a[_0x3a2f4d(0x461)][_0x3a2f4d(0x21f)]),this[_0x3a2f4d(0x406)]['getTypeOfUnitAdded$'](a['UniverInstanceType']['UNIVER_DOC']))[_0x3a2f4d(0x447)](E[_0x3a2f4d(0x331)](_0x166396=>_0x166396['getUnitId']()),E['filter'](_0x2743ed=>!a[_0x3a2f4d(0xe2)](_0x2743ed)),E[_0x3a2f4d(0x27a)](this[_0x3a2f4d(0x15a)]))[_0x3a2f4d(0x1ee)](_0x5299e8=>{_0x50f8a5(_0x5299e8);});}[_0x3a2165(0x28e)](){const _0x5e6418=_0x3a2165,_0x218a81=async _0x39c67c=>{const _0x114c7d=_0x4ca1;(await this[_0x114c7d(0x274)][_0x114c7d(0x41a)](_0x39c67c))[_0x114c7d(0x354)][_0x114c7d(0x447)](E['filter'](_0x30879f=>_0x30879f['eventID']===_[_0x114c7d(0x39b)][_0x114c7d(0x41f)]),E[_0x114c7d(0x27a)](this['dispose$']))['subscribe'](_0x18cacf=>{const _0x466ed6=_0x114c7d,_0x2d1500=_0x18cacf,{objectId:_0x7c35d9}=_0x2d1500[_0x466ed6(0x124)],_0x4dc35b=this[_0x466ed6(0x3be)]['get'](te[_0x466ed6(0x1ff)]);_0x7c35d9===_0x39c67c?_0x4dc35b[_0x466ed6(0x370)](_0x39c67c):_0x4dc35b[_0x466ed6(0x172)](_0x39c67c,_0x7c35d9);});};v[_0x5e6418(0x2e2)](this[_0x5e6418(0x406)][_0x5e6418(0x31c)](a[_0x5e6418(0x461)][_0x5e6418(0x21f)]),this['_univerInstanceService'][_0x5e6418(0x31c)](a[_0x5e6418(0x461)][_0x5e6418(0x34e)]))[_0x5e6418(0x447)](E[_0x5e6418(0x331)](_0x57d32f=>_0x57d32f[_0x5e6418(0x3ae)]()),E[_0x5e6418(0xe8)](_0x9a5c99=>!a['isInternalEditorID'](_0x9a5c99)),E[_0x5e6418(0x27a)](this['dispose$']))[_0x5e6418(0x1ee)](_0x4a921f=>{_0x218a81(_0x4a921f);});}};Ee=Sn([he(0x0,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),he(0x1,a[_0x3a2165(0x137)]),he(0x2,a[_0x3a2165(0x277)]),he(0x3,a[_0x3a2165(0x426)](exports[_0x3a2165(0x16c)])),he(0x4,a['Inject'](a[_0x3a2165(0x3ff)]))],Ee);var vn=Object['defineProperty'],fn=Object[_0x3a2165(0x383)],gn=(_0x24200a,_0x1e3536,_0x208693,_0x18bdd0)=>{for(var _0x1e4885=_0x18bdd0>0x1?void 0x0:_0x18bdd0?fn(_0x1e3536,_0x208693):_0x1e3536,_0x2909f8=_0x24200a['length']-0x1,_0x4eb976;_0x2909f8>=0x0;_0x2909f8--)(_0x4eb976=_0x24200a[_0x2909f8])&&(_0x1e4885=(_0x18bdd0?_0x4eb976(_0x1e3536,_0x208693,_0x1e4885):_0x4eb976(_0x1e4885))||_0x1e4885);return _0x18bdd0&&_0x1e4885&&vn(_0x1e3536,_0x208693,_0x1e4885),_0x1e4885;},lt=(_0x355162,_0xa55135)=>(_0xbdd491,_0x1bbe74)=>_0xa55135(_0xbdd491,_0x1bbe74,_0x355162);exports[_0x3a2165(0x3d3)]=class{constructor(_0x181aac,_0x8d67c6){const _0x2107eb=_0x3a2165;this[_0x2107eb(0x105)]=_0x181aac,this['_httpService']=_0x8d67c6;}async[_0x3a2165(0x155)](_0x394021,_0x599875){const _0x421b96=_0x3a2165;var _0xbb130b;const {unitID:_0x23c03d,type:_0x4150b9,revision:_0x35208c=0x0}=_0x599875,_0x2371bf=this['_getSnapshotAPIPrefix']()+'/'+_0x4150b9+'/unit/'+_0x23c03d+_0x421b96(0x28c)+_0x35208c,_0x36d9ad=(await this[_0x421b96(0x40e)][_0x421b96(0x305)](_0x2371bf))[_0x421b96(0x135)],_0x31a6d0=(_0xbb130b=_0x36d9ad[_0x421b96(0x2cd)])==null?void 0x0:_0xbb130b[_0x421b96(0x2c5)];if(_0x31a6d0){const _0x21a968=_0x31a6d0==null?void 0x0:_0x31a6d0['originalMeta'],_0x5d7c07=_[_0x421b96(0x275)]['encode'](_[_0x421b96(0x259)](_0x21a968));_0x31a6d0['originalMeta']=_0x5d7c07,Object[_0x421b96(0x3f0)](_0x31a6d0[_0x421b96(0x487)])[_0x421b96(0x337)](([,_0x1a6eb])=>{const _0x1f5658=_0x421b96,_0x60850a=_0x1a6eb[_0x1f5658(0x306)],_0x5ee78b=_[_0x1f5658(0x275)][_0x1f5658(0x10d)](_[_0x1f5658(0x259)](_0x60850a));_0x1a6eb['originalMeta']=_0x5ee78b;});}return _0x36d9ad;}async[_0x3a2165(0x493)](_0x2f46b8,_0x1b17ac){const _0x5909e8=_0x3a2165,{unitID:_0x5926b6,type:_0x1d3208,blockID:_0x24fcb5}=_0x1b17ac,_0x51fc74=this[_0x5909e8(0xb8)]()+'/'+_0x1d3208+'/unit/'+_0x5926b6+'/block/'+_0x24fcb5;return(await this[_0x5909e8(0x40e)][_0x5909e8(0x305)](_0x51fc74))[_0x5909e8(0x135)];}async[_0x3a2165(0x38b)](_0x46e395,_0x3ab55d){const _0x9dc354=_0x3a2165,{unitID:_0x212993,type:_0x50f535,blockID:_0x34884b}=_0x3ab55d,_0x21456f=this[_0x9dc354(0xb8)]()+'/block/'+_0x50f535+_0x9dc354(0x384)+_0x212993+_0x9dc354(0x2d7)+_0x34884b;return(await this[_0x9dc354(0x40e)][_0x9dc354(0x305)](_0x21456f))[_0x9dc354(0x135)];}async[_0x3a2165(0x26e)](_0x5ddd82,_0x2180d0){const _0x41efe5=_0x3a2165,{unitID:_0x49cdf1,type:_0x57dec6,from:_0x3f7b41,to:_0xbe22e0}=_0x2180d0,_0x514aac=this[_0x41efe5(0xb8)]()+'/'+_0x57dec6+_0x41efe5(0x384)+_0x49cdf1+'/fetchmissing?from='+_0x3f7b41+_0x41efe5(0x25a)+_0xbe22e0;return(await this[_0x41efe5(0x40e)][_0x41efe5(0x305)](_0x514aac))[_0x41efe5(0x135)];}[_0x3a2165(0x175)](){const _0x2e6e12=_0x3a2165;var _0x482802;return(_0x482802=this[_0x2e6e12(0x105)][_0x2e6e12(0x347)](_t))!=null?_0x482802:this['_getAPIPrefix']();}[_0x3a2165(0xb8)](){const _0x22ae62=_0x3a2165;var _0x539b20,_0x1c1e41;const _0x504ee5=this[_0x22ae62(0x105)][_0x22ae62(0x347)](ht),_0x409c25=this[_0x22ae62(0x105)]['getConfig'](A);return(_0x1c1e41=(_0x539b20=_0x409c25==null?void 0x0:_0x409c25['snapshotServerUrl'])!=null?_0x539b20:_0x504ee5)!=null?_0x1c1e41:Gt;}async[_0x3a2165(0x2d1)](_0x5e73f7,_0x48e52c){const _0x44a88e=_0x3a2165,_0x54f251=_0x44a88e(0x49e)+_0x48e52c[_0x44a88e(0x3a4)]+_0x44a88e(0x384)+_0x48e52c['unitID']+_0x44a88e(0xb7);return(await this[_0x44a88e(0x40e)][_0x44a88e(0x305)](_0x54f251,{'params':{'resourceId':JSON[_0x44a88e(0x3a6)](_0x48e52c[_0x44a88e(0x292)])}}))[_0x44a88e(0x135)];}[_0x3a2165(0x4aa)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3a2165(0x184)](){const _0x38e3e6=_0x3a2165;throw new Error(_0x38e3e6(0x2ee));}[_0x3a2165(0x209)](){const _0x330e54=_0x3a2165;throw new Error(_0x330e54(0x2ee));}['copyFileMeta'](){const _0x2d91c9=_0x3a2165;throw new Error(_0x2d91c9(0x2ee));}},exports['SnapshotServerOverHTTPService']=gn([lt(0x0,a[_0x3a2165(0xd1)]),lt(0x1,a['Inject'](P[_0x3a2165(0x1d8)]))],exports[_0x3a2165(0x3d3)]);var mn=Object[_0x3a2165(0x1e2)],In=Object['getOwnPropertyDescriptor'],pn=(_0x5023a1,_0x4d2d65,_0x581d7f,_0x5c7a89)=>{const _0x1ddbd2=_0x3a2165;for(var _0x222562=_0x5c7a89>0x1?void 0x0:_0x5c7a89?In(_0x4d2d65,_0x581d7f):_0x4d2d65,_0x24e4d3=_0x5023a1[_0x1ddbd2(0x3a5)]-0x1,_0x4c7573;_0x24e4d3>=0x0;_0x24e4d3--)(_0x4c7573=_0x5023a1[_0x24e4d3])&&(_0x222562=(_0x5c7a89?_0x4c7573(_0x4d2d65,_0x581d7f,_0x222562):_0x4c7573(_0x222562))||_0x222562);return _0x5c7a89&&_0x222562&&mn(_0x4d2d65,_0x581d7f,_0x222562),_0x222562;},_e=(_0x26cdf9,_0x32d094)=>(_0x2a9d8d,_0x2c99fd)=>_0x32d094(_0x2a9d8d,_0x2c99fd,_0x26cdf9);let Be=class extends a[_0x3a2165(0x1d7)]{constructor(_0x23d347,_0x4b36db,_0xe53547,_0x783801,_0x4de4ea){const _0x55d5d2=_0x3a2165;super(_0x23d347,_0x4b36db,_0xe53547),this[_0x55d5d2(0x316)]=_0x783801,this[_0x55d5d2(0x42d)]=_0x4de4ea;}['transformUndoRedo'](_0x28716d,_0x28284d){const _0x120ad2=_0x3a2165,_0x394bba=this['_getUndoStack'](_0x28716d);if(_0x394bba)try{const _0x2462ac=this[_0x120ad2(0x3a0)](_0x394bba,_0x28284d);this[_0x120ad2(0x313)](_0x28716d,_0x2462ac);}catch(_0x3320bc){this[_0x120ad2(0x42d)][_0x120ad2(0x442)]('[CollaborationUndoRedoService]',_0x3320bc),this[_0x120ad2(0x3fa)](_0x28716d);}const _0x48b231=this['_getRedoStack'](_0x28716d);if(_0x48b231)try{const _0x402fb4=this['_transformStack'](_0x48b231,_0x28284d);this[_0x120ad2(0x1e5)](_0x28716d,_0x402fb4);}catch(_0x4be833){this[_0x120ad2(0x42d)][_0x120ad2(0x442)](_0x4be833),this[_0x120ad2(0x230)](_0x28716d);}}[_0x3a2165(0x3fa)](_0x4c43bb){const _0x2e0520=_0x3a2165,_0x43f4a2=this[_0x2e0520(0x10c)](_0x4c43bb);_0x43f4a2&&(_0x43f4a2[_0x2e0520(0x3a5)]=0x0,this[_0x2e0520(0x4a5)]());}['_clearRedo'](_0x3b7ca6){const _0xdb7b89=_0x3a2165,_0x51296f=this[_0xdb7b89(0x413)](_0x3b7ca6);_0x51296f&&(_0x51296f[_0xdb7b89(0x3a5)]=0x0,this['_updateStatus']());}[_0x3a2165(0x313)](_0x267378,_0x4765cc){const _0x419328=_0x3a2165;this[_0x419328(0x322)]['set'](_0x267378,_0x4765cc),this['_updateStatus']();}[_0x3a2165(0x1e5)](_0x44697a,_0x254463){const _0x45a23c=_0x3a2165;this[_0x45a23c(0x1bd)][_0x45a23c(0x194)](_0x44697a,_0x254463),this['_updateStatus']();}[_0x3a2165(0x3a0)](_0x5f4f22,_0x22e052){const _0x1d311a=_0x3a2165,_0x40e947=[];let _0x3e07d2=_0x22e052,_0x1c96e1=_0x22e052;for(let _0x4e2147=_0x5f4f22[_0x1d311a(0x3a5)]-0x1;_0x4e2147>=0x0;_0x4e2147--){const {unitID:_0x40e0ff,undoMutations:_0x4557d9,redoMutations:_0x2c9ad2}=_0x5f4f22[_0x4e2147],_0x54d0d0=this[_0x1d311a(0x316)]['transformMutationsWithChangeset'](_0x3e07d2,_0x4557d9),_0x302f22=this['_transformService'][_0x1d311a(0xf5)](_0x1c96e1,_0x2c9ad2);if(_[_0x1d311a(0x247)](_0x54d0d0)||_[_0x1d311a(0x247)](_0x302f22)){this[_0x1d311a(0x42d)][_0x1d311a(0x442)](_0x1d311a(0xc4),_0x1d311a(0x215),_0x54d0d0,_0x302f22);break;}_0x3e07d2=_0x54d0d0['c1Prime'],_0x1c96e1=_0x302f22[_0x1d311a(0x353)],_0x40e947[_0x1d311a(0x339)]({'unitID':_0x40e0ff,'undoMutations':_0x54d0d0[_0x1d311a(0x390)],'redoMutations':_0x302f22[_0x1d311a(0x390)]});}return _0x40e947[_0x1d311a(0x2a4)]();}};Be=pn([_e(0x0,a[_0x3a2165(0x137)]),_e(0x1,a[_0x3a2165(0x3e2)]),_e(0x2,a['IContextService']),_e(0x3,_[_0x3a2165(0xc6)]),_e(0x4,a[_0x3a2165(0x490)])],Be);class Nt extends a['RxDisposable']{constructor(){const _0x52668d=_0x3a2165;super(),d(this,_0x52668d(0x128)),this[_0x52668d(0x128)]=v[_0x52668d(0x2cc)](window,_0x52668d(0x343))[_0x52668d(0x447)](v[_0x52668d(0x27a)](this['dispose$']),v[_0x52668d(0x282)](0x1),v[_0x52668d(0x2f6)](void 0x0));}[_0x3a2165(0x2b5)](_0xa715d3,_0x1dc084,_0x2be975=!0x1){const _0x3daafe=_0x3a2165,_0x36dfb4=new URL(window[_0x3daafe(0xd9)][_0x3daafe(0x181)]);_0x36dfb4['searchParams']['set'](_0xa715d3,_0x1dc084),_0x2be975?window[_0x3daafe(0x2de)]['replaceState']('','',_0x36dfb4[_0x3daafe(0x3b5)]()):window[_0x3daafe(0x2de)]['pushState']('','',_0x36dfb4[_0x3daafe(0x3b5)]());}[_0x3a2165(0x475)](_0x3e8444,_0x25529d=!0x1){const _0x47bc0d=_0x3a2165,_0x19befe=new URL(window[_0x47bc0d(0xd9)][_0x47bc0d(0x181)]);_0x19befe[_0x47bc0d(0x49f)][_0x47bc0d(0x140)](_0x3e8444),_0x25529d?window[_0x47bc0d(0x2de)][_0x47bc0d(0x48f)]('','',_0x19befe[_0x47bc0d(0x3b5)]()):window[_0x47bc0d(0x2de)][_0x47bc0d(0x32e)]('','',_0x19befe[_0x47bc0d(0x3b5)]());}['getParam'](_0x48449a){const _0x5b8f45=_0x3a2165;var _0x4a8470;return(_0x4a8470=new URL(window[_0x5b8f45(0xd9)]['href'])['searchParams']['get'](_0x48449a))!=null?_0x4a8470:void 0x0;}}var At=Object[_0x3a2165(0x1e2)],Cn=Object[_0x3a2165(0x383)],En=(_0x350138,_0x406411,_0x1a85ff)=>_0x406411 in _0x350138?At(_0x350138,_0x406411,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a85ff}):_0x350138[_0x406411]=_0x1a85ff,bn=(_0x42836b,_0x5ac0b4,_0x37f346,_0x1b4d47)=>{const _0x5bc49c=_0x3a2165;for(var _0x3ea560=_0x1b4d47>0x1?void 0x0:_0x1b4d47?Cn(_0x5ac0b4,_0x37f346):_0x5ac0b4,_0x1871e2=_0x42836b[_0x5bc49c(0x3a5)]-0x1,_0x3834f4;_0x1871e2>=0x0;_0x1871e2--)(_0x3834f4=_0x42836b[_0x1871e2])&&(_0x3ea560=(_0x1b4d47?_0x3834f4(_0x5ac0b4,_0x37f346,_0x3ea560):_0x3834f4(_0x3ea560))||_0x3ea560);return _0x1b4d47&&_0x3ea560&&At(_0x5ac0b4,_0x37f346,_0x3ea560),_0x3ea560;},ve=(_0x550851,_0x2ff37b)=>(_0x2a6872,_0x5d22b6)=>_0x2ff37b(_0x2a6872,_0x5d22b6,_0x550851),Tn=(_0x5524f5,_0x4bfd21,_0x459253)=>En(_0x5524f5,_0x4bfd21+'',_0x459253);const Rn='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports[_0x3a2165(0x138)]=class extends a['Plugin']{constructor(_0x26971e=ts,_0x542a2f,_0x420e78,_0x25491c,_0x29dafe){const _0x1a27ab=_0x3a2165;super(),this['_config']=_0x26971e,this[_0x1a27ab(0x42d)]=_0x542a2f,this[_0x1a27ab(0x417)]=_0x420e78,this['_injector']=_0x25491c,this[_0x1a27ab(0x105)]=_0x29dafe;const {..._0x3c530d}=this[_0x1a27ab(0xdc)];this[_0x1a27ab(0x105)][_0x1a27ab(0x399)](A,_0x3c530d);}[_0x3a2165(0x47a)](){const _0x3506f1=_0x3a2165;this[_0x3506f1(0x151)](),a['touchDependencies'](this[_0x3506f1(0x3be)],[[ie],[exports[_0x3506f1(0x497)]],[Ee]]);}[_0x3a2165(0x20b)](){const _0x37b024=_0x3a2165;a[_0x37b024(0x46e)](this['_injector'],[[Ie]]);}[_0x3a2165(0xc7)](){const _0x531ab8=_0x3a2165;this[_0x531ab8(0x187)]();}[_0x3a2165(0x151)](){const _0x1e2fe9=_0x3a2165;var _0x5817fe,_0x286fcb,_0x2429dc,_0x490f96;this[_0x1e2fe9(0x3be)][_0x1e2fe9(0x4ac)](a[_0x1e2fe9(0x244)])&&this['_logService'][_0x1e2fe9(0x442)]('[UniverCollaborationClientPlugin]',_0x1e2fe9(0x19a));let _0x3dc494=[[a[_0x1e2fe9(0x244)],{'useClass':Be}],[exports['CollaborationSessionService']],[Xe],[P[_0x1e2fe9(0x1d8)]],[ze,{'useClass':Nt}],[q],[exports[_0x1e2fe9(0x30d)]],[P['WebSocketService']],[ge],[me],[fe],[Ye],[pe],[Ce],[Ge],[Ee],[Fe,{'useClass':(_0x286fcb=(_0x5817fe=this['_config'])==null?void 0x0:_0x5817fe[_0x1e2fe9(0x1cc)])!=null?_0x286fcb:exports['CollaborationSocketService']}],[P[_0x1e2fe9(0x162)],{'useClass':P[_0x1e2fe9(0xe3)]}],[_[_0x1e2fe9(0x3f6)],{'useClass':exports[_0x1e2fe9(0x3d3)]}],[a[_0x1e2fe9(0xeb)],{'useClass':exports['AuthzIoHttpService']}],[L[_0x1e2fe9(0x326)],{'useClass':exports[_0x1e2fe9(0x278)]}],[exports[_0x1e2fe9(0x31d)]],[exports[_0x1e2fe9(0x497)]],[exports[_0x1e2fe9(0x250)]],[Ie],[ie]];(_0x2429dc=this[_0x1e2fe9(0xdc)])!=null&&_0x2429dc[_0x1e2fe9(0x213)]&&_0x3dc494[_0x1e2fe9(0x339)]([be,{'useClass':ys}]),_0x3dc494=a['mergeOverrideWithDependencies'](_0x3dc494,(_0x490f96=this[_0x1e2fe9(0xdc)])==null?void 0x0:_0x490f96[_0x1e2fe9(0x29d)]),_0x3dc494[_0x1e2fe9(0x337)](_0x144007=>this[_0x1e2fe9(0x3be)][_0x1e2fe9(0x2e5)](_0x144007)),this[_0x1e2fe9(0x457)]();}[_0x3a2165(0x187)](){const _0x4f0c8a=_0x3a2165;this[_0x4f0c8a(0x167)](this['_renderManagerService'][_0x4f0c8a(0x2a9)](a[_0x4f0c8a(0x461)]['UNIVER_DOC'],[xe])),this[_0x4f0c8a(0x167)](this[_0x4f0c8a(0x417)]['registerRenderModule'](a['UniverInstanceType']['UNIVER_SHEET'],[ke]));}[_0x3a2165(0x457)](){const _0x1e18ab=_0x3a2165;var _0x4ce395,_0x416851;this[_0x1e18ab(0x3be)][_0x1e18ab(0x305)](P[_0x1e18ab(0x1d8)])[_0x1e18ab(0xd2)]({'priority':0x14,'interceptor':P['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this['_injector'][_0x1e18ab(0x305)](Ce),(_0x4ce395=this[_0x1e18ab(0xdc)])!=null&&_0x4ce395[_0x1e18ab(0x2d6)]||this[_0x1e18ab(0x3be)][_0x1e18ab(0x305)](exports[_0x1e18ab(0x30d)])[_0x1e18ab(0x1b7)](),(_0x416851=this[_0x1e18ab(0xdc)])!=null&&_0x416851[_0x1e18ab(0x2b4)]&&this[_0x1e18ab(0x3be)][_0x1e18ab(0x305)](pe),this['_injector'][_0x1e18ab(0x305)](exports[_0x1e18ab(0x31d)]),this['_injector'][_0x1e18ab(0x4ac)](exports[_0x1e18ab(0x250)])&&this[_0x1e18ab(0x3be)][_0x1e18ab(0x305)](exports['DesktopCollaborationStatusDisplayController']);}},Tn(exports[_0x3a2165(0x138)],_0x3a2165(0x48d),Rn),exports[_0x3a2165(0x138)]=bn([a['DependentOn'](_[_0x3a2165(0x102)]),ve(0x1,a[_0x3a2165(0x490)]),ve(0x2,R[_0x3a2165(0x205)]),ve(0x3,a[_0x3a2165(0x426)](a['Injector'])),ve(0x4,a[_0x3a2165(0xd1)])],exports['UniverCollaborationClientPlugin']),exports['AUTHZ_URL_KEY']=Mt,exports[_0x3a2165(0x39d)]=gt,exports['COLLAB_WEB_SOCKET_URL_KEY']=ut,exports[_0x3a2165(0xb2)]=y,exports['CollaborationStatusDisplay']=wt,exports[_0x3a2165(0x47b)]=Ge,exports['HEARTBEAT_INTERVAL_KEY']=dt,exports[_0x3a2165(0x376)]=Ve,exports['ICollaborationSocketService']=Fe,exports['IURLService']=ze,exports[_0x3a2165(0x232)]=ft,exports[_0x3a2165(0x1e4)]=mt,exports[_0x3a2165(0x272)]=vt,exports['SEND_CHANGESET_TIMEOUT_KEY']=Yt,exports[_0x3a2165(0x371)]=ht,exports[_0x3a2165(0x18a)]=_t,exports[_0x3a2165(0x4a3)]=$,exports['SheetCollabCursorShape']=Ot,exports[_0x3a2165(0x261)]=Nt,exports[_0x3a2165(0x34a)]=Ct,exports[_0x3a2165(0x469)]=Et;
1
+ 'use strict';const _0x4821de=_0x370a;(function(_0x3535b0,_0x4133bc){const _0x514ce6=_0x370a,_0x4daf23=_0x3535b0();while(!![]){try{const _0x21b8d7=parseInt(_0x514ce6(0x529))/0x1*(parseInt(_0x514ce6(0x530))/0x2)+-parseInt(_0x514ce6(0x2e2))/0x3+parseInt(_0x514ce6(0x495))/0x4*(parseInt(_0x514ce6(0x35d))/0x5)+parseInt(_0x514ce6(0x45f))/0x6+parseInt(_0x514ce6(0x20b))/0x7*(-parseInt(_0x514ce6(0x3e4))/0x8)+parseInt(_0x514ce6(0x3d6))/0x9*(parseInt(_0x514ce6(0x2ed))/0xa)+-parseInt(_0x514ce6(0x382))/0xb;if(_0x21b8d7===_0x4133bc)break;else _0x4daf23['push'](_0x4daf23['shift']());}catch(_0x47d58c){_0x4daf23['push'](_0x4daf23['shift']());}}}(_0x5af9,0x33dbc));var Ft=Object[_0x4821de(0x51a)],Gt=(_0xa58f9d,_0x237cf5,_0x413e3a)=>_0x237cf5 in _0xa58f9d?Ft(_0xa58f9d,_0x237cf5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x413e3a}):_0xa58f9d[_0x237cf5]=_0x413e3a,u=(_0x31f1d7,_0x196944,_0x2076f4)=>Gt(_0x31f1d7,typeof _0x196944!=_0x4821de(0x46c)?_0x196944+'':_0x196944,_0x2076f4);Object[_0x4821de(0x51a)](exports,Symbol['toStringTag'],{'value':_0x4821de(0x404)});const a=require('@univerjs/core'),v=require('rxjs'),E=require('rxjs/operators'),X=require('@univerjs/design'),A=require('@univerjs/ui'),w=require(_0x4821de(0x3dd)),_=require(_0x4821de(0x24e)),Yt=require('@univerjs/telemetry'),N=require('@univerjs/docs-ui'),C=require('@univerjs/sheets'),O=require(_0x4821de(0x400)),se=require(_0x4821de(0x584)),j=require(_0x4821de(0x45d)),et=require(_0x4821de(0x3e0)),te=require(_0x4821de(0x410)),P=require(_0x4821de(0x2ef)),Kt=require(_0x4821de(0x619)),Xt=require('@univerjs-pro/license'),St=_0x4821de(0x5ec),qt=_0x4821de(0x4c1),vt='SNAPSHOT_URL_KEY',zt=_0x4821de(0x4f6),Jt=0x7d0,gt=_0x4821de(0x271),Zt=_0x4821de(0x33d),mt=_0x4821de(0x25e),Qt=0x7530,Ge=_0x4821de(0x308),ft=0x4e20,es=0x4e20,It=_0x4821de(0x499),ts=0x3,pt=_0x4821de(0x23e),ss=0x3e8,Ct='COLLAB_SUBMIT_CHANGESET_URL',is=_0x4821de(0x36e),Et=_0x4821de(0x552),ns='/universer-api/oidc/authpage';var bt=(_0x10c196=>(_0x10c196[_0x10c196['UNDEFINED']=0x0]=_0x4821de(0x298),_0x10c196[_0x10c196['OK']=0x1]='OK',_0x10c196[_0x10c196[_0x4821de(0x4e4)]=0x2]=_0x4821de(0x4e4),_0x10c196[_0x10c196[_0x4821de(0x5c2)]=0x3]='PERMISSION_DENIED',_0x10c196[_0x10c196[_0x4821de(0x3a6)]=0x4]='NOT_FOUND',_0x10c196[_0x10c196['UNAUTHENTICATED']=0x5]=_0x4821de(0x2e6),_0x10c196[_0x10c196[_0x4821de(0x391)]=0x6]='ALREADY_EXISTS',_0x10c196[_0x10c196['INVALID_ARGUMENT']=0x7]=_0x4821de(0x3c8),_0x10c196[_0x10c196[_0x4821de(0x2bb)]=0x8]=_0x4821de(0x2bb),_0x10c196[_0x10c196[_0x4821de(0x2af)]=0x9]='COMPLETION_FINISHED',_0x10c196[_0x10c196[_0x4821de(0x542)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x10c196[_0x10c196[_0x4821de(0x35e)]=0x1771]=_0x4821de(0x35e),_0x10c196[_0x10c196[_0x4821de(0x477)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x10c196[_0x10c196[_0x4821de(0x295)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x10c196[_0x10c196[_0x4821de(0x483)]=0x1b59]=_0x4821de(0x483),_0x10c196[_0x10c196[_0x4821de(0x5f1)]=0x1b5a]=_0x4821de(0x5f1),_0x10c196[_0x10c196['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x4821de(0x2d0),_0x10c196[_0x10c196[_0x4821de(0x543)]=0x1b5c]=_0x4821de(0x543),_0x10c196[_0x10c196[_0x4821de(0x23a)]=0x1b5d]=_0x4821de(0x23a),_0x10c196[_0x10c196[_0x4821de(0x4ca)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x10c196[_0x10c196['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x4821de(0x4e1),_0x10c196[_0x10c196[_0x4821de(0x37c)]=0x232a]=_0x4821de(0x37c),_0x10c196[_0x10c196['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x4821de(0x47d),_0x10c196[_0x10c196['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x4821de(0x1ff),_0x10c196[_0x10c196[_0x4821de(0x4fd)]=0x232d]=_0x4821de(0x4fd),_0x10c196[_0x10c196[_0x4821de(0x26a)]=0x2711]=_0x4821de(0x26a),_0x10c196[_0x10c196['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x4821de(0x57d),_0x10c196[_0x10c196[_0x4821de(0x4bd)]=0x2713]=_0x4821de(0x4bd),_0x10c196[_0x10c196[_0x4821de(0x3c3)]=0x2714]=_0x4821de(0x3c3),_0x10c196[_0x10c196['UNRECOGNIZED']=-0x1]=_0x4821de(0x4c0),_0x10c196))(bt||{}),$=(_0x26bff8=>(_0x26bff8[_0x26bff8[_0x4821de(0x387)]=0x0]=_0x4821de(0x387),_0x26bff8[_0x26bff8['UNIVER_DOC']=0x1]=_0x4821de(0x5f0),_0x26bff8[_0x26bff8[_0x4821de(0x453)]=0x2]=_0x4821de(0x453),_0x26bff8[_0x26bff8[_0x4821de(0x34e)]=0x3]=_0x4821de(0x34e),_0x26bff8[_0x26bff8[_0x4821de(0x615)]=0x4]=_0x4821de(0x615),_0x26bff8[_0x26bff8[_0x4821de(0x4c0)]=-0x1]=_0x4821de(0x4c0),_0x26bff8))($||{}),b=(_0x2fd3a0=>(_0x2fd3a0[_0x2fd3a0[_0x4821de(0x5d9)]=0x0]='UNKNOWN_CMD',_0x2fd3a0[_0x2fd3a0['HELLO']=0x1]=_0x4821de(0x325),_0x2fd3a0[_0x2fd3a0[_0x4821de(0x569)]=0x2]=_0x4821de(0x569),_0x2fd3a0[_0x2fd3a0['LEAVE']=0x3]=_0x4821de(0x5fd),_0x2fd3a0[_0x2fd3a0[_0x4821de(0x276)]=0x4]=_0x4821de(0x276),_0x2fd3a0[_0x2fd3a0[_0x4821de(0x348)]=0x5]=_0x4821de(0x348),_0x2fd3a0[_0x2fd3a0[_0x4821de(0x27c)]=0x6]=_0x4821de(0x27c),_0x2fd3a0[_0x2fd3a0[_0x4821de(0x4c0)]=-0x1]='UNRECOGNIZED',_0x2fd3a0))(b||{}),Ye=(_0x4ed184=>(_0x4ed184[_0x4ed184[_0x4821de(0x2b0)]=0x0]=_0x4821de(0x2b0),_0x4ed184[_0x4ed184['OK']=0x1]='OK',_0x4ed184[_0x4ed184[_0x4821de(0x355)]=0x2]=_0x4821de(0x355),_0x4ed184[_0x4ed184['UNRECOGNIZED']=-0x1]=_0x4821de(0x4c0),_0x4ed184))(Ye||{}),Tt=(_0x310b83=>(_0x310b83[_0x310b83['Undefined']=0x0]='Undefined',_0x310b83[_0x310b83['HttpImport']=0x1]=_0x4821de(0x390),_0x310b83[_0x310b83[_0x4821de(0x37d)]=0x2]=_0x4821de(0x37d),_0x310b83[_0x310b83['UnitEmbedded']=0x3]='UnitEmbedded',_0x310b83[_0x310b83[_0x4821de(0x544)]=0x4]=_0x4821de(0x544),_0x310b83[_0x310b83[_0x4821de(0x4c0)]=-0x1]='UNRECOGNIZED',_0x310b83))(Tt||{});const L='collaboration-client.config',rs={};function Rt(_0x16f02f){const _0x276572=_0x4821de;var _0x36bd58,_0x1746f5,_0x145958,_0x5f36bd;const _0x5ddcd1=_0x16f02f[_0x276572(0x434)],_0x5ee267=JSON[_0x276572(0x5f4)](_0x5ddcd1);switch(_0x5ee267[_0x276572(0x358)]){case b[_0x276572(0x348)]:case b[_0x276572(0x325)]:{const _0x3a70db=_0x5ee267[_0x276572(0x376)];return{..._0x5ee267,'data':_0x3a70db,'cmd':_0x5ee267[_0x276572(0x358)]};}case b[_0x276572(0x569)]:{const _0x3cf390=_0x5ee267[_0x276572(0x5b3)];return{..._0x5ee267,'data':_0x3cf390,'cmd':_0x5ee267['cmd']};}case b['RECV']:{const _0x101bd7=_0x5ee267[_0x276572(0x2ec)];switch(_0x101bd7[_0x276572(0x2ab)]){case _['CollaborationEvent'][_0x276572(0x21d)]:return{..._0x5ee267,'data':{..._0x101bd7,'data':(_0x36bd58=_0x101bd7[_0x276572(0x50f)])==null?void 0x0:_0x36bd58['cs']},'cmd':_0x5ee267['cmd']};case _[_0x276572(0x215)][_0x276572(0x32a)]:return{..._0x5ee267,'data':{..._0x101bd7,'data':(_0x1746f5=_0x101bd7[_0x276572(0x246)])==null?void 0x0:_0x1746f5['cs']},'cmd':_0x5ee267[_0x276572(0x358)]};case _[_0x276572(0x215)][_0x276572(0x609)]:return{..._0x5ee267,'data':{..._0x101bd7,'data':(_0x145958=_0x101bd7[_0x276572(0x3f5)])==null?void 0x0:_0x145958['cs']},'cmd':_0x5ee267[_0x276572(0x358)]};case _['CollaborationEvent'][_0x276572(0x3da)]:return{..._0x5ee267,'data':{..._0x101bd7,'data':(_0x5f36bd=_0x101bd7[_0x276572(0x322)])==null?void 0x0:_0x5f36bd['cs']},'cmd':_0x5ee267[_0x276572(0x358)]};case _[_0x276572(0x215)][_0x276572(0x30c)]:return{..._0x5ee267,'data':{..._0x101bd7,'data':_0x101bd7[_0x276572(0x2f3)]},'cmd':_0x5ee267['cmd']};case _[_0x276572(0x215)][_0x276572(0x289)]:return{..._0x5ee267,'data':{..._0x101bd7,'data':_0x101bd7[_0x276572(0x282)]},'cmd':_0x5ee267[_0x276572(0x358)]};case _[_0x276572(0x215)]['USERS_LEAVE']:return{..._0x5ee267,'data':{..._0x101bd7,'data':_0x101bd7[_0x276572(0x204)]},'cmd':_0x5ee267[_0x276572(0x358)]};case _[_0x276572(0x215)]['LIVESHARE_NEW_HOST']:return{..._0x5ee267,'data':{..._0x101bd7,'data':_0x101bd7[_0x276572(0x3f4)]},'cmd':_0x5ee267['cmd']};case _['CollaborationEvent'][_0x276572(0x262)]:case _[_0x276572(0x215)][_0x276572(0x516)]:return{..._0x5ee267,'data':{..._0x101bd7,'data':_0x101bd7[_0x276572(0x535)]},'cmd':_0x5ee267[_0x276572(0x358)]};case _['CollaborationEvent'][_0x276572(0x281)]:return{..._0x5ee267,'data':{..._0x101bd7,'data':_0x101bd7[_0x276572(0x3f4)]},'cmd':_0x5ee267['cmd']};case _[_0x276572(0x215)][_0x276572(0x25d)]:return{..._0x5ee267,'data':_0x101bd7,'cmd':_0x5ee267[_0x276572(0x358)]};case _[_0x276572(0x215)]['COMMENT_UPDATE']:return{..._0x5ee267,'data':{..._0x101bd7,'data':_0x101bd7[_0x276572(0x288)]},'cmd':_0x5ee267['cmd']};case _[_0x276572(0x215)][_0x276572(0x28a)]:return{..._0x5ee267,'data':{..._0x101bd7,'data':_0x101bd7[_0x276572(0x2bf)]},'cmd':_0x5ee267['cmd']};case _[_0x276572(0x215)][_0x276572(0x39c)]:return{..._0x5ee267,'data':{..._0x101bd7,'data':_0x101bd7[_0x276572(0x46b)]},'cmd':_0x5ee267[_0x276572(0x358)]};default:return _0x5ee267;}}default:return _0x5ee267;}}function Ot(_0x20d06d){const _0x352935=_0x4821de;switch(_0x20d06d[_0x352935(0x358)]){case b[_0x352935(0x348)]:case b[_0x352935(0x325)]:return JSON['stringify']({'cmd':_0x20d06d[_0x352935(0x358)],'routeKey':_0x20d06d[_0x352935(0x54d)]});case b[_0x352935(0x276)]:{let _0x2f5191;switch(_0x20d06d[_0x352935(0x434)][_0x352935(0x2ab)]){case _[_0x352935(0x215)][_0x352935(0x30c)]:{_0x2f5191={'eventID':_[_0x352935(0x215)]['UPDATE_CURSOR'],'updateCursorEvent':_0x20d06d[_0x352935(0x434)][_0x352935(0x434)]};break;}case _[_0x352935(0x215)][_0x352935(0x520)]:{_0x2f5191={'eventID':_['CollaborationEvent'][_0x352935(0x520)],'leaveEvent':_0x20d06d['data']['data']};break;}case _[_0x352935(0x215)][_0x352935(0x289)]:{_0x2f5191={'eventID':_[_0x352935(0x215)]['USERS_ENTER'],'joinEvent':_0x20d06d['data'][_0x352935(0x434)]};break;}case _[_0x352935(0x215)]['LIVESHARE_NEW_HOST']:{_0x2f5191={'eventID':_['CollaborationEvent'][_0x352935(0x5d0)],'liveShareNewHost':_0x20d06d['data'][_0x352935(0x434)]};break;}case _[_0x352935(0x215)]['LIVESHARE_OPERATION']:{_0x2f5191={'eventID':_[_0x352935(0x215)][_0x352935(0x516)],'liveShareOperation':_0x20d06d[_0x352935(0x434)][_0x352935(0x434)]};break;}case _[_0x352935(0x215)][_0x352935(0x281)]:{_0x2f5191={'eventID':_['CollaborationEvent'][_0x352935(0x281)],'liveShareTerminate':_0x20d06d[_0x352935(0x434)][_0x352935(0x434)]};break;}case _['CollaborationEvent'][_0x352935(0x4fe)]:{_0x2f5191={'eventID':_['CollaborationEvent'][_0x352935(0x4fe)],'liveShareRequestHost':_0x20d06d[_0x352935(0x434)]['data']};break;}case _[_0x352935(0x215)][_0x352935(0x262)]:{_0x2f5191={'eventID':_[_0x352935(0x215)][_0x352935(0x262)]};break;}default:_0x2f5191={'eventID':_0x20d06d['data'][_0x352935(0x2ab)]};}return JSON['stringify']({'cmd':_0x20d06d[_0x352935(0x358)],'routeKey':_0x20d06d['routeKey'],'collaMsg':_0x2f5191});}case b[_0x352935(0x569)]:return JSON['stringify']({'cmd':_0x20d06d['cmd'],'routeKey':_0x20d06d['routeKey'],'joinReq':_0x20d06d[_0x352935(0x434)]});case b['LEAVE']:return JSON[_0x352935(0x44f)]({'cmd':_0x20d06d[_0x352935(0x358)],'routeKey':_0x20d06d['routeKey'],'leaveReq':_0x20d06d[_0x352935(0x434)]});default:throw new Error(_0x352935(0x3d4));}}var os=Object['defineProperty'],as=Object[_0x4821de(0x4f8)],cs=(_0xa331c7,_0x2617bd,_0x5d3757,_0x1812ce)=>{for(var _0x4555bc=_0x1812ce>0x1?void 0x0:_0x1812ce?as(_0x2617bd,_0x5d3757):_0x2617bd,_0x55a544=_0xa331c7['length']-0x1,_0x4b6d3d;_0x55a544>=0x0;_0x55a544--)(_0x4b6d3d=_0xa331c7[_0x55a544])&&(_0x4555bc=(_0x1812ce?_0x4b6d3d(_0x2617bd,_0x5d3757,_0x4555bc):_0x4b6d3d(_0x4555bc))||_0x4555bc);return _0x1812ce&&_0x4555bc&&os(_0x2617bd,_0x5d3757,_0x4555bc),_0x4555bc;},ae=(_0x51c2bc,_0x1cd825)=>(_0x44fe2b,_0x3f06f8)=>_0x1cd825(_0x44fe2b,_0x3f06f8,_0x51c2bc);const Ke=a['createIdentifier'](_0x4821de(0x426));function ls(_0x2d9f01,_0x377eb2,_0x5d8d01){const _0x543cea=_0x4821de;return _0x2d9f01+'/'+_0x377eb2+_0x543cea(0x46d)+_0x5d8d01+_0x543cea(0x524);}exports[_0x4821de(0x485)]=class extends a[_0x4821de(0x357)]{constructor(_0x5dae70,_0x4d6350,_0x1ff98f,_0x3f4ffa,_0x5c8660){const _0x1a6c19=_0x4821de;super(),this[_0x1a6c19(0x61d)]=_0x5dae70,this[_0x1a6c19(0x32c)]=_0x4d6350,this[_0x1a6c19(0x519)]=_0x1ff98f,this['_logService']=_0x3f4ffa,this[_0x1a6c19(0x448)]=_0x5c8660;}[_0x4821de(0x27a)](_0x188f2b){const _0x42738e=_0x4821de,_0xe7f232=this[_0x42738e(0x32c)]['createSocket'](_0x188f2b);if(!_0xe7f232)throw new Error(_0x42738e(0x441));const _0x528893=new a[(_0x42738e(0x490))](),_0x3b1187=new v[(_0x42738e(0x2a2))]();_0x528893[_0x42738e(0x201)](_0xe7f232['close$'][_0x42738e(0x48c)](_0x288192=>_0x3b1187[_0x42738e(0x56e)](_0x288192))),_0x528893[_0x42738e(0x201)](a[_0x42738e(0x35f)](()=>_0x3b1187[_0x42738e(0x56b)]()));const _0x1af23a=new v[(_0x42738e(0x2a2))]();_0x528893[_0x42738e(0x201)](_0xe7f232['error$'][_0x42738e(0x48c)](_0x203f19=>_0x1af23a[_0x42738e(0x56e)](_0x203f19))),_0x528893[_0x42738e(0x201)](a[_0x42738e(0x35f)](()=>_0x1af23a[_0x42738e(0x56b)]()));const _0x2030a8=new v[(_0x42738e(0x2a2))]();_0x528893['add'](_0xe7f232[_0x42738e(0x492)]['subscribe'](_0x590e04=>{const _0x517808=Rt(_0x590e04);_0x2030a8['next'](_0x517808);})),_0x528893[_0x42738e(0x201)](a[_0x42738e(0x35f)](()=>_0x2030a8[_0x42738e(0x56b)]()));let _0x1b95c6;const _0x390641=()=>{const _0x5baa22=_0x42738e;_0x1af23a[_0x5baa22(0x56e)](new Event(_0x5baa22(0x343))),_0x3b1187[_0x5baa22(0x56e)](new CloseEvent(_0x5baa22(0x343))),_0x1b95c6[_0x5baa22(0x23f)]();};return _0x1b95c6={'memberID':'','close$':_0x3b1187[_0x42738e(0x43a)](),'error$':_0x1af23a[_0x42738e(0x43a)](),'open$':_0xe7f232[_0x42738e(0x4cb)],'message$':_0x2030a8[_0x42738e(0x43a)](),'send':_0x271252=>{const _0x580df2=_0x42738e;if(_0x271252[_0x580df2(0x358)]===b[_0x580df2(0x276)]){if(_0x271252[_0x580df2(0x434)]['eventID']===_[_0x580df2(0x215)]['SUBMIT_CHANGESET']){this[_0x580df2(0x235)](_0x1b95c6,_0x271252[_0x580df2(0x434)])[_0x580df2(0x4ba)](_0x210174=>{const _0x1a9461=_0x580df2;this[_0x1a9461(0x244)]['error'](_0x210174),_0x390641();});return;}if(_0x271252[_0x580df2(0x434)][_0x580df2(0x2ab)]===_[_0x580df2(0x215)]['FETCH_MISSING']){const _0x5755bb=_0x271252['data'];this[_0x580df2(0x3d7)](_0x5755bb)[_0x580df2(0x379)](_0x290065=>{const _0x5a22bf=_0x580df2;_0x2030a8[_0x5a22bf(0x56e)]({'cmd':b[_0x5a22bf(0x27c)],'code':Ye['OK'],'routeKey':_0x5755bb[_0x5a22bf(0x434)][_0x5a22bf(0x4ef)],'routeType':'','data':{'eventID':_[_0x5a22bf(0x215)][_0x5a22bf(0x4bb)],'data':{'changesets':_0x290065}}});})[_0x580df2(0x4ba)](_0x361393=>{const _0x4b7062=_0x580df2;this[_0x4b7062(0x244)]['error'](_0x361393),_0x390641();});return;}}_0xe7f232[_0x580df2(0x42f)](Ot(_0x271252));},'close':()=>{const _0x652f12=_0x42738e;_0xe7f232[_0x652f12(0x23f)](),_0x528893[_0x652f12(0x442)]();}},_0x1b95c6;}async[_0x4821de(0x235)](_0x52556e,_0x4cda26){const _0x41bbe7=_0x4821de;var _0x3be93f,_0x43c7e8;const {unitType:_0x2a581e,unitID:_0x32f93e,changeset:_0x45d31f}=_0x4cda26['data'],_0x269a12={'unitID':_0x32f93e,'memberID':_0x52556e[_0x41bbe7(0x5f6)],'type':_0x2a581e,'changeset':_[_0x41bbe7(0x5ac)](_0x45d31f)},_0x3733e0=this[_0x41bbe7(0x519)]['getConfig'](Ct),_0x4752dc=this['_configService'][_0x41bbe7(0x2ce)](L),_0x23a57f=ls((_0x43c7e8=(_0x3be93f=_0x4752dc==null?void 0x0:_0x4752dc[_0x41bbe7(0x265)])!=null?_0x3be93f:_0x3733e0)!=null?_0x43c7e8:is,_0x2a581e,_0x32f93e);try{await this['_http'][_0x41bbe7(0x3a7)](_0x23a57f,{'body':_0x269a12});}catch(_0x5450a8){throw this[_0x41bbe7(0x244)]['error'](_0x41bbe7(0x24d),_0x41bbe7(0x4ff)),_0x5450a8;}}async['_fetchMissChangesets'](_0x293397){const _0x4668ed=_0x4821de,{unitID:_0x550f45,from:_0x506523,to:_0x50ed75,unitType:_0x35e041}=_0x293397[_0x4668ed(0x434)];return(await this[_0x4668ed(0x448)][_0x4668ed(0x38b)]({'metadata':void 0x0},{'unitID':_0x550f45,'type':_0x35e041,'from':_0x506523,'to':_0x50ed75}))[_0x4668ed(0x28e)];}},exports[_0x4821de(0x485)]=cs([ae(0x0,a['Inject'](w[_0x4821de(0x538)])),ae(0x1,a['Inject'](w['WebSocketService'])),ae(0x2,a[_0x4821de(0x482)]),ae(0x3,a[_0x4821de(0x49c)]),ae(0x4,_[_0x4821de(0x44a)])],exports[_0x4821de(0x485)]);const hs=_0x4821de(0x454);function _s(_0x24c60f){const _0x43629d=_0x4821de;return JSON[_0x43629d(0x44f)](_0x24c60f)['length'];}class Xe{constructor(){const _0xac716b=_0x4821de;u(this,_0xac716b(0x5e1),new v[(_0xac716b(0x2a2))]()),u(this,_0xac716b(0x4c5),this[_0xac716b(0x5e1)][_0xac716b(0x43a)]());}[_0x4821de(0x269)](_0x34e77c){this['_commentUpdate$']['next'](_0x34e77c);}}var us=Object[_0x4821de(0x51a)],ds=Object[_0x4821de(0x4f8)],Ss=(_0x371cc7,_0x5b1f80,_0xa2e67d,_0x4b7eb2)=>{const _0x4a108f=_0x4821de;for(var _0x3f5ac1=_0x4b7eb2>0x1?void 0x0:_0x4b7eb2?ds(_0x5b1f80,_0xa2e67d):_0x5b1f80,_0x50c9e5=_0x371cc7[_0x4a108f(0x1fe)]-0x1,_0x16ef53;_0x50c9e5>=0x0;_0x50c9e5--)(_0x16ef53=_0x371cc7[_0x50c9e5])&&(_0x3f5ac1=(_0x4b7eb2?_0x16ef53(_0x5b1f80,_0xa2e67d,_0x3f5ac1):_0x16ef53(_0x3f5ac1))||_0x3f5ac1);return _0x4b7eb2&&_0x3f5ac1&&us(_0x5b1f80,_0xa2e67d,_0x3f5ac1),_0x3f5ac1;},tt=(_0x13b286,_0x52f48e)=>(_0x5660b5,_0x2386ac)=>_0x52f48e(_0x5660b5,_0x2386ac,_0x13b286);let q=class extends a[_0x4821de(0x357)]{constructor(_0x5ea8de,_0x5ccb37){const _0x3882a2=_0x4821de;super(),u(this,_0x3882a2(0x24c),new Map()),(this[_0x3882a2(0x487)]=_0x5ea8de,this[_0x3882a2(0x26f)]=_0x5ccb37,this[_0x3882a2(0x4b1)](a[_0x3882a2(0x35f)](v[_0x3882a2(0x371)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_SHEET'])[_0x3882a2(0x2a5)](E['map'](_0x2444b9=>_0x2444b9[_0x3882a2(0x1f7)]())),this[_0x3882a2(0x487)][_0x3882a2(0x528)](a['UniverInstanceType']['UNIVER_DOC'])[_0x3882a2(0x2a5)](E[_0x3882a2(0x27e)](_0x3af44f=>_0x3af44f[_0x3882a2(0x1f7)]())),this[_0x3882a2(0x487)][_0x3882a2(0x528)](a[_0x3882a2(0x22e)][_0x3882a2(0x34e)])['pipe'](E[_0x3882a2(0x27e)](_0x285cca=>_0x285cca['getUnitId']())))[_0x3882a2(0x48c)](_0x5a2cf4=>this['_removeRoom'](_0x5a2cf4)))));}[_0x4821de(0x537)](_0x3ffee5){const _0x76286a=_0x4821de;this['_userManagerService'][_0x76286a(0x537)](_0x3ffee5);}['getCurrentUser'](){const _0x5d9674=_0x4821de;return this[_0x5d9674(0x26f)][_0x5d9674(0x42c)]();}[_0x4821de(0x3bd)](_0x5e04b1,_0x1fc352){const _0xce2eb9=_0x4821de;let _0x45c3ae=this[_0xce2eb9(0x24c)]['get'](_0x5e04b1);_0x45c3ae||(_0x45c3ae=new vs(),this[_0xce2eb9(0x24c)][_0xce2eb9(0x4d0)](_0x5e04b1,_0x45c3ae)),_0x45c3ae[_0xce2eb9(0x3bd)](_0x1fc352);}[_0x4821de(0x5b7)](_0x389d6e,_0x50bae6){const _0x1d9bc7=_0x4821de,_0x7bb22e=this[_0x1d9bc7(0x24c)]['get'](_0x389d6e);_0x7bb22e&&_0x7bb22e['removeMember'](_0x50bae6);}[_0x4821de(0x2fd)](_0x4768f4){const _0x565639=_0x4821de;return this[_0x565639(0x24c)]['get'](_0x4768f4);}[_0x4821de(0x489)](_0x59b202,_0x4c5d0c){const _0x180cf3=_0x4821de,_0x38a4d5=this[_0x180cf3(0x24c)][_0x180cf3(0x56d)](_0x59b202);if(_0x38a4d5)return _0x38a4d5[_0x180cf3(0x489)](_0x4c5d0c);}[_0x4821de(0x49a)](_0x556df6){const _0x17bc48=_0x4821de,_0x650d68=this['_roomMembers'][_0x17bc48(0x56d)](_0x556df6);_0x650d68&&(_0x650d68[_0x17bc48(0x442)](),this[_0x17bc48(0x24c)][_0x17bc48(0x28c)](_0x556df6));}[_0x4821de(0x442)](){const _0x2222e9=_0x4821de;this[_0x2222e9(0x24c)][_0x2222e9(0x3c2)](_0x4cddc3=>_0x4cddc3['dispose']()),this[_0x2222e9(0x24c)][_0x2222e9(0x25a)]();}};q=Ss([tt(0x0,a['IUniverInstanceService']),tt(0x1,a['Inject'](a[_0x4821de(0x47f)]))],q);class vs extends a[_0x4821de(0x357)]{constructor(){const _0x2476ac=_0x4821de;super(...arguments),u(this,_0x2476ac(0x4b5),new Map());}[_0x4821de(0x442)](){const _0x2e315e=_0x4821de;this[_0x2e315e(0x4b5)]['clear']();}['updateMember'](_0x4bc56b){const _0x4c02dd=_0x4821de;this['_members'][_0x4c02dd(0x4d0)](_0x4bc56b[_0x4c02dd(0x5f6)],_0x4bc56b);}[_0x4821de(0x5b7)](_0x4c4953){const _0x59be6c=_0x4821de;this[_0x59be6c(0x4b5)][_0x59be6c(0x28c)](_0x4c4953);}[_0x4821de(0x489)](_0x468083){const _0x3bc6ca=_0x4821de;return this[_0x3bc6ca(0x4b5)][_0x3bc6ca(0x56d)](_0x468083);}}var gs=Object['defineProperty'],ms=Object['getOwnPropertyDescriptor'],fs=(_0x3d8f84,_0x448d0b,_0x5322cc,_0x5cc535)=>{const _0x37b045=_0x4821de;for(var _0xa9e183=_0x5cc535>0x1?void 0x0:_0x5cc535?ms(_0x448d0b,_0x5322cc):_0x448d0b,_0x4b2e66=_0x3d8f84[_0x37b045(0x1fe)]-0x1,_0x2560bc;_0x4b2e66>=0x0;_0x4b2e66--)(_0x2560bc=_0x3d8f84[_0x4b2e66])&&(_0xa9e183=(_0x5cc535?_0x2560bc(_0x448d0b,_0x5322cc,_0xa9e183):_0x2560bc(_0xa9e183))||_0xa9e183);return _0x5cc535&&_0xa9e183&&gs(_0x448d0b,_0x5322cc,_0xa9e183),_0xa9e183;},V=(_0x6ffe79,_0x114261)=>(_0x1446bf,_0x33e55d)=>_0x114261(_0x1446bf,_0x33e55d,_0x6ffe79),H=(_0x14f24b=>(_0x14f24b[_0x14f24b[_0x4821de(0x4cf)]=0x0]=_0x4821de(0x4cf),_0x14f24b[_0x14f24b[_0x4821de(0x5d1)]=0x1]=_0x4821de(0x5d1),_0x14f24b[_0x14f24b[_0x4821de(0x266)]=0x2]=_0x4821de(0x266),_0x14f24b[_0x14f24b['ONLINE']=0x3]=_0x4821de(0x451),_0x14f24b))(H||{});exports[_0x4821de(0x27b)]=class extends a[_0x4821de(0x56f)]{constructor(_0x2a5198,_0x4c5155,_0x22b968,_0x3f56fa,_0x5041ee,_0x15708b,_0x1b4fd8,_0x479029,_0x1d7bcc,_0x13cd2f){const _0x3a2088=_0x4821de;super(),u(this,_0x3a2088(0x203),new v[(_0x3a2088(0x611))](0x0)),u(this,_0x3a2088(0x2a8),this[_0x3a2088(0x203)][_0x3a2088(0x43a)]()),u(this,'_event$',new v[(_0x3a2088(0x2a2))]()),u(this,_0x3a2088(0x29f),this[_0x3a2088(0x4bf)][_0x3a2088(0x43a)]()),u(this,_0x3a2088(0x4f3)),u(this,_0x3a2088(0x594)),u(this,_0x3a2088(0x5bc)),u(this,_0x3a2088(0x553),!0x1),u(this,_0x3a2088(0x446),null),(this[_0x3a2088(0x4f0)]=_0x2a5198,this[_0x3a2088(0x244)]=_0x22b968,this[_0x3a2088(0x5cf)]=_0x3f56fa,this['_messageService']=_0x5041ee,this[_0x3a2088(0x519)]=_0x15708b,this[_0x3a2088(0x28b)]=_0x1b4fd8,this[_0x3a2088(0x2ae)]=_0x479029,this[_0x3a2088(0x506)]=_0x1d7bcc,this['_telemetryService']=_0x13cd2f,this['_shouldReportTelemetry']=!!this[_0x3a2088(0x349)],_0x4c5155[_0x3a2088(0x2a5)](v['takeUntil'](this[_0x3a2088(0x3ec)]))[_0x3a2088(0x48c)](_0xd817d8=>{const _0x2e27f7=_0x3a2088;var _0x4b16cb;typeof _0xd817d8>'u'||(this[_0x2e27f7(0x4f3)]=_0xd817d8,_0xd817d8?(this['_joinRoom'](_0xd817d8),this[_0x2e27f7(0x594)]=_0xd817d8['message$'][_0x2e27f7(0x48c)](_0x441bbf=>{const _0x4715d2=_0x2e27f7;_0x441bbf[_0x4715d2(0x54d)]===this[_0x4715d2(0x4f0)]&&this[_0x4715d2(0x3ca)](_0x441bbf);})):(this[_0x2e27f7(0x4ac)](),this[_0x2e27f7(0x203)]['next'](0x2),(_0x4b16cb=this['_socketMessageSubscription'])==null||_0x4b16cb[_0x2e27f7(0x31d)](),this[_0x2e27f7(0x594)]=null));}),this['disposeWithMe'](this[_0x3a2088(0x5cf)]['registerOnClose'](()=>{const _0x3ba979=_0x3a2088;var _0x5b04b0;(_0x5b04b0=this['_socket'])==null||_0x5b04b0[_0x3ba979(0x42f)]({'cmd':b[_0x3ba979(0x5fd)],'data':{'roomID':this[_0x3ba979(0x4f0)]}});})));}get['sessionStatus'](){const _0x3489f0=_0x4821de;return this['_sessionStatus$'][_0x3489f0(0x40b)]();}[_0x4821de(0x4e3)](){const _0x3d4d21=_0x4821de;var _0xf3f030,_0x398990;return(_0x398990=(_0xf3f030=this[_0x3d4d21(0x4f3)])==null?void 0x0:_0xf3f030[_0x3d4d21(0x5f6)])!=null?_0x398990:null;}[_0x4821de(0x442)](){const _0x3b7522=_0x4821de;super[_0x3b7522(0x442)](),this[_0x3b7522(0x3ec)][_0x3b7522(0x56e)](),this[_0x3b7522(0x3ec)][_0x3b7522(0x56b)]();}['close'](){const _0x3240cc=_0x4821de;var _0x173595,_0x49fab8;this[_0x3240cc(0x4ac)](),(_0x173595=this[_0x3240cc(0x4f3)])==null||_0x173595['send']({'cmd':b['LEAVE'],'data':{'roomID':this[_0x3240cc(0x4f0)]}}),(_0x49fab8=this[_0x3240cc(0x4f3)])==null||_0x49fab8[_0x3240cc(0x23f)](),this[_0x3240cc(0x4bf)][_0x3240cc(0x56b)](),this['_sessionStatus$'][_0x3240cc(0x56b)](),this[_0x3240cc(0x442)]();}[_0x4821de(0x3ca)](_0x33eef8){const _0x2e4a0a=_0x4821de;_0x33eef8['cmd']===b[_0x2e4a0a(0x569)]?this[_0x2e4a0a(0x305)](_0x33eef8):_0x33eef8[_0x2e4a0a(0x358)]===b['RECV']&&this[_0x2e4a0a(0x2b1)](_0x33eef8);}[_0x4821de(0x409)](_0x3c3cbf){const _0xa59a3a=_0x4821de;this[_0xa59a3a(0x203)][_0xa59a3a(0x56e)](0x1),_0x3c3cbf[_0xa59a3a(0x42f)]({'cmd':b['JOIN'],'routeKey':this[_0xa59a3a(0x4f0)],'routeType':'','data':{'rooms':[{'roomID':this[_0xa59a3a(0x4f0)]}]}});}[_0x4821de(0x305)](_0x1ebeb5){const _0x40b02d=_0x4821de;var _0x149515;if(_0x1ebeb5[_0x40b02d(0x361)]===Ye[_0x40b02d(0x355)]){this[_0x40b02d(0x3cb)][_0x40b02d(0x4d2)]({'type':X[_0x40b02d(0x43c)][_0x40b02d(0x33a)],'content':this[_0x40b02d(0x28b)]['t']('session.room-full')}),this[_0x40b02d(0x203)][_0x40b02d(0x56e)](0x2);return;}this[_0x40b02d(0x203)][_0x40b02d(0x56e)](0x3);const _0x55bbcc=(_0x149515=_0x1ebeb5['data']['roomInfos'][this[_0x40b02d(0x4f0)]])==null?void 0x0:_0x149515[_0x40b02d(0x566)];_0x55bbcc&&_0x55bbcc['forEach'](_0x20690a=>this['_memberService']['updateMember'](this[_0x40b02d(0x4f0)],_0x20690a));}[_0x4821de(0x2b1)](_0x10c458){const _0x5c5d35=_0x4821de;try{const _0x2d0b2f=_0x10c458['data'];switch(_0x2d0b2f[_0x5c5d35(0x2ab)]){case _['CollaborationEvent'][_0x5c5d35(0x289)]:this['_onUserJoin'](_0x2d0b2f),this[_0x5c5d35(0x4bf)][_0x5c5d35(0x56e)](_0x2d0b2f);break;case _[_0x5c5d35(0x215)][_0x5c5d35(0x520)]:this[_0x5c5d35(0x4b9)](_0x2d0b2f),this[_0x5c5d35(0x4bf)]['next'](_0x2d0b2f);break;case _[_0x5c5d35(0x215)]['CHANGESET_ACK']:this['_stopTelemetryCollaborationNewChangeset'](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x5c5d35(0x56e)](_0x2d0b2f);break;case _[_0x5c5d35(0x215)][_0x5c5d35(0x25d)]:this[_0x5c5d35(0x244)][_0x5c5d35(0x5ee)](_0x5c5d35(0x5e3)+JSON['stringify'](_0x2d0b2f)),this[_0x5c5d35(0x4bf)][_0x5c5d35(0x56e)](_0x2d0b2f);break;case _[_0x5c5d35(0x215)][_0x5c5d35(0x21b)]:this[_0x5c5d35(0x506)][_0x5c5d35(0x269)](_0x2d0b2f[_0x5c5d35(0x434)]),this[_0x5c5d35(0x4bf)][_0x5c5d35(0x56e)](_0x2d0b2f);break;default:this[_0x5c5d35(0x4bf)][_0x5c5d35(0x56e)](_0x2d0b2f);}}catch(_0x4694a0){this[_0x5c5d35(0x244)][_0x5c5d35(0x5ee)](_0x4694a0,_0x10c458);}}[_0x4821de(0x237)](_0x3898a4){const _0x59bcc7=_0x4821de;this[_0x59bcc7(0x2ae)]['updateMember'](this[_0x59bcc7(0x4f0)],_0x3898a4[_0x59bcc7(0x434)]);}[_0x4821de(0x4b9)](_0x4a4225){const _0x597e63=_0x4821de;this[_0x597e63(0x2ae)][_0x597e63(0x5b7)](this[_0x597e63(0x4f0)],_0x4a4225['data'][_0x597e63(0x5f6)]);}async[_0x4821de(0x42f)](_0x256b2b,_0x5c79e8){const _0x59994c=_0x4821de;if(this[_0x59994c(0x356)]!==0x3||!this[_0x59994c(0x4f3)])throw new Error(_0x59994c(0x270));try{_0x256b2b[_0x59994c(0x2ab)]===_[_0x59994c(0x215)][_0x59994c(0x328)]&&(this[_0x59994c(0x417)](),this['_startTelemetryCollaborationNewChangeset'](_0x256b2b)),this[_0x59994c(0x4f3)][_0x59994c(0x42f)]({'cmd':b[_0x59994c(0x276)],'routeKey':_0x5c79e8,'routeType':'','data':_0x256b2b});}catch(_0x2bf1ec){this[_0x59994c(0x244)][_0x59994c(0x5ee)](_0x2bf1ec);}}[_0x4821de(0x417)](){const _0x34ab13=_0x4821de;var _0x52f753;this[_0x34ab13(0x5bc)]=window[_0x34ab13(0x3b5)](()=>{const _0x34dc11=_0x34ab13;this['_collaborationTimeoutTimer']=null,this['_messageService']['show']({'type':X[_0x34dc11(0x43c)][_0x34dc11(0x56a)],'content':this[_0x34dc11(0x28b)]['t']('session.collaboration-timeout')});},(_0x52f753=this[_0x34ab13(0x519)][_0x34ab13(0x2ce)](Ge))!=null?_0x52f753:ft);}['_clearCollaborationTimeoutTimer'](){this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}[_0x4821de(0x61b)](_0x1fb179){const _0x4492ed=_0x4821de;if(!this['_shouldReportTelemetry'])return;const {data:_0x131b8e}=_0x1fb179,{unitID:_0x5e319c,changeset:_0xf0ee80}=_0x131b8e,{mutations:_0x2e05ed,type:_0x9b7740}=_0xf0ee80;this[_0x4492ed(0x446)]={'unitId':_0x5e319c,'type':_0x9b7740,'startTime':performance[_0x4492ed(0x3b8)](),'stopTime':0x0,'duration':0x0,'size':_s(_0x2e05ed)};}[_0x4821de(0x5e4)](){const _0x39a453=_0x4821de;if(this[_0x39a453(0x553)]){if(!this[_0x39a453(0x446)]){this['_logService'][_0x39a453(0x5ee)]('[CollaborationSession]',_0x39a453(0x496));return;}this[_0x39a453(0x446)][_0x39a453(0x5a4)]=performance[_0x39a453(0x3b8)](),this[_0x39a453(0x446)][_0x39a453(0x21f)]=this[_0x39a453(0x446)][_0x39a453(0x5a4)]-this[_0x39a453(0x446)][_0x39a453(0x2fa)],this[_0x39a453(0x349)][_0x39a453(0x3b4)](hs,this[_0x39a453(0x446)]),this[_0x39a453(0x446)]=null;}}[_0x4821de(0x4ac)](){this['_telemetryInfo']=null;}},exports[_0x4821de(0x27b)]=fs([V(0x2,a['ILogService']),V(0x3,A[_0x4821de(0x292)]),V(0x4,A[_0x4821de(0x200)]),V(0x5,a['IConfigService']),V(0x6,a['Inject'](a[_0x4821de(0x53d)])),V(0x7,a[_0x4821de(0x579)](q)),V(0x8,a['Inject'](Xe)),V(0x9,a['Optional'](Yt[_0x4821de(0x255)]))],exports[_0x4821de(0x27b)]);var Is=Object[_0x4821de(0x51a)],ps=Object[_0x4821de(0x4f8)],Cs=(_0x1068ed,_0x118057,_0x29cf5f,_0x28b158)=>{for(var _0x456256=_0x28b158>0x1?void 0x0:_0x28b158?ps(_0x118057,_0x29cf5f):_0x118057,_0x393b78=_0x1068ed['length']-0x1,_0x42b151;_0x393b78>=0x0;_0x393b78--)(_0x42b151=_0x1068ed[_0x393b78])&&(_0x456256=(_0x28b158?_0x42b151(_0x118057,_0x29cf5f,_0x456256):_0x42b151(_0x456256))||_0x456256);return _0x28b158&&_0x456256&&Is(_0x118057,_0x29cf5f,_0x456256),_0x456256;},Z=(_0x5ab3c1,_0x38898d)=>(_0x517585,_0xec8531)=>_0x38898d(_0x517585,_0xec8531,_0x5ab3c1);exports['CollaborationSessionService']=class extends a[_0x4821de(0x357)]{constructor(_0x10c61d,_0x4ad11c,_0x3a0d41,_0x7627d1,_0x178a55,_0x2ab06e){const _0x27c0a6=_0x4821de;super(),u(this,_0x27c0a6(0x2fc),new v[(_0x27c0a6(0x611))](void 0x0)),u(this,_0x27c0a6(0x3e2),this[_0x27c0a6(0x2fc)][_0x27c0a6(0x43a)]()),u(this,_0x27c0a6(0x52b),null),u(this,'_sessions',new Map()),u(this,_0x27c0a6(0x4e6),new v[(_0x27c0a6(0x611))](H[_0x27c0a6(0x4cf)])),u(this,_0x27c0a6(0x345),this[_0x27c0a6(0x4e6)][_0x27c0a6(0x43a)]()),u(this,_0x27c0a6(0x4d1),!0x1),u(this,'_retryConnectingTimer'),u(this,_0x27c0a6(0x46f),0x0),u(this,_0x27c0a6(0x4a6)),u(this,_0x27c0a6(0x440)),(this[_0x27c0a6(0x2ac)]=_0x10c61d,this['_localeService']=_0x4ad11c,this[_0x27c0a6(0x3cb)]=_0x3a0d41,this[_0x27c0a6(0x244)]=_0x7627d1,this[_0x27c0a6(0x519)]=_0x178a55,this[_0x27c0a6(0x205)]=_0x2ab06e,this[_0x27c0a6(0x3ac)]());}get['_socket'](){return this['_socket$']['getValue']();}[_0x4821de(0x3ac)](){const _0xfa446c=_0x4821de;this[_0xfa446c(0x2bd)](),this['_listenToOnlineEvent']();}[_0x4821de(0x442)](){const _0x49e882=_0x4821de;super[_0x49e882(0x442)](),this[_0x49e882(0x22c)]['forEach'](_0x3545c5=>_0x3545c5[_0x49e882(0x442)]()),this[_0x49e882(0x22c)][_0x49e882(0x25a)](),this['_status$'][_0x49e882(0x56b)]();}async[_0x4821de(0x277)](_0x34d988){const _0x92609f=_0x4821de;if(this['_sessions']['has'](_0x34d988))return this['_sessions'][_0x92609f(0x56d)](_0x34d988);this[_0x92609f(0x287)]();const _0x150e40=this[_0x92609f(0x2ac)]['createInstance'](exports[_0x92609f(0x27b)],_0x34d988,this[_0x92609f(0x2fc)][_0x92609f(0x43a)]());return this[_0x92609f(0x22c)]['set'](_0x34d988,_0x150e40),_0x150e40;}[_0x4821de(0x27d)](_0x189cc3){const _0x1d21fc=_0x4821de;var _0x59a40e;const _0x5e2d4a=this[_0x1d21fc(0x22c)][_0x1d21fc(0x56d)](_0x189cc3);_0x5e2d4a&&(this['_sessions'][_0x1d21fc(0x28c)](_0x189cc3),_0x5e2d4a[_0x1d21fc(0x23f)]()),this[_0x1d21fc(0x22c)][_0x1d21fc(0x5c1)]||(_0x59a40e=this[_0x1d21fc(0x4f3)])==null||_0x59a40e[_0x1d21fc(0x23f)]();}[_0x4821de(0x3e7)](){const _0x34f0bc=_0x4821de;this[_0x34f0bc(0x46f)]=0x0,this[_0x34f0bc(0x493)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x34f0bc(0x493)]=null),this[_0x34f0bc(0x392)]();}[_0x4821de(0x60f)](){const _0x4f3dc3=_0x4821de;var _0xa3c471,_0x45c153;const _0x56424f=this[_0x4f3dc3(0x519)][_0x4f3dc3(0x2ce)](gt),_0x2d584c=this[_0x4f3dc3(0x519)][_0x4f3dc3(0x2ce)](L),_0x4a46fa=(_0x45c153=(_0xa3c471=_0x2d584c==null?void 0x0:_0x2d584c[_0x4f3dc3(0x58e)])!=null?_0xa3c471:_0x56424f)!=null?_0x45c153:Zt,_0x333fba=this[_0x4f3dc3(0x205)][_0x4f3dc3(0x27a)](_0x4a46fa);return this[_0x4f3dc3(0x52b)]=_0x333fba,_0x333fba;}[_0x4821de(0x287)](){const _0x95436a=_0x4821de;var _0x550569,_0x18fcce;try{const _0x74ff66=(_0x18fcce=(_0x550569=this[_0x95436a(0x4f3)])!=null?_0x550569:this['_candidateSocket'])!=null?_0x18fcce:this[_0x95436a(0x60f)]();if(_0x74ff66){const _0x5892cf=_0x74ff66[_0x95436a(0x42f)];_0x74ff66[_0x95436a(0x42f)]=_0x5a9f34=>(this['_rescheduleHeartbeat'](),_0x5892cf[_0x95436a(0x2d8)](_0x74ff66,[_0x5a9f34])),_0x74ff66[_0x95436a(0x492)][_0x95436a(0x48c)](_0x35012b=>this[_0x95436a(0x501)](_0x74ff66,_0x35012b)),_0x74ff66[_0x95436a(0x35b)][_0x95436a(0x2a5)](E[_0x95436a(0x5ad)](0x1))[_0x95436a(0x48c)](_0x1acfdc=>this[_0x95436a(0x244)][_0x95436a(0x5ee)](_0x95436a(0x59b),_0x1acfdc)),_0x74ff66['open$'][_0x95436a(0x2a5)](E[_0x95436a(0x5ad)](0x1))[_0x95436a(0x48c)](()=>{const _0x40c147=_0x95436a;this[_0x40c147(0x4a1)](_0x74ff66);}),_0x74ff66[_0x95436a(0x511)][_0x95436a(0x2a5)](E[_0x95436a(0x5ad)](0x1))['subscribe'](_0x355048=>{const _0x3b5735=_0x95436a;this['_logService'][_0x3b5735(0x233)](_0x3b5735(0x4b0),_0x3b5735(0x4dc),_0x355048),this[_0x3b5735(0x319)]();});}}catch(_0x1a55b8){this[_0x95436a(0x244)]['error'](_0x1a55b8),this[_0x95436a(0x319)]();}}[_0x4821de(0x4a1)](_0x596c44){const _0x31ada5=_0x4821de;this[_0x31ada5(0x244)][_0x31ada5(0x233)](_0x31ada5(0x4b0),_0x31ada5(0x432)),_0x596c44['send']({'cmd':b[_0x31ada5(0x325)]}),this[_0x31ada5(0x479)]();}[_0x4821de(0x2bd)](){const _0x5e9746=_0x4821de;window['addEventListener']('offline',()=>this[_0x5e9746(0x252)]());}['_onOffline'](){const _0x418836=_0x4821de;this[_0x418836(0x4d1)]=!0x1,this[_0x418836(0x52b)]=null,this[_0x418836(0x4e6)][_0x418836(0x56e)](H[_0x418836(0x266)]),this[_0x418836(0x2fc)][_0x418836(0x56e)](null),this[_0x418836(0x2e3)](),this[_0x418836(0x464)]();}['_onConnectionFailed'](){const _0x29fc84=_0x4821de;var _0x402e03;this[_0x29fc84(0x252)](),this[_0x29fc84(0x46f)]<((_0x402e03=this[_0x29fc84(0x519)]['getConfig'](It))!=null?_0x402e03:ts)?(this[_0x29fc84(0x3cb)][_0x29fc84(0x4d2)]({'key':'collaboration-session-retry','type':X[_0x29fc84(0x43c)][_0x29fc84(0x33a)],'content':this['_localeService']['t'](_0x29fc84(0x5ba))}),this[_0x29fc84(0x392)]()):this[_0x29fc84(0x3cb)][_0x29fc84(0x4d2)]({'key':_0x29fc84(0x612),'type':X[_0x29fc84(0x43c)][_0x29fc84(0x56a)],'content':this[_0x29fc84(0x28b)]['t'](_0x29fc84(0x307))});}['_listenToOnlineEvent'](){const _0x5b3b03=_0x4821de,_0x4c8bd1=()=>{const _0x491bf0=_0x370a;this[_0x491bf0(0x4f3)]||this[_0x491bf0(0x3e7)]();},_0x160c44=()=>{const _0x546892=_0x370a;this['_socket']||document[_0x546892(0x427)]===_0x546892(0x3ad)||this[_0x546892(0x3e7)]();};window['addEventListener'](_0x5b3b03(0x33c),_0x4c8bd1),document['addEventListener'](_0x5b3b03(0x551),_0x160c44);}[_0x4821de(0x392)](){const _0x56d8b6=_0x4821de;var _0x3860cb;const _0x6aa39a=this[_0x56d8b6(0x46f)],_0x38584a=this[_0x56d8b6(0x519)][_0x56d8b6(0x2ce)](L),_0x292098=_0x6aa39a===0x0?0x0:((_0x3860cb=_0x38584a==null?void 0x0:_0x38584a['retryConnectingInterval'])!=null?_0x3860cb:es)*0x2**_0x6aa39a;this[_0x56d8b6(0x493)]=window[_0x56d8b6(0x3b5)](()=>{const _0x4eb6a8=_0x56d8b6;clearTimeout(this[_0x4eb6a8(0x493)]),this[_0x4eb6a8(0x493)]=null,this[_0x4eb6a8(0x287)]();},_0x292098),this[_0x56d8b6(0x46f)]+=0x1;}[_0x4821de(0x501)](_0x8904d0,_0xa2635f){const _0x53a629=_0x4821de,{cmd:_0x4d96e2}=_0xa2635f;_0x4d96e2===b['HELLO']&&!this[_0x53a629(0x4d1)]&&(_0x8904d0[_0x53a629(0x5f6)]=_0xa2635f[_0x53a629(0x434)][_0x53a629(0x5f6)],this[_0x53a629(0x2fc)][_0x53a629(0x56e)](_0x8904d0),this[_0x53a629(0x4e6)][_0x53a629(0x56e)](H[_0x53a629(0x451)]),this[_0x53a629(0x4d1)]=!0x0,this[_0x53a629(0x52b)]=null),_0x4d96e2===b[_0x53a629(0x348)]&&this[_0x53a629(0x2e3)](),this['_rescheduleHeartbeat']();}[_0x4821de(0x479)](){const _0x386acb=_0x4821de;var _0xbc82d7;this[_0x386acb(0x464)](),this['_sendHeartbeatTimer']=window[_0x386acb(0x3b5)](()=>this[_0x386acb(0x5b1)](),(_0xbc82d7=this['_configService'][_0x386acb(0x2ce)](mt))!=null?_0xbc82d7:Qt);}[_0x4821de(0x5b1)](){const _0x54c378=_0x4821de;this[_0x54c378(0x4f3)][_0x54c378(0x42f)]({'cmd':b[_0x54c378(0x348)]}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x3797af=_0x4821de;var _0x448171;this[_0x3797af(0x440)]=window[_0x3797af(0x3b5)](()=>this[_0x3797af(0x319)](),(_0x448171=this[_0x3797af(0x519)]['getConfig'](Ge))!=null?_0x448171:ft);}[_0x4821de(0x464)](){const _0x366c68=_0x4821de;this[_0x366c68(0x4a6)]!=null&&(clearTimeout(this[_0x366c68(0x4a6)]),this[_0x366c68(0x4a6)]=null);}[_0x4821de(0x2e3)](){const _0x3e0868=_0x4821de;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x3e0868(0x440)]),this[_0x3e0868(0x440)]=null);}},exports[_0x4821de(0x3d5)]=Cs([Z(0x0,a[_0x4821de(0x579)](a[_0x4821de(0x2cd)])),Z(0x1,a[_0x4821de(0x579)](a['LocaleService'])),Z(0x2,A['IMessageService']),Z(0x3,a[_0x4821de(0x49c)]),Z(0x4,a['IConfigService']),Z(0x5,Ke)],exports['CollaborationSessionService']);var R=[];for(var Ue=0x0;Ue<0x100;++Ue)R[_0x4821de(0x25b)]((Ue+0x100)['toString'](0x10)[_0x4821de(0x603)](0x1));function Es(_0x461bfe,_0xdce999=0x0){const _0x3202d6=_0x4821de;return(R[_0x461bfe[_0xdce999+0x0]]+R[_0x461bfe[_0xdce999+0x1]]+R[_0x461bfe[_0xdce999+0x2]]+R[_0x461bfe[_0xdce999+0x3]]+'-'+R[_0x461bfe[_0xdce999+0x4]]+R[_0x461bfe[_0xdce999+0x5]]+'-'+R[_0x461bfe[_0xdce999+0x6]]+R[_0x461bfe[_0xdce999+0x7]]+'-'+R[_0x461bfe[_0xdce999+0x8]]+R[_0x461bfe[_0xdce999+0x9]]+'-'+R[_0x461bfe[_0xdce999+0xa]]+R[_0x461bfe[_0xdce999+0xb]]+R[_0x461bfe[_0xdce999+0xc]]+R[_0x461bfe[_0xdce999+0xd]]+R[_0x461bfe[_0xdce999+0xe]]+R[_0x461bfe[_0xdce999+0xf]])[_0x3202d6(0x443)]();}var Se,bs=new Uint8Array(0x10);function Ts(){const _0x4ed6fd=_0x4821de;if(!Se&&(Se=typeof crypto<'u'&&crypto[_0x4ed6fd(0x59e)]&&crypto['getRandomValues'][_0x4ed6fd(0x20a)](crypto),!Se))throw new Error(_0x4ed6fd(0x55e));return Se(bs);}var Rs=typeof crypto<'u'&&crypto[_0x4821de(0x3a4)]&&crypto['randomUUID']['bind'](crypto);const st={'randomUUID':Rs};function Os(_0x5dbbec,_0x41fb8e,_0x524d09){const _0x45f945=_0x4821de;if(st[_0x45f945(0x3a4)]&&!_0x41fb8e&&!_0x5dbbec)return st[_0x45f945(0x3a4)]();_0x5dbbec=_0x5dbbec||{};var _0x1b9957=_0x5dbbec[_0x45f945(0x52c)]||(_0x5dbbec[_0x45f945(0x206)]||Ts)();return _0x1b9957[0x6]=_0x1b9957[0x6]&0xf|0x40,_0x1b9957[0x8]=_0x1b9957[0x8]&0x3f|0x80,Es(_0x1b9957);}var Ds=Object['defineProperty'],ys=Object[_0x4821de(0x4f8)],Us=(_0x420f10,_0x1559c3,_0x276ea6,_0x57c4c2)=>{const _0x13bec1=_0x4821de;for(var _0x4da0bf=_0x57c4c2>0x1?void 0x0:_0x57c4c2?ys(_0x1559c3,_0x276ea6):_0x1559c3,_0x2d730f=_0x420f10[_0x13bec1(0x1fe)]-0x1,_0x3507cc;_0x2d730f>=0x0;_0x2d730f--)(_0x3507cc=_0x420f10[_0x2d730f])&&(_0x4da0bf=(_0x57c4c2?_0x3507cc(_0x1559c3,_0x276ea6,_0x4da0bf):_0x3507cc(_0x4da0bf))||_0x4da0bf);return _0x57c4c2&&_0x4da0bf&&Ds(_0x1559c3,_0x276ea6,_0x4da0bf),_0x4da0bf;},Pe=(_0x4baf1f,_0x2ba279)=>(_0x420c2c,_0x14fce6)=>_0x2ba279(_0x420c2c,_0x14fce6,_0x4baf1f);let fe=class{constructor(_0x3cf62d,_0x30d885,_0x46b973){const _0x48a09d=_0x4821de;this[_0x48a09d(0x2ac)]=_0x3cf62d,this[_0x48a09d(0x577)]=_0x30d885,this['_renderManagerService']=_0x46b973;}['transformIMECache'](_0x11ac64){const _0x25b1e7=_0x4821de;this[_0x25b1e7(0x20f)](_0x11ac64),this[_0x25b1e7(0x60c)](_0x11ac64);}[_0x4821de(0x54a)](_0x42b190){const _0x31ae05=_0x4821de,{unitID:_0x2c8484}=_0x42b190,_0x1aa5dc=this[_0x31ae05(0x396)][_0x31ae05(0x5d6)](_0x2c8484)[_0x31ae05(0x546)](N[_0x31ae05(0x22b)]),{redoCache:_0x2ce185}=_0x1aa5dc[_0x31ae05(0x340)]();if(_0x2ce185[_0x31ae05(0x1fe)]===0x0)return _0x42b190;let _0xca7ca=a['Tools'][_0x31ae05(0x613)](_0x42b190[_0x31ae05(0x2c2)][0x0]);for(let _0x112876=0x0;_0x112876<_0x2ce185[_0x31ae05(0x1fe)];_0x112876++){const _0x161ab4={'id':'doc.mutation.rich-text-editing','params':{..._0x2ce185[_0x112876]}},_0x192e31=this[_0x31ae05(0x577)][_0x31ae05(0x225)](_0xca7ca,_0x161ab4,!0x1);if(_[_0x31ae05(0x467)](_0x192e31))throw _0x192e31[_0x31ae05(0x5ee)];_0xca7ca=_0x192e31[_0x31ae05(0x232)];}return{...a[_0x31ae05(0x57b)][_0x31ae05(0x613)](_0x42b190),'mutations':[_0xca7ca]};}[_0x4821de(0x20f)](_0x5a0966){const _0x3fb507=_0x4821de,{unitID:_0x5a14c9}=_0x5a0966,_0x41fa13=this[_0x3fb507(0x396)][_0x3fb507(0x5d6)](_0x5a14c9)[_0x3fb507(0x546)](N[_0x3fb507(0x22b)]),{undoCache:_0x4bf7e3,redoCache:_0x58ec4f}=_0x41fa13[_0x3fb507(0x340)]();if(_0x4bf7e3['length']===0x0||_0x58ec4f[_0x3fb507(0x1fe)]===0x0)return;const _0x40c3df=[],_0x360ad0=[];let _0x2053d4=a[_0x3fb507(0x57b)][_0x3fb507(0x613)](_0x5a0966[_0x3fb507(0x2c2)][0x0]),_0x596876=a[_0x3fb507(0x57b)][_0x3fb507(0x613)](_0x5a0966[_0x3fb507(0x2c2)][0x0]);for(let _0x404822=_0x4bf7e3['length']-0x1;_0x404822>=0x0;_0x404822--){const _0xa3e0b7={'id':_0x3fb507(0x297),'params':{..._0x4bf7e3[_0x404822]}},_0x3c27f1={'id':_0x3fb507(0x297),'params':{..._0x58ec4f[_0x404822]}},_0x1b742c=this[_0x3fb507(0x577)][_0x3fb507(0x225)](_0x2053d4,_0xa3e0b7,!0x1),_0xd50bcf=this[_0x3fb507(0x577)][_0x3fb507(0x225)](_0x596876,_0x3c27f1,!0x1);if(_[_0x3fb507(0x467)](_0x1b742c))throw _0x1b742c[_0x3fb507(0x5ee)];if(_['isTransformMutationFailure'](_0xd50bcf))throw _0xd50bcf[_0x3fb507(0x5ee)];_0x40c3df[_0x3fb507(0x5d8)](_0x1b742c['m2Prime'][_0x3fb507(0x247)]),_0x360ad0[_0x3fb507(0x5d8)](_0xd50bcf[_0x3fb507(0x309)][_0x3fb507(0x247)]),_0x2053d4=_0x1b742c[_0x3fb507(0x232)],_0x596876=_0xd50bcf[_0x3fb507(0x232)];}_0x41fa13[_0x3fb507(0x4c2)]({'undoCache':_0x40c3df,'redoCache':_0x360ad0});}['_transformPreviousActiveRange'](_0x16768d){const _0x2c7add=_0x4821de,{unitID:_0x31717a}=_0x16768d,_0x2b535e=this[_0x2c7add(0x396)][_0x2c7add(0x5d6)](_0x31717a)['with'](N[_0x2c7add(0x22b)]),_0x59ff6c=_0x2b535e['getActiveRange']();if(_0x59ff6c==null)return;const _0x5dcfd0=[{'id':_0x2c7add(0x297),'params':{'unitId':_0x16768d['unitID'],'actions':null,'textRanges':[_0x59ff6c]}}],_0x18ffbd=this['_transformService'][_0x2c7add(0x209)](_0x16768d,_0x5dcfd0);if(!_[_0x2c7add(0x2f1)](_0x18ffbd))throw _0x18ffbd[_0x2c7add(0x5ee)];const _0x5cc34a=_0x18ffbd[_0x2c7add(0x309)][0x0][_0x2c7add(0x247)]['textRanges'];Array[_0x2c7add(0x4d3)](_0x5cc34a)&&_0x5cc34a[_0x2c7add(0x1fe)]&&_0x2b535e[_0x2c7add(0x51d)](_0x5cc34a[0x0]);}};fe=Us([Pe(0x0,a[_0x4821de(0x579)](a[_0x4821de(0x2cd)])),Pe(0x1,_[_0x4821de(0x2c7)]),Pe(0x2,O[_0x4821de(0x24a)])],fe);var Ps=Object[_0x4821de(0x51a)],ws=Object[_0x4821de(0x4f8)],Ns=(_0x3d8df2,_0x58ce00,_0x318158,_0x42f0d4)=>{const _0x5d48fc=_0x4821de;for(var _0x26870c=_0x42f0d4>0x1?void 0x0:_0x42f0d4?ws(_0x58ce00,_0x318158):_0x58ce00,_0x31bf46=_0x3d8df2[_0x5d48fc(0x1fe)]-0x1,_0x2aee5d;_0x31bf46>=0x0;_0x31bf46--)(_0x2aee5d=_0x3d8df2[_0x31bf46])&&(_0x26870c=(_0x42f0d4?_0x2aee5d(_0x58ce00,_0x318158,_0x26870c):_0x2aee5d(_0x26870c))||_0x26870c);return _0x42f0d4&&_0x26870c&&Ps(_0x58ce00,_0x318158,_0x26870c),_0x26870c;},ce=(_0x150076,_0x4c0bbb)=>(_0x5a7393,_0x498b85)=>_0x4c0bbb(_0x5a7393,_0x498b85,_0x150076);exports[_0x4821de(0x4c6)]=class extends a[_0x4821de(0x357)]{constructor(_0x39da56,_0x7a444f,_0x4ceb98,_0x33adb0,_0x134e70){const _0x410b00=_0x4821de;super(),u(this,_0x410b00(0x4eb),new Map()),u(this,_0x410b00(0x601),new Map()),u(this,_0x410b00(0x1fc),!0x1),(this[_0x410b00(0x519)]=_0x39da56,this[_0x410b00(0x599)]=_0x7a444f,this['_beforeCloseService']=_0x4ceb98,this[_0x410b00(0x28b)]=_0x33adb0,this['_revisionService']=_0x134e70,this[_0x410b00(0x468)]());}[_0x4821de(0x39a)](){this['_disabled']=!0x0;}[_0x4821de(0x3b1)](){const _0x1c746a=_0x4821de;this[_0x1c746a(0x1fc)]=!0x1;}[_0x4821de(0x442)](){const _0x5c28ac=_0x4821de;this[_0x5c28ac(0x2b4)]()['then'](()=>super[_0x5c28ac(0x442)]());}async[_0x4821de(0x572)](_0x51fd55){const _0x2d2ac7=_0x4821de;return this[_0x2d2ac7(0x1fc)]?null:this[_0x2d2ac7(0x599)][_0x2d2ac7(0x33f)](it(_0x51fd55));}async['saveOfflineData'](_0x23c910,_0x4bf369){const _0x1169cb=_0x4821de;return!!this[_0x1169cb(0x599)][_0x1169cb(0x22a)](_0x23c910,_0x4bf369);}[_0x4821de(0x2b5)](_0xcad2c9,_0x73a949,_0x5d5832,_0x21139b){const _0x25ae0a=_0x4821de,_0x57818c=this['_revisionService'][_0x25ae0a(0x1f2)](_0xcad2c9);this[_0x25ae0a(0x4eb)][_0x25ae0a(0x4d0)](_0xcad2c9,{'unitID':_0xcad2c9,'type':_0x73a949,'awaitingChangeset':_0x5d5832,'mutations':_0x21139b,'rev':_0x57818c}),this['_saveTaskMap'][_0x25ae0a(0x1f6)](_0xcad2c9)||this['_scheduleSaving'](_0xcad2c9);}[_0x4821de(0x3fc)](_0x579209){const _0x129fe1=_0x4821de,_0x14c517=this[_0x129fe1(0x471)]();_0x14c517===0x0?this[_0x129fe1(0x2ea)](_0x579209):this[_0x129fe1(0x601)][_0x129fe1(0x4d0)](_0x579209,setTimeout(()=>this[_0x129fe1(0x2ea)](_0x579209),_0x14c517));}[_0x4821de(0x471)](){const _0x20d62f=_0x4821de;var _0x4c4bb4;return(_0x4c4bb4=this[_0x20d62f(0x519)][_0x20d62f(0x2ce)](pt))!=null?_0x4c4bb4:ss;}['_saveCache'](_0x27fe37){const _0x59a636=_0x4821de,_0x323680=this[_0x59a636(0x601)][_0x59a636(0x56d)](_0x27fe37);return _0x323680!==void 0x0&&window[_0x59a636(0x375)](_0x323680),this[_0x59a636(0x599)][_0x59a636(0x22a)](it(_0x27fe37),this['_cachedData'][_0x59a636(0x56d)](_0x27fe37))[_0x59a636(0x379)](()=>this[_0x59a636(0x601)][_0x59a636(0x28c)](_0x27fe37));}async['exhaustSavingTask'](){const _0x4b1e9b=_0x4821de,_0x490293=[];this['_saveTaskMap'][_0x4b1e9b(0x3c2)]((_0x18ca20,_0x56c494)=>{const _0xc7c80e=_0x4b1e9b;window['clearTimeout'](_0x18ca20),_0x490293['push'](this[_0xc7c80e(0x2ea)](_0x56c494)[_0xc7c80e(0x379)](()=>{const _0x4ba3a3=_0xc7c80e;this[_0x4ba3a3(0x601)][_0x4ba3a3(0x28c)](_0x56c494);}));}),await Promise[_0x4b1e9b(0x548)](_0x490293);}[_0x4821de(0x468)](){const _0xbf9d4f=_0x4821de;this[_0xbf9d4f(0x4b1)](this[_0xbf9d4f(0x5cf)]['registerBeforeClose'](()=>{const _0x5acdd7=_0xbf9d4f;if(this[_0x5acdd7(0x601)][_0x5acdd7(0x5c1)])return this[_0x5acdd7(0x28b)]['t'](_0x5acdd7(0x5f9));}));}},exports[_0x4821de(0x4c6)]=Ns([ce(0x0,a[_0x4821de(0x482)]),ce(0x1,a[_0x4821de(0x29b)]),ce(0x2,A[_0x4821de(0x292)]),ce(0x3,a[_0x4821de(0x579)](a[_0x4821de(0x53d)])),ce(0x4,a[_0x4821de(0x579)](_[_0x4821de(0x4e7)]))],exports['LocalCacheService']);function it(_0x7cbd2d){const _0x4c803d=_0x4821de;return _0x4c803d(0x491)+_0x7cbd2d;}var Ms=Object[_0x4821de(0x51a)],As=Object[_0x4821de(0x4f8)],Ls=(_0x58636f,_0x38af37,_0xa5d551,_0x40d3f7)=>{const _0x4a86a4=_0x4821de;for(var _0x47fa46=_0x40d3f7>0x1?void 0x0:_0x40d3f7?As(_0x38af37,_0xa5d551):_0x38af37,_0x35fccd=_0x58636f[_0x4a86a4(0x1fe)]-0x1,_0x108cc3;_0x35fccd>=0x0;_0x35fccd--)(_0x108cc3=_0x58636f[_0x35fccd])&&(_0x47fa46=(_0x40d3f7?_0x108cc3(_0x38af37,_0xa5d551,_0x47fa46):_0x108cc3(_0x47fa46))||_0x47fa46);return _0x40d3f7&&_0x47fa46&&Ms(_0x38af37,_0xa5d551,_0x47fa46),_0x47fa46;},we=(_0x1cc8bb,_0x5345db)=>(_0x42eaf3,_0x5b8682)=>_0x5345db(_0x42eaf3,_0x5b8682,_0x1cc8bb);function js(_0x31ce7d){const _0x2b9b68=_0x4821de,{unitID:_0x380740,mutations:_0xe40460}=_0x31ce7d;return{'unitId':_0x380740,'subUnitId':_0xe40460[0x0][_0x2b9b68(0x247)][_0x2b9b68(0x32d)]};}let Ie=class{constructor(_0x10d9d0,_0x525433,_0x232e6c){const _0x1e26e7=_0x4821de;this[_0x1e26e7(0x2ac)]=_0x10d9d0,this[_0x1e26e7(0x577)]=_0x525433,this[_0x1e26e7(0x2a9)]=_0x232e6c;}[_0x4821de(0x1f9)](_0x19d44e){const _0x1be860=_0x4821de;var _0xf8aacf,_0x34d004,_0x40e814,_0x314c73;const _0x12fba6=this[_0x1be860(0x2ac)][_0x1be860(0x56d)](C[_0x1be860(0x2a7)]),{unitId:_0x30d971,subUnitId:_0x90bfe6}=js(_0x19d44e),_0x138a7c=_0x12fba6[_0x1be860(0x312)](_0x30d971)['getCurrentSelections'](),_0x6da52f=(_0x34d004=(_0xf8aacf=this[_0x1be860(0x2a9)][_0x1be860(0x5e9)](_0x30d971))==null?void 0x0:_0xf8aacf[_0x1be860(0x220)]())==null?void 0x0:_0x34d004['getSheetId']();if(_0x138a7c['length']===0x0||!_0x30d971||!_0x90bfe6)return;const _0x399017=[{'id':C['SetSelectionsOperation']['id'],'params':{'unitId':_0x30d971,'subUnitId':_0x6da52f,'selections':a[_0x1be860(0x57b)][_0x1be860(0x613)](_0x138a7c)}}],_0x19e7ca=this['_transformService']['transformMutationsWithChangeset'](_0x19d44e,_0x399017);if(!_[_0x1be860(0x2f1)](_0x19e7ca))throw _0x19e7ca[_0x1be860(0x5ee)];const _0x3c4afb=(_0x314c73=(_0x40e814=_0x19e7ca[_0x1be860(0x309)][0x0])==null?void 0x0:_0x40e814[_0x1be860(0x247)])==null?void 0x0:_0x314c73['selections'];Array[_0x1be860(0x4d3)](_0x3c4afb)&&_0x3c4afb[_0x1be860(0x1fe)]&&this[_0x1be860(0x2ac)][_0x1be860(0x56d)](a['ICommandService'])[_0x1be860(0x461)](C[_0x1be860(0x556)]['id'],{'unitId':_0x30d971,'subUnitId':_0x6da52f,'selections':_0x3c4afb});}};Ie=Ls([we(0x0,a['Inject'](a['Injector'])),we(0x1,_[_0x4821de(0x2c7)]),we(0x2,a[_0x4821de(0x258)])],Ie);const Re=a[_0x4821de(0x23b)](_0x4821de(0x2c6));var Dt=(_0x565ff2=>(_0x565ff2[_0x565ff2[_0x4821de(0x5dd)]=0x0]=_0x4821de(0x5dd),_0x565ff2[_0x565ff2[_0x4821de(0x3fb)]=0x1]='OTHER_CLIENTS_EDITING',_0x565ff2))(Dt||{});const nt=0x7530,rt=_0x4821de(0x474);class $s extends a['Disposable']{constructor(){const _0x1e5dda=_0x4821de;super(),u(this,_0x1e5dda(0x521),a[_0x1e5dda(0x57b)][_0x1e5dda(0x24f)]()),u(this,_0x1e5dda(0x411),new Set()),u(this,_0x1e5dda(0x518),new Map()),u(this,_0x1e5dda(0x422),null),u(this,'_clearOtherTimers',new Map()),u(this,_0x1e5dda(0x397),new Map()),this[_0x1e5dda(0x402)]();}[_0x4821de(0x442)](){const _0x16e90d=_0x4821de;super[_0x16e90d(0x442)](),this[_0x16e90d(0x5db)][_0x16e90d(0x3c2)]((_0x7b7eb3,_0x569d32)=>this[_0x16e90d(0x2d2)](_0x569d32)),this[_0x16e90d(0x422)]&&window[_0x16e90d(0x421)](this[_0x16e90d(0x422)]);}[_0x4821de(0x2cc)](_0x5dc372){const _0x298235=_0x4821de;return this[_0x298235(0x3a5)](_0x5dc372)[_0x298235(0x2a5)](v[_0x298235(0x4f2)]());}[_0x4821de(0x58f)](_0x59959f){const _0x5b419a=_0x4821de;this[_0x5b419a(0x411)]['size']===0x0&&this[_0x5b419a(0x509)](),this[_0x5b419a(0x411)][_0x5b419a(0x201)](_0x59959f),this[_0x5b419a(0x2c3)]({'type':0x0,'memberID':this[_0x5b419a(0x521)],'unitIDs':[_0x59959f],'isForwarded':!0x1});}[_0x4821de(0x602)](_0x1e07c8){const _0x33c3d2=_0x4821de;this[_0x33c3d2(0x411)][_0x33c3d2(0x28c)](_0x1e07c8),this[_0x33c3d2(0x411)][_0x33c3d2(0x5c1)]===0x0&&this[_0x33c3d2(0x422)]&&window[_0x33c3d2(0x421)](this[_0x33c3d2(0x422)]);}[_0x4821de(0x402)](){const _0x9faf55=_0x4821de;this['disposeWithMe'](a['toDisposable'](v[_0x9faf55(0x3c7)](window,_0x9faf55(0x386))['subscribe'](_0x567d3e=>{const _0x1ab46f=_0x9faf55;if(_0x567d3e[_0x1ab46f(0x236)]!==rt||!_0x567d3e[_0x1ab46f(0x32b)])return;const _0x439e6c=JSON[_0x1ab46f(0x5f4)](_0x567d3e[_0x1ab46f(0x32b)]);this['_handleEvent'](_0x439e6c);}))),window[_0x9faf55(0x35a)]('unload',()=>this[_0x9faf55(0x2c3)]({'type':0x1,'memberID':this[_0x9faf55(0x521)],'unitIDs':Array['from'](this[_0x9faf55(0x411)])}));}[_0x4821de(0x310)](_0x16366d){const _0x4357a6=_0x4821de;switch(_0x16366d[_0x4357a6(0x3b6)]){case 0x0:this['_handleJoinEvent'](_0x16366d);break;case 0x1:this['_handleLeaveEvent'](_0x16366d);break;case 0x2:this['_handleHeartbeatEvent'](_0x16366d);break;}}['_handleJoinEvent'](_0x4141ef){const _0x4b1e70=_0x4821de,{unitIDs:_0x489b86,memberID:_0x240f8e,isForwarded:_0x500c5c}=_0x4141ef;_0x489b86[_0x4b1e70(0x3c2)](_0x2e4625=>{const _0x23db1c=_0x4b1e70;if(!_0x500c5c&&this[_0x23db1c(0x518)]['has'](_0x2e4625)&&this[_0x23db1c(0x3a5)](_0x2e4625)[_0x23db1c(0x56e)](0x1),!this[_0x23db1c(0x518)][_0x23db1c(0x1f6)](_0x2e4625)||!this[_0x23db1c(0x518)]['get'](_0x2e4625)[_0x23db1c(0x1f6)](_0x240f8e)){const _0x54ec68=this[_0x23db1c(0x518)][_0x23db1c(0x56d)](_0x2e4625)||new Set();_0x54ec68['add'](_0x240f8e),this[_0x23db1c(0x518)][_0x23db1c(0x4d0)](_0x2e4625,_0x54ec68),this[_0x23db1c(0x381)](_0x240f8e);}}),_0x500c5c||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x4b1e70(0x411)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0xecfe0c){const _0x5348fc=_0x4821de;this[_0x5348fc(0x2d2)](_0xecfe0c);const _0x27d2f4=window[_0x5348fc(0x3b5)](()=>{const _0x3dc43b=_0x5348fc;this[_0x3dc43b(0x518)][_0x3dc43b(0x3c2)](_0x55b71f=>{const _0x2fa8ae=_0x3dc43b;_0x55b71f[_0x2fa8ae(0x28c)](_0xecfe0c);});},nt*0x2);this['_clearOtherTimers'][_0x5348fc(0x4d0)](_0xecfe0c,_0x27d2f4);}[_0x4821de(0x2d2)](_0x426337){const _0x449ab4=_0x4821de;if(this[_0x449ab4(0x5db)]['has'](_0x426337)){const _0x33c2eb=this[_0x449ab4(0x5db)][_0x449ab4(0x56d)](_0x426337);_0x33c2eb&&window[_0x449ab4(0x375)](_0x33c2eb),this[_0x449ab4(0x5db)][_0x449ab4(0x4d0)](_0x426337,null);}}[_0x4821de(0x37b)](_0x48e5fe){const _0x250e8d=_0x4821de,{memberID:_0x29205f,unitIDs:_0x5bcebc}=_0x48e5fe;_0x5bcebc[_0x250e8d(0x3c2)](_0x138a44=>{const _0x469800=_0x250e8d;var _0x3011b7;const _0x173d4f=this[_0x469800(0x518)][_0x469800(0x56d)](_0x138a44);_0x173d4f&&(_0x173d4f[_0x469800(0x28c)](_0x29205f),(_0x3011b7=this[_0x469800(0x3a5)](_0x138a44))==null||_0x3011b7[_0x469800(0x56e)](_0x173d4f['size']===0x0?0x0:0x1));}),this[_0x250e8d(0x2d2)](_0x29205f);}[_0x4821de(0x31a)](_0x2faeaf){const _0x595674=_0x4821de;this[_0x595674(0x381)](_0x2faeaf['memberID']);}[_0x4821de(0x2c3)](_0x23c90d){const _0x44fbd4=_0x4821de;localStorage[_0x44fbd4(0x22a)](rt,JSON[_0x44fbd4(0x44f)](_0x23c90d));}['_scheduleHeartbeat'](){const _0x5dca17=_0x4821de;this[_0x5dca17(0x422)]=window[_0x5dca17(0x3e8)](()=>{const _0x3f1296=_0x5dca17;this[_0x3f1296(0x2c3)]({'type':0x2,'memberID':this[_0x3f1296(0x521)]});},nt);}[_0x4821de(0x3a5)](_0x6fe915){const _0x1a7cb6=_0x4821de;return this[_0x1a7cb6(0x397)]['has'](_0x6fe915)||this[_0x1a7cb6(0x397)]['set'](_0x6fe915,new v['BehaviorSubject'](0x0)),this[_0x1a7cb6(0x397)][_0x1a7cb6(0x56d)](_0x6fe915);}}function yt(_0x2c5a8d){const _0x9f7a63=_0x4821de;let _0x5e6c0a='';for(const _0x10ea82 of _0x2c5a8d){const {startOffset:_0xabc71d,endOffset:_0x462845,isActive:_0x1a1a90}=_0x10ea82;_0x5e6c0a[_0x9f7a63(0x1fe)]&&(_0x5e6c0a+=','),_0x5e6c0a+=_0xabc71d+':'+_0x462845+':'+(_0x1a1a90?'1':'0');}return _0x5e6c0a;}function Hs(_0x2d5cf5){const _0x410b64=_0x4821de,_0x4a06e4=_0x2d5cf5[_0x410b64(0x4b8)](','),_0x564bd3=[];for(const _0x5a27b2 of _0x4a06e4){const [_0x3dbcb6,_0x304445,_0x5e22bc]=_0x5a27b2['split'](':');_0x564bd3[_0x410b64(0x25b)]({'startOffset':Number(_0x3dbcb6),'endOffset':Number(_0x304445),'collapsed':_0x3dbcb6===_0x304445,'isActive':_0x5e22bc==='1'});}return _0x564bd3[_0x410b64(0x347)](_0x31779a=>_0x31779a[_0x410b64(0x416)])||(_0x564bd3[0x0]['isActive']=!0x0),_0x564bd3;}class qe extends a[_0x4821de(0x56f)]{constructor(){const _0x5d6053=_0x4821de;super(...arguments),u(this,'_collabCursorState$',new v[(_0x5d6053(0x611))](null)),u(this,_0x5d6053(0x31f),this[_0x5d6053(0x320)][_0x5d6053(0x43a)]());}[_0x4821de(0x37a)](_0xcbfcf0){const _0x45b8e2=_0x4821de,{unitID:_0x6e6572,memberID:_0x5e67b4,textRanges:_0xb8d584}=_0xcbfcf0,_0x1b059f=yt(_0xb8d584),_0x19d8dd={'unitID':_0x6e6572,'memberID':_0x5e67b4,'selection':_0x1b059f};this[_0x45b8e2(0x320)][_0x45b8e2(0x56e)](_0x19d8dd);}}var xs=Object[_0x4821de(0x51a)],ks=Object[_0x4821de(0x4f8)],Bs=(_0x35f1d9,_0x2f7e0a,_0x216b0b,_0x5de09e)=>{for(var _0x2a3b56=_0x5de09e>0x1?void 0x0:_0x5de09e?ks(_0x2f7e0a,_0x216b0b):_0x2f7e0a,_0x4ca6b9=_0x35f1d9['length']-0x1,_0x44b7b8;_0x4ca6b9>=0x0;_0x4ca6b9--)(_0x44b7b8=_0x35f1d9[_0x4ca6b9])&&(_0x2a3b56=(_0x5de09e?_0x44b7b8(_0x2f7e0a,_0x216b0b,_0x2a3b56):_0x44b7b8(_0x2a3b56))||_0x2a3b56);return _0x5de09e&&_0x2a3b56&&xs(_0x2f7e0a,_0x216b0b,_0x2a3b56),_0x2a3b56;},ot=(_0x4ecd88,_0x46936c)=>(_0x297a5c,_0x2f99f6)=>_0x46936c(_0x297a5c,_0x2f99f6,_0x4ecd88);let pe=class{constructor(_0x14e024,_0x90c379){const _0x5ccb3b=_0x4821de;this[_0x5ccb3b(0x2ac)]=_0x14e024,this[_0x5ccb3b(0x577)]=_0x90c379;}[_0x4821de(0x1f9)](_0xcdf6d2){const _0x8b9513=_0x4821de;var _0x562b34;const _0x2a94e5=this['_injector']['get'](se[_0x8b9513(0x3f2)]),_0x1f2217=(_0x562b34=_0x2a94e5['getDocRanges']())!=null?_0x562b34:[];if(_0x1f2217['length']===0x0)return;const _0x147150=[{'id':_0x8b9513(0x297),'params':{'unitId':_0xcdf6d2[_0x8b9513(0x4ef)],'actions':null,'textRanges':_0x1f2217}}],_0xecb252=this[_0x8b9513(0x577)][_0x8b9513(0x209)](_0xcdf6d2,_0x147150);if(!_[_0x8b9513(0x2f1)](_0xecb252))throw _0xecb252['error'];const _0x406d72=_0xecb252['m2Prime'][0x0][_0x8b9513(0x247)][_0x8b9513(0x53b)];Array[_0x8b9513(0x4d3)](_0x406d72)&&_0x406d72[_0x8b9513(0x1fe)]&&_0x2a94e5[_0x8b9513(0x470)](_0x406d72,!0x1);}};pe=Bs([ot(0x0,a[_0x4821de(0x579)](a['Injector'])),ot(0x1,_['ITransformService'])],pe);const Vs=new Set([C[_0x4821de(0x226)]['id']]);function at(_0x40a343,_0x20c432,_0x4a4a8c,_0x28452a,_0xe11caf){const _0x5c0158=_0x4821de;var _0x22163e,_0x59bac1,_0x454fde,_0x127fbb;const _0x50a86f=[];for(const _0x23c636 of _0x40a343)if(Vs[_0x5c0158(0x1f6)](_0x23c636['id'])){if(_0x50a86f[_0x5c0158(0x1fe)]>0x0)break;_0x50a86f[_0x5c0158(0x25b)](_0x23c636);break;}else _0x50a86f[_0x5c0158(0x25b)](_0x23c636);const _0x1b92be=(_0x59bac1=(_0x22163e=_0xe11caf[_0x5c0158(0x42c)]())==null?void 0x0:_0x22163e[_0x5c0158(0x5e2)])!=null?_0x59bac1:_0x5c0158(0x2e8),_0x52f523=(_0x127fbb=(_0x454fde=_0xe11caf[_0x5c0158(0x42c)]())==null?void 0x0:_0x454fde[_0x5c0158(0x5f6)])!=null?_0x127fbb:_0x5c0158(0x2e8);return{'changeset':{'unitID':_0x20c432,'type':_['mapDocumentTypeToUniverType'](_0x4a4a8c[_0x5c0158(0x2b8)](_0x20c432)),'baseRev':_0x28452a['getCurrentRevOfUnit'](_0x20c432),'revision':0x0,'userID':_0x1b92be,'memberID':_0x52f523,'mutations':_0x50a86f},'pendingMutations':_0x40a343[_0x5c0158(0x603)](_0x50a86f[_0x5c0158(0x1fe)])};}function Ws(_0x25dffe,_0xe3df43,_0x40bc02,_0x3929eb,_0x4cfb9b){const _0x445743=_0x4821de;var _0x1b4557,_0x3ee2e0,_0x577b4d,_0x958fa0;const _0x3fc996=[_0x25dffe[_0x445743(0x4d6)]((_0x45fa44,_0x3cd000)=>{const _0x390acd=_0x445743;var _0x3e8cb4;const {id:_0xdc1a04}=_0x45fa44,{id:_0x5503f7,type:_0x1ece69}=_0x3cd000,_0x5ae5ae=(_0x3e8cb4=_0x45fa44[_0x390acd(0x247)])!=null?_0x3e8cb4:{'actions':null},_0x2408ed=_0x3cd000[_0x390acd(0x247)];if(_0xdc1a04&&_0xdc1a04!==_0x5503f7)throw new Error(_0x390acd(0x608)+_0xdc1a04+'\x20-\x20'+_0x5503f7+'.');return{..._0x45fa44,'id':_0x5503f7,'type':_0x1ece69,'params':{'unitId':_0x2408ed[_0x390acd(0x466)],'textRanges':_0x2408ed[_0x390acd(0x53b)],'actions':a[_0x390acd(0x595)]['compose'](_0x5ae5ae['actions'],_0x2408ed[_0x390acd(0x268)])}};},{})],_0x4a84e8=(_0x3ee2e0=(_0x1b4557=_0x4cfb9b[_0x445743(0x42c)]())==null?void 0x0:_0x1b4557['userID'])!=null?_0x3ee2e0:_0x445743(0x2e8),_0x55d6b4=(_0x958fa0=(_0x577b4d=_0x4cfb9b['getCurrentUser']())==null?void 0x0:_0x577b4d[_0x445743(0x5f6)])!=null?_0x958fa0:'unknown';return{'changeset':{'unitID':_0xe3df43,'type':_[_0x445743(0x51f)](_0x40bc02['getUnitType'](_0xe3df43)),'baseRev':_0x3929eb['getCurrentRevOfUnit'](_0xe3df43),'revision':0x0,'userID':_0x4a84e8,'memberID':_0x55d6b4,'mutations':_0x3fc996},'pendingMutations':[]};}const Fs={'id':C[_0x4821de(0x565)]['id'],'type':a[_0x4821de(0x36c)][_0x4821de(0x34b)],'params':{}};var Gs=Object['defineProperty'],Ys=Object['getOwnPropertyDescriptor'],z=(_0x3951f1,_0x1892fe,_0x57e581,_0x2efc63)=>{const _0x3a009a=_0x4821de;for(var _0x12f83f=_0x2efc63>0x1?void 0x0:_0x2efc63?Ys(_0x1892fe,_0x57e581):_0x1892fe,_0x2ade8d=_0x3951f1[_0x3a009a(0x1fe)]-0x1,_0x278f0c;_0x2ade8d>=0x0;_0x2ade8d--)(_0x278f0c=_0x3951f1[_0x2ade8d])&&(_0x12f83f=(_0x2efc63?_0x278f0c(_0x1892fe,_0x57e581,_0x12f83f):_0x278f0c(_0x12f83f))||_0x12f83f);return _0x2efc63&&_0x12f83f&&Gs(_0x1892fe,_0x57e581,_0x12f83f),_0x12f83f;},m=(_0x32ad34,_0x166fe6)=>(_0x5591b9,_0x617d96)=>_0x166fe6(_0x5591b9,_0x617d96,_0x32ad34),U=(_0x1970ab=>(_0x1970ab[_0x4821de(0x2f9)]=_0x4821de(0x5ea),_0x1970ab[_0x4821de(0x318)]=_0x4821de(0x229),_0x1970ab[_0x4821de(0x450)]='pending',_0x1970ab[_0x4821de(0x3bf)]='awaiting',_0x1970ab[_0x4821de(0x316)]=_0x4821de(0x45c),_0x1970ab['FETCH_MISS']=_0x4821de(0x5d7),_0x1970ab[_0x4821de(0x2c0)]=_0x4821de(0x360),_0x1970ab[_0x4821de(0x266)]=_0x4821de(0x478),_0x1970ab))(U||{});class J{constructor(_0x3662a7,_0x211433,_0x13a567,_0x51398e,_0x4114bc,_0x1cbef4,_0x52f969,_0x2e8b5a,_0x4ddbb5){const _0x49e2b3=_0x4821de;u(this,_0x49e2b3(0x321),null),u(this,_0x49e2b3(0x590),[]),(this['unitID']=_0x3662a7,this['type']=_0x211433,this[_0x49e2b3(0x604)]=_0x4114bc,this[_0x49e2b3(0x2bc)]=_0x1cbef4,this['_undoRedoService']=_0x52f969,this[_0x49e2b3(0x55a)]=_0x2e8b5a,this[_0x49e2b3(0x32f)]=_0x4ddbb5,this[_0x49e2b3(0x321)]=_0x13a567,this[_0x49e2b3(0x590)]=_0x51398e);}[_0x4821de(0x34c)](_0x5209d0){const _0x5140b8=_0x4821de,_0x2f8e7f=this[_0x5140b8(0x55a)][_0x5140b8(0x1f2)](this[_0x5140b8(0x4ef)]);return _0x5209d0['revision']>_0x2f8e7f+0x1?(this['_handler'][_0x5140b8(0x3eb)]({'from':_0x2f8e7f,'to':_0x5209d0[_0x5140b8(0x3a9)]-0x1}),!0x0):!0x1;}[_0x4821de(0x311)](_0x398150){const _0x1d379c=_0x4821de;this[_0x1d379c(0x264)]['transformUndoRedo'](this[_0x1d379c(0x4ef)],_0x398150);}[_0x4821de(0x373)](_0x494a52){const _0x2a905c=_0x4821de;var _0x5e2250,_0x208e2b;(_0x208e2b=(_0x5e2250=this[_0x2a905c(0x604)])['onTransformSelections'])==null||_0x208e2b[_0x2a905c(0x4a7)](_0x5e2250,_0x494a52);}[_0x4821de(0x2fe)](_0x26277a){const _0x5b2fc0=_0x4821de;var _0x3fa0ea,_0x124ed6;return(_0x124ed6=(_0x3fa0ea=this['_handler'])[_0x5b2fc0(0x3bc)])==null?void 0x0:_0x124ed6[_0x5b2fc0(0x4a7)](_0x3fa0ea,_0x26277a);}[_0x4821de(0x5b6)](_0x5034f1){const _0x3c7ef3=_0x4821de;var _0x3c09db,_0x96c8ad,_0x3a8fb2;return(_0x3a8fb2=(_0x96c8ad=(_0x3c09db=this[_0x3c7ef3(0x604)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x96c8ad[_0x3c7ef3(0x4a7)](_0x3c09db,_0x5034f1))!=null?_0x3a8fb2:_0x5034f1;}[_0x4821de(0x275)](_0x18d61d){const _0x4bf77f=_0x4821de;var _0x6a25f7,_0x54e7ce;if(this[_0x4bf77f(0x3b6)]===$[_0x4bf77f(0x5f0)]){const {unitID:_0x12c4ac,mutations:_0x40e22d,memberID:_0x529bec}=_0x18d61d,_0x3c388b=_0x40e22d[0x0][_0x4bf77f(0x247)][_0x4bf77f(0x53b)];Array[_0x4bf77f(0x4d3)](_0x3c388b)&&_0x3c388b['length']>0x0&&((_0x54e7ce=(_0x6a25f7=this[_0x4bf77f(0x604)])['onSyncEditingCollabCursor'])==null||_0x54e7ce[_0x4bf77f(0x4a7)](_0x6a25f7,{'unitID':_0x12c4ac,'memberID':_0x529bec,'textRanges':_0x3c388b}));}}[_0x4821de(0x536)](){const _0x3dd150=_0x4821de;this['_localCacheService'][_0x3dd150(0x2b5)](this[_0x3dd150(0x4ef)],this[_0x3dd150(0x3b6)],this[_0x3dd150(0x321)],this[_0x3dd150(0x590)]);}[_0x4821de(0x583)](){const _0x3f31e7=_0x4821de;return this['_revisionService']['getCurrentRevOfUnit'](this[_0x3f31e7(0x4ef)]);}[_0x4821de(0x44d)](){const _0x1e55cd=_0x4821de;this[_0x1e55cd(0x55a)][_0x1e55cd(0x568)](this[_0x1e55cd(0x4ef)]);}[_0x4821de(0x24b)](_0x5172a4){const _0x747daa=_0x4821de;var _0x354647;const _0x1129c2=this[_0x747daa(0x5b6)](_0x5172a4),_0x58026a=a[_0x747daa(0x3d2)](_0x1129c2[_0x747daa(0x2c2)],this[_0x747daa(0x2bc)],{'fromCollab':!0x0});if(!_0x58026a['result'])throw _0x58026a['error']instanceof Error?_0x58026a['error']:new Error((_0x354647=_0x58026a[_0x747daa(0x5ee)])!=null?_0x354647:_0x747daa(0x43b));this['_transformIMECache'](_0x1129c2),this[_0x747daa(0x311)](_0x5172a4),this['_transformSelections'](_0x1129c2),this[_0x747daa(0x275)](_0x1129c2),this['_incrementRevisionNumber']();}}let ie=class extends J{constructor(_0x129eb8,_0x52b85f,_0x111b62,_0x45a94,_0x23acb3,_0x4d74fa,_0x30df6c,_0x5700bb,_0x43c556,_0x43af14){const _0x19b540=_0x4821de;super(_0x129eb8,_0x52b85f,null,[],_0x111b62,_0x5700bb,_0x30df6c,_0x45a94,_0x23acb3),u(this,'status',_0x19b540(0x229)),(this[_0x19b540(0x2ac)]=_0x4d74fa,this[_0x19b540(0x244)]=_0x43c556,this[_0x19b540(0x577)]=_0x43af14);}[_0x4821de(0x380)](_0x1835d5){const _0x287631=_0x4821de,_0x1a391a=this['_injector'][_0x287631(0x5d3)](k,this[_0x287631(0x4ef)],this[_0x287631(0x3b6)],[_0x1835d5],this[_0x287631(0x604)]);return _0x1a391a['_schedule'](),_0x1a391a['_updateLocalCache'](),_0x1a391a;}['onRemoteChangeset'](_0x2d5d99){const _0x420257=_0x4821de;if(this[_0x420257(0x34c)](_0x2d5d99))return this[_0x420257(0x2ac)]['createInstance'](x,this['unitID'],this[_0x420257(0x3b6)],null,[],null,[_0x2d5d99],this[_0x420257(0x604)]);try{const _0x48415b=this[_0x420257(0x577)][_0x420257(0x209)](_0x2d5d99,[Fs]);if(_['isTransformMutationsWithChangesetSuccess'](_0x48415b)){const {c1Prime:_0x28b070}=_0x48415b;return this['_executeRemoteChangeset'](_0x28b070),this;}throw _0x48415b[_0x420257(0x5ee)];}catch(_0x26ab5c){return this['_logService']['error'](_0x26ab5c),this[_0x420257(0x51e)](!0x1);}}[_0x4821de(0x51e)](_0x15648d){const _0xb244a1=_0x4821de;return this['_injector']['createInstance'](F,this[_0xb244a1(0x4ef)],this[_0xb244a1(0x3b6)],null,[],this['_handler'],_0x15648d);}[_0x4821de(0x44e)](){const _0x52b286=_0x4821de;throw new Error(_0x52b286(0x59c));}[_0x4821de(0x38d)](){const _0x5d15d6=_0x4821de;throw new Error(_0x5d15d6(0x2ad));}[_0x4821de(0x576)](){return this['_injector']['createInstance'](G,this['unitID'],this['type'],null,[],this['_handler']);}[_0x4821de(0x4d5)](){return this;}['resend'](){const _0x338978=_0x4821de;throw new Error(_0x338978(0x324));}[_0x4821de(0x60a)](){const _0x515b21=_0x4821de,_0x154b5b=this[_0x515b21(0x55a)][_0x515b21(0x1f2)](this[_0x515b21(0x4ef)]);return this[_0x515b21(0x604)][_0x515b21(0x3eb)]({'from':_0x154b5b,'to':0x0}),this[_0x515b21(0x2ac)][_0x515b21(0x5d3)](x,this[_0x515b21(0x4ef)],this[_0x515b21(0x3b6)],null,[],null,[],this[_0x515b21(0x604)]);}};ie=z([m(0x3,a[_0x4821de(0x579)](_['RevisionService'])),m(0x4,a[_0x4821de(0x579)](exports[_0x4821de(0x4c6)])),m(0x5,a[_0x4821de(0x579)](a['Injector'])),m(0x6,a[_0x4821de(0x3c4)]),m(0x7,a[_0x4821de(0x5a9)]),m(0x8,a['ILogService']),m(0x9,_[_0x4821de(0x2c7)])],ie);let k=class extends J{constructor(_0xf38f69,_0x29b48b,_0x4eb6f9,_0x3784a5,_0x2ae685,_0x4a382b,_0x3b4177,_0x5a7faf,_0x781313,_0x298ae6,_0x13f76b,_0x4a1a89,_0x4b3d16,_0x4c6b93){const _0x3df241=_0x4821de;super(_0xf38f69,_0x29b48b,null,_0x4eb6f9,_0x3784a5,_0x298ae6,_0x4c6b93,_0x4a382b,_0x3b4177),u(this,_0x3df241(0x49e),_0x3df241(0x5c0)),u(this,_0x3df241(0x50a),null),u(this,_0x3df241(0x5f2),null),(this[_0x3df241(0x2ac)]=_0x2ae685,this[_0x3df241(0x2ae)]=_0x5a7faf,this[_0x3df241(0x244)]=_0x781313,this['_configService']=_0x13f76b,this[_0x3df241(0x577)]=_0x4a1a89,this[_0x3df241(0x487)]=_0x4b3d16);}[_0x4821de(0x380)](_0x3afef6){const _0x277e8f=_0x4821de;return this[_0x277e8f(0x590)][_0x277e8f(0x25b)](_0x3afef6),this['_updateLocalCache'](),this;}[_0x4821de(0x4b2)](_0x4018e3){const _0xd9b45a=_0x4821de;if(this[_0xd9b45a(0x34c)](_0x4018e3))return this[_0xd9b45a(0x425)](),this[_0xd9b45a(0x2ac)][_0xd9b45a(0x5d3)](x,this[_0xd9b45a(0x4ef)],this['type'],null,this[_0xd9b45a(0x590)],null,[_0x4018e3],this[_0xd9b45a(0x604)]);try{const _0x32323b=this[_0xd9b45a(0x577)]['transformMutationsWithChangeset'](_0x4018e3,this[_0xd9b45a(0x590)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x32323b)){const {c1Prime:_0x5d34ed,m2Prime:_0x3dd9e0}=_0x32323b;this['_executeRemoteChangeset'](_0x5d34ed);const _0x5771ab=this[_0xd9b45a(0x2ac)][_0xd9b45a(0x5d3)](k,this[_0xd9b45a(0x4ef)],this[_0xd9b45a(0x3b6)],_0x3dd9e0,this[_0xd9b45a(0x604)]);return this[_0xd9b45a(0x425)](),_0x5771ab[_0xd9b45a(0x42e)](this[_0xd9b45a(0x50a)]?Math[_0xd9b45a(0x476)](0x0,new Date()['getTime']()-this['_scheduleTimestamp']):this['_getSendChangesetTimeout']()),_0x5771ab;}throw _0x32323b[_0xd9b45a(0x5ee)];}catch(_0x2d324a){return this['_logService'][_0xd9b45a(0x5ee)](_0x2d324a),this[_0xd9b45a(0x51e)](!0x1);}}[_0x4821de(0x44e)](){const _0x957887=_0x4821de;throw new Error(_0x957887(0x557));}['onRemoteRej'](){const _0x2036d4=_0x4821de;throw new Error(_0x2036d4(0x4a3));}[_0x4821de(0x576)](){const _0x104e3f=_0x4821de;return this[_0x104e3f(0x425)](),this[_0x104e3f(0x2ac)][_0x104e3f(0x5d3)](G,this[_0x104e3f(0x4ef)],this['type'],null,this[_0x104e3f(0x590)],this[_0x104e3f(0x604)]);}[_0x4821de(0x4d5)](){return this;}['_schedule'](_0x17e125){const _0x49d8b9=_0x4821de,_0x4e762b=_0x17e125!=null?_0x17e125:this[_0x49d8b9(0x562)]();this[_0x49d8b9(0x50a)]=new Date()['getTime'](),this[_0x49d8b9(0x5f2)]=window['setTimeout'](()=>{const _0x512680=_0x49d8b9;this[_0x512680(0x425)]();let _0x14aab3=null;switch(this[_0x512680(0x3b6)]){case $['UNIVER_SHEET']:{_0x14aab3=at(this['_pendingMutations'],this[_0x512680(0x4ef)],this[_0x512680(0x487)],this[_0x512680(0x55a)],this['_memberService']);break;}case $[_0x512680(0x5f0)]:{this[_0x512680(0x590)]['every'](_0x4cab76=>_0x4cab76['id']===se[_0x512680(0x43f)]['id'])?_0x14aab3=Ws(this['_pendingMutations'],this['unitID'],this[_0x512680(0x487)],this['_revisionService'],this[_0x512680(0x2ae)]):_0x14aab3=at(this[_0x512680(0x590)],this['unitID'],this[_0x512680(0x487)],this[_0x512680(0x55a)],this[_0x512680(0x2ae)]);break;}default:throw new Error(_0x512680(0x23d)+this['type']+_0x512680(0x4da));}const {changeset:_0x50b25e,pendingMutations:_0x4cb5dc}=_0x14aab3;this[_0x512680(0x604)]['onSendChangeset'](_0x50b25e);const _0x2ea44a=_0x4cb5dc['length']?this[_0x512680(0x2ac)][_0x512680(0x5d3)](B,this['unitID'],this[_0x512680(0x3b6)],_0x50b25e,_0x4cb5dc,this[_0x512680(0x604)]):this[_0x512680(0x2ac)][_0x512680(0x5d3)](W,this['unitID'],this[_0x512680(0x3b6)],_0x50b25e,this[_0x512680(0x604)]);_0x2ea44a['_updateLocalCache'](),this['_handler'][_0x512680(0x5ca)](this,_0x2ea44a);},_0x4e762b);}[_0x4821de(0x562)](){const _0x3d915f=_0x4821de;var _0x1e03b3;const _0x445020=this[_0x3d915f(0x519)]['getConfig'](L);return(_0x1e03b3=_0x445020==null?void 0x0:_0x445020[_0x3d915f(0x570)])!=null?_0x1e03b3:Jt;}['resend'](){const _0x3eb5ad=_0x4821de;throw new Error(_0x3eb5ad(0x34f));}[_0x4821de(0x425)](){const _0x4bcf3a=_0x4821de;this['_sendingTimer']!=null&&(clearTimeout(this[_0x4bcf3a(0x5f2)]),this[_0x4bcf3a(0x5f2)]=null);}['_onConflict'](_0x4d484f){const _0x1659b3=_0x4821de;return this[_0x1659b3(0x425)](),this[_0x1659b3(0x2ac)][_0x1659b3(0x5d3)](F,this[_0x1659b3(0x4ef)],this[_0x1659b3(0x3b6)],null,this[_0x1659b3(0x590)],this[_0x1659b3(0x604)],_0x4d484f);}};k=z([m(0x4,a[_0x4821de(0x579)](a[_0x4821de(0x2cd)])),m(0x5,a[_0x4821de(0x579)](_[_0x4821de(0x4e7)])),m(0x6,a['Inject'](exports[_0x4821de(0x4c6)])),m(0x7,a['Inject'](q)),m(0x8,a[_0x4821de(0x49c)]),m(0x9,a[_0x4821de(0x5a9)]),m(0xa,a[_0x4821de(0x482)]),m(0xb,_[_0x4821de(0x2c7)]),m(0xc,a[_0x4821de(0x258)]),m(0xd,a['IUndoRedoService'])],k);let W=class extends J{constructor(_0x3c799f,_0x92023f,_0xb5036,_0x502c9b,_0x38665e,_0x526e89,_0x18c98e,_0x70bd49,_0x5feee5,_0x8a64a5,_0x13cfe3){const _0x55580a=_0x4821de;super(_0x3c799f,_0x92023f,_0xb5036,[],_0x502c9b,_0x70bd49,_0x13cfe3,_0x526e89,_0x18c98e),u(this,_0x55580a(0x49e),_0x55580a(0x4a0)),(this[_0x55580a(0x2ac)]=_0x38665e,this[_0x55580a(0x244)]=_0x5feee5,this[_0x55580a(0x577)]=_0x8a64a5);}['appendMutation'](_0x375083){const _0x19be63=_0x4821de,_0x8c7de3=this[_0x19be63(0x2ac)][_0x19be63(0x5d3)](B,this['unitID'],this[_0x19be63(0x3b6)],this[_0x19be63(0x321)],[_0x375083],this[_0x19be63(0x604)]);return _0x8c7de3['_updateLocalCache'](),_0x8c7de3;}['onRemoteChangeset'](_0x196a4b){const _0x56b32b=_0x4821de;if(this[_0x56b32b(0x34c)](_0x196a4b))return this[_0x56b32b(0x2ac)][_0x56b32b(0x5d3)](x,this[_0x56b32b(0x4ef)],this['type'],this[_0x56b32b(0x321)],[],null,[_0x196a4b],this[_0x56b32b(0x604)]);try{const _0x34c723=this[_0x56b32b(0x577)]['transformChangesets']([_0x196a4b],[this['_awaitingChangeset']],!0x1);if(_['isTransformChangesetsSuccess'](_0x34c723)){const {c1Prime:_0x56b4a3,c2Prime:_0x2171f0}=_0x34c723;this['_executeRemoteChangeset'](_0x56b4a3[0x0]),_0x2171f0[0x0][_0x56b32b(0x484)]=this[_0x56b32b(0x583)]();const _0x468340=this[_0x56b32b(0x2ac)][_0x56b32b(0x5d3)](W,this[_0x56b32b(0x4ef)],this[_0x56b32b(0x3b6)],_0x2171f0[0x0],this['_handler']);return _0x468340['_updateLocalCache'](),_0x468340;}return this[_0x56b32b(0x51e)](!0x1);}catch(_0x3b5177){return this['_logService']['error'](_0x3b5177),this['_onConflict'](!0x1);}}[_0x4821de(0x44e)](_0x5a3aeb){const _0x47e602=_0x4821de,_0x4ede08=this[_0x47e602(0x55a)][_0x47e602(0x1f2)](this[_0x47e602(0x4ef)]);if(_0x5a3aeb[_0x47e602(0x3a9)]<_0x4ede08-0x1)return this;if(this[_0x47e602(0x34c)](_0x5a3aeb))return this['_injector'][_0x47e602(0x5d3)](x,this[_0x47e602(0x4ef)],this[_0x47e602(0x3b6)],null,[],this[_0x47e602(0x321)],[],this[_0x47e602(0x604)]);this[_0x47e602(0x44d)]();const _0x34f7fd=this[_0x47e602(0x2ac)][_0x47e602(0x5d3)](ie,this['unitID'],this['type'],this[_0x47e602(0x604)]);return _0x34f7fd[_0x47e602(0x536)](),_0x34f7fd;}[_0x4821de(0x38d)](_0xc53e39){const _0x2ab3f0=_0x4821de;return this['_onConflict'](!!(_0xc53e39!=null&&_0xc53e39[_0x2ab3f0(0x3e9)]));}[_0x4821de(0x576)](){const _0x540488=_0x4821de;return this['_injector'][_0x540488(0x5d3)](G,this[_0x540488(0x4ef)],this[_0x540488(0x3b6)],this['_awaitingChangeset'],[],this['_handler']);}['toggleOnline'](){return this;}['resend'](){const _0x56cd44=_0x4821de;this[_0x56cd44(0x604)][_0x56cd44(0x5c3)](this[_0x56cd44(0x321)]);}['_onConflict'](_0x1fa822){const _0x5e1dfe=_0x4821de;return this['_injector'][_0x5e1dfe(0x5d3)](F,this[_0x5e1dfe(0x4ef)],this[_0x5e1dfe(0x3b6)],this[_0x5e1dfe(0x321)],[],this[_0x5e1dfe(0x604)],_0x1fa822);}};W=z([m(0x4,a[_0x4821de(0x579)](a[_0x4821de(0x2cd)])),m(0x5,a[_0x4821de(0x579)](_[_0x4821de(0x4e7)])),m(0x6,a[_0x4821de(0x579)](exports[_0x4821de(0x4c6)])),m(0x7,a[_0x4821de(0x5a9)]),m(0x8,a['ILogService']),m(0x9,_[_0x4821de(0x2c7)]),m(0xa,a[_0x4821de(0x3c4)])],W);let B=class extends J{constructor(_0x525a05,_0xfbc410,_0x43e824,_0x46ecbf,_0x3920c6,_0x35ccd2,_0x2a368d,_0x3513cf,_0xf160a8,_0x4566e5,_0x3c0194,_0x4c2b6e){const _0x59e677=_0x4821de;super(_0x525a05,_0xfbc410,_0x43e824,_0x46ecbf,_0x3920c6,_0xf160a8,_0x4c2b6e,_0x2a368d,_0x3513cf),u(this,_0x59e677(0x49e),_0x59e677(0x45c)),(this[_0x59e677(0x2ac)]=_0x35ccd2,this[_0x59e677(0x244)]=_0x4566e5,this[_0x59e677(0x577)]=_0x3c0194);}[_0x4821de(0x380)](_0x46ea0c){const _0x1a4cee=_0x4821de;return this[_0x1a4cee(0x590)]['push'](_0x46ea0c),this;}[_0x4821de(0x4b2)](_0xca0162){const _0x58599d=_0x4821de;if(this['_checkMissing'](_0xca0162))return this[_0x58599d(0x2ac)]['createInstance'](x,this[_0x58599d(0x4ef)],this['type'],this[_0x58599d(0x321)],this[_0x58599d(0x590)],null,[_0xca0162],this[_0x58599d(0x604)]);try{const _0x2f38a7=this[_0x58599d(0x577)][_0x58599d(0x4d9)]([_0xca0162],[this[_0x58599d(0x321)]],!0x1);if(_[_0x58599d(0x55d)](_0x2f38a7)){const {c1Prime:_0x17f7a5,c2Prime:_0xb49288}=_0x2f38a7,_0x419c75=this[_0x58599d(0x577)]['transformMutationsWithChangeset'](_0x17f7a5[0x0],this[_0x58599d(0x590)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x419c75)){const {c1Prime:_0x3d1967,m2Prime:_0x479fb7}=_0x419c75;return this[_0x58599d(0x24b)](_0x3d1967),_0xb49288[0x0][_0x58599d(0x484)]=this[_0x58599d(0x583)](),this[_0x58599d(0x2ac)][_0x58599d(0x5d3)](B,this[_0x58599d(0x4ef)],this[_0x58599d(0x3b6)],_0xb49288[0x0],_0x479fb7,this['_handler']);}throw _0x419c75[_0x58599d(0x5ee)];}throw _0x2f38a7['error'];}catch(_0xcefd97){return this['_logService'][_0x58599d(0x5ee)](_0xcefd97),this[_0x58599d(0x51e)](!0x1);}}[_0x4821de(0x44e)](_0x571f58){const _0x99a5b2=_0x4821de;if(this[_0x99a5b2(0x34c)](_0x571f58))return this['_injector'][_0x99a5b2(0x5d3)](x,this[_0x99a5b2(0x4ef)],this[_0x99a5b2(0x3b6)],null,this[_0x99a5b2(0x590)],this[_0x99a5b2(0x321)],[],this[_0x99a5b2(0x604)]);this['_incrementRevisionNumber']();const _0x5ef834=this[_0x99a5b2(0x2ac)][_0x99a5b2(0x5d3)](k,this['unitID'],this['type'],this['_pendingMutations'],this[_0x99a5b2(0x604)]);return _0x5ef834[_0x99a5b2(0x42e)](),_0x5ef834['_updateLocalCache'](),_0x5ef834;}[_0x4821de(0x38d)](_0x1cc022){const _0x14b335=_0x4821de;return this[_0x14b335(0x51e)](!!(_0x1cc022!=null&&_0x1cc022[_0x14b335(0x3e9)]));}[_0x4821de(0x576)](){const _0x58cf91=_0x4821de;return this['_injector'][_0x58cf91(0x5d3)](G,this[_0x58cf91(0x4ef)],this[_0x58cf91(0x3b6)],this[_0x58cf91(0x321)],this[_0x58cf91(0x590)],this['_handler']);}['toggleOnline'](){return this;}[_0x4821de(0x3de)](){const _0x34b1e4=_0x4821de;this[_0x34b1e4(0x604)][_0x34b1e4(0x5c3)](this['_awaitingChangeset']);}[_0x4821de(0x51e)](_0x444438){const _0x298de7=_0x4821de;return this['_injector'][_0x298de7(0x5d3)](F,this[_0x298de7(0x4ef)],this[_0x298de7(0x3b6)],null,this[_0x298de7(0x590)],this[_0x298de7(0x604)],_0x444438);}};B=z([m(0x5,a['Inject'](a[_0x4821de(0x2cd)])),m(0x6,a[_0x4821de(0x579)](_[_0x4821de(0x4e7)])),m(0x7,a[_0x4821de(0x579)](exports[_0x4821de(0x4c6)])),m(0x8,a[_0x4821de(0x5a9)]),m(0x9,a[_0x4821de(0x49c)]),m(0xa,_[_0x4821de(0x2c7)]),m(0xb,a[_0x4821de(0x3c4)])],B);let F=class extends J{constructor(_0x14b7bd,_0x9ada36,_0x4642da,_0x5af131,_0xd2e5de,_0x377ef8=!0x1,_0x265443,_0x395313,_0x5699c2,_0x153132,_0x557bb9,_0xfa6f0c,_0x1b44c3){const _0x7ab4fd=_0x4821de;super(_0x14b7bd,_0x9ada36,_0x4642da,_0x5af131,_0xd2e5de,_0x395313,_0x5699c2,_0x557bb9,_0x153132),u(this,_0x7ab4fd(0x49e),'conflict'),(this['_isPermissionRej']=_0x377ef8,this['_permissionService']=_0x265443,this[_0x7ab4fd(0x28b)]=_0xfa6f0c,this[_0x7ab4fd(0x213)]=_0x1b44c3,this['_showConflictNotification'](),this[_0x7ab4fd(0x2a3)](),this['_disableEditing']());}[_0x4821de(0x380)](){return this;}[_0x4821de(0x4b2)](){return this;}[_0x4821de(0x44e)](){return this;}[_0x4821de(0x38d)](){return this;}[_0x4821de(0x576)](){return this;}['toggleOnline'](){return this;}[_0x4821de(0x3de)](){const _0x44ed34=_0x4821de;throw new Error(_0x44ed34(0x57e));}[_0x4821de(0x2a3)](){const _0x51a200=_0x4821de;this[_0x51a200(0x32f)][_0x51a200(0x2b5)](this[_0x51a200(0x4ef)],this['type'],null,[]);}[_0x4821de(0x582)](){const _0x530c0c=_0x4821de;this[_0x530c0c(0x55b)]?this['_notificationService'][_0x530c0c(0x4d2)]({'title':this[_0x530c0c(0x28b)]['t'](_0x530c0c(0x5a3)),'content':this[_0x530c0c(0x28b)]['t'](_0x530c0c(0x364)),'type':'error','duration':0x0}):this[_0x530c0c(0x213)][_0x530c0c(0x4d2)]({'title':this[_0x530c0c(0x28b)]['t'](_0x530c0c(0x5aa)),'content':this[_0x530c0c(0x28b)]['t'](_0x530c0c(0x407)),'type':_0x530c0c(0x5ee),'duration':0x0});}[_0x4821de(0x3e5)](){const _0x3d5249=_0x4821de;this[_0x3d5249(0x368)][_0x3d5249(0x61c)](new C[(_0x3d5249(0x60b))](this[_0x3d5249(0x4ef)])['id'],!0x1);}};F=z([m(0x6,a['Inject'](a[_0x4821de(0x54c)])),m(0x7,a['ICommandService']),m(0x8,a[_0x4821de(0x3c4)]),m(0x9,a[_0x4821de(0x579)](exports[_0x4821de(0x4c6)])),m(0xa,a[_0x4821de(0x579)](_['RevisionService'])),m(0xb,a['Inject'](a[_0x4821de(0x53d)])),m(0xc,A['INotificationService'])],F);let G=class extends J{constructor(_0x3a7443,_0x3028e5,_0x4bb2aa,_0x2f6f72,_0x58a2c1,_0x4033f8,_0x4871d9,_0x37263b,_0x3aaba9,_0x21b902){const _0x1a31e1=_0x4821de;super(_0x3a7443,_0x3028e5,_0x4bb2aa,_0x2f6f72,_0x58a2c1,_0x3aaba9,_0x21b902,_0x4871d9,_0x37263b),u(this,_0x1a31e1(0x49e),_0x1a31e1(0x478)),this[_0x1a31e1(0x2ac)]=_0x4033f8;}[_0x4821de(0x380)](_0x38fd57){const _0x184bb1=_0x4821de;return this[_0x184bb1(0x590)][_0x184bb1(0x25b)](_0x38fd57),this[_0x184bb1(0x536)](),this;}[_0x4821de(0x4b2)](_0x56e235){const _0x5e37ca=_0x4821de;throw new Error(_0x5e37ca(0x4ab));}[_0x4821de(0x44e)](){const _0x2c925d=_0x4821de;throw new Error(_0x2c925d(0x549));}[_0x4821de(0x38d)](){const _0xcadbb8=_0x4821de;throw new Error(_0xcadbb8(0x5b8));}['toggleOffline'](){return this;}[_0x4821de(0x4d5)](){const _0x491baf=_0x4821de,{_injector:_0x4abefd,_pendingMutations:_0x17bd14,_awaitingChangeset:_0x12fc92,unitID:_0x5a97c0,_handler:_0x210f27,type:_0x1881c3}=this,_0x587a2d=Ut(_0x4abefd,_0x5a97c0,_0x1881c3,_0x12fc92,_0x17bd14,_0x210f27);return _0x587a2d instanceof k?_0x587a2d[_0x491baf(0x42e)]():(_0x587a2d instanceof B||_0x587a2d instanceof W)&&_0x587a2d[_0x491baf(0x3de)](),_0x587a2d;}['resend'](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};G=z([m(0x5,a[_0x4821de(0x579)](a[_0x4821de(0x2cd)])),m(0x6,a[_0x4821de(0x579)](_[_0x4821de(0x4e7)])),m(0x7,a[_0x4821de(0x579)](exports[_0x4821de(0x4c6)])),m(0x8,a[_0x4821de(0x5a9)]),m(0x9,a[_0x4821de(0x3c4)])],G);let x=class extends J{constructor(_0x3028f4,_0x82d58d,_0x2e5b04,_0x556c42,_0x5d4bc0,_0x18d20d,_0x163a6,_0x222e47,_0xeb299b,_0xc2c292,_0x4567f6,_0x96b647,_0x294671,_0x376394){const _0x13fe9e=_0x4821de;super(_0x3028f4,_0x82d58d,_0x2e5b04,_0x556c42,_0x163a6,_0x96b647,_0x294671,_0xeb299b,_0xc2c292),u(this,_0x13fe9e(0x49e),_0x13fe9e(0x5d7)),(this['_acknowledgedAwaitingChangeset']=_0x5d4bc0,this[_0x13fe9e(0x50b)]=_0x18d20d,this[_0x13fe9e(0x2ac)]=_0x222e47,this[_0x13fe9e(0x244)]=_0x4567f6,this['_transformService']=_0x376394);}[_0x4821de(0x4de)](_0x4cb44a){const _0x6ecb95=_0x4821de;try{const _0x547a4f=[..._0x4cb44a,...this[_0x6ecb95(0x50b)]],_0x3956e7=[this[_0x6ecb95(0x321)]||this[_0x6ecb95(0x4df)]]['filter'](_0x51c2b3=>!!_0x51c2b3);let _0x4d8c69,_0x2c957e;if(_0x3956e7[_0x6ecb95(0x1fe)]){const _0x134dfb=this[_0x6ecb95(0x577)][_0x6ecb95(0x4d9)](_0x547a4f,_0x3956e7,!0x1);if(!_[_0x6ecb95(0x55d)](_0x134dfb))throw _0x134dfb[_0x6ecb95(0x5ee)];_0x4d8c69=_0x134dfb['c1Prime'],_0x2c957e=_0x134dfb['c2Prime'];}else _0x4d8c69=_0x547a4f,_0x2c957e=[];let _0x516b6d=this['_pendingMutations'];_0x4d8c69['forEach'](_0x20871d=>{const _0x50d102=_0x6ecb95;let _0x1935b2;if(_0x516b6d['length']){const _0x2fc9a8=this[_0x50d102(0x577)][_0x50d102(0x209)](_0x20871d,_0x516b6d);if(!_[_0x50d102(0x2f1)](_0x2fc9a8))throw _0x2fc9a8[_0x50d102(0x5ee)];_0x1935b2=_0x2fc9a8['c1Prime'],_0x516b6d=_0x2fc9a8[_0x50d102(0x309)];}else _0x1935b2=_0x20871d;this['_executeRemoteChangeset'](_0x1935b2);}),this[_0x6ecb95(0x4df)]&&this[_0x6ecb95(0x44d)](),this[_0x6ecb95(0x321)]&&_0x2c957e[_0x6ecb95(0x1fe)]&&(_0x2c957e[0x0][_0x6ecb95(0x484)]=this['_getCurrentRevision']());let _0x4853f4;if(this[_0x6ecb95(0x321)]&&_0x516b6d[_0x6ecb95(0x1fe)]!==0x0)_0x4853f4=this[_0x6ecb95(0x2ac)]['createInstance'](B,this[_0x6ecb95(0x4ef)],this[_0x6ecb95(0x3b6)],_0x2c957e[0x0],_0x516b6d,this['_handler']);else{if(this['_awaitingChangeset']&&_0x516b6d[_0x6ecb95(0x1fe)]===0x0)_0x2c957e[0x0]['baseRev']=this['_getCurrentRevision'](),_0x4853f4=this[_0x6ecb95(0x2ac)][_0x6ecb95(0x5d3)](W,this[_0x6ecb95(0x4ef)],this[_0x6ecb95(0x3b6)],_0x2c957e[0x0],this[_0x6ecb95(0x604)]);else{if(_0x516b6d['length']!==0x0){const _0x6417ee=this['_injector'][_0x6ecb95(0x5d3)](k,this[_0x6ecb95(0x4ef)],this['type'],_0x516b6d,this[_0x6ecb95(0x604)]);_0x6417ee[_0x6ecb95(0x42e)](),_0x4853f4=_0x6417ee;}else _0x4853f4=this[_0x6ecb95(0x2ac)][_0x6ecb95(0x5d3)](ie,this[_0x6ecb95(0x4ef)],this['type'],this[_0x6ecb95(0x604)]);}}return _0x4853f4[_0x6ecb95(0x536)](),_0x4853f4;}catch(_0x43e4cf){return this[_0x6ecb95(0x244)][_0x6ecb95(0x5ee)](_0x6ecb95(0x497),_0x6ecb95(0x384),_0x43e4cf),this[_0x6ecb95(0x2ac)][_0x6ecb95(0x5d3)](F,this[_0x6ecb95(0x4ef)],this[_0x6ecb95(0x3b6)],this['_awaitingChangeset'],this[_0x6ecb95(0x590)],this[_0x6ecb95(0x604)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4821de(0x380)](_0x3d3f22){const _0x3d6f39=_0x4821de;return this[_0x3d6f39(0x590)][_0x3d6f39(0x25b)](_0x3d3f22),this;}[_0x4821de(0x4b2)](_0x506b8a){return this['_queuedRemoteChangesets']['push'](_0x506b8a),this;}[_0x4821de(0x44e)](_0x25deca){const _0xbb5a05=_0x4821de;if(this[_0xbb5a05(0x321)])return this[_0xbb5a05(0x4df)]=this[_0xbb5a05(0x321)],this[_0xbb5a05(0x321)]=null,this;throw new Error(_0xbb5a05(0x4a4));}[_0x4821de(0x38d)](_0x183c98){const _0x52cae2=_0x4821de;return this['_onConflict'](!!(_0x183c98!=null&&_0x183c98[_0x52cae2(0x3e9)]));}['toggleOffline'](){const _0x24ae6b=_0x4821de;return this['_injector'][_0x24ae6b(0x5d3)](G,this[_0x24ae6b(0x4ef)],this['type'],this[_0x24ae6b(0x321)],this[_0x24ae6b(0x590)],this['_handler']);}['toggleOnline'](){return this;}['_onConflict'](_0x47cd82){const _0x13f9eb=_0x4821de;return this['_injector'][_0x13f9eb(0x5d3)](F,this['unitID'],this[_0x13f9eb(0x3b6)],this[_0x13f9eb(0x321)],this[_0x13f9eb(0x590)],this[_0x13f9eb(0x604)],_0x47cd82);}};x=z([m(0x7,a['Inject'](a[_0x4821de(0x2cd)])),m(0x8,a[_0x4821de(0x579)](_['RevisionService'])),m(0x9,a[_0x4821de(0x579)](exports[_0x4821de(0x4c6)])),m(0xa,a['ILogService']),m(0xb,a[_0x4821de(0x5a9)]),m(0xc,a[_0x4821de(0x3c4)]),m(0xd,_[_0x4821de(0x2c7)])],x);function Ut(_0x23c86c,_0x1cd4f6,_0x2843f3,_0x4b094b,_0x41381d,_0x307ff2){const _0x277811=_0x4821de;return _0x4b094b&&_0x41381d[_0x277811(0x1fe)]?_0x23c86c[_0x277811(0x5d3)](B,_0x1cd4f6,_0x2843f3,_0x4b094b,_0x41381d,_0x307ff2):_0x4b094b?_0x23c86c[_0x277811(0x5d3)](W,_0x1cd4f6,_0x2843f3,_0x4b094b,_0x307ff2):_0x41381d['length']?_0x23c86c['createInstance'](k,_0x1cd4f6,_0x2843f3,_0x41381d,_0x307ff2):_0x23c86c['createInstance'](ie,_0x1cd4f6,_0x2843f3,_0x307ff2);}var Ks=Object[_0x4821de(0x51a)],Xs=Object[_0x4821de(0x4f8)],ze=(_0x30170e,_0x24a580,_0x416d2c,_0x569923)=>{const _0x24d915=_0x4821de;for(var _0x3f6fac=_0x569923>0x1?void 0x0:_0x569923?Xs(_0x24a580,_0x416d2c):_0x24a580,_0x1530c4=_0x30170e[_0x24d915(0x1fe)]-0x1,_0x2f53fb;_0x1530c4>=0x0;_0x1530c4--)(_0x2f53fb=_0x30170e[_0x1530c4])&&(_0x3f6fac=(_0x569923?_0x2f53fb(_0x24a580,_0x416d2c,_0x3f6fac):_0x2f53fb(_0x3f6fac))||_0x3f6fac);return _0x569923&&_0x3f6fac&&Ks(_0x24a580,_0x416d2c,_0x3f6fac),_0x3f6fac;},I=(_0x4e3701,_0x45be33)=>(_0x46c91b,_0x232285)=>_0x45be33(_0x46c91b,_0x232285,_0x4e3701);exports[_0x4821de(0x26b)]=class extends a['RxDisposable']{constructor(_0xc50522,_0x351189,_0x1e7607,_0x59df24,_0x1782a3,_0x4c85e9,_0x6a00f7,_0x25f82d,_0x15491e,_0x2d23e6,_0x18c52b,_0x4bcaa4,_0x1e347b){const _0x46a6ce=_0x4821de;super(),u(this,_0x46a6ce(0x46e),new v[(_0x46a6ce(0x611))](null)),u(this,'state$',this[_0x46a6ce(0x46e)][_0x46a6ce(0x43a)]()),u(this,_0x46a6ce(0x257)),u(this,_0x46a6ce(0x2f4),!0x1),u(this,'_changesetSessionId',''),u(this,_0x46a6ce(0x41b),0x0),u(this,_0x46a6ce(0x345),this[_0x46a6ce(0x5c6)][_0x46a6ce(0x2a5)](v['map'](_0x4a1dfe=>_0x4a1dfe?_0x4a1dfe[_0x46a6ce(0x49e)]:U[_0x46a6ce(0x266)]),v['shareReplay'](0x1))),u(this,_0x46a6ce(0x428),!0x1),u(this,_0x46a6ce(0x294),[]),(this[_0x46a6ce(0x4ef)]=_0xc50522,this['session']=_0x351189,this[_0x46a6ce(0x581)]=_0x1e7607,this[_0x46a6ce(0x2ac)]=_0x59df24,this[_0x46a6ce(0x32f)]=_0x1782a3,this[_0x46a6ce(0x503)]=_0x4c85e9,this[_0x46a6ce(0x28b)]=_0x6a00f7,this[_0x46a6ce(0x55a)]=_0x25f82d,this[_0x46a6ce(0x244)]=_0x15491e,this[_0x46a6ce(0x2bc)]=_0x2d23e6,this[_0x46a6ce(0x3cb)]=_0x18c52b,this[_0x46a6ce(0x368)]=_0x4bcaa4,this[_0x46a6ce(0x5e5)]=_0x1e347b);}get[_0x4821de(0x4f4)](){const _0x1949b9=_0x4821de;return this[_0x1949b9(0x257)];}async[_0x4821de(0x28f)](){const _0x226d29=_0x4821de;if(this['state'])throw new Error(_0x226d29(0x57f));await this[_0x226d29(0x402)]();}[_0x4821de(0x61a)](){return this['_collaborationPaused']=!0x0,a['toDisposable'](()=>{const _0x168dd9=_0x370a;this[_0x168dd9(0x2f4)]=!0x1,this[_0x168dd9(0x51c)]();});}[_0x4821de(0x243)](_0x3e0d49){const _0x8843ae=_0x4821de;this[_0x8843ae(0x257)]=_0x3e0d49,this[_0x8843ae(0x46e)]['next'](_0x3e0d49);}async[_0x4821de(0x402)](){const _0x325669=_0x4821de;var _0x2b9229;this[_0x325669(0x243)](await this[_0x325669(0x30f)]()),this[_0x325669(0x5e5)]&&((_0x2b9229=this['_singleActiveUnitService'])==null||_0x2b9229[_0x325669(0x58f)](this['unitID']),this[_0x325669(0x4b1)](this[_0x325669(0x5e5)][_0x325669(0x2cc)](this[_0x325669(0x4ef)])[_0x325669(0x48c)](_0x2853a4=>{const _0x4e48c1=_0x325669;this[_0x4e48c1(0x244)][_0x4e48c1(0x233)]('[CollaborationEntity]',_0x4e48c1(0x5da),_0x2853a4),_0x2853a4===Dt[_0x4e48c1(0x3fb)]?(this['_messageService'][_0x4e48c1(0x4d2)]({'content':this[_0x4e48c1(0x28b)]['t'](_0x4e48c1(0x533)),'type':X[_0x4e48c1(0x43c)][_0x4e48c1(0x33a)]}),this['_permissionService'][_0x4e48c1(0x61c)](new C[(_0x4e48c1(0x60b))](this['unitID'])['id'],!0x1)):this[_0x4e48c1(0x368)][_0x4e48c1(0x61c)](new C[(_0x4e48c1(0x60b))](this[_0x4e48c1(0x4ef)])['id'],!0x0);})));let _0x72dd6f=!0x1;return this['disposeWithMe'](this['session']['sessionStatus$'][_0x325669(0x48c)](_0x13f466=>{const _0x6b3e07=_0x325669;_0x13f466===H[_0x6b3e07(0x451)]?this[_0x6b3e07(0x31e)](_0x72dd6f):_0x13f466===H[_0x6b3e07(0x266)]&&(_0x72dd6f=!0x0,this[_0x6b3e07(0x313)]());})),this['disposeWithMe'](this[_0x325669(0x259)]['event$'][_0x325669(0x48c)](_0x371e21=>{const _0x41374c=_0x325669;try{switch(_0x371e21[_0x41374c(0x2ab)]){case _['CollaborationEvent'][_0x41374c(0x609)]:{this['_onRemoteChangeset'](_[_0x41374c(0x534)](_0x371e21[_0x41374c(0x434)]));break;}case _[_0x41374c(0x215)]['CHANGESET_ACK']:{this[_0x41374c(0x245)](_0x371e21[_0x41374c(0x434)]);break;}case _[_0x41374c(0x215)][_0x41374c(0x3da)]:{this[_0x41374c(0x3ea)]();break;}case _[_0x41374c(0x215)][_0x41374c(0x4bb)]:{this[_0x41374c(0x388)](_0x371e21[_0x41374c(0x434)][_0x41374c(0x28e)]['map'](_0x2861ae=>_['parseProtocolChangeset'](_0x2861ae)));break;}case _[_0x41374c(0x215)][_0x41374c(0x21d)]:this[_0x41374c(0x3ea)]({'isPermissionRej':!0x0});}}catch(_0x37aca1){throw console[_0x41374c(0x5ee)](_0x41374c(0x2e5),_0x37aca1),_0x37aca1;}})),this[_0x325669(0x257)];}[_0x4821de(0x5a2)](){const _0x5bd3e3=_0x4821de;this[_0x5bd3e3(0x428)]=!0x1;}[_0x4821de(0x4ad)](){const _0x473b2e=_0x4821de;if(this['_transitionLocked'])throw new Error(_0x473b2e(0x54b));this['_transitionLocked']=!0x0;}[_0x4821de(0x22d)](_0x4b79b6){const _0x1dee82=_0x4821de;this['_lockTransition'](),this['_updateState'](this[_0x1dee82(0x257)][_0x1dee82(0x380)](_0x4b79b6)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x3bc608){const _0x6474ec=_0x4821de;if(!(_0x3bc608['revision']<=this[_0x6474ec(0x55a)]['getCurrentRevOfUnit'](this[_0x6474ec(0x4ef)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue'][_0x6474ec(0x25b)](_0x3bc608);return;}this[_0x6474ec(0x3bb)](_0x3bc608);}}[_0x4821de(0x51c)](){const _0x595908=_0x4821de;this['_remoteChangesetQueue']['forEach'](_0xf80aa5=>this[_0x595908(0x3bb)](_0xf80aa5)),this[_0x595908(0x294)]=[];}[_0x4821de(0x3bb)](_0x4e4936){const _0x877944=_0x4821de,_0x334cf5=this['_compressMutationService']['interceptor'][_0x877944(0x335)](this['_compressMutationService'][_0x877944(0x3ed)][_0x877944(0x359)]()[_0x877944(0x4a5)])(_0x4e4936['mutations'],null)||_0x4e4936[_0x877944(0x2c2)],_0x1d4601={..._0x4e4936,'mutations':_0x334cf5};this[_0x877944(0x4ad)](),this[_0x877944(0x243)](this[_0x877944(0x257)][_0x877944(0x4b2)](_0x1d4601)),this[_0x877944(0x5a2)]();}[_0x4821de(0x245)](_0x92333a){const _0x1d3d0f=_0x4821de;this[_0x1d3d0f(0x4ad)](),this[_0x1d3d0f(0x243)](this['_state'][_0x1d3d0f(0x44e)](_0x92333a)),this[_0x1d3d0f(0x5a2)]();}[_0x4821de(0x3ea)](_0x1bd0b7){const _0x305625=_0x4821de;this[_0x305625(0x4ad)](),this[_0x305625(0x243)](this[_0x305625(0x257)][_0x305625(0x38d)](_0x1bd0b7)),this[_0x305625(0x5a2)]();}[_0x4821de(0x388)](_0x5cd920){const _0xbd385d=_0x4821de;if(!(this[_0xbd385d(0x257)]instanceof x))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x1ed48e=_0x5cd920[_0xbd385d(0x27e)](_0x15d84e=>{const _0x1605ca=_0xbd385d,_0x597468=this[_0x1605ca(0x503)][_0x1605ca(0x3ed)][_0x1605ca(0x335)](this[_0x1605ca(0x503)]['interceptor']['getInterceptPoints']()[_0x1605ca(0x4a5)])(_0x15d84e[_0x1605ca(0x2c2)],null)||_0x15d84e[_0x1605ca(0x2c2)];return{..._0x15d84e,'mutations':_0x597468};});this[_0xbd385d(0x4ad)](),this[_0xbd385d(0x243)](this['_state'][_0xbd385d(0x4de)](_0x1ed48e)),this[_0xbd385d(0x5a2)]();}[_0x4821de(0x313)](){const _0xe0b0a0=_0x4821de;this[_0xe0b0a0(0x4ad)](),this[_0xe0b0a0(0x243)](this[_0xe0b0a0(0x257)][_0xe0b0a0(0x576)]()),this['_unlockTransition']();}[_0x4821de(0x31e)](_0xc93a6c=!0x1){const _0x5c7c65=_0x4821de;this[_0x5c7c65(0x4ad)](),this['_updateState'](this[_0x5c7c65(0x257)][_0x5c7c65(0x4d5)]()),this['_unlockTransition']();const _0x3ef165=this[_0x5c7c65(0x257)];_0xc93a6c&&_0x3ef165 instanceof ie&&(this['_lockTransition'](),this[_0x5c7c65(0x243)](_0x3ef165['fetchMiss']()),this[_0x5c7c65(0x5a2)]());}async['_createInitialState'](){return new Promise(_0x55aaff=>{const _0x3db5f9=_0x370a;this[_0x3db5f9(0x259)][_0x3db5f9(0x2a8)][_0x3db5f9(0x2a5)](v['take'](0x1))[_0x3db5f9(0x48c)](async _0x108394=>{const _0x5eb0e6=_0x3db5f9;_0x55aaff(await this[_0x5eb0e6(0x3b9)](_0x108394===H[_0x5eb0e6(0x451)]));});});}['_createHandler'](){const _0xc31cc8=this['unitID'];return{'onStateChange':(_0x5f3386,_0x146d16)=>{const _0x7cdc81=_0x370a;if(_0x5f3386!==this['_state'])throw new Error(_0x7cdc81(0x4fa)+_0x5f3386['status']+_0x7cdc81(0x20d)+_0x146d16[_0x7cdc81(0x49e)]+_0x7cdc81(0x27f)+this['_state'][_0x7cdc81(0x49e)]);this['_updateState'](_0x146d16);},'onSendChangeset':_0x1a2c9d=>{const _0x4a7a7a=_0x370a;_0x1a2c9d[_0x4a7a7a(0x473)]||(_0x1a2c9d[_0x4a7a7a(0x473)]=this[_0x4a7a7a(0x280)],_0x1a2c9d[_0x4a7a7a(0x2d4)]=++this[_0x4a7a7a(0x41b)]);const _0x20f9b0={'eventID':_[_0x4a7a7a(0x215)][_0x4a7a7a(0x328)],'data':{'unitID':_0x1a2c9d[_0x4a7a7a(0x4ef)],'unitType':this[_0x4a7a7a(0x581)],'changeset':_0x1a2c9d,'memberID':this[_0x4a7a7a(0x259)][_0x4a7a7a(0x4e3)]()}};this['session']['send'](_0x20f9b0,this[_0x4a7a7a(0x4ef)]);},'onMissingChangesets':({from:_0x2578de,to:_0x1bbc88})=>{const _0x37f1e4=_0x370a;this[_0x37f1e4(0x244)][_0x37f1e4(0x233)](_0x37f1e4(0x47e),_0x37f1e4(0x419)+_0x2578de+'\x20to\x20'+_0x1bbc88);const _0x4be87d={'eventID':_[_0x37f1e4(0x215)][_0x37f1e4(0x3d8)],'data':{'unitID':_0xc31cc8,'unitType':this[_0x37f1e4(0x581)],'from':_0x2578de,'to':_0x1bbc88}};this[_0x37f1e4(0x259)][_0x37f1e4(0x42f)](_0x4be87d,this[_0x37f1e4(0x4ef)]);}};}async[_0x4821de(0x3b9)](_0xec679d){const _0x2cafdc=_0x4821de;var _0x340230,_0x117754;const _0x3836cf=await this['_localCacheService']['loadOfflineData'](this[_0x2cafdc(0x4ef)]),_0x442034=(_0x340230=_0x3836cf==null?void 0x0:_0x3836cf['mutations'])!=null?_0x340230:[],_0x39e6cc=(_0x117754=_0x3836cf==null?void 0x0:_0x3836cf['awaitingChangeset'])!=null?_0x117754:null,_0x4049dd=!!(_0x39e6cc!=null&&_0x39e6cc[_0x2cafdc(0x473)])&&!!(_0x39e6cc!=null&&_0x39e6cc['reqId']);this[_0x2cafdc(0x280)]=_0x4049dd?_0x39e6cc[_0x2cafdc(0x473)]:Os(),this['_changesetReqId']=_0x4049dd?_0x39e6cc[_0x2cafdc(0x2d4)]:0x0;const _0x470573=this[_0x2cafdc(0x4ef)];try{this['_replayCachedMutations'](_0x39e6cc,_0x442034);}catch(_0x4f9496){this['_logService'][_0x2cafdc(0x5ee)](_0x4f9496);}const _0x139b63=this['_createHandler']();if(_0xec679d){const _0x3b6840=Ut(this[_0x2cafdc(0x2ac)],_0x470573,this['_type'],_0x39e6cc,_0x442034,_0x139b63);return _0x3b6840 instanceof k?_0x3b6840[_0x2cafdc(0x42e)]():(_0x3b6840 instanceof B||_0x3b6840 instanceof W)&&_0x3b6840[_0x2cafdc(0x3de)](),_0x3b6840;}return this[_0x2cafdc(0x2ac)][_0x2cafdc(0x5d3)](G,_0x470573,this['_type'],_0x39e6cc,_0x442034,_0x139b63);}[_0x4821de(0x30a)](_0x434e57,_0x3998c1){const _0x3fc9c3=_0x4821de;var _0x204bb3,_0x4ff1b8;const _0xd20430=this[_0x3fc9c3(0x503)][_0x3fc9c3(0x3ed)][_0x3fc9c3(0x335)](this['_compressMutationService'][_0x3fc9c3(0x3ed)]['getInterceptPoints']()[_0x3fc9c3(0x4a5)]);(_0x204bb3=_0xd20430((_0x434e57==null?void 0x0:_0x434e57[_0x3fc9c3(0x2c2)])||[],null))==null||_0x204bb3['forEach'](_0x604a61=>this[_0x3fc9c3(0x2bc)][_0x3fc9c3(0x461)](_0x604a61['id'],_0x604a61[_0x3fc9c3(0x247)])),(_0x4ff1b8=_0xd20430(_0x3998c1||[],null))==null||_0x4ff1b8[_0x3fc9c3(0x3c2)](_0x14682f=>this[_0x3fc9c3(0x2bc)][_0x3fc9c3(0x461)](_0x14682f['id'],_0x14682f[_0x3fc9c3(0x247)]));}},exports[_0x4821de(0x26b)]=ze([I(0x3,a[_0x4821de(0x579)](a[_0x4821de(0x2cd)])),I(0x4,a[_0x4821de(0x579)](exports[_0x4821de(0x4c6)])),I(0x5,a[_0x4821de(0x579)](_[_0x4821de(0x5be)])),I(0x6,a[_0x4821de(0x579)](a[_0x4821de(0x53d)])),I(0x7,a[_0x4821de(0x579)](_['RevisionService'])),I(0x8,a[_0x4821de(0x49c)]),I(0x9,a['ICommandService']),I(0xa,A[_0x4821de(0x200)]),I(0xb,a[_0x4821de(0x54c)]),I(0xc,a[_0x4821de(0x555)](Re))],exports['CollaborationEntity']),exports[_0x4821de(0x2c8)]=class extends exports[_0x4821de(0x26b)]{constructor(_0x5d31ed,_0xb64df2,_0x22640f,_0x2e46d6,_0x5e993e,_0x24163f,_0x39825b,_0x193797,_0x255dc0,_0x14164e,_0x5f1d69,_0x22c01a,_0x53a092,_0x11f69d,_0x4c3e15,_0x56a38b,_0x2d7ba7){const _0x475845=_0x4821de;super(_0x5d31ed,_0x22640f,_0xb64df2,_0x2e46d6,_0x5e993e,_0x24163f,_0x39825b,_0x193797,_0x53a092,_0x11f69d,_0x4c3e15,_0x56a38b,_0x2d7ba7),this[_0x475845(0x4ef)]=_0x5d31ed,this[_0x475845(0x3b6)]=_0xb64df2,this[_0x475845(0x3b3)]=_0x255dc0,this['_docTransformIMECacheService']=_0x14164e,this[_0x475845(0x5cb)]=_0x5f1d69,this[_0x475845(0x2b6)]=_0x22c01a;}[_0x4821de(0x522)](){const _0x39241a=_0x4821de,_0x1ff66d=super[_0x39241a(0x522)]();return _0x1ff66d[_0x39241a(0x3bc)]=_0x279917=>this[_0x39241a(0x3f0)][_0x39241a(0x610)](_0x279917),_0x1ff66d[_0x39241a(0x456)]=_0x32ab2c=>this[_0x39241a(0x5cb)][_0x39241a(0x1f9)](_0x32ab2c),_0x1ff66d[_0x39241a(0x58a)]=_0x5988b3=>this[_0x39241a(0x2b6)]['syncEditingCollabCursor'](_0x5988b3),_0x1ff66d[_0x39241a(0x29d)]=_0x582033=>this[_0x39241a(0x3f0)][_0x39241a(0x54a)](_0x582033),_0x1ff66d;}async[_0x4821de(0x402)](){const _0x18b300=_0x4821de,_0x1becca=await super[_0x18b300(0x402)]();return this[_0x18b300(0x3b3)][_0x18b300(0x285)][_0x18b300(0x2a5)](v['takeUntil'](this[_0x18b300(0x3ec)]))[_0x18b300(0x48c)](_0x5d8466=>{const _0x5cc628=_0x18b300;if(_0x5d8466==null)return;const {unitId:_0x4e2ae8,redoState:_0x383b65,commandId:_0xcf279a}=_0x5d8466;if(_0x4e2ae8!==this[_0x5cc628(0x4ef)])return;const _0x4f3742={'id':_0xcf279a,'type':a[_0x5cc628(0x36c)][_0x5cc628(0x34b)],'params':{'unitId':_0x4e2ae8,'actions':_0x383b65[_0x5cc628(0x268)],'textRanges':null}};this[_0x5cc628(0x22d)](_0x4f3742);}),_0x1becca;}},exports['DocCollaborationEntity']=ze([I(0x3,a[_0x4821de(0x579)](a['Injector'])),I(0x4,a[_0x4821de(0x579)](exports[_0x4821de(0x4c6)])),I(0x5,a[_0x4821de(0x579)](_['CompressMutationService'])),I(0x6,a[_0x4821de(0x579)](a[_0x4821de(0x53d)])),I(0x7,a[_0x4821de(0x579)](_[_0x4821de(0x4e7)])),I(0x8,a[_0x4821de(0x579)](N[_0x4821de(0x3dc)])),I(0x9,a[_0x4821de(0x579)](fe)),I(0xa,a[_0x4821de(0x579)](pe)),I(0xb,a[_0x4821de(0x579)](qe)),I(0xc,a[_0x4821de(0x49c)]),I(0xd,a[_0x4821de(0x5a9)]),I(0xe,A[_0x4821de(0x200)]),I(0xf,a[_0x4821de(0x54c)]),I(0x10,a['Optional'](Re))],exports[_0x4821de(0x2c8)]),exports[_0x4821de(0x563)]=class extends exports[_0x4821de(0x26b)]{constructor(_0x526ba0,_0x9bc896,_0x1058c0,_0x88c9db,_0x375d4b,_0x210d06,_0xf77ab,_0x1a0f2a,_0x43e91e,_0x4602a1,_0x1d98cf,_0xa07aa,_0x56875d,_0x21e7d8){const _0x4a8f6c=_0x4821de;super(_0x526ba0,_0x1058c0,_0x9bc896,_0x88c9db,_0x375d4b,_0x210d06,_0xf77ab,_0x1a0f2a,_0x4602a1,_0x1d98cf,_0xa07aa,_0x56875d,_0x21e7d8),this[_0x4a8f6c(0x4ef)]=_0x526ba0,this[_0x4a8f6c(0x3b6)]=_0x9bc896,this[_0x4a8f6c(0x2c5)]=_0x43e91e;}[_0x4821de(0x522)](){const _0x4ff028=_0x4821de,_0x3eb20b=super[_0x4ff028(0x522)]();return _0x3eb20b['onTransformSelections']=_0x548445=>this[_0x4ff028(0x2c5)][_0x4ff028(0x1f9)](_0x548445),_0x3eb20b;}async[_0x4821de(0x402)](){const _0x4785aa=_0x4821de,_0x1b3f71=await super[_0x4785aa(0x402)]();return this[_0x4785aa(0x4b1)](this[_0x4785aa(0x2bc)][_0x4785aa(0x2df)]((_0x580142,_0x1e220b)=>{const _0x3ea5a9=_0x4785aa;if(_0x580142[_0x3ea5a9(0x3b6)]!==a[_0x3ea5a9(0x36c)][_0x3ea5a9(0x34b)]||_0x1e220b!=null&&_0x1e220b[_0x3ea5a9(0x38c)]||_0x1e220b!=null&&_0x1e220b[_0x3ea5a9(0x405)])return;const _0x4e4ef2=_0x580142[_0x3ea5a9(0x247)];if((_0x4e4ef2==null?void 0x0:_0x4e4ef2[_0x3ea5a9(0x466)])!==this[_0x3ea5a9(0x4ef)])return;const _0x29184c=_0x580142,_0x2d7e98=this[_0x3ea5a9(0x503)][_0x3ea5a9(0x3ed)][_0x3ea5a9(0x335)](this[_0x3ea5a9(0x503)][_0x3ea5a9(0x3ed)][_0x3ea5a9(0x359)]()['COMPRESS_MUTATION_SEND'])([_0x29184c],null)||[_0x29184c];this[_0x3ea5a9(0x22d)](_0x2d7e98[0x0]);})),_0x1b3f71;}},exports[_0x4821de(0x563)]=ze([I(0x3,a['Inject'](a[_0x4821de(0x2cd)])),I(0x4,a[_0x4821de(0x579)](exports[_0x4821de(0x4c6)])),I(0x5,a[_0x4821de(0x579)](_[_0x4821de(0x5be)])),I(0x6,a[_0x4821de(0x579)](a['LocaleService'])),I(0x7,a[_0x4821de(0x579)](_[_0x4821de(0x4e7)])),I(0x8,a[_0x4821de(0x579)](Ie)),I(0x9,a['ILogService']),I(0xa,a['ICommandService']),I(0xb,A[_0x4821de(0x200)]),I(0xc,a[_0x4821de(0x54c)]),I(0xd,a['Optional'](Re))],exports[_0x4821de(0x563)]);var qs=Object[_0x4821de(0x51a)],zs=Object[_0x4821de(0x4f8)],Js=(_0x33b993,_0x1cf871,_0x48a6eb,_0x17069d)=>{const _0x2e586e=_0x4821de;for(var _0x3e86bd=_0x17069d>0x1?void 0x0:_0x17069d?zs(_0x1cf871,_0x48a6eb):_0x1cf871,_0x404bfb=_0x33b993[_0x2e586e(0x1fe)]-0x1,_0x4e25bd;_0x404bfb>=0x0;_0x404bfb--)(_0x4e25bd=_0x33b993[_0x404bfb])&&(_0x3e86bd=(_0x17069d?_0x4e25bd(_0x1cf871,_0x48a6eb,_0x3e86bd):_0x4e25bd(_0x3e86bd))||_0x3e86bd);return _0x17069d&&_0x3e86bd&&qs(_0x1cf871,_0x48a6eb,_0x3e86bd),_0x3e86bd;},Ne=(_0x2b557f,_0x35519d)=>(_0x57a0f5,_0x421bf2)=>_0x35519d(_0x57a0f5,_0x421bf2,_0x2b557f);exports[_0x4821de(0x330)]=class extends a[_0x4821de(0x56f)]{constructor(_0x3e5ae9,_0x3ee2cf,_0x1f0059){const _0x49d814=_0x4821de;super(),u(this,_0x49d814(0x291),new Map()),u(this,_0x49d814(0x5c7),new v['Subject']()),(this[_0x49d814(0x2ac)]=_0x3e5ae9,this[_0x49d814(0x208)]=_0x3ee2cf,this[_0x49d814(0x487)]=_0x1f0059,this[_0x49d814(0x402)]());}[_0x4821de(0x442)](){const _0x322464=_0x4821de;super['dispose'](),this['_entities'][_0x322464(0x3c2)](_0x33a243=>_0x33a243[_0x322464(0x442)]()),this[_0x322464(0x291)][_0x322464(0x25a)]();}[_0x4821de(0x415)](_0x3ef046){const _0x2881a0=_0x4821de;var _0x1bad54;return(_0x1bad54=this[_0x2881a0(0x291)][_0x2881a0(0x56d)](_0x3ef046))!=null?_0x1bad54:null;}[_0x4821de(0x5dc)](_0x2f8d2a){const _0x585505=_0x4821de,_0x4474a4=this[_0x585505(0x415)](_0x2f8d2a);return _0x4474a4?v['of'](_0x4474a4):this['_entityInit$'][_0x585505(0x2a5)](E['filter'](_0x356b34=>_0x356b34['unitID']===_0x2f8d2a));}[_0x4821de(0x402)](){const _0x25925d=_0x4821de;this[_0x25925d(0x487)][_0x25925d(0x2da)](a[_0x25925d(0x22e)][_0x25925d(0x453)])[_0x25925d(0x2a5)](v[_0x25925d(0x3ba)](this['dispose$']),E['delay'](0x10))[_0x25925d(0x48c)](async _0x211a07=>{const _0x3036b8=_0x25925d,_0x346fb8=_0x211a07[_0x3036b8(0x1f7)](),_0x3fceb7=await this[_0x3036b8(0x588)](_0x346fb8,$[_0x3036b8(0x453)]);this['_entities'][_0x3036b8(0x4d0)](_0x346fb8,_0x3fceb7);}),this[_0x25925d(0x487)]['getTypeOfUnitAdded$'](a[_0x25925d(0x22e)][_0x25925d(0x5f0)])[_0x25925d(0x2a5)](v['takeUntil'](this['dispose$']),E['delay'](0x10))['pipe'](E[_0x25925d(0x341)](_0x29de11=>!_0x29de11[_0x25925d(0x1f7)]()[_0x25925d(0x37f)]('__')))[_0x25925d(0x48c)](async _0x46df57=>{const _0x11749f=_0x25925d,_0x1a6872=_0x46df57[_0x11749f(0x1f7)](),_0x3a0727=await this[_0x11749f(0x588)](_0x1a6872,$['UNIVER_DOC']);this[_0x11749f(0x291)][_0x11749f(0x4d0)](_0x1a6872,_0x3a0727);}),v[_0x25925d(0x371)](this[_0x25925d(0x487)][_0x25925d(0x528)](a[_0x25925d(0x22e)][_0x25925d(0x453)]),this[_0x25925d(0x487)][_0x25925d(0x528)](a['UniverInstanceType']['UNIVER_DOC']))[_0x25925d(0x2a5)](v[_0x25925d(0x3ba)](this['dispose$']))['subscribe'](_0x3c513b=>{const _0x320278=_0x25925d,_0x4c25b0=_0x3c513b[_0x320278(0x1f7)](),_0x1961ef=this['_entities'][_0x320278(0x56d)](_0x4c25b0);_0x1961ef&&(_0x1961ef['dispose'](),this[_0x320278(0x291)]['delete'](_0x4c25b0));});}async[_0x4821de(0x588)](_0x1e1427,_0x223d20){const _0x807531=_0x4821de,_0x753682=await this[_0x807531(0x208)]['requireSession'](_0x1e1427),_0x228887=this['_injector'][_0x807531(0x5d3)](this[_0x807531(0x4c9)](_0x223d20),_0x1e1427,_0x223d20,_0x753682);return await _0x228887[_0x807531(0x28f)](),this[_0x807531(0x5c7)][_0x807531(0x56e)](_0x228887),_0x228887;}[_0x4821de(0x4c9)](_0x193a2c){const _0x1c3ff8=_0x4821de;switch(_0x193a2c){case $['UNIVER_DOC']:return exports[_0x1c3ff8(0x2c8)];case $[_0x1c3ff8(0x453)]:return exports['SheetCollaborationEntity'];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x193a2c);}}},exports['CollaborationController']=Js([Ne(0x0,a[_0x4821de(0x579)](a[_0x4821de(0x2cd)])),Ne(0x1,a[_0x4821de(0x579)](exports['CollaborationSessionService'])),Ne(0x2,a[_0x4821de(0x258)])],exports[_0x4821de(0x330)]);const ct=[_0x4821de(0x3f1),_0x4821de(0x48f),_0x4821de(0x4af),'red300',_0x4821de(0x2de),_0x4821de(0x2dc)];class Je extends a[_0x4821de(0x357)]{constructor(){const _0x1054e9=_0x4821de;super(...arguments),u(this,_0x1054e9(0x589),new Map()),u(this,_0x1054e9(0x54e),0x0);}[_0x4821de(0x3fe)](_0x358efd){const _0x4a5a10=_0x4821de;if(this[_0x4a5a10(0x589)][_0x4a5a10(0x1f6)](_0x358efd))return this[_0x4a5a10(0x589)][_0x4a5a10(0x56d)](_0x358efd);const _0x345058=ct[this['_colorIndex']];return this[_0x4a5a10(0x54e)]=(this[_0x4a5a10(0x54e)]+0x1)%ct['length'],this[_0x4a5a10(0x589)][_0x4a5a10(0x4d0)](_0x358efd,_0x345058),_0x345058;}}var Zs=Object[_0x4821de(0x51a)],Qs=Object[_0x4821de(0x4f8)],ei=(_0x43ca9f,_0x42c71b,_0x5d5ea8,_0x4a70e0)=>{const _0x28b0c2=_0x4821de;for(var _0x374100=_0x4a70e0>0x1?void 0x0:_0x4a70e0?Qs(_0x42c71b,_0x5d5ea8):_0x42c71b,_0x6d87e6=_0x43ca9f[_0x28b0c2(0x1fe)]-0x1,_0x2360b2;_0x6d87e6>=0x0;_0x6d87e6--)(_0x2360b2=_0x43ca9f[_0x6d87e6])&&(_0x374100=(_0x4a70e0?_0x2360b2(_0x42c71b,_0x5d5ea8,_0x374100):_0x2360b2(_0x374100))||_0x374100);return _0x4a70e0&&_0x374100&&Zs(_0x42c71b,_0x5d5ea8,_0x374100),_0x374100;},K=(_0xd84c7e,_0x3bb978)=>(_0x5caa83,_0x3fe3e0)=>_0x3bb978(_0x5caa83,_0x3fe3e0,_0xd84c7e);const ti=0x12c,si=0x64;let ke=class extends a['RxDisposable']{constructor(_0x3c4a06,_0x2078a6,_0x54d22e,_0x3dca8e,_0x10f491,_0x285bf6,_0x2395ec,_0x13e5aa,_0x1e6b91){const _0x2cb85f=_0x4821de;super(),u(this,'_online',!0x1),u(this,_0x2cb85f(0x402),!0x1),u(this,_0x2cb85f(0x532),new v['BehaviorSubject'](new Map())),u(this,_0x2cb85f(0x4bc),this[_0x2cb85f(0x532)][_0x2cb85f(0x43a)]()),u(this,_0x2cb85f(0x28d),new v[(_0x2cb85f(0x611))]([])),u(this,_0x2cb85f(0x3c5),this[_0x2cb85f(0x28d)][_0x2cb85f(0x2a5)](v['debounceTime'](ti))),u(this,_0x2cb85f(0x346),a[_0x2cb85f(0x567)](_0x3672e8=>{const _0x2abe22=_0x2cb85f,_0x2b4984={'eventID':_[_0x2abe22(0x215)][_0x2abe22(0x30c)],'data':{'unitID':this[_0x2abe22(0x4ef)],'memberID':this[_0x2abe22(0x41e)][_0x2abe22(0x4e3)](),'selection':yt(_0x3672e8)}};this[_0x2abe22(0x41e)][_0x2abe22(0x42f)](_0x2b4984,this[_0x2abe22(0x4ef)]);},si)),(this[_0x2cb85f(0x4ef)]=_0x3c4a06,this[_0x2cb85f(0x41e)]=_0x2078a6,this[_0x2cb85f(0x2ac)]=_0x54d22e,this[_0x2cb85f(0x5e7)]=_0x3dca8e,this['_memberService']=_0x10f491,this['_syncEditingCollabCursorService']=_0x285bf6,this[_0x2cb85f(0x577)]=_0x2395ec,this[_0x2cb85f(0x487)]=_0x13e5aa,this[_0x2cb85f(0x2bc)]=_0x1e6b91);}get[_0x4821de(0x47c)](){const _0x341ccb=_0x4821de;return this[_0x341ccb(0x532)]['getValue']();}get[_0x4821de(0x3e6)](){const _0x5b9cc9=_0x4821de;return this[_0x5b9cc9(0x28d)][_0x5b9cc9(0x40b)]();}[_0x4821de(0x442)](){const _0x1ba91f=_0x4821de;super[_0x1ba91f(0x442)](),this[_0x1ba91f(0x532)][_0x1ba91f(0x56e)](new Map()),this[_0x1ba91f(0x532)]['complete'](),this['_roomMembers$'][_0x1ba91f(0x56e)]([]),this[_0x1ba91f(0x28d)]['complete']();}[_0x4821de(0x28f)](){const _0x51052e=_0x4821de;this[_0x51052e(0x402)]||(this[_0x51052e(0x402)]=!0x0,this[_0x51052e(0x41e)][_0x51052e(0x2a8)][_0x51052e(0x2a5)](v[_0x51052e(0x3ba)](this[_0x51052e(0x3ec)]))['subscribe'](_0x15f99c=>{const _0x3b8fbe=_0x51052e;_0x15f99c===H[_0x3b8fbe(0x451)]?this[_0x3b8fbe(0x31e)]():this[_0x3b8fbe(0x313)]();}),this[_0x51052e(0x41e)][_0x51052e(0x29f)][_0x51052e(0x2a5)](v[_0x51052e(0x3ba)](this[_0x51052e(0x3ec)]))[_0x51052e(0x48c)](_0x5e8e98=>{const _0x347bd3=_0x51052e,_0x23a7c0=_0x5e8e98[_0x347bd3(0x2ab)];_0x23a7c0===_[_0x347bd3(0x215)][_0x347bd3(0x30c)]&&this[_0x347bd3(0x2f7)](_0x5e8e98),_0x23a7c0===_['CollaborationEvent']['USERS_LEAVE']&&this[_0x347bd3(0x3f7)](_0x5e8e98);}),this[_0x51052e(0x4b1)](this[_0x51052e(0x2bc)][_0x51052e(0x2df)](_0x2fefed=>{const _0x201a46=_0x51052e,_0x3b611d=_0x2fefed['params'];_0x3b611d!=null&&this['_online']&&_0x2fefed['id']===se[_0x201a46(0x33e)]['id']&&_0x3b611d[_0x201a46(0x466)]===this[_0x201a46(0x4ef)]&&_0x3b611d['isEditing']===!0x1&&this[_0x201a46(0x346)](_0x3b611d['ranges']);})),this['_syncEditingCollabCursorService'][_0x51052e(0x31f)]['pipe'](v[_0x51052e(0x3ba)](this[_0x51052e(0x3ec)]))[_0x51052e(0x48c)](_0x138c03=>{const _0x479dd7=_0x51052e;if((_0x138c03==null?void 0x0:_0x138c03[_0x479dd7(0x4ef)])!==this[_0x479dd7(0x4ef)])return;const _0x36502f={'eventID':_[_0x479dd7(0x215)]['UPDATE_CURSOR'],'data':_0x138c03};this[_0x479dd7(0x2f7)](_0x36502f);}),this[_0x51052e(0x4b1)](this['_commandService'][_0x51052e(0x2df)](_0x129154=>{const _0x390ec3=_0x51052e;if(_0x129154[_0x390ec3(0x247)]==null)return;const _0x264bae=_0x129154[_0x390ec3(0x247)];if(_0x129154['id']!==se[_0x390ec3(0x43f)]['id']||_0x264bae['unitId']!==this[_0x390ec3(0x4ef)])return;const _0x4f50c1={'id':_0x390ec3(0x297),'params':_0x264bae},_0x52fc8a=this[_0x390ec3(0x47c)];for(const [_0x376371,_0x400c57]of _0x52fc8a){const _0xaf63ea={'id':_0x390ec3(0x297),'params':{'unitId':this[_0x390ec3(0x4ef)],'actions':null,'textRanges':_0x400c57[_0x390ec3(0x5e0)]}},_0x9fd242=this['_transformService'][_0x390ec3(0x225)](_0x4f50c1,_0xaf63ea,!0x1);if(_[_0x390ec3(0x467)](_0x9fd242))throw _0x9fd242['error'];_0x52fc8a['set'](_0x376371,{..._0x400c57,'ranges':_0x9fd242['m2Prime']['params']['textRanges']});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x52fc8a);});})));}[_0x4821de(0x2f7)](_0x1d3d5f){const _0xcf27fc=_0x4821de;var _0x157814,_0x1a747e;const {memberID:_0x5bdf67,selection:_0x1bd9ec}=_0x1d3d5f[_0xcf27fc(0x434)],_0x18f21a=Hs(_0x1bd9ec),_0x1e1d05=(_0x1a747e=(_0x157814=this[_0xcf27fc(0x2ae)][_0xcf27fc(0x489)](this[_0xcf27fc(0x4ef)],_0x5bdf67))==null?void 0x0:_0x157814['name'])!=null?_0x1a747e:_0xcf27fc(0x303),_0x3e4a20={'color':this[_0xcf27fc(0x5e7)][_0xcf27fc(0x3fe)](_0x5bdf67),'name':_0x1e1d05,'ranges':_0x18f21a},_0x16e976=this[_0xcf27fc(0x47c)];_0x16e976[_0xcf27fc(0x4d0)](_0x5bdf67,_0x3e4a20),this[_0xcf27fc(0x532)][_0xcf27fc(0x56e)](_0x16e976);}['_onCursorDelete'](_0x9f1faa){const _0x2b4556=_0x4821de,{memberID:_0x3ccebc}=_0x9f1faa[_0x2b4556(0x434)],_0x401493=this[_0x2b4556(0x47c)];_0x401493[_0x2b4556(0x28c)](_0x3ccebc),this[_0x2b4556(0x532)]['next'](_0x401493);}[_0x4821de(0x31e)](){const _0x3976f1=_0x4821de;var _0x1ed554;if(this[_0x3976f1(0x393)]=!0x0,((_0x1ed554=this[_0x3976f1(0x487)][_0x3976f1(0x513)]())==null?void 0x0:_0x1ed554[_0x3976f1(0x1f7)]())!==this[_0x3976f1(0x4ef)])return;const _0x2c0b02=this[_0x3976f1(0x2ac)][_0x3976f1(0x56d)](se['DocSelectionManagerService'])[_0x3976f1(0x50e)]();Array[_0x3976f1(0x4d3)](_0x2c0b02)&&_0x2c0b02[_0x3976f1(0x1fe)]>0x0&&this[_0x3976f1(0x346)](_0x2c0b02);}[_0x4821de(0x313)](){const _0x4a407c=_0x4821de;this[_0x4a407c(0x393)]=!0x1;}};ke=ei([K(0x2,a[_0x4821de(0x579)](a[_0x4821de(0x2cd)])),K(0x3,a['Inject'](Je)),K(0x4,a[_0x4821de(0x579)](q)),K(0x5,a[_0x4821de(0x579)](qe)),K(0x6,_['ITransformService']),K(0x7,a['IUniverInstanceService']),K(0x8,a[_0x4821de(0x5a9)])],ke);var ii=Object[_0x4821de(0x51a)],ni=Object[_0x4821de(0x4f8)],ri=(_0x34d9a6,_0x11dad7,_0x56d2c0,_0x225160)=>{const _0x4b355a=_0x4821de;for(var _0x219207=_0x225160>0x1?void 0x0:_0x225160?ni(_0x11dad7,_0x56d2c0):_0x11dad7,_0x3a1b9a=_0x34d9a6[_0x4b355a(0x1fe)]-0x1,_0x35f5cc;_0x3a1b9a>=0x0;_0x3a1b9a--)(_0x35f5cc=_0x34d9a6[_0x3a1b9a])&&(_0x219207=(_0x225160?_0x35f5cc(_0x11dad7,_0x56d2c0,_0x219207):_0x35f5cc(_0x219207))||_0x219207);return _0x225160&&_0x219207&&ii(_0x11dad7,_0x56d2c0,_0x219207),_0x219207;},Q=(_0x463907,_0x3992cb)=>(_0x36a816,_0x2e2b75)=>_0x3992cb(_0x36a816,_0x2e2b75,_0x463907);const oi=0x12c,ai=0x64,ci=()=>{let _0x40d06f=[],_0x40af10=!0x1;return _0x3ea9e4=>{_0x40d06f['push'](_0x3ea9e4),_0x40af10||(_0x40af10=!0x0,setTimeout(()=>{const _0x447f76=_0x370a;_0x40d06f[_0x447f76(0x3c2)](_0x59f4ce=>_0x59f4ce()),_0x40d06f=[],_0x40af10=!0x1;}));};};let Be=class extends a[_0x4821de(0x56f)]{constructor(_0x340a2c,_0x47016a,_0x45d2de,_0x5beccd,_0x4db2dd,_0x4beab6,_0x3e1690,_0xfc5647){const _0xff69=_0x4821de;super(),u(this,_0xff69(0x393),!0x1),u(this,'_init',!0x1),u(this,'_cursorInfo$',new v[(_0xff69(0x611))](new Map())),u(this,_0xff69(0x4bc),this[_0xff69(0x532)][_0xff69(0x43a)]()),u(this,_0xff69(0x28d),new v[(_0xff69(0x611))]([])),u(this,_0xff69(0x3c5),this['_roomMembers$']['pipe'](v[_0xff69(0x39e)](oi))),u(this,_0xff69(0x346),a['debounce']((_0x2918d3,_0xb7bc26)=>{const _0x4a5077=_0xff69,_0x285d1f={'eventID':_[_0x4a5077(0x215)][_0x4a5077(0x30c)],'data':{'unitID':this[_0x4a5077(0x4ef)],'memberID':this[_0x4a5077(0x41e)]['getMemberID'](),'selection':et[_0x4a5077(0x274)](_0x2918d3,_0xb7bc26[_0x4a5077(0x20e)])}};this[_0x4a5077(0x41e)][_0x4a5077(0x42f)](_0x285d1f,this[_0x4a5077(0x4ef)]);},ai)),(this[_0xff69(0x4ef)]=_0x340a2c,this[_0xff69(0x41e)]=_0x47016a,this[_0xff69(0x2ac)]=_0x45d2de,this['_colorAssignService']=_0x5beccd,this['_memberService']=_0x4db2dd,this['_univerInstanceService']=_0x4beab6,this[_0xff69(0x2bc)]=_0x3e1690,this[_0xff69(0x463)]=_0xfc5647);}get[_0x4821de(0x47c)](){const _0x17a8d9=_0x4821de;return this[_0x17a8d9(0x532)][_0x17a8d9(0x40b)]();}get[_0x4821de(0x3e6)](){const _0x2825eb=_0x4821de;return this[_0x2825eb(0x28d)][_0x2825eb(0x40b)]();}[_0x4821de(0x442)](){const _0x102dfa=_0x4821de;super[_0x102dfa(0x442)](),this['_cursorInfo$'][_0x102dfa(0x56e)](new Map()),this['_cursorInfo$'][_0x102dfa(0x56b)](),this[_0x102dfa(0x28d)]['next']([]),this[_0x102dfa(0x28d)][_0x102dfa(0x56b)]();}['init'](){const _0x5be22b=_0x4821de;this[_0x5be22b(0x402)]||(this['_init']=!0x0,this[_0x5be22b(0x41e)][_0x5be22b(0x2a8)][_0x5be22b(0x2a5)](v[_0x5be22b(0x3ba)](this[_0x5be22b(0x3ec)]))[_0x5be22b(0x48c)](_0x4d9da0=>{const _0x295c30=_0x5be22b;_0x4d9da0===H[_0x295c30(0x451)]?this['_toggleOnline']():this[_0x295c30(0x313)]();}),this[_0x5be22b(0x41e)]['event$'][_0x5be22b(0x2a5)](v['takeUntil'](this[_0x5be22b(0x3ec)]))[_0x5be22b(0x48c)](_0x3bc55d=>{const _0x4f879b=_0x5be22b,_0xadb92f=_0x3bc55d[_0x4f879b(0x2ab)];_0xadb92f===_[_0x4f879b(0x215)][_0x4f879b(0x30c)]&&this['_onCursorUpdate'](_0x3bc55d),_0xadb92f===_[_0x4f879b(0x215)][_0x4f879b(0x520)]&&this[_0x4f879b(0x3f7)](_0x3bc55d);}),this[_0x5be22b(0x290)](),this['disposeWithMe'](this['_commandService'][_0x5be22b(0x2df)](_0x21f5cc=>{const _0x4e864b=_0x5be22b;if(this[_0x4e864b(0x393)]&&_0x21f5cc['id']===C['SetSelectionsOperation']['id']&&_0x21f5cc[_0x4e864b(0x247)]['unitId']===this['unitID']){const _0x2b3a18=_0x21f5cc[_0x4e864b(0x247)];this[_0x4e864b(0x346)](_0x2b3a18[_0x4e864b(0x32d)],_0x2b3a18[_0x4e864b(0x3b2)][0x0]);}})));}[_0x4821de(0x2f7)](_0x3e668f){const _0x49a68f=_0x4821de;var _0x3110bd,_0x4a9be4;const {memberID:_0x14b5ba,selection:_0x2c330f}=_0x3e668f[_0x49a68f(0x434)],{sheetName:_0x28181a,range:_0x4ef3eb}=et['deserializeRangeWithSheet'](_0x2c330f),_0x2ed595={'name':(_0x4a9be4=(_0x3110bd=this[_0x49a68f(0x2ae)][_0x49a68f(0x489)](this[_0x49a68f(0x4ef)],_0x14b5ba))==null?void 0x0:_0x3110bd[_0x49a68f(0x32e)])!=null?_0x4a9be4:_0x49a68f(0x303),'range':this[_0x49a68f(0x3ab)](_0x28181a,_0x4ef3eb),'sheetID':_0x28181a,'color':this[_0x49a68f(0x5e7)][_0x49a68f(0x3fe)](_0x14b5ba),'selection':_0x2c330f},_0x8fb7b1=this[_0x49a68f(0x47c)];_0x8fb7b1[_0x49a68f(0x4d0)](_0x14b5ba,_0x2ed595),this[_0x49a68f(0x532)]['next'](_0x8fb7b1);}[_0x4821de(0x3f7)](_0x1758ca){const _0x1965d3=_0x4821de,{memberID:_0x223500}=_0x1758ca[_0x1965d3(0x434)],_0x1a2af8=this[_0x1965d3(0x47c)];_0x1a2af8[_0x1965d3(0x28c)](_0x223500),this['_cursorInfo$'][_0x1965d3(0x56e)](_0x1a2af8);}[_0x4821de(0x3ab)](_0x5ba69e,_0x592f9c){const _0x480db5=_0x4821de;var _0xee902d,_0x2615d1;const _0xbcfe41=(_0x2615d1=(_0xee902d=this[_0x480db5(0x487)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0xee902d['getSheetBySheetId'](_0x5ba69e))==null?void 0x0:_0x2615d1[_0x480db5(0x408)]();return(_0xbcfe41==null?void 0x0:_0xbcfe41['find'](_0x1c11d2=>a['Rectangle'][_0x480db5(0x315)](_0x1c11d2,_0x592f9c)))||_0x592f9c;}[_0x4821de(0x290)](){const _0x20419f=_0x4821de,_0x127063=new a[(_0x20419f(0x490))](),_0x4f8ffb=ci(),_0x49dbc0=()=>{const _0x204172=_0x20419f;_0x127063[_0x204172(0x442)]();const _0x5f20bb=(_0x461a1f,_0x18e358,_0x36cfa2,_0x67cfff)=>{const _0x30d0ac=_0x204172;let _0x378b7d=[];switch(_0x461a1f['id']){case C[_0x30d0ac(0x4a8)][_0x30d0ac(0x224)]:{_0x378b7d=C[_0x30d0ac(0x2f0)](_0x461a1f,_0x67cfff);break;}case C['EffectRefRangId'][_0x30d0ac(0x227)]:{_0x378b7d=C[_0x30d0ac(0x5af)](_0x461a1f,_0x67cfff);break;}case C[_0x30d0ac(0x4a8)][_0x30d0ac(0x344)]:{_0x378b7d=C[_0x30d0ac(0x4a9)](_0x461a1f,_0x67cfff);break;}case C[_0x30d0ac(0x4a8)]['InsertRangeMoveDownCommandId']:{_0x378b7d=C['handleInsertRangeMoveDown'](_0x461a1f,_0x67cfff);break;}case C[_0x30d0ac(0x4a8)]['InsertRangeMoveRightCommandId']:{_0x378b7d=C[_0x30d0ac(0x250)](_0x461a1f,_0x67cfff);break;}case C['EffectRefRangId'][_0x30d0ac(0x4c7)]:{_0x378b7d=C['handleInsertRow'](_0x461a1f,_0x67cfff);break;}case C[_0x30d0ac(0x4a8)][_0x30d0ac(0x2db)]:{_0x378b7d=C[_0x30d0ac(0x58d)](_0x461a1f,_0x67cfff);break;}case C['EffectRefRangId'][_0x30d0ac(0x4fb)]:{_0x378b7d=C[_0x30d0ac(0x459)](_0x461a1f,_0x67cfff);break;}case C['EffectRefRangId'][_0x30d0ac(0x525)]:{_0x378b7d=C[_0x30d0ac(0x53a)](_0x461a1f,_0x67cfff);break;}}const _0xeb9ea5=C[_0x30d0ac(0x304)](_0x378b7d,_0x67cfff),_0x464b59=this['cursorInfo']['get'](_0x18e358);if(_0x464b59&&_0xeb9ea5){const _0x5868ba={..._0x464b59,'range':_0xeb9ea5};this['cursorInfo']['set'](_0x18e358,_0x5868ba),_0x4f8ffb(()=>{const _0x57538a=_0x30d0ac,_0x380bcc=this[_0x57538a(0x463)][_0x57538a(0x3fd)](_0xeb9ea5,_0x5ca9f5=>(_0x380bcc[_0x57538a(0x442)](),_0x5f20bb(_0x5ca9f5,_0x18e358,_0x36cfa2,_0xeb9ea5)));_0x127063[_0x57538a(0x201)](_0x380bcc);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0xc4ac86,_0x13a9d6)=>{const _0x8b1447=_0x204172,{range:_0x2100c2,sheetID:_0xdd7f1a}=_0xc4ac86,_0x3ce736=this[_0x8b1447(0x463)][_0x8b1447(0x3fd)](_0x2100c2,_0x15686a=>(_0x3ce736[_0x8b1447(0x442)](),_0x5f20bb(_0x15686a,_0x13a9d6,_0xdd7f1a,_0x2100c2)));_0x127063[_0x8b1447(0x201)](_0x3ce736);});};this[_0x20419f(0x4b1)](a[_0x20419f(0x35f)](this['_cursorInfo$']['subscribe'](()=>{_0x49dbc0();})));}[_0x4821de(0x31e)](){const _0x1fa2d7=_0x4821de;var _0x47420d,_0x1e7dc7;if(this[_0x1fa2d7(0x393)]=!0x0,((_0x47420d=this[_0x1fa2d7(0x487)][_0x1fa2d7(0x513)]())==null?void 0x0:_0x47420d['getUnitId']())!==this[_0x1fa2d7(0x4ef)])return;const _0x4f3f3e=(_0x1e7dc7=this[_0x1fa2d7(0x2ac)]['get'](C[_0x1fa2d7(0x2a7)])[_0x1fa2d7(0x342)]())==null?void 0x0:_0x1e7dc7[0x0],_0xfe1f2f=this[_0x1fa2d7(0x487)][_0x1fa2d7(0x4f9)](a[_0x1fa2d7(0x22e)][_0x1fa2d7(0x453)])['getActiveSheet']();_0x4f3f3e&&_0xfe1f2f&&this[_0x1fa2d7(0x346)](_0xfe1f2f[_0x1fa2d7(0x370)](),_0x4f3f3e);}[_0x4821de(0x313)](){const _0x339a66=_0x4821de;this[_0x339a66(0x393)]=!0x1;}};Be=ri([Q(0x2,a['Inject'](a[_0x4821de(0x2cd)])),Q(0x3,a[_0x4821de(0x579)](Je)),Q(0x4,a[_0x4821de(0x579)](q)),Q(0x5,a[_0x4821de(0x258)]),Q(0x6,a[_0x4821de(0x5a9)]),Q(0x7,a[_0x4821de(0x579)](C[_0x4821de(0x4cd)]))],Be);var li=Object[_0x4821de(0x51a)],hi=Object[_0x4821de(0x4f8)],_i=(_0x2e2727,_0x177205,_0x93460e,_0x4f8627)=>{const _0x2a84b3=_0x4821de;for(var _0x1293c1=_0x4f8627>0x1?void 0x0:_0x4f8627?hi(_0x177205,_0x93460e):_0x177205,_0x21816e=_0x2e2727[_0x2a84b3(0x1fe)]-0x1,_0x20e521;_0x21816e>=0x0;_0x21816e--)(_0x20e521=_0x2e2727[_0x21816e])&&(_0x1293c1=(_0x4f8627?_0x20e521(_0x177205,_0x93460e,_0x1293c1):_0x20e521(_0x1293c1))||_0x1293c1);return _0x4f8627&&_0x1293c1&&li(_0x177205,_0x93460e,_0x1293c1),_0x1293c1;},Me=(_0x287508,_0x4f3883)=>(_0x3451e3,_0x578098)=>_0x4f3883(_0x3451e3,_0x578098,_0x287508);let ne=class extends a['RxDisposable']{constructor(_0x1497ce,_0x50eb63,_0x4b52ba){const _0x17fb59=_0x4821de;super(),u(this,_0x17fb59(0x291),new Map()),u(this,_0x17fb59(0x5c7),new v['Subject']()),(this[_0x17fb59(0x487)]=_0x1497ce,this[_0x17fb59(0x2ac)]=_0x50eb63,this[_0x17fb59(0x208)]=_0x4b52ba,this[_0x17fb59(0x402)]());}[_0x4821de(0x442)](){const _0x1ebf31=_0x4821de;super['dispose'](),this['_entityInit$'][_0x1ebf31(0x56b)](),this['_entities'][_0x1ebf31(0x3c2)](_0x2743c7=>_0x2743c7['dispose']());}[_0x4821de(0x2f6)](_0x20c406){const _0x356607=_0x4821de;return this['_entities'][_0x356607(0x1f6)](_0x20c406)?this[_0x356607(0x291)][_0x356607(0x56d)](_0x20c406)[_0x356607(0x4bc)]:this[_0x356607(0x5c7)][_0x356607(0x2a5)](v[_0x356607(0x341)](_0x1b7293=>_0x1b7293[_0x356607(0x4ef)]===_0x20c406),v['switchMap'](_0x46a4cc=>_0x46a4cc[_0x356607(0x4bc)]));}[_0x4821de(0x402)](){const _0xb80719=_0x4821de;this[_0xb80719(0x487)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0xb80719(0x453)])[_0xb80719(0x2a5)](v[_0xb80719(0x3ba)](this[_0xb80719(0x3ec)]))[_0xb80719(0x48c)](async _0x5476c0=>{const _0x40ad72=_0xb80719,_0x2e8376=_0x5476c0[_0x40ad72(0x1f7)](),_0x132245=await this[_0x40ad72(0x606)](_0x2e8376);this[_0x40ad72(0x5c7)][_0x40ad72(0x56e)](_0x132245),this[_0x40ad72(0x291)][_0x40ad72(0x4d0)](_0x2e8376,_0x132245);}),this[_0xb80719(0x487)][_0xb80719(0x2da)](a[_0xb80719(0x22e)][_0xb80719(0x5f0)])[_0xb80719(0x2a5)](v[_0xb80719(0x3ba)](this[_0xb80719(0x3ec)]))[_0xb80719(0x2a5)](v[_0xb80719(0x341)](_0x198a4c=>!_0x198a4c[_0xb80719(0x1f7)]()[_0xb80719(0x37f)]('__')))[_0xb80719(0x48c)](async _0x11249c=>{const _0x514cb1=_0xb80719,_0x5cc3a0=_0x11249c[_0x514cb1(0x1f7)](),_0x4ddc58=await this[_0x514cb1(0x299)](_0x5cc3a0);this[_0x514cb1(0x5c7)][_0x514cb1(0x56e)](_0x4ddc58),this[_0x514cb1(0x291)][_0x514cb1(0x4d0)](_0x5cc3a0,_0x4ddc58);}),v[_0xb80719(0x371)](this[_0xb80719(0x487)][_0xb80719(0x528)](a['UniverInstanceType']['UNIVER_DOC']),this['_univerInstanceService'][_0xb80719(0x528)](a[_0xb80719(0x22e)][_0xb80719(0x453)]))[_0xb80719(0x2a5)](v[_0xb80719(0x3ba)](this[_0xb80719(0x3ec)]))['subscribe'](_0x2182ce=>{const _0x190ae3=_0xb80719,_0x9f33e3=_0x2182ce[_0x190ae3(0x1f7)](),_0x1c0fad=this[_0x190ae3(0x291)][_0x190ae3(0x56d)](_0x9f33e3);_0x1c0fad&&(_0x1c0fad['dispose'](),this[_0x190ae3(0x291)]['delete'](_0x9f33e3));});}async['_startSheetCollabCursor'](_0x361b51){const _0x4d58b7=_0x4821de,_0x49b048=await this[_0x4d58b7(0x208)][_0x4d58b7(0x277)](_0x361b51),_0x15e8e6=this['_injector'][_0x4d58b7(0x5d3)](Be,_0x361b51,_0x49b048);return _0x15e8e6[_0x4d58b7(0x28f)](),_0x15e8e6;}async[_0x4821de(0x299)](_0x224c5d){const _0x1baaef=_0x4821de,_0xe9d9cb=await this[_0x1baaef(0x208)][_0x1baaef(0x277)](_0x224c5d),_0x2f2aab=this[_0x1baaef(0x2ac)]['createInstance'](ke,_0x224c5d,_0xe9d9cb);return _0x2f2aab[_0x1baaef(0x28f)](),_0x2f2aab;}};ne=_i([Me(0x0,a[_0x4821de(0x258)]),Me(0x1,a[_0x4821de(0x579)](a['Injector'])),Me(0x2,a[_0x4821de(0x579)](exports[_0x4821de(0x3d5)]))],ne);const de=0x14,lt=0xc8,Ae=0x4,ui=0x5;function di(_0x1bec7b,_0x4480a6){const _0x1a385f=_0x4821de;let {radius:_0x452f8e,width:_0x2a0e1f,height:_0x3bc70d}=_0x4480a6;_0x452f8e=_0x452f8e!=null?_0x452f8e:0x0,_0x2a0e1f=_0x2a0e1f!=null?_0x2a0e1f:0x1e,_0x3bc70d=_0x3bc70d!=null?_0x3bc70d:0x1e;let _0x88d9a4=0x0,_0x16b103=0x0,_0x8a9496=0x0;_0x88d9a4=_0x16b103=_0x8a9496=Math['min'](_0x452f8e,_0x2a0e1f/0x2,_0x3bc70d/0x2),_0x1bec7b[_0x1a385f(0x56c)](),_0x1bec7b[_0x1a385f(0x238)](_0x88d9a4,0x0),_0x1bec7b['lineTo'](_0x2a0e1f-_0x16b103,0x0),_0x1bec7b[_0x1a385f(0x34d)](_0x2a0e1f-_0x16b103,_0x16b103,_0x16b103,Math['PI']*0x3/0x2,0x0,!0x1),_0x1bec7b[_0x1a385f(0x4e5)](_0x2a0e1f,_0x3bc70d-_0x8a9496),_0x1bec7b[_0x1a385f(0x34d)](_0x2a0e1f-_0x8a9496,_0x3bc70d-_0x8a9496,_0x8a9496,0x0,Math['PI']/0x2,!0x1),_0x1bec7b[_0x1a385f(0x4e5)](0x0,_0x3bc70d),_0x1bec7b[_0x1a385f(0x4e5)](0x0,_0x88d9a4),_0x1bec7b[_0x1a385f(0x34d)](_0x88d9a4,_0x88d9a4,_0x88d9a4,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1bec7b[_0x1a385f(0x605)](),_0x4480a6[_0x1a385f(0x472)]&&(_0x1bec7b['save'](),_0x1bec7b['fillStyle']=_0x4480a6[_0x1a385f(0x472)],_0x4480a6[_0x1a385f(0x49d)]===_0x1a385f(0x4e9)?_0x1bec7b[_0x1a385f(0x472)](_0x1a385f(0x4e9)):_0x1bec7b[_0x1a385f(0x472)](),_0x1bec7b[_0x1a385f(0x4e2)]());}class Oe extends O['Shape']{constructor(_0x52a26f,_0x2a9c15){const _0x8471ba=_0x4821de;super(_0x52a26f,_0x2a9c15),u(this,_0x8471ba(0x494)),u(this,'text'),(this[_0x8471ba(0x494)]=_0x2a9c15==null?void 0x0:_0x2a9c15[_0x8471ba(0x494)],this[_0x8471ba(0x2b7)]=_0x2a9c15==null?void 0x0:_0x2a9c15[_0x8471ba(0x2b7)]);}static['drawWith'](_0x56a0d6,_0x42aa62){const _0x4dadb4=_0x4821de,{text:_0xefe3aa,color:_0x43fdfd}=_0x42aa62;_0x56a0d6[_0x4dadb4(0x50c)](),_0x56a0d6[_0x4dadb4(0x2c1)]=_0x4dadb4(0x4b4);const _0x36e030=_0x56a0d6[_0x4dadb4(0x3d3)](_0xefe3aa)[_0x4dadb4(0x430)],_0x43bacf=Math[_0x4dadb4(0x210)](_0x36e030+0x2*Ae,lt);di(_0x56a0d6,{'height':de,'radius':0x4,'width':_0x43bacf,'fill':_0x43fdfd,'evented':!0x1}),_0x56a0d6[_0x4dadb4(0x3c0)]='#FFF';const _0x39b3d2=Ae,_0x342945=de-ui,_0x2cea90=lt-0x2*Ae;if(_0x36e030>_0x2cea90){let _0xabfbb5='',_0x56a1af=0x0;for(const _0x3e6396 of _0xefe3aa){const _0x39e898=_0x56a0d6[_0x4dadb4(0x3d3)](_0x3e6396)[_0x4dadb4(0x430)];if(_0x56a1af+_0x39e898<=_0x2cea90-_0x56a0d6[_0x4dadb4(0x3d3)](_0x4dadb4(0x5b0))[_0x4dadb4(0x430)])_0xabfbb5+=_0x3e6396,_0x56a1af+=_0x39e898;else{_0xabfbb5+='...';break;}}_0x56a0d6['fillText'](_0xabfbb5,_0x39b3d2,_0x342945);}else _0x56a0d6[_0x4dadb4(0x512)](_0xefe3aa,_0x39b3d2,_0x342945);_0x56a0d6['restore']();}[_0x4821de(0x228)](_0x13f61b){Oe['drawWith'](_0x13f61b,this);}}const Le=_0x4821de(0x42b),Si=_0x4821de(0x20c),vi=_0x4821de(0x218),le=0x6,gi=1.5,je=0x4,mi=1.5,fi=_0x4821de(0x3d9);class ht{constructor(_0x251de1,_0x5446c4,_0x2fade2,_0x223cdb){const _0x3d2504=_0x4821de;u(this,'_shapes',[]),u(this,_0x3d2504(0x278),null),u(this,_0x3d2504(0x39d),null),u(this,'_anchorDot',null),u(this,_0x3d2504(0x5bd),null),u(this,_0x3d2504(0x31c),null),(this[_0x3d2504(0x462)]=_0x251de1,this[_0x3d2504(0x406)]=_0x5446c4,this[_0x3d2504(0x5c9)]=_0x2fade2,this[_0x3d2504(0x4e0)]=_0x223cdb,this[_0x3d2504(0x40a)]());}set[_0x4821de(0x223)](_0x503d7c){const _0x1c22fb=_0x4821de;_0x503d7c?(this[_0x1c22fb(0x3f3)]&&this['_anchorDot'][_0x1c22fb(0x403)](),this[_0x1c22fb(0x39d)]&&this[_0x1c22fb(0x39d)][_0x1c22fb(0x4d2)]()):(this[_0x1c22fb(0x3f3)]&&this['_anchorDot'][_0x1c22fb(0x4d2)](),this[_0x1c22fb(0x39d)]&&this[_0x1c22fb(0x39d)]['hide']());}['dispose'](){const _0x2660c6=_0x4821de;for(const _0xba156c of this[_0x2660c6(0x418)])_0xba156c[_0x2660c6(0x442)]();this[_0x2660c6(0x39d)]&&this['_textBubble'][_0x2660c6(0x442)](),this[_0x2660c6(0x3f3)]&&this['_anchorDot'][_0x2660c6(0x442)](),this['_anchor']&&this[_0x2660c6(0x278)][_0x2660c6(0x442)](),this['_eventUnsubscribe']&&this[_0x2660c6(0x31c)]();}[_0x4821de(0x40a)](){const _0x134fcd=_0x4821de;var _0x110338;const {_docSkeleton:_0x329753,_document:_0x5c6926}=this,{color:_0x555a5d,name:_0xb07a6,ranges:_0x205f30}=this[_0x134fcd(0x462)],_0x359095=_0x5c6926[_0x134fcd(0x2d7)](),{docsLeft:_0xf837c6,docsTop:_0x1e073a}=_0x359095,_0x3bd075=new N[(_0x134fcd(0x385))](_0x359095,_0x329753);for(const {startOffset:_0x2d4722,endOffset:_0x27987c,collapsed:_0x182fe3,isActive:_0x3aa2f8}of _0x205f30){const _0x2d0267=_0x329753[_0x134fcd(0x337)](_0x2d4722),_0x11138b=_0x329753['findNodePositionByCharIndex'](_0x27987c);if(_0x3aa2f8){const {contentBoxPointGroup:_0x535193}=_0x3bd075[_0x134fcd(0x458)](_0x11138b,_0x11138b);if(_0x535193[_0x134fcd(0x1fe)]===0x0)continue;this[_0x134fcd(0x26d)](_0x555a5d,_0x535193,_0xf837c6,_0x1e073a,_0xb07a6),this[_0x134fcd(0x31c)]=this[_0x134fcd(0x5b9)]();}if(!_0x182fe3&&_0x2d0267&&_0x11138b){if(N[_0x134fcd(0x47a)](_0x2d0267,_0x11138b)){const _0x5b975f=new N['NodePositionConvertToRectRange'](_0x359095,_0x329753),{pointGroup:_0x24645f}=(_0x110338=_0x5b975f[_0x134fcd(0x458)](_0x2d0267,_0x11138b))!=null?_0x110338:{};if(_0x24645f==null||_0x24645f[_0x134fcd(0x1fe)]===0x0)continue;this[_0x134fcd(0x600)](_0x555a5d,_0x24645f,_0xf837c6,_0x1e073a);}else{const {contentBoxPointGroup:_0x676752}=_0x3bd075[_0x134fcd(0x458)](_0x2d0267,_0x11138b);if(_0x676752[_0x134fcd(0x1fe)]===0x0)continue;this[_0x134fcd(0x378)](_0x555a5d,_0x676752,_0xf837c6,_0x1e073a);}}}}[_0x4821de(0x26d)](_0x4b03d6,_0x39e067,_0x23d099,_0x24eb81,_0x567c4f){const _0x4d0aea=_0x4821de,_0x42d362=this[_0x4d0aea(0x48b)](_0x39e067),{left:_0x3966f2,top:_0x4f9d11,height:_0x525a88}=_0x42d362,_0x5b0f44=this[_0x4d0aea(0x301)](),_0x3bab6b=mi/_0x5b0f44,_0x2ef268=new O['Rect'](Le+a[_0x4d0aea(0x57b)][_0x4d0aea(0x24f)](le),{'left':_0x3966f2+_0x23d099-_0x3bab6b,'top':_0x4f9d11+_0x24eb81,'height':_0x525a88,'width':gi,'fill':_0x4b03d6||O[_0x4d0aea(0x2cf)](a[_0x4d0aea(0x575)][_0x4d0aea(0x2e9)],0x0),'strokeWidth':_0x3bab6b,'stroke':fi,'evented':!0x0});this[_0x4d0aea(0x278)]=_0x2ef268,this[_0x4d0aea(0x406)][_0x4d0aea(0x350)](_0x2ef268,N['TEXT_RANGE_LAYER_INDEX']);const _0x436f7a=new O[(_0x4d0aea(0x40f))](Le+a['Tools'][_0x4d0aea(0x24f)](le),{'left':_0x3966f2+_0x23d099-_0x3bab6b,'top':_0x4f9d11+_0x24eb81-je/0x2,'height':je,'width':je,'fill':_0x4b03d6||O[_0x4d0aea(0x2cf)](a[_0x4d0aea(0x575)][_0x4d0aea(0x2e9)],0x0),'strokeWidth':0x0,'stroke':_0x4b03d6||O[_0x4d0aea(0x2cf)](a[_0x4d0aea(0x575)][_0x4d0aea(0x2e9)],0x0),'evented':!0x1});this[_0x4d0aea(0x3f3)]=_0x436f7a,this[_0x4d0aea(0x406)][_0x4d0aea(0x350)](_0x436f7a,N[_0x4d0aea(0x460)]);const _0x5730f9=new Oe(Le+a[_0x4d0aea(0x57b)][_0x4d0aea(0x24f)](le),{'left':_0x3966f2+_0x23d099-_0x3bab6b,'top':_0x4f9d11+_0x24eb81-de,'text':_0x567c4f,'color':_0x4b03d6});this[_0x4d0aea(0x39d)]=_0x5730f9,this[_0x4d0aea(0x406)][_0x4d0aea(0x350)](_0x5730f9,N[_0x4d0aea(0x460)]),this[_0x4d0aea(0x223)]=!0x1;}[_0x4821de(0x5b9)](){const _0x1ca651=_0x4821de,_0x374f6e=this[_0x1ca651(0x278)][_0x1ca651(0x498)][_0x1ca651(0x251)](()=>{this['_hover']=!0x0;}),_0x3d493c=this['_anchor'][_0x1ca651(0x369)][_0x1ca651(0x251)](()=>{const _0x2ecd41=_0x1ca651;this[_0x2ecd41(0x5bd)]&&clearTimeout(this[_0x2ecd41(0x5bd)]),this[_0x2ecd41(0x5bd)]=setTimeout(()=>{const _0x2ed992=_0x2ecd41;this[_0x2ed992(0x223)]=!0x1;},0x7d0);});return()=>{const _0x54aa6c=_0x1ca651;_0x374f6e[_0x54aa6c(0x31d)](),_0x3d493c[_0x54aa6c(0x31d)]();};}[_0x4821de(0x378)](_0x566f81,_0x41bd4a,_0x389d45,_0x4a23c4){const _0x5022a5=_0x4821de,_0x28eccb=new a[(_0x5022a5(0x4f1))](_0x566f81)[_0x5022a5(0x45e)](0.2)[_0x5022a5(0x3a3)](),_0x2a8b8e=new O[(_0x5022a5(0x334))](Si+a[_0x5022a5(0x57b)][_0x5022a5(0x24f)](le),{'pointsGroup':_0x41bd4a,'fill':_0x28eccb||O[_0x5022a5(0x2cf)](a[_0x5022a5(0x575)][_0x5022a5(0x2e9)],0.2),'left':_0x389d45,'top':_0x4a23c4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5022a5(0x418)][_0x5022a5(0x25b)](_0x2a8b8e),this[_0x5022a5(0x406)][_0x5022a5(0x350)](_0x2a8b8e,N['TEXT_RANGE_LAYER_INDEX']);}[_0x4821de(0x600)](_0x144b9f,_0x13419b,_0x239943,_0x14f5f0){const _0x20aac9=_0x4821de,_0xd167aa=new a[(_0x20aac9(0x4f1))](_0x144b9f)[_0x20aac9(0x45e)](0.2)[_0x20aac9(0x3a3)](),_0x51e846=new O[(_0x20aac9(0x334))](vi+a[_0x20aac9(0x57b)]['generateRandomId'](le),{'pointsGroup':_0x13419b,'fill':_0xd167aa||O[_0x20aac9(0x2cf)](a[_0x20aac9(0x575)][_0x20aac9(0x2e9)],0.2),'left':_0x239943,'top':_0x14f5f0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x20aac9(0x418)][_0x20aac9(0x25b)](_0x51e846),this['_scene'][_0x20aac9(0x350)](_0x51e846,N[_0x20aac9(0x460)]);}['_getAnchorBounding'](_0xcf7d53){const _0x1c0b7b=_0xcf7d53[0x0],_0x1e28c3=_0x1c0b7b[0x0],_0x21b87b=_0x1c0b7b[0x2],{x:_0x3529b0,y:_0x1ad7e6}=_0x1e28c3,{x:_0x2215e4,y:_0x8483dd}=_0x21b87b;return{'left':_0x3529b0,'top':_0x1ad7e6,'width':_0x2215e4-_0x3529b0,'height':_0x8483dd-_0x1ad7e6};}[_0x4821de(0x301)](){const _0x551133=_0x4821de,{scaleX:_0x309bd5,scaleY:_0xcbda42}=this[_0x551133(0x406)][_0x551133(0x214)]();return Math['max'](_0x309bd5,_0xcbda42);}}var Ii=Object[_0x4821de(0x51a)],pi=Object[_0x4821de(0x4f8)],Ci=(_0x274949,_0x19c360,_0x5b280a,_0x4fc60e)=>{const _0x1542c8=_0x4821de;for(var _0x2a1376=_0x4fc60e>0x1?void 0x0:_0x4fc60e?pi(_0x19c360,_0x5b280a):_0x19c360,_0x3403f1=_0x274949[_0x1542c8(0x1fe)]-0x1,_0x5936a9;_0x3403f1>=0x0;_0x3403f1--)(_0x5936a9=_0x274949[_0x3403f1])&&(_0x2a1376=(_0x4fc60e?_0x5936a9(_0x19c360,_0x5b280a,_0x2a1376):_0x5936a9(_0x2a1376))||_0x2a1376);return _0x4fc60e&&_0x2a1376&&Ii(_0x19c360,_0x5b280a,_0x2a1376),_0x2a1376;},ve=(_0x481f8b,_0x5a04d9)=>(_0x2fcd8b,_0x5577d2)=>_0x5a04d9(_0x2fcd8b,_0x5577d2,_0x481f8b);let Ve=class extends a[_0x4821de(0x56f)]{constructor(_0x42b0db,_0x1c2808,_0x96c0dc,_0x20eb8d,_0x2323e1){const _0xc09ba4=_0x4821de;super(),u(this,_0xc09ba4(0x332),[]),u(this,_0xc09ba4(0x38e),[]),(this[_0xc09ba4(0x2e7)]=_0x42b0db,this['_docSkeletonManagerService']=_0x1c2808,this['_collabCursorController']=_0x96c0dc,this[_0xc09ba4(0x2bc)]=_0x20eb8d,this[_0xc09ba4(0x59d)]=_0x2323e1,this[_0xc09ba4(0x402)]());}[_0x4821de(0x402)](){const _0x5306b9=_0x4821de,_0x3dc180=this[_0x5306b9(0x2e7)][_0x5306b9(0x466)],_0x320050=this[_0x5306b9(0x614)];this[_0x5306b9(0x4b1)](v[_0x5306b9(0x53f)]([this[_0x5306b9(0x3fa)][_0x5306b9(0x2f6)](_0x3dc180),this[_0x5306b9(0x59d)]['currentTheme$']])['pipe'](E[_0x5306b9(0x27e)](([_0x4c540a,_0x45f7c6])=>({'skeleton':_0x320050[_0x5306b9(0x431)](),'cursors':[..._0x4c540a[_0x5306b9(0x5fa)]()][_0x5306b9(0x242)](_0x2e45ee=>({..._0x2e45ee,'color':_0x45f7c6[_0x2e45ee[_0x5306b9(0x494)]]}))})))[_0x5306b9(0x48c)](_0x2c67fd=>{const _0x3544f7=_0x5306b9;if(this[_0x3544f7(0x338)](),_0x2c67fd){const {skeleton:_0x2dfd3b,cursors:_0x272e5f}=_0x2c67fd;this[_0x3544f7(0x22f)](_0x2dfd3b,_0x272e5f);}})),this[_0x5306b9(0x2d5)](),this[_0x5306b9(0x3a1)]();}[_0x4821de(0x22f)](_0x4ac01b,_0x10dd99){const _0x572d69=_0x4821de,{scene:_0x158a32,mainComponent:_0x74825a}=this[_0x572d69(0x2e7)],_0x41c7ad=_0x10dd99[_0x572d69(0x27e)](_0x3938f6=>new ht(_0x3938f6,_0x158a32,_0x4ac01b,_0x74825a));this['_cursorShapes']=_0x41c7ad,this[_0x572d69(0x38e)]=_0x10dd99;}[_0x4821de(0x3a0)](){const _0xef9d92=_0x4821de;this[_0xef9d92(0x338)]();const {scene:_0x22e71b,mainComponent:_0x3d1490}=this['_context'],_0xb6c7c1=this[_0xef9d92(0x614)][_0xef9d92(0x431)](),_0x1590ac=this[_0xef9d92(0x38e)][_0xef9d92(0x27e)](_0x13a4f0=>new ht(_0x13a4f0,_0x22e71b,_0xb6c7c1,_0x3d1490));this[_0xef9d92(0x332)]=_0x1590ac;}[_0x4821de(0x338)](){const _0x3ea038=_0x4821de;this['_cursorShapes'][_0x3ea038(0x3c2)](_0x389a20=>_0x389a20[_0x3ea038(0x442)]()),this[_0x3ea038(0x332)]=[];}[_0x4821de(0x3a1)](){const _0xf8fb59=_0x4821de,_0x4fe18a=[N['SetDocZoomRatioOperation']['id']];this[_0xf8fb59(0x4b1)](this[_0xf8fb59(0x2bc)][_0xf8fb59(0x2df)](_0x1aa26a=>{const _0x1d465b=_0xf8fb59;_0x4fe18a[_0x1d465b(0x3be)](_0x1aa26a['id'])&&_0x1aa26a[_0x1d465b(0x247)][_0x1d465b(0x466)]===this['_context'][_0x1d465b(0x466)]&&this[_0x1d465b(0x3a0)]();}));}[_0x4821de(0x2d5)](){const _0x2d68a8=_0x4821de;this[_0x2d68a8(0x4b1)](a['fromEventSubject'](this[_0x2d68a8(0x2e7)][_0x2d68a8(0x586)]['onTransformChange$'])[_0x2d68a8(0x2a5)](E[_0x2d68a8(0x341)](_0x4df9f7=>_0x4df9f7[_0x2d68a8(0x3b6)]===O['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),E['throttleTime'](0x10))[_0x2d68a8(0x48c)](()=>{const _0x1dac07=_0x2d68a8;this[_0x1dac07(0x3a0)]();}));}};Ve=Ci([ve(0x1,a[_0x4821de(0x579)](se[_0x4821de(0x4a2)])),ve(0x2,a['Inject'](ne)),ve(0x3,a[_0x4821de(0x5a9)]),ve(0x4,a[_0x4821de(0x579)](a['ThemeService']))],Ve);const Ei=0x1,bi=1.5;class Pt extends O['Shape']{constructor(_0x35cfcb,_0x436afb){const _0x2198df=_0x4821de;super(_0x35cfcb,_0x436afb),u(this,'_color'),u(this,_0x2198df(0x508),!0x1),u(this,_0x2198df(0x279)),u(this,_0x2198df(0x377),''),u(this,_0x2198df(0x36f),_0x2198df(0x3c1)),u(this,_0x2198df(0x52a)),(_0x436afb&&this[_0x2198df(0x3cf)](_0x436afb),this[_0x2198df(0x498)][_0x2198df(0x251)](()=>this[_0x2198df(0x3cf)]({'hovered':!0x0})),this[_0x2198df(0x369)]['subscribeEvent'](()=>this[_0x2198df(0x3cf)]({'hovered':!0x1})));}[_0x4821de(0x3cf)](_0x1a5d5f){const _0x43be82=_0x4821de;var _0x5997b8,_0x263b59,_0x2d2cb4,_0x1deb8e,_0xf4dc1c,_0x51a2a6;this[_0x43be82(0x39b)]=(_0x5997b8=_0x1a5d5f[_0x43be82(0x494)])!=null?_0x5997b8:this[_0x43be82(0x39b)],this['_hovered']=(_0x263b59=_0x1a5d5f[_0x43be82(0x36b)])!=null?_0x263b59:this[_0x43be82(0x508)],this[_0x43be82(0x279)]=(_0x2d2cb4=_0x1a5d5f[_0x43be82(0x20e)])!=null?_0x2d2cb4:this[_0x43be82(0x279)],this['_name']=(_0x1deb8e=_0x1a5d5f[_0x43be82(0x32e)])!=null?_0x1deb8e:this[_0x43be82(0x377)],this[_0x43be82(0x36f)]=(_0xf4dc1c=_0x1a5d5f['labelPosition'])!=null?_0xf4dc1c:this[_0x43be82(0x36f)],this[_0x43be82(0x52a)]=(_0x51a2a6=_0x1a5d5f['backgroundColor'])!=null?_0x51a2a6:this[_0x43be82(0x52a)],this[_0x43be82(0x452)]({'width':_0x1a5d5f[_0x43be82(0x430)],'height':_0x1a5d5f[_0x43be82(0x61e)]});}[_0x4821de(0x5a6)](_0x545094){const _0x54f00f=_0x4821de,{row:_0x269185,column:_0x2d0fd1}=_0x545094;if(_0x269185>=this[_0x54f00f(0x279)][_0x54f00f(0x592)]&&_0x269185<=this[_0x54f00f(0x279)][_0x54f00f(0x293)]&&_0x2d0fd1>=this['_range']['startColumn']&&_0x2d0fd1<=this[_0x54f00f(0x279)][_0x54f00f(0x53e)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x54f00f(0x3cf)]({'hovered':!0x1});}[_0x4821de(0x514)](_0x529f65){return!0x1;}[_0x4821de(0x228)](_0x269f6a){const _0x141e6f=_0x4821de;O['Rect'][_0x141e6f(0x40e)](_0x269f6a,{'width':this[_0x141e6f(0x430)],'height':this[_0x141e6f(0x61e)],'strokeWidth':bi,'stroke':this[_0x141e6f(0x39b)],'evented':!0x1,'fill':this[_0x141e6f(0x52a)]}),this['_hovered']&&(_0x269f6a[_0x141e6f(0x50c)](),_0x269f6a[_0x141e6f(0x4b6)](0x1,0x0,0x0,0x1,this['width'],this[_0x141e6f(0x36f)]===_0x141e6f(0x2a6)?0x0:-de),Oe['drawWith'](_0x269f6a,{'text':this[_0x141e6f(0x377)],'color':this[_0x141e6f(0x39b)]}),_0x269f6a[_0x141e6f(0x4e2)]());}}var Ti=Object['defineProperty'],Ri=Object[_0x4821de(0x4f8)],Oi=(_0x31a6e9,_0x1fe470,_0x13412f,_0x3f2694)=>{const _0x94d6f5=_0x4821de;for(var _0xd670a1=_0x3f2694>0x1?void 0x0:_0x3f2694?Ri(_0x1fe470,_0x13412f):_0x1fe470,_0x207524=_0x31a6e9[_0x94d6f5(0x1fe)]-0x1,_0x654c43;_0x207524>=0x0;_0x207524--)(_0x654c43=_0x31a6e9[_0x207524])&&(_0xd670a1=(_0x3f2694?_0x654c43(_0x1fe470,_0x13412f,_0xd670a1):_0x654c43(_0xd670a1))||_0xd670a1);return _0x3f2694&&_0xd670a1&&Ti(_0x1fe470,_0x13412f,_0xd670a1),_0xd670a1;},$e=(_0x117d47,_0x264d85)=>(_0x5992e5,_0xe6d7af)=>_0x264d85(_0x5992e5,_0xe6d7af,_0x117d47);const Di=0x1389;let We=class extends a[_0x4821de(0x56f)]{constructor(_0x5cb822,_0x350b50,_0xc429c8,_0x37bd0f){const _0x4d94ed=_0x4821de;super(),u(this,'_cursors',new Set()),u(this,_0x4d94ed(0x447),null),(this['_context']=_0x5cb822,this[_0x4d94ed(0x424)]=_0x350b50,this[_0x4d94ed(0x3fa)]=_0xc429c8,this['_themeService']=_0x37bd0f,this[_0x4d94ed(0x402)]());}[_0x4821de(0x402)](){const _0x56b01a=_0x4821de;this[_0x56b01a(0x424)]['currentSkeleton$'][_0x56b01a(0x2a5)](E['takeUntil'](this['dispose$']),E[_0x56b01a(0x365)](_0xc0474=>{const _0x5efb95=_0x56b01a;if(_0xc0474){const _0x129c42=_0xc0474[_0x5efb95(0x585)];return v[_0x5efb95(0x53f)](this[_0x5efb95(0x3fa)]['getCollabCursors$'](this[_0x5efb95(0x2e7)][_0x5efb95(0x466)]),this[_0x5efb95(0x59d)][_0x5efb95(0x4fc)])[_0x5efb95(0x2a5)](E['map'](([_0x5dd723,_0x484d0b])=>{const _0x5e549d=new Map();return _0x5dd723['forEach']((_0x252839,_0x5c6139)=>{const _0x268bbe=_0x370a;if(_0x252839[_0x268bbe(0x5cc)]===_0x129c42){const _0x5e894a={..._0x252839};_0x5e894a[_0x268bbe(0x494)]=_0x484d0b[_0x252839['color']],_0x5e549d[_0x268bbe(0x4d0)](_0x5c6139,_0x5e894a);}}),{'skeleton':_0xc0474,'cursors':_0x5e549d};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x56b01a(0x48c)](({skeleton:_0x17e760,cursors:_0x9428c})=>{const _0x1e3036=_0x56b01a;this['_removeCollabCursors'](),_0x17e760&&this[_0x1e3036(0x22f)](_0x17e760,_0x9428c);}),this[_0x56b01a(0x424)][_0x56b01a(0x4be)]['subscribe'](_0x5ce71d=>{const _0x177bfe=_0x56b01a;if(_0x5ce71d==null)return;const {skeleton:_0x1d6b29}=_0x5ce71d,{scene:_0x1f9246}=this[_0x177bfe(0x2e7)];_0x1f9246[_0x177bfe(0x256)]['subscribeEvent'](a[_0x177bfe(0x567)](_0x2998b5=>{const _0x58bd35=_0x177bfe;var _0x5e2ad3,_0x25c572;const {offsetX:_0x5b4bad,offsetY:_0x33d482}=_0x2998b5,{x:_0x323c6b,y:_0x3fa1ab}=_0x1f9246[_0x58bd35(0x39f)](O['Vector2']['FromArray']([_0x5b4bad,_0x33d482])),{scaleX:_0x4dfae7,scaleY:_0x5c24b4}=_0x1f9246[_0x58bd35(0x214)](),_0x1729f0=_0x1f9246[_0x58bd35(0x504)](te['VIEWPORT_KEY']['VIEW_MAIN']),_0x25984c=_0x1f9246[_0x58bd35(0x4ec)](O['Vector2']['FromArray']([_0x323c6b,_0x3fa1ab]),_0x1729f0),_0x3a86ac=_0x1d6b29[_0x58bd35(0x5c8)](_0x5b4bad,_0x33d482,_0x4dfae7,_0x5c24b4,_0x25984c);((_0x5e2ad3=this[_0x58bd35(0x447)])==null?void 0x0:_0x5e2ad3[_0x58bd35(0x3b7)])===_0x3a86ac[_0x58bd35(0x3b7)]&&((_0x25c572=this[_0x58bd35(0x447)])==null?void 0x0:_0x25c572[_0x58bd35(0x2e0)])===_0x3a86ac[_0x58bd35(0x2e0)]||this[_0x58bd35(0x38e)][_0x58bd35(0x3c2)](_0x1c51f8=>{const _0x185111=_0x58bd35;_0x1c51f8[_0x185111(0x5a6)](_0x3a86ac);});},0x64));});}[_0x4821de(0x22f)](_0x3cac50,_0x3bd1a8){const _0x36e745=_0x4821de;var _0x728e54;const _0x3a256f=(_0x728e54=this[_0x36e745(0x424)][_0x36e745(0x230)]())==null?void 0x0:_0x728e54[_0x36e745(0x412)];if(!_0x3a256f)return;const _0x3a5224=this['_getSheetObject']();if(!_0x3a5224)return;this['_cursors'][_0x36e745(0x3c2)](_0x308027=>{const _0x144261=_0x36e745;_0x308027[_0x144261(0x580)]();});const {scene:_0x2ba0cf}=_0x3a5224,_0x5856b3=yi(Array[_0x36e745(0x2a4)](_0x3bd1a8[_0x36e745(0x5fa)]()))[_0x36e745(0x27e)](_0x2e5aa4=>{const _0x2fe1a0=_0x36e745,{color:_0x201cc5,range:_0x25ba39,name:_0x23cf5e,selection:_0x1cf96d,sheetID:_0xd06421}=_0x2e5aa4,{startColumn:_0x2b5767,startRow:_0x56e397,endColumn:_0x1240a5,endRow:_0x424b04}=_0x25ba39,_0x20c239=te['getCoordByCell'](_0x56e397,_0x2b5767,_0x2ba0cf,_0x3a256f),_0x6bfee4=te['getCoordByCell'](_0x424b04,_0x1240a5,_0x2ba0cf,_0x3a256f),{columnHeaderHeightAndMarginTop:_0x41d3ae}=_0x3a256f,{startX:_0x5d097b,startY:_0x4d6978}=_0x20c239,{endX:_0x1ffb7c,endY:_0x247450}=_0x6bfee4,_0x590ff5=_0x1ffb7c-_0x5d097b,_0x2d10bd=_0x247450-_0x4d6978,_0x115d4c={'labelPosition':_0x4d6978-_0x41d3ae>=de?_0x2fe1a0(0x3c1):_0x2fe1a0(0x2a6),'sheetID':_0xd06421,'range':_0x25ba39,'color':_0x201cc5,'name':_0x23cf5e,'selection':_0x1cf96d,'left':_0x5d097b,'top':_0x4d6978,'width':_0x590ff5,'height':_0x2d10bd,'evented':!0x1,'zIndex':Di};return new Pt(_0x23cf5e,_0x115d4c);});_0x2ba0cf['addObjects'](_0x5856b3,Ei),this[_0x36e745(0x38e)]=new Set(_0x5856b3);}[_0x4821de(0x338)](){const _0x4db745=_0x4821de;var _0x141d85;(_0x141d85=this[_0x4db745(0x38e)])==null||_0x141d85[_0x4db745(0x3c2)](_0x557d58=>_0x557d58[_0x4db745(0x442)]());}[_0x4821de(0x35c)](){const _0x48962b=_0x4821de;return te[_0x48962b(0x389)](this[_0x48962b(0x2e7)]['unit'],this[_0x48962b(0x2e7)]);}};We=Oi([$e(0x1,a['Inject'](te[_0x4821de(0x372)])),$e(0x2,a[_0x4821de(0x579)](ne)),$e(0x3,a[_0x4821de(0x579)](a[_0x4821de(0x202)]))],We);function _0x5af9(){const _0x3e6996=['_getAnchorBounding','subscribe','_clearUndo','IContextService','jiqing500','DisposableCollection','unit-cache-','message$','_retryConnectingTimer','color','17256PpNWpS','telemetry\x20info\x20is\x20not\x20initialized','[FetchMissState]','onPointerEnter$','RETRY_CONNECTING_MAX_COUNT','_removeRoom','_setupSubUnitSync','ILogService','fillRule','status','responseType','awaiting','_onConnectionOpen','DocSkeletonManagerService','[PendingState]:\x20received\x20rejection.','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','COMPRESS_MUTATION_APPLY','_sendHeartbeatTimer','call','EffectRefRangId','handleInsertCol','BASE64','[OfflineState]:\x20received\x20changeset.','_throwTelemetryCollaborationNewChangeset','_lockTransition','change$','verdancy600','[CollaborationSessionService]','disposeWithMe','onRemoteChangeset','AUTHZ_URL_KEY','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_members','transform','_registerDependencies','split','_onUserLeave','catch','PSEUDO_FETCH_MISSING_RESULT','cursorInfo$','YUUMI_RATE_OVER_LIMIT','currentSkeleton$','_event$','UNRECOGNIZED','/universer-api/snapshot','setUndoRedoMutationParamsCache','authzUrl','off-line-single','commentUpdate$','LocalCacheService','InsertRowCommandId','defs','_getCtorByUniverType','CONNECTOR_DATA_TOO_LARGE','open$','XHRHTTPImplementation','RefRangeService','originalMeta','IDLE','set','_socketReady','show','isArray','x-univer-host','toggleOnline','reduce','entries','_initUnitPermissionChange','transformChangesets','\x20in\x20_schedule.','url(#off-line-single_clip0_910_343)','socket\x20close','objectActions','onMissedChangesetFetched','_acknowledgedAwaitingChangeset','_document','LICENSE_MAX_UNITS_EXCEEDED','restore','getMemberID','INTERNAL_ERROR','lineTo','_status$','RevisionService','_initRequestHeader','evenodd','listRoles','_cachedData','getVpScrollXYInfoByPosToVp','create','find','unitID','_unitID','ColorKit','distinctUntilChanged','_socket','state','downloadEndpointUrl','SEND_CHANGESET_TIMEOUT','urlChange$','getOwnPropertyDescriptor','getCurrentUnitForType','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','RemoveColCommandId','currentTheme$','LICENSE_DISTRO_REJECTED','LIVESHARE_REQUEST_HOST','submit\x20changeset\x20error!','round','_onMessage','_snapshotService','_compressMutationService','getViewport','_getLoginPath','_commentService','getSheetBlock','_hovered','_scheduleHeartbeat','_scheduleTimestamp','_queuedRemoteChangesets','save','_replaceFileID','getDocRanges','permissionRejEvent','_substituteRedoStack','close$','fillText','getFocusedUnit','triggerDblclick','update','LIVESHARE_OPERATION','updateCollaborator','_unitOnClients','_configService','defineProperty','getUnhiddenWorksheets','_exhaustRemoteChangesetQueue','setActiveRange','_onConflict','mapDocumentTypeToUniverType','USERS_LEAVE','_id','_createHandler','shareReplay','/new_changes','RemoveRowCommandId','SUCCUSS','collabStatus.fetchMiss','getTypeOfUnitDisposed$','5MbmRHl','_backgroundColor','_candidateSocket','random','current','[DataLoaderController]','/object/','20834CpVLEv','_updateStatus','_cursorInfo$','collaboration.single-unit.warning','parseProtocolChangeset','liveShareOperation','_updateLocalCache','setCurrentUser','HTTPService','connectInjector','handleIRemoveRow','textRanges','/rev/','LocaleService','endColumn','combineLatest','toString','collabStatus.syncing','CHANGESET_REVISION_CONFILICT','APPLY_PERMISSION_DENIED','UnitSnapshot','enableOfflineEditing','with','currentColor','all','[OfflineState]:\x20received\x20acknowledgement.','transformRemoteChangeset','[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.','IPermissionService','routeKey','_colorIndex','unit','registerComponent','visibilitychange','LOGIN_URL_KEY','_shouldReportTelemetry','ImageUploadStatusType','Optional','SetSelectionsOperation','[PendingState]:\x20received\x20acknowledgement.','result','sheets','_revisionService','_isPermissionRej','workbook','isTransformChangesetsSuccess','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','useRef','awaitingChangeset','title','_getSendChangesetTimeout','SheetCollaborationEntity','setParam','EmptyMutation','members','debounce','incrementRevOfUnit','JOIN','Error','complete','beginPath','get','next','RxDisposable','sendChangesetTimeout','uni.network.url-service','loadOfflineData','translate(.97)','&assign=','COLORS','toggleOffline','_transformService','IHTTPImplementation','Inject','createCollaborator','Tools','image/bmp','YUUMI_URL_COL_OUT_OF_RANGE','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','makeDirty','_type','_showConflictNotification','_getCurrentRevision','@univerjs/docs','sheetId','engine','readAsDataURL','_startCollaboration','_assignedColors','onSyncEditingCollabCursor','icon','_initStatusComponent','handleMoveRange','collabWebSocketUrl','editingUnit','_pendingMutations','pushState','startRow','univerjs-icon\x20univerjs-icon-','_socketMessageSubscription','JSONX','SNAPSHOT_URL_KEY','defIds','Tooltip','_localStorageService','on-line-single','[CollaborationSessionService]:\x20socket\x20error','[SyncedState]:\x20received\x20acknowledgement.','_themeService','getRandomValues','_collaborationController','LocalUndoRedoService','b64DecodeUnicode','_unlockTransition','permission.title','stopTime','getUnitOnRev','onMouseMove','_decreaseWaiting','0\x200\x2017\x2016','ICommandService','conflict.title','_initModules','parseChangesetToProtocol','take','DEFAULT_FILE_NAME','handleDeleteRangeMoveUp','...','_sendHeartbeat','_getSignURL','joinRsp','useDependency','initWorkbookPermissionChange','_transformRemoteChangesetByIMECache','removeMember','[OfflineState]:\x20received\x20rejection.','_handleHover','session.will-retry','textEncoder','_collaborationTimeoutTimer','_hideTimer','CompressMutationService','target','pending','size','PERMISSION_DENIED','onSendChangeset','collabStatus.notCollab','/block/','state$','_entityInit$','getCellPositionByOffset','_docSkeleton','onStateChange','_docTransformSelectionsService','sheetID','children','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_beforeCloseService','LIVESHARE_NEW_HOST','JOINING','removeParam','createInstance','image/png','_HTTPService','getRenderById','fetch_missing','unshift','UNKNOWN_CMD','editing\x20status\x20changed\x20to','_clearOtherTimers','getCollabEntity$','NO_OTHER_CLIENTS_EDITING','colorChannel1','path','ranges','_commentUpdate$','userID','save\x20fail\x20reason\x20is\x20','_stopTelemetryCollaborationNewChangeset','_singleActiveUnitService','batchAllowed','_colorAssignService','transformStack\x20failed!','getUnit','not_collab','univer-offline','SNAPSHOT_SERVER_URL_KEY','encodeURIComponent','error','&source=','UNIVER_DOC','APPLY_NON_SEQUENTIAL_REVISION','_sendingTimer','useCallback','parse','loginUrlKey','memberID','href','_clearRedo','collaboration-client.offline-data-not-saved','values','SheetPermissionInitController','_initMergeInterceptor','LEAVE','getParam','SnapshotServerOverHTTPService','_drawRectRange','_saveTaskMap','disposeUnit','slice','_handler','closePath','_startSheetCollabCursor','loadDoc','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','NEW_CHANGESETS','fetchMiss','WorkbookEditablePermission','_transformPreviousActiveRange','/universer-api/file/{fileID}/sign-url','HEARTBEAT_TIMEOUT_KEY','_createSocket','transformIMECache','BehaviorSubject','collaboration-session-retry','deepClone','_docSkeletonManagerService','UNIVER_PROJECT','_urlService','clipPath','indexOf','@univerjs/rpc','pauseCollaboration','_startTelemetryCollaborationNewChangeset','updatePermissionPoint','_http','height','/resources','getCurrentRevOfUnit','location','prototype','object','has','getUnitId','tag','transformSelections','_getUploadFileURL','patch','_disabled','[CollaborationUndoRedoService]','length','LICENSE_EXPORT_SIZE_EXCEEDED','IMessageService','add','ThemeService','_sessionStatus$','leaveEvent','_socketService','rng','_initStatusListener','_collabSessionService','transformMutationsWithChangeset','bind','7bTrYmJ','collab-text-range-','\x0aAfter:\x20','range','_transformUndoRedoStack','min','image/jpg','resourceIDs','_notificationService','getAncestorScale','CollaborationEvent','deleteCollaborator','M0\x200H16V16H0z','collab-rect-range-','registerHTTPInterceptor','selection','COMMENT_UPDATE','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','PERMISSION_REJ','_getDownloadEndpointURL','duration','getActiveSheet','objects','0\x200\x2016\x2016','_hover','DeleteRangeMoveLeftCommandId','transformMutation','InsertSheetMutation','DeleteRangeMoveUpCommandId','_draw','synced','setItem','DocIMEInputManagerService','_sessions','_onLocalMutation','UniverInstanceType','_updateCollabCursors','getCurrent','_getSnapshotAPIPrefix','m1Prime','debug','/allowed','_submitChangeset','key','_onUserJoin','moveTo','collaborators','APPLY_DUPLICATED','createIdentifier','ERROR_IMAGE_TYPE','[PendingState]:\x20unhandled\x20univer\x20type:\x20','LOCAL_CACHE_INTERVAL','close','getLatestCsReqIdBySid','_registerRenderDependencies','flatMap','_updateState','_logService','_onRemoteACK','csAckEvent','params','ThresholdInterceptorFactory','off-line-single_clip0_910_343','IRenderManagerService','_executeRemoteChangeset','_roomMembers','[CollaborationSession]','@univerjs-pro/collaboration','generateRandomId','handleInsertRangeMoveRight','subscribeEvent','_onOffline','_imageSourceCache','Univer','ITelemetryService','onPointerMove$','_state','IUniverInstanceService','session','clear','push','IUIPartsService','MSG_FOR_ERROR','HEARTBEAT_INTERVAL','UNIVER_COLLABORATION_CLIENT_PLUGIN','getImage','history','LIVESHARE_FETCH_OPERATIONS','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','_undoRedoService','collabSubmitChangesetUrl','OFFLINE','/fetchmissing?from=','actions','onCommentUpdate','YUUMI_UNABLE_LOAD_URL','CollaborationEntity','assign','_drawAnchor','IImageIoService','_userManagerService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','COLLAB_WEB_SOCKET_URL','number','Workbook','serializeRangeWithSheet','_syncEditingCollabCursor','INGEST','requireSession','_anchor','_range','createSocket','CollaborationSession','RECV','closeSession','map','\x0aCurrent:\x20','_changesetSessionId','LIVESHARE_TERMINATE','joinEvent','useObservable','onReady','docStateChange$','univer-online-status-icon','_tryEnsureSocket','commentUpdateEvent','USERS_ENTER','UPDATE_PERMISSION_OBJ','_localeService','delete','_roomMembers$','changesets','init','_onRefRangeChange','_entities','IBeforeCloseService','endRow','_remoteChangesetQueue','ENSURE_SNAPSHOT_EXECUTION','getAttachHeader','doc.mutation.rich-text-editing','UNDEFINED','_startDocCollabCursor','COLLAB_SUBMIT_CHANGESET_URL_KEY','ILocalStorageService','_getAPIPrefix','onTransformRemoteChangesetByIMECache','DesktopCollaborationStatusDisplayController','event$','objectType','_httpService','Subject','_clearLocalCache','from','pipe','bottom','SheetsSelectionsService','sessionStatus$','_instanceService','onlineStatusIcon','eventID','_injector','[SyncedState]:\x20received\x20rejection.','_memberService','COMPLETION_FINISHED','UNKNOWN_CODE','_onRecvEvent','_getUndoStack','ERROR_IMAGE','exhaustSavingTask','updateOfflineData','_docSyncEditingCollabCursorService','text','getUnitType','/-/object/-/batch_allowed','_change$','TOO_MANY_REQUESTS','_commandService','_listenToOfflineEvent','collabStatus.synced','updatePermissionObjEvent','CONFLICT','font','mutations','_send','getOwnPropertySymbols','_sheetTransformSelectionsService','univer-pro.collaboration-client.single-active-unit-service','ITransformService','DocCollaborationEntity','/collaborator','CommentService','UnitEmbedded','getUnitStatus$','Injector','getConfig','getColor','APPLY_REVISION_CONFILICT','focused$','_removeClearOtherTimer','OnLineSingle','reqId','_initResize','append','getOffsetConfig','apply','_updateSubUnitFromURLParams','getTypeOfUnitAdded$','MoveRangeCommandId','gold400','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','blue400','onCommandExecuted','row','ERROR_EXCEED_SIZE','514887EPiqcA','_clearTimeoutTimer','RETRY_CONNECTING_MAX_COUNT_KEY','Error\x20on\x20receiving\x20event','UNAUTHENTICATED','_context','unknown','black','_saveCache','objectID','collaMsg','10rryCJT','putCollaborators','react','handleDeleteRangeMoveLeft','isTransformMutationsWithChangesetSuccess','_uiPartsService','updateCursorEvent','_collaborationPaused','univer-online','getCollabCursors$','_onCursorUpdate','none','NOT_COLLAB','startTime','forwardRef','_socket$','getRoom','_transformIMECache','POST','file','_getScale','getSheetBySheetId','Unknown\x20user','runRefRangeMutations','_onJoinRoomEvent','replace','session.connection-failed','HEARTBEAT_TIMEOUT','m2Prime','_replayCachedMutations','requestParams','UPDATE_CURSOR','mapTo','createElement','_createInitialState','_handleEvent','_transformUndoredo','getWorkbookSelections','_toggleOffline','_getRedoStack','contains','AWAITING_WITH_PENDING','setConfig','SYNCED','_onConnectionFailed','_handleHeartbeatEvent','url(#on-line-single_clip0_910_349)','_eventUnsubscribe','unsubscribe','_toggleOnline','collabCursorState$','_collabCursorState$','_awaitingChangeset','csRejEvent','/role','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','HELLO','action','image/jpeg','SUBMIT_CHANGESET','_config','CHANGESET_ACK','newValue','_ws','subUnitId','name','_localCacheService','CollaborationController','_substituteUndoStack','_cursorShapes','attrs','RegularPolygon','fetchThroughInterceptors','CollaborationStatus','findNodePositionByCharIndex','_removeCollabCursors','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','Warning','isTransformMutationsWithChangesetFailure','online','ws://127.0.0.1:8000/universer-api/comb/connect','SetTextSelectionsOperation','getItem','getUndoRedoMutationParamsCache','filter','getCurrentSelections','connection\x20error','InsertColCommandId','status$','_updateLocalCursor','some','HEARTBEAT','_telemetryService','roles','MUTATION','_checkMissing','arc','UNIVER_SLIDE','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','addObject','/object','concatMap','xlink:href','string','FAIL','sessionStatus','Disposable','cmd','getInterceptPoints','addEventListener','error$','_getSheetObject','430akDAUY','SNAPSHOT_INVALID_SNAPSHOT','toDisposable','conflict','code','c1Prime','trim','permission.content','switchMap','ImageIoService','mergeOverrideWithDependencies','_permissionService','onPointerLeave$','div','hovered','CommandType','listCollaborators','/universer-api/comb','_labelPosition','getSheetId','merge','SheetSkeletonManagerService','_transformSelections','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','clearTimeout','infoRsp','_name','_drawTextRange','then','syncEditingCollabCursor','_handleLeaveEvent','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','HttpExport','SetWorksheetActivateCommand','startsWith','appendMutation','_scheduleClearOtherTimer','4078250MdDWat','searchParams','failed\x20to\x20apply\x20missed\x20changesets!','NodePositionConvertToCursor','storage','UNIVER_UNKNOWN','_onFetchMissResult','getSheetObject','signUrlServerUrl','fetchMissingChangesets','fromCollab','onRemoteRej','_cursors','saveSnapshot','HttpImport','ALREADY_EXISTS','_tryReconnect','_online','[UniverCollaborationClientPlugin]','replaceState','_renderManagerService','_unitStatus','socketService','onStarting','disableLocalCache','_color','SHOULD_CLOSE_CONN','_textBubble','debounceTime','getRelativeToViewportCoord','_refreshCollabCursors','_initCommandExecutedListener','HEADER_MENU','toRgbString','randomUUID','_ensureSubject','NOT_FOUND','post','concat','revision','enableSingleActiveInstanceLock','_getMergeRange','_initEventListeners','hidden','univer-online-status','OffLineSingle','svg','enableLocalCache','selections','_docStateChangeManagerService','capture','setTimeout','type','column','now','_createInitialStateImpl','takeUntil','_applyRemoteChangeset','onTransformIME','updateMember','includes','AWAITING','fillStyle','top','forEach','YUUMI_SUBSCRIPTION_NOT_FOUND','IUndoRedoService','roomMembers$','pluginName','fromEvent','INVALID_ARGUMENT','_collaborationSessionService','_onCombEvent','_messageService','idSuffix','getResourcesRequest','1em','setShapeProps','#fff','onlineStatusTitle','sequenceExecute','measureText','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','CollaborationSessionService','1790433LaMEBX','_fetchMissChangesets','FETCH_MISSING','rgba(255,\x20255,\x20255,\x200.01)','CHANGESET_REJ','put','DocStateChangeManagerService','@univerjs/network','resend','hasOwnProperty','@univerjs/engine-formula','rev','socket$','getImageSourceCache','760520vwxiqw','_disableEditing','roomMembers','reconnect','setInterval','isPermissionRej','_onRemoteRejected','onMissingChangesets','dispose$','interceptor','SnapshotService','popstate','_docTransformIMECacheService','purple300','DocSelectionManagerService','_anchorDot','liveShareNewHost','newCsEvent','_initCloseConn','_onCursorDelete','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_transformStack','_collabCursorController','OTHER_CLIENTS_EDITING','_scheduleSaving','registerRefRange','assignAColorForMemberID','?size=','@univerjs/engine-render','image/gif','_init','hide','Module','onlyLocal','_scene','conflict.content','getMergeData','_joinRoom','_render','getValue','_getAPIPrefixPath','_waitCount','drawWith','Rect','@univerjs/sheets-ui','_selfUnitIDs','skeleton','uploadFileServerUrl','url','getCollabEntity','isActive','_scheduleCollaborationTimeoutTimer','_shapes','fetching\x20missing\x20changesets\x20from\x20','localeService','_changesetReqId','registerRenderModule','?url=','_session','Plugin','FileId','clearInterval','_heartbeatTimer','extend','_sheetSkeletonManagerService','_clearScheduledTask','univer-pro.collaboration-client-socket-service','visibilityState','_transitionLocked','override','_loadSheet','collab-text-anchor-','getCurrentUser','body','_schedule','send','width','getSkeleton','socket\x20open.','getDeserializedSheetBlock','data','AuthzIoHttpService','DataLoaderController','_loadDoc','touchDependencies','SessionStatus','asObservable','[CollaborationState]:\x20apply\x20error!','MessageType','copyFileMeta','on-line-single_clip0_910_349','RichTextEditingMutation','_timeoutTimer','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','dispose','toLowerCase','collaboration.closeRoom','isInternalEditorID','_telemetryInfo','_lastPointer','_snapshotServerService','subunit','ISnapshotServerService','SheetCollabCursorShape','encode','_incrementRevisionNumber','onRemoteAck','stringify','PENDING','ONLINE','transformByState','UNIVER_SHEET','collaboration_new_changeset','substring','onTransformSelections','/-/object/list','getRangePointData','handleIRemoveCol','UniverCollaborationClientPlugin','CollaborationStatusDisplay','awaiting_with_pending','@univerjs/drawing','setAlpha','1366980owVOAu','TEXT_RANGE_LAYER_INDEX','executeCommand','_cursor','_refRangeService','_clearHeartbeatTimer','snapshotServerUrl','unitId','isTransformMutationFailure','_setupBeforeClosingHandler','displayName','SEND_CHANGESET_TIMEOUT_KEY','shouldCloseConn','symbol','/unit/','_state$','_retryCount','replaceTextRanges','_getSaveTimeout','fill','sid','ACTIVE_UNIT_EVENT_CHANNEL','ImageSourceType','max','SNAPSHOT_HAS_BEEN_REMOVED','offline','_rescheduleHeartbeat','isValidRectRange','onRendered','cursorInfo','LICENSE_IMPORT_SIZE_EXCEEDED','[CollaborationEntity]','UserManagerService','_undoStacks','UniverCollaborationPlugin','IConfigService','APPLY_REJECT','baseRev','CollaborationSocketService','_updateURLWithCurrentState','_univerInstanceService','snapshot','getMember','reject'];_0x5af9=function(){return _0x3e6996;};return _0x5af9();}function yi(_0x4c147f){const _0x91c431=_0x4821de,_0x3a5ab3=new Map();return _0x4c147f['forEach'](_0xcf7f9f=>{const _0x54807c=_0x370a;if(_0x3a5ab3[_0x54807c(0x1f6)](_0xcf7f9f[_0x54807c(0x21a)])){const _0xfe54e3=_0x3a5ab3[_0x54807c(0x56d)](_0xcf7f9f[_0x54807c(0x21a)]);_0xfe54e3[_0x54807c(0x32e)]+=',\x20'+_0xcf7f9f[_0x54807c(0x32e)];}else _0x3a5ab3[_0x54807c(0x4d0)](_0xcf7f9f[_0x54807c(0x21a)],_0xcf7f9f);}),Array['from'](_0x3a5ab3[_0x91c431(0x5fa)]());}var M=function(){const _0x5bb206=_0x4821de;return M=Object[_0x5bb206(0x26c)]||function(_0x42ec68){const _0x1411d1=_0x5bb206;for(var _0x41c7b7,_0x98168c=0x1,_0x3ce8ed=arguments[_0x1411d1(0x1fe)];_0x98168c<_0x3ce8ed;_0x98168c++){_0x41c7b7=arguments[_0x98168c];for(var _0x18f321 in _0x41c7b7)Object['prototype'][_0x1411d1(0x3df)]['call'](_0x41c7b7,_0x18f321)&&(_0x42ec68[_0x18f321]=_0x41c7b7[_0x18f321]);}return _0x42ec68;},M[_0x5bb206(0x2d8)](this,arguments);},Ui=function(_0x33ae6a,_0x29e25a){const _0x486ddf=_0x4821de;var _0x184621={};for(var _0x1cd7a2 in _0x33ae6a)Object[_0x486ddf(0x1f4)][_0x486ddf(0x3df)][_0x486ddf(0x4a7)](_0x33ae6a,_0x1cd7a2)&&_0x29e25a[_0x486ddf(0x618)](_0x1cd7a2)<0x0&&(_0x184621[_0x1cd7a2]=_0x33ae6a[_0x1cd7a2]);if(_0x33ae6a!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x161f9c=0x0,_0x1cd7a2=Object[_0x486ddf(0x2c4)](_0x33ae6a);_0x161f9c<_0x1cd7a2['length'];_0x161f9c++)_0x29e25a['indexOf'](_0x1cd7a2[_0x161f9c])<0x0&&Object[_0x486ddf(0x1f4)]['propertyIsEnumerable'][_0x486ddf(0x4a7)](_0x33ae6a,_0x1cd7a2[_0x161f9c])&&(_0x184621[_0x1cd7a2[_0x161f9c]]=_0x33ae6a[_0x1cd7a2[_0x161f9c]]);}return _0x184621;},Ze=P['forwardRef'](function(_0x2b0ad5,_0x97efc2){const _0x513b1e=_0x4821de;var _0x5e161e=_0x2b0ad5[_0x513b1e(0x58b)],_0x326b79=_0x2b0ad5['id'],_0x42cf4a=_0x2b0ad5['className'],_0x4ad397=_0x2b0ad5[_0x513b1e(0x423)],_0x527faa=Ui(_0x2b0ad5,[_0x513b1e(0x58b),'id','className',_0x513b1e(0x423)]),_0x2173c9=_0x513b1e(0x593)['concat'](_0x326b79,'\x20')[_0x513b1e(0x3a8)](_0x42cf4a||'')[_0x513b1e(0x363)](),_0x28b862=P[_0x513b1e(0x55f)]('_'[_0x513b1e(0x3a8)](Ni()));return wt(_0x5e161e,''[_0x513b1e(0x3a8)](_0x326b79),{'defIds':_0x5e161e[_0x513b1e(0x597)],'idSuffix':_0x28b862[_0x513b1e(0x52d)]},M({'ref':_0x97efc2,'className':_0x2173c9},_0x527faa),_0x4ad397);});function wt(_0x513f1c,_0x7c89d7,_0x52b6da,_0x7e589a,_0x1502d3){const _0x2d4b65=_0x4821de;return P['createElement'](_0x513f1c[_0x2d4b65(0x1f8)],M(M({'key':_0x7c89d7},Pi(_0x513f1c,_0x52b6da,_0x1502d3)),_0x7e589a),(wi(_0x513f1c,_0x52b6da)[_0x2d4b65(0x5cd)]||[])[_0x2d4b65(0x27e)](function(_0x45a20e,_0x69dc67){const _0x4f42d9=_0x2d4b65;return wt(_0x45a20e,''[_0x4f42d9(0x3a8)](_0x7c89d7,'-')['concat'](_0x513f1c[_0x4f42d9(0x1f8)],'-')['concat'](_0x69dc67),_0x52b6da,void 0x0,_0x1502d3);}));}function Pi(_0x1cd6dd,_0x296f27,_0x1838f6){const _0x49364d=_0x4821de;var _0x1594a2=M({},_0x1cd6dd[_0x49364d(0x333)]);_0x1838f6!=null&&_0x1838f6[_0x49364d(0x5de)]&&_0x1594a2[_0x49364d(0x472)]===_0x49364d(0x5de)&&(_0x1594a2['fill']=_0x1838f6['colorChannel1']);var _0x25a8a3=_0x296f27['defIds'];return!_0x25a8a3||_0x25a8a3['length']===0x0||(_0x1cd6dd[_0x49364d(0x1f8)]==='use'&&_0x1594a2[_0x49364d(0x353)]&&(_0x1594a2['xlink:href']=_0x1594a2['xlink:href']+_0x296f27[_0x49364d(0x3cc)]),Object[_0x49364d(0x4d7)](_0x1594a2)[_0x49364d(0x3c2)](function(_0x521ffc){const _0x3115f3=_0x49364d;var _0x3ba4d2=_0x521ffc[0x0],_0x2f4bb7=_0x521ffc[0x1];typeof _0x2f4bb7==_0x3115f3(0x354)&&(_0x1594a2[_0x3ba4d2]=_0x2f4bb7[_0x3115f3(0x306)](/url\(#(.*)\)/,'url(#$1'[_0x3115f3(0x3a8)](_0x296f27[_0x3115f3(0x3cc)],')')));})),_0x1594a2;}function wi(_0xf7022f,_0x246b89){const _0xe2795a=_0x4821de;var _0x315928,_0x193a7b=_0x246b89[_0xe2795a(0x597)];return!_0x193a7b||_0x193a7b[_0xe2795a(0x1fe)]===0x0?_0xf7022f:_0xf7022f[_0xe2795a(0x1f8)]==='defs'&&(!((_0x315928=_0xf7022f['children'])===null||_0x315928===void 0x0)&&_0x315928[_0xe2795a(0x1fe)])?M(M({},_0xf7022f),{'children':_0xf7022f[_0xe2795a(0x5cd)][_0xe2795a(0x27e)](function(_0x4781f2){const _0x42774a=_0xe2795a;return typeof _0x4781f2[_0x42774a(0x333)]['id']==_0x42774a(0x354)&&_0x193a7b&&_0x193a7b['indexOf'](_0x4781f2[_0x42774a(0x333)]['id'])>-0x1?M(M({},_0x4781f2),{'attrs':M(M({},_0x4781f2[_0x42774a(0x333)]),{'id':_0x4781f2[_0x42774a(0x333)]['id']+_0x246b89[_0x42774a(0x3cc)]})}):_0x4781f2;})}):_0xf7022f;}function Ni(){const _0xe9caf5=_0x4821de;return Math[_0xe9caf5(0x52c)]()[_0xe9caf5(0x540)](0x24)[_0xe9caf5(0x455)](0x2,0x8);}Ze[_0x4821de(0x469)]='UniverIcon';var Mi={'tag':_0x4821de(0x3b0),'attrs':{'fill':_0x4821de(0x2f8),'viewBox':_0x4821de(0x222),'width':_0x4821de(0x3ce),'height':_0x4821de(0x3ce)},'children':[{'tag':'g','attrs':{'clipPath':_0x4821de(0x4db)},'children':[{'tag':'path','attrs':{'stroke':_0x4821de(0x547),'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':'round','strokeWidth':1.2}}]},{'tag':_0x4821de(0x4c8),'attrs':{},'children':[{'tag':_0x4821de(0x617),'attrs':{'id':_0x4821de(0x249)},'children':[{'tag':'path','attrs':{'fill':_0x4821de(0x3d0),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x4821de(0x249)]},Nt=P[_0x4821de(0x2fb)](function(_0x2a3d99,_0xc98788){const _0x57e2c3=_0x4821de;return P[_0x57e2c3(0x30e)](Ze,Object[_0x57e2c3(0x26c)]({},_0x2a3d99,{'id':_0x57e2c3(0x4c4),'ref':_0xc98788,'icon':Mi}));});Nt[_0x4821de(0x469)]=_0x4821de(0x3af);var Ai={'tag':_0x4821de(0x3b0),'attrs':{'fill':_0x4821de(0x2f8),'viewBox':_0x4821de(0x5a8),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4821de(0x31b)},'children':[{'tag':_0x4821de(0x5df),'attrs':{'stroke':'currentColor','d':_0x4821de(0x263),'strokeLinecap':_0x4821de(0x500),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4821de(0x4c8),'attrs':{},'children':[{'tag':_0x4821de(0x617),'attrs':{'id':_0x4821de(0x43e)},'children':[{'tag':_0x4821de(0x5df),'attrs':{'fill':_0x4821de(0x3d0),'d':_0x4821de(0x217),'transform':_0x4821de(0x573)}}]}]}],'defIds':[_0x4821de(0x43e)]},Mt=P[_0x4821de(0x2fb)](function(_0x4c403d,_0x1e7555){const _0x5233c0=_0x4821de;return P[_0x5233c0(0x30e)](Ze,Object[_0x5233c0(0x26c)]({},_0x4c403d,{'id':_0x5233c0(0x59a),'ref':_0x1e7555,'icon':Ai}));});Mt[_0x4821de(0x469)]=_0x4821de(0x2d3);function At(_0xa6a66a){const _0x5254cb=_0x4821de;var _0x21ba72,_0x46c6ed,_0x3b537e='';if(typeof _0xa6a66a==_0x5254cb(0x354)||typeof _0xa6a66a==_0x5254cb(0x272))_0x3b537e+=_0xa6a66a;else{if(typeof _0xa6a66a==_0x5254cb(0x1f5)){if(Array[_0x5254cb(0x4d3)](_0xa6a66a)){var _0x2ce443=_0xa6a66a['length'];for(_0x21ba72=0x0;_0x21ba72<_0x2ce443;_0x21ba72++)_0xa6a66a[_0x21ba72]&&(_0x46c6ed=At(_0xa6a66a[_0x21ba72]))&&(_0x3b537e&&(_0x3b537e+='\x20'),_0x3b537e+=_0x46c6ed);}else{for(_0x46c6ed in _0xa6a66a)_0xa6a66a[_0x46c6ed]&&(_0x3b537e&&(_0x3b537e+='\x20'),_0x3b537e+=_0x46c6ed);}}}return _0x3b537e;}function Li(){const _0x2a8400=_0x4821de;for(var _0x9d99e7,_0x582cb5,_0x5ad935=0x0,_0xf0d19e='',_0x5f6f6=arguments[_0x2a8400(0x1fe)];_0x5ad935<_0x5f6f6;_0x5ad935++)(_0x9d99e7=arguments[_0x5ad935])&&(_0x582cb5=At(_0x9d99e7))&&(_0xf0d19e&&(_0xf0d19e+='\x20'),_0xf0d19e+=_0x582cb5);return _0xf0d19e;}const ji=_0x4821de(0x286),$i='univer-online-status-title',Hi=_0x4821de(0x3ae),xi=_0x4821de(0x2f5),ki=_0x4821de(0x5eb),he={'onlineStatusIcon':ji,'onlineStatusTitle':$i,'onlineStatus':Hi,'online':xi,'offline':ki};function Bi(_0x5cda37){const _0x3b34a6=_0x4821de;switch(_0x5cda37){case U[_0x3b34a6(0x266)]:return'collabStatus.offline';case U[_0x3b34a6(0x2c0)]:return'collabStatus.conflict';case U['FETCH_MISS']:return _0x3b34a6(0x527);case U[_0x3b34a6(0x2f9)]:return _0x3b34a6(0x5c4);case U[_0x3b34a6(0x450)]:case U[_0x3b34a6(0x3bf)]:case U[_0x3b34a6(0x316)]:return _0x3b34a6(0x541);case U[_0x3b34a6(0x318)]:return _0x3b34a6(0x2be);}}function Lt(_0x2bcc54){const _0x52182a=_0x4821de,{status$:_0x36f106}=_0x2bcc54,_0x11b314=A[_0x52182a(0x283)](_0x36f106,U[_0x52182a(0x2f9)]),_0x4c3ad2=a['useDependency'](a[_0x52182a(0x53d)]),_0x51a385=a[_0x52182a(0x5b4)](exports['CollaborationSessionService']),_0x2d6758=_0x11b314!==U[_0x52182a(0x266)],_0x12c43d=_0x4c3ad2['t'](Bi(_0x11b314)),_0x321721=Li(he['onlineStatus'],{[he[_0x52182a(0x33c)]]:_0x2d6758,[he['offline']]:!_0x2d6758}),_0x88e2bf=_0x2d6758?P['createElement'](Mt,null):P[_0x52182a(0x30e)](Nt,null),_0x3be103=P[_0x52182a(0x5f3)](()=>{_0x2d6758||_0x51a385['reconnect']();},[_0x2d6758,_0x51a385]);function _0x5c0271(){const _0x557792=_0x52182a;return P['createElement']('div',{'className':_0x321721,'onClick':_0x3be103},P[_0x557792(0x30e)](_0x557792(0x36a),{'className':he[_0x557792(0x2aa)]},_0x88e2bf),P['createElement'](_0x557792(0x36a),{'className':he[_0x557792(0x3d1)]},_0x12c43d));}return _0x2d6758?_0x5c0271():P[_0x52182a(0x30e)](X[_0x52182a(0x598)],{'title':_0x4c3ad2['t']('collab-client.tooltip.reconnect')},_0x5c0271());}var Vi=Object['defineProperty'],Wi=Object[_0x4821de(0x4f8)],Fi=(_0x259f4d,_0x51bb98,_0x57e89e,_0x3658f2)=>{const _0x1b68e6=_0x4821de;for(var _0x2e3a85=_0x3658f2>0x1?void 0x0:_0x3658f2?Wi(_0x51bb98,_0x57e89e):_0x51bb98,_0x4a6169=_0x259f4d[_0x1b68e6(0x1fe)]-0x1,_0xded0ae;_0x4a6169>=0x0;_0x4a6169--)(_0xded0ae=_0x259f4d[_0x4a6169])&&(_0x2e3a85=(_0x3658f2?_0xded0ae(_0x51bb98,_0x57e89e,_0x2e3a85):_0xded0ae(_0x2e3a85))||_0x2e3a85);return _0x3658f2&&_0x2e3a85&&Vi(_0x51bb98,_0x57e89e,_0x2e3a85),_0x2e3a85;},ge=(_0x424191,_0x4cb1bb)=>(_0x58916b,_0x34b773)=>_0x4cb1bb(_0x58916b,_0x34b773,_0x424191);exports[_0x4821de(0x29e)]=class extends a[_0x4821de(0x357)]{constructor(_0x1948fe,_0x1fcabe,_0x51b6b3,_0x11866d){const _0x25af29=_0x4821de;super(),u(this,_0x25af29(0x4e6),new v['BehaviorSubject'](U[_0x25af29(0x2f9)])),(this['_univerInstanceService']=_0x1948fe,this[_0x25af29(0x2f2)]=_0x1fcabe,this[_0x25af29(0x2ac)]=_0x51b6b3,this[_0x25af29(0x59f)]=_0x11866d,this['_initStatusComponent'](),this[_0x25af29(0x207)]());}[_0x4821de(0x207)](){const _0x1f06b8=_0x4821de;this[_0x1f06b8(0x4b1)](this[_0x1f06b8(0x487)][_0x1f06b8(0x2d1)][_0x1f06b8(0x2a5)](v[_0x1f06b8(0x365)](()=>{const _0x4fd754=_0x1f06b8,_0x2607e0=this[_0x4fd754(0x487)]['getFocusedUnit']();return _0x2607e0?this[_0x4fd754(0x59f)][_0x4fd754(0x5dc)](_0x2607e0[_0x4fd754(0x1f7)]()):v['of'](null);}),v[_0x1f06b8(0x365)](_0x351f45=>_0x351f45?_0x351f45[_0x1f06b8(0x345)]:v['of'](U['NOT_COLLAB'])))[_0x1f06b8(0x48c)](_0x37b64c=>{const _0x38bae3=_0x1f06b8;this[_0x38bae3(0x4e6)][_0x38bae3(0x56e)](_0x37b64c);}));}[_0x4821de(0x58c)](){const _0xdca39=_0x4821de;this[_0xdca39(0x4b1)](this[_0xdca39(0x2f2)][_0xdca39(0x550)](A['BuiltInUIPart'][_0xdca39(0x3a2)],()=>a[_0xdca39(0x539)](Gi({'status$':this[_0xdca39(0x4e6)][_0xdca39(0x43a)]()}),this['_injector'])));}},exports[_0x4821de(0x29e)]=Fi([ge(0x0,a[_0x4821de(0x258)]),ge(0x1,A[_0x4821de(0x25c)]),ge(0x2,a[_0x4821de(0x579)](a[_0x4821de(0x2cd)])),ge(0x3,a['Inject'](exports['CollaborationController']))],exports[_0x4821de(0x29e)]);function Gi(_0x2b9895){const {status$:_0x263b8b}=_0x2b9895;return function(){const _0x998fae=_0x370a;return P[_0x998fae(0x30e)](Lt,{'status$':_0x263b8b});};}const Qe=a[_0x4821de(0x23b)](_0x4821de(0x571));var Yi=Object[_0x4821de(0x51a)],Ki=Object['getOwnPropertyDescriptor'],Xi=(_0x3cfdec,_0x19ed07,_0x465e87,_0x61f222)=>{const _0x3abc9b=_0x4821de;for(var _0x44e404=_0x61f222>0x1?void 0x0:_0x61f222?Ki(_0x19ed07,_0x465e87):_0x19ed07,_0x875d8f=_0x3cfdec[_0x3abc9b(0x1fe)]-0x1,_0x14e8d3;_0x875d8f>=0x0;_0x875d8f--)(_0x14e8d3=_0x3cfdec[_0x875d8f])&&(_0x44e404=(_0x61f222?_0x14e8d3(_0x19ed07,_0x465e87,_0x44e404):_0x14e8d3(_0x44e404))||_0x44e404);return _0x61f222&&_0x44e404&&Yi(_0x19ed07,_0x465e87,_0x44e404),_0x44e404;},ee=(_0x49d97d,_0x2063bc)=>(_0x17d394,_0x14eb43)=>_0x2063bc(_0x17d394,_0x14eb43,_0x49d97d);exports[_0x4821de(0x436)]=class extends a[_0x4821de(0x56f)]{constructor(_0x1d9a93,_0x5795e9,_0x3bc521,_0x4324d6,_0x1fe5f5,_0xf4c057){const _0x494c11=_0x4821de;super(),this[_0x494c11(0x616)]=_0x1d9a93,this['_logService']=_0x5795e9,this['_commandService']=_0x3bc521,this[_0x494c11(0x32f)]=_0x4324d6,this[_0x494c11(0x502)]=_0x1fe5f5,_0xf4c057?_0xf4c057==null||_0xf4c057['whenReady']()[_0x494c11(0x379)](()=>this[_0x494c11(0x402)]()):(this[_0x494c11(0x244)][_0x494c11(0x233)]('[DataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x494c11(0x402)]());}async['_init'](){const _0x5169fe=_0x4821de,_0x43136c=this[_0x5169fe(0x616)][_0x5169fe(0x5fe)](_0x5169fe(0x54f)),_0x28320c=this['_urlService']['getParam'](_0x5169fe(0x3b6));if(!_0x43136c||!_0x28320c){this[_0x5169fe(0x244)]['debug'](_0x5169fe(0x52e),_0x5169fe(0x2dd));return;}switch(Number(_0x28320c)){case $[_0x5169fe(0x453)]:{const _0x300dbd=await this[_0x5169fe(0x42a)](_0x43136c);this[_0x5169fe(0x49b)](_0x300dbd);break;}case $[_0x5169fe(0x5f0)]:{await this[_0x5169fe(0x437)](_0x43136c);break;}default:{this[_0x5169fe(0x244)]['error'](_0x5169fe(0x52e),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async['_setupSubUnitSync'](_0x39d3c4){const _0x40ffea=_0x4821de;await this[_0x40ffea(0x2d9)](_0x39d3c4),_0x39d3c4['activeSheet$']['pipe'](v[_0x40ffea(0x3ba)](this[_0x40ffea(0x3ec)]))[_0x40ffea(0x48c)](_0x5be7ff=>{const _0x4e91e6=_0x40ffea;_0x5be7ff&&this[_0x4e91e6(0x486)](_0x5be7ff);}),this[_0x40ffea(0x616)][_0x40ffea(0x4f7)][_0x40ffea(0x2a5)](v[_0x40ffea(0x3ba)](this[_0x40ffea(0x3ec)]))[_0x40ffea(0x48c)](()=>this[_0x40ffea(0x2d9)](_0x39d3c4));}[_0x4821de(0x486)](_0xb1ec99,_0xea8b26=!0x1){const _0x3814de=_0x4821de,_0x29fc30=this[_0x3814de(0x616)]['getParam'](_0x3814de(0x449));_0xb1ec99[_0x3814de(0x370)]()!==_0x29fc30&&this[_0x3814de(0x616)][_0x3814de(0x564)](_0x3814de(0x449),_0xb1ec99[_0x3814de(0x370)](),_0xea8b26);}async[_0x4821de(0x2d9)](_0x553243){const _0x55fa03=_0x4821de;var _0x5b2ae6;const _0x281969=this[_0x55fa03(0x616)]['getParam'](_0x55fa03(0x449));if(!_0x281969||!_0x553243[_0x55fa03(0x302)](_0x281969)){const _0x33f634=_0x553243[_0x55fa03(0x51b)]()[0x0],_0x380caf=_0x553243[_0x55fa03(0x302)](_0x33f634);if(!_0x380caf)return;this[_0x55fa03(0x486)](_0x380caf,!0x0),await this[_0x55fa03(0x2bc)]['executeCommand'](C[_0x55fa03(0x37e)]['id'],{'unitId':_0x553243[_0x55fa03(0x1f7)](),'subUnitId':_0x33f634});return;}((_0x5b2ae6=_0x553243['getActiveSheet']())==null?void 0x0:_0x5b2ae6[_0x55fa03(0x370)]())!==_0x281969&&await this[_0x55fa03(0x2bc)][_0x55fa03(0x461)](C[_0x55fa03(0x37e)]['id'],{'unitId':_0x553243[_0x55fa03(0x1f7)](),'subUnitId':_0x281969});}async[_0x4821de(0x42a)](_0xc3ea8f){const _0x4f634e=_0x4821de;let _0x224d31=0x0;const _0x2b899b=await this[_0x4f634e(0x32f)][_0x4f634e(0x572)](_0xc3ea8f);return _0x2b899b&&(_0x2b899b[_0x4f634e(0x560)]||_0x2b899b[_0x4f634e(0x2c2)]['length']!==0x0)&&(_0x224d31=_0x2b899b[_0x4f634e(0x3e1)]),_0x224d31===0x0&&this[_0x4f634e(0x244)][_0x4f634e(0x233)]('[DataLoaderController]',_0x4f634e(0x21c)),this[_0x4f634e(0x502)]['loadSheet'](_0xc3ea8f,_0x224d31);}async[_0x4821de(0x437)](_0x18fb6e){const _0x1a2b16=_0x4821de;let _0x302c82=0x0;const _0x4d1e0f=await this[_0x1a2b16(0x32f)]['loadOfflineData'](_0x18fb6e);return _0x4d1e0f&&(_0x4d1e0f['awaitingChangeset']||_0x4d1e0f['mutations']['length']!==0x0)&&(_0x302c82=_0x4d1e0f[_0x1a2b16(0x3e1)]),_0x302c82===0x0&&this['_logService'][_0x1a2b16(0x233)]('[DataLoaderController]',_0x1a2b16(0x21c)),this[_0x1a2b16(0x502)][_0x1a2b16(0x607)](_0x18fb6e,_0x302c82);}},exports[_0x4821de(0x436)]=Xi([ee(0x0,Qe),ee(0x1,a[_0x4821de(0x49c)]),ee(0x2,a[_0x4821de(0x5a9)]),ee(0x3,a[_0x4821de(0x579)](exports[_0x4821de(0x4c6)])),ee(0x4,a[_0x4821de(0x579)](_[_0x4821de(0x3ee)])),ee(0x5,a[_0x4821de(0x555)](Kt['IRemoteInstanceService']))],exports[_0x4821de(0x436)]);var qi=Object[_0x4821de(0x51a)],zi=Object[_0x4821de(0x4f8)],Ji=(_0x231774,_0x2f5d8e,_0xc3981b,_0x335b10)=>{const _0x1f7e22=_0x4821de;for(var _0x6423f=_0x335b10>0x1?void 0x0:_0x335b10?zi(_0x2f5d8e,_0xc3981b):_0x2f5d8e,_0x5a4aa6=_0x231774[_0x1f7e22(0x1fe)]-0x1,_0x1e66d9;_0x5a4aa6>=0x0;_0x5a4aa6--)(_0x1e66d9=_0x231774[_0x5a4aa6])&&(_0x6423f=(_0x335b10?_0x1e66d9(_0x2f5d8e,_0xc3981b,_0x6423f):_0x1e66d9(_0x6423f))||_0x6423f);return _0x335b10&&_0x6423f&&qi(_0x2f5d8e,_0xc3981b,_0x6423f),_0x6423f;},_t=(_0x6accbf,_0x2ae10f)=>(_0x28a5b2,_0x5ea734)=>_0x2ae10f(_0x28a5b2,_0x5ea734,_0x6accbf);const Zi=_0x4821de(0x5ae),Qi=_0x4821de(0x254);let Ce=class extends a[_0x4821de(0x357)]{constructor(_0x906efd,_0x428eff){const _0x579cdd=_0x4821de;super(),this[_0x579cdd(0x487)]=_0x906efd,this[_0x579cdd(0x519)]=_0x428eff,this[_0x579cdd(0x402)]();}[_0x4821de(0x402)](){const _0x2ee654=_0x4821de;this[_0x2ee654(0x4b1)](this[_0x2ee654(0x487)]['focused$'][_0x2ee654(0x48c)](()=>{const _0x2304f6=_0x2ee654;var _0x581a4a;const _0x377188=this[_0x2304f6(0x487)]['getFocusedUnit']();let _0x27a1f6=(_0x581a4a=this[_0x2304f6(0x519)][_0x2304f6(0x2ce)](Zi))!=null?_0x581a4a:Qi;_0x377188 instanceof a[_0x2304f6(0x273)]&&(_0x27a1f6=_0x377188[_0x2304f6(0x32e)]),document[_0x2304f6(0x561)]=_0x27a1f6;}));}};Ce=Ji([_t(0x0,a[_0x4821de(0x258)]),_t(0x1,a[_0x4821de(0x482)])],Ce);var en=Object[_0x4821de(0x51a)],tn=Object['getOwnPropertyDescriptor'],sn=(_0x291089,_0x47d4d6,_0x2ca062,_0x21e8c7)=>{const _0x25d235=_0x4821de;for(var _0x5660e1=_0x21e8c7>0x1?void 0x0:_0x21e8c7?tn(_0x47d4d6,_0x2ca062):_0x47d4d6,_0x58f8f5=_0x291089[_0x25d235(0x1fe)]-0x1,_0x4717a5;_0x58f8f5>=0x0;_0x58f8f5--)(_0x4717a5=_0x291089[_0x58f8f5])&&(_0x5660e1=(_0x21e8c7?_0x4717a5(_0x47d4d6,_0x2ca062,_0x5660e1):_0x4717a5(_0x5660e1))||_0x5660e1);return _0x21e8c7&&_0x5660e1&&en(_0x47d4d6,_0x2ca062,_0x5660e1),_0x5660e1;},He=(_0x5165f9,_0x5d19f1)=>(_0x2ee2ff,_0xfee38d)=>_0x5d19f1(_0x2ee2ff,_0xfee38d,_0x5165f9);let Ee=class{constructor(_0x25a9e5,_0x3bed67,_0x416419){const _0x421337=_0x4821de;this['_configService']=_0x25a9e5,this[_0x421337(0x2a1)]=_0x3bed67,this[_0x421337(0x41a)]=_0x416419,this['init']();}[_0x4821de(0x28f)](){const _0x43b387=_0x4821de;this[_0x43b387(0x2a1)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x1430bc,_0x496524)=>_0x496524(_0x1430bc)[_0x43b387(0x2a5)](v[_0x43b387(0x352)](async _0x2a2783=>{const _0x58fb32=_0x43b387,_0x18b5ce=_0x2a2783;if(_0x18b5ce['status']===0x191&&window['confirm'](this[_0x58fb32(0x41a)]['t']('auth.needGotoLoginAlert'))){const _0x46d8b5=window[_0x58fb32(0x5ed)](window[_0x58fb32(0x1f3)][_0x58fb32(0x5f7)]);window[_0x58fb32(0x1f3)][_0x58fb32(0x5f7)]=this[_0x58fb32(0x505)]()+_0x58fb32(0x41d)+_0x46d8b5;}return _0x18b5ce;}))});}[_0x4821de(0x505)](){const _0x560fdb=_0x4821de;var _0x3a8950,_0x535a79;const _0x1537c7=this['_configService'][_0x560fdb(0x2ce)](Et),_0x4fa253=this[_0x560fdb(0x519)][_0x560fdb(0x2ce)](L);return(_0x535a79=(_0x3a8950=_0x4fa253==null?void 0x0:_0x4fa253[_0x560fdb(0x5f5)])!=null?_0x3a8950:_0x1537c7)!=null?_0x535a79:ns;}};Ee=sn([He(0x0,a[_0x4821de(0x482)]),He(0x1,a['Inject'](w['HTTPService'])),He(0x2,a[_0x4821de(0x579)](a['LocaleService']))],Ee);var nn=Object[_0x4821de(0x51a)],rn=Object['getOwnPropertyDescriptor'],on=(_0x363b6e,_0x5a4533,_0x38b7ad,_0x1861f6)=>{const _0x721efa=_0x4821de;for(var _0x5e2bff=_0x1861f6>0x1?void 0x0:_0x1861f6?rn(_0x5a4533,_0x38b7ad):_0x5a4533,_0x44da0d=_0x363b6e[_0x721efa(0x1fe)]-0x1,_0x479398;_0x44da0d>=0x0;_0x44da0d--)(_0x479398=_0x363b6e[_0x44da0d])&&(_0x5e2bff=(_0x1861f6?_0x479398(_0x5a4533,_0x38b7ad,_0x5e2bff):_0x479398(_0x5e2bff))||_0x5e2bff);return _0x1861f6&&_0x5e2bff&&nn(_0x5a4533,_0x38b7ad,_0x5e2bff),_0x5e2bff;},ut=(_0x55fb9d,_0x518833)=>(_0x154005,_0x163d7e)=>_0x518833(_0x154005,_0x163d7e,_0x55fb9d);const jt='AUTHZ_URL_KEY',an='/universer-api/authz';exports[_0x4821de(0x435)]=class extends a[_0x4821de(0x357)]{constructor(_0x85e845,_0x45978c){const _0x1d2743=_0x4821de;super(),this['_HTTPService']=_0x85e845,this['_configService']=_0x45978c,this[_0x1d2743(0x5fc)]();}[_0x4821de(0x5fc)](){const _0x58fb22=_0x4821de,_0x4fc87e=this;this[_0x58fb22(0x4b1)](this[_0x58fb22(0x5d5)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':w['MergeInterceptorFactory']({'isMatch'(_0x2083a8){const _0x32684d=_0x58fb22;var _0x10ea83;if(_0x2083a8['method']===_0x32684d(0x2ff)&&((_0x10ea83=_0x2083a8['requestParams'])!=null&&_0x10ea83[_0x32684d(0x42d)])){const {objectID:_0x41ebfd,objectType:_0xb92d9c}=_0x2083a8[_0x32684d(0x30b)][_0x32684d(0x42d)]||{};if(!_0x41ebfd||_0xb92d9c===void 0x0)return!0x1;const _0x57ce95=_0x4fc87e[_0x32684d(0x40c)]()+'/'+_0xb92d9c+_0x32684d(0x52f)+_0x41ebfd+_0x32684d(0x234);if(_0x2083a8[_0x32684d(0x414)]===_0x57ce95)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2e2cb2){const _0x302c2b=_0x58fb22;var _0x49e8d7;return(_0x49e8d7=_0x2e2cb2['requestParams'])==null?void 0x0:_0x49e8d7[_0x302c2b(0x42d)];},'mergeParamsToRequest'(_0x11f678,_0x124e74){const _0x40a934=_0x58fb22,_0x3e835b=_0x4fc87e[_0x40a934(0x40c)]()+_0x40a934(0x2b9),_0x573c90=_0x11f678['reduce']((_0x5b0468,_0x4a0ebe)=>{const {unitID:_0x2a2897,objectID:_0x3c5bfa,objectType:_0x37eaa6,actions:_0x59327b}=_0x4a0ebe;return _0x5b0468[_0x2a2897]||(_0x5b0468[_0x2a2897]={}),_0x5b0468[_0x2a2897][_0x3c5bfa]||(_0x5b0468[_0x2a2897][_0x3c5bfa]={'objectID':_0x3c5bfa,'objectType':_0x37eaa6,'actions':[]}),_0x5b0468[_0x2a2897][_0x3c5bfa]['actions']['push'](..._0x59327b),_0x5b0468;},{}),_0x1de2b7=[];for(const _0x547192 in _0x573c90)for(const _0x5ba4d7 in _0x573c90[_0x547192]){const {actions:_0x1085be,objectType:_0x9a08e6}=_0x573c90[_0x547192][_0x5ba4d7],_0x286650=[...new Set(_0x1085be)];_0x1de2b7['push']({'unitID':_0x547192,'objectID':_0x5ba4d7,'objectType':_0x9a08e6,'actions':_0x286650});}return new w['HTTPRequest'](_0x40a934(0x2ff),_0x3e835b,{'headers':_0x124e74['headers'],'withCredentials':_0x124e74['withCredentials'],'responseType':_0x124e74[_0x40a934(0x49f)],'body':{'requests':_0x1de2b7}});}},{'distributeResult'(_0x20b6ec,_0x1f847a){const _0x9a6b40=_0x58fb22,{objectActions:_0x1a3f22}=_0x20b6ec;return _0x1f847a[_0x9a6b40(0x27e)](_0x337472=>{const _0x482fac=_0x9a6b40,{unitID:_0x144589,objectID:_0x509df9,actions:_0x307513}=_0x337472,_0x1ee637=_0x1a3f22[_0x482fac(0x4ee)](_0x58f436=>_0x58f436['unitID']===_0x144589&&_0x58f436[_0x482fac(0x2eb)]===_0x509df9),_0x5f3a28=_0x307513['map'](_0x4152e7=>_0x1ee637==null?void 0x0:_0x1ee637['actions'][_0x482fac(0x4ee)](_0x50535f=>_0x50535f[_0x482fac(0x326)]===_0x4152e7))['filter'](_0x3736ef=>!!_0x3736ef);return{'config':_0x337472,'result':{'actions':_0x5f3a28,'error':_0x20b6ec[_0x482fac(0x5ee)]}};});}})}));}['_getAPIPrefixPath'](){const _0x22f737=_0x4821de;var _0x4481dc,_0x4e4b78;const _0x27bc45=this[_0x22f737(0x519)]['getConfig'](jt),_0x361fac=this[_0x22f737(0x519)]['getConfig'](L);return(_0x4e4b78=(_0x4481dc=_0x361fac==null?void 0x0:_0x361fac[_0x22f737(0x4c3)])!=null?_0x4481dc:_0x27bc45)!=null?_0x4e4b78:an;}async[_0x4821de(0x4ed)](_0x4acd24){const _0x319508=_0x4821de,_0x53c3a3=this[_0x319508(0x40c)]()+'/'+_0x4acd24[_0x319508(0x2a0)]+_0x319508(0x351);return(await this[_0x319508(0x5d5)][_0x319508(0x3a7)](_0x53c3a3,{'body':_0x4acd24}))['body']['objectID']||'';}async['list'](_0xcc004c){const _0x2a9b89=_0x4821de,_0x1b36aa=this[_0x2a9b89(0x40c)]()+_0x2a9b89(0x457);return(await this['_HTTPService'][_0x2a9b89(0x3a7)](_0x1b36aa,{'body':_0xcc004c}))[_0x2a9b89(0x42d)][_0x2a9b89(0x221)];}async[_0x4821de(0x515)](_0x4841d8){const _0x47d65f=_0x4821de,_0x599e28=this[_0x47d65f(0x40c)]()+'/'+_0x4841d8['objectType']+_0x47d65f(0x52f)+_0x4841d8[_0x47d65f(0x2eb)];await this[_0x47d65f(0x5d5)]['put'](_0x599e28,{'body':_0x4841d8});}async['allowed'](_0x3979f0){const _0x5d508d=_0x4821de,_0x30837b=this[_0x5d508d(0x40c)]()+'/'+_0x3979f0['objectType']+_0x5d508d(0x52f)+_0x3979f0[_0x5d508d(0x2eb)]+'/allowed';return(await this[_0x5d508d(0x5d5)][_0x5d508d(0x3a7)](_0x30837b,{'body':_0x3979f0}))['body']['actions'];}async[_0x4821de(0x5e6)](_0x24183f){const _0xb26cd1=_0x4821de,_0x5734c2=this[_0xb26cd1(0x40c)]()+_0xb26cd1(0x2b9);return(await this[_0xb26cd1(0x5d5)]['post'](_0x5734c2,{'body':{'requests':_0x24183f}}))[_0xb26cd1(0x42d)][_0xb26cd1(0x4dd)];}async[_0x4821de(0x4ea)](_0x3e6d3b){const _0x37a034=_0x4821de,_0x978cb5=this[_0x37a034(0x40c)]()+'/'+_0x3e6d3b[_0x37a034(0x2a0)]+_0x37a034(0x323),_0x226c05=await this[_0x37a034(0x5d5)]['post'](_0x978cb5,{'body':_0x3e6d3b});return{'roles':_0x226c05[_0x37a034(0x42d)][_0x37a034(0x34a)],'actions':_0x226c05[_0x37a034(0x42d)][_0x37a034(0x268)]};}async[_0x4821de(0x216)](_0x555221){const _0xc5518=_0x4821de,_0x198e70=this[_0xc5518(0x40c)]()+_0xc5518(0x2c9);await this['_HTTPService']['delete'](_0x198e70,{'params':{'collaboratorID':_0x555221['collaboratorID'],'objectID':_0x555221['objectID'],'unitID':_0x555221['unitID']}});}async[_0x4821de(0x517)](_0x417633){const _0x59aaf0=_0x4821de,_0x2966d2=this[_0x59aaf0(0x40c)]()+_0x59aaf0(0x2c9);await this[_0x59aaf0(0x5d5)][_0x59aaf0(0x1fb)](_0x2966d2,{'body':_0x417633});}async[_0x4821de(0x57a)](_0x2f7b98){const _0x1a71c0=_0x4821de,_0x3b5838=this['_getAPIPrefixPath']()+_0x1a71c0(0x2c9);await this[_0x1a71c0(0x5d5)][_0x1a71c0(0x3a7)](_0x3b5838,{'body':_0x2f7b98});}async[_0x4821de(0x36d)](_0x255524){const _0x5f1803=_0x4821de,_0x1250e2=this[_0x5f1803(0x40c)]()+_0x5f1803(0x2c9);return(await this['_HTTPService']['get'](_0x1250e2,{'params':{'objectID':_0x255524[_0x5f1803(0x2eb)],'unitID':_0x255524[_0x5f1803(0x4ef)]}}))[_0x5f1803(0x42d)][_0x5f1803(0x239)];}async[_0x4821de(0x2ee)](_0x1d293c){const _0x4f648c=_0x4821de,_0x290f72=this[_0x4f648c(0x40c)]()+_0x4f648c(0x2c9);await this[_0x4f648c(0x5d5)][_0x4f648c(0x3db)](_0x290f72,{'body':_0x1d293c});}},exports['AuthzIoHttpService']=on([ut(0x0,a[_0x4821de(0x579)](w[_0x4821de(0x538)])),ut(0x1,a['Inject'](a['IConfigService']))],exports[_0x4821de(0x435)]);var cn=Object[_0x4821de(0x51a)],ln=Object[_0x4821de(0x4f8)],hn=(_0x798561,_0x4e5951,_0x441768,_0x5ab4f3)=>{const _0x3d9058=_0x4821de;for(var _0x9ca89b=_0x5ab4f3>0x1?void 0x0:_0x5ab4f3?ln(_0x4e5951,_0x441768):_0x4e5951,_0xcb6376=_0x798561[_0x3d9058(0x1fe)]-0x1,_0x2f208b;_0xcb6376>=0x0;_0xcb6376--)(_0x2f208b=_0x798561[_0xcb6376])&&(_0x9ca89b=(_0x5ab4f3?_0x2f208b(_0x4e5951,_0x441768,_0x9ca89b):_0x2f208b(_0x9ca89b))||_0x9ca89b);return _0x5ab4f3&&_0x9ca89b&&cn(_0x4e5951,_0x441768,_0x9ca89b),_0x9ca89b;},_n=(_0xe0290b,_0x49d47a)=>(_0x1131c5,_0x2450e9)=>_0x49d47a(_0x1131c5,_0x2450e9,_0xe0290b);let be=class{constructor(_0x1cb343){const _0x4dc4ca=_0x4821de;this[_0x4dc4ca(0x2a1)]=_0x1cb343,this[_0x4dc4ca(0x4e8)]();}['_initRequestHeader'](){const _0x46649d=_0x4821de;this[_0x46649d(0x2a1)][_0x46649d(0x219)]({'interceptor':(_0x1d0e2f,_0x1f0534)=>{const _0x196f96=_0x46649d,_0x24b565=_0x1d0e2f['headers'],_0x21b8ea=Xt[_0x196f96(0x296)]();return _0x21b8ea&&_0x24b565[_0x196f96(0x4d0)](_0x196f96(0x4d4),_0x21b8ea),_0x1f0534(_0x1d0e2f);}});}};be=hn([_n(0x0,a['Inject'](w[_0x4821de(0x538)]))],be);var un=Object[_0x4821de(0x51a)],dn=Object['getOwnPropertyDescriptor'],Sn=(_0x379fba,_0x1b1bb8,_0x4225d6,_0x2e5310)=>{for(var _0x461ff5=_0x2e5310>0x1?void 0x0:_0x2e5310?dn(_0x1b1bb8,_0x4225d6):_0x1b1bb8,_0x20e26c=_0x379fba['length']-0x1,_0xa0da8c;_0x20e26c>=0x0;_0x20e26c--)(_0xa0da8c=_0x379fba[_0x20e26c])&&(_0x461ff5=(_0x2e5310?_0xa0da8c(_0x1b1bb8,_0x4225d6,_0x461ff5):_0xa0da8c(_0x461ff5))||_0x461ff5);return _0x2e5310&&_0x461ff5&&un(_0x1b1bb8,_0x4225d6,_0x461ff5),_0x461ff5;},xe=(_0x8cec14,_0x50c165)=>(_0x313cf1,_0x3edb10)=>_0x50c165(_0x313cf1,_0x3edb10,_0x8cec14);const vn=[_0x4821de(0x5d4),_0x4821de(0x327),_0x4821de(0x211),_0x4821de(0x401),_0x4821de(0x57c)],gn=0x5*0x400*0x400,mn=_0x4821de(0x3f8),fn='/universer-api/stream/file/upload',In=_0x4821de(0x5ce),pn=_0x4821de(0x60d);exports['ImageIoService']=class{constructor(_0x42f509,_0x560150,_0x3f2d83){const _0xa0d11b=_0x4821de;u(this,_0xa0d11b(0x40d),0x0),u(this,_0xa0d11b(0x2ba),new v['Subject']()),u(this,_0xa0d11b(0x4ae),this[_0xa0d11b(0x2ba)]),u(this,_0xa0d11b(0x253),new Map()),(this[_0xa0d11b(0x2a1)]=_0x42f509,this[_0xa0d11b(0x519)]=_0x560150,this[_0xa0d11b(0x487)]=_0x3f2d83);}['setWaitCount'](_0x563c6d){const _0x291475=_0x4821de;this['_waitCount']=_0x563c6d,this[_0x291475(0x2ba)][_0x291475(0x56e)](_0x563c6d);}[_0x4821de(0x3e3)](_0x1d006d,_0x1f9a48){const _0x17b6be=_0x4821de;if(_0x1f9a48===j[_0x17b6be(0x475)]['BASE64']){const _0x476693=new Image();return _0x476693['src']=_0x1d006d,_0x476693;}return this[_0x17b6be(0x253)][_0x17b6be(0x56d)](_0x1d006d);}['addImageSourceCache'](_0x238344,_0x35bdc3,_0x1ec24c){const _0x237fc3=_0x4821de;_0x35bdc3===j['ImageSourceType'][_0x237fc3(0x4aa)]||_0x1ec24c==null||this[_0x237fc3(0x253)]['set'](_0x238344,_0x1ec24c);}async[_0x4821de(0x260)](_0x9b245){const _0x2d9046=_0x4821de;try{const _0x394100=this[_0x2d9046(0x50d)](this[_0x2d9046(0x5b2)](),''+_0x9b245),_0x29c1a7=(await this['_httpService'][_0x2d9046(0x56d)](_0x394100))['body'];if(_0x29c1a7['error']&&_0x29c1a7[_0x2d9046(0x5ee)][_0x2d9046(0x361)]===bt['OK']){const _0x37c984=new URL(_0x29c1a7[_0x2d9046(0x414)],this[_0x2d9046(0x21e)]())[_0x2d9046(0x540)]();return Promise['resolve'](_0x37c984);}return Promise[_0x2d9046(0x48a)](_0x29c1a7['error']);}catch(_0x35c4d7){return Promise[_0x2d9046(0x48a)](_0x35c4d7);}}async['saveImage'](_0x53ba13){const _0x5044c4=_0x4821de;let _0x3fd040='';if(!vn[_0x5044c4(0x3be)](_0x53ba13[_0x5044c4(0x3b6)]))return this[_0x5044c4(0x5a7)](),Promise[_0x5044c4(0x48a)](new Error(j[_0x5044c4(0x554)][_0x5044c4(0x23c)]));if(_0x53ba13['size']>gn)return this[_0x5044c4(0x5a7)](),Promise['reject'](new Error(j[_0x5044c4(0x554)][_0x5044c4(0x2e1)]));try{const _0x276ce5=new FormData();_0x276ce5[_0x5044c4(0x2d6)](_0x5044c4(0x300),_0x53ba13);const _0x72fea0=this['_univerInstanceService'][_0x5044c4(0x513)](),_0x1e89a8=_0x72fea0==null?void 0x0:_0x72fea0[_0x5044c4(0x1f7)]();if(!_0x1e89a8)throw new Error('unitId\x20is\x20not\x20found');const _0x2cd575=this['_getUploadFileURL']()+_0x5044c4(0x3ff)+_0x53ba13[_0x5044c4(0x5c1)][_0x5044c4(0x540)]()+_0x5044c4(0x5ef)+Tt[_0x5044c4(0x2cb)]+_0x5044c4(0x574)+encodeURIComponent(_0x1e89a8),_0x53bcaf=await(await fetch(_0x2cd575,{'method':_0x5044c4(0x2ff),'body':_0x276ce5}))['json']();if(typeof _0x53bcaf[_0x5044c4(0x420)]!=_0x5044c4(0x354))return this['_decreaseWaiting'](),Promise[_0x5044c4(0x48a)](new Error(j['ImageUploadStatusType'][_0x5044c4(0x2b3)]));_0x3fd040=_0x53bcaf[_0x5044c4(0x420)];}catch{return this[_0x5044c4(0x5a7)](),Promise[_0x5044c4(0x48a)](new Error(j[_0x5044c4(0x554)][_0x5044c4(0x2b3)]));}return new Promise((_0x538f89,_0x2b464e)=>{const _0x3d4fa3=_0x5044c4,_0x2f3b51=new FileReader();_0x2f3b51[_0x3d4fa3(0x587)](_0x53ba13),_0x2f3b51['onload']=_0x5aa9d3=>{const _0x28bef0=_0x3d4fa3;var _0x4a8ac1;const _0x1ace84=(_0x4a8ac1=_0x5aa9d3[_0x28bef0(0x5bf)])==null?void 0x0:_0x4a8ac1[_0x28bef0(0x558)];if(_0x1ace84==null){this['_decreaseWaiting'](),_0x2b464e(new Error(j[_0x28bef0(0x554)][_0x28bef0(0x2b3)]));return;}const _0x5ce4ad=a[_0x28bef0(0x57b)]['generateRandomId'](0x6);_0x538f89({'imageId':_0x5ce4ad,'imageSourceType':j[_0x28bef0(0x475)]['UUID'],'source':_0x3fd040,'base64Cache':_0x1ace84,'status':j[_0x28bef0(0x554)][_0x28bef0(0x526)]}),this[_0x28bef0(0x5a7)]();};});}[_0x4821de(0x1fa)](){const _0x5b7299=_0x4821de;var _0x270d7c,_0xde7b10;const _0x3289af=this[_0x5b7299(0x519)]['getConfig'](mn),_0x285550=this[_0x5b7299(0x519)][_0x5b7299(0x2ce)](L);return(_0xde7b10=(_0x270d7c=_0x285550==null?void 0x0:_0x285550[_0x5b7299(0x413)])!=null?_0x270d7c:_0x3289af)!=null?_0xde7b10:fn;}[_0x4821de(0x5b2)](){const _0x5c43bf=_0x4821de;var _0x413470,_0x15d0f8;const _0x525009=this['_configService'][_0x5c43bf(0x2ce)](In),_0x555790=this[_0x5c43bf(0x519)][_0x5c43bf(0x2ce)](L);return(_0x15d0f8=(_0x413470=_0x555790==null?void 0x0:_0x555790[_0x5c43bf(0x38a)])!=null?_0x413470:_0x525009)!=null?_0x15d0f8:pn;}[_0x4821de(0x21e)](){const _0x4fe70d=_0x4821de;var _0xc97f26;const _0x16ce55=this[_0x4fe70d(0x519)][_0x4fe70d(0x2ce)](L);return(_0xc97f26=_0x16ce55==null?void 0x0:_0x16ce55[_0x4fe70d(0x4f5)])!=null?_0xc97f26:location['origin'];}['_replaceFileID'](_0x25c41b,_0x1e8e34){const _0x31b907=_0x4821de;return _0x25c41b[_0x31b907(0x306)]('{fileID}',_0x1e8e34);}[_0x4821de(0x5a7)](){const _0x30d182=_0x4821de;this[_0x30d182(0x40d)]-=0x1,this['_change$'][_0x30d182(0x56e)](this[_0x30d182(0x40d)]);}},exports[_0x4821de(0x366)]=Sn([xe(0x0,a[_0x4821de(0x579)](w['HTTPService'])),xe(0x1,a[_0x4821de(0x482)]),xe(0x2,a['Inject'](a[_0x4821de(0x258)]))],exports['ImageIoService']);var Cn=Object[_0x4821de(0x51a)],En=Object[_0x4821de(0x4f8)],bn=(_0x3123aa,_0x4809f4,_0x590d32,_0x39b734)=>{const _0xa4443d=_0x4821de;for(var _0x1e7e3c=_0x39b734>0x1?void 0x0:_0x39b734?En(_0x4809f4,_0x590d32):_0x4809f4,_0x25b003=_0x3123aa[_0xa4443d(0x1fe)]-0x1,_0x3803f6;_0x25b003>=0x0;_0x25b003--)(_0x3803f6=_0x3123aa[_0x25b003])&&(_0x1e7e3c=(_0x39b734?_0x3803f6(_0x4809f4,_0x590d32,_0x1e7e3c):_0x3803f6(_0x1e7e3c))||_0x1e7e3c);return _0x39b734&&_0x1e7e3c&&Cn(_0x4809f4,_0x590d32,_0x1e7e3c),_0x1e7e3c;},_e=(_0x51553a,_0xdfccc1)=>(_0x43d04b,_0x2f0bf6)=>_0xdfccc1(_0x43d04b,_0x2f0bf6,_0x51553a);let Te=class extends a[_0x4821de(0x56f)]{constructor(_0x23ca82,_0x1c53b9,_0x34da98,_0x170111,_0x54d95f){const _0x70f4f6=_0x4821de;super(),this[_0x70f4f6(0x2ac)]=_0x23ca82,this[_0x70f4f6(0x487)]=_0x1c53b9,this[_0x70f4f6(0x368)]=_0x34da98,this[_0x70f4f6(0x3c9)]=_0x170111,this[_0x70f4f6(0x28b)]=_0x54d95f,this[_0x70f4f6(0x4d8)](),this['_initCloseConn']();}[_0x4821de(0x3f6)](){const _0x354508=_0x4821de,_0x5e81c2=async _0x4152f4=>{const _0x3fd379=_0x370a;(await this[_0x3fd379(0x3c9)][_0x3fd379(0x277)](_0x4152f4))[_0x3fd379(0x29f)][_0x3fd379(0x2a5)](E[_0x3fd379(0x341)](_0x182eab=>_0x182eab[_0x3fd379(0x2ab)]===_['CollaborationEvent']['SHOULD_CLOSE_CONN']),E[_0x3fd379(0x3ba)](this['dispose$']))[_0x3fd379(0x48c)](_0x340248=>{const _0x211302=_0x3fd379,_0x144421=_0x340248,{reason:_0x2b9356}=_0x144421['data'];this['_injector']['get'](A[_0x211302(0x200)])[_0x211302(0x4d2)]({'type':X[_0x211302(0x43c)][_0x211302(0x56a)],'content':this[_0x211302(0x28b)]['t'](_0x211302(0x444))+'('+_0x2b9356+')'}),this[_0x211302(0x368)][_0x211302(0x61c)](new C[(_0x211302(0x60b))](_0x4152f4)['id'],!0x1),this[_0x211302(0x3c9)]['closeSession'](_0x4152f4);});};v[_0x354508(0x371)](this[_0x354508(0x487)][_0x354508(0x2da)](a[_0x354508(0x22e)][_0x354508(0x453)]),this[_0x354508(0x487)][_0x354508(0x2da)](a['UniverInstanceType']['UNIVER_DOC']))['pipe'](E[_0x354508(0x27e)](_0x47cacb=>_0x47cacb[_0x354508(0x1f7)]()),E[_0x354508(0x341)](_0x4b088d=>!a[_0x354508(0x445)](_0x4b088d)),E[_0x354508(0x3ba)](this[_0x354508(0x3ec)]))[_0x354508(0x48c)](_0x2897e6=>{_0x5e81c2(_0x2897e6);});}[_0x4821de(0x4d8)](){const _0x1a2beb=_0x4821de,_0x5b5f11=async _0xc26f96=>{const _0x4fb979=_0x370a;(await this[_0x4fb979(0x3c9)]['requireSession'](_0xc26f96))[_0x4fb979(0x29f)][_0x4fb979(0x2a5)](E['filter'](_0x39b3db=>_0x39b3db[_0x4fb979(0x2ab)]===_[_0x4fb979(0x215)]['UPDATE_PERMISSION_OBJ']),E[_0x4fb979(0x3ba)](this[_0x4fb979(0x3ec)]))['subscribe'](_0x25fdcc=>{const _0x5934cb=_0x4fb979,_0x33c0df=_0x25fdcc,{objectId:_0xabb584}=_0x33c0df[_0x5934cb(0x434)],_0x187a17=this[_0x5934cb(0x2ac)][_0x5934cb(0x56d)](te[_0x5934cb(0x5fb)]);_0xabb584===_0xc26f96?_0x187a17[_0x5934cb(0x5b5)](_0xc26f96):_0x187a17['refreshPermission'](_0xc26f96,_0xabb584);});};v[_0x1a2beb(0x371)](this['_univerInstanceService'][_0x1a2beb(0x2da)](a[_0x1a2beb(0x22e)]['UNIVER_SHEET']),this[_0x1a2beb(0x487)]['getTypeOfUnitAdded$'](a[_0x1a2beb(0x22e)][_0x1a2beb(0x5f0)]))[_0x1a2beb(0x2a5)](E[_0x1a2beb(0x27e)](_0x560340=>_0x560340[_0x1a2beb(0x1f7)]()),E[_0x1a2beb(0x341)](_0x28e4c2=>!a[_0x1a2beb(0x445)](_0x28e4c2)),E[_0x1a2beb(0x3ba)](this['dispose$']))[_0x1a2beb(0x48c)](_0x484f45=>{_0x5b5f11(_0x484f45);});}};function _0x370a(_0x49913c,_0x2793bf){const _0x5af9b4=_0x5af9();return _0x370a=function(_0x370add,_0x3eba53){_0x370add=_0x370add-0x1f2;let _0x22f409=_0x5af9b4[_0x370add];return _0x22f409;},_0x370a(_0x49913c,_0x2793bf);}Te=bn([_e(0x0,a[_0x4821de(0x579)](a[_0x4821de(0x2cd)])),_e(0x1,a['IUniverInstanceService']),_e(0x2,a[_0x4821de(0x54c)]),_e(0x3,a[_0x4821de(0x579)](exports[_0x4821de(0x3d5)])),_e(0x4,a['Inject'](a[_0x4821de(0x53d)]))],Te);var Tn=Object[_0x4821de(0x51a)],Rn=Object[_0x4821de(0x4f8)],On=(_0x3bc5eb,_0x212055,_0x25bd7f,_0x10378a)=>{const _0x182887=_0x4821de;for(var _0x1e5c0a=_0x10378a>0x1?void 0x0:_0x10378a?Rn(_0x212055,_0x25bd7f):_0x212055,_0x3f4c71=_0x3bc5eb[_0x182887(0x1fe)]-0x1,_0x2806f1;_0x3f4c71>=0x0;_0x3f4c71--)(_0x2806f1=_0x3bc5eb[_0x3f4c71])&&(_0x1e5c0a=(_0x10378a?_0x2806f1(_0x212055,_0x25bd7f,_0x1e5c0a):_0x2806f1(_0x1e5c0a))||_0x1e5c0a);return _0x10378a&&_0x1e5c0a&&Tn(_0x212055,_0x25bd7f,_0x1e5c0a),_0x1e5c0a;},dt=(_0x52a829,_0x17aac3)=>(_0x2501a5,_0x4980a8)=>_0x17aac3(_0x2501a5,_0x4980a8,_0x52a829);exports[_0x4821de(0x5ff)]=class{constructor(_0xaf5ff7,_0xd117f2){const _0x5a3238=_0x4821de;this[_0x5a3238(0x519)]=_0xaf5ff7,this['_httpService']=_0xd117f2;}async[_0x4821de(0x5a5)](_0x4ce1ea,_0x218403){const _0x372adf=_0x4821de;var _0xc95fa7;const {unitID:_0x42306b,type:_0x4f5928,revision:_0x4d1c04=0x0}=_0x218403,_0x19dbeb=this[_0x372adf(0x231)]()+'/'+_0x4f5928+_0x372adf(0x46d)+_0x42306b+_0x372adf(0x53c)+_0x4d1c04,_0x2f6aa3=(await this['_httpService']['get'](_0x19dbeb))[_0x372adf(0x42d)],_0x3329d7=(_0xc95fa7=_0x2f6aa3[_0x372adf(0x488)])==null?void 0x0:_0xc95fa7[_0x372adf(0x55c)];if(_0x3329d7){const _0x333c18=_0x3329d7==null?void 0x0:_0x3329d7[_0x372adf(0x4ce)],_0xae1141=_[_0x372adf(0x5bb)]['encode'](_[_0x372adf(0x5a1)](_0x333c18));_0x3329d7[_0x372adf(0x4ce)]=_0xae1141,Object[_0x372adf(0x4d7)](_0x3329d7[_0x372adf(0x559)])[_0x372adf(0x3c2)](([,_0x22d6e5])=>{const _0x323612=_0x372adf,_0x4376fc=_0x22d6e5['originalMeta'],_0x25a15a=_[_0x323612(0x5bb)][_0x323612(0x44c)](_[_0x323612(0x5a1)](_0x4376fc));_0x22d6e5[_0x323612(0x4ce)]=_0x25a15a;});}return _0x2f6aa3;}async[_0x4821de(0x507)](_0x4f62ba,_0x5edbc5){const _0x2d36f3=_0x4821de,{unitID:_0x5a2231,type:_0x5560ab,blockID:_0x44a196}=_0x5edbc5,_0x2b1360=this['_getAPIPrefix']()+'/'+_0x5560ab+_0x2d36f3(0x46d)+_0x5a2231+_0x2d36f3(0x5c5)+_0x44a196;return(await this[_0x2d36f3(0x2a1)]['get'](_0x2b1360))[_0x2d36f3(0x42d)];}async[_0x4821de(0x433)](_0x158528,_0x2fe839){const _0x3a16d1=_0x4821de,{unitID:_0x209165,type:_0xfca343,blockID:_0x59e34b}=_0x2fe839,_0xc58ded=this['_getAPIPrefix']()+_0x3a16d1(0x5c5)+_0xfca343+_0x3a16d1(0x46d)+_0x209165+_0x3a16d1(0x5c5)+_0x59e34b;return(await this[_0x3a16d1(0x2a1)]['get'](_0xc58ded))['body'];}async[_0x4821de(0x38b)](_0x4583ae,_0x3ab2a4){const _0x4f93b3=_0x4821de,{unitID:_0x4c3989,type:_0x4e57f4,from:_0x23522a,to:_0x4fd6bc}=_0x3ab2a4,_0x3a42cc=this[_0x4f93b3(0x29c)]()+'/'+_0x4e57f4+_0x4f93b3(0x46d)+_0x4c3989+_0x4f93b3(0x267)+_0x23522a+'&to='+_0x4fd6bc;return(await this['_httpService'][_0x4f93b3(0x56d)](_0x3a42cc))[_0x4f93b3(0x42d)];}[_0x4821de(0x231)](){const _0x513a1e=_0x4821de;var _0x409a4e;return(_0x409a4e=this[_0x513a1e(0x519)][_0x513a1e(0x2ce)](vt))!=null?_0x409a4e:this['_getAPIPrefix']();}[_0x4821de(0x29c)](){const _0x2310f7=_0x4821de;var _0x5e8d95,_0x25a0b8;const _0x197d2a=this[_0x2310f7(0x519)][_0x2310f7(0x2ce)](St),_0x1f182a=this['_configService'][_0x2310f7(0x2ce)](L);return(_0x25a0b8=(_0x5e8d95=_0x1f182a==null?void 0x0:_0x1f182a[_0x2310f7(0x465)])!=null?_0x5e8d95:_0x197d2a)!=null?_0x25a0b8:qt;}async[_0x4821de(0x3cd)](_0x2cc51e,_0x16ad05){const _0x3ff1c=_0x4821de,_0x2bbe4a='/universer-api/snapshot/'+_0x16ad05['type']+_0x3ff1c(0x46d)+_0x16ad05[_0x3ff1c(0x4ef)]+_0x3ff1c(0x61f);return(await this['_httpService'][_0x3ff1c(0x56d)](_0x2bbe4a,{'params':{'resourceId':JSON[_0x3ff1c(0x44f)](_0x16ad05[_0x3ff1c(0x212)])}}))[_0x3ff1c(0x42d)];}[_0x4821de(0x38f)](){const _0x5deade=_0x4821de;throw new Error(_0x5deade(0x339));}['saveSheetBlock'](){const _0x5b5445=_0x4821de;throw new Error(_0x5b5445(0x339));}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4821de(0x43d)](){const _0x41bab3=_0x4821de;throw new Error(_0x41bab3(0x339));}[_0x4821de(0x240)](){const _0x202302=_0x4821de;throw new Error(_0x202302(0x339));}},exports[_0x4821de(0x5ff)]=On([dt(0x0,a[_0x4821de(0x482)]),dt(0x1,a[_0x4821de(0x579)](w['HTTPService']))],exports[_0x4821de(0x5ff)]);var Dn=Object[_0x4821de(0x51a)],yn=Object[_0x4821de(0x4f8)],Un=(_0x20a8b7,_0x17fda0,_0x1c7015,_0x437553)=>{for(var _0x55572f=_0x437553>0x1?void 0x0:_0x437553?yn(_0x17fda0,_0x1c7015):_0x17fda0,_0x391c0b=_0x20a8b7['length']-0x1,_0x1087a1;_0x391c0b>=0x0;_0x391c0b--)(_0x1087a1=_0x20a8b7[_0x391c0b])&&(_0x55572f=(_0x437553?_0x1087a1(_0x17fda0,_0x1c7015,_0x55572f):_0x1087a1(_0x55572f))||_0x55572f);return _0x437553&&_0x55572f&&Dn(_0x17fda0,_0x1c7015,_0x55572f),_0x55572f;},ue=(_0x517cff,_0x5d12b5)=>(_0x4285db,_0x353fd5)=>_0x5d12b5(_0x4285db,_0x353fd5,_0x517cff);let Fe=class extends a[_0x4821de(0x5a0)]{constructor(_0x2151fc,_0x7d650d,_0x191096,_0x58bea3,_0x8d600d){const _0x15e4cd=_0x4821de;super(_0x2151fc,_0x7d650d,_0x191096),this[_0x15e4cd(0x577)]=_0x58bea3,this[_0x15e4cd(0x244)]=_0x8d600d;}['transformUndoRedo'](_0x4aafc5,_0x1c3b53){const _0x2b3643=_0x4821de,_0x5a273b=this[_0x2b3643(0x2b2)](_0x4aafc5);if(_0x5a273b)try{const _0x3275e9=this[_0x2b3643(0x3f9)](_0x5a273b,_0x1c3b53);this[_0x2b3643(0x331)](_0x4aafc5,_0x3275e9);}catch(_0x1174d3){this[_0x2b3643(0x244)][_0x2b3643(0x5ee)](_0x2b3643(0x1fd),_0x1174d3),this['_clearUndo'](_0x4aafc5);}const _0x59aa38=this[_0x2b3643(0x314)](_0x4aafc5);if(_0x59aa38)try{const _0x2281f1=this[_0x2b3643(0x3f9)](_0x59aa38,_0x1c3b53);this['_substituteRedoStack'](_0x4aafc5,_0x2281f1);}catch(_0x50674e){this[_0x2b3643(0x244)][_0x2b3643(0x5ee)](_0x50674e),this[_0x2b3643(0x5f8)](_0x4aafc5);}}[_0x4821de(0x48d)](_0x48638a){const _0x85e5d5=_0x4821de,_0x3a4291=this[_0x85e5d5(0x2b2)](_0x48638a);_0x3a4291&&(_0x3a4291[_0x85e5d5(0x1fe)]=0x0,this['_updateStatus']());}['_clearRedo'](_0x4c627e){const _0x124ea1=_0x4821de,_0x2d1d20=this[_0x124ea1(0x314)](_0x4c627e);_0x2d1d20&&(_0x2d1d20[_0x124ea1(0x1fe)]=0x0,this[_0x124ea1(0x531)]());}[_0x4821de(0x331)](_0x15fd10,_0x2c0dc4){const _0x17ba37=_0x4821de;this[_0x17ba37(0x480)][_0x17ba37(0x4d0)](_0x15fd10,_0x2c0dc4),this[_0x17ba37(0x531)]();}[_0x4821de(0x510)](_0x4aded6,_0x4d625a){const _0x21ab1c=_0x4821de;this['_redoStacks'][_0x21ab1c(0x4d0)](_0x4aded6,_0x4d625a),this[_0x21ab1c(0x531)]();}[_0x4821de(0x3f9)](_0x5b509b,_0x207330){const _0x186cf6=_0x4821de,_0x218997=[];let _0x24dde9=_0x207330,_0x1bf95b=_0x207330;for(let _0x52f6a8=_0x5b509b['length']-0x1;_0x52f6a8>=0x0;_0x52f6a8--){const {unitID:_0x233c39,undoMutations:_0x33a052,redoMutations:_0x1dfd3e}=_0x5b509b[_0x52f6a8],_0x523d16=this[_0x186cf6(0x577)][_0x186cf6(0x209)](_0x24dde9,_0x33a052),_0x4bd194=this['_transformService'][_0x186cf6(0x209)](_0x1bf95b,_0x1dfd3e);if(_['isTransformMutationsWithChangesetFailure'](_0x523d16)||_[_0x186cf6(0x33b)](_0x4bd194)){this[_0x186cf6(0x244)]['error']('[CollaborationUndoRedoService]',_0x186cf6(0x5e8),_0x523d16,_0x4bd194);break;}_0x24dde9=_0x523d16[_0x186cf6(0x362)],_0x1bf95b=_0x4bd194['c1Prime'],_0x218997['push']({'unitID':_0x233c39,'undoMutations':_0x523d16[_0x186cf6(0x309)],'redoMutations':_0x4bd194[_0x186cf6(0x309)]});}return _0x218997['reverse']();}};Fe=Un([ue(0x0,a[_0x4821de(0x258)]),ue(0x1,a[_0x4821de(0x5a9)]),ue(0x2,a[_0x4821de(0x48e)]),ue(0x3,_[_0x4821de(0x2c7)]),ue(0x4,a[_0x4821de(0x49c)])],Fe);class $t extends a[_0x4821de(0x56f)]{constructor(){const _0x10f35b=_0x4821de;super(),u(this,_0x10f35b(0x4f7)),this[_0x10f35b(0x4f7)]=v['fromEvent'](window,_0x10f35b(0x3ef))[_0x10f35b(0x2a5)](v[_0x10f35b(0x3ba)](this[_0x10f35b(0x3ec)]),v[_0x10f35b(0x523)](0x1),v[_0x10f35b(0x30d)](void 0x0));}[_0x4821de(0x564)](_0x2a2818,_0x534048,_0x4582e6=!0x1){const _0x4f2502=_0x4821de,_0x4d91b6=new URL(window['location'][_0x4f2502(0x5f7)]);_0x4d91b6[_0x4f2502(0x383)]['set'](_0x2a2818,_0x534048),_0x4582e6?window[_0x4f2502(0x261)][_0x4f2502(0x395)]('','',_0x4d91b6[_0x4f2502(0x540)]()):window['history'][_0x4f2502(0x591)]('','',_0x4d91b6[_0x4f2502(0x540)]());}[_0x4821de(0x5d2)](_0x486a38,_0x1a122a=!0x1){const _0x4805ef=_0x4821de,_0x5a3de9=new URL(window[_0x4805ef(0x1f3)][_0x4805ef(0x5f7)]);_0x5a3de9[_0x4805ef(0x383)][_0x4805ef(0x28c)](_0x486a38),_0x1a122a?window['history'][_0x4805ef(0x395)]('','',_0x5a3de9[_0x4805ef(0x540)]()):window[_0x4805ef(0x261)][_0x4805ef(0x591)]('','',_0x5a3de9[_0x4805ef(0x540)]());}[_0x4821de(0x5fe)](_0x3a6703){const _0x5c84f1=_0x4821de;var _0x5c062e;return(_0x5c062e=new URL(window[_0x5c84f1(0x1f3)][_0x5c84f1(0x5f7)])['searchParams'][_0x5c84f1(0x56d)](_0x3a6703))!=null?_0x5c062e:void 0x0;}}var Ht=Object[_0x4821de(0x51a)],Pn=Object['getOwnPropertyDescriptor'],wn=(_0x144b5c,_0x2cb07c,_0x5dce81)=>_0x2cb07c in _0x144b5c?Ht(_0x144b5c,_0x2cb07c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5dce81}):_0x144b5c[_0x2cb07c]=_0x5dce81,Nn=(_0x3580c7,_0x24ad3d,_0x4a6e30,_0x4ced88)=>{for(var _0x3f222d=_0x4ced88>0x1?void 0x0:_0x4ced88?Pn(_0x24ad3d,_0x4a6e30):_0x24ad3d,_0x33a8ca=_0x3580c7['length']-0x1,_0x4a826a;_0x33a8ca>=0x0;_0x33a8ca--)(_0x4a826a=_0x3580c7[_0x33a8ca])&&(_0x3f222d=(_0x4ced88?_0x4a826a(_0x24ad3d,_0x4a6e30,_0x3f222d):_0x4a826a(_0x3f222d))||_0x3f222d);return _0x4ced88&&_0x3f222d&&Ht(_0x24ad3d,_0x4a6e30,_0x3f222d),_0x3f222d;},me=(_0x4e6b23,_0x1af055)=>(_0x1ce956,_0x3c15c1)=>_0x1af055(_0x1ce956,_0x3c15c1,_0x4e6b23),Mn=(_0x4da721,_0x254c12,_0x327c21)=>wn(_0x4da721,_0x254c12+'',_0x327c21);const An=_0x4821de(0x25f);exports[_0x4821de(0x45a)]=class extends a[_0x4821de(0x41f)]{constructor(_0x4ba402=rs,_0x2418c4,_0x57e93f,_0x3a8439,_0x45d317){const _0x51d09d=_0x4821de;super(),this[_0x51d09d(0x329)]=_0x4ba402,this[_0x51d09d(0x244)]=_0x2418c4,this['_renderManagerService']=_0x57e93f,this[_0x51d09d(0x2ac)]=_0x3a8439,this['_configService']=_0x45d317;const {..._0x3712f0}=this[_0x51d09d(0x329)];this[_0x51d09d(0x519)][_0x51d09d(0x317)](L,_0x3712f0);}[_0x4821de(0x399)](){const _0x1986b8=_0x4821de;this[_0x1986b8(0x4b7)](),a[_0x1986b8(0x438)](this[_0x1986b8(0x2ac)],[[ne],[exports[_0x1986b8(0x436)]],[Te]]);}[_0x4821de(0x284)](){const _0x1f53f9=_0x4821de;a[_0x1f53f9(0x438)](this[_0x1f53f9(0x2ac)],[[Ce]]);}[_0x4821de(0x47b)](){const _0x2c667a=_0x4821de;this[_0x2c667a(0x241)]();}[_0x4821de(0x4b7)](){const _0x12d265=_0x4821de;var _0x3b84dc,_0x45a3d9,_0x363730,_0x41a522;this[_0x12d265(0x2ac)]['has'](a[_0x12d265(0x3c4)])&&this['_logService'][_0x12d265(0x5ee)](_0x12d265(0x394),_0x12d265(0x374));let _0x1ab362=[[a['IUndoRedoService'],{'useClass':Fe}],[exports['CollaborationSessionService']],[Je],[w[_0x12d265(0x538)]],[Qe,{'useClass':$t}],[q],[exports['LocalCacheService']],[w['WebSocketService']],[Ie],[pe],[fe],[qe],[Ee],[be],[Xe],[Te],[Ke,{'useClass':(_0x45a3d9=(_0x3b84dc=this[_0x12d265(0x329)])==null?void 0x0:_0x3b84dc[_0x12d265(0x398)])!=null?_0x45a3d9:exports[_0x12d265(0x485)]}],[w[_0x12d265(0x578)],{'useClass':w[_0x12d265(0x4cc)]}],[_['ISnapshotServerService'],{'useClass':exports[_0x12d265(0x5ff)]}],[a['IAuthzIoService'],{'useClass':exports[_0x12d265(0x435)]}],[j[_0x12d265(0x26e)],{'useClass':exports[_0x12d265(0x366)]}],[exports[_0x12d265(0x330)]],[exports[_0x12d265(0x436)]],[exports[_0x12d265(0x29e)]],[Ce],[ne]];(_0x363730=this[_0x12d265(0x329)])!=null&&_0x363730[_0x12d265(0x3aa)]&&_0x1ab362['push']([Re,{'useClass':$s}]),_0x1ab362=a[_0x12d265(0x367)](_0x1ab362,(_0x41a522=this['_config'])==null?void 0x0:_0x41a522[_0x12d265(0x429)]),_0x1ab362[_0x12d265(0x3c2)](_0x242dc5=>this['_injector'][_0x12d265(0x201)](_0x242dc5)),this[_0x12d265(0x5ab)]();}[_0x4821de(0x241)](){const _0x377452=_0x4821de;this[_0x377452(0x4b1)](this[_0x377452(0x396)][_0x377452(0x41c)](a['UniverInstanceType'][_0x377452(0x5f0)],[Ve])),this['disposeWithMe'](this[_0x377452(0x396)][_0x377452(0x41c)](a[_0x377452(0x22e)][_0x377452(0x453)],[We]));}[_0x4821de(0x5ab)](){const _0x3c2713=_0x4821de;var _0x41f203,_0x336be8;this[_0x3c2713(0x2ac)][_0x3c2713(0x56d)](w['HTTPService'])['registerHTTPInterceptor']({'priority':0x14,'interceptor':w[_0x3c2713(0x248)]({'maxParallel':0x6})}),this[_0x3c2713(0x2ac)][_0x3c2713(0x56d)](be),(_0x41f203=this['_config'])!=null&&_0x41f203[_0x3c2713(0x545)]||this[_0x3c2713(0x2ac)][_0x3c2713(0x56d)](exports[_0x3c2713(0x4c6)])[_0x3c2713(0x39a)](),(_0x336be8=this[_0x3c2713(0x329)])!=null&&_0x336be8['enableAuthServer']&&this[_0x3c2713(0x2ac)][_0x3c2713(0x56d)](Ee),this['_injector'][_0x3c2713(0x56d)](exports['CollaborationController']),this['_injector']['has'](exports[_0x3c2713(0x29e)])&&this[_0x3c2713(0x2ac)][_0x3c2713(0x56d)](exports[_0x3c2713(0x29e)]);}},Mn(exports[_0x4821de(0x45a)],_0x4821de(0x3c6),An),exports[_0x4821de(0x45a)]=Nn([a['DependentOn'](_[_0x4821de(0x481)]),me(0x1,a[_0x4821de(0x49c)]),me(0x2,O[_0x4821de(0x24a)]),me(0x3,a['Inject'](a[_0x4821de(0x2cd)])),me(0x4,a[_0x4821de(0x482)])],exports[_0x4821de(0x45a)]),exports[_0x4821de(0x4b3)]=jt,exports[_0x4821de(0x29a)]=Ct,exports['COLLAB_WEB_SOCKET_URL_KEY']=gt,exports[_0x4821de(0x336)]=U,exports[_0x4821de(0x45b)]=Lt,exports[_0x4821de(0x2ca)]=Xe,exports['HEARTBEAT_INTERVAL_KEY']=mt,exports[_0x4821de(0x60e)]=Ge,exports['ICollaborationSocketService']=Ke,exports['IURLService']=Qe,exports['LOCAL_CACHE_INTERVAL_KEY']=pt,exports['LOGIN_URL_KEY']=Et,exports[_0x4821de(0x2e4)]=It,exports[_0x4821de(0x46a)]=zt,exports[_0x4821de(0x5ec)]=St,exports[_0x4821de(0x596)]=vt,exports[_0x4821de(0x439)]=H,exports[_0x4821de(0x44b)]=Pt,exports['WebURLService']=$t,exports['deserializeToCombResponse']=Rt,exports['serializeCombRequest']=Ot;