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

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 _0x2f1425=_0x4554;(function(_0xb12dcf,_0x4fc039){const _0x4d2d8a=_0x4554,_0x1e756b=_0xb12dcf();while(!![]){try{const _0x19aa96=-parseInt(_0x4d2d8a(0x3ff))/0x1*(parseInt(_0x4d2d8a(0x1c1))/0x2)+parseInt(_0x4d2d8a(0x4d6))/0x3+parseInt(_0x4d2d8a(0x249))/0x4*(parseInt(_0x4d2d8a(0x24a))/0x5)+parseInt(_0x4d2d8a(0x443))/0x6*(-parseInt(_0x4d2d8a(0x47b))/0x7)+parseInt(_0x4d2d8a(0x3db))/0x8+parseInt(_0x4d2d8a(0x478))/0x9+-parseInt(_0x4d2d8a(0x37f))/0xa*(parseInt(_0x4d2d8a(0x54d))/0xb);if(_0x19aa96===_0x4fc039)break;else _0x1e756b['push'](_0x1e756b['shift']());}catch(_0x421662){_0x1e756b['push'](_0x1e756b['shift']());}}}(_0x995d,0x34def));var kt=Object[_0x2f1425(0x1cf)],Bt=(_0x33c644,_0x1921b8,_0xd4e34c)=>_0x1921b8 in _0x33c644?kt(_0x33c644,_0x1921b8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd4e34c}):_0x33c644[_0x1921b8]=_0xd4e34c,d=(_0x371f3a,_0x3fa37e,_0x19905)=>Bt(_0x371f3a,typeof _0x3fa37e!=_0x2f1425(0x519)?_0x3fa37e+'':_0x3fa37e,_0x19905);function _0x995d(){const _0x45e97c=['univerjs-icon\x20univerjs-icon-','parseProtocolChangeset','_snapshotService','CollaborationController','SheetCollaborationEntity','onMissingChangesets','getCellPositionByOffset','_initEventListeners','width','/allowed','event$','_listenToOnlineEvent','_injector','editing\x20status\x20changed\x20to','_onJoinRoomEvent','Rectangle','rev','getRangePointData','next','Warning','onCommentUpdate','collaboration-client.config','univer-online-status','...','handleInsertRangeMoveDown','roomInfos','/fetchmissing?from=','LocalCacheService','_id','b64DecodeUnicode','Vector2','_event$','Workbook','/new_changes','DocIMEInputManagerService','_syncEditingCollabCursorService','_onCursorUpdate','_createInitialStateImpl','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','findNodePositionByCharIndex','_undoStacks','toggleOnline','_transitionLocked','symbol','COLORS','min','toString','_uiPartsService','getActiveSheet','signUrlServerUrl','saveSnapshot','SheetCollabCursorShape','_setupSubUnitSync','entries','transformChangesets','Undefined','_createInitialState','saveImage','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','icon','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','[CollaborationEntity]','getVpScrollXYInfoByPosToVp','push','routeKey','ThemeService','1em','_permissionService','refreshPermission','close','loadDoc','debounce','_collaborationController','includes','RemoveRowCommandId','registerRefRange','getViewport','deepClone','useObservable','pipe','indexOf','x-univer-host','closeSession','CommentService','_onMessage','joinEvent','_onCursorDelete','_color','_commentUpdate$','_lockTransition','purple300','SUBMIT_CHANGESET','_removeRoom','getRoom','UNIVER_COLLABORATION_CLIENT_PLUGIN','22PGYZUJ','_assignedColors','UNRECOGNIZED','stopTime','copyFileMeta','DocSkeletonManagerService','_initCloseConn','SheetSkeletonManagerService','has','isPermissionRej','replace','unshift','LICENSE_IMPORT_SIZE_EXCEEDED','AWAITING','DesktopCollaborationStatusDisplayController','RevisionService','transformMutationsWithChangeset','visibilitychange','call','roomMembers','useRef','_logService','permissionRejEvent','requestParams','CollaborationEvent','disableLocalCache','awaiting_with_pending','currentColor','mutations','objectID','_initStatusComponent','localeService','status$','_tryEnsureSocket','toRgbString','_textBubble','off-line-single_clip0_910_343','TRANSFORM_CHANGE_OBSERVABLE_TYPE','DocStateChangeManagerService','method','BASE64','_timeoutTimer','_getSendChangesetTimeout','getAncestorScale','ImageIoService','unload','UNAUTHENTICATED','_onRemoteChangeset','number','RichTextEditingMutation','top','defIds','getUnhiddenWorksheets','_roomMembers$','_initUnitPermissionChange','univer-online','_commentService','JOIN','objectType','updateMember','InsertColCommandId','editingUnit','_updateSubUnitFromURLParams','_updateState','with','forwardRef','INotificationService','_config','collab-text-range-','SetSelectionsOperation','collaboration-session-retry','generateRandomId','RECV','getCurrentUser','eventID','_notificationService','merge','url(#on-line-single_clip0_910_349)','getSkeleton','_hideTimer','IPermissionService','serializeRangeWithSheet','combineLatest','@univerjs-pro/collaboration','registerBeforeClose','url(#$1','_imageSourceCache','children','unitId\x20is\x20not\x20found','HEARTBEAT','off-line-single','getFocusedUnit','NodePositionConvertToRectRange','CollaborationSocketService','ERROR_EXCEED_SIZE','toStringTag','clearInterval','startsWith','put','_sessions','textEncoder','onPointerMove$','_getAnchorBounding','univer-pro.collaboration-client-socket-service','requireSession','_scene','_drawTextRange','rgba(255,\x20255,\x20255,\x200.01)','#FFF','onlyLocal','listCollaborators','transformUndoRedo','_labelPosition','workbook','patch','Error','pending','append','updateCursorEvent','status','getCurrentUnitForType','_replaceFileID','TEXT_RANGE_LAYER_INDEX','show','change$','resize','_startCollaboration','_transformUndoRedoStack','getSheetId','UNIVER_SHEET','_heartbeatTimer','2566wdwORd','whenReady','_configService','image/jpeg','_incrementRevisionNumber','univer-pro.collaboration-client.single-active-unit-service','COLLAB_SUBMIT_CHANGESET_URL','getUndoRedoMutationParamsCache','map','onlineStatusTitle','_exhaustRemoteChangesetQueue','_pendingMutations','ONLINE','BuiltInUIPart','defineProperty','DEFAULT_FILE_NAME','_scheduleHeartbeat','onTransformSelections','getCurrent','CollaborationSessionService','stringify','_sendHeartbeatTimer','distinctUntilChanged','downloadEndpointUrl','submit\x20changeset\x20error!','_selfUnitIDs','startColumn','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_getSheetObject','getWorkbookSelections','UNIVER_SLIDE','session','sheetID','_messageService','collaboration-client.offline-data-not-saved','_executeRemoteChangeset','socketService','_getAPIPrefixPath','moveTo','IRemoteInstanceService','_themeService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','connectInjector','close$','_type','_getDownloadEndpointURL','cursorInfo','{fileID}','url','_initModules','fillStyle','_colorAssignService','_socketReady','CONNECTOR_DATA_TOO_LARGE','_online','CollaborationStatusDisplay','_refreshCollabCursors','getUnitId','_queuedRemoteChangesets','backgroundColor','add','fetchMissingChangesets','UserManagerService','baseRev','_http','updateOfflineData','fill','confirm','_backgroundColor','engine','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','AUTHZ_URL_KEY','onSendChangeset','_anchorDot','handleIRemoveRow','UPDATE_CURSOR','_scheduleTimestamp','EXCHANGE_SIGN_URL_SERVER_URL_KEY','[DataLoaderController]','_shouldReportTelemetry','/rev/','saveChangeset','_startTelemetryCollaborationNewChangeset','getParam','IHTTPImplementation','getCollabEntity','addImageSourceCache','@univerjs/core','commentUpdateEvent','addEventListener','apply','currentSkeleton$','BehaviorSubject','triggerDblclick','/universer-api/stream/file/upload','PERMISSION_REJ','interceptor','isTransformChangesetsSuccess','@univerjs/drawing','WorkbookEditablePermission','unsubscribe','_context','onStateChange','_cursors','_docSkeleton','svg','_syncEditingCollabCursor','collab-text-anchor-','allowed','title','createElement','_userManagerService','Univer','createIdentifier','_transformIMECache','hide','dispose','href','random','/collaborator','tag','_updateStatus','_getSnapshotAPIPrefix','withCredentials','serializeCombRequest','_onConnectionFailed','key','concat','column','_unitID','univer-online-status-icon','connection\x20error','SEND_CHANGESET_TIMEOUT_KEY','HttpExport','color','jiqing500','65740vvwIMx','120ZYkEnZ','colorChannel1','setUndoRedoMutationParamsCache','idSuffix','endRow','removeMember','popstate','_socketMessageSubscription','FAIL','SNAPSHOT_INVALID_SNAPSHOT','Plugin','_removeCollabCursors','setCurrentUser','DeleteRangeMoveLeftCommandId','getRenderById','onlineStatusIcon','_handleHeartbeatEvent','RxDisposable','_transformPreviousActiveRange','LICENSE_EXPORT_SIZE_EXCEEDED','MoveRangeCommandId','USERS_ENTER','getTypeOfUnitDisposed$','SUCCUSS','selections','rxjs/operators','getItem','_clearUndo','WebSocketService','getValue','clipPath','SEND_CHANGESET_TIMEOUT','isEditing','registerRenderModule','restore','onMouseMove','_getAPIPrefix','ITelemetryService','_getRedoStack','NO_OTHER_CLIENTS_EDITING','SetWorksheetActivateCommand','YUUMI_RATE_OVER_LIMIT','SNAPSHOT_URL_KEY','takeUntil','COLLAB_WEB_SOCKET_URL','LEAVE','_getMergeRange','IDLE','getOwnPropertySymbols','evenodd','collaboration.single-unit.warning','_drawAnchor','debug','image/png','getMemberID','_waitForHeartbeatResponse','YUUMI_URL_COL_OUT_OF_RANGE','replaceState','csRejEvent','sessionStatus','MergeInterceptorFactory','headers','catch','updateCollaborator','_localCacheService','LIVESHARE_FETCH_OPERATIONS','responseType','@univerjs/engine-formula','forEach','delete','setWaitCount','UNIVER_PROJECT','UPDATE_PERMISSION_OBJ','concatMap','Rect','_docSyncEditingCollabCursorService','_beforeCloseService','_docTransformIMECacheService','ITransformService','conflict','INGEST','[UniverCollaborationClientPlugin]','_acknowledgedAwaitingChangeset','deserializeRangeWithSheet','setParam','max','_sendHeartbeat','session.collaboration-timeout','enableAuthServer','_localStorageService','_cachedData','data','verdancy600','getUnitOnRev','useDependency','&source=','putCollaborators','getOwnPropertyDescriptor','clearTimeout','getColor','slice','getSheetBySheetId','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','/universer-api/snapshot','_disabled','commentUpdate$','dispose$','onMissedChangesetFetched','collaborators','filter','urlChange$','Error\x20on\x20receiving\x20event','JOINING','save\x20fail\x20reason\x20is\x20','getUnitType','addObject','setAlpha','?size=','_clearLocalCache','_onRecvEvent','setShapeProps','lineTo','UUID','appendMutation','_initResize','#fff','revision','collab-rect-range-','Unknown\x20user','collabStatus.offline','@univerjs/design','IUIPartsService','assign','className','HTTPRequest','isTransformMutationFailure','body','syncEditingCollabCursor','_clearScheduledTask','none','useCallback','LocaleService','DataLoaderController','location','_sheetSkeletonManagerService','sequenceExecute','actions','_httpService','PSEUDO_FETCH_MISSING_RESULT','toDisposable','values','transform','DeleteRangeMoveUpCommandId','ILogService','_onOffline','subUnitId','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','RETRY_CONNECTING_MAX_COUNT','fromEventSubject','take','xlink:href','_disableEditing','/-/object/-/batch_allowed','pauseCollaboration','_clearRedo','defs','[CollaborationUndoRedoService]','EmptyMutation','startTime','failed\x20to\x20apply\x20missed\x20changesets!','_handleLeaveEvent','_name','_refRangeService','_stopTelemetryCollaborationNewChangeset','displayName','UniverCollaborationClientPlugin','_snapshotServerService','_registerRenderDependencies','init','asObservable','mapTo','unknown','EffectRefRangId','online','Module','_initStatusListener','transformRemoteChangeset','_createSocket','exhaustSavingTask','_isPermissionRej','?url=','DisposableCollection','_telemetryInfo','_lastPointer','awaitingChangeset','subunit','_send','IURLService','_collaborationTimeoutTimer','resolve','_checkMissing','then','_cursorShapes','_telemetryService','toggleOffline','handleDeleteRangeMoveLeft','disposeUnit','\x20in\x20_schedule.','_sheetTransformSelectionsService','_socket$','isValidRectRange','post','now','snapshotServerUrl','debounceTime','AuthzIoHttpService','path','_instanceService','SYNCED','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','FromArray','ACTIVE_UNIT_EVENT_CHANNEL','isTransformMutationsWithChangesetFailure','_saveTaskMap','getUnitStatus$','CollaborationEntity','_status$','snapshot','reconnect','_getCtorByUniverType','isActive','COLLAB_SUBMIT_CHANGESET_URL_KEY','@univerjs/sheets','[PendingState]:\x20unhandled\x20univer\x20type:\x20','fetch_missing','drawWith','round','_updateURLWithCurrentState','getCollabCursors$','resend','[OfflineState]:\x20received\x20acknowledgement.','onload','[FetchMissState]','_range','getUnit','_shapes','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_revisionService','complete','HELLO','ranges','_setupBeforeClosingHandler','react','OnLineSingle','error','registerOnClose','_scheduleClearOtherTimer','_updateLocalCursor','isTransformMutationsWithChangesetSuccess','APPLY_NON_SEQUENTIAL_REVISION','split','_init','_ws','deleteCollaborator','endColumn','_unlockTransition','_startSheetCollabCursor','FETCH_MISSING','_retryConnectingTimer','_updateCollabCursors','DocCollaborationEntity','_HTTPService','NOT_COLLAB','result','APPLY_REVISION_CONFILICT','IAuthzIoService','COLLAB_WEB_SOCKET_URL_KEY','UniverInstanceType','POST','_registerDependencies','size','cursorInfo$','[SyncedState]:\x20received\x20acknowledgement.','_tryReconnect','_transformRemoteChangesetByIMECache','collabStatus.notCollab','Subject','cmd','collabCursorState$','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','@univerjs/docs','_getUploadFileURL','set','update','_transformStack','getInterceptPoints','_clearHeartbeatTimer','executeCommand','_clearOtherTimers','reduce','_showConflictNotification','_renderManagerService','_state$','onPointerEnter$','_startDocCollabCursor','_onCombEvent','_scheduleCollaborationTimeoutTimer','save','selection','2171050FWbquZ','ThresholdInterceptorFactory','ColorKit','handleMoveRange','onReady','getCollabEntity$','ILocalStorageService','NodePositionConvertToCursor','Disposable','permission.title','onRemoteChangeset','/unit/','memberID','loadSheet','length','telemetry\x20info\x20is\x20not\x20initialized','_collabCursorState$','_onFetchMissResult','AWAITING_WITH_PENDING','_socket','onPointerLeave$','IBeforeCloseService','_hover','LIVESHARE_OPERATION','roles','getMember','setTimeout','every','_getSignURL','listRoles','delay','UNIVER_UNKNOWN','compose','HTTPService','OFFLINE','file','_getCurrentRevision','&to=','SNAPSHOT_SERVER_URL_KEY','_hovered','sessionStatus$','labelPosition','initWorkbookPermissionChange','m1Prime','/role','flatMap','collaMsg','_candidateSocket','/resources','all','currentTheme$','_docStateChangeManagerService','_clearCollaborationTimeoutTimer','UNKNOWN_CODE','getDeserializedSheetBlock','DocSelectionManagerService','collabStatus.conflict','height','_schedule','_retryCount','@univerjs-pro/license','c1Prime','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_onRefRangeChange','CommandType','_toggleOffline','FileId','MUTATION','offline','collab-client.tooltip.reconnect','type','state','RETRY_CONNECTING_MAX_COUNT_KEY','trim','OTHER_CLIENTS_EDITING','subscribe','_sessionStatus$','_onUserLeave','0\x200\x2016\x2016','PERMISSION_DENIED','handleInsertRangeMoveRight','_transformSelections','_eventUnsubscribe','YUUMI_UNABLE_LOAD_URL','/universer-api/authz','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','params','handleInsertRow','switchMap','_undoRedoService','RefRangeService','_collabCursorController','988320abuhHU','VIEWPORT_KEY','IImageIoService','_members','UNIVER_DOC','removeParam','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','image/bmp','_docTransformSelectionsService','objectActions','_initRequestHeader','_getScale','ALREADY_EXISTS','_collaborationSessionService','setItem','runRefRangeMutations','_unitStatus','_localeService','CONFLICT','_ensureSubject','getRelativeToViewportCoord','MSG_FOR_ERROR','CompressMutationService','string','transformIMECache','_loadDoc','LICENSE_MAX_UNITS_EXCEEDED','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','getCurrentRevOfUnit','@univerjs/ui','ws://127.0.0.1:8000/universer-api/comb/connect','attrs','_collaborationPaused','sendChangesetTimeout','_transformService','LocalUndoRedoService','299bSQAqu','PENDING','ImageSourceType','_docSkeletonManagerService','&assign=','open$','LICENSE_DISTRO_REJECTED','unitId','on-line-single_clip0_910_349','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','m2Prime','liveShareNewHost','onCommandExecuted','_unitOnClients','arc','reject','text','uploadFileServerUrl','HEARTBEAT_TIMEOUT','CHANGESET_ACK','originalMeta','extend','_onConflict','_change$','onRemoteAck','COMPLETION_FINISHED','getActiveRange','collabStatus.fetchMiss','get','RegularPolygon','subscribeEvent','APPLY_PERMISSION_DENIED','collaboratorID','fromCollab','deserializeToCombResponse','_anchor','collabWebSocketUrl','createSocket','disposeWithMe','_onRemoteACK','message$','error$','prototype','_getUndoStack','Optional','_awaitingChangeset','NOT_FOUND','ImageUploadStatusType','state$','conflict.content','roomMembers$','transformByState','awaiting','_decreaseWaiting','createCollaborator','_throwTelemetryCollaborationNewChangeset','unitID','_socketService','YUUMI_SUBSCRIPTION_NOT_FOUND','authzUrl','onRendered','retryConnectingInterval','_updateLocalCache','enableOfflineEditing','_memberService','collaboration.closeRoom','clear','/block/','827592cZKjXh','changesets','assignAColorForMemberID','SheetsSelectionsService','_onConnectionOpen','UnitSnapshot','COMPRESS_MUTATION_APPLY','action','_rescheduleHeartbeat','measureText','APPLY_REJECT','incrementRevOfUnit','function','Injector','[CollaborationSession]','SheetPermissionInitController','getCoordByCell','pluginName','univer-offline','IRenderManagerService','members','_univerInstanceService','makeDirty','SnapshotServerOverHTTPService','IUndoRedoService','skeleton','_sendingTimer','find','_render','_handleJoinEvent','_compressMutationService','_toggleOnline','blue400','TOO_MANY_REQUESTS','collabSubmitChangesetUrl','capture','fillText','IUniverInstanceService','parseChangesetToProtocol','name','[CollaborationSessionService]','\x20to\x20','[CollaborationState]:\x20apply\x20error!','synced','_entityInit$','_handleEvent','onRemoteRej','_session','_state','target','pushState','isArray','ICommandService','3025251khOign','UNKNOWN_CMD','readAsDataURL','7ZqTJit','_removeClearOtherTimer','IConfigService','_draw','touchDependencies','getConfig','shouldCloseConn','HttpImport','sheets','LIVESHARE_NEW_HOST','_createHandler','_roomMembers','_waitCount','_joinRoom','fetchMiss','DependentOn','_drawRectRange','IMessageService','textRanges','_urlService','/universer-api/file/{fileID}/sign-url','getDocRanges','socket$','LOGIN_URL_KEY','registerHTTPInterceptor','Tools','HEARTBEAT_INTERVAL_KEY','setConfig','[OfflineState]:\x20received\x20rejection.','JSONX','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','0\x200\x2017\x2016','SessionStatus','createInstance','saveOfflineData','UNDEFINED','_saveCache','_remoteChangesetQueue','isInternalEditorID','UnitEmbedded','handleDeleteRangeMoveUp','\x0aAfter:\x20','getSheetObject','range','history','fetchThroughInterceptors','src','_redoStacks','_clearTimeoutTimer','newCsEvent','black','json','USERS_LEAVE','_substituteRedoStack','setActiveRange','_commandService','unit','object','loadOfflineData','send','div','M0\x200H16V16H0z','_fetchMissChangesets','\x20-\x20','_getLoginPath','red300','shareReplay','joinRsp','FETCH_MISS','/object/','_colorIndex','_loadSheet','_handler','_getSaveTimeout','batchAllowed','Shape','univer-online-status-title','encode','MessageType','SHOULD_CLOSE_CONN','CollaborationSession','updatePermissionPoint','_applyRemoteChangeset','sheetId','activeSheet$','CHANGESET_REVISION_CONFILICT','Inject','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','ERROR_IMAGE_TYPE','focused$','_entities','954597xemJTI','_singleActiveUnitService','transformMutation','VIEW_MAIN','searchParams','SnapshotService','InsertRangeMoveDownCommandId','CHANGESET_REJ','parse','transformSelections','_cursorInfo$','_scheduleSaving','mapDocumentTypeToUniverType','substring','getTypeOfUnitAdded$','doc.mutation.rich-text-editing','reverse','on-line-single','_collabSessionService','c2Prime','_onRemoteRejected','from','collaboration_new_changeset','hasOwnProperty'];_0x995d=function(){return _0x45e97c;};return _0x995d();}Object[_0x2f1425(0x1cf)](exports,Symbol[_0x2f1425(0x19d)],{'value':_0x2f1425(0x302)});const a=require(_0x2f1425(0x218)),v=require('rxjs'),E=require(_0x2f1425(0x263)),X=require(_0x2f1425(0x2cc)),N=require(_0x2f1425(0x3f8)),P=require('@univerjs/network'),_=require(_0x2f1425(0x191)),Vt=require('@univerjs/telemetry'),V=require(_0x2f1425(0x36c)),w=require('@univerjs/docs-ui'),C=require(_0x2f1425(0x332)),R=require('@univerjs/engine-render'),L=require(_0x2f1425(0x223)),Je=require(_0x2f1425(0x28d)),te=require('@univerjs/sheets-ui'),U=require(_0x2f1425(0x346)),Wt=require('@univerjs/rpc'),Ft=require(_0x2f1425(0x3bb)),ht=_0x2f1425(0x3a5),Gt=_0x2f1425(0x2b1),_t=_0x2f1425(0x274),Yt=_0x2f1425(0x269),Kt=0x7d0,ut=_0x2f1425(0x276),Xt=_0x2f1425(0x3f9),dt='HEARTBEAT_INTERVAL',qt=0x7530,Ve=_0x2f1425(0x411),St=0x4e20,zt=0x4e20,vt=_0x2f1425(0x2e7),Jt=0x3,ft='LOCAL_CACHE_INTERVAL',Zt=0x3e8,gt=_0x2f1425(0x1c7),Qt='/universer-api/comb',mt=_0x2f1425(0x492),es='/universer-api/oidc/authpage';var It=(_0x7bf35=>(_0x7bf35[_0x7bf35[_0x2f1425(0x49e)]=0x0]=_0x2f1425(0x49e),_0x7bf35[_0x7bf35['OK']=0x1]='OK',_0x7bf35[_0x7bf35['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x7bf35[_0x7bf35[_0x2f1425(0x3ce)]=0x3]=_0x2f1425(0x3ce),_0x7bf35[_0x7bf35[_0x2f1425(0x42d)]=0x4]=_0x2f1425(0x42d),_0x7bf35[_0x7bf35[_0x2f1425(0x57b)]=0x5]='UNAUTHENTICATED',_0x7bf35[_0x7bf35[_0x2f1425(0x3e7)]=0x6]=_0x2f1425(0x3e7),_0x7bf35[_0x7bf35['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x7bf35[_0x7bf35['TOO_MANY_REQUESTS']=0x8]=_0x2f1425(0x464),_0x7bf35[_0x7bf35[_0x2f1425(0x418)]=0x9]=_0x2f1425(0x418),_0x7bf35[_0x7bf35[_0x2f1425(0x4d0)]=0x1389]=_0x2f1425(0x4d0),_0x7bf35[_0x7bf35[_0x2f1425(0x253)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x7bf35[_0x7bf35['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x7bf35[_0x7bf35[_0x2f1425(0x44d)]=0x1b59]=_0x2f1425(0x44d),_0x7bf35[_0x7bf35[_0x2f1425(0x34d)]=0x1b5a]=_0x2f1425(0x34d),_0x7bf35[_0x7bf35[_0x2f1425(0x35c)]=0x1b5b]=_0x2f1425(0x35c),_0x7bf35[_0x7bf35[_0x2f1425(0x41e)]=0x1b5c]=_0x2f1425(0x41e),_0x7bf35[_0x7bf35[_0x2f1425(0x1f6)]=0x1f41]=_0x2f1425(0x1f6),_0x7bf35[_0x7bf35[_0x2f1425(0x3f5)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x7bf35[_0x7bf35[_0x2f1425(0x528)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x7bf35[_0x7bf35[_0x2f1425(0x559)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x7bf35[_0x7bf35[_0x2f1425(0x25d)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x7bf35[_0x7bf35[_0x2f1425(0x405)]=0x232d]=_0x2f1425(0x405),_0x7bf35[_0x7bf35[_0x2f1425(0x3d2)]=0x2711]=_0x2f1425(0x3d2),_0x7bf35[_0x7bf35[_0x2f1425(0x282)]=0x2712]=_0x2f1425(0x282),_0x7bf35[_0x7bf35['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x2f1425(0x273),_0x7bf35[_0x7bf35[_0x2f1425(0x439)]=0x2714]=_0x2f1425(0x439),_0x7bf35[_0x7bf35[_0x2f1425(0x54f)]=-0x1]='UNRECOGNIZED',_0x7bf35))(It||{}),j=(_0x5f4dab=>(_0x5f4dab[_0x5f4dab['UNIVER_UNKNOWN']=0x0]=_0x2f1425(0x39e),_0x5f4dab[_0x5f4dab['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x5f4dab[_0x5f4dab[_0x2f1425(0x1bf)]=0x2]='UNIVER_SHEET',_0x5f4dab[_0x5f4dab[_0x2f1425(0x1df)]=0x3]=_0x2f1425(0x1df),_0x5f4dab[_0x5f4dab[_0x2f1425(0x291)]=0x4]=_0x2f1425(0x291),_0x5f4dab[_0x5f4dab[_0x2f1425(0x54f)]=-0x1]=_0x2f1425(0x54f),_0x5f4dab))(j||{}),b=(_0x28fcad=>(_0x28fcad[_0x28fcad[_0x2f1425(0x479)]=0x0]='UNKNOWN_CMD',_0x28fcad[_0x28fcad[_0x2f1425(0x343)]=0x1]='HELLO',_0x28fcad[_0x28fcad['JOIN']=0x2]=_0x2f1425(0x177),_0x28fcad[_0x28fcad[_0x2f1425(0x277)]=0x3]=_0x2f1425(0x277),_0x28fcad[_0x28fcad['INGEST']=0x4]='INGEST',_0x28fcad[_0x28fcad[_0x2f1425(0x197)]=0x5]=_0x2f1425(0x197),_0x28fcad[_0x28fcad[_0x2f1425(0x186)]=0x6]=_0x2f1425(0x186),_0x28fcad[_0x28fcad['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x28fcad))(b||{}),We=(_0x4cbdcf=>(_0x4cbdcf[_0x4cbdcf['UNKNOWN_CODE']=0x0]=_0x2f1425(0x3b4),_0x4cbdcf[_0x4cbdcf['OK']=0x1]='OK',_0x4cbdcf[_0x4cbdcf[_0x2f1425(0x252)]=0x2]=_0x2f1425(0x252),_0x4cbdcf[_0x4cbdcf['UNRECOGNIZED']=-0x1]=_0x2f1425(0x54f),_0x4cbdcf))(We||{}),pt=(_0x1763c9=>(_0x1763c9[_0x1763c9[_0x2f1425(0x525)]=0x0]=_0x2f1425(0x525),_0x1763c9[_0x1763c9[_0x2f1425(0x482)]=0x1]=_0x2f1425(0x482),_0x1763c9[_0x1763c9[_0x2f1425(0x246)]=0x2]=_0x2f1425(0x246),_0x1763c9[_0x1763c9[_0x2f1425(0x4a2)]=0x3]=_0x2f1425(0x4a2),_0x1763c9[_0x1763c9[_0x2f1425(0x448)]=0x4]=_0x2f1425(0x448),_0x1763c9[_0x1763c9[_0x2f1425(0x54f)]=-0x1]=_0x2f1425(0x54f),_0x1763c9))(pt||{});const A=_0x2f1425(0x503),ts={};function Ct(_0x394bab){const _0x3c6562=_0x2f1425;var _0x736ae2,_0x2d7081,_0x227efc,_0x38b94f;const _0x5e186f=_0x394bab[_0x3c6562(0x2a5)],_0x2031cd=JSON['parse'](_0x5e186f);switch(_0x2031cd[_0x3c6562(0x369)]){case b['HEARTBEAT']:case b[_0x3c6562(0x343)]:{const _0xcfa1ed=_0x2031cd['infoRsp'];return{..._0x2031cd,'data':_0xcfa1ed,'cmd':_0x2031cd[_0x3c6562(0x369)]};}case b[_0x3c6562(0x177)]:{const _0x5c7bf9=_0x2031cd[_0x3c6562(0x4be)];return{..._0x2031cd,'data':_0x5c7bf9,'cmd':_0x2031cd[_0x3c6562(0x369)]};}case b['RECV']:{const _0x109889=_0x2031cd[_0x3c6562(0x3ad)];switch(_0x109889[_0x3c6562(0x188)]){case _['CollaborationEvent'][_0x3c6562(0x220)]:return{..._0x2031cd,'data':{..._0x109889,'data':(_0x736ae2=_0x109889[_0x3c6562(0x563)])==null?void 0x0:_0x736ae2['cs']},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _[_0x3c6562(0x565)][_0x3c6562(0x412)]:return{..._0x2031cd,'data':{..._0x109889,'data':(_0x2d7081=_0x109889['csAckEvent'])==null?void 0x0:_0x2d7081['cs']},'cmd':_0x2031cd['cmd']};case _['CollaborationEvent']['NEW_CHANGESETS']:return{..._0x2031cd,'data':{..._0x109889,'data':(_0x227efc=_0x109889[_0x3c6562(0x4ac)])==null?void 0x0:_0x227efc['cs']},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _[_0x3c6562(0x565)][_0x3c6562(0x4dd)]:return{..._0x2031cd,'data':{..._0x109889,'data':(_0x38b94f=_0x109889[_0x3c6562(0x284)])==null?void 0x0:_0x38b94f['cs']},'cmd':_0x2031cd['cmd']};case _[_0x3c6562(0x565)][_0x3c6562(0x20c)]:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889[_0x3c6562(0x1b4)]},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _['CollaborationEvent'][_0x3c6562(0x25f)]:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889[_0x3c6562(0x543)]},'cmd':_0x2031cd['cmd']};case _[_0x3c6562(0x565)][_0x3c6562(0x4af)]:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889['leaveEvent']},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _[_0x3c6562(0x565)]['LIVESHARE_NEW_HOST']:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889['liveShareNewHost']},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _[_0x3c6562(0x565)][_0x3c6562(0x28b)]:case _['CollaborationEvent'][_0x3c6562(0x396)]:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889['liveShareOperation']},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _[_0x3c6562(0x565)]['LIVESHARE_TERMINATE']:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889[_0x3c6562(0x40a)]},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x2031cd,'data':_0x109889,'cmd':_0x2031cd['cmd']};case _[_0x3c6562(0x565)]['COMMENT_UPDATE']:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889[_0x3c6562(0x219)]},'cmd':_0x2031cd['cmd']};case _[_0x3c6562(0x565)][_0x3c6562(0x292)]:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889['updatePermissionObjEvent']},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _[_0x3c6562(0x565)]['SHOULD_CLOSE_CONN']:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889[_0x3c6562(0x481)]},'cmd':_0x2031cd[_0x3c6562(0x369)]};default:return _0x2031cd;}}default:return _0x2031cd;}}function Et(_0x1d6e91){const _0x344def=_0x2f1425;switch(_0x1d6e91[_0x344def(0x369)]){case b[_0x344def(0x197)]:case b[_0x344def(0x343)]:return JSON['stringify']({'cmd':_0x1d6e91['cmd'],'routeKey':_0x1d6e91[_0x344def(0x52e)]});case b[_0x344def(0x29a)]:{let _0x30b4fc;switch(_0x1d6e91[_0x344def(0x2a5)][_0x344def(0x188)]){case _[_0x344def(0x565)][_0x344def(0x20c)]:{_0x30b4fc={'eventID':_[_0x344def(0x565)][_0x344def(0x20c)],'updateCursorEvent':_0x1d6e91[_0x344def(0x2a5)][_0x344def(0x2a5)]};break;}case _[_0x344def(0x565)][_0x344def(0x4af)]:{_0x30b4fc={'eventID':_[_0x344def(0x565)]['USERS_LEAVE'],'leaveEvent':_0x1d6e91['data'][_0x344def(0x2a5)]};break;}case _[_0x344def(0x565)][_0x344def(0x25f)]:{_0x30b4fc={'eventID':_[_0x344def(0x565)][_0x344def(0x25f)],'joinEvent':_0x1d6e91[_0x344def(0x2a5)][_0x344def(0x2a5)]};break;}case _[_0x344def(0x565)][_0x344def(0x484)]:{_0x30b4fc={'eventID':_[_0x344def(0x565)][_0x344def(0x484)],'liveShareNewHost':_0x1d6e91['data'][_0x344def(0x2a5)]};break;}case _[_0x344def(0x565)][_0x344def(0x396)]:{_0x30b4fc={'eventID':_[_0x344def(0x565)][_0x344def(0x396)],'liveShareOperation':_0x1d6e91[_0x344def(0x2a5)][_0x344def(0x2a5)]};break;}case _[_0x344def(0x565)]['LIVESHARE_TERMINATE']:{_0x30b4fc={'eventID':_[_0x344def(0x565)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x1d6e91['data']['data']};break;}case _['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:{_0x30b4fc={'eventID':_['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x1d6e91[_0x344def(0x2a5)]['data']};break;}case _[_0x344def(0x565)][_0x344def(0x28b)]:{_0x30b4fc={'eventID':_[_0x344def(0x565)][_0x344def(0x28b)]};break;}default:_0x30b4fc={'eventID':_0x1d6e91['data'][_0x344def(0x188)]};}return JSON[_0x344def(0x1d5)]({'cmd':_0x1d6e91['cmd'],'routeKey':_0x1d6e91['routeKey'],'collaMsg':_0x30b4fc});}case b['JOIN']:return JSON[_0x344def(0x1d5)]({'cmd':_0x1d6e91[_0x344def(0x369)],'routeKey':_0x1d6e91['routeKey'],'joinReq':_0x1d6e91[_0x344def(0x2a5)]});case b['LEAVE']:return JSON[_0x344def(0x1d5)]({'cmd':_0x1d6e91[_0x344def(0x369)],'routeKey':_0x1d6e91[_0x344def(0x52e)],'leaveReq':_0x1d6e91[_0x344def(0x2a5)]});default:throw new Error(_0x344def(0x36b));}}var ss=Object[_0x2f1425(0x1cf)],is=Object[_0x2f1425(0x2ab)],ns=(_0x153e86,_0x46b654,_0x1d7511,_0x2dcb50)=>{for(var _0x263578=_0x2dcb50>0x1?void 0x0:_0x2dcb50?is(_0x46b654,_0x1d7511):_0x46b654,_0x27fe71=_0x153e86['length']-0x1,_0x33ba63;_0x27fe71>=0x0;_0x27fe71--)(_0x33ba63=_0x153e86[_0x27fe71])&&(_0x263578=(_0x2dcb50?_0x33ba63(_0x46b654,_0x1d7511,_0x263578):_0x33ba63(_0x263578))||_0x263578);return _0x2dcb50&&_0x263578&&ss(_0x46b654,_0x1d7511,_0x263578),_0x263578;},oe=(_0x1ae20d,_0x52df62)=>(_0x2a25cc,_0x1da1ce)=>_0x52df62(_0x2a25cc,_0x1da1ce,_0x1ae20d);const Fe=a[_0x2f1425(0x232)](_0x2f1425(0x1a5));function rs(_0x1837c4,_0x2e36aa,_0x1158a4){const _0x421be9=_0x2f1425;return _0x1837c4+'/'+_0x2e36aa+_0x421be9(0x38a)+_0x1158a4+_0x421be9(0x50f);}exports[_0x2f1425(0x19b)]=class extends a[_0x2f1425(0x387)]{constructor(_0x16caa9,_0x14b2fd,_0x13b67e,_0x233d49,_0x5917b4){const _0x245426=_0x2f1425;super(),this['_http']=_0x16caa9,this[_0x245426(0x350)]=_0x14b2fd,this[_0x245426(0x1c3)]=_0x13b67e,this[_0x245426(0x562)]=_0x233d49,this[_0x245426(0x2fa)]=_0x5917b4;}[_0x2f1425(0x424)](_0x40ed34){const _0x4af499=_0x2f1425,_0x1e7206=this[_0x4af499(0x350)]['createSocket'](_0x40ed34);if(!_0x1e7206)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x534443=new a[(_0x4af499(0x309))](),_0x3b2be5=new v[(_0x4af499(0x368))]();_0x534443[_0x4af499(0x1fd)](_0x1e7206[_0x4af499(0x1ec)][_0x4af499(0x3ca)](_0x1472e2=>_0x3b2be5[_0x4af499(0x500)](_0x1472e2))),_0x534443['add'](a[_0x4af499(0x2df)](()=>_0x3b2be5[_0x4af499(0x342)]()));const _0x4f364e=new v[(_0x4af499(0x368))]();_0x534443[_0x4af499(0x1fd)](_0x1e7206[_0x4af499(0x428)]['subscribe'](_0x34e18b=>_0x4f364e[_0x4af499(0x500)](_0x34e18b))),_0x534443[_0x4af499(0x1fd)](a[_0x4af499(0x2df)](()=>_0x4f364e[_0x4af499(0x342)]()));const _0x55b9a5=new v[(_0x4af499(0x368))]();_0x534443[_0x4af499(0x1fd)](_0x1e7206[_0x4af499(0x427)][_0x4af499(0x3ca)](_0x3d5420=>{const _0x41c217=_0x4af499,_0x433106=Ct(_0x3d5420);_0x55b9a5[_0x41c217(0x500)](_0x433106);})),_0x534443['add'](a['toDisposable'](()=>_0x55b9a5[_0x4af499(0x342)]()));let _0x656385;const _0x299656=()=>{const _0x52bf38=_0x4af499;_0x4f364e[_0x52bf38(0x500)](new Event(_0x52bf38(0x244))),_0x3b2be5['next'](new CloseEvent(_0x52bf38(0x244))),_0x656385[_0x52bf38(0x533)]();};return _0x656385={'memberID':'','close$':_0x3b2be5[_0x4af499(0x2fd)](),'error$':_0x4f364e[_0x4af499(0x2fd)](),'open$':_0x1e7206[_0x4af499(0x404)],'message$':_0x55b9a5[_0x4af499(0x2fd)](),'send':_0x2c726a=>{const _0x1598a1=_0x4af499;if(_0x2c726a[_0x1598a1(0x369)]===b[_0x1598a1(0x29a)]){if(_0x2c726a[_0x1598a1(0x2a5)][_0x1598a1(0x188)]===_[_0x1598a1(0x565)]['SUBMIT_CHANGESET']){this['_submitChangeset'](_0x656385,_0x2c726a['data'])[_0x1598a1(0x288)](_0x31c340=>{const _0x57582f=_0x1598a1;this[_0x57582f(0x562)][_0x57582f(0x348)](_0x31c340),_0x299656();});return;}if(_0x2c726a[_0x1598a1(0x2a5)][_0x1598a1(0x188)]===_[_0x1598a1(0x565)][_0x1598a1(0x355)]){const _0x4d48c5=_0x2c726a[_0x1598a1(0x2a5)];this[_0x1598a1(0x4b9)](_0x4d48c5)['then'](_0x3a7a9a=>{const _0x2f957c=_0x1598a1;_0x55b9a5['next']({'cmd':b[_0x2f957c(0x186)],'code':We['OK'],'routeKey':_0x4d48c5[_0x2f957c(0x2a5)][_0x2f957c(0x437)],'routeType':'','data':{'eventID':_[_0x2f957c(0x565)][_0x2f957c(0x2de)],'data':{'changesets':_0x3a7a9a}}});})['catch'](_0x3cf383=>{this['_logService']['error'](_0x3cf383),_0x299656();});return;}}_0x1e7206[_0x1598a1(0x4b6)](Et(_0x2c726a));},'close':()=>{const _0x38755e=_0x4af499;_0x1e7206['close'](),_0x534443[_0x38755e(0x235)]();}},_0x656385;}async['_submitChangeset'](_0x49f290,_0x56a844){const _0x36497d=_0x2f1425;var _0xdf0df3,_0xf0d4b6;const {unitType:_0x23b3e8,unitID:_0x128bfa,changeset:_0x7210d0}=_0x56a844[_0x36497d(0x2a5)],_0x565860={'unitID':_0x128bfa,'memberID':_0x49f290['memberID'],'type':_0x23b3e8,'changeset':_[_0x36497d(0x469)](_0x7210d0)},_0x4167fd=this['_configService'][_0x36497d(0x480)](gt),_0xa4cb98=this[_0x36497d(0x1c3)][_0x36497d(0x480)](A),_0x29f031=rs((_0xf0d4b6=(_0xdf0df3=_0xa4cb98==null?void 0x0:_0xa4cb98[_0x36497d(0x465)])!=null?_0xdf0df3:_0x4167fd)!=null?_0xf0d4b6:Qt,_0x23b3e8,_0x128bfa);try{await this[_0x36497d(0x201)][_0x36497d(0x31d)](_0x29f031,{'body':_0x565860});}catch(_0x52b8c0){throw this['_logService'][_0x36497d(0x348)](_0x36497d(0x451),_0x36497d(0x1d9)),_0x52b8c0;}}async[_0x2f1425(0x4b9)](_0x167b49){const _0x541644=_0x2f1425,{unitID:_0xde33af,from:_0x31c729,to:_0xb77176,unitType:_0x5b01c8}=_0x167b49[_0x541644(0x2a5)];return(await this[_0x541644(0x2fa)][_0x541644(0x1fe)]({'metadata':void 0x0},{'unitID':_0xde33af,'type':_0x5b01c8,'from':_0x31c729,'to':_0xb77176}))['changesets'];}},exports[_0x2f1425(0x19b)]=ns([oe(0x0,a['Inject'](P[_0x2f1425(0x3a0)])),oe(0x1,a['Inject'](P[_0x2f1425(0x266)])),oe(0x2,a[_0x2f1425(0x47d)]),oe(0x3,a[_0x2f1425(0x2e3)]),oe(0x4,_['ISnapshotServerService'])],exports[_0x2f1425(0x19b)]);const os=_0x2f1425(0x4ec);function as(_0x397ece){const _0x4226f3=_0x2f1425;return JSON[_0x4226f3(0x1d5)](_0x397ece)[_0x4226f3(0x38d)];}class Ge{constructor(){const _0x1e6199=_0x2f1425;d(this,_0x1e6199(0x546),new v[(_0x1e6199(0x368))]()),d(this,_0x1e6199(0x2b3),this[_0x1e6199(0x546)][_0x1e6199(0x2fd)]());}[_0x2f1425(0x502)](_0x2856f2){const _0x1a6f52=_0x2f1425;this[_0x1a6f52(0x546)][_0x1a6f52(0x500)](_0x2856f2);}}var cs=Object['defineProperty'],ls=Object[_0x2f1425(0x2ab)],hs=(_0x225c15,_0x28d82b,_0x125e8b,_0x3ced1c)=>{const _0x460a35=_0x2f1425;for(var _0x817b3=_0x3ced1c>0x1?void 0x0:_0x3ced1c?ls(_0x28d82b,_0x125e8b):_0x28d82b,_0x349914=_0x225c15[_0x460a35(0x38d)]-0x1,_0x329820;_0x349914>=0x0;_0x349914--)(_0x329820=_0x225c15[_0x349914])&&(_0x817b3=(_0x3ced1c?_0x329820(_0x28d82b,_0x125e8b,_0x817b3):_0x329820(_0x817b3))||_0x817b3);return _0x3ced1c&&_0x817b3&&cs(_0x28d82b,_0x125e8b,_0x817b3),_0x817b3;},Ze=(_0x569619,_0x4b11c6)=>(_0x7c4248,_0x31b2da)=>_0x4b11c6(_0x7c4248,_0x31b2da,_0x569619);let q=class extends a[_0x2f1425(0x387)]{constructor(_0x396234,_0x4460dd){const _0x38ebcf=_0x2f1425;super(),d(this,_0x38ebcf(0x486),new Map()),(this[_0x38ebcf(0x458)]=_0x396234,this[_0x38ebcf(0x230)]=_0x4460dd,this[_0x38ebcf(0x425)](a['toDisposable'](v[_0x38ebcf(0x18a)](this['_univerInstanceService'][_0x38ebcf(0x260)](a['UniverInstanceType'][_0x38ebcf(0x1bf)])['pipe'](E[_0x38ebcf(0x1c9)](_0x107d9c=>_0x107d9c['getUnitId']())),this[_0x38ebcf(0x458)][_0x38ebcf(0x260)](a['UniverInstanceType']['UNIVER_DOC'])[_0x38ebcf(0x53d)](E[_0x38ebcf(0x1c9)](_0x3f83df=>_0x3f83df[_0x38ebcf(0x1fa)]())),this[_0x38ebcf(0x458)]['getTypeOfUnitDisposed$'](a[_0x38ebcf(0x35f)][_0x38ebcf(0x1df)])[_0x38ebcf(0x53d)](E[_0x38ebcf(0x1c9)](_0xc4c7a6=>_0xc4c7a6[_0x38ebcf(0x1fa)]())))[_0x38ebcf(0x3ca)](_0x3501ba=>this['_removeRoom'](_0x3501ba)))));}[_0x2f1425(0x256)](_0x3b01c9){const _0xa30072=_0x2f1425;this[_0xa30072(0x230)][_0xa30072(0x256)](_0x3b01c9);}[_0x2f1425(0x187)](){const _0x5493b9=_0x2f1425;return this[_0x5493b9(0x230)]['getCurrentUser']();}[_0x2f1425(0x179)](_0x2a53d3,_0x251d2a){const _0x1c0cda=_0x2f1425;let _0x23975d=this['_roomMembers']['get'](_0x2a53d3);_0x23975d||(_0x23975d=new _s(),this[_0x1c0cda(0x486)][_0x1c0cda(0x36e)](_0x2a53d3,_0x23975d)),_0x23975d[_0x1c0cda(0x179)](_0x251d2a);}[_0x2f1425(0x24f)](_0x3ed5ec,_0x226323){const _0x364dd4=_0x2f1425,_0x522bbd=this[_0x364dd4(0x486)]['get'](_0x3ed5ec);_0x522bbd&&_0x522bbd[_0x364dd4(0x24f)](_0x226323);}[_0x2f1425(0x54b)](_0x86936c){return this['_roomMembers']['get'](_0x86936c);}[_0x2f1425(0x398)](_0x14e09e,_0x30af88){const _0x170f58=_0x2f1425,_0x1bc06f=this['_roomMembers'][_0x170f58(0x41b)](_0x14e09e);if(_0x1bc06f)return _0x1bc06f[_0x170f58(0x398)](_0x30af88);}[_0x2f1425(0x54a)](_0x9b76fc){const _0x4ebe2d=_0x2f1425,_0x46c568=this[_0x4ebe2d(0x486)][_0x4ebe2d(0x41b)](_0x9b76fc);_0x46c568&&(_0x46c568[_0x4ebe2d(0x235)](),this[_0x4ebe2d(0x486)][_0x4ebe2d(0x28f)](_0x9b76fc));}[_0x2f1425(0x235)](){const _0x4b5659=_0x2f1425;this[_0x4b5659(0x486)][_0x4b5659(0x28e)](_0x2925c2=>_0x2925c2[_0x4b5659(0x235)]()),this[_0x4b5659(0x486)][_0x4b5659(0x441)]();}};q=hs([Ze(0x0,a['IUniverInstanceService']),Ze(0x1,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x1ff)]))],q);class _s extends a['Disposable']{constructor(){super(...arguments),d(this,'_members',new Map());}[_0x2f1425(0x235)](){const _0xcb2e8=_0x2f1425;this['_members'][_0xcb2e8(0x441)]();}[_0x2f1425(0x179)](_0x11c0b7){const _0x3539f9=_0x2f1425;this['_members'][_0x3539f9(0x36e)](_0x11c0b7[_0x3539f9(0x38b)],_0x11c0b7);}[_0x2f1425(0x24f)](_0x44aeb1){const _0x4b66c7=_0x2f1425;this[_0x4b66c7(0x3de)][_0x4b66c7(0x28f)](_0x44aeb1);}[_0x2f1425(0x398)](_0x5b70c0){const _0x39ef5c=_0x2f1425;return this[_0x39ef5c(0x3de)][_0x39ef5c(0x41b)](_0x5b70c0);}}var us=Object[_0x2f1425(0x1cf)],ds=Object[_0x2f1425(0x2ab)],Ss=(_0x5f4e78,_0x4b8218,_0x619fa2,_0x9c8508)=>{for(var _0x22f3ce=_0x9c8508>0x1?void 0x0:_0x9c8508?ds(_0x4b8218,_0x619fa2):_0x4b8218,_0x4094c0=_0x5f4e78['length']-0x1,_0xb19bb9;_0x4094c0>=0x0;_0x4094c0--)(_0xb19bb9=_0x5f4e78[_0x4094c0])&&(_0x22f3ce=(_0x9c8508?_0xb19bb9(_0x4b8218,_0x619fa2,_0x22f3ce):_0xb19bb9(_0x22f3ce))||_0x22f3ce);return _0x9c8508&&_0x22f3ce&&us(_0x4b8218,_0x619fa2,_0x22f3ce),_0x22f3ce;},B=(_0x540230,_0x2909fa)=>(_0x4b1a52,_0x47e8ec)=>_0x2909fa(_0x4b1a52,_0x47e8ec,_0x540230),$=(_0x13ea19=>(_0x13ea19[_0x13ea19[_0x2f1425(0x279)]=0x0]=_0x2f1425(0x279),_0x13ea19[_0x13ea19[_0x2f1425(0x2ba)]=0x1]='JOINING',_0x13ea19[_0x13ea19[_0x2f1425(0x3a1)]=0x2]='OFFLINE',_0x13ea19[_0x13ea19[_0x2f1425(0x1cd)]=0x3]=_0x2f1425(0x1cd),_0x13ea19))($||{});exports[_0x2f1425(0x4cb)]=class extends a[_0x2f1425(0x25b)]{constructor(_0x36b7fd,_0x3006c8,_0x3c5064,_0x278f39,_0x5d328c,_0x43860c,_0xd25b4a,_0x54d663,_0x50b3ca,_0x2ed8b0){const _0x1df250=_0x2f1425;super(),d(this,_0x1df250(0x3cb),new v[(_0x1df250(0x21d))](0x0)),d(this,_0x1df250(0x3a7),this['_sessionStatus$'][_0x1df250(0x2fd)]()),d(this,_0x1df250(0x50d),new v['Subject']()),d(this,_0x1df250(0x4f8),this[_0x1df250(0x50d)][_0x1df250(0x2fd)]()),d(this,'_socket'),d(this,'_socketMessageSubscription'),d(this,'_collaborationTimeoutTimer'),d(this,_0x1df250(0x210),!0x1),d(this,_0x1df250(0x30a),null),(this[_0x1df250(0x242)]=_0x36b7fd,this[_0x1df250(0x562)]=_0x3c5064,this[_0x1df250(0x296)]=_0x278f39,this[_0x1df250(0x1e2)]=_0x5d328c,this[_0x1df250(0x1c3)]=_0x43860c,this[_0x1df250(0x3ec)]=_0xd25b4a,this[_0x1df250(0x43f)]=_0x54d663,this[_0x1df250(0x176)]=_0x50b3ca,this[_0x1df250(0x315)]=_0x2ed8b0,this['_shouldReportTelemetry']=!!this[_0x1df250(0x315)],_0x3006c8[_0x1df250(0x53d)](v[_0x1df250(0x275)](this['dispose$']))[_0x1df250(0x3ca)](_0x2a7279=>{const _0x29428c=_0x1df250;var _0x38ee86;typeof _0x2a7279>'u'||(this[_0x29428c(0x392)]=_0x2a7279,_0x2a7279?(this[_0x29428c(0x488)](_0x2a7279),this[_0x29428c(0x251)]=_0x2a7279['message$'][_0x29428c(0x3ca)](_0x44ba57=>{const _0x221c06=_0x29428c;_0x44ba57[_0x221c06(0x52e)]===this[_0x221c06(0x242)]&&this['_onCombEvent'](_0x44ba57);})):(this[_0x29428c(0x436)](),this[_0x29428c(0x3cb)][_0x29428c(0x500)](0x2),(_0x38ee86=this['_socketMessageSubscription'])==null||_0x38ee86[_0x29428c(0x225)](),this[_0x29428c(0x251)]=null));}),this[_0x1df250(0x425)](this[_0x1df250(0x296)][_0x1df250(0x349)](()=>{const _0x244617=_0x1df250;var _0x426a08;(_0x426a08=this[_0x244617(0x392)])==null||_0x426a08[_0x244617(0x4b6)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0x244617(0x242)]}});})));}get[_0x2f1425(0x285)](){const _0x5bcd1c=_0x2f1425;return this[_0x5bcd1c(0x3cb)][_0x5bcd1c(0x267)]();}[_0x2f1425(0x280)](){const _0x5a2145=_0x2f1425;var _0x31c2cc,_0xcabd34;return(_0xcabd34=(_0x31c2cc=this[_0x5a2145(0x392)])==null?void 0x0:_0x31c2cc['memberID'])!=null?_0xcabd34:null;}['dispose'](){const _0x66a80b=_0x2f1425;super['dispose'](),this[_0x66a80b(0x2b4)][_0x66a80b(0x500)](),this[_0x66a80b(0x2b4)][_0x66a80b(0x342)]();}[_0x2f1425(0x533)](){const _0x1049c2=_0x2f1425;var _0x31f567,_0x4eb6cc;this[_0x1049c2(0x436)](),(_0x31f567=this[_0x1049c2(0x392)])==null||_0x31f567[_0x1049c2(0x4b6)]({'cmd':b[_0x1049c2(0x277)],'data':{'roomID':this[_0x1049c2(0x242)]}}),(_0x4eb6cc=this[_0x1049c2(0x392)])==null||_0x4eb6cc[_0x1049c2(0x533)](),this[_0x1049c2(0x50d)]['complete'](),this['_sessionStatus$'][_0x1049c2(0x342)](),this['dispose']();}[_0x2f1425(0x37b)](_0x39e7c9){const _0x96a2b0=_0x2f1425;_0x39e7c9['cmd']===b['JOIN']?this[_0x96a2b0(0x4fc)](_0x39e7c9):_0x39e7c9[_0x96a2b0(0x369)]===b[_0x96a2b0(0x186)]&&this[_0x96a2b0(0x2c1)](_0x39e7c9);}['_joinRoom'](_0x468455){const _0x27debd=_0x2f1425;this['_sessionStatus$'][_0x27debd(0x500)](0x1),_0x468455[_0x27debd(0x4b6)]({'cmd':b['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x27debd(0x242)]}]}});}['_onJoinRoomEvent'](_0xbc9fb){const _0x4d8350=_0x2f1425;var _0xd53e87;if(_0xbc9fb['code']===We['FAIL']){this[_0x4d8350(0x1e2)][_0x4d8350(0x1b9)]({'type':X[_0x4d8350(0x4c9)][_0x4d8350(0x501)],'content':this[_0x4d8350(0x3ec)]['t']('session.room-full')}),this[_0x4d8350(0x3cb)][_0x4d8350(0x500)](0x2);return;}this[_0x4d8350(0x3cb)]['next'](0x3);const _0x401642=(_0xd53e87=_0xbc9fb[_0x4d8350(0x2a5)][_0x4d8350(0x507)][this[_0x4d8350(0x242)]])==null?void 0x0:_0xd53e87[_0x4d8350(0x457)];_0x401642&&_0x401642[_0x4d8350(0x28e)](_0x390acc=>this[_0x4d8350(0x43f)][_0x4d8350(0x179)](this[_0x4d8350(0x242)],_0x390acc));}[_0x2f1425(0x2c1)](_0x3f0f27){const _0x5ba541=_0x2f1425;try{const _0x4707dd=_0x3f0f27[_0x5ba541(0x2a5)];switch(_0x4707dd[_0x5ba541(0x188)]){case _['CollaborationEvent'][_0x5ba541(0x25f)]:this['_onUserJoin'](_0x4707dd),this[_0x5ba541(0x50d)][_0x5ba541(0x500)](_0x4707dd);break;case _['CollaborationEvent'][_0x5ba541(0x4af)]:this[_0x5ba541(0x3cc)](_0x4707dd),this[_0x5ba541(0x50d)][_0x5ba541(0x500)](_0x4707dd);break;case _[_0x5ba541(0x565)][_0x5ba541(0x412)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x5ba541(0x3b3)](),this['_event$'][_0x5ba541(0x500)](_0x4707dd);break;case _[_0x5ba541(0x565)][_0x5ba541(0x3f0)]:this[_0x5ba541(0x562)][_0x5ba541(0x348)](_0x5ba541(0x2bb)+JSON[_0x5ba541(0x1d5)](_0x4707dd)),this[_0x5ba541(0x50d)][_0x5ba541(0x500)](_0x4707dd);break;case _[_0x5ba541(0x565)]['COMMENT_UPDATE']:this[_0x5ba541(0x176)][_0x5ba541(0x502)](_0x4707dd['data']),this[_0x5ba541(0x50d)][_0x5ba541(0x500)](_0x4707dd);break;default:this['_event$'][_0x5ba541(0x500)](_0x4707dd);}}catch(_0x174cc7){this[_0x5ba541(0x562)][_0x5ba541(0x348)](_0x174cc7,_0x3f0f27);}}['_onUserJoin'](_0x48a934){const _0xa38883=_0x2f1425;this[_0xa38883(0x43f)]['updateMember'](this[_0xa38883(0x242)],_0x48a934['data']);}['_onUserLeave'](_0x5d798a){const _0x19a55f=_0x2f1425;this['_memberService'][_0x19a55f(0x24f)](this['_unitID'],_0x5d798a[_0x19a55f(0x2a5)][_0x19a55f(0x38b)]);}async[_0x2f1425(0x4b6)](_0x5ece4a,_0x15a930){const _0x32ea71=_0x2f1425;if(this[_0x32ea71(0x285)]!==0x3||!this[_0x32ea71(0x392)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x5ece4a['eventID']===_[_0x32ea71(0x565)][_0x32ea71(0x549)]&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x5ece4a)),this['_socket'][_0x32ea71(0x4b6)]({'cmd':b[_0x32ea71(0x29a)],'routeKey':_0x15a930,'routeType':'','data':_0x5ece4a});}catch(_0x2d4e37){this[_0x32ea71(0x562)][_0x32ea71(0x348)](_0x2d4e37);}}[_0x2f1425(0x37c)](){const _0x341d26=_0x2f1425;var _0x28e4de;this['_collaborationTimeoutTimer']=window[_0x341d26(0x399)](()=>{const _0x192186=_0x341d26;this[_0x192186(0x310)]=null,this[_0x192186(0x1e2)][_0x192186(0x1b9)]({'type':X[_0x192186(0x4c9)][_0x192186(0x1b1)],'content':this['_localeService']['t'](_0x192186(0x2a1))});},(_0x28e4de=this[_0x341d26(0x1c3)]['getConfig'](Ve))!=null?_0x28e4de:St);}[_0x2f1425(0x3b3)](){const _0x41cec9=_0x2f1425;this[_0x41cec9(0x310)]&&(clearTimeout(this[_0x41cec9(0x310)]),this[_0x41cec9(0x310)]=null);}[_0x2f1425(0x213)](_0x4355aa){const _0x14de40=_0x2f1425;if(!this[_0x14de40(0x210)])return;const {data:_0x25ba91}=_0x4355aa,{unitID:_0x17830a,changeset:_0x4abb46}=_0x25ba91,{mutations:_0x361355,type:_0xf94e5e}=_0x4abb46;this['_telemetryInfo']={'unitId':_0x17830a,'type':_0xf94e5e,'startTime':performance[_0x14de40(0x31e)](),'stopTime':0x0,'duration':0x0,'size':as(_0x361355)};}[_0x2f1425(0x2f7)](){const _0x28d6e6=_0x2f1425;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this[_0x28d6e6(0x562)]['error'](_0x28d6e6(0x451),_0x28d6e6(0x38e));return;}this[_0x28d6e6(0x30a)][_0x28d6e6(0x550)]=performance[_0x28d6e6(0x31e)](),this['_telemetryInfo']['duration']=this[_0x28d6e6(0x30a)][_0x28d6e6(0x550)]-this[_0x28d6e6(0x30a)][_0x28d6e6(0x2f2)],this[_0x28d6e6(0x315)][_0x28d6e6(0x466)](os,this[_0x28d6e6(0x30a)]),this[_0x28d6e6(0x30a)]=null;}}[_0x2f1425(0x436)](){this['_telemetryInfo']=null;}},exports[_0x2f1425(0x4cb)]=Ss([B(0x2,a['ILogService']),B(0x3,N[_0x2f1425(0x394)]),B(0x4,N[_0x2f1425(0x48c)]),B(0x5,a[_0x2f1425(0x47d)]),B(0x6,a['Inject'](a[_0x2f1425(0x2d7)])),B(0x7,a[_0x2f1425(0x4d1)](q)),B(0x8,a[_0x2f1425(0x4d1)](Ge)),B(0x9,a[_0x2f1425(0x42b)](Vt[_0x2f1425(0x26f)]))],exports['CollaborationSession']);var vs=Object[_0x2f1425(0x1cf)],fs=Object[_0x2f1425(0x2ab)],gs=(_0x21c2dd,_0x534547,_0x53104c,_0x5ea21e)=>{for(var _0x5082ee=_0x5ea21e>0x1?void 0x0:_0x5ea21e?fs(_0x534547,_0x53104c):_0x534547,_0x576cc1=_0x21c2dd['length']-0x1,_0x480e9b;_0x576cc1>=0x0;_0x576cc1--)(_0x480e9b=_0x21c2dd[_0x576cc1])&&(_0x5082ee=(_0x5ea21e?_0x480e9b(_0x534547,_0x53104c,_0x5082ee):_0x480e9b(_0x5082ee))||_0x5082ee);return _0x5ea21e&&_0x5082ee&&vs(_0x534547,_0x53104c,_0x5082ee),_0x5082ee;},Z=(_0x2b72cd,_0x40d89c)=>(_0x169ff4,_0x512163)=>_0x40d89c(_0x169ff4,_0x512163,_0x2b72cd);exports[_0x2f1425(0x1d4)]=class extends a[_0x2f1425(0x387)]{constructor(_0x42cefb,_0x1ad053,_0x56b8b1,_0x250d6e,_0xeccfd8,_0x272b77){const _0x4a46f4=_0x2f1425;super(),d(this,_0x4a46f4(0x31b),new v[(_0x4a46f4(0x21d))](void 0x0)),d(this,_0x4a46f4(0x491),this[_0x4a46f4(0x31b)][_0x4a46f4(0x2fd)]()),d(this,_0x4a46f4(0x3ae),null),d(this,_0x4a46f4(0x1a1),new Map()),d(this,_0x4a46f4(0x32c),new v[(_0x4a46f4(0x21d))]($['IDLE'])),d(this,_0x4a46f4(0x56d),this[_0x4a46f4(0x32c)][_0x4a46f4(0x2fd)]()),d(this,_0x4a46f4(0x1f5),!0x1),d(this,'_retryConnectingTimer'),d(this,_0x4a46f4(0x3ba),0x0),d(this,'_sendHeartbeatTimer'),d(this,'_timeoutTimer'),(this['_injector']=_0x42cefb,this['_localeService']=_0x1ad053,this[_0x4a46f4(0x1e2)]=_0x56b8b1,this[_0x4a46f4(0x562)]=_0x250d6e,this['_configService']=_0xeccfd8,this[_0x4a46f4(0x438)]=_0x272b77,this['_initEventListeners']());}get[_0x2f1425(0x392)](){const _0x585720=_0x2f1425;return this[_0x585720(0x31b)][_0x585720(0x267)]();}[_0x2f1425(0x4f5)](){const _0x395310=_0x2f1425;this['_listenToOfflineEvent'](),this[_0x395310(0x4f9)]();}[_0x2f1425(0x235)](){const _0xba836c=_0x2f1425;super[_0xba836c(0x235)](),this[_0xba836c(0x1a1)][_0xba836c(0x28e)](_0x267ba4=>_0x267ba4['dispose']()),this[_0xba836c(0x1a1)][_0xba836c(0x441)](),this['_status$'][_0xba836c(0x342)]();}async[_0x2f1425(0x1a6)](_0x5df5e4){const _0x151c77=_0x2f1425;if(this[_0x151c77(0x1a1)][_0x151c77(0x555)](_0x5df5e4))return this[_0x151c77(0x1a1)]['get'](_0x5df5e4);this[_0x151c77(0x56e)]();const _0x122a46=this[_0x151c77(0x4fa)][_0x151c77(0x49c)](exports[_0x151c77(0x4cb)],_0x5df5e4,this['_socket$'][_0x151c77(0x2fd)]());return this[_0x151c77(0x1a1)][_0x151c77(0x36e)](_0x5df5e4,_0x122a46),_0x122a46;}['closeSession'](_0x131b19){const _0x16b647=_0x2f1425;var _0x191396;const _0x5a1799=this['_sessions'][_0x16b647(0x41b)](_0x131b19);_0x5a1799&&(this[_0x16b647(0x1a1)][_0x16b647(0x28f)](_0x131b19),_0x5a1799['close']()),this['_sessions']['size']||(_0x191396=this[_0x16b647(0x392)])==null||_0x191396[_0x16b647(0x533)]();}[_0x2f1425(0x32e)](){const _0x498b98=_0x2f1425;this['_retryCount']=0x0,this[_0x498b98(0x356)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x498b98(0x356)]=null),this[_0x498b98(0x365)]();}[_0x2f1425(0x305)](){const _0x5a23c8=_0x2f1425;var _0x2d91be,_0x3db62a;const _0x1c2156=this['_configService']['getConfig'](ut),_0x82cee4=this[_0x5a23c8(0x1c3)][_0x5a23c8(0x480)](A),_0x366f9d=(_0x3db62a=(_0x2d91be=_0x82cee4==null?void 0x0:_0x82cee4[_0x5a23c8(0x423)])!=null?_0x2d91be:_0x1c2156)!=null?_0x3db62a:Xt,_0xb4d91=this[_0x5a23c8(0x438)][_0x5a23c8(0x424)](_0x366f9d);return this[_0x5a23c8(0x3ae)]=_0xb4d91,_0xb4d91;}['_tryEnsureSocket'](){const _0x80667f=_0x2f1425;var _0x570112,_0x835ef8;try{const _0x1bf728=(_0x835ef8=(_0x570112=this['_socket'])!=null?_0x570112:this[_0x80667f(0x3ae)])!=null?_0x835ef8:this['_createSocket']();if(_0x1bf728){const _0x2db1c2=_0x1bf728[_0x80667f(0x4b6)];_0x1bf728[_0x80667f(0x4b6)]=_0xc92b1b=>(this[_0x80667f(0x44b)](),_0x2db1c2[_0x80667f(0x21b)](_0x1bf728,[_0xc92b1b])),_0x1bf728[_0x80667f(0x427)][_0x80667f(0x3ca)](_0x4c6bd4=>this[_0x80667f(0x542)](_0x1bf728,_0x4c6bd4)),_0x1bf728[_0x80667f(0x428)][_0x80667f(0x53d)](E['take'](0x1))[_0x80667f(0x3ca)](_0x48633a=>this[_0x80667f(0x562)][_0x80667f(0x348)]('[CollaborationSessionService]:\x20socket\x20error',_0x48633a)),_0x1bf728['open$'][_0x80667f(0x53d)](E['take'](0x1))[_0x80667f(0x3ca)](()=>{const _0x5cc7d=_0x80667f;this[_0x5cc7d(0x447)](_0x1bf728);}),_0x1bf728[_0x80667f(0x1ec)][_0x80667f(0x53d)](E[_0x80667f(0x2e9)](0x1))[_0x80667f(0x3ca)](_0x534c76=>{const _0x447666=_0x80667f;this['_logService'][_0x447666(0x27e)](_0x447666(0x46b),'socket\x20close',_0x534c76),this[_0x447666(0x23e)]();});}}catch(_0x4f42dc){this[_0x80667f(0x562)][_0x80667f(0x348)](_0x4f42dc),this[_0x80667f(0x23e)]();}}[_0x2f1425(0x447)](_0x41a271){const _0x5f5572=_0x2f1425;this[_0x5f5572(0x562)]['debug'](_0x5f5572(0x46b),'socket\x20open.'),_0x41a271[_0x5f5572(0x4b6)]({'cmd':b['HELLO']}),this[_0x5f5572(0x44b)]();}['_listenToOfflineEvent'](){const _0x25eb2b=_0x2f1425;window[_0x25eb2b(0x21a)](_0x25eb2b(0x3c3),()=>this[_0x25eb2b(0x2e4)]());}[_0x2f1425(0x2e4)](){const _0x446d59=_0x2f1425;this['_socketReady']=!0x1,this['_candidateSocket']=null,this['_status$'][_0x446d59(0x500)]($[_0x446d59(0x3a1)]),this['_socket$'][_0x446d59(0x500)](null),this[_0x446d59(0x4ab)](),this[_0x446d59(0x372)]();}[_0x2f1425(0x23e)](){const _0x29af91=_0x2f1425;var _0x14b83f;this[_0x29af91(0x2e4)](),this[_0x29af91(0x3ba)]<((_0x14b83f=this[_0x29af91(0x1c3)]['getConfig'](vt))!=null?_0x14b83f:Jt)?(this[_0x29af91(0x1e2)][_0x29af91(0x1b9)]({'key':_0x29af91(0x184),'type':X[_0x29af91(0x4c9)][_0x29af91(0x501)],'content':this[_0x29af91(0x3ec)]['t']('session.will-retry')}),this[_0x29af91(0x365)]()):this['_messageService'][_0x29af91(0x1b9)]({'key':_0x29af91(0x184),'type':X[_0x29af91(0x4c9)][_0x29af91(0x1b1)],'content':this[_0x29af91(0x3ec)]['t']('session.connection-failed')});}['_listenToOnlineEvent'](){const _0x526082=_0x2f1425,_0x1102ab=()=>{const _0x2eb832=_0x4554;this[_0x2eb832(0x392)]||this[_0x2eb832(0x32e)]();},_0x50b81d=()=>{const _0x112301=_0x4554;this[_0x112301(0x392)]||document['visibilityState']==='hidden'||this[_0x112301(0x32e)]();};window[_0x526082(0x21a)](_0x526082(0x301),_0x1102ab),document['addEventListener'](_0x526082(0x55e),_0x50b81d);}[_0x2f1425(0x365)](){const _0x26ad96=_0x2f1425;var _0x2d101f;const _0x230cf0=this[_0x26ad96(0x3ba)],_0x2973f1=this[_0x26ad96(0x1c3)][_0x26ad96(0x480)](A),_0x378f12=_0x230cf0===0x0?0x0:((_0x2d101f=_0x2973f1==null?void 0x0:_0x2973f1[_0x26ad96(0x43c)])!=null?_0x2d101f:zt)*0x2**_0x230cf0;this[_0x26ad96(0x356)]=window[_0x26ad96(0x399)](()=>{const _0x2604aa=_0x26ad96;clearTimeout(this[_0x2604aa(0x356)]),this[_0x2604aa(0x356)]=null,this[_0x2604aa(0x56e)]();},_0x378f12),this[_0x26ad96(0x3ba)]+=0x1;}['_onMessage'](_0x1d962f,_0x2b8a5a){const _0x2595c2=_0x2f1425,{cmd:_0x2260b8}=_0x2b8a5a;_0x2260b8===b[_0x2595c2(0x343)]&&!this['_socketReady']&&(_0x1d962f[_0x2595c2(0x38b)]=_0x2b8a5a[_0x2595c2(0x2a5)][_0x2595c2(0x38b)],this[_0x2595c2(0x31b)][_0x2595c2(0x500)](_0x1d962f),this[_0x2595c2(0x32c)][_0x2595c2(0x500)]($[_0x2595c2(0x1cd)]),this[_0x2595c2(0x1f5)]=!0x0,this[_0x2595c2(0x3ae)]=null),_0x2260b8===b[_0x2595c2(0x197)]&&this[_0x2595c2(0x4ab)](),this[_0x2595c2(0x44b)]();}['_rescheduleHeartbeat'](){const _0xb2a405=_0x2f1425;var _0x4327fb;this[_0xb2a405(0x372)](),this[_0xb2a405(0x1d6)]=window[_0xb2a405(0x399)](()=>this[_0xb2a405(0x2a0)](),(_0x4327fb=this['_configService'][_0xb2a405(0x480)](dt))!=null?_0x4327fb:qt);}['_sendHeartbeat'](){const _0x3af2d2=_0x2f1425;this[_0x3af2d2(0x392)][_0x3af2d2(0x4b6)]({'cmd':b[_0x3af2d2(0x197)]}),this[_0x3af2d2(0x281)]();}['_waitForHeartbeatResponse'](){const _0x563120=_0x2f1425;var _0xb3c006;this[_0x563120(0x576)]=window[_0x563120(0x399)](()=>this[_0x563120(0x23e)](),(_0xb3c006=this['_configService']['getConfig'](Ve))!=null?_0xb3c006:St);}[_0x2f1425(0x372)](){const _0x5e2a58=_0x2f1425;this[_0x5e2a58(0x1d6)]!=null&&(clearTimeout(this[_0x5e2a58(0x1d6)]),this[_0x5e2a58(0x1d6)]=null);}[_0x2f1425(0x4ab)](){const _0x20155a=_0x2f1425;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x20155a(0x576)]),this[_0x20155a(0x576)]=null);}},exports[_0x2f1425(0x1d4)]=gs([Z(0x0,a['Inject'](a[_0x2f1425(0x450)])),Z(0x1,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x2d7)])),Z(0x2,N['IMessageService']),Z(0x3,a['ILogService']),Z(0x4,a[_0x2f1425(0x47d)]),Z(0x5,Fe)],exports[_0x2f1425(0x1d4)]);var ms=Object['defineProperty'],Is=Object[_0x2f1425(0x2ab)],ps=(_0xd4e5c4,_0x5d6bc2,_0xa756e2,_0x2cc511)=>{const _0x671483=_0x2f1425;for(var _0x3cf77c=_0x2cc511>0x1?void 0x0:_0x2cc511?Is(_0x5d6bc2,_0xa756e2):_0x5d6bc2,_0x42f138=_0xd4e5c4[_0x671483(0x38d)]-0x1,_0x4c226d;_0x42f138>=0x0;_0x42f138--)(_0x4c226d=_0xd4e5c4[_0x42f138])&&(_0x3cf77c=(_0x2cc511?_0x4c226d(_0x5d6bc2,_0xa756e2,_0x3cf77c):_0x4c226d(_0x3cf77c))||_0x3cf77c);return _0x2cc511&&_0x3cf77c&&ms(_0x5d6bc2,_0xa756e2,_0x3cf77c),_0x3cf77c;},De=(_0x16f3e0,_0x1c773f)=>(_0x2cfc05,_0xb4ce9b)=>_0x1c773f(_0x2cfc05,_0xb4ce9b,_0x16f3e0);let fe=class{constructor(_0x2ca568,_0x206d65,_0x2f3771){const _0x1e4104=_0x2f1425;this[_0x1e4104(0x4fa)]=_0x2ca568,this[_0x1e4104(0x3fd)]=_0x206d65,this[_0x1e4104(0x377)]=_0x2f3771;}[_0x2f1425(0x3f3)](_0x1c522d){const _0x1a8884=_0x2f1425;this[_0x1a8884(0x1bd)](_0x1c522d),this[_0x1a8884(0x25c)](_0x1c522d);}[_0x2f1425(0x304)](_0x7f1e85){const _0x2693d8=_0x2f1425,{unitID:_0x35df98}=_0x7f1e85,_0x57150c=this[_0x2693d8(0x377)]['getRenderById'](_0x35df98)[_0x2693d8(0x17e)](w['DocIMEInputManagerService']),{redoCache:_0x11043d}=_0x57150c['getUndoRedoMutationParamsCache']();if(_0x11043d[_0x2693d8(0x38d)]===0x0)return _0x7f1e85;let _0x15709c=a[_0x2693d8(0x494)]['deepClone'](_0x7f1e85[_0x2693d8(0x569)][0x0]);for(let _0x3eac60=0x0;_0x3eac60<_0x11043d[_0x2693d8(0x38d)];_0x3eac60++){const _0xbbe0ac={'id':_0x2693d8(0x4e5),'params':{..._0x11043d[_0x3eac60]}},_0x5790db=this[_0x2693d8(0x3fd)][_0x2693d8(0x4d8)](_0x15709c,_0xbbe0ac,!0x1);if(_[_0x2693d8(0x2d1)](_0x5790db))throw _0x5790db[_0x2693d8(0x348)];_0x15709c=_0x5790db['m1Prime'];}return{...a[_0x2693d8(0x494)][_0x2693d8(0x53b)](_0x7f1e85),'mutations':[_0x15709c]};}['_transformUndoRedoStack'](_0x1b7ae4){const _0x2312dd=_0x2f1425,{unitID:_0x128e5b}=_0x1b7ae4,_0x171222=this[_0x2312dd(0x377)][_0x2312dd(0x258)](_0x128e5b)[_0x2312dd(0x17e)](w[_0x2312dd(0x510)]),{undoCache:_0x115d4d,redoCache:_0x1d24d5}=_0x171222[_0x2312dd(0x1c8)]();if(_0x115d4d['length']===0x0||_0x1d24d5['length']===0x0)return;const _0x422568=[],_0x30d6a4=[];let _0x491a0c=a[_0x2312dd(0x494)][_0x2312dd(0x53b)](_0x1b7ae4[_0x2312dd(0x569)][0x0]),_0x210d85=a[_0x2312dd(0x494)][_0x2312dd(0x53b)](_0x1b7ae4[_0x2312dd(0x569)][0x0]);for(let _0xa350c9=_0x115d4d[_0x2312dd(0x38d)]-0x1;_0xa350c9>=0x0;_0xa350c9--){const _0x687436={'id':_0x2312dd(0x4e5),'params':{..._0x115d4d[_0xa350c9]}},_0x1af853={'id':_0x2312dd(0x4e5),'params':{..._0x1d24d5[_0xa350c9]}},_0x400e0a=this[_0x2312dd(0x3fd)][_0x2312dd(0x4d8)](_0x491a0c,_0x687436,!0x1),_0x4ab242=this[_0x2312dd(0x3fd)][_0x2312dd(0x4d8)](_0x210d85,_0x1af853,!0x1);if(_[_0x2312dd(0x2d1)](_0x400e0a))throw _0x400e0a[_0x2312dd(0x348)];if(_[_0x2312dd(0x2d1)](_0x4ab242))throw _0x4ab242[_0x2312dd(0x348)];_0x422568[_0x2312dd(0x558)](_0x400e0a[_0x2312dd(0x409)]['params']),_0x30d6a4[_0x2312dd(0x558)](_0x4ab242[_0x2312dd(0x409)][_0x2312dd(0x3d5)]),_0x491a0c=_0x400e0a['m1Prime'],_0x210d85=_0x4ab242[_0x2312dd(0x3aa)];}_0x171222[_0x2312dd(0x24c)]({'undoCache':_0x422568,'redoCache':_0x30d6a4});}['_transformPreviousActiveRange'](_0x4dbc1e){const _0x4d7cdb=_0x2f1425,{unitID:_0x4623ef}=_0x4dbc1e,_0x95fb2b=this[_0x4d7cdb(0x377)]['getRenderById'](_0x4623ef)['with'](w[_0x4d7cdb(0x510)]),_0x17500f=_0x95fb2b[_0x4d7cdb(0x419)]();if(_0x17500f==null)return;const _0x4a3c96=[{'id':_0x4d7cdb(0x4e5),'params':{'unitId':_0x4dbc1e['unitID'],'actions':null,'textRanges':[_0x17500f]}}],_0x3b41e4=this[_0x4d7cdb(0x3fd)][_0x4d7cdb(0x55d)](_0x4dbc1e,_0x4a3c96);if(!_[_0x4d7cdb(0x34c)](_0x3b41e4))throw _0x3b41e4[_0x4d7cdb(0x348)];const _0x561f8f=_0x3b41e4[_0x4d7cdb(0x409)][0x0][_0x4d7cdb(0x3d5)][_0x4d7cdb(0x48d)];Array[_0x4d7cdb(0x476)](_0x561f8f)&&_0x561f8f[_0x4d7cdb(0x38d)]&&_0x95fb2b[_0x4d7cdb(0x4b1)](_0x561f8f[0x0]);}};fe=ps([De(0x0,a['Inject'](a[_0x2f1425(0x450)])),De(0x1,_[_0x2f1425(0x298)]),De(0x2,R[_0x2f1425(0x456)])],fe);var Cs=Object[_0x2f1425(0x1cf)],Es=Object[_0x2f1425(0x2ab)],bs=(_0x432694,_0x5095af,_0x5a4bf6,_0x51f231)=>{const _0x39de15=_0x2f1425;for(var _0x8e40d6=_0x51f231>0x1?void 0x0:_0x51f231?Es(_0x5095af,_0x5a4bf6):_0x5095af,_0x362316=_0x432694[_0x39de15(0x38d)]-0x1,_0x5e38db;_0x362316>=0x0;_0x362316--)(_0x5e38db=_0x432694[_0x362316])&&(_0x8e40d6=(_0x51f231?_0x5e38db(_0x5095af,_0x5a4bf6,_0x8e40d6):_0x5e38db(_0x8e40d6))||_0x8e40d6);return _0x51f231&&_0x8e40d6&&Cs(_0x5095af,_0x5a4bf6,_0x8e40d6),_0x8e40d6;},ae=(_0xc3a8af,_0xf20cd4)=>(_0x294a07,_0x15ff4f)=>_0xf20cd4(_0x294a07,_0x15ff4f,_0xc3a8af);exports['LocalCacheService']=class extends a[_0x2f1425(0x387)]{constructor(_0x6ad988,_0x53940a,_0x1a4390,_0x372167,_0x5775df){const _0x2ccd5e=_0x2f1425;super(),d(this,_0x2ccd5e(0x2a4),new Map()),d(this,_0x2ccd5e(0x329),new Map()),d(this,'_disabled',!0x1),(this[_0x2ccd5e(0x1c3)]=_0x6ad988,this[_0x2ccd5e(0x2a3)]=_0x53940a,this[_0x2ccd5e(0x296)]=_0x1a4390,this[_0x2ccd5e(0x3ec)]=_0x372167,this[_0x2ccd5e(0x341)]=_0x5775df,this[_0x2ccd5e(0x345)]());}['disableLocalCache'](){const _0x212ab9=_0x2f1425;this[_0x212ab9(0x2b2)]=!0x0;}['enableLocalCache'](){const _0x549188=_0x2f1425;this[_0x549188(0x2b2)]=!0x1;}[_0x2f1425(0x235)](){const _0xbbef18=_0x2f1425;this['exhaustSavingTask']()[_0xbbef18(0x313)](()=>super[_0xbbef18(0x235)]());}async[_0x2f1425(0x4b5)](_0x1722a1){const _0xa4602e=_0x2f1425;return this[_0xa4602e(0x2b2)]?null:this['_localStorageService'][_0xa4602e(0x264)](Qe(_0x1722a1));}async[_0x2f1425(0x49d)](_0x2d1ae1,_0x2835d4){const _0x2ace98=_0x2f1425;return!!this[_0x2ace98(0x2a3)][_0x2ace98(0x3e9)](_0x2d1ae1,_0x2835d4);}['updateOfflineData'](_0x1cc174,_0x1d0694,_0xf61798,_0x4fd0d2){const _0x26eedc=_0x2f1425,_0x12d943=this[_0x26eedc(0x341)][_0x26eedc(0x3f7)](_0x1cc174);this[_0x26eedc(0x2a4)][_0x26eedc(0x36e)](_0x1cc174,{'unitID':_0x1cc174,'type':_0x1d0694,'awaitingChangeset':_0xf61798,'mutations':_0x4fd0d2,'rev':_0x12d943}),this[_0x26eedc(0x329)][_0x26eedc(0x555)](_0x1cc174)||this[_0x26eedc(0x4e1)](_0x1cc174);}[_0x2f1425(0x4e1)](_0x1fef65){const _0x4ec11d=_0x2f1425,_0x2d3218=this[_0x4ec11d(0x4c4)]();_0x2d3218===0x0?this[_0x4ec11d(0x49f)](_0x1fef65):this['_saveTaskMap'][_0x4ec11d(0x36e)](_0x1fef65,setTimeout(()=>this[_0x4ec11d(0x49f)](_0x1fef65),_0x2d3218));}[_0x2f1425(0x4c4)](){const _0x72b59b=_0x2f1425;var _0x49baa6;return(_0x49baa6=this[_0x72b59b(0x1c3)][_0x72b59b(0x480)](ft))!=null?_0x49baa6:Zt;}['_saveCache'](_0x42dfa5){const _0x1fc27f=_0x2f1425,_0x11226f=this[_0x1fc27f(0x329)][_0x1fc27f(0x41b)](_0x42dfa5);return _0x11226f!==void 0x0&&window['clearTimeout'](_0x11226f),this[_0x1fc27f(0x2a3)][_0x1fc27f(0x3e9)](Qe(_0x42dfa5),this['_cachedData'][_0x1fc27f(0x41b)](_0x42dfa5))['then'](()=>this['_saveTaskMap'][_0x1fc27f(0x28f)](_0x42dfa5));}async[_0x2f1425(0x306)](){const _0x3eb574=_0x2f1425,_0x5b7ea0=[];this['_saveTaskMap'][_0x3eb574(0x28e)]((_0x57615f,_0x519f46)=>{const _0x2c8b40=_0x3eb574;window[_0x2c8b40(0x2ac)](_0x57615f),_0x5b7ea0['push'](this[_0x2c8b40(0x49f)](_0x519f46)[_0x2c8b40(0x313)](()=>{const _0x29afa6=_0x2c8b40;this[_0x29afa6(0x329)][_0x29afa6(0x28f)](_0x519f46);}));}),await Promise[_0x3eb574(0x3b0)](_0x5b7ea0);}[_0x2f1425(0x345)](){const _0x415389=_0x2f1425;this[_0x415389(0x425)](this[_0x415389(0x296)][_0x415389(0x192)](()=>{const _0x2bfc23=_0x415389;if(this[_0x2bfc23(0x329)][_0x2bfc23(0x362)])return this['_localeService']['t'](_0x2bfc23(0x1e3));}));}},exports['LocalCacheService']=bs([ae(0x0,a['IConfigService']),ae(0x1,a[_0x2f1425(0x385)]),ae(0x2,N[_0x2f1425(0x394)]),ae(0x3,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x2d7)])),ae(0x4,a['Inject'](_[_0x2f1425(0x55c)]))],exports['LocalCacheService']);function Qe(_0x58f270){return'unit-cache-'+_0x58f270;}var Ts=Object['defineProperty'],Rs=Object[_0x2f1425(0x2ab)],Os=(_0x44be6a,_0x2899bc,_0x395dc3,_0x28f4b6)=>{const _0x1f0b04=_0x2f1425;for(var _0x5c094b=_0x28f4b6>0x1?void 0x0:_0x28f4b6?Rs(_0x2899bc,_0x395dc3):_0x2899bc,_0x28d61c=_0x44be6a[_0x1f0b04(0x38d)]-0x1,_0x20e852;_0x28d61c>=0x0;_0x28d61c--)(_0x20e852=_0x44be6a[_0x28d61c])&&(_0x5c094b=(_0x28f4b6?_0x20e852(_0x2899bc,_0x395dc3,_0x5c094b):_0x20e852(_0x5c094b))||_0x5c094b);return _0x28f4b6&&_0x5c094b&&Ts(_0x2899bc,_0x395dc3,_0x5c094b),_0x5c094b;},ye=(_0x5c1beb,_0x43c45f)=>(_0xdc9d5a,_0x46484e)=>_0x43c45f(_0xdc9d5a,_0x46484e,_0x5c1beb);function Ds(_0x580a01){const _0x3c728b=_0x2f1425,{unitID:_0x5d92f2,mutations:_0x534352}=_0x580a01;return{'unitId':_0x5d92f2,'subUnitId':_0x534352[0x0]['params'][_0x3c728b(0x2e5)]};}let ge=class{constructor(_0x25f170,_0x357d58,_0x20c914){const _0x475018=_0x2f1425;this['_injector']=_0x25f170,this[_0x475018(0x3fd)]=_0x357d58,this[_0x475018(0x323)]=_0x20c914;}['transformSelections'](_0x663ad8){const _0x4c795c=_0x2f1425;var _0x317857,_0x4754f2,_0x31a857,_0x55d78c;const _0x2740a3=this['_injector']['get'](C['SheetsSelectionsService']),{unitId:_0x5c4f3d,subUnitId:_0xaad532}=Ds(_0x663ad8),_0x35082c=_0x2740a3[_0x4c795c(0x1de)](_0x5c4f3d)['getCurrentSelections'](),_0x240d40=(_0x4754f2=(_0x317857=this['_instanceService'][_0x4c795c(0x33e)](_0x5c4f3d))==null?void 0x0:_0x317857[_0x4c795c(0x51e)]())==null?void 0x0:_0x4754f2[_0x4c795c(0x1be)]();if(_0x35082c[_0x4c795c(0x38d)]===0x0||!_0x5c4f3d||!_0xaad532)return;const _0x639dbb=[{'id':C[_0x4c795c(0x183)]['id'],'params':{'unitId':_0x5c4f3d,'subUnitId':_0x240d40,'selections':a[_0x4c795c(0x494)][_0x4c795c(0x53b)](_0x35082c)}}],_0x3895eb=this[_0x4c795c(0x3fd)][_0x4c795c(0x55d)](_0x663ad8,_0x639dbb);if(!_[_0x4c795c(0x34c)](_0x3895eb))throw _0x3895eb[_0x4c795c(0x348)];const _0x416272=(_0x55d78c=(_0x31a857=_0x3895eb[_0x4c795c(0x409)][0x0])==null?void 0x0:_0x31a857['params'])==null?void 0x0:_0x55d78c[_0x4c795c(0x262)];Array[_0x4c795c(0x476)](_0x416272)&&_0x416272[_0x4c795c(0x38d)]&&this[_0x4c795c(0x4fa)][_0x4c795c(0x41b)](a[_0x4c795c(0x477)])[_0x4c795c(0x373)](C[_0x4c795c(0x183)]['id'],{'unitId':_0x5c4f3d,'subUnitId':_0x240d40,'selections':_0x416272});}};ge=Os([ye(0x0,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),ye(0x1,_[_0x2f1425(0x298)]),ye(0x2,a['IUniverInstanceService'])],ge);const be=a[_0x2f1425(0x232)](_0x2f1425(0x1c6));var bt=(_0x15f5f3=>(_0x15f5f3[_0x15f5f3[_0x2f1425(0x271)]=0x0]=_0x2f1425(0x271),_0x15f5f3[_0x15f5f3[_0x2f1425(0x3c9)]=0x1]=_0x2f1425(0x3c9),_0x15f5f3))(bt||{});const et=0x7530,tt=_0x2f1425(0x327);class ys extends a[_0x2f1425(0x387)]{constructor(){const _0x22b724=_0x2f1425;super(),d(this,_0x22b724(0x50a),a[_0x22b724(0x494)]['generateRandomId']()),d(this,_0x22b724(0x1da),new Set()),d(this,'_unitOnClients',new Map()),d(this,_0x22b724(0x1c0),null),d(this,_0x22b724(0x374),new Map()),d(this,_0x22b724(0x3eb),new Map()),this[_0x22b724(0x34f)]();}[_0x2f1425(0x235)](){const _0x1d8af4=_0x2f1425;super['dispose'](),this[_0x1d8af4(0x374)][_0x1d8af4(0x28e)]((_0x543464,_0x3fd41e)=>this[_0x1d8af4(0x47c)](_0x3fd41e)),this['_heartbeatTimer']&&window[_0x1d8af4(0x19e)](this[_0x1d8af4(0x1c0)]);}[_0x2f1425(0x32a)](_0x17ee4e){const _0x10eede=_0x2f1425;return this[_0x10eede(0x3ee)](_0x17ee4e)[_0x10eede(0x53d)](v[_0x10eede(0x1d7)]());}[_0x2f1425(0x17b)](_0x385e58){const _0x246c51=_0x2f1425;this['_selfUnitIDs']['size']===0x0&&this[_0x246c51(0x1d1)](),this[_0x246c51(0x1da)][_0x246c51(0x1fd)](_0x385e58),this[_0x246c51(0x30e)]({'type':0x0,'memberID':this[_0x246c51(0x50a)],'unitIDs':[_0x385e58],'isForwarded':!0x1});}[_0x2f1425(0x318)](_0x5ecddb){const _0x2a01d3=_0x2f1425;this[_0x2a01d3(0x1da)]['delete'](_0x5ecddb),this[_0x2a01d3(0x1da)]['size']===0x0&&this[_0x2a01d3(0x1c0)]&&window[_0x2a01d3(0x19e)](this[_0x2a01d3(0x1c0)]);}[_0x2f1425(0x34f)](){const _0x4b8f21=_0x2f1425;this['disposeWithMe'](a[_0x4b8f21(0x2df)](v['fromEvent'](window,'storage')[_0x4b8f21(0x3ca)](_0x39373c=>{const _0x5ddfc2=_0x4b8f21;if(_0x39373c[_0x5ddfc2(0x23f)]!==tt||!_0x39373c['newValue'])return;const _0x5ade85=JSON[_0x5ddfc2(0x4de)](_0x39373c['newValue']);this['_handleEvent'](_0x5ade85);}))),window[_0x4b8f21(0x21a)](_0x4b8f21(0x57a),()=>this[_0x4b8f21(0x30e)]({'type':0x1,'memberID':this[_0x4b8f21(0x50a)],'unitIDs':Array['from'](this[_0x4b8f21(0x1da)])}));}[_0x2f1425(0x470)](_0x3818ea){const _0x266095=_0x2f1425;switch(_0x3818ea[_0x266095(0x3c5)]){case 0x0:this[_0x266095(0x460)](_0x3818ea);break;case 0x1:this[_0x266095(0x2f4)](_0x3818ea);break;case 0x2:this['_handleHeartbeatEvent'](_0x3818ea);break;}}[_0x2f1425(0x460)](_0x593df0){const _0x14aa9b=_0x2f1425,{unitIDs:_0x2a5451,memberID:_0x4b9e2a,isForwarded:_0x2f140c}=_0x593df0;_0x2a5451[_0x14aa9b(0x28e)](_0x1022d5=>{const _0x39736b=_0x14aa9b;if(!_0x2f140c&&this[_0x39736b(0x40c)][_0x39736b(0x555)](_0x1022d5)&&this[_0x39736b(0x3ee)](_0x1022d5)[_0x39736b(0x500)](0x1),!this[_0x39736b(0x40c)][_0x39736b(0x555)](_0x1022d5)||!this[_0x39736b(0x40c)][_0x39736b(0x41b)](_0x1022d5)['has'](_0x4b9e2a)){const _0x36ef42=this['_unitOnClients'][_0x39736b(0x41b)](_0x1022d5)||new Set();_0x36ef42[_0x39736b(0x1fd)](_0x4b9e2a),this[_0x39736b(0x40c)][_0x39736b(0x36e)](_0x1022d5,_0x36ef42),this[_0x39736b(0x34a)](_0x4b9e2a);}}),_0x2f140c||this['_send']({'type':0x0,'memberID':this[_0x14aa9b(0x50a)],'unitIDs':[...this[_0x14aa9b(0x1da)]],'isForwarded':!0x0});}[_0x2f1425(0x34a)](_0x57828a){const _0x42cd4a=_0x2f1425;this[_0x42cd4a(0x47c)](_0x57828a);const _0x2e71c5=window[_0x42cd4a(0x399)](()=>{const _0x4ff9f8=_0x42cd4a;this[_0x4ff9f8(0x40c)][_0x4ff9f8(0x28e)](_0x29f363=>{const _0x451d25=_0x4ff9f8;_0x29f363[_0x451d25(0x28f)](_0x57828a);});},et*0x2);this[_0x42cd4a(0x374)][_0x42cd4a(0x36e)](_0x57828a,_0x2e71c5);}[_0x2f1425(0x47c)](_0x5493d8){const _0x238c8c=_0x2f1425;if(this[_0x238c8c(0x374)]['has'](_0x5493d8)){const _0x213c11=this[_0x238c8c(0x374)]['get'](_0x5493d8);_0x213c11&&window[_0x238c8c(0x2ac)](_0x213c11),this[_0x238c8c(0x374)][_0x238c8c(0x36e)](_0x5493d8,null);}}[_0x2f1425(0x2f4)](_0x14646d){const {memberID:_0x5c576a,unitIDs:_0x193dd2}=_0x14646d;_0x193dd2['forEach'](_0x508cc4=>{const _0x557bc2=_0x4554;var _0xeb148d;const _0x4a7918=this[_0x557bc2(0x40c)][_0x557bc2(0x41b)](_0x508cc4);_0x4a7918&&(_0x4a7918[_0x557bc2(0x28f)](_0x5c576a),(_0xeb148d=this['_ensureSubject'](_0x508cc4))==null||_0xeb148d[_0x557bc2(0x500)](_0x4a7918[_0x557bc2(0x362)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x5c576a);}[_0x2f1425(0x25a)](_0x369765){const _0x40db55=_0x2f1425;this[_0x40db55(0x34a)](_0x369765[_0x40db55(0x38b)]);}['_send'](_0x35d9b6){const _0x44066d=_0x2f1425;localStorage[_0x44066d(0x3e9)](tt,JSON['stringify'](_0x35d9b6));}[_0x2f1425(0x1d1)](){const _0x21badd=_0x2f1425;this[_0x21badd(0x1c0)]=window['setInterval'](()=>{const _0x18b222=_0x21badd;this[_0x18b222(0x30e)]({'type':0x2,'memberID':this['_id']});},et);}[_0x2f1425(0x3ee)](_0x1e796b){const _0x5b15d4=_0x2f1425;return this[_0x5b15d4(0x3eb)][_0x5b15d4(0x555)](_0x1e796b)||this[_0x5b15d4(0x3eb)][_0x5b15d4(0x36e)](_0x1e796b,new v[(_0x5b15d4(0x21d))](0x0)),this[_0x5b15d4(0x3eb)]['get'](_0x1e796b);}}function Tt(_0x2244f4){let _0x439e3d='';for(const _0x3b0a76 of _0x2244f4){const {startOffset:_0x53faf9,endOffset:_0x2ed3c6,isActive:_0x310a0b}=_0x3b0a76;_0x439e3d['length']&&(_0x439e3d+=','),_0x439e3d+=_0x53faf9+':'+_0x2ed3c6+':'+(_0x310a0b?'1':'0');}return _0x439e3d;}function _0x4554(_0x1ac0f8,_0xc0121b){const _0x995da7=_0x995d();return _0x4554=function(_0x45546c,_0x38470e){_0x45546c=_0x45546c-0x170;let _0x4a2f92=_0x995da7[_0x45546c];return _0x4a2f92;},_0x4554(_0x1ac0f8,_0xc0121b);}function Us(_0x198a41){const _0x504915=_0x2f1425,_0x1baa5a=_0x198a41['split'](','),_0x5196be=[];for(const _0x44959f of _0x1baa5a){const [_0x30ecf5,_0x95ec77,_0x332718]=_0x44959f[_0x504915(0x34e)](':');_0x5196be[_0x504915(0x52d)]({'startOffset':Number(_0x30ecf5),'endOffset':Number(_0x95ec77),'collapsed':_0x30ecf5===_0x95ec77,'isActive':_0x332718==='1'});}return _0x5196be['some'](_0x571512=>_0x571512['isActive'])||(_0x5196be[0x0][_0x504915(0x330)]=!0x0),_0x5196be;}class Ye extends a[_0x2f1425(0x25b)]{constructor(){const _0x2c7b1d=_0x2f1425;super(...arguments),d(this,_0x2c7b1d(0x38f),new v[(_0x2c7b1d(0x21d))](null)),d(this,'collabCursorState$',this[_0x2c7b1d(0x38f)][_0x2c7b1d(0x2fd)]());}[_0x2f1425(0x2d3)](_0x12d37b){const _0x112652=_0x2f1425,{unitID:_0x15d4ae,memberID:_0x12fe2e,textRanges:_0x37b073}=_0x12d37b,_0x3440a1=Tt(_0x37b073),_0x15bc79={'unitID':_0x15d4ae,'memberID':_0x12fe2e,'selection':_0x3440a1};this['_collabCursorState$'][_0x112652(0x500)](_0x15bc79);}}var Ps=Object['defineProperty'],ws=Object[_0x2f1425(0x2ab)],Ms=(_0x3f962e,_0x141360,_0x648057,_0x3b0d59)=>{const _0x523836=_0x2f1425;for(var _0x60e03=_0x3b0d59>0x1?void 0x0:_0x3b0d59?ws(_0x141360,_0x648057):_0x141360,_0x246711=_0x3f962e[_0x523836(0x38d)]-0x1,_0x46f46d;_0x246711>=0x0;_0x246711--)(_0x46f46d=_0x3f962e[_0x246711])&&(_0x60e03=(_0x3b0d59?_0x46f46d(_0x141360,_0x648057,_0x60e03):_0x46f46d(_0x60e03))||_0x60e03);return _0x3b0d59&&_0x60e03&&Ps(_0x141360,_0x648057,_0x60e03),_0x60e03;},st=(_0x169974,_0x8bf37)=>(_0x3116b9,_0x1cdb40)=>_0x8bf37(_0x3116b9,_0x1cdb40,_0x169974);let me=class{constructor(_0x28b06c,_0x5bc902){const _0x3b0cdc=_0x2f1425;this[_0x3b0cdc(0x4fa)]=_0x28b06c,this['_transformService']=_0x5bc902;}['transformSelections'](_0x4c4714){const _0x1363de=_0x2f1425;var _0x2ecbca;const _0xfde62e=this[_0x1363de(0x4fa)][_0x1363de(0x41b)](V['DocSelectionManagerService']),_0x508138=(_0x2ecbca=_0xfde62e[_0x1363de(0x490)]())!=null?_0x2ecbca:[];if(_0x508138[_0x1363de(0x38d)]===0x0)return;const _0x1ebb28=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4c4714[_0x1363de(0x437)],'actions':null,'textRanges':_0x508138}}],_0x210b7e=this[_0x1363de(0x3fd)][_0x1363de(0x55d)](_0x4c4714,_0x1ebb28);if(!_[_0x1363de(0x34c)](_0x210b7e))throw _0x210b7e[_0x1363de(0x348)];const _0x5d771a=_0x210b7e[_0x1363de(0x409)][0x0][_0x1363de(0x3d5)]['textRanges'];Array[_0x1363de(0x476)](_0x5d771a)&&_0x5d771a['length']&&_0xfde62e['replaceTextRanges'](_0x5d771a,!0x1);}};me=Ms([st(0x0,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),st(0x1,_[_0x2f1425(0x298)])],me);const Ns=new Set([C['InsertSheetMutation']['id']]);function it(_0x363257,_0x29c297,_0xa9ecd6,_0x3f10f5,_0x594dc0){const _0xfe705a=_0x2f1425;var _0x49bd33,_0x2ec130,_0x108d0e,_0x980529;const _0x10ad09=[];for(const _0x2a36cd of _0x363257)if(Ns['has'](_0x2a36cd['id'])){if(_0x10ad09[_0xfe705a(0x38d)]>0x0)break;_0x10ad09[_0xfe705a(0x52d)](_0x2a36cd);break;}else _0x10ad09[_0xfe705a(0x52d)](_0x2a36cd);const _0x4a0963=(_0x2ec130=(_0x49bd33=_0x594dc0[_0xfe705a(0x187)]())==null?void 0x0:_0x49bd33['userID'])!=null?_0x2ec130:_0xfe705a(0x2ff),_0x105dd3=(_0x980529=(_0x108d0e=_0x594dc0[_0xfe705a(0x187)]())==null?void 0x0:_0x108d0e['memberID'])!=null?_0x980529:_0xfe705a(0x2ff);return{'changeset':{'unitID':_0x29c297,'type':_[_0xfe705a(0x4e2)](_0xa9ecd6[_0xfe705a(0x2bc)](_0x29c297)),'baseRev':_0x3f10f5[_0xfe705a(0x3f7)](_0x29c297),'revision':0x0,'userID':_0x4a0963,'memberID':_0x105dd3,'mutations':_0x10ad09},'pendingMutations':_0x363257[_0xfe705a(0x2ae)](_0x10ad09['length'])};}function As(_0x170fc0,_0x5e188b,_0x2488d9,_0x3be32b,_0x52940d){const _0x520384=_0x2f1425;var _0xd031ba,_0x45b1c1,_0x4e8a7a,_0x5f331f;const _0x5ac82f=[_0x170fc0['reduce']((_0x5e013a,_0xae0439)=>{const _0x240927=_0x4554;var _0x342c71;const {id:_0x51fabb}=_0x5e013a,{id:_0x2043e2,type:_0x4b2f56}=_0xae0439,_0x1ba7ca=(_0x342c71=_0x5e013a[_0x240927(0x3d5)])!=null?_0x342c71:{'actions':null},_0x37b835=_0xae0439['params'];if(_0x51fabb&&_0x51fabb!==_0x2043e2)throw new Error(_0x240927(0x3e1)+_0x51fabb+_0x240927(0x4ba)+_0x2043e2+'.');return{..._0x5e013a,'id':_0x2043e2,'type':_0x4b2f56,'params':{'unitId':_0x37b835[_0x240927(0x406)],'textRanges':_0x37b835[_0x240927(0x48d)],'actions':a[_0x240927(0x498)][_0x240927(0x39f)](_0x1ba7ca[_0x240927(0x2dc)],_0x37b835[_0x240927(0x2dc)])}};},{})],_0x89db3b=(_0x45b1c1=(_0xd031ba=_0x52940d[_0x520384(0x187)]())==null?void 0x0:_0xd031ba['userID'])!=null?_0x45b1c1:_0x520384(0x2ff),_0x412f62=(_0x5f331f=(_0x4e8a7a=_0x52940d['getCurrentUser']())==null?void 0x0:_0x4e8a7a[_0x520384(0x38b)])!=null?_0x5f331f:_0x520384(0x2ff);return{'changeset':{'unitID':_0x5e188b,'type':_[_0x520384(0x4e2)](_0x2488d9[_0x520384(0x2bc)](_0x5e188b)),'baseRev':_0x3be32b['getCurrentRevOfUnit'](_0x5e188b),'revision':0x0,'userID':_0x89db3b,'memberID':_0x412f62,'mutations':_0x5ac82f},'pendingMutations':[]};}const Ls={'id':C[_0x2f1425(0x2f1)]['id'],'type':a[_0x2f1425(0x3bf)]['MUTATION'],'params':{}};var js=Object[_0x2f1425(0x1cf)],$s=Object['getOwnPropertyDescriptor'],z=(_0x710e2e,_0x51edce,_0x2c34bc,_0x9aa5ff)=>{const _0x366292=_0x2f1425;for(var _0x1297ab=_0x9aa5ff>0x1?void 0x0:_0x9aa5ff?$s(_0x51edce,_0x2c34bc):_0x51edce,_0x3dbd8c=_0x710e2e[_0x366292(0x38d)]-0x1,_0x256a2d;_0x3dbd8c>=0x0;_0x3dbd8c--)(_0x256a2d=_0x710e2e[_0x3dbd8c])&&(_0x1297ab=(_0x9aa5ff?_0x256a2d(_0x51edce,_0x2c34bc,_0x1297ab):_0x256a2d(_0x1297ab))||_0x1297ab);return _0x9aa5ff&&_0x1297ab&&js(_0x51edce,_0x2c34bc,_0x1297ab),_0x1297ab;},g=(_0x37bc63,_0x149882)=>(_0x4cbcf2,_0x4ad1ea)=>_0x149882(_0x4cbcf2,_0x4ad1ea,_0x37bc63),y=(_0x1b3834=>(_0x1b3834[_0x2f1425(0x35a)]='not_collab',_0x1b3834[_0x2f1425(0x324)]=_0x2f1425(0x46e),_0x1b3834[_0x2f1425(0x400)]=_0x2f1425(0x1b2),_0x1b3834['AWAITING']='awaiting',_0x1b3834[_0x2f1425(0x391)]=_0x2f1425(0x567),_0x1b3834['FETCH_MISS']=_0x2f1425(0x334),_0x1b3834['CONFLICT']=_0x2f1425(0x299),_0x1b3834[_0x2f1425(0x3a1)]=_0x2f1425(0x3c3),_0x1b3834))(y||{});class J{constructor(_0x179a26,_0x72378a,_0x575cbc,_0x4d4e05,_0x3de0b7,_0x3f8122,_0x39e0c8,_0x4569a2,_0x37501d){const _0x3fbd26=_0x2f1425;d(this,_0x3fbd26(0x42c),null),d(this,_0x3fbd26(0x1cc),[]),(this[_0x3fbd26(0x437)]=_0x179a26,this[_0x3fbd26(0x3c5)]=_0x72378a,this[_0x3fbd26(0x4c3)]=_0x3de0b7,this['_commandService']=_0x3f8122,this[_0x3fbd26(0x3d8)]=_0x39e0c8,this[_0x3fbd26(0x341)]=_0x4569a2,this['_localCacheService']=_0x37501d,this['_awaitingChangeset']=_0x575cbc,this['_pendingMutations']=_0x4d4e05);}[_0x2f1425(0x312)](_0x301115){const _0x7ae08b=_0x2f1425,_0xc9312e=this[_0x7ae08b(0x341)][_0x7ae08b(0x3f7)](this['unitID']);return _0x301115['revision']>_0xc9312e+0x1?(this[_0x7ae08b(0x4c3)][_0x7ae08b(0x4f3)]({'from':_0xc9312e,'to':_0x301115[_0x7ae08b(0x2c8)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x380efd){const _0x3a9496=_0x2f1425;this['_undoRedoService']['transformUndoRedo'](this[_0x3a9496(0x437)],_0x380efd);}[_0x2f1425(0x3d0)](_0x4fab80){const _0x2b2cd2=_0x2f1425;var _0x44ab67,_0x32e042;(_0x32e042=(_0x44ab67=this['_handler'])[_0x2b2cd2(0x1d2)])==null||_0x32e042[_0x2b2cd2(0x55f)](_0x44ab67,_0x4fab80);}['_transformIMECache'](_0xea0a25){const _0x31f1cd=_0x2f1425;var _0x5523d9,_0x4bbe39;return(_0x4bbe39=(_0x5523d9=this['_handler'])['onTransformIME'])==null?void 0x0:_0x4bbe39[_0x31f1cd(0x55f)](_0x5523d9,_0xea0a25);}[_0x2f1425(0x366)](_0x595426){const _0x40f6fd=_0x2f1425;var _0xb97d4a,_0x4a97e6,_0x5d4372;return(_0x5d4372=(_0x4a97e6=(_0xb97d4a=this[_0x40f6fd(0x4c3)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x4a97e6[_0x40f6fd(0x55f)](_0xb97d4a,_0x595426))!=null?_0x5d4372:_0x595426;}[_0x2f1425(0x22b)](_0x52395a){const _0x322c67=_0x2f1425;var _0x24b018,_0x1e4b25;if(this[_0x322c67(0x3c5)]===j[_0x322c67(0x3df)]){const {unitID:_0x873335,mutations:_0x4c939e,memberID:_0x4d037b}=_0x52395a,_0x38761c=_0x4c939e[0x0][_0x322c67(0x3d5)][_0x322c67(0x48d)];Array[_0x322c67(0x476)](_0x38761c)&&_0x38761c[_0x322c67(0x38d)]>0x0&&((_0x1e4b25=(_0x24b018=this[_0x322c67(0x4c3)])['onSyncEditingCollabCursor'])==null||_0x1e4b25[_0x322c67(0x55f)](_0x24b018,{'unitID':_0x873335,'memberID':_0x4d037b,'textRanges':_0x38761c}));}}['_updateLocalCache'](){const _0x46591c=_0x2f1425;this[_0x46591c(0x28a)][_0x46591c(0x202)](this['unitID'],this[_0x46591c(0x3c5)],this[_0x46591c(0x42c)],this[_0x46591c(0x1cc)]);}['_getCurrentRevision'](){const _0x373f61=_0x2f1425;return this[_0x373f61(0x341)][_0x373f61(0x3f7)](this[_0x373f61(0x437)]);}[_0x2f1425(0x1c5)](){const _0x4e85d2=_0x2f1425;this[_0x4e85d2(0x341)][_0x4e85d2(0x44e)](this['unitID']);}[_0x2f1425(0x1e4)](_0x352623){const _0x188df1=_0x2f1425;var _0x5cd7f7;const _0x5dce26=this[_0x188df1(0x366)](_0x352623),_0x2a4378=a[_0x188df1(0x2db)](_0x5dce26[_0x188df1(0x569)],this[_0x188df1(0x4b2)],{'fromCollab':!0x0});if(!_0x2a4378['result'])throw _0x2a4378[_0x188df1(0x348)]instanceof Error?_0x2a4378[_0x188df1(0x348)]:new Error((_0x5cd7f7=_0x2a4378[_0x188df1(0x348)])!=null?_0x5cd7f7:_0x188df1(0x46d));this[_0x188df1(0x233)](_0x5dce26),this['_transformUndoredo'](_0x352623),this[_0x188df1(0x3d0)](_0x5dce26),this[_0x188df1(0x22b)](_0x5dce26),this['_incrementRevisionNumber']();}}let se=class extends J{constructor(_0x3c9020,_0x494e94,_0x109adf,_0x2575dd,_0x55553f,_0x2381fa,_0x7e8b1b,_0x4c4182,_0xda63cf,_0x5e9a20){const _0x16b3d2=_0x2f1425;super(_0x3c9020,_0x494e94,null,[],_0x109adf,_0x4c4182,_0x7e8b1b,_0x2575dd,_0x55553f),d(this,_0x16b3d2(0x1b5),'synced'),(this['_injector']=_0x2381fa,this[_0x16b3d2(0x562)]=_0xda63cf,this[_0x16b3d2(0x3fd)]=_0x5e9a20);}['appendMutation'](_0x3889f1){const _0x1f900d=_0x2f1425,_0x2e0a7e=this['_injector'][_0x1f900d(0x49c)](x,this[_0x1f900d(0x437)],this[_0x1f900d(0x3c5)],[_0x3889f1],this[_0x1f900d(0x4c3)]);return _0x2e0a7e[_0x1f900d(0x3b9)](),_0x2e0a7e[_0x1f900d(0x43d)](),_0x2e0a7e;}['onRemoteChangeset'](_0x2b9151){const _0x1bd98b=_0x2f1425;if(this[_0x1bd98b(0x312)](_0x2b9151))return this['_injector'][_0x1bd98b(0x49c)](H,this[_0x1bd98b(0x437)],this[_0x1bd98b(0x3c5)],null,[],null,[_0x2b9151],this[_0x1bd98b(0x4c3)]);try{const _0x3befad=this[_0x1bd98b(0x3fd)][_0x1bd98b(0x55d)](_0x2b9151,[Ls]);if(_[_0x1bd98b(0x34c)](_0x3befad)){const {c1Prime:_0xfca89a}=_0x3befad;return this[_0x1bd98b(0x1e4)](_0xfca89a),this;}throw _0x3befad[_0x1bd98b(0x348)];}catch(_0x527297){return this[_0x1bd98b(0x562)][_0x1bd98b(0x348)](_0x527297),this[_0x1bd98b(0x415)](!0x1);}}['_onConflict'](_0x17f19c){const _0x2722bc=_0x2f1425;return this[_0x2722bc(0x4fa)][_0x2722bc(0x49c)](F,this[_0x2722bc(0x437)],this['type'],null,[],this['_handler'],_0x17f19c);}[_0x2f1425(0x417)](){const _0x15a088=_0x2f1425;throw new Error(_0x15a088(0x364));}[_0x2f1425(0x471)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x2f1425(0x316)](){const _0x2c1021=_0x2f1425;return this['_injector'][_0x2c1021(0x49c)](G,this[_0x2c1021(0x437)],this[_0x2c1021(0x3c5)],null,[],this[_0x2c1021(0x4c3)]);}[_0x2f1425(0x517)](){return this;}[_0x2f1425(0x339)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2f1425(0x489)](){const _0x36291c=_0x2f1425,_0x1d046d=this[_0x36291c(0x341)][_0x36291c(0x3f7)](this[_0x36291c(0x437)]);return this[_0x36291c(0x4c3)]['onMissingChangesets']({'from':_0x1d046d,'to':0x0}),this[_0x36291c(0x4fa)][_0x36291c(0x49c)](H,this['unitID'],this[_0x36291c(0x3c5)],null,[],null,[],this['_handler']);}};se=z([g(0x3,a['Inject'](_[_0x2f1425(0x55c)])),g(0x4,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),g(0x5,a['Inject'](a[_0x2f1425(0x450)])),g(0x6,a[_0x2f1425(0x45b)]),g(0x7,a[_0x2f1425(0x477)]),g(0x8,a[_0x2f1425(0x2e3)]),g(0x9,_[_0x2f1425(0x298)])],se);let x=class extends J{constructor(_0x600a93,_0x165da7,_0x4443e8,_0x3abe64,_0x4d9bc0,_0x52c8aa,_0x5183ea,_0x59ef02,_0x426165,_0x3b8dc4,_0x1cb02b,_0x1bf44a,_0x1303cb,_0x4d24a1){const _0x3048d9=_0x2f1425;super(_0x600a93,_0x165da7,null,_0x4443e8,_0x3abe64,_0x3b8dc4,_0x4d24a1,_0x52c8aa,_0x5183ea),d(this,_0x3048d9(0x1b5),'pending'),d(this,_0x3048d9(0x20d),null),d(this,'_sendingTimer',null),(this[_0x3048d9(0x4fa)]=_0x4d9bc0,this[_0x3048d9(0x43f)]=_0x59ef02,this[_0x3048d9(0x562)]=_0x426165,this[_0x3048d9(0x1c3)]=_0x1cb02b,this[_0x3048d9(0x3fd)]=_0x1bf44a,this[_0x3048d9(0x458)]=_0x1303cb);}[_0x2f1425(0x2c5)](_0x3cab67){const _0xf4b03f=_0x2f1425;return this[_0xf4b03f(0x1cc)]['push'](_0x3cab67),this[_0xf4b03f(0x43d)](),this;}[_0x2f1425(0x389)](_0x1c36a5){const _0x342dfb=_0x2f1425;if(this[_0x342dfb(0x312)](_0x1c36a5))return this[_0x342dfb(0x2d4)](),this[_0x342dfb(0x4fa)][_0x342dfb(0x49c)](H,this[_0x342dfb(0x437)],this[_0x342dfb(0x3c5)],null,this['_pendingMutations'],null,[_0x1c36a5],this[_0x342dfb(0x4c3)]);try{const _0x5baea3=this[_0x342dfb(0x3fd)]['transformMutationsWithChangeset'](_0x1c36a5,this[_0x342dfb(0x1cc)]);if(_[_0x342dfb(0x34c)](_0x5baea3)){const {c1Prime:_0xf64e4b,m2Prime:_0x3c7f1f}=_0x5baea3;this[_0x342dfb(0x1e4)](_0xf64e4b);const _0x5a6825=this[_0x342dfb(0x4fa)][_0x342dfb(0x49c)](x,this[_0x342dfb(0x437)],this[_0x342dfb(0x3c5)],_0x3c7f1f,this[_0x342dfb(0x4c3)]);return this['_clearScheduledTask'](),_0x5a6825[_0x342dfb(0x3b9)](this[_0x342dfb(0x20d)]?Math['max'](0x0,new Date()['getTime']()-this[_0x342dfb(0x20d)]):this[_0x342dfb(0x577)]()),_0x5a6825;}throw _0x5baea3['error'];}catch(_0x5dadc2){return this[_0x342dfb(0x562)]['error'](_0x5dadc2),this['_onConflict'](!0x1);}}[_0x2f1425(0x417)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x2f1425(0x471)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x2f1425(0x316)](){const _0x362bff=_0x2f1425;return this['_clearScheduledTask'](),this['_injector']['createInstance'](G,this[_0x362bff(0x437)],this[_0x362bff(0x3c5)],null,this[_0x362bff(0x1cc)],this[_0x362bff(0x4c3)]);}[_0x2f1425(0x517)](){return this;}[_0x2f1425(0x3b9)](_0x1fe868){const _0x810148=_0x2f1425,_0x14bf1c=_0x1fe868!=null?_0x1fe868:this[_0x810148(0x577)]();this[_0x810148(0x20d)]=new Date()['getTime'](),this[_0x810148(0x45d)]=window[_0x810148(0x399)](()=>{const _0x596212=_0x810148;this[_0x596212(0x2d4)]();let _0x4c7c93=null;switch(this[_0x596212(0x3c5)]){case j[_0x596212(0x1bf)]:{_0x4c7c93=it(this[_0x596212(0x1cc)],this[_0x596212(0x437)],this[_0x596212(0x458)],this[_0x596212(0x341)],this['_memberService']);break;}case j[_0x596212(0x3df)]:{this['_pendingMutations'][_0x596212(0x39a)](_0x4c4b2f=>_0x4c4b2f['id']===V['RichTextEditingMutation']['id'])?_0x4c7c93=As(this[_0x596212(0x1cc)],this['unitID'],this[_0x596212(0x458)],this['_revisionService'],this[_0x596212(0x43f)]):_0x4c7c93=it(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x596212(0x341)],this[_0x596212(0x43f)]);break;}default:throw new Error(_0x596212(0x333)+this['type']+_0x596212(0x319));}const {changeset:_0x530070,pendingMutations:_0x1775d0}=_0x4c7c93;this[_0x596212(0x4c3)][_0x596212(0x209)](_0x530070);const _0x5d3d6f=_0x1775d0[_0x596212(0x38d)]?this[_0x596212(0x4fa)][_0x596212(0x49c)](k,this['unitID'],this[_0x596212(0x3c5)],_0x530070,_0x1775d0,this[_0x596212(0x4c3)]):this[_0x596212(0x4fa)][_0x596212(0x49c)](W,this[_0x596212(0x437)],this[_0x596212(0x3c5)],_0x530070,this[_0x596212(0x4c3)]);_0x5d3d6f[_0x596212(0x43d)](),this[_0x596212(0x4c3)][_0x596212(0x227)](this,_0x5d3d6f);},_0x14bf1c);}[_0x2f1425(0x577)](){const _0x1ea743=_0x2f1425;var _0x297b95;const _0x1486f3=this[_0x1ea743(0x1c3)]['getConfig'](A);return(_0x297b95=_0x1486f3==null?void 0x0:_0x1486f3[_0x1ea743(0x3fc)])!=null?_0x297b95:Kt;}[_0x2f1425(0x339)](){const _0x58c93a=_0x2f1425;throw new Error(_0x58c93a(0x3bd));}['_clearScheduledTask'](){const _0x37287c=_0x2f1425;this[_0x37287c(0x45d)]!=null&&(clearTimeout(this[_0x37287c(0x45d)]),this['_sendingTimer']=null);}[_0x2f1425(0x415)](_0xf9d5a1){const _0x5e3dd6=_0x2f1425;return this['_clearScheduledTask'](),this['_injector'][_0x5e3dd6(0x49c)](F,this['unitID'],this['type'],null,this[_0x5e3dd6(0x1cc)],this[_0x5e3dd6(0x4c3)],_0xf9d5a1);}};x=z([g(0x4,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),g(0x5,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x55c)])),g(0x6,a['Inject'](exports['LocalCacheService'])),g(0x7,a[_0x2f1425(0x4d1)](q)),g(0x8,a['ILogService']),g(0x9,a['ICommandService']),g(0xa,a['IConfigService']),g(0xb,_[_0x2f1425(0x298)]),g(0xc,a['IUniverInstanceService']),g(0xd,a[_0x2f1425(0x45b)])],x);let W=class extends J{constructor(_0x1997f6,_0x50b973,_0x547dde,_0x6d66a,_0x277121,_0x53d634,_0x167ff2,_0x26aba0,_0x3bea44,_0x5290f7,_0x4828d6){const _0x475f27=_0x2f1425;super(_0x1997f6,_0x50b973,_0x547dde,[],_0x6d66a,_0x26aba0,_0x4828d6,_0x53d634,_0x167ff2),d(this,_0x475f27(0x1b5),_0x475f27(0x433)),(this[_0x475f27(0x4fa)]=_0x277121,this['_logService']=_0x3bea44,this[_0x475f27(0x3fd)]=_0x5290f7);}['appendMutation'](_0x307ea4){const _0x114655=_0x2f1425,_0xf948a7=this['_injector'][_0x114655(0x49c)](k,this[_0x114655(0x437)],this[_0x114655(0x3c5)],this[_0x114655(0x42c)],[_0x307ea4],this[_0x114655(0x4c3)]);return _0xf948a7[_0x114655(0x43d)](),_0xf948a7;}['onRemoteChangeset'](_0x3e46ea){const _0x2cf9e6=_0x2f1425;if(this[_0x2cf9e6(0x312)](_0x3e46ea))return this[_0x2cf9e6(0x4fa)]['createInstance'](H,this[_0x2cf9e6(0x437)],this[_0x2cf9e6(0x3c5)],this[_0x2cf9e6(0x42c)],[],null,[_0x3e46ea],this[_0x2cf9e6(0x4c3)]);try{const _0x3d472b=this[_0x2cf9e6(0x3fd)][_0x2cf9e6(0x524)]([_0x3e46ea],[this['_awaitingChangeset']],!0x1);if(_[_0x2cf9e6(0x222)](_0x3d472b)){const {c1Prime:_0x28531c,c2Prime:_0x1ef763}=_0x3d472b;this[_0x2cf9e6(0x1e4)](_0x28531c[0x0]),_0x1ef763[0x0][_0x2cf9e6(0x200)]=this[_0x2cf9e6(0x3a3)]();const _0x369f03=this[_0x2cf9e6(0x4fa)][_0x2cf9e6(0x49c)](W,this[_0x2cf9e6(0x437)],this[_0x2cf9e6(0x3c5)],_0x1ef763[0x0],this[_0x2cf9e6(0x4c3)]);return _0x369f03[_0x2cf9e6(0x43d)](),_0x369f03;}return this[_0x2cf9e6(0x415)](!0x1);}catch(_0x31e300){return this[_0x2cf9e6(0x562)]['error'](_0x31e300),this[_0x2cf9e6(0x415)](!0x1);}}[_0x2f1425(0x417)](_0x22768d){const _0x3730d1=_0x2f1425,_0x4af8b6=this[_0x3730d1(0x341)]['getCurrentRevOfUnit'](this[_0x3730d1(0x437)]);if(_0x22768d[_0x3730d1(0x2c8)]<_0x4af8b6-0x1)return this;if(this[_0x3730d1(0x312)](_0x22768d))return this[_0x3730d1(0x4fa)][_0x3730d1(0x49c)](H,this['unitID'],this[_0x3730d1(0x3c5)],null,[],this[_0x3730d1(0x42c)],[],this[_0x3730d1(0x4c3)]);this[_0x3730d1(0x1c5)]();const _0x1dd66e=this[_0x3730d1(0x4fa)]['createInstance'](se,this[_0x3730d1(0x437)],this['type'],this[_0x3730d1(0x4c3)]);return _0x1dd66e[_0x3730d1(0x43d)](),_0x1dd66e;}[_0x2f1425(0x471)](_0x173ee5){const _0x242bf6=_0x2f1425;return this[_0x242bf6(0x415)](!!(_0x173ee5!=null&&_0x173ee5[_0x242bf6(0x556)]));}['toggleOffline'](){const _0x304d58=_0x2f1425;return this[_0x304d58(0x4fa)][_0x304d58(0x49c)](G,this[_0x304d58(0x437)],this[_0x304d58(0x3c5)],this[_0x304d58(0x42c)],[],this['_handler']);}[_0x2f1425(0x517)](){return this;}[_0x2f1425(0x339)](){const _0x206a71=_0x2f1425;this[_0x206a71(0x4c3)][_0x206a71(0x209)](this[_0x206a71(0x42c)]);}[_0x2f1425(0x415)](_0x4da787){const _0xc6d420=_0x2f1425;return this[_0xc6d420(0x4fa)][_0xc6d420(0x49c)](F,this[_0xc6d420(0x437)],this[_0xc6d420(0x3c5)],this[_0xc6d420(0x42c)],[],this['_handler'],_0x4da787);}};W=z([g(0x4,a['Inject'](a['Injector'])),g(0x5,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x55c)])),g(0x6,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),g(0x7,a[_0x2f1425(0x477)]),g(0x8,a[_0x2f1425(0x2e3)]),g(0x9,_[_0x2f1425(0x298)]),g(0xa,a[_0x2f1425(0x45b)])],W);let k=class extends J{constructor(_0x8a6e89,_0x254e53,_0x2a2ddb,_0x11c7f5,_0x34f246,_0x45926a,_0x4a40df,_0x23c4cd,_0x18c302,_0x4bedfe,_0x3187db,_0x3b970a){const _0x1fc86e=_0x2f1425;super(_0x8a6e89,_0x254e53,_0x2a2ddb,_0x11c7f5,_0x34f246,_0x18c302,_0x3b970a,_0x4a40df,_0x23c4cd),d(this,_0x1fc86e(0x1b5),_0x1fc86e(0x567)),(this[_0x1fc86e(0x4fa)]=_0x45926a,this[_0x1fc86e(0x562)]=_0x4bedfe,this[_0x1fc86e(0x3fd)]=_0x3187db);}[_0x2f1425(0x2c5)](_0x3cec90){const _0x18fc79=_0x2f1425;return this[_0x18fc79(0x1cc)][_0x18fc79(0x52d)](_0x3cec90),this;}[_0x2f1425(0x389)](_0x269b9b){const _0x500630=_0x2f1425;if(this[_0x500630(0x312)](_0x269b9b))return this[_0x500630(0x4fa)][_0x500630(0x49c)](H,this[_0x500630(0x437)],this[_0x500630(0x3c5)],this[_0x500630(0x42c)],this[_0x500630(0x1cc)],null,[_0x269b9b],this[_0x500630(0x4c3)]);try{const _0x5e72fc=this[_0x500630(0x3fd)][_0x500630(0x524)]([_0x269b9b],[this[_0x500630(0x42c)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x5e72fc)){const {c1Prime:_0x56b092,c2Prime:_0x100500}=_0x5e72fc,_0x30b41d=this[_0x500630(0x3fd)][_0x500630(0x55d)](_0x56b092[0x0],this['_pendingMutations']);if(_[_0x500630(0x34c)](_0x30b41d)){const {c1Prime:_0x3e21e8,m2Prime:_0x233f79}=_0x30b41d;return this[_0x500630(0x1e4)](_0x3e21e8),_0x100500[0x0][_0x500630(0x200)]=this['_getCurrentRevision'](),this[_0x500630(0x4fa)][_0x500630(0x49c)](k,this['unitID'],this[_0x500630(0x3c5)],_0x100500[0x0],_0x233f79,this[_0x500630(0x4c3)]);}throw _0x30b41d[_0x500630(0x348)];}throw _0x5e72fc['error'];}catch(_0x2b380b){return this[_0x500630(0x562)][_0x500630(0x348)](_0x2b380b),this[_0x500630(0x415)](!0x1);}}[_0x2f1425(0x417)](_0xa60c53){const _0x2b914b=_0x2f1425;if(this['_checkMissing'](_0xa60c53))return this[_0x2b914b(0x4fa)][_0x2b914b(0x49c)](H,this[_0x2b914b(0x437)],this[_0x2b914b(0x3c5)],null,this[_0x2b914b(0x1cc)],this[_0x2b914b(0x42c)],[],this[_0x2b914b(0x4c3)]);this[_0x2b914b(0x1c5)]();const _0x4ffaab=this[_0x2b914b(0x4fa)][_0x2b914b(0x49c)](x,this[_0x2b914b(0x437)],this[_0x2b914b(0x3c5)],this['_pendingMutations'],this['_handler']);return _0x4ffaab[_0x2b914b(0x3b9)](),_0x4ffaab[_0x2b914b(0x43d)](),_0x4ffaab;}[_0x2f1425(0x471)](_0x38c10c){const _0xfc6c01=_0x2f1425;return this[_0xfc6c01(0x415)](!!(_0x38c10c!=null&&_0x38c10c['isPermissionRej']));}[_0x2f1425(0x316)](){const _0x8e4cbe=_0x2f1425;return this[_0x8e4cbe(0x4fa)][_0x8e4cbe(0x49c)](G,this['unitID'],this[_0x8e4cbe(0x3c5)],this[_0x8e4cbe(0x42c)],this[_0x8e4cbe(0x1cc)],this[_0x8e4cbe(0x4c3)]);}[_0x2f1425(0x517)](){return this;}['resend'](){const _0x5da6dd=_0x2f1425;this[_0x5da6dd(0x4c3)]['onSendChangeset'](this['_awaitingChangeset']);}[_0x2f1425(0x415)](_0x6547a1){const _0x56057d=_0x2f1425;return this[_0x56057d(0x4fa)][_0x56057d(0x49c)](F,this[_0x56057d(0x437)],this[_0x56057d(0x3c5)],null,this[_0x56057d(0x1cc)],this['_handler'],_0x6547a1);}};k=z([g(0x5,a['Inject'](a[_0x2f1425(0x450)])),g(0x6,a[_0x2f1425(0x4d1)](_['RevisionService'])),g(0x7,a['Inject'](exports[_0x2f1425(0x509)])),g(0x8,a['ICommandService']),g(0x9,a[_0x2f1425(0x2e3)]),g(0xa,_[_0x2f1425(0x298)]),g(0xb,a['IUndoRedoService'])],k);let F=class extends J{constructor(_0x589cdc,_0x29e9ba,_0xb30cf5,_0x443c2c,_0x253626,_0x49fdbc=!0x1,_0xb08fcf,_0x17ec47,_0x7c7137,_0x2b6d71,_0x56cb79,_0x2b937b,_0xbfc6c){const _0x3267ee=_0x2f1425;super(_0x589cdc,_0x29e9ba,_0xb30cf5,_0x443c2c,_0x253626,_0x17ec47,_0x7c7137,_0x56cb79,_0x2b6d71),d(this,_0x3267ee(0x1b5),_0x3267ee(0x299)),(this[_0x3267ee(0x307)]=_0x49fdbc,this[_0x3267ee(0x531)]=_0xb08fcf,this['_localeService']=_0x2b937b,this[_0x3267ee(0x189)]=_0xbfc6c,this[_0x3267ee(0x376)](),this[_0x3267ee(0x2c0)](),this[_0x3267ee(0x2eb)]());}['appendMutation'](){return this;}[_0x2f1425(0x389)](){return this;}[_0x2f1425(0x417)](){return this;}[_0x2f1425(0x471)](){return this;}[_0x2f1425(0x316)](){return this;}[_0x2f1425(0x517)](){return this;}['resend'](){const _0x2ef2c2=_0x2f1425;throw new Error(_0x2ef2c2(0x3d4));}[_0x2f1425(0x2c0)](){const _0x1a8c22=_0x2f1425;this[_0x1a8c22(0x28a)][_0x1a8c22(0x202)](this[_0x1a8c22(0x437)],this['type'],null,[]);}['_showConflictNotification'](){const _0x5df5b0=_0x2f1425;this[_0x5df5b0(0x307)]?this[_0x5df5b0(0x189)]['show']({'title':this['_localeService']['t'](_0x5df5b0(0x388)),'content':this[_0x5df5b0(0x3ec)]['t']('permission.content'),'type':_0x5df5b0(0x348),'duration':0x0}):this[_0x5df5b0(0x189)][_0x5df5b0(0x1b9)]({'title':this[_0x5df5b0(0x3ec)]['t']('conflict.title'),'content':this[_0x5df5b0(0x3ec)]['t'](_0x5df5b0(0x430)),'type':_0x5df5b0(0x348),'duration':0x0});}[_0x2f1425(0x2eb)](){const _0x13d985=_0x2f1425;this[_0x13d985(0x531)]['updatePermissionPoint'](new C[(_0x13d985(0x224))](this[_0x13d985(0x437)])['id'],!0x1);}};F=z([g(0x6,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x18e)])),g(0x7,a[_0x2f1425(0x477)]),g(0x8,a[_0x2f1425(0x45b)]),g(0x9,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),g(0xa,a['Inject'](_[_0x2f1425(0x55c)])),g(0xb,a['Inject'](a['LocaleService'])),g(0xc,N[_0x2f1425(0x180)])],F);let G=class extends J{constructor(_0x4eba6b,_0x3a7cf9,_0x1e3a41,_0x149dc1,_0x5d69fe,_0x3ad265,_0x158ea5,_0x2df668,_0x20d6c7,_0x3dc86b){const _0x49d53d=_0x2f1425;super(_0x4eba6b,_0x3a7cf9,_0x1e3a41,_0x149dc1,_0x5d69fe,_0x20d6c7,_0x3dc86b,_0x158ea5,_0x2df668),d(this,_0x49d53d(0x1b5),_0x49d53d(0x3c3)),this['_injector']=_0x3ad265;}[_0x2f1425(0x2c5)](_0x113ddc){const _0x13d1f0=_0x2f1425;return this['_pendingMutations'][_0x13d1f0(0x52d)](_0x113ddc),this[_0x13d1f0(0x43d)](),this;}[_0x2f1425(0x389)](_0x2ead0e){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x4da33=_0x2f1425;throw new Error(_0x4da33(0x33a));}['onRemoteRej'](){const _0x4e486e=_0x2f1425;throw new Error(_0x4e486e(0x497));}[_0x2f1425(0x316)](){return this;}[_0x2f1425(0x517)](){const _0x36f99b=_0x2f1425,{_injector:_0x2847e6,_pendingMutations:_0x59b764,_awaitingChangeset:_0x537db1,unitID:_0x5d40b7,_handler:_0x536e30,type:_0x38f9e2}=this,_0x32ad00=Rt(_0x2847e6,_0x5d40b7,_0x38f9e2,_0x537db1,_0x59b764,_0x536e30);return _0x32ad00 instanceof x?_0x32ad00[_0x36f99b(0x3b9)]():(_0x32ad00 instanceof k||_0x32ad00 instanceof W)&&_0x32ad00[_0x36f99b(0x339)](),_0x32ad00;}[_0x2f1425(0x339)](){const _0x418eae=_0x2f1425;throw new Error(_0x418eae(0x340));}};G=z([g(0x5,a['Inject'](a[_0x2f1425(0x450)])),g(0x6,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x55c)])),g(0x7,a[_0x2f1425(0x4d1)](exports['LocalCacheService'])),g(0x8,a[_0x2f1425(0x477)]),g(0x9,a[_0x2f1425(0x45b)])],G);let H=class extends J{constructor(_0x11416d,_0x335194,_0x29fb73,_0x1946c6,_0x20e6a6,_0x3765cb,_0x3d5e6b,_0xb4d9fc,_0x14063b,_0x39c75f,_0x2e29fe,_0xfd4bfb,_0x3a1971,_0x296e83){const _0x3d1b77=_0x2f1425;super(_0x11416d,_0x335194,_0x29fb73,_0x1946c6,_0x3d5e6b,_0xfd4bfb,_0x3a1971,_0x14063b,_0x39c75f),d(this,_0x3d1b77(0x1b5),_0x3d1b77(0x334)),(this[_0x3d1b77(0x29c)]=_0x20e6a6,this['_queuedRemoteChangesets']=_0x3765cb,this[_0x3d1b77(0x4fa)]=_0xb4d9fc,this['_logService']=_0x2e29fe,this[_0x3d1b77(0x3fd)]=_0x296e83);}['onMissedChangesetFetched'](_0x46eee2){const _0x57eccb=_0x2f1425;try{const _0x42b095=[..._0x46eee2,...this[_0x57eccb(0x1fb)]],_0x3ae50c=[this[_0x57eccb(0x42c)]||this[_0x57eccb(0x29c)]][_0x57eccb(0x2b7)](_0x4e44cd=>!!_0x4e44cd);let _0x3e3982,_0x1096a3;if(_0x3ae50c[_0x57eccb(0x38d)]){const _0x18de46=this[_0x57eccb(0x3fd)][_0x57eccb(0x524)](_0x42b095,_0x3ae50c,!0x1);if(!_['isTransformChangesetsSuccess'](_0x18de46))throw _0x18de46[_0x57eccb(0x348)];_0x3e3982=_0x18de46[_0x57eccb(0x3bc)],_0x1096a3=_0x18de46[_0x57eccb(0x4e9)];}else _0x3e3982=_0x42b095,_0x1096a3=[];let _0x1186ce=this['_pendingMutations'];_0x3e3982[_0x57eccb(0x28e)](_0x31f50a=>{const _0x33962d=_0x57eccb;let _0x53414e;if(_0x1186ce[_0x33962d(0x38d)]){const _0xf61dd1=this[_0x33962d(0x3fd)][_0x33962d(0x55d)](_0x31f50a,_0x1186ce);if(!_[_0x33962d(0x34c)](_0xf61dd1))throw _0xf61dd1[_0x33962d(0x348)];_0x53414e=_0xf61dd1[_0x33962d(0x3bc)],_0x1186ce=_0xf61dd1[_0x33962d(0x409)];}else _0x53414e=_0x31f50a;this['_executeRemoteChangeset'](_0x53414e);}),this[_0x57eccb(0x29c)]&&this[_0x57eccb(0x1c5)](),this['_awaitingChangeset']&&_0x1096a3[_0x57eccb(0x38d)]&&(_0x1096a3[0x0][_0x57eccb(0x200)]=this['_getCurrentRevision']());let _0x25e14a;if(this[_0x57eccb(0x42c)]&&_0x1186ce[_0x57eccb(0x38d)]!==0x0)_0x25e14a=this[_0x57eccb(0x4fa)][_0x57eccb(0x49c)](k,this[_0x57eccb(0x437)],this[_0x57eccb(0x3c5)],_0x1096a3[0x0],_0x1186ce,this[_0x57eccb(0x4c3)]);else{if(this['_awaitingChangeset']&&_0x1186ce[_0x57eccb(0x38d)]===0x0)_0x1096a3[0x0][_0x57eccb(0x200)]=this[_0x57eccb(0x3a3)](),_0x25e14a=this[_0x57eccb(0x4fa)][_0x57eccb(0x49c)](W,this[_0x57eccb(0x437)],this[_0x57eccb(0x3c5)],_0x1096a3[0x0],this[_0x57eccb(0x4c3)]);else{if(_0x1186ce[_0x57eccb(0x38d)]!==0x0){const _0x37e07f=this[_0x57eccb(0x4fa)][_0x57eccb(0x49c)](x,this[_0x57eccb(0x437)],this[_0x57eccb(0x3c5)],_0x1186ce,this[_0x57eccb(0x4c3)]);_0x37e07f[_0x57eccb(0x3b9)](),_0x25e14a=_0x37e07f;}else _0x25e14a=this['_injector']['createInstance'](se,this[_0x57eccb(0x437)],this[_0x57eccb(0x3c5)],this['_handler']);}}return _0x25e14a[_0x57eccb(0x43d)](),_0x25e14a;}catch(_0xa38ad3){return this[_0x57eccb(0x562)][_0x57eccb(0x348)](_0x57eccb(0x33c),_0x57eccb(0x2f3),_0xa38ad3),this[_0x57eccb(0x4fa)][_0x57eccb(0x49c)](F,this[_0x57eccb(0x437)],this[_0x57eccb(0x3c5)],this[_0x57eccb(0x42c)],this[_0x57eccb(0x1cc)],this['_handler'],!0x1);}}['resend'](){const _0x26f7e5=_0x2f1425;throw new Error(_0x26f7e5(0x499));}[_0x2f1425(0x2c5)](_0x5d79e2){const _0x255151=_0x2f1425;return this[_0x255151(0x1cc)][_0x255151(0x52d)](_0x5d79e2),this;}[_0x2f1425(0x389)](_0x2eeb77){const _0x315d8e=_0x2f1425;return this[_0x315d8e(0x1fb)][_0x315d8e(0x52d)](_0x2eeb77),this;}['onRemoteAck'](_0x5b43a6){const _0x2631ca=_0x2f1425;if(this[_0x2631ca(0x42c)])return this[_0x2631ca(0x29c)]=this[_0x2631ca(0x42c)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x198c8e){const _0xc04cbf=_0x2f1425;return this[_0xc04cbf(0x415)](!!(_0x198c8e!=null&&_0x198c8e['isPermissionRej']));}[_0x2f1425(0x316)](){const _0x44a97c=_0x2f1425;return this[_0x44a97c(0x4fa)]['createInstance'](G,this[_0x44a97c(0x437)],this[_0x44a97c(0x3c5)],this[_0x44a97c(0x42c)],this[_0x44a97c(0x1cc)],this['_handler']);}[_0x2f1425(0x517)](){return this;}[_0x2f1425(0x415)](_0x214f28){const _0x45bbe0=_0x2f1425;return this[_0x45bbe0(0x4fa)][_0x45bbe0(0x49c)](F,this[_0x45bbe0(0x437)],this[_0x45bbe0(0x3c5)],this[_0x45bbe0(0x42c)],this[_0x45bbe0(0x1cc)],this[_0x45bbe0(0x4c3)],_0x214f28);}};H=z([g(0x7,a[_0x2f1425(0x4d1)](a['Injector'])),g(0x8,a['Inject'](_['RevisionService'])),g(0x9,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),g(0xa,a[_0x2f1425(0x2e3)]),g(0xb,a[_0x2f1425(0x477)]),g(0xc,a[_0x2f1425(0x45b)]),g(0xd,_[_0x2f1425(0x298)])],H);function Rt(_0x214789,_0xc0ca50,_0x132778,_0x2c7ae8,_0x3bde43,_0x31a53d){const _0x55525e=_0x2f1425;return _0x2c7ae8&&_0x3bde43[_0x55525e(0x38d)]?_0x214789['createInstance'](k,_0xc0ca50,_0x132778,_0x2c7ae8,_0x3bde43,_0x31a53d):_0x2c7ae8?_0x214789['createInstance'](W,_0xc0ca50,_0x132778,_0x2c7ae8,_0x31a53d):_0x3bde43['length']?_0x214789[_0x55525e(0x49c)](x,_0xc0ca50,_0x132778,_0x3bde43,_0x31a53d):_0x214789[_0x55525e(0x49c)](se,_0xc0ca50,_0x132778,_0x31a53d);}var Hs=Object[_0x2f1425(0x1cf)],xs=Object[_0x2f1425(0x2ab)],Ke=(_0x26985c,_0x2166cc,_0x132a8d,_0xe56a18)=>{const _0x3b6394=_0x2f1425;for(var _0x5e9a70=_0xe56a18>0x1?void 0x0:_0xe56a18?xs(_0x2166cc,_0x132a8d):_0x2166cc,_0x4ba9f6=_0x26985c[_0x3b6394(0x38d)]-0x1,_0x49c538;_0x4ba9f6>=0x0;_0x4ba9f6--)(_0x49c538=_0x26985c[_0x4ba9f6])&&(_0x5e9a70=(_0xe56a18?_0x49c538(_0x2166cc,_0x132a8d,_0x5e9a70):_0x49c538(_0x5e9a70))||_0x5e9a70);return _0xe56a18&&_0x5e9a70&&Hs(_0x2166cc,_0x132a8d,_0x5e9a70),_0x5e9a70;},I=(_0x1e54f7,_0x438e02)=>(_0x2e2285,_0x4b7243)=>_0x438e02(_0x2e2285,_0x4b7243,_0x1e54f7);exports['CollaborationEntity']=class extends a[_0x2f1425(0x25b)]{constructor(_0x5ab65a,_0x128e24,_0x3eebe3,_0x3fcc95,_0x2df746,_0x3fca9b,_0x4b1890,_0x399df8,_0x2f7708,_0x59443d,_0x33e707,_0x14f1ac,_0x599134){const _0x3b398a=_0x2f1425;super(),d(this,_0x3b398a(0x378),new v[(_0x3b398a(0x21d))](null)),d(this,_0x3b398a(0x42f),this[_0x3b398a(0x378)][_0x3b398a(0x2fd)]()),d(this,'_state'),d(this,_0x3b398a(0x3fb),!0x1),d(this,_0x3b398a(0x56d),this[_0x3b398a(0x42f)][_0x3b398a(0x53d)](v['map'](_0x518dc9=>_0x518dc9?_0x518dc9['status']:y[_0x3b398a(0x3a1)]),v[_0x3b398a(0x4bd)](0x1))),d(this,_0x3b398a(0x518),!0x1),d(this,_0x3b398a(0x4a0),[]),(this[_0x3b398a(0x437)]=_0x5ab65a,this[_0x3b398a(0x1e0)]=_0x128e24,this[_0x3b398a(0x1ed)]=_0x3eebe3,this[_0x3b398a(0x4fa)]=_0x3fcc95,this[_0x3b398a(0x28a)]=_0x2df746,this[_0x3b398a(0x461)]=_0x3fca9b,this[_0x3b398a(0x3ec)]=_0x4b1890,this['_revisionService']=_0x399df8,this[_0x3b398a(0x562)]=_0x2f7708,this['_commandService']=_0x59443d,this[_0x3b398a(0x1e2)]=_0x33e707,this[_0x3b398a(0x531)]=_0x14f1ac,this['_singleActiveUnitService']=_0x599134);}get[_0x2f1425(0x3c6)](){const _0x34839c=_0x2f1425;return this[_0x34839c(0x473)];}async[_0x2f1425(0x2fc)](){const _0x1c44ea=_0x2f1425;if(this[_0x1c44ea(0x3c6)])throw new Error(_0x1c44ea(0x2e6));await this[_0x1c44ea(0x34f)]();}[_0x2f1425(0x2ed)](){const _0x3d33d9=_0x2f1425;return this[_0x3d33d9(0x3fb)]=!0x0,a[_0x3d33d9(0x2df)](()=>{const _0x4c7f96=_0x3d33d9;this[_0x4c7f96(0x3fb)]=!0x1,this[_0x4c7f96(0x1cb)]();});}[_0x2f1425(0x17d)](_0x14e761){const _0x1c3825=_0x2f1425;this[_0x1c3825(0x473)]=_0x14e761,this[_0x1c3825(0x378)][_0x1c3825(0x500)](_0x14e761);}async['_init'](){const _0x2f9577=_0x2f1425;var _0x39cfa1;this['_updateState'](await this[_0x2f9577(0x526)]()),this[_0x2f9577(0x4d7)]&&((_0x39cfa1=this[_0x2f9577(0x4d7)])==null||_0x39cfa1[_0x2f9577(0x17b)](this[_0x2f9577(0x437)]),this[_0x2f9577(0x425)](this[_0x2f9577(0x4d7)][_0x2f9577(0x32a)](this[_0x2f9577(0x437)])['subscribe'](_0x29dd7e=>{const _0x43337c=_0x2f9577;this[_0x43337c(0x562)][_0x43337c(0x27e)]('[CollaborationEntity]',_0x43337c(0x4fb),_0x29dd7e),_0x29dd7e===bt[_0x43337c(0x3c9)]?(this[_0x43337c(0x1e2)][_0x43337c(0x1b9)]({'content':this[_0x43337c(0x3ec)]['t'](_0x43337c(0x27c)),'type':X[_0x43337c(0x4c9)][_0x43337c(0x501)]}),this[_0x43337c(0x531)][_0x43337c(0x4cc)](new C['WorkbookEditablePermission'](this['unitID'])['id'],!0x1)):this[_0x43337c(0x531)][_0x43337c(0x4cc)](new C[(_0x43337c(0x224))](this[_0x43337c(0x437)])['id'],!0x0);})));let _0x136278=!0x1;return this[_0x2f9577(0x425)](this[_0x2f9577(0x1e0)]['sessionStatus$'][_0x2f9577(0x3ca)](_0x209562=>{const _0x286c02=_0x2f9577;_0x209562===$['ONLINE']?this[_0x286c02(0x462)](_0x136278):_0x209562===$[_0x286c02(0x3a1)]&&(_0x136278=!0x0,this['_toggleOffline']());})),this[_0x2f9577(0x425)](this[_0x2f9577(0x1e0)]['event$'][_0x2f9577(0x3ca)](_0x1db739=>{const _0x34decb=_0x2f9577;try{switch(_0x1db739[_0x34decb(0x188)]){case _[_0x34decb(0x565)]['NEW_CHANGESETS']:{this['_onRemoteChangeset'](_[_0x34decb(0x4ef)](_0x1db739[_0x34decb(0x2a5)]));break;}case _[_0x34decb(0x565)][_0x34decb(0x412)]:{this[_0x34decb(0x426)](_0x1db739[_0x34decb(0x2a5)]);break;}case _[_0x34decb(0x565)]['CHANGESET_REJ']:{this[_0x34decb(0x4ea)]();break;}case _[_0x34decb(0x565)][_0x34decb(0x2de)]:{this[_0x34decb(0x390)](_0x1db739[_0x34decb(0x2a5)][_0x34decb(0x444)]['map'](_0x1f0246=>_['parseProtocolChangeset'](_0x1f0246)));break;}case _['CollaborationEvent'][_0x34decb(0x220)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0xd7aee7){throw console[_0x34decb(0x348)](_0x34decb(0x2b9),_0xd7aee7),_0xd7aee7;}})),this[_0x2f9577(0x473)];}[_0x2f1425(0x353)](){const _0x4810b4=_0x2f1425;this[_0x4810b4(0x518)]=!0x1;}[_0x2f1425(0x547)](){const _0x30acd7=_0x2f1425;if(this[_0x30acd7(0x518)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x30acd7(0x518)]=!0x0;}['_onLocalMutation'](_0x2e31b5){const _0xb8d29d=_0x2f1425;this['_lockTransition'](),this['_updateState'](this[_0xb8d29d(0x473)]['appendMutation'](_0x2e31b5)),this[_0xb8d29d(0x353)]();}[_0x2f1425(0x57c)](_0x5fabf3){const _0x2e7205=_0x2f1425;if(!(_0x5fabf3[_0x2e7205(0x2c8)]<=this[_0x2e7205(0x341)]['getCurrentRevOfUnit'](this[_0x2e7205(0x437)]))){if(this[_0x2e7205(0x3fb)]){this[_0x2e7205(0x4a0)][_0x2e7205(0x52d)](_0x5fabf3);return;}this['_applyRemoteChangeset'](_0x5fabf3);}}[_0x2f1425(0x1cb)](){const _0x18e1d9=_0x2f1425;this['_remoteChangesetQueue'][_0x18e1d9(0x28e)](_0x531792=>this[_0x18e1d9(0x4cd)](_0x531792)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0xfec99c){const _0x424186=_0x2f1425,_0xba35a7=this[_0x424186(0x461)]['interceptor'][_0x424186(0x4a8)](this['_compressMutationService'][_0x424186(0x221)][_0x424186(0x371)]()[_0x424186(0x449)])(_0xfec99c[_0x424186(0x569)],null)||_0xfec99c[_0x424186(0x569)],_0x2b23aa={..._0xfec99c,'mutations':_0xba35a7};this['_lockTransition'](),this[_0x424186(0x17d)](this[_0x424186(0x473)][_0x424186(0x389)](_0x2b23aa)),this[_0x424186(0x353)]();}[_0x2f1425(0x426)](_0x539489){const _0xc58ff6=_0x2f1425;this['_lockTransition'](),this[_0xc58ff6(0x17d)](this['_state'][_0xc58ff6(0x417)](_0x539489)),this[_0xc58ff6(0x353)]();}[_0x2f1425(0x4ea)](_0x2d5bf8){const _0x592058=_0x2f1425;this[_0x592058(0x547)](),this[_0x592058(0x17d)](this[_0x592058(0x473)][_0x592058(0x471)](_0x2d5bf8)),this['_unlockTransition']();}['_onFetchMissResult'](_0x47c26d){const _0x23bf1f=_0x2f1425;if(!(this[_0x23bf1f(0x473)]instanceof H))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x43d346=_0x47c26d[_0x23bf1f(0x1c9)](_0x5c2806=>{const _0x5c6a02=_0x23bf1f,_0x3265b6=this[_0x5c6a02(0x461)][_0x5c6a02(0x221)][_0x5c6a02(0x4a8)](this['_compressMutationService'][_0x5c6a02(0x221)][_0x5c6a02(0x371)]()[_0x5c6a02(0x449)])(_0x5c2806[_0x5c6a02(0x569)],null)||_0x5c2806[_0x5c6a02(0x569)];return{..._0x5c2806,'mutations':_0x3265b6};});this[_0x23bf1f(0x547)](),this[_0x23bf1f(0x17d)](this[_0x23bf1f(0x473)][_0x23bf1f(0x2b5)](_0x43d346)),this[_0x23bf1f(0x353)]();}[_0x2f1425(0x3c0)](){const _0x26c74d=_0x2f1425;this[_0x26c74d(0x547)](),this[_0x26c74d(0x17d)](this[_0x26c74d(0x473)][_0x26c74d(0x316)]()),this[_0x26c74d(0x353)]();}[_0x2f1425(0x462)](_0xc4fa89=!0x1){const _0xb5f2e3=_0x2f1425;this[_0xb5f2e3(0x547)](),this[_0xb5f2e3(0x17d)](this[_0xb5f2e3(0x473)][_0xb5f2e3(0x517)]()),this[_0xb5f2e3(0x353)]();const _0x2f3a38=this[_0xb5f2e3(0x473)];_0xc4fa89&&_0x2f3a38 instanceof se&&(this[_0xb5f2e3(0x547)](),this['_updateState'](_0x2f3a38[_0xb5f2e3(0x489)]()),this['_unlockTransition']());}async[_0x2f1425(0x526)](){return new Promise(_0x2fe3c0=>{const _0x3d0d2e=_0x4554;this[_0x3d0d2e(0x1e0)][_0x3d0d2e(0x3a7)][_0x3d0d2e(0x53d)](v[_0x3d0d2e(0x2e9)](0x1))[_0x3d0d2e(0x3ca)](async _0x2d5514=>{const _0x22fbb3=_0x3d0d2e;_0x2fe3c0(await this[_0x22fbb3(0x513)](_0x2d5514===$[_0x22fbb3(0x1cd)]));});});}[_0x2f1425(0x485)](){const _0x4db1ad=_0x2f1425,_0x259fa7=this[_0x4db1ad(0x437)];return{'onStateChange':(_0x5aae35,_0x47dc6a)=>{const _0x151ae5=_0x4db1ad;if(_0x5aae35!==this[_0x151ae5(0x473)])throw new Error(_0x151ae5(0x2b0)+_0x5aae35[_0x151ae5(0x1b5)]+_0x151ae5(0x4a4)+_0x47dc6a[_0x151ae5(0x1b5)]+'\x0aCurrent:\x20'+this[_0x151ae5(0x473)]['status']);this[_0x151ae5(0x17d)](_0x47dc6a);},'onSendChangeset':_0xbc7de5=>{const _0x20bdac=_0x4db1ad,_0x3a5b41={'eventID':_[_0x20bdac(0x565)][_0x20bdac(0x549)],'data':{'unitID':_0xbc7de5[_0x20bdac(0x437)],'unitType':this[_0x20bdac(0x1ed)],'changeset':_0xbc7de5,'memberID':this[_0x20bdac(0x1e0)][_0x20bdac(0x280)]()}};this['session'][_0x20bdac(0x4b6)](_0x3a5b41,this[_0x20bdac(0x437)]);},'onMissingChangesets':({from:_0x197e91,to:_0x16bdf4})=>{const _0x5ed17c=_0x4db1ad;this[_0x5ed17c(0x562)][_0x5ed17c(0x27e)](_0x5ed17c(0x52b),'fetching\x20missing\x20changesets\x20from\x20'+_0x197e91+_0x5ed17c(0x46c)+_0x16bdf4);const _0x170f21={'eventID':_[_0x5ed17c(0x565)]['FETCH_MISSING'],'data':{'unitID':_0x259fa7,'unitType':this[_0x5ed17c(0x1ed)],'from':_0x197e91,'to':_0x16bdf4}};this['session'][_0x5ed17c(0x4b6)](_0x170f21,this[_0x5ed17c(0x437)]);}};}async[_0x2f1425(0x513)](_0x5639f4){const _0xbfe939=_0x2f1425;var _0x58de4d,_0x2fdf2f;const _0x57d47f=await this['_localCacheService'][_0xbfe939(0x4b5)](this[_0xbfe939(0x437)]),_0x212e96=(_0x58de4d=_0x57d47f==null?void 0x0:_0x57d47f['mutations'])!=null?_0x58de4d:[],_0x180b46=(_0x2fdf2f=_0x57d47f==null?void 0x0:_0x57d47f[_0xbfe939(0x30c)])!=null?_0x2fdf2f:null,_0x3c34b1=this[_0xbfe939(0x437)];try{this['_replayCachedMutations'](_0x180b46,_0x212e96);}catch(_0x497577){this['_logService'][_0xbfe939(0x348)](_0x497577);}const _0x30d8a9=this[_0xbfe939(0x485)]();if(_0x5639f4){const _0x2e68e6=Rt(this['_injector'],_0x3c34b1,this[_0xbfe939(0x1ed)],_0x180b46,_0x212e96,_0x30d8a9);return _0x2e68e6 instanceof x?_0x2e68e6[_0xbfe939(0x3b9)]():(_0x2e68e6 instanceof k||_0x2e68e6 instanceof W)&&_0x2e68e6[_0xbfe939(0x339)](),_0x2e68e6;}return this[_0xbfe939(0x4fa)][_0xbfe939(0x49c)](G,_0x3c34b1,this[_0xbfe939(0x1ed)],_0x180b46,_0x212e96,_0x30d8a9);}['_replayCachedMutations'](_0x559849,_0x443123){const _0x4f1502=_0x2f1425;var _0x3ef3f0,_0x492272;const _0x513da5=this[_0x4f1502(0x461)][_0x4f1502(0x221)][_0x4f1502(0x4a8)](this[_0x4f1502(0x461)]['interceptor'][_0x4f1502(0x371)]()[_0x4f1502(0x449)]);(_0x3ef3f0=_0x513da5((_0x559849==null?void 0x0:_0x559849[_0x4f1502(0x569)])||[],null))==null||_0x3ef3f0['forEach'](_0x4ad2cb=>this[_0x4f1502(0x4b2)][_0x4f1502(0x373)](_0x4ad2cb['id'],_0x4ad2cb['params'])),(_0x492272=_0x513da5(_0x443123||[],null))==null||_0x492272[_0x4f1502(0x28e)](_0x2be1b6=>this[_0x4f1502(0x4b2)][_0x4f1502(0x373)](_0x2be1b6['id'],_0x2be1b6[_0x4f1502(0x3d5)]));}},exports[_0x2f1425(0x32b)]=Ke([I(0x3,a[_0x2f1425(0x4d1)](a['Injector'])),I(0x4,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),I(0x5,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x3f1)])),I(0x6,a[_0x2f1425(0x4d1)](a['LocaleService'])),I(0x7,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x55c)])),I(0x8,a[_0x2f1425(0x2e3)]),I(0x9,a['ICommandService']),I(0xa,N[_0x2f1425(0x48c)]),I(0xb,a[_0x2f1425(0x18e)]),I(0xc,a[_0x2f1425(0x42b)](be))],exports['CollaborationEntity']),exports[_0x2f1425(0x358)]=class extends exports[_0x2f1425(0x32b)]{constructor(_0x4b35ee,_0x5c4d72,_0x440cce,_0x425be0,_0x816b44,_0x4bfeb5,_0x164fb6,_0x13843e,_0x189b5e,_0x153a67,_0x5472c0,_0x112b2d,_0x1b5747,_0x3aedfe,_0x291929,_0x26bef2,_0x39e914){const _0x16b36e=_0x2f1425;super(_0x4b35ee,_0x440cce,_0x5c4d72,_0x425be0,_0x816b44,_0x4bfeb5,_0x164fb6,_0x13843e,_0x1b5747,_0x3aedfe,_0x291929,_0x26bef2,_0x39e914),this[_0x16b36e(0x437)]=_0x4b35ee,this[_0x16b36e(0x3c5)]=_0x5c4d72,this[_0x16b36e(0x3b2)]=_0x189b5e,this['_docTransformIMECacheService']=_0x153a67,this[_0x16b36e(0x3e3)]=_0x5472c0,this[_0x16b36e(0x295)]=_0x112b2d;}['_createHandler'](){const _0x4543e9=_0x2f1425,_0xc203cf=super[_0x4543e9(0x485)]();return _0xc203cf['onTransformIME']=_0x3ee2e9=>this['_docTransformIMECacheService'][_0x4543e9(0x3f3)](_0x3ee2e9),_0xc203cf[_0x4543e9(0x1d2)]=_0x579ecb=>this[_0x4543e9(0x3e3)][_0x4543e9(0x4df)](_0x579ecb),_0xc203cf['onSyncEditingCollabCursor']=_0x231f56=>this['_docSyncEditingCollabCursorService'][_0x4543e9(0x2d3)](_0x231f56),_0xc203cf['onTransformRemoteChangesetByIMECache']=_0x47d2a3=>this[_0x4543e9(0x297)]['transformRemoteChangeset'](_0x47d2a3),_0xc203cf;}async[_0x2f1425(0x34f)](){const _0x1d4d3b=_0x2f1425,_0x2222a1=await super[_0x1d4d3b(0x34f)]();return this[_0x1d4d3b(0x425)](this[_0x1d4d3b(0x4b2)][_0x1d4d3b(0x40b)]((_0x40fb5c,_0x3e9b0d)=>{const _0x14951a=_0x1d4d3b;if(_0x40fb5c[_0x14951a(0x3c5)]!==a['CommandType']['MUTATION']||_0x3e9b0d!=null&&_0x3e9b0d[_0x14951a(0x420)]||_0x3e9b0d!=null&&_0x3e9b0d['onlyLocal'])return;const _0x4b7eae=_0x40fb5c[_0x14951a(0x3d5)];if((_0x4b7eae==null?void 0x0:_0x4b7eae['unitId'])!==this[_0x14951a(0x437)])return;let _0x835d14=_0x40fb5c;if(_0x835d14['id']===V['RichTextEditingMutation']['id']){const _0xfbcae5=_0x835d14['params'];_0x835d14={'id':V[_0x14951a(0x57e)]['id'],'type':a[_0x14951a(0x3bf)][_0x14951a(0x3c2)],'params':{'unitId':_0xfbcae5[_0x14951a(0x406)],'actions':_0xfbcae5[_0x14951a(0x2dc)],'textRanges':null}};}const _0x24c36d=this[_0x14951a(0x461)][_0x14951a(0x221)][_0x14951a(0x4a8)](this[_0x14951a(0x461)][_0x14951a(0x221)][_0x14951a(0x371)]()['COMPRESS_MUTATION_SEND'])([_0x835d14],null)||[_0x835d14];this['_onLocalMutation'](_0x24c36d[0x0]);})),_0x2222a1;}},exports[_0x2f1425(0x358)]=Ke([I(0x3,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),I(0x4,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),I(0x5,a['Inject'](_[_0x2f1425(0x3f1)])),I(0x6,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x2d7)])),I(0x7,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x55c)])),I(0x8,a[_0x2f1425(0x4d1)](w[_0x2f1425(0x573)])),I(0x9,a[_0x2f1425(0x4d1)](fe)),I(0xa,a[_0x2f1425(0x4d1)](me)),I(0xb,a[_0x2f1425(0x4d1)](Ye)),I(0xc,a[_0x2f1425(0x2e3)]),I(0xd,a[_0x2f1425(0x477)]),I(0xe,N[_0x2f1425(0x48c)]),I(0xf,a['IPermissionService']),I(0x10,a['Optional'](be))],exports[_0x2f1425(0x358)]),exports['SheetCollaborationEntity']=class extends exports[_0x2f1425(0x32b)]{constructor(_0x25dfe8,_0x56f161,_0x139c34,_0x1c4c31,_0x4e9e42,_0x306263,_0x5df584,_0x510161,_0x375051,_0x54786b,_0x2b900a,_0x4006fb,_0x1e3b11,_0x548014){const _0x18c41e=_0x2f1425;super(_0x25dfe8,_0x139c34,_0x56f161,_0x1c4c31,_0x4e9e42,_0x306263,_0x5df584,_0x510161,_0x54786b,_0x2b900a,_0x4006fb,_0x1e3b11,_0x548014),this[_0x18c41e(0x437)]=_0x25dfe8,this[_0x18c41e(0x3c5)]=_0x56f161,this[_0x18c41e(0x31a)]=_0x375051;}[_0x2f1425(0x485)](){const _0x1bfeda=_0x2f1425,_0x1fca90=super[_0x1bfeda(0x485)]();return _0x1fca90[_0x1bfeda(0x1d2)]=_0x421165=>this['_sheetTransformSelectionsService']['transformSelections'](_0x421165),_0x1fca90;}async[_0x2f1425(0x34f)](){const _0x4a2821=_0x2f1425,_0x54ab1f=await super[_0x4a2821(0x34f)]();return this[_0x4a2821(0x425)](this[_0x4a2821(0x4b2)][_0x4a2821(0x40b)]((_0x52f20b,_0x219f3f)=>{const _0x45e4d3=_0x4a2821;if(_0x52f20b[_0x45e4d3(0x3c5)]!==a['CommandType'][_0x45e4d3(0x3c2)]||_0x219f3f!=null&&_0x219f3f[_0x45e4d3(0x420)]||_0x219f3f!=null&&_0x219f3f[_0x45e4d3(0x1ab)])return;const _0x80388e=_0x52f20b[_0x45e4d3(0x3d5)];if((_0x80388e==null?void 0x0:_0x80388e[_0x45e4d3(0x406)])!==this['unitID'])return;const _0x1659b0=_0x52f20b,_0x5338c5=this['_compressMutationService'][_0x45e4d3(0x221)][_0x45e4d3(0x4a8)](this[_0x45e4d3(0x461)][_0x45e4d3(0x221)][_0x45e4d3(0x371)]()['COMPRESS_MUTATION_SEND'])([_0x1659b0],null)||[_0x1659b0];this['_onLocalMutation'](_0x5338c5[0x0]);})),_0x54ab1f;}},exports[_0x2f1425(0x4f2)]=Ke([I(0x3,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),I(0x4,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),I(0x5,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x3f1)])),I(0x6,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x2d7)])),I(0x7,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x55c)])),I(0x8,a[_0x2f1425(0x4d1)](ge)),I(0x9,a['ILogService']),I(0xa,a[_0x2f1425(0x477)]),I(0xb,N['IMessageService']),I(0xc,a[_0x2f1425(0x18e)]),I(0xd,a[_0x2f1425(0x42b)](be))],exports[_0x2f1425(0x4f2)]);var ks=Object[_0x2f1425(0x1cf)],Bs=Object[_0x2f1425(0x2ab)],Vs=(_0x128dcf,_0x540e70,_0x4b2713,_0x29fbd6)=>{const _0x44bf34=_0x2f1425;for(var _0x4e8b22=_0x29fbd6>0x1?void 0x0:_0x29fbd6?Bs(_0x540e70,_0x4b2713):_0x540e70,_0x79d4aa=_0x128dcf[_0x44bf34(0x38d)]-0x1,_0x15689d;_0x79d4aa>=0x0;_0x79d4aa--)(_0x15689d=_0x128dcf[_0x79d4aa])&&(_0x4e8b22=(_0x29fbd6?_0x15689d(_0x540e70,_0x4b2713,_0x4e8b22):_0x15689d(_0x4e8b22))||_0x4e8b22);return _0x29fbd6&&_0x4e8b22&&ks(_0x540e70,_0x4b2713,_0x4e8b22),_0x4e8b22;},Ue=(_0x2e3cd9,_0x163095)=>(_0x13a90f,_0x107413)=>_0x163095(_0x13a90f,_0x107413,_0x2e3cd9);exports[_0x2f1425(0x4f1)]=class extends a[_0x2f1425(0x25b)]{constructor(_0x527c9a,_0x1cda5d,_0x2f82c5){const _0xff55f9=_0x2f1425;super(),d(this,_0xff55f9(0x4d5),new Map()),d(this,_0xff55f9(0x46f),new v[(_0xff55f9(0x368))]()),(this['_injector']=_0x527c9a,this['_collabSessionService']=_0x1cda5d,this[_0xff55f9(0x458)]=_0x2f82c5,this['_init']());}[_0x2f1425(0x235)](){const _0x5f234f=_0x2f1425;super[_0x5f234f(0x235)](),this['_entities'][_0x5f234f(0x28e)](_0x2baf81=>_0x2baf81[_0x5f234f(0x235)]()),this['_entities'][_0x5f234f(0x441)]();}[_0x2f1425(0x216)](_0x44d6f0){const _0x4577f1=_0x2f1425;var _0x81b9e9;return(_0x81b9e9=this['_entities'][_0x4577f1(0x41b)](_0x44d6f0))!=null?_0x81b9e9:null;}[_0x2f1425(0x384)](_0xd5bc6c){const _0x10ed17=_0x2f1425,_0x4d2df9=this[_0x10ed17(0x216)](_0xd5bc6c);return _0x4d2df9?v['of'](_0x4d2df9):this[_0x10ed17(0x46f)]['pipe'](E[_0x10ed17(0x2b7)](_0x3b66e5=>_0x3b66e5[_0x10ed17(0x437)]===_0xd5bc6c));}[_0x2f1425(0x34f)](){const _0x31ac0e=_0x2f1425;this[_0x31ac0e(0x458)][_0x31ac0e(0x4e4)](a[_0x31ac0e(0x35f)]['UNIVER_SHEET'])[_0x31ac0e(0x53d)](v['takeUntil'](this[_0x31ac0e(0x2b4)]),E[_0x31ac0e(0x39d)](0x10))[_0x31ac0e(0x3ca)](async _0x470b46=>{const _0x13a5a1=_0x31ac0e,_0x10eee4=_0x470b46['getUnitId'](),_0xa1eb4d=await this['_startCollaboration'](_0x10eee4,j[_0x13a5a1(0x1bf)]);this[_0x13a5a1(0x4d5)][_0x13a5a1(0x36e)](_0x10eee4,_0xa1eb4d);}),this[_0x31ac0e(0x458)][_0x31ac0e(0x4e4)](a[_0x31ac0e(0x35f)][_0x31ac0e(0x3df)])['pipe'](v[_0x31ac0e(0x275)](this[_0x31ac0e(0x2b4)]),E[_0x31ac0e(0x39d)](0x10))[_0x31ac0e(0x53d)](E[_0x31ac0e(0x2b7)](_0x194816=>!_0x194816['getUnitId']()[_0x31ac0e(0x19f)]('__')))['subscribe'](async _0xa376d5=>{const _0x45eeb0=_0x31ac0e,_0x3f2452=_0xa376d5[_0x45eeb0(0x1fa)](),_0x5a7b7d=await this[_0x45eeb0(0x1bc)](_0x3f2452,j[_0x45eeb0(0x3df)]);this['_entities']['set'](_0x3f2452,_0x5a7b7d);}),v['merge'](this[_0x31ac0e(0x458)][_0x31ac0e(0x260)](a['UniverInstanceType']['UNIVER_SHEET']),this['_univerInstanceService'][_0x31ac0e(0x260)](a[_0x31ac0e(0x35f)][_0x31ac0e(0x3df)]))[_0x31ac0e(0x53d)](v[_0x31ac0e(0x275)](this[_0x31ac0e(0x2b4)]))['subscribe'](_0x575794=>{const _0x17ec66=_0x31ac0e,_0x2ebe88=_0x575794[_0x17ec66(0x1fa)](),_0x3459be=this['_entities'][_0x17ec66(0x41b)](_0x2ebe88);_0x3459be&&(_0x3459be[_0x17ec66(0x235)](),this[_0x17ec66(0x4d5)]['delete'](_0x2ebe88));});}async[_0x2f1425(0x1bc)](_0x5d3410,_0x215a3b){const _0x4eaf6d=_0x2f1425,_0x3cfdaf=await this[_0x4eaf6d(0x4e8)][_0x4eaf6d(0x1a6)](_0x5d3410),_0x3e7c99=this[_0x4eaf6d(0x4fa)][_0x4eaf6d(0x49c)](this[_0x4eaf6d(0x32f)](_0x215a3b),_0x5d3410,_0x215a3b,_0x3cfdaf);return await _0x3e7c99['init'](),this[_0x4eaf6d(0x46f)][_0x4eaf6d(0x500)](_0x3e7c99),_0x3e7c99;}[_0x2f1425(0x32f)](_0x3e6273){const _0x527183=_0x2f1425;switch(_0x3e6273){case j['UNIVER_DOC']:return exports[_0x527183(0x358)];case j[_0x527183(0x1bf)]:return exports[_0x527183(0x4f2)];default:throw new Error(_0x527183(0x1dc)+_0x3e6273);}}},exports[_0x2f1425(0x4f1)]=Vs([Ue(0x0,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),Ue(0x1,a['Inject'](exports[_0x2f1425(0x1d4)])),Ue(0x2,a[_0x2f1425(0x468)])],exports['CollaborationController']);const nt=[_0x2f1425(0x548),_0x2f1425(0x248),_0x2f1425(0x2a6),_0x2f1425(0x4bc),_0x2f1425(0x463),'gold400'];class Xe extends a[_0x2f1425(0x387)]{constructor(){const _0x203c79=_0x2f1425;super(...arguments),d(this,_0x203c79(0x54e),new Map()),d(this,_0x203c79(0x4c1),0x0);}[_0x2f1425(0x445)](_0x3f3b93){const _0x19b6dc=_0x2f1425;if(this[_0x19b6dc(0x54e)]['has'](_0x3f3b93))return this[_0x19b6dc(0x54e)][_0x19b6dc(0x41b)](_0x3f3b93);const _0x35e9b0=nt[this[_0x19b6dc(0x4c1)]];return this[_0x19b6dc(0x4c1)]=(this['_colorIndex']+0x1)%nt[_0x19b6dc(0x38d)],this[_0x19b6dc(0x54e)]['set'](_0x3f3b93,_0x35e9b0),_0x35e9b0;}}var Ws=Object[_0x2f1425(0x1cf)],Fs=Object[_0x2f1425(0x2ab)],Gs=(_0x2c567d,_0x44e998,_0x327f11,_0x30a6d9)=>{const _0x532f46=_0x2f1425;for(var _0x36084e=_0x30a6d9>0x1?void 0x0:_0x30a6d9?Fs(_0x44e998,_0x327f11):_0x44e998,_0x29e674=_0x2c567d[_0x532f46(0x38d)]-0x1,_0xd9151;_0x29e674>=0x0;_0x29e674--)(_0xd9151=_0x2c567d[_0x29e674])&&(_0x36084e=(_0x30a6d9?_0xd9151(_0x44e998,_0x327f11,_0x36084e):_0xd9151(_0x36084e))||_0x36084e);return _0x30a6d9&&_0x36084e&&Ws(_0x44e998,_0x327f11,_0x36084e),_0x36084e;},K=(_0x551f8b,_0x53f519)=>(_0xbaece3,_0xb412e1)=>_0x53f519(_0xbaece3,_0xb412e1,_0x551f8b);const Ys=0x12c,Ks=0x64;let $e=class extends a[_0x2f1425(0x25b)]{constructor(_0x42b182,_0x1cb03c,_0xbe73ab,_0x1cf1a1,_0xf2a3ea,_0x4b265e,_0x48d558,_0x406d57,_0x397690){const _0x301ae2=_0x2f1425;super(),d(this,_0x301ae2(0x1f7),!0x1),d(this,_0x301ae2(0x34f),!0x1),d(this,_0x301ae2(0x4e0),new v['BehaviorSubject'](new Map())),d(this,_0x301ae2(0x363),this[_0x301ae2(0x4e0)][_0x301ae2(0x2fd)]()),d(this,_0x301ae2(0x173),new v[(_0x301ae2(0x21d))]([])),d(this,'roomMembers$',this[_0x301ae2(0x173)][_0x301ae2(0x53d)](v[_0x301ae2(0x320)](Ys))),d(this,_0x301ae2(0x34b),a[_0x301ae2(0x535)](_0x3ea263=>{const _0xa5ae83=_0x301ae2,_0x204388={'eventID':_[_0xa5ae83(0x565)][_0xa5ae83(0x20c)],'data':{'unitID':this['unitID'],'memberID':this[_0xa5ae83(0x472)][_0xa5ae83(0x280)](),'selection':Tt(_0x3ea263)}};this[_0xa5ae83(0x472)][_0xa5ae83(0x4b6)](_0x204388,this[_0xa5ae83(0x437)]);},Ks)),(this[_0x301ae2(0x437)]=_0x42b182,this[_0x301ae2(0x472)]=_0x1cb03c,this[_0x301ae2(0x4fa)]=_0xbe73ab,this[_0x301ae2(0x1f4)]=_0x1cf1a1,this[_0x301ae2(0x43f)]=_0xf2a3ea,this['_syncEditingCollabCursorService']=_0x4b265e,this[_0x301ae2(0x3fd)]=_0x48d558,this['_univerInstanceService']=_0x406d57,this[_0x301ae2(0x4b2)]=_0x397690);}get[_0x2f1425(0x1ef)](){const _0x410883=_0x2f1425;return this[_0x410883(0x4e0)][_0x410883(0x267)]();}get[_0x2f1425(0x560)](){const _0x2dfadd=_0x2f1425;return this[_0x2dfadd(0x173)][_0x2dfadd(0x267)]();}[_0x2f1425(0x235)](){const _0x2172b4=_0x2f1425;super[_0x2172b4(0x235)](),this[_0x2172b4(0x4e0)][_0x2172b4(0x500)](new Map()),this['_cursorInfo$'][_0x2172b4(0x342)](),this[_0x2172b4(0x173)][_0x2172b4(0x500)]([]),this[_0x2172b4(0x173)]['complete']();}[_0x2f1425(0x2fc)](){const _0x256218=_0x2f1425;this['_init']||(this['_init']=!0x0,this['_session'][_0x256218(0x3a7)]['pipe'](v[_0x256218(0x275)](this[_0x256218(0x2b4)]))['subscribe'](_0x23afed=>{const _0x5b2443=_0x256218;_0x23afed===$['ONLINE']?this[_0x5b2443(0x462)]():this['_toggleOffline']();}),this[_0x256218(0x472)][_0x256218(0x4f8)][_0x256218(0x53d)](v[_0x256218(0x275)](this[_0x256218(0x2b4)]))[_0x256218(0x3ca)](_0xf3b9b6=>{const _0x4882a2=_0x256218,_0x5347a8=_0xf3b9b6['eventID'];_0x5347a8===_[_0x4882a2(0x565)][_0x4882a2(0x20c)]&&this[_0x4882a2(0x512)](_0xf3b9b6),_0x5347a8===_[_0x4882a2(0x565)][_0x4882a2(0x4af)]&&this[_0x4882a2(0x544)](_0xf3b9b6);}),this['disposeWithMe'](this[_0x256218(0x4b2)][_0x256218(0x40b)](_0x2e83af=>{const _0x51e85c=_0x256218,_0x7976fe=_0x2e83af[_0x51e85c(0x3d5)];_0x7976fe!=null&&this[_0x51e85c(0x1f7)]&&_0x2e83af['id']===V['SetTextSelectionsOperation']['id']&&_0x7976fe['unitId']===this[_0x51e85c(0x437)]&&_0x7976fe[_0x51e85c(0x26a)]===!0x1&&this[_0x51e85c(0x34b)](_0x7976fe[_0x51e85c(0x344)]);})),this[_0x256218(0x511)][_0x256218(0x36a)][_0x256218(0x53d)](v[_0x256218(0x275)](this[_0x256218(0x2b4)]))[_0x256218(0x3ca)](_0x3be22d=>{const _0x245577=_0x256218;if((_0x3be22d==null?void 0x0:_0x3be22d[_0x245577(0x437)])!==this[_0x245577(0x437)])return;const _0x1fb512={'eventID':_[_0x245577(0x565)][_0x245577(0x20c)],'data':_0x3be22d};this[_0x245577(0x512)](_0x1fb512);}),this[_0x256218(0x425)](this[_0x256218(0x4b2)][_0x256218(0x40b)](_0x433800=>{const _0x186041=_0x256218;if(_0x433800[_0x186041(0x3d5)]==null)return;const _0x67ad78=_0x433800[_0x186041(0x3d5)];if(_0x433800['id']!==V[_0x186041(0x57e)]['id']||_0x67ad78[_0x186041(0x406)]!==this[_0x186041(0x437)])return;const _0x743079={'id':'doc.mutation.rich-text-editing','params':_0x67ad78},_0x51323b=this[_0x186041(0x1ef)];for(const [_0x4e2894,_0x223692]of _0x51323b){const _0x272b32={'id':_0x186041(0x4e5),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x223692[_0x186041(0x344)]}},_0x4a4169=this['_transformService']['transformMutation'](_0x743079,_0x272b32,!0x1);if(_['isTransformMutationFailure'](_0x4a4169))throw _0x4a4169['error'];_0x51323b[_0x186041(0x36e)](_0x4e2894,{..._0x223692,'ranges':_0x4a4169['m2Prime'][_0x186041(0x3d5)][_0x186041(0x48d)]});}queueMicrotask(()=>{const _0x13b4fc=_0x186041;this[_0x13b4fc(0x4e0)][_0x13b4fc(0x500)](_0x51323b);});})));}[_0x2f1425(0x512)](_0x695a79){const _0x5cf1fe=_0x2f1425;var _0x1bf6f7,_0x2e4cfc;const {memberID:_0x5e3fb0,selection:_0x171251}=_0x695a79['data'],_0x516e91=Us(_0x171251),_0x1193b9=(_0x2e4cfc=(_0x1bf6f7=this[_0x5cf1fe(0x43f)][_0x5cf1fe(0x398)](this[_0x5cf1fe(0x437)],_0x5e3fb0))==null?void 0x0:_0x1bf6f7[_0x5cf1fe(0x46a)])!=null?_0x2e4cfc:_0x5cf1fe(0x2ca),_0x22029a={'color':this[_0x5cf1fe(0x1f4)][_0x5cf1fe(0x445)](_0x5e3fb0),'name':_0x1193b9,'ranges':_0x516e91},_0x10f579=this['cursorInfo'];_0x10f579[_0x5cf1fe(0x36e)](_0x5e3fb0,_0x22029a),this[_0x5cf1fe(0x4e0)]['next'](_0x10f579);}[_0x2f1425(0x544)](_0x37b0e4){const _0x319efc=_0x2f1425,{memberID:_0x3d6571}=_0x37b0e4[_0x319efc(0x2a5)],_0x32da9f=this['cursorInfo'];_0x32da9f[_0x319efc(0x28f)](_0x3d6571),this['_cursorInfo$']['next'](_0x32da9f);}[_0x2f1425(0x462)](){const _0x3d84a7=_0x2f1425;var _0x3aea30;if(this[_0x3d84a7(0x1f7)]=!0x0,((_0x3aea30=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x3aea30[_0x3d84a7(0x1fa)]())!==this[_0x3d84a7(0x437)])return;const _0x3180fa=this['_injector'][_0x3d84a7(0x41b)](V[_0x3d84a7(0x3b6)])['getDocRanges']();Array[_0x3d84a7(0x476)](_0x3180fa)&&_0x3180fa[_0x3d84a7(0x38d)]>0x0&&this['_updateLocalCursor'](_0x3180fa);}[_0x2f1425(0x3c0)](){const _0x22f96e=_0x2f1425;this[_0x22f96e(0x1f7)]=!0x1;}};$e=Gs([K(0x2,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),K(0x3,a[_0x2f1425(0x4d1)](Xe)),K(0x4,a[_0x2f1425(0x4d1)](q)),K(0x5,a[_0x2f1425(0x4d1)](Ye)),K(0x6,_[_0x2f1425(0x298)]),K(0x7,a[_0x2f1425(0x468)]),K(0x8,a[_0x2f1425(0x477)])],$e);var Xs=Object['defineProperty'],qs=Object[_0x2f1425(0x2ab)],zs=(_0x5699dd,_0x213f9d,_0x5a57ae,_0x5216bb)=>{for(var _0x25cbb2=_0x5216bb>0x1?void 0x0:_0x5216bb?qs(_0x213f9d,_0x5a57ae):_0x213f9d,_0x4850d0=_0x5699dd['length']-0x1,_0x341db1;_0x4850d0>=0x0;_0x4850d0--)(_0x341db1=_0x5699dd[_0x4850d0])&&(_0x25cbb2=(_0x5216bb?_0x341db1(_0x213f9d,_0x5a57ae,_0x25cbb2):_0x341db1(_0x25cbb2))||_0x25cbb2);return _0x5216bb&&_0x25cbb2&&Xs(_0x213f9d,_0x5a57ae,_0x25cbb2),_0x25cbb2;},Q=(_0x8b3d0c,_0x546f3a)=>(_0x1c4d6b,_0x3a83e6)=>_0x546f3a(_0x1c4d6b,_0x3a83e6,_0x8b3d0c);const Js=0x12c,Zs=0x64,Qs=()=>{let _0x540dca=[],_0xaded45=!0x1;return _0x484d40=>{const _0x36d972=_0x4554;_0x540dca[_0x36d972(0x52d)](_0x484d40),_0xaded45||(_0xaded45=!0x0,setTimeout(()=>{const _0x4d67f4=_0x36d972;_0x540dca[_0x4d67f4(0x28e)](_0x271a22=>_0x271a22()),_0x540dca=[],_0xaded45=!0x1;}));};};let He=class extends a[_0x2f1425(0x25b)]{constructor(_0x516fe9,_0x244ecf,_0x40ba53,_0x4a1d3f,_0x184433,_0x167edd,_0x2c0add,_0x1e68a0){const _0x70189e=_0x2f1425;super(),d(this,_0x70189e(0x1f7),!0x1),d(this,_0x70189e(0x34f),!0x1),d(this,_0x70189e(0x4e0),new v['BehaviorSubject'](new Map())),d(this,_0x70189e(0x363),this[_0x70189e(0x4e0)][_0x70189e(0x2fd)]()),d(this,_0x70189e(0x173),new v['BehaviorSubject']([])),d(this,_0x70189e(0x431),this[_0x70189e(0x173)][_0x70189e(0x53d)](v['debounceTime'](Js))),d(this,_0x70189e(0x34b),a[_0x70189e(0x535)]((_0xad820d,_0x359319)=>{const _0x129f9b=_0x70189e,_0x5d871e={'eventID':_[_0x129f9b(0x565)][_0x129f9b(0x20c)],'data':{'unitID':this[_0x129f9b(0x437)],'memberID':this['_session']['getMemberID'](),'selection':Je[_0x129f9b(0x18f)](_0xad820d,_0x359319[_0x129f9b(0x4a6)])}};this[_0x129f9b(0x472)][_0x129f9b(0x4b6)](_0x5d871e,this[_0x129f9b(0x437)]);},Zs)),(this['unitID']=_0x516fe9,this[_0x70189e(0x472)]=_0x244ecf,this[_0x70189e(0x4fa)]=_0x40ba53,this[_0x70189e(0x1f4)]=_0x4a1d3f,this[_0x70189e(0x43f)]=_0x184433,this['_univerInstanceService']=_0x167edd,this[_0x70189e(0x4b2)]=_0x2c0add,this[_0x70189e(0x2f6)]=_0x1e68a0);}get[_0x2f1425(0x1ef)](){const _0xb86f32=_0x2f1425;return this[_0xb86f32(0x4e0)][_0xb86f32(0x267)]();}get[_0x2f1425(0x560)](){const _0x242cfc=_0x2f1425;return this[_0x242cfc(0x173)]['getValue']();}[_0x2f1425(0x235)](){const _0x1a3790=_0x2f1425;super['dispose'](),this[_0x1a3790(0x4e0)]['next'](new Map()),this[_0x1a3790(0x4e0)]['complete'](),this[_0x1a3790(0x173)][_0x1a3790(0x500)]([]),this['_roomMembers$']['complete']();}[_0x2f1425(0x2fc)](){const _0x5873af=_0x2f1425;this[_0x5873af(0x34f)]||(this[_0x5873af(0x34f)]=!0x0,this[_0x5873af(0x472)][_0x5873af(0x3a7)][_0x5873af(0x53d)](v['takeUntil'](this['dispose$']))[_0x5873af(0x3ca)](_0x21dfff=>{const _0xa123e8=_0x5873af;_0x21dfff===$['ONLINE']?this['_toggleOnline']():this[_0xa123e8(0x3c0)]();}),this['_session']['event$'][_0x5873af(0x53d)](v[_0x5873af(0x275)](this[_0x5873af(0x2b4)]))[_0x5873af(0x3ca)](_0x173e3f=>{const _0x152658=_0x5873af,_0x17ab7d=_0x173e3f[_0x152658(0x188)];_0x17ab7d===_['CollaborationEvent'][_0x152658(0x20c)]&&this[_0x152658(0x512)](_0x173e3f),_0x17ab7d===_['CollaborationEvent']['USERS_LEAVE']&&this[_0x152658(0x544)](_0x173e3f);}),this[_0x5873af(0x3be)](),this[_0x5873af(0x425)](this[_0x5873af(0x4b2)]['onCommandExecuted'](_0x86eb2e=>{const _0x3f0521=_0x5873af;if(this[_0x3f0521(0x1f7)]&&_0x86eb2e['id']===C[_0x3f0521(0x183)]['id']&&_0x86eb2e[_0x3f0521(0x3d5)]['unitId']===this[_0x3f0521(0x437)]){const _0x5ccf8d=_0x86eb2e[_0x3f0521(0x3d5)];this[_0x3f0521(0x34b)](_0x5ccf8d['subUnitId'],_0x5ccf8d[_0x3f0521(0x262)][0x0]);}})));}[_0x2f1425(0x512)](_0x4cc120){const _0x1cef4e=_0x2f1425;var _0x1e9bb5,_0x1435c7;const {memberID:_0x2c9ad5,selection:_0x24240f}=_0x4cc120['data'],{sheetName:_0x4e835f,range:_0x470e7c}=Je[_0x1cef4e(0x29d)](_0x24240f),_0x5b3629={'name':(_0x1435c7=(_0x1e9bb5=this[_0x1cef4e(0x43f)][_0x1cef4e(0x398)](this['unitID'],_0x2c9ad5))==null?void 0x0:_0x1e9bb5[_0x1cef4e(0x46a)])!=null?_0x1435c7:'Unknown\x20user','range':this[_0x1cef4e(0x278)](_0x4e835f,_0x470e7c),'sheetID':_0x4e835f,'color':this[_0x1cef4e(0x1f4)][_0x1cef4e(0x445)](_0x2c9ad5),'selection':_0x24240f},_0x39fa56=this[_0x1cef4e(0x1ef)];_0x39fa56[_0x1cef4e(0x36e)](_0x2c9ad5,_0x5b3629),this['_cursorInfo$'][_0x1cef4e(0x500)](_0x39fa56);}[_0x2f1425(0x544)](_0x1f2bb1){const _0x20c550=_0x2f1425,{memberID:_0x5aa84e}=_0x1f2bb1['data'],_0x97acb=this[_0x20c550(0x1ef)];_0x97acb[_0x20c550(0x28f)](_0x5aa84e),this['_cursorInfo$'][_0x20c550(0x500)](_0x97acb);}[_0x2f1425(0x278)](_0x7fe6f4,_0x443d5e){const _0x397521=_0x2f1425;var _0x290a99,_0x168571;const _0x19da5e=(_0x168571=(_0x290a99=this[_0x397521(0x458)]['getUniverSheetInstance'](this[_0x397521(0x437)]))==null?void 0x0:_0x290a99[_0x397521(0x2af)](_0x7fe6f4))==null?void 0x0:_0x168571['getMergeData']();return(_0x19da5e==null?void 0x0:_0x19da5e['find'](_0x5535ac=>a[_0x397521(0x4fd)]['contains'](_0x5535ac,_0x443d5e)))||_0x443d5e;}['_onRefRangeChange'](){const _0x3fe57d=_0x2f1425,_0xd15ada=new a['DisposableCollection'](),_0x2088a2=Qs(),_0x5eb9ae=()=>{const _0x1254e3=_0x4554;_0xd15ada[_0x1254e3(0x235)]();const _0x1021d8=(_0x17345b,_0x2880e5,_0x351776,_0x42e4c3)=>{const _0x28841a=_0x1254e3;let _0x3b21ab=[];switch(_0x17345b['id']){case C['EffectRefRangId'][_0x28841a(0x257)]:{_0x3b21ab=C[_0x28841a(0x317)](_0x17345b,_0x42e4c3);break;}case C[_0x28841a(0x300)][_0x28841a(0x2e2)]:{_0x3b21ab=C[_0x28841a(0x4a3)](_0x17345b,_0x42e4c3);break;}case C[_0x28841a(0x300)][_0x28841a(0x17a)]:{_0x3b21ab=C['handleInsertCol'](_0x17345b,_0x42e4c3);break;}case C[_0x28841a(0x300)][_0x28841a(0x4dc)]:{_0x3b21ab=C[_0x28841a(0x506)](_0x17345b,_0x42e4c3);break;}case C['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x3b21ab=C[_0x28841a(0x3cf)](_0x17345b,_0x42e4c3);break;}case C[_0x28841a(0x300)]['InsertRowCommandId']:{_0x3b21ab=C[_0x28841a(0x3d6)](_0x17345b,_0x42e4c3);break;}case C[_0x28841a(0x300)][_0x28841a(0x25e)]:{_0x3b21ab=C[_0x28841a(0x382)](_0x17345b,_0x42e4c3);break;}case C['EffectRefRangId']['RemoveColCommandId']:{_0x3b21ab=C['handleIRemoveCol'](_0x17345b,_0x42e4c3);break;}case C['EffectRefRangId'][_0x28841a(0x538)]:{_0x3b21ab=C[_0x28841a(0x20b)](_0x17345b,_0x42e4c3);break;}}const _0x32fe9d=C[_0x28841a(0x3ea)](_0x3b21ab,_0x42e4c3),_0x9304f4=this[_0x28841a(0x1ef)][_0x28841a(0x41b)](_0x2880e5);if(_0x9304f4&&_0x32fe9d){const _0x4b3334={..._0x9304f4,'range':_0x32fe9d};this[_0x28841a(0x1ef)][_0x28841a(0x36e)](_0x2880e5,_0x4b3334),_0x2088a2(()=>{const _0x170b0a=_0x28841a,_0xcf4b06=this[_0x170b0a(0x2f6)][_0x170b0a(0x539)](_0x32fe9d,_0x1d9aef=>(_0xcf4b06['dispose'](),_0x1021d8(_0x1d9aef,_0x2880e5,_0x351776,_0x32fe9d)));_0xd15ada[_0x170b0a(0x1fd)](_0xcf4b06);});}return{'redos':[],'undos':[]};};this[_0x1254e3(0x1ef)][_0x1254e3(0x28e)]((_0x18ac48,_0x512f53)=>{const _0x1eb993=_0x1254e3,{range:_0x38f146,sheetID:_0xaa7b89}=_0x18ac48,_0x18a67d=this[_0x1eb993(0x2f6)][_0x1eb993(0x539)](_0x38f146,_0x1f0de5=>(_0x18a67d['dispose'](),_0x1021d8(_0x1f0de5,_0x512f53,_0xaa7b89,_0x38f146)));_0xd15ada[_0x1eb993(0x1fd)](_0x18a67d);});};this[_0x3fe57d(0x425)](a[_0x3fe57d(0x2df)](this['_cursorInfo$'][_0x3fe57d(0x3ca)](()=>{_0x5eb9ae();})));}[_0x2f1425(0x462)](){const _0x557626=_0x2f1425;var _0x29e9e0,_0x291edd;if(this[_0x557626(0x1f7)]=!0x0,((_0x29e9e0=this[_0x557626(0x458)][_0x557626(0x199)]())==null?void 0x0:_0x29e9e0[_0x557626(0x1fa)]())!==this[_0x557626(0x437)])return;const _0x400f04=(_0x291edd=this[_0x557626(0x4fa)][_0x557626(0x41b)](C[_0x557626(0x446)])['getCurrentSelections']())==null?void 0x0:_0x291edd[0x0],_0x50ba52=this[_0x557626(0x458)][_0x557626(0x1b6)](a[_0x557626(0x35f)][_0x557626(0x1bf)])[_0x557626(0x51e)]();_0x400f04&&_0x50ba52&&this[_0x557626(0x34b)](_0x50ba52[_0x557626(0x1be)](),_0x400f04);}['_toggleOffline'](){const _0x218867=_0x2f1425;this[_0x218867(0x1f7)]=!0x1;}};He=zs([Q(0x2,a['Inject'](a['Injector'])),Q(0x3,a['Inject'](Xe)),Q(0x4,a[_0x2f1425(0x4d1)](q)),Q(0x5,a['IUniverInstanceService']),Q(0x6,a[_0x2f1425(0x477)]),Q(0x7,a[_0x2f1425(0x4d1)](C[_0x2f1425(0x3d9)]))],He);var ei=Object['defineProperty'],ti=Object[_0x2f1425(0x2ab)],si=(_0x473372,_0x55b299,_0xbb50d5,_0x1d6354)=>{const _0x12b0bf=_0x2f1425;for(var _0x146d29=_0x1d6354>0x1?void 0x0:_0x1d6354?ti(_0x55b299,_0xbb50d5):_0x55b299,_0x764dbe=_0x473372[_0x12b0bf(0x38d)]-0x1,_0x229c3f;_0x764dbe>=0x0;_0x764dbe--)(_0x229c3f=_0x473372[_0x764dbe])&&(_0x146d29=(_0x1d6354?_0x229c3f(_0x55b299,_0xbb50d5,_0x146d29):_0x229c3f(_0x146d29))||_0x146d29);return _0x1d6354&&_0x146d29&&ei(_0x55b299,_0xbb50d5,_0x146d29),_0x146d29;},Pe=(_0x2725ec,_0x26f32c)=>(_0x217b1a,_0x289c74)=>_0x26f32c(_0x217b1a,_0x289c74,_0x2725ec);let ie=class extends a['RxDisposable']{constructor(_0x255c08,_0x5dfae9,_0x108366){const _0x5184ce=_0x2f1425;super(),d(this,_0x5184ce(0x4d5),new Map()),d(this,_0x5184ce(0x46f),new v['Subject']()),(this[_0x5184ce(0x458)]=_0x255c08,this[_0x5184ce(0x4fa)]=_0x5dfae9,this[_0x5184ce(0x4e8)]=_0x108366,this[_0x5184ce(0x34f)]());}[_0x2f1425(0x235)](){const _0x2a338c=_0x2f1425;super[_0x2a338c(0x235)](),this[_0x2a338c(0x46f)][_0x2a338c(0x342)](),this[_0x2a338c(0x4d5)]['forEach'](_0x10074e=>_0x10074e[_0x2a338c(0x235)]());}['getCollabCursors$'](_0x1b8c24){const _0x37786e=_0x2f1425;return this['_entities'][_0x37786e(0x555)](_0x1b8c24)?this[_0x37786e(0x4d5)][_0x37786e(0x41b)](_0x1b8c24)[_0x37786e(0x363)]:this[_0x37786e(0x46f)][_0x37786e(0x53d)](v[_0x37786e(0x2b7)](_0x6bd5de=>_0x6bd5de['unitID']===_0x1b8c24),v[_0x37786e(0x3d7)](_0x483d6b=>_0x483d6b[_0x37786e(0x363)]));}[_0x2f1425(0x34f)](){const _0x3ae56d=_0x2f1425;this[_0x3ae56d(0x458)]['getTypeOfUnitAdded$'](a[_0x3ae56d(0x35f)][_0x3ae56d(0x1bf)])['pipe'](v[_0x3ae56d(0x275)](this['dispose$']))[_0x3ae56d(0x3ca)](async _0x48e4c7=>{const _0x495898=_0x3ae56d,_0x2b246b=_0x48e4c7[_0x495898(0x1fa)](),_0x421490=await this[_0x495898(0x354)](_0x2b246b);this[_0x495898(0x46f)][_0x495898(0x500)](_0x421490),this['_entities']['set'](_0x2b246b,_0x421490);}),this[_0x3ae56d(0x458)]['getTypeOfUnitAdded$'](a['UniverInstanceType']['UNIVER_DOC'])['pipe'](v['takeUntil'](this[_0x3ae56d(0x2b4)]))[_0x3ae56d(0x53d)](v[_0x3ae56d(0x2b7)](_0x115e22=>!_0x115e22[_0x3ae56d(0x1fa)]()['startsWith']('__')))['subscribe'](async _0x170a72=>{const _0x17bbb4=_0x3ae56d,_0x569ef5=_0x170a72[_0x17bbb4(0x1fa)](),_0x1dcd93=await this[_0x17bbb4(0x37a)](_0x569ef5);this[_0x17bbb4(0x46f)][_0x17bbb4(0x500)](_0x1dcd93),this[_0x17bbb4(0x4d5)][_0x17bbb4(0x36e)](_0x569ef5,_0x1dcd93);}),v[_0x3ae56d(0x18a)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x3ae56d(0x35f)][_0x3ae56d(0x3df)]),this[_0x3ae56d(0x458)][_0x3ae56d(0x260)](a[_0x3ae56d(0x35f)][_0x3ae56d(0x1bf)]))['pipe'](v['takeUntil'](this[_0x3ae56d(0x2b4)]))[_0x3ae56d(0x3ca)](_0x586933=>{const _0x27c63b=_0x3ae56d,_0x1e83cc=_0x586933['getUnitId'](),_0x4a104b=this[_0x27c63b(0x4d5)][_0x27c63b(0x41b)](_0x1e83cc);_0x4a104b&&(_0x4a104b[_0x27c63b(0x235)](),this[_0x27c63b(0x4d5)][_0x27c63b(0x28f)](_0x1e83cc));});}async['_startSheetCollabCursor'](_0x38bbbe){const _0x11b0d5=_0x2f1425,_0x129c22=await this['_collabSessionService'][_0x11b0d5(0x1a6)](_0x38bbbe),_0x4b30c7=this[_0x11b0d5(0x4fa)][_0x11b0d5(0x49c)](He,_0x38bbbe,_0x129c22);return _0x4b30c7[_0x11b0d5(0x2fc)](),_0x4b30c7;}async[_0x2f1425(0x37a)](_0x1ffb35){const _0x23e330=_0x2f1425,_0xecd04e=await this[_0x23e330(0x4e8)][_0x23e330(0x1a6)](_0x1ffb35),_0x2a16df=this[_0x23e330(0x4fa)]['createInstance']($e,_0x1ffb35,_0xecd04e);return _0x2a16df[_0x23e330(0x2fc)](),_0x2a16df;}};ie=si([Pe(0x0,a['IUniverInstanceService']),Pe(0x1,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),Pe(0x2,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x1d4)]))],ie);const ue=0x14,rt=0xc8,we=0x4,ii=0x5;function ni(_0x49a342,_0x23adb4){const _0x68c15a=_0x2f1425;let {radius:_0x4dd0ee,width:_0x497a52,height:_0x5b9c89}=_0x23adb4;_0x4dd0ee=_0x4dd0ee!=null?_0x4dd0ee:0x0,_0x497a52=_0x497a52!=null?_0x497a52:0x1e,_0x5b9c89=_0x5b9c89!=null?_0x5b9c89:0x1e;let _0x177483=0x0,_0x43d1e4=0x0,_0x173bf7=0x0;_0x177483=_0x43d1e4=_0x173bf7=Math[_0x68c15a(0x51b)](_0x4dd0ee,_0x497a52/0x2,_0x5b9c89/0x2),_0x49a342['beginPath'](),_0x49a342[_0x68c15a(0x1e7)](_0x177483,0x0),_0x49a342[_0x68c15a(0x2c3)](_0x497a52-_0x43d1e4,0x0),_0x49a342[_0x68c15a(0x40d)](_0x497a52-_0x43d1e4,_0x43d1e4,_0x43d1e4,Math['PI']*0x3/0x2,0x0,!0x1),_0x49a342[_0x68c15a(0x2c3)](_0x497a52,_0x5b9c89-_0x173bf7),_0x49a342['arc'](_0x497a52-_0x173bf7,_0x5b9c89-_0x173bf7,_0x173bf7,0x0,Math['PI']/0x2,!0x1),_0x49a342['lineTo'](0x0,_0x5b9c89),_0x49a342[_0x68c15a(0x2c3)](0x0,_0x177483),_0x49a342[_0x68c15a(0x40d)](_0x177483,_0x177483,_0x177483,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x49a342['closePath'](),_0x23adb4[_0x68c15a(0x203)]&&(_0x49a342[_0x68c15a(0x37d)](),_0x49a342[_0x68c15a(0x1f3)]=_0x23adb4['fill'],_0x23adb4['fillRule']===_0x68c15a(0x27b)?_0x49a342[_0x68c15a(0x203)](_0x68c15a(0x27b)):_0x49a342[_0x68c15a(0x203)](),_0x49a342['restore']());}class Te extends R[_0x2f1425(0x4c6)]{constructor(_0x5c278f,_0x2c6582){const _0x3d4b2e=_0x2f1425;super(_0x5c278f,_0x2c6582),d(this,_0x3d4b2e(0x247)),d(this,_0x3d4b2e(0x40f)),(this[_0x3d4b2e(0x247)]=_0x2c6582==null?void 0x0:_0x2c6582[_0x3d4b2e(0x247)],this[_0x3d4b2e(0x40f)]=_0x2c6582==null?void 0x0:_0x2c6582['text']);}static['drawWith'](_0x797d79,_0x5305a2){const _0x3e91b6=_0x2f1425,{text:_0x522e78,color:_0x5d316a}=_0x5305a2;_0x797d79[_0x3e91b6(0x37d)](),_0x797d79['font']=_0x3e91b6(0x1ea);const _0x27a191=_0x797d79[_0x3e91b6(0x44c)](_0x522e78)['width'],_0x49e1d3=Math[_0x3e91b6(0x51b)](_0x27a191+0x2*we,rt);ni(_0x797d79,{'height':ue,'radius':0x4,'width':_0x49e1d3,'fill':_0x5d316a,'evented':!0x1}),_0x797d79[_0x3e91b6(0x1f3)]=_0x3e91b6(0x1aa);const _0x35d0ed=we,_0x58662a=ue-ii,_0xb166e9=rt-0x2*we;if(_0x27a191>_0xb166e9){let _0x4c3209='',_0x26e9d5=0x0;for(const _0x3fc692 of _0x522e78){const _0x38a49e=_0x797d79[_0x3e91b6(0x44c)](_0x3fc692)[_0x3e91b6(0x4f6)];if(_0x26e9d5+_0x38a49e<=_0xb166e9-_0x797d79['measureText'](_0x3e91b6(0x505))[_0x3e91b6(0x4f6)])_0x4c3209+=_0x3fc692,_0x26e9d5+=_0x38a49e;else{_0x4c3209+=_0x3e91b6(0x505);break;}}_0x797d79['fillText'](_0x4c3209,_0x35d0ed,_0x58662a);}else _0x797d79[_0x3e91b6(0x467)](_0x522e78,_0x35d0ed,_0x58662a);_0x797d79['restore']();}[_0x2f1425(0x47e)](_0x2a459e){const _0x2a8e7e=_0x2f1425;Te[_0x2a8e7e(0x335)](_0x2a459e,this);}}const Me=_0x2f1425(0x22c),ri=_0x2f1425(0x182),oi=_0x2f1425(0x2c9),ce=0x6,ai=1.5,Ne=0x4,ci=1.5,li=_0x2f1425(0x1a9);class ot{constructor(_0x2c6877,_0x5f15d4,_0x5a1312,_0x2f561d){const _0xf89621=_0x2f1425;d(this,_0xf89621(0x33f),[]),d(this,'_anchor',null),d(this,_0xf89621(0x570),null),d(this,_0xf89621(0x20a),null),d(this,_0xf89621(0x18d),null),d(this,_0xf89621(0x3d1),null),(this['_cursor']=_0x2c6877,this[_0xf89621(0x1a7)]=_0x5f15d4,this[_0xf89621(0x229)]=_0x5a1312,this['_document']=_0x2f561d,this[_0xf89621(0x45f)]());}set[_0x2f1425(0x395)](_0xe3840f){const _0x3db049=_0x2f1425;_0xe3840f?(this[_0x3db049(0x20a)]&&this['_anchorDot'][_0x3db049(0x234)](),this[_0x3db049(0x570)]&&this[_0x3db049(0x570)][_0x3db049(0x1b9)]()):(this[_0x3db049(0x20a)]&&this['_anchorDot'][_0x3db049(0x1b9)](),this[_0x3db049(0x570)]&&this[_0x3db049(0x570)]['hide']());}['dispose'](){const _0x384e2d=_0x2f1425;for(const _0x500185 of this[_0x384e2d(0x33f)])_0x500185[_0x384e2d(0x235)]();this['_textBubble']&&this['_textBubble'][_0x384e2d(0x235)](),this[_0x384e2d(0x20a)]&&this[_0x384e2d(0x20a)][_0x384e2d(0x235)](),this['_anchor']&&this[_0x384e2d(0x422)][_0x384e2d(0x235)](),this['_eventUnsubscribe']&&this[_0x384e2d(0x3d1)]();}[_0x2f1425(0x45f)](){const _0x3b7109=_0x2f1425;var _0x6d0175;const {_docSkeleton:_0x194335,_document:_0x389b4e}=this,{color:_0x36a2b1,name:_0x456489,ranges:_0xda1bf8}=this['_cursor'],_0x400cb6=_0x389b4e['getOffsetConfig'](),{docsLeft:_0x1107de,docsTop:_0x40b6c0}=_0x400cb6,_0x506dfb=new w[(_0x3b7109(0x386))](_0x400cb6,_0x194335);for(const {startOffset:_0x199e50,endOffset:_0x489bc2,collapsed:_0x5e622f,isActive:_0x2551ff}of _0xda1bf8){const _0x4b4a70=_0x194335[_0x3b7109(0x515)](_0x199e50),_0x540a35=_0x194335[_0x3b7109(0x515)](_0x489bc2);if(_0x2551ff){const {contentBoxPointGroup:_0x8f6bd6}=_0x506dfb[_0x3b7109(0x4ff)](_0x540a35,_0x540a35);if(_0x8f6bd6['length']===0x0)continue;this[_0x3b7109(0x27d)](_0x36a2b1,_0x8f6bd6,_0x1107de,_0x40b6c0,_0x456489),this[_0x3b7109(0x3d1)]=this['_handleHover']();}if(!_0x5e622f&&_0x4b4a70&&_0x540a35){if(w[_0x3b7109(0x31c)](_0x4b4a70,_0x540a35)){const _0x1803ff=new w[(_0x3b7109(0x19a))](_0x400cb6,_0x194335),{pointGroup:_0x49b2a9}=(_0x6d0175=_0x1803ff['getRangePointData'](_0x4b4a70,_0x540a35))!=null?_0x6d0175:{};if(_0x49b2a9==null||_0x49b2a9[_0x3b7109(0x38d)]===0x0)continue;this[_0x3b7109(0x48b)](_0x36a2b1,_0x49b2a9,_0x1107de,_0x40b6c0);}else{const {contentBoxPointGroup:_0x5279bf}=_0x506dfb[_0x3b7109(0x4ff)](_0x4b4a70,_0x540a35);if(_0x5279bf[_0x3b7109(0x38d)]===0x0)continue;this[_0x3b7109(0x1a8)](_0x36a2b1,_0x5279bf,_0x1107de,_0x40b6c0);}}}}[_0x2f1425(0x27d)](_0x3faf81,_0x464b39,_0x1d6b8b,_0x525c59,_0x38a5f0){const _0x4d1efd=_0x2f1425,_0x1200dc=this['_getAnchorBounding'](_0x464b39),{left:_0x49ed1c,top:_0x26e550,height:_0x213d6b}=_0x1200dc,_0x594eb5=this[_0x4d1efd(0x3e6)](),_0x4556cb=ci/_0x594eb5,_0xe32581=new R[(_0x4d1efd(0x294))](Me+a['Tools']['generateRandomId'](ce),{'left':_0x49ed1c+_0x1d6b8b-_0x4556cb,'top':_0x26e550+_0x525c59,'height':_0x213d6b,'width':ai,'fill':_0x3faf81||R[_0x4d1efd(0x2ad)](a['COLORS'][_0x4d1efd(0x4ad)],0x0),'strokeWidth':_0x4556cb,'stroke':li,'evented':!0x0});this[_0x4d1efd(0x422)]=_0xe32581,this[_0x4d1efd(0x1a7)][_0x4d1efd(0x2bd)](_0xe32581,w[_0x4d1efd(0x1b8)]);const _0x5d16d9=new R[(_0x4d1efd(0x294))](Me+a['Tools'][_0x4d1efd(0x185)](ce),{'left':_0x49ed1c+_0x1d6b8b-_0x4556cb,'top':_0x26e550+_0x525c59-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x3faf81||R[_0x4d1efd(0x2ad)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x3faf81||R[_0x4d1efd(0x2ad)](a[_0x4d1efd(0x51a)]['black'],0x0),'evented':!0x1});this[_0x4d1efd(0x20a)]=_0x5d16d9,this[_0x4d1efd(0x1a7)][_0x4d1efd(0x2bd)](_0x5d16d9,w[_0x4d1efd(0x1b8)]);const _0xa48081=new Te(Me+a['Tools'][_0x4d1efd(0x185)](ce),{'left':_0x49ed1c+_0x1d6b8b-_0x4556cb,'top':_0x26e550+_0x525c59-ue,'text':_0x38a5f0,'color':_0x3faf81});this['_textBubble']=_0xa48081,this[_0x4d1efd(0x1a7)][_0x4d1efd(0x2bd)](_0xa48081,w[_0x4d1efd(0x1b8)]),this[_0x4d1efd(0x395)]=!0x1;}['_handleHover'](){const _0x3f6099=_0x2f1425,_0x14becc=this[_0x3f6099(0x422)][_0x3f6099(0x379)]['subscribeEvent'](()=>{const _0x31f91b=_0x3f6099;this[_0x31f91b(0x395)]=!0x0;}),_0x1ea3ce=this[_0x3f6099(0x422)][_0x3f6099(0x393)][_0x3f6099(0x41d)](()=>{const _0x5f0a38=_0x3f6099;this[_0x5f0a38(0x18d)]&&clearTimeout(this[_0x5f0a38(0x18d)]),this[_0x5f0a38(0x18d)]=setTimeout(()=>{const _0xf94dcd=_0x5f0a38;this[_0xf94dcd(0x395)]=!0x1;},0x7d0);});return()=>{const _0x27ba63=_0x3f6099;_0x14becc['unsubscribe'](),_0x1ea3ce[_0x27ba63(0x225)]();};}['_drawTextRange'](_0x145f06,_0x1b0d7c,_0x9e0734,_0x1e83f1){const _0x2d336d=_0x2f1425,_0x30e539=new a[(_0x2d336d(0x381))](_0x145f06)[_0x2d336d(0x2be)](0.2)[_0x2d336d(0x56f)](),_0xfc45ae=new R['RegularPolygon'](ri+a[_0x2d336d(0x494)][_0x2d336d(0x185)](ce),{'pointsGroup':_0x1b0d7c,'fill':_0x30e539||R['getColor'](a[_0x2d336d(0x51a)][_0x2d336d(0x4ad)],0.2),'left':_0x9e0734,'top':_0x1e83f1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2d336d(0x33f)][_0x2d336d(0x52d)](_0xfc45ae),this[_0x2d336d(0x1a7)][_0x2d336d(0x2bd)](_0xfc45ae,w['TEXT_RANGE_LAYER_INDEX']);}[_0x2f1425(0x48b)](_0x593a62,_0x1fe388,_0x5a07ec,_0x28f1ec){const _0x38f998=_0x2f1425,_0x53b552=new a['ColorKit'](_0x593a62)[_0x38f998(0x2be)](0.2)[_0x38f998(0x56f)](),_0xf74bd7=new R[(_0x38f998(0x41c))](oi+a[_0x38f998(0x494)][_0x38f998(0x185)](ce),{'pointsGroup':_0x1fe388,'fill':_0x53b552||R['getColor'](a[_0x38f998(0x51a)]['black'],0.2),'left':_0x5a07ec,'top':_0x28f1ec,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x38f998(0x52d)](_0xf74bd7),this['_scene'][_0x38f998(0x2bd)](_0xf74bd7,w[_0x38f998(0x1b8)]);}[_0x2f1425(0x1a4)](_0x46db2f){const _0x399860=_0x46db2f[0x0],_0x16e6e2=_0x399860[0x0],_0x4d1014=_0x399860[0x2],{x:_0x29ba25,y:_0xe22f3}=_0x16e6e2,{x:_0xa95e0,y:_0x52fdc3}=_0x4d1014;return{'left':_0x29ba25,'top':_0xe22f3,'width':_0xa95e0-_0x29ba25,'height':_0x52fdc3-_0xe22f3};}[_0x2f1425(0x3e6)](){const _0x5d8106=_0x2f1425,{scaleX:_0x4e7f2b,scaleY:_0x297bf6}=this[_0x5d8106(0x1a7)][_0x5d8106(0x578)]();return Math[_0x5d8106(0x29f)](_0x4e7f2b,_0x297bf6);}}var hi=Object[_0x2f1425(0x1cf)],_i=Object[_0x2f1425(0x2ab)],ui=(_0xcdb3a3,_0x57d895,_0x25b500,_0x5c818f)=>{for(var _0x19dafd=_0x5c818f>0x1?void 0x0:_0x5c818f?_i(_0x57d895,_0x25b500):_0x57d895,_0x5f3bf=_0xcdb3a3['length']-0x1,_0x4edb1e;_0x5f3bf>=0x0;_0x5f3bf--)(_0x4edb1e=_0xcdb3a3[_0x5f3bf])&&(_0x19dafd=(_0x5c818f?_0x4edb1e(_0x57d895,_0x25b500,_0x19dafd):_0x4edb1e(_0x19dafd))||_0x19dafd);return _0x5c818f&&_0x19dafd&&hi(_0x57d895,_0x25b500,_0x19dafd),_0x19dafd;},de=(_0x3e8591,_0x3084c3)=>(_0x52994b,_0x79ff7a)=>_0x3084c3(_0x52994b,_0x79ff7a,_0x3e8591);let xe=class extends a[_0x2f1425(0x25b)]{constructor(_0x4eae6f,_0x42f9b7,_0x11ad58,_0x4cb361,_0x4590d6){const _0x3b91b9=_0x2f1425;super(),d(this,_0x3b91b9(0x314),[]),d(this,_0x3b91b9(0x228),[]),(this[_0x3b91b9(0x226)]=_0x4eae6f,this[_0x3b91b9(0x402)]=_0x42f9b7,this['_collabCursorController']=_0x11ad58,this[_0x3b91b9(0x4b2)]=_0x4cb361,this[_0x3b91b9(0x1e9)]=_0x4590d6,this['_init']());}[_0x2f1425(0x34f)](){const _0x3c9314=_0x2f1425,_0x206b34=this['_context'][_0x3c9314(0x406)],_0x6eb2ac=this['_docSkeletonManagerService'];this['disposeWithMe'](v[_0x3c9314(0x190)]([this[_0x3c9314(0x3da)][_0x3c9314(0x338)](_0x206b34),this['_themeService'][_0x3c9314(0x3b1)]])[_0x3c9314(0x53d)](E[_0x3c9314(0x1c9)](([_0x228ae0,_0x10639d])=>({'skeleton':_0x6eb2ac[_0x3c9314(0x18c)](),'cursors':[..._0x228ae0[_0x3c9314(0x2e0)]()][_0x3c9314(0x3ac)](_0x3f4073=>({..._0x3f4073,'color':_0x10639d[_0x3f4073[_0x3c9314(0x247)]]}))})))[_0x3c9314(0x3ca)](_0x50df42=>{const _0x2f2bb1=_0x3c9314;if(this[_0x2f2bb1(0x255)](),_0x50df42){const {skeleton:_0x8b27eb,cursors:_0x346d6b}=_0x50df42;this['_updateCollabCursors'](_0x8b27eb,_0x346d6b);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x2f1425(0x357)](_0x523022,_0x35d695){const _0x338727=_0x2f1425,{scene:_0x1f1517,mainComponent:_0x5346ed}=this[_0x338727(0x226)],_0x3e6533=_0x35d695[_0x338727(0x1c9)](_0x1b5bca=>new ot(_0x1b5bca,_0x1f1517,_0x523022,_0x5346ed));this[_0x338727(0x314)]=_0x3e6533,this['_cursors']=_0x35d695;}[_0x2f1425(0x1f9)](){const _0x562ed9=_0x2f1425;this[_0x562ed9(0x255)]();const {scene:_0x10fa7b,mainComponent:_0x56fac5}=this[_0x562ed9(0x226)],_0x469b79=this[_0x562ed9(0x402)][_0x562ed9(0x18c)](),_0x1cd12f=this[_0x562ed9(0x228)]['map'](_0x45b6fc=>new ot(_0x45b6fc,_0x10fa7b,_0x469b79,_0x56fac5));this[_0x562ed9(0x314)]=_0x1cd12f;}['_removeCollabCursors'](){const _0x163196=_0x2f1425;this[_0x163196(0x314)][_0x163196(0x28e)](_0xd85cb6=>_0xd85cb6['dispose']()),this[_0x163196(0x314)]=[];}['_initCommandExecutedListener'](){const _0x495668=_0x2f1425,_0x3c3d97=[w['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this['_commandService'][_0x495668(0x40b)](_0x2260b6=>{const _0x52fe34=_0x495668;_0x3c3d97[_0x52fe34(0x537)](_0x2260b6['id'])&&_0x2260b6[_0x52fe34(0x3d5)]['unitId']===this[_0x52fe34(0x226)]['unitId']&&this[_0x52fe34(0x1f9)]();}));}[_0x2f1425(0x2c6)](){const _0x2d88b4=_0x2f1425;this[_0x2d88b4(0x425)](a[_0x2d88b4(0x2e8)](this[_0x2d88b4(0x226)][_0x2d88b4(0x206)]['onTransformChange$'])['pipe'](E['filter'](_0x3130b3=>_0x3130b3[_0x2d88b4(0x3c5)]===R[_0x2d88b4(0x572)][_0x2d88b4(0x1bb)]),E['throttleTime'](0x10))[_0x2d88b4(0x3ca)](()=>{this['_refreshCollabCursors']();}));}};xe=ui([de(0x1,a[_0x2f1425(0x4d1)](V[_0x2f1425(0x552)])),de(0x2,a['Inject'](ie)),de(0x3,a[_0x2f1425(0x477)]),de(0x4,a[_0x2f1425(0x4d1)](a['ThemeService']))],xe);const di=0x1,Si=1.5;class Ot extends R[_0x2f1425(0x4c6)]{constructor(_0x5e8c2c,_0x3fa78d){const _0x2f9aa9=_0x2f1425;super(_0x5e8c2c,_0x3fa78d),d(this,_0x2f9aa9(0x545)),d(this,_0x2f9aa9(0x3a6),!0x1),d(this,_0x2f9aa9(0x33d)),d(this,'_name',''),d(this,_0x2f9aa9(0x1ae),_0x2f9aa9(0x170)),d(this,'_backgroundColor'),(_0x3fa78d&&this[_0x2f9aa9(0x2c2)](_0x3fa78d),this[_0x2f9aa9(0x379)][_0x2f9aa9(0x41d)](()=>this[_0x2f9aa9(0x2c2)]({'hovered':!0x0})),this[_0x2f9aa9(0x393)][_0x2f9aa9(0x41d)](()=>this[_0x2f9aa9(0x2c2)]({'hovered':!0x1})));}[_0x2f1425(0x2c2)](_0x1fe2a2){const _0x24bce9=_0x2f1425;var _0x1638aa,_0xd1afe4,_0x13ed40,_0xe2c571,_0x3285ae,_0x2408ef;this[_0x24bce9(0x545)]=(_0x1638aa=_0x1fe2a2[_0x24bce9(0x247)])!=null?_0x1638aa:this['_color'],this['_hovered']=(_0xd1afe4=_0x1fe2a2['hovered'])!=null?_0xd1afe4:this[_0x24bce9(0x3a6)],this['_range']=(_0x13ed40=_0x1fe2a2[_0x24bce9(0x4a6)])!=null?_0x13ed40:this['_range'],this[_0x24bce9(0x2f5)]=(_0xe2c571=_0x1fe2a2['name'])!=null?_0xe2c571:this[_0x24bce9(0x2f5)],this[_0x24bce9(0x1ae)]=(_0x3285ae=_0x1fe2a2[_0x24bce9(0x3a8)])!=null?_0x3285ae:this[_0x24bce9(0x1ae)],this[_0x24bce9(0x205)]=(_0x2408ef=_0x1fe2a2[_0x24bce9(0x1fc)])!=null?_0x2408ef:this[_0x24bce9(0x205)],this[_0x24bce9(0x432)]({'width':_0x1fe2a2[_0x24bce9(0x4f6)],'height':_0x1fe2a2['height']});}['onMouseMove'](_0x1e71d1){const _0x54e405=_0x2f1425,{row:_0x1419d5,column:_0x5979ec}=_0x1e71d1;if(_0x1419d5>=this['_range']['startRow']&&_0x1419d5<=this[_0x54e405(0x33d)][_0x54e405(0x24e)]&&_0x5979ec>=this[_0x54e405(0x33d)][_0x54e405(0x1db)]&&_0x5979ec<=this['_range'][_0x54e405(0x352)]){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x2f1425(0x21e)](_0x435ed8){return!0x1;}['_draw'](_0x2c2012){const _0x26a4b5=_0x2f1425;R[_0x26a4b5(0x294)][_0x26a4b5(0x335)](_0x2c2012,{'width':this[_0x26a4b5(0x4f6)],'height':this[_0x26a4b5(0x3b8)],'strokeWidth':Si,'stroke':this[_0x26a4b5(0x545)],'evented':!0x1,'fill':this[_0x26a4b5(0x205)]}),this[_0x26a4b5(0x3a6)]&&(_0x2c2012[_0x26a4b5(0x37d)](),_0x2c2012[_0x26a4b5(0x2e1)](0x1,0x0,0x0,0x1,this[_0x26a4b5(0x4f6)],this['_labelPosition']==='bottom'?0x0:-ue),Te[_0x26a4b5(0x335)](_0x2c2012,{'text':this['_name'],'color':this['_color']}),_0x2c2012[_0x26a4b5(0x26c)]());}}var vi=Object[_0x2f1425(0x1cf)],fi=Object['getOwnPropertyDescriptor'],gi=(_0xd348b3,_0x3cdd43,_0x3a184e,_0x3855d3)=>{const _0x31e85a=_0x2f1425;for(var _0x377b99=_0x3855d3>0x1?void 0x0:_0x3855d3?fi(_0x3cdd43,_0x3a184e):_0x3cdd43,_0x2108cd=_0xd348b3[_0x31e85a(0x38d)]-0x1,_0x30391c;_0x2108cd>=0x0;_0x2108cd--)(_0x30391c=_0xd348b3[_0x2108cd])&&(_0x377b99=(_0x3855d3?_0x30391c(_0x3cdd43,_0x3a184e,_0x377b99):_0x30391c(_0x377b99))||_0x377b99);return _0x3855d3&&_0x377b99&&vi(_0x3cdd43,_0x3a184e,_0x377b99),_0x377b99;},Ae=(_0x5a959b,_0x5b17ce)=>(_0x37b0b0,_0x541424)=>_0x5b17ce(_0x37b0b0,_0x541424,_0x5a959b);const mi=0x1389;let ke=class extends a[_0x2f1425(0x25b)]{constructor(_0x8950e8,_0x14d107,_0xc65966,_0x3a18c5){const _0x2e9af4=_0x2f1425;super(),d(this,'_cursors',new Set()),d(this,'_lastPointer',null),(this[_0x2e9af4(0x226)]=_0x8950e8,this[_0x2e9af4(0x2da)]=_0x14d107,this[_0x2e9af4(0x3da)]=_0xc65966,this[_0x2e9af4(0x1e9)]=_0x3a18c5,this[_0x2e9af4(0x34f)]());}['_init'](){const _0x322f65=_0x2f1425;this[_0x322f65(0x2da)][_0x322f65(0x21c)][_0x322f65(0x53d)](E[_0x322f65(0x275)](this['dispose$']),E[_0x322f65(0x3d7)](_0x5d0449=>{const _0x570d96=_0x322f65;if(_0x5d0449){const _0x193aa6=_0x5d0449[_0x570d96(0x4ce)];return v['combineLatest'](this[_0x570d96(0x3da)]['getCollabCursors$'](this[_0x570d96(0x226)][_0x570d96(0x406)]),this['_themeService'][_0x570d96(0x3b1)])[_0x570d96(0x53d)](E[_0x570d96(0x1c9)](([_0x4e315e,_0x2e39a4])=>{const _0x502736=_0x570d96,_0x1d8957=new Map();return _0x4e315e[_0x502736(0x28e)]((_0x5b8e8f,_0xcb9336)=>{const _0x488425=_0x502736;if(_0x5b8e8f[_0x488425(0x1e1)]===_0x193aa6){const _0x502cec={..._0x5b8e8f};_0x502cec['color']=_0x2e39a4[_0x5b8e8f[_0x488425(0x247)]],_0x1d8957[_0x488425(0x36e)](_0xcb9336,_0x502cec);}}),{'skeleton':_0x5d0449,'cursors':_0x1d8957};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x322f65(0x3ca)](({skeleton:_0x17ca46,cursors:_0x4ce490})=>{const _0x485624=_0x322f65;this['_removeCollabCursors'](),_0x17ca46&&this[_0x485624(0x357)](_0x17ca46,_0x4ce490);}),this[_0x322f65(0x2da)][_0x322f65(0x21c)][_0x322f65(0x3ca)](_0x11f09f=>{const _0x507b62=_0x322f65;if(_0x11f09f==null)return;const {skeleton:_0x47176d}=_0x11f09f,{scene:_0x178473}=this[_0x507b62(0x226)];_0x178473[_0x507b62(0x1a3)]['subscribeEvent'](a[_0x507b62(0x535)](_0x2dcd07=>{const _0x4ed79a=_0x507b62;var _0x4ff087,_0x5ce05c;const {offsetX:_0x2d42ac,offsetY:_0x2e3fe9}=_0x2dcd07,{x:_0x5a62fe,y:_0xe61711}=_0x178473[_0x4ed79a(0x3ef)](R[_0x4ed79a(0x50c)][_0x4ed79a(0x326)]([_0x2d42ac,_0x2e3fe9])),{scaleX:_0x3e2972,scaleY:_0xd707eb}=_0x178473[_0x4ed79a(0x578)](),_0x46e967=_0x178473[_0x4ed79a(0x53a)](te[_0x4ed79a(0x3dc)][_0x4ed79a(0x4d9)]),_0x42b174=_0x178473[_0x4ed79a(0x52c)](R[_0x4ed79a(0x50c)][_0x4ed79a(0x326)]([_0x5a62fe,_0xe61711]),_0x46e967),_0x318857=_0x47176d[_0x4ed79a(0x4f4)](_0x2d42ac,_0x2e3fe9,_0x3e2972,_0xd707eb,_0x42b174);((_0x4ff087=this[_0x4ed79a(0x30b)])==null?void 0x0:_0x4ff087[_0x4ed79a(0x241)])===_0x318857[_0x4ed79a(0x241)]&&((_0x5ce05c=this['_lastPointer'])==null?void 0x0:_0x5ce05c['row'])===_0x318857['row']||this[_0x4ed79a(0x228)]['forEach'](_0x3f8d64=>{const _0x57bd9d=_0x4ed79a;_0x3f8d64[_0x57bd9d(0x26d)](_0x318857);});},0x64));});}[_0x2f1425(0x357)](_0x8ef150,_0xabab35){const _0x3ecbb6=_0x2f1425;var _0x31f200;const _0x6a688b=(_0x31f200=this[_0x3ecbb6(0x2da)][_0x3ecbb6(0x1d3)]())==null?void 0x0:_0x31f200[_0x3ecbb6(0x45c)];if(!_0x6a688b)return;const _0x1af582=this['_getSheetObject']();if(!_0x1af582)return;this[_0x3ecbb6(0x228)]['forEach'](_0x516ce6=>{const _0x3cbf5f=_0x3ecbb6;_0x516ce6[_0x3cbf5f(0x459)]();});const {scene:_0x968e7d}=_0x1af582,_0x57b09b=Ii(Array[_0x3ecbb6(0x4eb)](_0xabab35[_0x3ecbb6(0x2e0)]()))[_0x3ecbb6(0x1c9)](_0x1e8a4c=>{const _0x54a3f2=_0x3ecbb6,{color:_0x2bc3ed,range:_0xa343f0,name:_0x10b687,selection:_0x14a1b1,sheetID:_0x597b5a}=_0x1e8a4c,{startColumn:_0x5c955c,startRow:_0x48e3d0,endColumn:_0x1e9c44,endRow:_0x41fe1d}=_0xa343f0,_0x2f97da=te[_0x54a3f2(0x453)](_0x48e3d0,_0x5c955c,_0x968e7d,_0x6a688b),_0xe41c02=te['getCoordByCell'](_0x41fe1d,_0x1e9c44,_0x968e7d,_0x6a688b),{columnHeaderHeightAndMarginTop:_0x3e501e}=_0x6a688b,{startX:_0x147cc3,startY:_0x4ebe6a}=_0x2f97da,{endX:_0x4bd7f2,endY:_0x45f3d2}=_0xe41c02,_0x63c7be=_0x4bd7f2-_0x147cc3,_0x57e961=_0x45f3d2-_0x4ebe6a,_0x5f2588={'labelPosition':_0x4ebe6a-_0x3e501e>=ue?'top':'bottom','sheetID':_0x597b5a,'range':_0xa343f0,'color':_0x2bc3ed,'name':_0x10b687,'selection':_0x14a1b1,'left':_0x147cc3,'top':_0x4ebe6a,'width':_0x63c7be,'height':_0x57e961,'evented':!0x1,'zIndex':mi};return new Ot(_0x10b687,_0x5f2588);});_0x968e7d['addObjects'](_0x57b09b,di),this['_cursors']=new Set(_0x57b09b);}[_0x2f1425(0x255)](){const _0x16500b=_0x2f1425;var _0x23136f;(_0x23136f=this[_0x16500b(0x228)])==null||_0x23136f[_0x16500b(0x28e)](_0x55e052=>_0x55e052[_0x16500b(0x235)]());}[_0x2f1425(0x1dd)](){const _0x3dffb4=_0x2f1425;return te[_0x3dffb4(0x4a5)](this['_context']['unit'],this[_0x3dffb4(0x226)]);}};ke=gi([Ae(0x1,a['Inject'](te[_0x2f1425(0x554)])),Ae(0x2,a[_0x2f1425(0x4d1)](ie)),Ae(0x3,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x52f)]))],ke);function Ii(_0x28883e){const _0x53ccfd=_0x2f1425,_0x43c3a9=new Map();return _0x28883e[_0x53ccfd(0x28e)](_0x8dc8a9=>{const _0x159402=_0x53ccfd;if(_0x43c3a9[_0x159402(0x555)](_0x8dc8a9['selection'])){const _0x59b97f=_0x43c3a9[_0x159402(0x41b)](_0x8dc8a9['selection']);_0x59b97f[_0x159402(0x46a)]+=',\x20'+_0x8dc8a9[_0x159402(0x46a)];}else _0x43c3a9[_0x159402(0x36e)](_0x8dc8a9[_0x159402(0x37e)],_0x8dc8a9);}),Array[_0x53ccfd(0x4eb)](_0x43c3a9[_0x53ccfd(0x2e0)]());}var M=function(){const _0x4c7e68=_0x2f1425;return M=Object[_0x4c7e68(0x2ce)]||function(_0x5f2d58){const _0x4ce086=_0x4c7e68;for(var _0xd36a82,_0x41b15d=0x1,_0x3eb0bd=arguments['length'];_0x41b15d<_0x3eb0bd;_0x41b15d++){_0xd36a82=arguments[_0x41b15d];for(var _0x145812 in _0xd36a82)Object[_0x4ce086(0x429)]['hasOwnProperty'][_0x4ce086(0x55f)](_0xd36a82,_0x145812)&&(_0x5f2d58[_0x145812]=_0xd36a82[_0x145812]);}return _0x5f2d58;},M['apply'](this,arguments);},pi=function(_0x4d5393,_0x202fa2){const _0x5e8546=_0x2f1425;var _0x292d22={};for(var _0x3680c1 in _0x4d5393)Object[_0x5e8546(0x429)][_0x5e8546(0x4ed)][_0x5e8546(0x55f)](_0x4d5393,_0x3680c1)&&_0x202fa2[_0x5e8546(0x53e)](_0x3680c1)<0x0&&(_0x292d22[_0x3680c1]=_0x4d5393[_0x3680c1]);if(_0x4d5393!=null&&typeof Object[_0x5e8546(0x27a)]==_0x5e8546(0x44f)){for(var _0x1c6b36=0x0,_0x3680c1=Object['getOwnPropertySymbols'](_0x4d5393);_0x1c6b36<_0x3680c1[_0x5e8546(0x38d)];_0x1c6b36++)_0x202fa2[_0x5e8546(0x53e)](_0x3680c1[_0x1c6b36])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x4d5393,_0x3680c1[_0x1c6b36])&&(_0x292d22[_0x3680c1[_0x1c6b36]]=_0x4d5393[_0x3680c1[_0x1c6b36]]);}return _0x292d22;},qe=U['forwardRef'](function(_0x586adb,_0x59ca65){const _0xa94ae5=_0x2f1425;var _0x545b96=_0x586adb[_0xa94ae5(0x529)],_0x41acad=_0x586adb['id'],_0x48d322=_0x586adb[_0xa94ae5(0x2cf)],_0x4f9520=_0x586adb[_0xa94ae5(0x414)],_0xde3a2e=pi(_0x586adb,[_0xa94ae5(0x529),'id',_0xa94ae5(0x2cf),_0xa94ae5(0x414)]),_0x75e6d9=_0xa94ae5(0x4ee)[_0xa94ae5(0x240)](_0x41acad,'\x20')[_0xa94ae5(0x240)](_0x48d322||'')[_0xa94ae5(0x3c8)](),_0x346455=U[_0xa94ae5(0x561)]('_'[_0xa94ae5(0x240)](bi()));return Dt(_0x545b96,''[_0xa94ae5(0x240)](_0x41acad),{'defIds':_0x545b96[_0xa94ae5(0x171)],'idSuffix':_0x346455['current']},M({'ref':_0x59ca65,'className':_0x75e6d9},_0xde3a2e),_0x4f9520);});function Dt(_0x5c2691,_0x4ef224,_0x41b329,_0x5bf43d,_0x56e57c){const _0x585159=_0x2f1425;return U[_0x585159(0x22f)](_0x5c2691[_0x585159(0x239)],M(M({'key':_0x4ef224},Ci(_0x5c2691,_0x41b329,_0x56e57c)),_0x5bf43d),(Ei(_0x5c2691,_0x41b329)[_0x585159(0x195)]||[])['map'](function(_0x43db84,_0x2f4ba7){const _0x2c9b9a=_0x585159;return Dt(_0x43db84,''[_0x2c9b9a(0x240)](_0x4ef224,'-')[_0x2c9b9a(0x240)](_0x5c2691['tag'],'-')[_0x2c9b9a(0x240)](_0x2f4ba7),_0x41b329,void 0x0,_0x56e57c);}));}function Ci(_0x58c58a,_0xc09bcd,_0x494125){const _0x2ebdcc=_0x2f1425;var _0x2ad729=M({},_0x58c58a[_0x2ebdcc(0x3fa)]);_0x494125!=null&&_0x494125['colorChannel1']&&_0x2ad729[_0x2ebdcc(0x203)]===_0x2ebdcc(0x24b)&&(_0x2ad729[_0x2ebdcc(0x203)]=_0x494125[_0x2ebdcc(0x24b)]);var _0x9224ae=_0xc09bcd['defIds'];return!_0x9224ae||_0x9224ae[_0x2ebdcc(0x38d)]===0x0||(_0x58c58a[_0x2ebdcc(0x239)]==='use'&&_0x2ad729[_0x2ebdcc(0x2ea)]&&(_0x2ad729[_0x2ebdcc(0x2ea)]=_0x2ad729['xlink:href']+_0xc09bcd[_0x2ebdcc(0x24d)]),Object[_0x2ebdcc(0x523)](_0x2ad729)[_0x2ebdcc(0x28e)](function(_0x3421f9){const _0x396d6f=_0x2ebdcc;var _0x5dccc4=_0x3421f9[0x0],_0x454cdc=_0x3421f9[0x1];typeof _0x454cdc==_0x396d6f(0x3f2)&&(_0x2ad729[_0x5dccc4]=_0x454cdc[_0x396d6f(0x557)](/url\(#(.*)\)/,_0x396d6f(0x193)[_0x396d6f(0x240)](_0xc09bcd['idSuffix'],')')));})),_0x2ad729;}function Ei(_0x58b67b,_0x5d1191){const _0x5ddfec=_0x2f1425;var _0x544935,_0x11d18e=_0x5d1191[_0x5ddfec(0x171)];return!_0x11d18e||_0x11d18e[_0x5ddfec(0x38d)]===0x0?_0x58b67b:_0x58b67b['tag']==='defs'&&(!((_0x544935=_0x58b67b[_0x5ddfec(0x195)])===null||_0x544935===void 0x0)&&_0x544935['length'])?M(M({},_0x58b67b),{'children':_0x58b67b[_0x5ddfec(0x195)][_0x5ddfec(0x1c9)](function(_0x4166db){const _0x6c6eaa=_0x5ddfec;return typeof _0x4166db[_0x6c6eaa(0x3fa)]['id']==_0x6c6eaa(0x3f2)&&_0x11d18e&&_0x11d18e[_0x6c6eaa(0x53e)](_0x4166db[_0x6c6eaa(0x3fa)]['id'])>-0x1?M(M({},_0x4166db),{'attrs':M(M({},_0x4166db[_0x6c6eaa(0x3fa)]),{'id':_0x4166db['attrs']['id']+_0x5d1191[_0x6c6eaa(0x24d)]})}):_0x4166db;})}):_0x58b67b;}function bi(){const _0x2c4937=_0x2f1425;return Math[_0x2c4937(0x237)]()[_0x2c4937(0x51c)](0x24)[_0x2c4937(0x4e3)](0x2,0x8);}qe[_0x2f1425(0x2f8)]='UniverIcon';var Ti={'tag':'svg','attrs':{'fill':_0x2f1425(0x2d5),'viewBox':_0x2f1425(0x3cd),'width':_0x2f1425(0x530),'height':_0x2f1425(0x530)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x2f1425(0x322),'attrs':{'stroke':_0x2f1425(0x568),'d':_0x2f1425(0x4d2),'strokeLinecap':'round','strokeLinejoin':_0x2f1425(0x336),'strokeWidth':1.2}}]},{'tag':_0x2f1425(0x2ef),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2f1425(0x571)},'children':[{'tag':'path','attrs':{'fill':_0x2f1425(0x2c7),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},yt=U[_0x2f1425(0x17f)](function(_0x5b9e45,_0x4bf472){const _0x18139c=_0x2f1425;return U['createElement'](qe,Object[_0x18139c(0x2ce)]({},_0x5b9e45,{'id':_0x18139c(0x198),'ref':_0x4bf472,'icon':Ti}));});yt['displayName']='OffLineSingle';var Ri={'tag':_0x2f1425(0x22a),'attrs':{'fill':_0x2f1425(0x2d5),'viewBox':_0x2f1425(0x49a),'width':_0x2f1425(0x530),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2f1425(0x18b)},'children':[{'tag':_0x2f1425(0x322),'attrs':{'stroke':_0x2f1425(0x568),'d':_0x2f1425(0x3f6),'strokeLinecap':_0x2f1425(0x336),'strokeLinejoin':_0x2f1425(0x336),'strokeWidth':1.2}}]},{'tag':_0x2f1425(0x2ef),'attrs':{},'children':[{'tag':_0x2f1425(0x268),'attrs':{'id':_0x2f1425(0x407)},'children':[{'tag':'path','attrs':{'fill':_0x2f1425(0x2c7),'d':_0x2f1425(0x4b8),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2f1425(0x407)]},Ut=U[_0x2f1425(0x17f)](function(_0x393629,_0xd4e095){const _0x591d56=_0x2f1425;return U['createElement'](qe,Object[_0x591d56(0x2ce)]({},_0x393629,{'id':_0x591d56(0x4e7),'ref':_0xd4e095,'icon':Ri}));});Ut[_0x2f1425(0x2f8)]=_0x2f1425(0x347);function Pt(_0xeabbe7){const _0x4e1c1d=_0x2f1425;var _0x1af100,_0x2a4f77,_0x1b27ca='';if(typeof _0xeabbe7=='string'||typeof _0xeabbe7==_0x4e1c1d(0x57d))_0x1b27ca+=_0xeabbe7;else{if(typeof _0xeabbe7==_0x4e1c1d(0x4b4)){if(Array[_0x4e1c1d(0x476)](_0xeabbe7)){var _0x542af4=_0xeabbe7[_0x4e1c1d(0x38d)];for(_0x1af100=0x0;_0x1af100<_0x542af4;_0x1af100++)_0xeabbe7[_0x1af100]&&(_0x2a4f77=Pt(_0xeabbe7[_0x1af100]))&&(_0x1b27ca&&(_0x1b27ca+='\x20'),_0x1b27ca+=_0x2a4f77);}else{for(_0x2a4f77 in _0xeabbe7)_0xeabbe7[_0x2a4f77]&&(_0x1b27ca&&(_0x1b27ca+='\x20'),_0x1b27ca+=_0x2a4f77);}}}return _0x1b27ca;}function Oi(){const _0x97a56a=_0x2f1425;for(var _0x5c56ae,_0xc484db,_0x2e7ef8=0x0,_0x3a4595='',_0x1689fb=arguments[_0x97a56a(0x38d)];_0x2e7ef8<_0x1689fb;_0x2e7ef8++)(_0x5c56ae=arguments[_0x2e7ef8])&&(_0xc484db=Pt(_0x5c56ae))&&(_0x3a4595&&(_0x3a4595+='\x20'),_0x3a4595+=_0xc484db);return _0x3a4595;}const Di=_0x2f1425(0x243),yi=_0x2f1425(0x4c7),Ui=_0x2f1425(0x504),Pi=_0x2f1425(0x175),wi=_0x2f1425(0x455),le={'onlineStatusIcon':Di,'onlineStatusTitle':yi,'onlineStatus':Ui,'online':Pi,'offline':wi};function Mi(_0x445bfe){const _0x1420de=_0x2f1425;switch(_0x445bfe){case y[_0x1420de(0x3a1)]:return _0x1420de(0x2cb);case y[_0x1420de(0x3ed)]:return _0x1420de(0x3b7);case y[_0x1420de(0x4bf)]:return _0x1420de(0x41a);case y[_0x1420de(0x35a)]:return _0x1420de(0x367);case y[_0x1420de(0x400)]:case y[_0x1420de(0x55a)]:case y['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case y['SYNCED']:return'collabStatus.synced';}}function wt(_0x578c7c){const _0x25e8e1=_0x2f1425,{status$:_0x939e5e}=_0x578c7c,_0x8f4044=N[_0x25e8e1(0x53c)](_0x939e5e,y[_0x25e8e1(0x35a)]),_0x598d23=a[_0x25e8e1(0x2a8)](a[_0x25e8e1(0x2d7)]),_0x5490b7=a[_0x25e8e1(0x2a8)](exports[_0x25e8e1(0x1d4)]),_0x188a1f=_0x8f4044!==y[_0x25e8e1(0x3a1)],_0x183ec4=_0x598d23['t'](Mi(_0x8f4044)),_0x50972e=Oi(le['onlineStatus'],{[le['online']]:_0x188a1f,[le['offline']]:!_0x188a1f}),_0x52b2a9=_0x188a1f?U[_0x25e8e1(0x22f)](Ut,null):U['createElement'](yt,null),_0x3f9077=U[_0x25e8e1(0x2d6)](()=>{const _0x5b7692=_0x25e8e1;_0x188a1f||_0x5490b7[_0x5b7692(0x32e)]();},[_0x188a1f,_0x5490b7]);function _0x4b3b58(){const _0x53ae88=_0x25e8e1;return U['createElement'](_0x53ae88(0x4b7),{'className':_0x50972e,'onClick':_0x3f9077},U[_0x53ae88(0x22f)]('div',{'className':le[_0x53ae88(0x259)]},_0x52b2a9),U[_0x53ae88(0x22f)](_0x53ae88(0x4b7),{'className':le[_0x53ae88(0x1ca)]},_0x183ec4));}return _0x188a1f?_0x4b3b58():U[_0x25e8e1(0x22f)](X['Tooltip'],{'title':_0x598d23['t'](_0x25e8e1(0x3c4))},_0x4b3b58());}var Ni=Object[_0x2f1425(0x1cf)],Ai=Object[_0x2f1425(0x2ab)],Li=(_0x42e66a,_0xb2db3e,_0x537a26,_0x209a43)=>{const _0xc5625d=_0x2f1425;for(var _0x280a30=_0x209a43>0x1?void 0x0:_0x209a43?Ai(_0xb2db3e,_0x537a26):_0xb2db3e,_0x567a14=_0x42e66a[_0xc5625d(0x38d)]-0x1,_0x37ee3e;_0x567a14>=0x0;_0x567a14--)(_0x37ee3e=_0x42e66a[_0x567a14])&&(_0x280a30=(_0x209a43?_0x37ee3e(_0xb2db3e,_0x537a26,_0x280a30):_0x37ee3e(_0x280a30))||_0x280a30);return _0x209a43&&_0x280a30&&Ni(_0xb2db3e,_0x537a26,_0x280a30),_0x280a30;},Se=(_0x48f5bd,_0x16ce1f)=>(_0x370b75,_0x5aed51)=>_0x16ce1f(_0x370b75,_0x5aed51,_0x48f5bd);exports[_0x2f1425(0x55b)]=class extends a[_0x2f1425(0x387)]{constructor(_0x202e03,_0x1cea02,_0x2dfecb,_0x593e2e){const _0x2459f0=_0x2f1425;super(),d(this,_0x2459f0(0x32c),new v[(_0x2459f0(0x21d))](y[_0x2459f0(0x35a)])),(this[_0x2459f0(0x458)]=_0x202e03,this[_0x2459f0(0x51d)]=_0x1cea02,this[_0x2459f0(0x4fa)]=_0x2dfecb,this['_collaborationController']=_0x593e2e,this[_0x2459f0(0x56b)](),this['_initStatusListener']());}[_0x2f1425(0x303)](){const _0x44d946=_0x2f1425;this[_0x44d946(0x425)](this[_0x44d946(0x458)][_0x44d946(0x4d4)][_0x44d946(0x53d)](v[_0x44d946(0x3d7)](()=>{const _0x3774fe=_0x44d946,_0x5c3ded=this[_0x3774fe(0x458)]['getFocusedUnit']();return _0x5c3ded?this[_0x3774fe(0x536)][_0x3774fe(0x384)](_0x5c3ded[_0x3774fe(0x1fa)]()):v['of'](null);}),v[_0x44d946(0x3d7)](_0x2cc406=>_0x2cc406?_0x2cc406[_0x44d946(0x56d)]:v['of'](y['NOT_COLLAB'])))['subscribe'](_0x2867b2=>{const _0x32c2d1=_0x44d946;this[_0x32c2d1(0x32c)][_0x32c2d1(0x500)](_0x2867b2);}));}[_0x2f1425(0x56b)](){const _0x30283d=_0x2f1425;this[_0x30283d(0x425)](this['_uiPartsService']['registerComponent'](N[_0x30283d(0x1ce)]['HEADER_MENU'],()=>a[_0x30283d(0x1eb)](ji({'status$':this[_0x30283d(0x32c)]['asObservable']()}),this['_injector'])));}},exports[_0x2f1425(0x55b)]=Li([Se(0x0,a['IUniverInstanceService']),Se(0x1,N[_0x2f1425(0x2cd)]),Se(0x2,a['Inject'](a[_0x2f1425(0x450)])),Se(0x3,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x4f1)]))],exports[_0x2f1425(0x55b)]);function ji(_0x2ec872){const {status$:_0x180edd}=_0x2ec872;return function(){const _0x201777=_0x4554;return U[_0x201777(0x22f)](wt,{'status$':_0x180edd});};}const ze=a[_0x2f1425(0x232)]('uni.network.url-service');var $i=Object['defineProperty'],Hi=Object[_0x2f1425(0x2ab)],xi=(_0x12dbf8,_0x14fadb,_0x4559d7,_0x29761d)=>{const _0x4446e1=_0x2f1425;for(var _0x1d7d9e=_0x29761d>0x1?void 0x0:_0x29761d?Hi(_0x14fadb,_0x4559d7):_0x14fadb,_0x59802f=_0x12dbf8[_0x4446e1(0x38d)]-0x1,_0x75c960;_0x59802f>=0x0;_0x59802f--)(_0x75c960=_0x12dbf8[_0x59802f])&&(_0x1d7d9e=(_0x29761d?_0x75c960(_0x14fadb,_0x4559d7,_0x1d7d9e):_0x75c960(_0x1d7d9e))||_0x1d7d9e);return _0x29761d&&_0x1d7d9e&&$i(_0x14fadb,_0x4559d7,_0x1d7d9e),_0x1d7d9e;},ee=(_0x246902,_0x461c96)=>(_0x581448,_0x5a467a)=>_0x461c96(_0x581448,_0x5a467a,_0x246902);exports[_0x2f1425(0x2d8)]=class extends a[_0x2f1425(0x25b)]{constructor(_0xc4b5fc,_0x2cba14,_0x2288ba,_0x53abe2,_0x39ef04,_0x12686f){const _0xf465f9=_0x2f1425;super(),this[_0xf465f9(0x48e)]=_0xc4b5fc,this[_0xf465f9(0x562)]=_0x2cba14,this['_commandService']=_0x2288ba,this[_0xf465f9(0x28a)]=_0x53abe2,this[_0xf465f9(0x4f0)]=_0x39ef04,_0x12686f?_0x12686f==null||_0x12686f[_0xf465f9(0x1c2)]()[_0xf465f9(0x313)](()=>this[_0xf465f9(0x34f)]()):(this[_0xf465f9(0x562)][_0xf465f9(0x27e)]('[DataLoaderController]',_0xf465f9(0x207)),this['_init']());}async[_0x2f1425(0x34f)](){const _0x5324d7=_0x2f1425,_0x477f43=this[_0x5324d7(0x48e)]['getParam'](_0x5324d7(0x4b3)),_0x82d31d=this[_0x5324d7(0x48e)]['getParam'](_0x5324d7(0x3c5));if(!_0x477f43||!_0x82d31d){this[_0x5324d7(0x562)][_0x5324d7(0x27e)](_0x5324d7(0x20f),_0x5324d7(0x325));return;}switch(Number(_0x82d31d)){case j[_0x5324d7(0x1bf)]:{const _0x23188b=await this[_0x5324d7(0x4c2)](_0x477f43);this[_0x5324d7(0x522)](_0x23188b);break;}case j['UNIVER_DOC']:{await this['_loadDoc'](_0x477f43);break;}default:{this[_0x5324d7(0x562)][_0x5324d7(0x348)](_0x5324d7(0x20f),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x2f1425(0x522)](_0x2346f3){const _0x3235a8=_0x2f1425;await this[_0x3235a8(0x17c)](_0x2346f3),_0x2346f3[_0x3235a8(0x4cf)][_0x3235a8(0x53d)](v[_0x3235a8(0x275)](this[_0x3235a8(0x2b4)]))[_0x3235a8(0x3ca)](_0x489741=>{const _0x51faa8=_0x3235a8;_0x489741&&this[_0x51faa8(0x337)](_0x489741);}),this[_0x3235a8(0x48e)][_0x3235a8(0x2b8)][_0x3235a8(0x53d)](v[_0x3235a8(0x275)](this[_0x3235a8(0x2b4)]))[_0x3235a8(0x3ca)](()=>this[_0x3235a8(0x17c)](_0x2346f3));}[_0x2f1425(0x337)](_0x560b09,_0x6472dd=!0x1){const _0x591c5f=_0x2f1425,_0x190ca3=this[_0x591c5f(0x48e)][_0x591c5f(0x214)](_0x591c5f(0x30d));_0x560b09[_0x591c5f(0x1be)]()!==_0x190ca3&&this[_0x591c5f(0x48e)][_0x591c5f(0x29e)](_0x591c5f(0x30d),_0x560b09[_0x591c5f(0x1be)](),_0x6472dd);}async[_0x2f1425(0x17c)](_0x1abc64){const _0x20f7ce=_0x2f1425;var _0x12b1c0;const _0x399c44=this['_urlService'][_0x20f7ce(0x214)](_0x20f7ce(0x30d));if(!_0x399c44||!_0x1abc64[_0x20f7ce(0x2af)](_0x399c44)){const _0x239fd8=_0x1abc64[_0x20f7ce(0x172)]()[0x0],_0x9f11b4=_0x1abc64['getSheetBySheetId'](_0x239fd8);if(!_0x9f11b4)return;this[_0x20f7ce(0x337)](_0x9f11b4,!0x0),await this[_0x20f7ce(0x4b2)][_0x20f7ce(0x373)](C[_0x20f7ce(0x272)]['id'],{'unitId':_0x1abc64[_0x20f7ce(0x1fa)](),'subUnitId':_0x239fd8});return;}((_0x12b1c0=_0x1abc64['getActiveSheet']())==null?void 0x0:_0x12b1c0[_0x20f7ce(0x1be)]())!==_0x399c44&&await this[_0x20f7ce(0x4b2)][_0x20f7ce(0x373)](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x1abc64[_0x20f7ce(0x1fa)](),'subUnitId':_0x399c44});}async[_0x2f1425(0x4c2)](_0x34e59c){const _0x3e76c7=_0x2f1425;let _0x16a8b8=0x0;const _0x5efdde=await this['_localCacheService'][_0x3e76c7(0x4b5)](_0x34e59c);return _0x5efdde&&(_0x5efdde[_0x3e76c7(0x30c)]||_0x5efdde[_0x3e76c7(0x569)]['length']!==0x0)&&(_0x16a8b8=_0x5efdde[_0x3e76c7(0x4fe)]),_0x16a8b8===0x0&&this['_logService']['debug'](_0x3e76c7(0x20f),_0x3e76c7(0x514)),this[_0x3e76c7(0x4f0)][_0x3e76c7(0x38c)](_0x34e59c,_0x16a8b8);}async[_0x2f1425(0x3f4)](_0xb616c1){const _0xb90b98=_0x2f1425;let _0x3633f5=0x0;const _0x1b681d=await this[_0xb90b98(0x28a)][_0xb90b98(0x4b5)](_0xb616c1);return _0x1b681d&&(_0x1b681d[_0xb90b98(0x30c)]||_0x1b681d[_0xb90b98(0x569)]['length']!==0x0)&&(_0x3633f5=_0x1b681d['rev']),_0x3633f5===0x0&&this[_0xb90b98(0x562)]['debug']('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0xb90b98(0x4f0)][_0xb90b98(0x534)](_0xb616c1,_0x3633f5);}},exports[_0x2f1425(0x2d8)]=xi([ee(0x0,ze),ee(0x1,a[_0x2f1425(0x2e3)]),ee(0x2,a[_0x2f1425(0x477)]),ee(0x3,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),ee(0x4,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x4db)])),ee(0x5,a[_0x2f1425(0x42b)](Wt[_0x2f1425(0x1e8)]))],exports['DataLoaderController']);var ki=Object[_0x2f1425(0x1cf)],Bi=Object[_0x2f1425(0x2ab)],Vi=(_0x4f9539,_0xe135f8,_0x2f9f09,_0x21f987)=>{const _0x2f955d=_0x2f1425;for(var _0x370040=_0x21f987>0x1?void 0x0:_0x21f987?Bi(_0xe135f8,_0x2f9f09):_0xe135f8,_0x5a37e1=_0x4f9539[_0x2f955d(0x38d)]-0x1,_0x6e4ab5;_0x5a37e1>=0x0;_0x5a37e1--)(_0x6e4ab5=_0x4f9539[_0x5a37e1])&&(_0x370040=(_0x21f987?_0x6e4ab5(_0xe135f8,_0x2f9f09,_0x370040):_0x6e4ab5(_0x370040))||_0x370040);return _0x21f987&&_0x370040&&ki(_0xe135f8,_0x2f9f09,_0x370040),_0x370040;},at=(_0x5c9d1a,_0x47c9fa)=>(_0x3b5990,_0x3d4ee9)=>_0x47c9fa(_0x3b5990,_0x3d4ee9,_0x5c9d1a);const Wi=_0x2f1425(0x1d0),Fi=_0x2f1425(0x231);let Ie=class extends a[_0x2f1425(0x387)]{constructor(_0x4b82a0,_0xaf6d77){const _0xc589f0=_0x2f1425;super(),this[_0xc589f0(0x458)]=_0x4b82a0,this[_0xc589f0(0x1c3)]=_0xaf6d77,this[_0xc589f0(0x34f)]();}['_init'](){const _0x2a3862=_0x2f1425;this[_0x2a3862(0x425)](this[_0x2a3862(0x458)]['focused$']['subscribe'](()=>{const _0x5b5500=_0x2a3862;var _0x539526;const _0x414972=this[_0x5b5500(0x458)][_0x5b5500(0x199)]();let _0x3084c4=(_0x539526=this[_0x5b5500(0x1c3)]['getConfig'](Wi))!=null?_0x539526:Fi;_0x414972 instanceof a[_0x5b5500(0x50e)]&&(_0x3084c4=_0x414972['name']),document[_0x5b5500(0x22e)]=_0x3084c4;}));}};Ie=Vi([at(0x0,a[_0x2f1425(0x468)]),at(0x1,a['IConfigService'])],Ie);var Gi=Object[_0x2f1425(0x1cf)],Yi=Object[_0x2f1425(0x2ab)],Ki=(_0x594428,_0x4e69f5,_0x5abf47,_0x249fab)=>{const _0x53d69f=_0x2f1425;for(var _0x29b783=_0x249fab>0x1?void 0x0:_0x249fab?Yi(_0x4e69f5,_0x5abf47):_0x4e69f5,_0x5bb6af=_0x594428[_0x53d69f(0x38d)]-0x1,_0x31f7f9;_0x5bb6af>=0x0;_0x5bb6af--)(_0x31f7f9=_0x594428[_0x5bb6af])&&(_0x29b783=(_0x249fab?_0x31f7f9(_0x4e69f5,_0x5abf47,_0x29b783):_0x31f7f9(_0x29b783))||_0x29b783);return _0x249fab&&_0x29b783&&Gi(_0x4e69f5,_0x5abf47,_0x29b783),_0x29b783;},Le=(_0x2814bc,_0x34721a)=>(_0x352b36,_0x36f1dd)=>_0x34721a(_0x352b36,_0x36f1dd,_0x2814bc);let pe=class{constructor(_0x239ac9,_0x122910,_0x29a29e){const _0x56256d=_0x2f1425;this[_0x56256d(0x1c3)]=_0x239ac9,this[_0x56256d(0x2dd)]=_0x122910,this[_0x56256d(0x56c)]=_0x29a29e,this['init']();}[_0x2f1425(0x2fc)](){const _0x39b26b=_0x2f1425;this[_0x39b26b(0x2dd)][_0x39b26b(0x493)]({'priority':0x1,'interceptor':(_0xaaa9f6,_0x206142)=>_0x206142(_0xaaa9f6)[_0x39b26b(0x53d)](v[_0x39b26b(0x293)](async _0x192b59=>{const _0x120f51=_0x39b26b,_0x3beb6b=_0x192b59;if(_0x3beb6b['status']===0x191&&window[_0x120f51(0x204)](this['localeService']['t']('auth.needGotoLoginAlert'))){const _0x158619=window['encodeURIComponent'](window[_0x120f51(0x2d9)][_0x120f51(0x236)]);window[_0x120f51(0x2d9)][_0x120f51(0x236)]=this[_0x120f51(0x4bb)]()+_0x120f51(0x308)+_0x158619;}return _0x3beb6b;}))});}[_0x2f1425(0x4bb)](){const _0x39d09e=_0x2f1425;var _0x27de68,_0x276a6c;const _0x159193=this[_0x39d09e(0x1c3)]['getConfig'](mt),_0x539475=this[_0x39d09e(0x1c3)][_0x39d09e(0x480)](A);return(_0x276a6c=(_0x27de68=_0x539475==null?void 0x0:_0x539475['loginUrlKey'])!=null?_0x27de68:_0x159193)!=null?_0x276a6c:es;}};pe=Ki([Le(0x0,a[_0x2f1425(0x47d)]),Le(0x1,a[_0x2f1425(0x4d1)](P['HTTPService'])),Le(0x2,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x2d7)]))],pe);var Xi=Object['defineProperty'],qi=Object[_0x2f1425(0x2ab)],zi=(_0x442041,_0x5a60a5,_0x4c2fd7,_0x48e010)=>{const _0x577d32=_0x2f1425;for(var _0x1478c8=_0x48e010>0x1?void 0x0:_0x48e010?qi(_0x5a60a5,_0x4c2fd7):_0x5a60a5,_0x2ab06a=_0x442041[_0x577d32(0x38d)]-0x1,_0x232742;_0x2ab06a>=0x0;_0x2ab06a--)(_0x232742=_0x442041[_0x2ab06a])&&(_0x1478c8=(_0x48e010?_0x232742(_0x5a60a5,_0x4c2fd7,_0x1478c8):_0x232742(_0x1478c8))||_0x1478c8);return _0x48e010&&_0x1478c8&&Xi(_0x5a60a5,_0x4c2fd7,_0x1478c8),_0x1478c8;},ct=(_0x17fe44,_0x589803)=>(_0x44e962,_0x3047fc)=>_0x589803(_0x44e962,_0x3047fc,_0x17fe44);const Mt=_0x2f1425(0x208),Ji=_0x2f1425(0x3d3);exports[_0x2f1425(0x321)]=class extends a[_0x2f1425(0x387)]{constructor(_0x7b334b,_0x1500a9){const _0x3e4e85=_0x2f1425;super(),this[_0x3e4e85(0x359)]=_0x7b334b,this[_0x3e4e85(0x1c3)]=_0x1500a9,this['_initMergeInterceptor']();}['_initMergeInterceptor'](){const _0x46d8ba=_0x2f1425,_0x446ff4=this;this[_0x46d8ba(0x425)](this[_0x46d8ba(0x359)][_0x46d8ba(0x493)]({'priority':0x3e7,'interceptor':P[_0x46d8ba(0x286)]({'isMatch'(_0x38ff3f){const _0x179b76=_0x46d8ba;var _0x1d54b4;if(_0x38ff3f[_0x179b76(0x574)]===_0x179b76(0x360)&&((_0x1d54b4=_0x38ff3f['requestParams'])!=null&&_0x1d54b4[_0x179b76(0x2d2)])){const {objectID:_0x35a535,objectType:_0x45c5dc}=_0x38ff3f[_0x179b76(0x564)][_0x179b76(0x2d2)]||{};if(!_0x35a535||_0x45c5dc===void 0x0)return!0x1;const _0x4e618c=_0x446ff4[_0x179b76(0x1e6)]()+'/'+_0x45c5dc+'/object/'+_0x35a535+_0x179b76(0x4f7);if(_0x38ff3f[_0x179b76(0x1f1)]===_0x4e618c)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x15288e){const _0x445a23=_0x46d8ba;var _0x10569c;return(_0x10569c=_0x15288e[_0x445a23(0x564)])==null?void 0x0:_0x10569c[_0x445a23(0x2d2)];},'mergeParamsToRequest'(_0x180c49,_0x30a345){const _0x2c5edf=_0x46d8ba,_0x14a27a=_0x446ff4[_0x2c5edf(0x1e6)]()+_0x2c5edf(0x2ec),_0x2fd5d7=_0x180c49[_0x2c5edf(0x375)]((_0x129e75,_0x426d0d)=>{const _0x12fe27=_0x2c5edf,{unitID:_0x18bdf1,objectID:_0x7a154e,objectType:_0x303458,actions:_0x333472}=_0x426d0d;return _0x129e75[_0x18bdf1]||(_0x129e75[_0x18bdf1]={}),_0x129e75[_0x18bdf1][_0x7a154e]||(_0x129e75[_0x18bdf1][_0x7a154e]={'objectID':_0x7a154e,'objectType':_0x303458,'actions':[]}),_0x129e75[_0x18bdf1][_0x7a154e]['actions'][_0x12fe27(0x52d)](..._0x333472),_0x129e75;},{}),_0xf27427=[];for(const _0x518ab5 in _0x2fd5d7)for(const _0x51d593 in _0x2fd5d7[_0x518ab5]){const {actions:_0x2e8a3a,objectType:_0xc0f17f}=_0x2fd5d7[_0x518ab5][_0x51d593],_0x43c85f=[...new Set(_0x2e8a3a)];_0xf27427[_0x2c5edf(0x52d)]({'unitID':_0x518ab5,'objectID':_0x51d593,'objectType':_0xc0f17f,'actions':_0x43c85f});}return new P[(_0x2c5edf(0x2d0))](_0x2c5edf(0x360),_0x14a27a,{'headers':_0x30a345['headers'],'withCredentials':_0x30a345[_0x2c5edf(0x23c)],'responseType':_0x30a345[_0x2c5edf(0x28c)],'body':{'requests':_0xf27427}});}},{'distributeResult'(_0x573540,_0x39a20f){const _0x9f5f4b=_0x46d8ba,{objectActions:_0x24cb30}=_0x573540;return _0x39a20f[_0x9f5f4b(0x1c9)](_0x59f6fa=>{const _0x1cf7fd=_0x9f5f4b,{unitID:_0x38df3d,objectID:_0x444fb3,actions:_0x1081eb}=_0x59f6fa,_0x5c8b29=_0x24cb30[_0x1cf7fd(0x45e)](_0x3a9e82=>_0x3a9e82[_0x1cf7fd(0x437)]===_0x38df3d&&_0x3a9e82[_0x1cf7fd(0x56a)]===_0x444fb3),_0x36dfbf=_0x1081eb[_0x1cf7fd(0x1c9)](_0x3d4ed1=>_0x5c8b29==null?void 0x0:_0x5c8b29[_0x1cf7fd(0x2dc)][_0x1cf7fd(0x45e)](_0x4d2872=>_0x4d2872[_0x1cf7fd(0x44a)]===_0x3d4ed1))[_0x1cf7fd(0x2b7)](_0x5e6279=>!!_0x5e6279);return{'config':_0x59f6fa,'result':{'actions':_0x36dfbf,'error':_0x573540['error']}};});}})}));}[_0x2f1425(0x1e6)](){const _0x1a8307=_0x2f1425;var _0x2e7a18,_0x36bd39;const _0x2625fa=this[_0x1a8307(0x1c3)][_0x1a8307(0x480)](Mt),_0x174613=this[_0x1a8307(0x1c3)]['getConfig'](A);return(_0x36bd39=(_0x2e7a18=_0x174613==null?void 0x0:_0x174613[_0x1a8307(0x43a)])!=null?_0x2e7a18:_0x2625fa)!=null?_0x36bd39:Ji;}async['create'](_0x497a81){const _0x1b2ecb=_0x2f1425,_0x23ec46=this[_0x1b2ecb(0x1e6)]()+'/'+_0x497a81['objectType']+'/object';return(await this[_0x1b2ecb(0x359)]['post'](_0x23ec46,{'body':_0x497a81}))[_0x1b2ecb(0x2d2)]['objectID']||'';}async['list'](_0x805e5e){const _0x5c6697=_0x2f1425,_0xe325ef=this[_0x5c6697(0x1e6)]()+'/-/object/list';return(await this[_0x5c6697(0x359)][_0x5c6697(0x31d)](_0xe325ef,{'body':_0x805e5e}))['body']['objects'];}async[_0x2f1425(0x36f)](_0x334c17){const _0xbfa009=_0x2f1425,_0x55457c=this[_0xbfa009(0x1e6)]()+'/'+_0x334c17[_0xbfa009(0x178)]+_0xbfa009(0x4c0)+_0x334c17['objectID'];await this[_0xbfa009(0x359)][_0xbfa009(0x1a0)](_0x55457c,{'body':_0x334c17});}async[_0x2f1425(0x22d)](_0x518214){const _0x1726e8=_0x2f1425,_0x3166ec=this['_getAPIPrefixPath']()+'/'+_0x518214[_0x1726e8(0x178)]+_0x1726e8(0x4c0)+_0x518214[_0x1726e8(0x56a)]+_0x1726e8(0x4f7);return(await this[_0x1726e8(0x359)][_0x1726e8(0x31d)](_0x3166ec,{'body':_0x518214}))['body'][_0x1726e8(0x2dc)];}async[_0x2f1425(0x4c5)](_0x413e66){const _0x27dd20=_0x2f1425,_0x222f9d=this['_getAPIPrefixPath']()+_0x27dd20(0x2ec);return(await this[_0x27dd20(0x359)][_0x27dd20(0x31d)](_0x222f9d,{'body':{'requests':_0x413e66}}))[_0x27dd20(0x2d2)][_0x27dd20(0x3e4)];}async[_0x2f1425(0x39c)](_0x25cf7b){const _0x28c15d=_0x2f1425,_0x58ea64=this[_0x28c15d(0x1e6)]()+'/'+_0x25cf7b['objectType']+_0x28c15d(0x3ab),_0x2ec551=await this['_HTTPService'][_0x28c15d(0x31d)](_0x58ea64,{'body':_0x25cf7b});return{'roles':_0x2ec551[_0x28c15d(0x2d2)][_0x28c15d(0x397)],'actions':_0x2ec551[_0x28c15d(0x2d2)][_0x28c15d(0x2dc)]};}async[_0x2f1425(0x351)](_0x2c1cbe){const _0x1ea9c8=_0x2f1425,_0x4a4bd8=this[_0x1ea9c8(0x1e6)]()+_0x1ea9c8(0x238);await this[_0x1ea9c8(0x359)][_0x1ea9c8(0x28f)](_0x4a4bd8,{'params':{'collaboratorID':_0x2c1cbe[_0x1ea9c8(0x41f)],'objectID':_0x2c1cbe[_0x1ea9c8(0x56a)],'unitID':_0x2c1cbe[_0x1ea9c8(0x437)]}});}async[_0x2f1425(0x289)](_0x44156a){const _0x3ac83a=_0x2f1425,_0x108eaa=this[_0x3ac83a(0x1e6)]()+_0x3ac83a(0x238);await this[_0x3ac83a(0x359)][_0x3ac83a(0x1b0)](_0x108eaa,{'body':_0x44156a});}async[_0x2f1425(0x435)](_0x50a116){const _0xa5b123=_0x2f1425,_0xf08be3=this[_0xa5b123(0x1e6)]()+_0xa5b123(0x238);await this[_0xa5b123(0x359)][_0xa5b123(0x31d)](_0xf08be3,{'body':_0x50a116});}async[_0x2f1425(0x1ac)](_0xa3bced){const _0x2dd3d5=_0x2f1425,_0x2f1503=this[_0x2dd3d5(0x1e6)]()+_0x2dd3d5(0x238);return(await this[_0x2dd3d5(0x359)][_0x2dd3d5(0x41b)](_0x2f1503,{'params':{'objectID':_0xa3bced[_0x2dd3d5(0x56a)],'unitID':_0xa3bced[_0x2dd3d5(0x437)]}}))[_0x2dd3d5(0x2d2)][_0x2dd3d5(0x2b6)];}async[_0x2f1425(0x2aa)](_0x22a203){const _0x568576=_0x2f1425,_0x3dfb75=this[_0x568576(0x1e6)]()+_0x568576(0x238);await this['_HTTPService'][_0x568576(0x1a0)](_0x3dfb75,{'body':_0x22a203});}},exports[_0x2f1425(0x321)]=zi([ct(0x0,a[_0x2f1425(0x4d1)](P[_0x2f1425(0x3a0)])),ct(0x1,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x47d)]))],exports[_0x2f1425(0x321)]);var Zi=Object[_0x2f1425(0x1cf)],Qi=Object[_0x2f1425(0x2ab)],en=(_0x115a29,_0x331582,_0x2c3288,_0x2f0417)=>{const _0x452cdd=_0x2f1425;for(var _0x4b77e4=_0x2f0417>0x1?void 0x0:_0x2f0417?Qi(_0x331582,_0x2c3288):_0x331582,_0x14cab8=_0x115a29[_0x452cdd(0x38d)]-0x1,_0x448981;_0x14cab8>=0x0;_0x14cab8--)(_0x448981=_0x115a29[_0x14cab8])&&(_0x4b77e4=(_0x2f0417?_0x448981(_0x331582,_0x2c3288,_0x4b77e4):_0x448981(_0x4b77e4))||_0x4b77e4);return _0x2f0417&&_0x4b77e4&&Zi(_0x331582,_0x2c3288,_0x4b77e4),_0x4b77e4;},tn=(_0x52c46f,_0x50bfe7)=>(_0xb6f626,_0x27819f)=>_0x50bfe7(_0xb6f626,_0x27819f,_0x52c46f);let Ce=class{constructor(_0x9a604b){const _0xb1bfc7=_0x2f1425;this[_0xb1bfc7(0x2dd)]=_0x9a604b,this[_0xb1bfc7(0x3e5)]();}[_0x2f1425(0x3e5)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x268109,_0x16c2f4)=>{const _0x53a7cd=_0x4554,_0x4177f4=_0x268109[_0x53a7cd(0x287)],_0x26a70e=Ft['getAttachHeader']();return _0x26a70e&&_0x4177f4['set'](_0x53a7cd(0x53f),_0x26a70e),_0x16c2f4(_0x268109);}});}};Ce=en([tn(0x0,a[_0x2f1425(0x4d1)](P[_0x2f1425(0x3a0)]))],Ce);var sn=Object[_0x2f1425(0x1cf)],nn=Object[_0x2f1425(0x2ab)],rn=(_0x427695,_0xf17048,_0x76278e,_0x451c24)=>{for(var _0x97b8ce=_0x451c24>0x1?void 0x0:_0x451c24?nn(_0xf17048,_0x76278e):_0xf17048,_0x36026e=_0x427695['length']-0x1,_0x575e55;_0x36026e>=0x0;_0x36026e--)(_0x575e55=_0x427695[_0x36026e])&&(_0x97b8ce=(_0x451c24?_0x575e55(_0xf17048,_0x76278e,_0x97b8ce):_0x575e55(_0x97b8ce))||_0x97b8ce);return _0x451c24&&_0x97b8ce&&sn(_0xf17048,_0x76278e,_0x97b8ce),_0x97b8ce;},je=(_0x320831,_0x2a24c5)=>(_0x59018b,_0x293eb9)=>_0x2a24c5(_0x59018b,_0x293eb9,_0x320831);const on=[_0x2f1425(0x27f),_0x2f1425(0x1c4),'image/jpg','image/gif',_0x2f1425(0x3e2)],an=0x5*0x400*0x400,cn=_0x2f1425(0x52a),ln=_0x2f1425(0x21f),hn=_0x2f1425(0x20e),_n=_0x2f1425(0x48f);exports[_0x2f1425(0x579)]=class{constructor(_0x22384f,_0x37ae13,_0x3acbf9){const _0x14b9c7=_0x2f1425;d(this,_0x14b9c7(0x487),0x0),d(this,_0x14b9c7(0x416),new v[(_0x14b9c7(0x368))]()),d(this,_0x14b9c7(0x1ba),this['_change$']),d(this,'_imageSourceCache',new Map()),(this[_0x14b9c7(0x2dd)]=_0x22384f,this[_0x14b9c7(0x1c3)]=_0x37ae13,this[_0x14b9c7(0x458)]=_0x3acbf9);}[_0x2f1425(0x290)](_0x5cb602){const _0x420258=_0x2f1425;this[_0x420258(0x487)]=_0x5cb602,this[_0x420258(0x416)][_0x420258(0x500)](_0x5cb602);}['getImageSourceCache'](_0x2acc68,_0x4e9578){const _0x474fdd=_0x2f1425;if(_0x4e9578===L[_0x474fdd(0x401)][_0x474fdd(0x575)]){const _0x204be0=new Image();return _0x204be0[_0x474fdd(0x4a9)]=_0x2acc68,_0x204be0;}return this[_0x474fdd(0x194)][_0x474fdd(0x41b)](_0x2acc68);}[_0x2f1425(0x217)](_0x495b7e,_0x9b2554,_0x365856){const _0x2a8f00=_0x2f1425;_0x9b2554===L[_0x2a8f00(0x401)][_0x2a8f00(0x575)]||_0x365856==null||this[_0x2a8f00(0x194)][_0x2a8f00(0x36e)](_0x495b7e,_0x365856);}async['getImage'](_0x31b4d1){const _0x366420=_0x2f1425;try{const _0x5bc616=this[_0x366420(0x1b7)](this[_0x366420(0x39b)](),''+_0x31b4d1),_0x6fad0b=(await this[_0x366420(0x2dd)][_0x366420(0x41b)](_0x5bc616))[_0x366420(0x2d2)];if(_0x6fad0b[_0x366420(0x348)]&&_0x6fad0b[_0x366420(0x348)]['code']===It['OK']){const _0x5927b1=new URL(_0x6fad0b[_0x366420(0x1f1)],this[_0x366420(0x1ee)]())[_0x366420(0x51c)]();return Promise[_0x366420(0x311)](_0x5927b1);}return Promise['reject'](_0x6fad0b[_0x366420(0x348)]);}catch(_0x396055){return Promise[_0x366420(0x40e)](_0x396055);}}async[_0x2f1425(0x527)](_0x2c8aba){const _0x591229=_0x2f1425;let _0x20c111='';if(!on[_0x591229(0x537)](_0x2c8aba[_0x591229(0x3c5)]))return this['_decreaseWaiting'](),Promise[_0x591229(0x40e)](new Error(L[_0x591229(0x42e)][_0x591229(0x4d3)]));if(_0x2c8aba[_0x591229(0x362)]>an)return this[_0x591229(0x434)](),Promise[_0x591229(0x40e)](new Error(L['ImageUploadStatusType'][_0x591229(0x19c)]));try{const _0xda8a0e=new FormData();_0xda8a0e[_0x591229(0x1b3)](_0x591229(0x3a2),_0x2c8aba);const _0x2e6e4c=this[_0x591229(0x458)]['getFocusedUnit'](),_0x450ea6=_0x2e6e4c==null?void 0x0:_0x2e6e4c[_0x591229(0x1fa)]();if(!_0x450ea6)throw new Error(_0x591229(0x196));const _0x5c670e=this[_0x591229(0x36d)]()+_0x591229(0x2bf)+_0x2c8aba[_0x591229(0x362)]['toString']()+_0x591229(0x2a9)+pt[_0x591229(0x4a2)]+_0x591229(0x403)+encodeURIComponent(_0x450ea6),_0x5b9a53=await(await fetch(_0x5c670e,{'method':_0x591229(0x360),'body':_0xda8a0e}))[_0x591229(0x4ae)]();if(typeof _0x5b9a53[_0x591229(0x3c1)]!=_0x591229(0x3f2))return this[_0x591229(0x434)](),Promise[_0x591229(0x40e)](new Error(L['ImageUploadStatusType']['ERROR_IMAGE']));_0x20c111=_0x5b9a53[_0x591229(0x3c1)];}catch{return this[_0x591229(0x434)](),Promise[_0x591229(0x40e)](new Error(L[_0x591229(0x42e)]['ERROR_IMAGE']));}return new Promise((_0x4af1e7,_0x15f046)=>{const _0x464cd3=_0x591229,_0xf57af2=new FileReader();_0xf57af2[_0x464cd3(0x47a)](_0x2c8aba),_0xf57af2[_0x464cd3(0x33b)]=_0x1d429a=>{const _0x5f589a=_0x464cd3;var _0x1337e6;const _0x4f1d8d=(_0x1337e6=_0x1d429a[_0x5f589a(0x474)])==null?void 0x0:_0x1337e6[_0x5f589a(0x35b)];if(_0x4f1d8d==null){this[_0x5f589a(0x434)](),_0x15f046(new Error(L[_0x5f589a(0x42e)]['ERROR_IMAGE']));return;}const _0x120385=a['Tools'][_0x5f589a(0x185)](0x6);_0x4af1e7({'imageId':_0x120385,'imageSourceType':L[_0x5f589a(0x401)][_0x5f589a(0x2c4)],'source':_0x20c111,'base64Cache':_0x4f1d8d,'status':L[_0x5f589a(0x42e)][_0x5f589a(0x261)]}),this['_decreaseWaiting']();};});}[_0x2f1425(0x36d)](){const _0x58c4ad=_0x2f1425;var _0x40b76a,_0x285486;const _0x36eea0=this['_configService'][_0x58c4ad(0x480)](cn),_0x4a6540=this[_0x58c4ad(0x1c3)][_0x58c4ad(0x480)](A);return(_0x285486=(_0x40b76a=_0x4a6540==null?void 0x0:_0x4a6540[_0x58c4ad(0x410)])!=null?_0x40b76a:_0x36eea0)!=null?_0x285486:ln;}[_0x2f1425(0x39b)](){const _0x567f14=_0x2f1425;var _0x40027e,_0x48a329;const _0x560055=this['_configService'][_0x567f14(0x480)](hn),_0x31d513=this[_0x567f14(0x1c3)][_0x567f14(0x480)](A);return(_0x48a329=(_0x40027e=_0x31d513==null?void 0x0:_0x31d513[_0x567f14(0x51f)])!=null?_0x40027e:_0x560055)!=null?_0x48a329:_n;}[_0x2f1425(0x1ee)](){const _0x20ed91=_0x2f1425;var _0x37e7e8;const _0x111fce=this['_configService'][_0x20ed91(0x480)](A);return(_0x37e7e8=_0x111fce==null?void 0x0:_0x111fce[_0x20ed91(0x1d8)])!=null?_0x37e7e8:location['origin'];}[_0x2f1425(0x1b7)](_0x3970e9,_0x7f7f23){const _0x566d7b=_0x2f1425;return _0x3970e9[_0x566d7b(0x557)](_0x566d7b(0x1f0),_0x7f7f23);}['_decreaseWaiting'](){const _0x31d61b=_0x2f1425;this[_0x31d61b(0x487)]-=0x1,this['_change$']['next'](this[_0x31d61b(0x487)]);}},exports[_0x2f1425(0x579)]=rn([je(0x0,a[_0x2f1425(0x4d1)](P[_0x2f1425(0x3a0)])),je(0x1,a[_0x2f1425(0x47d)]),je(0x2,a['Inject'](a[_0x2f1425(0x468)]))],exports[_0x2f1425(0x579)]);var un=Object['defineProperty'],dn=Object['getOwnPropertyDescriptor'],Sn=(_0xfd789a,_0x16bf6b,_0x2a942d,_0x4c40bc)=>{for(var _0x5c1cc5=_0x4c40bc>0x1?void 0x0:_0x4c40bc?dn(_0x16bf6b,_0x2a942d):_0x16bf6b,_0x952f90=_0xfd789a['length']-0x1,_0x38b527;_0x952f90>=0x0;_0x952f90--)(_0x38b527=_0xfd789a[_0x952f90])&&(_0x5c1cc5=(_0x4c40bc?_0x38b527(_0x16bf6b,_0x2a942d,_0x5c1cc5):_0x38b527(_0x5c1cc5))||_0x5c1cc5);return _0x4c40bc&&_0x5c1cc5&&un(_0x16bf6b,_0x2a942d,_0x5c1cc5),_0x5c1cc5;},he=(_0xbda483,_0x51b3bf)=>(_0x5ecfbc,_0x25b70c)=>_0x51b3bf(_0x5ecfbc,_0x25b70c,_0xbda483);let Ee=class extends a[_0x2f1425(0x25b)]{constructor(_0x170070,_0x1f65d8,_0x4a602d,_0x22de6c,_0x25ae70){const _0x2b721d=_0x2f1425;super(),this[_0x2b721d(0x4fa)]=_0x170070,this[_0x2b721d(0x458)]=_0x1f65d8,this[_0x2b721d(0x531)]=_0x4a602d,this[_0x2b721d(0x3e8)]=_0x22de6c,this[_0x2b721d(0x3ec)]=_0x25ae70,this[_0x2b721d(0x174)](),this[_0x2b721d(0x553)]();}['_initCloseConn'](){const _0x575ce5=_0x2f1425,_0xf1e272=async _0x527e35=>{const _0x3adc71=_0x4554;(await this['_collaborationSessionService'][_0x3adc71(0x1a6)](_0x527e35))[_0x3adc71(0x4f8)][_0x3adc71(0x53d)](E[_0x3adc71(0x2b7)](_0x4d9ca0=>_0x4d9ca0[_0x3adc71(0x188)]===_[_0x3adc71(0x565)][_0x3adc71(0x4ca)]),E[_0x3adc71(0x275)](this[_0x3adc71(0x2b4)]))[_0x3adc71(0x3ca)](_0x5f183f=>{const _0x379c83=_0x3adc71,_0x3db21a=_0x5f183f,{reason:_0x47b376}=_0x3db21a[_0x379c83(0x2a5)];this[_0x379c83(0x4fa)][_0x379c83(0x41b)](N[_0x379c83(0x48c)])[_0x379c83(0x1b9)]({'type':X['MessageType']['Error'],'content':this[_0x379c83(0x3ec)]['t'](_0x379c83(0x440))+'('+_0x47b376+')'}),this[_0x379c83(0x531)][_0x379c83(0x4cc)](new C[(_0x379c83(0x224))](_0x527e35)['id'],!0x1),this[_0x379c83(0x3e8)][_0x379c83(0x540)](_0x527e35);});};v['merge'](this['_univerInstanceService'][_0x575ce5(0x4e4)](a[_0x575ce5(0x35f)]['UNIVER_SHEET']),this[_0x575ce5(0x458)][_0x575ce5(0x4e4)](a[_0x575ce5(0x35f)][_0x575ce5(0x3df)]))['pipe'](E[_0x575ce5(0x1c9)](_0x214b86=>_0x214b86[_0x575ce5(0x1fa)]()),E[_0x575ce5(0x2b7)](_0x50fd83=>!a[_0x575ce5(0x4a1)](_0x50fd83)),E[_0x575ce5(0x275)](this[_0x575ce5(0x2b4)]))[_0x575ce5(0x3ca)](_0x299f2a=>{_0xf1e272(_0x299f2a);});}[_0x2f1425(0x174)](){const _0x20cffb=_0x2f1425,_0x33ac6c=async _0x5bd45a=>{const _0x42a637=_0x4554;(await this[_0x42a637(0x3e8)][_0x42a637(0x1a6)](_0x5bd45a))['event$'][_0x42a637(0x53d)](E[_0x42a637(0x2b7)](_0x4526b2=>_0x4526b2['eventID']===_['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),E[_0x42a637(0x275)](this[_0x42a637(0x2b4)]))['subscribe'](_0x4935d9=>{const _0x3e41c3=_0x42a637,_0x3a4590=_0x4935d9,{objectId:_0x2017fd}=_0x3a4590['data'],_0x45d03a=this[_0x3e41c3(0x4fa)][_0x3e41c3(0x41b)](te[_0x3e41c3(0x452)]);_0x2017fd===_0x5bd45a?_0x45d03a[_0x3e41c3(0x3a9)](_0x5bd45a):_0x45d03a[_0x3e41c3(0x532)](_0x5bd45a,_0x2017fd);});};v[_0x20cffb(0x18a)](this['_univerInstanceService'][_0x20cffb(0x4e4)](a[_0x20cffb(0x35f)]['UNIVER_SHEET']),this['_univerInstanceService'][_0x20cffb(0x4e4)](a[_0x20cffb(0x35f)][_0x20cffb(0x3df)]))[_0x20cffb(0x53d)](E[_0x20cffb(0x1c9)](_0x39ed53=>_0x39ed53[_0x20cffb(0x1fa)]()),E[_0x20cffb(0x2b7)](_0x2a3122=>!a[_0x20cffb(0x4a1)](_0x2a3122)),E[_0x20cffb(0x275)](this[_0x20cffb(0x2b4)]))[_0x20cffb(0x3ca)](_0x3d10bd=>{_0x33ac6c(_0x3d10bd);});}};Ee=Sn([he(0x0,a[_0x2f1425(0x4d1)](a['Injector'])),he(0x1,a['IUniverInstanceService']),he(0x2,a[_0x2f1425(0x18e)]),he(0x3,a[_0x2f1425(0x4d1)](exports['CollaborationSessionService'])),he(0x4,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x2d7)]))],Ee);var vn=Object['defineProperty'],fn=Object[_0x2f1425(0x2ab)],gn=(_0x2d24a8,_0x4c53b4,_0x225d4e,_0x21a288)=>{const _0x425d12=_0x2f1425;for(var _0x813ef7=_0x21a288>0x1?void 0x0:_0x21a288?fn(_0x4c53b4,_0x225d4e):_0x4c53b4,_0x5a1d33=_0x2d24a8[_0x425d12(0x38d)]-0x1,_0x1e27eb;_0x5a1d33>=0x0;_0x5a1d33--)(_0x1e27eb=_0x2d24a8[_0x5a1d33])&&(_0x813ef7=(_0x21a288?_0x1e27eb(_0x4c53b4,_0x225d4e,_0x813ef7):_0x1e27eb(_0x813ef7))||_0x813ef7);return _0x21a288&&_0x813ef7&&vn(_0x4c53b4,_0x225d4e,_0x813ef7),_0x813ef7;},lt=(_0x59ce46,_0x16967b)=>(_0x1f22e7,_0x2604a1)=>_0x16967b(_0x1f22e7,_0x2604a1,_0x59ce46);exports[_0x2f1425(0x45a)]=class{constructor(_0x5a89b1,_0x5e6691){this['_configService']=_0x5a89b1,this['_httpService']=_0x5e6691;}async[_0x2f1425(0x2a7)](_0x5aecaf,_0x3f3895){const _0x44e7f9=_0x2f1425;var _0x103c10;const {unitID:_0x1e0ca0,type:_0x5a13ee,revision:_0x567405=0x0}=_0x3f3895,_0x56dc3a=this['_getSnapshotAPIPrefix']()+'/'+_0x5a13ee+'/unit/'+_0x1e0ca0+_0x44e7f9(0x211)+_0x567405,_0x4c2421=(await this[_0x44e7f9(0x2dd)][_0x44e7f9(0x41b)](_0x56dc3a))[_0x44e7f9(0x2d2)],_0x54d2ee=(_0x103c10=_0x4c2421[_0x44e7f9(0x32d)])==null?void 0x0:_0x103c10[_0x44e7f9(0x1af)];if(_0x54d2ee){const _0x2a0d36=_0x54d2ee==null?void 0x0:_0x54d2ee[_0x44e7f9(0x413)],_0x5bbe42=_[_0x44e7f9(0x1a2)][_0x44e7f9(0x4c8)](_[_0x44e7f9(0x50b)](_0x2a0d36));_0x54d2ee[_0x44e7f9(0x413)]=_0x5bbe42,Object[_0x44e7f9(0x523)](_0x54d2ee[_0x44e7f9(0x483)])[_0x44e7f9(0x28e)](([,_0x1b38a0])=>{const _0x599e03=_0x44e7f9,_0x41f1b6=_0x1b38a0['originalMeta'],_0x52d466=_[_0x599e03(0x1a2)][_0x599e03(0x4c8)](_[_0x599e03(0x50b)](_0x41f1b6));_0x1b38a0[_0x599e03(0x413)]=_0x52d466;});}return _0x4c2421;}async['getSheetBlock'](_0x6ec7a2,_0x260328){const _0x28c217=_0x2f1425,{unitID:_0x4f86aa,type:_0x35265b,blockID:_0x1ae558}=_0x260328,_0x561b27=this['_getAPIPrefix']()+'/'+_0x35265b+_0x28c217(0x38a)+_0x4f86aa+_0x28c217(0x442)+_0x1ae558;return(await this[_0x28c217(0x2dd)]['get'](_0x561b27))['body'];}async[_0x2f1425(0x3b5)](_0x5ed952,_0x161fb7){const _0x552439=_0x2f1425,{unitID:_0x4d350d,type:_0xbc857,blockID:_0xf3c6d0}=_0x161fb7,_0x1ab7ca=this[_0x552439(0x26e)]()+_0x552439(0x442)+_0xbc857+_0x552439(0x38a)+_0x4d350d+'/block/'+_0xf3c6d0;return(await this[_0x552439(0x2dd)]['get'](_0x1ab7ca))[_0x552439(0x2d2)];}async[_0x2f1425(0x1fe)](_0xc4ec4f,_0x5017d5){const _0x522738=_0x2f1425,{unitID:_0x3f49ae,type:_0x54a871,from:_0x4f33fd,to:_0x3ae313}=_0x5017d5,_0xddbc=this[_0x522738(0x26e)]()+'/'+_0x54a871+'/unit/'+_0x3f49ae+_0x522738(0x508)+_0x4f33fd+_0x522738(0x3a4)+_0x3ae313;return(await this[_0x522738(0x2dd)][_0x522738(0x41b)](_0xddbc))[_0x522738(0x2d2)];}[_0x2f1425(0x23b)](){const _0x86bbb3=_0x2f1425;var _0x303d15;return(_0x303d15=this[_0x86bbb3(0x1c3)][_0x86bbb3(0x480)](_t))!=null?_0x303d15:this['_getAPIPrefix']();}[_0x2f1425(0x26e)](){const _0x520ce8=_0x2f1425;var _0x54e1cf,_0x42f5b9;const _0x2fbbc9=this[_0x520ce8(0x1c3)][_0x520ce8(0x480)](ht),_0x2b1dd0=this[_0x520ce8(0x1c3)][_0x520ce8(0x480)](A);return(_0x42f5b9=(_0x54e1cf=_0x2b1dd0==null?void 0x0:_0x2b1dd0[_0x520ce8(0x31f)])!=null?_0x54e1cf:_0x2fbbc9)!=null?_0x42f5b9:Gt;}async['getResourcesRequest'](_0x47ee22,_0x41daa6){const _0x11150c=_0x2f1425,_0x2b9277='/universer-api/snapshot/'+_0x41daa6[_0x11150c(0x3c5)]+_0x11150c(0x38a)+_0x41daa6[_0x11150c(0x437)]+_0x11150c(0x3af);return(await this[_0x11150c(0x2dd)]['get'](_0x2b9277,{'params':{'resourceId':JSON[_0x11150c(0x1d5)](_0x41daa6['resourceIDs'])}}))[_0x11150c(0x2d2)];}[_0x2f1425(0x520)](){const _0x4c0eb6=_0x2f1425;throw new Error(_0x4c0eb6(0x408));}['saveSheetBlock'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x2f1425(0x212)](){const _0x586d97=_0x2f1425;throw new Error(_0x586d97(0x408));}[_0x2f1425(0x551)](){const _0x199f29=_0x2f1425;throw new Error(_0x199f29(0x408));}},exports['SnapshotServerOverHTTPService']=gn([lt(0x0,a['IConfigService']),lt(0x1,a[_0x2f1425(0x4d1)](P['HTTPService']))],exports['SnapshotServerOverHTTPService']);var mn=Object['defineProperty'],In=Object['getOwnPropertyDescriptor'],pn=(_0x50530a,_0x537825,_0x1d14da,_0x1175f1)=>{const _0x3a63d9=_0x2f1425;for(var _0x24c563=_0x1175f1>0x1?void 0x0:_0x1175f1?In(_0x537825,_0x1d14da):_0x537825,_0x342bd7=_0x50530a[_0x3a63d9(0x38d)]-0x1,_0x491535;_0x342bd7>=0x0;_0x342bd7--)(_0x491535=_0x50530a[_0x342bd7])&&(_0x24c563=(_0x1175f1?_0x491535(_0x537825,_0x1d14da,_0x24c563):_0x491535(_0x24c563))||_0x24c563);return _0x1175f1&&_0x24c563&&mn(_0x537825,_0x1d14da,_0x24c563),_0x24c563;},_e=(_0x27f042,_0x3b9fda)=>(_0x4caafa,_0x554aa3)=>_0x3b9fda(_0x4caafa,_0x554aa3,_0x27f042);let Be=class extends a[_0x2f1425(0x3fe)]{constructor(_0x105884,_0x17b4b6,_0x2ba7f3,_0x35f547,_0x50e74c){const _0x54e3fd=_0x2f1425;super(_0x105884,_0x17b4b6,_0x2ba7f3),this[_0x54e3fd(0x3fd)]=_0x35f547,this[_0x54e3fd(0x562)]=_0x50e74c;}[_0x2f1425(0x1ad)](_0x60e32e,_0x7cce5d){const _0x35c867=_0x2f1425,_0x4ff455=this[_0x35c867(0x42a)](_0x60e32e);if(_0x4ff455)try{const _0x5cdee2=this[_0x35c867(0x370)](_0x4ff455,_0x7cce5d);this['_substituteUndoStack'](_0x60e32e,_0x5cdee2);}catch(_0x4dd025){this[_0x35c867(0x562)]['error'](_0x35c867(0x2f0),_0x4dd025),this['_clearUndo'](_0x60e32e);}const _0x4d231f=this[_0x35c867(0x270)](_0x60e32e);if(_0x4d231f)try{const _0x145270=this[_0x35c867(0x370)](_0x4d231f,_0x7cce5d);this[_0x35c867(0x4b0)](_0x60e32e,_0x145270);}catch(_0x221e20){this[_0x35c867(0x562)][_0x35c867(0x348)](_0x221e20),this[_0x35c867(0x2ee)](_0x60e32e);}}[_0x2f1425(0x265)](_0x23617b){const _0x57a3bf=_0x2f1425,_0x19f2b3=this[_0x57a3bf(0x42a)](_0x23617b);_0x19f2b3&&(_0x19f2b3['length']=0x0,this[_0x57a3bf(0x23a)]());}[_0x2f1425(0x2ee)](_0x545fa0){const _0x55b4b4=_0x2f1425,_0x3f71ea=this[_0x55b4b4(0x270)](_0x545fa0);_0x3f71ea&&(_0x3f71ea[_0x55b4b4(0x38d)]=0x0,this[_0x55b4b4(0x23a)]());}['_substituteUndoStack'](_0x5603b9,_0x1a643c){const _0x140078=_0x2f1425;this[_0x140078(0x516)][_0x140078(0x36e)](_0x5603b9,_0x1a643c),this[_0x140078(0x23a)]();}[_0x2f1425(0x4b0)](_0x542086,_0x5459f5){const _0x2a3929=_0x2f1425;this[_0x2a3929(0x4aa)][_0x2a3929(0x36e)](_0x542086,_0x5459f5),this[_0x2a3929(0x23a)]();}[_0x2f1425(0x370)](_0x53cb67,_0x507bea){const _0x2a787c=_0x2f1425,_0x4c669a=[];let _0x390e0b=_0x507bea,_0x82e598=_0x507bea;for(let _0x4e5389=_0x53cb67['length']-0x1;_0x4e5389>=0x0;_0x4e5389--){const {unitID:_0x2c07ef,undoMutations:_0x19219a,redoMutations:_0x523e3d}=_0x53cb67[_0x4e5389],_0x28bb41=this[_0x2a787c(0x3fd)][_0x2a787c(0x55d)](_0x390e0b,_0x19219a),_0x31097a=this['_transformService']['transformMutationsWithChangeset'](_0x82e598,_0x523e3d);if(_[_0x2a787c(0x328)](_0x28bb41)||_[_0x2a787c(0x328)](_0x31097a)){this[_0x2a787c(0x562)][_0x2a787c(0x348)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x28bb41,_0x31097a);break;}_0x390e0b=_0x28bb41[_0x2a787c(0x3bc)],_0x82e598=_0x31097a[_0x2a787c(0x3bc)],_0x4c669a[_0x2a787c(0x52d)]({'unitID':_0x2c07ef,'undoMutations':_0x28bb41[_0x2a787c(0x409)],'redoMutations':_0x31097a['m2Prime']});}return _0x4c669a[_0x2a787c(0x4e6)]();}};Be=pn([_e(0x0,a[_0x2f1425(0x468)]),_e(0x1,a[_0x2f1425(0x477)]),_e(0x2,a['IContextService']),_e(0x3,_['ITransformService']),_e(0x4,a['ILogService'])],Be);class Nt extends a[_0x2f1425(0x25b)]{constructor(){const _0x5802bc=_0x2f1425;super(),d(this,_0x5802bc(0x2b8)),this[_0x5802bc(0x2b8)]=v['fromEvent'](window,_0x5802bc(0x250))[_0x5802bc(0x53d)](v['takeUntil'](this[_0x5802bc(0x2b4)]),v[_0x5802bc(0x4bd)](0x1),v[_0x5802bc(0x2fe)](void 0x0));}['setParam'](_0x149d20,_0x5cafa1,_0x30af97=!0x1){const _0x5e85cc=_0x2f1425,_0x3eddfd=new URL(window[_0x5e85cc(0x2d9)]['href']);_0x3eddfd['searchParams'][_0x5e85cc(0x36e)](_0x149d20,_0x5cafa1),_0x30af97?window[_0x5e85cc(0x4a7)]['replaceState']('','',_0x3eddfd[_0x5e85cc(0x51c)]()):window[_0x5e85cc(0x4a7)]['pushState']('','',_0x3eddfd[_0x5e85cc(0x51c)]());}[_0x2f1425(0x3e0)](_0x39651e,_0xc2b130=!0x1){const _0x41ca70=_0x2f1425,_0x1100b4=new URL(window[_0x41ca70(0x2d9)][_0x41ca70(0x236)]);_0x1100b4[_0x41ca70(0x4da)][_0x41ca70(0x28f)](_0x39651e),_0xc2b130?window[_0x41ca70(0x4a7)][_0x41ca70(0x283)]('','',_0x1100b4['toString']()):window[_0x41ca70(0x4a7)][_0x41ca70(0x475)]('','',_0x1100b4[_0x41ca70(0x51c)]());}['getParam'](_0x3cee3d){const _0x2aea60=_0x2f1425;var _0x56182c;return(_0x56182c=new URL(window[_0x2aea60(0x2d9)][_0x2aea60(0x236)])[_0x2aea60(0x4da)][_0x2aea60(0x41b)](_0x3cee3d))!=null?_0x56182c:void 0x0;}}var At=Object['defineProperty'],Cn=Object[_0x2f1425(0x2ab)],En=(_0x5c0783,_0x3b1142,_0x515532)=>_0x3b1142 in _0x5c0783?At(_0x5c0783,_0x3b1142,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x515532}):_0x5c0783[_0x3b1142]=_0x515532,bn=(_0x3e9a1c,_0x46afbd,_0x435981,_0x2d7408)=>{const _0x8bfac8=_0x2f1425;for(var _0x13ecc3=_0x2d7408>0x1?void 0x0:_0x2d7408?Cn(_0x46afbd,_0x435981):_0x46afbd,_0x284051=_0x3e9a1c[_0x8bfac8(0x38d)]-0x1,_0x42fa3f;_0x284051>=0x0;_0x284051--)(_0x42fa3f=_0x3e9a1c[_0x284051])&&(_0x13ecc3=(_0x2d7408?_0x42fa3f(_0x46afbd,_0x435981,_0x13ecc3):_0x42fa3f(_0x13ecc3))||_0x13ecc3);return _0x2d7408&&_0x13ecc3&&At(_0x46afbd,_0x435981,_0x13ecc3),_0x13ecc3;},ve=(_0x1f9277,_0x55c40d)=>(_0x17a76e,_0xa3b777)=>_0x55c40d(_0x17a76e,_0xa3b777,_0x1f9277),Tn=(_0x5cc21a,_0x35b90e,_0x59f478)=>En(_0x5cc21a,_0x35b90e+'',_0x59f478);const Rn=_0x2f1425(0x54c);exports['UniverCollaborationClientPlugin']=class extends a[_0x2f1425(0x254)]{constructor(_0x5e119b=ts,_0xdd431b,_0x40dbe1,_0x433469,_0x3ec64b){const _0xcbc47a=_0x2f1425;super(),this[_0xcbc47a(0x181)]=_0x5e119b,this[_0xcbc47a(0x562)]=_0xdd431b,this['_renderManagerService']=_0x40dbe1,this['_injector']=_0x433469,this[_0xcbc47a(0x1c3)]=_0x3ec64b;const {..._0x19aa78}=this[_0xcbc47a(0x181)];this['_configService'][_0xcbc47a(0x496)](A,_0x19aa78);}['onStarting'](){const _0xcfe657=_0x2f1425;this['_registerDependencies'](),a[_0xcfe657(0x47f)](this[_0xcfe657(0x4fa)],[[ie],[exports[_0xcfe657(0x2d8)]],[Ee]]);}[_0x2f1425(0x383)](){const _0x503bd8=_0x2f1425;a[_0x503bd8(0x47f)](this['_injector'],[[Ie]]);}[_0x2f1425(0x43b)](){this['_registerRenderDependencies']();}[_0x2f1425(0x361)](){const _0x2f5842=_0x2f1425;var _0x3bc037,_0x27f814,_0x56e29b,_0x23ecbc;this[_0x2f5842(0x4fa)][_0x2f5842(0x555)](a['IUndoRedoService'])&&this[_0x2f5842(0x562)][_0x2f5842(0x348)](_0x2f5842(0x29b),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x7adb49=[[a[_0x2f5842(0x45b)],{'useClass':Be}],[exports[_0x2f5842(0x1d4)]],[Xe],[P[_0x2f5842(0x3a0)]],[ze,{'useClass':Nt}],[q],[exports['LocalCacheService']],[P[_0x2f5842(0x266)]],[ge],[me],[fe],[Ye],[pe],[Ce],[Ge],[Ee],[Fe,{'useClass':(_0x27f814=(_0x3bc037=this[_0x2f5842(0x181)])==null?void 0x0:_0x3bc037[_0x2f5842(0x1e5)])!=null?_0x27f814:exports[_0x2f5842(0x19b)]}],[P[_0x2f5842(0x215)],{'useClass':P['XHRHTTPImplementation']}],[_['ISnapshotServerService'],{'useClass':exports[_0x2f5842(0x45a)]}],[a[_0x2f5842(0x35d)],{'useClass':exports[_0x2f5842(0x321)]}],[L[_0x2f5842(0x3dd)],{'useClass':exports['ImageIoService']}],[exports[_0x2f5842(0x4f1)]],[exports[_0x2f5842(0x2d8)]],[exports[_0x2f5842(0x55b)]],[Ie],[ie]];(_0x56e29b=this[_0x2f5842(0x181)])!=null&&_0x56e29b['enableSingleActiveInstanceLock']&&_0x7adb49[_0x2f5842(0x52d)]([be,{'useClass':ys}]),_0x7adb49=a['mergeOverrideWithDependencies'](_0x7adb49,(_0x23ecbc=this[_0x2f5842(0x181)])==null?void 0x0:_0x23ecbc['override']),_0x7adb49[_0x2f5842(0x28e)](_0xe38c8=>this[_0x2f5842(0x4fa)][_0x2f5842(0x1fd)](_0xe38c8)),this[_0x2f5842(0x1f2)]();}[_0x2f1425(0x2fb)](){const _0x4da121=_0x2f1425;this[_0x4da121(0x425)](this[_0x4da121(0x377)][_0x4da121(0x26b)](a['UniverInstanceType'][_0x4da121(0x3df)],[xe])),this[_0x4da121(0x425)](this['_renderManagerService'][_0x4da121(0x26b)](a['UniverInstanceType'][_0x4da121(0x1bf)],[ke]));}[_0x2f1425(0x1f2)](){const _0x16a01a=_0x2f1425;var _0x45e14b,_0x5f2185;this['_injector'][_0x16a01a(0x41b)](P[_0x16a01a(0x3a0)])[_0x16a01a(0x493)]({'priority':0x14,'interceptor':P[_0x16a01a(0x380)]({'maxParallel':0x6})}),this[_0x16a01a(0x4fa)]['get'](Ce),(_0x45e14b=this[_0x16a01a(0x181)])!=null&&_0x45e14b[_0x16a01a(0x43e)]||this[_0x16a01a(0x4fa)]['get'](exports[_0x16a01a(0x509)])[_0x16a01a(0x566)](),(_0x5f2185=this[_0x16a01a(0x181)])!=null&&_0x5f2185[_0x16a01a(0x2a2)]&&this[_0x16a01a(0x4fa)][_0x16a01a(0x41b)](pe),this['_injector'][_0x16a01a(0x41b)](exports[_0x16a01a(0x4f1)]),this[_0x16a01a(0x4fa)]['has'](exports['DesktopCollaborationStatusDisplayController'])&&this[_0x16a01a(0x4fa)]['get'](exports[_0x16a01a(0x55b)]);}},Tn(exports[_0x2f1425(0x2f9)],_0x2f1425(0x454),Rn),exports[_0x2f1425(0x2f9)]=bn([a[_0x2f1425(0x48a)](_['UniverCollaborationPlugin']),ve(0x1,a[_0x2f1425(0x2e3)]),ve(0x2,R[_0x2f1425(0x456)]),ve(0x3,a['Inject'](a['Injector'])),ve(0x4,a['IConfigService'])],exports[_0x2f1425(0x2f9)]),exports[_0x2f1425(0x208)]=Mt,exports[_0x2f1425(0x331)]=gt,exports[_0x2f1425(0x35e)]=ut,exports['CollaborationStatus']=y,exports[_0x2f1425(0x1f8)]=wt,exports[_0x2f1425(0x541)]=Ge,exports[_0x2f1425(0x495)]=dt,exports['HEARTBEAT_TIMEOUT_KEY']=Ve,exports['ICollaborationSocketService']=Fe,exports[_0x2f1425(0x30f)]=ze,exports['LOCAL_CACHE_INTERVAL_KEY']=ft,exports['LOGIN_URL_KEY']=mt,exports[_0x2f1425(0x3c7)]=vt,exports[_0x2f1425(0x245)]=Yt,exports['SNAPSHOT_SERVER_URL_KEY']=ht,exports[_0x2f1425(0x274)]=_t,exports[_0x2f1425(0x49b)]=$,exports[_0x2f1425(0x521)]=Ot,exports['WebURLService']=Nt,exports[_0x2f1425(0x421)]=Ct,exports[_0x2f1425(0x23d)]=Et;
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;