@univerjs-pro/boards-chart-ui 1.0.0-beta.0 → 1.0.0-beta.2

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 (91) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.css +8 -43
  42. package/lib/index.js +1 -1
  43. package/lib/locale/ar-SA.js +1 -1
  44. package/lib/locale/ca-ES.js +1 -1
  45. package/lib/locale/de-DE.js +1 -1
  46. package/lib/locale/en-US.js +1 -1
  47. package/lib/locale/es-ES.js +1 -1
  48. package/lib/locale/fa-IR.js +1 -1
  49. package/lib/locale/fr-FR.js +1 -1
  50. package/lib/locale/id-ID.js +1 -1
  51. package/lib/locale/it-IT.js +1 -1
  52. package/lib/locale/ja-JP.js +1 -1
  53. package/lib/locale/ko-KR.js +1 -1
  54. package/lib/locale/pl-PL.js +1 -1
  55. package/lib/locale/pt-BR.js +1 -1
  56. package/lib/locale/ru-RU.js +1 -1
  57. package/lib/locale/sk-SK.js +1 -1
  58. package/lib/locale/vi-VN.js +1 -1
  59. package/lib/locale/zh-CN.js +1 -1
  60. package/lib/locale/zh-HK.js +1 -1
  61. package/lib/locale/zh-TW.js +1 -1
  62. package/lib/types/components/BoardChartInsertPanel.d.ts +3 -3
  63. package/lib/types/controllers/board-chart-element-float-menu.controller.d.ts +1 -0
  64. package/lib/types/services/board-chart-clipboard-adapter.d.ts +3 -3
  65. package/lib/types/services/board-chart-data-edit.service.d.ts +4 -3
  66. package/lib/types/services/board-chart-render.service.d.ts +3 -3
  67. package/lib/types/services/board-chart-snapshot-render.service.d.ts +6 -3
  68. package/lib/types/services/board-chart-ui.service.d.ts +4 -4
  69. package/lib/types/services/chart-image-export-provider.d.ts +21 -0
  70. package/lib/umd/index.js +1 -1
  71. package/lib/umd/locale/ar-SA.js +1 -1
  72. package/lib/umd/locale/ca-ES.js +1 -1
  73. package/lib/umd/locale/de-DE.js +1 -1
  74. package/lib/umd/locale/en-US.js +1 -1
  75. package/lib/umd/locale/es-ES.js +1 -1
  76. package/lib/umd/locale/fa-IR.js +1 -1
  77. package/lib/umd/locale/fr-FR.js +1 -1
  78. package/lib/umd/locale/id-ID.js +1 -1
  79. package/lib/umd/locale/it-IT.js +1 -1
  80. package/lib/umd/locale/ja-JP.js +1 -1
  81. package/lib/umd/locale/ko-KR.js +1 -1
  82. package/lib/umd/locale/pl-PL.js +1 -1
  83. package/lib/umd/locale/pt-BR.js +1 -1
  84. package/lib/umd/locale/ru-RU.js +1 -1
  85. package/lib/umd/locale/sk-SK.js +1 -1
  86. package/lib/umd/locale/vi-VN.js +1 -1
  87. package/lib/umd/locale/zh-CN.js +1 -1
  88. package/lib/umd/locale/zh-HK.js +1 -1
  89. package/lib/umd/locale/zh-TW.js +1 -1
  90. package/package.json +14 -14
  91. package/lib/types/common/BoardChartTypeOptions.d.ts +0 -134
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x51c089=_0x3703;(function(_0x47f559,_0x335b11){const _0x343fa3=_0x3703,_0xad994a=_0x47f559();while(!![]){try{const _0x3a34b8=-parseInt(_0x343fa3(0x302))/0x1+-parseInt(_0x343fa3(0x31d))/0x2*(parseInt(_0x343fa3(0x2c8))/0x3)+-parseInt(_0x343fa3(0x33d))/0x4+-parseInt(_0x343fa3(0x367))/0x5*(-parseInt(_0x343fa3(0x2cd))/0x6)+parseInt(_0x343fa3(0x18b))/0x7*(parseInt(_0x343fa3(0x210))/0x8)+parseInt(_0x343fa3(0x1c8))/0x9+parseInt(_0x343fa3(0x2b2))/0xa;if(_0x3a34b8===_0x335b11)break;else _0xad994a['push'](_0xad994a['shift']());}catch(_0x3d1163){_0xad994a['push'](_0xad994a['shift']());}}}(_0x599f,0x6264d));import{BoardElementType as _0x2c3774,BoardToolType as _0x26d3c3,IBoardElementService as _0x2da561,InsertBoardChartOperation as _0x12db70,UniverBoardsPlugin as _0x4f4de7,resolveBoardElementWorldBounds as _0x5dea0e}from'@univerjs-pro/boards';import{BOARDS_UI_PLUGIN_CONFIG_KEY as _0x2f6a38,BOARD_INSERT_CHART_PANEL_COMPONENT as _0x570d66,BoardCanvasPopManagerService as _0x3fcaba,BoardDeleteSelectionOperation as _0x5b1915,BoardDomLayerService as _0x14872b,BoardInteractionSurfaceService as _0x393262,IBoardClipboardResourceAdapterService as _0x378237,IBoardElementStateService as _0x5b0c6f,IBoardSidePanelService as _0x602cdd,IBoardUIStateService as _0x13a796,UniverBoardsUIPlugin as _0x22ddb8,getBoardElementRenderObjectKey as _0x1f376e,resolveRotatedBoardObjectAnchorBound as _0x435197}from'@univerjs-pro/boards-ui';import{CommandType as _0x250df0,DependentOn as _0x37617c,Disposable as _0x104147,DisposableCollection as _0x59379b,ICommandService as _0x1c7a44,IConfigService as _0x2c7746,IUniverInstanceService as _0x1afebb,Inject as _0x3771e8,Injector as _0x571342,LocaleService as _0x2a9b27,Optional as _0x49dd13,Plugin as _0x3e0ff2,RxDisposable as _0x2f3f41,ThemeService as _0x656a3,Tools as _0x3e2f9c,UniverInstanceType as _0x5a00fe,createIdentifier as _0x2b0cff,generateRandomId as _0x4b902b,merge as _0x13a383,toDisposable as _0x5f487e,touchDependencies as _0xaee2e4}from'@univerjs/core';import{BehaviorSubject as _0x40692d,combineLatest as _0x57776b,filter as _0x37a7e6,fromEvent as _0x2895ed,merge as _0x433459,takeUntil as _0x3d48f1,throttleTime as _0xad3d66}from'rxjs';import{BoardChartBuilderAdapter as _0x515b23,BoardChartModelService as _0x47649a,BoardChartResourceService as _0x2df296,DEFAULT_BOARD_CHART_VALUES as _0x591865,DuplicateBoardChartDataSourceCommand as _0x49fb78,RemoveBoardChartDataSourceMutation as _0x1f9a0e,RemoveBoardChartSnapshotMutation as _0x5eebba,SetBoardChartDataSourceMutation as _0x2254a1,SetBoardChartSnapshotMutation as _0x5612b2,UniverBoardsChartPlugin as _0x3d50e1,UpdateBoardChartConfigCommand as _0x243b85,UpdateBoardChartDataSourceCommand as _0x12b117}from'@univerjs-pro/boards-chart';import{CHART_ELEMENT_FLOAT_MENU_COMPONENT as _0x4c962d,CHART_TYPE_CATALOG as _0x48e4d6,ChartAxisSection as _0x49db35,ChartCommonDataMappingSection as _0x10d282,ChartEditBlockTitle as _0x2323a0,ChartEditPanel as _0x12fa7a,ChartEditPanelSection as _0x524885,ChartEditPanelTab as _0x202cbf,ChartEditPanelTabs as _0x3dd058,ChartEditorCapability as _0x951611,ChartEditorProvider as _0x3580e1,ChartElementFloatMenuAdapterRegistry as _0x107e21,ChartFunnelStyleSection as _0xfd8c75,ChartGradientFillField as _0x4b4157,ChartGridlinesAndTicksSection as _0x58aa06,ChartHeatmapStyleSection as _0x25b05d,ChartHostAdapter as _0x31b200,ChartIndicatorLineSection as _0x73316e,ChartInlineTableEditor as _0x4012a0,ChartLegendSection as _0x14b4ec,ChartLineAndAreaSection as _0x575d4e,ChartNumberFormatTextField as _0x3d2b22,ChartParetoSeriesSection as _0x31568a,ChartPieStyleSection as _0x248304,ChartRadarStyleSection as _0x5e6281,ChartRelationStyleSection as _0x1ab135,ChartSectionAccordion as _0x58ade9,ChartSectionAccordionContent as _0x5b2871,ChartSectionAccordionItem as _0x307f87,ChartSectionAccordionTrigger as _0xe6d5ee,ChartSeriesBorderFields as _0x3c4209,ChartSeriesDataLabelFields as _0x544cfd,ChartSeriesDataPointFields as _0x59dce8,ChartSeriesFillFields as _0x4edfff,ChartSeriesPointFields as _0x16cad4,ChartSeriesRightAxisField as _0x32708b,ChartSeriesRoot as _0x5d97d1,ChartSeriesSelector as _0x55a397,ChartSeriesTypeField as _0x1278d5,ChartSnapshotQueue as _0x283a3b,ChartStackField as _0x338c1d,ChartStyleSection as _0x46223d,ChartThemeField as _0x8c0508,ChartTitlesSection as _0x593d2c,ChartTrendlineSection as _0x33b079,ChartTypeField as _0x1428d0,ChartTypeSpecificDataSection as _0x34e1fa,ChartTypeSpecificSetupSection as _0x10a472,ChartTypeSpecificStyleSection as _0x56fcd1,ChartUIService as _0x1147d8,ChartViewStateKey as _0x4518ea,ChartViewStateRegistry as _0x38abdb,ChartWaterfallSetupFields as _0x5ce155,ChartWaterfallStyleSection as _0x373623,ChartWordCloudMaskImageIdField as _0x2184b7,ChartWordCloudRepeatField as _0x2c5304,ChartWordCloudRoot as _0x3f831d,ChartWordCloudShapeField as _0x3a4abd,DEFAULT_CHART_AXIS_VALUES as _0x572c,DEFAULT_CHART_FUNNEL_VALUES as _0x561fcc,DEFAULT_CHART_HEATMAP_VALUES as _0x148d16,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x866942,DEFAULT_CHART_LEGEND_VALUES as _0x878204,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x1e1979,DEFAULT_CHART_PARETO_VALUES as _0x580178,DEFAULT_CHART_PIE_VALUES as _0x58e5a9,DEFAULT_CHART_RADAR_VALUES as _0x4138e2,DEFAULT_CHART_RELATION_VALUES as _0x444024,DEFAULT_CHART_SERIES_VALUES as _0x441292,DEFAULT_CHART_STYLE_VALUES as _0x4a4db1,DEFAULT_CHART_TITLE_VALUES as _0x91e9b4,DEFAULT_CHART_TRENDLINE_VALUES as _0x18e0b8,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x20a99d,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x1bb3cb,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x3dfb74,InlineChartCreationIssueCode as _0x549cb3,UniverChartUIPlugin as _0x222884,buildChartTypeSelectOptions as _0x3ba0a7,chartTypeSupportsCapability as _0x927916,chartTypeSupportsLineAndAreaStyle as _0x1872d9,createChartElementFloatMenuAdapter as _0x557cfa,createChartInlineStarterData as _0x20c01a,getChartInlineTableMinColumns as _0x22e004,resolveChartEditPanelRoute as _0x260e18,resolveChartElementSelection as _0x189c7e,tryBuildInlineChartCreationPlan as _0x5deac1,tryPrepareInlineChartData as _0x2463d9,useChartEditorChartType as _0x9a337c,useChartEditorHasRightAxis as _0xafaff4}from'@univerjs-pro/chart-ui';import{CHART_HOST_DEFAULT_BORDER_COLOR as _0x1f0671,CHART_HOST_DEFAULT_BORDER_RADIUS as _0x3c29cb,ChartHostRenderMode as _0x38ce5f,ChartThemeService as _0x30ea69,ChartTypeBits as _0x4b582b,DataUrlImageChartHost as _0x4dcbac,IChartRenderModelManagerService as _0x4f0b2c,chartBitsUtils as _0x17d045,chartTypeCanUseTrendLine as _0x24a4c0,defaultChartConfig as _0x26bcd9,parseInlineChartTable as _0x3875a5,resolveChartRuntimeStyle as _0x797ccb,resolveDefaultChartHostFrameStyle as _0x195161}from'@univerjs-pro/engine-chart';import{Button as _0x4c36c3,Select as _0x25ecbb,Separator as _0x1ec940,borderClassName as _0x3cc76e,clsx as _0x2105fe}from'@univerjs/design';import{DeleteIcon as _0x4fdb8c,PenIcon as _0x1f3043}from'@univerjs/icons';import{ComponentManager as _0x2491b1,ICanvasPopupService as _0x390aef,IDialogService as _0x15f4d5,useDependency as _0x295177,useObservable as _0x4c13b6}from'@univerjs/ui';import{useEffect as _0xcbe30d,useMemo as _0x4f558d,useRef as _0x15ca94,useState as _0xbe82a8}from'react';import{jsx as _0x5d3079,jsxs as _0x47d9d4}from'react/jsx-runtime';import{UniverLicensePlugin as _0x2e2a1d}from'@univerjs-pro/license';import{IRenderManagerService as _0x4b4297,Image as _0x528148,UniverRenderEnginePlugin as _0x395f30}from'@univerjs/engine-render';function _0x599f(){const _0x58605c=['boards-chart-ui.section.candlestick','insertParams','titleKey','_adapterRegistry','markNotReady','Gauge','_themeService','univer-flex\x20univer-h-0\x20univer-min-h-full\x20univer-w-full\x20univer-flex-col\x20univer-overflow-hidden\x20univer-bg-white\x20dark:!univer-bg-gray-900','pareto','_updateFrameStyle','getFrameStyle','borderColor','onDblclick$','_drawChartImage','board-chart.snapshot-renderer','_localeService','clientWidth','rgba(255,\x20255,\x20255,\x200.18)','boards-chart-ui.section.gridlinesAndTicks','_modelService','boards-chart-ui.common.switchRowColumn','boards-chart-ui.section.treemap','setStyle','getOwnPropertyDescriptor','waterfall','_componentManager','Chord','getDataSource','_element','dataUrl','boards-chart-ui.common.editData','key','boards-chart-ui.section.paretoBar','boards-chart-ui.common.valueField','isDarkMode','values','onCancel','_renderModelManager','div','dispose','elementUpdate$','borderRadius','Column','Heatmap','version','label','400156BUFyaI','checkMounted','syncObject','requestSnapshot','boards-chart-ui.section.pie','next','ready','resolve','applyHostStyle','visible','_activeLayerDisposable','updateElement','_openFloatMenu','_resourceService','updateShared','removePopup','getConfig','map','_appendRenderAdapter','boards-chart-element-float-menu','onerror','GeneralSeries','_snapshotRefreshers','_bindChartEventHandler','transformByState','join','Series','922xCGzXd','strokeWidth','activeTool','sharingCount','onStarting','_domLayerService','_activePanelDisposable','elements','asObservable','preventDefault','close','style$','state$','bottom','_activeSession$','extraProps','_disposeChartEventSubscriptions','ParetoLineSeries','createObject','ChartStyle','Pareto','_popupRuntimeKey','code','max','_listenChartResourceMutations','tab','_clearPopup','activeScene','axisId','boards-chart-ui.common.category','add','then','338300JwhKqe','boards-chart-ui.common.data','univer-relative\x20univer-h-full\x20univer-w-full\x20univer-overflow-hidden','_chartElementEditMode','composite','_renderService','chart','boards-chart-ui.common.insertChartFailed','delete','anchorRect$','click','board.operation.chart.open-data-editor','Image','unsubscribe','dataSources','error','default','LineAndArea','createControl$','tools','boards-chart-ui.candlestick.open','boards-chart-ui.chartTypes.','isElementEditModeActive','_resolveFrameStyle','scaleY','boards-chart-ui.common.value','WordCloud','UNIVER_BOARD','select','board-chart.ui.service','_registerAdapter','isRowDirection','_objectDblclickDisposables','_clearHiddenSelectedTarget','Doughnut','_activeLayerId','onFileLoaded$','boards-chart-ui.chord.target','boards-chart-ui.common.editChart','scaleX','isTransforming','register','2397025OXdLqa','EmptyData','_attachObjectDoubleClicks','_uiStateService','activeSession$','_popupDisposable','open','_chartUIService','_syncPanel','children','borderWidth','boards-chart-ui.candlestick.high','HorizontalAxis','refreshChartModel','boards-chart-ui.common.rightVerticalAxis','stroke','fillStyle','value','_syncSelectionState','Line','_activeEditOverlay','registerChartInstance','issue','ensureChartModel','series','_host','chartId','_editSessionService','moveTo','boards-chart-ui.dataEditor.updateFailed','zIndex','heatmap','getDataUrl','barStyle','BarPercentStacked','additionalRenderAdapters','_closeActivePanel','from','setActiveChartById','boards-chart-ui.common.label','save','getUnit','boards-chart-ui.section.lineAndArea','pipe','PieStyle','_scheduleAttachObjectDoubleClicks','setElementEditMode','emitEvent','getHostStyle','closePath','_chartEventDisposables','clientY','programmatic','lineTo','backgroundColor','getRuntimeContext','boards-chart-ui.common.customize','ColumnStacked','scroll','border-box','dataSourceId','snapshotUpdated$','changeEnd$','stylizeSpec','lineAndArea','_elementStateService','_init','absolute','4946683gEJfrI','AreaStacked','scene','number','resourceService','img','Dom','initialRect','data:image/svg+xml;charset=utf-8,%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20100%22%3E%0A%20%20%3Crect%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%22159%22%20height%3D%2299%22%20rx%3D%225%22%20fill%3D%22%23f8fafc%22%20stroke%3D%22%2394a3b8%22%2F%3E%0A%20%20%3Cpath%20d%3D%22M26%2070V47M52%2070V32M78%2070V55M104%2070V40M130%2070V25%22%20stroke%3D%22%232563eb%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%2F%3E%0A%20%20%3Cpath%20d%3D%22M20%2076H140%22%20stroke%3D%22%23cbd5e1%22%20stroke-width%3D%222%22%2F%3E%0A%3C%2Fsvg%3E%0A','Treemap','getElementData','hostFill','_clearPopupIfSelectionChanged','hidden','getDataSourceSharingCount','style','boards-chart-ui.common.setup','type','size','pie','length','hit','disposeWithMe','_requestSnapshotForObject','Pie','charts','selectElements','registerRenderModule','axis','span','getViewState','registerItem','boards-chart-ui.dataEditor.unavailable','_renderContext','Trendline','forEach','_commandService','Boxplot','getChart','univer-p-4\x20univer-text-sm\x20univer-text-gray-500\x20dark:!univer-text-gray-400','boards-chart-ui.section.gauge','getSnapshot','params','getState','univer-flex\x20univer-justify-end\x20univer-gap-2','clear','boards-chart-ui.section.histogram','pendingInsert','chartElement','executeChartUpdateConfig','getElementById','toPrimitive','naturalHeight','current','parseInt','section','skipNextObservers','wordCloud','cumulativeLineStyle','chartModelRemoved$','call','61884hhGrvK','activeRuntimeModel$','makeDirty','subUnitId','mode','_showPopupForSelection','Board\x20chart\x20snapshot\x20rendering\x20requires\x20a\x20browser\x20document.','getActivePageId','route','board-chart-style-panel','board-chart.dialog.data-editor','keys','focusedId','_adapter','getObject','ColumnPercentStacked','onClose','_drawFrameStroke','get','elementRemove$','_chartInstanceMap','collect','_removeRenderAdapter','getDataEditState','activeRuntimeModel','left','OPERATION','setConfig','boards-chart-ui.common.heatmap','_notifyScene','translate','boards-chart-ui.candlestick.low','Candlestick','dispose$','boards-chart-ui.section.funnel','toolbar','!univer-w-36\x20!univer-min-w-0','baseOn','enabled','source','filter','showFloatMenu','boards-chart-ui.chord.source','_config','match','boards-chart-ui.section.sunburst','subscribe','getRenderColor','status','string','complete','boards-chart-ui.common.deleteChart','seriesId','innerWidth','createChartInstance','top','Waterfall','executeCommand','Sankey','onDispose$','boxSizing','_applyHostStyle','labelId','manual','Data','elementDataItem','min','univer-box-border\x20univer-flex\x20univer-h-12\x20univer-items-center\x20univer-gap-1\x20univer-rounded-lg\x20univer-bg-white\x20univer-px-2\x20univer-py-1.5\x20univer-text-gray-700\x20univer-shadow-lg\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-100','themeBorderColor','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','column','_canvasPopupService','8QNqBmZ','updateFrameStyle','set','nativeEvent','getRenderUnitById','boards-chart-ui.common.legend','getActiveSession','target','_instanceService','getCurrentRenderModel','univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-white','_watchSnapshotUpdates','_chartRenderService','boards-chart-ui.common.chartAndAxisTitles','element','elementId','board.chart.floating-toolbar','_popupSelectionKey','UnknownOption','src','function','defineProperty','push','Relation','drawImage','find','Legend','plan','bounds','config','_getChartRuntimeKey','_native','boards-chart-ui.common.cancel','innerHeight','subscribeEvent','beginPath','ChartAndAxisTitles','getEngine','Funnel','_resolveElementObject','_univerInstanceService','restore','change','pending','IndicatorLine','_activeChart','deepClone','bind','slice','_snapshotService','board-chart.edit-panel','rgb(','_buildPopupSelectionKey','_clearActiveLayer','createRenderInput','univer-w-full\x20!univer-min-w-0','board-chart','iterator','boards-chart-ui.common.horizontalAxis','_registerComponents','RightVerticalAxis','univer-text-xs\x20univer-text-red-600','crossOrigin','onEditData','board-chart.data-editor-dialog','board-chart-setup-panel','render','resize','UNIVER_BOARDS_CHART_UI_PLUGIN','AreaPercentStacked','InvalidCandlestickData','small','border','elementAdd$','_frameStyle','VerticalAxis','_createChartRenderInstanceContext','onInserted','radius','attachPopupToObject','interactionSurfaceActive$','primary','chartInvalidated$','darkMode','_chartEventHandlers','changeChartSource','split','waterfallStyle','_interactionSurfaceService','GridlinesAndTicks','preparePaste','Sunburst','selectedIds','overflow','selectionChange','@univerjs-pro/boards-chart-ui','flipY','arc','delete-chart','registerCommand','_chartThemeService','strokeStyle','rect','boards-chart-ui.section.chord','_chartEventSubscriptions','isFinite','setActiveChartRuntime','_closePopup','titles','targetUnitId','width','createRenderSpec','_getBoardsUIConfig','boards-chart-ui.common.series','chartType','boards-chart-ui.section.paretoLine','chartIdByElementId','invalidateChart','Chart','naturalWidth','_syncActiveChart','_shouldWaitForChartConfig','_injector','trendline','boards-chart-ui.common.verticalAxis','boards-chart-ui.candlestick.columnsError','_boardElementService','Axes','fill','pieSecondaryPlotType','oKey','dataSource','updateDataForChart','Histogram','frameStyle','has','_isPopupSelectionStillActive','decorate','Failed\x20to\x20render\x20board\x20chart\x20snapshot:\x20','getChartModel','includes','color','univer-flex\x20univer-flex-col\x20univer-gap-2','context','WaterfallSeries','chartStyle','_renderManagerService','chartType$','ParetoBarSeries','_clearActiveEditOverlay','getElement','localPoint','some','Scatter','getBoundingClientRect','_configService','_activePanelKey','engine','boards-chart-ui.config','quickToolbar','boards-chart-ui.common.trendline','_attachScheduled','3208400hhMvsK','boards-chart-ui.section.relation','changeStart$','funnel','button','createElement','flipX','_draw','lineWidth','height','BarStacked','popup','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','addPopup','clientHeight','Select','Board\x20chart\x20','secondaryPlot','_boardCanvasPopManagerService','right','boards-chart-ui.section.waterfall','Radar','4074PJfhme','name','boards-chart-ui.common.insert','unitId','univer-flex\x20univer-size-7\x20univer-items-center\x20univer-justify-center\x20univer-rounded-md\x20univer-border-none\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-700\x20univer-transition-colors\x20hover:univer-bg-gray-100\x20dark:!univer-text-gray-100\x20dark:hover:!univer-bg-gray-700','6qXLPwF','model','prototype','object','Style','_disposeChartEventSubscription','_attachNativeLoadHandlers'];_0x599f=function(){return _0x58605c;};return _0x599f();}const Ln=_0x51c089(0x2ae),Rn={};function z(_0x1b3333){'@babel/helpers - typeof';const _0x4e0417=_0x51c089;return z=typeof Symbol=='function'&&typeof Symbol[_0x4e0417(0x249)]=='symbol'?function(_0x181737){return typeof _0x181737;}:function(_0x4ff086){const _0x2bd4cb=_0x4e0417;return _0x4ff086&&typeof Symbol==_0x2bd4cb(0x224)&&_0x4ff086['constructor']===Symbol&&_0x4ff086!==Symbol[_0x2bd4cb(0x2cf)]?'symbol':typeof _0x4ff086;},z(_0x1b3333);}function zn(_0xc1cf70,_0x2f4a5d){const _0x540bdf=_0x51c089;if(z(_0xc1cf70)!=_0x540bdf(0x2d0)||!_0xc1cf70)return _0xc1cf70;var _0x53791c=_0xc1cf70[Symbol[_0x540bdf(0x1be)]];if(_0x53791c!==void 0x0){var _0x2ac890=_0x53791c['call'](_0xc1cf70,_0x2f4a5d||_0x540bdf(0x34d));if(z(_0x2ac890)!=_0x540bdf(0x2d0))return _0x2ac890;throw TypeError(_0x540bdf(0x20d));}return(_0x2f4a5d===_0x540bdf(0x1f9)?String:Number)(_0xc1cf70);}function Bn(_0x1bc228){const _0x238e86=_0x51c089;var _0x43b4f1=zn(_0x1bc228,_0x238e86(0x1f9));return z(_0x43b4f1)=='symbol'?_0x43b4f1:_0x43b4f1+'';}function B(_0x318ae5,_0x519ae7,_0x53d4ac){const _0x38bc9c=_0x51c089;return(_0x519ae7=Bn(_0x519ae7))in _0x318ae5?Object[_0x38bc9c(0x225)](_0x318ae5,_0x519ae7,{'value':_0x53d4ac,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x318ae5[_0x519ae7]=_0x53d4ac,_0x318ae5;}function V(_0x515023,_0x752b87){return function(_0x3dbd24,_0x25119e){_0x752b87(_0x3dbd24,_0x25119e,_0x515023);};}function H(_0x5b7239,_0x4e729e,_0x28ff98,_0x280eb1){const _0x5a232c=_0x51c089;var _0x36e31b=arguments[_0x5a232c(0x19f)],_0x5c6a18=_0x36e31b<0x3?_0x4e729e:_0x280eb1===null?_0x280eb1=Object[_0x5a232c(0x2eb)](_0x4e729e,_0x28ff98):_0x280eb1,_0x5c617e;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x5a232c(0x224))_0x5c6a18=Reflect[_0x5a232c(0x299)](_0x5b7239,_0x4e729e,_0x28ff98,_0x280eb1);else{for(var _0x5ca383=_0x5b7239[_0x5a232c(0x19f)]-0x1;_0x5ca383>=0x0;_0x5ca383--)(_0x5c617e=_0x5b7239[_0x5ca383])&&(_0x5c6a18=(_0x36e31b<0x3?_0x5c617e(_0x5c6a18):_0x36e31b>0x3?_0x5c617e(_0x4e729e,_0x28ff98,_0x5c6a18):_0x5c617e(_0x4e729e,_0x28ff98))||_0x5c6a18);}return _0x36e31b>0x3&&_0x5c6a18&&Object[_0x5a232c(0x225)](_0x4e729e,_0x28ff98,_0x5c6a18),_0x5c6a18;}function Vn(_0x3166a5,_0x18f6c0){const _0x44c174=_0x51c089;return(_0x3166a5==null?void 0x0:_0x3166a5[_0x44c174(0x336)])===(_0x18f6c0==null?void 0x0:_0x18f6c0[_0x44c174(0x336)])&&(_0x3166a5==null?void 0x0:_0x3166a5[_0x44c174(0x1c2)])===(_0x18f6c0==null?void 0x0:_0x18f6c0[_0x44c174(0x1c2)])&&(_0x3166a5==null?void 0x0:_0x3166a5['titleKey'])===(_0x18f6c0==null?void 0x0:_0x18f6c0[_0x44c174(0x2d6)])&&(_0x3166a5==null?void 0x0:_0x3166a5[_0x44c174(0x339)])===(_0x18f6c0==null?void 0x0:_0x18f6c0[_0x44c174(0x339)])&&(_0x3166a5==null?void 0x0:_0x3166a5[_0x44c174(0x1fc)])===(_0x18f6c0==null?void 0x0:_0x18f6c0['seriesId']);}function Hn(_0x386aeb,_0x319627){const _0x2e0674=_0x51c089;return(_0x386aeb==null?void 0x0:_0x386aeb[_0x2e0674(0x2cb)])===_0x319627[_0x2e0674(0x2cb)]&&_0x386aeb['subUnitId']===_0x319627['subUnitId']&&_0x386aeb['elementId']===_0x319627['elementId']&&_0x386aeb[_0x2e0674(0x161)]===_0x319627[_0x2e0674(0x161)]&&_0x386aeb[_0x2e0674(0x1ef)]===_0x319627[_0x2e0674(0x1ef)]&&Vn(_0x386aeb[_0x2e0674(0x1d0)],_0x319627['route']);}let U=class extends _0x104147{constructor(_0x1e6ada,_0x170c00){const _0x213803=_0x51c089;super(),this[_0x213803(0x188)]=_0x1e6ada,this[_0x213803(0x28e)]=_0x170c00,B(this,'_activeSession$',new _0x40692d(null)),B(this,_0x213803(0x36b),this[_0x213803(0x32b)][_0x213803(0x325)]()),this[_0x213803(0x1a1)](this['_elementStateService'][_0x213803(0x329)][_0x213803(0x1f6)](_0x380a86=>this[_0x213803(0x159)](_0x380a86))),this['disposeWithMe'](this[_0x213803(0x28e)][_0x213803(0x1db)]['subscribe'](_0x14f91a=>{const _0x1c7f33=_0x213803;let _0x45ddb5=this[_0x1c7f33(0x216)]();_0x45ddb5&&_0x14f91a[_0x1c7f33(0x2a8)](_0x3ff972=>_0x3ff972['unitId']===_0x45ddb5[_0x1c7f33(0x2cb)]&&_0x3ff972['subUnitId']===_0x45ddb5[_0x1c7f33(0x1cb)]&&_0x3ff972[_0x1c7f33(0x21f)]===_0x45ddb5[_0x1c7f33(0x21f)])&&this[_0x1c7f33(0x327)]('elementRemoved');}));}[_0x51c089(0x2fb)](){const _0x47144a=_0x51c089;this[_0x47144a(0x327)](_0x47144a(0x2fb)),this[_0x47144a(0x32b)]['complete'](),super[_0x47144a(0x2fb)]();}[_0x51c089(0x216)](){const _0x26ab02=_0x51c089;return this[_0x26ab02(0x32b)]['getValue']();}['open'](_0x43045d){const _0x5dd64a=_0x51c089;let _0x168d94={..._0x43045d};Hn(this[_0x5dd64a(0x216)](),_0x168d94)||this[_0x5dd64a(0x32b)][_0x5dd64a(0x307)](_0x168d94);}[_0x51c089(0x327)](_0x8b1ed4){const _0x2938dd=_0x51c089;this[_0x2938dd(0x216)]()&&this[_0x2938dd(0x32b)][_0x2938dd(0x307)](null);}[_0x51c089(0x159)](_0x1e07da){const _0x11d591=_0x51c089;let _0x209c3f=this['getActiveSession']();if(!_0x209c3f)return;if(_0x1e07da[_0x11d591(0x365)]){this[_0x11d591(0x327)]('transformStart');return;}if(!_0x1e07da['context']){this[_0x11d591(0x327)]('selectionChange');return;}if(_0x1e07da[_0x11d591(0x29f)]['unitId']!==_0x209c3f['unitId']){this[_0x11d591(0x327)](_0x11d591(0x26e));return;}if(_0x1e07da[_0x11d591(0x29f)][_0x11d591(0x1cb)]!==_0x209c3f[_0x11d591(0x1cb)]){this['close']('pageChange');return;}if(_0x1e07da[_0x11d591(0x26c)][_0x11d591(0x19f)]!==0x1||_0x1e07da[_0x11d591(0x1d4)]!==_0x209c3f[_0x11d591(0x21f)]){this[_0x11d591(0x327)](_0x11d591(0x26e));return;}let _0x44bb56=this[_0x11d591(0x28e)][_0x11d591(0x1bd)](_0x209c3f[_0x11d591(0x2cb)],_0x209c3f['subUnitId'],_0x209c3f[_0x11d591(0x21f)]);(!_0x44bb56||_0x44bb56[_0x11d591(0x21e)]['type']!==_0x2c3774[_0x11d591(0x286)]||_0x44bb56[_0x11d591(0x21e)][_0x11d591(0x161)]!==_0x209c3f[_0x11d591(0x161)])&&this[_0x11d591(0x327)]('selectionChange');}};U=H([V(0x0,_0x5b0c6f),V(0x1,_0x2da561)],U);const Un=new Set([_0x4b582b[_0x51c089(0x180)],_0x4b582b[_0x51c089(0x1d7)],_0x4b582b[_0x51c089(0x2bc)],_0x4b582b[_0x51c089(0x169)],_0x4b582b[_0x51c089(0x35f)],_0x4b582b[_0x51c089(0x18c)],_0x4b582b[_0x51c089(0x255)],_0x4b582b[_0x51c089(0x331)]]),Wn=_0x48e4d6[_0x51c089(0x1f0)](_0x5f3e1a=>!Un[_0x51c089(0x297)](_0x5f3e1a[_0x51c089(0x158)])),W=_0x2b0cff(_0x51c089(0x35a));let Gn=class extends _0x1147d8{constructor(_0x574a95,_0x2fcc04,_0xf2b16,_0x479640){const _0x35af42=_0x51c089;super(_0x479640),this['_modelService']=_0x574a95,this['_resourceService']=_0x2fcc04,this[_0x35af42(0x1af)]=_0xf2b16;}get[_0x51c089(0x1e0)](){const _0xf107fa=_0x51c089;return this['_modelService'][_0xf107fa(0x1e0)];}get[_0x51c089(0x1c9)](){const _0x5dbb30=_0x51c089;return this[_0x5dbb30(0x2e7)][_0x5dbb30(0x1c9)];}get[_0x51c089(0x18f)](){const _0x1e7926=_0x51c089;return this[_0x1e7926(0x30f)];}[_0x51c089(0x1bc)](_0x138806){const _0xc374df=_0x51c089;let _0x200b60=this[_0xc374df(0x2e7)][_0xc374df(0x1e0)],_0x59a7ae=_0x138806[_0xc374df(0x2cb)]??(_0x200b60==null?void 0x0:_0x200b60[_0xc374df(0x2cb)]),_0x3622b3=_0x138806[_0xc374df(0x161)]??(_0x200b60==null?void 0x0:_0x200b60[_0xc374df(0x161)]);!_0x59a7ae||!_0x3622b3||this[_0xc374df(0x1af)]['executeCommand'](_0x243b85['id'],{..._0x138806,'unitId':_0x59a7ae,'chartId':_0x3622b3});}};Gn=H([V(0x0,_0x3771e8(_0x47649a)),V(0x1,_0x3771e8(_0x2df296)),V(0x2,_0x1c7a44),V(0x3,_0x3771e8(_0x38abdb))],Gn);const Kn=_0x51c089(0x220);function qn(_0x136272){_0x136272['stopPropagation']();}function Jn(_0xc10ef9){const _0x3d4c00=_0x51c089;var _0x3a9c50,_0x428a51;let _0x321de6=_0x295177(_0x1c7a44),_0x79dff5=_0x295177(_0x571342),_0x36ddaf=_0x295177(_0x1afebb),_0x513ab8=_0x295177(_0x2a9b27),_0x2b4100=_0x295177(_0x47649a),_0x5776ee=_0x295177(W),_0x1ae89a=_0x295177(U),_0x242471=_0x4f558d(()=>_0x2b4100[_0x3d4c00(0x15e)](_0xc10ef9[_0x3d4c00(0x2cb)],_0xc10ef9['chartId']),[_0xc10ef9[_0x3d4c00(0x161)],_0xc10ef9[_0x3d4c00(0x2cb)],_0x2b4100]),_0x108b95=_0x4c13b6(_0x242471==null?void 0x0:_0x242471[_0x3d4c00(0x2ce)][_0x3d4c00(0x2a3)],_0x242471==null?void 0x0:_0x242471[_0x3d4c00(0x2ce)][_0x3d4c00(0x282)]),_0xec4bd2=_0x4c13b6(_0x242471==null?void 0x0:_0x242471[_0x3d4c00(0x2ce)][_0x3d4c00(0x328)],_0x242471==null?void 0x0:_0x242471[_0x3d4c00(0x2ce)][_0x3d4c00(0x19a)]),_0x4c205c=_0x4f558d(()=>{const _0x515f4a=_0x3d4c00;let _0x54ad7a=_0x36ddaf[_0x515f4a(0x170)](_0xc10ef9[_0x515f4a(0x2cb)],_0x5a00fe[_0x515f4a(0x358)]);return!_0x242471||!_0x54ad7a?null:new _0x31b200(_0x242471['model'],new _0x515b23({'unitId':_0xc10ef9[_0x515f4a(0x2cb)],'pageId':_0xc10ef9[_0x515f4a(0x1cb)],'chartId':_0xc10ef9[_0x515f4a(0x161)],'elementId':_0xc10ef9[_0x515f4a(0x21f)],'boardModel':_0x54ad7a,'injector':_0x79dff5}));},[_0xc10ef9,_0x79dff5,_0x242471,_0x36ddaf]),_0x41d317=_0x4f558d(()=>_0x3ba0a7(Wn[_0x3d4c00(0x313)](_0x29fcc0=>({..._0x29fcc0,'label':_0x513ab8['t'](_0x3d4c00(0x352)+_0x29fcc0[_0x3d4c00(0x206)])}))),[_0x513ab8]);if(!_0x242471)return null;let _0x2fa5bd=()=>{const _0x12cc48=_0x3d4c00;_0x1ae89a[_0x12cc48(0x36d)]({'chartId':_0xc10ef9[_0x12cc48(0x161)],'elementId':_0xc10ef9[_0x12cc48(0x21f)],'source':_0x12cc48(0x2af),'subUnitId':_0xc10ef9[_0x12cc48(0x1cb)],'unitId':_0xc10ef9[_0x12cc48(0x2cb)]});},_0x230483=()=>_0x321de6[_0x3d4c00(0x201)](_0x5b1915['id']),_0x18ec20=_0x5a6ce6=>{const _0x31040b=_0x3d4c00;var _0x17d44d,_0x2579ef,_0x114234;if(_0x2b4100[_0x31040b(0x27a)](_0x242471),!_0x4c205c)return;let _0x48425c=_0x41d317[_0x31040b(0x229)](_0x54eeb0=>_0x54eeb0[_0x31040b(0x158)]===_0x5a6ce6),_0x5a3bc9=(_0x48425c==null?void 0x0:_0x48425c[_0x31040b(0x282)])??Number(_0x5a6ce6);if((_0x17d44d=(_0x2579ef=_0x5776ee[_0x31040b(0x1a9)](_0x4518ea['ChartType']))['set'])==null||_0x17d44d['call'](_0x2579ef,_0x4c205c,_0x5a3bc9),_0x48425c!=null&&_0x48425c[_0x31040b(0x291)]){var _0x3b46e2,_0x744d69,_0x493997,_0x296226;(_0x3b46e2=(_0x744d69=_0x5776ee[_0x31040b(0x1a9)](_0x4518ea[_0x31040b(0x1a3)]))[_0x31040b(0x212)])==null||_0x3b46e2['call'](_0x744d69,_0x4c205c,{'composite':{..._0xec4bd2==null||(_0x493997=_0xec4bd2['pie'])==null?void 0x0:_0x493997[_0x31040b(0x341)],'enabled':!0x0,'secondaryPlot':{..._0xec4bd2==null||(_0x296226=_0xec4bd2[_0x31040b(0x19e)])==null||(_0x296226=_0x296226[_0x31040b(0x341)])==null?void 0x0:_0x296226[_0x31040b(0x2c3)],'type':_0x48425c[_0x31040b(0x291)]}}});}else{if(_0x5a3bc9===_0x4b582b[_0x31040b(0x1a3)]&&_0xec4bd2!=null&&(_0x114234=_0xec4bd2['pie'])!=null&&_0x114234['composite']){var _0x42a8e7,_0x30c42c;(_0x42a8e7=(_0x30c42c=_0x5776ee[_0x31040b(0x1a9)](_0x4518ea[_0x31040b(0x1a3)]))[_0x31040b(0x212)])==null||_0x42a8e7[_0x31040b(0x1c7)](_0x30c42c,_0x4c205c,{'composite':{..._0xec4bd2[_0x31040b(0x19e)][_0x31040b(0x341)],'enabled':!0x1}});}}},_0x46a460=(_0xec4bd2==null||(_0x3a9c50=_0xec4bd2[_0x3d4c00(0x19e)])==null||(_0x3a9c50=_0x3a9c50[_0x3d4c00(0x341)])==null?void 0x0:_0x3a9c50[_0x3d4c00(0x1ee)])===!0x0?(_0x428a51=_0xec4bd2[_0x3d4c00(0x19e)][_0x3d4c00(0x341)]['secondaryPlot'])==null?void 0x0:_0x428a51['type']:void 0x0,_0x689df5=_0x46a460?_0x41d317[_0x3d4c00(0x229)](_0x302b93=>_0x302b93[_0x3d4c00(0x291)]===_0x46a460):void 0x0;return _0x47d9d4('div',{'className':_0x2105fe(_0x3d4c00(0x20b),_0x3cc76e),'data-u-comp':'board-chart-floating-toolbar','role':'toolbar','onMouseDown':qn,'onPointerDown':qn,'children':[_0x5d3079(_0x25ecbb,{'aria-label':_0x513ab8['t']('boards-chart-ui.common.chartType'),'className':_0x3d4c00(0x1ec),'value':(_0x689df5==null?void 0x0:_0x689df5[_0x3d4c00(0x158)])??String(_0x108b95),'options':_0x41d317,'onChange':_0x18ec20}),_0x5d3079(_0x1ec940,{'orientation':'vertical'}),_0x5d3079(_0x3d4c00(0x2b6),{'type':'button','aria-label':_0x513ab8['t'](_0x3d4c00(0x363)),'title':_0x513ab8['t'](_0x3d4c00(0x363)),'className':'univer-flex\x20univer-size-7\x20univer-items-center\x20univer-justify-center\x20univer-rounded-md\x20univer-border-none\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-700\x20univer-transition-colors\x20hover:univer-bg-gray-100\x20dark:!univer-text-gray-100\x20dark:hover:!univer-bg-gray-700','data-toolbar-item':'edit-chart','onClick':_0x2fa5bd,'children':_0x5d3079(_0x1f3043,{})}),_0x5d3079('button',{'type':_0x3d4c00(0x2b6),'aria-label':_0x513ab8['t'](_0x3d4c00(0x1fb)),'title':_0x513ab8['t'](_0x3d4c00(0x1fb)),'className':_0x3d4c00(0x2cc),'data-toolbar-item':_0x3d4c00(0x272),'onClick':_0x230483,'children':_0x5d3079(_0x4fdb8c,{})})]});}function Yn(_0x36601a){const _0x28d771=_0x51c089;let _0x37c9c1=_0x36601a[_0x28d771(0x2bd)][_0x28d771(0x32c)];return _0x37c9c1?_0x5d3079(Jn,{..._0x37c9c1}):null;}let Xn=class extends _0x2f3f41{constructor(_0x2f51ff,_0x48dd60,_0x42e7a0,_0x5e9832,_0x19e134,_0x12c654,_0x29d51c){const _0x341333=_0x51c089;super(),this[_0x341333(0x1ac)]=_0x2f51ff,this[_0x341333(0x2c4)]=_0x48dd60,this['_boardElementService']=_0x42e7a0,this[_0x341333(0x188)]=_0x5e9832,this[_0x341333(0x36a)]=_0x19e134,this['_editSessionService']=_0x12c654,this[_0x341333(0x268)]=_0x29d51c,B(this,_0x341333(0x36c),null),B(this,'_popupSelectionKey',null),this[_0x341333(0x189)]();}[_0x51c089(0x2fb)](){const _0x958e7d=_0x51c089;this[_0x958e7d(0x337)](),super['dispose']();}[_0x51c089(0x189)](){const _0x5bab0b=_0x51c089;let _0x12dab9=this[_0x5bab0b(0x1ac)][_0x5bab0b(0x18d)]['getTransformerByCreate']();this[_0x5bab0b(0x1a1)](_0x5f487e(_0x12dab9[_0x5bab0b(0x34f)][_0x5bab0b(0x172)](_0x3d48f1(this[_0x5bab0b(0x1e9)]))[_0x5bab0b(0x1f6)](()=>{const _0x375021=_0x5bab0b;this[_0x375021(0x1cd)]();}))),this['disposeWithMe'](_0x5f487e(_0x12dab9['clearControl$']['pipe'](_0x3d48f1(this[_0x5bab0b(0x1e9)]))[_0x5bab0b(0x1f6)](()=>{this['_clearPopupIfSelectionChanged']();}))),this[_0x5bab0b(0x1a1)](_0x5f487e(_0x12dab9[_0x5bab0b(0x2b4)]['pipe'](_0x3d48f1(this[_0x5bab0b(0x1e9)]))[_0x5bab0b(0x1f6)](()=>{const _0x38dd7a=_0x5bab0b;this[_0x38dd7a(0x337)]();}))),this['disposeWithMe'](_0x5f487e(_0x12dab9[_0x5bab0b(0x185)][_0x5bab0b(0x172)](_0x3d48f1(this['dispose$']))[_0x5bab0b(0x1f6)](()=>{const _0x2156cf=_0x5bab0b;setTimeout(()=>this[_0x2156cf(0x1cd)](),0x0);}))),this[_0x5bab0b(0x1a1)](_0x5f487e(this[_0x5bab0b(0x188)]['state$'][_0x5bab0b(0x172)](_0x3d48f1(this[_0x5bab0b(0x1e9)]))[_0x5bab0b(0x1f6)](()=>{const _0x36d91a=_0x5bab0b;setTimeout(()=>this[_0x36d91a(0x1cd)](),0x0);}))),this[_0x5bab0b(0x1a1)](_0x5f487e(this[_0x5bab0b(0x36a)]['state$']['pipe'](_0x3d48f1(this[_0x5bab0b(0x1e9)]))['subscribe'](()=>{const _0x2152ad=_0x5bab0b;setTimeout(()=>this[_0x2152ad(0x1cd)](),0x0);}))),this[_0x5bab0b(0x1a1)](_0x5f487e(this[_0x5bab0b(0x162)][_0x5bab0b(0x36b)][_0x5bab0b(0x172)](_0x3d48f1(this['dispose$']))[_0x5bab0b(0x1f6)](_0x347da6=>{const _0x35a749=_0x5bab0b;if(_0x347da6){this[_0x35a749(0x337)]();return;}setTimeout(()=>this[_0x35a749(0x1cd)](),0x0);}))),this[_0x5bab0b(0x1a1)](_0x5f487e(this[_0x5bab0b(0x268)][_0x5bab0b(0x260)][_0x5bab0b(0x172)](_0x3d48f1(this[_0x5bab0b(0x1e9)]))[_0x5bab0b(0x1f6)](_0x41f3e8=>{const _0x5f6fd8=_0x5bab0b;if(_0x41f3e8){this[_0x5f6fd8(0x337)]();return;}setTimeout(()=>this['_showPopupForSelection'](),0x0);})));}[_0x51c089(0x337)](){const _0x5d6474=_0x51c089;var _0x4a5e6a;(_0x4a5e6a=this[_0x5d6474(0x36c)])==null||_0x4a5e6a['dispose'](),this[_0x5d6474(0x36c)]=null,this['_popupSelectionKey']=null;}[_0x51c089(0x197)](){setTimeout(()=>{const _0x349654=_0x3703;this[_0x349654(0x298)]()||this[_0x349654(0x337)]();},0x0);}['_isPopupSelectionStillActive'](){const _0x230681=_0x51c089;let _0x4285b5=this[_0x230681(0x188)][_0x230681(0x1b4)]();return!_0x4285b5[_0x230681(0x29f)]||_0x4285b5['selectedIds']['length']!==0x1?!0x1:this['_popupSelectionKey']===this[_0x230681(0x244)](_0x4285b5['context'][_0x230681(0x2cb)],_0x4285b5[_0x230681(0x29f)][_0x230681(0x1cb)],_0x4285b5['selectedIds'][0x0]);}[_0x51c089(0x244)](_0x15d7c3,_0x3b789f,_0x14abd2){return _0x15d7c3+':'+_0x3b789f+':'+_0x14abd2;}[_0x51c089(0x1cd)](){const _0x5e4b37=_0x51c089;if(this[_0x5e4b37(0x268)]['isInteractionSurfaceActive']||this[_0x5e4b37(0x162)][_0x5e4b37(0x216)]()){this[_0x5e4b37(0x337)]();return;}let _0x32c6fb=this[_0x5e4b37(0x188)]['getSnapshot'](),_0x2c0af7=this[_0x5e4b37(0x36a)][_0x5e4b37(0x1b6)]();if(_0x32c6fb[_0x5e4b37(0x365)]||_0x2c0af7[_0x5e4b37(0x1ba)]||_0x2c0af7[_0x5e4b37(0x31f)]!==null&&_0x2c0af7['activeTool']!==_0x26d3c3[_0x5e4b37(0x2c1)]||!_0x32c6fb['context']||_0x32c6fb['context'][_0x5e4b37(0x2cb)]!==this[_0x5e4b37(0x1ac)][_0x5e4b37(0x2cb)]||_0x32c6fb[_0x5e4b37(0x26c)][_0x5e4b37(0x19f)]!==0x1||_0x32c6fb[_0x5e4b37(0x1d4)]==null){this[_0x5e4b37(0x337)]();return;}let _0x4427c5=this[_0x5e4b37(0x28e)][_0x5e4b37(0x1bd)](_0x32c6fb['context'][_0x5e4b37(0x2cb)],_0x32c6fb[_0x5e4b37(0x29f)][_0x5e4b37(0x1cb)],_0x32c6fb[_0x5e4b37(0x1d4)]);if(!_0x4427c5||_0x4427c5[_0x5e4b37(0x21e)][_0x5e4b37(0x19c)]!==_0x2c3774[_0x5e4b37(0x286)]){this[_0x5e4b37(0x337)]();return;}let _0x387f3a=this[_0x5e4b37(0x237)](_0x4427c5);if(!_0x387f3a){this['_clearPopup']();return;}let _0x216eb9=this[_0x5e4b37(0x244)](_0x4427c5[_0x5e4b37(0x2cb)],_0x4427c5[_0x5e4b37(0x1cb)],_0x4427c5[_0x5e4b37(0x21f)]);this[_0x5e4b37(0x36c)]&&this['_popupSelectionKey']===_0x216eb9||(this[_0x5e4b37(0x337)](),this[_0x5e4b37(0x36c)]=this[_0x5e4b37(0x1a1)](this[_0x5e4b37(0x2c4)][_0x5e4b37(0x25f)](_0x4427c5[_0x5e4b37(0x2cb)],_0x4427c5[_0x5e4b37(0x1cb)],_0x387f3a,{'componentKey':Kn,'direction':'top-center','offset':[0x0,0x24],'anchorBoundResolver':_0x435197,'extraProps':{'unitId':_0x4427c5[_0x5e4b37(0x2cb)],'subUnitId':_0x4427c5[_0x5e4b37(0x1cb)],'elementId':_0x4427c5[_0x5e4b37(0x21f)],'chartId':_0x4427c5['element']['chartId']}})),this[_0x5e4b37(0x221)]=_0x216eb9);}[_0x51c089(0x237)](_0xde5572){const _0x3b8084=_0x51c089;var _0x20d6ce;let _0x614a94=_0x1f376e(_0xde5572[_0x3b8084(0x2cb)],_0xde5572[_0x3b8084(0x21f)]),_0x3973af=this['_renderContext'][_0x3b8084(0x18d)];return((_0x20d6ce=_0x3973af['getObjectIncludeInGroup'])==null?void 0x0:_0x20d6ce[_0x3b8084(0x1c7)](_0x3973af,_0x614a94))??_0x3973af[_0x3b8084(0x1d6)](_0x614a94)??null;}};function _0x3703(_0x442899,_0x538e06){_0x442899=_0x442899-0x158;const _0x599f25=_0x599f();let _0x37038f=_0x599f25[_0x442899];return _0x37038f;}Xn=H([V(0x1,_0x3771e8(_0x3fcaba)),V(0x2,_0x2da561),V(0x3,_0x5b0c6f),V(0x4,_0x13a796),V(0x5,_0x3771e8(U)),V(0x6,_0x3771e8(_0x393262))],Xn);let Zn=class extends _0x2f3f41{constructor(_0x540848,_0x1d0b99,_0x4e75f5,_0x246032,_0x3e5ab8,_0x1c9185){const _0x195df6=_0x51c089;super(),this['_renderContext']=_0x540848,this[_0x195df6(0x218)]=_0x1d0b99,this['_boardElementService']=_0x4e75f5,this[_0x195df6(0x188)]=_0x246032,this[_0x195df6(0x36a)]=_0x3e5ab8,this[_0x195df6(0x162)]=_0x1c9185,B(this,'_attachScheduled',!0x1),B(this,_0x195df6(0x35d),null),this['_init']();}[_0x51c089(0x189)](){const _0xa1e171=_0x51c089;let {unitId:_0x1b04ec}=this[_0xa1e171(0x1ac)],_0x1938bf=this[_0xa1e171(0x218)][_0xa1e171(0x170)](_0x1b04ec,_0x5a00fe[_0xa1e171(0x358)]);this[_0xa1e171(0x1a1)](_0x5f487e(()=>{const _0x13b555=_0xa1e171;var _0x26403a;return(_0x26403a=this[_0x13b555(0x35d)])==null?void 0x0:_0x26403a['dispose']();})),_0x1938bf&&(this[_0xa1e171(0x174)](_0x1938bf),this[_0xa1e171(0x1a1)](this[_0xa1e171(0x28e)][_0xa1e171(0x259)][_0xa1e171(0x1f6)](_0x43d821=>{const _0x1fbc88=_0xa1e171;_0x43d821[_0x1fbc88(0x2a8)](_0xb08d8a=>_0xb08d8a[_0x1fbc88(0x2cb)]===_0x1b04ec)&&this[_0x1fbc88(0x174)](_0x1938bf);})),this[_0xa1e171(0x1a1)](this[_0xa1e171(0x28e)][_0xa1e171(0x2fc)][_0xa1e171(0x1f6)](_0x41a402=>{const _0x144318=_0xa1e171;_0x41a402[_0x144318(0x2a8)](_0x1c20b6=>_0x1c20b6['unitId']===_0x1b04ec)&&this['_scheduleAttachObjectDoubleClicks'](_0x1938bf);})),this[_0xa1e171(0x1a1)](this[_0xa1e171(0x28e)][_0xa1e171(0x1db)][_0xa1e171(0x1f6)](_0x225282=>{const _0x1a9722=_0xa1e171;_0x225282[_0x1a9722(0x2a8)](_0x55529d=>_0x55529d['unitId']===_0x1b04ec)&&this[_0x1a9722(0x174)](_0x1938bf);})),this[_0xa1e171(0x1a1)](this[_0xa1e171(0x188)]['state$'][_0xa1e171(0x1f6)](_0x4eaf57=>{const _0x2080c0=_0xa1e171;var _0x28219b;((_0x28219b=_0x4eaf57['context'])==null?void 0x0:_0x28219b['unitId'])===_0x1b04ec&&this[_0x2080c0(0x174)](_0x1938bf);})));}[_0x51c089(0x174)](_0x4c69b4){const _0x372c43=_0x51c089;this['_attachScheduled']||(this[_0x372c43(0x2b1)]=!0x0,Promise[_0x372c43(0x309)]()[_0x372c43(0x33c)](()=>this[_0x372c43(0x369)](_0x4c69b4)));}[_0x51c089(0x369)](_0x2b3891){const _0x4a1784=_0x51c089;var _0x10fc74;this[_0x4a1784(0x2b1)]=!0x1;let {scene:_0x3dc124,unitId:_0x42cef8}=this[_0x4a1784(0x1ac)],_0x17e752=_0x2b3891[_0x4a1784(0x1cf)](),_0x554faa=this[_0x4a1784(0x28e)]['getElementOrder'](_0x42cef8,_0x17e752),_0x2640cb=new _0x59379b();(_0x10fc74=this[_0x4a1784(0x35d)])==null||_0x10fc74[_0x4a1784(0x2fb)](),this[_0x4a1784(0x35d)]=_0x2640cb,_0x554faa[_0x4a1784(0x1ae)](_0x4018a6=>{const _0x1f5f71=_0x4a1784;var _0x506e99;let _0x2cf401=this[_0x1f5f71(0x28e)][_0x1f5f71(0x1bd)](_0x42cef8,_0x17e752,_0x4018a6);if(!_0x2cf401||_0x2cf401[_0x1f5f71(0x21e)][_0x1f5f71(0x19c)]!==_0x2c3774[_0x1f5f71(0x286)])return;let _0x399d58=_0x1f376e(_0x42cef8,_0x4018a6),_0x4e8917=((_0x506e99=_0x3dc124['getObjectIncludeInGroup'])==null?void 0x0:_0x506e99[_0x1f5f71(0x1c7)](_0x3dc124,_0x399d58))??_0x3dc124[_0x1f5f71(0x1d6)](_0x399d58);_0x4e8917&&_0x2640cb[_0x1f5f71(0x33b)](_0x5f487e(_0x4e8917[_0x1f5f71(0x2e0)]['subscribeEvent']((_0x3a373a,_0x2c2245)=>{this['_openEditSession'](_0x2cf401,_0x3a373a,_0x2c2245);})));});}['_openEditSession'](_0x397903,_0x1221a3,_0x446517){const _0x4769a3=_0x51c089;var _0x6cbc0e;if(this['_uiStateService'][_0x4769a3(0x1b6)]()[_0x4769a3(0x1ba)]||this[_0x4769a3(0x188)][_0x4769a3(0x1b4)]()[_0x4769a3(0x365)]||_0x397903[_0x4769a3(0x21e)]['type']!==_0x2c3774[_0x4769a3(0x286)])return;let _0xd447f8={'unitId':_0x397903[_0x4769a3(0x2cb)],'subUnitId':_0x397903['subUnitId']};this[_0x4769a3(0x188)][_0x4769a3(0x1a5)](_0xd447f8,[_0x397903[_0x4769a3(0x21f)]],_0x397903[_0x4769a3(0x21f)]),this[_0x4769a3(0x188)]['setFocusedSwimlaneLane'](_0xd447f8,null),this[_0x4769a3(0x162)]['open']({'chartId':_0x397903[_0x4769a3(0x21e)][_0x4769a3(0x161)],'elementId':_0x397903['elementId'],'source':'doubleClick','subUnitId':_0x397903[_0x4769a3(0x1cb)],'unitId':_0x397903['unitId']}),_0x446517&&(_0x446517[_0x4769a3(0x1c3)]=!0x0),_0x1221a3==null||(_0x6cbc0e=_0x1221a3[_0x4769a3(0x326)])==null||_0x6cbc0e['call'](_0x1221a3);}};Zn=H([V(0x1,_0x1afebb),V(0x2,_0x2da561),V(0x3,_0x5b0c6f),V(0x4,_0x13a796),V(0x5,_0x3771e8(U))],Zn);let G=class extends _0x104147{constructor(_0x3c9218,_0x2da2a7,_0x8c9b40){const _0xe71f70=_0x51c089;super(),this[_0xe71f70(0x30f)]=_0x3c9218,this[_0xe71f70(0x2e7)]=_0x2da2a7,this['_commandService']=_0x8c9b40;}[_0x51c089(0x1df)](_0x34ee2b,_0xbce7ce){const _0x2cbda9=_0x51c089;let _0xd5a3f7=this[_0x2cbda9(0x30f)][_0x2cbda9(0x1b1)](_0x34ee2b,_0xbce7ce),_0x3255f6=_0xd5a3f7?this['_resourceService'][_0x2cbda9(0x2ef)](_0x34ee2b,_0xd5a3f7[_0x2cbda9(0x183)]):void 0x0;return!_0xd5a3f7||!_0x3255f6?null:{'chartId':_0xbce7ce,'chartType':_0xd5a3f7['chartType'],'dataSource':{..._0x3255f6,'values':_0x3255f6[_0x2cbda9(0x2f7)][_0x2cbda9(0x313)](_0xd132c=>[..._0xd132c])},'sharingCount':this[_0x2cbda9(0x30f)][_0x2cbda9(0x199)](_0x34ee2b,_0x3255f6['id']),'unitId':_0x34ee2b};}async[_0x51c089(0x294)](_0xd0074d){const _0x51ed16=_0x51c089;var _0x1432d7;let _0x220312=this[_0x51ed16(0x1df)](_0xd0074d[_0x51ed16(0x2cb)],_0xd0074d['chartId']);if(!_0x220312||_0xd0074d[_0x51ed16(0x2f7)][_0x51ed16(0x19f)]===0x0)return!0x1;let _0x3a5646=(_0x1432d7=this['_resourceService'][_0x51ed16(0x1b1)](_0xd0074d['unitId'],_0xd0074d[_0x51ed16(0x161)]))==null?void 0x0:_0x1432d7['chartType'];if(_0x3a5646===void 0x0)return!0x1;let _0xaf3da8=_0x2463d9(_0x3a5646,_0xd0074d[_0x51ed16(0x2f7)]);if(!_0xaf3da8['ok']||_0x220312[_0x51ed16(0x320)]>0x1&&!_0xd0074d[_0x51ed16(0x310)]&&!await this[_0x51ed16(0x1af)][_0x51ed16(0x201)](_0x49fb78['id'],{'chartId':_0xd0074d[_0x51ed16(0x161)],'unitId':_0xd0074d[_0x51ed16(0x2cb)]}))return!0x1;let _0x23615a=this[_0x51ed16(0x30f)][_0x51ed16(0x1b1)](_0xd0074d['unitId'],_0xd0074d[_0x51ed16(0x161)]);if(!_0x23615a)return!0x1;let _0x96797b=await this['_commandService'][_0x51ed16(0x201)](_0x12b117['id'],{'dataSourceId':_0x23615a[_0x51ed16(0x183)],'name':_0xd0074d['name'],'unitId':_0xd0074d['unitId'],'values':_0xaf3da8['values']});return _0x96797b&&this[_0x51ed16(0x2e7)][_0x51ed16(0x374)](_0xd0074d[_0x51ed16(0x2cb)],_0xd0074d['chartId']),!!_0x96797b;}};G=H([V(0x0,_0x3771e8(_0x2df296)),V(0x1,_0x3771e8(_0x47649a)),V(0x2,_0x1c7a44)],G);const Qn=_0x51c089(0x250);function $n(_0x1a3ea7){const _0x39d214=_0x51c089;let _0x47dc8c=_0x295177(G),_0x2eb4e5=_0x295177(_0x2a9b27),_0x1e3b7e=_0x47dc8c[_0x39d214(0x1df)](_0x1a3ea7[_0x39d214(0x2cb)],_0x1a3ea7[_0x39d214(0x161)]),[_0x515059,_0x53fa7d]=_0xbe82a8(()=>(_0x1e3b7e==null?void 0x0:_0x1e3b7e[_0x39d214(0x293)][_0x39d214(0x2f7)][_0x39d214(0x313)](_0x1aeea8=>[..._0x1aeea8]))??[]),[_0x171351,_0x518064]=_0xbe82a8(null),_0x14e901=((_0x1e3b7e==null?void 0x0:_0x1e3b7e[_0x39d214(0x320)])??0x0)>0x1,_0x408b08={[_0x549cb3['UnknownOption']]:_0x2eb4e5['t'](_0x39d214(0x344)),[_0x549cb3[_0x39d214(0x368)]]:_0x2eb4e5['t']('boards-chart-ui.common.tableDataEmpty'),[_0x549cb3['InvalidCandlestickData']]:_0x2eb4e5['t'](_0x39d214(0x28d))};if(!_0x1e3b7e)return _0x5d3079(_0x39d214(0x2fa),{'className':_0x39d214(0x1b2),'children':_0x2eb4e5['t'](_0x39d214(0x1ab))});let _0x3ecf35=async _0x406e4c=>{const _0x31c03d=_0x39d214;var _0x4413c0;let _0x55e0f5=_0x2463d9(_0x1e3b7e[_0x31c03d(0x282)],_0x515059);if(!_0x55e0f5['ok']){_0x518064(_0x408b08[_0x55e0f5['issue'][_0x31c03d(0x333)]]);return;}if(!await _0x47dc8c[_0x31c03d(0x294)]({'chartId':_0x1a3ea7[_0x31c03d(0x161)],'name':_0x1e3b7e[_0x31c03d(0x293)][_0x31c03d(0x2c9)],'unitId':_0x1a3ea7[_0x31c03d(0x2cb)],'updateShared':_0x406e4c,'values':_0x55e0f5['values']})){_0x518064(_0x2eb4e5['t'](_0x31c03d(0x164)));return;}_0x518064(null),(_0x4413c0=_0x1a3ea7[_0x31c03d(0x1d8)])==null||_0x4413c0[_0x31c03d(0x1c7)](_0x1a3ea7);};return _0x47d9d4(_0x39d214(0x2fa),{'className':'univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4\x20univer-p-1','children':[_0x5d3079(_0x4012a0,{'values':_0x515059,'parsePastedText':_0x3875a5,'onChange':_0x53fa7d}),_0x171351&&_0x5d3079(_0x39d214(0x2fa),{'className':_0x39d214(0x24d),'children':_0x171351}),_0x47d9d4(_0x39d214(0x2fa),{'className':_0x39d214(0x1b7),'children':[_0x1a3ea7[_0x39d214(0x1d8)]&&_0x5d3079(_0x4c36c3,{'type':_0x39d214(0x2b6),'variant':_0x39d214(0x34d),'onClick':_0x1a3ea7[_0x39d214(0x1d8)],'children':_0x2eb4e5['t'](_0x39d214(0x230))}),_0x14e901&&_0x5d3079(_0x4c36c3,{'type':'button','variant':_0x39d214(0x34d),'onClick':()=>_0x3ecf35(!0x1),'children':_0x2eb4e5['t']('boards-chart-ui.common.duplicate')}),_0x5d3079(_0x4c36c3,{'type':'button','variant':_0x39d214(0x261),'onClick':()=>_0x3ecf35(!0x0),'children':_0x2eb4e5['t']('boards-chart-ui.common.apply')})]})]});}const er={'id':_0x51c089(0x348),'type':_0x250df0[_0x51c089(0x1e2)],'handler':(_0x39ce12,_0x25f966)=>{const _0x4ad69d=_0x51c089;if(!_0x25f966||!_0x39ce12[_0x4ad69d(0x1da)](G)['getDataEditState'](_0x25f966['unitId'],_0x25f966[_0x4ad69d(0x161)])||!_0x39ce12[_0x4ad69d(0x1da)](_0x2491b1)[_0x4ad69d(0x1da)](_0x4ad69d(0x250)))return!0x1;let _0x2c610d=_0x39ce12[_0x4ad69d(0x1da)](_0x15f4d5),_0x31480c=_0x39ce12[_0x4ad69d(0x1da)](_0x2a9b27),_0xbb1229=null,_0x4113bd=()=>{const _0x47f8d2=_0x4ad69d;_0xbb1229==null||_0xbb1229[_0x47f8d2(0x2fb)](),_0xbb1229=null;};return _0xbb1229=_0x2c610d['open']({'id':_0x4ad69d(0x1d2),'title':{'title':_0x31480c['t'](_0x4ad69d(0x2f2))},'width':0x2f8,'draggable':!0x1,'mask':!0x0,'maskClosable':!0x1,'children':{'label':{'name':Qn,'props':{..._0x25f966,'onClose':_0x4113bd}}},'onClose':_0x4113bd}),!0x0;}},tr=_0x51c089(0x242),K={'axis':{..._0x572c,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'legend':_0x878204,'lineAndArea':_0x1e1979,'pareto':_0x580178,'funnel':_0x561fcc,'heatmap':_0x148d16,'indicatorLine':_0x866942,'pie':{..._0x58e5a9,'doughnutHole':0x0,'pieHole':0x0},'relation':{..._0x444024,'useValueAsSymbolSize':!0x0},'radar':_0x4138e2,'series':{..._0x441292,'radarFillOpacity':0x1,'rightAxis':{'ltr':!0x1,'rtl':!0x1}},'style':_0x4a4db1,'titles':_0x91e9b4,'trendline':_0x18e0b8,'waterfall':{..._0x20a99d,'useSubtotal':!0x1},'waterfallStyle':_0x1bb3cb,'wordCloud':_0x3dfb74},nr=[_0x4b582b[_0x51c089(0x15a)],_0x4b582b['Radar'],_0x4b582b[_0x51c089(0x357)],_0x4b582b[_0x51c089(0x2a9)],_0x4b582b['Relation'],_0x4b582b[_0x51c089(0x202)],_0x4b582b[_0x51c089(0x2ff)],_0x4b582b[_0x51c089(0x1b0)],_0x4b582b['Candlestick'],_0x4b582b[_0x51c089(0x295)],_0x4b582b[_0x51c089(0x194)],_0x4b582b['Sunburst'],_0x4b582b[_0x51c089(0x2d9)],_0x4b582b[_0x51c089(0x2ee)]];function rr(_0x310cea){const _0x3293a9=_0x51c089;let _0x1332f8=_0x295177(_0x2a9b27);return _0x47d9d4('div',{'children':[_0x5d3079(_0x2323a0,{'title':_0x1332f8['t'](_0x3293a9(0x33e))}),_0x5d3079(_0x4c36c3,{'type':_0x3293a9(0x2b6),'variant':_0x3293a9(0x34d),'className':'univer-w-full\x20univer-justify-start','onClick':_0x310cea[_0x3293a9(0x24f)],'children':_0x1332f8['t'](_0x3293a9(0x2f2))})]});}function ir(){const _0x28449a=_0x51c089;let _0xf3004=_0x9a337c();return _0x5d3079(_0x4b4157,{'visible':nr['every'](_0x136472=>!_0x17d045[_0x28449a(0x1ed)](_0xf3004,_0x136472))});}function ar(_0x4fa2cb){const _0x36945e=_0x51c089;return _0x47d9d4(_0x307f87,{'id':_0x4fa2cb['id'],'children':[_0x5d3079(_0xe6d5ee,{'children':_0x4fa2cb[_0x36945e(0x301)]}),_0x5d3079(_0x5b2871,{'children':_0x4fa2cb[_0x36945e(0x370)]})]});}function or(_0x11ba4d,_0x38f89b){const _0x38ea77=_0x51c089;let _0x2f8f7e=_0x11ba4d===_0x4b582b[_0x38ea77(0x357)],_0x30bad2=_0x17d045[_0x38ea77(0x1ed)](_0x11ba4d,_0x4b582b['Bubble']),_0x112593=_0x11ba4d===_0x4b582b[_0x38ea77(0x236)],_0x51f56f=_0x11ba4d===_0x4b582b[_0x38ea77(0x227)],_0x2dbf1e=_0x11ba4d===_0x4b582b[_0x38ea77(0x2ff)],_0x1af842=_0x17d045[_0x38ea77(0x1ed)](_0x11ba4d,_0x4b582b[_0x38ea77(0x1a3)]),_0x512df5=_0x11ba4d===_0x4b582b['Radar'],_0x3110ea=_0x11ba4d===_0x4b582b[_0x38ea77(0x200)],_0x49d142=_0x11ba4d===_0x4b582b[_0x38ea77(0x331)],_0x3a29e9=_0x11ba4d===_0x4b582b[_0x38ea77(0x1e8)],_0x3218ac=_0x11ba4d===_0x4b582b['Histogram'],_0x21b58b=_0x11ba4d===_0x4b582b[_0x38ea77(0x194)],_0x31828c=_0x11ba4d===_0x4b582b[_0x38ea77(0x26b)],_0xe9098c=_0x11ba4d===_0x4b582b[_0x38ea77(0x2d9)],_0x27fc8e=_0x11ba4d===_0x4b582b[_0x38ea77(0x2ee)],_0x344650=[_0x524885[_0x38ea77(0x330)],_0x524885[_0x38ea77(0x234)]];return _0x2f8f7e&&_0x344650['push'](_0x524885[_0x38ea77(0x357)]),_0x927916(_0x11ba4d,_0x951611[_0x38ea77(0x317)])&&!_0x30bad2&&!_0x49d142&&_0x344650[_0x38ea77(0x226)](_0x524885[_0x38ea77(0x31c)]),_0x3110ea&&_0x344650[_0x38ea77(0x226)](_0x524885['WaterfallSeries']),_0x49d142&&_0x344650[_0x38ea77(0x226)](_0x524885[_0x38ea77(0x2a4)],_0x524885['ParetoLineSeries']),_0x1af842&&_0x344650['push'](_0x524885[_0x38ea77(0x173)]),_0x512df5&&_0x344650[_0x38ea77(0x226)](_0x524885['Radar']),_0x112593&&_0x344650[_0x38ea77(0x226)](_0x524885[_0x38ea77(0x236)]),_0x2dbf1e&&_0x344650[_0x38ea77(0x226)](_0x524885[_0x38ea77(0x2ff)]),_0x51f56f&&_0x344650['push'](_0x524885[_0x38ea77(0x227)]),_0x1872d9(_0x11ba4d)&&_0x344650[_0x38ea77(0x226)](_0x524885['LineAndArea']),_0x927916(_0x11ba4d,_0x951611[_0x38ea77(0x22a)])&&_0x344650[_0x38ea77(0x226)](_0x524885['Legend']),_0x927916(_0x11ba4d,_0x951611[_0x38ea77(0x28f)])&&(_0x344650[_0x38ea77(0x226)](_0x524885[_0x38ea77(0x373)],_0x524885[_0x38ea77(0x25b)]),_0x38f89b&&_0x344650[_0x38ea77(0x226)](_0x524885['RightVerticalAxis']),_0x344650[_0x38ea77(0x226)](_0x524885[_0x38ea77(0x269)])),_0x927916(_0x11ba4d,_0x951611[_0x38ea77(0x23c)])&&_0x344650[_0x38ea77(0x226)](_0x524885[_0x38ea77(0x23c)]),_0x24a4c0(_0x11ba4d)&&_0x344650[_0x38ea77(0x226)](_0x524885['Trendline']),_0x3a29e9&&_0x344650[_0x38ea77(0x226)](_0x524885['Candlestick']),_0x3218ac&&_0x344650[_0x38ea77(0x226)](_0x524885[_0x38ea77(0x295)]),_0x21b58b&&_0x344650[_0x38ea77(0x226)](_0x524885[_0x38ea77(0x194)]),_0x31828c&&_0x344650[_0x38ea77(0x226)](_0x524885[_0x38ea77(0x26b)]),_0xe9098c&&_0x344650['push'](_0x524885[_0x38ea77(0x2d9)]),_0x27fc8e&&_0x344650[_0x38ea77(0x226)](_0x524885[_0x38ea77(0x2ee)]),_0x344650;}function sr(_0x29095e){const _0x257e6b=_0x51c089;var _0x35022d,_0x3551bf,_0x423b0b;let _0x98a55c=_0x295177(_0x2a9b27),_0x413238=_0x9a337c(),_0x4930b9=_0xafaff4(),[_0x312269,_0x57bc9f]=_0xbe82a8(null),_0x2934f8=or(_0x413238,_0x4930b9),_0xf9bb23=_0x5d3079(_0x56fcd1,{}),_0x62207f={[_0x524885['Candlestick']]:_0x98a55c['t'](_0x257e6b(0x2d4)),[_0x524885[_0x257e6b(0x234)]]:_0x98a55c['t'](_0x257e6b(0x21d)),[_0x524885[_0x257e6b(0x330)]]:_0x98a55c['t']('boards-chart-ui.common.chartStyle'),[_0x524885[_0x257e6b(0x2ee)]]:_0x98a55c['t'](_0x257e6b(0x277)),[_0x524885[_0x257e6b(0x236)]]:_0x98a55c['t'](_0x257e6b(0x1ea)),[_0x524885[_0x257e6b(0x2d9)]]:_0x98a55c['t'](_0x257e6b(0x1b3)),[_0x524885[_0x257e6b(0x269)]]:_0x98a55c['t'](_0x257e6b(0x2e6)),[_0x524885[_0x257e6b(0x2ff)]]:_0x98a55c['t'](_0x257e6b(0x1e4)),[_0x524885['Histogram']]:_0x98a55c['t'](_0x257e6b(0x1b9)),[_0x524885['HorizontalAxis']]:_0x98a55c['t'](_0x257e6b(0x24a)),[_0x524885[_0x257e6b(0x23c)]]:_0x98a55c['t']('boards-chart-ui.section.indicatorLine'),[_0x524885[_0x257e6b(0x22a)]]:_0x98a55c['t'](_0x257e6b(0x215)),[_0x524885[_0x257e6b(0x34e)]]:_0x98a55c['t'](_0x257e6b(0x171)),[_0x524885[_0x257e6b(0x2a4)]]:_0x98a55c['t'](_0x257e6b(0x2f4)),[_0x524885[_0x257e6b(0x32e)]]:_0x98a55c['t'](_0x257e6b(0x283)),[_0x524885[_0x257e6b(0x173)]]:_0x98a55c['t'](_0x257e6b(0x306)),[_0x524885[_0x257e6b(0x2c7)]]:_0x98a55c['t']('boards-chart-ui.section.radar'),[_0x524885[_0x257e6b(0x227)]]:_0x98a55c['t'](_0x257e6b(0x2b3)),[_0x524885[_0x257e6b(0x24c)]]:_0x98a55c['t'](_0x257e6b(0x375)),[_0x524885[_0x257e6b(0x31c)]]:_0x98a55c['t'](_0x257e6b(0x281)),[_0x524885[_0x257e6b(0x26b)]]:_0x98a55c['t'](_0x257e6b(0x1f5)),[_0x524885['Treemap']]:_0x98a55c['t'](_0x257e6b(0x2e9)),[_0x524885[_0x257e6b(0x1ad)]]:_0x98a55c['t'](_0x257e6b(0x2b0)),[_0x524885['VerticalAxis']]:_0x98a55c['t'](_0x257e6b(0x28c)),[_0x524885[_0x257e6b(0x2a0)]]:_0x98a55c['t'](_0x257e6b(0x2c6)),[_0x524885[_0x257e6b(0x357)]]:_0x98a55c['t']('boards-chart-ui.section.wordCloud')};_0xcbe30d(()=>{const _0x4ce257=_0x257e6b;var _0x5626ba;(_0x5626ba=_0x29095e[_0x4ce257(0x1d0)])!=null&&_0x5626ba[_0x4ce257(0x1c2)]&&_0x57bc9f(_0x29095e[_0x4ce257(0x1d0)][_0x4ce257(0x1c2)]);},[_0x29095e['route']]);let _0x21d1da={[_0x524885[_0x257e6b(0x330)]]:_0x5d3079(_0x46223d,{'defaultValues':K[_0x257e6b(0x19a)],'showBodyFont':!0x0}),[_0x524885['ChartAndAxisTitles']]:_0x5d3079(_0x593d2c,{'commitMode':_0x257e6b(0x23a),'defaultValues':K[_0x257e6b(0x27c)],'selectedTitleKey':(_0x35022d=_0x29095e[_0x257e6b(0x1d0)])==null?void 0x0:_0x35022d[_0x257e6b(0x2d6)]}),[_0x524885['Series']]:_0x47d9d4(_0x5d97d1,{'defaultValues':K[_0x257e6b(0x15f)],'NumberFormatField':_0x3d2b22,'selectedSeriesId':(_0x3551bf=_0x29095e['route'])==null?void 0x0:_0x3551bf['seriesId'],'children':[_0x5d3079(_0x55a397,{}),_0x5d3079(_0x1278d5,{'individualOnly':!0x0}),_0x5d3079(_0x4edfff,{}),_0x5d3079(_0x3c4209,{}),_0x5d3079(_0x16cad4,{}),_0x5d3079(_0x32708b,{}),_0x5d3079(_0x544cfd,{}),_0x5d3079(_0x59dce8,{})]}),[_0x524885[_0x257e6b(0x2a0)]]:_0x5d3079(_0x373623,{'defaultValues':K[_0x257e6b(0x267)],'NumberFormatField':_0x3d2b22,'selectedSeriesId':(_0x423b0b=_0x29095e['route'])==null?void 0x0:_0x423b0b['seriesId'],'showBucketName':()=>!0x0}),[_0x524885[_0x257e6b(0x2a4)]]:_0x5d3079(_0x31568a,{'defaultValues':K[_0x257e6b(0x2dc)],'NumberFormatField':_0x3d2b22,'showDataPointEditor':!0x0,'target':_0x257e6b(0x168)}),[_0x524885[_0x257e6b(0x32e)]]:_0x5d3079(_0x31568a,{'defaultValues':K['pareto'],'NumberFormatField':_0x3d2b22,'showDataPointEditor':!0x0,'target':_0x257e6b(0x1c5)}),[_0x524885['PieStyle']]:_0x5d3079(_0x248304,{'defaultValues':K[_0x257e6b(0x19e)],'NumberFormatField':_0x3d2b22}),[_0x524885[_0x257e6b(0x357)]]:_0x47d9d4(_0x3f831d,{'children':[_0x5d3079(_0x3a4abd,{'defaultValues':K[_0x257e6b(0x1c4)]}),_0x5d3079(_0x2184b7,{}),_0x5d3079(_0x2c5304,{'defaultValues':K[_0x257e6b(0x1c4)]})]}),[_0x524885['Radar']]:_0x5d3079(_0x5e6281,{'defaultValues':K['radar']}),[_0x524885['Funnel']]:_0x5d3079(_0xfd8c75,{'defaultValues':K[_0x257e6b(0x2b5)],'gapControl':_0x257e6b(0x18e)}),[_0x524885[_0x257e6b(0x2ff)]]:_0x5d3079(_0x25b05d,{'defaultValues':K[_0x257e6b(0x166)]}),[_0x524885[_0x257e6b(0x227)]]:_0x5d3079(_0x1ab135,{'defaultValues':K['relation']}),[_0x524885[_0x257e6b(0x34e)]]:_0x5d3079(_0x575d4e,{'defaultValues':K[_0x257e6b(0x187)],'lineStyleControl':_0x257e6b(0x359)}),[_0x524885[_0x257e6b(0x22a)]]:_0x5d3079(_0x14b4ec,{'defaultValues':K['legend']}),[_0x524885[_0x257e6b(0x373)]]:_0x5d3079(_0x49db35,{'axis':'x','defaultValues':K[_0x257e6b(0x1a7)],'NumberFormatField':_0x3d2b22}),[_0x524885['VerticalAxis']]:_0x5d3079(_0x49db35,{'axis':'y','defaultValues':K[_0x257e6b(0x1a7)],'NumberFormatField':_0x3d2b22}),[_0x524885[_0x257e6b(0x24c)]]:_0x5d3079(_0x49db35,{'axis':'rightY','defaultValues':K[_0x257e6b(0x1a7)],'NumberFormatField':_0x3d2b22}),[_0x524885[_0x257e6b(0x269)]]:_0x5d3079(_0x58aa06,{'defaultValues':K['axis']}),[_0x524885[_0x257e6b(0x23c)]]:_0x5d3079(_0x73316e,{'defaultValues':K['indicatorLine']}),[_0x524885['Trendline']]:_0x5d3079(_0x33b079,{'defaultValues':K[_0x257e6b(0x28b)]}),[_0x524885[_0x257e6b(0x1e8)]]:_0xf9bb23,[_0x524885[_0x257e6b(0x295)]]:_0xf9bb23,[_0x524885[_0x257e6b(0x194)]]:_0xf9bb23,[_0x524885[_0x257e6b(0x26b)]]:_0xf9bb23,[_0x524885[_0x257e6b(0x2d9)]]:_0xf9bb23,[_0x524885[_0x257e6b(0x2ee)]]:_0xf9bb23};return _0x5d3079(_0x58ade9,{'value':_0x312269,'onChange':_0x57bc9f,'children':_0x2934f8[_0x257e6b(0x313)](_0x55ee1c=>_0x5d3079(ar,{'id':_0x55ee1c,'label':_0x62207f[_0x55ee1c],'children':_0x21d1da[_0x55ee1c]},_0x55ee1c))});}function cr({unitId:_0x2de1bb,subUnitId:_0x3d4af,elementId:_0x9763cf,chartId:_0x1be70a}){const _0x3372ef=_0x51c089;let _0x3a3e70=_0x295177(_0x47649a),_0x3fd019=_0x295177(W),_0x3c812a=_0x295177(_0x2a9b27),_0x51faa3=_0x295177(_0x1c7a44),_0x735200=_0x295177(_0x571342),_0x5bcb0c=_0x295177(_0x1afebb),_0x174ae0=_0x295177(U),_0x215c17=_0x4c13b6(_0x3a3e70[_0x3372ef(0x1c9)],_0x3a3e70[_0x3372ef(0x1e0)]),_0x25d72c=_0x4c13b6(_0x174ae0['activeSession$'],_0x174ae0['getActiveSession']()),[_0x1ccfa4,_0x43f94a]=_0xbe82a8(_0x202cbf[_0x3372ef(0x208)]),_0x2bf3ce=(_0x25d72c==null?void 0x0:_0x25d72c[_0x3372ef(0x2cb)])===_0x2de1bb&&_0x25d72c[_0x3372ef(0x161)]===_0x1be70a&&_0x25d72c['elementId']===_0x9763cf?_0x25d72c[_0x3372ef(0x1d0)]:void 0x0;_0xcbe30d(()=>{_0x3a3e70['setActiveChartById'](_0x2de1bb,_0x1be70a);},[_0x1be70a,_0x3a3e70,_0x2de1bb]),_0xcbe30d(()=>{const _0x1e26ab=_0x3372ef;_0x2bf3ce!=null&&_0x2bf3ce[_0x1e26ab(0x336)]&&_0x43f94a(_0x2bf3ce['tab']);},[_0x2bf3ce]);let _0x61c215=(_0x215c17==null?void 0x0:_0x215c17[_0x3372ef(0x2cb)])===_0x2de1bb&&_0x215c17[_0x3372ef(0x161)]===_0x1be70a,_0x402f21=_0x4f558d(()=>{const _0xad707d=_0x3372ef;if(!_0x61c215)return null;let _0x5f2b5e=_0x5bcb0c[_0xad707d(0x170)](_0x2de1bb,_0x5a00fe[_0xad707d(0x358)]);return _0x5f2b5e?new _0x31b200(_0x215c17[_0xad707d(0x2ce)],new _0x515b23({'unitId':_0x2de1bb,'pageId':_0x3d4af,'chartId':_0x1be70a,'elementId':_0x9763cf,'boardModel':_0x5f2b5e,'injector':_0x735200})):null;},[_0x215c17,_0x1be70a,_0x9763cf,_0x735200,_0x61c215,_0x3d4af,_0x2de1bb,_0x5bcb0c]),_0x22cb55=_0x4f558d(()=>_0x3ba0a7(_0x48e4d6[_0x3372ef(0x313)](_0x489c10=>({..._0x489c10,'label':_0x3c812a['t'](_0x3372ef(0x352)+_0x489c10[_0x3372ef(0x206)])}))),[_0x3c812a]);return!_0x61c215||!_0x402f21?null:_0x5d3079(_0x3580e1,{'chartUIService':_0x3fd019,'hostAdapter':_0x402f21,'children':_0x47d9d4(_0x3372ef(0x2fa),{'className':_0x3372ef(0x2db),'children':[_0x5d3079(_0x3dd058,{'ariaLabel':_0x3c812a['t'](_0x3372ef(0x363)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x3c812a['t']('boards-chart-ui.common.setup'),'panelId':lr,'value':_0x202cbf[_0x3372ef(0x208)]},{'label':_0x3c812a['t'](_0x3372ef(0x17f)),'panelId':ur,'value':_0x202cbf[_0x3372ef(0x2d1)]}],'value':_0x1ccfa4,'onChange':_0x43f94a}),_0x1ccfa4===_0x202cbf[_0x3372ef(0x208)]?_0x5d3079(_0x12fa7a,{'id':lr,'label':_0x3c812a['t'](_0x3372ef(0x19b)),'children':_0x47d9d4(_0x3372ef(0x2fa),{'className':_0x3372ef(0x2be),'children':[_0x5d3079(_0x1428d0,{'options':_0x22cb55}),_0x5d3079(_0x10a472,{}),_0x5d3079(_0x8c0508,{}),_0x5d3079(ir,{}),_0x5d3079(_0x338c1d,{}),_0x5d3079(rr,{'onEditData':()=>_0x51faa3['executeCommand'](er['id'],{'unitId':_0x2de1bb,'chartId':_0x1be70a})}),_0x5d3079(_0x10d282,{'orientationControl':_0x5d3079(_0x4c36c3,{'size':_0x3372ef(0x257),'onClick':()=>_0x3fd019[_0x3372ef(0x1bc)]({'patch':{'context':{'orient':_0x215c17[_0x3372ef(0x1ef)][_0x3372ef(0x35c)]?_0x3372ef(0x20e):'row'}}}),'children':_0x3c812a['t'](_0x3372ef(0x2e8))})}),_0x5d3079(_0x34e1fa,{}),_0x5d3079(_0x5ce155,{'defaultValues':K[_0x3372ef(0x2ec)]})]})}):_0x5d3079(_0x12fa7a,{'id':ur,'label':_0x3c812a['t'](_0x3372ef(0x17f)),'children':_0x5d3079(sr,{'route':_0x2bf3ce})})]})});}const lr=_0x51c089(0x251),ur=_0x51c089(0x1d1),dr=_0x1f0671,fr=_0x3c29cb;function pr(_0x3b2284){const _0x51ea96=_0x51c089;var _0x50e448,_0x3b73e2;let _0x913b74=_0x3b2284[_0x51ea96(0x2a1)]??{},_0x29c26e=_0x913b74[_0x51ea96(0x371)]===0x0?0x0:gr(_0x913b74['borderWidth'],gr((_0x50e448=_0x3b2284[_0x51ea96(0x1bb)])==null||(_0x50e448=_0x50e448[_0x51ea96(0x376)])==null?void 0x0:_0x50e448[_0x51ea96(0x27e)],0x1));return{'fill':_0x3b2284[_0x51ea96(0x196)]??_0x913b74['backgroundColor']??_0x26bcd9['backgroundColor'],'stroke':_0x913b74[_0x51ea96(0x2df)]??((_0x3b73e2=_0x3b2284['chartElement'])==null||(_0x3b73e2=_0x3b73e2['stroke'])==null?void 0x0:_0x3b73e2[_0x51ea96(0x29d)])??_0x3b2284[_0x51ea96(0x20c)]??(_0x3b2284[_0x51ea96(0x2f6)]?_0x51ea96(0x2e5):dr),'strokeWidth':_0x29c26e,'radius':fr};}function mr(_0x12fba3,_0x19d496){const _0x521101=_0x51c089;let _0xf38adb=Math['max'](0x0,_0x19d496[_0x521101(0x31e)]);return{'left':_0xf38adb,'top':_0xf38adb,'width':Math[_0x521101(0x334)](0x1,_0x12fba3['width']-_0xf38adb*0x2),'height':Math[_0x521101(0x334)](0x1,_0x12fba3['height']-_0xf38adb*0x2)};}function hr(_0x4b015c,_0x529a69){const _0x460fd3=_0x51c089;let _0x1bc899=-0x1/0x2;return{'left':_0x1bc899,'top':_0x1bc899,'width':Math[_0x460fd3(0x334)](0x1,_0x4b015c[_0x460fd3(0x27e)]),'height':Math[_0x460fd3(0x334)](0x1,_0x4b015c['height']),'radius':Math[_0x460fd3(0x334)](0x0,_0x529a69[_0x460fd3(0x25e)]-_0x529a69[_0x460fd3(0x31e)]/0x2)};}function gr(_0x5694c3,_0x17852f){const _0x54ca44=_0x51c089;return typeof _0x5694c3=='number'&&Number[_0x54ca44(0x279)](_0x5694c3)&&_0x5694c3>0x0?_0x5694c3:_0x17852f;}function _r(_0x533575){const _0x1bcdb6=_0x51c089;var _0x50b734;let _0x1e1ae8=(_0x50b734=_0x533575[_0x1bcdb6(0x1f4)](/^#([\da-f]{3}|[\da-f]{6})$/i))==null?void 0x0:_0x50b734[0x1];if(_0x1e1ae8){let _0x22ac58=_0x1e1ae8[_0x1bcdb6(0x19f)]===0x3?_0x1e1ae8[_0x1bcdb6(0x266)]('')[_0x1bcdb6(0x313)](_0x455830=>''+_0x455830+_0x455830)['join'](''):_0x1e1ae8;return _0x1bcdb6(0x243)+Number[_0x1bcdb6(0x1c1)](_0x22ac58[_0x1bcdb6(0x240)](0x0,0x2),0x10)+',\x20'+Number['parseInt'](_0x22ac58[_0x1bcdb6(0x240)](0x2,0x4),0x10)+',\x20'+Number[_0x1bcdb6(0x1c1)](_0x22ac58[_0x1bcdb6(0x240)](0x4,0x6),0x10)+')';}let _0x529b62=document[_0x1bcdb6(0x2b7)](_0x1bcdb6(0x1a8));return _0x529b62[_0x1bcdb6(0x19a)]['color']=_0x533575,_0x529b62[_0x1bcdb6(0x19a)][_0x1bcdb6(0x29d)]||_0x533575;}let q=class extends _0x104147{constructor(_0xaa9ad2,_0x490f2b,_0x55fbd3){const _0x3425c8=_0x51c089;super(),this[_0x3425c8(0x2e3)]=_0xaa9ad2,this[_0x3425c8(0x274)]=_0x490f2b,this[_0x3425c8(0x2f9)]=_0x55fbd3,B(this,_0x3425c8(0x1dc),new Map()),B(this,_0x3425c8(0x340),new Map()),B(this,_0x3425c8(0x264),new Map()),B(this,_0x3425c8(0x278),new Map());}[_0x51c089(0x1fe)](_0x5b9199){const _0x5627a6=_0x51c089;return _0x5b9199?this['_renderModelManager'][_0x5627a6(0x1fe)](_0x5b9199,this[_0x5627a6(0x25c)]()):this[_0x5627a6(0x2f9)][_0x5627a6(0x1fe)]();}[_0x51c089(0x15c)](_0x206e61,_0x47475a,_0x24f20c){const _0xe6464b=_0x51c089;let _0x1ab8f6=this['_getChartRuntimeKey'](_0x206e61,_0x47475a),_0x1356f4=this[_0xe6464b(0x1dc)]['get'](_0x1ab8f6);return _0x1356f4&&_0x1356f4!==_0x24f20c&&(this['_disposeChartEventSubscriptions'](_0x1ab8f6),_0x1356f4[_0xe6464b(0x2fb)]()),this[_0xe6464b(0x1dc)][_0xe6464b(0x212)](_0x1ab8f6,_0x24f20c),_0x24f20c[_0xe6464b(0x175)](this[_0xe6464b(0x340)]['get'](_0x1ab8f6)===!0x0),this['_bindChartEventHandlers'](_0x1ab8f6,_0x24f20c),{'dispose':()=>{const _0x172f5d=_0xe6464b;this[_0x172f5d(0x1dc)][_0x172f5d(0x1da)](_0x1ab8f6)===_0x24f20c&&(this[_0x172f5d(0x32d)](_0x1ab8f6),this['_chartInstanceMap']['delete'](_0x1ab8f6));}};}[_0x51c089(0x175)](_0x364125,_0x49f600,_0x3475fb){const _0x488f96=_0x51c089;var _0x35ce7e;let _0x1eaf6c=this[_0x488f96(0x22e)](_0x364125,_0x49f600);_0x3475fb?this['_chartElementEditMode'][_0x488f96(0x212)](_0x1eaf6c,!0x0):this[_0x488f96(0x340)]['delete'](_0x1eaf6c),(_0x35ce7e=this[_0x488f96(0x1dc)][_0x488f96(0x1da)](_0x1eaf6c))==null||_0x35ce7e['setElementEditMode'](_0x3475fb);}['isElementEditModeActive'](_0x4c18f0,_0x19a2df){const _0xc34890=_0x51c089;return this['_chartElementEditMode'][_0xc34890(0x1da)](this[_0xc34890(0x22e)](_0x4c18f0,_0x19a2df))===!0x0;}['on'](_0x2753f4,_0x2929f0,_0x49863c,_0x45d22d){const _0x30610b=_0x51c089;let _0x3fbc8e=this[_0x30610b(0x22e)](_0x2753f4,_0x2929f0),_0x53683f=this[_0x30610b(0x264)]['get'](_0x3fbc8e);_0x53683f||(_0x53683f=new Map(),this['_chartEventHandlers'][_0x30610b(0x212)](_0x3fbc8e,_0x53683f));let _0x20779a=_0x53683f[_0x30610b(0x1da)](_0x49863c);_0x20779a||(_0x20779a=new Set(),_0x53683f[_0x30610b(0x212)](_0x49863c,_0x20779a)),_0x20779a[_0x30610b(0x33b)](_0x45d22d);let _0xdf936=this['_chartInstanceMap'][_0x30610b(0x1da)](_0x3fbc8e);return _0xdf936&&this['_bindChartEventHandler'](_0x3fbc8e,_0xdf936,_0x49863c,_0x45d22d),{'dispose':()=>{const _0x59bbba=_0x30610b;let _0x5d7772=this[_0x59bbba(0x264)]['get'](_0x3fbc8e),_0x1b3f9c=_0x5d7772==null?void 0x0:_0x5d7772['get'](_0x49863c);_0x1b3f9c==null||_0x1b3f9c[_0x59bbba(0x345)](_0x45d22d),(_0x1b3f9c==null?void 0x0:_0x1b3f9c['size'])===0x0&&(_0x5d7772==null||_0x5d7772[_0x59bbba(0x345)](_0x49863c)),(_0x5d7772==null?void 0x0:_0x5d7772[_0x59bbba(0x19d)])===0x0&&this['_chartEventHandlers'][_0x59bbba(0x345)](_0x3fbc8e),this['_disposeChartEventSubscription'](_0x3fbc8e,_0x49863c,_0x45d22d);}};}[_0x51c089(0x246)](_0x4858aa){const _0x1ffd08=_0x51c089;let _0xb5c25d=_0x4858aa['model']['config'];if(!_0xb5c25d)throw Error(_0x1ffd08(0x2c2)+_0x4858aa[_0x1ffd08(0x161)]+'\x20has\x20no\x20render\x20config.');let _0xfa7167=this[_0x1ffd08(0x2e3)]['getDirection']();return{'chartConfig':_0xb5c25d,'chartStyle':_0x797ccb({..._0x4858aa[_0x1ffd08(0x2ce)][_0x1ffd08(0x19a)],'runtime':_0x4858aa[_0x1ffd08(0x2ce)][_0x1ffd08(0x17e)](_0xfa7167),'direction':_0xfa7167},_0xb5c25d[_0x1ffd08(0x19c)])};}[_0x51c089(0x27f)](_0x30a67d,_0x3d0259,_0x474938){const _0x201359=_0x51c089;let {chartConfig:_0x591457,chartStyle:_0x5b20af}=this[_0x201359(0x246)](_0x30a67d),_0x316be9=this[_0x201359(0x2f9)][_0x201359(0x219)]();return{'spec':_0x316be9[_0x201359(0x186)](_0x316be9['toSpec'](_0x591457,_0x5b20af),{'chartConfig':_0x591457,'chartStyle':_0x5b20af,'chartInstance':_0x474938},_0x3d0259),'chartConfig':_0x591457,'chartStyle':_0x5b20af,'hostStyle':this[_0x201359(0x177)](_0x5b20af)};}['getHostStyle'](_0x39c25c){const _0x50ba05=_0x51c089;return _0x195161({'style':_0x39c25c,'getRenderColor':_0x3bde13=>this[_0x50ba05(0x274)][_0x50ba05(0x1f7)](_0x3bde13)});}[_0x51c089(0x30a)](_0x521c64,_0x40840c){const _0x10c147=_0x51c089;var _0x316894;_0x521c64[_0x10c147(0x19a)][_0x10c147(0x258)]=(_0x316894=_0x40840c['border'])!=null&&_0x316894[_0x10c147(0x29d)]&&_0x40840c[_0x10c147(0x258)][_0x10c147(0x27e)]?_0x40840c[_0x10c147(0x258)][_0x10c147(0x27e)]+'px\x20solid\x20'+_r(_0x40840c[_0x10c147(0x258)][_0x10c147(0x29d)]):'',_0x521c64[_0x10c147(0x19a)][_0x10c147(0x17d)]=_r(_0x40840c[_0x10c147(0x290)]??'transparent'),_0x521c64[_0x10c147(0x19a)][_0x10c147(0x2fd)]=_0x40840c[_0x10c147(0x25e)]?_0x40840c[_0x10c147(0x25e)]+'px':fr+'px',_0x521c64['style']['overflow']=_0x10c147(0x198),_0x521c64['style']['boxSizing']=_0x10c147(0x182);}[_0x51c089(0x25c)](){const _0x1cfef1=_0x51c089;return{'resolveHostStyle':({style:_0x3b9d1d})=>({'fill':this[_0x1cfef1(0x177)](_0x3b9d1d)[_0x1cfef1(0x290)]}),'resolveRenderBackgroundColor':({hostStyle:_0x4c3561})=>_0x4c3561['fill'],'prepareSpec':({mode:_0x26a4e2,spec:_0x4da3b1})=>_0x26a4e2==='image'?{..._0x4da3b1,'animation':!0x1,'tooltip':{'show':!0x1}}:_0x4da3b1};}['_bindChartEventHandlers'](_0x3dcb1f,_0x3d8032){let _0x191ceb=this['_chartEventHandlers']['get'](_0x3dcb1f);_0x191ceb&&_0x191ceb['forEach']((_0x13c750,_0x1d5639)=>{const _0x3211d4=_0x3703;_0x13c750['forEach'](_0x543d13=>this[_0x3211d4(0x319)](_0x3dcb1f,_0x3d8032,_0x1d5639,_0x543d13));});}['_bindChartEventHandler'](_0x9c550b,_0x3db795,_0x51e31d,_0x419527){const _0x259904=_0x51c089;let _0x143789=this[_0x259904(0x278)]['get'](_0x9c550b);_0x143789||(_0x143789=new Map(),this[_0x259904(0x278)][_0x259904(0x212)](_0x9c550b,_0x143789));let _0x2608d3=_0x143789[_0x259904(0x1da)](_0x51e31d);_0x2608d3||(_0x2608d3=new Map(),_0x143789[_0x259904(0x212)](_0x51e31d,_0x2608d3)),!_0x2608d3['has'](_0x419527)&&_0x2608d3['set'](_0x419527,_0x3db795['on'](_0x51e31d,_0x419527));}[_0x51c089(0x2d2)](_0x173389,_0x5e5299,_0x165235){const _0x3772f8=_0x51c089;var _0x8f2fb0,_0x2164e9;let _0x4734e0=(_0x8f2fb0=this['_chartEventSubscriptions']['get'](_0x173389))==null?void 0x0:_0x8f2fb0[_0x3772f8(0x1da)](_0x5e5299);_0x4734e0==null||(_0x2164e9=_0x4734e0['get'](_0x165235))==null||_0x2164e9[_0x3772f8(0x2fb)](),_0x4734e0==null||_0x4734e0[_0x3772f8(0x345)](_0x165235);}[_0x51c089(0x32d)](_0x148263){const _0x41fd18=_0x51c089;let _0x5e8e80=this['_chartEventSubscriptions'][_0x41fd18(0x1da)](_0x148263);_0x5e8e80==null||_0x5e8e80[_0x41fd18(0x1ae)](_0x27ec94=>{const _0x3b2886=_0x41fd18;_0x27ec94['forEach'](_0x4fdc56=>_0x4fdc56[_0x3b2886(0x2fb)]()),_0x27ec94['clear']();}),this[_0x41fd18(0x278)][_0x41fd18(0x345)](_0x148263);}[_0x51c089(0x22e)](_0x1cd524,_0x10445a){return _0x1cd524+'::'+_0x10445a;}[_0x51c089(0x2fb)](){const _0x2efef6=_0x51c089;this['_chartInstanceMap'][_0x2efef6(0x1ae)](_0x552843=>_0x552843[_0x2efef6(0x2fb)]()),this[_0x2efef6(0x1dc)]['clear'](),this['_chartElementEditMode'][_0x2efef6(0x1b8)](),this['_chartEventHandlers'][_0x2efef6(0x1b8)](),Array[_0x2efef6(0x16c)](this[_0x2efef6(0x278)]['keys']())['forEach'](_0x167018=>this['_disposeChartEventSubscriptions'](_0x167018)),super[_0x2efef6(0x2fb)]();}};q=H([V(0x0,_0x3771e8(_0x2a9b27)),V(0x1,_0x3771e8(_0x30ea69)),V(0x2,_0x4f0b2c)],q);let vr=class extends _0x104147{constructor(_0x1e9517,_0xd43449,_0x26a8b6,_0x33234e,_0x32bb21,_0x4c7df5,_0x2e336f){const _0x4eac51=_0x51c089;super(),this['_renderContext']=_0x1e9517,this[_0x4eac51(0x162)]=_0xd43449,this['_sidePanelService']=_0x26a8b6,this[_0x4eac51(0x2e7)]=_0x33234e,this[_0x4eac51(0x342)]=_0x32bb21,this[_0x4eac51(0x36e)]=_0x4c7df5,this[_0x4eac51(0x2e3)]=_0x2e336f,B(this,'_activePanelKey',null),B(this,_0x4eac51(0x323),null),B(this,'_activeEditOverlay',null),this[_0x4eac51(0x1a1)](this[_0x4eac51(0x162)][_0x4eac51(0x36b)]['subscribe'](_0x47a981=>this[_0x4eac51(0x36f)](_0x47a981)));}[_0x51c089(0x2fb)](){this['_closeActivePanel'](),super['dispose']();}['_syncPanel'](_0x38201){const _0x501cc5=_0x51c089;var _0x269779;if(!_0x38201||_0x38201[_0x501cc5(0x2cb)]!==this['_renderContext'][_0x501cc5(0x2cb)]){this[_0x501cc5(0x16b)]();return;}let _0x2adbe1=this[_0x501cc5(0x2e7)]['ensureChartModel'](_0x38201[_0x501cc5(0x2cb)],_0x38201[_0x501cc5(0x161)]);if(!_0x2adbe1){this[_0x501cc5(0x16b)]();return;}let _0x1c6747=[tr,_0x38201[_0x501cc5(0x2cb)],_0x38201[_0x501cc5(0x1cb)],_0x38201[_0x501cc5(0x21f)]][_0x501cc5(0x31b)](':');if(this[_0x501cc5(0x2ac)]===_0x1c6747){this[_0x501cc5(0x2e7)][_0x501cc5(0x27a)](_0x2adbe1),this['_setActiveEditOverlay'](_0x38201[_0x501cc5(0x2cb)],_0x38201[_0x501cc5(0x161)]);return;}(_0x269779=this[_0x501cc5(0x323)])==null||_0x269779[_0x501cc5(0x2fb)](),this['_modelService'][_0x501cc5(0x27a)](_0x2adbe1),this['_setActiveEditOverlay'](_0x38201[_0x501cc5(0x2cb)],_0x38201[_0x501cc5(0x161)]),this[_0x501cc5(0x2ac)]=_0x1c6747,this[_0x501cc5(0x323)]=this['_sidePanelService'][_0x501cc5(0x36d)]({'id':tr,'header':{'title':this[_0x501cc5(0x2e3)]['t'](_0x501cc5(0x363))},'width':0x184,'children':{'label':tr,'unitId':_0x38201[_0x501cc5(0x2cb)],'subUnitId':_0x38201[_0x501cc5(0x1cb)],'elementId':_0x38201[_0x501cc5(0x21f)],'chartId':_0x38201[_0x501cc5(0x161)]},'onClose':_0x380759=>{const _0x1dc90a=_0x501cc5;this[_0x1dc90a(0x2ac)]===_0x1c6747&&(this['_activePanelKey']=null,this[_0x1dc90a(0x323)]=null,this[_0x1dc90a(0x2a5)](),this[_0x1dc90a(0x2e7)][_0x1dc90a(0x27a)](null),_0x380759===_0x1dc90a(0x207)&&this[_0x1dc90a(0x162)][_0x1dc90a(0x327)](_0x1dc90a(0x207)));}});}['_closeActivePanel'](){const _0x1baa4c=_0x51c089;var _0x2cf351;if(!this[_0x1baa4c(0x2ac)]){this[_0x1baa4c(0x2a5)]();return;}(_0x2cf351=this[_0x1baa4c(0x323)])==null||_0x2cf351[_0x1baa4c(0x2fb)](),this[_0x1baa4c(0x323)]=null,this['_activePanelKey']=null,this['_clearActiveEditOverlay'](),this[_0x1baa4c(0x2e7)][_0x1baa4c(0x27a)](null);}['_setActiveEditOverlay'](_0x548083,_0xc0ee11){const _0x3751f1=_0x51c089;let _0x4ef991=this[_0x3751f1(0x15b)];((_0x4ef991==null?void 0x0:_0x4ef991[_0x3751f1(0x2cb)])!==_0x548083||_0x4ef991[_0x3751f1(0x161)]!==_0xc0ee11)&&(this['_clearActiveEditOverlay'](),this[_0x3751f1(0x15b)]={'unitId':_0x548083,'chartId':_0xc0ee11},this[_0x3751f1(0x342)][_0x3751f1(0x175)](_0x548083,_0xc0ee11,!0x0));}[_0x51c089(0x2a5)](){const _0x57ede1=_0x51c089;let _0x40490c=this['_activeEditOverlay'];_0x40490c&&(this['_activeEditOverlay']=null,this[_0x57ede1(0x342)][_0x57ede1(0x175)](_0x40490c['unitId'],_0x40490c['chartId'],!0x1));}};vr=H([V(0x1,_0x3771e8(U)),V(0x2,_0x3771e8(_0x602cdd)),V(0x3,_0x3771e8(_0x47649a)),V(0x4,_0x3771e8(q)),V(0x5,W),V(0x6,_0x3771e8(_0x2a9b27))],vr);var yr=class extends _0x104147{constructor(_0x51340a,_0x9b2bc6,_0x4bf6b7){const _0x208059=_0x51c089;super(),this[_0x208059(0x161)]=_0x51340a,this['_host']=_0x9b2bc6,this[_0x208059(0x205)]=_0x4bf6b7,B(this,_0x208059(0x1cc),_0x38ce5f[_0x208059(0x191)]);}['getRect'](){const _0x115920=_0x51c089;let _0x1fad4e=this[_0x115920(0x160)]['getBoundingClientRect']();return{'width':Math['max'](0x1,_0x1fad4e[_0x115920(0x27e)]),'height':Math['max'](0x1,_0x1fad4e[_0x115920(0x2bb)])};}[_0x51c089(0x2ea)](_0x378003){const _0x254dc4=_0x51c089;this['_applyHostStyle'](this[_0x254dc4(0x160)],_0x378003);}async['ensureMount'](){const _0x39fa8c=_0x51c089;return this[_0x39fa8c(0x160)];}[_0x51c089(0x303)](){return!0x0;}['syncLayout'](){}['markReady'](){}[_0x51c089(0x2d8)](){}};function br({chartElement:_0xcbc745,chartId:_0x4536ce,unitId:_0x5d1d47}){const _0x2df828=_0x51c089;let _0x3635fb=_0x15ca94(null),_0x5abdc9=_0x295177(_0x47649a),_0x1adec4=_0x295177(q);return _0xcbe30d(()=>{const _0x2125f0=_0x3703;let _0x32e39c=_0x3635fb[_0x2125f0(0x1c0)];if(!_0x32e39c)return;let _0x1d73aa=_0x5abdc9[_0x2125f0(0x15e)](_0x5d1d47,_0x4536ce);if(!_0x1d73aa)return;_0x5abdc9[_0x2125f0(0x27a)](_0x1d73aa);let _0x2895db=new yr(_0x4536ce,_0x32e39c,(_0x294205,_0x4cb9c6)=>_0x1adec4[_0x2125f0(0x30a)](_0x294205,{'fill':_0x4cb9c6[_0x2125f0(0x290)]??'transparent'})),_0x43e3e0=_0x1adec4[_0x2125f0(0x1fe)](_0x38ce5f[_0x2125f0(0x191)]),_0x4b4bfb=_0x1adec4[_0x2125f0(0x15c)](_0x5d1d47,_0x4536ce,_0x43e3e0);_0x43e3e0['bind'](_0x2895db);let _0x560515=_0x57776b([_0x1d73aa[_0x2125f0(0x2ce)]['config$'],_0x1d73aa['model'][_0x2125f0(0x328)]])[_0x2125f0(0x172)](_0x37a7e6(([_0x57defe])=>_0x57defe!=null))[_0x2125f0(0x1f6)](()=>{const _0x5d4d13=_0x2125f0;let {chartConfig:_0x21b73e,chartStyle:_0x102d4e}=_0x1adec4['createRenderInput'](_0x1d73aa);xr(_0x32e39c,_0xcbc745,_0x102d4e,_0x1adec4),_0x43e3e0[_0x5d4d13(0x252)]({'chartId':_0x4536ce,'config':_0x21b73e,'style':_0x102d4e});});return()=>{const _0x593d35=_0x2125f0;var _0x3b4b1e;_0x560515[_0x593d35(0x34a)](),_0x4b4bfb[_0x593d35(0x2fb)](),_0x43e3e0[_0x593d35(0x2fb)](),_0x2895db[_0x593d35(0x2fb)](),((_0x3b4b1e=_0x5abdc9[_0x593d35(0x1e0)])==null?void 0x0:_0x3b4b1e[_0x593d35(0x2cb)])===_0x5d1d47&&_0x5abdc9[_0x593d35(0x1e0)][_0x593d35(0x161)]===_0x4536ce&&_0x5abdc9[_0x593d35(0x27a)](null);};},[_0xcbc745,_0x4536ce,_0x5abdc9,_0x1adec4,_0x5d1d47]),_0x5d3079(_0x2df828(0x2fa),{'className':_0x2df828(0x33f),'data-board-chart-dom-renderer':_0x4536ce,'children':_0x5d3079(_0x2df828(0x2fa),{'ref':_0x3635fb,'data-board-chart-dom-content-host':_0x4536ce})});}function xr(_0x20fb02,_0xde3809,_0x4ee182,_0x21aa32){const _0x3cb413=_0x51c089;let _0x332adc=_0x21aa32[_0x3cb413(0x177)](_0x4ee182)[_0x3cb413(0x290)],_0x3286c1=pr({'chartStyle':_0x4ee182,'chartElement':_0xde3809,'hostFill':_0x332adc}),_0x5f461f=Math[_0x3cb413(0x334)](0x0,_0x3286c1['strokeWidth']);_0x20fb02['style']['position']=_0x3cb413(0x18a),_0x20fb02[_0x3cb413(0x19a)]['left']=_0x5f461f+'px',_0x20fb02[_0x3cb413(0x19a)][_0x3cb413(0x1ff)]=_0x5f461f+'px',_0x20fb02['style']['right']=_0x5f461f+'px',_0x20fb02['style'][_0x3cb413(0x32a)]=_0x5f461f+'px',_0x20fb02[_0x3cb413(0x19a)][_0x3cb413(0x17d)]=_0x3286c1[_0x3cb413(0x290)],_0x20fb02[_0x3cb413(0x19a)][_0x3cb413(0x2fd)]=Math[_0x3cb413(0x334)](0x0,_0x3286c1['radius']-_0x5f461f)+'px',_0x20fb02['style'][_0x3cb413(0x26d)]='hidden',_0x20fb02[_0x3cb413(0x19a)][_0x3cb413(0x204)]=_0x3cb413(0x182);}const Sr=_0x2b0cff(_0x51c089(0x2e2)),Cr=0x0;function wr(_0x274ced){return{..._0x274ced,'borderWidth':0x0};}var Tr=class{constructor(_0x3b52be){this['_renderService']=_0x3b52be;}async['render'](_0x176679,_0x37e805){const _0x1d1b21=_0x51c089;if(typeof document>'u')throw TypeError(_0x1d1b21(0x1ce));let _0x5315fb=new _0x4dcbac(_0x37e805['chartId'],{'width':_0x176679['width'],'height':_0x176679[_0x1d1b21(0x2bb)]}),_0x461c8e=this[_0x1d1b21(0x342)][_0x1d1b21(0x1fe)](_0x38ce5f[_0x1d1b21(0x349)]);try{let {chartConfig:_0x57c16e,chartStyle:_0x384c10}=this['_renderService']['createRenderInput'](_0x37e805);_0x461c8e[_0x1d1b21(0x23f)](_0x5315fb),await _0x461c8e[_0x1d1b21(0x252)]({'chartId':_0x37e805[_0x1d1b21(0x161)],'config':_0x57c16e,'style':wr(_0x384c10)});let _0x16d9d9=_0x5315fb[_0x1d1b21(0x167)]();if(!_0x16d9d9)throw Error(_0x1d1b21(0x29a)+_0x37e805[_0x1d1b21(0x2cb)]+'/'+_0x37e805[_0x1d1b21(0x161)]);return _0x16d9d9;}finally{_0x461c8e[_0x1d1b21(0x2fb)](),_0x5315fb['dispose']();}}};let J=class extends _0x283a3b{constructor(_0x17f19f,_0x6f89e8,_0xa6a68,_0x23d593){super(_0x17f19f,_0x6f89e8,_0x23d593??new Tr(_0xa6a68));}};J=H([V(0x0,_0x3771e8(_0x2a9b27)),V(0x1,_0x3771e8(_0x47649a)),V(0x2,_0x3771e8(q)),V(0x3,_0x49dd13(Sr))],J);let Er=class extends _0x104147{constructor(_0x5d5188,_0x29d273,_0x303641,_0x403c0d,_0x3af329){const _0x53b327=_0x51c089;super(),this['_renderContext']=_0x5d5188,this['_editSessionService']=_0x29d273,this[_0x53b327(0x28e)]=_0x303641,this['_domLayerService']=_0x403c0d,this[_0x53b327(0x241)]=_0x3af329,B(this,_0x53b327(0x360),null),B(this,_0x53b327(0x30c),null),B(this,_0x53b327(0x23d),null),this[_0x53b327(0x1a1)](this['_editSessionService'][_0x53b327(0x36b)][_0x53b327(0x1f6)](_0x3a47e0=>this[_0x53b327(0x288)](_0x3a47e0)));}[_0x51c089(0x2fb)](){const _0x32b5cf=_0x51c089;this[_0x32b5cf(0x245)](),super['dispose']();}[_0x51c089(0x288)](_0x2b34c4){const _0x15ae09=_0x51c089;if(!_0x2b34c4||_0x2b34c4[_0x15ae09(0x2cb)]!==this[_0x15ae09(0x1ac)]['unitId']){this['_clearActiveLayer']();return;}let _0x3c8d78=this[_0x15ae09(0x28e)][_0x15ae09(0x195)](_0x2b34c4['unitId'],_0x2b34c4[_0x15ae09(0x1cb)]),_0x322dae=_0x3c8d78[_0x2b34c4[_0x15ae09(0x21f)]];if(!_0x322dae||_0x322dae['element'][_0x15ae09(0x19c)]!==_0x2c3774[_0x15ae09(0x286)]||_0x322dae[_0x15ae09(0x21e)][_0x15ae09(0x161)]!==_0x2b34c4[_0x15ae09(0x161)]){this[_0x15ae09(0x245)]();return;}let _0x2423f1=_0x5dea0e(_0x3c8d78,_0x322dae[_0x15ae09(0x21f)]);if(!_0x2423f1){this[_0x15ae09(0x245)]();return;}let _0x3cfb1d=_0x322dae[_0x15ae09(0x21e)],_0x1292e=_0x3cfb1d['chartId'],_0x1fa3d2=['board-chart-active',_0x2b34c4[_0x15ae09(0x2cb)],_0x2b34c4[_0x15ae09(0x1cb)],_0x322dae[_0x15ae09(0x21f)]]['join'](':');if(this['_activeLayerId']===_0x1fa3d2){this[_0x15ae09(0x23d)]={'chartId':_0x1292e,'unitId':_0x2b34c4[_0x15ae09(0x2cb)]},this['_domLayerService']['updateItem'](_0x1fa3d2,{'rect':_0x2423f1,'content':()=>_0x5d3079(br,{'chartId':_0x1292e,'chartElement':_0x3cfb1d,'unitId':_0x2b34c4[_0x15ae09(0x2cb)]})});return;}this[_0x15ae09(0x245)](),this[_0x15ae09(0x360)]=_0x1fa3d2,this['_activeChart']={'chartId':_0x1292e,'unitId':_0x2b34c4['unitId']},this['_activeLayerDisposable']=this[_0x15ae09(0x322)][_0x15ae09(0x1aa)]({'id':_0x1fa3d2,'unitId':_0x2b34c4['unitId'],'subUnitId':_0x2b34c4[_0x15ae09(0x1cb)],'elementId':_0x322dae['elementId'],'rect':_0x2423f1,'interactive':!0x0,'zIndex':0x1,'content':()=>_0x5d3079(br,{'chartId':_0x1292e,'chartElement':_0x3cfb1d,'unitId':_0x2b34c4[_0x15ae09(0x2cb)]})});}['_clearActiveLayer'](){const _0x466de2=_0x51c089;var _0x2ac0c2;let _0x2135a3=this[_0x466de2(0x23d)];(_0x2ac0c2=this[_0x466de2(0x30c)])==null||_0x2ac0c2[_0x466de2(0x2fb)](),this[_0x466de2(0x30c)]=null,this[_0x466de2(0x360)]=null,this[_0x466de2(0x23d)]=null,_0x2135a3&&this[_0x466de2(0x241)][_0x466de2(0x285)](_0x2135a3[_0x466de2(0x2cb)],_0x2135a3['chartId']);}};Er=H([V(0x1,_0x3771e8(U)),V(0x2,_0x2da561),V(0x3,_0x3771e8(_0x14872b)),V(0x4,_0x3771e8(J))],Er);let Y=class extends _0x104147{constructor(_0x5c34bd,_0x106f20,_0x21bfa7,_0x5a582c){const _0x1cd1e6=_0x51c089;super(),this[_0x1cd1e6(0x1af)]=_0x5c34bd,this[_0x1cd1e6(0x241)]=_0x106f20,this[_0x1cd1e6(0x30f)]=_0x21bfa7,this[_0x1cd1e6(0x2e7)]=_0x5a582c,this[_0x1cd1e6(0x335)]();}[_0x51c089(0x335)](){const _0x16b126=_0x51c089;this[_0x16b126(0x1a1)](this[_0x16b126(0x1af)]['onCommandExecuted'](_0x47ca71=>{const _0x3824c9=_0x16b126;if(_0x47ca71['id']===_0x5612b2['id']){var _0x4bade0;let _0x26a72e=_0x47ca71[_0x3824c9(0x1b5)];_0x26a72e!=null&&_0x26a72e[_0x3824c9(0x2cb)]&&(_0x4bade0=_0x26a72e[_0x3824c9(0x343)])!=null&&_0x4bade0['id']&&(this[_0x3824c9(0x289)](_0x26a72e)?this[_0x3824c9(0x241)][_0x3824c9(0x285)](_0x26a72e[_0x3824c9(0x2cb)],_0x26a72e[_0x3824c9(0x343)]['id'],{'waitForConfig':!0x0}):this[_0x3824c9(0x241)][_0x3824c9(0x285)](_0x26a72e['unitId'],_0x26a72e['chart']['id']));return;}if(_0x47ca71['id']===_0x2254a1['id']){var _0x145b67;let _0x1aa3d1=_0x47ca71[_0x3824c9(0x1b5)];if(!(_0x1aa3d1!=null&&_0x1aa3d1[_0x3824c9(0x2cb)])||!((_0x145b67=_0x1aa3d1[_0x3824c9(0x293)])!=null&&_0x145b67['id']))return;this[_0x3824c9(0x30f)]['getChartIdsByDataSource'](_0x1aa3d1[_0x3824c9(0x2cb)],_0x1aa3d1[_0x3824c9(0x293)]['id'])[_0x3824c9(0x1ae)](_0x533e62=>this[_0x3824c9(0x241)][_0x3824c9(0x285)](_0x1aa3d1['unitId'],_0x533e62,{'waitForConfig':!0x0}));}}));}['_shouldWaitForChartConfig'](_0x7ec19d){const _0x276e=_0x51c089;var _0x371553;let _0x1668dc=(_0x371553=this['_modelService'][_0x276e(0x29b)](_0x7ec19d[_0x276e(0x2cb)],_0x7ec19d['chart']['id']))==null||(_0x371553=_0x371553[_0x276e(0x2ce)][_0x276e(0x22d)])==null?void 0x0:_0x371553[_0x276e(0x19c)];return _0x1668dc!=null&&_0x1668dc!==_0x7ec19d[_0x276e(0x343)][_0x276e(0x282)];}};Y=H([V(0x0,_0x1c7a44),V(0x1,_0x3771e8(J)),V(0x2,_0x3771e8(_0x2df296)),V(0x3,_0x3771e8(_0x47649a))],Y);var Dr=_0x51c089(0x26f),Or='1.0.0-beta.0';const kr={'scaleX':0x1,'scaleY':0x1};function Ar(_0x1accb7){const _0x2099cc=_0x51c089;let _0x55d6a4=_0x1accb7[_0x2099cc(0x213)];return typeof MouseEvent<'u'&&_0x55d6a4 instanceof MouseEvent?_0x55d6a4:void 0x0;}function jr(_0x14b754){const _0x24b15e=_0x51c089;let _0x331f4e=_0x14b754[_0x24b15e(0x213)],_0x3c38b6=_0x331f4e==null?void 0x0:_0x331f4e['target'];return typeof Element<'u'&&_0x3c38b6 instanceof Element?_0x3c38b6:void 0x0;}function Mr(_0x578257){const _0x2b54d0=_0x51c089;return _0x578257[_0x2b54d0(0x27e)]||_0x578257[_0x2b54d0(0x2c5)]-_0x578257[_0x2b54d0(0x1e1)];}function Nr(_0xaf5e30){const _0x41a15e=_0x51c089;return _0xaf5e30[_0x41a15e(0x2bb)]||_0xaf5e30[_0x41a15e(0x32a)]-_0xaf5e30[_0x41a15e(0x1ff)];}function Pr(_0x507faf,_0x594694){const _0x145669=_0x51c089;let _0x485839=_0x507faf[_0x145669(0x2e4)]||(typeof HTMLElement<'u'&&_0x507faf instanceof HTMLElement?_0x507faf['offsetWidth']:0x0),_0x317e16=_0x507faf[_0x145669(0x2c0)]||(typeof HTMLElement<'u'&&_0x507faf instanceof HTMLElement?_0x507faf['offsetHeight']:0x0),_0x37fa3f=Mr(_0x594694),_0x374a9a=Nr(_0x594694);return{'scaleX':_0x485839>0x0&&_0x37fa3f>0x0?_0x37fa3f/_0x485839:kr['scaleX'],'scaleY':_0x317e16>0x0&&_0x374a9a>0x0?_0x374a9a/_0x317e16:kr['scaleY']};}function Fr(_0x4b9808,_0x1a5104,_0x2e57a4){const _0x526ad8=_0x51c089;return{'left':_0x4b9808['left']+_0x1a5104[_0x526ad8(0x1e1)]*_0x2e57a4[_0x526ad8(0x364)],'right':_0x4b9808[_0x526ad8(0x1e1)]+_0x1a5104[_0x526ad8(0x2c5)]*_0x2e57a4[_0x526ad8(0x364)],'top':_0x4b9808[_0x526ad8(0x1ff)]+_0x1a5104['top']*_0x2e57a4['scaleY'],'bottom':_0x4b9808[_0x526ad8(0x1ff)]+_0x1a5104['bottom']*_0x2e57a4[_0x526ad8(0x355)]};}function Ir(_0x4729da){const _0x38cf68=_0x51c089;let _0x183895=jr(_0x4729da),_0x1fa1d4=_0x4729da['hit'][_0x38cf68(0x22c)];return _0x183895&&_0x1fa1d4?()=>{let _0x160deb=_0x183895['getBoundingClientRect']();return Fr(_0x160deb,_0x1fa1d4,Pr(_0x183895,_0x160deb));}:()=>{const _0x20c03f=_0x38cf68;let _0x28977d=_0x183895==null?void 0x0:_0x183895[_0x20c03f(0x2aa)]();if(_0x183895&&_0x28977d&&_0x1fa1d4)return Fr(_0x28977d,_0x1fa1d4,Pr(_0x183895,_0x28977d));let _0x15a3db=Ar(_0x4729da),_0x46f1ad=_0x183895&&_0x28977d?Pr(_0x183895,_0x28977d):kr,_0x189b48=(_0x15a3db==null?void 0x0:_0x15a3db['clientX'])??(_0x28977d?_0x28977d['left']+_0x4729da['localPoint']['x']*_0x46f1ad[_0x20c03f(0x364)]:_0x4729da[_0x20c03f(0x2a7)]['x']),_0xa34175=(_0x15a3db==null?void 0x0:_0x15a3db[_0x20c03f(0x17a)])??(_0x28977d?_0x28977d[_0x20c03f(0x1ff)]+_0x4729da[_0x20c03f(0x2a7)]['y']*_0x46f1ad[_0x20c03f(0x355)]:_0x4729da[_0x20c03f(0x2a7)]['y']);return{'left':_0x189b48,'right':_0x189b48+0x1,'top':_0xa34175,'bottom':_0xa34175+0x1};};}function Lr(_0x1643fb){const _0x9a28a9=_0x51c089;return _0x1643fb[_0x9a28a9(0x2c5)]<=_0x1643fb['left']||_0x1643fb[_0x9a28a9(0x32a)]<=_0x1643fb[_0x9a28a9(0x1ff)]?!0x1:typeof window>'u'||_0x1643fb[_0x9a28a9(0x2c5)]>0x0&&_0x1643fb[_0x9a28a9(0x32a)]>0x0&&_0x1643fb['left']<window[_0x9a28a9(0x1fd)]&&_0x1643fb['top']<window[_0x9a28a9(0x231)];}function Rr(_0x49968a,_0x305774){const _0x533052=_0x51c089;let _0x43b0bd=Ir(_0x49968a),_0x209ef1=_0x43b0bd(),_0x535f0c=new _0x40692d(_0x209ef1),_0x458326=new _0x59379b(),_0x1eb2af=!0x1,_0x4533c8=!0x1;return typeof window<'u'&&_0x458326[_0x533052(0x33b)](_0x433459(_0x2895ed(window,_0x533052(0x181),{'capture':!0x0}),_0x2895ed(window,_0x533052(0x253)))[_0x533052(0x172)](_0xad3d66(0x10))['subscribe'](()=>{_0x4533c8||_0x1eb2af||(_0x4533c8=!0x0,queueMicrotask(()=>{const _0x229bd2=_0x3703;if(_0x4533c8=!0x1,_0x1eb2af)return;let _0x554f96=_0x43b0bd();if(!Lr(_0x554f96)){_0x305774();return;}_0x535f0c[_0x229bd2(0x307)](_0x554f96);}));})),{'initialRect':_0x209ef1,'anchorRect$':_0x535f0c['asObservable'](),'visible':Lr(_0x209ef1),'dispose':()=>{const _0x4e7907=_0x533052;_0x1eb2af=!0x0,_0x458326[_0x4e7907(0x2fb)](),_0x535f0c[_0x4e7907(0x1fa)]();}};}const zr=_0x51c089(0x315);function Br(_0x184289,_0x36fa0c){return _0x184289+'::'+_0x36fa0c;}let X=class extends _0x104147{constructor(_0x5aacd6,_0x4bf98d,_0x3e93f4,_0x28f900,_0x1b32d3,_0x43c483,_0x944e49,_0x134a2d,_0x36b0d7){const _0x10ccad=_0x51c089;super(),this[_0x10ccad(0x2e7)]=_0x5aacd6,this[_0x10ccad(0x21c)]=_0x4bf98d,this['_chartUIService']=_0x3e93f4,this[_0x10ccad(0x162)]=_0x28f900,this[_0x10ccad(0x2d7)]=_0x1b32d3,this[_0x10ccad(0x20f)]=_0x43c483,this[_0x10ccad(0x2a2)]=_0x944e49,this[_0x10ccad(0x238)]=_0x134a2d,this[_0x10ccad(0x28a)]=_0x36b0d7,B(this,_0x10ccad(0x179),new Map()),B(this,'_popupDisposable',null),B(this,_0x10ccad(0x332),null),this[_0x10ccad(0x35b)](),this['_subscribeChartEvents']();}[_0x51c089(0x2fb)](){const _0x3ca811=_0x51c089;this['_closePopup'](),this['_chartEventDisposables'][_0x3ca811(0x1ae)](_0x5171e7=>_0x5171e7['dispose']()),this['_chartEventDisposables'][_0x3ca811(0x1b8)](),super[_0x3ca811(0x2fb)]();}['_registerAdapter'](){const _0x1a19ff=_0x51c089;let _0x5c27a0=_0x557cfa({'chartUIService':this['_chartUIService'],'getHostAdapter':_0x2e745f=>{const _0x37462e=_0x3703;this[_0x37462e(0x2e7)]['setActiveChartById'](_0x2e745f['unitId'],_0x2e745f[_0x37462e(0x161)]);let _0x6fb9f0=this['_modelService'][_0x37462e(0x29b)](_0x2e745f['unitId'],_0x2e745f[_0x37462e(0x161)]),_0x5df11e=this['_univerInstanceService']['getUnit'](_0x2e745f[_0x37462e(0x2cb)],_0x5a00fe[_0x37462e(0x358)]),_0x87a20b=this[_0x37462e(0x162)][_0x37462e(0x216)]();if(!(!_0x6fb9f0||!_0x5df11e||!_0x87a20b))return new _0x31b200(_0x6fb9f0[_0x37462e(0x2ce)],new _0x515b23({'unitId':_0x2e745f[_0x37462e(0x2cb)],'pageId':_0x87a20b['subUnitId'],'chartId':_0x2e745f[_0x37462e(0x161)],'elementId':_0x87a20b[_0x37462e(0x21f)],'boardModel':_0x5df11e,'injector':this[_0x37462e(0x28a)]}));},'close':()=>this['_closePopup'](),'openFullPanel':_0x20c704=>{const _0x444160=_0x3703;this[_0x444160(0x2e7)][_0x444160(0x16d)](_0x20c704[_0x444160(0x2cb)],_0x20c704['chartId']);let _0x18436a=this['_editSessionService'][_0x444160(0x216)]();(_0x18436a==null?void 0x0:_0x18436a[_0x444160(0x2cb)])===_0x20c704[_0x444160(0x2cb)]&&_0x18436a[_0x444160(0x161)]===_0x20c704[_0x444160(0x161)]&&this[_0x444160(0x162)][_0x444160(0x36d)]({..._0x18436a,'route':_0x260e18(_0x20c704['target']),'source':_0x444160(0x17b)}),this['_closePopup']();}});this['disposeWithMe'](this['_adapterRegistry'][_0x1a19ff(0x366)](zr,_0x5c27a0));}['_subscribeChartEvents'](){const _0x5aadee=_0x51c089;this[_0x5aadee(0x1a1)](this[_0x5aadee(0x2e7)]['chartModelAdded$'][_0x5aadee(0x1f6)](_0xfdce5f=>{const _0xc3cf53=_0x5aadee;let _0xf16bb7=Br(_0xfdce5f[_0xc3cf53(0x2cb)],_0xfdce5f[_0xc3cf53(0x161)]);if(this[_0xc3cf53(0x179)][_0xc3cf53(0x297)](_0xf16bb7))return;let _0x473cc7=new _0x59379b();_0x473cc7[_0xc3cf53(0x33b)](this[_0xc3cf53(0x21c)]['on'](_0xfdce5f[_0xc3cf53(0x2cb)],_0xfdce5f[_0xc3cf53(0x161)],_0xc3cf53(0x347),_0x1251d8=>{const _0x136cc7=_0xc3cf53;this['_openFloatMenu'](_0xfdce5f[_0x136cc7(0x2cb)],_0xfdce5f['chartId'],_0x1251d8);})),this[_0xc3cf53(0x179)][_0xc3cf53(0x212)](_0xf16bb7,_0x473cc7);})),this[_0x5aadee(0x1a1)](this[_0x5aadee(0x2e7)][_0x5aadee(0x1c6)][_0x5aadee(0x1f6)](_0x1f49cf=>{const _0x3b7f50=_0x5aadee;var _0x48bd7f;let _0x3257a5=Br(_0x1f49cf[_0x3b7f50(0x2cb)],_0x1f49cf[_0x3b7f50(0x161)]);(_0x48bd7f=this[_0x3b7f50(0x179)]['get'](_0x3257a5))==null||_0x48bd7f[_0x3b7f50(0x2fb)](),this[_0x3b7f50(0x179)][_0x3b7f50(0x345)](_0x3257a5),this[_0x3b7f50(0x332)]===_0x3257a5&&this['_closePopup']();})),this[_0x5aadee(0x1a1)](this[_0x5aadee(0x2e7)]['activeRuntimeModel$'][_0x5aadee(0x1f6)](_0x5b6b6a=>{const _0x505108=_0x5aadee;let _0x1f50dc=_0x5b6b6a?Br(_0x5b6b6a[_0x505108(0x2cb)],_0x5b6b6a[_0x505108(0x161)]):null;(!_0x1f50dc||this[_0x505108(0x332)]&&_0x1f50dc!==this[_0x505108(0x332)])&&this[_0x505108(0x27b)]();}));}[_0x51c089(0x30e)](_0x2826d4,_0x5d56b2,_0x26e42b){const _0x1b4fec=_0x51c089;if(!this[_0x1b4fec(0x21c)][_0x1b4fec(0x353)](_0x2826d4,_0x5d56b2))return;let _0x4ae853=this[_0x1b4fec(0x2e7)][_0x1b4fec(0x29b)](_0x2826d4,_0x5d56b2),_0x122c0b=_0x4ae853?_0x189c7e(_0x4ae853[_0x1b4fec(0x2ce)],_0x26e42b[_0x1b4fec(0x1a0)]):void 0x0;if(!_0x4ae853||!_0x122c0b){this[_0x1b4fec(0x27b)]();return;}if(this[_0x1b4fec(0x2e7)]['setActiveChartRuntime'](_0x4ae853),this['_closePopup'](),!_0x122c0b[_0x1b4fec(0x1f1)])return;let _0x28cfbc=this[_0x1b4fec(0x2a2)][_0x1b4fec(0x214)](_0x2826d4);if(!_0x28cfbc)return;let _0x152309=Rr(_0x26e42b,()=>this[_0x1b4fec(0x35e)](_0x2826d4,_0x5d56b2));if(!_0x152309['visible']){_0x152309['dispose']();return;}let _0xbea85d=this[_0x1b4fec(0x20f)][_0x1b4fec(0x2bf)]({'componentKey':_0x4c962d,'direction':'top-center','offset':[0x0,0x8],'unitId':_0x2826d4,'subUnitId':'','anchorRect':_0x152309[_0x1b4fec(0x192)],'anchorRect$':_0x152309[_0x1b4fec(0x346)],'canvasElement':_0x28cfbc[_0x1b4fec(0x2ad)]['getCanvasElement'](),'extraProps':{'unitId':_0x2826d4,'chartId':_0x5d56b2,'element':_0x26e42b[_0x1b4fec(0x1a0)],'target':_0x122c0b[_0x1b4fec(0x217)],'adapterKey':zr}}),_0x5bc6ca=new _0x59379b();_0x5bc6ca[_0x1b4fec(0x33b)](_0x152309),_0x5bc6ca[_0x1b4fec(0x33b)]({'dispose':()=>this[_0x1b4fec(0x20f)][_0x1b4fec(0x311)](_0xbea85d)}),this[_0x1b4fec(0x36c)]=_0x5bc6ca,this['_popupRuntimeKey']=Br(_0x2826d4,_0x5d56b2);}[_0x51c089(0x27b)](){const _0x2a7e48=_0x51c089;var _0x23ba96;(_0x23ba96=this['_popupDisposable'])==null||_0x23ba96[_0x2a7e48(0x2fb)](),this[_0x2a7e48(0x36c)]=null,this[_0x2a7e48(0x332)]=null;}[_0x51c089(0x35e)](_0x5c116d,_0x54bc13){const _0x15bf31=_0x51c089;this[_0x15bf31(0x27b)](),this[_0x15bf31(0x21c)]['isElementEditModeActive'](_0x5c116d,_0x54bc13)&&(this['_chartRenderService']['setElementEditMode'](_0x5c116d,_0x54bc13,!0x1),this[_0x15bf31(0x21c)]['setElementEditMode'](_0x5c116d,_0x54bc13,!0x0));}};X=H([V(0x0,_0x3771e8(_0x47649a)),V(0x1,_0x3771e8(q)),V(0x2,W),V(0x3,_0x3771e8(U)),V(0x4,_0x3771e8(_0x107e21)),V(0x5,_0x3771e8(_0x390aef)),V(0x6,_0x4b4297),V(0x7,_0x1afebb),V(0x8,_0x3771e8(_0x571342))],X);function Vr(_0x5f0bc3,_0x3075ca,_0x5b4808,_0x403c2d){let _0x2b8bb2={'chartType':_0x3075ca,'data':_0x5b4808,..._0x403c2d?{'style':_0x403c2d}:{}};return{..._0x5f0bc3,'options':_0x2b8bb2};}function Hr(_0x5d01fd){const _0x28993e=_0x51c089;let _0x8b8fc5=_0x295177(_0x1c7a44),_0x205a11=_0x295177(_0x2a9b27),_0x541c21=_0x4f558d(()=>_0x3ba0a7(_0x48e4d6[_0x28993e(0x313)](_0x11b39f=>({..._0x11b39f,'label':_0x205a11['t'](_0x28993e(0x352)+_0x11b39f[_0x28993e(0x206)])}))),[_0x205a11]),[_0x4baba5,_0x55532b]=_0xbe82a8(String(_0x4b582b[_0x28993e(0x2fe)])),_0x320061=_0x541c21['find'](_0x37fbdf=>_0x37fbdf[_0x28993e(0x158)]===_0x4baba5),_0x46b6da=(_0x320061==null?void 0x0:_0x320061[_0x28993e(0x282)])??_0x4b582b[_0x28993e(0x2fe)],[_0x19af4f,_0x59ce02]=_0xbe82a8(()=>_0x591865[_0x28993e(0x313)](_0x2a7251=>[..._0x2a7251])),[_0x37c32e,_0x47abd8]=_0xbe82a8(null),_0x3021db={[_0x549cb3[_0x28993e(0x222)]]:_0x205a11['t'](_0x28993e(0x344)),[_0x549cb3[_0x28993e(0x368)]]:_0x205a11['t']('boards-chart-ui.common.tableDataEmpty'),[_0x549cb3[_0x28993e(0x256)]]:_0x205a11['t']('boards-chart-ui.candlestick.columnsError')},_0x1d4923=_0x5cdf94=>_0x20c01a(_0x5cdf94,{'candlestickClose':_0x205a11['t']('boards-chart-ui.candlestick.close'),'candlestickHigh':_0x205a11['t'](_0x28993e(0x372)),'candlestickLow':_0x205a11['t'](_0x28993e(0x1e7)),'candlestickOpen':_0x205a11['t'](_0x28993e(0x351)),'category':_0x205a11['t'](_0x28993e(0x33a)),'chordSource':_0x205a11['t'](_0x28993e(0x1f2)),'chordTarget':_0x205a11['t'](_0x28993e(0x362)),'label':_0x205a11['t'](_0x28993e(0x16e)),'sunburstHierarchy':_0x205a11['t']('boards-chart-ui.sunburst.hierarchy'),'value':_0x205a11['t'](_0x28993e(0x356)),'valueField':_0x205a11['t'](_0x28993e(0x2f5))});return _0x47d9d4(_0x28993e(0x2fa),{'className':'univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','children':[_0x47d9d4(_0x28993e(0x2fa),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-2','children':[_0x5d3079('div',{'className':_0x28993e(0x21a),'children':_0x205a11['t']('boards-chart-ui.common.chartType')}),_0x5d3079(_0x25ecbb,{'className':_0x28993e(0x247),'value':_0x4baba5,'options':_0x541c21,'onChange':_0x4e1aa6=>{const _0x20d0c0=_0x28993e;var _0xec96d8;_0x55532b(_0x4e1aa6);let _0xb20127=((_0xec96d8=_0x541c21[_0x20d0c0(0x229)](_0x3671a4=>_0x3671a4[_0x20d0c0(0x158)]===_0x4e1aa6))==null?void 0x0:_0xec96d8[_0x20d0c0(0x282)])??Number(_0x4e1aa6),_0x396010=_0x1d4923(_0xb20127);_0x396010&&_0x59ce02(_0x396010);}})]}),_0x47d9d4('div',{'className':_0x28993e(0x29e),'children':[_0x5d3079(_0x28993e(0x2fa),{'className':_0x28993e(0x21a),'children':_0x205a11['t'](_0x28993e(0x33e))}),_0x5d3079(_0x4012a0,{'values':_0x19af4f,'minColumns':_0x22e004(_0x46b6da),'parsePastedText':_0x3875a5,'onChange':_0x59ce02})]}),_0x37c32e&&_0x5d3079(_0x28993e(0x2fa),{'className':'univer-text-xs\x20univer-text-red-600','children':_0x37c32e}),_0x47d9d4(_0x28993e(0x2fa),{'className':_0x28993e(0x1b7),'children':[_0x5d01fd[_0x28993e(0x2f8)]&&_0x5d3079(_0x4c36c3,{'type':'button','variant':'default','onClick':_0x5d01fd[_0x28993e(0x2f8)],'children':_0x205a11['t'](_0x28993e(0x230))}),_0x5d3079(_0x4c36c3,{'type':_0x28993e(0x2b6),'variant':'primary','onClick':async()=>{const _0x195ca4=_0x28993e;var _0x5c8ed0;let _0x9ffe15=_0x5deac1({'optionId':_0x4baba5,'values':_0x19af4f});if(!_0x9ffe15['ok']){_0x47abd8(_0x3021db[_0x9ffe15[_0x195ca4(0x15d)][_0x195ca4(0x333)]]);return;}if(!await _0x8b8fc5['executeCommand'](_0x12db70['id'],Vr(_0x5d01fd[_0x195ca4(0x2d5)],_0x9ffe15[_0x195ca4(0x22b)][_0x195ca4(0x282)],_0x9ffe15[_0x195ca4(0x22b)][_0x195ca4(0x2f7)],_0x9ffe15[_0x195ca4(0x22b)][_0x195ca4(0x19a)]))){_0x47abd8(_0x205a11['t'](_0x195ca4(0x344)));return;}_0x47abd8(null),(_0x5c8ed0=_0x5d01fd[_0x195ca4(0x25d)])==null||_0x5c8ed0['call'](_0x5d01fd);},'children':_0x205a11['t'](_0x28993e(0x2ca))})]})]});}let Ur=class extends _0x104147{constructor(_0x573948){const _0x33a189=_0x51c089;super(),this[_0x33a189(0x2ed)]=_0x573948,this[_0x33a189(0x24b)]();}[_0x51c089(0x24b)](){const _0x4f66b5=_0x51c089;this[_0x4f66b5(0x1a1)](this[_0x4f66b5(0x2ed)][_0x4f66b5(0x366)](tr,cr)),this[_0x4f66b5(0x1a1)](this[_0x4f66b5(0x2ed)][_0x4f66b5(0x366)](Qn,$n)),this[_0x4f66b5(0x1a1)](this[_0x4f66b5(0x2ed)][_0x4f66b5(0x366)](_0x570d66,Hr)),this[_0x4f66b5(0x1a1)](this[_0x4f66b5(0x2ed)][_0x4f66b5(0x366)](Kn,Yn));}};Ur=H([V(0x0,_0x3771e8(_0x2491b1))],Ur);var Wr=class extends _0x528148{constructor(_0x476318,_0xd4092c){const _0x330acc=_0x51c089;super(_0x476318,_0xd4092c),B(this,_0x330acc(0x2f0),void 0x0),B(this,_0x330acc(0x25a),void 0x0),this['_element']=_0xd4092c[_0x330acc(0x21e)],this['_frameStyle']=_0xd4092c[_0x330acc(0x296)],this[_0x330acc(0x2d3)]();}['updateElement'](_0x1d9c30){const _0x562af1=_0x51c089;this[_0x562af1(0x2f0)]=_0x1d9c30,this['makeDirty'](!0x0);}[_0x51c089(0x211)](_0x57d7fd){const _0xebbe7d=_0x51c089;Kr(this['_frameStyle'],_0x57d7fd)||(this[_0xebbe7d(0x25a)]=_0x57d7fd,this[_0xebbe7d(0x1ca)](!0x0));}['getElement'](){return this['_element'];}[_0x51c089(0x2de)](){const _0x13b44f=_0x51c089;return this[_0x13b44f(0x25a)];}['changeChartSource'](_0x51e454){const _0x2e5ee4=_0x51c089;this[_0x2e5ee4(0x22f)]??(this['_native']=document[_0x2e5ee4(0x2b7)](_0x2e5ee4(0x190)),this['_native'][_0x2e5ee4(0x24e)]='anonymous'),this[_0x2e5ee4(0x2d3)](),this['_native'][_0x2e5ee4(0x223)]=_0x51e454;}[_0x51c089(0x2b9)](_0x2aec0d,_0x4b8d0a,_0x45a675=this[_0x51c089(0x27e)],_0x2f1e22=this[_0x51c089(0x2bb)]){const _0x4a082f=_0x51c089;let _0x34ece7=this[_0x4a082f(0x25a)],_0x414602=mr({'width':_0x45a675,'height':_0x2f1e22},_0x34ece7);_0x2aec0d[_0x4a082f(0x16f)](),_0x2aec0d[_0x4a082f(0x1e6)](-_0x45a675/0x2,-_0x2f1e22/0x2),Gr(_0x2aec0d,0x0,0x0,_0x45a675,_0x2f1e22,_0x34ece7['radius']),_0x2aec0d[_0x4a082f(0x377)]=_0x34ece7[_0x4a082f(0x290)],_0x2aec0d['fill'](),_0x2aec0d[_0x4a082f(0x239)](),this[_0x4a082f(0x2e1)](_0x2aec0d,_0x45a675,_0x2f1e22,_0x414602,_0x34ece7),this[_0x4a082f(0x1d9)](_0x2aec0d,_0x45a675,_0x2f1e22,_0x34ece7);}[_0x51c089(0x2e1)](_0xa86c6d,_0x41fa2b,_0x5d3072,_0x3c75d1,_0x32331a){const _0x40d0a5=_0x51c089;var _0x2a2bba;!((_0x2a2bba=this[_0x40d0a5(0x22f)])!=null&&_0x2a2bba['complete'])||this[_0x40d0a5(0x22f)][_0x40d0a5(0x287)]<=0x0||this[_0x40d0a5(0x22f)][_0x40d0a5(0x1bf)]<=0x0||(_0xa86c6d[_0x40d0a5(0x16f)](),_0xa86c6d[_0x40d0a5(0x1e6)](-_0x41fa2b/0x2,-_0x5d3072/0x2),Gr(_0xa86c6d,_0x3c75d1[_0x40d0a5(0x1e1)],_0x3c75d1['top'],_0x3c75d1['width'],_0x3c75d1[_0x40d0a5(0x2bb)],Math[_0x40d0a5(0x334)](0x0,_0x32331a['radius']-_0x32331a[_0x40d0a5(0x31e)])),_0xa86c6d['clip'](),_0xa86c6d[_0x40d0a5(0x228)](this[_0x40d0a5(0x22f)],_0x3c75d1[_0x40d0a5(0x1e1)],_0x3c75d1[_0x40d0a5(0x1ff)],_0x3c75d1[_0x40d0a5(0x27e)],_0x3c75d1[_0x40d0a5(0x2bb)]),_0xa86c6d[_0x40d0a5(0x239)]());}[_0x51c089(0x1d9)](_0x1aeaa5,_0x3bcdb6,_0x4a2109,_0x1dae10){const _0xcc9ca4=_0x51c089;if(_0x1dae10[_0xcc9ca4(0x31e)]<=0x0)return;let _0x564ac8=hr({'width':_0x3bcdb6,'height':_0x4a2109},_0x1dae10);_0x1aeaa5[_0xcc9ca4(0x16f)](),_0x1aeaa5[_0xcc9ca4(0x1e6)](-_0x3bcdb6/0x2,-_0x4a2109/0x2),Gr(_0x1aeaa5,_0x564ac8[_0xcc9ca4(0x1e1)],_0x564ac8[_0xcc9ca4(0x1ff)],_0x564ac8[_0xcc9ca4(0x27e)],_0x564ac8['height'],_0x564ac8[_0xcc9ca4(0x25e)]),_0x1aeaa5[_0xcc9ca4(0x275)]=_0x1dae10[_0xcc9ca4(0x376)],_0x1aeaa5[_0xcc9ca4(0x2ba)]=_0x1dae10[_0xcc9ca4(0x31e)],_0x1aeaa5[_0xcc9ca4(0x376)](),_0x1aeaa5[_0xcc9ca4(0x239)]();}[_0x51c089(0x1e5)](){const _0x172b90=_0x51c089;var _0x2df7ae;let _0x35b501=(_0x2df7ae=this[_0x172b90(0x235)]())==null?void 0x0:_0x2df7ae[_0x172b90(0x338)];_0x35b501&&(_0x35b501['makeDirty'](!0x0),_0x35b501[_0x172b90(0x252)](),_0x35b501[_0x172b90(0x361)][_0x172b90(0x176)](this[_0x172b90(0x292)]));}[_0x51c089(0x2d3)](){const _0x2c253e=_0x51c089;this[_0x2c253e(0x22f)]&&(this[_0x2c253e(0x22f)]['onload']=()=>{const _0xd5b55d=_0x2c253e;this[_0xd5b55d(0x1e5)]();},this[_0x2c253e(0x22f)][_0x2c253e(0x316)]=()=>{const _0x461f5b=_0x2c253e;this[_0x461f5b(0x1e5)]();});}};function Gr(_0x3412c5,_0x26c844,_0x4ddad4,_0x153b9c,_0x2bb542,_0x2bbaea){const _0x7bf954=_0x51c089;let _0x2fe7e2=Math[_0x7bf954(0x20a)](_0x2bbaea||0x0,_0x153b9c/0x2,_0x2bb542/0x2);if(_0x3412c5[_0x7bf954(0x233)](),!_0x2fe7e2){_0x3412c5[_0x7bf954(0x276)](_0x26c844,_0x4ddad4,_0x153b9c,_0x2bb542),_0x3412c5[_0x7bf954(0x178)]();return;}_0x3412c5[_0x7bf954(0x163)](_0x26c844+_0x2fe7e2,_0x4ddad4),_0x3412c5[_0x7bf954(0x17c)](_0x26c844+_0x153b9c-_0x2fe7e2,_0x4ddad4),_0x3412c5[_0x7bf954(0x271)](_0x26c844+_0x153b9c-_0x2fe7e2,_0x4ddad4+_0x2fe7e2,_0x2fe7e2,Math['PI']*0x3/0x2,0x0,!0x1),_0x3412c5['lineTo'](_0x26c844+_0x153b9c,_0x4ddad4+_0x2bb542-_0x2fe7e2),_0x3412c5[_0x7bf954(0x271)](_0x26c844+_0x153b9c-_0x2fe7e2,_0x4ddad4+_0x2bb542-_0x2fe7e2,_0x2fe7e2,0x0,Math['PI']/0x2,!0x1),_0x3412c5[_0x7bf954(0x17c)](_0x26c844+_0x2fe7e2,_0x4ddad4+_0x2bb542),_0x3412c5['arc'](_0x26c844+_0x2fe7e2,_0x4ddad4+_0x2bb542-_0x2fe7e2,_0x2fe7e2,Math['PI']/0x2,Math['PI'],!0x1),_0x3412c5['lineTo'](_0x26c844,_0x4ddad4+_0x2fe7e2),_0x3412c5[_0x7bf954(0x271)](_0x26c844+_0x2fe7e2,_0x4ddad4+_0x2fe7e2,_0x2fe7e2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3412c5['closePath']();}function Kr(_0x41affd,_0x17c220){const _0x103bc3=_0x51c089;return _0x41affd[_0x103bc3(0x290)]===_0x17c220[_0x103bc3(0x290)]&&_0x41affd[_0x103bc3(0x376)]===_0x17c220['stroke']&&_0x41affd[_0x103bc3(0x31e)]===_0x17c220[_0x103bc3(0x31e)]&&_0x41affd[_0x103bc3(0x25e)]===_0x17c220[_0x103bc3(0x25e)];}function qr(_0x2422aa){const _0xaf9d57=_0x51c089;let {element:_0x4be33c}=_0x2422aa[_0xaf9d57(0x209)];return _0x4be33c[_0xaf9d57(0x19c)]===_0x2c3774[_0xaf9d57(0x286)]?_0x4be33c:null;}let Z=class{constructor(_0x2173d3,_0x384f43,_0x2a9e7d,_0x2b2e3f){const _0x34fcf4=_0x51c089;this[_0x34fcf4(0x2da)]=_0x2173d3,this[_0x34fcf4(0x241)]=_0x384f43,this[_0x34fcf4(0x30f)]=_0x2a9e7d,this[_0x34fcf4(0x342)]=_0x2b2e3f,B(this,'name',_0x34fcf4(0x343)),B(this,_0x34fcf4(0x318),new WeakMap());}[_0x51c089(0x32f)](_0x1db864){const _0x49d837=_0x51c089;let _0x47e598=qr(_0x1db864);if(!_0x47e598)return null;let _0x539d69=Math['max'](0x1,_0x1db864[_0x49d837(0x22c)][_0x49d837(0x27e)]),_0x4fecf2=Math['max'](0x1,_0x1db864[_0x49d837(0x22c)]['height']),_0x288063=new Wr(_0x1db864['key'],{'url':_0x49d837(0x193),'left':_0x1db864['bounds'][_0x49d837(0x1e1)],'top':_0x1db864['bounds'][_0x49d837(0x1ff)],'width':_0x539d69,'height':_0x4fecf2,'angle':_0x1db864[_0x49d837(0x22c)]['angle'],'flipX':_0x1db864[_0x49d837(0x22c)][_0x49d837(0x2b8)],'flipY':_0x1db864[_0x49d837(0x22c)][_0x49d837(0x270)],'zIndex':_0x1db864[_0x49d837(0x165)],'visible':_0x47e598[_0x49d837(0x30b)]!==!0x1,'evented':!0x0,'forceRender':!0x0,'element':_0x47e598,'frameStyle':this[_0x49d837(0x354)](_0x1db864[_0x49d837(0x2cb)],_0x47e598)});return this[_0x49d837(0x21b)](_0x288063,this[_0x49d837(0x1a2)](_0x1db864[_0x49d837(0x2cb)],_0x288063),_0x1db864['unitId']),_0x288063;}[_0x51c089(0x304)](_0xcec13e,_0x2d016f){const _0x1aeaea=_0x51c089;var _0x431dab;if(!(_0xcec13e instanceof Wr))return!0x1;let _0x95ca2f=qr(_0x2d016f);return _0x95ca2f?(_0x2d016f['preserveTransform']||_0xcec13e[_0x1aeaea(0x31a)](_0x2d016f[_0x1aeaea(0x22c)]),_0xcec13e[_0x1aeaea(0x30d)](_0x95ca2f),this['_updateFrameStyle'](_0x2d016f[_0x1aeaea(0x2cb)],_0xcec13e),(_0x431dab=this['_snapshotRefreshers'][_0x1aeaea(0x1da)](_0xcec13e))==null||_0x431dab(),!0x0):!0x1;}[_0x51c089(0x21b)](_0x5e7fb1,_0x5f5df9,_0x23c507){const _0x29117f=_0x51c089;if(!_0x5f5df9)return;let _0xc059f2=null,_0x47ef77=null,_0x1a6af8=!0x1,_0x2ccbc4=_0x2e469e=>{const _0x56f4f8=_0x3703;if(_0x47ef77!==_0x2e469e){if(_0xc059f2==null||_0xc059f2[_0x56f4f8(0x34a)](),_0xc059f2=null,_0x47ef77=_0x2e469e,_0x2e469e['status']===_0x56f4f8(0x308)&&_0x2e469e[_0x56f4f8(0x2f1)]){_0x5e7fb1[_0x56f4f8(0x265)](_0x2e469e[_0x56f4f8(0x2f1)]);return;}_0x2e469e[_0x56f4f8(0x1f8)]===_0x56f4f8(0x23b)&&(_0xc059f2=this['_snapshotService'][_0x56f4f8(0x184)][_0x56f4f8(0x1f6)](_0x327a49=>{const _0x1fa4ea=_0x56f4f8;if(_0x327a49!==_0x2e469e||_0x327a49[_0x1fa4ea(0x1f8)]!==_0x1fa4ea(0x308)||!_0x327a49['dataUrl']){if(_0x327a49===_0x2e469e&&_0x327a49[_0x1fa4ea(0x1f8)]===_0x1fa4ea(0x34c)&&!_0x1a6af8){_0x1a6af8=!0x0;let _0x55ad04=this[_0x1fa4ea(0x1a2)](_0x23c507,_0x5e7fb1);_0x55ad04&&_0x2ccbc4(_0x55ad04);}return;}_0x5e7fb1['changeChartSource'](_0x327a49[_0x1fa4ea(0x2f1)]),_0xc059f2==null||_0xc059f2[_0x1fa4ea(0x34a)](),_0xc059f2=null;}));}};_0x2ccbc4(_0x5f5df9);let _0x461c3c=()=>{const _0x3bcfe3=_0x3703;_0x1a6af8=!0x1;let _0x52e711=this[_0x3bcfe3(0x1a2)](_0x23c507,_0x5e7fb1);_0x52e711&&_0x2ccbc4(_0x52e711);};this['_snapshotRefreshers'][_0x29117f(0x212)](_0x5e7fb1,_0x461c3c);let _0x265b2f=this[_0x29117f(0x241)][_0x29117f(0x262)][_0x29117f(0x1f6)](_0x54ed63=>{const _0x4920f0=_0x29117f;_0x54ed63[_0x4920f0(0x2cb)]===_0x23c507&&_0x54ed63[_0x4920f0(0x161)]===_0x5e7fb1[_0x4920f0(0x2a6)]()[_0x4920f0(0x161)]&&_0x461c3c();});_0x5e7fb1[_0x29117f(0x203)][_0x29117f(0x232)](()=>{const _0x431fb3=_0x29117f;_0xc059f2==null||_0xc059f2[_0x431fb3(0x34a)](),_0x265b2f['unsubscribe'](),this[_0x431fb3(0x318)][_0x431fb3(0x345)](_0x5e7fb1);});}[_0x51c089(0x1a2)](_0x406353,_0x314cd6){const _0x48006b=_0x51c089;let _0x35552f=this['_updateFrameStyle'](_0x406353,_0x314cd6),_0x52e484=mr({'width':Math[_0x48006b(0x334)](0x1,_0x314cd6[_0x48006b(0x27e)]),'height':Math['max'](0x1,_0x314cd6[_0x48006b(0x2bb)])},_0x35552f);return this[_0x48006b(0x241)][_0x48006b(0x305)]({'unitId':_0x406353,'chartId':_0x314cd6['getElement']()[_0x48006b(0x161)],'width':_0x52e484['width'],'height':_0x52e484[_0x48006b(0x2bb)],'mode':'main'});}[_0x51c089(0x2dd)](_0x25cb33,_0x5a4d7e){const _0x28fcfc=_0x51c089;let _0x497125=this[_0x28fcfc(0x354)](_0x25cb33,_0x5a4d7e['getElement']());return _0x5a4d7e[_0x28fcfc(0x211)](_0x497125),_0x497125;}[_0x51c089(0x354)](_0x372116,_0x1afdbf){const _0x4785c8=_0x51c089;var _0x1f81b4;let _0x457218=(_0x1f81b4=this[_0x4785c8(0x30f)][_0x4785c8(0x1b1)](_0x372116,_0x1afdbf[_0x4785c8(0x161)]))==null?void 0x0:_0x1f81b4[_0x4785c8(0x19a)];return pr({'chartStyle':_0x457218,'chartElement':_0x1afdbf,'hostFill':_0x457218?this[_0x4785c8(0x342)][_0x4785c8(0x177)](_0x457218)[_0x4785c8(0x290)]:void 0x0,'isDarkMode':this[_0x4785c8(0x2da)][_0x4785c8(0x263)]});}};Z=H([V(0x0,_0x3771e8(_0x656a3)),V(0x1,_0x3771e8(J)),V(0x2,_0x3771e8(_0x2df296)),V(0x3,_0x3771e8(q))],Z);function Jr(_0x1b3749){const _0x23246c=_0x51c089;return _0x1b3749['type']===_0x2c3774[_0x23246c(0x286)];}let Q=class{constructor(_0x1b0c31){const _0x2d610f=_0x51c089;this[_0x2d610f(0x30f)]=_0x1b0c31,B(this,_0x2d610f(0x2f3),_0x2d610f(0x248));}[_0x51c089(0x1dd)](_0x10b837){const _0x4a5708=_0x51c089;let _0x1af3ca={},_0x8afa0c={},_0x3c6216={};return _0x10b837[_0x4a5708(0x324)][_0x4a5708(0x1ae)](_0x30922d=>{const _0x22d69a=_0x4a5708;if(!Jr(_0x30922d))return;let _0x284a74=this[_0x22d69a(0x30f)][_0x22d69a(0x1b1)](_0x10b837[_0x22d69a(0x2cb)],_0x30922d[_0x22d69a(0x161)]),_0x1a829c=_0x284a74?this[_0x22d69a(0x30f)][_0x22d69a(0x2ef)](_0x10b837['unitId'],_0x284a74['dataSourceId']):void 0x0;!_0x284a74||!_0x1a829c||(_0x1af3ca[_0x284a74['id']]=_0x3e2f9c[_0x22d69a(0x23e)](_0x284a74),_0x8afa0c[_0x1a829c['id']]=_0x3e2f9c[_0x22d69a(0x23e)](_0x1a829c),_0x3c6216[_0x30922d['id']]=_0x284a74['id']);}),Object[_0x4a5708(0x1d3)](_0x1af3ca)[_0x4a5708(0x19f)]===0x0?null:{'charts':_0x1af3ca,'dataSources':_0x8afa0c,'chartIdByElementId':_0x3c6216};}[_0x51c089(0x26a)](_0x582072){const _0x288f8d=_0x51c089;if(!Yr(_0x582072['payload']))return null;let _0x2f9d24=_0x582072['payload'],_0x23f78d=new Map();_0x582072['elementIdMap'][_0x288f8d(0x1ae)]((_0x370885,_0x1ece07)=>{const _0x3ddd88=_0x288f8d;_0x23f78d[_0x3ddd88(0x212)](_0x370885,_0x1ece07);});let _0x29411e=new Map(),_0x3377b7=new Map(),_0x9c9170=_0x582072[_0x288f8d(0x324)]['map'](_0x2d55d4=>{const _0xb08dba=_0x288f8d;if(!Jr(_0x2d55d4))return _0x2d55d4;let _0x1eaf20=_0x23f78d[_0xb08dba(0x1da)](_0x2d55d4['id']),_0x57bcc1=_0x1eaf20?_0x2f9d24[_0xb08dba(0x284)][_0x1eaf20]:void 0x0;if(!_0x57bcc1||!_0x2f9d24['charts'][_0x57bcc1])return _0x2d55d4;let _0x58fd17=_0x29411e[_0xb08dba(0x1da)](_0x57bcc1);return _0x58fd17||(_0x58fd17=_0x4b902b(0x6),_0x29411e[_0xb08dba(0x212)](_0x57bcc1,_0x58fd17)),{..._0x2d55d4,'chartId':_0x58fd17};});_0x29411e[_0x288f8d(0x1ae)]((_0x29f86a,_0x4dcf4b)=>{const _0x401f83=_0x288f8d;var _0x13e272;let _0x68d12c=(_0x13e272=_0x2f9d24[_0x401f83(0x1a4)][_0x4dcf4b])==null?void 0x0:_0x13e272[_0x401f83(0x183)];_0x68d12c&&!_0x3377b7[_0x401f83(0x297)](_0x68d12c)&&_0x3377b7[_0x401f83(0x212)](_0x68d12c,_0x4b902b(0x6));});let _0x4c0f51=[];_0x3377b7['forEach']((_0x4a183c,_0x25f1af)=>{const _0x528421=_0x288f8d;let _0x26d5c4=_0x2f9d24[_0x528421(0x34b)][_0x25f1af];_0x26d5c4&&_0x4c0f51[_0x528421(0x226)]({..._0x3e2f9c['deepClone'](_0x26d5c4),'id':_0x4a183c,'values':_0x26d5c4[_0x528421(0x2f7)][_0x528421(0x313)](_0x2c8af2=>[..._0x2c8af2])});});let _0x4a9c8f=[];return _0x29411e[_0x288f8d(0x1ae)]((_0x1e8083,_0x500136)=>{const _0xd4706c=_0x288f8d;let _0x379c90=_0x2f9d24[_0xd4706c(0x1a4)][_0x500136],_0x2fa0f8=_0x379c90?_0x3377b7[_0xd4706c(0x1da)](_0x379c90[_0xd4706c(0x183)]):void 0x0;!_0x379c90||!_0x2fa0f8||_0x4a9c8f[_0xd4706c(0x226)]({..._0x3e2f9c['deepClone'](_0x379c90),'id':_0x1e8083,'dataSourceId':_0x2fa0f8});}),_0x4a9c8f[_0x288f8d(0x19f)]===0x0?null:{'elements':_0x9c9170,'redoMutations':[..._0x4c0f51[_0x288f8d(0x313)](_0x37c8d1=>({'id':_0x2254a1['id'],'params':{'unitId':_0x582072[_0x288f8d(0x27d)],'dataSource':_0x37c8d1}})),..._0x4a9c8f[_0x288f8d(0x313)](_0x18abe0=>({'id':_0x5612b2['id'],'params':{'unitId':_0x582072['targetUnitId'],'chart':_0x18abe0}}))],'undoMutations':[..._0x4a9c8f[_0x288f8d(0x313)](_0x5bfd68=>({'id':_0x5eebba['id'],'params':{'unitId':_0x582072[_0x288f8d(0x27d)],'chartId':_0x5bfd68['id']}})),..._0x4c0f51[_0x288f8d(0x313)](_0x5161ca=>({'id':_0x1f9a0e['id'],'params':{'unitId':_0x582072['targetUnitId'],'dataSourceId':_0x5161ca['id']}}))]};}};Q=H([V(0x0,_0x3771e8(_0x2df296))],Q);function Yr(_0x4a8cde){const _0x42066a=_0x51c089;if(!_0x4a8cde||typeof _0x4a8cde!=_0x42066a(0x2d0))return!0x1;let _0x141741=_0x4a8cde;return!!_0x141741[_0x42066a(0x1a4)]&&!!_0x141741['dataSources']&&!!_0x141741[_0x42066a(0x284)];}const Xr=_0x51c089(0x254);let $=class extends _0x3e0ff2{constructor(_0x5f05f5=Rn,_0x1d21df,_0x1acd2e,_0x553f7b){const _0x584a48=_0x51c089;super(),this['_config']=_0x5f05f5,this[_0x584a48(0x28a)]=_0x1d21df,this['_configService']=_0x1acd2e,this[_0x584a48(0x2a2)]=_0x553f7b,B(this,_0x584a48(0x1d5),null);let {..._0x1b97d9}=_0x13a383({},Rn,this[_0x584a48(0x1f3)]);this[_0x584a48(0x2ab)]['setConfig'](Ln,_0x1b97d9);}[_0x51c089(0x321)](){const _0x100073=_0x51c089;this[_0x100073(0x1a1)](this[_0x100073(0x28a)][_0x100073(0x1da)](_0x1c7a44)[_0x100073(0x273)](er)),[[q],[J],[W,{'useClass':Gn}],[G],[U],[X],[Z],[Q],[Y],[Ur]][_0x100073(0x1ae)](_0x17cb45=>this['_injector'][_0x100073(0x33b)](_0x17cb45)),_0xaee2e4(this[_0x100073(0x28a)],[[q],[J],[W],[G],[U],[X]]),this[_0x100073(0x28a)][_0x100073(0x1da)](Ur);let _0x53b90f=this[_0x100073(0x28a)]['get'](Z);this[_0x100073(0x1d5)]=_0x53b90f,this[_0x100073(0x314)](_0x53b90f),this[_0x100073(0x1a1)](_0x5f487e(()=>{const _0x3e81bd=_0x100073;this[_0x3e81bd(0x1de)](_0x53b90f),this[_0x3e81bd(0x1d5)]=null;}));let _0x14bc78=this['_injector'][_0x100073(0x1da)](_0x378237);this['disposeWithMe'](_0x14bc78['registerAdapter'](this[_0x100073(0x28a)][_0x100073(0x1da)](Q))),this[_0x100073(0x1a1)](this['_injector']['get'](Y));}['onReady'](){const _0x38ae59=_0x51c089;this[_0x38ae59(0x1a1)](this[_0x38ae59(0x2a2)][_0x38ae59(0x1a6)](_0x5a00fe[_0x38ae59(0x358)],Zn)),this[_0x38ae59(0x1a1)](this[_0x38ae59(0x2a2)][_0x38ae59(0x1a6)](_0x5a00fe['UNIVER_BOARD'],Er)),this['disposeWithMe'](this[_0x38ae59(0x2a2)][_0x38ae59(0x1a6)](_0x5a00fe['UNIVER_BOARD'],vr)),this['disposeWithMe'](this[_0x38ae59(0x2a2)][_0x38ae59(0x1a6)](_0x5a00fe['UNIVER_BOARD'],Xn));}[_0x51c089(0x314)](_0x3ce827){const _0x26c45a=_0x51c089;var _0x8a2b31,_0x2d4a5c;let _0x63e31a=this[_0x26c45a(0x280)](),_0x2385b0=_0x63e31a[_0x26c45a(0x16a)]??[];_0x2385b0[_0x26c45a(0x29c)](_0x3ce827)||this[_0x26c45a(0x2ab)][_0x26c45a(0x1e3)](_0x2f6a38,{..._0x63e31a,'additionalRenderAdapters':[..._0x2385b0,_0x3ce827],'toolbar':{..._0x63e31a['toolbar'],'tools':{...(_0x8a2b31=_0x63e31a[_0x26c45a(0x1eb)])==null?void 0x0:_0x8a2b31[_0x26c45a(0x350)],[_0x26d3c3['Chart']]:Zr((_0x2d4a5c=_0x63e31a[_0x26c45a(0x1eb)])==null||(_0x2d4a5c=_0x2d4a5c['tools'])==null?void 0x0:_0x2d4a5c[_0x26d3c3[_0x26c45a(0x286)]])}}});}['_removeRenderAdapter'](_0x5bd759){const _0x4ce50d=_0x51c089;var _0x4262af;let _0x18c8cf=this['_getBoardsUIConfig'](),_0x574bda=(_0x4262af=_0x18c8cf['additionalRenderAdapters'])==null?void 0x0:_0x4262af[_0x4ce50d(0x1f0)](_0x3ec7fd=>_0x3ec7fd!==_0x5bd759);this[_0x4ce50d(0x2ab)][_0x4ce50d(0x1e3)](_0x2f6a38,{..._0x18c8cf,'additionalRenderAdapters':_0x574bda});}[_0x51c089(0x280)](){const _0x1fc0a2=_0x51c089;return this[_0x1fc0a2(0x2ab)][_0x1fc0a2(0x312)](_0x2f6a38)??{};}};B($,'pluginName',Xr),B($,'packageName',Dr),B($,_0x51c089(0x300),Or),B($,'type',_0x5a00fe[_0x51c089(0x358)]),$=H([_0x37617c(_0x2e2a1d,_0x395f30,_0x4f4de7,_0x222884,_0x3d50e1,_0x22ddb8),V(0x1,_0x3771e8(_0x571342)),V(0x2,_0x2c7746),V(0x3,_0x4b4297)],$);function Zr(_0x13335c){const _0x21be77=_0x51c089;return _0x13335c===!0x1?!0x1:typeof _0x13335c!=_0x21be77(0x2d0)||{..._0x13335c,'enabled':_0x13335c[_0x21be77(0x1ee)]??!0x0};}export{Ln as BOARDS_CHART_UI_PLUGIN_CONFIG_KEY,Xr as BOARDS_CHART_UI_PLUGIN_NAME,Cr as BOARD_CHART_SNAPSHOT_BORDER_WIDTH,Q as BoardChartClipboardAdapter,G as BoardChartDataEditService,U as BoardChartEditSessionService,Xn as BoardChartFloatingToolbarRenderController,Zn as BoardChartOpenEditController,vr as BoardChartPanelController,Z as BoardChartRenderAdapter,q as BoardChartRenderService,Er as BoardChartSelectionController,Y as BoardChartSnapshotRefreshController,J as BoardChartSnapshotRenderService,Gn as BoardChartUIService,yr as BoardDomChartHost,Sr as IBoardChartSnapshotRendererService,W as IBoardChartUIService,$ as UniverBoardsChartUIPlugin,Zr as enableChartTool,wr as resolveBoardChartSnapshotStyle};
1
+ const _0x499525=_0x30da;(function(_0x38e341,_0xfa7986){const _0x566d70=_0x30da,_0x1551a1=_0x38e341();while(!![]){try{const _0x27d56e=-parseInt(_0x566d70(0x38e))/0x1+-parseInt(_0x566d70(0x220))/0x2+-parseInt(_0x566d70(0x2de))/0x3*(-parseInt(_0x566d70(0x31f))/0x4)+parseInt(_0x566d70(0x26e))/0x5+-parseInt(_0x566d70(0x288))/0x6+parseInt(_0x566d70(0x30e))/0x7+parseInt(_0x566d70(0x323))/0x8*(parseInt(_0x566d70(0x32e))/0x9);if(_0x27d56e===_0xfa7986)break;else _0x1551a1['push'](_0x1551a1['shift']());}catch(_0x13a723){_0x1551a1['push'](_0x1551a1['shift']());}}}(_0x1a29,0x6e640));import{BoardElementType as _0xdc726d,BoardToolType as _0x354b3a,IBoardElementService as _0x312cb0,InsertBoardChartCommand as _0x3946e8,UniverBoardsPlugin as _0x57b6c8,resolveBoardElementWorldBounds as _0x477c18}from'@univerjs-pro/boards';import{BOARDS_UI_PLUGIN_CONFIG_KEY as _0x31c398,BOARD_INSERT_CHART_PANEL_COMPONENT as _0x5d30bd,BoardCanvasPopManagerService as _0x211d45,BoardDeleteSelectionOperation as _0x567928,BoardDomLayerService as _0x128dd4,BoardInteractionSurfaceService as _0x1292ec,IBoardClipboardResourceAdapterService as _0x44a27a,IBoardElementStateService as _0x393ad4,IBoardSidePanelService as _0x30f374,IBoardUIStateService as _0x136685,UniverBoardsUIPlugin as _0x4548ff,getBoardElementRenderObjectKey as _0x53e8ae,resolveRotatedBoardObjectAnchorBound as _0x4386fb}from'@univerjs-pro/boards-ui';import{CommandType as _0x45a710,DependentOn as _0x3feff0,Disposable as _0x213704,DisposableCollection as _0x1ae3d6,ICommandService as _0xa6f2d7,IConfigService as _0x35e311,IUniverInstanceService as _0x1cc825,Inject as _0x496119,Injector as _0x11a7be,LocaleService as _0x4cc5cd,Optional as _0x202b18,Plugin as _0x3b30b9,RxDisposable as _0x3f8dd1,ThemeService as _0x2e9a52,Tools as _0x4d4a69,UniverInstanceType as _0x361416,createIdentifier as _0x4ed68c,generateRandomId as _0x131eab,merge as _0x9d3953,toDisposable as _0xdc18c3,touchDependencies as _0x580124}from'@univerjs/core';import{BehaviorSubject as _0x228f45,combineLatest as _0x5e1c78,filter as _0x405dcd,fromEvent as _0x52e2b8,merge as _0xdfa41a,takeUntil as _0x35fa67,throttleTime as _0xa0c0cb}from'rxjs';import{BoardChartConfigAdapter as _0x6807e4,BoardChartModelService as _0x37b64c,BoardChartResourceService as _0x2cd96e,ChangeBoardChartDataSourceCommand as _0xf1aeb9,DEFAULT_BOARD_CHART_VALUES as _0x3cdf2b,RemoveBoardChartDataSourceMutation as _0x2482df,RemoveBoardChartSnapshotMutation as _0x5b070f,SetBoardChartDataSourceMutation as _0x3a8c3f,SetBoardChartSnapshotMutation as _0x25379f,UniverBoardsChartPlugin as _0x1a1003,UpdateBoardChartConfigCommand as _0x64abad}from'@univerjs-pro/boards-chart';import{CHART_ELEMENT_FLOAT_MENU_COMPONENT as _0x16dc10,CHART_TYPE_CATALOG as _0xcd7567,ChartAxisSection as _0x2d9afd,ChartCommonDataMappingSection as _0x4d1eed,ChartEditBlockTitle as _0x41b488,ChartEditPanel as _0x589747,ChartEditPanelSection as _0x5b8450,ChartEditPanelTab as _0x203d3b,ChartEditPanelTabs as _0x39cbb6,ChartEditorCapability as _0x4943ee,ChartEditorProvider as _0x33a395,ChartElementFloatMenuAdapterRegistry as _0x290800,ChartFunnelStyleSection as _0x562714,ChartGradientFillField as _0x1f745c,ChartGridlinesAndTicksSection as _0x3f6402,ChartHeatmapStyleSection as _0x11f289,ChartHostAdapter as _0x19ae32,ChartImageExportService as _0x133bcd,ChartIndicatorLineSection as _0x33e4a9,ChartInlineTableEditor as _0x46ec38,ChartLegendSection as _0x3c32af,ChartLineAndAreaSection as _0x2b1e2d,ChartNumberFormatTextField as _0x540a5a,ChartParetoSeriesSection as _0x29e8ea,ChartPieStyleSection as _0x1cec51,ChartRadarStyleSection as _0x268318,ChartReferencedDataSourceEditor as _0x2299e5,ChartRelationStyleSection as _0x4df0d1,ChartSectionAccordion as _0x4e0003,ChartSectionAccordionContent as _0x6e0864,ChartSectionAccordionItem as _0x50b71f,ChartSectionAccordionTrigger as _0x4c7dec,ChartSeriesBorderFields as _0x29f5b1,ChartSeriesDataLabelFields as _0x1338ba,ChartSeriesDataPointFields as _0x1b8135,ChartSeriesFillFields as _0x4bc933,ChartSeriesPointFields as _0x5ed9cf,ChartSeriesRightAxisField as _0x4649c6,ChartSeriesRoot as _0x5d9c1e,ChartSeriesSelector as _0x53abaa,ChartSeriesTypeField as _0x238b88,ChartSnapshotQueue as _0x33d8f8,ChartStackField as _0x496027,ChartStyleSection as _0x7de209,ChartThemeField as _0xa1e222,ChartTitlesSection as _0x3184e0,ChartTrendlineSection as _0x591f60,ChartTypeField as _0xe2b2cf,ChartTypeSpecificDataSection as _0x28acd5,ChartTypeSpecificSetupSection as _0x19773a,ChartTypeSpecificStyleSection as _0x193186,ChartUIService as _0x4830f0,ChartViewStateRegistry as _0x9541e8,ChartWaterfallSetupFields as _0x449bdd,ChartWaterfallStyleSection as _0x32067f,ChartWordCloudMaskImageIdField as _0x479703,ChartWordCloudRepeatField as _0x2ee956,ChartWordCloudRoot as _0x1faff9,ChartWordCloudShapeField as _0x22d31f,DEFAULT_CHART_AXIS_VALUES as _0x5d23a2,DEFAULT_CHART_FUNNEL_VALUES as _0x3a9214,DEFAULT_CHART_HEATMAP_VALUES as _0x2d5ad2,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x532c13,DEFAULT_CHART_LEGEND_VALUES as _0x25a1df,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x1c37b3,DEFAULT_CHART_PARETO_VALUES as _0x244003,DEFAULT_CHART_PIE_VALUES as _0x1919ae,DEFAULT_CHART_RADAR_VALUES as _0x2f3dba,DEFAULT_CHART_RELATION_VALUES as _0x121b5c,DEFAULT_CHART_SERIES_VALUES as _0x37e1f0,DEFAULT_CHART_STYLE_VALUES as _0x37589e,DEFAULT_CHART_TITLE_VALUES as _0x1980a5,DEFAULT_CHART_TRENDLINE_VALUES as _0x161001,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x1c1b97,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x3e6462,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x4ad83a,InlineChartCreationIssueCode as _0x80d379,UniverChartUIPlugin as _0xdb8921,buildChartTypeSelectOptions as _0x58277a,chartTypeSupportsCapability as _0xfc9559,chartTypeSupportsLineAndAreaStyle as _0xe71936,createChartElementFloatMenuAdapter as _0x2f2c9b,createChartInlineStarterData as _0x11f1c1,getChartInlineTableMinColumns as _0xf4efad,resolveChartEditPanelRoute as _0x25e98d,resolveChartElementSelection as _0x378845,tryBuildInlineChartCreationPlan as _0x37314a,tryPrepareInlineChartData as _0x32e79f,useChartEditorChartType as _0x45c5bb,useChartEditorHasRightAxis as _0x3f9900,useChartTypeFieldState as _0x15c904}from'@univerjs-pro/chart-ui';import{Button as _0x5f405e,Select as _0x32964c,Separator as _0x55bdb4,borderClassName as _0x335244,clsx as _0x49e11f}from'@univerjs/design';import{DeleteIcon as _0xe5b4d2,PenIcon as _0x184bb1}from'@univerjs/icons';import{ComponentManager as _0x16fbc0,ICanvasPopupService as _0x5cf6c4,IDialogService as _0xdc88e0,useDependency as _0x11c57d,useObservable as _0x4951fb}from'@univerjs/ui';import{useEffect as _0x3d65d5,useMemo as _0x2702de,useRef as _0x1acdce,useState as _0x41a5b5}from'react';import{jsx as _0x5e799c,jsxs as _0x325495}from'react/jsx-runtime';import{CHART_HOST_DEFAULT_BORDER_COLOR as _0x327fa2,CHART_HOST_DEFAULT_BORDER_RADIUS as _0x579e99,ChartDataSourceRuntimeStatus as _0x3dd533,ChartHostRenderMode as _0xa8a587,ChartImageExportFormat as _0x2b715c,ChartThemeService as _0x1b68cc,ChartTypeBits as _0x567e7a,DataUrlImageChartHost as _0x49c6c9,IChartRenderModelManagerService as _0x41c8ae,chartBitsUtils as _0x30c895,chartTypeCanUseTrendLine as _0x1d8e32,defaultChartConfig as _0x2ca23e,isInlineChartDataSource as _0x1a9228,isReferencedChartDataSource as _0x231714,parseInlineChartTable as _0x1411e1,resolveChartRuntimeStyle as _0x1ab5cb,resolveDefaultChartHostFrameStyle as _0x4da770}from'@univerjs-pro/engine-chart';import{UniverLicensePlugin as _0x37b437}from'@univerjs-pro/license';import{IRenderManagerService as _0x143b2,Image as _0x506295,UniverRenderEnginePlugin as _0x3fbab6}from'@univerjs/engine-render';const Un=_0x499525(0x1cc),Wn={};function R(_0xa0326d){'@babel/helpers - typeof';const _0x239059=_0x499525;return R=typeof Symbol==_0x239059(0x268)&&typeof Symbol[_0x239059(0x3b1)]==_0x239059(0x2b3)?function(_0x55ac58){return typeof _0x55ac58;}:function(_0x33645a){return _0x33645a&&typeof Symbol=='function'&&_0x33645a['constructor']===Symbol&&_0x33645a!==Symbol['prototype']?'symbol':typeof _0x33645a;},R(_0xa0326d);}function Gn(_0x3b46ac,_0x31adee){const _0x150429=_0x499525;if(R(_0x3b46ac)!=_0x150429(0x293)||!_0x3b46ac)return _0x3b46ac;var _0x2b48fb=_0x3b46ac[Symbol[_0x150429(0x249)]];if(_0x2b48fb!==void 0x0){var _0x594090=_0x2b48fb[_0x150429(0x34a)](_0x3b46ac,_0x31adee||'default');if(R(_0x594090)!=_0x150429(0x293))return _0x594090;throw TypeError(_0x150429(0x2af));}return(_0x31adee===_0x150429(0x1c7)?String:Number)(_0x3b46ac);}function Kn(_0x2f528c){const _0x27bd69=_0x499525;var _0x512812=Gn(_0x2f528c,_0x27bd69(0x1c7));return R(_0x512812)==_0x27bd69(0x2b3)?_0x512812:_0x512812+'';}function z(_0x472965,_0x3a93d9,_0x5d26f4){const _0xc4d921=_0x499525;return(_0x3a93d9=Kn(_0x3a93d9))in _0x472965?Object[_0xc4d921(0x1c1)](_0x472965,_0x3a93d9,{'value':_0x5d26f4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x472965[_0x3a93d9]=_0x5d26f4,_0x472965;}function B(_0x72a892,_0x20b89b){return function(_0x46f439,_0xa20057){_0x20b89b(_0x46f439,_0xa20057,_0x72a892);};}function V(_0x3ac159,_0x43dabe,_0x4b9c4d,_0x3883fe){const _0x24fab3=_0x499525;var _0x189b05=arguments[_0x24fab3(0x315)],_0x1840d6=_0x189b05<0x3?_0x43dabe:_0x3883fe===null?_0x3883fe=Object[_0x24fab3(0x353)](_0x43dabe,_0x4b9c4d):_0x3883fe,_0x103fdc;if(typeof Reflect==_0x24fab3(0x293)&&typeof Reflect['decorate']==_0x24fab3(0x268))_0x1840d6=Reflect['decorate'](_0x3ac159,_0x43dabe,_0x4b9c4d,_0x3883fe);else{for(var _0x4ebf95=_0x3ac159[_0x24fab3(0x315)]-0x1;_0x4ebf95>=0x0;_0x4ebf95--)(_0x103fdc=_0x3ac159[_0x4ebf95])&&(_0x1840d6=(_0x189b05<0x3?_0x103fdc(_0x1840d6):_0x189b05>0x3?_0x103fdc(_0x43dabe,_0x4b9c4d,_0x1840d6):_0x103fdc(_0x43dabe,_0x4b9c4d))||_0x1840d6);}return _0x189b05>0x3&&_0x1840d6&&Object[_0x24fab3(0x1c1)](_0x43dabe,_0x4b9c4d,_0x1840d6),_0x1840d6;}function qn(_0x144e9d,_0x2fea97){const _0x101448=_0x499525;return(_0x144e9d==null?void 0x0:_0x144e9d[_0x101448(0x2e9)])===(_0x2fea97==null?void 0x0:_0x2fea97[_0x101448(0x2e9)])&&(_0x144e9d==null?void 0x0:_0x144e9d[_0x101448(0x2a1)])===(_0x2fea97==null?void 0x0:_0x2fea97[_0x101448(0x2a1)])&&(_0x144e9d==null?void 0x0:_0x144e9d[_0x101448(0x3b8)])===(_0x2fea97==null?void 0x0:_0x2fea97['titleKey'])&&(_0x144e9d==null?void 0x0:_0x144e9d[_0x101448(0x383)])===(_0x2fea97==null?void 0x0:_0x2fea97['axisId'])&&(_0x144e9d==null?void 0x0:_0x144e9d[_0x101448(0x2ba)])===(_0x2fea97==null?void 0x0:_0x2fea97[_0x101448(0x2ba)]);}function Jn(_0x3a0190,_0x5922bd){const _0x202e13=_0x499525;return(_0x3a0190==null?void 0x0:_0x3a0190[_0x202e13(0x262)])===_0x5922bd[_0x202e13(0x262)]&&_0x3a0190[_0x202e13(0x237)]===_0x5922bd['subUnitId']&&_0x3a0190[_0x202e13(0x34d)]===_0x5922bd[_0x202e13(0x34d)]&&_0x3a0190[_0x202e13(0x24c)]===_0x5922bd['chartId']&&_0x3a0190[_0x202e13(0x364)]===_0x5922bd[_0x202e13(0x364)]&&qn(_0x3a0190[_0x202e13(0x347)],_0x5922bd['route']);}function _0x30da(_0x2d81e7,_0x3ced10){_0x2d81e7=_0x2d81e7-0x192;const _0x1a29e7=_0x1a29();let _0x30daa6=_0x1a29e7[_0x2d81e7];return _0x30daa6;}let H=class extends _0x213704{constructor(_0x26a8b2,_0x4210d1){const _0x3d293c=_0x499525;super(),this[_0x3d293c(0x193)]=_0x26a8b2,this[_0x3d293c(0x1cb)]=_0x4210d1,z(this,_0x3d293c(0x2b6),new _0x228f45(null)),z(this,_0x3d293c(0x30b),this[_0x3d293c(0x2b6)][_0x3d293c(0x297)]()),this[_0x3d293c(0x2e6)](this[_0x3d293c(0x193)][_0x3d293c(0x20e)][_0x3d293c(0x1e5)](_0x4eec9f=>this[_0x3d293c(0x2f1)](_0x4eec9f))),this['disposeWithMe'](this[_0x3d293c(0x1cb)][_0x3d293c(0x374)]['subscribe'](_0x56da4e=>{const _0x3a98d7=_0x3d293c;let _0x44759f=this[_0x3a98d7(0x1b2)]();_0x44759f&&_0x56da4e[_0x3a98d7(0x243)](_0x524033=>_0x524033[_0x3a98d7(0x262)]===_0x44759f[_0x3a98d7(0x262)]&&_0x524033[_0x3a98d7(0x237)]===_0x44759f[_0x3a98d7(0x237)]&&_0x524033[_0x3a98d7(0x34d)]===_0x44759f[_0x3a98d7(0x34d)])&&this[_0x3a98d7(0x1b9)](_0x3a98d7(0x26c));}));}[_0x499525(0x211)](){const _0x259639=_0x499525;this['close'](_0x259639(0x211)),this[_0x259639(0x2b6)][_0x259639(0x1f6)](),super['dispose']();}[_0x499525(0x1b2)](){const _0x3db540=_0x499525;return this[_0x3db540(0x2b6)][_0x3db540(0x378)]();}[_0x499525(0x2a4)](_0x1550ea){const _0x24a9b8=_0x499525;let _0x14891b={..._0x1550ea};Jn(this[_0x24a9b8(0x1b2)](),_0x14891b)||this['_activeSession$'][_0x24a9b8(0x22a)](_0x14891b);}[_0x499525(0x1b9)](_0x80a4f2){const _0x3829e4=_0x499525;this['getActiveSession']()&&this[_0x3829e4(0x2b6)][_0x3829e4(0x22a)](null);}[_0x499525(0x2f1)](_0x57c227){const _0x18c4d7=_0x499525;let _0x45ca48=this[_0x18c4d7(0x1b2)]();if(!_0x45ca48)return;if(_0x57c227['isTransforming']){this[_0x18c4d7(0x1b9)](_0x18c4d7(0x2b8));return;}if(!_0x57c227[_0x18c4d7(0x281)]){this['close'](_0x18c4d7(0x294));return;}if(_0x57c227[_0x18c4d7(0x281)][_0x18c4d7(0x262)]!==_0x45ca48[_0x18c4d7(0x262)]){this[_0x18c4d7(0x1b9)](_0x18c4d7(0x294));return;}if(_0x57c227[_0x18c4d7(0x281)][_0x18c4d7(0x237)]!==_0x45ca48[_0x18c4d7(0x237)]){this['close']('pageChange');return;}if(_0x57c227[_0x18c4d7(0x35c)][_0x18c4d7(0x315)]!==0x1||_0x57c227[_0x18c4d7(0x301)]!==_0x45ca48[_0x18c4d7(0x34d)]){this['close']('selectionChange');return;}let _0x173ac9=this[_0x18c4d7(0x1cb)][_0x18c4d7(0x2ae)](_0x45ca48[_0x18c4d7(0x262)],_0x45ca48[_0x18c4d7(0x237)],_0x45ca48[_0x18c4d7(0x34d)]);(!_0x173ac9||_0x173ac9[_0x18c4d7(0x1c3)]['type']!==_0xdc726d[_0x18c4d7(0x2d4)]||_0x173ac9[_0x18c4d7(0x1c3)][_0x18c4d7(0x24c)]!==_0x45ca48['chartId'])&&this[_0x18c4d7(0x1b9)](_0x18c4d7(0x294));}};H=V([B(0x0,_0x393ad4),B(0x1,_0x312cb0)],H);const U=_0x4ed68c(_0x499525(0x1b3));let Yn=class extends _0x4830f0{constructor(_0x7e7958,_0x59ef79,_0x1f406f,_0x4a2c93){const _0x1e1808=_0x499525;super(_0x4a2c93),this[_0x1e1808(0x214)]=_0x7e7958,this[_0x1e1808(0x265)]=_0x59ef79,this[_0x1e1808(0x1be)]=_0x1f406f;}get[_0x499525(0x2eb)](){const _0x476675=_0x499525;return this[_0x476675(0x214)][_0x476675(0x2eb)];}get[_0x499525(0x2a2)](){const _0x337cba=_0x499525;return this['_modelService'][_0x337cba(0x2a2)];}get[_0x499525(0x3b4)](){const _0x4bc6a9=_0x499525;return this[_0x4bc6a9(0x265)];}[_0x499525(0x1d6)](_0x1ab00c){const _0x62001b=_0x499525;let _0x1937f5=this[_0x62001b(0x214)][_0x62001b(0x2eb)],_0x39204e=_0x1ab00c[_0x62001b(0x262)]??(_0x1937f5==null?void 0x0:_0x1937f5[_0x62001b(0x262)]),_0x111bf9=_0x1ab00c['chartId']??(_0x1937f5==null?void 0x0:_0x1937f5[_0x62001b(0x24c)]);!_0x39204e||!_0x111bf9||this[_0x62001b(0x1be)][_0x62001b(0x1f2)](_0x64abad['id'],{..._0x1ab00c,'unitId':_0x39204e,'chartId':_0x111bf9});}};Yn=V([B(0x0,_0x496119(_0x37b64c)),B(0x1,_0x496119(_0x2cd96e)),B(0x2,_0xa6f2d7),B(0x3,_0x496119(_0x9541e8))],Yn);const Xn=_0x499525(0x396);function Zn(_0x27154c){_0x27154c['stopPropagation']();}function Qn(_0x1059ba){const _0x54494e=_0x499525;let _0x2b78a2=_0x11c57d(_0xa6f2d7),_0x219da4=_0x11c57d(_0x4cc5cd),_0x3e429b=_0x11c57d(_0x37b64c),_0x27a99b=_0x11c57d(H),_0x5f3054=_0x15c904(_0x1059ba[_0x54494e(0x2cc)]),{extraProps:_0x1841fa}=_0x1059ba;return _0x325495('div',{'className':_0x49e11f(_0x54494e(0x295),_0x335244),'data-u-comp':_0x54494e(0x3ab),'role':'toolbar','onMouseDown':Zn,'onPointerDown':Zn,'children':[_0x5e799c(_0x32964c,{'aria-label':_0x219da4['t'](_0x54494e(0x29c)),'className':_0x54494e(0x35d),'value':_0x5f3054['value'],'options':_0x1059ba[_0x54494e(0x2cc)],'onChange':_0x18fedf=>{const _0x2e5e54=_0x54494e;_0x3e429b[_0x2e5e54(0x1c2)](_0x1841fa[_0x2e5e54(0x262)],_0x1841fa[_0x2e5e54(0x24c)]),_0x5f3054['setValue'](_0x18fedf);}}),_0x5e799c(_0x55bdb4,{'orientation':_0x54494e(0x21c)}),_0x5e799c(_0x5f405e,{'size':'small','variant':_0x54494e(0x2b7),'type':_0x54494e(0x390),'aria-label':_0x219da4['t']('boards-chart-ui.common.editChart'),'title':_0x219da4['t'](_0x54494e(0x20d)),'data-toolbar-item':'edit-chart','onClick':()=>{const _0x621bba=_0x54494e;_0x27a99b[_0x621bba(0x2a4)]({'chartId':_0x1841fa[_0x621bba(0x24c)],'elementId':_0x1841fa[_0x621bba(0x34d)],'source':_0x621bba(0x1a1),'subUnitId':_0x1841fa[_0x621bba(0x237)],'unitId':_0x1841fa[_0x621bba(0x262)]});},'children':_0x5e799c(_0x184bb1,{})}),_0x5e799c(_0x5f405e,{'size':_0x54494e(0x329),'variant':_0x54494e(0x2b7),'type':_0x54494e(0x390),'aria-label':_0x219da4['t'](_0x54494e(0x226)),'title':_0x219da4['t']('boards-chart-ui.common.deleteChart'),'data-toolbar-item':'delete-chart','onClick':()=>_0x2b78a2[_0x54494e(0x1f2)](_0x567928['id']),'children':_0x5e799c(_0xe5b4d2,{})})]});}function $n(_0x709337){const _0x28e243=_0x499525;let _0x277699=_0x11c57d(_0x11a7be),_0x4fc4ad=_0x11c57d(_0x1cc825),_0x4e3801=_0x11c57d(_0x4cc5cd),_0x35a121=_0x11c57d(_0x37b64c),_0x29d06f=_0x11c57d(U),_0x43df61=_0x2702de(()=>_0x35a121[_0x28e243(0x2ec)](_0x709337[_0x28e243(0x262)],_0x709337[_0x28e243(0x24c)]),[_0x709337[_0x28e243(0x24c)],_0x709337[_0x28e243(0x262)],_0x35a121]),_0x380f03=_0x2702de(()=>{const _0x1353fc=_0x28e243;let _0x5c83d2=_0x4fc4ad[_0x1353fc(0x1ec)](_0x709337[_0x1353fc(0x262)],_0x361416[_0x1353fc(0x2df)]);return!_0x43df61||!_0x5c83d2?null:new _0x19ae32(_0x43df61['model'],new _0x6807e4({'unitId':_0x709337[_0x1353fc(0x262)],'pageId':_0x709337['subUnitId'],'chartId':_0x709337['chartId'],'elementId':_0x709337[_0x1353fc(0x34d)],'boardModel':_0x5c83d2,'injector':_0x277699}));},[_0x709337,_0x277699,_0x43df61,_0x4fc4ad]),_0x2266f3=_0x2702de(()=>_0x58277a(_0xcd7567['map'](_0x45d954=>({..._0x45d954,'label':_0x4e3801['t'](_0x28e243(0x3a2)+_0x45d954[_0x28e243(0x1a2)])}))),[_0x4e3801]);return!_0x43df61||!_0x380f03?null:_0x5e799c(_0x33a395,{'chartUIService':_0x29d06f,'hostAdapter':_0x380f03,'children':_0x5e799c(Qn,{'extraProps':_0x709337,'typeOptions':_0x2266f3})});}function er(_0x7c6b36){const _0x309abe=_0x499525;let _0x2349bc=_0x7c6b36[_0x309abe(0x3a1)][_0x309abe(0x1cf)];return _0x2349bc?_0x5e799c($n,{..._0x2349bc}):null;}let tr=class extends _0x3f8dd1{constructor(_0x5dae3a,_0x388674,_0x5dd35d,_0x4dcdd8,_0xf22711,_0x5390b7,_0x415028){const _0xc208a1=_0x499525;super(),this[_0xc208a1(0x31c)]=_0x5dae3a,this[_0xc208a1(0x349)]=_0x388674,this['_boardElementService']=_0x5dd35d,this[_0xc208a1(0x193)]=_0x4dcdd8,this[_0xc208a1(0x1fe)]=_0xf22711,this[_0xc208a1(0x2ab)]=_0x5390b7,this[_0xc208a1(0x1d1)]=_0x415028,z(this,'_popupDisposable',null),z(this,_0xc208a1(0x23e),null),this['_init']();}[_0x499525(0x211)](){this['_clearPopup'](),super['dispose']();}['_init'](){const _0x4b5fc5=_0x499525;let _0x38aabc=this[_0x4b5fc5(0x31c)][_0x4b5fc5(0x21b)]['getTransformerByCreate']();this[_0x4b5fc5(0x2e6)](_0xdc18c3(_0x38aabc[_0x4b5fc5(0x267)][_0x4b5fc5(0x203)](_0x35fa67(this['dispose$']))[_0x4b5fc5(0x1e5)](()=>{const _0x588d1e=_0x4b5fc5;this[_0x588d1e(0x2d5)]();}))),this[_0x4b5fc5(0x2e6)](_0xdc18c3(_0x38aabc[_0x4b5fc5(0x19a)][_0x4b5fc5(0x203)](_0x35fa67(this['dispose$']))['subscribe'](()=>{const _0x39dea4=_0x4b5fc5;this[_0x39dea4(0x37c)]();}))),this['disposeWithMe'](_0xdc18c3(_0x38aabc[_0x4b5fc5(0x29a)][_0x4b5fc5(0x203)](_0x35fa67(this[_0x4b5fc5(0x2ce)]))[_0x4b5fc5(0x1e5)](()=>{const _0x405d69=_0x4b5fc5;this[_0x405d69(0x38f)]();}))),this['disposeWithMe'](_0xdc18c3(_0x38aabc[_0x4b5fc5(0x20f)][_0x4b5fc5(0x203)](_0x35fa67(this['dispose$']))[_0x4b5fc5(0x1e5)](()=>{const _0x302880=_0x4b5fc5;setTimeout(()=>this[_0x302880(0x2d5)](),0x0);}))),this['disposeWithMe'](_0xdc18c3(this[_0x4b5fc5(0x193)][_0x4b5fc5(0x20e)][_0x4b5fc5(0x203)](_0x35fa67(this[_0x4b5fc5(0x2ce)]))[_0x4b5fc5(0x1e5)](()=>{const _0x3c7bf9=_0x4b5fc5;setTimeout(()=>this[_0x3c7bf9(0x2d5)](),0x0);}))),this[_0x4b5fc5(0x2e6)](_0xdc18c3(this[_0x4b5fc5(0x1fe)][_0x4b5fc5(0x20e)][_0x4b5fc5(0x203)](_0x35fa67(this['dispose$']))['subscribe'](()=>{const _0x4c168d=_0x4b5fc5;setTimeout(()=>this[_0x4c168d(0x2d5)](),0x0);}))),this[_0x4b5fc5(0x2e6)](_0xdc18c3(this['_editSessionService'][_0x4b5fc5(0x30b)][_0x4b5fc5(0x203)](_0x35fa67(this[_0x4b5fc5(0x2ce)]))[_0x4b5fc5(0x1e5)](_0x428467=>{const _0x58e7b7=_0x4b5fc5;if(_0x428467){this[_0x58e7b7(0x38f)]();return;}setTimeout(()=>this[_0x58e7b7(0x2d5)](),0x0);}))),this['disposeWithMe'](_0xdc18c3(this[_0x4b5fc5(0x1d1)][_0x4b5fc5(0x372)]['pipe'](_0x35fa67(this[_0x4b5fc5(0x2ce)]))[_0x4b5fc5(0x1e5)](_0x522391=>{const _0x57c7ed=_0x4b5fc5;if(_0x522391){this[_0x57c7ed(0x38f)]();return;}setTimeout(()=>this['_showPopupForSelection'](),0x0);})));}[_0x499525(0x38f)](){const _0x53987c=_0x499525;var _0x51c405;(_0x51c405=this['_popupDisposable'])==null||_0x51c405[_0x53987c(0x211)](),this[_0x53987c(0x27d)]=null,this['_popupSelectionKey']=null;}[_0x499525(0x37c)](){setTimeout(()=>{const _0x43da3d=_0x30da;this[_0x43da3d(0x197)]()||this['_clearPopup']();},0x0);}[_0x499525(0x197)](){const _0x5c6533=_0x499525;let _0x300f39=this['_elementStateService'][_0x5c6533(0x1b8)]();return!_0x300f39[_0x5c6533(0x281)]||_0x300f39[_0x5c6533(0x35c)][_0x5c6533(0x315)]!==0x1?!0x1:this['_popupSelectionKey']===this['_buildPopupSelectionKey'](_0x300f39[_0x5c6533(0x281)][_0x5c6533(0x262)],_0x300f39['context'][_0x5c6533(0x237)],_0x300f39[_0x5c6533(0x35c)][0x0]);}['_buildPopupSelectionKey'](_0x2de2c9,_0x1d1625,_0x43216a){return _0x2de2c9+':'+_0x1d1625+':'+_0x43216a;}[_0x499525(0x2d5)](){const _0xa3d91e=_0x499525;if(this[_0xa3d91e(0x1d1)]['isInteractionSurfaceActive']||this[_0xa3d91e(0x2ab)][_0xa3d91e(0x1b2)]()){this['_clearPopup']();return;}let _0x572889=this[_0xa3d91e(0x193)][_0xa3d91e(0x1b8)](),_0x224254=this['_uiStateService']['getState']();if(_0x572889[_0xa3d91e(0x2fb)]||_0x224254['pendingInsert']||_0x224254[_0xa3d91e(0x26d)]!==null&&_0x224254[_0xa3d91e(0x26d)]!==_0x354b3a[_0xa3d91e(0x21e)]||!_0x572889[_0xa3d91e(0x281)]||_0x572889[_0xa3d91e(0x281)][_0xa3d91e(0x262)]!==this['_renderContext'][_0xa3d91e(0x262)]||_0x572889['selectedIds'][_0xa3d91e(0x315)]!==0x1||_0x572889['focusedId']==null){this[_0xa3d91e(0x38f)]();return;}let _0x2ca8f1=this['_boardElementService'][_0xa3d91e(0x2ae)](_0x572889[_0xa3d91e(0x281)][_0xa3d91e(0x262)],_0x572889[_0xa3d91e(0x281)][_0xa3d91e(0x237)],_0x572889[_0xa3d91e(0x301)]);if(!_0x2ca8f1||_0x2ca8f1[_0xa3d91e(0x1c3)][_0xa3d91e(0x1b0)]!==_0xdc726d['Chart']){this[_0xa3d91e(0x38f)]();return;}let _0x2b9354=this['_resolveElementObject'](_0x2ca8f1);if(!_0x2b9354){this['_clearPopup']();return;}let _0x33c759=this[_0xa3d91e(0x324)](_0x2ca8f1[_0xa3d91e(0x262)],_0x2ca8f1['subUnitId'],_0x2ca8f1[_0xa3d91e(0x34d)]);this['_popupDisposable']&&this[_0xa3d91e(0x23e)]===_0x33c759||(this[_0xa3d91e(0x38f)](),this[_0xa3d91e(0x27d)]=this[_0xa3d91e(0x2e6)](this[_0xa3d91e(0x349)]['attachPopupToObject'](_0x2ca8f1[_0xa3d91e(0x262)],_0x2ca8f1[_0xa3d91e(0x237)],_0x2b9354,{'componentKey':Xn,'direction':'top-center','offset':[0x0,0x24],'anchorBoundResolver':_0x4386fb,'extraProps':{'unitId':_0x2ca8f1['unitId'],'subUnitId':_0x2ca8f1['subUnitId'],'elementId':_0x2ca8f1[_0xa3d91e(0x34d)],'chartId':_0x2ca8f1[_0xa3d91e(0x1c3)]['chartId']}})),this[_0xa3d91e(0x23e)]=_0x33c759);}['_resolveElementObject'](_0x126a04){const _0x1d1c2e=_0x499525;var _0x56ca45;let _0x170db6=_0x53e8ae(_0x126a04[_0x1d1c2e(0x262)],_0x126a04[_0x1d1c2e(0x34d)]),_0x46aafd=this[_0x1d1c2e(0x31c)][_0x1d1c2e(0x21b)];return((_0x56ca45=_0x46aafd[_0x1d1c2e(0x1d7)])==null?void 0x0:_0x56ca45[_0x1d1c2e(0x34a)](_0x46aafd,_0x170db6))??_0x46aafd['getObject'](_0x170db6)??null;}};tr=V([B(0x1,_0x496119(_0x211d45)),B(0x2,_0x312cb0),B(0x3,_0x393ad4),B(0x4,_0x136685),B(0x5,_0x496119(H)),B(0x6,_0x496119(_0x1292ec))],tr);let W=class extends _0x3f8dd1{constructor(_0x12e008,_0xe71117,_0x3ee4ca,_0x3df3d4,_0x445434,_0xb8876d){const _0x5b7c3c=_0x499525;super(),this['_renderContext']=_0x12e008,this['_instanceService']=_0xe71117,this[_0x5b7c3c(0x1cb)]=_0x3ee4ca,this['_elementStateService']=_0x3df3d4,this[_0x5b7c3c(0x1fe)]=_0x445434,this[_0x5b7c3c(0x2ab)]=_0xb8876d,z(this,_0x5b7c3c(0x334),!0x1),z(this,_0x5b7c3c(0x28e),null),this[_0x5b7c3c(0x397)]();}[_0x499525(0x397)](){const _0x16d91d=_0x499525;let {unitId:_0x228750}=this[_0x16d91d(0x31c)],_0x50dfe0=this[_0x16d91d(0x2a9)][_0x16d91d(0x1ec)](_0x228750,_0x361416[_0x16d91d(0x2df)]);this['disposeWithMe'](_0xdc18c3(()=>{const _0x52ed3d=_0x16d91d;var _0x5bd823;return(_0x5bd823=this['_objectDblclickDisposables'])==null?void 0x0:_0x5bd823[_0x52ed3d(0x211)]();})),_0x50dfe0&&(this[_0x16d91d(0x1e9)](_0x50dfe0),this[_0x16d91d(0x2e6)](this['_boardElementService'][_0x16d91d(0x1d2)][_0x16d91d(0x1e5)](_0x1fd45d=>{const _0x4de2d1=_0x16d91d;_0x1fd45d[_0x4de2d1(0x243)](_0xdf140=>_0xdf140[_0x4de2d1(0x262)]===_0x228750)&&this['_scheduleAttachObjectDoubleClicks'](_0x50dfe0);})),this['disposeWithMe'](this[_0x16d91d(0x1cb)][_0x16d91d(0x1f5)]['subscribe'](_0x105c67=>{const _0x2fe05d=_0x16d91d;_0x105c67[_0x2fe05d(0x243)](_0x119e45=>_0x119e45['unitId']===_0x228750)&&this[_0x2fe05d(0x1e9)](_0x50dfe0);})),this[_0x16d91d(0x2e6)](this[_0x16d91d(0x1cb)][_0x16d91d(0x374)]['subscribe'](_0x46f328=>{const _0x49a26c=_0x16d91d;_0x46f328[_0x49a26c(0x243)](_0x8e8471=>_0x8e8471[_0x49a26c(0x262)]===_0x228750)&&this[_0x49a26c(0x1e9)](_0x50dfe0);})),this[_0x16d91d(0x2e6)](this[_0x16d91d(0x193)][_0x16d91d(0x20e)][_0x16d91d(0x1e5)](_0xa3b51a=>{const _0x43c924=_0x16d91d;var _0xcbc00b;((_0xcbc00b=_0xa3b51a[_0x43c924(0x281)])==null?void 0x0:_0xcbc00b['unitId'])===_0x228750&&this[_0x43c924(0x1e9)](_0x50dfe0);})));}[_0x499525(0x1e9)](_0x25b3ff){const _0x2c0033=_0x499525;this[_0x2c0033(0x334)]||(this['_attachScheduled']=!0x0,Promise[_0x2c0033(0x33f)]()[_0x2c0033(0x333)](()=>this['_attachObjectDoubleClicks'](_0x25b3ff)));}[_0x499525(0x223)](_0x347716){const _0x5b1d87=_0x499525;var _0x40993f;this['_attachScheduled']=!0x1;let {scene:_0x4746d5,unitId:_0x425121}=this[_0x5b1d87(0x31c)],_0x192f7e=_0x347716[_0x5b1d87(0x306)](),_0x43ad50=this[_0x5b1d87(0x1cb)][_0x5b1d87(0x222)](_0x425121,_0x192f7e),_0x11cadf=new _0x1ae3d6();(_0x40993f=this[_0x5b1d87(0x28e)])==null||_0x40993f[_0x5b1d87(0x211)](),this[_0x5b1d87(0x28e)]=_0x11cadf,_0x43ad50['forEach'](_0x309d7d=>{const _0x58092e=_0x5b1d87;var _0x470363;let _0x288114=this[_0x58092e(0x1cb)][_0x58092e(0x2ae)](_0x425121,_0x192f7e,_0x309d7d);if(!_0x288114||_0x288114[_0x58092e(0x1c3)][_0x58092e(0x1b0)]!==_0xdc726d[_0x58092e(0x2d4)])return;let _0x4d4e0b=_0x53e8ae(_0x425121,_0x309d7d),_0x366d7a=((_0x470363=_0x4746d5[_0x58092e(0x1d7)])==null?void 0x0:_0x470363[_0x58092e(0x34a)](_0x4746d5,_0x4d4e0b))??_0x4746d5[_0x58092e(0x259)](_0x4d4e0b);_0x366d7a&&_0x11cadf[_0x58092e(0x34b)](_0xdc18c3(_0x366d7a[_0x58092e(0x23a)][_0x58092e(0x192)]((_0x2e854d,_0x31a914)=>{this['_openEditSession'](_0x288114,_0x2e854d,_0x31a914);})));});}[_0x499525(0x29e)](_0x1a2568,_0x231b8f,_0x18b963){const _0x35d784=_0x499525;var _0x209a22;if(this[_0x35d784(0x1fe)][_0x35d784(0x199)]()['pendingInsert']||this[_0x35d784(0x193)][_0x35d784(0x1b8)]()['isTransforming']||_0x1a2568[_0x35d784(0x1c3)][_0x35d784(0x1b0)]!==_0xdc726d[_0x35d784(0x2d4)])return;let _0x3654d8={'unitId':_0x1a2568['unitId'],'subUnitId':_0x1a2568[_0x35d784(0x237)]};this[_0x35d784(0x193)][_0x35d784(0x291)](_0x3654d8,[_0x1a2568[_0x35d784(0x34d)]],_0x1a2568[_0x35d784(0x34d)]),this['_elementStateService'][_0x35d784(0x399)](_0x3654d8,null),this['_editSessionService']['open']({'chartId':_0x1a2568[_0x35d784(0x1c3)][_0x35d784(0x24c)],'elementId':_0x1a2568[_0x35d784(0x34d)],'source':_0x35d784(0x3ad),'subUnitId':_0x1a2568[_0x35d784(0x237)],'unitId':_0x1a2568[_0x35d784(0x262)]}),_0x18b963&&(_0x18b963[_0x35d784(0x1af)]=!0x0),_0x231b8f==null||(_0x209a22=_0x231b8f[_0x35d784(0x36a)])==null||_0x209a22[_0x35d784(0x34a)](_0x231b8f);}};W=V([B(0x1,_0x1cc825),B(0x2,_0x312cb0),B(0x3,_0x393ad4),B(0x4,_0x136685),B(0x5,_0x496119(H))],W);let G=class extends _0x213704{constructor(_0x573841,_0x349908,_0x1cb7f2){const _0xb42741=_0x499525;super(),this[_0xb42741(0x265)]=_0x573841,this['_modelService']=_0x349908,this[_0xb42741(0x1be)]=_0x1cb7f2;}[_0x499525(0x27f)](_0xd07978,_0x5688cc){const _0x371915=_0x499525;let _0x52ae2e=this[_0x371915(0x265)]['getChart'](_0xd07978,_0x5688cc),_0x50d631=_0x52ae2e?this[_0x371915(0x265)][_0x371915(0x3a4)](_0xd07978,_0x52ae2e[_0x371915(0x2a8)]):void 0x0;return!_0x52ae2e||!_0x50d631?null:{'chartId':_0x5688cc,'chartType':_0x52ae2e[_0x371915(0x276)],'dataSource':_0x50d631,'sharingCount':this[_0x371915(0x265)][_0x371915(0x1bf)](_0xd07978,_0x50d631['id']),'unitId':_0xd07978};}async[_0x499525(0x24f)](_0x2a4ff1){const _0x4d23bc=_0x499525;var _0x142100;if(!this['getDataEditState'](_0x2a4ff1[_0x4d23bc(0x262)],_0x2a4ff1[_0x4d23bc(0x24c)])||_0x2a4ff1[_0x4d23bc(0x1b4)][_0x4d23bc(0x315)]===0x0)return!0x1;let _0x165279=(_0x142100=this[_0x4d23bc(0x265)]['getChart'](_0x2a4ff1[_0x4d23bc(0x262)],_0x2a4ff1['chartId']))==null?void 0x0:_0x142100[_0x4d23bc(0x276)];if(_0x165279===void 0x0)return!0x1;let _0x4f6004=_0x32e79f(_0x165279,_0x2a4ff1['values']);if(!_0x4f6004['ok'])return!0x1;let _0x2f19f0=await this[_0x4d23bc(0x2d8)](_0x2a4ff1[_0x4d23bc(0x262)],_0x2a4ff1['chartId'],{'values':_0x4f6004[_0x4d23bc(0x1b4)]});return _0x2f19f0&&this[_0x4d23bc(0x214)][_0x4d23bc(0x3b5)](_0x2a4ff1[_0x4d23bc(0x262)],_0x2a4ff1[_0x4d23bc(0x24c)]),!!_0x2f19f0;}[_0x499525(0x2d8)](_0x382322,_0x5d827e,_0x44180d){const _0x2a68e5=_0x499525;return this[_0x2a68e5(0x1be)][_0x2a68e5(0x1f2)](_0xf1aeb9['id'],{'unitId':_0x382322,'chartId':_0x5d827e,'dataSource':_0x44180d});}};G=V([B(0x0,_0x496119(_0x2cd96e)),B(0x1,_0x496119(_0x37b64c)),B(0x2,_0xa6f2d7)],G);const nr=_0x499525(0x1d4);function rr(_0x4ec50d){const _0x4c51e4=_0x499525;let _0x3b6e8f=_0x11c57d(G),_0x3dde35=_0x11c57d(_0x4cc5cd),_0x51ce5d=_0x3b6e8f[_0x4c51e4(0x27f)](_0x4ec50d[_0x4c51e4(0x262)],_0x4ec50d[_0x4c51e4(0x24c)]),[_0x46cfd3,_0x1878e4]=_0x41a5b5(()=>_0x1a9228(_0x51ce5d==null?void 0x0:_0x51ce5d['dataSource'])?_0x51ce5d[_0x4c51e4(0x31a)][_0x4c51e4(0x1b4)][_0x4c51e4(0x22f)](_0x593242=>[..._0x593242]):[]),[_0x400154,_0x4b65fb]=_0x41a5b5(()=>_0x231714(_0x51ce5d==null?void 0x0:_0x51ce5d[_0x4c51e4(0x31a)])?_0x4c51e4(0x257):_0x4c51e4(0x286)),[_0xa22bd6,_0x25a5c4]=_0x41a5b5(null),[_0x1bf0bf,_0x3848d0]=_0x41a5b5(null),_0x4b1966={[_0x80d379[_0x4c51e4(0x1dc)]]:_0x3dde35['t'](_0x4c51e4(0x1eb)),[_0x80d379[_0x4c51e4(0x36e)]]:_0x3dde35['t'](_0x4c51e4(0x1bb)),[_0x80d379[_0x4c51e4(0x331)]]:_0x3dde35['t']('boards-chart-ui.candlestick.columnsError')};if(!_0x51ce5d)return _0x5e799c('div',{'className':_0x4c51e4(0x3ba),'children':_0x3dde35['t']('boards-chart-ui.dataEditor.unavailable')});let _0x4d4f8a=async _0x1c2090=>{const _0x1deb57=_0x4c51e4;var _0x5e3f24;if(_0x400154===_0x1deb57(0x257)){var _0x156d31;if(!_0xa22bd6)return;if(!await _0x3b6e8f['changeDataSource'](_0x4ec50d['unitId'],_0x4ec50d[_0x1deb57(0x24c)],_0xa22bd6)){_0x3848d0(_0x3dde35['t'](_0x1deb57(0x335)));return;}_0x3848d0(null),(_0x156d31=_0x4ec50d['onClose'])==null||_0x156d31[_0x1deb57(0x34a)](_0x4ec50d);return;}let _0x52d7bb=_0x32e79f(_0x51ce5d[_0x1deb57(0x276)],_0x46cfd3);if(!_0x52d7bb['ok']){_0x3848d0(_0x4b1966[_0x52d7bb[_0x1deb57(0x2a3)][_0x1deb57(0x22c)]]);return;}if(!await _0x3b6e8f[_0x1deb57(0x24f)]({'chartId':_0x4ec50d[_0x1deb57(0x24c)],'name':_0x51ce5d[_0x1deb57(0x31a)][_0x1deb57(0x252)],'unitId':_0x4ec50d[_0x1deb57(0x262)],'updateShared':_0x1c2090,'values':_0x52d7bb[_0x1deb57(0x1b4)]})){_0x3848d0(_0x3dde35['t']('boards-chart-ui.dataEditor.updateFailed'));return;}_0x3848d0(null),(_0x5e3f24=_0x4ec50d[_0x1deb57(0x23c)])==null||_0x5e3f24[_0x1deb57(0x34a)](_0x4ec50d);};return _0x325495(_0x4c51e4(0x1d8),{'className':_0x4c51e4(0x35b),'children':[_0x5e799c(_0x2299e5,{'mode':_0x400154,'initialSource':_0x231714(_0x51ce5d[_0x4c51e4(0x31a)])?_0x51ce5d['dataSource'][_0x4c51e4(0x364)]:void 0x0,'inlineContent':_0x5e799c(_0x46ec38,{'values':_0x46cfd3,'parsePastedText':_0x1411e1,'onChange':_0x1878e4}),'onModeChange':_0x5d5a8e=>{_0x4b65fb(_0x5d5a8e),_0x25a5c4(null);},'onPreviewChange':(_0x114164,_0x23ade7)=>_0x25a5c4(_0x114164&&_0x23ade7[_0x4c51e4(0x360)]===_0x3dd533[_0x4c51e4(0x1a4)]?{'source':_0x114164}:null)}),_0x1bf0bf&&_0x5e799c(_0x4c51e4(0x1d8),{'className':_0x4c51e4(0x2a5),'children':_0x1bf0bf}),_0x325495(_0x4c51e4(0x1d8),{'className':_0x4c51e4(0x1e7),'children':[_0x4ec50d[_0x4c51e4(0x23c)]&&_0x5e799c(_0x5f405e,{'type':_0x4c51e4(0x390),'variant':_0x4c51e4(0x386),'onClick':_0x4ec50d[_0x4c51e4(0x23c)],'children':_0x3dde35['t']('boards-chart-ui.common.cancel')}),_0x5e799c(_0x5f405e,{'type':_0x4c51e4(0x390),'variant':'primary','disabled':_0x400154===_0x4c51e4(0x257)&&!_0xa22bd6,'onClick':()=>_0x4d4f8a(!0x0),'children':_0x3dde35['t'](_0x4c51e4(0x1df))})]})]});}const ir={'id':_0x499525(0x37e),'type':_0x45a710['OPERATION'],'handler':(_0x491b8f,_0x1201e6)=>{const _0x3a92a9=_0x499525;if(!_0x1201e6||!_0x491b8f[_0x3a92a9(0x234)](G)[_0x3a92a9(0x27f)](_0x1201e6['unitId'],_0x1201e6[_0x3a92a9(0x24c)])||!_0x491b8f[_0x3a92a9(0x234)](_0x16fbc0)[_0x3a92a9(0x234)](_0x3a92a9(0x1d4)))return!0x1;let _0xf1c735=_0x491b8f['get'](_0xdc88e0),_0x4f17e7=_0x491b8f[_0x3a92a9(0x234)](_0x4cc5cd),_0x550564=null,_0x187f3f=()=>{const _0x137e2a=_0x3a92a9;_0x550564==null||_0x550564[_0x137e2a(0x211)](),_0x550564=null;};return _0x550564=_0xf1c735['open']({'id':_0x3a92a9(0x25d),'title':{'title':_0x4f17e7['t']('boards-chart-ui.common.editData')},'width':_0x3a92a9(0x34e),'draggable':!0x1,'mask':!0x0,'maskClosable':!0x1,'children':{'label':{'name':nr,'props':{..._0x1201e6,'onClose':_0x187f3f}}},'onClose':_0x187f3f}),!0x0;}},ar='board-chart.edit-panel',K={'axis':{..._0x5d23a2,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'legend':_0x25a1df,'lineAndArea':_0x1c37b3,'pareto':_0x244003,'funnel':_0x3a9214,'heatmap':_0x2d5ad2,'indicatorLine':_0x532c13,'pie':{..._0x1919ae,'doughnutHole':0x0,'pieHole':0x0},'relation':{..._0x121b5c,'useValueAsSymbolSize':!0x0},'radar':_0x2f3dba,'series':{..._0x37e1f0,'radarFillOpacity':0x1,'rightAxis':{'ltr':!0x1,'rtl':!0x1}},'style':_0x37589e,'titles':_0x1980a5,'trendline':_0x161001,'waterfall':{..._0x1c1b97,'useSubtotal':!0x1},'waterfallStyle':_0x3e6462,'wordCloud':_0x4ad83a},or=[_0x567e7a[_0x499525(0x22d)],_0x567e7a[_0x499525(0x39c)],_0x567e7a[_0x499525(0x2bf)],_0x567e7a['Scatter'],_0x567e7a['Relation'],_0x567e7a[_0x499525(0x241)],_0x567e7a['Heatmap'],_0x567e7a[_0x499525(0x2ed)],_0x567e7a['Candlestick'],_0x567e7a[_0x499525(0x3ac)],_0x567e7a['Treemap'],_0x567e7a[_0x499525(0x1ef)],_0x567e7a['Gauge'],_0x567e7a[_0x499525(0x1ca)]];function sr(_0x1c3ab7){const _0x14f2c4=_0x499525;let _0x121b81=_0x11c57d(_0x4cc5cd);return _0x325495('div',{'children':[_0x5e799c(_0x41b488,{'title':_0x121b81['t']('boards-chart-ui.common.data')}),_0x5e799c(_0x5f405e,{'type':_0x14f2c4(0x390),'variant':_0x14f2c4(0x386),'className':'univer-w-full\x20univer-justify-start','onClick':_0x1c3ab7[_0x14f2c4(0x218)],'children':_0x121b81['t'](_0x14f2c4(0x1a0))})]});}function cr(){const _0x16154d=_0x499525;let _0x81ff1e=_0x45c5bb();return _0x5e799c(_0x1f745c,{'visible':or[_0x16154d(0x369)](_0xf84c40=>!_0x30c895[_0x16154d(0x287)](_0x81ff1e,_0xf84c40))});}function lr(_0x1801a8){const _0x1afb38=_0x499525;return _0x325495(_0x50b71f,{'id':_0x1801a8['id'],'children':[_0x5e799c(_0x4c7dec,{'children':_0x1801a8['label']}),_0x5e799c(_0x6e0864,{'children':_0x1801a8[_0x1afb38(0x219)]})]});}function ur(_0x4e77f1,_0x1c651a){const _0x23d040=_0x499525;let _0x1d2474=_0x4e77f1===_0x567e7a[_0x23d040(0x2bf)],_0x424cda=_0x30c895[_0x23d040(0x287)](_0x4e77f1,_0x567e7a[_0x23d040(0x209)]),_0x260991=_0x4e77f1===_0x567e7a['Funnel'],_0x99ba75=_0x4e77f1===_0x567e7a[_0x23d040(0x1c0)],_0x2da4e4=_0x4e77f1===_0x567e7a['Heatmap'],_0x3d65c7=_0x30c895[_0x23d040(0x287)](_0x4e77f1,_0x567e7a['Pie']),_0x653abc=_0x4e77f1===_0x567e7a[_0x23d040(0x39c)],_0x58cc0b=_0x4e77f1===_0x567e7a[_0x23d040(0x354)],_0x8fad1e=_0x4e77f1===_0x567e7a[_0x23d040(0x195)],_0x7cb747=_0x4e77f1===_0x567e7a['Candlestick'],_0x4d362a=_0x4e77f1===_0x567e7a[_0x23d040(0x3ac)],_0x137d9a=_0x4e77f1===_0x567e7a[_0x23d040(0x205)],_0x3a9ad9=_0x4e77f1===_0x567e7a['Sunburst'],_0x59225b=_0x4e77f1===_0x567e7a[_0x23d040(0x3b9)],_0x1d6f34=_0x4e77f1===_0x567e7a[_0x23d040(0x1ca)],_0x403486=[_0x5b8450[_0x23d040(0x28a)],_0x5b8450[_0x23d040(0x342)]];return _0x1d2474&&_0x403486[_0x23d040(0x357)](_0x5b8450[_0x23d040(0x2bf)]),_0xfc9559(_0x4e77f1,_0x4943ee['GeneralSeries'])&&!_0x424cda&&!_0x8fad1e&&_0x403486[_0x23d040(0x357)](_0x5b8450[_0x23d040(0x3af)]),_0x58cc0b&&_0x403486['push'](_0x5b8450['WaterfallSeries']),_0x8fad1e&&_0x403486['push'](_0x5b8450['ParetoBarSeries'],_0x5b8450[_0x23d040(0x365)]),_0x3d65c7&&_0x403486[_0x23d040(0x357)](_0x5b8450['PieStyle']),_0x653abc&&_0x403486[_0x23d040(0x357)](_0x5b8450[_0x23d040(0x39c)]),_0x260991&&_0x403486['push'](_0x5b8450[_0x23d040(0x27b)]),_0x2da4e4&&_0x403486['push'](_0x5b8450[_0x23d040(0x29b)]),_0x99ba75&&_0x403486[_0x23d040(0x357)](_0x5b8450[_0x23d040(0x1c0)]),_0xe71936(_0x4e77f1)&&_0x403486[_0x23d040(0x357)](_0x5b8450[_0x23d040(0x1dd)]),_0xfc9559(_0x4e77f1,_0x4943ee['Legend'])&&_0x403486[_0x23d040(0x357)](_0x5b8450[_0x23d040(0x1ed)]),_0xfc9559(_0x4e77f1,_0x4943ee[_0x23d040(0x1b6)])&&(_0x403486[_0x23d040(0x357)](_0x5b8450[_0x23d040(0x350)],_0x5b8450[_0x23d040(0x32c)]),_0x1c651a&&_0x403486[_0x23d040(0x357)](_0x5b8450['RightVerticalAxis']),_0x403486[_0x23d040(0x357)](_0x5b8450['GridlinesAndTicks'])),_0xfc9559(_0x4e77f1,_0x4943ee[_0x23d040(0x36f)])&&_0x403486[_0x23d040(0x357)](_0x5b8450['IndicatorLine']),_0x1d8e32(_0x4e77f1)&&_0x403486['push'](_0x5b8450[_0x23d040(0x21f)]),_0x7cb747&&_0x403486['push'](_0x5b8450[_0x23d040(0x278)]),_0x4d362a&&_0x403486[_0x23d040(0x357)](_0x5b8450['Histogram']),_0x137d9a&&_0x403486[_0x23d040(0x357)](_0x5b8450[_0x23d040(0x205)]),_0x3a9ad9&&_0x403486['push'](_0x5b8450['Sunburst']),_0x59225b&&_0x403486[_0x23d040(0x357)](_0x5b8450[_0x23d040(0x3b9)]),_0x1d6f34&&_0x403486[_0x23d040(0x357)](_0x5b8450[_0x23d040(0x1ca)]),_0x403486;}function dr(_0x4dcefe){const _0x438dd7=_0x499525;var _0x32f0d7,_0xadf9d7,_0x3cf055;let _0x3ea5ad=_0x11c57d(_0x4cc5cd),_0x61aac5=_0x45c5bb(),_0x107975=_0x3f9900(),[_0x3e74ee,_0x4e99db]=_0x41a5b5(null),_0x12818b=ur(_0x61aac5,_0x107975),_0x20b720=_0x5e799c(_0x193186,{}),_0x349e5a={[_0x5b8450[_0x438dd7(0x278)]]:_0x3ea5ad['t'](_0x438dd7(0x2b0)),[_0x5b8450['ChartAndAxisTitles']]:_0x3ea5ad['t'](_0x438dd7(0x35e)),[_0x5b8450[_0x438dd7(0x28a)]]:_0x3ea5ad['t'](_0x438dd7(0x19d)),[_0x5b8450[_0x438dd7(0x1ca)]]:_0x3ea5ad['t'](_0x438dd7(0x2e8)),[_0x5b8450[_0x438dd7(0x27b)]]:_0x3ea5ad['t'](_0x438dd7(0x1a6)),[_0x5b8450[_0x438dd7(0x3b9)]]:_0x3ea5ad['t'](_0x438dd7(0x253)),[_0x5b8450[_0x438dd7(0x225)]]:_0x3ea5ad['t'](_0x438dd7(0x3a8)),[_0x5b8450['Heatmap']]:_0x3ea5ad['t'](_0x438dd7(0x25a)),[_0x5b8450[_0x438dd7(0x3ac)]]:_0x3ea5ad['t'](_0x438dd7(0x39f)),[_0x5b8450[_0x438dd7(0x350)]]:_0x3ea5ad['t'](_0x438dd7(0x27c)),[_0x5b8450[_0x438dd7(0x36f)]]:_0x3ea5ad['t'](_0x438dd7(0x3b6)),[_0x5b8450[_0x438dd7(0x1ed)]]:_0x3ea5ad['t'](_0x438dd7(0x377)),[_0x5b8450[_0x438dd7(0x1dd)]]:_0x3ea5ad['t'](_0x438dd7(0x208)),[_0x5b8450[_0x438dd7(0x2d2)]]:_0x3ea5ad['t'](_0x438dd7(0x37a)),[_0x5b8450[_0x438dd7(0x365)]]:_0x3ea5ad['t']('boards-chart-ui.section.paretoLine'),[_0x5b8450[_0x438dd7(0x344)]]:_0x3ea5ad['t']('boards-chart-ui.section.pie'),[_0x5b8450[_0x438dd7(0x39c)]]:_0x3ea5ad['t']('boards-chart-ui.section.radar'),[_0x5b8450[_0x438dd7(0x1c0)]]:_0x3ea5ad['t']('boards-chart-ui.section.relation'),[_0x5b8450['RightVerticalAxis']]:_0x3ea5ad['t']('boards-chart-ui.common.rightVerticalAxis'),[_0x5b8450[_0x438dd7(0x3af)]]:_0x3ea5ad['t'](_0x438dd7(0x1c6)),[_0x5b8450[_0x438dd7(0x1ef)]]:_0x3ea5ad['t'](_0x438dd7(0x1ea)),[_0x5b8450[_0x438dd7(0x205)]]:_0x3ea5ad['t'](_0x438dd7(0x27e)),[_0x5b8450['Trendline']]:_0x3ea5ad['t']('boards-chart-ui.common.trendline'),[_0x5b8450['VerticalAxis']]:_0x3ea5ad['t'](_0x438dd7(0x320)),[_0x5b8450[_0x438dd7(0x2c9)]]:_0x3ea5ad['t'](_0x438dd7(0x1f8)),[_0x5b8450[_0x438dd7(0x2bf)]]:_0x3ea5ad['t'](_0x438dd7(0x289))};_0x3d65d5(()=>{const _0x4d7cfb=_0x438dd7;var _0x78f0be;(_0x78f0be=_0x4dcefe['route'])!=null&&_0x78f0be[_0x4d7cfb(0x2a1)]&&_0x4e99db(_0x4dcefe[_0x4d7cfb(0x347)]['section']);},[_0x4dcefe[_0x438dd7(0x347)]]);let _0x140d75={[_0x5b8450[_0x438dd7(0x28a)]]:_0x5e799c(_0x7de209,{'defaultValues':K[_0x438dd7(0x1d0)],'showBodyFont':!0x0}),[_0x5b8450['ChartAndAxisTitles']]:_0x5e799c(_0x3184e0,{'commitMode':'change','defaultValues':K[_0x438dd7(0x388)],'selectedTitleKey':(_0x32f0d7=_0x4dcefe[_0x438dd7(0x347)])==null?void 0x0:_0x32f0d7[_0x438dd7(0x3b8)]}),[_0x5b8450[_0x438dd7(0x3af)]]:_0x325495(_0x5d9c1e,{'defaultValues':K['series'],'NumberFormatField':_0x540a5a,'selectedSeriesId':(_0xadf9d7=_0x4dcefe['route'])==null?void 0x0:_0xadf9d7['seriesId'],'children':[_0x5e799c(_0x53abaa,{}),_0x5e799c(_0x238b88,{'individualOnly':!0x0}),_0x5e799c(_0x4bc933,{}),_0x5e799c(_0x29f5b1,{}),_0x5e799c(_0x5ed9cf,{}),_0x5e799c(_0x4649c6,{}),_0x5e799c(_0x1338ba,{}),_0x5e799c(_0x1b8135,{})]}),[_0x5b8450['WaterfallSeries']]:_0x5e799c(_0x32067f,{'defaultValues':K[_0x438dd7(0x28f)],'NumberFormatField':_0x540a5a,'selectedSeriesId':(_0x3cf055=_0x4dcefe[_0x438dd7(0x347)])==null?void 0x0:_0x3cf055[_0x438dd7(0x2ba)],'showBucketName':()=>!0x0}),[_0x5b8450[_0x438dd7(0x2d2)]]:_0x5e799c(_0x29e8ea,{'defaultValues':K[_0x438dd7(0x1e8)],'NumberFormatField':_0x540a5a,'showDataPointEditor':!0x0,'target':_0x438dd7(0x239)}),[_0x5b8450[_0x438dd7(0x365)]]:_0x5e799c(_0x29e8ea,{'defaultValues':K[_0x438dd7(0x1e8)],'NumberFormatField':_0x540a5a,'showDataPointEditor':!0x0,'target':'cumulativeLineStyle'}),[_0x5b8450[_0x438dd7(0x344)]]:_0x5e799c(_0x1cec51,{'defaultValues':K['pie'],'NumberFormatField':_0x540a5a}),[_0x5b8450[_0x438dd7(0x2bf)]]:_0x325495(_0x1faff9,{'children':[_0x5e799c(_0x22d31f,{'defaultValues':K[_0x438dd7(0x346)]}),_0x5e799c(_0x479703,{}),_0x5e799c(_0x2ee956,{'defaultValues':K[_0x438dd7(0x346)]})]}),[_0x5b8450[_0x438dd7(0x39c)]]:_0x5e799c(_0x268318,{'defaultValues':K[_0x438dd7(0x366)]}),[_0x5b8450[_0x438dd7(0x27b)]]:_0x5e799c(_0x562714,{'defaultValues':K['funnel'],'gapControl':_0x438dd7(0x385)}),[_0x5b8450[_0x438dd7(0x29b)]]:_0x5e799c(_0x11f289,{'defaultValues':K[_0x438dd7(0x221)]}),[_0x5b8450['Relation']]:_0x5e799c(_0x4df0d1,{'defaultValues':K[_0x438dd7(0x206)]}),[_0x5b8450[_0x438dd7(0x1dd)]]:_0x5e799c(_0x2b1e2d,{'defaultValues':K[_0x438dd7(0x28b)],'lineStyleControl':_0x438dd7(0x363)}),[_0x5b8450[_0x438dd7(0x1ed)]]:_0x5e799c(_0x3c32af,{'defaultValues':K[_0x438dd7(0x35f)]}),[_0x5b8450['HorizontalAxis']]:_0x5e799c(_0x2d9afd,{'axis':'x','defaultValues':K[_0x438dd7(0x32a)],'NumberFormatField':_0x540a5a}),[_0x5b8450['VerticalAxis']]:_0x5e799c(_0x2d9afd,{'axis':'y','defaultValues':K[_0x438dd7(0x32a)],'NumberFormatField':_0x540a5a}),[_0x5b8450[_0x438dd7(0x395)]]:_0x5e799c(_0x2d9afd,{'axis':'rightY','defaultValues':K[_0x438dd7(0x32a)],'NumberFormatField':_0x540a5a}),[_0x5b8450[_0x438dd7(0x225)]]:_0x5e799c(_0x3f6402,{'defaultValues':K[_0x438dd7(0x32a)]}),[_0x5b8450[_0x438dd7(0x36f)]]:_0x5e799c(_0x33e4a9,{'defaultValues':K[_0x438dd7(0x1e1)]}),[_0x5b8450['Trendline']]:_0x5e799c(_0x591f60,{'defaultValues':K[_0x438dd7(0x2e7)]}),[_0x5b8450[_0x438dd7(0x278)]]:_0x20b720,[_0x5b8450[_0x438dd7(0x3ac)]]:_0x20b720,[_0x5b8450[_0x438dd7(0x205)]]:_0x20b720,[_0x5b8450[_0x438dd7(0x1ef)]]:_0x20b720,[_0x5b8450[_0x438dd7(0x3b9)]]:_0x20b720,[_0x5b8450['Chord']]:_0x20b720};return _0x5e799c(_0x4e0003,{'value':_0x3e74ee,'onChange':_0x4e99db,'children':_0x12818b[_0x438dd7(0x22f)](_0x212b45=>_0x5e799c(lr,{'id':_0x212b45,'label':_0x349e5a[_0x212b45],'children':_0x140d75[_0x212b45]},_0x212b45))});}function fr({unitId:_0x16a00d,subUnitId:_0x16f3b5,elementId:_0x51e8a5,chartId:_0xb4525a}){const _0x39d0d4=_0x499525;let _0x1f7794=_0x11c57d(_0x37b64c),_0x450bcc=_0x11c57d(U),_0x51e4ca=_0x11c57d(_0x4cc5cd),_0x569017=_0x11c57d(_0xa6f2d7),_0xc4552e=_0x11c57d(_0x11a7be),_0x1975fb=_0x11c57d(_0x1cc825),_0x3c5a0f=_0x11c57d(H),_0x240d47=_0x4951fb(_0x1f7794['activeRuntimeModel$'],_0x1f7794[_0x39d0d4(0x2eb)]),_0x39ffdf=_0x4951fb(_0x3c5a0f[_0x39d0d4(0x30b)],_0x3c5a0f[_0x39d0d4(0x1b2)]()),[_0xb0ea26,_0x45a24f]=_0x41a5b5(_0x203d3b['Data']),_0x3db81b=(_0x39ffdf==null?void 0x0:_0x39ffdf[_0x39d0d4(0x262)])===_0x16a00d&&_0x39ffdf[_0x39d0d4(0x24c)]===_0xb4525a&&_0x39ffdf['elementId']===_0x51e8a5?_0x39ffdf[_0x39d0d4(0x347)]:void 0x0;_0x3d65d5(()=>{const _0x3034d0=_0x39d0d4;_0x1f7794[_0x3034d0(0x1c2)](_0x16a00d,_0xb4525a);},[_0xb4525a,_0x1f7794,_0x16a00d]),_0x3d65d5(()=>{const _0x737f7f=_0x39d0d4;_0x3db81b!=null&&_0x3db81b['tab']&&_0x45a24f(_0x3db81b[_0x737f7f(0x2e9)]);},[_0x3db81b]);let _0xf0036f=(_0x240d47==null?void 0x0:_0x240d47[_0x39d0d4(0x262)])===_0x16a00d&&_0x240d47[_0x39d0d4(0x24c)]===_0xb4525a,_0x43d558=_0x2702de(()=>{const _0x5a8f46=_0x39d0d4;if(!_0xf0036f)return null;let _0x2878db=_0x1975fb[_0x5a8f46(0x1ec)](_0x16a00d,_0x361416[_0x5a8f46(0x2df)]);return _0x2878db?new _0x19ae32(_0x240d47[_0x5a8f46(0x1a9)],new _0x6807e4({'unitId':_0x16a00d,'pageId':_0x16f3b5,'chartId':_0xb4525a,'elementId':_0x51e8a5,'boardModel':_0x2878db,'injector':_0xc4552e})):null;},[_0x240d47,_0xb4525a,_0x51e8a5,_0xc4552e,_0xf0036f,_0x16f3b5,_0x16a00d,_0x1975fb]),_0x21266a=_0x2702de(()=>_0x58277a(_0xcd7567['map'](_0x255372=>({..._0x255372,'label':_0x51e4ca['t'](_0x39d0d4(0x3a2)+_0x255372['labelId'])}))),[_0x51e4ca]);return!_0xf0036f||!_0x43d558?null:_0x5e799c(_0x33a395,{'chartUIService':_0x450bcc,'hostAdapter':_0x43d558,'children':_0x325495(_0x39d0d4(0x1d8),{'className':_0x39d0d4(0x2fa),'children':[_0x5e799c(_0x39cbb6,{'ariaLabel':_0x51e4ca['t'](_0x39d0d4(0x20d)),'className':_0x39d0d4(0x1f7),'items':[{'label':_0x51e4ca['t'](_0x39d0d4(0x302)),'panelId':pr,'value':_0x203d3b['Data']},{'label':_0x51e4ca['t'](_0x39d0d4(0x398)),'panelId':mr,'value':_0x203d3b[_0x39d0d4(0x3a0)]}],'value':_0xb0ea26,'onChange':_0x45a24f}),_0xb0ea26===_0x203d3b['Data']?_0x5e799c(_0x589747,{'id':pr,'label':_0x51e4ca['t']('boards-chart-ui.common.setup'),'children':_0x325495(_0x39d0d4(0x1d8),{'className':_0x39d0d4(0x1a5),'children':[_0x5e799c(_0xe2b2cf,{'options':_0x21266a}),_0x5e799c(_0x19773a,{}),_0x5e799c(_0xa1e222,{}),_0x5e799c(cr,{}),_0x5e799c(_0x496027,{}),_0x5e799c(sr,{'onEditData':()=>_0x569017[_0x39d0d4(0x1f2)](ir['id'],{'unitId':_0x16a00d,'chartId':_0xb4525a})}),_0x5e799c(_0x4d1eed,{'orientationControl':_0x5e799c(_0x5f405e,{'size':_0x39d0d4(0x329),'onClick':()=>_0x450bcc[_0x39d0d4(0x1d6)]({'patch':{'context':{'orient':_0x240d47[_0x39d0d4(0x364)][_0x39d0d4(0x32f)]?_0x39d0d4(0x28c):_0x39d0d4(0x212)}}}),'children':_0x51e4ca['t'](_0x39d0d4(0x367))})}),_0x5e799c(_0x28acd5,{}),_0x5e799c(_0x449bdd,{'defaultValues':K['waterfall']})]})}):_0x5e799c(_0x589747,{'id':mr,'label':_0x51e4ca['t'](_0x39d0d4(0x398)),'children':_0x5e799c(dr,{'route':_0x3db81b})})]})});}const pr=_0x499525(0x1d5),mr=_0x499525(0x37f),hr=_0x327fa2,gr=_0x579e99;function _r(_0x46c67e){const _0x2c9d0d=_0x499525;var _0x18c310,_0x202a21;let _0x3c04d1=_0x46c67e[_0x2c9d0d(0x263)]??{},_0x30709c=_0x3c04d1[_0x2c9d0d(0x264)]===0x0?0x0:br(_0x3c04d1[_0x2c9d0d(0x264)],br((_0x18c310=_0x46c67e['chartElement'])==null||(_0x18c310=_0x18c310[_0x2c9d0d(0x322)])==null?void 0x0:_0x18c310[_0x2c9d0d(0x230)],0x1));return{'fill':_0x46c67e['hostFill']??_0x3c04d1['backgroundColor']??_0x2ca23e['backgroundColor'],'stroke':_0x3c04d1[_0x2c9d0d(0x362)]??((_0x202a21=_0x46c67e[_0x2c9d0d(0x2db)])==null||(_0x202a21=_0x202a21['stroke'])==null?void 0x0:_0x202a21[_0x2c9d0d(0x1e2)])??_0x46c67e[_0x2c9d0d(0x361)]??(_0x46c67e[_0x2c9d0d(0x2e5)]?_0x2c9d0d(0x1ab):hr),'strokeWidth':_0x30709c,'radius':gr};}function vr(_0x52919f,_0x5583ef){const _0x577113=_0x499525;let _0x4ec53f=Math[_0x577113(0x22b)](0x0,_0x5583ef[_0x577113(0x1f9)]);return{'left':_0x4ec53f,'top':_0x4ec53f,'width':Math[_0x577113(0x22b)](0x1,_0x52919f[_0x577113(0x230)]-_0x4ec53f*0x2),'height':Math['max'](0x1,_0x52919f[_0x577113(0x1ee)]-_0x4ec53f*0x2)};}function yr(_0x385d07,_0x292269){const _0x3e8b43=_0x499525;let _0x42abf8=-0x1/0x2;return{'left':_0x42abf8,'top':_0x42abf8,'width':Math['max'](0x1,_0x385d07['width']),'height':Math[_0x3e8b43(0x22b)](0x1,_0x385d07[_0x3e8b43(0x1ee)]),'radius':Math[_0x3e8b43(0x22b)](0x0,_0x292269[_0x3e8b43(0x384)]-_0x292269['strokeWidth']/0x2)};}function br(_0x4172ac,_0x3bfe35){const _0x568d31=_0x499525;return typeof _0x4172ac==_0x568d31(0x385)&&Number[_0x568d31(0x24d)](_0x4172ac)&&_0x4172ac>0x0?_0x4172ac:_0x3bfe35;}function _0x1a29(){const _0x4591c4=['_canvasPopupService','offsetWidth','typeOptions','getElementData','dispose$','boards-chart-ui.candlestick.close','markNotReady','error','ParetoBarSeries','strokeStyle','Chart','_showPopupForSelection','createElement','registerItem','changeDataSource','_domLayerService','clientWidth','chartElement','_applyHostStyle','boards-chart-ui.common.value','108YqJily','UNIVER_BOARD','left','clip','_chartEventHandlers','_adapter','boards-chart-ui.chord.target','isDarkMode','disposeWithMe','trendline','boards-chart-ui.section.chord','tab','getHostStyle','activeRuntimeModel','ensureChartModel','Boxplot','Dom','min','boards-chart-ui.candlestick.columnsError','_syncSelectionState','targetUnitId','initialRect','find','getScene','unsubscribe','dataSources','span','_getBoardsUIConfig','univer-flex\x20univer-h-0\x20univer-min-h-full\x20univer-w-full\x20univer-flex-col\x20univer-overflow-hidden\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','isTransforming','updateItem','bottom','top','_closePopup','bind','focusedId','boards-chart-ui.common.setup','keys','updateFrameStyle','setConfig','getActivePageId','_bindChartEventHandlers','fillStyle','anonymous','_requestSnapshotForObject','activeSession$','_snapshotRefreshers','match','747943mKNYCJ','version','_disposeChartEventSubscriptions','_syncPanel','UNIVER_BOARDS_CHART_UI_PLUGIN','programmatic','anchorRect$','length','_renderModelManager','markReady','_chartEventSubscriptions','overflow','dataSource','univer-w-full\x20!univer-min-w-0','_renderContext','getConfig','backgroundColor','1300qShtor','boards-chart-ui.common.verticalAxis','stylizeSpec','stroke','272BaRkOp','_buildPopupSelectionKey','value','_registerAdapter','tools','_sidePanelService','small','axis','setElementEditMode','VerticalAxis','innerHeight','157347XSEKBQ','isRowDirection','from','InvalidCandlestickData','config$','then','_attachScheduled','boards-chart-ui.dataEditor.updateFailed','_activeEditOverlay','additionalRenderAdapters','invalidateChart','_config','parseInt','image','_renderManagerService','style$','\x20has\x20no\x20render\x20config.','resolve','mode','_setActiveEditOverlay','ChartAndAxisTitles','supports','PieStyle','_appendRenderAdapter','wordCloud','route','fill','_boardCanvasPopManagerService','call','add','1.0.0-beta.2','elementId','min(1120px,\x20calc(100vw\x20-\x2032px))','_getChartRuntimeKey','HorizontalAxis','zIndex','getInfo','getOwnPropertyDescriptor','Waterfall','snapshotUpdated$','createRenderSpec','push','toSpec','_drawChartImage','chart','univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4\x20univer-p-1','selectedIds','!univer-w-36\x20!univer-min-w-0','boards-chart-ui.common.chartAndAxisTitles','legend','status','themeBorderColor','borderColor','select','source','ParetoLineSeries','radar','boards-chart-ui.common.switchRowColumn','deepClone','every','preventDefault','flipX','restore','_notifyScene','EmptyData','IndicatorLine','_activeChart','naturalHeight','interactionSurfaceActive$','_componentManager','elementRemove$','forEach','key','boards-chart-ui.common.legend','getValue','translate','boards-chart-ui.section.paretoBar','_attachNativeLoadHandlers','_clearPopupIfSelectionChanged','_renderService','board.operation.chart.open-data-editor','board-chart-style-panel','clientX','render','_updateFrameStyle','axisId','radius','number','default','_univerInstanceService','titles','_popupSessionKey','_createChartRenderInstanceContext','chartInvalidated$','register','scaleY','258170ZUIMKo','_clearPopup','button','closePath','getElement','_snapshotService','_chartUIService','RightVerticalAxis','board.chart.floating-toolbar','_init','boards-chart-ui.common.customize','setFocusedSwimlaneLane','border-box','manual','Radar','innerWidth','checkMounted','boards-chart-ui.section.histogram','Style','popup','boards-chart-ui.chartTypes.','split','getDataSource','chartIdByElementId','config','boards-chart-ui.candlestick.low','boards-chart-ui.section.gridlinesAndTicks','removePopup','rgb(','board-chart-floating-toolbar','Histogram','doubleClick','showFloatMenu','Series','board-chart.snapshot-renderer','iterator','localPoint','onReady','resourceService','refreshChartModel','boards-chart-ui.section.indicatorLine','absolute','titleKey','Gauge','univer-p-4\x20univer-text-sm\x20univer-text-gray-500\x20dark:!univer-text-gray-400','subscribeEvent','_elementStateService','join','Pareto','_activePanelDisposable','_isPopupSelectionStillActive','onDispose$','getState','clearControl$','includes','slice','boards-chart-ui.common.chartStyle','boards-chart-element-float-menu','createChartInstance','boards-chart-ui.common.editData','quickToolbar','labelId','registerRenderModule','READY','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','boards-chart-ui.section.funnel','_clearHiddenSelectedTarget','current','model','boards-chart-ui.common.category','rgba(255,\x20255,\x20255,\x200.18)','delete','emitEvent','exportImage','skipNextObservers','type','preparePaste','getActiveSession','board-chart.ui.service','values','border','Axes','getFrameStyle','getSnapshot','close','transformByState','boards-chart-ui.common.tableDataEmpty','_localeService','_openFloatMenu','_commandService','getDataSourceSharingCount','Relation','defineProperty','setActiveChartById','element','boards-chart-ui.candlestick.high','_configService','boards-chart-ui.common.series','string','pending','elementDataItem','Chord','_boardElementService','boards-chart-ui.config','params','registerCommand','extraProps','style','_interactionSurfaceService','elementAdd$','preserveTransform','board-chart.data-editor-dialog','board-chart-setup-panel','executeChartUpdateConfig','getObjectIncludeInGroup','div','plan','_element','borderRadius','UnknownOption','LineAndArea','board-chart-active','boards-chart-ui.common.apply','has','indicatorLine','color','_frameStyle','set','subscribe','rect','univer-flex\x20univer-justify-end\x20univer-gap-2','pareto','_scheduleAttachObjectDoubleClicks','boards-chart-ui.section.sunburst','boards-chart-ui.common.insertChartFailed','getUnit','Legend','height','Sunburst','getRenderColor','crossOrigin','executeCommand','save','getChart','elementUpdate$','complete','univer-shrink-0\x20univer-px-3','boards-chart-ui.section.waterfall','strokeWidth','clientHeight','position','lineWidth','chartModelRemoved$','_uiStateService','darkMode','onerror','SVG','onInserted','pipe','Column','Treemap','relation','applyHostStyle','boards-chart-ui.section.lineAndArea','Bubble','hit','bounds','moveTo','boards-chart-ui.common.editChart','state$','changeEnd$','pluginName','dispose','row','catch','_modelService','univer-relative\x20univer-h-full\x20univer-w-full\x20univer-overflow-hidden','registerChartInstance','_syncActiveChart','onEditData','children','elements','scene','vertical','clear','Select','Trendline','311546KGSsWX','heatmap','getElementOrder','_attachObjectDoubleClicks','_activeLayerDisposable','GridlinesAndTicks','boards-chart-ui.common.deleteChart','_chartThemeService','hidden','resize','next','max','code','Line','_chartElementEditMode','map','width','right','filter','nativeEvent','get','elementIdMap','visible','subUnitId','target','barStyle','onDblclick$','setActiveChartRuntime','onClose','_subscribeChartEvents','_popupSelectionKey','changeChartSource','engine','Sankey','_host','some','addPopup','_popupRuntimeKey','ready','_activePanelKey','_bindChartEventHandler','toPrimitive','onCancel','img','chartId','isFinite','univer-flex\x20univer-flex-col\x20univer-gap-2','updateDataForChart','angle','main','name','boards-chart-ui.section.gauge','_native','_clearActiveEditOverlay','click','referenced','onCommandExecuted','getObject','boards-chart-ui.common.heatmap','getRect','@univerjs-pro/boards-chart-ui','board-chart.dialog.data-editor','arc','_chartRenderService','getCacheKey','src','unitId','chartStyle','borderWidth','_resourceService','_injector','createControl$','function','requestSnapshot','format','_resolveFrameStyle','elementRemoved','activeTool','4420860WBGWdT','Image','Board\x20chart\x20snapshot\x20rendering\x20requires\x20a\x20browser\x20document.','lineTo','_disposeChartEventSubscription','primary','top-center','payload','chartType','Failed\x20to\x20render\x20board\x20chart\x20snapshot:\x20','Candlestick','boards-chart-ui.sunburst.hierarchy','_drawFrameStroke','Funnel','boards-chart-ui.common.horizontalAxis','_popupDisposable','boards-chart-ui.section.treemap','getDataEditState','onStarting','context','getBoundingClientRect','dataUrl','createRenderInput','scaleX','inline','baseOn','4386240YbDSWp','boards-chart-ui.section.wordCloud','ChartStyle','lineAndArea','column','makeDirty','_objectDblclickDisposables','waterfallStyle','boards-chart-ui.chord.source','selectElements','_adapterRegistry','object','selectionChange','univer-box-border\x20univer-flex\x20univer-h-12\x20univer-items-center\x20univer-gap-1\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-2\x20univer-py-1.5\x20univer-text-gray-700\x20univer-shadow-lg\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-100','onload','asObservable','syncLayout','boards-chart-ui.common.label','changeStart$','Heatmap','boards-chart-ui.common.chartType','updateElement','_openEditSession','_removeRenderAdapter','board-chart','section','activeRuntimeModel$','issue','open','univer-text-xs\x20univer-text-red-600\x20dark:!univer-text-red-400','_activeLayerId','chartModelAdded$','dataSourceId','_instanceService','scroll','_editSessionService','getChartModel','_chartEventDisposables','getElementById','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','boards-chart-ui.section.candlestick','registerAdapter','getChartIdsByDataSource','symbol','setStyle','_clearActiveLayer','_activeSession$','ghost','transformStart','boards-chart-ui.common.insert','seriesId','toolbar','charts','boxSizing','_draw','WordCloud','size','_chartInstanceMap','_closeActivePanel','isElementEditModeActive','data:image/svg+xml;charset=utf-8,%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20100%22%3E%0A%20%20%3Crect%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%22159%22%20height%3D%2299%22%20rx%3D%225%22%20fill%3D%22%23f8fafc%22%20stroke%3D%22%2394a3b8%22%2F%3E%0A%20%20%3Cpath%20d%3D%22M26%2070V47M52%2070V32M78%2070V55M104%2070V40M130%2070V25%22%20stroke%3D%22%232563eb%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%2F%3E%0A%20%20%3Cpath%20d%3D%22M20%2076H140%22%20stroke%3D%22%23cbd5e1%22%20stroke-width%3D%222%22%2F%3E%0A%3C%2Fsvg%3E%0A','_watchSnapshotUpdates','transparent','univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','boards-chart-ui.common.valueField','WaterfallSeries'];_0x1a29=function(){return _0x4591c4;};return _0x1a29();}function xr(_0x1eb3a4){const _0x2b6628=_0x499525;var _0x3c0cf7;let _0x499d57=(_0x3c0cf7=_0x1eb3a4[_0x2b6628(0x30d)](/^#([\da-f]{3}|[\da-f]{6})$/i))==null?void 0x0:_0x3c0cf7[0x1];if(_0x499d57){let _0x2527d6=_0x499d57[_0x2b6628(0x315)]===0x3?_0x499d57[_0x2b6628(0x3a3)]('')[_0x2b6628(0x22f)](_0x47dce=>''+_0x47dce+_0x47dce)['join'](''):_0x499d57;return _0x2b6628(0x3aa)+Number[_0x2b6628(0x33a)](_0x2527d6[_0x2b6628(0x19c)](0x0,0x2),0x10)+',\x20'+Number[_0x2b6628(0x33a)](_0x2527d6[_0x2b6628(0x19c)](0x2,0x4),0x10)+',\x20'+Number[_0x2b6628(0x33a)](_0x2527d6[_0x2b6628(0x19c)](0x4,0x6),0x10)+')';}let _0x456d90=document['createElement'](_0x2b6628(0x2f8));return _0x456d90[_0x2b6628(0x1d0)][_0x2b6628(0x1e2)]=_0x1eb3a4,_0x456d90['style']['color']||_0x1eb3a4;}let q=class extends _0x213704{constructor(_0x1dbae4,_0xf825ba,_0x3f3fa2){const _0x25c77a=_0x499525;super(),this[_0x25c77a(0x1bc)]=_0x1dbae4,this[_0x25c77a(0x227)]=_0xf825ba,this['_renderModelManager']=_0x3f3fa2,z(this,_0x25c77a(0x2c1),new Map()),z(this,_0x25c77a(0x22e),new Map()),z(this,_0x25c77a(0x2e2),new Map()),z(this,'_chartEventSubscriptions',new Map());}[_0x499525(0x19f)](_0xdd89b5){const _0x8dad8e=_0x499525;return _0xdd89b5?this[_0x8dad8e(0x316)][_0x8dad8e(0x19f)](_0xdd89b5,this[_0x8dad8e(0x38a)]()):this[_0x8dad8e(0x316)][_0x8dad8e(0x19f)]();}[_0x499525(0x216)](_0x33dfd3,_0x231f11,_0x2f042f){const _0x27adaf=_0x499525;let _0x16256f=this[_0x27adaf(0x34f)](_0x33dfd3,_0x231f11),_0xbba8ce=this[_0x27adaf(0x2c1)]['get'](_0x16256f);return _0xbba8ce&&_0xbba8ce!==_0x2f042f&&(this[_0x27adaf(0x310)](_0x16256f),_0xbba8ce[_0x27adaf(0x211)]()),this['_chartInstanceMap'][_0x27adaf(0x1e4)](_0x16256f,_0x2f042f),_0x2f042f[_0x27adaf(0x32b)](this[_0x27adaf(0x22e)]['get'](_0x16256f)===!0x0),this['_bindChartEventHandlers'](_0x16256f,_0x2f042f),{'dispose':()=>{const _0x5afa06=_0x27adaf;this[_0x5afa06(0x2c1)][_0x5afa06(0x234)](_0x16256f)===_0x2f042f&&(this[_0x5afa06(0x310)](_0x16256f),this['_chartInstanceMap'][_0x5afa06(0x1ac)](_0x16256f));}};}[_0x499525(0x32b)](_0x369bf7,_0x9395e,_0x12606c){const _0x455cda=_0x499525;var _0x5ea828;let _0xff87de=this[_0x455cda(0x34f)](_0x369bf7,_0x9395e);_0x12606c?this[_0x455cda(0x22e)][_0x455cda(0x1e4)](_0xff87de,!0x0):this[_0x455cda(0x22e)]['delete'](_0xff87de),(_0x5ea828=this['_chartInstanceMap'][_0x455cda(0x234)](_0xff87de))==null||_0x5ea828['setElementEditMode'](_0x12606c);}[_0x499525(0x2c3)](_0xc34d54,_0x4ccaa8){const _0x108377=_0x499525;return this['_chartElementEditMode'][_0x108377(0x234)](this[_0x108377(0x34f)](_0xc34d54,_0x4ccaa8))===!0x0;}['on'](_0x55552b,_0x2998f9,_0x48923d,_0x137840){const _0x4f392a=_0x499525;let _0x4c64f5=this['_getChartRuntimeKey'](_0x55552b,_0x2998f9),_0x57b9fd=this['_chartEventHandlers'][_0x4f392a(0x234)](_0x4c64f5);_0x57b9fd||(_0x57b9fd=new Map(),this['_chartEventHandlers'][_0x4f392a(0x1e4)](_0x4c64f5,_0x57b9fd));let _0x1bfef3=_0x57b9fd[_0x4f392a(0x234)](_0x48923d);_0x1bfef3||(_0x1bfef3=new Set(),_0x57b9fd['set'](_0x48923d,_0x1bfef3)),_0x1bfef3[_0x4f392a(0x34b)](_0x137840);let _0x34d30f=this['_chartInstanceMap'][_0x4f392a(0x234)](_0x4c64f5);return _0x34d30f&&this['_bindChartEventHandler'](_0x4c64f5,_0x34d30f,_0x48923d,_0x137840),{'dispose':()=>{const _0x346d83=_0x4f392a;let _0x8db6eb=this['_chartEventHandlers'][_0x346d83(0x234)](_0x4c64f5),_0x16e698=_0x8db6eb==null?void 0x0:_0x8db6eb['get'](_0x48923d);_0x16e698==null||_0x16e698[_0x346d83(0x1ac)](_0x137840),(_0x16e698==null?void 0x0:_0x16e698[_0x346d83(0x2c0)])===0x0&&(_0x8db6eb==null||_0x8db6eb[_0x346d83(0x1ac)](_0x48923d)),(_0x8db6eb==null?void 0x0:_0x8db6eb[_0x346d83(0x2c0)])===0x0&&this[_0x346d83(0x2e2)][_0x346d83(0x1ac)](_0x4c64f5),this[_0x346d83(0x272)](_0x4c64f5,_0x48923d,_0x137840);}};}[_0x499525(0x284)](_0x20ff05){const _0x53fcd1=_0x499525;let _0x569f97=_0x20ff05['model'][_0x53fcd1(0x3a6)];if(!_0x569f97)throw Error('Board\x20chart\x20'+_0x20ff05[_0x53fcd1(0x24c)]+_0x53fcd1(0x33e));let _0x2fd581=this['_localeService']['getDirection']();return{'chartConfig':_0x569f97,'chartStyle':_0x1ab5cb({..._0x20ff05[_0x53fcd1(0x1a9)][_0x53fcd1(0x1d0)],'runtime':_0x20ff05[_0x53fcd1(0x1a9)]['getRuntimeContext'](_0x2fd581),'direction':_0x2fd581},_0x569f97[_0x53fcd1(0x1b0)])};}[_0x499525(0x356)](_0x3568e5,_0x1ba426,_0x296c9b){const _0x4fb153=_0x499525;let {chartConfig:_0x35102f,chartStyle:_0x497f89}=this[_0x4fb153(0x284)](_0x3568e5),_0x54b446=this[_0x4fb153(0x316)]['getCurrentRenderModel']();return{'spec':_0x54b446[_0x4fb153(0x321)](_0x54b446[_0x4fb153(0x358)](_0x35102f,_0x497f89),{'chartConfig':_0x35102f,'chartStyle':_0x497f89,'chartInstance':_0x296c9b},_0x1ba426),'chartConfig':_0x35102f,'chartStyle':_0x497f89,'hostStyle':this[_0x4fb153(0x2ea)](_0x497f89)};}[_0x499525(0x2ea)](_0x3d8ec4){const _0x16cdfc=_0x499525;return _0x4da770({'style':_0x3d8ec4,'getRenderColor':_0x382bee=>this['_chartThemeService'][_0x16cdfc(0x1f0)](_0x382bee)});}[_0x499525(0x207)](_0x37af11,_0x317c2a){const _0x532e06=_0x499525;var _0xe9d622;_0x37af11[_0x532e06(0x1d0)][_0x532e06(0x1b5)]=(_0xe9d622=_0x317c2a['border'])!=null&&_0xe9d622[_0x532e06(0x1e2)]&&_0x317c2a['border']['width']?_0x317c2a[_0x532e06(0x1b5)][_0x532e06(0x230)]+'px\x20solid\x20'+xr(_0x317c2a[_0x532e06(0x1b5)][_0x532e06(0x1e2)]):'',_0x37af11[_0x532e06(0x1d0)][_0x532e06(0x31e)]=xr(_0x317c2a[_0x532e06(0x348)]??'transparent'),_0x37af11['style'][_0x532e06(0x1db)]=_0x317c2a[_0x532e06(0x384)]?_0x317c2a[_0x532e06(0x384)]+'px':gr+'px',_0x37af11[_0x532e06(0x1d0)][_0x532e06(0x319)]=_0x532e06(0x228),_0x37af11[_0x532e06(0x1d0)]['boxSizing']='border-box';}['_createChartRenderInstanceContext'](){const _0x4a146e=_0x499525;return{'resolveHostStyle':({style:_0x18f5ae})=>({'fill':this[_0x4a146e(0x2ea)](_0x18f5ae)[_0x4a146e(0x348)]}),'resolveRenderBackgroundColor':({hostStyle:_0x1cb747})=>_0x1cb747[_0x4a146e(0x348)],'prepareSpec':({mode:_0x467736,spec:_0x54f28e})=>_0x467736===_0x4a146e(0x33b)?{..._0x54f28e,'animation':!0x1,'tooltip':{'show':!0x1}}:_0x54f28e};}[_0x499525(0x307)](_0x576401,_0x1c438b){const _0x14ebc0=_0x499525;let _0x6d0f13=this['_chartEventHandlers'][_0x14ebc0(0x234)](_0x576401);_0x6d0f13&&_0x6d0f13[_0x14ebc0(0x375)]((_0x24ed5b,_0x3f9af0)=>{const _0x55eb8f=_0x14ebc0;_0x24ed5b[_0x55eb8f(0x375)](_0x4828b9=>this[_0x55eb8f(0x248)](_0x576401,_0x1c438b,_0x3f9af0,_0x4828b9));});}['_bindChartEventHandler'](_0x365b4f,_0x839d29,_0x3c6377,_0x1354e8){const _0x2b3f21=_0x499525;let _0x477d6d=this[_0x2b3f21(0x318)][_0x2b3f21(0x234)](_0x365b4f);_0x477d6d||(_0x477d6d=new Map(),this[_0x2b3f21(0x318)]['set'](_0x365b4f,_0x477d6d));let _0x1a18dd=_0x477d6d[_0x2b3f21(0x234)](_0x3c6377);_0x1a18dd||(_0x1a18dd=new Map(),_0x477d6d[_0x2b3f21(0x1e4)](_0x3c6377,_0x1a18dd)),!_0x1a18dd[_0x2b3f21(0x1e0)](_0x1354e8)&&_0x1a18dd[_0x2b3f21(0x1e4)](_0x1354e8,_0x839d29['on'](_0x3c6377,_0x1354e8));}[_0x499525(0x272)](_0x51cc8c,_0x772e52,_0x2bc170){const _0x25ef23=_0x499525;var _0x3f45d9,_0x2002be;let _0x3785d4=(_0x3f45d9=this[_0x25ef23(0x318)][_0x25ef23(0x234)](_0x51cc8c))==null?void 0x0:_0x3f45d9[_0x25ef23(0x234)](_0x772e52);_0x3785d4==null||(_0x2002be=_0x3785d4[_0x25ef23(0x234)](_0x2bc170))==null||_0x2002be[_0x25ef23(0x211)](),_0x3785d4==null||_0x3785d4[_0x25ef23(0x1ac)](_0x2bc170);}[_0x499525(0x310)](_0x408d58){const _0x4870b4=_0x499525;let _0x30722d=this[_0x4870b4(0x318)]['get'](_0x408d58);_0x30722d==null||_0x30722d[_0x4870b4(0x375)](_0x5b99fa=>{const _0x649653=_0x4870b4;_0x5b99fa[_0x649653(0x375)](_0x421e55=>_0x421e55[_0x649653(0x211)]()),_0x5b99fa[_0x649653(0x21d)]();}),this[_0x4870b4(0x318)][_0x4870b4(0x1ac)](_0x408d58);}[_0x499525(0x34f)](_0x24f483,_0x56b05f){return _0x24f483+'::'+_0x56b05f;}['dispose'](){const _0x4086f9=_0x499525;this[_0x4086f9(0x2c1)][_0x4086f9(0x375)](_0x547b61=>_0x547b61['dispose']()),this['_chartInstanceMap'][_0x4086f9(0x21d)](),this[_0x4086f9(0x22e)][_0x4086f9(0x21d)](),this['_chartEventHandlers'][_0x4086f9(0x21d)](),Array[_0x4086f9(0x330)](this[_0x4086f9(0x318)][_0x4086f9(0x303)]())[_0x4086f9(0x375)](_0x419469=>this['_disposeChartEventSubscriptions'](_0x419469)),super[_0x4086f9(0x211)]();}};q=V([B(0x0,_0x496119(_0x4cc5cd)),B(0x1,_0x496119(_0x1b68cc)),B(0x2,_0x41c8ae)],q);let Sr=class extends _0x213704{constructor(_0x4946b0,_0x2746dc,_0x372d11,_0x401836,_0x4b8572,_0x43c7c5,_0x1c4d44){const _0x469945=_0x499525;super(),this[_0x469945(0x31c)]=_0x4946b0,this[_0x469945(0x2ab)]=_0x2746dc,this[_0x469945(0x328)]=_0x372d11,this[_0x469945(0x214)]=_0x401836,this[_0x469945(0x37d)]=_0x4b8572,this[_0x469945(0x394)]=_0x43c7c5,this[_0x469945(0x1bc)]=_0x1c4d44,z(this,_0x469945(0x247),null),z(this,_0x469945(0x196),null),z(this,_0x469945(0x336),null),this[_0x469945(0x2e6)](this[_0x469945(0x2ab)]['activeSession$'][_0x469945(0x1e5)](_0x5b150f=>this[_0x469945(0x311)](_0x5b150f)));}[_0x499525(0x211)](){const _0x553776=_0x499525;this['_closeActivePanel'](),super[_0x553776(0x211)]();}[_0x499525(0x311)](_0x379193){const _0x53d369=_0x499525;var _0x48cde6;if(!_0x379193||_0x379193[_0x53d369(0x262)]!==this[_0x53d369(0x31c)][_0x53d369(0x262)]){this[_0x53d369(0x2c2)]();return;}let _0x21d5a4=this[_0x53d369(0x214)][_0x53d369(0x2ec)](_0x379193[_0x53d369(0x262)],_0x379193['chartId']);if(!_0x21d5a4){this['_closeActivePanel']();return;}let _0x2ad05a=[ar,_0x379193['unitId'],_0x379193[_0x53d369(0x237)],_0x379193[_0x53d369(0x34d)]][_0x53d369(0x194)](':');if(this[_0x53d369(0x247)]===_0x2ad05a){this[_0x53d369(0x214)]['setActiveChartRuntime'](_0x21d5a4),this[_0x53d369(0x341)](_0x379193['unitId'],_0x379193[_0x53d369(0x24c)]);return;}(_0x48cde6=this[_0x53d369(0x196)])==null||_0x48cde6[_0x53d369(0x211)](),this[_0x53d369(0x214)]['setActiveChartRuntime'](_0x21d5a4),this[_0x53d369(0x341)](_0x379193[_0x53d369(0x262)],_0x379193[_0x53d369(0x24c)]),this[_0x53d369(0x247)]=_0x2ad05a,this['_activePanelDisposable']=this[_0x53d369(0x328)][_0x53d369(0x2a4)]({'id':ar,'header':{'title':this[_0x53d369(0x1bc)]['t']('boards-chart-ui.common.editChart')},'width':0x184,'children':{'label':ar,'unitId':_0x379193['unitId'],'subUnitId':_0x379193[_0x53d369(0x237)],'elementId':_0x379193[_0x53d369(0x34d)],'chartId':_0x379193[_0x53d369(0x24c)]},'onClose':_0x4709af=>{const _0x5e60de=_0x53d369;this[_0x5e60de(0x247)]===_0x2ad05a&&(this[_0x5e60de(0x247)]=null,this['_activePanelDisposable']=null,this[_0x5e60de(0x255)](),this[_0x5e60de(0x214)][_0x5e60de(0x23b)](null),_0x4709af==='manual'&&this[_0x5e60de(0x2ab)]['close'](_0x5e60de(0x39b)));}});}[_0x499525(0x2c2)](){const _0x457610=_0x499525;var _0x2ffb7c;if(!this['_activePanelKey']){this[_0x457610(0x255)]();return;}(_0x2ffb7c=this[_0x457610(0x196)])==null||_0x2ffb7c['dispose'](),this[_0x457610(0x196)]=null,this['_activePanelKey']=null,this['_clearActiveEditOverlay'](),this['_modelService'][_0x457610(0x23b)](null);}[_0x499525(0x341)](_0x5d58d9,_0x2b7835){const _0x58a27f=_0x499525;let _0x2d60ee=this[_0x58a27f(0x336)];((_0x2d60ee==null?void 0x0:_0x2d60ee['unitId'])!==_0x5d58d9||_0x2d60ee[_0x58a27f(0x24c)]!==_0x2b7835)&&(this[_0x58a27f(0x255)](),this[_0x58a27f(0x336)]={'unitId':_0x5d58d9,'chartId':_0x2b7835},this[_0x58a27f(0x37d)]['setElementEditMode'](_0x5d58d9,_0x2b7835,!0x0));}[_0x499525(0x255)](){const _0x8986f6=_0x499525;let _0x199bbc=this[_0x8986f6(0x336)];_0x199bbc&&(this[_0x8986f6(0x336)]=null,this[_0x8986f6(0x37d)][_0x8986f6(0x32b)](_0x199bbc['unitId'],_0x199bbc[_0x8986f6(0x24c)],!0x1));}};Sr=V([B(0x1,_0x496119(H)),B(0x2,_0x496119(_0x30f374)),B(0x3,_0x496119(_0x37b64c)),B(0x4,_0x496119(q)),B(0x5,U),B(0x6,_0x496119(_0x4cc5cd))],Sr);var Cr=class extends _0x213704{constructor(_0x396cbe,_0x4874b4,_0x212c37){const _0x343c01=_0x499525;super(),this['chartId']=_0x396cbe,this['_host']=_0x4874b4,this[_0x343c01(0x2dc)]=_0x212c37,z(this,_0x343c01(0x340),_0xa8a587[_0x343c01(0x2ee)]);}[_0x499525(0x25b)](){const _0x28a92f=_0x499525;return{'width':Math[_0x28a92f(0x22b)](0x1,this[_0x28a92f(0x242)][_0x28a92f(0x2da)]),'height':Math[_0x28a92f(0x22b)](0x1,this[_0x28a92f(0x242)][_0x28a92f(0x1fa)])};}[_0x499525(0x2b4)](_0x4c1fa6){const _0x10d507=_0x499525;this[_0x10d507(0x2dc)](this[_0x10d507(0x242)],_0x4c1fa6);}async['ensureMount'](){const _0x5e4500=_0x499525;return this[_0x5e4500(0x242)];}[_0x499525(0x39e)](){return!0x0;}[_0x499525(0x298)](){}[_0x499525(0x317)](){}[_0x499525(0x2d0)](){}};function wr({chartElement:_0x1132ed,chartId:_0x5ee556,unitId:_0x4d97dc}){const _0x571376=_0x499525;let _0x33779c=_0x1acdce(null),_0x1deb74=_0x11c57d(_0x37b64c),_0x7fceea=_0x11c57d(q),_0x4747be=_0x11c57d(_0x4cc5cd);return _0x3d65d5(()=>{const _0x29bca0=_0x30da;let _0x578849=_0x33779c[_0x29bca0(0x1a8)];if(!_0x578849)return;let _0x4500e9=_0x1deb74['ensureChartModel'](_0x4d97dc,_0x5ee556);if(!_0x4500e9)return;_0x1deb74[_0x29bca0(0x23b)](_0x4500e9);let _0x229e79=new Cr(_0x5ee556,_0x578849,(_0xc27f05,_0x35a582)=>_0x7fceea[_0x29bca0(0x207)](_0xc27f05,{'fill':_0x35a582[_0x29bca0(0x348)]??_0x29bca0(0x2c6)})),_0x435fac=_0x7fceea[_0x29bca0(0x19f)](_0xa8a587[_0x29bca0(0x2ee)]),_0x3f45c3=_0x7fceea[_0x29bca0(0x216)](_0x4d97dc,_0x5ee556,_0x435fac);_0x435fac[_0x29bca0(0x300)](_0x229e79);let _0x5a8b27=_0x5e1c78([_0x4500e9[_0x29bca0(0x1a9)][_0x29bca0(0x332)],_0x4500e9[_0x29bca0(0x1a9)][_0x29bca0(0x33d)],_0x4747be['direction$']])[_0x29bca0(0x203)](_0x405dcd(([_0x4e8691])=>_0x4e8691!=null))[_0x29bca0(0x1e5)](()=>{const _0x54f469=_0x29bca0;let {chartConfig:_0x4812f8,chartStyle:_0x354e7d}=_0x7fceea['createRenderInput'](_0x4500e9);Tr(_0x578849,_0x1132ed,_0x354e7d,_0x7fceea),_0x435fac['render']({'chartId':_0x5ee556,'config':_0x4812f8,'style':_0x354e7d})[_0x54f469(0x213)](()=>{});});return()=>{const _0x4da877=_0x29bca0;var _0x5da3f7;_0x5a8b27[_0x4da877(0x2f6)](),_0x3f45c3[_0x4da877(0x211)](),_0x435fac[_0x4da877(0x211)](),_0x229e79[_0x4da877(0x211)](),((_0x5da3f7=_0x1deb74[_0x4da877(0x2eb)])==null?void 0x0:_0x5da3f7[_0x4da877(0x262)])===_0x4d97dc&&_0x1deb74[_0x4da877(0x2eb)][_0x4da877(0x24c)]===_0x5ee556&&_0x1deb74['setActiveChartRuntime'](null);};},[_0x1132ed,_0x5ee556,_0x4747be,_0x1deb74,_0x7fceea,_0x4d97dc]),_0x5e799c(_0x571376(0x1d8),{'className':_0x571376(0x215),'data-board-chart-dom-renderer':_0x5ee556,'children':_0x5e799c(_0x571376(0x1d8),{'ref':_0x33779c,'data-board-chart-dom-content-host':_0x5ee556})});}function Tr(_0x564803,_0x1bce15,_0x588040,_0x5113dc){const _0x49c41b=_0x499525;let _0x1dcfe3=_0x5113dc['getHostStyle'](_0x588040)['fill'],_0x385e76=_r({'chartStyle':_0x588040,'chartElement':_0x1bce15,'hostFill':_0x1dcfe3}),_0x3dca35=Math[_0x49c41b(0x22b)](0x0,_0x385e76[_0x49c41b(0x1f9)]);_0x564803['style'][_0x49c41b(0x1fb)]=_0x49c41b(0x3b7),_0x564803['style']['left']=_0x3dca35+'px',_0x564803[_0x49c41b(0x1d0)][_0x49c41b(0x2fe)]=_0x3dca35+'px',_0x564803[_0x49c41b(0x1d0)]['right']=_0x3dca35+'px',_0x564803[_0x49c41b(0x1d0)][_0x49c41b(0x2fd)]=_0x3dca35+'px',_0x564803[_0x49c41b(0x1d0)]['backgroundColor']=_0x385e76['fill'],_0x564803['style'][_0x49c41b(0x1db)]=Math['max'](0x0,_0x385e76[_0x49c41b(0x384)]-_0x3dca35)+'px',_0x564803[_0x49c41b(0x1d0)]['overflow']=_0x49c41b(0x228),_0x564803[_0x49c41b(0x1d0)][_0x49c41b(0x2bd)]=_0x49c41b(0x39a);}const Er=_0x4ed68c(_0x499525(0x3b0)),Dr=0x0;function Or(_0x6cdd10){return{..._0x6cdd10,'borderWidth':0x0};}var kr=class{constructor(_0x269532,_0x432d53){const _0x3ea76f=_0x499525;this[_0x3ea76f(0x37d)]=_0x269532,this[_0x3ea76f(0x316)]=_0x432d53;}async[_0x499525(0x381)](_0x460e6a,_0x214d45){const _0x18a717=_0x499525;if(typeof document>'u')throw TypeError(_0x18a717(0x270));let {chartConfig:_0x4aa720,chartStyle:_0x52278f}=this['_renderService'][_0x18a717(0x284)](_0x214d45),_0x5a92c4=Or(_0x52278f);if(_0x460e6a['format']===_0x2b715c[_0x18a717(0x201)])return(await this[_0x18a717(0x316)][_0x18a717(0x1ae)]({'chartId':_0x214d45['chartId'],'config':_0x4aa720,'style':_0x5a92c4,'width':_0x460e6a[_0x18a717(0x230)],'height':_0x460e6a[_0x18a717(0x1ee)]},{'format':_0x460e6a[_0x18a717(0x26a)]}))['dataUrl'];let _0x741c87=new _0x49c6c9(_0x214d45[_0x18a717(0x24c)],{'width':_0x460e6a[_0x18a717(0x230)],'height':_0x460e6a[_0x18a717(0x1ee)]}),_0x21d1b1=this[_0x18a717(0x37d)]['createChartInstance'](_0xa8a587[_0x18a717(0x26f)]);try{_0x21d1b1['bind'](_0x741c87),await _0x21d1b1[_0x18a717(0x381)]({'chartId':_0x214d45[_0x18a717(0x24c)],'config':_0x4aa720,'style':_0x5a92c4});let _0x3bff8b=_0x741c87['getDataUrl']();if(!_0x3bff8b)throw Error(_0x18a717(0x277)+_0x214d45['unitId']+'/'+_0x214d45[_0x18a717(0x24c)]);return _0x3bff8b;}finally{_0x21d1b1[_0x18a717(0x211)](),_0x741c87['dispose']();}}};let J=class extends _0x33d8f8{constructor(_0x38e024,_0x8239c6,_0x1eed6d,_0x2a46c5,_0x3c057a){super(_0x38e024,_0x8239c6,_0x3c057a??new kr(_0x1eed6d,_0x2a46c5));}[_0x499525(0x260)](_0x2107e5){const _0x278369=_0x499525;let _0x3f4dda=super[_0x278369(0x260)](_0x2107e5);return _0x2107e5[_0x278369(0x26a)]===_0x2b715c[_0x278369(0x201)]?_0x3f4dda+'::'+_0x2107e5[_0x278369(0x26a)]:_0x3f4dda;}};J=V([B(0x0,_0x496119(_0x4cc5cd)),B(0x1,_0x496119(_0x37b64c)),B(0x2,_0x496119(q)),B(0x3,_0x41c8ae),B(0x4,_0x202b18(Er))],J);let Ar=class extends _0x213704{constructor(_0x5b1f26,_0x17b239,_0x6378bb,_0x147172,_0x7b0b11){const _0x18b668=_0x499525;super(),this[_0x18b668(0x31c)]=_0x5b1f26,this['_editSessionService']=_0x17b239,this[_0x18b668(0x1cb)]=_0x6378bb,this[_0x18b668(0x2d9)]=_0x147172,this['_snapshotService']=_0x7b0b11,z(this,_0x18b668(0x2a6),null),z(this,'_activeLayerDisposable',null),z(this,_0x18b668(0x370),null),this[_0x18b668(0x2e6)](this[_0x18b668(0x2ab)][_0x18b668(0x30b)][_0x18b668(0x1e5)](_0x20143b=>this[_0x18b668(0x217)](_0x20143b)));}['dispose'](){const _0x129a63=_0x499525;this[_0x129a63(0x2b5)](),super['dispose']();}['_syncActiveChart'](_0x5a4f99){const _0x255c30=_0x499525;if(!_0x5a4f99||_0x5a4f99[_0x255c30(0x262)]!==this['_renderContext'][_0x255c30(0x262)]){this[_0x255c30(0x2b5)]();return;}let _0x24b149=this['_boardElementService'][_0x255c30(0x2cd)](_0x5a4f99[_0x255c30(0x262)],_0x5a4f99['subUnitId']),_0x241c06=_0x24b149[_0x5a4f99[_0x255c30(0x34d)]];if(!_0x241c06||_0x241c06[_0x255c30(0x1c3)][_0x255c30(0x1b0)]!==_0xdc726d[_0x255c30(0x2d4)]||_0x241c06[_0x255c30(0x1c3)]['chartId']!==_0x5a4f99['chartId']){this[_0x255c30(0x2b5)]();return;}let _0x1922c9=_0x477c18(_0x24b149,_0x241c06[_0x255c30(0x34d)]);if(!_0x1922c9){this[_0x255c30(0x2b5)]();return;}let _0x5b5966=_0x241c06[_0x255c30(0x1c3)],_0x5427a0=_0x5b5966[_0x255c30(0x24c)],_0x3a0d57=[_0x255c30(0x1de),_0x5a4f99[_0x255c30(0x262)],_0x5a4f99[_0x255c30(0x237)],_0x241c06['elementId']][_0x255c30(0x194)](':');if(this[_0x255c30(0x2a6)]===_0x3a0d57){this[_0x255c30(0x370)]={'chartId':_0x5427a0,'unitId':_0x5a4f99[_0x255c30(0x262)]},this[_0x255c30(0x2d9)][_0x255c30(0x2fc)](_0x3a0d57,{'rect':_0x1922c9,'content':()=>_0x5e799c(wr,{'chartId':_0x5427a0,'chartElement':_0x5b5966,'unitId':_0x5a4f99['unitId']})});return;}this['_clearActiveLayer'](),this[_0x255c30(0x2a6)]=_0x3a0d57,this[_0x255c30(0x370)]={'chartId':_0x5427a0,'unitId':_0x5a4f99[_0x255c30(0x262)]},this['_activeLayerDisposable']=this[_0x255c30(0x2d9)][_0x255c30(0x2d7)]({'id':_0x3a0d57,'unitId':_0x5a4f99[_0x255c30(0x262)],'subUnitId':_0x5a4f99[_0x255c30(0x237)],'elementId':_0x241c06[_0x255c30(0x34d)],'rect':_0x1922c9,'interactive':!0x0,'zIndex':0x1,'content':()=>_0x5e799c(wr,{'chartId':_0x5427a0,'chartElement':_0x5b5966,'unitId':_0x5a4f99[_0x255c30(0x262)]})});}['_clearActiveLayer'](){const _0x27e614=_0x499525;var _0x42ab76;let _0xd6fe5=this[_0x27e614(0x370)];(_0x42ab76=this[_0x27e614(0x224)])==null||_0x42ab76[_0x27e614(0x211)](),this[_0x27e614(0x224)]=null,this['_activeLayerId']=null,this[_0x27e614(0x370)]=null,_0xd6fe5&&this[_0x27e614(0x393)]['invalidateChart'](_0xd6fe5['unitId'],_0xd6fe5[_0x27e614(0x24c)],{'waitForConfig':!0x0});}};Ar=V([B(0x1,_0x496119(H)),B(0x2,_0x312cb0),B(0x3,_0x496119(_0x128dd4)),B(0x4,_0x496119(J))],Ar);let Y=class extends _0x213704{constructor(_0x585d1c,_0x158900,_0x272c0a,_0x28168b){const _0x3ccd06=_0x499525;super(),this[_0x3ccd06(0x1be)]=_0x585d1c,this[_0x3ccd06(0x393)]=_0x158900,this[_0x3ccd06(0x265)]=_0x272c0a,this['_modelService']=_0x28168b,this['_listenChartResourceMutations']();}['_listenChartResourceMutations'](){const _0xc7c1a=_0x499525;this[_0xc7c1a(0x2e6)](this[_0xc7c1a(0x1be)][_0xc7c1a(0x258)](_0x2efa27=>{const _0x1b2306=_0xc7c1a;if(_0x2efa27['id']===_0x25379f['id']){var _0x58c26c;let _0x17511e=_0x2efa27[_0x1b2306(0x1cd)];_0x17511e!=null&&_0x17511e['unitId']&&(_0x58c26c=_0x17511e[_0x1b2306(0x35a)])!=null&&_0x58c26c['id']&&(this['_shouldWaitForChartConfig'](_0x17511e)?this[_0x1b2306(0x393)][_0x1b2306(0x338)](_0x17511e[_0x1b2306(0x262)],_0x17511e[_0x1b2306(0x35a)]['id'],{'waitForConfig':!0x0}):this[_0x1b2306(0x393)]['invalidateChart'](_0x17511e['unitId'],_0x17511e[_0x1b2306(0x35a)]['id']));return;}if(_0x2efa27['id']===_0x3a8c3f['id']){var _0x4d2085;let _0x5bc514=_0x2efa27[_0x1b2306(0x1cd)];if(!(_0x5bc514!=null&&_0x5bc514[_0x1b2306(0x262)])||!((_0x4d2085=_0x5bc514['dataSource'])!=null&&_0x4d2085['id']))return;this[_0x1b2306(0x265)][_0x1b2306(0x2b2)](_0x5bc514[_0x1b2306(0x262)],_0x5bc514['dataSource']['id'])[_0x1b2306(0x375)](_0x1a9586=>this[_0x1b2306(0x393)][_0x1b2306(0x338)](_0x5bc514[_0x1b2306(0x262)],_0x1a9586,{'waitForConfig':!0x0}));}}));}['_shouldWaitForChartConfig'](_0x4703b6){const _0x1de3cd=_0x499525;var _0x4c2075;let _0x157fc0=(_0x4c2075=this[_0x1de3cd(0x214)][_0x1de3cd(0x2ac)](_0x4703b6[_0x1de3cd(0x262)],_0x4703b6[_0x1de3cd(0x35a)]['id']))==null||(_0x4c2075=_0x4c2075['model'][_0x1de3cd(0x3a6)])==null?void 0x0:_0x4c2075[_0x1de3cd(0x1b0)];return _0x157fc0!=null&&_0x157fc0!==_0x4703b6[_0x1de3cd(0x35a)][_0x1de3cd(0x276)];}};Y=V([B(0x0,_0xa6f2d7),B(0x1,_0x496119(J)),B(0x2,_0x496119(_0x2cd96e)),B(0x3,_0x496119(_0x37b64c))],Y);var jr=_0x499525(0x25c),Mr=_0x499525(0x34c);const Nr={'scaleX':0x1,'scaleY':0x1};function Pr(_0x44e7fa){const _0x223699=_0x499525;let _0x468ad7=_0x44e7fa[_0x223699(0x233)];return typeof MouseEvent<'u'&&_0x468ad7 instanceof MouseEvent?_0x468ad7:void 0x0;}function Fr(_0x3d45a3){const _0x7d7d15=_0x499525;let _0x24df18=_0x3d45a3['nativeEvent'],_0x3f419e=_0x24df18==null?void 0x0:_0x24df18[_0x7d7d15(0x238)];return typeof Element<'u'&&_0x3f419e instanceof Element?_0x3f419e:void 0x0;}function Ir(_0x1bfa5f){return _0x1bfa5f['width']||_0x1bfa5f['right']-_0x1bfa5f['left'];}function Lr(_0x2943a7){const _0x332c89=_0x499525;return _0x2943a7[_0x332c89(0x1ee)]||_0x2943a7[_0x332c89(0x2fd)]-_0x2943a7[_0x332c89(0x2fe)];}function Rr(_0x300fb2,_0x4c4ff2){const _0x5d8bcd=_0x499525;let _0x2fc1db=_0x300fb2['clientWidth']||(typeof HTMLElement<'u'&&_0x300fb2 instanceof HTMLElement?_0x300fb2[_0x5d8bcd(0x2cb)]:0x0),_0x23a684=_0x300fb2['clientHeight']||(typeof HTMLElement<'u'&&_0x300fb2 instanceof HTMLElement?_0x300fb2['offsetHeight']:0x0),_0x39e558=Ir(_0x4c4ff2),_0x111f64=Lr(_0x4c4ff2);return{'scaleX':_0x2fc1db>0x0&&_0x39e558>0x0?_0x39e558/_0x2fc1db:Nr['scaleX'],'scaleY':_0x23a684>0x0&&_0x111f64>0x0?_0x111f64/_0x23a684:Nr[_0x5d8bcd(0x38d)]};}function zr(_0x1b7147,_0x22a9d4,_0x1c9763){const _0xe639ef=_0x499525;return{'left':_0x1b7147[_0xe639ef(0x2e0)]+_0x22a9d4['left']*_0x1c9763[_0xe639ef(0x285)],'right':_0x1b7147[_0xe639ef(0x2e0)]+_0x22a9d4[_0xe639ef(0x231)]*_0x1c9763['scaleX'],'top':_0x1b7147[_0xe639ef(0x2fe)]+_0x22a9d4['top']*_0x1c9763[_0xe639ef(0x38d)],'bottom':_0x1b7147['top']+_0x22a9d4[_0xe639ef(0x2fd)]*_0x1c9763[_0xe639ef(0x38d)]};}function Br(_0x1a448c){const _0x54a6b2=_0x499525;let _0x22b6f9=Fr(_0x1a448c),_0x20f8c3=_0x1a448c[_0x54a6b2(0x20a)]['bounds'];return _0x22b6f9&&_0x20f8c3?()=>{const _0x774a8f=_0x54a6b2;let _0x32c8ca=_0x22b6f9[_0x774a8f(0x282)]();return zr(_0x32c8ca,_0x20f8c3,Rr(_0x22b6f9,_0x32c8ca));}:()=>{const _0x5bcd50=_0x54a6b2;let _0x3e3ba9=_0x22b6f9==null?void 0x0:_0x22b6f9[_0x5bcd50(0x282)]();if(_0x22b6f9&&_0x3e3ba9&&_0x20f8c3)return zr(_0x3e3ba9,_0x20f8c3,Rr(_0x22b6f9,_0x3e3ba9));let _0x442af8=Pr(_0x1a448c),_0x47e73a=_0x22b6f9&&_0x3e3ba9?Rr(_0x22b6f9,_0x3e3ba9):Nr,_0x1051b9=(_0x442af8==null?void 0x0:_0x442af8[_0x5bcd50(0x380)])??(_0x3e3ba9?_0x3e3ba9['left']+_0x1a448c[_0x5bcd50(0x3b2)]['x']*_0x47e73a[_0x5bcd50(0x285)]:_0x1a448c['localPoint']['x']),_0x2bbe22=(_0x442af8==null?void 0x0:_0x442af8['clientY'])??(_0x3e3ba9?_0x3e3ba9[_0x5bcd50(0x2fe)]+_0x1a448c[_0x5bcd50(0x3b2)]['y']*_0x47e73a[_0x5bcd50(0x38d)]:_0x1a448c[_0x5bcd50(0x3b2)]['y']);return{'left':_0x1051b9,'right':_0x1051b9+0x1,'top':_0x2bbe22,'bottom':_0x2bbe22+0x1};};}function Vr(_0x45c2c6){const _0x4cfb8a=_0x499525;return _0x45c2c6[_0x4cfb8a(0x231)]<=_0x45c2c6[_0x4cfb8a(0x2e0)]||_0x45c2c6['bottom']<=_0x45c2c6[_0x4cfb8a(0x2fe)]?!0x1:typeof window>'u'||_0x45c2c6[_0x4cfb8a(0x231)]>0x0&&_0x45c2c6[_0x4cfb8a(0x2fd)]>0x0&&_0x45c2c6['left']<window[_0x4cfb8a(0x39d)]&&_0x45c2c6[_0x4cfb8a(0x2fe)]<window[_0x4cfb8a(0x32d)];}function Hr(_0x2954a2,_0x304fa9){const _0x5207fd=_0x499525;let _0xb7b762=Br(_0x2954a2),_0x5864c9=_0xb7b762(),_0x12cf3a=new _0x228f45(_0x5864c9),_0x167c20=new _0x1ae3d6(),_0x1f732f=!0x1,_0x357b5f=!0x1;return typeof window<'u'&&_0x167c20[_0x5207fd(0x34b)](_0xdfa41a(_0x52e2b8(window,_0x5207fd(0x2aa),{'capture':!0x0}),_0x52e2b8(window,_0x5207fd(0x229)))[_0x5207fd(0x203)](_0xa0c0cb(0x10))[_0x5207fd(0x1e5)](()=>{_0x357b5f||_0x1f732f||(_0x357b5f=!0x0,queueMicrotask(()=>{if(_0x357b5f=!0x1,_0x1f732f)return;let _0x495da1=_0xb7b762();if(!Vr(_0x495da1)){_0x304fa9();return;}_0x12cf3a['next'](_0x495da1);}));})),{'initialRect':_0x5864c9,'anchorRect$':_0x12cf3a[_0x5207fd(0x297)](),'visible':Vr(_0x5864c9),'dispose':()=>{const _0x23c716=_0x5207fd;_0x1f732f=!0x0,_0x167c20[_0x23c716(0x211)](),_0x12cf3a[_0x23c716(0x1f6)]();}};}const Ur=_0x499525(0x19e);function Wr(_0xe9599c,_0x31b6aa){return _0xe9599c+'::'+_0x31b6aa;}let X=class extends _0x213704{constructor(_0x102adf,_0x352a90,_0x8c3f67,_0x39a750,_0x517cc7,_0x537e76,_0x335a83,_0x5c20f6,_0x41c9f5){const _0x3544fc=_0x499525;super(),this[_0x3544fc(0x214)]=_0x102adf,this[_0x3544fc(0x25f)]=_0x352a90,this[_0x3544fc(0x394)]=_0x8c3f67,this[_0x3544fc(0x2ab)]=_0x39a750,this[_0x3544fc(0x292)]=_0x517cc7,this[_0x3544fc(0x2ca)]=_0x537e76,this[_0x3544fc(0x33c)]=_0x335a83,this[_0x3544fc(0x387)]=_0x5c20f6,this['_injector']=_0x41c9f5,z(this,'_chartEventDisposables',new Map()),z(this,_0x3544fc(0x27d),null),z(this,'_popupRuntimeKey',null),z(this,_0x3544fc(0x389),null),this['_registerAdapter'](),this['_subscribeChartEvents']();}[_0x499525(0x211)](){const _0x51206a=_0x499525;this[_0x51206a(0x2ff)](),this[_0x51206a(0x2ad)][_0x51206a(0x375)](_0x16618b=>_0x16618b['dispose']()),this[_0x51206a(0x2ad)][_0x51206a(0x21d)](),super[_0x51206a(0x211)]();}[_0x499525(0x326)](){const _0x3f4252=_0x499525;let _0x40e9f6=_0x2f2c9b({'chartUIService':this[_0x3f4252(0x394)],'getHostAdapter':_0x4a13ec=>{const _0x218f87=_0x3f4252;this['_modelService'][_0x218f87(0x1c2)](_0x4a13ec['unitId'],_0x4a13ec[_0x218f87(0x24c)]);let _0x370334=this[_0x218f87(0x214)]['getChartModel'](_0x4a13ec['unitId'],_0x4a13ec[_0x218f87(0x24c)]),_0x41e7a7=this[_0x218f87(0x387)][_0x218f87(0x1ec)](_0x4a13ec[_0x218f87(0x262)],_0x361416['UNIVER_BOARD']),_0x2b5c11=this[_0x218f87(0x2ab)][_0x218f87(0x1b2)]();if(!(!_0x370334||!_0x41e7a7||!_0x2b5c11))return new _0x19ae32(_0x370334[_0x218f87(0x1a9)],new _0x6807e4({'unitId':_0x4a13ec[_0x218f87(0x262)],'pageId':_0x2b5c11[_0x218f87(0x237)],'chartId':_0x4a13ec['chartId'],'elementId':_0x2b5c11[_0x218f87(0x34d)],'boardModel':_0x41e7a7,'injector':this[_0x218f87(0x266)]}));},'close':()=>this[_0x3f4252(0x2ff)](),'openFullPanel':_0x1a4df0=>{const _0x1cc568=_0x3f4252;this[_0x1cc568(0x214)][_0x1cc568(0x1c2)](_0x1a4df0['unitId'],_0x1a4df0[_0x1cc568(0x24c)]);let _0x46cad7=this[_0x1cc568(0x2ab)][_0x1cc568(0x1b2)]();(_0x46cad7==null?void 0x0:_0x46cad7['unitId'])===_0x1a4df0[_0x1cc568(0x262)]&&_0x46cad7[_0x1cc568(0x24c)]===_0x1a4df0[_0x1cc568(0x24c)]&&this[_0x1cc568(0x2ab)][_0x1cc568(0x2a4)]({..._0x46cad7,'route':_0x25e98d(_0x1a4df0['target']),'source':_0x1cc568(0x313)}),this[_0x1cc568(0x2ff)]();}});this[_0x3f4252(0x2e6)](this[_0x3f4252(0x292)][_0x3f4252(0x38c)](Ur,_0x40e9f6));}[_0x499525(0x23d)](){const _0x4617eb=_0x499525;this[_0x4617eb(0x2e6)](this[_0x4617eb(0x214)][_0x4617eb(0x2a7)]['subscribe'](_0x3d4f8b=>{const _0x5b8ee4=_0x4617eb;let _0x3b6f82=Wr(_0x3d4f8b['unitId'],_0x3d4f8b[_0x5b8ee4(0x24c)]);if(this[_0x5b8ee4(0x2ad)][_0x5b8ee4(0x1e0)](_0x3b6f82))return;let _0x424922=new _0x1ae3d6();_0x424922[_0x5b8ee4(0x34b)](this[_0x5b8ee4(0x25f)]['on'](_0x3d4f8b[_0x5b8ee4(0x262)],_0x3d4f8b['chartId'],_0x5b8ee4(0x256),_0x438f5b=>{const _0x2f0c30=_0x5b8ee4;this['_openFloatMenu'](_0x3d4f8b['unitId'],_0x3d4f8b[_0x2f0c30(0x24c)],_0x438f5b);})),this[_0x5b8ee4(0x2ad)][_0x5b8ee4(0x1e4)](_0x3b6f82,_0x424922);})),this['disposeWithMe'](this[_0x4617eb(0x214)][_0x4617eb(0x1fd)][_0x4617eb(0x1e5)](_0x4ba92a=>{const _0x174a80=_0x4617eb;var _0x154907;let _0x31c2b0=Wr(_0x4ba92a[_0x174a80(0x262)],_0x4ba92a[_0x174a80(0x24c)]);(_0x154907=this['_chartEventDisposables'][_0x174a80(0x234)](_0x31c2b0))==null||_0x154907[_0x174a80(0x211)](),this[_0x174a80(0x2ad)][_0x174a80(0x1ac)](_0x31c2b0),this[_0x174a80(0x245)]===_0x31c2b0&&this[_0x174a80(0x2ff)]();})),this['disposeWithMe'](this[_0x4617eb(0x214)][_0x4617eb(0x2a2)][_0x4617eb(0x1e5)](_0x5eb145=>{const _0x5bea00=_0x4617eb;let _0x22ade7=_0x5eb145?Wr(_0x5eb145[_0x5bea00(0x262)],_0x5eb145[_0x5bea00(0x24c)]):null;(!_0x22ade7||this['_popupRuntimeKey']&&_0x22ade7!==this['_popupRuntimeKey'])&&this[_0x5bea00(0x2ff)]();}));}[_0x499525(0x1bd)](_0x4b3248,_0x50ef25,_0x48ccf0){const _0x19e8f8=_0x499525;if(!this[_0x19e8f8(0x25f)]['isElementEditModeActive'](_0x4b3248,_0x50ef25))return;let _0x21163f=this[_0x19e8f8(0x214)]['getChartModel'](_0x4b3248,_0x50ef25),_0xf48b4e=_0x21163f?_0x378845(_0x21163f[_0x19e8f8(0x1a9)],_0x48ccf0[_0x19e8f8(0x20a)]):void 0x0;if(!_0x21163f||!_0xf48b4e){this[_0x19e8f8(0x2ff)]();return;}let _0x491c1d=JSON['stringify']([_0x4b3248,_0x50ef25,_0xf48b4e[_0x19e8f8(0x238)]]);if(this[_0x19e8f8(0x27d)]&&this[_0x19e8f8(0x389)]===_0x491c1d||(this[_0x19e8f8(0x214)][_0x19e8f8(0x23b)](_0x21163f),this[_0x19e8f8(0x2ff)](),!_0xf48b4e[_0x19e8f8(0x3ae)]))return;let _0x2a9c9a=this['_renderManagerService']['getRenderUnitById'](_0x4b3248);if(!_0x2a9c9a)return;let _0x37279b=Hr(_0x48ccf0,()=>this[_0x19e8f8(0x1a7)](_0x4b3248,_0x50ef25));if(!_0x37279b[_0x19e8f8(0x236)]){_0x37279b[_0x19e8f8(0x211)]();return;}let _0x227257=this['_canvasPopupService'][_0x19e8f8(0x244)]({'componentKey':_0x16dc10,'direction':_0x19e8f8(0x274),'offset':[0x0,0x8],'unitId':_0x4b3248,'subUnitId':'','anchorRect':_0x37279b[_0x19e8f8(0x2f3)],'anchorRect$':_0x37279b[_0x19e8f8(0x314)],'canvasElement':_0x2a9c9a[_0x19e8f8(0x240)]['getCanvasElement'](),'extraProps':{'unitId':_0x4b3248,'chartId':_0x50ef25,'element':_0x48ccf0[_0x19e8f8(0x20a)],'target':_0xf48b4e[_0x19e8f8(0x238)],'adapterKey':Ur}}),_0x187846=new _0x1ae3d6();_0x187846[_0x19e8f8(0x34b)](_0x37279b),_0x187846[_0x19e8f8(0x34b)]({'dispose':()=>this[_0x19e8f8(0x2ca)][_0x19e8f8(0x3a9)](_0x227257)}),this['_popupDisposable']=_0x187846,this[_0x19e8f8(0x245)]=Wr(_0x4b3248,_0x50ef25),this[_0x19e8f8(0x389)]=_0x491c1d;}['_closePopup'](){const _0x43a07f=_0x499525;var _0x2fd7f5;(_0x2fd7f5=this['_popupDisposable'])==null||_0x2fd7f5[_0x43a07f(0x211)](),this['_popupDisposable']=null,this[_0x43a07f(0x245)]=null,this[_0x43a07f(0x389)]=null;}[_0x499525(0x1a7)](_0x3c7103,_0x21e513){const _0x518d02=_0x499525;this['_closePopup'](),this[_0x518d02(0x25f)][_0x518d02(0x2c3)](_0x3c7103,_0x21e513)&&(this[_0x518d02(0x25f)]['setElementEditMode'](_0x3c7103,_0x21e513,!0x1),this[_0x518d02(0x25f)][_0x518d02(0x32b)](_0x3c7103,_0x21e513,!0x0));}};X=V([B(0x0,_0x496119(_0x37b64c)),B(0x1,_0x496119(q)),B(0x2,U),B(0x3,_0x496119(H)),B(0x4,_0x496119(_0x290800)),B(0x5,_0x496119(_0x5cf6c4)),B(0x6,_0x143b2),B(0x7,_0x1cc825),B(0x8,_0x496119(_0x11a7be))],X);function Gr(_0x329ff6,_0x58a0f6,_0x49c9d1,_0x12c7a7,_0x505176){let _0x1d469e={'chartType':_0x58a0f6,'data':_0x49c9d1,..._0x505176?{'dataSource':_0x505176}:{},..._0x12c7a7?{'style':_0x12c7a7}:{}};return{..._0x329ff6,'options':_0x1d469e};}function Kr(_0x4283ad){const _0x3e1ea6=_0x499525;let _0x5361ab=_0x11c57d(_0xa6f2d7),_0x7262e4=_0x11c57d(_0x4cc5cd),_0x5d70d3=_0x2702de(()=>_0x58277a(_0xcd7567[_0x3e1ea6(0x22f)](_0x20dbb0=>({..._0x20dbb0,'label':_0x7262e4['t'](_0x3e1ea6(0x3a2)+_0x20dbb0[_0x3e1ea6(0x1a2)])}))),[_0x7262e4]),[_0x181378,_0x4d49ea]=_0x41a5b5(String(_0x567e7a[_0x3e1ea6(0x204)])),_0x2ff2e3=_0x5d70d3[_0x3e1ea6(0x2f4)](_0x31c547=>_0x31c547[_0x3e1ea6(0x325)]===_0x181378),_0x4dd25e=(_0x2ff2e3==null?void 0x0:_0x2ff2e3[_0x3e1ea6(0x276)])??_0x567e7a[_0x3e1ea6(0x204)],[_0x2fb396,_0x3e340c]=_0x41a5b5(()=>_0x3cdf2b[_0x3e1ea6(0x22f)](_0x4eee4b=>[..._0x4eee4b])),[_0x313cf6,_0x5b9e4c]=_0x41a5b5(_0x3e1ea6(0x286)),[_0x453965,_0x410665]=_0x41a5b5(null),[_0x5a2854,_0x16a022]=_0x41a5b5([]),[_0x346a7a,_0x5afbd5]=_0x41a5b5(null),_0x299f01={[_0x80d379[_0x3e1ea6(0x1dc)]]:_0x7262e4['t'](_0x3e1ea6(0x1eb)),[_0x80d379[_0x3e1ea6(0x36e)]]:_0x7262e4['t'](_0x3e1ea6(0x1bb)),[_0x80d379[_0x3e1ea6(0x331)]]:_0x7262e4['t'](_0x3e1ea6(0x2f0))},_0x405ca3=_0x2c0593=>_0x11f1c1(_0x2c0593,{'candlestickClose':_0x7262e4['t'](_0x3e1ea6(0x2cf)),'candlestickHigh':_0x7262e4['t'](_0x3e1ea6(0x1c4)),'candlestickLow':_0x7262e4['t'](_0x3e1ea6(0x3a7)),'candlestickOpen':_0x7262e4['t']('boards-chart-ui.candlestick.open'),'category':_0x7262e4['t'](_0x3e1ea6(0x1aa)),'chordSource':_0x7262e4['t'](_0x3e1ea6(0x290)),'chordTarget':_0x7262e4['t'](_0x3e1ea6(0x2e4)),'label':_0x7262e4['t'](_0x3e1ea6(0x299)),'sunburstHierarchy':_0x7262e4['t'](_0x3e1ea6(0x279)),'value':_0x7262e4['t'](_0x3e1ea6(0x2dd)),'valueField':_0x7262e4['t'](_0x3e1ea6(0x2c8))});return _0x325495('div',{'className':'univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','children':[_0x325495(_0x3e1ea6(0x1d8),{'className':_0x3e1ea6(0x24e),'children':[_0x5e799c(_0x3e1ea6(0x1d8),{'className':_0x3e1ea6(0x2c7),'children':_0x7262e4['t'](_0x3e1ea6(0x29c))}),_0x5e799c(_0x32964c,{'className':_0x3e1ea6(0x31b),'value':_0x181378,'options':_0x5d70d3,'onChange':_0x30ceec=>{const _0x5672b1=_0x3e1ea6;var _0xfdfb9;_0x4d49ea(_0x30ceec);let _0x3495c9=((_0xfdfb9=_0x5d70d3[_0x5672b1(0x2f4)](_0x66a077=>_0x66a077[_0x5672b1(0x325)]===_0x30ceec))==null?void 0x0:_0xfdfb9[_0x5672b1(0x276)])??Number(_0x30ceec),_0x1d26da=_0x405ca3(_0x3495c9);_0x1d26da&&_0x3e340c(_0x1d26da);}})]}),_0x5e799c(_0x2299e5,{'mode':_0x313cf6,'inlineContent':_0x5e799c(_0x46ec38,{'values':_0x2fb396,'minColumns':_0xf4efad(_0x4dd25e),'parsePastedText':_0x1411e1,'onChange':_0x3e340c}),'onModeChange':_0xb790f4=>{_0x5b9e4c(_0xb790f4),_0x410665(null),_0x16a022([]);},'onPreviewChange':(_0x1ff0f7,_0x3ab033)=>{const _0x437f85=_0x3e1ea6;_0x1ff0f7&&_0x3ab033[_0x437f85(0x360)]===_0x3dd533[_0x437f85(0x1a4)]&&_0x3ab033[_0x437f85(0x1b4)]?(_0x410665({'source':_0x1ff0f7}),_0x16a022(_0x3ab033[_0x437f85(0x1b4)]['map'](_0x4723db=>[..._0x4723db]))):(_0x410665(null),_0x16a022([]));}}),_0x346a7a&&_0x5e799c(_0x3e1ea6(0x1d8),{'className':'univer-text-xs\x20univer-text-red-600\x20dark:!univer-text-red-400','children':_0x346a7a}),_0x325495(_0x3e1ea6(0x1d8),{'className':_0x3e1ea6(0x1e7),'children':[_0x4283ad[_0x3e1ea6(0x24a)]&&_0x5e799c(_0x5f405e,{'type':_0x3e1ea6(0x390),'variant':_0x3e1ea6(0x386),'onClick':_0x4283ad[_0x3e1ea6(0x24a)],'children':_0x7262e4['t']('boards-chart-ui.common.cancel')}),_0x5e799c(_0x5f405e,{'type':_0x3e1ea6(0x390),'variant':_0x3e1ea6(0x273),'disabled':_0x313cf6===_0x3e1ea6(0x257)&&!_0x453965,'onClick':async()=>{const _0x54fa9b=_0x3e1ea6;var _0x51bfe5;let _0x3ccf12=_0x37314a({'optionId':_0x181378,'values':_0x313cf6===_0x54fa9b(0x257)?_0x5a2854:_0x2fb396});if(!_0x3ccf12['ok']){_0x5afbd5(_0x299f01[_0x3ccf12['issue'][_0x54fa9b(0x22c)]]);return;}if(!await _0x5361ab[_0x54fa9b(0x1f2)](_0x3946e8['id'],Gr(_0x4283ad['insertParams'],_0x3ccf12[_0x54fa9b(0x1d9)][_0x54fa9b(0x276)],_0x3ccf12[_0x54fa9b(0x1d9)][_0x54fa9b(0x1b4)],_0x3ccf12[_0x54fa9b(0x1d9)][_0x54fa9b(0x1d0)],_0x313cf6===_0x54fa9b(0x257)?_0x453965??void 0x0:void 0x0))){_0x5afbd5(_0x7262e4['t'](_0x54fa9b(0x1eb)));return;}_0x5afbd5(null),(_0x51bfe5=_0x4283ad[_0x54fa9b(0x202)])==null||_0x51bfe5['call'](_0x4283ad);},'children':_0x7262e4['t'](_0x3e1ea6(0x2b9))})]})]});}let qr=class extends _0x213704{constructor(_0x1e7cf6){const _0x1948d2=_0x499525;super(),this[_0x1948d2(0x373)]=_0x1e7cf6,this['_registerComponents']();}['_registerComponents'](){const _0x5c01d1=_0x499525;this['disposeWithMe'](this[_0x5c01d1(0x373)][_0x5c01d1(0x38c)](ar,fr)),this[_0x5c01d1(0x2e6)](this[_0x5c01d1(0x373)][_0x5c01d1(0x38c)](nr,rr)),this[_0x5c01d1(0x2e6)](this[_0x5c01d1(0x373)]['register'](_0x5d30bd,Kr)),this[_0x5c01d1(0x2e6)](this['_componentManager'][_0x5c01d1(0x38c)](Xn,er));}};qr=V([B(0x0,_0x496119(_0x16fbc0))],qr);var Jr=class extends _0x506295{constructor(_0xa7a9f8,_0x599c91){const _0x589514=_0x499525;super(_0xa7a9f8,_0x599c91),z(this,_0x589514(0x1da),void 0x0),z(this,_0x589514(0x1e3),void 0x0),this['_element']=_0x599c91[_0x589514(0x1c3)],this[_0x589514(0x1e3)]=_0x599c91['frameStyle'],this['_attachNativeLoadHandlers']();}[_0x499525(0x29d)](_0x13c159){const _0x534a06=_0x499525;this[_0x534a06(0x1da)]=_0x13c159,this[_0x534a06(0x28d)](!0x0);}['updateFrameStyle'](_0x5f27d9){const _0x5536a9=_0x499525;Xr(this[_0x5536a9(0x1e3)],_0x5f27d9)||(this[_0x5536a9(0x1e3)]=_0x5f27d9,this[_0x5536a9(0x28d)](!0x0));}[_0x499525(0x392)](){return this['_element'];}[_0x499525(0x1b7)](){const _0x15e00d=_0x499525;return this[_0x15e00d(0x1e3)];}[_0x499525(0x23f)](_0x1ddee1){const _0x294246=_0x499525;this[_0x294246(0x254)]??(this[_0x294246(0x254)]=document[_0x294246(0x2d6)](_0x294246(0x24b)),this['_native'][_0x294246(0x1f1)]=_0x294246(0x309)),this[_0x294246(0x37b)](),this[_0x294246(0x254)][_0x294246(0x261)]=_0x1ddee1;}[_0x499525(0x2be)](_0x58716e,_0x243dee,_0x4f67a9=this['width'],_0x4929ce=this[_0x499525(0x1ee)]){const _0x10333c=_0x499525;let _0x3bc569=this[_0x10333c(0x1e3)],_0x28a255=vr({'width':_0x4f67a9,'height':_0x4929ce},_0x3bc569);_0x58716e[_0x10333c(0x1f3)](),_0x58716e['translate'](-_0x4f67a9/0x2,-_0x4929ce/0x2),Yr(_0x58716e,0x0,0x0,_0x4f67a9,_0x4929ce,_0x3bc569['radius']),_0x58716e[_0x10333c(0x308)]=_0x3bc569[_0x10333c(0x348)],_0x58716e['fill'](),_0x58716e[_0x10333c(0x36c)](),this[_0x10333c(0x359)](_0x58716e,_0x4f67a9,_0x4929ce,_0x28a255,_0x3bc569),this[_0x10333c(0x27a)](_0x58716e,_0x4f67a9,_0x4929ce,_0x3bc569);}[_0x499525(0x359)](_0xaccbf,_0xb75fb1,_0x243d72,_0x4dbfd0,_0x2d46bf){const _0xcd9a4d=_0x499525;var _0x172706;!((_0x172706=this[_0xcd9a4d(0x254)])!=null&&_0x172706[_0xcd9a4d(0x1f6)])||this[_0xcd9a4d(0x254)]['naturalWidth']<=0x0||this[_0xcd9a4d(0x254)][_0xcd9a4d(0x371)]<=0x0||(_0xaccbf['save'](),_0xaccbf[_0xcd9a4d(0x379)](-_0xb75fb1/0x2,-_0x243d72/0x2),Yr(_0xaccbf,_0x4dbfd0[_0xcd9a4d(0x2e0)],_0x4dbfd0[_0xcd9a4d(0x2fe)],_0x4dbfd0[_0xcd9a4d(0x230)],_0x4dbfd0['height'],Math[_0xcd9a4d(0x22b)](0x0,_0x2d46bf[_0xcd9a4d(0x384)]-_0x2d46bf[_0xcd9a4d(0x1f9)])),_0xaccbf[_0xcd9a4d(0x2e1)](),_0xaccbf['drawImage'](this['_native'],_0x4dbfd0[_0xcd9a4d(0x2e0)],_0x4dbfd0[_0xcd9a4d(0x2fe)],_0x4dbfd0['width'],_0x4dbfd0[_0xcd9a4d(0x1ee)]),_0xaccbf[_0xcd9a4d(0x36c)]());}[_0x499525(0x27a)](_0x4433c4,_0x18193e,_0xb22f99,_0x5481a8){const _0x1ccc02=_0x499525;if(_0x5481a8[_0x1ccc02(0x1f9)]<=0x0)return;let _0x33d7af=yr({'width':_0x18193e,'height':_0xb22f99},_0x5481a8);_0x4433c4[_0x1ccc02(0x1f3)](),_0x4433c4[_0x1ccc02(0x379)](-_0x18193e/0x2,-_0xb22f99/0x2),Yr(_0x4433c4,_0x33d7af[_0x1ccc02(0x2e0)],_0x33d7af[_0x1ccc02(0x2fe)],_0x33d7af['width'],_0x33d7af['height'],_0x33d7af[_0x1ccc02(0x384)]),_0x4433c4[_0x1ccc02(0x2d3)]=_0x5481a8['stroke'],_0x4433c4[_0x1ccc02(0x1fc)]=_0x5481a8['strokeWidth'],_0x4433c4['stroke'](),_0x4433c4[_0x1ccc02(0x36c)]();}['_notifyScene'](){const _0xe401e5=_0x499525;let _0x13d689=this[_0xe401e5(0x2f5)]();this[_0xe401e5(0x28d)](!0x0),_0x13d689==null||_0x13d689['onFileLoaded$'][_0xe401e5(0x1ad)](this['oKey']);}['_attachNativeLoadHandlers'](){const _0x144046=_0x499525;this[_0x144046(0x254)]&&(this[_0x144046(0x254)][_0x144046(0x296)]=()=>{const _0x433448=_0x144046;this[_0x433448(0x28d)](!0x0),this[_0x433448(0x36d)]();},this[_0x144046(0x254)][_0x144046(0x200)]=()=>{const _0x1b3620=_0x144046;this[_0x1b3620(0x36d)]();});}};function Yr(_0x3d4719,_0xe1a6c,_0x17ec98,_0x47d713,_0x39a56f,_0x37e264){const _0x2987dd=_0x499525;let _0x5cbfc7=Math[_0x2987dd(0x2ef)](_0x37e264||0x0,_0x47d713/0x2,_0x39a56f/0x2);if(_0x3d4719['beginPath'](),!_0x5cbfc7){_0x3d4719[_0x2987dd(0x1e6)](_0xe1a6c,_0x17ec98,_0x47d713,_0x39a56f),_0x3d4719[_0x2987dd(0x391)]();return;}_0x3d4719[_0x2987dd(0x20c)](_0xe1a6c+_0x5cbfc7,_0x17ec98),_0x3d4719[_0x2987dd(0x271)](_0xe1a6c+_0x47d713-_0x5cbfc7,_0x17ec98),_0x3d4719[_0x2987dd(0x25e)](_0xe1a6c+_0x47d713-_0x5cbfc7,_0x17ec98+_0x5cbfc7,_0x5cbfc7,Math['PI']*0x3/0x2,0x0,!0x1),_0x3d4719['lineTo'](_0xe1a6c+_0x47d713,_0x17ec98+_0x39a56f-_0x5cbfc7),_0x3d4719[_0x2987dd(0x25e)](_0xe1a6c+_0x47d713-_0x5cbfc7,_0x17ec98+_0x39a56f-_0x5cbfc7,_0x5cbfc7,0x0,Math['PI']/0x2,!0x1),_0x3d4719[_0x2987dd(0x271)](_0xe1a6c+_0x5cbfc7,_0x17ec98+_0x39a56f),_0x3d4719[_0x2987dd(0x25e)](_0xe1a6c+_0x5cbfc7,_0x17ec98+_0x39a56f-_0x5cbfc7,_0x5cbfc7,Math['PI']/0x2,Math['PI'],!0x1),_0x3d4719[_0x2987dd(0x271)](_0xe1a6c,_0x17ec98+_0x5cbfc7),_0x3d4719[_0x2987dd(0x25e)](_0xe1a6c+_0x5cbfc7,_0x17ec98+_0x5cbfc7,_0x5cbfc7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3d4719[_0x2987dd(0x391)]();}function Xr(_0x827701,_0x126762){const _0x3ff939=_0x499525;return _0x827701['fill']===_0x126762[_0x3ff939(0x348)]&&_0x827701[_0x3ff939(0x322)]===_0x126762[_0x3ff939(0x322)]&&_0x827701[_0x3ff939(0x1f9)]===_0x126762['strokeWidth']&&_0x827701['radius']===_0x126762[_0x3ff939(0x384)];}function Zr(_0x483db0){const _0x1ad332=_0x499525;let {element:_0x13b63d}=_0x483db0[_0x1ad332(0x1c9)];return _0x13b63d[_0x1ad332(0x1b0)]===_0xdc726d[_0x1ad332(0x2d4)]?_0x13b63d:null;}let Z=class{constructor(_0x38bada,_0x362756,_0x56f629,_0x586dba){const _0x57783b=_0x499525;this['_themeService']=_0x38bada,this[_0x57783b(0x393)]=_0x362756,this[_0x57783b(0x265)]=_0x56f629,this[_0x57783b(0x37d)]=_0x586dba,z(this,'name',_0x57783b(0x35a)),z(this,_0x57783b(0x30c),new WeakMap());}['createObject'](_0x480f71){const _0x3bd133=_0x499525;let _0x5d372e=Zr(_0x480f71);if(!_0x5d372e)return null;let _0x1f9863=Math[_0x3bd133(0x22b)](0x1,_0x480f71[_0x3bd133(0x20b)][_0x3bd133(0x230)]),_0x4b49fc=Math['max'](0x1,_0x480f71[_0x3bd133(0x20b)][_0x3bd133(0x1ee)]),_0x4f4a01=new Jr(_0x480f71['key'],{'url':_0x3bd133(0x2c4),'left':_0x480f71['bounds'][_0x3bd133(0x2e0)],'top':_0x480f71[_0x3bd133(0x20b)][_0x3bd133(0x2fe)],'width':_0x1f9863,'height':_0x4b49fc,'angle':_0x480f71[_0x3bd133(0x20b)][_0x3bd133(0x250)],'flipX':_0x480f71[_0x3bd133(0x20b)][_0x3bd133(0x36b)],'flipY':_0x480f71[_0x3bd133(0x20b)]['flipY'],'zIndex':_0x480f71[_0x3bd133(0x351)],'visible':_0x5d372e[_0x3bd133(0x236)]!==!0x1,'evented':!0x0,'forceRender':!0x0,'element':_0x5d372e,'frameStyle':this[_0x3bd133(0x26b)](_0x480f71[_0x3bd133(0x262)],_0x5d372e)});return this[_0x3bd133(0x2c5)](_0x4f4a01,this[_0x3bd133(0x30a)](_0x480f71[_0x3bd133(0x262)],_0x4f4a01),_0x480f71[_0x3bd133(0x262)]),_0x4f4a01;}['syncObject'](_0x3b809d,_0x3a70fe){const _0xba34ea=_0x499525;var _0x559ebd;if(!(_0x3b809d instanceof Jr))return!0x1;let _0x43120e=Zr(_0x3a70fe);return _0x43120e?(_0x3a70fe[_0xba34ea(0x1d3)]||_0x3b809d[_0xba34ea(0x1ba)](_0x3a70fe[_0xba34ea(0x20b)]),_0x3b809d[_0xba34ea(0x29d)](_0x43120e),this[_0xba34ea(0x382)](_0x3a70fe[_0xba34ea(0x262)],_0x3b809d),(_0x559ebd=this[_0xba34ea(0x30c)]['get'](_0x3b809d))==null||_0x559ebd(),!0x0):!0x1;}['_watchSnapshotUpdates'](_0x48da06,_0x9eab06,_0x675bb2){const _0x8e84f2=_0x499525;if(!_0x9eab06)return;let _0x453c31=null,_0x311f8a=null,_0x1bdd13=!0x1,_0x1374c0=_0x58130f=>{const _0x178198=_0x30da;if(_0x311f8a!==_0x58130f){if(_0x453c31==null||_0x453c31['unsubscribe'](),_0x453c31=null,_0x311f8a=_0x58130f,_0x58130f[_0x178198(0x360)]===_0x178198(0x246)&&_0x58130f[_0x178198(0x283)]){_0x48da06[_0x178198(0x23f)](_0x58130f['dataUrl']);return;}_0x58130f[_0x178198(0x360)]===_0x178198(0x1c8)&&(_0x453c31=this[_0x178198(0x393)][_0x178198(0x355)][_0x178198(0x1e5)](_0x37c3dc=>{const _0x52e683=_0x178198;if(_0x37c3dc!==_0x58130f||_0x37c3dc[_0x52e683(0x360)]!==_0x52e683(0x246)||!_0x37c3dc[_0x52e683(0x283)]){if(_0x37c3dc===_0x58130f&&_0x37c3dc[_0x52e683(0x360)]===_0x52e683(0x2d1)&&!_0x1bdd13){_0x1bdd13=!0x0;let _0x46158c=this[_0x52e683(0x30a)](_0x675bb2,_0x48da06);_0x46158c&&_0x1374c0(_0x46158c);}return;}_0x48da06[_0x52e683(0x23f)](_0x37c3dc['dataUrl']),_0x453c31==null||_0x453c31[_0x52e683(0x2f6)](),_0x453c31=null;}));}};_0x1374c0(_0x9eab06);let _0x4017f9=()=>{_0x1bdd13=!0x1;let _0x1af2d4=this['_requestSnapshotForObject'](_0x675bb2,_0x48da06);_0x1af2d4&&_0x1374c0(_0x1af2d4);};this[_0x8e84f2(0x30c)][_0x8e84f2(0x1e4)](_0x48da06,_0x4017f9);let _0x2da9fc=this[_0x8e84f2(0x393)][_0x8e84f2(0x38b)][_0x8e84f2(0x1e5)](_0x1bb8dc=>{const _0x80528d=_0x8e84f2;_0x1bb8dc[_0x80528d(0x262)]===_0x675bb2&&_0x1bb8dc['chartId']===_0x48da06['getElement']()[_0x80528d(0x24c)]&&_0x4017f9();});_0x48da06[_0x8e84f2(0x198)][_0x8e84f2(0x192)](()=>{const _0x1afc39=_0x8e84f2;_0x453c31==null||_0x453c31[_0x1afc39(0x2f6)](),_0x2da9fc[_0x1afc39(0x2f6)](),this[_0x1afc39(0x30c)][_0x1afc39(0x1ac)](_0x48da06);});}[_0x499525(0x30a)](_0x30d026,_0x1817d5){const _0x51e51c=_0x499525;let _0x59133f=this[_0x51e51c(0x382)](_0x30d026,_0x1817d5),_0xac5fa5=vr({'width':Math[_0x51e51c(0x22b)](0x1,_0x1817d5[_0x51e51c(0x230)]),'height':Math[_0x51e51c(0x22b)](0x1,_0x1817d5[_0x51e51c(0x1ee)])},_0x59133f);return this[_0x51e51c(0x393)][_0x51e51c(0x269)]({'unitId':_0x30d026,'chartId':_0x1817d5['getElement']()[_0x51e51c(0x24c)],'width':_0xac5fa5[_0x51e51c(0x230)],'height':_0xac5fa5[_0x51e51c(0x1ee)],'mode':_0x51e51c(0x251)});}[_0x499525(0x382)](_0x706d2d,_0x476b3a){const _0x2a461f=_0x499525;let _0x1d3855=this['_resolveFrameStyle'](_0x706d2d,_0x476b3a[_0x2a461f(0x392)]());return _0x476b3a[_0x2a461f(0x304)](_0x1d3855),_0x1d3855;}[_0x499525(0x26b)](_0xe86c5e,_0x444a77){const _0x1cef76=_0x499525;var _0x29009a;let _0x524a0f=(_0x29009a=this[_0x1cef76(0x265)]['getChart'](_0xe86c5e,_0x444a77[_0x1cef76(0x24c)]))==null?void 0x0:_0x29009a[_0x1cef76(0x1d0)];return _r({'chartStyle':_0x524a0f,'chartElement':_0x444a77,'hostFill':_0x524a0f?this['_renderService'][_0x1cef76(0x2ea)](_0x524a0f)['fill']:void 0x0,'isDarkMode':this['_themeService'][_0x1cef76(0x1ff)]});}};Z=V([B(0x0,_0x496119(_0x2e9a52)),B(0x1,_0x496119(J)),B(0x2,_0x496119(_0x2cd96e)),B(0x3,_0x496119(q))],Z);function Qr(_0x34e0dd){const _0xf64a0=_0x499525;return _0x34e0dd[_0xf64a0(0x1b0)]===_0xdc726d[_0xf64a0(0x2d4)];}let Q=class{constructor(_0x3cdc57){const _0x432ba8=_0x499525;this[_0x432ba8(0x265)]=_0x3cdc57,z(this,_0x432ba8(0x376),_0x432ba8(0x2a0));}['collect'](_0x351a0e){const _0x36ca40=_0x499525;let _0x2fffe1={},_0x41e89a={},_0x195029={};return _0x351a0e[_0x36ca40(0x21a)][_0x36ca40(0x375)](_0x2c164f=>{const _0x1ce9f4=_0x36ca40;if(!Qr(_0x2c164f))return;let _0x415044=this['_resourceService'][_0x1ce9f4(0x1f4)](_0x351a0e['unitId'],_0x2c164f['chartId']),_0x229fd3=_0x415044?this['_resourceService'][_0x1ce9f4(0x3a4)](_0x351a0e['unitId'],_0x415044[_0x1ce9f4(0x2a8)]):void 0x0;!_0x415044||!_0x229fd3||(_0x2fffe1[_0x415044['id']]=_0x4d4a69[_0x1ce9f4(0x368)](_0x415044),_0x41e89a[_0x229fd3['id']]=_0x229fd3,_0x195029[_0x2c164f['id']]=_0x415044['id']);}),Object[_0x36ca40(0x303)](_0x2fffe1)['length']===0x0?null:{'charts':_0x2fffe1,'dataSources':_0x41e89a,'chartIdByElementId':_0x195029};}[_0x499525(0x1b1)](_0xc7d8b9){const _0x14d8df=_0x499525;if(!$r(_0xc7d8b9[_0x14d8df(0x275)]))return null;let _0x42a2b2=_0xc7d8b9[_0x14d8df(0x275)],_0x374d79=new Map();_0xc7d8b9[_0x14d8df(0x235)][_0x14d8df(0x375)]((_0x5c7296,_0x35ea31)=>{const _0x199e27=_0x14d8df;_0x374d79[_0x199e27(0x1e4)](_0x5c7296,_0x35ea31);});let _0x26ac29=new Map(),_0x19da8e=new Map(),_0x17310e=_0xc7d8b9[_0x14d8df(0x21a)][_0x14d8df(0x22f)](_0x1b313a=>{const _0x21cd6c=_0x14d8df;if(!Qr(_0x1b313a))return _0x1b313a;let _0x5d0d7f=_0x374d79[_0x21cd6c(0x234)](_0x1b313a['id']),_0x514426=_0x5d0d7f?_0x42a2b2['chartIdByElementId'][_0x5d0d7f]:void 0x0;if(!_0x514426||!_0x42a2b2['charts'][_0x514426])return _0x1b313a;let _0x38404e=_0x26ac29[_0x21cd6c(0x234)](_0x514426);return _0x38404e||(_0x38404e=_0x131eab(0x6),_0x26ac29[_0x21cd6c(0x1e4)](_0x514426,_0x38404e)),{..._0x1b313a,'chartId':_0x38404e};});_0x26ac29[_0x14d8df(0x375)]((_0x11bbc3,_0x3cb655)=>{const _0x46c810=_0x14d8df;var _0x2c80f4;let _0x300ec2=(_0x2c80f4=_0x42a2b2[_0x46c810(0x2bc)][_0x3cb655])==null?void 0x0:_0x2c80f4[_0x46c810(0x2a8)];_0x300ec2&&!_0x19da8e['has'](_0x300ec2)&&_0x19da8e[_0x46c810(0x1e4)](_0x300ec2,_0x131eab(0x6));});let _0x2d223e=[];_0x19da8e['forEach']((_0x11c2f4,_0x17eac4)=>{const _0x2004a8=_0x14d8df;let _0x570288=_0x42a2b2[_0x2004a8(0x2f7)][_0x17eac4];_0x570288&&_0x2d223e['push']({..._0x570288,'id':_0x11c2f4});});let _0x516b9c=[];return _0x26ac29[_0x14d8df(0x375)]((_0x1c36c4,_0x45732f)=>{const _0x39b9f9=_0x14d8df;let _0x38ef10=_0x42a2b2[_0x39b9f9(0x2bc)][_0x45732f],_0x5a1d63=_0x38ef10?_0x19da8e['get'](_0x38ef10[_0x39b9f9(0x2a8)]):void 0x0;!_0x38ef10||!_0x5a1d63||_0x516b9c[_0x39b9f9(0x357)]({..._0x38ef10,'id':_0x1c36c4,'dataSourceId':_0x5a1d63});}),_0x516b9c['length']===0x0?null:{'elements':_0x17310e,'redoMutations':[..._0x2d223e['map'](_0x2d1358=>({'id':_0x3a8c3f['id'],'params':{'unitId':_0xc7d8b9[_0x14d8df(0x2f2)],'dataSource':_0x2d1358}})),..._0x516b9c[_0x14d8df(0x22f)](_0x25f84c=>({'id':_0x25379f['id'],'params':{'unitId':_0xc7d8b9[_0x14d8df(0x2f2)],'chart':_0x25f84c}}))],'undoMutations':[..._0x516b9c[_0x14d8df(0x22f)](_0x35f789=>({'id':_0x5b070f['id'],'params':{'unitId':_0xc7d8b9[_0x14d8df(0x2f2)],'chartId':_0x35f789['id']}})),..._0x2d223e['map'](_0x4b99ef=>({'id':_0x2482df['id'],'params':{'unitId':_0xc7d8b9[_0x14d8df(0x2f2)],'dataSourceId':_0x4b99ef['id']}}))]};}};Q=V([B(0x0,_0x496119(_0x2cd96e))],Q);function $r(_0x363700){const _0x32f4e0=_0x499525;if(!_0x363700||typeof _0x363700!='object')return!0x1;let _0x5817b9=_0x363700;return!!_0x5817b9[_0x32f4e0(0x2bc)]&&!!_0x5817b9[_0x32f4e0(0x2f7)]&&!!_0x5817b9[_0x32f4e0(0x3a5)];}let ei=class extends _0x213704{constructor(_0x278c9f,_0x2b0dd7){const _0x180951=_0x499525;super(),this[_0x180951(0x393)]=_0x2b0dd7,this[_0x180951(0x2e6)](_0x278c9f[_0x180951(0x38c)](this));}[_0x499525(0x343)](_0x427182){return'unitId'in _0x427182&&'getElement'in _0x427182;}['exportImage'](_0x78a807,_0x2f7aa5){const _0x2b8d8d=_0x499525;if(!this[_0x2b8d8d(0x343)](_0x78a807))return Promise[_0x2b8d8d(0x33f)](void 0x0);let _0x329b38=_0x78a807[_0x2b8d8d(0x352)]()[_0x2b8d8d(0x2c0)];return this[_0x2b8d8d(0x393)][_0x2b8d8d(0x1ae)]({'unitId':_0x78a807[_0x2b8d8d(0x262)],'chartId':_0x78a807['getId'](),'width':Math[_0x2b8d8d(0x22b)](0x1,(_0x329b38==null?void 0x0:_0x329b38['width'])??0x1),'height':Math[_0x2b8d8d(0x22b)](0x1,(_0x329b38==null?void 0x0:_0x329b38[_0x2b8d8d(0x1ee)])??0x1),'format':_0x2f7aa5==null?void 0x0:_0x2f7aa5[_0x2b8d8d(0x26a)],'mode':'main'});}};ei=V([B(0x0,_0x496119(_0x133bcd)),B(0x1,_0x496119(J))],ei);const ti=_0x499525(0x312);let $=class extends _0x3b30b9{constructor(_0x90efb8=Wn,_0x177b50,_0x33d02c,_0x55dfa){const _0x13b54e=_0x499525;super(),this['_config']=_0x90efb8,this[_0x13b54e(0x266)]=_0x177b50,this[_0x13b54e(0x1c5)]=_0x33d02c,this[_0x13b54e(0x33c)]=_0x55dfa,z(this,_0x13b54e(0x2e3),null);let {..._0x52d3e0}=_0x9d3953({},Wn,this[_0x13b54e(0x339)]);this[_0x13b54e(0x1c5)][_0x13b54e(0x305)](Un,_0x52d3e0);}[_0x499525(0x280)](){const _0x1a2747=_0x499525;this[_0x1a2747(0x2e6)](this[_0x1a2747(0x266)][_0x1a2747(0x234)](_0xa6f2d7)[_0x1a2747(0x1ce)](ir)),[[q],[J],[ei],[U,{'useClass':Yn}],[G],[H],[X],[Z],[Q],[Y],[qr]][_0x1a2747(0x375)](_0x438b81=>this['_injector']['add'](_0x438b81)),_0x580124(this[_0x1a2747(0x266)],[[q],[J],[ei],[U],[G],[H],[X]]),this[_0x1a2747(0x266)][_0x1a2747(0x234)](qr);let _0x5bd797=this[_0x1a2747(0x266)][_0x1a2747(0x234)](Z);this['_adapter']=_0x5bd797,this[_0x1a2747(0x345)](_0x5bd797),this['disposeWithMe'](_0xdc18c3(()=>{const _0x3a3c89=_0x1a2747;this[_0x3a3c89(0x29f)](_0x5bd797),this[_0x3a3c89(0x2e3)]=null;}));let _0x2dc9f2=this['_injector'][_0x1a2747(0x234)](_0x44a27a);this['disposeWithMe'](_0x2dc9f2[_0x1a2747(0x2b1)](this[_0x1a2747(0x266)][_0x1a2747(0x234)](Q))),this[_0x1a2747(0x2e6)](this['_injector'][_0x1a2747(0x234)](Y));}[_0x499525(0x3b3)](){const _0x1cdc0b=_0x499525;this[_0x1cdc0b(0x2e6)](this[_0x1cdc0b(0x33c)][_0x1cdc0b(0x1a3)](_0x361416['UNIVER_BOARD'],W)),this[_0x1cdc0b(0x2e6)](this['_renderManagerService']['registerRenderModule'](_0x361416[_0x1cdc0b(0x2df)],Ar)),this[_0x1cdc0b(0x2e6)](this[_0x1cdc0b(0x33c)][_0x1cdc0b(0x1a3)](_0x361416[_0x1cdc0b(0x2df)],Sr)),this[_0x1cdc0b(0x2e6)](this[_0x1cdc0b(0x33c)][_0x1cdc0b(0x1a3)](_0x361416['UNIVER_BOARD'],tr));}[_0x499525(0x345)](_0x4db168){const _0x117a23=_0x499525;var _0x2cf1bc,_0x45c859;let _0x5a3e7f=this[_0x117a23(0x2f9)](),_0x440019=_0x5a3e7f[_0x117a23(0x337)]??[];_0x440019[_0x117a23(0x19b)](_0x4db168)||this[_0x117a23(0x1c5)]['setConfig'](_0x31c398,{..._0x5a3e7f,'additionalRenderAdapters':[..._0x440019,_0x4db168],'toolbar':{..._0x5a3e7f[_0x117a23(0x2bb)],'tools':{...(_0x2cf1bc=_0x5a3e7f[_0x117a23(0x2bb)])==null?void 0x0:_0x2cf1bc['tools'],[_0x354b3a[_0x117a23(0x2d4)]]:ni((_0x45c859=_0x5a3e7f[_0x117a23(0x2bb)])==null||(_0x45c859=_0x45c859[_0x117a23(0x327)])==null?void 0x0:_0x45c859[_0x354b3a[_0x117a23(0x2d4)]])}}});}[_0x499525(0x29f)](_0x4e7a1f){const _0x5f50a5=_0x499525;var _0x4ca5b6;let _0x37986f=this[_0x5f50a5(0x2f9)](),_0x19086b=(_0x4ca5b6=_0x37986f['additionalRenderAdapters'])==null?void 0x0:_0x4ca5b6[_0x5f50a5(0x232)](_0xfebe17=>_0xfebe17!==_0x4e7a1f);this['_configService']['setConfig'](_0x31c398,{..._0x37986f,'additionalRenderAdapters':_0x19086b});}[_0x499525(0x2f9)](){const _0x4836fd=_0x499525;return this[_0x4836fd(0x1c5)][_0x4836fd(0x31d)](_0x31c398)??{};}};z($,_0x499525(0x210),ti),z($,'packageName',jr),z($,_0x499525(0x30f),Mr),z($,_0x499525(0x1b0),_0x361416['UNIVER_BOARD']),$=V([_0x3feff0(_0x37b437,_0x3fbab6,_0x57b6c8,_0xdb8921,_0x1a1003,_0x4548ff),B(0x1,_0x496119(_0x11a7be)),B(0x2,_0x35e311),B(0x3,_0x143b2)],$);function ni(_0x38d483){const _0x5e7073=_0x499525;return _0x38d483===!0x1?!0x1:typeof _0x38d483!=_0x5e7073(0x293)||{..._0x38d483,'enabled':_0x38d483['enabled']??!0x0};}export{Un as BOARDS_CHART_UI_PLUGIN_CONFIG_KEY,ti as BOARDS_CHART_UI_PLUGIN_NAME,Dr as BOARD_CHART_SNAPSHOT_BORDER_WIDTH,Q as BoardChartClipboardAdapter,G as BoardChartDataEditService,H as BoardChartEditSessionService,tr as BoardChartFloatingToolbarRenderController,W as BoardChartOpenEditController,Sr as BoardChartPanelController,Z as BoardChartRenderAdapter,q as BoardChartRenderService,Ar as BoardChartSelectionController,Y as BoardChartSnapshotRefreshController,J as BoardChartSnapshotRenderService,Yn as BoardChartUIService,Cr as BoardDomChartHost,Er as IBoardChartSnapshotRendererService,U as IBoardChartUIService,$ as UniverBoardsChartUIPlugin,ni as enableChartTool,Or as resolveBoardChartSnapshotStyle};