@univerjs-pro/collaboration-client-ui 0.10.14-nightly.202511031023 → 0.10.14-nightly.202511070640

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 (49) 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/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/facade.js +1 -1
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +15 -15
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x17237f=_0x63bd;(function(_0x3c7730,_0x16cf1e){const _0x500e56=_0x63bd,_0xdf35bf=_0x3c7730();while(!![]){try{const _0x72dc11=-parseInt(_0x500e56(0x2cb))/0x1+-parseInt(_0x500e56(0x186))/0x2*(-parseInt(_0x500e56(0x165))/0x3)+parseInt(_0x500e56(0x298))/0x4*(parseInt(_0x500e56(0x136))/0x5)+-parseInt(_0x500e56(0x265))/0x6*(parseInt(_0x500e56(0xff))/0x7)+parseInt(_0x500e56(0xf8))/0x8+parseInt(_0x500e56(0x16f))/0x9+-parseInt(_0x500e56(0x23d))/0xa;if(_0x72dc11===_0x16cf1e)break;else _0xdf35bf['push'](_0xdf35bf['shift']());}catch(_0x5bb5d1){_0xdf35bf['push'](_0xdf35bf['shift']());}}}(_0x2d84,0x6dcd9));var Ft=Object['defineProperty'],kt=(_0x1395d1,_0x1b0c40,_0x50df4d)=>_0x1b0c40 in _0x1395d1?Ft(_0x1395d1,_0x1b0c40,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50df4d}):_0x1395d1[_0x1b0c40]=_0x50df4d,l=(_0x14c027,_0x1a3d3c,_0x3b1998)=>kt(_0x14c027,typeof _0x1a3d3c!=_0x17237f(0x1ee)?_0x1a3d3c+'':_0x1a3d3c,_0x3b1998);function _0x2d84(){const _0x820de3=['_scheduleHeartbeat','_scheduleSaving','EMAIL_HAS_BEEN_BOUND','eventID','_checkAndWaitForCalculationPermission','_setupBeforeClosingHandler','parseInt','source','_setupSubUnitSync','CLOSE_ROOM','fill','deepClone','getAncestorScale','syncEditingCollabCursor','unitId','saveImage','uni.network.url-service','unshift','isEditing','JOIN_ROOM_FAILED','collabStatus.offline','Error','APPLY_NON_SEQUENTIAL_REVISION','SNAPSHOT_INVALID_SNAPSHOT','_session','ENTITLE_CHAT_LIMIT_EXCEED','idSuffix','endColumn','backgroundColor','getVpScrollXYInfoByPosToVp','reconnect','_startDocCollabCursor','registerRenderModule','symbol','ONLINE','AWAITING_WITH_PENDING','code','_unitOnClients','startsWith','InsertRowCommandId','ENTITLE_NEED_BILLING_ADDRESS','_createSocketURL','_onRefRangeChange','jiqing.500','send','formula.calculation.started','_clearPolling','stageInfo','HEADER_MENU','LICENSE_MAX_UNITS_EXCEEDED','newValue','_updateURLWithCurrentState','_colorAssignService','transformRemoteChangeset','arc','ENTITLE_REPORT_LIMIT_EXCEED','ENTITLE_DUP_SUBSCRIPTION','univer-mr-2\x20univer-flex\x20univer-text-xl','_getSessionTicket','REDEMPTION_CODE_NOT_STARTED','path','_hasFormulaInDirtyRanges','getMember','M0\x200H16V16H0z','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','collabCursorState$','getMemberID','drawWith','_hover','UPDATE_CURSOR','InsertColCommandId','NOT_COLLAB','MoveRangeCommandId','RemoveColCommandId','releaseFormulaLimitUrl','search','substring','FromArray','COMPLETION_FINISHED','_collaborationController','getCurrentUnitForType','Warning','AUTHORIZE_CODE_ILLEGAL','_commandService','currentColor','_docStateChangeManagerService','result','getTypeOfUnitAdded$','formula.calculation.waiting','enableLocalCache','_doCreateSocket','length','labelPosition','_imageIoService','SNAPSHOT_HAS_BEEN_REMOVED','_localCacheService','SUBMIT_CHANGESET_TIMEOUT','getTypeOfUnitDisposed$','flatMap','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','Unknown\x20user','_maxFormulaLimit','collab-rect-range-','_online','save','_setFormulaLimitStatus','getRenderById','LOGIN_FAILED','children','_sheetSkeletonManagerService','clearInterval','_drawRectRange','12686940UdXUiB','collab-client.tooltip.reconnect','subscribeEvent','REDEMPTION_CODE_HAS_BEEN_CREATED','focused$','_shapes','limitInfo','_status$','_backgroundColor','hovered','createInstance','_memberService','subunit','_initStatusComponent','startRow','WECHAT_HAS_BEEN_BOUND','debug','_transformService','addObject','mask','getCollabCursors$','mutations','m1Prime','subUnitId','currentTheme$','text','_refRangeService','key','_render','OTHER_CLIENTS_EDITING','getCellMatrix','dispose','some','then','totalFormulasToCalculate','collabStatus.synced','registerRefRange','registerComponent','_handleJoinEvent','/run/','262806eEqGis','stringify','REDEMPTION_USER_NOT_ELIGIBLE','LICENSE_EXPORT_SIZE_EXCEEDED','now','RECT','has','add','getformulaLimitStatusUrl','_init','exhaustSavingTask','_hovered','defs','TOO_MANY_REQUESTS','getCollabEntity$','getRangePointData','getParam','_transformHistoryAndStateStack','_docSkeletonManagerService','_initResize','_logService','UniverIcon','RemoveRowCommandId','1em','onLocalMutation','_handleHeartbeatEvent','LOGIN_TOKEN_PROCESSING_FAILED','ENTITLE_CAN_NOT_BUY_LOWER_OTP','DATA_SOURCE_TOO_LARGE','addClipboardHook','clipPath','_draw','currentUsage','clearTimeout','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','runId','_color','_ensureSubject','collab-text-anchor-','_univerInstanceService','white','cursorInfo$','data','textRanges','getItem','YUUMI_SUBSCRIPTION_NOT_FOUND','_scheduleClearOtherTimer','ALREADY_EXISTS','TEXT','from','actions','4CzFGnc','requireSession','displayName','YUUMI_ASYNCIO_CANCELLED','univerjs-icon\x20univerjs-icon-','disposeUnit','CONNECTOR_DATA_TOO_LARGE','_cursors','functionsExecutedState','currentSkeleton$','_selfUnitIDs','url(#$1','startColumn','SUCCESS','_notificationService','values','string','getValue','height','_heartbeatTimer','beginPath','executeCommand','PAYMENT_CHANNEL_NOT_SUPPORT','_beforeCloseService','_updateLocalCursor','session.connection-failed','_name','permission.title','_toggleOffline','saveTaskMap','selection','UNIVER_SHEET','_updateSubUnitFromURLParams','getCellPositionByOffset','APPLY_DUPLICATED','url(#off-line-icon_clip0_910_343)','Failed','history','_hideTimer','lineTo','toRgbString','post','wsSessionTicketUrl','isActive','APPLY_PERMISSION_DENIED','undoState','_initDependencies','_getFormulaLimitStatus','_cursorShapes','disableLocalCache','_urlService','144679nGZRDk','_scene','http://www.w3.org/2000/svg','_refreshCollabCursors','ACTIVE_UNIT_EVENT_CHANNEL','NOT_FOUND','getConfig','error','ERROR_AGAIN','_anchor','[RemoteUniscriptService]:\x20no\x20focused\x20unit','resize','_registerRenderDependencies','params','event$','YUUMI_UNABLE_LOAD_URL','_injector','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','font','INVITE_CODE_ALREADY_BOUND','getUnit','_eventUnsubscribe','_drawAnchor','USER_NOT_INVITED_CODE','_cursorInfo$','onPointerMove$','selections','_removeClearOtherTimer','_disabled','round','unload','on-line-icon','MOBILE_HAS_BEEN_BOUND','evenodd','entries','_taskIds','_startSheetCollabCursor','OTHER_CLIENT_EDITING','INVALID_ARGUMENT','_saveCache','xlink:href','_entityInit$','EMAIL_VERIFY_CODE_MISMATCH','_instanceService','assign','CHANGESET_REVISION_CONFILICT','_themeService','endRow','urlChange$','_handleLeaveEvent','onCommandExecuted','_handleHover','_docTransformSelectionsService','cursorInfo','addEventListener','dispose$','_docTransformStateCacheService','none','fillText','_lastResponseTimestamp','createSocket','attrs','_collabCursorController','_drawTextRange','_unitStatus','PERMISSION_DENIED','div','location','searchParams','set','current','...','getMergeData','black','transformByState','status$','_localeService','toString','_showGuardMessage','CURRENT_STATUS_CANNOT_OPERATE','restore','off-line-icon_clip0_910_343','UNIVER_DOC','_collabSessionService','isArray','REDEMPTION_CODE_FULLY_REDEEMED','USER_IS_ANONYMOUS','activeSheet$','setInterval','loadUnit','_applyCommand','getOwnPropertyDescriptor','setParam','getSheetBySheetId','_document','collab-text-range-','_docTransformIMECacheService','map','_startCalculationLimit','4392376ErifMG','type','OffLineIcon','_initStatusListener','_getMergeRange','getOffsetConfig','_cursor','119UFAWrr','min','YUUMI_NO_CUBOID_FOR_QUESTION','href','getSheetId','sheetId','getCurrent','closePath','_lastPointer','getUnitStatus$','_config','UNRECOGNIZED','_roomMembers$','forEach','setStateCache','getUniverSheetInstance','YUUMI_URL_COL_OUT_OF_RANGE','YUUMI_AI_RUN_FAILED','rgba(255,\x20255,\x20255,\x200.01)','_colorIndex','_range','_onCursorDelete','SOCKET_FAILED','_checkCalculationAvailable','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','pluginName','name','_docClipboardService','collaboration-client.offline-data-not-saved','INVITE_CODE_REQUIRED','tag','pushState','_docSkeleton','setActiveRange','sheetID','_labelPosition','getRelativeToViewportCoord','roomMembers$','disposeWithMe','_transformUndoRedoStack','maxFormulaLimit','fillStyle','_httpService','transformIMECache','ENSURE_SNAPSHOT_EXECUTION','_currentUsage','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','transformStateCache','_getSheetObject','_collabCursorState$','getDocRanges','_entities','next','svg','setShapeProps','2765365XxkKAb','UNDEFINED','_cachedData','START_CALCULATION','_configService','session.will-retry','getFocusedUnit','_revisionService','makeDirty','_renderManagerService','redoState','sessionTicket','hide','collaboration-client-ui.config','row','_pollingInterval','getUnhiddenWorksheets','green.600','size','CONFLICT','/universer-api/license/formula/limit/start','getActiveSheet','unsubscribe','_clearOtherTimers','session.collaboration-timeout','OFFLINE','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_initEntityListener','body','unitID','collaboration.single-unit.warning','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','setAlpha','complete','SYNCED','getCurrentSelections','blue.400','addObjects','_getSaveTimeout','YUUMI_RATE_OVER_LIMIT','LICENSE_DISTRO_REJECTED','_dataLoaderService','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','transform','contains','whenReady','_initEvent','10713kXQTwh','InsertRangeMoveRightCommandId','_docSyncEditingCollabCursorService','AWAITING','permission.content','INTERNAL_ERROR','_toggleOnline','_getScale','width','max','7926282XvHVIJ','yellow.400','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_syncEditingCollabCursorService','unit','push','_saveTaskMap','collaboration.closeRoom','get','find','_onCursorUpdate','INVALID_INVITE_CODE','includes','USERS_LEAVE','_handleEvent','assignAColorForMemberID','REDEMPTION_INVALID_CODE','USER_NOT_FOUND','_context','executionId','getStateCache','subscribe','350xwbjOU','pipe','trim','with','getSkeleton','PY_RUNTIME_SCRIPT_ERROR','REDEMPTION_USER_REDEEM_TIMES_EXCEED','REDEMPTION_CODE_INACTIVE','origin','parse','column','[CollaborationDataLoaderController]','on-line-icon_clip0_910_349','APPLY_REJECT','setItem','onTransformChange$','onMouseMove','YUUMI_CONNECTOR_URL_NOT_FOUND','UNAUTHENTICATED','sessionStatus$','FETCH_MISS','getUndoRedoMutationParamsCache','_id','colorChannel1','getUnitId','_removeCollabCursors','0\x200\x2017\x2016','asObservable','InsertRangeMoveDownCommandId','_getAnchorBounding','setTimeout','triggerDblclick','delete','_send','APPLY_REVISION_CONFILICT','getColorFromTheme','ENTITLE_INSUFFICIENT_QUOTA','_messageService','measureText','replaceState','DeleteRangeMoveUpCommandId','_textBubble','stage','m2Prime','color','_collaborationUIEventService','_anchorDot','_initCommandExecutedListener','init','purple.300','/universer-api/license/formula/limit/done','imageSourceType','_assignedColors','range','bottom','replace','_uiPartsService','show','top','roomMembers','_updateCollabCursors','MUTATION','findNodePositionByCharIndex','updateOfflineData','doc.mutation.rich-text-editing','NO_OTHER_CLIENTS_EDITING','transformMutation','#FFF','removeParam','_releaseCalculationLimit','_localStorageService'];_0x2d84=function(){return _0x820de3;};return _0x2d84();}import{jsx as _0x422b1e,jsxs as _0x32855a}from'react/jsx-runtime';import{CollaborationStatus as _0x1e7576,CollaborationSessionService as _0x4fd6b5,CollaborationController as _0x1d2099,DataLoaderService as _0x801d3b,MemberService as _0x5dc238,SessionStatus as _0x3b545a,ILocalCacheService as _0x3e5102,CollaborationUIEventService as _0x499b46,CollaborationUIEventId as _0x1eaeeb,DocCollaborationEntity as _0x185dc5,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x458d81,getLocalCacheKey as _0x931e60,LOCAL_CACHE_INTERVAL as _0x1aaf25,LOCAL_CACHE_INTERVAL_KEY as _0x4fe421,UniverCollaborationClientPlugin as _0x99db96,CollaborationSocketService as _0x3511e9,DEFAULT_WS_SESSION_TICKET_URL as _0x255342,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5deeec,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x35bd6b,UnitStatus as _0x8aa75e}from'@univerjs-pro/collaboration-client';import{LocaleService as _0xc8cfd9,IUniverInstanceService as _0x160283,Inject as _0x5c536b,Injector as _0xd42208,Disposable as _0x44dae6,createIdentifier as _0x976c31,ILogService as _0x226e32,ICommandService as _0x3a5a9b,Optional as _0x37d03b,RxDisposable as _0x5c4b8f,Workbook as _0x3e92a7,DOC_RANGE_TYPE as _0x3483a9,debounce as _0x1586d4,Rectangle as _0x280cdc,DisposableCollection as _0x179b20,toDisposable as _0x3a001f,UniverInstanceType as _0xa8e2c5,generateRandomId as _0x2020d1,COLORS as _0x5bf6fe,ColorKit as _0x226f1b,ThemeService as _0x29a4c5,fromEventSubject as _0x14a5ed,Tools as _0x460d6c,CommandType as _0x1e464c,IConfigService as _0x1f4c04,CanceledError as _0x246706,isFormulaString as _0x5c37f2,isFormulaId as _0x17189a,ILocalStorageService as _0x28e40d,DependentOn as _0x29abdb,Plugin as _0xb645e,merge as _0x506591,registerDependencies as _0x1fdbd5,mergeOverrideWithDependencies as _0x13ba52,touchDependencies as _0x3de715}from'@univerjs/core';import{useObservable as _0x6ac582,useDependency as _0x23a11f,IUIPartsService as _0x1958da,BuiltInUIPart as _0x57f724,connectInjector as _0x516e19,IBeforeCloseService as _0x11c6b2,IMessageService as _0x1dc4aa,INotificationService as _0x27ed68}from'@univerjs/ui';import{BehaviorSubject as _0xacfd1,switchMap as _0x12df15,of as _0x5141fd,takeUntil as _0x4735a7,debounceTime as _0x469507,Subject as _0x170e43,filter as _0x48ed13,merge as _0x28e2ac,combineLatest as _0x4b3685,fromEvent as _0x4f22be,shareReplay as _0x26ee1c,mapTo as _0x5c32a9,distinctUntilChanged as _0x2276ed}from'rxjs';import{Tooltip as _0x563c4b,clsx as _0x1f8d54,MessageType as _0x1d2d9e}from'@univerjs/design';import{useRef as _0x5ca5dc,createElement as _0x20aa49,forwardRef as _0x1f5875,useCallback as _0x52e975}from'react';import{IRemoteInstanceService as _0xff9e86}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x25d5e2,RefRangeService as _0x3f48cf,SetSelectionsOperation as _0x64ddff,SheetsSelectionsService as _0x5a77b3,EffectRefRangId as _0x28d64e,handleIRemoveRow as _0x467cb6,handleIRemoveCol as _0x466efa,handleMoveRange as _0x5d5685,handleInsertRow as _0x29de3f,handleInsertRangeMoveRight as _0x58c6ed,handleInsertRangeMoveDown as _0x2c8ef1,handleInsertCol as _0x1a440b,handleDeleteRangeMoveUp as _0x2ddc50,handleDeleteRangeMoveLeft as _0x3f7515,runRefRangeMutations as _0x5f214f}from'@univerjs/sheets';import{Shape as _0x451b05,Rect as _0x32d903,getColor as _0x38cd79,RegularPolygon as _0x5a827d,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x23a9bd,Vector2 as _0x3d68d3,SHEET_VIEWPORT_KEY as _0x119346,IRenderManagerService as _0x4043b7}from'@univerjs/engine-render';import{HTTPService as _0x392506,ISocketService as _0x5a231a,WebSocketService as _0x40a554}from'@univerjs/network';import{IDocClipboardService as _0x255ff1,NodePositionConvertToCursor as _0x4d2c66,NodePositionConvertToRectRange as _0x1063d6,TEXT_RANGE_LAYER_INDEX as _0x165d4a,SetDocZoomRatioOperation as _0x2c8773,DocIMEInputManagerService as _0x978053,DocStateChangeManagerService as _0x2a227d}from'@univerjs/docs-ui';import{IImageIoService as _0x63ed28}from'@univerjs/drawing';import{ITransformService as _0x44d9e1,CollaborationEvent as _0x2ec7ba,isTransformMutationFailure as _0x36c0af,isTransformMutationsWithChangesetSuccess as _0x3df9c9,RevisionService as _0xa14ded,ISnapshotServerService as _0x56fa8c}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x2123eb,RichTextEditingMutation as _0x503707,DocSelectionManagerService as _0x2ca068,DocSkeletonManagerService as _0x407568}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x2d599b,serializeRangeWithSheet as _0x6fafa6,FormulaExecuteStageType as _0x58cca8,FormulaExecutedStateType as _0x13c937,SetFormulaCalculationStartMutation as _0x34f99e,SetFormulaCalculationNotificationMutation as _0x167251}from'@univerjs/engine-formula';import{map as _0x23f034,filter as _0x2e48d2,throttleTime as _0x1a4f43,takeUntil as _0xee0702,switchMap as _0x544b78}from'rxjs/operators';import{SheetSkeletonManagerService as _0x32b8e9,getCoordByCell as _0x30a09c,getSheetObject as _0x3eb96c}from'@univerjs/sheets-ui';function Ve({ref:_0x2c541b,..._0x54cf1a}){const _0x4c0670=_0x17237f,{icon:_0x28f0d7,id:_0x1265ff,className:_0x3433cd,extend:_0x2ef346,..._0x416710}=_0x54cf1a,_0x509c37=(_0x4c0670(0x29c)+_0x1265ff+'\x20'+(_0x3433cd||''))[_0x4c0670(0x188)](),_0x1bf5df=_0x5ca5dc('_'+gi());return Ut(_0x28f0d7,''+_0x1265ff,{'defIds':_0x28f0d7['defIds'],'idSuffix':_0x1bf5df[_0x4c0670(0xdb)]},{'ref':_0x2c541b,'className':_0x509c37,..._0x416710},_0x2ef346);}function Ut(_0x3908ff,_0x293f7a,_0x5cc2e6,_0x533c90,_0xa2877f){const _0x12b243=_0x17237f;return _0x20aa49(_0x3908ff[_0x12b243(0x11d)],{'key':_0x293f7a,...mi(_0x3908ff,_0x5cc2e6,_0xa2877f),..._0x533c90},(fi(_0x3908ff,_0x5cc2e6)['children']||[])['map']((_0x5d31b6,_0x59d604)=>Ut(_0x5d31b6,_0x293f7a+'-'+_0x3908ff[_0x12b243(0x11d)]+'-'+_0x59d604,_0x5cc2e6,void 0x0,_0xa2877f)));}function mi(_0x34cf1d,_0x24789a,_0x49f438){const _0x259ba2=_0x17237f,_0x28012f={..._0x34cf1d[_0x259ba2(0xd2)]};_0x49f438!=null&&_0x49f438['colorChannel1']&&_0x28012f[_0x259ba2(0x1d7)]===_0x259ba2(0x19d)&&(_0x28012f[_0x259ba2(0x1d7)]=_0x49f438['colorChannel1']),_0x34cf1d['tag']===_0x259ba2(0x250)&&_0x28012f['id']&&(_0x28012f['id']=_0x28012f['id']+_0x24789a['idSuffix']),Object[_0x259ba2(0x2ed)](_0x28012f)['forEach'](([_0x696397,_0x48e7ee])=>{const _0x5bbf95=_0x259ba2;_0x696397===_0x5bbf95(0x250)&&typeof _0x48e7ee=='string'&&(_0x28012f[_0x696397]=_0x48e7ee[_0x5bbf95(0x1bd)](/url\(#(.*)\)/,_0x5bbf95(0x2a3)+_0x24789a[_0x5bbf95(0x1e7)]+')'));});const {defIds:_0x5c02ce}=_0x24789a;return!_0x5c02ce||_0x5c02ce[_0x259ba2(0x228)]===0x0||(_0x34cf1d[_0x259ba2(0x11d)]==='use'&&_0x28012f[_0x259ba2(0x2f3)]&&(_0x28012f['xlink:href']=_0x28012f[_0x259ba2(0x2f3)]+_0x24789a[_0x259ba2(0x1e7)]),Object[_0x259ba2(0x2ed)](_0x28012f)[_0x259ba2(0x10c)](([_0x3553b9,_0x403a9e])=>{const _0x1fab34=_0x259ba2;typeof _0x403a9e==_0x1fab34(0x2a8)&&(_0x28012f[_0x3553b9]=_0x403a9e[_0x1fab34(0x1bd)](/url\(#(.*)\)/,'url(#$1'+_0x24789a[_0x1fab34(0x1e7)]+')'));})),_0x28012f;}function fi(_0x5ecfa3,_0x577cc7){const _0x5519e7=_0x17237f;var _0x4b4570;const {defIds:_0x106387}=_0x577cc7;return!_0x106387||_0x106387[_0x5519e7(0x228)]===0x0?_0x5ecfa3:_0x5ecfa3[_0x5519e7(0x11d)]===_0x5519e7(0x271)&&((_0x4b4570=_0x5ecfa3[_0x5519e7(0x239)])!=null&&_0x4b4570['length'])?{..._0x5ecfa3,'children':_0x5ecfa3[_0x5519e7(0x239)][_0x5519e7(0xf6)](_0x341378=>typeof _0x341378[_0x5519e7(0xd2)]['id']=='string'&&_0x106387&&_0x106387['includes'](_0x341378[_0x5519e7(0xd2)]['id'])?{..._0x341378,'attrs':{..._0x341378[_0x5519e7(0xd2)],'id':_0x341378[_0x5519e7(0xd2)]['id']+_0x577cc7[_0x5519e7(0x1e7)]}}:_0x341378)}:_0x5ecfa3;}function gi(){const _0x3aed76=_0x17237f;return Math['random']()[_0x3aed76(0xe2)](0x24)[_0x3aed76(0x219)](0x2,0x8);}Ve[_0x17237f(0x29a)]=_0x17237f(0x27a);const vi={'tag':_0x17237f(0x134),'attrs':{'xmlns':_0x17237f(0x2cd),'fill':_0x17237f(0xce),'viewBox':'0\x200\x2016\x2016','width':_0x17237f(0x27c),'height':_0x17237f(0x27c)},'children':[{'tag':'g','attrs':{'clipPath':_0x17237f(0x2bb)},'children':[{'tag':_0x17237f(0x209),'attrs':{'stroke':'currentColor','d':_0x17237f(0x2dc),'strokeLinecap':'round','strokeLinejoin':_0x17237f(0x2e8),'strokeWidth':1.2}}]},{'tag':_0x17237f(0x271),'attrs':{},'children':[{'tag':_0x17237f(0x283),'attrs':{'id':_0x17237f(0xe6)},'children':[{'tag':_0x17237f(0x209),'attrs':{'fill':_0x17237f(0x28d),'d':_0x17237f(0x20c)}}]}]}],'defIds':[_0x17237f(0xe6)]},Lt=_0x1f5875(function(_0x4d1035,_0x38fae5){const _0x2e1d15=_0x17237f;return _0x20aa49(Ve,Object[_0x2e1d15(0x2f7)]({},_0x4d1035,{'id':'off-line-icon','ref':_0x38fae5,'icon':vi}));});Lt[_0x17237f(0x29a)]=_0x17237f(0xfa);const Ei={'tag':_0x17237f(0x134),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x17237f(0xce),'viewBox':_0x17237f(0x1a0),'width':_0x17237f(0x27c),'height':_0x17237f(0x27c)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x17237f(0x209),'attrs':{'stroke':_0x17237f(0x221),'d':_0x17237f(0x12d),'strokeLinecap':_0x17237f(0x2e8),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x17237f(0x271),'attrs':{},'children':[{'tag':_0x17237f(0x283),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x17237f(0x209),'attrs':{'fill':'white','d':_0x17237f(0x20c),'transform':'translate(.97)'}}]}]}],'defIds':[_0x17237f(0x192)]},Mt=_0x1f5875(function(_0x412efd,_0xb8889e){const _0x2f5ffd=_0x17237f;return _0x20aa49(Ve,Object[_0x2f5ffd(0x2f7)]({},_0x412efd,{'id':_0x2f5ffd(0x2ea),'ref':_0xb8889e,'icon':Ei}));});Mt[_0x17237f(0x29a)]='OnLineIcon';function pi(_0x3da8a3){const _0x2d10e5=_0x17237f;switch(_0x3da8a3){case _0x1e7576[_0x2d10e5(0x14f)]:return _0x2d10e5(0x1e1);case _0x1e7576[_0x2d10e5(0x149)]:return'collabStatus.conflict';case _0x1e7576[_0x2d10e5(0x19a)]:return'collabStatus.fetchMiss';case _0x1e7576[_0x2d10e5(0x214)]:return'collabStatus.notCollab';case _0x1e7576[_0x2d10e5(0x168)]:case _0x1e7576[_0x2d10e5(0x1f0)]:return'collabStatus.syncing';case _0x1e7576[_0x2d10e5(0x158)]:case _0x1e7576['PENDING']:return _0x2d10e5(0x260);}}function Oi(_0x2b6135){const _0x5c936d=_0x17237f,{status$:_0x40097c}=_0x2b6135,_0x127cab=_0x6ac582(_0x40097c,_0x1e7576[_0x5c936d(0x214)]),_0x3a097d=_0x23a11f(_0xc8cfd9),_0x5adfe9=_0x23a11f(_0x4fd6b5),_0x4d636c=_0x127cab!==_0x1e7576[_0x5c936d(0x14f)],_0x33bc5e=_0x3a097d['t'](pi(_0x127cab)),_0x5374f3=_0x4d636c?_0x422b1e(Mt,{}):_0x422b1e(Lt,{}),_0x5a11a8=_0x52e975(()=>{const _0x490413=_0x5c936d;_0x4d636c||_0x5adfe9[_0x490413(0x1eb)]();},[_0x4d636c,_0x5adfe9]);function _0xa4a86(){const _0x410c39=_0x5c936d;return _0x32855a(_0x410c39(0xd7),{'className':'univer-flex\x20univer-items-center','onClick':_0x5a11a8,'children':[_0x422b1e(_0x410c39(0xd7),{'className':_0x1f8d54(_0x410c39(0x206),{'univer-text-green-500':_0x4d636c,'univer-text-red-500':!_0x4d636c}),'children':_0x5374f3}),_0x422b1e('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x33bc5e})]});}return _0x4d636c?_0xa4a86():_0x422b1e(_0x563c4b,{'title':_0x3a097d['t'](_0x5c936d(0x23e)),'children':_0xa4a86()});}var Ti=Object[_0x17237f(0xf0)],Ci=(_0x4dba65,_0x47abea,_0x12d8f1,_0x53cb3c)=>{const _0x328d22=_0x17237f;for(var _0x5a82eb=_0x53cb3c>0x1?void 0x0:_0x53cb3c?Ti(_0x47abea,_0x12d8f1):_0x47abea,_0x2b5197=_0x4dba65[_0x328d22(0x228)]-0x1,_0x1a7f60;_0x2b5197>=0x0;_0x2b5197--)(_0x1a7f60=_0x4dba65[_0x2b5197])&&(_0x5a82eb=_0x1a7f60(_0x5a82eb)||_0x5a82eb);return _0x5a82eb;},se=(_0x2c017e,_0x4f7cfd)=>(_0x1f18f8,_0x3b61bc)=>_0x4f7cfd(_0x1f18f8,_0x3b61bc,_0x2c017e);let oe=class extends _0x44dae6{constructor(_0x1e0833,_0x1830cf,_0x1c2ea8,_0x39191a){const _0x1f3cfb=_0x17237f;super(),l(this,_0x1f3cfb(0x244),new _0xacfd1(_0x1e7576[_0x1f3cfb(0x214)])),(this[_0x1f3cfb(0x28c)]=_0x1e0833,this[_0x1f3cfb(0x2db)]=_0x1830cf,this[_0x1f3cfb(0x21c)]=_0x1c2ea8,this[_0x1f3cfb(0x1be)]=_0x39191a,this['_initStatusComponent'](),this[_0x1f3cfb(0xfb)]());}['_initStatusListener'](){const _0x9c98c5=_0x17237f;this['disposeWithMe'](this[_0x9c98c5(0x28c)][_0x9c98c5(0x241)][_0x9c98c5(0x187)](_0x12df15(()=>{const _0x41e289=_0x9c98c5,_0x18a26b=this[_0x41e289(0x28c)]['getFocusedUnit']();return _0x18a26b?this[_0x41e289(0x21c)][_0x41e289(0x273)](_0x18a26b[_0x41e289(0x19e)]()):_0x5141fd(null);}),_0x12df15(_0x11c3d5=>_0x11c3d5?_0x11c3d5[_0x9c98c5(0xe0)]:_0x5141fd(_0x1e7576[_0x9c98c5(0x214)])))[_0x9c98c5(0x185)](_0x33aa0b=>{const _0xae503f=_0x9c98c5;this[_0xae503f(0x244)][_0xae503f(0x133)](_0x33aa0b);}));}[_0x17237f(0x24a)](){const _0x33a356=_0x17237f;this[_0x33a356(0x125)](this[_0x33a356(0x1be)][_0x33a356(0x262)](_0x57f724[_0x33a356(0x1fd)],()=>_0x516e19(Ri({'status$':this[_0x33a356(0x244)]['asObservable']()}),this['_injector'])));}};oe=Ci([se(0x0,_0x160283),se(0x1,_0x5c536b(_0xd42208)),se(0x2,_0x5c536b(_0x1d2099)),se(0x3,_0x1958da)],oe);function Ri(_0x48ac39){const {status$:_0x48fa53}=_0x48ac39;return function(){return _0x422b1e(Oi,{'status$':_0x48fa53});};}const At=_0x976c31(_0x17237f(0x1dd));var Di=Object[_0x17237f(0xf0)],Ni=(_0x18b886,_0x2a77d4,_0x1fdec3,_0x39d13f)=>{const _0x471a44=_0x17237f;for(var _0x4958dc=_0x39d13f>0x1?void 0x0:_0x39d13f?Di(_0x2a77d4,_0x1fdec3):_0x2a77d4,_0x4a8f7e=_0x18b886[_0x471a44(0x228)]-0x1,_0x1ab87e;_0x4a8f7e>=0x0;_0x4a8f7e--)(_0x1ab87e=_0x18b886[_0x4a8f7e])&&(_0x4958dc=_0x1ab87e(_0x4958dc)||_0x4958dc);return _0x4958dc;},K=(_0x233464,_0x2bc553)=>(_0x78da3d,_0x491fb1)=>_0x2bc553(_0x78da3d,_0x491fb1,_0x233464);let ae=class extends _0x5c4b8f{constructor(_0x425b66,_0x2e9045,_0xae7141,_0x171f23,_0x3fe759){const _0x1ebabc=_0x17237f;super(),this[_0x1ebabc(0x2ca)]=_0x425b66,this[_0x1ebabc(0x279)]=_0x2e9045,this[_0x1ebabc(0x220)]=_0xae7141,this[_0x1ebabc(0x15f)]=_0x171f23,_0x3fe759?_0x3fe759==null||_0x3fe759[_0x1ebabc(0x163)]()[_0x1ebabc(0x25e)](()=>this[_0x1ebabc(0x26e)]()):(this[_0x1ebabc(0x279)][_0x1ebabc(0x24d)](_0x1ebabc(0x191),_0x1ebabc(0x20d)),this['_init']());}async[_0x17237f(0x26e)](){const _0x5ed6f6=_0x17237f,_0x48f6bd=this[_0x5ed6f6(0x2ca)][_0x5ed6f6(0x275)](_0x5ed6f6(0x174)),_0x48ac8f=this[_0x5ed6f6(0x2ca)][_0x5ed6f6(0x275)]('type'),_0x212dea=this[_0x5ed6f6(0x2ca)][_0x5ed6f6(0x275)]('subunit');if(!_0x48f6bd||!_0x48ac8f){this['_logService']['debug'](_0x5ed6f6(0x191),_0x5ed6f6(0x230));return;}const _0x47fc60=await this[_0x5ed6f6(0x15f)][_0x5ed6f6(0xee)](_0x48f6bd,Number(_0x48ac8f),_0x212dea);_0x47fc60&&_0x47fc60 instanceof _0x3e92a7&&this[_0x5ed6f6(0x1d5)](_0x47fc60);}async[_0x17237f(0x1d5)](_0x22f2f0){const _0x28ff8a=_0x17237f;await this[_0x28ff8a(0x2b8)](_0x22f2f0),_0x22f2f0[_0x28ff8a(0xec)]['pipe'](_0x4735a7(this[_0x28ff8a(0xcc)]))[_0x28ff8a(0x185)](_0x133dff=>{const _0x1fdae7=_0x28ff8a;_0x133dff&&this[_0x1fdae7(0x200)](_0x133dff);}),this[_0x28ff8a(0x2ca)][_0x28ff8a(0xc5)][_0x28ff8a(0x187)](_0x4735a7(this['dispose$']))[_0x28ff8a(0x185)](()=>this[_0x28ff8a(0x2b8)](_0x22f2f0));}[_0x17237f(0x200)](_0x47fbf0,_0x3e0ce2=!0x1){const _0x1d11f0=_0x17237f,_0x1a8290=this[_0x1d11f0(0x2ca)][_0x1d11f0(0x275)](_0x1d11f0(0x249));_0x47fbf0[_0x1d11f0(0x103)]()!==_0x1a8290&&this[_0x1d11f0(0x2ca)][_0x1d11f0(0xf1)](_0x1d11f0(0x249),_0x47fbf0[_0x1d11f0(0x103)](),_0x3e0ce2);}async['_updateSubUnitFromURLParams'](_0x8fd6f9){const _0x591ba7=_0x17237f;var _0xc623d2;const _0x3fed12=this[_0x591ba7(0x2ca)]['getParam'](_0x591ba7(0x249));if(!_0x3fed12||!_0x8fd6f9['getSheetBySheetId'](_0x3fed12)){const _0x56d2f2=_0x8fd6f9[_0x591ba7(0x146)]()[0x0],_0x2d292a=_0x8fd6f9[_0x591ba7(0xf2)](_0x56d2f2);if(!_0x2d292a)return;this[_0x591ba7(0x200)](_0x2d292a,!0x0),await this[_0x591ba7(0x220)][_0x591ba7(0x2ad)](_0x25d5e2['id'],{'unitId':_0x8fd6f9[_0x591ba7(0x19e)](),'subUnitId':_0x56d2f2});return;}((_0xc623d2=_0x8fd6f9[_0x591ba7(0x14b)]())==null?void 0x0:_0xc623d2['getSheetId']())!==_0x3fed12&&await this[_0x591ba7(0x220)][_0x591ba7(0x2ad)](_0x25d5e2['id'],{'unitId':_0x8fd6f9[_0x591ba7(0x19e)](),'subUnitId':_0x3fed12});}};ae=Ni([K(0x0,At),K(0x1,_0x226e32),K(0x2,_0x3a5a9b),K(0x3,_0x5c536b(_0x801d3b)),K(0x4,_0x37d03b(_0xff9e86))],ae);var bi=Object[_0x17237f(0xf0)],Ui=(_0x1fd807,_0x353996,_0x1e0df9,_0x2e85ed)=>{for(var _0x2aa837=_0x2e85ed>0x1?void 0x0:_0x2e85ed?bi(_0x353996,_0x1e0df9):_0x353996,_0x1202ab=_0x1fd807['length']-0x1,_0x10a1c1;_0x1202ab>=0x0;_0x1202ab--)(_0x10a1c1=_0x1fd807[_0x1202ab])&&(_0x2aa837=_0x10a1c1(_0x2aa837)||_0x2aa837);return _0x2aa837;},tt=(_0x5ba2d7,_0x524f50)=>(_0x471402,_0x2a5989)=>_0x524f50(_0x471402,_0x2a5989,_0x5ba2d7);let Ae=class extends _0x5c4b8f{constructor(_0x41dff2,_0xe0106b){const _0x3c9e59=_0x17237f;super(),this[_0x3c9e59(0x11a)]=_0x41dff2,this[_0x3c9e59(0x22a)]=_0xe0106b,this[_0x3c9e59(0x26e)]();}[_0x17237f(0x26e)](){const _0x31ea28=_0x17237f,_0x42ff16=this;this[_0x31ea28(0x125)](this[_0x31ea28(0x11a)][_0x31ea28(0x282)]({'onBeforePasteImage':async _0x12184f=>{const _0x200c67=_0x31ea28,_0x53d15d=await _0x42ff16['_imageIoService'][_0x200c67(0x1dc)](_0x12184f);return _0x53d15d?{'source':_0x53d15d[_0x200c67(0x1d4)],'imageSourceType':_0x53d15d[_0x200c67(0x1b9)]}:null;}}));}};Ae=Ui([tt(0x0,_0x255ff1),tt(0x1,_0x63ed28)],Ae);const st=[_0x17237f(0x1b7),_0x17237f(0x1f8),_0x17237f(0x147),'red.300',_0x17237f(0x15a),_0x17237f(0x170)];class je extends _0x44dae6{constructor(){const _0x38eb8a=_0x17237f;super(...arguments),l(this,_0x38eb8a(0x1ba),new Map()),l(this,'_colorIndex',0x0);}[_0x17237f(0x17f)](_0x551016){const _0x458adb=_0x17237f;if(this[_0x458adb(0x1ba)][_0x458adb(0x26b)](_0x551016))return this[_0x458adb(0x1ba)][_0x458adb(0x178)](_0x551016);const _0x34be4f=st[this[_0x458adb(0x112)]];return this[_0x458adb(0x112)]=(this[_0x458adb(0x112)]+0x1)%st[_0x458adb(0x228)],this[_0x458adb(0x1ba)][_0x458adb(0xda)](_0x551016,_0x34be4f),_0x34be4f;}}function Pt(_0x3cdf51){const _0x5a0f77=_0x17237f;let _0x4ed8c6='';for(const _0x3bcd63 of _0x3cdf51){const {startOffset:_0x3d84f6,endOffset:_0x148e45,isActive:_0x24d358,rangeType:_0x11192f,segmentId:_0x2cd014,segmentPage:_0x14e814}=_0x3bcd63;_0x4ed8c6[_0x5a0f77(0x228)]&&(_0x4ed8c6+=','),_0x4ed8c6+=_0x3d84f6+':'+_0x148e45+':'+(_0x24d358?'1':'0')+':'+_0x11192f+':'+_0x2cd014+':'+_0x14e814;}return _0x4ed8c6;}function Li(_0x542878){const _0x7c1a7e=_0x17237f,_0x41f53a=_0x542878['split'](','),_0x23673a=[];for(const _0x44873a of _0x41f53a){const [_0x179915,_0x42c1a2,_0x5aeebe,_0x282ecc,_0x3d5a33,_0x525d90]=_0x44873a['split'](':');_0x23673a['push']({'startOffset':Number(_0x179915),'endOffset':Number(_0x42c1a2),'collapsed':_0x179915===_0x42c1a2,'isActive':_0x5aeebe==='1','rangeType':_0x282ecc===_0x3483a9[_0x7c1a7e(0x295)]?_0x3483a9['TEXT']:_0x3483a9[_0x7c1a7e(0x26a)],'segmentId':typeof _0x3d5a33=='string'?String(_0x3d5a33):'','segmentPage':Number(_0x525d90!=null?_0x525d90:-0x1)});}return _0x23673a[_0x7c1a7e(0x25d)](_0x45c4cc=>_0x45c4cc[_0x7c1a7e(0x2c3)])||(_0x23673a[0x0][_0x7c1a7e(0x2c3)]=!0x0),_0x23673a;}class Xe extends _0x5c4b8f{constructor(){const _0x22e402=_0x17237f;super(...arguments),l(this,'_collabCursorState$',new _0xacfd1(null)),l(this,_0x22e402(0x20e),this[_0x22e402(0x130)][_0x22e402(0x1a1)]());}[_0x17237f(0x1da)](_0x1649c6){const _0x24beca=_0x17237f,{unitID:_0x1608a7,memberID:_0x5a96ad,textRanges:_0x2181e8}=_0x1649c6,_0x371bbf=Pt(_0x2181e8);if(_0x371bbf==='')return;const _0x3a081a={'unitID':_0x1608a7,'memberID':_0x5a96ad,'selection':_0x371bbf};this[_0x24beca(0x130)][_0x24beca(0x133)](_0x3a081a);}}var Mi=Object[_0x17237f(0xf0)],Ai=(_0x3d0025,_0x4c4876,_0x498c01,_0x49eb15)=>{for(var _0x2c2216=_0x49eb15>0x1?void 0x0:_0x49eb15?Mi(_0x4c4876,_0x498c01):_0x4c4876,_0x5de033=_0x3d0025['length']-0x1,_0x1ebd9a;_0x5de033>=0x0;_0x5de033--)(_0x1ebd9a=_0x3d0025[_0x5de033])&&(_0x2c2216=_0x1ebd9a(_0x2c2216)||_0x2c2216);return _0x2c2216;},A=(_0x5ee808,_0x3bf816)=>(_0x386b75,_0x167e16)=>_0x3bf816(_0x386b75,_0x167e16,_0x5ee808);const Pi=0x12c,wi=0x64;let Pe=class extends _0x5c4b8f{constructor(_0x91623f,_0x12ddab,_0x2a3b56,_0x3ef7a2,_0x354a5e,_0x406d22,_0x4cabf9,_0x325b85,_0x324714){const _0x4558=_0x17237f;super(),l(this,'_online',!0x1),l(this,'_init',!0x1),l(this,'_cursorInfo$',new _0xacfd1(new Map())),l(this,_0x4558(0x28e),this['_cursorInfo$'][_0x4558(0x1a1)]()),l(this,_0x4558(0x10b),new _0xacfd1([])),l(this,_0x4558(0x124),this[_0x4558(0x10b)][_0x4558(0x187)](_0x469507(Pi))),l(this,_0x4558(0x2b0),_0x1586d4(_0x20866a=>{const _0x250472=_0x4558,_0x25c823={'eventID':_0x2ec7ba[_0x250472(0x212)],'data':{'unitID':this['unitID'],'memberID':this[_0x250472(0x1e5)][_0x250472(0x20f)](),'selection':Pt(_0x20866a)}};this[_0x250472(0x1e5)][_0x250472(0x1f9)](_0x25c823,this[_0x250472(0x153)]);},wi)),(this[_0x4558(0x153)]=_0x91623f,this[_0x4558(0x1e5)]=_0x12ddab,this[_0x4558(0x2db)]=_0x2a3b56,this[_0x4558(0x201)]=_0x3ef7a2,this['_memberService']=_0x354a5e,this['_syncEditingCollabCursorService']=_0x406d22,this[_0x4558(0x24e)]=_0x4cabf9,this[_0x4558(0x28c)]=_0x325b85,this[_0x4558(0x220)]=_0x324714);}get[_0x17237f(0xca)](){const _0x192ce6=_0x17237f;return this[_0x192ce6(0x2e3)][_0x192ce6(0x2a9)]();}get[_0x17237f(0x1c1)](){return this['_roomMembers$']['getValue']();}[_0x17237f(0x25c)](){const _0x13a56e=_0x17237f;super[_0x13a56e(0x25c)](),this[_0x13a56e(0x2e3)]['next'](new Map()),this[_0x13a56e(0x2e3)][_0x13a56e(0x157)](),this[_0x13a56e(0x10b)][_0x13a56e(0x133)]([]),this[_0x13a56e(0x10b)][_0x13a56e(0x157)]();}[_0x17237f(0x1b6)](){const _0x466ced=_0x17237f;this[_0x466ced(0x26e)]||(this[_0x466ced(0x26e)]=!0x0,this[_0x466ced(0x1e5)]['sessionStatus$'][_0x466ced(0x187)](_0x4735a7(this[_0x466ced(0xcc)]))['subscribe'](_0x173478=>{const _0x51c82b=_0x466ced;_0x173478===_0x3b545a[_0x51c82b(0x1ef)]?this[_0x51c82b(0x16b)]():this[_0x51c82b(0x2b4)]();}),this[_0x466ced(0x1e5)][_0x466ced(0x2d9)]['pipe'](_0x4735a7(this[_0x466ced(0xcc)]))[_0x466ced(0x185)](_0x18ac22=>{const _0x199c37=_0x466ced,_0x32d00d=_0x18ac22[_0x199c37(0x1d0)];_0x32d00d===_0x2ec7ba[_0x199c37(0x212)]&&this[_0x199c37(0x17a)](_0x18ac22),_0x32d00d===_0x2ec7ba[_0x199c37(0x17d)]&&this[_0x199c37(0x114)](_0x18ac22);}),this[_0x466ced(0x125)](this[_0x466ced(0x220)][_0x466ced(0xc7)](_0x2fe3c3=>{const _0x3a0239=_0x466ced,_0x10cfa3=_0x2fe3c3[_0x3a0239(0x2d8)];_0x10cfa3!=null&&this['_online']&&_0x2fe3c3['id']===_0x2123eb['id']&&_0x10cfa3[_0x3a0239(0x1db)]===this[_0x3a0239(0x153)]&&_0x10cfa3[_0x3a0239(0x1df)]===!0x1&&_0x10cfa3['ranges'][_0x3a0239(0x228)]>0x0&&this['_updateLocalCursor'](_0x10cfa3['ranges']);})),this[_0x466ced(0x173)]['collabCursorState$'][_0x466ced(0x187)](_0x4735a7(this[_0x466ced(0xcc)]))[_0x466ced(0x185)](_0x3f01a3=>{const _0x1f1385=_0x466ced;if((_0x3f01a3==null?void 0x0:_0x3f01a3[_0x1f1385(0x153)])!==this[_0x1f1385(0x153)])return;const _0x5be546={'eventID':_0x2ec7ba['UPDATE_CURSOR'],'data':_0x3f01a3};this[_0x1f1385(0x17a)](_0x5be546);}),this[_0x466ced(0x125)](this[_0x466ced(0x220)][_0x466ced(0xc7)](_0x31406d=>{const _0x5557c7=_0x466ced;if(_0x31406d[_0x5557c7(0x2d8)]==null)return;const _0x53e379=_0x31406d['params'];if(_0x31406d['id']!==_0x503707['id']||_0x53e379[_0x5557c7(0x1db)]!==this[_0x5557c7(0x153)])return;const _0x4c3639={'id':'doc.mutation.rich-text-editing','params':_0x53e379},_0x117015=this[_0x5557c7(0xca)];for(const [_0x5260eb,_0x339b24]of _0x117015){const _0x3d35aa={'id':_0x5557c7(0x1c6),'params':{'unitId':this[_0x5557c7(0x153)],'actions':null,'textRanges':_0x339b24['ranges']}},_0x5a3bdb=this[_0x5557c7(0x24e)][_0x5557c7(0x1c8)](_0x4c3639,_0x3d35aa,!0x1);if(_0x36c0af(_0x5a3bdb))throw _0x5a3bdb['error'];_0x117015['set'](_0x5260eb,{..._0x339b24,'ranges':_0x5a3bdb[_0x5557c7(0x1b1)][_0x5557c7(0x2d8)]['textRanges']});}queueMicrotask(()=>{const _0x2a2198=_0x5557c7;this['_cursorInfo$'][_0x2a2198(0x133)](_0x117015);});})));}['_onCursorUpdate'](_0x5197de){const _0x467a51=_0x17237f;var _0x4b3643,_0x3251c2;const {memberID:_0x1f6293,selection:_0x56cbf3}=_0x5197de['data'],_0x9558d7=Li(_0x56cbf3),_0x57f87f=(_0x3251c2=(_0x4b3643=this[_0x467a51(0x248)][_0x467a51(0x20b)](this[_0x467a51(0x153)],_0x1f6293))==null?void 0x0:_0x4b3643[_0x467a51(0x119)])!=null?_0x3251c2:_0x467a51(0x231),_0x3b425c={'color':this[_0x467a51(0x201)]['assignAColorForMemberID'](_0x1f6293),'name':_0x57f87f,'ranges':_0x9558d7},_0x28e408=this['cursorInfo'];_0x28e408['set'](_0x1f6293,_0x3b425c),this['_cursorInfo$'][_0x467a51(0x133)](_0x28e408);}['_onCursorDelete'](_0x27a9be){const _0xdceced=_0x17237f,{memberID:_0xccc52f}=_0x27a9be['data'],_0x5aa433=this[_0xdceced(0xca)];_0x5aa433[_0xdceced(0x1a6)](_0xccc52f),this[_0xdceced(0x2e3)][_0xdceced(0x133)](_0x5aa433);}[_0x17237f(0x16b)](){const _0x30ebc0=_0x17237f;var _0x1dd5c1;if(this[_0x30ebc0(0x234)]=!0x0,((_0x1dd5c1=this[_0x30ebc0(0x28c)][_0x30ebc0(0x13c)]())==null?void 0x0:_0x1dd5c1[_0x30ebc0(0x19e)]())!==this['unitID'])return;const _0x5bbc04=this[_0x30ebc0(0x2db)][_0x30ebc0(0x178)](_0x2ca068)[_0x30ebc0(0x131)]();Array['isArray'](_0x5bbc04)&&_0x5bbc04[_0x30ebc0(0x228)]>0x0&&this['_updateLocalCursor'](_0x5bbc04);}[_0x17237f(0x2b4)](){const _0x2e1943=_0x17237f;this[_0x2e1943(0x234)]=!0x1;}};Pe=Ai([A(0x2,_0x5c536b(_0xd42208)),A(0x3,_0x5c536b(je)),A(0x4,_0x5c536b(_0x5dc238)),A(0x5,_0x5c536b(Xe)),A(0x6,_0x44d9e1),A(0x7,_0x160283),A(0x8,_0x3a5a9b)],Pe);var yi=Object[_0x17237f(0xf0)],$i=(_0xbf5826,_0x5126da,_0x1129e7,_0x4c3224)=>{const _0x33e9aa=_0x17237f;for(var _0x119af0=_0x4c3224>0x1?void 0x0:_0x4c3224?yi(_0x5126da,_0x1129e7):_0x5126da,_0x4d4bcf=_0xbf5826[_0x33e9aa(0x228)]-0x1,_0x30836c;_0x4d4bcf>=0x0;_0x4d4bcf--)(_0x30836c=_0xbf5826[_0x4d4bcf])&&(_0x119af0=_0x30836c(_0x119af0)||_0x119af0);return _0x119af0;},B=(_0x711ffc,_0x40ec52)=>(_0x285c29,_0x12045d)=>_0x40ec52(_0x285c29,_0x12045d,_0x711ffc);const xi=0x12c,Bi=0x64,Fi=()=>{let _0x5a470e=[],_0x40aad4=!0x1;return _0x5bdcc7=>{const _0x31b1d1=_0x63bd;_0x5a470e[_0x31b1d1(0x175)](_0x5bdcc7),_0x40aad4||(_0x40aad4=!0x0,setTimeout(()=>{_0x5a470e['forEach'](_0x54de6b=>_0x54de6b()),_0x5a470e=[],_0x40aad4=!0x1;}));};};let we=class extends _0x5c4b8f{constructor(_0x104905,_0x46875b,_0x4b98a3,_0x9cf6a,_0x38501c,_0x23123f,_0x5a1c27,_0x540e35){const _0x4d26c1=_0x17237f;super(),l(this,_0x4d26c1(0x234),!0x1),l(this,_0x4d26c1(0x26e),!0x1),l(this,_0x4d26c1(0x2e3),new _0xacfd1(new Map())),l(this,_0x4d26c1(0x28e),this['_cursorInfo$'][_0x4d26c1(0x1a1)]()),l(this,_0x4d26c1(0x10b),new _0xacfd1([])),l(this,_0x4d26c1(0x124),this[_0x4d26c1(0x10b)]['pipe'](_0x469507(xi))),l(this,'_updateLocalCursor',_0x1586d4((_0x1785e9,_0x41c478)=>{const _0x2bbfed=_0x4d26c1,_0x250596={'eventID':_0x2ec7ba[_0x2bbfed(0x212)],'data':{'unitID':this[_0x2bbfed(0x153)],'memberID':this['_session'][_0x2bbfed(0x20f)](),'selection':_0x6fafa6(_0x1785e9,_0x41c478[_0x2bbfed(0x1bb)])}};this[_0x2bbfed(0x1e5)][_0x2bbfed(0x1f9)](_0x250596,this[_0x2bbfed(0x153)]);},Bi)),(this[_0x4d26c1(0x153)]=_0x104905,this[_0x4d26c1(0x1e5)]=_0x46875b,this['_injector']=_0x4b98a3,this[_0x4d26c1(0x201)]=_0x9cf6a,this['_memberService']=_0x38501c,this['_univerInstanceService']=_0x23123f,this[_0x4d26c1(0x220)]=_0x5a1c27,this[_0x4d26c1(0x257)]=_0x540e35);}get[_0x17237f(0xca)](){const _0x49ca33=_0x17237f;return this[_0x49ca33(0x2e3)][_0x49ca33(0x2a9)]();}get[_0x17237f(0x1c1)](){return this['_roomMembers$']['getValue']();}[_0x17237f(0x25c)](){const _0x2528f4=_0x17237f;super['dispose'](),this['_cursorInfo$'][_0x2528f4(0x133)](new Map()),this[_0x2528f4(0x2e3)][_0x2528f4(0x157)](),this[_0x2528f4(0x10b)][_0x2528f4(0x133)]([]),this['_roomMembers$'][_0x2528f4(0x157)]();}['init'](){const _0x1ff11a=_0x17237f;this['_init']||(this['_init']=!0x0,this[_0x1ff11a(0x1e5)][_0x1ff11a(0x199)][_0x1ff11a(0x187)](_0x4735a7(this[_0x1ff11a(0xcc)]))['subscribe'](_0x26dd93=>{const _0x487cf6=_0x1ff11a;_0x26dd93===_0x3b545a[_0x487cf6(0x1ef)]?this[_0x487cf6(0x16b)]():this[_0x487cf6(0x2b4)]();}),this[_0x1ff11a(0x1e5)][_0x1ff11a(0x2d9)]['pipe'](_0x4735a7(this[_0x1ff11a(0xcc)]))[_0x1ff11a(0x185)](_0x45477e=>{const _0xd6faf4=_0x1ff11a,_0x4aa259=_0x45477e[_0xd6faf4(0x1d0)];_0x4aa259===_0x2ec7ba[_0xd6faf4(0x212)]&&this[_0xd6faf4(0x17a)](_0x45477e),_0x4aa259===_0x2ec7ba[_0xd6faf4(0x17d)]&&this[_0xd6faf4(0x114)](_0x45477e);}),this[_0x1ff11a(0x1f7)](),this[_0x1ff11a(0x125)](this[_0x1ff11a(0x220)][_0x1ff11a(0xc7)](_0x4a2531=>{const _0x47d579=_0x1ff11a;if(this[_0x47d579(0x234)]&&_0x4a2531['id']===_0x64ddff['id']&&_0x4a2531[_0x47d579(0x2d8)][_0x47d579(0x1db)]===this[_0x47d579(0x153)]){const _0x25d206=_0x4a2531[_0x47d579(0x2d8)];this['_updateLocalCursor'](_0x25d206[_0x47d579(0x254)],_0x25d206[_0x47d579(0x2e5)][0x0]);}})));}[_0x17237f(0x17a)](_0x458e13){const _0x306537=_0x17237f;var _0xf59063,_0x971b80;const {memberID:_0x26a2cf,selection:_0x1ef670}=_0x458e13[_0x306537(0x28f)],{sheetName:_0x270cc9,range:_0x4317fe}=_0x2d599b(_0x1ef670),_0x349f63={'name':(_0x971b80=(_0xf59063=this[_0x306537(0x248)][_0x306537(0x20b)](this['unitID'],_0x26a2cf))==null?void 0x0:_0xf59063['name'])!=null?_0x971b80:_0x306537(0x231),'range':this[_0x306537(0xfc)](_0x270cc9,_0x4317fe),'sheetID':_0x270cc9,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x26a2cf),'selection':_0x1ef670},_0x30ee4d=this[_0x306537(0xca)];_0x30ee4d[_0x306537(0xda)](_0x26a2cf,_0x349f63),this[_0x306537(0x2e3)][_0x306537(0x133)](_0x30ee4d);}[_0x17237f(0x114)](_0x1c4765){const _0x5ea6c6=_0x17237f,{memberID:_0x3aa91a}=_0x1c4765[_0x5ea6c6(0x28f)],_0x33600c=this['cursorInfo'];_0x33600c['delete'](_0x3aa91a),this['_cursorInfo$'][_0x5ea6c6(0x133)](_0x33600c);}[_0x17237f(0xfc)](_0x2a1fc0,_0x67be01){const _0x3cc25f=_0x17237f;var _0x3469be,_0x28a411;const _0x5428ab=(_0x28a411=(_0x3469be=this[_0x3cc25f(0x28c)][_0x3cc25f(0x10e)](this['unitID']))==null?void 0x0:_0x3469be['getSheetBySheetId'](_0x2a1fc0))==null?void 0x0:_0x28a411[_0x3cc25f(0xdd)]();return(_0x5428ab==null?void 0x0:_0x5428ab[_0x3cc25f(0x179)](_0xb2bf74=>_0x280cdc[_0x3cc25f(0x162)](_0xb2bf74,_0x67be01)))||_0x67be01;}[_0x17237f(0x1f7)](){const _0x5c8ce8=_0x17237f,_0x505a06=new _0x179b20(),_0x2cde30=Fi(),_0x42aa57=()=>{const _0x39691f=_0x63bd;_0x505a06[_0x39691f(0x25c)]();const _0x319ca4=(_0x362ce,_0xc693bc,_0x3154cd,_0x1769ff)=>{const _0x2b492d=_0x39691f;let _0x3a6d69=[];switch(_0x362ce['id']){case _0x28d64e['DeleteRangeMoveLeftCommandId']:{_0x3a6d69=_0x3f7515(_0x362ce,_0x1769ff);break;}case _0x28d64e[_0x2b492d(0x1ae)]:{_0x3a6d69=_0x2ddc50(_0x362ce,_0x1769ff);break;}case _0x28d64e[_0x2b492d(0x213)]:{_0x3a6d69=_0x1a440b(_0x362ce,_0x1769ff);break;}case _0x28d64e[_0x2b492d(0x1a2)]:{_0x3a6d69=_0x2c8ef1(_0x362ce,_0x1769ff);break;}case _0x28d64e[_0x2b492d(0x166)]:{_0x3a6d69=_0x58c6ed(_0x362ce,_0x1769ff);break;}case _0x28d64e[_0x2b492d(0x1f4)]:{_0x3a6d69=_0x29de3f(_0x362ce,_0x1769ff);break;}case _0x28d64e[_0x2b492d(0x215)]:{_0x3a6d69=_0x5d5685(_0x362ce,_0x1769ff);break;}case _0x28d64e[_0x2b492d(0x216)]:{_0x3a6d69=_0x466efa(_0x362ce,_0x1769ff);break;}case _0x28d64e[_0x2b492d(0x27b)]:{_0x3a6d69=_0x467cb6(_0x362ce,_0x1769ff);break;}}const _0x117cd0=_0x5f214f(_0x3a6d69,_0x1769ff),_0x3f90bc=this[_0x2b492d(0xca)]['get'](_0xc693bc);if(_0x3f90bc&&_0x117cd0){const _0x5b7e71={..._0x3f90bc,'range':_0x117cd0};this[_0x2b492d(0xca)][_0x2b492d(0xda)](_0xc693bc,_0x5b7e71),_0x2cde30(()=>{const _0x59b6c3=_0x2b492d,_0x5cdd92=this[_0x59b6c3(0x257)][_0x59b6c3(0x261)](_0x117cd0,_0x735ff3=>(_0x5cdd92[_0x59b6c3(0x25c)](),_0x319ca4(_0x735ff3,_0xc693bc,_0x3154cd,_0x117cd0)));_0x505a06[_0x59b6c3(0x26c)](_0x5cdd92);});}return{'redos':[],'undos':[]};};this[_0x39691f(0xca)]['forEach']((_0x4304df,_0x45c093)=>{const _0x2dea93=_0x39691f,{range:_0x4be0d7,sheetID:_0x139a81}=_0x4304df,_0x46d81d=this[_0x2dea93(0x257)][_0x2dea93(0x261)](_0x4be0d7,_0x5eed9c=>(_0x46d81d[_0x2dea93(0x25c)](),_0x319ca4(_0x5eed9c,_0x45c093,_0x139a81,_0x4be0d7)));_0x505a06[_0x2dea93(0x26c)](_0x46d81d);});};this[_0x5c8ce8(0x125)](_0x3a001f(this[_0x5c8ce8(0x2e3)][_0x5c8ce8(0x185)](()=>{_0x42aa57();})));}['_toggleOnline'](){const _0x4b4f5f=_0x17237f;var _0x3f7c44,_0x4a0328;if(this['_online']=!0x0,((_0x3f7c44=this[_0x4b4f5f(0x28c)][_0x4b4f5f(0x13c)]())==null?void 0x0:_0x3f7c44[_0x4b4f5f(0x19e)]())!==this['unitID'])return;const _0x7f974e=(_0x4a0328=this['_injector'][_0x4b4f5f(0x178)](_0x5a77b3)[_0x4b4f5f(0x159)]())==null?void 0x0:_0x4a0328[0x0],_0x3136cd=this['_univerInstanceService'][_0x4b4f5f(0x21d)](_0xa8e2c5[_0x4b4f5f(0x2b7)])[_0x4b4f5f(0x14b)]();_0x7f974e&&_0x3136cd&&this[_0x4b4f5f(0x2b0)](_0x3136cd[_0x4b4f5f(0x103)](),_0x7f974e);}['_toggleOffline'](){const _0x3c6ce6=_0x17237f;this[_0x3c6ce6(0x234)]=!0x1;}};we=$i([B(0x2,_0x5c536b(_0xd42208)),B(0x3,_0x5c536b(je)),B(0x4,_0x5c536b(_0x5dc238)),B(0x5,_0x160283),B(0x6,_0x3a5a9b),B(0x7,_0x5c536b(_0x3f48cf))],we);var ki=Object[_0x17237f(0xf0)],Hi=(_0x1f244a,_0x5b830d,_0xcbb976,_0x328b42)=>{const _0x1a7628=_0x17237f;for(var _0x99e593=_0x328b42>0x1?void 0x0:_0x328b42?ki(_0x5b830d,_0xcbb976):_0x5b830d,_0x1b189c=_0x1f244a[_0x1a7628(0x228)]-0x1,_0x1d92e7;_0x1b189c>=0x0;_0x1b189c--)(_0x1d92e7=_0x1f244a[_0x1b189c])&&(_0x99e593=_0x1d92e7(_0x99e593)||_0x99e593);return _0x99e593;},Ee=(_0x2b97af,_0x5f227f)=>(_0x231d8b,_0x3e15cc)=>_0x5f227f(_0x231d8b,_0x3e15cc,_0x2b97af);let H=class extends _0x5c4b8f{constructor(_0x43a716,_0x2825e9,_0x4fc45f){const _0x398579=_0x17237f;super(),l(this,_0x398579(0x132),new Map()),l(this,_0x398579(0x2f4),new _0x170e43()),(this[_0x398579(0x28c)]=_0x43a716,this['_injector']=_0x2825e9,this[_0x398579(0xe8)]=_0x4fc45f,this[_0x398579(0x26e)]());}['dispose'](){const _0x308af7=_0x17237f;super[_0x308af7(0x25c)](),this[_0x308af7(0x2f4)][_0x308af7(0x157)](),this[_0x308af7(0x132)][_0x308af7(0x10c)](_0xcbbf66=>_0xcbbf66[_0x308af7(0x25c)]());}[_0x17237f(0x251)](_0x1633c6){const _0x38331b=_0x17237f;return this[_0x38331b(0x132)][_0x38331b(0x26b)](_0x1633c6)?this[_0x38331b(0x132)][_0x38331b(0x178)](_0x1633c6)[_0x38331b(0x28e)]:this[_0x38331b(0x2f4)][_0x38331b(0x187)](_0x48ed13(_0x3ccd39=>_0x3ccd39[_0x38331b(0x153)]===_0x1633c6),_0x12df15(_0x3db190=>_0x3db190[_0x38331b(0x28e)]));}[_0x17237f(0x26e)](){const _0x6835=_0x17237f;this[_0x6835(0x28c)][_0x6835(0x224)](_0xa8e2c5[_0x6835(0x2b7)])[_0x6835(0x187)](_0x4735a7(this[_0x6835(0xcc)]))['subscribe'](async _0x4998c7=>{const _0x1d8e75=_0x6835,_0x1000b0=_0x4998c7[_0x1d8e75(0x19e)](),_0xa8555d=await this['_startSheetCollabCursor'](_0x1000b0);this['_entityInit$']['next'](_0xa8555d),this[_0x1d8e75(0x132)][_0x1d8e75(0xda)](_0x1000b0,_0xa8555d);}),this['_univerInstanceService'][_0x6835(0x224)](_0xa8e2c5[_0x6835(0xe7)])[_0x6835(0x187)](_0x4735a7(this['dispose$']))[_0x6835(0x187)](_0x48ed13(_0x1b6f7a=>!_0x1b6f7a[_0x6835(0x19e)]()[_0x6835(0x1f3)]('__')))['subscribe'](async _0x4da7d8=>{const _0x165efa=_0x6835,_0x3eddd0=_0x4da7d8[_0x165efa(0x19e)](),_0x1bbc9f=await this[_0x165efa(0x1ec)](_0x3eddd0);this[_0x165efa(0x2f4)][_0x165efa(0x133)](_0x1bbc9f),this['_entities']['set'](_0x3eddd0,_0x1bbc9f);}),_0x28e2ac(this[_0x6835(0x28c)]['getTypeOfUnitDisposed$'](_0xa8e2c5[_0x6835(0xe7)]),this[_0x6835(0x28c)][_0x6835(0x22e)](_0xa8e2c5[_0x6835(0x2b7)]))[_0x6835(0x187)](_0x4735a7(this[_0x6835(0xcc)]))['subscribe'](_0x5ebfee=>{const _0x27e0b5=_0x6835,_0x597290=_0x5ebfee['getUnitId'](),_0x92e149=this[_0x27e0b5(0x132)][_0x27e0b5(0x178)](_0x597290);_0x92e149&&(_0x92e149[_0x27e0b5(0x25c)](),this['_entities'][_0x27e0b5(0x1a6)](_0x597290));});}async[_0x17237f(0x2ef)](_0x215e09){const _0x4fe8e=_0x17237f,_0x455af5=await this['_collabSessionService']['requireSession'](_0x215e09),_0x28a8fc=this[_0x4fe8e(0x2db)][_0x4fe8e(0x247)](we,_0x215e09,_0x455af5);return _0x28a8fc[_0x4fe8e(0x1b6)](),_0x28a8fc;}async['_startDocCollabCursor'](_0x56a974){const _0x353757=_0x17237f,_0x3fa6db=await this[_0x353757(0xe8)][_0x353757(0x299)](_0x56a974),_0x4a1a90=this['_injector'][_0x353757(0x247)](Pe,_0x56a974,_0x3fa6db);return _0x4a1a90[_0x353757(0x1b6)](),_0x4a1a90;}};function _0x63bd(_0x362401,_0x2c9d20){const _0x2d84b7=_0x2d84();return _0x63bd=function(_0x63bdc1,_0x2e5173){_0x63bdc1=_0x63bdc1-0xc5;let _0x5a50c4=_0x2d84b7[_0x63bdc1];return _0x5a50c4;},_0x63bd(_0x362401,_0x2c9d20);}H=Hi([Ee(0x0,_0x160283),Ee(0x1,_0x5c536b(_0xd42208)),Ee(0x2,_0x5c536b(_0x4fd6b5))],H);const Q=0x14,it=0xc8,pe=0x4,Yi=0x5;function Wi(_0x2c8a74,_0x5a8f15){const _0x5114ce=_0x17237f;let {radius:_0x14bdca,width:_0x423fb4,height:_0x1f252b}=_0x5a8f15;_0x14bdca=_0x14bdca!=null?_0x14bdca:0x0,_0x423fb4=_0x423fb4!=null?_0x423fb4:0x1e,_0x1f252b=_0x1f252b!=null?_0x1f252b:0x1e;let _0x547493=0x0,_0x2d5509=0x0,_0x7abeeb=0x0;_0x547493=_0x2d5509=_0x7abeeb=Math[_0x5114ce(0x100)](_0x14bdca,_0x423fb4/0x2,_0x1f252b/0x2),_0x2c8a74[_0x5114ce(0x2ac)](),_0x2c8a74['moveTo'](_0x547493,0x0),_0x2c8a74[_0x5114ce(0x2bf)](_0x423fb4-_0x2d5509,0x0),_0x2c8a74[_0x5114ce(0x203)](_0x423fb4-_0x2d5509,_0x2d5509,_0x2d5509,Math['PI']*0x3/0x2,0x0,!0x1),_0x2c8a74[_0x5114ce(0x2bf)](_0x423fb4,_0x1f252b-_0x7abeeb),_0x2c8a74[_0x5114ce(0x203)](_0x423fb4-_0x7abeeb,_0x1f252b-_0x7abeeb,_0x7abeeb,0x0,Math['PI']/0x2,!0x1),_0x2c8a74[_0x5114ce(0x2bf)](0x0,_0x1f252b),_0x2c8a74[_0x5114ce(0x2bf)](0x0,_0x547493),_0x2c8a74['arc'](_0x547493,_0x547493,_0x547493,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2c8a74[_0x5114ce(0x106)](),_0x5a8f15[_0x5114ce(0x1d7)]&&(_0x2c8a74[_0x5114ce(0x235)](),_0x2c8a74[_0x5114ce(0x128)]=_0x5a8f15[_0x5114ce(0x1d7)],_0x5a8f15['fillRule']==='evenodd'?_0x2c8a74[_0x5114ce(0x1d7)](_0x5114ce(0x2ec)):_0x2c8a74[_0x5114ce(0x1d7)](),_0x2c8a74[_0x5114ce(0xe5)]());}class me extends _0x451b05{constructor(_0x1a04d1,_0x39ce29){const _0xcfcb41=_0x17237f;super(_0x1a04d1,_0x39ce29),l(this,_0xcfcb41(0x1b2)),l(this,_0xcfcb41(0x256)),(this['color']=_0x39ce29==null?void 0x0:_0x39ce29['color'],this[_0xcfcb41(0x256)]=_0x39ce29==null?void 0x0:_0x39ce29[_0xcfcb41(0x256)]);}static[_0x17237f(0x210)](_0x57edd7,_0xa2b597){const _0x22dede=_0x17237f,{text:_0x223c2a,color:_0x2a198}=_0xa2b597;_0x57edd7[_0x22dede(0x235)](),_0x57edd7[_0x22dede(0x2dd)]=_0x22dede(0x171);const _0x2e4f70=_0x57edd7['measureText'](_0x223c2a)['width'],_0x592595=Math[_0x22dede(0x100)](_0x2e4f70+0x2*pe,it);Wi(_0x57edd7,{'height':Q,'radius':0x4,'width':_0x592595,'fill':_0x2a198}),_0x57edd7[_0x22dede(0x128)]=_0x22dede(0x1c9);const _0x5c36=pe,_0x1206a7=Q-Yi,_0x13d406=it-0x2*pe;if(_0x2e4f70>_0x13d406){let _0x397c03='',_0x4d3eb0=0x0;for(const _0x2653a3 of _0x223c2a){const _0x527d00=_0x57edd7[_0x22dede(0x1ac)](_0x2653a3)['width'];if(_0x4d3eb0+_0x527d00<=_0x13d406-_0x57edd7[_0x22dede(0x1ac)](_0x22dede(0xdc))['width'])_0x397c03+=_0x2653a3,_0x4d3eb0+=_0x527d00;else{_0x397c03+='...';break;}}_0x57edd7['fillText'](_0x397c03,_0x5c36,_0x1206a7);}else _0x57edd7[_0x22dede(0xcf)](_0x223c2a,_0x5c36,_0x1206a7);_0x57edd7['restore']();}['_draw'](_0x9ba1e6){const _0x4854e0=_0x17237f;me[_0x4854e0(0x210)](_0x9ba1e6,this);}}const Oe=_0x17237f(0x28b),Vi=_0x17237f(0xf4),ji=_0x17237f(0x233),z=0x6,Xi=1.5,Te=0x4,Gi=1.5,Ki=_0x17237f(0x111);class nt{constructor(_0x458b49,_0x268806,_0x2660e4,_0x2c260d){const _0xe66a99=_0x17237f;l(this,_0xe66a99(0x242),[]),l(this,_0xe66a99(0x2d4),null),l(this,_0xe66a99(0x1af),null),l(this,_0xe66a99(0x1b4),null),l(this,_0xe66a99(0x2be),null),l(this,_0xe66a99(0x2e0),null),(this['_cursor']=_0x458b49,this[_0xe66a99(0x2cc)]=_0x268806,this[_0xe66a99(0x11f)]=_0x2660e4,this[_0xe66a99(0xf3)]=_0x2c260d,this[_0xe66a99(0x259)]());}set[_0x17237f(0x211)](_0x56225c){const _0x61a05a=_0x17237f;_0x56225c?(this[_0x61a05a(0x1b4)]&&this[_0x61a05a(0x1b4)][_0x61a05a(0x142)](),this[_0x61a05a(0x1af)]&&this[_0x61a05a(0x1af)]['show']()):(this[_0x61a05a(0x1b4)]&&this[_0x61a05a(0x1b4)][_0x61a05a(0x1bf)](),this['_textBubble']&&this[_0x61a05a(0x1af)][_0x61a05a(0x142)]());}[_0x17237f(0x25c)](){const _0x4b220e=_0x17237f;for(const _0x49ff06 of this[_0x4b220e(0x242)])_0x49ff06[_0x4b220e(0x25c)]();this['_textBubble']&&this[_0x4b220e(0x1af)]['dispose'](),this[_0x4b220e(0x1b4)]&&this[_0x4b220e(0x1b4)][_0x4b220e(0x25c)](),this[_0x4b220e(0x2d4)]&&this[_0x4b220e(0x2d4)][_0x4b220e(0x25c)](),this[_0x4b220e(0x2e0)]&&this[_0x4b220e(0x2e0)]();}[_0x17237f(0x259)](){const _0xc28ed9=_0x17237f;var _0x143746;const {_docSkeleton:_0x18beb6,_document:_0x102104}=this,{color:_0x176595,name:_0x115f4d,ranges:_0x3ca838}=this[_0xc28ed9(0xfe)],_0x37b4bd=_0x102104[_0xc28ed9(0xfd)](),{docsLeft:_0xbf05c3,docsTop:_0x2f192e}=_0x37b4bd,_0x28c0e1=new _0x4d2c66(_0x37b4bd,_0x18beb6);for(const {startOffset:_0x42e9cf,endOffset:_0x21e5e2,rangeType:_0x159ef8,segmentId:_0x21c42d,segmentPage:_0x5afa2b,collapsed:_0x958a90,isActive:_0x38f179}of _0x3ca838){const _0xa65736=_0x18beb6[_0xc28ed9(0x1c4)](_0x42e9cf,!0x0,_0x21c42d,_0x5afa2b);let _0x27d962=_0x18beb6['findNodePositionByCharIndex'](_0x21e5e2,!0x0,_0x21c42d,_0x5afa2b);if(_0x27d962==null&&(_0x27d962=_0x18beb6[_0xc28ed9(0x1c4)](_0x21e5e2-0x1,!0x1,_0x21c42d,_0x5afa2b)),_0x38f179){const {contentBoxPointGroup:_0x18925f}=_0x28c0e1[_0xc28ed9(0x274)](_0x27d962,_0x27d962);if(_0x18925f[_0xc28ed9(0x228)]===0x0)continue;this[_0xc28ed9(0x2e1)](_0x176595,_0x18925f,_0xbf05c3,_0x2f192e,_0x115f4d),this[_0xc28ed9(0x2e0)]=this[_0xc28ed9(0xc8)]();}if(_0xa65736&&_0x27d962){if(_0x159ef8===_0x3483a9['RECT']){const _0x4d1a20=new _0x1063d6(_0x37b4bd,_0x18beb6),{pointGroup:_0x2016a7}=(_0x143746=_0x4d1a20['getRangePointData'](_0xa65736,_0x27d962))!=null?_0x143746:{};if(_0x2016a7==null||_0x2016a7['length']===0x0)continue;this[_0xc28ed9(0x23c)](_0x176595,_0x2016a7,_0xbf05c3,_0x2f192e);}else{if(!_0x958a90){const {borderBoxPointGroup:_0x109960}=_0x28c0e1[_0xc28ed9(0x274)](_0xa65736,_0x27d962);if(_0x109960[_0xc28ed9(0x228)]===0x0)continue;this[_0xc28ed9(0xd4)](_0x176595,_0x109960,_0xbf05c3,_0x2f192e);}}}}}[_0x17237f(0x2e1)](_0x1ebc34,_0x1a7909,_0x135b3b,_0x27c116,_0x3b951c){const _0x44fb3f=_0x17237f,_0x5eb311=this[_0x44fb3f(0x1a3)](_0x1a7909),{left:_0x510537,top:_0x54c559,height:_0x47028e}=_0x5eb311,_0x1a3306=this['_getScale'](),_0x190862=Gi/_0x1a3306,_0x313070=new _0x32d903(Oe+_0x2020d1(z),{'left':_0x510537+_0x135b3b-_0x190862,'top':_0x54c559+_0x27c116,'height':_0x47028e,'width':Xi,'fill':_0x1ebc34||_0x38cd79(_0x5bf6fe[_0x44fb3f(0xde)],0x0),'strokeWidth':_0x190862,'stroke':Ki,'evented':!0x0});this[_0x44fb3f(0x2d4)]=_0x313070,this[_0x44fb3f(0x2cc)][_0x44fb3f(0x24f)](_0x313070,_0x165d4a);const _0x46dfc7=new _0x32d903(Oe+_0x2020d1(z),{'left':_0x510537+_0x135b3b-_0x190862,'top':_0x54c559+_0x27c116-Te/0x2,'height':Te,'width':Te,'fill':_0x1ebc34||_0x38cd79(_0x5bf6fe[_0x44fb3f(0xde)],0x0),'strokeWidth':0x0,'stroke':_0x1ebc34||_0x38cd79(_0x5bf6fe[_0x44fb3f(0xde)],0x0),'evented':!0x1});this[_0x44fb3f(0x1b4)]=_0x46dfc7,this[_0x44fb3f(0x2cc)][_0x44fb3f(0x24f)](_0x46dfc7,_0x165d4a);const _0x2a871a=new me(Oe+_0x2020d1(z),{'left':_0x510537+_0x135b3b-_0x190862,'top':_0x54c559+_0x27c116-Q,'text':_0x3b951c,'color':_0x1ebc34});this[_0x44fb3f(0x1af)]=_0x2a871a,this[_0x44fb3f(0x2cc)]['addObject'](_0x2a871a,_0x165d4a),this[_0x44fb3f(0x211)]=!0x1;}[_0x17237f(0xc8)](){const _0x3402ad=_0x17237f,_0x2165ad=this['_anchor']['onPointerEnter$'][_0x3402ad(0x23f)](()=>{const _0x31baa0=_0x3402ad;this[_0x31baa0(0x211)]=!0x0;}),_0x2ed219=this[_0x3402ad(0x2d4)]['onPointerLeave$'][_0x3402ad(0x23f)](()=>{const _0x3081e2=_0x3402ad;this[_0x3081e2(0x2be)]&&clearTimeout(this[_0x3081e2(0x2be)]),this[_0x3081e2(0x2be)]=setTimeout(()=>{const _0x5f48ec=_0x3081e2;this[_0x5f48ec(0x211)]=!0x1;},0x7d0);});return()=>{const _0x16882d=_0x3402ad;_0x2165ad[_0x16882d(0x14c)](),_0x2ed219[_0x16882d(0x14c)]();};}[_0x17237f(0xd4)](_0x47f6a6,_0x387650,_0x93c20a,_0x22de62){const _0xf9e615=_0x17237f,_0x172c83=new _0x226f1b(_0x47f6a6)['setAlpha'](0.2)[_0xf9e615(0x2c0)](),_0x52f87e=new _0x5a827d(Vi+_0x2020d1(z),{'pointsGroup':_0x387650,'fill':_0x172c83||_0x38cd79(_0x5bf6fe[_0xf9e615(0xde)],0.2),'left':_0x93c20a,'top':_0x22de62,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x52f87e),this[_0xf9e615(0x2cc)][_0xf9e615(0x24f)](_0x52f87e,_0x165d4a);}['_drawRectRange'](_0x346a36,_0x40cd2c,_0x23d6d7,_0x1c6893){const _0x47d024=_0x17237f,_0x2ad166=new _0x226f1b(_0x346a36)[_0x47d024(0x156)](0.2)[_0x47d024(0x2c0)](),_0x5629f3=new _0x5a827d(ji+_0x2020d1(z),{'pointsGroup':_0x40cd2c,'fill':_0x2ad166||_0x38cd79(_0x5bf6fe[_0x47d024(0xde)],0.2),'left':_0x23d6d7,'top':_0x1c6893,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x47d024(0x242)][_0x47d024(0x175)](_0x5629f3),this[_0x47d024(0x2cc)][_0x47d024(0x24f)](_0x5629f3,_0x165d4a);}['_getAnchorBounding'](_0x195dc5){const _0x5321a3=_0x195dc5[0x0],_0x4519c=_0x5321a3[0x0],_0x2806d8=_0x5321a3[0x2],{x:_0x235cfc,y:_0x481cb8}=_0x4519c,{x:_0x3ce3c7,y:_0x256526}=_0x2806d8;return{'left':_0x235cfc,'top':_0x481cb8,'width':_0x3ce3c7-_0x235cfc,'height':_0x256526-_0x481cb8};}[_0x17237f(0x16c)](){const _0x391db1=_0x17237f,{scaleX:_0x2ee796,scaleY:_0x51d68b}=this['_scene'][_0x391db1(0x1d9)]();return Math[_0x391db1(0x16e)](_0x2ee796,_0x51d68b);}}var zi=Object[_0x17237f(0xf0)],Ji=(_0x4b540c,_0x15c2b9,_0x5866e2,_0x250037)=>{for(var _0x57994f=_0x250037>0x1?void 0x0:_0x250037?zi(_0x15c2b9,_0x5866e2):_0x15c2b9,_0x26dbfe=_0x4b540c['length']-0x1,_0x5ee72d;_0x26dbfe>=0x0;_0x26dbfe--)(_0x5ee72d=_0x4b540c[_0x26dbfe])&&(_0x57994f=_0x5ee72d(_0x57994f)||_0x57994f);return _0x57994f;},ie=(_0x5e621d,_0x4f4b70)=>(_0x5bf803,_0x3220cd)=>_0x4f4b70(_0x5bf803,_0x3220cd,_0x5e621d);let ye=class extends _0x5c4b8f{constructor(_0x480a7a,_0x283c4d,_0x55232f,_0x42da24,_0x1ed0d7){const _0x180cf5=_0x17237f;super(),l(this,_0x180cf5(0x2c8),[]),l(this,_0x180cf5(0x29f),[]),(this['_context']=_0x480a7a,this[_0x180cf5(0x277)]=_0x283c4d,this[_0x180cf5(0xd3)]=_0x55232f,this['_commandService']=_0x42da24,this[_0x180cf5(0x2f9)]=_0x1ed0d7,this[_0x180cf5(0x26e)]());}[_0x17237f(0x26e)](){const _0x3c927f=_0x17237f,_0x25a578=this[_0x3c927f(0x182)][_0x3c927f(0x1db)],_0x556a08=this[_0x3c927f(0x277)];this[_0x3c927f(0x125)](_0x4b3685([this['_collabCursorController'][_0x3c927f(0x251)](_0x25a578),this[_0x3c927f(0x2f9)]['currentTheme$']])[_0x3c927f(0x187)](_0x23f034(([_0x31e840,_0x46aaab])=>({'skeleton':_0x556a08[_0x3c927f(0x18a)](),'cursors':[..._0x31e840[_0x3c927f(0x2a7)]()][_0x3c927f(0x22f)](_0x44a5a4=>({..._0x44a5a4,'color':this[_0x3c927f(0x2f9)]['getColorFromTheme'](_0x44a5a4[_0x3c927f(0x1b2)])}))})))['subscribe'](_0x1b18b1=>{const _0x3d07b0=_0x3c927f;if(this[_0x3d07b0(0x19f)](),_0x1b18b1){const {skeleton:_0x3375c6,cursors:_0x297b2c}=_0x1b18b1;this[_0x3d07b0(0x1c2)](_0x3375c6,_0x297b2c);}})),this[_0x3c927f(0x278)](),this[_0x3c927f(0x1b5)]();}[_0x17237f(0x1c2)](_0x297530,_0x300413){const _0x84885c=_0x17237f,{scene:_0x544ff6,mainComponent:_0xd7eba7}=this[_0x84885c(0x182)],_0x4269db=_0x300413['map'](_0x1c88c0=>new nt(_0x1c88c0,_0x544ff6,_0x297530,_0xd7eba7));this['_cursorShapes']=_0x4269db,this['_cursors']=_0x300413;}[_0x17237f(0x2ce)](){const _0x3b23e3=_0x17237f;this[_0x3b23e3(0x19f)]();const {scene:_0x5b8846,mainComponent:_0x5084fa}=this['_context'],_0x151a3c=this[_0x3b23e3(0x277)]['getSkeleton'](),_0x5c803d=this[_0x3b23e3(0x29f)]['map'](_0x22827a=>new nt(_0x22827a,_0x5b8846,_0x151a3c,_0x5084fa));this[_0x3b23e3(0x2c8)]=_0x5c803d;}[_0x17237f(0x19f)](){const _0x194d8e=_0x17237f;this[_0x194d8e(0x2c8)][_0x194d8e(0x10c)](_0x3ab3cc=>_0x3ab3cc[_0x194d8e(0x25c)]()),this[_0x194d8e(0x2c8)]=[];}['_initCommandExecutedListener'](){const _0x520643=_0x17237f,_0x560366=[_0x2c8773['id']];this[_0x520643(0x125)](this['_commandService']['onCommandExecuted'](_0x4b8422=>{const _0x2ed40b=_0x520643;_0x560366[_0x2ed40b(0x17c)](_0x4b8422['id'])&&_0x4b8422[_0x2ed40b(0x2d8)][_0x2ed40b(0x1db)]===this[_0x2ed40b(0x182)]['unitId']&&this[_0x2ed40b(0x2ce)]();}));}[_0x17237f(0x278)](){const _0x28a8ce=_0x17237f;this['disposeWithMe'](_0x14a5ed(this['_context']['engine'][_0x28a8ce(0x195)])[_0x28a8ce(0x187)](_0x2e48d2(_0x37e7e6=>_0x37e7e6[_0x28a8ce(0xf9)]===_0x23a9bd[_0x28a8ce(0x2d6)]),_0x1a4f43(0x10))[_0x28a8ce(0x185)](()=>{const _0x2a6459=_0x28a8ce;this[_0x2a6459(0x2ce)]();}));}};ye=Ji([ie(0x1,_0x5c536b(_0x407568)),ie(0x2,_0x5c536b(H)),ie(0x3,_0x3a5a9b),ie(0x4,_0x5c536b(_0x29a4c5))],ye);const Zi=0x1,Qi=1.5;class qi extends _0x451b05{constructor(_0x2ecc9c,_0x47d10b){const _0x4277cb=_0x17237f;super(_0x2ecc9c,_0x47d10b),l(this,'_color'),l(this,'_hovered',!0x1),l(this,_0x4277cb(0x113)),l(this,_0x4277cb(0x2b2),''),l(this,'_labelPosition',_0x4277cb(0x1c0)),l(this,_0x4277cb(0x245)),(_0x47d10b&&this['setShapeProps'](_0x47d10b),this['onPointerEnter$'][_0x4277cb(0x23f)](()=>this[_0x4277cb(0x135)]({'hovered':!0x0})),this['onPointerLeave$'][_0x4277cb(0x23f)](()=>this[_0x4277cb(0x135)]({'hovered':!0x1})));}[_0x17237f(0x135)](_0x3c3f8d){const _0x1405b3=_0x17237f;var _0x4686df,_0x14fc75,_0xfeadb1,_0x18fbf6,_0x99b421,_0x1bb4a3;this[_0x1405b3(0x289)]=(_0x4686df=_0x3c3f8d[_0x1405b3(0x1b2)])!=null?_0x4686df:this[_0x1405b3(0x289)],this['_hovered']=(_0x14fc75=_0x3c3f8d[_0x1405b3(0x246)])!=null?_0x14fc75:this[_0x1405b3(0x270)],this['_range']=(_0xfeadb1=_0x3c3f8d[_0x1405b3(0x1bb)])!=null?_0xfeadb1:this[_0x1405b3(0x113)],this[_0x1405b3(0x2b2)]=(_0x18fbf6=_0x3c3f8d[_0x1405b3(0x119)])!=null?_0x18fbf6:this['_name'],this[_0x1405b3(0x122)]=(_0x99b421=_0x3c3f8d[_0x1405b3(0x229)])!=null?_0x99b421:this[_0x1405b3(0x122)],this['_backgroundColor']=(_0x1bb4a3=_0x3c3f8d[_0x1405b3(0x1e9)])!=null?_0x1bb4a3:this[_0x1405b3(0x245)],this[_0x1405b3(0xdf)]({'width':_0x3c3f8d[_0x1405b3(0x16d)],'height':_0x3c3f8d[_0x1405b3(0x2aa)]});}['onMouseMove'](_0x26bc98){const _0xc1957d=_0x17237f,{row:_0x2e74b0,column:_0x272b40}=_0x26bc98;if(_0x2e74b0>=this[_0xc1957d(0x113)][_0xc1957d(0x24b)]&&_0x2e74b0<=this['_range'][_0xc1957d(0x2fa)]&&_0x272b40>=this[_0xc1957d(0x113)]['startColumn']&&_0x272b40<=this[_0xc1957d(0x113)][_0xc1957d(0x1e8)]){this[_0xc1957d(0x135)]({'hovered':!0x0});return;}this[_0xc1957d(0x135)]({'hovered':!0x1});}[_0x17237f(0x1a5)](_0x28ef14){return!0x1;}[_0x17237f(0x284)](_0x475020){const _0x38ec5a=_0x17237f;_0x32d903[_0x38ec5a(0x210)](_0x475020,{'width':this['width'],'height':this[_0x38ec5a(0x2aa)],'strokeWidth':Qi,'stroke':this[_0x38ec5a(0x289)],'evented':!0x1,'fill':this[_0x38ec5a(0x245)]}),this['_hovered']&&(_0x475020[_0x38ec5a(0x235)](),_0x475020[_0x38ec5a(0x161)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x38ec5a(0x1bc)?0x0:-Q),me[_0x38ec5a(0x210)](_0x475020,{'text':this['_name'],'color':this[_0x38ec5a(0x289)]}),_0x475020['restore']());}}var en=Object[_0x17237f(0xf0)],tn=(_0x3b6eec,_0x1d29fa,_0x164ce7,_0x2de990)=>{const _0x1ae5fe=_0x17237f;for(var _0x5b0668=_0x2de990>0x1?void 0x0:_0x2de990?en(_0x1d29fa,_0x164ce7):_0x1d29fa,_0x4ab607=_0x3b6eec[_0x1ae5fe(0x228)]-0x1,_0x10e80b;_0x4ab607>=0x0;_0x4ab607--)(_0x10e80b=_0x3b6eec[_0x4ab607])&&(_0x5b0668=_0x10e80b(_0x5b0668)||_0x5b0668);return _0x5b0668;},Ce=(_0x5ad91e,_0x3a63db)=>(_0x4b528a,_0x5b7015)=>_0x3a63db(_0x4b528a,_0x5b7015,_0x5ad91e);const sn=0x1389;let $e=class extends _0x5c4b8f{constructor(_0x4083c3,_0x1364fb,_0x3b81cc,_0x163b05){const _0x1d43c4=_0x17237f;super(),l(this,_0x1d43c4(0x29f),new Set()),l(this,_0x1d43c4(0x107),null),(this[_0x1d43c4(0x182)]=_0x4083c3,this[_0x1d43c4(0x23a)]=_0x1364fb,this[_0x1d43c4(0xd3)]=_0x3b81cc,this['_themeService']=_0x163b05,this['_init']());}[_0x17237f(0x26e)](){const _0x224e15=_0x17237f;this[_0x224e15(0x23a)][_0x224e15(0x2a1)][_0x224e15(0x187)](_0xee0702(this[_0x224e15(0xcc)]),_0x544b78(_0x13d0b3=>{const _0x242d7d=_0x224e15;if(_0x13d0b3){const _0x3467b2=_0x13d0b3[_0x242d7d(0x104)];return _0x4b3685(this[_0x242d7d(0xd3)][_0x242d7d(0x251)](this['_context'][_0x242d7d(0x1db)]),this[_0x242d7d(0x2f9)][_0x242d7d(0x255)])[_0x242d7d(0x187)](_0x23f034(([_0x372e70,_0x38690a])=>{const _0x3ee350=_0x242d7d,_0xad1827=new Map();return _0x372e70[_0x3ee350(0x10c)]((_0x5085a7,_0x2b3457)=>{const _0x3d27d2=_0x3ee350;if(_0x5085a7[_0x3d27d2(0x121)]===_0x3467b2){const _0x4109d4={..._0x5085a7};_0x4109d4[_0x3d27d2(0x1b2)]=this[_0x3d27d2(0x2f9)][_0x3d27d2(0x1a9)](_0x5085a7[_0x3d27d2(0x1b2)]),_0xad1827[_0x3d27d2(0xda)](_0x2b3457,_0x4109d4);}}),{'skeleton':_0x13d0b3,'cursors':_0xad1827};}));}return _0x5141fd({'skeleton':null,'cursors':new Map()});}))[_0x224e15(0x185)](({skeleton:_0x3e4814,cursors:_0xddae50})=>{const _0x547e4b=_0x224e15;this['_removeCollabCursors'](),_0x3e4814&&this[_0x547e4b(0x1c2)](_0x3e4814,_0xddae50);}),this[_0x224e15(0x23a)]['currentSkeleton$'][_0x224e15(0x185)](_0x5674a0=>{const _0x12cf69=_0x224e15;if(_0x5674a0==null)return;const {skeleton:_0x32bd0a}=_0x5674a0,{scene:_0x32d114}=this[_0x12cf69(0x182)];_0x32d114[_0x12cf69(0x2e4)][_0x12cf69(0x23f)](_0x1586d4(_0x43827b=>{const _0x311f57=_0x12cf69;var _0x5858ec,_0x1c9ced;const {offsetX:_0x1bb496,offsetY:_0x5f2243}=_0x43827b,{x:_0x5ea9b1,y:_0x545fba}=_0x32d114[_0x311f57(0x123)](_0x3d68d3[_0x311f57(0x21a)]([_0x1bb496,_0x5f2243])),{scaleX:_0x3226de,scaleY:_0x3aa9a7}=_0x32d114[_0x311f57(0x1d9)](),_0x19cc36=_0x32d114['getViewport'](_0x119346['VIEW_MAIN']),_0x28fb3a=_0x32d114[_0x311f57(0x1ea)](_0x3d68d3[_0x311f57(0x21a)]([_0x5ea9b1,_0x545fba]),_0x19cc36),_0x17feb1=_0x32bd0a[_0x311f57(0x2b9)](_0x1bb496,_0x5f2243,_0x3226de,_0x3aa9a7,_0x28fb3a);((_0x5858ec=this['_lastPointer'])==null?void 0x0:_0x5858ec[_0x311f57(0x190)])===_0x17feb1[_0x311f57(0x190)]&&((_0x1c9ced=this[_0x311f57(0x107)])==null?void 0x0:_0x1c9ced[_0x311f57(0x144)])===_0x17feb1[_0x311f57(0x144)]||this[_0x311f57(0x29f)][_0x311f57(0x10c)](_0x23d277=>{const _0x368f20=_0x311f57;_0x23d277[_0x368f20(0x196)](_0x17feb1);});},0x64));});}[_0x17237f(0x1c2)](_0x554c10,_0x2cca73){const _0x30ac33=_0x17237f;var _0x45421b;const _0x52773a=(_0x45421b=this[_0x30ac33(0x23a)][_0x30ac33(0x105)]())==null?void 0x0:_0x45421b['skeleton'];if(!_0x52773a)return;const _0x2687c4=this[_0x30ac33(0x12f)]();if(!_0x2687c4)return;this['_cursors']['forEach'](_0x13740f=>{const _0x423888=_0x30ac33;_0x13740f[_0x423888(0x13e)]();});const {scene:_0x2d48c9}=_0x2687c4,_0x4be0af=nn(Array[_0x30ac33(0x296)](_0x2cca73[_0x30ac33(0x2a7)]()))[_0x30ac33(0xf6)](_0x5df6bd=>{const _0x1257f2=_0x30ac33,{color:_0x1de874,range:_0x5e2de1,name:_0xf778b7,selection:_0x5ede7d,sheetID:_0x2f8d66}=_0x5df6bd,{startColumn:_0x507afa,startRow:_0x14cba8,endColumn:_0x35fa7b,endRow:_0x1f78c4}=_0x5e2de1,_0x1565e7=_0x30a09c(_0x14cba8,_0x507afa,_0x2d48c9,_0x52773a),_0x1008d5=_0x30a09c(_0x1f78c4,_0x35fa7b,_0x2d48c9,_0x52773a),{columnHeaderHeightAndMarginTop:_0x5cd228}=_0x52773a,{startX:_0x89a372,startY:_0x4e138a}=_0x1565e7,{endX:_0x468241,endY:_0x1c913a}=_0x1008d5,_0x347cf4=_0x468241-_0x89a372,_0xe0270d=_0x1c913a-_0x4e138a,_0x3544d9={'labelPosition':_0x4e138a-_0x5cd228>=Q?'top':_0x1257f2(0x1bc),'sheetID':_0x2f8d66,'range':_0x5e2de1,'color':_0x1de874,'name':_0xf778b7,'selection':_0x5ede7d,'left':_0x89a372,'top':_0x4e138a,'width':_0x347cf4,'height':_0xe0270d,'evented':!0x1,'zIndex':sn};return new qi(_0xf778b7,_0x3544d9);});_0x2d48c9[_0x30ac33(0x15b)](_0x4be0af,Zi),this['_cursors']=new Set(_0x4be0af);}[_0x17237f(0x19f)](){const _0x4ad5cb=_0x17237f;var _0x168956;(_0x168956=this['_cursors'])==null||_0x168956[_0x4ad5cb(0x10c)](_0x2aafc2=>_0x2aafc2[_0x4ad5cb(0x25c)]());}['_getSheetObject'](){const _0x443ea9=_0x17237f;return _0x3eb96c(this[_0x443ea9(0x182)]['unit'],this[_0x443ea9(0x182)]);}};$e=tn([Ce(0x1,_0x5c536b(_0x32b8e9)),Ce(0x2,_0x5c536b(H)),Ce(0x3,_0x5c536b(_0x29a4c5))],$e);function nn(_0x247857){const _0x160257=_0x17237f,_0x2181ad=new Map();return _0x247857[_0x160257(0x10c)](_0x4a39ef=>{const _0x570c86=_0x160257;if(_0x2181ad[_0x570c86(0x26b)](_0x4a39ef[_0x570c86(0x2b6)])){const _0x117a8a=_0x2181ad[_0x570c86(0x178)](_0x4a39ef[_0x570c86(0x2b6)]);_0x117a8a[_0x570c86(0x119)]+=',\x20'+_0x4a39ef['name'];}else _0x2181ad[_0x570c86(0xda)](_0x4a39ef[_0x570c86(0x2b6)],_0x4a39ef);}),Array[_0x160257(0x296)](_0x2181ad[_0x160257(0x2a7)]());}var rn=Object[_0x17237f(0xf0)],on=(_0x343e04,_0x9b2ea6,_0x323c43,_0x76f56e)=>{const _0x5b5aa9=_0x17237f;for(var _0x4660bc=_0x76f56e>0x1?void 0x0:_0x76f56e?rn(_0x9b2ea6,_0x323c43):_0x9b2ea6,_0x4c4b63=_0x343e04[_0x5b5aa9(0x228)]-0x1,_0x1c66fe;_0x4c4b63>=0x0;_0x4c4b63--)(_0x1c66fe=_0x343e04[_0x4c4b63])&&(_0x4660bc=_0x1c66fe(_0x4660bc)||_0x4660bc);return _0x4660bc;},F=(_0x53cdc9,_0x570399)=>(_0x5e9827,_0x18a500)=>_0x570399(_0x5e9827,_0x18a500,_0x53cdc9);let ce=class extends _0x44dae6{constructor(_0x230140,_0x210e27,_0x1a21cc,_0x313383,_0x22a123,_0x42c6c1){const _0x1a3b78=_0x17237f;super(),this[_0x1a3b78(0x2af)]=_0x230140,this['_localCacheService']=_0x210e27,this[_0x1a3b78(0x1b3)]=_0x1a21cc,this[_0x1a3b78(0x1ab)]=_0x313383,this['_notificationService']=_0x22a123,this['_localeService']=_0x42c6c1,this[_0x1a3b78(0x1d2)](),this[_0x1a3b78(0x164)]();}[_0x17237f(0x1d2)](){const _0x4511f3=_0x17237f;this[_0x4511f3(0x125)](this[_0x4511f3(0x2af)]['registerBeforeClose'](()=>{const _0x1dc3b4=_0x4511f3;if(this[_0x1dc3b4(0x22c)][_0x1dc3b4(0x2b5)][_0x1dc3b4(0x148)])return this[_0x1dc3b4(0xe1)]['t'](_0x1dc3b4(0x11b));}));}[_0x17237f(0x164)](){const _0x4d61c8=_0x17237f;this['disposeWithMe'](this[_0x4d61c8(0x1b3)][_0x4d61c8(0x2d9)][_0x4d61c8(0x185)](_0x18a80a=>{const _0x2bec78=_0x4d61c8;_0x18a80a['id']===_0x1eaeeb[_0x2bec78(0x2f0)]&&this[_0x2bec78(0x1ab)]['show']({'type':_0x1d2d9e[_0x2bec78(0x21e)],'content':this[_0x2bec78(0xe1)]['t'](_0x2bec78(0x154))}),_0x18a80a['id']===_0x1eaeeb[_0x2bec78(0x1d6)]&&this[_0x2bec78(0x1ab)][_0x2bec78(0x1bf)]({'type':_0x1d2d9e[_0x2bec78(0x21e)],'content':this['_localeService']['t'](_0x2bec78(0x177))}),_0x18a80a['id']===_0x1eaeeb[_0x2bec78(0xd6)]&&this[_0x2bec78(0x2a6)][_0x2bec78(0x1bf)]({'title':this['_localeService']['t'](_0x2bec78(0x2b3)),'content':this[_0x2bec78(0xe1)]['t'](_0x2bec78(0x169)),'type':'error','duration':0x0}),_0x18a80a['id']===_0x1eaeeb[_0x2bec78(0x149)]&&this[_0x2bec78(0x1ab)][_0x2bec78(0x1bf)]({'type':_0x1d2d9e['Error'],'content':this['_localeService']['t'](_0x2bec78(0x177))+'('+_0x18a80a[_0x2bec78(0x28f)]+')'}),_0x18a80a['id']===_0x1eaeeb[_0x2bec78(0x1e0)]&&this[_0x2bec78(0x1ab)][_0x2bec78(0x1bf)]({'type':_0x1d2d9e[_0x2bec78(0x21e)],'content':this[_0x2bec78(0xe1)]['t'](_0x18a80a['data']||'')}),_0x18a80a['id']===_0x1eaeeb['SOCKET_FAILED_RETRY']&&this[_0x2bec78(0x1ab)][_0x2bec78(0x1bf)]({'type':_0x1d2d9e[_0x2bec78(0x21e)],'content':this[_0x2bec78(0xe1)]['t'](_0x2bec78(0x13b))}),_0x18a80a['id']===_0x1eaeeb[_0x2bec78(0x115)]&&this[_0x2bec78(0x1ab)][_0x2bec78(0x1bf)]({'type':_0x1d2d9e[_0x2bec78(0x1e2)],'content':this['_localeService']['t'](_0x2bec78(0x2b1))}),_0x18a80a['id']===_0x1eaeeb[_0x2bec78(0x22d)]&&this[_0x2bec78(0x1ab)]['show']({'type':_0x1d2d9e[_0x2bec78(0x1e2)],'content':this[_0x2bec78(0xe1)]['t'](_0x2bec78(0x14e))});}));}};ce=on([F(0x0,_0x11c6b2),F(0x1,_0x3e5102),F(0x2,_0x5c536b(_0x499b46)),F(0x3,_0x1dc4aa),F(0x4,_0x27ed68),F(0x5,_0x5c536b(_0xc8cfd9))],ce);const an=_0x17237f(0x143),rt={};var cn=Object[_0x17237f(0xf0)],_n=(_0x2143df,_0x39fad1,_0xee57fc,_0x24c50a)=>{const _0x5b7234=_0x17237f;for(var _0x104ab1=_0x24c50a>0x1?void 0x0:_0x24c50a?cn(_0x39fad1,_0xee57fc):_0x39fad1,_0x302055=_0x2143df[_0x5b7234(0x228)]-0x1,_0x20c682;_0x302055>=0x0;_0x302055--)(_0x20c682=_0x2143df[_0x302055])&&(_0x104ab1=_0x20c682(_0x104ab1)||_0x104ab1);return _0x104ab1;},ot=(_0x5a4842,_0x45dc62)=>(_0x112a9e,_0x5038ae)=>_0x45dc62(_0x112a9e,_0x5038ae,_0x5a4842);let _e=class{constructor(_0x471a27,_0x1528f8){const _0x1cbffb=_0x17237f;this[_0x1cbffb(0x24e)]=_0x471a27,this[_0x1cbffb(0x13f)]=_0x1528f8;}[_0x17237f(0x12a)](_0x50feb7){const _0x231404=_0x17237f;this[_0x231404(0x126)](_0x50feb7),this['_transformPreviousActiveRange'](_0x50feb7);}[_0x17237f(0x202)](_0x2c9caf){const _0x4cdd86=_0x17237f,{unitID:_0x283c67}=_0x2c9caf,_0x551048=this[_0x4cdd86(0x13f)][_0x4cdd86(0x237)](_0x283c67)[_0x4cdd86(0x189)](_0x978053),{redoCache:_0x5be208}=_0x551048[_0x4cdd86(0x19b)]();if(_0x5be208['length']===0x0)return _0x2c9caf;let _0x1490d7=_0x460d6c['deepClone'](_0x2c9caf[_0x4cdd86(0x252)][0x0]);for(let _0x1bd16b=0x0;_0x1bd16b<_0x5be208[_0x4cdd86(0x228)];_0x1bd16b++){const _0x2c2b3a={'id':_0x4cdd86(0x1c6),'params':{..._0x5be208[_0x1bd16b]}},_0x5479f4=this['_transformService'][_0x4cdd86(0x1c8)](_0x1490d7,_0x2c2b3a,!0x1);if(_0x36c0af(_0x5479f4))throw _0x5479f4[_0x4cdd86(0x2d2)];_0x1490d7=_0x5479f4[_0x4cdd86(0x253)];}return{..._0x460d6c['deepClone'](_0x2c9caf),'mutations':[_0x1490d7]};}[_0x17237f(0x126)](_0x504da6){const _0x21f30e=_0x17237f,{unitID:_0x4caa9a}=_0x504da6,_0x39218d=this[_0x21f30e(0x13f)][_0x21f30e(0x237)](_0x4caa9a)[_0x21f30e(0x189)](_0x978053),{undoCache:_0x375a55,redoCache:_0x5d3163}=_0x39218d[_0x21f30e(0x19b)]();if(_0x375a55['length']===0x0||_0x5d3163[_0x21f30e(0x228)]===0x0)return;const _0xf57c8c=[],_0x4285c4=[];let _0x3d86b5=_0x460d6c[_0x21f30e(0x1d8)](_0x504da6[_0x21f30e(0x252)][0x0]),_0x1c6833=_0x460d6c[_0x21f30e(0x1d8)](_0x504da6[_0x21f30e(0x252)][0x0]);for(let _0x1e5b90=_0x375a55[_0x21f30e(0x228)]-0x1;_0x1e5b90>=0x0;_0x1e5b90--){const _0x3d10a5={'id':_0x21f30e(0x1c6),'params':{..._0x375a55[_0x1e5b90]}},_0x3eebbe={'id':_0x21f30e(0x1c6),'params':{..._0x5d3163[_0x1e5b90]}},_0x5e38e7=this[_0x21f30e(0x24e)][_0x21f30e(0x1c8)](_0x3d86b5,_0x3d10a5,!0x1),_0x563fd8=this['_transformService'][_0x21f30e(0x1c8)](_0x1c6833,_0x3eebbe,!0x1);if(_0x36c0af(_0x5e38e7))throw _0x5e38e7[_0x21f30e(0x2d2)];if(_0x36c0af(_0x563fd8))throw _0x563fd8[_0x21f30e(0x2d2)];_0xf57c8c[_0x21f30e(0x1de)](_0x5e38e7[_0x21f30e(0x1b1)][_0x21f30e(0x2d8)]),_0x4285c4[_0x21f30e(0x1de)](_0x563fd8[_0x21f30e(0x1b1)][_0x21f30e(0x2d8)]),_0x3d86b5=_0x5e38e7['m1Prime'],_0x1c6833=_0x563fd8[_0x21f30e(0x253)];}_0x39218d['setUndoRedoMutationParamsCache']({'undoCache':_0xf57c8c,'redoCache':_0x4285c4});}['_transformPreviousActiveRange'](_0x340cbf){const _0x519165=_0x17237f,{unitID:_0x35881b}=_0x340cbf,_0x36dad1=this['_renderManagerService'][_0x519165(0x237)](_0x35881b)[_0x519165(0x189)](_0x978053),_0x4eb123=_0x36dad1['getActiveRange']();if(_0x4eb123==null)return;const _0x23f401=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x340cbf[_0x519165(0x153)],'actions':null,'textRanges':[_0x4eb123]}}],_0x1124a6=this[_0x519165(0x24e)]['transformMutationsWithChangeset'](_0x340cbf,_0x23f401);if(!_0x3df9c9(_0x1124a6))throw _0x1124a6[_0x519165(0x2d2)];const _0x223599=_0x1124a6['m2Prime'][0x0][_0x519165(0x2d8)][_0x519165(0x290)];Array[_0x519165(0xe9)](_0x223599)&&_0x223599['length']&&_0x36dad1[_0x519165(0x120)](_0x223599[0x0]);}};_e=_n([ot(0x0,_0x44d9e1),ot(0x1,_0x4043b7)],_e);var ln=Object['getOwnPropertyDescriptor'],hn=(_0x1816c4,_0x2cb26c,_0x41e2d2,_0x370220)=>{const _0x4a3f8c=_0x17237f;for(var _0x79a09a=_0x370220>0x1?void 0x0:_0x370220?ln(_0x2cb26c,_0x41e2d2):_0x2cb26c,_0x2299ca=_0x1816c4[_0x4a3f8c(0x228)]-0x1,_0x160319;_0x2299ca>=0x0;_0x2299ca--)(_0x160319=_0x1816c4[_0x2299ca])&&(_0x79a09a=_0x160319(_0x79a09a)||_0x79a09a);return _0x79a09a;},Re=(_0x518993,_0x5b7a66)=>(_0x1a37ad,_0xae5077)=>_0x5b7a66(_0x1a37ad,_0xae5077,_0x518993);let le=class{constructor(_0x3b9a68,_0x1a4d4d,_0x12e79d){const _0x5e7f9d=_0x17237f;this[_0x5e7f9d(0x2db)]=_0x3b9a68,this[_0x5e7f9d(0x24e)]=_0x1a4d4d,this[_0x5e7f9d(0x222)]=_0x12e79d;}[_0x17237f(0x12e)](_0x54e8da){const _0xc31488=_0x17237f;this[_0xc31488(0x276)](_0x54e8da);}['transformRemoteChangeset'](_0x2c86fd){const _0x507d47=_0x17237f,{unitID:_0x465d6a}=_0x2c86fd,{collaboration:_0x4c9f76}=this['_docStateChangeManagerService'][_0x507d47(0x184)](_0x465d6a);if(_0x4c9f76[_0x507d47(0x228)]===0x0)return _0x2c86fd;let _0x42fd7f=_0x460d6c['deepClone'](_0x2c86fd[_0x507d47(0x252)][0x0]);for(let _0x6c6101=0x0;_0x6c6101<_0x4c9f76[_0x507d47(0x228)];_0x6c6101++){const _0x74b0d9={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4c9f76[_0x6c6101][_0x507d47(0x1db)],..._0x4c9f76[_0x6c6101][_0x507d47(0x140)]}},_0x4d54aa=this[_0x507d47(0x24e)][_0x507d47(0x1c8)](_0x42fd7f,_0x74b0d9,!0x1);if(_0x36c0af(_0x4d54aa))throw _0x4d54aa[_0x507d47(0x2d2)];_0x42fd7f=_0x4d54aa[_0x507d47(0x253)];}return{..._0x460d6c['deepClone'](_0x2c86fd),'mutations':[_0x42fd7f]};}[_0x17237f(0x276)](_0x3b5b63){const _0x2e831d=_0x17237f,{unitID:_0x8b6eb9}=_0x3b5b63,{history:_0x3bc38d,collaboration:_0x4da337}=this[_0x2e831d(0x222)][_0x2e831d(0x184)](_0x8b6eb9);if(_0x3bc38d[_0x2e831d(0x228)]===0x0&&_0x4da337[_0x2e831d(0x228)]===0x0)return;const _0x5b998c=[],_0x42384e=[];let _0x2beaae=_0x460d6c['deepClone'](_0x3b5b63[_0x2e831d(0x252)][0x0]),_0x2a2ceb=_0x460d6c[_0x2e831d(0x1d8)](_0x3b5b63['mutations'][0x0]);for(let _0x33fa79=_0x3bc38d[_0x2e831d(0x228)]-0x1;_0x33fa79>=0x0;_0x33fa79--){const _0x368994={'id':_0x2e831d(0x1c6),'params':{'unitId':_0x3bc38d[_0x33fa79][_0x2e831d(0x1db)],..._0x3bc38d[_0x33fa79][_0x2e831d(0x2c5)]}},_0x1093e9={'id':_0x2e831d(0x1c6),'params':{'unitId':_0x3bc38d[_0x33fa79][_0x2e831d(0x1db)],..._0x3bc38d[_0x33fa79][_0x2e831d(0x140)]}},_0x152529=this[_0x2e831d(0x24e)][_0x2e831d(0x1c8)](_0x2beaae,_0x368994,!0x1),_0xc329c3=this[_0x2e831d(0x24e)][_0x2e831d(0x1c8)](_0x2a2ceb,_0x1093e9,!0x1);if(_0x36c0af(_0x152529))throw _0x152529['error'];if(_0x36c0af(_0xc329c3))throw _0xc329c3[_0x2e831d(0x2d2)];_0x5b998c[_0x2e831d(0x1de)]({..._0x3bc38d[_0x33fa79],'undoState':_0x152529[_0x2e831d(0x1b1)]['params'],'redoState':_0xc329c3[_0x2e831d(0x1b1)][_0x2e831d(0x2d8)]}),_0x2beaae=_0x152529[_0x2e831d(0x253)],_0x2a2ceb=_0xc329c3[_0x2e831d(0x253)];}_0x2beaae=_0x460d6c[_0x2e831d(0x1d8)](_0x3b5b63['mutations'][0x0]),_0x2a2ceb=_0x460d6c[_0x2e831d(0x1d8)](_0x3b5b63['mutations'][0x0]);for(let _0x44affe=_0x4da337[_0x2e831d(0x228)]-0x1;_0x44affe>=0x0;_0x44affe--){const _0xf6638={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4da337[_0x44affe][_0x2e831d(0x1db)],..._0x4da337[_0x44affe][_0x2e831d(0x2c5)]}},_0x511633={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4da337[_0x44affe][_0x2e831d(0x1db)],..._0x4da337[_0x44affe]['redoState']}},_0x58ecf0=this[_0x2e831d(0x24e)][_0x2e831d(0x1c8)](_0x2beaae,_0xf6638,!0x1),_0x2951c6=this[_0x2e831d(0x24e)][_0x2e831d(0x1c8)](_0x2a2ceb,_0x511633,!0x1);if(_0x36c0af(_0x58ecf0))throw _0x58ecf0[_0x2e831d(0x2d2)];if(_0x36c0af(_0x2951c6))throw _0x2951c6['error'];_0x42384e[_0x2e831d(0x1de)]({..._0x4da337[_0x44affe],'undoState':_0x58ecf0['m2Prime'][_0x2e831d(0x2d8)],'redoState':_0x2951c6['m2Prime']['params']}),_0x2beaae=_0x58ecf0[_0x2e831d(0x253)],_0x2a2ceb=_0x2951c6[_0x2e831d(0x253)];}this[_0x2e831d(0x222)][_0x2e831d(0x10d)](_0x8b6eb9,{'history':_0x5b998c,'collaboration':_0x42384e});}};le=hn([Re(0x0,_0x5c536b(_0xd42208)),Re(0x1,_0x44d9e1),Re(0x2,_0x5c536b(_0x2a227d))],le);var un=Object[_0x17237f(0xf0)],dn=(_0x2ebc47,_0x447f78,_0x3317e0,_0x840b1d)=>{const _0x4a25ad=_0x17237f;for(var _0x2fee7c=_0x840b1d>0x1?void 0x0:_0x840b1d?un(_0x447f78,_0x3317e0):_0x447f78,_0x151d0d=_0x2ebc47[_0x4a25ad(0x228)]-0x1,_0x40b969;_0x151d0d>=0x0;_0x151d0d--)(_0x40b969=_0x2ebc47[_0x151d0d])&&(_0x2fee7c=_0x40b969(_0x2fee7c)||_0x2fee7c);return _0x2fee7c;},at=(_0x7f0a13,_0x147ff8)=>(_0x261c23,_0x9b04c0)=>_0x147ff8(_0x261c23,_0x9b04c0,_0x7f0a13);let he=class{constructor(_0x17d9e6,_0x4d62a5){const _0x3fffad=_0x17237f;this[_0x3fffad(0x2db)]=_0x17d9e6,this[_0x3fffad(0x24e)]=_0x4d62a5;}['transformSelections'](_0x15e1bc){const _0x5311e9=_0x17237f;var _0x291425;const _0x737c90=this[_0x5311e9(0x2db)][_0x5311e9(0x178)](_0x2ca068),_0x1fd2e6=(_0x291425=_0x737c90['getDocRanges']())!=null?_0x291425:[];if(_0x1fd2e6[_0x5311e9(0x228)]===0x0)return;const _0x414169=_0x15e1bc[_0x5311e9(0x153)],_0x21eb78=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x414169,'actions':null,'textRanges':_0x1fd2e6}}],_0x5ba40c=this['_transformService']['transformMutationsWithChangeset'](_0x15e1bc,_0x21eb78);if(!_0x3df9c9(_0x5ba40c))throw _0x5ba40c[_0x5311e9(0x2d2)];const _0x1e77e9=_0x5ba40c['m2Prime'][0x0][_0x5311e9(0x2d8)][_0x5311e9(0x290)];Array[_0x5311e9(0xe9)](_0x1e77e9)&&_0x1e77e9[_0x5311e9(0x228)]&&_0x737c90['replaceDocRanges'](_0x1e77e9,{'unitId':_0x414169,'subUnitId':_0x414169},!0x1);}};he=dn([at(0x0,_0x5c536b(_0xd42208)),at(0x1,_0x44d9e1)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x5cf786,_0x516784,_0x3b06f6,_0x3f8a3a)=>{for(var _0x283625=_0x3f8a3a>0x1?void 0x0:_0x3f8a3a?Sn(_0x516784,_0x3b06f6):_0x516784,_0x1d8886=_0x5cf786['length']-0x1,_0x4ee85f;_0x1d8886>=0x0;_0x1d8886--)(_0x4ee85f=_0x5cf786[_0x1d8886])&&(_0x283625=_0x4ee85f(_0x283625)||_0x283625);return _0x283625;},b=(_0x613d9c,_0x2bcc94)=>(_0x1729a7,_0x1cea31)=>_0x2bcc94(_0x1729a7,_0x1cea31,_0x613d9c);let ue=class extends _0x44dae6{constructor(_0x421c0b,_0x5ca714,_0x5f514e,_0x6d143c,_0x4299f4,_0x3db77f,_0x1bd0d4,_0x851253){const _0x5efd98=_0x17237f;super(),l(this,_0x5efd98(0x244),new _0xacfd1(_0x1e7576[_0x5efd98(0x214)])),(this[_0x5efd98(0x222)]=_0x421c0b,this['_collaborationController']=_0x5ca714,this[_0x5efd98(0xf5)]=_0x5f514e,this[_0x5efd98(0xcd)]=_0x6d143c,this[_0x5efd98(0xc9)]=_0x4299f4,this[_0x5efd98(0x167)]=_0x3db77f,this[_0x5efd98(0x1ab)]=_0x1bd0d4,this['_localeService']=_0x851253,this[_0x5efd98(0x151)]());}['_initEntityListener'](){const _0x233c30=_0x17237f;this[_0x233c30(0x125)](this[_0x233c30(0x21c)]['entityInit$'][_0x233c30(0x185)](_0x24aafa=>{const _0x322b36=_0x233c30,_0x528aa8=this[_0x322b36(0x222)]['docStateChange$'][_0x322b36(0x185)](_0x24b1f0=>{const _0x2c5229=_0x322b36;if(_0x24b1f0==null)return;const {unitId:_0x1e6f2c,redoState:_0x581731,commandId:_0x1539ff}=_0x24b1f0;if(_0x1e6f2c!==_0x24aafa[_0x2c5229(0x153)])return;const _0x5c089d={'id':_0x1539ff,'type':_0x1e464c[_0x2c5229(0x1c3)],'params':{'unitId':_0x1e6f2c,'actions':_0x581731[_0x2c5229(0x297)],'textRanges':null}};_0x24aafa[_0x2c5229(0x27d)](_0x5c089d);});if(_0x24aafa[_0x322b36(0x125)](_0x528aa8),_0x24aafa instanceof _0x185dc5){const _0x5b1cb2={'onTransformIME':_0x199ae6=>this[_0x322b36(0xf5)][_0x322b36(0x12a)](_0x199ae6),'onTransformState':_0x24d515=>this[_0x322b36(0xcd)][_0x322b36(0x12e)](_0x24d515),'onTransformSelections':_0x2d1364=>this[_0x322b36(0xc9)]['transformSelections'](_0x2d1364),'onSyncEditingCollabCursor':_0xbdc783=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0xbdc783),'onTransformRemoteChangesetByIMECache':_0x1527c4=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x1527c4),'onTransformRemoteChangesetByStateCache':_0x8f0750=>this[_0x322b36(0xcd)][_0x322b36(0x202)](_0x8f0750)};_0x24aafa['addHandlerCallback'](_0x5b1cb2);}}));}};ue=In([b(0x0,_0x5c536b(_0x2a227d)),b(0x1,_0x5c536b(_0x1d2099)),b(0x2,_0x5c536b(_e)),b(0x3,_0x5c536b(le)),b(0x4,_0x5c536b(he)),b(0x5,_0x5c536b(Xe)),b(0x6,_0x1dc4aa),b(0x7,_0x5c536b(_0xc8cfd9))],ue);var Z=(_0x3bd116=>(_0x3bd116[_0x3bd116['UNDEFINED']=0x0]=_0x17237f(0x137),_0x3bd116[_0x3bd116['OK']=0x1]='OK',_0x3bd116[_0x3bd116[_0x17237f(0x16a)]=0x2]=_0x17237f(0x16a),_0x3bd116[_0x3bd116[_0x17237f(0xd6)]=0x3]=_0x17237f(0xd6),_0x3bd116[_0x3bd116[_0x17237f(0x2d0)]=0x4]='NOT_FOUND',_0x3bd116[_0x3bd116[_0x17237f(0x198)]=0x5]=_0x17237f(0x198),_0x3bd116[_0x3bd116[_0x17237f(0x294)]=0x6]=_0x17237f(0x294),_0x3bd116[_0x3bd116[_0x17237f(0x2f1)]=0x7]=_0x17237f(0x2f1),_0x3bd116[_0x3bd116[_0x17237f(0x272)]=0x8]=_0x17237f(0x272),_0x3bd116[_0x3bd116[_0x17237f(0x21b)]=0x9]=_0x17237f(0x21b),_0x3bd116[_0x3bd116[_0x17237f(0x238)]=0xa]='LOGIN_FAILED',_0x3bd116[_0x3bd116['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x3bd116[_0x3bd116[_0x17237f(0x155)]=0xc]=_0x17237f(0x155),_0x3bd116[_0x3bd116['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x17237f(0x2f5),_0x3bd116[_0x3bd116[_0x17237f(0x172)]=0xe]=_0x17237f(0x172),_0x3bd116[_0x3bd116[_0x17237f(0x21f)]=0xf]=_0x17237f(0x21f),_0x3bd116[_0x3bd116['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x17237f(0x27f),_0x3bd116[_0x3bd116[_0x17237f(0xe4)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x3bd116[_0x3bd116[_0x17237f(0x2d3)]=0x65]=_0x17237f(0x2d3),_0x3bd116[_0x3bd116['USER_NOT_FOUND']=0xc9]=_0x17237f(0x181),_0x3bd116[_0x3bd116[_0x17237f(0xeb)]=0xca]='USER_IS_ANONYMOUS',_0x3bd116[_0x3bd116[_0x17237f(0x2f8)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x3bd116[_0x3bd116[_0x17237f(0x1e4)]=0x1771]=_0x17237f(0x1e4),_0x3bd116[_0x3bd116['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x17237f(0x22b),_0x3bd116[_0x3bd116[_0x17237f(0x12b)]=0x1773]=_0x17237f(0x12b),_0x3bd116[_0x3bd116[_0x17237f(0x193)]=0x1b59]='APPLY_REJECT',_0x3bd116[_0x3bd116[_0x17237f(0x1e3)]=0x1b5a]=_0x17237f(0x1e3),_0x3bd116[_0x3bd116['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x17237f(0x1a8),_0x3bd116[_0x3bd116[_0x17237f(0x2c4)]=0x1b5c]=_0x17237f(0x2c4),_0x3bd116[_0x3bd116[_0x17237f(0x2ba)]=0x1b5d]=_0x17237f(0x2ba),_0x3bd116[_0x3bd116[_0x17237f(0x29e)]=0x1f41]=_0x17237f(0x29e),_0x3bd116[_0x3bd116[_0x17237f(0x1fe)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x3bd116[_0x3bd116[_0x17237f(0x287)]=0x232a]=_0x17237f(0x287),_0x3bd116[_0x3bd116['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x3bd116[_0x3bd116['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x17237f(0x268),_0x3bd116[_0x3bd116[_0x17237f(0x15e)]=0x232d]=_0x17237f(0x15e),_0x3bd116[_0x3bd116[_0x17237f(0x2da)]=0x2711]=_0x17237f(0x2da),_0x3bd116[_0x3bd116[_0x17237f(0x10f)]=0x2712]=_0x17237f(0x10f),_0x3bd116[_0x3bd116[_0x17237f(0x15d)]=0x2713]=_0x17237f(0x15d),_0x3bd116[_0x3bd116[_0x17237f(0x292)]=0x2714]=_0x17237f(0x292),_0x3bd116[_0x3bd116['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x17237f(0x101),_0x3bd116[_0x3bd116['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x17237f(0x29b),_0x3bd116[_0x3bd116[_0x17237f(0x150)]=0x271c]=_0x17237f(0x150),_0x3bd116[_0x3bd116['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x3bd116[_0x3bd116[_0x17237f(0x117)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x3bd116[_0x3bd116[_0x17237f(0x110)]=0x271f]=_0x17237f(0x110),_0x3bd116[_0x3bd116[_0x17237f(0x197)]=0x2720]=_0x17237f(0x197),_0x3bd116[_0x3bd116[_0x17237f(0x18b)]=0x2af9]=_0x17237f(0x18b),_0x3bd116[_0x3bd116['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x3bd116[_0x3bd116[_0x17237f(0x17b)]=0x2ee2]='INVALID_INVITE_CODE',_0x3bd116[_0x3bd116[_0x17237f(0x11c)]=0x2ee3]=_0x17237f(0x11c),_0x3bd116[_0x3bd116['USER_NOT_INVITED_CODE']=0x2ee4]=_0x17237f(0x2e2),_0x3bd116[_0x3bd116[_0x17237f(0x2de)]=0x2ee5]=_0x17237f(0x2de),_0x3bd116[_0x3bd116['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x17237f(0x24c),_0x3bd116[_0x3bd116[_0x17237f(0x2eb)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x3bd116[_0x3bd116[_0x17237f(0x1cf)]=0x32cb]=_0x17237f(0x1cf),_0x3bd116[_0x3bd116['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x17237f(0x280),_0x3bd116[_0x3bd116[_0x17237f(0x160)]=0x36b2]=_0x17237f(0x160),_0x3bd116[_0x3bd116[_0x17237f(0x205)]=0x36b3]=_0x17237f(0x205),_0x3bd116[_0x3bd116[_0x17237f(0x2ae)]=0x36b4]=_0x17237f(0x2ae),_0x3bd116[_0x3bd116[_0x17237f(0x1e6)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x3bd116[_0x3bd116['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x17237f(0x204),_0x3bd116[_0x3bd116[_0x17237f(0x1aa)]=0x3717]=_0x17237f(0x1aa),_0x3bd116[_0x3bd116[_0x17237f(0x1f5)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x3bd116[_0x3bd116[_0x17237f(0x180)]=0x3a99]=_0x17237f(0x180),_0x3bd116[_0x3bd116[_0x17237f(0x18d)]=0x3a9a]=_0x17237f(0x18d),_0x3bd116[_0x3bd116[_0x17237f(0xea)]=0x3a9b]=_0x17237f(0xea),_0x3bd116[_0x3bd116['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x17237f(0x208),_0x3bd116[_0x3bd116[_0x17237f(0x267)]=0x3a9d]=_0x17237f(0x267),_0x3bd116[_0x3bd116[_0x17237f(0x18c)]=0x3a9e]=_0x17237f(0x18c),_0x3bd116[_0x3bd116[_0x17237f(0x240)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x3bd116[_0x3bd116['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x17237f(0x281),_0x3bd116[_0x3bd116[_0x17237f(0x10a)]=-0x1]=_0x17237f(0x10a),_0x3bd116))(Z||{});function mn(_0x2fddb2){const _0x24272d=_0x17237f;var _0x97dfaa,_0x1240ca;const _0x43b1f1=(_0x97dfaa=_0x2fddb2[_0x24272d(0x1fc)])==null?void 0x0:_0x97dfaa[_0x24272d(0x1b0)],_0x57a193=((_0x1240ca=_0x2fddb2['stageInfo'])==null?void 0x0:_0x1240ca[_0x24272d(0x25f)])||0x0;return _0x43b1f1===_0x58cca8[_0x24272d(0x139)]&&_0x57a193>0x0;}function fn(_0x585ec9){const _0x34b26d=_0x17237f;return _0x585ec9[_0x34b26d(0x2a0)]===_0x13c937[_0x34b26d(0x2a5)];}var gn=Object[_0x17237f(0xf0)],vn=(_0x5c36f7,_0x4d7400,_0xbd9c62,_0x32988d)=>{const _0x2ef770=_0x17237f;for(var _0x1e3a08=_0x32988d>0x1?void 0x0:_0x32988d?gn(_0x4d7400,_0xbd9c62):_0x4d7400,_0x501109=_0x5c36f7[_0x2ef770(0x228)]-0x1,_0x4e7188;_0x501109>=0x0;_0x501109--)(_0x4e7188=_0x5c36f7[_0x501109])&&(_0x1e3a08=_0x4e7188(_0x1e3a08)||_0x1e3a08);return _0x1e3a08;},P=(_0x227507,_0x239059)=>(_0xda36a5,_0x39340e)=>_0x239059(_0xda36a5,_0x39340e,_0x227507);const En='/universer-api/license/formula/limit/status',pn=_0x17237f(0x14a),On=_0x17237f(0x1b8);let de=class extends _0x44dae6{constructor(_0x428c50,_0x58e439,_0x1694fd,_0x511056,_0x3135e8,_0x25b947,_0x28e2a3){const _0x544774=_0x17237f;super(),l(this,'_pollingInterval',null),l(this,'_maxFormulaLimit',0x0),l(this,_0x544774(0x12c),0x0),l(this,_0x544774(0x2ee),[]),l(this,'_lastResponseTimestamp',0x0),(this[_0x544774(0x1ab)]=_0x428c50,this['_commandService']=_0x58e439,this['_configService']=_0x1694fd,this[_0x544774(0x129)]=_0x511056,this[_0x544774(0x28c)]=_0x3135e8,this[_0x544774(0x279)]=_0x25b947,this[_0x544774(0xe1)]=_0x28e2a3,this['_initCommandInterceptor']());}['_initCommandInterceptor'](){const _0x39efa3=_0x17237f;this['disposeWithMe'](this[_0x39efa3(0x220)]['beforeCommandExecuted']((_0x2a2970,_0x21508d)=>{const _0xf5a66f=_0x39efa3;var _0xc98a08;if(_0x2a2970['id']!==_0x34f99e['id'])return;const _0x302947=_0x2a2970['params'];if(!this[_0xf5a66f(0x20a)]((_0xc98a08=_0x302947['dirtyRanges'])!=null?_0xc98a08:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0xf5a66f(0x1d1)](_0x2a2970,_0x21508d),this[_0xf5a66f(0xe3)](),new _0x246706();})),this[_0x39efa3(0x125)](this['_commandService'][_0x39efa3(0xc7)]((_0x130c08,_0x1cd260)=>{const _0x25f9f9=_0x39efa3;if(_0x130c08['id']!==_0x167251['id'])return;const _0x219d7e=_0x130c08[_0x25f9f9(0x2d8)];if(mn(_0x219d7e)){const _0xbe27e8=_0x2020d1();this[_0x25f9f9(0x2ee)][_0x25f9f9(0x175)](_0xbe27e8),this[_0x25f9f9(0xf7)](_0xbe27e8);}else{if(fn(_0x219d7e)&&this['_taskIds']['length']>0x0){const _0xcee83e=this[_0x25f9f9(0x2ee)]['shift']();this['_releaseCalculationLimit'](_0xcee83e);}}}));}['dispose'](){const _0x3d9133=_0x17237f;super[_0x3d9133(0x25c)](),this[_0x3d9133(0x1fb)](),this[_0x3d9133(0x2ee)]=[],this['_currentUsage']=0x0,this['_maxFormulaLimit']=0x0,this[_0x3d9133(0xd0)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x3e8cf9,_0x46903e){const _0x40fa14=_0x17237f;for(let _0x9a26e2=0x0;_0x9a26e2<0x1e;_0x9a26e2++)try{if(await this[_0x40fa14(0x2c7)](),this['_checkCalculationAvailable']()){this[_0x40fa14(0xef)](_0x3e8cf9,_0x46903e),this[_0x40fa14(0x1ab)][_0x40fa14(0x1bf)]({'content':this[_0x40fa14(0xe1)]['t'](_0x40fa14(0x1fa)),'type':_0x1d2d9e['Success']});return;}await new Promise(_0x581277=>{const _0x432981=_0x40fa14;this[_0x432981(0x145)]=window[_0x432981(0x1a4)](_0x581277,0x3e8);});}catch(_0x132aa1){this['_logService'][_0x40fa14(0x2d2)](_0x132aa1);}this[_0x40fa14(0x1ab)][_0x40fa14(0x1bf)]({'content':this[_0x40fa14(0xe1)]['t']('formula.calculation.unable'),'type':_0x1d2d9e[_0x40fa14(0x1e2)]});}[_0x17237f(0xef)](_0x55ca89,_0x2ca5a1){const _0xa4cc87=_0x17237f;try{this[_0xa4cc87(0x220)][_0xa4cc87(0x2ad)](_0x55ca89['id'],_0x55ca89[_0xa4cc87(0x2d8)],_0x2ca5a1);}catch(_0x3c1aaf){this[_0xa4cc87(0x279)]['error'](_0x3c1aaf);}}['_setFormulaLimitStatus'](_0x4fa388,_0x19e4a9){const _0x3f657c=_0x17237f;_0x19e4a9<this[_0x3f657c(0xd0)]||(this[_0x3f657c(0xd0)]=_0x19e4a9,this[_0x3f657c(0x232)]=Number[_0x3f657c(0x1d3)](_0x4fa388[_0x3f657c(0x127)]),this[_0x3f657c(0x12c)]=Number[_0x3f657c(0x1d3)](_0x4fa388[_0x3f657c(0x285)]));}async[_0x17237f(0xf7)](_0x2e24e7){const _0x2eb59c=_0x17237f;var _0x4f76a2,_0x1e2fa0;const _0x644c61=Date[_0x2eb59c(0x269)]();try{const _0x4344c8=((_0x4f76a2=this[_0x2eb59c(0x13a)][_0x2eb59c(0x2d1)](_0x458d81))==null?void 0x0:_0x4f76a2['startFormulaLimitUrl'])||pn,_0x15a85b=(await this[_0x2eb59c(0x129)][_0x2eb59c(0x2c1)](_0x4344c8,{'body':JSON[_0x2eb59c(0x266)]({'taskId':_0x2e24e7})}))[_0x2eb59c(0x152)];if(((_0x1e2fa0=_0x15a85b[_0x2eb59c(0x2d2)])==null?void 0x0:_0x1e2fa0[_0x2eb59c(0x1f1)])!==Z['OK'])return;this[_0x2eb59c(0x236)](_0x15a85b[_0x2eb59c(0x243)],_0x644c61);}catch(_0x59424a){this[_0x2eb59c(0x279)][_0x2eb59c(0x2d2)](_0x59424a);}}async[_0x17237f(0x2c7)](_0x1ee42d){const _0x1fa8cf=_0x17237f;var _0x55524e,_0x2aeec6;const _0x16d4dd=Date[_0x1fa8cf(0x269)]();try{const _0xd16dcb=((_0x55524e=this[_0x1fa8cf(0x13a)][_0x1fa8cf(0x2d1)](_0x458d81))==null?void 0x0:_0x55524e[_0x1fa8cf(0x26d)])||En,_0x3c3b18=_0x1ee42d?_0xd16dcb+'?taskId='+encodeURIComponent(_0x1ee42d):_0xd16dcb,_0x5a4913=(await this['_httpService']['get'](_0x3c3b18))[_0x1fa8cf(0x152)];if(((_0x2aeec6=_0x5a4913[_0x1fa8cf(0x2d2)])==null?void 0x0:_0x2aeec6[_0x1fa8cf(0x1f1)])!==Z['OK'])return;this[_0x1fa8cf(0x236)](_0x5a4913[_0x1fa8cf(0x243)],_0x16d4dd);}catch(_0x207bc1){this['_logService']['error'](_0x207bc1);}}async[_0x17237f(0x1cb)](_0x5b649a){const _0x56934d=_0x17237f;var _0x5aef69,_0xd78110;const _0x532c92=Date[_0x56934d(0x269)]();try{const _0xc4fb92=((_0x5aef69=this['_configService']['getConfig'](_0x458d81))==null?void 0x0:_0x5aef69[_0x56934d(0x217)])||On,_0x2c1017=(await this[_0x56934d(0x129)][_0x56934d(0x2c1)](_0xc4fb92,{'body':JSON[_0x56934d(0x266)]({'taskId':_0x5b649a})}))['body'];if(((_0xd78110=_0x2c1017[_0x56934d(0x2d2)])==null?void 0x0:_0xd78110['code'])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x2c1017[_0x56934d(0x243)],_0x532c92);}catch(_0x259b83){this['_logService'][_0x56934d(0x2d2)](_0x259b83);}}[_0x17237f(0x116)](){const _0x4cfb00=_0x17237f;return this[_0x4cfb00(0x232)]===0x0?!0x0:this[_0x4cfb00(0x232)]-this[_0x4cfb00(0x12c)]>0x0;}[_0x17237f(0x1fb)](){const _0x39de87=_0x17237f;this[_0x39de87(0x145)]&&(clearTimeout(this[_0x39de87(0x145)]),this[_0x39de87(0x145)]=null);}[_0x17237f(0xe3)](){const _0x186249=_0x17237f;this['_messageService'][_0x186249(0x1bf)]({'content':this['_localeService']['t'](_0x186249(0x225)),'type':_0x1d2d9e['Loading']});}[_0x17237f(0x20a)](_0x2d96bb){const _0x3b4095=_0x17237f;for(const _0x143d7a of _0x2d96bb){const {unitId:_0x1b1d5b,sheetId:_0x56d2f6,range:_0x1aca9e}=_0x143d7a,_0x2827f3=this[_0x3b4095(0x28c)][_0x3b4095(0x2df)](_0x1b1d5b);if(!_0x2827f3)continue;const _0x1b2f1d=_0x2827f3[_0x3b4095(0xf2)](_0x56d2f6);if(!_0x1b2f1d)continue;const _0x4b8b00=_0x1b2f1d[_0x3b4095(0x25b)]();for(let _0x3887c1=_0x1aca9e['startRow'];_0x3887c1<=_0x1aca9e[_0x3b4095(0x2fa)];_0x3887c1++)for(let _0x1e07a3=_0x1aca9e[_0x3b4095(0x2a4)];_0x1e07a3<=_0x1aca9e[_0x3b4095(0x1e8)];_0x1e07a3++){const _0x24faf4=_0x4b8b00[_0x3b4095(0x2a9)](_0x3887c1,_0x1e07a3);if(_0x24faf4&&(_0x5c37f2(_0x24faf4['f'])||_0x17189a(_0x24faf4['si'])))return!0x0;}}return!0x1;}};de=vn([P(0x0,_0x5c536b(_0x1dc4aa)),P(0x1,_0x3a5a9b),P(0x2,_0x1f4c04),P(0x3,_0x5c536b(_0x392506)),P(0x4,_0x160283),P(0x5,_0x226e32),P(0x6,_0x5c536b(_0xc8cfd9))],de);var Tn=Object['getOwnPropertyDescriptor'],Cn=(_0x402529,_0x3dd17,_0x51ea89,_0x40351e)=>{for(var _0x50e5ce=_0x40351e>0x1?void 0x0:_0x40351e?Tn(_0x3dd17,_0x51ea89):_0x3dd17,_0x566c33=_0x402529['length']-0x1,_0x8bb2b8;_0x566c33>=0x0;_0x566c33--)(_0x8bb2b8=_0x402529[_0x566c33])&&(_0x50e5ce=_0x8bb2b8(_0x50e5ce)||_0x50e5ce);return _0x50e5ce;},De=(_0x41b5c5,_0x198985)=>(_0x366524,_0x3556a6)=>_0x198985(_0x366524,_0x3556a6,_0x41b5c5);let xe=class extends _0x44dae6{constructor(_0x4e3467,_0x9272b3,_0x389d96){const _0x94ab3d=_0x17237f;super(),l(this,_0x94ab3d(0x138),new Map()),l(this,_0x94ab3d(0x176),new Map()),l(this,_0x94ab3d(0x2e7),!0x1),(this['_configService']=_0x4e3467,this[_0x94ab3d(0x1cc)]=_0x9272b3,this[_0x94ab3d(0x13d)]=_0x389d96);}[_0x17237f(0x2c9)](){const _0x25664c=_0x17237f;this[_0x25664c(0x2e7)]=!0x0;}[_0x17237f(0x226)](){const _0x31c4fc=_0x17237f;this[_0x31c4fc(0x2e7)]=!0x1;}get[_0x17237f(0x2b5)](){const _0x22bb84=_0x17237f;return this[_0x22bb84(0x176)];}[_0x17237f(0x25c)](){const _0x599a09=_0x17237f;this[_0x599a09(0x26f)]()['then'](()=>super[_0x599a09(0x25c)]());}async['loadOfflineData'](_0x2ff9a4){const _0x584d1e=_0x17237f;return this[_0x584d1e(0x2e7)]?null:this[_0x584d1e(0x1cc)][_0x584d1e(0x291)](_0x931e60(_0x2ff9a4));}async['saveOfflineData'](_0x2c6347,_0x226733){const _0x518951=_0x17237f;return!!this[_0x518951(0x1cc)][_0x518951(0x194)](_0x2c6347,_0x226733);}[_0x17237f(0x1c5)](_0x13bd53,_0x3cde9b,_0x16dfda,_0x5b11e5){const _0x5c4d8a=_0x17237f,_0x37efd1=this[_0x5c4d8a(0x13d)]['getCurrentRevOfUnit'](_0x13bd53);this[_0x5c4d8a(0x138)]['set'](_0x13bd53,{'unitID':_0x13bd53,'type':_0x3cde9b,'awaitingChangeset':_0x16dfda,'mutations':_0x5b11e5,'rev':_0x37efd1}),this[_0x5c4d8a(0x176)][_0x5c4d8a(0x26b)](_0x13bd53)||this[_0x5c4d8a(0x1ce)](_0x13bd53);}['_scheduleSaving'](_0x2a7137){const _0x3c7b53=_0x17237f,_0x255073=this['_getSaveTimeout']();_0x255073===0x0?this['_saveCache'](_0x2a7137):this[_0x3c7b53(0x176)]['set'](_0x2a7137,setTimeout(()=>this['_saveCache'](_0x2a7137),_0x255073));}[_0x17237f(0x15c)](){const _0x2a173d=_0x17237f;var _0x3c2e22;return(_0x3c2e22=this[_0x2a173d(0x13a)]['getConfig'](_0x4fe421))!=null?_0x3c2e22:_0x1aaf25;}['_saveCache'](_0x30e6c1){const _0x42f8b0=_0x17237f,_0x4a74f6=this[_0x42f8b0(0x176)][_0x42f8b0(0x178)](_0x30e6c1);return _0x4a74f6!==void 0x0&&window[_0x42f8b0(0x286)](_0x4a74f6),this[_0x42f8b0(0x1cc)]['setItem'](_0x931e60(_0x30e6c1),this[_0x42f8b0(0x138)]['get'](_0x30e6c1))[_0x42f8b0(0x25e)](()=>this['_saveTaskMap']['delete'](_0x30e6c1));}async[_0x17237f(0x26f)](){const _0x56beec=[];this['_saveTaskMap']['forEach']((_0x56b6c5,_0x3c1a35)=>{const _0x4c2629=_0x63bd;window[_0x4c2629(0x286)](_0x56b6c5),_0x56beec[_0x4c2629(0x175)](this[_0x4c2629(0x2f2)](_0x3c1a35)[_0x4c2629(0x25e)](()=>{const _0x31378e=_0x4c2629;this[_0x31378e(0x176)][_0x31378e(0x1a6)](_0x3c1a35);}));}),await Promise['all'](_0x56beec);}};xe=Cn([De(0x0,_0x1f4c04),De(0x1,_0x28e40d),De(0x2,_0x5c536b(_0xa14ded))],xe);class Rn extends _0x5c4b8f{constructor(){const _0x3d06d5=_0x17237f;super(),l(this,_0x3d06d5(0xc5)),this[_0x3d06d5(0xc5)]=_0x4f22be(window,'popstate')[_0x3d06d5(0x187)](_0x4735a7(this['dispose$']),_0x26ee1c(0x1),_0x5c32a9(void 0x0));}[_0x17237f(0xf1)](_0x21dac1,_0x46a328,_0x30ddbe=!0x1){const _0x93384a=_0x17237f,_0x16727d=new URL(window[_0x93384a(0xd8)][_0x93384a(0x102)]);_0x16727d['searchParams'][_0x93384a(0xda)](_0x21dac1,_0x46a328),_0x30ddbe?window[_0x93384a(0x2bd)][_0x93384a(0x1ad)]('','',_0x16727d[_0x93384a(0xe2)]()):window[_0x93384a(0x2bd)][_0x93384a(0x11e)]('','',_0x16727d['toString']());}[_0x17237f(0x1ca)](_0x3064cf,_0x36b417=!0x1){const _0x1cbb64=_0x17237f,_0x12391b=new URL(window[_0x1cbb64(0xd8)][_0x1cbb64(0x102)]);_0x12391b[_0x1cbb64(0xd9)][_0x1cbb64(0x1a6)](_0x3064cf),_0x36b417?window[_0x1cbb64(0x2bd)][_0x1cbb64(0x1ad)]('','',_0x12391b[_0x1cbb64(0xe2)]()):window['history'][_0x1cbb64(0x11e)]('','',_0x12391b[_0x1cbb64(0xe2)]());}[_0x17237f(0x275)](_0xe9c88f){const _0x33a69b=_0x17237f;var _0x3e698a;return(_0x3e698a=new URL(window[_0x33a69b(0xd8)][_0x33a69b(0x102)])[_0x33a69b(0xd9)]['get'](_0xe9c88f))!=null?_0x3e698a:void 0x0;}}var Dn=Object['defineProperty'],Nn=Object[_0x17237f(0xf0)],bn=(_0x228ff8,_0x1efe98,_0x3cf828)=>_0x1efe98 in _0x228ff8?Dn(_0x228ff8,_0x1efe98,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3cf828}):_0x228ff8[_0x1efe98]=_0x3cf828,Un=(_0x2329d,_0x59d363,_0x5e83ba,_0x3045b3)=>{const _0xae5a4e=_0x17237f;for(var _0x2e9d4a=_0x3045b3>0x1?void 0x0:_0x3045b3?Nn(_0x59d363,_0x5e83ba):_0x59d363,_0x524b90=_0x2329d[_0xae5a4e(0x228)]-0x1,_0xef21f8;_0x524b90>=0x0;_0x524b90--)(_0xef21f8=_0x2329d[_0x524b90])&&(_0x2e9d4a=_0xef21f8(_0x2e9d4a)||_0x2e9d4a);return _0x2e9d4a;},Ne=(_0x2e80d4,_0x45807c)=>(_0x496148,_0x4f6931)=>_0x45807c(_0x496148,_0x4f6931,_0x2e80d4),Ln=(_0x29754f,_0x3cb446,_0x457cd2)=>bn(_0x29754f,_0x3cb446+'',_0x457cd2);const Mn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Be=class extends _0xb645e{constructor(_0x58a29c=rt,_0x4a4ca1,_0x4b7b61,_0x4487e1){const _0xd6d752=_0x17237f;super(),this[_0xd6d752(0x109)]=_0x58a29c,this['_renderManagerService']=_0x4a4ca1,this[_0xd6d752(0x2db)]=_0x4b7b61,this[_0xd6d752(0x13a)]=_0x4487e1;const {..._0x494922}=_0x506591({},rt,this['_config']);this[_0xd6d752(0x13a)]['setConfig'](an,_0x494922);}['onStarting'](){this['_registerDependencies'](),this['_initDependencies']();}['onRendered'](){const _0x5be1ef=_0x17237f;this[_0x5be1ef(0x2d7)]();}['_registerDependencies'](){const _0x41c6d7=_0x17237f;var _0x45cbef;const _0x10e8f1=[[je],[de],[he],[_e],[le],[Xe],[At,{'useClass':Rn}],[_0x5a231a,{'useClass':_0x40a554}],[_0x3e5102,{'useClass':xe}],[oe],[ue],[ce],[H],[Ae],[ae]];_0x1fdbd5(this[_0x41c6d7(0x2db)],_0x13ba52(_0x10e8f1,(_0x45cbef=this[_0x41c6d7(0x109)])==null?void 0x0:_0x45cbef['override']));}[_0x17237f(0x2d7)](){const _0xb21194=_0x17237f;this[_0xb21194(0x125)](this[_0xb21194(0x13f)]['registerRenderModule'](_0xa8e2c5[_0xb21194(0xe7)],[ye])),this[_0xb21194(0x125)](this['_renderManagerService'][_0xb21194(0x1ed)](_0xa8e2c5[_0xb21194(0x2b7)],[$e]));}[_0x17237f(0x2c6)](){const _0x114f50=_0x17237f;_0x3de715(this[_0x114f50(0x2db)],[[H],[oe],[ue],[ce],[ae],[de]]);}};Ln(Be,_0x17237f(0x118),Mn),Be=Un([_0x29abdb(_0x99db96),Ne(0x1,_0x4043b7),Ne(0x2,_0x5c536b(_0xd42208)),Ne(0x3,_0x1f4c04)],Be);var An=Object[_0x17237f(0xf0)],Pn=(_0x3cb365,_0x5eef34,_0x2b65f7,_0x1d6ae0)=>{for(var _0x5b5ec0=_0x1d6ae0>0x1?void 0x0:_0x1d6ae0?An(_0x5eef34,_0x2b65f7):_0x5eef34,_0x20ea05=_0x3cb365['length']-0x1,_0x4af622;_0x20ea05>=0x0;_0x20ea05--)(_0x4af622=_0x3cb365[_0x20ea05])&&(_0x5b5ec0=_0x4af622(_0x5b5ec0)||_0x5b5ec0);return _0x5b5ec0;},J=(_0x3486d4,_0x481473)=>(_0x4867d0,_0x277dd8)=>_0x481473(_0x4867d0,_0x277dd8,_0x3486d4);let ct=class extends _0x3511e9{constructor(_0xbd2831,_0x6c9b96,_0x4a4718,_0x2ab51d,_0x90f680){super(_0xbd2831,_0x6c9b96,_0x4a4718,_0x2ab51d,_0x90f680);}async[_0x17237f(0xd1)](_0x4b4a7d){const _0x497aa6=_0x17237f,_0x1b96f9=await this[_0x497aa6(0x207)](),_0xe41b31=this[_0x497aa6(0x1f6)](_0x4b4a7d,_0x1b96f9);return this[_0x497aa6(0x227)](_0xe41b31);}[_0x17237f(0x1f6)](_0x4e8491,_0x2e33f8){const _0x4bad5c=_0x17237f,_0xab6947=typeof window>'u'?new URL(_0x4e8491):new URL(_0x4e8491,window['location'][_0x4bad5c(0x18e)]);_0xab6947['searchParams']['set'](_0x4bad5c(0x141),_0x2e33f8);const _0xbe0930=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4bad5c(0xd8)][_0x4bad5c(0x218)]);return _0xbe0930[_0x4bad5c(0x178)](_0x4bad5c(0x288))&&_0xab6947[_0x4bad5c(0xd9)][_0x4bad5c(0xda)](_0x4bad5c(0x288),_0xbe0930['get'](_0x4bad5c(0x288))),_0xab6947['toString']();}async[_0x17237f(0x207)](){const _0x4fe19e=_0x17237f;var _0x1591af,_0x4688eb,_0x4293d4;const _0x10279c=this[_0x4fe19e(0x13a)]['getConfig'](_0x458d81),_0x2ce2bb=(_0x1591af=_0x10279c==null?void 0x0:_0x10279c[_0x4fe19e(0x2c2)])!=null?_0x1591af:_0x255342;return(_0x4293d4=(_0x4688eb=(await this[_0x4fe19e(0x129)][_0x4fe19e(0x178)](_0x2ce2bb,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x4688eb['ticket'])!=null?_0x4293d4:'';}};ct=Pn([J(0x0,_0x5c536b(_0xd42208)),J(0x1,_0x5c536b(_0x392506)),J(0x2,_0x1f4c04),J(0x3,_0x226e32),J(0x4,_0x56fa8c)],ct);var wn=Object[_0x17237f(0xf0)],yn=(_0x3261a9,_0xc7bf3e,_0x5e1a9e,_0x47a928)=>{const _0x4975ab=_0x17237f;for(var _0x5e8856=_0x47a928>0x1?void 0x0:_0x47a928?wn(_0xc7bf3e,_0x5e1a9e):_0xc7bf3e,_0x1c3ea4=_0x3261a9[_0x4975ab(0x228)]-0x1,_0x10972c;_0x1c3ea4>=0x0;_0x1c3ea4--)(_0x10972c=_0x3261a9[_0x1c3ea4])&&(_0x5e8856=_0x10972c(_0x5e8856)||_0x5e8856);return _0x5e8856;},be=(_0x3b7074,_0x1ad3ab)=>(_0x3aa117,_0x3ec3b7)=>_0x1ad3ab(_0x3aa117,_0x3ec3b7,_0x3b7074);let _t=class extends _0x44dae6{constructor(_0x3b254d,_0xd34103,_0x370c4a){const _0x14e8ee=_0x17237f;super(),this['_instanceService']=_0x3b254d,this['_httpService']=_0xd34103,this[_0x14e8ee(0x13a)]=_0x370c4a;}async['runOnServer'](_0x266599,_0xad9aaa,_0x1c3595,..._0x29ada3){const _0x1ad548=_0x17237f;var _0x57c462,_0x2435c6,_0x4c2260,_0x239ab2;const _0x4fdccd=this[_0x1ad548(0x2f6)][_0x1ad548(0x13c)]();if(!_0x4fdccd)throw new Error(_0x1ad548(0x2d5));const _0x3be247=((_0x57c462=this['_configService']['getConfig'](_0x5deeec))!=null?_0x57c462:_0x35bd6b)+'/'+_0x266599+_0x1ad548(0x264)+_0xad9aaa,_0x7bbba5=new URL(window[_0x1ad548(0xd8)][_0x1ad548(0x102)]),_0x344a9f={'scriptId':_0x266599,'runId':(_0x2435c6=_0x7bbba5[_0x1ad548(0xd9)][_0x1ad548(0x178)]('runId'))!=null?_0x2435c6:'','function':_0xad9aaa,'unitId':_0x4fdccd[_0x1ad548(0x19e)](),'argsOfFunction':JSON['stringify'](_0x29ada3),'invokeId':(_0x4c2260=_0x1c3595['invokeId'])!=null?_0x4c2260:'','executionId':(_0x239ab2=_0x1c3595[_0x1ad548(0x183)])!=null?_0x239ab2:''};try{const _0x5153bf=await this[_0x1ad548(0x129)]['post'](_0x3be247,{'body':_0x344a9f});return _0x5153bf['body'][_0x1ad548(0x2d2)]&&_0x5153bf[_0x1ad548(0x152)][_0x1ad548(0x2d2)][_0x1ad548(0x1f1)]!==Z['OK']?_0x1ad548(0x2bc):_0x5153bf[_0x1ad548(0x152)][_0x1ad548(0x223)];}catch{return'Failed';}}};_t=yn([be(0x0,_0x160283),be(0x1,_0x5c536b(_0x392506)),be(0x2,_0x1f4c04)],_t);const lt=0x7530,ht=_0x17237f(0x2cf);class tr extends _0x44dae6{constructor(){const _0x307042=_0x17237f;super(),l(this,_0x307042(0x19c),_0x2020d1()),l(this,_0x307042(0x2a2),new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x307042(0x2ab),null),l(this,_0x307042(0x14d),new Map()),l(this,_0x307042(0xd5),new Map()),this['_init']();}[_0x17237f(0x25c)](){const _0x13938f=_0x17237f;super[_0x13938f(0x25c)](),this['_clearOtherTimers']['forEach']((_0xb36377,_0x16b1e8)=>this[_0x13938f(0x2e6)](_0x16b1e8)),this['_heartbeatTimer']&&window[_0x13938f(0x23b)](this[_0x13938f(0x2ab)]);}[_0x17237f(0x108)](_0x541174){const _0x1e9022=_0x17237f;return this[_0x1e9022(0x28a)](_0x541174)[_0x1e9022(0x187)](_0x2276ed());}['editingUnit'](_0x140124){const _0x1aa0af=_0x17237f;this['_selfUnitIDs'][_0x1aa0af(0x148)]===0x0&&this[_0x1aa0af(0x1cd)](),this[_0x1aa0af(0x2a2)][_0x1aa0af(0x26c)](_0x140124),this['_send']({'type':0x0,'memberID':this[_0x1aa0af(0x19c)],'unitIDs':[_0x140124],'isForwarded':!0x1});}[_0x17237f(0x29d)](_0x3bc029){const _0x4e4b06=_0x17237f;this[_0x4e4b06(0x2a2)][_0x4e4b06(0x1a6)](_0x3bc029),this[_0x4e4b06(0x2a2)][_0x4e4b06(0x148)]===0x0&&this[_0x4e4b06(0x2ab)]&&window[_0x4e4b06(0x23b)](this[_0x4e4b06(0x2ab)]);}[_0x17237f(0x26e)](){const _0x303e29=_0x17237f;this[_0x303e29(0x125)](_0x3a001f(_0x4f22be(window,'storage')[_0x303e29(0x185)](_0x4ecac1=>{const _0x91656b=_0x303e29;if(_0x4ecac1[_0x91656b(0x258)]!==ht||!_0x4ecac1['newValue'])return;const _0x53f185=JSON[_0x91656b(0x18f)](_0x4ecac1[_0x91656b(0x1ff)]);this[_0x91656b(0x17e)](_0x53f185);}))),window[_0x303e29(0xcb)](_0x303e29(0x2e9),()=>this[_0x303e29(0x1a7)]({'type':0x1,'memberID':this[_0x303e29(0x19c)],'unitIDs':Array[_0x303e29(0x296)](this['_selfUnitIDs'])}));}[_0x17237f(0x17e)](_0x331198){const _0x4b83e6=_0x17237f;switch(_0x331198[_0x4b83e6(0xf9)]){case 0x0:this[_0x4b83e6(0x263)](_0x331198);break;case 0x1:this[_0x4b83e6(0xc6)](_0x331198);break;case 0x2:this[_0x4b83e6(0x27e)](_0x331198);break;}}[_0x17237f(0x263)](_0x143976){const _0x263dc4=_0x17237f,{unitIDs:_0x3f3055,memberID:_0xc533fc,isForwarded:_0x32f701}=_0x143976;_0x3f3055[_0x263dc4(0x10c)](_0x1cdd53=>{const _0x48d37c=_0x263dc4;if(!_0x32f701&&this[_0x48d37c(0x1f2)][_0x48d37c(0x26b)](_0x1cdd53)&&this[_0x48d37c(0x28a)](_0x1cdd53)[_0x48d37c(0x133)](_0x8aa75e[_0x48d37c(0x25a)]),!this['_unitOnClients'][_0x48d37c(0x26b)](_0x1cdd53)||!this[_0x48d37c(0x1f2)][_0x48d37c(0x178)](_0x1cdd53)[_0x48d37c(0x26b)](_0xc533fc)){const _0x3977e3=this[_0x48d37c(0x1f2)][_0x48d37c(0x178)](_0x1cdd53)||new Set();_0x3977e3[_0x48d37c(0x26c)](_0xc533fc),this[_0x48d37c(0x1f2)]['set'](_0x1cdd53,_0x3977e3),this[_0x48d37c(0x293)](_0xc533fc);}}),_0x32f701||this[_0x263dc4(0x1a7)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x263dc4(0x2a2)]],'isForwarded':!0x0});}[_0x17237f(0x293)](_0x39ca53){const _0x2b7a77=_0x17237f;this[_0x2b7a77(0x2e6)](_0x39ca53);const _0x418e6a=window[_0x2b7a77(0x1a4)](()=>{const _0xcaad08=_0x2b7a77;this[_0xcaad08(0x1f2)][_0xcaad08(0x10c)](_0x299fc3=>{_0x299fc3['delete'](_0x39ca53);});},lt*0x2);this[_0x2b7a77(0x14d)]['set'](_0x39ca53,_0x418e6a);}[_0x17237f(0x2e6)](_0x18c6a8){const _0xc27ed3=_0x17237f;if(this[_0xc27ed3(0x14d)][_0xc27ed3(0x26b)](_0x18c6a8)){const _0x3ddc89=this[_0xc27ed3(0x14d)]['get'](_0x18c6a8);_0x3ddc89&&window[_0xc27ed3(0x286)](_0x3ddc89),this[_0xc27ed3(0x14d)]['set'](_0x18c6a8,null);}}[_0x17237f(0xc6)](_0x1139fc){const _0x36f8de=_0x17237f,{memberID:_0x4ac137,unitIDs:_0x46c7b0}=_0x1139fc;_0x46c7b0[_0x36f8de(0x10c)](_0x7a5532=>{const _0xab994b=_0x36f8de;var _0x3e53f9;const _0x1d6188=this[_0xab994b(0x1f2)][_0xab994b(0x178)](_0x7a5532);_0x1d6188&&(_0x1d6188[_0xab994b(0x1a6)](_0x4ac137),(_0x3e53f9=this[_0xab994b(0x28a)](_0x7a5532))==null||_0x3e53f9['next'](_0x1d6188['size']===0x0?_0x8aa75e[_0xab994b(0x1c7)]:_0x8aa75e['OTHER_CLIENTS_EDITING']));}),this[_0x36f8de(0x2e6)](_0x4ac137);}['_handleHeartbeatEvent'](_0x4980e4){this['_scheduleClearOtherTimer'](_0x4980e4['memberID']);}['_send'](_0x3c8610){const _0x3cfaee=_0x17237f;localStorage[_0x3cfaee(0x194)](ht,JSON[_0x3cfaee(0x266)](_0x3c8610));}[_0x17237f(0x1cd)](){const _0x4ff4b1=_0x17237f;this['_heartbeatTimer']=window[_0x4ff4b1(0xed)](()=>{const _0x71c222=_0x4ff4b1;this[_0x71c222(0x1a7)]({'type':0x2,'memberID':this[_0x71c222(0x19c)]});},lt);}[_0x17237f(0x28a)](_0x4163b9){const _0x44ee58=_0x17237f;return this['_unitStatus']['has'](_0x4163b9)||this[_0x44ee58(0xd5)][_0x44ee58(0xda)](_0x4163b9,new _0xacfd1(_0x8aa75e[_0x44ee58(0x1c7)])),this[_0x44ee58(0xd5)][_0x44ee58(0x178)](_0x4163b9);}}export{ct as BrowserCollaborationSocketService,ae as CollaborationDataLoaderController,oe as DesktopCollaborationStatusDisplayController,At as IURLService,_t as RemoteUniscriptService,qi as SheetCollabCursorShape,Be as UniverCollaborationClientUIPlugin,tr as WebBrowserSingleActiveUnitService,Rn as WebURLService};
1
+ const _0x2f044f=_0x47da;(function(_0x3b5d1d,_0x269ae2){const _0x490f16=_0x47da,_0x2f1d79=_0x3b5d1d();while(!![]){try{const _0x3f37c9=parseInt(_0x490f16(0x1ed))/0x1+-parseInt(_0x490f16(0x23c))/0x2+-parseInt(_0x490f16(0x18b))/0x3*(-parseInt(_0x490f16(0x343))/0x4)+parseInt(_0x490f16(0x349))/0x5*(-parseInt(_0x490f16(0x13e))/0x6)+parseInt(_0x490f16(0x209))/0x7*(parseInt(_0x490f16(0x279))/0x8)+parseInt(_0x490f16(0x1d2))/0x9*(parseInt(_0x490f16(0x222))/0xa)+parseInt(_0x490f16(0x1e4))/0xb*(-parseInt(_0x490f16(0x15f))/0xc);if(_0x3f37c9===_0x269ae2)break;else _0x2f1d79['push'](_0x2f1d79['shift']());}catch(_0x3e37bc){_0x2f1d79['push'](_0x2f1d79['shift']());}}}(_0x1960,0x42a98));var Ft=Object['defineProperty'],kt=(_0x62ba1,_0x110136,_0x1263fc)=>_0x110136 in _0x62ba1?Ft(_0x62ba1,_0x110136,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1263fc}):_0x62ba1[_0x110136]=_0x1263fc,l=(_0x2d4fe1,_0x217ee3,_0x1b1758)=>kt(_0x2d4fe1,typeof _0x217ee3!='symbol'?_0x217ee3+'':_0x217ee3,_0x1b1758);import{jsx as _0x161830,jsxs as _0x2caa04}from'react/jsx-runtime';import{CollaborationStatus as _0x60ba72,CollaborationSessionService as _0x9b71a7,CollaborationController as _0x29a4d3,DataLoaderService as _0x460ae6,MemberService as _0x3a5f68,SessionStatus as _0x29ddfc,ILocalCacheService as _0x2ccb07,CollaborationUIEventService as _0x4151ec,CollaborationUIEventId as _0x3cd7d2,DocCollaborationEntity as _0x3d0825,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x402f3f,getLocalCacheKey as _0x4c70c8,LOCAL_CACHE_INTERVAL as _0x17ef74,LOCAL_CACHE_INTERVAL_KEY as _0x5453bc,UniverCollaborationClientPlugin as _0x28c64b,CollaborationSocketService as _0x160525,DEFAULT_WS_SESSION_TICKET_URL as _0x10cec4,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x719797,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x1aa6ad,UnitStatus as _0x286879}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x3c120a,IUniverInstanceService as _0xaa63a7,Inject as _0x30bdc8,Injector as _0x4568e0,Disposable as _0x3070e7,createIdentifier as _0x5ce273,ILogService as _0x3ae7f3,ICommandService as _0x5cca2c,Optional as _0x5c8ad4,RxDisposable as _0x4d2a7f,Workbook as _0x5def59,DOC_RANGE_TYPE as _0x4d69cb,debounce as _0x32e5dd,Rectangle as _0x4fcbdf,DisposableCollection as _0x3fcb28,toDisposable as _0x3e6ed3,UniverInstanceType as _0x31116f,generateRandomId as _0x243a41,COLORS as _0x3443dd,ColorKit as _0x4c77aa,ThemeService as _0x52ee13,fromEventSubject as _0x16b152,Tools as _0x54294e,CommandType as _0x15a9e3,IConfigService as _0xb0a618,CanceledError as _0x1b9467,isFormulaString as _0x40e8ed,isFormulaId as _0x50cd50,ILocalStorageService as _0x3188b7,DependentOn as _0x20966f,Plugin as _0x17fdfb,merge as _0x33621d,registerDependencies as _0x468fd6,mergeOverrideWithDependencies as _0xdb7e13,touchDependencies as _0x163605}from'@univerjs/core';import{useObservable as _0xb666e0,useDependency as _0x470170,IUIPartsService as _0x27a25f,BuiltInUIPart as _0x4dca33,connectInjector as _0x3f5361,IBeforeCloseService as _0x4de469,IMessageService as _0x1865bb,INotificationService as _0x2b2a16}from'@univerjs/ui';import{BehaviorSubject as _0x11f3cd,switchMap as _0x110954,of as _0x25bb07,takeUntil as _0x142e37,debounceTime as _0x2a44e5,Subject as _0x302a52,filter as _0x29412e,merge as _0x48fd67,combineLatest as _0x38531d,fromEvent as _0x23b416,shareReplay as _0x3ef704,mapTo as _0x913f8a,distinctUntilChanged as _0x58f1ea}from'rxjs';import{Tooltip as _0x27452b,clsx as _0x800d42,MessageType as _0x17dcef}from'@univerjs/design';import{useRef as _0x5d3df1,createElement as _0x5a6f5c,forwardRef as _0x1e4363,useCallback as _0x106751}from'react';import{IRemoteInstanceService as _0x39f96d}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x172699,RefRangeService as _0x5cacda,SetSelectionsOperation as _0xe455e5,SheetsSelectionsService as _0xb8e4ed,EffectRefRangId as _0x4dc8f8,handleIRemoveRow as _0x128b91,handleIRemoveCol as _0x339194,handleMoveRange as _0x39fc90,handleInsertRow as _0x2928ea,handleInsertRangeMoveRight as _0xcee1b9,handleInsertRangeMoveDown as _0x4b0553,handleInsertCol as _0x5b952f,handleDeleteRangeMoveUp as _0x3bb096,handleDeleteRangeMoveLeft as _0xc7cf7a,runRefRangeMutations as _0x5c575b}from'@univerjs/sheets';import{Shape as _0x363646,Rect as _0x4df5d2,getColor as _0x2e3aa9,RegularPolygon as _0x54ab82,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1c713f,Vector2 as _0x2ae925,SHEET_VIEWPORT_KEY as _0x293586,IRenderManagerService as _0x3e044c}from'@univerjs/engine-render';function _0x1960(){const _0x3412bf=['saveTaskMap','_handleLeaveEvent','labelPosition','session.collaboration-timeout','_init','CHANGESET_REVISION_CONFILICT','collab-client.tooltip.reconnect','783WQmtwM','sessionStatus$','dispose$','_hideTimer','REDEMPTION_CODE_FULLY_REDEEMED','_injector','ENSURE_SNAPSHOT_EXECUTION','drawWith','now','_docTransformIMECacheService','_initStatusComponent','_handleHeartbeatEvent','subunit','fillRule','PY_RUNTIME_SCRIPT_ERROR','_imageIoService','entityInit$','triggerDblclick','116094SQzBwr','replaceState','http://www.w3.org/2000/svg','hide','getformulaLimitStatusUrl','_uiPartsService','_startDocCollabCursor','getRangePointData','_cursorInfo$','432855AiJyNE','trim','getConfig','APPLY_REVISION_CONFILICT','endColumn','idSuffix','Failed','univerjs-icon\x20univerjs-icon-','_range','ENTITLE_DUP_SUBSCRIPTION','_initEvent','show','_anchor','stage','text','getTypeOfUnitAdded$','SOCKET_FAILED_RETRY','_getScale','_clearPolling','unload','dirtyRanges','red.300','isArray','collab-rect-range-','collaboration-client.offline-data-not-saved','YUUMI_ASYNCIO_CANCELLED','result','collabStatus.conflict','3011911zoSydH','_eventUnsubscribe','type','includes','column','onLocalMutation','startColumn','_scene','addObject','MUTATION','delete','location','editingUnit','USER_NOT_INVITED_CODE','LICENSE_DISTRO_REJECTED','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','sheetID','_anchorDot','CURRENT_STATUS_CANNOT_OPERATE','lineTo','InsertRangeMoveDownCommandId','black','_handleEvent','split','EMAIL_VERIFY_CODE_MISMATCH','50210mhnvKN','subscribeEvent','/universer-api/license/formula/limit/start','_heartbeatTimer','getSheetBySheetId','_cachedData','currentColor','popstate','unitId','addHandlerCallback','unshift','_saveCache','Warning','toString','colorChannel1','restore','USERS_LEAVE','1em','then','_handleJoinEvent','eventID','addEventListener','find','_logService','clearTimeout','_transformPreviousActiveRange','559844MMDfWi','_doCreateSocket','on-line-icon_clip0_910_349','onCommandExecuted','_initDependencies','doc.mutation.rich-text-editing','pushState','registerBeforeClose','updateOfflineData','_toggleOffline','asObservable','collaboration.closeRoom','stringify','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','unsubscribe','urlChange$','_assignedColors','DATA_SOURCE_TOO_LARGE','range','min','_send','ALREADY_EXISTS','session.connection-failed','_collaborationController','jiqing.500','ENTITLE_INSUFFICIENT_QUOTA','onMouseMove','_collabCursorState$','_colorAssignService','with','_cursors','PAYMENT_CHANNEL_NOT_SUPPORT','_refRangeService','MOBILE_HAS_BEEN_BOUND','init','registerRefRange','YUUMI_CONNECTOR_URL_NOT_FOUND','unitID','requireSession','getCollabCursors$','_roomMembers$','dispose','APPLY_DUPLICATED','backgroundColor','some','APPLY_NON_SEQUENTIAL_REVISION','white','FromArray','_removeClearOtherTimer','CLOSE_ROOM','loadOfflineData','_labelPosition','_session','0\x200\x2016\x2016','getTypeOfUnitDisposed$','findNodePositionByCharIndex','_sheetSkeletonManagerService','/run/','SUBMIT_CHANGESET_TIMEOUT','getCurrentRevOfUnit','_initResize','8ItBJpX','reconnect','font','HEADER_MENU','Success','?taskId=','post','AUTHORIZE_CODE_ILLEGAL','/universer-api/license/formula/limit/status','_beforeCloseService','_maxFormulaLimit','[CollaborationDataLoaderController]','startRow','REDEMPTION_CODE_INACTIVE','TEXT','key','ACTIVE_UNIT_EVENT_CHANNEL','arc','collaboration.single-unit.warning','_config','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_initCommandExecutedListener','collaboration-client-ui.config','_getFormulaLimitStatus','onTransformChange$','_createSocketURL','_startSheetCollabCursor','OFFLINE','getOwnPropertyDescriptor','_lastResponseTimestamp','_status$','displayName','_scheduleHeartbeat','searchParams','override','assignAColorForMemberID','push','invokeId','addClipboardHook','data','purple.300','UNIVER_DOC','INVITE_CODE_HAS_BEEN_UES','deepClone','newValue','getUnhiddenWorksheets','collab-text-anchor-','collabStatus.syncing','stageInfo','forEach','size','currentSkeleton$','collabCursorState$','values','string','getMember','bottom','getUniverSheetInstance','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','color','_httpService','_syncEditingCollabCursorService','_unitStatus','_hasFormulaInDirtyRanges','_selfUnitIDs','event$','_onCursorUpdate','YUUMI_SUBSCRIPTION_NOT_FOUND','YUUMI_URL_COL_OUT_OF_RANGE','origin','_onCursorDelete','MoveRangeCommandId','collabStatus.notCollab','PENDING','history','parse','getViewport','m1Prime','_commandService','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','url(#off-line-icon_clip0_910_343)','sheetId','_color','_drawAnchor','error','clipPath','exhaustSavingTask','moveTo','get','_id','has','_hovered','onPointerLeave$','getColorFromTheme','undoState','currentUsage','AWAITING','toRgbString','OTHER_CLIENTS_EDITING','getVpScrollXYInfoByPosToVp','getActiveSheet','getSkeleton','_docTransformStateCacheService','path','_currentUsage','getUnitId','_initStatusListener','beginPath','CONNECTOR_DATA_TOO_LARGE','on-line-icon','INVITE_CODE_ALREADY_BOUND','runOnServer','collabStatus.synced','_scheduleClearOtherTimer','_notificationService','_collaborationUIEventService','UNAUTHENTICATED','syncEditingCollabCursor','row','from','_themeService','_refreshCollabCursors','evenodd','executeCommand','_docSkeleton','wsSessionTicketUrl','textRanges','_entityInit$','transformSelections','currentTheme$','Error','setParam','defs','MOBILE_VERIFY_CODE_MISMATCH','_getSaveTimeout','INVALID_INVITE_CODE','_checkCalculationAvailable','_onRefRangeChange','InsertRangeMoveRightCommandId','subscribe','cursorInfo','UniverIcon','pipe','SOCKET_FAILED','url(#$1','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_lastPointer','_renderManagerService','_revisionService','getCollabEntity$','transformMutation','getDocRanges','redoState','_messageService','defineProperty','YUUMI_AI_RUN_FAILED','measureText','ticket','CONFLICT','children','makeDirty','/universer-api/license/formula/limit/done','OnLineIcon','permission.content','_releaseCalculationLimit','_getMergeRange','transformRemoteChangeset','_colorIndex','REDEMPTION_USER_NOT_ELIGIBLE','EMAIL_HAS_BEEN_BOUND','_initCommandInterceptor','ENTITLE_CAN_NOT_BUY_LOWER_OTP','engine','LICENSE_EXPORT_SIZE_EXCEEDED','endRow','M0\x200H16V16H0z','APPLY_PERMISSION_DENIED','add','USER_NOT_FOUND','registerComponent','NOT_COLLAB','collab-text-range-','_backgroundColor','mutations','NOT_FOUND','next','roomMembers$','getCellPositionByOffset','whenReady','fill','_entities','releaseFormulaLimitUrl','_cursor','href','complete','formula.calculation.waiting','LOGIN_FAILED','getCellMatrix','_hover','_name','_handleHover','_getSessionTicket','15832bRSaQC','collabStatus.fetchMiss','UNRECOGNIZED','_setupSubUnitSync','univer-flex\x20univer-items-center','getRelativeToViewportCoord','1142665dxeCjA','getSheetId','saveOfflineData','sessionTicket','ERROR_AGAIN','_memberService','div','_unitOnClients','_ensureSubject','disposeUnit','_configService','getActiveRange','disposeWithMe','getParam','getValue','_localCacheService','...','REDEMPTION_INVALID_CODE','DeleteRangeMoveLeftCommandId','_disabled','getCurrentSelections','_updateURLWithCurrentState','_dataLoaderService','selections','SYNCED','contains','blue.400','NO_OTHER_CLIENTS_EDITING','save','PERMISSION_DENIED','params','_context','_toggleOnline','getCurrent','_univerInstanceService','AWAITING_WITH_PENDING','setItem','closePath','_registerRenderDependencies','cursorInfo$','_docClipboardService','svg','getAncestorScale','getFocusedUnit','univer-mr-2\x20univer-flex\x20univer-text-xl','m2Prime','onRendered','getRenderById','YUUMI_RATE_OVER_LIMIT','_saveTaskMap','ranges','_docTransformSelectionsService','collabStatus.offline','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_setupBeforeClosingHandler','_transformHistoryAndStateStack','6OOTrQY','getUndoRedoMutationParamsCache','_render','_shapes','registerRenderModule','SNAPSHOT_INVALID_SNAPSHOT','focused$','_scheduleSaving','setActiveRange','WECHAT_HAS_BEEN_BOUND','_docStateChangeManagerService','imageSourceType','totalFormulasToCalculate','RECT','_urlService','INTERNAL_ERROR','maxFormulaLimit','setAlpha','_setFormulaLimitStatus','_taskIds','UPDATE_CURSOR','enableLocalCache','entries','setUndoRedoMutationParamsCache','_textBubble','body','LICENSE_MAX_UNITS_EXCEEDED','height','current','startsWith','fillText','isActive','0\x200\x2017\x2016','828rlmkYj','replaceDocRanges','round','getStateCache','setInterval','name','setConfig','APPLY_REJECT','YUUMI_UNABLE_LOAD_URL','YUUMI_NO_CUBOID_FOR_QUESTION','_startCalculationLimit','_registerDependencies','getUnitStatus$','_cursorShapes','REDEMPTION_CODE_NOT_STARTED','_checkAndWaitForCalculationPermission','_initEntityListener','permission.title','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','functionsExecutedState','_online','attrs','tag','assign','green.600','_docSkeletonManagerService','xlink:href','onPointerEnter$','_getAnchorBounding','url(#on-line-icon_clip0_910_349)','getOffsetConfig','ENTITLE_REPORT_LIMIT_EXCEED','replace','RemoveColCommandId','debug','hovered','LICENSE_IMPORT_SIZE_EXCEEDED','width','startFormulaLimitUrl','ENTITLE_CHAT_LIMIT_EXCEED','_updateSubUnitFromURLParams','_removeCollabCursors','INVALID_ARGUMENT','search','159DYKwNn','set','_updateCollabCursors','beforeCommandExecuted','_clearOtherTimers','top','limitInfo','_localeService','_collabSessionService','COMPLETION_FINISHED','runId','getMemberID','roomMembers','setTimeout','_pollingInterval','random','off-line-icon_clip0_910_343','rgba(255,\x20255,\x20255,\x200.01)','session.will-retry','_collabCursorController','status$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_transformUndoRedoStack','ONLINE','_drawTextRange','transformStateCache','setShapeProps','transformIMECache','use','_transformService','REDEMPTION_USER_REDEEM_TIMES_EXCEED','TOO_MANY_REQUESTS','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','pluginName','_instanceService','REDEMPTION_CODE_HAS_BEEN_CREATED','none','createInstance','_localStorageService','parseInt','unit','SUCCESS','UNDEFINED','memberID','executionId','Unknown\x20user','shift','getItem','UNIVER_SHEET','map','docStateChange$','length','_updateLocalCursor','SNAPSHOT_HAS_BEEN_REMOVED','Loading','transformMutationsWithChangeset','send','code','LOGIN_TOKEN_PROCESSING_FAILED','storage','_getSheetObject','INVITE_CODE_REQUIRED','_applyCommand','translate(.97)'];_0x1960=function(){return _0x3412bf;};return _0x1960();}import{HTTPService as _0x168837,ISocketService as _0x188980,WebSocketService as _0x1dde72}from'@univerjs/network';import{IDocClipboardService as _0x5cada5,NodePositionConvertToCursor as _0x2745f9,NodePositionConvertToRectRange as _0x1da38d,TEXT_RANGE_LAYER_INDEX as _0x2efc3b,SetDocZoomRatioOperation as _0x24bd33,DocIMEInputManagerService as _0x50464f,DocStateChangeManagerService as _0x99482e}from'@univerjs/docs-ui';import{IImageIoService as _0x5aed91}from'@univerjs/drawing';import{ITransformService as _0x3a64be,CollaborationEvent as _0x34ccf4,isTransformMutationFailure as _0x3f2a8d,isTransformMutationsWithChangesetSuccess as _0x233b43,RevisionService as _0x25a8ee,ISnapshotServerService as _0x56a3f6}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x2289d0,RichTextEditingMutation as _0x5bc564,DocSelectionManagerService as _0x349b69,DocSkeletonManagerService as _0x523f57}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x554cab,serializeRangeWithSheet as _0x380890,FormulaExecuteStageType as _0x52da47,FormulaExecutedStateType as _0x58c49a,SetFormulaCalculationStartMutation as _0x684e31,SetFormulaCalculationNotificationMutation as _0x288bd8}from'@univerjs/engine-formula';import{map as _0x3adb29,filter as _0x4bde31,throttleTime as _0x1ef2cc,takeUntil as _0x503bbc,switchMap as _0x68d49c}from'rxjs/operators';import{SheetSkeletonManagerService as _0x3c396a,getCoordByCell as _0x545dfb,getSheetObject as _0x264d3a}from'@univerjs/sheets-ui';function Ve({ref:_0xb0e12c,..._0xc28072}){const _0x43442b=_0x47da,{icon:_0x4d1536,id:_0xb8de82,className:_0x1d5d6b,extend:_0x2f34ca,..._0x4928a3}=_0xc28072,_0x138cd2=(_0x43442b(0x1f4)+_0xb8de82+'\x20'+(_0x1d5d6b||''))[_0x43442b(0x1ee)](),_0x5c5207=_0x5d3df1('_'+gi());return Ut(_0x4d1536,''+_0xb8de82,{'defIds':_0x4d1536['defIds'],'idSuffix':_0x5c5207[_0x43442b(0x15a)]},{'ref':_0xb0e12c,'className':_0x138cd2,..._0x4928a3},_0x2f34ca);}function Ut(_0x4bb14c,_0x3f58fb,_0x3acb1e,_0x5cfb6b,_0x417848){const _0x5157ca=_0x47da;return _0x5a6f5c(_0x4bb14c[_0x5157ca(0x175)],{'key':_0x3f58fb,...mi(_0x4bb14c,_0x3acb1e,_0x417848),..._0x5cfb6b},(fi(_0x4bb14c,_0x3acb1e)[_0x5157ca(0x318)]||[])[_0x5157ca(0x1bc)]((_0x2acc56,_0x292a39)=>Ut(_0x2acc56,_0x3f58fb+'-'+_0x4bb14c['tag']+'-'+_0x292a39,_0x3acb1e,void 0x0,_0x417848)));}function mi(_0x7c306,_0xda5ce6,_0x5de18a){const _0x4996e9=_0x47da,_0x1bbf87={..._0x7c306[_0x4996e9(0x174)]};_0x5de18a!=null&&_0x5de18a[_0x4996e9(0x230)]&&_0x1bbf87[_0x4996e9(0x336)]===_0x4996e9(0x230)&&(_0x1bbf87[_0x4996e9(0x336)]=_0x5de18a['colorChannel1']),_0x7c306[_0x4996e9(0x175)]==='mask'&&_0x1bbf87['id']&&(_0x1bbf87['id']=_0x1bbf87['id']+_0xda5ce6[_0x4996e9(0x1f2)]),Object[_0x4996e9(0x154)](_0x1bbf87)[_0x4996e9(0x2aa)](([_0x5a06a6,_0x22f66b])=>{const _0x338bc9=_0x4996e9;_0x5a06a6==='mask'&&typeof _0x22f66b==_0x338bc9(0x2af)&&(_0x1bbf87[_0x5a06a6]=_0x22f66b[_0x338bc9(0x17f)](/url\(#(.*)\)/,_0x338bc9(0x309)+_0xda5ce6[_0x338bc9(0x1f2)]+')'));});const {defIds:_0x55ef04}=_0xda5ce6;return!_0x55ef04||_0x55ef04[_0x4996e9(0x1be)]===0x0||(_0x7c306[_0x4996e9(0x175)]===_0x4996e9(0x1a7)&&_0x1bbf87['xlink:href']&&(_0x1bbf87[_0x4996e9(0x179)]=_0x1bbf87[_0x4996e9(0x179)]+_0xda5ce6[_0x4996e9(0x1f2)]),Object[_0x4996e9(0x154)](_0x1bbf87)[_0x4996e9(0x2aa)](([_0x3cf853,_0x4f5fef])=>{const _0x198f51=_0x4996e9;typeof _0x4f5fef==_0x198f51(0x2af)&&(_0x1bbf87[_0x3cf853]=_0x4f5fef[_0x198f51(0x17f)](/url\(#(.*)\)/,_0x198f51(0x309)+_0xda5ce6['idSuffix']+')'));})),_0x1bbf87;}function fi(_0x32da98,_0x13664e){const _0x24c023=_0x47da;var _0x11840e;const {defIds:_0x579b26}=_0x13664e;return!_0x579b26||_0x579b26['length']===0x0?_0x32da98:_0x32da98[_0x24c023(0x175)]===_0x24c023(0x2fd)&&((_0x11840e=_0x32da98[_0x24c023(0x318)])!=null&&_0x11840e[_0x24c023(0x1be)])?{..._0x32da98,'children':_0x32da98[_0x24c023(0x318)][_0x24c023(0x1bc)](_0xad1f2=>typeof _0xad1f2[_0x24c023(0x174)]['id']=='string'&&_0x579b26&&_0x579b26[_0x24c023(0x20c)](_0xad1f2[_0x24c023(0x174)]['id'])?{..._0xad1f2,'attrs':{..._0xad1f2[_0x24c023(0x174)],'id':_0xad1f2['attrs']['id']+_0x13664e[_0x24c023(0x1f2)]}}:_0xad1f2)}:_0x32da98;}function gi(){const _0x1cb0ef=_0x47da;return Math[_0x1cb0ef(0x19a)]()[_0x1cb0ef(0x22f)](0x24)['substring'](0x2,0x8);}Ve[_0x2f044f(0x298)]=_0x2f044f(0x306);const vi={'tag':'svg','attrs':{'xmlns':_0x2f044f(0x1e6),'fill':_0x2f044f(0x1af),'viewBox':_0x2f044f(0x271),'width':_0x2f044f(0x233),'height':_0x2f044f(0x233)},'children':[{'tag':'g','attrs':{'clipPath':_0x2f044f(0x2c9)},'children':[{'tag':_0x2f044f(0x2e0),'attrs':{'stroke':_0x2f044f(0x228),'d':_0x2f044f(0x171),'strokeLinecap':_0x2f044f(0x161),'strokeLinejoin':_0x2f044f(0x161),'strokeWidth':1.2}}]},{'tag':_0x2f044f(0x2fd),'attrs':{},'children':[{'tag':_0x2f044f(0x2ce),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x2f044f(0x2e0),'attrs':{'fill':_0x2f044f(0x26a),'d':_0x2f044f(0x328)}}]}]}],'defIds':[_0x2f044f(0x19b)]},Lt=_0x1e4363(function(_0x4562fe,_0x10f1a9){return _0x5a6f5c(Ve,Object['assign']({},_0x4562fe,{'id':'off-line-icon','ref':_0x10f1a9,'icon':vi}));});Lt[_0x2f044f(0x298)]='OffLineIcon';const Ei={'tag':_0x2f044f(0x372),'attrs':{'xmlns':_0x2f044f(0x1e6),'fill':'none','viewBox':_0x2f044f(0x15e),'width':_0x2f044f(0x233),'height':_0x2f044f(0x233)},'children':[{'tag':'g','attrs':{'clipPath':_0x2f044f(0x17c)},'children':[{'tag':_0x2f044f(0x2e0),'attrs':{'stroke':_0x2f044f(0x228),'d':_0x2f044f(0x2c8),'strokeLinecap':'round','strokeLinejoin':_0x2f044f(0x161),'strokeWidth':1.2}}]},{'tag':_0x2f044f(0x2fd),'attrs':{},'children':[{'tag':_0x2f044f(0x2ce),'attrs':{'id':_0x2f044f(0x23e)},'children':[{'tag':'path','attrs':{'fill':_0x2f044f(0x26a),'d':_0x2f044f(0x328),'transform':_0x2f044f(0x1ca)}}]}]}],'defIds':[_0x2f044f(0x23e)]},Mt=_0x1e4363(function(_0x202af3,_0x571351){const _0x8ec81c=_0x2f044f;return _0x5a6f5c(Ve,Object[_0x8ec81c(0x176)]({},_0x202af3,{'id':_0x8ec81c(0x2e6),'ref':_0x571351,'icon':Ei}));});Mt[_0x2f044f(0x298)]=_0x2f044f(0x31b);function pi(_0x1fc69e){const _0x3befa4=_0x2f044f;switch(_0x1fc69e){case _0x60ba72[_0x3befa4(0x294)]:return _0x3befa4(0x13a);case _0x60ba72[_0x3befa4(0x317)]:return _0x3befa4(0x208);case _0x60ba72['FETCH_MISS']:return _0x3befa4(0x344);case _0x60ba72['NOT_COLLAB']:return _0x3befa4(0x2c1);case _0x60ba72[_0x3befa4(0x2d9)]:case _0x60ba72[_0x3befa4(0x36c)]:return _0x3befa4(0x2a8);case _0x60ba72[_0x3befa4(0x361)]:case _0x60ba72[_0x3befa4(0x2c2)]:return _0x3befa4(0x2e9);}}function Oi(_0xe42fc1){const _0x599a2f=_0x2f044f,{status$:_0x1673ea}=_0xe42fc1,_0x2afe0c=_0xb666e0(_0x1673ea,_0x60ba72[_0x599a2f(0x32d)]),_0x576357=_0x470170(_0x3c120a),_0x37af9e=_0x470170(_0x9b71a7),_0x58a98e=_0x2afe0c!==_0x60ba72['OFFLINE'],_0x227306=_0x576357['t'](pi(_0x2afe0c)),_0x4cbc33=_0x58a98e?_0x161830(Mt,{}):_0x161830(Lt,{}),_0x149edb=_0x106751(()=>{const _0x231e2f=_0x599a2f;_0x58a98e||_0x37af9e[_0x231e2f(0x27a)]();},[_0x58a98e,_0x37af9e]);function _0x594c01(){const _0x47607c=_0x599a2f;return _0x2caa04(_0x47607c(0x34f),{'className':_0x47607c(0x347),'onClick':_0x149edb,'children':[_0x161830(_0x47607c(0x34f),{'className':_0x800d42(_0x47607c(0x375),{'univer-text-green-500':_0x58a98e,'univer-text-red-500':!_0x58a98e}),'children':_0x4cbc33}),_0x161830(_0x47607c(0x34f),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x227306})]});}return _0x58a98e?_0x594c01():_0x161830(_0x27452b,{'title':_0x576357['t'](_0x599a2f(0x1d1)),'children':_0x594c01()});}var Ti=Object[_0x2f044f(0x295)],Ci=(_0x4cd013,_0x4e9726,_0x44e4d1,_0x31a161)=>{const _0xf9afbb=_0x2f044f;for(var _0x376ecb=_0x31a161>0x1?void 0x0:_0x31a161?Ti(_0x4e9726,_0x44e4d1):_0x4e9726,_0x1f81b0=_0x4cd013[_0xf9afbb(0x1be)]-0x1,_0x4e0066;_0x1f81b0>=0x0;_0x1f81b0--)(_0x4e0066=_0x4cd013[_0x1f81b0])&&(_0x376ecb=_0x4e0066(_0x376ecb)||_0x376ecb);return _0x376ecb;},se=(_0x339240,_0x4813f5)=>(_0x5e3bf8,_0x248962)=>_0x4813f5(_0x5e3bf8,_0x248962,_0x339240);let oe=class extends _0x3070e7{constructor(_0x2bad61,_0x1339aa,_0x2f89bd,_0x5d333d){const _0x5a48f4=_0x2f044f;super(),l(this,'_status$',new _0x11f3cd(_0x60ba72[_0x5a48f4(0x32d)])),(this[_0x5a48f4(0x36b)]=_0x2bad61,this[_0x5a48f4(0x1d7)]=_0x1339aa,this[_0x5a48f4(0x253)]=_0x2f89bd,this[_0x5a48f4(0x1e9)]=_0x5d333d,this[_0x5a48f4(0x1dc)](),this[_0x5a48f4(0x2e3)]());}[_0x2f044f(0x2e3)](){const _0x560a84=_0x2f044f;this[_0x560a84(0x355)](this[_0x560a84(0x36b)][_0x560a84(0x144)][_0x560a84(0x307)](_0x110954(()=>{const _0x9a1358=_0x560a84,_0x3880c8=this[_0x9a1358(0x36b)][_0x9a1358(0x374)]();return _0x3880c8?this[_0x9a1358(0x253)][_0x9a1358(0x30e)](_0x3880c8[_0x9a1358(0x2e2)]()):_0x25bb07(null);}),_0x110954(_0xe99de4=>_0xe99de4?_0xe99de4[_0x560a84(0x19f)]:_0x25bb07(_0x60ba72[_0x560a84(0x32d)])))[_0x560a84(0x304)](_0x360424=>{const _0x382f8d=_0x560a84;this[_0x382f8d(0x297)][_0x382f8d(0x332)](_0x360424);}));}[_0x2f044f(0x1dc)](){const _0x16280f=_0x2f044f;this[_0x16280f(0x355)](this['_uiPartsService'][_0x16280f(0x32c)](_0x4dca33[_0x16280f(0x27c)],()=>_0x3f5361(Ri({'status$':this[_0x16280f(0x297)][_0x16280f(0x246)]()}),this[_0x16280f(0x1d7)])));}};oe=Ci([se(0x0,_0xaa63a7),se(0x1,_0x30bdc8(_0x4568e0)),se(0x2,_0x30bdc8(_0x29a4d3)),se(0x3,_0x27a25f)],oe);function _0x47da(_0x5dfa2a,_0x170d21){const _0x1960f4=_0x1960();return _0x47da=function(_0x47da91,_0x136990){_0x47da91=_0x47da91-0x137;let _0x3a8b7c=_0x1960f4[_0x47da91];return _0x3a8b7c;},_0x47da(_0x5dfa2a,_0x170d21);}function Ri(_0x36797e){const {status$:_0x3c9a5c}=_0x36797e;return function(){return _0x161830(Oi,{'status$':_0x3c9a5c});};}const At=_0x5ce273('uni.network.url-service');var Di=Object[_0x2f044f(0x295)],Ni=(_0x5f2d29,_0x402291,_0x1170eb,_0x10f675)=>{const _0xeb2d7c=_0x2f044f;for(var _0x302a00=_0x10f675>0x1?void 0x0:_0x10f675?Di(_0x402291,_0x1170eb):_0x402291,_0x4eab7f=_0x5f2d29[_0xeb2d7c(0x1be)]-0x1,_0xb26498;_0x4eab7f>=0x0;_0x4eab7f--)(_0xb26498=_0x5f2d29[_0x4eab7f])&&(_0x302a00=_0xb26498(_0x302a00)||_0x302a00);return _0x302a00;},K=(_0x533347,_0x317244)=>(_0x3acba2,_0x19a5ed)=>_0x317244(_0x3acba2,_0x19a5ed,_0x533347);let ae=class extends _0x4d2a7f{constructor(_0x1fea5a,_0x108361,_0xa4b142,_0x328275,_0x9d1f75){const _0x4dda14=_0x2f044f;super(),this[_0x4dda14(0x14c)]=_0x1fea5a,this['_logService']=_0x108361,this['_commandService']=_0xa4b142,this['_dataLoaderService']=_0x328275,_0x9d1f75?_0x9d1f75==null||_0x9d1f75[_0x4dda14(0x335)]()[_0x4dda14(0x234)](()=>this[_0x4dda14(0x1cf)]()):(this['_logService']['debug'](_0x4dda14(0x284),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x4dda14(0x1cf)]());}async['_init'](){const _0xe10e36=_0x2f044f,_0x14a9ab=this[_0xe10e36(0x14c)]['getParam'](_0xe10e36(0x1b3)),_0x3306f5=this[_0xe10e36(0x14c)][_0xe10e36(0x356)](_0xe10e36(0x20b)),_0x4936b3=this[_0xe10e36(0x14c)][_0xe10e36(0x356)](_0xe10e36(0x1de));if(!_0x14a9ab||!_0x3306f5){this['_logService'][_0xe10e36(0x181)](_0xe10e36(0x284),_0xe10e36(0x1a0));return;}const _0x27bbeb=await this[_0xe10e36(0x35f)]['loadUnit'](_0x14a9ab,Number(_0x3306f5),_0x4936b3);_0x27bbeb&&_0x27bbeb instanceof _0x5def59&&this['_setupSubUnitSync'](_0x27bbeb);}async[_0x2f044f(0x346)](_0x307b58){const _0xa98bae=_0x2f044f;await this[_0xa98bae(0x187)](_0x307b58),_0x307b58['activeSheet$'][_0xa98bae(0x307)](_0x142e37(this[_0xa98bae(0x1d4)]))[_0xa98bae(0x304)](_0x24b5b2=>{_0x24b5b2&&this['_updateURLWithCurrentState'](_0x24b5b2);}),this[_0xa98bae(0x14c)]['urlChange$'][_0xa98bae(0x307)](_0x142e37(this[_0xa98bae(0x1d4)]))[_0xa98bae(0x304)](()=>this[_0xa98bae(0x187)](_0x307b58));}[_0x2f044f(0x35e)](_0x1f98a6,_0x4074e7=!0x1){const _0x27b1f1=_0x2f044f,_0x24a8b9=this[_0x27b1f1(0x14c)][_0x27b1f1(0x356)]('subunit');_0x1f98a6[_0x27b1f1(0x34a)]()!==_0x24a8b9&&this[_0x27b1f1(0x14c)][_0x27b1f1(0x2fc)](_0x27b1f1(0x1de),_0x1f98a6['getSheetId'](),_0x4074e7);}async[_0x2f044f(0x187)](_0x2ac5dd){const _0x2cc85e=_0x2f044f;var _0x246b9d;const _0x3774fa=this[_0x2cc85e(0x14c)][_0x2cc85e(0x356)]('subunit');if(!_0x3774fa||!_0x2ac5dd[_0x2cc85e(0x226)](_0x3774fa)){const _0x422095=_0x2ac5dd[_0x2cc85e(0x2a6)]()[0x0],_0x5408fe=_0x2ac5dd['getSheetBySheetId'](_0x422095);if(!_0x5408fe)return;this['_updateURLWithCurrentState'](_0x5408fe,!0x0),await this[_0x2cc85e(0x2c7)][_0x2cc85e(0x2f4)](_0x172699['id'],{'unitId':_0x2ac5dd[_0x2cc85e(0x2e2)](),'subUnitId':_0x422095});return;}((_0x246b9d=_0x2ac5dd[_0x2cc85e(0x2dd)]())==null?void 0x0:_0x246b9d[_0x2cc85e(0x34a)]())!==_0x3774fa&&await this[_0x2cc85e(0x2c7)][_0x2cc85e(0x2f4)](_0x172699['id'],{'unitId':_0x2ac5dd[_0x2cc85e(0x2e2)](),'subUnitId':_0x3774fa});}};ae=Ni([K(0x0,At),K(0x1,_0x3ae7f3),K(0x2,_0x5cca2c),K(0x3,_0x30bdc8(_0x460ae6)),K(0x4,_0x5c8ad4(_0x39f96d))],ae);var bi=Object['getOwnPropertyDescriptor'],Ui=(_0x2c3a21,_0x11c6b8,_0x4dd502,_0x4dc977)=>{const _0x4600ee=_0x2f044f;for(var _0x3b6cc5=_0x4dc977>0x1?void 0x0:_0x4dc977?bi(_0x11c6b8,_0x4dd502):_0x11c6b8,_0xa1f055=_0x2c3a21[_0x4600ee(0x1be)]-0x1,_0xa386f8;_0xa1f055>=0x0;_0xa1f055--)(_0xa386f8=_0x2c3a21[_0xa1f055])&&(_0x3b6cc5=_0xa386f8(_0x3b6cc5)||_0x3b6cc5);return _0x3b6cc5;},tt=(_0x21d3ab,_0x1b6c7e)=>(_0x528b5a,_0x53fbe4)=>_0x1b6c7e(_0x528b5a,_0x53fbe4,_0x21d3ab);let Ae=class extends _0x4d2a7f{constructor(_0xd87511,_0x213bf1){const _0x5cf8dd=_0x2f044f;super(),this[_0x5cf8dd(0x371)]=_0xd87511,this[_0x5cf8dd(0x1e1)]=_0x213bf1,this[_0x5cf8dd(0x1cf)]();}[_0x2f044f(0x1cf)](){const _0x19da92=_0x2f044f,_0x4723cd=this;this['disposeWithMe'](this[_0x19da92(0x371)][_0x19da92(0x29f)]({'onBeforePasteImage':async _0x2fc82d=>{const _0x59e24d=_0x19da92,_0x59f8ab=await _0x4723cd['_imageIoService']['saveImage'](_0x2fc82d);return _0x59f8ab?{'source':_0x59f8ab['source'],'imageSourceType':_0x59f8ab[_0x59e24d(0x149)]}:null;}}));}};Ae=Ui([tt(0x0,_0x5cada5),tt(0x1,_0x5aed91)],Ae);const st=[_0x2f044f(0x2a1),_0x2f044f(0x254),_0x2f044f(0x177),_0x2f044f(0x202),_0x2f044f(0x363),'yellow.400'];class je extends _0x3070e7{constructor(){const _0x5b57a8=_0x2f044f;super(...arguments),l(this,_0x5b57a8(0x24c),new Map()),l(this,_0x5b57a8(0x320),0x0);}[_0x2f044f(0x29c)](_0x5780e7){const _0x3888c4=_0x2f044f;if(this[_0x3888c4(0x24c)][_0x3888c4(0x2d3)](_0x5780e7))return this['_assignedColors'][_0x3888c4(0x2d1)](_0x5780e7);const _0x1c6aea=st[this[_0x3888c4(0x320)]];return this[_0x3888c4(0x320)]=(this[_0x3888c4(0x320)]+0x1)%st[_0x3888c4(0x1be)],this[_0x3888c4(0x24c)][_0x3888c4(0x18c)](_0x5780e7,_0x1c6aea),_0x1c6aea;}}function Pt(_0x4b75ac){const _0x375086=_0x2f044f;let _0x26a448='';for(const _0x5c3568 of _0x4b75ac){const {startOffset:_0x596a2d,endOffset:_0x4de099,isActive:_0x1a9317,rangeType:_0x17d63b,segmentId:_0x3486aa,segmentPage:_0xa3cb80}=_0x5c3568;_0x26a448[_0x375086(0x1be)]&&(_0x26a448+=','),_0x26a448+=_0x596a2d+':'+_0x4de099+':'+(_0x1a9317?'1':'0')+':'+_0x17d63b+':'+_0x3486aa+':'+_0xa3cb80;}return _0x26a448;}function Li(_0x19bdb3){const _0x49a6fa=_0x2f044f,_0x54b48e=_0x19bdb3[_0x49a6fa(0x220)](','),_0x7856e4=[];for(const _0x38fbbd of _0x54b48e){const [_0x22b8f4,_0xc6caf3,_0x233fe4,_0x57894f,_0x1a0ed2,_0x18185c]=_0x38fbbd['split'](':');_0x7856e4[_0x49a6fa(0x29d)]({'startOffset':Number(_0x22b8f4),'endOffset':Number(_0xc6caf3),'collapsed':_0x22b8f4===_0xc6caf3,'isActive':_0x233fe4==='1','rangeType':_0x57894f===_0x4d69cb[_0x49a6fa(0x287)]?_0x4d69cb[_0x49a6fa(0x287)]:_0x4d69cb[_0x49a6fa(0x14b)],'segmentId':typeof _0x1a0ed2==_0x49a6fa(0x2af)?String(_0x1a0ed2):'','segmentPage':Number(_0x18185c!=null?_0x18185c:-0x1)});}return _0x7856e4[_0x49a6fa(0x268)](_0x4787d0=>_0x4787d0[_0x49a6fa(0x15d)])||(_0x7856e4[0x0][_0x49a6fa(0x15d)]=!0x0),_0x7856e4;}class Xe extends _0x4d2a7f{constructor(){const _0x361292=_0x2f044f;super(...arguments),l(this,_0x361292(0x257),new _0x11f3cd(null)),l(this,_0x361292(0x2ad),this[_0x361292(0x257)]['asObservable']());}[_0x2f044f(0x2ee)](_0x22b460){const _0x4c5add=_0x2f044f,{unitID:_0x35a539,memberID:_0x12fa32,textRanges:_0x1c97f3}=_0x22b460,_0x5f46d9=Pt(_0x1c97f3);if(_0x5f46d9==='')return;const _0x350255={'unitID':_0x35a539,'memberID':_0x12fa32,'selection':_0x5f46d9};this['_collabCursorState$'][_0x4c5add(0x332)](_0x350255);}}var Mi=Object[_0x2f044f(0x295)],Ai=(_0x3da124,_0x4564c5,_0x1c4d1b,_0x348923)=>{const _0x40b67d=_0x2f044f;for(var _0xa1ae68=_0x348923>0x1?void 0x0:_0x348923?Mi(_0x4564c5,_0x1c4d1b):_0x4564c5,_0xd59964=_0x3da124[_0x40b67d(0x1be)]-0x1,_0x4f273c;_0xd59964>=0x0;_0xd59964--)(_0x4f273c=_0x3da124[_0xd59964])&&(_0xa1ae68=_0x4f273c(_0xa1ae68)||_0xa1ae68);return _0xa1ae68;},A=(_0x598db4,_0x349f3c)=>(_0x5c267b,_0x510bf1)=>_0x349f3c(_0x5c267b,_0x510bf1,_0x598db4);const Pi=0x12c,wi=0x64;let Pe=class extends _0x4d2a7f{constructor(_0x36625b,_0x2c7172,_0x5830e8,_0x2b8cd5,_0x36d93b,_0x4449ea,_0x526191,_0x106714,_0x5afe1f){const _0x294486=_0x2f044f;super(),l(this,'_online',!0x1),l(this,_0x294486(0x1cf),!0x1),l(this,_0x294486(0x1ec),new _0x11f3cd(new Map())),l(this,_0x294486(0x370),this['_cursorInfo$'][_0x294486(0x246)]()),l(this,_0x294486(0x264),new _0x11f3cd([])),l(this,'roomMembers$',this[_0x294486(0x264)][_0x294486(0x307)](_0x2a44e5(Pi))),l(this,_0x294486(0x1bf),_0x32e5dd(_0x1d40e7=>{const _0x1486d2=_0x294486,_0x5ce513={'eventID':_0x34ccf4[_0x1486d2(0x152)],'data':{'unitID':this[_0x1486d2(0x261)],'memberID':this['_session']['getMemberID'](),'selection':Pt(_0x1d40e7)}};this[_0x1486d2(0x270)][_0x1486d2(0x1c3)](_0x5ce513,this['unitID']);},wi)),(this['unitID']=_0x36625b,this[_0x294486(0x270)]=_0x2c7172,this['_injector']=_0x5830e8,this[_0x294486(0x258)]=_0x2b8cd5,this[_0x294486(0x34e)]=_0x36d93b,this[_0x294486(0x2b6)]=_0x4449ea,this[_0x294486(0x1a8)]=_0x526191,this['_univerInstanceService']=_0x106714,this[_0x294486(0x2c7)]=_0x5afe1f);}get['cursorInfo'](){const _0x3b3344=_0x2f044f;return this['_cursorInfo$'][_0x3b3344(0x357)]();}get[_0x2f044f(0x197)](){const _0x5c264b=_0x2f044f;return this[_0x5c264b(0x264)]['getValue']();}['dispose'](){const _0x42dc6a=_0x2f044f;super[_0x42dc6a(0x265)](),this[_0x42dc6a(0x1ec)][_0x42dc6a(0x332)](new Map()),this['_cursorInfo$'][_0x42dc6a(0x33b)](),this[_0x42dc6a(0x264)][_0x42dc6a(0x332)]([]),this[_0x42dc6a(0x264)][_0x42dc6a(0x33b)]();}[_0x2f044f(0x25e)](){const _0x3b2442=_0x2f044f;this[_0x3b2442(0x1cf)]||(this[_0x3b2442(0x1cf)]=!0x0,this[_0x3b2442(0x270)][_0x3b2442(0x1d3)][_0x3b2442(0x307)](_0x142e37(this['dispose$']))[_0x3b2442(0x304)](_0xb21ba4=>{const _0x1e3bd2=_0x3b2442;_0xb21ba4===_0x29ddfc[_0x1e3bd2(0x1a2)]?this[_0x1e3bd2(0x369)]():this[_0x1e3bd2(0x245)]();}),this['_session'][_0x3b2442(0x2ba)][_0x3b2442(0x307)](_0x142e37(this[_0x3b2442(0x1d4)]))[_0x3b2442(0x304)](_0x57a7b0=>{const _0x41db0a=_0x3b2442,_0x49f188=_0x57a7b0[_0x41db0a(0x236)];_0x49f188===_0x34ccf4[_0x41db0a(0x152)]&&this[_0x41db0a(0x2bb)](_0x57a7b0),_0x49f188===_0x34ccf4[_0x41db0a(0x232)]&&this['_onCursorDelete'](_0x57a7b0);}),this[_0x3b2442(0x355)](this[_0x3b2442(0x2c7)]['onCommandExecuted'](_0x3d6c13=>{const _0x1079ac=_0x3b2442,_0x514057=_0x3d6c13[_0x1079ac(0x367)];_0x514057!=null&&this[_0x1079ac(0x173)]&&_0x3d6c13['id']===_0x2289d0['id']&&_0x514057[_0x1079ac(0x22a)]===this[_0x1079ac(0x261)]&&_0x514057['isEditing']===!0x1&&_0x514057[_0x1079ac(0x138)][_0x1079ac(0x1be)]>0x0&&this['_updateLocalCursor'](_0x514057[_0x1079ac(0x138)]);})),this[_0x3b2442(0x2b6)][_0x3b2442(0x2ad)]['pipe'](_0x142e37(this[_0x3b2442(0x1d4)]))[_0x3b2442(0x304)](_0x3c7023=>{const _0x1d8a52=_0x3b2442;if((_0x3c7023==null?void 0x0:_0x3c7023[_0x1d8a52(0x261)])!==this[_0x1d8a52(0x261)])return;const _0x3300b9={'eventID':_0x34ccf4[_0x1d8a52(0x152)],'data':_0x3c7023};this[_0x1d8a52(0x2bb)](_0x3300b9);}),this[_0x3b2442(0x355)](this['_commandService'][_0x3b2442(0x23f)](_0x12630b=>{const _0x402ce5=_0x3b2442;if(_0x12630b[_0x402ce5(0x367)]==null)return;const _0x3afbe3=_0x12630b[_0x402ce5(0x367)];if(_0x12630b['id']!==_0x5bc564['id']||_0x3afbe3[_0x402ce5(0x22a)]!==this[_0x402ce5(0x261)])return;const _0x4c127f={'id':'doc.mutation.rich-text-editing','params':_0x3afbe3},_0x1a1586=this['cursorInfo'];for(const [_0x30c47d,_0x424a2e]of _0x1a1586){const _0x46788e={'id':_0x402ce5(0x241),'params':{'unitId':this[_0x402ce5(0x261)],'actions':null,'textRanges':_0x424a2e['ranges']}},_0x442c06=this[_0x402ce5(0x1a8)][_0x402ce5(0x30f)](_0x4c127f,_0x46788e,!0x1);if(_0x3f2a8d(_0x442c06))throw _0x442c06[_0x402ce5(0x2cd)];_0x1a1586[_0x402ce5(0x18c)](_0x30c47d,{..._0x424a2e,'ranges':_0x442c06[_0x402ce5(0x376)]['params'][_0x402ce5(0x2f7)]});}queueMicrotask(()=>{const _0x520302=_0x402ce5;this[_0x520302(0x1ec)][_0x520302(0x332)](_0x1a1586);});})));}['_onCursorUpdate'](_0x3424a0){const _0x586419=_0x2f044f;var _0x450c52,_0x278011;const {memberID:_0xe7e20d,selection:_0x34ac9b}=_0x3424a0['data'],_0x45419f=Li(_0x34ac9b),_0x195387=(_0x278011=(_0x450c52=this[_0x586419(0x34e)]['getMember'](this[_0x586419(0x261)],_0xe7e20d))==null?void 0x0:_0x450c52[_0x586419(0x164)])!=null?_0x278011:'Unknown\x20user',_0x1439db={'color':this['_colorAssignService'][_0x586419(0x29c)](_0xe7e20d),'name':_0x195387,'ranges':_0x45419f},_0x48175f=this['cursorInfo'];_0x48175f[_0x586419(0x18c)](_0xe7e20d,_0x1439db),this[_0x586419(0x1ec)]['next'](_0x48175f);}[_0x2f044f(0x2bf)](_0x1ada76){const _0x3e4c12=_0x2f044f,{memberID:_0x388390}=_0x1ada76[_0x3e4c12(0x2a0)],_0x1064a=this[_0x3e4c12(0x305)];_0x1064a[_0x3e4c12(0x213)](_0x388390),this[_0x3e4c12(0x1ec)][_0x3e4c12(0x332)](_0x1064a);}[_0x2f044f(0x369)](){const _0x58dd78=_0x2f044f;var _0x3fc815;if(this[_0x58dd78(0x173)]=!0x0,((_0x3fc815=this[_0x58dd78(0x36b)][_0x58dd78(0x374)]())==null?void 0x0:_0x3fc815['getUnitId']())!==this[_0x58dd78(0x261)])return;const _0x4fb97a=this['_injector']['get'](_0x349b69)[_0x58dd78(0x310)]();Array['isArray'](_0x4fb97a)&&_0x4fb97a[_0x58dd78(0x1be)]>0x0&&this['_updateLocalCursor'](_0x4fb97a);}[_0x2f044f(0x245)](){const _0x2ed470=_0x2f044f;this[_0x2ed470(0x173)]=!0x1;}};Pe=Ai([A(0x2,_0x30bdc8(_0x4568e0)),A(0x3,_0x30bdc8(je)),A(0x4,_0x30bdc8(_0x3a5f68)),A(0x5,_0x30bdc8(Xe)),A(0x6,_0x3a64be),A(0x7,_0xaa63a7),A(0x8,_0x5cca2c)],Pe);var yi=Object[_0x2f044f(0x295)],$i=(_0x1685d3,_0x4662e8,_0x16a86c,_0x4d6bf8)=>{const _0xcab952=_0x2f044f;for(var _0x482b95=_0x4d6bf8>0x1?void 0x0:_0x4d6bf8?yi(_0x4662e8,_0x16a86c):_0x4662e8,_0x5459ab=_0x1685d3[_0xcab952(0x1be)]-0x1,_0x1221d0;_0x5459ab>=0x0;_0x5459ab--)(_0x1221d0=_0x1685d3[_0x5459ab])&&(_0x482b95=_0x1221d0(_0x482b95)||_0x482b95);return _0x482b95;},B=(_0x1689ff,_0x4b8cb5)=>(_0x5d629e,_0x2c68e0)=>_0x4b8cb5(_0x5d629e,_0x2c68e0,_0x1689ff);const xi=0x12c,Bi=0x64,Fi=()=>{let _0x3b03d8=[],_0x2f7edf=!0x1;return _0x530220=>{const _0x4c7a58=_0x47da;_0x3b03d8[_0x4c7a58(0x29d)](_0x530220),_0x2f7edf||(_0x2f7edf=!0x0,setTimeout(()=>{_0x3b03d8['forEach'](_0x448295=>_0x448295()),_0x3b03d8=[],_0x2f7edf=!0x1;}));};};let we=class extends _0x4d2a7f{constructor(_0x1c4bf9,_0x25b94a,_0x2f53ed,_0x55a85c,_0x5d2568,_0x4e8d02,_0x2520b8,_0x205568){const _0x105730=_0x2f044f;super(),l(this,_0x105730(0x173),!0x1),l(this,'_init',!0x1),l(this,_0x105730(0x1ec),new _0x11f3cd(new Map())),l(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),l(this,_0x105730(0x264),new _0x11f3cd([])),l(this,_0x105730(0x333),this[_0x105730(0x264)]['pipe'](_0x2a44e5(xi))),l(this,_0x105730(0x1bf),_0x32e5dd((_0x539b00,_0x57fedf)=>{const _0x3bdbf3=_0x105730,_0xbacdc={'eventID':_0x34ccf4[_0x3bdbf3(0x152)],'data':{'unitID':this[_0x3bdbf3(0x261)],'memberID':this['_session'][_0x3bdbf3(0x196)](),'selection':_0x380890(_0x539b00,_0x57fedf['range'])}};this[_0x3bdbf3(0x270)][_0x3bdbf3(0x1c3)](_0xbacdc,this['unitID']);},Bi)),(this['unitID']=_0x1c4bf9,this[_0x105730(0x270)]=_0x25b94a,this[_0x105730(0x1d7)]=_0x2f53ed,this[_0x105730(0x258)]=_0x55a85c,this[_0x105730(0x34e)]=_0x5d2568,this['_univerInstanceService']=_0x4e8d02,this['_commandService']=_0x2520b8,this[_0x105730(0x25c)]=_0x205568);}get[_0x2f044f(0x305)](){const _0x4b01a6=_0x2f044f;return this[_0x4b01a6(0x1ec)][_0x4b01a6(0x357)]();}get[_0x2f044f(0x197)](){const _0x27cfbb=_0x2f044f;return this[_0x27cfbb(0x264)]['getValue']();}[_0x2f044f(0x265)](){const _0x49492e=_0x2f044f;super[_0x49492e(0x265)](),this[_0x49492e(0x1ec)][_0x49492e(0x332)](new Map()),this[_0x49492e(0x1ec)][_0x49492e(0x33b)](),this[_0x49492e(0x264)]['next']([]),this[_0x49492e(0x264)][_0x49492e(0x33b)]();}[_0x2f044f(0x25e)](){const _0x10524c=_0x2f044f;this[_0x10524c(0x1cf)]||(this[_0x10524c(0x1cf)]=!0x0,this['_session']['sessionStatus$']['pipe'](_0x142e37(this['dispose$']))[_0x10524c(0x304)](_0x3e989a=>{const _0x42568b=_0x10524c;_0x3e989a===_0x29ddfc[_0x42568b(0x1a2)]?this[_0x42568b(0x369)]():this['_toggleOffline']();}),this[_0x10524c(0x270)][_0x10524c(0x2ba)][_0x10524c(0x307)](_0x142e37(this[_0x10524c(0x1d4)]))[_0x10524c(0x304)](_0x30fd56=>{const _0x2481d0=_0x10524c,_0x3875cb=_0x30fd56[_0x2481d0(0x236)];_0x3875cb===_0x34ccf4[_0x2481d0(0x152)]&&this['_onCursorUpdate'](_0x30fd56),_0x3875cb===_0x34ccf4[_0x2481d0(0x232)]&&this['_onCursorDelete'](_0x30fd56);}),this[_0x10524c(0x302)](),this['disposeWithMe'](this[_0x10524c(0x2c7)][_0x10524c(0x23f)](_0x518098=>{const _0x33d2e0=_0x10524c;if(this[_0x33d2e0(0x173)]&&_0x518098['id']===_0xe455e5['id']&&_0x518098['params']['unitId']===this[_0x33d2e0(0x261)]){const _0x55b735=_0x518098[_0x33d2e0(0x367)];this['_updateLocalCursor'](_0x55b735['subUnitId'],_0x55b735[_0x33d2e0(0x360)][0x0]);}})));}[_0x2f044f(0x2bb)](_0x3fc80b){const _0x207156=_0x2f044f;var _0x130fc9,_0x39f137;const {memberID:_0x18e424,selection:_0x42f250}=_0x3fc80b['data'],{sheetName:_0x561398,range:_0x8aec5c}=_0x554cab(_0x42f250),_0x1dd49d={'name':(_0x39f137=(_0x130fc9=this[_0x207156(0x34e)][_0x207156(0x2b0)](this[_0x207156(0x261)],_0x18e424))==null?void 0x0:_0x130fc9[_0x207156(0x164)])!=null?_0x39f137:_0x207156(0x1b8),'range':this[_0x207156(0x31e)](_0x561398,_0x8aec5c),'sheetID':_0x561398,'color':this[_0x207156(0x258)][_0x207156(0x29c)](_0x18e424),'selection':_0x42f250},_0x345d5b=this[_0x207156(0x305)];_0x345d5b[_0x207156(0x18c)](_0x18e424,_0x1dd49d),this[_0x207156(0x1ec)][_0x207156(0x332)](_0x345d5b);}[_0x2f044f(0x2bf)](_0x2878b6){const _0x1ffba8=_0x2f044f,{memberID:_0xa975b}=_0x2878b6[_0x1ffba8(0x2a0)],_0x2a1159=this[_0x1ffba8(0x305)];_0x2a1159[_0x1ffba8(0x213)](_0xa975b),this['_cursorInfo$'][_0x1ffba8(0x332)](_0x2a1159);}[_0x2f044f(0x31e)](_0xda5b5,_0x453c83){const _0x498bad=_0x2f044f;var _0x4d7510,_0x45ed64;const _0xa3e569=(_0x45ed64=(_0x4d7510=this[_0x498bad(0x36b)][_0x498bad(0x2b2)](this[_0x498bad(0x261)]))==null?void 0x0:_0x4d7510['getSheetBySheetId'](_0xda5b5))==null?void 0x0:_0x45ed64['getMergeData']();return(_0xa3e569==null?void 0x0:_0xa3e569[_0x498bad(0x238)](_0x2ecb3d=>_0x4fcbdf[_0x498bad(0x362)](_0x2ecb3d,_0x453c83)))||_0x453c83;}[_0x2f044f(0x302)](){const _0x9a812f=_0x2f044f,_0x2630c2=new _0x3fcb28(),_0x360fbf=Fi(),_0x238c82=()=>{const _0x2ad58b=_0x47da;_0x2630c2[_0x2ad58b(0x265)]();const _0x58ff63=(_0x24a82e,_0x4d31e3,_0x183c91,_0x3996c4)=>{const _0x56f343=_0x2ad58b;let _0x5f3fa5=[];switch(_0x24a82e['id']){case _0x4dc8f8[_0x56f343(0x35b)]:{_0x5f3fa5=_0xc7cf7a(_0x24a82e,_0x3996c4);break;}case _0x4dc8f8['DeleteRangeMoveUpCommandId']:{_0x5f3fa5=_0x3bb096(_0x24a82e,_0x3996c4);break;}case _0x4dc8f8['InsertColCommandId']:{_0x5f3fa5=_0x5b952f(_0x24a82e,_0x3996c4);break;}case _0x4dc8f8[_0x56f343(0x21d)]:{_0x5f3fa5=_0x4b0553(_0x24a82e,_0x3996c4);break;}case _0x4dc8f8[_0x56f343(0x303)]:{_0x5f3fa5=_0xcee1b9(_0x24a82e,_0x3996c4);break;}case _0x4dc8f8['InsertRowCommandId']:{_0x5f3fa5=_0x2928ea(_0x24a82e,_0x3996c4);break;}case _0x4dc8f8[_0x56f343(0x2c0)]:{_0x5f3fa5=_0x39fc90(_0x24a82e,_0x3996c4);break;}case _0x4dc8f8[_0x56f343(0x180)]:{_0x5f3fa5=_0x339194(_0x24a82e,_0x3996c4);break;}case _0x4dc8f8['RemoveRowCommandId']:{_0x5f3fa5=_0x128b91(_0x24a82e,_0x3996c4);break;}}const _0x32b036=_0x5c575b(_0x5f3fa5,_0x3996c4),_0x1b0f2c=this[_0x56f343(0x305)][_0x56f343(0x2d1)](_0x4d31e3);if(_0x1b0f2c&&_0x32b036){const _0x5ac208={..._0x1b0f2c,'range':_0x32b036};this[_0x56f343(0x305)][_0x56f343(0x18c)](_0x4d31e3,_0x5ac208),_0x360fbf(()=>{const _0x10fe82=_0x56f343,_0x39eafd=this['_refRangeService'][_0x10fe82(0x25f)](_0x32b036,_0xe50af6=>(_0x39eafd[_0x10fe82(0x265)](),_0x58ff63(_0xe50af6,_0x4d31e3,_0x183c91,_0x32b036)));_0x2630c2['add'](_0x39eafd);});}return{'redos':[],'undos':[]};};this[_0x2ad58b(0x305)][_0x2ad58b(0x2aa)]((_0x22b5c5,_0x513f28)=>{const _0x54b0bd=_0x2ad58b,{range:_0x434060,sheetID:_0x2ec441}=_0x22b5c5,_0x135545=this['_refRangeService']['registerRefRange'](_0x434060,_0x32ce17=>(_0x135545[_0x54b0bd(0x265)](),_0x58ff63(_0x32ce17,_0x513f28,_0x2ec441,_0x434060)));_0x2630c2['add'](_0x135545);});};this[_0x9a812f(0x355)](_0x3e6ed3(this[_0x9a812f(0x1ec)]['subscribe'](()=>{_0x238c82();})));}[_0x2f044f(0x369)](){const _0x25e9bf=_0x2f044f;var _0x1af6f2,_0x450862;if(this['_online']=!0x0,((_0x1af6f2=this[_0x25e9bf(0x36b)][_0x25e9bf(0x374)]())==null?void 0x0:_0x1af6f2[_0x25e9bf(0x2e2)]())!==this['unitID'])return;const _0x14d5c7=(_0x450862=this['_injector']['get'](_0xb8e4ed)[_0x25e9bf(0x35d)]())==null?void 0x0:_0x450862[0x0],_0x37195c=this['_univerInstanceService']['getCurrentUnitForType'](_0x31116f[_0x25e9bf(0x1bb)])[_0x25e9bf(0x2dd)]();_0x14d5c7&&_0x37195c&&this['_updateLocalCursor'](_0x37195c[_0x25e9bf(0x34a)](),_0x14d5c7);}[_0x2f044f(0x245)](){this['_online']=!0x1;}};we=$i([B(0x2,_0x30bdc8(_0x4568e0)),B(0x3,_0x30bdc8(je)),B(0x4,_0x30bdc8(_0x3a5f68)),B(0x5,_0xaa63a7),B(0x6,_0x5cca2c),B(0x7,_0x30bdc8(_0x5cacda))],we);var ki=Object[_0x2f044f(0x295)],Hi=(_0x1f3fb0,_0xd84d01,_0x3f076f,_0x23bacd)=>{const _0x428136=_0x2f044f;for(var _0x432776=_0x23bacd>0x1?void 0x0:_0x23bacd?ki(_0xd84d01,_0x3f076f):_0xd84d01,_0x3afa5e=_0x1f3fb0[_0x428136(0x1be)]-0x1,_0x59df4b;_0x3afa5e>=0x0;_0x3afa5e--)(_0x59df4b=_0x1f3fb0[_0x3afa5e])&&(_0x432776=_0x59df4b(_0x432776)||_0x432776);return _0x432776;},Ee=(_0x52b77e,_0x49ed73)=>(_0xcb50a8,_0x4b99b1)=>_0x49ed73(_0xcb50a8,_0x4b99b1,_0x52b77e);let H=class extends _0x4d2a7f{constructor(_0xc4aaa8,_0x2c1aee,_0x110c3a){const _0x9d8f09=_0x2f044f;super(),l(this,_0x9d8f09(0x337),new Map()),l(this,_0x9d8f09(0x2f8),new _0x302a52()),(this[_0x9d8f09(0x36b)]=_0xc4aaa8,this[_0x9d8f09(0x1d7)]=_0x2c1aee,this[_0x9d8f09(0x193)]=_0x110c3a,this[_0x9d8f09(0x1cf)]());}[_0x2f044f(0x265)](){const _0x18388c=_0x2f044f;super[_0x18388c(0x265)](),this[_0x18388c(0x2f8)][_0x18388c(0x33b)](),this['_entities'][_0x18388c(0x2aa)](_0x8b5ad=>_0x8b5ad[_0x18388c(0x265)]());}['getCollabCursors$'](_0x2e8949){const _0x18bcca=_0x2f044f;return this[_0x18bcca(0x337)][_0x18bcca(0x2d3)](_0x2e8949)?this['_entities'][_0x18bcca(0x2d1)](_0x2e8949)[_0x18bcca(0x370)]:this['_entityInit$'][_0x18bcca(0x307)](_0x29412e(_0x2d7319=>_0x2d7319['unitID']===_0x2e8949),_0x110954(_0xae7598=>_0xae7598['cursorInfo$']));}[_0x2f044f(0x1cf)](){const _0x4db4c9=_0x2f044f;this[_0x4db4c9(0x36b)][_0x4db4c9(0x1fc)](_0x31116f['UNIVER_SHEET'])[_0x4db4c9(0x307)](_0x142e37(this[_0x4db4c9(0x1d4)]))['subscribe'](async _0x271eb2=>{const _0x2b35d6=_0x4db4c9,_0x46ffd0=_0x271eb2[_0x2b35d6(0x2e2)](),_0x4b0777=await this[_0x2b35d6(0x293)](_0x46ffd0);this[_0x2b35d6(0x2f8)][_0x2b35d6(0x332)](_0x4b0777),this[_0x2b35d6(0x337)][_0x2b35d6(0x18c)](_0x46ffd0,_0x4b0777);}),this['_univerInstanceService'][_0x4db4c9(0x1fc)](_0x31116f[_0x4db4c9(0x2a2)])[_0x4db4c9(0x307)](_0x142e37(this[_0x4db4c9(0x1d4)]))[_0x4db4c9(0x307)](_0x29412e(_0x400bfa=>!_0x400bfa[_0x4db4c9(0x2e2)]()[_0x4db4c9(0x15b)]('__')))[_0x4db4c9(0x304)](async _0xab4ff8=>{const _0x2f6ec5=_0x4db4c9,_0x4f7957=_0xab4ff8[_0x2f6ec5(0x2e2)](),_0x19aef5=await this[_0x2f6ec5(0x1ea)](_0x4f7957);this[_0x2f6ec5(0x2f8)][_0x2f6ec5(0x332)](_0x19aef5),this[_0x2f6ec5(0x337)][_0x2f6ec5(0x18c)](_0x4f7957,_0x19aef5);}),_0x48fd67(this[_0x4db4c9(0x36b)][_0x4db4c9(0x272)](_0x31116f[_0x4db4c9(0x2a2)]),this[_0x4db4c9(0x36b)][_0x4db4c9(0x272)](_0x31116f[_0x4db4c9(0x1bb)]))[_0x4db4c9(0x307)](_0x142e37(this[_0x4db4c9(0x1d4)]))[_0x4db4c9(0x304)](_0x5c65d9=>{const _0x444f5d=_0x4db4c9,_0x4a4a3b=_0x5c65d9[_0x444f5d(0x2e2)](),_0x54d116=this['_entities']['get'](_0x4a4a3b);_0x54d116&&(_0x54d116[_0x444f5d(0x265)](),this[_0x444f5d(0x337)]['delete'](_0x4a4a3b));});}async[_0x2f044f(0x293)](_0x168e08){const _0x4117cb=_0x2f044f,_0x4939c8=await this[_0x4117cb(0x193)][_0x4117cb(0x262)](_0x168e08),_0x50d99c=this[_0x4117cb(0x1d7)][_0x4117cb(0x1b0)](we,_0x168e08,_0x4939c8);return _0x50d99c[_0x4117cb(0x25e)](),_0x50d99c;}async[_0x2f044f(0x1ea)](_0x5a0ba7){const _0x377976=_0x2f044f,_0xd2dd8d=await this[_0x377976(0x193)][_0x377976(0x262)](_0x5a0ba7),_0x104ed7=this[_0x377976(0x1d7)][_0x377976(0x1b0)](Pe,_0x5a0ba7,_0xd2dd8d);return _0x104ed7['init'](),_0x104ed7;}};H=Hi([Ee(0x0,_0xaa63a7),Ee(0x1,_0x30bdc8(_0x4568e0)),Ee(0x2,_0x30bdc8(_0x9b71a7))],H);const Q=0x14,it=0xc8,pe=0x4,Yi=0x5;function Wi(_0x1fa527,_0x412c1e){const _0x2aba65=_0x2f044f;let {radius:_0x363bec,width:_0x3d236d,height:_0x1f97dc}=_0x412c1e;_0x363bec=_0x363bec!=null?_0x363bec:0x0,_0x3d236d=_0x3d236d!=null?_0x3d236d:0x1e,_0x1f97dc=_0x1f97dc!=null?_0x1f97dc:0x1e;let _0x393ef0=0x0,_0x43d351=0x0,_0x3ea7e2=0x0;_0x393ef0=_0x43d351=_0x3ea7e2=Math[_0x2aba65(0x24f)](_0x363bec,_0x3d236d/0x2,_0x1f97dc/0x2),_0x1fa527[_0x2aba65(0x2e4)](),_0x1fa527[_0x2aba65(0x2d0)](_0x393ef0,0x0),_0x1fa527[_0x2aba65(0x21c)](_0x3d236d-_0x43d351,0x0),_0x1fa527[_0x2aba65(0x28a)](_0x3d236d-_0x43d351,_0x43d351,_0x43d351,Math['PI']*0x3/0x2,0x0,!0x1),_0x1fa527[_0x2aba65(0x21c)](_0x3d236d,_0x1f97dc-_0x3ea7e2),_0x1fa527['arc'](_0x3d236d-_0x3ea7e2,_0x1f97dc-_0x3ea7e2,_0x3ea7e2,0x0,Math['PI']/0x2,!0x1),_0x1fa527[_0x2aba65(0x21c)](0x0,_0x1f97dc),_0x1fa527[_0x2aba65(0x21c)](0x0,_0x393ef0),_0x1fa527[_0x2aba65(0x28a)](_0x393ef0,_0x393ef0,_0x393ef0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1fa527[_0x2aba65(0x36e)](),_0x412c1e[_0x2aba65(0x336)]&&(_0x1fa527[_0x2aba65(0x365)](),_0x1fa527['fillStyle']=_0x412c1e['fill'],_0x412c1e[_0x2aba65(0x1df)]===_0x2aba65(0x2f3)?_0x1fa527[_0x2aba65(0x336)]('evenodd'):_0x1fa527[_0x2aba65(0x336)](),_0x1fa527[_0x2aba65(0x231)]());}class me extends _0x363646{constructor(_0x12d8da,_0x17090a){const _0x1ba52c=_0x2f044f;super(_0x12d8da,_0x17090a),l(this,_0x1ba52c(0x2b4)),l(this,_0x1ba52c(0x1fb)),(this[_0x1ba52c(0x2b4)]=_0x17090a==null?void 0x0:_0x17090a[_0x1ba52c(0x2b4)],this[_0x1ba52c(0x1fb)]=_0x17090a==null?void 0x0:_0x17090a[_0x1ba52c(0x1fb)]);}static[_0x2f044f(0x1d9)](_0x4e97a3,_0x1c3e3a){const _0x1e4573=_0x2f044f,{text:_0x4e8abd,color:_0x542cc9}=_0x1c3e3a;_0x4e97a3[_0x1e4573(0x365)](),_0x4e97a3[_0x1e4573(0x27b)]=_0x1e4573(0x2b3);const _0x32f0a0=_0x4e97a3[_0x1e4573(0x315)](_0x4e8abd)[_0x1e4573(0x184)],_0x48f775=Math[_0x1e4573(0x24f)](_0x32f0a0+0x2*pe,it);Wi(_0x4e97a3,{'height':Q,'radius':0x4,'width':_0x48f775,'fill':_0x542cc9}),_0x4e97a3['fillStyle']='#FFF';const _0x26e035=pe,_0x32d6a4=Q-Yi,_0x3feae1=it-0x2*pe;if(_0x32f0a0>_0x3feae1){let _0x2312ca='',_0x223c86=0x0;for(const _0x4e82da of _0x4e8abd){const _0x249d4f=_0x4e97a3[_0x1e4573(0x315)](_0x4e82da)[_0x1e4573(0x184)];if(_0x223c86+_0x249d4f<=_0x3feae1-_0x4e97a3['measureText'](_0x1e4573(0x359))[_0x1e4573(0x184)])_0x2312ca+=_0x4e82da,_0x223c86+=_0x249d4f;else{_0x2312ca+=_0x1e4573(0x359);break;}}_0x4e97a3[_0x1e4573(0x15c)](_0x2312ca,_0x26e035,_0x32d6a4);}else _0x4e97a3[_0x1e4573(0x15c)](_0x4e8abd,_0x26e035,_0x32d6a4);_0x4e97a3[_0x1e4573(0x231)]();}['_draw'](_0x454783){me['drawWith'](_0x454783,this);}}const Oe=_0x2f044f(0x2a7),Vi=_0x2f044f(0x32e),ji=_0x2f044f(0x204),z=0x6,Xi=1.5,Te=0x4,Gi=1.5,Ki=_0x2f044f(0x19c);class nt{constructor(_0x4f39e0,_0x355d25,_0x143382,_0x3da73b){const _0x215b9b=_0x2f044f;l(this,'_shapes',[]),l(this,_0x215b9b(0x1f9),null),l(this,_0x215b9b(0x156),null),l(this,_0x215b9b(0x21a),null),l(this,_0x215b9b(0x1d5),null),l(this,_0x215b9b(0x20a),null),(this[_0x215b9b(0x339)]=_0x4f39e0,this['_scene']=_0x355d25,this[_0x215b9b(0x2f5)]=_0x143382,this['_document']=_0x3da73b,this[_0x215b9b(0x140)]());}set[_0x2f044f(0x33f)](_0x7e3722){const _0x386dd4=_0x2f044f;_0x7e3722?(this['_anchorDot']&&this[_0x386dd4(0x21a)][_0x386dd4(0x1e7)](),this['_textBubble']&&this[_0x386dd4(0x156)][_0x386dd4(0x1f8)]()):(this['_anchorDot']&&this[_0x386dd4(0x21a)]['show'](),this['_textBubble']&&this[_0x386dd4(0x156)][_0x386dd4(0x1e7)]());}[_0x2f044f(0x265)](){const _0x35c8a0=_0x2f044f;for(const _0x1f1b61 of this[_0x35c8a0(0x141)])_0x1f1b61[_0x35c8a0(0x265)]();this[_0x35c8a0(0x156)]&&this[_0x35c8a0(0x156)][_0x35c8a0(0x265)](),this[_0x35c8a0(0x21a)]&&this['_anchorDot']['dispose'](),this[_0x35c8a0(0x1f9)]&&this[_0x35c8a0(0x1f9)][_0x35c8a0(0x265)](),this[_0x35c8a0(0x20a)]&&this['_eventUnsubscribe']();}[_0x2f044f(0x140)](){const _0x501814=_0x2f044f;var _0x5990f9;const {_docSkeleton:_0xa742ee,_document:_0x1554a4}=this,{color:_0x43cf6d,name:_0x578bca,ranges:_0x1942db}=this[_0x501814(0x339)],_0x287b52=_0x1554a4[_0x501814(0x17d)](),{docsLeft:_0x32f9fa,docsTop:_0x49050a}=_0x287b52,_0x43a2c7=new _0x2745f9(_0x287b52,_0xa742ee);for(const {startOffset:_0x5ca577,endOffset:_0x1e0e0d,rangeType:_0x49383b,segmentId:_0x2e8d19,segmentPage:_0x342467,collapsed:_0x1cce5b,isActive:_0x5da762}of _0x1942db){const _0x39f6a0=_0xa742ee[_0x501814(0x273)](_0x5ca577,!0x0,_0x2e8d19,_0x342467);let _0x5c889e=_0xa742ee['findNodePositionByCharIndex'](_0x1e0e0d,!0x0,_0x2e8d19,_0x342467);if(_0x5c889e==null&&(_0x5c889e=_0xa742ee[_0x501814(0x273)](_0x1e0e0d-0x1,!0x1,_0x2e8d19,_0x342467)),_0x5da762){const {contentBoxPointGroup:_0xb9bbf5}=_0x43a2c7[_0x501814(0x1eb)](_0x5c889e,_0x5c889e);if(_0xb9bbf5[_0x501814(0x1be)]===0x0)continue;this[_0x501814(0x2cc)](_0x43cf6d,_0xb9bbf5,_0x32f9fa,_0x49050a,_0x578bca),this[_0x501814(0x20a)]=this[_0x501814(0x341)]();}if(_0x39f6a0&&_0x5c889e){if(_0x49383b===_0x4d69cb['RECT']){const _0x40763b=new _0x1da38d(_0x287b52,_0xa742ee),{pointGroup:_0x237b00}=(_0x5990f9=_0x40763b['getRangePointData'](_0x39f6a0,_0x5c889e))!=null?_0x5990f9:{};if(_0x237b00==null||_0x237b00[_0x501814(0x1be)]===0x0)continue;this['_drawRectRange'](_0x43cf6d,_0x237b00,_0x32f9fa,_0x49050a);}else{if(!_0x1cce5b){const {borderBoxPointGroup:_0x24b53f}=_0x43a2c7[_0x501814(0x1eb)](_0x39f6a0,_0x5c889e);if(_0x24b53f[_0x501814(0x1be)]===0x0)continue;this[_0x501814(0x1a3)](_0x43cf6d,_0x24b53f,_0x32f9fa,_0x49050a);}}}}}[_0x2f044f(0x2cc)](_0x2cc9b7,_0x1bf1be,_0x2efbe0,_0x196eb7,_0x34dcfd){const _0x17ccbf=_0x2f044f,_0x18f241=this[_0x17ccbf(0x17b)](_0x1bf1be),{left:_0x3e463a,top:_0x19a406,height:_0x240219}=_0x18f241,_0x2c51f0=this[_0x17ccbf(0x1fe)](),_0x52b201=Gi/_0x2c51f0,_0x560bbf=new _0x4df5d2(Oe+_0x243a41(z),{'left':_0x3e463a+_0x2efbe0-_0x52b201,'top':_0x19a406+_0x196eb7,'height':_0x240219,'width':Xi,'fill':_0x2cc9b7||_0x2e3aa9(_0x3443dd['black'],0x0),'strokeWidth':_0x52b201,'stroke':Ki,'evented':!0x0});this[_0x17ccbf(0x1f9)]=_0x560bbf,this['_scene'][_0x17ccbf(0x211)](_0x560bbf,_0x2efc3b);const _0x3504b8=new _0x4df5d2(Oe+_0x243a41(z),{'left':_0x3e463a+_0x2efbe0-_0x52b201,'top':_0x19a406+_0x196eb7-Te/0x2,'height':Te,'width':Te,'fill':_0x2cc9b7||_0x2e3aa9(_0x3443dd[_0x17ccbf(0x21e)],0x0),'strokeWidth':0x0,'stroke':_0x2cc9b7||_0x2e3aa9(_0x3443dd[_0x17ccbf(0x21e)],0x0),'evented':!0x1});this[_0x17ccbf(0x21a)]=_0x3504b8,this[_0x17ccbf(0x210)][_0x17ccbf(0x211)](_0x3504b8,_0x2efc3b);const _0x564354=new me(Oe+_0x243a41(z),{'left':_0x3e463a+_0x2efbe0-_0x52b201,'top':_0x19a406+_0x196eb7-Q,'text':_0x34dcfd,'color':_0x2cc9b7});this[_0x17ccbf(0x156)]=_0x564354,this[_0x17ccbf(0x210)]['addObject'](_0x564354,_0x2efc3b),this[_0x17ccbf(0x33f)]=!0x1;}[_0x2f044f(0x341)](){const _0x331f5e=_0x2f044f,_0x3571d4=this[_0x331f5e(0x1f9)][_0x331f5e(0x17a)]['subscribeEvent'](()=>{const _0x16b5f6=_0x331f5e;this[_0x16b5f6(0x33f)]=!0x0;}),_0x1007a2=this[_0x331f5e(0x1f9)][_0x331f5e(0x2d5)][_0x331f5e(0x223)](()=>{const _0xb256e7=_0x331f5e;this[_0xb256e7(0x1d5)]&&clearTimeout(this['_hideTimer']),this[_0xb256e7(0x1d5)]=setTimeout(()=>{const _0xb3e403=_0xb256e7;this[_0xb3e403(0x33f)]=!0x1;},0x7d0);});return()=>{const _0x3359ba=_0x331f5e;_0x3571d4[_0x3359ba(0x24a)](),_0x1007a2[_0x3359ba(0x24a)]();};}['_drawTextRange'](_0x44321a,_0x5673b4,_0x47fa9d,_0x4e0cfd){const _0x4b0b63=_0x2f044f,_0x5d7289=new _0x4c77aa(_0x44321a)[_0x4b0b63(0x14f)](0.2)['toRgbString'](),_0x310d49=new _0x54ab82(Vi+_0x243a41(z),{'pointsGroup':_0x5673b4,'fill':_0x5d7289||_0x2e3aa9(_0x3443dd[_0x4b0b63(0x21e)],0.2),'left':_0x47fa9d,'top':_0x4e0cfd,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x310d49),this[_0x4b0b63(0x210)]['addObject'](_0x310d49,_0x2efc3b);}['_drawRectRange'](_0xfb8706,_0x1bbfa2,_0x4b66af,_0x1ccee8){const _0x54eede=_0x2f044f,_0x5f3155=new _0x4c77aa(_0xfb8706)['setAlpha'](0.2)[_0x54eede(0x2da)](),_0x55b755=new _0x54ab82(ji+_0x243a41(z),{'pointsGroup':_0x1bbfa2,'fill':_0x5f3155||_0x2e3aa9(_0x3443dd[_0x54eede(0x21e)],0.2),'left':_0x4b66af,'top':_0x1ccee8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x54eede(0x141)][_0x54eede(0x29d)](_0x55b755),this[_0x54eede(0x210)][_0x54eede(0x211)](_0x55b755,_0x2efc3b);}[_0x2f044f(0x17b)](_0x58c236){const _0x2de417=_0x58c236[0x0],_0x3342b2=_0x2de417[0x0],_0x298479=_0x2de417[0x2],{x:_0x55213e,y:_0x3d84cf}=_0x3342b2,{x:_0x325151,y:_0x2a4725}=_0x298479;return{'left':_0x55213e,'top':_0x3d84cf,'width':_0x325151-_0x55213e,'height':_0x2a4725-_0x3d84cf};}[_0x2f044f(0x1fe)](){const _0x532588=_0x2f044f,{scaleX:_0x48aa16,scaleY:_0x11bc5b}=this[_0x532588(0x210)][_0x532588(0x373)]();return Math['max'](_0x48aa16,_0x11bc5b);}}var zi=Object[_0x2f044f(0x295)],Ji=(_0x11c8a5,_0x365783,_0x18cbde,_0x8ba957)=>{for(var _0x53cf3d=_0x8ba957>0x1?void 0x0:_0x8ba957?zi(_0x365783,_0x18cbde):_0x365783,_0x402420=_0x11c8a5['length']-0x1,_0x1214b7;_0x402420>=0x0;_0x402420--)(_0x1214b7=_0x11c8a5[_0x402420])&&(_0x53cf3d=_0x1214b7(_0x53cf3d)||_0x53cf3d);return _0x53cf3d;},ie=(_0x3a2bf3,_0x3e56da)=>(_0xb287f3,_0x1f7173)=>_0x3e56da(_0xb287f3,_0x1f7173,_0x3a2bf3);let ye=class extends _0x4d2a7f{constructor(_0x47fff2,_0x5de92c,_0x2cc943,_0xc6cd45,_0x3bc5cc){const _0x28affd=_0x2f044f;super(),l(this,_0x28affd(0x16c),[]),l(this,'_cursors',[]),(this['_context']=_0x47fff2,this[_0x28affd(0x178)]=_0x5de92c,this[_0x28affd(0x19e)]=_0x2cc943,this[_0x28affd(0x2c7)]=_0xc6cd45,this[_0x28affd(0x2f1)]=_0x3bc5cc,this[_0x28affd(0x1cf)]());}[_0x2f044f(0x1cf)](){const _0x4b4ac0=_0x2f044f,_0x29b5cd=this['_context'][_0x4b4ac0(0x22a)],_0x39d7b6=this[_0x4b4ac0(0x178)];this[_0x4b4ac0(0x355)](_0x38531d([this[_0x4b4ac0(0x19e)]['getCollabCursors$'](_0x29b5cd),this['_themeService'][_0x4b4ac0(0x2fa)]])[_0x4b4ac0(0x307)](_0x3adb29(([_0x461bfb,_0x45e569])=>({'skeleton':_0x39d7b6[_0x4b4ac0(0x2de)](),'cursors':[..._0x461bfb[_0x4b4ac0(0x2ae)]()]['flatMap'](_0x3024dc=>({..._0x3024dc,'color':this[_0x4b4ac0(0x2f1)][_0x4b4ac0(0x2d6)](_0x3024dc[_0x4b4ac0(0x2b4)])}))})))[_0x4b4ac0(0x304)](_0x305af4=>{const _0x5d5d69=_0x4b4ac0;if(this['_removeCollabCursors'](),_0x305af4){const {skeleton:_0x30e23e,cursors:_0x55003b}=_0x305af4;this[_0x5d5d69(0x18d)](_0x30e23e,_0x55003b);}})),this[_0x4b4ac0(0x278)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x2f909d,_0x5252db){const _0x2a4b67=_0x2f044f,{scene:_0x3501bc,mainComponent:_0x3fbc30}=this[_0x2a4b67(0x368)],_0x3fc5cd=_0x5252db[_0x2a4b67(0x1bc)](_0x40378c=>new nt(_0x40378c,_0x3501bc,_0x2f909d,_0x3fbc30));this['_cursorShapes']=_0x3fc5cd,this['_cursors']=_0x5252db;}[_0x2f044f(0x2f2)](){const _0x5b8b44=_0x2f044f;this[_0x5b8b44(0x188)]();const {scene:_0x3a988,mainComponent:_0x3b514e}=this[_0x5b8b44(0x368)],_0x2273fa=this['_docSkeletonManagerService'][_0x5b8b44(0x2de)](),_0x4d736c=this[_0x5b8b44(0x25a)]['map'](_0x33e590=>new nt(_0x33e590,_0x3a988,_0x2273fa,_0x3b514e));this[_0x5b8b44(0x16c)]=_0x4d736c;}['_removeCollabCursors'](){const _0x54b83a=_0x2f044f;this[_0x54b83a(0x16c)]['forEach'](_0x2cd920=>_0x2cd920['dispose']()),this['_cursorShapes']=[];}[_0x2f044f(0x28e)](){const _0x26bad0=_0x2f044f,_0x38904d=[_0x24bd33['id']];this[_0x26bad0(0x355)](this[_0x26bad0(0x2c7)][_0x26bad0(0x23f)](_0x4ecc0c=>{const _0x36defe=_0x26bad0;_0x38904d[_0x36defe(0x20c)](_0x4ecc0c['id'])&&_0x4ecc0c[_0x36defe(0x367)]['unitId']===this['_context']['unitId']&&this[_0x36defe(0x2f2)]();}));}[_0x2f044f(0x278)](){const _0x1533a4=_0x2f044f;this[_0x1533a4(0x355)](_0x16b152(this[_0x1533a4(0x368)][_0x1533a4(0x325)][_0x1533a4(0x291)])[_0x1533a4(0x307)](_0x4bde31(_0xcc08cd=>_0xcc08cd[_0x1533a4(0x20b)]===_0x1c713f['resize']),_0x1ef2cc(0x10))[_0x1533a4(0x304)](()=>{const _0x57b893=_0x1533a4;this[_0x57b893(0x2f2)]();}));}};ye=Ji([ie(0x1,_0x30bdc8(_0x523f57)),ie(0x2,_0x30bdc8(H)),ie(0x3,_0x5cca2c),ie(0x4,_0x30bdc8(_0x52ee13))],ye);const Zi=0x1,Qi=1.5;class qi extends _0x363646{constructor(_0x4bfd87,_0x186648){const _0x3e9f85=_0x2f044f;super(_0x4bfd87,_0x186648),l(this,_0x3e9f85(0x2cb)),l(this,'_hovered',!0x1),l(this,_0x3e9f85(0x1f5)),l(this,_0x3e9f85(0x340),''),l(this,_0x3e9f85(0x26f),_0x3e9f85(0x190)),l(this,'_backgroundColor'),(_0x186648&&this['setShapeProps'](_0x186648),this[_0x3e9f85(0x17a)][_0x3e9f85(0x223)](()=>this[_0x3e9f85(0x1a5)]({'hovered':!0x0})),this[_0x3e9f85(0x2d5)][_0x3e9f85(0x223)](()=>this[_0x3e9f85(0x1a5)]({'hovered':!0x1})));}[_0x2f044f(0x1a5)](_0x6d0325){const _0x684d21=_0x2f044f;var _0x45cbb4,_0x3da2bb,_0x4d39e5,_0x980d0c,_0x1dc56a,_0x1bc132;this[_0x684d21(0x2cb)]=(_0x45cbb4=_0x6d0325[_0x684d21(0x2b4)])!=null?_0x45cbb4:this[_0x684d21(0x2cb)],this[_0x684d21(0x2d4)]=(_0x3da2bb=_0x6d0325[_0x684d21(0x182)])!=null?_0x3da2bb:this[_0x684d21(0x2d4)],this['_range']=(_0x4d39e5=_0x6d0325[_0x684d21(0x24e)])!=null?_0x4d39e5:this[_0x684d21(0x1f5)],this[_0x684d21(0x340)]=(_0x980d0c=_0x6d0325[_0x684d21(0x164)])!=null?_0x980d0c:this[_0x684d21(0x340)],this[_0x684d21(0x26f)]=(_0x1dc56a=_0x6d0325[_0x684d21(0x1cd)])!=null?_0x1dc56a:this['_labelPosition'],this[_0x684d21(0x32f)]=(_0x1bc132=_0x6d0325[_0x684d21(0x267)])!=null?_0x1bc132:this[_0x684d21(0x32f)],this['transformByState']({'width':_0x6d0325['width'],'height':_0x6d0325[_0x684d21(0x159)]});}[_0x2f044f(0x256)](_0x58b06e){const _0x5870b5=_0x2f044f,{row:_0x208e10,column:_0x444915}=_0x58b06e;if(_0x208e10>=this[_0x5870b5(0x1f5)][_0x5870b5(0x285)]&&_0x208e10<=this[_0x5870b5(0x1f5)][_0x5870b5(0x327)]&&_0x444915>=this[_0x5870b5(0x1f5)][_0x5870b5(0x20f)]&&_0x444915<=this['_range'][_0x5870b5(0x1f1)]){this[_0x5870b5(0x1a5)]({'hovered':!0x0});return;}this[_0x5870b5(0x1a5)]({'hovered':!0x1});}[_0x2f044f(0x1e3)](_0x28388b){return!0x1;}['_draw'](_0x3d2613){const _0x4479c4=_0x2f044f;_0x4df5d2['drawWith'](_0x3d2613,{'width':this[_0x4479c4(0x184)],'height':this[_0x4479c4(0x159)],'strokeWidth':Qi,'stroke':this[_0x4479c4(0x2cb)],'evented':!0x1,'fill':this[_0x4479c4(0x32f)]}),this[_0x4479c4(0x2d4)]&&(_0x3d2613['save'](),_0x3d2613['transform'](0x1,0x0,0x0,0x1,this[_0x4479c4(0x184)],this[_0x4479c4(0x26f)]===_0x4479c4(0x2b1)?0x0:-Q),me['drawWith'](_0x3d2613,{'text':this[_0x4479c4(0x340)],'color':this[_0x4479c4(0x2cb)]}),_0x3d2613[_0x4479c4(0x231)]());}}var en=Object[_0x2f044f(0x295)],tn=(_0x446781,_0x45cb09,_0x56daa4,_0x1391a3)=>{for(var _0x18c060=_0x1391a3>0x1?void 0x0:_0x1391a3?en(_0x45cb09,_0x56daa4):_0x45cb09,_0x472b9c=_0x446781['length']-0x1,_0x4a69cd;_0x472b9c>=0x0;_0x472b9c--)(_0x4a69cd=_0x446781[_0x472b9c])&&(_0x18c060=_0x4a69cd(_0x18c060)||_0x18c060);return _0x18c060;},Ce=(_0x2fd884,_0x1b3f06)=>(_0x2ecd73,_0x4e5e1a)=>_0x1b3f06(_0x2ecd73,_0x4e5e1a,_0x2fd884);const sn=0x1389;let $e=class extends _0x4d2a7f{constructor(_0x3f895f,_0x23e6c5,_0x5eb907,_0x146439){const _0x32e95d=_0x2f044f;super(),l(this,'_cursors',new Set()),l(this,_0x32e95d(0x30b),null),(this[_0x32e95d(0x368)]=_0x3f895f,this[_0x32e95d(0x274)]=_0x23e6c5,this[_0x32e95d(0x19e)]=_0x5eb907,this[_0x32e95d(0x2f1)]=_0x146439,this[_0x32e95d(0x1cf)]());}[_0x2f044f(0x1cf)](){const _0x3147c8=_0x2f044f;this[_0x3147c8(0x274)]['currentSkeleton$'][_0x3147c8(0x307)](_0x503bbc(this[_0x3147c8(0x1d4)]),_0x68d49c(_0x1a2f60=>{const _0x4a1c87=_0x3147c8;if(_0x1a2f60){const _0x4e642e=_0x1a2f60[_0x4a1c87(0x2ca)];return _0x38531d(this[_0x4a1c87(0x19e)][_0x4a1c87(0x263)](this[_0x4a1c87(0x368)][_0x4a1c87(0x22a)]),this[_0x4a1c87(0x2f1)]['currentTheme$'])[_0x4a1c87(0x307)](_0x3adb29(([_0x5061fa,_0x25a1df])=>{const _0x52df21=_0x4a1c87,_0x17ff4b=new Map();return _0x5061fa[_0x52df21(0x2aa)]((_0x9d3599,_0x323924)=>{const _0x34456=_0x52df21;if(_0x9d3599[_0x34456(0x219)]===_0x4e642e){const _0xa64d22={..._0x9d3599};_0xa64d22[_0x34456(0x2b4)]=this[_0x34456(0x2f1)][_0x34456(0x2d6)](_0x9d3599[_0x34456(0x2b4)]),_0x17ff4b[_0x34456(0x18c)](_0x323924,_0xa64d22);}}),{'skeleton':_0x1a2f60,'cursors':_0x17ff4b};}));}return _0x25bb07({'skeleton':null,'cursors':new Map()});}))[_0x3147c8(0x304)](({skeleton:_0x1c3b5b,cursors:_0x3e4166})=>{const _0x418b7a=_0x3147c8;this[_0x418b7a(0x188)](),_0x1c3b5b&&this['_updateCollabCursors'](_0x1c3b5b,_0x3e4166);}),this['_sheetSkeletonManagerService'][_0x3147c8(0x2ac)]['subscribe'](_0x1bb2d5=>{const _0x5b7589=_0x3147c8;if(_0x1bb2d5==null)return;const {skeleton:_0x8e7b7d}=_0x1bb2d5,{scene:_0x214947}=this[_0x5b7589(0x368)];_0x214947['onPointerMove$'][_0x5b7589(0x223)](_0x32e5dd(_0x594c03=>{const _0x5f25d3=_0x5b7589;var _0x19df57,_0x1eaf00;const {offsetX:_0x3b3437,offsetY:_0x153689}=_0x594c03,{x:_0x398bd4,y:_0x224535}=_0x214947[_0x5f25d3(0x348)](_0x2ae925[_0x5f25d3(0x26b)]([_0x3b3437,_0x153689])),{scaleX:_0x47d1a1,scaleY:_0x32310a}=_0x214947[_0x5f25d3(0x373)](),_0x4ba0f7=_0x214947[_0x5f25d3(0x2c5)](_0x293586['VIEW_MAIN']),_0x235669=_0x214947[_0x5f25d3(0x2dc)](_0x2ae925[_0x5f25d3(0x26b)]([_0x398bd4,_0x224535]),_0x4ba0f7),_0x4d37ab=_0x8e7b7d[_0x5f25d3(0x334)](_0x3b3437,_0x153689,_0x47d1a1,_0x32310a,_0x235669);((_0x19df57=this[_0x5f25d3(0x30b)])==null?void 0x0:_0x19df57[_0x5f25d3(0x20d)])===_0x4d37ab[_0x5f25d3(0x20d)]&&((_0x1eaf00=this[_0x5f25d3(0x30b)])==null?void 0x0:_0x1eaf00[_0x5f25d3(0x2ef)])===_0x4d37ab['row']||this[_0x5f25d3(0x25a)][_0x5f25d3(0x2aa)](_0x814b5b=>{const _0x5eeed5=_0x5f25d3;_0x814b5b[_0x5eeed5(0x256)](_0x4d37ab);});},0x64));});}[_0x2f044f(0x18d)](_0x2c4e19,_0x1b5ffd){const _0x1ea876=_0x2f044f;var _0xc7aa9a;const _0x4e907e=(_0xc7aa9a=this[_0x1ea876(0x274)][_0x1ea876(0x36a)]())==null?void 0x0:_0xc7aa9a['skeleton'];if(!_0x4e907e)return;const _0x36ec19=this['_getSheetObject']();if(!_0x36ec19)return;this[_0x1ea876(0x25a)]['forEach'](_0x45f518=>{const _0x535876=_0x1ea876;_0x45f518[_0x535876(0x319)]();});const {scene:_0x90e3a7}=_0x36ec19,_0x4a725c=nn(Array[_0x1ea876(0x2f0)](_0x1b5ffd[_0x1ea876(0x2ae)]()))[_0x1ea876(0x1bc)](_0x167d08=>{const _0x2b1233=_0x1ea876,{color:_0x3122fc,range:_0x4b1a0d,name:_0x2e8370,selection:_0x1c16ca,sheetID:_0x4fe89c}=_0x167d08,{startColumn:_0xb0ba83,startRow:_0x591f31,endColumn:_0x5c145b,endRow:_0x4c0586}=_0x4b1a0d,_0x235ccd=_0x545dfb(_0x591f31,_0xb0ba83,_0x90e3a7,_0x4e907e),_0x158412=_0x545dfb(_0x4c0586,_0x5c145b,_0x90e3a7,_0x4e907e),{columnHeaderHeightAndMarginTop:_0x530c58}=_0x4e907e,{startX:_0x314098,startY:_0x5a8c4d}=_0x235ccd,{endX:_0x4617bd,endY:_0x2a8d7d}=_0x158412,_0x2b5419=_0x4617bd-_0x314098,_0x3074af=_0x2a8d7d-_0x5a8c4d,_0xb10c91={'labelPosition':_0x5a8c4d-_0x530c58>=Q?_0x2b1233(0x190):_0x2b1233(0x2b1),'sheetID':_0x4fe89c,'range':_0x4b1a0d,'color':_0x3122fc,'name':_0x2e8370,'selection':_0x1c16ca,'left':_0x314098,'top':_0x5a8c4d,'width':_0x2b5419,'height':_0x3074af,'evented':!0x1,'zIndex':sn};return new qi(_0x2e8370,_0xb10c91);});_0x90e3a7['addObjects'](_0x4a725c,Zi),this[_0x1ea876(0x25a)]=new Set(_0x4a725c);}[_0x2f044f(0x188)](){const _0x384933=_0x2f044f;var _0x2ecb69;(_0x2ecb69=this[_0x384933(0x25a)])==null||_0x2ecb69['forEach'](_0x4f9767=>_0x4f9767[_0x384933(0x265)]());}[_0x2f044f(0x1c7)](){const _0x31e94c=_0x2f044f;return _0x264d3a(this[_0x31e94c(0x368)][_0x31e94c(0x1b3)],this['_context']);}};$e=tn([Ce(0x1,_0x30bdc8(_0x3c396a)),Ce(0x2,_0x30bdc8(H)),Ce(0x3,_0x30bdc8(_0x52ee13))],$e);function nn(_0x3ade01){const _0x8d3946=_0x2f044f,_0x210a07=new Map();return _0x3ade01[_0x8d3946(0x2aa)](_0x28e987=>{const _0x38b46c=_0x8d3946;if(_0x210a07[_0x38b46c(0x2d3)](_0x28e987['selection'])){const _0x25d07d=_0x210a07['get'](_0x28e987['selection']);_0x25d07d['name']+=',\x20'+_0x28e987[_0x38b46c(0x164)];}else _0x210a07[_0x38b46c(0x18c)](_0x28e987['selection'],_0x28e987);}),Array[_0x8d3946(0x2f0)](_0x210a07[_0x8d3946(0x2ae)]());}var rn=Object['getOwnPropertyDescriptor'],on=(_0x2bca7b,_0x1d2f71,_0x2b6869,_0x4a4122)=>{const _0x365142=_0x2f044f;for(var _0x2bb423=_0x4a4122>0x1?void 0x0:_0x4a4122?rn(_0x1d2f71,_0x2b6869):_0x1d2f71,_0x57d617=_0x2bca7b[_0x365142(0x1be)]-0x1,_0x4c8353;_0x57d617>=0x0;_0x57d617--)(_0x4c8353=_0x2bca7b[_0x57d617])&&(_0x2bb423=_0x4c8353(_0x2bb423)||_0x2bb423);return _0x2bb423;},F=(_0xcab3e,_0x8d7c81)=>(_0xfb1a02,_0x562289)=>_0x8d7c81(_0xfb1a02,_0x562289,_0xcab3e);let ce=class extends _0x3070e7{constructor(_0x19d5e8,_0x40b00a,_0x54c190,_0x4eafd3,_0xbe0221,_0x22b409){const _0x470ca2=_0x2f044f;super(),this['_beforeCloseService']=_0x19d5e8,this[_0x470ca2(0x358)]=_0x40b00a,this['_collaborationUIEventService']=_0x54c190,this['_messageService']=_0x4eafd3,this[_0x470ca2(0x2eb)]=_0xbe0221,this[_0x470ca2(0x192)]=_0x22b409,this[_0x470ca2(0x13c)](),this[_0x470ca2(0x1f7)]();}[_0x2f044f(0x13c)](){const _0x36c9b7=_0x2f044f;this[_0x36c9b7(0x355)](this[_0x36c9b7(0x282)][_0x36c9b7(0x243)](()=>{const _0x40893a=_0x36c9b7;if(this[_0x40893a(0x358)][_0x40893a(0x1cb)][_0x40893a(0x2ab)])return this['_localeService']['t'](_0x40893a(0x205));}));}[_0x2f044f(0x1f7)](){const _0x1846d2=_0x2f044f;this[_0x1846d2(0x355)](this[_0x1846d2(0x2ec)]['event$'][_0x1846d2(0x304)](_0x10c9d0=>{const _0x309180=_0x1846d2;_0x10c9d0['id']===_0x3cd7d2['OTHER_CLIENT_EDITING']&&this[_0x309180(0x312)][_0x309180(0x1f8)]({'type':_0x17dcef[_0x309180(0x22e)],'content':this[_0x309180(0x192)]['t'](_0x309180(0x28b))}),_0x10c9d0['id']===_0x3cd7d2[_0x309180(0x26d)]&&this[_0x309180(0x312)]['show']({'type':_0x17dcef[_0x309180(0x22e)],'content':this[_0x309180(0x192)]['t'](_0x309180(0x247))}),_0x10c9d0['id']===_0x3cd7d2[_0x309180(0x366)]&&this[_0x309180(0x2eb)][_0x309180(0x1f8)]({'title':this[_0x309180(0x192)]['t'](_0x309180(0x170)),'content':this[_0x309180(0x192)]['t'](_0x309180(0x31c)),'type':'error','duration':0x0}),_0x10c9d0['id']===_0x3cd7d2[_0x309180(0x317)]&&this[_0x309180(0x312)][_0x309180(0x1f8)]({'type':_0x17dcef[_0x309180(0x2fb)],'content':this[_0x309180(0x192)]['t'](_0x309180(0x247))+'('+_0x10c9d0[_0x309180(0x2a0)]+')'}),_0x10c9d0['id']===_0x3cd7d2['JOIN_ROOM_FAILED']&&this[_0x309180(0x312)][_0x309180(0x1f8)]({'type':_0x17dcef[_0x309180(0x22e)],'content':this[_0x309180(0x192)]['t'](_0x10c9d0[_0x309180(0x2a0)]||'')}),_0x10c9d0['id']===_0x3cd7d2[_0x309180(0x1fd)]&&this[_0x309180(0x312)][_0x309180(0x1f8)]({'type':_0x17dcef['Warning'],'content':this['_localeService']['t'](_0x309180(0x19d))}),_0x10c9d0['id']===_0x3cd7d2[_0x309180(0x308)]&&this[_0x309180(0x312)][_0x309180(0x1f8)]({'type':_0x17dcef[_0x309180(0x2fb)],'content':this['_localeService']['t'](_0x309180(0x252))}),_0x10c9d0['id']===_0x3cd7d2[_0x309180(0x276)]&&this[_0x309180(0x312)][_0x309180(0x1f8)]({'type':_0x17dcef['Error'],'content':this[_0x309180(0x192)]['t'](_0x309180(0x1ce))});}));}};ce=on([F(0x0,_0x4de469),F(0x1,_0x2ccb07),F(0x2,_0x30bdc8(_0x4151ec)),F(0x3,_0x1865bb),F(0x4,_0x2b2a16),F(0x5,_0x30bdc8(_0x3c120a))],ce);const an=_0x2f044f(0x28f),rt={};var cn=Object[_0x2f044f(0x295)],_n=(_0x24d90a,_0x49585f,_0x59e587,_0x57198f)=>{for(var _0x133fd6=_0x57198f>0x1?void 0x0:_0x57198f?cn(_0x49585f,_0x59e587):_0x49585f,_0xd7fdee=_0x24d90a['length']-0x1,_0x441115;_0xd7fdee>=0x0;_0xd7fdee--)(_0x441115=_0x24d90a[_0xd7fdee])&&(_0x133fd6=_0x441115(_0x133fd6)||_0x133fd6);return _0x133fd6;},ot=(_0x260f9d,_0xd7a2d0)=>(_0x210cbc,_0x24fab5)=>_0xd7a2d0(_0x210cbc,_0x24fab5,_0x260f9d);let _e=class{constructor(_0x493d1d,_0x2e6fff){const _0x1e4293=_0x2f044f;this['_transformService']=_0x493d1d,this[_0x1e4293(0x30c)]=_0x2e6fff;}[_0x2f044f(0x1a6)](_0x30a34d){this['_transformUndoRedoStack'](_0x30a34d),this['_transformPreviousActiveRange'](_0x30a34d);}[_0x2f044f(0x31f)](_0x1cd06b){const _0x6c0241=_0x2f044f,{unitID:_0x3b63ed}=_0x1cd06b,_0x3113ad=this[_0x6c0241(0x30c)][_0x6c0241(0x378)](_0x3b63ed)[_0x6c0241(0x259)](_0x50464f),{redoCache:_0x3bc0a8}=_0x3113ad[_0x6c0241(0x13f)]();if(_0x3bc0a8[_0x6c0241(0x1be)]===0x0)return _0x1cd06b;let _0x52b150=_0x54294e[_0x6c0241(0x2a4)](_0x1cd06b[_0x6c0241(0x330)][0x0]);for(let _0x222d55=0x0;_0x222d55<_0x3bc0a8[_0x6c0241(0x1be)];_0x222d55++){const _0x27b699={'id':_0x6c0241(0x241),'params':{..._0x3bc0a8[_0x222d55]}},_0xd8118c=this['_transformService'][_0x6c0241(0x30f)](_0x52b150,_0x27b699,!0x1);if(_0x3f2a8d(_0xd8118c))throw _0xd8118c['error'];_0x52b150=_0xd8118c[_0x6c0241(0x2c6)];}return{..._0x54294e['deepClone'](_0x1cd06b),'mutations':[_0x52b150]};}[_0x2f044f(0x1a1)](_0x30b217){const _0x37ac99=_0x2f044f,{unitID:_0x6d6625}=_0x30b217,_0x4c6e67=this[_0x37ac99(0x30c)][_0x37ac99(0x378)](_0x6d6625)[_0x37ac99(0x259)](_0x50464f),{undoCache:_0x4b4365,redoCache:_0x5477ec}=_0x4c6e67[_0x37ac99(0x13f)]();if(_0x4b4365[_0x37ac99(0x1be)]===0x0||_0x5477ec['length']===0x0)return;const _0x4c989a=[],_0x1ec8d7=[];let _0x5bbd0f=_0x54294e[_0x37ac99(0x2a4)](_0x30b217[_0x37ac99(0x330)][0x0]),_0x1623ae=_0x54294e[_0x37ac99(0x2a4)](_0x30b217[_0x37ac99(0x330)][0x0]);for(let _0x5c9ed9=_0x4b4365[_0x37ac99(0x1be)]-0x1;_0x5c9ed9>=0x0;_0x5c9ed9--){const _0x4fc3a2={'id':_0x37ac99(0x241),'params':{..._0x4b4365[_0x5c9ed9]}},_0x15d5b0={'id':_0x37ac99(0x241),'params':{..._0x5477ec[_0x5c9ed9]}},_0x58290b=this[_0x37ac99(0x1a8)]['transformMutation'](_0x5bbd0f,_0x4fc3a2,!0x1),_0xb65a7=this[_0x37ac99(0x1a8)][_0x37ac99(0x30f)](_0x1623ae,_0x15d5b0,!0x1);if(_0x3f2a8d(_0x58290b))throw _0x58290b[_0x37ac99(0x2cd)];if(_0x3f2a8d(_0xb65a7))throw _0xb65a7[_0x37ac99(0x2cd)];_0x4c989a[_0x37ac99(0x22c)](_0x58290b[_0x37ac99(0x376)][_0x37ac99(0x367)]),_0x1ec8d7[_0x37ac99(0x22c)](_0xb65a7[_0x37ac99(0x376)][_0x37ac99(0x367)]),_0x5bbd0f=_0x58290b['m1Prime'],_0x1623ae=_0xb65a7[_0x37ac99(0x2c6)];}_0x4c6e67[_0x37ac99(0x155)]({'undoCache':_0x4c989a,'redoCache':_0x1ec8d7});}[_0x2f044f(0x23b)](_0x31b54a){const _0x484f24=_0x2f044f,{unitID:_0x3cc9f3}=_0x31b54a,_0x178a55=this[_0x484f24(0x30c)][_0x484f24(0x378)](_0x3cc9f3)[_0x484f24(0x259)](_0x50464f),_0x33d1fd=_0x178a55[_0x484f24(0x354)]();if(_0x33d1fd==null)return;const _0x3262fa=[{'id':_0x484f24(0x241),'params':{'unitId':_0x31b54a['unitID'],'actions':null,'textRanges':[_0x33d1fd]}}],_0x32ccca=this[_0x484f24(0x1a8)][_0x484f24(0x1c2)](_0x31b54a,_0x3262fa);if(!_0x233b43(_0x32ccca))throw _0x32ccca[_0x484f24(0x2cd)];const _0x23141b=_0x32ccca[_0x484f24(0x376)][0x0][_0x484f24(0x367)][_0x484f24(0x2f7)];Array[_0x484f24(0x203)](_0x23141b)&&_0x23141b[_0x484f24(0x1be)]&&_0x178a55[_0x484f24(0x146)](_0x23141b[0x0]);}};_e=_n([ot(0x0,_0x3a64be),ot(0x1,_0x3e044c)],_e);var ln=Object['getOwnPropertyDescriptor'],hn=(_0x106082,_0x4c950e,_0x2e46f6,_0x117c73)=>{const _0x427537=_0x2f044f;for(var _0x3cccce=_0x117c73>0x1?void 0x0:_0x117c73?ln(_0x4c950e,_0x2e46f6):_0x4c950e,_0x1ef940=_0x106082[_0x427537(0x1be)]-0x1,_0x201f32;_0x1ef940>=0x0;_0x1ef940--)(_0x201f32=_0x106082[_0x1ef940])&&(_0x3cccce=_0x201f32(_0x3cccce)||_0x3cccce);return _0x3cccce;},Re=(_0x443a70,_0x348da5)=>(_0x43bacf,_0x14e105)=>_0x348da5(_0x43bacf,_0x14e105,_0x443a70);let le=class{constructor(_0x3947a4,_0x4a20e4,_0x291b50){const _0x4f53ec=_0x2f044f;this['_injector']=_0x3947a4,this[_0x4f53ec(0x1a8)]=_0x4a20e4,this[_0x4f53ec(0x148)]=_0x291b50;}[_0x2f044f(0x1a4)](_0x47945d){const _0x7e3c3c=_0x2f044f;this[_0x7e3c3c(0x13d)](_0x47945d);}[_0x2f044f(0x31f)](_0x3ae37d){const _0x1b0d5d=_0x2f044f,{unitID:_0x24be4e}=_0x3ae37d,{collaboration:_0x174e0d}=this[_0x1b0d5d(0x148)][_0x1b0d5d(0x162)](_0x24be4e);if(_0x174e0d[_0x1b0d5d(0x1be)]===0x0)return _0x3ae37d;let _0x57cd2a=_0x54294e[_0x1b0d5d(0x2a4)](_0x3ae37d[_0x1b0d5d(0x330)][0x0]);for(let _0x5dff12=0x0;_0x5dff12<_0x174e0d[_0x1b0d5d(0x1be)];_0x5dff12++){const _0x5d90ba={'id':_0x1b0d5d(0x241),'params':{'unitId':_0x174e0d[_0x5dff12][_0x1b0d5d(0x22a)],..._0x174e0d[_0x5dff12][_0x1b0d5d(0x311)]}},_0xa30871=this['_transformService'][_0x1b0d5d(0x30f)](_0x57cd2a,_0x5d90ba,!0x1);if(_0x3f2a8d(_0xa30871))throw _0xa30871[_0x1b0d5d(0x2cd)];_0x57cd2a=_0xa30871[_0x1b0d5d(0x2c6)];}return{..._0x54294e[_0x1b0d5d(0x2a4)](_0x3ae37d),'mutations':[_0x57cd2a]};}[_0x2f044f(0x13d)](_0x5d16a8){const _0x4faeb7=_0x2f044f,{unitID:_0x2f63ad}=_0x5d16a8,{history:_0x1afc88,collaboration:_0x44f3f2}=this[_0x4faeb7(0x148)][_0x4faeb7(0x162)](_0x2f63ad);if(_0x1afc88[_0x4faeb7(0x1be)]===0x0&&_0x44f3f2[_0x4faeb7(0x1be)]===0x0)return;const _0x1237e7=[],_0x23fc25=[];let _0x462c84=_0x54294e[_0x4faeb7(0x2a4)](_0x5d16a8[_0x4faeb7(0x330)][0x0]),_0x3af1f9=_0x54294e[_0x4faeb7(0x2a4)](_0x5d16a8[_0x4faeb7(0x330)][0x0]);for(let _0x1f39c0=_0x1afc88[_0x4faeb7(0x1be)]-0x1;_0x1f39c0>=0x0;_0x1f39c0--){const _0x5b1699={'id':_0x4faeb7(0x241),'params':{'unitId':_0x1afc88[_0x1f39c0][_0x4faeb7(0x22a)],..._0x1afc88[_0x1f39c0][_0x4faeb7(0x2d7)]}},_0x56f6ff={'id':_0x4faeb7(0x241),'params':{'unitId':_0x1afc88[_0x1f39c0]['unitId'],..._0x1afc88[_0x1f39c0][_0x4faeb7(0x311)]}},_0x49c699=this[_0x4faeb7(0x1a8)][_0x4faeb7(0x30f)](_0x462c84,_0x5b1699,!0x1),_0x4526ff=this[_0x4faeb7(0x1a8)][_0x4faeb7(0x30f)](_0x3af1f9,_0x56f6ff,!0x1);if(_0x3f2a8d(_0x49c699))throw _0x49c699[_0x4faeb7(0x2cd)];if(_0x3f2a8d(_0x4526ff))throw _0x4526ff[_0x4faeb7(0x2cd)];_0x1237e7['unshift']({..._0x1afc88[_0x1f39c0],'undoState':_0x49c699[_0x4faeb7(0x376)][_0x4faeb7(0x367)],'redoState':_0x4526ff['m2Prime']['params']}),_0x462c84=_0x49c699[_0x4faeb7(0x2c6)],_0x3af1f9=_0x4526ff['m1Prime'];}_0x462c84=_0x54294e['deepClone'](_0x5d16a8['mutations'][0x0]),_0x3af1f9=_0x54294e[_0x4faeb7(0x2a4)](_0x5d16a8['mutations'][0x0]);for(let _0x392fdd=_0x44f3f2[_0x4faeb7(0x1be)]-0x1;_0x392fdd>=0x0;_0x392fdd--){const _0x2c2ded={'id':_0x4faeb7(0x241),'params':{'unitId':_0x44f3f2[_0x392fdd][_0x4faeb7(0x22a)],..._0x44f3f2[_0x392fdd][_0x4faeb7(0x2d7)]}},_0x5a059e={'id':_0x4faeb7(0x241),'params':{'unitId':_0x44f3f2[_0x392fdd][_0x4faeb7(0x22a)],..._0x44f3f2[_0x392fdd]['redoState']}},_0x48d65c=this[_0x4faeb7(0x1a8)][_0x4faeb7(0x30f)](_0x462c84,_0x2c2ded,!0x1),_0x2fe73b=this['_transformService'][_0x4faeb7(0x30f)](_0x3af1f9,_0x5a059e,!0x1);if(_0x3f2a8d(_0x48d65c))throw _0x48d65c['error'];if(_0x3f2a8d(_0x2fe73b))throw _0x2fe73b[_0x4faeb7(0x2cd)];_0x23fc25['unshift']({..._0x44f3f2[_0x392fdd],'undoState':_0x48d65c[_0x4faeb7(0x376)]['params'],'redoState':_0x2fe73b[_0x4faeb7(0x376)][_0x4faeb7(0x367)]}),_0x462c84=_0x48d65c[_0x4faeb7(0x2c6)],_0x3af1f9=_0x2fe73b[_0x4faeb7(0x2c6)];}this['_docStateChangeManagerService']['setStateCache'](_0x2f63ad,{'history':_0x1237e7,'collaboration':_0x23fc25});}};le=hn([Re(0x0,_0x30bdc8(_0x4568e0)),Re(0x1,_0x3a64be),Re(0x2,_0x30bdc8(_0x99482e))],le);var un=Object[_0x2f044f(0x295)],dn=(_0x3d0f3a,_0x5845d2,_0x36c442,_0x3b0b17)=>{const _0x4d71a3=_0x2f044f;for(var _0x206058=_0x3b0b17>0x1?void 0x0:_0x3b0b17?un(_0x5845d2,_0x36c442):_0x5845d2,_0x22b2fd=_0x3d0f3a[_0x4d71a3(0x1be)]-0x1,_0x2a329b;_0x22b2fd>=0x0;_0x22b2fd--)(_0x2a329b=_0x3d0f3a[_0x22b2fd])&&(_0x206058=_0x2a329b(_0x206058)||_0x206058);return _0x206058;},at=(_0xba0a1b,_0x404f00)=>(_0x4d59a6,_0xceff4d)=>_0x404f00(_0x4d59a6,_0xceff4d,_0xba0a1b);let he=class{constructor(_0x2108b7,_0x5dade2){this['_injector']=_0x2108b7,this['_transformService']=_0x5dade2;}[_0x2f044f(0x2f9)](_0x17fdb7){const _0x546834=_0x2f044f;var _0x5ceeda;const _0x2fbebc=this['_injector'][_0x546834(0x2d1)](_0x349b69),_0x3431f4=(_0x5ceeda=_0x2fbebc[_0x546834(0x310)]())!=null?_0x5ceeda:[];if(_0x3431f4[_0x546834(0x1be)]===0x0)return;const _0x5e555e=_0x17fdb7[_0x546834(0x261)],_0x52290a=[{'id':_0x546834(0x241),'params':{'unitId':_0x5e555e,'actions':null,'textRanges':_0x3431f4}}],_0x529fa4=this[_0x546834(0x1a8)][_0x546834(0x1c2)](_0x17fdb7,_0x52290a);if(!_0x233b43(_0x529fa4))throw _0x529fa4[_0x546834(0x2cd)];const _0x67af85=_0x529fa4[_0x546834(0x376)][0x0][_0x546834(0x367)]['textRanges'];Array[_0x546834(0x203)](_0x67af85)&&_0x67af85['length']&&_0x2fbebc[_0x546834(0x160)](_0x67af85,{'unitId':_0x5e555e,'subUnitId':_0x5e555e},!0x1);}};he=dn([at(0x0,_0x30bdc8(_0x4568e0)),at(0x1,_0x3a64be)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x237f31,_0xa7b76e,_0x47c73d,_0x1decc8)=>{const _0x2fe5c6=_0x2f044f;for(var _0x15890a=_0x1decc8>0x1?void 0x0:_0x1decc8?Sn(_0xa7b76e,_0x47c73d):_0xa7b76e,_0x5a1d36=_0x237f31[_0x2fe5c6(0x1be)]-0x1,_0xdec410;_0x5a1d36>=0x0;_0x5a1d36--)(_0xdec410=_0x237f31[_0x5a1d36])&&(_0x15890a=_0xdec410(_0x15890a)||_0x15890a);return _0x15890a;},b=(_0x566874,_0x16da1a)=>(_0x2c3d47,_0x1de105)=>_0x16da1a(_0x2c3d47,_0x1de105,_0x566874);let ue=class extends _0x3070e7{constructor(_0xd4869d,_0x56b1d2,_0x4b5a76,_0x445b2a,_0x3d85c0,_0x23ad52,_0x2c0104,_0xdbdd2d){const _0x124365=_0x2f044f;super(),l(this,_0x124365(0x297),new _0x11f3cd(_0x60ba72[_0x124365(0x32d)])),(this[_0x124365(0x148)]=_0xd4869d,this['_collaborationController']=_0x56b1d2,this[_0x124365(0x1db)]=_0x4b5a76,this['_docTransformStateCacheService']=_0x445b2a,this[_0x124365(0x139)]=_0x3d85c0,this['_docSyncEditingCollabCursorService']=_0x23ad52,this['_messageService']=_0x2c0104,this['_localeService']=_0xdbdd2d,this[_0x124365(0x16f)]());}[_0x2f044f(0x16f)](){const _0xa1aafa=_0x2f044f;this['disposeWithMe'](this[_0xa1aafa(0x253)][_0xa1aafa(0x1e2)][_0xa1aafa(0x304)](_0x58e43d=>{const _0x140ac8=_0xa1aafa,_0x3e453f=this['_docStateChangeManagerService'][_0x140ac8(0x1bd)]['subscribe'](_0x15e7ab=>{const _0x446056=_0x140ac8;if(_0x15e7ab==null)return;const {unitId:_0x18079d,redoState:_0x355bd2,commandId:_0x34daaf}=_0x15e7ab;if(_0x18079d!==_0x58e43d['unitID'])return;const _0x3da646={'id':_0x34daaf,'type':_0x15a9e3[_0x446056(0x212)],'params':{'unitId':_0x18079d,'actions':_0x355bd2['actions'],'textRanges':null}};_0x58e43d[_0x446056(0x20e)](_0x3da646);});if(_0x58e43d[_0x140ac8(0x355)](_0x3e453f),_0x58e43d instanceof _0x3d0825){const _0x52bee6={'onTransformIME':_0x17df38=>this[_0x140ac8(0x1db)][_0x140ac8(0x1a6)](_0x17df38),'onTransformState':_0x143463=>this['_docTransformStateCacheService'][_0x140ac8(0x1a4)](_0x143463),'onTransformSelections':_0x5f4ca1=>this[_0x140ac8(0x139)][_0x140ac8(0x2f9)](_0x5f4ca1),'onSyncEditingCollabCursor':_0x31331c=>this['_docSyncEditingCollabCursorService'][_0x140ac8(0x2ee)](_0x31331c),'onTransformRemoteChangesetByIMECache':_0x3a41c2=>this[_0x140ac8(0x1db)][_0x140ac8(0x31f)](_0x3a41c2),'onTransformRemoteChangesetByStateCache':_0x505701=>this[_0x140ac8(0x2df)][_0x140ac8(0x31f)](_0x505701)};_0x58e43d[_0x140ac8(0x22b)](_0x52bee6);}}));}};ue=In([b(0x0,_0x30bdc8(_0x99482e)),b(0x1,_0x30bdc8(_0x29a4d3)),b(0x2,_0x30bdc8(_e)),b(0x3,_0x30bdc8(le)),b(0x4,_0x30bdc8(he)),b(0x5,_0x30bdc8(Xe)),b(0x6,_0x1865bb),b(0x7,_0x30bdc8(_0x3c120a))],ue);var Z=(_0x2e8b7e=>(_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x1b5)]=0x0]=_0x2f044f(0x1b5),_0x2e8b7e[_0x2e8b7e['OK']=0x1]='OK',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x14d)]=0x2]=_0x2f044f(0x14d),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x366)]=0x3]=_0x2f044f(0x366),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x331)]=0x4]='NOT_FOUND',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x2ed)]=0x5]=_0x2f044f(0x2ed),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x251)]=0x6]=_0x2f044f(0x251),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x189)]=0x7]=_0x2f044f(0x189),_0x2e8b7e[_0x2e8b7e['TOO_MANY_REQUESTS']=0x8]=_0x2f044f(0x1aa),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x194)]=0x9]=_0x2f044f(0x194),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x33d)]=0xa]='LOGIN_FAILED',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x2fe)]=0xb]=_0x2f044f(0x2fe),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x218)]=0xc]=_0x2f044f(0x218),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x221)]=0xd]=_0x2f044f(0x221),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x28d)]=0xe]=_0x2f044f(0x28d),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x280)]=0xf]=_0x2f044f(0x280),_0x2e8b7e[_0x2e8b7e['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x2f044f(0x1c5),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x21b)]=0x64]=_0x2f044f(0x21b),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x34d)]=0x65]='ERROR_AGAIN',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x32b)]=0xc9]=_0x2f044f(0x32b),_0x2e8b7e[_0x2e8b7e['USER_IS_ANONYMOUS']=0xca]='USER_IS_ANONYMOUS',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x1d0)]=0x1389]=_0x2f044f(0x1d0),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x143)]=0x1771]=_0x2f044f(0x143),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x1c0)]=0x1772]=_0x2f044f(0x1c0),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x1d8)]=0x1773]=_0x2f044f(0x1d8),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x166)]=0x1b59]=_0x2f044f(0x166),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x269)]=0x1b5a]=_0x2f044f(0x269),_0x2e8b7e[_0x2e8b7e['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x2f044f(0x1f0),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x329)]=0x1b5c]=_0x2f044f(0x329),_0x2e8b7e[_0x2e8b7e['APPLY_DUPLICATED']=0x1b5d]=_0x2f044f(0x266),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x2e5)]=0x1f41]=_0x2f044f(0x2e5),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x158)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x249)]=0x232a]=_0x2f044f(0x249),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x183)]=0x232b]=_0x2f044f(0x183),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x326)]=0x232c]=_0x2f044f(0x326),_0x2e8b7e[_0x2e8b7e['LICENSE_DISTRO_REJECTED']=0x232d]=_0x2f044f(0x217),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x167)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x2e8b7e[_0x2e8b7e['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x2f044f(0x2bd),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x379)]=0x2713]=_0x2f044f(0x379),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x2bc)]=0x2714]=_0x2f044f(0x2bc),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x168)]=0x271a]=_0x2f044f(0x168),_0x2e8b7e[_0x2e8b7e['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x2f044f(0x206),_0x2e8b7e[_0x2e8b7e['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x2e8b7e[_0x2e8b7e['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x13b)]=0x271e]=_0x2f044f(0x13b),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x314)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x260)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x2e8b7e[_0x2e8b7e['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x2f044f(0x1e0),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x2a3)]=0x2ee1]=_0x2f044f(0x2a3),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x300)]=0x2ee2]=_0x2f044f(0x300),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x1c8)]=0x2ee3]=_0x2f044f(0x1c8),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x216)]=0x2ee4]=_0x2f044f(0x216),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x2e7)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x147)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x25d)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x322)]=0x32cb]=_0x2f044f(0x322),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x324)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x30a)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x1f6)]=0x36b3]=_0x2f044f(0x1f6),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x25b)]=0x36b4]=_0x2f044f(0x25b),_0x2e8b7e[_0x2e8b7e['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x2f044f(0x186),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x17e)]=0x3716]=_0x2f044f(0x17e),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x255)]=0x3717]=_0x2f044f(0x255),_0x2e8b7e[_0x2e8b7e['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x35a)]=0x3a99]=_0x2f044f(0x35a),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x286)]=0x3a9a]=_0x2f044f(0x286),_0x2e8b7e[_0x2e8b7e['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x2f044f(0x1d6),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x16d)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x321)]=0x3a9d]=_0x2f044f(0x321),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x1a9)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x1ae)]=0x3a9f]=_0x2f044f(0x1ae),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x24d)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x345)]=-0x1]=_0x2f044f(0x345),_0x2e8b7e))(Z||{});function mn(_0x3ccb47){const _0x19da4c=_0x2f044f;var _0x14b831,_0x28d3e6;const _0xf4d56b=(_0x14b831=_0x3ccb47[_0x19da4c(0x2a9)])==null?void 0x0:_0x14b831[_0x19da4c(0x1fa)],_0x21c147=((_0x28d3e6=_0x3ccb47[_0x19da4c(0x2a9)])==null?void 0x0:_0x28d3e6[_0x19da4c(0x14a)])||0x0;return _0xf4d56b===_0x52da47['START_CALCULATION']&&_0x21c147>0x0;}function fn(_0xb310ef){const _0x4b534e=_0x2f044f;return _0xb310ef[_0x4b534e(0x172)]===_0x58c49a[_0x4b534e(0x1b4)];}var gn=Object[_0x2f044f(0x295)],vn=(_0x19300e,_0x3ba4eb,_0x3e9d48,_0x1bb008)=>{const _0x202dd6=_0x2f044f;for(var _0x7c37bd=_0x1bb008>0x1?void 0x0:_0x1bb008?gn(_0x3ba4eb,_0x3e9d48):_0x3ba4eb,_0x34019f=_0x19300e[_0x202dd6(0x1be)]-0x1,_0xb55ac5;_0x34019f>=0x0;_0x34019f--)(_0xb55ac5=_0x19300e[_0x34019f])&&(_0x7c37bd=_0xb55ac5(_0x7c37bd)||_0x7c37bd);return _0x7c37bd;},P=(_0x4334e0,_0x52d499)=>(_0x5997fb,_0x5a73e4)=>_0x52d499(_0x5997fb,_0x5a73e4,_0x4334e0);const En=_0x2f044f(0x281),pn=_0x2f044f(0x224),On=_0x2f044f(0x31a);let de=class extends _0x3070e7{constructor(_0x3a1dfc,_0x1447bc,_0xfe0c53,_0x40618d,_0x19597a,_0x3bf4db,_0x555b1b){const _0x5d997e=_0x2f044f;super(),l(this,_0x5d997e(0x199),null),l(this,_0x5d997e(0x283),0x0),l(this,_0x5d997e(0x2e1),0x0),l(this,_0x5d997e(0x151),[]),l(this,_0x5d997e(0x296),0x0),(this[_0x5d997e(0x312)]=_0x3a1dfc,this[_0x5d997e(0x2c7)]=_0x1447bc,this[_0x5d997e(0x353)]=_0xfe0c53,this[_0x5d997e(0x2b5)]=_0x40618d,this[_0x5d997e(0x36b)]=_0x19597a,this['_logService']=_0x3bf4db,this[_0x5d997e(0x192)]=_0x555b1b,this[_0x5d997e(0x323)]());}['_initCommandInterceptor'](){const _0x1d2f2e=_0x2f044f;this[_0x1d2f2e(0x355)](this['_commandService'][_0x1d2f2e(0x18e)]((_0x3bb242,_0xe64afe)=>{const _0x264a7f=_0x1d2f2e;var _0x4bf790;if(_0x3bb242['id']!==_0x684e31['id'])return;const _0x3642fe=_0x3bb242[_0x264a7f(0x367)];if(!this[_0x264a7f(0x2b8)]((_0x4bf790=_0x3642fe[_0x264a7f(0x201)])!=null?_0x4bf790:[]))return;if(!this[_0x264a7f(0x301)]())throw this['_checkAndWaitForCalculationPermission'](_0x3bb242,_0xe64afe),this['_showGuardMessage'](),new _0x1b9467();})),this[_0x1d2f2e(0x355)](this['_commandService']['onCommandExecuted']((_0x4c9c28,_0x4c9631)=>{const _0x55d249=_0x1d2f2e;if(_0x4c9c28['id']!==_0x288bd8['id'])return;const _0xf8d3b=_0x4c9c28[_0x55d249(0x367)];if(mn(_0xf8d3b)){const _0x2f05d0=_0x243a41();this[_0x55d249(0x151)]['push'](_0x2f05d0),this[_0x55d249(0x169)](_0x2f05d0);}else{if(fn(_0xf8d3b)&&this[_0x55d249(0x151)]['length']>0x0){const _0x9177f=this[_0x55d249(0x151)][_0x55d249(0x1b9)]();this[_0x55d249(0x31d)](_0x9177f);}}}));}[_0x2f044f(0x265)](){const _0x47d06b=_0x2f044f;super[_0x47d06b(0x265)](),this[_0x47d06b(0x1ff)](),this[_0x47d06b(0x151)]=[],this[_0x47d06b(0x2e1)]=0x0,this[_0x47d06b(0x283)]=0x0,this[_0x47d06b(0x296)]=0x0;}async[_0x2f044f(0x16e)](_0x1a9286,_0x14ca24){const _0xceff6c=_0x2f044f;for(let _0x30db4e=0x0;_0x30db4e<0x1e;_0x30db4e++)try{if(await this[_0xceff6c(0x290)](),this['_checkCalculationAvailable']()){this['_applyCommand'](_0x1a9286,_0x14ca24),this[_0xceff6c(0x312)]['show']({'content':this[_0xceff6c(0x192)]['t']('formula.calculation.started'),'type':_0x17dcef[_0xceff6c(0x27d)]});return;}await new Promise(_0x44840e=>{const _0x1367c6=_0xceff6c;this['_pollingInterval']=window[_0x1367c6(0x198)](_0x44840e,0x3e8);});}catch(_0x187885){this['_logService'][_0xceff6c(0x2cd)](_0x187885);}this[_0xceff6c(0x312)][_0xceff6c(0x1f8)]({'content':this[_0xceff6c(0x192)]['t']('formula.calculation.unable'),'type':_0x17dcef[_0xceff6c(0x2fb)]});}[_0x2f044f(0x1c9)](_0x5edeca,_0x5edd23){const _0x1bd80e=_0x2f044f;try{this[_0x1bd80e(0x2c7)][_0x1bd80e(0x2f4)](_0x5edeca['id'],_0x5edeca[_0x1bd80e(0x367)],_0x5edd23);}catch(_0x5c5d1d){this['_logService'][_0x1bd80e(0x2cd)](_0x5c5d1d);}}[_0x2f044f(0x150)](_0x316742,_0x34b8cf){const _0x28d9c3=_0x2f044f;_0x34b8cf<this[_0x28d9c3(0x296)]||(this[_0x28d9c3(0x296)]=_0x34b8cf,this['_maxFormulaLimit']=Number[_0x28d9c3(0x1b2)](_0x316742[_0x28d9c3(0x14e)]),this[_0x28d9c3(0x2e1)]=Number[_0x28d9c3(0x1b2)](_0x316742[_0x28d9c3(0x2d8)]));}async[_0x2f044f(0x169)](_0x19d567){const _0x954f10=_0x2f044f;var _0x4f560b,_0xde989d;const _0x4cb547=Date['now']();try{const _0x90ec5=((_0x4f560b=this[_0x954f10(0x353)][_0x954f10(0x1ef)](_0x402f3f))==null?void 0x0:_0x4f560b[_0x954f10(0x185)])||pn,_0x58264b=(await this['_httpService'][_0x954f10(0x27f)](_0x90ec5,{'body':JSON[_0x954f10(0x248)]({'taskId':_0x19d567})}))[_0x954f10(0x157)];if(((_0xde989d=_0x58264b[_0x954f10(0x2cd)])==null?void 0x0:_0xde989d[_0x954f10(0x1c4)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x58264b[_0x954f10(0x191)],_0x4cb547);}catch(_0x30c6eb){this[_0x954f10(0x239)][_0x954f10(0x2cd)](_0x30c6eb);}}async['_getFormulaLimitStatus'](_0x11a611){const _0xbd8184=_0x2f044f;var _0x2325cc,_0x122976;const _0x26ad0c=Date[_0xbd8184(0x1da)]();try{const _0x3cee5a=((_0x2325cc=this[_0xbd8184(0x353)][_0xbd8184(0x1ef)](_0x402f3f))==null?void 0x0:_0x2325cc[_0xbd8184(0x1e8)])||En,_0x60330e=_0x11a611?_0x3cee5a+_0xbd8184(0x27e)+encodeURIComponent(_0x11a611):_0x3cee5a,_0x59a341=(await this[_0xbd8184(0x2b5)][_0xbd8184(0x2d1)](_0x60330e))[_0xbd8184(0x157)];if(((_0x122976=_0x59a341[_0xbd8184(0x2cd)])==null?void 0x0:_0x122976[_0xbd8184(0x1c4)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x59a341[_0xbd8184(0x191)],_0x26ad0c);}catch(_0x5658a2){this['_logService']['error'](_0x5658a2);}}async[_0x2f044f(0x31d)](_0x15dbe0){const _0x54a44c=_0x2f044f;var _0x39b62c,_0x55caef;const _0x31ed75=Date['now']();try{const _0x82690f=((_0x39b62c=this['_configService'][_0x54a44c(0x1ef)](_0x402f3f))==null?void 0x0:_0x39b62c[_0x54a44c(0x338)])||On,_0x13c8ac=(await this[_0x54a44c(0x2b5)][_0x54a44c(0x27f)](_0x82690f,{'body':JSON[_0x54a44c(0x248)]({'taskId':_0x15dbe0})}))[_0x54a44c(0x157)];if(((_0x55caef=_0x13c8ac['error'])==null?void 0x0:_0x55caef['code'])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x13c8ac[_0x54a44c(0x191)],_0x31ed75);}catch(_0x48b0d5){this[_0x54a44c(0x239)]['error'](_0x48b0d5);}}['_checkCalculationAvailable'](){const _0x6ce9db=_0x2f044f;return this[_0x6ce9db(0x283)]===0x0?!0x0:this[_0x6ce9db(0x283)]-this[_0x6ce9db(0x2e1)]>0x0;}['_clearPolling'](){const _0x12388b=_0x2f044f;this['_pollingInterval']&&(clearTimeout(this[_0x12388b(0x199)]),this[_0x12388b(0x199)]=null);}['_showGuardMessage'](){const _0x40223c=_0x2f044f;this[_0x40223c(0x312)][_0x40223c(0x1f8)]({'content':this[_0x40223c(0x192)]['t'](_0x40223c(0x33c)),'type':_0x17dcef[_0x40223c(0x1c1)]});}['_hasFormulaInDirtyRanges'](_0x2f4366){const _0x21e347=_0x2f044f;for(const _0x241632 of _0x2f4366){const {unitId:_0x422b9d,sheetId:_0x5c9394,range:_0x5eecb5}=_0x241632,_0x243c73=this[_0x21e347(0x36b)]['getUnit'](_0x422b9d);if(!_0x243c73)continue;const _0x3c12bc=_0x243c73[_0x21e347(0x226)](_0x5c9394);if(!_0x3c12bc)continue;const _0xc5fef1=_0x3c12bc[_0x21e347(0x33e)]();for(let _0x3b7361=_0x5eecb5[_0x21e347(0x285)];_0x3b7361<=_0x5eecb5[_0x21e347(0x327)];_0x3b7361++)for(let _0x16e818=_0x5eecb5[_0x21e347(0x20f)];_0x16e818<=_0x5eecb5[_0x21e347(0x1f1)];_0x16e818++){const _0x5149fc=_0xc5fef1[_0x21e347(0x357)](_0x3b7361,_0x16e818);if(_0x5149fc&&(_0x40e8ed(_0x5149fc['f'])||_0x50cd50(_0x5149fc['si'])))return!0x0;}}return!0x1;}};de=vn([P(0x0,_0x30bdc8(_0x1865bb)),P(0x1,_0x5cca2c),P(0x2,_0xb0a618),P(0x3,_0x30bdc8(_0x168837)),P(0x4,_0xaa63a7),P(0x5,_0x3ae7f3),P(0x6,_0x30bdc8(_0x3c120a))],de);var Tn=Object[_0x2f044f(0x295)],Cn=(_0x38cd7e,_0x4bb8cf,_0x260fa3,_0x3b0ae3)=>{const _0x30c0f9=_0x2f044f;for(var _0x47f7e5=_0x3b0ae3>0x1?void 0x0:_0x3b0ae3?Tn(_0x4bb8cf,_0x260fa3):_0x4bb8cf,_0x2dbaf0=_0x38cd7e[_0x30c0f9(0x1be)]-0x1,_0x455f6c;_0x2dbaf0>=0x0;_0x2dbaf0--)(_0x455f6c=_0x38cd7e[_0x2dbaf0])&&(_0x47f7e5=_0x455f6c(_0x47f7e5)||_0x47f7e5);return _0x47f7e5;},De=(_0x5e6bec,_0x16a173)=>(_0x45a684,_0xc8be52)=>_0x16a173(_0x45a684,_0xc8be52,_0x5e6bec);let xe=class extends _0x3070e7{constructor(_0x477028,_0x8f1053,_0x5459ac){const _0x508e9e=_0x2f044f;super(),l(this,_0x508e9e(0x227),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x508e9e(0x35c),!0x1),(this[_0x508e9e(0x353)]=_0x477028,this[_0x508e9e(0x1b1)]=_0x8f1053,this[_0x508e9e(0x30d)]=_0x5459ac);}['disableLocalCache'](){const _0x4f24ad=_0x2f044f;this[_0x4f24ad(0x35c)]=!0x0;}[_0x2f044f(0x153)](){const _0x27b32d=_0x2f044f;this[_0x27b32d(0x35c)]=!0x1;}get[_0x2f044f(0x1cb)](){const _0x480513=_0x2f044f;return this[_0x480513(0x137)];}['dispose'](){const _0x14e929=_0x2f044f;this['exhaustSavingTask']()[_0x14e929(0x234)](()=>super[_0x14e929(0x265)]());}async[_0x2f044f(0x26e)](_0x4be2b8){const _0x3a2cb6=_0x2f044f;return this[_0x3a2cb6(0x35c)]?null:this[_0x3a2cb6(0x1b1)][_0x3a2cb6(0x1ba)](_0x4c70c8(_0x4be2b8));}async[_0x2f044f(0x34b)](_0x19adb8,_0x5ddc52){const _0x33318b=_0x2f044f;return!!this['_localStorageService'][_0x33318b(0x36d)](_0x19adb8,_0x5ddc52);}[_0x2f044f(0x244)](_0x3ab3b6,_0x5673d7,_0x40eccd,_0x4ba96d){const _0x3345e9=_0x2f044f,_0x40be4f=this[_0x3345e9(0x30d)][_0x3345e9(0x277)](_0x3ab3b6);this[_0x3345e9(0x227)]['set'](_0x3ab3b6,{'unitID':_0x3ab3b6,'type':_0x5673d7,'awaitingChangeset':_0x40eccd,'mutations':_0x4ba96d,'rev':_0x40be4f}),this[_0x3345e9(0x137)]['has'](_0x3ab3b6)||this[_0x3345e9(0x145)](_0x3ab3b6);}['_scheduleSaving'](_0x3c51a6){const _0xbdb86e=_0x2f044f,_0x190b8c=this[_0xbdb86e(0x2ff)]();_0x190b8c===0x0?this['_saveCache'](_0x3c51a6):this[_0xbdb86e(0x137)][_0xbdb86e(0x18c)](_0x3c51a6,setTimeout(()=>this[_0xbdb86e(0x22d)](_0x3c51a6),_0x190b8c));}[_0x2f044f(0x2ff)](){const _0x14ce21=_0x2f044f;var _0x31d366;return(_0x31d366=this[_0x14ce21(0x353)][_0x14ce21(0x1ef)](_0x5453bc))!=null?_0x31d366:_0x17ef74;}['_saveCache'](_0x53e4e6){const _0x29a0d1=_0x2f044f,_0x2502a3=this[_0x29a0d1(0x137)][_0x29a0d1(0x2d1)](_0x53e4e6);return _0x2502a3!==void 0x0&&window[_0x29a0d1(0x23a)](_0x2502a3),this['_localStorageService'][_0x29a0d1(0x36d)](_0x4c70c8(_0x53e4e6),this['_cachedData'][_0x29a0d1(0x2d1)](_0x53e4e6))['then'](()=>this['_saveTaskMap'][_0x29a0d1(0x213)](_0x53e4e6));}async[_0x2f044f(0x2cf)](){const _0x9b1fc4=_0x2f044f,_0x4c3c89=[];this[_0x9b1fc4(0x137)][_0x9b1fc4(0x2aa)]((_0x3b5162,_0xd7c1cb)=>{const _0x19cecd=_0x9b1fc4;window[_0x19cecd(0x23a)](_0x3b5162),_0x4c3c89[_0x19cecd(0x29d)](this['_saveCache'](_0xd7c1cb)[_0x19cecd(0x234)](()=>{const _0x419d64=_0x19cecd;this[_0x419d64(0x137)][_0x419d64(0x213)](_0xd7c1cb);}));}),await Promise['all'](_0x4c3c89);}};xe=Cn([De(0x0,_0xb0a618),De(0x1,_0x3188b7),De(0x2,_0x30bdc8(_0x25a8ee))],xe);class Rn extends _0x4d2a7f{constructor(){const _0x5c48de=_0x2f044f;super(),l(this,'urlChange$'),this[_0x5c48de(0x24b)]=_0x23b416(window,_0x5c48de(0x229))['pipe'](_0x142e37(this[_0x5c48de(0x1d4)]),_0x3ef704(0x1),_0x913f8a(void 0x0));}['setParam'](_0x5c060d,_0x54daee,_0x4a0a48=!0x1){const _0xaa306b=_0x2f044f,_0x5c07c4=new URL(window[_0xaa306b(0x214)]['href']);_0x5c07c4['searchParams'][_0xaa306b(0x18c)](_0x5c060d,_0x54daee),_0x4a0a48?window[_0xaa306b(0x2c3)][_0xaa306b(0x1e5)]('','',_0x5c07c4['toString']()):window[_0xaa306b(0x2c3)][_0xaa306b(0x242)]('','',_0x5c07c4[_0xaa306b(0x22f)]());}['removeParam'](_0x4c4963,_0x3fd946=!0x1){const _0x5ee986=_0x2f044f,_0x8c019=new URL(window[_0x5ee986(0x214)][_0x5ee986(0x33a)]);_0x8c019[_0x5ee986(0x29a)][_0x5ee986(0x213)](_0x4c4963),_0x3fd946?window['history'][_0x5ee986(0x1e5)]('','',_0x8c019['toString']()):window[_0x5ee986(0x2c3)][_0x5ee986(0x242)]('','',_0x8c019[_0x5ee986(0x22f)]());}['getParam'](_0x20e958){const _0x57bae6=_0x2f044f;var _0x528d74;return(_0x528d74=new URL(window[_0x57bae6(0x214)][_0x57bae6(0x33a)])[_0x57bae6(0x29a)][_0x57bae6(0x2d1)](_0x20e958))!=null?_0x528d74:void 0x0;}}var Dn=Object[_0x2f044f(0x313)],Nn=Object[_0x2f044f(0x295)],bn=(_0x1d976d,_0x5c3a9e,_0x22b229)=>_0x5c3a9e in _0x1d976d?Dn(_0x1d976d,_0x5c3a9e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22b229}):_0x1d976d[_0x5c3a9e]=_0x22b229,Un=(_0x5b40e3,_0x3898ef,_0x34ecba,_0x232dfc)=>{const _0xa62494=_0x2f044f;for(var _0x217b20=_0x232dfc>0x1?void 0x0:_0x232dfc?Nn(_0x3898ef,_0x34ecba):_0x3898ef,_0x44e853=_0x5b40e3[_0xa62494(0x1be)]-0x1,_0x5b872e;_0x44e853>=0x0;_0x44e853--)(_0x5b872e=_0x5b40e3[_0x44e853])&&(_0x217b20=_0x5b872e(_0x217b20)||_0x217b20);return _0x217b20;},Ne=(_0x307ab0,_0x1c3ef7)=>(_0x4b8967,_0x1435c1)=>_0x1c3ef7(_0x4b8967,_0x1435c1,_0x307ab0),Ln=(_0x2d94f6,_0x2a09f6,_0x325861)=>bn(_0x2d94f6,_0x2a09f6+'',_0x325861);const Mn=_0x2f044f(0x1ab);let Be=class extends _0x17fdfb{constructor(_0x4767c2=rt,_0x1efae8,_0xfe79e8,_0x31db6a){const _0x46f949=_0x2f044f;super(),this[_0x46f949(0x28c)]=_0x4767c2,this['_renderManagerService']=_0x1efae8,this[_0x46f949(0x1d7)]=_0xfe79e8,this[_0x46f949(0x353)]=_0x31db6a;const {..._0x5c85de}=_0x33621d({},rt,this[_0x46f949(0x28c)]);this['_configService'][_0x46f949(0x165)](an,_0x5c85de);}['onStarting'](){const _0x5551e1=_0x2f044f;this['_registerDependencies'](),this[_0x5551e1(0x240)]();}[_0x2f044f(0x377)](){const _0x22500e=_0x2f044f;this[_0x22500e(0x36f)]();}[_0x2f044f(0x16a)](){const _0x344e43=_0x2f044f;var _0x51667f;const _0x5f456c=[[je],[de],[he],[_e],[le],[Xe],[At,{'useClass':Rn}],[_0x188980,{'useClass':_0x1dde72}],[_0x2ccb07,{'useClass':xe}],[oe],[ue],[ce],[H],[Ae],[ae]];_0x468fd6(this[_0x344e43(0x1d7)],_0xdb7e13(_0x5f456c,(_0x51667f=this['_config'])==null?void 0x0:_0x51667f[_0x344e43(0x29b)]));}[_0x2f044f(0x36f)](){const _0x5f30a1=_0x2f044f;this['disposeWithMe'](this['_renderManagerService'][_0x5f30a1(0x142)](_0x31116f['UNIVER_DOC'],[ye])),this[_0x5f30a1(0x355)](this[_0x5f30a1(0x30c)]['registerRenderModule'](_0x31116f[_0x5f30a1(0x1bb)],[$e]));}['_initDependencies'](){const _0x4f2900=_0x2f044f;_0x163605(this[_0x4f2900(0x1d7)],[[H],[oe],[ue],[ce],[ae],[de]]);}};Ln(Be,_0x2f044f(0x1ac),Mn),Be=Un([_0x20966f(_0x28c64b),Ne(0x1,_0x3e044c),Ne(0x2,_0x30bdc8(_0x4568e0)),Ne(0x3,_0xb0a618)],Be);var An=Object['getOwnPropertyDescriptor'],Pn=(_0x26c3b9,_0x36f898,_0x44fbb,_0x54158b)=>{const _0x531e38=_0x2f044f;for(var _0x35102d=_0x54158b>0x1?void 0x0:_0x54158b?An(_0x36f898,_0x44fbb):_0x36f898,_0x50fa4e=_0x26c3b9[_0x531e38(0x1be)]-0x1,_0x59fb3e;_0x50fa4e>=0x0;_0x50fa4e--)(_0x59fb3e=_0x26c3b9[_0x50fa4e])&&(_0x35102d=_0x59fb3e(_0x35102d)||_0x35102d);return _0x35102d;},J=(_0x1aacfe,_0x513c46)=>(_0x5ad53e,_0x313c8f)=>_0x513c46(_0x5ad53e,_0x313c8f,_0x1aacfe);let ct=class extends _0x160525{constructor(_0x4fdf19,_0x4d4e6c,_0x596ab0,_0x539832,_0x14d245){super(_0x4fdf19,_0x4d4e6c,_0x596ab0,_0x539832,_0x14d245);}async['createSocket'](_0x426369){const _0x52534f=_0x2f044f,_0x23f3ed=await this[_0x52534f(0x342)](),_0x4eb9bd=this[_0x52534f(0x292)](_0x426369,_0x23f3ed);return this[_0x52534f(0x23d)](_0x4eb9bd);}[_0x2f044f(0x292)](_0x462a86,_0x3c19a8){const _0x497da4=_0x2f044f,_0x43327f=typeof window>'u'?new URL(_0x462a86):new URL(_0x462a86,window[_0x497da4(0x214)][_0x497da4(0x2be)]);_0x43327f[_0x497da4(0x29a)][_0x497da4(0x18c)](_0x497da4(0x34c),_0x3c19a8);const _0x51ce33=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x497da4(0x214)][_0x497da4(0x18a)]);return _0x51ce33[_0x497da4(0x2d1)](_0x497da4(0x195))&&_0x43327f['searchParams'][_0x497da4(0x18c)](_0x497da4(0x195),_0x51ce33[_0x497da4(0x2d1)](_0x497da4(0x195))),_0x43327f[_0x497da4(0x22f)]();}async[_0x2f044f(0x342)](){const _0x11cd9a=_0x2f044f;var _0x43791b,_0x5bfb6f,_0x453f5e;const _0x41dd23=this['_configService'][_0x11cd9a(0x1ef)](_0x402f3f),_0x3362e2=(_0x43791b=_0x41dd23==null?void 0x0:_0x41dd23[_0x11cd9a(0x2f6)])!=null?_0x43791b:_0x10cec4;return(_0x453f5e=(_0x5bfb6f=(await this[_0x11cd9a(0x2b5)][_0x11cd9a(0x2d1)](_0x3362e2,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x5bfb6f[_0x11cd9a(0x316)])!=null?_0x453f5e:'';}};ct=Pn([J(0x0,_0x30bdc8(_0x4568e0)),J(0x1,_0x30bdc8(_0x168837)),J(0x2,_0xb0a618),J(0x3,_0x3ae7f3),J(0x4,_0x56a3f6)],ct);var wn=Object[_0x2f044f(0x295)],yn=(_0x2f429a,_0xa000ca,_0x521f1d,_0x964ba0)=>{const _0x54a9b4=_0x2f044f;for(var _0x865ef4=_0x964ba0>0x1?void 0x0:_0x964ba0?wn(_0xa000ca,_0x521f1d):_0xa000ca,_0x1e1eac=_0x2f429a[_0x54a9b4(0x1be)]-0x1,_0x4f2cb1;_0x1e1eac>=0x0;_0x1e1eac--)(_0x4f2cb1=_0x2f429a[_0x1e1eac])&&(_0x865ef4=_0x4f2cb1(_0x865ef4)||_0x865ef4);return _0x865ef4;},be=(_0x28cb21,_0x2ba76b)=>(_0x202761,_0x1951bc)=>_0x2ba76b(_0x202761,_0x1951bc,_0x28cb21);let _t=class extends _0x3070e7{constructor(_0x53a4f6,_0x26282b,_0x4f57c8){const _0xc3a797=_0x2f044f;super(),this[_0xc3a797(0x1ad)]=_0x53a4f6,this['_httpService']=_0x26282b,this[_0xc3a797(0x353)]=_0x4f57c8;}async[_0x2f044f(0x2e8)](_0x5a2f8c,_0x40b925,_0x2bc76c,..._0x4ec0e6){const _0x44fa63=_0x2f044f;var _0x12bad4,_0x52201c,_0x37b493,_0x3c01a2;const _0x3015ad=this[_0x44fa63(0x1ad)][_0x44fa63(0x374)]();if(!_0x3015ad)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x469fda=((_0x12bad4=this[_0x44fa63(0x353)][_0x44fa63(0x1ef)](_0x719797))!=null?_0x12bad4:_0x1aa6ad)+'/'+_0x5a2f8c+_0x44fa63(0x275)+_0x40b925,_0x4f6ca1=new URL(window[_0x44fa63(0x214)]['href']),_0xf84fc7={'scriptId':_0x5a2f8c,'runId':(_0x52201c=_0x4f6ca1['searchParams'][_0x44fa63(0x2d1)]('runId'))!=null?_0x52201c:'','function':_0x40b925,'unitId':_0x3015ad['getUnitId'](),'argsOfFunction':JSON[_0x44fa63(0x248)](_0x4ec0e6),'invokeId':(_0x37b493=_0x2bc76c[_0x44fa63(0x29e)])!=null?_0x37b493:'','executionId':(_0x3c01a2=_0x2bc76c[_0x44fa63(0x1b7)])!=null?_0x3c01a2:''};try{const _0x455b3f=await this[_0x44fa63(0x2b5)][_0x44fa63(0x27f)](_0x469fda,{'body':_0xf84fc7});return _0x455b3f['body'][_0x44fa63(0x2cd)]&&_0x455b3f[_0x44fa63(0x157)][_0x44fa63(0x2cd)]['code']!==Z['OK']?'Failed':_0x455b3f[_0x44fa63(0x157)][_0x44fa63(0x207)];}catch{return _0x44fa63(0x1f3);}}};_t=yn([be(0x0,_0xaa63a7),be(0x1,_0x30bdc8(_0x168837)),be(0x2,_0xb0a618)],_t);const lt=0x7530,ht=_0x2f044f(0x289);class tr extends _0x3070e7{constructor(){const _0x3fbbe3=_0x2f044f;super(),l(this,_0x3fbbe3(0x2d2),_0x243a41()),l(this,'_selfUnitIDs',new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x3fbbe3(0x225),null),l(this,'_clearOtherTimers',new Map()),l(this,_0x3fbbe3(0x2b7),new Map()),this[_0x3fbbe3(0x1cf)]();}['dispose'](){const _0x24a965=_0x2f044f;super[_0x24a965(0x265)](),this[_0x24a965(0x18f)][_0x24a965(0x2aa)]((_0x5c14fc,_0x5249bb)=>this['_removeClearOtherTimer'](_0x5249bb)),this[_0x24a965(0x225)]&&window['clearInterval'](this[_0x24a965(0x225)]);}[_0x2f044f(0x16b)](_0x14b2b6){const _0x1525d0=_0x2f044f;return this[_0x1525d0(0x351)](_0x14b2b6)[_0x1525d0(0x307)](_0x58f1ea());}[_0x2f044f(0x215)](_0x56e0a){const _0x457f2e=_0x2f044f;this[_0x457f2e(0x2b9)][_0x457f2e(0x2ab)]===0x0&&this[_0x457f2e(0x299)](),this[_0x457f2e(0x2b9)][_0x457f2e(0x32a)](_0x56e0a),this[_0x457f2e(0x250)]({'type':0x0,'memberID':this[_0x457f2e(0x2d2)],'unitIDs':[_0x56e0a],'isForwarded':!0x1});}[_0x2f044f(0x352)](_0x4567ca){const _0x384360=_0x2f044f;this[_0x384360(0x2b9)][_0x384360(0x213)](_0x4567ca),this[_0x384360(0x2b9)][_0x384360(0x2ab)]===0x0&&this[_0x384360(0x225)]&&window['clearInterval'](this[_0x384360(0x225)]);}[_0x2f044f(0x1cf)](){const _0xf2a4=_0x2f044f;this['disposeWithMe'](_0x3e6ed3(_0x23b416(window,_0xf2a4(0x1c6))[_0xf2a4(0x304)](_0x290dfe=>{const _0x3fe4f8=_0xf2a4;if(_0x290dfe[_0x3fe4f8(0x288)]!==ht||!_0x290dfe[_0x3fe4f8(0x2a5)])return;const _0x18f353=JSON[_0x3fe4f8(0x2c4)](_0x290dfe[_0x3fe4f8(0x2a5)]);this[_0x3fe4f8(0x21f)](_0x18f353);}))),window[_0xf2a4(0x237)](_0xf2a4(0x200),()=>this['_send']({'type':0x1,'memberID':this[_0xf2a4(0x2d2)],'unitIDs':Array[_0xf2a4(0x2f0)](this[_0xf2a4(0x2b9)])}));}[_0x2f044f(0x21f)](_0x503a73){const _0x111570=_0x2f044f;switch(_0x503a73[_0x111570(0x20b)]){case 0x0:this[_0x111570(0x235)](_0x503a73);break;case 0x1:this[_0x111570(0x1cc)](_0x503a73);break;case 0x2:this[_0x111570(0x1dd)](_0x503a73);break;}}[_0x2f044f(0x235)](_0x560335){const _0x10a9c7=_0x2f044f,{unitIDs:_0x3b42cb,memberID:_0x558e36,isForwarded:_0x1acc82}=_0x560335;_0x3b42cb['forEach'](_0x124b30=>{const _0x261723=_0x47da;if(!_0x1acc82&&this[_0x261723(0x350)][_0x261723(0x2d3)](_0x124b30)&&this[_0x261723(0x351)](_0x124b30)[_0x261723(0x332)](_0x286879['OTHER_CLIENTS_EDITING']),!this[_0x261723(0x350)][_0x261723(0x2d3)](_0x124b30)||!this[_0x261723(0x350)][_0x261723(0x2d1)](_0x124b30)[_0x261723(0x2d3)](_0x558e36)){const _0x1de09b=this['_unitOnClients'][_0x261723(0x2d1)](_0x124b30)||new Set();_0x1de09b[_0x261723(0x32a)](_0x558e36),this[_0x261723(0x350)][_0x261723(0x18c)](_0x124b30,_0x1de09b),this['_scheduleClearOtherTimer'](_0x558e36);}}),_0x1acc82||this[_0x10a9c7(0x250)]({'type':0x0,'memberID':this[_0x10a9c7(0x2d2)],'unitIDs':[...this[_0x10a9c7(0x2b9)]],'isForwarded':!0x0});}[_0x2f044f(0x2ea)](_0x174f02){const _0x3bb3ae=_0x2f044f;this[_0x3bb3ae(0x26c)](_0x174f02);const _0x598de9=window[_0x3bb3ae(0x198)](()=>{const _0x577400=_0x3bb3ae;this[_0x577400(0x350)][_0x577400(0x2aa)](_0x16aac2=>{const _0x1d242f=_0x577400;_0x16aac2[_0x1d242f(0x213)](_0x174f02);});},lt*0x2);this[_0x3bb3ae(0x18f)][_0x3bb3ae(0x18c)](_0x174f02,_0x598de9);}['_removeClearOtherTimer'](_0x343e02){const _0x5efe05=_0x2f044f;if(this['_clearOtherTimers'][_0x5efe05(0x2d3)](_0x343e02)){const _0x4bf8b8=this[_0x5efe05(0x18f)][_0x5efe05(0x2d1)](_0x343e02);_0x4bf8b8&&window[_0x5efe05(0x23a)](_0x4bf8b8),this[_0x5efe05(0x18f)]['set'](_0x343e02,null);}}[_0x2f044f(0x1cc)](_0x42bbb0){const _0x495463=_0x2f044f,{memberID:_0x1d6f35,unitIDs:_0x1dc0bf}=_0x42bbb0;_0x1dc0bf[_0x495463(0x2aa)](_0x477abe=>{const _0x4ee13a=_0x495463;var _0xc69670;const _0x1bbb32=this[_0x4ee13a(0x350)][_0x4ee13a(0x2d1)](_0x477abe);_0x1bbb32&&(_0x1bbb32['delete'](_0x1d6f35),(_0xc69670=this[_0x4ee13a(0x351)](_0x477abe))==null||_0xc69670['next'](_0x1bbb32[_0x4ee13a(0x2ab)]===0x0?_0x286879[_0x4ee13a(0x364)]:_0x286879[_0x4ee13a(0x2db)]));}),this['_removeClearOtherTimer'](_0x1d6f35);}[_0x2f044f(0x1dd)](_0x538cb0){const _0xaeef20=_0x2f044f;this[_0xaeef20(0x2ea)](_0x538cb0[_0xaeef20(0x1b6)]);}['_send'](_0x440153){const _0x26173b=_0x2f044f;localStorage[_0x26173b(0x36d)](ht,JSON['stringify'](_0x440153));}['_scheduleHeartbeat'](){const _0x1b71ad=_0x2f044f;this[_0x1b71ad(0x225)]=window[_0x1b71ad(0x163)](()=>{const _0x3c6d0d=_0x1b71ad;this[_0x3c6d0d(0x250)]({'type':0x2,'memberID':this['_id']});},lt);}['_ensureSubject'](_0xe52f92){const _0x46f969=_0x2f044f;return this[_0x46f969(0x2b7)]['has'](_0xe52f92)||this[_0x46f969(0x2b7)][_0x46f969(0x18c)](_0xe52f92,new _0x11f3cd(_0x286879['NO_OTHER_CLIENTS_EDITING'])),this[_0x46f969(0x2b7)][_0x46f969(0x2d1)](_0xe52f92);}}export{ct as BrowserCollaborationSocketService,ae as CollaborationDataLoaderController,oe as DesktopCollaborationStatusDisplayController,At as IURLService,_t as RemoteUniscriptService,qi as SheetCollabCursorShape,Be as UniverCollaborationClientUIPlugin,tr as WebBrowserSingleActiveUnitService,Rn as WebURLService};