@univerjs-pro/collaboration-client 0.4.1-experimental.20241022-507567a → 0.4.1-experimental.20241024-0ebc6ee
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/umd/index.js +1 -1
- package/package.json +16 -16
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x424a27=_0xaf12;(function(_0x3c4dfa,_0x211c17){const _0x20d2f9=_0xaf12,_0x115dbc=_0x3c4dfa();while(!![]){try{const _0x1a004e=parseInt(_0x20d2f9(0x40c))/0x1*(-parseInt(_0x20d2f9(0x26e))/0x2)+parseInt(_0x20d2f9(0x190))/0x3+-parseInt(_0x20d2f9(0x189))/0x4*(parseInt(_0x20d2f9(0x3d4))/0x5)+-parseInt(_0x20d2f9(0x1a6))/0x6*(parseInt(_0x20d2f9(0x17b))/0x7)+-parseInt(_0x20d2f9(0x3f7))/0x8*(-parseInt(_0x20d2f9(0x256))/0x9)+parseInt(_0x20d2f9(0x398))/0xa+-parseInt(_0x20d2f9(0x103))/0xb*(parseInt(_0x20d2f9(0x459))/0xc);if(_0x1a004e===_0x211c17)break;else _0x115dbc['push'](_0x115dbc['shift']());}catch(_0x54a07b){_0x115dbc['push'](_0x115dbc['shift']());}}}(_0x146a,0x6ec46));var ri=Object['defineProperty'],oi=(_0x1d36ee,_0x26e0cc,_0x4c635e)=>_0x26e0cc in _0x1d36ee?ri(_0x1d36ee,_0x26e0cc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c635e}):_0x1d36ee[_0x26e0cc]=_0x4c635e,l=(_0x137306,_0x47e717,_0x1afc20)=>oi(_0x137306,typeof _0x47e717!=_0x424a27(0x1c2)?_0x47e717+'':_0x47e717,_0x1afc20);import{createIdentifier as _0x28fcf5,Inject as _0x5a29b8,Disposable as _0x118ead,DisposableCollection as _0x2a1629,toDisposable as _0x2fa5a0,IConfigService as _0x5992c0,ILogService as _0x2030cd,UserManagerService as _0x3f8626,UniverInstanceType as _0x4d4554,IUniverInstanceService as _0x1528d5,LocaleService as _0x34277f,Optional as _0x2c7ffc,RxDisposable as _0x49569b,Injector as _0x5503e4,Tools as _0x4f1501,ILocalStorageService as _0x1f51c6,Rectangle as _0x11086f,ICommandService as _0x4328b6,JSONX as _0x1c0817,CommandType as _0xe4895,IPermissionService as _0x51263e,IUndoRedoService as _0xde5684,sequenceExecute as _0xd579d0,debounce as _0x2b5536,COLORS as _0x38bbd6,ColorKit as _0x5616c4,ThemeService as _0x5e8da3,fromEventSubject as _0x2320f7,useDependency as _0x5511a3,connectInjector as _0x4dcb76,Workbook as _0x223db9,isInternalEditorID as _0x19a8c7,LocalUndoRedoService as _0x58e1e2,IContextService as _0x446861,DependentOn as _0xf294be,Plugin as _0x13c862,touchDependencies as _0x274c82,IAuthzIoService as _0x36cf75,mergeOverrideWithDependencies as _0x59c805}from'@univerjs/core';import{Subject as _0x10bfa5,merge as _0x38e413,takeUntil as _0x1406ee,BehaviorSubject as _0x9f2686,distinctUntilChanged as _0x266803,fromEvent as _0x15604f,ReplaySubject as _0x158155,take as _0x58e005,map as _0x3e3132,shareReplay as _0x3f16ea,of as _0x49206c,debounceTime as _0xba228f,filter as _0x55c3b1,switchMap as _0x58e949,combineLatest as _0x1c11ca,concatMap as _0x31d01f,mapTo as _0x3a482f}from'rxjs';import{map as _0x425c95,take as _0x1104da,filter as _0xfe9a5f,delay as _0x95c889,throttleTime as _0x5c79cd,takeUntil as _0x1f735a,switchMap as _0x3a7ecc}from'rxjs/operators';import{MessageType as _0x141b61,Tooltip as _0x5a1ead}from'@univerjs/design';function _0x146a(){const _0x40d734=['_httpService','SHOULD_CLOSE_CONN','MUTATION','toggleOnline','Undefined','extend','_telemetryService','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','use','registerHTTPInterceptor','saveSheetBlock','_change$','_exhaustRemoteChangesetQueue','c2Prime','onTransformRemoteChangesetByIMECache','indexOf','getMergeData','x-univer-host','_executeRemoteChangeset','CONNECTOR_DATA_TOO_LARGE','USERS_LEAVE','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','UNAUTHENTICATED','auth.needGotoLoginAlert','black','_collabSessionService','_onRemoteRetry','name','listCollaborators','setParam','endColumn','onCommentUpdate','LIVESHARE_OPERATION','selection','_createHandler','_replayCachedMutations','_createInitialStateImpl','PERMISSION_DENIED','_onRemoteChangeset','replaceState','COMMENT_UPDATE','UNDEFINED','_sender','_retryCount','ws://127.0.0.1:8000/universer-api/comb/connect','Error\x20on\x20receiving\x20event','width','substring','_docTransformSelectionsService','getCellPositionByOffset','RemoveRowCommandId','univer-online-status-title','_resendWithTimeout','permissionRejEvent','_unitStatus','_applyRemoteChangeset','_getAPIPrefixPath','_socket$','contains','url','_permissionService','randomUUID','SEND_CHANGESET_TIMEOUT','get','conflict','resourceIDs','onTransformSelections','_scheduleTimestamp','awaiting_with_pending','path','unit','_sheetTransformSelectionsService','fetchThroughInterceptors','loadOfflineData','_registerRenderDependencies','commentUpdate$','_messageService','joinEvent','onPointerMove$','transformChangesets','EXCHANGE_SIGN_URL_SERVER_URL_KEY','state$','_color','_render','evenodd','univer-online-status-icon','setAlpha','FAIL','stringify','LIVESHARE_TERMINATE','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_disableEditing','csRejEvent','_getScale','_docSkeletonManagerService','call','INVALID_ARGUMENT','univer-offline','/unit/','ALREADY_EXISTS','enableSingleActiveInstanceLock','sheets','HttpExport','entries','/object','transformRemoteChangeset','getUndoRedoMutationParamsCache','_checkMissing','_getAPIPrefix','LIVESHARE_NEW_HOST','_listenToOnlineEvent','compose','split','_unitOnClients','retryConnectingInterval','column','shouldCloseConn','UNIVER_DOC','ONLINE','string','_collaborationController','withCredentials','_removeCollabCursors','_isPermissionRej','getActiveSheet','_collaborationSessionService','_injector','snapshotServerUrl','rgba(255,\x20255,\x20255,\x200.01)','image/bmp','_onMessage','_clearRedo','_getSaveTimeout','ACTIVE_UNIT_EVENT_CHANNEL','then','row','max','[PendingState]:\x20received\x20rejection.','_scheduleHeartbeat','_startCollaboration','_cursorInfo$','_removeClearOtherTimer','result','\x20to\x20','/object/','_updateState','registerRefRange','values','getResourcesRequest','UPDATE_PERMISSION_OBJ','UNIVER_SLIDE','_stopTelemetryCollaborationNewChangeset','_saveCache','&source=','PSEUDO_FETCH_MISSING_RESULT','_draw','cursorInfo$','COMPLETION_FINISHED','assign','objectID','saveImage','onRemoteAck','_http','flatMap','[CollaborationSession]','_updateCollabCursors','confirm','hidden','LICENSE_DISTRO_REJECTED','font','requestParams','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_toggleOffline','_ensureSubject','getRangePointData','#FFF','UNIVER_UNKNOWN','_transitionLocked','save','resend','storage','state','startColumn','AWAITING','visibilityState','idSuffix','onRemoteChangeset','[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.','onTransformChange$','status','createCollaborator','currentTheme$','_getSendChangesetTimeout','startTime','CONFLICT','enableLocalCache','getConfig','unit-cache-','/universer-api/snapshot','8639590nWNMzh','collaboration.single-unit.warning','_onCursorUpdate','_uiPartsService','replaceTextRanges','collaboration-client.offline-data-not-saved','_localStorageService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','createInstance','body','_imageSourceCache','set','m2Prime','_cursors','/universer-api/snapshot/','_initCommandExecutedListener','_getSignURL','_logService','sid','/universer-api/comb','_snapshotServerService','clearTimeout','_roomMembers','memberID','_docSkeleton','isArray','onTransformIME','permission.content','_handleHover','ERROR_EXCEED_SIZE','_hovered','_onConnectionFailed','CHANGESET_REJ','_HTTPService','_docStateChangeManagerService','getSkeleton','unitId','MSG_FOR_ERROR','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','onMissingChangesets','InsertColCommandId','_initUnitPermissionChange','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','MoveRangeCommandId','_loadSheet','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','apply','FETCH_MISSING','image/png','removeParam','SUCCUSS','_drawAnchor','setShapeProps','allowed','enableAuthServer','encode','univer-pro.collaboration-client.single-active-unit-service','_state$','_onConnectionOpen','subUnitId','65830wFTJbS','_syncEditingCollabCursor','routeKey','transformIMECache','LEAVE','href','[PendingState]:\x20received\x20acknowledgement.','_handleLeaveEvent','BASE64','unsubscribe','fetching\x20missing\x20changesets\x20from\x20','collabStatus.fetchMiss','_substituteUndoStack','has','_session','red300','setUndoRedoMutationParamsCache','bind','initWorkbookPermissionChange','getCollabEntity','unitId\x20is\x20not\x20found','HEARTBEAT','_roomMembers$','AWAITING_WITH_PENDING','PERMISSION_REJ','OFFLINE','InsertRowCommandId','_colorIndex','_labelPosition','SUBMIT_CHANGESET','roomMembers$','transformSelections','lineTo','_waitCount','1em','778408Aypctu','_initResize','collaborators','[SyncedState]:\x20received\x20rejection.','div','univer-online-status','_waitForHeartbeatResponse','[CollaborationEntity]','_onLocalMutation','registerRenderModule','getDocRanges','_onCursorDelete','startRow','_initEventListeners','/universer-api/stream/file/upload','_name','_createSocket','parse','/universer-api/file/{fileID}/sign-url','_compressMutationService','_incrementRevisionNumber','31tyXllH','getParam','subunit','transformUndoRedo','_event$','focused$','getRandomValues','_snapshotService','_toggleOnline','addImageSourceCache','leaveEvent','clearInterval','update','cursorInfo','on-line-single_clip0_910_349','USERS_ENTER','_fetchMissChangesets','LICENSE_IMPORT_SIZE_EXCEEDED','with','_retryConnectingTimer','includes','xlink:href','getValue','catch','prototype','CHANGESET_REVISION_CONFILICT','FromArray','isActive','YUUMI_RATE_OVER_LIMIT','doc.mutation.rich-text-editing','put','params','online','disableLocalCache','_syncEditingCollabCursorService','_urlService','setWaitCount','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_online','collabCursorState$','snapshot','updatePermissionPoint','_transformService','objects','_initRequestHeader','show','json','RETRY_CONNECTING_MAX_COUNT','awaiting','_beforeCloseService','drawWith','sessionStatus$','defs','ENSURE_SNAPSHOT_EXECUTION','text','liveShareOperation','src','none','UnitSnapshot','PENDING','_getSnapshotAPIPrefix','updateCollaborator','startsWith','_themeService','dispose$','_submitChangeset','onMissedChangesetFetched','measureText','synced','_commandService','UUID','_transformRemoteChangesetByIMECache','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','univer-online','transformMutationsWithChangeset','clear','children','12SHKtqx','transformStack\x20failed!','hasOwnProperty','setTimeout','loginUrlKey','_transformStack','subscribe','TOO_MANY_REQUESTS','status$','_members','arc','getTypeOfUnitAdded$','error','_colorAssignService','_startSheetCollabCursor','onStateChange','conflict.content','_tryEnsureSocket','_loadDoc','moveTo','#fff','type','APPLY_DUPLICATED','reqId','sessionStatus','[UniverCollaborationClientPlugin]','headers','init','_hover','setInterval','_shapes','message$','pipe','submit\x20changeset\x20error!','collabStatus.synced','history','?size=','_onRemoteRejected','InsertRangeMoveDownCommandId','interceptor','_resendTimer','_renderManagerService','getOwnPropertyDescriptor','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_queuedRemoteChangesets','UNIVER_PROJECT','UNIVER_COLLABORATION_CLIENT_PLUGIN','[FetchMissState]','YUUMI_SUBSCRIPTION_NOT_FOUND','url(#$1','location','_socketReady','blue400','_notificationService','getItem','length','getUnitId','_onUserJoin','_onCombEvent','\x0aAfter:\x20','rng','reject','round','getTime','clipPath','csShouldRetryEvent','_refRangeService','error$','13379399XFccVJ','ranges','hide','NOT_COLLAB','_clearLocalCache','onRemoteRej','userID','saveSnapshot','replace','appendMutation','every','Unknown\x20user','/role','collaboratorID','refreshPermission','disposeUnit','getTypeOfUnitDisposed$','LIVESHARE_REQUEST_HOST','override','_replaceFileID','pending','resolve','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','\x20in\x20_schedule.','_drawTextRange','colorChannel1','hovered','restore','getMember','_sendHeartbeatTimer','createElement','incrementRevOfUnit','getActiveRange','_state','displayName','unknown','getCurrentUnitForType','_textBubble','attrs','UNRECOGNIZED','function','_awaitingChangeset','transformByState','_initMergeInterceptor','_unlockTransition','triggerDblclick','url(#off-line-single_clip0_910_343)','fillRule','getWorkbookSelections','_pendingMutations','UNIVER_SHEET','_createInitialState','COMPRESS_MUTATION_APPLY','selections','skeleton','_clearTimeoutTimer','removeMember','fill','endRow','_backgroundColor','?url=','OTHER_CLIENTS_EDITING','_timeoutTimer','_transformPreviousActiveRange','add','_sheetSkeletonManagerService','_updateSubUnitFromURLParams','originalMeta','getOwnPropertySymbols','defIds','roomMembers','/allowed','mutations','univerjs-icon\x20univerjs-icon-','eventID','_schedule','YUUMI_UNABLE_LOAD_URL','session.collaboration-timeout','_initModules','workbook','UniverIcon','_setupBeforeClosingHandler','_id','title','INTERNAL_ERROR','M0\x200H16V16H0z','objectActions','_revisionService','_hideTimer','_saveTaskMap','_resendTimeout','_collabCursorState$','_commentService','CHANGESET_SHOULD_RETRY','reconnect','random','[CollaborationSessionService]','getSheetId','InsertRangeMoveRightCommandId','&assign=','labelPosition','_memberService','getRenderById','currentSkeleton$','_handler','_socketService','getUnitType','[CollaborationSessionService]:\x20socket\x20error','registerOnClose','_scheduleClearOtherTimer','_handleEvent','0\x200\x2017\x2016','_updateLocalCursor','trim','responseType','makeDirty','_initStatusComponent','unload','_docTransformIMECacheService','off-line-single_clip0_910_343','7IXAWOR','_transformUndoRedoStack','_scene','current','_userManagerService','_collaborationTimeoutTimer','joinRsp','createSocket','APPLY_REJECT','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','setActiveRange','IDLE','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_entities','20UyCozZ','_getSheetObject','event$','onlyLocal','getUnhiddenWorksheets','onSyncEditingCollabCursor','_onJoinRoomEvent','1668942DxlDhJ','_joinRoom','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','\x20-\x20','_candidateSocket','_socket','HEADER_MENU','_onOffline','url(#on-line-single_clip0_910_349)','number','toRgbString','_changesetSessionId','loadDoc','c1Prime','[CollaborationState]:\x20apply\x20error!','currentColor','JOINING','_clearScheduledTask','_onConflict','code','engine','_collaborationPaused','2510874YlUBxO','slice','SYNCED','stopTime','_showConflictNotification','session','_anchor','data','_startDocCollabCursor','collabStatus.syncing','_updateURLWithCurrentState','session.connection-failed','_sessionStatus$','saveOfflineData','SNAPSHOT_HAS_BEEN_REMOVED','color','_onRemoteACK','_anchorDot','toString','_getUndoStack','_sendingTimer','_context','collaboration-session-retry','_shouldReportTelemetry','Warning','saveChangeset','delete','_clearOtherTimers','symbol','open$','/resources','roomInfos','_removeRoom','close','pushState','NO_OTHER_CLIENTS_EDITING','SNAPSHOT_INVALID_SNAPSHOT','DeleteRangeMoveLeftCommandId','collabSubmitChangesetUrl','_onUserLeave','UNKNOWN_CMD','/universer-api/authz','_collabCursorController','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_socketMessageSubscription','getCollabEntity$','addEventListener','objectType','[DataLoaderController]','urlChange$','updateCursorEvent','find','putCollaborators','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_getRedoStack','FileId','_cursor','reverse','HELLO','_getCurrentRevision','conflict.title','[OfflineState]:\x20received\x20acknowledgement.','collab-rect-range-','_disabled','list','_initCloseConn','getCurrentRevOfUnit','setConfig','subscribeEvent','setCurrentUser','csAckEvent','HEARTBEAT_INTERVAL','_decreaseWaiting','NOT_FOUND','isPermissionRej','_refreshCollabCursors','uploadFileServerUrl','_getCtorByUniverType','debug','_throwTelemetryCollaborationNewChangeset','getImageSourceCache','_getMergeRange','_getDownloadEndpointURL','socketService','_localeService','_sendHeartbeat','CHANGESET_ACK','/rev/','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','icon','_acknowledgedAwaitingChangeset','_heartbeatTimer','...','pluginName','forEach','UPDATE_CURSOR','getCurrentUser','now','cmd','OffLineSingle','defineProperty','capture','updateOfflineData','_type','listRoles','rev','_getLoginPath','_transformIMECache','_remoteChangesetQueue','toLowerCase','ERROR_IMAGE_TYPE','INGEST','whenReady','VIEW_MAIN','asObservable','from','complete','_scheduleSaving','pauseCollaboration','_sessions','_range','_clearUndo','propertyIsEnumerable','onPointerEnter$','onSendChangeset','equals','getRoom','setItem','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','disposeWithMe','getFocusedUnit','_ws','onPointerLeave$','_changesetReqId','UnitEmbedded','_lastPointer','collab-text-anchor-','AUTHZ_URL_KEY','onCommandExecuted','_unitID','COLLAB_SUBMIT_CHANGESET_URL','collab-text-range-','[CollaborationUndoRedoService]','_tryReconnect','_eventUnsubscribe','_commentUpdate$','localeService','map','transformMutation','next','className','assignAColorForMemberID','off-line-single','top','_clearCollaborationTimeoutTimer','patch','uni.network.url-service','updateMember','getSheetBlock','_scheduleCollaborationTimeoutTimer','push','getMemberID','tag','_lockTransition','_telemetryInfo','getSheetBySheetId','POST','collaMsg','target','JOIN','_localCacheService','editing\x20status\x20changed\x20to','SNAPSHOT_URL_KEY','popstate','backgroundColor','_registerDependencies','72BnSaAb','_onRecvEvent','dispose','_instanceService','_clearHeartbeatTimer','_send','getCurrentSelections','baseRev','HttpImport','min','fetchMiss','/fetchmissing?from=','_assignedColors','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','changesets','_substituteRedoStack','connection\x20error','actions','APPLY_REVISION_CONFILICT','_getAnchorBounding','_getUploadFileURL','session.room-full','RECV','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','2862kVVrpR','onlineStatusTitle','revision','\x0aCurrent:\x20','_transformUndoredo','addObjects','_status$','&to=','m1Prime','newCsEvent','permission.title','_configService','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','loadSheet','_singleActiveUnitService','textRanges','_entityInit$','COLLAB_WEB_SOCKET_URL','roles','executeCommand','/collaborator','searchParams','_handleHeartbeatEvent','_init','fillText','deepClone','/-/object/-/batch_allowed','session.will-retry','range','[OfflineState]:\x20received\x20rejection.','_rescheduleHeartbeat','/block/','DeleteRangeMoveUpCommandId','_univerInstanceService','_cursorShapes','image/gif','_selfUnitIDs','Error','{fileID}','members','size','action','save\x20fail\x20reason\x20is\x20','getUnitStatus$','reduce','toggleOffline','_onFetchMissResult','_initStatusListener','ERROR_IMAGE','verdancy600','onMouseMove','unitID','getInterceptPoints','_config','isEditing','collab-client.tooltip.reconnect','send','fetch_missing','file','gold400','_onRefRangeChange','_updateLocalCache','OnLineSingle','getImage','filter','/-/object/list','findNodePositionByCharIndex','post','visibilitychange','LICENSE_MAX_UNITS_EXCEEDED','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','APPLY_NON_SEQUENTIAL_REVISION','concat','requireSession','commentUpdateEvent','encodeURIComponent','/universer-api/oidc/authpage','getLatestCsReqIdBySid','UNKNOWN_CODE','downloadEndpointUrl','FETCH_MISS','_updateStatus','_listenToOfflineEvent','addObject','closeSession','updatePermissionObjEvent','getCollabCursors$','transform','onRemoteRetry','registerBeforeClose','sendChangesetTimeout','awaitingChangeset','Univer','newValue','LIVESHARE_FETCH_OPERATIONS','NEW_CHANGESETS','bottom','_startTelemetryCollaborationNewChangeset','generateRandomId'];_0x146a=function(){return _0x40d734;};return _0x146a();}import{IBeforeCloseService as _0x49abab,IMessageService as _0x306a76,INotificationService as _0x27e22d,useObservable as _0x300191,BuiltInUIPart as _0x52dcb6,IUIPartsService as _0x2b4602}from'@univerjs/ui';import{HTTPService as _0x170d5f,WebSocketService as _0x1f8354,MergeInterceptorFactory as _0xf9be3c,HTTPRequest as _0x2d17dc,IHTTPImplementation as _0x3b9ac2,XHRHTTPImplementation as _0x42f145,ThresholdInterceptorFactory as _0x58c344}from'@univerjs/network';import{CollaborationEvent as _0x51f469,parseChangesetToProtocol as _0x98f6f9,ISnapshotServerService as _0x4be85b,isTransformMutationFailure as _0x17a5cf,isTransformMutationsWithChangesetSuccess as _0x1c6d2b,ITransformService as _0x5edf81,RevisionService as _0x1fd8e1,mapDocumentTypeToUniverType as _0xd479f4,isTransformChangesetsSuccess as _0x17118b,CompressMutationService as _0x313732,parseProtocolChangeset as _0x3a299a,SnapshotService as _0x107a3c,textEncoder as _0x4de35e,b64DecodeUnicode as _0x57fba1,isTransformMutationsWithChangesetFailure as _0x182df8,UniverCollaborationPlugin as _0xf73eb5}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x5b0312}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x2f0bbb,DocStateChangeManagerService as _0x1e509e,NodePositionConvertToCursor as _0x99e242,isValidRectRange as _0x1fdd03,NodePositionConvertToRectRange as _0x417997,TEXT_RANGE_LAYER_INDEX as _0x2b0485,SetDocZoomRatioOperation as _0x10c625}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x112aa6,SetSelectionsOperation as _0x54411d,InsertSheetMutation as _0x2c4efb,EmptyMutation as _0x463ea5,WorkbookEditablePermission as _0x264da4,RefRangeService as _0x5ec67a,EffectRefRangId as _0x3fdbfe,handleIRemoveRow as _0x23e733,handleIRemoveCol as _0x1f0533,handleMoveRange as _0x448153,handleInsertRow as _0x1a43eb,handleInsertRangeMoveRight as _0x3486b1,handleInsertRangeMoveDown as _0x4e6608,handleInsertCol as _0x5632d4,handleDeleteRangeMoveUp as _0x1556f2,handleDeleteRangeMoveLeft as _0x3becf5,runRefRangeMutations as _0x2fe206,SetWorksheetActivateCommand as _0x41a134}from'@univerjs/sheets';import{IRenderManagerService as _0x58909f,Shape as _0x5af1da,Rect as _0x1de0b0,getColor as _0x1d29da,RegularPolygon as _0x3cfe62,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x15bfd5,Vector2 as _0x153dd4}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x2e81ec,RichTextEditingMutation as _0x129e5a,SetTextSelectionsOperation as _0x31c87f,DocSkeletonManagerService as _0x36e872}from'@univerjs/docs';import{ImageSourceType as _0xa33cd0,ImageUploadStatusType as _0x3415c9,IImageIoService as _0x3a3be1}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x244676,serializeRangeWithSheet as _0x3c226e}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x18007c,VIEWPORT_KEY as _0x10694e,getCoordByCell as _0x41be07,getSheetObject as _0xba9adb,SheetPermissionInitController as _0x2cbb32}from'@univerjs/sheets-ui';import _0x15137f,{forwardRef as _0x1133e3,useRef as _0x4c2790,createElement as _0x39ed96,useCallback as _0x248bc7}from'react';import{IRemoteInstanceService as _0xeab5d0}from'@univerjs/rpc';import{getAttachHeader as _0x50d6ce}from'@univerjs-pro/license';const In='SNAPSHOT_SERVER_URL_KEY',En=_0x424a27(0x397),Cn=_0x424a27(0x252),Ha=_0x424a27(0x30f),bn=0x7d0,Tn=_0x424a27(0x27f),Rn=_0x424a27(0x2fd),On=_0x424a27(0x1ed),Dn=0x7530,js='HEARTBEAT_TIMEOUT',Hs=0x4e20,wn=0x4e20,Pn=_0x424a27(0x43b),yn=0x3,Un='LOCAL_CACHE_INTERVAL',Nn=0x3e8,Mn=_0x424a27(0x232),An=_0x424a27(0x3ab),Ln='LOGIN_URL_KEY',$n=_0x424a27(0x2ba);var xs=(_0x3301ed=>(_0x3301ed[_0x3301ed[_0x424a27(0x2fa)]=0x0]='UNDEFINED',_0x3301ed[_0x3301ed['OK']=0x1]='OK',_0x3301ed[_0x3301ed[_0x424a27(0x157)]=0x2]=_0x424a27(0x157),_0x3301ed[_0x3301ed[_0x424a27(0x2f6)]=0x3]=_0x424a27(0x2f6),_0x3301ed[_0x3301ed[_0x424a27(0x1ef)]=0x4]='NOT_FOUND',_0x3301ed[_0x3301ed[_0x424a27(0x2e7)]=0x5]=_0x424a27(0x2e7),_0x3301ed[_0x3301ed['ALREADY_EXISTS']=0x6]=_0x424a27(0x334),_0x3301ed[_0x3301ed[_0x424a27(0x331)]=0x7]=_0x424a27(0x331),_0x3301ed[_0x3301ed[_0x424a27(0x460)]=0x8]='TOO_MANY_REQUESTS',_0x3301ed[_0x3301ed[_0x424a27(0x36e)]=0x9]=_0x424a27(0x36e),_0x3301ed[_0x3301ed[_0x424a27(0x425)]=0x1389]=_0x424a27(0x425),_0x3301ed[_0x3301ed[_0x424a27(0x1ca)]=0x1771]=_0x424a27(0x1ca),_0x3301ed[_0x3301ed[_0x424a27(0x1b4)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x3301ed[_0x3301ed['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x424a27(0x441),_0x3301ed[_0x3301ed[_0x424a27(0x183)]=0x1b59]=_0x424a27(0x183),_0x3301ed[_0x3301ed[_0x424a27(0x2b5)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x3301ed[_0x3301ed[_0x424a27(0x268)]=0x1b5b]=_0x424a27(0x268),_0x3301ed[_0x3301ed['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x3301ed[_0x3301ed['APPLY_DUPLICATED']=0x1b5d]=_0x424a27(0x46f),_0x3301ed[_0x3301ed[_0x424a27(0x2e4)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x3301ed[_0x3301ed[_0x424a27(0x2b3)]=0x2329]=_0x424a27(0x2b3),_0x3301ed[_0x3301ed[_0x424a27(0x192)]=0x232a]=_0x424a27(0x192),_0x3301ed[_0x3301ed[_0x424a27(0x41d)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x3301ed[_0x3301ed['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x3301ed[_0x3301ed['LICENSE_DISTRO_REJECTED']=0x232d]=_0x424a27(0x379),_0x3301ed[_0x3301ed[_0x424a27(0x14f)]=0x2711]=_0x424a27(0x14f),_0x3301ed[_0x3301ed['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x3301ed[_0x3301ed[_0x424a27(0x428)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x3301ed[_0x3301ed[_0x424a27(0x489)]=0x2714]=_0x424a27(0x489),_0x3301ed[_0x3301ed[_0x424a27(0x12a)]=-0x1]=_0x424a27(0x12a),_0x3301ed))(xs||{}),k=(_0x335f62=>(_0x335f62[_0x335f62[_0x424a27(0x381)]=0x0]=_0x424a27(0x381),_0x335f62[_0x335f62[_0x424a27(0x346)]=0x1]=_0x424a27(0x346),_0x335f62[_0x335f62['UNIVER_SHEET']=0x2]=_0x424a27(0x135),_0x335f62[_0x335f62[_0x424a27(0x367)]=0x3]='UNIVER_SLIDE',_0x335f62[_0x335f62[_0x424a27(0x486)]=0x4]=_0x424a27(0x486),_0x335f62[_0x335f62[_0x424a27(0x12a)]=-0x1]=_0x424a27(0x12a),_0x335f62))(k||{}),I=(_0x26a679=>(_0x26a679[_0x26a679[_0x424a27(0x1ce)]=0x0]='UNKNOWN_CMD',_0x26a679[_0x26a679[_0x424a27(0x1e0)]=0x1]=_0x424a27(0x1e0),_0x26a679[_0x26a679[_0x424a27(0x24f)]=0x2]=_0x424a27(0x24f),_0x26a679[_0x26a679[_0x424a27(0x3d8)]=0x3]='LEAVE',_0x26a679[_0x26a679['INGEST']=0x4]=_0x424a27(0x215),_0x26a679[_0x26a679[_0x424a27(0x3e9)]=0x5]=_0x424a27(0x3e9),_0x26a679[_0x26a679[_0x424a27(0x26c)]=0x6]=_0x424a27(0x26c),_0x26a679[_0x26a679['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x26a679))(I||{}),Vt=(_0x539c31=>(_0x539c31[_0x539c31[_0x424a27(0x2bc)]=0x0]=_0x424a27(0x2bc),_0x539c31[_0x539c31['OK']=0x1]='OK',_0x539c31[_0x539c31[_0x424a27(0x328)]=0x2]='FAIL',_0x539c31[_0x539c31[_0x424a27(0x12a)]=-0x1]='UNRECOGNIZED',_0x539c31))(Vt||{}),ks=(_0x4fdf97=>(_0x4fdf97[_0x4fdf97['Undefined']=0x0]=_0x424a27(0x2d5),_0x4fdf97[_0x4fdf97[_0x424a27(0x25e)]=0x1]='HttpImport',_0x4fdf97[_0x4fdf97['HttpExport']=0x2]=_0x424a27(0x337),_0x4fdf97[_0x4fdf97[_0x424a27(0x22c)]=0x3]=_0x424a27(0x22c),_0x4fdf97[_0x4fdf97['UnitSnapshot']=0x4]=_0x424a27(0x446),_0x4fdf97[_0x4fdf97[_0x424a27(0x12a)]=-0x1]=_0x424a27(0x12a),_0x4fdf97))(ks||{});const $='collaboration-client.config',jn={};function Hn(_0x4b980c){const _0xa51730=_0x424a27;var _0x1d2eb7,_0x41f768,_0xf5d34f,_0x1d5c45,_0x3073b0;const _0x4eae0a=_0x4b980c['data'],_0x10a359=JSON[_0xa51730(0x408)](_0x4eae0a);switch(_0x10a359[_0xa51730(0x208)]){case I['HEARTBEAT']:case I[_0xa51730(0x1e0)]:{const _0x2e74ca=_0x10a359['infoRsp'];return{..._0x10a359,'data':_0x2e74ca,'cmd':_0x10a359[_0xa51730(0x208)]};}case I[_0xa51730(0x24f)]:{const _0x324305=_0x10a359[_0xa51730(0x181)];return{..._0x10a359,'data':_0x324305,'cmd':_0x10a359[_0xa51730(0x208)]};}case I[_0xa51730(0x26c)]:{const _0x3afced=_0x10a359[_0xa51730(0x24d)];switch(_0x3afced[_0xa51730(0x14d)]){case _0x51f469[_0xa51730(0x3ec)]:return{..._0x10a359,'data':{..._0x3afced,'data':(_0x1d2eb7=_0x3afced[_0xa51730(0x306)])==null?void 0x0:_0x1d2eb7['cs']},'cmd':_0x10a359[_0xa51730(0x208)]};case _0x51f469[_0xa51730(0x1fc)]:return{..._0x10a359,'data':{..._0x3afced,'data':(_0x41f768=_0x3afced[_0xa51730(0x1ec)])==null?void 0x0:_0x41f768['cs']},'cmd':_0x10a359[_0xa51730(0x208)]};case _0x51f469['NEW_CHANGESETS']:return{..._0x10a359,'data':{..._0x3afced,'data':(_0xf5d34f=_0x3afced[_0xa51730(0x277)])==null?void 0x0:_0xf5d34f['cs']},'cmd':_0x10a359[_0xa51730(0x208)]};case _0x51f469[_0xa51730(0x3b8)]:return{..._0x10a359,'data':{..._0x3afced,'data':(_0x1d5c45=_0x3afced[_0xa51730(0x32d)])==null?void 0x0:_0x1d5c45['cs']},'cmd':_0x10a359[_0xa51730(0x208)]};case _0x51f469[_0xa51730(0x160)]:return{..._0x10a359,'data':{..._0x3afced,'data':(_0x3073b0=_0x3afced[_0xa51730(0x100)])==null?void 0x0:_0x3073b0['cs']},'cmd':_0x10a359['cmd']};case _0x51f469[_0xa51730(0x205)]:return{..._0x10a359,'data':{..._0x3afced,'data':_0x3afced[_0xa51730(0x1d8)]},'cmd':_0x10a359['cmd']};case _0x51f469[_0xa51730(0x41b)]:return{..._0x10a359,'data':{..._0x3afced,'data':_0x3afced[_0xa51730(0x31e)]},'cmd':_0x10a359[_0xa51730(0x208)]};case _0x51f469[_0xa51730(0x2e5)]:return{..._0x10a359,'data':{..._0x3afced,'data':_0x3afced[_0xa51730(0x416)]},'cmd':_0x10a359['cmd']};case _0x51f469[_0xa51730(0x33e)]:return{..._0x10a359,'data':{..._0x3afced,'data':_0x3afced['liveShareNewHost']},'cmd':_0x10a359[_0xa51730(0x208)]};case _0x51f469[_0xa51730(0x2cc)]:case _0x51f469['LIVESHARE_OPERATION']:return{..._0x10a359,'data':{..._0x3afced,'data':_0x3afced[_0xa51730(0x443)]},'cmd':_0x10a359['cmd']};case _0x51f469['LIVESHARE_TERMINATE']:return{..._0x10a359,'data':{..._0x3afced,'data':_0x3afced['liveShareNewHost']},'cmd':_0x10a359[_0xa51730(0x208)]};case _0x51f469['MSG_FOR_ERROR']:return{..._0x10a359,'data':_0x3afced,'cmd':_0x10a359['cmd']};case _0x51f469[_0xa51730(0x2f9)]:return{..._0x10a359,'data':{..._0x3afced,'data':_0x3afced[_0xa51730(0x2b8)]},'cmd':_0x10a359[_0xa51730(0x208)]};case _0x51f469[_0xa51730(0x366)]:return{..._0x10a359,'data':{..._0x3afced,'data':_0x3afced[_0xa51730(0x2c3)]},'cmd':_0x10a359['cmd']};case _0x51f469[_0xa51730(0x2d2)]:return{..._0x10a359,'data':{..._0x3afced,'data':_0x3afced[_0xa51730(0x345)]},'cmd':_0x10a359['cmd']};default:return _0x10a359;}}default:return _0x10a359;}}function xn(_0x26282a){const _0x317dc3=_0x424a27;switch(_0x26282a[_0x317dc3(0x208)]){case I[_0x317dc3(0x3e9)]:case I['HELLO']:return JSON[_0x317dc3(0x329)]({'cmd':_0x26282a['cmd'],'routeKey':_0x26282a[_0x317dc3(0x3d6)]});case I[_0x317dc3(0x215)]:{let _0x398aa3;switch(_0x26282a[_0x317dc3(0x1ad)][_0x317dc3(0x14d)]){case _0x51f469[_0x317dc3(0x205)]:{_0x398aa3={'eventID':_0x51f469[_0x317dc3(0x205)],'updateCursorEvent':_0x26282a[_0x317dc3(0x1ad)]['data']};break;}case _0x51f469[_0x317dc3(0x2e5)]:{_0x398aa3={'eventID':_0x51f469[_0x317dc3(0x2e5)],'leaveEvent':_0x26282a[_0x317dc3(0x1ad)][_0x317dc3(0x1ad)]};break;}case _0x51f469[_0x317dc3(0x41b)]:{_0x398aa3={'eventID':_0x51f469['USERS_ENTER'],'joinEvent':_0x26282a['data'][_0x317dc3(0x1ad)]};break;}case _0x51f469['LIVESHARE_NEW_HOST']:{_0x398aa3={'eventID':_0x51f469[_0x317dc3(0x33e)],'liveShareNewHost':_0x26282a[_0x317dc3(0x1ad)][_0x317dc3(0x1ad)]};break;}case _0x51f469['LIVESHARE_OPERATION']:{_0x398aa3={'eventID':_0x51f469[_0x317dc3(0x2f1)],'liveShareOperation':_0x26282a[_0x317dc3(0x1ad)][_0x317dc3(0x1ad)]};break;}case _0x51f469['LIVESHARE_TERMINATE']:{_0x398aa3={'eventID':_0x51f469[_0x317dc3(0x32a)],'liveShareTerminate':_0x26282a[_0x317dc3(0x1ad)]['data']};break;}case _0x51f469[_0x317dc3(0x114)]:{_0x398aa3={'eventID':_0x51f469['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x26282a['data']['data']};break;}case _0x51f469['LIVESHARE_FETCH_OPERATIONS']:{_0x398aa3={'eventID':_0x51f469[_0x317dc3(0x2cc)]};break;}default:_0x398aa3={'eventID':_0x26282a[_0x317dc3(0x1ad)][_0x317dc3(0x14d)]};}return JSON[_0x317dc3(0x329)]({'cmd':_0x26282a[_0x317dc3(0x208)],'routeKey':_0x26282a[_0x317dc3(0x3d6)],'collaMsg':_0x398aa3});}case I[_0x317dc3(0x24f)]:return JSON[_0x317dc3(0x329)]({'cmd':_0x26282a['cmd'],'routeKey':_0x26282a[_0x317dc3(0x3d6)],'joinReq':_0x26282a['data']});case I[_0x317dc3(0x3d8)]:return JSON[_0x317dc3(0x329)]({'cmd':_0x26282a[_0x317dc3(0x208)],'routeKey':_0x26282a[_0x317dc3(0x3d6)],'leaveReq':_0x26282a['data']});default:throw new Error(_0x317dc3(0x119));}}var kn=Object[_0x424a27(0x20a)],Bn=Object[_0x424a27(0x483)],Vn=(_0x4eb972,_0x509c2f,_0x110671,_0x2d09fa)=>{const _0x475da2=_0x424a27;for(var _0x221e12=_0x2d09fa>0x1?void 0x0:_0x2d09fa?Bn(_0x509c2f,_0x110671):_0x509c2f,_0x2cbc0e=_0x4eb972[_0x475da2(0xf6)]-0x1,_0x3e5897;_0x2cbc0e>=0x0;_0x2cbc0e--)(_0x3e5897=_0x4eb972[_0x2cbc0e])&&(_0x221e12=(_0x2d09fa?_0x3e5897(_0x509c2f,_0x110671,_0x221e12):_0x3e5897(_0x221e12))||_0x221e12);return _0x2d09fa&&_0x221e12&&kn(_0x509c2f,_0x110671,_0x221e12),_0x221e12;},Oe=(_0x1f40b9,_0x17c2e6)=>(_0x144399,_0x15c671)=>_0x17c2e6(_0x144399,_0x15c671,_0x1f40b9);const Bs=_0x28fcf5('univer-pro.collaboration-client-socket-service');function Fn(_0x163355,_0x518ef0,_0x104b44){const _0x2a05f3=_0x424a27;return _0x163355+'/'+_0x518ef0+_0x2a05f3(0x333)+_0x104b44+'/new_changes';}let Ct=class extends _0x118ead{constructor(_0x3e1297,_0x47cc28,_0x3c42a7,_0x14360a,_0x254b43){const _0x2dfe00=_0x424a27;super(),this['_http']=_0x3e1297,this[_0x2dfe00(0x229)]=_0x47cc28,this['_configService']=_0x3c42a7,this[_0x2dfe00(0x3a9)]=_0x14360a,this['_snapshotServerService']=_0x254b43;}[_0x424a27(0x182)](_0x4d3574){const _0x3f5b98=_0x424a27,_0x4f97f6=this['_ws'][_0x3f5b98(0x182)](_0x4d3574);if(!_0x4f97f6)throw new Error(_0x3f5b98(0x37c));const _0xae9266=new _0x2a1629(),_0x89484e=new _0x10bfa5();_0xae9266[_0x3f5b98(0x143)](_0x4f97f6['close$'][_0x3f5b98(0x45f)](_0x44820f=>_0x89484e[_0x3f5b98(0x23b)](_0x44820f))),_0xae9266[_0x3f5b98(0x143)](_0x2fa5a0(()=>_0x89484e['complete']()));const _0x5d85fd=new _0x10bfa5();_0xae9266[_0x3f5b98(0x143)](_0x4f97f6[_0x3f5b98(0x102)][_0x3f5b98(0x45f)](_0x3dc72d=>_0x5d85fd[_0x3f5b98(0x23b)](_0x3dc72d))),_0xae9266[_0x3f5b98(0x143)](_0x2fa5a0(()=>_0x5d85fd['complete']()));const _0x8cefb6=new _0x10bfa5();_0xae9266[_0x3f5b98(0x143)](_0x4f97f6[_0x3f5b98(0x478)][_0x3f5b98(0x45f)](_0x1acd78=>{const _0x5b2a50=_0x3f5b98,_0x228415=Hn(_0x1acd78);_0x8cefb6[_0x5b2a50(0x23b)](_0x228415);})),_0xae9266[_0x3f5b98(0x143)](_0x2fa5a0(()=>_0x8cefb6[_0x3f5b98(0x21a)]()));let _0xa6e614;const _0x50d934=()=>{const _0xd1985a=_0x3f5b98;_0x5d85fd[_0xd1985a(0x23b)](new Event(_0xd1985a(0x266))),_0x89484e[_0xd1985a(0x23b)](new CloseEvent(_0xd1985a(0x266))),_0xa6e614['close']();};return _0xa6e614={'memberID':'','close$':_0x89484e[_0x3f5b98(0x218)](),'error$':_0x5d85fd[_0x3f5b98(0x218)](),'open$':_0x4f97f6[_0x3f5b98(0x1c3)],'message$':_0x8cefb6[_0x3f5b98(0x218)](),'send':_0x33b126=>{const _0x2913ad=_0x3f5b98;if(_0x33b126[_0x2913ad(0x208)]===I[_0x2913ad(0x215)]){if(_0x33b126['data'][_0x2913ad(0x14d)]===_0x51f469[_0x2913ad(0x3f1)]){this[_0x2913ad(0x44d)](_0xa6e614,_0x33b126[_0x2913ad(0x1ad)])[_0x2913ad(0x423)](_0x51d42c=>{const _0x1aa02a=_0x2913ad;this[_0x1aa02a(0x3a9)][_0x1aa02a(0x465)](_0x51d42c),_0x50d934();});return;}if(_0x33b126['data']['eventID']===_0x51f469[_0x2913ad(0x3c7)]){const _0x4ac482=_0x33b126[_0x2913ad(0x1ad)];this['_fetchMissChangesets'](_0x4ac482)['then'](_0x405bde=>{const _0x20be1f=_0x2913ad;_0x8cefb6['next']({'cmd':I[_0x20be1f(0x26c)],'code':Vt['OK'],'routeKey':_0x4ac482[_0x20be1f(0x1ad)][_0x20be1f(0x2a1)],'routeType':'','data':{'eventID':_0x51f469[_0x20be1f(0x36b)],'data':{'changesets':_0x405bde}}});})[_0x2913ad(0x423)](_0x57aea7=>{const _0x50271d=_0x2913ad;this[_0x50271d(0x3a9)][_0x50271d(0x465)](_0x57aea7),_0x50d934();});return;}}_0x4f97f6['send'](xn(_0x33b126));},'close':()=>{const _0x49c6f4=_0x3f5b98;_0x4f97f6[_0x49c6f4(0x1c7)](),_0xae9266[_0x49c6f4(0x258)]();}},_0xa6e614;}async[_0x424a27(0x44d)](_0x4d99e4,_0x4a300d){const _0x1ace21=_0x424a27;var _0x35b3ef,_0x561a18;const {unitType:_0x3d109f,unitID:_0x566c77,changeset:_0xc0ff1c}=_0x4a300d['data'],_0x23880e={'unitID':_0x566c77,'memberID':_0x4d99e4[_0x1ace21(0x3af)],'type':_0x3d109f,'changeset':_0x98f6f9(_0xc0ff1c)},_0x2d30b2=this[_0x1ace21(0x279)][_0x1ace21(0x395)](Mn),_0x173037=this[_0x1ace21(0x279)][_0x1ace21(0x395)]($),_0x84b7fd=Fn((_0x561a18=(_0x35b3ef=_0x173037==null?void 0x0:_0x173037[_0x1ace21(0x1cc)])!=null?_0x35b3ef:_0x2d30b2)!=null?_0x561a18:An,_0x3d109f,_0x566c77);try{await this[_0x1ace21(0x373)][_0x1ace21(0x2b1)](_0x84b7fd,{'body':_0x23880e});}catch(_0x5d47b6){throw this[_0x1ace21(0x3a9)][_0x1ace21(0x465)](_0x1ace21(0x375),_0x1ace21(0x47a)),_0x5d47b6;}}async[_0x424a27(0x41c)](_0x229894){const _0x11564f=_0x424a27,{unitID:_0x596bc7,from:_0x588d04,to:_0x1c0c38,unitType:_0x9ab49d}=_0x229894[_0x11564f(0x1ad)];return(await this[_0x11564f(0x3ac)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x596bc7,'type':_0x9ab49d,'from':_0x588d04,'to':_0x1c0c38}))[_0x11564f(0x264)];}};Ct=Vn([Oe(0x0,_0x5a29b8(_0x170d5f)),Oe(0x1,_0x5a29b8(_0x1f8354)),Oe(0x2,_0x5992c0),Oe(0x3,_0x2030cd),Oe(0x4,_0x4be85b)],Ct);const Wn='collaboration_new_changeset';function Gn(_0x166221){const _0x239aa2=_0x424a27;return JSON['stringify'](_0x166221)[_0x239aa2(0xf6)];}class Vs{constructor(){const _0x44edcb=_0x424a27;l(this,_0x44edcb(0x237),new _0x10bfa5()),l(this,_0x44edcb(0x31c),this[_0x44edcb(0x237)][_0x44edcb(0x218)]());}[_0x424a27(0x2f0)](_0x3289ca){const _0x1cc783=_0x424a27;this[_0x1cc783(0x237)][_0x1cc783(0x23b)](_0x3289ca);}}var Yn=Object[_0x424a27(0x20a)],Kn=Object['getOwnPropertyDescriptor'],Xn=(_0x3e0e38,_0x4d114a,_0x2967a9,_0xc06ca1)=>{const _0x3a2014=_0x424a27;for(var _0x4d5e2f=_0xc06ca1>0x1?void 0x0:_0xc06ca1?Kn(_0x4d114a,_0x2967a9):_0x4d114a,_0x594445=_0x3e0e38[_0x3a2014(0xf6)]-0x1,_0x44a011;_0x594445>=0x0;_0x594445--)(_0x44a011=_0x3e0e38[_0x594445])&&(_0x4d5e2f=(_0xc06ca1?_0x44a011(_0x4d114a,_0x2967a9,_0x4d5e2f):_0x44a011(_0x4d5e2f))||_0x4d5e2f);return _0xc06ca1&&_0x4d5e2f&&Yn(_0x4d114a,_0x2967a9,_0x4d5e2f),_0x4d5e2f;},as=(_0x47ebc6,_0x4d4e63)=>(_0x12e9fa,_0x7ce4c6)=>_0x4d4e63(_0x12e9fa,_0x7ce4c6,_0x47ebc6);let ce=class extends _0x118ead{constructor(_0x4e7627,_0xe93f64){const _0x133dbe=_0x424a27;super(),l(this,_0x133dbe(0x3ae),new Map()),(this['_univerInstanceService']=_0x4e7627,this[_0x133dbe(0x17f)]=_0xe93f64,this[_0x133dbe(0x227)](_0x2fa5a0(_0x38e413(this[_0x133dbe(0x28f)][_0x133dbe(0x113)](_0x4d4554['UNIVER_SHEET'])[_0x133dbe(0x479)](_0x425c95(_0x194d42=>_0x194d42['getUnitId']())),this[_0x133dbe(0x28f)]['getTypeOfUnitDisposed$'](_0x4d4554[_0x133dbe(0x346)])[_0x133dbe(0x479)](_0x425c95(_0x3fe94d=>_0x3fe94d[_0x133dbe(0xf7)]())),this[_0x133dbe(0x28f)]['getTypeOfUnitDisposed$'](_0x4d4554[_0x133dbe(0x367)])[_0x133dbe(0x479)](_0x425c95(_0x34dbb0=>_0x34dbb0[_0x133dbe(0xf7)]())))[_0x133dbe(0x45f)](_0x44eb30=>this[_0x133dbe(0x1c6)](_0x44eb30)))));}[_0x424a27(0x1eb)](_0x21fe7c){const _0x28aa64=_0x424a27;this[_0x28aa64(0x17f)]['setCurrentUser'](_0x21fe7c);}[_0x424a27(0x206)](){const _0x172f02=_0x424a27;return this[_0x172f02(0x17f)][_0x172f02(0x206)]();}['updateMember'](_0x3cec00,_0x60ed27){const _0x4dc11a=_0x424a27;let _0x4d4b15=this[_0x4dc11a(0x3ae)]['get'](_0x3cec00);_0x4d4b15||(_0x4d4b15=new qn(),this[_0x4dc11a(0x3ae)][_0x4dc11a(0x3a3)](_0x3cec00,_0x4d4b15)),_0x4d4b15['updateMember'](_0x60ed27);}[_0x424a27(0x13b)](_0x2f6f8c,_0x44c9bb){const _0x5cf7c1=_0x424a27,_0x2d3793=this['_roomMembers'][_0x5cf7c1(0x310)](_0x2f6f8c);_0x2d3793&&_0x2d3793[_0x5cf7c1(0x13b)](_0x44c9bb);}[_0x424a27(0x224)](_0x317c12){return this['_roomMembers']['get'](_0x317c12);}[_0x424a27(0x11f)](_0x1b7bfc,_0x1c13d7){const _0x32d692=_0x424a27,_0x216db3=this[_0x32d692(0x3ae)][_0x32d692(0x310)](_0x1b7bfc);if(_0x216db3)return _0x216db3['getMember'](_0x1c13d7);}[_0x424a27(0x1c6)](_0x35184f){const _0x23dc3a=_0x424a27,_0x39e51c=this[_0x23dc3a(0x3ae)]['get'](_0x35184f);_0x39e51c&&(_0x39e51c[_0x23dc3a(0x258)](),this[_0x23dc3a(0x3ae)][_0x23dc3a(0x1c0)](_0x35184f));}[_0x424a27(0x258)](){const _0x1e0b07=_0x424a27;this[_0x1e0b07(0x3ae)][_0x1e0b07(0x204)](_0x4bad71=>_0x4bad71[_0x1e0b07(0x258)]()),this[_0x1e0b07(0x3ae)][_0x1e0b07(0x457)]();}};ce=Xn([as(0x0,_0x1528d5),as(0x1,_0x5a29b8(_0x3f8626))],ce);class qn extends _0x118ead{constructor(){const _0x457d48=_0x424a27;super(...arguments),l(this,_0x457d48(0x462),new Map());}['dispose'](){const _0x77f160=_0x424a27;this[_0x77f160(0x462)][_0x77f160(0x457)]();}[_0x424a27(0x243)](_0x3ea5a8){const _0x1c3c03=_0x424a27;this['_members'][_0x1c3c03(0x3a3)](_0x3ea5a8[_0x1c3c03(0x3af)],_0x3ea5a8);}[_0x424a27(0x13b)](_0x38ff13){this['_members']['delete'](_0x38ff13);}[_0x424a27(0x11f)](_0x5e278c){const _0x261b15=_0x424a27;return this['_members'][_0x261b15(0x310)](_0x5e278c);}}var Jn=Object[_0x424a27(0x20a)],zn=Object[_0x424a27(0x483)],Zn=(_0x5b4c97,_0x167db0,_0x989a23,_0xd06eea)=>{const _0x47e1c2=_0x424a27;for(var _0x16015e=_0xd06eea>0x1?void 0x0:_0xd06eea?zn(_0x167db0,_0x989a23):_0x167db0,_0x18cb2f=_0x5b4c97[_0x47e1c2(0xf6)]-0x1,_0x2da7b0;_0x18cb2f>=0x0;_0x18cb2f--)(_0x2da7b0=_0x5b4c97[_0x18cb2f])&&(_0x16015e=(_0xd06eea?_0x2da7b0(_0x167db0,_0x989a23,_0x16015e):_0x2da7b0(_0x16015e))||_0x16015e);return _0xd06eea&&_0x16015e&&Jn(_0x167db0,_0x989a23,_0x16015e),_0x16015e;},J=(_0x3e9829,_0x3515b0)=>(_0xe5d792,_0xb33f94)=>_0x3515b0(_0xe5d792,_0xb33f94,_0x3e9829),Y=(_0x15b685=>(_0x15b685[_0x15b685[_0x424a27(0x186)]=0x0]=_0x424a27(0x186),_0x15b685[_0x15b685[_0x424a27(0x1a0)]=0x1]=_0x424a27(0x1a0),_0x15b685[_0x15b685[_0x424a27(0x3ed)]=0x2]=_0x424a27(0x3ed),_0x15b685[_0x15b685[_0x424a27(0x347)]=0x3]=_0x424a27(0x347),_0x15b685))(Y||{});let bt=class extends _0x49569b{constructor(_0x104cc3,_0x3f7ee6,_0x29f024,_0x558ea8,_0x3fb860,_0x3fdc8,_0x3a3be3,_0x1e09cc,_0x4d2de6,_0x145c22){const _0x45291e=_0x424a27;super(),l(this,_0x45291e(0x1b2),new _0x9f2686(0x0)),l(this,_0x45291e(0x43f),this[_0x45291e(0x1b2)][_0x45291e(0x218)]()),l(this,_0x45291e(0x410),new _0x10bfa5()),l(this,_0x45291e(0x18b),this[_0x45291e(0x410)][_0x45291e(0x218)]()),l(this,_0x45291e(0x195)),l(this,_0x45291e(0x1d2)),l(this,_0x45291e(0x180)),l(this,_0x45291e(0x1bd),!0x1),l(this,'_telemetryInfo',null),(this[_0x45291e(0x231)]=_0x104cc3,this[_0x45291e(0x3a9)]=_0x29f024,this[_0x45291e(0x43d)]=_0x558ea8,this[_0x45291e(0x31d)]=_0x3fb860,this[_0x45291e(0x279)]=_0x3fdc8,this[_0x45291e(0x1fa)]=_0x3a3be3,this[_0x45291e(0x168)]=_0x1e09cc,this[_0x45291e(0x15f)]=_0x4d2de6,this[_0x45291e(0x2d7)]=_0x145c22,this[_0x45291e(0x1bd)]=!!this[_0x45291e(0x2d7)],_0x3f7ee6[_0x45291e(0x479)](_0x1406ee(this[_0x45291e(0x44c)]))['subscribe'](_0x1c7066=>{const _0x12e534=_0x45291e;var _0x41d5af;typeof _0x1c7066>'u'||(this['_socket']=_0x1c7066,_0x1c7066?(this[_0x12e534(0x191)](_0x1c7066),this['_socketMessageSubscription']=_0x1c7066[_0x12e534(0x478)][_0x12e534(0x45f)](_0x1da3d8=>{const _0x127532=_0x12e534;_0x1da3d8[_0x127532(0x3d6)]===this[_0x127532(0x231)]&&this[_0x127532(0xf9)](_0x1da3d8);})):(this[_0x12e534(0x1f5)](),this[_0x12e534(0x1b2)][_0x12e534(0x23b)](0x2),(_0x41d5af=this[_0x12e534(0x1d2)])==null||_0x41d5af[_0x12e534(0x3dd)](),this['_socketMessageSubscription']=null));}),this['disposeWithMe'](this['_beforeCloseService'][_0x45291e(0x16f)](()=>{const _0x5360e4=_0x45291e;var _0x148472;(_0x148472=this[_0x5360e4(0x195)])==null||_0x148472[_0x5360e4(0x2a6)]({'cmd':I[_0x5360e4(0x3d8)],'data':{'roomID':this['_unitID']}});})));}get[_0x424a27(0x471)](){const _0x53e5cc=_0x424a27;return this[_0x53e5cc(0x1b2)][_0x53e5cc(0x422)]();}[_0x424a27(0x247)](){var _0x4064b4,_0x4e65dc;return(_0x4e65dc=(_0x4064b4=this['_socket'])==null?void 0x0:_0x4064b4['memberID'])!=null?_0x4e65dc:null;}[_0x424a27(0x258)](){const _0x34e723=_0x424a27;super[_0x34e723(0x258)](),this[_0x34e723(0x44c)]['next'](),this[_0x34e723(0x44c)][_0x34e723(0x21a)]();}['close'](){const _0x768fb3=_0x424a27;var _0xc39f9d,_0x2368b5;this['_throwTelemetryCollaborationNewChangeset'](),(_0xc39f9d=this[_0x768fb3(0x195)])==null||_0xc39f9d[_0x768fb3(0x2a6)]({'cmd':I[_0x768fb3(0x3d8)],'data':{'roomID':this[_0x768fb3(0x231)]}}),(_0x2368b5=this['_socket'])==null||_0x2368b5[_0x768fb3(0x1c7)](),this[_0x768fb3(0x410)][_0x768fb3(0x21a)](),this['_sessionStatus$'][_0x768fb3(0x21a)](),this[_0x768fb3(0x258)]();}[_0x424a27(0xf9)](_0x271002){const _0x5dd3b1=_0x424a27;_0x271002[_0x5dd3b1(0x208)]===I[_0x5dd3b1(0x24f)]?this[_0x5dd3b1(0x18f)](_0x271002):_0x271002[_0x5dd3b1(0x208)]===I[_0x5dd3b1(0x26c)]&&this[_0x5dd3b1(0x257)](_0x271002);}['_joinRoom'](_0x959972){const _0x380df6=_0x424a27;this[_0x380df6(0x1b2)][_0x380df6(0x23b)](0x1),_0x959972[_0x380df6(0x2a6)]({'cmd':I[_0x380df6(0x24f)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x424a27(0x18f)](_0x21bf0d){const _0x55bbe5=_0x424a27;var _0x43184f;if(_0x21bf0d[_0x55bbe5(0x1a3)]===Vt[_0x55bbe5(0x328)]){this['_messageService'][_0x55bbe5(0x439)]({'type':_0x141b61['Warning'],'content':this[_0x55bbe5(0x1fa)]['t'](_0x55bbe5(0x26b))}),this[_0x55bbe5(0x1b2)][_0x55bbe5(0x23b)](0x2);return;}this[_0x55bbe5(0x1b2)][_0x55bbe5(0x23b)](0x3);const _0x26e7f0=(_0x43184f=_0x21bf0d[_0x55bbe5(0x1ad)][_0x55bbe5(0x1c5)][this[_0x55bbe5(0x231)]])==null?void 0x0:_0x43184f[_0x55bbe5(0x295)];_0x26e7f0&&_0x26e7f0[_0x55bbe5(0x204)](_0x4bc46f=>this[_0x55bbe5(0x168)]['updateMember'](this['_unitID'],_0x4bc46f));}[_0x424a27(0x257)](_0x3f2da0){const _0x2263df=_0x424a27;try{const _0x981184=_0x3f2da0[_0x2263df(0x1ad)];switch(_0x981184['eventID']){case _0x51f469[_0x2263df(0x41b)]:this[_0x2263df(0xf8)](_0x981184),this[_0x2263df(0x410)][_0x2263df(0x23b)](_0x981184);break;case _0x51f469['USERS_LEAVE']:this[_0x2263df(0x1cd)](_0x981184),this[_0x2263df(0x410)]['next'](_0x981184);break;case _0x51f469[_0x2263df(0x1fc)]:case _0x51f469[_0x2263df(0x160)]:this[_0x2263df(0x368)](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x2263df(0x23b)](_0x981184);break;case _0x51f469[_0x2263df(0x3bd)]:this['_logService'][_0x2263df(0x465)](_0x2263df(0x298)+JSON['stringify'](_0x981184)),this['_event$'][_0x2263df(0x23b)](_0x981184);break;case _0x51f469[_0x2263df(0x2f9)]:this[_0x2263df(0x15f)]['onCommentUpdate'](_0x981184['data']),this['_event$']['next'](_0x981184);break;default:this['_event$']['next'](_0x981184);}}catch(_0x4e5540){this['_logService'][_0x2263df(0x465)](_0x4e5540,_0x3f2da0);}}['_onUserJoin'](_0x316c42){const _0x2325e6=_0x424a27;this['_memberService']['updateMember'](this['_unitID'],_0x316c42[_0x2325e6(0x1ad)]);}[_0x424a27(0x1cd)](_0x277c67){const _0x175a4e=_0x424a27;this[_0x175a4e(0x168)]['removeMember'](this[_0x175a4e(0x231)],_0x277c67[_0x175a4e(0x1ad)][_0x175a4e(0x3af)]);}async[_0x424a27(0x2a6)](_0x23cee6,_0x1c4f87){const _0x558476=_0x424a27;if(this[_0x558476(0x471)]!==0x3||!this[_0x558476(0x195)])throw new Error(_0x558476(0x2b4));try{_0x23cee6[_0x558476(0x14d)]===_0x51f469[_0x558476(0x3f1)]&&(this[_0x558476(0x245)](),this[_0x558476(0x2cf)](_0x23cee6)),this[_0x558476(0x195)][_0x558476(0x2a6)]({'cmd':I[_0x558476(0x215)],'routeKey':_0x1c4f87,'routeType':'','data':_0x23cee6});}catch(_0x42c75e){this[_0x558476(0x3a9)][_0x558476(0x465)](_0x42c75e);}}[_0x424a27(0x245)](){const _0x2d85c7=_0x424a27;var _0x41627c;this[_0x2d85c7(0x180)]=window['setTimeout'](()=>{const _0x175e32=_0x2d85c7;this[_0x175e32(0x180)]=null,this[_0x175e32(0x31d)][_0x175e32(0x439)]({'type':_0x141b61[_0x175e32(0x293)],'content':this[_0x175e32(0x1fa)]['t'](_0x175e32(0x150))});},(_0x41627c=this[_0x2d85c7(0x279)][_0x2d85c7(0x395)](js))!=null?_0x41627c:Hs);}[_0x424a27(0x240)](){const _0x24f8d6=_0x424a27;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x24f8d6(0x180)]),this[_0x24f8d6(0x180)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x155647){const _0x342dd9=_0x424a27;if(!this['_shouldReportTelemetry'])return;const {data:_0x909639}=_0x155647,{unitID:_0x34d75d,changeset:_0x3d4fcd}=_0x909639,{mutations:_0x2344cd,type:_0x4049a8}=_0x3d4fcd;this[_0x342dd9(0x24a)]={'unitId':_0x34d75d,'type':_0x4049a8,'startTime':performance[_0x342dd9(0x207)](),'stopTime':0x0,'duration':0x0,'size':Gn(_0x2344cd)};}[_0x424a27(0x368)](){const _0x1994a6=_0x424a27;if(this['_shouldReportTelemetry']){if(!this[_0x1994a6(0x24a)]){this[_0x1994a6(0x3a9)][_0x1994a6(0x465)]('[CollaborationSession]','telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x1994a6(0x24a)]['stopTime']=performance[_0x1994a6(0x207)](),this['_telemetryInfo']['duration']=this[_0x1994a6(0x24a)][_0x1994a6(0x1a9)]-this[_0x1994a6(0x24a)][_0x1994a6(0x392)],this[_0x1994a6(0x2d7)][_0x1994a6(0x20b)](Wn,this[_0x1994a6(0x24a)]),this['_telemetryInfo']=null;}}[_0x424a27(0x1f5)](){const _0x34724c=_0x424a27;this[_0x34724c(0x24a)]=null;}};bt=Zn([J(0x2,_0x2030cd),J(0x3,_0x49abab),J(0x4,_0x306a76),J(0x5,_0x5992c0),J(0x6,_0x5a29b8(_0x34277f)),J(0x7,_0x5a29b8(ce)),J(0x8,_0x5a29b8(Vs)),J(0x9,_0x2c7ffc(_0x5b0312))],bt);var Qn=Object[_0x424a27(0x20a)],er=Object[_0x424a27(0x483)],tr=(_0x99f40c,_0x5b0172,_0x324d5e,_0xdc7797)=>{const _0x1fda94=_0x424a27;for(var _0x4eab9f=_0xdc7797>0x1?void 0x0:_0xdc7797?er(_0x5b0172,_0x324d5e):_0x5b0172,_0x30d272=_0x99f40c[_0x1fda94(0xf6)]-0x1,_0x1db9a2;_0x30d272>=0x0;_0x30d272--)(_0x1db9a2=_0x99f40c[_0x30d272])&&(_0x4eab9f=(_0xdc7797?_0x1db9a2(_0x5b0172,_0x324d5e,_0x4eab9f):_0x1db9a2(_0x4eab9f))||_0x4eab9f);return _0xdc7797&&_0x4eab9f&&Qn(_0x5b0172,_0x324d5e,_0x4eab9f),_0x4eab9f;},me=(_0x6646a6,_0x10fc14)=>(_0x3a0c58,_0x563292)=>_0x10fc14(_0x3a0c58,_0x563292,_0x6646a6);let he=class extends _0x118ead{constructor(_0x255340,_0x5e5abf,_0xea71ee,_0x5b55c0,_0x3df837,_0xfacd99){const _0x27ba63=_0x424a27;super(),l(this,_0x27ba63(0x30a),new _0x9f2686(void 0x0)),l(this,'socket$',this['_socket$'][_0x27ba63(0x218)]()),l(this,'_candidateSocket',null),l(this,'_sessions',new Map()),l(this,_0x27ba63(0x274),new _0x9f2686(Y[_0x27ba63(0x186)])),l(this,'status$',this[_0x27ba63(0x274)][_0x27ba63(0x218)]()),l(this,'_socketReady',!0x1),l(this,'_retryConnectingTimer'),l(this,_0x27ba63(0x2fc),0x0),l(this,'_sendHeartbeatTimer'),l(this,_0x27ba63(0x141)),(this['_injector']=_0x255340,this[_0x27ba63(0x1fa)]=_0x5e5abf,this[_0x27ba63(0x31d)]=_0xea71ee,this[_0x27ba63(0x3a9)]=_0x5b55c0,this[_0x27ba63(0x279)]=_0x3df837,this[_0x27ba63(0x16c)]=_0xfacd99,this[_0x27ba63(0x404)]());}get['_socket'](){const _0x3f2112=_0x424a27;return this[_0x3f2112(0x30a)][_0x3f2112(0x422)]();}[_0x424a27(0x404)](){const _0x18b675=_0x424a27;this['_listenToOfflineEvent'](),this[_0x18b675(0x33f)]();}[_0x424a27(0x258)](){const _0x40db04=_0x424a27;super[_0x40db04(0x258)](),this[_0x40db04(0x21d)]['forEach'](_0x460097=>_0x460097[_0x40db04(0x258)]()),this[_0x40db04(0x21d)]['clear'](),this[_0x40db04(0x274)][_0x40db04(0x21a)]();}async[_0x424a27(0x2b7)](_0x5ee550){const _0x2fe11a=_0x424a27;if(this[_0x2fe11a(0x21d)][_0x2fe11a(0x3e1)](_0x5ee550))return this[_0x2fe11a(0x21d)][_0x2fe11a(0x310)](_0x5ee550);this[_0x2fe11a(0x46a)]();const _0x43bec2=this[_0x2fe11a(0x34f)][_0x2fe11a(0x3a0)](bt,_0x5ee550,this[_0x2fe11a(0x30a)][_0x2fe11a(0x218)]());return this[_0x2fe11a(0x21d)][_0x2fe11a(0x3a3)](_0x5ee550,_0x43bec2),_0x43bec2;}['closeSession'](_0x48b568){const _0x4d8b49=_0x424a27;var _0x5c8cae;const _0x34fe53=this[_0x4d8b49(0x21d)][_0x4d8b49(0x310)](_0x48b568);_0x34fe53&&(this['_sessions'][_0x4d8b49(0x1c0)](_0x48b568),_0x34fe53[_0x4d8b49(0x1c7)]()),this[_0x4d8b49(0x21d)]['size']||(_0x5c8cae=this['_socket'])==null||_0x5c8cae[_0x4d8b49(0x1c7)]();}[_0x424a27(0x161)](){const _0x1024ef=_0x424a27;this['_retryCount']=0x0,this[_0x1024ef(0x41f)]!=null&&(clearTimeout(this[_0x1024ef(0x41f)]),this['_retryConnectingTimer']=null),this['_tryReconnect']();}[_0x424a27(0x407)](){const _0x2e86ce=_0x424a27;var _0x31ccd9,_0x5a2703;const _0x34179a=this[_0x2e86ce(0x279)]['getConfig'](Tn),_0x383844=this[_0x2e86ce(0x279)]['getConfig']($),_0x4abf09=(_0x5a2703=(_0x31ccd9=_0x383844==null?void 0x0:_0x383844['collabWebSocketUrl'])!=null?_0x31ccd9:_0x34179a)!=null?_0x5a2703:Rn,_0x526248=this[_0x2e86ce(0x16c)]['createSocket'](_0x4abf09);return this[_0x2e86ce(0x194)]=_0x526248,_0x526248;}[_0x424a27(0x46a)](){const _0x31af0c=_0x424a27;var _0x45f5ca,_0x3eb4f8;try{const _0x1dbab8=(_0x3eb4f8=(_0x45f5ca=this[_0x31af0c(0x195)])!=null?_0x45f5ca:this['_candidateSocket'])!=null?_0x3eb4f8:this[_0x31af0c(0x407)]();if(_0x1dbab8){const _0x14a149=_0x1dbab8['send'];_0x1dbab8[_0x31af0c(0x2a6)]=_0x268f3e=>(this[_0x31af0c(0x28c)](),_0x14a149[_0x31af0c(0x3c6)](_0x1dbab8,[_0x268f3e])),_0x1dbab8['message$'][_0x31af0c(0x45f)](_0x1b5b3c=>this[_0x31af0c(0x353)](_0x1dbab8,_0x1b5b3c)),_0x1dbab8[_0x31af0c(0x102)][_0x31af0c(0x479)](_0x1104da(0x1))[_0x31af0c(0x45f)](_0x4515c7=>this[_0x31af0c(0x3a9)][_0x31af0c(0x465)](_0x31af0c(0x16e),_0x4515c7)),_0x1dbab8[_0x31af0c(0x1c3)][_0x31af0c(0x479)](_0x1104da(0x1))['subscribe'](()=>{const _0x539cfc=_0x31af0c;this[_0x539cfc(0x3d2)](_0x1dbab8);}),_0x1dbab8['close$'][_0x31af0c(0x479)](_0x1104da(0x1))[_0x31af0c(0x45f)](_0x44fa6f=>{const _0xd595bb=_0x31af0c;this[_0xd595bb(0x3a9)][_0xd595bb(0x1f4)]('[CollaborationSessionService]','socket\x20close',_0x44fa6f),this['_onConnectionFailed']();});}}catch(_0xc48ec6){this[_0x31af0c(0x3a9)][_0x31af0c(0x465)](_0xc48ec6),this[_0x31af0c(0x3b7)]();}}[_0x424a27(0x3d2)](_0xbbdd96){const _0x30ae5f=_0x424a27;this['_logService'][_0x30ae5f(0x1f4)](_0x30ae5f(0x163),'socket\x20open.'),_0xbbdd96[_0x30ae5f(0x2a6)]({'cmd':I[_0x30ae5f(0x1e0)]}),this[_0x30ae5f(0x28c)]();}[_0x424a27(0x2c0)](){window['addEventListener']('offline',()=>this['_onOffline']());}['_onOffline'](){const _0x46cec9=_0x424a27;this['_socketReady']=!0x1,this[_0x46cec9(0x194)]=null,this[_0x46cec9(0x274)][_0x46cec9(0x23b)](Y[_0x46cec9(0x3ed)]),this[_0x46cec9(0x30a)][_0x46cec9(0x23b)](null),this['_clearTimeoutTimer'](),this[_0x46cec9(0x25a)]();}[_0x424a27(0x3b7)](){const _0x35e433=_0x424a27;var _0x573876;this[_0x35e433(0x197)](),this[_0x35e433(0x2fc)]<((_0x573876=this[_0x35e433(0x279)][_0x35e433(0x395)](Pn))!=null?_0x573876:yn)?(this[_0x35e433(0x31d)][_0x35e433(0x439)]({'key':'collaboration-session-retry','type':_0x141b61['Warning'],'content':this['_localeService']['t'](_0x35e433(0x289))}),this[_0x35e433(0x235)]()):this[_0x35e433(0x31d)][_0x35e433(0x439)]({'key':_0x35e433(0x1bc),'type':_0x141b61['Error'],'content':this[_0x35e433(0x1fa)]['t'](_0x35e433(0x1b1))});}[_0x424a27(0x33f)](){const _0x959687=_0x424a27,_0xd423d9=()=>{const _0x153078=_0xaf12;this[_0x153078(0x195)]||this[_0x153078(0x161)]();},_0x5ac6c1=()=>{const _0x14bff7=_0xaf12;this[_0x14bff7(0x195)]||document[_0x14bff7(0x389)]===_0x14bff7(0x378)||this[_0x14bff7(0x161)]();};window[_0x959687(0x1d4)]('online',_0xd423d9),document['addEventListener'](_0x959687(0x2b2),_0x5ac6c1);}[_0x424a27(0x235)](){const _0x3546c6=_0x424a27;var _0x358269;const _0x1ad47b=this['_retryCount'],_0x2e3f16=this[_0x3546c6(0x279)][_0x3546c6(0x395)]($),_0x3cfc06=_0x1ad47b===0x0?0x0:((_0x358269=_0x2e3f16==null?void 0x0:_0x2e3f16[_0x3546c6(0x343)])!=null?_0x358269:wn)*0x2**_0x1ad47b;this['_retryConnectingTimer']=window['setTimeout'](()=>{const _0x1b46b7=_0x3546c6;clearTimeout(this[_0x1b46b7(0x41f)]),this[_0x1b46b7(0x41f)]=null,this['_tryEnsureSocket']();},_0x3cfc06),this[_0x3546c6(0x2fc)]+=0x1;}[_0x424a27(0x353)](_0x3b4853,_0x5bcc9c){const _0x2021bd=_0x424a27,{cmd:_0x55555c}=_0x5bcc9c;_0x55555c===I[_0x2021bd(0x1e0)]&&!this[_0x2021bd(0x48c)]&&(_0x3b4853[_0x2021bd(0x3af)]=_0x5bcc9c[_0x2021bd(0x1ad)][_0x2021bd(0x3af)],this['_socket$']['next'](_0x3b4853),this[_0x2021bd(0x274)][_0x2021bd(0x23b)](Y[_0x2021bd(0x347)]),this[_0x2021bd(0x48c)]=!0x0,this[_0x2021bd(0x194)]=null),_0x55555c===I[_0x2021bd(0x3e9)]&&this[_0x2021bd(0x13a)](),this[_0x2021bd(0x28c)]();}['_rescheduleHeartbeat'](){const _0x584195=_0x424a27;var _0x76b1dd;this[_0x584195(0x25a)](),this[_0x584195(0x120)]=window[_0x584195(0x45c)](()=>this[_0x584195(0x1fb)](),(_0x76b1dd=this['_configService'][_0x584195(0x395)](On))!=null?_0x76b1dd:Dn);}[_0x424a27(0x1fb)](){const _0x197f4b=_0x424a27;this[_0x197f4b(0x195)][_0x197f4b(0x2a6)]({'cmd':I['HEARTBEAT']}),this[_0x197f4b(0x3fd)]();}[_0x424a27(0x3fd)](){const _0x1b038b=_0x424a27;var _0x335831;this['_timeoutTimer']=window[_0x1b038b(0x45c)](()=>this[_0x1b038b(0x3b7)](),(_0x335831=this[_0x1b038b(0x279)][_0x1b038b(0x395)](js))!=null?_0x335831:Hs);}[_0x424a27(0x25a)](){const _0x56813e=_0x424a27;this[_0x56813e(0x120)]!=null&&(clearTimeout(this[_0x56813e(0x120)]),this[_0x56813e(0x120)]=null);}[_0x424a27(0x13a)](){const _0x36877c=_0x424a27;this[_0x36877c(0x141)]!=null&&(clearTimeout(this[_0x36877c(0x141)]),this[_0x36877c(0x141)]=null);}};he=tr([me(0x0,_0x5a29b8(_0x5503e4)),me(0x1,_0x5a29b8(_0x34277f)),me(0x2,_0x306a76),me(0x3,_0x2030cd),me(0x4,_0x5992c0),me(0x5,Bs)],he);var T=[];for(var ct=0x0;ct<0x100;++ct)T[_0x424a27(0x246)]((ct+0x100)['toString'](0x10)[_0x424a27(0x1a7)](0x1));function sr(_0x449f7b,_0x461ccc=0x0){const _0x46f40e=_0x424a27;return(T[_0x449f7b[_0x461ccc+0x0]]+T[_0x449f7b[_0x461ccc+0x1]]+T[_0x449f7b[_0x461ccc+0x2]]+T[_0x449f7b[_0x461ccc+0x3]]+'-'+T[_0x449f7b[_0x461ccc+0x4]]+T[_0x449f7b[_0x461ccc+0x5]]+'-'+T[_0x449f7b[_0x461ccc+0x6]]+T[_0x449f7b[_0x461ccc+0x7]]+'-'+T[_0x449f7b[_0x461ccc+0x8]]+T[_0x449f7b[_0x461ccc+0x9]]+'-'+T[_0x449f7b[_0x461ccc+0xa]]+T[_0x449f7b[_0x461ccc+0xb]]+T[_0x449f7b[_0x461ccc+0xc]]+T[_0x449f7b[_0x461ccc+0xd]]+T[_0x449f7b[_0x461ccc+0xe]]+T[_0x449f7b[_0x461ccc+0xf]])[_0x46f40e(0x213)]();}var xe,ir=new Uint8Array(0x10);function nr(){const _0x21ffab=_0x424a27;if(!xe&&(xe=typeof crypto<'u'&&crypto[_0x21ffab(0x412)]&&crypto[_0x21ffab(0x412)][_0x21ffab(0x3e5)](crypto),!xe))throw new Error(_0x21ffab(0x184));return xe(ir);}var rr=typeof crypto<'u'&&crypto[_0x424a27(0x30e)]&&crypto['randomUUID'][_0x424a27(0x3e5)](crypto);const cs={'randomUUID':rr};function or(_0x3036b0,_0x4ed1b4,_0x29e90a){const _0x385c0e=_0x424a27;if(cs[_0x385c0e(0x30e)]&&!_0x4ed1b4&&!_0x3036b0)return cs[_0x385c0e(0x30e)]();_0x3036b0=_0x3036b0||{};var _0x1205d9=_0x3036b0[_0x385c0e(0x162)]||(_0x3036b0[_0x385c0e(0xfb)]||nr)();return _0x1205d9[0x6]=_0x1205d9[0x6]&0xf|0x40,_0x1205d9[0x8]=_0x1205d9[0x8]&0x3f|0x80,sr(_0x1205d9);}var ar=Object[_0x424a27(0x20a)],cr=Object['getOwnPropertyDescriptor'],hr=(_0x26586e,_0x6a610e,_0x319256,_0x39e907)=>{const _0x2ec3f9=_0x424a27;for(var _0x1e8d0e=_0x39e907>0x1?void 0x0:_0x39e907?cr(_0x6a610e,_0x319256):_0x6a610e,_0x393585=_0x26586e[_0x2ec3f9(0xf6)]-0x1,_0x3a7559;_0x393585>=0x0;_0x393585--)(_0x3a7559=_0x26586e[_0x393585])&&(_0x1e8d0e=(_0x39e907?_0x3a7559(_0x6a610e,_0x319256,_0x1e8d0e):_0x3a7559(_0x1e8d0e))||_0x1e8d0e);return _0x39e907&&_0x1e8d0e&&ar(_0x6a610e,_0x319256,_0x1e8d0e),_0x1e8d0e;},ht=(_0xba8923,_0x10f0c6)=>(_0x1eb8ca,_0x380492)=>_0x10f0c6(_0x1eb8ca,_0x380492,_0xba8923);let Ye=class{constructor(_0x56edca,_0x2ac28d,_0x55b268){const _0x18930a=_0x424a27;this[_0x18930a(0x34f)]=_0x56edca,this[_0x18930a(0x436)]=_0x2ac28d,this[_0x18930a(0x482)]=_0x55b268;}[_0x424a27(0x3d7)](_0x39cbe6){const _0x1a3e9d=_0x424a27;this[_0x1a3e9d(0x17c)](_0x39cbe6),this[_0x1a3e9d(0x142)](_0x39cbe6);}[_0x424a27(0x33a)](_0x52c639){const _0x5bdf2f=_0x424a27,{unitID:_0x54a855}=_0x52c639,_0x447b07=this[_0x5bdf2f(0x482)][_0x5bdf2f(0x169)](_0x54a855)[_0x5bdf2f(0x41e)](_0x2f0bbb),{redoCache:_0x12a436}=_0x447b07[_0x5bdf2f(0x33b)]();if(_0x12a436[_0x5bdf2f(0xf6)]===0x0)return _0x52c639;let _0x398835=_0x4f1501[_0x5bdf2f(0x287)](_0x52c639[_0x5bdf2f(0x14b)][0x0]);for(let _0x266aa5=0x0;_0x266aa5<_0x12a436[_0x5bdf2f(0xf6)];_0x266aa5++){const _0x4a8cf9={'id':'doc.mutation.rich-text-editing','params':{..._0x12a436[_0x266aa5]}},_0x2ce32a=this['_transformService'][_0x5bdf2f(0x23a)](_0x398835,_0x4a8cf9,!0x1);if(_0x17a5cf(_0x2ce32a))throw _0x2ce32a[_0x5bdf2f(0x465)];_0x398835=_0x2ce32a[_0x5bdf2f(0x276)];}return{..._0x4f1501['deepClone'](_0x52c639),'mutations':[_0x398835]};}[_0x424a27(0x17c)](_0x2a6ba6){const _0x47a847=_0x424a27,{unitID:_0x549c79}=_0x2a6ba6,_0x12ba5f=this[_0x47a847(0x482)][_0x47a847(0x169)](_0x549c79)[_0x47a847(0x41e)](_0x2f0bbb),{undoCache:_0x1a6eb6,redoCache:_0x53c6b3}=_0x12ba5f[_0x47a847(0x33b)]();if(_0x1a6eb6[_0x47a847(0xf6)]===0x0||_0x53c6b3[_0x47a847(0xf6)]===0x0)return;const _0x477d8c=[],_0x3642d8=[];let _0x1f3e18=_0x4f1501[_0x47a847(0x287)](_0x2a6ba6[_0x47a847(0x14b)][0x0]),_0x4d18a8=_0x4f1501[_0x47a847(0x287)](_0x2a6ba6['mutations'][0x0]);for(let _0x2a3cb3=_0x1a6eb6[_0x47a847(0xf6)]-0x1;_0x2a3cb3>=0x0;_0x2a3cb3--){const _0x1ff1d6={'id':_0x47a847(0x429),'params':{..._0x1a6eb6[_0x2a3cb3]}},_0x142dc9={'id':_0x47a847(0x429),'params':{..._0x53c6b3[_0x2a3cb3]}},_0x57525c=this[_0x47a847(0x436)]['transformMutation'](_0x1f3e18,_0x1ff1d6,!0x1),_0x49267a=this['_transformService'][_0x47a847(0x23a)](_0x4d18a8,_0x142dc9,!0x1);if(_0x17a5cf(_0x57525c))throw _0x57525c[_0x47a847(0x465)];if(_0x17a5cf(_0x49267a))throw _0x49267a[_0x47a847(0x465)];_0x477d8c['unshift'](_0x57525c['m2Prime'][_0x47a847(0x42b)]),_0x3642d8['unshift'](_0x49267a[_0x47a847(0x3a4)][_0x47a847(0x42b)]),_0x1f3e18=_0x57525c[_0x47a847(0x276)],_0x4d18a8=_0x49267a[_0x47a847(0x276)];}_0x12ba5f[_0x47a847(0x3e4)]({'undoCache':_0x477d8c,'redoCache':_0x3642d8});}[_0x424a27(0x142)](_0x340d5e){const _0x24967e=_0x424a27,{unitID:_0x100f53}=_0x340d5e,_0x300c0=this[_0x24967e(0x482)]['getRenderById'](_0x100f53)[_0x24967e(0x41e)](_0x2f0bbb),_0x4e29ff=_0x300c0[_0x24967e(0x123)]();if(_0x4e29ff==null)return;const _0x19c19c=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x340d5e[_0x24967e(0x2a1)],'actions':null,'textRanges':[_0x4e29ff]}}],_0x1f82b6=this[_0x24967e(0x436)][_0x24967e(0x456)](_0x340d5e,_0x19c19c);if(!_0x1c6d2b(_0x1f82b6))throw _0x1f82b6[_0x24967e(0x465)];const _0x4c7666=_0x1f82b6[_0x24967e(0x3a4)][0x0][_0x24967e(0x42b)][_0x24967e(0x27d)];Array['isArray'](_0x4c7666)&&_0x4c7666[_0x24967e(0xf6)]&&_0x300c0[_0x24967e(0x185)](_0x4c7666[0x0]);}};Ye=hr([ht(0x0,_0x5a29b8(_0x5503e4)),ht(0x1,_0x5edf81),ht(0x2,_0x58909f)],Ye);var lr=Object[_0x424a27(0x20a)],_r=Object[_0x424a27(0x483)],ur=(_0x35ad9f,_0x2d8506,_0x18a2c7,_0xa83f0)=>{const _0x4146a0=_0x424a27;for(var _0x29b59d=_0xa83f0>0x1?void 0x0:_0xa83f0?_r(_0x2d8506,_0x18a2c7):_0x2d8506,_0x24c552=_0x35ad9f[_0x4146a0(0xf6)]-0x1,_0x5b9b68;_0x24c552>=0x0;_0x24c552--)(_0x5b9b68=_0x35ad9f[_0x24c552])&&(_0x29b59d=(_0xa83f0?_0x5b9b68(_0x2d8506,_0x18a2c7,_0x29b59d):_0x5b9b68(_0x29b59d))||_0x29b59d);return _0xa83f0&&_0x29b59d&&lr(_0x2d8506,_0x18a2c7,_0x29b59d),_0x29b59d;},De=(_0x5dfc81,_0x18b66d)=>(_0x1779e0,_0xb62555)=>_0x18b66d(_0x1779e0,_0xb62555,_0x5dfc81);let w=class extends _0x118ead{constructor(_0x340800,_0x42b623,_0x542605,_0x4266e2,_0x3d16b0){const _0x415067=_0x424a27;super(),l(this,'_cachedData',new Map()),l(this,_0x415067(0x15c),new Map()),l(this,_0x415067(0x1e5),!0x1),(this['_configService']=_0x340800,this['_localStorageService']=_0x42b623,this[_0x415067(0x43d)]=_0x542605,this[_0x415067(0x1fa)]=_0x4266e2,this['_revisionService']=_0x3d16b0,this[_0x415067(0x154)]());}['disableLocalCache'](){const _0xbf0a38=_0x424a27;this[_0xbf0a38(0x1e5)]=!0x0;}[_0x424a27(0x394)](){const _0x2d90b7=_0x424a27;this[_0x2d90b7(0x1e5)]=!0x1;}[_0x424a27(0x258)](){const _0x13f654=_0x424a27;this['exhaustSavingTask']()[_0x13f654(0x357)](()=>super['dispose']());}async['loadOfflineData'](_0x5efb70){const _0x1e6c4a=_0x424a27;return this[_0x1e6c4a(0x1e5)]?null:this[_0x1e6c4a(0x39e)][_0x1e6c4a(0x48f)](hs(_0x5efb70));}async[_0x424a27(0x1b3)](_0xe86f55,_0x5232ef){const _0x36466b=_0x424a27;return!!this[_0x36466b(0x39e)][_0x36466b(0x225)](_0xe86f55,_0x5232ef);}[_0x424a27(0x20c)](_0x2a3e2f,_0x4598a2,_0x13d163,_0x584558){const _0x148fc4=_0x424a27,_0x47c008=this[_0x148fc4(0x15a)][_0x148fc4(0x1e8)](_0x2a3e2f);this['_cachedData']['set'](_0x2a3e2f,{'unitID':_0x2a3e2f,'type':_0x4598a2,'awaitingChangeset':_0x13d163,'mutations':_0x584558,'rev':_0x47c008}),this[_0x148fc4(0x15c)][_0x148fc4(0x3e1)](_0x2a3e2f)||this[_0x148fc4(0x21b)](_0x2a3e2f);}[_0x424a27(0x21b)](_0x4634aa){const _0x306d40=_0x424a27,_0xb64170=this[_0x306d40(0x355)]();_0xb64170===0x0?this[_0x306d40(0x369)](_0x4634aa):this[_0x306d40(0x15c)][_0x306d40(0x3a3)](_0x4634aa,setTimeout(()=>this[_0x306d40(0x369)](_0x4634aa),_0xb64170));}[_0x424a27(0x355)](){const _0x52d4eb=_0x424a27;var _0x356090;return(_0x356090=this[_0x52d4eb(0x279)][_0x52d4eb(0x395)](Un))!=null?_0x356090:Nn;}['_saveCache'](_0x518b1f){const _0x562e72=_0x424a27,_0x42b936=this['_saveTaskMap'][_0x562e72(0x310)](_0x518b1f);return _0x42b936!==void 0x0&&window[_0x562e72(0x3ad)](_0x42b936),this[_0x562e72(0x39e)]['setItem'](hs(_0x518b1f),this['_cachedData'][_0x562e72(0x310)](_0x518b1f))[_0x562e72(0x357)](()=>this[_0x562e72(0x15c)][_0x562e72(0x1c0)](_0x518b1f));}async['exhaustSavingTask'](){const _0x9080=_0x424a27,_0x12bb0e=[];this['_saveTaskMap'][_0x9080(0x204)]((_0x5cbd3e,_0x2ea363)=>{const _0x4ee9ac=_0x9080;window[_0x4ee9ac(0x3ad)](_0x5cbd3e),_0x12bb0e[_0x4ee9ac(0x246)](this[_0x4ee9ac(0x369)](_0x2ea363)[_0x4ee9ac(0x357)](()=>{const _0x4bf61a=_0x4ee9ac;this[_0x4bf61a(0x15c)]['delete'](_0x2ea363);}));}),await Promise['all'](_0x12bb0e);}[_0x424a27(0x154)](){const _0x54132a=_0x424a27;this[_0x54132a(0x227)](this[_0x54132a(0x43d)][_0x54132a(0x2c7)](()=>{const _0x529e72=_0x54132a;if(this[_0x529e72(0x15c)][_0x529e72(0x296)])return this[_0x529e72(0x1fa)]['t'](_0x529e72(0x39d));}));}};w=ur([De(0x0,_0x5992c0),De(0x1,_0x1f51c6),De(0x2,_0x49abab),De(0x3,_0x5a29b8(_0x34277f)),De(0x4,_0x5a29b8(_0x1fd8e1))],w);function hs(_0xad4eba){const _0x3ac6b6=_0x424a27;return _0x3ac6b6(0x396)+_0xad4eba;}var dr=Object[_0x424a27(0x20a)],mr=Object[_0x424a27(0x483)],fr=(_0x18d976,_0x138a7d,_0x375fc3,_0x25783a)=>{const _0xaf7016=_0x424a27;for(var _0x14a87c=_0x25783a>0x1?void 0x0:_0x25783a?mr(_0x138a7d,_0x375fc3):_0x138a7d,_0x4f2f9b=_0x18d976[_0xaf7016(0xf6)]-0x1,_0x537b9f;_0x4f2f9b>=0x0;_0x4f2f9b--)(_0x537b9f=_0x18d976[_0x4f2f9b])&&(_0x14a87c=(_0x25783a?_0x537b9f(_0x138a7d,_0x375fc3,_0x14a87c):_0x537b9f(_0x14a87c))||_0x14a87c);return _0x25783a&&_0x14a87c&&dr(_0x138a7d,_0x375fc3,_0x14a87c),_0x14a87c;},lt=(_0x2f5348,_0x269a24)=>(_0x176bf9,_0x7182f3)=>_0x269a24(_0x176bf9,_0x7182f3,_0x2f5348);function gr(_0x50f9b8){const _0x2d52bc=_0x424a27,{unitID:_0x46d97f,mutations:_0x3ba49b}=_0x50f9b8;return{'unitId':_0x46d97f,'subUnitId':_0x3ba49b[0x0][_0x2d52bc(0x42b)]['subUnitId']};}let Ke=class{constructor(_0x33eb42,_0x5e599f,_0xe52536){const _0x511427=_0x424a27;this['_injector']=_0x33eb42,this[_0x511427(0x436)]=_0x5e599f,this['_instanceService']=_0xe52536;}[_0x424a27(0x3f3)](_0x51570b){const _0x3a8a2b=_0x424a27;var _0xb9823f,_0x3844a5,_0x1ef6e2,_0x15fc83;const _0x15d6b1=this['_injector'][_0x3a8a2b(0x310)](_0x112aa6),{unitId:_0x24ac6d,subUnitId:_0x50ae9b}=gr(_0x51570b),_0x1ce7d1=_0x15d6b1[_0x3a8a2b(0x133)](_0x24ac6d)[_0x3a8a2b(0x25c)](),_0x541fcc=(_0x3844a5=(_0xb9823f=this[_0x3a8a2b(0x259)]['getUnit'](_0x24ac6d))==null?void 0x0:_0xb9823f['getActiveSheet']())==null?void 0x0:_0x3844a5[_0x3a8a2b(0x164)]();if(_0x1ce7d1[_0x3a8a2b(0xf6)]===0x0||!_0x24ac6d||!_0x50ae9b)return;const _0x354e3f=[{'id':_0x54411d['id'],'params':{'unitId':_0x24ac6d,'subUnitId':_0x541fcc,'selections':_0x4f1501[_0x3a8a2b(0x287)](_0x1ce7d1)}}],_0x1465df=this[_0x3a8a2b(0x436)][_0x3a8a2b(0x456)](_0x51570b,_0x354e3f);if(!_0x1c6d2b(_0x1465df))throw _0x1465df[_0x3a8a2b(0x465)];const _0x5f4f66=(_0x15fc83=(_0x1ef6e2=_0x1465df[_0x3a8a2b(0x3a4)][0x0])==null?void 0x0:_0x1ef6e2['params'])==null?void 0x0:_0x15fc83[_0x3a8a2b(0x138)];if(Array[_0x3a8a2b(0x3b1)](_0x5f4f66)&&_0x5f4f66[_0x3a8a2b(0xf6)]){if(_0x5f4f66[_0x3a8a2b(0xf6)]===_0x354e3f[0x0]['params']['selections'][_0x3a8a2b(0xf6)]&&_0x5f4f66[_0x3a8a2b(0x10d)]((_0x31d07c,_0x3504c3)=>_0x11086f[_0x3a8a2b(0x223)](_0x31d07c[_0x3a8a2b(0x28a)],_0x354e3f[0x0][_0x3a8a2b(0x42b)]['selections'][_0x3504c3][_0x3a8a2b(0x28a)])))return;this['_injector'][_0x3a8a2b(0x310)](_0x4328b6)[_0x3a8a2b(0x281)](_0x54411d['id'],{'unitId':_0x24ac6d,'subUnitId':_0x541fcc,'selections':_0x5f4f66});}}};Ke=fr([lt(0x0,_0x5a29b8(_0x5503e4)),lt(0x1,_0x5edf81),lt(0x2,_0x1528d5)],Ke);const tt=_0x28fcf5(_0x424a27(0x3d0));var Fs=(_0x307b09=>(_0x307b09[_0x307b09[_0x424a27(0x1c9)]=0x0]=_0x424a27(0x1c9),_0x307b09[_0x307b09[_0x424a27(0x140)]=0x1]='OTHER_CLIENTS_EDITING',_0x307b09))(Fs||{});const ls=0x7530,_s=_0x424a27(0x356);class Sr extends _0x118ead{constructor(){const _0x3efc78=_0x424a27;super(),l(this,'_id',_0x4f1501[_0x3efc78(0x2d0)]()),l(this,_0x3efc78(0x292),new Set()),l(this,_0x3efc78(0x342),new Map()),l(this,_0x3efc78(0x201),null),l(this,_0x3efc78(0x1c1),new Map()),l(this,_0x3efc78(0x307),new Map()),this[_0x3efc78(0x285)]();}['dispose'](){const _0x4ebfa2=_0x424a27;super[_0x4ebfa2(0x258)](),this[_0x4ebfa2(0x1c1)]['forEach']((_0x4ad245,_0x2a1fbc)=>this[_0x4ebfa2(0x35e)](_0x2a1fbc)),this[_0x4ebfa2(0x201)]&&window[_0x4ebfa2(0x417)](this[_0x4ebfa2(0x201)]);}[_0x424a27(0x299)](_0x1638a0){const _0x1471be=_0x424a27;return this[_0x1471be(0x37e)](_0x1638a0)[_0x1471be(0x479)](_0x266803());}['editingUnit'](_0x238958){const _0x256032=_0x424a27;this[_0x256032(0x292)][_0x256032(0x296)]===0x0&&this[_0x256032(0x35b)](),this[_0x256032(0x292)][_0x256032(0x143)](_0x238958),this[_0x256032(0x25b)]({'type':0x0,'memberID':this[_0x256032(0x155)],'unitIDs':[_0x238958],'isForwarded':!0x1});}[_0x424a27(0x112)](_0x60cf32){const _0xb7dcba=_0x424a27;this[_0xb7dcba(0x292)][_0xb7dcba(0x1c0)](_0x60cf32),this[_0xb7dcba(0x292)][_0xb7dcba(0x296)]===0x0&&this[_0xb7dcba(0x201)]&&window[_0xb7dcba(0x417)](this[_0xb7dcba(0x201)]);}[_0x424a27(0x285)](){const _0x5dc8d1=_0x424a27;this[_0x5dc8d1(0x227)](_0x2fa5a0(_0x15604f(window,_0x5dc8d1(0x385))[_0x5dc8d1(0x45f)](_0x3e8701=>{const _0x53c109=_0x5dc8d1;if(_0x3e8701['key']!==_s||!_0x3e8701[_0x53c109(0x2cb)])return;const _0x470ceb=JSON[_0x53c109(0x408)](_0x3e8701[_0x53c109(0x2cb)]);this[_0x53c109(0x171)](_0x470ceb);}))),window[_0x5dc8d1(0x1d4)](_0x5dc8d1(0x178),()=>this['_send']({'type':0x1,'memberID':this[_0x5dc8d1(0x155)],'unitIDs':Array[_0x5dc8d1(0x219)](this[_0x5dc8d1(0x292)])}));}[_0x424a27(0x171)](_0x6d4063){const _0x39e3b4=_0x424a27;switch(_0x6d4063[_0x39e3b4(0x46e)]){case 0x0:this['_handleJoinEvent'](_0x6d4063);break;case 0x1:this[_0x39e3b4(0x3db)](_0x6d4063);break;case 0x2:this[_0x39e3b4(0x284)](_0x6d4063);break;}}['_handleJoinEvent'](_0x5148a1){const _0x1cc309=_0x424a27,{unitIDs:_0x29e95b,memberID:_0x32ad08,isForwarded:_0x23ecb1}=_0x5148a1;_0x29e95b[_0x1cc309(0x204)](_0x5ced2b=>{const _0x41c4cb=_0x1cc309;if(!_0x23ecb1&&this['_unitOnClients'][_0x41c4cb(0x3e1)](_0x5ced2b)&&this[_0x41c4cb(0x37e)](_0x5ced2b)['next'](0x1),!this[_0x41c4cb(0x342)]['has'](_0x5ced2b)||!this[_0x41c4cb(0x342)][_0x41c4cb(0x310)](_0x5ced2b)[_0x41c4cb(0x3e1)](_0x32ad08)){const _0x5ab57b=this[_0x41c4cb(0x342)][_0x41c4cb(0x310)](_0x5ced2b)||new Set();_0x5ab57b[_0x41c4cb(0x143)](_0x32ad08),this[_0x41c4cb(0x342)]['set'](_0x5ced2b,_0x5ab57b),this[_0x41c4cb(0x170)](_0x32ad08);}}),_0x23ecb1||this[_0x1cc309(0x25b)]({'type':0x0,'memberID':this[_0x1cc309(0x155)],'unitIDs':[...this[_0x1cc309(0x292)]],'isForwarded':!0x0});}[_0x424a27(0x170)](_0x4851f4){const _0x36c39f=_0x424a27;this[_0x36c39f(0x35e)](_0x4851f4);const _0xbc0ee3=window[_0x36c39f(0x45c)](()=>{const _0x973c5a=_0x36c39f;this[_0x973c5a(0x342)]['forEach'](_0x1ae48d=>{const _0x3dace0=_0x973c5a;_0x1ae48d[_0x3dace0(0x1c0)](_0x4851f4);});},ls*0x2);this[_0x36c39f(0x1c1)][_0x36c39f(0x3a3)](_0x4851f4,_0xbc0ee3);}['_removeClearOtherTimer'](_0x47e472){const _0x5092b9=_0x424a27;if(this[_0x5092b9(0x1c1)][_0x5092b9(0x3e1)](_0x47e472)){const _0x505d42=this['_clearOtherTimers'][_0x5092b9(0x310)](_0x47e472);_0x505d42&&window[_0x5092b9(0x3ad)](_0x505d42),this[_0x5092b9(0x1c1)][_0x5092b9(0x3a3)](_0x47e472,null);}}[_0x424a27(0x3db)](_0x47391d){const _0x2372b0=_0x424a27,{memberID:_0xe27468,unitIDs:_0x45fcec}=_0x47391d;_0x45fcec[_0x2372b0(0x204)](_0x605125=>{const _0x21d298=_0x2372b0;var _0x4fd677;const _0x1ca889=this[_0x21d298(0x342)]['get'](_0x605125);_0x1ca889&&(_0x1ca889['delete'](_0xe27468),(_0x4fd677=this['_ensureSubject'](_0x605125))==null||_0x4fd677[_0x21d298(0x23b)](_0x1ca889[_0x21d298(0x296)]===0x0?0x0:0x1));}),this[_0x2372b0(0x35e)](_0xe27468);}['_handleHeartbeatEvent'](_0x174882){const _0x527a33=_0x424a27;this['_scheduleClearOtherTimer'](_0x174882[_0x527a33(0x3af)]);}[_0x424a27(0x25b)](_0x1d7735){const _0x879ff1=_0x424a27;localStorage[_0x879ff1(0x225)](_s,JSON[_0x879ff1(0x329)](_0x1d7735));}[_0x424a27(0x35b)](){const _0x52f803=_0x424a27;this[_0x52f803(0x201)]=window[_0x52f803(0x476)](()=>{const _0x483d61=_0x52f803;this[_0x483d61(0x25b)]({'type':0x2,'memberID':this[_0x483d61(0x155)]});},ls);}[_0x424a27(0x37e)](_0x28a26e){const _0x338382=_0x424a27;return this[_0x338382(0x307)]['has'](_0x28a26e)||this[_0x338382(0x307)][_0x338382(0x3a3)](_0x28a26e,new _0x9f2686(0x0)),this[_0x338382(0x307)][_0x338382(0x310)](_0x28a26e);}}function Ws(_0x94bcdf){const _0x34e791=_0x424a27;let _0x585791='';for(const _0x4b5213 of _0x94bcdf){const {startOffset:_0x4e6a8d,endOffset:_0x2c1747,isActive:_0x58c9d0}=_0x4b5213;_0x585791[_0x34e791(0xf6)]&&(_0x585791+=','),_0x585791+=_0x4e6a8d+':'+_0x2c1747+':'+(_0x58c9d0?'1':'0');}return _0x585791;}function pr(_0x1ded3f){const _0x39c4c4=_0x424a27,_0x6a98a2=_0x1ded3f[_0x39c4c4(0x341)](','),_0x225e2a=[];for(const _0x22f4ed of _0x6a98a2){const [_0x1e2329,_0x20cc02,_0x3af964]=_0x22f4ed[_0x39c4c4(0x341)](':');_0x225e2a[_0x39c4c4(0x246)]({'startOffset':Number(_0x1e2329),'endOffset':Number(_0x20cc02),'collapsed':_0x1e2329===_0x20cc02,'isActive':_0x3af964==='1'});}return _0x225e2a['some'](_0x2402a3=>_0x2402a3[_0x39c4c4(0x427)])||(_0x225e2a[0x0][_0x39c4c4(0x427)]=!0x0),_0x225e2a;}class Ft extends _0x49569b{constructor(){const _0x45113b=_0x424a27;super(...arguments),l(this,_0x45113b(0x15e),new _0x9f2686(null)),l(this,_0x45113b(0x433),this[_0x45113b(0x15e)][_0x45113b(0x218)]());}['syncEditingCollabCursor'](_0x8555c7){const _0xfefcc7=_0x424a27,{unitID:_0x5b9c14,memberID:_0x11409f,textRanges:_0x241bb0}=_0x8555c7,_0x5c32e0=Ws(_0x241bb0),_0x25ecb7={'unitID':_0x5b9c14,'memberID':_0x11409f,'selection':_0x5c32e0};this[_0xfefcc7(0x15e)][_0xfefcc7(0x23b)](_0x25ecb7);}}var vr=Object['defineProperty'],Ir=Object[_0x424a27(0x483)],Er=(_0x1ac30a,_0x277a60,_0x288fd6,_0x382724)=>{const _0x1e681f=_0x424a27;for(var _0x412285=_0x382724>0x1?void 0x0:_0x382724?Ir(_0x277a60,_0x288fd6):_0x277a60,_0x245904=_0x1ac30a[_0x1e681f(0xf6)]-0x1,_0x386610;_0x245904>=0x0;_0x245904--)(_0x386610=_0x1ac30a[_0x245904])&&(_0x412285=(_0x382724?_0x386610(_0x277a60,_0x288fd6,_0x412285):_0x386610(_0x412285))||_0x412285);return _0x382724&&_0x412285&&vr(_0x277a60,_0x288fd6,_0x412285),_0x412285;},us=(_0x4c3d78,_0x4c44fa)=>(_0x588a41,_0x289d6b)=>_0x4c44fa(_0x588a41,_0x289d6b,_0x4c3d78);let Xe=class{constructor(_0x4f65a1,_0x330fd2){const _0x853a22=_0x424a27;this[_0x853a22(0x34f)]=_0x4f65a1,this[_0x853a22(0x436)]=_0x330fd2;}[_0x424a27(0x3f3)](_0x2b3b87){const _0xe40b1c=_0x424a27;var _0x4cf16e;const _0xb2c507=this['_injector'][_0xe40b1c(0x310)](_0x2e81ec),_0x475c72=(_0x4cf16e=_0xb2c507['getDocRanges']())!=null?_0x4cf16e:[];if(_0x475c72[_0xe40b1c(0xf6)]===0x0)return;const _0x2dd419=[{'id':_0xe40b1c(0x429),'params':{'unitId':_0x2b3b87[_0xe40b1c(0x2a1)],'actions':null,'textRanges':_0x475c72}}],_0x5c675a=this['_transformService'][_0xe40b1c(0x456)](_0x2b3b87,_0x2dd419);if(!_0x1c6d2b(_0x5c675a))throw _0x5c675a[_0xe40b1c(0x465)];const _0xdab04c=_0x5c675a['m2Prime'][0x0]['params'][_0xe40b1c(0x27d)];Array[_0xe40b1c(0x3b1)](_0xdab04c)&&_0xdab04c[_0xe40b1c(0xf6)]&&_0xb2c507[_0xe40b1c(0x39c)](_0xdab04c,!0x1);}};Xe=Er([us(0x0,_0x5a29b8(_0x5503e4)),us(0x1,_0x5edf81)],Xe);const Cr=new Set([_0x2c4efb['id']]);function ds(_0x50f877,_0x1ffa8b,_0x110829,_0x194e3f,_0x27aa2a){const _0x44bc81=_0x424a27;var _0x46d90e,_0x1355d9,_0x4e1d1e,_0x5b3ac3;const _0x51f995=[];for(const _0x134e38 of _0x50f877)if(Cr[_0x44bc81(0x3e1)](_0x134e38['id'])){if(_0x51f995['length']>0x0)break;_0x51f995[_0x44bc81(0x246)](_0x134e38);break;}else _0x51f995[_0x44bc81(0x246)](_0x134e38);const _0x32477d=(_0x1355d9=(_0x46d90e=_0x27aa2a[_0x44bc81(0x206)]())==null?void 0x0:_0x46d90e[_0x44bc81(0x109)])!=null?_0x1355d9:_0x44bc81(0x126),_0x43aa58=(_0x5b3ac3=(_0x4e1d1e=_0x27aa2a[_0x44bc81(0x206)]())==null?void 0x0:_0x4e1d1e[_0x44bc81(0x3af)])!=null?_0x5b3ac3:_0x44bc81(0x126);return{'changeset':{'unitID':_0x1ffa8b,'type':_0xd479f4(_0x110829[_0x44bc81(0x16d)](_0x1ffa8b)),'baseRev':_0x194e3f['getCurrentRevOfUnit'](_0x1ffa8b),'revision':0x0,'userID':_0x32477d,'memberID':_0x43aa58,'mutations':_0x51f995},'pendingMutations':_0x50f877['slice'](_0x51f995[_0x44bc81(0xf6)])};}function br(_0x49901,_0x1a0d08,_0x2c4ed8,_0x3d68b7,_0x39e41f){const _0x4ab9e8=_0x424a27;var _0x28923e,_0x35288a,_0x2d572a,_0x572172;const _0x6ddf9e=[_0x49901[_0x4ab9e8(0x29a)]((_0x298479,_0x29a5d0)=>{const _0x58e1e4=_0x4ab9e8;var _0x44afca;const {id:_0x3ffbb9}=_0x298479,{id:_0x40b2e4,type:_0x5f2a4a}=_0x29a5d0,_0x327108=(_0x44afca=_0x298479[_0x58e1e4(0x42b)])!=null?_0x44afca:{'actions':null},_0x443c0d=_0x29a5d0[_0x58e1e4(0x42b)];if(_0x3ffbb9&&_0x3ffbb9!==_0x40b2e4)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x3ffbb9+_0x58e1e4(0x193)+_0x40b2e4+'.');return{..._0x298479,'id':_0x40b2e4,'type':_0x5f2a4a,'params':{'unitId':_0x443c0d['unitId'],'textRanges':_0x443c0d['textRanges'],'actions':_0x1c0817[_0x58e1e4(0x340)](_0x327108[_0x58e1e4(0x267)],_0x443c0d[_0x58e1e4(0x267)])}};},{})],_0xc9f487=(_0x35288a=(_0x28923e=_0x39e41f[_0x4ab9e8(0x206)]())==null?void 0x0:_0x28923e[_0x4ab9e8(0x109)])!=null?_0x35288a:_0x4ab9e8(0x126),_0x48dc33=(_0x572172=(_0x2d572a=_0x39e41f[_0x4ab9e8(0x206)]())==null?void 0x0:_0x2d572a[_0x4ab9e8(0x3af)])!=null?_0x572172:_0x4ab9e8(0x126);return{'changeset':{'unitID':_0x1a0d08,'type':_0xd479f4(_0x2c4ed8[_0x4ab9e8(0x16d)](_0x1a0d08)),'baseRev':_0x3d68b7[_0x4ab9e8(0x1e8)](_0x1a0d08),'revision':0x0,'userID':_0xc9f487,'memberID':_0x48dc33,'mutations':_0x6ddf9e},'pendingMutations':[]};}function Gs(_0x6632aa,_0x33ccbb){const _0x4cb05a=_0x424a27,_0x459236=new _0x158155(0x1);return setTimeout(()=>_0x459236[_0x4cb05a(0x23b)](_0x33ccbb),_0x6632aa),_0x459236['asObservable']()[_0x4cb05a(0x479)](_0x58e005(0x1));}const Tr={'id':_0x463ea5['id'],'type':_0xe4895[_0x424a27(0x2d3)],'params':{}};var Rr=Object[_0x424a27(0x20a)],Or=Object['getOwnPropertyDescriptor'],_e=(_0x1b3dcc,_0xf1d227,_0x1d8756,_0xbc0492)=>{const _0x5aa1df=_0x424a27;for(var _0x9ebfc0=_0xbc0492>0x1?void 0x0:_0xbc0492?Or(_0xf1d227,_0x1d8756):_0xf1d227,_0x8c183b=_0x1b3dcc[_0x5aa1df(0xf6)]-0x1,_0x1dbb64;_0x8c183b>=0x0;_0x8c183b--)(_0x1dbb64=_0x1b3dcc[_0x8c183b])&&(_0x9ebfc0=(_0xbc0492?_0x1dbb64(_0xf1d227,_0x1d8756,_0x9ebfc0):_0x1dbb64(_0x9ebfc0))||_0x9ebfc0);return _0xbc0492&&_0x9ebfc0&&Rr(_0xf1d227,_0x1d8756,_0x9ebfc0),_0x9ebfc0;},f=(_0x395ab9,_0x2dd7b1)=>(_0x1a1633,_0x479cbf)=>_0x2dd7b1(_0x1a1633,_0x479cbf,_0x395ab9),P=(_0xbfc075=>(_0xbfc075[_0x424a27(0x106)]='not_collab',_0xbfc075['SYNCED']=_0x424a27(0x450),_0xbfc075['PENDING']=_0x424a27(0x117),_0xbfc075[_0x424a27(0x388)]=_0x424a27(0x43c),_0xbfc075['AWAITING_WITH_PENDING']='awaiting_with_pending',_0xbfc075['FETCH_MISS']='fetch_missing',_0xbfc075[_0x424a27(0x393)]='conflict',_0xbfc075[_0x424a27(0x3ed)]='offline',_0xbfc075))(P||{});const Ys=0xea60;class ue{constructor(_0x4b6404,_0x2a53d6,_0x5054e0,_0x488ca8,_0x45d115,_0x4d4ce1,_0x11421a,_0x4ad05a,_0x17e5ba){const _0x41587e=_0x424a27;l(this,_0x41587e(0x12c),null),l(this,'_pendingMutations',[]),(this[_0x41587e(0x2a1)]=_0x4b6404,this['type']=_0x2a53d6,this['_handler']=_0x45d115,this[_0x41587e(0x451)]=_0x4d4ce1,this['_undoRedoService']=_0x11421a,this['_revisionService']=_0x4ad05a,this[_0x41587e(0x250)]=_0x17e5ba,this[_0x41587e(0x12c)]=_0x5054e0,this[_0x41587e(0x134)]=_0x488ca8);}[_0x424a27(0x33c)](_0x32df46){const _0x22e151=_0x424a27,_0x12a211=this[_0x22e151(0x15a)]['getCurrentRevOfUnit'](this[_0x22e151(0x2a1)]);return _0x32df46[_0x22e151(0x270)]>_0x12a211+0x1?(this['_handler'][_0x22e151(0x3bf)]({'from':_0x12a211,'to':_0x32df46['revision']-0x1}),!0x0):!0x1;}[_0x424a27(0x272)](_0x542c26){const _0x25b409=_0x424a27;this['_undoRedoService'][_0x25b409(0x40f)](this[_0x25b409(0x2a1)],_0x542c26);}['_transformSelections'](_0x2d19cc){const _0x3eb5da=_0x424a27;var _0x214913,_0x4c5783;(_0x4c5783=(_0x214913=this[_0x3eb5da(0x16b)])[_0x3eb5da(0x313)])==null||_0x4c5783['call'](_0x214913,_0x2d19cc);}[_0x424a27(0x211)](_0xee5001){const _0x24f517=_0x424a27;var _0x8d5174,_0x3426e2;return(_0x3426e2=(_0x8d5174=this[_0x24f517(0x16b)])[_0x24f517(0x3b2)])==null?void 0x0:_0x3426e2[_0x24f517(0x330)](_0x8d5174,_0xee5001);}[_0x424a27(0x453)](_0x48fac6){const _0xe1261a=_0x424a27;var _0x56348a,_0x2cd64e,_0x11ddb2;return(_0x11ddb2=(_0x2cd64e=(_0x56348a=this[_0xe1261a(0x16b)])[_0xe1261a(0x2df)])==null?void 0x0:_0x2cd64e[_0xe1261a(0x330)](_0x56348a,_0x48fac6))!=null?_0x11ddb2:_0x48fac6;}[_0x424a27(0x3d5)](_0x45802a){const _0x342c04=_0x424a27;var _0x1b9824,_0x9160;if(this[_0x342c04(0x46e)]===k[_0x342c04(0x346)]){const {unitID:_0x3c938f,mutations:_0x278341,memberID:_0x539943}=_0x45802a,_0x20a20a=_0x278341[0x0][_0x342c04(0x42b)][_0x342c04(0x27d)];Array['isArray'](_0x20a20a)&&_0x20a20a['length']>0x0&&((_0x9160=(_0x1b9824=this[_0x342c04(0x16b)])['onSyncEditingCollabCursor'])==null||_0x9160['call'](_0x1b9824,{'unitID':_0x3c938f,'memberID':_0x539943,'textRanges':_0x20a20a}));}}[_0x424a27(0x2ab)](){const _0x34ce64=_0x424a27;this[_0x34ce64(0x250)][_0x34ce64(0x20c)](this[_0x34ce64(0x2a1)],this[_0x34ce64(0x46e)],this[_0x34ce64(0x12c)],this['_pendingMutations']);}[_0x424a27(0x1e1)](){const _0x1b36d8=_0x424a27;return this[_0x1b36d8(0x15a)][_0x1b36d8(0x1e8)](this['unitID']);}['_incrementRevisionNumber'](){const _0x2f1d33=_0x424a27;this[_0x2f1d33(0x15a)][_0x2f1d33(0x122)](this['unitID']);}[_0x424a27(0x2e3)](_0x1ba0f0){const _0x45eee6=_0x424a27;var _0x19c57c;const _0x1b124f=this['_transformRemoteChangesetByIMECache'](_0x1ba0f0),_0x2f23f2=_0xd579d0(_0x1b124f[_0x45eee6(0x14b)],this[_0x45eee6(0x451)],{'fromCollab':!0x0});if(!_0x2f23f2[_0x45eee6(0x35f)])throw _0x2f23f2[_0x45eee6(0x465)]instanceof Error?_0x2f23f2['error']:new Error((_0x19c57c=_0x2f23f2['error'])!=null?_0x19c57c:_0x45eee6(0x19e));this[_0x45eee6(0x211)](_0x1b124f),this[_0x45eee6(0x272)](_0x1ba0f0),this['_transformSelections'](_0x1b124f),this['_syncEditingCollabCursor'](_0x1b124f),this[_0x45eee6(0x40b)]();}}let pe=class extends ue{constructor(_0x2edf6a,_0x5e1c80,_0x56682b,_0x4faf96,_0x20cc62,_0x1363a8,_0x32f348,_0x32b8fc,_0x2331f2,_0x2f02dc){const _0x363346=_0x424a27;super(_0x2edf6a,_0x5e1c80,null,[],_0x56682b,_0x32b8fc,_0x32f348,_0x4faf96,_0x20cc62),l(this,_0x363346(0x38e),_0x363346(0x450)),(this[_0x363346(0x34f)]=_0x1363a8,this[_0x363346(0x3a9)]=_0x2331f2,this[_0x363346(0x436)]=_0x2f02dc);}[_0x424a27(0x10c)](_0xf99083){const _0x4da311=_0x424a27,_0x390845=this['_injector']['createInstance'](X,this[_0x4da311(0x2a1)],this[_0x4da311(0x46e)],[_0xf99083],this[_0x4da311(0x16b)]);return _0x390845[_0x4da311(0x14e)](),_0x390845[_0x4da311(0x2ab)](),_0x390845;}[_0x424a27(0x38b)](_0x4d45d4){const _0x4d6ea7=_0x424a27;if(this['_checkMissing'](_0x4d45d4))return this['_injector'][_0x4d6ea7(0x3a0)](B,this[_0x4d6ea7(0x2a1)],this[_0x4d6ea7(0x46e)],null,[],null,[_0x4d45d4],this[_0x4d6ea7(0x16b)]);try{const _0x1c2236=this[_0x4d6ea7(0x436)][_0x4d6ea7(0x456)](_0x4d45d4,[Tr]);if(_0x1c6d2b(_0x1c2236)){const {c1Prime:_0x10accf}=_0x1c2236;return this[_0x4d6ea7(0x2e3)](_0x10accf),this;}throw _0x1c2236['error'];}catch(_0x4d60dc){return this[_0x4d6ea7(0x3a9)][_0x4d6ea7(0x465)](_0x4d60dc),this[_0x4d6ea7(0x1a2)](!0x1);}}[_0x424a27(0x1a2)](_0x2efece){const _0x1b3a41=_0x424a27;return this[_0x1b3a41(0x34f)][_0x1b3a41(0x3a0)](ee,this['unitID'],this[_0x1b3a41(0x46e)],null,[],this['_handler'],_0x2efece);}[_0x424a27(0x372)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x424a27(0x108)](){const _0xff8ec1=_0x424a27;throw new Error(_0xff8ec1(0x3fa));}['onRemoteRetry'](){return this;}[_0x424a27(0x29b)](){const _0x22f9dd=_0x424a27;return this[_0x22f9dd(0x34f)][_0x22f9dd(0x3a0)](te,this[_0x22f9dd(0x2a1)],this[_0x22f9dd(0x46e)],null,[],this['_handler']);}[_0x424a27(0x2d4)](){return this;}[_0x424a27(0x384)](){const _0x2c211f=_0x424a27;throw new Error(_0x2c211f(0x187));}[_0x424a27(0x260)](){const _0x34e90a=_0x424a27,_0x582332=this['_revisionService'][_0x34e90a(0x1e8)](this['unitID']);return this[_0x34e90a(0x16b)][_0x34e90a(0x3bf)]({'from':_0x582332,'to':0x0}),this[_0x34e90a(0x34f)][_0x34e90a(0x3a0)](B,this[_0x34e90a(0x2a1)],this[_0x34e90a(0x46e)],null,[],null,[],this[_0x34e90a(0x16b)]);}};pe=_e([f(0x3,_0x5a29b8(_0x1fd8e1)),f(0x4,_0x5a29b8(w)),f(0x5,_0x5a29b8(_0x5503e4)),f(0x6,_0xde5684),f(0x7,_0x4328b6),f(0x8,_0x2030cd),f(0x9,_0x5edf81)],pe);let X=class extends ue{constructor(_0x417e57,_0x21d6ee,_0x124cb5,_0x437a82,_0x598cc5,_0x5224fb,_0x4c22e6,_0x52b4f5,_0x2b0a20,_0x60cf49,_0x5034c7,_0x295de9,_0x35684b,_0x1bc828){const _0x3d26f1=_0x424a27;super(_0x417e57,_0x21d6ee,null,_0x124cb5,_0x437a82,_0x60cf49,_0x1bc828,_0x5224fb,_0x4c22e6),l(this,'status',_0x3d26f1(0x117)),l(this,_0x3d26f1(0x314),null),l(this,_0x3d26f1(0x1ba),null),(this[_0x3d26f1(0x34f)]=_0x598cc5,this['_memberService']=_0x52b4f5,this[_0x3d26f1(0x3a9)]=_0x2b0a20,this[_0x3d26f1(0x279)]=_0x5034c7,this[_0x3d26f1(0x436)]=_0x295de9,this[_0x3d26f1(0x28f)]=_0x35684b);}['appendMutation'](_0x1a4f76){const _0x36b951=_0x424a27;return this[_0x36b951(0x134)][_0x36b951(0x246)](_0x1a4f76),this[_0x36b951(0x2ab)](),this;}[_0x424a27(0x38b)](_0xd099a5){const _0x416217=_0x424a27;if(this[_0x416217(0x33c)](_0xd099a5))return this[_0x416217(0x1a1)](),this[_0x416217(0x34f)][_0x416217(0x3a0)](B,this[_0x416217(0x2a1)],this[_0x416217(0x46e)],null,this[_0x416217(0x134)],null,[_0xd099a5],this[_0x416217(0x16b)]);try{const _0x141fb2=this['_transformService'][_0x416217(0x456)](_0xd099a5,this[_0x416217(0x134)]);if(_0x1c6d2b(_0x141fb2)){const {c1Prime:_0x18584b,m2Prime:_0x3d4cd3}=_0x141fb2;this['_executeRemoteChangeset'](_0x18584b);const _0x1ef8df=this[_0x416217(0x34f)]['createInstance'](X,this[_0x416217(0x2a1)],this[_0x416217(0x46e)],_0x3d4cd3,this[_0x416217(0x16b)]);return this[_0x416217(0x1a1)](),_0x1ef8df[_0x416217(0x14e)](this[_0x416217(0x314)]?Math['max'](0x0,new Date()[_0x416217(0xfe)]()-this['_scheduleTimestamp']):this['_getSendChangesetTimeout']()),_0x1ef8df;}throw _0x141fb2[_0x416217(0x465)];}catch(_0x59c681){return this[_0x416217(0x3a9)][_0x416217(0x465)](_0x59c681),this['_onConflict'](!0x1);}}[_0x424a27(0x372)](){const _0x5ccc2f=_0x424a27;throw new Error(_0x5ccc2f(0x3da));}[_0x424a27(0x108)](){const _0x3afe17=_0x424a27;throw new Error(_0x3afe17(0x35a));}['onRemoteRetry'](){return this;}[_0x424a27(0x29b)](){const _0x56069b=_0x424a27;return this[_0x56069b(0x1a1)](),this[_0x56069b(0x34f)][_0x56069b(0x3a0)](te,this[_0x56069b(0x2a1)],this[_0x56069b(0x46e)],null,this[_0x56069b(0x134)],this[_0x56069b(0x16b)]);}[_0x424a27(0x2d4)](){return this;}['_schedule'](_0x27a128){const _0x3fb932=_0x424a27,_0x5ae42b=_0x27a128!=null?_0x27a128:this[_0x3fb932(0x391)]();this['_scheduleTimestamp']=new Date()['getTime'](),this['_sendingTimer']=window[_0x3fb932(0x45c)](()=>{const _0x470da1=_0x3fb932;this[_0x470da1(0x1a1)]();let _0x2d185f=null;switch(this['type']){case k['UNIVER_SHEET']:{_0x2d185f=ds(this[_0x470da1(0x134)],this['unitID'],this[_0x470da1(0x28f)],this[_0x470da1(0x15a)],this[_0x470da1(0x168)]);break;}case k[_0x470da1(0x346)]:{this[_0x470da1(0x134)][_0x470da1(0x10d)](_0x4ecca7=>_0x4ecca7['id']===_0x129e5a['id'])?_0x2d185f=br(this[_0x470da1(0x134)],this[_0x470da1(0x2a1)],this['_univerInstanceService'],this[_0x470da1(0x15a)],this['_memberService']):_0x2d185f=ds(this[_0x470da1(0x134)],this['unitID'],this['_univerInstanceService'],this[_0x470da1(0x15a)],this['_memberService']);break;}default:throw new Error(_0x470da1(0x431)+this[_0x470da1(0x46e)]+_0x470da1(0x11a));}const {changeset:_0xc1e4e3,pendingMutations:_0x2c88b6}=_0x2d185f;this[_0x470da1(0x16b)]['onSendChangeset'](_0xc1e4e3);const _0x33fb51=_0x2c88b6[_0x470da1(0xf6)]?this[_0x470da1(0x34f)][_0x470da1(0x3a0)](q,this[_0x470da1(0x2a1)],this[_0x470da1(0x46e)],_0xc1e4e3,_0x2c88b6,this[_0x470da1(0x16b)],void 0x0):this[_0x470da1(0x34f)]['createInstance'](Q,this[_0x470da1(0x2a1)],this[_0x470da1(0x46e)],_0xc1e4e3,this['_handler']);_0x33fb51[_0x470da1(0x2ab)](),this[_0x470da1(0x16b)][_0x470da1(0x468)](this,_0x33fb51);},_0x5ae42b);}[_0x424a27(0x391)](){const _0x189406=_0x424a27;var _0x5b3d39;const _0x3e6909=this[_0x189406(0x279)][_0x189406(0x395)]($);return(_0x5b3d39=_0x3e6909==null?void 0x0:_0x3e6909[_0x189406(0x2c8)])!=null?_0x5b3d39:bn;}[_0x424a27(0x384)](){const _0x520c7b=_0x424a27;throw new Error(_0x520c7b(0x2e6));}[_0x424a27(0x1a1)](){const _0xeb59c=_0x424a27;this[_0xeb59c(0x1ba)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0xeb59c(0x1ba)]=null);}['_onConflict'](_0x12a35f){const _0x3ed28b=_0x424a27;return this[_0x3ed28b(0x1a1)](),this[_0x3ed28b(0x34f)]['createInstance'](ee,this[_0x3ed28b(0x2a1)],this[_0x3ed28b(0x46e)],null,this[_0x3ed28b(0x134)],this['_handler'],_0x12a35f);}};X=_e([f(0x4,_0x5a29b8(_0x5503e4)),f(0x5,_0x5a29b8(_0x1fd8e1)),f(0x6,_0x5a29b8(w)),f(0x7,_0x5a29b8(ce)),f(0x8,_0x2030cd),f(0x9,_0x4328b6),f(0xa,_0x5992c0),f(0xb,_0x5edf81),f(0xc,_0x1528d5),f(0xd,_0xde5684)],X);let Q=class extends ue{constructor(_0x11d1c7,_0x51997f,_0x62c7d8,_0x2fc367,_0x360429,_0x342b30,_0x5097cb,_0x514ca6,_0x11c446,_0xf2dffe,_0x3bcc07){const _0x8572bd=_0x424a27;super(_0x11d1c7,_0x51997f,_0x62c7d8,[],_0x2fc367,_0x514ca6,_0x3bcc07,_0x342b30,_0x5097cb),l(this,_0x8572bd(0x38e),_0x8572bd(0x43c)),l(this,_0x8572bd(0x15d),0x0),l(this,_0x8572bd(0x481)),l(this,_0x8572bd(0x2fb)),(this[_0x8572bd(0x34f)]=_0x360429,this['_logService']=_0x11c446,this[_0x8572bd(0x436)]=_0xf2dffe);}[_0x424a27(0x10c)](_0x9311b7){const _0x3eaee5=_0x424a27;this['_clearScheduledTask']();const _0x52132e=this[_0x3eaee5(0x34f)][_0x3eaee5(0x3a0)](q,this['unitID'],this[_0x3eaee5(0x46e)],this['_awaitingChangeset'],[_0x9311b7],this[_0x3eaee5(0x16b)],this[_0x3eaee5(0x481)]);return _0x52132e[_0x3eaee5(0x2ab)](),_0x52132e;}[_0x424a27(0x38b)](_0x294f4a){const _0xd47415=_0x424a27;if(this[_0xd47415(0x33c)](_0x294f4a))return this['_clearScheduledTask'](),this[_0xd47415(0x34f)]['createInstance'](B,this['unitID'],this[_0xd47415(0x46e)],this[_0xd47415(0x12c)],[],null,[_0x294f4a],this[_0xd47415(0x16b)]);try{const _0x48149c=this['_transformService']['transformChangesets']([_0x294f4a],[this['_awaitingChangeset']],!0x1);if(_0x17118b(_0x48149c)){const {c1Prime:_0x2858e7,c2Prime:_0x21e2e6}=_0x48149c;this[_0xd47415(0x2e3)](_0x2858e7[0x0]),_0x21e2e6[0x0][_0xd47415(0x25d)]=this[_0xd47415(0x1e1)](),this[_0xd47415(0x1a1)]();const _0x25ac5e=this[_0xd47415(0x34f)][_0xd47415(0x3a0)](Q,this[_0xd47415(0x2a1)],this[_0xd47415(0x46e)],_0x21e2e6[0x0],this[_0xd47415(0x16b)]);return _0x25ac5e[_0xd47415(0x2ab)](),_0x25ac5e;}return this[_0xd47415(0x1a2)](!0x1);}catch(_0x1a347e){return this[_0xd47415(0x3a9)]['error'](_0x1a347e),this[_0xd47415(0x1a2)](!0x1);}}['onRemoteAck'](_0xcd35ea){const _0x37e9f0=_0x424a27;this[_0x37e9f0(0x1a1)]();const _0x2158be=this[_0x37e9f0(0x15a)][_0x37e9f0(0x1e8)](this['unitID']);if(_0xcd35ea[_0x37e9f0(0x270)]<_0x2158be-0x1)return this;if(this[_0x37e9f0(0x33c)](_0xcd35ea))return this['_injector']['createInstance'](B,this[_0x37e9f0(0x2a1)],this[_0x37e9f0(0x46e)],null,[],this[_0x37e9f0(0x12c)],[],this[_0x37e9f0(0x16b)]);this[_0x37e9f0(0x40b)]();const _0x15b9db=this[_0x37e9f0(0x34f)][_0x37e9f0(0x3a0)](pe,this[_0x37e9f0(0x2a1)],this['type'],this[_0x37e9f0(0x16b)]);return _0x15b9db['_updateLocalCache'](),_0x15b9db;}[_0x424a27(0x108)](_0x2e41ef){const _0x333e2a=_0x424a27;return this[_0x333e2a(0x1a2)](!!(_0x2e41ef!=null&&_0x2e41ef[_0x333e2a(0x1f0)]));}['onRemoteRetry'](_0x50377b){const _0x36d82e=_0x424a27;return this['_resendTimeout']>Ys?this['toggleOffline']():(this[_0x36d82e(0x481)]=Gs(this['_resendTimeout'],{'timeout':this[_0x36d82e(0x15d)],'reqId':_0x50377b['reqId']}),this['_sender']=this[_0x36d82e(0x481)]['subscribe'](({reqId:_0x702fbf,timeout:_0x4add51})=>{this['_resendWithTimeout'](_0x702fbf,_0x4add51);}),this);}[_0x424a27(0x29b)](){const _0x3d8ac2=_0x424a27;return this[_0x3d8ac2(0x1a1)](),this['_injector'][_0x3d8ac2(0x3a0)](te,this['unitID'],this['type'],this['_awaitingChangeset'],[],this[_0x3d8ac2(0x16b)]);}[_0x424a27(0x2d4)](){return this;}[_0x424a27(0x384)](){const _0x34a7f7=_0x424a27;this['_handler'][_0x34a7f7(0x222)](this['_awaitingChangeset']);}[_0x424a27(0x1a2)](_0x55e368){const _0x3e22e7=_0x424a27;return this['_clearScheduledTask'](),this[_0x3e22e7(0x34f)]['createInstance'](ee,this[_0x3e22e7(0x2a1)],this[_0x3e22e7(0x46e)],this[_0x3e22e7(0x12c)],[],this[_0x3e22e7(0x16b)],_0x55e368);}[_0x424a27(0x305)](_0x3624c0,_0x26cc10){const _0xf21d5e=_0x424a27;var _0x261ebe;_0x3624c0===((_0x261ebe=this[_0xf21d5e(0x12c)])==null?void 0x0:_0x261ebe['reqId'])&&(this[_0xf21d5e(0x384)](),this[_0xf21d5e(0x15d)]=_0x26cc10===0x0?0x3e8:_0x26cc10*0x2);}[_0x424a27(0x1a1)](){const _0x156ad8=_0x424a27;var _0x5cf27e;(_0x5cf27e=this[_0x156ad8(0x2fb)])==null||_0x5cf27e[_0x156ad8(0x3dd)](),this[_0x156ad8(0x15d)]=0x0;}};Q=_e([f(0x4,_0x5a29b8(_0x5503e4)),f(0x5,_0x5a29b8(_0x1fd8e1)),f(0x6,_0x5a29b8(w)),f(0x7,_0x4328b6),f(0x8,_0x2030cd),f(0x9,_0x5edf81),f(0xa,_0xde5684)],Q);let q=class extends ue{constructor(_0x41f1ac,_0x562a03,_0x2e2698,_0x35c46a,_0x2a63b5,_0x356e69,_0x4aacd1,_0x1171cd,_0xd3e24e,_0x4c459a,_0x4be9f8,_0x12104c,_0x484016){const _0x846a5a=_0x424a27;super(_0x41f1ac,_0x562a03,_0x2e2698,_0x35c46a,_0x2a63b5,_0x4c459a,_0x484016,_0x1171cd,_0xd3e24e),l(this,_0x846a5a(0x38e),_0x846a5a(0x315)),l(this,'_resendTimeout',0x0),l(this,_0x846a5a(0x481)),l(this,'_sender'),(this[_0x846a5a(0x34f)]=_0x4aacd1,this[_0x846a5a(0x3a9)]=_0x4be9f8,this[_0x846a5a(0x436)]=_0x12104c,_0x356e69&&(this[_0x846a5a(0x481)]=_0x356e69,this[_0x846a5a(0x2fb)]=this['_resendTimer'][_0x846a5a(0x45f)](({reqId:_0x5e2f6e,timeout:_0x260f21})=>{const _0xb378ec=_0x846a5a;this[_0xb378ec(0x305)](_0x5e2f6e,_0x260f21);})));}['appendMutation'](_0x18c223){const _0xa7d5af=_0x424a27;return this[_0xa7d5af(0x134)][_0xa7d5af(0x246)](_0x18c223),this;}[_0x424a27(0x38b)](_0x308fd6){const _0xed0fbb=_0x424a27;if(this[_0xed0fbb(0x33c)](_0x308fd6))return this[_0xed0fbb(0x1a1)](),this['_injector'][_0xed0fbb(0x3a0)](B,this[_0xed0fbb(0x2a1)],this[_0xed0fbb(0x46e)],this['_awaitingChangeset'],this['_pendingMutations'],null,[_0x308fd6],this[_0xed0fbb(0x16b)]);try{const _0x1739af=this[_0xed0fbb(0x436)][_0xed0fbb(0x320)]([_0x308fd6],[this[_0xed0fbb(0x12c)]],!0x1);if(_0x17118b(_0x1739af)){const {c1Prime:_0x331a5c,c2Prime:_0x186868}=_0x1739af,_0x1256e6=this['_transformService'][_0xed0fbb(0x456)](_0x331a5c[0x0],this[_0xed0fbb(0x134)]);if(_0x1c6d2b(_0x1256e6)){const {c1Prime:_0x2ca3aa,m2Prime:_0x4d9760}=_0x1256e6;return this[_0xed0fbb(0x2e3)](_0x2ca3aa),_0x186868[0x0][_0xed0fbb(0x25d)]=this[_0xed0fbb(0x1e1)](),this['_clearScheduledTask'](),this[_0xed0fbb(0x34f)][_0xed0fbb(0x3a0)](q,this[_0xed0fbb(0x2a1)],this['type'],_0x186868[0x0],_0x4d9760,this[_0xed0fbb(0x16b)],void 0x0);}throw _0x1256e6[_0xed0fbb(0x465)];}throw _0x1739af['error'];}catch(_0x1f8bb4){return this[_0xed0fbb(0x3a9)]['error'](_0x1f8bb4),this[_0xed0fbb(0x1a2)](!0x1);}}[_0x424a27(0x372)](_0x3d7320){const _0x5010c7=_0x424a27;if(this['_clearScheduledTask'](),this[_0x5010c7(0x33c)](_0x3d7320))return this[_0x5010c7(0x34f)][_0x5010c7(0x3a0)](B,this[_0x5010c7(0x2a1)],this['type'],null,this[_0x5010c7(0x134)],this[_0x5010c7(0x12c)],[],this[_0x5010c7(0x16b)]);this['_incrementRevisionNumber']();const _0x254506=this[_0x5010c7(0x34f)][_0x5010c7(0x3a0)](X,this['unitID'],this[_0x5010c7(0x46e)],this[_0x5010c7(0x134)],this['_handler']);return _0x254506[_0x5010c7(0x14e)](),_0x254506['_updateLocalCache'](),_0x254506;}[_0x424a27(0x108)](_0x229d7f){const _0x484369=_0x424a27;return this[_0x484369(0x1a2)](!!(_0x229d7f!=null&&_0x229d7f['isPermissionRej']));}['onRemoteRetry'](_0x4a87){const _0x579726=_0x424a27;return this['_resendTimeout']>Ys?this['toggleOffline']():(this[_0x579726(0x481)]=Gs(this[_0x579726(0x15d)],{'timeout':this[_0x579726(0x15d)],'reqId':_0x4a87[_0x579726(0x470)]}),this[_0x579726(0x2fb)]=this[_0x579726(0x481)][_0x579726(0x45f)](({reqId:_0x1eda58,timeout:_0x34f075})=>{const _0x327bfa=_0x579726;this[_0x327bfa(0x305)](_0x1eda58,_0x34f075);}),this);}['toggleOffline'](){const _0x22c341=_0x424a27;return this[_0x22c341(0x1a1)](),this['_injector']['createInstance'](te,this[_0x22c341(0x2a1)],this[_0x22c341(0x46e)],this[_0x22c341(0x12c)],this[_0x22c341(0x134)],this[_0x22c341(0x16b)]);}[_0x424a27(0x2d4)](){return this;}[_0x424a27(0x384)](){const _0x1482a5=_0x424a27;this['_handler'][_0x1482a5(0x222)](this['_awaitingChangeset']);}[_0x424a27(0x1a2)](_0x3c0a99){const _0x5c2bfb=_0x424a27;return this['_clearScheduledTask'](),this[_0x5c2bfb(0x34f)][_0x5c2bfb(0x3a0)](ee,this[_0x5c2bfb(0x2a1)],this[_0x5c2bfb(0x46e)],null,this['_pendingMutations'],this[_0x5c2bfb(0x16b)],_0x3c0a99);}[_0x424a27(0x305)](_0x2c0646,_0x4aabf5){const _0x370c27=_0x424a27;var _0x2ae1e4;_0x2c0646===((_0x2ae1e4=this[_0x370c27(0x12c)])==null?void 0x0:_0x2ae1e4[_0x370c27(0x470)])&&(this[_0x370c27(0x384)](),this[_0x370c27(0x15d)]=_0x4aabf5===0x0?0x3e8:_0x4aabf5*0x2);}['_clearScheduledTask'](){const _0x2a782f=_0x424a27;var _0xe04e72;(_0xe04e72=this[_0x2a782f(0x2fb)])==null||_0xe04e72[_0x2a782f(0x3dd)](),this[_0x2a782f(0x15d)]=0x0;}};q=_e([f(0x6,_0x5a29b8(_0x5503e4)),f(0x7,_0x5a29b8(_0x1fd8e1)),f(0x8,_0x5a29b8(w)),f(0x9,_0x4328b6),f(0xa,_0x2030cd),f(0xb,_0x5edf81),f(0xc,_0xde5684)],q);let ee=class extends ue{constructor(_0x49dd4c,_0x5c445f,_0x53e828,_0x7001df,_0x4e765c,_0x2c0b0d=!0x1,_0x47d7b9,_0x550785,_0x20d137,_0x87193c,_0x5b3d97,_0xe2c497,_0x534490){const _0x52a7b1=_0x424a27;super(_0x49dd4c,_0x5c445f,_0x53e828,_0x7001df,_0x4e765c,_0x550785,_0x20d137,_0x5b3d97,_0x87193c),l(this,'status',_0x52a7b1(0x311)),(this[_0x52a7b1(0x34c)]=_0x2c0b0d,this[_0x52a7b1(0x30d)]=_0x47d7b9,this[_0x52a7b1(0x1fa)]=_0xe2c497,this[_0x52a7b1(0x48e)]=_0x534490,this['_showConflictNotification'](),this[_0x52a7b1(0x107)](),this[_0x52a7b1(0x32c)]());}[_0x424a27(0x10c)](){return this;}['onRemoteChangeset'](){return this;}[_0x424a27(0x372)](){return this;}[_0x424a27(0x108)](){return this;}[_0x424a27(0x2c6)](){return this;}[_0x424a27(0x29b)](){return this;}[_0x424a27(0x2d4)](){return this;}[_0x424a27(0x384)](){const _0xa94364=_0x424a27;throw new Error(_0xa94364(0x39f));}[_0x424a27(0x107)](){const _0x672f67=_0x424a27;this[_0x672f67(0x250)]['updateOfflineData'](this[_0x672f67(0x2a1)],this[_0x672f67(0x46e)],null,[]);}[_0x424a27(0x1aa)](){const _0xe1f1bd=_0x424a27;this[_0xe1f1bd(0x34c)]?this[_0xe1f1bd(0x48e)][_0xe1f1bd(0x439)]({'title':this[_0xe1f1bd(0x1fa)]['t'](_0xe1f1bd(0x278)),'content':this[_0xe1f1bd(0x1fa)]['t'](_0xe1f1bd(0x3b3)),'type':_0xe1f1bd(0x465),'duration':0x0}):this['_notificationService'][_0xe1f1bd(0x439)]({'title':this['_localeService']['t'](_0xe1f1bd(0x1e2)),'content':this['_localeService']['t'](_0xe1f1bd(0x469)),'type':'error','duration':0x0});}[_0x424a27(0x32c)](){const _0xb6cdde=_0x424a27;this[_0xb6cdde(0x30d)][_0xb6cdde(0x435)](new _0x264da4(this[_0xb6cdde(0x2a1)])['id'],!0x1);}};ee=_e([f(0x6,_0x5a29b8(_0x51263e)),f(0x7,_0x4328b6),f(0x8,_0xde5684),f(0x9,_0x5a29b8(w)),f(0xa,_0x5a29b8(_0x1fd8e1)),f(0xb,_0x5a29b8(_0x34277f)),f(0xc,_0x27e22d)],ee);let te=class extends ue{constructor(_0x4530e2,_0x3c4638,_0xecf893,_0x408035,_0x120fbf,_0x41f5b8,_0x319466,_0x4e988e,_0x102c8a,_0x830ca3){const _0x56b169=_0x424a27;super(_0x4530e2,_0x3c4638,_0xecf893,_0x408035,_0x120fbf,_0x102c8a,_0x830ca3,_0x319466,_0x4e988e),l(this,_0x56b169(0x38e),'offline'),this[_0x56b169(0x34f)]=_0x41f5b8;}[_0x424a27(0x10c)](_0x34683c){const _0x33d769=_0x424a27;return this['_pendingMutations'][_0x33d769(0x246)](_0x34683c),this[_0x33d769(0x2ab)](),this;}['onRemoteChangeset'](_0x2a10ff){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x424a27(0x372)](){const _0x57636b=_0x424a27;throw new Error(_0x57636b(0x1e3));}[_0x424a27(0x108)](){const _0x754b44=_0x424a27;throw new Error(_0x754b44(0x28b));}['onRemoteRetry'](){return this;}[_0x424a27(0x29b)](){return this;}['toggleOnline'](){const _0x13d4ef=_0x424a27,{_injector:_0x3963f2,_pendingMutations:_0x1e5308,_awaitingChangeset:_0x290911,unitID:_0xc28750,_handler:_0x4192f8,type:_0x109433}=this,_0x3a5b6d=Ks(_0x3963f2,_0xc28750,_0x109433,_0x290911,_0x1e5308,_0x4192f8);return _0x3a5b6d instanceof X?_0x3a5b6d['_schedule']():(_0x3a5b6d instanceof q||_0x3a5b6d instanceof Q)&&_0x3a5b6d[_0x13d4ef(0x384)](),_0x3a5b6d;}[_0x424a27(0x384)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};te=_e([f(0x5,_0x5a29b8(_0x5503e4)),f(0x6,_0x5a29b8(_0x1fd8e1)),f(0x7,_0x5a29b8(w)),f(0x8,_0x4328b6),f(0x9,_0xde5684)],te);let B=class extends ue{constructor(_0xfc08d8,_0xef4b5a,_0xc1f733,_0x250c7f,_0x331b65,_0x4bbf67,_0x5a1c69,_0x1d3338,_0xceed10,_0xd76f4f,_0x3b52dc,_0x28c917,_0x37fd56,_0x449cdd){const _0x3debb2=_0x424a27;super(_0xfc08d8,_0xef4b5a,_0xc1f733,_0x250c7f,_0x5a1c69,_0x28c917,_0x37fd56,_0xceed10,_0xd76f4f),l(this,'status',_0x3debb2(0x2a7)),(this['_acknowledgedAwaitingChangeset']=_0x331b65,this[_0x3debb2(0x485)]=_0x4bbf67,this[_0x3debb2(0x34f)]=_0x1d3338,this['_logService']=_0x3b52dc,this[_0x3debb2(0x436)]=_0x449cdd);}['onMissedChangesetFetched'](_0x19f504){const _0x2edeaf=_0x424a27;try{const _0x1d2992=[..._0x19f504,...this[_0x2edeaf(0x485)]],_0x396622=[this[_0x2edeaf(0x12c)]||this[_0x2edeaf(0x200)]][_0x2edeaf(0x2ae)](_0x10a915=>!!_0x10a915);let _0x14f948,_0x3bbca6;if(_0x396622[_0x2edeaf(0xf6)]){const _0x50267f=this[_0x2edeaf(0x436)][_0x2edeaf(0x320)](_0x1d2992,_0x396622,!0x1);if(!_0x17118b(_0x50267f))throw _0x50267f[_0x2edeaf(0x465)];_0x14f948=_0x50267f[_0x2edeaf(0x19d)],_0x3bbca6=_0x50267f[_0x2edeaf(0x2de)];}else _0x14f948=_0x1d2992,_0x3bbca6=[];let _0x3a4016=this[_0x2edeaf(0x134)];_0x14f948[_0x2edeaf(0x204)](_0x43123e=>{const _0x255798=_0x2edeaf;let _0x362cd0;if(_0x3a4016[_0x255798(0xf6)]){const _0x2c8848=this[_0x255798(0x436)][_0x255798(0x456)](_0x43123e,_0x3a4016);if(!_0x1c6d2b(_0x2c8848))throw _0x2c8848[_0x255798(0x465)];_0x362cd0=_0x2c8848['c1Prime'],_0x3a4016=_0x2c8848[_0x255798(0x3a4)];}else _0x362cd0=_0x43123e;this[_0x255798(0x2e3)](_0x362cd0);}),this[_0x2edeaf(0x200)]&&this[_0x2edeaf(0x40b)](),this[_0x2edeaf(0x12c)]&&_0x3bbca6['length']&&(_0x3bbca6[0x0][_0x2edeaf(0x25d)]=this[_0x2edeaf(0x1e1)]());let _0x4b406b;if(this['_awaitingChangeset']&&_0x3a4016['length']!==0x0)_0x4b406b=this[_0x2edeaf(0x34f)]['createInstance'](q,this[_0x2edeaf(0x2a1)],this['type'],_0x3bbca6[0x0],_0x3a4016,this[_0x2edeaf(0x16b)],void 0x0);else{if(this[_0x2edeaf(0x12c)]&&_0x3a4016['length']===0x0)_0x3bbca6[0x0]['baseRev']=this[_0x2edeaf(0x1e1)](),_0x4b406b=this['_injector']['createInstance'](Q,this[_0x2edeaf(0x2a1)],this['type'],_0x3bbca6[0x0],this['_handler']);else{if(_0x3a4016[_0x2edeaf(0xf6)]!==0x0){const _0x8ba984=this[_0x2edeaf(0x34f)][_0x2edeaf(0x3a0)](X,this[_0x2edeaf(0x2a1)],this['type'],_0x3a4016,this[_0x2edeaf(0x16b)]);_0x8ba984[_0x2edeaf(0x14e)](),_0x4b406b=_0x8ba984;}else _0x4b406b=this[_0x2edeaf(0x34f)][_0x2edeaf(0x3a0)](pe,this[_0x2edeaf(0x2a1)],this[_0x2edeaf(0x46e)],this[_0x2edeaf(0x16b)]);}}return _0x4b406b[_0x2edeaf(0x2ab)](),_0x4b406b;}catch(_0x2be231){return this[_0x2edeaf(0x3a9)]['error'](_0x2edeaf(0x488),'failed\x20to\x20apply\x20missed\x20changesets!',_0x2be231),this[_0x2edeaf(0x34f)]['createInstance'](ee,this[_0x2edeaf(0x2a1)],this[_0x2edeaf(0x46e)],this['_awaitingChangeset'],this[_0x2edeaf(0x134)],this['_handler'],!0x1);}}[_0x424a27(0x384)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x424a27(0x10c)](_0x5d984f){const _0x634d67=_0x424a27;return this[_0x634d67(0x134)][_0x634d67(0x246)](_0x5d984f),this;}[_0x424a27(0x38b)](_0x311696){const _0xef82ba=_0x424a27;return this[_0xef82ba(0x485)]['push'](_0x311696),this;}[_0x424a27(0x372)](_0xe0c46){const _0x18bb94=_0x424a27;if(this['_awaitingChangeset'])return this[_0x18bb94(0x200)]=this[_0x18bb94(0x12c)],this[_0x18bb94(0x12c)]=null,this;throw new Error(_0x18bb94(0x2d8));}['onRemoteRej'](_0x50da8f){const _0x5588f8=_0x424a27;return this[_0x5588f8(0x1a2)](!!(_0x50da8f!=null&&_0x50da8f[_0x5588f8(0x1f0)]));}[_0x424a27(0x2c6)](){return this;}[_0x424a27(0x29b)](){const _0x4b39be=_0x424a27;return this[_0x4b39be(0x34f)]['createInstance'](te,this[_0x4b39be(0x2a1)],this['type'],this[_0x4b39be(0x12c)],this[_0x4b39be(0x134)],this[_0x4b39be(0x16b)]);}[_0x424a27(0x2d4)](){return this;}[_0x424a27(0x1a2)](_0x120f1a){const _0xd02b70=_0x424a27;return this[_0xd02b70(0x34f)][_0xd02b70(0x3a0)](ee,this[_0xd02b70(0x2a1)],this[_0xd02b70(0x46e)],this[_0xd02b70(0x12c)],this[_0xd02b70(0x134)],this[_0xd02b70(0x16b)],_0x120f1a);}};B=_e([f(0x7,_0x5a29b8(_0x5503e4)),f(0x8,_0x5a29b8(_0x1fd8e1)),f(0x9,_0x5a29b8(w)),f(0xa,_0x2030cd),f(0xb,_0x4328b6),f(0xc,_0xde5684),f(0xd,_0x5edf81)],B);function Ks(_0x11fb2b,_0x130bbe,_0x19b572,_0xb0d149,_0x4bca3a,_0x145b96){const _0x526941=_0x424a27;return _0xb0d149&&_0x4bca3a[_0x526941(0xf6)]?_0x11fb2b['createInstance'](q,_0x130bbe,_0x19b572,_0xb0d149,_0x4bca3a,_0x145b96,void 0x0):_0xb0d149?_0x11fb2b[_0x526941(0x3a0)](Q,_0x130bbe,_0x19b572,_0xb0d149,_0x145b96):_0x4bca3a[_0x526941(0xf6)]?_0x11fb2b['createInstance'](X,_0x130bbe,_0x19b572,_0x4bca3a,_0x145b96):_0x11fb2b[_0x526941(0x3a0)](pe,_0x130bbe,_0x19b572,_0x145b96);}var Dr=Object[_0x424a27(0x20a)],wr=Object['getOwnPropertyDescriptor'],Wt=(_0x30e5d6,_0xecdf11,_0x61521,_0x59103f)=>{for(var _0x162fb8=_0x59103f>0x1?void 0x0:_0x59103f?wr(_0xecdf11,_0x61521):_0xecdf11,_0x23e777=_0x30e5d6['length']-0x1,_0x1a93be;_0x23e777>=0x0;_0x23e777--)(_0x1a93be=_0x30e5d6[_0x23e777])&&(_0x162fb8=(_0x59103f?_0x1a93be(_0xecdf11,_0x61521,_0x162fb8):_0x1a93be(_0x162fb8))||_0x162fb8);return _0x59103f&&_0x162fb8&&Dr(_0xecdf11,_0x61521,_0x162fb8),_0x162fb8;},p=(_0x272b9c,_0x18befb)=>(_0x4fbadf,_0x52e895)=>_0x18befb(_0x4fbadf,_0x52e895,_0x272b9c);let qe=class extends _0x49569b{constructor(_0x1d212d,_0x3fc243,_0x3f39c4,_0x2d8bca,_0x434328,_0x44c521,_0xef4cf0,_0x29c09f,_0x5bbcbf,_0x1e10d7,_0x1f4677,_0x595b06,_0x147a92){const _0x343d7f=_0x424a27;super(),l(this,_0x343d7f(0x3d1),new _0x9f2686(null)),l(this,_0x343d7f(0x322),this[_0x343d7f(0x3d1)][_0x343d7f(0x218)]()),l(this,_0x343d7f(0x124)),l(this,'_collaborationPaused',!0x1),l(this,_0x343d7f(0x19b),''),l(this,_0x343d7f(0x22b),0x0),l(this,_0x343d7f(0x461),this[_0x343d7f(0x322)]['pipe'](_0x3e3132(_0x40f4eb=>_0x40f4eb?_0x40f4eb[_0x343d7f(0x38e)]:P[_0x343d7f(0x3ed)]),_0x3f16ea(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x343d7f(0x212),[]),(this[_0x343d7f(0x2a1)]=_0x1d212d,this[_0x343d7f(0x1ab)]=_0x3fc243,this['_type']=_0x3f39c4,this[_0x343d7f(0x34f)]=_0x2d8bca,this[_0x343d7f(0x250)]=_0x434328,this[_0x343d7f(0x40a)]=_0x44c521,this['_localeService']=_0xef4cf0,this[_0x343d7f(0x15a)]=_0x29c09f,this[_0x343d7f(0x3a9)]=_0x5bbcbf,this['_commandService']=_0x1e10d7,this[_0x343d7f(0x31d)]=_0x1f4677,this['_permissionService']=_0x595b06,this[_0x343d7f(0x27c)]=_0x147a92);}get[_0x424a27(0x386)](){const _0x4e5889=_0x424a27;return this[_0x4e5889(0x124)];}async[_0x424a27(0x474)](){const _0x312561=_0x424a27;if(this['state'])throw new Error(_0x312561(0x3be));await this[_0x312561(0x285)]();}[_0x424a27(0x21c)](){return this['_collaborationPaused']=!0x0,_0x2fa5a0(()=>{const _0x1386c5=_0xaf12;this[_0x1386c5(0x1a5)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x424a27(0x362)](_0x373b87){const _0x1d6cf4=_0x424a27;this[_0x1d6cf4(0x124)]=_0x373b87,this[_0x1d6cf4(0x3d1)]['next'](_0x373b87);}async['_init'](){const _0x2a3313=_0x424a27;var _0x408c82;this[_0x2a3313(0x362)](await this['_createInitialState']()),this[_0x2a3313(0x27c)]&&((_0x408c82=this[_0x2a3313(0x27c)])==null||_0x408c82['editingUnit'](this['unitID']),this['disposeWithMe'](this[_0x2a3313(0x27c)][_0x2a3313(0x299)](this[_0x2a3313(0x2a1)])[_0x2a3313(0x45f)](_0x4e8f8c=>{const _0x52965b=_0x2a3313;this[_0x52965b(0x3a9)][_0x52965b(0x1f4)](_0x52965b(0x3fe),_0x52965b(0x251),_0x4e8f8c),_0x4e8f8c===Fs['OTHER_CLIENTS_EDITING']?(this[_0x52965b(0x31d)][_0x52965b(0x439)]({'content':this[_0x52965b(0x1fa)]['t'](_0x52965b(0x399)),'type':_0x141b61[_0x52965b(0x1be)]}),this[_0x52965b(0x30d)]['updatePermissionPoint'](new _0x264da4(this[_0x52965b(0x2a1)])['id'],!0x1)):this[_0x52965b(0x30d)][_0x52965b(0x435)](new _0x264da4(this[_0x52965b(0x2a1)])['id'],!0x0);})));let _0x3a43e1=!0x1;return this[_0x2a3313(0x227)](this[_0x2a3313(0x1ab)][_0x2a3313(0x43f)][_0x2a3313(0x45f)](_0x404998=>{const _0x245c37=_0x2a3313;_0x404998===Y[_0x245c37(0x347)]?this[_0x245c37(0x414)](_0x3a43e1):_0x404998===Y[_0x245c37(0x3ed)]&&(_0x3a43e1=!0x0,this[_0x245c37(0x37d)]());})),this[_0x2a3313(0x227)](this[_0x2a3313(0x1ab)]['event$'][_0x2a3313(0x45f)](_0x139de2=>{const _0x5657d5=_0x2a3313;try{switch(_0x139de2[_0x5657d5(0x14d)]){case _0x51f469[_0x5657d5(0x2cd)]:{this[_0x5657d5(0x2f7)](_0x3a299a(_0x139de2[_0x5657d5(0x1ad)]));break;}case _0x51f469[_0x5657d5(0x1fc)]:{this[_0x5657d5(0x1b6)](_0x139de2[_0x5657d5(0x1ad)]);break;}case _0x51f469[_0x5657d5(0x3b8)]:{this[_0x5657d5(0x47e)]();break;}case _0x51f469['CHANGESET_SHOULD_RETRY']:{this[_0x5657d5(0x2eb)](_0x139de2[_0x5657d5(0x1ad)]);break;}case _0x51f469['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x5657d5(0x29c)](_0x139de2[_0x5657d5(0x1ad)][_0x5657d5(0x264)][_0x5657d5(0x239)](_0x45beb0=>_0x3a299a(_0x45beb0)));break;}case _0x51f469['PERMISSION_REJ']:this[_0x5657d5(0x47e)]({'isPermissionRej':!0x0});}}catch(_0xee8f61){throw console[_0x5657d5(0x465)](_0x5657d5(0x2fe),_0xee8f61),_0xee8f61;}})),this[_0x2a3313(0x124)];}[_0x424a27(0x12f)](){const _0x486ddc=_0x424a27;this[_0x486ddc(0x382)]=!0x1;}[_0x424a27(0x249)](){const _0x2c3262=_0x424a27;if(this[_0x2c3262(0x382)])throw new Error(_0x2c3262(0x38c));this['_transitionLocked']=!0x0;}[_0x424a27(0x3ff)](_0x40313e){const _0x224cb3=_0x424a27;this[_0x224cb3(0x249)](),this[_0x224cb3(0x362)](this[_0x224cb3(0x124)][_0x224cb3(0x10c)](_0x40313e)),this[_0x224cb3(0x12f)]();}[_0x424a27(0x2f7)](_0x4e02fd){const _0x3e1152=_0x424a27;if(!(_0x4e02fd[_0x3e1152(0x270)]<=this[_0x3e1152(0x15a)][_0x3e1152(0x1e8)](this['unitID']))){if(this['_collaborationPaused']){this[_0x3e1152(0x212)][_0x3e1152(0x246)](_0x4e02fd);return;}this[_0x3e1152(0x308)](_0x4e02fd);}}[_0x424a27(0x2dd)](){const _0x4074f2=_0x424a27;this[_0x4074f2(0x212)]['forEach'](_0x134ca6=>this[_0x4074f2(0x308)](_0x134ca6)),this['_remoteChangesetQueue']=[];}[_0x424a27(0x308)](_0xab5cf9){const _0x203a17=_0x424a27,_0x92748f=this['_compressMutationService']['interceptor'][_0x203a17(0x319)](this[_0x203a17(0x40a)][_0x203a17(0x480)][_0x203a17(0x2a2)]()[_0x203a17(0x137)])(_0xab5cf9['mutations'],null)||_0xab5cf9['mutations'],_0x513541={..._0xab5cf9,'mutations':_0x92748f};this[_0x203a17(0x249)](),this[_0x203a17(0x362)](this['_state']['onRemoteChangeset'](_0x513541)),this[_0x203a17(0x12f)]();}[_0x424a27(0x1b6)](_0x705a5a){const _0x19f651=_0x424a27;this['_lockTransition'](),this['_updateState'](this[_0x19f651(0x124)][_0x19f651(0x372)](_0x705a5a)),this[_0x19f651(0x12f)]();}[_0x424a27(0x47e)](_0x30d788){const _0x427732=_0x424a27;this[_0x427732(0x249)](),this[_0x427732(0x362)](this['_state']['onRemoteRej'](_0x30d788)),this['_unlockTransition']();}[_0x424a27(0x2eb)](_0x2ef736){const _0x2f7633=_0x424a27;this[_0x2f7633(0x249)](),this[_0x2f7633(0x362)](this[_0x2f7633(0x124)]['onRemoteRetry'](_0x2ef736)),this[_0x2f7633(0x12f)]();}[_0x424a27(0x29c)](_0x2a64d7){const _0x144398=_0x424a27;if(!(this['_state']instanceof B))throw new TypeError(_0x144398(0x32b));const _0x184227=_0x2a64d7[_0x144398(0x239)](_0x9369af=>{const _0x5777eb=_0x144398,_0x527584=this[_0x5777eb(0x40a)][_0x5777eb(0x480)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x5777eb(0x2a2)]()[_0x5777eb(0x137)])(_0x9369af[_0x5777eb(0x14b)],null)||_0x9369af[_0x5777eb(0x14b)];return{..._0x9369af,'mutations':_0x527584};});this['_lockTransition'](),this['_updateState'](this[_0x144398(0x124)][_0x144398(0x44e)](_0x184227)),this[_0x144398(0x12f)]();}[_0x424a27(0x37d)](){const _0x3a5c0d=_0x424a27;this[_0x3a5c0d(0x249)](),this[_0x3a5c0d(0x362)](this[_0x3a5c0d(0x124)][_0x3a5c0d(0x29b)]()),this[_0x3a5c0d(0x12f)]();}[_0x424a27(0x414)](_0x308d34=!0x1){const _0x724841=_0x424a27;this['_lockTransition'](),this[_0x724841(0x362)](this['_state'][_0x724841(0x2d4)]()),this[_0x724841(0x12f)]();const _0x4ce29a=this['_state'];_0x308d34&&_0x4ce29a instanceof pe&&(this[_0x724841(0x249)](),this['_updateState'](_0x4ce29a[_0x724841(0x260)]()),this[_0x724841(0x12f)]());}async[_0x424a27(0x136)](){return new Promise(_0x24a203=>{const _0x48caeb=_0xaf12;this['session'][_0x48caeb(0x43f)]['pipe'](_0x58e005(0x1))[_0x48caeb(0x45f)](async _0x4504fa=>{const _0x5336d0=_0x48caeb;_0x24a203(await this[_0x5336d0(0x2f5)](_0x4504fa===Y['ONLINE']));});});}['_createHandler'](){const _0x45959a=_0x424a27,_0x15f1cc=this[_0x45959a(0x2a1)];return{'onStateChange':(_0x369c67,_0x1e9975)=>{const _0x35824e=_0x45959a;if(_0x369c67!==this['_state'])throw new Error(_0x35824e(0x226)+_0x369c67[_0x35824e(0x38e)]+_0x35824e(0xfa)+_0x1e9975['status']+_0x35824e(0x271)+this['_state'][_0x35824e(0x38e)]);this[_0x35824e(0x362)](_0x1e9975);},'onSendChangeset':_0x3e24f9=>{const _0x53f07c=_0x45959a;_0x3e24f9[_0x53f07c(0x3aa)]||(_0x3e24f9[_0x53f07c(0x3aa)]=this[_0x53f07c(0x19b)],_0x3e24f9['reqId']=++this['_changesetReqId']);const _0x57df8c={'eventID':_0x51f469[_0x53f07c(0x3f1)],'data':{'unitID':_0x3e24f9[_0x53f07c(0x2a1)],'unitType':this[_0x53f07c(0x20d)],'changeset':_0x3e24f9,'memberID':this[_0x53f07c(0x1ab)]['getMemberID']()}};this[_0x53f07c(0x1ab)][_0x53f07c(0x2a6)](_0x57df8c,this['unitID']);},'onMissingChangesets':({from:_0x3331b5,to:_0x34c1fe})=>{const _0x193b7c=_0x45959a;this[_0x193b7c(0x3a9)][_0x193b7c(0x1f4)]('[CollaborationEntity]',_0x193b7c(0x3de)+_0x3331b5+_0x193b7c(0x360)+_0x34c1fe);const _0xb40e52={'eventID':_0x51f469[_0x193b7c(0x3c7)],'data':{'unitID':_0x15f1cc,'unitType':this[_0x193b7c(0x20d)],'from':_0x3331b5,'to':_0x34c1fe}};this[_0x193b7c(0x1ab)][_0x193b7c(0x2a6)](_0xb40e52,this[_0x193b7c(0x2a1)]);}};}async['_createInitialStateImpl'](_0x166900){const _0x12fb0a=_0x424a27;var _0x52017b,_0x38910e;const _0x5925ca=await this['_localCacheService'][_0x12fb0a(0x31a)](this[_0x12fb0a(0x2a1)]),_0x5d7331=(_0x52017b=_0x5925ca==null?void 0x0:_0x5925ca[_0x12fb0a(0x14b)])!=null?_0x52017b:[],_0x1ca3cb=(_0x38910e=_0x5925ca==null?void 0x0:_0x5925ca[_0x12fb0a(0x2c9)])!=null?_0x38910e:null,_0x11091e=!!(_0x1ca3cb!=null&&_0x1ca3cb['sid'])&&!!(_0x1ca3cb!=null&&_0x1ca3cb[_0x12fb0a(0x470)]);this[_0x12fb0a(0x19b)]=_0x11091e?_0x1ca3cb[_0x12fb0a(0x3aa)]:or(),this[_0x12fb0a(0x22b)]=_0x11091e?_0x1ca3cb[_0x12fb0a(0x470)]:0x0;const _0x431012=this['unitID'];try{this[_0x12fb0a(0x2f4)](_0x1ca3cb,_0x5d7331);}catch(_0x1dffd0){this[_0x12fb0a(0x3a9)][_0x12fb0a(0x465)](_0x1dffd0);}const _0x315dac=this[_0x12fb0a(0x2f3)]();if(_0x166900){const _0x4ce164=Ks(this[_0x12fb0a(0x34f)],_0x431012,this[_0x12fb0a(0x20d)],_0x1ca3cb,_0x5d7331,_0x315dac);return _0x4ce164 instanceof X?_0x4ce164[_0x12fb0a(0x14e)]():(_0x4ce164 instanceof q||_0x4ce164 instanceof Q)&&_0x4ce164['resend'](),_0x4ce164;}return this[_0x12fb0a(0x34f)][_0x12fb0a(0x3a0)](te,_0x431012,this['_type'],_0x1ca3cb,_0x5d7331,_0x315dac);}[_0x424a27(0x2f4)](_0x52c8af,_0x3524e8){const _0x43897d=_0x424a27;var _0x397925,_0x26cf90;const _0x2350a4=this[_0x43897d(0x40a)][_0x43897d(0x480)][_0x43897d(0x319)](this['_compressMutationService'][_0x43897d(0x480)][_0x43897d(0x2a2)]()[_0x43897d(0x137)]);(_0x397925=_0x2350a4((_0x52c8af==null?void 0x0:_0x52c8af[_0x43897d(0x14b)])||[],null))==null||_0x397925[_0x43897d(0x204)](_0xe69288=>this['_commandService'][_0x43897d(0x281)](_0xe69288['id'],_0xe69288[_0x43897d(0x42b)])),(_0x26cf90=_0x2350a4(_0x3524e8||[],null))==null||_0x26cf90['forEach'](_0x3c95eb=>this['_commandService'][_0x43897d(0x281)](_0x3c95eb['id'],_0x3c95eb['params']));}};qe=Wt([p(0x3,_0x5a29b8(_0x5503e4)),p(0x4,_0x5a29b8(w)),p(0x5,_0x5a29b8(_0x313732)),p(0x6,_0x5a29b8(_0x34277f)),p(0x7,_0x5a29b8(_0x1fd8e1)),p(0x8,_0x2030cd),p(0x9,_0x4328b6),p(0xa,_0x306a76),p(0xb,_0x51263e),p(0xc,_0x2c7ffc(tt))],qe);let Tt=class extends qe{constructor(_0xbd270c,_0x2a093d,_0x1f3c32,_0x10d388,_0x5fe73,_0x294e20,_0x52bcdf,_0x32ac62,_0x27e14a,_0x2f5762,_0x250cca,_0xd7b6ed,_0x37a476,_0x34424e,_0x226a7e,_0x4e2119,_0x2f44e1){const _0x135e99=_0x424a27;super(_0xbd270c,_0x1f3c32,_0x2a093d,_0x10d388,_0x5fe73,_0x294e20,_0x52bcdf,_0x32ac62,_0x37a476,_0x34424e,_0x226a7e,_0x4e2119,_0x2f44e1),this['unitID']=_0xbd270c,this[_0x135e99(0x46e)]=_0x2a093d,this[_0x135e99(0x3ba)]=_0x27e14a,this[_0x135e99(0x179)]=_0x2f5762,this[_0x135e99(0x301)]=_0x250cca,this['_docSyncEditingCollabCursorService']=_0xd7b6ed;}[_0x424a27(0x2f3)](){const _0x2dd56e=_0x424a27,_0x5a447b=super[_0x2dd56e(0x2f3)]();return _0x5a447b[_0x2dd56e(0x3b2)]=_0x262925=>this['_docTransformIMECacheService'][_0x2dd56e(0x3d7)](_0x262925),_0x5a447b[_0x2dd56e(0x313)]=_0x4b9e72=>this[_0x2dd56e(0x301)][_0x2dd56e(0x3f3)](_0x4b9e72),_0x5a447b[_0x2dd56e(0x18e)]=_0x26a9f2=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x26a9f2),_0x5a447b[_0x2dd56e(0x2df)]=_0x460efb=>this[_0x2dd56e(0x179)]['transformRemoteChangeset'](_0x460efb),_0x5a447b;}async[_0x424a27(0x285)](){const _0x9b85f9=_0x424a27,_0x5a015f=await super[_0x9b85f9(0x285)]();return this[_0x9b85f9(0x3ba)]['docStateChange$']['pipe'](_0x1406ee(this[_0x9b85f9(0x44c)]))[_0x9b85f9(0x45f)](_0x1d9822=>{const _0x427633=_0x9b85f9;if(_0x1d9822==null)return;const {unitId:_0x3925fa,redoState:_0x526b74,commandId:_0x277ed7}=_0x1d9822;if(_0x3925fa!==this['unitID'])return;const _0x418c33={'id':_0x277ed7,'type':_0xe4895[_0x427633(0x2d3)],'params':{'unitId':_0x3925fa,'actions':_0x526b74[_0x427633(0x267)],'textRanges':null}};this[_0x427633(0x3ff)](_0x418c33);}),_0x5a015f;}};Tt=Wt([p(0x3,_0x5a29b8(_0x5503e4)),p(0x4,_0x5a29b8(w)),p(0x5,_0x5a29b8(_0x313732)),p(0x6,_0x5a29b8(_0x34277f)),p(0x7,_0x5a29b8(_0x1fd8e1)),p(0x8,_0x5a29b8(_0x1e509e)),p(0x9,_0x5a29b8(Ye)),p(0xa,_0x5a29b8(Xe)),p(0xb,_0x5a29b8(Ft)),p(0xc,_0x2030cd),p(0xd,_0x4328b6),p(0xe,_0x306a76),p(0xf,_0x51263e),p(0x10,_0x2c7ffc(tt))],Tt);let Rt=class extends qe{constructor(_0x599b86,_0x22739a,_0x187869,_0x27b643,_0x33874e,_0x1231c5,_0x584f1f,_0x10736d,_0x2d7c3a,_0x8f1a94,_0xa20fa6,_0x1532c0,_0x69e617,_0x19a8b0){const _0x2834b1=_0x424a27;super(_0x599b86,_0x187869,_0x22739a,_0x27b643,_0x33874e,_0x1231c5,_0x584f1f,_0x10736d,_0x8f1a94,_0xa20fa6,_0x1532c0,_0x69e617,_0x19a8b0),this[_0x2834b1(0x2a1)]=_0x599b86,this[_0x2834b1(0x46e)]=_0x22739a,this[_0x2834b1(0x318)]=_0x2d7c3a;}['_createHandler'](){const _0x392fd3=_0x424a27,_0x431a31=super['_createHandler']();return _0x431a31[_0x392fd3(0x313)]=_0x3f074f=>this[_0x392fd3(0x318)][_0x392fd3(0x3f3)](_0x3f074f),_0x431a31;}async[_0x424a27(0x285)](){const _0x419e7b=_0x424a27,_0x14994a=await super['_init']();return this['disposeWithMe'](this[_0x419e7b(0x451)][_0x419e7b(0x230)]((_0x55808d,_0x41f3c7)=>{const _0x3bf171=_0x419e7b;if(_0x55808d['type']!==_0xe4895[_0x3bf171(0x2d3)]||_0x41f3c7!=null&&_0x41f3c7['fromCollab']||_0x41f3c7!=null&&_0x41f3c7[_0x3bf171(0x18c)])return;const _0xe465aa=_0x55808d[_0x3bf171(0x42b)];if((_0xe465aa==null?void 0x0:_0xe465aa[_0x3bf171(0x3bc)])!==this[_0x3bf171(0x2a1)])return;const _0x31f837=_0x55808d,_0x5487ee=this[_0x3bf171(0x40a)]['interceptor'][_0x3bf171(0x319)](this[_0x3bf171(0x40a)][_0x3bf171(0x480)][_0x3bf171(0x2a2)]()['COMPRESS_MUTATION_SEND'])([_0x31f837],null)||[_0x31f837];this[_0x3bf171(0x3ff)](_0x5487ee[0x0]);})),_0x14994a;}};Rt=Wt([p(0x3,_0x5a29b8(_0x5503e4)),p(0x4,_0x5a29b8(w)),p(0x5,_0x5a29b8(_0x313732)),p(0x6,_0x5a29b8(_0x34277f)),p(0x7,_0x5a29b8(_0x1fd8e1)),p(0x8,_0x5a29b8(Ke)),p(0x9,_0x2030cd),p(0xa,_0x4328b6),p(0xb,_0x306a76),p(0xc,_0x51263e),p(0xd,_0x2c7ffc(tt))],Rt);var Pr=Object[_0x424a27(0x20a)],yr=Object['getOwnPropertyDescriptor'],Ur=(_0x31610f,_0x2ac920,_0x42845d,_0x5b45ee)=>{for(var _0xb0852f=_0x5b45ee>0x1?void 0x0:_0x5b45ee?yr(_0x2ac920,_0x42845d):_0x2ac920,_0x3694c4=_0x31610f['length']-0x1,_0x597c9b;_0x3694c4>=0x0;_0x3694c4--)(_0x597c9b=_0x31610f[_0x3694c4])&&(_0xb0852f=(_0x5b45ee?_0x597c9b(_0x2ac920,_0x42845d,_0xb0852f):_0x597c9b(_0xb0852f))||_0xb0852f);return _0x5b45ee&&_0xb0852f&&Pr(_0x2ac920,_0x42845d,_0xb0852f),_0xb0852f;},_t=(_0x42b1d0,_0x267518)=>(_0x37a862,_0x3ea35c)=>_0x267518(_0x37a862,_0x3ea35c,_0x42b1d0);let Le=class extends _0x49569b{constructor(_0x5b2533,_0x329706,_0x393d59){const _0x15e5da=_0x424a27;super(),l(this,_0x15e5da(0x188),new Map()),l(this,_0x15e5da(0x27e),new _0x10bfa5()),(this['_injector']=_0x5b2533,this[_0x15e5da(0x2ea)]=_0x329706,this[_0x15e5da(0x28f)]=_0x393d59,this['_init']());}[_0x424a27(0x258)](){const _0x41d39f=_0x424a27;super[_0x41d39f(0x258)](),this[_0x41d39f(0x188)]['forEach'](_0x317da8=>_0x317da8[_0x41d39f(0x258)]()),this[_0x41d39f(0x188)][_0x41d39f(0x457)]();}[_0x424a27(0x3e7)](_0x42c9c9){const _0x37d221=_0x424a27;var _0x278e44;return(_0x278e44=this[_0x37d221(0x188)][_0x37d221(0x310)](_0x42c9c9))!=null?_0x278e44:null;}['getCollabEntity$'](_0x3dc602){const _0x1a2179=_0x424a27,_0x201ec8=this['getCollabEntity'](_0x3dc602);return _0x201ec8?_0x49206c(_0x201ec8):this['_entityInit$']['pipe'](_0xfe9a5f(_0x271020=>_0x271020[_0x1a2179(0x2a1)]===_0x3dc602));}[_0x424a27(0x285)](){const _0x562b6d=_0x424a27;this[_0x562b6d(0x28f)][_0x562b6d(0x464)](_0x4d4554[_0x562b6d(0x135)])[_0x562b6d(0x479)](_0x1406ee(this['dispose$']),_0x95c889(0x10))[_0x562b6d(0x45f)](async _0x5038fc=>{const _0x2bb6d4=_0x562b6d,_0x247461=_0x5038fc['getUnitId'](),_0x5b6803=await this['_startCollaboration'](_0x247461,k[_0x2bb6d4(0x135)]);this[_0x2bb6d4(0x188)][_0x2bb6d4(0x3a3)](_0x247461,_0x5b6803);}),this[_0x562b6d(0x28f)][_0x562b6d(0x464)](_0x4d4554[_0x562b6d(0x346)])[_0x562b6d(0x479)](_0x1406ee(this[_0x562b6d(0x44c)]),_0x95c889(0x10))[_0x562b6d(0x479)](_0xfe9a5f(_0x5ac938=>!_0x5ac938[_0x562b6d(0xf7)]()[_0x562b6d(0x44a)]('__')))[_0x562b6d(0x45f)](async _0x26a797=>{const _0x14a0cc=_0x562b6d,_0x366436=_0x26a797[_0x14a0cc(0xf7)](),_0x330866=await this[_0x14a0cc(0x35c)](_0x366436,k['UNIVER_DOC']);this[_0x14a0cc(0x188)][_0x14a0cc(0x3a3)](_0x366436,_0x330866);}),_0x38e413(this[_0x562b6d(0x28f)][_0x562b6d(0x113)](_0x4d4554[_0x562b6d(0x135)]),this[_0x562b6d(0x28f)][_0x562b6d(0x113)](_0x4d4554[_0x562b6d(0x346)]))[_0x562b6d(0x479)](_0x1406ee(this[_0x562b6d(0x44c)]))['subscribe'](_0x327b2b=>{const _0x6a34db=_0x562b6d,_0x2f3fdd=_0x327b2b[_0x6a34db(0xf7)](),_0xd4eb4d=this[_0x6a34db(0x188)][_0x6a34db(0x310)](_0x2f3fdd);_0xd4eb4d&&(_0xd4eb4d[_0x6a34db(0x258)](),this[_0x6a34db(0x188)]['delete'](_0x2f3fdd));});}async[_0x424a27(0x35c)](_0x5144ea,_0x1d961d){const _0x21a0ac=_0x424a27,_0x3a3d8d=await this['_collabSessionService'][_0x21a0ac(0x2b7)](_0x5144ea),_0x258395=this[_0x21a0ac(0x34f)][_0x21a0ac(0x3a0)](this[_0x21a0ac(0x1f3)](_0x1d961d),_0x5144ea,_0x1d961d,_0x3a3d8d);return await _0x258395[_0x21a0ac(0x474)](),this[_0x21a0ac(0x27e)]['next'](_0x258395),_0x258395;}[_0x424a27(0x1f3)](_0x42af93){const _0xe953f4=_0x424a27;switch(_0x42af93){case k['UNIVER_DOC']:return Tt;case k[_0xe953f4(0x135)]:return Rt;default:throw new Error(_0xe953f4(0x26d)+_0x42af93);}}};Le=Ur([_t(0x0,_0x5a29b8(_0x5503e4)),_t(0x1,_0x5a29b8(he)),_t(0x2,_0x1528d5)],Le);const ms=['purple300','jiqing500',_0x424a27(0x29f),_0x424a27(0x3e3),_0x424a27(0x48d),_0x424a27(0x2a9)];class Gt extends _0x118ead{constructor(){const _0xf209bf=_0x424a27;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0xf209bf(0x3ef),0x0);}[_0x424a27(0x23d)](_0x42ccd7){const _0x70a5ae=_0x424a27;if(this[_0x70a5ae(0x262)][_0x70a5ae(0x3e1)](_0x42ccd7))return this['_assignedColors'][_0x70a5ae(0x310)](_0x42ccd7);const _0x47109a=ms[this['_colorIndex']];return this[_0x70a5ae(0x3ef)]=(this[_0x70a5ae(0x3ef)]+0x1)%ms[_0x70a5ae(0xf6)],this[_0x70a5ae(0x262)][_0x70a5ae(0x3a3)](_0x42ccd7,_0x47109a),_0x47109a;}}var Nr=Object['defineProperty'],Mr=Object['getOwnPropertyDescriptor'],Ar=(_0x332425,_0x31cde8,_0x50e8e6,_0x3ae665)=>{const _0x5a900a=_0x424a27;for(var _0x28c42b=_0x3ae665>0x1?void 0x0:_0x3ae665?Mr(_0x31cde8,_0x50e8e6):_0x31cde8,_0x12f6ee=_0x332425[_0x5a900a(0xf6)]-0x1,_0x55748a;_0x12f6ee>=0x0;_0x12f6ee--)(_0x55748a=_0x332425[_0x12f6ee])&&(_0x28c42b=(_0x3ae665?_0x55748a(_0x31cde8,_0x50e8e6,_0x28c42b):_0x55748a(_0x28c42b))||_0x28c42b);return _0x3ae665&&_0x28c42b&&Nr(_0x31cde8,_0x50e8e6,_0x28c42b),_0x28c42b;},ie=(_0x177bb6,_0x27f77f)=>(_0x2a2868,_0x3beda6)=>_0x27f77f(_0x2a2868,_0x3beda6,_0x177bb6);const Lr=0x12c,$r=0x64;let Ot=class extends _0x49569b{constructor(_0xd87f39,_0x18dab9,_0xbf2758,_0x14c21d,_0x15f3cb,_0x45eac3,_0x23aa1d,_0x4464c1,_0x9d7113){const _0x14170d=_0x424a27;super(),l(this,_0x14170d(0x432),!0x1),l(this,_0x14170d(0x285),!0x1),l(this,'_cursorInfo$',new _0x9f2686(new Map())),l(this,_0x14170d(0x36d),this['_cursorInfo$']['asObservable']()),l(this,_0x14170d(0x3ea),new _0x9f2686([])),l(this,_0x14170d(0x3f2),this[_0x14170d(0x3ea)][_0x14170d(0x479)](_0xba228f(Lr))),l(this,_0x14170d(0x173),_0x2b5536(_0x1bc58c=>{const _0x9f0a84=_0x14170d,_0x1ece7d={'eventID':_0x51f469['UPDATE_CURSOR'],'data':{'unitID':this[_0x9f0a84(0x2a1)],'memberID':this[_0x9f0a84(0x3e2)]['getMemberID'](),'selection':Ws(_0x1bc58c)}};this[_0x9f0a84(0x3e2)][_0x9f0a84(0x2a6)](_0x1ece7d,this[_0x9f0a84(0x2a1)]);},$r)),(this[_0x14170d(0x2a1)]=_0xd87f39,this['_session']=_0x18dab9,this[_0x14170d(0x34f)]=_0xbf2758,this[_0x14170d(0x466)]=_0x14c21d,this[_0x14170d(0x168)]=_0x15f3cb,this[_0x14170d(0x42e)]=_0x45eac3,this[_0x14170d(0x436)]=_0x23aa1d,this[_0x14170d(0x28f)]=_0x4464c1,this[_0x14170d(0x451)]=_0x9d7113);}get[_0x424a27(0x419)](){const _0x22eb42=_0x424a27;return this[_0x22eb42(0x35d)][_0x22eb42(0x422)]();}get[_0x424a27(0x149)](){const _0x251e5e=_0x424a27;return this[_0x251e5e(0x3ea)][_0x251e5e(0x422)]();}[_0x424a27(0x258)](){const _0x481c5d=_0x424a27;super[_0x481c5d(0x258)](),this[_0x481c5d(0x35d)]['next'](new Map()),this[_0x481c5d(0x35d)][_0x481c5d(0x21a)](),this[_0x481c5d(0x3ea)][_0x481c5d(0x23b)]([]),this[_0x481c5d(0x3ea)][_0x481c5d(0x21a)]();}[_0x424a27(0x474)](){const _0x2ebb2e=_0x424a27;this['_init']||(this[_0x2ebb2e(0x285)]=!0x0,this[_0x2ebb2e(0x3e2)]['sessionStatus$'][_0x2ebb2e(0x479)](_0x1406ee(this[_0x2ebb2e(0x44c)]))[_0x2ebb2e(0x45f)](_0x277e8e=>{const _0x48c4ce=_0x2ebb2e;_0x277e8e===Y[_0x48c4ce(0x347)]?this[_0x48c4ce(0x414)]():this[_0x48c4ce(0x37d)]();}),this[_0x2ebb2e(0x3e2)]['event$']['pipe'](_0x1406ee(this[_0x2ebb2e(0x44c)]))[_0x2ebb2e(0x45f)](_0x551c6a=>{const _0x31dad2=_0x2ebb2e,_0x5ccd3b=_0x551c6a[_0x31dad2(0x14d)];_0x5ccd3b===_0x51f469[_0x31dad2(0x205)]&&this['_onCursorUpdate'](_0x551c6a),_0x5ccd3b===_0x51f469[_0x31dad2(0x2e5)]&&this[_0x31dad2(0x402)](_0x551c6a);}),this['disposeWithMe'](this[_0x2ebb2e(0x451)][_0x2ebb2e(0x230)](_0x232512=>{const _0x4e167f=_0x2ebb2e,_0xc2e130=_0x232512['params'];_0xc2e130!=null&&this[_0x4e167f(0x432)]&&_0x232512['id']===_0x31c87f['id']&&_0xc2e130[_0x4e167f(0x3bc)]===this[_0x4e167f(0x2a1)]&&_0xc2e130[_0x4e167f(0x2a4)]===!0x1&&this[_0x4e167f(0x173)](_0xc2e130['ranges']);})),this[_0x2ebb2e(0x42e)]['collabCursorState$']['pipe'](_0x1406ee(this[_0x2ebb2e(0x44c)]))[_0x2ebb2e(0x45f)](_0x6a707a=>{const _0xf1a714=_0x2ebb2e;if((_0x6a707a==null?void 0x0:_0x6a707a['unitID'])!==this[_0xf1a714(0x2a1)])return;const _0x21c37b={'eventID':_0x51f469[_0xf1a714(0x205)],'data':_0x6a707a};this[_0xf1a714(0x39a)](_0x21c37b);}),this[_0x2ebb2e(0x227)](this[_0x2ebb2e(0x451)][_0x2ebb2e(0x230)](_0x12c206=>{const _0x1a6265=_0x2ebb2e;if(_0x12c206[_0x1a6265(0x42b)]==null)return;const _0x1d2b8a=_0x12c206['params'];if(_0x12c206['id']!==_0x129e5a['id']||_0x1d2b8a['unitId']!==this[_0x1a6265(0x2a1)])return;const _0x13c486={'id':_0x1a6265(0x429),'params':_0x1d2b8a},_0x1b990b=this[_0x1a6265(0x419)];for(const [_0x2873e7,_0x5a9a0a]of _0x1b990b){const _0x26b254={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x1a6265(0x2a1)],'actions':null,'textRanges':_0x5a9a0a[_0x1a6265(0x104)]}},_0x16b67b=this[_0x1a6265(0x436)][_0x1a6265(0x23a)](_0x13c486,_0x26b254,!0x1);if(_0x17a5cf(_0x16b67b))throw _0x16b67b[_0x1a6265(0x465)];_0x1b990b[_0x1a6265(0x3a3)](_0x2873e7,{..._0x5a9a0a,'ranges':_0x16b67b['m2Prime']['params'][_0x1a6265(0x27d)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x1b990b);});})));}[_0x424a27(0x39a)](_0x197c47){const _0x136176=_0x424a27;var _0x1cf124,_0x19c1a2;const {memberID:_0x19ab19,selection:_0x47fd7a}=_0x197c47[_0x136176(0x1ad)],_0x183a9b=pr(_0x47fd7a),_0x3355ef=(_0x19c1a2=(_0x1cf124=this[_0x136176(0x168)]['getMember'](this['unitID'],_0x19ab19))==null?void 0x0:_0x1cf124[_0x136176(0x2ec)])!=null?_0x19c1a2:_0x136176(0x10e),_0x297572={'color':this[_0x136176(0x466)][_0x136176(0x23d)](_0x19ab19),'name':_0x3355ef,'ranges':_0x183a9b},_0x1896b7=this[_0x136176(0x419)];_0x1896b7[_0x136176(0x3a3)](_0x19ab19,_0x297572),this[_0x136176(0x35d)][_0x136176(0x23b)](_0x1896b7);}[_0x424a27(0x402)](_0x24f9df){const _0x235fe2=_0x424a27,{memberID:_0x22ffc5}=_0x24f9df[_0x235fe2(0x1ad)],_0x1a2d51=this[_0x235fe2(0x419)];_0x1a2d51[_0x235fe2(0x1c0)](_0x22ffc5),this[_0x235fe2(0x35d)][_0x235fe2(0x23b)](_0x1a2d51);}['_toggleOnline'](){const _0x5a2d00=_0x424a27;var _0x302384;if(this[_0x5a2d00(0x432)]=!0x0,((_0x302384=this[_0x5a2d00(0x28f)][_0x5a2d00(0x228)]())==null?void 0x0:_0x302384[_0x5a2d00(0xf7)]())!==this['unitID'])return;const _0x38e645=this[_0x5a2d00(0x34f)][_0x5a2d00(0x310)](_0x2e81ec)[_0x5a2d00(0x401)]();Array['isArray'](_0x38e645)&&_0x38e645['length']>0x0&&this[_0x5a2d00(0x173)](_0x38e645);}[_0x424a27(0x37d)](){this['_online']=!0x1;}};Ot=Ar([ie(0x2,_0x5a29b8(_0x5503e4)),ie(0x3,_0x5a29b8(Gt)),ie(0x4,_0x5a29b8(ce)),ie(0x5,_0x5a29b8(Ft)),ie(0x6,_0x5edf81),ie(0x7,_0x1528d5),ie(0x8,_0x4328b6)],Ot);var jr=Object[_0x424a27(0x20a)],Hr=Object[_0x424a27(0x483)],xr=(_0x3ae815,_0x1e530a,_0x4e70aa,_0x76d297)=>{const _0x40ef2d=_0x424a27;for(var _0x424298=_0x76d297>0x1?void 0x0:_0x76d297?Hr(_0x1e530a,_0x4e70aa):_0x1e530a,_0x35e5a6=_0x3ae815[_0x40ef2d(0xf6)]-0x1,_0x4a0ca0;_0x35e5a6>=0x0;_0x35e5a6--)(_0x4a0ca0=_0x3ae815[_0x35e5a6])&&(_0x424298=(_0x76d297?_0x4a0ca0(_0x1e530a,_0x4e70aa,_0x424298):_0x4a0ca0(_0x424298))||_0x424298);return _0x76d297&&_0x424298&&jr(_0x1e530a,_0x4e70aa,_0x424298),_0x424298;},fe=(_0x33b872,_0x2c8005)=>(_0x2fc7ac,_0x1ac331)=>_0x2c8005(_0x2fc7ac,_0x1ac331,_0x33b872);const kr=0x12c,Br=0x64,Vr=()=>{let _0x44068c=[],_0x42fc74=!0x1;return _0x1d43a4=>{const _0x15cbad=_0xaf12;_0x44068c[_0x15cbad(0x246)](_0x1d43a4),_0x42fc74||(_0x42fc74=!0x0,setTimeout(()=>{_0x44068c['forEach'](_0x4e2594=>_0x4e2594()),_0x44068c=[],_0x42fc74=!0x1;}));};};let Dt=class extends _0x49569b{constructor(_0x45de44,_0x10d90e,_0x141d9d,_0x11a9c1,_0x388cf5,_0x15360a,_0x168787,_0x3a4d5e){const _0x1fa991=_0x424a27;super(),l(this,_0x1fa991(0x432),!0x1),l(this,_0x1fa991(0x285),!0x1),l(this,_0x1fa991(0x35d),new _0x9f2686(new Map())),l(this,_0x1fa991(0x36d),this[_0x1fa991(0x35d)][_0x1fa991(0x218)]()),l(this,_0x1fa991(0x3ea),new _0x9f2686([])),l(this,'roomMembers$',this['_roomMembers$']['pipe'](_0xba228f(kr))),l(this,'_updateLocalCursor',_0x2b5536((_0x230991,_0x50b2e1)=>{const _0x50f1b=_0x1fa991,_0x8bc5c9={'eventID':_0x51f469[_0x50f1b(0x205)],'data':{'unitID':this[_0x50f1b(0x2a1)],'memberID':this[_0x50f1b(0x3e2)][_0x50f1b(0x247)](),'selection':_0x3c226e(_0x230991,_0x50b2e1[_0x50f1b(0x28a)])}};this[_0x50f1b(0x3e2)][_0x50f1b(0x2a6)](_0x8bc5c9,this['unitID']);},Br)),(this[_0x1fa991(0x2a1)]=_0x45de44,this[_0x1fa991(0x3e2)]=_0x10d90e,this[_0x1fa991(0x34f)]=_0x141d9d,this[_0x1fa991(0x466)]=_0x11a9c1,this['_memberService']=_0x388cf5,this[_0x1fa991(0x28f)]=_0x15360a,this['_commandService']=_0x168787,this[_0x1fa991(0x101)]=_0x3a4d5e);}get[_0x424a27(0x419)](){const _0x3bd3d3=_0x424a27;return this[_0x3bd3d3(0x35d)]['getValue']();}get[_0x424a27(0x149)](){const _0x4aa285=_0x424a27;return this[_0x4aa285(0x3ea)]['getValue']();}[_0x424a27(0x258)](){const _0x4eefef=_0x424a27;super[_0x4eefef(0x258)](),this['_cursorInfo$'][_0x4eefef(0x23b)](new Map()),this[_0x4eefef(0x35d)][_0x4eefef(0x21a)](),this['_roomMembers$']['next']([]),this[_0x4eefef(0x3ea)][_0x4eefef(0x21a)]();}['init'](){const _0x2a955b=_0x424a27;this[_0x2a955b(0x285)]||(this[_0x2a955b(0x285)]=!0x0,this[_0x2a955b(0x3e2)]['sessionStatus$'][_0x2a955b(0x479)](_0x1406ee(this[_0x2a955b(0x44c)]))[_0x2a955b(0x45f)](_0x3869d2=>{const _0x2854e2=_0x2a955b;_0x3869d2===Y['ONLINE']?this[_0x2854e2(0x414)]():this[_0x2854e2(0x37d)]();}),this[_0x2a955b(0x3e2)][_0x2a955b(0x18b)][_0x2a955b(0x479)](_0x1406ee(this[_0x2a955b(0x44c)]))[_0x2a955b(0x45f)](_0x88e239=>{const _0x4731bf=_0x2a955b,_0x53ea74=_0x88e239[_0x4731bf(0x14d)];_0x53ea74===_0x51f469['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x88e239),_0x53ea74===_0x51f469[_0x4731bf(0x2e5)]&&this[_0x4731bf(0x402)](_0x88e239);}),this[_0x2a955b(0x2aa)](),this[_0x2a955b(0x227)](this['_commandService']['onCommandExecuted'](_0x1d3d77=>{const _0x3e4fda=_0x2a955b;if(this[_0x3e4fda(0x432)]&&_0x1d3d77['id']===_0x54411d['id']&&_0x1d3d77[_0x3e4fda(0x42b)][_0x3e4fda(0x3bc)]===this[_0x3e4fda(0x2a1)]){const _0xb8bf54=_0x1d3d77[_0x3e4fda(0x42b)];this[_0x3e4fda(0x173)](_0xb8bf54[_0x3e4fda(0x3d3)],_0xb8bf54[_0x3e4fda(0x138)][0x0]);}})));}[_0x424a27(0x39a)](_0x50c27c){const _0x46db3a=_0x424a27;var _0x463437,_0x2397ba;const {memberID:_0x20e9af,selection:_0x2faf37}=_0x50c27c[_0x46db3a(0x1ad)],{sheetName:_0x5049bf,range:_0x577c37}=_0x244676(_0x2faf37),_0x42ef0a={'name':(_0x2397ba=(_0x463437=this[_0x46db3a(0x168)]['getMember'](this[_0x46db3a(0x2a1)],_0x20e9af))==null?void 0x0:_0x463437[_0x46db3a(0x2ec)])!=null?_0x2397ba:_0x46db3a(0x10e),'range':this[_0x46db3a(0x1f7)](_0x5049bf,_0x577c37),'sheetID':_0x5049bf,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x20e9af),'selection':_0x2faf37},_0x5cd082=this[_0x46db3a(0x419)];_0x5cd082['set'](_0x20e9af,_0x42ef0a),this['_cursorInfo$'][_0x46db3a(0x23b)](_0x5cd082);}[_0x424a27(0x402)](_0x289cd0){const _0x431b1e=_0x424a27,{memberID:_0x1ed2d8}=_0x289cd0['data'],_0x4acde2=this[_0x431b1e(0x419)];_0x4acde2[_0x431b1e(0x1c0)](_0x1ed2d8),this[_0x431b1e(0x35d)][_0x431b1e(0x23b)](_0x4acde2);}[_0x424a27(0x1f7)](_0x4380ff,_0x5542c){const _0x406f1b=_0x424a27;var _0x501b1f,_0x487a6f;const _0x5e3a42=(_0x487a6f=(_0x501b1f=this[_0x406f1b(0x28f)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x501b1f[_0x406f1b(0x24b)](_0x4380ff))==null?void 0x0:_0x487a6f[_0x406f1b(0x2e1)]();return(_0x5e3a42==null?void 0x0:_0x5e3a42[_0x406f1b(0x1d9)](_0x3cc480=>_0x11086f[_0x406f1b(0x30b)](_0x3cc480,_0x5542c)))||_0x5542c;}[_0x424a27(0x2aa)](){const _0x27bc58=_0x424a27,_0xe9c0c2=new _0x2a1629(),_0x911c25=Vr(),_0x2979cb=()=>{const _0x5c927d=_0xaf12;_0xe9c0c2[_0x5c927d(0x258)]();const _0x30410f=(_0x4b28aa,_0x543f44,_0x48d3ea,_0x584579)=>{const _0x4d2cd2=_0x5c927d;let _0x2172d7=[];switch(_0x4b28aa['id']){case _0x3fdbfe[_0x4d2cd2(0x1cb)]:{_0x2172d7=_0x3becf5(_0x4b28aa,_0x584579);break;}case _0x3fdbfe[_0x4d2cd2(0x28e)]:{_0x2172d7=_0x1556f2(_0x4b28aa,_0x584579);break;}case _0x3fdbfe[_0x4d2cd2(0x3c0)]:{_0x2172d7=_0x5632d4(_0x4b28aa,_0x584579);break;}case _0x3fdbfe[_0x4d2cd2(0x47f)]:{_0x2172d7=_0x4e6608(_0x4b28aa,_0x584579);break;}case _0x3fdbfe[_0x4d2cd2(0x165)]:{_0x2172d7=_0x3486b1(_0x4b28aa,_0x584579);break;}case _0x3fdbfe[_0x4d2cd2(0x3ee)]:{_0x2172d7=_0x1a43eb(_0x4b28aa,_0x584579);break;}case _0x3fdbfe[_0x4d2cd2(0x3c3)]:{_0x2172d7=_0x448153(_0x4b28aa,_0x584579);break;}case _0x3fdbfe['RemoveColCommandId']:{_0x2172d7=_0x1f0533(_0x4b28aa,_0x584579);break;}case _0x3fdbfe[_0x4d2cd2(0x303)]:{_0x2172d7=_0x23e733(_0x4b28aa,_0x584579);break;}}const _0x4d7f67=_0x2fe206(_0x2172d7,_0x584579),_0x2f3887=this[_0x4d2cd2(0x419)][_0x4d2cd2(0x310)](_0x543f44);if(_0x2f3887&&_0x4d7f67){const _0x2f4654={..._0x2f3887,'range':_0x4d7f67};this[_0x4d2cd2(0x419)]['set'](_0x543f44,_0x2f4654),_0x911c25(()=>{const _0x246fbe=_0x4d2cd2,_0x1a6044=this['_refRangeService'][_0x246fbe(0x363)](_0x4d7f67,_0x1a0307=>(_0x1a6044[_0x246fbe(0x258)](),_0x30410f(_0x1a0307,_0x543f44,_0x48d3ea,_0x4d7f67)));_0xe9c0c2[_0x246fbe(0x143)](_0x1a6044);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x5c927d(0x204)]((_0x387a74,_0xb2c3c9)=>{const _0x50c1c8=_0x5c927d,{range:_0x5f9fce,sheetID:_0x262b97}=_0x387a74,_0x2c25d5=this[_0x50c1c8(0x101)][_0x50c1c8(0x363)](_0x5f9fce,_0x47942f=>(_0x2c25d5[_0x50c1c8(0x258)](),_0x30410f(_0x47942f,_0xb2c3c9,_0x262b97,_0x5f9fce)));_0xe9c0c2[_0x50c1c8(0x143)](_0x2c25d5);});};this[_0x27bc58(0x227)](_0x2fa5a0(this[_0x27bc58(0x35d)][_0x27bc58(0x45f)](()=>{_0x2979cb();})));}[_0x424a27(0x414)](){const _0x82ceab=_0x424a27;var _0x23ccb9,_0x31d7cf;if(this[_0x82ceab(0x432)]=!0x0,((_0x23ccb9=this[_0x82ceab(0x28f)][_0x82ceab(0x228)]())==null?void 0x0:_0x23ccb9[_0x82ceab(0xf7)]())!==this[_0x82ceab(0x2a1)])return;const _0x276f33=(_0x31d7cf=this['_injector']['get'](_0x112aa6)['getCurrentSelections']())==null?void 0x0:_0x31d7cf[0x0],_0x123e0f=this[_0x82ceab(0x28f)][_0x82ceab(0x127)](_0x4d4554['UNIVER_SHEET'])[_0x82ceab(0x34d)]();_0x276f33&&_0x123e0f&&this['_updateLocalCursor'](_0x123e0f[_0x82ceab(0x164)](),_0x276f33);}[_0x424a27(0x37d)](){const _0x17a3ae=_0x424a27;this[_0x17a3ae(0x432)]=!0x1;}};Dt=xr([fe(0x2,_0x5a29b8(_0x5503e4)),fe(0x3,_0x5a29b8(Gt)),fe(0x4,_0x5a29b8(ce)),fe(0x5,_0x1528d5),fe(0x6,_0x4328b6),fe(0x7,_0x5a29b8(_0x5ec67a))],Dt);var Fr=Object['defineProperty'],Wr=Object[_0x424a27(0x483)],Gr=(_0xfb829,_0x26b935,_0xec7d9b,_0x43dac7)=>{const _0x4a1f05=_0x424a27;for(var _0x1764fd=_0x43dac7>0x1?void 0x0:_0x43dac7?Wr(_0x26b935,_0xec7d9b):_0x26b935,_0x2c9194=_0xfb829[_0x4a1f05(0xf6)]-0x1,_0x52c8e4;_0x2c9194>=0x0;_0x2c9194--)(_0x52c8e4=_0xfb829[_0x2c9194])&&(_0x1764fd=(_0x43dac7?_0x52c8e4(_0x26b935,_0xec7d9b,_0x1764fd):_0x52c8e4(_0x1764fd))||_0x1764fd);return _0x43dac7&&_0x1764fd&&Fr(_0x26b935,_0xec7d9b,_0x1764fd),_0x1764fd;},ut=(_0x4d7b89,_0x3907bd)=>(_0x1bfe1e,_0x3994bf)=>_0x3907bd(_0x1bfe1e,_0x3994bf,_0x4d7b89);let ve=class extends _0x49569b{constructor(_0x4f5f58,_0x3c6a03,_0x13f259){const _0x3f568c=_0x424a27;super(),l(this,_0x3f568c(0x188),new Map()),l(this,_0x3f568c(0x27e),new _0x10bfa5()),(this['_univerInstanceService']=_0x4f5f58,this[_0x3f568c(0x34f)]=_0x3c6a03,this[_0x3f568c(0x2ea)]=_0x13f259,this[_0x3f568c(0x285)]());}['dispose'](){const _0x3f640e=_0x424a27;super[_0x3f640e(0x258)](),this[_0x3f640e(0x27e)][_0x3f640e(0x21a)](),this['_entities']['forEach'](_0x5a6251=>_0x5a6251[_0x3f640e(0x258)]());}[_0x424a27(0x2c4)](_0x5c7569){const _0x70e54f=_0x424a27;return this['_entities']['has'](_0x5c7569)?this['_entities']['get'](_0x5c7569)[_0x70e54f(0x36d)]:this['_entityInit$'][_0x70e54f(0x479)](_0x55c3b1(_0x133cbf=>_0x133cbf[_0x70e54f(0x2a1)]===_0x5c7569),_0x58e949(_0x5f5cb6=>_0x5f5cb6[_0x70e54f(0x36d)]));}['_init'](){const _0x404dce=_0x424a27;this[_0x404dce(0x28f)][_0x404dce(0x464)](_0x4d4554['UNIVER_SHEET'])[_0x404dce(0x479)](_0x1406ee(this['dispose$']))[_0x404dce(0x45f)](async _0x35db94=>{const _0x3ae368=_0x404dce,_0x47deea=_0x35db94[_0x3ae368(0xf7)](),_0x444118=await this[_0x3ae368(0x467)](_0x47deea);this[_0x3ae368(0x27e)]['next'](_0x444118),this['_entities']['set'](_0x47deea,_0x444118);}),this[_0x404dce(0x28f)][_0x404dce(0x464)](_0x4d4554[_0x404dce(0x346)])[_0x404dce(0x479)](_0x1406ee(this[_0x404dce(0x44c)]))['pipe'](_0x55c3b1(_0x243e7b=>!_0x243e7b[_0x404dce(0xf7)]()['startsWith']('__')))[_0x404dce(0x45f)](async _0x45e037=>{const _0x1ad5cf=_0x404dce,_0xa59ab=_0x45e037[_0x1ad5cf(0xf7)](),_0x419820=await this[_0x1ad5cf(0x1ae)](_0xa59ab);this[_0x1ad5cf(0x27e)][_0x1ad5cf(0x23b)](_0x419820),this[_0x1ad5cf(0x188)][_0x1ad5cf(0x3a3)](_0xa59ab,_0x419820);}),_0x38e413(this[_0x404dce(0x28f)]['getTypeOfUnitDisposed$'](_0x4d4554[_0x404dce(0x346)]),this[_0x404dce(0x28f)][_0x404dce(0x113)](_0x4d4554[_0x404dce(0x135)]))[_0x404dce(0x479)](_0x1406ee(this[_0x404dce(0x44c)]))['subscribe'](_0x538c86=>{const _0x176c75=_0x404dce,_0x1c2814=_0x538c86[_0x176c75(0xf7)](),_0x174512=this[_0x176c75(0x188)][_0x176c75(0x310)](_0x1c2814);_0x174512&&(_0x174512[_0x176c75(0x258)](),this['_entities'][_0x176c75(0x1c0)](_0x1c2814));});}async[_0x424a27(0x467)](_0x1bcad7){const _0x5a90a9=_0x424a27,_0x3c6522=await this['_collabSessionService'][_0x5a90a9(0x2b7)](_0x1bcad7),_0x4140db=this['_injector']['createInstance'](Dt,_0x1bcad7,_0x3c6522);return _0x4140db['init'](),_0x4140db;}async[_0x424a27(0x1ae)](_0x3abd37){const _0x2e3806=_0x424a27,_0x2a7ed2=await this[_0x2e3806(0x2ea)]['requireSession'](_0x3abd37),_0x49239f=this['_injector']['createInstance'](Ot,_0x3abd37,_0x2a7ed2);return _0x49239f[_0x2e3806(0x474)](),_0x49239f;}};ve=Gr([ut(0x0,_0x1528d5),ut(0x1,_0x5a29b8(_0x5503e4)),ut(0x2,_0x5a29b8(he))],ve);const $e=0x14,fs=0xc8,dt=0x4,Yr=0x5;function Kr(_0xde6aa5,_0x919007){const _0x532d74=_0x424a27;let {radius:_0x58a004,width:_0xd82681,height:_0x30c011}=_0x919007;_0x58a004=_0x58a004!=null?_0x58a004:0x0,_0xd82681=_0xd82681!=null?_0xd82681:0x1e,_0x30c011=_0x30c011!=null?_0x30c011:0x1e;let _0x8e16d2=0x0,_0x1a608b=0x0,_0x3cacec=0x0;_0x8e16d2=_0x1a608b=_0x3cacec=Math[_0x532d74(0x25f)](_0x58a004,_0xd82681/0x2,_0x30c011/0x2),_0xde6aa5['beginPath'](),_0xde6aa5[_0x532d74(0x46c)](_0x8e16d2,0x0),_0xde6aa5[_0x532d74(0x3f4)](_0xd82681-_0x1a608b,0x0),_0xde6aa5[_0x532d74(0x463)](_0xd82681-_0x1a608b,_0x1a608b,_0x1a608b,Math['PI']*0x3/0x2,0x0,!0x1),_0xde6aa5[_0x532d74(0x3f4)](_0xd82681,_0x30c011-_0x3cacec),_0xde6aa5[_0x532d74(0x463)](_0xd82681-_0x3cacec,_0x30c011-_0x3cacec,_0x3cacec,0x0,Math['PI']/0x2,!0x1),_0xde6aa5[_0x532d74(0x3f4)](0x0,_0x30c011),_0xde6aa5[_0x532d74(0x3f4)](0x0,_0x8e16d2),_0xde6aa5[_0x532d74(0x463)](_0x8e16d2,_0x8e16d2,_0x8e16d2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xde6aa5['closePath'](),_0x919007['fill']&&(_0xde6aa5[_0x532d74(0x383)](),_0xde6aa5['fillStyle']=_0x919007[_0x532d74(0x13c)],_0x919007[_0x532d74(0x132)]===_0x532d74(0x325)?_0xde6aa5['fill'](_0x532d74(0x325)):_0xde6aa5[_0x532d74(0x13c)](),_0xde6aa5['restore']());}class st extends _0x5af1da{constructor(_0x5c1246,_0x494f56){const _0x409182=_0x424a27;super(_0x5c1246,_0x494f56),l(this,_0x409182(0x1b5)),l(this,_0x409182(0x442)),(this['color']=_0x494f56==null?void 0x0:_0x494f56['color'],this[_0x409182(0x442)]=_0x494f56==null?void 0x0:_0x494f56[_0x409182(0x442)]);}static[_0x424a27(0x43e)](_0x27ee00,_0x1e5358){const _0x46ef3e=_0x424a27,{text:_0x2037b7,color:_0x5cd205}=_0x1e5358;_0x27ee00[_0x46ef3e(0x383)](),_0x27ee00[_0x46ef3e(0x37a)]=_0x46ef3e(0x1d1);const _0x1a26b0=_0x27ee00[_0x46ef3e(0x44f)](_0x2037b7)[_0x46ef3e(0x2ff)],_0x14c39f=Math[_0x46ef3e(0x25f)](_0x1a26b0+0x2*dt,fs);Kr(_0x27ee00,{'height':$e,'radius':0x4,'width':_0x14c39f,'fill':_0x5cd205,'evented':!0x1}),_0x27ee00['fillStyle']=_0x46ef3e(0x380);const _0x3fffe1=dt,_0xebec86=$e-Yr,_0x37753a=fs-0x2*dt;if(_0x1a26b0>_0x37753a){let _0x4d2f2b='',_0x1fdf91=0x0;for(const _0x1b598a of _0x2037b7){const _0x66f741=_0x27ee00[_0x46ef3e(0x44f)](_0x1b598a)[_0x46ef3e(0x2ff)];if(_0x1fdf91+_0x66f741<=_0x37753a-_0x27ee00[_0x46ef3e(0x44f)](_0x46ef3e(0x202))[_0x46ef3e(0x2ff)])_0x4d2f2b+=_0x1b598a,_0x1fdf91+=_0x66f741;else{_0x4d2f2b+=_0x46ef3e(0x202);break;}}_0x27ee00[_0x46ef3e(0x286)](_0x4d2f2b,_0x3fffe1,_0xebec86);}else _0x27ee00['fillText'](_0x2037b7,_0x3fffe1,_0xebec86);_0x27ee00[_0x46ef3e(0x11e)]();}[_0x424a27(0x36c)](_0x53ecb4){const _0x4bb05d=_0x424a27;st[_0x4bb05d(0x43e)](_0x53ecb4,this);}}const mt=_0x424a27(0x22e),Xr=_0x424a27(0x233),qr=_0x424a27(0x1e4),we=0x6,Jr=1.5,ft=0x4,zr=1.5,Zr=_0x424a27(0x351);class gs{constructor(_0x58efcc,_0x17979f,_0x35d8b4,_0xcc3d09){const _0x233463=_0x424a27;l(this,'_shapes',[]),l(this,_0x233463(0x1ac),null),l(this,'_textBubble',null),l(this,_0x233463(0x1b7),null),l(this,_0x233463(0x15b),null),l(this,'_eventUnsubscribe',null),(this['_cursor']=_0x58efcc,this[_0x233463(0x17d)]=_0x17979f,this[_0x233463(0x3b0)]=_0x35d8b4,this['_document']=_0xcc3d09,this[_0x233463(0x324)]());}set[_0x424a27(0x475)](_0x3bd2dd){const _0xbf3159=_0x424a27;_0x3bd2dd?(this['_anchorDot']&&this[_0xbf3159(0x1b7)][_0xbf3159(0x105)](),this[_0xbf3159(0x128)]&&this[_0xbf3159(0x128)]['show']()):(this[_0xbf3159(0x1b7)]&&this[_0xbf3159(0x1b7)][_0xbf3159(0x439)](),this['_textBubble']&&this[_0xbf3159(0x128)][_0xbf3159(0x105)]());}[_0x424a27(0x258)](){const _0x4caa1f=_0x424a27;for(const _0x397eca of this[_0x4caa1f(0x477)])_0x397eca[_0x4caa1f(0x258)]();this[_0x4caa1f(0x128)]&&this[_0x4caa1f(0x128)][_0x4caa1f(0x258)](),this['_anchorDot']&&this[_0x4caa1f(0x1b7)][_0x4caa1f(0x258)](),this[_0x4caa1f(0x1ac)]&&this[_0x4caa1f(0x1ac)][_0x4caa1f(0x258)](),this['_eventUnsubscribe']&&this[_0x4caa1f(0x236)]();}['_render'](){const _0x34b0fe=_0x424a27;var _0x108657;const {_docSkeleton:_0x5e45c6,_document:_0x184466}=this,{color:_0x52c089,name:_0x9e25ed,ranges:_0x5f53e2}=this[_0x34b0fe(0x1de)],_0x4243f4=_0x184466['getOffsetConfig'](),{docsLeft:_0x1c8d0c,docsTop:_0x25ea31}=_0x4243f4,_0x1fea29=new _0x99e242(_0x4243f4,_0x5e45c6);for(const {startOffset:_0x4915b3,endOffset:_0x10703e,collapsed:_0x372453,isActive:_0x2f98ce}of _0x5f53e2){const _0x1db2d0=_0x5e45c6[_0x34b0fe(0x2b0)](_0x4915b3),_0x287a32=_0x5e45c6['findNodePositionByCharIndex'](_0x10703e);if(_0x2f98ce){const {contentBoxPointGroup:_0x34f15d}=_0x1fea29[_0x34b0fe(0x37f)](_0x287a32,_0x287a32);if(_0x34f15d[_0x34b0fe(0xf6)]===0x0)continue;this['_drawAnchor'](_0x52c089,_0x34f15d,_0x1c8d0c,_0x25ea31,_0x9e25ed),this['_eventUnsubscribe']=this[_0x34b0fe(0x3b4)]();}if(!_0x372453&&_0x1db2d0&&_0x287a32){if(_0x1fdd03(_0x1db2d0,_0x287a32)){const _0x541a49=new _0x417997(_0x4243f4,_0x5e45c6),{pointGroup:_0x56d471}=(_0x108657=_0x541a49['getRangePointData'](_0x1db2d0,_0x287a32))!=null?_0x108657:{};if(_0x56d471==null||_0x56d471[_0x34b0fe(0xf6)]===0x0)continue;this['_drawRectRange'](_0x52c089,_0x56d471,_0x1c8d0c,_0x25ea31);}else{const {contentBoxPointGroup:_0xf1ee98}=_0x1fea29[_0x34b0fe(0x37f)](_0x1db2d0,_0x287a32);if(_0xf1ee98[_0x34b0fe(0xf6)]===0x0)continue;this[_0x34b0fe(0x11b)](_0x52c089,_0xf1ee98,_0x1c8d0c,_0x25ea31);}}}}[_0x424a27(0x3cb)](_0x277f0d,_0x55a1b4,_0x84d0dd,_0x46ebd1,_0x124c83){const _0x4c1971=_0x424a27,_0x1ca2fa=this['_getAnchorBounding'](_0x55a1b4),{left:_0x372186,top:_0x20cd73,height:_0x27374e}=_0x1ca2fa,_0x599361=this[_0x4c1971(0x32e)](),_0x3c4e38=zr/_0x599361,_0x370394=new _0x1de0b0(mt+_0x4f1501[_0x4c1971(0x2d0)](we),{'left':_0x372186+_0x84d0dd-_0x3c4e38,'top':_0x20cd73+_0x46ebd1,'height':_0x27374e,'width':Jr,'fill':_0x277f0d||_0x1d29da(_0x38bbd6[_0x4c1971(0x2e9)],0x0),'strokeWidth':_0x3c4e38,'stroke':Zr,'evented':!0x0});this[_0x4c1971(0x1ac)]=_0x370394,this[_0x4c1971(0x17d)][_0x4c1971(0x2c1)](_0x370394,_0x2b0485);const _0x1c3ed3=new _0x1de0b0(mt+_0x4f1501['generateRandomId'](we),{'left':_0x372186+_0x84d0dd-_0x3c4e38,'top':_0x20cd73+_0x46ebd1-ft/0x2,'height':ft,'width':ft,'fill':_0x277f0d||_0x1d29da(_0x38bbd6[_0x4c1971(0x2e9)],0x0),'strokeWidth':0x0,'stroke':_0x277f0d||_0x1d29da(_0x38bbd6[_0x4c1971(0x2e9)],0x0),'evented':!0x1});this[_0x4c1971(0x1b7)]=_0x1c3ed3,this[_0x4c1971(0x17d)][_0x4c1971(0x2c1)](_0x1c3ed3,_0x2b0485);const _0x1ebd31=new st(mt+_0x4f1501['generateRandomId'](we),{'left':_0x372186+_0x84d0dd-_0x3c4e38,'top':_0x20cd73+_0x46ebd1-$e,'text':_0x124c83,'color':_0x277f0d});this[_0x4c1971(0x128)]=_0x1ebd31,this[_0x4c1971(0x17d)][_0x4c1971(0x2c1)](_0x1ebd31,_0x2b0485),this['_hover']=!0x1;}[_0x424a27(0x3b4)](){const _0x518915=_0x424a27,_0x50f871=this[_0x518915(0x1ac)][_0x518915(0x221)][_0x518915(0x1ea)](()=>{const _0x3cd32d=_0x518915;this[_0x3cd32d(0x475)]=!0x0;}),_0x3938fa=this['_anchor'][_0x518915(0x22a)][_0x518915(0x1ea)](()=>{const _0x2db414=_0x518915;this['_hideTimer']&&clearTimeout(this[_0x2db414(0x15b)]),this[_0x2db414(0x15b)]=setTimeout(()=>{const _0x4fe2fd=_0x2db414;this[_0x4fe2fd(0x475)]=!0x1;},0x7d0);});return()=>{const _0xc5e9f4=_0x518915;_0x50f871[_0xc5e9f4(0x3dd)](),_0x3938fa[_0xc5e9f4(0x3dd)]();};}['_drawTextRange'](_0x551c6c,_0x30ae47,_0xcfb4a0,_0x4bc7e5){const _0x1d3984=_0x424a27,_0x58a138=new _0x5616c4(_0x551c6c)[_0x1d3984(0x327)](0.2)[_0x1d3984(0x19a)](),_0x3de5ba=new _0x3cfe62(Xr+_0x4f1501[_0x1d3984(0x2d0)](we),{'pointsGroup':_0x30ae47,'fill':_0x58a138||_0x1d29da(_0x38bbd6[_0x1d3984(0x2e9)],0.2),'left':_0xcfb4a0,'top':_0x4bc7e5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1d3984(0x477)][_0x1d3984(0x246)](_0x3de5ba),this[_0x1d3984(0x17d)]['addObject'](_0x3de5ba,_0x2b0485);}['_drawRectRange'](_0x58d5b3,_0x1f3dd7,_0x53fe9b,_0x2d261d){const _0x2575e5=_0x424a27,_0x32f70a=new _0x5616c4(_0x58d5b3)[_0x2575e5(0x327)](0.2)[_0x2575e5(0x19a)](),_0x40d89b=new _0x3cfe62(qr+_0x4f1501[_0x2575e5(0x2d0)](we),{'pointsGroup':_0x1f3dd7,'fill':_0x32f70a||_0x1d29da(_0x38bbd6[_0x2575e5(0x2e9)],0.2),'left':_0x53fe9b,'top':_0x2d261d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2575e5(0x477)][_0x2575e5(0x246)](_0x40d89b),this[_0x2575e5(0x17d)]['addObject'](_0x40d89b,_0x2b0485);}[_0x424a27(0x269)](_0x8457df){const _0xa0977a=_0x8457df[0x0],_0x49ab57=_0xa0977a[0x0],_0xa61529=_0xa0977a[0x2],{x:_0x415c6c,y:_0xc3d096}=_0x49ab57,{x:_0x44af0c,y:_0x264ea4}=_0xa61529;return{'left':_0x415c6c,'top':_0xc3d096,'width':_0x44af0c-_0x415c6c,'height':_0x264ea4-_0xc3d096};}['_getScale'](){const _0x59ffeb=_0x424a27,{scaleX:_0x39cefe,scaleY:_0x10f7e8}=this[_0x59ffeb(0x17d)]['getAncestorScale']();return Math[_0x59ffeb(0x359)](_0x39cefe,_0x10f7e8);}}function _0xaf12(_0x1bf91a,_0x4dea4b){const _0x146a53=_0x146a();return _0xaf12=function(_0xaf12c3,_0x563088){_0xaf12c3=_0xaf12c3-0xf6;let _0x41a6ab=_0x146a53[_0xaf12c3];return _0x41a6ab;},_0xaf12(_0x1bf91a,_0x4dea4b);}var Qr=Object['defineProperty'],eo=Object[_0x424a27(0x483)],to=(_0x1c2e66,_0x39f62b,_0x595af0,_0x42e3b0)=>{for(var _0x529558=_0x42e3b0>0x1?void 0x0:_0x42e3b0?eo(_0x39f62b,_0x595af0):_0x39f62b,_0x5ea209=_0x1c2e66['length']-0x1,_0x2daa63;_0x5ea209>=0x0;_0x5ea209--)(_0x2daa63=_0x1c2e66[_0x5ea209])&&(_0x529558=(_0x42e3b0?_0x2daa63(_0x39f62b,_0x595af0,_0x529558):_0x2daa63(_0x529558))||_0x529558);return _0x42e3b0&&_0x529558&&Qr(_0x39f62b,_0x595af0,_0x529558),_0x529558;},ke=(_0x331f88,_0x3df4f6)=>(_0x5e03bf,_0x58ba84)=>_0x3df4f6(_0x5e03bf,_0x58ba84,_0x331f88);let wt=class extends _0x49569b{constructor(_0x27b0ff,_0x331292,_0x4c1a60,_0x548b74,_0x7aa6c){const _0x25814b=_0x424a27;super(),l(this,'_cursorShapes',[]),l(this,_0x25814b(0x3a5),[]),(this[_0x25814b(0x1bb)]=_0x27b0ff,this[_0x25814b(0x32f)]=_0x331292,this['_collabCursorController']=_0x4c1a60,this['_commandService']=_0x548b74,this[_0x25814b(0x44b)]=_0x7aa6c,this[_0x25814b(0x285)]());}[_0x424a27(0x285)](){const _0x12485b=_0x424a27,_0x57c69b=this[_0x12485b(0x1bb)]['unitId'],_0x3b0311=this[_0x12485b(0x32f)];this[_0x12485b(0x227)](_0x1c11ca([this['_collabCursorController']['getCollabCursors$'](_0x57c69b),this[_0x12485b(0x44b)]['currentTheme$']])[_0x12485b(0x479)](_0x425c95(([_0x13de49,_0x5389d2])=>({'skeleton':_0x3b0311[_0x12485b(0x3bb)](),'cursors':[..._0x13de49[_0x12485b(0x364)]()][_0x12485b(0x374)](_0x35dfff=>({..._0x35dfff,'color':_0x5389d2[_0x35dfff[_0x12485b(0x1b5)]]}))})))[_0x12485b(0x45f)](_0x4eff7=>{const _0x26a36b=_0x12485b;if(this[_0x26a36b(0x34b)](),_0x4eff7){const {skeleton:_0x61a4a4,cursors:_0x21cb06}=_0x4eff7;this[_0x26a36b(0x376)](_0x61a4a4,_0x21cb06);}})),this[_0x12485b(0x3f8)](),this[_0x12485b(0x3a7)]();}[_0x424a27(0x376)](_0x1a523f,_0x2a18cd){const _0x1f65ea=_0x424a27,{scene:_0x27bf08,mainComponent:_0x5afa99}=this[_0x1f65ea(0x1bb)],_0x33d94d=_0x2a18cd['map'](_0x1abf72=>new gs(_0x1abf72,_0x27bf08,_0x1a523f,_0x5afa99));this['_cursorShapes']=_0x33d94d,this[_0x1f65ea(0x3a5)]=_0x2a18cd;}[_0x424a27(0x1f1)](){const _0x51088a=_0x424a27;this['_removeCollabCursors']();const {scene:_0x5a300c,mainComponent:_0x27429d}=this[_0x51088a(0x1bb)],_0x19827c=this[_0x51088a(0x32f)]['getSkeleton'](),_0x50a74e=this[_0x51088a(0x3a5)][_0x51088a(0x239)](_0x960309=>new gs(_0x960309,_0x5a300c,_0x19827c,_0x27429d));this[_0x51088a(0x290)]=_0x50a74e;}[_0x424a27(0x34b)](){const _0x4d3ab7=_0x424a27;this['_cursorShapes'][_0x4d3ab7(0x204)](_0x596afe=>_0x596afe[_0x4d3ab7(0x258)]()),this[_0x4d3ab7(0x290)]=[];}[_0x424a27(0x3a7)](){const _0x4ef29d=_0x424a27,_0x2b6c1d=[_0x10c625['id']];this[_0x4ef29d(0x227)](this[_0x4ef29d(0x451)][_0x4ef29d(0x230)](_0x33ae18=>{const _0x32333c=_0x4ef29d;_0x2b6c1d[_0x32333c(0x420)](_0x33ae18['id'])&&_0x33ae18[_0x32333c(0x42b)][_0x32333c(0x3bc)]===this[_0x32333c(0x1bb)][_0x32333c(0x3bc)]&&this[_0x32333c(0x1f1)]();}));}[_0x424a27(0x3f8)](){const _0xdf3a0a=_0x424a27;this[_0xdf3a0a(0x227)](_0x2320f7(this[_0xdf3a0a(0x1bb)][_0xdf3a0a(0x1a4)][_0xdf3a0a(0x38d)])[_0xdf3a0a(0x479)](_0xfe9a5f(_0x4f57be=>_0x4f57be[_0xdf3a0a(0x46e)]===_0x15bfd5['resize']),_0x5c79cd(0x10))[_0xdf3a0a(0x45f)](()=>{const _0x46704a=_0xdf3a0a;this[_0x46704a(0x1f1)]();}));}};wt=to([ke(0x1,_0x5a29b8(_0x36e872)),ke(0x2,_0x5a29b8(ve)),ke(0x3,_0x4328b6),ke(0x4,_0x5a29b8(_0x5e8da3))],wt);const so=0x1,io=1.5;class no extends _0x5af1da{constructor(_0x149c75,_0x1ae91e){const _0x5d1e8b=_0x424a27;super(_0x149c75,_0x1ae91e),l(this,_0x5d1e8b(0x323)),l(this,'_hovered',!0x1),l(this,_0x5d1e8b(0x21e)),l(this,_0x5d1e8b(0x406),''),l(this,_0x5d1e8b(0x3f0),_0x5d1e8b(0x23f)),l(this,_0x5d1e8b(0x13e)),(_0x1ae91e&&this['setShapeProps'](_0x1ae91e),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x5d1e8b(0x3cc)]({'hovered':!0x0})),this[_0x5d1e8b(0x22a)][_0x5d1e8b(0x1ea)](()=>this[_0x5d1e8b(0x3cc)]({'hovered':!0x1})));}['setShapeProps'](_0x57812b){const _0x8732d2=_0x424a27;var _0x2cdcf8,_0x357147,_0x89d831,_0x8cf8de,_0x5b5927,_0x2ef242;this[_0x8732d2(0x323)]=(_0x2cdcf8=_0x57812b[_0x8732d2(0x1b5)])!=null?_0x2cdcf8:this[_0x8732d2(0x323)],this[_0x8732d2(0x3b6)]=(_0x357147=_0x57812b[_0x8732d2(0x11d)])!=null?_0x357147:this[_0x8732d2(0x3b6)],this[_0x8732d2(0x21e)]=(_0x89d831=_0x57812b[_0x8732d2(0x28a)])!=null?_0x89d831:this[_0x8732d2(0x21e)],this[_0x8732d2(0x406)]=(_0x8cf8de=_0x57812b['name'])!=null?_0x8cf8de:this['_name'],this['_labelPosition']=(_0x5b5927=_0x57812b[_0x8732d2(0x167)])!=null?_0x5b5927:this['_labelPosition'],this['_backgroundColor']=(_0x2ef242=_0x57812b[_0x8732d2(0x254)])!=null?_0x2ef242:this[_0x8732d2(0x13e)],this[_0x8732d2(0x12d)]({'width':_0x57812b[_0x8732d2(0x2ff)],'height':_0x57812b['height']});}['onMouseMove'](_0x1d8d8c){const _0x52b4c8=_0x424a27,{row:_0x390bd3,column:_0x7c719a}=_0x1d8d8c;if(_0x390bd3>=this['_range'][_0x52b4c8(0x403)]&&_0x390bd3<=this[_0x52b4c8(0x21e)][_0x52b4c8(0x13d)]&&_0x7c719a>=this['_range'][_0x52b4c8(0x387)]&&_0x7c719a<=this[_0x52b4c8(0x21e)][_0x52b4c8(0x2ef)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x52b4c8(0x3cc)]({'hovered':!0x1});}[_0x424a27(0x130)](_0x29884c){return!0x1;}[_0x424a27(0x36c)](_0x5227e1){const _0x2d624b=_0x424a27;_0x1de0b0[_0x2d624b(0x43e)](_0x5227e1,{'width':this['width'],'height':this['height'],'strokeWidth':io,'stroke':this[_0x2d624b(0x323)],'evented':!0x1,'fill':this[_0x2d624b(0x13e)]}),this[_0x2d624b(0x3b6)]&&(_0x5227e1[_0x2d624b(0x383)](),_0x5227e1[_0x2d624b(0x2c5)](0x1,0x0,0x0,0x1,this[_0x2d624b(0x2ff)],this[_0x2d624b(0x3f0)]==='bottom'?0x0:-$e),st[_0x2d624b(0x43e)](_0x5227e1,{'text':this['_name'],'color':this[_0x2d624b(0x323)]}),_0x5227e1['restore']());}}var ro=Object[_0x424a27(0x20a)],oo=Object[_0x424a27(0x483)],ao=(_0x26ee7f,_0x152cc0,_0x43fdc5,_0x3131a9)=>{for(var _0x5830f7=_0x3131a9>0x1?void 0x0:_0x3131a9?oo(_0x152cc0,_0x43fdc5):_0x152cc0,_0x11b9c1=_0x26ee7f['length']-0x1,_0x199ac9;_0x11b9c1>=0x0;_0x11b9c1--)(_0x199ac9=_0x26ee7f[_0x11b9c1])&&(_0x5830f7=(_0x3131a9?_0x199ac9(_0x152cc0,_0x43fdc5,_0x5830f7):_0x199ac9(_0x5830f7))||_0x5830f7);return _0x3131a9&&_0x5830f7&&ro(_0x152cc0,_0x43fdc5,_0x5830f7),_0x5830f7;},gt=(_0x522d86,_0x384ccd)=>(_0x1f99e9,_0x1c1b45)=>_0x384ccd(_0x1f99e9,_0x1c1b45,_0x522d86);const co=0x1389;let Pt=class extends _0x49569b{constructor(_0x492544,_0x5c1900,_0x20eedc,_0x48bba6){const _0x4f7d68=_0x424a27;super(),l(this,'_cursors',new Set()),l(this,_0x4f7d68(0x22d),null),(this['_context']=_0x492544,this[_0x4f7d68(0x144)]=_0x5c1900,this[_0x4f7d68(0x1d0)]=_0x20eedc,this[_0x4f7d68(0x44b)]=_0x48bba6,this[_0x4f7d68(0x285)]());}[_0x424a27(0x285)](){const _0x2055dc=_0x424a27;this['_sheetSkeletonManagerService'][_0x2055dc(0x16a)][_0x2055dc(0x479)](_0x1f735a(this[_0x2055dc(0x44c)]),_0x3a7ecc(_0x150b81=>{const _0x3cb09b=_0x2055dc;if(_0x150b81){const _0x48aef4=_0x150b81['sheetId'];return _0x1c11ca(this[_0x3cb09b(0x1d0)][_0x3cb09b(0x2c4)](this[_0x3cb09b(0x1bb)][_0x3cb09b(0x3bc)]),this[_0x3cb09b(0x44b)][_0x3cb09b(0x390)])[_0x3cb09b(0x479)](_0x425c95(([_0x2855fe,_0x161128])=>{const _0x107324=_0x3cb09b,_0x52b9c9=new Map();return _0x2855fe[_0x107324(0x204)]((_0x10dca1,_0x4c8c84)=>{const _0x5babf4=_0x107324;if(_0x10dca1['sheetID']===_0x48aef4){const _0x4983bb={..._0x10dca1};_0x4983bb[_0x5babf4(0x1b5)]=_0x161128[_0x10dca1['color']],_0x52b9c9[_0x5babf4(0x3a3)](_0x4c8c84,_0x4983bb);}}),{'skeleton':_0x150b81,'cursors':_0x52b9c9};}));}return _0x49206c({'skeleton':null,'cursors':new Map()});}))[_0x2055dc(0x45f)](({skeleton:_0x565959,cursors:_0x4ffe7f})=>{const _0x267e19=_0x2055dc;this['_removeCollabCursors'](),_0x565959&&this[_0x267e19(0x376)](_0x565959,_0x4ffe7f);}),this[_0x2055dc(0x144)][_0x2055dc(0x16a)]['subscribe'](_0x2dbd9a=>{const _0x53dbbb=_0x2055dc;if(_0x2dbd9a==null)return;const {skeleton:_0x44b48e}=_0x2dbd9a,{scene:_0x1505eb}=this[_0x53dbbb(0x1bb)];_0x1505eb[_0x53dbbb(0x31f)][_0x53dbbb(0x1ea)](_0x2b5536(_0x31ddbc=>{const _0x3cfc8f=_0x53dbbb;var _0x5c98b5,_0x43d6db;const {offsetX:_0xc64102,offsetY:_0x13ee27}=_0x31ddbc,{x:_0x3ef4d1,y:_0x23fccb}=_0x1505eb['getRelativeToViewportCoord'](_0x153dd4[_0x3cfc8f(0x426)]([_0xc64102,_0x13ee27])),{scaleX:_0x1269d6,scaleY:_0x4f7659}=_0x1505eb['getAncestorScale'](),_0x22d04c=_0x1505eb['getViewport'](_0x10694e[_0x3cfc8f(0x217)]),_0x21213c=_0x1505eb['getVpScrollXYInfoByPosToVp'](_0x153dd4['FromArray']([_0x3ef4d1,_0x23fccb]),_0x22d04c),_0x2f3b4b=_0x44b48e[_0x3cfc8f(0x302)](_0xc64102,_0x13ee27,_0x1269d6,_0x4f7659,_0x21213c);((_0x5c98b5=this[_0x3cfc8f(0x22d)])==null?void 0x0:_0x5c98b5[_0x3cfc8f(0x344)])===_0x2f3b4b['column']&&((_0x43d6db=this[_0x3cfc8f(0x22d)])==null?void 0x0:_0x43d6db[_0x3cfc8f(0x358)])===_0x2f3b4b[_0x3cfc8f(0x358)]||this[_0x3cfc8f(0x3a5)][_0x3cfc8f(0x204)](_0x3cee57=>{const _0x22cbc0=_0x3cfc8f;_0x3cee57[_0x22cbc0(0x2a0)](_0x2f3b4b);});},0x64));});}[_0x424a27(0x376)](_0x5adeec,_0x3da4fe){const _0x45dfd5=_0x424a27;var _0x5f1384;const _0x590363=(_0x5f1384=this[_0x45dfd5(0x144)]['getCurrent']())==null?void 0x0:_0x5f1384[_0x45dfd5(0x139)];if(!_0x590363)return;const _0x3aa8f1=this[_0x45dfd5(0x18a)]();if(!_0x3aa8f1)return;this[_0x45dfd5(0x3a5)]['forEach'](_0x1ef1b0=>{const _0x42d677=_0x45dfd5;_0x1ef1b0[_0x42d677(0x176)]();});const {scene:_0x17b35e}=_0x3aa8f1,_0x534ce3=ho(Array['from'](_0x3da4fe[_0x45dfd5(0x364)]()))[_0x45dfd5(0x239)](_0x2c61d1=>{const _0x131684=_0x45dfd5,{color:_0x23bc31,range:_0x2130f8,name:_0x2b12f7,selection:_0x59ebd5,sheetID:_0x47854d}=_0x2c61d1,{startColumn:_0x265c26,startRow:_0x6d8e09,endColumn:_0x501cd4,endRow:_0x4a531f}=_0x2130f8,_0x76ffa6=_0x41be07(_0x6d8e09,_0x265c26,_0x17b35e,_0x590363),_0x481c17=_0x41be07(_0x4a531f,_0x501cd4,_0x17b35e,_0x590363),{columnHeaderHeightAndMarginTop:_0x581eee}=_0x590363,{startX:_0x4e5f52,startY:_0x5159f3}=_0x76ffa6,{endX:_0x4ec329,endY:_0x37fdec}=_0x481c17,_0x5cda00=_0x4ec329-_0x4e5f52,_0x34dc14=_0x37fdec-_0x5159f3,_0x54b88d={'labelPosition':_0x5159f3-_0x581eee>=$e?_0x131684(0x23f):_0x131684(0x2ce),'sheetID':_0x47854d,'range':_0x2130f8,'color':_0x23bc31,'name':_0x2b12f7,'selection':_0x59ebd5,'left':_0x4e5f52,'top':_0x5159f3,'width':_0x5cda00,'height':_0x34dc14,'evented':!0x1,'zIndex':co};return new no(_0x2b12f7,_0x54b88d);});_0x17b35e[_0x45dfd5(0x273)](_0x534ce3,so),this[_0x45dfd5(0x3a5)]=new Set(_0x534ce3);}['_removeCollabCursors'](){const _0x551d57=_0x424a27;var _0x412193;(_0x412193=this[_0x551d57(0x3a5)])==null||_0x412193['forEach'](_0x35b9d2=>_0x35b9d2[_0x551d57(0x258)]());}[_0x424a27(0x18a)](){const _0x2615bc=_0x424a27;return _0xba9adb(this[_0x2615bc(0x1bb)][_0x2615bc(0x317)],this[_0x2615bc(0x1bb)]);}};Pt=ao([gt(0x1,_0x5a29b8(_0x18007c)),gt(0x2,_0x5a29b8(ve)),gt(0x3,_0x5a29b8(_0x5e8da3))],Pt);function ho(_0x44fd55){const _0x21bdb7=_0x424a27,_0x39665f=new Map();return _0x44fd55[_0x21bdb7(0x204)](_0x1cfdd0=>{const _0x33fa28=_0x21bdb7;if(_0x39665f['has'](_0x1cfdd0[_0x33fa28(0x2f2)])){const _0x132032=_0x39665f[_0x33fa28(0x310)](_0x1cfdd0[_0x33fa28(0x2f2)]);_0x132032['name']+=',\x20'+_0x1cfdd0[_0x33fa28(0x2ec)];}else _0x39665f[_0x33fa28(0x3a3)](_0x1cfdd0[_0x33fa28(0x2f2)],_0x1cfdd0);}),Array[_0x21bdb7(0x219)](_0x39665f[_0x21bdb7(0x364)]());}var N=function(){const _0x57d8dd=_0x424a27;return N=Object['assign']||function(_0x34d631){const _0x256c3d=_0xaf12;for(var _0x279cfd,_0x5bac3b=0x1,_0x514876=arguments['length'];_0x5bac3b<_0x514876;_0x5bac3b++){_0x279cfd=arguments[_0x5bac3b];for(var _0x150782 in _0x279cfd)Object[_0x256c3d(0x424)][_0x256c3d(0x45b)][_0x256c3d(0x330)](_0x279cfd,_0x150782)&&(_0x34d631[_0x150782]=_0x279cfd[_0x150782]);}return _0x34d631;},N[_0x57d8dd(0x3c6)](this,arguments);},lo=function(_0x463061,_0x506c4f){const _0x4ea467=_0x424a27;var _0x2205db={};for(var _0x562d5c in _0x463061)Object[_0x4ea467(0x424)][_0x4ea467(0x45b)][_0x4ea467(0x330)](_0x463061,_0x562d5c)&&_0x506c4f[_0x4ea467(0x2e0)](_0x562d5c)<0x0&&(_0x2205db[_0x562d5c]=_0x463061[_0x562d5c]);if(_0x463061!=null&&typeof Object['getOwnPropertySymbols']==_0x4ea467(0x12b)){for(var _0x8dbaa3=0x0,_0x562d5c=Object[_0x4ea467(0x147)](_0x463061);_0x8dbaa3<_0x562d5c['length'];_0x8dbaa3++)_0x506c4f[_0x4ea467(0x2e0)](_0x562d5c[_0x8dbaa3])<0x0&&Object[_0x4ea467(0x424)][_0x4ea467(0x220)][_0x4ea467(0x330)](_0x463061,_0x562d5c[_0x8dbaa3])&&(_0x2205db[_0x562d5c[_0x8dbaa3]]=_0x463061[_0x562d5c[_0x8dbaa3]]);}return _0x2205db;},Yt=_0x1133e3(function(_0x41d356,_0xe1c506){const _0x16d3a5=_0x424a27;var _0xf7b977=_0x41d356[_0x16d3a5(0x1ff)],_0x32e5ef=_0x41d356['id'],_0x2c7e68=_0x41d356[_0x16d3a5(0x23c)],_0x1de83a=_0x41d356[_0x16d3a5(0x2d6)],_0xa7dadd=lo(_0x41d356,[_0x16d3a5(0x1ff),'id',_0x16d3a5(0x23c),_0x16d3a5(0x2d6)]),_0x57d887=_0x16d3a5(0x14c)[_0x16d3a5(0x2b6)](_0x32e5ef,'\x20')[_0x16d3a5(0x2b6)](_0x2c7e68||'')[_0x16d3a5(0x174)](),_0x34f022=_0x4c2790('_'[_0x16d3a5(0x2b6)](mo()));return Xs(_0xf7b977,''[_0x16d3a5(0x2b6)](_0x32e5ef),{'defIds':_0xf7b977[_0x16d3a5(0x148)],'idSuffix':_0x34f022[_0x16d3a5(0x17e)]},N({'ref':_0xe1c506,'className':_0x57d887},_0xa7dadd),_0x1de83a);});function Xs(_0x2ec943,_0x93b53e,_0x566863,_0x36fd04,_0x265493){const _0x24fd06=_0x424a27;return _0x39ed96(_0x2ec943['tag'],N(N({'key':_0x93b53e},_o(_0x2ec943,_0x566863,_0x265493)),_0x36fd04),(uo(_0x2ec943,_0x566863)['children']||[])[_0x24fd06(0x239)](function(_0x5bbd4f,_0x1ba2a3){const _0x417c68=_0x24fd06;return Xs(_0x5bbd4f,''[_0x417c68(0x2b6)](_0x93b53e,'-')[_0x417c68(0x2b6)](_0x2ec943[_0x417c68(0x248)],'-')['concat'](_0x1ba2a3),_0x566863,void 0x0,_0x265493);}));}function _o(_0x5d3dcf,_0x1e1536,_0x452a4f){const _0x4cae18=_0x424a27;var _0x17f33a=N({},_0x5d3dcf['attrs']);_0x452a4f!=null&&_0x452a4f[_0x4cae18(0x11c)]&&_0x17f33a['fill']===_0x4cae18(0x11c)&&(_0x17f33a[_0x4cae18(0x13c)]=_0x452a4f[_0x4cae18(0x11c)]);var _0x185d2b=_0x1e1536[_0x4cae18(0x148)];return!_0x185d2b||_0x185d2b[_0x4cae18(0xf6)]===0x0||(_0x5d3dcf[_0x4cae18(0x248)]===_0x4cae18(0x2d9)&&_0x17f33a[_0x4cae18(0x421)]&&(_0x17f33a[_0x4cae18(0x421)]=_0x17f33a[_0x4cae18(0x421)]+_0x1e1536['idSuffix']),Object[_0x4cae18(0x338)](_0x17f33a)[_0x4cae18(0x204)](function(_0x3e94c4){const _0xc53015=_0x4cae18;var _0x267c53=_0x3e94c4[0x0],_0xc711c6=_0x3e94c4[0x1];typeof _0xc711c6==_0xc53015(0x348)&&(_0x17f33a[_0x267c53]=_0xc711c6[_0xc53015(0x10b)](/url\(#(.*)\)/,_0xc53015(0x48a)[_0xc53015(0x2b6)](_0x1e1536[_0xc53015(0x38a)],')')));})),_0x17f33a;}function uo(_0x1e909c,_0x12f81a){const _0x444bd7=_0x424a27;var _0x5b5f71,_0x4270c7=_0x12f81a['defIds'];return!_0x4270c7||_0x4270c7['length']===0x0?_0x1e909c:_0x1e909c[_0x444bd7(0x248)]==='defs'&&(!((_0x5b5f71=_0x1e909c['children'])===null||_0x5b5f71===void 0x0)&&_0x5b5f71[_0x444bd7(0xf6)])?N(N({},_0x1e909c),{'children':_0x1e909c[_0x444bd7(0x458)][_0x444bd7(0x239)](function(_0xea3b69){const _0x8c925f=_0x444bd7;return typeof _0xea3b69[_0x8c925f(0x129)]['id']==_0x8c925f(0x348)&&_0x4270c7&&_0x4270c7[_0x8c925f(0x2e0)](_0xea3b69['attrs']['id'])>-0x1?N(N({},_0xea3b69),{'attrs':N(N({},_0xea3b69[_0x8c925f(0x129)]),{'id':_0xea3b69[_0x8c925f(0x129)]['id']+_0x12f81a[_0x8c925f(0x38a)]})}):_0xea3b69;})}):_0x1e909c;}function mo(){const _0x584795=_0x424a27;return Math[_0x584795(0x162)]()[_0x584795(0x1b8)](0x24)[_0x584795(0x300)](0x2,0x8);}Yt['displayName']=_0x424a27(0x153);var fo={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x424a27(0x3f6),'height':_0x424a27(0x3f6)},'children':[{'tag':'g','attrs':{'clipPath':_0x424a27(0x131)},'children':[{'tag':_0x424a27(0x316),'attrs':{'stroke':_0x424a27(0x19f),'d':_0x424a27(0x3c2),'strokeLinecap':_0x424a27(0xfd),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x424a27(0x440),'attrs':{},'children':[{'tag':_0x424a27(0xff),'attrs':{'id':_0x424a27(0x17a)},'children':[{'tag':_0x424a27(0x316),'attrs':{'fill':_0x424a27(0x46d),'d':_0x424a27(0x158)}}]}]}],'defIds':[_0x424a27(0x17a)]},qs=_0x1133e3(function(_0x322a3e,_0x2c25e8){const _0x6c4869=_0x424a27;return _0x39ed96(Yt,Object['assign']({},_0x322a3e,{'id':_0x6c4869(0x23e),'ref':_0x2c25e8,'icon':fo}));});qs[_0x424a27(0x125)]=_0x424a27(0x209);var go={'tag':'svg','attrs':{'fill':_0x424a27(0x445),'viewBox':_0x424a27(0x172),'width':_0x424a27(0x3f6),'height':_0x424a27(0x3f6)},'children':[{'tag':'g','attrs':{'clipPath':_0x424a27(0x198)},'children':[{'tag':_0x424a27(0x316),'attrs':{'stroke':_0x424a27(0x19f),'d':_0x424a27(0x3c5),'strokeLinecap':_0x424a27(0xfd),'strokeLinejoin':_0x424a27(0xfd),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x424a27(0xff),'attrs':{'id':_0x424a27(0x41a)},'children':[{'tag':_0x424a27(0x316),'attrs':{'fill':_0x424a27(0x46d),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x424a27(0x41a)]},Js=_0x1133e3(function(_0x49eaf2,_0x15ee4c){const _0x5beb17=_0x424a27;return _0x39ed96(Yt,Object[_0x5beb17(0x36f)]({},_0x49eaf2,{'id':'on-line-single','ref':_0x15ee4c,'icon':go}));});Js[_0x424a27(0x125)]=_0x424a27(0x2ac);function zs(_0xb37597){const _0x29d472=_0x424a27;var _0x3d8d8b,_0x1ba6cc,_0x22c2cc='';if(typeof _0xb37597==_0x29d472(0x348)||typeof _0xb37597==_0x29d472(0x199))_0x22c2cc+=_0xb37597;else{if(typeof _0xb37597=='object'){if(Array[_0x29d472(0x3b1)](_0xb37597)){var _0x551784=_0xb37597[_0x29d472(0xf6)];for(_0x3d8d8b=0x0;_0x3d8d8b<_0x551784;_0x3d8d8b++)_0xb37597[_0x3d8d8b]&&(_0x1ba6cc=zs(_0xb37597[_0x3d8d8b]))&&(_0x22c2cc&&(_0x22c2cc+='\x20'),_0x22c2cc+=_0x1ba6cc);}else{for(_0x1ba6cc in _0xb37597)_0xb37597[_0x1ba6cc]&&(_0x22c2cc&&(_0x22c2cc+='\x20'),_0x22c2cc+=_0x1ba6cc);}}}return _0x22c2cc;}function So(){const _0x34a53c=_0x424a27;for(var _0x413958,_0x3504ef,_0x261274=0x0,_0x57818e='',_0x564516=arguments[_0x34a53c(0xf6)];_0x261274<_0x564516;_0x261274++)(_0x413958=arguments[_0x261274])&&(_0x3504ef=zs(_0x413958))&&(_0x57818e&&(_0x57818e+='\x20'),_0x57818e+=_0x3504ef);return _0x57818e;}const po=_0x424a27(0x326),vo=_0x424a27(0x304),Io=_0x424a27(0x3fc),Eo=_0x424a27(0x455),Co=_0x424a27(0x332),Pe={'onlineStatusIcon':po,'onlineStatusTitle':vo,'onlineStatus':Io,'online':Eo,'offline':Co};function bo(_0x353471){const _0x157b3c=_0x424a27;switch(_0x353471){case P['OFFLINE']:return'collabStatus.offline';case P[_0x157b3c(0x393)]:return'collabStatus.conflict';case P[_0x157b3c(0x2be)]:return _0x157b3c(0x3df);case P['NOT_COLLAB']:return'collabStatus.notCollab';case P['AWAITING']:case P[_0x157b3c(0x3eb)]:return _0x157b3c(0x1af);case P[_0x157b3c(0x1a8)]:case P[_0x157b3c(0x447)]:return _0x157b3c(0x47b);}}function To(_0x1c140f){const _0xd42c91=_0x424a27,{status$:_0x1eb26c}=_0x1c140f,_0x510a3d=_0x300191(_0x1eb26c,P[_0xd42c91(0x106)]),_0x398d91=_0x5511a3(_0x34277f),_0x1d998c=_0x5511a3(he),_0x5b1566=_0x510a3d!==P[_0xd42c91(0x3ed)],_0xe55f30=_0x398d91['t'](bo(_0x510a3d)),_0x48529e=So(Pe['onlineStatus'],{[Pe[_0xd42c91(0x42c)]]:_0x5b1566,[Pe['offline']]:!_0x5b1566}),_0xff00dc=_0x5b1566?_0x15137f[_0xd42c91(0x121)](Js,null):_0x15137f[_0xd42c91(0x121)](qs,null),_0x386bd9=_0x248bc7(()=>{_0x5b1566||_0x1d998c['reconnect']();},[_0x5b1566,_0x1d998c]);function _0x21c52c(){const _0x4d1068=_0xd42c91;return _0x15137f[_0x4d1068(0x121)]('div',{'className':_0x48529e,'onClick':_0x386bd9},_0x15137f[_0x4d1068(0x121)](_0x4d1068(0x3fb),{'className':Pe['onlineStatusIcon']},_0xff00dc),_0x15137f[_0x4d1068(0x121)]('div',{'className':Pe[_0x4d1068(0x26f)]},_0xe55f30));}return _0x5b1566?_0x21c52c():_0x15137f[_0xd42c91(0x121)](_0x5a1ead,{'title':_0x398d91['t'](_0xd42c91(0x2a5))},_0x21c52c());}var Ro=Object[_0x424a27(0x20a)],Oo=Object[_0x424a27(0x483)],Do=(_0x29faf9,_0x42c426,_0x85313f,_0x578d84)=>{const _0x2bf309=_0x424a27;for(var _0xa099a9=_0x578d84>0x1?void 0x0:_0x578d84?Oo(_0x42c426,_0x85313f):_0x42c426,_0x43073f=_0x29faf9[_0x2bf309(0xf6)]-0x1,_0x5b861d;_0x43073f>=0x0;_0x43073f--)(_0x5b861d=_0x29faf9[_0x43073f])&&(_0xa099a9=(_0x578d84?_0x5b861d(_0x42c426,_0x85313f,_0xa099a9):_0x5b861d(_0xa099a9))||_0xa099a9);return _0x578d84&&_0xa099a9&&Ro(_0x42c426,_0x85313f,_0xa099a9),_0xa099a9;},Be=(_0x3edb6f,_0x319bba)=>(_0x18f20c,_0x1f6f05)=>_0x319bba(_0x18f20c,_0x1f6f05,_0x3edb6f);let Me=class extends _0x118ead{constructor(_0x5ea4de,_0x2e9496,_0x36ee28,_0x42baf5){const _0xc65c6a=_0x424a27;super(),l(this,_0xc65c6a(0x274),new _0x9f2686(P[_0xc65c6a(0x106)])),(this[_0xc65c6a(0x28f)]=_0x5ea4de,this[_0xc65c6a(0x39b)]=_0x2e9496,this[_0xc65c6a(0x34f)]=_0x36ee28,this[_0xc65c6a(0x349)]=_0x42baf5,this[_0xc65c6a(0x177)](),this[_0xc65c6a(0x29d)]());}[_0x424a27(0x29d)](){const _0x11a9db=_0x424a27;this[_0x11a9db(0x227)](this['_univerInstanceService']['focused$'][_0x11a9db(0x479)](_0x58e949(()=>{const _0x538621=_0x11a9db,_0x57b81f=this[_0x538621(0x28f)][_0x538621(0x228)]();return _0x57b81f?this[_0x538621(0x349)][_0x538621(0x1d3)](_0x57b81f['getUnitId']()):_0x49206c(null);}),_0x58e949(_0x4061e1=>_0x4061e1?_0x4061e1[_0x11a9db(0x461)]:_0x49206c(P[_0x11a9db(0x106)])))[_0x11a9db(0x45f)](_0x5863c9=>{const _0x43174a=_0x11a9db;this['_status$'][_0x43174a(0x23b)](_0x5863c9);}));}['_initStatusComponent'](){const _0x3df3ed=_0x424a27;this['disposeWithMe'](this[_0x3df3ed(0x39b)]['registerComponent'](_0x52dcb6[_0x3df3ed(0x196)],()=>_0x4dcb76(wo({'status$':this[_0x3df3ed(0x274)][_0x3df3ed(0x218)]()}),this[_0x3df3ed(0x34f)])));}};Me=Do([Be(0x0,_0x1528d5),Be(0x1,_0x2b4602),Be(0x2,_0x5a29b8(_0x5503e4)),Be(0x3,_0x5a29b8(Le))],Me);function wo(_0x3743a5){const {status$:_0x598447}=_0x3743a5;return function(){const _0x443a87=_0xaf12;return _0x15137f[_0x443a87(0x121)](To,{'status$':_0x598447});};}const Zs=_0x28fcf5(_0x424a27(0x242));var Po=Object[_0x424a27(0x20a)],yo=Object[_0x424a27(0x483)],Uo=(_0x3c102f,_0x114493,_0x1bc6d9,_0x414f28)=>{for(var _0x35fd5c=_0x414f28>0x1?void 0x0:_0x414f28?yo(_0x114493,_0x1bc6d9):_0x114493,_0x1b78a6=_0x3c102f['length']-0x1,_0x2d5b8d;_0x1b78a6>=0x0;_0x1b78a6--)(_0x2d5b8d=_0x3c102f[_0x1b78a6])&&(_0x35fd5c=(_0x414f28?_0x2d5b8d(_0x114493,_0x1bc6d9,_0x35fd5c):_0x2d5b8d(_0x35fd5c))||_0x35fd5c);return _0x414f28&&_0x35fd5c&&Po(_0x114493,_0x1bc6d9,_0x35fd5c),_0x35fd5c;},ge=(_0x45dd0d,_0x418410)=>(_0x1c10d1,_0x1c9204)=>_0x418410(_0x1c10d1,_0x1c9204,_0x45dd0d);let Je=class extends _0x49569b{constructor(_0x4904d5,_0x4da624,_0x2c5500,_0x4c273a,_0x2650b8,_0x194aa3){const _0x15c340=_0x424a27;super(),this[_0x15c340(0x42f)]=_0x4904d5,this[_0x15c340(0x3a9)]=_0x4da624,this['_commandService']=_0x2c5500,this[_0x15c340(0x250)]=_0x4c273a,this[_0x15c340(0x413)]=_0x2650b8,_0x194aa3?_0x194aa3==null||_0x194aa3[_0x15c340(0x216)]()['then'](()=>this[_0x15c340(0x285)]()):(this[_0x15c340(0x3a9)][_0x15c340(0x1f4)]('[DataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x424a27(0x285)](){const _0x3fb4f5=_0x424a27,_0x33d0dc=this[_0x3fb4f5(0x42f)][_0x3fb4f5(0x40d)]('unit'),_0x4b8d67=this['_urlService'][_0x3fb4f5(0x40d)](_0x3fb4f5(0x46e));if(!_0x33d0dc||!_0x4b8d67){this['_logService'][_0x3fb4f5(0x1f4)](_0x3fb4f5(0x1d6),_0x3fb4f5(0x484));return;}switch(Number(_0x4b8d67)){case k[_0x3fb4f5(0x135)]:{const _0x5e4a28=await this[_0x3fb4f5(0x3c4)](_0x33d0dc);this['_setupSubUnitSync'](_0x5e4a28);break;}case k[_0x3fb4f5(0x346)]:{await this['_loadDoc'](_0x33d0dc);break;}default:{this['_logService'][_0x3fb4f5(0x465)]('[DataLoaderController]',_0x3fb4f5(0x1db));break;}}}async['_setupSubUnitSync'](_0x38e4ab){const _0x43b04d=_0x424a27;await this[_0x43b04d(0x145)](_0x38e4ab),_0x38e4ab['activeSheet$']['pipe'](_0x1406ee(this[_0x43b04d(0x44c)]))['subscribe'](_0x373abf=>{const _0x4838a5=_0x43b04d;_0x373abf&&this[_0x4838a5(0x1b0)](_0x373abf);}),this[_0x43b04d(0x42f)][_0x43b04d(0x1d7)][_0x43b04d(0x479)](_0x1406ee(this[_0x43b04d(0x44c)]))[_0x43b04d(0x45f)](()=>this[_0x43b04d(0x145)](_0x38e4ab));}[_0x424a27(0x1b0)](_0x52ed1b,_0x4c1796=!0x1){const _0x1a62ef=_0x424a27,_0x442679=this['_urlService'][_0x1a62ef(0x40d)](_0x1a62ef(0x40e));_0x52ed1b[_0x1a62ef(0x164)]()!==_0x442679&&this[_0x1a62ef(0x42f)]['setParam']('subunit',_0x52ed1b[_0x1a62ef(0x164)](),_0x4c1796);}async[_0x424a27(0x145)](_0x1fb251){const _0x59e604=_0x424a27;var _0x18a32a;const _0x38e8ce=this[_0x59e604(0x42f)][_0x59e604(0x40d)](_0x59e604(0x40e));if(!_0x38e8ce||!_0x1fb251[_0x59e604(0x24b)](_0x38e8ce)){const _0x598f73=_0x1fb251[_0x59e604(0x18d)]()[0x0],_0x3594d2=_0x1fb251['getSheetBySheetId'](_0x598f73);if(!_0x3594d2)return;this[_0x59e604(0x1b0)](_0x3594d2,!0x0),await this[_0x59e604(0x451)]['executeCommand'](_0x41a134['id'],{'unitId':_0x1fb251[_0x59e604(0xf7)](),'subUnitId':_0x598f73});return;}((_0x18a32a=_0x1fb251[_0x59e604(0x34d)]())==null?void 0x0:_0x18a32a[_0x59e604(0x164)]())!==_0x38e8ce&&await this['_commandService']['executeCommand'](_0x41a134['id'],{'unitId':_0x1fb251[_0x59e604(0xf7)](),'subUnitId':_0x38e8ce});}async[_0x424a27(0x3c4)](_0x11ec58){const _0x40c201=_0x424a27;let _0x18adb9=0x0;const _0x3cc1ca=await this[_0x40c201(0x250)][_0x40c201(0x31a)](_0x11ec58);return _0x3cc1ca&&(_0x3cc1ca[_0x40c201(0x2c9)]||_0x3cc1ca[_0x40c201(0x14b)][_0x40c201(0xf6)]!==0x0)&&(_0x18adb9=_0x3cc1ca[_0x40c201(0x20f)]),_0x18adb9===0x0&&this['_logService'][_0x40c201(0x1f4)]('[DataLoaderController]',_0x40c201(0x454)),this[_0x40c201(0x413)][_0x40c201(0x27b)](_0x11ec58,_0x18adb9);}async[_0x424a27(0x46b)](_0x20a067){const _0xbec7d0=_0x424a27;let _0x1f5148=0x0;const _0x4fdd12=await this[_0xbec7d0(0x250)][_0xbec7d0(0x31a)](_0x20a067);return _0x4fdd12&&(_0x4fdd12['awaitingChangeset']||_0x4fdd12['mutations']['length']!==0x0)&&(_0x1f5148=_0x4fdd12[_0xbec7d0(0x20f)]),_0x1f5148===0x0&&this[_0xbec7d0(0x3a9)][_0xbec7d0(0x1f4)](_0xbec7d0(0x1d6),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0xbec7d0(0x413)][_0xbec7d0(0x19c)](_0x20a067,_0x1f5148);}};Je=Uo([ge(0x0,Zs),ge(0x1,_0x2030cd),ge(0x2,_0x4328b6),ge(0x3,_0x5a29b8(w)),ge(0x4,_0x5a29b8(_0x107a3c)),ge(0x5,_0x2c7ffc(_0xeab5d0))],Je);var No=Object['defineProperty'],Mo=Object[_0x424a27(0x483)],Ao=(_0x464164,_0x1e6990,_0x119500,_0x1f80fc)=>{const _0x204969=_0x424a27;for(var _0x4fc99a=_0x1f80fc>0x1?void 0x0:_0x1f80fc?Mo(_0x1e6990,_0x119500):_0x1e6990,_0x2cc56e=_0x464164[_0x204969(0xf6)]-0x1,_0x4f5d78;_0x2cc56e>=0x0;_0x2cc56e--)(_0x4f5d78=_0x464164[_0x2cc56e])&&(_0x4fc99a=(_0x1f80fc?_0x4f5d78(_0x1e6990,_0x119500,_0x4fc99a):_0x4f5d78(_0x4fc99a))||_0x4fc99a);return _0x1f80fc&&_0x4fc99a&&No(_0x1e6990,_0x119500,_0x4fc99a),_0x4fc99a;},Ss=(_0x462b2f,_0x108c91)=>(_0x4ddeff,_0x3ccf38)=>_0x108c91(_0x4ddeff,_0x3ccf38,_0x462b2f);const Lo='DEFAULT_FILE_NAME',$o=_0x424a27(0x2ca);let ze=class extends _0x118ead{constructor(_0x219f00,_0x1a2020){const _0x47f7e8=_0x424a27;super(),this[_0x47f7e8(0x28f)]=_0x219f00,this[_0x47f7e8(0x279)]=_0x1a2020,this[_0x47f7e8(0x285)]();}[_0x424a27(0x285)](){const _0x16e088=_0x424a27;this[_0x16e088(0x227)](this['_univerInstanceService'][_0x16e088(0x411)][_0x16e088(0x45f)](()=>{const _0x364a7b=_0x16e088;var _0xfa9ea3;const _0x50b6ee=this[_0x364a7b(0x28f)][_0x364a7b(0x228)]();let _0x576bef=(_0xfa9ea3=this[_0x364a7b(0x279)][_0x364a7b(0x395)](Lo))!=null?_0xfa9ea3:$o;_0x50b6ee instanceof _0x223db9&&(_0x576bef=_0x50b6ee[_0x364a7b(0x2ec)]),document[_0x364a7b(0x156)]=_0x576bef;}));}};ze=Ao([Ss(0x0,_0x1528d5),Ss(0x1,_0x5992c0)],ze);var jo=Object[_0x424a27(0x20a)],Ho=Object['getOwnPropertyDescriptor'],xo=(_0x369890,_0x303bd6,_0x58cd7e,_0x224487)=>{for(var _0x480756=_0x224487>0x1?void 0x0:_0x224487?Ho(_0x303bd6,_0x58cd7e):_0x303bd6,_0x243bd5=_0x369890['length']-0x1,_0x4166e2;_0x243bd5>=0x0;_0x243bd5--)(_0x4166e2=_0x369890[_0x243bd5])&&(_0x480756=(_0x224487?_0x4166e2(_0x303bd6,_0x58cd7e,_0x480756):_0x4166e2(_0x480756))||_0x480756);return _0x224487&&_0x480756&&jo(_0x303bd6,_0x58cd7e,_0x480756),_0x480756;},St=(_0x64089b,_0x48feef)=>(_0x2181d0,_0x3b229e)=>_0x48feef(_0x2181d0,_0x3b229e,_0x64089b);let Ze=class{constructor(_0x1e994f,_0x5b41a9,_0x594d05){const _0x55143c=_0x424a27;this['_configService']=_0x1e994f,this['_httpService']=_0x5b41a9,this[_0x55143c(0x238)]=_0x594d05,this[_0x55143c(0x474)]();}[_0x424a27(0x474)](){this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0xf4d50c,_0x428ff7)=>_0x428ff7(_0xf4d50c)['pipe'](_0x31d01f(async _0x3bed23=>{const _0x14a615=_0xaf12,_0x53b606=_0x3bed23;if(_0x53b606[_0x14a615(0x38e)]===0x191&&window[_0x14a615(0x377)](this['localeService']['t'](_0x14a615(0x2e8)))){const _0x4448d9=window[_0x14a615(0x2b9)](window['location'][_0x14a615(0x3d9)]);window[_0x14a615(0x48b)][_0x14a615(0x3d9)]=this[_0x14a615(0x210)]()+_0x14a615(0x13f)+_0x4448d9;}return _0x53b606;}))});}[_0x424a27(0x210)](){const _0x2aeff2=_0x424a27;var _0x1756d9,_0x380fa7;const _0xc63f1e=this['_configService']['getConfig'](Ln),_0x2a2fc7=this[_0x2aeff2(0x279)]['getConfig']($);return(_0x380fa7=(_0x1756d9=_0x2a2fc7==null?void 0x0:_0x2a2fc7[_0x2aeff2(0x45d)])!=null?_0x1756d9:_0xc63f1e)!=null?_0x380fa7:$n;}};Ze=xo([St(0x0,_0x5992c0),St(0x1,_0x5a29b8(_0x170d5f)),St(0x2,_0x5a29b8(_0x34277f))],Ze);var ko=Object[_0x424a27(0x20a)],Bo=Object[_0x424a27(0x483)],Vo=(_0x2c9a10,_0x1237be,_0x590fd9,_0x134238)=>{const _0x9cff18=_0x424a27;for(var _0x16461e=_0x134238>0x1?void 0x0:_0x134238?Bo(_0x1237be,_0x590fd9):_0x1237be,_0x1ee0bd=_0x2c9a10[_0x9cff18(0xf6)]-0x1,_0x284525;_0x1ee0bd>=0x0;_0x1ee0bd--)(_0x284525=_0x2c9a10[_0x1ee0bd])&&(_0x16461e=(_0x134238?_0x284525(_0x1237be,_0x590fd9,_0x16461e):_0x284525(_0x16461e))||_0x16461e);return _0x134238&&_0x16461e&&ko(_0x1237be,_0x590fd9,_0x16461e),_0x16461e;},ps=(_0xe57c96,_0x5da699)=>(_0x1d4bff,_0x1a5dee)=>_0x5da699(_0x1d4bff,_0x1a5dee,_0xe57c96);const Fo=_0x424a27(0x22f),Wo=_0x424a27(0x1cf);let yt=class extends _0x118ead{constructor(_0x38da4c,_0x278838){const _0x5e906d=_0x424a27;super(),this[_0x5e906d(0x3b9)]=_0x38da4c,this[_0x5e906d(0x279)]=_0x278838,this[_0x5e906d(0x12e)]();}[_0x424a27(0x12e)](){const _0x2591c1=_0x424a27,_0x34f83b=this;this[_0x2591c1(0x227)](this[_0x2591c1(0x3b9)][_0x2591c1(0x2da)]({'priority':0x3e7,'interceptor':_0xf9be3c({'isMatch'(_0x493341){const _0x47369e=_0x2591c1;var _0xda6b3c;if(_0x493341['method']===_0x47369e(0x24c)&&((_0xda6b3c=_0x493341[_0x47369e(0x37b)])!=null&&_0xda6b3c[_0x47369e(0x3a1)])){const {objectID:_0x12f973,objectType:_0x5ae495}=_0x493341[_0x47369e(0x37b)]['body']||{};if(!_0x12f973||_0x5ae495===void 0x0)return!0x1;const _0x222c1f=_0x34f83b['_getAPIPrefixPath']()+'/'+_0x5ae495+'/object/'+_0x12f973+_0x47369e(0x14a);if(_0x493341[_0x47369e(0x30c)]===_0x222c1f)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x29cc44){const _0x4e6366=_0x2591c1;var _0x454024;return(_0x454024=_0x29cc44['requestParams'])==null?void 0x0:_0x454024[_0x4e6366(0x3a1)];},'mergeParamsToRequest'(_0x407423,_0x37bd4f){const _0x42c7d1=_0x2591c1,_0xa0ded3=_0x34f83b[_0x42c7d1(0x309)]()+'/-/object/-/batch_allowed',_0xd37808=_0x407423[_0x42c7d1(0x29a)]((_0x2f4e08,_0x44db42)=>{const _0x172491=_0x42c7d1,{unitID:_0x1b74ff,objectID:_0x53cc5f,objectType:_0x3e4b17,actions:_0x4ea114}=_0x44db42;return _0x2f4e08[_0x1b74ff]||(_0x2f4e08[_0x1b74ff]={}),_0x2f4e08[_0x1b74ff][_0x53cc5f]||(_0x2f4e08[_0x1b74ff][_0x53cc5f]={'objectID':_0x53cc5f,'objectType':_0x3e4b17,'actions':[]}),_0x2f4e08[_0x1b74ff][_0x53cc5f][_0x172491(0x267)][_0x172491(0x246)](..._0x4ea114),_0x2f4e08;},{}),_0x51dd8a=[];for(const _0x59ff5b in _0xd37808)for(const _0x54aac5 in _0xd37808[_0x59ff5b]){const {actions:_0x116430,objectType:_0x2e74a4}=_0xd37808[_0x59ff5b][_0x54aac5],_0x5ab448=[...new Set(_0x116430)];_0x51dd8a[_0x42c7d1(0x246)]({'unitID':_0x59ff5b,'objectID':_0x54aac5,'objectType':_0x2e74a4,'actions':_0x5ab448});}return new _0x2d17dc(_0x42c7d1(0x24c),_0xa0ded3,{'headers':_0x37bd4f[_0x42c7d1(0x473)],'withCredentials':_0x37bd4f[_0x42c7d1(0x34a)],'responseType':_0x37bd4f[_0x42c7d1(0x175)],'body':{'requests':_0x51dd8a}});}},{'distributeResult'(_0x7b3564,_0x141351){const _0x1e0662=_0x2591c1,{objectActions:_0x45b9a2}=_0x7b3564;return _0x141351[_0x1e0662(0x239)](_0x376cbc=>{const _0x28abb4=_0x1e0662,{unitID:_0x5a483e,objectID:_0x4db8d3,actions:_0x19b092}=_0x376cbc,_0x426d7a=_0x45b9a2['find'](_0x33ca3c=>_0x33ca3c[_0x28abb4(0x2a1)]===_0x5a483e&&_0x33ca3c['objectID']===_0x4db8d3),_0x213efc=_0x19b092[_0x28abb4(0x239)](_0x44aea3=>_0x426d7a==null?void 0x0:_0x426d7a['actions']['find'](_0x321143=>_0x321143[_0x28abb4(0x297)]===_0x44aea3))[_0x28abb4(0x2ae)](_0x3e978d=>!!_0x3e978d);return{'config':_0x376cbc,'result':{'actions':_0x213efc,'error':_0x7b3564[_0x28abb4(0x465)]}};});}})}));}['_getAPIPrefixPath'](){const _0x20acf6=_0x424a27;var _0x4dbef3,_0x6ba57d;const _0x1427b=this['_configService']['getConfig'](Fo),_0x4d787c=this[_0x20acf6(0x279)]['getConfig']($);return(_0x6ba57d=(_0x4dbef3=_0x4d787c==null?void 0x0:_0x4d787c['authzUrl'])!=null?_0x4dbef3:_0x1427b)!=null?_0x6ba57d:Wo;}async['create'](_0x46562a){const _0x281895=_0x424a27,_0xee7f28=this['_getAPIPrefixPath']()+'/'+_0x46562a['objectType']+_0x281895(0x339);return(await this[_0x281895(0x3b9)]['post'](_0xee7f28,{'body':_0x46562a}))['body'][_0x281895(0x370)]||'';}async[_0x424a27(0x1e6)](_0xc5b253){const _0x51175c=_0x424a27,_0x3156ad=this[_0x51175c(0x309)]()+_0x51175c(0x2af);return(await this[_0x51175c(0x3b9)][_0x51175c(0x2b1)](_0x3156ad,{'body':_0xc5b253}))[_0x51175c(0x3a1)][_0x51175c(0x437)];}async[_0x424a27(0x418)](_0x167ef4){const _0x5dec4b=_0x424a27,_0x5480db=this[_0x5dec4b(0x309)]()+'/'+_0x167ef4['objectType']+'/object/'+_0x167ef4[_0x5dec4b(0x370)];await this[_0x5dec4b(0x3b9)][_0x5dec4b(0x42a)](_0x5480db,{'body':_0x167ef4});}async[_0x424a27(0x3cd)](_0x2f1ca1){const _0x5812d6=_0x424a27,_0x4df3e5=this[_0x5812d6(0x309)]()+'/'+_0x2f1ca1[_0x5812d6(0x1d5)]+_0x5812d6(0x361)+_0x2f1ca1['objectID']+_0x5812d6(0x14a);return(await this[_0x5812d6(0x3b9)][_0x5812d6(0x2b1)](_0x4df3e5,{'body':_0x2f1ca1}))[_0x5812d6(0x3a1)][_0x5812d6(0x267)];}async['batchAllowed'](_0x5622d1){const _0x1f7529=_0x424a27,_0x5892f0=this[_0x1f7529(0x309)]()+_0x1f7529(0x288);return(await this['_HTTPService']['post'](_0x5892f0,{'body':{'requests':_0x5622d1}}))[_0x1f7529(0x3a1)][_0x1f7529(0x159)];}async[_0x424a27(0x20e)](_0x384492){const _0x4a5712=_0x424a27,_0x5a5327=this[_0x4a5712(0x309)]()+'/'+_0x384492[_0x4a5712(0x1d5)]+_0x4a5712(0x10f),_0x27a293=await this[_0x4a5712(0x3b9)][_0x4a5712(0x2b1)](_0x5a5327,{'body':_0x384492});return{'roles':_0x27a293[_0x4a5712(0x3a1)][_0x4a5712(0x280)],'actions':_0x27a293[_0x4a5712(0x3a1)][_0x4a5712(0x267)]};}async['deleteCollaborator'](_0x4e7e12){const _0xca659d=_0x424a27,_0x42b436=this[_0xca659d(0x309)]()+_0xca659d(0x282);await this[_0xca659d(0x3b9)]['delete'](_0x42b436,{'params':{'collaboratorID':_0x4e7e12[_0xca659d(0x110)],'objectID':_0x4e7e12[_0xca659d(0x370)],'unitID':_0x4e7e12[_0xca659d(0x2a1)]}});}async[_0x424a27(0x449)](_0x1aa814){const _0x38f289=_0x424a27,_0x777fe8=this[_0x38f289(0x309)]()+_0x38f289(0x282);await this['_HTTPService'][_0x38f289(0x241)](_0x777fe8,{'body':_0x1aa814});}async[_0x424a27(0x38f)](_0x57d5aa){const _0x22c709=_0x424a27,_0x34da60=this[_0x22c709(0x309)]()+'/collaborator';await this[_0x22c709(0x3b9)][_0x22c709(0x2b1)](_0x34da60,{'body':_0x57d5aa});}async[_0x424a27(0x2ed)](_0xa4e127){const _0x11d083=_0x424a27,_0x39cada=this[_0x11d083(0x309)]()+_0x11d083(0x282);return(await this[_0x11d083(0x3b9)][_0x11d083(0x310)](_0x39cada,{'params':{'objectID':_0xa4e127[_0x11d083(0x370)],'unitID':_0xa4e127[_0x11d083(0x2a1)]}}))[_0x11d083(0x3a1)][_0x11d083(0x3f9)];}async[_0x424a27(0x1da)](_0x686fc5){const _0xe7c4c2=_0x424a27,_0x478fc4=this[_0xe7c4c2(0x309)]()+_0xe7c4c2(0x282);await this[_0xe7c4c2(0x3b9)][_0xe7c4c2(0x42a)](_0x478fc4,{'body':_0x686fc5});}};yt=Vo([ps(0x0,_0x5a29b8(_0x170d5f)),ps(0x1,_0x5a29b8(_0x5992c0))],yt);var Go=Object['defineProperty'],Yo=Object['getOwnPropertyDescriptor'],Ko=(_0x426468,_0x5e5fb7,_0x37ccdc,_0x25892d)=>{const _0x213acf=_0x424a27;for(var _0x4d8781=_0x25892d>0x1?void 0x0:_0x25892d?Yo(_0x5e5fb7,_0x37ccdc):_0x5e5fb7,_0x406ede=_0x426468[_0x213acf(0xf6)]-0x1,_0x19b6ba;_0x406ede>=0x0;_0x406ede--)(_0x19b6ba=_0x426468[_0x406ede])&&(_0x4d8781=(_0x25892d?_0x19b6ba(_0x5e5fb7,_0x37ccdc,_0x4d8781):_0x19b6ba(_0x4d8781))||_0x4d8781);return _0x25892d&&_0x4d8781&&Go(_0x5e5fb7,_0x37ccdc,_0x4d8781),_0x4d8781;},Xo=(_0xd8dc7a,_0x2f09ac)=>(_0x515d77,_0x23fcbb)=>_0x2f09ac(_0x515d77,_0x23fcbb,_0xd8dc7a);let Qe=class{constructor(_0x434403){const _0xd9cb35=_0x424a27;this['_httpService']=_0x434403,this[_0xd9cb35(0x438)]();}[_0x424a27(0x438)](){const _0x27d95f=_0x424a27;this['_httpService'][_0x27d95f(0x2da)]({'interceptor':(_0x5456ce,_0x690152)=>{const _0x15f728=_0x27d95f,_0x2ffd54=_0x5456ce[_0x15f728(0x473)],_0x24a555=_0x50d6ce();return _0x24a555&&_0x2ffd54[_0x15f728(0x3a3)](_0x15f728(0x2e2),_0x24a555),_0x690152(_0x5456ce);}});}};Qe=Ko([Xo(0x0,_0x5a29b8(_0x170d5f))],Qe);var qo=Object[_0x424a27(0x20a)],Jo=Object[_0x424a27(0x483)],zo=(_0x385e63,_0x4c1677,_0x12fe2d,_0x3861bf)=>{const _0x35b6eb=_0x424a27;for(var _0x13f7a9=_0x3861bf>0x1?void 0x0:_0x3861bf?Jo(_0x4c1677,_0x12fe2d):_0x4c1677,_0x2dd092=_0x385e63[_0x35b6eb(0xf6)]-0x1,_0x341df6;_0x2dd092>=0x0;_0x2dd092--)(_0x341df6=_0x385e63[_0x2dd092])&&(_0x13f7a9=(_0x3861bf?_0x341df6(_0x4c1677,_0x12fe2d,_0x13f7a9):_0x341df6(_0x13f7a9))||_0x13f7a9);return _0x3861bf&&_0x13f7a9&&qo(_0x4c1677,_0x12fe2d,_0x13f7a9),_0x13f7a9;},pt=(_0x3df557,_0x525151)=>(_0xfce5c0,_0x4b3c17)=>_0x525151(_0xfce5c0,_0x4b3c17,_0x3df557);const Zo=[_0x424a27(0x3c8),'image/jpeg','image/jpg',_0x424a27(0x291),_0x424a27(0x352)],Qo=0x5*0x400*0x400,ea=_0x424a27(0x27a),ta=_0x424a27(0x405),sa=_0x424a27(0x321),ia=_0x424a27(0x409);let Ut=class{constructor(_0x296993,_0x2738e0,_0x35d035){const _0x15e908=_0x424a27;l(this,_0x15e908(0x3f5),0x0),l(this,_0x15e908(0x2dc),new _0x10bfa5()),l(this,'change$',this[_0x15e908(0x2dc)]),l(this,_0x15e908(0x3a2),new Map()),(this[_0x15e908(0x2d1)]=_0x296993,this[_0x15e908(0x279)]=_0x2738e0,this[_0x15e908(0x28f)]=_0x35d035);}[_0x424a27(0x430)](_0x2a1f59){const _0x432863=_0x424a27;this['_waitCount']=_0x2a1f59,this[_0x432863(0x2dc)][_0x432863(0x23b)](_0x2a1f59);}[_0x424a27(0x1f6)](_0x552532,_0x42382d){const _0x674ac9=_0x424a27;if(_0x42382d===_0xa33cd0[_0x674ac9(0x3dc)]){const _0x570ba4=new Image();return _0x570ba4[_0x674ac9(0x444)]=_0x552532,_0x570ba4;}return this['_imageSourceCache'][_0x674ac9(0x310)](_0x552532);}[_0x424a27(0x415)](_0xfefe95,_0x264aa0,_0x3c1919){const _0x29ab43=_0x424a27;_0x264aa0===_0xa33cd0['BASE64']||_0x3c1919==null||this['_imageSourceCache'][_0x29ab43(0x3a3)](_0xfefe95,_0x3c1919);}async[_0x424a27(0x2ad)](_0xee757f){const _0x3251e2=_0x424a27;try{const _0x19b5ec=this[_0x3251e2(0x116)](this[_0x3251e2(0x3a8)](),''+_0xee757f),_0x5ee243=(await this['_httpService'][_0x3251e2(0x310)](_0x19b5ec))['body'];if(_0x5ee243[_0x3251e2(0x465)]&&_0x5ee243[_0x3251e2(0x465)][_0x3251e2(0x1a3)]===xs['OK']){const _0x1b64e0=new URL(_0x5ee243['url'],this[_0x3251e2(0x1f8)]())[_0x3251e2(0x1b8)]();return Promise[_0x3251e2(0x118)](_0x1b64e0);}return Promise[_0x3251e2(0xfc)](_0x5ee243[_0x3251e2(0x465)]);}catch(_0x1b445d){return Promise[_0x3251e2(0xfc)](_0x1b445d);}}async[_0x424a27(0x371)](_0x12a680){const _0x4ed085=_0x424a27;let _0x143052='';if(!Zo['includes'](_0x12a680['type']))return this[_0x4ed085(0x1ee)](),Promise[_0x4ed085(0xfc)](new Error(_0x3415c9[_0x4ed085(0x214)]));if(_0x12a680[_0x4ed085(0x296)]>Qo)return this[_0x4ed085(0x1ee)](),Promise['reject'](new Error(_0x3415c9[_0x4ed085(0x3b5)]));try{const _0x2eb336=new FormData();_0x2eb336['append'](_0x4ed085(0x2a8),_0x12a680);const _0x43a5a4=this['_univerInstanceService'][_0x4ed085(0x228)](),_0x526fe4=_0x43a5a4==null?void 0x0:_0x43a5a4[_0x4ed085(0xf7)]();if(!_0x526fe4)throw new Error(_0x4ed085(0x3e8));const _0x433c06=this[_0x4ed085(0x26a)]()+_0x4ed085(0x47d)+_0x12a680['size']['toString']()+_0x4ed085(0x36a)+ks['UnitEmbedded']+_0x4ed085(0x166)+encodeURIComponent(_0x526fe4),_0x5c4070=await(await fetch(_0x433c06,{'method':_0x4ed085(0x24c),'body':_0x2eb336}))[_0x4ed085(0x43a)]();if(typeof _0x5c4070[_0x4ed085(0x1dd)]!=_0x4ed085(0x348))return this[_0x4ed085(0x1ee)](),Promise[_0x4ed085(0xfc)](new Error(_0x3415c9[_0x4ed085(0x29e)]));_0x143052=_0x5c4070[_0x4ed085(0x1dd)];}catch{return this['_decreaseWaiting'](),Promise[_0x4ed085(0xfc)](new Error(_0x3415c9[_0x4ed085(0x29e)]));}return new Promise((_0x5369b2,_0x1c0f11)=>{const _0x3d644a=new FileReader();_0x3d644a['readAsDataURL'](_0x12a680),_0x3d644a['onload']=_0x71870d=>{const _0x11e6b0=_0xaf12;var _0x194d78;const _0x64a32e=(_0x194d78=_0x71870d[_0x11e6b0(0x24e)])==null?void 0x0:_0x194d78['result'];if(_0x64a32e==null){this[_0x11e6b0(0x1ee)](),_0x1c0f11(new Error(_0x3415c9[_0x11e6b0(0x29e)]));return;}const _0x55831c=_0x4f1501[_0x11e6b0(0x2d0)](0x6);_0x5369b2({'imageId':_0x55831c,'imageSourceType':_0xa33cd0[_0x11e6b0(0x452)],'source':_0x143052,'base64Cache':_0x64a32e,'status':_0x3415c9[_0x11e6b0(0x3ca)]}),this[_0x11e6b0(0x1ee)]();};});}[_0x424a27(0x26a)](){const _0x1d9989=_0x424a27;var _0x48e531,_0x58f342;const _0x372e45=this[_0x1d9989(0x279)][_0x1d9989(0x395)](ea),_0x3a25e9=this[_0x1d9989(0x279)][_0x1d9989(0x395)]($);return(_0x58f342=(_0x48e531=_0x3a25e9==null?void 0x0:_0x3a25e9[_0x1d9989(0x1f2)])!=null?_0x48e531:_0x372e45)!=null?_0x58f342:ta;}['_getSignURL'](){const _0x43eda9=_0x424a27;var _0x154cbf,_0x4466b2;const _0x2b4f0c=this[_0x43eda9(0x279)][_0x43eda9(0x395)](sa),_0x57f9cd=this[_0x43eda9(0x279)]['getConfig']($);return(_0x4466b2=(_0x154cbf=_0x57f9cd==null?void 0x0:_0x57f9cd['signUrlServerUrl'])!=null?_0x154cbf:_0x2b4f0c)!=null?_0x4466b2:ia;}['_getDownloadEndpointURL'](){const _0x2f0ee4=_0x424a27;var _0x13835c;const _0x3c84c7=this[_0x2f0ee4(0x279)]['getConfig']($);return(_0x13835c=_0x3c84c7==null?void 0x0:_0x3c84c7[_0x2f0ee4(0x2bd)])!=null?_0x13835c:location['origin'];}[_0x424a27(0x116)](_0x27024b,_0x5f19b5){const _0x198247=_0x424a27;return _0x27024b[_0x198247(0x10b)](_0x198247(0x294),_0x5f19b5);}[_0x424a27(0x1ee)](){const _0xfde3a9=_0x424a27;this[_0xfde3a9(0x3f5)]-=0x1,this['_change$']['next'](this[_0xfde3a9(0x3f5)]);}};Ut=zo([pt(0x0,_0x5a29b8(_0x170d5f)),pt(0x1,_0x5992c0),pt(0x2,_0x5a29b8(_0x1528d5))],Ut);var na=Object[_0x424a27(0x20a)],ra=Object['getOwnPropertyDescriptor'],oa=(_0x53a667,_0x48394c,_0x307952,_0x1a109c)=>{for(var _0x4c885a=_0x1a109c>0x1?void 0x0:_0x1a109c?ra(_0x48394c,_0x307952):_0x48394c,_0x524330=_0x53a667['length']-0x1,_0x44b08f;_0x524330>=0x0;_0x524330--)(_0x44b08f=_0x53a667[_0x524330])&&(_0x4c885a=(_0x1a109c?_0x44b08f(_0x48394c,_0x307952,_0x4c885a):_0x44b08f(_0x4c885a))||_0x4c885a);return _0x1a109c&&_0x4c885a&&na(_0x48394c,_0x307952,_0x4c885a),_0x4c885a;},ye=(_0x56e265,_0x260fba)=>(_0x1e04a0,_0x4fa573)=>_0x260fba(_0x1e04a0,_0x4fa573,_0x56e265);let et=class extends _0x49569b{constructor(_0x2c9e74,_0x210e97,_0x5f253d,_0x12231c,_0x54c892){const _0x2e3ba4=_0x424a27;super(),this[_0x2e3ba4(0x34f)]=_0x2c9e74,this[_0x2e3ba4(0x28f)]=_0x210e97,this[_0x2e3ba4(0x30d)]=_0x5f253d,this[_0x2e3ba4(0x34e)]=_0x12231c,this['_localeService']=_0x54c892,this[_0x2e3ba4(0x3c1)](),this['_initCloseConn']();}[_0x424a27(0x1e7)](){const _0x14117e=_0x424a27,_0x18861e=async _0x2fa9b8=>{const _0x2efb3d=_0xaf12;(await this['_collaborationSessionService'][_0x2efb3d(0x2b7)](_0x2fa9b8))[_0x2efb3d(0x18b)]['pipe'](_0xfe9a5f(_0x5a43b4=>_0x5a43b4[_0x2efb3d(0x14d)]===_0x51f469[_0x2efb3d(0x2d2)]),_0x1f735a(this[_0x2efb3d(0x44c)]))['subscribe'](_0x4baa3d=>{const _0x1d21a0=_0x2efb3d,_0x54ad2e=_0x4baa3d,{reason:_0x21c72a}=_0x54ad2e[_0x1d21a0(0x1ad)];this[_0x1d21a0(0x34f)][_0x1d21a0(0x310)](_0x306a76)[_0x1d21a0(0x439)]({'type':_0x141b61['Error'],'content':this[_0x1d21a0(0x1fa)]['t']('collaboration.closeRoom')+'('+_0x21c72a+')'}),this['_permissionService']['updatePermissionPoint'](new _0x264da4(_0x2fa9b8)['id'],!0x1),this[_0x1d21a0(0x34e)][_0x1d21a0(0x2c2)](_0x2fa9b8);});};_0x38e413(this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x4d4554[_0x14117e(0x135)]),this['_univerInstanceService'][_0x14117e(0x464)](_0x4d4554['UNIVER_DOC']))[_0x14117e(0x479)](_0x425c95(_0x55d9fd=>_0x55d9fd[_0x14117e(0xf7)]()),_0xfe9a5f(_0x41b754=>!_0x19a8c7(_0x41b754)),_0x1f735a(this[_0x14117e(0x44c)]))[_0x14117e(0x45f)](_0xa44147=>{_0x18861e(_0xa44147);});}['_initUnitPermissionChange'](){const _0x3eaa5b=_0x424a27,_0x4fd1ec=async _0x3ff0e6=>{const _0x33d6d4=_0xaf12;(await this[_0x33d6d4(0x34e)][_0x33d6d4(0x2b7)](_0x3ff0e6))[_0x33d6d4(0x18b)][_0x33d6d4(0x479)](_0xfe9a5f(_0x297f1c=>_0x297f1c[_0x33d6d4(0x14d)]===_0x51f469[_0x33d6d4(0x366)]),_0x1f735a(this['dispose$']))[_0x33d6d4(0x45f)](_0x5243b5=>{const _0x1da201=_0x33d6d4,_0x5e52d8=_0x5243b5,{objectId:_0x56b102}=_0x5e52d8[_0x1da201(0x1ad)],_0x3e084e=this[_0x1da201(0x34f)][_0x1da201(0x310)](_0x2cbb32);_0x56b102===_0x3ff0e6?_0x3e084e[_0x1da201(0x3e6)](_0x3ff0e6):_0x3e084e[_0x1da201(0x111)](_0x3ff0e6,_0x56b102);});};_0x38e413(this[_0x3eaa5b(0x28f)][_0x3eaa5b(0x464)](_0x4d4554[_0x3eaa5b(0x135)]),this[_0x3eaa5b(0x28f)][_0x3eaa5b(0x464)](_0x4d4554['UNIVER_DOC']))[_0x3eaa5b(0x479)](_0x425c95(_0x50f710=>_0x50f710[_0x3eaa5b(0xf7)]()),_0xfe9a5f(_0xdd6933=>!_0x19a8c7(_0xdd6933)),_0x1f735a(this[_0x3eaa5b(0x44c)]))['subscribe'](_0x54a32b=>{_0x4fd1ec(_0x54a32b);});}};et=oa([ye(0x0,_0x5a29b8(_0x5503e4)),ye(0x1,_0x1528d5),ye(0x2,_0x51263e),ye(0x3,_0x5a29b8(he)),ye(0x4,_0x5a29b8(_0x34277f))],et);var aa=Object[_0x424a27(0x20a)],ca=Object[_0x424a27(0x483)],ha=(_0x4385e8,_0x522165,_0xe63600,_0x4f61f0)=>{const _0x2b8a86=_0x424a27;for(var _0x551547=_0x4f61f0>0x1?void 0x0:_0x4f61f0?ca(_0x522165,_0xe63600):_0x522165,_0x37804f=_0x4385e8[_0x2b8a86(0xf6)]-0x1,_0x585cee;_0x37804f>=0x0;_0x37804f--)(_0x585cee=_0x4385e8[_0x37804f])&&(_0x551547=(_0x4f61f0?_0x585cee(_0x522165,_0xe63600,_0x551547):_0x585cee(_0x551547))||_0x551547);return _0x4f61f0&&_0x551547&&aa(_0x522165,_0xe63600,_0x551547),_0x551547;},vs=(_0x10223d,_0x40fe5f)=>(_0x1adc05,_0x558981)=>_0x40fe5f(_0x1adc05,_0x558981,_0x10223d);let Nt=class{constructor(_0x14c458,_0x278617){const _0x54e2e3=_0x424a27;this['_configService']=_0x14c458,this[_0x54e2e3(0x2d1)]=_0x278617;}async['getUnitOnRev'](_0x10e410,_0x49960a){const _0x553040=_0x424a27;var _0x5b45c3;const {unitID:_0x16d9fa,type:_0x1cf919,revision:_0x11d907=0x0}=_0x49960a,_0x5d1c14=this[_0x553040(0x448)]()+'/'+_0x1cf919+_0x553040(0x333)+_0x16d9fa+_0x553040(0x1fd)+_0x11d907,_0x34d1bf=(await this[_0x553040(0x2d1)][_0x553040(0x310)](_0x5d1c14))[_0x553040(0x3a1)],_0x136440=(_0x5b45c3=_0x34d1bf[_0x553040(0x434)])==null?void 0x0:_0x5b45c3[_0x553040(0x152)];if(_0x136440){const _0x24234f=_0x136440==null?void 0x0:_0x136440[_0x553040(0x146)],_0x2eed63=_0x4de35e[_0x553040(0x3cf)](_0x57fba1(_0x24234f));_0x136440[_0x553040(0x146)]=_0x2eed63,Object['entries'](_0x136440[_0x553040(0x336)])[_0x553040(0x204)](([,_0x5683fb])=>{const _0x392198=_0x553040,_0x2a11b9=_0x5683fb[_0x392198(0x146)],_0x21c2e9=_0x4de35e[_0x392198(0x3cf)](_0x57fba1(_0x2a11b9));_0x5683fb[_0x392198(0x146)]=_0x21c2e9;});}return _0x34d1bf;}async[_0x424a27(0x244)](_0x28faf4,_0xf710a6){const _0x6677da=_0x424a27,{unitID:_0x1e2a33,type:_0x47b8db,blockID:_0x56786f}=_0xf710a6,_0xaf72eb=this[_0x6677da(0x33d)]()+'/'+_0x47b8db+_0x6677da(0x333)+_0x1e2a33+_0x6677da(0x28d)+_0x56786f;return(await this[_0x6677da(0x2d1)][_0x6677da(0x310)](_0xaf72eb))[_0x6677da(0x3a1)];}async['getDeserializedSheetBlock'](_0x451c49,_0x4af608){const _0x37aba0=_0x424a27,{unitID:_0x177d7b,type:_0x1f12e1,blockID:_0x2b399a}=_0x4af608,_0x3e4ed7=this[_0x37aba0(0x33d)]()+_0x37aba0(0x28d)+_0x1f12e1+_0x37aba0(0x333)+_0x177d7b+_0x37aba0(0x28d)+_0x2b399a;return(await this['_httpService'][_0x37aba0(0x310)](_0x3e4ed7))[_0x37aba0(0x3a1)];}async['fetchMissingChangesets'](_0xa01444,_0x47f123){const _0x30dd54=_0x424a27,{unitID:_0x48da2f,type:_0x113bc9,from:_0x572307,to:_0x28f45f}=_0x47f123,_0x46963a=this[_0x30dd54(0x33d)]()+'/'+_0x113bc9+_0x30dd54(0x333)+_0x48da2f+_0x30dd54(0x261)+_0x572307+_0x30dd54(0x275)+_0x28f45f;return(await this[_0x30dd54(0x2d1)][_0x30dd54(0x310)](_0x46963a))[_0x30dd54(0x3a1)];}[_0x424a27(0x448)](){const _0x2e1c00=_0x424a27;var _0x220134;return(_0x220134=this[_0x2e1c00(0x279)][_0x2e1c00(0x395)](Cn))!=null?_0x220134:this[_0x2e1c00(0x33d)]();}[_0x424a27(0x33d)](){const _0xd0f08a=_0x424a27;var _0x3fecdd,_0x21bf9d;const _0x254d0f=this[_0xd0f08a(0x279)][_0xd0f08a(0x395)](In),_0x5228c9=this['_configService'][_0xd0f08a(0x395)]($);return(_0x21bf9d=(_0x3fecdd=_0x5228c9==null?void 0x0:_0x5228c9[_0xd0f08a(0x350)])!=null?_0x3fecdd:_0x254d0f)!=null?_0x21bf9d:En;}async[_0x424a27(0x365)](_0x5be908,_0x57e06e){const _0x1b9284=_0x424a27,_0x2c13f3=_0x1b9284(0x3a6)+_0x57e06e[_0x1b9284(0x46e)]+'/unit/'+_0x57e06e[_0x1b9284(0x2a1)]+_0x1b9284(0x1c4);return(await this[_0x1b9284(0x2d1)][_0x1b9284(0x310)](_0x2c13f3,{'params':{'resourceId':JSON[_0x1b9284(0x329)](_0x57e06e[_0x1b9284(0x312)])}}))[_0x1b9284(0x3a1)];}[_0x424a27(0x10a)](){const _0xedc5c8=_0x424a27;throw new Error(_0xedc5c8(0x1fe));}[_0x424a27(0x2db)](){const _0x38feee=_0x424a27;throw new Error(_0x38feee(0x1fe));}[_0x424a27(0x1bf)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x135257=_0x424a27;throw new Error(_0x135257(0x1fe));}[_0x424a27(0x2bb)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Nt=ha([vs(0x0,_0x5992c0),vs(0x1,_0x5a29b8(_0x170d5f))],Nt);var la=Object[_0x424a27(0x20a)],_a=Object[_0x424a27(0x483)],ua=(_0x2309ac,_0xf16239,_0x48ae60,_0x28e26b)=>{for(var _0x2c6b70=_0x28e26b>0x1?void 0x0:_0x28e26b?_a(_0xf16239,_0x48ae60):_0xf16239,_0x54d422=_0x2309ac['length']-0x1,_0x5e1bb8;_0x54d422>=0x0;_0x54d422--)(_0x5e1bb8=_0x2309ac[_0x54d422])&&(_0x2c6b70=(_0x28e26b?_0x5e1bb8(_0xf16239,_0x48ae60,_0x2c6b70):_0x5e1bb8(_0x2c6b70))||_0x2c6b70);return _0x28e26b&&_0x2c6b70&&la(_0xf16239,_0x48ae60,_0x2c6b70),_0x2c6b70;},Ue=(_0x502a15,_0x4cc4d6)=>(_0xebc22c,_0x10bb5a)=>_0x4cc4d6(_0xebc22c,_0x10bb5a,_0x502a15);let Mt=class extends _0x58e1e2{constructor(_0x2dd415,_0x59b3ae,_0x593a1b,_0x4f907c,_0x267268){const _0xf1e48e=_0x424a27;super(_0x2dd415,_0x59b3ae,_0x593a1b),this['_transformService']=_0x4f907c,this[_0xf1e48e(0x3a9)]=_0x267268;}[_0x424a27(0x40f)](_0x40cb34,_0xd0b20c){const _0x29df0d=_0x424a27,_0x2ee439=this['_getUndoStack'](_0x40cb34);if(_0x2ee439)try{const _0x5f4cb3=this[_0x29df0d(0x45e)](_0x2ee439,_0xd0b20c);this[_0x29df0d(0x3e0)](_0x40cb34,_0x5f4cb3);}catch(_0x5972eb){this[_0x29df0d(0x3a9)]['error'](_0x29df0d(0x234),_0x5972eb),this[_0x29df0d(0x21f)](_0x40cb34);}const _0x5e757b=this[_0x29df0d(0x1dc)](_0x40cb34);if(_0x5e757b)try{const _0x33edf9=this['_transformStack'](_0x5e757b,_0xd0b20c);this[_0x29df0d(0x265)](_0x40cb34,_0x33edf9);}catch(_0x4251f7){this[_0x29df0d(0x3a9)][_0x29df0d(0x465)](_0x4251f7),this[_0x29df0d(0x354)](_0x40cb34);}}[_0x424a27(0x21f)](_0x21c5cc){const _0x5eea4f=_0x424a27,_0x4ad88a=this[_0x5eea4f(0x1b9)](_0x21c5cc);_0x4ad88a&&(_0x4ad88a[_0x5eea4f(0xf6)]=0x0,this[_0x5eea4f(0x2bf)]());}[_0x424a27(0x354)](_0x5cffe3){const _0x310926=_0x424a27,_0x48f272=this[_0x310926(0x1dc)](_0x5cffe3);_0x48f272&&(_0x48f272[_0x310926(0xf6)]=0x0,this[_0x310926(0x2bf)]());}[_0x424a27(0x3e0)](_0x5ad166,_0x1339e3){const _0xaadc24=_0x424a27;this['_undoStacks']['set'](_0x5ad166,_0x1339e3),this[_0xaadc24(0x2bf)]();}[_0x424a27(0x265)](_0x4a4947,_0x5ab84f){const _0x3a234f=_0x424a27;this['_redoStacks'][_0x3a234f(0x3a3)](_0x4a4947,_0x5ab84f),this[_0x3a234f(0x2bf)]();}[_0x424a27(0x45e)](_0xe571d2,_0x6563ee){const _0x21f327=_0x424a27,_0x3f3755=[];let _0x3aa57a=_0x6563ee,_0x4ede20=_0x6563ee;for(let _0x20c33f=_0xe571d2['length']-0x1;_0x20c33f>=0x0;_0x20c33f--){const {unitID:_0x291730,undoMutations:_0x417463,redoMutations:_0xe32b4c}=_0xe571d2[_0x20c33f],_0x1b5575=this['_transformService'][_0x21f327(0x456)](_0x3aa57a,_0x417463),_0x5839fa=this[_0x21f327(0x436)][_0x21f327(0x456)](_0x4ede20,_0xe32b4c);if(_0x182df8(_0x1b5575)||_0x182df8(_0x5839fa)){this[_0x21f327(0x3a9)][_0x21f327(0x465)](_0x21f327(0x234),_0x21f327(0x45a),_0x1b5575,_0x5839fa);break;}_0x3aa57a=_0x1b5575['c1Prime'],_0x4ede20=_0x5839fa[_0x21f327(0x19d)],_0x3f3755[_0x21f327(0x246)]({'unitID':_0x291730,'undoMutations':_0x1b5575[_0x21f327(0x3a4)],'redoMutations':_0x5839fa[_0x21f327(0x3a4)]});}return _0x3f3755[_0x21f327(0x1df)]();}};Mt=ua([Ue(0x0,_0x1528d5),Ue(0x1,_0x4328b6),Ue(0x2,_0x446861),Ue(0x3,_0x5edf81),Ue(0x4,_0x2030cd)],Mt);class da extends _0x49569b{constructor(){const _0x3a587c=_0x424a27;super(),l(this,_0x3a587c(0x1d7)),this[_0x3a587c(0x1d7)]=_0x15604f(window,_0x3a587c(0x253))['pipe'](_0x1406ee(this[_0x3a587c(0x44c)]),_0x3f16ea(0x1),_0x3a482f(void 0x0));}[_0x424a27(0x2ee)](_0x42e4f9,_0x55837b,_0x38310f=!0x1){const _0x43f623=_0x424a27,_0x15cb25=new URL(window[_0x43f623(0x48b)][_0x43f623(0x3d9)]);_0x15cb25[_0x43f623(0x283)][_0x43f623(0x3a3)](_0x42e4f9,_0x55837b),_0x38310f?window[_0x43f623(0x47c)]['replaceState']('','',_0x15cb25[_0x43f623(0x1b8)]()):window[_0x43f623(0x47c)][_0x43f623(0x1c8)]('','',_0x15cb25[_0x43f623(0x1b8)]());}[_0x424a27(0x3c9)](_0x332963,_0x351d5c=!0x1){const _0x568984=_0x424a27,_0x470f5c=new URL(window['location'][_0x568984(0x3d9)]);_0x470f5c['searchParams'][_0x568984(0x1c0)](_0x332963),_0x351d5c?window[_0x568984(0x47c)][_0x568984(0x2f8)]('','',_0x470f5c[_0x568984(0x1b8)]()):window[_0x568984(0x47c)][_0x568984(0x1c8)]('','',_0x470f5c[_0x568984(0x1b8)]());}['getParam'](_0x5679d0){const _0x4807ab=_0x424a27;var _0x38b406;return(_0x38b406=new URL(window[_0x4807ab(0x48b)]['href'])['searchParams'][_0x4807ab(0x310)](_0x5679d0))!=null?_0x38b406:void 0x0;}}var Qs=Object['defineProperty'],ma=Object[_0x424a27(0x483)],fa=(_0x4d252a,_0x2e1faa,_0x2d2596)=>_0x2e1faa in _0x4d252a?Qs(_0x4d252a,_0x2e1faa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d2596}):_0x4d252a[_0x2e1faa]=_0x2d2596,ga=(_0x5cdacd,_0x581732,_0x3374e9,_0x46e34e)=>{for(var _0x1d9107=_0x46e34e>0x1?void 0x0:_0x46e34e?ma(_0x581732,_0x3374e9):_0x581732,_0x1fa8bb=_0x5cdacd['length']-0x1,_0x1509d3;_0x1fa8bb>=0x0;_0x1fa8bb--)(_0x1509d3=_0x5cdacd[_0x1fa8bb])&&(_0x1d9107=(_0x46e34e?_0x1509d3(_0x581732,_0x3374e9,_0x1d9107):_0x1509d3(_0x1d9107))||_0x1d9107);return _0x46e34e&&_0x1d9107&&Qs(_0x581732,_0x3374e9,_0x1d9107),_0x1d9107;},Ve=(_0x1072cf,_0x562d4c)=>(_0x45a965,_0x4685b9)=>_0x562d4c(_0x45a965,_0x4685b9,_0x1072cf),Sa=(_0x5175ee,_0x4a0cfe,_0x566336)=>fa(_0x5175ee,_0x4a0cfe+'',_0x566336);const pa=_0x424a27(0x487);let At=class extends _0x13c862{constructor(_0x5e2bc5=jn,_0x1e2be5,_0x509769,_0x144214,_0x531f8c){const _0x1f7fe8=_0x424a27;super(),this[_0x1f7fe8(0x2a3)]=_0x5e2bc5,this[_0x1f7fe8(0x3a9)]=_0x1e2be5,this['_renderManagerService']=_0x509769,this[_0x1f7fe8(0x34f)]=_0x144214,this[_0x1f7fe8(0x279)]=_0x531f8c;const {..._0x5c5631}=this[_0x1f7fe8(0x2a3)];this[_0x1f7fe8(0x279)][_0x1f7fe8(0x1e9)]($,_0x5c5631);}['onStarting'](){const _0x24d27c=_0x424a27;this[_0x24d27c(0x255)](),_0x274c82(this[_0x24d27c(0x34f)],[[ve],[Je],[et]]);}['onReady'](){const _0x2f8898=_0x424a27;_0x274c82(this[_0x2f8898(0x34f)],[[ze]]);}['onRendered'](){const _0x58e204=_0x424a27;this[_0x58e204(0x31b)]();}[_0x424a27(0x255)](){const _0x2ab64d=_0x424a27;var _0x34087d,_0x9a4118,_0x42bdc2,_0x1d1f56;this[_0x2ab64d(0x34f)]['has'](_0xde5684)&&this[_0x2ab64d(0x3a9)]['error'](_0x2ab64d(0x472),_0x2ab64d(0x263));let _0x40f1d3=[[_0xde5684,{'useClass':Mt}],[he],[Gt],[_0x170d5f],[Zs,{'useClass':da}],[ce],[w],[_0x1f8354],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[Vs],[et],[Bs,{'useClass':(_0x9a4118=(_0x34087d=this[_0x2ab64d(0x2a3)])==null?void 0x0:_0x34087d[_0x2ab64d(0x1f9)])!=null?_0x9a4118:Ct}],[_0x3b9ac2,{'useClass':_0x42f145}],[_0x4be85b,{'useClass':Nt}],[_0x36cf75,{'useClass':yt}],[_0x3a3be1,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0x42bdc2=this['_config'])!=null&&_0x42bdc2[_0x2ab64d(0x335)]&&_0x40f1d3['push']([tt,{'useClass':Sr}]),_0x40f1d3=_0x59c805(_0x40f1d3,(_0x1d1f56=this[_0x2ab64d(0x2a3)])==null?void 0x0:_0x1d1f56[_0x2ab64d(0x115)]),_0x40f1d3[_0x2ab64d(0x204)](_0x5a1fe3=>this[_0x2ab64d(0x34f)][_0x2ab64d(0x143)](_0x5a1fe3)),this['_initModules']();}[_0x424a27(0x31b)](){const _0x5950cf=_0x424a27;this['disposeWithMe'](this[_0x5950cf(0x482)][_0x5950cf(0x400)](_0x4d4554[_0x5950cf(0x346)],[wt])),this[_0x5950cf(0x227)](this[_0x5950cf(0x482)][_0x5950cf(0x400)](_0x4d4554['UNIVER_SHEET'],[Pt]));}[_0x424a27(0x151)](){const _0x481523=_0x424a27;var _0x17e031,_0x51ee32;this[_0x481523(0x34f)][_0x481523(0x310)](_0x170d5f)[_0x481523(0x2da)]({'priority':0x14,'interceptor':_0x58c344({'maxParallel':0x6})}),this['_injector'][_0x481523(0x310)](Qe),(_0x17e031=this[_0x481523(0x2a3)])!=null&&_0x17e031['enableOfflineEditing']||this[_0x481523(0x34f)][_0x481523(0x310)](w)[_0x481523(0x42d)](),(_0x51ee32=this[_0x481523(0x2a3)])!=null&&_0x51ee32[_0x481523(0x3ce)]&&this['_injector'][_0x481523(0x310)](Ze),this['_injector']['get'](Le),this[_0x481523(0x34f)][_0x481523(0x3e1)](Me)&&this[_0x481523(0x34f)][_0x481523(0x310)](Me);}};Sa(At,_0x424a27(0x203),pa),At=ga([_0xf294be(_0xf73eb5),Ve(0x1,_0x2030cd),Ve(0x2,_0x58909f),Ve(0x3,_0x5a29b8(_0x5503e4)),Ve(0x4,_0x5992c0)],At);export{Fo as AUTHZ_URL_KEY,yt as AuthzIoHttpService,Mn as COLLAB_SUBMIT_CHANGESET_URL_KEY,Tn as COLLAB_WEB_SOCKET_URL_KEY,Le as CollaborationController,qe as CollaborationEntity,bt as CollaborationSession,he as CollaborationSessionService,Ct as CollaborationSocketService,P as CollaborationStatus,To as CollaborationStatusDisplay,Vs as CommentService,Je as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,On as HEARTBEAT_INTERVAL_KEY,js as HEARTBEAT_TIMEOUT_KEY,Bs as ICollaborationSocketService,Zs as IURLService,Ut as ImageIoService,Un as LOCAL_CACHE_INTERVAL_KEY,Ln as LOGIN_URL_KEY,w as LocalCacheService,Pn as RETRY_CONNECTING_MAX_COUNT_KEY,Ha as SEND_CHANGESET_TIMEOUT_KEY,In as SNAPSHOT_SERVER_URL_KEY,Cn as SNAPSHOT_URL_KEY,Y as SessionStatus,no as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,da as WebURLService,Hn as deserializeToCombResponse,xn as serializeCombRequest};
|
1
|
+
const _0x513b3b=_0x1736;(function(_0xb1c523,_0x39f4af){const _0x47f0af=_0x1736,_0x54daa3=_0xb1c523();while(!![]){try{const _0x390366=-parseInt(_0x47f0af(0x4b0))/0x1*(parseInt(_0x47f0af(0x39a))/0x2)+parseInt(_0x47f0af(0x315))/0x3*(-parseInt(_0x47f0af(0x25b))/0x4)+-parseInt(_0x47f0af(0x4ce))/0x5*(-parseInt(_0x47f0af(0x46d))/0x6)+parseInt(_0x47f0af(0x3c0))/0x7+parseInt(_0x47f0af(0x26f))/0x8*(parseInt(_0x47f0af(0x416))/0x9)+parseInt(_0x47f0af(0x354))/0xa*(-parseInt(_0x47f0af(0x426))/0xb)+parseInt(_0x47f0af(0x48b))/0xc;if(_0x390366===_0x39f4af)break;else _0x54daa3['push'](_0x54daa3['shift']());}catch(_0x2f142b){_0x54daa3['push'](_0x54daa3['shift']());}}}(_0x26a0,0x620db));var ri=Object[_0x513b3b(0x1a5)],oi=(_0x24d67e,_0x220128,_0x12e7c1)=>_0x220128 in _0x24d67e?ri(_0x24d67e,_0x220128,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12e7c1}):_0x24d67e[_0x220128]=_0x12e7c1,l=(_0x238b35,_0x447a02,_0x4e1b5b)=>oi(_0x238b35,typeof _0x447a02!=_0x513b3b(0x41f)?_0x447a02+'':_0x447a02,_0x4e1b5b);import{createIdentifier as _0x52354a,Inject as _0x53ed15,Disposable as _0x5f406a,DisposableCollection as _0x37f93f,toDisposable as _0x29caef,IConfigService as _0x17c84c,ILogService as _0x385fd2,UserManagerService as _0x445c19,UniverInstanceType as _0x743738,IUniverInstanceService as _0x4c005a,LocaleService as _0x1deb41,Optional as _0x507395,RxDisposable as _0x346899,Injector as _0x3165b6,Tools as _0x31cbda,ILocalStorageService as _0x476566,Rectangle as _0x3deb79,ICommandService as _0x8348c,JSONX as _0x494871,CommandType as _0x4e2bbf,IPermissionService as _0x5f5b14,IUndoRedoService as _0x3e29a6,sequenceExecute as _0x21da1f,debounce as _0x2cf035,COLORS as _0x3de4d2,ColorKit as _0x181f1a,ThemeService as _0xe610aa,fromEventSubject as _0x27e3fd,useDependency as _0x414f16,connectInjector as _0x11ef5a,Workbook as _0x15ef00,isInternalEditorID as _0x6693b5,LocalUndoRedoService as _0x57dce3,IContextService as _0x4af0dd,DependentOn as _0x38b61b,Plugin as _0x2c2bef,touchDependencies as _0x578643,IAuthzIoService as _0x388a42,mergeOverrideWithDependencies as _0x1432ec}from'@univerjs/core';import{Subject as _0x210aee,merge as _0x2f0d88,takeUntil as _0x3bacfd,BehaviorSubject as _0x1edb16,distinctUntilChanged as _0x504670,fromEvent as _0x2832fb,ReplaySubject as _0x3f0a22,take as _0x549142,map as _0x1744c3,shareReplay as _0x1fbf92,of as _0x207817,debounceTime as _0x28cdbb,filter as _0x2ffc6e,switchMap as _0x1317fa,combineLatest as _0x3ff449,concatMap as _0x40a3d7,mapTo as _0x2f02b3}from'rxjs';import{map as _0x50a0b8,take as _0xe6e64a,filter as _0x5bfb9e,delay as _0x3b7ba7,throttleTime as _0x10e087,takeUntil as _0x453931,switchMap as _0x31790b}from'rxjs/operators';import{MessageType as _0x1f1b3b,Tooltip as _0x1850eb}from'@univerjs/design';import{IBeforeCloseService as _0x2077b2,IMessageService as _0x4608dc,INotificationService as _0x1380e0,useObservable as _0x1e1202,BuiltInUIPart as _0x5d8ddb,IUIPartsService as _0x55a85e}from'@univerjs/ui';import{HTTPService as _0x444e74,WebSocketService as _0x40597f,MergeInterceptorFactory as _0x23483c,HTTPRequest as _0x367db5,IHTTPImplementation as _0x34d3c8,XHRHTTPImplementation as _0x1f0359,ThresholdInterceptorFactory as _0x6ca340}from'@univerjs/network';import{CollaborationEvent as _0x46c90b,parseChangesetToProtocol as _0x2297ac,ISnapshotServerService as _0x2c1fe9,isTransformMutationFailure as _0x24fa2f,isTransformMutationsWithChangesetSuccess as _0x16b713,ITransformService as _0x2e5ae8,RevisionService as _0x231b85,mapDocumentTypeToUniverType as _0x376ae6,isTransformChangesetsSuccess as _0x987caa,CompressMutationService as _0x227dad,parseProtocolChangeset as _0x80fd6,SnapshotService as _0x536a79,textEncoder as _0x4e9464,b64DecodeUnicode as _0x54fe81,isTransformMutationsWithChangesetFailure as _0x578d17,UniverCollaborationPlugin as _0x5498e7}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x28e1be}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x163018,DocStateChangeManagerService as _0x1896f0,NodePositionConvertToCursor as _0xe31355,isValidRectRange as _0x4350fa,NodePositionConvertToRectRange as _0x4151a8,TEXT_RANGE_LAYER_INDEX as _0x441006,SetDocZoomRatioOperation as _0x26e6cb}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x4c5ec4,SetSelectionsOperation as _0x246d31,InsertSheetMutation as _0x456f7d,EmptyMutation as _0x71deda,WorkbookEditablePermission as _0x40e1c4,RefRangeService as _0x4a88f5,EffectRefRangId as _0x21405f,handleIRemoveRow as _0x2275d3,handleIRemoveCol as _0x3ff3f3,handleMoveRange as _0x50ae63,handleInsertRow as _0x42fbc0,handleInsertRangeMoveRight as _0x44ef57,handleInsertRangeMoveDown as _0x3b4b4d,handleInsertCol as _0x53a592,handleDeleteRangeMoveUp as _0x3747a5,handleDeleteRangeMoveLeft as _0x12b3ee,runRefRangeMutations as _0x2d1b7f,SetWorksheetActivateCommand as _0xc656da}from'@univerjs/sheets';import{IRenderManagerService as _0xdb11a1,Shape as _0x284381,Rect as _0x57bf2c,getColor as _0x2e720d,RegularPolygon as _0x36c04f,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x5264bf,Vector2 as _0x45e6c1}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x2d5996,RichTextEditingMutation as _0x599177,SetTextSelectionsOperation as _0x2e8d24,DocSkeletonManagerService as _0x2a6fef}from'@univerjs/docs';import{ImageSourceType as _0x361782,ImageUploadStatusType as _0x4458b5,IImageIoService as _0xb13959}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x4af056,serializeRangeWithSheet as _0x4f040d}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x3dfcbb,VIEWPORT_KEY as _0x4a3083,getCoordByCell as _0x4c9650,getSheetObject as _0x9b1a87,SheetPermissionInitController as _0x48dac1}from'@univerjs/sheets-ui';import _0x30d3ac,{forwardRef as _0x33fc8d,useRef as _0x3dd20f,createElement as _0x3a56da,useCallback as _0x162ab0}from'react';import{IRemoteInstanceService as _0x5a5e3a}from'@univerjs/rpc';import{getAttachHeader as _0x5841f9}from'@univerjs-pro/license';const In='SNAPSHOT_SERVER_URL_KEY',En=_0x513b3b(0x3ea),Cn=_0x513b3b(0x1b5),Ha=_0x513b3b(0x17c),bn=0x7d0,Tn=_0x513b3b(0x410),Rn='ws://127.0.0.1:8000/universer-api/comb/connect',On=_0x513b3b(0x45d),Dn=0x7530,js=_0x513b3b(0x4d4),Hs=0x4e20,wn=0x4e20,Pn=_0x513b3b(0x2dd),yn=0x3,Un='LOCAL_CACHE_INTERVAL',Nn=0x3e8,Mn=_0x513b3b(0x2d8),An=_0x513b3b(0x2b0),Ln=_0x513b3b(0x367),$n=_0x513b3b(0x20d);var xs=(_0xfb062f=>(_0xfb062f[_0xfb062f[_0x513b3b(0x1e3)]=0x0]=_0x513b3b(0x1e3),_0xfb062f[_0xfb062f['OK']=0x1]='OK',_0xfb062f[_0xfb062f['INTERNAL_ERROR']=0x2]=_0x513b3b(0x3ff),_0xfb062f[_0xfb062f['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0xfb062f[_0xfb062f['NOT_FOUND']=0x4]=_0x513b3b(0x147),_0xfb062f[_0xfb062f[_0x513b3b(0x337)]=0x5]=_0x513b3b(0x337),_0xfb062f[_0xfb062f[_0x513b3b(0x157)]=0x6]=_0x513b3b(0x157),_0xfb062f[_0xfb062f[_0x513b3b(0x343)]=0x7]=_0x513b3b(0x343),_0xfb062f[_0xfb062f[_0x513b3b(0x40d)]=0x8]='TOO_MANY_REQUESTS',_0xfb062f[_0xfb062f['COMPLETION_FINISHED']=0x9]=_0x513b3b(0x432),_0xfb062f[_0xfb062f[_0x513b3b(0x394)]=0x1389]=_0x513b3b(0x394),_0xfb062f[_0xfb062f['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x513b3b(0x468),_0xfb062f[_0xfb062f[_0x513b3b(0x292)]=0x1772]=_0x513b3b(0x292),_0xfb062f[_0xfb062f[_0x513b3b(0x1d1)]=0x1773]=_0x513b3b(0x1d1),_0xfb062f[_0xfb062f[_0x513b3b(0x1ae)]=0x1b59]=_0x513b3b(0x1ae),_0xfb062f[_0xfb062f['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x513b3b(0x26b),_0xfb062f[_0xfb062f[_0x513b3b(0x174)]=0x1b5b]=_0x513b3b(0x174),_0xfb062f[_0xfb062f['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x513b3b(0x179),_0xfb062f[_0xfb062f[_0x513b3b(0x254)]=0x1b5d]=_0x513b3b(0x254),_0xfb062f[_0xfb062f[_0x513b3b(0x44d)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0xfb062f[_0xfb062f[_0x513b3b(0x319)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0xfb062f[_0xfb062f[_0x513b3b(0x19f)]=0x232a]=_0x513b3b(0x19f),_0xfb062f[_0xfb062f['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x513b3b(0x47d),_0xfb062f[_0xfb062f[_0x513b3b(0x3ad)]=0x232c]=_0x513b3b(0x3ad),_0xfb062f[_0xfb062f['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0xfb062f[_0xfb062f[_0x513b3b(0x1df)]=0x2711]=_0x513b3b(0x1df),_0xfb062f[_0xfb062f[_0x513b3b(0x3d1)]=0x2712]=_0x513b3b(0x3d1),_0xfb062f[_0xfb062f['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x513b3b(0x1d5),_0xfb062f[_0xfb062f[_0x513b3b(0x470)]=0x2714]=_0x513b3b(0x470),_0xfb062f[_0xfb062f[_0x513b3b(0x393)]=-0x1]=_0x513b3b(0x393),_0xfb062f))(xs||{}),k=(_0x46a48f=>(_0x46a48f[_0x46a48f[_0x513b3b(0x2c3)]=0x0]='UNIVER_UNKNOWN',_0x46a48f[_0x46a48f[_0x513b3b(0x1a4)]=0x1]='UNIVER_DOC',_0x46a48f[_0x46a48f[_0x513b3b(0x3b6)]=0x2]='UNIVER_SHEET',_0x46a48f[_0x46a48f['UNIVER_SLIDE']=0x3]=_0x513b3b(0x278),_0x46a48f[_0x46a48f[_0x513b3b(0x1ac)]=0x4]=_0x513b3b(0x1ac),_0x46a48f[_0x46a48f[_0x513b3b(0x393)]=-0x1]=_0x513b3b(0x393),_0x46a48f))(k||{}),I=(_0x47d883=>(_0x47d883[_0x47d883[_0x513b3b(0x3d2)]=0x0]='UNKNOWN_CMD',_0x47d883[_0x47d883['HELLO']=0x1]=_0x513b3b(0x27f),_0x47d883[_0x47d883[_0x513b3b(0x341)]=0x2]=_0x513b3b(0x341),_0x47d883[_0x47d883[_0x513b3b(0x2c5)]=0x3]='LEAVE',_0x47d883[_0x47d883[_0x513b3b(0x310)]=0x4]=_0x513b3b(0x310),_0x47d883[_0x47d883['HEARTBEAT']=0x5]=_0x513b3b(0x300),_0x47d883[_0x47d883[_0x513b3b(0x3c4)]=0x6]='RECV',_0x47d883[_0x47d883[_0x513b3b(0x393)]=-0x1]=_0x513b3b(0x393),_0x47d883))(I||{}),Vt=(_0x279930=>(_0x279930[_0x279930[_0x513b3b(0x1bf)]=0x0]='UNKNOWN_CODE',_0x279930[_0x279930['OK']=0x1]='OK',_0x279930[_0x279930[_0x513b3b(0x4d2)]=0x2]=_0x513b3b(0x4d2),_0x279930[_0x279930[_0x513b3b(0x393)]=-0x1]=_0x513b3b(0x393),_0x279930))(Vt||{}),ks=(_0x1a1aae=>(_0x1a1aae[_0x1a1aae['Undefined']=0x0]=_0x513b3b(0x241),_0x1a1aae[_0x1a1aae[_0x513b3b(0x326)]=0x1]=_0x513b3b(0x326),_0x1a1aae[_0x1a1aae['HttpExport']=0x2]=_0x513b3b(0x14d),_0x1a1aae[_0x1a1aae[_0x513b3b(0x1c3)]=0x3]='UnitEmbedded',_0x1a1aae[_0x1a1aae[_0x513b3b(0x159)]=0x4]=_0x513b3b(0x159),_0x1a1aae[_0x1a1aae[_0x513b3b(0x393)]=-0x1]=_0x513b3b(0x393),_0x1a1aae))(ks||{});const $='collaboration-client.config',jn={};function Hn(_0x24731a){const _0x1dac29=_0x513b3b;var _0x2ef85a,_0x26a39f,_0x30c9ad,_0x476949,_0x49f86d;const _0x1553e7=_0x24731a['data'],_0x69348a=JSON['parse'](_0x1553e7);switch(_0x69348a[_0x1dac29(0x322)]){case I[_0x1dac29(0x300)]:case I[_0x1dac29(0x27f)]:{const _0x1d6529=_0x69348a[_0x1dac29(0x4b6)];return{..._0x69348a,'data':_0x1d6529,'cmd':_0x69348a['cmd']};}case I['JOIN']:{const _0x1b9160=_0x69348a[_0x1dac29(0x3a9)];return{..._0x69348a,'data':_0x1b9160,'cmd':_0x69348a['cmd']};}case I[_0x1dac29(0x3c4)]:{const _0x18dba7=_0x69348a[_0x1dac29(0x39f)];switch(_0x18dba7[_0x1dac29(0x2db)]){case _0x46c90b[_0x1dac29(0x4ba)]:return{..._0x69348a,'data':{..._0x18dba7,'data':(_0x2ef85a=_0x18dba7[_0x1dac29(0x3f0)])==null?void 0x0:_0x2ef85a['cs']},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x3cf)]:return{..._0x69348a,'data':{..._0x18dba7,'data':(_0x26a39f=_0x18dba7['csAckEvent'])==null?void 0x0:_0x26a39f['cs']},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x2c7)]:return{..._0x69348a,'data':{..._0x18dba7,'data':(_0x30c9ad=_0x18dba7[_0x1dac29(0x298)])==null?void 0x0:_0x30c9ad['cs']},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x377)]:return{..._0x69348a,'data':{..._0x18dba7,'data':(_0x476949=_0x18dba7['csRejEvent'])==null?void 0x0:_0x476949['cs']},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x435)]:return{..._0x69348a,'data':{..._0x18dba7,'data':(_0x49f86d=_0x18dba7[_0x1dac29(0x48e)])==null?void 0x0:_0x49f86d['cs']},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x4d3)]:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7['updateCursorEvent']},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b['USERS_ENTER']:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7[_0x1dac29(0x366)]},'cmd':_0x69348a['cmd']};case _0x46c90b['USERS_LEAVE']:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7[_0x1dac29(0x45a)]},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x404)]:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7['liveShareNewHost']},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x4aa)]:case _0x46c90b['LIVESHARE_OPERATION']:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7['liveShareOperation']},'cmd':_0x69348a['cmd']};case _0x46c90b['LIVESHARE_TERMINATE']:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7[_0x1dac29(0x167)]},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x34b)]:return{..._0x69348a,'data':_0x18dba7,'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b['COMMENT_UPDATE']:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7[_0x1dac29(0x226)]},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b['UPDATE_PERMISSION_OBJ']:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7[_0x1dac29(0x455)]},'cmd':_0x69348a['cmd']};case _0x46c90b[_0x1dac29(0x4df)]:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7[_0x1dac29(0x480)]},'cmd':_0x69348a[_0x1dac29(0x322)]};default:return _0x69348a;}}default:return _0x69348a;}}function xn(_0x5d7a4b){const _0x3cea16=_0x513b3b;switch(_0x5d7a4b[_0x3cea16(0x322)]){case I[_0x3cea16(0x300)]:case I[_0x3cea16(0x27f)]:return JSON[_0x3cea16(0x42b)]({'cmd':_0x5d7a4b['cmd'],'routeKey':_0x5d7a4b['routeKey']});case I['INGEST']:{let _0x971734;switch(_0x5d7a4b['data'][_0x3cea16(0x2db)]){case _0x46c90b[_0x3cea16(0x4d3)]:{_0x971734={'eventID':_0x46c90b[_0x3cea16(0x4d3)],'updateCursorEvent':_0x5d7a4b[_0x3cea16(0x14f)][_0x3cea16(0x14f)]};break;}case _0x46c90b[_0x3cea16(0x2b5)]:{_0x971734={'eventID':_0x46c90b[_0x3cea16(0x2b5)],'leaveEvent':_0x5d7a4b[_0x3cea16(0x14f)][_0x3cea16(0x14f)]};break;}case _0x46c90b[_0x3cea16(0x1a8)]:{_0x971734={'eventID':_0x46c90b[_0x3cea16(0x1a8)],'joinEvent':_0x5d7a4b[_0x3cea16(0x14f)][_0x3cea16(0x14f)]};break;}case _0x46c90b[_0x3cea16(0x404)]:{_0x971734={'eventID':_0x46c90b[_0x3cea16(0x404)],'liveShareNewHost':_0x5d7a4b['data'][_0x3cea16(0x14f)]};break;}case _0x46c90b[_0x3cea16(0x358)]:{_0x971734={'eventID':_0x46c90b['LIVESHARE_OPERATION'],'liveShareOperation':_0x5d7a4b[_0x3cea16(0x14f)][_0x3cea16(0x14f)]};break;}case _0x46c90b[_0x3cea16(0x312)]:{_0x971734={'eventID':_0x46c90b['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x5d7a4b[_0x3cea16(0x14f)][_0x3cea16(0x14f)]};break;}case _0x46c90b[_0x3cea16(0x1db)]:{_0x971734={'eventID':_0x46c90b['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x5d7a4b['data'][_0x3cea16(0x14f)]};break;}case _0x46c90b[_0x3cea16(0x4aa)]:{_0x971734={'eventID':_0x46c90b[_0x3cea16(0x4aa)]};break;}default:_0x971734={'eventID':_0x5d7a4b[_0x3cea16(0x14f)][_0x3cea16(0x2db)]};}return JSON[_0x3cea16(0x42b)]({'cmd':_0x5d7a4b[_0x3cea16(0x322)],'routeKey':_0x5d7a4b[_0x3cea16(0x365)],'collaMsg':_0x971734});}case I[_0x3cea16(0x341)]:return JSON['stringify']({'cmd':_0x5d7a4b['cmd'],'routeKey':_0x5d7a4b[_0x3cea16(0x365)],'joinReq':_0x5d7a4b['data']});case I[_0x3cea16(0x2c5)]:return JSON['stringify']({'cmd':_0x5d7a4b['cmd'],'routeKey':_0x5d7a4b[_0x3cea16(0x365)],'leaveReq':_0x5d7a4b[_0x3cea16(0x14f)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var kn=Object[_0x513b3b(0x1a5)],Bn=Object[_0x513b3b(0x1be)],Vn=(_0x3f7193,_0xfc573a,_0xe14d27,_0x3d788a)=>{const _0x201731=_0x513b3b;for(var _0x22e25c=_0x3d788a>0x1?void 0x0:_0x3d788a?Bn(_0xfc573a,_0xe14d27):_0xfc573a,_0x504dc1=_0x3f7193[_0x201731(0x313)]-0x1,_0x2e4b8b;_0x504dc1>=0x0;_0x504dc1--)(_0x2e4b8b=_0x3f7193[_0x504dc1])&&(_0x22e25c=(_0x3d788a?_0x2e4b8b(_0xfc573a,_0xe14d27,_0x22e25c):_0x2e4b8b(_0x22e25c))||_0x22e25c);return _0x3d788a&&_0x22e25c&&kn(_0xfc573a,_0xe14d27,_0x22e25c),_0x22e25c;},Oe=(_0x29916e,_0x56d762)=>(_0x406882,_0x5ee466)=>_0x56d762(_0x406882,_0x5ee466,_0x29916e);const Bs=_0x52354a(_0x513b3b(0x411));function Fn(_0x24b2bd,_0x135c81,_0x347240){const _0x266587=_0x513b3b;return _0x24b2bd+'/'+_0x135c81+'/unit/'+_0x347240+_0x266587(0x19c);}let Ct=class extends _0x5f406a{constructor(_0x2fa2e9,_0x4dd819,_0x28b246,_0x1e5e66,_0x37598b){const _0x414d8c=_0x513b3b;super(),this[_0x414d8c(0x1d9)]=_0x2fa2e9,this[_0x414d8c(0x3d9)]=_0x4dd819,this[_0x414d8c(0x2cf)]=_0x28b246,this[_0x414d8c(0x4e0)]=_0x1e5e66,this[_0x414d8c(0x34c)]=_0x37598b;}[_0x513b3b(0x183)](_0xebea99){const _0x50a2c5=_0x513b3b,_0x491f9d=this['_ws'][_0x50a2c5(0x183)](_0xebea99);if(!_0x491f9d)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x31f7d2=new _0x37f93f(),_0x10edb9=new _0x210aee();_0x31f7d2[_0x50a2c5(0x2ab)](_0x491f9d[_0x50a2c5(0x4de)][_0x50a2c5(0x465)](_0x3ea02d=>_0x10edb9[_0x50a2c5(0x48d)](_0x3ea02d))),_0x31f7d2[_0x50a2c5(0x2ab)](_0x29caef(()=>_0x10edb9[_0x50a2c5(0x2ff)]()));const _0x57c7b3=new _0x210aee();_0x31f7d2[_0x50a2c5(0x2ab)](_0x491f9d[_0x50a2c5(0x43a)][_0x50a2c5(0x465)](_0x517219=>_0x57c7b3[_0x50a2c5(0x48d)](_0x517219))),_0x31f7d2[_0x50a2c5(0x2ab)](_0x29caef(()=>_0x57c7b3[_0x50a2c5(0x2ff)]()));const _0x2cb2d1=new _0x210aee();_0x31f7d2[_0x50a2c5(0x2ab)](_0x491f9d[_0x50a2c5(0x3bc)][_0x50a2c5(0x465)](_0x4d11d9=>{const _0x564a23=_0x50a2c5,_0x3243d7=Hn(_0x4d11d9);_0x2cb2d1[_0x564a23(0x48d)](_0x3243d7);})),_0x31f7d2[_0x50a2c5(0x2ab)](_0x29caef(()=>_0x2cb2d1[_0x50a2c5(0x2ff)]()));let _0x5bda8d;const _0x1009fc=()=>{const _0x4e015a=_0x50a2c5;_0x57c7b3[_0x4e015a(0x48d)](new Event(_0x4e015a(0x360))),_0x10edb9[_0x4e015a(0x48d)](new CloseEvent(_0x4e015a(0x360))),_0x5bda8d[_0x4e015a(0x2a2)]();};return _0x5bda8d={'memberID':'','close$':_0x10edb9[_0x50a2c5(0x2a4)](),'error$':_0x57c7b3['asObservable'](),'open$':_0x491f9d[_0x50a2c5(0x39b)],'message$':_0x2cb2d1[_0x50a2c5(0x2a4)](),'send':_0x328387=>{const _0x26212f=_0x50a2c5;if(_0x328387[_0x26212f(0x322)]===I[_0x26212f(0x310)]){if(_0x328387[_0x26212f(0x14f)][_0x26212f(0x2db)]===_0x46c90b[_0x26212f(0x29e)]){this['_submitChangeset'](_0x5bda8d,_0x328387[_0x26212f(0x14f)])[_0x26212f(0x2fb)](_0x78af00=>{const _0x25cb2f=_0x26212f;this['_logService'][_0x25cb2f(0x25c)](_0x78af00),_0x1009fc();});return;}if(_0x328387['data'][_0x26212f(0x2db)]===_0x46c90b[_0x26212f(0x1c6)]){const _0x346708=_0x328387[_0x26212f(0x14f)];this[_0x26212f(0x262)](_0x346708)['then'](_0x1e0b42=>{const _0x12cae9=_0x26212f;_0x2cb2d1[_0x12cae9(0x48d)]({'cmd':I[_0x12cae9(0x3c4)],'code':Vt['OK'],'routeKey':_0x346708['data'][_0x12cae9(0x44f)],'routeType':'','data':{'eventID':_0x46c90b[_0x12cae9(0x196)],'data':{'changesets':_0x1e0b42}}});})[_0x26212f(0x2fb)](_0x2d21ec=>{const _0x32d334=_0x26212f;this[_0x32d334(0x4e0)][_0x32d334(0x25c)](_0x2d21ec),_0x1009fc();});return;}}_0x491f9d[_0x26212f(0x415)](xn(_0x328387));},'close':()=>{const _0x13f8ec=_0x50a2c5;_0x491f9d[_0x13f8ec(0x2a2)](),_0x31f7d2[_0x13f8ec(0x3ce)]();}},_0x5bda8d;}async[_0x513b3b(0x22a)](_0x447006,_0x452634){const _0x5e0a72=_0x513b3b;var _0x2ce746,_0x5bbfbe;const {unitType:_0x53ee3f,unitID:_0x452b69,changeset:_0x424dd7}=_0x452634[_0x5e0a72(0x14f)],_0x29104d={'unitID':_0x452b69,'memberID':_0x447006[_0x5e0a72(0x1fc)],'type':_0x53ee3f,'changeset':_0x2297ac(_0x424dd7)},_0x54721c=this[_0x5e0a72(0x2cf)][_0x5e0a72(0x4a0)](Mn),_0x59608f=this[_0x5e0a72(0x2cf)][_0x5e0a72(0x4a0)]($),_0xa68faf=Fn((_0x5bbfbe=(_0x2ce746=_0x59608f==null?void 0x0:_0x59608f[_0x5e0a72(0x14b)])!=null?_0x2ce746:_0x54721c)!=null?_0x5bbfbe:An,_0x53ee3f,_0x452b69);try{await this[_0x5e0a72(0x1d9)][_0x5e0a72(0x34e)](_0xa68faf,{'body':_0x29104d});}catch(_0x354ee0){throw this['_logService'][_0x5e0a72(0x25c)](_0x5e0a72(0x477),_0x5e0a72(0x3fb)),_0x354ee0;}}async[_0x513b3b(0x262)](_0x5b179f){const _0x4a5e1d=_0x513b3b,{unitID:_0x3bc51b,from:_0x4ac483,to:_0x596a02,unitType:_0xc33b81}=_0x5b179f['data'];return(await this[_0x4a5e1d(0x34c)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x3bc51b,'type':_0xc33b81,'from':_0x4ac483,'to':_0x596a02}))[_0x4a5e1d(0x1e6)];}};Ct=Vn([Oe(0x0,_0x53ed15(_0x444e74)),Oe(0x1,_0x53ed15(_0x40597f)),Oe(0x2,_0x17c84c),Oe(0x3,_0x385fd2),Oe(0x4,_0x2c1fe9)],Ct);const Wn='collaboration_new_changeset';function Gn(_0x5e59c6){const _0x4d8882=_0x513b3b;return JSON[_0x4d8882(0x42b)](_0x5e59c6)[_0x4d8882(0x313)];}class Vs{constructor(){const _0x52a407=_0x513b3b;l(this,_0x52a407(0x379),new _0x210aee()),l(this,_0x52a407(0x49e),this[_0x52a407(0x379)][_0x52a407(0x2a4)]());}[_0x513b3b(0x1cf)](_0xe6f13b){const _0x1ccd30=_0x513b3b;this['_commentUpdate$'][_0x1ccd30(0x48d)](_0xe6f13b);}}var Yn=Object[_0x513b3b(0x1a5)],Kn=Object['getOwnPropertyDescriptor'],Xn=(_0x499730,_0x496103,_0x2f4b03,_0x2f67a1)=>{const _0x2b9c81=_0x513b3b;for(var _0x187ed5=_0x2f67a1>0x1?void 0x0:_0x2f67a1?Kn(_0x496103,_0x2f4b03):_0x496103,_0x95ee6f=_0x499730[_0x2b9c81(0x313)]-0x1,_0x4f0beb;_0x95ee6f>=0x0;_0x95ee6f--)(_0x4f0beb=_0x499730[_0x95ee6f])&&(_0x187ed5=(_0x2f67a1?_0x4f0beb(_0x496103,_0x2f4b03,_0x187ed5):_0x4f0beb(_0x187ed5))||_0x187ed5);return _0x2f67a1&&_0x187ed5&&Yn(_0x496103,_0x2f4b03,_0x187ed5),_0x187ed5;},as=(_0x1bdcf9,_0x18f766)=>(_0x1712e2,_0x313b9f)=>_0x18f766(_0x1712e2,_0x313b9f,_0x1bdcf9);let ce=class extends _0x5f406a{constructor(_0x1b79c6,_0x2f855f){const _0x4793f6=_0x513b3b;super(),l(this,_0x4793f6(0x266),new Map()),(this['_univerInstanceService']=_0x1b79c6,this[_0x4793f6(0x378)]=_0x2f855f,this[_0x4793f6(0x233)](_0x29caef(_0x2f0d88(this[_0x4793f6(0x4c4)][_0x4793f6(0x4d9)](_0x743738[_0x4793f6(0x3b6)])[_0x4793f6(0x33b)](_0x50a0b8(_0x140ea4=>_0x140ea4[_0x4793f6(0x389)]())),this[_0x4793f6(0x4c4)][_0x4793f6(0x4d9)](_0x743738['UNIVER_DOC'])[_0x4793f6(0x33b)](_0x50a0b8(_0x1ccad6=>_0x1ccad6[_0x4793f6(0x389)]())),this[_0x4793f6(0x4c4)][_0x4793f6(0x4d9)](_0x743738[_0x4793f6(0x278)])['pipe'](_0x50a0b8(_0x2b6b26=>_0x2b6b26[_0x4793f6(0x389)]())))[_0x4793f6(0x465)](_0x3274e9=>this[_0x4793f6(0x407)](_0x3274e9)))));}[_0x513b3b(0x332)](_0x6220aa){const _0x573344=_0x513b3b;this[_0x573344(0x378)][_0x573344(0x332)](_0x6220aa);}[_0x513b3b(0x3fe)](){return this['_userManagerService']['getCurrentUser']();}['updateMember'](_0x22b8bd,_0xdceb17){const _0x79a9a0=_0x513b3b;let _0x95ecf=this[_0x79a9a0(0x266)]['get'](_0x22b8bd);_0x95ecf||(_0x95ecf=new qn(),this[_0x79a9a0(0x266)][_0x79a9a0(0x3ca)](_0x22b8bd,_0x95ecf)),_0x95ecf[_0x79a9a0(0x3ab)](_0xdceb17);}[_0x513b3b(0x3f4)](_0xfa0c47,_0x14f0c3){const _0x32bec6=_0x513b3b,_0x1ad928=this[_0x32bec6(0x266)]['get'](_0xfa0c47);_0x1ad928&&_0x1ad928[_0x32bec6(0x3f4)](_0x14f0c3);}[_0x513b3b(0x224)](_0x55c1d2){const _0x426688=_0x513b3b;return this[_0x426688(0x266)][_0x426688(0x49f)](_0x55c1d2);}['getMember'](_0x586825,_0x864cd4){const _0x4993e2=_0x513b3b,_0x1542e0=this[_0x4993e2(0x266)][_0x4993e2(0x49f)](_0x586825);if(_0x1542e0)return _0x1542e0[_0x4993e2(0x3e0)](_0x864cd4);}[_0x513b3b(0x407)](_0x3c39c8){const _0x1098fa=_0x513b3b,_0x394a53=this[_0x1098fa(0x266)][_0x1098fa(0x49f)](_0x3c39c8);_0x394a53&&(_0x394a53[_0x1098fa(0x3ce)](),this[_0x1098fa(0x266)][_0x1098fa(0x248)](_0x3c39c8));}[_0x513b3b(0x3ce)](){const _0x1fd239=_0x513b3b;this[_0x1fd239(0x266)][_0x1fd239(0x301)](_0x347592=>_0x347592[_0x1fd239(0x3ce)]()),this[_0x1fd239(0x266)][_0x1fd239(0x4be)]();}};ce=Xn([as(0x0,_0x4c005a),as(0x1,_0x53ed15(_0x445c19))],ce);class qn extends _0x5f406a{constructor(){const _0x33cfe9=_0x513b3b;super(...arguments),l(this,_0x33cfe9(0x212),new Map());}['dispose'](){const _0x2143d2=_0x513b3b;this[_0x2143d2(0x212)]['clear']();}[_0x513b3b(0x3ab)](_0x4046bc){const _0x1b61d2=_0x513b3b;this[_0x1b61d2(0x212)][_0x1b61d2(0x3ca)](_0x4046bc['memberID'],_0x4046bc);}[_0x513b3b(0x3f4)](_0x1996dd){const _0x14fa94=_0x513b3b;this['_members'][_0x14fa94(0x248)](_0x1996dd);}[_0x513b3b(0x3e0)](_0x243a38){const _0x4b8552=_0x513b3b;return this['_members'][_0x4b8552(0x49f)](_0x243a38);}}var Jn=Object[_0x513b3b(0x1a5)],zn=Object[_0x513b3b(0x1be)],Zn=(_0x36d54e,_0x177457,_0x1ced34,_0x2bccad)=>{for(var _0x11cc9e=_0x2bccad>0x1?void 0x0:_0x2bccad?zn(_0x177457,_0x1ced34):_0x177457,_0x429923=_0x36d54e['length']-0x1,_0x47fe67;_0x429923>=0x0;_0x429923--)(_0x47fe67=_0x36d54e[_0x429923])&&(_0x11cc9e=(_0x2bccad?_0x47fe67(_0x177457,_0x1ced34,_0x11cc9e):_0x47fe67(_0x11cc9e))||_0x11cc9e);return _0x2bccad&&_0x11cc9e&&Jn(_0x177457,_0x1ced34,_0x11cc9e),_0x11cc9e;},J=(_0x2144d7,_0x5170e3)=>(_0x75c862,_0xde52f8)=>_0x5170e3(_0x75c862,_0xde52f8,_0x2144d7),Y=(_0x1120d2=>(_0x1120d2[_0x1120d2[_0x513b3b(0x17e)]=0x0]=_0x513b3b(0x17e),_0x1120d2[_0x1120d2[_0x513b3b(0x320)]=0x1]=_0x513b3b(0x320),_0x1120d2[_0x1120d2[_0x513b3b(0x44c)]=0x2]='OFFLINE',_0x1120d2[_0x1120d2[_0x513b3b(0x1f7)]=0x3]='ONLINE',_0x1120d2))(Y||{});let bt=class extends _0x346899{constructor(_0x5f549b,_0x56f09e,_0x45483e,_0x2cb26a,_0x39096b,_0x4d0c34,_0x30ad4d,_0x28ce6e,_0x38d740,_0x3c482e){const _0x4039c6=_0x513b3b;super(),l(this,_0x4039c6(0x2eb),new _0x1edb16(0x0)),l(this,_0x4039c6(0x3a6),this['_sessionStatus$'][_0x4039c6(0x2a4)]()),l(this,_0x4039c6(0x18c),new _0x210aee()),l(this,_0x4039c6(0x47b),this['_event$']['asObservable']()),l(this,'_socket'),l(this,_0x4039c6(0x250)),l(this,'_collaborationTimeoutTimer'),l(this,'_shouldReportTelemetry',!0x1),l(this,_0x4039c6(0x1c0),null),(this[_0x4039c6(0x264)]=_0x5f549b,this[_0x4039c6(0x4e0)]=_0x45483e,this[_0x4039c6(0x336)]=_0x2cb26a,this[_0x4039c6(0x26e)]=_0x39096b,this[_0x4039c6(0x2cf)]=_0x4d0c34,this[_0x4039c6(0x28c)]=_0x30ad4d,this[_0x4039c6(0x21c)]=_0x28ce6e,this[_0x4039c6(0x452)]=_0x38d740,this['_telemetryService']=_0x3c482e,this[_0x4039c6(0x1a0)]=!!this[_0x4039c6(0x231)],_0x56f09e['pipe'](_0x3bacfd(this[_0x4039c6(0x2d2)]))[_0x4039c6(0x465)](_0x39711f=>{const _0x3496fc=_0x4039c6;var _0x2c99d6;typeof _0x39711f>'u'||(this[_0x3496fc(0x1dd)]=_0x39711f,_0x39711f?(this[_0x3496fc(0x180)](_0x39711f),this['_socketMessageSubscription']=_0x39711f['message$'][_0x3496fc(0x465)](_0x376603=>{const _0x1c0b89=_0x3496fc;_0x376603[_0x1c0b89(0x365)]===this[_0x1c0b89(0x264)]&&this[_0x1c0b89(0x240)](_0x376603);})):(this[_0x3496fc(0x4c2)](),this[_0x3496fc(0x2eb)][_0x3496fc(0x48d)](0x2),(_0x2c99d6=this[_0x3496fc(0x250)])==null||_0x2c99d6[_0x3496fc(0x48a)](),this[_0x3496fc(0x250)]=null));}),this['disposeWithMe'](this[_0x4039c6(0x336)][_0x4039c6(0x4ae)](()=>{const _0x5d40d4=_0x4039c6;var _0x16ed8f;(_0x16ed8f=this['_socket'])==null||_0x16ed8f['send']({'cmd':I[_0x5d40d4(0x2c5)],'data':{'roomID':this['_unitID']}});})));}get[_0x513b3b(0x4e1)](){const _0x3930f0=_0x513b3b;return this[_0x3930f0(0x2eb)]['getValue']();}[_0x513b3b(0x45c)](){const _0x5d4527=_0x513b3b;var _0x1de65d,_0x243a62;return(_0x243a62=(_0x1de65d=this[_0x5d4527(0x1dd)])==null?void 0x0:_0x1de65d[_0x5d4527(0x1fc)])!=null?_0x243a62:null;}[_0x513b3b(0x3ce)](){const _0x49e871=_0x513b3b;super['dispose'](),this[_0x49e871(0x2d2)][_0x49e871(0x48d)](),this['dispose$'][_0x49e871(0x2ff)]();}[_0x513b3b(0x2a2)](){const _0x5f16a4=_0x513b3b;var _0x15f34,_0x4569a0;this[_0x5f16a4(0x4c2)](),(_0x15f34=this[_0x5f16a4(0x1dd)])==null||_0x15f34[_0x5f16a4(0x415)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x5f16a4(0x264)]}}),(_0x4569a0=this[_0x5f16a4(0x1dd)])==null||_0x4569a0[_0x5f16a4(0x2a2)](),this[_0x5f16a4(0x18c)][_0x5f16a4(0x2ff)](),this['_sessionStatus$']['complete'](),this[_0x5f16a4(0x3ce)]();}[_0x513b3b(0x240)](_0x5630fc){const _0x20ef6e=_0x513b3b;_0x5630fc[_0x20ef6e(0x322)]===I['JOIN']?this['_onJoinRoomEvent'](_0x5630fc):_0x5630fc[_0x20ef6e(0x322)]===I[_0x20ef6e(0x3c4)]&&this['_onRecvEvent'](_0x5630fc);}[_0x513b3b(0x180)](_0x437ae6){const _0x514eff=_0x513b3b;this['_sessionStatus$']['next'](0x1),_0x437ae6['send']({'cmd':I[_0x514eff(0x341)],'routeKey':this[_0x514eff(0x264)],'routeType':'','data':{'rooms':[{'roomID':this[_0x514eff(0x264)]}]}});}[_0x513b3b(0x351)](_0x1d7c77){const _0x2d47a4=_0x513b3b;var _0x19c549;if(_0x1d7c77[_0x2d47a4(0x1bc)]===Vt['FAIL']){this[_0x2d47a4(0x26e)][_0x2d47a4(0x32b)]({'type':_0x1f1b3b[_0x2d47a4(0x442)],'content':this[_0x2d47a4(0x28c)]['t'](_0x2d47a4(0x2a9))}),this['_sessionStatus$'][_0x2d47a4(0x48d)](0x2);return;}this[_0x2d47a4(0x2eb)][_0x2d47a4(0x48d)](0x3);const _0xc027f4=(_0x19c549=_0x1d7c77[_0x2d47a4(0x14f)][_0x2d47a4(0x36c)][this['_unitID']])==null?void 0x0:_0x19c549[_0x2d47a4(0x249)];_0xc027f4&&_0xc027f4[_0x2d47a4(0x301)](_0x2a770e=>this[_0x2d47a4(0x21c)]['updateMember'](this[_0x2d47a4(0x264)],_0x2a770e));}[_0x513b3b(0x342)](_0x37f726){const _0x44dc9f=_0x513b3b;try{const _0x463aa5=_0x37f726[_0x44dc9f(0x14f)];switch(_0x463aa5[_0x44dc9f(0x2db)]){case _0x46c90b[_0x44dc9f(0x1a8)]:this[_0x44dc9f(0x403)](_0x463aa5),this[_0x44dc9f(0x18c)][_0x44dc9f(0x48d)](_0x463aa5);break;case _0x46c90b['USERS_LEAVE']:this[_0x44dc9f(0x433)](_0x463aa5),this[_0x44dc9f(0x18c)]['next'](_0x463aa5);break;case _0x46c90b['CHANGESET_ACK']:case _0x46c90b[_0x44dc9f(0x435)]:this[_0x44dc9f(0x2ae)](),this[_0x44dc9f(0x158)](),this[_0x44dc9f(0x18c)][_0x44dc9f(0x48d)](_0x463aa5);break;case _0x46c90b[_0x44dc9f(0x34b)]:this[_0x44dc9f(0x4e0)]['error'](_0x44dc9f(0x161)+JSON[_0x44dc9f(0x42b)](_0x463aa5)),this[_0x44dc9f(0x18c)]['next'](_0x463aa5);break;case _0x46c90b[_0x44dc9f(0x1f8)]:this['_commentService'][_0x44dc9f(0x1cf)](_0x463aa5[_0x44dc9f(0x14f)]),this[_0x44dc9f(0x18c)][_0x44dc9f(0x48d)](_0x463aa5);break;default:this[_0x44dc9f(0x18c)]['next'](_0x463aa5);}}catch(_0x421722){this[_0x44dc9f(0x4e0)][_0x44dc9f(0x25c)](_0x421722,_0x37f726);}}[_0x513b3b(0x403)](_0x519b0e){const _0x103ff0=_0x513b3b;this[_0x103ff0(0x21c)][_0x103ff0(0x3ab)](this[_0x103ff0(0x264)],_0x519b0e[_0x103ff0(0x14f)]);}[_0x513b3b(0x433)](_0x392caf){const _0x52460c=_0x513b3b;this[_0x52460c(0x21c)][_0x52460c(0x3f4)](this['_unitID'],_0x392caf[_0x52460c(0x14f)]['memberID']);}async[_0x513b3b(0x415)](_0x136977,_0x4c3988){const _0x176db6=_0x513b3b;if(this['sessionStatus']!==0x3||!this[_0x176db6(0x1dd)])throw new Error(_0x176db6(0x2b3));try{_0x136977[_0x176db6(0x2db)]===_0x46c90b[_0x176db6(0x29e)]&&(this[_0x176db6(0x3c3)](),this[_0x176db6(0x463)](_0x136977)),this['_socket'][_0x176db6(0x415)]({'cmd':I[_0x176db6(0x310)],'routeKey':_0x4c3988,'routeType':'','data':_0x136977});}catch(_0x825992){this[_0x176db6(0x4e0)][_0x176db6(0x25c)](_0x825992);}}['_scheduleCollaborationTimeoutTimer'](){const _0x21dc61=_0x513b3b;var _0x20b35d;this[_0x21dc61(0x235)]=window[_0x21dc61(0x3dc)](()=>{const _0x2a37cc=_0x21dc61;this['_collaborationTimeoutTimer']=null,this[_0x2a37cc(0x26e)][_0x2a37cc(0x32b)]({'type':_0x1f1b3b[_0x2a37cc(0x1ea)],'content':this[_0x2a37cc(0x28c)]['t'](_0x2a37cc(0x363))});},(_0x20b35d=this['_configService'][_0x21dc61(0x4a0)](js))!=null?_0x20b35d:Hs);}[_0x513b3b(0x158)](){const _0x56b9da=_0x513b3b;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x56b9da(0x235)]),this[_0x56b9da(0x235)]=null);}[_0x513b3b(0x463)](_0x6f1581){const _0x40365b=_0x513b3b;if(!this['_shouldReportTelemetry'])return;const {data:_0x48e5ac}=_0x6f1581,{unitID:_0x4461c1,changeset:_0x2b6c1f}=_0x48e5ac,{mutations:_0x519b8e,type:_0x33ec9d}=_0x2b6c1f;this[_0x40365b(0x1c0)]={'unitId':_0x4461c1,'type':_0x33ec9d,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Gn(_0x519b8e)};}[_0x513b3b(0x2ae)](){const _0x1f31d4=_0x513b3b;if(this[_0x1f31d4(0x1a0)]){if(!this[_0x1f31d4(0x1c0)]){this['_logService']['error'](_0x1f31d4(0x477),_0x1f31d4(0x42e));return;}this[_0x1f31d4(0x1c0)][_0x1f31d4(0x43c)]=performance[_0x1f31d4(0x16d)](),this[_0x1f31d4(0x1c0)][_0x1f31d4(0x327)]=this[_0x1f31d4(0x1c0)][_0x1f31d4(0x43c)]-this[_0x1f31d4(0x1c0)][_0x1f31d4(0x2f9)],this[_0x1f31d4(0x231)][_0x1f31d4(0x3f8)](Wn,this[_0x1f31d4(0x1c0)]),this[_0x1f31d4(0x1c0)]=null;}}[_0x513b3b(0x4c2)](){const _0x2e8049=_0x513b3b;this[_0x2e8049(0x1c0)]=null;}};bt=Zn([J(0x2,_0x385fd2),J(0x3,_0x2077b2),J(0x4,_0x4608dc),J(0x5,_0x17c84c),J(0x6,_0x53ed15(_0x1deb41)),J(0x7,_0x53ed15(ce)),J(0x8,_0x53ed15(Vs)),J(0x9,_0x507395(_0x28e1be))],bt);var Qn=Object[_0x513b3b(0x1a5)],er=Object['getOwnPropertyDescriptor'],tr=(_0x554a1a,_0x589910,_0x3a7157,_0xd66a25)=>{const _0x37e55b=_0x513b3b;for(var _0x45e61a=_0xd66a25>0x1?void 0x0:_0xd66a25?er(_0x589910,_0x3a7157):_0x589910,_0xae8322=_0x554a1a[_0x37e55b(0x313)]-0x1,_0x53e76d;_0xae8322>=0x0;_0xae8322--)(_0x53e76d=_0x554a1a[_0xae8322])&&(_0x45e61a=(_0xd66a25?_0x53e76d(_0x589910,_0x3a7157,_0x45e61a):_0x53e76d(_0x45e61a))||_0x45e61a);return _0xd66a25&&_0x45e61a&&Qn(_0x589910,_0x3a7157,_0x45e61a),_0x45e61a;},me=(_0x54441d,_0x4672fb)=>(_0x50ba61,_0x244f34)=>_0x4672fb(_0x50ba61,_0x244f34,_0x54441d);let he=class extends _0x5f406a{constructor(_0x37bc6f,_0x4006b2,_0x129dcf,_0x2d8717,_0xd0551,_0x1ba224){const _0x2011a6=_0x513b3b;super(),l(this,_0x2011a6(0x447),new _0x1edb16(void 0x0)),l(this,_0x2011a6(0x1c5),this['_socket$'][_0x2011a6(0x2a4)]()),l(this,_0x2011a6(0x46c),null),l(this,_0x2011a6(0x24f),new Map()),l(this,'_status$',new _0x1edb16(Y['IDLE'])),l(this,_0x2011a6(0x258),this[_0x2011a6(0x1de)][_0x2011a6(0x2a4)]()),l(this,_0x2011a6(0x457),!0x1),l(this,'_retryConnectingTimer'),l(this,_0x2011a6(0x2d5),0x0),l(this,_0x2011a6(0x27c)),l(this,_0x2011a6(0x481)),(this[_0x2011a6(0x31e)]=_0x37bc6f,this[_0x2011a6(0x28c)]=_0x4006b2,this['_messageService']=_0x129dcf,this['_logService']=_0x2d8717,this[_0x2011a6(0x2cf)]=_0xd0551,this[_0x2011a6(0x1f2)]=_0x1ba224,this['_initEventListeners']());}get[_0x513b3b(0x1dd)](){const _0x3a20e4=_0x513b3b;return this[_0x3a20e4(0x447)][_0x3a20e4(0x3e2)]();}[_0x513b3b(0x353)](){const _0x32deef=_0x513b3b;this['_listenToOfflineEvent'](),this[_0x32deef(0x276)]();}['dispose'](){const _0x333efd=_0x513b3b;super['dispose'](),this[_0x333efd(0x24f)][_0x333efd(0x301)](_0x151c2b=>_0x151c2b[_0x333efd(0x3ce)]()),this[_0x333efd(0x24f)]['clear'](),this[_0x333efd(0x1de)][_0x333efd(0x2ff)]();}async[_0x513b3b(0x23e)](_0x4a68fc){const _0x1f494a=_0x513b3b;if(this['_sessions'][_0x1f494a(0x243)](_0x4a68fc))return this[_0x1f494a(0x24f)]['get'](_0x4a68fc);this[_0x1f494a(0x478)]();const _0xbebaff=this[_0x1f494a(0x31e)][_0x1f494a(0x269)](bt,_0x4a68fc,this['_socket$'][_0x1f494a(0x2a4)]());return this['_sessions'][_0x1f494a(0x3ca)](_0x4a68fc,_0xbebaff),_0xbebaff;}[_0x513b3b(0x36d)](_0x428e4e){const _0x2bb2e2=_0x513b3b;var _0x515821;const _0xbfb4b4=this['_sessions'][_0x2bb2e2(0x49f)](_0x428e4e);_0xbfb4b4&&(this[_0x2bb2e2(0x24f)][_0x2bb2e2(0x248)](_0x428e4e),_0xbfb4b4[_0x2bb2e2(0x2a2)]()),this[_0x2bb2e2(0x24f)]['size']||(_0x515821=this[_0x2bb2e2(0x1dd)])==null||_0x515821[_0x2bb2e2(0x2a2)]();}[_0x513b3b(0x43b)](){const _0x53740c=_0x513b3b;this[_0x53740c(0x2d5)]=0x0,this[_0x53740c(0x388)]!=null&&(clearTimeout(this[_0x53740c(0x388)]),this['_retryConnectingTimer']=null),this['_tryReconnect']();}[_0x513b3b(0x2e1)](){const _0x4712a8=_0x513b3b;var _0x42be1c,_0x120eb6;const _0x53c022=this['_configService'][_0x4712a8(0x4a0)](Tn),_0x36e8ef=this[_0x4712a8(0x2cf)][_0x4712a8(0x4a0)]($),_0x53b3a9=(_0x120eb6=(_0x42be1c=_0x36e8ef==null?void 0x0:_0x36e8ef['collabWebSocketUrl'])!=null?_0x42be1c:_0x53c022)!=null?_0x120eb6:Rn,_0x135c3b=this[_0x4712a8(0x1f2)]['createSocket'](_0x53b3a9);return this[_0x4712a8(0x46c)]=_0x135c3b,_0x135c3b;}[_0x513b3b(0x478)](){const _0x1283f9=_0x513b3b;var _0x7a4315,_0x565e72;try{const _0xdf3b49=(_0x565e72=(_0x7a4315=this[_0x1283f9(0x1dd)])!=null?_0x7a4315:this[_0x1283f9(0x46c)])!=null?_0x565e72:this[_0x1283f9(0x2e1)]();if(_0xdf3b49){const _0x437997=_0xdf3b49[_0x1283f9(0x415)];_0xdf3b49['send']=_0x7da819=>(this[_0x1283f9(0x1f3)](),_0x437997['apply'](_0xdf3b49,[_0x7da819])),_0xdf3b49['message$'][_0x1283f9(0x465)](_0x2fd170=>this['_onMessage'](_0xdf3b49,_0x2fd170)),_0xdf3b49[_0x1283f9(0x43a)]['pipe'](_0xe6e64a(0x1))[_0x1283f9(0x465)](_0x152a25=>this[_0x1283f9(0x4e0)]['error'](_0x1283f9(0x270),_0x152a25)),_0xdf3b49['open$'][_0x1283f9(0x33b)](_0xe6e64a(0x1))['subscribe'](()=>{const _0x5d966e=_0x1283f9;this[_0x5d966e(0x28b)](_0xdf3b49);}),_0xdf3b49[_0x1283f9(0x4de)]['pipe'](_0xe6e64a(0x1))[_0x1283f9(0x465)](_0x590e91=>{const _0x3bbd81=_0x1283f9;this['_logService']['debug'](_0x3bbd81(0x4c6),_0x3bbd81(0x32d),_0x590e91),this[_0x3bbd81(0x487)]();});}}catch(_0x2aabe9){this['_logService']['error'](_0x2aabe9),this['_onConnectionFailed']();}}[_0x513b3b(0x28b)](_0x110461){const _0x26f9b5=_0x513b3b;this[_0x26f9b5(0x4e0)][_0x26f9b5(0x2bc)](_0x26f9b5(0x4c6),_0x26f9b5(0x2fd)),_0x110461[_0x26f9b5(0x415)]({'cmd':I[_0x26f9b5(0x27f)]}),this[_0x26f9b5(0x1f3)]();}[_0x513b3b(0x41a)](){const _0x30ddf4=_0x513b3b;window[_0x30ddf4(0x2a6)](_0x30ddf4(0x1da),()=>this[_0x30ddf4(0x49b)]());}['_onOffline'](){const _0x291722=_0x513b3b;this[_0x291722(0x457)]=!0x1,this[_0x291722(0x46c)]=null,this[_0x291722(0x1de)][_0x291722(0x48d)](Y[_0x291722(0x44c)]),this[_0x291722(0x447)][_0x291722(0x48d)](null),this[_0x291722(0x3b7)](),this[_0x291722(0x3e9)]();}[_0x513b3b(0x487)](){const _0x3bbd4a=_0x513b3b;var _0x36f4f9;this[_0x3bbd4a(0x49b)](),this[_0x3bbd4a(0x2d5)]<((_0x36f4f9=this[_0x3bbd4a(0x2cf)][_0x3bbd4a(0x4a0)](Pn))!=null?_0x36f4f9:yn)?(this[_0x3bbd4a(0x26e)][_0x3bbd4a(0x32b)]({'key':_0x3bbd4a(0x4bd),'type':_0x1f1b3b[_0x3bbd4a(0x442)],'content':this[_0x3bbd4a(0x28c)]['t'](_0x3bbd4a(0x387))}),this[_0x3bbd4a(0x34f)]()):this[_0x3bbd4a(0x26e)][_0x3bbd4a(0x32b)]({'key':'collaboration-session-retry','type':_0x1f1b3b[_0x3bbd4a(0x1ea)],'content':this[_0x3bbd4a(0x28c)]['t'](_0x3bbd4a(0x334))});}[_0x513b3b(0x276)](){const _0x3f597e=_0x513b3b,_0x41428c=()=>{const _0x9fb92d=_0x1736;this[_0x9fb92d(0x1dd)]||this[_0x9fb92d(0x43b)]();},_0x4ff181=()=>{const _0x1b6e57=_0x1736;this['_socket']||document[_0x1b6e57(0x3d0)]===_0x1b6e57(0x4ab)||this['reconnect']();};window[_0x3f597e(0x2a6)](_0x3f597e(0x2a8),_0x41428c),document[_0x3f597e(0x2a6)](_0x3f597e(0x305),_0x4ff181);}[_0x513b3b(0x34f)](){const _0x2ddd94=_0x513b3b;var _0x18dc49;const _0x5d7436=this[_0x2ddd94(0x2d5)],_0xab61e7=this[_0x2ddd94(0x2cf)][_0x2ddd94(0x4a0)]($),_0x2e65a4=_0x5d7436===0x0?0x0:((_0x18dc49=_0xab61e7==null?void 0x0:_0xab61e7[_0x2ddd94(0x21a)])!=null?_0x18dc49:wn)*0x2**_0x5d7436;this[_0x2ddd94(0x388)]=window[_0x2ddd94(0x3dc)](()=>{const _0x55f808=_0x2ddd94;clearTimeout(this['_retryConnectingTimer']),this[_0x55f808(0x388)]=null,this['_tryEnsureSocket']();},_0x2e65a4),this['_retryCount']+=0x1;}[_0x513b3b(0x15b)](_0x290cf6,_0x59c3d0){const _0x50f1d1=_0x513b3b,{cmd:_0x56db27}=_0x59c3d0;_0x56db27===I[_0x50f1d1(0x27f)]&&!this[_0x50f1d1(0x457)]&&(_0x290cf6[_0x50f1d1(0x1fc)]=_0x59c3d0[_0x50f1d1(0x14f)][_0x50f1d1(0x1fc)],this[_0x50f1d1(0x447)][_0x50f1d1(0x48d)](_0x290cf6),this['_status$']['next'](Y[_0x50f1d1(0x1f7)]),this[_0x50f1d1(0x457)]=!0x0,this[_0x50f1d1(0x46c)]=null),_0x56db27===I[_0x50f1d1(0x300)]&&this[_0x50f1d1(0x3b7)](),this[_0x50f1d1(0x1f3)]();}['_rescheduleHeartbeat'](){const _0x4e0222=_0x513b3b;var _0x30c0b2;this['_clearHeartbeatTimer'](),this[_0x4e0222(0x27c)]=window[_0x4e0222(0x3dc)](()=>this['_sendHeartbeat'](),(_0x30c0b2=this[_0x4e0222(0x2cf)][_0x4e0222(0x4a0)](On))!=null?_0x30c0b2:Dn);}[_0x513b3b(0x4b5)](){const _0x5e2156=_0x513b3b;this[_0x5e2156(0x1dd)]['send']({'cmd':I[_0x5e2156(0x300)]}),this[_0x5e2156(0x3a4)]();}['_waitForHeartbeatResponse'](){const _0x494d08=_0x513b3b;var _0x7a4e31;this['_timeoutTimer']=window[_0x494d08(0x3dc)](()=>this[_0x494d08(0x487)](),(_0x7a4e31=this['_configService']['getConfig'](js))!=null?_0x7a4e31:Hs);}[_0x513b3b(0x3e9)](){const _0x153d5b=_0x513b3b;this[_0x153d5b(0x27c)]!=null&&(clearTimeout(this[_0x153d5b(0x27c)]),this[_0x153d5b(0x27c)]=null);}['_clearTimeoutTimer'](){const _0x56ca75=_0x513b3b;this[_0x56ca75(0x481)]!=null&&(clearTimeout(this[_0x56ca75(0x481)]),this[_0x56ca75(0x481)]=null);}};he=tr([me(0x0,_0x53ed15(_0x3165b6)),me(0x1,_0x53ed15(_0x1deb41)),me(0x2,_0x4608dc),me(0x3,_0x385fd2),me(0x4,_0x17c84c),me(0x5,Bs)],he);var T=[];for(var ct=0x0;ct<0x100;++ct)T[_0x513b3b(0x152)]((ct+0x100)[_0x513b3b(0x40b)](0x10)[_0x513b3b(0x193)](0x1));function sr(_0x25a653,_0x4cfe50=0x0){const _0x2500b8=_0x513b3b;return(T[_0x25a653[_0x4cfe50+0x0]]+T[_0x25a653[_0x4cfe50+0x1]]+T[_0x25a653[_0x4cfe50+0x2]]+T[_0x25a653[_0x4cfe50+0x3]]+'-'+T[_0x25a653[_0x4cfe50+0x4]]+T[_0x25a653[_0x4cfe50+0x5]]+'-'+T[_0x25a653[_0x4cfe50+0x6]]+T[_0x25a653[_0x4cfe50+0x7]]+'-'+T[_0x25a653[_0x4cfe50+0x8]]+T[_0x25a653[_0x4cfe50+0x9]]+'-'+T[_0x25a653[_0x4cfe50+0xa]]+T[_0x25a653[_0x4cfe50+0xb]]+T[_0x25a653[_0x4cfe50+0xc]]+T[_0x25a653[_0x4cfe50+0xd]]+T[_0x25a653[_0x4cfe50+0xe]]+T[_0x25a653[_0x4cfe50+0xf]])[_0x2500b8(0x4c9)]();}var xe,ir=new Uint8Array(0x10);function nr(){const _0xc113c3=_0x513b3b;if(!xe&&(xe=typeof crypto<'u'&&crypto[_0xc113c3(0x44b)]&&crypto['getRandomValues'][_0xc113c3(0x1f4)](crypto),!xe))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return xe(ir);}var rr=typeof crypto<'u'&&crypto[_0x513b3b(0x275)]&&crypto[_0x513b3b(0x275)][_0x513b3b(0x1f4)](crypto);function _0x1736(_0x5550c7,_0x277c9c){const _0x26a066=_0x26a0();return _0x1736=function(_0x173615,_0x3077b8){_0x173615=_0x173615-0x145;let _0x4d47f1=_0x26a066[_0x173615];return _0x4d47f1;},_0x1736(_0x5550c7,_0x277c9c);}const cs={'randomUUID':rr};function or(_0x14c5a5,_0x3de3b4,_0x2c0b52){const _0x42176b=_0x513b3b;if(cs[_0x42176b(0x275)]&&!_0x3de3b4&&!_0x14c5a5)return cs['randomUUID']();_0x14c5a5=_0x14c5a5||{};var _0x495478=_0x14c5a5[_0x42176b(0x34d)]||(_0x14c5a5['rng']||nr)();return _0x495478[0x6]=_0x495478[0x6]&0xf|0x40,_0x495478[0x8]=_0x495478[0x8]&0x3f|0x80,sr(_0x495478);}var ar=Object[_0x513b3b(0x1a5)],cr=Object[_0x513b3b(0x1be)],hr=(_0x45a080,_0x2f1125,_0xa542b3,_0x4ed0fb)=>{for(var _0x2a9898=_0x4ed0fb>0x1?void 0x0:_0x4ed0fb?cr(_0x2f1125,_0xa542b3):_0x2f1125,_0x438f46=_0x45a080['length']-0x1,_0x516849;_0x438f46>=0x0;_0x438f46--)(_0x516849=_0x45a080[_0x438f46])&&(_0x2a9898=(_0x4ed0fb?_0x516849(_0x2f1125,_0xa542b3,_0x2a9898):_0x516849(_0x2a9898))||_0x2a9898);return _0x4ed0fb&&_0x2a9898&&ar(_0x2f1125,_0xa542b3,_0x2a9898),_0x2a9898;},ht=(_0x1a2c7e,_0x2023d7)=>(_0x1db214,_0x1be8f8)=>_0x2023d7(_0x1db214,_0x1be8f8,_0x1a2c7e);let Ye=class{constructor(_0x408df3,_0x2a4ce7,_0x24ea5d){const _0x24ce9b=_0x513b3b;this[_0x24ce9b(0x31e)]=_0x408df3,this[_0x24ce9b(0x283)]=_0x2a4ce7,this['_renderManagerService']=_0x24ea5d;}[_0x513b3b(0x314)](_0x3e2f22){const _0x504508=_0x513b3b;this[_0x504508(0x4dd)](_0x3e2f22),this[_0x504508(0x2e7)](_0x3e2f22);}[_0x513b3b(0x26a)](_0x20ad10){const _0x188a20=_0x513b3b,{unitID:_0x39a998}=_0x20ad10,_0x34670f=this[_0x188a20(0x3b9)][_0x188a20(0x192)](_0x39a998)['with'](_0x163018),{redoCache:_0x1b1329}=_0x34670f['getUndoRedoMutationParamsCache']();if(_0x1b1329[_0x188a20(0x313)]===0x0)return _0x20ad10;let _0x12e179=_0x31cbda[_0x188a20(0x39c)](_0x20ad10[_0x188a20(0x421)][0x0]);for(let _0x18709d=0x0;_0x18709d<_0x1b1329['length'];_0x18709d++){const _0x5abbea={'id':_0x188a20(0x1dc),'params':{..._0x1b1329[_0x18709d]}},_0x559b09=this[_0x188a20(0x283)][_0x188a20(0x40a)](_0x12e179,_0x5abbea,!0x1);if(_0x24fa2f(_0x559b09))throw _0x559b09[_0x188a20(0x25c)];_0x12e179=_0x559b09['m1Prime'];}return{..._0x31cbda[_0x188a20(0x39c)](_0x20ad10),'mutations':[_0x12e179]};}[_0x513b3b(0x4dd)](_0x182cce){const _0x5c1f12=_0x513b3b,{unitID:_0xffc5b0}=_0x182cce,_0x5292f2=this['_renderManagerService'][_0x5c1f12(0x192)](_0xffc5b0)['with'](_0x163018),{undoCache:_0x3b4ade,redoCache:_0x478090}=_0x5292f2[_0x5c1f12(0x317)]();if(_0x3b4ade['length']===0x0||_0x478090[_0x5c1f12(0x313)]===0x0)return;const _0xa17ebf=[],_0x58a88b=[];let _0x4a6da1=_0x31cbda['deepClone'](_0x182cce[_0x5c1f12(0x421)][0x0]),_0x31e5e7=_0x31cbda[_0x5c1f12(0x39c)](_0x182cce[_0x5c1f12(0x421)][0x0]);for(let _0x88dc31=_0x3b4ade[_0x5c1f12(0x313)]-0x1;_0x88dc31>=0x0;_0x88dc31--){const _0x5d60a8={'id':_0x5c1f12(0x1dc),'params':{..._0x3b4ade[_0x88dc31]}},_0x19c4a2={'id':_0x5c1f12(0x1dc),'params':{..._0x478090[_0x88dc31]}},_0xb9d032=this[_0x5c1f12(0x283)][_0x5c1f12(0x40a)](_0x4a6da1,_0x5d60a8,!0x1),_0x12ed8a=this[_0x5c1f12(0x283)]['transformMutation'](_0x31e5e7,_0x19c4a2,!0x1);if(_0x24fa2f(_0xb9d032))throw _0xb9d032['error'];if(_0x24fa2f(_0x12ed8a))throw _0x12ed8a[_0x5c1f12(0x25c)];_0xa17ebf[_0x5c1f12(0x2e9)](_0xb9d032[_0x5c1f12(0x2b9)][_0x5c1f12(0x498)]),_0x58a88b[_0x5c1f12(0x2e9)](_0x12ed8a['m2Prime'][_0x5c1f12(0x498)]),_0x4a6da1=_0xb9d032[_0x5c1f12(0x4c7)],_0x31e5e7=_0x12ed8a[_0x5c1f12(0x4c7)];}_0x5292f2[_0x5c1f12(0x1fa)]({'undoCache':_0xa17ebf,'redoCache':_0x58a88b});}[_0x513b3b(0x2e7)](_0x1fe3bd){const _0x5af00c=_0x513b3b,{unitID:_0x30e49a}=_0x1fe3bd,_0x5ca008=this[_0x5af00c(0x3b9)][_0x5af00c(0x192)](_0x30e49a)[_0x5af00c(0x2b1)](_0x163018),_0x32623a=_0x5ca008['getActiveRange']();if(_0x32623a==null)return;const _0x502a44=[{'id':_0x5af00c(0x1dc),'params':{'unitId':_0x1fe3bd['unitID'],'actions':null,'textRanges':[_0x32623a]}}],_0x1ce344=this[_0x5af00c(0x283)][_0x5af00c(0x398)](_0x1fe3bd,_0x502a44);if(!_0x16b713(_0x1ce344))throw _0x1ce344['error'];const _0xe5a0d=_0x1ce344[_0x5af00c(0x2b9)][0x0]['params'][_0x5af00c(0x3b1)];Array[_0x5af00c(0x33f)](_0xe5a0d)&&_0xe5a0d[_0x5af00c(0x313)]&&_0x5ca008[_0x5af00c(0x20e)](_0xe5a0d[0x0]);}};Ye=hr([ht(0x0,_0x53ed15(_0x3165b6)),ht(0x1,_0x2e5ae8),ht(0x2,_0xdb11a1)],Ye);var lr=Object[_0x513b3b(0x1a5)],_r=Object[_0x513b3b(0x1be)],ur=(_0x150633,_0x3b65b2,_0xb83c68,_0x32b183)=>{const _0x462cd9=_0x513b3b;for(var _0x2d55c2=_0x32b183>0x1?void 0x0:_0x32b183?_r(_0x3b65b2,_0xb83c68):_0x3b65b2,_0x39fd32=_0x150633[_0x462cd9(0x313)]-0x1,_0x520c7f;_0x39fd32>=0x0;_0x39fd32--)(_0x520c7f=_0x150633[_0x39fd32])&&(_0x2d55c2=(_0x32b183?_0x520c7f(_0x3b65b2,_0xb83c68,_0x2d55c2):_0x520c7f(_0x2d55c2))||_0x2d55c2);return _0x32b183&&_0x2d55c2&&lr(_0x3b65b2,_0xb83c68,_0x2d55c2),_0x2d55c2;},De=(_0x1b6a21,_0x4ca794)=>(_0x1c57da,_0x30328a)=>_0x4ca794(_0x1c57da,_0x30328a,_0x1b6a21);let w=class extends _0x5f406a{constructor(_0x2090b3,_0x5ccc46,_0x1aaab1,_0x183bb6,_0x4394c7){const _0x556c2b=_0x513b3b;super(),l(this,_0x556c2b(0x3c5),new Map()),l(this,_0x556c2b(0x37d),new Map()),l(this,_0x556c2b(0x355),!0x1),(this[_0x556c2b(0x2cf)]=_0x2090b3,this[_0x556c2b(0x38b)]=_0x5ccc46,this[_0x556c2b(0x336)]=_0x1aaab1,this[_0x556c2b(0x28c)]=_0x183bb6,this[_0x556c2b(0x344)]=_0x4394c7,this['_setupBeforeClosingHandler']());}[_0x513b3b(0x171)](){this['_disabled']=!0x0;}[_0x513b3b(0x299)](){const _0x36d6c9=_0x513b3b;this[_0x36d6c9(0x355)]=!0x1;}['dispose'](){const _0x288c30=_0x513b3b;this[_0x288c30(0x4d8)]()[_0x288c30(0x2cd)](()=>super['dispose']());}async[_0x513b3b(0x263)](_0x455602){const _0xd4f688=_0x513b3b;return this[_0xd4f688(0x355)]?null:this[_0xd4f688(0x38b)][_0xd4f688(0x1e1)](hs(_0x455602));}async[_0x513b3b(0x2ee)](_0x194f70,_0x4db8c8){const _0x2a266c=_0x513b3b;return!!this[_0x2a266c(0x38b)][_0x2a266c(0x4a5)](_0x194f70,_0x4db8c8);}[_0x513b3b(0x400)](_0x14eb11,_0x484345,_0x11b164,_0x1f32c9){const _0x1060d5=_0x513b3b,_0x1d69ad=this[_0x1060d5(0x344)][_0x1060d5(0x324)](_0x14eb11);this[_0x1060d5(0x3c5)][_0x1060d5(0x3ca)](_0x14eb11,{'unitID':_0x14eb11,'type':_0x484345,'awaitingChangeset':_0x11b164,'mutations':_0x1f32c9,'rev':_0x1d69ad}),this[_0x1060d5(0x37d)][_0x1060d5(0x243)](_0x14eb11)||this[_0x1060d5(0x16f)](_0x14eb11);}[_0x513b3b(0x16f)](_0x31ce1b){const _0x2915ec=_0x513b3b,_0x470e4e=this[_0x2915ec(0x36a)]();_0x470e4e===0x0?this[_0x2915ec(0x3bb)](_0x31ce1b):this['_saveTaskMap'][_0x2915ec(0x3ca)](_0x31ce1b,setTimeout(()=>this['_saveCache'](_0x31ce1b),_0x470e4e));}[_0x513b3b(0x36a)](){var _0x19bad3;return(_0x19bad3=this['_configService']['getConfig'](Un))!=null?_0x19bad3:Nn;}[_0x513b3b(0x3bb)](_0x33870e){const _0x4b993f=_0x513b3b,_0x5e747a=this[_0x4b993f(0x37d)]['get'](_0x33870e);return _0x5e747a!==void 0x0&&window[_0x4b993f(0x3e7)](_0x5e747a),this[_0x4b993f(0x38b)][_0x4b993f(0x4a5)](hs(_0x33870e),this['_cachedData']['get'](_0x33870e))['then'](()=>this[_0x4b993f(0x37d)][_0x4b993f(0x248)](_0x33870e));}async[_0x513b3b(0x4d8)](){const _0x3f210b=_0x513b3b,_0x592c5f=[];this['_saveTaskMap'][_0x3f210b(0x301)]((_0x3e6ad6,_0xb72014)=>{const _0x58d538=_0x3f210b;window[_0x58d538(0x3e7)](_0x3e6ad6),_0x592c5f['push'](this[_0x58d538(0x3bb)](_0xb72014)[_0x58d538(0x2cd)](()=>{const _0x2219f8=_0x58d538;this[_0x2219f8(0x37d)][_0x2219f8(0x248)](_0xb72014);}));}),await Promise[_0x3f210b(0x30d)](_0x592c5f);}[_0x513b3b(0x369)](){const _0x2344e2=_0x513b3b;this[_0x2344e2(0x233)](this[_0x2344e2(0x336)][_0x2344e2(0x441)](()=>{const _0x5c9565=_0x2344e2;if(this[_0x5c9565(0x37d)]['size'])return this[_0x5c9565(0x28c)]['t'](_0x5c9565(0x28a));}));}};w=ur([De(0x0,_0x17c84c),De(0x1,_0x476566),De(0x2,_0x2077b2),De(0x3,_0x53ed15(_0x1deb41)),De(0x4,_0x53ed15(_0x231b85))],w);function hs(_0x32cb0b){return'unit-cache-'+_0x32cb0b;}var dr=Object[_0x513b3b(0x1a5)],mr=Object[_0x513b3b(0x1be)],fr=(_0x2050c0,_0x3b6d6e,_0x59efef,_0x379ca2)=>{const _0x18f203=_0x513b3b;for(var _0x445582=_0x379ca2>0x1?void 0x0:_0x379ca2?mr(_0x3b6d6e,_0x59efef):_0x3b6d6e,_0x50c966=_0x2050c0[_0x18f203(0x313)]-0x1,_0x17ee6c;_0x50c966>=0x0;_0x50c966--)(_0x17ee6c=_0x2050c0[_0x50c966])&&(_0x445582=(_0x379ca2?_0x17ee6c(_0x3b6d6e,_0x59efef,_0x445582):_0x17ee6c(_0x445582))||_0x445582);return _0x379ca2&&_0x445582&&dr(_0x3b6d6e,_0x59efef,_0x445582),_0x445582;},lt=(_0x23fadf,_0x2987b3)=>(_0x3cad10,_0x3dd689)=>_0x2987b3(_0x3cad10,_0x3dd689,_0x23fadf);function gr(_0x56039d){const _0x33582e=_0x513b3b,{unitID:_0x3e4bf1,mutations:_0x12e747}=_0x56039d;return{'unitId':_0x3e4bf1,'subUnitId':_0x12e747[0x0][_0x33582e(0x498)][_0x33582e(0x3df)]};}let Ke=class{constructor(_0x2cafc7,_0xd3aef6,_0x52b982){const _0x2e2eaa=_0x513b3b;this['_injector']=_0x2cafc7,this[_0x2e2eaa(0x283)]=_0xd3aef6,this[_0x2e2eaa(0x2e8)]=_0x52b982;}[_0x513b3b(0x439)](_0x1c5504){const _0xeffc6f=_0x513b3b;var _0x46ba6c,_0x2c6ac4,_0x1bc607,_0x47d6c5;const _0x569c58=this[_0xeffc6f(0x31e)]['get'](_0x4c5ec4),{unitId:_0xd60c7,subUnitId:_0x23672e}=gr(_0x1c5504),_0x309c5f=_0x569c58[_0xeffc6f(0x3ee)](_0xd60c7)['getCurrentSelections'](),_0x35c14c=(_0x2c6ac4=(_0x46ba6c=this[_0xeffc6f(0x2e8)][_0xeffc6f(0x3a8)](_0xd60c7))==null?void 0x0:_0x46ba6c['getActiveSheet']())==null?void 0x0:_0x2c6ac4[_0xeffc6f(0x27d)]();if(_0x309c5f[_0xeffc6f(0x313)]===0x0||!_0xd60c7||!_0x23672e)return;const _0x3db89d=[{'id':_0x246d31['id'],'params':{'unitId':_0xd60c7,'subUnitId':_0x35c14c,'selections':_0x31cbda['deepClone'](_0x309c5f)}}],_0x74e675=this[_0xeffc6f(0x283)][_0xeffc6f(0x398)](_0x1c5504,_0x3db89d);if(!_0x16b713(_0x74e675))throw _0x74e675[_0xeffc6f(0x25c)];const _0x37a9a8=(_0x47d6c5=(_0x1bc607=_0x74e675['m2Prime'][0x0])==null?void 0x0:_0x1bc607[_0xeffc6f(0x498)])==null?void 0x0:_0x47d6c5[_0xeffc6f(0x2ca)];if(Array[_0xeffc6f(0x33f)](_0x37a9a8)&&_0x37a9a8[_0xeffc6f(0x313)]){if(_0x37a9a8[_0xeffc6f(0x313)]===_0x3db89d[0x0][_0xeffc6f(0x498)][_0xeffc6f(0x2ca)][_0xeffc6f(0x313)]&&_0x37a9a8['every']((_0x1917c8,_0xce3e25)=>_0x3deb79[_0xeffc6f(0x287)](_0x1917c8['range'],_0x3db89d[0x0]['params'][_0xeffc6f(0x2ca)][_0xce3e25][_0xeffc6f(0x304)])))return;this['_injector'][_0xeffc6f(0x49f)](_0x8348c)[_0xeffc6f(0x374)](_0x246d31['id'],{'unitId':_0xd60c7,'subUnitId':_0x35c14c,'selections':_0x37a9a8});}}};Ke=fr([lt(0x0,_0x53ed15(_0x3165b6)),lt(0x1,_0x2e5ae8),lt(0x2,_0x4c005a)],Ke);const tt=_0x52354a(_0x513b3b(0x3af));var Fs=(_0x1a9de8=>(_0x1a9de8[_0x1a9de8[_0x513b3b(0x46b)]=0x0]=_0x513b3b(0x46b),_0x1a9de8[_0x1a9de8[_0x513b3b(0x1fe)]=0x1]=_0x513b3b(0x1fe),_0x1a9de8))(Fs||{});const ls=0x7530,_s='ACTIVE_UNIT_EVENT_CHANNEL';class Sr extends _0x5f406a{constructor(){const _0x56ec36=_0x513b3b;super(),l(this,_0x56ec36(0x418),_0x31cbda[_0x56ec36(0x22e)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x56ec36(0x209),new Map()),l(this,_0x56ec36(0x338),null),l(this,_0x56ec36(0x28f),new Map()),l(this,_0x56ec36(0x195),new Map()),this[_0x56ec36(0x49c)]();}[_0x513b3b(0x3ce)](){const _0x286b18=_0x513b3b;super[_0x286b18(0x3ce)](),this['_clearOtherTimers'][_0x286b18(0x301)]((_0x1a2f12,_0x2243fb)=>this[_0x286b18(0x236)](_0x2243fb)),this[_0x286b18(0x338)]&&window['clearInterval'](this['_heartbeatTimer']);}['getUnitStatus$'](_0xd2cba2){const _0xcc369f=_0x513b3b;return this['_ensureSubject'](_0xd2cba2)[_0xcc369f(0x33b)](_0x504670());}[_0x513b3b(0x368)](_0x3f332b){const _0x8a2e2f=_0x513b3b;this['_selfUnitIDs'][_0x8a2e2f(0x302)]===0x0&&this[_0x8a2e2f(0x1e8)](),this[_0x8a2e2f(0x169)][_0x8a2e2f(0x2ab)](_0x3f332b),this['_send']({'type':0x0,'memberID':this[_0x8a2e2f(0x418)],'unitIDs':[_0x3f332b],'isForwarded':!0x1});}['disposeUnit'](_0x20959f){const _0x104514=_0x513b3b;this[_0x104514(0x169)][_0x104514(0x248)](_0x20959f),this[_0x104514(0x169)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x104514(0x348)](this['_heartbeatTimer']);}[_0x513b3b(0x49c)](){const _0x2fba76=_0x513b3b;this['disposeWithMe'](_0x29caef(_0x2832fb(window,_0x2fba76(0x225))['subscribe'](_0x4ebd64=>{const _0x3af6b9=_0x2fba76;if(_0x4ebd64[_0x3af6b9(0x422)]!==_s||!_0x4ebd64[_0x3af6b9(0x19e)])return;const _0xc8f5e8=JSON[_0x3af6b9(0x3bf)](_0x4ebd64[_0x3af6b9(0x19e)]);this[_0x3af6b9(0x205)](_0xc8f5e8);}))),window[_0x2fba76(0x2a6)](_0x2fba76(0x493),()=>this[_0x2fba76(0x451)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x2fba76(0x256)](this['_selfUnitIDs'])}));}['_handleEvent'](_0x5feb02){const _0x4834f6=_0x513b3b;switch(_0x5feb02[_0x4834f6(0x30b)]){case 0x0:this[_0x4834f6(0x197)](_0x5feb02);break;case 0x1:this[_0x4834f6(0x163)](_0x5feb02);break;case 0x2:this[_0x4834f6(0x165)](_0x5feb02);break;}}['_handleJoinEvent'](_0x36070f){const _0xaa1348=_0x513b3b,{unitIDs:_0x2ef454,memberID:_0x101bfb,isForwarded:_0x33182a}=_0x36070f;_0x2ef454['forEach'](_0x13c955=>{const _0x2f9a25=_0x1736;if(!_0x33182a&&this[_0x2f9a25(0x209)][_0x2f9a25(0x243)](_0x13c955)&&this[_0x2f9a25(0x234)](_0x13c955)[_0x2f9a25(0x48d)](0x1),!this[_0x2f9a25(0x209)][_0x2f9a25(0x243)](_0x13c955)||!this[_0x2f9a25(0x209)]['get'](_0x13c955)[_0x2f9a25(0x243)](_0x101bfb)){const _0x4cfa39=this['_unitOnClients'][_0x2f9a25(0x49f)](_0x13c955)||new Set();_0x4cfa39[_0x2f9a25(0x2ab)](_0x101bfb),this[_0x2f9a25(0x209)][_0x2f9a25(0x3ca)](_0x13c955,_0x4cfa39),this[_0x2f9a25(0x408)](_0x101bfb);}}),_0x33182a||this['_send']({'type':0x0,'memberID':this[_0xaa1348(0x418)],'unitIDs':[...this[_0xaa1348(0x169)]],'isForwarded':!0x0});}[_0x513b3b(0x408)](_0x4257b2){const _0x588f37=_0x513b3b;this[_0x588f37(0x236)](_0x4257b2);const _0x138385=window[_0x588f37(0x3dc)](()=>{const _0x23d5c4=_0x588f37;this['_unitOnClients'][_0x23d5c4(0x301)](_0x2e798a=>{_0x2e798a['delete'](_0x4257b2);});},ls*0x2);this[_0x588f37(0x28f)][_0x588f37(0x3ca)](_0x4257b2,_0x138385);}[_0x513b3b(0x236)](_0x5c716d){const _0x2d6a04=_0x513b3b;if(this[_0x2d6a04(0x28f)][_0x2d6a04(0x243)](_0x5c716d)){const _0x2bbda3=this[_0x2d6a04(0x28f)][_0x2d6a04(0x49f)](_0x5c716d);_0x2bbda3&&window['clearTimeout'](_0x2bbda3),this['_clearOtherTimers'][_0x2d6a04(0x3ca)](_0x5c716d,null);}}['_handleLeaveEvent'](_0x13dccb){const _0x3848b0=_0x513b3b,{memberID:_0x3d7155,unitIDs:_0x523eaa}=_0x13dccb;_0x523eaa[_0x3848b0(0x301)](_0x48b625=>{const _0xdc2840=_0x3848b0;var _0x579156;const _0x8c9088=this[_0xdc2840(0x209)][_0xdc2840(0x49f)](_0x48b625);_0x8c9088&&(_0x8c9088[_0xdc2840(0x248)](_0x3d7155),(_0x579156=this[_0xdc2840(0x234)](_0x48b625))==null||_0x579156['next'](_0x8c9088['size']===0x0?0x0:0x1));}),this[_0x3848b0(0x236)](_0x3d7155);}[_0x513b3b(0x165)](_0x12fccb){const _0x42a4d5=_0x513b3b;this[_0x42a4d5(0x408)](_0x12fccb['memberID']);}[_0x513b3b(0x451)](_0x5298b2){const _0x1aaa25=_0x513b3b;localStorage[_0x1aaa25(0x4a5)](_s,JSON[_0x1aaa25(0x42b)](_0x5298b2));}[_0x513b3b(0x1e8)](){const _0x78e84c=_0x513b3b;this[_0x78e84c(0x338)]=window['setInterval'](()=>{const _0x5893ec=_0x78e84c;this[_0x5893ec(0x451)]({'type':0x2,'memberID':this['_id']});},ls);}[_0x513b3b(0x234)](_0x31f6be){const _0x14495c=_0x513b3b;return this[_0x14495c(0x195)][_0x14495c(0x243)](_0x31f6be)||this[_0x14495c(0x195)]['set'](_0x31f6be,new _0x1edb16(0x0)),this[_0x14495c(0x195)][_0x14495c(0x49f)](_0x31f6be);}}function Ws(_0x2041c4){const _0xcb19ab=_0x513b3b;let _0x10e0a3='';for(const _0x4b05c2 of _0x2041c4){const {startOffset:_0xde09d8,endOffset:_0x1471e3,isActive:_0x54e812}=_0x4b05c2;_0x10e0a3[_0xcb19ab(0x313)]&&(_0x10e0a3+=','),_0x10e0a3+=_0xde09d8+':'+_0x1471e3+':'+(_0x54e812?'1':'0');}return _0x10e0a3;}function pr(_0x42ea1e){const _0x48fc05=_0x513b3b,_0x24e2c4=_0x42ea1e['split'](','),_0x5cde43=[];for(const _0x2b0437 of _0x24e2c4){const [_0x361080,_0x471901,_0x2561d2]=_0x2b0437[_0x48fc05(0x17d)](':');_0x5cde43[_0x48fc05(0x152)]({'startOffset':Number(_0x361080),'endOffset':Number(_0x471901),'collapsed':_0x361080===_0x471901,'isActive':_0x2561d2==='1'});}return _0x5cde43['some'](_0x4fc475=>_0x4fc475['isActive'])||(_0x5cde43[0x0][_0x48fc05(0x14c)]=!0x0),_0x5cde43;}class Ft extends _0x346899{constructor(){const _0x23723c=_0x513b3b;super(...arguments),l(this,_0x23723c(0x2ed),new _0x1edb16(null)),l(this,'collabCursorState$',this[_0x23723c(0x2ed)][_0x23723c(0x2a4)]());}[_0x513b3b(0x4a8)](_0x2da066){const _0x92b94=_0x513b3b,{unitID:_0x2aa154,memberID:_0x12aa1b,textRanges:_0x488f73}=_0x2da066,_0x52c168=Ws(_0x488f73),_0x1846b1={'unitID':_0x2aa154,'memberID':_0x12aa1b,'selection':_0x52c168};this[_0x92b94(0x2ed)][_0x92b94(0x48d)](_0x1846b1);}}var vr=Object[_0x513b3b(0x1a5)],Ir=Object[_0x513b3b(0x1be)],Er=(_0x402db5,_0x2d85d6,_0x1b4851,_0x4fa3ce)=>{const _0x2145bd=_0x513b3b;for(var _0x1ec7d7=_0x4fa3ce>0x1?void 0x0:_0x4fa3ce?Ir(_0x2d85d6,_0x1b4851):_0x2d85d6,_0x5aaf19=_0x402db5[_0x2145bd(0x313)]-0x1,_0x26012b;_0x5aaf19>=0x0;_0x5aaf19--)(_0x26012b=_0x402db5[_0x5aaf19])&&(_0x1ec7d7=(_0x4fa3ce?_0x26012b(_0x2d85d6,_0x1b4851,_0x1ec7d7):_0x26012b(_0x1ec7d7))||_0x1ec7d7);return _0x4fa3ce&&_0x1ec7d7&&vr(_0x2d85d6,_0x1b4851,_0x1ec7d7),_0x1ec7d7;},us=(_0x1259b8,_0x14de44)=>(_0x47b353,_0x2193e9)=>_0x14de44(_0x47b353,_0x2193e9,_0x1259b8);let Xe=class{constructor(_0x1f1339,_0x2a845f){const _0x17978b=_0x513b3b;this[_0x17978b(0x31e)]=_0x1f1339,this['_transformService']=_0x2a845f;}[_0x513b3b(0x439)](_0xf84ae2){const _0xa0b0e7=_0x513b3b;var _0x2a530c;const _0x56ec01=this[_0xa0b0e7(0x31e)][_0xa0b0e7(0x49f)](_0x2d5996),_0x3f817f=(_0x2a530c=_0x56ec01[_0xa0b0e7(0x372)]())!=null?_0x2a530c:[];if(_0x3f817f[_0xa0b0e7(0x313)]===0x0)return;const _0x5667fe=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xf84ae2[_0xa0b0e7(0x44f)],'actions':null,'textRanges':_0x3f817f}}],_0x4a9166=this[_0xa0b0e7(0x283)][_0xa0b0e7(0x398)](_0xf84ae2,_0x5667fe);if(!_0x16b713(_0x4a9166))throw _0x4a9166[_0xa0b0e7(0x25c)];const _0x3e5176=_0x4a9166['m2Prime'][0x0]['params'][_0xa0b0e7(0x3b1)];Array['isArray'](_0x3e5176)&&_0x3e5176[_0xa0b0e7(0x313)]&&_0x56ec01[_0xa0b0e7(0x25f)](_0x3e5176,!0x1);}};Xe=Er([us(0x0,_0x53ed15(_0x3165b6)),us(0x1,_0x2e5ae8)],Xe);const Cr=new Set([_0x456f7d['id']]);function ds(_0x1770a6,_0x32f8c4,_0x28d0ff,_0x42fc2a,_0x40fc75){const _0x49b2a4=_0x513b3b;var _0x1ebeee,_0x5d2aad,_0x520f0a,_0x4c17a2;const _0x170ab7=[];for(const _0x4766ab of _0x1770a6)if(Cr[_0x49b2a4(0x243)](_0x4766ab['id'])){if(_0x170ab7[_0x49b2a4(0x313)]>0x0)break;_0x170ab7[_0x49b2a4(0x152)](_0x4766ab);break;}else _0x170ab7[_0x49b2a4(0x152)](_0x4766ab);const _0x20b8c7=(_0x5d2aad=(_0x1ebeee=_0x40fc75[_0x49b2a4(0x3fe)]())==null?void 0x0:_0x1ebeee[_0x49b2a4(0x40e)])!=null?_0x5d2aad:_0x49b2a4(0x42a),_0x45fd43=(_0x4c17a2=(_0x520f0a=_0x40fc75[_0x49b2a4(0x3fe)]())==null?void 0x0:_0x520f0a[_0x49b2a4(0x1fc)])!=null?_0x4c17a2:'unknown';return{'changeset':{'unitID':_0x32f8c4,'type':_0x376ae6(_0x28d0ff[_0x49b2a4(0x261)](_0x32f8c4)),'baseRev':_0x42fc2a['getCurrentRevOfUnit'](_0x32f8c4),'revision':0x0,'userID':_0x20b8c7,'memberID':_0x45fd43,'mutations':_0x170ab7},'pendingMutations':_0x1770a6[_0x49b2a4(0x193)](_0x170ab7['length'])};}function br(_0x4aa427,_0x481af9,_0x28191f,_0x19f9a4,_0x2aec6c){const _0x155231=_0x513b3b;var _0x171e01,_0x2a9a67,_0x20a2b1,_0x4af067;const _0x44a37a=[_0x4aa427[_0x155231(0x2cc)]((_0x562ea1,_0x20bf80)=>{const _0x3a7ca6=_0x155231;var _0x4dd4e5;const {id:_0x1d7bac}=_0x562ea1,{id:_0x3eb4de,type:_0x843b57}=_0x20bf80,_0x10612c=(_0x4dd4e5=_0x562ea1['params'])!=null?_0x4dd4e5:{'actions':null},_0x905bd9=_0x20bf80['params'];if(_0x1d7bac&&_0x1d7bac!==_0x3eb4de)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x1d7bac+_0x3a7ca6(0x15e)+_0x3eb4de+'.');return{..._0x562ea1,'id':_0x3eb4de,'type':_0x843b57,'params':{'unitId':_0x905bd9['unitId'],'textRanges':_0x905bd9[_0x3a7ca6(0x3b1)],'actions':_0x494871[_0x3a7ca6(0x412)](_0x10612c[_0x3a7ca6(0x458)],_0x905bd9[_0x3a7ca6(0x458)])}};},{})],_0x369db6=(_0x2a9a67=(_0x171e01=_0x2aec6c[_0x155231(0x3fe)]())==null?void 0x0:_0x171e01[_0x155231(0x40e)])!=null?_0x2a9a67:'unknown',_0x2f8065=(_0x4af067=(_0x20a2b1=_0x2aec6c[_0x155231(0x3fe)]())==null?void 0x0:_0x20a2b1[_0x155231(0x1fc)])!=null?_0x4af067:_0x155231(0x42a);return{'changeset':{'unitID':_0x481af9,'type':_0x376ae6(_0x28191f[_0x155231(0x261)](_0x481af9)),'baseRev':_0x19f9a4[_0x155231(0x324)](_0x481af9),'revision':0x0,'userID':_0x369db6,'memberID':_0x2f8065,'mutations':_0x44a37a},'pendingMutations':[]};}function Gs(_0x33826d,_0x125536){const _0xa66877=_0x513b3b,_0x37583d=new _0x3f0a22(0x1);return setTimeout(()=>_0x37583d[_0xa66877(0x48d)](_0x125536),_0x33826d),_0x37583d[_0xa66877(0x2a4)]()[_0xa66877(0x33b)](_0x549142(0x1));}const Tr={'id':_0x71deda['id'],'type':_0x4e2bbf['MUTATION'],'params':{}};var Rr=Object[_0x513b3b(0x1a5)],Or=Object[_0x513b3b(0x1be)],_e=(_0x265ba1,_0x400053,_0x46f823,_0x504f36)=>{const _0xb35238=_0x513b3b;for(var _0x567891=_0x504f36>0x1?void 0x0:_0x504f36?Or(_0x400053,_0x46f823):_0x400053,_0x3dd8c9=_0x265ba1[_0xb35238(0x313)]-0x1,_0x3e0769;_0x3dd8c9>=0x0;_0x3dd8c9--)(_0x3e0769=_0x265ba1[_0x3dd8c9])&&(_0x567891=(_0x504f36?_0x3e0769(_0x400053,_0x46f823,_0x567891):_0x3e0769(_0x567891))||_0x567891);return _0x504f36&&_0x567891&&Rr(_0x400053,_0x46f823,_0x567891),_0x567891;},f=(_0x59e2da,_0x6f8396)=>(_0x12b3d8,_0x553e7e)=>_0x6f8396(_0x12b3d8,_0x553e7e,_0x59e2da),P=(_0x5201a4=>(_0x5201a4['NOT_COLLAB']='not_collab',_0x5201a4[_0x513b3b(0x149)]=_0x513b3b(0x3fa),_0x5201a4[_0x513b3b(0x2a3)]='pending',_0x5201a4['AWAITING']='awaiting',_0x5201a4[_0x513b3b(0x3f9)]='awaiting_with_pending',_0x5201a4['FETCH_MISS']=_0x513b3b(0x44e),_0x5201a4[_0x513b3b(0x230)]='conflict',_0x5201a4['OFFLINE']=_0x513b3b(0x1da),_0x5201a4))(P||{});const Ys=0xea60;class ue{constructor(_0x142fed,_0x46e23c,_0x26cfc3,_0x21115a,_0x2f0bf8,_0x582f1d,_0x523d78,_0xcf4262,_0x129ec6){const _0x355e4c=_0x513b3b;l(this,'_awaitingChangeset',null),l(this,_0x355e4c(0x47a),[]),(this[_0x355e4c(0x44f)]=_0x142fed,this[_0x355e4c(0x30b)]=_0x46e23c,this[_0x355e4c(0x2d1)]=_0x2f0bf8,this['_commandService']=_0x582f1d,this[_0x355e4c(0x222)]=_0x523d78,this[_0x355e4c(0x344)]=_0xcf4262,this[_0x355e4c(0x2be)]=_0x129ec6,this['_awaitingChangeset']=_0x26cfc3,this[_0x355e4c(0x47a)]=_0x21115a);}['_checkMissing'](_0x2641dd){const _0x1880d2=_0x513b3b,_0x5c1311=this[_0x1880d2(0x344)][_0x1880d2(0x324)](this[_0x1880d2(0x44f)]);return _0x2641dd['revision']>_0x5c1311+0x1?(this[_0x1880d2(0x2d1)]['onMissingChangesets']({'from':_0x5c1311,'to':_0x2641dd[_0x1880d2(0x2de)]-0x1}),!0x0):!0x1;}[_0x513b3b(0x318)](_0x4200a5){const _0x5e50e5=_0x513b3b;this[_0x5e50e5(0x222)]['transformUndoRedo'](this['unitID'],_0x4200a5);}['_transformSelections'](_0x22858d){const _0x1aeb7f=_0x513b3b;var _0xea1507,_0x529e25;(_0x529e25=(_0xea1507=this[_0x1aeb7f(0x2d1)])[_0x1aeb7f(0x294)])==null||_0x529e25[_0x1aeb7f(0x194)](_0xea1507,_0x22858d);}[_0x513b3b(0x331)](_0x4c48e8){const _0x3110b8=_0x513b3b;var _0x2573b6,_0x24901a;return(_0x24901a=(_0x2573b6=this[_0x3110b8(0x2d1)])[_0x3110b8(0x4cd)])==null?void 0x0:_0x24901a[_0x3110b8(0x194)](_0x2573b6,_0x4c48e8);}[_0x513b3b(0x40c)](_0x822e73){const _0x292d8c=_0x513b3b;var _0x209bbe,_0x3b7da0,_0x291c30;return(_0x291c30=(_0x3b7da0=(_0x209bbe=this[_0x292d8c(0x2d1)])[_0x292d8c(0x168)])==null?void 0x0:_0x3b7da0['call'](_0x209bbe,_0x822e73))!=null?_0x291c30:_0x822e73;}[_0x513b3b(0x38d)](_0x2604b0){const _0x506320=_0x513b3b;var _0x4f2fac,_0x51a3bd;if(this[_0x506320(0x30b)]===k[_0x506320(0x1a4)]){const {unitID:_0x4fe523,mutations:_0x3ecebd,memberID:_0x55fd76}=_0x2604b0,_0x104f81=_0x3ecebd[0x0]['params'][_0x506320(0x3b1)];Array[_0x506320(0x33f)](_0x104f81)&&_0x104f81[_0x506320(0x313)]>0x0&&((_0x51a3bd=(_0x4f2fac=this['_handler'])[_0x506320(0x3de)])==null||_0x51a3bd[_0x506320(0x194)](_0x4f2fac,{'unitID':_0x4fe523,'memberID':_0x55fd76,'textRanges':_0x104f81}));}}['_updateLocalCache'](){const _0x2da792=_0x513b3b;this[_0x2da792(0x2be)][_0x2da792(0x400)](this['unitID'],this[_0x2da792(0x30b)],this[_0x2da792(0x371)],this[_0x2da792(0x47a)]);}[_0x513b3b(0x3f5)](){const _0x302250=_0x513b3b;return this[_0x302250(0x344)][_0x302250(0x324)](this[_0x302250(0x44f)]);}['_incrementRevisionNumber'](){const _0x10ad22=_0x513b3b;this[_0x10ad22(0x344)][_0x10ad22(0x23d)](this[_0x10ad22(0x44f)]);}[_0x513b3b(0x2dc)](_0x2e9b63){const _0x42977d=_0x513b3b;var _0x3401a6;const _0x12951e=this[_0x42977d(0x40c)](_0x2e9b63),_0x37c79d=_0x21da1f(_0x12951e[_0x42977d(0x421)],this[_0x42977d(0x2b6)],{'fromCollab':!0x0});if(!_0x37c79d['result'])throw _0x37c79d[_0x42977d(0x25c)]instanceof Error?_0x37c79d[_0x42977d(0x25c)]:new Error((_0x3401a6=_0x37c79d['error'])!=null?_0x3401a6:_0x42977d(0x25e));this[_0x42977d(0x331)](_0x12951e),this[_0x42977d(0x318)](_0x2e9b63),this[_0x42977d(0x37c)](_0x12951e),this[_0x42977d(0x38d)](_0x12951e),this[_0x42977d(0x42d)]();}}let pe=class extends ue{constructor(_0x5613ff,_0x30ba37,_0x555ea7,_0x4d89e4,_0x2b0baa,_0x3d3a3e,_0x416fb9,_0x49c5df,_0x444eba,_0x373368){const _0x40205e=_0x513b3b;super(_0x5613ff,_0x30ba37,null,[],_0x555ea7,_0x49c5df,_0x416fb9,_0x4d89e4,_0x2b0baa),l(this,'status',_0x40205e(0x3fa)),(this[_0x40205e(0x31e)]=_0x3d3a3e,this[_0x40205e(0x4e0)]=_0x444eba,this[_0x40205e(0x283)]=_0x373368);}[_0x513b3b(0x177)](_0x274215){const _0x2366af=_0x513b3b,_0x487d17=this[_0x2366af(0x31e)]['createInstance'](X,this[_0x2366af(0x44f)],this['type'],[_0x274215],this['_handler']);return _0x487d17[_0x2366af(0x3b3)](),_0x487d17[_0x2366af(0x211)](),_0x487d17;}[_0x513b3b(0x148)](_0xdb89d0){const _0x27c399=_0x513b3b;if(this['_checkMissing'](_0xdb89d0))return this[_0x27c399(0x31e)]['createInstance'](B,this['unitID'],this['type'],null,[],null,[_0xdb89d0],this[_0x27c399(0x2d1)]);try{const _0x576c6b=this[_0x27c399(0x283)][_0x27c399(0x398)](_0xdb89d0,[Tr]);if(_0x16b713(_0x576c6b)){const {c1Prime:_0x428fdf}=_0x576c6b;return this[_0x27c399(0x2dc)](_0x428fdf),this;}throw _0x576c6b[_0x27c399(0x25c)];}catch(_0x14bfba){return this[_0x27c399(0x4e0)][_0x27c399(0x25c)](_0x14bfba),this[_0x27c399(0x1c8)](!0x1);}}[_0x513b3b(0x1c8)](_0x4add26){const _0x451664=_0x513b3b;return this[_0x451664(0x31e)][_0x451664(0x269)](ee,this[_0x451664(0x44f)],this[_0x451664(0x30b)],null,[],this['_handler'],_0x4add26);}[_0x513b3b(0x29a)](){const _0x53595e=_0x513b3b;throw new Error(_0x53595e(0x33c));}[_0x513b3b(0x303)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x513b3b(0x420)](){const _0x2980ad=_0x513b3b;return this[_0x2980ad(0x31e)][_0x2980ad(0x269)](te,this['unitID'],this[_0x2980ad(0x30b)],null,[],this[_0x2980ad(0x2d1)]);}[_0x513b3b(0x4b2)](){return this;}[_0x513b3b(0x42c)](){const _0x3630c9=_0x513b3b;throw new Error(_0x3630c9(0x35e));}[_0x513b3b(0x361)](){const _0x1f34c1=_0x513b3b,_0x152afd=this[_0x1f34c1(0x344)][_0x1f34c1(0x324)](this['unitID']);return this[_0x1f34c1(0x2d1)][_0x1f34c1(0x462)]({'from':_0x152afd,'to':0x0}),this['_injector']['createInstance'](B,this[_0x1f34c1(0x44f)],this[_0x1f34c1(0x30b)],null,[],null,[],this[_0x1f34c1(0x2d1)]);}};pe=_e([f(0x3,_0x53ed15(_0x231b85)),f(0x4,_0x53ed15(w)),f(0x5,_0x53ed15(_0x3165b6)),f(0x6,_0x3e29a6),f(0x7,_0x8348c),f(0x8,_0x385fd2),f(0x9,_0x2e5ae8)],pe);let X=class extends ue{constructor(_0x491bba,_0x2a5b5b,_0x477fce,_0x40e233,_0xb61093,_0x4718d6,_0x1f705b,_0x18efeb,_0xce13ad,_0x2335c7,_0x47ba4a,_0x1b2f61,_0x129f6a,_0x226481){const _0x50081d=_0x513b3b;super(_0x491bba,_0x2a5b5b,null,_0x477fce,_0x40e233,_0x2335c7,_0x226481,_0x4718d6,_0x1f705b),l(this,_0x50081d(0x3a7),_0x50081d(0x386)),l(this,_0x50081d(0x350),null),l(this,_0x50081d(0x466),null),(this[_0x50081d(0x31e)]=_0xb61093,this[_0x50081d(0x21c)]=_0x18efeb,this['_logService']=_0xce13ad,this[_0x50081d(0x2cf)]=_0x47ba4a,this[_0x50081d(0x283)]=_0x1b2f61,this[_0x50081d(0x4c4)]=_0x129f6a);}[_0x513b3b(0x177)](_0x235f50){const _0x1ad626=_0x513b3b;return this[_0x1ad626(0x47a)][_0x1ad626(0x152)](_0x235f50),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x2b70ce){const _0x4d8bef=_0x513b3b;if(this[_0x4d8bef(0x425)](_0x2b70ce))return this['_clearScheduledTask'](),this['_injector'][_0x4d8bef(0x269)](B,this[_0x4d8bef(0x44f)],this[_0x4d8bef(0x30b)],null,this[_0x4d8bef(0x47a)],null,[_0x2b70ce],this[_0x4d8bef(0x2d1)]);try{const _0x52ccb1=this[_0x4d8bef(0x283)][_0x4d8bef(0x398)](_0x2b70ce,this[_0x4d8bef(0x47a)]);if(_0x16b713(_0x52ccb1)){const {c1Prime:_0x4b8290,m2Prime:_0x1ed0e9}=_0x52ccb1;this['_executeRemoteChangeset'](_0x4b8290);const _0x4dd4b5=this[_0x4d8bef(0x31e)][_0x4d8bef(0x269)](X,this['unitID'],this[_0x4d8bef(0x30b)],_0x1ed0e9,this[_0x4d8bef(0x2d1)]);return this[_0x4d8bef(0x260)](),_0x4dd4b5[_0x4d8bef(0x3b3)](this[_0x4d8bef(0x350)]?Math[_0x4d8bef(0x1b0)](0x0,new Date()[_0x4d8bef(0x362)]()-this[_0x4d8bef(0x350)]):this[_0x4d8bef(0x151)]()),_0x4dd4b5;}throw _0x52ccb1[_0x4d8bef(0x25c)];}catch(_0x5f3f73){return this[_0x4d8bef(0x4e0)][_0x4d8bef(0x25c)](_0x5f3f73),this[_0x4d8bef(0x1c8)](!0x1);}}[_0x513b3b(0x29a)](){const _0x253cde=_0x513b3b;throw new Error(_0x253cde(0x2f8));}['onRemoteRej'](){const _0x449263=_0x513b3b;throw new Error(_0x449263(0x4d1));}[_0x513b3b(0x15d)](){return this;}['toggleOffline'](){const _0x4ee4c2=_0x513b3b;return this['_clearScheduledTask'](),this[_0x4ee4c2(0x31e)][_0x4ee4c2(0x269)](te,this[_0x4ee4c2(0x44f)],this[_0x4ee4c2(0x30b)],null,this[_0x4ee4c2(0x47a)],this[_0x4ee4c2(0x2d1)]);}[_0x513b3b(0x4b2)](){return this;}[_0x513b3b(0x3b3)](_0x3a576f){const _0x31ba46=_0x513b3b,_0x2e6c18=_0x3a576f!=null?_0x3a576f:this[_0x31ba46(0x151)]();this['_scheduleTimestamp']=new Date()[_0x31ba46(0x362)](),this[_0x31ba46(0x466)]=window['setTimeout'](()=>{const _0x3161b1=_0x31ba46;this['_clearScheduledTask']();let _0x236eda=null;switch(this['type']){case k[_0x3161b1(0x3b6)]:{_0x236eda=ds(this['_pendingMutations'],this['unitID'],this[_0x3161b1(0x4c4)],this['_revisionService'],this[_0x3161b1(0x21c)]);break;}case k[_0x3161b1(0x1a4)]:{this[_0x3161b1(0x47a)]['every'](_0x3a07a5=>_0x3a07a5['id']===_0x599177['id'])?_0x236eda=br(this['_pendingMutations'],this[_0x3161b1(0x44f)],this['_univerInstanceService'],this[_0x3161b1(0x344)],this[_0x3161b1(0x21c)]):_0x236eda=ds(this[_0x3161b1(0x47a)],this[_0x3161b1(0x44f)],this[_0x3161b1(0x4c4)],this['_revisionService'],this[_0x3161b1(0x21c)]);break;}default:throw new Error(_0x3161b1(0x4c3)+this[_0x3161b1(0x30b)]+_0x3161b1(0x1ad));}const {changeset:_0x5af545,pendingMutations:_0x31483d}=_0x236eda;this['_handler']['onSendChangeset'](_0x5af545);const _0x2831e5=_0x31483d[_0x3161b1(0x313)]?this['_injector'][_0x3161b1(0x269)](q,this[_0x3161b1(0x44f)],this['type'],_0x5af545,_0x31483d,this[_0x3161b1(0x2d1)],void 0x0):this[_0x3161b1(0x31e)][_0x3161b1(0x269)](Q,this[_0x3161b1(0x44f)],this['type'],_0x5af545,this[_0x3161b1(0x2d1)]);_0x2831e5[_0x3161b1(0x211)](),this[_0x3161b1(0x2d1)][_0x3161b1(0x4cb)](this,_0x2831e5);},_0x2e6c18);}['_getSendChangesetTimeout'](){const _0x32790=_0x513b3b;var _0x3610ea;const _0x581788=this[_0x32790(0x2cf)]['getConfig']($);return(_0x3610ea=_0x581788==null?void 0x0:_0x581788[_0x32790(0x3c9)])!=null?_0x3610ea:bn;}[_0x513b3b(0x42c)](){const _0x183e1d=_0x513b3b;throw new Error(_0x183e1d(0x219));}['_clearScheduledTask'](){const _0x238133=_0x513b3b;this[_0x238133(0x466)]!=null&&(clearTimeout(this[_0x238133(0x466)]),this[_0x238133(0x466)]=null);}['_onConflict'](_0x1333eb){const _0x2c6feb=_0x513b3b;return this[_0x2c6feb(0x260)](),this[_0x2c6feb(0x31e)][_0x2c6feb(0x269)](ee,this[_0x2c6feb(0x44f)],this['type'],null,this[_0x2c6feb(0x47a)],this[_0x2c6feb(0x2d1)],_0x1333eb);}};X=_e([f(0x4,_0x53ed15(_0x3165b6)),f(0x5,_0x53ed15(_0x231b85)),f(0x6,_0x53ed15(w)),f(0x7,_0x53ed15(ce)),f(0x8,_0x385fd2),f(0x9,_0x8348c),f(0xa,_0x17c84c),f(0xb,_0x2e5ae8),f(0xc,_0x4c005a),f(0xd,_0x3e29a6)],X);let Q=class extends ue{constructor(_0x42b153,_0x92107a,_0x18421d,_0x4e7156,_0x52e440,_0x2e008c,_0x1a5d96,_0x22d4c1,_0x4b5791,_0x16df7e,_0x5da574){const _0x4e24af=_0x513b3b;super(_0x42b153,_0x92107a,_0x18421d,[],_0x4e7156,_0x22d4c1,_0x5da574,_0x2e008c,_0x1a5d96),l(this,_0x4e24af(0x3a7),_0x4e24af(0x3ae)),l(this,_0x4e24af(0x23b),0x0),l(this,_0x4e24af(0x4dc)),l(this,_0x4e24af(0x443)),(this[_0x4e24af(0x31e)]=_0x52e440,this[_0x4e24af(0x4e0)]=_0x4b5791,this[_0x4e24af(0x283)]=_0x16df7e);}['appendMutation'](_0x2284e3){const _0xcccdb8=_0x513b3b;this[_0xcccdb8(0x260)]();const _0x53c39b=this[_0xcccdb8(0x31e)][_0xcccdb8(0x269)](q,this[_0xcccdb8(0x44f)],this[_0xcccdb8(0x30b)],this['_awaitingChangeset'],[_0x2284e3],this[_0xcccdb8(0x2d1)],this[_0xcccdb8(0x4dc)]);return _0x53c39b['_updateLocalCache'](),_0x53c39b;}[_0x513b3b(0x148)](_0x365579){const _0xb443f4=_0x513b3b;if(this[_0xb443f4(0x425)](_0x365579))return this[_0xb443f4(0x260)](),this['_injector'][_0xb443f4(0x269)](B,this['unitID'],this[_0xb443f4(0x30b)],this[_0xb443f4(0x371)],[],null,[_0x365579],this[_0xb443f4(0x2d1)]);try{const _0x2429b5=this[_0xb443f4(0x283)][_0xb443f4(0x346)]([_0x365579],[this[_0xb443f4(0x371)]],!0x1);if(_0x987caa(_0x2429b5)){const {c1Prime:_0x4ec975,c2Prime:_0x4518b0}=_0x2429b5;this[_0xb443f4(0x2dc)](_0x4ec975[0x0]),_0x4518b0[0x0][_0xb443f4(0x3c1)]=this[_0xb443f4(0x3f5)](),this['_clearScheduledTask']();const _0xce3456=this[_0xb443f4(0x31e)][_0xb443f4(0x269)](Q,this[_0xb443f4(0x44f)],this[_0xb443f4(0x30b)],_0x4518b0[0x0],this[_0xb443f4(0x2d1)]);return _0xce3456['_updateLocalCache'](),_0xce3456;}return this[_0xb443f4(0x1c8)](!0x1);}catch(_0x51c7aa){return this[_0xb443f4(0x4e0)][_0xb443f4(0x25c)](_0x51c7aa),this[_0xb443f4(0x1c8)](!0x1);}}['onRemoteAck'](_0x1c308a){const _0x14fc8d=_0x513b3b;this[_0x14fc8d(0x260)]();const _0x39ec8c=this[_0x14fc8d(0x344)][_0x14fc8d(0x324)](this[_0x14fc8d(0x44f)]);if(_0x1c308a[_0x14fc8d(0x2de)]<_0x39ec8c-0x1)return this;if(this['_checkMissing'](_0x1c308a))return this[_0x14fc8d(0x31e)][_0x14fc8d(0x269)](B,this['unitID'],this[_0x14fc8d(0x30b)],null,[],this[_0x14fc8d(0x371)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x1273b3=this['_injector'][_0x14fc8d(0x269)](pe,this['unitID'],this[_0x14fc8d(0x30b)],this[_0x14fc8d(0x2d1)]);return _0x1273b3[_0x14fc8d(0x211)](),_0x1273b3;}[_0x513b3b(0x303)](_0x5e152b){const _0x4fd2f5=_0x513b3b;return this[_0x4fd2f5(0x1c8)](!!(_0x5e152b!=null&&_0x5e152b[_0x4fd2f5(0x21f)]));}[_0x513b3b(0x15d)](_0x51b503){const _0x448129=_0x513b3b;return this[_0x448129(0x23b)]>Ys?this[_0x448129(0x420)]():(this['_resendTimer']=Gs(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x51b503[_0x448129(0x21b)]}),this[_0x448129(0x443)]=this[_0x448129(0x4dc)]['subscribe'](({reqId:_0x30ec58,timeout:_0x590289})=>{const _0x1be5b0=_0x448129;this[_0x1be5b0(0x213)](_0x30ec58,_0x590289);}),this);}[_0x513b3b(0x420)](){const _0x4fa807=_0x513b3b;return this[_0x4fa807(0x260)](),this['_injector']['createInstance'](te,this[_0x4fa807(0x44f)],this[_0x4fa807(0x30b)],this[_0x4fa807(0x371)],[],this[_0x4fa807(0x2d1)]);}[_0x513b3b(0x4b2)](){return this;}[_0x513b3b(0x42c)](){const _0x4eb080=_0x513b3b;this[_0x4eb080(0x2d1)][_0x4eb080(0x17b)](this['_awaitingChangeset']);}[_0x513b3b(0x1c8)](_0x2ed0a2){const _0x1f7bc2=_0x513b3b;return this['_clearScheduledTask'](),this['_injector']['createInstance'](ee,this[_0x1f7bc2(0x44f)],this[_0x1f7bc2(0x30b)],this[_0x1f7bc2(0x371)],[],this[_0x1f7bc2(0x2d1)],_0x2ed0a2);}[_0x513b3b(0x213)](_0x5d0621,_0x262635){const _0xa47247=_0x513b3b;var _0x4accf0;_0x5d0621===((_0x4accf0=this[_0xa47247(0x371)])==null?void 0x0:_0x4accf0[_0xa47247(0x21b)])&&(this['resend'](),this[_0xa47247(0x23b)]=_0x262635===0x0?0x3e8:_0x262635*0x2);}[_0x513b3b(0x260)](){const _0x57ea53=_0x513b3b;var _0x23cf1b;(_0x23cf1b=this[_0x57ea53(0x443)])==null||_0x23cf1b[_0x57ea53(0x48a)](),this[_0x57ea53(0x23b)]=0x0;}};Q=_e([f(0x4,_0x53ed15(_0x3165b6)),f(0x5,_0x53ed15(_0x231b85)),f(0x6,_0x53ed15(w)),f(0x7,_0x8348c),f(0x8,_0x385fd2),f(0x9,_0x2e5ae8),f(0xa,_0x3e29a6)],Q);function _0x26a0(){const _0x1af7e7=['toggleOffline','mutations','key','top','awaitingChangeset','_checkMissing','7139220lssKhI','unitId\x20is\x20not\x20found','collabStatus.conflict','href','unknown','stringify','resend','_incrementRevisionNumber','telemetry\x20info\x20is\x20not\x20initialized','urlChange$','originalMeta','_substituteUndoStack','COMPLETION_FINISHED','_onUserLeave','_getDownloadEndpointURL','CHANGESET_SHOULD_RETRY','_collaborationController','/fetchmissing?from=','round','transformSelections','error$','reconnect','stopTime','sheetId','save','off-line-single_clip0_910_343','currentTheme$','registerBeforeClose','Warning','_sender','BASE64','_colorAssignService','unit','_socket$','InsertRangeMoveRightCommandId','skeleton','_initCommandExecutedListener','getRandomValues','OFFLINE','CONNECTOR_DATA_TOO_LARGE','fetch_missing','unitID','getFocusedUnit','_send','_commentService','rgba(255,\x20255,\x20255,\x200.01)','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','updatePermissionObjEvent','session','_socketReady','actions','trim','leaveEvent','_getMergeRange','getMemberID','HEARTBEAT_INTERVAL','fetching\x20missing\x20changesets\x20from\x20','body','FileId','getInterceptPoints','onMissingChangesets','_startTelemetryCollaborationNewChangeset','RemoveRowCommandId','subscribe','_sendingTimer','addObject','SNAPSHOT_INVALID_SNAPSHOT','image/jpg','_initResize','NO_OTHER_CLIENTS_EDITING','_candidateSocket','4770mBaSrw','collabStatus.offline','onCommandExecuted','YUUMI_SUBSCRIPTION_NOT_FOUND','createCollaborator','_draw','UniverIcon','loadSheet','_loadDoc','registerRenderModule','[CollaborationSession]','_tryEnsureSocket','downloadEndpointUrl','_pendingMutations','event$','_handleHover','LICENSE_IMPORT_SIZE_EXCEEDED','_updateURLWithCurrentState','_themeService','shouldCloseConn','_timeoutTimer','enableAuthServer','getCurrentSelections','append','c2Prime','substring','_onConnectionFailed','onload','_redoStacks','unsubscribe','3994176uEBoZj','_disableEditing','next','csShouldRetryEvent','_onFetchMissResult','string','onlineStatusTitle','arc','unload','_getAPIPrefix','uploadFileServerUrl','makeDirty','defIds','params','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getUniverSheetInstance','_onOffline','_init','json','commentUpdate$','get','getConfig','/resources','currentSkeleton$','_colorIndex','drawWith','setItem','width','_initStatusListener','syncEditingCollabCursor','_initModules','LIVESHARE_FETCH_OPERATIONS','hidden','_collaborationPaused','_imageSourceCache','registerOnClose','_render','36142ixPqvi','lineTo','toggleOnline','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_roomMembers$','_sendHeartbeat','infoRsp','_onRefRangeChange','/object/','update','PERMISSION_REJ','_drawTextRange','hide','collaboration-session-retry','clear','_initMergeInterceptor','_toggleOnline','target','_throwTelemetryCollaborationNewChangeset','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_univerInstanceService','fillText','[CollaborationSessionService]','m1Prime','number','toLowerCase','propertyIsEnumerable','onStateChange','objectType','onTransformIME','4145tuuwiI','change$','initWorkbookPermissionChange','[PendingState]:\x20received\x20rejection.','FAIL','UPDATE_CURSOR','HEARTBEAT_TIMEOUT','setAlpha','attrs','none','exhaustSavingTask','getTypeOfUnitDisposed$','interceptor','_onRemoteRetry','_resendTimer','_transformUndoRedoStack','close$','SHOULD_CLOSE_CONN','_logService','sessionStatus','collaboration.single-unit.warning','init','cursorInfo','NOT_FOUND','onRemoteChangeset','SYNCED','getImageSourceCache','collabSubmitChangesetUrl','isActive','HttpExport','_getSnapshotAPIPrefix','data','_initRequestHeader','_getSendChangesetTimeout','push','_updateState','_state$','getCollabCursors$','[CollaborationEntity]','ALREADY_EXISTS','_clearCollaborationTimeoutTimer','UnitSnapshot','map','_onMessage','selection','onRemoteRetry','\x20-\x20','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','VIEW_MAIN','save\x20fail\x20reason\x20is\x20','_onRemoteChangeset','_handleLeaveEvent','_range','_handleHeartbeatEvent','resolve','liveShareNewHost','onTransformRemoteChangesetByIMECache','_selfUnitIDs','history','ERROR_IMAGE','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','now','entries','_scheduleSaving','_createHandler','disableLocalCache','enableOfflineEditing','_lastPointer','APPLY_REVISION_CONFILICT','restore','onReady','appendMutation','startsWith','APPLY_PERMISSION_DENIED','values','onSendChangeset','SEND_CHANGESET_TIMEOUT','split','IDLE','colorChannel1','_joinRoom','getLatestCsReqIdBySid','collabStatus.synced','createSocket','_clearUndo','onMissedChangesetFetched','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','refreshPermission','column','off-line-single','_docStateChangeManagerService','subunit','_event$','getOffsetConfig','_waitCount','UNIVER_COLLABORATION_CLIENT_PLUGIN','snapshot','_createInitialStateImpl','getRenderById','slice','call','_unitStatus','PSEUDO_FETCH_MISSING_RESULT','_handleJoinEvent','_updateSubUnitFromURLParams','[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.','_onLocalMutation','_getRedoStack','/new_changes','_refreshCollabCursors','newValue','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_shouldReportTelemetry','/rev/','getCollabEntity','cursorInfo$','UNIVER_DOC','defineProperty','objectID','children','USERS_ENTER','image/png','Unknown\x20user','height','UNIVER_PROJECT','\x20in\x20_schedule.','APPLY_REJECT','unitId','max','M0\x200H16V16H0z','_color','ranges','_urlService','SNAPSHOT_URL_KEY','extend','_startDocCollabCursor','url(#$1','setParam','file','_registerDependencies','code','0\x200\x2017\x2016','getOwnPropertyDescriptor','UNKNOWN_CODE','_telemetryInfo','black','endColumn','UnitEmbedded','_collabSessionService','socket$','FETCH_MISSING','&source=','_onConflict','snapshotServerUrl','_scene','_syncEditingCollabCursorService','requestParams','findNodePositionByCharIndex','method','onCommentUpdate','/role','ENSURE_SNAPSHOT_EXECUTION','red300','[OfflineState]:\x20received\x20rejection.','1em','YUUMI_RATE_OVER_LIMIT','setWaitCount','docStateChange$','pushState','_http','offline','LIVESHARE_REQUEST_HOST','doc.mutation.rich-text-editing','_socket','_status$','YUUMI_UNABLE_LOAD_URL','currentColor','getItem','NOT_COLLAB','UNDEFINED','awaiting_with_pending','concat','changesets','_getSignURL','_scheduleHeartbeat','row','Error','xlink:href','_notificationService','searchParams','_getAPIPrefixPath','url','POST','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_socketService','_rescheduleHeartbeat','bind','image/jpeg','headers','ONLINE','COMMENT_UPDATE','title','setUndoRedoMutationParamsCache','allowed','memberID','_onCursorDelete','OTHER_CLIENTS_EDITING','_decreaseWaiting','AWAITING','apply','_docTransformSelectionsService','getRangePointData','univer-online-status','_handleEvent','_drawAnchor','signUrlServerUrl','startColumn','_unitOnClients','localeService','_compressMutationService','rev','/universer-api/oidc/authpage','setActiveRange','/unit/','resize','_updateLocalCache','_members','_resendWithTimeout','roomMembers','registerRefRange','permission.content','_entities','sid','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','retryConnectingInterval','reqId','_memberService','putCollaborators','registerHTTPInterceptor','isPermissionRej','SUCCUSS','/object','_undoRedoService','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getRoom','storage','commentUpdateEvent','workbook','prototype','/block/','_submitChangeset','clipPath','replace','getCurrent','generateRandomId','collab-client.tooltip.reconnect','CONFLICT','_telemetryService','&to=','disposeWithMe','_ensureSubject','_collaborationTimeoutTimer','_removeClearOtherTimer','getViewport','_changesetReqId','_refRangeService','collab-text-range-','_resendTimeout','_queuedRemoteChangesets','incrementRevOfUnit','requireSession','getUnhiddenWorksheets','_onCombEvent','Undefined','getMergeData','has','[DataLoaderController]','x-univer-host','onPointerEnter$','_getScale','delete','members','_anchorDot','[CollaborationUndoRedoService]','collabStatus.syncing','transformByState','_acknowledgedAwaitingChangeset','_sessions','_socketMessageSubscription','_showConflictNotification','path','_changesetSessionId','APPLY_DUPLICATED','reject','from','svg','status$','sheetID','image/bmp','702116hpAywd','error','div','[CollaborationState]:\x20apply\x20error!','replaceTextRanges','_clearScheduledTask','getUnitType','_fetchMissChangesets','loadOfflineData','_unitID','collabStatus.fetchMiss','_roomMembers','_docSyncEditingCollabCursorService','fetchThroughInterceptors','createInstance','transformRemoteChangeset','APPLY_NON_SEQUENTIAL_REVISION','UUID','responseType','_messageService','628816NZDLqn','[CollaborationSessionService]:\x20socket\x20error','setShapeProps','text','_getCtorByUniverType','auth.needGotoLoginAlert','randomUUID','_listenToOnlineEvent','endRow','UNIVER_SLIDE','replaceState','_removeCollabCursors','deleteCollaborator','_sendHeartbeatTimer','getSheetId','_collaborationSessionService','HELLO','_updateCollabCursors','pauseCollaboration','_eventUnsubscribe','_transformService','_shapes','onPointerLeave$','#FFF','equals','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_cursors','collaboration-client.offline-data-not-saved','_onConnectionOpen','_localeService','_hover','fill','_clearOtherTimers','getTypeOfUnitAdded$','0\x200\x2016\x2016','SNAPSHOT_HAS_BEEN_REMOVED','encode','onTransformSelections','origin','\x0aAfter:\x20','_loadSheet','newCsEvent','enableLocalCache','onRemoteAck','_getUndoStack','put','withCredentials','SUBMIT_CHANGESET','Error\x20on\x20receiving\x20event','getAncestorScale','_remoteChangesetQueue','close','PENDING','asObservable','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','addEventListener','assignAColorForMemberID','online','session.room-full','univer-online-status-icon','add','updatePermissionPoint','filter','_stopTelemetryCollaborationNewChangeset','_substituteRedoStack','/universer-api/comb','with','_collabCursorController','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_createInitialState','USERS_LEAVE','_commandService','_updateLocalCursor','roomMembers$','m2Prime','roles','triggerDblclick','debug','_anchor','_localCacheService','blue400','_clearRedo','getVpScrollXYInfoByPosToVp','bottom','UNIVER_UNKNOWN','_isPermissionRej','LEAVE','onTransformChange$','NEW_CHANGESETS','moveTo','_cursorInfo$','selections','isEditing','reduce','then','_replayCachedMutations','_configService','_registerRenderDependencies','_handler','dispose$','getSheetBySheetId','min','_retryCount','reverse','/-/object/-/batch_allowed','COLLAB_SUBMIT_CHANGESET_URL','createElement','gold400','eventID','_executeRemoteChangeset','RETRY_CONNECTING_MAX_COUNT','revision','_updateStatus','c1Prime','_createSocket','onMouseMove','univer-online-status-title','subscribeEvent','_sheetTransformSelectionsService','color','_transformPreviousActiveRange','_instanceService','unshift','FETCH_MISS','_sessionStatus$','listCollaborators','_collabCursorState$','saveOfflineData','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','_state','_docTransformIMECacheService','_name','UPDATE_PERMISSION_OBJ','addImageSourceCache','_HTTPService','loginUrlKey','_docSkeletonManagerService','[PendingState]:\x20received\x20acknowledgement.','startTime','_session','catch','?url=','socket\x20open.','DEFAULT_FILE_NAME','complete','HEARTBEAT','forEach','size','onRemoteRej','range','visibilitychange','_initStatusComponent','onStarting','_type','onlyLocal','_transitionLocked','type','_assignedColors','all','fillRule','activeSheet$','INGEST','_hovered','LIVESHARE_TERMINATE','length','transformIMECache','3ltooxs','saveImage','getUndoRedoMutationParamsCache','_transformUndoredo','LICENSE_MAX_UNITS_EXCEEDED','/allowed','_startSheetCollabCursor','font','tag','_injector','_cursorShapes','JOINING','_backgroundColor','cmd','...','getCurrentRevOfUnit','override','HttpImport','duration','toRgbString','defs','loadDoc','show','create','socket\x20close','_transformStack','includes','displayName','_transformIMECache','setCurrentUser','[OfflineState]:\x20received\x20acknowledgement.','session.connection-failed','focused$','_beforeCloseService','UNAUTHENTICATED','_heartbeatTimer','setConfig','backgroundColor','pipe','[SyncedState]:\x20received\x20acknowledgement.','function','getParam','isArray','getSheetBlock','JOIN','_onRecvEvent','INVALID_ARGUMENT','_revisionService','_clearLocalCache','transformChangesets','collab-rect-range-','clearInterval','getActiveSheet','result','MSG_FOR_ERROR','_snapshotServerService','random','post','_tryReconnect','_scheduleTimestamp','_onJoinRoomEvent','_startCollaboration','_initEventListeners','10lOXrdo','_disabled','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','/-/object/list','LIVESHARE_OPERATION','#fff','uni.network.url-service','_getAnchorBounding','measureText','_initCloseConn','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','icon','connection\x20error','fetchMiss','getTime','session.collaboration-timeout','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','routeKey','joinEvent','LOGIN_URL_KEY','editingUnit','_setupBeforeClosingHandler','_getSaveTimeout','assign','roomInfos','closeSession','hasOwnProperty','COMPRESS_MUTATION_APPLY','FromArray','_awaitingChangeset','getDocRanges','fromCollab','executeCommand','_lockTransition','patch','CHANGESET_REJ','_userManagerService','_commentUpdate$','InsertRangeMoveDownCommandId','src','_transformSelections','_saveTaskMap','_httpService','Univer','MoveRangeCommandId','InsertColCommandId','popstate','_change$','indexOf','transformStack\x20failed!','pending','session.will-retry','_retryConnectingTimer','getUnitId','labelPosition','_localStorageService','_replaceFileID','_syncEditingCollabCursor','DeleteRangeMoveUpCommandId','getResourcesRequest','objectActions','_applyRemoteChangeset','ERROR_EXCEED_SIZE','UNRECOGNIZED','CHANGESET_REVISION_CONFILICT','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_snapshotService','/collaborator','transformMutationsWithChangeset','_sheetSkeletonManagerService','22etRBUw','open$','deepClone','updateCollaborator','_textBubble','collaMsg','_context','getUnitStatus$','image/gif','_config','_waitForHeartbeatResponse','AUTHZ_URL_KEY','sessionStatus$','status','getUnit','joinRsp','/universer-api/file/{fileID}/sign-url','updateMember','_onRemoteRejected','LICENSE_EXPORT_SIZE_EXCEEDED','awaiting','univer-pro.collaboration-client.single-active-unit-service','objects','textRanges','conflict','_schedule','_onCursorUpdate','collabStatus.notCollab','UNIVER_SHEET','_clearTimeoutTimer','on-line-single','_renderManagerService','hovered','_saveCache','message$','/universer-api/snapshot/','{fileID}','parse','1671775yJDGRE','baseRev','removeParam','_scheduleCollaborationTimeoutTimer','RECV','_cachedData','confirm','verdancy600','univerjs-icon\x20univerjs-icon-','sendChangesetTimeout','set','_toggleOffline','state','batchAllowed','dispose','CHANGESET_ACK','visibilityState','YUUMI_URL_COL_OUT_OF_RANGE','UNKNOWN_CMD','purple300','getImage','transform','getOwnPropertySymbols','_document','_entityInit$','_ws','HEADER_MENU','on-line-single_clip0_910_349','setTimeout','engine','onSyncEditingCollabCursor','subUnitId','getMember','_hideTimer','getValue','DeleteRangeMoveLeftCommandId','whenReady','translate(.97)','getUnitOnRev','clearTimeout','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_clearHeartbeatTimer','/universer-api/snapshot','flatMap','[OfflineState]:\x20received\x20changeset.','_getSheetObject','getWorkbookSelections','find','permissionRejEvent','_labelPosition','action','_getUploadFileURL','removeMember','_getCurrentRevision','EXCHANGE_SIGN_URL_SERVER_URL_KEY','saveChangeset','capture','AWAITING_WITH_PENDING','synced','submit\x20changeset\x20error!','_uiPartsService','location','getCurrentUser','INTERNAL_ERROR','updateOfflineData','_getLoginPath','\x20to\x20','_onUserJoin','LIVESHARE_NEW_HOST','_unlockTransition','idSuffix','_removeRoom','_scheduleClearOtherTimer','use','transformMutation','toString','_transformRemoteChangesetByIMECache','TOO_MANY_REQUESTS','userID','_online','COLLAB_WEB_SOCKET_URL','univer-pro.collaboration-client-socket-service','compose','fillStyle','sheets','send','45rCEslm','conflict.title','_id','_permissionService','_listenToOfflineEvent','_singleActiveUnitService','getCellPositionByOffset','name','_cursor','symbol'];_0x26a0=function(){return _0x1af7e7;};return _0x26a0();}let q=class extends ue{constructor(_0x1ecd96,_0x35ae3,_0xa9d91d,_0xdc435b,_0x382bfd,_0x5d3cc3,_0x3339d1,_0x42af0b,_0x840f62,_0x97f311,_0x38b9b1,_0x551564,_0x58e405){const _0x58b848=_0x513b3b;super(_0x1ecd96,_0x35ae3,_0xa9d91d,_0xdc435b,_0x382bfd,_0x97f311,_0x58e405,_0x42af0b,_0x840f62),l(this,_0x58b848(0x3a7),_0x58b848(0x1e4)),l(this,_0x58b848(0x23b),0x0),l(this,'_resendTimer'),l(this,_0x58b848(0x443)),(this['_injector']=_0x3339d1,this['_logService']=_0x38b9b1,this[_0x58b848(0x283)]=_0x551564,_0x5d3cc3&&(this['_resendTimer']=_0x5d3cc3,this[_0x58b848(0x443)]=this['_resendTimer'][_0x58b848(0x465)](({reqId:_0x2687cb,timeout:_0x2f6b3f})=>{const _0x746a71=_0x58b848;this[_0x746a71(0x213)](_0x2687cb,_0x2f6b3f);})));}['appendMutation'](_0x28b12f){const _0x4e5ab2=_0x513b3b;return this[_0x4e5ab2(0x47a)][_0x4e5ab2(0x152)](_0x28b12f),this;}[_0x513b3b(0x148)](_0x192c44){const _0x54a9a0=_0x513b3b;if(this[_0x54a9a0(0x425)](_0x192c44))return this[_0x54a9a0(0x260)](),this['_injector'][_0x54a9a0(0x269)](B,this[_0x54a9a0(0x44f)],this[_0x54a9a0(0x30b)],this['_awaitingChangeset'],this[_0x54a9a0(0x47a)],null,[_0x192c44],this[_0x54a9a0(0x2d1)]);try{const _0x1ceb2f=this['_transformService']['transformChangesets']([_0x192c44],[this[_0x54a9a0(0x371)]],!0x1);if(_0x987caa(_0x1ceb2f)){const {c1Prime:_0x2c6417,c2Prime:_0x4b6cc4}=_0x1ceb2f,_0x3033f2=this['_transformService'][_0x54a9a0(0x398)](_0x2c6417[0x0],this[_0x54a9a0(0x47a)]);if(_0x16b713(_0x3033f2)){const {c1Prime:_0x390eb6,m2Prime:_0x258173}=_0x3033f2;return this['_executeRemoteChangeset'](_0x390eb6),_0x4b6cc4[0x0][_0x54a9a0(0x3c1)]=this[_0x54a9a0(0x3f5)](),this[_0x54a9a0(0x260)](),this['_injector']['createInstance'](q,this['unitID'],this[_0x54a9a0(0x30b)],_0x4b6cc4[0x0],_0x258173,this[_0x54a9a0(0x2d1)],void 0x0);}throw _0x3033f2[_0x54a9a0(0x25c)];}throw _0x1ceb2f[_0x54a9a0(0x25c)];}catch(_0x14f089){return this['_logService']['error'](_0x14f089),this[_0x54a9a0(0x1c8)](!0x1);}}['onRemoteAck'](_0x519bde){const _0x1f4662=_0x513b3b;if(this[_0x1f4662(0x260)](),this[_0x1f4662(0x425)](_0x519bde))return this[_0x1f4662(0x31e)][_0x1f4662(0x269)](B,this['unitID'],this['type'],null,this[_0x1f4662(0x47a)],this[_0x1f4662(0x371)],[],this[_0x1f4662(0x2d1)]);this[_0x1f4662(0x42d)]();const _0x3d94c4=this[_0x1f4662(0x31e)]['createInstance'](X,this[_0x1f4662(0x44f)],this[_0x1f4662(0x30b)],this[_0x1f4662(0x47a)],this[_0x1f4662(0x2d1)]);return _0x3d94c4['_schedule'](),_0x3d94c4[_0x1f4662(0x211)](),_0x3d94c4;}[_0x513b3b(0x303)](_0x477701){const _0x1ad6ea=_0x513b3b;return this[_0x1ad6ea(0x1c8)](!!(_0x477701!=null&&_0x477701['isPermissionRej']));}[_0x513b3b(0x15d)](_0x3786ef){const _0xd335e3=_0x513b3b;return this['_resendTimeout']>Ys?this[_0xd335e3(0x420)]():(this[_0xd335e3(0x4dc)]=Gs(this['_resendTimeout'],{'timeout':this[_0xd335e3(0x23b)],'reqId':_0x3786ef[_0xd335e3(0x21b)]}),this[_0xd335e3(0x443)]=this[_0xd335e3(0x4dc)][_0xd335e3(0x465)](({reqId:_0x11eaea,timeout:_0x7f91d4})=>{this['_resendWithTimeout'](_0x11eaea,_0x7f91d4);}),this);}[_0x513b3b(0x420)](){const _0x11a1cd=_0x513b3b;return this[_0x11a1cd(0x260)](),this[_0x11a1cd(0x31e)][_0x11a1cd(0x269)](te,this[_0x11a1cd(0x44f)],this[_0x11a1cd(0x30b)],this[_0x11a1cd(0x371)],this[_0x11a1cd(0x47a)],this[_0x11a1cd(0x2d1)]);}[_0x513b3b(0x4b2)](){return this;}[_0x513b3b(0x42c)](){const _0x5a86bc=_0x513b3b;this[_0x5a86bc(0x2d1)][_0x5a86bc(0x17b)](this[_0x5a86bc(0x371)]);}[_0x513b3b(0x1c8)](_0x35ea2d){const _0x2c940f=_0x513b3b;return this[_0x2c940f(0x260)](),this[_0x2c940f(0x31e)][_0x2c940f(0x269)](ee,this[_0x2c940f(0x44f)],this['type'],null,this[_0x2c940f(0x47a)],this[_0x2c940f(0x2d1)],_0x35ea2d);}[_0x513b3b(0x213)](_0x430ca9,_0x2f8528){const _0x474052=_0x513b3b;var _0x1a76e3;_0x430ca9===((_0x1a76e3=this[_0x474052(0x371)])==null?void 0x0:_0x1a76e3[_0x474052(0x21b)])&&(this[_0x474052(0x42c)](),this[_0x474052(0x23b)]=_0x2f8528===0x0?0x3e8:_0x2f8528*0x2);}[_0x513b3b(0x260)](){const _0x3829df=_0x513b3b;var _0x53123e;(_0x53123e=this['_sender'])==null||_0x53123e[_0x3829df(0x48a)](),this[_0x3829df(0x23b)]=0x0;}};q=_e([f(0x6,_0x53ed15(_0x3165b6)),f(0x7,_0x53ed15(_0x231b85)),f(0x8,_0x53ed15(w)),f(0x9,_0x8348c),f(0xa,_0x385fd2),f(0xb,_0x2e5ae8),f(0xc,_0x3e29a6)],q);let ee=class extends ue{constructor(_0x1aa771,_0x5771dc,_0x554e65,_0x16d453,_0x2d544e,_0x29d7bc=!0x1,_0x3bb1f0,_0x3cad0a,_0x1dc5aa,_0x3c4a86,_0x1de5ee,_0x31670f,_0x1e1169){const _0x5cd002=_0x513b3b;super(_0x1aa771,_0x5771dc,_0x554e65,_0x16d453,_0x2d544e,_0x3cad0a,_0x1dc5aa,_0x1de5ee,_0x3c4a86),l(this,'status',_0x5cd002(0x3b2)),(this[_0x5cd002(0x2c4)]=_0x29d7bc,this[_0x5cd002(0x419)]=_0x3bb1f0,this[_0x5cd002(0x28c)]=_0x31670f,this[_0x5cd002(0x1ec)]=_0x1e1169,this[_0x5cd002(0x251)](),this[_0x5cd002(0x345)](),this[_0x5cd002(0x48c)]());}[_0x513b3b(0x177)](){return this;}[_0x513b3b(0x148)](){return this;}[_0x513b3b(0x29a)](){return this;}[_0x513b3b(0x303)](){return this;}[_0x513b3b(0x15d)](){return this;}[_0x513b3b(0x420)](){return this;}[_0x513b3b(0x4b2)](){return this;}[_0x513b3b(0x42c)](){const _0x422e3=_0x513b3b;throw new Error(_0x422e3(0x3e8));}['_clearLocalCache'](){const _0x5a3b3d=_0x513b3b;this[_0x5a3b3d(0x2be)][_0x5a3b3d(0x400)](this['unitID'],this[_0x5a3b3d(0x30b)],null,[]);}['_showConflictNotification'](){const _0x1f5d18=_0x513b3b;this['_isPermissionRej']?this[_0x1f5d18(0x1ec)][_0x1f5d18(0x32b)]({'title':this[_0x1f5d18(0x28c)]['t']('permission.title'),'content':this[_0x1f5d18(0x28c)]['t'](_0x1f5d18(0x216)),'type':_0x1f5d18(0x25c),'duration':0x0}):this[_0x1f5d18(0x1ec)][_0x1f5d18(0x32b)]({'title':this[_0x1f5d18(0x28c)]['t'](_0x1f5d18(0x417)),'content':this[_0x1f5d18(0x28c)]['t']('conflict.content'),'type':_0x1f5d18(0x25c),'duration':0x0});}[_0x513b3b(0x48c)](){const _0x1844af=_0x513b3b;this[_0x1844af(0x419)][_0x1844af(0x2ac)](new _0x40e1c4(this[_0x1844af(0x44f)])['id'],!0x1);}};ee=_e([f(0x6,_0x53ed15(_0x5f5b14)),f(0x7,_0x8348c),f(0x8,_0x3e29a6),f(0x9,_0x53ed15(w)),f(0xa,_0x53ed15(_0x231b85)),f(0xb,_0x53ed15(_0x1deb41)),f(0xc,_0x1380e0)],ee);let te=class extends ue{constructor(_0x5a4e6b,_0x3ebac1,_0x33812e,_0x4e0a8e,_0x2972fb,_0x8efdf8,_0x1e0f7c,_0x3e9212,_0x2ab0a7,_0x56a598){const _0x314e9d=_0x513b3b;super(_0x5a4e6b,_0x3ebac1,_0x33812e,_0x4e0a8e,_0x2972fb,_0x2ab0a7,_0x56a598,_0x1e0f7c,_0x3e9212),l(this,_0x314e9d(0x3a7),_0x314e9d(0x1da)),this['_injector']=_0x8efdf8;}[_0x513b3b(0x177)](_0x4ec510){const _0xe9b4d7=_0x513b3b;return this[_0xe9b4d7(0x47a)]['push'](_0x4ec510),this['_updateLocalCache'](),this;}[_0x513b3b(0x148)](_0x55e5db){const _0x31d782=_0x513b3b;throw new Error(_0x31d782(0x3ec));}[_0x513b3b(0x29a)](){const _0x969f53=_0x513b3b;throw new Error(_0x969f53(0x333));}['onRemoteRej'](){const _0x562b61=_0x513b3b;throw new Error(_0x562b61(0x1d3));}[_0x513b3b(0x15d)](){return this;}[_0x513b3b(0x420)](){return this;}[_0x513b3b(0x4b2)](){const _0x1a105b=_0x513b3b,{_injector:_0x1fc4ec,_pendingMutations:_0x5e01be,_awaitingChangeset:_0x439af0,unitID:_0x21734e,_handler:_0x5b1e07,type:_0x198746}=this,_0x24d077=Ks(_0x1fc4ec,_0x21734e,_0x198746,_0x439af0,_0x5e01be,_0x5b1e07);return _0x24d077 instanceof X?_0x24d077[_0x1a105b(0x3b3)]():(_0x24d077 instanceof q||_0x24d077 instanceof Q)&&_0x24d077[_0x1a105b(0x42c)](),_0x24d077;}[_0x513b3b(0x42c)](){const _0x1b07e5=_0x513b3b;throw new Error(_0x1b07e5(0x356));}};te=_e([f(0x5,_0x53ed15(_0x3165b6)),f(0x6,_0x53ed15(_0x231b85)),f(0x7,_0x53ed15(w)),f(0x8,_0x8348c),f(0x9,_0x3e29a6)],te);let B=class extends ue{constructor(_0x4866d7,_0x638fec,_0x277a25,_0x1806ad,_0x2ce2c9,_0x476965,_0x3bd0fc,_0x40aac1,_0x1a80f1,_0x2c5880,_0x526bb6,_0x54269c,_0x4ad9c0,_0x1f246f){const _0x5df2e0=_0x513b3b;super(_0x4866d7,_0x638fec,_0x277a25,_0x1806ad,_0x3bd0fc,_0x54269c,_0x4ad9c0,_0x1a80f1,_0x2c5880),l(this,_0x5df2e0(0x3a7),_0x5df2e0(0x44e)),(this[_0x5df2e0(0x24e)]=_0x2ce2c9,this['_queuedRemoteChangesets']=_0x476965,this[_0x5df2e0(0x31e)]=_0x40aac1,this['_logService']=_0x526bb6,this[_0x5df2e0(0x283)]=_0x1f246f);}[_0x513b3b(0x185)](_0x1698ec){const _0x26d12e=_0x513b3b;try{const _0x55487f=[..._0x1698ec,...this[_0x26d12e(0x23c)]],_0x5a6fc3=[this[_0x26d12e(0x371)]||this[_0x26d12e(0x24e)]][_0x26d12e(0x2ad)](_0xb5e3f4=>!!_0xb5e3f4);let _0x156610,_0x27ad49;if(_0x5a6fc3['length']){const _0x366697=this['_transformService'][_0x26d12e(0x346)](_0x55487f,_0x5a6fc3,!0x1);if(!_0x987caa(_0x366697))throw _0x366697[_0x26d12e(0x25c)];_0x156610=_0x366697[_0x26d12e(0x2e0)],_0x27ad49=_0x366697[_0x26d12e(0x485)];}else _0x156610=_0x55487f,_0x27ad49=[];let _0x4cd347=this[_0x26d12e(0x47a)];_0x156610[_0x26d12e(0x301)](_0x3185e4=>{const _0x11c48f=_0x26d12e;let _0x513ef3;if(_0x4cd347[_0x11c48f(0x313)]){const _0x3b0803=this['_transformService'][_0x11c48f(0x398)](_0x3185e4,_0x4cd347);if(!_0x16b713(_0x3b0803))throw _0x3b0803['error'];_0x513ef3=_0x3b0803[_0x11c48f(0x2e0)],_0x4cd347=_0x3b0803[_0x11c48f(0x2b9)];}else _0x513ef3=_0x3185e4;this[_0x11c48f(0x2dc)](_0x513ef3);}),this[_0x26d12e(0x24e)]&&this['_incrementRevisionNumber'](),this[_0x26d12e(0x371)]&&_0x27ad49[_0x26d12e(0x313)]&&(_0x27ad49[0x0]['baseRev']=this[_0x26d12e(0x3f5)]());let _0x391e60;if(this[_0x26d12e(0x371)]&&_0x4cd347['length']!==0x0)_0x391e60=this['_injector'][_0x26d12e(0x269)](q,this[_0x26d12e(0x44f)],this[_0x26d12e(0x30b)],_0x27ad49[0x0],_0x4cd347,this[_0x26d12e(0x2d1)],void 0x0);else{if(this[_0x26d12e(0x371)]&&_0x4cd347[_0x26d12e(0x313)]===0x0)_0x27ad49[0x0]['baseRev']=this['_getCurrentRevision'](),_0x391e60=this[_0x26d12e(0x31e)][_0x26d12e(0x269)](Q,this[_0x26d12e(0x44f)],this[_0x26d12e(0x30b)],_0x27ad49[0x0],this[_0x26d12e(0x2d1)]);else{if(_0x4cd347[_0x26d12e(0x313)]!==0x0){const _0x4a9229=this['_injector']['createInstance'](X,this['unitID'],this[_0x26d12e(0x30b)],_0x4cd347,this[_0x26d12e(0x2d1)]);_0x4a9229[_0x26d12e(0x3b3)](),_0x391e60=_0x4a9229;}else _0x391e60=this['_injector'][_0x26d12e(0x269)](pe,this['unitID'],this[_0x26d12e(0x30b)],this['_handler']);}}return _0x391e60['_updateLocalCache'](),_0x391e60;}catch(_0xabca39){return this[_0x26d12e(0x4e0)]['error']('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0xabca39),this[_0x26d12e(0x31e)][_0x26d12e(0x269)](ee,this[_0x26d12e(0x44f)],this[_0x26d12e(0x30b)],this['_awaitingChangeset'],this[_0x26d12e(0x47a)],this['_handler'],!0x1);}}[_0x513b3b(0x42c)](){const _0x268391=_0x513b3b;throw new Error(_0x268391(0x1f1));}['appendMutation'](_0x797caa){const _0x5462c4=_0x513b3b;return this[_0x5462c4(0x47a)]['push'](_0x797caa),this;}['onRemoteChangeset'](_0x388b43){const _0x125890=_0x513b3b;return this[_0x125890(0x23c)][_0x125890(0x152)](_0x388b43),this;}['onRemoteAck'](_0x45df11){const _0x48a2be=_0x513b3b;if(this[_0x48a2be(0x371)])return this[_0x48a2be(0x24e)]=this['_awaitingChangeset'],this[_0x48a2be(0x371)]=null,this;throw new Error(_0x48a2be(0x364));}['onRemoteRej'](_0x421e24){const _0x2e046f=_0x513b3b;return this['_onConflict'](!!(_0x421e24!=null&&_0x421e24[_0x2e046f(0x21f)]));}[_0x513b3b(0x15d)](){return this;}[_0x513b3b(0x420)](){const _0x51b05b=_0x513b3b;return this[_0x51b05b(0x31e)][_0x51b05b(0x269)](te,this[_0x51b05b(0x44f)],this[_0x51b05b(0x30b)],this[_0x51b05b(0x371)],this['_pendingMutations'],this['_handler']);}[_0x513b3b(0x4b2)](){return this;}[_0x513b3b(0x1c8)](_0x10336f){const _0x41f457=_0x513b3b;return this[_0x41f457(0x31e)][_0x41f457(0x269)](ee,this['unitID'],this['type'],this[_0x41f457(0x371)],this[_0x41f457(0x47a)],this[_0x41f457(0x2d1)],_0x10336f);}};B=_e([f(0x7,_0x53ed15(_0x3165b6)),f(0x8,_0x53ed15(_0x231b85)),f(0x9,_0x53ed15(w)),f(0xa,_0x385fd2),f(0xb,_0x8348c),f(0xc,_0x3e29a6),f(0xd,_0x2e5ae8)],B);function Ks(_0x56d15f,_0x35e6c3,_0x316ca8,_0x3c1fcc,_0x580152,_0x4033da){const _0x32ebe7=_0x513b3b;return _0x3c1fcc&&_0x580152[_0x32ebe7(0x313)]?_0x56d15f[_0x32ebe7(0x269)](q,_0x35e6c3,_0x316ca8,_0x3c1fcc,_0x580152,_0x4033da,void 0x0):_0x3c1fcc?_0x56d15f[_0x32ebe7(0x269)](Q,_0x35e6c3,_0x316ca8,_0x3c1fcc,_0x4033da):_0x580152[_0x32ebe7(0x313)]?_0x56d15f[_0x32ebe7(0x269)](X,_0x35e6c3,_0x316ca8,_0x580152,_0x4033da):_0x56d15f[_0x32ebe7(0x269)](pe,_0x35e6c3,_0x316ca8,_0x4033da);}var Dr=Object[_0x513b3b(0x1a5)],wr=Object[_0x513b3b(0x1be)],Wt=(_0x52ab6d,_0x71693b,_0x2fbdb7,_0x3ad0fa)=>{const _0x257e1d=_0x513b3b;for(var _0x1b2991=_0x3ad0fa>0x1?void 0x0:_0x3ad0fa?wr(_0x71693b,_0x2fbdb7):_0x71693b,_0x19f318=_0x52ab6d[_0x257e1d(0x313)]-0x1,_0x41316d;_0x19f318>=0x0;_0x19f318--)(_0x41316d=_0x52ab6d[_0x19f318])&&(_0x1b2991=(_0x3ad0fa?_0x41316d(_0x71693b,_0x2fbdb7,_0x1b2991):_0x41316d(_0x1b2991))||_0x1b2991);return _0x3ad0fa&&_0x1b2991&&Dr(_0x71693b,_0x2fbdb7,_0x1b2991),_0x1b2991;},p=(_0x234ca7,_0x3fef2a)=>(_0x4faf48,_0x28f7b5)=>_0x3fef2a(_0x4faf48,_0x28f7b5,_0x234ca7);let qe=class extends _0x346899{constructor(_0xdd140,_0x22068d,_0x5481a7,_0x33e573,_0x14ceae,_0x10389d,_0x32489b,_0x125774,_0x3cceb3,_0x44dab1,_0x2d356a,_0x5133dd,_0x41f33b){const _0x5740eb=_0x513b3b;super(),l(this,_0x5740eb(0x154),new _0x1edb16(null)),l(this,'state$',this['_state$'][_0x5740eb(0x2a4)]()),l(this,_0x5740eb(0x2f0)),l(this,_0x5740eb(0x4ac),!0x1),l(this,_0x5740eb(0x253),''),l(this,_0x5740eb(0x238),0x0),l(this,_0x5740eb(0x258),this['state$'][_0x5740eb(0x33b)](_0x1744c3(_0x462379=>_0x462379?_0x462379[_0x5740eb(0x3a7)]:P[_0x5740eb(0x44c)]),_0x1fbf92(0x1))),l(this,_0x5740eb(0x30a),!0x1),l(this,'_remoteChangesetQueue',[]),(this[_0x5740eb(0x44f)]=_0xdd140,this[_0x5740eb(0x456)]=_0x22068d,this['_type']=_0x5481a7,this[_0x5740eb(0x31e)]=_0x33e573,this[_0x5740eb(0x2be)]=_0x14ceae,this[_0x5740eb(0x20b)]=_0x10389d,this['_localeService']=_0x32489b,this[_0x5740eb(0x344)]=_0x125774,this[_0x5740eb(0x4e0)]=_0x3cceb3,this['_commandService']=_0x44dab1,this[_0x5740eb(0x26e)]=_0x2d356a,this[_0x5740eb(0x419)]=_0x5133dd,this[_0x5740eb(0x41b)]=_0x41f33b);}get[_0x513b3b(0x3cc)](){const _0x289cca=_0x513b3b;return this[_0x289cca(0x2f0)];}async['init'](){const _0x49d597=_0x513b3b;if(this['state'])throw new Error(_0x49d597(0x2a5));await this[_0x49d597(0x49c)]();}[_0x513b3b(0x281)](){const _0x32fa39=_0x513b3b;return this[_0x32fa39(0x4ac)]=!0x0,_0x29caef(()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x513b3b(0x153)](_0x10a6ec){const _0x496d46=_0x513b3b;this[_0x496d46(0x2f0)]=_0x10a6ec,this[_0x496d46(0x154)][_0x496d46(0x48d)](_0x10a6ec);}async[_0x513b3b(0x49c)](){const _0x3df1c5=_0x513b3b;var _0x49967d;this[_0x3df1c5(0x153)](await this[_0x3df1c5(0x2b4)]()),this[_0x3df1c5(0x41b)]&&((_0x49967d=this[_0x3df1c5(0x41b)])==null||_0x49967d[_0x3df1c5(0x368)](this[_0x3df1c5(0x44f)]),this[_0x3df1c5(0x233)](this['_singleActiveUnitService'][_0x3df1c5(0x3a1)](this['unitID'])[_0x3df1c5(0x465)](_0x4e218e=>{const _0x44df80=_0x3df1c5;this[_0x44df80(0x4e0)][_0x44df80(0x2bc)](_0x44df80(0x156),'editing\x20status\x20changed\x20to',_0x4e218e),_0x4e218e===Fs[_0x44df80(0x1fe)]?(this['_messageService'][_0x44df80(0x32b)]({'content':this[_0x44df80(0x28c)]['t'](_0x44df80(0x4e2)),'type':_0x1f1b3b[_0x44df80(0x442)]}),this[_0x44df80(0x419)][_0x44df80(0x2ac)](new _0x40e1c4(this[_0x44df80(0x44f)])['id'],!0x1)):this[_0x44df80(0x419)]['updatePermissionPoint'](new _0x40e1c4(this[_0x44df80(0x44f)])['id'],!0x0);})));let _0x4c5fc5=!0x1;return this['disposeWithMe'](this['session'][_0x3df1c5(0x3a6)][_0x3df1c5(0x465)](_0x2fc646=>{const _0x1ceac4=_0x3df1c5;_0x2fc646===Y['ONLINE']?this[_0x1ceac4(0x4c0)](_0x4c5fc5):_0x2fc646===Y[_0x1ceac4(0x44c)]&&(_0x4c5fc5=!0x0,this[_0x1ceac4(0x3cb)]());})),this['disposeWithMe'](this['session']['event$'][_0x3df1c5(0x465)](_0x52e237=>{const _0x701ee9=_0x3df1c5;try{switch(_0x52e237['eventID']){case _0x46c90b['NEW_CHANGESETS']:{this[_0x701ee9(0x162)](_0x80fd6(_0x52e237['data']));break;}case _0x46c90b[_0x701ee9(0x3cf)]:{this['_onRemoteACK'](_0x52e237[_0x701ee9(0x14f)]);break;}case _0x46c90b['CHANGESET_REJ']:{this[_0x701ee9(0x3ac)]();break;}case _0x46c90b['CHANGESET_SHOULD_RETRY']:{this[_0x701ee9(0x4db)](_0x52e237['data']);break;}case _0x46c90b[_0x701ee9(0x196)]:{this[_0x701ee9(0x48f)](_0x52e237[_0x701ee9(0x14f)][_0x701ee9(0x1e6)][_0x701ee9(0x15a)](_0x533fb6=>_0x80fd6(_0x533fb6)));break;}case _0x46c90b[_0x701ee9(0x4ba)]:this[_0x701ee9(0x3ac)]({'isPermissionRej':!0x0});}}catch(_0x12a353){throw console['error'](_0x701ee9(0x29f),_0x12a353),_0x12a353;}})),this[_0x3df1c5(0x2f0)];}[_0x513b3b(0x405)](){this['_transitionLocked']=!0x1;}[_0x513b3b(0x375)](){const _0x3bf101=_0x513b3b;if(this['_transitionLocked'])throw new Error(_0x3bf101(0x199));this[_0x3bf101(0x30a)]=!0x0;}[_0x513b3b(0x19a)](_0x296966){const _0x1f7b9f=_0x513b3b;this[_0x1f7b9f(0x375)](),this[_0x1f7b9f(0x153)](this[_0x1f7b9f(0x2f0)][_0x1f7b9f(0x177)](_0x296966)),this[_0x1f7b9f(0x405)]();}[_0x513b3b(0x162)](_0x229545){const _0x2bfed5=_0x513b3b;if(!(_0x229545[_0x2bfed5(0x2de)]<=this[_0x2bfed5(0x344)][_0x2bfed5(0x324)](this[_0x2bfed5(0x44f)]))){if(this[_0x2bfed5(0x4ac)]){this[_0x2bfed5(0x2a1)][_0x2bfed5(0x152)](_0x229545);return;}this[_0x2bfed5(0x391)](_0x229545);}}['_exhaustRemoteChangesetQueue'](){const _0xf592d9=_0x513b3b;this[_0xf592d9(0x2a1)][_0xf592d9(0x301)](_0x519a02=>this[_0xf592d9(0x391)](_0x519a02)),this[_0xf592d9(0x2a1)]=[];}[_0x513b3b(0x391)](_0x3b945f){const _0x4a698a=_0x513b3b,_0x1c176d=this['_compressMutationService']['interceptor'][_0x4a698a(0x268)](this[_0x4a698a(0x20b)][_0x4a698a(0x4da)][_0x4a698a(0x461)]()[_0x4a698a(0x36f)])(_0x3b945f[_0x4a698a(0x421)],null)||_0x3b945f['mutations'],_0xdcbd5d={..._0x3b945f,'mutations':_0x1c176d};this[_0x4a698a(0x375)](),this[_0x4a698a(0x153)](this[_0x4a698a(0x2f0)][_0x4a698a(0x148)](_0xdcbd5d)),this[_0x4a698a(0x405)]();}['_onRemoteACK'](_0x57dfac){const _0xb5eba0=_0x513b3b;this[_0xb5eba0(0x375)](),this[_0xb5eba0(0x153)](this[_0xb5eba0(0x2f0)]['onRemoteAck'](_0x57dfac)),this[_0xb5eba0(0x405)]();}[_0x513b3b(0x3ac)](_0x36621d){const _0x379d34=_0x513b3b;this[_0x379d34(0x375)](),this[_0x379d34(0x153)](this[_0x379d34(0x2f0)][_0x379d34(0x303)](_0x36621d)),this[_0x379d34(0x405)]();}[_0x513b3b(0x4db)](_0x3c990b){const _0x29532b=_0x513b3b;this[_0x29532b(0x375)](),this[_0x29532b(0x153)](this[_0x29532b(0x2f0)][_0x29532b(0x15d)](_0x3c990b)),this[_0x29532b(0x405)]();}[_0x513b3b(0x48f)](_0x5e13a3){const _0x219d05=_0x513b3b;if(!(this['_state']instanceof B))throw new TypeError(_0x219d05(0x15f));const _0x413c4f=_0x5e13a3[_0x219d05(0x15a)](_0x424f1d=>{const _0x1c8650=_0x219d05,_0xe3f59c=this[_0x1c8650(0x20b)][_0x1c8650(0x4da)][_0x1c8650(0x268)](this[_0x1c8650(0x20b)][_0x1c8650(0x4da)][_0x1c8650(0x461)]()['COMPRESS_MUTATION_APPLY'])(_0x424f1d[_0x1c8650(0x421)],null)||_0x424f1d[_0x1c8650(0x421)];return{..._0x424f1d,'mutations':_0xe3f59c};});this[_0x219d05(0x375)](),this[_0x219d05(0x153)](this['_state'][_0x219d05(0x185)](_0x413c4f)),this[_0x219d05(0x405)]();}[_0x513b3b(0x3cb)](){const _0x46865d=_0x513b3b;this['_lockTransition'](),this[_0x46865d(0x153)](this[_0x46865d(0x2f0)][_0x46865d(0x420)]()),this[_0x46865d(0x405)]();}['_toggleOnline'](_0x395915=!0x1){const _0x4028a6=_0x513b3b;this[_0x4028a6(0x375)](),this[_0x4028a6(0x153)](this[_0x4028a6(0x2f0)][_0x4028a6(0x4b2)]()),this[_0x4028a6(0x405)]();const _0xdebd17=this['_state'];_0x395915&&_0xdebd17 instanceof pe&&(this[_0x4028a6(0x375)](),this[_0x4028a6(0x153)](_0xdebd17[_0x4028a6(0x361)]()),this[_0x4028a6(0x405)]());}async[_0x513b3b(0x2b4)](){return new Promise(_0x23c95b=>{const _0x1f0bbc=_0x1736;this[_0x1f0bbc(0x456)]['sessionStatus$']['pipe'](_0x549142(0x1))[_0x1f0bbc(0x465)](async _0x1183fb=>{const _0x1c6300=_0x1f0bbc;_0x23c95b(await this[_0x1c6300(0x191)](_0x1183fb===Y[_0x1c6300(0x1f7)]));});});}[_0x513b3b(0x170)](){const _0x5dbf6e=_0x513b3b,_0x24df4a=this[_0x5dbf6e(0x44f)];return{'onStateChange':(_0x1f75aa,_0x18dcaf)=>{const _0x3379d5=_0x5dbf6e;if(_0x1f75aa!==this[_0x3379d5(0x2f0)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x1f75aa[_0x3379d5(0x3a7)]+_0x3379d5(0x296)+_0x18dcaf[_0x3379d5(0x3a7)]+'\x0aCurrent:\x20'+this[_0x3379d5(0x2f0)][_0x3379d5(0x3a7)]);this['_updateState'](_0x18dcaf);},'onSendChangeset':_0x36d2c9=>{const _0x3329c6=_0x5dbf6e;_0x36d2c9[_0x3329c6(0x218)]||(_0x36d2c9[_0x3329c6(0x218)]=this['_changesetSessionId'],_0x36d2c9[_0x3329c6(0x21b)]=++this['_changesetReqId']);const _0x20f959={'eventID':_0x46c90b[_0x3329c6(0x29e)],'data':{'unitID':_0x36d2c9[_0x3329c6(0x44f)],'unitType':this['_type'],'changeset':_0x36d2c9,'memberID':this[_0x3329c6(0x456)][_0x3329c6(0x45c)]()}};this['session'][_0x3329c6(0x415)](_0x20f959,this['unitID']);},'onMissingChangesets':({from:_0x35b7be,to:_0x4b0eea})=>{const _0x2bfd6e=_0x5dbf6e;this['_logService']['debug']('[CollaborationEntity]',_0x2bfd6e(0x45e)+_0x35b7be+_0x2bfd6e(0x402)+_0x4b0eea);const _0x41fde0={'eventID':_0x46c90b[_0x2bfd6e(0x1c6)],'data':{'unitID':_0x24df4a,'unitType':this['_type'],'from':_0x35b7be,'to':_0x4b0eea}};this['session']['send'](_0x41fde0,this[_0x2bfd6e(0x44f)]);}};}async['_createInitialStateImpl'](_0x3db43f){const _0x279773=_0x513b3b;var _0x24826e,_0x4abc6e;const _0x4975f7=await this['_localCacheService']['loadOfflineData'](this[_0x279773(0x44f)]),_0x2d06cd=(_0x24826e=_0x4975f7==null?void 0x0:_0x4975f7[_0x279773(0x421)])!=null?_0x24826e:[],_0x5aa5cb=(_0x4abc6e=_0x4975f7==null?void 0x0:_0x4975f7['awaitingChangeset'])!=null?_0x4abc6e:null,_0xf0fdaf=!!(_0x5aa5cb!=null&&_0x5aa5cb[_0x279773(0x218)])&&!!(_0x5aa5cb!=null&&_0x5aa5cb[_0x279773(0x21b)]);this[_0x279773(0x253)]=_0xf0fdaf?_0x5aa5cb[_0x279773(0x218)]:or(),this['_changesetReqId']=_0xf0fdaf?_0x5aa5cb[_0x279773(0x21b)]:0x0;const _0x4ba70e=this[_0x279773(0x44f)];try{this[_0x279773(0x2ce)](_0x5aa5cb,_0x2d06cd);}catch(_0x2237c7){this[_0x279773(0x4e0)][_0x279773(0x25c)](_0x2237c7);}const _0x507b59=this[_0x279773(0x170)]();if(_0x3db43f){const _0x3aecfc=Ks(this['_injector'],_0x4ba70e,this[_0x279773(0x308)],_0x5aa5cb,_0x2d06cd,_0x507b59);return _0x3aecfc instanceof X?_0x3aecfc[_0x279773(0x3b3)]():(_0x3aecfc instanceof q||_0x3aecfc instanceof Q)&&_0x3aecfc[_0x279773(0x42c)](),_0x3aecfc;}return this['_injector'][_0x279773(0x269)](te,_0x4ba70e,this['_type'],_0x5aa5cb,_0x2d06cd,_0x507b59);}['_replayCachedMutations'](_0xe355a7,_0x51b724){const _0x3698e5=_0x513b3b;var _0x28df3f,_0x203dd8;const _0x2bf86a=this['_compressMutationService'][_0x3698e5(0x4da)][_0x3698e5(0x268)](this[_0x3698e5(0x20b)]['interceptor'][_0x3698e5(0x461)]()[_0x3698e5(0x36f)]);(_0x28df3f=_0x2bf86a((_0xe355a7==null?void 0x0:_0xe355a7[_0x3698e5(0x421)])||[],null))==null||_0x28df3f['forEach'](_0x2e56f4=>this[_0x3698e5(0x2b6)][_0x3698e5(0x374)](_0x2e56f4['id'],_0x2e56f4[_0x3698e5(0x498)])),(_0x203dd8=_0x2bf86a(_0x51b724||[],null))==null||_0x203dd8[_0x3698e5(0x301)](_0x1a8cae=>this[_0x3698e5(0x2b6)][_0x3698e5(0x374)](_0x1a8cae['id'],_0x1a8cae[_0x3698e5(0x498)]));}};qe=Wt([p(0x3,_0x53ed15(_0x3165b6)),p(0x4,_0x53ed15(w)),p(0x5,_0x53ed15(_0x227dad)),p(0x6,_0x53ed15(_0x1deb41)),p(0x7,_0x53ed15(_0x231b85)),p(0x8,_0x385fd2),p(0x9,_0x8348c),p(0xa,_0x4608dc),p(0xb,_0x5f5b14),p(0xc,_0x507395(tt))],qe);let Tt=class extends qe{constructor(_0x2634ba,_0x19f6ee,_0x87101e,_0x5f16cb,_0x2f5984,_0xd67850,_0x6bf3ee,_0x4b00ba,_0x9b906d,_0x394a0b,_0x4d5655,_0x85c65e,_0x4cf313,_0x3a5f79,_0x5e6978,_0x90b8ed,_0x5c459e){const _0x144c0d=_0x513b3b;super(_0x2634ba,_0x87101e,_0x19f6ee,_0x5f16cb,_0x2f5984,_0xd67850,_0x6bf3ee,_0x4b00ba,_0x4cf313,_0x3a5f79,_0x5e6978,_0x90b8ed,_0x5c459e),this['unitID']=_0x2634ba,this[_0x144c0d(0x30b)]=_0x19f6ee,this['_docStateChangeManagerService']=_0x9b906d,this[_0x144c0d(0x2f1)]=_0x394a0b,this[_0x144c0d(0x202)]=_0x4d5655,this['_docSyncEditingCollabCursorService']=_0x85c65e;}[_0x513b3b(0x170)](){const _0x4d819d=_0x513b3b,_0x4d0671=super[_0x4d819d(0x170)]();return _0x4d0671[_0x4d819d(0x4cd)]=_0x188ab1=>this[_0x4d819d(0x2f1)]['transformIMECache'](_0x188ab1),_0x4d0671[_0x4d819d(0x294)]=_0x4d09f6=>this[_0x4d819d(0x202)][_0x4d819d(0x439)](_0x4d09f6),_0x4d0671['onSyncEditingCollabCursor']=_0x5b0147=>this[_0x4d819d(0x267)][_0x4d819d(0x4a8)](_0x5b0147),_0x4d0671[_0x4d819d(0x168)]=_0xadcdb8=>this[_0x4d819d(0x2f1)][_0x4d819d(0x26a)](_0xadcdb8),_0x4d0671;}async[_0x513b3b(0x49c)](){const _0x2f94e8=_0x513b3b,_0xbefd14=await super[_0x2f94e8(0x49c)]();return this[_0x2f94e8(0x18a)][_0x2f94e8(0x1d7)]['pipe'](_0x3bacfd(this[_0x2f94e8(0x2d2)]))[_0x2f94e8(0x465)](_0x35b53b=>{const _0x12b4e7=_0x2f94e8;if(_0x35b53b==null)return;const {unitId:_0x1b0f65,redoState:_0x4d1c74,commandId:_0x30885d}=_0x35b53b;if(_0x1b0f65!==this[_0x12b4e7(0x44f)])return;const _0x5d4d9c={'id':_0x30885d,'type':_0x4e2bbf['MUTATION'],'params':{'unitId':_0x1b0f65,'actions':_0x4d1c74[_0x12b4e7(0x458)],'textRanges':null}};this[_0x12b4e7(0x19a)](_0x5d4d9c);}),_0xbefd14;}};Tt=Wt([p(0x3,_0x53ed15(_0x3165b6)),p(0x4,_0x53ed15(w)),p(0x5,_0x53ed15(_0x227dad)),p(0x6,_0x53ed15(_0x1deb41)),p(0x7,_0x53ed15(_0x231b85)),p(0x8,_0x53ed15(_0x1896f0)),p(0x9,_0x53ed15(Ye)),p(0xa,_0x53ed15(Xe)),p(0xb,_0x53ed15(Ft)),p(0xc,_0x385fd2),p(0xd,_0x8348c),p(0xe,_0x4608dc),p(0xf,_0x5f5b14),p(0x10,_0x507395(tt))],Tt);let Rt=class extends qe{constructor(_0x25c84a,_0x537ff1,_0x56204f,_0x594be3,_0x1e3bcc,_0xb807da,_0x59c506,_0x530dd5,_0x21a1f3,_0x30fe91,_0x403f9a,_0x4cc787,_0x2bd27c,_0xc5c0a0){const _0x1de71a=_0x513b3b;super(_0x25c84a,_0x56204f,_0x537ff1,_0x594be3,_0x1e3bcc,_0xb807da,_0x59c506,_0x530dd5,_0x30fe91,_0x403f9a,_0x4cc787,_0x2bd27c,_0xc5c0a0),this[_0x1de71a(0x44f)]=_0x25c84a,this[_0x1de71a(0x30b)]=_0x537ff1,this[_0x1de71a(0x2e5)]=_0x21a1f3;}[_0x513b3b(0x170)](){const _0xb2a1f5=_0x513b3b,_0x3eb132=super[_0xb2a1f5(0x170)]();return _0x3eb132[_0xb2a1f5(0x294)]=_0x3a3346=>this['_sheetTransformSelectionsService']['transformSelections'](_0x3a3346),_0x3eb132;}async[_0x513b3b(0x49c)](){const _0x2985c0=_0x513b3b,_0x4d27b6=await super[_0x2985c0(0x49c)]();return this[_0x2985c0(0x233)](this[_0x2985c0(0x2b6)][_0x2985c0(0x46f)]((_0x488b7f,_0x512cad)=>{const _0x1730d5=_0x2985c0;if(_0x488b7f['type']!==_0x4e2bbf['MUTATION']||_0x512cad!=null&&_0x512cad[_0x1730d5(0x373)]||_0x512cad!=null&&_0x512cad[_0x1730d5(0x309)])return;const _0x2d743b=_0x488b7f['params'];if((_0x2d743b==null?void 0x0:_0x2d743b[_0x1730d5(0x1af)])!==this[_0x1730d5(0x44f)])return;const _0x227739=_0x488b7f,_0x21ea61=this['_compressMutationService']['interceptor'][_0x1730d5(0x268)](this[_0x1730d5(0x20b)][_0x1730d5(0x4da)][_0x1730d5(0x461)]()['COMPRESS_MUTATION_SEND'])([_0x227739],null)||[_0x227739];this[_0x1730d5(0x19a)](_0x21ea61[0x0]);})),_0x4d27b6;}};Rt=Wt([p(0x3,_0x53ed15(_0x3165b6)),p(0x4,_0x53ed15(w)),p(0x5,_0x53ed15(_0x227dad)),p(0x6,_0x53ed15(_0x1deb41)),p(0x7,_0x53ed15(_0x231b85)),p(0x8,_0x53ed15(Ke)),p(0x9,_0x385fd2),p(0xa,_0x8348c),p(0xb,_0x4608dc),p(0xc,_0x5f5b14),p(0xd,_0x507395(tt))],Rt);var Pr=Object[_0x513b3b(0x1a5)],yr=Object['getOwnPropertyDescriptor'],Ur=(_0x539a89,_0x1ad617,_0x4a708c,_0x566c7c)=>{for(var _0x1d4afb=_0x566c7c>0x1?void 0x0:_0x566c7c?yr(_0x1ad617,_0x4a708c):_0x1ad617,_0x230dea=_0x539a89['length']-0x1,_0x148990;_0x230dea>=0x0;_0x230dea--)(_0x148990=_0x539a89[_0x230dea])&&(_0x1d4afb=(_0x566c7c?_0x148990(_0x1ad617,_0x4a708c,_0x1d4afb):_0x148990(_0x1d4afb))||_0x1d4afb);return _0x566c7c&&_0x1d4afb&&Pr(_0x1ad617,_0x4a708c,_0x1d4afb),_0x1d4afb;},_t=(_0x329236,_0x4cbe5e)=>(_0x29bd97,_0xe2558c)=>_0x4cbe5e(_0x29bd97,_0xe2558c,_0x329236);let Le=class extends _0x346899{constructor(_0x3ff36d,_0xdf1cbe,_0x190bab){const _0x24fc73=_0x513b3b;super(),l(this,'_entities',new Map()),l(this,_0x24fc73(0x3d8),new _0x210aee()),(this[_0x24fc73(0x31e)]=_0x3ff36d,this[_0x24fc73(0x1c4)]=_0xdf1cbe,this[_0x24fc73(0x4c4)]=_0x190bab,this[_0x24fc73(0x49c)]());}[_0x513b3b(0x3ce)](){const _0x4f5663=_0x513b3b;super[_0x4f5663(0x3ce)](),this[_0x4f5663(0x217)][_0x4f5663(0x301)](_0x2e1a27=>_0x2e1a27['dispose']()),this[_0x4f5663(0x217)]['clear']();}[_0x513b3b(0x1a2)](_0x3e4c76){const _0x1d0313=_0x513b3b;var _0x1e17ea;return(_0x1e17ea=this[_0x1d0313(0x217)][_0x1d0313(0x49f)](_0x3e4c76))!=null?_0x1e17ea:null;}['getCollabEntity$'](_0x1f246){const _0x2c4296=_0x513b3b,_0x487dc2=this['getCollabEntity'](_0x1f246);return _0x487dc2?_0x207817(_0x487dc2):this[_0x2c4296(0x3d8)][_0x2c4296(0x33b)](_0x5bfb9e(_0x2d14bc=>_0x2d14bc[_0x2c4296(0x44f)]===_0x1f246));}[_0x513b3b(0x49c)](){const _0x341b32=_0x513b3b;this[_0x341b32(0x4c4)]['getTypeOfUnitAdded$'](_0x743738[_0x341b32(0x3b6)])[_0x341b32(0x33b)](_0x3bacfd(this[_0x341b32(0x2d2)]),_0x3b7ba7(0x10))[_0x341b32(0x465)](async _0x244f41=>{const _0x13eeae=_0x341b32,_0x29f03c=_0x244f41['getUnitId'](),_0x336d10=await this[_0x13eeae(0x352)](_0x29f03c,k[_0x13eeae(0x3b6)]);this['_entities'][_0x13eeae(0x3ca)](_0x29f03c,_0x336d10);}),this[_0x341b32(0x4c4)][_0x341b32(0x290)](_0x743738['UNIVER_DOC'])['pipe'](_0x3bacfd(this['dispose$']),_0x3b7ba7(0x10))[_0x341b32(0x33b)](_0x5bfb9e(_0x4def36=>!_0x4def36['getUnitId']()[_0x341b32(0x178)]('__')))[_0x341b32(0x465)](async _0x2077e1=>{const _0x2af6fc=_0x341b32,_0x35f9ad=_0x2077e1[_0x2af6fc(0x389)](),_0x5a4b10=await this[_0x2af6fc(0x352)](_0x35f9ad,k['UNIVER_DOC']);this[_0x2af6fc(0x217)]['set'](_0x35f9ad,_0x5a4b10);}),_0x2f0d88(this[_0x341b32(0x4c4)]['getTypeOfUnitDisposed$'](_0x743738[_0x341b32(0x3b6)]),this['_univerInstanceService'][_0x341b32(0x4d9)](_0x743738[_0x341b32(0x1a4)]))['pipe'](_0x3bacfd(this['dispose$']))[_0x341b32(0x465)](_0x12c9b9=>{const _0x4dede0=_0x341b32,_0x3334bf=_0x12c9b9['getUnitId'](),_0x41ef1e=this[_0x4dede0(0x217)]['get'](_0x3334bf);_0x41ef1e&&(_0x41ef1e[_0x4dede0(0x3ce)](),this[_0x4dede0(0x217)][_0x4dede0(0x248)](_0x3334bf));});}async[_0x513b3b(0x352)](_0x13d849,_0x5de976){const _0x1af69a=_0x513b3b,_0x194690=await this[_0x1af69a(0x1c4)][_0x1af69a(0x23e)](_0x13d849),_0x1b11d9=this['_injector'][_0x1af69a(0x269)](this[_0x1af69a(0x273)](_0x5de976),_0x13d849,_0x5de976,_0x194690);return await _0x1b11d9['init'](),this[_0x1af69a(0x3d8)][_0x1af69a(0x48d)](_0x1b11d9),_0x1b11d9;}['_getCtorByUniverType'](_0x5f10ce){const _0xc83fa4=_0x513b3b;switch(_0x5f10ce){case k[_0xc83fa4(0x1a4)]:return Tt;case k[_0xc83fa4(0x3b6)]:return Rt;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x5f10ce);}}};Le=Ur([_t(0x0,_0x53ed15(_0x3165b6)),_t(0x1,_0x53ed15(he)),_t(0x2,_0x4c005a)],Le);const ms=[_0x513b3b(0x3d3),'jiqing500',_0x513b3b(0x3c7),_0x513b3b(0x1d2),_0x513b3b(0x2bf),_0x513b3b(0x2da)];class Gt extends _0x5f406a{constructor(){const _0x842918=_0x513b3b;super(...arguments),l(this,_0x842918(0x30c),new Map()),l(this,'_colorIndex',0x0);}[_0x513b3b(0x2a7)](_0x2b3284){const _0x5c4a3c=_0x513b3b;if(this['_assignedColors'][_0x5c4a3c(0x243)](_0x2b3284))return this[_0x5c4a3c(0x30c)][_0x5c4a3c(0x49f)](_0x2b3284);const _0x472123=ms[this[_0x5c4a3c(0x4a3)]];return this[_0x5c4a3c(0x4a3)]=(this['_colorIndex']+0x1)%ms[_0x5c4a3c(0x313)],this['_assignedColors'][_0x5c4a3c(0x3ca)](_0x2b3284,_0x472123),_0x472123;}}var Nr=Object[_0x513b3b(0x1a5)],Mr=Object[_0x513b3b(0x1be)],Ar=(_0xdce78e,_0x20b059,_0x485f6d,_0x55353c)=>{const _0x277e2a=_0x513b3b;for(var _0x240da5=_0x55353c>0x1?void 0x0:_0x55353c?Mr(_0x20b059,_0x485f6d):_0x20b059,_0x5c5d31=_0xdce78e[_0x277e2a(0x313)]-0x1,_0x4868c7;_0x5c5d31>=0x0;_0x5c5d31--)(_0x4868c7=_0xdce78e[_0x5c5d31])&&(_0x240da5=(_0x55353c?_0x4868c7(_0x20b059,_0x485f6d,_0x240da5):_0x4868c7(_0x240da5))||_0x240da5);return _0x55353c&&_0x240da5&&Nr(_0x20b059,_0x485f6d,_0x240da5),_0x240da5;},ie=(_0x47bf4f,_0x4abfd1)=>(_0x1e891e,_0x526e27)=>_0x4abfd1(_0x1e891e,_0x526e27,_0x47bf4f);const Lr=0x12c,$r=0x64;let Ot=class extends _0x346899{constructor(_0x56c2b7,_0x1b7f6a,_0x5e48f7,_0x15c9ba,_0x40490d,_0x238468,_0x409591,_0x6c9e3b,_0x1385d2){const _0xae3b59=_0x513b3b;super(),l(this,'_online',!0x1),l(this,'_init',!0x1),l(this,_0xae3b59(0x2c9),new _0x1edb16(new Map())),l(this,_0xae3b59(0x1a3),this[_0xae3b59(0x2c9)]['asObservable']()),l(this,'_roomMembers$',new _0x1edb16([])),l(this,_0xae3b59(0x2b8),this[_0xae3b59(0x4b4)][_0xae3b59(0x33b)](_0x28cdbb(Lr))),l(this,_0xae3b59(0x2b7),_0x2cf035(_0x339990=>{const _0x2c2a0b=_0xae3b59,_0x38eec7={'eventID':_0x46c90b[_0x2c2a0b(0x4d3)],'data':{'unitID':this[_0x2c2a0b(0x44f)],'memberID':this[_0x2c2a0b(0x2fa)][_0x2c2a0b(0x45c)](),'selection':Ws(_0x339990)}};this[_0x2c2a0b(0x2fa)][_0x2c2a0b(0x415)](_0x38eec7,this[_0x2c2a0b(0x44f)]);},$r)),(this[_0xae3b59(0x44f)]=_0x56c2b7,this[_0xae3b59(0x2fa)]=_0x1b7f6a,this['_injector']=_0x5e48f7,this[_0xae3b59(0x445)]=_0x15c9ba,this['_memberService']=_0x40490d,this[_0xae3b59(0x1cb)]=_0x238468,this[_0xae3b59(0x283)]=_0x409591,this[_0xae3b59(0x4c4)]=_0x6c9e3b,this['_commandService']=_0x1385d2);}get[_0x513b3b(0x146)](){const _0x22507d=_0x513b3b;return this[_0x22507d(0x2c9)][_0x22507d(0x3e2)]();}get[_0x513b3b(0x214)](){const _0x1b8d34=_0x513b3b;return this[_0x1b8d34(0x4b4)][_0x1b8d34(0x3e2)]();}['dispose'](){const _0x51203c=_0x513b3b;super[_0x51203c(0x3ce)](),this[_0x51203c(0x2c9)][_0x51203c(0x48d)](new Map()),this['_cursorInfo$']['complete'](),this[_0x51203c(0x4b4)][_0x51203c(0x48d)]([]),this['_roomMembers$'][_0x51203c(0x2ff)]();}['init'](){const _0x7d852f=_0x513b3b;this[_0x7d852f(0x49c)]||(this[_0x7d852f(0x49c)]=!0x0,this[_0x7d852f(0x2fa)]['sessionStatus$']['pipe'](_0x3bacfd(this['dispose$']))[_0x7d852f(0x465)](_0x5c3b39=>{const _0x2d0b04=_0x7d852f;_0x5c3b39===Y[_0x2d0b04(0x1f7)]?this[_0x2d0b04(0x4c0)]():this[_0x2d0b04(0x3cb)]();}),this[_0x7d852f(0x2fa)][_0x7d852f(0x47b)][_0x7d852f(0x33b)](_0x3bacfd(this['dispose$']))['subscribe'](_0x57910b=>{const _0x3fc68e=_0x7d852f,_0x159204=_0x57910b[_0x3fc68e(0x2db)];_0x159204===_0x46c90b[_0x3fc68e(0x4d3)]&&this['_onCursorUpdate'](_0x57910b),_0x159204===_0x46c90b[_0x3fc68e(0x2b5)]&&this[_0x3fc68e(0x1fd)](_0x57910b);}),this['disposeWithMe'](this[_0x7d852f(0x2b6)][_0x7d852f(0x46f)](_0x571aab=>{const _0x1424bc=_0x7d852f,_0x4d5893=_0x571aab[_0x1424bc(0x498)];_0x4d5893!=null&&this['_online']&&_0x571aab['id']===_0x2e8d24['id']&&_0x4d5893[_0x1424bc(0x1af)]===this[_0x1424bc(0x44f)]&&_0x4d5893[_0x1424bc(0x2cb)]===!0x1&&this[_0x1424bc(0x2b7)](_0x4d5893[_0x1424bc(0x1b3)]);})),this[_0x7d852f(0x1cb)]['collabCursorState$'][_0x7d852f(0x33b)](_0x3bacfd(this['dispose$']))[_0x7d852f(0x465)](_0x2d2c1b=>{const _0x40855e=_0x7d852f;if((_0x2d2c1b==null?void 0x0:_0x2d2c1b[_0x40855e(0x44f)])!==this[_0x40855e(0x44f)])return;const _0x5ee1d8={'eventID':_0x46c90b[_0x40855e(0x4d3)],'data':_0x2d2c1b};this['_onCursorUpdate'](_0x5ee1d8);}),this[_0x7d852f(0x233)](this['_commandService'][_0x7d852f(0x46f)](_0xbaf52f=>{const _0x168b27=_0x7d852f;if(_0xbaf52f[_0x168b27(0x498)]==null)return;const _0x1aca94=_0xbaf52f[_0x168b27(0x498)];if(_0xbaf52f['id']!==_0x599177['id']||_0x1aca94[_0x168b27(0x1af)]!==this[_0x168b27(0x44f)])return;const _0x40774c={'id':_0x168b27(0x1dc),'params':_0x1aca94},_0xafd559=this[_0x168b27(0x146)];for(const [_0x4007e1,_0x5ee0d1]of _0xafd559){const _0x20fbcc={'id':_0x168b27(0x1dc),'params':{'unitId':this[_0x168b27(0x44f)],'actions':null,'textRanges':_0x5ee0d1[_0x168b27(0x1b3)]}},_0x32c90e=this['_transformService'][_0x168b27(0x40a)](_0x40774c,_0x20fbcc,!0x1);if(_0x24fa2f(_0x32c90e))throw _0x32c90e[_0x168b27(0x25c)];_0xafd559['set'](_0x4007e1,{..._0x5ee0d1,'ranges':_0x32c90e[_0x168b27(0x2b9)][_0x168b27(0x498)][_0x168b27(0x3b1)]});}queueMicrotask(()=>{const _0x28044e=_0x168b27;this[_0x28044e(0x2c9)][_0x28044e(0x48d)](_0xafd559);});})));}[_0x513b3b(0x3b4)](_0x45ccde){const _0x5b3ff5=_0x513b3b;var _0x3070bb,_0xb27453;const {memberID:_0x1ea7dd,selection:_0x3197b0}=_0x45ccde[_0x5b3ff5(0x14f)],_0x3dbfd2=pr(_0x3197b0),_0x4a4341=(_0xb27453=(_0x3070bb=this[_0x5b3ff5(0x21c)][_0x5b3ff5(0x3e0)](this[_0x5b3ff5(0x44f)],_0x1ea7dd))==null?void 0x0:_0x3070bb[_0x5b3ff5(0x41d)])!=null?_0xb27453:'Unknown\x20user',_0x5a2f21={'color':this[_0x5b3ff5(0x445)]['assignAColorForMemberID'](_0x1ea7dd),'name':_0x4a4341,'ranges':_0x3dbfd2},_0xfddbbc=this[_0x5b3ff5(0x146)];_0xfddbbc[_0x5b3ff5(0x3ca)](_0x1ea7dd,_0x5a2f21),this['_cursorInfo$'][_0x5b3ff5(0x48d)](_0xfddbbc);}[_0x513b3b(0x1fd)](_0xa13beb){const _0x348e3b=_0x513b3b,{memberID:_0x2e7100}=_0xa13beb['data'],_0x12f2c9=this[_0x348e3b(0x146)];_0x12f2c9['delete'](_0x2e7100),this[_0x348e3b(0x2c9)][_0x348e3b(0x48d)](_0x12f2c9);}[_0x513b3b(0x4c0)](){const _0x11fbec=_0x513b3b;var _0x2a5585;if(this[_0x11fbec(0x40f)]=!0x0,((_0x2a5585=this['_univerInstanceService'][_0x11fbec(0x450)]())==null?void 0x0:_0x2a5585[_0x11fbec(0x389)]())!==this['unitID'])return;const _0x55450c=this[_0x11fbec(0x31e)][_0x11fbec(0x49f)](_0x2d5996)['getDocRanges']();Array[_0x11fbec(0x33f)](_0x55450c)&&_0x55450c[_0x11fbec(0x313)]>0x0&&this[_0x11fbec(0x2b7)](_0x55450c);}[_0x513b3b(0x3cb)](){const _0x488bda=_0x513b3b;this[_0x488bda(0x40f)]=!0x1;}};Ot=Ar([ie(0x2,_0x53ed15(_0x3165b6)),ie(0x3,_0x53ed15(Gt)),ie(0x4,_0x53ed15(ce)),ie(0x5,_0x53ed15(Ft)),ie(0x6,_0x2e5ae8),ie(0x7,_0x4c005a),ie(0x8,_0x8348c)],Ot);var jr=Object['defineProperty'],Hr=Object[_0x513b3b(0x1be)],xr=(_0x1271d3,_0x2112dc,_0x59a67e,_0x939f17)=>{const _0xdd0f86=_0x513b3b;for(var _0x368e10=_0x939f17>0x1?void 0x0:_0x939f17?Hr(_0x2112dc,_0x59a67e):_0x2112dc,_0x464a5c=_0x1271d3[_0xdd0f86(0x313)]-0x1,_0x1012f9;_0x464a5c>=0x0;_0x464a5c--)(_0x1012f9=_0x1271d3[_0x464a5c])&&(_0x368e10=(_0x939f17?_0x1012f9(_0x2112dc,_0x59a67e,_0x368e10):_0x1012f9(_0x368e10))||_0x368e10);return _0x939f17&&_0x368e10&&jr(_0x2112dc,_0x59a67e,_0x368e10),_0x368e10;},fe=(_0x53237f,_0x52be7f)=>(_0x162378,_0x3a546d)=>_0x52be7f(_0x162378,_0x3a546d,_0x53237f);const kr=0x12c,Br=0x64,Vr=()=>{let _0x4a9256=[],_0xccc1b6=!0x1;return _0x2437e8=>{const _0x5f1823=_0x1736;_0x4a9256[_0x5f1823(0x152)](_0x2437e8),_0xccc1b6||(_0xccc1b6=!0x0,setTimeout(()=>{const _0x542fb0=_0x5f1823;_0x4a9256[_0x542fb0(0x301)](_0x2455e4=>_0x2455e4()),_0x4a9256=[],_0xccc1b6=!0x1;}));};};let Dt=class extends _0x346899{constructor(_0x1b5117,_0x1f89fb,_0x38c0bb,_0x13c4f3,_0x4edb85,_0x32ea84,_0x1ba18f,_0x23a300){const _0x4be0a6=_0x513b3b;super(),l(this,_0x4be0a6(0x40f),!0x1),l(this,_0x4be0a6(0x49c),!0x1),l(this,_0x4be0a6(0x2c9),new _0x1edb16(new Map())),l(this,_0x4be0a6(0x1a3),this[_0x4be0a6(0x2c9)][_0x4be0a6(0x2a4)]()),l(this,_0x4be0a6(0x4b4),new _0x1edb16([])),l(this,'roomMembers$',this['_roomMembers$']['pipe'](_0x28cdbb(kr))),l(this,_0x4be0a6(0x2b7),_0x2cf035((_0x28f34f,_0x541386)=>{const _0x1f958d=_0x4be0a6,_0x1f1095={'eventID':_0x46c90b[_0x1f958d(0x4d3)],'data':{'unitID':this[_0x1f958d(0x44f)],'memberID':this[_0x1f958d(0x2fa)][_0x1f958d(0x45c)](),'selection':_0x4f040d(_0x28f34f,_0x541386[_0x1f958d(0x304)])}};this[_0x1f958d(0x2fa)][_0x1f958d(0x415)](_0x1f1095,this[_0x1f958d(0x44f)]);},Br)),(this[_0x4be0a6(0x44f)]=_0x1b5117,this[_0x4be0a6(0x2fa)]=_0x1f89fb,this['_injector']=_0x38c0bb,this[_0x4be0a6(0x445)]=_0x13c4f3,this['_memberService']=_0x4edb85,this[_0x4be0a6(0x4c4)]=_0x32ea84,this[_0x4be0a6(0x2b6)]=_0x1ba18f,this[_0x4be0a6(0x239)]=_0x23a300);}get[_0x513b3b(0x146)](){const _0x453720=_0x513b3b;return this[_0x453720(0x2c9)]['getValue']();}get[_0x513b3b(0x214)](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x2c901a=_0x513b3b;super['dispose'](),this['_cursorInfo$'][_0x2c901a(0x48d)](new Map()),this['_cursorInfo$']['complete'](),this[_0x2c901a(0x4b4)][_0x2c901a(0x48d)]([]),this[_0x2c901a(0x4b4)][_0x2c901a(0x2ff)]();}[_0x513b3b(0x145)](){const _0x139276=_0x513b3b;this[_0x139276(0x49c)]||(this['_init']=!0x0,this['_session'][_0x139276(0x3a6)][_0x139276(0x33b)](_0x3bacfd(this[_0x139276(0x2d2)]))[_0x139276(0x465)](_0x35141e=>{const _0x23720a=_0x139276;_0x35141e===Y[_0x23720a(0x1f7)]?this[_0x23720a(0x4c0)]():this[_0x23720a(0x3cb)]();}),this[_0x139276(0x2fa)][_0x139276(0x47b)][_0x139276(0x33b)](_0x3bacfd(this[_0x139276(0x2d2)]))[_0x139276(0x465)](_0x4d438a=>{const _0x2cf91f=_0x139276,_0x192e5d=_0x4d438a[_0x2cf91f(0x2db)];_0x192e5d===_0x46c90b[_0x2cf91f(0x4d3)]&&this[_0x2cf91f(0x3b4)](_0x4d438a),_0x192e5d===_0x46c90b[_0x2cf91f(0x2b5)]&&this[_0x2cf91f(0x1fd)](_0x4d438a);}),this[_0x139276(0x4b7)](),this['disposeWithMe'](this[_0x139276(0x2b6)]['onCommandExecuted'](_0x838e8e=>{const _0x5ae363=_0x139276;if(this[_0x5ae363(0x40f)]&&_0x838e8e['id']===_0x246d31['id']&&_0x838e8e['params'][_0x5ae363(0x1af)]===this[_0x5ae363(0x44f)]){const _0x4286e7=_0x838e8e[_0x5ae363(0x498)];this['_updateLocalCursor'](_0x4286e7[_0x5ae363(0x3df)],_0x4286e7[_0x5ae363(0x2ca)][0x0]);}})));}[_0x513b3b(0x3b4)](_0x505f35){const _0x47535b=_0x513b3b;var _0xc09d7,_0x5acbc0;const {memberID:_0x12ac32,selection:_0x216b0a}=_0x505f35['data'],{sheetName:_0x177439,range:_0x122bfe}=_0x4af056(_0x216b0a),_0x4b5e4a={'name':(_0x5acbc0=(_0xc09d7=this[_0x47535b(0x21c)][_0x47535b(0x3e0)](this['unitID'],_0x12ac32))==null?void 0x0:_0xc09d7[_0x47535b(0x41d)])!=null?_0x5acbc0:_0x47535b(0x1aa),'range':this[_0x47535b(0x45b)](_0x177439,_0x122bfe),'sheetID':_0x177439,'color':this[_0x47535b(0x445)][_0x47535b(0x2a7)](_0x12ac32),'selection':_0x216b0a},_0x115839=this[_0x47535b(0x146)];_0x115839[_0x47535b(0x3ca)](_0x12ac32,_0x4b5e4a),this[_0x47535b(0x2c9)][_0x47535b(0x48d)](_0x115839);}['_onCursorDelete'](_0x59a729){const _0x578a40=_0x513b3b,{memberID:_0x9f6284}=_0x59a729['data'],_0x31b360=this[_0x578a40(0x146)];_0x31b360[_0x578a40(0x248)](_0x9f6284),this['_cursorInfo$'][_0x578a40(0x48d)](_0x31b360);}[_0x513b3b(0x45b)](_0xbc96e9,_0x37712d){const _0x3986cd=_0x513b3b;var _0x26dd5a,_0xecd7a0;const _0x2cef5f=(_0xecd7a0=(_0x26dd5a=this[_0x3986cd(0x4c4)][_0x3986cd(0x49a)](this[_0x3986cd(0x44f)]))==null?void 0x0:_0x26dd5a[_0x3986cd(0x2d3)](_0xbc96e9))==null?void 0x0:_0xecd7a0[_0x3986cd(0x242)]();return(_0x2cef5f==null?void 0x0:_0x2cef5f['find'](_0x575347=>_0x3deb79['contains'](_0x575347,_0x37712d)))||_0x37712d;}[_0x513b3b(0x4b7)](){const _0xc44d60=_0x513b3b,_0x3b3f73=new _0x37f93f(),_0x4222f9=Vr(),_0xf5e567=()=>{const _0x24c7eb=_0x1736;_0x3b3f73[_0x24c7eb(0x3ce)]();const _0x5c2b77=(_0x17fd95,_0x1b9efa,_0x452895,_0x3f3e1e)=>{const _0x4fd780=_0x24c7eb;let _0x3375a3=[];switch(_0x17fd95['id']){case _0x21405f[_0x4fd780(0x3e3)]:{_0x3375a3=_0x12b3ee(_0x17fd95,_0x3f3e1e);break;}case _0x21405f[_0x4fd780(0x38e)]:{_0x3375a3=_0x3747a5(_0x17fd95,_0x3f3e1e);break;}case _0x21405f[_0x4fd780(0x381)]:{_0x3375a3=_0x53a592(_0x17fd95,_0x3f3e1e);break;}case _0x21405f[_0x4fd780(0x37a)]:{_0x3375a3=_0x3b4b4d(_0x17fd95,_0x3f3e1e);break;}case _0x21405f[_0x4fd780(0x448)]:{_0x3375a3=_0x44ef57(_0x17fd95,_0x3f3e1e);break;}case _0x21405f['InsertRowCommandId']:{_0x3375a3=_0x42fbc0(_0x17fd95,_0x3f3e1e);break;}case _0x21405f[_0x4fd780(0x380)]:{_0x3375a3=_0x50ae63(_0x17fd95,_0x3f3e1e);break;}case _0x21405f['RemoveColCommandId']:{_0x3375a3=_0x3ff3f3(_0x17fd95,_0x3f3e1e);break;}case _0x21405f[_0x4fd780(0x464)]:{_0x3375a3=_0x2275d3(_0x17fd95,_0x3f3e1e);break;}}const _0x45a84b=_0x2d1b7f(_0x3375a3,_0x3f3e1e),_0x11b6e2=this[_0x4fd780(0x146)]['get'](_0x1b9efa);if(_0x11b6e2&&_0x45a84b){const _0x20fbaf={..._0x11b6e2,'range':_0x45a84b};this[_0x4fd780(0x146)][_0x4fd780(0x3ca)](_0x1b9efa,_0x20fbaf),_0x4222f9(()=>{const _0x97ada5=_0x4fd780,_0x53e90f=this[_0x97ada5(0x239)][_0x97ada5(0x215)](_0x45a84b,_0x346416=>(_0x53e90f['dispose'](),_0x5c2b77(_0x346416,_0x1b9efa,_0x452895,_0x45a84b)));_0x3b3f73[_0x97ada5(0x2ab)](_0x53e90f);});}return{'redos':[],'undos':[]};};this[_0x24c7eb(0x146)][_0x24c7eb(0x301)]((_0x950bae,_0x17a7b9)=>{const _0x26be6b=_0x24c7eb,{range:_0x411256,sheetID:_0x19b1fa}=_0x950bae,_0x454d12=this['_refRangeService']['registerRefRange'](_0x411256,_0x1c0ba5=>(_0x454d12[_0x26be6b(0x3ce)](),_0x5c2b77(_0x1c0ba5,_0x17a7b9,_0x19b1fa,_0x411256)));_0x3b3f73[_0x26be6b(0x2ab)](_0x454d12);});};this[_0xc44d60(0x233)](_0x29caef(this['_cursorInfo$']['subscribe'](()=>{_0xf5e567();})));}['_toggleOnline'](){const _0x7c743e=_0x513b3b;var _0x5f568c,_0x30ce20;if(this[_0x7c743e(0x40f)]=!0x0,((_0x5f568c=this[_0x7c743e(0x4c4)][_0x7c743e(0x450)]())==null?void 0x0:_0x5f568c['getUnitId']())!==this[_0x7c743e(0x44f)])return;const _0x41ba56=(_0x30ce20=this[_0x7c743e(0x31e)][_0x7c743e(0x49f)](_0x4c5ec4)[_0x7c743e(0x483)]())==null?void 0x0:_0x30ce20[0x0],_0x465a44=this[_0x7c743e(0x4c4)]['getCurrentUnitForType'](_0x743738[_0x7c743e(0x3b6)])[_0x7c743e(0x349)]();_0x41ba56&&_0x465a44&&this[_0x7c743e(0x2b7)](_0x465a44['getSheetId'](),_0x41ba56);}[_0x513b3b(0x3cb)](){const _0x1006f7=_0x513b3b;this[_0x1006f7(0x40f)]=!0x1;}};Dt=xr([fe(0x2,_0x53ed15(_0x3165b6)),fe(0x3,_0x53ed15(Gt)),fe(0x4,_0x53ed15(ce)),fe(0x5,_0x4c005a),fe(0x6,_0x8348c),fe(0x7,_0x53ed15(_0x4a88f5))],Dt);var Fr=Object[_0x513b3b(0x1a5)],Wr=Object[_0x513b3b(0x1be)],Gr=(_0x1b433e,_0x383288,_0x20f838,_0x5cd216)=>{const _0x569bd3=_0x513b3b;for(var _0x26c2ca=_0x5cd216>0x1?void 0x0:_0x5cd216?Wr(_0x383288,_0x20f838):_0x383288,_0x500f4a=_0x1b433e[_0x569bd3(0x313)]-0x1,_0x5d37f0;_0x500f4a>=0x0;_0x500f4a--)(_0x5d37f0=_0x1b433e[_0x500f4a])&&(_0x26c2ca=(_0x5cd216?_0x5d37f0(_0x383288,_0x20f838,_0x26c2ca):_0x5d37f0(_0x26c2ca))||_0x26c2ca);return _0x5cd216&&_0x26c2ca&&Fr(_0x383288,_0x20f838,_0x26c2ca),_0x26c2ca;},ut=(_0x3e4d26,_0x454f43)=>(_0x207f6a,_0x2f83ca)=>_0x454f43(_0x207f6a,_0x2f83ca,_0x3e4d26);let ve=class extends _0x346899{constructor(_0x199a1b,_0x1bbbc2,_0x258062){const _0x3382a9=_0x513b3b;super(),l(this,_0x3382a9(0x217),new Map()),l(this,_0x3382a9(0x3d8),new _0x210aee()),(this[_0x3382a9(0x4c4)]=_0x199a1b,this['_injector']=_0x1bbbc2,this[_0x3382a9(0x1c4)]=_0x258062,this[_0x3382a9(0x49c)]());}['dispose'](){const _0x107cde=_0x513b3b;super[_0x107cde(0x3ce)](),this['_entityInit$'][_0x107cde(0x2ff)](),this[_0x107cde(0x217)][_0x107cde(0x301)](_0x61fe53=>_0x61fe53[_0x107cde(0x3ce)]());}[_0x513b3b(0x155)](_0x228d84){const _0x24390f=_0x513b3b;return this[_0x24390f(0x217)][_0x24390f(0x243)](_0x228d84)?this[_0x24390f(0x217)]['get'](_0x228d84)['cursorInfo$']:this[_0x24390f(0x3d8)]['pipe'](_0x2ffc6e(_0xa0fb4c=>_0xa0fb4c['unitID']===_0x228d84),_0x1317fa(_0x343113=>_0x343113[_0x24390f(0x1a3)]));}[_0x513b3b(0x49c)](){const _0x1bb2ae=_0x513b3b;this[_0x1bb2ae(0x4c4)][_0x1bb2ae(0x290)](_0x743738['UNIVER_SHEET'])[_0x1bb2ae(0x33b)](_0x3bacfd(this[_0x1bb2ae(0x2d2)]))['subscribe'](async _0x1e32b7=>{const _0x414357=_0x1bb2ae,_0x56bf7=_0x1e32b7[_0x414357(0x389)](),_0x5139ab=await this[_0x414357(0x31b)](_0x56bf7);this[_0x414357(0x3d8)]['next'](_0x5139ab),this[_0x414357(0x217)][_0x414357(0x3ca)](_0x56bf7,_0x5139ab);}),this[_0x1bb2ae(0x4c4)]['getTypeOfUnitAdded$'](_0x743738[_0x1bb2ae(0x1a4)])[_0x1bb2ae(0x33b)](_0x3bacfd(this[_0x1bb2ae(0x2d2)]))[_0x1bb2ae(0x33b)](_0x2ffc6e(_0x26fa04=>!_0x26fa04[_0x1bb2ae(0x389)]()[_0x1bb2ae(0x178)]('__')))[_0x1bb2ae(0x465)](async _0x2aadee=>{const _0x146a64=_0x1bb2ae,_0x4db022=_0x2aadee[_0x146a64(0x389)](),_0x11969b=await this[_0x146a64(0x1b7)](_0x4db022);this[_0x146a64(0x3d8)][_0x146a64(0x48d)](_0x11969b),this[_0x146a64(0x217)][_0x146a64(0x3ca)](_0x4db022,_0x11969b);}),_0x2f0d88(this[_0x1bb2ae(0x4c4)][_0x1bb2ae(0x4d9)](_0x743738[_0x1bb2ae(0x1a4)]),this[_0x1bb2ae(0x4c4)][_0x1bb2ae(0x4d9)](_0x743738[_0x1bb2ae(0x3b6)]))[_0x1bb2ae(0x33b)](_0x3bacfd(this['dispose$']))[_0x1bb2ae(0x465)](_0x5881b6=>{const _0x22fdc3=_0x1bb2ae,_0x23ec26=_0x5881b6[_0x22fdc3(0x389)](),_0x1cd199=this['_entities']['get'](_0x23ec26);_0x1cd199&&(_0x1cd199[_0x22fdc3(0x3ce)](),this[_0x22fdc3(0x217)][_0x22fdc3(0x248)](_0x23ec26));});}async[_0x513b3b(0x31b)](_0x585136){const _0x23b90c=_0x513b3b,_0x736627=await this[_0x23b90c(0x1c4)][_0x23b90c(0x23e)](_0x585136),_0x274962=this[_0x23b90c(0x31e)][_0x23b90c(0x269)](Dt,_0x585136,_0x736627);return _0x274962[_0x23b90c(0x145)](),_0x274962;}async[_0x513b3b(0x1b7)](_0xf965da){const _0x29a5d0=_0x513b3b,_0x5f09b6=await this[_0x29a5d0(0x1c4)][_0x29a5d0(0x23e)](_0xf965da),_0x43d737=this['_injector'][_0x29a5d0(0x269)](Ot,_0xf965da,_0x5f09b6);return _0x43d737[_0x29a5d0(0x145)](),_0x43d737;}};ve=Gr([ut(0x0,_0x4c005a),ut(0x1,_0x53ed15(_0x3165b6)),ut(0x2,_0x53ed15(he))],ve);const $e=0x14,fs=0xc8,dt=0x4,Yr=0x5;function Kr(_0x5b07a7,_0x41a859){const _0x1ea25f=_0x513b3b;let {radius:_0x2ae9ba,width:_0x2e24db,height:_0x1573d0}=_0x41a859;_0x2ae9ba=_0x2ae9ba!=null?_0x2ae9ba:0x0,_0x2e24db=_0x2e24db!=null?_0x2e24db:0x1e,_0x1573d0=_0x1573d0!=null?_0x1573d0:0x1e;let _0x54c561=0x0,_0x236e83=0x0,_0x5eba1e=0x0;_0x54c561=_0x236e83=_0x5eba1e=Math[_0x1ea25f(0x2d4)](_0x2ae9ba,_0x2e24db/0x2,_0x1573d0/0x2),_0x5b07a7['beginPath'](),_0x5b07a7[_0x1ea25f(0x2c8)](_0x54c561,0x0),_0x5b07a7[_0x1ea25f(0x4b1)](_0x2e24db-_0x236e83,0x0),_0x5b07a7['arc'](_0x2e24db-_0x236e83,_0x236e83,_0x236e83,Math['PI']*0x3/0x2,0x0,!0x1),_0x5b07a7[_0x1ea25f(0x4b1)](_0x2e24db,_0x1573d0-_0x5eba1e),_0x5b07a7[_0x1ea25f(0x492)](_0x2e24db-_0x5eba1e,_0x1573d0-_0x5eba1e,_0x5eba1e,0x0,Math['PI']/0x2,!0x1),_0x5b07a7[_0x1ea25f(0x4b1)](0x0,_0x1573d0),_0x5b07a7['lineTo'](0x0,_0x54c561),_0x5b07a7[_0x1ea25f(0x492)](_0x54c561,_0x54c561,_0x54c561,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5b07a7['closePath'](),_0x41a859['fill']&&(_0x5b07a7['save'](),_0x5b07a7['fillStyle']=_0x41a859[_0x1ea25f(0x28e)],_0x41a859[_0x1ea25f(0x30e)]==='evenodd'?_0x5b07a7[_0x1ea25f(0x28e)]('evenodd'):_0x5b07a7[_0x1ea25f(0x28e)](),_0x5b07a7[_0x1ea25f(0x175)]());}class st extends _0x284381{constructor(_0x588c52,_0x3386be){const _0x147bff=_0x513b3b;super(_0x588c52,_0x3386be),l(this,_0x147bff(0x2e6)),l(this,_0x147bff(0x272)),(this[_0x147bff(0x2e6)]=_0x3386be==null?void 0x0:_0x3386be['color'],this[_0x147bff(0x272)]=_0x3386be==null?void 0x0:_0x3386be[_0x147bff(0x272)]);}static[_0x513b3b(0x4a4)](_0x25f760,_0x1ad287){const _0x20e5bf=_0x513b3b,{text:_0x68acfe,color:_0x1224c1}=_0x1ad287;_0x25f760[_0x20e5bf(0x43e)](),_0x25f760[_0x20e5bf(0x31c)]=_0x20e5bf(0x288);const _0xc0600e=_0x25f760[_0x20e5bf(0x35c)](_0x68acfe)[_0x20e5bf(0x4a6)],_0xc3cb43=Math['min'](_0xc0600e+0x2*dt,fs);Kr(_0x25f760,{'height':$e,'radius':0x4,'width':_0xc3cb43,'fill':_0x1224c1,'evented':!0x1}),_0x25f760[_0x20e5bf(0x413)]=_0x20e5bf(0x286);const _0x6eba1e=dt,_0x32045d=$e-Yr,_0x59e5a2=fs-0x2*dt;if(_0xc0600e>_0x59e5a2){let _0x1fbb92='',_0x3862ad=0x0;for(const _0x393895 of _0x68acfe){const _0x32b001=_0x25f760[_0x20e5bf(0x35c)](_0x393895)[_0x20e5bf(0x4a6)];if(_0x3862ad+_0x32b001<=_0x59e5a2-_0x25f760[_0x20e5bf(0x35c)](_0x20e5bf(0x323))['width'])_0x1fbb92+=_0x393895,_0x3862ad+=_0x32b001;else{_0x1fbb92+=_0x20e5bf(0x323);break;}}_0x25f760[_0x20e5bf(0x4c5)](_0x1fbb92,_0x6eba1e,_0x32045d);}else _0x25f760[_0x20e5bf(0x4c5)](_0x68acfe,_0x6eba1e,_0x32045d);_0x25f760['restore']();}['_draw'](_0x4612b2){const _0x521cdb=_0x513b3b;st[_0x521cdb(0x4a4)](_0x4612b2,this);}}const mt='collab-text-anchor-',Xr=_0x513b3b(0x23a),qr=_0x513b3b(0x347),we=0x6,Jr=1.5,ft=0x4,zr=1.5,Zr=_0x513b3b(0x453);class gs{constructor(_0x11981c,_0x12bd14,_0x44be32,_0x56e360){const _0x5d3dae=_0x513b3b;l(this,_0x5d3dae(0x284),[]),l(this,'_anchor',null),l(this,_0x5d3dae(0x39e),null),l(this,_0x5d3dae(0x24a),null),l(this,_0x5d3dae(0x3e1),null),l(this,'_eventUnsubscribe',null),(this['_cursor']=_0x11981c,this[_0x5d3dae(0x1ca)]=_0x12bd14,this['_docSkeleton']=_0x44be32,this[_0x5d3dae(0x3d7)]=_0x56e360,this[_0x5d3dae(0x4af)]());}set[_0x513b3b(0x28d)](_0x539abd){const _0x64668e=_0x513b3b;_0x539abd?(this[_0x64668e(0x24a)]&&this[_0x64668e(0x24a)][_0x64668e(0x4bc)](),this['_textBubble']&&this[_0x64668e(0x39e)][_0x64668e(0x32b)]()):(this[_0x64668e(0x24a)]&&this['_anchorDot']['show'](),this['_textBubble']&&this[_0x64668e(0x39e)][_0x64668e(0x4bc)]());}[_0x513b3b(0x3ce)](){const _0xa60e13=_0x513b3b;for(const _0x17f159 of this['_shapes'])_0x17f159[_0xa60e13(0x3ce)]();this[_0xa60e13(0x39e)]&&this[_0xa60e13(0x39e)]['dispose'](),this[_0xa60e13(0x24a)]&&this[_0xa60e13(0x24a)][_0xa60e13(0x3ce)](),this[_0xa60e13(0x2bd)]&&this['_anchor'][_0xa60e13(0x3ce)](),this[_0xa60e13(0x282)]&&this['_eventUnsubscribe']();}[_0x513b3b(0x4af)](){const _0x3c742a=_0x513b3b;var _0x53314f;const {_docSkeleton:_0x1d6d81,_document:_0xb231cd}=this,{color:_0xc058e6,name:_0x10313d,ranges:_0x1a93cf}=this[_0x3c742a(0x41e)],_0x110ba7=_0xb231cd[_0x3c742a(0x18d)](),{docsLeft:_0x4528f8,docsTop:_0x58e1da}=_0x110ba7,_0x56dd83=new _0xe31355(_0x110ba7,_0x1d6d81);for(const {startOffset:_0x56f2ce,endOffset:_0x1d6d6c,collapsed:_0x2a1bca,isActive:_0x45763c}of _0x1a93cf){const _0x41a423=_0x1d6d81['findNodePositionByCharIndex'](_0x56f2ce),_0xf3cd07=_0x1d6d81[_0x3c742a(0x1cd)](_0x1d6d6c);if(_0x45763c){const {contentBoxPointGroup:_0x7761bf}=_0x56dd83[_0x3c742a(0x203)](_0xf3cd07,_0xf3cd07);if(_0x7761bf['length']===0x0)continue;this[_0x3c742a(0x206)](_0xc058e6,_0x7761bf,_0x4528f8,_0x58e1da,_0x10313d),this['_eventUnsubscribe']=this[_0x3c742a(0x47c)]();}if(!_0x2a1bca&&_0x41a423&&_0xf3cd07){if(_0x4350fa(_0x41a423,_0xf3cd07)){const _0x35c041=new _0x4151a8(_0x110ba7,_0x1d6d81),{pointGroup:_0x4c227e}=(_0x53314f=_0x35c041[_0x3c742a(0x203)](_0x41a423,_0xf3cd07))!=null?_0x53314f:{};if(_0x4c227e==null||_0x4c227e[_0x3c742a(0x313)]===0x0)continue;this['_drawRectRange'](_0xc058e6,_0x4c227e,_0x4528f8,_0x58e1da);}else{const {contentBoxPointGroup:_0x247409}=_0x56dd83[_0x3c742a(0x203)](_0x41a423,_0xf3cd07);if(_0x247409[_0x3c742a(0x313)]===0x0)continue;this[_0x3c742a(0x4bb)](_0xc058e6,_0x247409,_0x4528f8,_0x58e1da);}}}}[_0x513b3b(0x206)](_0x46e406,_0x4a64e3,_0x5b9a2a,_0xf0c960,_0x4e9431){const _0x2fd728=_0x513b3b,_0x5e480b=this[_0x2fd728(0x35b)](_0x4a64e3),{left:_0x5e7400,top:_0x4ef5df,height:_0x566d87}=_0x5e480b,_0x2408d0=this['_getScale'](),_0x568f7d=zr/_0x2408d0,_0x16dd6b=new _0x57bf2c(mt+_0x31cbda['generateRandomId'](we),{'left':_0x5e7400+_0x5b9a2a-_0x568f7d,'top':_0x4ef5df+_0xf0c960,'height':_0x566d87,'width':Jr,'fill':_0x46e406||_0x2e720d(_0x3de4d2['black'],0x0),'strokeWidth':_0x568f7d,'stroke':Zr,'evented':!0x0});this[_0x2fd728(0x2bd)]=_0x16dd6b,this[_0x2fd728(0x1ca)]['addObject'](_0x16dd6b,_0x441006);const _0x5b8908=new _0x57bf2c(mt+_0x31cbda[_0x2fd728(0x22e)](we),{'left':_0x5e7400+_0x5b9a2a-_0x568f7d,'top':_0x4ef5df+_0xf0c960-ft/0x2,'height':ft,'width':ft,'fill':_0x46e406||_0x2e720d(_0x3de4d2[_0x2fd728(0x1c1)],0x0),'strokeWidth':0x0,'stroke':_0x46e406||_0x2e720d(_0x3de4d2['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x5b8908,this[_0x2fd728(0x1ca)]['addObject'](_0x5b8908,_0x441006);const _0x22be38=new st(mt+_0x31cbda[_0x2fd728(0x22e)](we),{'left':_0x5e7400+_0x5b9a2a-_0x568f7d,'top':_0x4ef5df+_0xf0c960-$e,'text':_0x4e9431,'color':_0x46e406});this[_0x2fd728(0x39e)]=_0x22be38,this['_scene'][_0x2fd728(0x467)](_0x22be38,_0x441006),this['_hover']=!0x1;}[_0x513b3b(0x47c)](){const _0x33138f=_0x513b3b,_0x5092ad=this[_0x33138f(0x2bd)][_0x33138f(0x246)]['subscribeEvent'](()=>{const _0x35e52e=_0x33138f;this[_0x35e52e(0x28d)]=!0x0;}),_0x3ebf96=this['_anchor'][_0x33138f(0x285)]['subscribeEvent'](()=>{const _0x5bce31=_0x33138f;this[_0x5bce31(0x3e1)]&&clearTimeout(this[_0x5bce31(0x3e1)]),this[_0x5bce31(0x3e1)]=setTimeout(()=>{const _0x15964a=_0x5bce31;this[_0x15964a(0x28d)]=!0x1;},0x7d0);});return()=>{const _0x3d1db1=_0x33138f;_0x5092ad[_0x3d1db1(0x48a)](),_0x3ebf96[_0x3d1db1(0x48a)]();};}[_0x513b3b(0x4bb)](_0x5f2929,_0x18f4b8,_0x374aa5,_0x146eec){const _0x11ce3d=_0x513b3b,_0x14566a=new _0x181f1a(_0x5f2929)[_0x11ce3d(0x4d5)](0.2)['toRgbString'](),_0x39da6d=new _0x36c04f(Xr+_0x31cbda[_0x11ce3d(0x22e)](we),{'pointsGroup':_0x18f4b8,'fill':_0x14566a||_0x2e720d(_0x3de4d2[_0x11ce3d(0x1c1)],0.2),'left':_0x374aa5,'top':_0x146eec,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x11ce3d(0x284)][_0x11ce3d(0x152)](_0x39da6d),this[_0x11ce3d(0x1ca)][_0x11ce3d(0x467)](_0x39da6d,_0x441006);}['_drawRectRange'](_0x105891,_0x172b15,_0x2e9c70,_0x563618){const _0x321284=_0x513b3b,_0x84371b=new _0x181f1a(_0x105891)[_0x321284(0x4d5)](0.2)[_0x321284(0x328)](),_0x406bbb=new _0x36c04f(qr+_0x31cbda[_0x321284(0x22e)](we),{'pointsGroup':_0x172b15,'fill':_0x84371b||_0x2e720d(_0x3de4d2[_0x321284(0x1c1)],0.2),'left':_0x2e9c70,'top':_0x563618,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x321284(0x284)][_0x321284(0x152)](_0x406bbb),this[_0x321284(0x1ca)][_0x321284(0x467)](_0x406bbb,_0x441006);}[_0x513b3b(0x35b)](_0x1ce9ee){const _0x55d979=_0x1ce9ee[0x0],_0x28a167=_0x55d979[0x0],_0x9a2d95=_0x55d979[0x2],{x:_0x54175f,y:_0x5b3c44}=_0x28a167,{x:_0x41f862,y:_0x1c7a57}=_0x9a2d95;return{'left':_0x54175f,'top':_0x5b3c44,'width':_0x41f862-_0x54175f,'height':_0x1c7a57-_0x5b3c44};}[_0x513b3b(0x247)](){const _0x383df3=_0x513b3b,{scaleX:_0x5b8024,scaleY:_0x446257}=this['_scene'][_0x383df3(0x2a0)]();return Math[_0x383df3(0x1b0)](_0x5b8024,_0x446257);}}var Qr=Object[_0x513b3b(0x1a5)],eo=Object[_0x513b3b(0x1be)],to=(_0x222290,_0x1c276a,_0x5d3b38,_0xf4893d)=>{const _0x47860e=_0x513b3b;for(var _0x5f530f=_0xf4893d>0x1?void 0x0:_0xf4893d?eo(_0x1c276a,_0x5d3b38):_0x1c276a,_0x4efdeb=_0x222290[_0x47860e(0x313)]-0x1,_0x591cc4;_0x4efdeb>=0x0;_0x4efdeb--)(_0x591cc4=_0x222290[_0x4efdeb])&&(_0x5f530f=(_0xf4893d?_0x591cc4(_0x1c276a,_0x5d3b38,_0x5f530f):_0x591cc4(_0x5f530f))||_0x5f530f);return _0xf4893d&&_0x5f530f&&Qr(_0x1c276a,_0x5d3b38,_0x5f530f),_0x5f530f;},ke=(_0x478f39,_0x420857)=>(_0x53a010,_0x49ad7c)=>_0x420857(_0x53a010,_0x49ad7c,_0x478f39);let wt=class extends _0x346899{constructor(_0x436e92,_0x29d61d,_0x1e81bc,_0x202ea9,_0x1d3939){const _0x4e5383=_0x513b3b;super(),l(this,'_cursorShapes',[]),l(this,_0x4e5383(0x289),[]),(this[_0x4e5383(0x3a0)]=_0x436e92,this[_0x4e5383(0x2f7)]=_0x29d61d,this['_collabCursorController']=_0x1e81bc,this[_0x4e5383(0x2b6)]=_0x202ea9,this[_0x4e5383(0x47f)]=_0x1d3939,this['_init']());}[_0x513b3b(0x49c)](){const _0x30a53a=_0x513b3b,_0x598d12=this[_0x30a53a(0x3a0)][_0x30a53a(0x1af)],_0x1518b4=this[_0x30a53a(0x2f7)];this[_0x30a53a(0x233)](_0x3ff449([this[_0x30a53a(0x2b2)]['getCollabCursors$'](_0x598d12),this[_0x30a53a(0x47f)][_0x30a53a(0x440)]])['pipe'](_0x50a0b8(([_0x3f87b7,_0x435e44])=>({'skeleton':_0x1518b4['getSkeleton'](),'cursors':[..._0x3f87b7['values']()][_0x30a53a(0x3eb)](_0x3846cf=>({..._0x3846cf,'color':_0x435e44[_0x3846cf[_0x30a53a(0x2e6)]]}))})))[_0x30a53a(0x465)](_0x298ab4=>{const _0x47cff1=_0x30a53a;if(this[_0x47cff1(0x27a)](),_0x298ab4){const {skeleton:_0x4dd9bc,cursors:_0x2cf511}=_0x298ab4;this[_0x47cff1(0x280)](_0x4dd9bc,_0x2cf511);}})),this[_0x30a53a(0x46a)](),this[_0x30a53a(0x44a)]();}['_updateCollabCursors'](_0x78882,_0x53f589){const _0x18efbd=_0x513b3b,{scene:_0xb41b21,mainComponent:_0x3eb1fe}=this[_0x18efbd(0x3a0)],_0x5439d7=_0x53f589['map'](_0x69391d=>new gs(_0x69391d,_0xb41b21,_0x78882,_0x3eb1fe));this[_0x18efbd(0x31f)]=_0x5439d7,this[_0x18efbd(0x289)]=_0x53f589;}['_refreshCollabCursors'](){const _0xff1cc8=_0x513b3b;this['_removeCollabCursors']();const {scene:_0x54bb3c,mainComponent:_0x337c03}=this[_0xff1cc8(0x3a0)],_0x53da5c=this[_0xff1cc8(0x2f7)]['getSkeleton'](),_0x2a14a7=this['_cursors'][_0xff1cc8(0x15a)](_0x116245=>new gs(_0x116245,_0x54bb3c,_0x53da5c,_0x337c03));this[_0xff1cc8(0x31f)]=_0x2a14a7;}[_0x513b3b(0x27a)](){const _0x523cc7=_0x513b3b;this[_0x523cc7(0x31f)][_0x523cc7(0x301)](_0x1997e6=>_0x1997e6[_0x523cc7(0x3ce)]()),this[_0x523cc7(0x31f)]=[];}[_0x513b3b(0x44a)](){const _0x3bcd28=_0x513b3b,_0x6d1c1=[_0x26e6cb['id']];this[_0x3bcd28(0x233)](this[_0x3bcd28(0x2b6)]['onCommandExecuted'](_0x4c63e5=>{const _0xb94fdf=_0x3bcd28;_0x6d1c1[_0xb94fdf(0x32f)](_0x4c63e5['id'])&&_0x4c63e5[_0xb94fdf(0x498)][_0xb94fdf(0x1af)]===this['_context'][_0xb94fdf(0x1af)]&&this[_0xb94fdf(0x19d)]();}));}['_initResize'](){const _0x33faed=_0x513b3b;this[_0x33faed(0x233)](_0x27e3fd(this[_0x33faed(0x3a0)][_0x33faed(0x3dd)][_0x33faed(0x2c6)])['pipe'](_0x5bfb9e(_0x46f95f=>_0x46f95f[_0x33faed(0x30b)]===_0x5264bf[_0x33faed(0x210)]),_0x10e087(0x10))[_0x33faed(0x465)](()=>{const _0x319d8f=_0x33faed;this[_0x319d8f(0x19d)]();}));}};wt=to([ke(0x1,_0x53ed15(_0x2a6fef)),ke(0x2,_0x53ed15(ve)),ke(0x3,_0x8348c),ke(0x4,_0x53ed15(_0xe610aa))],wt);const so=0x1,io=1.5;class no extends _0x284381{constructor(_0x52a282,_0x49ab6d){const _0x5bac2a=_0x513b3b;super(_0x52a282,_0x49ab6d),l(this,'_color'),l(this,_0x5bac2a(0x311),!0x1),l(this,_0x5bac2a(0x164)),l(this,_0x5bac2a(0x2f2),''),l(this,_0x5bac2a(0x3f1),_0x5bac2a(0x423)),l(this,_0x5bac2a(0x321)),(_0x49ab6d&&this[_0x5bac2a(0x271)](_0x49ab6d),this['onPointerEnter$'][_0x5bac2a(0x2e4)](()=>this[_0x5bac2a(0x271)]({'hovered':!0x0})),this[_0x5bac2a(0x285)][_0x5bac2a(0x2e4)](()=>this[_0x5bac2a(0x271)]({'hovered':!0x1})));}['setShapeProps'](_0x3aabf1){const _0x3d4ff2=_0x513b3b;var _0x34cc9d,_0x5d499e,_0x1241dc,_0x848744,_0x3ed667,_0xcfd87e;this[_0x3d4ff2(0x1b2)]=(_0x34cc9d=_0x3aabf1[_0x3d4ff2(0x2e6)])!=null?_0x34cc9d:this[_0x3d4ff2(0x1b2)],this[_0x3d4ff2(0x311)]=(_0x5d499e=_0x3aabf1[_0x3d4ff2(0x3ba)])!=null?_0x5d499e:this['_hovered'],this[_0x3d4ff2(0x164)]=(_0x1241dc=_0x3aabf1[_0x3d4ff2(0x304)])!=null?_0x1241dc:this['_range'],this[_0x3d4ff2(0x2f2)]=(_0x848744=_0x3aabf1['name'])!=null?_0x848744:this[_0x3d4ff2(0x2f2)],this[_0x3d4ff2(0x3f1)]=(_0x3ed667=_0x3aabf1[_0x3d4ff2(0x38a)])!=null?_0x3ed667:this['_labelPosition'],this['_backgroundColor']=(_0xcfd87e=_0x3aabf1[_0x3d4ff2(0x33a)])!=null?_0xcfd87e:this[_0x3d4ff2(0x321)],this[_0x3d4ff2(0x24d)]({'width':_0x3aabf1[_0x3d4ff2(0x4a6)],'height':_0x3aabf1[_0x3d4ff2(0x1ab)]});}[_0x513b3b(0x2e2)](_0x3cbe58){const _0xcb514=_0x513b3b,{row:_0x467459,column:_0x1dbaf6}=_0x3cbe58;if(_0x467459>=this[_0xcb514(0x164)]['startRow']&&_0x467459<=this[_0xcb514(0x164)][_0xcb514(0x277)]&&_0x1dbaf6>=this[_0xcb514(0x164)][_0xcb514(0x208)]&&_0x1dbaf6<=this[_0xcb514(0x164)][_0xcb514(0x1c2)]){this[_0xcb514(0x271)]({'hovered':!0x0});return;}this[_0xcb514(0x271)]({'hovered':!0x1});}[_0x513b3b(0x2bb)](_0x551d11){return!0x1;}[_0x513b3b(0x472)](_0x246912){const _0x3896cd=_0x513b3b;_0x57bf2c[_0x3896cd(0x4a4)](_0x246912,{'width':this[_0x3896cd(0x4a6)],'height':this['height'],'strokeWidth':io,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x3896cd(0x321)]}),this[_0x3896cd(0x311)]&&(_0x246912[_0x3896cd(0x43e)](),_0x246912[_0x3896cd(0x3d5)](0x1,0x0,0x0,0x1,this[_0x3896cd(0x4a6)],this['_labelPosition']===_0x3896cd(0x2c2)?0x0:-$e),st['drawWith'](_0x246912,{'text':this[_0x3896cd(0x2f2)],'color':this['_color']}),_0x246912['restore']());}}var ro=Object[_0x513b3b(0x1a5)],oo=Object['getOwnPropertyDescriptor'],ao=(_0x28560f,_0x43038d,_0x3cdae0,_0x568293)=>{const _0x131ad7=_0x513b3b;for(var _0xd929d7=_0x568293>0x1?void 0x0:_0x568293?oo(_0x43038d,_0x3cdae0):_0x43038d,_0x115c1f=_0x28560f[_0x131ad7(0x313)]-0x1,_0x6ea78a;_0x115c1f>=0x0;_0x115c1f--)(_0x6ea78a=_0x28560f[_0x115c1f])&&(_0xd929d7=(_0x568293?_0x6ea78a(_0x43038d,_0x3cdae0,_0xd929d7):_0x6ea78a(_0xd929d7))||_0xd929d7);return _0x568293&&_0xd929d7&&ro(_0x43038d,_0x3cdae0,_0xd929d7),_0xd929d7;},gt=(_0x212a0c,_0x14772e)=>(_0x16e31f,_0x1bede3)=>_0x14772e(_0x16e31f,_0x1bede3,_0x212a0c);const co=0x1389;let Pt=class extends _0x346899{constructor(_0x3bdc67,_0x4e26df,_0x7b6ab2,_0x2f1957){const _0x14dfdb=_0x513b3b;super(),l(this,_0x14dfdb(0x289),new Set()),l(this,_0x14dfdb(0x173),null),(this[_0x14dfdb(0x3a0)]=_0x3bdc67,this['_sheetSkeletonManagerService']=_0x4e26df,this['_collabCursorController']=_0x7b6ab2,this[_0x14dfdb(0x47f)]=_0x2f1957,this['_init']());}['_init'](){const _0x46caa4=_0x513b3b;this['_sheetSkeletonManagerService'][_0x46caa4(0x4a2)]['pipe'](_0x453931(this['dispose$']),_0x31790b(_0x3c650c=>{const _0x1be445=_0x46caa4;if(_0x3c650c){const _0x3a02f3=_0x3c650c[_0x1be445(0x43d)];return _0x3ff449(this[_0x1be445(0x2b2)][_0x1be445(0x155)](this[_0x1be445(0x3a0)][_0x1be445(0x1af)]),this['_themeService'][_0x1be445(0x440)])['pipe'](_0x50a0b8(([_0xb20694,_0x4c8891])=>{const _0x1f8af6=_0x1be445,_0x53d1e4=new Map();return _0xb20694[_0x1f8af6(0x301)]((_0x2882e5,_0x5c64c3)=>{const _0x45f22b=_0x1f8af6;if(_0x2882e5[_0x45f22b(0x259)]===_0x3a02f3){const _0x4c7b5e={..._0x2882e5};_0x4c7b5e['color']=_0x4c8891[_0x2882e5['color']],_0x53d1e4[_0x45f22b(0x3ca)](_0x5c64c3,_0x4c7b5e);}}),{'skeleton':_0x3c650c,'cursors':_0x53d1e4};}));}return _0x207817({'skeleton':null,'cursors':new Map()});}))[_0x46caa4(0x465)](({skeleton:_0x262e7e,cursors:_0x1f7049})=>{const _0x9ba3ff=_0x46caa4;this[_0x9ba3ff(0x27a)](),_0x262e7e&&this[_0x9ba3ff(0x280)](_0x262e7e,_0x1f7049);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x46caa4(0x465)](_0x4aeabb=>{const _0x377fc=_0x46caa4;if(_0x4aeabb==null)return;const {skeleton:_0x4322d}=_0x4aeabb,{scene:_0x3b3975}=this[_0x377fc(0x3a0)];_0x3b3975['onPointerMove$'][_0x377fc(0x2e4)](_0x2cf035(_0x32d9a6=>{const _0x3bf871=_0x377fc;var _0x33afab,_0x18dc85;const {offsetX:_0x3cc9b8,offsetY:_0x23e4ba}=_0x32d9a6,{x:_0x1359d6,y:_0x4f7ad8}=_0x3b3975['getRelativeToViewportCoord'](_0x45e6c1[_0x3bf871(0x370)]([_0x3cc9b8,_0x23e4ba])),{scaleX:_0x634418,scaleY:_0x2403eb}=_0x3b3975[_0x3bf871(0x2a0)](),_0x3e094e=_0x3b3975[_0x3bf871(0x237)](_0x4a3083[_0x3bf871(0x160)]),_0x32c7d9=_0x3b3975[_0x3bf871(0x2c1)](_0x45e6c1[_0x3bf871(0x370)]([_0x1359d6,_0x4f7ad8]),_0x3e094e),_0x33370d=_0x4322d[_0x3bf871(0x41c)](_0x3cc9b8,_0x23e4ba,_0x634418,_0x2403eb,_0x32c7d9);((_0x33afab=this[_0x3bf871(0x173)])==null?void 0x0:_0x33afab[_0x3bf871(0x188)])===_0x33370d[_0x3bf871(0x188)]&&((_0x18dc85=this[_0x3bf871(0x173)])==null?void 0x0:_0x18dc85['row'])===_0x33370d[_0x3bf871(0x1e9)]||this[_0x3bf871(0x289)]['forEach'](_0x37f846=>{_0x37f846['onMouseMove'](_0x33370d);});},0x64));});}[_0x513b3b(0x280)](_0x253c64,_0x5d6d7f){const _0x10364f=_0x513b3b;var _0x428542;const _0x45aa69=(_0x428542=this[_0x10364f(0x399)][_0x10364f(0x22d)]())==null?void 0x0:_0x428542[_0x10364f(0x449)];if(!_0x45aa69)return;const _0x37886d=this[_0x10364f(0x3ed)]();if(!_0x37886d)return;this[_0x10364f(0x289)]['forEach'](_0x439064=>{const _0x2c5ad2=_0x10364f;_0x439064[_0x2c5ad2(0x496)]();});const {scene:_0x3c5ea1}=_0x37886d,_0x430786=ho(Array['from'](_0x5d6d7f[_0x10364f(0x17a)]()))['map'](_0x31f176=>{const _0x139973=_0x10364f,{color:_0x74542c,range:_0x397eac,name:_0x2d45c1,selection:_0x6dde27,sheetID:_0x4087e2}=_0x31f176,{startColumn:_0x4b4633,startRow:_0x1a67fe,endColumn:_0x44cf74,endRow:_0x27922a}=_0x397eac,_0x2a108a=_0x4c9650(_0x1a67fe,_0x4b4633,_0x3c5ea1,_0x45aa69),_0x57a4ed=_0x4c9650(_0x27922a,_0x44cf74,_0x3c5ea1,_0x45aa69),{columnHeaderHeightAndMarginTop:_0x4e03d9}=_0x45aa69,{startX:_0x5e641c,startY:_0x42c456}=_0x2a108a,{endX:_0xb36542,endY:_0x49caa9}=_0x57a4ed,_0x5e2ca4=_0xb36542-_0x5e641c,_0x14551f=_0x49caa9-_0x42c456,_0x181d8e={'labelPosition':_0x42c456-_0x4e03d9>=$e?_0x139973(0x423):_0x139973(0x2c2),'sheetID':_0x4087e2,'range':_0x397eac,'color':_0x74542c,'name':_0x2d45c1,'selection':_0x6dde27,'left':_0x5e641c,'top':_0x42c456,'width':_0x5e2ca4,'height':_0x14551f,'evented':!0x1,'zIndex':co};return new no(_0x2d45c1,_0x181d8e);});_0x3c5ea1['addObjects'](_0x430786,so),this[_0x10364f(0x289)]=new Set(_0x430786);}[_0x513b3b(0x27a)](){const _0x20afca=_0x513b3b;var _0x483b3d;(_0x483b3d=this[_0x20afca(0x289)])==null||_0x483b3d['forEach'](_0x329d2d=>_0x329d2d[_0x20afca(0x3ce)]());}[_0x513b3b(0x3ed)](){const _0x29b51b=_0x513b3b;return _0x9b1a87(this[_0x29b51b(0x3a0)][_0x29b51b(0x446)],this['_context']);}};Pt=ao([gt(0x1,_0x53ed15(_0x3dfcbb)),gt(0x2,_0x53ed15(ve)),gt(0x3,_0x53ed15(_0xe610aa))],Pt);function ho(_0x210e3c){const _0x32c1fe=_0x513b3b,_0x1db595=new Map();return _0x210e3c[_0x32c1fe(0x301)](_0x188fc8=>{const _0x241a5c=_0x32c1fe;if(_0x1db595[_0x241a5c(0x243)](_0x188fc8[_0x241a5c(0x15c)])){const _0xea9d3=_0x1db595[_0x241a5c(0x49f)](_0x188fc8['selection']);_0xea9d3[_0x241a5c(0x41d)]+=',\x20'+_0x188fc8[_0x241a5c(0x41d)];}else _0x1db595[_0x241a5c(0x3ca)](_0x188fc8[_0x241a5c(0x15c)],_0x188fc8);}),Array[_0x32c1fe(0x256)](_0x1db595['values']());}var N=function(){const _0x1403d3=_0x513b3b;return N=Object[_0x1403d3(0x36b)]||function(_0x2cf033){const _0x5632ca=_0x1403d3;for(var _0x2ad33b,_0x3ede32=0x1,_0x1ca295=arguments[_0x5632ca(0x313)];_0x3ede32<_0x1ca295;_0x3ede32++){_0x2ad33b=arguments[_0x3ede32];for(var _0x1e76dd in _0x2ad33b)Object[_0x5632ca(0x228)][_0x5632ca(0x36e)]['call'](_0x2ad33b,_0x1e76dd)&&(_0x2cf033[_0x1e76dd]=_0x2ad33b[_0x1e76dd]);}return _0x2cf033;},N[_0x1403d3(0x201)](this,arguments);},lo=function(_0x13562c,_0x2bce2e){const _0x25ece9=_0x513b3b;var _0x5e3b61={};for(var _0x48a8c6 in _0x13562c)Object[_0x25ece9(0x228)]['hasOwnProperty'][_0x25ece9(0x194)](_0x13562c,_0x48a8c6)&&_0x2bce2e['indexOf'](_0x48a8c6)<0x0&&(_0x5e3b61[_0x48a8c6]=_0x13562c[_0x48a8c6]);if(_0x13562c!=null&&typeof Object[_0x25ece9(0x3d6)]==_0x25ece9(0x33d)){for(var _0x3fe67a=0x0,_0x48a8c6=Object[_0x25ece9(0x3d6)](_0x13562c);_0x3fe67a<_0x48a8c6['length'];_0x3fe67a++)_0x2bce2e[_0x25ece9(0x384)](_0x48a8c6[_0x3fe67a])<0x0&&Object['prototype'][_0x25ece9(0x4ca)][_0x25ece9(0x194)](_0x13562c,_0x48a8c6[_0x3fe67a])&&(_0x5e3b61[_0x48a8c6[_0x3fe67a]]=_0x13562c[_0x48a8c6[_0x3fe67a]]);}return _0x5e3b61;},Yt=_0x33fc8d(function(_0x2c6541,_0x46ee69){const _0x3bbd09=_0x513b3b;var _0x8d21ae=_0x2c6541[_0x3bbd09(0x35f)],_0x5cdcbe=_0x2c6541['id'],_0x576788=_0x2c6541['className'],_0x52044b=_0x2c6541[_0x3bbd09(0x1b6)],_0x21f821=lo(_0x2c6541,[_0x3bbd09(0x35f),'id','className',_0x3bbd09(0x1b6)]),_0x460acd=_0x3bbd09(0x3c8)['concat'](_0x5cdcbe,'\x20')[_0x3bbd09(0x1e5)](_0x576788||'')[_0x3bbd09(0x459)](),_0x2c5df9=_0x3dd20f('_'['concat'](mo()));return Xs(_0x8d21ae,''[_0x3bbd09(0x1e5)](_0x5cdcbe),{'defIds':_0x8d21ae['defIds'],'idSuffix':_0x2c5df9['current']},N({'ref':_0x46ee69,'className':_0x460acd},_0x21f821),_0x52044b);});function Xs(_0x5dafc1,_0x2ab5cd,_0x2f559e,_0x1f5368,_0x28eeba){const _0x28425d=_0x513b3b;return _0x3a56da(_0x5dafc1['tag'],N(N({'key':_0x2ab5cd},_o(_0x5dafc1,_0x2f559e,_0x28eeba)),_0x1f5368),(uo(_0x5dafc1,_0x2f559e)['children']||[])[_0x28425d(0x15a)](function(_0x13b0b5,_0x36e6b2){const _0x45df38=_0x28425d;return Xs(_0x13b0b5,''[_0x45df38(0x1e5)](_0x2ab5cd,'-')['concat'](_0x5dafc1[_0x45df38(0x31d)],'-')['concat'](_0x36e6b2),_0x2f559e,void 0x0,_0x28eeba);}));}function _o(_0x34248c,_0x36b8a7,_0x3ea1f7){const _0x2cd01e=_0x513b3b;var _0x5d5392=N({},_0x34248c[_0x2cd01e(0x4d6)]);_0x3ea1f7!=null&&_0x3ea1f7[_0x2cd01e(0x17f)]&&_0x5d5392[_0x2cd01e(0x28e)]===_0x2cd01e(0x17f)&&(_0x5d5392['fill']=_0x3ea1f7[_0x2cd01e(0x17f)]);var _0x6db005=_0x36b8a7[_0x2cd01e(0x497)];return!_0x6db005||_0x6db005[_0x2cd01e(0x313)]===0x0||(_0x34248c[_0x2cd01e(0x31d)]===_0x2cd01e(0x409)&&_0x5d5392[_0x2cd01e(0x1eb)]&&(_0x5d5392[_0x2cd01e(0x1eb)]=_0x5d5392[_0x2cd01e(0x1eb)]+_0x36b8a7['idSuffix']),Object[_0x2cd01e(0x16e)](_0x5d5392)[_0x2cd01e(0x301)](function(_0x17b963){const _0x41f3ae=_0x2cd01e;var _0x5e3d9f=_0x17b963[0x0],_0x27c647=_0x17b963[0x1];typeof _0x27c647==_0x41f3ae(0x490)&&(_0x5d5392[_0x5e3d9f]=_0x27c647[_0x41f3ae(0x22c)](/url\(#(.*)\)/,_0x41f3ae(0x1b8)[_0x41f3ae(0x1e5)](_0x36b8a7[_0x41f3ae(0x406)],')')));})),_0x5d5392;}function uo(_0xce2179,_0x47d672){const _0x710261=_0x513b3b;var _0x13b2ec,_0x2625c2=_0x47d672[_0x710261(0x497)];return!_0x2625c2||_0x2625c2[_0x710261(0x313)]===0x0?_0xce2179:_0xce2179[_0x710261(0x31d)]===_0x710261(0x329)&&(!((_0x13b2ec=_0xce2179[_0x710261(0x1a7)])===null||_0x13b2ec===void 0x0)&&_0x13b2ec[_0x710261(0x313)])?N(N({},_0xce2179),{'children':_0xce2179[_0x710261(0x1a7)][_0x710261(0x15a)](function(_0x4da0e1){const _0x4feb87=_0x710261;return typeof _0x4da0e1[_0x4feb87(0x4d6)]['id']==_0x4feb87(0x490)&&_0x2625c2&&_0x2625c2[_0x4feb87(0x384)](_0x4da0e1[_0x4feb87(0x4d6)]['id'])>-0x1?N(N({},_0x4da0e1),{'attrs':N(N({},_0x4da0e1[_0x4feb87(0x4d6)]),{'id':_0x4da0e1[_0x4feb87(0x4d6)]['id']+_0x47d672[_0x4feb87(0x406)]})}):_0x4da0e1;})}):_0xce2179;}function mo(){const _0x364024=_0x513b3b;return Math['random']()[_0x364024(0x40b)](0x24)[_0x364024(0x486)](0x2,0x8);}Yt[_0x513b3b(0x330)]=_0x513b3b(0x473);var fo={'tag':_0x513b3b(0x257),'attrs':{'fill':_0x513b3b(0x4d7),'viewBox':_0x513b3b(0x291),'width':_0x513b3b(0x1d4),'height':_0x513b3b(0x1d4)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x513b3b(0x252),'attrs':{'stroke':'currentColor','d':_0x513b3b(0x2ef),'strokeLinecap':_0x513b3b(0x438),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x513b3b(0x329),'attrs':{},'children':[{'tag':_0x513b3b(0x22b),'attrs':{'id':_0x513b3b(0x43f)},'children':[{'tag':_0x513b3b(0x252),'attrs':{'fill':'#fff','d':_0x513b3b(0x1b1)}}]}]}],'defIds':[_0x513b3b(0x43f)]},qs=_0x33fc8d(function(_0x4627c8,_0x40023b){const _0x55f272=_0x513b3b;return _0x3a56da(Yt,Object[_0x55f272(0x36b)]({},_0x4627c8,{'id':_0x55f272(0x189),'ref':_0x40023b,'icon':fo}));});qs[_0x513b3b(0x330)]='OffLineSingle';var go={'tag':_0x513b3b(0x257),'attrs':{'fill':'none','viewBox':_0x513b3b(0x1bd),'width':_0x513b3b(0x1d4),'height':_0x513b3b(0x1d4)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x513b3b(0x252),'attrs':{'stroke':_0x513b3b(0x1e0),'d':_0x513b3b(0x454),'strokeLinecap':_0x513b3b(0x438),'strokeLinejoin':_0x513b3b(0x438),'strokeWidth':1.2}}]},{'tag':_0x513b3b(0x329),'attrs':{},'children':[{'tag':_0x513b3b(0x22b),'attrs':{'id':_0x513b3b(0x3db)},'children':[{'tag':_0x513b3b(0x252),'attrs':{'fill':_0x513b3b(0x359),'d':_0x513b3b(0x1b1),'transform':_0x513b3b(0x3e5)}}]}]}],'defIds':[_0x513b3b(0x3db)]},Js=_0x33fc8d(function(_0x462baa,_0x5df6b6){const _0x22b879=_0x513b3b;return _0x3a56da(Yt,Object[_0x22b879(0x36b)]({},_0x462baa,{'id':_0x22b879(0x3b8),'ref':_0x5df6b6,'icon':go}));});Js[_0x513b3b(0x330)]='OnLineSingle';function zs(_0x3f8a1a){const _0x48b691=_0x513b3b;var _0x19e54f,_0x4faaf3,_0x3e4adf='';if(typeof _0x3f8a1a==_0x48b691(0x490)||typeof _0x3f8a1a==_0x48b691(0x4c8))_0x3e4adf+=_0x3f8a1a;else{if(typeof _0x3f8a1a=='object'){if(Array[_0x48b691(0x33f)](_0x3f8a1a)){var _0xb831f4=_0x3f8a1a[_0x48b691(0x313)];for(_0x19e54f=0x0;_0x19e54f<_0xb831f4;_0x19e54f++)_0x3f8a1a[_0x19e54f]&&(_0x4faaf3=zs(_0x3f8a1a[_0x19e54f]))&&(_0x3e4adf&&(_0x3e4adf+='\x20'),_0x3e4adf+=_0x4faaf3);}else{for(_0x4faaf3 in _0x3f8a1a)_0x3f8a1a[_0x4faaf3]&&(_0x3e4adf&&(_0x3e4adf+='\x20'),_0x3e4adf+=_0x4faaf3);}}}return _0x3e4adf;}function So(){const _0xae05b5=_0x513b3b;for(var _0x4a24dd,_0x188c94,_0x39ef8e=0x0,_0x19fa34='',_0x414ea5=arguments[_0xae05b5(0x313)];_0x39ef8e<_0x414ea5;_0x39ef8e++)(_0x4a24dd=arguments[_0x39ef8e])&&(_0x188c94=zs(_0x4a24dd))&&(_0x19fa34&&(_0x19fa34+='\x20'),_0x19fa34+=_0x188c94);return _0x19fa34;}const po=_0x513b3b(0x2aa),vo=_0x513b3b(0x2e3),Io=_0x513b3b(0x204),Eo='univer-online',Co='univer-offline',Pe={'onlineStatusIcon':po,'onlineStatusTitle':vo,'onlineStatus':Io,'online':Eo,'offline':Co};function bo(_0x15578d){const _0x123314=_0x513b3b;switch(_0x15578d){case P[_0x123314(0x44c)]:return _0x123314(0x46e);case P[_0x123314(0x230)]:return _0x123314(0x428);case P[_0x123314(0x2ea)]:return _0x123314(0x265);case P['NOT_COLLAB']:return _0x123314(0x3b5);case P[_0x123314(0x200)]:case P['AWAITING_WITH_PENDING']:return _0x123314(0x24c);case P[_0x123314(0x149)]:case P[_0x123314(0x2a3)]:return _0x123314(0x182);}}function To(_0x56990d){const _0x5be1f2=_0x513b3b,{status$:_0x438074}=_0x56990d,_0x4ba9e1=_0x1e1202(_0x438074,P[_0x5be1f2(0x1e2)]),_0x36c5ea=_0x414f16(_0x1deb41),_0x85ac7b=_0x414f16(he),_0x5b2f13=_0x4ba9e1!==P[_0x5be1f2(0x44c)],_0x505bc4=_0x36c5ea['t'](bo(_0x4ba9e1)),_0x28049e=So(Pe['onlineStatus'],{[Pe[_0x5be1f2(0x2a8)]]:_0x5b2f13,[Pe[_0x5be1f2(0x1da)]]:!_0x5b2f13}),_0x73d324=_0x5b2f13?_0x30d3ac['createElement'](Js,null):_0x30d3ac[_0x5be1f2(0x2d9)](qs,null),_0x57bb4a=_0x162ab0(()=>{const _0x3b2ac2=_0x5be1f2;_0x5b2f13||_0x85ac7b[_0x3b2ac2(0x43b)]();},[_0x5b2f13,_0x85ac7b]);function _0x1f5f05(){const _0x555466=_0x5be1f2;return _0x30d3ac['createElement'](_0x555466(0x25d),{'className':_0x28049e,'onClick':_0x57bb4a},_0x30d3ac['createElement'](_0x555466(0x25d),{'className':Pe['onlineStatusIcon']},_0x73d324),_0x30d3ac[_0x555466(0x2d9)](_0x555466(0x25d),{'className':Pe[_0x555466(0x491)]},_0x505bc4));}return _0x5b2f13?_0x1f5f05():_0x30d3ac[_0x5be1f2(0x2d9)](_0x1850eb,{'title':_0x36c5ea['t'](_0x5be1f2(0x22f))},_0x1f5f05());}var Ro=Object[_0x513b3b(0x1a5)],Oo=Object['getOwnPropertyDescriptor'],Do=(_0x38b374,_0x38319e,_0x323eb5,_0x144228)=>{const _0x4b4819=_0x513b3b;for(var _0x51455c=_0x144228>0x1?void 0x0:_0x144228?Oo(_0x38319e,_0x323eb5):_0x38319e,_0x1e7ec6=_0x38b374[_0x4b4819(0x313)]-0x1,_0x2f44eb;_0x1e7ec6>=0x0;_0x1e7ec6--)(_0x2f44eb=_0x38b374[_0x1e7ec6])&&(_0x51455c=(_0x144228?_0x2f44eb(_0x38319e,_0x323eb5,_0x51455c):_0x2f44eb(_0x51455c))||_0x51455c);return _0x144228&&_0x51455c&&Ro(_0x38319e,_0x323eb5,_0x51455c),_0x51455c;},Be=(_0x5aec09,_0x256011)=>(_0x1bbb4c,_0x58b013)=>_0x256011(_0x1bbb4c,_0x58b013,_0x5aec09);let Me=class extends _0x5f406a{constructor(_0x912cc5,_0x33b578,_0x2f090c,_0x1fafb4){const _0xded4f=_0x513b3b;super(),l(this,_0xded4f(0x1de),new _0x1edb16(P[_0xded4f(0x1e2)])),(this[_0xded4f(0x4c4)]=_0x912cc5,this[_0xded4f(0x3fc)]=_0x33b578,this[_0xded4f(0x31e)]=_0x2f090c,this[_0xded4f(0x436)]=_0x1fafb4,this[_0xded4f(0x306)](),this[_0xded4f(0x4a7)]());}['_initStatusListener'](){const _0x25bffe=_0x513b3b;this['disposeWithMe'](this[_0x25bffe(0x4c4)][_0x25bffe(0x335)][_0x25bffe(0x33b)](_0x1317fa(()=>{const _0x360a97=_0x25bffe,_0x123a23=this['_univerInstanceService'][_0x360a97(0x450)]();return _0x123a23?this[_0x360a97(0x436)]['getCollabEntity$'](_0x123a23['getUnitId']()):_0x207817(null);}),_0x1317fa(_0x5ae584=>_0x5ae584?_0x5ae584[_0x25bffe(0x258)]:_0x207817(P[_0x25bffe(0x1e2)])))[_0x25bffe(0x465)](_0x2e9021=>{const _0x3d89b2=_0x25bffe;this[_0x3d89b2(0x1de)]['next'](_0x2e9021);}));}[_0x513b3b(0x306)](){const _0x101616=_0x513b3b;this[_0x101616(0x233)](this['_uiPartsService']['registerComponent'](_0x5d8ddb[_0x101616(0x3da)],()=>_0x11ef5a(wo({'status$':this[_0x101616(0x1de)]['asObservable']()}),this['_injector'])));}};Me=Do([Be(0x0,_0x4c005a),Be(0x1,_0x55a85e),Be(0x2,_0x53ed15(_0x3165b6)),Be(0x3,_0x53ed15(Le))],Me);function wo(_0x1e8f31){const {status$:_0x531e78}=_0x1e8f31;return function(){const _0x2e8e83=_0x1736;return _0x30d3ac[_0x2e8e83(0x2d9)](To,{'status$':_0x531e78});};}const Zs=_0x52354a(_0x513b3b(0x35a));var Po=Object[_0x513b3b(0x1a5)],yo=Object[_0x513b3b(0x1be)],Uo=(_0x4abb36,_0x103d76,_0x5bae3e,_0x6d51d0)=>{const _0x8a8a37=_0x513b3b;for(var _0x15391f=_0x6d51d0>0x1?void 0x0:_0x6d51d0?yo(_0x103d76,_0x5bae3e):_0x103d76,_0x4c711b=_0x4abb36[_0x8a8a37(0x313)]-0x1,_0x5e82c5;_0x4c711b>=0x0;_0x4c711b--)(_0x5e82c5=_0x4abb36[_0x4c711b])&&(_0x15391f=(_0x6d51d0?_0x5e82c5(_0x103d76,_0x5bae3e,_0x15391f):_0x5e82c5(_0x15391f))||_0x15391f);return _0x6d51d0&&_0x15391f&&Po(_0x103d76,_0x5bae3e,_0x15391f),_0x15391f;},ge=(_0x5f5dac,_0x4ebcf7)=>(_0x56b67f,_0x346999)=>_0x4ebcf7(_0x56b67f,_0x346999,_0x5f5dac);let Je=class extends _0x346899{constructor(_0x34001f,_0x4a964f,_0x275682,_0x3ef191,_0xde931a,_0x4f6a5c){const _0x141c72=_0x513b3b;super(),this[_0x141c72(0x1b4)]=_0x34001f,this[_0x141c72(0x4e0)]=_0x4a964f,this['_commandService']=_0x275682,this[_0x141c72(0x2be)]=_0x3ef191,this['_snapshotService']=_0xde931a,_0x4f6a5c?_0x4f6a5c==null||_0x4f6a5c[_0x141c72(0x3e4)]()[_0x141c72(0x2cd)](()=>this[_0x141c72(0x49c)]()):(this[_0x141c72(0x4e0)][_0x141c72(0x2bc)](_0x141c72(0x244),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x141c72(0x49c)]());}async[_0x513b3b(0x49c)](){const _0xe8a449=_0x513b3b,_0x281703=this[_0xe8a449(0x1b4)]['getParam']('unit'),_0x33dc85=this[_0xe8a449(0x1b4)][_0xe8a449(0x33e)]('type');if(!_0x281703||!_0x33dc85){this[_0xe8a449(0x4e0)][_0xe8a449(0x2bc)](_0xe8a449(0x244),_0xe8a449(0x499));return;}switch(Number(_0x33dc85)){case k['UNIVER_SHEET']:{const _0x59d78e=await this[_0xe8a449(0x297)](_0x281703);this['_setupSubUnitSync'](_0x59d78e);break;}case k['UNIVER_DOC']:{await this[_0xe8a449(0x475)](_0x281703);break;}default:{this[_0xe8a449(0x4e0)][_0xe8a449(0x25c)]('[DataLoaderController]',_0xe8a449(0x223));break;}}}async['_setupSubUnitSync'](_0x5c0a61){const _0x2a7254=_0x513b3b;await this[_0x2a7254(0x198)](_0x5c0a61),_0x5c0a61[_0x2a7254(0x30f)][_0x2a7254(0x33b)](_0x3bacfd(this[_0x2a7254(0x2d2)]))[_0x2a7254(0x465)](_0x3144cb=>{_0x3144cb&&this['_updateURLWithCurrentState'](_0x3144cb);}),this['_urlService'][_0x2a7254(0x42f)][_0x2a7254(0x33b)](_0x3bacfd(this[_0x2a7254(0x2d2)]))[_0x2a7254(0x465)](()=>this[_0x2a7254(0x198)](_0x5c0a61));}[_0x513b3b(0x47e)](_0x3f29c5,_0x1eb974=!0x1){const _0x3514cf=_0x513b3b,_0x4c2548=this[_0x3514cf(0x1b4)][_0x3514cf(0x33e)]('subunit');_0x3f29c5['getSheetId']()!==_0x4c2548&&this[_0x3514cf(0x1b4)][_0x3514cf(0x1b9)]('subunit',_0x3f29c5[_0x3514cf(0x27d)](),_0x1eb974);}async[_0x513b3b(0x198)](_0x597e12){const _0x8336b2=_0x513b3b;var _0x48e383;const _0x24be26=this[_0x8336b2(0x1b4)][_0x8336b2(0x33e)](_0x8336b2(0x18b));if(!_0x24be26||!_0x597e12[_0x8336b2(0x2d3)](_0x24be26)){const _0x40f2d8=_0x597e12[_0x8336b2(0x23f)]()[0x0],_0x193f49=_0x597e12[_0x8336b2(0x2d3)](_0x40f2d8);if(!_0x193f49)return;this[_0x8336b2(0x47e)](_0x193f49,!0x0),await this[_0x8336b2(0x2b6)][_0x8336b2(0x374)](_0xc656da['id'],{'unitId':_0x597e12[_0x8336b2(0x389)](),'subUnitId':_0x40f2d8});return;}((_0x48e383=_0x597e12[_0x8336b2(0x349)]())==null?void 0x0:_0x48e383['getSheetId']())!==_0x24be26&&await this['_commandService'][_0x8336b2(0x374)](_0xc656da['id'],{'unitId':_0x597e12[_0x8336b2(0x389)](),'subUnitId':_0x24be26});}async[_0x513b3b(0x297)](_0x3be51f){const _0x415fda=_0x513b3b;let _0x2c1868=0x0;const _0xde6fe3=await this['_localCacheService'][_0x415fda(0x263)](_0x3be51f);return _0xde6fe3&&(_0xde6fe3[_0x415fda(0x424)]||_0xde6fe3[_0x415fda(0x421)]['length']!==0x0)&&(_0x2c1868=_0xde6fe3[_0x415fda(0x20c)]),_0x2c1868===0x0&&this[_0x415fda(0x4e0)][_0x415fda(0x2bc)](_0x415fda(0x244),_0x415fda(0x395)),this[_0x415fda(0x396)][_0x415fda(0x474)](_0x3be51f,_0x2c1868);}async[_0x513b3b(0x475)](_0x1acfe0){const _0x41153a=_0x513b3b;let _0xcc6e48=0x0;const _0x990fb7=await this['_localCacheService'][_0x41153a(0x263)](_0x1acfe0);return _0x990fb7&&(_0x990fb7['awaitingChangeset']||_0x990fb7[_0x41153a(0x421)][_0x41153a(0x313)]!==0x0)&&(_0xcc6e48=_0x990fb7[_0x41153a(0x20c)]),_0xcc6e48===0x0&&this['_logService'][_0x41153a(0x2bc)]('[DataLoaderController]',_0x41153a(0x395)),this[_0x41153a(0x396)][_0x41153a(0x32a)](_0x1acfe0,_0xcc6e48);}};Je=Uo([ge(0x0,Zs),ge(0x1,_0x385fd2),ge(0x2,_0x8348c),ge(0x3,_0x53ed15(w)),ge(0x4,_0x53ed15(_0x536a79)),ge(0x5,_0x507395(_0x5a5e3a))],Je);var No=Object['defineProperty'],Mo=Object[_0x513b3b(0x1be)],Ao=(_0x3d88fc,_0xd7d8cb,_0x42c327,_0x376449)=>{const _0x2faf21=_0x513b3b;for(var _0x39f07e=_0x376449>0x1?void 0x0:_0x376449?Mo(_0xd7d8cb,_0x42c327):_0xd7d8cb,_0xa71860=_0x3d88fc[_0x2faf21(0x313)]-0x1,_0x12493c;_0xa71860>=0x0;_0xa71860--)(_0x12493c=_0x3d88fc[_0xa71860])&&(_0x39f07e=(_0x376449?_0x12493c(_0xd7d8cb,_0x42c327,_0x39f07e):_0x12493c(_0x39f07e))||_0x39f07e);return _0x376449&&_0x39f07e&&No(_0xd7d8cb,_0x42c327,_0x39f07e),_0x39f07e;},Ss=(_0x3c7be3,_0x1a9cb3)=>(_0x5ee298,_0x585c37)=>_0x1a9cb3(_0x5ee298,_0x585c37,_0x3c7be3);const Lo=_0x513b3b(0x2fe),$o=_0x513b3b(0x37f);let ze=class extends _0x5f406a{constructor(_0x4b5aff,_0x56af20){const _0xc992bc=_0x513b3b;super(),this[_0xc992bc(0x4c4)]=_0x4b5aff,this[_0xc992bc(0x2cf)]=_0x56af20,this[_0xc992bc(0x49c)]();}[_0x513b3b(0x49c)](){const _0x2052bc=_0x513b3b;this[_0x2052bc(0x233)](this['_univerInstanceService'][_0x2052bc(0x335)]['subscribe'](()=>{const _0x3bf587=_0x2052bc;var _0x45682f;const _0x41e101=this[_0x3bf587(0x4c4)]['getFocusedUnit']();let _0x27c7fe=(_0x45682f=this[_0x3bf587(0x2cf)][_0x3bf587(0x4a0)](Lo))!=null?_0x45682f:$o;_0x41e101 instanceof _0x15ef00&&(_0x27c7fe=_0x41e101[_0x3bf587(0x41d)]),document[_0x3bf587(0x1f9)]=_0x27c7fe;}));}};ze=Ao([Ss(0x0,_0x4c005a),Ss(0x1,_0x17c84c)],ze);var jo=Object[_0x513b3b(0x1a5)],Ho=Object[_0x513b3b(0x1be)],xo=(_0x5b52ae,_0x4fe2f3,_0x3ce7d8,_0x4f29a1)=>{const _0x22abf1=_0x513b3b;for(var _0x52f16a=_0x4f29a1>0x1?void 0x0:_0x4f29a1?Ho(_0x4fe2f3,_0x3ce7d8):_0x4fe2f3,_0x53a9e1=_0x5b52ae[_0x22abf1(0x313)]-0x1,_0x1d6ade;_0x53a9e1>=0x0;_0x53a9e1--)(_0x1d6ade=_0x5b52ae[_0x53a9e1])&&(_0x52f16a=(_0x4f29a1?_0x1d6ade(_0x4fe2f3,_0x3ce7d8,_0x52f16a):_0x1d6ade(_0x52f16a))||_0x52f16a);return _0x4f29a1&&_0x52f16a&&jo(_0x4fe2f3,_0x3ce7d8,_0x52f16a),_0x52f16a;},St=(_0xfbe1c6,_0x52217c)=>(_0x63800c,_0x355b72)=>_0x52217c(_0x63800c,_0x355b72,_0xfbe1c6);let Ze=class{constructor(_0x473aff,_0x4e766b,_0x3cc114){const _0x5f1142=_0x513b3b;this['_configService']=_0x473aff,this[_0x5f1142(0x37e)]=_0x4e766b,this[_0x5f1142(0x20a)]=_0x3cc114,this[_0x5f1142(0x145)]();}[_0x513b3b(0x145)](){const _0x2377a4=_0x513b3b;this['_httpService'][_0x2377a4(0x21e)]({'priority':0x1,'interceptor':(_0x36c31c,_0x366af5)=>_0x366af5(_0x36c31c)['pipe'](_0x40a3d7(async _0x280972=>{const _0x223210=_0x2377a4,_0x499007=_0x280972;if(_0x499007[_0x223210(0x3a7)]===0x191&&window[_0x223210(0x3c6)](this['localeService']['t'](_0x223210(0x274)))){const _0x579015=window['encodeURIComponent'](window['location'][_0x223210(0x429)]);window[_0x223210(0x3fd)][_0x223210(0x429)]=this['_getLoginPath']()+_0x223210(0x2fc)+_0x579015;}return _0x499007;}))});}[_0x513b3b(0x401)](){const _0x96a92a=_0x513b3b;var _0x29a766,_0x357c1c;const _0x5edb61=this['_configService'][_0x96a92a(0x4a0)](Ln),_0x442e97=this[_0x96a92a(0x2cf)][_0x96a92a(0x4a0)]($);return(_0x357c1c=(_0x29a766=_0x442e97==null?void 0x0:_0x442e97[_0x96a92a(0x2f6)])!=null?_0x29a766:_0x5edb61)!=null?_0x357c1c:$n;}};Ze=xo([St(0x0,_0x17c84c),St(0x1,_0x53ed15(_0x444e74)),St(0x2,_0x53ed15(_0x1deb41))],Ze);var ko=Object[_0x513b3b(0x1a5)],Bo=Object[_0x513b3b(0x1be)],Vo=(_0x420543,_0x43edad,_0x2de235,_0x3ea535)=>{for(var _0x1985c5=_0x3ea535>0x1?void 0x0:_0x3ea535?Bo(_0x43edad,_0x2de235):_0x43edad,_0x29cdce=_0x420543['length']-0x1,_0x4fb36c;_0x29cdce>=0x0;_0x29cdce--)(_0x4fb36c=_0x420543[_0x29cdce])&&(_0x1985c5=(_0x3ea535?_0x4fb36c(_0x43edad,_0x2de235,_0x1985c5):_0x4fb36c(_0x1985c5))||_0x1985c5);return _0x3ea535&&_0x1985c5&&ko(_0x43edad,_0x2de235,_0x1985c5),_0x1985c5;},ps=(_0x2194c4,_0x26d8ab)=>(_0x34d835,_0x1a725b)=>_0x26d8ab(_0x34d835,_0x1a725b,_0x2194c4);const Fo=_0x513b3b(0x3a5),Wo='/universer-api/authz';let yt=class extends _0x5f406a{constructor(_0x5a3df1,_0x4b2806){const _0x3585eb=_0x513b3b;super(),this['_HTTPService']=_0x5a3df1,this[_0x3585eb(0x2cf)]=_0x4b2806,this[_0x3585eb(0x4bf)]();}[_0x513b3b(0x4bf)](){const _0x45ff6a=_0x513b3b,_0xa3255f=this;this['disposeWithMe'](this['_HTTPService'][_0x45ff6a(0x21e)]({'priority':0x3e7,'interceptor':_0x23483c({'isMatch'(_0x10f18a){const _0x47bc45=_0x45ff6a;var _0x43a664;if(_0x10f18a[_0x47bc45(0x1ce)]==='POST'&&((_0x43a664=_0x10f18a[_0x47bc45(0x1cc)])!=null&&_0x43a664[_0x47bc45(0x45f)])){const {objectID:_0x19987d,objectType:_0x4fe0de}=_0x10f18a['requestParams']['body']||{};if(!_0x19987d||_0x4fe0de===void 0x0)return!0x1;const _0x2e58b6=_0xa3255f[_0x47bc45(0x1ee)]()+'/'+_0x4fe0de+_0x47bc45(0x4b8)+_0x19987d+_0x47bc45(0x31a);if(_0x10f18a['url']===_0x2e58b6)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1dcdec){const _0xec8707=_0x45ff6a;var _0x25fb47;return(_0x25fb47=_0x1dcdec[_0xec8707(0x1cc)])==null?void 0x0:_0x25fb47[_0xec8707(0x45f)];},'mergeParamsToRequest'(_0x24e01c,_0x16a13d){const _0x551e0e=_0x45ff6a,_0x17ec05=_0xa3255f[_0x551e0e(0x1ee)]()+_0x551e0e(0x2d7),_0x21ac13=_0x24e01c[_0x551e0e(0x2cc)]((_0x6eaaf4,_0x5ea929)=>{const _0xc607ab=_0x551e0e,{unitID:_0x724f8d,objectID:_0x470c9c,objectType:_0xd34eed,actions:_0x30fbed}=_0x5ea929;return _0x6eaaf4[_0x724f8d]||(_0x6eaaf4[_0x724f8d]={}),_0x6eaaf4[_0x724f8d][_0x470c9c]||(_0x6eaaf4[_0x724f8d][_0x470c9c]={'objectID':_0x470c9c,'objectType':_0xd34eed,'actions':[]}),_0x6eaaf4[_0x724f8d][_0x470c9c][_0xc607ab(0x458)][_0xc607ab(0x152)](..._0x30fbed),_0x6eaaf4;},{}),_0x286b2e=[];for(const _0x204223 in _0x21ac13)for(const _0x3656be in _0x21ac13[_0x204223]){const {actions:_0x1fb7fb,objectType:_0x102833}=_0x21ac13[_0x204223][_0x3656be],_0x3faa68=[...new Set(_0x1fb7fb)];_0x286b2e[_0x551e0e(0x152)]({'unitID':_0x204223,'objectID':_0x3656be,'objectType':_0x102833,'actions':_0x3faa68});}return new _0x367db5(_0x551e0e(0x1f0),_0x17ec05,{'headers':_0x16a13d[_0x551e0e(0x1f6)],'withCredentials':_0x16a13d[_0x551e0e(0x29d)],'responseType':_0x16a13d[_0x551e0e(0x26d)],'body':{'requests':_0x286b2e}});}},{'distributeResult'(_0x239e37,_0x564773){const _0x5ae65e=_0x45ff6a,{objectActions:_0x2d5296}=_0x239e37;return _0x564773[_0x5ae65e(0x15a)](_0x277733=>{const _0xc89c4=_0x5ae65e,{unitID:_0x413690,objectID:_0x2e715c,actions:_0xe5ff10}=_0x277733,_0x54b7dc=_0x2d5296[_0xc89c4(0x3ef)](_0x3f39e2=>_0x3f39e2[_0xc89c4(0x44f)]===_0x413690&&_0x3f39e2[_0xc89c4(0x1a6)]===_0x2e715c),_0x2767d0=_0xe5ff10[_0xc89c4(0x15a)](_0x3afbef=>_0x54b7dc==null?void 0x0:_0x54b7dc[_0xc89c4(0x458)][_0xc89c4(0x3ef)](_0x34cdea=>_0x34cdea[_0xc89c4(0x3f2)]===_0x3afbef))['filter'](_0x115b5e=>!!_0x115b5e);return{'config':_0x277733,'result':{'actions':_0x2767d0,'error':_0x239e37[_0xc89c4(0x25c)]}};});}})}));}[_0x513b3b(0x1ee)](){const _0x4ea899=_0x513b3b;var _0x563101,_0x24fb21;const _0x54191a=this[_0x4ea899(0x2cf)][_0x4ea899(0x4a0)](Fo),_0x4634ec=this[_0x4ea899(0x2cf)][_0x4ea899(0x4a0)]($);return(_0x24fb21=(_0x563101=_0x4634ec==null?void 0x0:_0x4634ec['authzUrl'])!=null?_0x563101:_0x54191a)!=null?_0x24fb21:Wo;}async[_0x513b3b(0x32c)](_0x3a36c9){const _0x350d1b=_0x513b3b,_0x4f740d=this[_0x350d1b(0x1ee)]()+'/'+_0x3a36c9[_0x350d1b(0x4cc)]+_0x350d1b(0x221);return(await this[_0x350d1b(0x2f5)][_0x350d1b(0x34e)](_0x4f740d,{'body':_0x3a36c9}))[_0x350d1b(0x45f)]['objectID']||'';}async['list'](_0x57cadf){const _0x5f3440=_0x513b3b,_0x3857d5=this[_0x5f3440(0x1ee)]()+_0x5f3440(0x357);return(await this[_0x5f3440(0x2f5)][_0x5f3440(0x34e)](_0x3857d5,{'body':_0x57cadf}))[_0x5f3440(0x45f)][_0x5f3440(0x3b0)];}async[_0x513b3b(0x4b9)](_0x28478d){const _0x3dec56=_0x513b3b,_0x5c4931=this['_getAPIPrefixPath']()+'/'+_0x28478d[_0x3dec56(0x4cc)]+_0x3dec56(0x4b8)+_0x28478d[_0x3dec56(0x1a6)];await this[_0x3dec56(0x2f5)][_0x3dec56(0x29c)](_0x5c4931,{'body':_0x28478d});}async[_0x513b3b(0x1fb)](_0x34f90a){const _0x41c472=_0x513b3b,_0x4e99c5=this['_getAPIPrefixPath']()+'/'+_0x34f90a[_0x41c472(0x4cc)]+_0x41c472(0x4b8)+_0x34f90a[_0x41c472(0x1a6)]+_0x41c472(0x31a);return(await this[_0x41c472(0x2f5)][_0x41c472(0x34e)](_0x4e99c5,{'body':_0x34f90a}))['body'][_0x41c472(0x458)];}async[_0x513b3b(0x3cd)](_0x44f601){const _0x391917=_0x513b3b,_0x2ba8ec=this[_0x391917(0x1ee)]()+_0x391917(0x2d7);return(await this['_HTTPService'][_0x391917(0x34e)](_0x2ba8ec,{'body':{'requests':_0x44f601}}))[_0x391917(0x45f)][_0x391917(0x390)];}async['listRoles'](_0x462f1e){const _0x44b292=_0x513b3b,_0x3a636c=this['_getAPIPrefixPath']()+'/'+_0x462f1e['objectType']+_0x44b292(0x1d0),_0x3a292c=await this[_0x44b292(0x2f5)][_0x44b292(0x34e)](_0x3a636c,{'body':_0x462f1e});return{'roles':_0x3a292c['body'][_0x44b292(0x2ba)],'actions':_0x3a292c[_0x44b292(0x45f)]['actions']};}async[_0x513b3b(0x27b)](_0x50b9bb){const _0x2eb590=_0x513b3b,_0x5ce5a6=this[_0x2eb590(0x1ee)]()+'/collaborator';await this[_0x2eb590(0x2f5)][_0x2eb590(0x248)](_0x5ce5a6,{'params':{'collaboratorID':_0x50b9bb['collaboratorID'],'objectID':_0x50b9bb[_0x2eb590(0x1a6)],'unitID':_0x50b9bb[_0x2eb590(0x44f)]}});}async[_0x513b3b(0x39d)](_0x3ae125){const _0x2bef15=_0x513b3b,_0x1608a8=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x2bef15(0x2f5)][_0x2bef15(0x376)](_0x1608a8,{'body':_0x3ae125});}async[_0x513b3b(0x471)](_0x3133f5){const _0x30923e=_0x513b3b,_0x1871bd=this[_0x30923e(0x1ee)]()+_0x30923e(0x397);await this[_0x30923e(0x2f5)][_0x30923e(0x34e)](_0x1871bd,{'body':_0x3133f5});}async[_0x513b3b(0x2ec)](_0x57fb2b){const _0x32f1da=_0x513b3b,_0x449c7a=this['_getAPIPrefixPath']()+'/collaborator';return(await this['_HTTPService'][_0x32f1da(0x49f)](_0x449c7a,{'params':{'objectID':_0x57fb2b[_0x32f1da(0x1a6)],'unitID':_0x57fb2b[_0x32f1da(0x44f)]}}))['body']['collaborators'];}async[_0x513b3b(0x21d)](_0x2118e8){const _0x983c6f=_0x513b3b,_0x371485=this[_0x983c6f(0x1ee)]()+_0x983c6f(0x397);await this['_HTTPService'][_0x983c6f(0x29c)](_0x371485,{'body':_0x2118e8});}};yt=Vo([ps(0x0,_0x53ed15(_0x444e74)),ps(0x1,_0x53ed15(_0x17c84c))],yt);var Go=Object[_0x513b3b(0x1a5)],Yo=Object['getOwnPropertyDescriptor'],Ko=(_0x5b26a4,_0x8669c2,_0x24304b,_0x36418e)=>{const _0x406517=_0x513b3b;for(var _0x42fb2e=_0x36418e>0x1?void 0x0:_0x36418e?Yo(_0x8669c2,_0x24304b):_0x8669c2,_0x2b033f=_0x5b26a4[_0x406517(0x313)]-0x1,_0x25cead;_0x2b033f>=0x0;_0x2b033f--)(_0x25cead=_0x5b26a4[_0x2b033f])&&(_0x42fb2e=(_0x36418e?_0x25cead(_0x8669c2,_0x24304b,_0x42fb2e):_0x25cead(_0x42fb2e))||_0x42fb2e);return _0x36418e&&_0x42fb2e&&Go(_0x8669c2,_0x24304b,_0x42fb2e),_0x42fb2e;},Xo=(_0x2fda87,_0x53d536)=>(_0x430344,_0x4ee7ee)=>_0x53d536(_0x430344,_0x4ee7ee,_0x2fda87);let Qe=class{constructor(_0x4dddd3){const _0x3a1f7c=_0x513b3b;this[_0x3a1f7c(0x37e)]=_0x4dddd3,this[_0x3a1f7c(0x150)]();}[_0x513b3b(0x150)](){const _0x278729=_0x513b3b;this[_0x278729(0x37e)]['registerHTTPInterceptor']({'interceptor':(_0x121b78,_0x3f71d4)=>{const _0x4c4948=_0x278729,_0x409b18=_0x121b78['headers'],_0xa363ed=_0x5841f9();return _0xa363ed&&_0x409b18[_0x4c4948(0x3ca)](_0x4c4948(0x245),_0xa363ed),_0x3f71d4(_0x121b78);}});}};Qe=Ko([Xo(0x0,_0x53ed15(_0x444e74))],Qe);var qo=Object[_0x513b3b(0x1a5)],Jo=Object[_0x513b3b(0x1be)],zo=(_0x410a49,_0x5dcddb,_0x1c2662,_0x25b44f)=>{const _0xaa8bea=_0x513b3b;for(var _0x5f33d3=_0x25b44f>0x1?void 0x0:_0x25b44f?Jo(_0x5dcddb,_0x1c2662):_0x5dcddb,_0xa9d2aa=_0x410a49[_0xaa8bea(0x313)]-0x1,_0x40d19a;_0xa9d2aa>=0x0;_0xa9d2aa--)(_0x40d19a=_0x410a49[_0xa9d2aa])&&(_0x5f33d3=(_0x25b44f?_0x40d19a(_0x5dcddb,_0x1c2662,_0x5f33d3):_0x40d19a(_0x5f33d3))||_0x5f33d3);return _0x25b44f&&_0x5f33d3&&qo(_0x5dcddb,_0x1c2662,_0x5f33d3),_0x5f33d3;},pt=(_0xf2cf29,_0x1b8722)=>(_0x1f5d71,_0x442f6a)=>_0x1b8722(_0x1f5d71,_0x442f6a,_0xf2cf29);const Zo=[_0x513b3b(0x1a9),_0x513b3b(0x1f5),_0x513b3b(0x469),_0x513b3b(0x3a2),_0x513b3b(0x25a)],Qo=0x5*0x400*0x400,ea=_0x513b3b(0x4b3),ta='/universer-api/stream/file/upload',sa=_0x513b3b(0x3f6),ia=_0x513b3b(0x3aa);let Ut=class{constructor(_0x399864,_0x1f868e,_0x4f2aa0){const _0x28a8f2=_0x513b3b;l(this,_0x28a8f2(0x18e),0x0),l(this,_0x28a8f2(0x383),new _0x210aee()),l(this,_0x28a8f2(0x4cf),this['_change$']),l(this,_0x28a8f2(0x4ad),new Map()),(this[_0x28a8f2(0x37e)]=_0x399864,this[_0x28a8f2(0x2cf)]=_0x1f868e,this[_0x28a8f2(0x4c4)]=_0x4f2aa0);}[_0x513b3b(0x1d6)](_0x136ece){const _0x266285=_0x513b3b;this[_0x266285(0x18e)]=_0x136ece,this[_0x266285(0x383)][_0x266285(0x48d)](_0x136ece);}[_0x513b3b(0x14a)](_0x81c8f0,_0x47913e){const _0x4d6cb3=_0x513b3b;if(_0x47913e===_0x361782[_0x4d6cb3(0x444)]){const _0x4ffa40=new Image();return _0x4ffa40[_0x4d6cb3(0x37b)]=_0x81c8f0,_0x4ffa40;}return this['_imageSourceCache']['get'](_0x81c8f0);}[_0x513b3b(0x2f4)](_0x3d744f,_0x4ad04f,_0x5f196e){const _0x295f36=_0x513b3b;_0x4ad04f===_0x361782[_0x295f36(0x444)]||_0x5f196e==null||this[_0x295f36(0x4ad)][_0x295f36(0x3ca)](_0x3d744f,_0x5f196e);}async[_0x513b3b(0x3d4)](_0x588085){const _0xc14261=_0x513b3b;try{const _0x9d1bdf=this[_0xc14261(0x38c)](this[_0xc14261(0x1e7)](),''+_0x588085),_0x4d364e=(await this[_0xc14261(0x37e)]['get'](_0x9d1bdf))[_0xc14261(0x45f)];if(_0x4d364e[_0xc14261(0x25c)]&&_0x4d364e['error'][_0xc14261(0x1bc)]===xs['OK']){const _0x370545=new URL(_0x4d364e[_0xc14261(0x1ef)],this[_0xc14261(0x434)]())[_0xc14261(0x40b)]();return Promise[_0xc14261(0x166)](_0x370545);}return Promise[_0xc14261(0x255)](_0x4d364e[_0xc14261(0x25c)]);}catch(_0x24f4a8){return Promise[_0xc14261(0x255)](_0x24f4a8);}}async[_0x513b3b(0x316)](_0x2c2b53){const _0x1082ce=_0x513b3b;let _0x1c68ce='';if(!Zo[_0x1082ce(0x32f)](_0x2c2b53[_0x1082ce(0x30b)]))return this[_0x1082ce(0x1ff)](),Promise[_0x1082ce(0x255)](new Error(_0x4458b5['ERROR_IMAGE_TYPE']));if(_0x2c2b53[_0x1082ce(0x302)]>Qo)return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x4458b5[_0x1082ce(0x392)]));try{const _0x270f78=new FormData();_0x270f78[_0x1082ce(0x484)](_0x1082ce(0x1ba),_0x2c2b53);const _0x1bec2d=this[_0x1082ce(0x4c4)][_0x1082ce(0x450)](),_0x3612ee=_0x1bec2d==null?void 0x0:_0x1bec2d[_0x1082ce(0x389)]();if(!_0x3612ee)throw new Error(_0x1082ce(0x427));const _0x2575be=this[_0x1082ce(0x3f3)]()+'?size='+_0x2c2b53[_0x1082ce(0x302)][_0x1082ce(0x40b)]()+_0x1082ce(0x1c7)+ks[_0x1082ce(0x1c3)]+'&assign='+encodeURIComponent(_0x3612ee),_0x1559d2=await(await fetch(_0x2575be,{'method':_0x1082ce(0x1f0),'body':_0x270f78}))[_0x1082ce(0x49d)]();if(typeof _0x1559d2['FileId']!=_0x1082ce(0x490))return this[_0x1082ce(0x1ff)](),Promise['reject'](new Error(_0x4458b5[_0x1082ce(0x16b)]));_0x1c68ce=_0x1559d2[_0x1082ce(0x460)];}catch{return this[_0x1082ce(0x1ff)](),Promise[_0x1082ce(0x255)](new Error(_0x4458b5['ERROR_IMAGE']));}return new Promise((_0x3d07a4,_0x2231a8)=>{const _0x9d758a=_0x1082ce,_0x3a65c0=new FileReader();_0x3a65c0['readAsDataURL'](_0x2c2b53),_0x3a65c0[_0x9d758a(0x488)]=_0x23d6b5=>{const _0x107ed4=_0x9d758a;var _0x6719ed;const _0x3937eb=(_0x6719ed=_0x23d6b5[_0x107ed4(0x4c1)])==null?void 0x0:_0x6719ed[_0x107ed4(0x34a)];if(_0x3937eb==null){this[_0x107ed4(0x1ff)](),_0x2231a8(new Error(_0x4458b5[_0x107ed4(0x16b)]));return;}const _0x5ae809=_0x31cbda[_0x107ed4(0x22e)](0x6);_0x3d07a4({'imageId':_0x5ae809,'imageSourceType':_0x361782[_0x107ed4(0x26c)],'source':_0x1c68ce,'base64Cache':_0x3937eb,'status':_0x4458b5[_0x107ed4(0x220)]}),this['_decreaseWaiting']();};});}[_0x513b3b(0x3f3)](){const _0x57e810=_0x513b3b;var _0x301243,_0x253076;const _0x14a2cb=this[_0x57e810(0x2cf)][_0x57e810(0x4a0)](ea),_0x4c7c64=this['_configService'][_0x57e810(0x4a0)]($);return(_0x253076=(_0x301243=_0x4c7c64==null?void 0x0:_0x4c7c64[_0x57e810(0x495)])!=null?_0x301243:_0x14a2cb)!=null?_0x253076:ta;}[_0x513b3b(0x1e7)](){const _0x5bc287=_0x513b3b;var _0x3acc32,_0x19928b;const _0x3e8eca=this['_configService'][_0x5bc287(0x4a0)](sa),_0x5f09d6=this[_0x5bc287(0x2cf)]['getConfig']($);return(_0x19928b=(_0x3acc32=_0x5f09d6==null?void 0x0:_0x5f09d6[_0x5bc287(0x207)])!=null?_0x3acc32:_0x3e8eca)!=null?_0x19928b:ia;}[_0x513b3b(0x434)](){const _0xc89bed=_0x513b3b;var _0x2ba6fa;const _0x59b896=this[_0xc89bed(0x2cf)][_0xc89bed(0x4a0)]($);return(_0x2ba6fa=_0x59b896==null?void 0x0:_0x59b896[_0xc89bed(0x479)])!=null?_0x2ba6fa:location[_0xc89bed(0x295)];}[_0x513b3b(0x38c)](_0x614712,_0x51cd08){const _0x2acdfb=_0x513b3b;return _0x614712[_0x2acdfb(0x22c)](_0x2acdfb(0x3be),_0x51cd08);}[_0x513b3b(0x1ff)](){const _0x5766e1=_0x513b3b;this[_0x5766e1(0x18e)]-=0x1,this['_change$']['next'](this[_0x5766e1(0x18e)]);}};Ut=zo([pt(0x0,_0x53ed15(_0x444e74)),pt(0x1,_0x17c84c),pt(0x2,_0x53ed15(_0x4c005a))],Ut);var na=Object[_0x513b3b(0x1a5)],ra=Object[_0x513b3b(0x1be)],oa=(_0x478f8f,_0x565c98,_0x40a617,_0x232f52)=>{for(var _0xb1a7a9=_0x232f52>0x1?void 0x0:_0x232f52?ra(_0x565c98,_0x40a617):_0x565c98,_0x2f08b0=_0x478f8f['length']-0x1,_0x29b1f4;_0x2f08b0>=0x0;_0x2f08b0--)(_0x29b1f4=_0x478f8f[_0x2f08b0])&&(_0xb1a7a9=(_0x232f52?_0x29b1f4(_0x565c98,_0x40a617,_0xb1a7a9):_0x29b1f4(_0xb1a7a9))||_0xb1a7a9);return _0x232f52&&_0xb1a7a9&&na(_0x565c98,_0x40a617,_0xb1a7a9),_0xb1a7a9;},ye=(_0x454b6d,_0x351d18)=>(_0x55a72a,_0x2c4906)=>_0x351d18(_0x55a72a,_0x2c4906,_0x454b6d);let et=class extends _0x346899{constructor(_0x3456e3,_0x54af13,_0x1da187,_0x1ca1a4,_0x2c8b5d){const _0x4eccd1=_0x513b3b;super(),this[_0x4eccd1(0x31e)]=_0x3456e3,this[_0x4eccd1(0x4c4)]=_0x54af13,this[_0x4eccd1(0x419)]=_0x1da187,this['_collaborationSessionService']=_0x1ca1a4,this[_0x4eccd1(0x28c)]=_0x2c8b5d,this['_initUnitPermissionChange'](),this[_0x4eccd1(0x35d)]();}['_initCloseConn'](){const _0x3b02a8=_0x513b3b,_0x44f546=async _0x2f8303=>{const _0x26be3a=_0x1736;(await this[_0x26be3a(0x27e)]['requireSession'](_0x2f8303))[_0x26be3a(0x47b)]['pipe'](_0x5bfb9e(_0x2cd79c=>_0x2cd79c[_0x26be3a(0x2db)]===_0x46c90b[_0x26be3a(0x4df)]),_0x453931(this[_0x26be3a(0x2d2)]))[_0x26be3a(0x465)](_0x34aad4=>{const _0x245b63=_0x26be3a,_0x2af495=_0x34aad4,{reason:_0x32fde0}=_0x2af495[_0x245b63(0x14f)];this[_0x245b63(0x31e)][_0x245b63(0x49f)](_0x4608dc)['show']({'type':_0x1f1b3b[_0x245b63(0x1ea)],'content':this[_0x245b63(0x28c)]['t']('collaboration.closeRoom')+'('+_0x32fde0+')'}),this['_permissionService'][_0x245b63(0x2ac)](new _0x40e1c4(_0x2f8303)['id'],!0x1),this['_collaborationSessionService'][_0x245b63(0x36d)](_0x2f8303);});};_0x2f0d88(this[_0x3b02a8(0x4c4)][_0x3b02a8(0x290)](_0x743738['UNIVER_SHEET']),this[_0x3b02a8(0x4c4)][_0x3b02a8(0x290)](_0x743738[_0x3b02a8(0x1a4)]))[_0x3b02a8(0x33b)](_0x50a0b8(_0x1fc3e6=>_0x1fc3e6[_0x3b02a8(0x389)]()),_0x5bfb9e(_0x2870bb=>!_0x6693b5(_0x2870bb)),_0x453931(this[_0x3b02a8(0x2d2)]))['subscribe'](_0x4221e3=>{_0x44f546(_0x4221e3);});}['_initUnitPermissionChange'](){const _0x9b42c8=_0x513b3b,_0x111304=async _0x4cc45b=>{const _0x2ba2e6=_0x1736;(await this['_collaborationSessionService'][_0x2ba2e6(0x23e)](_0x4cc45b))['event$'][_0x2ba2e6(0x33b)](_0x5bfb9e(_0x44bbeb=>_0x44bbeb['eventID']===_0x46c90b[_0x2ba2e6(0x2f3)]),_0x453931(this[_0x2ba2e6(0x2d2)]))[_0x2ba2e6(0x465)](_0x189955=>{const _0x6362df=_0x2ba2e6,_0x49e25a=_0x189955,{objectId:_0x588ad7}=_0x49e25a[_0x6362df(0x14f)],_0x29c4d0=this[_0x6362df(0x31e)][_0x6362df(0x49f)](_0x48dac1);_0x588ad7===_0x4cc45b?_0x29c4d0[_0x6362df(0x4d0)](_0x4cc45b):_0x29c4d0[_0x6362df(0x187)](_0x4cc45b,_0x588ad7);});};_0x2f0d88(this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x743738[_0x9b42c8(0x3b6)]),this[_0x9b42c8(0x4c4)][_0x9b42c8(0x290)](_0x743738['UNIVER_DOC']))[_0x9b42c8(0x33b)](_0x50a0b8(_0x43d443=>_0x43d443[_0x9b42c8(0x389)]()),_0x5bfb9e(_0x151079=>!_0x6693b5(_0x151079)),_0x453931(this[_0x9b42c8(0x2d2)]))[_0x9b42c8(0x465)](_0x31ebf6=>{_0x111304(_0x31ebf6);});}};et=oa([ye(0x0,_0x53ed15(_0x3165b6)),ye(0x1,_0x4c005a),ye(0x2,_0x5f5b14),ye(0x3,_0x53ed15(he)),ye(0x4,_0x53ed15(_0x1deb41))],et);var aa=Object[_0x513b3b(0x1a5)],ca=Object[_0x513b3b(0x1be)],ha=(_0x228f17,_0x4e20d6,_0x3bc3e1,_0x9a64ee)=>{for(var _0x38ad32=_0x9a64ee>0x1?void 0x0:_0x9a64ee?ca(_0x4e20d6,_0x3bc3e1):_0x4e20d6,_0xbedb35=_0x228f17['length']-0x1,_0x28dfe2;_0xbedb35>=0x0;_0xbedb35--)(_0x28dfe2=_0x228f17[_0xbedb35])&&(_0x38ad32=(_0x9a64ee?_0x28dfe2(_0x4e20d6,_0x3bc3e1,_0x38ad32):_0x28dfe2(_0x38ad32))||_0x38ad32);return _0x9a64ee&&_0x38ad32&&aa(_0x4e20d6,_0x3bc3e1,_0x38ad32),_0x38ad32;},vs=(_0x3db671,_0x1adf6e)=>(_0x377b93,_0x3fd3c1)=>_0x1adf6e(_0x377b93,_0x3fd3c1,_0x3db671);let Nt=class{constructor(_0x2170bc,_0xbd6e92){const _0x3c088e=_0x513b3b;this[_0x3c088e(0x2cf)]=_0x2170bc,this[_0x3c088e(0x37e)]=_0xbd6e92;}async[_0x513b3b(0x3e6)](_0x5b530a,_0x1ab101){const _0x2e403e=_0x513b3b;var _0x478f84;const {unitID:_0x169f16,type:_0x32be25,revision:_0x1ccb67=0x0}=_0x1ab101,_0x2b8ee7=this[_0x2e403e(0x14e)]()+'/'+_0x32be25+_0x2e403e(0x20f)+_0x169f16+_0x2e403e(0x1a1)+_0x1ccb67,_0x3c8d73=(await this[_0x2e403e(0x37e)][_0x2e403e(0x49f)](_0x2b8ee7))['body'],_0x97ea94=(_0x478f84=_0x3c8d73[_0x2e403e(0x190)])==null?void 0x0:_0x478f84[_0x2e403e(0x227)];if(_0x97ea94){const _0x71f444=_0x97ea94==null?void 0x0:_0x97ea94[_0x2e403e(0x430)],_0x333554=_0x4e9464[_0x2e403e(0x293)](_0x54fe81(_0x71f444));_0x97ea94[_0x2e403e(0x430)]=_0x333554,Object[_0x2e403e(0x16e)](_0x97ea94[_0x2e403e(0x414)])['forEach'](([,_0x5a6c91])=>{const _0x5b55b7=_0x2e403e,_0x44c3ab=_0x5a6c91[_0x5b55b7(0x430)],_0x1bdd7d=_0x4e9464[_0x5b55b7(0x293)](_0x54fe81(_0x44c3ab));_0x5a6c91[_0x5b55b7(0x430)]=_0x1bdd7d;});}return _0x3c8d73;}async[_0x513b3b(0x340)](_0x3b08e4,_0x36cb4f){const _0x587183=_0x513b3b,{unitID:_0x1dfa4f,type:_0x475bd1,blockID:_0x2f465d}=_0x36cb4f,_0x19fdc7=this[_0x587183(0x494)]()+'/'+_0x475bd1+'/unit/'+_0x1dfa4f+_0x587183(0x229)+_0x2f465d;return(await this[_0x587183(0x37e)]['get'](_0x19fdc7))['body'];}async['getDeserializedSheetBlock'](_0x53e600,_0x2eec71){const _0x4e2878=_0x513b3b,{unitID:_0x265efc,type:_0x3395eb,blockID:_0x38d8c4}=_0x2eec71,_0x48bca3=this[_0x4e2878(0x494)]()+'/block/'+_0x3395eb+_0x4e2878(0x20f)+_0x265efc+_0x4e2878(0x229)+_0x38d8c4;return(await this['_httpService'][_0x4e2878(0x49f)](_0x48bca3))['body'];}async['fetchMissingChangesets'](_0x59701c,_0x4b44a2){const _0x32e621=_0x513b3b,{unitID:_0x163206,type:_0x2487db,from:_0x2a4f5d,to:_0x5edea0}=_0x4b44a2,_0x47198a=this['_getAPIPrefix']()+'/'+_0x2487db+'/unit/'+_0x163206+_0x32e621(0x437)+_0x2a4f5d+_0x32e621(0x232)+_0x5edea0;return(await this[_0x32e621(0x37e)][_0x32e621(0x49f)](_0x47198a))[_0x32e621(0x45f)];}[_0x513b3b(0x14e)](){const _0x174ca2=_0x513b3b;var _0x4e91a6;return(_0x4e91a6=this[_0x174ca2(0x2cf)][_0x174ca2(0x4a0)](Cn))!=null?_0x4e91a6:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0xd90102=_0x513b3b;var _0x4d6496,_0x15835f;const _0x242f8e=this[_0xd90102(0x2cf)]['getConfig'](In),_0x16ead0=this['_configService']['getConfig']($);return(_0x15835f=(_0x4d6496=_0x16ead0==null?void 0x0:_0x16ead0[_0xd90102(0x1c9)])!=null?_0x4d6496:_0x242f8e)!=null?_0x15835f:En;}async[_0x513b3b(0x38f)](_0x2aeeef,_0x111a05){const _0x77d39e=_0x513b3b,_0x1911a1=_0x77d39e(0x3bd)+_0x111a05[_0x77d39e(0x30b)]+'/unit/'+_0x111a05[_0x77d39e(0x44f)]+_0x77d39e(0x4a1);return(await this['_httpService'][_0x77d39e(0x49f)](_0x1911a1,{'params':{'resourceId':JSON[_0x77d39e(0x42b)](_0x111a05['resourceIDs'])}}))['body'];}['saveSnapshot'](){const _0x248059=_0x513b3b;throw new Error(_0x248059(0x16c));}['saveSheetBlock'](){const _0x16875a=_0x513b3b;throw new Error(_0x16875a(0x16c));}[_0x513b3b(0x3f7)](){const _0x126a3d=_0x513b3b;throw new Error(_0x126a3d(0x16c));}['copyFileMeta'](){const _0x1c9232=_0x513b3b;throw new Error(_0x1c9232(0x16c));}[_0x513b3b(0x181)](){const _0x23fb05=_0x513b3b;throw new Error(_0x23fb05(0x16c));}};Nt=ha([vs(0x0,_0x17c84c),vs(0x1,_0x53ed15(_0x444e74))],Nt);var la=Object[_0x513b3b(0x1a5)],_a=Object[_0x513b3b(0x1be)],ua=(_0x1209ea,_0x31830f,_0x14b4b0,_0x2491f3)=>{const _0x40c80d=_0x513b3b;for(var _0x9e7170=_0x2491f3>0x1?void 0x0:_0x2491f3?_a(_0x31830f,_0x14b4b0):_0x31830f,_0x1ca754=_0x1209ea[_0x40c80d(0x313)]-0x1,_0x52418d;_0x1ca754>=0x0;_0x1ca754--)(_0x52418d=_0x1209ea[_0x1ca754])&&(_0x9e7170=(_0x2491f3?_0x52418d(_0x31830f,_0x14b4b0,_0x9e7170):_0x52418d(_0x9e7170))||_0x9e7170);return _0x2491f3&&_0x9e7170&&la(_0x31830f,_0x14b4b0,_0x9e7170),_0x9e7170;},Ue=(_0x24d5bb,_0x46aa3c)=>(_0x5ac91a,_0x4a336a)=>_0x46aa3c(_0x5ac91a,_0x4a336a,_0x24d5bb);let Mt=class extends _0x57dce3{constructor(_0x38d0da,_0x9f0b87,_0x440889,_0x1d321c,_0x2e3d83){const _0x5e91b1=_0x513b3b;super(_0x38d0da,_0x9f0b87,_0x440889),this[_0x5e91b1(0x283)]=_0x1d321c,this['_logService']=_0x2e3d83;}['transformUndoRedo'](_0x3baf8d,_0x5679fb){const _0x543f1e=_0x513b3b,_0x1064e4=this[_0x543f1e(0x29b)](_0x3baf8d);if(_0x1064e4)try{const _0x42377b=this[_0x543f1e(0x32e)](_0x1064e4,_0x5679fb);this[_0x543f1e(0x431)](_0x3baf8d,_0x42377b);}catch(_0x191bde){this['_logService'][_0x543f1e(0x25c)]('[CollaborationUndoRedoService]',_0x191bde),this[_0x543f1e(0x184)](_0x3baf8d);}const _0x1190ab=this[_0x543f1e(0x19b)](_0x3baf8d);if(_0x1190ab)try{const _0x46fced=this[_0x543f1e(0x32e)](_0x1190ab,_0x5679fb);this[_0x543f1e(0x2af)](_0x3baf8d,_0x46fced);}catch(_0x1aa8c5){this[_0x543f1e(0x4e0)][_0x543f1e(0x25c)](_0x1aa8c5),this[_0x543f1e(0x2c0)](_0x3baf8d);}}[_0x513b3b(0x184)](_0x2444a0){const _0x39bf05=_0x513b3b,_0x4ad634=this[_0x39bf05(0x29b)](_0x2444a0);_0x4ad634&&(_0x4ad634[_0x39bf05(0x313)]=0x0,this[_0x39bf05(0x2df)]());}['_clearRedo'](_0x496bb9){const _0x128bd6=_0x513b3b,_0x5b100c=this['_getRedoStack'](_0x496bb9);_0x5b100c&&(_0x5b100c['length']=0x0,this[_0x128bd6(0x2df)]());}[_0x513b3b(0x431)](_0x2c760e,_0x4608c6){const _0x2bb561=_0x513b3b;this['_undoStacks'][_0x2bb561(0x3ca)](_0x2c760e,_0x4608c6),this[_0x2bb561(0x2df)]();}['_substituteRedoStack'](_0x57c48e,_0x3e39a1){const _0x27fe15=_0x513b3b;this[_0x27fe15(0x489)][_0x27fe15(0x3ca)](_0x57c48e,_0x3e39a1),this['_updateStatus']();}['_transformStack'](_0x4f0024,_0x3642c5){const _0x2c3a7e=_0x513b3b,_0x753102=[];let _0x5bfb06=_0x3642c5,_0x56e988=_0x3642c5;for(let _0xc88313=_0x4f0024[_0x2c3a7e(0x313)]-0x1;_0xc88313>=0x0;_0xc88313--){const {unitID:_0x3d28a3,undoMutations:_0x56973a,redoMutations:_0xa82fdf}=_0x4f0024[_0xc88313],_0x1b2553=this[_0x2c3a7e(0x283)][_0x2c3a7e(0x398)](_0x5bfb06,_0x56973a),_0x4a802f=this[_0x2c3a7e(0x283)][_0x2c3a7e(0x398)](_0x56e988,_0xa82fdf);if(_0x578d17(_0x1b2553)||_0x578d17(_0x4a802f)){this[_0x2c3a7e(0x4e0)][_0x2c3a7e(0x25c)](_0x2c3a7e(0x24b),_0x2c3a7e(0x385),_0x1b2553,_0x4a802f);break;}_0x5bfb06=_0x1b2553['c1Prime'],_0x56e988=_0x4a802f[_0x2c3a7e(0x2e0)],_0x753102[_0x2c3a7e(0x152)]({'unitID':_0x3d28a3,'undoMutations':_0x1b2553['m2Prime'],'redoMutations':_0x4a802f[_0x2c3a7e(0x2b9)]});}return _0x753102[_0x2c3a7e(0x2d6)]();}};Mt=ua([Ue(0x0,_0x4c005a),Ue(0x1,_0x8348c),Ue(0x2,_0x4af0dd),Ue(0x3,_0x2e5ae8),Ue(0x4,_0x385fd2)],Mt);class da extends _0x346899{constructor(){const _0x2fbeac=_0x513b3b;super(),l(this,_0x2fbeac(0x42f)),this[_0x2fbeac(0x42f)]=_0x2832fb(window,_0x2fbeac(0x382))[_0x2fbeac(0x33b)](_0x3bacfd(this['dispose$']),_0x1fbf92(0x1),_0x2f02b3(void 0x0));}[_0x513b3b(0x1b9)](_0x1f8694,_0x2746cc,_0x28d5db=!0x1){const _0x5c14bd=_0x513b3b,_0x58f7da=new URL(window['location'][_0x5c14bd(0x429)]);_0x58f7da[_0x5c14bd(0x1ed)]['set'](_0x1f8694,_0x2746cc),_0x28d5db?window[_0x5c14bd(0x16a)][_0x5c14bd(0x279)]('','',_0x58f7da[_0x5c14bd(0x40b)]()):window[_0x5c14bd(0x16a)][_0x5c14bd(0x1d8)]('','',_0x58f7da[_0x5c14bd(0x40b)]());}[_0x513b3b(0x3c2)](_0x51fc29,_0x5f54b9=!0x1){const _0x533295=_0x513b3b,_0x205318=new URL(window[_0x533295(0x3fd)][_0x533295(0x429)]);_0x205318[_0x533295(0x1ed)][_0x533295(0x248)](_0x51fc29),_0x5f54b9?window['history'][_0x533295(0x279)]('','',_0x205318[_0x533295(0x40b)]()):window[_0x533295(0x16a)]['pushState']('','',_0x205318[_0x533295(0x40b)]());}['getParam'](_0x3d4998){const _0x1aad92=_0x513b3b;var _0x2ecad3;return(_0x2ecad3=new URL(window[_0x1aad92(0x3fd)][_0x1aad92(0x429)])[_0x1aad92(0x1ed)][_0x1aad92(0x49f)](_0x3d4998))!=null?_0x2ecad3:void 0x0;}}var Qs=Object[_0x513b3b(0x1a5)],ma=Object[_0x513b3b(0x1be)],fa=(_0x3da3be,_0x460383,_0x1ce3ef)=>_0x460383 in _0x3da3be?Qs(_0x3da3be,_0x460383,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ce3ef}):_0x3da3be[_0x460383]=_0x1ce3ef,ga=(_0x155aca,_0x83935f,_0x55f0db,_0x5f5881)=>{const _0x29048b=_0x513b3b;for(var _0x5afd73=_0x5f5881>0x1?void 0x0:_0x5f5881?ma(_0x83935f,_0x55f0db):_0x83935f,_0x261630=_0x155aca[_0x29048b(0x313)]-0x1,_0x293c6b;_0x261630>=0x0;_0x261630--)(_0x293c6b=_0x155aca[_0x261630])&&(_0x5afd73=(_0x5f5881?_0x293c6b(_0x83935f,_0x55f0db,_0x5afd73):_0x293c6b(_0x5afd73))||_0x5afd73);return _0x5f5881&&_0x5afd73&&Qs(_0x83935f,_0x55f0db,_0x5afd73),_0x5afd73;},Ve=(_0x5ba09e,_0x29f51b)=>(_0x30fedd,_0xa96f0b)=>_0x29f51b(_0x30fedd,_0xa96f0b,_0x5ba09e),Sa=(_0x251edf,_0x41a824,_0x4f9793)=>fa(_0x251edf,_0x41a824+'',_0x4f9793);const pa=_0x513b3b(0x18f);let At=class extends _0x2c2bef{constructor(_0x1badd4=jn,_0x4bde2e,_0x1867f6,_0x40544c,_0x42b33b){const _0x114daa=_0x513b3b;super(),this['_config']=_0x1badd4,this['_logService']=_0x4bde2e,this[_0x114daa(0x3b9)]=_0x1867f6,this[_0x114daa(0x31e)]=_0x40544c,this[_0x114daa(0x2cf)]=_0x42b33b;const {..._0x51bfa1}=this['_config'];this['_configService'][_0x114daa(0x339)]($,_0x51bfa1);}[_0x513b3b(0x307)](){const _0x565809=_0x513b3b;this[_0x565809(0x1bb)](),_0x578643(this[_0x565809(0x31e)],[[ve],[Je],[et]]);}[_0x513b3b(0x176)](){const _0x12ad7b=_0x513b3b;_0x578643(this[_0x12ad7b(0x31e)],[[ze]]);}['onRendered'](){const _0x216f60=_0x513b3b;this[_0x216f60(0x2d0)]();}[_0x513b3b(0x1bb)](){const _0x1a141e=_0x513b3b;var _0x4f83ea,_0x40f96f,_0x25e07b,_0xf617d0;this[_0x1a141e(0x31e)]['has'](_0x3e29a6)&&this[_0x1a141e(0x4e0)]['error']('[UniverCollaborationClientPlugin]',_0x1a141e(0x186));let _0x3c4c9a=[[_0x3e29a6,{'useClass':Mt}],[he],[Gt],[_0x444e74],[Zs,{'useClass':da}],[ce],[w],[_0x40597f],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[Vs],[et],[Bs,{'useClass':(_0x40f96f=(_0x4f83ea=this[_0x1a141e(0x3a3)])==null?void 0x0:_0x4f83ea['socketService'])!=null?_0x40f96f:Ct}],[_0x34d3c8,{'useClass':_0x1f0359}],[_0x2c1fe9,{'useClass':Nt}],[_0x388a42,{'useClass':yt}],[_0xb13959,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0x25e07b=this['_config'])!=null&&_0x25e07b['enableSingleActiveInstanceLock']&&_0x3c4c9a[_0x1a141e(0x152)]([tt,{'useClass':Sr}]),_0x3c4c9a=_0x1432ec(_0x3c4c9a,(_0xf617d0=this[_0x1a141e(0x3a3)])==null?void 0x0:_0xf617d0[_0x1a141e(0x325)]),_0x3c4c9a[_0x1a141e(0x301)](_0x1ca430=>this[_0x1a141e(0x31e)][_0x1a141e(0x2ab)](_0x1ca430)),this[_0x1a141e(0x4a9)]();}[_0x513b3b(0x2d0)](){const _0x444cb9=_0x513b3b;this[_0x444cb9(0x233)](this['_renderManagerService'][_0x444cb9(0x476)](_0x743738[_0x444cb9(0x1a4)],[wt])),this[_0x444cb9(0x233)](this['_renderManagerService'][_0x444cb9(0x476)](_0x743738[_0x444cb9(0x3b6)],[Pt]));}[_0x513b3b(0x4a9)](){const _0x26ec3d=_0x513b3b;var _0x21c64a,_0x56c9c8;this[_0x26ec3d(0x31e)]['get'](_0x444e74)[_0x26ec3d(0x21e)]({'priority':0x14,'interceptor':_0x6ca340({'maxParallel':0x6})}),this[_0x26ec3d(0x31e)][_0x26ec3d(0x49f)](Qe),(_0x21c64a=this[_0x26ec3d(0x3a3)])!=null&&_0x21c64a[_0x26ec3d(0x172)]||this['_injector'][_0x26ec3d(0x49f)](w)[_0x26ec3d(0x171)](),(_0x56c9c8=this[_0x26ec3d(0x3a3)])!=null&&_0x56c9c8[_0x26ec3d(0x482)]&&this[_0x26ec3d(0x31e)]['get'](Ze),this[_0x26ec3d(0x31e)][_0x26ec3d(0x49f)](Le),this[_0x26ec3d(0x31e)]['has'](Me)&&this[_0x26ec3d(0x31e)][_0x26ec3d(0x49f)](Me);}};Sa(At,'pluginName',pa),At=ga([_0x38b61b(_0x5498e7),Ve(0x1,_0x385fd2),Ve(0x2,_0xdb11a1),Ve(0x3,_0x53ed15(_0x3165b6)),Ve(0x4,_0x17c84c)],At);export{Fo as AUTHZ_URL_KEY,yt as AuthzIoHttpService,Mn as COLLAB_SUBMIT_CHANGESET_URL_KEY,Tn as COLLAB_WEB_SOCKET_URL_KEY,Le as CollaborationController,qe as CollaborationEntity,bt as CollaborationSession,he as CollaborationSessionService,Ct as CollaborationSocketService,P as CollaborationStatus,To as CollaborationStatusDisplay,Vs as CommentService,Je as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,On as HEARTBEAT_INTERVAL_KEY,js as HEARTBEAT_TIMEOUT_KEY,Bs as ICollaborationSocketService,Zs as IURLService,Ut as ImageIoService,Un as LOCAL_CACHE_INTERVAL_KEY,Ln as LOGIN_URL_KEY,w as LocalCacheService,Pn as RETRY_CONNECTING_MAX_COUNT_KEY,Ha as SEND_CHANGESET_TIMEOUT_KEY,In as SNAPSHOT_SERVER_URL_KEY,Cn as SNAPSHOT_URL_KEY,Y as SessionStatus,no as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,da as WebURLService,Hn as deserializeToCombResponse,xn as serializeCombRequest};
|