@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.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +8 -43
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/components/BoardChartInsertPanel.d.ts +3 -3
- package/lib/types/controllers/board-chart-element-float-menu.controller.d.ts +1 -0
- package/lib/types/services/board-chart-clipboard-adapter.d.ts +3 -3
- package/lib/types/services/board-chart-data-edit.service.d.ts +4 -3
- package/lib/types/services/board-chart-render.service.d.ts +3 -3
- package/lib/types/services/board-chart-snapshot-render.service.d.ts +6 -3
- package/lib/types/services/board-chart-ui.service.d.ts +4 -4
- package/lib/types/services/chart-image-export-provider.d.ts +21 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +14 -14
- package/lib/types/common/BoardChartTypeOptions.d.ts +0 -134
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x139398=_0x1864;(function(_0xab37d0,_0x2f8a47){const _0x5381a5=_0x1864,_0x45bb56=_0xab37d0();while(!![]){try{const _0x51d5f0=-parseInt(_0x5381a5(0x1a7))/0x1*(parseInt(_0x5381a5(0x2bf))/0x2)+parseInt(_0x5381a5(0x364))/0x3*(-parseInt(_0x5381a5(0x20c))/0x4)+parseInt(_0x5381a5(0x2dd))/0x5+-parseInt(_0x5381a5(0x3d1))/0x6+parseInt(_0x5381a5(0x218))/0x7*(parseInt(_0x5381a5(0x1d0))/0x8)+parseInt(_0x5381a5(0x315))/0x9*(-parseInt(_0x5381a5(0x35e))/0xa)+parseInt(_0x5381a5(0x26f))/0xb;if(_0x51d5f0===_0x2f8a47)break;else _0x45bb56['push'](_0x45bb56['shift']());}catch(_0x247cec){_0x45bb56['push'](_0x45bb56['shift']());}}}(_0x4b51,0x55044),Object['defineProperty'](exports,Symbol[_0x139398(0x262)],{'value':_0x139398(0x3e6)}));let e=require('@univerjs-pro/boards'),t=require('@univerjs-pro/boards-ui'),n=require('@univerjs/core'),r=require('rxjs'),i=require('@univerjs-pro/boards-chart'),a=require('@univerjs-pro/chart-ui'),o=require('@univerjs-pro/engine-chart'),s=require('@univerjs/design'),c=require('@univerjs/icons'),l=require('@univerjs/ui'),u=require('react'),d=require('react/jsx-runtime'),f=require('@univerjs-pro/license'),p=require('@univerjs/engine-render');function _0x4b51(){const _0x12ca60=['keys','min','DEFAULT_CHART_SERIES_VALUES','updateShared','PieStyle','ThemeService','getTransformerByCreate','prototype','element','toStringTag','pending','resize','Waterfall','DEFAULT_CHART_PIE_VALUES','click','Optional','hidden','getDataSource','style','ChartSectionAccordion','fillStyle','BoardDomChartHost','11354343hLJpAK','touchDependencies','clientHeight','markReady','add','_disposeChartEventSubscription','useObservable','flipY','ChartEditPanel','useEffect','boards-chart-ui.common.deleteChart','board-chart-setup-panel','chartElement','_watchSnapshotUpdates','BoardDeleteSelectionOperation','flipX','clientY','nativeEvent','map','plan','_config','render','left','boards-chart-ui.chord.target','createRenderInput','ChartRadarStyleSection','_clearActiveEditOverlay','onInserted','onCancel','chart','ChartSectionAccordionContent','complete','boards-chart-ui.common.editChart','issue','_popupDisposable','iterator','manual','_sidePanelService','_element','collect','onerror','ChartSeriesFillFields','merge','axisId','params','BoardChartFloatingToolbarRenderController','isFinite','top','mode','_renderModelManager','symbol','ChartSeriesSelector','boards-chart-ui.section.waterfall','UniverRenderEnginePlugin','labelId','BoardToolType','borderWidth','createElement','ParetoBarSeries','invalidateChart','changeChartSource','BoardChartOpenEditController','getDataSourceSharingCount','boards-chart-ui.common.category','ChartTypeSpecificDataSection','requestSnapshot','fromEvent','UniverLicensePlugin','getHostStyle','getOwnPropertyDescriptor','_openFloatMenu','dispose$','chartIdByElementId','Pareto','push','IBoardChartUIService','ChartSeriesDataLabelFields','chartType$','setElementEditMode','_closePopup','342qWsfSE','filter','config','refreshChartModel','boards-chart-ui.common.horizontalAxis','innerHeight','board-chart','activeRuntimeModel$','style$','heatmap','object','anonymous','univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4\x20univer-p-1','ChartWordCloudShapeField','parseInt','setStyle','_chartEventDisposables','ChartSeriesRightAxisField','relation','ready','createChartInstance','BoardChartModelService','ChartThemeService','updateItem','ChartEditorCapability','BarStacked','Failed\x20to\x20render\x20board\x20chart\x20snapshot:\x20','ChartSectionAccordionItem','getObjectIncludeInGroup','activeScene','2366180zcQEtP','_boardCanvasPopManagerService','_syncPanel','@univerjs-pro/boards-chart-ui','setConfig','getObject','UniverInstanceType','DEFAULT_CHART_PARETO_VALUES','useState','ComponentManager','Series','DEFAULT_CHART_TITLE_VALUES','IBoardSidePanelService','Relation','DEFAULT_CHART_LINE_AND_AREA_VALUES','waterfall','cumulativeLineStyle','_renderManagerService','isDarkMode','univer-w-full\x20univer-justify-start','getViewState','useDependency','onEditData','registerChartInstance','getElement','titleKey','BoardChartClipboardAdapter','Scatter','focusedId','dispose','image','boards-chart-ui.dataEditor.unavailable','stroke','subUnitId','rightY','GeneralSeries','Image','ChartTypeSpecificSetupSection','match','subscribe','\x20has\x20no\x20render\x20config.','clearControl$','DEFAULT_CHART_WATERFALL_SETUP_VALUES','IndicatorLine','_openEditSession','get','Select','baseOn','boards-chart-ui.common.setup','ChartEditPanelTab','_editSessionService','_configService','bottom','ChartSeriesDataPointFields','_drawChartImage','borderClassName','227079EXVmuN','_resolveFrameStyle','boards-chart-ui.dataEditor.updateFailed','_applyHostStyle','boxSizing','_setActiveEditOverlay','source','sharingCount','ChartLineAndAreaSection','PenIcon','small','boards-chart-ui.candlestick.high','current','ChartSeriesTypeField','BoardChartUIService','name','scene','_chartThemeService','ChartViewStateKey','checkMounted','Histogram','BoardInteractionSurfaceService','ChartInlineTableEditor','boards-chart-ui.section.paretoLine','value','boards-chart-ui.common.label','boards-chart-ui.common.valueField','Board\x20chart\x20snapshot\x20rendering\x20requires\x20a\x20browser\x20document.','size','_chartElementEditMode','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','ChartLegendSection','ChartSnapshotQueue','executeCommand','BoardChartBuilderAdapter','UpdateBoardChartConfigCommand','_getBoardsUIConfig','right','composite','throttleTime','getBoardElementRenderObjectKey','Chart','Disposable','IBoardClipboardResourceAdapterService','initialRect','BOARD_CHART_SNAPSHOT_BORDER_WIDTH','HorizontalAxis','ChartStackField','arc','Legend','pluginName','board-chart.data-editor-dialog','Doughnut','preventDefault','_chartEventSubscriptions','InlineChartCreationIssueCode','naturalWidth','Style','resolveChartElementSelection','toSpec','ChartIndicatorLineSection','ChartWaterfallStyleSection','Axes','border','_chartUIService','anchorRect$','_renderContext','naturalHeight','_adapter','ChartWordCloudMaskImageIdField','_subscribeChartEvents','registerRenderModule','updateDataForChart','30VxVRyp','radius','BoardElementType','code','ChartTypeBits','ChartTypeField','3pTSGKg','getChartModel','_domLayerService','join','useRef','boards-chart-ui.common.legend','boards-chart-ui.common.verticalAxis','DEFAULT_CHART_STYLE_VALUES','targetUnitId','BOARDS_CHART_UI_PLUGIN_CONFIG_KEY','boards-chart-ui.common.switchRowColumn','forEach','_registerAdapter','UniverBoardsPlugin','_native','board-chart.dialog.data-editor','subscribeEvent','lineTo','asObservable','BOARDS_CHART_UI_PLUGIN_NAME','Button','getActiveSession','_commandService','boards-chart-element-float-menu','_activePanelDisposable','boards-chart-ui.common.customize','univer-relative\x20univer-h-full\x20univer-w-full\x20univer-overflow-hidden','InvalidCandlestickData','ChartEditorProvider','CHART_TYPE_CATALOG','engine','useChartEditorChartType','pendingInsert','UniverBoardsUIPlugin','_getChartRuntimeKey','boards-chart-ui.common.data','_injector','elementIdMap','getBoundingClientRect','_notifyScene','radar','_activePanelKey','disposeWithMe','route','setActiveChartRuntime','dataSources','univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-white','IUniverInstanceService','localPoint','strokeStyle','span','themeBorderColor','board-chart.snapshot-renderer','_snapshotService','getSnapshot','_interactionSurfaceService','_instanceService','getDataEditState','beginPath','axis','dataSource','Treemap','boards-chart-ui.section.pie','children','setFocusedSwimlaneLane','ChartSectionAccordionTrigger','boards-chart-ui.section.paretoBar','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','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','SetBoardChartDataSourceMutation','innerWidth','IBoardUIStateService','secondaryPlot','ChartThemeField','AreaPercentStacked','defaultChartConfig','_popupRuntimeKey','DEFAULT_CHART_RELATION_VALUES','transparent','Sunburst','ChartHostRenderMode','board-chart.edit-panel','attachPopupToObject','default','overflow','boards-chart-ui.config','selectedIds','Gauge','getValue','div','stopPropagation','additionalRenderAdapters','_activeLayerDisposable','createObject','_draw','board-chart-active','boards-chart-ui.candlestick.columnsError','Trendline','DEFAULT_CHART_AXIS_VALUES','rgb(','elementUpdate$','_listenChartResourceMutations','univer-flex\x20univer-justify-end\x20univer-gap-2','ChartWordCloudRepeatField','funnel','DEFAULT_BOARD_CHART_VALUES','VerticalAxis','delete-chart','preparePaste','3120234cgVFpC','elements','BarPercentStacked','values','boards-chart-ui.section.sunburst','boards-chart-ui.common.insertChartFailed','_resolveElementObject','_canvasPopupService','buildChartTypeSelectOptions','IDialogService','_chartEventHandlers','constructor','drawImage','_updateFrameStyle','syncLayout','onClose','boards-chart-ui.common.heatmap','ensureMount','getState','titles','elementRemoved','Module','boards-chart-ui.common.cancel','_attachScheduled','chartModelRemoved$','getElementById','toDisposable','extraProps','tryBuildInlineChartCreationPlan','chartBitsUtils','executeChartUpdateConfig','getRuntimeContext','_syncActiveChart','_clearActiveLayer','_snapshotRefreshers','univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','board-chart-style-panel','DEFAULT_CHART_RADAR_VALUES','markNotReady','_clearHiddenSelectedTarget','_host','delete','crossOrigin','getFrameStyle','quickToolbar','ChartNumberFormatTextField','IBoardElementService','GridlinesAndTicks','DisposableCollection','ChartSeriesRoot','DEFAULT_CHART_FUNNEL_VALUES','fill','boards-chart-ui.section.gauge','_popupSelectionKey','BOARDS_UI_PLUGIN_CONFIG_KEY','_frameStyle','charts','ICommandService','EmptyData','ensureChartModel','_shouldWaitForChartConfig','_closeActivePanel','max','_registerComponents','_bindChartEventHandlers','function','activeSession$','ChartAndAxisTitles','row','CHART_HOST_DEFAULT_BORDER_COLOR','change','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','scroll','_bindChartEventHandler','_syncSelectionState','activeRuntimeModel','hit','Candlestick','model','LineAndArea','SetBoardChartSnapshotMutation','IRenderManagerService','toPrimitive','ChartType','_disposeChartEventSubscriptions','boards-chart-ui.common.insert','rgba(255,\x20255,\x20255,\x200.18)','boards-chart-ui.candlestick.open','dataSourceId','ChartAxisSection','_localeService','clsx','getCurrentRenderModel','Pie','Dom','select','getRenderColor','elementAdd$','univer-text-xs\x20univer-text-red-600','moveTo','borderRadius','changeStart$','ChartSeriesPointFields','Funnel','stylizeSpec','Heatmap','WordCloud','_activeSession$','boards-chart-ui.chartTypes.','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','updateElement','boards-chart-ui.common.tableDataEmpty','Column','_renderService','pipe','updateFrameStyle','boards-chart-ui.section.lineAndArea','getUnit','selectionChange','setActiveChartById','boards-chart-ui.candlestick.low','jsxs','boards-chart-ui.common.chartType','defineProperty','button','_requestSnapshotForObject','_drawFrameStroke','resolveRotatedBoardObjectAnchorBound','angle','1.0.0-beta.0','height','emitEvent','vertical','offsetHeight','pageChange','boards-chart-ui.section.indicatorLine','target','_clearPopup','boards-chart-ui.common.value','save','status','isElementEditModeActive','_activeEditOverlay','Bubble','primary','IBoardElementStateService','width','UNIVER_BOARD','boards-chart-ui.common.editData','_adapterRegistry','showFloatMenu','ParetoLineSeries','string','barStyle','number','set','frameStyle','univer-w-full\x20!univer-min-w-0','DEFAULT_CHART_WATERFALL_STYLE_VALUES','config$','chartInvalidated$','legend','_isPopupSelectionStillActive','enabled','Chord','DEFAULT_CHART_TRENDLINE_VALUES','type','_scheduleAttachObjectDoubleClicks','ChartParetoSeriesSection','onFileLoaded$','Data','ChartRelationStyleSection','2487cyaYnP','Tools','board.operation.chart.open-data-editor','_boardElementService','transformByState','top-center','_chartRenderService','context','clientX','split','boards-chart-ui.common.chartAndAxisTitles','activeTool','clear','_resourceService','boards-chart-ui.chord.source','_clearPopupIfSelectionChanged','createChartInlineStarterData','Sankey','length','resolve','generateRandomId','color','getCanvasElement','ChartTitlesSection','UniverChartUIPlugin','LocaleService','BoardChartRenderAdapter','clip','img','series','onCommandExecuted','popup','pie','syncObject','lineAndArea','seriesId','restore','_attachObjectDoubleClicks','key','RemoveBoardChartDataSourceMutation','borderColor','9728ncPfNb','univer-shrink-0\x20univer-px-3','_univerInstanceService','_modelService','DataUrlImageChartHost','some','selectElements','IChartRenderModelManagerService','absolute','boards-chart-ui.common.chartStyle','createIdentifier','ICanvasPopupService','registerItem','changeEnd$','doubleClick','position','dataUrl','BoardCanvasPopManagerService','state$','_showPopupForSelection','BOARD_INSERT_CHART_PANEL_COMPONENT','boards-chart-ui.common.trendline','bounds','transformStart','onload','pieSecondaryPlotType','tools','interactionSurfaceActive$','DEFAULT_CHART_LEGEND_VALUES','_removeRenderAdapter','boards-chart-ui.section.chord','resourceService','ChartStyle','toolbar','ChartCommonDataMappingSection','section','CommandType','_objectDblclickDisposables','enableChartTool','translate','!univer-w-36\x20!univer-min-w-0','ChartPieStyleSection','backgroundColor','_activeChart','Plugin','boards-chart-ui.common.duplicate','_createChartRenderInstanceContext','isTransforming','elementRemove$','from','chartStyle','indicatorLine','payload','tab','_attachNativeLoadHandlers','elementId','DeleteIcon','Line','strokeWidth','board.chart.floating-toolbar','622672eDkQyb','RightVerticalAxis','getElementData','slice','registerCommand','UpdateBoardChartDataSourceCommand','_activeLayerId','bind','decorate','takeUntil','_chartInstanceMap','jsx','112YenvHz','BehaviorSubject','_themeService','registerAdapter','register','BoardChartEditSessionService','getChartIdsByDataSource','hostFill','CHART_HOST_DEFAULT_BORDER_RADIUS','makeDirty','getChart','WaterfallSeries','deepClone','getRenderUnitById','ChartEditPanelSection','AreaStacked','has','unitId','open','chartId','ChartSeriesBorderFields','BoardChartResourceService','onReady','_elementStateService','IBoardChartSnapshotRendererService','find','pareto','_buildPopupSelectionKey','scaleX','_init','includes','Inject','Injector','CHART_ELEMENT_FLOAT_MENU_COMPONENT','scaleY','ChartGridlinesAndTicksSection','resolveBoardElementWorldBounds','boards-chart-ui.section.histogram','InsertBoardChartOperation','next','useMemo','ChartHeatmapStyleSection','_uiStateService','ChartWaterfallSetupFields','board-chart-floating-toolbar','getDirection','BoardChartSelectionController','visible','ChartTrendlineSection','UniverBoardsChartPlugin','_appendRenderAdapter','Separator','_componentManager','rect','DEFAULT_CHART_WORD_CLOUD_VALUES','close','chartType','tryPrepareInlineChartData','boards-chart-ui.section.treemap','ChartHostAdapter','Radar','unsubscribe','call','border-box','univer-flex\x20univer-flex-col\x20univer-gap-2'];_0x4b51=function(){return _0x12ca60;};return _0x4b51();}const m=_0x139398(0x3b9),h={};function g(_0x4b4a54){'@babel/helpers - typeof';const _0x46b184=_0x139398;return g=typeof Symbol==_0x46b184(0x412)&&typeof Symbol[_0x46b184(0x292)]=='symbol'?function(_0x4238d6){return typeof _0x4238d6;}:function(_0x74c1db){const _0x296add=_0x46b184;return _0x74c1db&&typeof Symbol==_0x296add(0x412)&&_0x74c1db[_0x296add(0x3dc)]===Symbol&&_0x74c1db!==Symbol[_0x296add(0x260)]?_0x296add(0x2a1):typeof _0x74c1db;},g(_0x4b4a54);}function _(_0x44922f,_0x1749e5){const _0x5716fd=_0x139398;if(g(_0x44922f)!=_0x5716fd(0x2c9)||!_0x44922f)return _0x44922f;var _0xd51fdf=_0x44922f[Symbol[_0x5716fd(0x423)]];if(_0xd51fdf!==void 0x0){var _0x306cb3=_0xd51fdf[_0x5716fd(0x256)](_0x44922f,_0x1749e5||_0x5716fd(0x3b7));if(g(_0x306cb3)!=_0x5716fd(0x2c9))return _0x306cb3;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1749e5===_0x5716fd(0x193)?String:Number)(_0x44922f);}function v(_0x322b86){const _0x114ca4=_0x139398;var _0x712ea3=_(_0x322b86,_0x114ca4(0x193));return g(_0x712ea3)==_0x114ca4(0x2a1)?_0x712ea3:_0x712ea3+'';}function y(_0x13cde1,_0x548182,_0x1fef09){const _0x21cc21=_0x139398;return(_0x548182=v(_0x548182))in _0x13cde1?Object[_0x21cc21(0x176)](_0x13cde1,_0x548182,{'value':_0x1fef09,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x13cde1[_0x548182]=_0x1fef09,_0x13cde1;}function b(_0x4eeb27,_0x5a4200){return function(_0x111ef2,_0x5484a7){_0x5a4200(_0x111ef2,_0x5484a7,_0x4eeb27);};}function x(_0x2a8fb7,_0x43c114,_0x3f6f50,_0x57b8d1){const _0x53c7cf=_0x139398;var _0x10e71f=arguments[_0x53c7cf(0x1b9)],_0x419388=_0x10e71f<0x3?_0x43c114:_0x57b8d1===null?_0x57b8d1=Object[_0x53c7cf(0x2b4)](_0x43c114,_0x3f6f50):_0x57b8d1,_0x39bea8;if(typeof Reflect==_0x53c7cf(0x2c9)&&typeof Reflect[_0x53c7cf(0x214)]==_0x53c7cf(0x412))_0x419388=Reflect[_0x53c7cf(0x214)](_0x2a8fb7,_0x43c114,_0x3f6f50,_0x57b8d1);else{for(var _0xc4c982=_0x2a8fb7[_0x53c7cf(0x1b9)]-0x1;_0xc4c982>=0x0;_0xc4c982--)(_0x39bea8=_0x2a8fb7[_0xc4c982])&&(_0x419388=(_0x10e71f<0x3?_0x39bea8(_0x419388):_0x10e71f>0x3?_0x39bea8(_0x43c114,_0x3f6f50,_0x419388):_0x39bea8(_0x43c114,_0x3f6f50))||_0x419388);}return _0x10e71f>0x3&&_0x419388&&Object[_0x53c7cf(0x176)](_0x43c114,_0x3f6f50,_0x419388),_0x419388;}function S(_0xfb5d9,_0x53b6c1){const _0x1d7841=_0x139398;return(_0xfb5d9==null?void 0x0:_0xfb5d9[_0x1d7841(0x205)])===(_0x53b6c1==null?void 0x0:_0x53b6c1[_0x1d7841(0x205)])&&(_0xfb5d9==null?void 0x0:_0xfb5d9['section'])===(_0x53b6c1==null?void 0x0:_0x53b6c1[_0x1d7841(0x1f3)])&&(_0xfb5d9==null?void 0x0:_0xfb5d9[_0x1d7841(0x2f6)])===(_0x53b6c1==null?void 0x0:_0x53b6c1['titleKey'])&&(_0xfb5d9==null?void 0x0:_0xfb5d9[_0x1d7841(0x29a)])===(_0x53b6c1==null?void 0x0:_0x53b6c1['axisId'])&&(_0xfb5d9==null?void 0x0:_0xfb5d9['seriesId'])===(_0x53b6c1==null?void 0x0:_0x53b6c1['seriesId']);}function C(_0x5b9126,_0x12e937){const _0x2df72b=_0x139398;return(_0x5b9126==null?void 0x0:_0x5b9126['unitId'])===_0x12e937[_0x2df72b(0x229)]&&_0x5b9126[_0x2df72b(0x2fe)]===_0x12e937['subUnitId']&&_0x5b9126[_0x2df72b(0x207)]===_0x12e937[_0x2df72b(0x207)]&&_0x5b9126['chartId']===_0x12e937[_0x2df72b(0x22b)]&&_0x5b9126[_0x2df72b(0x31b)]===_0x12e937[_0x2df72b(0x31b)]&&S(_0x5b9126[_0x2df72b(0x38f)],_0x12e937[_0x2df72b(0x38f)]);}let w=class extends n[_0x139398(0x33f)]{constructor(_0x21b16c,_0x9b1308){const _0x4785fb=_0x139398;super(),this['_elementStateService']=_0x21b16c,this[_0x4785fb(0x1aa)]=_0x9b1308,y(this,_0x4785fb(0x43c),new r[(_0x4785fb(0x219))](null)),y(this,_0x4785fb(0x413),this[_0x4785fb(0x43c)][_0x4785fb(0x376)]()),this[_0x4785fb(0x38e)](this[_0x4785fb(0x22f)][_0x4785fb(0x1e2)][_0x4785fb(0x304)](_0x3f00c4=>this[_0x4785fb(0x41b)](_0x3f00c4))),this[_0x4785fb(0x38e)](this[_0x4785fb(0x1aa)][_0x4785fb(0x200)][_0x4785fb(0x304)](_0x415f79=>{const _0x6d263c=_0x4785fb;let _0x297c4d=this[_0x6d263c(0x379)]();_0x297c4d&&_0x415f79[_0x6d263c(0x1d5)](_0x3ef368=>_0x3ef368['unitId']===_0x297c4d[_0x6d263c(0x229)]&&_0x3ef368[_0x6d263c(0x2fe)]===_0x297c4d[_0x6d263c(0x2fe)]&&_0x3ef368[_0x6d263c(0x207)]===_0x297c4d[_0x6d263c(0x207)])&&this[_0x6d263c(0x24f)](_0x6d263c(0x3e5));}));}['dispose'](){const _0xf336c=_0x139398;this[_0xf336c(0x24f)]('dispose'),this[_0xf336c(0x43c)][_0xf336c(0x28e)](),super[_0xf336c(0x2fa)]();}[_0x139398(0x379)](){const _0x8f77fc=_0x139398;return this[_0x8f77fc(0x43c)][_0x8f77fc(0x3bc)]();}['open'](_0x10ce78){const _0x22ae86=_0x139398;let _0x4adcc4={..._0x10ce78};C(this['getActiveSession'](),_0x4adcc4)||this[_0x22ae86(0x43c)]['next'](_0x4adcc4);}['close'](_0x2ff440){const _0x245e1e=_0x139398;this['getActiveSession']()&&this[_0x245e1e(0x43c)][_0x245e1e(0x23f)](null);}['_syncSelectionState'](_0x1475ed){const _0x44b1b0=_0x139398;let _0x67addd=this[_0x44b1b0(0x379)]();if(!_0x67addd)return;if(_0x1475ed[_0x44b1b0(0x1ff)]){this[_0x44b1b0(0x24f)](_0x44b1b0(0x1e7));return;}if(!_0x1475ed[_0x44b1b0(0x1ae)]){this[_0x44b1b0(0x24f)]('selectionChange');return;}if(_0x1475ed['context'][_0x44b1b0(0x229)]!==_0x67addd[_0x44b1b0(0x229)]){this['close'](_0x44b1b0(0x171));return;}if(_0x1475ed[_0x44b1b0(0x1ae)][_0x44b1b0(0x2fe)]!==_0x67addd[_0x44b1b0(0x2fe)]){this[_0x44b1b0(0x24f)](_0x44b1b0(0x181));return;}if(_0x1475ed[_0x44b1b0(0x3ba)][_0x44b1b0(0x1b9)]!==0x1||_0x1475ed[_0x44b1b0(0x2f9)]!==_0x67addd['elementId']){this[_0x44b1b0(0x24f)](_0x44b1b0(0x171));return;}let _0x1bd4cf=this[_0x44b1b0(0x1aa)][_0x44b1b0(0x3ea)](_0x67addd['unitId'],_0x67addd[_0x44b1b0(0x2fe)],_0x67addd[_0x44b1b0(0x207)]);(!_0x1bd4cf||_0x1bd4cf[_0x44b1b0(0x261)][_0x44b1b0(0x1a1)]!==e[_0x44b1b0(0x360)][_0x44b1b0(0x33e)]||_0x1bd4cf[_0x44b1b0(0x261)][_0x44b1b0(0x22b)]!==_0x67addd[_0x44b1b0(0x22b)])&&this[_0x44b1b0(0x24f)]('selectionChange');}};w=x([b(0x0,t[_0x139398(0x18c)]),b(0x1,e[_0x139398(0x3ff)])],w);const T=new Set([o[_0x139398(0x362)]['ColumnStacked'],o[_0x139398(0x362)]['ColumnPercentStacked'],o['ChartTypeBits'][_0x139398(0x2d8)],o['ChartTypeBits'][_0x139398(0x3d3)],o[_0x139398(0x362)][_0x139398(0x349)],o['ChartTypeBits'][_0x139398(0x227)],o[_0x139398(0x362)][_0x139398(0x3ae)],o['ChartTypeBits'][_0x139398(0x2b8)]]),E=a[_0x139398(0x381)][_0x139398(0x2c0)](_0x1d8f88=>!T[_0x139398(0x228)](_0x1d8f88[_0x139398(0x32d)])),D=(0x0,n[_0x139398(0x1da)])('board-chart.ui.service');let O=class extends a['ChartUIService']{constructor(_0x1b4218,_0xc7a3ac,_0x39baf8,_0x588f8f){const _0x583930=_0x139398;super(_0x588f8f),this[_0x583930(0x1d3)]=_0x1b4218,this['_resourceService']=_0xc7a3ac,this['_commandService']=_0x39baf8;}get[_0x139398(0x41c)](){const _0x3450bc=_0x139398;return this[_0x3450bc(0x1d3)][_0x3450bc(0x41c)];}get['activeRuntimeModel$'](){const _0x5f41b3=_0x139398;return this[_0x5f41b3(0x1d3)][_0x5f41b3(0x2c6)];}get[_0x139398(0x1ef)](){const _0x249a1c=_0x139398;return this[_0x249a1c(0x1b4)];}[_0x139398(0x3ef)](_0x283806){const _0x222ef2=_0x139398;let _0x6f27ad=this['_modelService'][_0x222ef2(0x41c)],_0x978493=_0x283806['unitId']??(_0x6f27ad==null?void 0x0:_0x6f27ad[_0x222ef2(0x229)]),_0x1dc04e=_0x283806[_0x222ef2(0x22b)]??(_0x6f27ad==null?void 0x0:_0x6f27ad[_0x222ef2(0x22b)]);!_0x978493||!_0x1dc04e||this[_0x222ef2(0x37a)][_0x222ef2(0x336)](i[_0x222ef2(0x338)]['id'],{..._0x283806,'unitId':_0x978493,'chartId':_0x1dc04e});}};O=x([b(0x0,(0x0,n[_0x139398(0x237)])(i[_0x139398(0x2d4)])),b(0x1,(0x0,n[_0x139398(0x237)])(i[_0x139398(0x22d)])),b(0x2,n[_0x139398(0x40a)]),b(0x3,(0x0,n[_0x139398(0x237)])(a['ChartViewStateRegistry']))],O);const k=_0x139398(0x20b);function ee(_0x2cc98e){const _0x4fc2e9=_0x139398;_0x2cc98e[_0x4fc2e9(0x3be)]();}function te(_0x3286fe){const _0x18c2a1=_0x139398;var _0x27efe0,_0x257d72;let _0x1ea5c0=(0x0,l[_0x18c2a1(0x2f2)])(n[_0x18c2a1(0x40a)]),_0x592054=(0x0,l[_0x18c2a1(0x2f2)])(n[_0x18c2a1(0x238)]),_0x835b97=(0x0,l[_0x18c2a1(0x2f2)])(n[_0x18c2a1(0x393)]),_0x7e92d4=(0x0,l[_0x18c2a1(0x2f2)])(n[_0x18c2a1(0x1c0)]),_0x3c755f=(0x0,l[_0x18c2a1(0x2f2)])(i['BoardChartModelService']),_0x4a86aa=(0x0,l['useDependency'])(D),_0x3e2140=(0x0,l[_0x18c2a1(0x2f2)])(w),_0x33915e=(0x0,u['useMemo'])(()=>_0x3c755f[_0x18c2a1(0x40c)](_0x3286fe[_0x18c2a1(0x229)],_0x3286fe[_0x18c2a1(0x22b)]),[_0x3286fe['chartId'],_0x3286fe['unitId'],_0x3c755f]),_0x3588a6=(0x0,l['useObservable'])(_0x33915e==null?void 0x0:_0x33915e['model'][_0x18c2a1(0x2bc)],_0x33915e==null?void 0x0:_0x33915e[_0x18c2a1(0x41f)][_0x18c2a1(0x250)]),_0x199a23=(0x0,l[_0x18c2a1(0x275)])(_0x33915e==null?void 0x0:_0x33915e[_0x18c2a1(0x41f)]['style$'],_0x33915e==null?void 0x0:_0x33915e[_0x18c2a1(0x41f)][_0x18c2a1(0x26b)]),_0x7d5ee4=(0x0,u['useMemo'])(()=>{const _0x32a18e=_0x18c2a1;let _0x5c1daa=_0x835b97[_0x32a18e(0x170)](_0x3286fe[_0x32a18e(0x229)],n[_0x32a18e(0x2e3)][_0x32a18e(0x18e)]);return!_0x33915e||!_0x5c1daa?null:new a['ChartHostAdapter'](_0x33915e[_0x32a18e(0x41f)],new i[(_0x32a18e(0x337))]({'unitId':_0x3286fe[_0x32a18e(0x229)],'pageId':_0x3286fe['subUnitId'],'chartId':_0x3286fe[_0x32a18e(0x22b)],'elementId':_0x3286fe[_0x32a18e(0x207)],'boardModel':_0x5c1daa,'injector':_0x592054}));},[_0x3286fe,_0x592054,_0x33915e,_0x835b97]),_0x3fecdf=(0x0,u['useMemo'])(()=>(0x0,a[_0x18c2a1(0x3d9)])(E[_0x18c2a1(0x281)](_0x4bd6c2=>({..._0x4bd6c2,'label':_0x7e92d4['t']('boards-chart-ui.chartTypes.'+_0x4bd6c2[_0x18c2a1(0x2a5)])}))),[_0x7e92d4]);if(!_0x33915e)return null;let _0x1571d7=()=>{const _0x56354f=_0x18c2a1;_0x3e2140['open']({'chartId':_0x3286fe[_0x56354f(0x22b)],'elementId':_0x3286fe[_0x56354f(0x207)],'source':_0x56354f(0x3fd),'subUnitId':_0x3286fe['subUnitId'],'unitId':_0x3286fe[_0x56354f(0x229)]});},_0x11a235=()=>_0x1ea5c0[_0x18c2a1(0x336)](t[_0x18c2a1(0x27d)]['id']),_0x1fc1cc=_0x3682ec=>{const _0x4eea19=_0x18c2a1;var _0x3139cf,_0x3c1df0,_0x9eeeb1;if(_0x3c755f[_0x4eea19(0x390)](_0x33915e),!_0x7d5ee4)return;let _0x23d2ef=_0x3fecdf[_0x4eea19(0x231)](_0x50cd3e=>_0x50cd3e[_0x4eea19(0x32d)]===_0x3682ec),_0x45061b=(_0x23d2ef==null?void 0x0:_0x23d2ef['chartType'])??Number(_0x3682ec);if((_0x3139cf=(_0x3c1df0=_0x4a86aa['getViewState'](a[_0x4eea19(0x327)][_0x4eea19(0x424)]))['set'])==null||_0x3139cf[_0x4eea19(0x256)](_0x3c1df0,_0x7d5ee4,_0x45061b),_0x23d2ef!=null&&_0x23d2ef[_0x4eea19(0x1e9)]){var _0x1f1b4b,_0x38712b,_0x74fab7,_0x4d194f;(_0x1f1b4b=(_0x38712b=_0x4a86aa[_0x4eea19(0x2f1)](a['ChartViewStateKey'][_0x4eea19(0x42e)]))[_0x4eea19(0x196)])==null||_0x1f1b4b[_0x4eea19(0x256)](_0x38712b,_0x7d5ee4,{'composite':{..._0x199a23==null||(_0x74fab7=_0x199a23[_0x4eea19(0x1c7)])==null?void 0x0:_0x74fab7[_0x4eea19(0x33b)],'enabled':!0x0,'secondaryPlot':{..._0x199a23==null||(_0x4d194f=_0x199a23[_0x4eea19(0x1c7)])==null||(_0x4d194f=_0x4d194f['composite'])==null?void 0x0:_0x4d194f[_0x4eea19(0x3ac)],'type':_0x23d2ef[_0x4eea19(0x1e9)]}}});}else{if(_0x45061b===o['ChartTypeBits'][_0x4eea19(0x42e)]&&_0x199a23!=null&&(_0x9eeeb1=_0x199a23[_0x4eea19(0x1c7)])!=null&&_0x9eeeb1[_0x4eea19(0x33b)]){var _0x1989d1,_0x5d2962;(_0x1989d1=(_0x5d2962=_0x4a86aa[_0x4eea19(0x2f1)](a[_0x4eea19(0x327)][_0x4eea19(0x42e)]))[_0x4eea19(0x196)])==null||_0x1989d1[_0x4eea19(0x256)](_0x5d2962,_0x7d5ee4,{'composite':{..._0x199a23[_0x4eea19(0x1c7)][_0x4eea19(0x33b)],'enabled':!0x1}});}}},_0x246acc=(_0x199a23==null||(_0x27efe0=_0x199a23['pie'])==null||(_0x27efe0=_0x27efe0['composite'])==null?void 0x0:_0x27efe0['enabled'])===!0x0?(_0x257d72=_0x199a23[_0x18c2a1(0x1c7)][_0x18c2a1(0x33b)][_0x18c2a1(0x3ac)])==null?void 0x0:_0x257d72[_0x18c2a1(0x1a1)]:void 0x0,_0x1deed6=_0x246acc?_0x3fecdf[_0x18c2a1(0x231)](_0x55021e=>_0x55021e[_0x18c2a1(0x1e9)]===_0x246acc):void 0x0;return(0x0,d['jsxs'])(_0x18c2a1(0x3bd),{'className':(0x0,s[_0x18c2a1(0x42c)])(_0x18c2a1(0x168),s[_0x18c2a1(0x314)]),'data-u-comp':_0x18c2a1(0x244),'role':_0x18c2a1(0x1f1),'onMouseDown':ee,'onPointerDown':ee,'children':[(0x0,d[_0x18c2a1(0x217)])(s[_0x18c2a1(0x30b)],{'aria-label':_0x7e92d4['t'](_0x18c2a1(0x175)),'className':_0x18c2a1(0x1f8),'value':(_0x1deed6==null?void 0x0:_0x1deed6[_0x18c2a1(0x32d)])??String(_0x3588a6),'options':_0x3fecdf,'onChange':_0x1fc1cc}),(0x0,d['jsx'])(s[_0x18c2a1(0x24b)],{'orientation':_0x18c2a1(0x17f)}),(0x0,d[_0x18c2a1(0x217)])('button',{'type':_0x18c2a1(0x177),'aria-label':_0x7e92d4['t'](_0x18c2a1(0x28f)),'title':_0x7e92d4['t']('boards-chart-ui.common.editChart'),'className':_0x18c2a1(0x418),'data-toolbar-item':'edit-chart','onClick':_0x1571d7,'children':(0x0,d['jsx'])(c[_0x18c2a1(0x31e)],{})}),(0x0,d[_0x18c2a1(0x217)])(_0x18c2a1(0x177),{'type':_0x18c2a1(0x177),'aria-label':_0x7e92d4['t'](_0x18c2a1(0x279)),'title':_0x7e92d4['t'](_0x18c2a1(0x279)),'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':_0x18c2a1(0x3cf),'onClick':_0x11a235,'children':(0x0,d['jsx'])(c[_0x18c2a1(0x208)],{})})]});}function A(_0x46933a){const _0x2d05f8=_0x139398;let _0x49c563=_0x46933a[_0x2d05f8(0x1c6)][_0x2d05f8(0x3ec)];return _0x49c563?(0x0,d['jsx'])(te,{..._0x49c563}):null;}let j=class extends n['RxDisposable']{constructor(_0x2e19d7,_0x191ad8,_0x3fe9e9,_0x2fd923,_0x4da2e1,_0x7328fc,_0x43c9c6){const _0x2d0049=_0x139398;super(),this[_0x2d0049(0x357)]=_0x2e19d7,this[_0x2d0049(0x2de)]=_0x191ad8,this[_0x2d0049(0x1aa)]=_0x3fe9e9,this[_0x2d0049(0x22f)]=_0x2fd923,this[_0x2d0049(0x242)]=_0x4da2e1,this[_0x2d0049(0x30f)]=_0x7328fc,this['_interactionSurfaceService']=_0x43c9c6,y(this,_0x2d0049(0x291),null),y(this,'_popupSelectionKey',null),this['_init']();}[_0x139398(0x2fa)](){const _0x44af6b=_0x139398;this['_clearPopup'](),super[_0x44af6b(0x2fa)]();}[_0x139398(0x235)](){const _0x5596d6=_0x139398;let _0x185f32=this[_0x5596d6(0x357)][_0x5596d6(0x325)][_0x5596d6(0x25f)]();this[_0x5596d6(0x38e)]((0x0,n[_0x5596d6(0x3eb)])(_0x185f32['createControl$'][_0x5596d6(0x16d)]((0x0,r[_0x5596d6(0x215)])(this[_0x5596d6(0x2b6)]))[_0x5596d6(0x304)](()=>{const _0x331e5c=_0x5596d6;this[_0x331e5c(0x1e3)]();}))),this['disposeWithMe']((0x0,n['toDisposable'])(_0x185f32[_0x5596d6(0x306)]['pipe']((0x0,r['takeUntil'])(this[_0x5596d6(0x2b6)]))['subscribe'](()=>{const _0x4fbe7d=_0x5596d6;this[_0x4fbe7d(0x1b6)]();}))),this[_0x5596d6(0x38e)]((0x0,n[_0x5596d6(0x3eb)])(_0x185f32[_0x5596d6(0x436)][_0x5596d6(0x16d)]((0x0,r['takeUntil'])(this[_0x5596d6(0x2b6)]))[_0x5596d6(0x304)](()=>{this['_clearPopup']();}))),this[_0x5596d6(0x38e)]((0x0,n[_0x5596d6(0x3eb)])(_0x185f32[_0x5596d6(0x1dd)][_0x5596d6(0x16d)]((0x0,r[_0x5596d6(0x215)])(this[_0x5596d6(0x2b6)]))['subscribe'](()=>{setTimeout(()=>this['_showPopupForSelection'](),0x0);}))),this['disposeWithMe']((0x0,n[_0x5596d6(0x3eb)])(this[_0x5596d6(0x22f)][_0x5596d6(0x1e2)][_0x5596d6(0x16d)]((0x0,r['takeUntil'])(this['dispose$']))['subscribe'](()=>{const _0x20a762=_0x5596d6;setTimeout(()=>this[_0x20a762(0x1e3)](),0x0);}))),this['disposeWithMe']((0x0,n[_0x5596d6(0x3eb)])(this['_uiStateService']['state$'][_0x5596d6(0x16d)]((0x0,r[_0x5596d6(0x215)])(this['dispose$']))[_0x5596d6(0x304)](()=>{const _0x598877=_0x5596d6;setTimeout(()=>this[_0x598877(0x1e3)](),0x0);}))),this['disposeWithMe']((0x0,n[_0x5596d6(0x3eb)])(this[_0x5596d6(0x30f)][_0x5596d6(0x413)][_0x5596d6(0x16d)]((0x0,r[_0x5596d6(0x215)])(this['dispose$']))[_0x5596d6(0x304)](_0x44325c=>{const _0x1dfbd8=_0x5596d6;if(_0x44325c){this[_0x1dfbd8(0x184)]();return;}setTimeout(()=>this[_0x1dfbd8(0x1e3)](),0x0);}))),this['disposeWithMe']((0x0,n[_0x5596d6(0x3eb)])(this[_0x5596d6(0x39b)][_0x5596d6(0x1eb)][_0x5596d6(0x16d)]((0x0,r[_0x5596d6(0x215)])(this[_0x5596d6(0x2b6)]))[_0x5596d6(0x304)](_0x5eec73=>{const _0x16391d=_0x5596d6;if(_0x5eec73){this[_0x16391d(0x184)]();return;}setTimeout(()=>this[_0x16391d(0x1e3)](),0x0);})));}[_0x139398(0x184)](){const _0x15605b=_0x139398;var _0x153722;(_0x153722=this[_0x15605b(0x291)])==null||_0x153722[_0x15605b(0x2fa)](),this['_popupDisposable']=null,this['_popupSelectionKey']=null;}[_0x139398(0x1b6)](){setTimeout(()=>{const _0x898d98=_0x1864;this[_0x898d98(0x19d)]()||this[_0x898d98(0x184)]();},0x0);}[_0x139398(0x19d)](){const _0x155c5c=_0x139398;let _0x1c97ee=this[_0x155c5c(0x22f)][_0x155c5c(0x39a)]();return!_0x1c97ee['context']||_0x1c97ee['selectedIds']['length']!==0x1?!0x1:this['_popupSelectionKey']===this[_0x155c5c(0x233)](_0x1c97ee[_0x155c5c(0x1ae)]['unitId'],_0x1c97ee[_0x155c5c(0x1ae)][_0x155c5c(0x2fe)],_0x1c97ee[_0x155c5c(0x3ba)][0x0]);}[_0x139398(0x233)](_0x323b7a,_0x4eefd2,_0x1ead44){return _0x323b7a+':'+_0x4eefd2+':'+_0x1ead44;}['_showPopupForSelection'](){const _0x5b5e47=_0x139398;if(this[_0x5b5e47(0x39b)]['isInteractionSurfaceActive']||this[_0x5b5e47(0x30f)][_0x5b5e47(0x379)]()){this[_0x5b5e47(0x184)]();return;}let _0x144bdc=this[_0x5b5e47(0x22f)][_0x5b5e47(0x39a)](),_0x23b68d=this[_0x5b5e47(0x242)][_0x5b5e47(0x3e3)]();if(_0x144bdc[_0x5b5e47(0x1ff)]||_0x23b68d[_0x5b5e47(0x384)]||_0x23b68d['activeTool']!==null&&_0x23b68d[_0x5b5e47(0x1b2)]!==e['BoardToolType']['Select']||!_0x144bdc[_0x5b5e47(0x1ae)]||_0x144bdc['context'][_0x5b5e47(0x229)]!==this[_0x5b5e47(0x357)]['unitId']||_0x144bdc['selectedIds']['length']!==0x1||_0x144bdc[_0x5b5e47(0x2f9)]==null){this[_0x5b5e47(0x184)]();return;}let _0x4f5bab=this[_0x5b5e47(0x1aa)][_0x5b5e47(0x3ea)](_0x144bdc[_0x5b5e47(0x1ae)][_0x5b5e47(0x229)],_0x144bdc[_0x5b5e47(0x1ae)][_0x5b5e47(0x2fe)],_0x144bdc[_0x5b5e47(0x2f9)]);if(!_0x4f5bab||_0x4f5bab[_0x5b5e47(0x261)][_0x5b5e47(0x1a1)]!==e['BoardElementType']['Chart']){this[_0x5b5e47(0x184)]();return;}let _0x16e6e6=this[_0x5b5e47(0x3d7)](_0x4f5bab);if(!_0x16e6e6){this[_0x5b5e47(0x184)]();return;}let _0x4d5518=this[_0x5b5e47(0x233)](_0x4f5bab['unitId'],_0x4f5bab[_0x5b5e47(0x2fe)],_0x4f5bab[_0x5b5e47(0x207)]);this[_0x5b5e47(0x291)]&&this[_0x5b5e47(0x406)]===_0x4d5518||(this[_0x5b5e47(0x184)](),this[_0x5b5e47(0x291)]=this[_0x5b5e47(0x38e)](this[_0x5b5e47(0x2de)][_0x5b5e47(0x3b6)](_0x4f5bab[_0x5b5e47(0x229)],_0x4f5bab[_0x5b5e47(0x2fe)],_0x16e6e6,{'componentKey':k,'direction':_0x5b5e47(0x1ac),'offset':[0x0,0x24],'anchorBoundResolver':t[_0x5b5e47(0x17a)],'extraProps':{'unitId':_0x4f5bab[_0x5b5e47(0x229)],'subUnitId':_0x4f5bab[_0x5b5e47(0x2fe)],'elementId':_0x4f5bab[_0x5b5e47(0x207)],'chartId':_0x4f5bab['element'][_0x5b5e47(0x22b)]}})),this[_0x5b5e47(0x406)]=_0x4d5518);}[_0x139398(0x3d7)](_0x3cc0f7){const _0x4a8b08=_0x139398;var _0x323581;let _0x4fa7ce=(0x0,t[_0x4a8b08(0x33d)])(_0x3cc0f7[_0x4a8b08(0x229)],_0x3cc0f7[_0x4a8b08(0x207)]),_0x3eb44f=this[_0x4a8b08(0x357)]['scene'];return((_0x323581=_0x3eb44f[_0x4a8b08(0x2db)])==null?void 0x0:_0x323581['call'](_0x3eb44f,_0x4fa7ce))??_0x3eb44f[_0x4a8b08(0x2e2)](_0x4fa7ce)??null;}};j=x([b(0x1,(0x0,n[_0x139398(0x237)])(t[_0x139398(0x1e1)])),b(0x2,e[_0x139398(0x3ff)]),b(0x3,t[_0x139398(0x18c)]),b(0x4,t[_0x139398(0x3ab)]),b(0x5,(0x0,n[_0x139398(0x237)])(w)),b(0x6,(0x0,n['Inject'])(t[_0x139398(0x32a)]))],j);let M=class extends n['RxDisposable']{constructor(_0x51b264,_0x2e4f5e,_0x1a6c14,_0x45b5c1,_0x282c22,_0x2f9503){const _0x55d6a5=_0x139398;super(),this[_0x55d6a5(0x357)]=_0x51b264,this[_0x55d6a5(0x39c)]=_0x2e4f5e,this[_0x55d6a5(0x1aa)]=_0x1a6c14,this[_0x55d6a5(0x22f)]=_0x45b5c1,this[_0x55d6a5(0x242)]=_0x282c22,this[_0x55d6a5(0x30f)]=_0x2f9503,y(this,_0x55d6a5(0x3e8),!0x1),y(this,'_objectDblclickDisposables',null),this[_0x55d6a5(0x235)]();}[_0x139398(0x235)](){const _0x50bf9e=_0x139398;let {unitId:_0x412cc3}=this[_0x50bf9e(0x357)],_0x4a28e0=this[_0x50bf9e(0x39c)][_0x50bf9e(0x170)](_0x412cc3,n[_0x50bf9e(0x2e3)][_0x50bf9e(0x18e)]);this[_0x50bf9e(0x38e)]((0x0,n[_0x50bf9e(0x3eb)])(()=>{const _0x5832b0=_0x50bf9e;var _0xc59f26;return(_0xc59f26=this[_0x5832b0(0x1f5)])==null?void 0x0:_0xc59f26['dispose']();})),_0x4a28e0&&(this[_0x50bf9e(0x1a2)](_0x4a28e0),this['disposeWithMe'](this['_boardElementService'][_0x50bf9e(0x432)]['subscribe'](_0xad71b0=>{const _0x1a975e=_0x50bf9e;_0xad71b0[_0x1a975e(0x1d5)](_0x2e79ae=>_0x2e79ae[_0x1a975e(0x229)]===_0x412cc3)&&this['_scheduleAttachObjectDoubleClicks'](_0x4a28e0);})),this['disposeWithMe'](this['_boardElementService'][_0x50bf9e(0x3c8)][_0x50bf9e(0x304)](_0x5f2bb0=>{const _0x508731=_0x50bf9e;_0x5f2bb0[_0x508731(0x1d5)](_0x1132a3=>_0x1132a3[_0x508731(0x229)]===_0x412cc3)&&this[_0x508731(0x1a2)](_0x4a28e0);})),this[_0x50bf9e(0x38e)](this[_0x50bf9e(0x1aa)][_0x50bf9e(0x200)][_0x50bf9e(0x304)](_0xd0d7f5=>{const _0x2d4ac9=_0x50bf9e;_0xd0d7f5[_0x2d4ac9(0x1d5)](_0xca34d0=>_0xca34d0['unitId']===_0x412cc3)&&this['_scheduleAttachObjectDoubleClicks'](_0x4a28e0);})),this[_0x50bf9e(0x38e)](this[_0x50bf9e(0x22f)][_0x50bf9e(0x1e2)][_0x50bf9e(0x304)](_0x1b2685=>{const _0xf6da8d=_0x50bf9e;var _0x530f1c;((_0x530f1c=_0x1b2685[_0xf6da8d(0x1ae)])==null?void 0x0:_0x530f1c[_0xf6da8d(0x229)])===_0x412cc3&&this[_0xf6da8d(0x1a2)](_0x4a28e0);})));}[_0x139398(0x1a2)](_0x453372){const _0x37d832=_0x139398;this[_0x37d832(0x3e8)]||(this[_0x37d832(0x3e8)]=!0x0,Promise[_0x37d832(0x1ba)]()['then'](()=>this[_0x37d832(0x1cc)](_0x453372)));}[_0x139398(0x1cc)](_0x130b9b){const _0xf446f9=_0x139398;var _0x4bac4a;this['_attachScheduled']=!0x1;let {scene:_0x41572f,unitId:_0x3d1919}=this[_0xf446f9(0x357)],_0x3f3197=_0x130b9b['getActivePageId'](),_0x458813=this[_0xf446f9(0x1aa)]['getElementOrder'](_0x3d1919,_0x3f3197),_0x536bc3=new n[(_0xf446f9(0x401))]();(_0x4bac4a=this[_0xf446f9(0x1f5)])==null||_0x4bac4a['dispose'](),this[_0xf446f9(0x1f5)]=_0x536bc3,_0x458813[_0xf446f9(0x36f)](_0x4a7c31=>{const _0x44bab2=_0xf446f9;var _0x5611bb;let _0x47a88e=this['_boardElementService']['getElementById'](_0x3d1919,_0x3f3197,_0x4a7c31);if(!_0x47a88e||_0x47a88e['element'][_0x44bab2(0x1a1)]!==e[_0x44bab2(0x360)][_0x44bab2(0x33e)])return;let _0x296332=(0x0,t[_0x44bab2(0x33d)])(_0x3d1919,_0x4a7c31),_0xa0013b=((_0x5611bb=_0x41572f[_0x44bab2(0x2db)])==null?void 0x0:_0x5611bb[_0x44bab2(0x256)](_0x41572f,_0x296332))??_0x41572f[_0x44bab2(0x2e2)](_0x296332);_0xa0013b&&_0x536bc3[_0x44bab2(0x273)]((0x0,n[_0x44bab2(0x3eb)])(_0xa0013b['onDblclick$'][_0x44bab2(0x374)]((_0x54590d,_0x518835)=>{const _0x16914e=_0x44bab2;this[_0x16914e(0x309)](_0x47a88e,_0x54590d,_0x518835);})));});}[_0x139398(0x309)](_0x2ba2c6,_0x50d11f,_0x634ed3){const _0xaf290d=_0x139398;var _0xc59a37;if(this[_0xaf290d(0x242)][_0xaf290d(0x3e3)]()[_0xaf290d(0x384)]||this[_0xaf290d(0x22f)][_0xaf290d(0x39a)]()[_0xaf290d(0x1ff)]||_0x2ba2c6[_0xaf290d(0x261)][_0xaf290d(0x1a1)]!==e[_0xaf290d(0x360)][_0xaf290d(0x33e)])return;let _0x137503={'unitId':_0x2ba2c6[_0xaf290d(0x229)],'subUnitId':_0x2ba2c6[_0xaf290d(0x2fe)]};this[_0xaf290d(0x22f)][_0xaf290d(0x1d6)](_0x137503,[_0x2ba2c6[_0xaf290d(0x207)]],_0x2ba2c6[_0xaf290d(0x207)]),this[_0xaf290d(0x22f)][_0xaf290d(0x3a4)](_0x137503,null),this[_0xaf290d(0x30f)][_0xaf290d(0x22a)]({'chartId':_0x2ba2c6['element'][_0xaf290d(0x22b)],'elementId':_0x2ba2c6[_0xaf290d(0x207)],'source':_0xaf290d(0x1de),'subUnitId':_0x2ba2c6[_0xaf290d(0x2fe)],'unitId':_0x2ba2c6[_0xaf290d(0x229)]}),_0x634ed3&&(_0x634ed3['skipNextObservers']=!0x0),_0x50d11f==null||(_0xc59a37=_0x50d11f[_0xaf290d(0x34a)])==null||_0xc59a37[_0xaf290d(0x256)](_0x50d11f);}};M=x([b(0x1,n['IUniverInstanceService']),b(0x2,e[_0x139398(0x3ff)]),b(0x3,t[_0x139398(0x18c)]),b(0x4,t[_0x139398(0x3ab)]),b(0x5,(0x0,n['Inject'])(w))],M);let N=class extends n[_0x139398(0x33f)]{constructor(_0x50a507,_0x1f9c7b,_0x539c2b){const _0x3508af=_0x139398;super(),this['_resourceService']=_0x50a507,this[_0x3508af(0x1d3)]=_0x1f9c7b,this[_0x3508af(0x37a)]=_0x539c2b;}[_0x139398(0x39d)](_0xddbfa1,_0x4f1033){const _0x27dd01=_0x139398;let _0xaebc5b=this[_0x27dd01(0x1b4)][_0x27dd01(0x222)](_0xddbfa1,_0x4f1033),_0x589fba=_0xaebc5b?this[_0x27dd01(0x1b4)][_0x27dd01(0x26a)](_0xddbfa1,_0xaebc5b[_0x27dd01(0x429)]):void 0x0;return!_0xaebc5b||!_0x589fba?null:{'chartId':_0x4f1033,'chartType':_0xaebc5b[_0x27dd01(0x250)],'dataSource':{..._0x589fba,'values':_0x589fba[_0x27dd01(0x3d4)][_0x27dd01(0x281)](_0x4f9d66=>[..._0x4f9d66])},'sharingCount':this[_0x27dd01(0x1b4)][_0x27dd01(0x2ad)](_0xddbfa1,_0x589fba['id']),'unitId':_0xddbfa1};}async[_0x139398(0x35d)](_0x2d1e7d){const _0x21a229=_0x139398;var _0x194080;let _0x42f667=this[_0x21a229(0x39d)](_0x2d1e7d[_0x21a229(0x229)],_0x2d1e7d['chartId']);if(!_0x42f667||_0x2d1e7d[_0x21a229(0x3d4)]['length']===0x0)return!0x1;let _0x69d924=(_0x194080=this[_0x21a229(0x1b4)][_0x21a229(0x222)](_0x2d1e7d[_0x21a229(0x229)],_0x2d1e7d[_0x21a229(0x22b)]))==null?void 0x0:_0x194080[_0x21a229(0x250)];if(_0x69d924===void 0x0)return!0x1;let _0x138a4f=(0x0,a['tryPrepareInlineChartData'])(_0x69d924,_0x2d1e7d[_0x21a229(0x3d4)]);if(!_0x138a4f['ok']||_0x42f667[_0x21a229(0x31c)]>0x1&&!_0x2d1e7d[_0x21a229(0x25c)]&&!await this[_0x21a229(0x37a)][_0x21a229(0x336)](i['DuplicateBoardChartDataSourceCommand']['id'],{'chartId':_0x2d1e7d['chartId'],'unitId':_0x2d1e7d[_0x21a229(0x229)]}))return!0x1;let _0x3b4baa=this['_resourceService'][_0x21a229(0x222)](_0x2d1e7d['unitId'],_0x2d1e7d[_0x21a229(0x22b)]);if(!_0x3b4baa)return!0x1;let _0x1f4d5f=await this[_0x21a229(0x37a)][_0x21a229(0x336)](i[_0x21a229(0x211)]['id'],{'dataSourceId':_0x3b4baa[_0x21a229(0x429)],'name':_0x2d1e7d['name'],'unitId':_0x2d1e7d['unitId'],'values':_0x138a4f['values']});return _0x1f4d5f&&this[_0x21a229(0x1d3)][_0x21a229(0x2c2)](_0x2d1e7d[_0x21a229(0x229)],_0x2d1e7d[_0x21a229(0x22b)]),!!_0x1f4d5f;}};N=x([b(0x0,(0x0,n[_0x139398(0x237)])(i[_0x139398(0x22d)])),b(0x1,(0x0,n['Inject'])(i[_0x139398(0x2d4)])),b(0x2,n['ICommandService'])],N);const ne=_0x139398(0x348);function re(_0x448360){const _0x5021d8=_0x139398;let _0x4919df=(0x0,l[_0x5021d8(0x2f2)])(N),_0xd01cbc=(0x0,l[_0x5021d8(0x2f2)])(n[_0x5021d8(0x1c0)]),_0x25a132=_0x4919df[_0x5021d8(0x39d)](_0x448360[_0x5021d8(0x229)],_0x448360[_0x5021d8(0x22b)]),[_0x23597e,_0x44a240]=(0x0,u[_0x5021d8(0x2e5)])(()=>(_0x25a132==null?void 0x0:_0x25a132[_0x5021d8(0x3a0)][_0x5021d8(0x3d4)][_0x5021d8(0x281)](_0x7ab47e=>[..._0x7ab47e]))??[]),[_0x3277d9,_0x2e1bc6]=(0x0,u[_0x5021d8(0x2e5)])(null),_0x24e192=((_0x25a132==null?void 0x0:_0x25a132[_0x5021d8(0x31c)])??0x0)>0x1,_0x299ac6={[a[_0x5021d8(0x34c)]['UnknownOption']]:_0xd01cbc['t'](_0x5021d8(0x3d6)),[a['InlineChartCreationIssueCode']['EmptyData']]:_0xd01cbc['t'](_0x5021d8(0x16a)),[a[_0x5021d8(0x34c)][_0x5021d8(0x37f)]]:_0xd01cbc['t']('boards-chart-ui.candlestick.columnsError')};if(!_0x25a132)return(0x0,d[_0x5021d8(0x217)])(_0x5021d8(0x3bd),{'className':'univer-p-4\x20univer-text-sm\x20univer-text-gray-500\x20dark:!univer-text-gray-400','children':_0xd01cbc['t'](_0x5021d8(0x2fc))});let _0xaee33=async _0x51fbf3=>{const _0x2053a9=_0x5021d8;var _0xf35027;let _0x120815=(0x0,a[_0x2053a9(0x251)])(_0x25a132['chartType'],_0x23597e);if(!_0x120815['ok']){_0x2e1bc6(_0x299ac6[_0x120815[_0x2053a9(0x290)][_0x2053a9(0x361)]]);return;}if(!await _0x4919df['updateDataForChart']({'chartId':_0x448360[_0x2053a9(0x22b)],'name':_0x25a132[_0x2053a9(0x3a0)]['name'],'unitId':_0x448360[_0x2053a9(0x229)],'updateShared':_0x51fbf3,'values':_0x120815[_0x2053a9(0x3d4)]})){_0x2e1bc6(_0xd01cbc['t'](_0x2053a9(0x317)));return;}_0x2e1bc6(null),(_0xf35027=_0x448360['onClose'])==null||_0xf35027['call'](_0x448360);};return(0x0,d[_0x5021d8(0x174)])(_0x5021d8(0x3bd),{'className':_0x5021d8(0x2cb),'children':[(0x0,d[_0x5021d8(0x217)])(a[_0x5021d8(0x32b)],{'values':_0x23597e,'parsePastedText':o['parseInlineChartTable'],'onChange':_0x44a240}),_0x3277d9&&(0x0,d[_0x5021d8(0x217)])(_0x5021d8(0x3bd),{'className':_0x5021d8(0x433),'children':_0x3277d9}),(0x0,d[_0x5021d8(0x174)])(_0x5021d8(0x3bd),{'className':_0x5021d8(0x3ca),'children':[_0x448360[_0x5021d8(0x3e0)]&&(0x0,d[_0x5021d8(0x217)])(s[_0x5021d8(0x378)],{'type':'button','variant':_0x5021d8(0x3b7),'onClick':_0x448360[_0x5021d8(0x3e0)],'children':_0xd01cbc['t'](_0x5021d8(0x3e7))}),_0x24e192&&(0x0,d[_0x5021d8(0x217)])(s[_0x5021d8(0x378)],{'type':_0x5021d8(0x177),'variant':_0x5021d8(0x3b7),'onClick':()=>_0xaee33(!0x1),'children':_0xd01cbc['t'](_0x5021d8(0x1fd))}),(0x0,d[_0x5021d8(0x217)])(s[_0x5021d8(0x378)],{'type':_0x5021d8(0x177),'variant':_0x5021d8(0x18b),'onClick':()=>_0xaee33(!0x0),'children':_0xd01cbc['t']('boards-chart-ui.common.apply')})]})]});}const ie={'id':_0x139398(0x1a9),'type':n[_0x139398(0x1f4)]['OPERATION'],'handler':(_0x298168,_0x5858b1)=>{const _0x4a42c5=_0x139398;if(!_0x5858b1||!_0x298168[_0x4a42c5(0x30a)](N)['getDataEditState'](_0x5858b1[_0x4a42c5(0x229)],_0x5858b1[_0x4a42c5(0x22b)])||!_0x298168['get'](l[_0x4a42c5(0x2e6)])[_0x4a42c5(0x30a)](_0x4a42c5(0x348)))return!0x1;let _0x2b07d1=_0x298168[_0x4a42c5(0x30a)](l[_0x4a42c5(0x3da)]),_0xdaca7c=_0x298168[_0x4a42c5(0x30a)](n[_0x4a42c5(0x1c0)]),_0x1520fe=null,_0x58073e=()=>{const _0x32a1d7=_0x4a42c5;_0x1520fe==null||_0x1520fe[_0x32a1d7(0x2fa)](),_0x1520fe=null;};return _0x1520fe=_0x2b07d1[_0x4a42c5(0x22a)]({'id':_0x4a42c5(0x373),'title':{'title':_0xdaca7c['t'](_0x4a42c5(0x18f))},'width':0x2f8,'draggable':!0x1,'mask':!0x0,'maskClosable':!0x1,'children':{'label':{'name':ne,'props':{..._0x5858b1,'onClose':_0x58073e}}},'onClose':_0x58073e}),!0x0;}},P=_0x139398(0x3b5),F={'axis':{...a[_0x139398(0x3c6)],'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'legend':a[_0x139398(0x1ec)],'lineAndArea':a[_0x139398(0x2eb)],'pareto':a[_0x139398(0x2e4)],'funnel':a[_0x139398(0x403)],'heatmap':a['DEFAULT_CHART_HEATMAP_VALUES'],'indicatorLine':a['DEFAULT_CHART_INDICATOR_LINE_VALUES'],'pie':{...a[_0x139398(0x266)],'doughnutHole':0x0,'pieHole':0x0},'relation':{...a[_0x139398(0x3b1)],'useValueAsSymbolSize':!0x0},'radar':a[_0x139398(0x3f6)],'series':{...a[_0x139398(0x25b)],'radarFillOpacity':0x1,'rightAxis':{'ltr':!0x1,'rtl':!0x1}},'style':a[_0x139398(0x36b)],'titles':a[_0x139398(0x2e8)],'trendline':a[_0x139398(0x1a0)],'waterfall':{...a[_0x139398(0x307)],'useSubtotal':!0x1},'waterfallStyle':a[_0x139398(0x199)],'wordCloud':a[_0x139398(0x24e)]},ae=[o[_0x139398(0x362)][_0x139398(0x209)],o[_0x139398(0x362)][_0x139398(0x254)],o[_0x139398(0x362)]['WordCloud'],o[_0x139398(0x362)][_0x139398(0x2f8)],o['ChartTypeBits'][_0x139398(0x2ea)],o[_0x139398(0x362)][_0x139398(0x1b8)],o[_0x139398(0x362)]['Heatmap'],o[_0x139398(0x362)]['Boxplot'],o[_0x139398(0x362)][_0x139398(0x41e)],o['ChartTypeBits'][_0x139398(0x329)],o[_0x139398(0x362)][_0x139398(0x3a1)],o[_0x139398(0x362)]['Sunburst'],o[_0x139398(0x362)][_0x139398(0x3bb)],o['ChartTypeBits'][_0x139398(0x19f)]];function oe(_0x26aa58){const _0x1abede=_0x139398;let _0x113f10=(0x0,l['useDependency'])(n['LocaleService']);return(0x0,d[_0x1abede(0x174)])(_0x1abede(0x3bd),{'children':[(0x0,d[_0x1abede(0x217)])(a['ChartEditBlockTitle'],{'title':_0x113f10['t'](_0x1abede(0x387))}),(0x0,d[_0x1abede(0x217)])(s[_0x1abede(0x378)],{'type':_0x1abede(0x177),'variant':'default','className':_0x1abede(0x2f0),'onClick':_0x26aa58[_0x1abede(0x2f3)],'children':_0x113f10['t']('boards-chart-ui.common.editData')})]});}function se(){const _0x454927=_0x139398;let _0x3e9d49=(0x0,a[_0x454927(0x383)])();return(0x0,d[_0x454927(0x217)])(a['ChartGradientFillField'],{'visible':ae['every'](_0x51cae1=>!o[_0x454927(0x3ee)][_0x454927(0x30c)](_0x3e9d49,_0x51cae1))});}function ce(_0x5c4554){const _0xbe5b37=_0x139398;return(0x0,d[_0xbe5b37(0x174)])(a[_0xbe5b37(0x2da)],{'id':_0x5c4554['id'],'children':[(0x0,d[_0xbe5b37(0x217)])(a[_0xbe5b37(0x3a5)],{'children':_0x5c4554['label']}),(0x0,d[_0xbe5b37(0x217)])(a[_0xbe5b37(0x28d)],{'children':_0x5c4554[_0xbe5b37(0x3a3)]})]});}function le(_0x44325b,_0x4b9be5){const _0x391bc3=_0x139398;let _0xdbac60=_0x44325b===o[_0x391bc3(0x362)][_0x391bc3(0x43b)],_0x17289b=o[_0x391bc3(0x3ee)][_0x391bc3(0x30c)](_0x44325b,o[_0x391bc3(0x362)][_0x391bc3(0x18a)]),_0x10047b=_0x44325b===o[_0x391bc3(0x362)][_0x391bc3(0x438)],_0x711e45=_0x44325b===o[_0x391bc3(0x362)][_0x391bc3(0x2ea)],_0x50a69b=_0x44325b===o[_0x391bc3(0x362)][_0x391bc3(0x43a)],_0x3bddb1=o['chartBitsUtils'][_0x391bc3(0x30c)](_0x44325b,o[_0x391bc3(0x362)][_0x391bc3(0x42e)]),_0xb0d963=_0x44325b===o['ChartTypeBits'][_0x391bc3(0x254)],_0x47a758=_0x44325b===o[_0x391bc3(0x362)][_0x391bc3(0x265)],_0x1ea920=_0x44325b===o[_0x391bc3(0x362)][_0x391bc3(0x2b8)],_0x1f3afd=_0x44325b===o['ChartTypeBits']['Candlestick'],_0xe7d9ea=_0x44325b===o['ChartTypeBits'][_0x391bc3(0x329)],_0x366ac5=_0x44325b===o['ChartTypeBits'][_0x391bc3(0x3a1)],_0x372632=_0x44325b===o[_0x391bc3(0x362)][_0x391bc3(0x3b3)],_0x2c5268=_0x44325b===o[_0x391bc3(0x362)][_0x391bc3(0x3bb)],_0x16b689=_0x44325b===o['ChartTypeBits'][_0x391bc3(0x19f)],_0x4543f5=[a['ChartEditPanelSection']['ChartStyle'],a['ChartEditPanelSection']['ChartAndAxisTitles']];return _0xdbac60&&_0x4543f5[_0x391bc3(0x2b9)](a['ChartEditPanelSection'][_0x391bc3(0x43b)]),(0x0,a['chartTypeSupportsCapability'])(_0x44325b,a[_0x391bc3(0x2d7)][_0x391bc3(0x300)])&&!_0x17289b&&!_0x1ea920&&_0x4543f5[_0x391bc3(0x2b9)](a[_0x391bc3(0x226)][_0x391bc3(0x2e7)]),_0x47a758&&_0x4543f5[_0x391bc3(0x2b9)](a[_0x391bc3(0x226)]['WaterfallSeries']),_0x1ea920&&_0x4543f5[_0x391bc3(0x2b9)](a[_0x391bc3(0x226)][_0x391bc3(0x2a9)],a['ChartEditPanelSection'][_0x391bc3(0x192)]),_0x3bddb1&&_0x4543f5[_0x391bc3(0x2b9)](a[_0x391bc3(0x226)][_0x391bc3(0x25d)]),_0xb0d963&&_0x4543f5['push'](a[_0x391bc3(0x226)][_0x391bc3(0x254)]),_0x10047b&&_0x4543f5['push'](a['ChartEditPanelSection'][_0x391bc3(0x438)]),_0x50a69b&&_0x4543f5[_0x391bc3(0x2b9)](a[_0x391bc3(0x226)][_0x391bc3(0x43a)]),_0x711e45&&_0x4543f5[_0x391bc3(0x2b9)](a[_0x391bc3(0x226)][_0x391bc3(0x2ea)]),(0x0,a['chartTypeSupportsLineAndAreaStyle'])(_0x44325b)&&_0x4543f5[_0x391bc3(0x2b9)](a[_0x391bc3(0x226)]['LineAndArea']),(0x0,a['chartTypeSupportsCapability'])(_0x44325b,a[_0x391bc3(0x2d7)]['Legend'])&&_0x4543f5[_0x391bc3(0x2b9)](a[_0x391bc3(0x226)][_0x391bc3(0x346)]),(0x0,a['chartTypeSupportsCapability'])(_0x44325b,a['ChartEditorCapability'][_0x391bc3(0x353)])&&(_0x4543f5[_0x391bc3(0x2b9)](a[_0x391bc3(0x226)][_0x391bc3(0x343)],a['ChartEditPanelSection']['VerticalAxis']),_0x4b9be5&&_0x4543f5[_0x391bc3(0x2b9)](a[_0x391bc3(0x226)][_0x391bc3(0x20d)]),_0x4543f5[_0x391bc3(0x2b9)](a['ChartEditPanelSection'][_0x391bc3(0x400)])),(0x0,a['chartTypeSupportsCapability'])(_0x44325b,a[_0x391bc3(0x2d7)][_0x391bc3(0x308)])&&_0x4543f5['push'](a[_0x391bc3(0x226)][_0x391bc3(0x308)]),(0x0,o['chartTypeCanUseTrendLine'])(_0x44325b)&&_0x4543f5[_0x391bc3(0x2b9)](a['ChartEditPanelSection'][_0x391bc3(0x3c5)]),_0x1f3afd&&_0x4543f5[_0x391bc3(0x2b9)](a[_0x391bc3(0x226)][_0x391bc3(0x41e)]),_0xe7d9ea&&_0x4543f5[_0x391bc3(0x2b9)](a['ChartEditPanelSection'][_0x391bc3(0x329)]),_0x366ac5&&_0x4543f5[_0x391bc3(0x2b9)](a[_0x391bc3(0x226)][_0x391bc3(0x3a1)]),_0x372632&&_0x4543f5[_0x391bc3(0x2b9)](a[_0x391bc3(0x226)]['Sunburst']),_0x2c5268&&_0x4543f5[_0x391bc3(0x2b9)](a['ChartEditPanelSection']['Gauge']),_0x16b689&&_0x4543f5[_0x391bc3(0x2b9)](a['ChartEditPanelSection'][_0x391bc3(0x19f)]),_0x4543f5;}function ue(_0x879b9e){const _0xd757fc=_0x139398;var _0x3e6721,_0x2da834,_0x271d98;let _0x3093e5=(0x0,l['useDependency'])(n['LocaleService']),_0x1e3fe8=(0x0,a['useChartEditorChartType'])(),_0x1d9495=(0x0,a['useChartEditorHasRightAxis'])(),[_0x292a9a,_0x16b2e0]=(0x0,u[_0xd757fc(0x2e5)])(null),_0x2ffb20=le(_0x1e3fe8,_0x1d9495),_0x53c77c=(0x0,d['jsx'])(a['ChartTypeSpecificStyleSection'],{}),_0x2e5420={[a[_0xd757fc(0x226)][_0xd757fc(0x41e)]]:_0x3093e5['t']('boards-chart-ui.section.candlestick'),[a[_0xd757fc(0x226)]['ChartAndAxisTitles']]:_0x3093e5['t'](_0xd757fc(0x1b1)),[a[_0xd757fc(0x226)][_0xd757fc(0x1f0)]]:_0x3093e5['t'](_0xd757fc(0x1d9)),[a[_0xd757fc(0x226)]['Chord']]:_0x3093e5['t'](_0xd757fc(0x1ee)),[a[_0xd757fc(0x226)][_0xd757fc(0x438)]]:_0x3093e5['t']('boards-chart-ui.section.funnel'),[a[_0xd757fc(0x226)][_0xd757fc(0x3bb)]]:_0x3093e5['t'](_0xd757fc(0x405)),[a[_0xd757fc(0x226)]['GridlinesAndTicks']]:_0x3093e5['t']('boards-chart-ui.section.gridlinesAndTicks'),[a[_0xd757fc(0x226)][_0xd757fc(0x43a)]]:_0x3093e5['t'](_0xd757fc(0x3e1)),[a[_0xd757fc(0x226)][_0xd757fc(0x329)]]:_0x3093e5['t'](_0xd757fc(0x23d)),[a[_0xd757fc(0x226)][_0xd757fc(0x343)]]:_0x3093e5['t'](_0xd757fc(0x2c3)),[a[_0xd757fc(0x226)][_0xd757fc(0x308)]]:_0x3093e5['t'](_0xd757fc(0x182)),[a[_0xd757fc(0x226)][_0xd757fc(0x346)]]:_0x3093e5['t'](_0xd757fc(0x369)),[a[_0xd757fc(0x226)][_0xd757fc(0x420)]]:_0x3093e5['t'](_0xd757fc(0x16f)),[a[_0xd757fc(0x226)][_0xd757fc(0x2a9)]]:_0x3093e5['t'](_0xd757fc(0x3a6)),[a[_0xd757fc(0x226)][_0xd757fc(0x192)]]:_0x3093e5['t'](_0xd757fc(0x32c)),[a['ChartEditPanelSection'][_0xd757fc(0x25d)]]:_0x3093e5['t'](_0xd757fc(0x3a2)),[a[_0xd757fc(0x226)][_0xd757fc(0x254)]]:_0x3093e5['t']('boards-chart-ui.section.radar'),[a['ChartEditPanelSection'][_0xd757fc(0x2ea)]]:_0x3093e5['t']('boards-chart-ui.section.relation'),[a[_0xd757fc(0x226)][_0xd757fc(0x20d)]]:_0x3093e5['t']('boards-chart-ui.common.rightVerticalAxis'),[a[_0xd757fc(0x226)]['Series']]:_0x3093e5['t']('boards-chart-ui.common.series'),[a['ChartEditPanelSection'][_0xd757fc(0x3b3)]]:_0x3093e5['t'](_0xd757fc(0x3d5)),[a[_0xd757fc(0x226)]['Treemap']]:_0x3093e5['t'](_0xd757fc(0x252)),[a[_0xd757fc(0x226)]['Trendline']]:_0x3093e5['t'](_0xd757fc(0x1e5)),[a[_0xd757fc(0x226)]['VerticalAxis']]:_0x3093e5['t'](_0xd757fc(0x36a)),[a[_0xd757fc(0x226)][_0xd757fc(0x223)]]:_0x3093e5['t'](_0xd757fc(0x2a3)),[a['ChartEditPanelSection'][_0xd757fc(0x43b)]]:_0x3093e5['t']('boards-chart-ui.section.wordCloud')};(0x0,u[_0xd757fc(0x278)])(()=>{const _0x2039f2=_0xd757fc;var _0x1a7729;(_0x1a7729=_0x879b9e['route'])!=null&&_0x1a7729[_0x2039f2(0x1f3)]&&_0x16b2e0(_0x879b9e[_0x2039f2(0x38f)][_0x2039f2(0x1f3)]);},[_0x879b9e[_0xd757fc(0x38f)]]);let _0x15cf2d={[a[_0xd757fc(0x226)][_0xd757fc(0x1f0)]]:(0x0,d[_0xd757fc(0x217)])(a['ChartStyleSection'],{'defaultValues':F['style'],'showBodyFont':!0x0}),[a['ChartEditPanelSection'][_0xd757fc(0x414)]]:(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x1be)],{'commitMode':_0xd757fc(0x417),'defaultValues':F[_0xd757fc(0x3e4)],'selectedTitleKey':(_0x3e6721=_0x879b9e[_0xd757fc(0x38f)])==null?void 0x0:_0x3e6721[_0xd757fc(0x2f6)]}),[a['ChartEditPanelSection'][_0xd757fc(0x2e7)]]:(0x0,d[_0xd757fc(0x174)])(a[_0xd757fc(0x402)],{'defaultValues':F[_0xd757fc(0x1c4)],'NumberFormatField':a[_0xd757fc(0x3fe)],'selectedSeriesId':(_0x2da834=_0x879b9e['route'])==null?void 0x0:_0x2da834[_0xd757fc(0x1ca)],'children':[(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x2a2)],{}),(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x322)],{'individualOnly':!0x0}),(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x298)],{}),(0x0,d['jsx'])(a[_0xd757fc(0x22c)],{}),(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x437)],{}),(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x2d0)],{}),(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x2bb)],{}),(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x312)],{})]}),[a[_0xd757fc(0x226)]['WaterfallSeries']]:(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x352)],{'defaultValues':F['waterfallStyle'],'NumberFormatField':a[_0xd757fc(0x3fe)],'selectedSeriesId':(_0x271d98=_0x879b9e[_0xd757fc(0x38f)])==null?void 0x0:_0x271d98[_0xd757fc(0x1ca)],'showBucketName':()=>!0x0}),[a['ChartEditPanelSection'][_0xd757fc(0x2a9)]]:(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x1a3)],{'defaultValues':F[_0xd757fc(0x232)],'NumberFormatField':a[_0xd757fc(0x3fe)],'showDataPointEditor':!0x0,'target':_0xd757fc(0x194)}),[a['ChartEditPanelSection'][_0xd757fc(0x192)]]:(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x1a3)],{'defaultValues':F[_0xd757fc(0x232)],'NumberFormatField':a[_0xd757fc(0x3fe)],'showDataPointEditor':!0x0,'target':_0xd757fc(0x2ed)}),[a[_0xd757fc(0x226)][_0xd757fc(0x25d)]]:(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x1f9)],{'defaultValues':F[_0xd757fc(0x1c7)],'NumberFormatField':a[_0xd757fc(0x3fe)]}),[a[_0xd757fc(0x226)]['WordCloud']]:(0x0,d[_0xd757fc(0x174)])(a['ChartWordCloudRoot'],{'children':[(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x2cc)],{'defaultValues':F['wordCloud']}),(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x35a)],{}),(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x3cb)],{'defaultValues':F['wordCloud']})]}),[a[_0xd757fc(0x226)]['Radar']]:(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x288)],{'defaultValues':F[_0xd757fc(0x38c)]}),[a[_0xd757fc(0x226)][_0xd757fc(0x438)]]:(0x0,d['jsx'])(a['ChartFunnelStyleSection'],{'defaultValues':F[_0xd757fc(0x3cc)],'gapControl':_0xd757fc(0x195)}),[a[_0xd757fc(0x226)]['Heatmap']]:(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x241)],{'defaultValues':F[_0xd757fc(0x2c8)]}),[a['ChartEditPanelSection'][_0xd757fc(0x2ea)]]:(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x1a6)],{'defaultValues':F[_0xd757fc(0x2d1)]}),[a[_0xd757fc(0x226)][_0xd757fc(0x420)]]:(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x31d)],{'defaultValues':F[_0xd757fc(0x1c9)],'lineStyleControl':_0xd757fc(0x430)}),[a['ChartEditPanelSection']['Legend']]:(0x0,d['jsx'])(a[_0xd757fc(0x334)],{'defaultValues':F[_0xd757fc(0x19c)]}),[a[_0xd757fc(0x226)][_0xd757fc(0x343)]]:(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x42a)],{'axis':'x','defaultValues':F[_0xd757fc(0x39f)],'NumberFormatField':a[_0xd757fc(0x3fe)]}),[a['ChartEditPanelSection'][_0xd757fc(0x3ce)]]:(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x42a)],{'axis':'y','defaultValues':F['axis'],'NumberFormatField':a[_0xd757fc(0x3fe)]}),[a[_0xd757fc(0x226)][_0xd757fc(0x20d)]]:(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x42a)],{'axis':_0xd757fc(0x2ff),'defaultValues':F['axis'],'NumberFormatField':a[_0xd757fc(0x3fe)]}),[a[_0xd757fc(0x226)][_0xd757fc(0x400)]]:(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x23b)],{'defaultValues':F[_0xd757fc(0x39f)]}),[a[_0xd757fc(0x226)][_0xd757fc(0x308)]]:(0x0,d[_0xd757fc(0x217)])(a[_0xd757fc(0x351)],{'defaultValues':F[_0xd757fc(0x203)]}),[a[_0xd757fc(0x226)]['Trendline']]:(0x0,d['jsx'])(a[_0xd757fc(0x248)],{'defaultValues':F['trendline']}),[a[_0xd757fc(0x226)][_0xd757fc(0x41e)]]:_0x53c77c,[a[_0xd757fc(0x226)][_0xd757fc(0x329)]]:_0x53c77c,[a[_0xd757fc(0x226)][_0xd757fc(0x3a1)]]:_0x53c77c,[a[_0xd757fc(0x226)][_0xd757fc(0x3b3)]]:_0x53c77c,[a[_0xd757fc(0x226)][_0xd757fc(0x3bb)]]:_0x53c77c,[a[_0xd757fc(0x226)]['Chord']]:_0x53c77c};return(0x0,d['jsx'])(a[_0xd757fc(0x26c)],{'value':_0x292a9a,'onChange':_0x16b2e0,'children':_0x2ffb20[_0xd757fc(0x281)](_0x700d3d=>(0x0,d['jsx'])(ce,{'id':_0x700d3d,'label':_0x2e5420[_0x700d3d],'children':_0x15cf2d[_0x700d3d]},_0x700d3d))});}function de({unitId:_0x39050a,subUnitId:_0x5576c6,elementId:_0x2c7d53,chartId:_0x4bc0db}){const _0x1d80f8=_0x139398;let _0x2c7ab9=(0x0,l[_0x1d80f8(0x2f2)])(i[_0x1d80f8(0x2d4)]),_0x5074a4=(0x0,l['useDependency'])(D),_0x5bea24=(0x0,l[_0x1d80f8(0x2f2)])(n['LocaleService']),_0x4621d8=(0x0,l[_0x1d80f8(0x2f2)])(n[_0x1d80f8(0x40a)]),_0xea408f=(0x0,l[_0x1d80f8(0x2f2)])(n['Injector']),_0x560783=(0x0,l[_0x1d80f8(0x2f2)])(n[_0x1d80f8(0x393)]),_0x3ae607=(0x0,l[_0x1d80f8(0x2f2)])(w),_0x6fded3=(0x0,l['useObservable'])(_0x2c7ab9[_0x1d80f8(0x2c6)],_0x2c7ab9['activeRuntimeModel']),_0x5e14a9=(0x0,l[_0x1d80f8(0x275)])(_0x3ae607[_0x1d80f8(0x413)],_0x3ae607[_0x1d80f8(0x379)]()),[_0x5cc233,_0x12fd2e]=(0x0,u[_0x1d80f8(0x2e5)])(a[_0x1d80f8(0x30e)][_0x1d80f8(0x1a5)]),_0x1801e9=(_0x5e14a9==null?void 0x0:_0x5e14a9['unitId'])===_0x39050a&&_0x5e14a9['chartId']===_0x4bc0db&&_0x5e14a9[_0x1d80f8(0x207)]===_0x2c7d53?_0x5e14a9[_0x1d80f8(0x38f)]:void 0x0;(0x0,u[_0x1d80f8(0x278)])(()=>{const _0x2b34a2=_0x1d80f8;_0x2c7ab9[_0x2b34a2(0x172)](_0x39050a,_0x4bc0db);},[_0x4bc0db,_0x2c7ab9,_0x39050a]),(0x0,u[_0x1d80f8(0x278)])(()=>{const _0x18c729=_0x1d80f8;_0x1801e9!=null&&_0x1801e9[_0x18c729(0x205)]&&_0x12fd2e(_0x1801e9['tab']);},[_0x1801e9]);let _0x15ea10=(_0x6fded3==null?void 0x0:_0x6fded3[_0x1d80f8(0x229)])===_0x39050a&&_0x6fded3[_0x1d80f8(0x22b)]===_0x4bc0db,_0x93e10e=(0x0,u[_0x1d80f8(0x240)])(()=>{const _0x36ef99=_0x1d80f8;if(!_0x15ea10)return null;let _0x1d239c=_0x560783[_0x36ef99(0x170)](_0x39050a,n[_0x36ef99(0x2e3)][_0x36ef99(0x18e)]);return _0x1d239c?new a['ChartHostAdapter'](_0x6fded3[_0x36ef99(0x41f)],new i['BoardChartBuilderAdapter']({'unitId':_0x39050a,'pageId':_0x5576c6,'chartId':_0x4bc0db,'elementId':_0x2c7d53,'boardModel':_0x1d239c,'injector':_0xea408f})):null;},[_0x6fded3,_0x4bc0db,_0x2c7d53,_0xea408f,_0x15ea10,_0x5576c6,_0x39050a,_0x560783]),_0x36a2b7=(0x0,u[_0x1d80f8(0x240)])(()=>(0x0,a[_0x1d80f8(0x3d9)])(a[_0x1d80f8(0x381)]['map'](_0xa3240e=>({..._0xa3240e,'label':_0x5bea24['t'](_0x1d80f8(0x167)+_0xa3240e['labelId'])}))),[_0x5bea24]);return!_0x15ea10||!_0x93e10e?null:(0x0,d[_0x1d80f8(0x217)])(a[_0x1d80f8(0x380)],{'chartUIService':_0x5074a4,'hostAdapter':_0x93e10e,'children':(0x0,d[_0x1d80f8(0x174)])(_0x1d80f8(0x3bd),{'className':_0x1d80f8(0x3a8),'children':[(0x0,d['jsx'])(a['ChartEditPanelTabs'],{'ariaLabel':_0x5bea24['t'](_0x1d80f8(0x28f)),'className':_0x1d80f8(0x1d1),'items':[{'label':_0x5bea24['t']('boards-chart-ui.common.setup'),'panelId':fe,'value':a[_0x1d80f8(0x30e)][_0x1d80f8(0x1a5)]},{'label':_0x5bea24['t'](_0x1d80f8(0x37d)),'panelId':pe,'value':a[_0x1d80f8(0x30e)][_0x1d80f8(0x34e)]}],'value':_0x5cc233,'onChange':_0x12fd2e}),_0x5cc233===a['ChartEditPanelTab'][_0x1d80f8(0x1a5)]?(0x0,d[_0x1d80f8(0x217)])(a[_0x1d80f8(0x277)],{'id':fe,'label':_0x5bea24['t'](_0x1d80f8(0x30d)),'children':(0x0,d[_0x1d80f8(0x174)])(_0x1d80f8(0x3bd),{'className':_0x1d80f8(0x333),'children':[(0x0,d[_0x1d80f8(0x217)])(a[_0x1d80f8(0x363)],{'options':_0x36a2b7}),(0x0,d[_0x1d80f8(0x217)])(a[_0x1d80f8(0x302)],{}),(0x0,d['jsx'])(a[_0x1d80f8(0x3ad)],{}),(0x0,d[_0x1d80f8(0x217)])(se,{}),(0x0,d[_0x1d80f8(0x217)])(a[_0x1d80f8(0x344)],{}),(0x0,d[_0x1d80f8(0x217)])(oe,{'onEditData':()=>_0x4621d8[_0x1d80f8(0x336)](ie['id'],{'unitId':_0x39050a,'chartId':_0x4bc0db})}),(0x0,d[_0x1d80f8(0x217)])(a[_0x1d80f8(0x1f2)],{'orientationControl':(0x0,d[_0x1d80f8(0x217)])(s[_0x1d80f8(0x378)],{'size':_0x1d80f8(0x31f),'onClick':()=>_0x5074a4[_0x1d80f8(0x3ef)]({'patch':{'context':{'orient':_0x6fded3[_0x1d80f8(0x31b)]['isRowDirection']?'column':_0x1d80f8(0x415)}}}),'children':_0x5bea24['t'](_0x1d80f8(0x36e))})}),(0x0,d[_0x1d80f8(0x217)])(a[_0x1d80f8(0x2af)],{}),(0x0,d[_0x1d80f8(0x217)])(a[_0x1d80f8(0x243)],{'defaultValues':F[_0x1d80f8(0x2ec)]})]})}):(0x0,d['jsx'])(a['ChartEditPanel'],{'id':pe,'label':_0x5bea24['t']('boards-chart-ui.common.customize'),'children':(0x0,d['jsx'])(ue,{'route':_0x1801e9})})]})});}const fe=_0x139398(0x27a),pe=_0x139398(0x3f5),me=o[_0x139398(0x416)],I=o[_0x139398(0x220)];function L(_0x698b80){const _0x4b50ad=_0x139398;var _0x3555e4,_0x2d6281;let _0x51d8de=_0x698b80[_0x4b50ad(0x202)]??{},_0x560fd8=_0x51d8de[_0x4b50ad(0x2a7)]===0x0?0x0:z(_0x51d8de['borderWidth'],z((_0x3555e4=_0x698b80[_0x4b50ad(0x27b)])==null||(_0x3555e4=_0x3555e4['stroke'])==null?void 0x0:_0x3555e4[_0x4b50ad(0x18d)],0x1));return{'fill':_0x698b80[_0x4b50ad(0x21f)]??_0x51d8de[_0x4b50ad(0x1fa)]??o[_0x4b50ad(0x3af)][_0x4b50ad(0x1fa)],'stroke':_0x51d8de[_0x4b50ad(0x1cf)]??((_0x2d6281=_0x698b80['chartElement'])==null||(_0x2d6281=_0x2d6281[_0x4b50ad(0x2fd)])==null?void 0x0:_0x2d6281[_0x4b50ad(0x1bc)])??_0x698b80[_0x4b50ad(0x397)]??(_0x698b80[_0x4b50ad(0x2ef)]?_0x4b50ad(0x427):me),'strokeWidth':_0x560fd8,'radius':I};}function R(_0x33ffcc,_0x29bd25){const _0x201e33=_0x139398;let _0x3df972=Math[_0x201e33(0x40f)](0x0,_0x29bd25[_0x201e33(0x20a)]);return{'left':_0x3df972,'top':_0x3df972,'width':Math[_0x201e33(0x40f)](0x1,_0x33ffcc[_0x201e33(0x18d)]-_0x3df972*0x2),'height':Math[_0x201e33(0x40f)](0x1,_0x33ffcc['height']-_0x3df972*0x2)};}function he(_0x362fff,_0x2bc2fd){const _0x236169=_0x139398;let _0x95c7a9=-0x1/0x2;return{'left':_0x95c7a9,'top':_0x95c7a9,'width':Math[_0x236169(0x40f)](0x1,_0x362fff[_0x236169(0x18d)]),'height':Math['max'](0x1,_0x362fff[_0x236169(0x17d)]),'radius':Math[_0x236169(0x40f)](0x0,_0x2bc2fd[_0x236169(0x35f)]-_0x2bc2fd[_0x236169(0x20a)]/0x2)};}function z(_0x4cdce8,_0x52e762){const _0x3a1fa8=_0x139398;return typeof _0x4cdce8=='number'&&Number[_0x3a1fa8(0x29d)](_0x4cdce8)&&_0x4cdce8>0x0?_0x4cdce8:_0x52e762;}function ge(_0x3326a4){const _0x1b9be0=_0x139398;var _0x1f7fc9;let _0x24f6a3=(_0x1f7fc9=_0x3326a4[_0x1b9be0(0x303)](/^#([\da-f]{3}|[\da-f]{6})$/i))==null?void 0x0:_0x1f7fc9[0x1];if(_0x24f6a3){let _0x1d368d=_0x24f6a3[_0x1b9be0(0x1b9)]===0x3?_0x24f6a3[_0x1b9be0(0x1b0)]('')[_0x1b9be0(0x281)](_0xf24782=>''+_0xf24782+_0xf24782)[_0x1b9be0(0x367)](''):_0x24f6a3;return _0x1b9be0(0x3c7)+Number[_0x1b9be0(0x2cd)](_0x1d368d[_0x1b9be0(0x20f)](0x0,0x2),0x10)+',\x20'+Number[_0x1b9be0(0x2cd)](_0x1d368d[_0x1b9be0(0x20f)](0x2,0x4),0x10)+',\x20'+Number[_0x1b9be0(0x2cd)](_0x1d368d['slice'](0x4,0x6),0x10)+')';}let _0x5e249e=document[_0x1b9be0(0x2a8)](_0x1b9be0(0x396));return _0x5e249e[_0x1b9be0(0x26b)][_0x1b9be0(0x1bc)]=_0x3326a4,_0x5e249e[_0x1b9be0(0x26b)]['color']||_0x3326a4;}let B=class extends n[_0x139398(0x33f)]{constructor(_0x3300a1,_0x4e6111,_0x59af25){const _0x392962=_0x139398;super(),this[_0x392962(0x42b)]=_0x3300a1,this[_0x392962(0x326)]=_0x4e6111,this[_0x392962(0x2a0)]=_0x59af25,y(this,'_chartInstanceMap',new Map()),y(this,_0x392962(0x332),new Map()),y(this,_0x392962(0x3db),new Map()),y(this,'_chartEventSubscriptions',new Map());}['createChartInstance'](_0x5315be){const _0x1a3d67=_0x139398;return _0x5315be?this[_0x1a3d67(0x2a0)][_0x1a3d67(0x2d3)](_0x5315be,this[_0x1a3d67(0x1fe)]()):this['_renderModelManager']['createChartInstance']();}[_0x139398(0x2f4)](_0x524841,_0x3b58fc,_0x2d96e0){const _0x3810dc=_0x139398;let _0x3951be=this[_0x3810dc(0x386)](_0x524841,_0x3b58fc),_0x278f92=this['_chartInstanceMap'][_0x3810dc(0x30a)](_0x3951be);return _0x278f92&&_0x278f92!==_0x2d96e0&&(this[_0x3810dc(0x425)](_0x3951be),_0x278f92[_0x3810dc(0x2fa)]()),this['_chartInstanceMap'][_0x3810dc(0x196)](_0x3951be,_0x2d96e0),_0x2d96e0['setElementEditMode'](this[_0x3810dc(0x332)][_0x3810dc(0x30a)](_0x3951be)===!0x0),this[_0x3810dc(0x411)](_0x3951be,_0x2d96e0),{'dispose':()=>{const _0x2f537e=_0x3810dc;this[_0x2f537e(0x216)]['get'](_0x3951be)===_0x2d96e0&&(this[_0x2f537e(0x425)](_0x3951be),this[_0x2f537e(0x216)][_0x2f537e(0x3fa)](_0x3951be));}};}[_0x139398(0x2bd)](_0x5122b2,_0x2cd332,_0x10bd69){const _0x36aa85=_0x139398;var _0x487d84;let _0xf5d7ac=this[_0x36aa85(0x386)](_0x5122b2,_0x2cd332);_0x10bd69?this[_0x36aa85(0x332)][_0x36aa85(0x196)](_0xf5d7ac,!0x0):this['_chartElementEditMode'][_0x36aa85(0x3fa)](_0xf5d7ac),(_0x487d84=this[_0x36aa85(0x216)][_0x36aa85(0x30a)](_0xf5d7ac))==null||_0x487d84[_0x36aa85(0x2bd)](_0x10bd69);}['isElementEditModeActive'](_0x326920,_0x266f6e){const _0x2d9ca4=_0x139398;return this[_0x2d9ca4(0x332)][_0x2d9ca4(0x30a)](this[_0x2d9ca4(0x386)](_0x326920,_0x266f6e))===!0x0;}['on'](_0x4266cf,_0x1d69f5,_0x2159aa,_0x1ac1c3){const _0x141a77=_0x139398;let _0x69240f=this[_0x141a77(0x386)](_0x4266cf,_0x1d69f5),_0x12c75b=this[_0x141a77(0x3db)]['get'](_0x69240f);_0x12c75b||(_0x12c75b=new Map(),this[_0x141a77(0x3db)][_0x141a77(0x196)](_0x69240f,_0x12c75b));let _0xb280fb=_0x12c75b[_0x141a77(0x30a)](_0x2159aa);_0xb280fb||(_0xb280fb=new Set(),_0x12c75b[_0x141a77(0x196)](_0x2159aa,_0xb280fb)),_0xb280fb[_0x141a77(0x273)](_0x1ac1c3);let _0x32b63d=this[_0x141a77(0x216)][_0x141a77(0x30a)](_0x69240f);return _0x32b63d&&this[_0x141a77(0x41a)](_0x69240f,_0x32b63d,_0x2159aa,_0x1ac1c3),{'dispose':()=>{const _0x2fc92e=_0x141a77;let _0x5e984c=this[_0x2fc92e(0x3db)][_0x2fc92e(0x30a)](_0x69240f),_0x46b820=_0x5e984c==null?void 0x0:_0x5e984c[_0x2fc92e(0x30a)](_0x2159aa);_0x46b820==null||_0x46b820[_0x2fc92e(0x3fa)](_0x1ac1c3),(_0x46b820==null?void 0x0:_0x46b820[_0x2fc92e(0x331)])===0x0&&(_0x5e984c==null||_0x5e984c[_0x2fc92e(0x3fa)](_0x2159aa)),(_0x5e984c==null?void 0x0:_0x5e984c[_0x2fc92e(0x331)])===0x0&&this[_0x2fc92e(0x3db)]['delete'](_0x69240f),this[_0x2fc92e(0x274)](_0x69240f,_0x2159aa,_0x1ac1c3);}};}[_0x139398(0x287)](_0x2a35b8){const _0x4399c0=_0x139398;let _0x2867b=_0x2a35b8[_0x4399c0(0x41f)][_0x4399c0(0x2c1)];if(!_0x2867b)throw Error('Board\x20chart\x20'+_0x2a35b8['chartId']+_0x4399c0(0x305));let _0x2280a4=this[_0x4399c0(0x42b)][_0x4399c0(0x245)]();return{'chartConfig':_0x2867b,'chartStyle':(0x0,o['resolveChartRuntimeStyle'])({..._0x2a35b8[_0x4399c0(0x41f)][_0x4399c0(0x26b)],'runtime':_0x2a35b8[_0x4399c0(0x41f)][_0x4399c0(0x3f0)](_0x2280a4),'direction':_0x2280a4},_0x2867b['type'])};}['createRenderSpec'](_0x6d2b2f,_0xd90dc0,_0x210bb2){const _0x586ef1=_0x139398;let {chartConfig:_0x1a340e,chartStyle:_0x29242e}=this[_0x586ef1(0x287)](_0x6d2b2f),_0x5c2e0a=this[_0x586ef1(0x2a0)][_0x586ef1(0x42d)]();return{'spec':_0x5c2e0a[_0x586ef1(0x439)](_0x5c2e0a[_0x586ef1(0x350)](_0x1a340e,_0x29242e),{'chartConfig':_0x1a340e,'chartStyle':_0x29242e,'chartInstance':_0x210bb2},_0xd90dc0),'chartConfig':_0x1a340e,'chartStyle':_0x29242e,'hostStyle':this[_0x586ef1(0x2b3)](_0x29242e)};}[_0x139398(0x2b3)](_0x3243d5){const _0x21e4b9=_0x139398;return(0x0,o['resolveDefaultChartHostFrameStyle'])({'style':_0x3243d5,'getRenderColor':_0x3ab0c5=>this['_chartThemeService'][_0x21e4b9(0x431)](_0x3ab0c5)});}['applyHostStyle'](_0x625612,_0x32b567){const _0x21d6f1=_0x139398;var _0xb38e03;_0x625612[_0x21d6f1(0x26b)][_0x21d6f1(0x354)]=(_0xb38e03=_0x32b567[_0x21d6f1(0x354)])!=null&&_0xb38e03[_0x21d6f1(0x1bc)]&&_0x32b567[_0x21d6f1(0x354)][_0x21d6f1(0x18d)]?_0x32b567[_0x21d6f1(0x354)][_0x21d6f1(0x18d)]+'px\x20solid\x20'+ge(_0x32b567['border'][_0x21d6f1(0x1bc)]):'',_0x625612[_0x21d6f1(0x26b)][_0x21d6f1(0x1fa)]=ge(_0x32b567[_0x21d6f1(0x404)]??_0x21d6f1(0x3b2)),_0x625612['style'][_0x21d6f1(0x435)]=_0x32b567[_0x21d6f1(0x35f)]?_0x32b567[_0x21d6f1(0x35f)]+'px':I+'px',_0x625612['style'][_0x21d6f1(0x3b8)]=_0x21d6f1(0x269),_0x625612[_0x21d6f1(0x26b)]['boxSizing']='border-box';}['_createChartRenderInstanceContext'](){const _0x4749b4=_0x139398;return{'resolveHostStyle':({style:_0x45cdd9})=>({'fill':this[_0x4749b4(0x2b3)](_0x45cdd9)['fill']}),'resolveRenderBackgroundColor':({hostStyle:_0x5a4c7b})=>_0x5a4c7b['fill'],'prepareSpec':({mode:_0x2613af,spec:_0x442c0b})=>_0x2613af===_0x4749b4(0x2fb)?{..._0x442c0b,'animation':!0x1,'tooltip':{'show':!0x1}}:_0x442c0b};}['_bindChartEventHandlers'](_0x4a3496,_0x154ff2){const _0x3fd697=_0x139398;let _0xb9bfbc=this[_0x3fd697(0x3db)][_0x3fd697(0x30a)](_0x4a3496);_0xb9bfbc&&_0xb9bfbc[_0x3fd697(0x36f)]((_0x5b40a5,_0x2eb831)=>{const _0x3d06f9=_0x3fd697;_0x5b40a5['forEach'](_0x4170b4=>this[_0x3d06f9(0x41a)](_0x4a3496,_0x154ff2,_0x2eb831,_0x4170b4));});}[_0x139398(0x41a)](_0x197c2b,_0x174ff2,_0x296a83,_0xc2aef){const _0xf11896=_0x139398;let _0x25f5e1=this[_0xf11896(0x34b)][_0xf11896(0x30a)](_0x197c2b);_0x25f5e1||(_0x25f5e1=new Map(),this[_0xf11896(0x34b)][_0xf11896(0x196)](_0x197c2b,_0x25f5e1));let _0x255f56=_0x25f5e1[_0xf11896(0x30a)](_0x296a83);_0x255f56||(_0x255f56=new Map(),_0x25f5e1['set'](_0x296a83,_0x255f56)),!_0x255f56[_0xf11896(0x228)](_0xc2aef)&&_0x255f56[_0xf11896(0x196)](_0xc2aef,_0x174ff2['on'](_0x296a83,_0xc2aef));}[_0x139398(0x274)](_0x360d66,_0x2b1d14,_0x3ab3d1){const _0x5e32d2=_0x139398;var _0x2cba79,_0x1f0d1b;let _0x43008e=(_0x2cba79=this[_0x5e32d2(0x34b)]['get'](_0x360d66))==null?void 0x0:_0x2cba79['get'](_0x2b1d14);_0x43008e==null||(_0x1f0d1b=_0x43008e[_0x5e32d2(0x30a)](_0x3ab3d1))==null||_0x1f0d1b[_0x5e32d2(0x2fa)](),_0x43008e==null||_0x43008e['delete'](_0x3ab3d1);}[_0x139398(0x425)](_0x5436b7){const _0x57f9a4=_0x139398;let _0x3eb496=this[_0x57f9a4(0x34b)]['get'](_0x5436b7);_0x3eb496==null||_0x3eb496['forEach'](_0x4bd874=>{const _0x25087f=_0x57f9a4;_0x4bd874['forEach'](_0x32afba=>_0x32afba[_0x25087f(0x2fa)]()),_0x4bd874[_0x25087f(0x1b3)]();}),this[_0x57f9a4(0x34b)][_0x57f9a4(0x3fa)](_0x5436b7);}['_getChartRuntimeKey'](_0x100528,_0x3fb9f9){return _0x100528+'::'+_0x3fb9f9;}[_0x139398(0x2fa)](){const _0x12f680=_0x139398;this['_chartInstanceMap'][_0x12f680(0x36f)](_0xc089cc=>_0xc089cc['dispose']()),this[_0x12f680(0x216)][_0x12f680(0x1b3)](),this[_0x12f680(0x332)][_0x12f680(0x1b3)](),this[_0x12f680(0x3db)][_0x12f680(0x1b3)](),Array[_0x12f680(0x201)](this[_0x12f680(0x34b)][_0x12f680(0x259)]())['forEach'](_0x517845=>this['_disposeChartEventSubscriptions'](_0x517845)),super['dispose']();}};B=x([b(0x0,(0x0,n[_0x139398(0x237)])(n[_0x139398(0x1c0)])),b(0x1,(0x0,n[_0x139398(0x237)])(o[_0x139398(0x2d5)])),b(0x2,o[_0x139398(0x1d7)])],B);let V=class extends n[_0x139398(0x33f)]{constructor(_0x4ebb92,_0x1343cc,_0x3da891,_0x4a69cb,_0x3dc2f7,_0x23a372,_0x13073e){const _0x1f5703=_0x139398;super(),this[_0x1f5703(0x357)]=_0x4ebb92,this[_0x1f5703(0x30f)]=_0x1343cc,this[_0x1f5703(0x294)]=_0x3da891,this[_0x1f5703(0x1d3)]=_0x4a69cb,this[_0x1f5703(0x16c)]=_0x3dc2f7,this['_chartUIService']=_0x23a372,this[_0x1f5703(0x42b)]=_0x13073e,y(this,_0x1f5703(0x38d),null),y(this,_0x1f5703(0x37c),null),y(this,_0x1f5703(0x189),null),this[_0x1f5703(0x38e)](this[_0x1f5703(0x30f)][_0x1f5703(0x413)][_0x1f5703(0x304)](_0x26544d=>this['_syncPanel'](_0x26544d)));}[_0x139398(0x2fa)](){const _0x25dc95=_0x139398;this[_0x25dc95(0x40e)](),super['dispose']();}[_0x139398(0x2df)](_0x1ef875){const _0x1e43a6=_0x139398;var _0x3a3b46;if(!_0x1ef875||_0x1ef875[_0x1e43a6(0x229)]!==this[_0x1e43a6(0x357)]['unitId']){this[_0x1e43a6(0x40e)]();return;}let _0x2a6a0c=this[_0x1e43a6(0x1d3)]['ensureChartModel'](_0x1ef875[_0x1e43a6(0x229)],_0x1ef875[_0x1e43a6(0x22b)]);if(!_0x2a6a0c){this['_closeActivePanel']();return;}let _0x4d8fdd=[P,_0x1ef875[_0x1e43a6(0x229)],_0x1ef875['subUnitId'],_0x1ef875[_0x1e43a6(0x207)]][_0x1e43a6(0x367)](':');if(this[_0x1e43a6(0x38d)]===_0x4d8fdd){this[_0x1e43a6(0x1d3)][_0x1e43a6(0x390)](_0x2a6a0c),this['_setActiveEditOverlay'](_0x1ef875[_0x1e43a6(0x229)],_0x1ef875[_0x1e43a6(0x22b)]);return;}(_0x3a3b46=this[_0x1e43a6(0x37c)])==null||_0x3a3b46[_0x1e43a6(0x2fa)](),this[_0x1e43a6(0x1d3)][_0x1e43a6(0x390)](_0x2a6a0c),this[_0x1e43a6(0x31a)](_0x1ef875[_0x1e43a6(0x229)],_0x1ef875[_0x1e43a6(0x22b)]),this[_0x1e43a6(0x38d)]=_0x4d8fdd,this['_activePanelDisposable']=this['_sidePanelService'][_0x1e43a6(0x22a)]({'id':P,'header':{'title':this[_0x1e43a6(0x42b)]['t'](_0x1e43a6(0x28f))},'width':0x184,'children':{'label':P,'unitId':_0x1ef875[_0x1e43a6(0x229)],'subUnitId':_0x1ef875[_0x1e43a6(0x2fe)],'elementId':_0x1ef875[_0x1e43a6(0x207)],'chartId':_0x1ef875[_0x1e43a6(0x22b)]},'onClose':_0x463233=>{const _0x3f8d1c=_0x1e43a6;this[_0x3f8d1c(0x38d)]===_0x4d8fdd&&(this[_0x3f8d1c(0x38d)]=null,this['_activePanelDisposable']=null,this[_0x3f8d1c(0x289)](),this[_0x3f8d1c(0x1d3)]['setActiveChartRuntime'](null),_0x463233===_0x3f8d1c(0x293)&&this['_editSessionService'][_0x3f8d1c(0x24f)](_0x3f8d1c(0x293)));}});}[_0x139398(0x40e)](){const _0x52bd54=_0x139398;var _0x3ee61a;if(!this[_0x52bd54(0x38d)]){this['_clearActiveEditOverlay']();return;}(_0x3ee61a=this[_0x52bd54(0x37c)])==null||_0x3ee61a[_0x52bd54(0x2fa)](),this[_0x52bd54(0x37c)]=null,this[_0x52bd54(0x38d)]=null,this[_0x52bd54(0x289)](),this['_modelService'][_0x52bd54(0x390)](null);}[_0x139398(0x31a)](_0x5da529,_0x1c6b7f){const _0x2cb8a7=_0x139398;let _0x444a5e=this['_activeEditOverlay'];((_0x444a5e==null?void 0x0:_0x444a5e[_0x2cb8a7(0x229)])!==_0x5da529||_0x444a5e[_0x2cb8a7(0x22b)]!==_0x1c6b7f)&&(this['_clearActiveEditOverlay'](),this[_0x2cb8a7(0x189)]={'unitId':_0x5da529,'chartId':_0x1c6b7f},this[_0x2cb8a7(0x16c)]['setElementEditMode'](_0x5da529,_0x1c6b7f,!0x0));}[_0x139398(0x289)](){const _0x393442=_0x139398;let _0x1db6cd=this[_0x393442(0x189)];_0x1db6cd&&(this[_0x393442(0x189)]=null,this[_0x393442(0x16c)]['setElementEditMode'](_0x1db6cd[_0x393442(0x229)],_0x1db6cd['chartId'],!0x1));}};V=x([b(0x1,(0x0,n[_0x139398(0x237)])(w)),b(0x2,(0x0,n[_0x139398(0x237)])(t[_0x139398(0x2e9)])),b(0x3,(0x0,n[_0x139398(0x237)])(i[_0x139398(0x2d4)])),b(0x4,(0x0,n[_0x139398(0x237)])(B)),b(0x5,D),b(0x6,(0x0,n[_0x139398(0x237)])(n[_0x139398(0x1c0)]))],V);var _e=class extends n[_0x139398(0x33f)]{constructor(_0x2e9a8d,_0x836af4,_0x3149b6){const _0x442365=_0x139398;super(),this[_0x442365(0x22b)]=_0x2e9a8d,this['_host']=_0x836af4,this[_0x442365(0x318)]=_0x3149b6,y(this,_0x442365(0x29f),o['ChartHostRenderMode'][_0x442365(0x42f)]);}['getRect'](){const _0x583477=_0x139398;let _0x1c5770=this[_0x583477(0x3f9)][_0x583477(0x38a)]();return{'width':Math[_0x583477(0x40f)](0x1,_0x1c5770[_0x583477(0x18d)]),'height':Math[_0x583477(0x40f)](0x1,_0x1c5770[_0x583477(0x17d)])};}[_0x139398(0x2ce)](_0x19b8ce){const _0xfd01dc=_0x139398;this[_0xfd01dc(0x318)](this['_host'],_0x19b8ce);}async[_0x139398(0x3e2)](){return this['_host'];}[_0x139398(0x328)](){return!0x0;}[_0x139398(0x3df)](){}[_0x139398(0x272)](){}[_0x139398(0x3f7)](){}};function ve({chartElement:_0x96feb9,chartId:_0xb4cd29,unitId:_0x139a86}){const _0x33bec6=_0x139398;let _0x4718b5=(0x0,u[_0x33bec6(0x368)])(null),_0x45df15=(0x0,l[_0x33bec6(0x2f2)])(i[_0x33bec6(0x2d4)]),_0x2318e9=(0x0,l[_0x33bec6(0x2f2)])(B);return(0x0,u[_0x33bec6(0x278)])(()=>{const _0x2c4659=_0x33bec6;let _0x4805c2=_0x4718b5[_0x2c4659(0x321)];if(!_0x4805c2)return;let _0x48b121=_0x45df15[_0x2c4659(0x40c)](_0x139a86,_0xb4cd29);if(!_0x48b121)return;_0x45df15[_0x2c4659(0x390)](_0x48b121);let _0x21bdec=new _e(_0xb4cd29,_0x4805c2,(_0x587556,_0x8a6255)=>_0x2318e9['applyHostStyle'](_0x587556,{'fill':_0x8a6255[_0x2c4659(0x404)]??_0x2c4659(0x3b2)})),_0x494db8=_0x2318e9[_0x2c4659(0x2d3)](o['ChartHostRenderMode'][_0x2c4659(0x42f)]),_0x1b0bcc=_0x2318e9[_0x2c4659(0x2f4)](_0x139a86,_0xb4cd29,_0x494db8);_0x494db8[_0x2c4659(0x213)](_0x21bdec);let _0x5e6a7b=(0x0,r['combineLatest'])([_0x48b121[_0x2c4659(0x41f)][_0x2c4659(0x19a)],_0x48b121['model'][_0x2c4659(0x2c7)]])['pipe']((0x0,r['filter'])(([_0x198223])=>_0x198223!=null))[_0x2c4659(0x304)](()=>{const _0x808199=_0x2c4659;let {chartConfig:_0x3cd967,chartStyle:_0x452287}=_0x2318e9[_0x808199(0x287)](_0x48b121);ye(_0x4805c2,_0x96feb9,_0x452287,_0x2318e9),_0x494db8[_0x808199(0x284)]({'chartId':_0xb4cd29,'config':_0x3cd967,'style':_0x452287});});return()=>{const _0x3d9f5e=_0x2c4659;var _0x46cc9;_0x5e6a7b[_0x3d9f5e(0x255)](),_0x1b0bcc[_0x3d9f5e(0x2fa)](),_0x494db8['dispose'](),_0x21bdec[_0x3d9f5e(0x2fa)](),((_0x46cc9=_0x45df15[_0x3d9f5e(0x41c)])==null?void 0x0:_0x46cc9[_0x3d9f5e(0x229)])===_0x139a86&&_0x45df15[_0x3d9f5e(0x41c)][_0x3d9f5e(0x22b)]===_0xb4cd29&&_0x45df15[_0x3d9f5e(0x390)](null);};},[_0x96feb9,_0xb4cd29,_0x45df15,_0x2318e9,_0x139a86]),(0x0,d[_0x33bec6(0x217)])(_0x33bec6(0x3bd),{'className':_0x33bec6(0x37e),'data-board-chart-dom-renderer':_0xb4cd29,'children':(0x0,d[_0x33bec6(0x217)])('div',{'ref':_0x4718b5,'data-board-chart-dom-content-host':_0xb4cd29})});}function ye(_0x28f202,_0x54b250,_0x4cab78,_0x390a83){const _0x12ff31=_0x139398;let _0x19d3eb=_0x390a83[_0x12ff31(0x2b3)](_0x4cab78)[_0x12ff31(0x404)],_0x33453b=L({'chartStyle':_0x4cab78,'chartElement':_0x54b250,'hostFill':_0x19d3eb}),_0xd06a30=Math[_0x12ff31(0x40f)](0x0,_0x33453b[_0x12ff31(0x20a)]);_0x28f202['style'][_0x12ff31(0x1df)]=_0x12ff31(0x1d8),_0x28f202[_0x12ff31(0x26b)][_0x12ff31(0x285)]=_0xd06a30+'px',_0x28f202[_0x12ff31(0x26b)][_0x12ff31(0x29e)]=_0xd06a30+'px',_0x28f202[_0x12ff31(0x26b)][_0x12ff31(0x33a)]=_0xd06a30+'px',_0x28f202[_0x12ff31(0x26b)][_0x12ff31(0x311)]=_0xd06a30+'px',_0x28f202['style'][_0x12ff31(0x1fa)]=_0x33453b['fill'],_0x28f202['style'][_0x12ff31(0x435)]=Math[_0x12ff31(0x40f)](0x0,_0x33453b['radius']-_0xd06a30)+'px',_0x28f202[_0x12ff31(0x26b)][_0x12ff31(0x3b8)]=_0x12ff31(0x269),_0x28f202[_0x12ff31(0x26b)][_0x12ff31(0x319)]=_0x12ff31(0x257);}const be=(0x0,n['createIdentifier'])(_0x139398(0x398));function xe(_0x53fc23){return{..._0x53fc23,'borderWidth':0x0};}var Se=class{constructor(_0x4a5693){const _0x10f829=_0x139398;this[_0x10f829(0x16c)]=_0x4a5693;}async[_0x139398(0x284)](_0x1cd7d8,_0x2e5ae4){const _0x3ec25a=_0x139398;if(typeof document>'u')throw TypeError(_0x3ec25a(0x330));let _0x1395f2=new o[(_0x3ec25a(0x1d4))](_0x2e5ae4[_0x3ec25a(0x22b)],{'width':_0x1cd7d8[_0x3ec25a(0x18d)],'height':_0x1cd7d8[_0x3ec25a(0x17d)]}),_0x45dd7c=this['_renderService'][_0x3ec25a(0x2d3)](o[_0x3ec25a(0x3b4)]['Image']);try{let {chartConfig:_0x1185a4,chartStyle:_0x27c5c0}=this[_0x3ec25a(0x16c)][_0x3ec25a(0x287)](_0x2e5ae4);_0x45dd7c['bind'](_0x1395f2),await _0x45dd7c['render']({'chartId':_0x2e5ae4[_0x3ec25a(0x22b)],'config':_0x1185a4,'style':xe(_0x27c5c0)});let _0x2eabd5=_0x1395f2['getDataUrl']();if(!_0x2eabd5)throw Error(_0x3ec25a(0x2d9)+_0x2e5ae4[_0x3ec25a(0x229)]+'/'+_0x2e5ae4[_0x3ec25a(0x22b)]);return _0x2eabd5;}finally{_0x45dd7c[_0x3ec25a(0x2fa)](),_0x1395f2[_0x3ec25a(0x2fa)]();}}};let H=class extends a[_0x139398(0x335)]{constructor(_0x2074da,_0x13d363,_0x3a1451,_0x221839){super(_0x2074da,_0x13d363,_0x221839??new Se(_0x3a1451));}};H=x([b(0x0,(0x0,n['Inject'])(n['LocaleService'])),b(0x1,(0x0,n[_0x139398(0x237)])(i[_0x139398(0x2d4)])),b(0x2,(0x0,n[_0x139398(0x237)])(B)),b(0x3,(0x0,n[_0x139398(0x268)])(be))],H);let U=class extends n[_0x139398(0x33f)]{constructor(_0x5a6cd9,_0x202637,_0x3a6654,_0x1d34e0,_0xd74493){const _0x5e7ce2=_0x139398;super(),this[_0x5e7ce2(0x357)]=_0x5a6cd9,this[_0x5e7ce2(0x30f)]=_0x202637,this['_boardElementService']=_0x3a6654,this[_0x5e7ce2(0x366)]=_0x1d34e0,this['_snapshotService']=_0xd74493,y(this,_0x5e7ce2(0x212),null),y(this,_0x5e7ce2(0x3c0),null),y(this,_0x5e7ce2(0x1fb),null),this['disposeWithMe'](this[_0x5e7ce2(0x30f)][_0x5e7ce2(0x413)][_0x5e7ce2(0x304)](_0x1be594=>this['_syncActiveChart'](_0x1be594)));}[_0x139398(0x2fa)](){const _0x146e33=_0x139398;this[_0x146e33(0x3f2)](),super[_0x146e33(0x2fa)]();}[_0x139398(0x3f1)](_0x5aae87){const _0x4a918b=_0x139398;if(!_0x5aae87||_0x5aae87[_0x4a918b(0x229)]!==this[_0x4a918b(0x357)][_0x4a918b(0x229)]){this['_clearActiveLayer']();return;}let _0x43cc6d=this[_0x4a918b(0x1aa)][_0x4a918b(0x20e)](_0x5aae87[_0x4a918b(0x229)],_0x5aae87[_0x4a918b(0x2fe)]),_0x9bac13=_0x43cc6d[_0x5aae87[_0x4a918b(0x207)]];if(!_0x9bac13||_0x9bac13[_0x4a918b(0x261)][_0x4a918b(0x1a1)]!==e[_0x4a918b(0x360)]['Chart']||_0x9bac13[_0x4a918b(0x261)][_0x4a918b(0x22b)]!==_0x5aae87[_0x4a918b(0x22b)]){this[_0x4a918b(0x3f2)]();return;}let _0x5581a0=(0x0,e[_0x4a918b(0x23c)])(_0x43cc6d,_0x9bac13[_0x4a918b(0x207)]);if(!_0x5581a0){this[_0x4a918b(0x3f2)]();return;}let _0x57bf1d=_0x9bac13['element'],_0x4b09e5=_0x57bf1d[_0x4a918b(0x22b)],_0x3f7bcf=[_0x4a918b(0x3c3),_0x5aae87[_0x4a918b(0x229)],_0x5aae87[_0x4a918b(0x2fe)],_0x9bac13[_0x4a918b(0x207)]]['join'](':');if(this[_0x4a918b(0x212)]===_0x3f7bcf){this[_0x4a918b(0x1fb)]={'chartId':_0x4b09e5,'unitId':_0x5aae87['unitId']},this[_0x4a918b(0x366)][_0x4a918b(0x2d6)](_0x3f7bcf,{'rect':_0x5581a0,'content':()=>(0x0,d[_0x4a918b(0x217)])(ve,{'chartId':_0x4b09e5,'chartElement':_0x57bf1d,'unitId':_0x5aae87[_0x4a918b(0x229)]})});return;}this[_0x4a918b(0x3f2)](),this[_0x4a918b(0x212)]=_0x3f7bcf,this['_activeChart']={'chartId':_0x4b09e5,'unitId':_0x5aae87[_0x4a918b(0x229)]},this[_0x4a918b(0x3c0)]=this[_0x4a918b(0x366)][_0x4a918b(0x1dc)]({'id':_0x3f7bcf,'unitId':_0x5aae87['unitId'],'subUnitId':_0x5aae87[_0x4a918b(0x2fe)],'elementId':_0x9bac13['elementId'],'rect':_0x5581a0,'interactive':!0x0,'zIndex':0x1,'content':()=>(0x0,d[_0x4a918b(0x217)])(ve,{'chartId':_0x4b09e5,'chartElement':_0x57bf1d,'unitId':_0x5aae87['unitId']})});}['_clearActiveLayer'](){const _0x2c20ae=_0x139398;var _0x3a7120;let _0x3529ff=this[_0x2c20ae(0x1fb)];(_0x3a7120=this[_0x2c20ae(0x3c0)])==null||_0x3a7120['dispose'](),this[_0x2c20ae(0x3c0)]=null,this['_activeLayerId']=null,this[_0x2c20ae(0x1fb)]=null,_0x3529ff&&this[_0x2c20ae(0x399)]['invalidateChart'](_0x3529ff['unitId'],_0x3529ff[_0x2c20ae(0x22b)]);}};U=x([b(0x1,(0x0,n[_0x139398(0x237)])(w)),b(0x2,e[_0x139398(0x3ff)]),b(0x3,(0x0,n[_0x139398(0x237)])(t['BoardDomLayerService'])),b(0x4,(0x0,n['Inject'])(H))],U);let W=class extends n[_0x139398(0x33f)]{constructor(_0x3af101,_0x5d9169,_0x12b8be,_0x1dcf17){const _0xe588f8=_0x139398;super(),this[_0xe588f8(0x37a)]=_0x3af101,this['_snapshotService']=_0x5d9169,this[_0xe588f8(0x1b4)]=_0x12b8be,this[_0xe588f8(0x1d3)]=_0x1dcf17,this[_0xe588f8(0x3c9)]();}[_0x139398(0x3c9)](){const _0x1801c8=_0x139398;this['disposeWithMe'](this[_0x1801c8(0x37a)][_0x1801c8(0x1c5)](_0x33aff8=>{const _0x2763c8=_0x1801c8;if(_0x33aff8['id']===i[_0x2763c8(0x421)]['id']){var _0x466f9c;let _0x23e025=_0x33aff8[_0x2763c8(0x29b)];_0x23e025!=null&&_0x23e025[_0x2763c8(0x229)]&&(_0x466f9c=_0x23e025[_0x2763c8(0x28c)])!=null&&_0x466f9c['id']&&(this[_0x2763c8(0x40d)](_0x23e025)?this[_0x2763c8(0x399)][_0x2763c8(0x2aa)](_0x23e025[_0x2763c8(0x229)],_0x23e025['chart']['id'],{'waitForConfig':!0x0}):this[_0x2763c8(0x399)][_0x2763c8(0x2aa)](_0x23e025[_0x2763c8(0x229)],_0x23e025[_0x2763c8(0x28c)]['id']));return;}if(_0x33aff8['id']===i['SetBoardChartDataSourceMutation']['id']){var _0x4eb6b6;let _0x19fece=_0x33aff8[_0x2763c8(0x29b)];if(!(_0x19fece!=null&&_0x19fece[_0x2763c8(0x229)])||!((_0x4eb6b6=_0x19fece[_0x2763c8(0x3a0)])!=null&&_0x4eb6b6['id']))return;this['_resourceService'][_0x2763c8(0x21e)](_0x19fece['unitId'],_0x19fece[_0x2763c8(0x3a0)]['id'])[_0x2763c8(0x36f)](_0x330ae5=>this['_snapshotService']['invalidateChart'](_0x19fece[_0x2763c8(0x229)],_0x330ae5,{'waitForConfig':!0x0}));}}));}[_0x139398(0x40d)](_0x399fa1){const _0x5b6b82=_0x139398;var _0x2813fa;let _0x1da4d0=(_0x2813fa=this['_modelService'][_0x5b6b82(0x365)](_0x399fa1[_0x5b6b82(0x229)],_0x399fa1['chart']['id']))==null||(_0x2813fa=_0x2813fa[_0x5b6b82(0x41f)][_0x5b6b82(0x2c1)])==null?void 0x0:_0x2813fa[_0x5b6b82(0x1a1)];return _0x1da4d0!=null&&_0x1da4d0!==_0x399fa1[_0x5b6b82(0x28c)][_0x5b6b82(0x250)];}};W=x([b(0x0,n[_0x139398(0x40a)]),b(0x1,(0x0,n[_0x139398(0x237)])(H)),b(0x2,(0x0,n[_0x139398(0x237)])(i[_0x139398(0x22d)])),b(0x3,(0x0,n[_0x139398(0x237)])(i['BoardChartModelService']))],W);var Ce=_0x139398(0x2e0),we=_0x139398(0x17c);const G={'scaleX':0x1,'scaleY':0x1};function Te(_0x4eac31){const _0x3adc3c=_0x139398;let _0x3f67ed=_0x4eac31[_0x3adc3c(0x280)];return typeof MouseEvent<'u'&&_0x3f67ed instanceof MouseEvent?_0x3f67ed:void 0x0;}function Ee(_0x533317){const _0x184f60=_0x139398;let _0x9100a5=_0x533317[_0x184f60(0x280)],_0x5b0570=_0x9100a5==null?void 0x0:_0x9100a5[_0x184f60(0x183)];return typeof Element<'u'&&_0x5b0570 instanceof Element?_0x5b0570:void 0x0;}function De(_0x3510ec){const _0x14f522=_0x139398;return _0x3510ec[_0x14f522(0x18d)]||_0x3510ec[_0x14f522(0x33a)]-_0x3510ec[_0x14f522(0x285)];}function Oe(_0x5839e9){const _0x4ca3f9=_0x139398;return _0x5839e9[_0x4ca3f9(0x17d)]||_0x5839e9[_0x4ca3f9(0x311)]-_0x5839e9[_0x4ca3f9(0x29e)];}function K(_0x432dec,_0x1e160f){const _0x56c113=_0x139398;let _0x8cd518=_0x432dec['clientWidth']||(typeof HTMLElement<'u'&&_0x432dec instanceof HTMLElement?_0x432dec['offsetWidth']:0x0),_0x231a91=_0x432dec[_0x56c113(0x271)]||(typeof HTMLElement<'u'&&_0x432dec instanceof HTMLElement?_0x432dec[_0x56c113(0x180)]:0x0),_0x948a9e=De(_0x1e160f),_0x23628a=Oe(_0x1e160f);return{'scaleX':_0x8cd518>0x0&&_0x948a9e>0x0?_0x948a9e/_0x8cd518:G['scaleX'],'scaleY':_0x231a91>0x0&&_0x23628a>0x0?_0x23628a/_0x231a91:G[_0x56c113(0x23a)]};}function ke(_0x5ec92a,_0x338429,_0x143c4d){const _0x179012=_0x139398;return{'left':_0x5ec92a[_0x179012(0x285)]+_0x338429[_0x179012(0x285)]*_0x143c4d[_0x179012(0x234)],'right':_0x5ec92a[_0x179012(0x285)]+_0x338429[_0x179012(0x33a)]*_0x143c4d['scaleX'],'top':_0x5ec92a[_0x179012(0x29e)]+_0x338429['top']*_0x143c4d['scaleY'],'bottom':_0x5ec92a[_0x179012(0x29e)]+_0x338429[_0x179012(0x311)]*_0x143c4d['scaleY']};}function _0x1864(_0xf2cc9f,_0x483563){_0xf2cc9f=_0xf2cc9f-0x167;const _0x4b5153=_0x4b51();let _0x186401=_0x4b5153[_0xf2cc9f];return _0x186401;}function Ae(_0x40d827){const _0x24cc73=_0x139398;let _0xd66601=Ee(_0x40d827),_0x5ce93e=_0x40d827[_0x24cc73(0x41d)][_0x24cc73(0x1e6)];return _0xd66601&&_0x5ce93e?()=>{let _0x216b63=_0xd66601['getBoundingClientRect']();return ke(_0x216b63,_0x5ce93e,K(_0xd66601,_0x216b63));}:()=>{const _0x4ba3f9=_0x24cc73;let _0x48767e=_0xd66601==null?void 0x0:_0xd66601[_0x4ba3f9(0x38a)]();if(_0xd66601&&_0x48767e&&_0x5ce93e)return ke(_0x48767e,_0x5ce93e,K(_0xd66601,_0x48767e));let _0x13b44e=Te(_0x40d827),_0x4e4663=_0xd66601&&_0x48767e?K(_0xd66601,_0x48767e):G,_0x2f705e=(_0x13b44e==null?void 0x0:_0x13b44e[_0x4ba3f9(0x1af)])??(_0x48767e?_0x48767e[_0x4ba3f9(0x285)]+_0x40d827['localPoint']['x']*_0x4e4663['scaleX']:_0x40d827[_0x4ba3f9(0x394)]['x']),_0x307ea3=(_0x13b44e==null?void 0x0:_0x13b44e[_0x4ba3f9(0x27f)])??(_0x48767e?_0x48767e[_0x4ba3f9(0x29e)]+_0x40d827[_0x4ba3f9(0x394)]['y']*_0x4e4663[_0x4ba3f9(0x23a)]:_0x40d827[_0x4ba3f9(0x394)]['y']);return{'left':_0x2f705e,'right':_0x2f705e+0x1,'top':_0x307ea3,'bottom':_0x307ea3+0x1};};}function je(_0x4042f3){const _0x32c64e=_0x139398;return _0x4042f3[_0x32c64e(0x33a)]<=_0x4042f3['left']||_0x4042f3[_0x32c64e(0x311)]<=_0x4042f3['top']?!0x1:typeof window>'u'||_0x4042f3['right']>0x0&&_0x4042f3['bottom']>0x0&&_0x4042f3[_0x32c64e(0x285)]<window[_0x32c64e(0x3aa)]&&_0x4042f3[_0x32c64e(0x29e)]<window[_0x32c64e(0x2c4)];}function Me(_0x2c27b7,_0x5f48de){const _0x3b1381=_0x139398;let _0x47d399=Ae(_0x2c27b7),_0x394523=_0x47d399(),_0x14d7ee=new r['BehaviorSubject'](_0x394523),_0x94cd62=new n[(_0x3b1381(0x401))](),_0x5d267c=!0x1,_0x42aa56=!0x1;return typeof window<'u'&&_0x94cd62[_0x3b1381(0x273)]((0x0,r[_0x3b1381(0x299)])((0x0,r[_0x3b1381(0x2b1)])(window,_0x3b1381(0x419),{'capture':!0x0}),(0x0,r[_0x3b1381(0x2b1)])(window,_0x3b1381(0x264)))[_0x3b1381(0x16d)]((0x0,r[_0x3b1381(0x33c)])(0x10))['subscribe'](()=>{_0x42aa56||_0x5d267c||(_0x42aa56=!0x0,queueMicrotask(()=>{if(_0x42aa56=!0x1,_0x5d267c)return;let _0x251d09=_0x47d399();if(!je(_0x251d09)){_0x5f48de();return;}_0x14d7ee['next'](_0x251d09);}));})),{'initialRect':_0x394523,'anchorRect$':_0x14d7ee[_0x3b1381(0x376)](),'visible':je(_0x394523),'dispose':()=>{const _0xd6f2a5=_0x3b1381;_0x5d267c=!0x0,_0x94cd62[_0xd6f2a5(0x2fa)](),_0x14d7ee[_0xd6f2a5(0x28e)]();}};}const Ne=_0x139398(0x37b);function q(_0x44910e,_0x2878f5){return _0x44910e+'::'+_0x2878f5;}let J=class extends n['Disposable']{constructor(_0x364fe8,_0x2d0fde,_0x191de7,_0x2bd131,_0x503060,_0x3bdc18,_0x30534a,_0x596df3,_0x30a95a){const _0x7277af=_0x139398;super(),this[_0x7277af(0x1d3)]=_0x364fe8,this['_chartRenderService']=_0x2d0fde,this[_0x7277af(0x355)]=_0x191de7,this['_editSessionService']=_0x2bd131,this[_0x7277af(0x190)]=_0x503060,this['_canvasPopupService']=_0x3bdc18,this[_0x7277af(0x2ee)]=_0x30534a,this['_univerInstanceService']=_0x596df3,this[_0x7277af(0x388)]=_0x30a95a,y(this,'_chartEventDisposables',new Map()),y(this,_0x7277af(0x291),null),y(this,_0x7277af(0x3b0),null),this[_0x7277af(0x370)](),this['_subscribeChartEvents']();}[_0x139398(0x2fa)](){const _0x338a84=_0x139398;this[_0x338a84(0x2be)](),this[_0x338a84(0x2cf)][_0x338a84(0x36f)](_0x118693=>_0x118693[_0x338a84(0x2fa)]()),this[_0x338a84(0x2cf)][_0x338a84(0x1b3)](),super['dispose']();}[_0x139398(0x370)](){const _0x55bdea=_0x139398;let _0x1422e8=(0x0,a['createChartElementFloatMenuAdapter'])({'chartUIService':this[_0x55bdea(0x355)],'getHostAdapter':_0x437920=>{const _0x209072=_0x55bdea;this[_0x209072(0x1d3)][_0x209072(0x172)](_0x437920[_0x209072(0x229)],_0x437920[_0x209072(0x22b)]);let _0xc6e2c3=this['_modelService'][_0x209072(0x365)](_0x437920[_0x209072(0x229)],_0x437920[_0x209072(0x22b)]),_0x52de25=this[_0x209072(0x1d2)][_0x209072(0x170)](_0x437920[_0x209072(0x229)],n[_0x209072(0x2e3)][_0x209072(0x18e)]),_0x114727=this['_editSessionService'][_0x209072(0x379)]();if(!(!_0xc6e2c3||!_0x52de25||!_0x114727))return new a[(_0x209072(0x253))](_0xc6e2c3[_0x209072(0x41f)],new i[(_0x209072(0x337))]({'unitId':_0x437920[_0x209072(0x229)],'pageId':_0x114727[_0x209072(0x2fe)],'chartId':_0x437920[_0x209072(0x22b)],'elementId':_0x114727[_0x209072(0x207)],'boardModel':_0x52de25,'injector':this[_0x209072(0x388)]}));},'close':()=>this[_0x55bdea(0x2be)](),'openFullPanel':_0x2bc3e0=>{const _0x41e554=_0x55bdea;this[_0x41e554(0x1d3)][_0x41e554(0x172)](_0x2bc3e0[_0x41e554(0x229)],_0x2bc3e0[_0x41e554(0x22b)]);let _0xeb0eac=this[_0x41e554(0x30f)][_0x41e554(0x379)]();(_0xeb0eac==null?void 0x0:_0xeb0eac[_0x41e554(0x229)])===_0x2bc3e0[_0x41e554(0x229)]&&_0xeb0eac['chartId']===_0x2bc3e0[_0x41e554(0x22b)]&&this['_editSessionService']['open']({..._0xeb0eac,'route':(0x0,a['resolveChartEditPanelRoute'])(_0x2bc3e0[_0x41e554(0x183)]),'source':'programmatic'}),this[_0x41e554(0x2be)]();}});this['disposeWithMe'](this[_0x55bdea(0x190)]['register'](Ne,_0x1422e8));}[_0x139398(0x35b)](){const _0x2b4db6=_0x139398;this['disposeWithMe'](this[_0x2b4db6(0x1d3)]['chartModelAdded$'][_0x2b4db6(0x304)](_0x61baf5=>{const _0x4a9e85=_0x2b4db6;let _0x4747e0=q(_0x61baf5[_0x4a9e85(0x229)],_0x61baf5[_0x4a9e85(0x22b)]);if(this[_0x4a9e85(0x2cf)][_0x4a9e85(0x228)](_0x4747e0))return;let _0x50a46f=new n[(_0x4a9e85(0x401))]();_0x50a46f[_0x4a9e85(0x273)](this[_0x4a9e85(0x1ad)]['on'](_0x61baf5[_0x4a9e85(0x229)],_0x61baf5[_0x4a9e85(0x22b)],_0x4a9e85(0x267),_0x3aaf6d=>{const _0x3aff48=_0x4a9e85;this['_openFloatMenu'](_0x61baf5[_0x3aff48(0x229)],_0x61baf5[_0x3aff48(0x22b)],_0x3aaf6d);})),this[_0x4a9e85(0x2cf)][_0x4a9e85(0x196)](_0x4747e0,_0x50a46f);})),this[_0x2b4db6(0x38e)](this[_0x2b4db6(0x1d3)][_0x2b4db6(0x3e9)][_0x2b4db6(0x304)](_0x193667=>{const _0x382064=_0x2b4db6;var _0x3679ce;let _0xe2b0a=q(_0x193667[_0x382064(0x229)],_0x193667[_0x382064(0x22b)]);(_0x3679ce=this['_chartEventDisposables']['get'](_0xe2b0a))==null||_0x3679ce[_0x382064(0x2fa)](),this[_0x382064(0x2cf)][_0x382064(0x3fa)](_0xe2b0a),this[_0x382064(0x3b0)]===_0xe2b0a&&this[_0x382064(0x2be)]();})),this[_0x2b4db6(0x38e)](this[_0x2b4db6(0x1d3)]['activeRuntimeModel$'][_0x2b4db6(0x304)](_0x2ca2ed=>{const _0x591907=_0x2b4db6;let _0x3183db=_0x2ca2ed?q(_0x2ca2ed['unitId'],_0x2ca2ed[_0x591907(0x22b)]):null;(!_0x3183db||this[_0x591907(0x3b0)]&&_0x3183db!==this['_popupRuntimeKey'])&&this[_0x591907(0x2be)]();}));}[_0x139398(0x2b5)](_0x150190,_0x384691,_0x13ecd8){const _0x39fe68=_0x139398;if(!this[_0x39fe68(0x1ad)][_0x39fe68(0x188)](_0x150190,_0x384691))return;let _0x3a6920=this['_modelService']['getChartModel'](_0x150190,_0x384691),_0x2d6ced=_0x3a6920?(0x0,a[_0x39fe68(0x34f)])(_0x3a6920[_0x39fe68(0x41f)],_0x13ecd8[_0x39fe68(0x41d)]):void 0x0;if(!_0x3a6920||!_0x2d6ced){this[_0x39fe68(0x2be)]();return;}if(this['_modelService']['setActiveChartRuntime'](_0x3a6920),this['_closePopup'](),!_0x2d6ced[_0x39fe68(0x191)])return;let _0x562657=this['_renderManagerService'][_0x39fe68(0x225)](_0x150190);if(!_0x562657)return;let _0x4ea609=Me(_0x13ecd8,()=>this[_0x39fe68(0x3f8)](_0x150190,_0x384691));if(!_0x4ea609[_0x39fe68(0x247)]){_0x4ea609['dispose']();return;}let _0x13371f=this[_0x39fe68(0x3d8)]['addPopup']({'componentKey':a[_0x39fe68(0x239)],'direction':_0x39fe68(0x1ac),'offset':[0x0,0x8],'unitId':_0x150190,'subUnitId':'','anchorRect':_0x4ea609[_0x39fe68(0x341)],'anchorRect$':_0x4ea609[_0x39fe68(0x356)],'canvasElement':_0x562657[_0x39fe68(0x382)][_0x39fe68(0x1bd)](),'extraProps':{'unitId':_0x150190,'chartId':_0x384691,'element':_0x13ecd8[_0x39fe68(0x41d)],'target':_0x2d6ced[_0x39fe68(0x183)],'adapterKey':Ne}}),_0x3db6b1=new n[(_0x39fe68(0x401))]();_0x3db6b1[_0x39fe68(0x273)](_0x4ea609),_0x3db6b1[_0x39fe68(0x273)]({'dispose':()=>this[_0x39fe68(0x3d8)]['removePopup'](_0x13371f)}),this[_0x39fe68(0x291)]=_0x3db6b1,this[_0x39fe68(0x3b0)]=q(_0x150190,_0x384691);}[_0x139398(0x2be)](){const _0x53b259=_0x139398;var _0x2279e0;(_0x2279e0=this[_0x53b259(0x291)])==null||_0x2279e0[_0x53b259(0x2fa)](),this[_0x53b259(0x291)]=null,this['_popupRuntimeKey']=null;}[_0x139398(0x3f8)](_0x158d18,_0xda04db){const _0x46c5f6=_0x139398;this[_0x46c5f6(0x2be)](),this[_0x46c5f6(0x1ad)][_0x46c5f6(0x188)](_0x158d18,_0xda04db)&&(this[_0x46c5f6(0x1ad)]['setElementEditMode'](_0x158d18,_0xda04db,!0x1),this['_chartRenderService']['setElementEditMode'](_0x158d18,_0xda04db,!0x0));}};J=x([b(0x0,(0x0,n['Inject'])(i[_0x139398(0x2d4)])),b(0x1,(0x0,n['Inject'])(B)),b(0x2,D),b(0x3,(0x0,n[_0x139398(0x237)])(w)),b(0x4,(0x0,n[_0x139398(0x237)])(a['ChartElementFloatMenuAdapterRegistry'])),b(0x5,(0x0,n['Inject'])(l[_0x139398(0x1db)])),b(0x6,p[_0x139398(0x422)]),b(0x7,n[_0x139398(0x393)]),b(0x8,(0x0,n[_0x139398(0x237)])(n[_0x139398(0x238)]))],J);function Pe(_0x26a717,_0x12e0d3,_0xc9ea7c,_0x392cd2){let _0x55f0cf={'chartType':_0x12e0d3,'data':_0xc9ea7c,..._0x392cd2?{'style':_0x392cd2}:{}};return{..._0x26a717,'options':_0x55f0cf};}function Fe(_0x26f0cc){const _0x5aa6af=_0x139398;let _0x4729aa=(0x0,l[_0x5aa6af(0x2f2)])(n[_0x5aa6af(0x40a)]),_0x11fd43=(0x0,l[_0x5aa6af(0x2f2)])(n['LocaleService']),_0x55ea95=(0x0,u['useMemo'])(()=>(0x0,a[_0x5aa6af(0x3d9)])(a[_0x5aa6af(0x381)][_0x5aa6af(0x281)](_0x305e59=>({..._0x305e59,'label':_0x11fd43['t']('boards-chart-ui.chartTypes.'+_0x305e59[_0x5aa6af(0x2a5)])}))),[_0x11fd43]),[_0x203f50,_0x511568]=(0x0,u[_0x5aa6af(0x2e5)])(String(o[_0x5aa6af(0x362)][_0x5aa6af(0x16b)])),_0x1b4027=_0x55ea95[_0x5aa6af(0x231)](_0x12c9d1=>_0x12c9d1[_0x5aa6af(0x32d)]===_0x203f50),_0x3dfaaf=(_0x1b4027==null?void 0x0:_0x1b4027[_0x5aa6af(0x250)])??o['ChartTypeBits'][_0x5aa6af(0x16b)],[_0xc3ba56,_0x32882b]=(0x0,u[_0x5aa6af(0x2e5)])(()=>i[_0x5aa6af(0x3cd)][_0x5aa6af(0x281)](_0xad4e59=>[..._0xad4e59])),[_0x50e66f,_0x199440]=(0x0,u[_0x5aa6af(0x2e5)])(null),_0x15c863={[a['InlineChartCreationIssueCode']['UnknownOption']]:_0x11fd43['t'](_0x5aa6af(0x3d6)),[a[_0x5aa6af(0x34c)][_0x5aa6af(0x40b)]]:_0x11fd43['t'](_0x5aa6af(0x16a)),[a['InlineChartCreationIssueCode'][_0x5aa6af(0x37f)]]:_0x11fd43['t'](_0x5aa6af(0x3c4))},_0x4f4abe=_0x55f32d=>(0x0,a[_0x5aa6af(0x1b7)])(_0x55f32d,{'candlestickClose':_0x11fd43['t']('boards-chart-ui.candlestick.close'),'candlestickHigh':_0x11fd43['t'](_0x5aa6af(0x320)),'candlestickLow':_0x11fd43['t'](_0x5aa6af(0x173)),'candlestickOpen':_0x11fd43['t'](_0x5aa6af(0x428)),'category':_0x11fd43['t'](_0x5aa6af(0x2ae)),'chordSource':_0x11fd43['t'](_0x5aa6af(0x1b5)),'chordTarget':_0x11fd43['t'](_0x5aa6af(0x286)),'label':_0x11fd43['t'](_0x5aa6af(0x32e)),'sunburstHierarchy':_0x11fd43['t']('boards-chart-ui.sunburst.hierarchy'),'value':_0x11fd43['t'](_0x5aa6af(0x185)),'valueField':_0x11fd43['t'](_0x5aa6af(0x32f))});return(0x0,d['jsxs'])(_0x5aa6af(0x3bd),{'className':_0x5aa6af(0x3f4),'children':[(0x0,d[_0x5aa6af(0x174)])(_0x5aa6af(0x3bd),{'className':_0x5aa6af(0x258),'children':[(0x0,d['jsx'])(_0x5aa6af(0x3bd),{'className':_0x5aa6af(0x392),'children':_0x11fd43['t'](_0x5aa6af(0x175))}),(0x0,d[_0x5aa6af(0x217)])(s[_0x5aa6af(0x30b)],{'className':_0x5aa6af(0x198),'value':_0x203f50,'options':_0x55ea95,'onChange':_0xfb5e85=>{const _0x308273=_0x5aa6af;var _0x432af4;_0x511568(_0xfb5e85);let _0xa8e523=((_0x432af4=_0x55ea95[_0x308273(0x231)](_0x30f013=>_0x30f013['value']===_0xfb5e85))==null?void 0x0:_0x432af4[_0x308273(0x250)])??Number(_0xfb5e85),_0x154403=_0x4f4abe(_0xa8e523);_0x154403&&_0x32882b(_0x154403);}})]}),(0x0,d['jsxs'])(_0x5aa6af(0x3bd),{'className':_0x5aa6af(0x258),'children':[(0x0,d[_0x5aa6af(0x217)])(_0x5aa6af(0x3bd),{'className':_0x5aa6af(0x392),'children':_0x11fd43['t'](_0x5aa6af(0x387))}),(0x0,d['jsx'])(a['ChartInlineTableEditor'],{'values':_0xc3ba56,'minColumns':(0x0,a['getChartInlineTableMinColumns'])(_0x3dfaaf),'parsePastedText':o['parseInlineChartTable'],'onChange':_0x32882b})]}),_0x50e66f&&(0x0,d[_0x5aa6af(0x217)])('div',{'className':_0x5aa6af(0x433),'children':_0x50e66f}),(0x0,d[_0x5aa6af(0x174)])('div',{'className':_0x5aa6af(0x3ca),'children':[_0x26f0cc[_0x5aa6af(0x28b)]&&(0x0,d['jsx'])(s[_0x5aa6af(0x378)],{'type':_0x5aa6af(0x177),'variant':_0x5aa6af(0x3b7),'onClick':_0x26f0cc[_0x5aa6af(0x28b)],'children':_0x11fd43['t'](_0x5aa6af(0x3e7))}),(0x0,d['jsx'])(s['Button'],{'type':_0x5aa6af(0x177),'variant':'primary','onClick':async()=>{const _0x49fb7b=_0x5aa6af;var _0x573305;let _0x436fdc=(0x0,a[_0x49fb7b(0x3ed)])({'optionId':_0x203f50,'values':_0xc3ba56});if(!_0x436fdc['ok']){_0x199440(_0x15c863[_0x436fdc[_0x49fb7b(0x290)][_0x49fb7b(0x361)]]);return;}if(!await _0x4729aa[_0x49fb7b(0x336)](e[_0x49fb7b(0x23e)]['id'],Pe(_0x26f0cc['insertParams'],_0x436fdc[_0x49fb7b(0x282)]['chartType'],_0x436fdc[_0x49fb7b(0x282)][_0x49fb7b(0x3d4)],_0x436fdc[_0x49fb7b(0x282)][_0x49fb7b(0x26b)]))){_0x199440(_0x11fd43['t'](_0x49fb7b(0x3d6)));return;}_0x199440(null),(_0x573305=_0x26f0cc[_0x49fb7b(0x28a)])==null||_0x573305[_0x49fb7b(0x256)](_0x26f0cc);},'children':_0x11fd43['t'](_0x5aa6af(0x426))})]})]});}let Y=class extends n[_0x139398(0x33f)]{constructor(_0x63ad28){const _0x10ed6f=_0x139398;super(),this[_0x10ed6f(0x24c)]=_0x63ad28,this[_0x10ed6f(0x410)]();}[_0x139398(0x410)](){const _0x2b29b5=_0x139398;this['disposeWithMe'](this[_0x2b29b5(0x24c)]['register'](P,de)),this[_0x2b29b5(0x38e)](this[_0x2b29b5(0x24c)][_0x2b29b5(0x21c)](ne,re)),this[_0x2b29b5(0x38e)](this[_0x2b29b5(0x24c)]['register'](t[_0x2b29b5(0x1e4)],Fe)),this['disposeWithMe'](this[_0x2b29b5(0x24c)][_0x2b29b5(0x21c)](k,A));}};Y=x([b(0x0,(0x0,n[_0x139398(0x237)])(l[_0x139398(0x2e6)]))],Y);var Ie=class extends p[_0x139398(0x301)]{constructor(_0x2ccd62,_0x5f2133){const _0x505fd9=_0x139398;super(_0x2ccd62,_0x5f2133),y(this,_0x505fd9(0x295),void 0x0),y(this,'_frameStyle',void 0x0),this[_0x505fd9(0x295)]=_0x5f2133[_0x505fd9(0x261)],this[_0x505fd9(0x408)]=_0x5f2133[_0x505fd9(0x197)],this[_0x505fd9(0x206)]();}[_0x139398(0x169)](_0xa6ac35){const _0x558475=_0x139398;this[_0x558475(0x295)]=_0xa6ac35,this['makeDirty'](!0x0);}[_0x139398(0x16e)](_0xda88d8){const _0x3ef26a=_0x139398;Le(this['_frameStyle'],_0xda88d8)||(this[_0x3ef26a(0x408)]=_0xda88d8,this[_0x3ef26a(0x221)](!0x0));}['getElement'](){const _0x130872=_0x139398;return this[_0x130872(0x295)];}[_0x139398(0x3fc)](){return this['_frameStyle'];}[_0x139398(0x2ab)](_0xe6f76b){const _0x34faf6=_0x139398;this[_0x34faf6(0x372)]??(this[_0x34faf6(0x372)]=document[_0x34faf6(0x2a8)](_0x34faf6(0x1c3)),this['_native'][_0x34faf6(0x3fb)]=_0x34faf6(0x2ca)),this[_0x34faf6(0x206)](),this[_0x34faf6(0x372)]['src']=_0xe6f76b;}[_0x139398(0x3c2)](_0x5231b7,_0x8c79f,_0x1768b8=this[_0x139398(0x18d)],_0x13fa3f=this[_0x139398(0x17d)]){const _0x212484=_0x139398;let _0x141664=this[_0x212484(0x408)],_0x1b9193=R({'width':_0x1768b8,'height':_0x13fa3f},_0x141664);_0x5231b7[_0x212484(0x186)](),_0x5231b7['translate'](-_0x1768b8/0x2,-_0x13fa3f/0x2),X(_0x5231b7,0x0,0x0,_0x1768b8,_0x13fa3f,_0x141664[_0x212484(0x35f)]),_0x5231b7[_0x212484(0x26d)]=_0x141664[_0x212484(0x404)],_0x5231b7[_0x212484(0x404)](),_0x5231b7['restore'](),this[_0x212484(0x313)](_0x5231b7,_0x1768b8,_0x13fa3f,_0x1b9193,_0x141664),this[_0x212484(0x179)](_0x5231b7,_0x1768b8,_0x13fa3f,_0x141664);}[_0x139398(0x313)](_0x57fdf5,_0x3ad43d,_0x3bd99d,_0x5adf03,_0x42aaba){const _0x32b619=_0x139398;var _0x11288c;!((_0x11288c=this[_0x32b619(0x372)])!=null&&_0x11288c[_0x32b619(0x28e)])||this[_0x32b619(0x372)][_0x32b619(0x34d)]<=0x0||this[_0x32b619(0x372)][_0x32b619(0x358)]<=0x0||(_0x57fdf5[_0x32b619(0x186)](),_0x57fdf5[_0x32b619(0x1f7)](-_0x3ad43d/0x2,-_0x3bd99d/0x2),X(_0x57fdf5,_0x5adf03[_0x32b619(0x285)],_0x5adf03[_0x32b619(0x29e)],_0x5adf03[_0x32b619(0x18d)],_0x5adf03[_0x32b619(0x17d)],Math[_0x32b619(0x40f)](0x0,_0x42aaba[_0x32b619(0x35f)]-_0x42aaba[_0x32b619(0x20a)])),_0x57fdf5[_0x32b619(0x1c2)](),_0x57fdf5[_0x32b619(0x3dd)](this[_0x32b619(0x372)],_0x5adf03[_0x32b619(0x285)],_0x5adf03[_0x32b619(0x29e)],_0x5adf03[_0x32b619(0x18d)],_0x5adf03[_0x32b619(0x17d)]),_0x57fdf5[_0x32b619(0x1cb)]());}[_0x139398(0x179)](_0x13d836,_0x303be7,_0x5a0202,_0x41f912){const _0x1ac375=_0x139398;if(_0x41f912[_0x1ac375(0x20a)]<=0x0)return;let _0x80eba7=he({'width':_0x303be7,'height':_0x5a0202},_0x41f912);_0x13d836['save'](),_0x13d836[_0x1ac375(0x1f7)](-_0x303be7/0x2,-_0x5a0202/0x2),X(_0x13d836,_0x80eba7[_0x1ac375(0x285)],_0x80eba7[_0x1ac375(0x29e)],_0x80eba7[_0x1ac375(0x18d)],_0x80eba7['height'],_0x80eba7['radius']),_0x13d836[_0x1ac375(0x395)]=_0x41f912[_0x1ac375(0x2fd)],_0x13d836['lineWidth']=_0x41f912[_0x1ac375(0x20a)],_0x13d836[_0x1ac375(0x2fd)](),_0x13d836['restore']();}[_0x139398(0x38b)](){const _0xd362d5=_0x139398;var _0x4b7e7a;let _0x436fe4=(_0x4b7e7a=this['getEngine']())==null?void 0x0:_0x4b7e7a[_0xd362d5(0x2dc)];_0x436fe4&&(_0x436fe4[_0xd362d5(0x221)](!0x0),_0x436fe4[_0xd362d5(0x284)](),_0x436fe4[_0xd362d5(0x1a4)][_0xd362d5(0x17e)](this['oKey']));}[_0x139398(0x206)](){const _0x496a4c=_0x139398;this[_0x496a4c(0x372)]&&(this[_0x496a4c(0x372)][_0x496a4c(0x1e8)]=()=>{this['_notifyScene']();},this['_native'][_0x496a4c(0x297)]=()=>{const _0x351b88=_0x496a4c;this[_0x351b88(0x38b)]();});}};function X(_0x5bbb50,_0x2e35ac,_0x53f0a6,_0x14fc88,_0x288cb1,_0xf100d){const _0x18c8ea=_0x139398;let _0x17fcf5=Math[_0x18c8ea(0x25a)](_0xf100d||0x0,_0x14fc88/0x2,_0x288cb1/0x2);if(_0x5bbb50[_0x18c8ea(0x39e)](),!_0x17fcf5){_0x5bbb50[_0x18c8ea(0x24d)](_0x2e35ac,_0x53f0a6,_0x14fc88,_0x288cb1),_0x5bbb50['closePath']();return;}_0x5bbb50[_0x18c8ea(0x434)](_0x2e35ac+_0x17fcf5,_0x53f0a6),_0x5bbb50[_0x18c8ea(0x375)](_0x2e35ac+_0x14fc88-_0x17fcf5,_0x53f0a6),_0x5bbb50[_0x18c8ea(0x345)](_0x2e35ac+_0x14fc88-_0x17fcf5,_0x53f0a6+_0x17fcf5,_0x17fcf5,Math['PI']*0x3/0x2,0x0,!0x1),_0x5bbb50[_0x18c8ea(0x375)](_0x2e35ac+_0x14fc88,_0x53f0a6+_0x288cb1-_0x17fcf5),_0x5bbb50['arc'](_0x2e35ac+_0x14fc88-_0x17fcf5,_0x53f0a6+_0x288cb1-_0x17fcf5,_0x17fcf5,0x0,Math['PI']/0x2,!0x1),_0x5bbb50[_0x18c8ea(0x375)](_0x2e35ac+_0x17fcf5,_0x53f0a6+_0x288cb1),_0x5bbb50[_0x18c8ea(0x345)](_0x2e35ac+_0x17fcf5,_0x53f0a6+_0x288cb1-_0x17fcf5,_0x17fcf5,Math['PI']/0x2,Math['PI'],!0x1),_0x5bbb50[_0x18c8ea(0x375)](_0x2e35ac,_0x53f0a6+_0x17fcf5),_0x5bbb50['arc'](_0x2e35ac+_0x17fcf5,_0x53f0a6+_0x17fcf5,_0x17fcf5,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5bbb50['closePath']();}function Le(_0x561a42,_0x4c8efd){const _0x1aec39=_0x139398;return _0x561a42['fill']===_0x4c8efd[_0x1aec39(0x404)]&&_0x561a42[_0x1aec39(0x2fd)]===_0x4c8efd[_0x1aec39(0x2fd)]&&_0x561a42[_0x1aec39(0x20a)]===_0x4c8efd[_0x1aec39(0x20a)]&&_0x561a42[_0x1aec39(0x35f)]===_0x4c8efd[_0x1aec39(0x35f)];}function Re(_0x4906d8){const _0x2b425c=_0x139398;let {element:_0x299340}=_0x4906d8['elementDataItem'];return _0x299340[_0x2b425c(0x1a1)]===e['BoardElementType']['Chart']?_0x299340:null;}let Z=class{constructor(_0x34d38e,_0x2de0e6,_0x17d87b,_0x58b623){const _0x63ea77=_0x139398;this[_0x63ea77(0x21a)]=_0x34d38e,this[_0x63ea77(0x399)]=_0x2de0e6,this['_resourceService']=_0x17d87b,this[_0x63ea77(0x16c)]=_0x58b623,y(this,_0x63ea77(0x324),_0x63ea77(0x28c)),y(this,_0x63ea77(0x3f3),new WeakMap());}[_0x139398(0x3c1)](_0x566a59){const _0xd8ed40=_0x139398;let _0x41ba05=Re(_0x566a59);if(!_0x41ba05)return null;let _0x1fbeea=Math['max'](0x1,_0x566a59[_0xd8ed40(0x1e6)]['width']),_0x314591=Math[_0xd8ed40(0x40f)](0x1,_0x566a59[_0xd8ed40(0x1e6)]['height']),_0x875716=new Ie(_0x566a59['key'],{'url':_0xd8ed40(0x3a7),'left':_0x566a59[_0xd8ed40(0x1e6)]['left'],'top':_0x566a59[_0xd8ed40(0x1e6)][_0xd8ed40(0x29e)],'width':_0x1fbeea,'height':_0x314591,'angle':_0x566a59[_0xd8ed40(0x1e6)][_0xd8ed40(0x17b)],'flipX':_0x566a59[_0xd8ed40(0x1e6)][_0xd8ed40(0x27e)],'flipY':_0x566a59[_0xd8ed40(0x1e6)][_0xd8ed40(0x276)],'zIndex':_0x566a59['zIndex'],'visible':_0x41ba05[_0xd8ed40(0x247)]!==!0x1,'evented':!0x0,'forceRender':!0x0,'element':_0x41ba05,'frameStyle':this[_0xd8ed40(0x316)](_0x566a59[_0xd8ed40(0x229)],_0x41ba05)});return this[_0xd8ed40(0x27c)](_0x875716,this[_0xd8ed40(0x178)](_0x566a59[_0xd8ed40(0x229)],_0x875716),_0x566a59[_0xd8ed40(0x229)]),_0x875716;}[_0x139398(0x1c8)](_0x9a68de,_0xcfd87b){const _0x3127ef=_0x139398;var _0x25580e;if(!(_0x9a68de instanceof Ie))return!0x1;let _0x14d299=Re(_0xcfd87b);return _0x14d299?(_0xcfd87b['preserveTransform']||_0x9a68de[_0x3127ef(0x1ab)](_0xcfd87b[_0x3127ef(0x1e6)]),_0x9a68de['updateElement'](_0x14d299),this[_0x3127ef(0x3de)](_0xcfd87b[_0x3127ef(0x229)],_0x9a68de),(_0x25580e=this[_0x3127ef(0x3f3)][_0x3127ef(0x30a)](_0x9a68de))==null||_0x25580e(),!0x0):!0x1;}['_watchSnapshotUpdates'](_0x295bb,_0x14e621,_0x108a06){const _0x4e7e78=_0x139398;if(!_0x14e621)return;let _0x182190=null,_0x4963fd=null,_0x5cda82=!0x1,_0x5afa5a=_0x228063=>{const _0x491172=_0x1864;if(_0x4963fd!==_0x228063){if(_0x182190==null||_0x182190[_0x491172(0x255)](),_0x182190=null,_0x4963fd=_0x228063,_0x228063[_0x491172(0x187)]===_0x491172(0x2d2)&&_0x228063[_0x491172(0x1e0)]){_0x295bb[_0x491172(0x2ab)](_0x228063[_0x491172(0x1e0)]);return;}_0x228063['status']===_0x491172(0x263)&&(_0x182190=this[_0x491172(0x399)]['snapshotUpdated$'][_0x491172(0x304)](_0x53826b=>{const _0x484b45=_0x491172;if(_0x53826b!==_0x228063||_0x53826b[_0x484b45(0x187)]!==_0x484b45(0x2d2)||!_0x53826b[_0x484b45(0x1e0)]){if(_0x53826b===_0x228063&&_0x53826b[_0x484b45(0x187)]==='error'&&!_0x5cda82){_0x5cda82=!0x0;let _0x39aa93=this[_0x484b45(0x178)](_0x108a06,_0x295bb);_0x39aa93&&_0x5afa5a(_0x39aa93);}return;}_0x295bb[_0x484b45(0x2ab)](_0x53826b['dataUrl']),_0x182190==null||_0x182190[_0x484b45(0x255)](),_0x182190=null;}));}};_0x5afa5a(_0x14e621);let _0xf45634=()=>{const _0x5d27a1=_0x1864;_0x5cda82=!0x1;let _0x23b62f=this[_0x5d27a1(0x178)](_0x108a06,_0x295bb);_0x23b62f&&_0x5afa5a(_0x23b62f);};this[_0x4e7e78(0x3f3)]['set'](_0x295bb,_0xf45634);let _0x59e24b=this['_snapshotService'][_0x4e7e78(0x19b)][_0x4e7e78(0x304)](_0x29daac=>{const _0x5a780d=_0x4e7e78;_0x29daac[_0x5a780d(0x229)]===_0x108a06&&_0x29daac[_0x5a780d(0x22b)]===_0x295bb[_0x5a780d(0x2f5)]()['chartId']&&_0xf45634();});_0x295bb['onDispose$'][_0x4e7e78(0x374)](()=>{const _0x380131=_0x4e7e78;_0x182190==null||_0x182190[_0x380131(0x255)](),_0x59e24b[_0x380131(0x255)](),this[_0x380131(0x3f3)][_0x380131(0x3fa)](_0x295bb);});}['_requestSnapshotForObject'](_0x3d14bc,_0x1f043f){const _0xa73028=_0x139398;let _0x61c368=this['_updateFrameStyle'](_0x3d14bc,_0x1f043f),_0x461b1f=R({'width':Math[_0xa73028(0x40f)](0x1,_0x1f043f[_0xa73028(0x18d)]),'height':Math[_0xa73028(0x40f)](0x1,_0x1f043f[_0xa73028(0x17d)])},_0x61c368);return this[_0xa73028(0x399)][_0xa73028(0x2b0)]({'unitId':_0x3d14bc,'chartId':_0x1f043f[_0xa73028(0x2f5)]()[_0xa73028(0x22b)],'width':_0x461b1f[_0xa73028(0x18d)],'height':_0x461b1f['height'],'mode':'main'});}['_updateFrameStyle'](_0x57c530,_0x366a13){const _0x41e2d0=_0x139398;let _0x17860b=this[_0x41e2d0(0x316)](_0x57c530,_0x366a13[_0x41e2d0(0x2f5)]());return _0x366a13[_0x41e2d0(0x16e)](_0x17860b),_0x17860b;}[_0x139398(0x316)](_0x47e2c4,_0x1a4495){const _0x2f561e=_0x139398;var _0x4646ff;let _0x456fb4=(_0x4646ff=this['_resourceService']['getChart'](_0x47e2c4,_0x1a4495[_0x2f561e(0x22b)]))==null?void 0x0:_0x4646ff[_0x2f561e(0x26b)];return L({'chartStyle':_0x456fb4,'chartElement':_0x1a4495,'hostFill':_0x456fb4?this['_renderService'][_0x2f561e(0x2b3)](_0x456fb4)[_0x2f561e(0x404)]:void 0x0,'isDarkMode':this[_0x2f561e(0x21a)]['darkMode']});}};Z=x([b(0x0,(0x0,n[_0x139398(0x237)])(n[_0x139398(0x25e)])),b(0x1,(0x0,n['Inject'])(H)),b(0x2,(0x0,n['Inject'])(i[_0x139398(0x22d)])),b(0x3,(0x0,n[_0x139398(0x237)])(B))],Z);function ze(_0x53a547){const _0x49209b=_0x139398;return _0x53a547[_0x49209b(0x1a1)]===e[_0x49209b(0x360)]['Chart'];}let Q=class{constructor(_0x1f0f68){const _0xab20f=_0x139398;this[_0xab20f(0x1b4)]=_0x1f0f68,y(this,_0xab20f(0x1cd),_0xab20f(0x2c5));}[_0x139398(0x296)](_0x3139f0){const _0x118a6f=_0x139398;let _0x11f29c={},_0x259f13={},_0x4ef715={};return _0x3139f0[_0x118a6f(0x3d2)]['forEach'](_0x884dad=>{const _0x32d1a8=_0x118a6f;if(!ze(_0x884dad))return;let _0x545714=this[_0x32d1a8(0x1b4)][_0x32d1a8(0x222)](_0x3139f0[_0x32d1a8(0x229)],_0x884dad[_0x32d1a8(0x22b)]),_0x404b8c=_0x545714?this['_resourceService']['getDataSource'](_0x3139f0['unitId'],_0x545714['dataSourceId']):void 0x0;!_0x545714||!_0x404b8c||(_0x11f29c[_0x545714['id']]=n['Tools']['deepClone'](_0x545714),_0x259f13[_0x404b8c['id']]=n['Tools']['deepClone'](_0x404b8c),_0x4ef715[_0x884dad['id']]=_0x545714['id']);}),Object[_0x118a6f(0x259)](_0x11f29c)[_0x118a6f(0x1b9)]===0x0?null:{'charts':_0x11f29c,'dataSources':_0x259f13,'chartIdByElementId':_0x4ef715};}[_0x139398(0x3d0)](_0x212dff){const _0x35e81f=_0x139398;if(!Be(_0x212dff[_0x35e81f(0x204)]))return null;let _0x20c668=_0x212dff[_0x35e81f(0x204)],_0x5f4f03=new Map();_0x212dff[_0x35e81f(0x389)][_0x35e81f(0x36f)]((_0xff4605,_0x557c3d)=>{const _0x5aa418=_0x35e81f;_0x5f4f03[_0x5aa418(0x196)](_0xff4605,_0x557c3d);});let _0x40009f=new Map(),_0x570257=new Map(),_0x4532fe=_0x212dff['elements'][_0x35e81f(0x281)](_0x36fcf1=>{const _0x3d06bd=_0x35e81f;if(!ze(_0x36fcf1))return _0x36fcf1;let _0xb816f8=_0x5f4f03['get'](_0x36fcf1['id']),_0x478ba1=_0xb816f8?_0x20c668[_0x3d06bd(0x2b7)][_0xb816f8]:void 0x0;if(!_0x478ba1||!_0x20c668[_0x3d06bd(0x409)][_0x478ba1])return _0x36fcf1;let _0x4e6939=_0x40009f[_0x3d06bd(0x30a)](_0x478ba1);return _0x4e6939||(_0x4e6939=(0x0,n[_0x3d06bd(0x1bb)])(0x6),_0x40009f[_0x3d06bd(0x196)](_0x478ba1,_0x4e6939)),{..._0x36fcf1,'chartId':_0x4e6939};});_0x40009f[_0x35e81f(0x36f)]((_0x4cd905,_0x5d5b12)=>{const _0x56e9bd=_0x35e81f;var _0x236ff0;let _0x1a69ea=(_0x236ff0=_0x20c668[_0x56e9bd(0x409)][_0x5d5b12])==null?void 0x0:_0x236ff0[_0x56e9bd(0x429)];_0x1a69ea&&!_0x570257[_0x56e9bd(0x228)](_0x1a69ea)&&_0x570257[_0x56e9bd(0x196)](_0x1a69ea,(0x0,n[_0x56e9bd(0x1bb)])(0x6));});let _0x2358bd=[];_0x570257[_0x35e81f(0x36f)]((_0x312952,_0x576f20)=>{const _0x5f43b1=_0x35e81f;let _0x57f254=_0x20c668[_0x5f43b1(0x391)][_0x576f20];_0x57f254&&_0x2358bd['push']({...n['Tools'][_0x5f43b1(0x224)](_0x57f254),'id':_0x312952,'values':_0x57f254['values']['map'](_0xadddfd=>[..._0xadddfd])});});let _0x4c0c30=[];return _0x40009f[_0x35e81f(0x36f)]((_0x4fb774,_0x309a61)=>{const _0x4d725b=_0x35e81f;let _0x9ebb18=_0x20c668[_0x4d725b(0x409)][_0x309a61],_0x27b3e4=_0x9ebb18?_0x570257[_0x4d725b(0x30a)](_0x9ebb18[_0x4d725b(0x429)]):void 0x0;!_0x9ebb18||!_0x27b3e4||_0x4c0c30[_0x4d725b(0x2b9)]({...n[_0x4d725b(0x1a8)][_0x4d725b(0x224)](_0x9ebb18),'id':_0x4fb774,'dataSourceId':_0x27b3e4});}),_0x4c0c30[_0x35e81f(0x1b9)]===0x0?null:{'elements':_0x4532fe,'redoMutations':[..._0x2358bd[_0x35e81f(0x281)](_0x329187=>({'id':i[_0x35e81f(0x3a9)]['id'],'params':{'unitId':_0x212dff['targetUnitId'],'dataSource':_0x329187}})),..._0x4c0c30[_0x35e81f(0x281)](_0x5a5536=>({'id':i[_0x35e81f(0x421)]['id'],'params':{'unitId':_0x212dff[_0x35e81f(0x36c)],'chart':_0x5a5536}}))],'undoMutations':[..._0x4c0c30[_0x35e81f(0x281)](_0x46703f=>({'id':i['RemoveBoardChartSnapshotMutation']['id'],'params':{'unitId':_0x212dff['targetUnitId'],'chartId':_0x46703f['id']}})),..._0x2358bd[_0x35e81f(0x281)](_0x11196b=>({'id':i[_0x35e81f(0x1ce)]['id'],'params':{'unitId':_0x212dff['targetUnitId'],'dataSourceId':_0x11196b['id']}}))]};}};Q=x([b(0x0,(0x0,n['Inject'])(i['BoardChartResourceService']))],Q);function Be(_0x4fa33a){const _0x21eb75=_0x139398;if(!_0x4fa33a||typeof _0x4fa33a!=_0x21eb75(0x2c9))return!0x1;let _0x373265=_0x4fa33a;return!!_0x373265[_0x21eb75(0x409)]&&!!_0x373265[_0x21eb75(0x391)]&&!!_0x373265[_0x21eb75(0x2b7)];}const Ve='UNIVER_BOARDS_CHART_UI_PLUGIN';let $=class extends n[_0x139398(0x1fc)]{constructor(_0x140bc5=h,_0x4effe7,_0x551b4e,_0x1db239){const _0x3207a9=_0x139398;super(),this[_0x3207a9(0x283)]=_0x140bc5,this['_injector']=_0x4effe7,this[_0x3207a9(0x310)]=_0x551b4e,this[_0x3207a9(0x2ee)]=_0x1db239,y(this,_0x3207a9(0x359),null);let {..._0x292d57}=(0x0,n['merge'])({},h,this[_0x3207a9(0x283)]);this[_0x3207a9(0x310)][_0x3207a9(0x2e1)](m,_0x292d57);}['onStarting'](){const _0x276d5c=_0x139398;this[_0x276d5c(0x38e)](this[_0x276d5c(0x388)][_0x276d5c(0x30a)](n['ICommandService'])[_0x276d5c(0x210)](ie)),[[B],[H],[D,{'useClass':O}],[N],[w],[J],[Z],[Q],[W],[Y]][_0x276d5c(0x36f)](_0x3faf3a=>this[_0x276d5c(0x388)]['add'](_0x3faf3a)),(0x0,n[_0x276d5c(0x270)])(this[_0x276d5c(0x388)],[[B],[H],[D],[N],[w],[J]]),this[_0x276d5c(0x388)][_0x276d5c(0x30a)](Y);let _0x3c99f8=this[_0x276d5c(0x388)]['get'](Z);this[_0x276d5c(0x359)]=_0x3c99f8,this[_0x276d5c(0x24a)](_0x3c99f8),this[_0x276d5c(0x38e)]((0x0,n['toDisposable'])(()=>{const _0x11fe95=_0x276d5c;this[_0x11fe95(0x1ed)](_0x3c99f8),this[_0x11fe95(0x359)]=null;}));let _0x1826ea=this['_injector']['get'](t[_0x276d5c(0x340)]);this[_0x276d5c(0x38e)](_0x1826ea[_0x276d5c(0x21b)](this[_0x276d5c(0x388)]['get'](Q))),this[_0x276d5c(0x38e)](this[_0x276d5c(0x388)][_0x276d5c(0x30a)](W));}[_0x139398(0x22e)](){const _0x13ace1=_0x139398;this['disposeWithMe'](this[_0x13ace1(0x2ee)][_0x13ace1(0x35c)](n[_0x13ace1(0x2e3)]['UNIVER_BOARD'],M)),this[_0x13ace1(0x38e)](this[_0x13ace1(0x2ee)][_0x13ace1(0x35c)](n['UniverInstanceType'][_0x13ace1(0x18e)],U)),this[_0x13ace1(0x38e)](this['_renderManagerService'][_0x13ace1(0x35c)](n[_0x13ace1(0x2e3)][_0x13ace1(0x18e)],V)),this[_0x13ace1(0x38e)](this[_0x13ace1(0x2ee)]['registerRenderModule'](n[_0x13ace1(0x2e3)][_0x13ace1(0x18e)],j));}[_0x139398(0x24a)](_0x578722){const _0x1bd199=_0x139398;var _0xbf2477,_0x10c995;let _0x4e370b=this[_0x1bd199(0x339)](),_0x53840c=_0x4e370b[_0x1bd199(0x3bf)]??[];_0x53840c[_0x1bd199(0x236)](_0x578722)||this[_0x1bd199(0x310)][_0x1bd199(0x2e1)](t['BOARDS_UI_PLUGIN_CONFIG_KEY'],{..._0x4e370b,'additionalRenderAdapters':[..._0x53840c,_0x578722],'toolbar':{..._0x4e370b[_0x1bd199(0x1f1)],'tools':{...(_0xbf2477=_0x4e370b[_0x1bd199(0x1f1)])==null?void 0x0:_0xbf2477['tools'],[e[_0x1bd199(0x2a6)][_0x1bd199(0x33e)]]:He((_0x10c995=_0x4e370b[_0x1bd199(0x1f1)])==null||(_0x10c995=_0x10c995[_0x1bd199(0x1ea)])==null?void 0x0:_0x10c995[e[_0x1bd199(0x2a6)][_0x1bd199(0x33e)]])}}});}['_removeRenderAdapter'](_0x2e4ecc){const _0x384efb=_0x139398;var _0x3ea211;let _0x17a8d4=this[_0x384efb(0x339)](),_0x4add9c=(_0x3ea211=_0x17a8d4[_0x384efb(0x3bf)])==null?void 0x0:_0x3ea211[_0x384efb(0x2c0)](_0x5c2dad=>_0x5c2dad!==_0x2e4ecc);this[_0x384efb(0x310)][_0x384efb(0x2e1)](t[_0x384efb(0x407)],{..._0x17a8d4,'additionalRenderAdapters':_0x4add9c});}['_getBoardsUIConfig'](){const _0x19553d=_0x139398;return this[_0x19553d(0x310)]['getConfig'](t[_0x19553d(0x407)])??{};}};y($,_0x139398(0x347),Ve),y($,'packageName',Ce),y($,'version',we),y($,_0x139398(0x1a1),n[_0x139398(0x2e3)][_0x139398(0x18e)]),$=x([(0x0,n['DependentOn'])(f[_0x139398(0x2b2)],p[_0x139398(0x2a4)],e[_0x139398(0x371)],a[_0x139398(0x1bf)],i[_0x139398(0x249)],t[_0x139398(0x385)]),b(0x1,(0x0,n[_0x139398(0x237)])(n['Injector'])),b(0x2,n['IConfigService']),b(0x3,p[_0x139398(0x422)])],$);function He(_0x35d566){const _0x4481f0=_0x139398;return _0x35d566===!0x1?!0x1:typeof _0x35d566!=_0x4481f0(0x2c9)||{..._0x35d566,'enabled':_0x35d566[_0x4481f0(0x19e)]??!0x0};}exports[_0x139398(0x36d)]=m,exports[_0x139398(0x377)]=Ve,exports[_0x139398(0x342)]=0x0,Object[_0x139398(0x176)](exports,_0x139398(0x2f7),{'enumerable':!0x0,'get':function(){return Q;}}),Object['defineProperty'](exports,'BoardChartDataEditService',{'enumerable':!0x0,'get':function(){return N;}}),Object[_0x139398(0x176)](exports,_0x139398(0x21d),{'enumerable':!0x0,'get':function(){return w;}}),Object['defineProperty'](exports,_0x139398(0x29c),{'enumerable':!0x0,'get':function(){return j;}}),Object[_0x139398(0x176)](exports,_0x139398(0x2ac),{'enumerable':!0x0,'get':function(){return M;}}),Object[_0x139398(0x176)](exports,'BoardChartPanelController',{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x139398(0x176)](exports,_0x139398(0x1c1),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x139398(0x176)](exports,'BoardChartRenderService',{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x139398(0x176)](exports,_0x139398(0x246),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x139398(0x176)](exports,'BoardChartSnapshotRefreshController',{'enumerable':!0x0,'get':function(){return W;}}),Object[_0x139398(0x176)](exports,'BoardChartSnapshotRenderService',{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x139398(0x176)](exports,_0x139398(0x323),{'enumerable':!0x0,'get':function(){return O;}}),exports[_0x139398(0x26e)]=_e,exports[_0x139398(0x230)]=be,exports[_0x139398(0x2ba)]=D,Object[_0x139398(0x176)](exports,'UniverBoardsChartUIPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x139398(0x1f6)]=He,exports['resolveBoardChartSnapshotStyle']=xe;
|
|
1
|
+
const _0x3c9708=_0xce56;(function(_0x33de6b,_0x2b07ba){const _0x5bac7c=_0xce56,_0x20a015=_0x33de6b();while(!![]){try{const _0x50a752=-parseInt(_0x5bac7c(0x202))/0x1*(-parseInt(_0x5bac7c(0x174))/0x2)+parseInt(_0x5bac7c(0x1cc))/0x3+parseInt(_0x5bac7c(0x243))/0x4+-parseInt(_0x5bac7c(0x24b))/0x5*(-parseInt(_0x5bac7c(0x258))/0x6)+-parseInt(_0x5bac7c(0x19c))/0x7+parseInt(_0x5bac7c(0x1ff))/0x8+-parseInt(_0x5bac7c(0x1c1))/0x9*(parseInt(_0x5bac7c(0x1a3))/0xa);if(_0x50a752===_0x2b07ba)break;else _0x20a015['push'](_0x20a015['shift']());}catch(_0x1948db){_0x20a015['push'](_0x20a015['shift']());}}}(_0x5cd6,0x77e8a),Object[_0x3c9708(0x36a)](exports,Symbol['toStringTag'],{'value':'Module'}));let e=require('@univerjs-pro/boards'),t=require('@univerjs-pro/boards-ui'),n=require('@univerjs/core'),r=require('rxjs'),i=require('@univerjs-pro/boards-chart'),a=require('@univerjs-pro/chart-ui'),o=require('@univerjs/design'),s=require('@univerjs/icons'),c=require('@univerjs/ui'),l=require('react'),u=require('react/jsx-runtime'),d=require('@univerjs-pro/engine-chart'),f=require('@univerjs-pro/license'),p=require('@univerjs/engine-render');const m=_0x3c9708(0xf8),h={};function g(_0x78b15a){'@babel/helpers - typeof';const _0x350e3c=_0x3c9708;return g=typeof Symbol==_0x350e3c(0x2e6)&&typeof Symbol['iterator']==_0x350e3c(0x103)?function(_0xcdc4cd){return typeof _0xcdc4cd;}:function(_0x5ae4a5){const _0x3b98fe=_0x350e3c;return _0x5ae4a5&&typeof Symbol==_0x3b98fe(0x2e6)&&_0x5ae4a5['constructor']===Symbol&&_0x5ae4a5!==Symbol[_0x3b98fe(0x1e5)]?'symbol':typeof _0x5ae4a5;},g(_0x78b15a);}function _(_0x3971bc,_0x167de0){const _0x2448ac=_0x3c9708;if(g(_0x3971bc)!=_0x2448ac(0x2b4)||!_0x3971bc)return _0x3971bc;var _0x3aa134=_0x3971bc[Symbol[_0x2448ac(0x274)]];if(_0x3aa134!==void 0x0){var _0x13437b=_0x3aa134[_0x2448ac(0x1fa)](_0x3971bc,_0x167de0||_0x2448ac(0x32c));if(g(_0x13437b)!=_0x2448ac(0x2b4))return _0x13437b;throw TypeError(_0x2448ac(0x309));}return(_0x167de0===_0x2448ac(0x305)?String:Number)(_0x3971bc);}function v(_0x413895){const _0x51d2ab=_0x3c9708;var _0x132942=_(_0x413895,'string');return g(_0x132942)==_0x51d2ab(0x103)?_0x132942:_0x132942+'';}function y(_0x3e7924,_0x2377f5,_0x1b9b8b){const _0x3457e0=_0x3c9708;return(_0x2377f5=v(_0x2377f5))in _0x3e7924?Object[_0x3457e0(0x36a)](_0x3e7924,_0x2377f5,{'value':_0x1b9b8b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3e7924[_0x2377f5]=_0x1b9b8b,_0x3e7924;}function b(_0x925c58,_0x378875){return function(_0xa05a80,_0x2467ab){_0x378875(_0xa05a80,_0x2467ab,_0x925c58);};}function x(_0x57800a,_0x1965df,_0x371b03,_0x272124){const _0x958882=_0x3c9708;var _0x43a09e=arguments[_0x958882(0x29b)],_0x29569e=_0x43a09e<0x3?_0x1965df:_0x272124===null?_0x272124=Object['getOwnPropertyDescriptor'](_0x1965df,_0x371b03):_0x272124,_0xf32a3;if(typeof Reflect==_0x958882(0x2b4)&&typeof Reflect[_0x958882(0x22d)]==_0x958882(0x2e6))_0x29569e=Reflect[_0x958882(0x22d)](_0x57800a,_0x1965df,_0x371b03,_0x272124);else{for(var _0x27a2df=_0x57800a[_0x958882(0x29b)]-0x1;_0x27a2df>=0x0;_0x27a2df--)(_0xf32a3=_0x57800a[_0x27a2df])&&(_0x29569e=(_0x43a09e<0x3?_0xf32a3(_0x29569e):_0x43a09e>0x3?_0xf32a3(_0x1965df,_0x371b03,_0x29569e):_0xf32a3(_0x1965df,_0x371b03))||_0x29569e);}return _0x43a09e>0x3&&_0x29569e&&Object['defineProperty'](_0x1965df,_0x371b03,_0x29569e),_0x29569e;}function S(_0x252267,_0x311114){const _0xf14159=_0x3c9708;return(_0x252267==null?void 0x0:_0x252267[_0xf14159(0x1ab)])===(_0x311114==null?void 0x0:_0x311114[_0xf14159(0x1ab)])&&(_0x252267==null?void 0x0:_0x252267[_0xf14159(0x2c5)])===(_0x311114==null?void 0x0:_0x311114['section'])&&(_0x252267==null?void 0x0:_0x252267[_0xf14159(0x2bd)])===(_0x311114==null?void 0x0:_0x311114[_0xf14159(0x2bd)])&&(_0x252267==null?void 0x0:_0x252267[_0xf14159(0x2db)])===(_0x311114==null?void 0x0:_0x311114[_0xf14159(0x2db)])&&(_0x252267==null?void 0x0:_0x252267[_0xf14159(0x2fb)])===(_0x311114==null?void 0x0:_0x311114[_0xf14159(0x2fb)]);}function C(_0x3b5095,_0x4a84d4){const _0x399111=_0x3c9708;return(_0x3b5095==null?void 0x0:_0x3b5095[_0x399111(0x359)])===_0x4a84d4[_0x399111(0x359)]&&_0x3b5095['subUnitId']===_0x4a84d4[_0x399111(0x29a)]&&_0x3b5095[_0x399111(0x22b)]===_0x4a84d4[_0x399111(0x22b)]&&_0x3b5095[_0x399111(0x37a)]===_0x4a84d4[_0x399111(0x37a)]&&_0x3b5095[_0x399111(0x267)]===_0x4a84d4[_0x399111(0x267)]&&S(_0x3b5095[_0x399111(0x1c9)],_0x4a84d4['route']);}let w=class extends n[_0x3c9708(0x371)]{constructor(_0x45fd22,_0x3acc1d){const _0x336f24=_0x3c9708;super(),this['_elementStateService']=_0x45fd22,this[_0x336f24(0x218)]=_0x3acc1d,y(this,_0x336f24(0x27a),new r[(_0x336f24(0xef))](null)),y(this,_0x336f24(0x37b),this[_0x336f24(0x27a)][_0x336f24(0x389)]()),this[_0x336f24(0x39a)](this[_0x336f24(0xf7)]['state$'][_0x336f24(0x38b)](_0x233ec2=>this[_0x336f24(0x374)](_0x233ec2))),this['disposeWithMe'](this[_0x336f24(0x218)][_0x336f24(0x378)][_0x336f24(0x38b)](_0x18d911=>{const _0x51b2ee=_0x336f24;let _0x514095=this['getActiveSession']();_0x514095&&_0x18d911[_0x51b2ee(0xe7)](_0x1bd748=>_0x1bd748[_0x51b2ee(0x359)]===_0x514095['unitId']&&_0x1bd748[_0x51b2ee(0x29a)]===_0x514095[_0x51b2ee(0x29a)]&&_0x1bd748[_0x51b2ee(0x22b)]===_0x514095[_0x51b2ee(0x22b)])&&this[_0x51b2ee(0x2d4)]('elementRemoved');}));}[_0x3c9708(0x32b)](){const _0x1be068=_0x3c9708;this['close'](_0x1be068(0x32b)),this[_0x1be068(0x27a)]['complete'](),super[_0x1be068(0x32b)]();}[_0x3c9708(0x30b)](){const _0x2e7a90=_0x3c9708;return this['_activeSession$'][_0x2e7a90(0x21f)]();}[_0x3c9708(0x338)](_0x368537){const _0x172ba8=_0x3c9708;let _0x20220d={..._0x368537};C(this[_0x172ba8(0x30b)](),_0x20220d)||this[_0x172ba8(0x27a)][_0x172ba8(0x357)](_0x20220d);}[_0x3c9708(0x2d4)](_0x3e9f84){const _0x35531d=_0x3c9708;this[_0x35531d(0x30b)]()&&this[_0x35531d(0x27a)][_0x35531d(0x357)](null);}[_0x3c9708(0x374)](_0x2f0e4c){const _0x47b0b0=_0x3c9708;let _0x1b1219=this[_0x47b0b0(0x30b)]();if(!_0x1b1219)return;if(_0x2f0e4c[_0x47b0b0(0x196)]){this[_0x47b0b0(0x2d4)](_0x47b0b0(0x245));return;}if(!_0x2f0e4c[_0x47b0b0(0x263)]){this[_0x47b0b0(0x2d4)]('selectionChange');return;}if(_0x2f0e4c[_0x47b0b0(0x263)][_0x47b0b0(0x359)]!==_0x1b1219[_0x47b0b0(0x359)]){this[_0x47b0b0(0x2d4)](_0x47b0b0(0x2d9));return;}if(_0x2f0e4c['context'][_0x47b0b0(0x29a)]!==_0x1b1219['subUnitId']){this[_0x47b0b0(0x2d4)]('pageChange');return;}if(_0x2f0e4c[_0x47b0b0(0x1dc)][_0x47b0b0(0x29b)]!==0x1||_0x2f0e4c[_0x47b0b0(0x21a)]!==_0x1b1219['elementId']){this[_0x47b0b0(0x2d4)](_0x47b0b0(0x2d9));return;}let _0x5d0ece=this[_0x47b0b0(0x218)][_0x47b0b0(0x23a)](_0x1b1219['unitId'],_0x1b1219[_0x47b0b0(0x29a)],_0x1b1219[_0x47b0b0(0x22b)]);(!_0x5d0ece||_0x5d0ece['element'][_0x47b0b0(0x35b)]!==e[_0x47b0b0(0xe4)][_0x47b0b0(0x227)]||_0x5d0ece[_0x47b0b0(0x2b6)][_0x47b0b0(0x37a)]!==_0x1b1219['chartId'])&&this['close'](_0x47b0b0(0x2d9));}};w=x([b(0x0,t[_0x3c9708(0x16b)]),b(0x1,e[_0x3c9708(0x325)])],w);const T=(0x0,n[_0x3c9708(0x255)])('board-chart.ui.service');let E=class extends a['ChartUIService']{constructor(_0x1c1785,_0x57f6d7,_0x2c12b4,_0x20fcb4){const _0x1307d7=_0x3c9708;super(_0x20fcb4),this[_0x1307d7(0x207)]=_0x1c1785,this[_0x1307d7(0x276)]=_0x57f6d7,this[_0x1307d7(0x186)]=_0x2c12b4;}get[_0x3c9708(0x351)](){const _0x2dd199=_0x3c9708;return this[_0x2dd199(0x207)][_0x2dd199(0x351)];}get['activeRuntimeModel$'](){const _0x3ac359=_0x3c9708;return this[_0x3ac359(0x207)]['activeRuntimeModel$'];}get[_0x3c9708(0x25f)](){const _0x365eaf=_0x3c9708;return this[_0x365eaf(0x276)];}[_0x3c9708(0x110)](_0x4c1e74){const _0x1db10e=_0x3c9708;let _0x1fd692=this[_0x1db10e(0x207)][_0x1db10e(0x351)],_0xd2fe4e=_0x4c1e74[_0x1db10e(0x359)]??(_0x1fd692==null?void 0x0:_0x1fd692['unitId']),_0x7ac779=_0x4c1e74['chartId']??(_0x1fd692==null?void 0x0:_0x1fd692['chartId']);!_0xd2fe4e||!_0x7ac779||this[_0x1db10e(0x186)][_0x1db10e(0x347)](i[_0x1db10e(0xfe)]['id'],{..._0x4c1e74,'unitId':_0xd2fe4e,'chartId':_0x7ac779});}};E=x([b(0x0,(0x0,n[_0x3c9708(0x15e)])(i['BoardChartModelService'])),b(0x1,(0x0,n[_0x3c9708(0x15e)])(i[_0x3c9708(0xfb)])),b(0x2,n[_0x3c9708(0x1e4)]),b(0x3,(0x0,n[_0x3c9708(0x15e)])(a['ChartViewStateRegistry']))],E);const D=_0x3c9708(0x26a);function _0xce56(_0x251ad7,_0x60f63b){_0x251ad7=_0x251ad7-0xd3;const _0x5cd6a8=_0x5cd6();let _0xce56d4=_0x5cd6a8[_0x251ad7];return _0xce56d4;}function O(_0x1eb48c){const _0x4f22f3=_0x3c9708;_0x1eb48c[_0x4f22f3(0x2c2)]();}function ee(_0x20cf4f){const _0x20e891=_0x3c9708;let _0xebf322=(0x0,c[_0x20e891(0x201)])(n[_0x20e891(0x1e4)]),_0x27f735=(0x0,c['useDependency'])(n[_0x20e891(0x381)]),_0x1da496=(0x0,c['useDependency'])(i[_0x20e891(0x1fe)]),_0x4d67a4=(0x0,c[_0x20e891(0x201)])(w),_0x20284d=(0x0,a[_0x20e891(0x234)])(_0x20cf4f['typeOptions']),{extraProps:_0x59ecca}=_0x20cf4f;return(0x0,u[_0x20e891(0x175)])('div',{'className':(0x0,o[_0x20e891(0x29c)])(_0x20e891(0x15b),o[_0x20e891(0x1d3)]),'data-u-comp':_0x20e891(0x26c),'role':_0x20e891(0x165),'onMouseDown':O,'onPointerDown':O,'children':[(0x0,u[_0x20e891(0x203)])(o[_0x20e891(0x1d9)],{'aria-label':_0x27f735['t']('boards-chart-ui.common.chartType'),'className':_0x20e891(0x35f),'value':_0x20284d[_0x20e891(0x2a9)],'options':_0x20cf4f[_0x20e891(0x2f7)],'onChange':_0x3adab4=>{const _0x7d4c8a=_0x20e891;_0x1da496[_0x7d4c8a(0x137)](_0x59ecca[_0x7d4c8a(0x359)],_0x59ecca[_0x7d4c8a(0x37a)]),_0x20284d[_0x7d4c8a(0x217)](_0x3adab4);}}),(0x0,u[_0x20e891(0x203)])(o[_0x20e891(0x2c8)],{'orientation':_0x20e891(0x37d)}),(0x0,u[_0x20e891(0x203)])(o[_0x20e891(0x328)],{'size':_0x20e891(0x183),'variant':_0x20e891(0x22c),'type':'button','aria-label':_0x27f735['t'](_0x20e891(0x111)),'title':_0x27f735['t'](_0x20e891(0x111)),'data-toolbar-item':_0x20e891(0xe9),'onClick':()=>{const _0xd2e0f7=_0x20e891;_0x4d67a4['open']({'chartId':_0x59ecca[_0xd2e0f7(0x37a)],'elementId':_0x59ecca[_0xd2e0f7(0x22b)],'source':'quickToolbar','subUnitId':_0x59ecca[_0xd2e0f7(0x29a)],'unitId':_0x59ecca[_0xd2e0f7(0x359)]});},'children':(0x0,u[_0x20e891(0x203)])(s[_0x20e891(0x209)],{})}),(0x0,u[_0x20e891(0x203)])(o['Button'],{'size':_0x20e891(0x183),'variant':_0x20e891(0x22c),'type':_0x20e891(0x32a),'aria-label':_0x27f735['t']('boards-chart-ui.common.deleteChart'),'title':_0x27f735['t'](_0x20e891(0x124)),'data-toolbar-item':_0x20e891(0x350),'onClick':()=>_0xebf322['executeCommand'](t['BoardDeleteSelectionOperation']['id']),'children':(0x0,u[_0x20e891(0x203)])(s[_0x20e891(0xd4)],{})})]});}function te(_0x47076f){const _0x4b8368=_0x3c9708;let _0x4dc24d=(0x0,c['useDependency'])(n[_0x4b8368(0xe6)]),_0x57e096=(0x0,c[_0x4b8368(0x201)])(n['IUniverInstanceService']),_0x4bd75a=(0x0,c[_0x4b8368(0x201)])(n[_0x4b8368(0x381)]),_0x3a14b8=(0x0,c[_0x4b8368(0x201)])(i['BoardChartModelService']),_0x33da6e=(0x0,c['useDependency'])(T),_0x50517b=(0x0,l['useMemo'])(()=>_0x3a14b8[_0x4b8368(0x117)](_0x47076f[_0x4b8368(0x359)],_0x47076f[_0x4b8368(0x37a)]),[_0x47076f['chartId'],_0x47076f[_0x4b8368(0x359)],_0x3a14b8]),_0xbca000=(0x0,l[_0x4b8368(0x166)])(()=>{const _0xb4685a=_0x4b8368;let _0x135ca9=_0x57e096['getUnit'](_0x47076f[_0xb4685a(0x359)],n[_0xb4685a(0x20b)][_0xb4685a(0x367)]);return!_0x50517b||!_0x135ca9?null:new a[(_0xb4685a(0x20a))](_0x50517b['model'],new i[(_0xb4685a(0x387))]({'unitId':_0x47076f[_0xb4685a(0x359)],'pageId':_0x47076f['subUnitId'],'chartId':_0x47076f[_0xb4685a(0x37a)],'elementId':_0x47076f['elementId'],'boardModel':_0x135ca9,'injector':_0x4dc24d}));},[_0x47076f,_0x4dc24d,_0x50517b,_0x57e096]),_0x49a175=(0x0,l[_0x4b8368(0x166)])(()=>(0x0,a[_0x4b8368(0x19e)])(a[_0x4b8368(0x2f8)][_0x4b8368(0x2cc)](_0x21e584=>({..._0x21e584,'label':_0x4bd75a['t'](_0x4b8368(0x12f)+_0x21e584['labelId'])}))),[_0x4bd75a]);return!_0x50517b||!_0xbca000?null:(0x0,u[_0x4b8368(0x203)])(a[_0x4b8368(0x313)],{'chartUIService':_0x33da6e,'hostAdapter':_0xbca000,'children':(0x0,u['jsx'])(ee,{'extraProps':_0x47076f,'typeOptions':_0x49a175})});}function ne(_0x1864e9){const _0x239a73=_0x3c9708;let _0x54c218=_0x1864e9[_0x239a73(0x34e)][_0x239a73(0x1c2)];return _0x54c218?(0x0,u['jsx'])(te,{..._0x54c218}):null;}let k=class extends n[_0x3c9708(0x31f)]{constructor(_0x36443c,_0x21a093,_0x1a8687,_0x1751fd,_0x32efe5,_0x1579c6,_0x51f860){const _0x31ac31=_0x3c9708;super(),this[_0x31ac31(0x24f)]=_0x36443c,this['_boardCanvasPopManagerService']=_0x21a093,this[_0x31ac31(0x218)]=_0x1a8687,this[_0x31ac31(0xf7)]=_0x1751fd,this[_0x31ac31(0x2a7)]=_0x32efe5,this['_editSessionService']=_0x1579c6,this[_0x31ac31(0x233)]=_0x51f860,y(this,_0x31ac31(0x27d),null),y(this,'_popupSelectionKey',null),this[_0x31ac31(0x1ca)]();}[_0x3c9708(0x32b)](){const _0x57ed69=_0x3c9708;this[_0x57ed69(0x112)](),super[_0x57ed69(0x32b)]();}['_init'](){const _0x1add8a=_0x3c9708;let _0x45529f=this[_0x1add8a(0x24f)][_0x1add8a(0x342)][_0x1add8a(0x310)]();this[_0x1add8a(0x39a)]((0x0,n['toDisposable'])(_0x45529f['createControl$'][_0x1add8a(0x2ee)]((0x0,r[_0x1add8a(0x1c0)])(this[_0x1add8a(0x1f5)]))[_0x1add8a(0x38b)](()=>{const _0x17005a=_0x1add8a;this[_0x17005a(0x2dc)]();}))),this[_0x1add8a(0x39a)]((0x0,n[_0x1add8a(0x341)])(_0x45529f['clearControl$'][_0x1add8a(0x2ee)]((0x0,r[_0x1add8a(0x1c0)])(this[_0x1add8a(0x1f5)]))[_0x1add8a(0x38b)](()=>{const _0x4854c3=_0x1add8a;this[_0x4854c3(0x1b6)]();}))),this[_0x1add8a(0x39a)]((0x0,n[_0x1add8a(0x341)])(_0x45529f[_0x1add8a(0x206)]['pipe']((0x0,r['takeUntil'])(this[_0x1add8a(0x1f5)]))['subscribe'](()=>{const _0x4dde2e=_0x1add8a;this[_0x4dde2e(0x112)]();}))),this[_0x1add8a(0x39a)]((0x0,n[_0x1add8a(0x341)])(_0x45529f[_0x1add8a(0x19b)][_0x1add8a(0x2ee)]((0x0,r[_0x1add8a(0x1c0)])(this['dispose$']))[_0x1add8a(0x38b)](()=>{setTimeout(()=>this['_showPopupForSelection'](),0x0);}))),this['disposeWithMe']((0x0,n['toDisposable'])(this['_elementStateService'][_0x1add8a(0x1e3)][_0x1add8a(0x2ee)]((0x0,r[_0x1add8a(0x1c0)])(this[_0x1add8a(0x1f5)]))[_0x1add8a(0x38b)](()=>{const _0x20f353=_0x1add8a;setTimeout(()=>this[_0x20f353(0x2dc)](),0x0);}))),this['disposeWithMe']((0x0,n[_0x1add8a(0x341)])(this['_uiStateService'][_0x1add8a(0x1e3)][_0x1add8a(0x2ee)]((0x0,r['takeUntil'])(this['dispose$']))[_0x1add8a(0x38b)](()=>{const _0x52fd3c=_0x1add8a;setTimeout(()=>this[_0x52fd3c(0x2dc)](),0x0);}))),this[_0x1add8a(0x39a)]((0x0,n[_0x1add8a(0x341)])(this[_0x1add8a(0x2b9)]['activeSession$']['pipe']((0x0,r[_0x1add8a(0x1c0)])(this[_0x1add8a(0x1f5)]))[_0x1add8a(0x38b)](_0x32f844=>{const _0x56c4b3=_0x1add8a;if(_0x32f844){this[_0x56c4b3(0x112)]();return;}setTimeout(()=>this['_showPopupForSelection'](),0x0);}))),this[_0x1add8a(0x39a)]((0x0,n[_0x1add8a(0x341)])(this[_0x1add8a(0x233)][_0x1add8a(0x1d8)]['pipe']((0x0,r[_0x1add8a(0x1c0)])(this['dispose$']))[_0x1add8a(0x38b)](_0x4da0e4=>{const _0x515f47=_0x1add8a;if(_0x4da0e4){this[_0x515f47(0x112)]();return;}setTimeout(()=>this[_0x515f47(0x2dc)](),0x0);})));}[_0x3c9708(0x112)](){const _0x455357=_0x3c9708;var _0x588538;(_0x588538=this['_popupDisposable'])==null||_0x588538[_0x455357(0x32b)](),this[_0x455357(0x27d)]=null,this[_0x455357(0x16c)]=null;}[_0x3c9708(0x1b6)](){setTimeout(()=>{const _0x5f0d5a=_0xce56;this['_isPopupSelectionStillActive']()||this[_0x5f0d5a(0x112)]();},0x0);}[_0x3c9708(0x28e)](){const _0x21ca70=_0x3c9708;let _0x3023f7=this[_0x21ca70(0xf7)][_0x21ca70(0x1bf)]();return!_0x3023f7['context']||_0x3023f7['selectedIds'][_0x21ca70(0x29b)]!==0x1?!0x1:this[_0x21ca70(0x16c)]===this[_0x21ca70(0x25d)](_0x3023f7[_0x21ca70(0x263)][_0x21ca70(0x359)],_0x3023f7[_0x21ca70(0x263)][_0x21ca70(0x29a)],_0x3023f7[_0x21ca70(0x1dc)][0x0]);}[_0x3c9708(0x25d)](_0x3e7882,_0x48b55d,_0x9d507b){return _0x3e7882+':'+_0x48b55d+':'+_0x9d507b;}[_0x3c9708(0x2dc)](){const _0x361879=_0x3c9708;if(this[_0x361879(0x233)]['isInteractionSurfaceActive']||this[_0x361879(0x2b9)][_0x361879(0x30b)]()){this[_0x361879(0x112)]();return;}let _0x54d588=this['_elementStateService'][_0x361879(0x1bf)](),_0x312220=this[_0x361879(0x2a7)]['getState']();if(_0x54d588[_0x361879(0x196)]||_0x312220[_0x361879(0x1d1)]||_0x312220[_0x361879(0x2d7)]!==null&&_0x312220[_0x361879(0x2d7)]!==e['BoardToolType']['Select']||!_0x54d588[_0x361879(0x263)]||_0x54d588[_0x361879(0x263)][_0x361879(0x359)]!==this[_0x361879(0x24f)]['unitId']||_0x54d588['selectedIds'][_0x361879(0x29b)]!==0x1||_0x54d588[_0x361879(0x21a)]==null){this['_clearPopup']();return;}let _0x43718d=this[_0x361879(0x218)][_0x361879(0x23a)](_0x54d588[_0x361879(0x263)][_0x361879(0x359)],_0x54d588[_0x361879(0x263)][_0x361879(0x29a)],_0x54d588[_0x361879(0x21a)]);if(!_0x43718d||_0x43718d[_0x361879(0x2b6)]['type']!==e[_0x361879(0xe4)][_0x361879(0x227)]){this[_0x361879(0x112)]();return;}let _0xc14545=this['_resolveElementObject'](_0x43718d);if(!_0xc14545){this['_clearPopup']();return;}let _0x5f3d94=this[_0x361879(0x25d)](_0x43718d[_0x361879(0x359)],_0x43718d[_0x361879(0x29a)],_0x43718d[_0x361879(0x22b)]);this['_popupDisposable']&&this['_popupSelectionKey']===_0x5f3d94||(this[_0x361879(0x112)](),this[_0x361879(0x27d)]=this[_0x361879(0x39a)](this['_boardCanvasPopManagerService'][_0x361879(0x14d)](_0x43718d['unitId'],_0x43718d[_0x361879(0x29a)],_0xc14545,{'componentKey':D,'direction':_0x361879(0x29e),'offset':[0x0,0x24],'anchorBoundResolver':t[_0x361879(0x31b)],'extraProps':{'unitId':_0x43718d[_0x361879(0x359)],'subUnitId':_0x43718d[_0x361879(0x29a)],'elementId':_0x43718d['elementId'],'chartId':_0x43718d[_0x361879(0x2b6)][_0x361879(0x37a)]}})),this['_popupSelectionKey']=_0x5f3d94);}[_0x3c9708(0x353)](_0x3fd82d){const _0x3a3f11=_0x3c9708;var _0x589908;let _0x2b1a6c=(0x0,t[_0x3a3f11(0x33e)])(_0x3fd82d[_0x3a3f11(0x359)],_0x3fd82d[_0x3a3f11(0x22b)]),_0x233096=this[_0x3a3f11(0x24f)][_0x3a3f11(0x342)];return((_0x589908=_0x233096[_0x3a3f11(0x2b8)])==null?void 0x0:_0x589908[_0x3a3f11(0x1fa)](_0x233096,_0x2b1a6c))??_0x233096[_0x3a3f11(0x1eb)](_0x2b1a6c)??null;}};k=x([b(0x1,(0x0,n[_0x3c9708(0x15e)])(t['BoardCanvasPopManagerService'])),b(0x2,e[_0x3c9708(0x325)]),b(0x3,t['IBoardElementStateService']),b(0x4,t[_0x3c9708(0x213)]),b(0x5,(0x0,n[_0x3c9708(0x15e)])(w)),b(0x6,(0x0,n['Inject'])(t[_0x3c9708(0xfc)]))],k);let A=class extends n['RxDisposable']{constructor(_0x3adca9,_0x499367,_0x38a6,_0x442682,_0x1e80e7,_0x61870c){const _0x394b9f=_0x3c9708;super(),this[_0x394b9f(0x24f)]=_0x3adca9,this[_0x394b9f(0x1d6)]=_0x499367,this['_boardElementService']=_0x38a6,this['_elementStateService']=_0x442682,this[_0x394b9f(0x2a7)]=_0x1e80e7,this[_0x394b9f(0x2b9)]=_0x61870c,y(this,_0x394b9f(0x2ea),!0x1),y(this,_0x394b9f(0x322),null),this['_init']();}[_0x3c9708(0x1ca)](){const _0x2aec21=_0x3c9708;let {unitId:_0x25da78}=this['_renderContext'],_0x3e00fc=this['_instanceService'][_0x2aec21(0x26d)](_0x25da78,n[_0x2aec21(0x20b)]['UNIVER_BOARD']);this[_0x2aec21(0x39a)]((0x0,n[_0x2aec21(0x341)])(()=>{const _0x43a0f0=_0x2aec21;var _0x39621c;return(_0x39621c=this[_0x43a0f0(0x322)])==null?void 0x0:_0x39621c[_0x43a0f0(0x32b)]();})),_0x3e00fc&&(this['_scheduleAttachObjectDoubleClicks'](_0x3e00fc),this[_0x2aec21(0x39a)](this['_boardElementService'][_0x2aec21(0x221)][_0x2aec21(0x38b)](_0x436986=>{const _0x3d8fa7=_0x2aec21;_0x436986['some'](_0x51e143=>_0x51e143[_0x3d8fa7(0x359)]===_0x25da78)&&this[_0x3d8fa7(0x152)](_0x3e00fc);})),this['disposeWithMe'](this[_0x2aec21(0x218)]['elementUpdate$'][_0x2aec21(0x38b)](_0x327729=>{const _0x545936=_0x2aec21;_0x327729[_0x545936(0xe7)](_0x1cd4eb=>_0x1cd4eb[_0x545936(0x359)]===_0x25da78)&&this[_0x545936(0x152)](_0x3e00fc);})),this[_0x2aec21(0x39a)](this['_boardElementService']['elementRemove$'][_0x2aec21(0x38b)](_0xdd13e4=>{const _0x4d996a=_0x2aec21;_0xdd13e4[_0x4d996a(0xe7)](_0x3f1275=>_0x3f1275['unitId']===_0x25da78)&&this['_scheduleAttachObjectDoubleClicks'](_0x3e00fc);})),this[_0x2aec21(0x39a)](this['_elementStateService'][_0x2aec21(0x1e3)][_0x2aec21(0x38b)](_0x2b1566=>{const _0x122239=_0x2aec21;var _0x43d0b8;((_0x43d0b8=_0x2b1566[_0x122239(0x263)])==null?void 0x0:_0x43d0b8[_0x122239(0x359)])===_0x25da78&&this[_0x122239(0x152)](_0x3e00fc);})));}[_0x3c9708(0x152)](_0x3ae14b){const _0x1346cb=_0x3c9708;this[_0x1346cb(0x2ea)]||(this['_attachScheduled']=!0x0,Promise['resolve']()[_0x1346cb(0x390)](()=>this[_0x1346cb(0x1a8)](_0x3ae14b)));}[_0x3c9708(0x1a8)](_0x115a37){const _0x1ac701=_0x3c9708;var _0x152c9e;this[_0x1ac701(0x2ea)]=!0x1;let {scene:_0x12c82c,unitId:_0x5ac342}=this[_0x1ac701(0x24f)],_0x245224=_0x115a37['getActivePageId'](),_0x5d203a=this[_0x1ac701(0x218)][_0x1ac701(0x1bb)](_0x5ac342,_0x245224),_0x56fdf5=new n[(_0x1ac701(0x1dd))]();(_0x152c9e=this[_0x1ac701(0x322)])==null||_0x152c9e['dispose'](),this[_0x1ac701(0x322)]=_0x56fdf5,_0x5d203a[_0x1ac701(0x1cd)](_0x3bcecd=>{const _0x211664=_0x1ac701;var _0x500d2c;let _0x13cc70=this[_0x211664(0x218)][_0x211664(0x23a)](_0x5ac342,_0x245224,_0x3bcecd);if(!_0x13cc70||_0x13cc70['element'][_0x211664(0x35b)]!==e['BoardElementType'][_0x211664(0x227)])return;let _0x18bc19=(0x0,t['getBoardElementRenderObjectKey'])(_0x5ac342,_0x3bcecd),_0x1d1dc3=((_0x500d2c=_0x12c82c[_0x211664(0x2b8)])==null?void 0x0:_0x500d2c['call'](_0x12c82c,_0x18bc19))??_0x12c82c['getObject'](_0x18bc19);_0x1d1dc3&&_0x56fdf5['add']((0x0,n[_0x211664(0x341)])(_0x1d1dc3[_0x211664(0x187)]['subscribeEvent']((_0x51a51e,_0x43c23f)=>{const _0x49f262=_0x211664;this[_0x49f262(0x261)](_0x13cc70,_0x51a51e,_0x43c23f);})));});}[_0x3c9708(0x261)](_0x4b075c,_0x331470,_0x583221){const _0x2cd7e2=_0x3c9708;var _0x3944f2;if(this['_uiStateService'][_0x2cd7e2(0x180)]()['pendingInsert']||this[_0x2cd7e2(0xf7)][_0x2cd7e2(0x1bf)]()[_0x2cd7e2(0x196)]||_0x4b075c[_0x2cd7e2(0x2b6)][_0x2cd7e2(0x35b)]!==e[_0x2cd7e2(0xe4)][_0x2cd7e2(0x227)])return;let _0x2b1b69={'unitId':_0x4b075c[_0x2cd7e2(0x359)],'subUnitId':_0x4b075c['subUnitId']};this[_0x2cd7e2(0xf7)][_0x2cd7e2(0x18b)](_0x2b1b69,[_0x4b075c['elementId']],_0x4b075c[_0x2cd7e2(0x22b)]),this[_0x2cd7e2(0xf7)][_0x2cd7e2(0x235)](_0x2b1b69,null),this[_0x2cd7e2(0x2b9)][_0x2cd7e2(0x338)]({'chartId':_0x4b075c['element'][_0x2cd7e2(0x37a)],'elementId':_0x4b075c[_0x2cd7e2(0x22b)],'source':_0x2cd7e2(0x334),'subUnitId':_0x4b075c[_0x2cd7e2(0x29a)],'unitId':_0x4b075c[_0x2cd7e2(0x359)]}),_0x583221&&(_0x583221['skipNextObservers']=!0x0),_0x331470==null||(_0x3944f2=_0x331470[_0x2cd7e2(0xe1)])==null||_0x3944f2[_0x2cd7e2(0x1fa)](_0x331470);}};A=x([b(0x1,n[_0x3c9708(0x326)]),b(0x2,e[_0x3c9708(0x325)]),b(0x3,t['IBoardElementStateService']),b(0x4,t[_0x3c9708(0x213)]),b(0x5,(0x0,n[_0x3c9708(0x15e)])(w))],A);let j=class extends n['Disposable']{constructor(_0x554b90,_0x329a45,_0x19d422){const _0x43ee69=_0x3c9708;super(),this[_0x43ee69(0x276)]=_0x554b90,this[_0x43ee69(0x207)]=_0x329a45,this['_commandService']=_0x19d422;}[_0x3c9708(0x333)](_0x207f5e,_0x4564c2){const _0x1c7906=_0x3c9708;let _0x278127=this[_0x1c7906(0x276)][_0x1c7906(0x2a8)](_0x207f5e,_0x4564c2),_0x345ac5=_0x278127?this[_0x1c7906(0x276)][_0x1c7906(0x358)](_0x207f5e,_0x278127[_0x1c7906(0x1af)]):void 0x0;return!_0x278127||!_0x345ac5?null:{'chartId':_0x4564c2,'chartType':_0x278127[_0x1c7906(0x343)],'dataSource':_0x345ac5,'sharingCount':this[_0x1c7906(0x276)]['getDataSourceSharingCount'](_0x207f5e,_0x345ac5['id']),'unitId':_0x207f5e};}async[_0x3c9708(0x1a9)](_0x5aff9d){const _0x4db098=_0x3c9708;var _0x3de2ba;if(!this[_0x4db098(0x333)](_0x5aff9d['unitId'],_0x5aff9d[_0x4db098(0x37a)])||_0x5aff9d[_0x4db098(0x153)][_0x4db098(0x29b)]===0x0)return!0x1;let _0x53435b=(_0x3de2ba=this[_0x4db098(0x276)][_0x4db098(0x2a8)](_0x5aff9d['unitId'],_0x5aff9d[_0x4db098(0x37a)]))==null?void 0x0:_0x3de2ba[_0x4db098(0x343)];if(_0x53435b===void 0x0)return!0x1;let _0x2f243f=(0x0,a[_0x4db098(0x32d)])(_0x53435b,_0x5aff9d[_0x4db098(0x153)]);if(!_0x2f243f['ok'])return!0x1;let _0x23efd3=await this['changeDataSource'](_0x5aff9d[_0x4db098(0x359)],_0x5aff9d[_0x4db098(0x37a)],{'values':_0x2f243f['values']});return _0x23efd3&&this[_0x4db098(0x207)][_0x4db098(0x391)](_0x5aff9d[_0x4db098(0x359)],_0x5aff9d[_0x4db098(0x37a)]),!!_0x23efd3;}[_0x3c9708(0x320)](_0x31b5b1,_0x1dc985,_0x5afce0){const _0x15f805=_0x3c9708;return this[_0x15f805(0x186)][_0x15f805(0x347)](i['ChangeBoardChartDataSourceCommand']['id'],{'unitId':_0x31b5b1,'chartId':_0x1dc985,'dataSource':_0x5afce0});}};j=x([b(0x0,(0x0,n['Inject'])(i['BoardChartResourceService'])),b(0x1,(0x0,n[_0x3c9708(0x15e)])(i[_0x3c9708(0x1fe)])),b(0x2,n[_0x3c9708(0x1e4)])],j);const re=_0x3c9708(0x281);function ie(_0x1fd8b5){const _0x548d60=_0x3c9708;let _0x5f32f4=(0x0,c[_0x548d60(0x201)])(j),_0x229e64=(0x0,c[_0x548d60(0x201)])(n[_0x548d60(0x381)]),_0x5d498d=_0x5f32f4[_0x548d60(0x333)](_0x1fd8b5[_0x548d60(0x359)],_0x1fd8b5[_0x548d60(0x37a)]),[_0x3791bd,_0xb91a98]=(0x0,l[_0x548d60(0x219)])(()=>(0x0,d[_0x548d60(0x2ed)])(_0x5d498d==null?void 0x0:_0x5d498d['dataSource'])?_0x5d498d[_0x548d60(0x249)]['values'][_0x548d60(0x2cc)](_0x4931d8=>[..._0x4931d8]):[]),[_0x19bab5,_0x45316f]=(0x0,l[_0x548d60(0x219)])(()=>(0x0,d['isReferencedChartDataSource'])(_0x5d498d==null?void 0x0:_0x5d498d[_0x548d60(0x249)])?_0x548d60(0x392):'inline'),[_0x139dcd,_0x4d9609]=(0x0,l[_0x548d60(0x219)])(null),[_0x164b0f,_0x1e44de]=(0x0,l[_0x548d60(0x219)])(null),_0x57fa32={[a[_0x548d60(0x340)][_0x548d60(0x319)]]:_0x229e64['t'](_0x548d60(0x160)),[a[_0x548d60(0x340)][_0x548d60(0x19f)]]:_0x229e64['t'](_0x548d60(0x21c)),[a[_0x548d60(0x340)][_0x548d60(0x1e9)]]:_0x229e64['t'](_0x548d60(0x24e))};if(!_0x5d498d)return(0x0,u[_0x548d60(0x203)])(_0x548d60(0x1b1),{'className':_0x548d60(0x251),'children':_0x229e64['t']('boards-chart-ui.dataEditor.unavailable')});let _0x299e7f=async _0x7a1808=>{const _0x2ae7e1=_0x548d60;var _0x330805;if(_0x19bab5==='referenced'){var _0x427087;if(!_0x139dcd)return;if(!await _0x5f32f4['changeDataSource'](_0x1fd8b5['unitId'],_0x1fd8b5[_0x2ae7e1(0x37a)],_0x139dcd)){_0x1e44de(_0x229e64['t'](_0x2ae7e1(0x18a)));return;}_0x1e44de(null),(_0x427087=_0x1fd8b5[_0x2ae7e1(0x24d)])==null||_0x427087[_0x2ae7e1(0x1fa)](_0x1fd8b5);return;}let _0x4b7a04=(0x0,a['tryPrepareInlineChartData'])(_0x5d498d[_0x2ae7e1(0x343)],_0x3791bd);if(!_0x4b7a04['ok']){_0x1e44de(_0x57fa32[_0x4b7a04[_0x2ae7e1(0x13a)][_0x2ae7e1(0xf5)]]);return;}if(!await _0x5f32f4[_0x2ae7e1(0x1a9)]({'chartId':_0x1fd8b5['chartId'],'name':_0x5d498d['dataSource'][_0x2ae7e1(0x31e)],'unitId':_0x1fd8b5[_0x2ae7e1(0x359)],'updateShared':_0x7a1808,'values':_0x4b7a04[_0x2ae7e1(0x153)]})){_0x1e44de(_0x229e64['t'](_0x2ae7e1(0x18a)));return;}_0x1e44de(null),(_0x330805=_0x1fd8b5['onClose'])==null||_0x330805['call'](_0x1fd8b5);};return(0x0,u[_0x548d60(0x175)])('div',{'className':'univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4\x20univer-p-1','children':[(0x0,u[_0x548d60(0x203)])(a[_0x548d60(0x352)],{'mode':_0x19bab5,'initialSource':(0x0,d['isReferencedChartDataSource'])(_0x5d498d['dataSource'])?_0x5d498d[_0x548d60(0x249)][_0x548d60(0x267)]:void 0x0,'inlineContent':(0x0,u[_0x548d60(0x203)])(a['ChartInlineTableEditor'],{'values':_0x3791bd,'parsePastedText':d[_0x548d60(0x356)],'onChange':_0xb91a98}),'onModeChange':_0x191b09=>{_0x45316f(_0x191b09),_0x4d9609(null);},'onPreviewChange':(_0x3cb802,_0x543351)=>_0x4d9609(_0x3cb802&&_0x543351[_0x548d60(0x327)]===d[_0x548d60(0x28b)][_0x548d60(0x113)]?{'source':_0x3cb802}:null)}),_0x164b0f&&(0x0,u[_0x548d60(0x203)])(_0x548d60(0x1b1),{'className':_0x548d60(0x10e),'children':_0x164b0f}),(0x0,u['jsxs'])('div',{'className':_0x548d60(0x222),'children':[_0x1fd8b5[_0x548d60(0x24d)]&&(0x0,u[_0x548d60(0x203)])(o['Button'],{'type':_0x548d60(0x32a),'variant':_0x548d60(0x32c),'onClick':_0x1fd8b5[_0x548d60(0x24d)],'children':_0x229e64['t']('boards-chart-ui.common.cancel')}),(0x0,u['jsx'])(o[_0x548d60(0x328)],{'type':_0x548d60(0x32a),'variant':_0x548d60(0x2ca),'disabled':_0x19bab5===_0x548d60(0x392)&&!_0x139dcd,'onClick':()=>_0x299e7f(!0x0),'children':_0x229e64['t'](_0x548d60(0x345))})]})]});}const ae={'id':_0x3c9708(0x360),'type':n[_0x3c9708(0x108)][_0x3c9708(0x2a4)],'handler':(_0x1c44dc,_0x36b84a)=>{const _0x1dfc6d=_0x3c9708;if(!_0x36b84a||!_0x1c44dc[_0x1dfc6d(0x34b)](j)[_0x1dfc6d(0x333)](_0x36b84a['unitId'],_0x36b84a[_0x1dfc6d(0x37a)])||!_0x1c44dc[_0x1dfc6d(0x34b)](c[_0x1dfc6d(0xd5)])[_0x1dfc6d(0x34b)](_0x1dfc6d(0x281)))return!0x1;let _0x4e6fa0=_0x1c44dc['get'](c[_0x1dfc6d(0x10a)]),_0x4d9c29=_0x1c44dc[_0x1dfc6d(0x34b)](n[_0x1dfc6d(0x381)]),_0x4cb492=null,_0x4c9e37=()=>{const _0x260b75=_0x1dfc6d;_0x4cb492==null||_0x4cb492[_0x260b75(0x32b)](),_0x4cb492=null;};return _0x4cb492=_0x4e6fa0[_0x1dfc6d(0x338)]({'id':_0x1dfc6d(0x26f),'title':{'title':_0x4d9c29['t'](_0x1dfc6d(0x348))},'width':_0x1dfc6d(0x33b),'draggable':!0x1,'mask':!0x0,'maskClosable':!0x1,'children':{'label':{'name':re,'props':{..._0x36b84a,'onClose':_0x4c9e37}}},'onClose':_0x4c9e37}),!0x0;}},M='board-chart.edit-panel',N={'axis':{...a[_0x3c9708(0x2b1)],'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'legend':a[_0x3c9708(0x1b2)],'lineAndArea':a[_0x3c9708(0x266)],'pareto':a['DEFAULT_CHART_PARETO_VALUES'],'funnel':a[_0x3c9708(0x1a5)],'heatmap':a[_0x3c9708(0xf4)],'indicatorLine':a['DEFAULT_CHART_INDICATOR_LINE_VALUES'],'pie':{...a[_0x3c9708(0xed)],'doughnutHole':0x0,'pieHole':0x0},'relation':{...a[_0x3c9708(0xd8)],'useValueAsSymbolSize':!0x0},'radar':a[_0x3c9708(0x25a)],'series':{...a[_0x3c9708(0x299)],'radarFillOpacity':0x1,'rightAxis':{'ltr':!0x1,'rtl':!0x1}},'style':a[_0x3c9708(0x35d)],'titles':a['DEFAULT_CHART_TITLE_VALUES'],'trendline':a['DEFAULT_CHART_TRENDLINE_VALUES'],'waterfall':{...a[_0x3c9708(0x273)],'useSubtotal':!0x1},'waterfallStyle':a['DEFAULT_CHART_WATERFALL_STYLE_VALUES'],'wordCloud':a[_0x3c9708(0x15c)]},oe=[d['ChartTypeBits'][_0x3c9708(0x35e)],d[_0x3c9708(0x1b9)][_0x3c9708(0x138)],d['ChartTypeBits']['WordCloud'],d[_0x3c9708(0x1b9)]['Scatter'],d['ChartTypeBits']['Relation'],d[_0x3c9708(0x1b9)]['Sankey'],d[_0x3c9708(0x1b9)][_0x3c9708(0x1b0)],d['ChartTypeBits'][_0x3c9708(0x262)],d[_0x3c9708(0x1b9)][_0x3c9708(0x21d)],d[_0x3c9708(0x1b9)]['Histogram'],d['ChartTypeBits']['Treemap'],d[_0x3c9708(0x1b9)][_0x3c9708(0x1ac)],d['ChartTypeBits'][_0x3c9708(0x147)],d[_0x3c9708(0x1b9)][_0x3c9708(0xf3)]];function se(_0x3e56ea){const _0x5cdeec=_0x3c9708;let _0xbbdfb2=(0x0,c['useDependency'])(n[_0x5cdeec(0x381)]);return(0x0,u[_0x5cdeec(0x175)])(_0x5cdeec(0x1b1),{'children':[(0x0,u['jsx'])(a[_0x5cdeec(0x2c4)],{'title':_0xbbdfb2['t'](_0x5cdeec(0x140))}),(0x0,u[_0x5cdeec(0x203)])(o['Button'],{'type':_0x5cdeec(0x32a),'variant':'default','className':'univer-w-full\x20univer-justify-start','onClick':_0x3e56ea['onEditData'],'children':_0xbbdfb2['t']('boards-chart-ui.common.editData')})]});}function ce(){const _0x2e82e8=_0x3c9708;let _0xd711ce=(0x0,a[_0x2e82e8(0x317)])();return(0x0,u[_0x2e82e8(0x203)])(a['ChartGradientFillField'],{'visible':oe['every'](_0x5a0ebc=>!d[_0x2e82e8(0x33f)][_0x2e82e8(0x34f)](_0xd711ce,_0x5a0ebc))});}function le(_0xaaaeb){const _0x2d6677=_0x3c9708;return(0x0,u[_0x2d6677(0x175)])(a[_0x2d6677(0x277)],{'id':_0xaaaeb['id'],'children':[(0x0,u[_0x2d6677(0x203)])(a[_0x2d6677(0x344)],{'children':_0xaaaeb[_0x2d6677(0x397)]}),(0x0,u[_0x2d6677(0x203)])(a[_0x2d6677(0x25c)],{'children':_0xaaaeb[_0x2d6677(0x246)]})]});}function ue(_0x458503,_0x22a9ba){const _0x3cc49e=_0x3c9708;let _0x117b52=_0x458503===d[_0x3cc49e(0x1b9)]['WordCloud'],_0xa500cf=d['chartBitsUtils']['baseOn'](_0x458503,d[_0x3cc49e(0x1b9)][_0x3cc49e(0x1ed)]),_0x2c60ff=_0x458503===d['ChartTypeBits']['Funnel'],_0x24b167=_0x458503===d[_0x3cc49e(0x1b9)]['Relation'],_0x27c7d7=_0x458503===d['ChartTypeBits'][_0x3cc49e(0x1b0)],_0x1ce3bc=d[_0x3cc49e(0x33f)][_0x3cc49e(0x34f)](_0x458503,d[_0x3cc49e(0x1b9)][_0x3cc49e(0xee)]),_0x3c5b99=_0x458503===d[_0x3cc49e(0x1b9)][_0x3cc49e(0x138)],_0x266155=_0x458503===d[_0x3cc49e(0x1b9)][_0x3cc49e(0x1c7)],_0x38a0d0=_0x458503===d[_0x3cc49e(0x1b9)]['Pareto'],_0x49b46f=_0x458503===d[_0x3cc49e(0x1b9)][_0x3cc49e(0x21d)],_0x379bd2=_0x458503===d[_0x3cc49e(0x1b9)]['Histogram'],_0x35752c=_0x458503===d[_0x3cc49e(0x1b9)][_0x3cc49e(0x28a)],_0x72fdf1=_0x458503===d[_0x3cc49e(0x1b9)][_0x3cc49e(0x1ac)],_0x2ebf45=_0x458503===d[_0x3cc49e(0x1b9)][_0x3cc49e(0x147)],_0x3c8bea=_0x458503===d[_0x3cc49e(0x1b9)][_0x3cc49e(0xf3)],_0x35dd44=[a[_0x3cc49e(0x1db)][_0x3cc49e(0x163)],a[_0x3cc49e(0x1db)][_0x3cc49e(0x1df)]];return _0x117b52&&_0x35dd44[_0x3cc49e(0x302)](a[_0x3cc49e(0x1db)]['WordCloud']),(0x0,a[_0x3cc49e(0x1d7)])(_0x458503,a[_0x3cc49e(0x280)][_0x3cc49e(0x23e)])&&!_0xa500cf&&!_0x38a0d0&&_0x35dd44['push'](a[_0x3cc49e(0x1db)][_0x3cc49e(0x2ec)]),_0x266155&&_0x35dd44[_0x3cc49e(0x302)](a['ChartEditPanelSection'][_0x3cc49e(0x1ae)]),_0x38a0d0&&_0x35dd44[_0x3cc49e(0x302)](a['ChartEditPanelSection'][_0x3cc49e(0x2de)],a['ChartEditPanelSection'][_0x3cc49e(0x283)]),_0x1ce3bc&&_0x35dd44[_0x3cc49e(0x302)](a[_0x3cc49e(0x1db)][_0x3cc49e(0x38a)]),_0x3c5b99&&_0x35dd44[_0x3cc49e(0x302)](a['ChartEditPanelSection'][_0x3cc49e(0x138)]),_0x2c60ff&&_0x35dd44[_0x3cc49e(0x302)](a[_0x3cc49e(0x1db)][_0x3cc49e(0x1de)]),_0x27c7d7&&_0x35dd44[_0x3cc49e(0x302)](a[_0x3cc49e(0x1db)][_0x3cc49e(0x1b0)]),_0x24b167&&_0x35dd44[_0x3cc49e(0x302)](a[_0x3cc49e(0x1db)][_0x3cc49e(0x33a)]),(0x0,a[_0x3cc49e(0x247)])(_0x458503)&&_0x35dd44[_0x3cc49e(0x302)](a[_0x3cc49e(0x1db)][_0x3cc49e(0x18e)]),(0x0,a[_0x3cc49e(0x1d7)])(_0x458503,a[_0x3cc49e(0x280)]['Legend'])&&_0x35dd44[_0x3cc49e(0x302)](a[_0x3cc49e(0x1db)][_0x3cc49e(0x211)]),(0x0,a[_0x3cc49e(0x1d7)])(_0x458503,a[_0x3cc49e(0x280)]['Axes'])&&(_0x35dd44[_0x3cc49e(0x302)](a[_0x3cc49e(0x1db)]['HorizontalAxis'],a[_0x3cc49e(0x1db)]['VerticalAxis']),_0x22a9ba&&_0x35dd44[_0x3cc49e(0x302)](a['ChartEditPanelSection']['RightVerticalAxis']),_0x35dd44[_0x3cc49e(0x302)](a[_0x3cc49e(0x1db)][_0x3cc49e(0x26e)])),(0x0,a['chartTypeSupportsCapability'])(_0x458503,a['ChartEditorCapability'][_0x3cc49e(0x15a)])&&_0x35dd44[_0x3cc49e(0x302)](a[_0x3cc49e(0x1db)][_0x3cc49e(0x15a)]),(0x0,d['chartTypeCanUseTrendLine'])(_0x458503)&&_0x35dd44[_0x3cc49e(0x302)](a['ChartEditPanelSection'][_0x3cc49e(0x300)]),_0x49b46f&&_0x35dd44['push'](a[_0x3cc49e(0x1db)][_0x3cc49e(0x21d)]),_0x379bd2&&_0x35dd44[_0x3cc49e(0x302)](a[_0x3cc49e(0x1db)][_0x3cc49e(0x13d)]),_0x35752c&&_0x35dd44['push'](a['ChartEditPanelSection'][_0x3cc49e(0x28a)]),_0x72fdf1&&_0x35dd44[_0x3cc49e(0x302)](a[_0x3cc49e(0x1db)][_0x3cc49e(0x1ac)]),_0x2ebf45&&_0x35dd44[_0x3cc49e(0x302)](a[_0x3cc49e(0x1db)][_0x3cc49e(0x147)]),_0x3c8bea&&_0x35dd44[_0x3cc49e(0x302)](a['ChartEditPanelSection'][_0x3cc49e(0xf3)]),_0x35dd44;}function de(_0x1c9e72){const _0x44dc5a=_0x3c9708;var _0x54fff8,_0x33a856,_0x32350a;let _0x51e8aa=(0x0,c['useDependency'])(n[_0x44dc5a(0x381)]),_0x55d43b=(0x0,a['useChartEditorChartType'])(),_0x2a92f5=(0x0,a['useChartEditorHasRightAxis'])(),[_0x180680,_0x49388b]=(0x0,l[_0x44dc5a(0x219)])(null),_0x2cd728=ue(_0x55d43b,_0x2a92f5),_0x1eb00b=(0x0,u['jsx'])(a[_0x44dc5a(0x150)],{}),_0x594d36={[a[_0x44dc5a(0x1db)][_0x44dc5a(0x21d)]]:_0x51e8aa['t'](_0x44dc5a(0x382)),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x1df)]]:_0x51e8aa['t'](_0x44dc5a(0x13f)),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x163)]]:_0x51e8aa['t']('boards-chart-ui.common.chartStyle'),[a[_0x44dc5a(0x1db)][_0x44dc5a(0xf3)]]:_0x51e8aa['t']('boards-chart-ui.section.chord'),[a[_0x44dc5a(0x1db)]['Funnel']]:_0x51e8aa['t'](_0x44dc5a(0x33d)),[a['ChartEditPanelSection']['Gauge']]:_0x51e8aa['t'](_0x44dc5a(0x15f)),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x26e)]]:_0x51e8aa['t']('boards-chart-ui.section.gridlinesAndTicks'),[a[_0x44dc5a(0x1db)]['Heatmap']]:_0x51e8aa['t']('boards-chart-ui.common.heatmap'),[a[_0x44dc5a(0x1db)]['Histogram']]:_0x51e8aa['t'](_0x44dc5a(0x259)),[a['ChartEditPanelSection'][_0x44dc5a(0x197)]]:_0x51e8aa['t'](_0x44dc5a(0x210)),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x15a)]]:_0x51e8aa['t'](_0x44dc5a(0x2ac)),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x211)]]:_0x51e8aa['t']('boards-chart-ui.common.legend'),[a['ChartEditPanelSection'][_0x44dc5a(0x18e)]]:_0x51e8aa['t'](_0x44dc5a(0x2c0)),[a[_0x44dc5a(0x1db)]['ParetoBarSeries']]:_0x51e8aa['t'](_0x44dc5a(0x314)),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x283)]]:_0x51e8aa['t'](_0x44dc5a(0x114)),[a['ChartEditPanelSection'][_0x44dc5a(0x38a)]]:_0x51e8aa['t'](_0x44dc5a(0x1aa)),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x138)]]:_0x51e8aa['t'](_0x44dc5a(0x250)),[a['ChartEditPanelSection'][_0x44dc5a(0x33a)]]:_0x51e8aa['t'](_0x44dc5a(0x20c)),[a['ChartEditPanelSection'][_0x44dc5a(0x285)]]:_0x51e8aa['t']('boards-chart-ui.common.rightVerticalAxis'),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x2ec)]]:_0x51e8aa['t']('boards-chart-ui.common.series'),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x1ac)]]:_0x51e8aa['t'](_0x44dc5a(0x178)),[a[_0x44dc5a(0x1db)]['Treemap']]:_0x51e8aa['t'](_0x44dc5a(0x12c)),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x300)]]:_0x51e8aa['t']('boards-chart-ui.common.trendline'),[a[_0x44dc5a(0x1db)][_0x44dc5a(0xe2)]]:_0x51e8aa['t'](_0x44dc5a(0x252)),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x1ae)]]:_0x51e8aa['t']('boards-chart-ui.section.waterfall'),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x14b)]]:_0x51e8aa['t'](_0x44dc5a(0x349))};(0x0,l[_0x44dc5a(0x17b)])(()=>{const _0x59d18b=_0x44dc5a;var _0x1cb487;(_0x1cb487=_0x1c9e72['route'])!=null&&_0x1cb487[_0x59d18b(0x2c5)]&&_0x49388b(_0x1c9e72[_0x59d18b(0x1c9)][_0x59d18b(0x2c5)]);},[_0x1c9e72['route']]);let _0x23409c={[a['ChartEditPanelSection'][_0x44dc5a(0x163)]]:(0x0,u[_0x44dc5a(0x203)])(a[_0x44dc5a(0x200)],{'defaultValues':N[_0x44dc5a(0x11f)],'showBodyFont':!0x0}),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x1df)]]:(0x0,u['jsx'])(a[_0x44dc5a(0x14e)],{'commitMode':'change','defaultValues':N['titles'],'selectedTitleKey':(_0x54fff8=_0x1c9e72['route'])==null?void 0x0:_0x54fff8[_0x44dc5a(0x2bd)]}),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x2ec)]]:(0x0,u[_0x44dc5a(0x175)])(a[_0x44dc5a(0x143)],{'defaultValues':N[_0x44dc5a(0x29f)],'NumberFormatField':a[_0x44dc5a(0x2b7)],'selectedSeriesId':(_0x33a856=_0x1c9e72[_0x44dc5a(0x1c9)])==null?void 0x0:_0x33a856[_0x44dc5a(0x2fb)],'children':[(0x0,u[_0x44dc5a(0x203)])(a[_0x44dc5a(0x265)],{}),(0x0,u[_0x44dc5a(0x203)])(a[_0x44dc5a(0x315)],{'individualOnly':!0x0}),(0x0,u['jsx'])(a[_0x44dc5a(0x157)],{}),(0x0,u[_0x44dc5a(0x203)])(a[_0x44dc5a(0x136)],{}),(0x0,u[_0x44dc5a(0x203)])(a[_0x44dc5a(0x2fa)],{}),(0x0,u[_0x44dc5a(0x203)])(a[_0x44dc5a(0x24c)],{}),(0x0,u[_0x44dc5a(0x203)])(a[_0x44dc5a(0x122)],{}),(0x0,u['jsx'])(a[_0x44dc5a(0x185)],{})]}),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x1ae)]]:(0x0,u[_0x44dc5a(0x203)])(a['ChartWaterfallStyleSection'],{'defaultValues':N[_0x44dc5a(0x20d)],'NumberFormatField':a['ChartNumberFormatTextField'],'selectedSeriesId':(_0x32350a=_0x1c9e72[_0x44dc5a(0x1c9)])==null?void 0x0:_0x32350a[_0x44dc5a(0x2fb)],'showBucketName':()=>!0x0}),[a[_0x44dc5a(0x1db)]['ParetoBarSeries']]:(0x0,u['jsx'])(a[_0x44dc5a(0x2a6)],{'defaultValues':N[_0x44dc5a(0x2c1)],'NumberFormatField':a[_0x44dc5a(0x2b7)],'showDataPointEditor':!0x0,'target':'barStyle'}),[a[_0x44dc5a(0x1db)]['ParetoLineSeries']]:(0x0,u[_0x44dc5a(0x203)])(a['ChartParetoSeriesSection'],{'defaultValues':N[_0x44dc5a(0x2c1)],'NumberFormatField':a['ChartNumberFormatTextField'],'showDataPointEditor':!0x0,'target':_0x44dc5a(0x1e7)}),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x38a)]]:(0x0,u[_0x44dc5a(0x203)])(a[_0x44dc5a(0x240)],{'defaultValues':N[_0x44dc5a(0x159)],'NumberFormatField':a[_0x44dc5a(0x2b7)]}),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x14b)]]:(0x0,u[_0x44dc5a(0x175)])(a['ChartWordCloudRoot'],{'children':[(0x0,u[_0x44dc5a(0x203)])(a[_0x44dc5a(0xff)],{'defaultValues':N[_0x44dc5a(0x155)]}),(0x0,u[_0x44dc5a(0x203)])(a[_0x44dc5a(0x36b)],{}),(0x0,u[_0x44dc5a(0x203)])(a[_0x44dc5a(0x316)],{'defaultValues':N[_0x44dc5a(0x155)]})]}),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x138)]]:(0x0,u['jsx'])(a[_0x44dc5a(0x190)],{'defaultValues':N[_0x44dc5a(0x28c)]}),[a[_0x44dc5a(0x1db)]['Funnel']]:(0x0,u[_0x44dc5a(0x203)])(a[_0x44dc5a(0x127)],{'defaultValues':N[_0x44dc5a(0x244)],'gapControl':'number'}),[a['ChartEditPanelSection']['Heatmap']]:(0x0,u[_0x44dc5a(0x203)])(a[_0x44dc5a(0x379)],{'defaultValues':N[_0x44dc5a(0x2ba)]}),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x33a)]]:(0x0,u[_0x44dc5a(0x203)])(a[_0x44dc5a(0x1a2)],{'defaultValues':N[_0x44dc5a(0x2bf)]}),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x18e)]]:(0x0,u[_0x44dc5a(0x203)])(a['ChartLineAndAreaSection'],{'defaultValues':N[_0x44dc5a(0x1fc)],'lineStyleControl':_0x44dc5a(0x184)}),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x211)]]:(0x0,u[_0x44dc5a(0x203)])(a[_0x44dc5a(0x323)],{'defaultValues':N[_0x44dc5a(0x2b0)]}),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x197)]]:(0x0,u['jsx'])(a['ChartAxisSection'],{'axis':'x','defaultValues':N['axis'],'NumberFormatField':a[_0x44dc5a(0x2b7)]}),[a['ChartEditPanelSection']['VerticalAxis']]:(0x0,u[_0x44dc5a(0x203)])(a[_0x44dc5a(0x2a1)],{'axis':'y','defaultValues':N['axis'],'NumberFormatField':a[_0x44dc5a(0x2b7)]}),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x285)]]:(0x0,u[_0x44dc5a(0x203)])(a['ChartAxisSection'],{'axis':_0x44dc5a(0x171),'defaultValues':N[_0x44dc5a(0x1bc)],'NumberFormatField':a['ChartNumberFormatTextField']}),[a['ChartEditPanelSection'][_0x44dc5a(0x26e)]]:(0x0,u[_0x44dc5a(0x203)])(a['ChartGridlinesAndTicksSection'],{'defaultValues':N['axis']}),[a['ChartEditPanelSection'][_0x44dc5a(0x15a)]]:(0x0,u[_0x44dc5a(0x203)])(a[_0x44dc5a(0x2e3)],{'defaultValues':N['indicatorLine']}),[a[_0x44dc5a(0x1db)][_0x44dc5a(0x300)]]:(0x0,u[_0x44dc5a(0x203)])(a[_0x44dc5a(0x10b)],{'defaultValues':N[_0x44dc5a(0x38d)]}),[a[_0x44dc5a(0x1db)]['Candlestick']]:_0x1eb00b,[a[_0x44dc5a(0x1db)]['Histogram']]:_0x1eb00b,[a[_0x44dc5a(0x1db)][_0x44dc5a(0x28a)]]:_0x1eb00b,[a[_0x44dc5a(0x1db)][_0x44dc5a(0x1ac)]]:_0x1eb00b,[a[_0x44dc5a(0x1db)][_0x44dc5a(0x147)]]:_0x1eb00b,[a[_0x44dc5a(0x1db)]['Chord']]:_0x1eb00b};return(0x0,u[_0x44dc5a(0x203)])(a[_0x44dc5a(0x288)],{'value':_0x180680,'onChange':_0x49388b,'children':_0x2cd728['map'](_0x45fce1=>(0x0,u['jsx'])(le,{'id':_0x45fce1,'label':_0x594d36[_0x45fce1],'children':_0x23409c[_0x45fce1]},_0x45fce1))});}function fe({unitId:_0x559334,subUnitId:_0x3f1050,elementId:_0x32dc73,chartId:_0x52ea80}){const _0x534ab7=_0x3c9708;let _0x4aea80=(0x0,c[_0x534ab7(0x201)])(i[_0x534ab7(0x1fe)]),_0x2c7a07=(0x0,c[_0x534ab7(0x201)])(T),_0xb96b89=(0x0,c[_0x534ab7(0x201)])(n[_0x534ab7(0x381)]),_0xe076e9=(0x0,c[_0x534ab7(0x201)])(n['ICommandService']),_0x59e244=(0x0,c[_0x534ab7(0x201)])(n[_0x534ab7(0xe6)]),_0x5cd5f3=(0x0,c[_0x534ab7(0x201)])(n[_0x534ab7(0x326)]),_0x14d875=(0x0,c[_0x534ab7(0x201)])(w),_0x41d24c=(0x0,c[_0x534ab7(0x289)])(_0x4aea80[_0x534ab7(0x35a)],_0x4aea80[_0x534ab7(0x351)]),_0x480a72=(0x0,c[_0x534ab7(0x289)])(_0x14d875[_0x534ab7(0x37b)],_0x14d875[_0x534ab7(0x30b)]()),[_0x553952,_0x326a8b]=(0x0,l[_0x534ab7(0x219)])(a['ChartEditPanelTab'][_0x534ab7(0x23d)]),_0x25caea=(_0x480a72==null?void 0x0:_0x480a72['unitId'])===_0x559334&&_0x480a72['chartId']===_0x52ea80&&_0x480a72[_0x534ab7(0x22b)]===_0x32dc73?_0x480a72[_0x534ab7(0x1c9)]:void 0x0;(0x0,l[_0x534ab7(0x17b)])(()=>{const _0x577725=_0x534ab7;_0x4aea80[_0x577725(0x137)](_0x559334,_0x52ea80);},[_0x52ea80,_0x4aea80,_0x559334]),(0x0,l[_0x534ab7(0x17b)])(()=>{const _0x48e9fc=_0x534ab7;_0x25caea!=null&&_0x25caea[_0x48e9fc(0x1ab)]&&_0x326a8b(_0x25caea[_0x48e9fc(0x1ab)]);},[_0x25caea]);let _0x4e895c=(_0x41d24c==null?void 0x0:_0x41d24c[_0x534ab7(0x359)])===_0x559334&&_0x41d24c[_0x534ab7(0x37a)]===_0x52ea80,_0x47ba51=(0x0,l[_0x534ab7(0x166)])(()=>{const _0x1b9fb3=_0x534ab7;if(!_0x4e895c)return null;let _0x31e1df=_0x5cd5f3[_0x1b9fb3(0x26d)](_0x559334,n[_0x1b9fb3(0x20b)][_0x1b9fb3(0x367)]);return _0x31e1df?new a[(_0x1b9fb3(0x20a))](_0x41d24c[_0x1b9fb3(0x2d1)],new i[(_0x1b9fb3(0x387))]({'unitId':_0x559334,'pageId':_0x3f1050,'chartId':_0x52ea80,'elementId':_0x32dc73,'boardModel':_0x31e1df,'injector':_0x59e244})):null;},[_0x41d24c,_0x52ea80,_0x32dc73,_0x59e244,_0x4e895c,_0x3f1050,_0x559334,_0x5cd5f3]),_0x542bb9=(0x0,l[_0x534ab7(0x166)])(()=>(0x0,a[_0x534ab7(0x19e)])(a['CHART_TYPE_CATALOG']['map'](_0x2ef0d8=>({..._0x2ef0d8,'label':_0xb96b89['t'](_0x534ab7(0x12f)+_0x2ef0d8[_0x534ab7(0x149)])}))),[_0xb96b89]);return!_0x4e895c||!_0x47ba51?null:(0x0,u[_0x534ab7(0x203)])(a['ChartEditorProvider'],{'chartUIService':_0x2c7a07,'hostAdapter':_0x47ba51,'children':(0x0,u['jsxs'])(_0x534ab7(0x1b1),{'className':_0x534ab7(0x2a3),'children':[(0x0,u[_0x534ab7(0x203)])(a[_0x534ab7(0x2e5)],{'ariaLabel':_0xb96b89['t']('boards-chart-ui.common.editChart'),'className':_0x534ab7(0x369),'items':[{'label':_0xb96b89['t'](_0x534ab7(0x21e)),'panelId':pe,'value':a[_0x534ab7(0xf0)][_0x534ab7(0x23d)]},{'label':_0xb96b89['t'](_0x534ab7(0xdc)),'panelId':P,'value':a[_0x534ab7(0xf0)]['Style']}],'value':_0x553952,'onChange':_0x326a8b}),_0x553952===a[_0x534ab7(0xf0)][_0x534ab7(0x23d)]?(0x0,u[_0x534ab7(0x203)])(a['ChartEditPanel'],{'id':pe,'label':_0xb96b89['t'](_0x534ab7(0x21e)),'children':(0x0,u[_0x534ab7(0x175)])('div',{'className':_0x534ab7(0xd6),'children':[(0x0,u[_0x534ab7(0x203)])(a[_0x534ab7(0x1b7)],{'options':_0x542bb9}),(0x0,u['jsx'])(a['ChartTypeSpecificSetupSection'],{}),(0x0,u[_0x534ab7(0x203)])(a[_0x534ab7(0x116)],{}),(0x0,u[_0x534ab7(0x203)])(ce,{}),(0x0,u['jsx'])(a['ChartStackField'],{}),(0x0,u[_0x534ab7(0x203)])(se,{'onEditData':()=>_0xe076e9[_0x534ab7(0x347)](ae['id'],{'unitId':_0x559334,'chartId':_0x52ea80})}),(0x0,u[_0x534ab7(0x203)])(a[_0x534ab7(0x2da)],{'orientationControl':(0x0,u[_0x534ab7(0x203)])(o[_0x534ab7(0x328)],{'size':_0x534ab7(0x183),'onClick':()=>_0x2c7a07[_0x534ab7(0x110)]({'patch':{'context':{'orient':_0x41d24c['source'][_0x534ab7(0x292)]?_0x534ab7(0x2af):'row'}}}),'children':_0xb96b89['t']('boards-chart-ui.common.switchRowColumn')})}),(0x0,u[_0x534ab7(0x203)])(a[_0x534ab7(0x19a)],{}),(0x0,u['jsx'])(a[_0x534ab7(0x162)],{'defaultValues':N[_0x534ab7(0x27e)]})]})}):(0x0,u[_0x534ab7(0x203)])(a[_0x534ab7(0x372)],{'id':P,'label':_0xb96b89['t'](_0x534ab7(0xdc)),'children':(0x0,u['jsx'])(de,{'route':_0x25caea})})]})});}const pe='board-chart-setup-panel',P=_0x3c9708(0x339),me=d['CHART_HOST_DEFAULT_BORDER_COLOR'],F=d[_0x3c9708(0x126)];function I(_0x481f01){const _0xfc8d76=_0x3c9708;var _0x190b0f,_0x1f4aed;let _0x2db822=_0x481f01[_0xfc8d76(0x2bc)]??{},_0x431b45=_0x2db822[_0xfc8d76(0x1a1)]===0x0?0x0:_e(_0x2db822[_0xfc8d76(0x1a1)],_e((_0x190b0f=_0x481f01[_0xfc8d76(0x1c3)])==null||(_0x190b0f=_0x190b0f[_0xfc8d76(0x373)])==null?void 0x0:_0x190b0f[_0xfc8d76(0x386)],0x1));return{'fill':_0x481f01[_0xfc8d76(0x12b)]??_0x2db822['backgroundColor']??d[_0xfc8d76(0x228)]['backgroundColor'],'stroke':_0x2db822[_0xfc8d76(0x2fc)]??((_0x1f4aed=_0x481f01[_0xfc8d76(0x1c3)])==null||(_0x1f4aed=_0x1f4aed[_0xfc8d76(0x373)])==null?void 0x0:_0x1f4aed[_0xfc8d76(0x297)])??_0x481f01[_0xfc8d76(0x17e)]??(_0x481f01[_0xfc8d76(0x2ce)]?_0xfc8d76(0x134):me),'strokeWidth':_0x431b45,'radius':F};}function he(_0x2617bb,_0x552ac2){const _0x1775f9=_0x3c9708;let _0x5c6b4d=Math[_0x1775f9(0x18f)](0x0,_0x552ac2[_0x1775f9(0x2c7)]);return{'left':_0x5c6b4d,'top':_0x5c6b4d,'width':Math[_0x1775f9(0x18f)](0x1,_0x2617bb[_0x1775f9(0x386)]-_0x5c6b4d*0x2),'height':Math['max'](0x1,_0x2617bb['height']-_0x5c6b4d*0x2)};}function ge(_0x24486e,_0x889279){const _0x227abd=_0x3c9708;let _0x283068=-0x1/0x2;return{'left':_0x283068,'top':_0x283068,'width':Math['max'](0x1,_0x24486e['width']),'height':Math[_0x227abd(0x18f)](0x1,_0x24486e[_0x227abd(0x2b3)]),'radius':Math['max'](0x0,_0x889279[_0x227abd(0x14f)]-_0x889279[_0x227abd(0x2c7)]/0x2)};}function _e(_0x2518a8,_0x2f9640){const _0x5c3bde=_0x3c9708;return typeof _0x2518a8==_0x5c3bde(0xec)&&Number[_0x5c3bde(0x34c)](_0x2518a8)&&_0x2518a8>0x0?_0x2518a8:_0x2f9640;}function ve(_0x232f1b){const _0x2c3c64=_0x3c9708;var _0x43d9ef;let _0x3d16f8=(_0x43d9ef=_0x232f1b['match'](/^#([\da-f]{3}|[\da-f]{6})$/i))==null?void 0x0:_0x43d9ef[0x1];if(_0x3d16f8){let _0x343c7a=_0x3d16f8[_0x2c3c64(0x29b)]===0x3?_0x3d16f8[_0x2c3c64(0x2c9)]('')[_0x2c3c64(0x2cc)](_0x26d9e2=>''+_0x26d9e2+_0x26d9e2)[_0x2c3c64(0x15d)](''):_0x3d16f8;return'rgb('+Number[_0x2c3c64(0x303)](_0x343c7a[_0x2c3c64(0x332)](0x0,0x2),0x10)+',\x20'+Number[_0x2c3c64(0x303)](_0x343c7a[_0x2c3c64(0x332)](0x2,0x4),0x10)+',\x20'+Number['parseInt'](_0x343c7a[_0x2c3c64(0x332)](0x4,0x6),0x10)+')';}let _0x506cf4=document[_0x2c3c64(0x2ab)](_0x2c3c64(0x17f));return _0x506cf4[_0x2c3c64(0x11f)][_0x2c3c64(0x297)]=_0x232f1b,_0x506cf4[_0x2c3c64(0x11f)]['color']||_0x232f1b;}let L=class extends n['Disposable']{constructor(_0x5a8c2e,_0x5c95b5,_0x1cc5d1){const _0x50f304=_0x3c9708;super(),this[_0x50f304(0x330)]=_0x5a8c2e,this[_0x50f304(0x205)]=_0x5c95b5,this['_renderModelManager']=_0x1cc5d1,y(this,_0x50f304(0x172),new Map()),y(this,'_chartElementEditMode',new Map()),y(this,_0x50f304(0x31d),new Map()),y(this,_0x50f304(0x133),new Map());}[_0x3c9708(0x13c)](_0x56d6f7){const _0x22fe32=_0x3c9708;return _0x56d6f7?this['_renderModelManager']['createChartInstance'](_0x56d6f7,this[_0x22fe32(0x2ae)]()):this[_0x22fe32(0x1f7)][_0x22fe32(0x13c)]();}[_0x3c9708(0x1f1)](_0x28dbf3,_0x1a6db3,_0x577bac){const _0xba6cdd=_0x3c9708;let _0x409cf9=this[_0xba6cdd(0x354)](_0x28dbf3,_0x1a6db3),_0x38c3e9=this[_0xba6cdd(0x172)]['get'](_0x409cf9);return _0x38c3e9&&_0x38c3e9!==_0x577bac&&(this[_0xba6cdd(0x260)](_0x409cf9),_0x38c3e9[_0xba6cdd(0x32b)]()),this[_0xba6cdd(0x172)]['set'](_0x409cf9,_0x577bac),_0x577bac['setElementEditMode'](this['_chartElementEditMode'][_0xba6cdd(0x34b)](_0x409cf9)===!0x0),this['_bindChartEventHandlers'](_0x409cf9,_0x577bac),{'dispose':()=>{const _0x4318a5=_0xba6cdd;this[_0x4318a5(0x172)][_0x4318a5(0x34b)](_0x409cf9)===_0x577bac&&(this[_0x4318a5(0x260)](_0x409cf9),this['_chartInstanceMap'][_0x4318a5(0x368)](_0x409cf9));}};}[_0x3c9708(0x109)](_0x19edd0,_0x339d9a,_0x395d1c){const _0x55b235=_0x3c9708;var _0x5cae17;let _0x546c62=this[_0x55b235(0x354)](_0x19edd0,_0x339d9a);_0x395d1c?this[_0x55b235(0x1d0)]['set'](_0x546c62,!0x0):this[_0x55b235(0x1d0)][_0x55b235(0x368)](_0x546c62),(_0x5cae17=this['_chartInstanceMap']['get'](_0x546c62))==null||_0x5cae17['setElementEditMode'](_0x395d1c);}[_0x3c9708(0x14c)](_0x2cc415,_0x38a6fd){const _0x7baa51=_0x3c9708;return this[_0x7baa51(0x1d0)]['get'](this[_0x7baa51(0x354)](_0x2cc415,_0x38a6fd))===!0x0;}['on'](_0x4ea8bb,_0xcf89cf,_0xca0d7a,_0x4582be){const _0x53ee30=_0x3c9708;let _0x3f44ee=this[_0x53ee30(0x354)](_0x4ea8bb,_0xcf89cf),_0x42dbe7=this[_0x53ee30(0x31d)][_0x53ee30(0x34b)](_0x3f44ee);_0x42dbe7||(_0x42dbe7=new Map(),this[_0x53ee30(0x31d)][_0x53ee30(0x20f)](_0x3f44ee,_0x42dbe7));let _0x51b176=_0x42dbe7[_0x53ee30(0x34b)](_0xca0d7a);_0x51b176||(_0x51b176=new Set(),_0x42dbe7[_0x53ee30(0x20f)](_0xca0d7a,_0x51b176)),_0x51b176[_0x53ee30(0x36e)](_0x4582be);let _0x4457a1=this['_chartInstanceMap']['get'](_0x3f44ee);return _0x4457a1&&this['_bindChartEventHandler'](_0x3f44ee,_0x4457a1,_0xca0d7a,_0x4582be),{'dispose':()=>{const _0x17eb2a=_0x53ee30;let _0x1edcc9=this[_0x17eb2a(0x31d)][_0x17eb2a(0x34b)](_0x3f44ee),_0x3cb3d2=_0x1edcc9==null?void 0x0:_0x1edcc9[_0x17eb2a(0x34b)](_0xca0d7a);_0x3cb3d2==null||_0x3cb3d2[_0x17eb2a(0x368)](_0x4582be),(_0x3cb3d2==null?void 0x0:_0x3cb3d2[_0x17eb2a(0x301)])===0x0&&(_0x1edcc9==null||_0x1edcc9['delete'](_0xca0d7a)),(_0x1edcc9==null?void 0x0:_0x1edcc9[_0x17eb2a(0x301)])===0x0&&this['_chartEventHandlers'][_0x17eb2a(0x368)](_0x3f44ee),this[_0x17eb2a(0x10d)](_0x3f44ee,_0xca0d7a,_0x4582be);}};}[_0x3c9708(0xea)](_0xf5f2bf){const _0x575803=_0x3c9708;let _0x1530b0=_0xf5f2bf[_0x575803(0x2d1)][_0x575803(0x286)];if(!_0x1530b0)throw Error('Board\x20chart\x20'+_0xf5f2bf[_0x575803(0x37a)]+_0x575803(0x2a2));let _0x8edeb3=this[_0x575803(0x330)][_0x575803(0x1c4)]();return{'chartConfig':_0x1530b0,'chartStyle':(0x0,d[_0x575803(0x16f)])({..._0xf5f2bf[_0x575803(0x2d1)][_0x575803(0x11f)],'runtime':_0xf5f2bf[_0x575803(0x2d1)][_0x575803(0x106)](_0x8edeb3),'direction':_0x8edeb3},_0x1530b0[_0x575803(0x35b)])};}['createRenderSpec'](_0x35a181,_0x46bb39,_0x18c56c){const _0x4aa373=_0x3c9708;let {chartConfig:_0x228f9f,chartStyle:_0x279dfe}=this[_0x4aa373(0xea)](_0x35a181),_0x3a91c0=this[_0x4aa373(0x1f7)]['getCurrentRenderModel']();return{'spec':_0x3a91c0[_0x4aa373(0x375)](_0x3a91c0[_0x4aa373(0x296)](_0x228f9f,_0x279dfe),{'chartConfig':_0x228f9f,'chartStyle':_0x279dfe,'chartInstance':_0x18c56c},_0x46bb39),'chartConfig':_0x228f9f,'chartStyle':_0x279dfe,'hostStyle':this[_0x4aa373(0x2a5)](_0x279dfe)};}[_0x3c9708(0x2a5)](_0x30936d){const _0x3a5e26=_0x3c9708;return(0x0,d[_0x3a5e26(0xfa)])({'style':_0x30936d,'getRenderColor':_0x91ddbb=>this[_0x3a5e26(0x205)][_0x3a5e26(0x399)](_0x91ddbb)});}[_0x3c9708(0x37c)](_0x3ee1d2,_0x37636f){const _0x5b0345=_0x3c9708;var _0x55ae02;_0x3ee1d2[_0x5b0345(0x11f)]['border']=(_0x55ae02=_0x37636f[_0x5b0345(0x355)])!=null&&_0x55ae02[_0x5b0345(0x297)]&&_0x37636f['border'][_0x5b0345(0x386)]?_0x37636f[_0x5b0345(0x355)][_0x5b0345(0x386)]+_0x5b0345(0x14a)+ve(_0x37636f['border'][_0x5b0345(0x297)]):'',_0x3ee1d2[_0x5b0345(0x11f)][_0x5b0345(0x177)]=ve(_0x37636f[_0x5b0345(0x176)]??_0x5b0345(0x204)),_0x3ee1d2[_0x5b0345(0x11f)]['borderRadius']=_0x37636f['radius']?_0x37636f[_0x5b0345(0x14f)]+'px':F+'px',_0x3ee1d2[_0x5b0345(0x11f)]['overflow']=_0x5b0345(0xde),_0x3ee1d2['style'][_0x5b0345(0x27f)]=_0x5b0345(0xf9);}['_createChartRenderInstanceContext'](){const _0x5e7e45=_0x3c9708;return{'resolveHostStyle':({style:_0x3df6ee})=>({'fill':this[_0x5e7e45(0x2a5)](_0x3df6ee)[_0x5e7e45(0x176)]}),'resolveRenderBackgroundColor':({hostStyle:_0x5334ee})=>_0x5334ee[_0x5e7e45(0x176)],'prepareSpec':({mode:_0x1dca29,spec:_0x598864})=>_0x1dca29===_0x5e7e45(0x264)?{..._0x598864,'animation':!0x1,'tooltip':{'show':!0x1}}:_0x598864};}[_0x3c9708(0x121)](_0x4f1ef6,_0x20cab0){const _0x4f54d6=_0x3c9708;let _0x1fd5b4=this['_chartEventHandlers'][_0x4f54d6(0x34b)](_0x4f1ef6);_0x1fd5b4&&_0x1fd5b4['forEach']((_0x547a4c,_0x58899a)=>{const _0x3f3d30=_0x4f54d6;_0x547a4c[_0x3f3d30(0x1cd)](_0x5e45b9=>this[_0x3f3d30(0x1e6)](_0x4f1ef6,_0x20cab0,_0x58899a,_0x5e45b9));});}[_0x3c9708(0x1e6)](_0x594fb4,_0x10b7d4,_0x4129b6,_0x4b7ce3){const _0x2cc70a=_0x3c9708;let _0x1196e5=this[_0x2cc70a(0x133)][_0x2cc70a(0x34b)](_0x594fb4);_0x1196e5||(_0x1196e5=new Map(),this['_chartEventSubscriptions']['set'](_0x594fb4,_0x1196e5));let _0xd6148b=_0x1196e5[_0x2cc70a(0x34b)](_0x4129b6);_0xd6148b||(_0xd6148b=new Map(),_0x1196e5[_0x2cc70a(0x20f)](_0x4129b6,_0xd6148b)),!_0xd6148b[_0x2cc70a(0x22a)](_0x4b7ce3)&&_0xd6148b[_0x2cc70a(0x20f)](_0x4b7ce3,_0x10b7d4['on'](_0x4129b6,_0x4b7ce3));}[_0x3c9708(0x10d)](_0x5c6058,_0x14ccab,_0x4b377b){const _0x8b2968=_0x3c9708;var _0x3375ea,_0x367eac;let _0x64a9fa=(_0x3375ea=this['_chartEventSubscriptions']['get'](_0x5c6058))==null?void 0x0:_0x3375ea[_0x8b2968(0x34b)](_0x14ccab);_0x64a9fa==null||(_0x367eac=_0x64a9fa[_0x8b2968(0x34b)](_0x4b377b))==null||_0x367eac[_0x8b2968(0x32b)](),_0x64a9fa==null||_0x64a9fa[_0x8b2968(0x368)](_0x4b377b);}['_disposeChartEventSubscriptions'](_0x15ca38){const _0x1b56de=_0x3c9708;let _0x30aa0e=this['_chartEventSubscriptions']['get'](_0x15ca38);_0x30aa0e==null||_0x30aa0e['forEach'](_0x4a8f53=>{const _0x5c54eb=_0xce56;_0x4a8f53[_0x5c54eb(0x1cd)](_0x24072e=>_0x24072e[_0x5c54eb(0x32b)]()),_0x4a8f53['clear']();}),this[_0x1b56de(0x133)][_0x1b56de(0x368)](_0x15ca38);}[_0x3c9708(0x354)](_0x329a50,_0x18e525){return _0x329a50+'::'+_0x18e525;}['dispose'](){const _0x21cab4=_0x3c9708;this[_0x21cab4(0x172)][_0x21cab4(0x1cd)](_0xf04555=>_0xf04555[_0x21cab4(0x32b)]()),this[_0x21cab4(0x172)][_0x21cab4(0x1b8)](),this[_0x21cab4(0x1d0)][_0x21cab4(0x1b8)](),this['_chartEventHandlers'][_0x21cab4(0x1b8)](),Array[_0x21cab4(0x100)](this[_0x21cab4(0x133)][_0x21cab4(0x2ef)]())['forEach'](_0x3142a0=>this[_0x21cab4(0x260)](_0x3142a0)),super['dispose']();}};L=x([b(0x0,(0x0,n[_0x3c9708(0x15e)])(n['LocaleService'])),b(0x1,(0x0,n[_0x3c9708(0x15e)])(d[_0x3c9708(0x2df)])),b(0x2,d[_0x3c9708(0x161)])],L);let R=class extends n['Disposable']{constructor(_0x2d82b2,_0x58da1d,_0x5bba8a,_0x512d9e,_0x13f203,_0x175916,_0x18d5e1){const _0x3ac704=_0x3c9708;super(),this[_0x3ac704(0x24f)]=_0x2d82b2,this['_editSessionService']=_0x58da1d,this[_0x3ac704(0x1ad)]=_0x5bba8a,this['_modelService']=_0x512d9e,this[_0x3ac704(0x1b5)]=_0x13f203,this[_0x3ac704(0x293)]=_0x175916,this[_0x3ac704(0x330)]=_0x18d5e1,y(this,_0x3ac704(0x237),null),y(this,_0x3ac704(0x232),null),y(this,_0x3ac704(0x132),null),this['disposeWithMe'](this[_0x3ac704(0x2b9)][_0x3ac704(0x37b)][_0x3ac704(0x38b)](_0x2f3d5c=>this[_0x3ac704(0xdd)](_0x2f3d5c)));}[_0x3c9708(0x32b)](){const _0x59c5b8=_0x3c9708;this[_0x59c5b8(0x118)](),super[_0x59c5b8(0x32b)]();}[_0x3c9708(0xdd)](_0x175c51){const _0x2020f5=_0x3c9708;var _0x47a673;if(!_0x175c51||_0x175c51[_0x2020f5(0x359)]!==this[_0x2020f5(0x24f)][_0x2020f5(0x359)]){this[_0x2020f5(0x118)]();return;}let _0x4585a7=this['_modelService'][_0x2020f5(0x117)](_0x175c51[_0x2020f5(0x359)],_0x175c51[_0x2020f5(0x37a)]);if(!_0x4585a7){this[_0x2020f5(0x118)]();return;}let _0x5210d6=[M,_0x175c51[_0x2020f5(0x359)],_0x175c51[_0x2020f5(0x29a)],_0x175c51[_0x2020f5(0x22b)]][_0x2020f5(0x15d)](':');if(this[_0x2020f5(0x237)]===_0x5210d6){this[_0x2020f5(0x207)][_0x2020f5(0x36c)](_0x4585a7),this['_setActiveEditOverlay'](_0x175c51['unitId'],_0x175c51[_0x2020f5(0x37a)]);return;}(_0x47a673=this['_activePanelDisposable'])==null||_0x47a673[_0x2020f5(0x32b)](),this[_0x2020f5(0x207)][_0x2020f5(0x36c)](_0x4585a7),this[_0x2020f5(0x1e0)](_0x175c51[_0x2020f5(0x359)],_0x175c51[_0x2020f5(0x37a)]),this['_activePanelKey']=_0x5210d6,this['_activePanelDisposable']=this['_sidePanelService'][_0x2020f5(0x338)]({'id':M,'header':{'title':this[_0x2020f5(0x330)]['t']('boards-chart-ui.common.editChart')},'width':0x184,'children':{'label':M,'unitId':_0x175c51[_0x2020f5(0x359)],'subUnitId':_0x175c51['subUnitId'],'elementId':_0x175c51['elementId'],'chartId':_0x175c51['chartId']},'onClose':_0x19178d=>{const _0x1f9647=_0x2020f5;this['_activePanelKey']===_0x5210d6&&(this[_0x1f9647(0x237)]=null,this[_0x1f9647(0x232)]=null,this[_0x1f9647(0x1a0)](),this[_0x1f9647(0x207)][_0x1f9647(0x36c)](null),_0x19178d===_0x1f9647(0x1f2)&&this[_0x1f9647(0x2b9)][_0x1f9647(0x2d4)](_0x1f9647(0x1f2)));}});}['_closeActivePanel'](){const _0x3a2d0e=_0x3c9708;var _0x5979e6;if(!this['_activePanelKey']){this[_0x3a2d0e(0x1a0)]();return;}(_0x5979e6=this[_0x3a2d0e(0x232)])==null||_0x5979e6[_0x3a2d0e(0x32b)](),this[_0x3a2d0e(0x232)]=null,this['_activePanelKey']=null,this[_0x3a2d0e(0x1a0)](),this['_modelService'][_0x3a2d0e(0x36c)](null);}[_0x3c9708(0x1e0)](_0x153937,_0x5ac573){const _0x28c0ef=_0x3c9708;let _0x4b6330=this['_activeEditOverlay'];((_0x4b6330==null?void 0x0:_0x4b6330[_0x28c0ef(0x359)])!==_0x153937||_0x4b6330['chartId']!==_0x5ac573)&&(this[_0x28c0ef(0x1a0)](),this['_activeEditOverlay']={'unitId':_0x153937,'chartId':_0x5ac573},this['_renderService'][_0x28c0ef(0x109)](_0x153937,_0x5ac573,!0x0));}[_0x3c9708(0x1a0)](){const _0x1009fe=_0x3c9708;let _0x432256=this[_0x1009fe(0x132)];_0x432256&&(this[_0x1009fe(0x132)]=null,this['_renderService'][_0x1009fe(0x109)](_0x432256['unitId'],_0x432256['chartId'],!0x1));}};R=x([b(0x1,(0x0,n[_0x3c9708(0x15e)])(w)),b(0x2,(0x0,n[_0x3c9708(0x15e)])(t[_0x3c9708(0x2cb)])),b(0x3,(0x0,n[_0x3c9708(0x15e)])(i[_0x3c9708(0x1fe)])),b(0x4,(0x0,n[_0x3c9708(0x15e)])(L)),b(0x5,T),b(0x6,(0x0,n['Inject'])(n[_0x3c9708(0x381)]))],R);var ye=class extends n[_0x3c9708(0x371)]{constructor(_0x13643d,_0x21597d,_0x3813eb){const _0x35e207=_0x3c9708;super(),this[_0x35e207(0x37a)]=_0x13643d,this[_0x35e207(0x119)]=_0x21597d,this[_0x35e207(0x282)]=_0x3813eb,y(this,_0x35e207(0x2e0),d[_0x35e207(0x36f)]['Dom']);}[_0x3c9708(0x279)](){const _0x51bdd7=_0x3c9708;return{'width':Math[_0x51bdd7(0x18f)](0x1,this[_0x51bdd7(0x119)][_0x51bdd7(0x384)]),'height':Math[_0x51bdd7(0x18f)](0x1,this[_0x51bdd7(0x119)][_0x51bdd7(0x2fd)])};}[_0x3c9708(0x1ea)](_0x4dd677){const _0x2a7b11=_0x3c9708;this[_0x2a7b11(0x282)](this['_host'],_0x4dd677);}async[_0x3c9708(0x158)](){const _0x1d26d2=_0x3c9708;return this[_0x1d26d2(0x119)];}[_0x3c9708(0x125)](){return!0x0;}[_0x3c9708(0x225)](){}[_0x3c9708(0x129)](){}[_0x3c9708(0x226)](){}};function be({chartElement:_0x34d2f3,chartId:_0x252c5a,unitId:_0x71879e}){const _0x498674=_0x3c9708;let _0x50a99c=(0x0,l[_0x498674(0x2e9)])(null),_0x2574a4=(0x0,c[_0x498674(0x201)])(i['BoardChartModelService']),_0x5e85ed=(0x0,c[_0x498674(0x201)])(L),_0x32a2cc=(0x0,c[_0x498674(0x201)])(n[_0x498674(0x381)]);return(0x0,l[_0x498674(0x17b)])(()=>{const _0x1c6594=_0x498674;let _0x5cce08=_0x50a99c['current'];if(!_0x5cce08)return;let _0x34e753=_0x2574a4[_0x1c6594(0x117)](_0x71879e,_0x252c5a);if(!_0x34e753)return;_0x2574a4[_0x1c6594(0x36c)](_0x34e753);let _0x49affb=new ye(_0x252c5a,_0x5cce08,(_0x576dcb,_0x36e740)=>_0x5e85ed[_0x1c6594(0x37c)](_0x576dcb,{'fill':_0x36e740['fill']??'transparent'})),_0x408263=_0x5e85ed['createChartInstance'](d['ChartHostRenderMode']['Dom']),_0x7fa7bd=_0x5e85ed['registerChartInstance'](_0x71879e,_0x252c5a,_0x408263);_0x408263[_0x1c6594(0x2aa)](_0x49affb);let _0x277791=(0x0,r[_0x1c6594(0x362)])([_0x34e753[_0x1c6594(0x2d1)][_0x1c6594(0x164)],_0x34e753[_0x1c6594(0x2d1)]['style$'],_0x32a2cc[_0x1c6594(0x1e8)]])['pipe']((0x0,r['filter'])(([_0x5768d0])=>_0x5768d0!=null))[_0x1c6594(0x38b)](()=>{const _0x4e9d6b=_0x1c6594;let {chartConfig:_0x42edd0,chartStyle:_0x17b090}=_0x5e85ed['createRenderInput'](_0x34e753);xe(_0x5cce08,_0x34d2f3,_0x17b090,_0x5e85ed),_0x408263[_0x4e9d6b(0x12a)]({'chartId':_0x252c5a,'config':_0x42edd0,'style':_0x17b090})[_0x4e9d6b(0x2e7)](()=>{});});return()=>{const _0x34c18a=_0x1c6594;var _0x5cc05b;_0x277791[_0x34c18a(0x2fe)](),_0x7fa7bd[_0x34c18a(0x32b)](),_0x408263[_0x34c18a(0x32b)](),_0x49affb[_0x34c18a(0x32b)](),((_0x5cc05b=_0x2574a4['activeRuntimeModel'])==null?void 0x0:_0x5cc05b['unitId'])===_0x71879e&&_0x2574a4[_0x34c18a(0x351)][_0x34c18a(0x37a)]===_0x252c5a&&_0x2574a4[_0x34c18a(0x36c)](null);};},[_0x34d2f3,_0x252c5a,_0x32a2cc,_0x2574a4,_0x5e85ed,_0x71879e]),(0x0,u['jsx'])(_0x498674(0x1b1),{'className':_0x498674(0x2f9),'data-board-chart-dom-renderer':_0x252c5a,'children':(0x0,u['jsx'])(_0x498674(0x1b1),{'ref':_0x50a99c,'data-board-chart-dom-content-host':_0x252c5a})});}function xe(_0x43e7c1,_0x3f950e,_0x32c386,_0xa7f5ad){const _0x5dc93d=_0x3c9708;let _0x441a1a=_0xa7f5ad['getHostStyle'](_0x32c386)[_0x5dc93d(0x176)],_0x4ee7be=I({'chartStyle':_0x32c386,'chartElement':_0x3f950e,'hostFill':_0x441a1a}),_0x240eb3=Math[_0x5dc93d(0x18f)](0x0,_0x4ee7be[_0x5dc93d(0x2c7)]);_0x43e7c1[_0x5dc93d(0x11f)]['position']=_0x5dc93d(0x329),_0x43e7c1[_0x5dc93d(0x11f)][_0x5dc93d(0x223)]=_0x240eb3+'px',_0x43e7c1['style']['top']=_0x240eb3+'px',_0x43e7c1['style'][_0x5dc93d(0xf6)]=_0x240eb3+'px',_0x43e7c1[_0x5dc93d(0x11f)][_0x5dc93d(0x1ef)]=_0x240eb3+'px',_0x43e7c1[_0x5dc93d(0x11f)][_0x5dc93d(0x177)]=_0x4ee7be[_0x5dc93d(0x176)],_0x43e7c1[_0x5dc93d(0x11f)][_0x5dc93d(0x189)]=Math[_0x5dc93d(0x18f)](0x0,_0x4ee7be['radius']-_0x240eb3)+'px',_0x43e7c1[_0x5dc93d(0x11f)][_0x5dc93d(0x1a7)]='hidden',_0x43e7c1[_0x5dc93d(0x11f)][_0x5dc93d(0x27f)]=_0x5dc93d(0xf9);}const Se=(0x0,n['createIdentifier'])(_0x3c9708(0x151));function z(_0x3f97aa){return{..._0x3f97aa,'borderWidth':0x0};}var Ce=class{constructor(_0x367868,_0x179805){const _0x550d92=_0x3c9708;this[_0x550d92(0x1b5)]=_0x367868,this[_0x550d92(0x1f7)]=_0x179805;}async['render'](_0x385ddb,_0x1f364a){const _0x1ff264=_0x3c9708;if(typeof document>'u')throw TypeError(_0x1ff264(0x142));let {chartConfig:_0x4c2bdb,chartStyle:_0x3526ab}=this[_0x1ff264(0x1b5)][_0x1ff264(0xea)](_0x1f364a),_0x270e74=z(_0x3526ab);if(_0x385ddb['format']===d[_0x1ff264(0x1cf)]['SVG'])return(await this[_0x1ff264(0x1f7)][_0x1ff264(0x11c)]({'chartId':_0x1f364a[_0x1ff264(0x37a)],'config':_0x4c2bdb,'style':_0x270e74,'width':_0x385ddb[_0x1ff264(0x386)],'height':_0x385ddb['height']},{'format':_0x385ddb[_0x1ff264(0x236)]}))[_0x1ff264(0x146)];let _0xbe41b8=new d[(_0x1ff264(0x1c8))](_0x1f364a['chartId'],{'width':_0x385ddb['width'],'height':_0x385ddb[_0x1ff264(0x2b3)]}),_0xab3c9f=this[_0x1ff264(0x1b5)][_0x1ff264(0x13c)](d[_0x1ff264(0x36f)][_0x1ff264(0xda)]);try{_0xab3c9f[_0x1ff264(0x2aa)](_0xbe41b8),await _0xab3c9f[_0x1ff264(0x12a)]({'chartId':_0x1f364a[_0x1ff264(0x37a)],'config':_0x4c2bdb,'style':_0x270e74});let _0x1efd69=_0xbe41b8[_0x1ff264(0x1f9)]();if(!_0x1efd69)throw Error(_0x1ff264(0x139)+_0x1f364a['unitId']+'/'+_0x1f364a[_0x1ff264(0x37a)]);return _0x1efd69;}finally{_0xab3c9f[_0x1ff264(0x32b)](),_0xbe41b8[_0x1ff264(0x32b)]();}}};let B=class extends a[_0x3c9708(0x2e2)]{constructor(_0x137f3a,_0x32de9d,_0x559153,_0xfc2fe9,_0x4a7802){super(_0x137f3a,_0x32de9d,_0x4a7802??new Ce(_0x559153,_0xfc2fe9));}[_0x3c9708(0x37e)](_0x1f305f){const _0x3e0ced=_0x3c9708;let _0x4a4fc2=super[_0x3e0ced(0x37e)](_0x1f305f);return _0x1f305f[_0x3e0ced(0x236)]===d[_0x3e0ced(0x1cf)][_0x3e0ced(0x2b5)]?_0x4a4fc2+'::'+_0x1f305f[_0x3e0ced(0x236)]:_0x4a4fc2;}};B=x([b(0x0,(0x0,n['Inject'])(n[_0x3c9708(0x381)])),b(0x1,(0x0,n[_0x3c9708(0x15e)])(i['BoardChartModelService'])),b(0x2,(0x0,n[_0x3c9708(0x15e)])(L)),b(0x3,d['IChartRenderModelManagerService']),b(0x4,(0x0,n['Optional'])(Se))],B);let V=class extends n[_0x3c9708(0x371)]{constructor(_0x3aa550,_0x450d21,_0x4bd10c,_0x4914b3,_0x4ed688){const _0x393119=_0x3c9708;super(),this[_0x393119(0x24f)]=_0x3aa550,this[_0x393119(0x2b9)]=_0x450d21,this[_0x393119(0x218)]=_0x4bd10c,this[_0x393119(0x335)]=_0x4914b3,this[_0x393119(0x2d8)]=_0x4ed688,y(this,_0x393119(0x130),null),y(this,'_activeLayerDisposable',null),y(this,'_activeChart',null),this[_0x393119(0x39a)](this['_editSessionService'][_0x393119(0x37b)][_0x393119(0x38b)](_0x1d57e3=>this['_syncActiveChart'](_0x1d57e3)));}[_0x3c9708(0x32b)](){const _0x57cf0e=_0x3c9708;this[_0x57cf0e(0x2a0)](),super[_0x57cf0e(0x32b)]();}['_syncActiveChart'](_0x53d4b9){const _0x494ff8=_0x3c9708;if(!_0x53d4b9||_0x53d4b9[_0x494ff8(0x359)]!==this[_0x494ff8(0x24f)][_0x494ff8(0x359)]){this[_0x494ff8(0x2a0)]();return;}let _0x5b8912=this[_0x494ff8(0x218)][_0x494ff8(0xe8)](_0x53d4b9['unitId'],_0x53d4b9[_0x494ff8(0x29a)]),_0x452ec1=_0x5b8912[_0x53d4b9[_0x494ff8(0x22b)]];if(!_0x452ec1||_0x452ec1['element'][_0x494ff8(0x35b)]!==e[_0x494ff8(0xe4)][_0x494ff8(0x227)]||_0x452ec1[_0x494ff8(0x2b6)][_0x494ff8(0x37a)]!==_0x53d4b9[_0x494ff8(0x37a)]){this[_0x494ff8(0x2a0)]();return;}let _0x356f3d=(0x0,e['resolveBoardElementWorldBounds'])(_0x5b8912,_0x452ec1[_0x494ff8(0x22b)]);if(!_0x356f3d){this[_0x494ff8(0x2a0)]();return;}let _0x3cc1d7=_0x452ec1['element'],_0x748f21=_0x3cc1d7['chartId'],_0x24d640=['board-chart-active',_0x53d4b9[_0x494ff8(0x359)],_0x53d4b9[_0x494ff8(0x29a)],_0x452ec1['elementId']][_0x494ff8(0x15d)](':');if(this[_0x494ff8(0x130)]===_0x24d640){this[_0x494ff8(0x37f)]={'chartId':_0x748f21,'unitId':_0x53d4b9[_0x494ff8(0x359)]},this[_0x494ff8(0x335)][_0x494ff8(0x128)](_0x24d640,{'rect':_0x356f3d,'content':()=>(0x0,u['jsx'])(be,{'chartId':_0x748f21,'chartElement':_0x3cc1d7,'unitId':_0x53d4b9['unitId']})});return;}this['_clearActiveLayer'](),this[_0x494ff8(0x130)]=_0x24d640,this[_0x494ff8(0x37f)]={'chartId':_0x748f21,'unitId':_0x53d4b9[_0x494ff8(0x359)]},this[_0x494ff8(0xfd)]=this[_0x494ff8(0x335)][_0x494ff8(0x101)]({'id':_0x24d640,'unitId':_0x53d4b9[_0x494ff8(0x359)],'subUnitId':_0x53d4b9[_0x494ff8(0x29a)],'elementId':_0x452ec1[_0x494ff8(0x22b)],'rect':_0x356f3d,'interactive':!0x0,'zIndex':0x1,'content':()=>(0x0,u[_0x494ff8(0x203)])(be,{'chartId':_0x748f21,'chartElement':_0x3cc1d7,'unitId':_0x53d4b9[_0x494ff8(0x359)]})});}[_0x3c9708(0x2a0)](){const _0x3e3083=_0x3c9708;var _0x39de0e;let _0x4d8236=this[_0x3e3083(0x37f)];(_0x39de0e=this['_activeLayerDisposable'])==null||_0x39de0e['dispose'](),this[_0x3e3083(0xfd)]=null,this['_activeLayerId']=null,this[_0x3e3083(0x37f)]=null,_0x4d8236&&this[_0x3e3083(0x2d8)]['invalidateChart'](_0x4d8236[_0x3e3083(0x359)],_0x4d8236[_0x3e3083(0x37a)],{'waitForConfig':!0x0});}};V=x([b(0x1,(0x0,n['Inject'])(w)),b(0x2,e[_0x3c9708(0x325)]),b(0x3,(0x0,n[_0x3c9708(0x15e)])(t['BoardDomLayerService'])),b(0x4,(0x0,n[_0x3c9708(0x15e)])(B))],V);let H=class extends n[_0x3c9708(0x371)]{constructor(_0x431e1b,_0x416d7a,_0x22d6d3,_0x44eefe){const _0x3372e0=_0x3c9708;super(),this[_0x3372e0(0x186)]=_0x431e1b,this[_0x3372e0(0x2d8)]=_0x416d7a,this['_resourceService']=_0x22d6d3,this['_modelService']=_0x44eefe,this[_0x3372e0(0x2d2)]();}['_listenChartResourceMutations'](){const _0x40e614=_0x3c9708;this['disposeWithMe'](this[_0x40e614(0x186)][_0x40e614(0x308)](_0x5ccded=>{const _0xc04477=_0x40e614;if(_0x5ccded['id']===i['SetBoardChartSnapshotMutation']['id']){var _0x410f70;let _0xfa0c61=_0x5ccded[_0xc04477(0x107)];_0xfa0c61!=null&&_0xfa0c61[_0xc04477(0x359)]&&(_0x410f70=_0xfa0c61[_0xc04477(0x11b)])!=null&&_0x410f70['id']&&(this[_0xc04477(0x30d)](_0xfa0c61)?this[_0xc04477(0x2d8)]['invalidateChart'](_0xfa0c61['unitId'],_0xfa0c61['chart']['id'],{'waitForConfig':!0x0}):this[_0xc04477(0x2d8)][_0xc04477(0x199)](_0xfa0c61[_0xc04477(0x359)],_0xfa0c61[_0xc04477(0x11b)]['id']));return;}if(_0x5ccded['id']===i[_0xc04477(0xdf)]['id']){var _0x584efb;let _0x2dedb6=_0x5ccded['params'];if(!(_0x2dedb6!=null&&_0x2dedb6[_0xc04477(0x359)])||!((_0x584efb=_0x2dedb6[_0xc04477(0x249)])!=null&&_0x584efb['id']))return;this[_0xc04477(0x276)]['getChartIdsByDataSource'](_0x2dedb6[_0xc04477(0x359)],_0x2dedb6[_0xc04477(0x249)]['id'])[_0xc04477(0x1cd)](_0x4fe00e=>this['_snapshotService'][_0xc04477(0x199)](_0x2dedb6[_0xc04477(0x359)],_0x4fe00e,{'waitForConfig':!0x0}));}}));}[_0x3c9708(0x30d)](_0x40edb7){const _0x51e455=_0x3c9708;var _0x559430;let _0x2f6c0e=(_0x559430=this[_0x51e455(0x207)][_0x51e455(0x115)](_0x40edb7[_0x51e455(0x359)],_0x40edb7[_0x51e455(0x11b)]['id']))==null||(_0x559430=_0x559430['model'][_0x51e455(0x286)])==null?void 0x0:_0x559430[_0x51e455(0x35b)];return _0x2f6c0e!=null&&_0x2f6c0e!==_0x40edb7[_0x51e455(0x11b)]['chartType'];}};H=x([b(0x0,n[_0x3c9708(0x1e4)]),b(0x1,(0x0,n['Inject'])(B)),b(0x2,(0x0,n['Inject'])(i[_0x3c9708(0xfb)])),b(0x3,(0x0,n[_0x3c9708(0x15e)])(i[_0x3c9708(0x1fe)]))],H);var we=_0x3c9708(0x268),Te='1.0.0-beta.2';const U={'scaleX':0x1,'scaleY':0x1};function Ee(_0x4d7124){const _0x15f8f1=_0x3c9708;let _0x1e80f5=_0x4d7124[_0x15f8f1(0xeb)];return typeof MouseEvent<'u'&&_0x1e80f5 instanceof MouseEvent?_0x1e80f5:void 0x0;}function De(_0x54f1da){const _0x2f4b06=_0x3c9708;let _0x1b9075=_0x54f1da[_0x2f4b06(0xeb)],_0x47fa24=_0x1b9075==null?void 0x0:_0x1b9075[_0x2f4b06(0x253)];return typeof Element<'u'&&_0x47fa24 instanceof Element?_0x47fa24:void 0x0;}function Oe(_0xdd5a8b){const _0x23fd81=_0x3c9708;return _0xdd5a8b[_0x23fd81(0x386)]||_0xdd5a8b[_0x23fd81(0xf6)]-_0xdd5a8b['left'];}function ke(_0x1f9044){const _0x551732=_0x3c9708;return _0x1f9044[_0x551732(0x2b3)]||_0x1f9044[_0x551732(0x1ef)]-_0x1f9044[_0x551732(0x2e8)];}function W(_0x2e9dc1,_0x1c2a68){const _0x130edb=_0x3c9708;let _0x43ec5a=_0x2e9dc1[_0x130edb(0x384)]||(typeof HTMLElement<'u'&&_0x2e9dc1 instanceof HTMLElement?_0x2e9dc1[_0x130edb(0x393)]:0x0),_0x18aa52=_0x2e9dc1[_0x130edb(0x2fd)]||(typeof HTMLElement<'u'&&_0x2e9dc1 instanceof HTMLElement?_0x2e9dc1[_0x130edb(0x179)]:0x0),_0x3227a9=Oe(_0x1c2a68),_0xe27d74=ke(_0x1c2a68);return{'scaleX':_0x43ec5a>0x0&&_0x3227a9>0x0?_0x3227a9/_0x43ec5a:U[_0x130edb(0x181)],'scaleY':_0x18aa52>0x0&&_0xe27d74>0x0?_0xe27d74/_0x18aa52:U[_0x130edb(0x102)]};}function Ae(_0x365dc8,_0xfcde3c,_0x5b5350){const _0x5e84f1=_0x3c9708;return{'left':_0x365dc8['left']+_0xfcde3c[_0x5e84f1(0x223)]*_0x5b5350[_0x5e84f1(0x181)],'right':_0x365dc8[_0x5e84f1(0x223)]+_0xfcde3c[_0x5e84f1(0xf6)]*_0x5b5350[_0x5e84f1(0x181)],'top':_0x365dc8[_0x5e84f1(0x2e8)]+_0xfcde3c[_0x5e84f1(0x2e8)]*_0x5b5350[_0x5e84f1(0x102)],'bottom':_0x365dc8['top']+_0xfcde3c['bottom']*_0x5b5350[_0x5e84f1(0x102)]};}function je(_0x25e71c){const _0x4f827d=_0x3c9708;let _0x50c772=De(_0x25e71c),_0x134e4c=_0x25e71c['hit'][_0x4f827d(0x24a)];return _0x50c772&&_0x134e4c?()=>{const _0x220119=_0x4f827d;let _0x5a04d5=_0x50c772[_0x220119(0x36d)]();return Ae(_0x5a04d5,_0x134e4c,W(_0x50c772,_0x5a04d5));}:()=>{const _0x54de9e=_0x4f827d;let _0x3befd8=_0x50c772==null?void 0x0:_0x50c772['getBoundingClientRect']();if(_0x50c772&&_0x3befd8&&_0x134e4c)return Ae(_0x3befd8,_0x134e4c,W(_0x50c772,_0x3befd8));let _0x2c3950=Ee(_0x25e71c),_0x52b062=_0x50c772&&_0x3befd8?W(_0x50c772,_0x3befd8):U,_0x3c9152=(_0x2c3950==null?void 0x0:_0x2c3950[_0x54de9e(0x2f5)])??(_0x3befd8?_0x3befd8['left']+_0x25e71c['localPoint']['x']*_0x52b062[_0x54de9e(0x181)]:_0x25e71c[_0x54de9e(0x2d5)]['x']),_0x5f066b=(_0x2c3950==null?void 0x0:_0x2c3950[_0x54de9e(0x34d)])??(_0x3befd8?_0x3befd8[_0x54de9e(0x2e8)]+_0x25e71c[_0x54de9e(0x2d5)]['y']*_0x52b062[_0x54de9e(0x102)]:_0x25e71c[_0x54de9e(0x2d5)]['y']);return{'left':_0x3c9152,'right':_0x3c9152+0x1,'top':_0x5f066b,'bottom':_0x5f066b+0x1};};}function Me(_0x23c234){const _0x34bd12=_0x3c9708;return _0x23c234[_0x34bd12(0xf6)]<=_0x23c234[_0x34bd12(0x223)]||_0x23c234[_0x34bd12(0x1ef)]<=_0x23c234[_0x34bd12(0x2e8)]?!0x1:typeof window>'u'||_0x23c234[_0x34bd12(0xf6)]>0x0&&_0x23c234[_0x34bd12(0x1ef)]>0x0&&_0x23c234[_0x34bd12(0x223)]<window['innerWidth']&&_0x23c234[_0x34bd12(0x2e8)]<window[_0x34bd12(0x241)];}function Ne(_0x289fa5,_0x2e8ee0){const _0x503437=_0x3c9708;let _0x100d39=je(_0x289fa5),_0x41b6a8=_0x100d39(),_0x31e152=new r[(_0x503437(0xef))](_0x41b6a8),_0x37c7b8=new n['DisposableCollection'](),_0x41f43b=!0x1,_0x536a9a=!0x1;return typeof window<'u'&&_0x37c7b8[_0x503437(0x36e)]((0x0,r[_0x503437(0x238)])((0x0,r[_0x503437(0xdb)])(window,_0x503437(0x23b),{'capture':!0x0}),(0x0,r['fromEvent'])(window,_0x503437(0x169)))[_0x503437(0x2ee)]((0x0,r[_0x503437(0x1ec)])(0x10))[_0x503437(0x38b)](()=>{_0x536a9a||_0x41f43b||(_0x536a9a=!0x0,queueMicrotask(()=>{const _0x35c858=_0xce56;if(_0x536a9a=!0x1,_0x41f43b)return;let _0x43c7ed=_0x100d39();if(!Me(_0x43c7ed)){_0x2e8ee0();return;}_0x31e152[_0x35c858(0x357)](_0x43c7ed);}));})),{'initialRect':_0x41b6a8,'anchorRect$':_0x31e152[_0x503437(0x389)](),'visible':Me(_0x41b6a8),'dispose':()=>{const _0x4a5b03=_0x503437;_0x41f43b=!0x0,_0x37c7b8[_0x4a5b03(0x32b)](),_0x31e152[_0x4a5b03(0x2e4)]();}};}const Pe=_0x3c9708(0x18c);function G(_0x326566,_0x12803a){return _0x326566+'::'+_0x12803a;}let K=class extends n[_0x3c9708(0x371)]{constructor(_0x373d4a,_0x11d478,_0x201a83,_0x36e698,_0xa62792,_0x4c43c3,_0x41c0a9,_0x2684d9,_0x3a05c0){const _0x5b3f6e=_0x3c9708;super(),this[_0x5b3f6e(0x207)]=_0x373d4a,this[_0x5b3f6e(0x26b)]=_0x11d478,this[_0x5b3f6e(0x293)]=_0x201a83,this[_0x5b3f6e(0x2b9)]=_0x36e698,this[_0x5b3f6e(0x321)]=_0xa62792,this[_0x5b3f6e(0xf1)]=_0x4c43c3,this[_0x5b3f6e(0x1be)]=_0x41c0a9,this[_0x5b3f6e(0x23f)]=_0x2684d9,this[_0x5b3f6e(0x231)]=_0x3a05c0,y(this,'_chartEventDisposables',new Map()),y(this,'_popupDisposable',null),y(this,_0x5b3f6e(0x1fb),null),y(this,'_popupSessionKey',null),this['_registerAdapter'](),this['_subscribeChartEvents']();}['dispose'](){const _0x271b34=_0x3c9708;this[_0x271b34(0x16d)](),this[_0x271b34(0x2f1)]['forEach'](_0x428876=>_0x428876['dispose']()),this[_0x271b34(0x2f1)][_0x271b34(0x1b8)](),super[_0x271b34(0x32b)]();}[_0x3c9708(0x364)](){const _0x50cc97=_0x3c9708;let _0x4984c7=(0x0,a['createChartElementFloatMenuAdapter'])({'chartUIService':this[_0x50cc97(0x293)],'getHostAdapter':_0x2142f8=>{const _0x2d5724=_0x50cc97;this['_modelService'][_0x2d5724(0x137)](_0x2142f8[_0x2d5724(0x359)],_0x2142f8[_0x2d5724(0x37a)]);let _0x1794d1=this[_0x2d5724(0x207)]['getChartModel'](_0x2142f8['unitId'],_0x2142f8[_0x2d5724(0x37a)]),_0xf8655d=this[_0x2d5724(0x23f)][_0x2d5724(0x26d)](_0x2142f8['unitId'],n['UniverInstanceType'][_0x2d5724(0x367)]),_0x1e5fd5=this[_0x2d5724(0x2b9)][_0x2d5724(0x30b)]();if(!(!_0x1794d1||!_0xf8655d||!_0x1e5fd5))return new a[(_0x2d5724(0x20a))](_0x1794d1[_0x2d5724(0x2d1)],new i[(_0x2d5724(0x387))]({'unitId':_0x2142f8[_0x2d5724(0x359)],'pageId':_0x1e5fd5[_0x2d5724(0x29a)],'chartId':_0x2142f8['chartId'],'elementId':_0x1e5fd5[_0x2d5724(0x22b)],'boardModel':_0xf8655d,'injector':this[_0x2d5724(0x231)]}));},'close':()=>this['_closePopup'](),'openFullPanel':_0x1d1382=>{const _0x4e0dcb=_0x50cc97;this[_0x4e0dcb(0x207)]['setActiveChartById'](_0x1d1382[_0x4e0dcb(0x359)],_0x1d1382[_0x4e0dcb(0x37a)]);let _0x337bc4=this['_editSessionService'][_0x4e0dcb(0x30b)]();(_0x337bc4==null?void 0x0:_0x337bc4[_0x4e0dcb(0x359)])===_0x1d1382['unitId']&&_0x337bc4['chartId']===_0x1d1382[_0x4e0dcb(0x37a)]&&this[_0x4e0dcb(0x2b9)][_0x4e0dcb(0x338)]({..._0x337bc4,'route':(0x0,a[_0x4e0dcb(0x278)])(_0x1d1382[_0x4e0dcb(0x253)]),'source':_0x4e0dcb(0x173)}),this[_0x4e0dcb(0x16d)]();}});this[_0x50cc97(0x39a)](this[_0x50cc97(0x321)][_0x50cc97(0x193)](Pe,_0x4984c7));}['_subscribeChartEvents'](){const _0x5250cc=_0x3c9708;this[_0x5250cc(0x39a)](this[_0x5250cc(0x207)][_0x5250cc(0x30e)]['subscribe'](_0x1c83f9=>{const _0xe243e3=_0x5250cc;let _0x5bfe7e=G(_0x1c83f9['unitId'],_0x1c83f9[_0xe243e3(0x37a)]);if(this[_0xe243e3(0x2f1)][_0xe243e3(0x22a)](_0x5bfe7e))return;let _0x3ef157=new n[(_0xe243e3(0x1dd))]();_0x3ef157[_0xe243e3(0x36e)](this[_0xe243e3(0x26b)]['on'](_0x1c83f9[_0xe243e3(0x359)],_0x1c83f9[_0xe243e3(0x37a)],_0xe243e3(0x17c),_0x322f52=>{const _0xa293f=_0xe243e3;this[_0xa293f(0x1f6)](_0x1c83f9[_0xa293f(0x359)],_0x1c83f9[_0xa293f(0x37a)],_0x322f52);})),this['_chartEventDisposables'][_0xe243e3(0x20f)](_0x5bfe7e,_0x3ef157);})),this[_0x5250cc(0x39a)](this[_0x5250cc(0x207)]['chartModelRemoved$']['subscribe'](_0x1e6877=>{const _0x2e81e5=_0x5250cc;var _0x530393;let _0x21cb20=G(_0x1e6877[_0x2e81e5(0x359)],_0x1e6877['chartId']);(_0x530393=this['_chartEventDisposables']['get'](_0x21cb20))==null||_0x530393[_0x2e81e5(0x32b)](),this[_0x2e81e5(0x2f1)][_0x2e81e5(0x368)](_0x21cb20),this['_popupRuntimeKey']===_0x21cb20&&this['_closePopup']();})),this[_0x5250cc(0x39a)](this[_0x5250cc(0x207)][_0x5250cc(0x35a)][_0x5250cc(0x38b)](_0x481c69=>{const _0x2b3d34=_0x5250cc;let _0x19534e=_0x481c69?G(_0x481c69['unitId'],_0x481c69[_0x2b3d34(0x37a)]):null;(!_0x19534e||this['_popupRuntimeKey']&&_0x19534e!==this[_0x2b3d34(0x1fb)])&&this[_0x2b3d34(0x16d)]();}));}[_0x3c9708(0x1f6)](_0x2b7ba6,_0x231938,_0x46631a){const _0x38972c=_0x3c9708;if(!this[_0x38972c(0x26b)][_0x38972c(0x14c)](_0x2b7ba6,_0x231938))return;let _0x4728e4=this[_0x38972c(0x207)][_0x38972c(0x115)](_0x2b7ba6,_0x231938),_0xfb1904=_0x4728e4?(0x0,a[_0x38972c(0x224)])(_0x4728e4[_0x38972c(0x2d1)],_0x46631a[_0x38972c(0x324)]):void 0x0;if(!_0x4728e4||!_0xfb1904){this['_closePopup']();return;}let _0x20d6ee=JSON['stringify']([_0x2b7ba6,_0x231938,_0xfb1904[_0x38972c(0x253)]]);if(this[_0x38972c(0x27d)]&&this[_0x38972c(0x284)]===_0x20d6ee||(this[_0x38972c(0x207)][_0x38972c(0x36c)](_0x4728e4),this[_0x38972c(0x16d)](),!_0xfb1904[_0x38972c(0x376)]))return;let _0x30dad2=this[_0x38972c(0x1be)][_0x38972c(0x1fd)](_0x2b7ba6);if(!_0x30dad2)return;let _0x213216=Ne(_0x46631a,()=>this['_clearHiddenSelectedTarget'](_0x2b7ba6,_0x231938));if(!_0x213216['visible']){_0x213216['dispose']();return;}let _0x271bcb=this[_0x38972c(0xf1)][_0x38972c(0x1f3)]({'componentKey':a[_0x38972c(0x380)],'direction':_0x38972c(0x29e),'offset':[0x0,0x8],'unitId':_0x2b7ba6,'subUnitId':'','anchorRect':_0x213216['initialRect'],'anchorRect$':_0x213216['anchorRect$'],'canvasElement':_0x30dad2[_0x38972c(0x30f)][_0x38972c(0xf2)](),'extraProps':{'unitId':_0x2b7ba6,'chartId':_0x231938,'element':_0x46631a[_0x38972c(0x324)],'target':_0xfb1904[_0x38972c(0x253)],'adapterKey':Pe}}),_0x4f55ad=new n[(_0x38972c(0x1dd))]();_0x4f55ad[_0x38972c(0x36e)](_0x213216),_0x4f55ad['add']({'dispose':()=>this[_0x38972c(0xf1)]['removePopup'](_0x271bcb)}),this['_popupDisposable']=_0x4f55ad,this[_0x38972c(0x1fb)]=G(_0x2b7ba6,_0x231938),this['_popupSessionKey']=_0x20d6ee;}[_0x3c9708(0x16d)](){const _0x38c435=_0x3c9708;var _0x37d964;(_0x37d964=this['_popupDisposable'])==null||_0x37d964[_0x38c435(0x32b)](),this[_0x38c435(0x27d)]=null,this['_popupRuntimeKey']=null,this['_popupSessionKey']=null;}['_clearHiddenSelectedTarget'](_0x160af5,_0x5c575c){const _0x31eecf=_0x3c9708;this['_closePopup'](),this['_chartRenderService'][_0x31eecf(0x14c)](_0x160af5,_0x5c575c)&&(this['_chartRenderService']['setElementEditMode'](_0x160af5,_0x5c575c,!0x1),this[_0x31eecf(0x26b)]['setElementEditMode'](_0x160af5,_0x5c575c,!0x0));}};K=x([b(0x0,(0x0,n[_0x3c9708(0x15e)])(i['BoardChartModelService'])),b(0x1,(0x0,n[_0x3c9708(0x15e)])(L)),b(0x2,T),b(0x3,(0x0,n[_0x3c9708(0x15e)])(w)),b(0x4,(0x0,n[_0x3c9708(0x15e)])(a[_0x3c9708(0x346)])),b(0x5,(0x0,n['Inject'])(c[_0x3c9708(0x32f)])),b(0x6,p[_0x3c9708(0x377)]),b(0x7,n[_0x3c9708(0x326)]),b(0x8,(0x0,n[_0x3c9708(0x15e)])(n['Injector']))],K);function Fe(_0x2aff0e,_0x14cbe9,_0x430a09,_0x533ab2,_0x3ef222){let _0x2a2808={'chartType':_0x14cbe9,'data':_0x430a09,..._0x3ef222?{'dataSource':_0x3ef222}:{},..._0x533ab2?{'style':_0x533ab2}:{}};return{..._0x2aff0e,'options':_0x2a2808};}function Ie(_0x359eea){const _0x510d34=_0x3c9708;let _0x3c98f8=(0x0,c[_0x510d34(0x201)])(n[_0x510d34(0x1e4)]),_0x129c6f=(0x0,c['useDependency'])(n[_0x510d34(0x381)]),_0x262194=(0x0,l[_0x510d34(0x166)])(()=>(0x0,a[_0x510d34(0x19e)])(a['CHART_TYPE_CATALOG']['map'](_0x29ad58=>({..._0x29ad58,'label':_0x129c6f['t']('boards-chart-ui.chartTypes.'+_0x29ad58[_0x510d34(0x149)])}))),[_0x129c6f]),[_0x196236,_0x41978f]=(0x0,l[_0x510d34(0x219)])(String(d[_0x510d34(0x1b9)][_0x510d34(0x215)])),_0x305bc2=_0x262194[_0x510d34(0x1ce)](_0x20f9f9=>_0x20f9f9[_0x510d34(0x2a9)]===_0x196236),_0x1e2bb6=(_0x305bc2==null?void 0x0:_0x305bc2[_0x510d34(0x343)])??d['ChartTypeBits'][_0x510d34(0x215)],[_0x567fa5,_0x5c33df]=(0x0,l[_0x510d34(0x219)])(()=>i[_0x510d34(0xd7)][_0x510d34(0x2cc)](_0x272959=>[..._0x272959])),[_0x31a1d8,_0xa63fa5]=(0x0,l['useState'])(_0x510d34(0x275)),[_0x531279,_0x109bc1]=(0x0,l['useState'])(null),[_0x4894e3,_0x473fd5]=(0x0,l['useState'])([]),[_0x22d7b3,_0x15d620]=(0x0,l[_0x510d34(0x219)])(null),_0x366c8e={[a['InlineChartCreationIssueCode'][_0x510d34(0x319)]]:_0x129c6f['t']('boards-chart-ui.common.insertChartFailed'),[a[_0x510d34(0x340)][_0x510d34(0x19f)]]:_0x129c6f['t'](_0x510d34(0x21c)),[a[_0x510d34(0x340)][_0x510d34(0x1e9)]]:_0x129c6f['t'](_0x510d34(0x24e))},_0x3b682a=_0x37a83a=>(0x0,a[_0x510d34(0x1b4)])(_0x37a83a,{'candlestickClose':_0x129c6f['t']('boards-chart-ui.candlestick.close'),'candlestickHigh':_0x129c6f['t'](_0x510d34(0x194)),'candlestickLow':_0x129c6f['t'](_0x510d34(0x11e)),'candlestickOpen':_0x129c6f['t'](_0x510d34(0x1d2)),'category':_0x129c6f['t'](_0x510d34(0x25e)),'chordSource':_0x129c6f['t']('boards-chart-ui.chord.source'),'chordTarget':_0x129c6f['t'](_0x510d34(0x10f)),'label':_0x129c6f['t'](_0x510d34(0x361)),'sunburstHierarchy':_0x129c6f['t'](_0x510d34(0x212)),'value':_0x129c6f['t'](_0x510d34(0x1d4)),'valueField':_0x129c6f['t']('boards-chart-ui.common.valueField')});return(0x0,u[_0x510d34(0x175)])(_0x510d34(0x1b1),{'className':_0x510d34(0x11a),'children':[(0x0,u['jsxs'])(_0x510d34(0x1b1),{'className':_0x510d34(0x312),'children':[(0x0,u[_0x510d34(0x203)])(_0x510d34(0x1b1),{'className':_0x510d34(0x1ba),'children':_0x129c6f['t']('boards-chart-ui.common.chartType')}),(0x0,u[_0x510d34(0x203)])(o[_0x510d34(0x1d9)],{'className':_0x510d34(0x230),'value':_0x196236,'options':_0x262194,'onChange':_0xc99a5d=>{const _0x3c3bee=_0x510d34;var _0x4bff10;_0x41978f(_0xc99a5d);let _0x3249a3=((_0x4bff10=_0x262194[_0x3c3bee(0x1ce)](_0x108f05=>_0x108f05['value']===_0xc99a5d))==null?void 0x0:_0x4bff10[_0x3c3bee(0x343)])??Number(_0xc99a5d),_0x5e341e=_0x3b682a(_0x3249a3);_0x5e341e&&_0x5c33df(_0x5e341e);}})]}),(0x0,u[_0x510d34(0x203)])(a['ChartReferencedDataSourceEditor'],{'mode':_0x31a1d8,'inlineContent':(0x0,u['jsx'])(a[_0x510d34(0x365)],{'values':_0x567fa5,'minColumns':(0x0,a[_0x510d34(0x30c)])(_0x1e2bb6),'parsePastedText':d[_0x510d34(0x356)],'onChange':_0x5c33df}),'onModeChange':_0x24f8af=>{_0xa63fa5(_0x24f8af),_0x109bc1(null),_0x473fd5([]);},'onPreviewChange':(_0x58813,_0x1013e7)=>{const _0x19eecd=_0x510d34;_0x58813&&_0x1013e7['status']===d[_0x19eecd(0x28b)][_0x19eecd(0x113)]&&_0x1013e7[_0x19eecd(0x153)]?(_0x109bc1({'source':_0x58813}),_0x473fd5(_0x1013e7[_0x19eecd(0x153)]['map'](_0x1bdb20=>[..._0x1bdb20]))):(_0x109bc1(null),_0x473fd5([]));}}),_0x22d7b3&&(0x0,u[_0x510d34(0x203)])(_0x510d34(0x1b1),{'className':_0x510d34(0x10e),'children':_0x22d7b3}),(0x0,u[_0x510d34(0x175)])(_0x510d34(0x1b1),{'className':_0x510d34(0x222),'children':[_0x359eea[_0x510d34(0x2ad)]&&(0x0,u[_0x510d34(0x203)])(o[_0x510d34(0x328)],{'type':_0x510d34(0x32a),'variant':'default','onClick':_0x359eea[_0x510d34(0x2ad)],'children':_0x129c6f['t'](_0x510d34(0x239))}),(0x0,u[_0x510d34(0x203)])(o[_0x510d34(0x328)],{'type':_0x510d34(0x32a),'variant':_0x510d34(0x2ca),'disabled':_0x31a1d8===_0x510d34(0x392)&&!_0x531279,'onClick':async()=>{const _0x2b770f=_0x510d34;var _0x37f089;let _0x5482a4=(0x0,a[_0x2b770f(0x34a)])({'optionId':_0x196236,'values':_0x31a1d8===_0x2b770f(0x392)?_0x4894e3:_0x567fa5});if(!_0x5482a4['ok']){_0x15d620(_0x366c8e[_0x5482a4[_0x2b770f(0x13a)][_0x2b770f(0xf5)]]);return;}if(!await _0x3c98f8[_0x2b770f(0x347)](e[_0x2b770f(0x10c)]['id'],Fe(_0x359eea[_0x2b770f(0x1f0)],_0x5482a4[_0x2b770f(0x35c)][_0x2b770f(0x343)],_0x5482a4[_0x2b770f(0x35c)]['values'],_0x5482a4[_0x2b770f(0x35c)]['style'],_0x31a1d8===_0x2b770f(0x392)?_0x531279??void 0x0:void 0x0))){_0x15d620(_0x129c6f['t'](_0x2b770f(0x160)));return;}_0x15d620(null),(_0x37f089=_0x359eea[_0x2b770f(0x22f)])==null||_0x37f089[_0x2b770f(0x1fa)](_0x359eea);},'children':_0x129c6f['t']('boards-chart-ui.common.insert')})]})]});}let q=class extends n[_0x3c9708(0x371)]{constructor(_0x3d972d){const _0x24072f=_0x3c9708;super(),this[_0x24072f(0x1f4)]=_0x3d972d,this[_0x24072f(0x1bd)]();}[_0x3c9708(0x1bd)](){const _0x137640=_0x3c9708;this[_0x137640(0x39a)](this[_0x137640(0x1f4)][_0x137640(0x193)](M,fe)),this[_0x137640(0x39a)](this['_componentManager'][_0x137640(0x193)](re,ie)),this['disposeWithMe'](this['_componentManager'][_0x137640(0x193)](t[_0x137640(0x20e)],Ie)),this[_0x137640(0x39a)](this['_componentManager'][_0x137640(0x193)](D,ne));}};q=x([b(0x0,(0x0,n['Inject'])(c[_0x3c9708(0xd5)]))],q);var Le=class extends p[_0x3c9708(0xda)]{constructor(_0x5f0f7d,_0x3fe66a){const _0x23198a=_0x3c9708;super(_0x5f0f7d,_0x3fe66a),y(this,_0x23198a(0x370),void 0x0),y(this,_0x23198a(0x29d),void 0x0),this[_0x23198a(0x370)]=_0x3fe66a['element'],this[_0x23198a(0x29d)]=_0x3fe66a[_0x23198a(0x135)],this[_0x23198a(0x168)]();}[_0x3c9708(0x18d)](_0x514737){const _0x453d8a=_0x3c9708;this[_0x453d8a(0x370)]=_0x514737,this[_0x453d8a(0x23c)](!0x0);}[_0x3c9708(0x11d)](_0x13815b){const _0x557937=_0x3c9708;Re(this[_0x557937(0x29d)],_0x13815b)||(this[_0x557937(0x29d)]=_0x13815b,this[_0x557937(0x23c)](!0x0));}['getElement'](){return this['_element'];}[_0x3c9708(0x336)](){return this['_frameStyle'];}['changeChartSource'](_0x44a072){const _0x2a78e3=_0x3c9708;this[_0x2a78e3(0x1a6)]??(this['_native']=document['createElement']('img'),this[_0x2a78e3(0x1a6)][_0x2a78e3(0x220)]='anonymous'),this['_attachNativeLoadHandlers'](),this[_0x2a78e3(0x1a6)][_0x2a78e3(0x337)]=_0x44a072;}[_0x3c9708(0x38f)](_0x46a206,_0x170aa4,_0x103c0b=this[_0x3c9708(0x386)],_0x2ccd19=this[_0x3c9708(0x2b3)]){const _0x552d9=_0x3c9708;let _0x342082=this[_0x552d9(0x29d)],_0xfb3ec4=he({'width':_0x103c0b,'height':_0x2ccd19},_0x342082);_0x46a206[_0x552d9(0x167)](),_0x46a206['translate'](-_0x103c0b/0x2,-_0x2ccd19/0x2),J(_0x46a206,0x0,0x0,_0x103c0b,_0x2ccd19,_0x342082['radius']),_0x46a206['fillStyle']=_0x342082[_0x552d9(0x176)],_0x46a206[_0x552d9(0x176)](),_0x46a206[_0x552d9(0x396)](),this[_0x552d9(0x2c3)](_0x46a206,_0x103c0b,_0x2ccd19,_0xfb3ec4,_0x342082),this[_0x552d9(0x120)](_0x46a206,_0x103c0b,_0x2ccd19,_0x342082);}[_0x3c9708(0x2c3)](_0x4b9a06,_0x574482,_0x4883cd,_0x351f9d,_0x5007d1){const _0x2ecc25=_0x3c9708;var _0x1455c0;!((_0x1455c0=this[_0x2ecc25(0x1a6)])!=null&&_0x1455c0[_0x2ecc25(0x2e4)])||this[_0x2ecc25(0x1a6)]['naturalWidth']<=0x0||this['_native'][_0x2ecc25(0x16e)]<=0x0||(_0x4b9a06[_0x2ecc25(0x167)](),_0x4b9a06[_0x2ecc25(0x388)](-_0x574482/0x2,-_0x4883cd/0x2),J(_0x4b9a06,_0x351f9d[_0x2ecc25(0x223)],_0x351f9d[_0x2ecc25(0x2e8)],_0x351f9d[_0x2ecc25(0x386)],_0x351f9d['height'],Math[_0x2ecc25(0x18f)](0x0,_0x5007d1[_0x2ecc25(0x14f)]-_0x5007d1[_0x2ecc25(0x2c7)])),_0x4b9a06[_0x2ecc25(0x295)](),_0x4b9a06[_0x2ecc25(0x2ff)](this['_native'],_0x351f9d[_0x2ecc25(0x223)],_0x351f9d[_0x2ecc25(0x2e8)],_0x351f9d['width'],_0x351f9d[_0x2ecc25(0x2b3)]),_0x4b9a06[_0x2ecc25(0x396)]());}['_drawFrameStroke'](_0x2f2969,_0x54402c,_0x4c9ce5,_0x1efe6a){const _0x3173d8=_0x3c9708;if(_0x1efe6a[_0x3173d8(0x2c7)]<=0x0)return;let _0x28faa4=ge({'width':_0x54402c,'height':_0x4c9ce5},_0x1efe6a);_0x2f2969[_0x3173d8(0x167)](),_0x2f2969[_0x3173d8(0x388)](-_0x54402c/0x2,-_0x4c9ce5/0x2),J(_0x2f2969,_0x28faa4[_0x3173d8(0x223)],_0x28faa4[_0x3173d8(0x2e8)],_0x28faa4[_0x3173d8(0x386)],_0x28faa4[_0x3173d8(0x2b3)],_0x28faa4[_0x3173d8(0x14f)]),_0x2f2969[_0x3173d8(0x307)]=_0x1efe6a['stroke'],_0x2f2969[_0x3173d8(0x287)]=_0x1efe6a['strokeWidth'],_0x2f2969[_0x3173d8(0x373)](),_0x2f2969[_0x3173d8(0x396)]();}['_notifyScene'](){const _0x2520c1=_0x3c9708;let _0x182990=this['getScene']();this['makeDirty'](!0x0),_0x182990==null||_0x182990[_0x2520c1(0x32e)][_0x2520c1(0x2c6)](this[_0x2520c1(0x19d)]);}[_0x3c9708(0x168)](){const _0x5ddc55=_0x3c9708;this['_native']&&(this[_0x5ddc55(0x1a6)][_0x5ddc55(0x2f3)]=()=>{const _0xa1d3af=_0x5ddc55;this[_0xa1d3af(0x23c)](!0x0),this[_0xa1d3af(0x12e)]();},this[_0x5ddc55(0x1a6)][_0x5ddc55(0x21b)]=()=>{const _0x477e92=_0x5ddc55;this[_0x477e92(0x12e)]();});}};function J(_0x503064,_0x4eb009,_0x289894,_0x274d0c,_0x2d32fa,_0x195684){const _0x23cb8a=_0x3c9708;let _0x2bd294=Math[_0x23cb8a(0x1e1)](_0x195684||0x0,_0x274d0c/0x2,_0x2d32fa/0x2);if(_0x503064[_0x23cb8a(0x2cd)](),!_0x2bd294){_0x503064['rect'](_0x4eb009,_0x289894,_0x274d0c,_0x2d32fa),_0x503064[_0x23cb8a(0x22e)]();return;}_0x503064['moveTo'](_0x4eb009+_0x2bd294,_0x289894),_0x503064[_0x23cb8a(0x105)](_0x4eb009+_0x274d0c-_0x2bd294,_0x289894),_0x503064['arc'](_0x4eb009+_0x274d0c-_0x2bd294,_0x289894+_0x2bd294,_0x2bd294,Math['PI']*0x3/0x2,0x0,!0x1),_0x503064['lineTo'](_0x4eb009+_0x274d0c,_0x289894+_0x2d32fa-_0x2bd294),_0x503064[_0x23cb8a(0x270)](_0x4eb009+_0x274d0c-_0x2bd294,_0x289894+_0x2d32fa-_0x2bd294,_0x2bd294,0x0,Math['PI']/0x2,!0x1),_0x503064[_0x23cb8a(0x105)](_0x4eb009+_0x2bd294,_0x289894+_0x2d32fa),_0x503064[_0x23cb8a(0x270)](_0x4eb009+_0x2bd294,_0x289894+_0x2d32fa-_0x2bd294,_0x2bd294,Math['PI']/0x2,Math['PI'],!0x1),_0x503064[_0x23cb8a(0x105)](_0x4eb009,_0x289894+_0x2bd294),_0x503064[_0x23cb8a(0x270)](_0x4eb009+_0x2bd294,_0x289894+_0x2bd294,_0x2bd294,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x503064[_0x23cb8a(0x22e)]();}function Re(_0x986ad0,_0x159bc4){const _0x441ed0=_0x3c9708;return _0x986ad0[_0x441ed0(0x176)]===_0x159bc4[_0x441ed0(0x176)]&&_0x986ad0[_0x441ed0(0x373)]===_0x159bc4['stroke']&&_0x986ad0[_0x441ed0(0x2c7)]===_0x159bc4[_0x441ed0(0x2c7)]&&_0x986ad0[_0x441ed0(0x14f)]===_0x159bc4['radius'];}function ze(_0x1fcdd2){const _0x12aa1f=_0x3c9708;let {element:_0xf0e1aa}=_0x1fcdd2[_0x12aa1f(0x1b3)];return _0xf0e1aa[_0x12aa1f(0x35b)]===e['BoardElementType'][_0x12aa1f(0x227)]?_0xf0e1aa:null;}let Y=class{constructor(_0xe5c610,_0x34c23a,_0x451a84,_0x499ed6){const _0x2cd83d=_0x3c9708;this[_0x2cd83d(0x257)]=_0xe5c610,this[_0x2cd83d(0x2d8)]=_0x34c23a,this[_0x2cd83d(0x276)]=_0x451a84,this['_renderService']=_0x499ed6,y(this,_0x2cd83d(0x31e),_0x2cd83d(0x11b)),y(this,_0x2cd83d(0x123),new WeakMap());}[_0x3c9708(0x16a)](_0x3cdcb8){const _0x2a6c4f=_0x3c9708;let _0x564472=ze(_0x3cdcb8);if(!_0x564472)return null;let _0x3d3861=Math['max'](0x1,_0x3cdcb8[_0x2a6c4f(0x24a)]['width']),_0x194fe3=Math[_0x2a6c4f(0x18f)](0x1,_0x3cdcb8['bounds']['height']),_0x3dfa82=new Le(_0x3cdcb8[_0x2a6c4f(0x28d)],{'url':'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','left':_0x3cdcb8[_0x2a6c4f(0x24a)]['left'],'top':_0x3cdcb8[_0x2a6c4f(0x24a)]['top'],'width':_0x3d3861,'height':_0x194fe3,'angle':_0x3cdcb8[_0x2a6c4f(0x24a)][_0x2a6c4f(0x170)],'flipX':_0x3cdcb8[_0x2a6c4f(0x24a)]['flipX'],'flipY':_0x3cdcb8[_0x2a6c4f(0x24a)][_0x2a6c4f(0x1a4)],'zIndex':_0x3cdcb8[_0x2a6c4f(0x291)],'visible':_0x564472[_0x2a6c4f(0x2f4)]!==!0x1,'evented':!0x0,'forceRender':!0x0,'element':_0x564472,'frameStyle':this[_0x2a6c4f(0x256)](_0x3cdcb8[_0x2a6c4f(0x359)],_0x564472)});return this['_watchSnapshotUpdates'](_0x3dfa82,this[_0x2a6c4f(0x28f)](_0x3cdcb8[_0x2a6c4f(0x359)],_0x3dfa82),_0x3cdcb8[_0x2a6c4f(0x359)]),_0x3dfa82;}[_0x3c9708(0x2d0)](_0x5c4d06,_0x4d1463){const _0x5d2027=_0x3c9708;var _0x206ebd;if(!(_0x5c4d06 instanceof Le))return!0x1;let _0x545dd6=ze(_0x4d1463);return _0x545dd6?(_0x4d1463[_0x5d2027(0x1c5)]||_0x5c4d06[_0x5d2027(0x38e)](_0x4d1463[_0x5d2027(0x24a)]),_0x5c4d06['updateElement'](_0x545dd6),this[_0x5d2027(0x13e)](_0x4d1463[_0x5d2027(0x359)],_0x5c4d06),(_0x206ebd=this[_0x5d2027(0x123)][_0x5d2027(0x34b)](_0x5c4d06))==null||_0x206ebd(),!0x0):!0x1;}['_watchSnapshotUpdates'](_0x398b03,_0x573019,_0xecac55){const _0x521e8f=_0x3c9708;if(!_0x573019)return;let _0x3cafe9=null,_0x54e4fe=null,_0x373fb1=!0x1,_0x18b3a5=_0x5e1726=>{const _0x3c2b51=_0xce56;if(_0x54e4fe!==_0x5e1726){if(_0x3cafe9==null||_0x3cafe9[_0x3c2b51(0x2fe)](),_0x3cafe9=null,_0x54e4fe=_0x5e1726,_0x5e1726['status']===_0x3c2b51(0x188)&&_0x5e1726[_0x3c2b51(0x146)]){_0x398b03[_0x3c2b51(0x242)](_0x5e1726[_0x3c2b51(0x146)]);return;}_0x5e1726['status']===_0x3c2b51(0x383)&&(_0x3cafe9=this[_0x3c2b51(0x2d8)]['snapshotUpdated$'][_0x3c2b51(0x38b)](_0x1f2044=>{const _0x5ea899=_0x3c2b51;if(_0x1f2044!==_0x5e1726||_0x1f2044[_0x5ea899(0x327)]!==_0x5ea899(0x188)||!_0x1f2044[_0x5ea899(0x146)]){if(_0x1f2044===_0x5e1726&&_0x1f2044['status']===_0x5ea899(0x31c)&&!_0x373fb1){_0x373fb1=!0x0;let _0x1d99cc=this[_0x5ea899(0x28f)](_0xecac55,_0x398b03);_0x1d99cc&&_0x18b3a5(_0x1d99cc);}return;}_0x398b03[_0x5ea899(0x242)](_0x1f2044[_0x5ea899(0x146)]),_0x3cafe9==null||_0x3cafe9[_0x5ea899(0x2fe)](),_0x3cafe9=null;}));}};_0x18b3a5(_0x573019);let _0x31f3dd=()=>{_0x373fb1=!0x1;let _0x884e33=this['_requestSnapshotForObject'](_0xecac55,_0x398b03);_0x884e33&&_0x18b3a5(_0x884e33);};this[_0x521e8f(0x123)][_0x521e8f(0x20f)](_0x398b03,_0x31f3dd);let _0x201b59=this['_snapshotService'][_0x521e8f(0xe5)][_0x521e8f(0x38b)](_0x43d639=>{const _0x14a237=_0x521e8f;_0x43d639[_0x14a237(0x359)]===_0xecac55&&_0x43d639[_0x14a237(0x37a)]===_0x398b03[_0x14a237(0x331)]()[_0x14a237(0x37a)]&&_0x31f3dd();});_0x398b03[_0x521e8f(0x2dd)][_0x521e8f(0x304)](()=>{const _0x5aee3c=_0x521e8f;_0x3cafe9==null||_0x3cafe9['unsubscribe'](),_0x201b59[_0x5aee3c(0x2fe)](),this[_0x5aee3c(0x123)][_0x5aee3c(0x368)](_0x398b03);});}[_0x3c9708(0x28f)](_0x952a68,_0x149136){const _0x535f7a=_0x3c9708;let _0x4e312b=this[_0x535f7a(0x13e)](_0x952a68,_0x149136),_0x1c271b=he({'width':Math[_0x535f7a(0x18f)](0x1,_0x149136[_0x535f7a(0x386)]),'height':Math['max'](0x1,_0x149136['height'])},_0x4e312b);return this['_snapshotService'][_0x535f7a(0x1d5)]({'unitId':_0x952a68,'chartId':_0x149136[_0x535f7a(0x331)]()[_0x535f7a(0x37a)],'width':_0x1c271b[_0x535f7a(0x386)],'height':_0x1c271b[_0x535f7a(0x2b3)],'mode':'main'});}[_0x3c9708(0x13e)](_0x198875,_0x1000e3){const _0x41816f=_0x3c9708;let _0x391954=this[_0x41816f(0x256)](_0x198875,_0x1000e3[_0x41816f(0x331)]());return _0x1000e3[_0x41816f(0x11d)](_0x391954),_0x391954;}[_0x3c9708(0x256)](_0x35ffba,_0x4c618a){const _0x9890e8=_0x3c9708;var _0x4b6dea;let _0x853287=(_0x4b6dea=this[_0x9890e8(0x276)]['getChart'](_0x35ffba,_0x4c618a[_0x9890e8(0x37a)]))==null?void 0x0:_0x4b6dea[_0x9890e8(0x11f)];return I({'chartStyle':_0x853287,'chartElement':_0x4c618a,'hostFill':_0x853287?this[_0x9890e8(0x1b5)][_0x9890e8(0x2a5)](_0x853287)['fill']:void 0x0,'isDarkMode':this['_themeService'][_0x9890e8(0x394)]});}};Y=x([b(0x0,(0x0,n[_0x3c9708(0x15e)])(n[_0x3c9708(0x272)])),b(0x1,(0x0,n[_0x3c9708(0x15e)])(B)),b(0x2,(0x0,n[_0x3c9708(0x15e)])(i['BoardChartResourceService'])),b(0x3,(0x0,n['Inject'])(L))],Y);function X(_0x2c35fc){return _0x2c35fc['type']===e['BoardElementType']['Chart'];}let Z=class{constructor(_0x1a44fc){const _0x1db111=_0x3c9708;this[_0x1db111(0x276)]=_0x1a44fc,y(this,_0x1db111(0x28d),_0x1db111(0x208));}[_0x3c9708(0x2f2)](_0xba3022){const _0x4735dc=_0x3c9708;let _0x245062={},_0x281b62={},_0x394346={};return _0xba3022[_0x4735dc(0x182)][_0x4735dc(0x1cd)](_0x5484eb=>{const _0x4beedc=_0x4735dc;if(!X(_0x5484eb))return;let _0x88e22d=this[_0x4beedc(0x276)][_0x4beedc(0x2a8)](_0xba3022[_0x4beedc(0x359)],_0x5484eb[_0x4beedc(0x37a)]),_0x34b3ad=_0x88e22d?this[_0x4beedc(0x276)]['getDataSource'](_0xba3022[_0x4beedc(0x359)],_0x88e22d['dataSourceId']):void 0x0;!_0x88e22d||!_0x34b3ad||(_0x245062[_0x88e22d['id']]=n[_0x4beedc(0x192)][_0x4beedc(0x248)](_0x88e22d),_0x281b62[_0x34b3ad['id']]=_0x34b3ad,_0x394346[_0x5484eb['id']]=_0x88e22d['id']);}),Object[_0x4735dc(0x2ef)](_0x245062)[_0x4735dc(0x29b)]===0x0?null:{'charts':_0x245062,'dataSources':_0x281b62,'chartIdByElementId':_0x394346};}[_0x3c9708(0x145)](_0x1bf077){const _0x408d83=_0x3c9708;if(!Be(_0x1bf077['payload']))return null;let _0x2e5430=_0x1bf077[_0x408d83(0x1f8)],_0x59fa80=new Map();_0x1bf077[_0x408d83(0x195)]['forEach']((_0x562d92,_0x2cdff9)=>{_0x59fa80['set'](_0x562d92,_0x2cdff9);});let _0xd19b43=new Map(),_0x21f84b=new Map(),_0x2e36f6=_0x1bf077[_0x408d83(0x182)]['map'](_0x294f39=>{const _0x42ad55=_0x408d83;if(!X(_0x294f39))return _0x294f39;let _0x22960e=_0x59fa80[_0x42ad55(0x34b)](_0x294f39['id']),_0x52ab80=_0x22960e?_0x2e5430[_0x42ad55(0x1e2)][_0x22960e]:void 0x0;if(!_0x52ab80||!_0x2e5430[_0x42ad55(0x156)][_0x52ab80])return _0x294f39;let _0x34c607=_0xd19b43['get'](_0x52ab80);return _0x34c607||(_0x34c607=(0x0,n[_0x42ad55(0x198)])(0x6),_0xd19b43[_0x42ad55(0x20f)](_0x52ab80,_0x34c607)),{..._0x294f39,'chartId':_0x34c607};});_0xd19b43[_0x408d83(0x1cd)]((_0x57884d,_0x59c6b4)=>{const _0x2e20a5=_0x408d83;var _0x12a4a4;let _0x2d478d=(_0x12a4a4=_0x2e5430['charts'][_0x59c6b4])==null?void 0x0:_0x12a4a4[_0x2e20a5(0x1af)];_0x2d478d&&!_0x21f84b[_0x2e20a5(0x22a)](_0x2d478d)&&_0x21f84b[_0x2e20a5(0x20f)](_0x2d478d,(0x0,n[_0x2e20a5(0x198)])(0x6));});let _0x2bdd8c=[];_0x21f84b[_0x408d83(0x1cd)]((_0x581907,_0x315150)=>{const _0x39166d=_0x408d83;let _0x541517=_0x2e5430[_0x39166d(0xe0)][_0x315150];_0x541517&&_0x2bdd8c[_0x39166d(0x302)]({..._0x541517,'id':_0x581907});});let _0x1c7256=[];return _0xd19b43[_0x408d83(0x1cd)]((_0x5d1bcc,_0x14dcce)=>{const _0x718455=_0x408d83;let _0x2fd2c4=_0x2e5430[_0x718455(0x156)][_0x14dcce],_0x56a7b9=_0x2fd2c4?_0x21f84b[_0x718455(0x34b)](_0x2fd2c4['dataSourceId']):void 0x0;!_0x2fd2c4||!_0x56a7b9||_0x1c7256['push']({..._0x2fd2c4,'id':_0x5d1bcc,'dataSourceId':_0x56a7b9});}),_0x1c7256['length']===0x0?null:{'elements':_0x2e36f6,'redoMutations':[..._0x2bdd8c[_0x408d83(0x2cc)](_0x1e93ca=>({'id':i[_0x408d83(0xdf)]['id'],'params':{'unitId':_0x1bf077['targetUnitId'],'dataSource':_0x1e93ca}})),..._0x1c7256[_0x408d83(0x2cc)](_0x22f0d2=>({'id':i[_0x408d83(0x269)]['id'],'params':{'unitId':_0x1bf077['targetUnitId'],'chart':_0x22f0d2}}))],'undoMutations':[..._0x1c7256[_0x408d83(0x2cc)](_0x398d95=>({'id':i[_0x408d83(0x12d)]['id'],'params':{'unitId':_0x1bf077[_0x408d83(0x154)],'chartId':_0x398d95['id']}})),..._0x2bdd8c[_0x408d83(0x2cc)](_0x2ba999=>({'id':i[_0x408d83(0x17a)]['id'],'params':{'unitId':_0x1bf077[_0x408d83(0x154)],'dataSourceId':_0x2ba999['id']}}))]};}};Z=x([b(0x0,(0x0,n['Inject'])(i['BoardChartResourceService']))],Z);function Be(_0x24fc4c){const _0x3f8ff7=_0x3c9708;if(!_0x24fc4c||typeof _0x24fc4c!=_0x3f8ff7(0x2b4))return!0x1;let _0x14ba42=_0x24fc4c;return!!_0x14ba42[_0x3f8ff7(0x156)]&&!!_0x14ba42[_0x3f8ff7(0xe0)]&&!!_0x14ba42[_0x3f8ff7(0x1e2)];}let Q=class extends n[_0x3c9708(0x371)]{constructor(_0x191d8a,_0x53137d){const _0x36f531=_0x3c9708;super(),this[_0x36f531(0x2d8)]=_0x53137d,this[_0x36f531(0x39a)](_0x191d8a[_0x36f531(0x193)](this));}[_0x3c9708(0x385)](_0x2962ef){const _0x4660c0=_0x3c9708;return'unitId'in _0x2962ef&&_0x4660c0(0x331)in _0x2962ef;}['exportImage'](_0xe4cbc9,_0x1244de){const _0x1e01b9=_0x3c9708;if(!this[_0x1e01b9(0x385)](_0xe4cbc9))return Promise[_0x1e01b9(0x254)](void 0x0);let _0x28bd5a=_0xe4cbc9[_0x1e01b9(0x31a)]()['size'];return this[_0x1e01b9(0x2d8)][_0x1e01b9(0x11c)]({'unitId':_0xe4cbc9[_0x1e01b9(0x359)],'chartId':_0xe4cbc9[_0x1e01b9(0x229)](),'width':Math[_0x1e01b9(0x18f)](0x1,(_0x28bd5a==null?void 0x0:_0x28bd5a[_0x1e01b9(0x386)])??0x1),'height':Math[_0x1e01b9(0x18f)](0x1,(_0x28bd5a==null?void 0x0:_0x28bd5a[_0x1e01b9(0x2b3)])??0x1),'format':_0x1244de==null?void 0x0:_0x1244de['format'],'mode':'main'});}};function _0x5cd6(){const _0x20e933=['manual','addPopup','_componentManager','dispose$','_openFloatMenu','_renderModelManager','payload','getDataUrl','call','_popupRuntimeKey','lineAndArea','getRenderUnitById','BoardChartModelService','1667928MpqdZO','ChartStyleSection','useDependency','219PGNMSI','jsx','transparent','_chartThemeService','changeStart$','_modelService','board-chart','PenIcon','ChartHostAdapter','UniverInstanceType','boards-chart-ui.section.relation','waterfallStyle','BOARD_INSERT_CHART_PANEL_COMPONENT','set','boards-chart-ui.common.horizontalAxis','Legend','boards-chart-ui.sunburst.hierarchy','IBoardUIStateService','additionalRenderAdapters','Column','includes','setValue','_boardElementService','useState','focusedId','onerror','boards-chart-ui.common.tableDataEmpty','Candlestick','boards-chart-ui.common.setup','getValue','crossOrigin','elementAdd$','univer-flex\x20univer-justify-end\x20univer-gap-2','left','resolveChartElementSelection','syncLayout','markNotReady','Chart','defaultChartConfig','getId','has','elementId','ghost','decorate','closePath','onInserted','univer-w-full\x20!univer-min-w-0','_injector','_activePanelDisposable','_interactionSurfaceService','useChartTypeFieldState','setFocusedSwimlaneLane','format','_activePanelKey','merge','boards-chart-ui.common.cancel','getElementById','scroll','makeDirty','Data','GeneralSeries','_univerInstanceService','ChartPieStyleSection','innerHeight','changeChartSource','2736372dlqCgc','funnel','transformStart','children','chartTypeSupportsLineAndAreaStyle','deepClone','dataSource','bounds','828965HoWrka','ChartSeriesRightAxisField','onClose','boards-chart-ui.candlestick.columnsError','_renderContext','boards-chart-ui.section.radar','univer-p-4\x20univer-text-sm\x20univer-text-gray-500\x20dark:!univer-text-gray-400','boards-chart-ui.common.verticalAxis','target','resolve','createIdentifier','_resolveFrameStyle','_themeService','6YbPHkm','boards-chart-ui.section.histogram','DEFAULT_CHART_RADAR_VALUES','IBoardChartUIService','ChartSectionAccordionContent','_buildPopupSelectionKey','boards-chart-ui.common.category','resourceService','_disposeChartEventSubscriptions','_openEditSession','Boxplot','context','image','ChartSeriesSelector','DEFAULT_CHART_LINE_AND_AREA_VALUES','source','@univerjs-pro/boards-chart-ui','SetBoardChartSnapshotMutation','board.chart.floating-toolbar','_chartRenderService','board-chart-floating-toolbar','getUnit','GridlinesAndTicks','board-chart.dialog.data-editor','arc','Plugin','ThemeService','DEFAULT_CHART_WATERFALL_SETUP_VALUES','toPrimitive','inline','_resourceService','ChartSectionAccordionItem','resolveChartEditPanelRoute','getRect','_activeSession$','BoardToolType','BoardChartOpenEditController','_popupDisposable','waterfall','boxSizing','ChartEditorCapability','board-chart.data-editor-dialog','_applyHostStyle','ParetoLineSeries','_popupSessionKey','RightVerticalAxis','config','lineWidth','ChartSectionAccordion','useObservable','Treemap','ChartDataSourceRuntimeStatus','radar','key','_isPopupSelectionStillActive','_requestSnapshotForObject','_getBoardsUIConfig','zIndex','isRowDirection','_chartUIService','packageName','clip','toSpec','color','_configService','DEFAULT_CHART_SERIES_VALUES','subUnitId','length','clsx','_frameStyle','top-center','series','_clearActiveLayer','ChartAxisSection','\x20has\x20no\x20render\x20config.','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','OPERATION','getHostStyle','ChartParetoSeriesSection','_uiStateService','getChart','value','bind','createElement','boards-chart-ui.section.indicatorLine','onCancel','_createChartRenderInstanceContext','column','legend','DEFAULT_CHART_AXIS_VALUES','BOARD_CHART_SNAPSHOT_BORDER_WIDTH','height','object','SVG','element','ChartNumberFormatTextField','getObjectIncludeInGroup','_editSessionService','heatmap','BoardChartClipboardAdapter','chartStyle','titleKey','BoardChartRenderAdapter','relation','boards-chart-ui.section.lineAndArea','pareto','stopPropagation','_drawChartImage','ChartEditBlockTitle','section','emitEvent','strokeWidth','Separator','split','primary','IBoardSidePanelService','map','beginPath','isDarkMode','BoardChartSnapshotRefreshController','syncObject','model','_listenChartResourceMutations','resolveBoardChartSnapshotStyle','close','localPoint','UNIVER_BOARDS_CHART_UI_PLUGIN','activeTool','_snapshotService','selectionChange','ChartCommonDataMappingSection','axisId','_showPopupForSelection','onDispose$','ParetoBarSeries','ChartThemeService','mode','enabled','ChartSnapshotQueue','ChartIndicatorLineSection','complete','ChartEditPanelTabs','function','catch','top','useRef','_attachScheduled','UniverBoardsChartPlugin','Series','isInlineChartDataSource','pipe','keys','filter','_chartEventDisposables','collect','onload','visible','clientX','_appendRenderAdapter','typeOptions','CHART_TYPE_CATALOG','univer-relative\x20univer-h-full\x20univer-w-full\x20univer-overflow-hidden','ChartSeriesPointFields','seriesId','borderColor','clientHeight','unsubscribe','drawImage','Trendline','size','push','parseInt','subscribeEvent','string','UniverRenderEnginePlugin','strokeStyle','onCommandExecuted','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_config','getActiveSession','getChartInlineTableMinColumns','_shouldWaitForChartConfig','chartModelAdded$','engine','getTransformerByCreate','BoardChartSnapshotRenderService','univer-flex\x20univer-flex-col\x20univer-gap-2','ChartEditorProvider','boards-chart-ui.section.paretoBar','ChartSeriesTypeField','ChartWordCloudRepeatField','useChartEditorChartType','DependentOn','UnknownOption','getInfo','resolveRotatedBoardObjectAnchorBound','error','_chartEventHandlers','name','RxDisposable','changeDataSource','_adapterRegistry','_objectDblclickDisposables','ChartLegendSection','hit','IBoardElementService','IUniverInstanceService','status','Button','absolute','button','dispose','default','tryPrepareInlineChartData','onFileLoaded$','ICanvasPopupService','_localeService','getElement','slice','getDataEditState','doubleClick','_domLayerService','getFrameStyle','src','open','board-chart-style-panel','Relation','min(1120px,\x20calc(100vw\x20-\x2032px))','onStarting','boards-chart-ui.section.funnel','getBoardElementRenderObjectKey','chartBitsUtils','InlineChartCreationIssueCode','toDisposable','scene','chartType','ChartSectionAccordionTrigger','boards-chart-ui.common.apply','ChartElementFloatMenuAdapterRegistry','executeCommand','boards-chart-ui.common.editData','boards-chart-ui.section.wordCloud','tryBuildInlineChartCreationPlan','get','isFinite','clientY','popup','baseOn','delete-chart','activeRuntimeModel','ChartReferencedDataSourceEditor','_resolveElementObject','_getChartRuntimeKey','border','parseInlineChartTable','next','getDataSource','unitId','activeRuntimeModel$','type','plan','DEFAULT_CHART_STYLE_VALUES','Line','!univer-w-36\x20!univer-min-w-0','board.operation.chart.open-data-editor','boards-chart-ui.common.label','combineLatest','ChartImageExportService','_registerAdapter','ChartInlineTableEditor','BoardChartUIService','UNIVER_BOARD','delete','univer-shrink-0\x20univer-px-3','defineProperty','ChartWordCloudMaskImageIdField','setActiveChartRuntime','getBoundingClientRect','add','ChartHostRenderMode','_element','Disposable','ChartEditPanel','stroke','_syncSelectionState','stylizeSpec','showFloatMenu','IRenderManagerService','elementRemove$','ChartHeatmapStyleSection','chartId','activeSession$','applyHostStyle','vertical','getCacheKey','_activeChart','CHART_ELEMENT_FLOAT_MENU_COMPONENT','LocaleService','boards-chart-ui.section.candlestick','pending','clientWidth','supports','width','BoardChartConfigAdapter','translate','asObservable','PieStyle','subscribe','_adapter','trendline','transformByState','_draw','then','refreshChartModel','referenced','offsetWidth','darkMode','registerRenderModule','restore','label','touchDependencies','getRenderColor','disposeWithMe','BoardChartPanelController','DeleteIcon','ComponentManager','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','DEFAULT_BOARD_CHART_VALUES','DEFAULT_CHART_RELATION_VALUES','BOARDS_UI_PLUGIN_CONFIG_KEY','Image','fromEvent','boards-chart-ui.common.customize','_syncPanel','hidden','SetBoardChartDataSourceMutation','dataSources','preventDefault','VerticalAxis','BoardChartSelectionController','BoardElementType','chartInvalidated$','Injector','some','getElementData','edit-chart','createRenderInput','nativeEvent','number','DEFAULT_CHART_PIE_VALUES','Pie','BehaviorSubject','ChartEditPanelTab','_canvasPopupService','getCanvasElement','Chord','DEFAULT_CHART_HEATMAP_VALUES','code','right','_elementStateService','boards-chart-ui.config','border-box','resolveDefaultChartHostFrameStyle','BoardChartResourceService','BoardInteractionSurfaceService','_activeLayerDisposable','UpdateBoardChartConfigCommand','ChartWordCloudShapeField','from','registerItem','scaleY','symbol','UniverBoardsChartUIPlugin','lineTo','getRuntimeContext','params','CommandType','setElementEditMode','IDialogService','ChartTrendlineSection','InsertBoardChartCommand','_disposeChartEventSubscription','univer-text-xs\x20univer-text-red-600\x20dark:!univer-text-red-400','boards-chart-ui.chord.target','executeChartUpdateConfig','boards-chart-ui.common.editChart','_clearPopup','READY','boards-chart-ui.section.paretoLine','getChartModel','ChartThemeField','ensureChartModel','_closeActivePanel','_host','univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','chart','exportImage','updateFrameStyle','boards-chart-ui.candlestick.low','style','_drawFrameStroke','_bindChartEventHandlers','ChartSeriesDataLabelFields','_snapshotRefreshers','boards-chart-ui.common.deleteChart','checkMounted','CHART_HOST_DEFAULT_BORDER_RADIUS','ChartFunnelStyleSection','updateItem','markReady','render','hostFill','boards-chart-ui.section.treemap','RemoveBoardChartSnapshotMutation','_notifyScene','boards-chart-ui.chartTypes.','_activeLayerId','IConfigService','_activeEditOverlay','_chartEventSubscriptions','rgba(255,\x20255,\x20255,\x200.18)','frameStyle','ChartSeriesBorderFields','setActiveChartById','Radar','Failed\x20to\x20render\x20board\x20chart\x20snapshot:\x20','issue','setConfig','createChartInstance','Histogram','_updateFrameStyle','boards-chart-ui.common.chartAndAxisTitles','boards-chart-ui.common.data','registerCommand','Board\x20chart\x20snapshot\x20rendering\x20requires\x20a\x20browser\x20document.','ChartSeriesRoot','version','preparePaste','dataUrl','Gauge','BoardChartDataEditService','labelId','px\x20solid\x20','WordCloud','isElementEditModeActive','attachPopupToObject','ChartTitlesSection','radius','ChartTypeSpecificStyleSection','board-chart.snapshot-renderer','_scheduleAttachObjectDoubleClicks','values','targetUnitId','wordCloud','charts','ChartSeriesFillFields','ensureMount','pie','IndicatorLine','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','DEFAULT_CHART_WORD_CLOUD_VALUES','join','Inject','boards-chart-ui.section.gauge','boards-chart-ui.common.insertChartFailed','IChartRenderModelManagerService','ChartWaterfallSetupFields','ChartStyle','config$','toolbar','useMemo','save','_attachNativeLoadHandlers','resize','createObject','IBoardElementStateService','_popupSelectionKey','_closePopup','naturalHeight','resolveChartRuntimeStyle','angle','rightY','_chartInstanceMap','programmatic','5714TXTftV','jsxs','fill','backgroundColor','boards-chart-ui.section.sunburst','offsetHeight','RemoveBoardChartDataSourceMutation','useEffect','click','IBoardClipboardResourceAdapterService','themeBorderColor','span','getState','scaleX','elements','small','select','ChartSeriesDataPointFields','_commandService','onDblclick$','ready','borderRadius','boards-chart-ui.dataEditor.updateFailed','selectElements','boards-chart-element-float-menu','updateElement','LineAndArea','max','ChartRadarStyleSection','_removeRenderAdapter','Tools','register','boards-chart-ui.candlestick.high','elementIdMap','isTransforming','HorizontalAxis','generateRandomId','invalidateChart','ChartTypeSpecificDataSection','changeEnd$','6206193pQnkEc','oKey','buildChartTypeSelectOptions','EmptyData','_clearActiveEditOverlay','borderWidth','ChartRelationStyleSection','2931230zocfOx','flipY','DEFAULT_CHART_FUNNEL_VALUES','_native','overflow','_attachObjectDoubleClicks','updateDataForChart','boards-chart-ui.section.pie','tab','Sunburst','_sidePanelService','WaterfallSeries','dataSourceId','Heatmap','div','DEFAULT_CHART_LEGEND_VALUES','elementDataItem','createChartInlineStarterData','_renderService','_clearPopupIfSelectionChanged','ChartTypeField','clear','ChartTypeBits','univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','getElementOrder','axis','_registerComponents','_renderManagerService','getSnapshot','takeUntil','18fWjZqp','extraProps','chartElement','getDirection','preserveTransform','tools','Waterfall','DataUrlImageChartHost','route','_init','BoardChartFloatingToolbarRenderController','839793WbJtui','forEach','find','ChartImageExportFormat','_chartElementEditMode','pendingInsert','boards-chart-ui.candlestick.open','borderClassName','boards-chart-ui.common.value','requestSnapshot','_instanceService','chartTypeSupportsCapability','interactionSurfaceActive$','Select','UniverBoardsUIPlugin','ChartEditPanelSection','selectedIds','DisposableCollection','Funnel','ChartAndAxisTitles','_setActiveEditOverlay','min','chartIdByElementId','state$','ICommandService','prototype','_bindChartEventHandler','cumulativeLineStyle','direction$','InvalidCandlestickData','setStyle','getObject','throttleTime','Bubble','enableChartTool','bottom','insertParams','registerChartInstance'];_0x5cd6=function(){return _0x20e933;};return _0x5cd6();}Q=x([b(0x0,(0x0,n[_0x3c9708(0x15e)])(a[_0x3c9708(0x363)])),b(0x1,(0x0,n[_0x3c9708(0x15e)])(B))],Q);const Ve=_0x3c9708(0x2d6);let $=class extends n[_0x3c9708(0x271)]{constructor(_0x26c0b3=h,_0x422f9d,_0x430708,_0x489132){const _0x53bc08=_0x3c9708;super(),this[_0x53bc08(0x30a)]=_0x26c0b3,this[_0x53bc08(0x231)]=_0x422f9d,this[_0x53bc08(0x298)]=_0x430708,this[_0x53bc08(0x1be)]=_0x489132,y(this,_0x53bc08(0x38c),null);let {..._0x3b82da}=(0x0,n[_0x53bc08(0x238)])({},h,this[_0x53bc08(0x30a)]);this['_configService'][_0x53bc08(0x13b)](m,_0x3b82da);}[_0x3c9708(0x33c)](){const _0x5d4e61=_0x3c9708;this['disposeWithMe'](this[_0x5d4e61(0x231)][_0x5d4e61(0x34b)](n['ICommandService'])[_0x5d4e61(0x141)](ae)),[[L],[B],[Q],[T,{'useClass':E}],[j],[w],[K],[Y],[Z],[H],[q]]['forEach'](_0x4eeeb9=>this['_injector'][_0x5d4e61(0x36e)](_0x4eeeb9)),(0x0,n[_0x5d4e61(0x398)])(this[_0x5d4e61(0x231)],[[L],[B],[Q],[T],[j],[w],[K]]),this[_0x5d4e61(0x231)]['get'](q);let _0x5b1a5b=this['_injector'][_0x5d4e61(0x34b)](Y);this[_0x5d4e61(0x38c)]=_0x5b1a5b,this[_0x5d4e61(0x2f6)](_0x5b1a5b),this['disposeWithMe']((0x0,n['toDisposable'])(()=>{const _0x23f9d1=_0x5d4e61;this['_removeRenderAdapter'](_0x5b1a5b),this[_0x23f9d1(0x38c)]=null;}));let _0x5b1b5b=this[_0x5d4e61(0x231)][_0x5d4e61(0x34b)](t[_0x5d4e61(0x17d)]);this[_0x5d4e61(0x39a)](_0x5b1b5b['registerAdapter'](this[_0x5d4e61(0x231)]['get'](Z))),this[_0x5d4e61(0x39a)](this['_injector'][_0x5d4e61(0x34b)](H));}['onReady'](){const _0x230dfc=_0x3c9708;this[_0x230dfc(0x39a)](this[_0x230dfc(0x1be)][_0x230dfc(0x395)](n[_0x230dfc(0x20b)][_0x230dfc(0x367)],A)),this[_0x230dfc(0x39a)](this[_0x230dfc(0x1be)][_0x230dfc(0x395)](n[_0x230dfc(0x20b)][_0x230dfc(0x367)],V)),this[_0x230dfc(0x39a)](this['_renderManagerService'][_0x230dfc(0x395)](n['UniverInstanceType'][_0x230dfc(0x367)],R)),this[_0x230dfc(0x39a)](this['_renderManagerService']['registerRenderModule'](n[_0x230dfc(0x20b)][_0x230dfc(0x367)],k));}['_appendRenderAdapter'](_0x1301fb){const _0x462107=_0x3c9708;var _0x13c8f3,_0x8df424;let _0x52e1e7=this['_getBoardsUIConfig'](),_0x498066=_0x52e1e7[_0x462107(0x214)]??[];_0x498066[_0x462107(0x216)](_0x1301fb)||this[_0x462107(0x298)][_0x462107(0x13b)](t[_0x462107(0xd9)],{..._0x52e1e7,'additionalRenderAdapters':[..._0x498066,_0x1301fb],'toolbar':{..._0x52e1e7[_0x462107(0x165)],'tools':{...(_0x13c8f3=_0x52e1e7['toolbar'])==null?void 0x0:_0x13c8f3[_0x462107(0x1c6)],[e[_0x462107(0x27b)][_0x462107(0x227)]]:He((_0x8df424=_0x52e1e7[_0x462107(0x165)])==null||(_0x8df424=_0x8df424[_0x462107(0x1c6)])==null?void 0x0:_0x8df424[e['BoardToolType']['Chart']])}}});}[_0x3c9708(0x191)](_0x20d654){const _0x16e6b7=_0x3c9708;var _0x12b719;let _0x150a64=this[_0x16e6b7(0x290)](),_0x119c71=(_0x12b719=_0x150a64[_0x16e6b7(0x214)])==null?void 0x0:_0x12b719[_0x16e6b7(0x2f0)](_0x4ccbc1=>_0x4ccbc1!==_0x20d654);this[_0x16e6b7(0x298)]['setConfig'](t[_0x16e6b7(0xd9)],{..._0x150a64,'additionalRenderAdapters':_0x119c71});}[_0x3c9708(0x290)](){const _0x474233=_0x3c9708;return this[_0x474233(0x298)]['getConfig'](t[_0x474233(0xd9)])??{};}};y($,'pluginName',Ve),y($,_0x3c9708(0x294),we),y($,_0x3c9708(0x144),Te),y($,_0x3c9708(0x35b),n[_0x3c9708(0x20b)]['UNIVER_BOARD']),$=x([(0x0,n[_0x3c9708(0x318)])(f['UniverLicensePlugin'],p[_0x3c9708(0x306)],e['UniverBoardsPlugin'],a['UniverChartUIPlugin'],i[_0x3c9708(0x2eb)],t[_0x3c9708(0x1da)]),b(0x1,(0x0,n[_0x3c9708(0x15e)])(n[_0x3c9708(0xe6)])),b(0x2,n[_0x3c9708(0x131)]),b(0x3,p['IRenderManagerService'])],$);function He(_0x3fa805){const _0x5cb21a=_0x3c9708;return _0x3fa805===!0x1?!0x1:typeof _0x3fa805!='object'||{..._0x3fa805,'enabled':_0x3fa805[_0x5cb21a(0x2e1)]??!0x0};}exports['BOARDS_CHART_UI_PLUGIN_CONFIG_KEY']=m,exports['BOARDS_CHART_UI_PLUGIN_NAME']=Ve,exports[_0x3c9708(0x2b2)]=0x0,Object[_0x3c9708(0x36a)](exports,_0x3c9708(0x2bb),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x3c9708(0x36a)](exports,_0x3c9708(0x148),{'enumerable':!0x0,'get':function(){return j;}}),Object['defineProperty'](exports,'BoardChartEditSessionService',{'enumerable':!0x0,'get':function(){return w;}}),Object[_0x3c9708(0x36a)](exports,_0x3c9708(0x1cb),{'enumerable':!0x0,'get':function(){return k;}}),Object['defineProperty'](exports,_0x3c9708(0x27c),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x3c9708(0x36a)](exports,_0x3c9708(0xd3),{'enumerable':!0x0,'get':function(){return R;}}),Object['defineProperty'](exports,_0x3c9708(0x2be),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x3c9708(0x36a)](exports,'BoardChartRenderService',{'enumerable':!0x0,'get':function(){return L;}}),Object['defineProperty'](exports,_0x3c9708(0xe3),{'enumerable':!0x0,'get':function(){return V;}}),Object['defineProperty'](exports,_0x3c9708(0x2cf),{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x3c9708(0x36a)](exports,_0x3c9708(0x311),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x3c9708(0x36a)](exports,_0x3c9708(0x366),{'enumerable':!0x0,'get':function(){return E;}}),exports['BoardDomChartHost']=ye,exports['IBoardChartSnapshotRendererService']=Se,exports[_0x3c9708(0x25b)]=T,Object['defineProperty'](exports,_0x3c9708(0x104),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x3c9708(0x1ee)]=He,exports[_0x3c9708(0x2d3)]=z;
|