@univerjs-pro/collaboration-client-ui 0.12.1 → 0.12.2-experimental.20251129-0fa20cd

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.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +18 -18
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x10cc18=_0x58c2;(function(_0x1b9ca3,_0x4cf5b1){const _0x461f6f=_0x58c2,_0x5953cf=_0x1b9ca3();while(!![]){try{const _0x3c3633=parseInt(_0x461f6f(0x319))/0x1*(parseInt(_0x461f6f(0x329))/0x2)+parseInt(_0x461f6f(0x236))/0x3+-parseInt(_0x461f6f(0x224))/0x4*(-parseInt(_0x461f6f(0x166))/0x5)+-parseInt(_0x461f6f(0x247))/0x6*(parseInt(_0x461f6f(0x129))/0x7)+parseInt(_0x461f6f(0x235))/0x8*(-parseInt(_0x461f6f(0x15a))/0x9)+parseInt(_0x461f6f(0x19b))/0xa+-parseInt(_0x461f6f(0x266))/0xb*(-parseInt(_0x461f6f(0x314))/0xc);if(_0x3c3633===_0x4cf5b1)break;else _0x5953cf['push'](_0x5953cf['shift']());}catch(_0x316892){_0x5953cf['push'](_0x5953cf['shift']());}}}(_0x270e,0x97fac));var Yt=Object[_0x10cc18(0x1e4)],Wt=(_0x3cb592,_0x8679c5,_0x23aa55)=>_0x8679c5 in _0x3cb592?Yt(_0x3cb592,_0x8679c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23aa55}):_0x3cb592[_0x8679c5]=_0x23aa55,_=(_0x2af420,_0x2e0d11,_0x43dedb)=>Wt(_0x2af420,typeof _0x2e0d11!=_0x10cc18(0x2de)?_0x2e0d11+'':_0x2e0d11,_0x43dedb);import{jsx as _0xccee15,jsxs as _0xc66364}from'react/jsx-runtime';import{CollaborationStatus as _0x3d84ba,CollaborationSessionService as _0x1abc06,CollaborationController as _0x69ed9c,DataLoaderService as _0x382568,MemberService as _0xf95f76,SessionStatus as _0x756bff,ILocalCacheService as _0x3a4f5a,CollaborationUIEventService as _0x32b243,CollaborationUIEventId as _0x5e0b6b,DocCollaborationEntity as _0x59b116,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x209e63,getLocalCacheKey as _0x59f688,LOCAL_CACHE_INTERVAL as _0x4a9fea,LOCAL_CACHE_INTERVAL_KEY as _0x24dd1f,UniverCollaborationClientPlugin as _0x4c184a,CollaborationSocketService as _0x4e6c96,DEFAULT_WS_SESSION_TICKET_URL as _0x45c098,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x2d33ca,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x550c3a,UnitStatus as _0x4078f0}from'@univerjs-pro/collaboration-client';import{LocaleService as _0xefd7ba,IUniverInstanceService as _0x631d26,Inject as _0x2c9f2f,Injector as _0x3955fb,Disposable as _0x3e748e,createIdentifier as _0x5d6f8c,ILogService as _0x1368e3,ICommandService as _0x526fee,Optional as _0x2f165a,RxDisposable as _0x460db8,Workbook as _0x18daa7,DOC_RANGE_TYPE as _0x22acc,debounce as _0x51b589,Rectangle as _0x40c7c0,DisposableCollection as _0x5a6462,toDisposable as _0x555679,UniverInstanceType as _0x5045e8,generateRandomId as _0x5236ab,COLORS as _0x10fc5a,ColorKit as _0x1a8ee3,ThemeService as _0x31d312,fromEventSubject as _0x2b51fa,Tools as _0x4984ae,CommandType as _0x3e471d,IConfigService as _0x56b98d,CanceledError as _0x20efe7,isFormulaString as _0x5b53ca,isFormulaId as _0x3e9eba,ILocalStorageService as _0x2ba981,DependentOn as _0x5aa65c,Plugin as _0x5ba41c,merge as _0x5c3498,registerDependencies as _0x4b4f71,mergeOverrideWithDependencies as _0x436173,touchDependencies as _0x569f6e}from'@univerjs/core';import{useObservable as _0x3a1844,useDependency as _0x22da28,IUIPartsService as _0x25683e,BuiltInUIPart as _0x4ec0d2,connectInjector as _0x3832e5,IBeforeCloseService as _0x4d68ed,IMessageService as _0x41d342,INotificationService as _0x3c2d52}from'@univerjs/ui';import{BehaviorSubject as _0x1ced39,switchMap as _0x5e120f,of as _0x281440,takeUntil as _0x55bd62,debounceTime as _0x3be16c,Subject as _0x495c27,filter as _0x12a7d2,merge as _0x153e90,combineLatest as _0x5c05c1,fromEvent as _0x5171f8,shareReplay as _0x1b1b8c,mapTo as _0x5a5b3d,distinctUntilChanged as _0x34b2d2}from'rxjs';import{Tooltip as _0x556043,clsx as _0x25975e,MessageType as _0x22c147}from'@univerjs/design';import{useRef as _0x13a3f9,createElement as _0x2bc3c8,forwardRef as _0x21f1d1,useCallback as _0x3ffd3d}from'react';import{IRemoteInstanceService as _0x2cc7be}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x3e1701,RefRangeService as _0x4afbe7,SetSelectionsOperation as _0x3c2d3f,SheetsSelectionsService as _0xc9e973,EffectRefRangId as _0xe50d17,handleIRemoveRow as _0x11bbdd,handleIRemoveCol as _0x27e994,handleMoveRange as _0x379eb2,handleInsertRow as _0x524712,handleInsertRangeMoveRight as _0x1916d7,handleInsertRangeMoveDown as _0x3177b4,handleInsertCol as _0x3b58f5,handleDeleteRangeMoveUp as _0x3a245f,handleDeleteRangeMoveLeft as _0xc34664,runRefRangeMutations as _0x178978}from'@univerjs/sheets';import{Shape as _0x28bace,Rect as _0x2dfad6,getColor as _0x44dbc,RegularPolygon as _0x2a7a95,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x4c9c8a,Vector2 as _0x4b7404,SHEET_VIEWPORT_KEY as _0x32c43e,IRenderManagerService as _0x20cff4}from'@univerjs/engine-render';import{HTTPService as _0x47ffcb,ISocketService as _0x2befe2,WebSocketService as _0x21a377}from'@univerjs/network';import{IDocClipboardService as _0x401c42,NodePositionConvertToCursor as _0x3f6a22,NodePositionConvertToRectRange as _0x4973b1,TEXT_RANGE_LAYER_INDEX as _0x531506,SetDocZoomRatioOperation as _0x198811,DocIMEInputManagerService as _0x10cfe8,DocStateChangeManagerService as _0x58cfb8}from'@univerjs/docs-ui';import{IImageIoService as _0x3ef8ac}from'@univerjs/drawing';function _0x270e(){const _0x15d413=['hovered','_collabCursorState$','push','OnLineIcon','transform','_renderManagerService','result','ENTITLE_CAN_NOT_BUY_LOWER_OTP','[Unhandled\x20Rejection]:\x20','...','getTypeOfUnitDisposed$','MOBILE_VERIFY_CODE_MISMATCH','UNIVER_SHEET','_status$','_unitOnClients','history','href','resize','sheetID','shift','addHandlerCallback','_toggleOnline','RemoveColCommandId','engine','_uiPartsService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','translate(.97)','mutations','_initCommandExecutedListener','_entities','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_heartbeatTimer','size','filename','onRendered','transformByState','dispose$','clearTimeout','save','YUUMI_ASYNCIO_CANCELLED','_color','black','limitInfo','InsertColCommandId','fillStyle','body','none','on-line-icon_clip0_910_349','_scheduleClearOtherTimer','subUnitId','getSheetBySheetId','m2Prime','_roomMembers$','ALREADY_EXISTS','LICENSE_MAX_UNITS_EXCEEDED','_initUserListener','_registerRenderDependencies','4HZDXFn','init','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','exhaustSavingTask','MUTATION','setActiveRange','getViewport','_initEvent','setStateCache','location','1em','_updateLocalCursor','actions','includes','_handleHover','dispose','addObjects','405616igWxeR','567468NDgWAp','moveTo','UNIVER_DOC','set','path','find','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_startSheetCollabCursor','REDEMPTION_USER_NOT_ELIGIBLE','code','min','fillText','subunit','REDEMPTION_CODE_HAS_BEEN_CREATED','[CollaborationDataLoaderController]','[RemoteUniscriptService]:\x20no\x20focused\x20unit','labelPosition','5616xnmQJA','now','unitID','ticket','UPDATE_CURSOR','REDEMPTION_INVALID_CODE','_getFormulaLimitStatus','getActiveSheet','_initResize','_initWindowErrorListener','removeEventListener','_docStateChangeManagerService','getConfig','_shapes','onPointerMove$','beforeCommandExecuted','deepClone','getCollabEntity$','_document','getUnitId','stack','_clearPolling','defs','_init','_hovered','transformMutation','_draw','getMemberID','_beforeCloseService','delete','currentTheme$','550737xzoXGk','LOGIN_FAILED','searchParams','blue.400','JOIN_ROOM_FAILED','OTHER_CLIENTS_EDITING','key','_sheetSkeletonManagerService','onPointerLeave$','setTimeout','collabStatus.offline','_revisionService','_cursorShapes','runOnServer','_range','ENTITLE_CHAT_LIMIT_EXCEED','_httpService','eventID','_name','_messageService','name','REDEMPTION_USER_REDEEM_TIMES_EXCEED','PY_RUNTIME_SCRIPT_ERROR','pluginName','Unknown\x20user','getValue','startColumn','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','registerRenderModule','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','OFFLINE','drawWith','loadOfflineData','_onCursorDelete','subscribe','_drawAnchor','formula.calculation.waiting','hide','transformMutationsWithChangeset','_transformUndoRedoStack','_onCursorUpdate','executionId','_taskIds','idSuffix','_collaborationSessionService','VIEW_MAIN','tag','getUnitStatus$','endRow','pipe','UniverIcon','top','USER_NOT_FOUND','PENDING','_commandService','url(#on-line-icon_clip0_910_349)','transformSelections','evenodd','_hasFormulaInDirtyRanges','collab-text-anchor-','isActive','setAlpha','sessionTicket','_hover','entries','_memberService','ENTITLE_NEED_BILLING_ADDRESS','_docTransformSelectionsService','m1Prime','collaboration.closeRoom','/run/','SNAPSHOT_HAS_BEEN_REMOVED','/universer-api/license/formula/limit/start','FETCH_MISS','getColorFromTheme','WECHAT_HAS_BEEN_BOUND','/universer-api/license/formula/limit/status','_labelPosition','LICENSE_DISTRO_REJECTED','xlink:href','_online','ENSURE_SNAPSHOT_EXECUTION','PERMISSION_DENIED','YUUMI_RATE_OVER_LIMIT','RemoveRowCommandId','cursorInfo$','message','has','disposeUnit','http://www.w3.org/2000/svg','column','_currentUsage','_initCommandInterceptor','univer-mr-2\x20univer-flex\x20univer-text-xl','subscribeEvent','_docClipboardService','currentSkeleton$','getMergeData','Warning','formula.calculation.unable','children','random','YUUMI_AI_RUN_FAILED','_applyCommand','_backgroundColor','_updateURLWithCurrentState','newValue','isArray','_handleEvent','use','trim','_initDependencies','/universer-api/frontend/logs','_updateCollabCursors','PAYMENT_CHANNEL_NOT_SUPPORT','mask','DeleteRangeMoveUpCommandId','measureText','univer-flex\x20univer-items-center','?taskId=','symbol','onPointerEnter$','TEXT','getVpScrollXYInfoByPosToVp','memberID','asObservable','_handleLeaveEvent','LICENSE_IMPORT_SIZE_EXCEEDED','_docTransformIMECacheService','YUUMI_NO_CUBOID_FOR_QUESTION','requireSession','_cursors','source','YUUMI_URL_COL_OUT_OF_RANGE','docStateChange$','replace','_localStorageService','from','_saveCache','parse','INVALID_ARGUMENT','TOO_MANY_REQUESTS','font','getTypeOfUnitAdded$','div','_monkeyPatchLogService','_startDocCollabCursor','_cachedData','InsertRangeMoveDownCommandId','map','M0\x200H16V16H0z','unsubscribe','_cursor','setInterval','white','_univerInstanceService','displayName','_localeService','setConfig','clipPath','disableLocalCache','redoState','_maxFormulaLimit','complete','FromArray','getUnit','ONLINE','getCurrentUnitForType','getCellPositionByOffset','collabStatus.conflict','onMouseMove','_memberID','_lastPointer','runId','204kgQtTX','range','toRgbString','HEADER_MENU','collabStatus.syncing','627xEuMYm','lineTo','_send','_startCalculationLimit','transformIMECache','APPLY_REJECT','unhandledrejection','width','APPLY_REVISION_CONFILICT','currentColor','REDEMPTION_CODE_NOT_STARTED','transformRemoteChangeset','addEventListener','yellow.400','getSheetId','_cursorInfo$','578uTxvgC','YUUMI_SUBSCRIPTION_NOT_FOUND','#FFF','status$','_config','restore','_handleJoinEvent','_assignedColors','_collaborationUIEventService','addClipboardHook','_refreshCollabCursors','editingUnit','show','cursorInfo','roomMembers$','_textBubble','_syncEditingCollabCursorService','enableFrontendLog','closePath','SUBMIT_CHANGESET_TIMEOUT','_scheduleHeartbeat','_injector','fillRule','round','CHANGESET_REVISION_CONFILICT','stageInfo','off-line-icon_clip0_910_343','_collabSessionService','startRow','getUndoRedoMutationParamsCache','length','flatMap','_toggleOffline','session.connection-failed','REDEMPTION_CODE_INACTIVE','executeCommand','add','CONNECTOR_DATA_TOO_LARGE','ENTITLE_REPORT_LIMIT_EXCEED','onLocalMutation','imageSourceType','with','getRenderById','doc.mutation.rich-text-editing','selection','backgroundColor','undoState','NOT_COLLAB','_docSkeletonManagerService','_releaseCalculationLimit','_removeCollabCursors','assign','_transformHistoryAndStateStack','getRangePointData','_createSocketURL','_pollingInterval','_saveTaskMap','maxFormulaLimit','_initUnhandledRejectionListener','_removeClearOtherTimer','text','_disabled','getSkeleton','collabStatus.synced','split','_showGuardMessage','ranges','APPLY_PERMISSION_DENIED','_themeService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','permission.content','setShapeProps','_initEntityListener','on-line-icon','getCurrentRevOfUnit','skeleton','get','_localCacheService','7427NdRSZD','INTERNAL_ERROR','string','forEach','registerComponent','collab-text-range-','Success','fill','colorChannel1','INVALID_INVITE_CODE','_drawRectRange','colno','_getSaveTimeout','INVITE_CODE_ALREADY_BOUND','socket$','_initStatusListener','off-line-icon','debug','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','getUniverSheetInstance','_getAnchorBounding','transformStateCache','assignAColorForMemberID','_clearOtherTimers','_setupSubUnitSync','current','NO_OTHER_CLIENTS_EDITING','activeSheet$','_docTransformStateCacheService','REDEMPTION_CODE_FULLY_REDEEMED','svg','session.will-retry','_entityInit$','parseInt','UNRECOGNIZED','addObject','_uploadLog','collab-rect-range-','url(#$1','reconnect','params','YUUMI_TABLE_NOT_FOUND_IN_UNIT','Error','createInstance','_scene','urlChange$','getAncestorScale','APPLY_NON_SEQUENTIAL_REVISION','selections','45PQlhKh','send','DeleteRangeMoveLeftCommandId','override','replaceState','endColumn','USER_NOT_INVITED_CODE','storage','application/json','registerBeforeClose','onCommandExecuted','invokeId','1185875zrVCWH','getFocusedUnit','USERS_LEAVE','origin','unitId','arc','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_transformService','_eventUnsubscribe','stringify','onStarting','setParam','YUUMI_CONNECTOR_URL_NOT_FOUND','contains','UNAUTHENTICATED','join','_drawTextRange','_colorAssignService','popstate','ENTITLE_DUP_SUBSCRIPTION','height','SOCKET_FAILED_RETRY','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_session','_checkCalculationAvailable','_transformPreviousActiveRange','Failed','url(#off-line-icon_clip0_910_343)','_selfUnitIDs','getItem','_onRefRangeChange','getStateCache','totalFormulasToCalculate','_context','rgba(255,\x20255,\x20255,\x200.01)','getCollabCursors$','sheetId','_handleHeartbeatEvent','AWAITING_WITH_PENDING','_dataLoaderService','_imageIoService','_hideTimer','_logService','collabStatus.fetchMiss','_scheduleSaving','_id','collaboration.single-unit.warning','_refRangeService','COMPLETION_FINISHED','_ensureSubject','USER_IS_ANONYMOUS','syncEditingCollabCursor','YUUMI_ALL_TABLES_IS_INVALID','4104410cyGPRQ','_instanceService','_updateSubUnitFromURLParams','getParam','findNodePositionByCharIndex','LICENSE_EXPORT_SIZE_EXCEEDED','_colorIndex','textRanges','_urlService','_docSyncEditingCollabCursorService','setItem','UNDEFINED','_getSessionTicket','SNAPSHOT_INVALID_SNAPSHOT','sessionStatus$','red.300','_setFormulaLimitStatus','error','clearInterval','CONFLICT','then','OTHER_CLIENT_EDITING','uni.network.url-service','purple.300','LOGIN_TOKEN_PROCESSING_FAILED','setUndoRedoMutationParamsCache','unshift','START_CALCULATION','_anchor','_anchorDot','some','NOT_FOUND','INVITE_CODE_HAS_BEEN_UES','disposeWithMe','triggerDblclick','MOBILE_HAS_BEEN_BOUND','AUTHORIZE_CODE_ILLEGAL','MoveRangeCommandId','catch','collab-client.tooltip.reconnect','RECT','getOffsetConfig','event$','collabCursorState$','bottom','_unitStatus','_collaborationController','_configService','DATA_SOURCE_TOO_LARGE','toString','collaboration-client-ui.config','type','EMAIL_HAS_BEEN_BOUND','formula.calculation.started','attrs','_collabCursorController','getCurrent','_setupBeforeClosingHandler','EMAIL_VERIFY_CODE_MISMATCH','_checkAndWaitForCalculationPermission','getActiveRange','getDocRanges','0\x200\x2016\x2016','lineno','_lastResponseTimestamp','currentUsage','ERROR_AGAIN','registerRefRange','saveTaskMap','data','next','_render','post','defineProperty','color','SUCCESS','isEditing','collabStatus.notCollab','getUnhiddenWorksheets','getOwnPropertyDescriptor'];_0x270e=function(){return _0x15d413;};return _0x270e();}import{ITransformService as _0x447d81,CollaborationEvent as _0x56f5f5,isTransformMutationFailure as _0x3ff0c5,isTransformMutationsWithChangesetSuccess as _0x4e8f7d,RevisionService as _0x6cec3d,ISnapshotServerService as _0x4a0d66}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x359fd6,RichTextEditingMutation as _0x15c2de,DocSelectionManagerService as _0x196312,DocSkeletonManagerService as _0x9d459b}from'@univerjs/docs';import{deserializeRangeWithSheet as _0xaa972c,serializeRangeWithSheet as _0x5ebf47,FormulaExecuteStageType as _0x915ac4,FormulaExecutedStateType as _0x4723a6,SetFormulaCalculationStartMutation as _0x19bce6,SetFormulaCalculationNotificationMutation as _0x391c35}from'@univerjs/engine-formula';import{map as _0x47b623,filter as _0x3cb932,throttleTime as _0x5756a9,takeUntil as _0x2ea52d,switchMap as _0x33a13a}from'rxjs/operators';import{SheetSkeletonManagerService as _0x2cb62f,getCoordByCell as _0x2094e3,getSheetObject as _0x32f0c0}from'@univerjs/sheets-ui';function Ge({ref:_0x1032b1,..._0x1693ed}){const _0x16917e=_0x10cc18,{icon:_0x470a1d,id:_0x55b0fb,className:_0x5634a5,extend:_0x57258d,..._0xff030d}=_0x1693ed,_0xdc16de=('univerjs-icon\x20univerjs-icon-'+_0x55b0fb+'\x20'+(_0x5634a5||''))[_0x16917e(0x2d4)](),_0x29fe6a=_0x13a3f9('_'+Ei());return At(_0x470a1d,''+_0x55b0fb,{'defIds':_0x470a1d['defIds'],'idSuffix':_0x29fe6a[_0x16917e(0x142)]},{'ref':_0x1032b1,'className':_0xdc16de,..._0xff030d},_0x57258d);}function At(_0x1a7b41,_0x5b6a2d,_0x28ca18,_0x381858,_0x234f54){const _0x1f4b57=_0x10cc18;return _0x2bc3c8(_0x1a7b41[_0x1f4b57(0x294)],{'key':_0x5b6a2d,...gi(_0x1a7b41,_0x28ca18,_0x234f54),..._0x381858},(vi(_0x1a7b41,_0x28ca18)[_0x1f4b57(0x2ca)]||[])['map']((_0x31805a,_0x229cc7)=>At(_0x31805a,_0x5b6a2d+'-'+_0x1a7b41[_0x1f4b57(0x294)]+'-'+_0x229cc7,_0x28ca18,void 0x0,_0x234f54)));}function gi(_0x39d7f2,_0xa8b9d5,_0x37679f){const _0x43dd0e=_0x10cc18,_0x535db8={..._0x39d7f2[_0x43dd0e(0x1d1)]};_0x37679f!=null&&_0x37679f[_0x43dd0e(0x131)]&&_0x535db8[_0x43dd0e(0x130)]===_0x43dd0e(0x131)&&(_0x535db8[_0x43dd0e(0x130)]=_0x37679f[_0x43dd0e(0x131)]),_0x39d7f2['tag']===_0x43dd0e(0x2d9)&&_0x535db8['id']&&(_0x535db8['id']=_0x535db8['id']+_0xa8b9d5[_0x43dd0e(0x291)]),Object[_0x43dd0e(0x2a6)](_0x535db8)[_0x43dd0e(0x12c)](([_0x1f9a06,_0x8b6b6e])=>{const _0x68dbf3=_0x43dd0e;_0x1f9a06==='mask'&&typeof _0x8b6b6e==_0x68dbf3(0x12b)&&(_0x535db8[_0x1f9a06]=_0x8b6b6e[_0x68dbf3(0x2ed)](/url\(#(.*)\)/,'url(#$1'+_0xa8b9d5['idSuffix']+')'));});const {defIds:_0x470cfc}=_0xa8b9d5;return!_0x470cfc||_0x470cfc[_0x43dd0e(0xf9)]===0x0||(_0x39d7f2[_0x43dd0e(0x294)]===_0x43dd0e(0x2d3)&&_0x535db8['xlink:href']&&(_0x535db8[_0x43dd0e(0x2b5)]=_0x535db8[_0x43dd0e(0x2b5)]+_0xa8b9d5['idSuffix']),Object[_0x43dd0e(0x2a6)](_0x535db8)[_0x43dd0e(0x12c)](([_0x532c0e,_0x2a7f81])=>{const _0x4d13f6=_0x43dd0e;typeof _0x2a7f81=='string'&&(_0x535db8[_0x532c0e]=_0x2a7f81['replace'](/url\(#(.*)\)/,_0x4d13f6(0x14f)+_0xa8b9d5[_0x4d13f6(0x291)]+')'));})),_0x535db8;}function vi(_0x311d5e,_0x1fe83c){const _0x2b0b30=_0x10cc18;var _0x19b777;const {defIds:_0x23b623}=_0x1fe83c;return!_0x23b623||_0x23b623[_0x2b0b30(0xf9)]===0x0?_0x311d5e:_0x311d5e['tag']===_0x2b0b30(0x25d)&&((_0x19b777=_0x311d5e['children'])!=null&&_0x19b777[_0x2b0b30(0xf9)])?{..._0x311d5e,'children':_0x311d5e[_0x2b0b30(0x2ca)][_0x2b0b30(0x2fb)](_0x27cb71=>typeof _0x27cb71[_0x2b0b30(0x1d1)]['id']==_0x2b0b30(0x12b)&&_0x23b623&&_0x23b623[_0x2b0b30(0x231)](_0x27cb71[_0x2b0b30(0x1d1)]['id'])?{..._0x27cb71,'attrs':{..._0x27cb71[_0x2b0b30(0x1d1)],'id':_0x27cb71[_0x2b0b30(0x1d1)]['id']+_0x1fe83c['idSuffix']}}:_0x27cb71)}:_0x311d5e;}function Ei(){const _0x47e230=_0x10cc18;return Math[_0x47e230(0x2cb)]()[_0x47e230(0x1cc)](0x24)['substring'](0x2,0x8);}Ge['displayName']=_0x10cc18(0x298);const pi={'tag':_0x10cc18(0x147),'attrs':{'xmlns':_0x10cc18(0x2bf),'fill':_0x10cc18(0x219),'viewBox':_0x10cc18(0x1d9),'width':_0x10cc18(0x22e),'height':_0x10cc18(0x22e)},'children':[{'tag':'g','attrs':{'clipPath':_0x10cc18(0x181)},'children':[{'tag':_0x10cc18(0x23a),'attrs':{'stroke':_0x10cc18(0x322),'d':_0x10cc18(0x281),'strokeLinecap':_0x10cc18(0xf2),'strokeLinejoin':_0x10cc18(0xf2),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x10cc18(0x305),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x10cc18(0x23a),'attrs':{'fill':_0x10cc18(0x300),'d':_0x10cc18(0x2fc)}}]}]}],'defIds':[_0x10cc18(0xf5)]},Pt=_0x21f1d1(function(_0x50745c,_0x510198){const _0x41abfd=_0x10cc18;return _0x2bc3c8(Ge,Object['assign']({},_0x50745c,{'id':_0x41abfd(0x139),'ref':_0x510198,'icon':pi}));});Pt[_0x10cc18(0x302)]='OffLineIcon';const Oi={'tag':_0x10cc18(0x147),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x10cc18(0x22e),'height':_0x10cc18(0x22e)},'children':[{'tag':'g','attrs':{'clipPath':_0x10cc18(0x29d)},'children':[{'tag':_0x10cc18(0x23a),'attrs':{'stroke':_0x10cc18(0x322),'d':_0x10cc18(0x13b),'strokeLinecap':_0x10cc18(0xf2),'strokeLinejoin':_0x10cc18(0xf2),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x10cc18(0x305),'attrs':{'id':_0x10cc18(0x21a)},'children':[{'tag':_0x10cc18(0x23a),'attrs':{'fill':'white','d':_0x10cc18(0x2fc),'transform':_0x10cc18(0x205)}}]}]}],'defIds':[_0x10cc18(0x21a)]},wt=_0x21f1d1(function(_0x35ba9f,_0x555f66){const _0x9e3689=_0x10cc18;return _0x2bc3c8(Ge,Object[_0x9e3689(0x10e)]({},_0x35ba9f,{'id':_0x9e3689(0x124),'ref':_0x555f66,'icon':Oi}));});wt[_0x10cc18(0x302)]=_0x10cc18(0x1ee);function Ti(_0x2f3e4f){const _0x102c38=_0x10cc18;switch(_0x2f3e4f){case _0x3d84ba['OFFLINE']:return _0x102c38(0x270);case _0x3d84ba[_0x102c38(0x1ae)]:return _0x102c38(0x30f);case _0x3d84ba[_0x102c38(0x2af)]:return _0x102c38(0x191);case _0x3d84ba[_0x102c38(0x10a)]:return _0x102c38(0x1e8);case _0x3d84ba['AWAITING']:case _0x3d84ba[_0x102c38(0x18c)]:return _0x102c38(0x318);case _0x3d84ba['SYNCED']:case _0x3d84ba[_0x102c38(0x29b)]:return _0x102c38(0x11a);}}function Ci(_0x51055a){const _0x3e490c=_0x10cc18,{status$:_0x563f5d}=_0x51055a,_0x30171e=_0x3a1844(_0x563f5d,_0x3d84ba[_0x3e490c(0x10a)]),_0xc78957=_0x22da28(_0xefd7ba),_0x2e8536=_0x22da28(_0x1abc06),_0x376bba=_0x30171e!==_0x3d84ba[_0x3e490c(0x284)],_0x407a7b=_0xc78957['t'](Ti(_0x30171e)),_0x4ca82a=_0x376bba?_0xccee15(wt,{}):_0xccee15(Pt,{}),_0x27694d=_0x3ffd3d(()=>{const _0x373b99=_0x3e490c;_0x376bba||_0x2e8536[_0x373b99(0x150)]();},[_0x376bba,_0x2e8536]);function _0x4eda0f(){const _0x18540f=_0x3e490c;return _0xc66364(_0x18540f(0x2f6),{'className':_0x18540f(0x2dc),'onClick':_0x27694d,'children':[_0xccee15(_0x18540f(0x2f6),{'className':_0x25975e(_0x18540f(0x2c3),{'univer-text-green-500':_0x376bba,'univer-text-red-500':!_0x376bba}),'children':_0x4ca82a}),_0xccee15('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x407a7b})]});}return _0x376bba?_0x4eda0f():_0xccee15(_0x556043,{'title':_0xc78957['t'](_0x3e490c(0x1c2)),'children':_0x4eda0f()});}var Ri=Object[_0x10cc18(0x1ea)],Di=(_0x16ece6,_0x440bf3,_0x544c52,_0x12d08c)=>{const _0x29e1c9=_0x10cc18;for(var _0x16574f=_0x12d08c>0x1?void 0x0:_0x12d08c?Ri(_0x440bf3,_0x544c52):_0x440bf3,_0x22b78e=_0x16ece6[_0x29e1c9(0xf9)]-0x1,_0x4358c1;_0x22b78e>=0x0;_0x22b78e--)(_0x4358c1=_0x16ece6[_0x22b78e])&&(_0x16574f=_0x4358c1(_0x16574f)||_0x16574f);return _0x16574f;},se=(_0x33b795,_0x5dda09)=>(_0xa9a24,_0x46ea2e)=>_0x5dda09(_0xa9a24,_0x46ea2e,_0x33b795);let ae=class extends _0x3e748e{constructor(_0x142d47,_0x29b506,_0x426a23,_0x32b696){const _0x15b32f=_0x10cc18;super(),_(this,_0x15b32f(0x1f8),new _0x1ced39(_0x3d84ba[_0x15b32f(0x10a)])),(this[_0x15b32f(0x301)]=_0x142d47,this[_0x15b32f(0xf0)]=_0x29b506,this[_0x15b32f(0x1c9)]=_0x426a23,this[_0x15b32f(0x203)]=_0x32b696,this['_initStatusComponent'](),this[_0x15b32f(0x138)]());}[_0x10cc18(0x138)](){const _0x30ab7d=_0x10cc18;this[_0x30ab7d(0x1bc)](this[_0x30ab7d(0x301)]['focused$'][_0x30ab7d(0x297)](_0x5e120f(()=>{const _0x229351=_0x30ab7d,_0x1a70b9=this['_univerInstanceService'][_0x229351(0x167)]();return _0x1a70b9?this[_0x229351(0x1c9)][_0x229351(0x258)](_0x1a70b9[_0x229351(0x25a)]()):_0x281440(null);}),_0x5e120f(_0x448f90=>_0x448f90?_0x448f90[_0x30ab7d(0x32c)]:_0x281440(_0x3d84ba['NOT_COLLAB'])))[_0x30ab7d(0x288)](_0x571140=>{const _0x2393d1=_0x30ab7d;this[_0x2393d1(0x1f8)][_0x2393d1(0x1e1)](_0x571140);}));}['_initStatusComponent'](){const _0xa63959=_0x10cc18;this[_0xa63959(0x1bc)](this[_0xa63959(0x203)][_0xa63959(0x12d)](_0x4ec0d2[_0xa63959(0x317)],()=>_0x3832e5(bi({'status$':this[_0xa63959(0x1f8)][_0xa63959(0x2e3)]()}),this[_0xa63959(0xf0)])));}};ae=Di([se(0x0,_0x631d26),se(0x1,_0x2c9f2f(_0x3955fb)),se(0x2,_0x2c9f2f(_0x69ed9c)),se(0x3,_0x25683e)],ae);function bi(_0x2d7b45){const {status$:_0x4b6af7}=_0x2d7b45;return function(){return _0xccee15(Ci,{'status$':_0x4b6af7});};}const yt=_0x5d6f8c(_0x10cc18(0x1b1));var Ni=Object[_0x10cc18(0x1ea)],Li=(_0x352138,_0x3ca791,_0x452907,_0x28f9ea)=>{const _0x351152=_0x10cc18;for(var _0x7f6ef1=_0x28f9ea>0x1?void 0x0:_0x28f9ea?Ni(_0x3ca791,_0x452907):_0x3ca791,_0x473383=_0x352138[_0x351152(0xf9)]-0x1,_0x211654;_0x473383>=0x0;_0x473383--)(_0x211654=_0x352138[_0x473383])&&(_0x7f6ef1=_0x211654(_0x7f6ef1)||_0x7f6ef1);return _0x7f6ef1;},K=(_0x446e29,_0x2cc895)=>(_0x2c5901,_0x180b87)=>_0x2cc895(_0x2c5901,_0x180b87,_0x446e29);let ce=class extends _0x460db8{constructor(_0x5a6037,_0x12276a,_0x8dd6c5,_0x3eb531,_0x140903){const _0x20f48c=_0x10cc18;super(),this[_0x20f48c(0x1a3)]=_0x5a6037,this[_0x20f48c(0x190)]=_0x12276a,this[_0x20f48c(0x29c)]=_0x8dd6c5,this[_0x20f48c(0x18d)]=_0x3eb531,_0x140903?_0x140903==null||_0x140903['whenReady']()['then'](()=>this['_init']()):(this[_0x20f48c(0x190)][_0x20f48c(0x13a)](_0x20f48c(0x244),_0x20f48c(0x204)),this[_0x20f48c(0x25e)]());}async[_0x10cc18(0x25e)](){const _0x54663a=_0x10cc18,_0x2a413f=this[_0x54663a(0x1a3)]['getParam']('unit'),_0x2abe4f=this['_urlService'][_0x54663a(0x19e)](_0x54663a(0x1ce)),_0xb594=this['_urlService'][_0x54663a(0x19e)](_0x54663a(0x242));if(!_0x2a413f||!_0x2abe4f){this['_logService']['debug'](_0x54663a(0x244),_0x54663a(0x120));return;}const _0x20f581=await this[_0x54663a(0x18d)]['loadUnit'](_0x2a413f,Number(_0x2abe4f),_0xb594);_0x20f581&&_0x20f581 instanceof _0x18daa7&&this[_0x54663a(0x141)](_0x20f581);}async['_setupSubUnitSync'](_0x289528){const _0x33760c=_0x10cc18;await this[_0x33760c(0x19d)](_0x289528),_0x289528[_0x33760c(0x144)][_0x33760c(0x297)](_0x55bd62(this[_0x33760c(0x20f)]))[_0x33760c(0x288)](_0x361d2c=>{const _0x5e0566=_0x33760c;_0x361d2c&&this[_0x5e0566(0x2cf)](_0x361d2c);}),this[_0x33760c(0x1a3)][_0x33760c(0x156)][_0x33760c(0x297)](_0x55bd62(this[_0x33760c(0x20f)]))[_0x33760c(0x288)](()=>this[_0x33760c(0x19d)](_0x289528));}[_0x10cc18(0x2cf)](_0x339860,_0x3a918e=!0x1){const _0x1c53ca=_0x10cc18,_0x45d35c=this[_0x1c53ca(0x1a3)][_0x1c53ca(0x19e)](_0x1c53ca(0x242));_0x339860[_0x1c53ca(0x327)]()!==_0x45d35c&&this['_urlService'][_0x1c53ca(0x171)](_0x1c53ca(0x242),_0x339860['getSheetId'](),_0x3a918e);}async['_updateSubUnitFromURLParams'](_0x38ceaa){const _0x520efa=_0x10cc18;var _0x416d6e;const _0xdd34f6=this[_0x520efa(0x1a3)][_0x520efa(0x19e)]('subunit');if(!_0xdd34f6||!_0x38ceaa[_0x520efa(0x21d)](_0xdd34f6)){const _0x5d46a2=_0x38ceaa[_0x520efa(0x1e9)]()[0x0],_0x234bf3=_0x38ceaa[_0x520efa(0x21d)](_0x5d46a2);if(!_0x234bf3)return;this[_0x520efa(0x2cf)](_0x234bf3,!0x0),await this[_0x520efa(0x29c)][_0x520efa(0xfe)](_0x3e1701['id'],{'unitId':_0x38ceaa[_0x520efa(0x25a)](),'subUnitId':_0x5d46a2});return;}((_0x416d6e=_0x38ceaa['getActiveSheet']())==null?void 0x0:_0x416d6e[_0x520efa(0x327)]())!==_0xdd34f6&&await this[_0x520efa(0x29c)][_0x520efa(0xfe)](_0x3e1701['id'],{'unitId':_0x38ceaa['getUnitId'](),'subUnitId':_0xdd34f6});}};ce=Li([K(0x0,yt),K(0x1,_0x1368e3),K(0x2,_0x526fee),K(0x3,_0x2c9f2f(_0x382568)),K(0x4,_0x2f165a(_0x2cc7be))],ce);var Ui=Object[_0x10cc18(0x1ea)],Mi=(_0x53ebfe,_0x226c43,_0x5edeae,_0x4bdceb)=>{const _0x2de856=_0x10cc18;for(var _0x161e26=_0x4bdceb>0x1?void 0x0:_0x4bdceb?Ui(_0x226c43,_0x5edeae):_0x226c43,_0x326c9c=_0x53ebfe[_0x2de856(0xf9)]-0x1,_0x456145;_0x326c9c>=0x0;_0x326c9c--)(_0x456145=_0x53ebfe[_0x326c9c])&&(_0x161e26=_0x456145(_0x161e26)||_0x161e26);return _0x161e26;},rt=(_0x103aa0,_0x4b5860)=>(_0x32747d,_0x2dd917)=>_0x4b5860(_0x32747d,_0x2dd917,_0x103aa0);let $e=class extends _0x460db8{constructor(_0x372838,_0x4863dc){const _0x178895=_0x10cc18;super(),this[_0x178895(0x2c5)]=_0x372838,this[_0x178895(0x18e)]=_0x4863dc,this[_0x178895(0x25e)]();}[_0x10cc18(0x25e)](){const _0x59501c=_0x10cc18,_0x5638b1=this;this['disposeWithMe'](this['_docClipboardService'][_0x59501c(0xe4)]({'onBeforePasteImage':async _0x67b28f=>{const _0x5dc87b=_0x59501c,_0x3784ed=await _0x5638b1['_imageIoService']['saveImage'](_0x67b28f);return _0x3784ed?{'source':_0x3784ed[_0x5dc87b(0x2ea)],'imageSourceType':_0x3784ed[_0x5dc87b(0x103)]}:null;}}));}};$e=Mi([rt(0x0,_0x401c42),rt(0x1,_0x3ef8ac)],$e);const ot=[_0x10cc18(0x1b2),'jiqing.500','green.600',_0x10cc18(0x1aa),_0x10cc18(0x269),_0x10cc18(0x326)];class Ke extends _0x3e748e{constructor(){const _0x1011c7=_0x10cc18;super(...arguments),_(this,_0x1011c7(0x330),new Map()),_(this,'_colorIndex',0x0);}[_0x10cc18(0x13f)](_0x50d88e){const _0x4e67a=_0x10cc18;if(this[_0x4e67a(0x330)][_0x4e67a(0x2bd)](_0x50d88e))return this[_0x4e67a(0x330)][_0x4e67a(0x127)](_0x50d88e);const _0x1aeb1b=ot[this[_0x4e67a(0x1a1)]];return this[_0x4e67a(0x1a1)]=(this[_0x4e67a(0x1a1)]+0x1)%ot['length'],this['_assignedColors'][_0x4e67a(0x239)](_0x50d88e,_0x1aeb1b),_0x1aeb1b;}}function $t(_0x447243){const _0x473212=_0x10cc18;let _0x207293='';for(const _0x39304a of _0x447243){const {startOffset:_0x43f161,endOffset:_0x387e89,isActive:_0x4092b6,rangeType:_0x39cd79,segmentId:_0x3b7693,segmentPage:_0x2c721b}=_0x39304a;_0x207293[_0x473212(0xf9)]&&(_0x207293+=','),_0x207293+=_0x43f161+':'+_0x387e89+':'+(_0x4092b6?'1':'0')+':'+_0x39cd79+':'+_0x3b7693+':'+_0x2c721b;}return _0x207293;}function Ai(_0x500333){const _0x2e32ee=_0x10cc18,_0x49f486=_0x500333[_0x2e32ee(0x11b)](','),_0x5ab4ca=[];for(const _0x1eec39 of _0x49f486){const [_0x2107f5,_0x4c31ad,_0x3b535c,_0x34ad93,_0x2e8347,_0x3792e0]=_0x1eec39[_0x2e32ee(0x11b)](':');_0x5ab4ca['push']({'startOffset':Number(_0x2107f5),'endOffset':Number(_0x4c31ad),'collapsed':_0x2107f5===_0x4c31ad,'isActive':_0x3b535c==='1','rangeType':_0x34ad93===_0x22acc[_0x2e32ee(0x2e0)]?_0x22acc[_0x2e32ee(0x2e0)]:_0x22acc[_0x2e32ee(0x1c3)],'segmentId':typeof _0x2e8347==_0x2e32ee(0x12b)?String(_0x2e8347):'','segmentPage':Number(_0x3792e0!=null?_0x3792e0:-0x1)});}return _0x5ab4ca[_0x2e32ee(0x1b9)](_0x5d734f=>_0x5d734f['isActive'])||(_0x5ab4ca[0x0][_0x2e32ee(0x2a2)]=!0x0),_0x5ab4ca;}class ze extends _0x460db8{constructor(){const _0x4d52f5=_0x10cc18;super(...arguments),_(this,_0x4d52f5(0x1ec),new _0x1ced39(null)),_(this,_0x4d52f5(0x1c6),this['_collabCursorState$'][_0x4d52f5(0x2e3)]());}['syncEditingCollabCursor'](_0x399ca6){const _0x500aa2=_0x10cc18,{unitID:_0x4bc344,memberID:_0x562a20,textRanges:_0x80a8a9}=_0x399ca6,_0x457985=$t(_0x80a8a9);if(_0x457985==='')return;const _0x292a3d={'unitID':_0x4bc344,'memberID':_0x562a20,'selection':_0x457985};this[_0x500aa2(0x1ec)]['next'](_0x292a3d);}}var Pi=Object[_0x10cc18(0x1ea)],wi=(_0x204151,_0x29aef1,_0x36b5c7,_0x28796c)=>{for(var _0x491c57=_0x28796c>0x1?void 0x0:_0x28796c?Pi(_0x29aef1,_0x36b5c7):_0x29aef1,_0x534438=_0x204151['length']-0x1,_0x1f528a;_0x534438>=0x0;_0x534438--)(_0x1f528a=_0x204151[_0x534438])&&(_0x491c57=_0x1f528a(_0x491c57)||_0x491c57);return _0x491c57;},A=(_0x3476c8,_0x4ae80f)=>(_0x5d7a3d,_0x1b036e)=>_0x4ae80f(_0x5d7a3d,_0x1b036e,_0x3476c8);const yi=0x12c,$i=0x64;let xe=class extends _0x460db8{constructor(_0x109e1b,_0x451678,_0x267e22,_0x9a37e6,_0x443438,_0x440f75,_0x442ea9,_0x10a945,_0x48caf7){const _0xc31378=_0x10cc18;super(),_(this,_0xc31378(0x2b6),!0x1),_(this,_0xc31378(0x25e),!0x1),_(this,_0xc31378(0x328),new _0x1ced39(new Map())),_(this,_0xc31378(0x2bb),this['_cursorInfo$'][_0xc31378(0x2e3)]()),_(this,_0xc31378(0x21f),new _0x1ced39([])),_(this,'roomMembers$',this['_roomMembers$'][_0xc31378(0x297)](_0x3be16c(yi))),_(this,_0xc31378(0x22f),_0x51b589(_0x2024a9=>{const _0x56204e=_0xc31378,_0x55ce9c={'eventID':_0x56f5f5[_0x56204e(0x24b)],'data':{'unitID':this[_0x56204e(0x249)],'memberID':this[_0x56204e(0x17d)][_0x56204e(0x262)](),'selection':$t(_0x2024a9)}};this[_0x56204e(0x17d)][_0x56204e(0x15b)](_0x55ce9c,this[_0x56204e(0x249)]);},$i)),(this['unitID']=_0x109e1b,this[_0xc31378(0x17d)]=_0x451678,this[_0xc31378(0xf0)]=_0x267e22,this['_colorAssignService']=_0x9a37e6,this[_0xc31378(0x2a7)]=_0x443438,this[_0xc31378(0xeb)]=_0x440f75,this['_transformService']=_0x442ea9,this[_0xc31378(0x301)]=_0x10a945,this[_0xc31378(0x29c)]=_0x48caf7);}get[_0x10cc18(0xe8)](){const _0x43f1cf=_0x10cc18;return this[_0x43f1cf(0x328)][_0x43f1cf(0x27f)]();}get['roomMembers'](){const _0x46e6eb=_0x10cc18;return this[_0x46e6eb(0x21f)][_0x46e6eb(0x27f)]();}[_0x10cc18(0x233)](){const _0x2041b4=_0x10cc18;super[_0x2041b4(0x233)](),this[_0x2041b4(0x328)][_0x2041b4(0x1e1)](new Map()),this[_0x2041b4(0x328)][_0x2041b4(0x309)](),this[_0x2041b4(0x21f)][_0x2041b4(0x1e1)]([]),this[_0x2041b4(0x21f)][_0x2041b4(0x309)]();}['init'](){const _0x7cfb6c=_0x10cc18;this['_init']||(this['_init']=!0x0,this[_0x7cfb6c(0x17d)][_0x7cfb6c(0x1a9)][_0x7cfb6c(0x297)](_0x55bd62(this['dispose$']))[_0x7cfb6c(0x288)](_0x9c9a5=>{const _0x1909b5=_0x7cfb6c;_0x9c9a5===_0x756bff[_0x1909b5(0x30c)]?this[_0x1909b5(0x200)]():this['_toggleOffline']();}),this[_0x7cfb6c(0x17d)][_0x7cfb6c(0x1c5)][_0x7cfb6c(0x297)](_0x55bd62(this[_0x7cfb6c(0x20f)]))[_0x7cfb6c(0x288)](_0x499ab4=>{const _0x5c9b77=_0x7cfb6c,_0x1a8ab2=_0x499ab4['eventID'];_0x1a8ab2===_0x56f5f5['UPDATE_CURSOR']&&this[_0x5c9b77(0x28e)](_0x499ab4),_0x1a8ab2===_0x56f5f5[_0x5c9b77(0x168)]&&this[_0x5c9b77(0x287)](_0x499ab4);}),this[_0x7cfb6c(0x1bc)](this['_commandService'][_0x7cfb6c(0x164)](_0x4013f5=>{const _0x232632=_0x7cfb6c,_0x312db3=_0x4013f5[_0x232632(0x151)];_0x312db3!=null&&this[_0x232632(0x2b6)]&&_0x4013f5['id']===_0x359fd6['id']&&_0x312db3['unitId']===this[_0x232632(0x249)]&&_0x312db3[_0x232632(0x1e7)]===!0x1&&_0x312db3[_0x232632(0x11d)]['length']>0x0&&this[_0x232632(0x22f)](_0x312db3['ranges']);})),this[_0x7cfb6c(0xeb)][_0x7cfb6c(0x1c6)][_0x7cfb6c(0x297)](_0x55bd62(this['dispose$']))[_0x7cfb6c(0x288)](_0x2e5867=>{const _0xd89f4d=_0x7cfb6c;if((_0x2e5867==null?void 0x0:_0x2e5867['unitID'])!==this['unitID'])return;const _0x277e3e={'eventID':_0x56f5f5[_0xd89f4d(0x24b)],'data':_0x2e5867};this[_0xd89f4d(0x28e)](_0x277e3e);}),this['disposeWithMe'](this[_0x7cfb6c(0x29c)][_0x7cfb6c(0x164)](_0x1cd532=>{const _0x2640e4=_0x7cfb6c;if(_0x1cd532[_0x2640e4(0x151)]==null)return;const _0xf6a80b=_0x1cd532[_0x2640e4(0x151)];if(_0x1cd532['id']!==_0x15c2de['id']||_0xf6a80b[_0x2640e4(0x16a)]!==this[_0x2640e4(0x249)])return;const _0x3f6d4d={'id':_0x2640e4(0x106),'params':_0xf6a80b},_0x1ddfbb=this['cursorInfo'];for(const [_0x3b503e,_0x1f5ced]of _0x1ddfbb){const _0x341f0a={'id':_0x2640e4(0x106),'params':{'unitId':this[_0x2640e4(0x249)],'actions':null,'textRanges':_0x1f5ced[_0x2640e4(0x11d)]}},_0x3e99b7=this[_0x2640e4(0x16d)][_0x2640e4(0x260)](_0x3f6d4d,_0x341f0a,!0x1);if(_0x3ff0c5(_0x3e99b7))throw _0x3e99b7['error'];_0x1ddfbb[_0x2640e4(0x239)](_0x3b503e,{..._0x1f5ced,'ranges':_0x3e99b7[_0x2640e4(0x21e)]['params'][_0x2640e4(0x1a2)]});}queueMicrotask(()=>{const _0x4f84f5=_0x2640e4;this['_cursorInfo$'][_0x4f84f5(0x1e1)](_0x1ddfbb);});})));}['_onCursorUpdate'](_0x291b15){const _0x1960bf=_0x10cc18;var _0x59eb20,_0x5e0340;const {memberID:_0x3787d6,selection:_0x33307f}=_0x291b15[_0x1960bf(0x1e0)],_0x4774bc=Ai(_0x33307f),_0x1ff1e5=(_0x5e0340=(_0x59eb20=this[_0x1960bf(0x2a7)]['getMember'](this[_0x1960bf(0x249)],_0x3787d6))==null?void 0x0:_0x59eb20[_0x1960bf(0x27a)])!=null?_0x5e0340:_0x1960bf(0x27e),_0x5dcc5f={'color':this[_0x1960bf(0x177)][_0x1960bf(0x13f)](_0x3787d6),'name':_0x1ff1e5,'ranges':_0x4774bc},_0x210b0a=this[_0x1960bf(0xe8)];_0x210b0a['set'](_0x3787d6,_0x5dcc5f),this[_0x1960bf(0x328)][_0x1960bf(0x1e1)](_0x210b0a);}[_0x10cc18(0x287)](_0x185a96){const _0x5a5fe4=_0x10cc18,{memberID:_0x645ff0}=_0x185a96['data'],_0x2c9e8a=this[_0x5a5fe4(0xe8)];_0x2c9e8a['delete'](_0x645ff0),this[_0x5a5fe4(0x328)]['next'](_0x2c9e8a);}['_toggleOnline'](){const _0x3128f1=_0x10cc18;var _0x2210fa;if(this[_0x3128f1(0x2b6)]=!0x0,((_0x2210fa=this['_univerInstanceService'][_0x3128f1(0x167)]())==null?void 0x0:_0x2210fa[_0x3128f1(0x25a)]())!==this[_0x3128f1(0x249)])return;const _0x5dc587=this[_0x3128f1(0xf0)][_0x3128f1(0x127)](_0x196312)[_0x3128f1(0x1d8)]();Array[_0x3128f1(0x2d1)](_0x5dc587)&&_0x5dc587[_0x3128f1(0xf9)]>0x0&&this[_0x3128f1(0x22f)](_0x5dc587);}[_0x10cc18(0xfb)](){const _0xd10f4d=_0x10cc18;this[_0xd10f4d(0x2b6)]=!0x1;}};xe=wi([A(0x2,_0x2c9f2f(_0x3955fb)),A(0x3,_0x2c9f2f(Ke)),A(0x4,_0x2c9f2f(_0xf95f76)),A(0x5,_0x2c9f2f(ze)),A(0x6,_0x447d81),A(0x7,_0x631d26),A(0x8,_0x526fee)],xe);var xi=Object[_0x10cc18(0x1ea)],Bi=(_0x5a1623,_0x1bc5bc,_0x43a4e5,_0x4b2a5d)=>{const _0x56f50c=_0x10cc18;for(var _0x228745=_0x4b2a5d>0x1?void 0x0:_0x4b2a5d?xi(_0x1bc5bc,_0x43a4e5):_0x1bc5bc,_0x3c21fb=_0x5a1623[_0x56f50c(0xf9)]-0x1,_0x5a56de;_0x3c21fb>=0x0;_0x3c21fb--)(_0x5a56de=_0x5a1623[_0x3c21fb])&&(_0x228745=_0x5a56de(_0x228745)||_0x228745);return _0x228745;},B=(_0x3c6228,_0x584fb6)=>(_0x4dfb40,_0x178084)=>_0x584fb6(_0x4dfb40,_0x178084,_0x3c6228);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x34d026=[],_0x473893=!0x1;return _0x599f40=>{_0x34d026['push'](_0x599f40),_0x473893||(_0x473893=!0x0,setTimeout(()=>{const _0x577561=_0x58c2;_0x34d026[_0x577561(0x12c)](_0x40ec8b=>_0x40ec8b()),_0x34d026=[],_0x473893=!0x1;}));};};let Be=class extends _0x460db8{constructor(_0x4bb8ba,_0x1d4859,_0x4ed454,_0x1a77ce,_0x33fa68,_0x53caa0,_0x5161f8,_0x15b078){const _0x202a8f=_0x10cc18;super(),_(this,_0x202a8f(0x2b6),!0x1),_(this,_0x202a8f(0x25e),!0x1),_(this,'_cursorInfo$',new _0x1ced39(new Map())),_(this,'cursorInfo$',this[_0x202a8f(0x328)]['asObservable']()),_(this,_0x202a8f(0x21f),new _0x1ced39([])),_(this,_0x202a8f(0xe9),this[_0x202a8f(0x21f)]['pipe'](_0x3be16c(Fi))),_(this,'_updateLocalCursor',_0x51b589((_0x5b18f9,_0x37cd3f)=>{const _0x1c9449=_0x202a8f,_0xc51dd5={'eventID':_0x56f5f5[_0x1c9449(0x24b)],'data':{'unitID':this[_0x1c9449(0x249)],'memberID':this[_0x1c9449(0x17d)]['getMemberID'](),'selection':_0x5ebf47(_0x5b18f9,_0x37cd3f[_0x1c9449(0x315)])}};this[_0x1c9449(0x17d)][_0x1c9449(0x15b)](_0xc51dd5,this[_0x1c9449(0x249)]);},ki)),(this[_0x202a8f(0x249)]=_0x4bb8ba,this['_session']=_0x1d4859,this[_0x202a8f(0xf0)]=_0x4ed454,this['_colorAssignService']=_0x1a77ce,this[_0x202a8f(0x2a7)]=_0x33fa68,this[_0x202a8f(0x301)]=_0x53caa0,this[_0x202a8f(0x29c)]=_0x5161f8,this[_0x202a8f(0x195)]=_0x15b078);}get[_0x10cc18(0xe8)](){const _0x13f51b=_0x10cc18;return this['_cursorInfo$'][_0x13f51b(0x27f)]();}get['roomMembers'](){const _0x444e87=_0x10cc18;return this[_0x444e87(0x21f)][_0x444e87(0x27f)]();}[_0x10cc18(0x233)](){const _0x2de668=_0x10cc18;super[_0x2de668(0x233)](),this[_0x2de668(0x328)][_0x2de668(0x1e1)](new Map()),this[_0x2de668(0x328)][_0x2de668(0x309)](),this[_0x2de668(0x21f)]['next']([]),this[_0x2de668(0x21f)][_0x2de668(0x309)]();}[_0x10cc18(0x225)](){const _0x361300=_0x10cc18;this[_0x361300(0x25e)]||(this[_0x361300(0x25e)]=!0x0,this[_0x361300(0x17d)][_0x361300(0x1a9)][_0x361300(0x297)](_0x55bd62(this[_0x361300(0x20f)]))[_0x361300(0x288)](_0x180585=>{const _0x56de3e=_0x361300;_0x180585===_0x756bff['ONLINE']?this[_0x56de3e(0x200)]():this[_0x56de3e(0xfb)]();}),this['_session']['event$'][_0x361300(0x297)](_0x55bd62(this['dispose$']))[_0x361300(0x288)](_0x2f1e85=>{const _0x299aaa=_0x361300,_0x3e9688=_0x2f1e85[_0x299aaa(0x277)];_0x3e9688===_0x56f5f5[_0x299aaa(0x24b)]&&this[_0x299aaa(0x28e)](_0x2f1e85),_0x3e9688===_0x56f5f5['USERS_LEAVE']&&this[_0x299aaa(0x287)](_0x2f1e85);}),this['_onRefRangeChange'](),this[_0x361300(0x1bc)](this['_commandService'][_0x361300(0x164)](_0x420df2=>{const _0x1d6cef=_0x361300;if(this[_0x1d6cef(0x2b6)]&&_0x420df2['id']===_0x3c2d3f['id']&&_0x420df2[_0x1d6cef(0x151)][_0x1d6cef(0x16a)]===this[_0x1d6cef(0x249)]){const _0x5e5a81=_0x420df2[_0x1d6cef(0x151)];this[_0x1d6cef(0x22f)](_0x5e5a81[_0x1d6cef(0x21c)],_0x5e5a81[_0x1d6cef(0x159)][0x0]);}})));}[_0x10cc18(0x28e)](_0x16bfca){const _0x323d8b=_0x10cc18;var _0x280eab,_0x357285;const {memberID:_0x292f39,selection:_0x58f555}=_0x16bfca[_0x323d8b(0x1e0)],{sheetName:_0x60f871,range:_0xe6d72f}=_0xaa972c(_0x58f555),_0x32eb1b={'name':(_0x357285=(_0x280eab=this[_0x323d8b(0x2a7)]['getMember'](this['unitID'],_0x292f39))==null?void 0x0:_0x280eab[_0x323d8b(0x27a)])!=null?_0x357285:_0x323d8b(0x27e),'range':this['_getMergeRange'](_0x60f871,_0xe6d72f),'sheetID':_0x60f871,'color':this[_0x323d8b(0x177)]['assignAColorForMemberID'](_0x292f39),'selection':_0x58f555},_0x304fc5=this['cursorInfo'];_0x304fc5[_0x323d8b(0x239)](_0x292f39,_0x32eb1b),this[_0x323d8b(0x328)][_0x323d8b(0x1e1)](_0x304fc5);}['_onCursorDelete'](_0x1f7364){const _0x46cc1e=_0x10cc18,{memberID:_0x5b2b06}=_0x1f7364[_0x46cc1e(0x1e0)],_0x3f0e5e=this[_0x46cc1e(0xe8)];_0x3f0e5e['delete'](_0x5b2b06),this['_cursorInfo$'][_0x46cc1e(0x1e1)](_0x3f0e5e);}['_getMergeRange'](_0x24646d,_0x278fc8){const _0x19ee48=_0x10cc18;var _0x538625,_0x5587dd;const _0x31395e=(_0x5587dd=(_0x538625=this[_0x19ee48(0x301)][_0x19ee48(0x13c)](this['unitID']))==null?void 0x0:_0x538625[_0x19ee48(0x21d)](_0x24646d))==null?void 0x0:_0x5587dd[_0x19ee48(0x2c7)]();return(_0x31395e==null?void 0x0:_0x31395e[_0x19ee48(0x23b)](_0x21d6a9=>_0x40c7c0[_0x19ee48(0x173)](_0x21d6a9,_0x278fc8)))||_0x278fc8;}[_0x10cc18(0x184)](){const _0x365a09=_0x10cc18,_0x24b7a9=new _0x5a6462(),_0x5c8193=Hi(),_0x2b16fa=()=>{const _0x1bc005=_0x58c2;_0x24b7a9[_0x1bc005(0x233)]();const _0x492bc7=(_0x3c9cb0,_0x452062,_0x5ced80,_0x8865e6)=>{const _0x106601=_0x1bc005;let _0x1f1946=[];switch(_0x3c9cb0['id']){case _0xe50d17[_0x106601(0x15c)]:{_0x1f1946=_0xc34664(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x2da)]:{_0x1f1946=_0x3a245f(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x216)]:{_0x1f1946=_0x3b58f5(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x2fa)]:{_0x1f1946=_0x3177b4(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17['InsertRangeMoveRightCommandId']:{_0x1f1946=_0x1916d7(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17['InsertRowCommandId']:{_0x1f1946=_0x524712(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x1c0)]:{_0x1f1946=_0x379eb2(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x201)]:{_0x1f1946=_0x27e994(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x2ba)]:{_0x1f1946=_0x11bbdd(_0x3c9cb0,_0x8865e6);break;}}const _0x556490=_0x178978(_0x1f1946,_0x8865e6),_0x5328fa=this['cursorInfo'][_0x106601(0x127)](_0x452062);if(_0x5328fa&&_0x556490){const _0x14f963={..._0x5328fa,'range':_0x556490};this[_0x106601(0xe8)][_0x106601(0x239)](_0x452062,_0x14f963),_0x5c8193(()=>{const _0xe2da53=_0x106601,_0x40455b=this['_refRangeService'][_0xe2da53(0x1de)](_0x556490,_0x511074=>(_0x40455b[_0xe2da53(0x233)](),_0x492bc7(_0x511074,_0x452062,_0x5ced80,_0x556490)));_0x24b7a9[_0xe2da53(0xff)](_0x40455b);});}return{'redos':[],'undos':[]};};this[_0x1bc005(0xe8)][_0x1bc005(0x12c)]((_0x5e41a6,_0x1fee50)=>{const _0x457200=_0x1bc005,{range:_0x335f35,sheetID:_0x4d85d0}=_0x5e41a6,_0xc863b8=this[_0x457200(0x195)][_0x457200(0x1de)](_0x335f35,_0x132be=>(_0xc863b8[_0x457200(0x233)](),_0x492bc7(_0x132be,_0x1fee50,_0x4d85d0,_0x335f35)));_0x24b7a9[_0x457200(0xff)](_0xc863b8);});};this[_0x365a09(0x1bc)](_0x555679(this[_0x365a09(0x328)]['subscribe'](()=>{_0x2b16fa();})));}[_0x10cc18(0x200)](){const _0x50cd6f=_0x10cc18;var _0x3ca18e,_0x2a0a1e;if(this[_0x50cd6f(0x2b6)]=!0x0,((_0x3ca18e=this['_univerInstanceService'][_0x50cd6f(0x167)]())==null?void 0x0:_0x3ca18e[_0x50cd6f(0x25a)]())!==this[_0x50cd6f(0x249)])return;const _0x3b781c=(_0x2a0a1e=this[_0x50cd6f(0xf0)][_0x50cd6f(0x127)](_0xc9e973)['getCurrentSelections']())==null?void 0x0:_0x2a0a1e[0x0],_0x3383c1=this[_0x50cd6f(0x301)][_0x50cd6f(0x30d)](_0x5045e8['UNIVER_SHEET'])[_0x50cd6f(0x24e)]();_0x3b781c&&_0x3383c1&&this['_updateLocalCursor'](_0x3383c1[_0x50cd6f(0x327)](),_0x3b781c);}[_0x10cc18(0xfb)](){const _0xd05f8d=_0x10cc18;this[_0xd05f8d(0x2b6)]=!0x1;}};Be=Bi([B(0x2,_0x2c9f2f(_0x3955fb)),B(0x3,_0x2c9f2f(Ke)),B(0x4,_0x2c9f2f(_0xf95f76)),B(0x5,_0x631d26),B(0x6,_0x526fee),B(0x7,_0x2c9f2f(_0x4afbe7))],Be);var Yi=Object[_0x10cc18(0x1ea)],Wi=(_0x2bc50a,_0x1f21cd,_0x350947,_0x4f2b27)=>{for(var _0x16e86c=_0x4f2b27>0x1?void 0x0:_0x4f2b27?Yi(_0x1f21cd,_0x350947):_0x1f21cd,_0x55ceeb=_0x2bc50a['length']-0x1,_0x479cb9;_0x55ceeb>=0x0;_0x55ceeb--)(_0x479cb9=_0x2bc50a[_0x55ceeb])&&(_0x16e86c=_0x479cb9(_0x16e86c)||_0x16e86c);return _0x16e86c;},Ce=(_0x57bc08,_0x5cc3ee)=>(_0x542fc7,_0x1a1848)=>_0x5cc3ee(_0x542fc7,_0x1a1848,_0x57bc08);let H=class extends _0x460db8{constructor(_0xa3c911,_0x7ea805,_0x297687){const _0x37e8e3=_0x10cc18;super(),_(this,_0x37e8e3(0x208),new Map()),_(this,_0x37e8e3(0x149),new _0x495c27()),(this[_0x37e8e3(0x301)]=_0xa3c911,this['_injector']=_0x7ea805,this[_0x37e8e3(0xf6)]=_0x297687,this['_init']());}['dispose'](){const _0x33184d=_0x10cc18;super[_0x33184d(0x233)](),this[_0x33184d(0x149)][_0x33184d(0x309)](),this[_0x33184d(0x208)][_0x33184d(0x12c)](_0x5d2c38=>_0x5d2c38[_0x33184d(0x233)]());}['getCollabCursors$'](_0x28fb90){const _0x73c0ea=_0x10cc18;return this[_0x73c0ea(0x208)][_0x73c0ea(0x2bd)](_0x28fb90)?this[_0x73c0ea(0x208)][_0x73c0ea(0x127)](_0x28fb90)[_0x73c0ea(0x2bb)]:this[_0x73c0ea(0x149)]['pipe'](_0x12a7d2(_0x4f3f82=>_0x4f3f82['unitID']===_0x28fb90),_0x5e120f(_0x418ba0=>_0x418ba0['cursorInfo$']));}['_init'](){const _0x565a96=_0x10cc18;this[_0x565a96(0x301)][_0x565a96(0x2f5)](_0x5045e8[_0x565a96(0x1f7)])['pipe'](_0x55bd62(this[_0x565a96(0x20f)]))[_0x565a96(0x288)](async _0x3918db=>{const _0x4c8128=_0x565a96,_0x27d827=_0x3918db[_0x4c8128(0x25a)](),_0x5a6bda=await this[_0x4c8128(0x23d)](_0x27d827);this[_0x4c8128(0x149)][_0x4c8128(0x1e1)](_0x5a6bda),this[_0x4c8128(0x208)]['set'](_0x27d827,_0x5a6bda);}),this[_0x565a96(0x301)][_0x565a96(0x2f5)](_0x5045e8['UNIVER_DOC'])[_0x565a96(0x297)](_0x55bd62(this[_0x565a96(0x20f)]))[_0x565a96(0x297)](_0x12a7d2(_0x5ef585=>!_0x5ef585[_0x565a96(0x25a)]()['startsWith']('__')))[_0x565a96(0x288)](async _0x5aa716=>{const _0x186b9e=_0x565a96,_0x3695e1=_0x5aa716[_0x186b9e(0x25a)](),_0x11ceec=await this[_0x186b9e(0x2f8)](_0x3695e1);this[_0x186b9e(0x149)][_0x186b9e(0x1e1)](_0x11ceec),this[_0x186b9e(0x208)][_0x186b9e(0x239)](_0x3695e1,_0x11ceec);}),_0x153e90(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5045e8['UNIVER_DOC']),this[_0x565a96(0x301)][_0x565a96(0x1f5)](_0x5045e8['UNIVER_SHEET']))['pipe'](_0x55bd62(this[_0x565a96(0x20f)]))['subscribe'](_0x390ced=>{const _0x230285=_0x565a96,_0x499d10=_0x390ced[_0x230285(0x25a)](),_0x588299=this[_0x230285(0x208)][_0x230285(0x127)](_0x499d10);_0x588299&&(_0x588299[_0x230285(0x233)](),this[_0x230285(0x208)][_0x230285(0x264)](_0x499d10));});}async[_0x10cc18(0x23d)](_0x3bc658){const _0x355154=_0x10cc18,_0x11b944=await this[_0x355154(0xf6)][_0x355154(0x2e8)](_0x3bc658),_0x77159d=this[_0x355154(0xf0)]['createInstance'](Be,_0x3bc658,_0x11b944);return _0x77159d[_0x355154(0x225)](),_0x77159d;}async[_0x10cc18(0x2f8)](_0x383db6){const _0x242c7b=_0x10cc18,_0x9a005=await this[_0x242c7b(0xf6)][_0x242c7b(0x2e8)](_0x383db6),_0x93bcd=this[_0x242c7b(0xf0)][_0x242c7b(0x154)](xe,_0x383db6,_0x9a005);return _0x93bcd[_0x242c7b(0x225)](),_0x93bcd;}};H=Wi([Ce(0x0,_0x631d26),Ce(0x1,_0x2c9f2f(_0x3955fb)),Ce(0x2,_0x2c9f2f(_0x1abc06))],H);const Q=0x14,at=0xc8,Re=0x4,ji=0x5;function Vi(_0x5c043e,_0xa0f5d6){const _0x599c63=_0x10cc18;let {radius:_0x897ebc,width:_0x8c4328,height:_0x142d15}=_0xa0f5d6;_0x897ebc=_0x897ebc!=null?_0x897ebc:0x0,_0x8c4328=_0x8c4328!=null?_0x8c4328:0x1e,_0x142d15=_0x142d15!=null?_0x142d15:0x1e;let _0x3aa4de=0x0,_0x5ae3cb=0x0,_0x3ea7a2=0x0;_0x3aa4de=_0x5ae3cb=_0x3ea7a2=Math[_0x599c63(0x240)](_0x897ebc,_0x8c4328/0x2,_0x142d15/0x2),_0x5c043e['beginPath'](),_0x5c043e[_0x599c63(0x237)](_0x3aa4de,0x0),_0x5c043e[_0x599c63(0x31a)](_0x8c4328-_0x5ae3cb,0x0),_0x5c043e['arc'](_0x8c4328-_0x5ae3cb,_0x5ae3cb,_0x5ae3cb,Math['PI']*0x3/0x2,0x0,!0x1),_0x5c043e[_0x599c63(0x31a)](_0x8c4328,_0x142d15-_0x3ea7a2),_0x5c043e[_0x599c63(0x16b)](_0x8c4328-_0x3ea7a2,_0x142d15-_0x3ea7a2,_0x3ea7a2,0x0,Math['PI']/0x2,!0x1),_0x5c043e[_0x599c63(0x31a)](0x0,_0x142d15),_0x5c043e['lineTo'](0x0,_0x3aa4de),_0x5c043e[_0x599c63(0x16b)](_0x3aa4de,_0x3aa4de,_0x3aa4de,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5c043e[_0x599c63(0xed)](),_0xa0f5d6['fill']&&(_0x5c043e[_0x599c63(0x211)](),_0x5c043e['fillStyle']=_0xa0f5d6['fill'],_0xa0f5d6[_0x599c63(0xf1)]===_0x599c63(0x29f)?_0x5c043e[_0x599c63(0x130)](_0x599c63(0x29f)):_0x5c043e[_0x599c63(0x130)](),_0x5c043e[_0x599c63(0x32e)]());}class Ee extends _0x28bace{constructor(_0x552ba7,_0x224522){const _0x7fc531=_0x10cc18;super(_0x552ba7,_0x224522),_(this,_0x7fc531(0x1e5)),_(this,'text'),(this[_0x7fc531(0x1e5)]=_0x224522==null?void 0x0:_0x224522['color'],this[_0x7fc531(0x117)]=_0x224522==null?void 0x0:_0x224522[_0x7fc531(0x117)]);}static[_0x10cc18(0x285)](_0x761801,_0x45fddc){const _0x22d59f=_0x10cc18,{text:_0x1232c7,color:_0x241547}=_0x45fddc;_0x761801[_0x22d59f(0x211)](),_0x761801[_0x22d59f(0x2f4)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x806c61=_0x761801[_0x22d59f(0x2db)](_0x1232c7)['width'],_0x111ac9=Math[_0x22d59f(0x240)](_0x806c61+0x2*Re,at);Vi(_0x761801,{'height':Q,'radius':0x4,'width':_0x111ac9,'fill':_0x241547}),_0x761801[_0x22d59f(0x217)]=_0x22d59f(0x32b);const _0xcf3420=Re,_0x492173=Q-ji,_0x164288=at-0x2*Re;if(_0x806c61>_0x164288){let _0x3b1e32='',_0x33f493=0x0;for(const _0x4dd338 of _0x1232c7){const _0x2cb55f=_0x761801[_0x22d59f(0x2db)](_0x4dd338)[_0x22d59f(0x320)];if(_0x33f493+_0x2cb55f<=_0x164288-_0x761801[_0x22d59f(0x2db)](_0x22d59f(0x1f4))[_0x22d59f(0x320)])_0x3b1e32+=_0x4dd338,_0x33f493+=_0x2cb55f;else{_0x3b1e32+='...';break;}}_0x761801[_0x22d59f(0x241)](_0x3b1e32,_0xcf3420,_0x492173);}else _0x761801[_0x22d59f(0x241)](_0x1232c7,_0xcf3420,_0x492173);_0x761801[_0x22d59f(0x32e)]();}[_0x10cc18(0x261)](_0x467208){Ee['drawWith'](_0x467208,this);}}const De=_0x10cc18(0x2a1),Xi=_0x10cc18(0x12e),Gi=_0x10cc18(0x14e),z=0x6,Ki=1.5,be=0x4,zi=1.5,Ji=_0x10cc18(0x188);class ct{constructor(_0x32714c,_0x4e4490,_0xea590d,_0x55f794){const _0x36f487=_0x10cc18;_(this,_0x36f487(0x254),[]),_(this,'_anchor',null),_(this,_0x36f487(0xea),null),_(this,_0x36f487(0x1b8),null),_(this,'_hideTimer',null),_(this,_0x36f487(0x16e),null),(this[_0x36f487(0x2fe)]=_0x32714c,this[_0x36f487(0x155)]=_0x4e4490,this['_docSkeleton']=_0xea590d,this[_0x36f487(0x259)]=_0x55f794,this['_render']());}set[_0x10cc18(0x2a5)](_0x5f13b6){const _0x2b6943=_0x10cc18;_0x5f13b6?(this[_0x2b6943(0x1b8)]&&this['_anchorDot'][_0x2b6943(0x28b)](),this[_0x2b6943(0xea)]&&this[_0x2b6943(0xea)]['show']()):(this[_0x2b6943(0x1b8)]&&this[_0x2b6943(0x1b8)]['show'](),this[_0x2b6943(0xea)]&&this[_0x2b6943(0xea)][_0x2b6943(0x28b)]());}[_0x10cc18(0x233)](){const _0x422e6a=_0x10cc18;for(const _0x5a6e12 of this[_0x422e6a(0x254)])_0x5a6e12['dispose']();this[_0x422e6a(0xea)]&&this['_textBubble'][_0x422e6a(0x233)](),this[_0x422e6a(0x1b8)]&&this[_0x422e6a(0x1b8)]['dispose'](),this[_0x422e6a(0x1b7)]&&this[_0x422e6a(0x1b7)][_0x422e6a(0x233)](),this['_eventUnsubscribe']&&this[_0x422e6a(0x16e)]();}[_0x10cc18(0x1e2)](){const _0x1eb34d=_0x10cc18;var _0x14a0db;const {_docSkeleton:_0x146965,_document:_0x2bdef0}=this,{color:_0x41c1d9,name:_0x2c821a,ranges:_0x2f4f30}=this['_cursor'],_0x74b5e0=_0x2bdef0[_0x1eb34d(0x1c4)](),{docsLeft:_0x410c3e,docsTop:_0x166715}=_0x74b5e0,_0xbdf07=new _0x3f6a22(_0x74b5e0,_0x146965);for(const {startOffset:_0x7a5156,endOffset:_0x1dc063,rangeType:_0x120223,segmentId:_0x4dd1ae,segmentPage:_0x4d085c,collapsed:_0x32cb2c,isActive:_0x3c23a1}of _0x2f4f30){const _0x4c0c36=_0x146965['findNodePositionByCharIndex'](_0x7a5156,!0x0,_0x4dd1ae,_0x4d085c);let _0x45b6e5=_0x146965[_0x1eb34d(0x19f)](_0x1dc063,!0x0,_0x4dd1ae,_0x4d085c);if(_0x45b6e5==null&&(_0x45b6e5=_0x146965[_0x1eb34d(0x19f)](_0x1dc063-0x1,!0x1,_0x4dd1ae,_0x4d085c)),_0x3c23a1){const {contentBoxPointGroup:_0x44f803}=_0xbdf07[_0x1eb34d(0x110)](_0x45b6e5,_0x45b6e5);if(_0x44f803[_0x1eb34d(0xf9)]===0x0)continue;this[_0x1eb34d(0x289)](_0x41c1d9,_0x44f803,_0x410c3e,_0x166715,_0x2c821a),this[_0x1eb34d(0x16e)]=this[_0x1eb34d(0x232)]();}if(_0x4c0c36&&_0x45b6e5){if(_0x120223===_0x22acc['RECT']){const _0x4fca71=new _0x4973b1(_0x74b5e0,_0x146965),{pointGroup:_0x3cbc59}=(_0x14a0db=_0x4fca71[_0x1eb34d(0x110)](_0x4c0c36,_0x45b6e5))!=null?_0x14a0db:{};if(_0x3cbc59==null||_0x3cbc59[_0x1eb34d(0xf9)]===0x0)continue;this[_0x1eb34d(0x133)](_0x41c1d9,_0x3cbc59,_0x410c3e,_0x166715);}else{if(!_0x32cb2c){const {borderBoxPointGroup:_0xc0056d}=_0xbdf07['getRangePointData'](_0x4c0c36,_0x45b6e5);if(_0xc0056d[_0x1eb34d(0xf9)]===0x0)continue;this[_0x1eb34d(0x176)](_0x41c1d9,_0xc0056d,_0x410c3e,_0x166715);}}}}}[_0x10cc18(0x289)](_0xe8b98d,_0x57f570,_0x4e8479,_0xbeaf50,_0x1e99a6){const _0x3c9161=_0x10cc18,_0x12c95c=this[_0x3c9161(0x13d)](_0x57f570),{left:_0x4fa335,top:_0x4875c0,height:_0x177b51}=_0x12c95c,_0x400bd7=this['_getScale'](),_0x178504=zi/_0x400bd7,_0x336a9d=new _0x2dfad6(De+_0x5236ab(z),{'left':_0x4fa335+_0x4e8479-_0x178504,'top':_0x4875c0+_0xbeaf50,'height':_0x177b51,'width':Ki,'fill':_0xe8b98d||_0x44dbc(_0x10fc5a[_0x3c9161(0x214)],0x0),'strokeWidth':_0x178504,'stroke':Ji,'evented':!0x0});this[_0x3c9161(0x1b7)]=_0x336a9d,this[_0x3c9161(0x155)]['addObject'](_0x336a9d,_0x531506);const _0x47a627=new _0x2dfad6(De+_0x5236ab(z),{'left':_0x4fa335+_0x4e8479-_0x178504,'top':_0x4875c0+_0xbeaf50-be/0x2,'height':be,'width':be,'fill':_0xe8b98d||_0x44dbc(_0x10fc5a['black'],0x0),'strokeWidth':0x0,'stroke':_0xe8b98d||_0x44dbc(_0x10fc5a['black'],0x0),'evented':!0x1});this[_0x3c9161(0x1b8)]=_0x47a627,this[_0x3c9161(0x155)][_0x3c9161(0x14c)](_0x47a627,_0x531506);const _0x5d09f3=new Ee(De+_0x5236ab(z),{'left':_0x4fa335+_0x4e8479-_0x178504,'top':_0x4875c0+_0xbeaf50-Q,'text':_0x1e99a6,'color':_0xe8b98d});this[_0x3c9161(0xea)]=_0x5d09f3,this[_0x3c9161(0x155)][_0x3c9161(0x14c)](_0x5d09f3,_0x531506),this['_hover']=!0x1;}['_handleHover'](){const _0x3dd158=_0x10cc18,_0x4d490e=this[_0x3dd158(0x1b7)][_0x3dd158(0x2df)][_0x3dd158(0x2c4)](()=>{const _0x5b7c11=_0x3dd158;this[_0x5b7c11(0x2a5)]=!0x0;}),_0x13be7e=this[_0x3dd158(0x1b7)][_0x3dd158(0x26e)][_0x3dd158(0x2c4)](()=>{const _0x57145d=_0x3dd158;this[_0x57145d(0x18f)]&&clearTimeout(this[_0x57145d(0x18f)]),this[_0x57145d(0x18f)]=setTimeout(()=>{const _0x9ed6bd=_0x57145d;this[_0x9ed6bd(0x2a5)]=!0x1;},0x7d0);});return()=>{const _0x9a2a5c=_0x3dd158;_0x4d490e[_0x9a2a5c(0x2fd)](),_0x13be7e[_0x9a2a5c(0x2fd)]();};}['_drawTextRange'](_0x55556f,_0x3d5fdf,_0x16f1ca,_0x1417b8){const _0x4856dc=_0x10cc18,_0x2b6374=new _0x1a8ee3(_0x55556f)['setAlpha'](0.2)[_0x4856dc(0x316)](),_0x169ec0=new _0x2a7a95(Xi+_0x5236ab(z),{'pointsGroup':_0x3d5fdf,'fill':_0x2b6374||_0x44dbc(_0x10fc5a[_0x4856dc(0x214)],0.2),'left':_0x16f1ca,'top':_0x1417b8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4856dc(0x254)]['push'](_0x169ec0),this[_0x4856dc(0x155)]['addObject'](_0x169ec0,_0x531506);}['_drawRectRange'](_0x458807,_0x1244ce,_0x406ad8,_0x37c77f){const _0x397297=_0x10cc18,_0x2bba6d=new _0x1a8ee3(_0x458807)[_0x397297(0x2a3)](0.2)[_0x397297(0x316)](),_0x4fb0b3=new _0x2a7a95(Gi+_0x5236ab(z),{'pointsGroup':_0x1244ce,'fill':_0x2bba6d||_0x44dbc(_0x10fc5a[_0x397297(0x214)],0.2),'left':_0x406ad8,'top':_0x37c77f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x397297(0x254)][_0x397297(0x1ed)](_0x4fb0b3),this['_scene'][_0x397297(0x14c)](_0x4fb0b3,_0x531506);}[_0x10cc18(0x13d)](_0x1fec42){const _0x165c78=_0x1fec42[0x0],_0x610946=_0x165c78[0x0],_0x4e56ac=_0x165c78[0x2],{x:_0x24a990,y:_0x3acee6}=_0x610946,{x:_0x5bfb35,y:_0x5c1bc9}=_0x4e56ac;return{'left':_0x24a990,'top':_0x3acee6,'width':_0x5bfb35-_0x24a990,'height':_0x5c1bc9-_0x3acee6};}['_getScale'](){const _0x373f93=_0x10cc18,{scaleX:_0x3cf3ac,scaleY:_0x15eb97}=this[_0x373f93(0x155)][_0x373f93(0x157)]();return Math['max'](_0x3cf3ac,_0x15eb97);}}var Zi=Object['getOwnPropertyDescriptor'],Qi=(_0x3302e9,_0x27faca,_0x5cbdc7,_0x2912c3)=>{const _0xced644=_0x10cc18;for(var _0x2594f2=_0x2912c3>0x1?void 0x0:_0x2912c3?Zi(_0x27faca,_0x5cbdc7):_0x27faca,_0x39b844=_0x3302e9[_0xced644(0xf9)]-0x1,_0x4add4d;_0x39b844>=0x0;_0x39b844--)(_0x4add4d=_0x3302e9[_0x39b844])&&(_0x2594f2=_0x4add4d(_0x2594f2)||_0x2594f2);return _0x2594f2;},ie=(_0xa1a12a,_0x2bdbc0)=>(_0x3d4e3b,_0x38f83d)=>_0x2bdbc0(_0x3d4e3b,_0x38f83d,_0xa1a12a);let Fe=class extends _0x460db8{constructor(_0x8fde48,_0x810d11,_0x265390,_0x43256d,_0xd822fb){const _0x5f1e4b=_0x10cc18;super(),_(this,_0x5f1e4b(0x272),[]),_(this,'_cursors',[]),(this[_0x5f1e4b(0x187)]=_0x8fde48,this[_0x5f1e4b(0x10b)]=_0x810d11,this['_collabCursorController']=_0x265390,this[_0x5f1e4b(0x29c)]=_0x43256d,this[_0x5f1e4b(0x11f)]=_0xd822fb,this[_0x5f1e4b(0x25e)]());}['_init'](){const _0x3dac2f=_0x10cc18,_0x4f6aff=this[_0x3dac2f(0x187)][_0x3dac2f(0x16a)],_0x2ef8e9=this[_0x3dac2f(0x10b)];this[_0x3dac2f(0x1bc)](_0x5c05c1([this[_0x3dac2f(0x1d2)][_0x3dac2f(0x189)](_0x4f6aff),this[_0x3dac2f(0x11f)]['currentTheme$']])[_0x3dac2f(0x297)](_0x47b623(([_0x4a02cd,_0x194490])=>({'skeleton':_0x2ef8e9[_0x3dac2f(0x119)](),'cursors':[..._0x4a02cd['values']()][_0x3dac2f(0xfa)](_0x100a2a=>({..._0x100a2a,'color':this[_0x3dac2f(0x11f)][_0x3dac2f(0x2b0)](_0x100a2a[_0x3dac2f(0x1e5)])}))})))[_0x3dac2f(0x288)](_0x28a8c5=>{const _0x52a3f0=_0x3dac2f;if(this[_0x52a3f0(0x10d)](),_0x28a8c5){const {skeleton:_0x3edfb5,cursors:_0x5c3ca1}=_0x28a8c5;this[_0x52a3f0(0x2d7)](_0x3edfb5,_0x5c3ca1);}})),this[_0x3dac2f(0x24f)](),this[_0x3dac2f(0x207)]();}[_0x10cc18(0x2d7)](_0x9a82b6,_0x3f18db){const _0x2d7862=_0x10cc18,{scene:_0x64ffb6,mainComponent:_0x505401}=this[_0x2d7862(0x187)],_0x4e5207=_0x3f18db[_0x2d7862(0x2fb)](_0x2c7ddc=>new ct(_0x2c7ddc,_0x64ffb6,_0x9a82b6,_0x505401));this[_0x2d7862(0x272)]=_0x4e5207,this[_0x2d7862(0x2e9)]=_0x3f18db;}[_0x10cc18(0xe5)](){const _0x28a722=_0x10cc18;this['_removeCollabCursors']();const {scene:_0x58b5c5,mainComponent:_0x5c2be1}=this[_0x28a722(0x187)],_0x39859f=this[_0x28a722(0x10b)][_0x28a722(0x119)](),_0x5818a3=this['_cursors'][_0x28a722(0x2fb)](_0x690e53=>new ct(_0x690e53,_0x58b5c5,_0x39859f,_0x5c2be1));this[_0x28a722(0x272)]=_0x5818a3;}[_0x10cc18(0x10d)](){const _0x26e20e=_0x10cc18;this['_cursorShapes'][_0x26e20e(0x12c)](_0x1f0114=>_0x1f0114[_0x26e20e(0x233)]()),this['_cursorShapes']=[];}[_0x10cc18(0x207)](){const _0x51dab9=_0x10cc18,_0x4dec36=[_0x198811['id']];this[_0x51dab9(0x1bc)](this[_0x51dab9(0x29c)][_0x51dab9(0x164)](_0x20a7ec=>{const _0x224ba8=_0x51dab9;_0x4dec36[_0x224ba8(0x231)](_0x20a7ec['id'])&&_0x20a7ec['params']['unitId']===this[_0x224ba8(0x187)][_0x224ba8(0x16a)]&&this[_0x224ba8(0xe5)]();}));}[_0x10cc18(0x24f)](){const _0x2c14f7=_0x10cc18;this[_0x2c14f7(0x1bc)](_0x2b51fa(this[_0x2c14f7(0x187)][_0x2c14f7(0x202)]['onTransformChange$'])[_0x2c14f7(0x297)](_0x3cb932(_0x160482=>_0x160482[_0x2c14f7(0x1ce)]===_0x4c9c8a[_0x2c14f7(0x1fc)]),_0x5756a9(0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0x2c9f2f(_0x9d459b)),ie(0x2,_0x2c9f2f(H)),ie(0x3,_0x526fee),ie(0x4,_0x2c9f2f(_0x31d312))],Fe);const qi=0x1,en=1.5;class tn extends _0x28bace{constructor(_0x14037f,_0x6a4e50){const _0x224016=_0x10cc18;super(_0x14037f,_0x6a4e50),_(this,_0x224016(0x213)),_(this,_0x224016(0x25f),!0x1),_(this,_0x224016(0x274)),_(this,_0x224016(0x278),''),_(this,_0x224016(0x2b3),_0x224016(0x299)),_(this,_0x224016(0x2ce)),(_0x6a4e50&&this[_0x224016(0x122)](_0x6a4e50),this['onPointerEnter$'][_0x224016(0x2c4)](()=>this[_0x224016(0x122)]({'hovered':!0x0})),this[_0x224016(0x26e)][_0x224016(0x2c4)](()=>this[_0x224016(0x122)]({'hovered':!0x1})));}[_0x10cc18(0x122)](_0x2d086f){const _0x554365=_0x10cc18;var _0x5bc9fc,_0xa9aedd,_0x420879,_0x309937,_0x258cba,_0x59dfc4;this['_color']=(_0x5bc9fc=_0x2d086f[_0x554365(0x1e5)])!=null?_0x5bc9fc:this[_0x554365(0x213)],this[_0x554365(0x25f)]=(_0xa9aedd=_0x2d086f[_0x554365(0x1eb)])!=null?_0xa9aedd:this['_hovered'],this['_range']=(_0x420879=_0x2d086f['range'])!=null?_0x420879:this[_0x554365(0x274)],this[_0x554365(0x278)]=(_0x309937=_0x2d086f[_0x554365(0x27a)])!=null?_0x309937:this['_name'],this[_0x554365(0x2b3)]=(_0x258cba=_0x2d086f[_0x554365(0x246)])!=null?_0x258cba:this['_labelPosition'],this[_0x554365(0x2ce)]=(_0x59dfc4=_0x2d086f[_0x554365(0x108)])!=null?_0x59dfc4:this[_0x554365(0x2ce)],this[_0x554365(0x20e)]({'width':_0x2d086f[_0x554365(0x320)],'height':_0x2d086f['height']});}[_0x10cc18(0x310)](_0x53a791){const _0xf43080=_0x10cc18,{row:_0x44ffb8,column:_0x509269}=_0x53a791;if(_0x44ffb8>=this[_0xf43080(0x274)][_0xf43080(0xf7)]&&_0x44ffb8<=this['_range'][_0xf43080(0x296)]&&_0x509269>=this[_0xf43080(0x274)][_0xf43080(0x280)]&&_0x509269<=this[_0xf43080(0x274)][_0xf43080(0x15f)]){this[_0xf43080(0x122)]({'hovered':!0x0});return;}this[_0xf43080(0x122)]({'hovered':!0x1});}[_0x10cc18(0x1bd)](_0x4f04f4){return!0x1;}[_0x10cc18(0x261)](_0x4cc091){const _0x52a3ff=_0x10cc18;_0x2dfad6[_0x52a3ff(0x285)](_0x4cc091,{'width':this[_0x52a3ff(0x320)],'height':this[_0x52a3ff(0x17a)],'strokeWidth':en,'stroke':this[_0x52a3ff(0x213)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x4cc091[_0x52a3ff(0x211)](),_0x4cc091[_0x52a3ff(0x1ef)](0x1,0x0,0x0,0x1,this[_0x52a3ff(0x320)],this[_0x52a3ff(0x2b3)]==='bottom'?0x0:-Q),Ee[_0x52a3ff(0x285)](_0x4cc091,{'text':this[_0x52a3ff(0x278)],'color':this['_color']}),_0x4cc091[_0x52a3ff(0x32e)]());}}var sn=Object[_0x10cc18(0x1ea)],nn=(_0x3a883b,_0x3ff8e9,_0x17202e,_0x329391)=>{const _0x418071=_0x10cc18;for(var _0x3fe8a5=_0x329391>0x1?void 0x0:_0x329391?sn(_0x3ff8e9,_0x17202e):_0x3ff8e9,_0x1014ed=_0x3a883b[_0x418071(0xf9)]-0x1,_0x1d8579;_0x1014ed>=0x0;_0x1014ed--)(_0x1d8579=_0x3a883b[_0x1014ed])&&(_0x3fe8a5=_0x1d8579(_0x3fe8a5)||_0x3fe8a5);return _0x3fe8a5;},Ne=(_0x503935,_0x1ea326)=>(_0x4b8e5d,_0x4e404c)=>_0x1ea326(_0x4b8e5d,_0x4e404c,_0x503935);const rn=0x1389;let ke=class extends _0x460db8{constructor(_0x9d1720,_0x53187c,_0x3bc7c,_0x103db0){const _0x297507=_0x10cc18;super(),_(this,_0x297507(0x2e9),new Set()),_(this,_0x297507(0x312),null),(this[_0x297507(0x187)]=_0x9d1720,this['_sheetSkeletonManagerService']=_0x53187c,this[_0x297507(0x1d2)]=_0x3bc7c,this[_0x297507(0x11f)]=_0x103db0,this['_init']());}[_0x10cc18(0x25e)](){const _0x358e93=_0x10cc18;this[_0x358e93(0x26d)][_0x358e93(0x2c6)][_0x358e93(0x297)](_0x2ea52d(this[_0x358e93(0x20f)]),_0x33a13a(_0x3786f1=>{const _0x5e49a7=_0x358e93;if(_0x3786f1){const _0x57cc08=_0x3786f1[_0x5e49a7(0x18a)];return _0x5c05c1(this[_0x5e49a7(0x1d2)][_0x5e49a7(0x189)](this[_0x5e49a7(0x187)]['unitId']),this[_0x5e49a7(0x11f)][_0x5e49a7(0x265)])[_0x5e49a7(0x297)](_0x47b623(([_0x5e4721,_0x1d058e])=>{const _0xafe4b1=_0x5e49a7,_0x26ce0b=new Map();return _0x5e4721[_0xafe4b1(0x12c)]((_0x2039a8,_0x507d1f)=>{const _0x1360fb=_0xafe4b1;if(_0x2039a8[_0x1360fb(0x1fd)]===_0x57cc08){const _0x379bca={..._0x2039a8};_0x379bca[_0x1360fb(0x1e5)]=this[_0x1360fb(0x11f)][_0x1360fb(0x2b0)](_0x2039a8[_0x1360fb(0x1e5)]),_0x26ce0b['set'](_0x507d1f,_0x379bca);}}),{'skeleton':_0x3786f1,'cursors':_0x26ce0b};}));}return _0x281440({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x56a350,cursors:_0x34125d})=>{const _0x39c58b=_0x358e93;this[_0x39c58b(0x10d)](),_0x56a350&&this[_0x39c58b(0x2d7)](_0x56a350,_0x34125d);}),this[_0x358e93(0x26d)][_0x358e93(0x2c6)][_0x358e93(0x288)](_0xd2c59c=>{const _0x9f3589=_0x358e93;if(_0xd2c59c==null)return;const {skeleton:_0x23ae51}=_0xd2c59c,{scene:_0x5044e5}=this[_0x9f3589(0x187)];_0x5044e5[_0x9f3589(0x255)][_0x9f3589(0x2c4)](_0x51b589(_0x1263ac=>{const _0x12055b=_0x9f3589;var _0x12db83,_0x181477;const {offsetX:_0x26ee5c,offsetY:_0x3a6003}=_0x1263ac,{x:_0x8fdd29,y:_0x3d666d}=_0x5044e5['getRelativeToViewportCoord'](_0x4b7404[_0x12055b(0x30a)]([_0x26ee5c,_0x3a6003])),{scaleX:_0x44fb37,scaleY:_0x188103}=_0x5044e5[_0x12055b(0x157)](),_0x2c0a89=_0x5044e5[_0x12055b(0x22a)](_0x32c43e[_0x12055b(0x293)]),_0xc8f162=_0x5044e5[_0x12055b(0x2e1)](_0x4b7404[_0x12055b(0x30a)]([_0x8fdd29,_0x3d666d]),_0x2c0a89),_0x58272c=_0x23ae51[_0x12055b(0x30e)](_0x26ee5c,_0x3a6003,_0x44fb37,_0x188103,_0xc8f162);((_0x12db83=this[_0x12055b(0x312)])==null?void 0x0:_0x12db83[_0x12055b(0x2c0)])===_0x58272c[_0x12055b(0x2c0)]&&((_0x181477=this[_0x12055b(0x312)])==null?void 0x0:_0x181477['row'])===_0x58272c['row']||this[_0x12055b(0x2e9)][_0x12055b(0x12c)](_0x4e8385=>{const _0x16affd=_0x12055b;_0x4e8385[_0x16affd(0x310)](_0x58272c);});},0x64));});}[_0x10cc18(0x2d7)](_0x204b77,_0xda0728){const _0x515e90=_0x10cc18;var _0x312c29;const _0x59a503=(_0x312c29=this[_0x515e90(0x26d)][_0x515e90(0x1d3)]())==null?void 0x0:_0x312c29[_0x515e90(0x126)];if(!_0x59a503)return;const _0x13bbde=this['_getSheetObject']();if(!_0x13bbde)return;this[_0x515e90(0x2e9)][_0x515e90(0x12c)](_0x58d37b=>{_0x58d37b['makeDirty']();});const {scene:_0x5efa8c}=_0x13bbde,_0x141f09=on(Array['from'](_0xda0728['values']()))[_0x515e90(0x2fb)](_0xc0f61f=>{const _0x5ea3e2=_0x515e90,{color:_0x36b2ce,range:_0x929e7c,name:_0x2734ed,selection:_0x3e45e4,sheetID:_0x2d1435}=_0xc0f61f,{startColumn:_0x576b6c,startRow:_0x500a1b,endColumn:_0x22f339,endRow:_0x38bb72}=_0x929e7c,_0x3790f2=_0x2094e3(_0x500a1b,_0x576b6c,_0x5efa8c,_0x59a503),_0x430db7=_0x2094e3(_0x38bb72,_0x22f339,_0x5efa8c,_0x59a503),{columnHeaderHeightAndMarginTop:_0x386d5b}=_0x59a503,{startX:_0x166b2c,startY:_0x3c6201}=_0x3790f2,{endX:_0xb37cb6,endY:_0x241798}=_0x430db7,_0x1bb7c2=_0xb37cb6-_0x166b2c,_0x3ee683=_0x241798-_0x3c6201,_0x5a5e92={'labelPosition':_0x3c6201-_0x386d5b>=Q?_0x5ea3e2(0x299):_0x5ea3e2(0x1c7),'sheetID':_0x2d1435,'range':_0x929e7c,'color':_0x36b2ce,'name':_0x2734ed,'selection':_0x3e45e4,'left':_0x166b2c,'top':_0x3c6201,'width':_0x1bb7c2,'height':_0x3ee683,'evented':!0x1,'zIndex':rn};return new tn(_0x2734ed,_0x5a5e92);});_0x5efa8c[_0x515e90(0x234)](_0x141f09,qi),this[_0x515e90(0x2e9)]=new Set(_0x141f09);}['_removeCollabCursors'](){const _0x3a2492=_0x10cc18;var _0x51c7a7;(_0x51c7a7=this[_0x3a2492(0x2e9)])==null||_0x51c7a7[_0x3a2492(0x12c)](_0x4be8e1=>_0x4be8e1[_0x3a2492(0x233)]());}['_getSheetObject'](){const _0x5e2722=_0x10cc18;return _0x32f0c0(this[_0x5e2722(0x187)]['unit'],this['_context']);}};ke=nn([Ne(0x1,_0x2c9f2f(_0x2cb62f)),Ne(0x2,_0x2c9f2f(H)),Ne(0x3,_0x2c9f2f(_0x31d312))],ke);function on(_0x2e25dc){const _0x41b685=_0x10cc18,_0x3981c2=new Map();return _0x2e25dc[_0x41b685(0x12c)](_0xca24a9=>{const _0x2c4c04=_0x41b685;if(_0x3981c2[_0x2c4c04(0x2bd)](_0xca24a9[_0x2c4c04(0x107)])){const _0x503722=_0x3981c2[_0x2c4c04(0x127)](_0xca24a9[_0x2c4c04(0x107)]);_0x503722[_0x2c4c04(0x27a)]+=',\x20'+_0xca24a9[_0x2c4c04(0x27a)];}else _0x3981c2[_0x2c4c04(0x239)](_0xca24a9['selection'],_0xca24a9);}),Array['from'](_0x3981c2['values']());}function _0x58c2(_0x1ab2b1,_0x39d731){const _0x270efc=_0x270e();return _0x58c2=function(_0x58c22a,_0x4188ba){_0x58c22a=_0x58c22a-0xe4;let _0xc3c535=_0x270efc[_0x58c22a];return _0xc3c535;},_0x58c2(_0x1ab2b1,_0x39d731);}var an=Object[_0x10cc18(0x1ea)],cn=(_0x1c75eb,_0xfdd4d8,_0x9389de,_0x28ae0a)=>{const _0x5cc2cd=_0x10cc18;for(var _0x1dda77=_0x28ae0a>0x1?void 0x0:_0x28ae0a?an(_0xfdd4d8,_0x9389de):_0xfdd4d8,_0x527467=_0x1c75eb[_0x5cc2cd(0xf9)]-0x1,_0x4b383c;_0x527467>=0x0;_0x527467--)(_0x4b383c=_0x1c75eb[_0x527467])&&(_0x1dda77=_0x4b383c(_0x1dda77)||_0x1dda77);return _0x1dda77;},F=(_0x4d0cf7,_0x565d54)=>(_0x330465,_0x25a67b)=>_0x565d54(_0x330465,_0x25a67b,_0x4d0cf7);let _e=class extends _0x3e748e{constructor(_0x4d5f76,_0x3cd275,_0x232be5,_0xfd79f3,_0x2bfebd,_0xb5f199){const _0x1f3029=_0x10cc18;super(),this[_0x1f3029(0x263)]=_0x4d5f76,this[_0x1f3029(0x128)]=_0x3cd275,this[_0x1f3029(0x331)]=_0x232be5,this[_0x1f3029(0x279)]=_0xfd79f3,this['_notificationService']=_0x2bfebd,this[_0x1f3029(0x303)]=_0xb5f199,this[_0x1f3029(0x1d4)](),this[_0x1f3029(0x22b)]();}[_0x10cc18(0x1d4)](){const _0x75c75a=_0x10cc18;this['disposeWithMe'](this[_0x75c75a(0x263)][_0x75c75a(0x163)](()=>{const _0x196a53=_0x75c75a;if(this[_0x196a53(0x128)][_0x196a53(0x1df)][_0x196a53(0x20b)])return this[_0x196a53(0x303)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x10cc18(0x22b)](){const _0x5132eb=_0x10cc18;this[_0x5132eb(0x1bc)](this[_0x5132eb(0x331)][_0x5132eb(0x1c5)][_0x5132eb(0x288)](_0x15a3de=>{const _0x410494=_0x5132eb;_0x15a3de['id']===_0x5e0b6b[_0x410494(0x1b0)]&&this[_0x410494(0x279)][_0x410494(0xe7)]({'type':_0x22c147['Warning'],'content':this[_0x410494(0x303)]['t'](_0x410494(0x194))}),_0x15a3de['id']===_0x5e0b6b['CLOSE_ROOM']&&this[_0x410494(0x279)][_0x410494(0xe7)]({'type':_0x22c147[_0x410494(0x2c8)],'content':this['_localeService']['t'](_0x410494(0x2ab))}),_0x15a3de['id']===_0x5e0b6b[_0x410494(0x2b8)]&&this['_notificationService'][_0x410494(0xe7)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x410494(0x303)]['t'](_0x410494(0x121)),'type':_0x410494(0x1ac),'duration':0x0}),_0x15a3de['id']===_0x5e0b6b['CONFLICT']&&this['_messageService'][_0x410494(0xe7)]({'type':_0x22c147['Error'],'content':this[_0x410494(0x303)]['t'](_0x410494(0x2ab))+'('+_0x15a3de[_0x410494(0x1e0)]+')'}),_0x15a3de['id']===_0x5e0b6b[_0x410494(0x26a)]&&this[_0x410494(0x279)]['show']({'type':_0x22c147[_0x410494(0x2c8)],'content':this[_0x410494(0x303)]['t'](_0x15a3de['data']||'')}),_0x15a3de['id']===_0x5e0b6b[_0x410494(0x17b)]&&this['_messageService'][_0x410494(0xe7)]({'type':_0x22c147[_0x410494(0x2c8)],'content':this[_0x410494(0x303)]['t'](_0x410494(0x148))}),_0x15a3de['id']===_0x5e0b6b['SOCKET_FAILED']&&this[_0x410494(0x279)][_0x410494(0xe7)]({'type':_0x22c147[_0x410494(0x153)],'content':this['_localeService']['t'](_0x410494(0xfc))}),_0x15a3de['id']===_0x5e0b6b[_0x410494(0xee)]&&this[_0x410494(0x279)][_0x410494(0xe7)]({'type':_0x22c147[_0x410494(0x153)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};_e=cn([F(0x0,_0x4d68ed),F(0x1,_0x3a4f5a),F(0x2,_0x2c9f2f(_0x32b243)),F(0x3,_0x41d342),F(0x4,_0x3c2d52),F(0x5,_0x2c9f2f(_0xefd7ba))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0x239ad6,_0x4e12a5,_0xd103a9,_0x2256da)=>{for(var _0x1ebdb5=_0x2256da>0x1?void 0x0:_0x2256da?_n(_0x4e12a5,_0xd103a9):_0x4e12a5,_0x3c41c7=_0x239ad6['length']-0x1,_0x3f1378;_0x3c41c7>=0x0;_0x3c41c7--)(_0x3f1378=_0x239ad6[_0x3c41c7])&&(_0x1ebdb5=_0x3f1378(_0x1ebdb5)||_0x1ebdb5);return _0x1ebdb5;},ne=(_0x55032a,_0x3c8d61)=>(_0x31ed82,_0x58a613)=>_0x3c8d61(_0x31ed82,_0x58a613,_0x55032a);let le=class extends _0x3e748e{constructor(_0x2f4959,_0x506dbb,_0x5cd175,_0x159810){const _0xa5353f=_0x10cc18;super(),_(this,'_memberID'),(this['_injector']=_0x2f4959,this[_0xa5353f(0x276)]=_0x506dbb,this['_logService']=_0x5cd175,this['_collaborationSessionService']=_0x159810,this['_init']());}[_0x10cc18(0x25e)](){const _0x2ebc47=_0x10cc18;this[_0x2ebc47(0x250)](),this['_initUnhandledRejectionListener'](),this[_0x2ebc47(0x2f7)](),this[_0x2ebc47(0x222)]();}[_0x10cc18(0x222)](){const _0x4b80a7=_0x10cc18;this['disposeWithMe'](this[_0x4b80a7(0x292)][_0x4b80a7(0x137)][_0x4b80a7(0x288)](_0x5c302b=>{this['_memberID']=_0x5c302b==null?void 0x0:_0x5c302b['memberID'];}));}[_0x10cc18(0x250)](){const _0x204d12=_0x10cc18,_0x447b60=_0x5e777b=>{const _0x1ad90c=_0x58c2;var _0x6c6291;this[_0x1ad90c(0x14d)](_0x1ad90c(0x1ac),'[Window\x20Error]:\x20'+_0x5e777b['message']+'\x20at\x20'+_0x5e777b[_0x1ad90c(0x20c)]+':'+_0x5e777b[_0x1ad90c(0x1da)]+':'+_0x5e777b[_0x1ad90c(0x134)]+'\x0a'+(((_0x6c6291=_0x5e777b[_0x1ad90c(0x1ac)])==null?void 0x0:_0x6c6291[_0x1ad90c(0x25b)])||''));};window[_0x204d12(0x325)](_0x204d12(0x1ac),_0x447b60),this[_0x204d12(0x1bc)](()=>{const _0x4877b5=_0x204d12;window[_0x4877b5(0x251)](_0x4877b5(0x1ac),_0x447b60);});}[_0x10cc18(0x115)](){const _0x8b2f99=_0x10cc18,_0x183213=_0x1c6e99=>{const _0x329052=_0x58c2;this[_0x329052(0x14d)](_0x329052(0x1ac),_0x329052(0x1f3)+_0x1c6e99['reason']);};window[_0x8b2f99(0x325)](_0x8b2f99(0x31f),_0x183213),this[_0x8b2f99(0x1bc)](()=>{const _0x143a93=_0x8b2f99;window[_0x143a93(0x251)]('unhandledrejection',_0x183213);});}[_0x10cc18(0x2f7)](){const _0x4f7c40=_0x10cc18,_0x195ac2=this[_0x4f7c40(0x190)][_0x4f7c40(0x1ac)]['bind'](this[_0x4f7c40(0x190)]);this[_0x4f7c40(0x190)][_0x4f7c40(0x1ac)]=(..._0x44ab1e)=>{const _0x264ede=_0x4f7c40,_0x374341=_0x44ab1e[_0x264ede(0x2fb)](_0x18554c=>_0x18554c instanceof Error?_0x18554c[_0x264ede(0x2bc)]+'\x0a'+_0x18554c['stack']:String(_0x18554c))[_0x264ede(0x175)]('\x20');this['_uploadLog']('error','[LogService\x20Error]:\x20'+_0x374341),_0x195ac2(..._0x44ab1e);},this['disposeWithMe'](()=>{const _0x512447=_0x4f7c40;this[_0x512447(0x190)][_0x512447(0x1ac)]=_0x195ac2;});}[_0x10cc18(0x14d)](_0x130334,_0x41781b){const _0x53081c=_0x10cc18;try{const _0x5c6fd1={'userId':this[_0x53081c(0x311)],'logLabel':_0x130334,'content':_0x41781b};this['_httpService']['post'](_0x53081c(0x2d6),{'body':_0x5c6fd1})[_0x53081c(0x1c1)](()=>{});}catch{}}};le=ln([ne(0x0,_0x2c9f2f(_0x3955fb)),ne(0x1,_0x2c9f2f(_0x47ffcb)),ne(0x2,_0x1368e3),ne(0x3,_0x2c9f2f(_0x1abc06))],le);const hn=_0x10cc18(0x1cd),_t={};var un=Object[_0x10cc18(0x1ea)],dn=(_0x1a4275,_0x34d69d,_0x3d2f91,_0x3e50e6)=>{const _0x106de8=_0x10cc18;for(var _0x2ff2b2=_0x3e50e6>0x1?void 0x0:_0x3e50e6?un(_0x34d69d,_0x3d2f91):_0x34d69d,_0x3f53c6=_0x1a4275[_0x106de8(0xf9)]-0x1,_0x2a8361;_0x3f53c6>=0x0;_0x3f53c6--)(_0x2a8361=_0x1a4275[_0x3f53c6])&&(_0x2ff2b2=_0x2a8361(_0x2ff2b2)||_0x2ff2b2);return _0x2ff2b2;},lt=(_0x45250e,_0x19f61d)=>(_0x28be00,_0x45e56d)=>_0x19f61d(_0x28be00,_0x45e56d,_0x45250e);let he=class{constructor(_0x453437,_0x4a39f3){const _0x1fe490=_0x10cc18;this[_0x1fe490(0x16d)]=_0x453437,this[_0x1fe490(0x1f0)]=_0x4a39f3;}[_0x10cc18(0x31d)](_0x4c8e55){const _0x553d2e=_0x10cc18;this[_0x553d2e(0x28d)](_0x4c8e55),this[_0x553d2e(0x17f)](_0x4c8e55);}[_0x10cc18(0x324)](_0x3e2eca){const _0x2138b4=_0x10cc18,{unitID:_0x2b3adb}=_0x3e2eca,_0x54eee6=this[_0x2138b4(0x1f0)][_0x2138b4(0x105)](_0x2b3adb)['with'](_0x10cfe8),{redoCache:_0x2fc7fc}=_0x54eee6['getUndoRedoMutationParamsCache']();if(_0x2fc7fc['length']===0x0)return _0x3e2eca;let _0x4ceb1d=_0x4984ae[_0x2138b4(0x257)](_0x3e2eca[_0x2138b4(0x206)][0x0]);for(let _0x42a7dc=0x0;_0x42a7dc<_0x2fc7fc[_0x2138b4(0xf9)];_0x42a7dc++){const _0x1f7be6={'id':_0x2138b4(0x106),'params':{..._0x2fc7fc[_0x42a7dc]}},_0x5a9468=this[_0x2138b4(0x16d)][_0x2138b4(0x260)](_0x4ceb1d,_0x1f7be6,!0x1);if(_0x3ff0c5(_0x5a9468))throw _0x5a9468[_0x2138b4(0x1ac)];_0x4ceb1d=_0x5a9468[_0x2138b4(0x2aa)];}return{..._0x4984ae['deepClone'](_0x3e2eca),'mutations':[_0x4ceb1d]};}[_0x10cc18(0x28d)](_0x49ccb4){const _0x55b193=_0x10cc18,{unitID:_0x3d2929}=_0x49ccb4,_0x28da71=this[_0x55b193(0x1f0)]['getRenderById'](_0x3d2929)[_0x55b193(0x104)](_0x10cfe8),{undoCache:_0x248e4c,redoCache:_0x49f272}=_0x28da71[_0x55b193(0xf8)]();if(_0x248e4c['length']===0x0||_0x49f272['length']===0x0)return;const _0x207a6c=[],_0x250641=[];let _0x4b7507=_0x4984ae[_0x55b193(0x257)](_0x49ccb4[_0x55b193(0x206)][0x0]),_0x4a72cd=_0x4984ae[_0x55b193(0x257)](_0x49ccb4[_0x55b193(0x206)][0x0]);for(let _0x40c2c1=_0x248e4c[_0x55b193(0xf9)]-0x1;_0x40c2c1>=0x0;_0x40c2c1--){const _0xc4d525={'id':_0x55b193(0x106),'params':{..._0x248e4c[_0x40c2c1]}},_0x1b466d={'id':_0x55b193(0x106),'params':{..._0x49f272[_0x40c2c1]}},_0x5adc51=this[_0x55b193(0x16d)][_0x55b193(0x260)](_0x4b7507,_0xc4d525,!0x1),_0xcb3f84=this['_transformService']['transformMutation'](_0x4a72cd,_0x1b466d,!0x1);if(_0x3ff0c5(_0x5adc51))throw _0x5adc51[_0x55b193(0x1ac)];if(_0x3ff0c5(_0xcb3f84))throw _0xcb3f84['error'];_0x207a6c[_0x55b193(0x1b5)](_0x5adc51[_0x55b193(0x21e)][_0x55b193(0x151)]),_0x250641[_0x55b193(0x1b5)](_0xcb3f84[_0x55b193(0x21e)][_0x55b193(0x151)]),_0x4b7507=_0x5adc51['m1Prime'],_0x4a72cd=_0xcb3f84['m1Prime'];}_0x28da71[_0x55b193(0x1b4)]({'undoCache':_0x207a6c,'redoCache':_0x250641});}['_transformPreviousActiveRange'](_0x4126d3){const _0x397984=_0x10cc18,{unitID:_0x484b5e}=_0x4126d3,_0x52eae8=this[_0x397984(0x1f0)][_0x397984(0x105)](_0x484b5e)[_0x397984(0x104)](_0x10cfe8),_0x2c48eb=_0x52eae8[_0x397984(0x1d7)]();if(_0x2c48eb==null)return;const _0x3dfb56=[{'id':_0x397984(0x106),'params':{'unitId':_0x4126d3[_0x397984(0x249)],'actions':null,'textRanges':[_0x2c48eb]}}],_0x2bf1b9=this[_0x397984(0x16d)][_0x397984(0x28c)](_0x4126d3,_0x3dfb56);if(!_0x4e8f7d(_0x2bf1b9))throw _0x2bf1b9[_0x397984(0x1ac)];const _0x10553d=_0x2bf1b9['m2Prime'][0x0][_0x397984(0x151)]['textRanges'];Array['isArray'](_0x10553d)&&_0x10553d[_0x397984(0xf9)]&&_0x52eae8[_0x397984(0x229)](_0x10553d[0x0]);}};he=dn([lt(0x0,_0x447d81),lt(0x1,_0x20cff4)],he);var Sn=Object[_0x10cc18(0x1ea)],mn=(_0x21a8ce,_0x285d38,_0x1a8836,_0x26e98b)=>{const _0x2860a6=_0x10cc18;for(var _0x24007f=_0x26e98b>0x1?void 0x0:_0x26e98b?Sn(_0x285d38,_0x1a8836):_0x285d38,_0x592092=_0x21a8ce[_0x2860a6(0xf9)]-0x1,_0x59e972;_0x592092>=0x0;_0x592092--)(_0x59e972=_0x21a8ce[_0x592092])&&(_0x24007f=_0x59e972(_0x24007f)||_0x24007f);return _0x24007f;},Le=(_0x16e17a,_0x4b1f4f)=>(_0xf3f0b1,_0x5f2651)=>_0x4b1f4f(_0xf3f0b1,_0x5f2651,_0x16e17a);let ue=class{constructor(_0x520da4,_0x9473e2,_0x40dc1f){const _0x30331f=_0x10cc18;this['_injector']=_0x520da4,this[_0x30331f(0x16d)]=_0x9473e2,this['_docStateChangeManagerService']=_0x40dc1f;}[_0x10cc18(0x13e)](_0x128609){const _0x4306a9=_0x10cc18;this[_0x4306a9(0x10f)](_0x128609);}[_0x10cc18(0x324)](_0x2171e1){const _0x44447a=_0x10cc18,{unitID:_0x36eb05}=_0x2171e1,{collaboration:_0x4016e3}=this[_0x44447a(0x252)]['getStateCache'](_0x36eb05);if(_0x4016e3[_0x44447a(0xf9)]===0x0)return _0x2171e1;let _0x4613f2=_0x4984ae[_0x44447a(0x257)](_0x2171e1['mutations'][0x0]);for(let _0x5a606b=0x0;_0x5a606b<_0x4016e3[_0x44447a(0xf9)];_0x5a606b++){const _0x55e158={'id':_0x44447a(0x106),'params':{'unitId':_0x4016e3[_0x5a606b][_0x44447a(0x16a)],..._0x4016e3[_0x5a606b][_0x44447a(0x307)]}},_0x2a9e0c=this['_transformService'][_0x44447a(0x260)](_0x4613f2,_0x55e158,!0x1);if(_0x3ff0c5(_0x2a9e0c))throw _0x2a9e0c[_0x44447a(0x1ac)];_0x4613f2=_0x2a9e0c['m1Prime'];}return{..._0x4984ae[_0x44447a(0x257)](_0x2171e1),'mutations':[_0x4613f2]};}[_0x10cc18(0x10f)](_0x9ef506){const _0x54986f=_0x10cc18,{unitID:_0x3d55b2}=_0x9ef506,{history:_0x620009,collaboration:_0x4b6721}=this[_0x54986f(0x252)][_0x54986f(0x185)](_0x3d55b2);if(_0x620009[_0x54986f(0xf9)]===0x0&&_0x4b6721[_0x54986f(0xf9)]===0x0)return;const _0x460992=[],_0x56d0ce=[];let _0x494900=_0x4984ae['deepClone'](_0x9ef506[_0x54986f(0x206)][0x0]),_0x4a20fa=_0x4984ae[_0x54986f(0x257)](_0x9ef506['mutations'][0x0]);for(let _0x1320a7=_0x620009[_0x54986f(0xf9)]-0x1;_0x1320a7>=0x0;_0x1320a7--){const _0x33513e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x620009[_0x1320a7][_0x54986f(0x16a)],..._0x620009[_0x1320a7][_0x54986f(0x109)]}},_0x192a10={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x620009[_0x1320a7]['unitId'],..._0x620009[_0x1320a7]['redoState']}},_0xd1f02b=this['_transformService']['transformMutation'](_0x494900,_0x33513e,!0x1),_0x5821dc=this[_0x54986f(0x16d)]['transformMutation'](_0x4a20fa,_0x192a10,!0x1);if(_0x3ff0c5(_0xd1f02b))throw _0xd1f02b[_0x54986f(0x1ac)];if(_0x3ff0c5(_0x5821dc))throw _0x5821dc[_0x54986f(0x1ac)];_0x460992[_0x54986f(0x1b5)]({..._0x620009[_0x1320a7],'undoState':_0xd1f02b['m2Prime'][_0x54986f(0x151)],'redoState':_0x5821dc[_0x54986f(0x21e)]['params']}),_0x494900=_0xd1f02b[_0x54986f(0x2aa)],_0x4a20fa=_0x5821dc['m1Prime'];}_0x494900=_0x4984ae[_0x54986f(0x257)](_0x9ef506[_0x54986f(0x206)][0x0]),_0x4a20fa=_0x4984ae[_0x54986f(0x257)](_0x9ef506['mutations'][0x0]);for(let _0x252832=_0x4b6721[_0x54986f(0xf9)]-0x1;_0x252832>=0x0;_0x252832--){const _0x85f924={'id':_0x54986f(0x106),'params':{'unitId':_0x4b6721[_0x252832][_0x54986f(0x16a)],..._0x4b6721[_0x252832][_0x54986f(0x109)]}},_0x13e0fa={'id':_0x54986f(0x106),'params':{'unitId':_0x4b6721[_0x252832][_0x54986f(0x16a)],..._0x4b6721[_0x252832][_0x54986f(0x307)]}},_0x4a5a3c=this['_transformService'][_0x54986f(0x260)](_0x494900,_0x85f924,!0x1),_0x2d8042=this['_transformService'][_0x54986f(0x260)](_0x4a20fa,_0x13e0fa,!0x1);if(_0x3ff0c5(_0x4a5a3c))throw _0x4a5a3c[_0x54986f(0x1ac)];if(_0x3ff0c5(_0x2d8042))throw _0x2d8042['error'];_0x56d0ce[_0x54986f(0x1b5)]({..._0x4b6721[_0x252832],'undoState':_0x4a5a3c[_0x54986f(0x21e)][_0x54986f(0x151)],'redoState':_0x2d8042['m2Prime']['params']}),_0x494900=_0x4a5a3c[_0x54986f(0x2aa)],_0x4a20fa=_0x2d8042[_0x54986f(0x2aa)];}this[_0x54986f(0x252)][_0x54986f(0x22c)](_0x3d55b2,{'history':_0x460992,'collaboration':_0x56d0ce});}};ue=mn([Le(0x0,_0x2c9f2f(_0x3955fb)),Le(0x1,_0x447d81),Le(0x2,_0x2c9f2f(_0x58cfb8))],ue);var In=Object[_0x10cc18(0x1ea)],fn=(_0x50f8f6,_0x25b639,_0x52f4ed,_0xe87461)=>{for(var _0x148cca=_0xe87461>0x1?void 0x0:_0xe87461?In(_0x25b639,_0x52f4ed):_0x25b639,_0x7f7a08=_0x50f8f6['length']-0x1,_0x2904c3;_0x7f7a08>=0x0;_0x7f7a08--)(_0x2904c3=_0x50f8f6[_0x7f7a08])&&(_0x148cca=_0x2904c3(_0x148cca)||_0x148cca);return _0x148cca;},ht=(_0xb998d8,_0x44ceed)=>(_0x5818ad,_0x1cacb8)=>_0x44ceed(_0x5818ad,_0x1cacb8,_0xb998d8);let de=class{constructor(_0x309edc,_0x44d1ad){const _0x43b9d3=_0x10cc18;this[_0x43b9d3(0xf0)]=_0x309edc,this[_0x43b9d3(0x16d)]=_0x44d1ad;}['transformSelections'](_0x598361){const _0xef872e=_0x10cc18;var _0x37cbae;const _0x4dc4e6=this[_0xef872e(0xf0)][_0xef872e(0x127)](_0x196312),_0x8dcbf0=(_0x37cbae=_0x4dc4e6[_0xef872e(0x1d8)]())!=null?_0x37cbae:[];if(_0x8dcbf0[_0xef872e(0xf9)]===0x0)return;const _0x490675=_0x598361[_0xef872e(0x249)],_0x2a67f5=[{'id':_0xef872e(0x106),'params':{'unitId':_0x490675,'actions':null,'textRanges':_0x8dcbf0}}],_0x2430f8=this[_0xef872e(0x16d)][_0xef872e(0x28c)](_0x598361,_0x2a67f5);if(!_0x4e8f7d(_0x2430f8))throw _0x2430f8[_0xef872e(0x1ac)];const _0x50439a=_0x2430f8[_0xef872e(0x21e)][0x0][_0xef872e(0x151)][_0xef872e(0x1a2)];Array[_0xef872e(0x2d1)](_0x50439a)&&_0x50439a[_0xef872e(0xf9)]&&_0x4dc4e6['replaceDocRanges'](_0x50439a,{'unitId':_0x490675,'subUnitId':_0x490675},!0x1);}};de=fn([ht(0x0,_0x2c9f2f(_0x3955fb)),ht(0x1,_0x447d81)],de);var gn=Object['getOwnPropertyDescriptor'],vn=(_0x464b87,_0x2647aa,_0x3e4df8,_0x23a408)=>{const _0x5d2288=_0x10cc18;for(var _0xc1784c=_0x23a408>0x1?void 0x0:_0x23a408?gn(_0x2647aa,_0x3e4df8):_0x2647aa,_0x11304a=_0x464b87[_0x5d2288(0xf9)]-0x1,_0x8b6e8f;_0x11304a>=0x0;_0x11304a--)(_0x8b6e8f=_0x464b87[_0x11304a])&&(_0xc1784c=_0x8b6e8f(_0xc1784c)||_0xc1784c);return _0xc1784c;},U=(_0xcadf04,_0x305096)=>(_0xf4f47a,_0x28f1bd)=>_0x305096(_0xf4f47a,_0x28f1bd,_0xcadf04);let Se=class extends _0x3e748e{constructor(_0x1e18af,_0x25be45,_0x480daf,_0x2c6318,_0x30caa3,_0x447c82,_0x42a86a,_0x159519){const _0x195893=_0x10cc18;super(),_(this,_0x195893(0x1f8),new _0x1ced39(_0x3d84ba['NOT_COLLAB'])),(this[_0x195893(0x252)]=_0x1e18af,this[_0x195893(0x1c9)]=_0x25be45,this['_docTransformIMECacheService']=_0x480daf,this[_0x195893(0x145)]=_0x2c6318,this[_0x195893(0x2a9)]=_0x30caa3,this['_docSyncEditingCollabCursorService']=_0x447c82,this[_0x195893(0x279)]=_0x42a86a,this[_0x195893(0x303)]=_0x159519,this[_0x195893(0x123)]());}[_0x10cc18(0x123)](){const _0x267b2e=_0x10cc18;this['disposeWithMe'](this[_0x267b2e(0x1c9)]['entityInit$']['subscribe'](_0x536905=>{const _0x5a481f=_0x267b2e,_0x52c5c0=this['_docStateChangeManagerService'][_0x5a481f(0x2ec)]['subscribe'](_0x6cce2e=>{const _0x35e53f=_0x5a481f;if(_0x6cce2e==null)return;const {unitId:_0x34650a,redoState:_0x372c23,commandId:_0x3f4612}=_0x6cce2e;if(_0x34650a!==_0x536905[_0x35e53f(0x249)])return;const _0x33b1f8={'id':_0x3f4612,'type':_0x3e471d[_0x35e53f(0x228)],'params':{'unitId':_0x34650a,'actions':_0x372c23[_0x35e53f(0x230)],'textRanges':null}};_0x536905[_0x35e53f(0x102)](_0x33b1f8);});if(_0x536905[_0x5a481f(0x1bc)](_0x52c5c0),_0x536905 instanceof _0x59b116){const _0x404b56={'onTransformIME':_0x3fd6a5=>this[_0x5a481f(0x2e6)][_0x5a481f(0x31d)](_0x3fd6a5),'onTransformState':_0x534a90=>this['_docTransformStateCacheService'][_0x5a481f(0x13e)](_0x534a90),'onTransformSelections':_0x59dfc9=>this[_0x5a481f(0x2a9)][_0x5a481f(0x29e)](_0x59dfc9),'onSyncEditingCollabCursor':_0x102a84=>this[_0x5a481f(0x1a4)][_0x5a481f(0x199)](_0x102a84),'onTransformRemoteChangesetByIMECache':_0x3bc2ec=>this[_0x5a481f(0x2e6)][_0x5a481f(0x324)](_0x3bc2ec),'onTransformRemoteChangesetByStateCache':_0x178f40=>this[_0x5a481f(0x145)][_0x5a481f(0x324)](_0x178f40)};_0x536905[_0x5a481f(0x1ff)](_0x404b56);}}));}};Se=vn([U(0x0,_0x2c9f2f(_0x58cfb8)),U(0x1,_0x2c9f2f(_0x69ed9c)),U(0x2,_0x2c9f2f(he)),U(0x3,_0x2c9f2f(ue)),U(0x4,_0x2c9f2f(de)),U(0x5,_0x2c9f2f(ze)),U(0x6,_0x41d342),U(0x7,_0x2c9f2f(_0xefd7ba))],Se);var Z=(_0x2988cf=>(_0x2988cf[_0x2988cf[_0x10cc18(0x1a6)]=0x0]=_0x10cc18(0x1a6),_0x2988cf[_0x2988cf['OK']=0x1]='OK',_0x2988cf[_0x2988cf[_0x10cc18(0x12a)]=0x2]=_0x10cc18(0x12a),_0x2988cf[_0x2988cf[_0x10cc18(0x2b8)]=0x3]=_0x10cc18(0x2b8),_0x2988cf[_0x2988cf[_0x10cc18(0x1ba)]=0x4]=_0x10cc18(0x1ba),_0x2988cf[_0x2988cf[_0x10cc18(0x174)]=0x5]='UNAUTHENTICATED',_0x2988cf[_0x2988cf[_0x10cc18(0x220)]=0x6]=_0x10cc18(0x220),_0x2988cf[_0x2988cf[_0x10cc18(0x2f2)]=0x7]=_0x10cc18(0x2f2),_0x2988cf[_0x2988cf['TOO_MANY_REQUESTS']=0x8]=_0x10cc18(0x2f3),_0x2988cf[_0x2988cf[_0x10cc18(0x196)]=0x9]=_0x10cc18(0x196),_0x2988cf[_0x2988cf['LOGIN_FAILED']=0xa]=_0x10cc18(0x267),_0x2988cf[_0x2988cf[_0x10cc18(0x1f6)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x2988cf[_0x2988cf[_0x10cc18(0x17c)]=0xc]=_0x10cc18(0x17c),_0x2988cf[_0x2988cf[_0x10cc18(0x1d5)]=0xd]=_0x10cc18(0x1d5),_0x2988cf[_0x2988cf[_0x10cc18(0x283)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x2988cf[_0x2988cf[_0x10cc18(0x1bf)]=0xf]=_0x10cc18(0x1bf),_0x2988cf[_0x2988cf[_0x10cc18(0x1b3)]=0x10]=_0x10cc18(0x1b3),_0x2988cf[_0x2988cf['CURRENT_STATUS_CANNOT_OPERATE']=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x2988cf[_0x2988cf['ERROR_AGAIN']=0x65]=_0x10cc18(0x1dd),_0x2988cf[_0x2988cf[_0x10cc18(0x29a)]=0xc9]=_0x10cc18(0x29a),_0x2988cf[_0x2988cf[_0x10cc18(0x198)]=0xca]='USER_IS_ANONYMOUS',_0x2988cf[_0x2988cf[_0x10cc18(0xf3)]=0x1389]=_0x10cc18(0xf3),_0x2988cf[_0x2988cf[_0x10cc18(0x1a8)]=0x1771]=_0x10cc18(0x1a8),_0x2988cf[_0x2988cf[_0x10cc18(0x2ad)]=0x1772]=_0x10cc18(0x2ad),_0x2988cf[_0x2988cf['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x10cc18(0x2b7),_0x2988cf[_0x2988cf[_0x10cc18(0x31e)]=0x1b59]=_0x10cc18(0x31e),_0x2988cf[_0x2988cf['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x10cc18(0x158),_0x2988cf[_0x2988cf[_0x10cc18(0x321)]=0x1b5b]=_0x10cc18(0x321),_0x2988cf[_0x2988cf[_0x10cc18(0x11e)]=0x1b5c]=_0x10cc18(0x11e),_0x2988cf[_0x2988cf['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x2988cf[_0x2988cf[_0x10cc18(0x100)]=0x1f41]=_0x10cc18(0x100),_0x2988cf[_0x2988cf['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x10cc18(0x221),_0x2988cf[_0x2988cf[_0x10cc18(0x226)]=0x232a]=_0x10cc18(0x226),_0x2988cf[_0x2988cf[_0x10cc18(0x2e5)]=0x232b]=_0x10cc18(0x2e5),_0x2988cf[_0x2988cf['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x10cc18(0x1a0),_0x2988cf[_0x2988cf[_0x10cc18(0x2b4)]=0x232d]=_0x10cc18(0x2b4),_0x2988cf[_0x2988cf['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x2988cf[_0x2988cf[_0x10cc18(0x2eb)]=0x2712]=_0x10cc18(0x2eb),_0x2988cf[_0x2988cf['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x10cc18(0x2b9),_0x2988cf[_0x2988cf[_0x10cc18(0x32a)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2988cf[_0x2988cf[_0x10cc18(0x2e7)]=0x271a]=_0x10cc18(0x2e7),_0x2988cf[_0x2988cf[_0x10cc18(0x212)]=0x271b]=_0x10cc18(0x212),_0x2988cf[_0x2988cf[_0x10cc18(0x152)]=0x271c]=_0x10cc18(0x152),_0x2988cf[_0x2988cf[_0x10cc18(0x19a)]=0x271d]=_0x10cc18(0x19a),_0x2988cf[_0x2988cf[_0x10cc18(0x209)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x2988cf[_0x2988cf[_0x10cc18(0x2cc)]=0x271f]=_0x10cc18(0x2cc),_0x2988cf[_0x2988cf['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x10cc18(0x172),_0x2988cf[_0x2988cf[_0x10cc18(0x27c)]=0x2af9]=_0x10cc18(0x27c),_0x2988cf[_0x2988cf['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x10cc18(0x1bb),_0x2988cf[_0x2988cf[_0x10cc18(0x132)]=0x2ee2]='INVALID_INVITE_CODE',_0x2988cf[_0x2988cf['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x2988cf[_0x2988cf[_0x10cc18(0x160)]=0x2ee4]=_0x10cc18(0x160),_0x2988cf[_0x2988cf[_0x10cc18(0x136)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x2988cf[_0x2988cf['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x10cc18(0x2b1),_0x2988cf[_0x2988cf['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x10cc18(0x1be),_0x2988cf[_0x2988cf[_0x10cc18(0x1cf)]=0x32cb]=_0x10cc18(0x1cf),_0x2988cf[_0x2988cf[_0x10cc18(0x1f2)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x2988cf[_0x2988cf[_0x10cc18(0x16c)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x2988cf[_0x2988cf[_0x10cc18(0x179)]=0x36b3]=_0x10cc18(0x179),_0x2988cf[_0x2988cf[_0x10cc18(0x2d8)]=0x36b4]=_0x10cc18(0x2d8),_0x2988cf[_0x2988cf[_0x10cc18(0x275)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x2988cf[_0x2988cf[_0x10cc18(0x101)]=0x3716]=_0x10cc18(0x101),_0x2988cf[_0x2988cf['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x2988cf[_0x2988cf['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x10cc18(0x2a8),_0x2988cf[_0x2988cf[_0x10cc18(0x24c)]=0x3a99]=_0x10cc18(0x24c),_0x2988cf[_0x2988cf['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x10cc18(0xfd),_0x2988cf[_0x2988cf['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x10cc18(0x146),_0x2988cf[_0x2988cf[_0x10cc18(0x323)]=0x3a9c]=_0x10cc18(0x323),_0x2988cf[_0x2988cf[_0x10cc18(0x23e)]=0x3a9d]=_0x10cc18(0x23e),_0x2988cf[_0x2988cf['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x10cc18(0x27b),_0x2988cf[_0x2988cf[_0x10cc18(0x243)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x2988cf[_0x2988cf[_0x10cc18(0x1cb)]=0x3e81]=_0x10cc18(0x1cb),_0x2988cf[_0x2988cf[_0x10cc18(0x14b)]=-0x1]=_0x10cc18(0x14b),_0x2988cf))(Z||{});function En(_0x588148){const _0x339717=_0x10cc18;var _0xa58ff5,_0x492ba2;const _0x7da222=(_0xa58ff5=_0x588148[_0x339717(0xf4)])==null?void 0x0:_0xa58ff5['stage'],_0x8765a0=((_0x492ba2=_0x588148[_0x339717(0xf4)])==null?void 0x0:_0x492ba2[_0x339717(0x186)])||0x0;return _0x7da222===_0x915ac4[_0x339717(0x1b6)]&&_0x8765a0>0x0;}function pn(_0x59f19e){const _0x239b97=_0x10cc18;return _0x59f19e['functionsExecutedState']===_0x4723a6[_0x239b97(0x1e6)];}var On=Object['getOwnPropertyDescriptor'],Tn=(_0x4c2b13,_0x59b739,_0x4ca5b0,_0x50983a)=>{const _0x4be405=_0x10cc18;for(var _0x4d320c=_0x50983a>0x1?void 0x0:_0x50983a?On(_0x59b739,_0x4ca5b0):_0x59b739,_0x35f12a=_0x4c2b13[_0x4be405(0xf9)]-0x1,_0x492216;_0x35f12a>=0x0;_0x35f12a--)(_0x492216=_0x4c2b13[_0x35f12a])&&(_0x4d320c=_0x492216(_0x4d320c)||_0x4d320c);return _0x4d320c;},P=(_0x5b3396,_0x36bccc)=>(_0x3cc557,_0x5ab87c)=>_0x36bccc(_0x3cc557,_0x5ab87c,_0x5b3396);const Cn=_0x10cc18(0x2b2),Rn=_0x10cc18(0x2ae),Dn='/universer-api/license/formula/limit/done';let me=class extends _0x3e748e{constructor(_0x4dec20,_0x2d442e,_0x5d9dee,_0x879938,_0x15f059,_0x2be7f6,_0xc84276){const _0x34b80b=_0x10cc18;super(),_(this,'_pollingInterval',null),_(this,_0x34b80b(0x308),0x0),_(this,'_currentUsage',0x0),_(this,_0x34b80b(0x290),[]),_(this,_0x34b80b(0x1db),0x0),(this[_0x34b80b(0x279)]=_0x4dec20,this[_0x34b80b(0x29c)]=_0x2d442e,this['_configService']=_0x5d9dee,this['_httpService']=_0x879938,this[_0x34b80b(0x301)]=_0x15f059,this[_0x34b80b(0x190)]=_0x2be7f6,this[_0x34b80b(0x303)]=_0xc84276,this[_0x34b80b(0x2c2)]());}['_initCommandInterceptor'](){const _0x3f36cf=_0x10cc18;this[_0x3f36cf(0x1bc)](this['_commandService'][_0x3f36cf(0x256)]((_0x55a370,_0x5bf829)=>{const _0x44fd3f=_0x3f36cf;var _0x302426;if(_0x55a370['id']!==_0x19bce6['id'])return;const _0x504c6b=_0x55a370[_0x44fd3f(0x151)];if(!this[_0x44fd3f(0x2a0)]((_0x302426=_0x504c6b['dirtyRanges'])!=null?_0x302426:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x44fd3f(0x1d6)](_0x55a370,_0x5bf829),this[_0x44fd3f(0x11c)](),new _0x20efe7();})),this['disposeWithMe'](this[_0x3f36cf(0x29c)][_0x3f36cf(0x164)]((_0x380da4,_0x26e2a8)=>{const _0x5725e6=_0x3f36cf;if(_0x380da4['id']!==_0x391c35['id'])return;const _0x46873d=_0x380da4[_0x5725e6(0x151)];if(En(_0x46873d)){const _0x17041a=_0x5236ab();this[_0x5725e6(0x290)][_0x5725e6(0x1ed)](_0x17041a),this[_0x5725e6(0x31c)](_0x17041a);}else{if(pn(_0x46873d)&&this[_0x5725e6(0x290)][_0x5725e6(0xf9)]>0x0){const _0x2489cb=this[_0x5725e6(0x290)][_0x5725e6(0x1fe)]();this[_0x5725e6(0x10c)](_0x2489cb);}}}));}[_0x10cc18(0x233)](){const _0x3d5236=_0x10cc18;super[_0x3d5236(0x233)](),this[_0x3d5236(0x25c)](),this[_0x3d5236(0x290)]=[],this[_0x3d5236(0x2c1)]=0x0,this[_0x3d5236(0x308)]=0x0,this[_0x3d5236(0x1db)]=0x0;}async[_0x10cc18(0x1d6)](_0x4fac1e,_0x15977b){const _0x132adc=_0x10cc18;for(let _0x435a35=0x0;_0x435a35<0x1e;_0x435a35++)try{if(await this[_0x132adc(0x24d)](),this['_checkCalculationAvailable']()){this[_0x132adc(0x2cd)](_0x4fac1e,_0x15977b),this['_messageService'][_0x132adc(0xe7)]({'content':this[_0x132adc(0x303)]['t'](_0x132adc(0x1d0)),'type':_0x22c147[_0x132adc(0x12f)]});return;}await new Promise(_0x13c1b8=>{const _0x216f7a=_0x132adc;this[_0x216f7a(0x112)]=window[_0x216f7a(0x26f)](_0x13c1b8,0x3e8);});}catch(_0x5d560b){this[_0x132adc(0x190)][_0x132adc(0x1ac)](_0x5d560b);}this[_0x132adc(0x279)][_0x132adc(0xe7)]({'content':this[_0x132adc(0x303)]['t'](_0x132adc(0x2c9)),'type':_0x22c147[_0x132adc(0x153)]});}[_0x10cc18(0x2cd)](_0x1ebad2,_0x2feae3){const _0x48e03b=_0x10cc18;try{this[_0x48e03b(0x29c)][_0x48e03b(0xfe)](_0x1ebad2['id'],_0x1ebad2['params'],_0x2feae3);}catch(_0x408758){this[_0x48e03b(0x190)][_0x48e03b(0x1ac)](_0x408758);}}[_0x10cc18(0x1ab)](_0x239057,_0x2a137d){const _0x19bdab=_0x10cc18;_0x2a137d<this['_lastResponseTimestamp']||(this[_0x19bdab(0x1db)]=_0x2a137d,this[_0x19bdab(0x308)]=Number[_0x19bdab(0x14a)](_0x239057[_0x19bdab(0x114)]),this['_currentUsage']=Number[_0x19bdab(0x14a)](_0x239057[_0x19bdab(0x1dc)]));}async[_0x10cc18(0x31c)](_0x40757c){const _0x177391=_0x10cc18;var _0x43ae04,_0x1eacac;const _0x48cdda=Date['now']();try{const _0x75aa=((_0x43ae04=this[_0x177391(0x1ca)][_0x177391(0x253)](_0x209e63))==null?void 0x0:_0x43ae04['startFormulaLimitUrl'])||Rn,_0xf07c7c=(await this['_httpService'][_0x177391(0x1e3)](_0x75aa,{'body':JSON[_0x177391(0x16f)]({'taskId':_0x40757c})}))[_0x177391(0x218)];if(((_0x1eacac=_0xf07c7c['error'])==null?void 0x0:_0x1eacac[_0x177391(0x23f)])!==Z['OK'])return;this[_0x177391(0x1ab)](_0xf07c7c['limitInfo'],_0x48cdda);}catch(_0x10e490){this[_0x177391(0x190)][_0x177391(0x1ac)](_0x10e490);}}async[_0x10cc18(0x24d)](_0x5b693e){const _0x3d6cf1=_0x10cc18;var _0x4bb7fc,_0xf0ca8c;const _0x31774c=Date[_0x3d6cf1(0x248)]();try{const _0x5c9066=((_0x4bb7fc=this[_0x3d6cf1(0x1ca)][_0x3d6cf1(0x253)](_0x209e63))==null?void 0x0:_0x4bb7fc['getformulaLimitStatusUrl'])||Cn,_0x426c71=_0x5b693e?_0x5c9066+_0x3d6cf1(0x2dd)+encodeURIComponent(_0x5b693e):_0x5c9066,_0xa02a4e=(await this['_httpService'][_0x3d6cf1(0x127)](_0x426c71))[_0x3d6cf1(0x218)];if(((_0xf0ca8c=_0xa02a4e[_0x3d6cf1(0x1ac)])==null?void 0x0:_0xf0ca8c[_0x3d6cf1(0x23f)])!==Z['OK'])return;this[_0x3d6cf1(0x1ab)](_0xa02a4e[_0x3d6cf1(0x215)],_0x31774c);}catch(_0x526784){this[_0x3d6cf1(0x190)]['error'](_0x526784);}}async[_0x10cc18(0x10c)](_0x54fa31){const _0x4999f7=_0x10cc18;var _0x39846e,_0x1acce6;const _0x524c8f=Date[_0x4999f7(0x248)]();try{const _0x54ec01=((_0x39846e=this[_0x4999f7(0x1ca)][_0x4999f7(0x253)](_0x209e63))==null?void 0x0:_0x39846e['releaseFormulaLimitUrl'])||Dn,_0x58f0e4=(await this[_0x4999f7(0x276)][_0x4999f7(0x1e3)](_0x54ec01,{'body':JSON[_0x4999f7(0x16f)]({'taskId':_0x54fa31})}))[_0x4999f7(0x218)];if(((_0x1acce6=_0x58f0e4[_0x4999f7(0x1ac)])==null?void 0x0:_0x1acce6[_0x4999f7(0x23f)])!==Z['OK'])return;this[_0x4999f7(0x1ab)](_0x58f0e4[_0x4999f7(0x215)],_0x524c8f);}catch(_0x26ac90){this[_0x4999f7(0x190)][_0x4999f7(0x1ac)](_0x26ac90);}}[_0x10cc18(0x17e)](){const _0x486023=_0x10cc18;return this[_0x486023(0x308)]===0x0?!0x0:this[_0x486023(0x308)]-this[_0x486023(0x2c1)]>0x0;}['_clearPolling'](){const _0x5f5061=_0x10cc18;this[_0x5f5061(0x112)]&&(clearTimeout(this[_0x5f5061(0x112)]),this[_0x5f5061(0x112)]=null);}[_0x10cc18(0x11c)](){const _0x3fc532=_0x10cc18;this['_messageService']['show']({'content':this['_localeService']['t'](_0x3fc532(0x28a)),'type':_0x22c147['Loading']});}['_hasFormulaInDirtyRanges'](_0x4d703e){const _0x5400d9=_0x10cc18;for(const _0xa31837 of _0x4d703e){const {unitId:_0x58189d,sheetId:_0x42ae4a,range:_0x3f34ae}=_0xa31837,_0x22ad5e=this['_univerInstanceService'][_0x5400d9(0x30b)](_0x58189d);if(!_0x22ad5e)continue;const _0x3ecccb=_0x22ad5e[_0x5400d9(0x21d)](_0x42ae4a);if(!_0x3ecccb)continue;const _0xa9be59=_0x3ecccb['getCellMatrix']();for(let _0x131aca=_0x3f34ae['startRow'];_0x131aca<=_0x3f34ae[_0x5400d9(0x296)];_0x131aca++)for(let _0x3be568=_0x3f34ae[_0x5400d9(0x280)];_0x3be568<=_0x3f34ae[_0x5400d9(0x15f)];_0x3be568++){const _0x970438=_0xa9be59[_0x5400d9(0x27f)](_0x131aca,_0x3be568);if(_0x970438&&(_0x5b53ca(_0x970438['f'])||_0x3e9eba(_0x970438['si'])))return!0x0;}}return!0x1;}};me=Tn([P(0x0,_0x2c9f2f(_0x41d342)),P(0x1,_0x526fee),P(0x2,_0x56b98d),P(0x3,_0x2c9f2f(_0x47ffcb)),P(0x4,_0x631d26),P(0x5,_0x1368e3),P(0x6,_0x2c9f2f(_0xefd7ba))],me);var bn=Object[_0x10cc18(0x1ea)],Nn=(_0x319729,_0x5f370c,_0x5c45fd,_0x2926dc)=>{const _0x4eaab6=_0x10cc18;for(var _0x15db89=_0x2926dc>0x1?void 0x0:_0x2926dc?bn(_0x5f370c,_0x5c45fd):_0x5f370c,_0x4ac0c5=_0x319729[_0x4eaab6(0xf9)]-0x1,_0x17ddaf;_0x4ac0c5>=0x0;_0x4ac0c5--)(_0x17ddaf=_0x319729[_0x4ac0c5])&&(_0x15db89=_0x17ddaf(_0x15db89)||_0x15db89);return _0x15db89;},Ue=(_0x73662f,_0x465a86)=>(_0x1d7436,_0x453bf6)=>_0x465a86(_0x1d7436,_0x453bf6,_0x73662f);let He=class extends _0x3e748e{constructor(_0x3aab84,_0x5cc44c,_0x4579e9){const _0x77a84d=_0x10cc18;super(),_(this,_0x77a84d(0x2f9),new Map()),_(this,_0x77a84d(0x113),new Map()),_(this,_0x77a84d(0x118),!0x1),(this[_0x77a84d(0x1ca)]=_0x3aab84,this[_0x77a84d(0x2ee)]=_0x5cc44c,this['_revisionService']=_0x4579e9);}[_0x10cc18(0x306)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x2ef407=_0x10cc18;this[_0x2ef407(0x118)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}['dispose'](){const _0x2aa743=_0x10cc18;this[_0x2aa743(0x227)]()[_0x2aa743(0x1af)](()=>super[_0x2aa743(0x233)]());}async[_0x10cc18(0x286)](_0x12a3db){const _0x59febf=_0x10cc18;return this[_0x59febf(0x118)]?null:this[_0x59febf(0x2ee)][_0x59febf(0x183)](_0x59f688(_0x12a3db));}async['saveOfflineData'](_0x10c72f,_0x26ed98){const _0x448d62=_0x10cc18;return!!this[_0x448d62(0x2ee)][_0x448d62(0x1a5)](_0x10c72f,_0x26ed98);}['updateOfflineData'](_0x5f7ebf,_0x38a9d8,_0x26dea1,_0x9fcaa0){const _0x3186d6=_0x10cc18,_0x2c4d2f=this[_0x3186d6(0x271)][_0x3186d6(0x125)](_0x5f7ebf);this[_0x3186d6(0x2f9)][_0x3186d6(0x239)](_0x5f7ebf,{'unitID':_0x5f7ebf,'type':_0x38a9d8,'awaitingChangeset':_0x26dea1,'mutations':_0x9fcaa0,'rev':_0x2c4d2f}),this['_saveTaskMap'][_0x3186d6(0x2bd)](_0x5f7ebf)||this['_scheduleSaving'](_0x5f7ebf);}[_0x10cc18(0x192)](_0x4d405a){const _0x1739ea=_0x10cc18,_0xaa4964=this['_getSaveTimeout']();_0xaa4964===0x0?this[_0x1739ea(0x2f0)](_0x4d405a):this[_0x1739ea(0x113)]['set'](_0x4d405a,setTimeout(()=>this[_0x1739ea(0x2f0)](_0x4d405a),_0xaa4964));}[_0x10cc18(0x135)](){const _0x40f0a2=_0x10cc18;var _0x3ea499;return(_0x3ea499=this[_0x40f0a2(0x1ca)][_0x40f0a2(0x253)](_0x24dd1f))!=null?_0x3ea499:_0x4a9fea;}[_0x10cc18(0x2f0)](_0x5829f3){const _0x5476f8=_0x10cc18,_0x551406=this[_0x5476f8(0x113)]['get'](_0x5829f3);return _0x551406!==void 0x0&&window['clearTimeout'](_0x551406),this[_0x5476f8(0x2ee)]['setItem'](_0x59f688(_0x5829f3),this[_0x5476f8(0x2f9)][_0x5476f8(0x127)](_0x5829f3))[_0x5476f8(0x1af)](()=>this[_0x5476f8(0x113)]['delete'](_0x5829f3));}async[_0x10cc18(0x227)](){const _0x54606a=_0x10cc18,_0x2c46d0=[];this[_0x54606a(0x113)][_0x54606a(0x12c)]((_0x5a8c95,_0x4d6886)=>{const _0x2f714e=_0x54606a;window[_0x2f714e(0x210)](_0x5a8c95),_0x2c46d0[_0x2f714e(0x1ed)](this[_0x2f714e(0x2f0)](_0x4d6886)['then'](()=>{const _0x419443=_0x2f714e;this['_saveTaskMap'][_0x419443(0x264)](_0x4d6886);}));}),await Promise['all'](_0x2c46d0);}};He=Nn([Ue(0x0,_0x56b98d),Ue(0x1,_0x2ba981),Ue(0x2,_0x2c9f2f(_0x6cec3d))],He);class Ln extends _0x460db8{constructor(){const _0x968c34=_0x10cc18;super(),_(this,_0x968c34(0x156)),this['urlChange$']=_0x5171f8(window,_0x968c34(0x178))[_0x968c34(0x297)](_0x55bd62(this[_0x968c34(0x20f)]),_0x1b1b8c(0x1),_0x5a5b3d(void 0x0));}['setParam'](_0xbb5dc2,_0x57483e,_0x7da0e4=!0x1){const _0x38b1d0=_0x10cc18,_0x2f8841=new URL(window[_0x38b1d0(0x22d)]['href']);_0x2f8841['searchParams'][_0x38b1d0(0x239)](_0xbb5dc2,_0x57483e),_0x7da0e4?window['history']['replaceState']('','',_0x2f8841['toString']()):window[_0x38b1d0(0x1fa)]['pushState']('','',_0x2f8841[_0x38b1d0(0x1cc)]());}['removeParam'](_0x2c0bb9,_0x1c06cc=!0x1){const _0x3e1cdc=_0x10cc18,_0x110853=new URL(window[_0x3e1cdc(0x22d)][_0x3e1cdc(0x1fb)]);_0x110853['searchParams'][_0x3e1cdc(0x264)](_0x2c0bb9),_0x1c06cc?window[_0x3e1cdc(0x1fa)][_0x3e1cdc(0x15e)]('','',_0x110853[_0x3e1cdc(0x1cc)]()):window[_0x3e1cdc(0x1fa)]['pushState']('','',_0x110853[_0x3e1cdc(0x1cc)]());}[_0x10cc18(0x19e)](_0x21d338){const _0x424f34=_0x10cc18;var _0x2b79eb;return(_0x2b79eb=new URL(window['location'][_0x424f34(0x1fb)])[_0x424f34(0x268)][_0x424f34(0x127)](_0x21d338))!=null?_0x2b79eb:void 0x0;}}var Un=Object[_0x10cc18(0x1e4)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x91efb5,_0x36a199,_0x58275f)=>_0x36a199 in _0x91efb5?Un(_0x91efb5,_0x36a199,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58275f}):_0x91efb5[_0x36a199]=_0x58275f,Pn=(_0x4cb136,_0x255336,_0x271932,_0x37d324)=>{const _0x2f0fe3=_0x10cc18;for(var _0x318a6a=_0x37d324>0x1?void 0x0:_0x37d324?Mn(_0x255336,_0x271932):_0x255336,_0x2be757=_0x4cb136[_0x2f0fe3(0xf9)]-0x1,_0x1d9d1d;_0x2be757>=0x0;_0x2be757--)(_0x1d9d1d=_0x4cb136[_0x2be757])&&(_0x318a6a=_0x1d9d1d(_0x318a6a)||_0x318a6a);return _0x318a6a;},Me=(_0x1bb5fe,_0x2b4022)=>(_0x37b692,_0x5db2ac)=>_0x2b4022(_0x37b692,_0x5db2ac,_0x1bb5fe),wn=(_0x1a0a10,_0x832b9d,_0x4495ca)=>An(_0x1a0a10,_0x832b9d+'',_0x4495ca);const yn=_0x10cc18(0x23c);let Ye=class extends _0x5ba41c{constructor(_0x4ff199=_t,_0x101755,_0x52d32c,_0x15e84e){const _0x9994fb=_0x10cc18;super(),this[_0x9994fb(0x32d)]=_0x4ff199,this[_0x9994fb(0x1f0)]=_0x101755,this[_0x9994fb(0xf0)]=_0x52d32c,this[_0x9994fb(0x1ca)]=_0x15e84e;const {..._0x3fd4c3}=_0x5c3498({},_t,this[_0x9994fb(0x32d)]);this[_0x9994fb(0x1ca)][_0x9994fb(0x304)](hn,_0x3fd4c3);}[_0x10cc18(0x170)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x10cc18(0x20d)](){const _0x5eacef=_0x10cc18;this[_0x5eacef(0x223)]();}['_registerDependencies'](){const _0x5c6086=_0x10cc18;var _0x1300f6;const _0x43486e=[[Ke],[me],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x2befe2,{'useClass':_0x21a377}],[_0x3a4f5a,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x5c6086(0x32d)][_0x5c6086(0xec)]&&_0x43486e[_0x5c6086(0x1ed)]([le]),_0x4b4f71(this[_0x5c6086(0xf0)],_0x436173(_0x43486e,(_0x1300f6=this[_0x5c6086(0x32d)])==null?void 0x0:_0x1300f6[_0x5c6086(0x15d)]));}[_0x10cc18(0x223)](){const _0x143203=_0x10cc18;this[_0x143203(0x1bc)](this[_0x143203(0x1f0)]['registerRenderModule'](_0x5045e8[_0x143203(0x238)],[Fe])),this[_0x143203(0x1bc)](this['_renderManagerService'][_0x143203(0x282)](_0x5045e8[_0x143203(0x1f7)],[ke]));}[_0x10cc18(0x2d5)](){const _0x20bf6c=_0x10cc18;_0x569f6e(this['_injector'],[[H],[ae],[Se],[_e],[ce],[me]]),this[_0x20bf6c(0x32d)][_0x20bf6c(0xec)]&&_0x569f6e(this[_0x20bf6c(0xf0)],[[le]]);}};wn(Ye,_0x10cc18(0x27d),yn),Ye=Pn([_0x5aa65c(_0x4c184a),Me(0x1,_0x20cff4),Me(0x2,_0x2c9f2f(_0x3955fb)),Me(0x3,_0x56b98d)],Ye);var $n=Object[_0x10cc18(0x1ea)],xn=(_0x2cda49,_0x2a7bb9,_0x264cab,_0x353d96)=>{for(var _0x199d1b=_0x353d96>0x1?void 0x0:_0x353d96?$n(_0x2a7bb9,_0x264cab):_0x2a7bb9,_0x2a9cc7=_0x2cda49['length']-0x1,_0x547287;_0x2a9cc7>=0x0;_0x2a9cc7--)(_0x547287=_0x2cda49[_0x2a9cc7])&&(_0x199d1b=_0x547287(_0x199d1b)||_0x199d1b);return _0x199d1b;},J=(_0x37f494,_0x345cb0)=>(_0x2302d9,_0x1a8027)=>_0x345cb0(_0x2302d9,_0x1a8027,_0x37f494);let ut=class extends _0x4e6c96{constructor(_0x51a5ff,_0x357894,_0x58dd81,_0xc7c605,_0x16f00e){super(_0x51a5ff,_0x357894,_0x58dd81,_0xc7c605,_0x16f00e);}async['createSocket'](_0x114931){const _0xff6cf4=_0x10cc18,_0x53ad48=await this[_0xff6cf4(0x1a7)](),_0x50eb7d=this[_0xff6cf4(0x111)](_0x114931,_0x53ad48);return this['_doCreateSocket'](_0x50eb7d);}[_0x10cc18(0x111)](_0x38f540,_0x398c04){const _0x62bedd=_0x10cc18,_0x1857a4=typeof window>'u'?new URL(_0x38f540):new URL(_0x38f540,window[_0x62bedd(0x22d)][_0x62bedd(0x169)]);_0x1857a4['searchParams'][_0x62bedd(0x239)](_0x62bedd(0x2a4),_0x398c04);const _0x187d87=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x62bedd(0x22d)]['search']);return _0x187d87[_0x62bedd(0x127)]('runId')&&_0x1857a4[_0x62bedd(0x268)][_0x62bedd(0x239)](_0x62bedd(0x313),_0x187d87[_0x62bedd(0x127)](_0x62bedd(0x313))),_0x1857a4[_0x62bedd(0x1cc)]();}async[_0x10cc18(0x1a7)](){const _0x2eddaa=_0x10cc18;var _0xaacdb,_0x9d68d9,_0x3d4511;const _0x199628=this[_0x2eddaa(0x1ca)]['getConfig'](_0x209e63),_0x2b7053=(_0xaacdb=_0x199628==null?void 0x0:_0x199628['wsSessionTicketUrl'])!=null?_0xaacdb:_0x45c098;return(_0x3d4511=(_0x9d68d9=(await this[_0x2eddaa(0x276)]['get'](_0x2b7053,{'headers':{'Content-Type':_0x2eddaa(0x162)}}))[_0x2eddaa(0x218)])==null?void 0x0:_0x9d68d9[_0x2eddaa(0x24a)])!=null?_0x3d4511:'';}};ut=xn([J(0x0,_0x2c9f2f(_0x3955fb)),J(0x1,_0x2c9f2f(_0x47ffcb)),J(0x2,_0x56b98d),J(0x3,_0x1368e3),J(0x4,_0x4a0d66)],ut);var Bn=Object['getOwnPropertyDescriptor'],Fn=(_0x3af744,_0x2d80a9,_0x2f82ce,_0x56e808)=>{for(var _0x3b51bf=_0x56e808>0x1?void 0x0:_0x56e808?Bn(_0x2d80a9,_0x2f82ce):_0x2d80a9,_0x56b40c=_0x3af744['length']-0x1,_0x20fa39;_0x56b40c>=0x0;_0x56b40c--)(_0x20fa39=_0x3af744[_0x56b40c])&&(_0x3b51bf=_0x20fa39(_0x3b51bf)||_0x3b51bf);return _0x3b51bf;},Ae=(_0x4ef56f,_0x33b4c1)=>(_0x1ce0eb,_0x29052b)=>_0x33b4c1(_0x1ce0eb,_0x29052b,_0x4ef56f);let dt=class extends _0x3e748e{constructor(_0x1f5809,_0x26244d,_0xef789e){const _0x3ee5ff=_0x10cc18;super(),this[_0x3ee5ff(0x19c)]=_0x1f5809,this[_0x3ee5ff(0x276)]=_0x26244d,this[_0x3ee5ff(0x1ca)]=_0xef789e;}async[_0x10cc18(0x273)](_0x5a2c86,_0x2b267c,_0x46e808,..._0x18d2ce){const _0x313f05=_0x10cc18;var _0x468ed3,_0x579cd8,_0x2d6080,_0x2f834a;const _0x2db994=this[_0x313f05(0x19c)][_0x313f05(0x167)]();if(!_0x2db994)throw new Error(_0x313f05(0x245));const _0x81eb29=((_0x468ed3=this['_configService'][_0x313f05(0x253)](_0x2d33ca))!=null?_0x468ed3:_0x550c3a)+'/'+_0x5a2c86+_0x313f05(0x2ac)+_0x2b267c,_0x543ad3=new URL(window[_0x313f05(0x22d)][_0x313f05(0x1fb)]),_0x8a8c19={'scriptId':_0x5a2c86,'runId':(_0x579cd8=_0x543ad3[_0x313f05(0x268)][_0x313f05(0x127)](_0x313f05(0x313)))!=null?_0x579cd8:'','function':_0x2b267c,'unitId':_0x2db994[_0x313f05(0x25a)](),'argsOfFunction':JSON[_0x313f05(0x16f)](_0x18d2ce),'invokeId':(_0x2d6080=_0x46e808[_0x313f05(0x165)])!=null?_0x2d6080:'','executionId':(_0x2f834a=_0x46e808[_0x313f05(0x28f)])!=null?_0x2f834a:''};try{const _0x21fdb2=await this['_httpService'][_0x313f05(0x1e3)](_0x81eb29,{'body':_0x8a8c19});return _0x21fdb2[_0x313f05(0x218)][_0x313f05(0x1ac)]&&_0x21fdb2['body'][_0x313f05(0x1ac)][_0x313f05(0x23f)]!==Z['OK']?_0x313f05(0x180):_0x21fdb2['body'][_0x313f05(0x1f1)];}catch{return _0x313f05(0x180);}}};dt=Fn([Ae(0x0,_0x631d26),Ae(0x1,_0x2c9f2f(_0x47ffcb)),Ae(0x2,_0x56b98d)],dt);const St=0x7530,mt='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x3e748e{constructor(){const _0x22a3f0=_0x10cc18;super(),_(this,_0x22a3f0(0x193),_0x5236ab()),_(this,_0x22a3f0(0x182),new Set()),_(this,_0x22a3f0(0x1f9),new Map()),_(this,_0x22a3f0(0x20a),null),_(this,_0x22a3f0(0x140),new Map()),_(this,_0x22a3f0(0x1c8),new Map()),this[_0x22a3f0(0x25e)]();}[_0x10cc18(0x233)](){const _0x379395=_0x10cc18;super[_0x379395(0x233)](),this['_clearOtherTimers'][_0x379395(0x12c)]((_0x24c887,_0x5d6e06)=>this[_0x379395(0x116)](_0x5d6e06)),this['_heartbeatTimer']&&window[_0x379395(0x1ad)](this[_0x379395(0x20a)]);}[_0x10cc18(0x295)](_0x234293){const _0x57ea34=_0x10cc18;return this['_ensureSubject'](_0x234293)[_0x57ea34(0x297)](_0x34b2d2());}[_0x10cc18(0xe6)](_0x36c3e2){const _0x543cf3=_0x10cc18;this[_0x543cf3(0x182)][_0x543cf3(0x20b)]===0x0&&this[_0x543cf3(0xef)](),this[_0x543cf3(0x182)][_0x543cf3(0xff)](_0x36c3e2),this[_0x543cf3(0x31b)]({'type':0x0,'memberID':this[_0x543cf3(0x193)],'unitIDs':[_0x36c3e2],'isForwarded':!0x1});}[_0x10cc18(0x2be)](_0x4dd8e7){const _0x143b7b=_0x10cc18;this[_0x143b7b(0x182)][_0x143b7b(0x264)](_0x4dd8e7),this['_selfUnitIDs'][_0x143b7b(0x20b)]===0x0&&this[_0x143b7b(0x20a)]&&window[_0x143b7b(0x1ad)](this[_0x143b7b(0x20a)]);}['_init'](){const _0x11f171=_0x10cc18;this[_0x11f171(0x1bc)](_0x555679(_0x5171f8(window,_0x11f171(0x161))[_0x11f171(0x288)](_0x25825a=>{const _0x3daa5a=_0x11f171;if(_0x25825a[_0x3daa5a(0x26c)]!==mt||!_0x25825a[_0x3daa5a(0x2d0)])return;const _0x531686=JSON[_0x3daa5a(0x2f1)](_0x25825a[_0x3daa5a(0x2d0)]);this[_0x3daa5a(0x2d2)](_0x531686);}))),window['addEventListener']('unload',()=>this[_0x11f171(0x31b)]({'type':0x1,'memberID':this[_0x11f171(0x193)],'unitIDs':Array[_0x11f171(0x2ef)](this[_0x11f171(0x182)])}));}[_0x10cc18(0x2d2)](_0x441807){const _0x2789bb=_0x10cc18;switch(_0x441807['type']){case 0x0:this['_handleJoinEvent'](_0x441807);break;case 0x1:this['_handleLeaveEvent'](_0x441807);break;case 0x2:this[_0x2789bb(0x18b)](_0x441807);break;}}[_0x10cc18(0x32f)](_0xa26ff4){const {unitIDs:_0x2f5912,memberID:_0x17e488,isForwarded:_0x5e820f}=_0xa26ff4;_0x2f5912['forEach'](_0x3a5e9e=>{const _0x52d019=_0x58c2;if(!_0x5e820f&&this[_0x52d019(0x1f9)][_0x52d019(0x2bd)](_0x3a5e9e)&&this['_ensureSubject'](_0x3a5e9e)[_0x52d019(0x1e1)](_0x4078f0[_0x52d019(0x26b)]),!this[_0x52d019(0x1f9)]['has'](_0x3a5e9e)||!this[_0x52d019(0x1f9)]['get'](_0x3a5e9e)[_0x52d019(0x2bd)](_0x17e488)){const _0xa7913d=this[_0x52d019(0x1f9)][_0x52d019(0x127)](_0x3a5e9e)||new Set();_0xa7913d['add'](_0x17e488),this[_0x52d019(0x1f9)][_0x52d019(0x239)](_0x3a5e9e,_0xa7913d),this[_0x52d019(0x21b)](_0x17e488);}}),_0x5e820f||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x10cc18(0x21b)](_0x33cb75){const _0x15136a=_0x10cc18;this[_0x15136a(0x116)](_0x33cb75);const _0x4737d9=window[_0x15136a(0x26f)](()=>{this['_unitOnClients']['forEach'](_0x4864ff=>{const _0x5a0c73=_0x58c2;_0x4864ff[_0x5a0c73(0x264)](_0x33cb75);});},St*0x2);this[_0x15136a(0x140)]['set'](_0x33cb75,_0x4737d9);}[_0x10cc18(0x116)](_0x252d8d){const _0x2dacad=_0x10cc18;if(this[_0x2dacad(0x140)][_0x2dacad(0x2bd)](_0x252d8d)){const _0x406672=this[_0x2dacad(0x140)][_0x2dacad(0x127)](_0x252d8d);_0x406672&&window[_0x2dacad(0x210)](_0x406672),this[_0x2dacad(0x140)][_0x2dacad(0x239)](_0x252d8d,null);}}[_0x10cc18(0x2e4)](_0x40e046){const _0x154c8f=_0x10cc18,{memberID:_0x3e7fa7,unitIDs:_0x4ac60b}=_0x40e046;_0x4ac60b[_0x154c8f(0x12c)](_0x5984ee=>{const _0x4ac451=_0x154c8f;var _0x1c66e0;const _0x502ec6=this[_0x4ac451(0x1f9)][_0x4ac451(0x127)](_0x5984ee);_0x502ec6&&(_0x502ec6[_0x4ac451(0x264)](_0x3e7fa7),(_0x1c66e0=this[_0x4ac451(0x197)](_0x5984ee))==null||_0x1c66e0[_0x4ac451(0x1e1)](_0x502ec6[_0x4ac451(0x20b)]===0x0?_0x4078f0[_0x4ac451(0x143)]:_0x4078f0[_0x4ac451(0x26b)]));}),this['_removeClearOtherTimer'](_0x3e7fa7);}['_handleHeartbeatEvent'](_0x31b9ea){const _0x3d5b5d=_0x10cc18;this[_0x3d5b5d(0x21b)](_0x31b9ea[_0x3d5b5d(0x2e2)]);}[_0x10cc18(0x31b)](_0x5167f7){const _0x44c52d=_0x10cc18;localStorage['setItem'](mt,JSON[_0x44c52d(0x16f)](_0x5167f7));}[_0x10cc18(0xef)](){const _0xb654e6=_0x10cc18;this[_0xb654e6(0x20a)]=window[_0xb654e6(0x2ff)](()=>{const _0x52e312=_0xb654e6;this[_0x52e312(0x31b)]({'type':0x2,'memberID':this['_id']});},St);}[_0x10cc18(0x197)](_0x2c9fdb){const _0x4c26e8=_0x10cc18;return this[_0x4c26e8(0x1c8)][_0x4c26e8(0x2bd)](_0x2c9fdb)||this[_0x4c26e8(0x1c8)]['set'](_0x2c9fdb,new _0x1ced39(_0x4078f0[_0x4c26e8(0x143)])),this['_unitStatus'][_0x4c26e8(0x127)](_0x2c9fdb);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
1
+ const _0x266cb1=_0x57d7;(function(_0x74c381,_0x5c83bc){const _0x477d69=_0x57d7,_0x4c99ba=_0x74c381();while(!![]){try{const _0xae0e2=-parseInt(_0x477d69(0x155))/0x1+-parseInt(_0x477d69(0x1c6))/0x2+-parseInt(_0x477d69(0xf8))/0x3+-parseInt(_0x477d69(0x199))/0x4+parseInt(_0x477d69(0x169))/0x5*(-parseInt(_0x477d69(0x12a))/0x6)+-parseInt(_0x477d69(0x1ca))/0x7+parseInt(_0x477d69(0x318))/0x8;if(_0xae0e2===_0x5c83bc)break;else _0x4c99ba['push'](_0x4c99ba['shift']());}catch(_0x393ffc){_0x4c99ba['push'](_0x4c99ba['shift']());}}}(_0x59ef,0x32fed));var Yt=Object[_0x266cb1(0x269)],Wt=(_0x2cc9b4,_0x4a6f06,_0x343d05)=>_0x4a6f06 in _0x2cc9b4?Yt(_0x2cc9b4,_0x4a6f06,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x343d05}):_0x2cc9b4[_0x4a6f06]=_0x343d05,_=(_0x30ea53,_0x5b2d10,_0x35e679)=>Wt(_0x30ea53,typeof _0x5b2d10!=_0x266cb1(0x181)?_0x5b2d10+'':_0x5b2d10,_0x35e679);import{jsx as _0x1272de,jsxs as _0xda46d2}from'react/jsx-runtime';import{CollaborationStatus as _0x2459b9,CollaborationSessionService as _0x4622ab,CollaborationController as _0x4b8426,DataLoaderService as _0x240356,MemberService as _0x4c8a8e,SessionStatus as _0x49fe26,ILocalCacheService as _0x4fe86f,CollaborationUIEventService as _0xab5142,CollaborationUIEventId as _0x3c08c8,DocCollaborationEntity as _0x56c801,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x21dc6f,getLocalCacheKey as _0x3aa1d4,LOCAL_CACHE_INTERVAL as _0x132eff,LOCAL_CACHE_INTERVAL_KEY as _0x25ffc0,UniverCollaborationClientPlugin as _0x53669b,CollaborationSocketService as _0x527d7d,DEFAULT_WS_SESSION_TICKET_URL as _0x5347b6,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0xf48c70,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x1665a3,UnitStatus as _0xac2979}from'@univerjs-pro/collaboration-client';import{LocaleService as _0xe56074,IUniverInstanceService as _0x327d97,Inject as _0x3179ca,Injector as _0x52e011,Disposable as _0x5a57f7,createIdentifier as _0x445032,ILogService as _0x53fc3e,ICommandService as _0x398133,Optional as _0x48d43d,RxDisposable as _0x165e64,Workbook as _0x19f744,DOC_RANGE_TYPE as _0x16d0ed,debounce as _0x51782d,Rectangle as _0x50f348,DisposableCollection as _0x151e8b,toDisposable as _0x4001b9,UniverInstanceType as _0x4f0ec8,generateRandomId as _0x5d3172,COLORS as _0x23b99a,ColorKit as _0x171c66,ThemeService as _0x3c5f47,fromEventSubject as _0x29cdad,Tools as _0x468abf,CommandType as _0x2e5972,IConfigService as _0x3607cf,CanceledError as _0x23036e,isFormulaString as _0x5b2a5c,isFormulaId as _0x6986c,ILocalStorageService as _0x17555e,DependentOn as _0x501276,Plugin as _0x2eb738,merge as _0x1407a1,registerDependencies as _0x329602,mergeOverrideWithDependencies as _0x3a0cf2,touchDependencies as _0x2c027c}from'@univerjs/core';import{useObservable as _0x19e49c,useDependency as _0x4160cb,IUIPartsService as _0x5b75a5,BuiltInUIPart as _0x21ff65,connectInjector as _0x198a07,IBeforeCloseService as _0x27aa55,IMessageService as _0x2c0732,INotificationService as _0x60036a}from'@univerjs/ui';import{BehaviorSubject as _0x501473,switchMap as _0x57f9f7,of as _0xefbff4,takeUntil as _0x21b87b,debounceTime as _0x6dca12,Subject as _0x3ed230,filter as _0x20c03b,merge as _0x1c6b14,combineLatest as _0x10c2d6,fromEvent as _0x573346,shareReplay as _0x22cf6d,mapTo as _0x3071cf,distinctUntilChanged as _0x23072d}from'rxjs';import{Tooltip as _0x186829,clsx as _0x181b7a,MessageType as _0x34362f}from'@univerjs/design';import{useRef as _0x16d39e,createElement as _0x10d515,forwardRef as _0x21dcd3,useCallback as _0x404f74}from'react';import{IRemoteInstanceService as _0x66fc1c}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x15e373,RefRangeService as _0x482615,SetSelectionsOperation as _0xa26fed,SheetsSelectionsService as _0x3a756d,EffectRefRangId as _0x1c0e24,handleIRemoveRow as _0x2f08fe,handleIRemoveCol as _0x3098d9,handleMoveRange as _0x3dd79a,handleInsertRow as _0xb5043d,handleInsertRangeMoveRight as _0x538e7e,handleInsertRangeMoveDown as _0x1de61b,handleInsertCol as _0x22ee2b,handleDeleteRangeMoveUp as _0x2e79a3,handleDeleteRangeMoveLeft as _0x3b46c3,runRefRangeMutations as _0x3ec78d}from'@univerjs/sheets';function _0x57d7(_0x3dd339,_0x444ad4){const _0x59ef61=_0x59ef();return _0x57d7=function(_0x57d757,_0x2aa7fb){_0x57d757=_0x57d757-0xd3;let _0x53dec4=_0x59ef61[_0x57d757];return _0x53dec4;},_0x57d7(_0x3dd339,_0x444ad4);}import{Shape as _0x5f4a21,Rect as _0x221c25,getColor as _0x4ec8a2,RegularPolygon as _0x3c88aa,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x34850e,Vector2 as _0x183b8c,SHEET_VIEWPORT_KEY as _0x1ead7d,IRenderManagerService as _0x4e5a7f}from'@univerjs/engine-render';import{HTTPService as _0x299f96,ISocketService as _0x2ec716,WebSocketService as _0x1c8192}from'@univerjs/network';import{IDocClipboardService as _0x311d66,NodePositionConvertToCursor as _0x2ef843,NodePositionConvertToRectRange as _0x4d8fa7,TEXT_RANGE_LAYER_INDEX as _0x14281d,SetDocZoomRatioOperation as _0x2612e7,DocIMEInputManagerService as _0x5f31ef,DocStateChangeManagerService as _0x4ac405}from'@univerjs/docs-ui';import{IImageIoService as _0x13add7}from'@univerjs/drawing';import{ITransformService as _0x1f1952,CollaborationEvent as _0x5bf969,isTransformMutationFailure as _0x2bd73d,isTransformMutationsWithChangesetSuccess as _0x37a6c9,RevisionService as _0x48e7e0,ISnapshotServerService as _0x358502}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x18b4e6,RichTextEditingMutation as _0x282851,DocSelectionManagerService as _0x781f61,DocSkeletonManagerService as _0x30db50}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x5aed6d,serializeRangeWithSheet as _0x631d1d,FormulaExecuteStageType as _0xe0b366,FormulaExecutedStateType as _0x34b6b6,SetFormulaCalculationStartMutation as _0x554a7a,SetFormulaCalculationNotificationMutation as _0x18d447}from'@univerjs/engine-formula';import{map as _0x3c4e14,filter as _0x22d51d,throttleTime as _0x468019,takeUntil as _0x28018b,switchMap as _0xc0630b}from'rxjs/operators';import{SheetSkeletonManagerService as _0x311bdb,getCoordByCell as _0x2ae5c3,getSheetObject as _0x9dc2c9}from'@univerjs/sheets-ui';function Ge({ref:_0x4f5fd8,..._0x53bed0}){const _0xac4b3=_0x266cb1,{icon:_0x382e97,id:_0x51286c,className:_0x3a3a81,extend:_0x554f17,..._0x4449d}=_0x53bed0,_0x3be073=(_0xac4b3(0x2a7)+_0x51286c+'\x20'+(_0x3a3a81||''))[_0xac4b3(0xf5)](),_0x4bbbf2=_0x16d39e('_'+Ei());return At(_0x382e97,''+_0x51286c,{'defIds':_0x382e97[_0xac4b3(0x1e6)],'idSuffix':_0x4bbbf2[_0xac4b3(0x16e)]},{'ref':_0x4f5fd8,'className':_0x3be073,..._0x4449d},_0x554f17);}function At(_0x24534f,_0x470057,_0x56180c,_0x481092,_0x7e5a65){const _0x2506c3=_0x266cb1;return _0x10d515(_0x24534f[_0x2506c3(0x25a)],{'key':_0x470057,...gi(_0x24534f,_0x56180c,_0x7e5a65),..._0x481092},(vi(_0x24534f,_0x56180c)[_0x2506c3(0x286)]||[])[_0x2506c3(0x198)]((_0x19d3c7,_0x4083e5)=>At(_0x19d3c7,_0x470057+'-'+_0x24534f[_0x2506c3(0x25a)]+'-'+_0x4083e5,_0x56180c,void 0x0,_0x7e5a65)));}function gi(_0x154176,_0x5b5f3e,_0xb29ab7){const _0x1d8aa6=_0x266cb1,_0x3445f3={..._0x154176[_0x1d8aa6(0xdc)]};_0xb29ab7!=null&&_0xb29ab7['colorChannel1']&&_0x3445f3[_0x1d8aa6(0x272)]===_0x1d8aa6(0x275)&&(_0x3445f3[_0x1d8aa6(0x272)]=_0xb29ab7[_0x1d8aa6(0x275)]),_0x154176[_0x1d8aa6(0x25a)]==='mask'&&_0x3445f3['id']&&(_0x3445f3['id']=_0x3445f3['id']+_0x5b5f3e['idSuffix']),Object[_0x1d8aa6(0x16d)](_0x3445f3)['forEach'](([_0x782e8d,_0x30c16d])=>{const _0x24a107=_0x1d8aa6;_0x782e8d===_0x24a107(0x25f)&&typeof _0x30c16d=='string'&&(_0x3445f3[_0x782e8d]=_0x30c16d[_0x24a107(0x1ee)](/url\(#(.*)\)/,_0x24a107(0x23e)+_0x5b5f3e['idSuffix']+')'));});const {defIds:_0x18d0f9}=_0x5b5f3e;return!_0x18d0f9||_0x18d0f9[_0x1d8aa6(0x197)]===0x0||(_0x154176[_0x1d8aa6(0x25a)]==='use'&&_0x3445f3[_0x1d8aa6(0x178)]&&(_0x3445f3[_0x1d8aa6(0x178)]=_0x3445f3[_0x1d8aa6(0x178)]+_0x5b5f3e[_0x1d8aa6(0x2a0)]),Object[_0x1d8aa6(0x16d)](_0x3445f3)[_0x1d8aa6(0x253)](([_0x39eea7,_0x11cefd])=>{const _0x4eeb1e=_0x1d8aa6;typeof _0x11cefd==_0x4eeb1e(0x268)&&(_0x3445f3[_0x39eea7]=_0x11cefd[_0x4eeb1e(0x1ee)](/url\(#(.*)\)/,_0x4eeb1e(0x23e)+_0x5b5f3e[_0x4eeb1e(0x2a0)]+')'));})),_0x3445f3;}function vi(_0x1938e9,_0x3c0ac2){const _0x2f08a0=_0x266cb1;var _0x56ce86;const {defIds:_0x5b3b04}=_0x3c0ac2;return!_0x5b3b04||_0x5b3b04[_0x2f08a0(0x197)]===0x0?_0x1938e9:_0x1938e9[_0x2f08a0(0x25a)]===_0x2f08a0(0x219)&&((_0x56ce86=_0x1938e9[_0x2f08a0(0x286)])!=null&&_0x56ce86[_0x2f08a0(0x197)])?{..._0x1938e9,'children':_0x1938e9[_0x2f08a0(0x286)]['map'](_0x2ff30f=>typeof _0x2ff30f[_0x2f08a0(0xdc)]['id']==_0x2f08a0(0x268)&&_0x5b3b04&&_0x5b3b04[_0x2f08a0(0xf0)](_0x2ff30f[_0x2f08a0(0xdc)]['id'])?{..._0x2ff30f,'attrs':{..._0x2ff30f[_0x2f08a0(0xdc)],'id':_0x2ff30f[_0x2f08a0(0xdc)]['id']+_0x3c0ac2[_0x2f08a0(0x2a0)]}}:_0x2ff30f)}:_0x1938e9;}function Ei(){const _0x2246d4=_0x266cb1;return Math[_0x2246d4(0x265)]()[_0x2246d4(0x29d)](0x24)[_0x2246d4(0x1cd)](0x2,0x8);}Ge[_0x266cb1(0x245)]=_0x266cb1(0x288);const pi={'tag':'svg','attrs':{'xmlns':_0x266cb1(0x148),'fill':_0x266cb1(0x18e),'viewBox':_0x266cb1(0x19d),'width':_0x266cb1(0x2b8),'height':_0x266cb1(0x2b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x266cb1(0x203)},'children':[{'tag':_0x266cb1(0x10c),'attrs':{'stroke':_0x266cb1(0x1f0),'d':_0x266cb1(0x2ea),'strokeLinecap':_0x266cb1(0x2cc),'strokeLinejoin':_0x266cb1(0x2cc),'strokeWidth':1.2}}]},{'tag':_0x266cb1(0x219),'attrs':{},'children':[{'tag':_0x266cb1(0x1b8),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x266cb1(0x10c),'attrs':{'fill':_0x266cb1(0x231),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x266cb1(0x1d7)]},Pt=_0x21dcd3(function(_0x36cb33,_0x47fa0f){const _0x4c6cc8=_0x266cb1;return _0x10d515(Ge,Object[_0x4c6cc8(0x10b)]({},_0x36cb33,{'id':'off-line-icon','ref':_0x47fa0f,'icon':pi}));});Pt[_0x266cb1(0x245)]=_0x266cb1(0x2ca);const Oi={'tag':_0x266cb1(0x284),'attrs':{'xmlns':_0x266cb1(0x148),'fill':_0x266cb1(0x18e),'viewBox':'0\x200\x2017\x2016','width':_0x266cb1(0x2b8),'height':_0x266cb1(0x2b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x266cb1(0x11c)},'children':[{'tag':_0x266cb1(0x10c),'attrs':{'stroke':_0x266cb1(0x1f0),'d':'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','strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x266cb1(0x219),'attrs':{},'children':[{'tag':_0x266cb1(0x1b8),'attrs':{'id':_0x266cb1(0x2f7)},'children':[{'tag':_0x266cb1(0x10c),'attrs':{'fill':_0x266cb1(0x231),'d':'M0\x200H16V16H0z','transform':_0x266cb1(0x14a)}}]}]}],'defIds':[_0x266cb1(0x2f7)]},wt=_0x21dcd3(function(_0x35ee6d,_0x3c5b67){const _0x5eaacb=_0x266cb1;return _0x10d515(Ge,Object[_0x5eaacb(0x10b)]({},_0x35ee6d,{'id':'on-line-icon','ref':_0x3c5b67,'icon':Oi}));});wt[_0x266cb1(0x245)]=_0x266cb1(0x2af);function Ti(_0x4cdf8c){const _0x43a1be=_0x266cb1;switch(_0x4cdf8c){case _0x2459b9[_0x43a1be(0x291)]:return _0x43a1be(0x176);case _0x2459b9[_0x43a1be(0x2be)]:return'collabStatus.conflict';case _0x2459b9['FETCH_MISS']:return _0x43a1be(0x2d1);case _0x2459b9['NOT_COLLAB']:return _0x43a1be(0x136);case _0x2459b9[_0x43a1be(0x109)]:case _0x2459b9[_0x43a1be(0x2e8)]:return _0x43a1be(0x232);case _0x2459b9[_0x43a1be(0xf6)]:case _0x2459b9[_0x43a1be(0x1a8)]:return _0x43a1be(0x280);}}function Ci(_0xdfa6f7){const _0x20096d=_0x266cb1,{status$:_0x565af5}=_0xdfa6f7,_0x25884e=_0x19e49c(_0x565af5,_0x2459b9[_0x20096d(0x277)]),_0x2b94e2=_0x4160cb(_0xe56074),_0xb34cd4=_0x4160cb(_0x4622ab),_0x1586cf=_0x25884e!==_0x2459b9[_0x20096d(0x291)],_0x3481aa=_0x2b94e2['t'](Ti(_0x25884e)),_0xebc431=_0x1586cf?_0x1272de(wt,{}):_0x1272de(Pt,{}),_0x42a7c4=_0x404f74(()=>{const _0x4da0af=_0x20096d;_0x1586cf||_0xb34cd4[_0x4da0af(0x1cb)]();},[_0x1586cf,_0xb34cd4]);function _0xe3cc13(){const _0x58fb54=_0x20096d;return _0xda46d2(_0x58fb54(0x100),{'className':_0x58fb54(0x2e3),'onClick':_0x42a7c4,'children':[_0x1272de('div',{'className':_0x181b7a(_0x58fb54(0x137),{'univer-text-green-500':_0x1586cf,'univer-text-red-500':!_0x1586cf}),'children':_0xebc431}),_0x1272de(_0x58fb54(0x100),{'className':_0x58fb54(0x22e),'children':_0x3481aa})]});}return _0x1586cf?_0xe3cc13():_0x1272de(_0x186829,{'title':_0x2b94e2['t'](_0x20096d(0x177)),'children':_0xe3cc13()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x302536,_0x30e105,_0x552438,_0x4f7927)=>{for(var _0x5b4c8d=_0x4f7927>0x1?void 0x0:_0x4f7927?Ri(_0x30e105,_0x552438):_0x30e105,_0x2e45b1=_0x302536['length']-0x1,_0x384f05;_0x2e45b1>=0x0;_0x2e45b1--)(_0x384f05=_0x302536[_0x2e45b1])&&(_0x5b4c8d=_0x384f05(_0x5b4c8d)||_0x5b4c8d);return _0x5b4c8d;},se=(_0x1bb2fa,_0x226390)=>(_0x18587b,_0x391d16)=>_0x226390(_0x18587b,_0x391d16,_0x1bb2fa);let ae=class extends _0x5a57f7{constructor(_0x1e9f3c,_0x42fc9a,_0x672b5f,_0x14bfff){const _0x1c4164=_0x266cb1;super(),_(this,_0x1c4164(0x2d4),new _0x501473(_0x2459b9[_0x1c4164(0x277)])),(this[_0x1c4164(0x1f3)]=_0x1e9f3c,this['_injector']=_0x42fc9a,this['_collaborationController']=_0x672b5f,this['_uiPartsService']=_0x14bfff,this[_0x1c4164(0x194)](),this[_0x1c4164(0x2f8)]());}[_0x266cb1(0x2f8)](){const _0x43bacd=_0x266cb1;this[_0x43bacd(0x2ed)](this[_0x43bacd(0x1f3)]['focused$'][_0x43bacd(0x242)](_0x57f9f7(()=>{const _0xce63b3=_0x43bacd,_0x2fb6f3=this['_univerInstanceService'][_0xce63b3(0x144)]();return _0x2fb6f3?this['_collaborationController'][_0xce63b3(0x131)](_0x2fb6f3['getUnitId']()):_0xefbff4(null);}),_0x57f9f7(_0x32d3b7=>_0x32d3b7?_0x32d3b7[_0x43bacd(0x2ce)]:_0xefbff4(_0x2459b9[_0x43bacd(0x277)])))[_0x43bacd(0x215)](_0x7e7a88=>{const _0x468dd9=_0x43bacd;this[_0x468dd9(0x2d4)][_0x468dd9(0x1a1)](_0x7e7a88);}));}[_0x266cb1(0x194)](){const _0x2a32f6=_0x266cb1;this[_0x2a32f6(0x2ed)](this[_0x2a32f6(0x153)][_0x2a32f6(0x25b)](_0x21ff65[_0x2a32f6(0x217)],()=>_0x198a07(bi({'status$':this[_0x2a32f6(0x2d4)]['asObservable']()}),this[_0x2a32f6(0x188)])));}};ae=Di([se(0x0,_0x327d97),se(0x1,_0x3179ca(_0x52e011)),se(0x2,_0x3179ca(_0x4b8426)),se(0x3,_0x5b75a5)],ae);function bi(_0x5c88bb){const {status$:_0x4413ea}=_0x5c88bb;return function(){return _0x1272de(Ci,{'status$':_0x4413ea});};}const yt=_0x445032('uni.network.url-service');var Ni=Object['getOwnPropertyDescriptor'],Li=(_0x325c18,_0x1083f7,_0x3c9722,_0x2559fc)=>{const _0x19356e=_0x266cb1;for(var _0x25abb5=_0x2559fc>0x1?void 0x0:_0x2559fc?Ni(_0x1083f7,_0x3c9722):_0x1083f7,_0x133b88=_0x325c18[_0x19356e(0x197)]-0x1,_0x350c65;_0x133b88>=0x0;_0x133b88--)(_0x350c65=_0x325c18[_0x133b88])&&(_0x25abb5=_0x350c65(_0x25abb5)||_0x25abb5);return _0x25abb5;},K=(_0x4538a5,_0x4b2b0a)=>(_0x511054,_0x5919ed)=>_0x4b2b0a(_0x511054,_0x5919ed,_0x4538a5);let ce=class extends _0x165e64{constructor(_0x37d424,_0x4669a8,_0x1d92ca,_0x4ee0b4,_0x303779){const _0x164ef9=_0x266cb1;super(),this[_0x164ef9(0x108)]=_0x37d424,this[_0x164ef9(0x129)]=_0x4669a8,this[_0x164ef9(0x29f)]=_0x1d92ca,this['_dataLoaderService']=_0x4ee0b4,_0x303779?_0x303779==null||_0x303779[_0x164ef9(0x1ae)]()[_0x164ef9(0x313)](()=>this[_0x164ef9(0x151)]()):(this[_0x164ef9(0x129)][_0x164ef9(0x2ad)]('[CollaborationDataLoaderController]',_0x164ef9(0x28f)),this[_0x164ef9(0x151)]());}async[_0x266cb1(0x151)](){const _0x4b82c5=_0x266cb1,_0x19ea9=this[_0x4b82c5(0x108)][_0x4b82c5(0x13c)](_0x4b82c5(0x1e5)),_0x190551=this[_0x4b82c5(0x108)][_0x4b82c5(0x13c)](_0x4b82c5(0x15a)),_0x477f00=this['_urlService'][_0x4b82c5(0x13c)](_0x4b82c5(0x190));if(!_0x19ea9||!_0x190551){this['_logService'][_0x4b82c5(0x2ad)](_0x4b82c5(0x1e0),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x427025=await this[_0x4b82c5(0xe0)][_0x4b82c5(0x107)](_0x19ea9,Number(_0x190551),_0x477f00);_0x427025&&_0x427025 instanceof _0x19f744&&this[_0x4b82c5(0x112)](_0x427025);}async[_0x266cb1(0x112)](_0x3d2ce1){const _0x21b632=_0x266cb1;await this[_0x21b632(0x128)](_0x3d2ce1),_0x3d2ce1[_0x21b632(0x27e)][_0x21b632(0x242)](_0x21b87b(this[_0x21b632(0xff)]))[_0x21b632(0x215)](_0x5ed71f=>{_0x5ed71f&&this['_updateURLWithCurrentState'](_0x5ed71f);}),this['_urlService']['urlChange$'][_0x21b632(0x242)](_0x21b87b(this['dispose$']))['subscribe'](()=>this[_0x21b632(0x128)](_0x3d2ce1));}[_0x266cb1(0x2d7)](_0xfb7c74,_0x33a3f0=!0x1){const _0x4d3639=_0x266cb1,_0x415c43=this[_0x4d3639(0x108)][_0x4d3639(0x13c)](_0x4d3639(0x190));_0xfb7c74[_0x4d3639(0x326)]()!==_0x415c43&&this[_0x4d3639(0x108)][_0x4d3639(0x2a5)](_0x4d3639(0x190),_0xfb7c74[_0x4d3639(0x326)](),_0x33a3f0);}async['_updateSubUnitFromURLParams'](_0x2a946f){const _0x5ba24b=_0x266cb1;var _0x9ee2fc;const _0xdf2d57=this[_0x5ba24b(0x108)][_0x5ba24b(0x13c)](_0x5ba24b(0x190));if(!_0xdf2d57||!_0x2a946f[_0x5ba24b(0x179)](_0xdf2d57)){const _0x5eeecc=_0x2a946f[_0x5ba24b(0x187)]()[0x0],_0x1b7bad=_0x2a946f['getSheetBySheetId'](_0x5eeecc);if(!_0x1b7bad)return;this[_0x5ba24b(0x2d7)](_0x1b7bad,!0x0),await this[_0x5ba24b(0x29f)]['executeCommand'](_0x15e373['id'],{'unitId':_0x2a946f[_0x5ba24b(0x211)](),'subUnitId':_0x5eeecc});return;}((_0x9ee2fc=_0x2a946f[_0x5ba24b(0x18b)]())==null?void 0x0:_0x9ee2fc[_0x5ba24b(0x326)]())!==_0xdf2d57&&await this['_commandService']['executeCommand'](_0x15e373['id'],{'unitId':_0x2a946f[_0x5ba24b(0x211)](),'subUnitId':_0xdf2d57});}};ce=Li([K(0x0,yt),K(0x1,_0x53fc3e),K(0x2,_0x398133),K(0x3,_0x3179ca(_0x240356)),K(0x4,_0x48d43d(_0x66fc1c))],ce);var Ui=Object[_0x266cb1(0x327)],Mi=(_0x3b1abc,_0x46c9f1,_0xc1aa00,_0x36e882)=>{for(var _0x3cba8b=_0x36e882>0x1?void 0x0:_0x36e882?Ui(_0x46c9f1,_0xc1aa00):_0x46c9f1,_0x103d6b=_0x3b1abc['length']-0x1,_0x111398;_0x103d6b>=0x0;_0x103d6b--)(_0x111398=_0x3b1abc[_0x103d6b])&&(_0x3cba8b=_0x111398(_0x3cba8b)||_0x3cba8b);return _0x3cba8b;},rt=(_0x4a322a,_0x2a3bce)=>(_0x20f180,_0x3b75e5)=>_0x2a3bce(_0x20f180,_0x3b75e5,_0x4a322a);let $e=class extends _0x165e64{constructor(_0x5c4980,_0x4fea93){const _0x165da4=_0x266cb1;super(),this[_0x165da4(0x230)]=_0x5c4980,this['_imageIoService']=_0x4fea93,this[_0x165da4(0x151)]();}[_0x266cb1(0x151)](){const _0xcfddc7=_0x266cb1,_0x412174=this;this[_0xcfddc7(0x2ed)](this[_0xcfddc7(0x230)][_0xcfddc7(0x325)]({'onBeforePasteImage':async _0x2961a4=>{const _0x3a9fa7=_0xcfddc7,_0x3553d1=await _0x412174[_0x3a9fa7(0x11d)][_0x3a9fa7(0x18a)](_0x2961a4);return _0x3553d1?{'source':_0x3553d1[_0x3a9fa7(0x18d)],'imageSourceType':_0x3553d1[_0x3a9fa7(0x1cf)]}:null;}}));}};$e=Mi([rt(0x0,_0x311d66),rt(0x1,_0x13add7)],$e);const ot=[_0x266cb1(0x163),_0x266cb1(0x11b),_0x266cb1(0x2a3),'red.300','blue.400',_0x266cb1(0x2fc)];class Ke extends _0x5a57f7{constructor(){const _0x3cb257=_0x266cb1;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x3cb257(0x2b1),0x0);}[_0x266cb1(0x1e3)](_0x5bd6a1){const _0x379fa0=_0x266cb1;if(this[_0x379fa0(0x1e8)][_0x379fa0(0x276)](_0x5bd6a1))return this['_assignedColors'][_0x379fa0(0x2c6)](_0x5bd6a1);const _0x158a6c=ot[this[_0x379fa0(0x2b1)]];return this[_0x379fa0(0x2b1)]=(this[_0x379fa0(0x2b1)]+0x1)%ot['length'],this[_0x379fa0(0x1e8)][_0x379fa0(0x186)](_0x5bd6a1,_0x158a6c),_0x158a6c;}}function $t(_0xf9df9f){const _0x3fc753=_0x266cb1;let _0x360532='';for(const _0x4c13b2 of _0xf9df9f){const {startOffset:_0x309542,endOffset:_0x4dbbe9,isActive:_0x1a0c42,rangeType:_0x168a29,segmentId:_0x33b8b2,segmentPage:_0x204794}=_0x4c13b2;_0x360532[_0x3fc753(0x197)]&&(_0x360532+=','),_0x360532+=_0x309542+':'+_0x4dbbe9+':'+(_0x1a0c42?'1':'0')+':'+_0x168a29+':'+_0x33b8b2+':'+_0x204794;}return _0x360532;}function Ai(_0x56de6b){const _0x6d3aa7=_0x266cb1,_0x47e132=_0x56de6b[_0x6d3aa7(0x1ab)](','),_0x54a4b3=[];for(const _0x267609 of _0x47e132){const [_0x544556,_0x58b71d,_0x23cf65,_0x558c40,_0x545d2d,_0x3ec797]=_0x267609[_0x6d3aa7(0x1ab)](':');_0x54a4b3['push']({'startOffset':Number(_0x544556),'endOffset':Number(_0x58b71d),'collapsed':_0x544556===_0x58b71d,'isActive':_0x23cf65==='1','rangeType':_0x558c40===_0x16d0ed[_0x6d3aa7(0x1dd)]?_0x16d0ed[_0x6d3aa7(0x1dd)]:_0x16d0ed['RECT'],'segmentId':typeof _0x545d2d==_0x6d3aa7(0x268)?String(_0x545d2d):'','segmentPage':Number(_0x3ec797!=null?_0x3ec797:-0x1)});}return _0x54a4b3[_0x6d3aa7(0x101)](_0x5ec9e6=>_0x5ec9e6[_0x6d3aa7(0x1cc)])||(_0x54a4b3[0x0][_0x6d3aa7(0x1cc)]=!0x0),_0x54a4b3;}class ze extends _0x165e64{constructor(){const _0x37cc01=_0x266cb1;super(...arguments),_(this,'_collabCursorState$',new _0x501473(null)),_(this,_0x37cc01(0x14d),this['_collabCursorState$'][_0x37cc01(0x16a)]());}[_0x266cb1(0xd4)](_0x5713b8){const _0x5c21b8=_0x266cb1,{unitID:_0x46627e,memberID:_0x1dfbc5,textRanges:_0x42ad30}=_0x5713b8,_0x17bad9=$t(_0x42ad30);if(_0x17bad9==='')return;const _0x52b6e9={'unitID':_0x46627e,'memberID':_0x1dfbc5,'selection':_0x17bad9};this[_0x5c21b8(0x30a)][_0x5c21b8(0x1a1)](_0x52b6e9);}}var Pi=Object[_0x266cb1(0x327)],wi=(_0x463465,_0x57db1a,_0x1adacc,_0x90f1b7)=>{const _0x10eb9c=_0x266cb1;for(var _0x59463f=_0x90f1b7>0x1?void 0x0:_0x90f1b7?Pi(_0x57db1a,_0x1adacc):_0x57db1a,_0x3c45f6=_0x463465[_0x10eb9c(0x197)]-0x1,_0x3ace37;_0x3c45f6>=0x0;_0x3c45f6--)(_0x3ace37=_0x463465[_0x3c45f6])&&(_0x59463f=_0x3ace37(_0x59463f)||_0x59463f);return _0x59463f;},A=(_0x41e988,_0x54faec)=>(_0x4c279c,_0x57a014)=>_0x54faec(_0x4c279c,_0x57a014,_0x41e988);const yi=0x12c,$i=0x64;let xe=class extends _0x165e64{constructor(_0x1fba53,_0x5c6933,_0x5ceb18,_0x2f81cc,_0x5d8230,_0x904422,_0x1aa5ab,_0x110174,_0x28b4d1){const _0x3b7f8d=_0x266cb1;super(),_(this,_0x3b7f8d(0x281),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new _0x501473(new Map())),_(this,'cursorInfo$',this[_0x3b7f8d(0x30f)][_0x3b7f8d(0x16a)]()),_(this,_0x3b7f8d(0x140),new _0x501473([])),_(this,_0x3b7f8d(0x267),this['_roomMembers$'][_0x3b7f8d(0x242)](_0x6dca12(yi))),_(this,'_updateLocalCursor',_0x51782d(_0x31d61f=>{const _0x22ce2c=_0x3b7f8d,_0x20f3c2={'eventID':_0x5bf969['UPDATE_CURSOR'],'data':{'unitID':this[_0x22ce2c(0x271)],'memberID':this['_session']['getMemberID'](),'selection':$t(_0x31d61f)}};this[_0x22ce2c(0x12b)][_0x22ce2c(0x154)](_0x20f3c2,this[_0x22ce2c(0x271)]);},$i)),(this[_0x3b7f8d(0x271)]=_0x1fba53,this[_0x3b7f8d(0x12b)]=_0x5c6933,this[_0x3b7f8d(0x188)]=_0x5ceb18,this[_0x3b7f8d(0x299)]=_0x2f81cc,this[_0x3b7f8d(0x2c3)]=_0x5d8230,this[_0x3b7f8d(0xf9)]=_0x904422,this[_0x3b7f8d(0x143)]=_0x1aa5ab,this[_0x3b7f8d(0x1f3)]=_0x110174,this['_commandService']=_0x28b4d1);}get[_0x266cb1(0x1f9)](){const _0x31d5bc=_0x266cb1;return this['_cursorInfo$'][_0x31d5bc(0x329)]();}get['roomMembers'](){const _0x541965=_0x266cb1;return this[_0x541965(0x140)]['getValue']();}[_0x266cb1(0x156)](){const _0x32bcbe=_0x266cb1;super['dispose'](),this[_0x32bcbe(0x30f)][_0x32bcbe(0x1a1)](new Map()),this['_cursorInfo$'][_0x32bcbe(0x2e1)](),this[_0x32bcbe(0x140)][_0x32bcbe(0x1a1)]([]),this['_roomMembers$'][_0x32bcbe(0x2e1)]();}['init'](){const _0x651342=_0x266cb1;this[_0x651342(0x151)]||(this['_init']=!0x0,this[_0x651342(0x12b)]['sessionStatus$'][_0x651342(0x242)](_0x21b87b(this[_0x651342(0xff)]))[_0x651342(0x215)](_0x5b7627=>{const _0x1a2ddd=_0x651342;_0x5b7627===_0x49fe26[_0x1a2ddd(0x2ba)]?this[_0x1a2ddd(0x19b)]():this[_0x1a2ddd(0x1a5)]();}),this['_session'][_0x651342(0x2a8)][_0x651342(0x242)](_0x21b87b(this[_0x651342(0xff)]))[_0x651342(0x215)](_0x24cede=>{const _0x483243=_0x651342,_0x14dc70=_0x24cede[_0x483243(0x2bc)];_0x14dc70===_0x5bf969[_0x483243(0x261)]&&this[_0x483243(0x1a2)](_0x24cede),_0x14dc70===_0x5bf969[_0x483243(0x2d6)]&&this[_0x483243(0x20d)](_0x24cede);}),this[_0x651342(0x2ed)](this['_commandService'][_0x651342(0x2bb)](_0x1ea248=>{const _0x569d25=_0x651342,_0x166520=_0x1ea248[_0x569d25(0x20a)];_0x166520!=null&&this['_online']&&_0x1ea248['id']===_0x18b4e6['id']&&_0x166520[_0x569d25(0x180)]===this[_0x569d25(0x271)]&&_0x166520[_0x569d25(0x1c2)]===!0x1&&_0x166520[_0x569d25(0x1d2)][_0x569d25(0x197)]>0x0&&this[_0x569d25(0x222)](_0x166520[_0x569d25(0x1d2)]);})),this[_0x651342(0xf9)][_0x651342(0x14d)]['pipe'](_0x21b87b(this[_0x651342(0xff)]))['subscribe'](_0x359353=>{const _0x3b19c3=_0x651342;if((_0x359353==null?void 0x0:_0x359353[_0x3b19c3(0x271)])!==this['unitID'])return;const _0x479098={'eventID':_0x5bf969[_0x3b19c3(0x261)],'data':_0x359353};this[_0x3b19c3(0x1a2)](_0x479098);}),this[_0x651342(0x2ed)](this[_0x651342(0x29f)][_0x651342(0x2bb)](_0x5ef291=>{const _0xb65393=_0x651342;if(_0x5ef291[_0xb65393(0x20a)]==null)return;const _0x213745=_0x5ef291[_0xb65393(0x20a)];if(_0x5ef291['id']!==_0x282851['id']||_0x213745[_0xb65393(0x180)]!==this[_0xb65393(0x271)])return;const _0x1976c7={'id':'doc.mutation.rich-text-editing','params':_0x213745},_0xa7a3f5=this[_0xb65393(0x1f9)];for(const [_0xf1ddbc,_0x113084]of _0xa7a3f5){const _0x1ec74b={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0xb65393(0x271)],'actions':null,'textRanges':_0x113084[_0xb65393(0x1d2)]}},_0x40c219=this['_transformService'][_0xb65393(0x1ea)](_0x1976c7,_0x1ec74b,!0x1);if(_0x2bd73d(_0x40c219))throw _0x40c219[_0xb65393(0x205)];_0xa7a3f5[_0xb65393(0x186)](_0xf1ddbc,{..._0x113084,'ranges':_0x40c219[_0xb65393(0x220)][_0xb65393(0x20a)][_0xb65393(0x1ac)]});}queueMicrotask(()=>{const _0x2abe53=_0xb65393;this[_0x2abe53(0x30f)]['next'](_0xa7a3f5);});})));}[_0x266cb1(0x1a2)](_0x4b4c11){const _0x586511=_0x266cb1;var _0x37ca0e,_0x2faaeb;const {memberID:_0x337a3d,selection:_0x5ce0ea}=_0x4b4c11[_0x586511(0x2d5)],_0x4ccb96=Ai(_0x5ce0ea),_0x52545c=(_0x2faaeb=(_0x37ca0e=this[_0x586511(0x2c3)][_0x586511(0x223)](this[_0x586511(0x271)],_0x337a3d))==null?void 0x0:_0x37ca0e[_0x586511(0x135)])!=null?_0x2faaeb:_0x586511(0x255),_0x49d44b={'color':this[_0x586511(0x299)]['assignAColorForMemberID'](_0x337a3d),'name':_0x52545c,'ranges':_0x4ccb96},_0x2b5ceb=this['cursorInfo'];_0x2b5ceb[_0x586511(0x186)](_0x337a3d,_0x49d44b),this['_cursorInfo$']['next'](_0x2b5ceb);}[_0x266cb1(0x20d)](_0x2bd34e){const _0x251e1a=_0x266cb1,{memberID:_0x268121}=_0x2bd34e[_0x251e1a(0x2d5)],_0x4d878=this[_0x251e1a(0x1f9)];_0x4d878['delete'](_0x268121),this[_0x251e1a(0x30f)][_0x251e1a(0x1a1)](_0x4d878);}[_0x266cb1(0x19b)](){const _0x1cfedb=_0x266cb1;var _0x35b531;if(this['_online']=!0x0,((_0x35b531=this[_0x1cfedb(0x1f3)]['getFocusedUnit']())==null?void 0x0:_0x35b531['getUnitId']())!==this[_0x1cfedb(0x271)])return;const _0x182ac9=this[_0x1cfedb(0x188)][_0x1cfedb(0x2c6)](_0x781f61)[_0x1cfedb(0x224)]();Array['isArray'](_0x182ac9)&&_0x182ac9[_0x1cfedb(0x197)]>0x0&&this[_0x1cfedb(0x222)](_0x182ac9);}[_0x266cb1(0x1a5)](){this['_online']=!0x1;}};xe=wi([A(0x2,_0x3179ca(_0x52e011)),A(0x3,_0x3179ca(Ke)),A(0x4,_0x3179ca(_0x4c8a8e)),A(0x5,_0x3179ca(ze)),A(0x6,_0x1f1952),A(0x7,_0x327d97),A(0x8,_0x398133)],xe);var xi=Object[_0x266cb1(0x327)],Bi=(_0x20fca9,_0x1e4f5d,_0x573689,_0xf9459a)=>{const _0x553e92=_0x266cb1;for(var _0xcc6ce4=_0xf9459a>0x1?void 0x0:_0xf9459a?xi(_0x1e4f5d,_0x573689):_0x1e4f5d,_0x5a660b=_0x20fca9[_0x553e92(0x197)]-0x1,_0x5ec577;_0x5a660b>=0x0;_0x5a660b--)(_0x5ec577=_0x20fca9[_0x5a660b])&&(_0xcc6ce4=_0x5ec577(_0xcc6ce4)||_0xcc6ce4);return _0xcc6ce4;},B=(_0x79685b,_0x4a68f7)=>(_0x39b837,_0x4ada67)=>_0x4a68f7(_0x39b837,_0x4ada67,_0x79685b);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x4122cb=[],_0x2d7f26=!0x1;return _0x422af4=>{const _0x59a8f9=_0x57d7;_0x4122cb[_0x59a8f9(0x30c)](_0x422af4),_0x2d7f26||(_0x2d7f26=!0x0,setTimeout(()=>{const _0x2ff32e=_0x59a8f9;_0x4122cb[_0x2ff32e(0x253)](_0x1f02d1=>_0x1f02d1()),_0x4122cb=[],_0x2d7f26=!0x1;}));};};let Be=class extends _0x165e64{constructor(_0x42e90e,_0x38a678,_0x538019,_0xc71180,_0x1ce4af,_0x3cb534,_0x1f8835,_0x5ebc19){const _0xf4b2b7=_0x266cb1;super(),_(this,_0xf4b2b7(0x281),!0x1),_(this,_0xf4b2b7(0x151),!0x1),_(this,_0xf4b2b7(0x30f),new _0x501473(new Map())),_(this,'cursorInfo$',this[_0xf4b2b7(0x30f)]['asObservable']()),_(this,_0xf4b2b7(0x140),new _0x501473([])),_(this,_0xf4b2b7(0x267),this[_0xf4b2b7(0x140)][_0xf4b2b7(0x242)](_0x6dca12(Fi))),_(this,'_updateLocalCursor',_0x51782d((_0x45f60d,_0x2f2bc1)=>{const _0x39918c=_0xf4b2b7,_0x3954b5={'eventID':_0x5bf969[_0x39918c(0x261)],'data':{'unitID':this[_0x39918c(0x271)],'memberID':this['_session'][_0x39918c(0x2d9)](),'selection':_0x631d1d(_0x45f60d,_0x2f2bc1[_0x39918c(0x1b3)])}};this['_session']['send'](_0x3954b5,this[_0x39918c(0x271)]);},ki)),(this[_0xf4b2b7(0x271)]=_0x42e90e,this[_0xf4b2b7(0x12b)]=_0x38a678,this[_0xf4b2b7(0x188)]=_0x538019,this[_0xf4b2b7(0x299)]=_0xc71180,this[_0xf4b2b7(0x2c3)]=_0x1ce4af,this[_0xf4b2b7(0x1f3)]=_0x3cb534,this[_0xf4b2b7(0x29f)]=_0x1f8835,this[_0xf4b2b7(0x20b)]=_0x5ebc19);}get[_0x266cb1(0x1f9)](){const _0x15070c=_0x266cb1;return this['_cursorInfo$'][_0x15070c(0x329)]();}get[_0x266cb1(0x1de)](){const _0x4bcab5=_0x266cb1;return this[_0x4bcab5(0x140)][_0x4bcab5(0x329)]();}[_0x266cb1(0x156)](){const _0x325e15=_0x266cb1;super[_0x325e15(0x156)](),this[_0x325e15(0x30f)][_0x325e15(0x1a1)](new Map()),this[_0x325e15(0x30f)][_0x325e15(0x2e1)](),this['_roomMembers$'][_0x325e15(0x1a1)]([]),this[_0x325e15(0x140)][_0x325e15(0x2e1)]();}['init'](){const _0x1cff99=_0x266cb1;this[_0x1cff99(0x151)]||(this['_init']=!0x0,this['_session'][_0x1cff99(0xea)][_0x1cff99(0x242)](_0x21b87b(this[_0x1cff99(0xff)]))[_0x1cff99(0x215)](_0x55d8ca=>{const _0x15b1d9=_0x1cff99;_0x55d8ca===_0x49fe26[_0x15b1d9(0x2ba)]?this[_0x15b1d9(0x19b)]():this[_0x15b1d9(0x1a5)]();}),this['_session'][_0x1cff99(0x2a8)]['pipe'](_0x21b87b(this[_0x1cff99(0xff)]))[_0x1cff99(0x215)](_0x85315c=>{const _0x56443d=_0x1cff99,_0x588e1f=_0x85315c['eventID'];_0x588e1f===_0x5bf969[_0x56443d(0x261)]&&this[_0x56443d(0x1a2)](_0x85315c),_0x588e1f===_0x5bf969[_0x56443d(0x2d6)]&&this[_0x56443d(0x20d)](_0x85315c);}),this[_0x1cff99(0x11e)](),this[_0x1cff99(0x2ed)](this['_commandService'][_0x1cff99(0x2bb)](_0x433a12=>{const _0x4f29be=_0x1cff99;if(this[_0x4f29be(0x281)]&&_0x433a12['id']===_0xa26fed['id']&&_0x433a12[_0x4f29be(0x20a)][_0x4f29be(0x180)]===this['unitID']){const _0x708702=_0x433a12['params'];this[_0x4f29be(0x222)](_0x708702[_0x4f29be(0x160)],_0x708702[_0x4f29be(0xef)][0x0]);}})));}['_onCursorUpdate'](_0x471cf6){const _0x1b3ba6=_0x266cb1;var _0x6557e,_0xfeb2fd;const {memberID:_0x554857,selection:_0x34f5d7}=_0x471cf6['data'],{sheetName:_0x515440,range:_0x5a332d}=_0x5aed6d(_0x34f5d7),_0x2a0a91={'name':(_0xfeb2fd=(_0x6557e=this[_0x1b3ba6(0x2c3)]['getMember'](this['unitID'],_0x554857))==null?void 0x0:_0x6557e['name'])!=null?_0xfeb2fd:_0x1b3ba6(0x255),'range':this['_getMergeRange'](_0x515440,_0x5a332d),'sheetID':_0x515440,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x554857),'selection':_0x34f5d7},_0x52e3ad=this[_0x1b3ba6(0x1f9)];_0x52e3ad['set'](_0x554857,_0x2a0a91),this['_cursorInfo$']['next'](_0x52e3ad);}['_onCursorDelete'](_0x11b583){const _0x1466c2=_0x266cb1,{memberID:_0x158b48}=_0x11b583['data'],_0x471bcc=this[_0x1466c2(0x1f9)];_0x471bcc[_0x1466c2(0x21b)](_0x158b48),this['_cursorInfo$'][_0x1466c2(0x1a1)](_0x471bcc);}[_0x266cb1(0x1e7)](_0x18e8d5,_0x123d84){const _0x686e80=_0x266cb1;var _0x28ffd6,_0x4c467d;const _0x304132=(_0x4c467d=(_0x28ffd6=this['_univerInstanceService'][_0x686e80(0x247)](this[_0x686e80(0x271)]))==null?void 0x0:_0x28ffd6['getSheetBySheetId'](_0x18e8d5))==null?void 0x0:_0x4c467d[_0x686e80(0x2cf)]();return(_0x304132==null?void 0x0:_0x304132[_0x686e80(0x116)](_0x524b31=>_0x50f348['contains'](_0x524b31,_0x123d84)))||_0x123d84;}[_0x266cb1(0x11e)](){const _0x4eb676=_0x266cb1,_0x1f03c1=new _0x151e8b(),_0x2d9eee=Hi(),_0x25586c=()=>{const _0x45019f=_0x57d7;_0x1f03c1[_0x45019f(0x156)]();const _0x52e0d6=(_0xcb704f,_0x47dfec,_0x1fce98,_0x548002)=>{const _0x3ed102=_0x45019f;let _0x59de0a=[];switch(_0xcb704f['id']){case _0x1c0e24['DeleteRangeMoveLeftCommandId']:{_0x59de0a=_0x3b46c3(_0xcb704f,_0x548002);break;}case _0x1c0e24['DeleteRangeMoveUpCommandId']:{_0x59de0a=_0x2e79a3(_0xcb704f,_0x548002);break;}case _0x1c0e24['InsertColCommandId']:{_0x59de0a=_0x22ee2b(_0xcb704f,_0x548002);break;}case _0x1c0e24[_0x3ed102(0x28a)]:{_0x59de0a=_0x1de61b(_0xcb704f,_0x548002);break;}case _0x1c0e24[_0x3ed102(0x2e6)]:{_0x59de0a=_0x538e7e(_0xcb704f,_0x548002);break;}case _0x1c0e24['InsertRowCommandId']:{_0x59de0a=_0xb5043d(_0xcb704f,_0x548002);break;}case _0x1c0e24[_0x3ed102(0x1a6)]:{_0x59de0a=_0x3dd79a(_0xcb704f,_0x548002);break;}case _0x1c0e24[_0x3ed102(0x13d)]:{_0x59de0a=_0x3098d9(_0xcb704f,_0x548002);break;}case _0x1c0e24[_0x3ed102(0x16b)]:{_0x59de0a=_0x2f08fe(_0xcb704f,_0x548002);break;}}const _0x1dac7d=_0x3ec78d(_0x59de0a,_0x548002),_0x1402a3=this[_0x3ed102(0x1f9)][_0x3ed102(0x2c6)](_0x47dfec);if(_0x1402a3&&_0x1dac7d){const _0xfd89d3={..._0x1402a3,'range':_0x1dac7d};this[_0x3ed102(0x1f9)][_0x3ed102(0x186)](_0x47dfec,_0xfd89d3),_0x2d9eee(()=>{const _0x543a38=_0x3ed102,_0x5ad0bf=this[_0x543a38(0x20b)]['registerRefRange'](_0x1dac7d,_0x520425=>(_0x5ad0bf[_0x543a38(0x156)](),_0x52e0d6(_0x520425,_0x47dfec,_0x1fce98,_0x1dac7d)));_0x1f03c1[_0x543a38(0xec)](_0x5ad0bf);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x45019f(0x253)]((_0x4c86c1,_0x11af50)=>{const _0x4b45f9=_0x45019f,{range:_0x415205,sheetID:_0x201f51}=_0x4c86c1,_0x530366=this[_0x4b45f9(0x20b)][_0x4b45f9(0x1f7)](_0x415205,_0x26c223=>(_0x530366[_0x4b45f9(0x156)](),_0x52e0d6(_0x26c223,_0x11af50,_0x201f51,_0x415205)));_0x1f03c1[_0x4b45f9(0xec)](_0x530366);});};this[_0x4eb676(0x2ed)](_0x4001b9(this[_0x4eb676(0x30f)][_0x4eb676(0x215)](()=>{_0x25586c();})));}[_0x266cb1(0x19b)](){const _0x50dcbb=_0x266cb1;var _0x2c2dca,_0x4f7e32;if(this['_online']=!0x0,((_0x2c2dca=this[_0x50dcbb(0x1f3)][_0x50dcbb(0x144)]())==null?void 0x0:_0x2c2dca[_0x50dcbb(0x211)]())!==this[_0x50dcbb(0x271)])return;const _0x628652=(_0x4f7e32=this[_0x50dcbb(0x188)][_0x50dcbb(0x2c6)](_0x3a756d)[_0x50dcbb(0xf1)]())==null?void 0x0:_0x4f7e32[0x0],_0x4cee00=this[_0x50dcbb(0x1f3)][_0x50dcbb(0x202)](_0x4f0ec8[_0x50dcbb(0x308)])[_0x50dcbb(0x18b)]();_0x628652&&_0x4cee00&&this[_0x50dcbb(0x222)](_0x4cee00[_0x50dcbb(0x326)](),_0x628652);}[_0x266cb1(0x1a5)](){const _0x4bbfab=_0x266cb1;this[_0x4bbfab(0x281)]=!0x1;}};Be=Bi([B(0x2,_0x3179ca(_0x52e011)),B(0x3,_0x3179ca(Ke)),B(0x4,_0x3179ca(_0x4c8a8e)),B(0x5,_0x327d97),B(0x6,_0x398133),B(0x7,_0x3179ca(_0x482615))],Be);var Yi=Object[_0x266cb1(0x327)],Wi=(_0x1fda00,_0x523984,_0x15773c,_0x3e4737)=>{const _0x2b4b8f=_0x266cb1;for(var _0x3a01d2=_0x3e4737>0x1?void 0x0:_0x3e4737?Yi(_0x523984,_0x15773c):_0x523984,_0x37a93d=_0x1fda00[_0x2b4b8f(0x197)]-0x1,_0x3fedd9;_0x37a93d>=0x0;_0x37a93d--)(_0x3fedd9=_0x1fda00[_0x37a93d])&&(_0x3a01d2=_0x3fedd9(_0x3a01d2)||_0x3a01d2);return _0x3a01d2;},Ce=(_0x93ed32,_0x2f4792)=>(_0x1698aa,_0x1b3512)=>_0x2f4792(_0x1698aa,_0x1b3512,_0x93ed32);let H=class extends _0x165e64{constructor(_0x564803,_0x71cd9,_0xbbd2bb){const _0x5c5557=_0x266cb1;super(),_(this,_0x5c5557(0x1f5),new Map()),_(this,_0x5c5557(0x2a1),new _0x3ed230()),(this[_0x5c5557(0x1f3)]=_0x564803,this[_0x5c5557(0x188)]=_0x71cd9,this[_0x5c5557(0x1e2)]=_0xbbd2bb,this[_0x5c5557(0x151)]());}[_0x266cb1(0x156)](){const _0x521e76=_0x266cb1;super[_0x521e76(0x156)](),this[_0x521e76(0x2a1)]['complete'](),this['_entities'][_0x521e76(0x253)](_0x136a34=>_0x136a34[_0x521e76(0x156)]());}[_0x266cb1(0x2a9)](_0x82d7c5){const _0x2ffeed=_0x266cb1;return this[_0x2ffeed(0x1f5)][_0x2ffeed(0x276)](_0x82d7c5)?this[_0x2ffeed(0x1f5)][_0x2ffeed(0x2c6)](_0x82d7c5)['cursorInfo$']:this[_0x2ffeed(0x2a1)][_0x2ffeed(0x242)](_0x20c03b(_0x4b3c89=>_0x4b3c89['unitID']===_0x82d7c5),_0x57f9f7(_0x556c93=>_0x556c93[_0x2ffeed(0x21f)]));}['_init'](){const _0x578afd=_0x266cb1;this[_0x578afd(0x1f3)][_0x578afd(0x312)](_0x4f0ec8['UNIVER_SHEET'])['pipe'](_0x21b87b(this[_0x578afd(0xff)]))[_0x578afd(0x215)](async _0x4740f7=>{const _0xaf7ae6=_0x578afd,_0x415127=_0x4740f7[_0xaf7ae6(0x211)](),_0x4e6506=await this[_0xaf7ae6(0x24b)](_0x415127);this['_entityInit$']['next'](_0x4e6506),this[_0xaf7ae6(0x1f5)][_0xaf7ae6(0x186)](_0x415127,_0x4e6506);}),this[_0x578afd(0x1f3)][_0x578afd(0x312)](_0x4f0ec8[_0x578afd(0xf3)])[_0x578afd(0x242)](_0x21b87b(this[_0x578afd(0xff)]))[_0x578afd(0x242)](_0x20c03b(_0x393243=>!_0x393243[_0x578afd(0x211)]()[_0x578afd(0x1c1)]('__')))[_0x578afd(0x215)](async _0x5cd821=>{const _0x26b313=_0x578afd,_0x3a6e2b=_0x5cd821[_0x26b313(0x211)](),_0x20b18a=await this[_0x26b313(0xe5)](_0x3a6e2b);this[_0x26b313(0x2a1)][_0x26b313(0x1a1)](_0x20b18a),this[_0x26b313(0x1f5)][_0x26b313(0x186)](_0x3a6e2b,_0x20b18a);}),_0x1c6b14(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4f0ec8['UNIVER_DOC']),this['_univerInstanceService'][_0x578afd(0x2da)](_0x4f0ec8[_0x578afd(0x308)]))['pipe'](_0x21b87b(this[_0x578afd(0xff)]))[_0x578afd(0x215)](_0xb1672e=>{const _0x2d5af3=_0x578afd,_0x528985=_0xb1672e['getUnitId'](),_0x5a0144=this[_0x2d5af3(0x1f5)][_0x2d5af3(0x2c6)](_0x528985);_0x5a0144&&(_0x5a0144[_0x2d5af3(0x156)](),this[_0x2d5af3(0x1f5)]['delete'](_0x528985));});}async[_0x266cb1(0x24b)](_0x38094c){const _0x17953e=_0x266cb1,_0x1d2c63=await this[_0x17953e(0x1e2)][_0x17953e(0x23a)](_0x38094c),_0x3bb099=this[_0x17953e(0x188)]['createInstance'](Be,_0x38094c,_0x1d2c63);return _0x3bb099[_0x17953e(0x2ee)](),_0x3bb099;}async[_0x266cb1(0xe5)](_0x4b932e){const _0x51a3fd=_0x266cb1,_0x5dbc33=await this[_0x51a3fd(0x1e2)]['requireSession'](_0x4b932e),_0x378a14=this[_0x51a3fd(0x188)][_0x51a3fd(0x1b5)](xe,_0x4b932e,_0x5dbc33);return _0x378a14[_0x51a3fd(0x2ee)](),_0x378a14;}};H=Wi([Ce(0x0,_0x327d97),Ce(0x1,_0x3179ca(_0x52e011)),Ce(0x2,_0x3179ca(_0x4622ab))],H);const Q=0x14,at=0xc8,Re=0x4,ji=0x5;function Vi(_0x51ad4a,_0x1d0ae9){const _0x241e0b=_0x266cb1;let {radius:_0x49676f,width:_0x4ea0b8,height:_0x58de28}=_0x1d0ae9;_0x49676f=_0x49676f!=null?_0x49676f:0x0,_0x4ea0b8=_0x4ea0b8!=null?_0x4ea0b8:0x1e,_0x58de28=_0x58de28!=null?_0x58de28:0x1e;let _0x4da0ef=0x0,_0x1e040e=0x0,_0x583493=0x0;_0x4da0ef=_0x1e040e=_0x583493=Math['min'](_0x49676f,_0x4ea0b8/0x2,_0x58de28/0x2),_0x51ad4a[_0x241e0b(0x1e1)](),_0x51ad4a[_0x241e0b(0x157)](_0x4da0ef,0x0),_0x51ad4a[_0x241e0b(0x22f)](_0x4ea0b8-_0x1e040e,0x0),_0x51ad4a['arc'](_0x4ea0b8-_0x1e040e,_0x1e040e,_0x1e040e,Math['PI']*0x3/0x2,0x0,!0x1),_0x51ad4a[_0x241e0b(0x22f)](_0x4ea0b8,_0x58de28-_0x583493),_0x51ad4a[_0x241e0b(0x315)](_0x4ea0b8-_0x583493,_0x58de28-_0x583493,_0x583493,0x0,Math['PI']/0x2,!0x1),_0x51ad4a[_0x241e0b(0x22f)](0x0,_0x58de28),_0x51ad4a[_0x241e0b(0x22f)](0x0,_0x4da0ef),_0x51ad4a[_0x241e0b(0x315)](_0x4da0ef,_0x4da0ef,_0x4da0ef,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x51ad4a[_0x241e0b(0x303)](),_0x1d0ae9['fill']&&(_0x51ad4a[_0x241e0b(0x28c)](),_0x51ad4a['fillStyle']=_0x1d0ae9['fill'],_0x1d0ae9['fillRule']===_0x241e0b(0x27c)?_0x51ad4a[_0x241e0b(0x272)](_0x241e0b(0x27c)):_0x51ad4a[_0x241e0b(0x272)](),_0x51ad4a['restore']());}class Ee extends _0x5f4a21{constructor(_0x9fa39b,_0x32692b){const _0x9752c5=_0x266cb1;super(_0x9fa39b,_0x32692b),_(this,_0x9752c5(0x23c)),_(this,_0x9752c5(0x21a)),(this[_0x9752c5(0x23c)]=_0x32692b==null?void 0x0:_0x32692b[_0x9752c5(0x23c)],this[_0x9752c5(0x21a)]=_0x32692b==null?void 0x0:_0x32692b[_0x9752c5(0x21a)]);}static['drawWith'](_0x10c44d,_0x1571dd){const _0x5c9889=_0x266cb1,{text:_0x508895,color:_0x326fd8}=_0x1571dd;_0x10c44d[_0x5c9889(0x28c)](),_0x10c44d[_0x5c9889(0x14c)]=_0x5c9889(0x2e2);const _0x578754=_0x10c44d['measureText'](_0x508895)['width'],_0x20d023=Math[_0x5c9889(0x130)](_0x578754+0x2*Re,at);Vi(_0x10c44d,{'height':Q,'radius':0x4,'width':_0x20d023,'fill':_0x326fd8}),_0x10c44d[_0x5c9889(0x26c)]=_0x5c9889(0xf2);const _0x3b5245=Re,_0x4eeaa8=Q-ji,_0x31516f=at-0x2*Re;if(_0x578754>_0x31516f){let _0x5afc67='',_0x2c2772=0x0;for(const _0xb171a0 of _0x508895){const _0x1ffcac=_0x10c44d[_0x5c9889(0x122)](_0xb171a0)[_0x5c9889(0xfa)];if(_0x2c2772+_0x1ffcac<=_0x31516f-_0x10c44d['measureText'](_0x5c9889(0x1b1))['width'])_0x5afc67+=_0xb171a0,_0x2c2772+=_0x1ffcac;else{_0x5afc67+=_0x5c9889(0x1b1);break;}}_0x10c44d['fillText'](_0x5afc67,_0x3b5245,_0x4eeaa8);}else _0x10c44d['fillText'](_0x508895,_0x3b5245,_0x4eeaa8);_0x10c44d[_0x5c9889(0x234)]();}[_0x266cb1(0x300)](_0x172db4){const _0x1320b8=_0x266cb1;Ee[_0x1320b8(0x289)](_0x172db4,this);}}const De='collab-text-anchor-',Xi=_0x266cb1(0x2db),Gi=_0x266cb1(0x30b),z=0x6,Ki=1.5,be=0x4,zi=1.5,Ji=_0x266cb1(0x2ec);class ct{constructor(_0x53ee19,_0x4fe109,_0x100cfc,_0x3ad59f){const _0x464a74=_0x266cb1;_(this,_0x464a74(0x20c),[]),_(this,_0x464a74(0x1fa),null),_(this,_0x464a74(0x241),null),_(this,_0x464a74(0x164),null),_(this,_0x464a74(0x1fb),null),_(this,_0x464a74(0x1c0),null),(this[_0x464a74(0x302)]=_0x53ee19,this[_0x464a74(0x10f)]=_0x4fe109,this['_docSkeleton']=_0x100cfc,this['_document']=_0x3ad59f,this[_0x464a74(0x1eb)]());}set['_hover'](_0x42038a){const _0xb10786=_0x266cb1;_0x42038a?(this[_0xb10786(0x164)]&&this[_0xb10786(0x164)][_0xb10786(0xf7)](),this['_textBubble']&&this[_0xb10786(0x241)][_0xb10786(0x295)]()):(this[_0xb10786(0x164)]&&this[_0xb10786(0x164)][_0xb10786(0x295)](),this[_0xb10786(0x241)]&&this[_0xb10786(0x241)][_0xb10786(0xf7)]());}[_0x266cb1(0x156)](){const _0x54bca3=_0x266cb1;for(const _0x5b30cf of this['_shapes'])_0x5b30cf[_0x54bca3(0x156)]();this[_0x54bca3(0x241)]&&this[_0x54bca3(0x241)][_0x54bca3(0x156)](),this[_0x54bca3(0x164)]&&this[_0x54bca3(0x164)][_0x54bca3(0x156)](),this['_anchor']&&this[_0x54bca3(0x1fa)][_0x54bca3(0x156)](),this[_0x54bca3(0x1c0)]&&this[_0x54bca3(0x1c0)]();}['_render'](){const _0x4773e3=_0x266cb1;var _0x35b18c;const {_docSkeleton:_0x4525d6,_document:_0x5f54ec}=this,{color:_0x92f4bc,name:_0x2eb70f,ranges:_0x1151d3}=this[_0x4773e3(0x302)],_0x3ea6cf=_0x5f54ec['getOffsetConfig'](),{docsLeft:_0x3990ff,docsTop:_0x4bd2c0}=_0x3ea6cf,_0x308b3b=new _0x2ef843(_0x3ea6cf,_0x4525d6);for(const {startOffset:_0x2bfab0,endOffset:_0x36da6f,rangeType:_0x48a95a,segmentId:_0x385b88,segmentPage:_0x3a447b,collapsed:_0x16bcf3,isActive:_0xece658}of _0x1151d3){const _0x5e6367=_0x4525d6[_0x4773e3(0x142)](_0x2bfab0,!0x0,_0x385b88,_0x3a447b);let _0x4b00ed=_0x4525d6[_0x4773e3(0x142)](_0x36da6f,!0x0,_0x385b88,_0x3a447b);if(_0x4b00ed==null&&(_0x4b00ed=_0x4525d6['findNodePositionByCharIndex'](_0x36da6f-0x1,!0x1,_0x385b88,_0x3a447b)),_0xece658){const {contentBoxPointGroup:_0x25359a}=_0x308b3b[_0x4773e3(0x1d8)](_0x4b00ed,_0x4b00ed);if(_0x25359a['length']===0x0)continue;this[_0x4773e3(0x168)](_0x92f4bc,_0x25359a,_0x3990ff,_0x4bd2c0,_0x2eb70f),this[_0x4773e3(0x1c0)]=this[_0x4773e3(0x1d1)]();}if(_0x5e6367&&_0x4b00ed){if(_0x48a95a===_0x16d0ed['RECT']){const _0xa6fb14=new _0x4d8fa7(_0x3ea6cf,_0x4525d6),{pointGroup:_0x4b0098}=(_0x35b18c=_0xa6fb14[_0x4773e3(0x1d8)](_0x5e6367,_0x4b00ed))!=null?_0x35b18c:{};if(_0x4b0098==null||_0x4b0098[_0x4773e3(0x197)]===0x0)continue;this['_drawRectRange'](_0x92f4bc,_0x4b0098,_0x3990ff,_0x4bd2c0);}else{if(!_0x16bcf3){const {borderBoxPointGroup:_0x4cfac9}=_0x308b3b[_0x4773e3(0x1d8)](_0x5e6367,_0x4b00ed);if(_0x4cfac9['length']===0x0)continue;this['_drawTextRange'](_0x92f4bc,_0x4cfac9,_0x3990ff,_0x4bd2c0);}}}}}[_0x266cb1(0x168)](_0x413bd4,_0x127b2c,_0x4caca6,_0x5b2410,_0x3515b1){const _0x3f741e=_0x266cb1,_0x4dc0a2=this[_0x3f741e(0x13f)](_0x127b2c),{left:_0x5fac09,top:_0x298fcb,height:_0x122ec3}=_0x4dc0a2,_0x3081d1=this['_getScale'](),_0x5c6326=zi/_0x3081d1,_0x259267=new _0x221c25(De+_0x5d3172(z),{'left':_0x5fac09+_0x4caca6-_0x5c6326,'top':_0x298fcb+_0x5b2410,'height':_0x122ec3,'width':Ki,'fill':_0x413bd4||_0x4ec8a2(_0x23b99a['black'],0x0),'strokeWidth':_0x5c6326,'stroke':Ji,'evented':!0x0});this[_0x3f741e(0x1fa)]=_0x259267,this[_0x3f741e(0x10f)]['addObject'](_0x259267,_0x14281d);const _0x7f77e2=new _0x221c25(De+_0x5d3172(z),{'left':_0x5fac09+_0x4caca6-_0x5c6326,'top':_0x298fcb+_0x5b2410-be/0x2,'height':be,'width':be,'fill':_0x413bd4||_0x4ec8a2(_0x23b99a[_0x3f741e(0x31b)],0x0),'strokeWidth':0x0,'stroke':_0x413bd4||_0x4ec8a2(_0x23b99a[_0x3f741e(0x31b)],0x0),'evented':!0x1});this[_0x3f741e(0x164)]=_0x7f77e2,this[_0x3f741e(0x10f)][_0x3f741e(0x236)](_0x7f77e2,_0x14281d);const _0x5bf711=new Ee(De+_0x5d3172(z),{'left':_0x5fac09+_0x4caca6-_0x5c6326,'top':_0x298fcb+_0x5b2410-Q,'text':_0x3515b1,'color':_0x413bd4});this[_0x3f741e(0x241)]=_0x5bf711,this['_scene'][_0x3f741e(0x236)](_0x5bf711,_0x14281d),this[_0x3f741e(0x22c)]=!0x1;}[_0x266cb1(0x1d1)](){const _0x4863f2=_0x266cb1,_0x502dbe=this[_0x4863f2(0x1fa)][_0x4863f2(0x126)][_0x4863f2(0x2cb)](()=>{const _0x2e56e3=_0x4863f2;this[_0x2e56e3(0x22c)]=!0x0;}),_0x396ade=this[_0x4863f2(0x1fa)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x572333=_0x4863f2;this[_0x572333(0x1fb)]&&clearTimeout(this['_hideTimer']),this[_0x572333(0x1fb)]=setTimeout(()=>{const _0x1720fe=_0x572333;this[_0x1720fe(0x22c)]=!0x1;},0x7d0);});return()=>{const _0x125c00=_0x4863f2;_0x502dbe['unsubscribe'](),_0x396ade[_0x125c00(0x1b9)]();};}[_0x266cb1(0x2e7)](_0x3f1119,_0x320386,_0x4e52f9,_0x29f10a){const _0x483403=_0x266cb1,_0x46ba56=new _0x171c66(_0x3f1119)['setAlpha'](0.2)[_0x483403(0x23d)](),_0x522f7c=new _0x3c88aa(Xi+_0x5d3172(z),{'pointsGroup':_0x320386,'fill':_0x46ba56||_0x4ec8a2(_0x23b99a['black'],0.2),'left':_0x4e52f9,'top':_0x29f10a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x483403(0x20c)][_0x483403(0x30c)](_0x522f7c),this[_0x483403(0x10f)][_0x483403(0x236)](_0x522f7c,_0x14281d);}['_drawRectRange'](_0x265f0b,_0x237e6e,_0xf4013b,_0x2d51bf){const _0x40a519=_0x266cb1,_0x1804df=new _0x171c66(_0x265f0b)[_0x40a519(0x2c8)](0.2)[_0x40a519(0x23d)](),_0x26d3ee=new _0x3c88aa(Gi+_0x5d3172(z),{'pointsGroup':_0x237e6e,'fill':_0x1804df||_0x4ec8a2(_0x23b99a[_0x40a519(0x31b)],0.2),'left':_0xf4013b,'top':_0x2d51bf,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x40a519(0x20c)]['push'](_0x26d3ee),this['_scene']['addObject'](_0x26d3ee,_0x14281d);}[_0x266cb1(0x13f)](_0x34f51d){const _0x12a076=_0x34f51d[0x0],_0x292725=_0x12a076[0x0],_0xe72f52=_0x12a076[0x2],{x:_0x529827,y:_0xd5423e}=_0x292725,{x:_0x3f7b96,y:_0x1dd4f9}=_0xe72f52;return{'left':_0x529827,'top':_0xd5423e,'width':_0x3f7b96-_0x529827,'height':_0x1dd4f9-_0xd5423e};}['_getScale'](){const _0x3e6643=_0x266cb1,{scaleX:_0x143f89,scaleY:_0x1aabfb}=this[_0x3e6643(0x10f)][_0x3e6643(0x298)]();return Math[_0x3e6643(0x29b)](_0x143f89,_0x1aabfb);}}var Zi=Object[_0x266cb1(0x327)],Qi=(_0x1f6a1c,_0x532cf9,_0x5c009b,_0x5749df)=>{const _0x3c2780=_0x266cb1;for(var _0x435e30=_0x5749df>0x1?void 0x0:_0x5749df?Zi(_0x532cf9,_0x5c009b):_0x532cf9,_0xd39599=_0x1f6a1c[_0x3c2780(0x197)]-0x1,_0x382866;_0xd39599>=0x0;_0xd39599--)(_0x382866=_0x1f6a1c[_0xd39599])&&(_0x435e30=_0x382866(_0x435e30)||_0x435e30);return _0x435e30;},ie=(_0x5e5d5c,_0x1cb48b)=>(_0x542af8,_0x289f8d)=>_0x1cb48b(_0x542af8,_0x289f8d,_0x5e5d5c);let Fe=class extends _0x165e64{constructor(_0x1eef76,_0x31cbac,_0x30a975,_0x4b5d31,_0x13a6ad){const _0x1d0446=_0x266cb1;super(),_(this,_0x1d0446(0x2e0),[]),_(this,'_cursors',[]),(this[_0x1d0446(0x1c8)]=_0x1eef76,this[_0x1d0446(0x111)]=_0x31cbac,this[_0x1d0446(0x301)]=_0x30a975,this[_0x1d0446(0x29f)]=_0x4b5d31,this['_themeService']=_0x13a6ad,this[_0x1d0446(0x151)]());}[_0x266cb1(0x151)](){const _0x3c83f7=_0x266cb1,_0x43eab6=this['_context']['unitId'],_0x3655ea=this[_0x3c83f7(0x111)];this[_0x3c83f7(0x2ed)](_0x10c2d6([this[_0x3c83f7(0x301)][_0x3c83f7(0x2a9)](_0x43eab6),this[_0x3c83f7(0x248)][_0x3c83f7(0x174)]])[_0x3c83f7(0x242)](_0x3c4e14(([_0x5d8b94,_0x18f493])=>({'skeleton':_0x3655ea['getSkeleton'](),'cursors':[..._0x5d8b94['values']()][_0x3c83f7(0x119)](_0xfcc25d=>({..._0xfcc25d,'color':this[_0x3c83f7(0x248)][_0x3c83f7(0x149)](_0xfcc25d['color'])}))})))[_0x3c83f7(0x215)](_0x3a9625=>{const _0x1f6d60=_0x3c83f7;if(this[_0x1f6d60(0x1b0)](),_0x3a9625){const {skeleton:_0x4621b0,cursors:_0x4de1d5}=_0x3a9625;this['_updateCollabCursors'](_0x4621b0,_0x4de1d5);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x266cb1(0x11f)](_0x2b71dc,_0x40a5da){const _0x58454e=_0x266cb1,{scene:_0x370145,mainComponent:_0x419202}=this['_context'],_0x5808e8=_0x40a5da[_0x58454e(0x198)](_0x244a92=>new ct(_0x244a92,_0x370145,_0x2b71dc,_0x419202));this[_0x58454e(0x2e0)]=_0x5808e8,this[_0x58454e(0x1d3)]=_0x40a5da;}[_0x266cb1(0x19f)](){const _0x19b22e=_0x266cb1;this[_0x19b22e(0x1b0)]();const {scene:_0x4041a1,mainComponent:_0x3c8455}=this[_0x19b22e(0x1c8)],_0x4b7ece=this[_0x19b22e(0x111)][_0x19b22e(0x208)](),_0x1af6e2=this['_cursors']['map'](_0x1a0195=>new ct(_0x1a0195,_0x4041a1,_0x4b7ece,_0x3c8455));this[_0x19b22e(0x2e0)]=_0x1af6e2;}['_removeCollabCursors'](){const _0x25dfb6=_0x266cb1;this[_0x25dfb6(0x2e0)][_0x25dfb6(0x253)](_0x5155ef=>_0x5155ef[_0x25dfb6(0x156)]()),this[_0x25dfb6(0x2e0)]=[];}[_0x266cb1(0x17f)](){const _0x20f215=_0x266cb1,_0x3f595c=[_0x2612e7['id']];this['disposeWithMe'](this[_0x20f215(0x29f)][_0x20f215(0x2bb)](_0x1487d8=>{const _0x475ab1=_0x20f215;_0x3f595c[_0x475ab1(0xf0)](_0x1487d8['id'])&&_0x1487d8[_0x475ab1(0x20a)][_0x475ab1(0x180)]===this[_0x475ab1(0x1c8)][_0x475ab1(0x180)]&&this[_0x475ab1(0x19f)]();}));}[_0x266cb1(0x2c9)](){const _0x1a7c89=_0x266cb1;this[_0x1a7c89(0x2ed)](_0x29cdad(this[_0x1a7c89(0x1c8)][_0x1a7c89(0x213)][_0x1a7c89(0x103)])[_0x1a7c89(0x242)](_0x22d51d(_0x29aeb8=>_0x29aeb8[_0x1a7c89(0x15a)]===_0x34850e[_0x1a7c89(0x183)]),_0x468019(0x10))[_0x1a7c89(0x215)](()=>{const _0x2b3d3b=_0x1a7c89;this[_0x2b3d3b(0x19f)]();}));}};Fe=Qi([ie(0x1,_0x3179ca(_0x30db50)),ie(0x2,_0x3179ca(H)),ie(0x3,_0x398133),ie(0x4,_0x3179ca(_0x3c5f47))],Fe);const qi=0x1,en=1.5;class tn extends _0x5f4a21{constructor(_0x28f4b8,_0x1fd213){const _0x7c177a=_0x266cb1;super(_0x28f4b8,_0x1fd213),_(this,'_color'),_(this,_0x7c177a(0x17d),!0x1),_(this,_0x7c177a(0x31e)),_(this,_0x7c177a(0x28d),''),_(this,_0x7c177a(0x1c3),_0x7c177a(0x29e)),_(this,_0x7c177a(0x2b3)),(_0x1fd213&&this['setShapeProps'](_0x1fd213),this[_0x7c177a(0x126)][_0x7c177a(0x2cb)](()=>this[_0x7c177a(0x1ce)]({'hovered':!0x0})),this[_0x7c177a(0x250)][_0x7c177a(0x2cb)](()=>this[_0x7c177a(0x1ce)]({'hovered':!0x1})));}[_0x266cb1(0x1ce)](_0x59db07){const _0x1f04a4=_0x266cb1;var _0x41c806,_0x3d3bea,_0x43f7be,_0x4f0f8b,_0x2cbc07,_0x14fae9;this[_0x1f04a4(0x1fd)]=(_0x41c806=_0x59db07[_0x1f04a4(0x23c)])!=null?_0x41c806:this[_0x1f04a4(0x1fd)],this['_hovered']=(_0x3d3bea=_0x59db07[_0x1f04a4(0x2a2)])!=null?_0x3d3bea:this[_0x1f04a4(0x17d)],this[_0x1f04a4(0x31e)]=(_0x43f7be=_0x59db07[_0x1f04a4(0x1b3)])!=null?_0x43f7be:this[_0x1f04a4(0x31e)],this[_0x1f04a4(0x28d)]=(_0x4f0f8b=_0x59db07[_0x1f04a4(0x135)])!=null?_0x4f0f8b:this['_name'],this[_0x1f04a4(0x1c3)]=(_0x2cbc07=_0x59db07['labelPosition'])!=null?_0x2cbc07:this[_0x1f04a4(0x1c3)],this[_0x1f04a4(0x2b3)]=(_0x14fae9=_0x59db07[_0x1f04a4(0x2f4)])!=null?_0x14fae9:this['_backgroundColor'],this[_0x1f04a4(0x2e4)]({'width':_0x59db07['width'],'height':_0x59db07[_0x1f04a4(0x125)]});}[_0x266cb1(0x26e)](_0x4d2e9f){const _0xa2e3ad=_0x266cb1,{row:_0x33e946,column:_0xa37887}=_0x4d2e9f;if(_0x33e946>=this[_0xa2e3ad(0x31e)][_0xa2e3ad(0x2d3)]&&_0x33e946<=this[_0xa2e3ad(0x31e)][_0xa2e3ad(0x270)]&&_0xa37887>=this[_0xa2e3ad(0x31e)][_0xa2e3ad(0x2b9)]&&_0xa37887<=this[_0xa2e3ad(0x31e)][_0xa2e3ad(0xfb)]){this[_0xa2e3ad(0x1ce)]({'hovered':!0x0});return;}this[_0xa2e3ad(0x1ce)]({'hovered':!0x1});}['triggerDblclick'](_0x12b1d0){return!0x1;}[_0x266cb1(0x300)](_0x286665){const _0x27923c=_0x266cb1;_0x221c25[_0x27923c(0x289)](_0x286665,{'width':this['width'],'height':this['height'],'strokeWidth':en,'stroke':this[_0x27923c(0x1fd)],'evented':!0x1,'fill':this[_0x27923c(0x2b3)]}),this['_hovered']&&(_0x286665[_0x27923c(0x28c)](),_0x286665[_0x27923c(0xde)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x27923c(0x1ed)?0x0:-Q),Ee[_0x27923c(0x289)](_0x286665,{'text':this['_name'],'color':this[_0x27923c(0x1fd)]}),_0x286665['restore']());}}var sn=Object[_0x266cb1(0x327)],nn=(_0x59ac83,_0x1c9766,_0x5af184,_0x4e165e)=>{const _0x29ed11=_0x266cb1;for(var _0x31df66=_0x4e165e>0x1?void 0x0:_0x4e165e?sn(_0x1c9766,_0x5af184):_0x1c9766,_0x2227bf=_0x59ac83[_0x29ed11(0x197)]-0x1,_0x2d8070;_0x2227bf>=0x0;_0x2227bf--)(_0x2d8070=_0x59ac83[_0x2227bf])&&(_0x31df66=_0x2d8070(_0x31df66)||_0x31df66);return _0x31df66;},Ne=(_0x57c5d8,_0x201742)=>(_0x5a72d8,_0x17b23d)=>_0x201742(_0x5a72d8,_0x17b23d,_0x57c5d8);const rn=0x1389;let ke=class extends _0x165e64{constructor(_0x40c601,_0x342a94,_0x441e78,_0x1f9b1f){const _0x3d0b52=_0x266cb1;super(),_(this,_0x3d0b52(0x1d3),new Set()),_(this,_0x3d0b52(0xfc),null),(this[_0x3d0b52(0x1c8)]=_0x40c601,this[_0x3d0b52(0x2c4)]=_0x342a94,this[_0x3d0b52(0x301)]=_0x441e78,this[_0x3d0b52(0x248)]=_0x1f9b1f,this[_0x3d0b52(0x151)]());}['_init'](){const _0x53600f=_0x266cb1;this[_0x53600f(0x2c4)][_0x53600f(0xdd)][_0x53600f(0x242)](_0x28018b(this['dispose$']),_0xc0630b(_0x5728bc=>{const _0x1e37da=_0x53600f;if(_0x5728bc){const _0x3fb4a1=_0x5728bc[_0x1e37da(0x24a)];return _0x10c2d6(this[_0x1e37da(0x301)][_0x1e37da(0x2a9)](this['_context'][_0x1e37da(0x180)]),this['_themeService'][_0x1e37da(0x174)])[_0x1e37da(0x242)](_0x3c4e14(([_0x5c6318,_0x5c613f])=>{const _0x36b064=_0x1e37da,_0x207b80=new Map();return _0x5c6318[_0x36b064(0x253)]((_0x358bb3,_0x6e19fd)=>{const _0x3f24b7=_0x36b064;if(_0x358bb3[_0x3f24b7(0x121)]===_0x3fb4a1){const _0x443eac={..._0x358bb3};_0x443eac[_0x3f24b7(0x23c)]=this[_0x3f24b7(0x248)]['getColorFromTheme'](_0x358bb3[_0x3f24b7(0x23c)]),_0x207b80[_0x3f24b7(0x186)](_0x6e19fd,_0x443eac);}}),{'skeleton':_0x5728bc,'cursors':_0x207b80};}));}return _0xefbff4({'skeleton':null,'cursors':new Map()});}))[_0x53600f(0x215)](({skeleton:_0x3bdf7b,cursors:_0x3c8c8e})=>{const _0x20c010=_0x53600f;this[_0x20c010(0x1b0)](),_0x3bdf7b&&this[_0x20c010(0x11f)](_0x3bdf7b,_0x3c8c8e);}),this[_0x53600f(0x2c4)]['currentSkeleton$'][_0x53600f(0x215)](_0x443ed1=>{const _0x50dbf8=_0x53600f;if(_0x443ed1==null)return;const {skeleton:_0x1450c4}=_0x443ed1,{scene:_0x5a09cb}=this[_0x50dbf8(0x1c8)];_0x5a09cb[_0x50dbf8(0x21c)][_0x50dbf8(0x2cb)](_0x51782d(_0x3d7aed=>{const _0x22b55b=_0x50dbf8;var _0x24f538,_0xd9bda6;const {offsetX:_0x189832,offsetY:_0x5d904f}=_0x3d7aed,{x:_0x304bd4,y:_0x210eae}=_0x5a09cb[_0x22b55b(0x152)](_0x183b8c['FromArray']([_0x189832,_0x5d904f])),{scaleX:_0x615f32,scaleY:_0x3f0851}=_0x5a09cb[_0x22b55b(0x298)](),_0x31f9f4=_0x5a09cb[_0x22b55b(0x2f2)](_0x1ead7d[_0x22b55b(0x296)]),_0x511209=_0x5a09cb[_0x22b55b(0x252)](_0x183b8c[_0x22b55b(0x11a)]([_0x304bd4,_0x210eae]),_0x31f9f4),_0x14e45c=_0x1450c4[_0x22b55b(0x171)](_0x189832,_0x5d904f,_0x615f32,_0x3f0851,_0x511209);((_0x24f538=this[_0x22b55b(0xfc)])==null?void 0x0:_0x24f538[_0x22b55b(0x13b)])===_0x14e45c[_0x22b55b(0x13b)]&&((_0xd9bda6=this[_0x22b55b(0xfc)])==null?void 0x0:_0xd9bda6[_0x22b55b(0xe1)])===_0x14e45c['row']||this['_cursors'][_0x22b55b(0x253)](_0x753bf7=>{const _0xb82422=_0x22b55b;_0x753bf7[_0xb82422(0x26e)](_0x14e45c);});},0x64));});}['_updateCollabCursors'](_0x394be3,_0x451529){const _0x58af09=_0x266cb1;var _0x409173;const _0x3349e6=(_0x409173=this[_0x58af09(0x2c4)][_0x58af09(0x1bf)]())==null?void 0x0:_0x409173['skeleton'];if(!_0x3349e6)return;const _0xfcd3c8=this[_0x58af09(0x24d)]();if(!_0xfcd3c8)return;this['_cursors']['forEach'](_0x1aedd1=>{const _0xb88138=_0x58af09;_0x1aedd1[_0xb88138(0x113)]();});const {scene:_0x404989}=_0xfcd3c8,_0x12b568=on(Array['from'](_0x451529[_0x58af09(0x201)]()))[_0x58af09(0x198)](_0x5a74b5=>{const _0x1de112=_0x58af09,{color:_0x39e873,range:_0x373705,name:_0x513854,selection:_0x3ed81a,sheetID:_0x483fb7}=_0x5a74b5,{startColumn:_0xb45fb5,startRow:_0x417e1b,endColumn:_0x40f852,endRow:_0xb57f84}=_0x373705,_0x277d1e=_0x2ae5c3(_0x417e1b,_0xb45fb5,_0x404989,_0x3349e6),_0x4ec14c=_0x2ae5c3(_0xb57f84,_0x40f852,_0x404989,_0x3349e6),{columnHeaderHeightAndMarginTop:_0x54c62d}=_0x3349e6,{startX:_0x35f899,startY:_0x457b5f}=_0x277d1e,{endX:_0x1a8962,endY:_0x2d78e0}=_0x4ec14c,_0x212fca=_0x1a8962-_0x35f899,_0x2c259f=_0x2d78e0-_0x457b5f,_0x5677fa={'labelPosition':_0x457b5f-_0x54c62d>=Q?_0x1de112(0x29e):'bottom','sheetID':_0x483fb7,'range':_0x373705,'color':_0x39e873,'name':_0x513854,'selection':_0x3ed81a,'left':_0x35f899,'top':_0x457b5f,'width':_0x212fca,'height':_0x2c259f,'evented':!0x1,'zIndex':rn};return new tn(_0x513854,_0x5677fa);});_0x404989['addObjects'](_0x12b568,qi),this[_0x58af09(0x1d3)]=new Set(_0x12b568);}[_0x266cb1(0x1b0)](){const _0x274511=_0x266cb1;var _0x56bfa7;(_0x56bfa7=this[_0x274511(0x1d3)])==null||_0x56bfa7[_0x274511(0x253)](_0x1b3912=>_0x1b3912['dispose']());}[_0x266cb1(0x24d)](){const _0x5a587c=_0x266cb1;return _0x9dc2c9(this[_0x5a587c(0x1c8)][_0x5a587c(0x1e5)],this[_0x5a587c(0x1c8)]);}};ke=nn([Ne(0x1,_0x3179ca(_0x311bdb)),Ne(0x2,_0x3179ca(H)),Ne(0x3,_0x3179ca(_0x3c5f47))],ke);function on(_0x923bae){const _0x3b4f03=_0x266cb1,_0x82a6e1=new Map();return _0x923bae[_0x3b4f03(0x253)](_0x5cd7cb=>{const _0x174614=_0x3b4f03;if(_0x82a6e1[_0x174614(0x276)](_0x5cd7cb['selection'])){const _0x5afccc=_0x82a6e1['get'](_0x5cd7cb[_0x174614(0x16f)]);_0x5afccc[_0x174614(0x135)]+=',\x20'+_0x5cd7cb[_0x174614(0x135)];}else _0x82a6e1[_0x174614(0x186)](_0x5cd7cb[_0x174614(0x16f)],_0x5cd7cb);}),Array[_0x3b4f03(0x306)](_0x82a6e1[_0x3b4f03(0x201)]());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x59526b,_0x562894,_0x51550a,_0x14e9c0)=>{for(var _0x3615b2=_0x14e9c0>0x1?void 0x0:_0x14e9c0?an(_0x562894,_0x51550a):_0x562894,_0x2a8ff1=_0x59526b['length']-0x1,_0x37b78c;_0x2a8ff1>=0x0;_0x2a8ff1--)(_0x37b78c=_0x59526b[_0x2a8ff1])&&(_0x3615b2=_0x37b78c(_0x3615b2)||_0x3615b2);return _0x3615b2;},F=(_0xcdc84e,_0x4f0833)=>(_0x19b41b,_0xd3cd80)=>_0x4f0833(_0x19b41b,_0xd3cd80,_0xcdc84e);let _e=class extends _0x5a57f7{constructor(_0x3bf513,_0x556244,_0x269778,_0x51f38f,_0x53d46d,_0x156e18){const _0x5d1a79=_0x266cb1;super(),this[_0x5d1a79(0x1be)]=_0x3bf513,this['_localCacheService']=_0x556244,this[_0x5d1a79(0xeb)]=_0x269778,this[_0x5d1a79(0x14b)]=_0x51f38f,this[_0x5d1a79(0x257)]=_0x53d46d,this[_0x5d1a79(0x287)]=_0x156e18,this['_setupBeforeClosingHandler'](),this[_0x5d1a79(0x2f6)]();}[_0x266cb1(0x2b6)](){const _0x1fdc8e=_0x266cb1;this[_0x1fdc8e(0x2ed)](this['_beforeCloseService'][_0x1fdc8e(0x26b)](()=>{const _0x3d0b5e=_0x1fdc8e;if(this[_0x3d0b5e(0x282)][_0x3d0b5e(0xf4)]['size'])return this[_0x3d0b5e(0x287)]['t'](_0x3d0b5e(0x110));}));}[_0x266cb1(0x2f6)](){const _0xaaacf4=_0x266cb1;this[_0xaaacf4(0x2ed)](this[_0xaaacf4(0xeb)]['event$'][_0xaaacf4(0x215)](_0x16f45b=>{const _0x15e519=_0xaaacf4;_0x16f45b['id']===_0x3c08c8['OTHER_CLIENT_EDITING']&&this[_0x15e519(0x14b)]['show']({'type':_0x34362f['Warning'],'content':this[_0x15e519(0x287)]['t'](_0x15e519(0x189))}),_0x16f45b['id']===_0x3c08c8[_0x15e519(0x23f)]&&this[_0x15e519(0x14b)][_0x15e519(0x295)]({'type':_0x34362f[_0x15e519(0xed)],'content':this[_0x15e519(0x287)]['t']('collaboration.closeRoom')}),_0x16f45b['id']===_0x3c08c8['PERMISSION_DENIED']&&this[_0x15e519(0x257)]['show']({'title':this[_0x15e519(0x287)]['t'](_0x15e519(0x167)),'content':this[_0x15e519(0x287)]['t'](_0x15e519(0x15e)),'type':_0x15e519(0x205),'duration':0x0}),_0x16f45b['id']===_0x3c08c8[_0x15e519(0x2be)]&&this[_0x15e519(0x14b)][_0x15e519(0x295)]({'type':_0x34362f[_0x15e519(0x264)],'content':this[_0x15e519(0x287)]['t'](_0x15e519(0x225))+'('+_0x16f45b[_0x15e519(0x2d5)]+')'}),_0x16f45b['id']===_0x3c08c8[_0x15e519(0x243)]&&this['_messageService'][_0x15e519(0x295)]({'type':_0x34362f[_0x15e519(0xed)],'content':this[_0x15e519(0x287)]['t'](_0x16f45b[_0x15e519(0x2d5)]||'')}),_0x16f45b['id']===_0x3c08c8[_0x15e519(0x28e)]&&this[_0x15e519(0x14b)][_0x15e519(0x295)]({'type':_0x34362f[_0x15e519(0xed)],'content':this['_localeService']['t'](_0x15e519(0x238))}),_0x16f45b['id']===_0x3c08c8[_0x15e519(0x227)]&&this[_0x15e519(0x14b)][_0x15e519(0x295)]({'type':_0x34362f[_0x15e519(0x264)],'content':this['_localeService']['t'](_0x15e519(0x2c1))}),_0x16f45b['id']===_0x3c08c8[_0x15e519(0x146)]&&this[_0x15e519(0x14b)][_0x15e519(0x295)]({'type':_0x34362f[_0x15e519(0x264)],'content':this[_0x15e519(0x287)]['t']('session.collaboration-timeout')});}));}};_e=cn([F(0x0,_0x27aa55),F(0x1,_0x4fe86f),F(0x2,_0x3179ca(_0xab5142)),F(0x3,_0x2c0732),F(0x4,_0x60036a),F(0x5,_0x3179ca(_0xe56074))],_e);var _n=Object[_0x266cb1(0x327)],ln=(_0x4d6f99,_0x2a68f3,_0x4964cf,_0x1a597d)=>{const _0x720b96=_0x266cb1;for(var _0x551e31=_0x1a597d>0x1?void 0x0:_0x1a597d?_n(_0x2a68f3,_0x4964cf):_0x2a68f3,_0xd57f6f=_0x4d6f99[_0x720b96(0x197)]-0x1,_0xab5076;_0xd57f6f>=0x0;_0xd57f6f--)(_0xab5076=_0x4d6f99[_0xd57f6f])&&(_0x551e31=_0xab5076(_0x551e31)||_0x551e31);return _0x551e31;},ne=(_0x56f180,_0x2c566e)=>(_0x33f639,_0x2a3c50)=>_0x2c566e(_0x33f639,_0x2a3c50,_0x56f180);let le=class extends _0x5a57f7{constructor(_0x4a7b5c,_0x1232e1,_0xfc513f,_0x31f534){const _0x19786f=_0x266cb1;super(),_(this,_0x19786f(0x24f)),(this[_0x19786f(0x188)]=_0x4a7b5c,this[_0x19786f(0x1ba)]=_0x1232e1,this['_logService']=_0xfc513f,this[_0x19786f(0x1c7)]=_0x31f534,this[_0x19786f(0x151)]());}[_0x266cb1(0x151)](){const _0x6eb823=_0x266cb1;this[_0x6eb823(0x166)](),this[_0x6eb823(0x147)](),this[_0x6eb823(0x1d0)](),this[_0x6eb823(0x22d)]();}[_0x266cb1(0x22d)](){const _0x173748=_0x266cb1;this[_0x173748(0x2ed)](this[_0x173748(0x1c7)][_0x173748(0x15f)]['subscribe'](_0x9dc1f2=>{const _0xc7c26=_0x173748;this[_0xc7c26(0x24f)]=_0x9dc1f2==null?void 0x0:_0x9dc1f2[_0xc7c26(0x2df)];}));}['_initWindowErrorListener'](){const _0x488413=_0x266cb1,_0x41eecb=_0x18f400=>{const _0x2735ae=_0x57d7;var _0x456c20;this[_0x2735ae(0x1dc)]('error','[Window\x20Error]:\x20'+_0x18f400[_0x2735ae(0x1b6)]+_0x2735ae(0x31f)+_0x18f400[_0x2735ae(0x2bf)]+':'+_0x18f400['lineno']+':'+_0x18f400[_0x2735ae(0x1da)]+'\x0a'+(((_0x456c20=_0x18f400[_0x2735ae(0x205)])==null?void 0x0:_0x456c20[_0x2735ae(0x305)])||''));};window[_0x488413(0x273)](_0x488413(0x205),_0x41eecb),this[_0x488413(0x2ed)](()=>{const _0x114d76=_0x488413;window[_0x114d76(0x22a)]('error',_0x41eecb);});}['_initUnhandledRejectionListener'](){const _0x4fcaa3=_0x266cb1,_0x180008=_0x3231e6=>{const _0x1d0451=_0x57d7;this[_0x1d0451(0x1dc)]('error',_0x1d0451(0x226)+_0x3231e6[_0x1d0451(0x15b)]);};window[_0x4fcaa3(0x273)](_0x4fcaa3(0xe7),_0x180008),this[_0x4fcaa3(0x2ed)](()=>{const _0x270472=_0x4fcaa3;window[_0x270472(0x22a)](_0x270472(0xe7),_0x180008);});}[_0x266cb1(0x1d0)](){const _0x5e6bc2=_0x266cb1,_0x23c1d3=this[_0x5e6bc2(0x129)][_0x5e6bc2(0x205)][_0x5e6bc2(0x2a6)](this[_0x5e6bc2(0x129)]);this[_0x5e6bc2(0x129)][_0x5e6bc2(0x205)]=(..._0x13ff02)=>{const _0x56d5ab=_0x5e6bc2,_0x469ae8=_0x13ff02[_0x56d5ab(0x198)](_0x2884a9=>_0x2884a9 instanceof Error?_0x2884a9[_0x56d5ab(0x1b6)]+'\x0a'+_0x2884a9[_0x56d5ab(0x305)]:String(_0x2884a9))[_0x56d5ab(0x29a)]('\x20');this['_uploadLog'](_0x56d5ab(0x205),_0x56d5ab(0x17c)+_0x469ae8),_0x23c1d3(..._0x13ff02);},this[_0x5e6bc2(0x2ed)](()=>{const _0x9584c7=_0x5e6bc2;this[_0x9584c7(0x129)][_0x9584c7(0x205)]=_0x23c1d3;});}[_0x266cb1(0x1dc)](_0x55f9bd,_0x261d7c){const _0x56bbfe=_0x266cb1;try{const _0x4616d0={'userId':this[_0x56bbfe(0x24f)],'logLabel':_0x55f9bd,'content':_0x261d7c};this[_0x56bbfe(0x1ba)]['post'](_0x56bbfe(0x21e),{'body':_0x4616d0})['catch'](()=>{});}catch{}}};le=ln([ne(0x0,_0x3179ca(_0x52e011)),ne(0x1,_0x3179ca(_0x299f96)),ne(0x2,_0x53fc3e),ne(0x3,_0x3179ca(_0x4622ab))],le);const hn=_0x266cb1(0x322),_t={};var un=Object['getOwnPropertyDescriptor'],dn=(_0x1b3fa7,_0x8cc073,_0x561450,_0x26497f)=>{const _0x264026=_0x266cb1;for(var _0x53acab=_0x26497f>0x1?void 0x0:_0x26497f?un(_0x8cc073,_0x561450):_0x8cc073,_0x4a30b7=_0x1b3fa7[_0x264026(0x197)]-0x1,_0x1959cd;_0x4a30b7>=0x0;_0x4a30b7--)(_0x1959cd=_0x1b3fa7[_0x4a30b7])&&(_0x53acab=_0x1959cd(_0x53acab)||_0x53acab);return _0x53acab;},lt=(_0x56f332,_0x35d8ed)=>(_0x316625,_0x1bea62)=>_0x35d8ed(_0x316625,_0x1bea62,_0x56f332);let he=class{constructor(_0x4d72a1,_0x120246){const _0x1dff0e=_0x266cb1;this[_0x1dff0e(0x143)]=_0x4d72a1,this[_0x1dff0e(0x14e)]=_0x120246;}[_0x266cb1(0x158)](_0xa2139f){const _0x534fa6=_0x266cb1;this[_0x534fa6(0x118)](_0xa2139f),this[_0x534fa6(0x262)](_0xa2139f);}['transformRemoteChangeset'](_0x23ba40){const _0x3c3e5d=_0x266cb1,{unitID:_0x378c09}=_0x23ba40,_0xfa0da=this[_0x3c3e5d(0x14e)][_0x3c3e5d(0x1a7)](_0x378c09)['with'](_0x5f31ef),{redoCache:_0x4f3550}=_0xfa0da[_0x3c3e5d(0x10d)]();if(_0x4f3550[_0x3c3e5d(0x197)]===0x0)return _0x23ba40;let _0x6579d1=_0x468abf['deepClone'](_0x23ba40[_0x3c3e5d(0x141)][0x0]);for(let _0x4df360=0x0;_0x4df360<_0x4f3550['length'];_0x4df360++){const _0x42b018={'id':_0x3c3e5d(0x1bb),'params':{..._0x4f3550[_0x4df360]}},_0x2a88dd=this['_transformService']['transformMutation'](_0x6579d1,_0x42b018,!0x1);if(_0x2bd73d(_0x2a88dd))throw _0x2a88dd[_0x3c3e5d(0x205)];_0x6579d1=_0x2a88dd['m1Prime'];}return{..._0x468abf[_0x3c3e5d(0x185)](_0x23ba40),'mutations':[_0x6579d1]};}[_0x266cb1(0x118)](_0x161336){const _0x291a58=_0x266cb1,{unitID:_0x533f2f}=_0x161336,_0x321c69=this['_renderManagerService'][_0x291a58(0x1a7)](_0x533f2f)['with'](_0x5f31ef),{undoCache:_0x20c5fc,redoCache:_0x4f3165}=_0x321c69[_0x291a58(0x10d)]();if(_0x20c5fc[_0x291a58(0x197)]===0x0||_0x4f3165['length']===0x0)return;const _0x59ff32=[],_0x14010b=[];let _0x1b3f4f=_0x468abf['deepClone'](_0x161336[_0x291a58(0x141)][0x0]),_0x5e47b3=_0x468abf[_0x291a58(0x185)](_0x161336[_0x291a58(0x141)][0x0]);for(let _0x3fe1af=_0x20c5fc['length']-0x1;_0x3fe1af>=0x0;_0x3fe1af--){const _0x12e379={'id':_0x291a58(0x1bb),'params':{..._0x20c5fc[_0x3fe1af]}},_0x15d1f0={'id':_0x291a58(0x1bb),'params':{..._0x4f3165[_0x3fe1af]}},_0x1955f3=this[_0x291a58(0x143)][_0x291a58(0x1ea)](_0x1b3f4f,_0x12e379,!0x1),_0x43b7ae=this[_0x291a58(0x143)][_0x291a58(0x1ea)](_0x5e47b3,_0x15d1f0,!0x1);if(_0x2bd73d(_0x1955f3))throw _0x1955f3[_0x291a58(0x205)];if(_0x2bd73d(_0x43b7ae))throw _0x43b7ae[_0x291a58(0x205)];_0x59ff32[_0x291a58(0x2ff)](_0x1955f3[_0x291a58(0x220)][_0x291a58(0x20a)]),_0x14010b[_0x291a58(0x2ff)](_0x43b7ae['m2Prime']['params']),_0x1b3f4f=_0x1955f3[_0x291a58(0x25c)],_0x5e47b3=_0x43b7ae['m1Prime'];}_0x321c69[_0x291a58(0x172)]({'undoCache':_0x59ff32,'redoCache':_0x14010b});}[_0x266cb1(0x262)](_0x37d7b4){const _0x3554c2=_0x266cb1,{unitID:_0x276710}=_0x37d7b4,_0x3b3799=this[_0x3554c2(0x14e)][_0x3554c2(0x1a7)](_0x276710)[_0x3554c2(0x31d)](_0x5f31ef),_0x5ad320=_0x3b3799[_0x3554c2(0x328)]();if(_0x5ad320==null)return;const _0x335cc6=[{'id':_0x3554c2(0x1bb),'params':{'unitId':_0x37d7b4['unitID'],'actions':null,'textRanges':[_0x5ad320]}}],_0x5a7fc0=this['_transformService']['transformMutationsWithChangeset'](_0x37d7b4,_0x335cc6);if(!_0x37a6c9(_0x5a7fc0))throw _0x5a7fc0[_0x3554c2(0x205)];const _0x35609e=_0x5a7fc0[_0x3554c2(0x220)][0x0][_0x3554c2(0x20a)][_0x3554c2(0x1ac)];Array[_0x3554c2(0x290)](_0x35609e)&&_0x35609e['length']&&_0x3b3799[_0x3554c2(0x13a)](_0x35609e[0x0]);}};he=dn([lt(0x0,_0x1f1952),lt(0x1,_0x4e5a7f)],he);var Sn=Object[_0x266cb1(0x327)],mn=(_0x141cb4,_0x2af2bc,_0x97c8fc,_0x59b05b)=>{for(var _0xa6010e=_0x59b05b>0x1?void 0x0:_0x59b05b?Sn(_0x2af2bc,_0x97c8fc):_0x2af2bc,_0x3ccea6=_0x141cb4['length']-0x1,_0xae8bba;_0x3ccea6>=0x0;_0x3ccea6--)(_0xae8bba=_0x141cb4[_0x3ccea6])&&(_0xa6010e=_0xae8bba(_0xa6010e)||_0xa6010e);return _0xa6010e;},Le=(_0x53c3ce,_0x13c1d0)=>(_0x1bec2a,_0x279793)=>_0x13c1d0(_0x1bec2a,_0x279793,_0x53c3ce);let ue=class{constructor(_0x410aa2,_0x2aaec9,_0x2c5098){const _0xd4681a=_0x266cb1;this[_0xd4681a(0x188)]=_0x410aa2,this[_0xd4681a(0x143)]=_0x2aaec9,this[_0xd4681a(0x27f)]=_0x2c5098;}[_0x266cb1(0x216)](_0x202768){const _0x23bf28=_0x266cb1;this[_0x23bf28(0x2a4)](_0x202768);}['transformRemoteChangeset'](_0x4bdaca){const _0x3999e6=_0x266cb1,{unitID:_0x188d96}=_0x4bdaca,{collaboration:_0x2132ab}=this['_docStateChangeManagerService'][_0x3999e6(0x204)](_0x188d96);if(_0x2132ab[_0x3999e6(0x197)]===0x0)return _0x4bdaca;let _0x2c07f4=_0x468abf[_0x3999e6(0x185)](_0x4bdaca[_0x3999e6(0x141)][0x0]);for(let _0xe8060e=0x0;_0xe8060e<_0x2132ab[_0x3999e6(0x197)];_0xe8060e++){const _0x24f333={'id':_0x3999e6(0x1bb),'params':{'unitId':_0x2132ab[_0xe8060e]['unitId'],..._0x2132ab[_0xe8060e]['redoState']}},_0x30ac6b=this['_transformService']['transformMutation'](_0x2c07f4,_0x24f333,!0x1);if(_0x2bd73d(_0x30ac6b))throw _0x30ac6b[_0x3999e6(0x205)];_0x2c07f4=_0x30ac6b[_0x3999e6(0x25c)];}return{..._0x468abf['deepClone'](_0x4bdaca),'mutations':[_0x2c07f4]};}['_transformHistoryAndStateStack'](_0x37c5fd){const _0x3dc717=_0x266cb1,{unitID:_0x4cac40}=_0x37c5fd,{history:_0x4fc55d,collaboration:_0xc7e4b2}=this[_0x3dc717(0x27f)][_0x3dc717(0x204)](_0x4cac40);if(_0x4fc55d[_0x3dc717(0x197)]===0x0&&_0xc7e4b2[_0x3dc717(0x197)]===0x0)return;const _0x37194c=[],_0x12692f=[];let _0x1ae4bb=_0x468abf[_0x3dc717(0x185)](_0x37c5fd[_0x3dc717(0x141)][0x0]),_0x585422=_0x468abf[_0x3dc717(0x185)](_0x37c5fd['mutations'][0x0]);for(let _0x5341af=_0x4fc55d[_0x3dc717(0x197)]-0x1;_0x5341af>=0x0;_0x5341af--){const _0x4d8d46={'id':_0x3dc717(0x1bb),'params':{'unitId':_0x4fc55d[_0x5341af]['unitId'],..._0x4fc55d[_0x5341af][_0x3dc717(0x30e)]}},_0x2bcd81={'id':_0x3dc717(0x1bb),'params':{'unitId':_0x4fc55d[_0x5341af][_0x3dc717(0x180)],..._0x4fc55d[_0x5341af][_0x3dc717(0x307)]}},_0x3f54a4=this[_0x3dc717(0x143)][_0x3dc717(0x1ea)](_0x1ae4bb,_0x4d8d46,!0x1),_0x1baa64=this[_0x3dc717(0x143)][_0x3dc717(0x1ea)](_0x585422,_0x2bcd81,!0x1);if(_0x2bd73d(_0x3f54a4))throw _0x3f54a4[_0x3dc717(0x205)];if(_0x2bd73d(_0x1baa64))throw _0x1baa64[_0x3dc717(0x205)];_0x37194c[_0x3dc717(0x2ff)]({..._0x4fc55d[_0x5341af],'undoState':_0x3f54a4['m2Prime']['params'],'redoState':_0x1baa64['m2Prime'][_0x3dc717(0x20a)]}),_0x1ae4bb=_0x3f54a4[_0x3dc717(0x25c)],_0x585422=_0x1baa64[_0x3dc717(0x25c)];}_0x1ae4bb=_0x468abf[_0x3dc717(0x185)](_0x37c5fd[_0x3dc717(0x141)][0x0]),_0x585422=_0x468abf['deepClone'](_0x37c5fd['mutations'][0x0]);for(let _0x1d2d9f=_0xc7e4b2[_0x3dc717(0x197)]-0x1;_0x1d2d9f>=0x0;_0x1d2d9f--){const _0x640f42={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xc7e4b2[_0x1d2d9f][_0x3dc717(0x180)],..._0xc7e4b2[_0x1d2d9f][_0x3dc717(0x30e)]}},_0x27f729={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xc7e4b2[_0x1d2d9f][_0x3dc717(0x180)],..._0xc7e4b2[_0x1d2d9f]['redoState']}},_0x3ace9f=this[_0x3dc717(0x143)][_0x3dc717(0x1ea)](_0x1ae4bb,_0x640f42,!0x1),_0x4a908d=this[_0x3dc717(0x143)][_0x3dc717(0x1ea)](_0x585422,_0x27f729,!0x1);if(_0x2bd73d(_0x3ace9f))throw _0x3ace9f['error'];if(_0x2bd73d(_0x4a908d))throw _0x4a908d[_0x3dc717(0x205)];_0x12692f['unshift']({..._0xc7e4b2[_0x1d2d9f],'undoState':_0x3ace9f[_0x3dc717(0x220)][_0x3dc717(0x20a)],'redoState':_0x4a908d[_0x3dc717(0x220)][_0x3dc717(0x20a)]}),_0x1ae4bb=_0x3ace9f['m1Prime'],_0x585422=_0x4a908d[_0x3dc717(0x25c)];}this[_0x3dc717(0x27f)]['setStateCache'](_0x4cac40,{'history':_0x37194c,'collaboration':_0x12692f});}};ue=mn([Le(0x0,_0x3179ca(_0x52e011)),Le(0x1,_0x1f1952),Le(0x2,_0x3179ca(_0x4ac405))],ue);var In=Object[_0x266cb1(0x327)],fn=(_0x3bfedb,_0x3a2ec5,_0x4d8562,_0x10cf91)=>{const _0x14fd0e=_0x266cb1;for(var _0x3d975a=_0x10cf91>0x1?void 0x0:_0x10cf91?In(_0x3a2ec5,_0x4d8562):_0x3a2ec5,_0x1f3bd6=_0x3bfedb[_0x14fd0e(0x197)]-0x1,_0x304903;_0x1f3bd6>=0x0;_0x1f3bd6--)(_0x304903=_0x3bfedb[_0x1f3bd6])&&(_0x3d975a=_0x304903(_0x3d975a)||_0x3d975a);return _0x3d975a;},ht=(_0x212278,_0x14a54a)=>(_0x53d76d,_0x4175c8)=>_0x14a54a(_0x53d76d,_0x4175c8,_0x212278);let de=class{constructor(_0x27450e,_0x4369c8){const _0x31f26b=_0x266cb1;this[_0x31f26b(0x188)]=_0x27450e,this[_0x31f26b(0x143)]=_0x4369c8;}['transformSelections'](_0xfac47e){const _0x52b6db=_0x266cb1;var _0x57e6be;const _0x4f0353=this[_0x52b6db(0x188)][_0x52b6db(0x2c6)](_0x781f61),_0x416791=(_0x57e6be=_0x4f0353['getDocRanges']())!=null?_0x57e6be:[];if(_0x416791['length']===0x0)return;const _0xc6bea6=_0xfac47e[_0x52b6db(0x271)],_0x225d0b=[{'id':_0x52b6db(0x1bb),'params':{'unitId':_0xc6bea6,'actions':null,'textRanges':_0x416791}}],_0x2ca132=this[_0x52b6db(0x143)][_0x52b6db(0x2c5)](_0xfac47e,_0x225d0b);if(!_0x37a6c9(_0x2ca132))throw _0x2ca132['error'];const _0x147760=_0x2ca132[_0x52b6db(0x220)][0x0][_0x52b6db(0x20a)][_0x52b6db(0x1ac)];Array['isArray'](_0x147760)&&_0x147760[_0x52b6db(0x197)]&&_0x4f0353[_0x52b6db(0x317)](_0x147760,{'unitId':_0xc6bea6,'subUnitId':_0xc6bea6},!0x1);}};de=fn([ht(0x0,_0x3179ca(_0x52e011)),ht(0x1,_0x1f1952)],de);var gn=Object[_0x266cb1(0x327)],vn=(_0x28593f,_0x21a96f,_0x2d989a,_0x299bff)=>{const _0x2f6d5b=_0x266cb1;for(var _0x10decc=_0x299bff>0x1?void 0x0:_0x299bff?gn(_0x21a96f,_0x2d989a):_0x21a96f,_0x131172=_0x28593f[_0x2f6d5b(0x197)]-0x1,_0x3d780b;_0x131172>=0x0;_0x131172--)(_0x3d780b=_0x28593f[_0x131172])&&(_0x10decc=_0x3d780b(_0x10decc)||_0x10decc);return _0x10decc;},U=(_0xe883e3,_0x13d3a7)=>(_0x195196,_0x2b6e39)=>_0x13d3a7(_0x195196,_0x2b6e39,_0xe883e3);let Se=class extends _0x5a57f7{constructor(_0x380818,_0x1cd01e,_0x290632,_0x13fddd,_0x11cc74,_0x231f4e,_0x35f504,_0x1576a0){const _0x1c80f4=_0x266cb1;super(),_(this,'_status$',new _0x501473(_0x2459b9[_0x1c80f4(0x277)])),(this[_0x1c80f4(0x27f)]=_0x380818,this[_0x1c80f4(0x1f1)]=_0x1cd01e,this[_0x1c80f4(0x19e)]=_0x290632,this[_0x1c80f4(0xd5)]=_0x13fddd,this[_0x1c80f4(0x134)]=_0x11cc74,this[_0x1c80f4(0x18c)]=_0x231f4e,this[_0x1c80f4(0x14b)]=_0x35f504,this['_localeService']=_0x1576a0,this['_initEntityListener']());}[_0x266cb1(0xe4)](){const _0x4dd299=_0x266cb1;this[_0x4dd299(0x2ed)](this['_collaborationController']['entityInit$'][_0x4dd299(0x215)](_0x1b68c6=>{const _0x101846=_0x4dd299,_0x150a3a=this['_docStateChangeManagerService'][_0x101846(0x24e)][_0x101846(0x215)](_0x54a48e=>{const _0xf519e4=_0x101846;if(_0x54a48e==null)return;const {unitId:_0x478a8a,redoState:_0x374956,commandId:_0xc51e34}=_0x54a48e;if(_0x478a8a!==_0x1b68c6[_0xf519e4(0x271)])return;const _0x5e8d0a={'id':_0xc51e34,'type':_0x2e5972[_0xf519e4(0x20e)],'params':{'unitId':_0x478a8a,'actions':_0x374956[_0xf519e4(0x162)],'textRanges':null}};_0x1b68c6[_0xf519e4(0x1f2)](_0x5e8d0a);});if(_0x1b68c6[_0x101846(0x2ed)](_0x150a3a),_0x1b68c6 instanceof _0x56c801){const _0x5d9204={'onTransformIME':_0x1c4890=>this['_docTransformIMECacheService'][_0x101846(0x158)](_0x1c4890),'onTransformState':_0x3e1426=>this[_0x101846(0xd5)][_0x101846(0x216)](_0x3e1426),'onTransformSelections':_0x4bd8e0=>this[_0x101846(0x134)]['transformSelections'](_0x4bd8e0),'onSyncEditingCollabCursor':_0x35e4a8=>this[_0x101846(0x18c)][_0x101846(0xd4)](_0x35e4a8),'onTransformRemoteChangesetByIMECache':_0x234c4e=>this['_docTransformIMECacheService'][_0x101846(0x13e)](_0x234c4e),'onTransformRemoteChangesetByStateCache':_0x2ac2c2=>this[_0x101846(0xd5)][_0x101846(0x13e)](_0x2ac2c2)};_0x1b68c6[_0x101846(0x139)](_0x5d9204);}}));}};Se=vn([U(0x0,_0x3179ca(_0x4ac405)),U(0x1,_0x3179ca(_0x4b8426)),U(0x2,_0x3179ca(he)),U(0x3,_0x3179ca(ue)),U(0x4,_0x3179ca(de)),U(0x5,_0x3179ca(ze)),U(0x6,_0x2c0732),U(0x7,_0x3179ca(_0xe56074))],Se);var Z=(_0x4b668b=>(_0x4b668b[_0x4b668b['UNDEFINED']=0x0]=_0x266cb1(0x1d5),_0x4b668b[_0x4b668b['OK']=0x1]='OK',_0x4b668b[_0x4b668b[_0x266cb1(0x1d4)]=0x2]=_0x266cb1(0x1d4),_0x4b668b[_0x4b668b[_0x266cb1(0x31a)]=0x3]=_0x266cb1(0x31a),_0x4b668b[_0x4b668b['NOT_FOUND']=0x4]=_0x266cb1(0x274),_0x4b668b[_0x4b668b[_0x266cb1(0x1ef)]=0x5]=_0x266cb1(0x1ef),_0x4b668b[_0x4b668b[_0x266cb1(0x195)]=0x6]=_0x266cb1(0x195),_0x4b668b[_0x4b668b['INVALID_ARGUMENT']=0x7]=_0x266cb1(0xe8),_0x4b668b[_0x4b668b['TOO_MANY_REQUESTS']=0x8]=_0x266cb1(0x210),_0x4b668b[_0x4b668b[_0x266cb1(0x19a)]=0x9]='COMPLETION_FINISHED',_0x4b668b[_0x4b668b[_0x266cb1(0x2b7)]=0xa]=_0x266cb1(0x2b7),_0x4b668b[_0x4b668b['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x266cb1(0x2cd),_0x4b668b[_0x4b668b[_0x266cb1(0x1fe)]=0xc]=_0x266cb1(0x1fe),_0x4b668b[_0x4b668b[_0x266cb1(0x1ff)]=0xd]=_0x266cb1(0x1ff),_0x4b668b[_0x4b668b[_0x266cb1(0x17e)]=0xe]=_0x266cb1(0x17e),_0x4b668b[_0x4b668b[_0x266cb1(0x20f)]=0xf]=_0x266cb1(0x20f),_0x4b668b[_0x4b668b['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x266cb1(0x30d),_0x4b668b[_0x4b668b[_0x266cb1(0x26d)]=0x64]=_0x266cb1(0x26d),_0x4b668b[_0x4b668b[_0x266cb1(0x138)]=0x65]=_0x266cb1(0x138),_0x4b668b[_0x4b668b[_0x266cb1(0x1b7)]=0xc9]=_0x266cb1(0x1b7),_0x4b668b[_0x4b668b['USER_IS_ANONYMOUS']=0xca]=_0x266cb1(0x1a4),_0x4b668b[_0x4b668b['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x266cb1(0x114),_0x4b668b[_0x4b668b[_0x266cb1(0x239)]=0x1771]=_0x266cb1(0x239),_0x4b668b[_0x4b668b[_0x266cb1(0x19c)]=0x1772]=_0x266cb1(0x19c),_0x4b668b[_0x4b668b['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x266cb1(0x1df),_0x4b668b[_0x4b668b[_0x266cb1(0x206)]=0x1b59]=_0x266cb1(0x206),_0x4b668b[_0x4b668b[_0x266cb1(0x184)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x4b668b[_0x4b668b[_0x266cb1(0x117)]=0x1b5b]=_0x266cb1(0x117),_0x4b668b[_0x4b668b[_0x266cb1(0x266)]=0x1b5c]=_0x266cb1(0x266),_0x4b668b[_0x4b668b[_0x266cb1(0x22b)]=0x1b5d]=_0x266cb1(0x22b),_0x4b668b[_0x4b668b['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x266cb1(0x212),_0x4b668b[_0x4b668b[_0x266cb1(0x104)]=0x2329]=_0x266cb1(0x104),_0x4b668b[_0x4b668b[_0x266cb1(0x2fe)]=0x232a]=_0x266cb1(0x2fe),_0x4b668b[_0x4b668b[_0x266cb1(0x314)]=0x232b]=_0x266cb1(0x314),_0x4b668b[_0x4b668b['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x4b668b[_0x4b668b[_0x266cb1(0x150)]=0x232d]=_0x266cb1(0x150),_0x4b668b[_0x4b668b[_0x266cb1(0x285)]=0x2711]=_0x266cb1(0x285),_0x4b668b[_0x4b668b[_0x266cb1(0x294)]=0x2712]=_0x266cb1(0x294),_0x4b668b[_0x4b668b[_0x266cb1(0x1b2)]=0x2713]=_0x266cb1(0x1b2),_0x4b668b[_0x4b668b['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x266cb1(0x175),_0x4b668b[_0x4b668b[_0x266cb1(0x2d8)]=0x271a]=_0x266cb1(0x2d8),_0x4b668b[_0x4b668b[_0x266cb1(0x123)]=0x271b]=_0x266cb1(0x123),_0x4b668b[_0x4b668b[_0x266cb1(0xd3)]=0x271c]=_0x266cb1(0xd3),_0x4b668b[_0x4b668b[_0x266cb1(0x1f6)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x4b668b[_0x4b668b[_0x266cb1(0x18f)]=0x271e]=_0x266cb1(0x18f),_0x4b668b[_0x4b668b[_0x266cb1(0x260)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x4b668b[_0x4b668b[_0x266cb1(0x310)]=0x2720]=_0x266cb1(0x310),_0x4b668b[_0x4b668b[_0x266cb1(0x2e9)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x4b668b[_0x4b668b['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x266cb1(0x244),_0x4b668b[_0x4b668b[_0x266cb1(0x2bd)]=0x2ee2]=_0x266cb1(0x2bd),_0x4b668b[_0x4b668b[_0x266cb1(0x27d)]=0x2ee3]=_0x266cb1(0x27d),_0x4b668b[_0x4b668b['USER_NOT_INVITED_CODE']=0x2ee4]=_0x266cb1(0x292),_0x4b668b[_0x4b668b[_0x266cb1(0x2d0)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x4b668b[_0x4b668b[_0x266cb1(0x311)]=0x32c9]=_0x266cb1(0x311),_0x4b668b[_0x4b668b[_0x266cb1(0x2e5)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x4b668b[_0x4b668b[_0x266cb1(0x297)]=0x32cb]=_0x266cb1(0x297),_0x4b668b[_0x4b668b[_0x266cb1(0x218)]=0x36b1]=_0x266cb1(0x218),_0x4b668b[_0x4b668b[_0x266cb1(0x133)]=0x36b2]=_0x266cb1(0x133),_0x4b668b[_0x4b668b[_0x266cb1(0x10a)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x4b668b[_0x4b668b['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x266cb1(0x2c7),_0x4b668b[_0x4b668b[_0x266cb1(0x29c)]=0x3715]=_0x266cb1(0x29c),_0x4b668b[_0x4b668b['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x266cb1(0x12d),_0x4b668b[_0x4b668b['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x266cb1(0x17b),_0x4b668b[_0x4b668b[_0x266cb1(0x316)]=0x37dd]=_0x266cb1(0x316),_0x4b668b[_0x4b668b[_0x266cb1(0x1a0)]=0x3a99]=_0x266cb1(0x1a0),_0x4b668b[_0x4b668b[_0x266cb1(0x2ae)]=0x3a9a]=_0x266cb1(0x2ae),_0x4b668b[_0x4b668b[_0x266cb1(0x12c)]=0x3a9b]=_0x266cb1(0x12c),_0x4b668b[_0x4b668b[_0x266cb1(0xee)]=0x3a9c]=_0x266cb1(0xee),_0x4b668b[_0x4b668b['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x4b668b[_0x4b668b['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x266cb1(0xe3),_0x4b668b[_0x4b668b[_0x266cb1(0x279)]=0x3a9f]=_0x266cb1(0x279),_0x4b668b[_0x4b668b[_0x266cb1(0x293)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x4b668b[_0x4b668b[_0x266cb1(0x1db)]=-0x1]='UNRECOGNIZED',_0x4b668b))(Z||{});function En(_0x5c4302){const _0x43eb1e=_0x266cb1;var _0x21ff6c,_0x1e641f;const _0x21ed5a=(_0x21ff6c=_0x5c4302[_0x43eb1e(0x235)])==null?void 0x0:_0x21ff6c[_0x43eb1e(0x214)],_0x23dd28=((_0x1e641f=_0x5c4302[_0x43eb1e(0x235)])==null?void 0x0:_0x1e641f['totalFormulasToCalculate'])||0x0;return _0x21ed5a===_0xe0b366[_0x43eb1e(0x102)]&&_0x23dd28>0x0;}function pn(_0x3da310){const _0x2c54bc=_0x266cb1;return _0x3da310[_0x2c54bc(0x23b)]===_0x34b6b6['SUCCESS'];}var On=Object[_0x266cb1(0x327)],Tn=(_0x4a70ec,_0x51c539,_0x400cd9,_0x53c1eb)=>{const _0x259869=_0x266cb1;for(var _0x847195=_0x53c1eb>0x1?void 0x0:_0x53c1eb?On(_0x51c539,_0x400cd9):_0x51c539,_0x2c5e0d=_0x4a70ec[_0x259869(0x197)]-0x1,_0x4f1753;_0x2c5e0d>=0x0;_0x2c5e0d--)(_0x4f1753=_0x4a70ec[_0x2c5e0d])&&(_0x847195=_0x4f1753(_0x847195)||_0x847195);return _0x847195;},P=(_0xa42c8c,_0xd9197b)=>(_0x4252b1,_0x5b53cc)=>_0xd9197b(_0x4252b1,_0x5b53cc,_0xa42c8c);const Cn=_0x266cb1(0xe2),Rn='/universer-api/license/formula/limit/start',Dn=_0x266cb1(0x25d);let me=class extends _0x5a57f7{constructor(_0x5bad9d,_0x16ebf5,_0x12a9b7,_0x3b077e,_0x434b70,_0x2f4bbb,_0x4ee989){const _0x172550=_0x266cb1;super(),_(this,'_pollingInterval',null),_(this,_0x172550(0x127),0x0),_(this,'_currentUsage',0x0),_(this,_0x172550(0x1f8),[]),_(this,_0x172550(0xda),0x0),(this[_0x172550(0x14b)]=_0x5bad9d,this['_commandService']=_0x16ebf5,this['_configService']=_0x12a9b7,this['_httpService']=_0x3b077e,this[_0x172550(0x1f3)]=_0x434b70,this['_logService']=_0x2f4bbb,this[_0x172550(0x287)]=_0x4ee989,this[_0x172550(0x132)]());}[_0x266cb1(0x132)](){const _0x476042=_0x266cb1;this['disposeWithMe'](this['_commandService'][_0x476042(0x21d)]((_0x5d33b5,_0x1a8c35)=>{const _0x1905f5=_0x476042;var _0x2b981b;if(_0x5d33b5['id']!==_0x554a7a['id'])return;const _0x1d1d96=_0x5d33b5['params'];if(!this[_0x1905f5(0x105)]((_0x2b981b=_0x1d1d96['dirtyRanges'])!=null?_0x2b981b:[]))return;if(!this[_0x1905f5(0x207)]())throw this[_0x1905f5(0x304)](_0x5d33b5,_0x1a8c35),this[_0x1905f5(0x1c4)](),new _0x23036e();})),this[_0x476042(0x2ed)](this['_commandService']['onCommandExecuted']((_0xdb3a7a,_0x88fc79)=>{const _0x3a516d=_0x476042;if(_0xdb3a7a['id']!==_0x18d447['id'])return;const _0x428708=_0xdb3a7a[_0x3a516d(0x20a)];if(En(_0x428708)){const _0x577a57=_0x5d3172();this[_0x3a516d(0x1f8)]['push'](_0x577a57),this['_startCalculationLimit'](_0x577a57);}else{if(pn(_0x428708)&&this['_taskIds'][_0x3a516d(0x197)]>0x0){const _0x388fad=this[_0x3a516d(0x1f8)][_0x3a516d(0x2f3)]();this['_releaseCalculationLimit'](_0x388fad);}}}));}[_0x266cb1(0x156)](){const _0x394fbe=_0x266cb1;super['dispose'](),this[_0x394fbe(0x2f1)](),this[_0x394fbe(0x1f8)]=[],this[_0x394fbe(0x233)]=0x0,this[_0x394fbe(0x127)]=0x0,this[_0x394fbe(0xda)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x13ced8,_0x4a2537){const _0x34a902=_0x266cb1;for(let _0x78017b=0x0;_0x78017b<0x1e;_0x78017b++)try{if(await this['_getFormulaLimitStatus'](),this['_checkCalculationAvailable']()){this['_applyCommand'](_0x13ced8,_0x4a2537),this[_0x34a902(0x14b)][_0x34a902(0x295)]({'content':this[_0x34a902(0x287)]['t'](_0x34a902(0x321)),'type':_0x34362f[_0x34a902(0x1bd)]});return;}await new Promise(_0x2a0381=>{const _0x548522=_0x34a902;this[_0x548522(0x283)]=window[_0x548522(0x2f5)](_0x2a0381,0x3e8);});}catch(_0x58ded4){this[_0x34a902(0x129)][_0x34a902(0x205)](_0x58ded4);}this[_0x34a902(0x14b)][_0x34a902(0x295)]({'content':this[_0x34a902(0x287)]['t'](_0x34a902(0x323)),'type':_0x34362f[_0x34a902(0x264)]});}[_0x266cb1(0x27b)](_0x51f413,_0x3d2ae3){const _0x13c61b=_0x266cb1;try{this[_0x13c61b(0x29f)][_0x13c61b(0x192)](_0x51f413['id'],_0x51f413[_0x13c61b(0x20a)],_0x3d2ae3);}catch(_0x2eef43){this[_0x13c61b(0x129)][_0x13c61b(0x205)](_0x2eef43);}}[_0x266cb1(0x12e)](_0x358838,_0x3a9c6c){const _0x196f65=_0x266cb1;_0x3a9c6c<this[_0x196f65(0xda)]||(this[_0x196f65(0xda)]=_0x3a9c6c,this[_0x196f65(0x127)]=Number[_0x196f65(0x1d6)](_0x358838[_0x196f65(0xdf)]),this[_0x196f65(0x233)]=Number[_0x196f65(0x1d6)](_0x358838['currentUsage']));}async[_0x266cb1(0x221)](_0x166055){const _0x5763bc=_0x266cb1;var _0x356b56,_0x1623eb;const _0x42c260=Date[_0x5763bc(0x229)]();try{const _0x24966a=((_0x356b56=this[_0x5763bc(0x258)]['getConfig'](_0x21dc6f))==null?void 0x0:_0x356b56[_0x5763bc(0x2b4)])||Rn,_0x4d7c3b=(await this[_0x5763bc(0x1ba)]['post'](_0x24966a,{'body':JSON[_0x5763bc(0x27a)]({'taskId':_0x166055})}))[_0x5763bc(0x2b5)];if(((_0x1623eb=_0x4d7c3b['error'])==null?void 0x0:_0x1623eb['code'])!==Z['OK'])return;this[_0x5763bc(0x12e)](_0x4d7c3b['limitInfo'],_0x42c260);}catch(_0x38cc3d){this['_logService'][_0x5763bc(0x205)](_0x38cc3d);}}async['_getFormulaLimitStatus'](_0x2039d6){const _0x489048=_0x266cb1;var _0x1f94f8,_0x3d3735;const _0x296ae4=Date[_0x489048(0x229)]();try{const _0xed3fed=((_0x1f94f8=this[_0x489048(0x258)]['getConfig'](_0x21dc6f))==null?void 0x0:_0x1f94f8['getformulaLimitStatusUrl'])||Cn,_0x25f1ab=_0x2039d6?_0xed3fed+_0x489048(0x145)+encodeURIComponent(_0x2039d6):_0xed3fed,_0x51b558=(await this[_0x489048(0x1ba)]['get'](_0x25f1ab))['body'];if(((_0x3d3735=_0x51b558[_0x489048(0x205)])==null?void 0x0:_0x3d3735[_0x489048(0x1bc)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x51b558['limitInfo'],_0x296ae4);}catch(_0x54133f){this[_0x489048(0x129)][_0x489048(0x205)](_0x54133f);}}async['_releaseCalculationLimit'](_0x12eb82){const _0x27465c=_0x266cb1;var _0x2d7b83,_0x1d614e;const _0x468436=Date[_0x27465c(0x229)]();try{const _0x589a99=((_0x2d7b83=this[_0x27465c(0x258)][_0x27465c(0x1d9)](_0x21dc6f))==null?void 0x0:_0x2d7b83[_0x27465c(0x2de)])||Dn,_0x1a5e7f=(await this['_httpService'][_0x27465c(0x1aa)](_0x589a99,{'body':JSON[_0x27465c(0x27a)]({'taskId':_0x12eb82})}))[_0x27465c(0x2b5)];if(((_0x1d614e=_0x1a5e7f[_0x27465c(0x205)])==null?void 0x0:_0x1d614e[_0x27465c(0x1bc)])!==Z['OK'])return;this[_0x27465c(0x12e)](_0x1a5e7f[_0x27465c(0x15d)],_0x468436);}catch(_0x11a96f){this[_0x27465c(0x129)][_0x27465c(0x205)](_0x11a96f);}}['_checkCalculationAvailable'](){const _0x20c0a8=_0x266cb1;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x20c0a8(0x127)]-this[_0x20c0a8(0x233)]>0x0;}[_0x266cb1(0x2f1)](){const _0x4f14b0=_0x266cb1;this[_0x4f14b0(0x283)]&&(clearTimeout(this[_0x4f14b0(0x283)]),this['_pollingInterval']=null);}[_0x266cb1(0x1c4)](){const _0x1dfc68=_0x266cb1;this[_0x1dfc68(0x14b)][_0x1dfc68(0x295)]({'content':this['_localeService']['t'](_0x1dfc68(0x26f)),'type':_0x34362f[_0x1dfc68(0x14f)]});}['_hasFormulaInDirtyRanges'](_0x1f4229){const _0x2f0281=_0x266cb1;for(const _0x595cbe of _0x1f4229){const {unitId:_0x4e3904,sheetId:_0x372693,range:_0x5ddeb5}=_0x595cbe,_0x4c3c70=this['_univerInstanceService'][_0x2f0281(0x2c2)](_0x4e3904);if(!_0x4c3c70)continue;const _0x5c3729=_0x4c3c70[_0x2f0281(0x179)](_0x372693);if(!_0x5c3729)continue;const _0x38ee18=_0x5c3729[_0x2f0281(0x124)]();for(let _0x195cbd=_0x5ddeb5[_0x2f0281(0x2d3)];_0x195cbd<=_0x5ddeb5[_0x2f0281(0x270)];_0x195cbd++)for(let _0x1da18f=_0x5ddeb5[_0x2f0281(0x2b9)];_0x1da18f<=_0x5ddeb5[_0x2f0281(0xfb)];_0x1da18f++){const _0x4db6cf=_0x38ee18[_0x2f0281(0x329)](_0x195cbd,_0x1da18f);if(_0x4db6cf&&(_0x5b2a5c(_0x4db6cf['f'])||_0x6986c(_0x4db6cf['si'])))return!0x0;}}return!0x1;}};me=Tn([P(0x0,_0x3179ca(_0x2c0732)),P(0x1,_0x398133),P(0x2,_0x3607cf),P(0x3,_0x3179ca(_0x299f96)),P(0x4,_0x327d97),P(0x5,_0x53fc3e),P(0x6,_0x3179ca(_0xe56074))],me);var bn=Object['getOwnPropertyDescriptor'],Nn=(_0x3eb2ff,_0x1a42fd,_0x2efb7b,_0x2bb351)=>{for(var _0xf749fa=_0x2bb351>0x1?void 0x0:_0x2bb351?bn(_0x1a42fd,_0x2efb7b):_0x1a42fd,_0x57437a=_0x3eb2ff['length']-0x1,_0xa35b19;_0x57437a>=0x0;_0x57437a--)(_0xa35b19=_0x3eb2ff[_0x57437a])&&(_0xf749fa=_0xa35b19(_0xf749fa)||_0xf749fa);return _0xf749fa;},Ue=(_0x4ab779,_0x4b9786)=>(_0x215d27,_0x14d6c0)=>_0x4b9786(_0x215d27,_0x14d6c0,_0x4ab779);let He=class extends _0x5a57f7{constructor(_0x39428f,_0x27bf29,_0x11a471){const _0x453bc7=_0x266cb1;super(),_(this,_0x453bc7(0x256),new Map()),_(this,_0x453bc7(0xdb),new Map()),_(this,_0x453bc7(0xd6),!0x1),(this[_0x453bc7(0x258)]=_0x39428f,this[_0x453bc7(0x1ad)]=_0x27bf29,this['_revisionService']=_0x11a471);}[_0x266cb1(0x1e9)](){const _0xa9eb83=_0x266cb1;this[_0xa9eb83(0xd6)]=!0x0;}[_0x266cb1(0x309)](){const _0x486098=_0x266cb1;this[_0x486098(0xd6)]=!0x1;}get[_0x266cb1(0xf4)](){const _0x4d764b=_0x266cb1;return this[_0x4d764b(0xdb)];}[_0x266cb1(0x156)](){const _0xb87d2b=_0x266cb1;this[_0xb87d2b(0x161)]()[_0xb87d2b(0x313)](()=>super[_0xb87d2b(0x156)]());}async[_0x266cb1(0x2ac)](_0x50239a){const _0x28342e=_0x266cb1;return this[_0x28342e(0xd6)]?null:this[_0x28342e(0x1ad)][_0x28342e(0x228)](_0x3aa1d4(_0x50239a));}async['saveOfflineData'](_0x5814e7,_0x57b8c3){const _0x4f390f=_0x266cb1;return!!this['_localStorageService'][_0x4f390f(0x10e)](_0x5814e7,_0x57b8c3);}[_0x266cb1(0x2dc)](_0x29d22d,_0x238702,_0x321e79,_0x44c99a){const _0x92c1d3=_0x266cb1,_0x271d58=this[_0x92c1d3(0xd7)][_0x92c1d3(0x246)](_0x29d22d);this[_0x92c1d3(0x256)][_0x92c1d3(0x186)](_0x29d22d,{'unitID':_0x29d22d,'type':_0x238702,'awaitingChangeset':_0x321e79,'mutations':_0x44c99a,'rev':_0x271d58}),this[_0x92c1d3(0xdb)][_0x92c1d3(0x276)](_0x29d22d)||this[_0x92c1d3(0xd8)](_0x29d22d);}[_0x266cb1(0xd8)](_0x43eaf4){const _0x42f570=_0x266cb1,_0x5265eb=this['_getSaveTimeout']();_0x5265eb===0x0?this[_0x42f570(0x2f9)](_0x43eaf4):this[_0x42f570(0xdb)][_0x42f570(0x186)](_0x43eaf4,setTimeout(()=>this['_saveCache'](_0x43eaf4),_0x5265eb));}['_getSaveTimeout'](){const _0x2dbd20=_0x266cb1;var _0x22fb3d;return(_0x22fb3d=this[_0x2dbd20(0x258)][_0x2dbd20(0x1d9)](_0x25ffc0))!=null?_0x22fb3d:_0x132eff;}[_0x266cb1(0x2f9)](_0x5545af){const _0x3f38c9=_0x266cb1,_0x253b59=this[_0x3f38c9(0xdb)][_0x3f38c9(0x2c6)](_0x5545af);return _0x253b59!==void 0x0&&window[_0x3f38c9(0x263)](_0x253b59),this[_0x3f38c9(0x1ad)][_0x3f38c9(0x10e)](_0x3aa1d4(_0x5545af),this[_0x3f38c9(0x256)][_0x3f38c9(0x2c6)](_0x5545af))[_0x3f38c9(0x313)](()=>this[_0x3f38c9(0xdb)][_0x3f38c9(0x21b)](_0x5545af));}async[_0x266cb1(0x161)](){const _0x450922=_0x266cb1,_0x491fca=[];this[_0x450922(0xdb)][_0x450922(0x253)]((_0x5ee3a7,_0x169f53)=>{const _0x3e1649=_0x450922;window[_0x3e1649(0x263)](_0x5ee3a7),_0x491fca['push'](this[_0x3e1649(0x2f9)](_0x169f53)[_0x3e1649(0x313)](()=>{const _0x43d0ef=_0x3e1649;this[_0x43d0ef(0xdb)][_0x43d0ef(0x21b)](_0x169f53);}));}),await Promise[_0x450922(0x28b)](_0x491fca);}};He=Nn([Ue(0x0,_0x3607cf),Ue(0x1,_0x17555e),Ue(0x2,_0x3179ca(_0x48e7e0))],He);class Ln extends _0x165e64{constructor(){const _0x595136=_0x266cb1;super(),_(this,'urlChange$'),this[_0x595136(0x1a9)]=_0x573346(window,'popstate')[_0x595136(0x242)](_0x21b87b(this[_0x595136(0xff)]),_0x22cf6d(0x1),_0x3071cf(void 0x0));}['setParam'](_0x15a685,_0x48c6ca,_0x2405b3=!0x1){const _0x4d0e07=_0x266cb1,_0x7107ef=new URL(window[_0x4d0e07(0x1e4)]['href']);_0x7107ef[_0x4d0e07(0x24c)]['set'](_0x15a685,_0x48c6ca),_0x2405b3?window[_0x4d0e07(0x240)][_0x4d0e07(0xd9)]('','',_0x7107ef[_0x4d0e07(0x29d)]()):window[_0x4d0e07(0x240)]['pushState']('','',_0x7107ef[_0x4d0e07(0x29d)]());}[_0x266cb1(0x2fd)](_0x19dff8,_0x38517d=!0x1){const _0x241054=_0x266cb1,_0x4009c5=new URL(window[_0x241054(0x1e4)][_0x241054(0x1c9)]);_0x4009c5[_0x241054(0x24c)][_0x241054(0x21b)](_0x19dff8),_0x38517d?window['history'][_0x241054(0xd9)]('','',_0x4009c5['toString']()):window[_0x241054(0x240)][_0x241054(0xe6)]('','',_0x4009c5[_0x241054(0x29d)]());}[_0x266cb1(0x13c)](_0x5421f9){const _0x314c0b=_0x266cb1;var _0x3e2303;return(_0x3e2303=new URL(window['location'][_0x314c0b(0x1c9)])['searchParams'][_0x314c0b(0x2c6)](_0x5421f9))!=null?_0x3e2303:void 0x0;}}var Un=Object[_0x266cb1(0x269)],Mn=Object[_0x266cb1(0x327)],An=(_0x1e59ce,_0x29f4a,_0x22ba6f)=>_0x29f4a in _0x1e59ce?Un(_0x1e59ce,_0x29f4a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22ba6f}):_0x1e59ce[_0x29f4a]=_0x22ba6f,Pn=(_0x36dccd,_0x536446,_0x386ece,_0x438786)=>{for(var _0x327213=_0x438786>0x1?void 0x0:_0x438786?Mn(_0x536446,_0x386ece):_0x536446,_0x5cc638=_0x36dccd['length']-0x1,_0x5c1107;_0x5cc638>=0x0;_0x5cc638--)(_0x5c1107=_0x36dccd[_0x5cc638])&&(_0x327213=_0x5c1107(_0x327213)||_0x327213);return _0x327213;},Me=(_0x456e80,_0x4a1631)=>(_0x3728f3,_0x2baab4)=>_0x4a1631(_0x3728f3,_0x2baab4,_0x456e80),wn=(_0x23de8f,_0x5f4a72,_0x58c713)=>An(_0x23de8f,_0x5f4a72+'',_0x58c713);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x2eb738{constructor(_0x157de7=_t,_0x4b4f44,_0x1db90a,_0x3be84a){const _0x1a8969=_0x266cb1;super(),this[_0x1a8969(0x2eb)]=_0x157de7,this['_renderManagerService']=_0x4b4f44,this['_injector']=_0x1db90a,this[_0x1a8969(0x258)]=_0x3be84a;const {..._0x70e2ed}=_0x1407a1({},_t,this[_0x1a8969(0x2eb)]);this['_configService']['setConfig'](hn,_0x70e2ed);}['onStarting'](){const _0x205dbe=_0x266cb1;this[_0x205dbe(0x2dd)](),this[_0x205dbe(0xfd)]();}[_0x266cb1(0x324)](){const _0x3007aa=_0x266cb1;this[_0x3007aa(0x173)]();}[_0x266cb1(0x2dd)](){const _0x3cd8ce=_0x266cb1;var _0x161837;const _0x5a2f91=[[Ke],[me],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x2ec716,{'useClass':_0x1c8192}],[_0x4fe86f,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x3cd8ce(0x2eb)][_0x3cd8ce(0x254)]&&_0x5a2f91[_0x3cd8ce(0x30c)]([le]),_0x329602(this[_0x3cd8ce(0x188)],_0x3a0cf2(_0x5a2f91,(_0x161837=this[_0x3cd8ce(0x2eb)])==null?void 0x0:_0x161837[_0x3cd8ce(0x17a)]));}['_registerRenderDependencies'](){const _0x21019f=_0x266cb1;this[_0x21019f(0x2ed)](this[_0x21019f(0x14e)][_0x21019f(0x2fb)](_0x4f0ec8[_0x21019f(0xf3)],[Fe])),this[_0x21019f(0x2ed)](this['_renderManagerService'][_0x21019f(0x2fb)](_0x4f0ec8[_0x21019f(0x308)],[ke]));}['_initDependencies'](){const _0x1db30d=_0x266cb1;_0x2c027c(this[_0x1db30d(0x188)],[[H],[ae],[Se],[_e],[ce],[me]]),this[_0x1db30d(0x2eb)][_0x1db30d(0x254)]&&_0x2c027c(this['_injector'],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x501276(_0x53669b),Me(0x1,_0x4e5a7f),Me(0x2,_0x3179ca(_0x52e011)),Me(0x3,_0x3607cf)],Ye);var $n=Object[_0x266cb1(0x327)],xn=(_0x2195bd,_0x49e964,_0x3e6ef9,_0x30f804)=>{const _0x3e70c4=_0x266cb1;for(var _0x59064b=_0x30f804>0x1?void 0x0:_0x30f804?$n(_0x49e964,_0x3e6ef9):_0x49e964,_0x1ed929=_0x2195bd[_0x3e70c4(0x197)]-0x1,_0x1288ac;_0x1ed929>=0x0;_0x1ed929--)(_0x1288ac=_0x2195bd[_0x1ed929])&&(_0x59064b=_0x1288ac(_0x59064b)||_0x59064b);return _0x59064b;},J=(_0x504df1,_0xf68077)=>(_0x2a811c,_0x34a4f6)=>_0xf68077(_0x2a811c,_0x34a4f6,_0x504df1);let ut=class extends _0x527d7d{constructor(_0x2fced1,_0x38f03d,_0x1d4ebe,_0x502a3b,_0x5bd1b0){super(_0x2fced1,_0x38f03d,_0x1d4ebe,_0x502a3b,_0x5bd1b0);}async['createSocket'](_0xed67fc){const _0x5963ee=_0x266cb1,_0x1e692e=await this[_0x5963ee(0x209)](),_0x24f4a0=this['_createSocketURL'](_0xed67fc,_0x1e692e);return this[_0x5963ee(0x31c)](_0x24f4a0);}[_0x266cb1(0x1ec)](_0x12fa47,_0x2aa89a){const _0x5b9629=_0x266cb1,_0x59d57b=typeof window>'u'?new URL(_0x12fa47):new URL(_0x12fa47,window['location']['origin']);_0x59d57b[_0x5b9629(0x24c)][_0x5b9629(0x186)]('sessionTicket',_0x2aa89a);const _0x165b61=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5b9629(0x1e4)][_0x5b9629(0x25e)]);return _0x165b61[_0x5b9629(0x2c6)](_0x5b9629(0x278))&&_0x59d57b[_0x5b9629(0x24c)][_0x5b9629(0x186)](_0x5b9629(0x278),_0x165b61[_0x5b9629(0x2c6)](_0x5b9629(0x278))),_0x59d57b['toString']();}async[_0x266cb1(0x209)](){const _0x3e58a3=_0x266cb1;var _0xb602e0,_0x3c64a2,_0x5e2543;const _0x57fc62=this[_0x3e58a3(0x258)][_0x3e58a3(0x1d9)](_0x21dc6f),_0x3f848d=(_0xb602e0=_0x57fc62==null?void 0x0:_0x57fc62[_0x3e58a3(0x320)])!=null?_0xb602e0:_0x5347b6;return(_0x5e2543=(_0x3c64a2=(await this[_0x3e58a3(0x1ba)][_0x3e58a3(0x2c6)](_0x3f848d,{'headers':{'Content-Type':_0x3e58a3(0x15c)}}))[_0x3e58a3(0x2b5)])==null?void 0x0:_0x3c64a2[_0x3e58a3(0x251)])!=null?_0x5e2543:'';}};ut=xn([J(0x0,_0x3179ca(_0x52e011)),J(0x1,_0x3179ca(_0x299f96)),J(0x2,_0x3607cf),J(0x3,_0x53fc3e),J(0x4,_0x358502)],ut);var Bn=Object[_0x266cb1(0x327)],Fn=(_0x201a99,_0x56db4e,_0x4f6fd4,_0x4b7b86)=>{const _0x11e38e=_0x266cb1;for(var _0x5e66bb=_0x4b7b86>0x1?void 0x0:_0x4b7b86?Bn(_0x56db4e,_0x4f6fd4):_0x56db4e,_0x1bec31=_0x201a99[_0x11e38e(0x197)]-0x1,_0x260ca7;_0x1bec31>=0x0;_0x1bec31--)(_0x260ca7=_0x201a99[_0x1bec31])&&(_0x5e66bb=_0x260ca7(_0x5e66bb)||_0x5e66bb);return _0x5e66bb;},Ae=(_0x5b3f66,_0x2441d9)=>(_0x3050c6,_0x14c873)=>_0x2441d9(_0x3050c6,_0x14c873,_0x5b3f66);function _0x59ef(){const _0x440457=['roomMembers','ENSURE_SNAPSHOT_EXECUTION','[CollaborationDataLoaderController]','beginPath','_collabSessionService','assignAColorForMemberID','location','unit','defIds','_getMergeRange','_assignedColors','disableLocalCache','transformMutation','_render','_createSocketURL','bottom','replace','UNAUTHENTICATED','currentColor','_collaborationController','onLocalMutation','_univerInstanceService','runOnServer','_entities','YUUMI_ALL_TABLES_IS_INVALID','registerRefRange','_taskIds','cursorInfo','_anchor','_hideTimer','clearInterval','_color','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','EMAIL_VERIFY_CODE_MISMATCH','_removeClearOtherTimer','values','getCurrentUnitForType','url(#off-line-icon_clip0_910_343)','getStateCache','error','APPLY_REJECT','_checkCalculationAvailable','getSkeleton','_getSessionTicket','params','_refRangeService','_shapes','_onCursorDelete','MUTATION','AUTHORIZE_CODE_ILLEGAL','TOO_MANY_REQUESTS','getUnitId','CONNECTOR_DATA_TOO_LARGE','engine','stage','subscribe','transformStateCache','HEADER_MENU','ENTITLE_CAN_NOT_BUY_LOWER_OTP','defs','text','delete','onPointerMove$','beforeCommandExecuted','/universer-api/frontend/logs','cursorInfo$','m2Prime','_startCalculationLimit','_updateLocalCursor','getMember','getDocRanges','collaboration.closeRoom','[Unhandled\x20Rejection]:\x20','SOCKET_FAILED','getItem','now','removeEventListener','APPLY_DUPLICATED','_hover','_initUserListener','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','lineTo','_docClipboardService','white','collabStatus.syncing','_currentUsage','restore','stageInfo','addObject','_handleHeartbeatEvent','session.will-retry','SNAPSHOT_INVALID_SNAPSHOT','requireSession','functionsExecutedState','color','toRgbString','url(#$1','CLOSE_ROOM','history','_textBubble','pipe','JOIN_ROOM_FAILED','INVITE_CODE_HAS_BEEN_UES','displayName','getCurrentRevOfUnit','getUniverSheetInstance','_themeService','_ensureSubject','sheetId','_startSheetCollabCursor','searchParams','_getSheetObject','docStateChange$','_memberID','onPointerLeave$','ticket','getVpScrollXYInfoByPosToVp','forEach','enableFrontendLog','Unknown\x20user','_cachedData','_notificationService','_configService','_instanceService','tag','registerComponent','m1Prime','/universer-api/license/formula/limit/done','search','mask','YUUMI_AI_RUN_FAILED','UPDATE_CURSOR','_transformPreviousActiveRange','clearTimeout','Error','random','APPLY_PERMISSION_DENIED','roomMembers$','string','defineProperty','_clearOtherTimers','registerBeforeClose','fillStyle','CURRENT_STATUS_CANNOT_OPERATE','onMouseMove','formula.calculation.waiting','endRow','unitID','fill','addEventListener','NOT_FOUND','colorChannel1','has','NOT_COLLAB','runId','REDEMPTION_CODE_HAS_BEEN_CREATED','stringify','_applyCommand','evenodd','INVITE_CODE_REQUIRED','activeSheet$','_docStateChangeManagerService','collabStatus.synced','_online','_localCacheService','_pollingInterval','svg','YUUMI_UNABLE_LOAD_URL','children','_localeService','UniverIcon','drawWith','InsertRangeMoveDownCommandId','all','save','_name','SOCKET_FAILED_RETRY','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','isArray','OFFLINE','USER_NOT_INVITED_CODE','DATA_SOURCE_TOO_LARGE','YUUMI_URL_COL_OUT_OF_RANGE','show','VIEW_MAIN','EMAIL_HAS_BEEN_BOUND','getAncestorScale','_colorAssignService','join','max','ENTITLE_CHAT_LIMIT_EXCEED','toString','top','_commandService','idSuffix','_entityInit$','hovered','green.600','_transformHistoryAndStateStack','setParam','bind','univerjs-icon\x20univerjs-icon-','event$','getCollabCursors$','_handleEvent','parse','loadOfflineData','debug','REDEMPTION_CODE_INACTIVE','OnLineIcon','_unitOnClients','_colorIndex','/run/','_backgroundColor','startFormulaLimitUrl','body','_setupBeforeClosingHandler','LOGIN_FAILED','1em','startColumn','ONLINE','onCommandExecuted','eventID','INVALID_INVITE_CODE','CONFLICT','filename','_handleJoinEvent','session.connection-failed','getUnit','_memberService','_sheetSkeletonManagerService','transformMutationsWithChangeset','get','PAYMENT_CHANNEL_NOT_SUPPORT','setAlpha','_initResize','OffLineIcon','subscribeEvent','round','MOBILE_VERIFY_CODE_MISMATCH','status$','getMergeData','INVITE_CODE_ALREADY_BOUND','collabStatus.fetchMiss','_send','startRow','_status$','data','USERS_LEAVE','_updateURLWithCurrentState','YUUMI_NO_CUBOID_FOR_QUESTION','getMemberID','getTypeOfUnitDisposed$','collab-text-range-','updateOfflineData','_registerDependencies','releaseFormulaLimitUrl','memberID','_cursorShapes','complete','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','univer-flex\x20univer-items-center','transformByState','MOBILE_HAS_BEEN_BOUND','InsertRangeMoveRightCommandId','_drawTextRange','AWAITING_WITH_PENDING','PY_RUNTIME_SCRIPT_ERROR','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','_config','rgba(255,\x20255,\x20255,\x200.01)','disposeWithMe','init','newValue','_unitStatus','_clearPolling','getViewport','shift','backgroundColor','setTimeout','_initEvent','on-line-icon_clip0_910_349','_initStatusListener','_saveCache','executionId','registerRenderModule','yellow.400','removeParam','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','unshift','_draw','_collabCursorController','_cursor','closePath','_checkAndWaitForCalculationPermission','stack','from','redoState','UNIVER_SHEET','enableLocalCache','_collabCursorState$','collab-rect-range-','push','LOGIN_TOKEN_PROCESSING_FAILED','undoState','_cursorInfo$','YUUMI_CONNECTOR_URL_NOT_FOUND','WECHAT_HAS_BEEN_BOUND','getTypeOfUnitAdded$','then','LICENSE_IMPORT_SIZE_EXCEEDED','arc','ENTITLE_NEED_BILLING_ADDRESS','replaceDocRanges','10725168NYcSWU','disposeUnit','PERMISSION_DENIED','black','_doCreateSocket','with','_range','\x20at\x20','wsSessionTicketUrl','formula.calculation.started','collaboration-client-ui.config','formula.calculation.unable','onRendered','addClipboardHook','getSheetId','getOwnPropertyDescriptor','getActiveRange','getValue','YUUMI_TABLE_NOT_FOUND_IN_UNIT','syncEditingCollabCursor','_docTransformStateCacheService','_disabled','_revisionService','_scheduleSaving','replaceState','_lastResponseTimestamp','_saveTaskMap','attrs','currentSkeleton$','transform','maxFormulaLimit','_dataLoaderService','row','/universer-api/license/formula/limit/status','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_initEntityListener','_startDocCollabCursor','pushState','unhandledrejection','INVALID_ARGUMENT','getUnitStatus$','sessionStatus$','_collaborationUIEventService','add','Warning','REDEMPTION_CODE_NOT_STARTED','selections','includes','getCurrentSelections','#FFF','UNIVER_DOC','saveTaskMap','trim','SYNCED','hide','1123512SwjLWu','_syncEditingCollabCursorService','width','endColumn','_lastPointer','_initDependencies','unload','dispose$','div','some','START_CALCULATION','onTransformChange$','LICENSE_MAX_UNITS_EXCEEDED','_hasFormulaInDirtyRanges','OTHER_CLIENTS_EDITING','loadUnit','_urlService','AWAITING','ENTITLE_DUP_SUBSCRIPTION','assign','path','getUndoRedoMutationParamsCache','setItem','_scene','collaboration-client.offline-data-not-saved','_docSkeletonManagerService','_setupSubUnitSync','makeDirty','CHANGESET_REVISION_CONFILICT','Failed','find','APPLY_REVISION_CONFILICT','_transformUndoRedoStack','flatMap','FromArray','jiqing.500','url(#on-line-icon_clip0_910_349)','_imageIoService','_onRefRangeChange','_updateCollabCursors','_scheduleHeartbeat','sheetID','measureText','YUUMI_ASYNCIO_CANCELLED','getCellMatrix','height','onPointerEnter$','_maxFormulaLimit','_updateSubUnitFromURLParams','_logService','6vnoOJR','_session','REDEMPTION_CODE_FULLY_REDEEMED','ENTITLE_REPORT_LIMIT_EXCEED','_setFormulaLimitStatus','ACTIVE_UNIT_EVENT_CHANNEL','min','getCollabEntity$','_initCommandInterceptor','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_docTransformSelectionsService','name','collabStatus.notCollab','univer-mr-2\x20univer-flex\x20univer-text-xl','ERROR_AGAIN','addHandlerCallback','setActiveRange','column','getParam','RemoveColCommandId','transformRemoteChangeset','_getAnchorBounding','_roomMembers$','mutations','findNodePositionByCharIndex','_transformService','getFocusedUnit','?taskId=','SUBMIT_CHANGESET_TIMEOUT','_initUnhandledRejectionListener','http://www.w3.org/2000/svg','getColorFromTheme','translate(.97)','_messageService','font','collabCursorState$','_renderManagerService','Loading','LICENSE_DISTRO_REJECTED','_init','getRelativeToViewportCoord','_uiPartsService','send','17772rwerYz','dispose','moveTo','transformIMECache','_id','type','reason','application/json','limitInfo','permission.content','socket$','subUnitId','exhaustSavingTask','actions','purple.300','_anchorDot','result','_initWindowErrorListener','permission.title','_drawAnchor','1199020YGNyEJ','asObservable','RemoveRowCommandId','size','entries','current','selection','_handleLeaveEvent','getCellPositionByOffset','setUndoRedoMutationParamsCache','_registerRenderDependencies','currentTheme$','YUUMI_SUBSCRIPTION_NOT_FOUND','collabStatus.offline','collab-client.tooltip.reconnect','xlink:href','getSheetBySheetId','override','ENTITLE_INSUFFICIENT_QUOTA','[LogService\x20Error]:\x20','_hovered','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_initCommandExecutedListener','unitId','symbol','_scheduleClearOtherTimer','resize','APPLY_NON_SEQUENTIAL_REVISION','deepClone','set','getUnhiddenWorksheets','_injector','collaboration.single-unit.warning','saveImage','getActiveSheet','_docSyncEditingCollabCursorService','source','none','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','subunit','_selfUnitIDs','executeCommand','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_initStatusComponent','ALREADY_EXISTS','_heartbeatTimer','length','map','348052JDNxmM','COMPLETION_FINISHED','_toggleOnline','SNAPSHOT_HAS_BEEN_REMOVED','0\x200\x2016\x2016','_docTransformIMECacheService','_refreshCollabCursors','REDEMPTION_INVALID_CODE','next','_onCursorUpdate','key','USER_IS_ANONYMOUS','_toggleOffline','MoveRangeCommandId','getRenderById','PENDING','urlChange$','post','split','textRanges','_localStorageService','whenReady','NO_OTHER_CLIENTS_EDITING','_removeCollabCursors','...','YUUMI_RATE_OVER_LIMIT','range','setInterval','createInstance','message','USER_NOT_FOUND','clipPath','unsubscribe','_httpService','doc.mutation.rich-text-editing','code','Success','_beforeCloseService','getCurrent','_eventUnsubscribe','startsWith','isEditing','_labelPosition','_showGuardMessage','invokeId','70534ZxlzXL','_collaborationSessionService','_context','href','2641863DDuExD','reconnect','isActive','substring','setShapeProps','imageSourceType','_monkeyPatchLogService','_handleHover','ranges','_cursors','INTERNAL_ERROR','UNDEFINED','parseInt','off-line-icon_clip0_910_343','getRangePointData','getConfig','colno','UNRECOGNIZED','_uploadLog','TEXT'];_0x59ef=function(){return _0x440457;};return _0x59ef();}let dt=class extends _0x5a57f7{constructor(_0x33d633,_0x5931e3,_0x27ece1){const _0x489cc7=_0x266cb1;super(),this[_0x489cc7(0x259)]=_0x33d633,this['_httpService']=_0x5931e3,this[_0x489cc7(0x258)]=_0x27ece1;}async[_0x266cb1(0x1f4)](_0x3bc5e2,_0x492625,_0x2e79ec,..._0x17f8c5){const _0x50132d=_0x266cb1;var _0x3a23eb,_0x354e49,_0x190b45,_0x3f52eb;const _0x351eb7=this[_0x50132d(0x259)]['getFocusedUnit']();if(!_0x351eb7)throw new Error(_0x50132d(0x193));const _0x50f9b6=((_0x3a23eb=this[_0x50132d(0x258)][_0x50132d(0x1d9)](_0xf48c70))!=null?_0x3a23eb:_0x1665a3)+'/'+_0x3bc5e2+_0x50132d(0x2b2)+_0x492625,_0x55e6cf=new URL(window[_0x50132d(0x1e4)]['href']),_0x4266dd={'scriptId':_0x3bc5e2,'runId':(_0x354e49=_0x55e6cf[_0x50132d(0x24c)][_0x50132d(0x2c6)]('runId'))!=null?_0x354e49:'','function':_0x492625,'unitId':_0x351eb7[_0x50132d(0x211)](),'argsOfFunction':JSON[_0x50132d(0x27a)](_0x17f8c5),'invokeId':(_0x190b45=_0x2e79ec[_0x50132d(0x1c5)])!=null?_0x190b45:'','executionId':(_0x3f52eb=_0x2e79ec[_0x50132d(0x2fa)])!=null?_0x3f52eb:''};try{const _0x38b8ab=await this[_0x50132d(0x1ba)][_0x50132d(0x1aa)](_0x50f9b6,{'body':_0x4266dd});return _0x38b8ab['body'][_0x50132d(0x205)]&&_0x38b8ab[_0x50132d(0x2b5)][_0x50132d(0x205)][_0x50132d(0x1bc)]!==Z['OK']?_0x50132d(0x115):_0x38b8ab[_0x50132d(0x2b5)][_0x50132d(0x165)];}catch{return _0x50132d(0x115);}}};dt=Fn([Ae(0x0,_0x327d97),Ae(0x1,_0x3179ca(_0x299f96)),Ae(0x2,_0x3607cf)],dt);const St=0x7530,mt=_0x266cb1(0x12f);class rr extends _0x5a57f7{constructor(){const _0x56de2f=_0x266cb1;super(),_(this,_0x56de2f(0x159),_0x5d3172()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x56de2f(0x196),null),_(this,_0x56de2f(0x26a),new Map()),_(this,_0x56de2f(0x2f0),new Map()),this[_0x56de2f(0x151)]();}[_0x266cb1(0x156)](){const _0x9ba8a3=_0x266cb1;super[_0x9ba8a3(0x156)](),this['_clearOtherTimers']['forEach']((_0x46cd95,_0x432234)=>this[_0x9ba8a3(0x200)](_0x432234)),this[_0x9ba8a3(0x196)]&&window['clearInterval'](this[_0x9ba8a3(0x196)]);}[_0x266cb1(0xe9)](_0x5a85a7){const _0x479b31=_0x266cb1;return this[_0x479b31(0x249)](_0x5a85a7)['pipe'](_0x23072d());}['editingUnit'](_0xea8684){const _0x12a6c2=_0x266cb1;this[_0x12a6c2(0x191)][_0x12a6c2(0x16c)]===0x0&&this[_0x12a6c2(0x120)](),this[_0x12a6c2(0x191)][_0x12a6c2(0xec)](_0xea8684),this[_0x12a6c2(0x2d2)]({'type':0x0,'memberID':this[_0x12a6c2(0x159)],'unitIDs':[_0xea8684],'isForwarded':!0x1});}[_0x266cb1(0x319)](_0x166c02){const _0x3a9546=_0x266cb1;this[_0x3a9546(0x191)][_0x3a9546(0x21b)](_0x166c02),this[_0x3a9546(0x191)][_0x3a9546(0x16c)]===0x0&&this['_heartbeatTimer']&&window[_0x3a9546(0x1fc)](this['_heartbeatTimer']);}['_init'](){const _0x5ef08d=_0x266cb1;this[_0x5ef08d(0x2ed)](_0x4001b9(_0x573346(window,'storage')[_0x5ef08d(0x215)](_0x5ee4ef=>{const _0x6f28b=_0x5ef08d;if(_0x5ee4ef[_0x6f28b(0x1a3)]!==mt||!_0x5ee4ef[_0x6f28b(0x2ef)])return;const _0x8ff780=JSON[_0x6f28b(0x2ab)](_0x5ee4ef[_0x6f28b(0x2ef)]);this[_0x6f28b(0x2aa)](_0x8ff780);}))),window[_0x5ef08d(0x273)](_0x5ef08d(0xfe),()=>this['_send']({'type':0x1,'memberID':this[_0x5ef08d(0x159)],'unitIDs':Array[_0x5ef08d(0x306)](this[_0x5ef08d(0x191)])}));}[_0x266cb1(0x2aa)](_0x15cef9){const _0x124cad=_0x266cb1;switch(_0x15cef9[_0x124cad(0x15a)]){case 0x0:this['_handleJoinEvent'](_0x15cef9);break;case 0x1:this[_0x124cad(0x170)](_0x15cef9);break;case 0x2:this['_handleHeartbeatEvent'](_0x15cef9);break;}}[_0x266cb1(0x2c0)](_0x62817c){const _0x54671f=_0x266cb1,{unitIDs:_0x312264,memberID:_0x5ec760,isForwarded:_0x1e0431}=_0x62817c;_0x312264[_0x54671f(0x253)](_0x1ba764=>{const _0x1d4009=_0x54671f;if(!_0x1e0431&&this[_0x1d4009(0x2b0)]['has'](_0x1ba764)&&this['_ensureSubject'](_0x1ba764)[_0x1d4009(0x1a1)](_0xac2979[_0x1d4009(0x106)]),!this[_0x1d4009(0x2b0)][_0x1d4009(0x276)](_0x1ba764)||!this[_0x1d4009(0x2b0)]['get'](_0x1ba764)['has'](_0x5ec760)){const _0x26bdbf=this[_0x1d4009(0x2b0)][_0x1d4009(0x2c6)](_0x1ba764)||new Set();_0x26bdbf[_0x1d4009(0xec)](_0x5ec760),this[_0x1d4009(0x2b0)]['set'](_0x1ba764,_0x26bdbf),this[_0x1d4009(0x182)](_0x5ec760);}}),_0x1e0431||this['_send']({'type':0x0,'memberID':this[_0x54671f(0x159)],'unitIDs':[...this[_0x54671f(0x191)]],'isForwarded':!0x0});}[_0x266cb1(0x182)](_0x4366bc){const _0x1b1c2a=_0x266cb1;this['_removeClearOtherTimer'](_0x4366bc);const _0x37a092=window[_0x1b1c2a(0x2f5)](()=>{const _0x552d80=_0x1b1c2a;this[_0x552d80(0x2b0)]['forEach'](_0x1bde8f=>{_0x1bde8f['delete'](_0x4366bc);});},St*0x2);this['_clearOtherTimers'][_0x1b1c2a(0x186)](_0x4366bc,_0x37a092);}[_0x266cb1(0x200)](_0x361aeb){const _0x2c1aa5=_0x266cb1;if(this[_0x2c1aa5(0x26a)]['has'](_0x361aeb)){const _0xf14178=this[_0x2c1aa5(0x26a)][_0x2c1aa5(0x2c6)](_0x361aeb);_0xf14178&&window[_0x2c1aa5(0x263)](_0xf14178),this['_clearOtherTimers']['set'](_0x361aeb,null);}}[_0x266cb1(0x170)](_0xaa35d7){const _0x1d500c=_0x266cb1,{memberID:_0x20024c,unitIDs:_0x2da5e1}=_0xaa35d7;_0x2da5e1[_0x1d500c(0x253)](_0x77beca=>{const _0x3764cc=_0x1d500c;var _0x567db6;const _0xefab5e=this['_unitOnClients'][_0x3764cc(0x2c6)](_0x77beca);_0xefab5e&&(_0xefab5e['delete'](_0x20024c),(_0x567db6=this[_0x3764cc(0x249)](_0x77beca))==null||_0x567db6[_0x3764cc(0x1a1)](_0xefab5e[_0x3764cc(0x16c)]===0x0?_0xac2979[_0x3764cc(0x1af)]:_0xac2979[_0x3764cc(0x106)]));}),this['_removeClearOtherTimer'](_0x20024c);}[_0x266cb1(0x237)](_0x136586){const _0x506b1c=_0x266cb1;this[_0x506b1c(0x182)](_0x136586['memberID']);}[_0x266cb1(0x2d2)](_0x749da9){const _0x147342=_0x266cb1;localStorage['setItem'](mt,JSON[_0x147342(0x27a)](_0x749da9));}[_0x266cb1(0x120)](){const _0x42d5f3=_0x266cb1;this[_0x42d5f3(0x196)]=window[_0x42d5f3(0x1b4)](()=>{const _0xdd23f6=_0x42d5f3;this[_0xdd23f6(0x2d2)]({'type':0x2,'memberID':this[_0xdd23f6(0x159)]});},St);}[_0x266cb1(0x249)](_0x4db3f6){const _0x36bc7e=_0x266cb1;return this[_0x36bc7e(0x2f0)]['has'](_0x4db3f6)||this[_0x36bc7e(0x2f0)][_0x36bc7e(0x186)](_0x4db3f6,new _0x501473(_0xac2979[_0x36bc7e(0x1af)])),this[_0x36bc7e(0x2f0)]['get'](_0x4db3f6);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};