@univerjs-pro/collaboration-client 0.4.0-nightly.202410141606 → 0.4.0-nightly.202410161605
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +2 -0
- package/lib/types/services/local-cache/local-cache.service.d.ts +2 -2
- package/lib/types/services/snapshot-server/snapshot-server.service.d.ts +2 -1
- package/lib/umd/index.js +1 -1
- package/package.json +19 -18
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 _0x57f41f=_0x1fa7;(function(_0x458ed1,_0x31cdd1){const _0x40ec3f=_0x1fa7,_0x4e4c97=_0x458ed1();while(!![]){try{const _0x3d5cb5=-parseInt(_0x40ec3f(0x4bc))/0x1*(-parseInt(_0x40ec3f(0x544))/0x2)+-parseInt(_0x40ec3f(0x26f))/0x3+parseInt(_0x40ec3f(0x464))/0x4*(parseInt(_0x40ec3f(0x3f0))/0x5)+-parseInt(_0x40ec3f(0x2ca))/0x6*(parseInt(_0x40ec3f(0x368))/0x7)+-parseInt(_0x40ec3f(0x156))/0x8+-parseInt(_0x40ec3f(0x278))/0x9+parseInt(_0x40ec3f(0x1c7))/0xa;if(_0x3d5cb5===_0x31cdd1)break;else _0x4e4c97['push'](_0x4e4c97['shift']());}catch(_0x3b5f81){_0x4e4c97['push'](_0x4e4c97['shift']());}}}(_0xf60c,0x418de));var Ft=Object[_0x57f41f(0x522)],Gt=(_0x5839d3,_0x1d5f5a,_0x5a81fd)=>_0x1d5f5a in _0x5839d3?Ft(_0x5839d3,_0x1d5f5a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a81fd}):_0x5839d3[_0x1d5f5a]=_0x5a81fd,u=(_0x5d7167,_0x4c5a3f,_0x473b3b)=>Gt(_0x5d7167,typeof _0x4c5a3f!='symbol'?_0x4c5a3f+'':_0x4c5a3f,_0x473b3b);Object[_0x57f41f(0x522)](exports,Symbol['toStringTag'],{'value':_0x57f41f(0x359)});const a=require('@univerjs/core'),v=require(_0x57f41f(0x1f0)),E=require('rxjs/operators'),X=require('@univerjs/design'),A=require(_0x57f41f(0x363)),w=require(_0x57f41f(0x3dc)),_=require(_0x57f41f(0x301)),Yt=require(_0x57f41f(0x16e)),N=require(_0x57f41f(0x2ae)),C=require('@univerjs/sheets'),O=require('@univerjs/engine-render'),se=require(_0x57f41f(0x26d)),j=require('@univerjs/drawing'),et=require(_0x57f41f(0x514)),te=require(_0x57f41f(0x32b)),P=require(_0x57f41f(0x4ba)),Kt=require(_0x57f41f(0x1c1)),Xt=require(_0x57f41f(0x1ef)),St='SNAPSHOT_SERVER_URL_KEY',qt=_0x57f41f(0x390),vt=_0x57f41f(0x54a),zt=_0x57f41f(0x46b),Jt=0x7d0,gt=_0x57f41f(0x406),Zt=_0x57f41f(0x1f6),mt='HEARTBEAT_INTERVAL',Qt=0x7530,Ge=_0x57f41f(0x51c),ft=0x4e20,es=0x4e20,It=_0x57f41f(0x149),ts=0x3,pt=_0x57f41f(0x2b7),ss=0x3e8,Ct=_0x57f41f(0x143),is=_0x57f41f(0x415),Et=_0x57f41f(0x511),ns='/universer-api/oidc/authpage';var bt=(_0x717648=>(_0x717648[_0x717648['UNDEFINED']=0x0]=_0x57f41f(0x4d5),_0x717648[_0x717648['OK']=0x1]='OK',_0x717648[_0x717648[_0x57f41f(0x1a9)]=0x2]=_0x57f41f(0x1a9),_0x717648[_0x717648[_0x57f41f(0x48a)]=0x3]=_0x57f41f(0x48a),_0x717648[_0x717648[_0x57f41f(0x367)]=0x4]=_0x57f41f(0x367),_0x717648[_0x717648[_0x57f41f(0x2a7)]=0x5]=_0x57f41f(0x2a7),_0x717648[_0x717648[_0x57f41f(0x2d3)]=0x6]='ALREADY_EXISTS',_0x717648[_0x717648['INVALID_ARGUMENT']=0x7]=_0x57f41f(0x463),_0x717648[_0x717648[_0x57f41f(0x213)]=0x8]=_0x57f41f(0x213),_0x717648[_0x717648['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x717648[_0x717648[_0x57f41f(0x378)]=0x1389]=_0x57f41f(0x378),_0x717648[_0x717648[_0x57f41f(0x3a5)]=0x1771]=_0x57f41f(0x3a5),_0x717648[_0x717648[_0x57f41f(0x290)]=0x1772]=_0x57f41f(0x290),_0x717648[_0x717648[_0x57f41f(0x291)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x717648[_0x717648['APPLY_REJECT']=0x1b59]=_0x57f41f(0x419),_0x717648[_0x717648['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x57f41f(0x39a),_0x717648[_0x717648[_0x57f41f(0x23d)]=0x1b5b]=_0x57f41f(0x23d),_0x717648[_0x717648[_0x57f41f(0x2c3)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x717648[_0x717648['APPLY_DUPLICATED']=0x1b5d]=_0x57f41f(0x19e),_0x717648[_0x717648['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x717648[_0x717648[_0x57f41f(0x404)]=0x2329]=_0x57f41f(0x404),_0x717648[_0x717648[_0x57f41f(0x50f)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x717648[_0x717648[_0x57f41f(0x4c4)]=0x232b]=_0x57f41f(0x4c4),_0x717648[_0x717648[_0x57f41f(0x3bf)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x717648[_0x717648['LICENSE_DISTRO_REJECTED']=0x232d]=_0x57f41f(0x14e),_0x717648[_0x717648['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x57f41f(0x1b6),_0x717648[_0x717648[_0x57f41f(0x484)]=0x2712]=_0x57f41f(0x484),_0x717648[_0x717648['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x57f41f(0x1ee),_0x717648[_0x717648[_0x57f41f(0x49f)]=0x2714]=_0x57f41f(0x49f),_0x717648[_0x717648[_0x57f41f(0x35a)]=-0x1]=_0x57f41f(0x35a),_0x717648))(bt||{}),$=(_0x3b5308=>(_0x3b5308[_0x3b5308[_0x57f41f(0x229)]=0x0]=_0x57f41f(0x229),_0x3b5308[_0x3b5308[_0x57f41f(0x1a7)]=0x1]='UNIVER_DOC',_0x3b5308[_0x3b5308[_0x57f41f(0x197)]=0x2]=_0x57f41f(0x197),_0x3b5308[_0x3b5308['UNIVER_SLIDE']=0x3]=_0x57f41f(0x439),_0x3b5308[_0x3b5308[_0x57f41f(0x501)]=0x4]=_0x57f41f(0x501),_0x3b5308[_0x3b5308[_0x57f41f(0x35a)]=-0x1]='UNRECOGNIZED',_0x3b5308))($||{}),b=(_0x502554=>(_0x502554[_0x502554[_0x57f41f(0x400)]=0x0]='UNKNOWN_CMD',_0x502554[_0x502554['HELLO']=0x1]=_0x57f41f(0x528),_0x502554[_0x502554[_0x57f41f(0x54d)]=0x2]=_0x57f41f(0x54d),_0x502554[_0x502554[_0x57f41f(0x358)]=0x3]=_0x57f41f(0x358),_0x502554[_0x502554[_0x57f41f(0x349)]=0x4]=_0x57f41f(0x349),_0x502554[_0x502554[_0x57f41f(0x2fd)]=0x5]=_0x57f41f(0x2fd),_0x502554[_0x502554[_0x57f41f(0x2db)]=0x6]=_0x57f41f(0x2db),_0x502554[_0x502554[_0x57f41f(0x35a)]=-0x1]=_0x57f41f(0x35a),_0x502554))(b||{}),Ye=(_0x3a6cd4=>(_0x3a6cd4[_0x3a6cd4[_0x57f41f(0x22b)]=0x0]=_0x57f41f(0x22b),_0x3a6cd4[_0x3a6cd4['OK']=0x1]='OK',_0x3a6cd4[_0x3a6cd4[_0x57f41f(0x46d)]=0x2]=_0x57f41f(0x46d),_0x3a6cd4[_0x3a6cd4[_0x57f41f(0x35a)]=-0x1]=_0x57f41f(0x35a),_0x3a6cd4))(Ye||{}),Tt=(_0x4ac63f=>(_0x4ac63f[_0x4ac63f[_0x57f41f(0x4e9)]=0x0]=_0x57f41f(0x4e9),_0x4ac63f[_0x4ac63f['HttpImport']=0x1]=_0x57f41f(0x1eb),_0x4ac63f[_0x4ac63f[_0x57f41f(0x220)]=0x2]=_0x57f41f(0x220),_0x4ac63f[_0x4ac63f['UnitEmbedded']=0x3]=_0x57f41f(0x312),_0x4ac63f[_0x4ac63f[_0x57f41f(0x36b)]=0x4]=_0x57f41f(0x36b),_0x4ac63f[_0x4ac63f['UNRECOGNIZED']=-0x1]=_0x57f41f(0x35a),_0x4ac63f))(Tt||{});const L=_0x57f41f(0x216),rs={};function Rt(_0x3f9a31){const _0x557d0d=_0x57f41f;var _0x51dd35,_0x16d844,_0x3b6b65,_0x390da5;const _0x3405a5=_0x3f9a31[_0x557d0d(0x198)],_0x1359e1=JSON[_0x557d0d(0x1a1)](_0x3405a5);switch(_0x1359e1[_0x557d0d(0x466)]){case b[_0x557d0d(0x2fd)]:case b[_0x557d0d(0x528)]:{const _0x2c473e=_0x1359e1['infoRsp'];return{..._0x1359e1,'data':_0x2c473e,'cmd':_0x1359e1[_0x557d0d(0x466)]};}case b[_0x557d0d(0x54d)]:{const _0x26ea62=_0x1359e1[_0x557d0d(0x3a0)];return{..._0x1359e1,'data':_0x26ea62,'cmd':_0x1359e1['cmd']};}case b[_0x557d0d(0x2db)]:{const _0x37f251=_0x1359e1[_0x557d0d(0x1cb)];switch(_0x37f251[_0x557d0d(0x538)]){case _[_0x557d0d(0x48e)][_0x557d0d(0x4d2)]:return{..._0x1359e1,'data':{..._0x37f251,'data':(_0x51dd35=_0x37f251[_0x557d0d(0x391)])==null?void 0x0:_0x51dd35['cs']},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _['CollaborationEvent'][_0x557d0d(0x269)]:return{..._0x1359e1,'data':{..._0x37f251,'data':(_0x16d844=_0x37f251['csAckEvent'])==null?void 0x0:_0x16d844['cs']},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _['CollaborationEvent'][_0x557d0d(0x3af)]:return{..._0x1359e1,'data':{..._0x37f251,'data':(_0x3b6b65=_0x37f251[_0x557d0d(0x152)])==null?void 0x0:_0x3b6b65['cs']},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)]['CHANGESET_REJ']:return{..._0x1359e1,'data':{..._0x37f251,'data':(_0x390da5=_0x37f251[_0x557d0d(0x36d)])==null?void 0x0:_0x390da5['cs']},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)][_0x557d0d(0x153)]:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251[_0x557d0d(0x24a)]},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)]['USERS_ENTER']:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251[_0x557d0d(0x2aa)]},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)]['USERS_LEAVE']:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251['leaveEvent']},'cmd':_0x1359e1['cmd']};case _[_0x557d0d(0x48e)]['LIVESHARE_NEW_HOST']:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251[_0x557d0d(0x339)]},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)]['LIVESHARE_FETCH_OPERATIONS']:case _['CollaborationEvent'][_0x557d0d(0x28c)]:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251['liveShareOperation']},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)]['LIVESHARE_TERMINATE']:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251[_0x557d0d(0x339)]},'cmd':_0x1359e1['cmd']};case _[_0x557d0d(0x48e)][_0x557d0d(0x4a6)]:return{..._0x1359e1,'data':_0x37f251,'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)][_0x557d0d(0x3db)]:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251[_0x557d0d(0x343)]},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)][_0x557d0d(0x3d3)]:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251[_0x557d0d(0x38e)]},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)][_0x557d0d(0x283)]:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251['shouldCloseConn']},'cmd':_0x1359e1[_0x557d0d(0x466)]};default:return _0x1359e1;}}default:return _0x1359e1;}}function Ot(_0x1f50a9){const _0x4690c3=_0x57f41f;switch(_0x1f50a9[_0x4690c3(0x466)]){case b['HEARTBEAT']:case b[_0x4690c3(0x528)]:return JSON[_0x4690c3(0x3bc)]({'cmd':_0x1f50a9[_0x4690c3(0x466)],'routeKey':_0x1f50a9[_0x4690c3(0x1ff)]});case b[_0x4690c3(0x349)]:{let _0x480aee;switch(_0x1f50a9[_0x4690c3(0x198)][_0x4690c3(0x538)]){case _['CollaborationEvent'][_0x4690c3(0x153)]:{_0x480aee={'eventID':_[_0x4690c3(0x48e)][_0x4690c3(0x153)],'updateCursorEvent':_0x1f50a9[_0x4690c3(0x198)][_0x4690c3(0x198)]};break;}case _['CollaborationEvent'][_0x4690c3(0x4af)]:{_0x480aee={'eventID':_[_0x4690c3(0x48e)]['USERS_LEAVE'],'leaveEvent':_0x1f50a9[_0x4690c3(0x198)][_0x4690c3(0x198)]};break;}case _[_0x4690c3(0x48e)]['USERS_ENTER']:{_0x480aee={'eventID':_['CollaborationEvent'][_0x4690c3(0x226)],'joinEvent':_0x1f50a9[_0x4690c3(0x198)][_0x4690c3(0x198)]};break;}case _[_0x4690c3(0x48e)]['LIVESHARE_NEW_HOST']:{_0x480aee={'eventID':_[_0x4690c3(0x48e)][_0x4690c3(0x2fa)],'liveShareNewHost':_0x1f50a9['data']['data']};break;}case _[_0x4690c3(0x48e)][_0x4690c3(0x28c)]:{_0x480aee={'eventID':_[_0x4690c3(0x48e)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x1f50a9[_0x4690c3(0x198)][_0x4690c3(0x198)]};break;}case _['CollaborationEvent'][_0x4690c3(0x475)]:{_0x480aee={'eventID':_[_0x4690c3(0x48e)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x1f50a9[_0x4690c3(0x198)][_0x4690c3(0x198)]};break;}case _[_0x4690c3(0x48e)]['LIVESHARE_REQUEST_HOST']:{_0x480aee={'eventID':_[_0x4690c3(0x48e)][_0x4690c3(0x3fe)],'liveShareRequestHost':_0x1f50a9[_0x4690c3(0x198)]['data']};break;}case _[_0x4690c3(0x48e)][_0x4690c3(0x496)]:{_0x480aee={'eventID':_[_0x4690c3(0x48e)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x480aee={'eventID':_0x1f50a9[_0x4690c3(0x198)][_0x4690c3(0x538)]};}return JSON['stringify']({'cmd':_0x1f50a9[_0x4690c3(0x466)],'routeKey':_0x1f50a9['routeKey'],'collaMsg':_0x480aee});}case b[_0x4690c3(0x54d)]:return JSON[_0x4690c3(0x3bc)]({'cmd':_0x1f50a9['cmd'],'routeKey':_0x1f50a9[_0x4690c3(0x1ff)],'joinReq':_0x1f50a9[_0x4690c3(0x198)]});case b[_0x4690c3(0x358)]:return JSON['stringify']({'cmd':_0x1f50a9[_0x4690c3(0x466)],'routeKey':_0x1f50a9['routeKey'],'leaveReq':_0x1f50a9['data']});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var os=Object[_0x57f41f(0x522)],as=Object[_0x57f41f(0x191)],cs=(_0x209804,_0x2970ad,_0x4fc539,_0x3cac35)=>{const _0xd56578=_0x57f41f;for(var _0x14a213=_0x3cac35>0x1?void 0x0:_0x3cac35?as(_0x2970ad,_0x4fc539):_0x2970ad,_0x154e89=_0x209804[_0xd56578(0x460)]-0x1,_0x443938;_0x154e89>=0x0;_0x154e89--)(_0x443938=_0x209804[_0x154e89])&&(_0x14a213=(_0x3cac35?_0x443938(_0x2970ad,_0x4fc539,_0x14a213):_0x443938(_0x14a213))||_0x14a213);return _0x3cac35&&_0x14a213&&os(_0x2970ad,_0x4fc539,_0x14a213),_0x14a213;},ae=(_0x3471da,_0x5253f9)=>(_0x3f5f34,_0x32dc41)=>_0x5253f9(_0x3f5f34,_0x32dc41,_0x3471da);const Ke=a[_0x57f41f(0x193)](_0x57f41f(0x342));function ls(_0xe5faf5,_0x1db33e,_0x3caf10){const _0x441a27=_0x57f41f;return _0xe5faf5+'/'+_0x1db33e+_0x441a27(0x170)+_0x3caf10+_0x441a27(0x1ce);}exports[_0x57f41f(0x253)]=class extends a['Disposable']{constructor(_0x1a1973,_0x5b41b4,_0x1bde50,_0x1ebdc8,_0x34ca73){const _0x189b3c=_0x57f41f;super(),this[_0x189b3c(0x182)]=_0x1a1973,this[_0x189b3c(0x279)]=_0x5b41b4,this[_0x189b3c(0x172)]=_0x1bde50,this[_0x189b3c(0x181)]=_0x1ebdc8,this[_0x189b3c(0x154)]=_0x34ca73;}[_0x57f41f(0x4b5)](_0x42a1e5){const _0x225451=_0x57f41f,_0x29be4a=this['_ws'][_0x225451(0x4b5)](_0x42a1e5);if(!_0x29be4a)throw new Error(_0x225451(0x25e));const _0x3a819d=new a['DisposableCollection'](),_0x4b3baa=new v[(_0x225451(0x54c))]();_0x3a819d[_0x225451(0x150)](_0x29be4a['close$'][_0x225451(0x3ee)](_0x5db5a3=>_0x4b3baa[_0x225451(0x49c)](_0x5db5a3))),_0x3a819d[_0x225451(0x150)](a[_0x225451(0x1f9)](()=>_0x4b3baa[_0x225451(0x4a4)]()));const _0x57ee81=new v['Subject']();_0x3a819d[_0x225451(0x150)](_0x29be4a[_0x225451(0x1ae)]['subscribe'](_0x24846b=>_0x57ee81[_0x225451(0x49c)](_0x24846b))),_0x3a819d['add'](a[_0x225451(0x1f9)](()=>_0x57ee81[_0x225451(0x4a4)]()));const _0x53d073=new v['Subject']();_0x3a819d['add'](_0x29be4a[_0x225451(0x41c)][_0x225451(0x3ee)](_0x46862a=>{const _0x3052a8=_0x225451,_0x28ee1b=Rt(_0x46862a);_0x53d073[_0x3052a8(0x49c)](_0x28ee1b);})),_0x3a819d['add'](a[_0x225451(0x1f9)](()=>_0x53d073['complete']()));let _0x38c277;const _0x52bdf9=()=>{const _0x12654a=_0x225451;_0x57ee81['next'](new Event('connection\x20error')),_0x4b3baa['next'](new CloseEvent(_0x12654a(0x315))),_0x38c277[_0x12654a(0x316)]();};return _0x38c277={'memberID':'','close$':_0x4b3baa['asObservable'](),'error$':_0x57ee81[_0x225451(0x41e)](),'open$':_0x29be4a['open$'],'message$':_0x53d073[_0x225451(0x41e)](),'send':_0x45f8ba=>{const _0x1ac876=_0x225451;if(_0x45f8ba[_0x1ac876(0x466)]===b['INGEST']){if(_0x45f8ba['data'][_0x1ac876(0x538)]===_[_0x1ac876(0x48e)][_0x1ac876(0x389)]){this[_0x1ac876(0x4d6)](_0x38c277,_0x45f8ba[_0x1ac876(0x198)])[_0x1ac876(0x3f2)](_0x6e5f41=>{const _0x1951f6=_0x1ac876;this['_logService'][_0x1951f6(0x542)](_0x6e5f41),_0x52bdf9();});return;}if(_0x45f8ba['data'][_0x1ac876(0x538)]===_['CollaborationEvent'][_0x1ac876(0x27a)]){const _0x2ffe73=_0x45f8ba[_0x1ac876(0x198)];this[_0x1ac876(0x184)](_0x2ffe73)['then'](_0x39e24d=>{const _0x232eaa=_0x1ac876;_0x53d073['next']({'cmd':b[_0x232eaa(0x2db)],'code':Ye['OK'],'routeKey':_0x2ffe73[_0x232eaa(0x198)][_0x232eaa(0x36e)],'routeType':'','data':{'eventID':_[_0x232eaa(0x48e)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x39e24d}}});})[_0x1ac876(0x3f2)](_0x3e8cb1=>{const _0x1c3f9f=_0x1ac876;this[_0x1c3f9f(0x181)][_0x1c3f9f(0x542)](_0x3e8cb1),_0x52bdf9();});return;}}_0x29be4a[_0x1ac876(0x47b)](Ot(_0x45f8ba));},'close':()=>{const _0x43eda4=_0x225451;_0x29be4a[_0x43eda4(0x316)](),_0x3a819d[_0x43eda4(0x3a4)]();}},_0x38c277;}async[_0x57f41f(0x4d6)](_0x447ad9,_0x22eaf){const _0x243bc6=_0x57f41f;var _0x3112d7,_0x388698;const {unitType:_0x2dbf50,unitID:_0x23a727,changeset:_0x1c944d}=_0x22eaf[_0x243bc6(0x198)],_0x183d08={'unitID':_0x23a727,'memberID':_0x447ad9[_0x243bc6(0x20c)],'type':_0x2dbf50,'changeset':_[_0x243bc6(0x442)](_0x1c944d)},_0x54cff=this[_0x243bc6(0x172)][_0x243bc6(0x37f)](Ct),_0x5785de=this[_0x243bc6(0x172)][_0x243bc6(0x37f)](L),_0x257d09=ls((_0x388698=(_0x3112d7=_0x5785de==null?void 0x0:_0x5785de[_0x243bc6(0x274)])!=null?_0x3112d7:_0x54cff)!=null?_0x388698:is,_0x2dbf50,_0x23a727);try{await this['_http'][_0x243bc6(0x2a6)](_0x257d09,{'body':_0x183d08});}catch(_0x1cbbe0){throw this[_0x243bc6(0x181)][_0x243bc6(0x542)](_0x243bc6(0x161),'submit\x20changeset\x20error!'),_0x1cbbe0;}}async['_fetchMissChangesets'](_0x47b7d0){const _0x45840b=_0x57f41f,{unitID:_0x32300b,from:_0x1f961c,to:_0x33baed,unitType:_0x41aaee}=_0x47b7d0[_0x45840b(0x198)];return(await this[_0x45840b(0x154)][_0x45840b(0x455)]({'metadata':void 0x0},{'unitID':_0x32300b,'type':_0x41aaee,'from':_0x1f961c,'to':_0x33baed}))[_0x45840b(0x271)];}},exports['CollaborationSocketService']=cs([ae(0x0,a[_0x57f41f(0x1ec)](w[_0x57f41f(0x45d)])),ae(0x1,a['Inject'](w[_0x57f41f(0x43c)])),ae(0x2,a[_0x57f41f(0x435)]),ae(0x3,a[_0x57f41f(0x162)]),ae(0x4,_['ISnapshotServerService'])],exports[_0x57f41f(0x253)]);const hs=_0x57f41f(0x239);function _s(_0x144ff9){const _0x3e1ba0=_0x57f41f;return JSON[_0x3e1ba0(0x3bc)](_0x144ff9)[_0x3e1ba0(0x460)];}class Xe{constructor(){const _0x4a29b3=_0x57f41f;u(this,'_commentUpdate$',new v[(_0x4a29b3(0x54c))]()),u(this,'commentUpdate$',this['_commentUpdate$']['asObservable']());}[_0x57f41f(0x4bf)](_0x392969){const _0x372b5e=_0x57f41f;this[_0x372b5e(0x1d4)]['next'](_0x392969);}}var us=Object[_0x57f41f(0x522)],ds=Object[_0x57f41f(0x191)],Ss=(_0x472ff5,_0x241d57,_0x318b3c,_0x473692)=>{for(var _0x2ee130=_0x473692>0x1?void 0x0:_0x473692?ds(_0x241d57,_0x318b3c):_0x241d57,_0x578af2=_0x472ff5['length']-0x1,_0x2f9139;_0x578af2>=0x0;_0x578af2--)(_0x2f9139=_0x472ff5[_0x578af2])&&(_0x2ee130=(_0x473692?_0x2f9139(_0x241d57,_0x318b3c,_0x2ee130):_0x2f9139(_0x2ee130))||_0x2ee130);return _0x473692&&_0x2ee130&&us(_0x241d57,_0x318b3c,_0x2ee130),_0x2ee130;},tt=(_0x42585d,_0x5260a4)=>(_0x208ac3,_0x274377)=>_0x5260a4(_0x208ac3,_0x274377,_0x42585d);let q=class extends a[_0x57f41f(0x1b5)]{constructor(_0x3574d9,_0xf16ca2){const _0x489d70=_0x57f41f;super(),u(this,_0x489d70(0x2e9),new Map()),(this[_0x489d70(0x131)]=_0x3574d9,this['_userManagerService']=_0xf16ca2,this[_0x489d70(0x1e2)](a[_0x489d70(0x1f9)](v[_0x489d70(0x3d0)](this[_0x489d70(0x131)][_0x489d70(0x41f)](a[_0x489d70(0x4f6)][_0x489d70(0x197)])[_0x489d70(0x4bb)](E[_0x489d70(0x366)](_0x30a245=>_0x30a245[_0x489d70(0x263)]())),this['_univerInstanceService'][_0x489d70(0x41f)](a['UniverInstanceType'][_0x489d70(0x1a7)])[_0x489d70(0x4bb)](E[_0x489d70(0x366)](_0x15d5c5=>_0x15d5c5[_0x489d70(0x263)]())),this[_0x489d70(0x131)][_0x489d70(0x41f)](a[_0x489d70(0x4f6)][_0x489d70(0x439)])[_0x489d70(0x4bb)](E[_0x489d70(0x366)](_0x5b16d1=>_0x5b16d1[_0x489d70(0x263)]())))[_0x489d70(0x3ee)](_0x33e2ee=>this['_removeRoom'](_0x33e2ee)))));}['setCurrentUser'](_0x5258f7){const _0x433b95=_0x57f41f;this[_0x433b95(0x443)][_0x433b95(0x44e)](_0x5258f7);}[_0x57f41f(0x45c)](){const _0x4a24dd=_0x57f41f;return this[_0x4a24dd(0x443)][_0x4a24dd(0x45c)]();}[_0x57f41f(0x14b)](_0x52776a,_0x4f7658){const _0x64a779=_0x57f41f;let _0x4e98eb=this[_0x64a779(0x2e9)][_0x64a779(0x31f)](_0x52776a);_0x4e98eb||(_0x4e98eb=new vs(),this[_0x64a779(0x2e9)]['set'](_0x52776a,_0x4e98eb)),_0x4e98eb[_0x64a779(0x14b)](_0x4f7658);}[_0x57f41f(0x50e)](_0x5245eb,_0x2869b7){const _0x2cc452=_0x57f41f,_0x43a0a6=this[_0x2cc452(0x2e9)][_0x2cc452(0x31f)](_0x5245eb);_0x43a0a6&&_0x43a0a6[_0x2cc452(0x50e)](_0x2869b7);}[_0x57f41f(0x2f3)](_0x15fcf4){const _0x57bdd9=_0x57f41f;return this[_0x57bdd9(0x2e9)][_0x57bdd9(0x31f)](_0x15fcf4);}['getMember'](_0x15cd24,_0x497b89){const _0x517f44=_0x57f41f,_0x217fb2=this[_0x517f44(0x2e9)][_0x517f44(0x31f)](_0x15cd24);if(_0x217fb2)return _0x217fb2[_0x517f44(0x487)](_0x497b89);}[_0x57f41f(0x27b)](_0x95b1d4){const _0x511605=_0x57f41f,_0x46b621=this[_0x511605(0x2e9)][_0x511605(0x31f)](_0x95b1d4);_0x46b621&&(_0x46b621[_0x511605(0x3a4)](),this[_0x511605(0x2e9)][_0x511605(0x3e0)](_0x95b1d4));}[_0x57f41f(0x3a4)](){const _0xa04846=_0x57f41f;this['_roomMembers'][_0xa04846(0x50c)](_0x1082d0=>_0x1082d0[_0xa04846(0x3a4)]()),this[_0xa04846(0x2e9)][_0xa04846(0x159)]();}};q=Ss([tt(0x0,a[_0x57f41f(0x546)]),tt(0x1,a[_0x57f41f(0x1ec)](a['UserManagerService']))],q);class vs extends a[_0x57f41f(0x1b5)]{constructor(){const _0x247e68=_0x57f41f;super(...arguments),u(this,_0x247e68(0x550),new Map());}[_0x57f41f(0x3a4)](){this['_members']['clear']();}['updateMember'](_0x305218){const _0x18d63c=_0x57f41f;this[_0x18d63c(0x550)][_0x18d63c(0x20b)](_0x305218['memberID'],_0x305218);}[_0x57f41f(0x50e)](_0x1ae979){const _0x56d881=_0x57f41f;this[_0x56d881(0x550)][_0x56d881(0x3e0)](_0x1ae979);}['getMember'](_0x37dc44){const _0x175b03=_0x57f41f;return this['_members'][_0x175b03(0x31f)](_0x37dc44);}}var gs=Object['defineProperty'],ms=Object['getOwnPropertyDescriptor'],fs=(_0x32ef93,_0x442a73,_0x885377,_0x59a56e)=>{const _0x4eb2d9=_0x57f41f;for(var _0x4610da=_0x59a56e>0x1?void 0x0:_0x59a56e?ms(_0x442a73,_0x885377):_0x442a73,_0x4434d=_0x32ef93[_0x4eb2d9(0x460)]-0x1,_0x417276;_0x4434d>=0x0;_0x4434d--)(_0x417276=_0x32ef93[_0x4434d])&&(_0x4610da=(_0x59a56e?_0x417276(_0x442a73,_0x885377,_0x4610da):_0x417276(_0x4610da))||_0x4610da);return _0x59a56e&&_0x4610da&&gs(_0x442a73,_0x885377,_0x4610da),_0x4610da;},V=(_0x11542a,_0x2791d0)=>(_0x1ede2d,_0x319206)=>_0x2791d0(_0x1ede2d,_0x319206,_0x11542a),H=(_0x1900b3=>(_0x1900b3[_0x1900b3[_0x57f41f(0x4e4)]=0x0]=_0x57f41f(0x4e4),_0x1900b3[_0x1900b3[_0x57f41f(0x489)]=0x1]=_0x57f41f(0x489),_0x1900b3[_0x1900b3[_0x57f41f(0x2d2)]=0x2]=_0x57f41f(0x2d2),_0x1900b3[_0x1900b3[_0x57f41f(0x436)]=0x3]=_0x57f41f(0x436),_0x1900b3))(H||{});exports[_0x57f41f(0x2e3)]=class extends a[_0x57f41f(0x1c5)]{constructor(_0x34c8d0,_0x476103,_0x2dfbd4,_0x50d1fe,_0x4e5498,_0x2b77de,_0x61e447,_0x51f41,_0x5cdbcb,_0x34e36b){const _0x1bca0c=_0x57f41f;super(),u(this,_0x1bca0c(0x3cc),new v['BehaviorSubject'](0x0)),u(this,_0x1bca0c(0x1bd),this['_sessionStatus$'][_0x1bca0c(0x41e)]()),u(this,_0x1bca0c(0x2f5),new v['Subject']()),u(this,_0x1bca0c(0x438),this['_event$'][_0x1bca0c(0x41e)]()),u(this,_0x1bca0c(0x364)),u(this,_0x1bca0c(0x46c)),u(this,_0x1bca0c(0x235)),u(this,_0x1bca0c(0x50d),!0x1),u(this,'_telemetryInfo',null),(this['_unitID']=_0x34c8d0,this['_logService']=_0x2dfbd4,this[_0x1bca0c(0x270)]=_0x50d1fe,this[_0x1bca0c(0x4b9)]=_0x4e5498,this[_0x1bca0c(0x172)]=_0x2b77de,this['_localeService']=_0x61e447,this['_memberService']=_0x51f41,this[_0x1bca0c(0x2bb)]=_0x5cdbcb,this[_0x1bca0c(0x4cd)]=_0x34e36b,this[_0x1bca0c(0x50d)]=!!this['_telemetryService'],_0x476103[_0x1bca0c(0x4bb)](v[_0x1bca0c(0x12b)](this[_0x1bca0c(0x43a)]))[_0x1bca0c(0x3ee)](_0x57a07e=>{const _0x328238=_0x1bca0c;var _0x29c9eb;typeof _0x57a07e>'u'||(this[_0x328238(0x364)]=_0x57a07e,_0x57a07e?(this[_0x328238(0x26e)](_0x57a07e),this[_0x328238(0x46c)]=_0x57a07e[_0x328238(0x41c)][_0x328238(0x3ee)](_0x29d5e5=>{const _0x340861=_0x328238;_0x29d5e5[_0x340861(0x1ff)]===this['_unitID']&&this[_0x340861(0x1ba)](_0x29d5e5);})):(this[_0x328238(0x42e)](),this[_0x328238(0x3cc)]['next'](0x2),(_0x29c9eb=this['_socketMessageSubscription'])==null||_0x29c9eb[_0x328238(0x373)](),this[_0x328238(0x46c)]=null));}),this[_0x1bca0c(0x1e2)](this['_beforeCloseService'][_0x1bca0c(0x4b8)](()=>{const _0x5bbd03=_0x1bca0c;var _0x482fbc;(_0x482fbc=this[_0x5bbd03(0x364)])==null||_0x482fbc[_0x5bbd03(0x47b)]({'cmd':b[_0x5bbd03(0x358)],'data':{'roomID':this[_0x5bbd03(0x28e)]}});})));}get['sessionStatus'](){const _0x5395cf=_0x57f41f;return this[_0x5395cf(0x3cc)][_0x5395cf(0x3a2)]();}[_0x57f41f(0x145)](){const _0x12ec13=_0x57f41f;var _0x1479d1,_0x96db48;return(_0x96db48=(_0x1479d1=this['_socket'])==null?void 0x0:_0x1479d1[_0x12ec13(0x20c)])!=null?_0x96db48:null;}[_0x57f41f(0x3a4)](){const _0x1a55c9=_0x57f41f;super[_0x1a55c9(0x3a4)](),this[_0x1a55c9(0x43a)]['next'](),this[_0x1a55c9(0x43a)][_0x1a55c9(0x4a4)]();}['close'](){const _0x1140bd=_0x57f41f;var _0x1dcbe1,_0x277598;this['_throwTelemetryCollaborationNewChangeset'](),(_0x1dcbe1=this['_socket'])==null||_0x1dcbe1[_0x1140bd(0x47b)]({'cmd':b[_0x1140bd(0x358)],'data':{'roomID':this[_0x1140bd(0x28e)]}}),(_0x277598=this[_0x1140bd(0x364)])==null||_0x277598[_0x1140bd(0x316)](),this['_event$']['complete'](),this['_sessionStatus$']['complete'](),this[_0x1140bd(0x3a4)]();}[_0x57f41f(0x1ba)](_0x434c69){const _0x535386=_0x57f41f;_0x434c69['cmd']===b['JOIN']?this[_0x535386(0x2fc)](_0x434c69):_0x434c69['cmd']===b[_0x535386(0x2db)]&&this[_0x535386(0x4fe)](_0x434c69);}['_joinRoom'](_0x1d6db1){const _0x22283c=_0x57f41f;this[_0x22283c(0x3cc)][_0x22283c(0x49c)](0x1),_0x1d6db1[_0x22283c(0x47b)]({'cmd':b[_0x22283c(0x54d)],'routeKey':this[_0x22283c(0x28e)],'routeType':'','data':{'rooms':[{'roomID':this[_0x22283c(0x28e)]}]}});}[_0x57f41f(0x2fc)](_0x1ec27d){const _0xeccb6d=_0x57f41f;var _0x2e732b;if(_0x1ec27d[_0xeccb6d(0x399)]===Ye[_0xeccb6d(0x46d)]){this['_messageService'][_0xeccb6d(0x375)]({'type':X[_0xeccb6d(0x1cf)][_0xeccb6d(0x1b4)],'content':this['_localeService']['t'](_0xeccb6d(0x437))}),this[_0xeccb6d(0x3cc)]['next'](0x2);return;}this['_sessionStatus$']['next'](0x3);const _0x39151d=(_0x2e732b=_0x1ec27d[_0xeccb6d(0x198)][_0xeccb6d(0x1c4)][this[_0xeccb6d(0x28e)]])==null?void 0x0:_0x2e732b[_0xeccb6d(0x163)];_0x39151d&&_0x39151d[_0xeccb6d(0x50c)](_0x4a67d2=>this['_memberService']['updateMember'](this[_0xeccb6d(0x28e)],_0x4a67d2));}[_0x57f41f(0x4fe)](_0x35047f){const _0x2c0c0a=_0x57f41f;try{const _0x126f22=_0x35047f[_0x2c0c0a(0x198)];switch(_0x126f22['eventID']){case _['CollaborationEvent'][_0x2c0c0a(0x226)]:this['_onUserJoin'](_0x126f22),this[_0x2c0c0a(0x2f5)]['next'](_0x126f22);break;case _[_0x2c0c0a(0x48e)][_0x2c0c0a(0x4af)]:this[_0x2c0c0a(0x2a3)](_0x126f22),this['_event$'][_0x2c0c0a(0x49c)](_0x126f22);break;case _['CollaborationEvent'][_0x2c0c0a(0x269)]:this[_0x2c0c0a(0x4c5)](),this[_0x2c0c0a(0x473)](),this[_0x2c0c0a(0x2f5)][_0x2c0c0a(0x49c)](_0x126f22);break;case _[_0x2c0c0a(0x48e)][_0x2c0c0a(0x4a6)]:this[_0x2c0c0a(0x181)]['error'](_0x2c0c0a(0x1fa)+JSON[_0x2c0c0a(0x3bc)](_0x126f22)),this[_0x2c0c0a(0x2f5)][_0x2c0c0a(0x49c)](_0x126f22);break;case _[_0x2c0c0a(0x48e)][_0x2c0c0a(0x3db)]:this[_0x2c0c0a(0x2bb)][_0x2c0c0a(0x4bf)](_0x126f22[_0x2c0c0a(0x198)]),this[_0x2c0c0a(0x2f5)][_0x2c0c0a(0x49c)](_0x126f22);break;default:this[_0x2c0c0a(0x2f5)][_0x2c0c0a(0x49c)](_0x126f22);}}catch(_0x53ac1d){this[_0x2c0c0a(0x181)][_0x2c0c0a(0x542)](_0x53ac1d,_0x35047f);}}[_0x57f41f(0x2b8)](_0x3616c4){const _0x2d1c65=_0x57f41f;this[_0x2d1c65(0x384)][_0x2d1c65(0x14b)](this['_unitID'],_0x3616c4[_0x2d1c65(0x198)]);}[_0x57f41f(0x2a3)](_0xdd64d9){const _0x1f7bb9=_0x57f41f;this[_0x1f7bb9(0x384)][_0x1f7bb9(0x50e)](this[_0x1f7bb9(0x28e)],_0xdd64d9[_0x1f7bb9(0x198)][_0x1f7bb9(0x20c)]);}async[_0x57f41f(0x47b)](_0x2f9b8b,_0x5408a8){const _0x560d89=_0x57f41f;if(this[_0x560d89(0x4a9)]!==0x3||!this['_socket'])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x2f9b8b['eventID']===_[_0x560d89(0x48e)][_0x560d89(0x389)]&&(this[_0x560d89(0x4de)](),this[_0x560d89(0x457)](_0x2f9b8b)),this['_socket'][_0x560d89(0x47b)]({'cmd':b[_0x560d89(0x349)],'routeKey':_0x5408a8,'routeType':'','data':_0x2f9b8b});}catch(_0x349269){this[_0x560d89(0x181)][_0x560d89(0x542)](_0x349269);}}['_scheduleCollaborationTimeoutTimer'](){const _0x524bc8=_0x57f41f;var _0x3518cd;this['_collaborationTimeoutTimer']=window[_0x524bc8(0x540)](()=>{const _0x27fbd3=_0x524bc8;this[_0x27fbd3(0x235)]=null,this[_0x27fbd3(0x4b9)][_0x27fbd3(0x375)]({'type':X[_0x27fbd3(0x1cf)][_0x27fbd3(0x411)],'content':this['_localeService']['t'](_0x27fbd3(0x468))});},(_0x3518cd=this[_0x524bc8(0x172)][_0x524bc8(0x37f)](Ge))!=null?_0x3518cd:ft);}['_clearCollaborationTimeoutTimer'](){const _0x2c622a=_0x57f41f;this[_0x2c622a(0x235)]&&(clearTimeout(this[_0x2c622a(0x235)]),this[_0x2c622a(0x235)]=null);}[_0x57f41f(0x457)](_0x592659){const _0x1e3c99=_0x57f41f;if(!this[_0x1e3c99(0x50d)])return;const {data:_0x5eeab8}=_0x592659,{unitID:_0x20b539,changeset:_0x43f894}=_0x5eeab8,{mutations:_0x64aaf,type:_0x5db3db}=_0x43f894;this[_0x1e3c99(0x1be)]={'unitId':_0x20b539,'type':_0x5db3db,'startTime':performance[_0x1e3c99(0x4fb)](),'stopTime':0x0,'duration':0x0,'size':_s(_0x64aaf)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x5397ba=_0x57f41f;if(this[_0x5397ba(0x50d)]){if(!this[_0x5397ba(0x1be)]){this[_0x5397ba(0x181)][_0x5397ba(0x542)](_0x5397ba(0x161),'telemetry\x20info\x20is\x20not\x20initialized');return;}this['_telemetryInfo'][_0x5397ba(0x3d4)]=performance[_0x5397ba(0x4fb)](),this['_telemetryInfo']['duration']=this[_0x5397ba(0x1be)][_0x5397ba(0x3d4)]-this[_0x5397ba(0x1be)][_0x5397ba(0x192)],this[_0x5397ba(0x4cd)][_0x5397ba(0x4c1)](hs,this[_0x5397ba(0x1be)]),this[_0x5397ba(0x1be)]=null;}}[_0x57f41f(0x42e)](){const _0x3dbf18=_0x57f41f;this[_0x3dbf18(0x1be)]=null;}},exports[_0x57f41f(0x2e3)]=fs([V(0x2,a[_0x57f41f(0x162)]),V(0x3,A[_0x57f41f(0x3e8)]),V(0x4,A['IMessageService']),V(0x5,a['IConfigService']),V(0x6,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x405)])),V(0x7,a['Inject'](q)),V(0x8,a['Inject'](Xe)),V(0x9,a[_0x57f41f(0x177)](Yt['ITelemetryService']))],exports[_0x57f41f(0x2e3)]);var Is=Object[_0x57f41f(0x522)],ps=Object[_0x57f41f(0x191)],Cs=(_0x1aef6e,_0x58231e,_0x55d7fb,_0x4701d9)=>{for(var _0x59c6e7=_0x4701d9>0x1?void 0x0:_0x4701d9?ps(_0x58231e,_0x55d7fb):_0x58231e,_0x22e2b6=_0x1aef6e['length']-0x1,_0x25baf7;_0x22e2b6>=0x0;_0x22e2b6--)(_0x25baf7=_0x1aef6e[_0x22e2b6])&&(_0x59c6e7=(_0x4701d9?_0x25baf7(_0x58231e,_0x55d7fb,_0x59c6e7):_0x25baf7(_0x59c6e7))||_0x59c6e7);return _0x4701d9&&_0x59c6e7&&Is(_0x58231e,_0x55d7fb,_0x59c6e7),_0x59c6e7;},Z=(_0x1e6907,_0x110ec2)=>(_0x9d29a7,_0x4dbe38)=>_0x110ec2(_0x9d29a7,_0x4dbe38,_0x1e6907);exports[_0x57f41f(0x19b)]=class extends a[_0x57f41f(0x1b5)]{constructor(_0x4a0f85,_0x219805,_0x55d154,_0x4b41ad,_0x5958a7,_0x294a69){const _0x3379ab=_0x57f41f;super(),u(this,'_socket$',new v[(_0x3379ab(0x3ab))](void 0x0)),u(this,'socket$',this[_0x3379ab(0x321)][_0x3379ab(0x41e)]()),u(this,_0x3379ab(0x47f),null),u(this,_0x3379ab(0x24d),new Map()),u(this,'_status$',new v[(_0x3379ab(0x3ab))](H[_0x3379ab(0x4e4)])),u(this,_0x3379ab(0x26c),this[_0x3379ab(0x524)][_0x3379ab(0x41e)]()),u(this,'_socketReady',!0x1),u(this,_0x3379ab(0x2d5)),u(this,'_retryCount',0x0),u(this,_0x3379ab(0x2ac)),u(this,_0x3379ab(0x4b6)),(this[_0x3379ab(0x331)]=_0x4a0f85,this[_0x3379ab(0x3c6)]=_0x219805,this[_0x3379ab(0x4b9)]=_0x55d154,this[_0x3379ab(0x181)]=_0x4b41ad,this['_configService']=_0x5958a7,this[_0x3379ab(0x3c1)]=_0x294a69,this[_0x3379ab(0x3e5)]());}get[_0x57f41f(0x364)](){const _0xf59f7b=_0x57f41f;return this[_0xf59f7b(0x321)]['getValue']();}[_0x57f41f(0x3e5)](){const _0x13eb0d=_0x57f41f;this['_listenToOfflineEvent'](),this[_0x13eb0d(0x12e)]();}['dispose'](){const _0x5a458a=_0x57f41f;super[_0x5a458a(0x3a4)](),this[_0x5a458a(0x24d)]['forEach'](_0x37a94d=>_0x37a94d[_0x5a458a(0x3a4)]()),this[_0x5a458a(0x24d)][_0x5a458a(0x159)](),this[_0x5a458a(0x524)][_0x5a458a(0x4a4)]();}async[_0x57f41f(0x2b6)](_0x23f22f){const _0x194040=_0x57f41f;if(this['_sessions'][_0x194040(0x2c9)](_0x23f22f))return this['_sessions'][_0x194040(0x31f)](_0x23f22f);this[_0x194040(0x2f4)]();const _0x439387=this[_0x194040(0x331)][_0x194040(0x4eb)](exports['CollaborationSession'],_0x23f22f,this['_socket$']['asObservable']());return this[_0x194040(0x24d)]['set'](_0x23f22f,_0x439387),_0x439387;}[_0x57f41f(0x1a2)](_0x4a2864){const _0x23d4d0=_0x57f41f;var _0x47bb9c;const _0x43980d=this[_0x23d4d0(0x24d)][_0x23d4d0(0x31f)](_0x4a2864);_0x43980d&&(this[_0x23d4d0(0x24d)][_0x23d4d0(0x3e0)](_0x4a2864),_0x43980d['close']()),this[_0x23d4d0(0x24d)]['size']||(_0x47bb9c=this[_0x23d4d0(0x364)])==null||_0x47bb9c[_0x23d4d0(0x316)]();}[_0x57f41f(0x17f)](){const _0x30b1c4=_0x57f41f;this[_0x30b1c4(0x1dc)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x30b1c4(0x2d5)]),this['_retryConnectingTimer']=null),this[_0x30b1c4(0x48b)]();}[_0x57f41f(0x167)](){const _0x536ab3=_0x57f41f;var _0x2064ad,_0x3c9837;const _0x525f6d=this[_0x536ab3(0x172)][_0x536ab3(0x37f)](gt),_0x3bc581=this[_0x536ab3(0x172)][_0x536ab3(0x37f)](L),_0x43e75c=(_0x3c9837=(_0x2064ad=_0x3bc581==null?void 0x0:_0x3bc581[_0x536ab3(0x537)])!=null?_0x2064ad:_0x525f6d)!=null?_0x3c9837:Zt,_0x573925=this['_socketService'][_0x536ab3(0x4b5)](_0x43e75c);return this[_0x536ab3(0x47f)]=_0x573925,_0x573925;}[_0x57f41f(0x2f4)](){const _0x1cc2ea=_0x57f41f;var _0x896124,_0x15c010;try{const _0x5da404=(_0x15c010=(_0x896124=this['_socket'])!=null?_0x896124:this[_0x1cc2ea(0x47f)])!=null?_0x15c010:this[_0x1cc2ea(0x167)]();if(_0x5da404){const _0x1e41be=_0x5da404[_0x1cc2ea(0x47b)];_0x5da404[_0x1cc2ea(0x47b)]=_0x349014=>(this['_rescheduleHeartbeat'](),_0x1e41be[_0x1cc2ea(0x254)](_0x5da404,[_0x349014])),_0x5da404[_0x1cc2ea(0x41c)]['subscribe'](_0x37057b=>this[_0x1cc2ea(0x31d)](_0x5da404,_0x37057b)),_0x5da404['error$']['pipe'](E[_0x1cc2ea(0x241)](0x1))[_0x1cc2ea(0x3ee)](_0x3827d8=>this['_logService']['error'](_0x1cc2ea(0x37d),_0x3827d8)),_0x5da404['open$']['pipe'](E['take'](0x1))[_0x1cc2ea(0x3ee)](()=>{const _0x48c18e=_0x1cc2ea;this[_0x48c18e(0x30a)](_0x5da404);}),_0x5da404[_0x1cc2ea(0x3b6)][_0x1cc2ea(0x4bb)](E[_0x1cc2ea(0x241)](0x1))[_0x1cc2ea(0x3ee)](_0x41b500=>{const _0x215527=_0x1cc2ea;this[_0x215527(0x181)]['debug'](_0x215527(0x187),_0x215527(0x381),_0x41b500),this[_0x215527(0x2dc)]();});}}catch(_0x2b8f81){this[_0x1cc2ea(0x181)]['error'](_0x2b8f81),this[_0x1cc2ea(0x2dc)]();}}[_0x57f41f(0x30a)](_0x124918){const _0xae7feb=_0x57f41f;this[_0xae7feb(0x181)][_0xae7feb(0x2e5)]('[CollaborationSessionService]',_0xae7feb(0x158)),_0x124918[_0xae7feb(0x47b)]({'cmd':b[_0xae7feb(0x528)]}),this[_0xae7feb(0x3bb)]();}['_listenToOfflineEvent'](){const _0x1f9919=_0x57f41f;window['addEventListener'](_0x1f9919(0x341),()=>this[_0x1f9919(0x3cb)]());}[_0x57f41f(0x3cb)](){const _0x28066e=_0x57f41f;this[_0x28066e(0x2df)]=!0x1,this[_0x28066e(0x47f)]=null,this[_0x28066e(0x524)]['next'](H[_0x28066e(0x2d2)]),this[_0x28066e(0x321)][_0x28066e(0x49c)](null),this[_0x28066e(0x2c7)](),this[_0x28066e(0x259)]();}[_0x57f41f(0x2dc)](){const _0x3d61c9=_0x57f41f;var _0x4fdaa8;this[_0x3d61c9(0x3cb)](),this[_0x3d61c9(0x1dc)]<((_0x4fdaa8=this[_0x3d61c9(0x172)][_0x3d61c9(0x37f)](It))!=null?_0x4fdaa8:ts)?(this['_messageService']['show']({'key':_0x3d61c9(0x472),'type':X[_0x3d61c9(0x1cf)][_0x3d61c9(0x1b4)],'content':this[_0x3d61c9(0x3c6)]['t'](_0x3d61c9(0x319))}),this[_0x3d61c9(0x48b)]()):this[_0x3d61c9(0x4b9)][_0x3d61c9(0x375)]({'key':_0x3d61c9(0x472),'type':X[_0x3d61c9(0x1cf)]['Error'],'content':this[_0x3d61c9(0x3c6)]['t']('session.connection-failed')});}[_0x57f41f(0x12e)](){const _0x5af779=_0x57f41f,_0x3f0118=()=>{const _0x584d7f=_0x1fa7;this[_0x584d7f(0x364)]||this[_0x584d7f(0x17f)]();},_0x250435=()=>{const _0x414d45=_0x1fa7;this[_0x414d45(0x364)]||document[_0x414d45(0x3df)]==='hidden'||this[_0x414d45(0x17f)]();};window[_0x5af779(0x37b)]('online',_0x3f0118),document[_0x5af779(0x37b)]('visibilitychange',_0x250435);}['_tryReconnect'](){const _0x52dc09=_0x57f41f;var _0x2ae79c;const _0x26455e=this[_0x52dc09(0x1dc)],_0x4b0db8=this[_0x52dc09(0x172)][_0x52dc09(0x37f)](L),_0x40638c=_0x26455e===0x0?0x0:((_0x2ae79c=_0x4b0db8==null?void 0x0:_0x4b0db8['retryConnectingInterval'])!=null?_0x2ae79c:es)*0x2**_0x26455e;this[_0x52dc09(0x2d5)]=window[_0x52dc09(0x540)](()=>{const _0x24df14=_0x52dc09;clearTimeout(this['_retryConnectingTimer']),this[_0x24df14(0x2d5)]=null,this[_0x24df14(0x2f4)]();},_0x40638c),this[_0x52dc09(0x1dc)]+=0x1;}[_0x57f41f(0x31d)](_0x1b5fae,_0x468b45){const _0x4fb9c7=_0x57f41f,{cmd:_0x4c7899}=_0x468b45;_0x4c7899===b[_0x4fb9c7(0x528)]&&!this[_0x4fb9c7(0x2df)]&&(_0x1b5fae['memberID']=_0x468b45[_0x4fb9c7(0x198)]['memberID'],this[_0x4fb9c7(0x321)][_0x4fb9c7(0x49c)](_0x1b5fae),this[_0x4fb9c7(0x524)]['next'](H[_0x4fb9c7(0x436)]),this[_0x4fb9c7(0x2df)]=!0x0,this[_0x4fb9c7(0x47f)]=null),_0x4c7899===b[_0x4fb9c7(0x2fd)]&&this[_0x4fb9c7(0x2c7)](),this['_rescheduleHeartbeat']();}[_0x57f41f(0x3bb)](){const _0x1aea50=_0x57f41f;var _0x26b54a;this['_clearHeartbeatTimer'](),this[_0x1aea50(0x2ac)]=window[_0x1aea50(0x540)](()=>this[_0x1aea50(0x1e6)](),(_0x26b54a=this[_0x1aea50(0x172)][_0x1aea50(0x37f)](mt))!=null?_0x26b54a:Qt);}[_0x57f41f(0x1e6)](){const _0x113255=_0x57f41f;this[_0x113255(0x364)][_0x113255(0x47b)]({'cmd':b[_0x113255(0x2fd)]}),this[_0x113255(0x22e)]();}[_0x57f41f(0x22e)](){const _0xce5af6=_0x57f41f;var _0x2efbef;this[_0xce5af6(0x4b6)]=window['setTimeout'](()=>this[_0xce5af6(0x2dc)](),(_0x2efbef=this[_0xce5af6(0x172)][_0xce5af6(0x37f)](Ge))!=null?_0x2efbef:ft);}[_0x57f41f(0x259)](){const _0xbbae0e=_0x57f41f;this[_0xbbae0e(0x2ac)]!=null&&(clearTimeout(this[_0xbbae0e(0x2ac)]),this['_sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](){const _0x565105=_0x57f41f;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x565105(0x4b6)]),this[_0x565105(0x4b6)]=null);}},exports[_0x57f41f(0x19b)]=Cs([Z(0x0,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),Z(0x1,a['Inject'](a[_0x57f41f(0x405)])),Z(0x2,A[_0x57f41f(0x34b)]),Z(0x3,a['ILogService']),Z(0x4,a[_0x57f41f(0x435)]),Z(0x5,Ke)],exports['CollaborationSessionService']);var R=[];for(var Ue=0x0;Ue<0x100;++Ue)R['push']((Ue+0x100)[_0x57f41f(0x258)](0x10)[_0x57f41f(0x423)](0x1));function Es(_0x385abc,_0x5076c9=0x0){const _0x353890=_0x57f41f;return(R[_0x385abc[_0x5076c9+0x0]]+R[_0x385abc[_0x5076c9+0x1]]+R[_0x385abc[_0x5076c9+0x2]]+R[_0x385abc[_0x5076c9+0x3]]+'-'+R[_0x385abc[_0x5076c9+0x4]]+R[_0x385abc[_0x5076c9+0x5]]+'-'+R[_0x385abc[_0x5076c9+0x6]]+R[_0x385abc[_0x5076c9+0x7]]+'-'+R[_0x385abc[_0x5076c9+0x8]]+R[_0x385abc[_0x5076c9+0x9]]+'-'+R[_0x385abc[_0x5076c9+0xa]]+R[_0x385abc[_0x5076c9+0xb]]+R[_0x385abc[_0x5076c9+0xc]]+R[_0x385abc[_0x5076c9+0xd]]+R[_0x385abc[_0x5076c9+0xe]]+R[_0x385abc[_0x5076c9+0xf]])[_0x353890(0x322)]();}var Se,bs=new Uint8Array(0x10);function Ts(){const _0x4e6a22=_0x57f41f;if(!Se&&(Se=typeof crypto<'u'&&crypto[_0x4e6a22(0x417)]&&crypto[_0x4e6a22(0x417)][_0x4e6a22(0x136)](crypto),!Se))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return Se(bs);}var Rs=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x57f41f(0x1df)][_0x57f41f(0x136)](crypto);const st={'randomUUID':Rs};function Os(_0x1be5a0,_0x37f3ef,_0x1ec38e){const _0x36122e=_0x57f41f;if(st['randomUUID']&&!_0x37f3ef&&!_0x1be5a0)return st[_0x36122e(0x1df)]();_0x1be5a0=_0x1be5a0||{};var _0xf4274d=_0x1be5a0[_0x36122e(0x2f7)]||(_0x1be5a0[_0x36122e(0x510)]||Ts)();return _0xf4274d[0x6]=_0xf4274d[0x6]&0xf|0x40,_0xf4274d[0x8]=_0xf4274d[0x8]&0x3f|0x80,Es(_0xf4274d);}var Ds=Object[_0x57f41f(0x522)],ys=Object[_0x57f41f(0x191)],Us=(_0x327424,_0x19873a,_0x185657,_0x93d802)=>{const _0x31e35d=_0x57f41f;for(var _0x539224=_0x93d802>0x1?void 0x0:_0x93d802?ys(_0x19873a,_0x185657):_0x19873a,_0x301cbb=_0x327424[_0x31e35d(0x460)]-0x1,_0x839ba1;_0x301cbb>=0x0;_0x301cbb--)(_0x839ba1=_0x327424[_0x301cbb])&&(_0x539224=(_0x93d802?_0x839ba1(_0x19873a,_0x185657,_0x539224):_0x839ba1(_0x539224))||_0x539224);return _0x93d802&&_0x539224&&Ds(_0x19873a,_0x185657,_0x539224),_0x539224;},Pe=(_0x54ee57,_0x237e83)=>(_0x12ad1e,_0x5871d0)=>_0x237e83(_0x12ad1e,_0x5871d0,_0x54ee57);let fe=class{constructor(_0x474983,_0x3992ba,_0x33bcac){const _0x36884d=_0x57f41f;this[_0x36884d(0x331)]=_0x474983,this[_0x36884d(0x365)]=_0x3992ba,this[_0x36884d(0x46a)]=_0x33bcac;}[_0x57f41f(0x4c0)](_0x4012c2){const _0x35d65f=_0x57f41f;this[_0x35d65f(0x287)](_0x4012c2),this[_0x35d65f(0x285)](_0x4012c2);}[_0x57f41f(0x31a)](_0x1b39eb){const _0x50f5bc=_0x57f41f,{unitID:_0x1d6179}=_0x1b39eb,_0x117c37=this[_0x50f5bc(0x46a)][_0x50f5bc(0x488)](_0x1d6179)[_0x50f5bc(0x401)](N['DocIMEInputManagerService']),{redoCache:_0x11c6d8}=_0x117c37[_0x50f5bc(0x2e1)]();if(_0x11c6d8[_0x50f5bc(0x460)]===0x0)return _0x1b39eb;let _0xb95371=a['Tools'][_0x50f5bc(0x4b2)](_0x1b39eb[_0x50f5bc(0x506)][0x0]);for(let _0xd88f4a=0x0;_0xd88f4a<_0x11c6d8['length'];_0xd88f4a++){const _0x468cfb={'id':'doc.mutation.rich-text-editing','params':{..._0x11c6d8[_0xd88f4a]}},_0x14155a=this[_0x50f5bc(0x365)]['transformMutation'](_0xb95371,_0x468cfb,!0x1);if(_[_0x50f5bc(0x28a)](_0x14155a))throw _0x14155a[_0x50f5bc(0x542)];_0xb95371=_0x14155a[_0x50f5bc(0x36a)];}return{...a['Tools'][_0x50f5bc(0x4b2)](_0x1b39eb),'mutations':[_0xb95371]};}['_transformUndoRedoStack'](_0x5c1031){const _0x5babd7=_0x57f41f,{unitID:_0x2435a6}=_0x5c1031,_0x3034fb=this[_0x5babd7(0x46a)][_0x5babd7(0x488)](_0x2435a6)['with'](N[_0x5babd7(0x2e2)]),{undoCache:_0x4b4786,redoCache:_0x3134fc}=_0x3034fb[_0x5babd7(0x2e1)]();if(_0x4b4786[_0x5babd7(0x460)]===0x0||_0x3134fc[_0x5babd7(0x460)]===0x0)return;const _0x238656=[],_0x3db31f=[];let _0x5c9a14=a[_0x5babd7(0x25c)][_0x5babd7(0x4b2)](_0x5c1031[_0x5babd7(0x506)][0x0]),_0x468a4e=a['Tools'][_0x5babd7(0x4b2)](_0x5c1031[_0x5babd7(0x506)][0x0]);for(let _0x319737=_0x4b4786['length']-0x1;_0x319737>=0x0;_0x319737--){const _0x5e49ea={'id':_0x5babd7(0x44f),'params':{..._0x4b4786[_0x319737]}},_0x588a98={'id':'doc.mutation.rich-text-editing','params':{..._0x3134fc[_0x319737]}},_0x81d2a2=this['_transformService']['transformMutation'](_0x5c9a14,_0x5e49ea,!0x1),_0x25f6f8=this[_0x5babd7(0x365)][_0x5babd7(0x1e4)](_0x468a4e,_0x588a98,!0x1);if(_[_0x5babd7(0x28a)](_0x81d2a2))throw _0x81d2a2[_0x5babd7(0x542)];if(_[_0x5babd7(0x28a)](_0x25f6f8))throw _0x25f6f8[_0x5babd7(0x542)];_0x238656[_0x5babd7(0x54b)](_0x81d2a2[_0x5babd7(0x353)][_0x5babd7(0x15b)]),_0x3db31f[_0x5babd7(0x54b)](_0x25f6f8[_0x5babd7(0x353)][_0x5babd7(0x15b)]),_0x5c9a14=_0x81d2a2[_0x5babd7(0x36a)],_0x468a4e=_0x25f6f8[_0x5babd7(0x36a)];}_0x3034fb[_0x5babd7(0x19f)]({'undoCache':_0x238656,'redoCache':_0x3db31f});}[_0x57f41f(0x285)](_0x178d83){const _0x2a6f92=_0x57f41f,{unitID:_0x59da63}=_0x178d83,_0x4212b8=this['_renderManagerService'][_0x2a6f92(0x488)](_0x59da63)[_0x2a6f92(0x401)](N['DocIMEInputManagerService']),_0x31664a=_0x4212b8[_0x2a6f92(0x481)]();if(_0x31664a==null)return;const _0x5f4081=[{'id':_0x2a6f92(0x44f),'params':{'unitId':_0x178d83['unitID'],'actions':null,'textRanges':[_0x31664a]}}],_0x5b9a55=this['_transformService']['transformMutationsWithChangeset'](_0x178d83,_0x5f4081);if(!_[_0x2a6f92(0x41b)](_0x5b9a55))throw _0x5b9a55['error'];const _0x5c00f8=_0x5b9a55[_0x2a6f92(0x353)][0x0]['params'][_0x2a6f92(0x179)];Array[_0x2a6f92(0x2f8)](_0x5c00f8)&&_0x5c00f8[_0x2a6f92(0x460)]&&_0x4212b8['setActiveRange'](_0x5c00f8[0x0]);}};fe=Us([Pe(0x0,a['Inject'](a['Injector'])),Pe(0x1,_[_0x57f41f(0x127)]),Pe(0x2,O[_0x57f41f(0x15c)])],fe);var Ps=Object['defineProperty'],ws=Object[_0x57f41f(0x191)],Ns=(_0x2e066d,_0x1dc29e,_0x4388aa,_0x4febe5)=>{const _0x4a6eab=_0x57f41f;for(var _0x19c933=_0x4febe5>0x1?void 0x0:_0x4febe5?ws(_0x1dc29e,_0x4388aa):_0x1dc29e,_0x5b8ac4=_0x2e066d[_0x4a6eab(0x460)]-0x1,_0x37990b;_0x5b8ac4>=0x0;_0x5b8ac4--)(_0x37990b=_0x2e066d[_0x5b8ac4])&&(_0x19c933=(_0x4febe5?_0x37990b(_0x1dc29e,_0x4388aa,_0x19c933):_0x37990b(_0x19c933))||_0x19c933);return _0x4febe5&&_0x19c933&&Ps(_0x1dc29e,_0x4388aa,_0x19c933),_0x19c933;},ce=(_0x82dfc9,_0x38a0b6)=>(_0x35a924,_0x34a77a)=>_0x38a0b6(_0x35a924,_0x34a77a,_0x82dfc9);exports['LocalCacheService']=class extends a[_0x57f41f(0x1b5)]{constructor(_0x3d3273,_0x1e71e8,_0x278355,_0x3c96f5,_0x1f20d8){const _0x4c6dc9=_0x57f41f;super(),u(this,_0x4c6dc9(0x3ac),new Map()),u(this,_0x4c6dc9(0x38c),new Map()),u(this,_0x4c6dc9(0x531),!0x1),(this[_0x4c6dc9(0x172)]=_0x3d3273,this[_0x4c6dc9(0x294)]=_0x1e71e8,this['_beforeCloseService']=_0x278355,this[_0x4c6dc9(0x3c6)]=_0x3c96f5,this['_revisionService']=_0x1f20d8,this['_setupBeforeClosingHandler']());}[_0x57f41f(0x1f2)](){const _0x239527=_0x57f41f;this[_0x239527(0x531)]=!0x0;}[_0x57f41f(0x4a3)](){const _0x5558e9=_0x57f41f;this[_0x5558e9(0x531)]=!0x1;}[_0x57f41f(0x3a4)](){const _0x1d813b=_0x57f41f;this['exhaustSavingTask']()[_0x1d813b(0x407)](()=>super[_0x1d813b(0x3a4)]());}async[_0x57f41f(0x1e0)](_0x12a4ff){const _0x5b7df6=_0x57f41f;return this[_0x5b7df6(0x531)]?null:this[_0x5b7df6(0x294)][_0x5b7df6(0x176)](it(_0x12a4ff));}async[_0x57f41f(0x40a)](_0x5cccb9,_0x3b1af6){const _0x38d889=_0x57f41f;return!!this[_0x38d889(0x294)][_0x38d889(0x1de)](_0x5cccb9,_0x3b1af6);}[_0x57f41f(0x4dc)](_0xf6c77d,_0x196305,_0x52db0d,_0x20b1da){const _0x2a3efa=_0x57f41f,_0x3b428f=this[_0x2a3efa(0x51e)]['getCurrentRevOfUnit'](_0xf6c77d);this[_0x2a3efa(0x3ac)][_0x2a3efa(0x20b)](_0xf6c77d,{'unitID':_0xf6c77d,'type':_0x196305,'awaitingChangeset':_0x52db0d,'mutations':_0x20b1da,'rev':_0x3b428f}),this[_0x2a3efa(0x38c)][_0x2a3efa(0x2c9)](_0xf6c77d)||this['_scheduleSaving'](_0xf6c77d);}[_0x57f41f(0x513)](_0x44e338){const _0x1a41a7=_0x57f41f,_0x3599f2=this[_0x1a41a7(0x1fc)]();_0x3599f2===0x0?this[_0x1a41a7(0x4f2)](_0x44e338):this[_0x1a41a7(0x38c)][_0x1a41a7(0x20b)](_0x44e338,setTimeout(()=>this[_0x1a41a7(0x4f2)](_0x44e338),_0x3599f2));}[_0x57f41f(0x1fc)](){const _0x5064d4=_0x57f41f;var _0x458b87;return(_0x458b87=this['_configService'][_0x5064d4(0x37f)](pt))!=null?_0x458b87:ss;}[_0x57f41f(0x4f2)](_0x1ba67d){const _0x138f04=_0x57f41f,_0x5bbd81=this['_saveTaskMap']['get'](_0x1ba67d);return _0x5bbd81!==void 0x0&&window['clearTimeout'](_0x5bbd81),this['_localStorageService']['setItem'](it(_0x1ba67d),this[_0x138f04(0x3ac)]['get'](_0x1ba67d))[_0x138f04(0x407)](()=>this['_saveTaskMap'][_0x138f04(0x3e0)](_0x1ba67d));}async[_0x57f41f(0x4ad)](){const _0x2abf18=_0x57f41f,_0x107ea9=[];this[_0x2abf18(0x38c)][_0x2abf18(0x50c)]((_0x47b467,_0xdbd431)=>{const _0x24566b=_0x2abf18;window[_0x24566b(0x509)](_0x47b467),_0x107ea9[_0x24566b(0x2d0)](this['_saveCache'](_0xdbd431)['then'](()=>{const _0x2236b5=_0x24566b;this[_0x2236b5(0x38c)][_0x2236b5(0x3e0)](_0xdbd431);}));}),await Promise[_0x2abf18(0x38d)](_0x107ea9);}[_0x57f41f(0x2d4)](){const _0x420c2c=_0x57f41f;this[_0x420c2c(0x1e2)](this[_0x420c2c(0x270)][_0x420c2c(0x4c6)](()=>{const _0x53d20e=_0x420c2c;if(this[_0x53d20e(0x38c)][_0x53d20e(0x3f1)])return this[_0x53d20e(0x3c6)]['t'](_0x53d20e(0x3c0));}));}},exports[_0x57f41f(0x4a8)]=Ns([ce(0x0,a[_0x57f41f(0x435)]),ce(0x1,a[_0x57f41f(0x549)]),ce(0x2,A[_0x57f41f(0x3e8)]),ce(0x3,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x405)])),ce(0x4,a['Inject'](_[_0x57f41f(0x441)]))],exports[_0x57f41f(0x4a8)]);function it(_0x2d97f6){const _0x1cd4a3=_0x57f41f;return _0x1cd4a3(0x46e)+_0x2d97f6;}var Ms=Object[_0x57f41f(0x522)],As=Object['getOwnPropertyDescriptor'],Ls=(_0x2ac897,_0x526e5f,_0x2b72be,_0xb39d75)=>{for(var _0x9bdfe9=_0xb39d75>0x1?void 0x0:_0xb39d75?As(_0x526e5f,_0x2b72be):_0x526e5f,_0x394c02=_0x2ac897['length']-0x1,_0x11c769;_0x394c02>=0x0;_0x394c02--)(_0x11c769=_0x2ac897[_0x394c02])&&(_0x9bdfe9=(_0xb39d75?_0x11c769(_0x526e5f,_0x2b72be,_0x9bdfe9):_0x11c769(_0x9bdfe9))||_0x9bdfe9);return _0xb39d75&&_0x9bdfe9&&Ms(_0x526e5f,_0x2b72be,_0x9bdfe9),_0x9bdfe9;},we=(_0x2a7a29,_0x2577f1)=>(_0x370ec0,_0x200052)=>_0x2577f1(_0x370ec0,_0x200052,_0x2a7a29);function js(_0x302022){const _0x48db99=_0x57f41f,{unitID:_0x94c27a,mutations:_0x5e6b8f}=_0x302022;return{'unitId':_0x94c27a,'subUnitId':_0x5e6b8f[0x0]['params'][_0x48db99(0x3aa)]};}let Ie=class{constructor(_0x370002,_0x36385b,_0x2c0dce){const _0x428065=_0x57f41f;this[_0x428065(0x331)]=_0x370002,this[_0x428065(0x365)]=_0x36385b,this[_0x428065(0x517)]=_0x2c0dce;}[_0x57f41f(0x357)](_0xb92b08){const _0x549061=_0x57f41f;var _0x3db529,_0x35a11d,_0x9779de,_0xa145f3;const _0x1bafef=this[_0x549061(0x331)][_0x549061(0x31f)](C[_0x549061(0x428)]),{unitId:_0x463271,subUnitId:_0x5857b9}=js(_0xb92b08),_0x213411=_0x1bafef[_0x549061(0x3b4)](_0x463271)[_0x549061(0x3a7)](),_0xd99ec9=(_0x35a11d=(_0x3db529=this[_0x549061(0x517)][_0x549061(0x2fe)](_0x463271))==null?void 0x0:_0x3db529[_0x549061(0x2ad)]())==null?void 0x0:_0x35a11d[_0x549061(0x255)]();if(_0x213411[_0x549061(0x460)]===0x0||!_0x463271||!_0x5857b9)return;const _0x4204e5=[{'id':C[_0x549061(0x4a1)]['id'],'params':{'unitId':_0x463271,'subUnitId':_0xd99ec9,'selections':a['Tools'][_0x549061(0x4b2)](_0x213411)}}],_0x1a1ecf=this[_0x549061(0x365)]['transformMutationsWithChangeset'](_0xb92b08,_0x4204e5);if(!_[_0x549061(0x41b)](_0x1a1ecf))throw _0x1a1ecf[_0x549061(0x542)];const _0xa4be6f=(_0xa145f3=(_0x9779de=_0x1a1ecf['m2Prime'][0x0])==null?void 0x0:_0x9779de[_0x549061(0x15b)])==null?void 0x0:_0xa145f3[_0x549061(0x266)];Array[_0x549061(0x2f8)](_0xa4be6f)&&_0xa4be6f[_0x549061(0x460)]&&this[_0x549061(0x331)][_0x549061(0x31f)](a['ICommandService'])[_0x549061(0x449)](C[_0x549061(0x4a1)]['id'],{'unitId':_0x463271,'subUnitId':_0xd99ec9,'selections':_0xa4be6f});}};Ie=Ls([we(0x0,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),we(0x1,_[_0x57f41f(0x127)]),we(0x2,a[_0x57f41f(0x546)])],Ie);const Re=a[_0x57f41f(0x193)]('univer-pro.collaboration-client.single-active-unit-service');var Dt=(_0x5991dd=>(_0x5991dd[_0x5991dd[_0x57f41f(0x243)]=0x0]=_0x57f41f(0x243),_0x5991dd[_0x5991dd[_0x57f41f(0x53e)]=0x1]=_0x57f41f(0x53e),_0x5991dd))(Dt||{});const nt=0x7530,rt=_0x57f41f(0x289);class $s extends a[_0x57f41f(0x1b5)]{constructor(){const _0x1234d1=_0x57f41f;super(),u(this,'_id',a[_0x1234d1(0x25c)][_0x1234d1(0x465)]()),u(this,_0x1234d1(0x521),new Set()),u(this,'_unitOnClients',new Map()),u(this,'_heartbeatTimer',null),u(this,'_clearOtherTimers',new Map()),u(this,_0x1234d1(0x13a),new Map()),this[_0x1234d1(0x326)]();}[_0x57f41f(0x3a4)](){const _0x2c4fcc=_0x57f41f;super[_0x2c4fcc(0x3a4)](),this[_0x2c4fcc(0x34f)][_0x2c4fcc(0x50c)]((_0x2ca8de,_0x501e95)=>this['_removeClearOtherTimer'](_0x501e95)),this[_0x2c4fcc(0x293)]&&window['clearInterval'](this[_0x2c4fcc(0x293)]);}[_0x57f41f(0x1e1)](_0x182dcf){const _0xa604ce=_0x57f41f;return this[_0xa604ce(0x44b)](_0x182dcf)[_0xa604ce(0x4bb)](v[_0xa604ce(0x52b)]());}[_0x57f41f(0x208)](_0x2f3ea7){const _0x5b495b=_0x57f41f;this[_0x5b495b(0x521)][_0x5b495b(0x3f1)]===0x0&&this[_0x5b495b(0x492)](),this['_selfUnitIDs'][_0x5b495b(0x150)](_0x2f3ea7),this[_0x5b495b(0x203)]({'type':0x0,'memberID':this[_0x5b495b(0x372)],'unitIDs':[_0x2f3ea7],'isForwarded':!0x1});}[_0x57f41f(0x27e)](_0x535821){const _0x1f62e5=_0x57f41f;this['_selfUnitIDs'][_0x1f62e5(0x3e0)](_0x535821),this[_0x1f62e5(0x521)]['size']===0x0&&this[_0x1f62e5(0x293)]&&window[_0x1f62e5(0x4f8)](this[_0x1f62e5(0x293)]);}['_init'](){const _0x3498ef=_0x57f41f;this[_0x3498ef(0x1e2)](a[_0x3498ef(0x1f9)](v['fromEvent'](window,_0x3498ef(0x397))[_0x3498ef(0x3ee)](_0x343f09=>{const _0x41b08b=_0x3498ef;if(_0x343f09[_0x41b08b(0x2b3)]!==rt||!_0x343f09[_0x41b08b(0x4bd)])return;const _0x39c9ae=JSON[_0x41b08b(0x1a1)](_0x343f09[_0x41b08b(0x4bd)]);this[_0x41b08b(0x440)](_0x39c9ae);}))),window[_0x3498ef(0x37b)](_0x3498ef(0x3b7),()=>this['_send']({'type':0x1,'memberID':this[_0x3498ef(0x372)],'unitIDs':Array['from'](this[_0x3498ef(0x521)])}));}[_0x57f41f(0x440)](_0x1fdb51){const _0x55e999=_0x57f41f;switch(_0x1fdb51[_0x55e999(0x221)]){case 0x0:this['_handleJoinEvent'](_0x1fdb51);break;case 0x1:this['_handleLeaveEvent'](_0x1fdb51);break;case 0x2:this[_0x55e999(0x30e)](_0x1fdb51);break;}}[_0x57f41f(0x3c9)](_0x28f43e){const _0x5cbf35=_0x57f41f,{unitIDs:_0x5af215,memberID:_0xbf9035,isForwarded:_0x5003ff}=_0x28f43e;_0x5af215[_0x5cbf35(0x50c)](_0xd2ac58=>{const _0x1d3012=_0x5cbf35;if(!_0x5003ff&&this[_0x1d3012(0x242)][_0x1d3012(0x2c9)](_0xd2ac58)&&this[_0x1d3012(0x44b)](_0xd2ac58)['next'](0x1),!this['_unitOnClients']['has'](_0xd2ac58)||!this['_unitOnClients'][_0x1d3012(0x31f)](_0xd2ac58)[_0x1d3012(0x2c9)](_0xbf9035)){const _0x349675=this[_0x1d3012(0x242)][_0x1d3012(0x31f)](_0xd2ac58)||new Set();_0x349675[_0x1d3012(0x150)](_0xbf9035),this[_0x1d3012(0x242)][_0x1d3012(0x20b)](_0xd2ac58,_0x349675),this[_0x1d3012(0x311)](_0xbf9035);}}),_0x5003ff||this[_0x5cbf35(0x203)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x5cbf35(0x521)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x7cc3a7){const _0x15cb8c=_0x57f41f;this[_0x15cb8c(0x3bd)](_0x7cc3a7);const _0x2234ec=window[_0x15cb8c(0x540)](()=>{const _0x531e8b=_0x15cb8c;this['_unitOnClients'][_0x531e8b(0x50c)](_0x1509d4=>{const _0x50fecc=_0x531e8b;_0x1509d4[_0x50fecc(0x3e0)](_0x7cc3a7);});},nt*0x2);this[_0x15cb8c(0x34f)][_0x15cb8c(0x20b)](_0x7cc3a7,_0x2234ec);}['_removeClearOtherTimer'](_0x5bf5d6){const _0x24c1ae=_0x57f41f;if(this[_0x24c1ae(0x34f)][_0x24c1ae(0x2c9)](_0x5bf5d6)){const _0x235e53=this[_0x24c1ae(0x34f)][_0x24c1ae(0x31f)](_0x5bf5d6);_0x235e53&&window[_0x24c1ae(0x509)](_0x235e53),this['_clearOtherTimers']['set'](_0x5bf5d6,null);}}[_0x57f41f(0x3ec)](_0x29b1bc){const _0x1f1a5e=_0x57f41f,{memberID:_0x25dd23,unitIDs:_0x5b550d}=_0x29b1bc;_0x5b550d[_0x1f1a5e(0x50c)](_0x19ede2=>{const _0x60ac05=_0x1f1a5e;var _0x10b212;const _0x5d899b=this[_0x60ac05(0x242)][_0x60ac05(0x31f)](_0x19ede2);_0x5d899b&&(_0x5d899b[_0x60ac05(0x3e0)](_0x25dd23),(_0x10b212=this[_0x60ac05(0x44b)](_0x19ede2))==null||_0x10b212[_0x60ac05(0x49c)](_0x5d899b[_0x60ac05(0x3f1)]===0x0?0x0:0x1));}),this[_0x1f1a5e(0x3bd)](_0x25dd23);}[_0x57f41f(0x30e)](_0x2f8de6){const _0x13bafc=_0x57f41f;this[_0x13bafc(0x311)](_0x2f8de6[_0x13bafc(0x20c)]);}[_0x57f41f(0x203)](_0x5be66d){const _0x56a1ea=_0x57f41f;localStorage['setItem'](rt,JSON[_0x56a1ea(0x3bc)](_0x5be66d));}['_scheduleHeartbeat'](){const _0x1b7a2e=_0x57f41f;this[_0x1b7a2e(0x293)]=window[_0x1b7a2e(0x4f7)](()=>{const _0x52d242=_0x1b7a2e;this[_0x52d242(0x203)]({'type':0x2,'memberID':this[_0x52d242(0x372)]});},nt);}[_0x57f41f(0x44b)](_0x2618f0){const _0x35ccc1=_0x57f41f;return this['_unitStatus']['has'](_0x2618f0)||this[_0x35ccc1(0x13a)][_0x35ccc1(0x20b)](_0x2618f0,new v[(_0x35ccc1(0x3ab))](0x0)),this[_0x35ccc1(0x13a)][_0x35ccc1(0x31f)](_0x2618f0);}}function yt(_0x29bc4e){const _0x387eca=_0x57f41f;let _0x190c38='';for(const _0x1728cb of _0x29bc4e){const {startOffset:_0x89fad4,endOffset:_0x4f7fa2,isActive:_0x5b366f}=_0x1728cb;_0x190c38[_0x387eca(0x460)]&&(_0x190c38+=','),_0x190c38+=_0x89fad4+':'+_0x4f7fa2+':'+(_0x5b366f?'1':'0');}return _0x190c38;}function Hs(_0x11928f){const _0x3f647a=_0x57f41f,_0x1b58b7=_0x11928f[_0x3f647a(0x309)](','),_0x2a65b=[];for(const _0x32faf2 of _0x1b58b7){const [_0x3266d1,_0x56ecf0,_0x5998be]=_0x32faf2[_0x3f647a(0x309)](':');_0x2a65b['push']({'startOffset':Number(_0x3266d1),'endOffset':Number(_0x56ecf0),'collapsed':_0x3266d1===_0x56ecf0,'isActive':_0x5998be==='1'});}return _0x2a65b['some'](_0x4fb40c=>_0x4fb40c[_0x3f647a(0x4ef)])||(_0x2a65b[0x0][_0x3f647a(0x4ef)]=!0x0),_0x2a65b;}class qe extends a['RxDisposable']{constructor(){const _0x2361b5=_0x57f41f;super(...arguments),u(this,_0x2361b5(0x2b5),new v['BehaviorSubject'](null)),u(this,'collabCursorState$',this[_0x2361b5(0x2b5)][_0x2361b5(0x41e)]());}['syncEditingCollabCursor'](_0x56fb62){const _0x2fd018=_0x57f41f,{unitID:_0xff3b9f,memberID:_0x1140f2,textRanges:_0x55ef39}=_0x56fb62,_0x123b41=yt(_0x55ef39),_0xf71e71={'unitID':_0xff3b9f,'memberID':_0x1140f2,'selection':_0x123b41};this[_0x2fd018(0x2b5)][_0x2fd018(0x49c)](_0xf71e71);}}var xs=Object[_0x57f41f(0x522)],ks=Object[_0x57f41f(0x191)],Bs=(_0x1506b5,_0x5e58e8,_0x37ff0f,_0x5c48f3)=>{const _0x17e1de=_0x57f41f;for(var _0x4d6485=_0x5c48f3>0x1?void 0x0:_0x5c48f3?ks(_0x5e58e8,_0x37ff0f):_0x5e58e8,_0x2b904d=_0x1506b5[_0x17e1de(0x460)]-0x1,_0x4b867f;_0x2b904d>=0x0;_0x2b904d--)(_0x4b867f=_0x1506b5[_0x2b904d])&&(_0x4d6485=(_0x5c48f3?_0x4b867f(_0x5e58e8,_0x37ff0f,_0x4d6485):_0x4b867f(_0x4d6485))||_0x4d6485);return _0x5c48f3&&_0x4d6485&&xs(_0x5e58e8,_0x37ff0f,_0x4d6485),_0x4d6485;},ot=(_0xecab61,_0xac4d42)=>(_0x17beb5,_0xa85ea1)=>_0xac4d42(_0x17beb5,_0xa85ea1,_0xecab61);let pe=class{constructor(_0x2e2373,_0x1c7309){const _0x3f9797=_0x57f41f;this['_injector']=_0x2e2373,this[_0x3f9797(0x365)]=_0x1c7309;}['transformSelections'](_0x849c13){const _0x5c1a0b=_0x57f41f;var _0x55ecb7;const _0x82e810=this[_0x5c1a0b(0x331)][_0x5c1a0b(0x31f)](se[_0x5c1a0b(0x1d0)]),_0x336fed=(_0x55ecb7=_0x82e810[_0x5c1a0b(0x328)]())!=null?_0x55ecb7:[];if(_0x336fed[_0x5c1a0b(0x460)]===0x0)return;const _0x35f9ff=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x849c13[_0x5c1a0b(0x36e)],'actions':null,'textRanges':_0x336fed}}],_0x5c3efa=this[_0x5c1a0b(0x365)][_0x5c1a0b(0x323)](_0x849c13,_0x35f9ff);if(!_['isTransformMutationsWithChangesetSuccess'](_0x5c3efa))throw _0x5c3efa['error'];const _0x544c47=_0x5c3efa[_0x5c1a0b(0x353)][0x0][_0x5c1a0b(0x15b)][_0x5c1a0b(0x179)];Array[_0x5c1a0b(0x2f8)](_0x544c47)&&_0x544c47[_0x5c1a0b(0x460)]&&_0x82e810[_0x5c1a0b(0x485)](_0x544c47,!0x1);}};pe=Bs([ot(0x0,a['Inject'](a[_0x57f41f(0x410)])),ot(0x1,_[_0x57f41f(0x127)])],pe);const Vs=new Set([C[_0x57f41f(0x1c8)]['id']]);function at(_0x338d06,_0x4942f0,_0x5d8f85,_0x45ba5b,_0xa14841){const _0x10ed84=_0x57f41f;var _0x202ec2,_0x2a0e38,_0x17d430,_0x1099dd;const _0x4ae431=[];for(const _0x379452 of _0x338d06)if(Vs[_0x10ed84(0x2c9)](_0x379452['id'])){if(_0x4ae431[_0x10ed84(0x460)]>0x0)break;_0x4ae431[_0x10ed84(0x2d0)](_0x379452);break;}else _0x4ae431[_0x10ed84(0x2d0)](_0x379452);const _0x39690f=(_0x2a0e38=(_0x202ec2=_0xa14841[_0x10ed84(0x45c)]())==null?void 0x0:_0x202ec2[_0x10ed84(0x33a)])!=null?_0x2a0e38:_0x10ed84(0x1c9),_0x4f2279=(_0x1099dd=(_0x17d430=_0xa14841[_0x10ed84(0x45c)]())==null?void 0x0:_0x17d430[_0x10ed84(0x20c)])!=null?_0x1099dd:_0x10ed84(0x1c9);return{'changeset':{'unitID':_0x4942f0,'type':_['mapDocumentTypeToUniverType'](_0x5d8f85['getUnitType'](_0x4942f0)),'baseRev':_0x45ba5b['getCurrentRevOfUnit'](_0x4942f0),'revision':0x0,'userID':_0x39690f,'memberID':_0x4f2279,'mutations':_0x4ae431},'pendingMutations':_0x338d06['slice'](_0x4ae431[_0x10ed84(0x460)])};}function Ws(_0x40ec11,_0x42c869,_0x34fe08,_0x16f2be,_0x574318){const _0x35866d=_0x57f41f;var _0x13ee60,_0x1ca8d6,_0x32d78d,_0x121d98;const _0x3341cc=[_0x40ec11[_0x35866d(0x545)]((_0x432f39,_0xccc0d7)=>{const _0x597e07=_0x35866d;var _0x5b49d3;const {id:_0x11a257}=_0x432f39,{id:_0x420fc6,type:_0x3b9ca3}=_0xccc0d7,_0x39c0ad=(_0x5b49d3=_0x432f39[_0x597e07(0x15b)])!=null?_0x5b49d3:{'actions':null},_0x2fe971=_0xccc0d7[_0x597e07(0x15b)];if(_0x11a257&&_0x11a257!==_0x420fc6)throw new Error(_0x597e07(0x138)+_0x11a257+_0x597e07(0x515)+_0x420fc6+'.');return{..._0x432f39,'id':_0x420fc6,'type':_0x3b9ca3,'params':{'unitId':_0x2fe971[_0x597e07(0x1d1)],'textRanges':_0x2fe971[_0x597e07(0x179)],'actions':a[_0x597e07(0x13b)][_0x597e07(0x139)](_0x39c0ad[_0x597e07(0x15e)],_0x2fe971[_0x597e07(0x15e)])}};},{})],_0x1d5245=(_0x1ca8d6=(_0x13ee60=_0x574318[_0x35866d(0x45c)]())==null?void 0x0:_0x13ee60['userID'])!=null?_0x1ca8d6:'unknown',_0x6ae38c=(_0x121d98=(_0x32d78d=_0x574318[_0x35866d(0x45c)]())==null?void 0x0:_0x32d78d[_0x35866d(0x20c)])!=null?_0x121d98:_0x35866d(0x1c9);return{'changeset':{'unitID':_0x42c869,'type':_[_0x35866d(0x2f1)](_0x34fe08[_0x35866d(0x276)](_0x42c869)),'baseRev':_0x16f2be[_0x35866d(0x52e)](_0x42c869),'revision':0x0,'userID':_0x1d5245,'memberID':_0x6ae38c,'mutations':_0x3341cc},'pendingMutations':[]};}const Fs={'id':C[_0x57f41f(0x52c)]['id'],'type':a[_0x57f41f(0x4a7)][_0x57f41f(0x385)],'params':{}};var Gs=Object['defineProperty'],Ys=Object[_0x57f41f(0x191)],z=(_0x4d0361,_0x12e9f2,_0x26851d,_0x136895)=>{const _0x42a162=_0x57f41f;for(var _0x42b732=_0x136895>0x1?void 0x0:_0x136895?Ys(_0x12e9f2,_0x26851d):_0x12e9f2,_0x258b69=_0x4d0361[_0x42a162(0x460)]-0x1,_0x220ac2;_0x258b69>=0x0;_0x258b69--)(_0x220ac2=_0x4d0361[_0x258b69])&&(_0x42b732=(_0x136895?_0x220ac2(_0x12e9f2,_0x26851d,_0x42b732):_0x220ac2(_0x42b732))||_0x42b732);return _0x136895&&_0x42b732&&Gs(_0x12e9f2,_0x26851d,_0x42b732),_0x42b732;},m=(_0x404bf3,_0x193019)=>(_0x57979b,_0x3decc3)=>_0x193019(_0x57979b,_0x3decc3,_0x404bf3),U=(_0x3729dd=>(_0x3729dd[_0x57f41f(0x233)]=_0x57f41f(0x217),_0x3729dd['SYNCED']='synced',_0x3729dd[_0x57f41f(0x508)]=_0x57f41f(0x305),_0x3729dd[_0x57f41f(0x265)]='awaiting',_0x3729dd[_0x57f41f(0x2a0)]=_0x57f41f(0x3fa),_0x3729dd[_0x57f41f(0x2d9)]=_0x57f41f(0x454),_0x3729dd[_0x57f41f(0x21c)]=_0x57f41f(0x22a),_0x3729dd[_0x57f41f(0x2d2)]=_0x57f41f(0x341),_0x3729dd))(U||{});class J{constructor(_0xd5f1f9,_0x26d8b9,_0x268aa5,_0x243b0b,_0x5abe9d,_0x10e54c,_0x119b03,_0x5a8009,_0x320d20){const _0x2be726=_0x57f41f;u(this,'_awaitingChangeset',null),u(this,'_pendingMutations',[]),(this['unitID']=_0xd5f1f9,this['type']=_0x26d8b9,this['_handler']=_0x5abe9d,this['_commandService']=_0x10e54c,this['_undoRedoService']=_0x119b03,this['_revisionService']=_0x5a8009,this[_0x2be726(0x190)]=_0x320d20,this[_0x2be726(0x47c)]=_0x268aa5,this[_0x2be726(0x248)]=_0x243b0b);}[_0x57f41f(0x54e)](_0x3f1457){const _0x337a5a=_0x57f41f,_0x51d24f=this[_0x337a5a(0x51e)]['getCurrentRevOfUnit'](this[_0x337a5a(0x36e)]);return _0x3f1457[_0x337a5a(0x308)]>_0x51d24f+0x1?(this[_0x337a5a(0x1e5)][_0x337a5a(0x52f)]({'from':_0x51d24f,'to':_0x3f1457[_0x337a5a(0x308)]-0x1}),!0x0):!0x1;}[_0x57f41f(0x1af)](_0x288275){const _0x18436e=_0x57f41f;this[_0x18436e(0x27c)][_0x18436e(0x130)](this[_0x18436e(0x36e)],_0x288275);}[_0x57f41f(0x4cb)](_0x48ccfc){const _0x261097=_0x57f41f;var _0x49a8c4,_0x18cfe3;(_0x18cfe3=(_0x49a8c4=this[_0x261097(0x1e5)])[_0x261097(0x230)])==null||_0x18cfe3[_0x261097(0x19d)](_0x49a8c4,_0x48ccfc);}[_0x57f41f(0x3d1)](_0x259bb4){const _0x1fdb8f=_0x57f41f;var _0x508329,_0x23c132;return(_0x23c132=(_0x508329=this['_handler'])[_0x1fdb8f(0x307)])==null?void 0x0:_0x23c132[_0x1fdb8f(0x19d)](_0x508329,_0x259bb4);}[_0x57f41f(0x194)](_0x7e5fec){const _0x44d6f7=_0x57f41f;var _0x37f8d3,_0x3eec2d,_0x37ad55;return(_0x37ad55=(_0x3eec2d=(_0x37f8d3=this[_0x44d6f7(0x1e5)])[_0x44d6f7(0x448)])==null?void 0x0:_0x3eec2d[_0x44d6f7(0x19d)](_0x37f8d3,_0x7e5fec))!=null?_0x37ad55:_0x7e5fec;}[_0x57f41f(0x21b)](_0x4f87eb){const _0x35c865=_0x57f41f;var _0x8ff8eb,_0x3fb9ad;if(this['type']===$[_0x35c865(0x1a7)]){const {unitID:_0x18c11f,mutations:_0x56de93,memberID:_0x2be62a}=_0x4f87eb,_0x33d146=_0x56de93[0x0][_0x35c865(0x15b)]['textRanges'];Array[_0x35c865(0x2f8)](_0x33d146)&&_0x33d146[_0x35c865(0x460)]>0x0&&((_0x3fb9ad=(_0x8ff8eb=this[_0x35c865(0x1e5)])['onSyncEditingCollabCursor'])==null||_0x3fb9ad['call'](_0x8ff8eb,{'unitID':_0x18c11f,'memberID':_0x2be62a,'textRanges':_0x33d146}));}}[_0x57f41f(0x26b)](){const _0x339a88=_0x57f41f;this[_0x339a88(0x190)]['updateOfflineData'](this[_0x339a88(0x36e)],this[_0x339a88(0x221)],this[_0x339a88(0x47c)],this['_pendingMutations']);}[_0x57f41f(0x2c1)](){const _0xafbf8e=_0x57f41f;return this[_0xafbf8e(0x51e)][_0xafbf8e(0x52e)](this[_0xafbf8e(0x36e)]);}[_0x57f41f(0x28b)](){const _0x196dce=_0x57f41f;this['_revisionService']['incrementRevOfUnit'](this[_0x196dce(0x36e)]);}[_0x57f41f(0x26a)](_0x372bca){const _0x25121c=_0x57f41f;var _0x2099ff;const _0x3559a2=this[_0x25121c(0x194)](_0x372bca),_0x42b00f=a[_0x25121c(0x476)](_0x3559a2['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x42b00f[_0x25121c(0x16c)])throw _0x42b00f[_0x25121c(0x542)]instanceof Error?_0x42b00f['error']:new Error((_0x2099ff=_0x42b00f[_0x25121c(0x542)])!=null?_0x2099ff:_0x25121c(0x348));this[_0x25121c(0x3d1)](_0x3559a2),this[_0x25121c(0x1af)](_0x372bca),this[_0x25121c(0x4cb)](_0x3559a2),this['_syncEditingCollabCursor'](_0x3559a2),this[_0x25121c(0x28b)]();}}let ie=class extends J{constructor(_0x5eb050,_0x4e3271,_0x3ed136,_0x2f06a7,_0x1f9aeb,_0x2ac52c,_0x2c31c7,_0x217ccf,_0x34856a,_0x505ad3){const _0x42f1c4=_0x57f41f;super(_0x5eb050,_0x4e3271,null,[],_0x3ed136,_0x217ccf,_0x2c31c7,_0x2f06a7,_0x1f9aeb),u(this,_0x42f1c4(0x2d7),_0x42f1c4(0x4d0)),(this[_0x42f1c4(0x331)]=_0x2ac52c,this[_0x42f1c4(0x181)]=_0x34856a,this[_0x42f1c4(0x365)]=_0x505ad3);}[_0x57f41f(0x4fa)](_0x23956c){const _0x4a9a95=_0x57f41f,_0x21af26=this[_0x4a9a95(0x331)][_0x4a9a95(0x4eb)](k,this[_0x4a9a95(0x36e)],this['type'],[_0x23956c],this[_0x4a9a95(0x1e5)]);return _0x21af26[_0x4a9a95(0x23a)](),_0x21af26['_updateLocalCache'](),_0x21af26;}['onRemoteChangeset'](_0x13233a){const _0x3f0272=_0x57f41f;if(this[_0x3f0272(0x54e)](_0x13233a))return this['_injector'][_0x3f0272(0x4eb)](x,this[_0x3f0272(0x36e)],this[_0x3f0272(0x221)],null,[],null,[_0x13233a],this[_0x3f0272(0x1e5)]);try{const _0x28963c=this[_0x3f0272(0x365)][_0x3f0272(0x323)](_0x13233a,[Fs]);if(_[_0x3f0272(0x41b)](_0x28963c)){const {c1Prime:_0x46c4ca}=_0x28963c;return this['_executeRemoteChangeset'](_0x46c4ca),this;}throw _0x28963c[_0x3f0272(0x542)];}catch(_0x382f94){return this['_logService'][_0x3f0272(0x542)](_0x382f94),this[_0x3f0272(0x32c)](!0x1);}}[_0x57f41f(0x32c)](_0x10ac23){const _0x199582=_0x57f41f;return this[_0x199582(0x331)]['createInstance'](F,this[_0x199582(0x36e)],this['type'],null,[],this['_handler'],_0x10ac23);}[_0x57f41f(0x13d)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x57f41f(0x4f9)](){const _0x258df3=_0x57f41f;return this['_injector'][_0x258df3(0x4eb)](G,this[_0x258df3(0x36e)],this[_0x258df3(0x221)],null,[],this[_0x258df3(0x1e5)]);}[_0x57f41f(0x3f6)](){return this;}[_0x57f41f(0x518)](){const _0x1d329d=_0x57f41f;throw new Error(_0x1d329d(0x1cc));}['fetchMiss'](){const _0x37b1b0=_0x57f41f,_0x1e596c=this[_0x37b1b0(0x51e)]['getCurrentRevOfUnit'](this[_0x37b1b0(0x36e)]);return this[_0x37b1b0(0x1e5)][_0x37b1b0(0x52f)]({'from':_0x1e596c,'to':0x0}),this[_0x37b1b0(0x331)]['createInstance'](x,this[_0x37b1b0(0x36e)],this[_0x37b1b0(0x221)],null,[],null,[],this[_0x37b1b0(0x1e5)]);}};ie=z([m(0x3,a['Inject'](_[_0x57f41f(0x441)])),m(0x4,a['Inject'](exports[_0x57f41f(0x4a8)])),m(0x5,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),m(0x6,a[_0x57f41f(0x24e)]),m(0x7,a[_0x57f41f(0x178)]),m(0x8,a[_0x57f41f(0x162)]),m(0x9,_[_0x57f41f(0x127)])],ie);let k=class extends J{constructor(_0x282731,_0x597e6d,_0x2302f1,_0x1db769,_0x42d9f1,_0x1fe881,_0x35646a,_0x5f3da2,_0x111d89,_0x1a428b,_0x47e9ca,_0x320bc0,_0x5537f0,_0x278537){const _0x2f9c7f=_0x57f41f;super(_0x282731,_0x597e6d,null,_0x2302f1,_0x1db769,_0x1a428b,_0x278537,_0x1fe881,_0x35646a),u(this,_0x2f9c7f(0x2d7),_0x2f9c7f(0x305)),u(this,_0x2f9c7f(0x25b),null),u(this,_0x2f9c7f(0x35d),null),(this[_0x2f9c7f(0x331)]=_0x42d9f1,this['_memberService']=_0x5f3da2,this[_0x2f9c7f(0x181)]=_0x111d89,this['_configService']=_0x47e9ca,this['_transformService']=_0x320bc0,this['_univerInstanceService']=_0x5537f0);}[_0x57f41f(0x4fa)](_0x308f24){const _0x7c0813=_0x57f41f;return this[_0x7c0813(0x248)][_0x7c0813(0x2d0)](_0x308f24),this[_0x7c0813(0x26b)](),this;}[_0x57f41f(0x4a5)](_0xed48d6){const _0x93bbcd=_0x57f41f;if(this['_checkMissing'](_0xed48d6))return this['_clearScheduledTask'](),this[_0x93bbcd(0x331)][_0x93bbcd(0x4eb)](x,this[_0x93bbcd(0x36e)],this[_0x93bbcd(0x221)],null,this[_0x93bbcd(0x248)],null,[_0xed48d6],this['_handler']);try{const _0x2ae520=this[_0x93bbcd(0x365)]['transformMutationsWithChangeset'](_0xed48d6,this['_pendingMutations']);if(_[_0x93bbcd(0x41b)](_0x2ae520)){const {c1Prime:_0x370c66,m2Prime:_0x187e27}=_0x2ae520;this[_0x93bbcd(0x26a)](_0x370c66);const _0x33aea3=this[_0x93bbcd(0x331)]['createInstance'](k,this['unitID'],this[_0x93bbcd(0x221)],_0x187e27,this[_0x93bbcd(0x1e5)]);return this['_clearScheduledTask'](),_0x33aea3[_0x93bbcd(0x23a)](this[_0x93bbcd(0x25b)]?Math[_0x93bbcd(0x1d5)](0x0,new Date()[_0x93bbcd(0x2c2)]()-this[_0x93bbcd(0x25b)]):this[_0x93bbcd(0x302)]()),_0x33aea3;}throw _0x2ae520['error'];}catch(_0x198c72){return this[_0x93bbcd(0x181)][_0x93bbcd(0x542)](_0x198c72),this[_0x93bbcd(0x32c)](!0x1);}}[_0x57f41f(0x13d)](){const _0x18c4b2=_0x57f41f;throw new Error(_0x18c4b2(0x1e9));}[_0x57f41f(0x2bd)](){const _0x9afcd5=_0x57f41f;throw new Error(_0x9afcd5(0x527));}[_0x57f41f(0x4f9)](){const _0x597885=_0x57f41f;return this[_0x597885(0x31c)](),this[_0x597885(0x331)][_0x597885(0x4eb)](G,this[_0x597885(0x36e)],this[_0x597885(0x221)],null,this[_0x597885(0x248)],this[_0x597885(0x1e5)]);}[_0x57f41f(0x3f6)](){return this;}['_schedule'](_0x6f369b){const _0x49b7fc=_0x57f41f,_0x220b2e=_0x6f369b!=null?_0x6f369b:this[_0x49b7fc(0x302)]();this[_0x49b7fc(0x25b)]=new Date()[_0x49b7fc(0x2c2)](),this[_0x49b7fc(0x35d)]=window['setTimeout'](()=>{const _0x647cb0=_0x49b7fc;this['_clearScheduledTask']();let _0x253036=null;switch(this[_0x647cb0(0x221)]){case $['UNIVER_SHEET']:{_0x253036=at(this[_0x647cb0(0x248)],this['unitID'],this[_0x647cb0(0x131)],this[_0x647cb0(0x51e)],this[_0x647cb0(0x384)]);break;}case $[_0x647cb0(0x1a7)]:{this[_0x647cb0(0x248)][_0x647cb0(0x394)](_0x14eb3b=>_0x14eb3b['id']===se[_0x647cb0(0x286)]['id'])?_0x253036=Ws(this['_pendingMutations'],this[_0x647cb0(0x36e)],this[_0x647cb0(0x131)],this[_0x647cb0(0x51e)],this['_memberService']):_0x253036=at(this[_0x647cb0(0x248)],this[_0x647cb0(0x36e)],this[_0x647cb0(0x131)],this['_revisionService'],this[_0x647cb0(0x384)]);break;}default:throw new Error(_0x647cb0(0x4fd)+this[_0x647cb0(0x221)]+_0x647cb0(0x1c0));}const {changeset:_0x2c7a07,pendingMutations:_0x2667f8}=_0x253036;this[_0x647cb0(0x1e5)][_0x647cb0(0x188)](_0x2c7a07);const _0x5d5b5e=_0x2667f8[_0x647cb0(0x460)]?this['_injector'][_0x647cb0(0x4eb)](B,this['unitID'],this['type'],_0x2c7a07,_0x2667f8,this[_0x647cb0(0x1e5)]):this[_0x647cb0(0x331)][_0x647cb0(0x4eb)](W,this[_0x647cb0(0x36e)],this['type'],_0x2c7a07,this['_handler']);_0x5d5b5e[_0x647cb0(0x26b)](),this[_0x647cb0(0x1e5)][_0x647cb0(0x396)](this,_0x5d5b5e);},_0x220b2e);}['_getSendChangesetTimeout'](){const _0x9ef613=_0x57f41f;var _0x48d478;const _0x423115=this[_0x9ef613(0x172)][_0x9ef613(0x37f)](L);return(_0x48d478=_0x423115==null?void 0x0:_0x423115['sendChangesetTimeout'])!=null?_0x48d478:Jt;}[_0x57f41f(0x518)](){const _0x1c983e=_0x57f41f;throw new Error(_0x1c983e(0x4f3));}[_0x57f41f(0x31c)](){const _0x296341=_0x57f41f;this[_0x296341(0x35d)]!=null&&(clearTimeout(this[_0x296341(0x35d)]),this['_sendingTimer']=null);}[_0x57f41f(0x32c)](_0x38927e){const _0x37970a=_0x57f41f;return this[_0x37970a(0x31c)](),this[_0x37970a(0x331)][_0x37970a(0x4eb)](F,this[_0x37970a(0x36e)],this[_0x37970a(0x221)],null,this['_pendingMutations'],this[_0x37970a(0x1e5)],_0x38927e);}};k=z([m(0x4,a[_0x57f41f(0x1ec)](a['Injector'])),m(0x5,a[_0x57f41f(0x1ec)](_[_0x57f41f(0x441)])),m(0x6,a[_0x57f41f(0x1ec)](exports[_0x57f41f(0x4a8)])),m(0x7,a['Inject'](q)),m(0x8,a[_0x57f41f(0x162)]),m(0x9,a[_0x57f41f(0x178)]),m(0xa,a[_0x57f41f(0x435)]),m(0xb,_[_0x57f41f(0x127)]),m(0xc,a['IUniverInstanceService']),m(0xd,a[_0x57f41f(0x24e)])],k);let W=class extends J{constructor(_0x33d348,_0x116188,_0x514e9f,_0x2cb3d8,_0x403c46,_0x4f37cc,_0x5cdada,_0x5de137,_0xf57d75,_0x962e92,_0x210fe6){const _0xc6a19f=_0x57f41f;super(_0x33d348,_0x116188,_0x514e9f,[],_0x2cb3d8,_0x5de137,_0x210fe6,_0x4f37cc,_0x5cdada),u(this,_0xc6a19f(0x2d7),'awaiting'),(this['_injector']=_0x403c46,this[_0xc6a19f(0x181)]=_0xf57d75,this[_0xc6a19f(0x365)]=_0x962e92);}[_0x57f41f(0x4fa)](_0xec2fb9){const _0xffe252=_0x57f41f,_0x2e7afa=this[_0xffe252(0x331)][_0xffe252(0x4eb)](B,this[_0xffe252(0x36e)],this[_0xffe252(0x221)],this[_0xffe252(0x47c)],[_0xec2fb9],this[_0xffe252(0x1e5)]);return _0x2e7afa[_0xffe252(0x26b)](),_0x2e7afa;}[_0x57f41f(0x4a5)](_0x371365){const _0x559c7b=_0x57f41f;if(this[_0x559c7b(0x54e)](_0x371365))return this[_0x559c7b(0x331)][_0x559c7b(0x4eb)](x,this[_0x559c7b(0x36e)],this[_0x559c7b(0x221)],this[_0x559c7b(0x47c)],[],null,[_0x371365],this[_0x559c7b(0x1e5)]);try{const _0x3357c4=this[_0x559c7b(0x365)]['transformChangesets']([_0x371365],[this[_0x559c7b(0x47c)]],!0x1);if(_[_0x559c7b(0x45f)](_0x3357c4)){const {c1Prime:_0x2c2e2e,c2Prime:_0x247429}=_0x3357c4;this[_0x559c7b(0x26a)](_0x2c2e2e[0x0]),_0x247429[0x0]['baseRev']=this[_0x559c7b(0x2c1)]();const _0x38f686=this['_injector']['createInstance'](W,this['unitID'],this[_0x559c7b(0x221)],_0x247429[0x0],this[_0x559c7b(0x1e5)]);return _0x38f686[_0x559c7b(0x26b)](),_0x38f686;}return this[_0x559c7b(0x32c)](!0x1);}catch(_0x109e6f){return this[_0x559c7b(0x181)][_0x559c7b(0x542)](_0x109e6f),this[_0x559c7b(0x32c)](!0x1);}}[_0x57f41f(0x13d)](_0x24c724){const _0x2c5068=_0x57f41f,_0x489872=this[_0x2c5068(0x51e)][_0x2c5068(0x52e)](this[_0x2c5068(0x36e)]);if(_0x24c724[_0x2c5068(0x308)]<_0x489872-0x1)return this;if(this[_0x2c5068(0x54e)](_0x24c724))return this[_0x2c5068(0x331)][_0x2c5068(0x4eb)](x,this[_0x2c5068(0x36e)],this[_0x2c5068(0x221)],null,[],this['_awaitingChangeset'],[],this[_0x2c5068(0x1e5)]);this['_incrementRevisionNumber']();const _0x57e2c6=this['_injector']['createInstance'](ie,this['unitID'],this[_0x2c5068(0x221)],this[_0x2c5068(0x1e5)]);return _0x57e2c6[_0x2c5068(0x26b)](),_0x57e2c6;}[_0x57f41f(0x2bd)](_0x1655e2){const _0x1b2e98=_0x57f41f;return this[_0x1b2e98(0x32c)](!!(_0x1655e2!=null&&_0x1655e2[_0x1b2e98(0x245)]));}[_0x57f41f(0x4f9)](){const _0x5ad230=_0x57f41f;return this[_0x5ad230(0x331)][_0x5ad230(0x4eb)](G,this[_0x5ad230(0x36e)],this['type'],this[_0x5ad230(0x47c)],[],this[_0x5ad230(0x1e5)]);}[_0x57f41f(0x3f6)](){return this;}[_0x57f41f(0x518)](){const _0x27ad65=_0x57f41f;this[_0x27ad65(0x1e5)][_0x27ad65(0x188)](this[_0x27ad65(0x47c)]);}['_onConflict'](_0x300098){const _0x561d1b=_0x57f41f;return this[_0x561d1b(0x331)][_0x561d1b(0x4eb)](F,this[_0x561d1b(0x36e)],this[_0x561d1b(0x221)],this[_0x561d1b(0x47c)],[],this['_handler'],_0x300098);}};W=z([m(0x4,a['Inject'](a[_0x57f41f(0x410)])),m(0x5,a[_0x57f41f(0x1ec)](_['RevisionService'])),m(0x6,a[_0x57f41f(0x1ec)](exports['LocalCacheService'])),m(0x7,a['ICommandService']),m(0x8,a['ILogService']),m(0x9,_[_0x57f41f(0x127)]),m(0xa,a[_0x57f41f(0x24e)])],W);let B=class extends J{constructor(_0x1edb5b,_0x1667e1,_0x39c0be,_0x3e8dd3,_0x52ce90,_0x3fcfcf,_0x38a507,_0x53cb91,_0x4e6c29,_0x2906f4,_0x4b168b,_0x3acd3d){const _0x547aaf=_0x57f41f;super(_0x1edb5b,_0x1667e1,_0x39c0be,_0x3e8dd3,_0x52ce90,_0x4e6c29,_0x3acd3d,_0x38a507,_0x53cb91),u(this,_0x547aaf(0x2d7),_0x547aaf(0x3fa)),(this[_0x547aaf(0x331)]=_0x3fcfcf,this[_0x547aaf(0x181)]=_0x2906f4,this[_0x547aaf(0x365)]=_0x4b168b);}[_0x57f41f(0x4fa)](_0x326b99){const _0x38a0d2=_0x57f41f;return this[_0x38a0d2(0x248)]['push'](_0x326b99),this;}[_0x57f41f(0x4a5)](_0x2b4856){const _0x308538=_0x57f41f;if(this[_0x308538(0x54e)](_0x2b4856))return this[_0x308538(0x331)]['createInstance'](x,this[_0x308538(0x36e)],this[_0x308538(0x221)],this[_0x308538(0x47c)],this[_0x308538(0x248)],null,[_0x2b4856],this[_0x308538(0x1e5)]);try{const _0x2884e3=this[_0x308538(0x365)]['transformChangesets']([_0x2b4856],[this['_awaitingChangeset']],!0x1);if(_['isTransformChangesetsSuccess'](_0x2884e3)){const {c1Prime:_0x4e8f39,c2Prime:_0x32e286}=_0x2884e3,_0x17ddbb=this[_0x308538(0x365)][_0x308538(0x323)](_0x4e8f39[0x0],this['_pendingMutations']);if(_['isTransformMutationsWithChangesetSuccess'](_0x17ddbb)){const {c1Prime:_0x2667c9,m2Prime:_0x295722}=_0x17ddbb;return this['_executeRemoteChangeset'](_0x2667c9),_0x32e286[0x0]['baseRev']=this[_0x308538(0x2c1)](),this[_0x308538(0x331)][_0x308538(0x4eb)](B,this['unitID'],this[_0x308538(0x221)],_0x32e286[0x0],_0x295722,this[_0x308538(0x1e5)]);}throw _0x17ddbb[_0x308538(0x542)];}throw _0x2884e3['error'];}catch(_0x359d32){return this['_logService'][_0x308538(0x542)](_0x359d32),this[_0x308538(0x32c)](!0x1);}}['onRemoteAck'](_0x2eed54){const _0x4e7f09=_0x57f41f;if(this[_0x4e7f09(0x54e)](_0x2eed54))return this[_0x4e7f09(0x331)][_0x4e7f09(0x4eb)](x,this['unitID'],this[_0x4e7f09(0x221)],null,this[_0x4e7f09(0x248)],this[_0x4e7f09(0x47c)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x47b646=this[_0x4e7f09(0x331)]['createInstance'](k,this['unitID'],this[_0x4e7f09(0x221)],this['_pendingMutations'],this['_handler']);return _0x47b646[_0x4e7f09(0x23a)](),_0x47b646['_updateLocalCache'](),_0x47b646;}[_0x57f41f(0x2bd)](_0x332804){const _0x592a1a=_0x57f41f;return this[_0x592a1a(0x32c)](!!(_0x332804!=null&&_0x332804[_0x592a1a(0x245)]));}['toggleOffline'](){const _0x439669=_0x57f41f;return this[_0x439669(0x331)][_0x439669(0x4eb)](G,this[_0x439669(0x36e)],this['type'],this[_0x439669(0x47c)],this[_0x439669(0x248)],this[_0x439669(0x1e5)]);}[_0x57f41f(0x3f6)](){return this;}[_0x57f41f(0x518)](){const _0x2327e8=_0x57f41f;this[_0x2327e8(0x1e5)][_0x2327e8(0x188)](this[_0x2327e8(0x47c)]);}['_onConflict'](_0x5e2f33){const _0xa4da69=_0x57f41f;return this[_0xa4da69(0x331)][_0xa4da69(0x4eb)](F,this[_0xa4da69(0x36e)],this[_0xa4da69(0x221)],null,this[_0xa4da69(0x248)],this[_0xa4da69(0x1e5)],_0x5e2f33);}};B=z([m(0x5,a['Inject'](a[_0x57f41f(0x410)])),m(0x6,a['Inject'](_[_0x57f41f(0x441)])),m(0x7,a[_0x57f41f(0x1ec)](exports['LocalCacheService'])),m(0x8,a[_0x57f41f(0x178)]),m(0x9,a[_0x57f41f(0x162)]),m(0xa,_[_0x57f41f(0x127)]),m(0xb,a['IUndoRedoService'])],B);let F=class extends J{constructor(_0x3ffd26,_0x3559fe,_0x58b0e9,_0x54e771,_0x45b8ed,_0x18fcd3=!0x1,_0x3d2d60,_0x262828,_0x5e3b29,_0x1dcdb4,_0x363912,_0x41e953,_0x297d1d){const _0x42b150=_0x57f41f;super(_0x3ffd26,_0x3559fe,_0x58b0e9,_0x54e771,_0x45b8ed,_0x262828,_0x5e3b29,_0x363912,_0x1dcdb4),u(this,'status',_0x42b150(0x22a)),(this['_isPermissionRej']=_0x18fcd3,this['_permissionService']=_0x3d2d60,this['_localeService']=_0x41e953,this[_0x42b150(0x49a)]=_0x297d1d,this[_0x42b150(0x2c4)](),this[_0x42b150(0x532)](),this['_disableEditing']());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x57f41f(0x13d)](){return this;}['onRemoteRej'](){return this;}[_0x57f41f(0x4f9)](){return this;}[_0x57f41f(0x3f6)](){return this;}[_0x57f41f(0x518)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x57f41f(0x532)](){const _0x715b51=_0x57f41f;this[_0x715b51(0x190)][_0x715b51(0x4dc)](this[_0x715b51(0x36e)],this[_0x715b51(0x221)],null,[]);}['_showConflictNotification'](){const _0x546599=_0x57f41f;this['_isPermissionRej']?this[_0x546599(0x49a)][_0x546599(0x375)]({'title':this[_0x546599(0x3c6)]['t'](_0x546599(0x22f)),'content':this['_localeService']['t']('permission.content'),'type':_0x546599(0x542),'duration':0x0}):this[_0x546599(0x49a)][_0x546599(0x375)]({'title':this[_0x546599(0x3c6)]['t'](_0x546599(0x3ae)),'content':this[_0x546599(0x3c6)]['t'](_0x546599(0x48c)),'type':_0x546599(0x542),'duration':0x0});}['_disableEditing'](){const _0x374d8e=_0x57f41f;this[_0x374d8e(0x1cd)][_0x374d8e(0x2c5)](new C[(_0x374d8e(0x4e0))](this[_0x374d8e(0x36e)])['id'],!0x1);}};F=z([m(0x6,a['Inject'](a[_0x57f41f(0x169)])),m(0x7,a[_0x57f41f(0x178)]),m(0x8,a['IUndoRedoService']),m(0x9,a[_0x57f41f(0x1ec)](exports[_0x57f41f(0x4a8)])),m(0xa,a[_0x57f41f(0x1ec)](_[_0x57f41f(0x441)])),m(0xb,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x405)])),m(0xc,A[_0x57f41f(0x2d1)])],F);let G=class extends J{constructor(_0x1d9655,_0x186b0c,_0x2e690f,_0x21faf0,_0x2ae16a,_0x529cab,_0x4922c9,_0xb36dc8,_0x64bca,_0xfafd1a){const _0x295679=_0x57f41f;super(_0x1d9655,_0x186b0c,_0x2e690f,_0x21faf0,_0x2ae16a,_0x64bca,_0xfafd1a,_0x4922c9,_0xb36dc8),u(this,_0x295679(0x2d7),_0x295679(0x341)),this[_0x295679(0x331)]=_0x529cab;}['appendMutation'](_0x1a58bf){const _0x29c0af=_0x57f41f;return this[_0x29c0af(0x248)]['push'](_0x1a58bf),this[_0x29c0af(0x26b)](),this;}[_0x57f41f(0x4a5)](_0x4d22db){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x57f41f(0x13d)](){const _0x447b55=_0x57f41f;throw new Error(_0x447b55(0x45b));}[_0x57f41f(0x2bd)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x57f41f(0x4f9)](){return this;}[_0x57f41f(0x3f6)](){const _0x4e08da=_0x57f41f,{_injector:_0x9f61ab,_pendingMutations:_0x2fb764,_awaitingChangeset:_0xd47b47,unitID:_0x2b9d7d,_handler:_0x24760c,type:_0x22ceac}=this,_0x2ee948=Ut(_0x9f61ab,_0x2b9d7d,_0x22ceac,_0xd47b47,_0x2fb764,_0x24760c);return _0x2ee948 instanceof k?_0x2ee948[_0x4e08da(0x23a)]():(_0x2ee948 instanceof B||_0x2ee948 instanceof W)&&_0x2ee948[_0x4e08da(0x518)](),_0x2ee948;}[_0x57f41f(0x518)](){const _0x3d90e5=_0x57f41f;throw new Error(_0x3d90e5(0x499));}};G=z([m(0x5,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),m(0x6,a[_0x57f41f(0x1ec)](_['RevisionService'])),m(0x7,a[_0x57f41f(0x1ec)](exports[_0x57f41f(0x4a8)])),m(0x8,a['ICommandService']),m(0x9,a['IUndoRedoService'])],G);let x=class extends J{constructor(_0x55a952,_0x3f0e1b,_0xef856f,_0x484977,_0x4c9acc,_0x56a0cf,_0x2d5c05,_0x2228ec,_0x2e478a,_0x350f24,_0x4eb90c,_0x16bef1,_0x1bb9b2,_0x406131){const _0x49cdfd=_0x57f41f;super(_0x55a952,_0x3f0e1b,_0xef856f,_0x484977,_0x2d5c05,_0x16bef1,_0x1bb9b2,_0x2e478a,_0x350f24),u(this,'status',_0x49cdfd(0x454)),(this[_0x49cdfd(0x155)]=_0x4c9acc,this[_0x49cdfd(0x4f4)]=_0x56a0cf,this['_injector']=_0x2228ec,this[_0x49cdfd(0x181)]=_0x4eb90c,this[_0x49cdfd(0x365)]=_0x406131);}[_0x57f41f(0x356)](_0xfc562){const _0x3942b5=_0x57f41f;try{const _0x177887=[..._0xfc562,...this['_queuedRemoteChangesets']],_0x57dd61=[this['_awaitingChangeset']||this[_0x3942b5(0x155)]][_0x3942b5(0x222)](_0x8d76a9=>!!_0x8d76a9);let _0x1c3426,_0x433061;if(_0x57dd61[_0x3942b5(0x460)]){const _0x1d6a0b=this[_0x3942b5(0x365)]['transformChangesets'](_0x177887,_0x57dd61,!0x1);if(!_[_0x3942b5(0x45f)](_0x1d6a0b))throw _0x1d6a0b[_0x3942b5(0x542)];_0x1c3426=_0x1d6a0b[_0x3942b5(0x19c)],_0x433061=_0x1d6a0b[_0x3942b5(0x31e)];}else _0x1c3426=_0x177887,_0x433061=[];let _0x4fec02=this[_0x3942b5(0x248)];_0x1c3426[_0x3942b5(0x50c)](_0x184f0f=>{const _0x42c585=_0x3942b5;let _0x3cc82f;if(_0x4fec02['length']){const _0x5c6434=this['_transformService'][_0x42c585(0x323)](_0x184f0f,_0x4fec02);if(!_[_0x42c585(0x41b)](_0x5c6434))throw _0x5c6434['error'];_0x3cc82f=_0x5c6434['c1Prime'],_0x4fec02=_0x5c6434['m2Prime'];}else _0x3cc82f=_0x184f0f;this[_0x42c585(0x26a)](_0x3cc82f);}),this[_0x3942b5(0x155)]&&this['_incrementRevisionNumber'](),this[_0x3942b5(0x47c)]&&_0x433061[_0x3942b5(0x460)]&&(_0x433061[0x0]['baseRev']=this[_0x3942b5(0x2c1)]());let _0x580baa;if(this[_0x3942b5(0x47c)]&&_0x4fec02[_0x3942b5(0x460)]!==0x0)_0x580baa=this[_0x3942b5(0x331)]['createInstance'](B,this[_0x3942b5(0x36e)],this[_0x3942b5(0x221)],_0x433061[0x0],_0x4fec02,this[_0x3942b5(0x1e5)]);else{if(this[_0x3942b5(0x47c)]&&_0x4fec02[_0x3942b5(0x460)]===0x0)_0x433061[0x0]['baseRev']=this[_0x3942b5(0x2c1)](),_0x580baa=this[_0x3942b5(0x331)][_0x3942b5(0x4eb)](W,this[_0x3942b5(0x36e)],this[_0x3942b5(0x221)],_0x433061[0x0],this[_0x3942b5(0x1e5)]);else{if(_0x4fec02[_0x3942b5(0x460)]!==0x0){const _0x30d8d0=this[_0x3942b5(0x331)][_0x3942b5(0x4eb)](k,this['unitID'],this[_0x3942b5(0x221)],_0x4fec02,this[_0x3942b5(0x1e5)]);_0x30d8d0[_0x3942b5(0x23a)](),_0x580baa=_0x30d8d0;}else _0x580baa=this['_injector'][_0x3942b5(0x4eb)](ie,this[_0x3942b5(0x36e)],this[_0x3942b5(0x221)],this[_0x3942b5(0x1e5)]);}}return _0x580baa[_0x3942b5(0x26b)](),_0x580baa;}catch(_0x5c1087){return this[_0x3942b5(0x181)][_0x3942b5(0x542)](_0x3942b5(0x379),_0x3942b5(0x141),_0x5c1087),this[_0x3942b5(0x331)]['createInstance'](F,this['unitID'],this['type'],this[_0x3942b5(0x47c)],this[_0x3942b5(0x248)],this['_handler'],!0x1);}}['resend'](){const _0x24d2dc=_0x57f41f;throw new Error(_0x24d2dc(0x1f4));}[_0x57f41f(0x4fa)](_0x1596bd){const _0x3d691f=_0x57f41f;return this[_0x3d691f(0x248)][_0x3d691f(0x2d0)](_0x1596bd),this;}[_0x57f41f(0x4a5)](_0x484ebd){const _0x51bea1=_0x57f41f;return this[_0x51bea1(0x4f4)][_0x51bea1(0x2d0)](_0x484ebd),this;}['onRemoteAck'](_0x349532){const _0x501c1b=_0x57f41f;if(this['_awaitingChangeset'])return this[_0x501c1b(0x155)]=this[_0x501c1b(0x47c)],this[_0x501c1b(0x47c)]=null,this;throw new Error(_0x501c1b(0x1d8));}['onRemoteRej'](_0x51d1de){return this['_onConflict'](!!(_0x51d1de!=null&&_0x51d1de['isPermissionRej']));}[_0x57f41f(0x4f9)](){const _0x16eb04=_0x57f41f;return this[_0x16eb04(0x331)]['createInstance'](G,this['unitID'],this[_0x16eb04(0x221)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x16eb04(0x1e5)]);}['toggleOnline'](){return this;}[_0x57f41f(0x32c)](_0x508d5f){const _0x317a3e=_0x57f41f;return this[_0x317a3e(0x331)]['createInstance'](F,this[_0x317a3e(0x36e)],this[_0x317a3e(0x221)],this[_0x317a3e(0x47c)],this[_0x317a3e(0x248)],this[_0x317a3e(0x1e5)],_0x508d5f);}};x=z([m(0x7,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),m(0x8,a['Inject'](_['RevisionService'])),m(0x9,a[_0x57f41f(0x1ec)](exports['LocalCacheService'])),m(0xa,a[_0x57f41f(0x162)]),m(0xb,a[_0x57f41f(0x178)]),m(0xc,a[_0x57f41f(0x24e)]),m(0xd,_[_0x57f41f(0x127)])],x);function Ut(_0x1e1ba9,_0x26cb7f,_0x3919f4,_0x144e7f,_0x23cd0b,_0x33361f){const _0xb75605=_0x57f41f;return _0x144e7f&&_0x23cd0b[_0xb75605(0x460)]?_0x1e1ba9[_0xb75605(0x4eb)](B,_0x26cb7f,_0x3919f4,_0x144e7f,_0x23cd0b,_0x33361f):_0x144e7f?_0x1e1ba9[_0xb75605(0x4eb)](W,_0x26cb7f,_0x3919f4,_0x144e7f,_0x33361f):_0x23cd0b[_0xb75605(0x460)]?_0x1e1ba9[_0xb75605(0x4eb)](k,_0x26cb7f,_0x3919f4,_0x23cd0b,_0x33361f):_0x1e1ba9['createInstance'](ie,_0x26cb7f,_0x3919f4,_0x33361f);}var Ks=Object[_0x57f41f(0x522)],Xs=Object[_0x57f41f(0x191)],ze=(_0x4491f8,_0x4a0f20,_0x3e73e9,_0x3a0245)=>{for(var _0x509773=_0x3a0245>0x1?void 0x0:_0x3a0245?Xs(_0x4a0f20,_0x3e73e9):_0x4a0f20,_0x4ff453=_0x4491f8['length']-0x1,_0x53fbc6;_0x4ff453>=0x0;_0x4ff453--)(_0x53fbc6=_0x4491f8[_0x4ff453])&&(_0x509773=(_0x3a0245?_0x53fbc6(_0x4a0f20,_0x3e73e9,_0x509773):_0x53fbc6(_0x509773))||_0x509773);return _0x3a0245&&_0x509773&&Ks(_0x4a0f20,_0x3e73e9,_0x509773),_0x509773;},I=(_0x182b4f,_0x2a865b)=>(_0x4ce9fb,_0x308e23)=>_0x2a865b(_0x4ce9fb,_0x308e23,_0x182b4f);exports[_0x57f41f(0x500)]=class extends a[_0x57f41f(0x1c5)]{constructor(_0x276f3,_0x3aa281,_0x41fc0f,_0x12e99f,_0x3c35f9,_0x42739b,_0x2cf555,_0x5c7cb6,_0x167acf,_0x111666,_0x30da48,_0x1cb088,_0x2cb282){const _0x24cba7=_0x57f41f;super(),u(this,'_state$',new v[(_0x24cba7(0x3ab))](null)),u(this,_0x24cba7(0x17a),this[_0x24cba7(0x1ed)][_0x24cba7(0x41e)]()),u(this,_0x24cba7(0x3c2)),u(this,_0x24cba7(0x380),!0x1),u(this,_0x24cba7(0x16a),''),u(this,_0x24cba7(0x1e7),0x0),u(this,'status$',this[_0x24cba7(0x17a)]['pipe'](v[_0x24cba7(0x366)](_0x15305e=>_0x15305e?_0x15305e[_0x24cba7(0x2d7)]:U[_0x24cba7(0x2d2)]),v[_0x24cba7(0x320)](0x1))),u(this,'_transitionLocked',!0x1),u(this,'_remoteChangesetQueue',[]),(this['unitID']=_0x276f3,this['session']=_0x3aa281,this[_0x24cba7(0x1b2)]=_0x41fc0f,this[_0x24cba7(0x331)]=_0x12e99f,this[_0x24cba7(0x190)]=_0x3c35f9,this['_compressMutationService']=_0x42739b,this[_0x24cba7(0x3c6)]=_0x2cf555,this[_0x24cba7(0x51e)]=_0x5c7cb6,this[_0x24cba7(0x181)]=_0x167acf,this[_0x24cba7(0x547)]=_0x111666,this[_0x24cba7(0x4b9)]=_0x30da48,this['_permissionService']=_0x1cb088,this['_singleActiveUnitService']=_0x2cb282);}get[_0x57f41f(0x1d9)](){const _0x6f1bf4=_0x57f41f;return this[_0x6f1bf4(0x3c2)];}async[_0x57f41f(0x350)](){const _0x14e2e5=_0x57f41f;if(this['state'])throw new Error(_0x14e2e5(0x1f8));await this['_init']();}[_0x57f41f(0x4f1)](){return this['_collaborationPaused']=!0x0,a['toDisposable'](()=>{const _0x1b3c06=_0x1fa7;this[_0x1b3c06(0x380)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x57f41f(0x306)](_0x334bad){const _0x28a4f1=_0x57f41f;this[_0x28a4f1(0x3c2)]=_0x334bad,this[_0x28a4f1(0x1ed)][_0x28a4f1(0x49c)](_0x334bad);}async[_0x57f41f(0x326)](){const _0x3bde99=_0x57f41f;var _0x41c4ed;this[_0x3bde99(0x306)](await this['_createInitialState']()),this[_0x3bde99(0x452)]&&((_0x41c4ed=this[_0x3bde99(0x452)])==null||_0x41c4ed['editingUnit'](this['unitID']),this[_0x3bde99(0x1e2)](this[_0x3bde99(0x452)][_0x3bde99(0x1e1)](this[_0x3bde99(0x36e)])[_0x3bde99(0x3ee)](_0x535654=>{const _0x29bc27=_0x3bde99;this[_0x29bc27(0x181)][_0x29bc27(0x2e5)]('[CollaborationEntity]',_0x29bc27(0x40f),_0x535654),_0x535654===Dt[_0x29bc27(0x53e)]?(this['_messageService'][_0x29bc27(0x375)]({'content':this[_0x29bc27(0x3c6)]['t'](_0x29bc27(0x1d3)),'type':X[_0x29bc27(0x1cf)][_0x29bc27(0x1b4)]}),this['_permissionService']['updatePermissionPoint'](new C[(_0x29bc27(0x4e0))](this[_0x29bc27(0x36e)])['id'],!0x1)):this[_0x29bc27(0x1cd)][_0x29bc27(0x2c5)](new C[(_0x29bc27(0x4e0))](this['unitID'])['id'],!0x0);})));let _0x1cda47=!0x1;return this[_0x3bde99(0x1e2)](this['session'][_0x3bde99(0x1bd)][_0x3bde99(0x3ee)](_0x21171f=>{const _0x4241fd=_0x3bde99;_0x21171f===H[_0x4241fd(0x436)]?this[_0x4241fd(0x284)](_0x1cda47):_0x21171f===H[_0x4241fd(0x2d2)]&&(_0x1cda47=!0x0,this['_toggleOffline']());})),this['disposeWithMe'](this[_0x3bde99(0x3dd)][_0x3bde99(0x438)][_0x3bde99(0x3ee)](_0x5642b1=>{const _0x2cdaca=_0x3bde99;try{switch(_0x5642b1[_0x2cdaca(0x538)]){case _[_0x2cdaca(0x48e)]['NEW_CHANGESETS']:{this[_0x2cdaca(0x4c3)](_[_0x2cdaca(0x33b)](_0x5642b1[_0x2cdaca(0x198)]));break;}case _[_0x2cdaca(0x48e)][_0x2cdaca(0x269)]:{this['_onRemoteACK'](_0x5642b1[_0x2cdaca(0x198)]);break;}case _[_0x2cdaca(0x48e)]['CHANGESET_REJ']:{this['_onRemoteRejected']();break;}case _[_0x2cdaca(0x48e)][_0x2cdaca(0x330)]:{this[_0x2cdaca(0x246)](_0x5642b1[_0x2cdaca(0x198)]['changesets'][_0x2cdaca(0x366)](_0x55ea7c=>_[_0x2cdaca(0x33b)](_0x55ea7c)));break;}case _['CollaborationEvent'][_0x2cdaca(0x4d2)]:this[_0x2cdaca(0x12f)]({'isPermissionRej':!0x0});}}catch(_0x5b0d03){throw console[_0x2cdaca(0x542)](_0x2cdaca(0x325),_0x5b0d03),_0x5b0d03;}})),this[_0x3bde99(0x3c2)];}[_0x57f41f(0x36f)](){const _0x405f60=_0x57f41f;this[_0x405f60(0x418)]=!0x1;}[_0x57f41f(0x370)](){const _0x98698d=_0x57f41f;if(this[_0x98698d(0x418)])throw new Error(_0x98698d(0x377));this[_0x98698d(0x418)]=!0x0;}['_onLocalMutation'](_0x21a6e9){const _0x339e8a=_0x57f41f;this[_0x339e8a(0x370)](),this[_0x339e8a(0x306)](this[_0x339e8a(0x3c2)][_0x339e8a(0x4fa)](_0x21a6e9)),this[_0x339e8a(0x36f)]();}[_0x57f41f(0x4c3)](_0x522ba9){const _0x4014e3=_0x57f41f;if(!(_0x522ba9['revision']<=this[_0x4014e3(0x51e)][_0x4014e3(0x52e)](this['unitID']))){if(this[_0x4014e3(0x380)]){this['_remoteChangesetQueue']['push'](_0x522ba9);return;}this[_0x4014e3(0x2bc)](_0x522ba9);}}['_exhaustRemoteChangesetQueue'](){const _0x276fbb=_0x57f41f;this[_0x276fbb(0x34e)]['forEach'](_0x28adad=>this[_0x276fbb(0x2bc)](_0x28adad)),this['_remoteChangesetQueue']=[];}[_0x57f41f(0x2bc)](_0x152827){const _0x3049d9=_0x57f41f,_0x5e24c7=this[_0x3049d9(0x314)][_0x3049d9(0x267)][_0x3049d9(0x296)](this[_0x3049d9(0x314)][_0x3049d9(0x267)][_0x3049d9(0x1e3)]()['COMPRESS_MUTATION_APPLY'])(_0x152827['mutations'],null)||_0x152827['mutations'],_0x3f0d72={..._0x152827,'mutations':_0x5e24c7};this['_lockTransition'](),this[_0x3049d9(0x306)](this[_0x3049d9(0x3c2)]['onRemoteChangeset'](_0x3f0d72)),this[_0x3049d9(0x36f)]();}[_0x57f41f(0x165)](_0x1d214a){const _0x5d2269=_0x57f41f;this[_0x5d2269(0x370)](),this[_0x5d2269(0x306)](this[_0x5d2269(0x3c2)][_0x5d2269(0x13d)](_0x1d214a)),this['_unlockTransition']();}[_0x57f41f(0x12f)](_0x48bbe7){const _0x3166f9=_0x57f41f;this['_lockTransition'](),this[_0x3166f9(0x306)](this[_0x3166f9(0x3c2)][_0x3166f9(0x2bd)](_0x48bbe7)),this['_unlockTransition']();}[_0x57f41f(0x246)](_0x2cf962){const _0x33cfe3=_0x57f41f;if(!(this[_0x33cfe3(0x3c2)]instanceof x))throw new TypeError(_0x33cfe3(0x3cd));const _0x1738cc=_0x2cf962[_0x33cfe3(0x366)](_0x16fcc3=>{const _0x2833c2=_0x33cfe3,_0x19fef8=this['_compressMutationService'][_0x2833c2(0x267)][_0x2833c2(0x296)](this[_0x2833c2(0x314)]['interceptor'][_0x2833c2(0x1e3)]()[_0x2833c2(0x471)])(_0x16fcc3[_0x2833c2(0x506)],null)||_0x16fcc3['mutations'];return{..._0x16fcc3,'mutations':_0x19fef8};});this[_0x33cfe3(0x370)](),this[_0x33cfe3(0x306)](this[_0x33cfe3(0x3c2)][_0x33cfe3(0x356)](_0x1738cc)),this['_unlockTransition']();}[_0x57f41f(0x49d)](){const _0x1ee596=_0x57f41f;this[_0x1ee596(0x370)](),this[_0x1ee596(0x306)](this[_0x1ee596(0x3c2)][_0x1ee596(0x4f9)]()),this[_0x1ee596(0x36f)]();}[_0x57f41f(0x284)](_0xd8fbd4=!0x1){const _0x33798d=_0x57f41f;this[_0x33798d(0x370)](),this[_0x33798d(0x306)](this[_0x33798d(0x3c2)][_0x33798d(0x3f6)]()),this[_0x33798d(0x36f)]();const _0x3882c3=this[_0x33798d(0x3c2)];_0xd8fbd4&&_0x3882c3 instanceof ie&&(this[_0x33798d(0x370)](),this['_updateState'](_0x3882c3[_0x33798d(0x516)]()),this[_0x33798d(0x36f)]());}async[_0x57f41f(0x29e)](){return new Promise(_0xd61655=>{const _0x41648a=_0x1fa7;this['session'][_0x41648a(0x1bd)][_0x41648a(0x4bb)](v[_0x41648a(0x241)](0x1))[_0x41648a(0x3ee)](async _0x1823e5=>{const _0x18ba7f=_0x41648a;_0xd61655(await this[_0x18ba7f(0x1c3)](_0x1823e5===H[_0x18ba7f(0x436)]));});});}[_0x57f41f(0x52a)](){const _0x46e88b=_0x57f41f,_0x234862=this[_0x46e88b(0x36e)];return{'onStateChange':(_0x5288fb,_0x5d9afe)=>{const _0x23e4a9=_0x46e88b;if(_0x5288fb!==this[_0x23e4a9(0x3c2)])throw new Error(_0x23e4a9(0x403)+_0x5288fb[_0x23e4a9(0x2d7)]+_0x23e4a9(0x1a8)+_0x5d9afe[_0x23e4a9(0x2d7)]+_0x23e4a9(0x288)+this[_0x23e4a9(0x3c2)][_0x23e4a9(0x2d7)]);this[_0x23e4a9(0x306)](_0x5d9afe);},'onSendChangeset':_0x551bef=>{const _0x102a55=_0x46e88b;_0x551bef[_0x102a55(0x31b)]||(_0x551bef['sid']=this[_0x102a55(0x16a)],_0x551bef['reqId']=++this[_0x102a55(0x1e7)]);const _0x470b0a={'eventID':_[_0x102a55(0x48e)][_0x102a55(0x389)],'data':{'unitID':_0x551bef['unitID'],'unitType':this[_0x102a55(0x1b2)],'changeset':_0x551bef,'memberID':this[_0x102a55(0x3dd)][_0x102a55(0x145)]()}};this[_0x102a55(0x3dd)][_0x102a55(0x47b)](_0x470b0a,this[_0x102a55(0x36e)]);},'onMissingChangesets':({from:_0x4fc8d7,to:_0x52db7b})=>{const _0x5698d5=_0x46e88b;this[_0x5698d5(0x181)]['debug']('[CollaborationEntity]',_0x5698d5(0x39f)+_0x4fc8d7+_0x5698d5(0x29f)+_0x52db7b);const _0x1cbf58={'eventID':_[_0x5698d5(0x48e)][_0x5698d5(0x27a)],'data':{'unitID':_0x234862,'unitType':this[_0x5698d5(0x1b2)],'from':_0x4fc8d7,'to':_0x52db7b}};this[_0x5698d5(0x3dd)]['send'](_0x1cbf58,this[_0x5698d5(0x36e)]);}};}async[_0x57f41f(0x1c3)](_0x597736){const _0x2ffafc=_0x57f41f;var _0x3e746d,_0x598800;const _0x8a62a9=await this[_0x2ffafc(0x190)][_0x2ffafc(0x1e0)](this[_0x2ffafc(0x36e)]),_0x22b7ea=(_0x3e746d=_0x8a62a9==null?void 0x0:_0x8a62a9['mutations'])!=null?_0x3e746d:[],_0xa1ee0f=(_0x598800=_0x8a62a9==null?void 0x0:_0x8a62a9[_0x2ffafc(0x47a)])!=null?_0x598800:null,_0x395430=!!(_0xa1ee0f!=null&&_0xa1ee0f[_0x2ffafc(0x31b)])&&!!(_0xa1ee0f!=null&&_0xa1ee0f['reqId']);this[_0x2ffafc(0x16a)]=_0x395430?_0xa1ee0f['sid']:Os(),this[_0x2ffafc(0x1e7)]=_0x395430?_0xa1ee0f[_0x2ffafc(0x40e)]:0x0;const _0x45a7cc=this[_0x2ffafc(0x36e)];try{this['_replayCachedMutations'](_0xa1ee0f,_0x22b7ea);}catch(_0xc4e2bd){this[_0x2ffafc(0x181)][_0x2ffafc(0x542)](_0xc4e2bd);}const _0x2120eb=this['_createHandler']();if(_0x597736){const _0x1de360=Ut(this['_injector'],_0x45a7cc,this['_type'],_0xa1ee0f,_0x22b7ea,_0x2120eb);return _0x1de360 instanceof k?_0x1de360[_0x2ffafc(0x23a)]():(_0x1de360 instanceof B||_0x1de360 instanceof W)&&_0x1de360[_0x2ffafc(0x518)](),_0x1de360;}return this[_0x2ffafc(0x331)][_0x2ffafc(0x4eb)](G,_0x45a7cc,this['_type'],_0xa1ee0f,_0x22b7ea,_0x2120eb);}[_0x57f41f(0x17b)](_0x42ffcf,_0x1cde6c){const _0x4c2000=_0x57f41f;var _0xa1fb3c,_0x3299ee;const _0x35d7dd=this[_0x4c2000(0x314)]['interceptor'][_0x4c2000(0x296)](this['_compressMutationService'][_0x4c2000(0x267)]['getInterceptPoints']()[_0x4c2000(0x471)]);(_0xa1fb3c=_0x35d7dd((_0x42ffcf==null?void 0x0:_0x42ffcf[_0x4c2000(0x506)])||[],null))==null||_0xa1fb3c[_0x4c2000(0x50c)](_0x246ee9=>this['_commandService']['executeCommand'](_0x246ee9['id'],_0x246ee9[_0x4c2000(0x15b)])),(_0x3299ee=_0x35d7dd(_0x1cde6c||[],null))==null||_0x3299ee[_0x4c2000(0x50c)](_0x425704=>this[_0x4c2000(0x547)][_0x4c2000(0x449)](_0x425704['id'],_0x425704['params']));}},exports['CollaborationEntity']=ze([I(0x3,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),I(0x4,a['Inject'](exports['LocalCacheService'])),I(0x5,a['Inject'](_[_0x57f41f(0x45a)])),I(0x6,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x405)])),I(0x7,a[_0x57f41f(0x1ec)](_[_0x57f41f(0x441)])),I(0x8,a[_0x57f41f(0x162)]),I(0x9,a[_0x57f41f(0x178)]),I(0xa,A[_0x57f41f(0x34b)]),I(0xb,a[_0x57f41f(0x169)]),I(0xc,a[_0x57f41f(0x177)](Re))],exports['CollaborationEntity']),exports[_0x57f41f(0x223)]=class extends exports['CollaborationEntity']{constructor(_0x285ab6,_0x1a34d4,_0x26e5a1,_0x9a7082,_0x8b166a,_0x4de861,_0x58b8b7,_0x2c0232,_0x2b7d84,_0x2eaea1,_0x2e9301,_0x159596,_0x4768dd,_0x4eda77,_0x2a1bdc,_0x5723ba,_0x2e3af6){const _0xa15324=_0x57f41f;super(_0x285ab6,_0x26e5a1,_0x1a34d4,_0x9a7082,_0x8b166a,_0x4de861,_0x58b8b7,_0x2c0232,_0x4768dd,_0x4eda77,_0x2a1bdc,_0x5723ba,_0x2e3af6),this['unitID']=_0x285ab6,this['type']=_0x1a34d4,this['_docStateChangeManagerService']=_0x2b7d84,this['_docTransformIMECacheService']=_0x2eaea1,this[_0xa15324(0x1da)]=_0x2e9301,this[_0xa15324(0x2ed)]=_0x159596;}[_0x57f41f(0x52a)](){const _0x507670=_0x57f41f,_0xc9b482=super['_createHandler']();return _0xc9b482[_0x507670(0x307)]=_0x215b13=>this[_0x507670(0x425)]['transformIMECache'](_0x215b13),_0xc9b482[_0x507670(0x230)]=_0x4ba217=>this['_docTransformSelectionsService'][_0x507670(0x357)](_0x4ba217),_0xc9b482[_0x507670(0x43f)]=_0x16da33=>this['_docSyncEditingCollabCursorService'][_0x507670(0x2ff)](_0x16da33),_0xc9b482['onTransformRemoteChangesetByIMECache']=_0x4efe3d=>this[_0x507670(0x425)]['transformRemoteChangeset'](_0x4efe3d),_0xc9b482;}async['_init'](){const _0xcca41a=_0x57f41f,_0x6dc074=await super[_0xcca41a(0x326)]();return this[_0xcca41a(0x2cf)]['docStateChange$'][_0xcca41a(0x4bb)](v[_0xcca41a(0x12b)](this['dispose$']))[_0xcca41a(0x3ee)](_0x1b3935=>{const _0x31de68=_0xcca41a;if(_0x1b3935==null)return;const {unitId:_0x2f118f,redoState:_0x273678,commandId:_0x2bdc9b}=_0x1b3935;if(_0x2f118f!==this[_0x31de68(0x36e)])return;const _0x19ceae={'id':_0x2bdc9b,'type':a[_0x31de68(0x4a7)][_0x31de68(0x385)],'params':{'unitId':_0x2f118f,'actions':_0x273678['actions'],'textRanges':null}};this[_0x31de68(0x252)](_0x19ceae);}),_0x6dc074;}},exports[_0x57f41f(0x223)]=ze([I(0x3,a['Inject'](a[_0x57f41f(0x410)])),I(0x4,a[_0x57f41f(0x1ec)](exports['LocalCacheService'])),I(0x5,a[_0x57f41f(0x1ec)](_[_0x57f41f(0x45a)])),I(0x6,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x405)])),I(0x7,a[_0x57f41f(0x1ec)](_[_0x57f41f(0x441)])),I(0x8,a['Inject'](N[_0x57f41f(0x345)])),I(0x9,a[_0x57f41f(0x1ec)](fe)),I(0xa,a[_0x57f41f(0x1ec)](pe)),I(0xb,a[_0x57f41f(0x1ec)](qe)),I(0xc,a['ILogService']),I(0xd,a[_0x57f41f(0x178)]),I(0xe,A[_0x57f41f(0x34b)]),I(0xf,a['IPermissionService']),I(0x10,a[_0x57f41f(0x177)](Re))],exports[_0x57f41f(0x223)]),exports['SheetCollaborationEntity']=class extends exports[_0x57f41f(0x500)]{constructor(_0x1e47b2,_0x51c15e,_0x31e2f7,_0x2f0f7a,_0xd6747a,_0x3f87cc,_0x3bfe3b,_0x27915e,_0x1852ad,_0x54786d,_0x3ae82d,_0x3e28a0,_0x5e9daa,_0x4135c3){const _0x319961=_0x57f41f;super(_0x1e47b2,_0x31e2f7,_0x51c15e,_0x2f0f7a,_0xd6747a,_0x3f87cc,_0x3bfe3b,_0x27915e,_0x54786d,_0x3ae82d,_0x3e28a0,_0x5e9daa,_0x4135c3),this[_0x319961(0x36e)]=_0x1e47b2,this[_0x319961(0x221)]=_0x51c15e,this['_sheetTransformSelectionsService']=_0x1852ad;}['_createHandler'](){const _0x452fa5=_0x57f41f,_0x2fe3d2=super[_0x452fa5(0x52a)]();return _0x2fe3d2[_0x452fa5(0x230)]=_0x503aef=>this['_sheetTransformSelectionsService'][_0x452fa5(0x357)](_0x503aef),_0x2fe3d2;}async[_0x57f41f(0x326)](){const _0x59611a=_0x57f41f,_0x1bf2ce=await super['_init']();return this[_0x59611a(0x1e2)](this[_0x59611a(0x547)][_0x59611a(0x36c)]((_0x5bdd1f,_0x559284)=>{const _0x471e92=_0x59611a;if(_0x5bdd1f[_0x471e92(0x221)]!==a['CommandType'][_0x471e92(0x385)]||_0x559284!=null&&_0x559284[_0x471e92(0x25a)]||_0x559284!=null&&_0x559284[_0x471e92(0x1b3)])return;const _0x476762=_0x5bdd1f['params'];if((_0x476762==null?void 0x0:_0x476762[_0x471e92(0x1d1)])!==this['unitID'])return;const _0x31bab2=_0x5bdd1f,_0x5787dc=this['_compressMutationService'][_0x471e92(0x267)][_0x471e92(0x296)](this[_0x471e92(0x314)][_0x471e92(0x267)]['getInterceptPoints']()[_0x471e92(0x433)])([_0x31bab2],null)||[_0x31bab2];this[_0x471e92(0x252)](_0x5787dc[0x0]);})),_0x1bf2ce;}},exports[_0x57f41f(0x374)]=ze([I(0x3,a[_0x57f41f(0x1ec)](a['Injector'])),I(0x4,a['Inject'](exports[_0x57f41f(0x4a8)])),I(0x5,a['Inject'](_[_0x57f41f(0x45a)])),I(0x6,a['Inject'](a[_0x57f41f(0x405)])),I(0x7,a[_0x57f41f(0x1ec)](_['RevisionService'])),I(0x8,a[_0x57f41f(0x1ec)](Ie)),I(0x9,a[_0x57f41f(0x162)]),I(0xa,a[_0x57f41f(0x178)]),I(0xb,A[_0x57f41f(0x34b)]),I(0xc,a[_0x57f41f(0x169)]),I(0xd,a[_0x57f41f(0x177)](Re))],exports['SheetCollaborationEntity']);var qs=Object[_0x57f41f(0x522)],zs=Object[_0x57f41f(0x191)],Js=(_0x305936,_0x536906,_0x35c908,_0x5d14bd)=>{const _0x2ce411=_0x57f41f;for(var _0x13dd79=_0x5d14bd>0x1?void 0x0:_0x5d14bd?zs(_0x536906,_0x35c908):_0x536906,_0x3f15d5=_0x305936[_0x2ce411(0x460)]-0x1,_0x172043;_0x3f15d5>=0x0;_0x3f15d5--)(_0x172043=_0x305936[_0x3f15d5])&&(_0x13dd79=(_0x5d14bd?_0x172043(_0x536906,_0x35c908,_0x13dd79):_0x172043(_0x13dd79))||_0x13dd79);return _0x5d14bd&&_0x13dd79&&qs(_0x536906,_0x35c908,_0x13dd79),_0x13dd79;},Ne=(_0x5f0839,_0x46f00b)=>(_0x3848b5,_0x47711c)=>_0x46f00b(_0x3848b5,_0x47711c,_0x5f0839);exports[_0x57f41f(0x34d)]=class extends a['RxDisposable']{constructor(_0x5412ca,_0x4438ff,_0x41ea0e){const _0x553826=_0x57f41f;super(),u(this,_0x553826(0x3b5),new Map()),u(this,_0x553826(0x445),new v[(_0x553826(0x54c))]()),(this[_0x553826(0x331)]=_0x5412ca,this[_0x553826(0x4e7)]=_0x4438ff,this['_univerInstanceService']=_0x41ea0e,this[_0x553826(0x326)]());}[_0x57f41f(0x3a4)](){const _0x7fb2b6=_0x57f41f;super['dispose'](),this[_0x7fb2b6(0x3b5)][_0x7fb2b6(0x50c)](_0x44a5da=>_0x44a5da[_0x7fb2b6(0x3a4)]()),this[_0x7fb2b6(0x3b5)][_0x7fb2b6(0x159)]();}['getCollabEntity'](_0x345efd){const _0x3b55e3=_0x57f41f;var _0x22593e;return(_0x22593e=this[_0x3b55e3(0x3b5)]['get'](_0x345efd))!=null?_0x22593e:null;}[_0x57f41f(0x4c9)](_0x284c4f){const _0x4fe5b9=_0x57f41f,_0x24d290=this[_0x4fe5b9(0x3a8)](_0x284c4f);return _0x24d290?v['of'](_0x24d290):this[_0x4fe5b9(0x445)][_0x4fe5b9(0x4bb)](E[_0x4fe5b9(0x222)](_0x1f8439=>_0x1f8439[_0x4fe5b9(0x36e)]===_0x284c4f));}['_init'](){const _0x3eda20=_0x57f41f;this[_0x3eda20(0x131)][_0x3eda20(0x317)](a[_0x3eda20(0x4f6)]['UNIVER_SHEET'])[_0x3eda20(0x4bb)](v[_0x3eda20(0x12b)](this[_0x3eda20(0x43a)]),E[_0x3eda20(0x4d8)](0x10))['subscribe'](async _0x4d2081=>{const _0x18f0e0=_0x3eda20,_0x145db4=_0x4d2081[_0x18f0e0(0x263)](),_0x534aea=await this[_0x18f0e0(0x4e2)](_0x145db4,$['UNIVER_SHEET']);this[_0x18f0e0(0x3b5)][_0x18f0e0(0x20b)](_0x145db4,_0x534aea);}),this[_0x3eda20(0x131)][_0x3eda20(0x317)](a[_0x3eda20(0x4f6)][_0x3eda20(0x1a7)])[_0x3eda20(0x4bb)](v[_0x3eda20(0x12b)](this['dispose$']),E[_0x3eda20(0x4d8)](0x10))[_0x3eda20(0x4bb)](E[_0x3eda20(0x222)](_0x1e5d0a=>!_0x1e5d0a[_0x3eda20(0x263)]()['startsWith']('__')))[_0x3eda20(0x3ee)](async _0x16354b=>{const _0x475fdf=_0x3eda20,_0x469db3=_0x16354b[_0x475fdf(0x263)](),_0x417fe5=await this['_startCollaboration'](_0x469db3,$[_0x475fdf(0x1a7)]);this[_0x475fdf(0x3b5)][_0x475fdf(0x20b)](_0x469db3,_0x417fe5);}),v['merge'](this[_0x3eda20(0x131)][_0x3eda20(0x41f)](a[_0x3eda20(0x4f6)][_0x3eda20(0x197)]),this[_0x3eda20(0x131)][_0x3eda20(0x41f)](a[_0x3eda20(0x4f6)][_0x3eda20(0x1a7)]))[_0x3eda20(0x4bb)](v['takeUntil'](this[_0x3eda20(0x43a)]))[_0x3eda20(0x3ee)](_0x51ec95=>{const _0x13141c=_0x3eda20,_0x120721=_0x51ec95['getUnitId'](),_0x3dc516=this[_0x13141c(0x3b5)][_0x13141c(0x31f)](_0x120721);_0x3dc516&&(_0x3dc516[_0x13141c(0x3a4)](),this[_0x13141c(0x3b5)][_0x13141c(0x3e0)](_0x120721));});}async[_0x57f41f(0x4e2)](_0x563813,_0x598680){const _0x41e671=_0x57f41f,_0x4bd73f=await this[_0x41e671(0x4e7)][_0x41e671(0x2b6)](_0x563813),_0xb77896=this[_0x41e671(0x331)][_0x41e671(0x4eb)](this[_0x41e671(0x360)](_0x598680),_0x563813,_0x598680,_0x4bd73f);return await _0xb77896[_0x41e671(0x350)](),this[_0x41e671(0x445)][_0x41e671(0x49c)](_0xb77896),_0xb77896;}['_getCtorByUniverType'](_0x469955){const _0x434f50=_0x57f41f;switch(_0x469955){case $['UNIVER_DOC']:return exports[_0x434f50(0x223)];case $[_0x434f50(0x197)]:return exports[_0x434f50(0x374)];default:throw new Error(_0x434f50(0x4db)+_0x469955);}}},exports[_0x57f41f(0x34d)]=Js([Ne(0x0,a[_0x57f41f(0x1ec)](a['Injector'])),Ne(0x1,a[_0x57f41f(0x1ec)](exports[_0x57f41f(0x19b)])),Ne(0x2,a['IUniverInstanceService'])],exports['CollaborationController']);const ct=[_0x57f41f(0x211),_0x57f41f(0x3fd),'verdancy600',_0x57f41f(0x2f0),_0x57f41f(0x40b),'gold400'];function _0x1fa7(_0x109946,_0x1a1c7e){const _0xf60c29=_0xf60c();return _0x1fa7=function(_0x1fa7f7,_0x56247){_0x1fa7f7=_0x1fa7f7-0x127;let _0x434c81=_0xf60c29[_0x1fa7f7];return _0x434c81;},_0x1fa7(_0x109946,_0x1a1c7e);}class Je extends a['Disposable']{constructor(){const _0x4372e2=_0x57f41f;super(...arguments),u(this,_0x4372e2(0x3f7),new Map()),u(this,_0x4372e2(0x135),0x0);}['assignAColorForMemberID'](_0x32d57f){const _0x4222da=_0x57f41f;if(this['_assignedColors'][_0x4222da(0x2c9)](_0x32d57f))return this['_assignedColors']['get'](_0x32d57f);const _0x5818e5=ct[this[_0x4222da(0x135)]];return this[_0x4222da(0x135)]=(this[_0x4222da(0x135)]+0x1)%ct[_0x4222da(0x460)],this['_assignedColors'][_0x4222da(0x20b)](_0x32d57f,_0x5818e5),_0x5818e5;}}var Zs=Object[_0x57f41f(0x522)],Qs=Object[_0x57f41f(0x191)],ei=(_0x364a50,_0x375c95,_0xb0d0a6,_0xd7c747)=>{for(var _0x57d125=_0xd7c747>0x1?void 0x0:_0xd7c747?Qs(_0x375c95,_0xb0d0a6):_0x375c95,_0x1ac66d=_0x364a50['length']-0x1,_0x21e068;_0x1ac66d>=0x0;_0x1ac66d--)(_0x21e068=_0x364a50[_0x1ac66d])&&(_0x57d125=(_0xd7c747?_0x21e068(_0x375c95,_0xb0d0a6,_0x57d125):_0x21e068(_0x57d125))||_0x57d125);return _0xd7c747&&_0x57d125&&Zs(_0x375c95,_0xb0d0a6,_0x57d125),_0x57d125;},K=(_0x27f190,_0x118078)=>(_0x3acc5f,_0x49f743)=>_0x118078(_0x3acc5f,_0x49f743,_0x27f190);const ti=0x12c,si=0x64;let ke=class extends a[_0x57f41f(0x1c5)]{constructor(_0x4364d2,_0x48398d,_0x33c43a,_0x1794eb,_0xba900e,_0x48d431,_0x3b239e,_0x1446aa,_0x53be6d){const _0x5507cd=_0x57f41f;super(),u(this,_0x5507cd(0x32d),!0x1),u(this,_0x5507cd(0x326),!0x1),u(this,_0x5507cd(0x329),new v[(_0x5507cd(0x3ab))](new Map())),u(this,_0x5507cd(0x260),this[_0x5507cd(0x329)]['asObservable']()),u(this,_0x5507cd(0x4e8),new v[(_0x5507cd(0x3ab))]([])),u(this,_0x5507cd(0x18f),this[_0x5507cd(0x4e8)][_0x5507cd(0x4bb)](v[_0x5507cd(0x49b)](ti))),u(this,'_updateLocalCursor',a[_0x5507cd(0x189)](_0x247eaf=>{const _0x1d3bc0=_0x5507cd,_0x1bd4fa={'eventID':_[_0x1d3bc0(0x48e)][_0x1d3bc0(0x153)],'data':{'unitID':this[_0x1d3bc0(0x36e)],'memberID':this[_0x1d3bc0(0x2cd)]['getMemberID'](),'selection':yt(_0x247eaf)}};this[_0x1d3bc0(0x2cd)][_0x1d3bc0(0x47b)](_0x1bd4fa,this[_0x1d3bc0(0x36e)]);},si)),(this[_0x5507cd(0x36e)]=_0x4364d2,this['_session']=_0x48398d,this[_0x5507cd(0x331)]=_0x33c43a,this[_0x5507cd(0x3f4)]=_0x1794eb,this['_memberService']=_0xba900e,this[_0x5507cd(0x40d)]=_0x48d431,this[_0x5507cd(0x365)]=_0x3b239e,this[_0x5507cd(0x131)]=_0x1446aa,this[_0x5507cd(0x547)]=_0x53be6d);}get['cursorInfo'](){const _0x36dcfd=_0x57f41f;return this[_0x36dcfd(0x329)]['getValue']();}get[_0x57f41f(0x234)](){return this['_roomMembers$']['getValue']();}[_0x57f41f(0x3a4)](){const _0x356825=_0x57f41f;super[_0x356825(0x3a4)](),this['_cursorInfo$']['next'](new Map()),this[_0x356825(0x329)][_0x356825(0x4a4)](),this[_0x356825(0x4e8)]['next']([]),this[_0x356825(0x4e8)]['complete']();}[_0x57f41f(0x350)](){const _0x51e017=_0x57f41f;this[_0x51e017(0x326)]||(this[_0x51e017(0x326)]=!0x0,this[_0x51e017(0x2cd)]['sessionStatus$'][_0x51e017(0x4bb)](v[_0x51e017(0x12b)](this[_0x51e017(0x43a)]))['subscribe'](_0x5ebee3=>{const _0x369f99=_0x51e017;_0x5ebee3===H[_0x369f99(0x436)]?this[_0x369f99(0x284)]():this[_0x369f99(0x49d)]();}),this[_0x51e017(0x2cd)]['event$'][_0x51e017(0x4bb)](v[_0x51e017(0x12b)](this[_0x51e017(0x43a)]))[_0x51e017(0x3ee)](_0x401de4=>{const _0x48eea7=_0x51e017,_0x4269fc=_0x401de4[_0x48eea7(0x538)];_0x4269fc===_[_0x48eea7(0x48e)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x401de4),_0x4269fc===_[_0x48eea7(0x48e)][_0x48eea7(0x4af)]&&this[_0x48eea7(0x1a5)](_0x401de4);}),this['disposeWithMe'](this['_commandService'][_0x51e017(0x36c)](_0x30a7c1=>{const _0xef0f7c=_0x51e017,_0x4c011e=_0x30a7c1[_0xef0f7c(0x15b)];_0x4c011e!=null&&this[_0xef0f7c(0x32d)]&&_0x30a7c1['id']===se[_0xef0f7c(0x1ab)]['id']&&_0x4c011e[_0xef0f7c(0x1d1)]===this[_0xef0f7c(0x36e)]&&_0x4c011e['isEditing']===!0x1&&this[_0xef0f7c(0x34a)](_0x4c011e[_0xef0f7c(0x4ee)]);})),this[_0x51e017(0x40d)]['collabCursorState$'][_0x51e017(0x4bb)](v[_0x51e017(0x12b)](this['dispose$']))['subscribe'](_0x4ff8e1=>{const _0x4be9a6=_0x51e017;if((_0x4ff8e1==null?void 0x0:_0x4ff8e1[_0x4be9a6(0x36e)])!==this[_0x4be9a6(0x36e)])return;const _0x1553e0={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x4ff8e1};this[_0x4be9a6(0x4d4)](_0x1553e0);}),this[_0x51e017(0x1e2)](this[_0x51e017(0x547)][_0x51e017(0x36c)](_0x454bf3=>{const _0x271f67=_0x51e017;if(_0x454bf3[_0x271f67(0x15b)]==null)return;const _0x21af1e=_0x454bf3['params'];if(_0x454bf3['id']!==se[_0x271f67(0x286)]['id']||_0x21af1e[_0x271f67(0x1d1)]!==this[_0x271f67(0x36e)])return;const _0x5d8a5b={'id':_0x271f67(0x44f),'params':_0x21af1e},_0x426d40=this[_0x271f67(0x494)];for(const [_0x192bf5,_0xf934fa]of _0x426d40){const _0x27fee9={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0xf934fa['ranges']}},_0x4f8756=this[_0x271f67(0x365)][_0x271f67(0x1e4)](_0x5d8a5b,_0x27fee9,!0x1);if(_['isTransformMutationFailure'](_0x4f8756))throw _0x4f8756[_0x271f67(0x542)];_0x426d40[_0x271f67(0x20b)](_0x192bf5,{..._0xf934fa,'ranges':_0x4f8756[_0x271f67(0x353)][_0x271f67(0x15b)][_0x271f67(0x179)]});}queueMicrotask(()=>{const _0x5e98fa=_0x271f67;this[_0x5e98fa(0x329)][_0x5e98fa(0x49c)](_0x426d40);});})));}[_0x57f41f(0x4d4)](_0x4bff2c){const _0x45618a=_0x57f41f;var _0x4f73ff,_0x1e77b5;const {memberID:_0x2eb9df,selection:_0x4cb7e9}=_0x4bff2c['data'],_0x1fcf8a=Hs(_0x4cb7e9),_0x24a5f8=(_0x1e77b5=(_0x4f73ff=this['_memberService']['getMember'](this[_0x45618a(0x36e)],_0x2eb9df))==null?void 0x0:_0x4f73ff[_0x45618a(0x33e)])!=null?_0x1e77b5:_0x45618a(0x14a),_0x390abf={'color':this[_0x45618a(0x3f4)][_0x45618a(0x533)](_0x2eb9df),'name':_0x24a5f8,'ranges':_0x1fcf8a},_0x2159ba=this['cursorInfo'];_0x2159ba['set'](_0x2eb9df,_0x390abf),this[_0x45618a(0x329)]['next'](_0x2159ba);}['_onCursorDelete'](_0x5981b3){const _0x4812c7=_0x57f41f,{memberID:_0x1db1d6}=_0x5981b3[_0x4812c7(0x198)],_0x1113c2=this[_0x4812c7(0x494)];_0x1113c2['delete'](_0x1db1d6),this[_0x4812c7(0x329)][_0x4812c7(0x49c)](_0x1113c2);}['_toggleOnline'](){const _0x444eeb=_0x57f41f;var _0x44f744;if(this[_0x444eeb(0x32d)]=!0x0,((_0x44f744=this[_0x444eeb(0x131)][_0x444eeb(0x324)]())==null?void 0x0:_0x44f744[_0x444eeb(0x263)]())!==this[_0x444eeb(0x36e)])return;const _0x3d1fe1=this['_injector']['get'](se[_0x444eeb(0x1d0)])[_0x444eeb(0x328)]();Array[_0x444eeb(0x2f8)](_0x3d1fe1)&&_0x3d1fe1['length']>0x0&&this['_updateLocalCursor'](_0x3d1fe1);}[_0x57f41f(0x49d)](){const _0x396093=_0x57f41f;this[_0x396093(0x32d)]=!0x1;}};ke=ei([K(0x2,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),K(0x3,a['Inject'](Je)),K(0x4,a['Inject'](q)),K(0x5,a[_0x57f41f(0x1ec)](qe)),K(0x6,_['ITransformService']),K(0x7,a[_0x57f41f(0x546)]),K(0x8,a['ICommandService'])],ke);var ii=Object['defineProperty'],ni=Object[_0x57f41f(0x191)],ri=(_0x1e9854,_0x2cd3b,_0xa78b6b,_0x38a486)=>{for(var _0x1fedda=_0x38a486>0x1?void 0x0:_0x38a486?ni(_0x2cd3b,_0xa78b6b):_0x2cd3b,_0x2e5e9d=_0x1e9854['length']-0x1,_0x12698a;_0x2e5e9d>=0x0;_0x2e5e9d--)(_0x12698a=_0x1e9854[_0x2e5e9d])&&(_0x1fedda=(_0x38a486?_0x12698a(_0x2cd3b,_0xa78b6b,_0x1fedda):_0x12698a(_0x1fedda))||_0x1fedda);return _0x38a486&&_0x1fedda&&ii(_0x2cd3b,_0xa78b6b,_0x1fedda),_0x1fedda;},Q=(_0x405b32,_0x26d608)=>(_0x2e214e,_0x305f4a)=>_0x26d608(_0x2e214e,_0x305f4a,_0x405b32);const oi=0x12c,ai=0x64,ci=()=>{let _0x470581=[],_0x2efec9=!0x1;return _0x249d6a=>{_0x470581['push'](_0x249d6a),_0x2efec9||(_0x2efec9=!0x0,setTimeout(()=>{const _0x1f44a=_0x1fa7;_0x470581[_0x1f44a(0x50c)](_0x416ce0=>_0x416ce0()),_0x470581=[],_0x2efec9=!0x1;}));};};let Be=class extends a[_0x57f41f(0x1c5)]{constructor(_0x2ad12d,_0x1111e0,_0x3a0e1d,_0xa78af2,_0x1ea5a6,_0xa13dfa,_0x43a971,_0x5336ad){const _0x5b016b=_0x57f41f;super(),u(this,_0x5b016b(0x32d),!0x1),u(this,_0x5b016b(0x326),!0x1),u(this,_0x5b016b(0x329),new v[(_0x5b016b(0x3ab))](new Map())),u(this,_0x5b016b(0x260),this['_cursorInfo$']['asObservable']()),u(this,_0x5b016b(0x4e8),new v[(_0x5b016b(0x3ab))]([])),u(this,_0x5b016b(0x18f),this[_0x5b016b(0x4e8)][_0x5b016b(0x4bb)](v[_0x5b016b(0x49b)](oi))),u(this,_0x5b016b(0x34a),a[_0x5b016b(0x189)]((_0x3ebfc6,_0x26915a)=>{const _0x1dd580=_0x5b016b,_0x5101a0={'eventID':_[_0x1dd580(0x48e)][_0x1dd580(0x153)],'data':{'unitID':this[_0x1dd580(0x36e)],'memberID':this['_session'][_0x1dd580(0x145)](),'selection':et[_0x1dd580(0x4b3)](_0x3ebfc6,_0x26915a['range'])}};this[_0x1dd580(0x2cd)][_0x1dd580(0x47b)](_0x5101a0,this[_0x1dd580(0x36e)]);},ai)),(this[_0x5b016b(0x36e)]=_0x2ad12d,this[_0x5b016b(0x2cd)]=_0x1111e0,this[_0x5b016b(0x331)]=_0x3a0e1d,this['_colorAssignService']=_0xa78af2,this['_memberService']=_0x1ea5a6,this[_0x5b016b(0x131)]=_0xa13dfa,this['_commandService']=_0x43a971,this['_refRangeService']=_0x5336ad);}get[_0x57f41f(0x494)](){const _0x12d4b8=_0x57f41f;return this[_0x12d4b8(0x329)][_0x12d4b8(0x3a2)]();}get[_0x57f41f(0x234)](){const _0x2a9131=_0x57f41f;return this[_0x2a9131(0x4e8)]['getValue']();}[_0x57f41f(0x3a4)](){const _0x3195cf=_0x57f41f;super[_0x3195cf(0x3a4)](),this[_0x3195cf(0x329)]['next'](new Map()),this[_0x3195cf(0x329)][_0x3195cf(0x4a4)](),this[_0x3195cf(0x4e8)][_0x3195cf(0x49c)]([]),this[_0x3195cf(0x4e8)][_0x3195cf(0x4a4)]();}[_0x57f41f(0x350)](){const _0x52acf4=_0x57f41f;this[_0x52acf4(0x326)]||(this[_0x52acf4(0x326)]=!0x0,this[_0x52acf4(0x2cd)][_0x52acf4(0x1bd)]['pipe'](v['takeUntil'](this['dispose$']))['subscribe'](_0x58cd76=>{const _0x421639=_0x52acf4;_0x58cd76===H[_0x421639(0x436)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x52acf4(0x2cd)][_0x52acf4(0x438)][_0x52acf4(0x4bb)](v[_0x52acf4(0x12b)](this[_0x52acf4(0x43a)]))[_0x52acf4(0x3ee)](_0x30154c=>{const _0x104f26=_0x52acf4,_0x7a9a9f=_0x30154c[_0x104f26(0x538)];_0x7a9a9f===_[_0x104f26(0x48e)]['UPDATE_CURSOR']&&this[_0x104f26(0x4d4)](_0x30154c),_0x7a9a9f===_[_0x104f26(0x48e)]['USERS_LEAVE']&&this[_0x104f26(0x1a5)](_0x30154c);}),this[_0x52acf4(0x495)](),this[_0x52acf4(0x1e2)](this['_commandService']['onCommandExecuted'](_0x3ed920=>{const _0x2a3b98=_0x52acf4;if(this[_0x2a3b98(0x32d)]&&_0x3ed920['id']===C['SetSelectionsOperation']['id']&&_0x3ed920['params'][_0x2a3b98(0x1d1)]===this['unitID']){const _0x6cf7b6=_0x3ed920['params'];this[_0x2a3b98(0x34a)](_0x6cf7b6[_0x2a3b98(0x3aa)],_0x6cf7b6[_0x2a3b98(0x266)][0x0]);}})));}[_0x57f41f(0x4d4)](_0x58f4f1){const _0x32f848=_0x57f41f;var _0x43e52c,_0x55aa9e;const {memberID:_0xc2d456,selection:_0x4ff518}=_0x58f4f1['data'],{sheetName:_0x1cbf29,range:_0x36a3da}=et[_0x32f848(0x196)](_0x4ff518),_0xcb3a0b={'name':(_0x55aa9e=(_0x43e52c=this[_0x32f848(0x384)][_0x32f848(0x487)](this[_0x32f848(0x36e)],_0xc2d456))==null?void 0x0:_0x43e52c['name'])!=null?_0x55aa9e:_0x32f848(0x14a),'range':this[_0x32f848(0x3e9)](_0x1cbf29,_0x36a3da),'sheetID':_0x1cbf29,'color':this[_0x32f848(0x3f4)][_0x32f848(0x533)](_0xc2d456),'selection':_0x4ff518},_0x3db0f2=this[_0x32f848(0x494)];_0x3db0f2[_0x32f848(0x20b)](_0xc2d456,_0xcb3a0b),this[_0x32f848(0x329)][_0x32f848(0x49c)](_0x3db0f2);}[_0x57f41f(0x1a5)](_0x2e1297){const _0x510c08=_0x57f41f,{memberID:_0x51a461}=_0x2e1297['data'],_0x18cdc6=this[_0x510c08(0x494)];_0x18cdc6[_0x510c08(0x3e0)](_0x51a461),this[_0x510c08(0x329)][_0x510c08(0x49c)](_0x18cdc6);}[_0x57f41f(0x3e9)](_0x357ae8,_0x3d8e3){const _0x124efd=_0x57f41f;var _0x16bb92,_0xec9c85;const _0x34d18d=(_0xec9c85=(_0x16bb92=this[_0x124efd(0x131)][_0x124efd(0x3de)](this[_0x124efd(0x36e)]))==null?void 0x0:_0x16bb92[_0x124efd(0x446)](_0x357ae8))==null?void 0x0:_0xec9c85[_0x124efd(0x168)]();return(_0x34d18d==null?void 0x0:_0x34d18d[_0x124efd(0x4df)](_0x3f6f17=>a[_0x124efd(0x1b8)][_0x124efd(0x48f)](_0x3f6f17,_0x3d8e3)))||_0x3d8e3;}[_0x57f41f(0x495)](){const _0x424121=_0x57f41f,_0x4d3433=new a[(_0x424121(0x1f7))](),_0x4066dc=ci(),_0x34ae48=()=>{const _0x66126=_0x424121;_0x4d3433['dispose']();const _0x1940df=(_0x4c7fc9,_0x50261c,_0x2fbe59,_0x4b437c)=>{const _0x22bdef=_0x1fa7;let _0x13f578=[];switch(_0x4c7fc9['id']){case C[_0x22bdef(0x32a)]['DeleteRangeMoveLeftCommandId']:{_0x13f578=C['handleDeleteRangeMoveLeft'](_0x4c7fc9,_0x4b437c);break;}case C[_0x22bdef(0x32a)][_0x22bdef(0x30c)]:{_0x13f578=C['handleDeleteRangeMoveUp'](_0x4c7fc9,_0x4b437c);break;}case C[_0x22bdef(0x32a)]['InsertColCommandId']:{_0x13f578=C[_0x22bdef(0x526)](_0x4c7fc9,_0x4b437c);break;}case C[_0x22bdef(0x32a)][_0x22bdef(0x2f9)]:{_0x13f578=C[_0x22bdef(0x44d)](_0x4c7fc9,_0x4b437c);break;}case C['EffectRefRangId'][_0x22bdef(0x2b9)]:{_0x13f578=C[_0x22bdef(0x393)](_0x4c7fc9,_0x4b437c);break;}case C[_0x22bdef(0x32a)][_0x22bdef(0x2a4)]:{_0x13f578=C[_0x22bdef(0x16d)](_0x4c7fc9,_0x4b437c);break;}case C['EffectRefRangId'][_0x22bdef(0x2ce)]:{_0x13f578=C[_0x22bdef(0x4f0)](_0x4c7fc9,_0x4b437c);break;}case C[_0x22bdef(0x32a)]['RemoveColCommandId']:{_0x13f578=C[_0x22bdef(0x232)](_0x4c7fc9,_0x4b437c);break;}case C[_0x22bdef(0x32a)]['RemoveRowCommandId']:{_0x13f578=C[_0x22bdef(0x295)](_0x4c7fc9,_0x4b437c);break;}}const _0x1bfdeb=C[_0x22bdef(0x38f)](_0x13f578,_0x4b437c),_0x816afc=this['cursorInfo'][_0x22bdef(0x31f)](_0x50261c);if(_0x816afc&&_0x1bfdeb){const _0x4ccddd={..._0x816afc,'range':_0x1bfdeb};this[_0x22bdef(0x494)][_0x22bdef(0x20b)](_0x50261c,_0x4ccddd),_0x4066dc(()=>{const _0x2993b5=_0x22bdef,_0x1b81ad=this['_refRangeService'][_0x2993b5(0x42f)](_0x1bfdeb,_0x2ef4c8=>(_0x1b81ad[_0x2993b5(0x3a4)](),_0x1940df(_0x2ef4c8,_0x50261c,_0x2fbe59,_0x1bfdeb)));_0x4d3433[_0x2993b5(0x150)](_0x1b81ad);});}return{'redos':[],'undos':[]};};this[_0x66126(0x494)][_0x66126(0x50c)]((_0x40dd3a,_0x582828)=>{const _0x1f99f4=_0x66126,{range:_0x5a2fb7,sheetID:_0x57dd30}=_0x40dd3a,_0x2ccb62=this['_refRangeService']['registerRefRange'](_0x5a2fb7,_0x22f053=>(_0x2ccb62['dispose'](),_0x1940df(_0x22f053,_0x582828,_0x57dd30,_0x5a2fb7)));_0x4d3433[_0x1f99f4(0x150)](_0x2ccb62);});};this[_0x424121(0x1e2)](a[_0x424121(0x1f9)](this[_0x424121(0x329)][_0x424121(0x3ee)](()=>{_0x34ae48();})));}['_toggleOnline'](){const _0x1c6d0a=_0x57f41f;var _0x103e7a,_0x395bad;if(this[_0x1c6d0a(0x32d)]=!0x0,((_0x103e7a=this[_0x1c6d0a(0x131)][_0x1c6d0a(0x324)]())==null?void 0x0:_0x103e7a[_0x1c6d0a(0x263)]())!==this[_0x1c6d0a(0x36e)])return;const _0x21b235=(_0x395bad=this[_0x1c6d0a(0x331)][_0x1c6d0a(0x31f)](C['SheetsSelectionsService'])[_0x1c6d0a(0x3a7)]())==null?void 0x0:_0x395bad[0x0],_0x4a4e27=this['_univerInstanceService'][_0x1c6d0a(0x3b3)](a[_0x1c6d0a(0x4f6)]['UNIVER_SHEET'])['getActiveSheet']();_0x21b235&&_0x4a4e27&&this[_0x1c6d0a(0x34a)](_0x4a4e27[_0x1c6d0a(0x255)](),_0x21b235);}[_0x57f41f(0x49d)](){this['_online']=!0x1;}};Be=ri([Q(0x2,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),Q(0x3,a['Inject'](Je)),Q(0x4,a[_0x57f41f(0x1ec)](q)),Q(0x5,a['IUniverInstanceService']),Q(0x6,a['ICommandService']),Q(0x7,a[_0x57f41f(0x1ec)](C[_0x57f41f(0x240)]))],Be);var li=Object['defineProperty'],hi=Object[_0x57f41f(0x191)],_i=(_0x83bf38,_0xb23a27,_0x2a53c9,_0x110cc0)=>{const _0x1e349d=_0x57f41f;for(var _0x326009=_0x110cc0>0x1?void 0x0:_0x110cc0?hi(_0xb23a27,_0x2a53c9):_0xb23a27,_0x6ef67a=_0x83bf38[_0x1e349d(0x460)]-0x1,_0x4a2895;_0x6ef67a>=0x0;_0x6ef67a--)(_0x4a2895=_0x83bf38[_0x6ef67a])&&(_0x326009=(_0x110cc0?_0x4a2895(_0xb23a27,_0x2a53c9,_0x326009):_0x4a2895(_0x326009))||_0x326009);return _0x110cc0&&_0x326009&&li(_0xb23a27,_0x2a53c9,_0x326009),_0x326009;},Me=(_0x3b727e,_0x55b5a1)=>(_0x94f3ed,_0x3c4455)=>_0x55b5a1(_0x94f3ed,_0x3c4455,_0x3b727e);let ne=class extends a[_0x57f41f(0x1c5)]{constructor(_0x4562ad,_0x584a9a,_0x4d1f4d){const _0x5efa94=_0x57f41f;super(),u(this,_0x5efa94(0x3b5),new Map()),u(this,_0x5efa94(0x445),new v['Subject']()),(this['_univerInstanceService']=_0x4562ad,this[_0x5efa94(0x331)]=_0x584a9a,this['_collabSessionService']=_0x4d1f4d,this[_0x5efa94(0x326)]());}[_0x57f41f(0x3a4)](){const _0x444f02=_0x57f41f;super[_0x444f02(0x3a4)](),this[_0x444f02(0x445)][_0x444f02(0x4a4)](),this[_0x444f02(0x3b5)]['forEach'](_0x404dc1=>_0x404dc1[_0x444f02(0x3a4)]());}['getCollabCursors$'](_0x5299f4){const _0x5d264c=_0x57f41f;return this[_0x5d264c(0x3b5)][_0x5d264c(0x2c9)](_0x5299f4)?this[_0x5d264c(0x3b5)][_0x5d264c(0x31f)](_0x5299f4)[_0x5d264c(0x260)]:this[_0x5d264c(0x445)][_0x5d264c(0x4bb)](v[_0x5d264c(0x222)](_0x9b3613=>_0x9b3613[_0x5d264c(0x36e)]===_0x5299f4),v['switchMap'](_0x1226d8=>_0x1226d8[_0x5d264c(0x260)]));}['_init'](){const _0x3e8f54=_0x57f41f;this[_0x3e8f54(0x131)][_0x3e8f54(0x317)](a[_0x3e8f54(0x4f6)]['UNIVER_SHEET'])[_0x3e8f54(0x4bb)](v[_0x3e8f54(0x12b)](this[_0x3e8f54(0x43a)]))[_0x3e8f54(0x3ee)](async _0x3a683e=>{const _0x1940a7=_0x3e8f54,_0x1c17a0=_0x3a683e[_0x1940a7(0x263)](),_0x5cad23=await this[_0x1940a7(0x3d6)](_0x1c17a0);this['_entityInit$']['next'](_0x5cad23),this['_entities']['set'](_0x1c17a0,_0x5cad23);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x3e8f54(0x4f6)][_0x3e8f54(0x1a7)])[_0x3e8f54(0x4bb)](v['takeUntil'](this[_0x3e8f54(0x43a)]))[_0x3e8f54(0x4bb)](v[_0x3e8f54(0x222)](_0x5ea88a=>!_0x5ea88a[_0x3e8f54(0x263)]()[_0x3e8f54(0x414)]('__')))[_0x3e8f54(0x3ee)](async _0x14a098=>{const _0x426634=_0x3e8f54,_0x3d0d2b=_0x14a098['getUnitId'](),_0x5b49d1=await this[_0x426634(0x429)](_0x3d0d2b);this[_0x426634(0x445)]['next'](_0x5b49d1),this[_0x426634(0x3b5)][_0x426634(0x20b)](_0x3d0d2b,_0x5b49d1);}),v['merge'](this[_0x3e8f54(0x131)][_0x3e8f54(0x41f)](a[_0x3e8f54(0x4f6)]['UNIVER_DOC']),this[_0x3e8f54(0x131)][_0x3e8f54(0x41f)](a[_0x3e8f54(0x4f6)]['UNIVER_SHEET']))[_0x3e8f54(0x4bb)](v[_0x3e8f54(0x12b)](this[_0x3e8f54(0x43a)]))[_0x3e8f54(0x3ee)](_0x23fb60=>{const _0x57e0bf=_0x3e8f54,_0x42c43d=_0x23fb60['getUnitId'](),_0x606cdd=this[_0x57e0bf(0x3b5)]['get'](_0x42c43d);_0x606cdd&&(_0x606cdd[_0x57e0bf(0x3a4)](),this['_entities'][_0x57e0bf(0x3e0)](_0x42c43d));});}async[_0x57f41f(0x3d6)](_0x31263c){const _0x18cc58=_0x57f41f,_0xdc822a=await this[_0x18cc58(0x4e7)][_0x18cc58(0x2b6)](_0x31263c),_0x10da50=this[_0x18cc58(0x331)][_0x18cc58(0x4eb)](Be,_0x31263c,_0xdc822a);return _0x10da50[_0x18cc58(0x350)](),_0x10da50;}async[_0x57f41f(0x429)](_0x5f54a5){const _0xb1c9c5=_0x57f41f,_0x4cd6e0=await this[_0xb1c9c5(0x4e7)][_0xb1c9c5(0x2b6)](_0x5f54a5),_0x14f182=this[_0xb1c9c5(0x331)][_0xb1c9c5(0x4eb)](ke,_0x5f54a5,_0x4cd6e0);return _0x14f182[_0xb1c9c5(0x350)](),_0x14f182;}};ne=_i([Me(0x0,a[_0x57f41f(0x546)]),Me(0x1,a[_0x57f41f(0x1ec)](a['Injector'])),Me(0x2,a[_0x57f41f(0x1ec)](exports[_0x57f41f(0x19b)]))],ne);const de=0x14,lt=0xc8,Ae=0x4,ui=0x5;function di(_0x30c6c9,_0x5c9c46){const _0x1025fd=_0x57f41f;let {radius:_0x968158,width:_0x4d1aa5,height:_0x5e7afd}=_0x5c9c46;_0x968158=_0x968158!=null?_0x968158:0x0,_0x4d1aa5=_0x4d1aa5!=null?_0x4d1aa5:0x1e,_0x5e7afd=_0x5e7afd!=null?_0x5e7afd:0x1e;let _0x8f3b06=0x0,_0x2b9869=0x0,_0x47fffd=0x0;_0x8f3b06=_0x2b9869=_0x47fffd=Math['min'](_0x968158,_0x4d1aa5/0x2,_0x5e7afd/0x2),_0x30c6c9[_0x1025fd(0x25f)](),_0x30c6c9[_0x1025fd(0x2b2)](_0x8f3b06,0x0),_0x30c6c9[_0x1025fd(0x3eb)](_0x4d1aa5-_0x2b9869,0x0),_0x30c6c9['arc'](_0x4d1aa5-_0x2b9869,_0x2b9869,_0x2b9869,Math['PI']*0x3/0x2,0x0,!0x1),_0x30c6c9[_0x1025fd(0x3eb)](_0x4d1aa5,_0x5e7afd-_0x47fffd),_0x30c6c9[_0x1025fd(0x3e3)](_0x4d1aa5-_0x47fffd,_0x5e7afd-_0x47fffd,_0x47fffd,0x0,Math['PI']/0x2,!0x1),_0x30c6c9[_0x1025fd(0x3eb)](0x0,_0x5e7afd),_0x30c6c9[_0x1025fd(0x3eb)](0x0,_0x8f3b06),_0x30c6c9[_0x1025fd(0x3e3)](_0x8f3b06,_0x8f3b06,_0x8f3b06,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x30c6c9[_0x1025fd(0x525)](),_0x5c9c46[_0x1025fd(0x512)]&&(_0x30c6c9[_0x1025fd(0x453)](),_0x30c6c9[_0x1025fd(0x4ac)]=_0x5c9c46[_0x1025fd(0x512)],_0x5c9c46['fillRule']==='evenodd'?_0x30c6c9[_0x1025fd(0x512)](_0x1025fd(0x3fc)):_0x30c6c9[_0x1025fd(0x512)](),_0x30c6c9['restore']());}class Oe extends O['Shape']{constructor(_0x4d5972,_0x416197){const _0x56c3f7=_0x57f41f;super(_0x4d5972,_0x416197),u(this,'color'),u(this,'text'),(this[_0x56c3f7(0x21a)]=_0x416197==null?void 0x0:_0x416197[_0x56c3f7(0x21a)],this[_0x56c3f7(0x50a)]=_0x416197==null?void 0x0:_0x416197['text']);}static[_0x57f41f(0x300)](_0x5b4170,_0xeb4f46){const _0x1355f3=_0x57f41f,{text:_0x5a5370,color:_0x2a425f}=_0xeb4f46;_0x5b4170[_0x1355f3(0x453)](),_0x5b4170[_0x1355f3(0x467)]=_0x1355f3(0x54f);const _0x315f13=_0x5b4170[_0x1355f3(0x3da)](_0x5a5370)[_0x1355f3(0x1a3)],_0x56ff0b=Math[_0x1355f3(0x129)](_0x315f13+0x2*Ae,lt);di(_0x5b4170,{'height':de,'radius':0x4,'width':_0x56ff0b,'fill':_0x2a425f,'evented':!0x1}),_0x5b4170[_0x1355f3(0x4ac)]='#FFF';const _0x61b7c8=Ae,_0x2b378a=de-ui,_0x45151b=lt-0x2*Ae;if(_0x315f13>_0x45151b){let _0x3d2ccb='',_0x496a4f=0x0;for(const _0x5f1e84 of _0x5a5370){const _0x5c124c=_0x5b4170[_0x1355f3(0x3da)](_0x5f1e84)[_0x1355f3(0x1a3)];if(_0x496a4f+_0x5c124c<=_0x45151b-_0x5b4170[_0x1355f3(0x3da)](_0x1355f3(0x4ab))[_0x1355f3(0x1a3)])_0x3d2ccb+=_0x5f1e84,_0x496a4f+=_0x5c124c;else{_0x3d2ccb+=_0x1355f3(0x4ab);break;}}_0x5b4170[_0x1355f3(0x22c)](_0x3d2ccb,_0x61b7c8,_0x2b378a);}else _0x5b4170['fillText'](_0x5a5370,_0x61b7c8,_0x2b378a);_0x5b4170[_0x1355f3(0x35c)]();}['_draw'](_0x5988e2){const _0x2d7ea3=_0x57f41f;Oe[_0x2d7ea3(0x300)](_0x5988e2,this);}}const Le=_0x57f41f(0x334),Si=_0x57f41f(0x421),vi=_0x57f41f(0x4d3),le=0x6,gi=1.5,je=0x4,mi=1.5,fi=_0x57f41f(0x262);class ht{constructor(_0x497bc1,_0x455119,_0x5b1505,_0x10f22a){const _0x172d2d=_0x57f41f;u(this,_0x172d2d(0x483),[]),u(this,'_anchor',null),u(this,_0x172d2d(0x2b1),null),u(this,_0x172d2d(0x395),null),u(this,'_hideTimer',null),u(this,_0x172d2d(0x536),null),(this[_0x172d2d(0x39e)]=_0x497bc1,this[_0x172d2d(0x1f3)]=_0x455119,this['_docSkeleton']=_0x5b1505,this[_0x172d2d(0x310)]=_0x10f22a,this[_0x172d2d(0x4c7)]());}set[_0x57f41f(0x430)](_0x56e1b2){const _0x49dba8=_0x57f41f;_0x56e1b2?(this[_0x49dba8(0x395)]&&this[_0x49dba8(0x395)][_0x49dba8(0x4e5)](),this['_textBubble']&&this[_0x49dba8(0x2b1)]['show']()):(this[_0x49dba8(0x395)]&&this[_0x49dba8(0x395)][_0x49dba8(0x375)](),this[_0x49dba8(0x2b1)]&&this['_textBubble'][_0x49dba8(0x4e5)]());}[_0x57f41f(0x3a4)](){const _0x26a61f=_0x57f41f;for(const _0x3f73d7 of this[_0x26a61f(0x483)])_0x3f73d7[_0x26a61f(0x3a4)]();this[_0x26a61f(0x2b1)]&&this[_0x26a61f(0x2b1)][_0x26a61f(0x3a4)](),this[_0x26a61f(0x395)]&&this[_0x26a61f(0x395)][_0x26a61f(0x3a4)](),this[_0x26a61f(0x3e7)]&&this[_0x26a61f(0x3e7)][_0x26a61f(0x3a4)](),this['_eventUnsubscribe']&&this[_0x26a61f(0x536)]();}[_0x57f41f(0x4c7)](){const _0x33f0f9=_0x57f41f;var _0x7b3562;const {_docSkeleton:_0x424e59,_document:_0xaa4724}=this,{color:_0xcae3e8,name:_0xdd1ea9,ranges:_0x39d17d}=this[_0x33f0f9(0x39e)],_0x5420e7=_0xaa4724[_0x33f0f9(0x3c4)](),{docsLeft:_0xa2b889,docsTop:_0x28fb5a}=_0x5420e7,_0x3128a5=new N[(_0x33f0f9(0x53d))](_0x5420e7,_0x424e59);for(const {startOffset:_0x365958,endOffset:_0x3e7e88,collapsed:_0x3309b2,isActive:_0x1210b8}of _0x39d17d){const _0x843cde=_0x424e59[_0x33f0f9(0x3f5)](_0x365958),_0x1aac9f=_0x424e59[_0x33f0f9(0x3f5)](_0x3e7e88);if(_0x1210b8){const {contentBoxPointGroup:_0x346e10}=_0x3128a5[_0x33f0f9(0x49e)](_0x1aac9f,_0x1aac9f);if(_0x346e10[_0x33f0f9(0x460)]===0x0)continue;this[_0x33f0f9(0x219)](_0xcae3e8,_0x346e10,_0xa2b889,_0x28fb5a,_0xdd1ea9),this[_0x33f0f9(0x536)]=this[_0x33f0f9(0x1d6)]();}if(!_0x3309b2&&_0x843cde&&_0x1aac9f){if(N['isValidRectRange'](_0x843cde,_0x1aac9f)){const _0x29d667=new N['NodePositionConvertToRectRange'](_0x5420e7,_0x424e59),{pointGroup:_0x75ca25}=(_0x7b3562=_0x29d667[_0x33f0f9(0x49e)](_0x843cde,_0x1aac9f))!=null?_0x7b3562:{};if(_0x75ca25==null||_0x75ca25[_0x33f0f9(0x460)]===0x0)continue;this['_drawRectRange'](_0xcae3e8,_0x75ca25,_0xa2b889,_0x28fb5a);}else{const {contentBoxPointGroup:_0x492048}=_0x3128a5[_0x33f0f9(0x49e)](_0x843cde,_0x1aac9f);if(_0x492048[_0x33f0f9(0x460)]===0x0)continue;this[_0x33f0f9(0x338)](_0xcae3e8,_0x492048,_0xa2b889,_0x28fb5a);}}}}[_0x57f41f(0x219)](_0x453623,_0x182df5,_0xf0e344,_0xc45b38,_0x185023){const _0x261472=_0x57f41f,_0x4eacee=this['_getAnchorBounding'](_0x182df5),{left:_0x36143d,top:_0x33e6f5,height:_0x3b3d37}=_0x4eacee,_0x1b8a40=this['_getScale'](),_0xda22d=mi/_0x1b8a40,_0x69a0e3=new O[(_0x261472(0x3b9))](Le+a[_0x261472(0x25c)][_0x261472(0x465)](le),{'left':_0x36143d+_0xf0e344-_0xda22d,'top':_0x33e6f5+_0xc45b38,'height':_0x3b3d37,'width':gi,'fill':_0x453623||O[_0x261472(0x173)](a[_0x261472(0x1a4)][_0x261472(0x318)],0x0),'strokeWidth':_0xda22d,'stroke':fi,'evented':!0x0});this[_0x261472(0x3e7)]=_0x69a0e3,this['_scene'][_0x261472(0x200)](_0x69a0e3,N['TEXT_RANGE_LAYER_INDEX']);const _0x5cb708=new O[(_0x261472(0x3b9))](Le+a[_0x261472(0x25c)][_0x261472(0x465)](le),{'left':_0x36143d+_0xf0e344-_0xda22d,'top':_0x33e6f5+_0xc45b38-je/0x2,'height':je,'width':je,'fill':_0x453623||O[_0x261472(0x173)](a['COLORS'][_0x261472(0x318)],0x0),'strokeWidth':0x0,'stroke':_0x453623||O[_0x261472(0x173)](a[_0x261472(0x1a4)]['black'],0x0),'evented':!0x1});this[_0x261472(0x395)]=_0x5cb708,this[_0x261472(0x1f3)]['addObject'](_0x5cb708,N[_0x261472(0x128)]);const _0x29818e=new Oe(Le+a[_0x261472(0x25c)][_0x261472(0x465)](le),{'left':_0x36143d+_0xf0e344-_0xda22d,'top':_0x33e6f5+_0xc45b38-de,'text':_0x185023,'color':_0x453623});this['_textBubble']=_0x29818e,this['_scene']['addObject'](_0x29818e,N['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x57f41f(0x1d6)](){const _0x414869=_0x57f41f,_0x457698=this[_0x414869(0x3e7)][_0x414869(0x210)][_0x414869(0x362)](()=>{const _0x122c32=_0x414869;this[_0x122c32(0x430)]=!0x0;}),_0x15a688=this[_0x414869(0x3e7)][_0x414869(0x4ed)]['subscribeEvent'](()=>{const _0x2d4aff=_0x414869;this[_0x2d4aff(0x20e)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x2469a8=_0x2d4aff;this[_0x2469a8(0x430)]=!0x1;},0x7d0);});return()=>{const _0x451410=_0x414869;_0x457698[_0x451410(0x373)](),_0x15a688[_0x451410(0x373)]();};}[_0x57f41f(0x338)](_0x4401bb,_0x344a05,_0x223f98,_0x231dcb){const _0x18491e=_0x57f41f,_0x1130a5=new a[(_0x18491e(0x1bb))](_0x4401bb)[_0x18491e(0x28f)](0.2)[_0x18491e(0x3e2)](),_0x26d672=new O['RegularPolygon'](Si+a[_0x18491e(0x25c)][_0x18491e(0x465)](le),{'pointsGroup':_0x344a05,'fill':_0x1130a5||O[_0x18491e(0x173)](a['COLORS'][_0x18491e(0x318)],0.2),'left':_0x223f98,'top':_0x231dcb,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x18491e(0x483)][_0x18491e(0x2d0)](_0x26d672),this['_scene']['addObject'](_0x26d672,N[_0x18491e(0x128)]);}[_0x57f41f(0x502)](_0x23c15a,_0x9df610,_0x277101,_0x50636a){const _0x1ba2c6=_0x57f41f,_0x3f71f1=new a[(_0x1ba2c6(0x1bb))](_0x23c15a)[_0x1ba2c6(0x28f)](0.2)[_0x1ba2c6(0x3e2)](),_0x2d550c=new O[(_0x1ba2c6(0x1ea))](vi+a[_0x1ba2c6(0x25c)][_0x1ba2c6(0x465)](le),{'pointsGroup':_0x9df610,'fill':_0x3f71f1||O[_0x1ba2c6(0x173)](a[_0x1ba2c6(0x1a4)][_0x1ba2c6(0x318)],0.2),'left':_0x277101,'top':_0x50636a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1ba2c6(0x2d0)](_0x2d550c),this[_0x1ba2c6(0x1f3)][_0x1ba2c6(0x200)](_0x2d550c,N['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0xaf5e19){const _0x397b19=_0xaf5e19[0x0],_0x5ae09a=_0x397b19[0x0],_0x1869e7=_0x397b19[0x2],{x:_0x35ce6d,y:_0x3fc102}=_0x5ae09a,{x:_0x47fb58,y:_0x1a3505}=_0x1869e7;return{'left':_0x35ce6d,'top':_0x3fc102,'width':_0x47fb58-_0x35ce6d,'height':_0x1a3505-_0x3fc102};}['_getScale'](){const _0x440b74=_0x57f41f,{scaleX:_0x7000b9,scaleY:_0xc7089b}=this[_0x440b74(0x1f3)]['getAncestorScale']();return Math[_0x440b74(0x1d5)](_0x7000b9,_0xc7089b);}}var Ii=Object[_0x57f41f(0x522)],pi=Object[_0x57f41f(0x191)],Ci=(_0x3dfb8e,_0xc4e71e,_0x2de170,_0x80ae8)=>{for(var _0x329bff=_0x80ae8>0x1?void 0x0:_0x80ae8?pi(_0xc4e71e,_0x2de170):_0xc4e71e,_0x434905=_0x3dfb8e['length']-0x1,_0x2dd484;_0x434905>=0x0;_0x434905--)(_0x2dd484=_0x3dfb8e[_0x434905])&&(_0x329bff=(_0x80ae8?_0x2dd484(_0xc4e71e,_0x2de170,_0x329bff):_0x2dd484(_0x329bff))||_0x329bff);return _0x80ae8&&_0x329bff&&Ii(_0xc4e71e,_0x2de170,_0x329bff),_0x329bff;},ve=(_0x297a2f,_0x180fa6)=>(_0xb9281b,_0x44bbc0)=>_0x180fa6(_0xb9281b,_0x44bbc0,_0x297a2f);let Ve=class extends a[_0x57f41f(0x1c5)]{constructor(_0x2d7606,_0x3f85eb,_0x52222c,_0x43923d,_0x59f8d7){const _0xfc1b92=_0x57f41f;super(),u(this,_0xfc1b92(0x4b4),[]),u(this,_0xfc1b92(0x3d5),[]),(this['_context']=_0x2d7606,this[_0xfc1b92(0x3a9)]=_0x3f85eb,this[_0xfc1b92(0x15d)]=_0x52222c,this[_0xfc1b92(0x547)]=_0x43923d,this[_0xfc1b92(0x548)]=_0x59f8d7,this[_0xfc1b92(0x326)]());}['_init'](){const _0x24dbdb=_0x57f41f,_0x47f629=this['_context'][_0x24dbdb(0x1d1)],_0x2e3bc0=this['_docSkeletonManagerService'];this[_0x24dbdb(0x1e2)](v[_0x24dbdb(0x3c7)]([this[_0x24dbdb(0x15d)]['getCollabCursors$'](_0x47f629),this[_0x24dbdb(0x548)][_0x24dbdb(0x21e)]])[_0x24dbdb(0x4bb)](E['map'](([_0x1a53e0,_0x3cc611])=>({'skeleton':_0x2e3bc0[_0x24dbdb(0x413)](),'cursors':[..._0x1a53e0[_0x24dbdb(0x458)]()][_0x24dbdb(0x1b9)](_0x54f35c=>({..._0x54f35c,'color':_0x3cc611[_0x54f35c['color']]}))})))[_0x24dbdb(0x3ee)](_0x444cf5=>{const _0x5264cf=_0x24dbdb;if(this[_0x5264cf(0x444)](),_0x444cf5){const {skeleton:_0x397ec2,cursors:_0x1bb62f}=_0x444cf5;this['_updateCollabCursors'](_0x397ec2,_0x1bb62f);}})),this['_initResize'](),this[_0x24dbdb(0x42d)]();}[_0x57f41f(0x352)](_0x257e1f,_0x40c76c){const _0x31e9fa=_0x57f41f,{scene:_0x56c54f,mainComponent:_0x191ee4}=this[_0x31e9fa(0x355)],_0x35333e=_0x40c76c[_0x31e9fa(0x366)](_0x462a0b=>new ht(_0x462a0b,_0x56c54f,_0x257e1f,_0x191ee4));this[_0x31e9fa(0x4b4)]=_0x35333e,this[_0x31e9fa(0x3d5)]=_0x40c76c;}[_0x57f41f(0x39c)](){const _0x254f58=_0x57f41f;this['_removeCollabCursors']();const {scene:_0x4f7dde,mainComponent:_0x1a1d66}=this['_context'],_0x3ee7c2=this[_0x254f58(0x3a9)]['getSkeleton'](),_0x50c697=this[_0x254f58(0x3d5)][_0x254f58(0x366)](_0x40749d=>new ht(_0x40749d,_0x4f7dde,_0x3ee7c2,_0x1a1d66));this[_0x254f58(0x4b4)]=_0x50c697;}[_0x57f41f(0x444)](){const _0x196b97=_0x57f41f;this[_0x196b97(0x4b4)][_0x196b97(0x50c)](_0x57eb6b=>_0x57eb6b['dispose']()),this[_0x196b97(0x4b4)]=[];}[_0x57f41f(0x42d)](){const _0xcea53d=_0x57f41f,_0x4a9b22=[N[_0xcea53d(0x146)]['id']];this[_0xcea53d(0x1e2)](this['_commandService'][_0xcea53d(0x36c)](_0x18c949=>{const _0x464821=_0xcea53d;_0x4a9b22[_0x464821(0x29a)](_0x18c949['id'])&&_0x18c949[_0x464821(0x15b)][_0x464821(0x1d1)]===this[_0x464821(0x355)][_0x464821(0x1d1)]&&this[_0x464821(0x39c)]();}));}[_0x57f41f(0x272)](){const _0x2a2b8d=_0x57f41f;this[_0x2a2b8d(0x1e2)](a[_0x2a2b8d(0x43e)](this['_context'][_0x2a2b8d(0x541)][_0x2a2b8d(0x1f1)])[_0x2a2b8d(0x4bb)](E[_0x2a2b8d(0x222)](_0xf23ea7=>_0xf23ea7[_0x2a2b8d(0x221)]===O[_0x2a2b8d(0x543)]['resize']),E[_0x2a2b8d(0x3ef)](0x10))[_0x2a2b8d(0x3ee)](()=>{const _0x2efe26=_0x2a2b8d;this[_0x2efe26(0x39c)]();}));}};Ve=Ci([ve(0x1,a[_0x57f41f(0x1ec)](se[_0x57f41f(0x292)])),ve(0x2,a[_0x57f41f(0x1ec)](ne)),ve(0x3,a[_0x57f41f(0x178)]),ve(0x4,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x41a)]))],Ve);const Ei=0x1,bi=1.5;class Pt extends O[_0x57f41f(0x304)]{constructor(_0x4a0aeb,_0x531d60){const _0x100e16=_0x57f41f;super(_0x4a0aeb,_0x531d60),u(this,_0x100e16(0x539)),u(this,_0x100e16(0x416),!0x1),u(this,'_range'),u(this,_0x100e16(0x17e),''),u(this,'_labelPosition','top'),u(this,_0x100e16(0x23e)),(_0x531d60&&this[_0x100e16(0x33d)](_0x531d60),this[_0x100e16(0x210)][_0x100e16(0x362)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x100e16(0x362)](()=>this[_0x100e16(0x33d)]({'hovered':!0x1})));}['setShapeProps'](_0x9221c3){const _0x1f9a9c=_0x57f41f;var _0xd3a1b8,_0x2ba6d1,_0x232e7d,_0x191f1a,_0x2d6df4,_0x4b1d35;this[_0x1f9a9c(0x539)]=(_0xd3a1b8=_0x9221c3[_0x1f9a9c(0x21a)])!=null?_0xd3a1b8:this[_0x1f9a9c(0x539)],this[_0x1f9a9c(0x416)]=(_0x2ba6d1=_0x9221c3['hovered'])!=null?_0x2ba6d1:this[_0x1f9a9c(0x416)],this[_0x1f9a9c(0x17c)]=(_0x232e7d=_0x9221c3['range'])!=null?_0x232e7d:this[_0x1f9a9c(0x17c)],this[_0x1f9a9c(0x17e)]=(_0x191f1a=_0x9221c3[_0x1f9a9c(0x33e)])!=null?_0x191f1a:this[_0x1f9a9c(0x17e)],this[_0x1f9a9c(0x3b1)]=(_0x2d6df4=_0x9221c3[_0x1f9a9c(0x303)])!=null?_0x2d6df4:this[_0x1f9a9c(0x3b1)],this[_0x1f9a9c(0x23e)]=(_0x4b1d35=_0x9221c3[_0x1f9a9c(0x39d)])!=null?_0x4b1d35:this[_0x1f9a9c(0x23e)],this[_0x1f9a9c(0x1b1)]({'width':_0x9221c3['width'],'height':_0x9221c3[_0x1f9a9c(0x261)]});}[_0x57f41f(0x264)](_0x3ae152){const _0x3c0fed=_0x57f41f,{row:_0x3e9e33,column:_0x408179}=_0x3ae152;if(_0x3e9e33>=this[_0x3c0fed(0x17c)][_0x3c0fed(0x37a)]&&_0x3e9e33<=this[_0x3c0fed(0x17c)]['endRow']&&_0x408179>=this[_0x3c0fed(0x17c)][_0x3c0fed(0x282)]&&_0x408179<=this[_0x3c0fed(0x17c)][_0x3c0fed(0x45e)]){this[_0x3c0fed(0x33d)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x57f41f(0x51b)](_0x2491d8){return!0x1;}['_draw'](_0x590bd6){const _0x379e5c=_0x57f41f;O[_0x379e5c(0x3b9)]['drawWith'](_0x590bd6,{'width':this[_0x379e5c(0x1a3)],'height':this[_0x379e5c(0x261)],'strokeWidth':bi,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x379e5c(0x23e)]}),this['_hovered']&&(_0x590bd6[_0x379e5c(0x453)](),_0x590bd6[_0x379e5c(0x451)](0x1,0x0,0x0,0x1,this[_0x379e5c(0x1a3)],this[_0x379e5c(0x3b1)]===_0x379e5c(0x336)?0x0:-de),Oe[_0x379e5c(0x300)](_0x590bd6,{'text':this[_0x379e5c(0x17e)],'color':this[_0x379e5c(0x539)]}),_0x590bd6[_0x379e5c(0x35c)]());}}var Ti=Object[_0x57f41f(0x522)],Ri=Object[_0x57f41f(0x191)],Oi=(_0x4f9e63,_0xee171f,_0x5a55e9,_0x1a6e38)=>{const _0x41d449=_0x57f41f;for(var _0x58534a=_0x1a6e38>0x1?void 0x0:_0x1a6e38?Ri(_0xee171f,_0x5a55e9):_0xee171f,_0x2ce54f=_0x4f9e63[_0x41d449(0x460)]-0x1,_0x501250;_0x2ce54f>=0x0;_0x2ce54f--)(_0x501250=_0x4f9e63[_0x2ce54f])&&(_0x58534a=(_0x1a6e38?_0x501250(_0xee171f,_0x5a55e9,_0x58534a):_0x501250(_0x58534a))||_0x58534a);return _0x1a6e38&&_0x58534a&&Ti(_0xee171f,_0x5a55e9,_0x58534a),_0x58534a;},$e=(_0x34c1fd,_0x547fdd)=>(_0x3d0419,_0x1a789d)=>_0x547fdd(_0x3d0419,_0x1a789d,_0x34c1fd);const Di=0x1389;let We=class extends a['RxDisposable']{constructor(_0xc0eb7a,_0x395f2e,_0x3a82f5,_0x3baffc){const _0x29806a=_0x57f41f;super(),u(this,_0x29806a(0x3d5),new Set()),u(this,'_lastPointer',null),(this['_context']=_0xc0eb7a,this[_0x29806a(0x4cf)]=_0x395f2e,this[_0x29806a(0x15d)]=_0x3a82f5,this['_themeService']=_0x3baffc,this['_init']());}[_0x57f41f(0x326)](){const _0xca293e=_0x57f41f;this['_sheetSkeletonManagerService']['currentSkeleton$']['pipe'](E['takeUntil'](this[_0xca293e(0x43a)]),E[_0xca293e(0x237)](_0x4234da=>{const _0x2b332a=_0xca293e;if(_0x4234da){const _0x3479b5=_0x4234da[_0x2b332a(0x24b)];return v[_0x2b332a(0x3c7)](this[_0x2b332a(0x15d)][_0x2b332a(0x2cb)](this[_0x2b332a(0x355)][_0x2b332a(0x1d1)]),this[_0x2b332a(0x548)]['currentTheme$'])[_0x2b332a(0x4bb)](E['map'](([_0x5f103e,_0x38df32])=>{const _0x450466=new Map();return _0x5f103e['forEach']((_0xf0acc8,_0x278230)=>{const _0x1d5fe3=_0x1fa7;if(_0xf0acc8[_0x1d5fe3(0x2f6)]===_0x3479b5){const _0x196196={..._0xf0acc8};_0x196196['color']=_0x38df32[_0xf0acc8[_0x1d5fe3(0x21a)]],_0x450466[_0x1d5fe3(0x20b)](_0x278230,_0x196196);}}),{'skeleton':_0x4234da,'cursors':_0x450466};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0xca293e(0x3ee)](({skeleton:_0x570fe9,cursors:_0x2dc27b})=>{this['_removeCollabCursors'](),_0x570fe9&&this['_updateCollabCursors'](_0x570fe9,_0x2dc27b);}),this[_0xca293e(0x4cf)][_0xca293e(0x447)][_0xca293e(0x3ee)](_0x40198b=>{const _0x3f8857=_0xca293e;if(_0x40198b==null)return;const {skeleton:_0x3a251b}=_0x40198b,{scene:_0x244b13}=this[_0x3f8857(0x355)];_0x244b13[_0x3f8857(0x534)][_0x3f8857(0x362)](a[_0x3f8857(0x189)](_0x23022a=>{const _0x50a453=_0x3f8857;var _0x1a7837,_0x43fe3b;const {offsetX:_0x5619ef,offsetY:_0x1208c8}=_0x23022a,{x:_0x254042,y:_0x2085eb}=_0x244b13[_0x50a453(0x4e3)](O[_0x50a453(0x2b4)][_0x50a453(0x15a)]([_0x5619ef,_0x1208c8])),{scaleX:_0x3083c7,scaleY:_0x394255}=_0x244b13[_0x50a453(0x387)](),_0x1a203e=_0x244b13[_0x50a453(0x4cc)](te[_0x50a453(0x346)][_0x50a453(0x174)]),_0x3fc217=_0x244b13['getVpScrollXYInfoByPosToVp'](O[_0x50a453(0x2b4)][_0x50a453(0x15a)]([_0x254042,_0x2085eb]),_0x1a203e),_0x257bf2=_0x3a251b[_0x50a453(0x4be)](_0x5619ef,_0x1208c8,_0x3083c7,_0x394255,_0x3fc217);((_0x1a7837=this[_0x50a453(0x1ad)])==null?void 0x0:_0x1a7837['column'])===_0x257bf2[_0x50a453(0x244)]&&((_0x43fe3b=this[_0x50a453(0x1ad)])==null?void 0x0:_0x43fe3b[_0x50a453(0x16f)])===_0x257bf2[_0x50a453(0x16f)]||this[_0x50a453(0x3d5)]['forEach'](_0x55ebee=>{const _0x3540b5=_0x50a453;_0x55ebee[_0x3540b5(0x264)](_0x257bf2);});},0x64));});}[_0x57f41f(0x352)](_0x20d334,_0x8fc22c){const _0x52a634=_0x57f41f;var _0x5b6887;const _0x3e82c0=(_0x5b6887=this[_0x52a634(0x4cf)][_0x52a634(0x3ad)]())==null?void 0x0:_0x5b6887[_0x52a634(0x503)];if(!_0x3e82c0)return;const _0x8f8269=this['_getSheetObject']();if(!_0x8f8269)return;this[_0x52a634(0x3d5)]['forEach'](_0xf9074a=>{const _0x45858c=_0x52a634;_0xf9074a[_0x45858c(0x18d)]();});const {scene:_0xa57084}=_0x8f8269,_0x2b4e92=yi(Array['from'](_0x8fc22c[_0x52a634(0x458)]()))[_0x52a634(0x366)](_0xe3831b=>{const _0x53b994=_0x52a634,{color:_0x357156,range:_0x1afd4b,name:_0x68233a,selection:_0x3f7f40,sheetID:_0x434182}=_0xe3831b,{startColumn:_0x1cf6f8,startRow:_0x3eef5e,endColumn:_0x3c0c04,endRow:_0x59ccc5}=_0x1afd4b,_0x531ef7=te['getCoordByCell'](_0x3eef5e,_0x1cf6f8,_0xa57084,_0x3e82c0),_0x14c9af=te[_0x53b994(0x4ae)](_0x59ccc5,_0x3c0c04,_0xa57084,_0x3e82c0),{columnHeaderHeightAndMarginTop:_0x5248af}=_0x3e82c0,{startX:_0x1de0ec,startY:_0x2f719f}=_0x531ef7,{endX:_0x2c3b72,endY:_0x7420f0}=_0x14c9af,_0x88e26e=_0x2c3b72-_0x1de0ec,_0x2de171=_0x7420f0-_0x2f719f,_0x2f5dd6={'labelPosition':_0x2f719f-_0x5248af>=de?_0x53b994(0x361):_0x53b994(0x336),'sheetID':_0x434182,'range':_0x1afd4b,'color':_0x357156,'name':_0x68233a,'selection':_0x3f7f40,'left':_0x1de0ec,'top':_0x2f719f,'width':_0x88e26e,'height':_0x2de171,'evented':!0x1,'zIndex':Di};return new Pt(_0x68233a,_0x2f5dd6);});_0xa57084['addObjects'](_0x2b4e92,Ei),this[_0x52a634(0x3d5)]=new Set(_0x2b4e92);}['_removeCollabCursors'](){const _0x3d660f=_0x57f41f;var _0x4737d2;(_0x4737d2=this[_0x3d660f(0x3d5)])==null||_0x4737d2[_0x3d660f(0x50c)](_0x2908ab=>_0x2908ab[_0x3d660f(0x3a4)]());}[_0x57f41f(0x519)](){const _0x2adacd=_0x57f41f;return te['getSheetObject'](this['_context'][_0x2adacd(0x422)],this[_0x2adacd(0x355)]);}};We=Oi([$e(0x1,a[_0x57f41f(0x1ec)](te[_0x57f41f(0x42c)])),$e(0x2,a[_0x57f41f(0x1ec)](ne)),$e(0x3,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x41a)]))],We);function yi(_0x46a53d){const _0x5f0a66=_0x57f41f,_0x3222d6=new Map();return _0x46a53d['forEach'](_0x3ae5ce=>{const _0xbaa05b=_0x1fa7;if(_0x3222d6[_0xbaa05b(0x2c9)](_0x3ae5ce[_0xbaa05b(0x486)])){const _0x265ee4=_0x3222d6[_0xbaa05b(0x31f)](_0x3ae5ce[_0xbaa05b(0x486)]);_0x265ee4[_0xbaa05b(0x33e)]+=',\x20'+_0x3ae5ce[_0xbaa05b(0x33e)];}else _0x3222d6[_0xbaa05b(0x20b)](_0x3ae5ce['selection'],_0x3ae5ce);}),Array[_0x5f0a66(0x180)](_0x3222d6[_0x5f0a66(0x458)]());}var M=function(){const _0x1716a3=_0x57f41f;return M=Object['assign']||function(_0x18d58a){const _0x38f7e=_0x1fa7;for(var _0x3aef3b,_0x57621b=0x1,_0x1a44bc=arguments['length'];_0x57621b<_0x1a44bc;_0x57621b++){_0x3aef3b=arguments[_0x57621b];for(var _0x527a55 in _0x3aef3b)Object[_0x38f7e(0x29d)][_0x38f7e(0x42a)][_0x38f7e(0x19d)](_0x3aef3b,_0x527a55)&&(_0x18d58a[_0x527a55]=_0x3aef3b[_0x527a55]);}return _0x18d58a;},M[_0x1716a3(0x254)](this,arguments);},Ui=function(_0x1a7d51,_0x58bdf6){const _0x1dbff3=_0x57f41f;var _0x4306be={};for(var _0x6cb2cf in _0x1a7d51)Object[_0x1dbff3(0x29d)][_0x1dbff3(0x42a)]['call'](_0x1a7d51,_0x6cb2cf)&&_0x58bdf6['indexOf'](_0x6cb2cf)<0x0&&(_0x4306be[_0x6cb2cf]=_0x1a7d51[_0x6cb2cf]);if(_0x1a7d51!=null&&typeof Object[_0x1dbff3(0x39b)]=='function'){for(var _0x37b12e=0x0,_0x6cb2cf=Object['getOwnPropertySymbols'](_0x1a7d51);_0x37b12e<_0x6cb2cf[_0x1dbff3(0x460)];_0x37b12e++)_0x58bdf6[_0x1dbff3(0x456)](_0x6cb2cf[_0x37b12e])<0x0&&Object[_0x1dbff3(0x29d)][_0x1dbff3(0x470)][_0x1dbff3(0x19d)](_0x1a7d51,_0x6cb2cf[_0x37b12e])&&(_0x4306be[_0x6cb2cf[_0x37b12e]]=_0x1a7d51[_0x6cb2cf[_0x37b12e]]);}return _0x4306be;},Ze=P[_0x57f41f(0x3b8)](function(_0x22c4c3,_0x516bd3){const _0x389c19=_0x57f41f;var _0x2deb52=_0x22c4c3[_0x389c19(0x21f)],_0x1626ec=_0x22c4c3['id'],_0x196b2f=_0x22c4c3[_0x389c19(0x142)],_0x58b37d=_0x22c4c3[_0x389c19(0x185)],_0x2eafea=Ui(_0x22c4c3,[_0x389c19(0x21f),'id','className',_0x389c19(0x185)]),_0x210329='univerjs-icon\x20univerjs-icon-'[_0x389c19(0x22d)](_0x1626ec,'\x20')[_0x389c19(0x22d)](_0x196b2f||'')[_0x389c19(0x388)](),_0xb949aa=P['useRef']('_'[_0x389c19(0x22d)](Ni()));return wt(_0x2deb52,''[_0x389c19(0x22d)](_0x1626ec),{'defIds':_0x2deb52[_0x389c19(0x3e4)],'idSuffix':_0xb949aa['current']},M({'ref':_0x516bd3,'className':_0x210329},_0x2eafea),_0x58b37d);});function wt(_0x15c729,_0x11a4ae,_0x5a5524,_0x4ded74,_0x387b4b){const _0x2c08b5=_0x57f41f;return P[_0x2c08b5(0x505)](_0x15c729[_0x2c08b5(0x3f3)],M(M({'key':_0x11a4ae},Pi(_0x15c729,_0x5a5524,_0x387b4b)),_0x4ded74),(wi(_0x15c729,_0x5a5524)[_0x2c08b5(0x251)]||[])[_0x2c08b5(0x366)](function(_0x559106,_0x2f3af1){const _0x22af81=_0x2c08b5;return wt(_0x559106,''['concat'](_0x11a4ae,'-')[_0x22af81(0x22d)](_0x15c729[_0x22af81(0x3f3)],'-')[_0x22af81(0x22d)](_0x2f3af1),_0x5a5524,void 0x0,_0x387b4b);}));}function Pi(_0x3320eb,_0x171ed8,_0x48a0dd){const _0x239fb6=_0x57f41f;var _0x569d15=M({},_0x3320eb['attrs']);_0x48a0dd!=null&&_0x48a0dd[_0x239fb6(0x1d2)]&&_0x569d15[_0x239fb6(0x512)]==='colorChannel1'&&(_0x569d15['fill']=_0x48a0dd['colorChannel1']);var _0x30e32b=_0x171ed8[_0x239fb6(0x3e4)];return!_0x30e32b||_0x30e32b[_0x239fb6(0x460)]===0x0||(_0x3320eb[_0x239fb6(0x3f3)]===_0x239fb6(0x175)&&_0x569d15[_0x239fb6(0x1bc)]&&(_0x569d15[_0x239fb6(0x1bc)]=_0x569d15[_0x239fb6(0x1bc)]+_0x171ed8[_0x239fb6(0x4dd)]),Object[_0x239fb6(0x424)](_0x569d15)[_0x239fb6(0x50c)](function(_0x597ade){const _0x1a2095=_0x239fb6;var _0x4294ac=_0x597ade[0x0],_0x4ae163=_0x597ade[0x1];typeof _0x4ae163=='string'&&(_0x569d15[_0x4294ac]=_0x4ae163[_0x1a2095(0x132)](/url\(#(.*)\)/,_0x1a2095(0x23b)[_0x1a2095(0x22d)](_0x171ed8[_0x1a2095(0x4dd)],')')));})),_0x569d15;}function wi(_0x3d2a0e,_0x17335e){const _0x3f02c2=_0x57f41f;var _0x453dd7,_0x4559ff=_0x17335e[_0x3f02c2(0x3e4)];return!_0x4559ff||_0x4559ff[_0x3f02c2(0x460)]===0x0?_0x3d2a0e:_0x3d2a0e[_0x3f02c2(0x3f3)]===_0x3f02c2(0x148)&&(!((_0x453dd7=_0x3d2a0e[_0x3f02c2(0x251)])===null||_0x453dd7===void 0x0)&&_0x453dd7['length'])?M(M({},_0x3d2a0e),{'children':_0x3d2a0e[_0x3f02c2(0x251)]['map'](function(_0x126d3d){const _0x51db87=_0x3f02c2;return typeof _0x126d3d[_0x51db87(0x3e1)]['id']==_0x51db87(0x2a8)&&_0x4559ff&&_0x4559ff[_0x51db87(0x456)](_0x126d3d['attrs']['id'])>-0x1?M(M({},_0x126d3d),{'attrs':M(M({},_0x126d3d[_0x51db87(0x3e1)]),{'id':_0x126d3d[_0x51db87(0x3e1)]['id']+_0x17335e[_0x51db87(0x4dd)]})}):_0x126d3d;})}):_0x3d2a0e;}function Ni(){const _0x2d2d2b=_0x57f41f;return Math[_0x2d2d2b(0x2f7)]()['toString'](0x24)[_0x2d2d2b(0x3ba)](0x2,0x8);}Ze['displayName']=_0x57f41f(0x480);var Mi={'tag':_0x57f41f(0x171),'attrs':{'fill':_0x57f41f(0x20d),'viewBox':_0x57f41f(0x47e),'width':_0x57f41f(0x206),'height':_0x57f41f(0x206)},'children':[{'tag':'g','attrs':{'clipPath':_0x57f41f(0x14c)},'children':[{'tag':'path','attrs':{'stroke':_0x57f41f(0x2ec),'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':_0x57f41f(0x477),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x57f41f(0x148),'attrs':{},'children':[{'tag':_0x57f41f(0x48d),'attrs':{'id':_0x57f41f(0x46f)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x57f41f(0x18e)}}]}]}],'defIds':[_0x57f41f(0x46f)]},Nt=P[_0x57f41f(0x3b8)](function(_0x5f4e9f,_0x18bed1){const _0x314cc8=_0x57f41f;return P['createElement'](Ze,Object[_0x314cc8(0x1c2)]({},_0x5f4e9f,{'id':_0x314cc8(0x42b),'ref':_0x18bed1,'icon':Mi}));});Nt[_0x57f41f(0x3d9)]=_0x57f41f(0x32e);var Ai={'tag':_0x57f41f(0x171),'attrs':{'fill':'none','viewBox':_0x57f41f(0x44c),'width':_0x57f41f(0x206),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x57f41f(0x35f)},'children':[{'tag':_0x57f41f(0x1a6),'attrs':{'stroke':_0x57f41f(0x2ec),'d':_0x57f41f(0x140),'strokeLinecap':_0x57f41f(0x477),'strokeLinejoin':_0x57f41f(0x477),'strokeWidth':1.2}}]},{'tag':_0x57f41f(0x148),'attrs':{},'children':[{'tag':_0x57f41f(0x48d),'attrs':{'id':_0x57f41f(0x212)},'children':[{'tag':'path','attrs':{'fill':_0x57f41f(0x3a3),'d':_0x57f41f(0x18e),'transform':_0x57f41f(0x2fb)}}]}]}],'defIds':[_0x57f41f(0x212)]},Mt=P[_0x57f41f(0x3b8)](function(_0x46e702,_0x12434c){const _0x488ff7=_0x57f41f;return P['createElement'](Ze,Object[_0x488ff7(0x1c2)]({},_0x46e702,{'id':_0x488ff7(0x426),'ref':_0x12434c,'icon':Ai}));});Mt[_0x57f41f(0x3d9)]=_0x57f41f(0x147);function At(_0x3cde9a){const _0x2455ff=_0x57f41f;var _0x1f15eb,_0x230d68,_0x4abfbf='';if(typeof _0x3cde9a=='string'||typeof _0x3cde9a==_0x2455ff(0x1fe))_0x4abfbf+=_0x3cde9a;else{if(typeof _0x3cde9a==_0x2455ff(0x412)){if(Array[_0x2455ff(0x2f8)](_0x3cde9a)){var _0x2873c1=_0x3cde9a[_0x2455ff(0x460)];for(_0x1f15eb=0x0;_0x1f15eb<_0x2873c1;_0x1f15eb++)_0x3cde9a[_0x1f15eb]&&(_0x230d68=At(_0x3cde9a[_0x1f15eb]))&&(_0x4abfbf&&(_0x4abfbf+='\x20'),_0x4abfbf+=_0x230d68);}else{for(_0x230d68 in _0x3cde9a)_0x3cde9a[_0x230d68]&&(_0x4abfbf&&(_0x4abfbf+='\x20'),_0x4abfbf+=_0x230d68);}}}return _0x4abfbf;}function Li(){const _0x16c0cf=_0x57f41f;for(var _0x7e538d,_0x453c86,_0x28e449=0x0,_0x257dfe='',_0x39a203=arguments[_0x16c0cf(0x460)];_0x28e449<_0x39a203;_0x28e449++)(_0x7e538d=arguments[_0x28e449])&&(_0x453c86=At(_0x7e538d))&&(_0x257dfe&&(_0x257dfe+='\x20'),_0x257dfe+=_0x453c86);return _0x257dfe;}const ji=_0x57f41f(0x18a),$i=_0x57f41f(0x313),Hi=_0x57f41f(0x3d2),xi='univer-online',ki=_0x57f41f(0x33f),he={'onlineStatusIcon':ji,'onlineStatusTitle':$i,'onlineStatus':Hi,'online':xi,'offline':ki};function Bi(_0x25f2cf){const _0x227696=_0x57f41f;switch(_0x25f2cf){case U['OFFLINE']:return _0x227696(0x535);case U[_0x227696(0x21c)]:return'collabStatus.conflict';case U['FETCH_MISS']:return _0x227696(0x4ca);case U[_0x227696(0x233)]:return _0x227696(0x215);case U[_0x227696(0x508)]:case U['AWAITING']:case U['AWAITING_WITH_PENDING']:return _0x227696(0x133);case U[_0x227696(0x3c5)]:return'collabStatus.synced';}}function Lt(_0x1ec028){const _0x4657a5=_0x57f41f,{status$:_0x4c3dd5}=_0x1ec028,_0x5bb162=A[_0x4657a5(0x3f9)](_0x4c3dd5,U['NOT_COLLAB']),_0x462bb7=a[_0x4657a5(0x2a9)](a['LocaleService']),_0x2408ae=a[_0x4657a5(0x2a9)](exports[_0x4657a5(0x19b)]),_0x547e5f=_0x5bb162!==U[_0x4657a5(0x2d2)],_0x2edbe7=_0x462bb7['t'](Bi(_0x5bb162)),_0x3e1d7a=Li(he['onlineStatus'],{[he[_0x4657a5(0x398)]]:_0x547e5f,[he['offline']]:!_0x547e5f}),_0x47ba26=_0x547e5f?P[_0x4657a5(0x505)](Mt,null):P[_0x4657a5(0x505)](Nt,null),_0x1bb165=P['useCallback'](()=>{const _0x5482b9=_0x4657a5;_0x547e5f||_0x2408ae[_0x5482b9(0x17f)]();},[_0x547e5f,_0x2408ae]);function _0x48866a(){const _0x284395=_0x4657a5;return P[_0x284395(0x505)](_0x284395(0x18b),{'className':_0x3e1d7a,'onClick':_0x1bb165},P[_0x284395(0x505)](_0x284395(0x18b),{'className':he[_0x284395(0x2ef)]},_0x47ba26),P['createElement'](_0x284395(0x18b),{'className':he[_0x284395(0x298)]},_0x2edbe7));}return _0x547e5f?_0x48866a():P[_0x4657a5(0x505)](X['Tooltip'],{'title':_0x462bb7['t'](_0x4657a5(0x3ca))},_0x48866a());}var Vi=Object['defineProperty'],Wi=Object[_0x57f41f(0x191)],Fi=(_0x41c816,_0x46c83b,_0x2373af,_0x317377)=>{const _0x5470f5=_0x57f41f;for(var _0x13d3e6=_0x317377>0x1?void 0x0:_0x317377?Wi(_0x46c83b,_0x2373af):_0x46c83b,_0x22d2b6=_0x41c816[_0x5470f5(0x460)]-0x1,_0x195ce2;_0x22d2b6>=0x0;_0x22d2b6--)(_0x195ce2=_0x41c816[_0x22d2b6])&&(_0x13d3e6=(_0x317377?_0x195ce2(_0x46c83b,_0x2373af,_0x13d3e6):_0x195ce2(_0x13d3e6))||_0x13d3e6);return _0x317377&&_0x13d3e6&&Vi(_0x46c83b,_0x2373af,_0x13d3e6),_0x13d3e6;},ge=(_0x518d9b,_0x1842dd)=>(_0x4d272d,_0x41ea69)=>_0x1842dd(_0x4d272d,_0x41ea69,_0x518d9b);exports[_0x57f41f(0x2bf)]=class extends a['Disposable']{constructor(_0x59d361,_0x166ca9,_0x36e423,_0x112d56){const _0x1ede16=_0x57f41f;super(),u(this,_0x1ede16(0x524),new v['BehaviorSubject'](U[_0x1ede16(0x233)])),(this[_0x1ede16(0x131)]=_0x59d361,this['_uiPartsService']=_0x166ca9,this[_0x1ede16(0x331)]=_0x36e423,this[_0x1ede16(0x186)]=_0x112d56,this[_0x1ede16(0x2ab)](),this[_0x1ede16(0x37c)]());}[_0x57f41f(0x37c)](){const _0x3cf3e1=_0x57f41f;this[_0x3cf3e1(0x1e2)](this[_0x3cf3e1(0x131)]['focused$'][_0x3cf3e1(0x4bb)](v[_0x3cf3e1(0x237)](()=>{const _0x5b7c8b=_0x3cf3e1,_0x4363a6=this[_0x5b7c8b(0x131)][_0x5b7c8b(0x324)]();return _0x4363a6?this[_0x5b7c8b(0x186)][_0x5b7c8b(0x4c9)](_0x4363a6[_0x5b7c8b(0x263)]()):v['of'](null);}),v[_0x3cf3e1(0x237)](_0x2016e5=>_0x2016e5?_0x2016e5[_0x3cf3e1(0x26c)]:v['of'](U[_0x3cf3e1(0x233)])))[_0x3cf3e1(0x3ee)](_0x5aa6e5=>{const _0x360070=_0x3cf3e1;this['_status$'][_0x360070(0x49c)](_0x5aa6e5);}));}[_0x57f41f(0x2ab)](){const _0x140af2=_0x57f41f;this[_0x140af2(0x1e2)](this['_uiPartsService'][_0x140af2(0x4ec)](A[_0x140af2(0x504)][_0x140af2(0x43d)],()=>a['connectInjector'](Gi({'status$':this['_status$'][_0x140af2(0x41e)]()}),this[_0x140af2(0x331)])));}},exports['DesktopCollaborationStatusDisplayController']=Fi([ge(0x0,a['IUniverInstanceService']),ge(0x1,A[_0x57f41f(0x228)]),ge(0x2,a['Inject'](a[_0x57f41f(0x410)])),ge(0x3,a[_0x57f41f(0x1ec)](exports[_0x57f41f(0x34d)]))],exports['DesktopCollaborationStatusDisplayController']);function Gi(_0x43de61){const {status$:_0xdeadbe}=_0x43de61;return function(){return P['createElement'](Lt,{'status$':_0xdeadbe});};}const Qe=a['createIdentifier'](_0x57f41f(0x1f5));var Yi=Object[_0x57f41f(0x522)],Ki=Object[_0x57f41f(0x191)],Xi=(_0x1f4c92,_0x357d1c,_0x4f07ea,_0x374105)=>{const _0x3008bb=_0x57f41f;for(var _0x28508e=_0x374105>0x1?void 0x0:_0x374105?Ki(_0x357d1c,_0x4f07ea):_0x357d1c,_0x20b7f0=_0x1f4c92[_0x3008bb(0x460)]-0x1,_0x23bb6f;_0x20b7f0>=0x0;_0x20b7f0--)(_0x23bb6f=_0x1f4c92[_0x20b7f0])&&(_0x28508e=(_0x374105?_0x23bb6f(_0x357d1c,_0x4f07ea,_0x28508e):_0x23bb6f(_0x28508e))||_0x28508e);return _0x374105&&_0x28508e&&Yi(_0x357d1c,_0x4f07ea,_0x28508e),_0x28508e;},ee=(_0x248b96,_0x4e49da)=>(_0x4764d2,_0x35393d)=>_0x4e49da(_0x4764d2,_0x35393d,_0x248b96);exports[_0x57f41f(0x327)]=class extends a[_0x57f41f(0x1c5)]{constructor(_0xa1cabe,_0x31e264,_0x3db53e,_0x126c15,_0x4c0229,_0x264ed1){const _0x13a280=_0x57f41f;super(),this[_0x13a280(0x4e1)]=_0xa1cabe,this[_0x13a280(0x181)]=_0x31e264,this['_commandService']=_0x3db53e,this['_localCacheService']=_0x126c15,this['_snapshotService']=_0x4c0229,_0x264ed1?_0x264ed1==null||_0x264ed1[_0x13a280(0x392)]()[_0x13a280(0x407)](()=>this[_0x13a280(0x326)]()):(this['_logService'][_0x13a280(0x2e5)](_0x13a280(0x4b1),_0x13a280(0x204)),this[_0x13a280(0x326)]());}async[_0x57f41f(0x326)](){const _0x39b44b=_0x57f41f,_0x15254d=this[_0x39b44b(0x4e1)][_0x39b44b(0x41d)]('unit'),_0x4d6b80=this[_0x39b44b(0x4e1)][_0x39b44b(0x41d)](_0x39b44b(0x221));if(!_0x15254d||!_0x4d6b80){this[_0x39b44b(0x181)][_0x39b44b(0x2e5)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x4d6b80)){case $[_0x39b44b(0x197)]:{const _0x549eb6=await this['_loadSheet'](_0x15254d);this[_0x39b44b(0x1bf)](_0x549eb6);break;}case $['UNIVER_DOC']:{await this[_0x39b44b(0x432)](_0x15254d);break;}default:{this[_0x39b44b(0x181)]['error'](_0x39b44b(0x4b1),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x57f41f(0x1bf)](_0x93e00){const _0x5a7acc=_0x57f41f;await this[_0x5a7acc(0x4ce)](_0x93e00),_0x93e00[_0x5a7acc(0x277)][_0x5a7acc(0x4bb)](v[_0x5a7acc(0x12b)](this[_0x5a7acc(0x43a)]))[_0x5a7acc(0x3ee)](_0x45719d=>{const _0x471ed4=_0x5a7acc;_0x45719d&&this[_0x471ed4(0x2f2)](_0x45719d);}),this[_0x5a7acc(0x4e1)]['urlChange$']['pipe'](v[_0x5a7acc(0x12b)](this[_0x5a7acc(0x43a)]))['subscribe'](()=>this[_0x5a7acc(0x4ce)](_0x93e00));}[_0x57f41f(0x2f2)](_0x873a1,_0x42020b=!0x1){const _0x846eb6=_0x57f41f,_0x597785=this[_0x846eb6(0x4e1)][_0x846eb6(0x41d)](_0x846eb6(0x44a));_0x873a1[_0x846eb6(0x255)]()!==_0x597785&&this['_urlService']['setParam'](_0x846eb6(0x44a),_0x873a1[_0x846eb6(0x255)](),_0x42020b);}async[_0x57f41f(0x4ce)](_0x2c9fe5){const _0x28b92f=_0x57f41f;var _0xa3e27a;const _0x2f07e4=this[_0x28b92f(0x4e1)][_0x28b92f(0x41d)](_0x28b92f(0x44a));if(!_0x2f07e4||!_0x2c9fe5[_0x28b92f(0x446)](_0x2f07e4)){const _0x8e822b=_0x2c9fe5[_0x28b92f(0x4ff)]()[0x0],_0x27e495=_0x2c9fe5['getSheetBySheetId'](_0x8e822b);if(!_0x27e495)return;this[_0x28b92f(0x2f2)](_0x27e495,!0x0),await this[_0x28b92f(0x547)][_0x28b92f(0x449)](C[_0x28b92f(0x34c)]['id'],{'unitId':_0x2c9fe5['getUnitId'](),'subUnitId':_0x8e822b});return;}((_0xa3e27a=_0x2c9fe5[_0x28b92f(0x2ad)]())==null?void 0x0:_0xa3e27a[_0x28b92f(0x255)]())!==_0x2f07e4&&await this[_0x28b92f(0x547)][_0x28b92f(0x449)](C[_0x28b92f(0x34c)]['id'],{'unitId':_0x2c9fe5['getUnitId'](),'subUnitId':_0x2f07e4});}async[_0x57f41f(0x1ca)](_0x23195e){const _0x42a5f4=_0x57f41f;let _0x1fcf38=0x0;const _0x2a8c8b=await this['_localCacheService'][_0x42a5f4(0x1e0)](_0x23195e);return _0x2a8c8b&&(_0x2a8c8b[_0x42a5f4(0x47a)]||_0x2a8c8b[_0x42a5f4(0x506)][_0x42a5f4(0x460)]!==0x0)&&(_0x1fcf38=_0x2a8c8b[_0x42a5f4(0x183)]),_0x1fcf38===0x0&&this[_0x42a5f4(0x181)][_0x42a5f4(0x2e5)](_0x42a5f4(0x4b1),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x42a5f4(0x16b)][_0x42a5f4(0x420)](_0x23195e,_0x1fcf38);}async['_loadDoc'](_0x151ad7){const _0xbf976b=_0x57f41f;let _0x2b8670=0x0;const _0x219152=await this['_localCacheService'][_0xbf976b(0x1e0)](_0x151ad7);return _0x219152&&(_0x219152[_0xbf976b(0x47a)]||_0x219152[_0xbf976b(0x506)]['length']!==0x0)&&(_0x2b8670=_0x219152[_0xbf976b(0x183)]),_0x2b8670===0x0&&this[_0xbf976b(0x181)][_0xbf976b(0x2e5)]('[DataLoaderController]',_0xbf976b(0x30f)),this['_snapshotService']['loadDoc'](_0x151ad7,_0x2b8670);}},exports[_0x57f41f(0x327)]=Xi([ee(0x0,Qe),ee(0x1,a['ILogService']),ee(0x2,a['ICommandService']),ee(0x3,a['Inject'](exports[_0x57f41f(0x4a8)])),ee(0x4,a['Inject'](_[_0x57f41f(0x20f)])),ee(0x5,a[_0x57f41f(0x177)](Kt[_0x57f41f(0x2d8)]))],exports[_0x57f41f(0x327)]);var qi=Object[_0x57f41f(0x522)],zi=Object[_0x57f41f(0x191)],Ji=(_0x1417df,_0x2180ee,_0x9c0f3,_0x3951de)=>{const _0x11b160=_0x57f41f;for(var _0xd3d246=_0x3951de>0x1?void 0x0:_0x3951de?zi(_0x2180ee,_0x9c0f3):_0x2180ee,_0x528764=_0x1417df[_0x11b160(0x460)]-0x1,_0x20de58;_0x528764>=0x0;_0x528764--)(_0x20de58=_0x1417df[_0x528764])&&(_0xd3d246=(_0x3951de?_0x20de58(_0x2180ee,_0x9c0f3,_0xd3d246):_0x20de58(_0xd3d246))||_0xd3d246);return _0x3951de&&_0xd3d246&&qi(_0x2180ee,_0x9c0f3,_0xd3d246),_0xd3d246;},_t=(_0x59d900,_0x35fd6d)=>(_0x2cffb0,_0x4d93d3)=>_0x35fd6d(_0x2cffb0,_0x4d93d3,_0x59d900);const Zi=_0x57f41f(0x4a0),Qi=_0x57f41f(0x382);let Ce=class extends a[_0x57f41f(0x1b5)]{constructor(_0x1eebd2,_0x5ae679){const _0x404a60=_0x57f41f;super(),this['_univerInstanceService']=_0x1eebd2,this[_0x404a60(0x172)]=_0x5ae679,this[_0x404a60(0x326)]();}[_0x57f41f(0x326)](){const _0x46be79=_0x57f41f;this[_0x46be79(0x1e2)](this['_univerInstanceService'][_0x46be79(0x490)][_0x46be79(0x3ee)](()=>{const _0x16967f=_0x46be79;var _0x102b78;const _0x4cb8d3=this[_0x16967f(0x131)][_0x16967f(0x324)]();let _0x135f87=(_0x102b78=this[_0x16967f(0x172)][_0x16967f(0x37f)](Zi))!=null?_0x102b78:Qi;_0x4cb8d3 instanceof a['Workbook']&&(_0x135f87=_0x4cb8d3['name']),document[_0x16967f(0x164)]=_0x135f87;}));}};Ce=Ji([_t(0x0,a[_0x57f41f(0x546)]),_t(0x1,a[_0x57f41f(0x435)])],Ce);function _0xf60c(){const _0x468e35=['toRgbString','arc','defIds','_initEventListeners','LOCAL_CACHE_INTERVAL_KEY','_anchor','IBeforeCloseService','_getMergeRange','IContextService','lineTo','_handleLeaveEvent','url','subscribe','throttleTime','105kSwSdZ','size','catch','tag','_colorAssignService','findNodePositionByCharIndex','toggleOnline','_assignedColors','&source=','useObservable','awaiting_with_pending','AuthzIoHttpService','evenodd','jiqing500','LIVESHARE_REQUEST_HOST','_imageSourceCache','UNKNOWN_CMD','with','MergeInterceptorFactory','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','LICENSE_MAX_UNITS_EXCEEDED','LocaleService','COLLAB_WEB_SOCKET_URL','then','WebURLService','reverse','saveOfflineData','blue400','_collaborationSessionService','_syncEditingCollabCursorService','reqId','editing\x20status\x20changed\x20to','Injector','Error','object','getSkeleton','startsWith','/universer-api/comb','_hovered','getRandomValues','_transitionLocked','APPLY_REJECT','ThemeService','isTransformMutationsWithChangesetSuccess','message$','getParam','asObservable','getTypeOfUnitDisposed$','loadSheet','collab-text-range-','unit','slice','entries','_docTransformIMECacheService','on-line-single','/universer-api/stream/file/upload','SheetsSelectionsService','_startDocCollabCursor','hasOwnProperty','off-line-single','SheetSkeletonManagerService','_initCommandExecutedListener','_throwTelemetryCollaborationNewChangeset','registerRefRange','_hover','pluginName','_loadDoc','COMPRESS_MUTATION_SEND','ImageIoService','IConfigService','ONLINE','session.room-full','event$','UNIVER_SLIDE','dispose$','AUTHZ_URL_KEY','WebSocketService','HEADER_MENU','fromEventSubject','onSyncEditingCollabCursor','_handleEvent','RevisionService','parseChangesetToProtocol','_userManagerService','_removeCollabCursors','_entityInit$','getSheetBySheetId','currentSkeleton$','onTransformRemoteChangesetByIMECache','executeCommand','subunit','_ensureSubject','0\x200\x2017\x2016','handleInsertRangeMoveDown','setCurrentUser','doc.mutation.rich-text-editing','listRoles','transform','_singleActiveUnitService','save','fetch_missing','fetchMissingChangesets','indexOf','_startTelemetryCollaborationNewChangeset','values','getDeserializedSheetBlock','CompressMutationService','[OfflineState]:\x20received\x20acknowledgement.','getCurrentUser','HTTPService','endColumn','isTransformChangesetsSuccess','length','uploadFileServerUrl','[UniverCollaborationClientPlugin]','INVALID_ARGUMENT','41128mZOrSE','generateRandomId','cmd','font','session.collaboration-timeout','mergeOverrideWithDependencies','_renderManagerService','SEND_CHANGESET_TIMEOUT','_socketMessageSubscription','FAIL','unit-cache-','off-line-single_clip0_910_343','propertyIsEnumerable','COMPRESS_MUTATION_APPLY','collaboration-session-retry','_clearCollaborationTimeoutTimer','batchAllowed','LIVESHARE_TERMINATE','sequenceExecute','round','/-/object/list','resourceIDs','awaitingChangeset','send','_awaitingChangeset','snapshot','0\x200\x2016\x2016','_candidateSocket','UniverIcon','getActiveRange','fromEvent','_shapes','YUUMI_URL_COL_OUT_OF_RANGE','replaceTextRanges','selection','getMember','getRenderById','JOINING','PERMISSION_DENIED','_tryReconnect','conflict.content','clipPath','CollaborationEvent','contains','focused$','/rev/','_scheduleHeartbeat','textEncoder','cursorInfo','_onRefRangeChange','LIVESHARE_FETCH_OPERATIONS','method','_httpService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_notificationService','debounceTime','next','_toggleOffline','getRangePointData','YUUMI_SUBSCRIPTION_NOT_FOUND','DEFAULT_FILE_NAME','SetSelectionsOperation','deleteCollaborator','enableLocalCache','complete','onRemoteChangeset','MSG_FOR_ERROR','CommandType','LocalCacheService','sessionStatus','createCollaborator','...','fillStyle','exhaustSavingTask','getCoordByCell','USERS_LEAVE','/universer-api/authz','[DataLoaderController]','deepClone','serializeRangeWithSheet','_cursorShapes','createSocket','_timeoutTimer','POST','registerOnClose','_messageService','react','pipe','274603anMymP','newValue','getCellPositionByOffset','onCommentUpdate','transformIMECache','capture','reject','_onRemoteChangeset','LICENSE_IMPORT_SIZE_EXCEEDED','_stopTelemetryCollaborationNewChangeset','registerBeforeClose','_render','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','getCollabEntity$','collabStatus.fetchMiss','_transformSelections','getViewport','_telemetryService','_updateSubUnitFromURLParams','_sheetSkeletonManagerService','synced','IHTTPImplementation','PERMISSION_REJ','collab-rect-range-','_onCursorUpdate','UNDEFINED','_submitChangeset','objectActions','delay','_waitCount','onload','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','updateOfflineData','idSuffix','_scheduleCollaborationTimeoutTimer','find','WorkbookEditablePermission','_urlService','_startCollaboration','getRelativeToViewportCoord','IDLE','hide','headers','_collabSessionService','_roomMembers$','Undefined','getResourcesRequest','createInstance','registerComponent','onPointerLeave$','ranges','isActive','handleMoveRange','pauseCollaboration','_saveCache','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_queuedRemoteChangesets','BASE64','UniverInstanceType','setInterval','clearInterval','toggleOffline','appendMutation','now','EXCHANGE_SIGN_URL_SERVER_URL_KEY','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_onRecvEvent','getUnhiddenWorksheets','CollaborationEntity','UNIVER_PROJECT','_drawRectRange','skeleton','BuiltInUIPart','createElement','mutations','getLatestCsReqIdBySid','PENDING','clearTimeout','text','_clearUndo','forEach','_shouldReportTelemetry','removeMember','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','rng','LOGIN_URL_KEY','fill','_scheduleSaving','@univerjs/engine-formula','\x20-\x20','fetchMiss','_instanceService','resend','_getSheetObject','/block/','triggerDblclick','HEARTBEAT_TIMEOUT','encodeURIComponent','_revisionService','update','IAuthzIoService','_selfUnitIDs','defineProperty','_updateStatus','_status$','closePath','handleInsertCol','[PendingState]:\x20received\x20rejection.','HELLO','_clearRedo','_createHandler','distinctUntilChanged','EmptyMutation','getAttachHeader','getCurrentRevOfUnit','onMissingChangesets','workbook','_disabled','_clearLocalCache','assignAColorForMemberID','onPointerMove$','collabStatus.offline','_eventUnsubscribe','collabWebSocketUrl','eventID','_color','isTransformMutationsWithChangesetFailure','ImageSourceType','getUnitOnRev','NodePositionConvertToCursor','OTHER_CLIENTS_EDITING','SNAPSHOT_SERVER_URL_KEY','setTimeout','engine','error','TRANSFORM_CHANGE_OBSERVABLE_TYPE','2sdvziQ','reduce','IUniverInstanceService','_commandService','_themeService','ILocalStorageService','SNAPSHOT_URL_KEY','unshift','Subject','JOIN','_checkMissing','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_members','registerRenderModule','ITransformService','TEXT_RANGE_LAYER_INDEX','min','responseType','takeUntil','put','enableSingleActiveInstanceLock','_listenToOnlineEvent','_onRemoteRejected','transformUndoRedo','_univerInstanceService','replace','collabStatus.syncing','_registerRenderDependencies','_colorIndex','bind','collaboration.closeRoom','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','compose','_unitStatus','JSONX','SessionStatus','onRemoteAck','_HTTPService','target','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','failed\x20to\x20apply\x20missed\x20changesets!','className','COLLAB_SUBMIT_CHANGESET_URL','ISnapshotServerService','getMemberID','SetDocZoomRatioOperation','OnLineSingle','defs','RETRY_CONNECTING_MAX_COUNT','Unknown\x20user','updateMember','url(#off-line-single_clip0_910_343)','snapshotServerUrl','LICENSE_DISTRO_REJECTED','/object','add','touchDependencies','newCsEvent','UPDATE_CURSOR','_snapshotServerService','_acknowledgedAwaitingChangeset','774792cEPNyc','/role','socket\x20open.','clear','FromArray','params','IRenderManagerService','_collabCursorController','actions','_initModules','updateCollaborator','[CollaborationSession]','ILogService','members','title','_onRemoteACK','socketService','_createSocket','getMergeData','IPermissionService','_changesetSessionId','_snapshotService','result','handleInsertRow','@univerjs/telemetry','row','/unit/','svg','_configService','getColor','VIEW_MAIN','use','getItem','Optional','ICommandService','textRanges','state$','_replayCachedMutations','_range','location','_name','reconnect','from','_logService','_http','rev','_fetchMissChangesets','extend','_collaborationController','[CollaborationSessionService]','onSendChangeset','debounce','univer-online-status-icon','div','deserializeToCombResponse','makeDirty','M0\x200H16V16H0z','roomMembers$','_localCacheService','getOwnPropertyDescriptor','startTime','createIdentifier','_transformRemoteChangesetByIMECache','ERROR_IMAGE','deserializeRangeWithSheet','UNIVER_SHEET','data','/universer-api/snapshot/','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','CollaborationSessionService','c1Prime','call','APPLY_DUPLICATED','setUndoRedoMutationParamsCache','body','parse','closeSession','width','COLORS','_onCursorDelete','path','UNIVER_DOC','\x0aAfter:\x20','INTERNAL_ERROR','image/jpg','SetTextSelectionsOperation','_replaceFileID','_lastPointer','error$','_transformUndoredo','LocalUndoRedoService','transformByState','_type','onlyLocal','Warning','Disposable','YUUMI_UNABLE_LOAD_URL','/collaborator','Rectangle','flatMap','_onCombEvent','ColorKit','xlink:href','sessionStatus$','_telemetryInfo','_setupSubUnitSync','\x20in\x20_schedule.','@univerjs/rpc','assign','_createInitialStateImpl','roomInfos','RxDisposable','HEARTBEAT_INTERVAL_KEY','1524050gLqxRW','InsertSheetMutation','unknown','_loadSheet','collaMsg','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_permissionService','/new_changes','MessageType','DocSelectionManagerService','unitId','colorChannel1','collaboration.single-unit.warning','_commentUpdate$','max','_handleHover','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','state','_docTransformSelectionsService','IURLService','_retryCount','resolve','setItem','randomUUID','loadOfflineData','getUnitStatus$','disposeWithMe','getInterceptPoints','transformMutation','_handler','_sendHeartbeat','_changesetReqId','sheets','[PendingState]:\x20received\x20acknowledgement.','RegularPolygon','HttpImport','Inject','_state$','YUUMI_RATE_OVER_LIMIT','@univerjs-pro/license','rxjs','onTransformChange$','disableLocalCache','_scene','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','uni.network.url-service','ws://127.0.0.1:8000/universer-api/comb/connect','DisposableCollection','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','toDisposable','save\x20fail\x20reason\x20is\x20','enableOfflineEditing','_getSaveTimeout','history','number','routeKey','addObject','getImage','/fetchmissing?from=','_send','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','readAsDataURL','1em','objectID','editingUnit','setParam','_getAPIPrefixPath','set','memberID','none','_hideTimer','SnapshotService','onPointerEnter$','purple300','on-line-single_clip0_910_349','TOO_MANY_REQUESTS','/-/object/-/batch_allowed','collabStatus.notCollab','collaboration-client.config','not_collab','setConfig','_drawAnchor','color','_syncEditingCollabCursor','CONFLICT','UUID','currentTheme$','icon','HttpExport','type','filter','DocCollaborationEntity','authzUrl','file','USERS_ENTER','_getUndoStack','IUIPartsService','UNIVER_UNKNOWN','conflict','UNKNOWN_CODE','fillText','concat','_waitForHeartbeatResponse','permission.title','onTransformSelections','_initMergeInterceptor','handleIRemoveCol','NOT_COLLAB','roomMembers','_collaborationTimeoutTimer','originalMeta','switchMap','b64DecodeUnicode','collaboration_new_changeset','_schedule','url(#$1','removeParam','APPLY_REVISION_CONFILICT','_backgroundColor','origin','RefRangeService','take','_unitOnClients','NO_OTHER_CLIENTS_EDITING','column','isPermissionRej','_onFetchMissResult','enableAuthServer','_pendingMutations','_getRedoStack','updateCursorEvent','sheetId','_initUnitPermissionChange','_sessions','IUndoRedoService','/object/','src','children','_onLocalMutation','CollaborationSocketService','apply','getSheetId','_getSignURL','?url=','toString','_clearHeartbeatTimer','fromCollab','_scheduleTimestamp','Tools','urlChange$','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','beginPath','cursorInfo$','height','rgba(255,\x20255,\x20255,\x200.01)','getUnitId','onMouseMove','AWAITING','selections','interceptor','COLLAB_WEB_SOCKET_URL_KEY','CHANGESET_ACK','_executeRemoteChangeset','_updateLocalCache','status$','@univerjs/docs','_joinRoom','253650KwWGXG','_beforeCloseService','changesets','_initResize','_change$','collabSubmitChangesetUrl','_getUploadFileURL','getUnitType','activeSheet$','597186wkZGcP','_ws','FETCH_MISSING','_removeRoom','_undoRedoService','{fileID}','disposeUnit','pushState','_initCloseConn','ERROR_EXCEED_SIZE','startColumn','SHOULD_CLOSE_CONN','_toggleOnline','_transformPreviousActiveRange','RichTextEditingMutation','_transformUndoRedoStack','\x0aCurrent:\x20','ACTIVE_UNIT_EVENT_CHANNEL','isTransformMutationFailure','_incrementRevisionNumber','LIVESHARE_OPERATION','localeService','_unitID','setAlpha','SNAPSHOT_HAS_BEEN_REMOVED','ENSURE_SNAPSHOT_EXECUTION','DocSkeletonManagerService','_heartbeatTimer','_localStorageService','handleIRemoveRow','fetchThroughInterceptors','action','onlineStatusTitle','?size=','includes','/resources','UNIVER_COLLABORATION_CLIENT_PLUGIN','prototype','_createInitialState','\x20to\x20','AWAITING_WITH_PENDING','allowed','listCollaborators','_onUserLeave','InsertRowCommandId','ImageUploadStatusType','post','UNAUTHENTICATED','string','useDependency','joinEvent','_initStatusComponent','_sendHeartbeatTimer','getActiveSheet','@univerjs/docs-ui','onReady','_getDownloadEndpointURL','_textBubble','moveTo','key','Vector2','_collabCursorState$','requireSession','LOCAL_CACHE_INTERVAL','_onUserJoin','InsertRangeMoveRightCommandId','isInternalEditorID','_commentService','_applyRemoteChangeset','onRemoteRej','_substituteUndoStack','DesktopCollaborationStatusDisplayController','auth.needGotoLoginAlert','_getCurrentRevision','getTime','APPLY_PERMISSION_DENIED','_showConflictNotification','updatePermissionPoint','downloadEndpointUrl','_clearTimeoutTimer','_decreaseWaiting','has','102GYahEy','getCollabCursors$','COLLAB_SUBMIT_CHANGESET_URL_KEY','_session','MoveRangeCommandId','_docStateChangeManagerService','push','INotificationService','OFFLINE','ALREADY_EXISTS','_setupBeforeClosingHandler','_retryConnectingTimer','_initRequestHeader','status','IRemoteInstanceService','FETCH_MISS','href','RECV','_onConnectionFailed','registerHTTPInterceptor','override','_socketReady','unitId\x20is\x20not\x20found','getUndoRedoMutationParamsCache','DocIMEInputManagerService','CollaborationSession','list','debug','requestParams','[CollaborationUndoRedoService]','collaboratorID','_roomMembers','SUCCUSS','image/jpeg','currentColor','_docSyncEditingCollabCursorService','UniverCollaborationClientPlugin','onlineStatusIcon','red300','mapDocumentTypeToUniverType','_updateURLWithCurrentState','getRoom','_tryEnsureSocket','_event$','sheetID','random','isArray','InsertRangeMoveDownCommandId','LIVESHARE_NEW_HOST','translate(.97)','_onJoinRoomEvent','HEARTBEAT','getUnit','syncEditingCollabCursor','drawWith','@univerjs-pro/collaboration','_getSendChangesetTimeout','labelPosition','Shape','pending','_updateState','onTransformIME','revision','split','_onConnectionOpen','UniverCollaborationPlugin','DeleteRangeMoveUpCommandId','serializeCombRequest','_handleHeartbeatEvent','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_document','_scheduleClearOtherTimer','UnitEmbedded','univer-online-status-title','_compressMutationService','connection\x20error','close','getTypeOfUnitAdded$','black','session.will-retry','transformRemoteChangeset','sid','_clearScheduledTask','_onMessage','c2Prime','get','shareReplay','_socket$','toLowerCase','transformMutationsWithChangeset','getFocusedUnit','Error\x20on\x20receiving\x20event','_init','DataLoaderController','getDocRanges','_cursorInfo$','EffectRefRangId','@univerjs/sheets-ui','_onConflict','_online','OffLineSingle','_transformStack','PSEUDO_FETCH_MISSING_RESULT','_injector','withCredentials','getImageSourceCache','collab-text-anchor-','mapTo','bottom','_getSnapshotAPIPrefix','_drawTextRange','liveShareNewHost','userID','parseProtocolChangeset','HEARTBEAT_TIMEOUT_KEY','setShapeProps','name','univer-offline','saveSnapshot','offline','univer-pro.collaboration-client-socket-service','commentUpdateEvent','change$','DocStateChangeManagerService','VIEWPORT_KEY','_substituteRedoStack','[CollaborationState]:\x20apply\x20error!','INGEST','_updateLocalCursor','IMessageService','SetWorksheetActivateCommand','CollaborationController','_remoteChangesetQueue','_clearOtherTimers','init','onStarting','_updateCollabCursors','m2Prime','popstate','_context','onMissedChangesetFetched','transformSelections','LEAVE','Module','UNRECOGNIZED','CollaborationStatus','restore','_sendingTimer','objectType','url(#on-line-single_clip0_910_349)','_getCtorByUniverType','top','subscribeEvent','@univerjs/ui','_socket','_transformService','map','NOT_FOUND','52157bHonoS','saveChangeset','m1Prime','UnitSnapshot','onCommandExecuted','csRejEvent','unitID','_unlockTransition','_lockTransition','x-univer-host','_id','unsubscribe','SheetCollaborationEntity','show','HTTPRequest','[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.','CHANGESET_REVISION_CONFILICT','[FetchMissState]','startRow','addEventListener','_initStatusListener','[CollaborationSessionService]:\x20socket\x20error','onRendered','getConfig','_collaborationPaused','socket\x20close','Univer','image/png','_memberService','MUTATION','FileId','getAncestorScale','trim','SUBMIT_CHANGESET','collaborators','_registerDependencies','_saveTaskMap','all','updatePermissionObjEvent','runRefRangeMutations','/universer-api/snapshot','permissionRejEvent','whenReady','handleInsertRangeMoveRight','every','_anchorDot','onStateChange','storage','online','code','APPLY_NON_SEQUENTIAL_REVISION','getOwnPropertySymbols','_refreshCollabCursors','backgroundColor','_cursor','fetching\x20missing\x20changesets\x20from\x20','joinRsp','searchParams','getValue','#fff','dispose','SNAPSHOT_INVALID_SNAPSHOT','confirm','getCurrentSelections','getCollabEntity','_docSkeletonManagerService','subUnitId','BehaviorSubject','_cachedData','getCurrent','conflict.title','NEW_CHANGESETS','_getAPIPrefix','_labelPosition','replaceState','getCurrentUnitForType','getWorkbookSelections','_entities','close$','unload','forwardRef','Rect','substring','_rescheduleHeartbeat','stringify','_removeClearOtherTimer','copyFileMeta','LICENSE_EXPORT_SIZE_EXCEEDED','collaboration-client.offline-data-not-saved','_socketService','_state','/allowed','getOffsetConfig','SYNCED','_localeService','combineLatest','getSheetBlock','_handleJoinEvent','collab-client.tooltip.reconnect','_onOffline','_sessionStatus$','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','SnapshotServerOverHTTPService','/universer-api/file/{fileID}/sign-url','merge','_transformIMECache','univer-online-status','UPDATE_PERMISSION_OBJ','stopTime','_cursors','_startSheetCollabCursor','IImageIoService','_config','displayName','measureText','COMMENT_UPDATE','@univerjs/network','session','getUniverSheetInstance','visibilityState','delete','attrs'];_0xf60c=function(){return _0x468e35;};return _0xf60c();}var en=Object[_0x57f41f(0x522)],tn=Object[_0x57f41f(0x191)],sn=(_0x50ee77,_0x4953f6,_0x5b1384,_0x2e0ced)=>{const _0xff6cd=_0x57f41f;for(var _0x55a24e=_0x2e0ced>0x1?void 0x0:_0x2e0ced?tn(_0x4953f6,_0x5b1384):_0x4953f6,_0x40cef5=_0x50ee77[_0xff6cd(0x460)]-0x1,_0x2d0f62;_0x40cef5>=0x0;_0x40cef5--)(_0x2d0f62=_0x50ee77[_0x40cef5])&&(_0x55a24e=(_0x2e0ced?_0x2d0f62(_0x4953f6,_0x5b1384,_0x55a24e):_0x2d0f62(_0x55a24e))||_0x55a24e);return _0x2e0ced&&_0x55a24e&&en(_0x4953f6,_0x5b1384,_0x55a24e),_0x55a24e;},He=(_0x36a523,_0x31727a)=>(_0x23ba85,_0x24b258)=>_0x31727a(_0x23ba85,_0x24b258,_0x36a523);let Ee=class{constructor(_0x469bf2,_0x2c45df,_0x46bfd8){const _0x3c4618=_0x57f41f;this['_configService']=_0x469bf2,this[_0x3c4618(0x498)]=_0x2c45df,this[_0x3c4618(0x28d)]=_0x46bfd8,this[_0x3c4618(0x350)]();}[_0x57f41f(0x350)](){const _0x5973bd=_0x57f41f;this[_0x5973bd(0x498)][_0x5973bd(0x2dd)]({'priority':0x1,'interceptor':(_0x315f96,_0x43a647)=>_0x43a647(_0x315f96)[_0x5973bd(0x4bb)](v['concatMap'](async _0x550ca1=>{const _0x409d95=_0x5973bd,_0x15d2d5=_0x550ca1;if(_0x15d2d5[_0x409d95(0x2d7)]===0x191&&window[_0x409d95(0x3a6)](this[_0x409d95(0x28d)]['t'](_0x409d95(0x2c0)))){const _0x128d5c=window[_0x409d95(0x51d)](window[_0x409d95(0x17d)][_0x409d95(0x2da)]);window[_0x409d95(0x17d)]['href']=this['_getLoginPath']()+_0x409d95(0x257)+_0x128d5c;}return _0x15d2d5;}))});}['_getLoginPath'](){const _0x2992a0=_0x57f41f;var _0x4ff4f7,_0x10a88a;const _0x10495c=this[_0x2992a0(0x172)][_0x2992a0(0x37f)](Et),_0x523965=this[_0x2992a0(0x172)]['getConfig'](L);return(_0x10a88a=(_0x4ff4f7=_0x523965==null?void 0x0:_0x523965['loginUrlKey'])!=null?_0x4ff4f7:_0x10495c)!=null?_0x10a88a:ns;}};Ee=sn([He(0x0,a['IConfigService']),He(0x1,a['Inject'](w[_0x57f41f(0x45d)])),He(0x2,a['Inject'](a[_0x57f41f(0x405)]))],Ee);var nn=Object[_0x57f41f(0x522)],rn=Object[_0x57f41f(0x191)],on=(_0x6e2b6f,_0x265821,_0x272e6f,_0x20feac)=>{for(var _0x342cf3=_0x20feac>0x1?void 0x0:_0x20feac?rn(_0x265821,_0x272e6f):_0x265821,_0x5ee4ae=_0x6e2b6f['length']-0x1,_0x43c68f;_0x5ee4ae>=0x0;_0x5ee4ae--)(_0x43c68f=_0x6e2b6f[_0x5ee4ae])&&(_0x342cf3=(_0x20feac?_0x43c68f(_0x265821,_0x272e6f,_0x342cf3):_0x43c68f(_0x342cf3))||_0x342cf3);return _0x20feac&&_0x342cf3&&nn(_0x265821,_0x272e6f,_0x342cf3),_0x342cf3;},ut=(_0x3e20de,_0x4125f8)=>(_0x3ff163,_0x16d0e7)=>_0x4125f8(_0x3ff163,_0x16d0e7,_0x3e20de);const jt='AUTHZ_URL_KEY',an=_0x57f41f(0x4b0);exports['AuthzIoHttpService']=class extends a['Disposable']{constructor(_0x1a11f1,_0x34ad55){const _0x5295b2=_0x57f41f;super(),this[_0x5295b2(0x13e)]=_0x1a11f1,this[_0x5295b2(0x172)]=_0x34ad55,this[_0x5295b2(0x231)]();}[_0x57f41f(0x231)](){const _0x4cfafe=_0x57f41f,_0x1c9456=this;this['disposeWithMe'](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':w[_0x4cfafe(0x402)]({'isMatch'(_0x38b107){const _0x4e35c7=_0x4cfafe;var _0x5e5bcc;if(_0x38b107[_0x4e35c7(0x497)]===_0x4e35c7(0x4b7)&&((_0x5e5bcc=_0x38b107['requestParams'])!=null&&_0x5e5bcc[_0x4e35c7(0x1a0)])){const {objectID:_0x7ce6cf,objectType:_0x595746}=_0x38b107['requestParams'][_0x4e35c7(0x1a0)]||{};if(!_0x7ce6cf||_0x595746===void 0x0)return!0x1;const _0x2de11a=_0x1c9456[_0x4e35c7(0x20a)]()+'/'+_0x595746+_0x4e35c7(0x24f)+_0x7ce6cf+'/allowed';if(_0x38b107[_0x4e35c7(0x3ed)]===_0x2de11a)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x40eed1){const _0x2e694b=_0x4cfafe;var _0x13bc50;return(_0x13bc50=_0x40eed1[_0x2e694b(0x2e6)])==null?void 0x0:_0x13bc50[_0x2e694b(0x1a0)];},'mergeParamsToRequest'(_0xbbffe7,_0x44f236){const _0x5c6d91=_0x4cfafe,_0x2b9495=_0x1c9456['_getAPIPrefixPath']()+_0x5c6d91(0x214),_0x1b77a6=_0xbbffe7['reduce']((_0x4cfe63,_0x26a062)=>{const _0x46571f=_0x5c6d91,{unitID:_0x28840e,objectID:_0x45b444,objectType:_0xaace8e,actions:_0x486981}=_0x26a062;return _0x4cfe63[_0x28840e]||(_0x4cfe63[_0x28840e]={}),_0x4cfe63[_0x28840e][_0x45b444]||(_0x4cfe63[_0x28840e][_0x45b444]={'objectID':_0x45b444,'objectType':_0xaace8e,'actions':[]}),_0x4cfe63[_0x28840e][_0x45b444][_0x46571f(0x15e)][_0x46571f(0x2d0)](..._0x486981),_0x4cfe63;},{}),_0x319755=[];for(const _0x8d53d3 in _0x1b77a6)for(const _0x186b6c in _0x1b77a6[_0x8d53d3]){const {actions:_0x498a20,objectType:_0x133aad}=_0x1b77a6[_0x8d53d3][_0x186b6c],_0x4c073b=[...new Set(_0x498a20)];_0x319755[_0x5c6d91(0x2d0)]({'unitID':_0x8d53d3,'objectID':_0x186b6c,'objectType':_0x133aad,'actions':_0x4c073b});}return new w[(_0x5c6d91(0x376))]('POST',_0x2b9495,{'headers':_0x44f236[_0x5c6d91(0x4e6)],'withCredentials':_0x44f236[_0x5c6d91(0x332)],'responseType':_0x44f236[_0x5c6d91(0x12a)],'body':{'requests':_0x319755}});}},{'distributeResult'(_0x59bdfe,_0x17d88c){const {objectActions:_0x31e53e}=_0x59bdfe;return _0x17d88c['map'](_0xae585d=>{const _0x4d75c9=_0x1fa7,{unitID:_0x5744a1,objectID:_0x325a13,actions:_0x2addfc}=_0xae585d,_0xaa120f=_0x31e53e[_0x4d75c9(0x4df)](_0x2e7d33=>_0x2e7d33[_0x4d75c9(0x36e)]===_0x5744a1&&_0x2e7d33[_0x4d75c9(0x207)]===_0x325a13),_0x51b653=_0x2addfc[_0x4d75c9(0x366)](_0x4145f1=>_0xaa120f==null?void 0x0:_0xaa120f[_0x4d75c9(0x15e)][_0x4d75c9(0x4df)](_0x1b9901=>_0x1b9901[_0x4d75c9(0x297)]===_0x4145f1))['filter'](_0x10a41e=>!!_0x10a41e);return{'config':_0xae585d,'result':{'actions':_0x51b653,'error':_0x59bdfe[_0x4d75c9(0x542)]}};});}})}));}[_0x57f41f(0x20a)](){const _0x13703e=_0x57f41f;var _0x2c02ee,_0x4c2d28;const _0x374c34=this[_0x13703e(0x172)][_0x13703e(0x37f)](jt),_0x5e931e=this[_0x13703e(0x172)]['getConfig'](L);return(_0x4c2d28=(_0x2c02ee=_0x5e931e==null?void 0x0:_0x5e931e[_0x13703e(0x224)])!=null?_0x2c02ee:_0x374c34)!=null?_0x4c2d28:an;}async['create'](_0x2a6fd0){const _0x36f3c3=_0x57f41f,_0x237a5c=this['_getAPIPrefixPath']()+'/'+_0x2a6fd0[_0x36f3c3(0x35e)]+_0x36f3c3(0x14f);return(await this[_0x36f3c3(0x13e)]['post'](_0x237a5c,{'body':_0x2a6fd0}))[_0x36f3c3(0x1a0)][_0x36f3c3(0x207)]||'';}async[_0x57f41f(0x2e4)](_0x1573bd){const _0x2e751b=_0x57f41f,_0xbfd69e=this[_0x2e751b(0x20a)]()+_0x2e751b(0x478);return(await this[_0x2e751b(0x13e)][_0x2e751b(0x2a6)](_0xbfd69e,{'body':_0x1573bd}))[_0x2e751b(0x1a0)]['objects'];}async[_0x57f41f(0x51f)](_0x939117){const _0x572462=_0x57f41f,_0x45aea9=this[_0x572462(0x20a)]()+'/'+_0x939117[_0x572462(0x35e)]+_0x572462(0x24f)+_0x939117[_0x572462(0x207)];await this['_HTTPService'][_0x572462(0x12c)](_0x45aea9,{'body':_0x939117});}async[_0x57f41f(0x2a1)](_0x20be40){const _0x530882=_0x57f41f,_0x5ae2d4=this['_getAPIPrefixPath']()+'/'+_0x20be40['objectType']+_0x530882(0x24f)+_0x20be40['objectID']+_0x530882(0x3c3);return(await this[_0x530882(0x13e)][_0x530882(0x2a6)](_0x5ae2d4,{'body':_0x20be40}))[_0x530882(0x1a0)][_0x530882(0x15e)];}async[_0x57f41f(0x474)](_0x2d6a5f){const _0x47bb0e=_0x57f41f,_0x5d0b91=this[_0x47bb0e(0x20a)]()+_0x47bb0e(0x214);return(await this[_0x47bb0e(0x13e)][_0x47bb0e(0x2a6)](_0x5d0b91,{'body':{'requests':_0x2d6a5f}}))[_0x47bb0e(0x1a0)][_0x47bb0e(0x4d7)];}async[_0x57f41f(0x450)](_0x4e870c){const _0x22821d=_0x57f41f,_0x3aa665=this[_0x22821d(0x20a)]()+'/'+_0x4e870c['objectType']+_0x22821d(0x157),_0x1e141a=await this[_0x22821d(0x13e)]['post'](_0x3aa665,{'body':_0x4e870c});return{'roles':_0x1e141a[_0x22821d(0x1a0)]['roles'],'actions':_0x1e141a[_0x22821d(0x1a0)][_0x22821d(0x15e)]};}async[_0x57f41f(0x4a2)](_0x44f572){const _0x576929=_0x57f41f,_0x364417=this[_0x576929(0x20a)]()+'/collaborator';await this[_0x576929(0x13e)]['delete'](_0x364417,{'params':{'collaboratorID':_0x44f572[_0x576929(0x2e8)],'objectID':_0x44f572[_0x576929(0x207)],'unitID':_0x44f572['unitID']}});}async[_0x57f41f(0x160)](_0x1d7b52){const _0x1fd466=_0x57f41f,_0x545392=this['_getAPIPrefixPath']()+_0x1fd466(0x1b7);await this['_HTTPService']['patch'](_0x545392,{'body':_0x1d7b52});}async[_0x57f41f(0x4aa)](_0x4c3415){const _0x1f6997=_0x57f41f,_0x18db54=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x1f6997(0x13e)]['post'](_0x18db54,{'body':_0x4c3415});}async[_0x57f41f(0x2a2)](_0x16eaaa){const _0x2ef18a=_0x57f41f,_0x116e14=this[_0x2ef18a(0x20a)]()+'/collaborator';return(await this[_0x2ef18a(0x13e)][_0x2ef18a(0x31f)](_0x116e14,{'params':{'objectID':_0x16eaaa[_0x2ef18a(0x207)],'unitID':_0x16eaaa[_0x2ef18a(0x36e)]}}))[_0x2ef18a(0x1a0)][_0x2ef18a(0x38a)];}async['putCollaborators'](_0x325e63){const _0x526deb=_0x57f41f,_0xab4e6a=this['_getAPIPrefixPath']()+_0x526deb(0x1b7);await this[_0x526deb(0x13e)][_0x526deb(0x12c)](_0xab4e6a,{'body':_0x325e63});}},exports[_0x57f41f(0x3fb)]=on([ut(0x0,a[_0x57f41f(0x1ec)](w[_0x57f41f(0x45d)])),ut(0x1,a['Inject'](a[_0x57f41f(0x435)]))],exports[_0x57f41f(0x3fb)]);var cn=Object[_0x57f41f(0x522)],ln=Object[_0x57f41f(0x191)],hn=(_0x56ed3a,_0x1ceccc,_0x2a8735,_0x197d7a)=>{const _0xcde298=_0x57f41f;for(var _0x2d0389=_0x197d7a>0x1?void 0x0:_0x197d7a?ln(_0x1ceccc,_0x2a8735):_0x1ceccc,_0xe5eb3a=_0x56ed3a[_0xcde298(0x460)]-0x1,_0x4ed085;_0xe5eb3a>=0x0;_0xe5eb3a--)(_0x4ed085=_0x56ed3a[_0xe5eb3a])&&(_0x2d0389=(_0x197d7a?_0x4ed085(_0x1ceccc,_0x2a8735,_0x2d0389):_0x4ed085(_0x2d0389))||_0x2d0389);return _0x197d7a&&_0x2d0389&&cn(_0x1ceccc,_0x2a8735,_0x2d0389),_0x2d0389;},_n=(_0x16fcde,_0x41b20b)=>(_0x412052,_0x3c3a22)=>_0x41b20b(_0x412052,_0x3c3a22,_0x16fcde);let be=class{constructor(_0x23f855){this['_httpService']=_0x23f855,this['_initRequestHeader']();}[_0x57f41f(0x2d6)](){const _0x5035a6=_0x57f41f;this[_0x5035a6(0x498)]['registerHTTPInterceptor']({'interceptor':(_0x3dc4cc,_0xda2be0)=>{const _0x4a689f=_0x5035a6,_0x3b651f=_0x3dc4cc[_0x4a689f(0x4e6)],_0xb88128=Xt[_0x4a689f(0x52d)]();return _0xb88128&&_0x3b651f[_0x4a689f(0x20b)](_0x4a689f(0x371),_0xb88128),_0xda2be0(_0x3dc4cc);}});}};be=hn([_n(0x0,a[_0x57f41f(0x1ec)](w['HTTPService']))],be);var un=Object['defineProperty'],dn=Object[_0x57f41f(0x191)],Sn=(_0x767886,_0x232458,_0x2bcf44,_0x2eebee)=>{for(var _0x1fbb09=_0x2eebee>0x1?void 0x0:_0x2eebee?dn(_0x232458,_0x2bcf44):_0x232458,_0x34c1e7=_0x767886['length']-0x1,_0x3a410e;_0x34c1e7>=0x0;_0x34c1e7--)(_0x3a410e=_0x767886[_0x34c1e7])&&(_0x1fbb09=(_0x2eebee?_0x3a410e(_0x232458,_0x2bcf44,_0x1fbb09):_0x3a410e(_0x1fbb09))||_0x1fbb09);return _0x2eebee&&_0x1fbb09&&un(_0x232458,_0x2bcf44,_0x1fbb09),_0x1fbb09;},xe=(_0x235293,_0x1ca36a)=>(_0x32796a,_0x298a82)=>_0x1ca36a(_0x32796a,_0x298a82,_0x235293);const vn=[_0x57f41f(0x383),_0x57f41f(0x2eb),_0x57f41f(0x1aa),'image/gif','image/bmp'],gn=0x5*0x400*0x400,mn=_0x57f41f(0x4c8),fn=_0x57f41f(0x427),In=_0x57f41f(0x4fc),pn=_0x57f41f(0x3cf);exports[_0x57f41f(0x434)]=class{constructor(_0x50e3c1,_0x1cd307,_0x5a4585){const _0x34d273=_0x57f41f;u(this,_0x34d273(0x4d9),0x0),u(this,_0x34d273(0x273),new v['Subject']()),u(this,_0x34d273(0x344),this[_0x34d273(0x273)]),u(this,_0x34d273(0x3ff),new Map()),(this[_0x34d273(0x498)]=_0x50e3c1,this['_configService']=_0x1cd307,this[_0x34d273(0x131)]=_0x5a4585);}['setWaitCount'](_0xe199af){const _0x21adc8=_0x57f41f;this[_0x21adc8(0x4d9)]=_0xe199af,this[_0x21adc8(0x273)][_0x21adc8(0x49c)](_0xe199af);}[_0x57f41f(0x333)](_0x1f980e,_0x363978){const _0x2e914d=_0x57f41f;if(_0x363978===j[_0x2e914d(0x53b)][_0x2e914d(0x4f5)]){const _0x749429=new Image();return _0x749429[_0x2e914d(0x250)]=_0x1f980e,_0x749429;}return this[_0x2e914d(0x3ff)][_0x2e914d(0x31f)](_0x1f980e);}['addImageSourceCache'](_0x2b163a,_0x346d06,_0x281f06){const _0x1d2c2e=_0x57f41f;_0x346d06===j[_0x1d2c2e(0x53b)][_0x1d2c2e(0x4f5)]||_0x281f06==null||this[_0x1d2c2e(0x3ff)][_0x1d2c2e(0x20b)](_0x2b163a,_0x281f06);}async[_0x57f41f(0x201)](_0x214d11){const _0x51f7fd=_0x57f41f;try{const _0x5c4104=this['_replaceFileID'](this[_0x51f7fd(0x256)](),''+_0x214d11),_0x1a0c91=(await this[_0x51f7fd(0x498)][_0x51f7fd(0x31f)](_0x5c4104))[_0x51f7fd(0x1a0)];if(_0x1a0c91[_0x51f7fd(0x542)]&&_0x1a0c91[_0x51f7fd(0x542)][_0x51f7fd(0x399)]===bt['OK']){const _0x331460=new URL(_0x1a0c91['url'],this[_0x51f7fd(0x2b0)]())[_0x51f7fd(0x258)]();return Promise[_0x51f7fd(0x1dd)](_0x331460);}return Promise[_0x51f7fd(0x4c2)](_0x1a0c91[_0x51f7fd(0x542)]);}catch(_0x4ca676){return Promise[_0x51f7fd(0x4c2)](_0x4ca676);}}async['saveImage'](_0x88bd0){const _0x4f2fc8=_0x57f41f;let _0x285999='';if(!vn[_0x4f2fc8(0x29a)](_0x88bd0[_0x4f2fc8(0x221)]))return this[_0x4f2fc8(0x2c8)](),Promise[_0x4f2fc8(0x4c2)](new Error(j[_0x4f2fc8(0x2a5)]['ERROR_IMAGE_TYPE']));if(_0x88bd0[_0x4f2fc8(0x3f1)]>gn)return this[_0x4f2fc8(0x2c8)](),Promise[_0x4f2fc8(0x4c2)](new Error(j[_0x4f2fc8(0x2a5)][_0x4f2fc8(0x281)]));try{const _0x5b64d3=new FormData();_0x5b64d3['append'](_0x4f2fc8(0x225),_0x88bd0);const _0x1695c5=this[_0x4f2fc8(0x131)][_0x4f2fc8(0x324)](),_0x496f3a=_0x1695c5==null?void 0x0:_0x1695c5['getUnitId']();if(!_0x496f3a)throw new Error(_0x4f2fc8(0x2e0));const _0x169f96=this['_getUploadFileURL']()+_0x4f2fc8(0x299)+_0x88bd0['size'][_0x4f2fc8(0x258)]()+_0x4f2fc8(0x3f8)+Tt['UnitEmbedded']+'&assign='+encodeURIComponent(_0x496f3a),_0x3fa37c=await(await fetch(_0x169f96,{'method':_0x4f2fc8(0x4b7),'body':_0x5b64d3}))['json']();if(typeof _0x3fa37c[_0x4f2fc8(0x386)]!='string')return this[_0x4f2fc8(0x2c8)](),Promise[_0x4f2fc8(0x4c2)](new Error(j[_0x4f2fc8(0x2a5)][_0x4f2fc8(0x195)]));_0x285999=_0x3fa37c[_0x4f2fc8(0x386)];}catch{return this[_0x4f2fc8(0x2c8)](),Promise[_0x4f2fc8(0x4c2)](new Error(j['ImageUploadStatusType']['ERROR_IMAGE']));}return new Promise((_0x455fc5,_0x4a5701)=>{const _0x44ff5f=_0x4f2fc8,_0x1ea394=new FileReader();_0x1ea394[_0x44ff5f(0x205)](_0x88bd0),_0x1ea394[_0x44ff5f(0x4da)]=_0x27b96c=>{const _0x6eae78=_0x44ff5f;var _0xe33e0f;const _0x2a4f0d=(_0xe33e0f=_0x27b96c[_0x6eae78(0x13f)])==null?void 0x0:_0xe33e0f[_0x6eae78(0x16c)];if(_0x2a4f0d==null){this[_0x6eae78(0x2c8)](),_0x4a5701(new Error(j[_0x6eae78(0x2a5)]['ERROR_IMAGE']));return;}const _0x5a55a2=a[_0x6eae78(0x25c)][_0x6eae78(0x465)](0x6);_0x455fc5({'imageId':_0x5a55a2,'imageSourceType':j[_0x6eae78(0x53b)][_0x6eae78(0x21d)],'source':_0x285999,'base64Cache':_0x2a4f0d,'status':j[_0x6eae78(0x2a5)][_0x6eae78(0x2ea)]}),this[_0x6eae78(0x2c8)]();};});}[_0x57f41f(0x275)](){const _0x204c94=_0x57f41f;var _0x27ca4e,_0x291771;const _0x4c4b80=this[_0x204c94(0x172)]['getConfig'](mn),_0x2b0a0e=this['_configService'][_0x204c94(0x37f)](L);return(_0x291771=(_0x27ca4e=_0x2b0a0e==null?void 0x0:_0x2b0a0e[_0x204c94(0x461)])!=null?_0x27ca4e:_0x4c4b80)!=null?_0x291771:fn;}[_0x57f41f(0x256)](){const _0x42b650=_0x57f41f;var _0x45d5f8,_0x578158;const _0x413e3b=this[_0x42b650(0x172)][_0x42b650(0x37f)](In),_0x88df66=this[_0x42b650(0x172)][_0x42b650(0x37f)](L);return(_0x578158=(_0x45d5f8=_0x88df66==null?void 0x0:_0x88df66['signUrlServerUrl'])!=null?_0x45d5f8:_0x413e3b)!=null?_0x578158:pn;}['_getDownloadEndpointURL'](){const _0x57c7f9=_0x57f41f;var _0x34a859;const _0x2c89f7=this[_0x57c7f9(0x172)][_0x57c7f9(0x37f)](L);return(_0x34a859=_0x2c89f7==null?void 0x0:_0x2c89f7[_0x57c7f9(0x2c6)])!=null?_0x34a859:location[_0x57c7f9(0x23f)];}[_0x57f41f(0x1ac)](_0x246c18,_0x237e03){const _0x2a867c=_0x57f41f;return _0x246c18['replace'](_0x2a867c(0x27d),_0x237e03);}['_decreaseWaiting'](){const _0x200e92=_0x57f41f;this[_0x200e92(0x4d9)]-=0x1,this[_0x200e92(0x273)][_0x200e92(0x49c)](this['_waitCount']);}},exports[_0x57f41f(0x434)]=Sn([xe(0x0,a[_0x57f41f(0x1ec)](w[_0x57f41f(0x45d)])),xe(0x1,a[_0x57f41f(0x435)]),xe(0x2,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x546)]))],exports[_0x57f41f(0x434)]);var Cn=Object[_0x57f41f(0x522)],En=Object[_0x57f41f(0x191)],bn=(_0x5c67a6,_0x34c720,_0x329ee4,_0x34a11f)=>{for(var _0x43168b=_0x34a11f>0x1?void 0x0:_0x34a11f?En(_0x34c720,_0x329ee4):_0x34c720,_0x4e823d=_0x5c67a6['length']-0x1,_0x537a12;_0x4e823d>=0x0;_0x4e823d--)(_0x537a12=_0x5c67a6[_0x4e823d])&&(_0x43168b=(_0x34a11f?_0x537a12(_0x34c720,_0x329ee4,_0x43168b):_0x537a12(_0x43168b))||_0x43168b);return _0x34a11f&&_0x43168b&&Cn(_0x34c720,_0x329ee4,_0x43168b),_0x43168b;},_e=(_0x4dc8c1,_0x49ac2a)=>(_0x2a4438,_0x13783f)=>_0x49ac2a(_0x2a4438,_0x13783f,_0x4dc8c1);let Te=class extends a[_0x57f41f(0x1c5)]{constructor(_0x517da4,_0x52ddf1,_0x54ad43,_0x10aadb,_0x35321){const _0x183084=_0x57f41f;super(),this['_injector']=_0x517da4,this[_0x183084(0x131)]=_0x52ddf1,this['_permissionService']=_0x54ad43,this['_collaborationSessionService']=_0x10aadb,this['_localeService']=_0x35321,this[_0x183084(0x24c)](),this[_0x183084(0x280)]();}[_0x57f41f(0x280)](){const _0x56f53f=_0x57f41f,_0x3f1954=async _0x30623c=>{const _0x282503=_0x1fa7;(await this[_0x282503(0x40c)][_0x282503(0x2b6)](_0x30623c))[_0x282503(0x438)][_0x282503(0x4bb)](E[_0x282503(0x222)](_0x5f4c9a=>_0x5f4c9a[_0x282503(0x538)]===_[_0x282503(0x48e)][_0x282503(0x283)]),E[_0x282503(0x12b)](this[_0x282503(0x43a)]))[_0x282503(0x3ee)](_0x50f0d4=>{const _0x1daf3d=_0x282503,_0x1fd45b=_0x50f0d4,{reason:_0x3a8849}=_0x1fd45b[_0x1daf3d(0x198)];this[_0x1daf3d(0x331)]['get'](A[_0x1daf3d(0x34b)])[_0x1daf3d(0x375)]({'type':X[_0x1daf3d(0x1cf)][_0x1daf3d(0x411)],'content':this['_localeService']['t'](_0x1daf3d(0x137))+'('+_0x3a8849+')'}),this[_0x1daf3d(0x1cd)]['updatePermissionPoint'](new C[(_0x1daf3d(0x4e0))](_0x30623c)['id'],!0x1),this['_collaborationSessionService'][_0x1daf3d(0x1a2)](_0x30623c);});};v[_0x56f53f(0x3d0)](this[_0x56f53f(0x131)]['getTypeOfUnitAdded$'](a[_0x56f53f(0x4f6)][_0x56f53f(0x197)]),this['_univerInstanceService'][_0x56f53f(0x317)](a[_0x56f53f(0x4f6)][_0x56f53f(0x1a7)]))[_0x56f53f(0x4bb)](E[_0x56f53f(0x366)](_0x4b6aca=>_0x4b6aca[_0x56f53f(0x263)]()),E[_0x56f53f(0x222)](_0xa35839=>!a['isInternalEditorID'](_0xa35839)),E[_0x56f53f(0x12b)](this[_0x56f53f(0x43a)]))['subscribe'](_0x29f12f=>{_0x3f1954(_0x29f12f);});}[_0x57f41f(0x24c)](){const _0x57c27a=_0x57f41f,_0x340a9e=async _0x437333=>{const _0x32a6bf=_0x1fa7;(await this[_0x32a6bf(0x40c)][_0x32a6bf(0x2b6)](_0x437333))[_0x32a6bf(0x438)][_0x32a6bf(0x4bb)](E[_0x32a6bf(0x222)](_0x5f3401=>_0x5f3401['eventID']===_[_0x32a6bf(0x48e)]['UPDATE_PERMISSION_OBJ']),E['takeUntil'](this[_0x32a6bf(0x43a)]))[_0x32a6bf(0x3ee)](_0x2f5d35=>{const _0x4b1333=_0x32a6bf,_0x456787=_0x2f5d35,{objectId:_0x4ab1ce}=_0x456787[_0x4b1333(0x198)],_0x1376ed=this['_injector'][_0x4b1333(0x31f)](te['SheetPermissionInitController']);_0x4ab1ce===_0x437333?_0x1376ed['initWorkbookPermissionChange'](_0x437333):_0x1376ed['refreshPermission'](_0x437333,_0x4ab1ce);});};v['merge'](this[_0x57c27a(0x131)][_0x57c27a(0x317)](a['UniverInstanceType']['UNIVER_SHEET']),this[_0x57c27a(0x131)][_0x57c27a(0x317)](a[_0x57c27a(0x4f6)][_0x57c27a(0x1a7)]))[_0x57c27a(0x4bb)](E[_0x57c27a(0x366)](_0x2230de=>_0x2230de[_0x57c27a(0x263)]()),E['filter'](_0x1f5e6d=>!a[_0x57c27a(0x2ba)](_0x1f5e6d)),E[_0x57c27a(0x12b)](this[_0x57c27a(0x43a)]))['subscribe'](_0x112f45=>{_0x340a9e(_0x112f45);});}};Te=bn([_e(0x0,a['Inject'](a[_0x57f41f(0x410)])),_e(0x1,a[_0x57f41f(0x546)]),_e(0x2,a[_0x57f41f(0x169)]),_e(0x3,a[_0x57f41f(0x1ec)](exports['CollaborationSessionService'])),_e(0x4,a['Inject'](a[_0x57f41f(0x405)]))],Te);var Tn=Object[_0x57f41f(0x522)],Rn=Object[_0x57f41f(0x191)],On=(_0xe67714,_0x24841f,_0x280f32,_0xf74f9c)=>{const _0x1bde28=_0x57f41f;for(var _0x3e58bc=_0xf74f9c>0x1?void 0x0:_0xf74f9c?Rn(_0x24841f,_0x280f32):_0x24841f,_0x596165=_0xe67714[_0x1bde28(0x460)]-0x1,_0x2e6b35;_0x596165>=0x0;_0x596165--)(_0x2e6b35=_0xe67714[_0x596165])&&(_0x3e58bc=(_0xf74f9c?_0x2e6b35(_0x24841f,_0x280f32,_0x3e58bc):_0x2e6b35(_0x3e58bc))||_0x3e58bc);return _0xf74f9c&&_0x3e58bc&&Tn(_0x24841f,_0x280f32,_0x3e58bc),_0x3e58bc;},dt=(_0x2dd35f,_0x49fde9)=>(_0x48c20b,_0x6e1f72)=>_0x49fde9(_0x48c20b,_0x6e1f72,_0x2dd35f);exports[_0x57f41f(0x3ce)]=class{constructor(_0x11f832,_0x12db6f){const _0x3fa743=_0x57f41f;this[_0x3fa743(0x172)]=_0x11f832,this[_0x3fa743(0x498)]=_0x12db6f;}async[_0x57f41f(0x53c)](_0x485eab,_0x22ab56){const _0x868c20=_0x57f41f;var _0x22b47b;const {unitID:_0x1b2728,type:_0x420bcb,revision:_0x3c4fcf=0x0}=_0x22ab56,_0x47fbe6=this[_0x868c20(0x337)]()+'/'+_0x420bcb+'/unit/'+_0x1b2728+_0x868c20(0x491)+_0x3c4fcf,_0x4bfbb5=(await this[_0x868c20(0x498)][_0x868c20(0x31f)](_0x47fbe6))[_0x868c20(0x1a0)],_0x37eb7d=(_0x22b47b=_0x4bfbb5[_0x868c20(0x47d)])==null?void 0x0:_0x22b47b[_0x868c20(0x530)];if(_0x37eb7d){const _0x5ecbcf=_0x37eb7d==null?void 0x0:_0x37eb7d[_0x868c20(0x236)],_0x255909=_['textEncoder']['encode'](_[_0x868c20(0x238)](_0x5ecbcf));_0x37eb7d[_0x868c20(0x236)]=_0x255909,Object['entries'](_0x37eb7d[_0x868c20(0x1e8)])['forEach'](([,_0x4ac34a])=>{const _0x3eebe0=_0x868c20,_0x33cfcf=_0x4ac34a[_0x3eebe0(0x236)],_0x18ff99=_[_0x3eebe0(0x493)]['encode'](_[_0x3eebe0(0x238)](_0x33cfcf));_0x4ac34a[_0x3eebe0(0x236)]=_0x18ff99;});}return _0x4bfbb5;}async[_0x57f41f(0x3c8)](_0x136df1,_0x21c8b4){const _0x5df8fe=_0x57f41f,{unitID:_0x40ab88,type:_0x2561ce,blockID:_0x3785a7}=_0x21c8b4,_0x264b99=this['_getAPIPrefix']()+'/'+_0x2561ce+'/unit/'+_0x40ab88+_0x5df8fe(0x51a)+_0x3785a7;return(await this[_0x5df8fe(0x498)][_0x5df8fe(0x31f)](_0x264b99))[_0x5df8fe(0x1a0)];}async[_0x57f41f(0x459)](_0x396f15,_0x2504a6){const _0x2fcabf=_0x57f41f,{unitID:_0x605c95,type:_0x577959,blockID:_0x56727f}=_0x2504a6,_0x43313a=this['_getAPIPrefix']()+_0x2fcabf(0x51a)+_0x577959+_0x2fcabf(0x170)+_0x605c95+'/block/'+_0x56727f;return(await this[_0x2fcabf(0x498)][_0x2fcabf(0x31f)](_0x43313a))['body'];}async[_0x57f41f(0x455)](_0x57a39a,_0x5cd0ae){const _0x268512=_0x57f41f,{unitID:_0x4af092,type:_0x3dbbdf,from:_0x4392b3,to:_0x1b1df7}=_0x5cd0ae,_0x4a4065=this[_0x268512(0x3b0)]()+'/'+_0x3dbbdf+_0x268512(0x170)+_0x4af092+_0x268512(0x202)+_0x4392b3+'&to='+_0x1b1df7;return(await this['_httpService']['get'](_0x4a4065))[_0x268512(0x1a0)];}['_getSnapshotAPIPrefix'](){const _0x2c2241=_0x57f41f;var _0x249e80;return(_0x249e80=this[_0x2c2241(0x172)][_0x2c2241(0x37f)](vt))!=null?_0x249e80:this[_0x2c2241(0x3b0)]();}[_0x57f41f(0x3b0)](){const _0x11c088=_0x57f41f;var _0x582e6c,_0x603989;const _0xb69e83=this[_0x11c088(0x172)][_0x11c088(0x37f)](St),_0x49e011=this['_configService']['getConfig'](L);return(_0x603989=(_0x582e6c=_0x49e011==null?void 0x0:_0x49e011[_0x11c088(0x14d)])!=null?_0x582e6c:_0xb69e83)!=null?_0x603989:qt;}async[_0x57f41f(0x4ea)](_0x4c8755,_0x2948e3){const _0x13e840=_0x57f41f,_0x9854d9=_0x13e840(0x199)+_0x2948e3[_0x13e840(0x221)]+'/unit/'+_0x2948e3[_0x13e840(0x36e)]+_0x13e840(0x29b);return(await this[_0x13e840(0x498)][_0x13e840(0x31f)](_0x9854d9,{'params':{'resourceId':JSON[_0x13e840(0x3bc)](_0x2948e3[_0x13e840(0x479)])}}))[_0x13e840(0x1a0)];}[_0x57f41f(0x340)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x3db3ef=_0x57f41f;throw new Error(_0x3db3ef(0x19a));}[_0x57f41f(0x369)](){const _0x8820b2=_0x57f41f;throw new Error(_0x8820b2(0x19a));}[_0x57f41f(0x3be)](){const _0x1503ea=_0x57f41f;throw new Error(_0x1503ea(0x19a));}[_0x57f41f(0x507)](){const _0x4bea8a=_0x57f41f;throw new Error(_0x4bea8a(0x19a));}},exports['SnapshotServerOverHTTPService']=On([dt(0x0,a[_0x57f41f(0x435)]),dt(0x1,a[_0x57f41f(0x1ec)](w[_0x57f41f(0x45d)]))],exports[_0x57f41f(0x3ce)]);var Dn=Object[_0x57f41f(0x522)],yn=Object[_0x57f41f(0x191)],Un=(_0x27b823,_0x259182,_0x2ef55d,_0xb0f48d)=>{const _0x1deec2=_0x57f41f;for(var _0x3dfbad=_0xb0f48d>0x1?void 0x0:_0xb0f48d?yn(_0x259182,_0x2ef55d):_0x259182,_0x22c5da=_0x27b823[_0x1deec2(0x460)]-0x1,_0x5d8f1c;_0x22c5da>=0x0;_0x22c5da--)(_0x5d8f1c=_0x27b823[_0x22c5da])&&(_0x3dfbad=(_0xb0f48d?_0x5d8f1c(_0x259182,_0x2ef55d,_0x3dfbad):_0x5d8f1c(_0x3dfbad))||_0x3dfbad);return _0xb0f48d&&_0x3dfbad&&Dn(_0x259182,_0x2ef55d,_0x3dfbad),_0x3dfbad;},ue=(_0x1710a6,_0x3011f2)=>(_0x1f62de,_0x19a0a6)=>_0x3011f2(_0x1f62de,_0x19a0a6,_0x1710a6);let Fe=class extends a[_0x57f41f(0x1b0)]{constructor(_0x2f3ada,_0x388db0,_0x20d906,_0x246da9,_0x5c8263){const _0x5127a0=_0x57f41f;super(_0x2f3ada,_0x388db0,_0x20d906),this[_0x5127a0(0x365)]=_0x246da9,this['_logService']=_0x5c8263;}[_0x57f41f(0x130)](_0x21f7af,_0x11b861){const _0x5ad358=_0x57f41f,_0x20315b=this[_0x5ad358(0x227)](_0x21f7af);if(_0x20315b)try{const _0x13ac47=this[_0x5ad358(0x32f)](_0x20315b,_0x11b861);this['_substituteUndoStack'](_0x21f7af,_0x13ac47);}catch(_0x4d4678){this[_0x5ad358(0x181)][_0x5ad358(0x542)](_0x5ad358(0x2e7),_0x4d4678),this[_0x5ad358(0x50b)](_0x21f7af);}const _0x2739da=this['_getRedoStack'](_0x21f7af);if(_0x2739da)try{const _0x361fca=this[_0x5ad358(0x32f)](_0x2739da,_0x11b861);this['_substituteRedoStack'](_0x21f7af,_0x361fca);}catch(_0x22e3a5){this[_0x5ad358(0x181)]['error'](_0x22e3a5),this[_0x5ad358(0x529)](_0x21f7af);}}[_0x57f41f(0x50b)](_0x547085){const _0x2886d7=_0x57f41f,_0x13a71e=this[_0x2886d7(0x227)](_0x547085);_0x13a71e&&(_0x13a71e[_0x2886d7(0x460)]=0x0,this[_0x2886d7(0x523)]());}[_0x57f41f(0x529)](_0x2a363d){const _0x349f6d=_0x57f41f,_0x185ab1=this[_0x349f6d(0x249)](_0x2a363d);_0x185ab1&&(_0x185ab1['length']=0x0,this[_0x349f6d(0x523)]());}[_0x57f41f(0x2be)](_0x55bf40,_0x3cac5c){const _0x21581b=_0x57f41f;this['_undoStacks'][_0x21581b(0x20b)](_0x55bf40,_0x3cac5c),this[_0x21581b(0x523)]();}[_0x57f41f(0x347)](_0x586366,_0x507b4f){const _0x254059=_0x57f41f;this['_redoStacks'][_0x254059(0x20b)](_0x586366,_0x507b4f),this['_updateStatus']();}[_0x57f41f(0x32f)](_0x3663c3,_0x49b6e0){const _0x28276d=_0x57f41f,_0x1d9822=[];let _0x4f8acd=_0x49b6e0,_0x72ba51=_0x49b6e0;for(let _0x2a7190=_0x3663c3[_0x28276d(0x460)]-0x1;_0x2a7190>=0x0;_0x2a7190--){const {unitID:_0x53f6e9,undoMutations:_0x2f665f,redoMutations:_0x5c94ce}=_0x3663c3[_0x2a7190],_0x2d6502=this['_transformService']['transformMutationsWithChangeset'](_0x4f8acd,_0x2f665f),_0x32d7df=this['_transformService'][_0x28276d(0x323)](_0x72ba51,_0x5c94ce);if(_[_0x28276d(0x53a)](_0x2d6502)||_[_0x28276d(0x53a)](_0x32d7df)){this[_0x28276d(0x181)][_0x28276d(0x542)](_0x28276d(0x2e7),'transformStack\x20failed!',_0x2d6502,_0x32d7df);break;}_0x4f8acd=_0x2d6502[_0x28276d(0x19c)],_0x72ba51=_0x32d7df[_0x28276d(0x19c)],_0x1d9822[_0x28276d(0x2d0)]({'unitID':_0x53f6e9,'undoMutations':_0x2d6502[_0x28276d(0x353)],'redoMutations':_0x32d7df[_0x28276d(0x353)]});}return _0x1d9822[_0x28276d(0x409)]();}};Fe=Un([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x57f41f(0x178)]),ue(0x2,a[_0x57f41f(0x3ea)]),ue(0x3,_[_0x57f41f(0x127)]),ue(0x4,a[_0x57f41f(0x162)])],Fe);class $t extends a[_0x57f41f(0x1c5)]{constructor(){const _0x4330b3=_0x57f41f;super(),u(this,_0x4330b3(0x25d)),this[_0x4330b3(0x25d)]=v[_0x4330b3(0x482)](window,_0x4330b3(0x354))[_0x4330b3(0x4bb)](v[_0x4330b3(0x12b)](this[_0x4330b3(0x43a)]),v[_0x4330b3(0x320)](0x1),v[_0x4330b3(0x335)](void 0x0));}[_0x57f41f(0x209)](_0x39feef,_0x29a79e,_0x85e67e=!0x1){const _0x5e226c=_0x57f41f,_0x4d6dd5=new URL(window[_0x5e226c(0x17d)][_0x5e226c(0x2da)]);_0x4d6dd5['searchParams']['set'](_0x39feef,_0x29a79e),_0x85e67e?window[_0x5e226c(0x1fd)][_0x5e226c(0x3b2)]('','',_0x4d6dd5[_0x5e226c(0x258)]()):window[_0x5e226c(0x1fd)][_0x5e226c(0x27f)]('','',_0x4d6dd5[_0x5e226c(0x258)]());}[_0x57f41f(0x23c)](_0x1440cc,_0x291ff7=!0x1){const _0x2f5d22=_0x57f41f,_0x5d4113=new URL(window['location'][_0x2f5d22(0x2da)]);_0x5d4113[_0x2f5d22(0x3a1)][_0x2f5d22(0x3e0)](_0x1440cc),_0x291ff7?window['history'][_0x2f5d22(0x3b2)]('','',_0x5d4113[_0x2f5d22(0x258)]()):window['history'][_0x2f5d22(0x27f)]('','',_0x5d4113['toString']());}[_0x57f41f(0x41d)](_0x2b8be1){const _0x1245d1=_0x57f41f;var _0x1f182f;return(_0x1f182f=new URL(window['location'][_0x1245d1(0x2da)])['searchParams']['get'](_0x2b8be1))!=null?_0x1f182f:void 0x0;}}var Ht=Object[_0x57f41f(0x522)],Pn=Object['getOwnPropertyDescriptor'],wn=(_0x49a066,_0x130d4b,_0x27934a)=>_0x130d4b in _0x49a066?Ht(_0x49a066,_0x130d4b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27934a}):_0x49a066[_0x130d4b]=_0x27934a,Nn=(_0x3f1aac,_0x1d22bd,_0x126279,_0x15c80f)=>{const _0x26f8fb=_0x57f41f;for(var _0x506fc5=_0x15c80f>0x1?void 0x0:_0x15c80f?Pn(_0x1d22bd,_0x126279):_0x1d22bd,_0x5094ff=_0x3f1aac[_0x26f8fb(0x460)]-0x1,_0x271d7e;_0x5094ff>=0x0;_0x5094ff--)(_0x271d7e=_0x3f1aac[_0x5094ff])&&(_0x506fc5=(_0x15c80f?_0x271d7e(_0x1d22bd,_0x126279,_0x506fc5):_0x271d7e(_0x506fc5))||_0x506fc5);return _0x15c80f&&_0x506fc5&&Ht(_0x1d22bd,_0x126279,_0x506fc5),_0x506fc5;},me=(_0x5bd43c,_0x1fe7be)=>(_0x1cb190,_0x306d63)=>_0x1fe7be(_0x1cb190,_0x306d63,_0x5bd43c),Mn=(_0x390632,_0x389fbd,_0x15be98)=>wn(_0x390632,_0x389fbd+'',_0x15be98);const An=_0x57f41f(0x29c);exports[_0x57f41f(0x2ee)]=class extends a['Plugin']{constructor(_0x4031b5=rs,_0xcc8a25,_0x4121fb,_0x2c2699,_0x5649bb){const _0x329804=_0x57f41f;super(),this['_config']=_0x4031b5,this[_0x329804(0x181)]=_0xcc8a25,this[_0x329804(0x46a)]=_0x4121fb,this[_0x329804(0x331)]=_0x2c2699,this[_0x329804(0x172)]=_0x5649bb;const {..._0x2bb520}=this[_0x329804(0x3d8)];this[_0x329804(0x172)][_0x329804(0x218)](L,_0x2bb520);}[_0x57f41f(0x351)](){const _0x5e838e=_0x57f41f;this['_registerDependencies'](),a['touchDependencies'](this['_injector'],[[ne],[exports[_0x5e838e(0x327)]],[Te]]);}[_0x57f41f(0x2af)](){const _0x4d8954=_0x57f41f;a[_0x4d8954(0x151)](this[_0x4d8954(0x331)],[[Ce]]);}[_0x57f41f(0x37e)](){const _0x33ad7f=_0x57f41f;this[_0x33ad7f(0x134)]();}[_0x57f41f(0x38b)](){const _0x1f6ec1=_0x57f41f;var _0x5182bb,_0x182559,_0x465357,_0x3b5090;this[_0x1f6ec1(0x331)][_0x1f6ec1(0x2c9)](a[_0x1f6ec1(0x24e)])&&this['_logService'][_0x1f6ec1(0x542)](_0x1f6ec1(0x462),_0x1f6ec1(0x1d7));let _0x59d739=[[a[_0x1f6ec1(0x24e)],{'useClass':Fe}],[exports[_0x1f6ec1(0x19b)]],[Je],[w[_0x1f6ec1(0x45d)]],[Qe,{'useClass':$t}],[q],[exports[_0x1f6ec1(0x4a8)]],[w[_0x1f6ec1(0x43c)]],[Ie],[pe],[fe],[qe],[Ee],[be],[Xe],[Te],[Ke,{'useClass':(_0x182559=(_0x5182bb=this[_0x1f6ec1(0x3d8)])==null?void 0x0:_0x5182bb[_0x1f6ec1(0x166)])!=null?_0x182559:exports[_0x1f6ec1(0x253)]}],[w[_0x1f6ec1(0x4d1)],{'useClass':w['XHRHTTPImplementation']}],[_[_0x1f6ec1(0x144)],{'useClass':exports[_0x1f6ec1(0x3ce)]}],[a[_0x1f6ec1(0x520)],{'useClass':exports[_0x1f6ec1(0x3fb)]}],[j[_0x1f6ec1(0x3d7)],{'useClass':exports[_0x1f6ec1(0x434)]}],[exports[_0x1f6ec1(0x34d)]],[exports[_0x1f6ec1(0x327)]],[exports[_0x1f6ec1(0x2bf)]],[Ce],[ne]];(_0x465357=this[_0x1f6ec1(0x3d8)])!=null&&_0x465357[_0x1f6ec1(0x12d)]&&_0x59d739[_0x1f6ec1(0x2d0)]([Re,{'useClass':$s}]),_0x59d739=a[_0x1f6ec1(0x469)](_0x59d739,(_0x3b5090=this[_0x1f6ec1(0x3d8)])==null?void 0x0:_0x3b5090[_0x1f6ec1(0x2de)]),_0x59d739[_0x1f6ec1(0x50c)](_0x57a95f=>this['_injector'][_0x1f6ec1(0x150)](_0x57a95f)),this['_initModules']();}['_registerRenderDependencies'](){const _0x46dd9c=_0x57f41f;this[_0x46dd9c(0x1e2)](this[_0x46dd9c(0x46a)][_0x46dd9c(0x551)](a[_0x46dd9c(0x4f6)][_0x46dd9c(0x1a7)],[Ve])),this[_0x46dd9c(0x1e2)](this[_0x46dd9c(0x46a)][_0x46dd9c(0x551)](a[_0x46dd9c(0x4f6)]['UNIVER_SHEET'],[We]));}[_0x57f41f(0x15f)](){const _0xe5b2b=_0x57f41f;var _0x284d82,_0x2bd932;this[_0xe5b2b(0x331)][_0xe5b2b(0x31f)](w[_0xe5b2b(0x45d)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':w['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this['_injector'][_0xe5b2b(0x31f)](be),(_0x284d82=this[_0xe5b2b(0x3d8)])!=null&&_0x284d82[_0xe5b2b(0x1fb)]||this[_0xe5b2b(0x331)][_0xe5b2b(0x31f)](exports[_0xe5b2b(0x4a8)])[_0xe5b2b(0x1f2)](),(_0x2bd932=this['_config'])!=null&&_0x2bd932[_0xe5b2b(0x247)]&&this[_0xe5b2b(0x331)][_0xe5b2b(0x31f)](Ee),this[_0xe5b2b(0x331)][_0xe5b2b(0x31f)](exports[_0xe5b2b(0x34d)]),this[_0xe5b2b(0x331)][_0xe5b2b(0x2c9)](exports[_0xe5b2b(0x2bf)])&&this[_0xe5b2b(0x331)][_0xe5b2b(0x31f)](exports[_0xe5b2b(0x2bf)]);}},Mn(exports[_0x57f41f(0x2ee)],_0x57f41f(0x431),An),exports['UniverCollaborationClientPlugin']=Nn([a['DependentOn'](_[_0x57f41f(0x30b)]),me(0x1,a['ILogService']),me(0x2,O['IRenderManagerService']),me(0x3,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),me(0x4,a[_0x57f41f(0x435)])],exports[_0x57f41f(0x2ee)]),exports[_0x57f41f(0x43b)]=jt,exports[_0x57f41f(0x2cc)]=Ct,exports[_0x57f41f(0x268)]=gt,exports[_0x57f41f(0x35b)]=U,exports['CollaborationStatusDisplay']=Lt,exports['CommentService']=Xe,exports[_0x57f41f(0x1c6)]=mt,exports[_0x57f41f(0x33c)]=Ge,exports['ICollaborationSocketService']=Ke,exports[_0x57f41f(0x1db)]=Qe,exports[_0x57f41f(0x3e6)]=pt,exports[_0x57f41f(0x511)]=Et,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=It,exports['SEND_CHANGESET_TIMEOUT_KEY']=zt,exports[_0x57f41f(0x53f)]=St,exports[_0x57f41f(0x54a)]=vt,exports[_0x57f41f(0x13c)]=H,exports['SheetCollabCursorShape']=Pt,exports[_0x57f41f(0x408)]=$t,exports[_0x57f41f(0x18c)]=Rt,exports[_0x57f41f(0x30d)]=Ot;
|