drizzle-cube 0.13.0 → 0.13.1
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/dist/adapters/ActivityGridChart.config-BDe2_qYC.js +1 -0
- package/dist/adapters/ActivityGridChart.config-BY3cUifC.cjs +1 -0
- package/dist/adapters/AreaChart.config-CaLEu4WZ.cjs +1 -0
- package/dist/adapters/AreaChart.config-upS1qK9z.js +1 -0
- package/dist/adapters/BarChart.config-CSbClrlz.cjs +1 -0
- package/dist/adapters/BarChart.config-GlYPKS8R.js +1 -0
- package/dist/adapters/BoxPlotChart.config-BIxjwA1O.cjs +1 -0
- package/dist/adapters/BoxPlotChart.config-DybpbTEl.js +1 -0
- package/dist/adapters/BubbleChart.config-CREi46jt.cjs +1 -0
- package/dist/adapters/BubbleChart.config-Di8lOOga.js +1 -0
- package/dist/adapters/CandlestickChart.config-BrbgDZcn.cjs +1 -0
- package/dist/adapters/CandlestickChart.config-CTHDWBM7.js +1 -0
- package/dist/adapters/DataTable.config-BpzbJKOY.cjs +1 -0
- package/dist/adapters/DataTable.config-DbPDoKSt.js +1 -0
- package/dist/adapters/DotStripChart.config-Bkj53d85.cjs +1 -0
- package/dist/adapters/DotStripChart.config-Xxte1OgG.js +1 -0
- package/dist/adapters/FunnelChart.config-CRbPp-7K.js +1 -0
- package/dist/adapters/FunnelChart.config-DfaMSLui.cjs +1 -0
- package/dist/adapters/GaugeChart.config-CKKMCRn4.js +1 -0
- package/dist/adapters/GaugeChart.config-CN7S1OEB.cjs +1 -0
- package/dist/adapters/HeatMapChart.config-BloGhLrU.js +1 -0
- package/dist/adapters/HeatMapChart.config-C94iqzfw.cjs +1 -0
- package/dist/adapters/KpiDelta.config-CMGQIfsy.cjs +1 -0
- package/dist/adapters/KpiDelta.config-qC8_1W29.js +1 -0
- package/dist/adapters/KpiNumber.config-CnYoD9WM.js +1 -0
- package/dist/adapters/KpiNumber.config-jxzFzY71.cjs +1 -0
- package/dist/adapters/KpiText.config--11XBVEz.js +1 -0
- package/dist/adapters/KpiText.config-DOYHINgD.cjs +1 -0
- package/dist/adapters/LineChart.config-Bt6XKzQj.js +1 -0
- package/dist/adapters/LineChart.config-nwC-IWRL.cjs +1 -0
- package/dist/adapters/MarkdownChart.config-Br1jAwCf.js +1 -0
- package/dist/adapters/MarkdownChart.config-CeqYtwrd.cjs +1 -0
- package/dist/adapters/MeasureProfileChart.config-B0G_11c9.js +1 -0
- package/dist/adapters/MeasureProfileChart.config-_ZC5pb_I.cjs +1 -0
- package/dist/adapters/PieChart.config-CZc5LcmR.js +1 -0
- package/dist/adapters/PieChart.config-D1tFIodJ.cjs +1 -0
- package/dist/adapters/ProportionBarChart.config-9zHgirKR.cjs +1 -0
- package/dist/adapters/ProportionBarChart.config-BMIYtg7Q.js +1 -0
- package/dist/adapters/RadarChart.config-CYPyOMbT.js +1 -0
- package/dist/adapters/RadarChart.config-mPXx8Moz.cjs +1 -0
- package/dist/adapters/RadialBarChart.config-EzhjUjvA.cjs +1 -0
- package/dist/adapters/RadialBarChart.config-l9yaKru1.js +1 -0
- package/dist/adapters/RecordsTable.config-BNKcGGjX.cjs +1 -0
- package/dist/adapters/RecordsTable.config-CbtJMaVG.js +1 -0
- package/dist/adapters/RetentionCombinedChart.config-CtJ-q7Gr.js +1 -0
- package/dist/adapters/RetentionCombinedChart.config-Y47OjDeH.cjs +1 -0
- package/dist/adapters/RetentionHeatmap.config-BqLV6f6o.cjs +1 -0
- package/dist/adapters/RetentionHeatmap.config-DPNhEK1p.js +1 -0
- package/dist/adapters/SankeyChart.config-Dipd6fNz.cjs +1 -0
- package/dist/adapters/SankeyChart.config-DpK5pFy5.js +1 -0
- package/dist/adapters/ScatterChart.config-BfDDAH83.cjs +1 -0
- package/dist/adapters/ScatterChart.config-C90xKdE-.js +1 -0
- package/dist/adapters/SunburstChart.config-CacceE1E.cjs +1 -0
- package/dist/adapters/SunburstChart.config-MoFnOy0s.js +1 -0
- package/dist/adapters/TreeMapChart.config-BYHi-dzk.js +1 -0
- package/dist/adapters/TreeMapChart.config-CWSspab0.cjs +1 -0
- package/dist/adapters/WaterfallChart.config-CiOnjcsk.cjs +1 -0
- package/dist/adapters/WaterfallChart.config-TNtq-2mo.js +1 -0
- package/dist/adapters/{cors-headers-g45-9YKF.cjs → cors-headers-D0ofhz3k.cjs} +1 -1
- package/dist/adapters/{cors-headers-1y1YYuKm.js → cors-headers-DPNvO_6o.js} +4 -1
- package/dist/adapters/cors-headers.d.ts +10 -2
- package/dist/adapters/express/index.cjs +2 -2
- package/dist/adapters/express/index.d.ts +18 -2
- package/dist/adapters/express/index.js +42 -29
- package/dist/adapters/fastify/index.cjs +1 -1
- package/dist/adapters/fastify/index.js +6 -6
- package/dist/adapters/{handler-C3oYSaVM.cjs → handler-CRAPq8xB.cjs} +1 -1
- package/dist/adapters/{handler-C9ZFhsv6.js → handler-Dqe0_Uvx.js} +29 -34
- package/dist/adapters/hono/index.cjs +1 -1
- package/dist/adapters/hono/index.js +6 -6
- package/dist/adapters/mcp-app-html.cjs +1 -1
- package/dist/adapters/mcp-app-html.js +1 -1
- package/dist/adapters/nextjs/index.cjs +1 -1
- package/dist/adapters/nextjs/index.js +8 -3
- package/dist/cjs/adapters/cors-headers.d.ts +10 -2
- package/dist/cjs/adapters/express/index.d.ts +18 -2
- package/dist/client/charts.js +12 -12
- package/dist/client/chunks/{ActivityGridChart-BpA0H20k.js → ActivityGridChart-CmboSrmc.js} +2 -2
- package/dist/client/chunks/{ActivityGridChart-BpA0H20k.js.map → ActivityGridChart-CmboSrmc.js.map} +1 -1
- package/dist/client/chunks/{BubbleChart-Va-bRr3Y.js → BubbleChart-DiloeKCW.js} +2 -2
- package/dist/client/chunks/{BubbleChart-Va-bRr3Y.js.map → BubbleChart-DiloeKCW.js.map} +1 -1
- package/dist/client/chunks/{ChartStates-DV1Jtonz.js → ChartStates-oCfgZumF.js} +2 -2
- package/dist/client/chunks/{ChartStates-DV1Jtonz.js.map → ChartStates-oCfgZumF.js.map} +1 -1
- package/dist/client/chunks/{ChartSummaryHeader-DSmXm_lT.js → ChartSummaryHeader-nx-4H-in.js} +2 -2
- package/dist/client/chunks/{ChartSummaryHeader-DSmXm_lT.js.map → ChartSummaryHeader-nx-4H-in.js.map} +1 -1
- package/dist/client/chunks/{DashboardEditModal-CnbCHKtu.js → DashboardEditModal-6N8H3lXW.js} +7 -7
- package/dist/client/chunks/{DashboardEditModal-CnbCHKtu.js.map → DashboardEditModal-6N8H3lXW.js.map} +1 -1
- package/dist/client/chunks/{DataHistogram-zBz4Opmm.js → DataHistogram-DbQbA-Pi.js} +2 -2
- package/dist/client/chunks/{DataHistogram-zBz4Opmm.js.map → DataHistogram-DbQbA-Pi.js.map} +1 -1
- package/dist/client/chunks/{DotStripChart-D6o5DpPf.js → DotStripChart-HcSCkYDs.js} +4 -4
- package/dist/client/chunks/{DotStripChart-D6o5DpPf.js.map → DotStripChart-HcSCkYDs.js.map} +1 -1
- package/dist/client/chunks/{FunnelViews-DwvKEzU7.js → FunnelViews-SjgYxngb.js} +2 -2
- package/dist/client/chunks/{FunnelViews-DwvKEzU7.js.map → FunnelViews-SjgYxngb.js.map} +1 -1
- package/dist/client/chunks/{HeatMapChart-DqOZawm3.js → HeatMapChart-B9pj-KQi.js} +3 -3
- package/dist/client/chunks/{HeatMapChart-DqOZawm3.js.map → HeatMapChart-B9pj-KQi.js.map} +1 -1
- package/dist/client/chunks/{KpiDelta-CUqF9vVH.js → KpiDelta-1BfMFygT.js} +2 -2
- package/dist/client/chunks/{KpiDelta-CUqF9vVH.js.map → KpiDelta-1BfMFygT.js.map} +1 -1
- package/dist/client/chunks/{KpiText-Dply9kb4.js → KpiText-DzPeryRS.js} +2 -2
- package/dist/client/chunks/{KpiText-Dply9kb4.js.map → KpiText-DzPeryRS.js.map} +1 -1
- package/dist/client/chunks/{MarkdownChart-BlL5h7nK.js → MarkdownChart-_aif5Ye3.js} +3 -3
- package/dist/client/chunks/{MarkdownChart-BlL5h7nK.js.map → MarkdownChart-_aif5Ye3.js.map} +1 -1
- package/dist/client/chunks/{PortletAnalysisModal-CDw3uit7.js → PortletAnalysisModal-C0MLoJTP.js} +5 -5
- package/dist/client/chunks/{PortletAnalysisModal-CDw3uit7.js.map → PortletAnalysisModal-C0MLoJTP.js.map} +1 -1
- package/dist/client/chunks/{ProportionBarChart-CK0FlfTr.js → ProportionBarChart-B9Rgyhbc.js} +4 -4
- package/dist/client/chunks/{ProportionBarChart-CK0FlfTr.js.map → ProportionBarChart-B9Rgyhbc.js.map} +1 -1
- package/dist/client/chunks/{RecordsTable-DURm8ypj.js → RecordsTable-DRovI83Z.js} +4 -4
- package/dist/client/chunks/{RecordsTable-DURm8ypj.js.map → RecordsTable-DRovI83Z.js.map} +1 -1
- package/dist/client/chunks/{RetentionCombinedChart-90MBVuS7.js → RetentionCombinedChart-D_vAvtIb.js} +3 -3
- package/dist/client/chunks/{RetentionCombinedChart-90MBVuS7.js.map → RetentionCombinedChart-D_vAvtIb.js.map} +1 -1
- package/dist/client/chunks/{RetentionHeatmap-ChwWtk6j.js → RetentionHeatmap-CVEmxbg9.js} +2 -2
- package/dist/client/chunks/{RetentionHeatmap-ChwWtk6j.js.map → RetentionHeatmap-CVEmxbg9.js.map} +1 -1
- package/dist/client/chunks/{SchemaVisualization-RWq1-GVI.js → SchemaVisualization-DE8WBbNZ.js} +1 -1
- package/dist/client/chunks/{TextPortletModal-Fvuzf3mT.js → TextPortletModal-Bg5hFfZg.js} +3 -3
- package/dist/client/chunks/{TextPortletModal-Fvuzf3mT.js.map → TextPortletModal-Bg5hFfZg.js.map} +1 -1
- package/dist/client/chunks/{analysis-builder-4WfT396_.js → analysis-builder-BMoycXCE.js} +10 -10
- package/dist/client/chunks/{analysis-builder-4WfT396_.js.map → analysis-builder-BMoycXCE.js.map} +1 -1
- package/dist/client/chunks/{analysis-builder-shared-DQCAOl8f.js → analysis-builder-shared-D1KnOXT2.js} +8 -8
- package/dist/client/chunks/{analysis-builder-shared-DQCAOl8f.js.map → analysis-builder-shared-D1KnOXT2.js.map} +1 -1
- package/dist/client/chunks/{chart-activity-grid-C0V6erx3.js → chart-activity-grid-CiqEnzs_.js} +4 -4
- package/dist/client/chunks/{chart-activity-grid-C0V6erx3.js.map → chart-activity-grid-CiqEnzs_.js.map} +1 -1
- package/dist/client/chunks/{chart-area-D93yaXt_.js → chart-area-BgKyGty4.js} +6 -6
- package/dist/client/chunks/{chart-area-D93yaXt_.js.map → chart-area-BgKyGty4.js.map} +1 -1
- package/dist/client/chunks/{chart-bar-Cm5gacSp.js → chart-bar-BKTQ6zyq.js} +5 -5
- package/dist/client/chunks/{chart-bar-Cm5gacSp.js.map → chart-bar-BKTQ6zyq.js.map} +1 -1
- package/dist/client/chunks/{chart-box-plot-XWfiRDvb.js → chart-box-plot-FD8d8S_Y.js} +2 -2
- package/dist/client/chunks/{chart-box-plot-XWfiRDvb.js.map → chart-box-plot-FD8d8S_Y.js.map} +1 -1
- package/dist/client/chunks/{chart-bubble-B5eN2Ass.js → chart-bubble-BbmLUynL.js} +4 -4
- package/dist/client/chunks/{chart-bubble-B5eN2Ass.js.map → chart-bubble-BbmLUynL.js.map} +1 -1
- package/dist/client/chunks/{chart-candlestick-DkjqHZaS.js → chart-candlestick-DeDZSkhF.js} +2 -2
- package/dist/client/chunks/{chart-candlestick-DkjqHZaS.js.map → chart-candlestick-DeDZSkhF.js.map} +1 -1
- package/dist/client/chunks/{chart-config-area-BAQ3OOX8.js → chart-config-area-CiUGyEFe.js} +2 -2
- package/dist/client/chunks/{chart-config-area-BAQ3OOX8.js.map → chart-config-area-CiUGyEFe.js.map} +1 -1
- package/dist/client/chunks/{chart-config-bar-BI_fdiHp.js → chart-config-bar-CgnxLwWK.js} +2 -2
- package/dist/client/chunks/{chart-config-bar-BI_fdiHp.js.map → chart-config-bar-CgnxLwWK.js.map} +1 -1
- package/dist/client/chunks/{chart-config-kpi-delta-B_RTgzlg.js → chart-config-kpi-delta-Bb-SdLfu.js} +2 -2
- package/dist/client/chunks/{chart-config-kpi-delta-B_RTgzlg.js.map → chart-config-kpi-delta-Bb-SdLfu.js.map} +1 -1
- package/dist/client/chunks/{chart-config-kpi-number-DJAk5ijx.js → chart-config-kpi-number-DrgZOOSX.js} +2 -2
- package/dist/client/chunks/{chart-config-kpi-number-DJAk5ijx.js.map → chart-config-kpi-number-DrgZOOSX.js.map} +1 -1
- package/dist/client/chunks/{chart-config-line-IvPzwe7J.js → chart-config-line-SZnp_5gb.js} +2 -2
- package/dist/client/chunks/{chart-config-line-IvPzwe7J.js.map → chart-config-line-SZnp_5gb.js.map} +1 -1
- package/dist/client/chunks/{chart-config-pie-XmiWQBnz.js → chart-config-pie-DgM8pgZ3.js} +2 -2
- package/dist/client/chunks/{chart-config-pie-XmiWQBnz.js.map → chart-config-pie-DgM8pgZ3.js.map} +1 -1
- package/dist/client/chunks/{chart-config-radar-DgJ6MjX5.js → chart-config-radar-Bz7e2iJu.js} +2 -2
- package/dist/client/chunks/{chart-config-radar-DgJ6MjX5.js.map → chart-config-radar-Bz7e2iJu.js.map} +1 -1
- package/dist/client/chunks/{chart-config-radial-bar-XtEyL4I7.js → chart-config-radial-bar-Cq-77n9m.js} +2 -2
- package/dist/client/chunks/{chart-config-radial-bar-XtEyL4I7.js.map → chart-config-radial-bar-Cq-77n9m.js.map} +1 -1
- package/dist/client/chunks/{chart-config-tree-map-BPkeTgk_.js → chart-config-tree-map-CoeS1GRn.js} +2 -2
- package/dist/client/chunks/{chart-config-tree-map-BPkeTgk_.js.map → chart-config-tree-map-CoeS1GRn.js.map} +1 -1
- package/dist/client/chunks/{chart-data-table-LvjMZByO.js → chart-data-table-DLwFKymv.js} +3 -3
- package/dist/client/chunks/{chart-data-table-LvjMZByO.js.map → chart-data-table-DLwFKymv.js.map} +1 -1
- package/dist/client/chunks/{chart-funnel-B_YO8r5g.js → chart-funnel-BirEW77o.js} +3 -3
- package/dist/client/chunks/{chart-funnel-B_YO8r5g.js.map → chart-funnel-BirEW77o.js.map} +1 -1
- package/dist/client/chunks/{chart-gauge-BbcdeJ5v.js → chart-gauge-C4yS5138.js} +4 -4
- package/dist/client/chunks/{chart-gauge-BbcdeJ5v.js.map → chart-gauge-C4yS5138.js.map} +1 -1
- package/dist/client/chunks/{chart-heat-map-C35lzmXC.js → chart-heat-map-DvGcfud9.js} +4 -4
- package/dist/client/chunks/{chart-heat-map-C35lzmXC.js.map → chart-heat-map-DvGcfud9.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-delta-DB4S3nWz.js → chart-kpi-delta-BeReVMyn.js} +4 -4
- package/dist/client/chunks/{chart-kpi-delta-DB4S3nWz.js.map → chart-kpi-delta-BeReVMyn.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-number-D_NrcF-S.js → chart-kpi-number-CuYpI5LO.js} +4 -4
- package/dist/client/chunks/{chart-kpi-number-D_NrcF-S.js.map → chart-kpi-number-CuYpI5LO.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-text-CnaJn4Dj.js → chart-kpi-text-D3dha9Dn.js} +5 -5
- package/dist/client/chunks/{chart-kpi-text-CnaJn4Dj.js.map → chart-kpi-text-D3dha9Dn.js.map} +1 -1
- package/dist/client/chunks/{chart-line-B2R3wnGP.js → chart-line-EzYdBDdL.js} +6 -6
- package/dist/client/chunks/{chart-line-B2R3wnGP.js.map → chart-line-EzYdBDdL.js.map} +1 -1
- package/dist/client/chunks/{chart-markdown-DGPf7O38.js → chart-markdown-B1AZcI8Y.js} +3 -3
- package/dist/client/chunks/{chart-markdown-DGPf7O38.js.map → chart-markdown-B1AZcI8Y.js.map} +1 -1
- package/dist/client/chunks/{chart-measure-profile-CYli1HVY.js → chart-measure-profile-DaL9c2jy.js} +4 -4
- package/dist/client/chunks/{chart-measure-profile-CYli1HVY.js.map → chart-measure-profile-DaL9c2jy.js.map} +1 -1
- package/dist/client/chunks/{chart-pie-CsO68YHG.js → chart-pie-Dw3W8Qjg.js} +5 -5
- package/dist/client/chunks/{chart-pie-CsO68YHG.js.map → chart-pie-Dw3W8Qjg.js.map} +1 -1
- package/dist/client/chunks/{chart-radar-C17iNC8c.js → chart-radar-BhySlY7t.js} +4 -4
- package/dist/client/chunks/{chart-radar-C17iNC8c.js.map → chart-radar-BhySlY7t.js.map} +1 -1
- package/dist/client/chunks/{chart-radial-bar-ftFfZ-ob.js → chart-radial-bar-DXc37T3I.js} +4 -4
- package/dist/client/chunks/{chart-radial-bar-ftFfZ-ob.js.map → chart-radial-bar-DXc37T3I.js.map} +1 -1
- package/dist/client/chunks/{chart-sankey-BUSpiTBN.js → chart-sankey-Xi0rQvx-.js} +2 -2
- package/dist/client/chunks/{chart-sankey-BUSpiTBN.js.map → chart-sankey-Xi0rQvx-.js.map} +1 -1
- package/dist/client/chunks/{chart-scatter-Btk1kofc.js → chart-scatter-D7mMgM6E.js} +5 -5
- package/dist/client/chunks/{chart-scatter-Btk1kofc.js.map → chart-scatter-D7mMgM6E.js.map} +1 -1
- package/dist/client/chunks/{chart-sunburst-BoaobkAb.js → chart-sunburst-t3Qb3HI7.js} +2 -2
- package/dist/client/chunks/{chart-sunburst-BoaobkAb.js.map → chart-sunburst-t3Qb3HI7.js.map} +1 -1
- package/dist/client/chunks/{chart-tree-map-DL_NEnww.js → chart-tree-map-C0EZEE0y.js} +5 -5
- package/dist/client/chunks/{chart-tree-map-DL_NEnww.js.map → chart-tree-map-C0EZEE0y.js.map} +1 -1
- package/dist/client/chunks/{chart-waterfall-FXv1uwLV.js → chart-waterfall-C4rt-_iE.js} +4 -4
- package/dist/client/chunks/{chart-waterfall-FXv1uwLV.js.map → chart-waterfall-C4rt-_iE.js.map} +1 -1
- package/dist/client/chunks/{chartComponentRegistry-D5I9EH9T.js → chartComponentRegistry-lrQVhpz2.js} +4 -4
- package/dist/client/chunks/{chartComponentRegistry-D5I9EH9T.js.map → chartComponentRegistry-lrQVhpz2.js.map} +1 -1
- package/dist/client/chunks/{chartPlugin-BHp3WRCj.js → chartPlugin-QJVPr2DC.js} +12 -12
- package/dist/client/chunks/{chartPlugin-BHp3WRCj.js.map → chartPlugin-QJVPr2DC.js.map} +1 -1
- package/dist/client/chunks/{chartRegistry-Bmubf4iX.js → chartRegistry-C6U441qz.js} +10 -15
- package/dist/client/chunks/chartRegistry-C6U441qz.js.map +1 -0
- package/dist/client/chunks/{charts-core-CII8LhSd.js → charts-core-USDYqnlX.js} +2 -2
- package/dist/client/chunks/{charts-core-CII8LhSd.js.map → charts-core-USDYqnlX.js.map} +1 -1
- package/dist/client/chunks/{charts-loader-B6kvPaGV.js → charts-loader-i4Fe3mAw.js} +32 -32
- package/dist/client/chunks/{charts-loader-B6kvPaGV.js.map → charts-loader-i4Fe3mAw.js.map} +1 -1
- package/dist/client/chunks/{providers-jeBitA9w.js → providers-Bn1iccjx.js} +4 -4
- package/dist/client/chunks/{providers-jeBitA9w.js.map → providers-Bn1iccjx.js.map} +1 -1
- package/dist/client/chunks/{schema-visualization-D8DYZY2B.js → schema-visualization-D5HMwXPe.js} +5 -5
- package/dist/client/chunks/{schema-visualization-D8DYZY2B.js.map → schema-visualization-D5HMwXPe.js.map} +1 -1
- package/dist/client/chunks/{useCubeFieldLabel-CFIn-5yX.js → useCubeFieldLabel-CYdABa_m.js} +2 -2
- package/dist/client/chunks/{useCubeFieldLabel-CFIn-5yX.js.map → useCubeFieldLabel-CYdABa_m.js.map} +1 -1
- package/dist/client/chunks/{useCubeMetaQuery-CoYktIQn.js → useCubeMetaQuery-BQRQjE8r.js} +2 -2
- package/dist/client/chunks/{useCubeMetaQuery-CoYktIQn.js.map → useCubeMetaQuery-BQRQjE8r.js.map} +1 -1
- package/dist/client/chunks/{useDirtyStateTracking-BRiIxFzz.js → useDirtyStateTracking-DvlGcFpU.js} +2 -2
- package/dist/client/chunks/{useDirtyStateTracking-BRiIxFzz.js.map → useDirtyStateTracking-DvlGcFpU.js.map} +1 -1
- package/dist/client/chunks/{useExplainAI-Cxzacka-.js → useExplainAI-DGXJ0Rcg.js} +3 -3
- package/dist/client/chunks/{useExplainAI-Cxzacka-.js.map → useExplainAI-DGXJ0Rcg.js.map} +1 -1
- package/dist/client/chunks/{useTranslation-DiobqdOI.js → useTranslation-F7BGje95.js} +2 -2
- package/dist/client/chunks/{useTranslation-DiobqdOI.js.map → useTranslation-F7BGje95.js.map} +1 -1
- package/dist/client/components.js +4 -4
- package/dist/client/hooks.js +3 -3
- package/dist/client/icons.js +1 -1
- package/dist/client/index.js +11 -11
- package/dist/client/providers.js +1 -1
- package/dist/client/schema.js +1 -1
- package/dist/client-bundle-stats.html +1 -1
- package/dist/mcp-app/mcp-app.html +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +0 -5
- package/package.json +1 -1
- package/dist/adapters/ActivityGridChart.config-BSTVDQG3.js +0 -1
- package/dist/adapters/ActivityGridChart.config-D2oLDJki.cjs +0 -1
- package/dist/adapters/AreaChart.config-CaZVNqn-.cjs +0 -1
- package/dist/adapters/AreaChart.config-HUr9G5_c.js +0 -1
- package/dist/adapters/BarChart.config-BhYrmQ9W.js +0 -1
- package/dist/adapters/BarChart.config-BolWSYuN.cjs +0 -1
- package/dist/adapters/BoxPlotChart.config-DUxYeOWV.js +0 -1
- package/dist/adapters/BoxPlotChart.config-DxfUywRi.cjs +0 -1
- package/dist/adapters/BubbleChart.config-CNkdZMOF.cjs +0 -1
- package/dist/adapters/BubbleChart.config-DYtZIaKF.js +0 -1
- package/dist/adapters/CandlestickChart.config-C9ilaGM6.js +0 -1
- package/dist/adapters/CandlestickChart.config-CwOt677r.cjs +0 -1
- package/dist/adapters/DataTable.config-Br-X1vrT.js +0 -1
- package/dist/adapters/DataTable.config-BvuVZ9Jj.cjs +0 -1
- package/dist/adapters/DotStripChart.config-Beuh7di8.js +0 -1
- package/dist/adapters/DotStripChart.config-DViEbi8S.cjs +0 -1
- package/dist/adapters/FunnelChart.config-BnjD49Wp.js +0 -1
- package/dist/adapters/FunnelChart.config-DQob2fw6.cjs +0 -1
- package/dist/adapters/GaugeChart.config-4f1JNOsS.cjs +0 -1
- package/dist/adapters/GaugeChart.config-sHuMiR0R.js +0 -1
- package/dist/adapters/HeatMapChart.config-DGkFw6IU.js +0 -1
- package/dist/adapters/HeatMapChart.config-DUM2mA2Z.cjs +0 -1
- package/dist/adapters/KpiDelta.config-C3lTkG4L.js +0 -1
- package/dist/adapters/KpiDelta.config-KCvw480l.cjs +0 -1
- package/dist/adapters/KpiNumber.config-Bbt4Jk-l.cjs +0 -1
- package/dist/adapters/KpiNumber.config-DpVzsbkJ.js +0 -1
- package/dist/adapters/KpiText.config-B_wDkvrC.cjs +0 -1
- package/dist/adapters/KpiText.config-BpbC9fM8.js +0 -1
- package/dist/adapters/LineChart.config-C0JcDxH6.js +0 -1
- package/dist/adapters/LineChart.config-C2Xvxvxn.cjs +0 -1
- package/dist/adapters/MarkdownChart.config-5EolVJ3p.js +0 -1
- package/dist/adapters/MarkdownChart.config-YvMw-Ve_.cjs +0 -1
- package/dist/adapters/MeasureProfileChart.config-DYH3OLCF.cjs +0 -1
- package/dist/adapters/MeasureProfileChart.config-DxwRbnb1.js +0 -1
- package/dist/adapters/PieChart.config-DOkkTRV7.cjs +0 -1
- package/dist/adapters/PieChart.config-me-OCnBU.js +0 -1
- package/dist/adapters/ProportionBarChart.config--rJi1BjU.cjs +0 -1
- package/dist/adapters/ProportionBarChart.config-DAyp-gwk.js +0 -1
- package/dist/adapters/RadarChart.config-BA0Qep8F.cjs +0 -1
- package/dist/adapters/RadarChart.config-BMusTmHu.js +0 -1
- package/dist/adapters/RadialBarChart.config-CpN-rQQV.js +0 -1
- package/dist/adapters/RadialBarChart.config-CqKrOZ31.cjs +0 -1
- package/dist/adapters/RecordsTable.config-D1oll1Av.cjs +0 -1
- package/dist/adapters/RecordsTable.config-tQAxFn8Y.js +0 -1
- package/dist/adapters/RetentionCombinedChart.config-CfPPOzHw.js +0 -1
- package/dist/adapters/RetentionCombinedChart.config-DDX-9tjM.cjs +0 -1
- package/dist/adapters/RetentionHeatmap.config-DzmrQBgA.cjs +0 -1
- package/dist/adapters/RetentionHeatmap.config-sdYuBcId.js +0 -1
- package/dist/adapters/SankeyChart.config-BFkz9AUb.js +0 -1
- package/dist/adapters/SankeyChart.config-BKbMaV-d.cjs +0 -1
- package/dist/adapters/ScatterChart.config-D5tbnMBt.js +0 -1
- package/dist/adapters/ScatterChart.config-DlDcvEw6.cjs +0 -1
- package/dist/adapters/SunburstChart.config-Bb8nbyu6.cjs +0 -1
- package/dist/adapters/SunburstChart.config-CTRj2x0y.js +0 -1
- package/dist/adapters/TreeMapChart.config-DB99vBJS.cjs +0 -1
- package/dist/adapters/TreeMapChart.config-DviTwv0e.js +0 -1
- package/dist/adapters/WaterfallChart.config-CEOy3p3L.js +0 -1
- package/dist/adapters/WaterfallChart.config-DNBLGLpY.cjs +0 -1
- package/dist/client/chunks/chartRegistry-Bmubf4iX.js.map +0 -1
|
@@ -191,7 +191,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
191
191
|
`,fill:`none`,stroke:`#333`,strokeWidth:c,strokeOpacity:`0.2`},vg(l)))}var ADe=e=>{var t=e.link,n=e.nodes,r=e.left,i=e.top,a=e.i,o=e.linkContent,s=e.linkCurvature,c=t.sy,l=t.ty,u=t.dy,d=n[t.source],f=n[t.target];if(d!=null&&f!=null){var p=d.x+d.dx+r,m=f.x+r,h=uDe(p,m),g=h(s),_=h(1-s);return wV({sourceX:p,targetX:m,sourceY:d.y+c+u/2+i,targetY:f.y+l+u/2+i,sourceControlX:g,targetControlX:_,sourceRelativeY:c,targetRelativeY:l,linkWidth:u,index:a,payload:wV(wV({},t),{},{source:d,target:f})},yg(o))}};function jDe(e){var t=e.graphicalItemId,n=e.props,r=e.i,i=e.linkContent,a=e.onMouseEnter,o=e.onMouseLeave,s=e.onClick,c=e.dataKey,l=TDe(n),u=`link-${r}`,d=Gy();return y.createElement(wg,{onMouseEnter:e=>{d(XM({activeIndex:u,activeDataKey:c,activeCoordinate:l,activeGraphicalItemId:t})),a(n,e)},onMouseLeave:e=>{d(ZM()),o(n,e)},onClick:e=>{d($M({activeIndex:u,activeDataKey:c,activeCoordinate:l,activeGraphicalItemId:t})),s(n,e)}},kDe(i,n))}function MDe(e){var t=e.graphicalItemId,n=e.modifiedLinks,r=e.links,i=e.linkContent,a=e.onMouseEnter,o=e.onMouseLeave,s=e.onClick,c=e.dataKey;return y.createElement(wg,{className:`recharts-sankey-links`,key:`recharts-sankey-links`},r.map((e,r)=>{var l=n[r];return l==null?null:y.createElement(jDe,{graphicalItemId:t,key:`link-${e.source}-${e.target}-${e.value}`,props:l,linkContent:i,i:r,onMouseEnter:a,onMouseLeave:o,onClick:s,dataKey:c})}))}function NDe(e,t){return y.isValidElement(e)?y.cloneElement(e,t):typeof e==`function`?e(t):y.createElement(Tw,yV({className:`recharts-sankey-node`,fill:`#0088fe`,fillOpacity:`0.8`},vg(t)))}var PDe=e=>{var t=e.node,n=e.nodeContent,r=e.top,i=e.left,a=e.i,o=t.x,s=t.y,c=t.dx,l=t.dy;return wV(wV({},yg(n)),{},{x:o+i,y:s+r,width:c,height:l,index:a,payload:t})};function FDe(e){var t=e.graphicalItemId,n=e.props,r=e.nodeContent,i=e.i,a=e.onMouseEnter,o=e.onMouseLeave,s=e.onClick,c=e.dataKey,l=Gy(),u=wDe(n),d=`node-${i}`;return y.createElement(wg,{onMouseEnter:e=>{l(XM({activeIndex:d,activeDataKey:c,activeCoordinate:u,activeGraphicalItemId:t})),a(n,e)},onMouseLeave:e=>{l(ZM()),o(n,e)},onClick:e=>{l($M({activeIndex:d,activeDataKey:c,activeCoordinate:u,activeGraphicalItemId:t})),s(n,e)}},NDe(r,n))}function IDe(e){var t=e.graphicalItemId,n=e.modifiedNodes,r=e.nodeContent,i=e.onMouseEnter,a=e.onMouseLeave,o=e.onClick,s=e.dataKey;return y.createElement(wg,{className:`recharts-sankey-nodes`,key:`recharts-sankey-nodes`},n.map((e,n)=>y.createElement(FDe,{graphicalItemId:t,key:`node-${e.index}-${e.x}-${e.y}`,props:e,nodeContent:r,i:n,onMouseEnter:i,onMouseLeave:a,onClick:o,dataKey:s})))}var LDe=wV({accessibilityLayer:!0,align:`justify`,dataKey:`value`,iterations:32,linkCurvature:.5,margin:{top:5,right:5,bottom:5,left:5},nameKey:`name`,nodePadding:10,nodeWidth:10,sort:!0,verticalAlign:`justify`},TB);function RDe(e){e.className,e.style;var t=e.children,n=e.id,r=bV(e,tDe),i=e.link,a=e.dataKey,o=e.node,s=e.onMouseEnter,c=e.onMouseLeave,l=e.onClick,u=e.data,d=e.iterations,f=e.nodeWidth,p=e.nodePadding,m=e.sort,h=e.linkCurvature,g=e.margin,_=e.verticalAlign,v=e.align,b=e.accessibilityLayer,x=e.title,S=e.desc,C=vg(r),w=typeof C.tabIndex==`number`?C.tabIndex:b?0:void 0,T=typeof C.role==`string`?C.role:b?`application`:void 0,E=rC(),D=iC(),O=(0,y.useMemo)(()=>{if(!u||!E||!D||E<=0||D<=0)return{nodes:[],links:[],modifiedLinks:[],modifiedNodes:[]};var e=CDe({data:u,width:E-(g.left??0)-(g.right??0),height:D-(g.top??0)-(g.bottom??0),iterations:d,nodeWidth:f,nodePadding:p,sort:m,verticalAlign:_,align:v}),t=g.top||0,n=g.left||0,r=e.links.map((r,a)=>ADe({link:r,nodes:e.nodes,i:a,top:t,left:n,linkContent:i,linkCurvature:h})).filter(Kg),a=e.nodes.map((e,r)=>PDe({node:e,nodeContent:o,i:r,top:t,left:n}));return{nodes:e.nodes,links:e.links,modifiedLinks:r,modifiedNodes:a}},[u,E,D,g,d,f,p,m,i,o,h,v,_]),k=O.links,A=O.modifiedLinks,j=O.modifiedNodes,M=(0,y.useCallback)((e,t,n)=>{s&&s(e,t,n)},[s]),N=(0,y.useCallback)((e,t,n)=>{c&&c(e,t,n)},[c]),P=(0,y.useCallback)((e,t,n)=>{l&&l(e,t,n)},[l]);return!fS(E)||!fS(D)||!u||!u.links||!u.nodes?null:y.createElement(y.Fragment,null,y.createElement(bbe,{computedData:{links:A,nodes:j}}),y.createElement(Sg,yV({},C,{title:x,desc:S,role:T,tabIndex:w,width:E,height:D}),t,y.createElement(MDe,{graphicalItemId:n,links:k,modifiedLinks:A,linkContent:i,dataKey:a,onMouseEnter:(e,t)=>M(e,`link`,t),onMouseLeave:(e,t)=>N(e,`link`,t),onClick:(e,t)=>P(e,`link`,t)}),y.createElement(IDe,{graphicalItemId:n,modifiedNodes:j,nodeContent:o,dataKey:a,onMouseEnter:(e,t)=>M(e,`node`,t),onMouseLeave:(e,t)=>N(e,`node`,t),onClick:(e,t)=>P(e,`node`,t)})))}function jV(e){var t=hy(e,LDe),n=t.width,r=t.height,i=t.style,a=t.className,o=t.id,s=t.throttleDelay,c=t.throttledEvents,l=xV((0,y.useState)(null),2),u=l[0],d=l[1];return y.createElement(DB,{preloadedState:{options:DDe},reduxStoreName:a??`Sankey`},y.createElement(uC,{width:n,height:r}),y.createElement(dC,{margin:t.margin}),y.createElement(AB,{throttleDelay:s,throttledEvents:c}),y.createElement(VB,{className:a,style:i,width:n,height:r,responsive:!1,ref:e=>{e&&!u&&d(e)},onMouseEnter:void 0,onMouseLeave:void 0,onClick:void 0,onMouseMove:void 0,onMouseDown:void 0,onMouseUp:void 0,onContextMenu:void 0,onDoubleClick:void 0,onTouchStart:void 0,onTouchMove:void 0,onTouchEnd:void 0},y.createElement(aP.Provider,{value:u},y.createElement(RI,{id:o,type:`sankey`},e=>y.createElement(y.Fragment,null,y.createElement(ODe,{dataKey:t.dataKey,nameKey:t.nameKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,data:t.data,id:e}),y.createElement(RDe,yV({},t,{id:e})))))))}jV.displayName=`Sankey`;function MV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function NV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?MV(Object(n),!0).forEach(function(t){zDe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zDe(e,t,n){return(t=BDe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BDe(e){var t=VDe(e,`string`);return typeof t==`symbol`?t:t+``}function VDe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var HDe=[`axis`],UDe=NV(NV({},YB),{},{layout:`centric`,startAngle:90,endAngle:-270}),WDe=(0,y.forwardRef)((e,t)=>{var n=hy(e,UDe);return y.createElement(XB,{chartName:`RadarChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:HDe,tooltipPayloadSearcher:lP,categoricalChartProps:n,ref:t})}),GDe=[`item`],KDe=(0,y.forwardRef)((e,t)=>y.createElement(GB,{chartName:`ScatterChart`,defaultTooltipEventType:`item`,validateTooltipEventTypes:GDe,tooltipPayloadSearcher:lP,categoricalChartProps:e,ref:t}));function PV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function FV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?PV(Object(n),!0).forEach(function(t){qDe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qDe(e,t,n){return(t=JDe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JDe(e){var t=YDe(e,`string`);return typeof t==`symbol`?t:t+``}function YDe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var XDe=[`axis`,`item`],ZDe=FV(FV({},YB),{},{layout:`radial`,startAngle:0,endAngle:360}),QDe=(0,y.forwardRef)((e,t)=>{var n=hy(e,ZDe);return y.createElement(XB,{chartName:`RadialBarChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:XDe,tooltipPayloadSearcher:lP,categoricalChartProps:n,ref:t})}),$De=[`axis`],IV=(0,y.forwardRef)((e,t)=>y.createElement(GB,{chartName:`ComposedChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:$De,tooltipPayloadSearcher:lP,categoricalChartProps:e,ref:t}));function eOe(e,t){return iOe(e)||rOe(e,t)||nOe(e,t)||tOe()}function tOe(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
192
192
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nOe(e,t){if(e){if(typeof e==`string`)return LV(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?LV(e,t):void 0}}function LV(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rOe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function iOe(e){if(Array.isArray(e))return e}function RV(){return RV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RV.apply(null,arguments)}function zV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function BV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zV(Object(n),!0).forEach(function(t){aOe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aOe(e,t,n){return(t=oOe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oOe(e){var t=sOe(e,`string`);return typeof t==`symbol`?t:t+``}function sOe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var cOe={fontWeight:`bold`,paintOrder:`stroke fill`,fontSize:`.75rem`,stroke:`#FFF`,fill:`black`,pointerEvents:`none`};function VV(e){if(!e.children||e.children.length===0)return 1;var t=e.children.map(e=>VV(e));return 1+Math.max(...t)}var lOe=y.memo(e=>{var t=e.dataKey,n=e.nameKey,r=e.data,i=e.stroke,a=e.fill,o=e.positions,s=e.id,c={dataDefinedOnItem:r.children,getPosition:e=>o.get(e),settings:{stroke:i,strokeWidth:void 0,fill:a,nameKey:n,dataKey:t,name:n?void 0:t,hide:!1,type:void 0,color:a,unit:``,graphicalItemId:s}};return y.createElement(wI,{tooltipEntrySettings:c})}),uOe={top:0,right:0,bottom:0,left:0},dOe=(e,t)=>{if(t!=null)return jg(e,t)},fOe=function(e){return`${arguments.length>1&&arguments[1]!==void 0?arguments[1]:``}children[${e}]`},pOe={options:{validateTooltipEventTypes:[`item`],defaultTooltipEventType:`item`,chartName:`Sunburst`,tooltipPayloadSearcher:dOe,eventEmitter:void 0}},mOe=BV({padding:2,dataKey:`value`,nameKey:`name`,ringPadding:2,innerRadius:50,fill:`#333`,stroke:`#FFF`,textOptions:cOe,startAngle:0,endAngle:360,responsive:!1},TB),hOe=e=>{var t=e.className,n=e.data,r=e.children,i=e.padding,a=e.dataKey,o=e.nameKey,s=e.ringPadding,c=e.innerRadius,l=e.fill,u=e.stroke,d=e.textOptions,f=e.outerRadius,p=e.cx,m=e.cy,h=e.startAngle,g=e.endAngle,_=e.onClick,v=e.onMouseEnter,b=e.onMouseLeave,x=e.id,S=Gy(),C=rC(),w=iC();if(C==null||w==null)return null;var T=f??Math.min(C,w)/2,E=p??C/2,D=m??w/2,O=IO([0,n[a]],[0,g]),k=VV(n),A=(T-c)/k,j=[],M=new Map([]);function N(e,t){v&&v(e,t),S(XM({activeIndex:e.tooltipIndex,activeDataKey:a,activeCoordinate:M.get(e.name),activeGraphicalItemId:x}))}function P(e,t){b&&b(e,t),S(ZM())}function F(e){_&&_(e),S($M({activeIndex:e.tooltipIndex,activeDataKey:a,activeCoordinate:M.get(e.name),activeGraphicalItemId:x}))}function ee(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=t.radius,o=t.innerR,c=t.initialAngle,f=t.childColor,p=t.nestedActiveTooltipIndex,m=c;e&&e.forEach((e,t)=>{var c=n===1?`[${t}]`:fOe(t,p),h=BV(BV({},e),{},{tooltipIndex:c}),g=O(e[a]),_=m,v=e?.fill??f??l,b=Aw(0,0,o+r/2,-(_+g-g/2)),x=b.x,S=b.y;m+=g,j.push(y.createElement(`g`,{key:`sunburst-sector-${e.name}-${t}`},y.createElement(Lw,{onClick:()=>F(h),onMouseEnter:e=>N(h,e),onMouseLeave:e=>P(h,e),fill:v,stroke:u,strokeWidth:i,startAngle:_,endAngle:_+g,innerRadius:o,outerRadius:o+r,cx:E,cy:D}),y.createElement(XP,RV({},d,{alignmentBaseline:`middle`,textAnchor:`middle`,x:x+E,y:D-S}),e[a])));var C=Aw(E,D,o+r/2,_),w=C.x,T=C.y;return M.set(e.name,{x:w,y:T}),ee(e.children,{radius:r,innerR:o+r+s,initialAngle:_,childColor:v,nestedActiveTooltipIndex:c},n+1)})}ee(n.children,{radius:A,innerR:c,initialAngle:h});var te=mg(`recharts-sunburst`,t);return y.createElement(Sg,{width:C,height:w},y.createElement(wg,{className:te},j),y.createElement(lOe,{dataKey:a,nameKey:o,data:n,stroke:u,fill:l,positions:M,id:x}),r)},gOe=e=>{var t=hy(e,mOe),n=t.className,r=t.width,i=t.height,a=t.responsive,o=t.style,s=t.id,c=t.throttleDelay,l=t.throttledEvents,u=eOe((0,y.useState)(null),2),d=u[0],f=u[1];return y.createElement(DB,{preloadedState:pOe,reduxStoreName:n??`SunburstChart`},y.createElement(uC,{width:r,height:i}),y.createElement(dC,{margin:uOe}),y.createElement(AB,{throttleDelay:c,throttledEvents:l}),y.createElement(aP.Provider,{value:d},y.createElement(VB,{className:n,width:r,height:i,responsive:a,style:o,ref:e=>{d==null&&e!=null&&f(e)},onMouseEnter:void 0,onMouseLeave:void 0,onClick:void 0,onMouseMove:void 0,onMouseDown:void 0,onMouseUp:void 0,onContextMenu:void 0,onDoubleClick:void 0,onTouchStart:void 0,onTouchMove:void 0,onTouchEnd:void 0},y.createElement(RI,{id:s,type:`sunburst`},e=>y.createElement(hOe,RV({},t,{id:e}))))))},_Oe,vOe,yOe,bOe,xOe;function HV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function UV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?HV(Object(n),!0).forEach(function(t){SOe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function SOe(e,t,n){return(t=COe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function COe(e){var t=wOe(e,`string`);return typeof t==`symbol`?t:t+``}function wOe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function WV(){return WV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WV.apply(null,arguments)}function TOe(e,t){return kOe(e)||OOe(e,t)||DOe(e,t)||EOe()}function EOe(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
193
193
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DOe(e,t){if(e){if(typeof e==`string`)return GV(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?GV(e,t):void 0}}function GV(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OOe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function kOe(e){if(Array.isArray(e))return e}function KV(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var qV=(e,t,n,r,i)=>{var a=n-r,o=Ng(_Oe||=KV([`M `,`,`,``]),e,t);return o+=Ng(vOe||=KV([`L `,`,`,``]),e+n,t),o+=Ng(yOe||=KV([`L `,`,`,``]),e+n-a/2,t+i),o+=Ng(bOe||=KV([`L `,`,`,``]),e+n-a/2-r,t+i),o+=Ng(xOe||=KV([`L `,`,`,` Z`]),e,t),o},AOe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},jOe=e=>{var t=hy(e,AOe),n=t.x,r=t.y,i=t.upperWidth,a=t.lowerWidth,o=t.height,s=t.className,c=t.animationEasing,l=t.animationDuration,u=t.animationBegin,d=t.isUpdateAnimationActive,f=(0,y.useRef)(null),p=TOe((0,y.useState)(-1),2),m=p[0],h=p[1],g=(0,y.useRef)(i),_=(0,y.useRef)(a),v=(0,y.useRef)(o),b=(0,y.useRef)(n),x=(0,y.useRef)(r),S=hw(e,`trapezoid-`);if((0,y.useEffect)(()=>{if(f.current&&f.current.getTotalLength)try{var e=f.current.getTotalLength();e&&h(e)}catch{}},[]),n!==+n||r!==+r||i!==+i||a!==+a||o!==+o||i===0&&a===0||o===0)return null;var C=mg(`recharts-trapezoid`,s);if(!d)return y.createElement(`g`,null,y.createElement(`path`,WV({},bg(t),{className:C,d:qV(n,r,i,a,o)})));var w=g.current,T=_.current,E=v.current,D=b.current,O=x.current,k=`0px ${m===-1?1:m}px`,A=`${m}px ${m}px`,j=gw([`strokeDasharray`],l,typeof c==`string`?c:`ease`);return y.createElement(mw,{animationId:S,key:S,canBegin:m>0,duration:l,easing:c,isActive:d,begin:u},e=>{var s=Hg(w,i,e),c=Hg(T,a,e),l=Hg(E,o,e),u=Hg(D,n,e),d=Hg(O,r,e);f.current&&(g.current=s,_.current=c,v.current=l,b.current=u,x.current=d);var p=e>0?{transition:j,strokeDasharray:A}:{strokeDasharray:k};return y.createElement(`path`,WV({},bg(t),{className:C,d:qV(u,d,s,c,l),ref:f,style:UV(UV({},p),t.style)}))})},MOe=[`option`];function NOe(e,t){if(e==null)return{};var n,r,i=POe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function POe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var JV=jOe;function FOe(e){var t=e.option,n=NOe(e,MOe);return y.createElement(bI,{option:t,DefaultShape:JV,shapeProps:n})}function YV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function XV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?YV(Object(n),!0).forEach(function(t){IOe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function IOe(e,t,n){return(t=LOe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LOe(e){var t=ROe(e,`string`);return typeof t==`symbol`?t:t+``}function ROe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var zOe=X([RS,(e,t)=>t,Vw],(e,t,n)=>{var r=t.data,i=t.dataKey,a=t.nameKey,o=t.tooltipType,s=t.lastShapeType,c=t.reversed,l=t.customWidth,u=t.cells,d=t.presentationProps,f=t.id,p=n.chartData,m;if(r!=null&&r.length>0?m=r:p!=null&&p.length>0&&(m=p),m&&m.length)m=m.map((e,t)=>XV(XV(XV({payload:e},d),e),u&&u[t]&&u[t].props));else if(u&&u.length)m=u.map(e=>XV(XV({},d),e.props));else return[];return ske({dataKey:i,nameKey:a,displayedData:m,tooltipType:o,lastShapeType:s,reversed:c,offset:e,customWidth:l,graphicalItemId:f})}),BOe=[`onMouseEnter`,`onClick`,`onMouseLeave`,`shape`,`activeShape`],VOe=[`id`],HOe=[`stroke`,`fill`,`legendType`,`hide`,`isAnimationActive`,`animationBegin`,`animationDuration`,`animationEasing`,`nameKey`,`lastShapeType`,`id`],UOe=[`id`];function ZV(e,t){return qOe(e)||KOe(e,t)||GOe(e,t)||WOe()}function WOe(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
194
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GOe(e,t){if(e){if(typeof e==`string`)return QV(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?QV(e,t):void 0}}function QV(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function KOe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function qOe(e){if(Array.isArray(e))return e}function $V(){return $V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$V.apply(null,arguments)}function eH(e,t){if(e==null)return{};var n,r,i=JOe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function JOe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function tH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tH(Object(n),!0).forEach(function(t){YOe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function YOe(e,t,n){return(t=XOe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XOe(e){var t=ZOe(e,`string`);return typeof t==`symbol`?t:t+``}function ZOe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var QOe=y.memo(e=>{var t=e.dataKey,n=e.nameKey,r=e.stroke,i=e.strokeWidth,a=e.fill,o=e.name,s=e.hide,c=e.tooltipType,l=e.formatter,u=e.data,d=e.trapezoids,f={dataDefinedOnItem:u,getPosition:e=>d[Number(e)]?.tooltipPosition,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,name:o,nameKey:n,hide:s,type:c,color:a,unit:``,formatter:l,graphicalItemId:e.id}};return y.createElement(wI,{tooltipEntrySettings:f})});function $Oe(e){var t=e.showLabels,n=e.trapezoids,r=e.children,i=(0,y.useMemo)(()=>{if(t)return n?.map(e=>{var t=e.labelViewBox;return nH(nH({},t),{},{value:e.name,payload:e.payload,parentViewBox:e.parentViewBox,viewBox:t,fill:e.fill})})},[t,n]);return y.createElement(hF,{value:i},r)}function eke(e){var t=e.trapezoids,n=e.allOtherFunnelProps,r=e.animationElapsedTime,i=e.isAnimating,a=e.isEntrance,o=Y(e=>KN(e,`item`,e.tooltip.settings.trigger,void 0)),s=n.onMouseEnter,c=n.onClick,l=n.onMouseLeave,u=n.shape,d=n.activeShape,f=eH(n,BOe),p=xI(s,n.dataKey,n.id),m=SI(l),h=CI(c,n.dataKey,n.id);return y.createElement(y.Fragment,null,t.map((e,t)=>{var n=!!d&&o===String(t),s=n?d:u,c=nH(nH({},e),{},{option:s,isActive:n,stroke:e.stroke,animationElapsedTime:r,isAnimating:i,isEntrance:a});c.id;var l=eH(c,VOe);return y.createElement(wg,$V({key:`trapezoid-${e?.x}-${e?.y}-${e?.name}-${e?.value}`,className:`recharts-funnel-trapezoid`},py(f,e,t),{onMouseEnter:p(e,t),onMouseLeave:m(e,t),onClick:h(e,t)}),y.createElement(FOe,l))}))}var tke=(e,t)=>e==null?[]:t===1?e.flatMap(e=>e.status===`removed`?[]:[e.next]):e.flatMap(e=>{if(e.status===`removed`)return[];if(e.status===`matched`)return[nH(nH({},e.next),{},{x:Hg(e.prev.x,e.next.x,t),y:Hg(e.prev.y,e.next.y,t),upperWidth:Hg(e.prev.upperWidth,e.next.upperWidth,t),lowerWidth:Hg(e.prev.lowerWidth,e.next.lowerWidth,t),height:Hg(e.prev.height,e.next.height,t)})];var n=e.next;return[nH(nH({},n),{},{x:Hg(n.x+n.upperWidth/2,n.x,t),y:Hg(n.y+n.height/2,n.y,t),upperWidth:Hg(0,n.upperWidth,t),lowerWidth:Hg(0,n.lowerWidth,t),height:Hg(0,n.height,t)})]});function nke(e){var t=e.previousTrapezoidsRef,n=e.props,r=n.trapezoids,i=n.isAnimationActive,a=n.animationBegin,o=n.animationDuration,s=n.animationEasing,c=n.animationInterpolateFn,l=sC(),u=PI(n.onAnimationStart,n.onAnimationEnd),d=u.isAnimating,f=u.handleAnimationStart,p=u.handleAnimationEnd;return l==null?null:y.createElement($Oe,{showLabels:!d,trapezoids:r},y.createElement(FI,{animationInput:r,animationIdPrefix:`recharts-funnel-`,items:r,previousItemsRef:t,isAnimationActive:i,animationBegin:a,animationDuration:o,animationEasing:s,onAnimationStart:f,onAnimationEnd:p,animationInterpolateFn:c,animationMatchBy:n.animationMatchBy,layout:l},(e,t,r)=>y.createElement(wg,null,y.createElement(eke,{trapezoids:e,allOtherFunnelProps:n,animationElapsedTime:t,isAnimating:d||t<1,isEntrance:r}))),y.createElement(yF,{label:n.label}),n.children)}function rke(e){var t=(0,y.useRef)(void 0);return y.createElement(nke,{props:e,previousTrapezoidsRef:t})}var ike=(e,t)=>{var n=t.width,r=t.height,i=t.left,a=t.top;return{realWidth:Bg(e,n,n),realHeight:r,offsetX:i,offsetY:a}},ake={animationBegin:400,animationDuration:1500,animationEasing:`ease`,animationInterpolateFn:tke,animationMatchBy:kI,fill:`#808080`,hide:!1,isAnimationActive:`auto`,lastShapeType:`triangle`,legendType:`rect`,nameKey:`name`,reversed:!1,shape:JV,stroke:`#fff`};function oke(e){var t=rL(),n=e.stroke,r=e.fill,i=e.legendType,a=e.hide,o=e.isAnimationActive,s=e.animationBegin,c=e.animationDuration,l=e.animationEasing,u=e.nameKey,d=e.lastShapeType,f=e.id,p=eH(e,HOe),m=vg(e),h=hI(e.children,xP),g=(0,y.useMemo)(()=>({dataKey:e.dataKey,nameKey:u,data:e.data,tooltipType:e.tooltipType,lastShapeType:d,reversed:e.reversed,customWidth:e.width,cells:h,presentationProps:m,id:f}),[e.dataKey,u,e.data,e.tooltipType,d,e.reversed,e.width,h,m,f]),_=Y(e=>zOe(e,g));if(a||!_||!_.length||!t)return null;var v=t.height,b=t.width,x=mg(`recharts-trapezoids`,e.className);return y.createElement(y.Fragment,null,y.createElement(QOe,{dataKey:e.dataKey,nameKey:e.nameKey,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,formatter:e.formatter,data:e.data,trapezoids:_,id:f}),y.createElement(wg,{className:x},y.createElement(rke,$V({},p,{id:f,stroke:n,fill:r,nameKey:u,lastShapeType:d,animationBegin:s,animationDuration:c,animationEasing:l,isAnimationActive:o,hide:a,legendType:i,height:v,width:b,trapezoids:_}))))}function ske(e){var t=e.dataKey,n=e.nameKey,r=e.displayedData,i=e.tooltipType,a=e.lastShapeType,o=e.reversed,s=e.offset,c=e.customWidth,l=e.graphicalItemId,u=ike(c,s),d=u.realHeight,f=u.realWidth,p=u.offsetX,m=u.offsetY,h=r.map(e=>{var n=hS(e,t,0);return typeof n==`number`?n:0}),g=Math.max.apply(null,h),_=r.length,v=d/_,y={x:s.left,y:s.top,width:s.width,height:s.height},b=r.map((e,o)=>{var s=hS(e,t,0),c=String(hS(e,n,o)),u=s,d;if(o!==_-1){var h=hS(r[o+1],t,0);if(typeof h==`number`)d=h;else if(Array.isArray(h)){var b=ZV(h,2),x=b[0],S=b[1];typeof x==`number`&&(u=x),typeof S==`number`&&(d=S)}}else if(s instanceof Array&&s.length===2){var C=ZV(s,2),w=C[0],T=C[1];typeof w==`number`&&(u=w),typeof T==`number`&&(d=T)}else d=a===`rectangle`?u:0;var E=g===0?p:(g-u)*f/(2*g)+p,D=v*o+m,O=g===0?0:u/g*f,k=g===0?0:d/g*f,A=[{name:c,value:u,payload:e,dataKey:t,type:i,graphicalItemId:l}],j={x:E+O/2,y:D+v/2},M={x:E,y:D,upperWidth:O,lowerWidth:k,width:Math.max(O,k),height:v};return nH(nH(nH({},M),{},{name:c,val:u,tooltipPayload:A,tooltipPosition:j},typeof e==`object`&&e?iV(e,[`width`]):{}),{},{payload:e,parentViewBox:y,labelViewBox:M})});return o&&(b=b.map((e,t)=>{var n={x:e.x-(e.lowerWidth-e.upperWidth)/2,y:e.y-t*v+(_-1-t)*v,upperWidth:e.lowerWidth,lowerWidth:e.upperWidth,width:Math.max(e.lowerWidth,e.upperWidth),height:v};return nH(nH(nH({},e),n),{},{tooltipPosition:nH(nH({},e.tooltipPosition),{},{y:e.y-t*v+(_-1-t)*v+v/2}),labelViewBox:n})})),b}function cke(e){var t=hy(e,ake),n=t.id,r=eH(t,UOe);return y.createElement(RI,{id:n,type:`funnel`},e=>y.createElement(oke,$V({},r,{id:e})))}var rH=cke;rH.displayName=`Funnel`;var lke=[`item`],uke=(0,y.forwardRef)((e,t)=>y.createElement(GB,{chartName:`FunnelChart`,defaultTooltipEventType:`item`,validateTooltipEventTypes:lke,tooltipPayloadSearcher:lP,categoricalChartProps:e,ref:t})),dke={xs:`dc:h-3 dc:w-3`,sm:`dc:h-6 dc:w-6`,md:`dc:h-8 dc:w-8`,lg:`dc:h-12 dc:w-12`};function iH({size:e=`md`,className:t=``}){return(0,J.jsx)(`div`,{className:`dc:animate-spin dc:rounded-full dc:border-b-2 ${dke[e]} ${t}`,style:{borderBottomColor:`var(--dc-primary)`},role:`status`,"aria-label":`Loading`})}function aH({children:e,height:t=`100%`,minHeight:n}){let r=n??void 0,{t:i}=fg(),a=(0,y.useRef)(null),[o,s]=(0,y.useState)(!1),[c,l]=(0,y.useState)({width:0,height:0}),u=(0,y.useRef)({width:0,height:0}),d=(0,y.useRef)(!1),f=(0,y.useRef)(null),p=(0,y.useRef)(null);(0,y.useLayoutEffect)(()=>{let e=!0,t=null,n=()=>{if(p.current=null,!e)return;let t=f.current;if(f.current=null,!t)return;let n=Math.round(t.width),r=Math.round(t.height);if(n<=0||r<=0)return;let i=u.current.width!==n||u.current.height!==r,a=!d.current;(i||a)&&(u.current={width:n,height:r},d.current=!0,(0,y.startTransition)(()=>{i&&l({width:n,height:r}),a&&s(!0)}))},r=(e,t)=>{f.current={width:e,height:t},p.current===null&&(p.current=requestAnimationFrame(n))};return t=new ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;e>0&&n>0&&r(e,n)}}),a.current&&(t.observe(a.current),(()=>{if(!e||!a.current)return;let t=a.current.getBoundingClientRect(),n=Math.max(a.current.clientWidth,t.width),i=Math.max(a.current.clientHeight,t.height);n>0&&i>0&&r(n,i)})()),()=>{e=!1,p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),t?.disconnect()}},[]);try{if(t===`100%`)return(0,J.jsx)(`div`,{ref:a,className:`dc:w-full dc:h-full dc:flex-1 dc:flex dc:flex-col dc:relative`,style:{minHeight:r??`250px`,minWidth:`100px`,overflow:`hidden`,userSelect:`none`},children:o&&c.width>0&&c.height>0?(0,J.jsx)(eC,{width:c.width,height:c.height-16,debounce:100,style:{marginTop:`16px`},children:e}):(0,J.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,children:(0,J.jsx)(iH,{size:`sm`})})});let n={height:typeof t==`number`?`${t}px`:t,width:`100%`,minHeight:r??`200px`,minWidth:`100px`,userSelect:`none`};return(0,J.jsx)(`div`,{ref:a,className:`dc:w-full dc:flex dc:flex-col dc:relative`,style:{...n,overflow:`hidden`},children:o&&c.width>0&&c.height>0?(0,J.jsx)(eC,{width:c.width,height:c.height-16,debounce:100,style:{marginTop:`16px`},children:e}):(0,J.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,children:(0,J.jsx)(iH,{size:`sm`})})})}catch(e){return(0,J.jsxs)(`div`,{className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full dc:h-full dc:p-4 dc:text-center dc:border dc:border-dashed dc:rounded-lg`,style:{height:t,borderColor:`var(--dc-border)`,backgroundColor:`var(--dc-surface)`},children:[(0,J.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1 text-dc-text-muted`,children:i(`chart.runtime.unableToDisplay`)}),(0,J.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:e instanceof Error?e.message:`Failed to create responsive container`})]})}}function fke(e){return{US:`USD`,CA:`CAD`,GB:`GBP`,UK:`GBP`,AU:`AUD`,NZ:`NZD`,EU:`EUR`,DE:`EUR`,FR:`EUR`,IT:`EUR`,ES:`EUR`,NL:`EUR`,BE:`EUR`,AT:`EUR`,IE:`EUR`,PT:`EUR`,FI:`EUR`,JP:`JPY`,CN:`CNY`,KR:`KRW`,IN:`INR`,BR:`BRL`,MX:`MXN`,CH:`CHF`,SE:`SEK`,NO:`NOK`,DK:`DKK`,PL:`PLN`,RU:`RUB`,ZA:`ZAR`,SG:`SGD`,HK:`HKD`,TW:`TWD`,TH:`THB`,MY:`MYR`,PH:`PHP`,ID:`IDR`,VN:`VND`,AE:`AED`,SA:`SAR`,IL:`ILS`,TR:`TRY`}[e.split(`-`)[1]?.toUpperCase()]||`USD`}function pke(e,t){if(!t)return{displayValue:e,abbreviationSuffix:``};let n=Math.abs(e);return n>=1e9?{displayValue:e/1e9,abbreviationSuffix:`B`}:n>=1e6?{displayValue:e/1e6,abbreviationSuffix:`M`}:n>=1e3?{displayValue:e/1e3,abbreviationSuffix:`K`}:{displayValue:e,abbreviationSuffix:``}}function mke(e,t){return e&&/^[A-Za-z]{3}$/.test(e)?e.toUpperCase():fke(t)}function hke(e){let{displayValue:t,abbreviate:n,abbreviationSuffix:r,decimals:i,locale:a}=e,o=mke(e.config.currencyCode,a);if(n&&r){let e=new Intl.NumberFormat(a,{style:`currency`,currency:o,minimumFractionDigits:i,maximumFractionDigits:i}).format(t),n=new Intl.NumberFormat(a,{style:`currency`,currency:o}).formatToParts(t);return n[n.length-1]?.type===`currency`?e.replace(/(\s*[^\d\s]+)$/,r+`$1`):e+r}return new Intl.NumberFormat(a,{style:`currency`,currency:o,minimumFractionDigits:i,maximumFractionDigits:i}).format(t)}function gke(e){let{displayValue:t,abbreviationSuffix:n,decimals:r,locale:i}=e,a=Math.abs(t)<=1&&!n?t*100:t;return new Intl.NumberFormat(i,{minimumFractionDigits:r,maximumFractionDigits:r}).format(a)+n+`%`}function _ke(e){let{displayValue:t,abbreviationSuffix:n,decimals:r,locale:i,config:a}=e,o=a.customPrefix||``,s=a.customSuffix||``;return o+new Intl.NumberFormat(i,{minimumFractionDigits:r,maximumFractionDigits:r}).format(t)+n+s}function oH(e){let{displayValue:t,abbreviationSuffix:n,decimals:r,locale:i}=e;return new Intl.NumberFormat(i,{minimumFractionDigits:r,maximumFractionDigits:r}).format(t)+n}var vke={currency:hke,percent:gke,custom:_ke,number:oH};function yke(e){return((e.config.unit?vke[e.config.unit]:void 0)||oH)(e)}function bke(e){if(!e.match(/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}:\d{2}/))return null;let t=e;e.includes(` `)&&(t=e.replace(` `,`T`).replace(`+00`,`Z`).replace(/\+\d{2}:\d{2}$/,`Z`)),!t.endsWith(`Z`)&&!t.includes(`+`)&&(t+=`Z`);let n=new Date(t);return isNaN(n.getTime())?null:{date:n,year:n.getUTCFullYear(),month:String(n.getUTCMonth()+1).padStart(2,`0`),day:String(n.getUTCDate()).padStart(2,`0`),hours:n.getUTCHours(),minutes:n.getUTCMinutes()}}function xke(e,t){let{date:n,year:r,month:i,day:a,hours:o,minutes:s}=e;switch(t.toLowerCase()){case`year`:return`${r}`;case`quarter`:return`${r}-Q${Math.floor(n.getUTCMonth()/3)+1}`;case`month`:return`${r}-${i}`;case`week`:return`${r}-${i}-${a}`;case`day`:return`${r}-${i}-${a}`;case`hour`:return`${r}-${i}-${a} ${String(o).padStart(2,`0`)}:00`;case`minute`:return`${r}-${i}-${a} ${String(o).padStart(2,`0`)}:${String(s).padStart(2,`0`)}`;default:return null}}function Ske(e){let{date:t,year:n,month:r,day:i,hours:a,minutes:o}=e,s=t.getUTCSeconds(),c=t.getUTCMilliseconds(),l=a===0&&o===0&&s===0&&c===0;return i===`01`&&l?r===`01`||r===`04`||r===`07`||r===`10`?`${n}-Q${Math.floor(t.getUTCMonth()/3)+1}`:`${n}-${r}`:l?`${n}-${r}-${i}`:o===0&&s===0&&c===0?`${n}-${r}-${i} ${String(a).padStart(2,`0`)}:00`:`${n}-${r}-${i} ${String(a).padStart(2,`0`)}:${String(o).padStart(2,`0`)}`}function sH(e){return e!=null&&!isNaN(Number(e))}function cH(e){if(e==null)return null;let t=typeof e==`string`?parseFloat(e):Number(e);return isNaN(t)?null:t}function lH(e){if(e==null)return`No data`;let t=typeof e==`number`?e:parseFloat(e);return isNaN(t)?String(e):Number.isInteger(t)?t.toLocaleString():parseFloat(t.toFixed(2)).toLocaleString()}function uH(e,t,n){if(e==null)return`No data`;let r=typeof e==`number`?e:parseFloat(String(e));if(isNaN(r))return String(e);if(!isFinite(r))return r>0?`∞`:`-∞`;let i=n||(typeof navigator<`u`?navigator.language:`en-US`);if(!t)return lH(e);let{abbreviate:a=!0,decimals:o}=t,{displayValue:s,abbreviationSuffix:c}=pke(r,a);return yke({displayValue:s,abbreviate:a,abbreviationSuffix:c,decimals:o===void 0?Number.isInteger(s)?0:2:o,locale:i,config:t})}function dH(e,t){if(!e)return`Unknown`;let n=String(e),r=bke(n);if(!r)return n;if(t){let e=xke(r,t);if(e!==null)return e}return Ske(r)}function fH(e,t){try{if(e?.timeDimensions){let n=e.timeDimensions.find(e=>t===e.dimension||t.startsWith(e.dimension.replace(`.`,`_`))||t===`${e.dimension}_${e.granularity}`);if(n?.granularity)return n.granularity}let n=t.match(/_([a-z]+)$/);if(n){let e=n[1];if([`year`,`quarter`,`month`,`week`,`day`,`hour`,`minute`,`second`].includes(e))return e}return}catch{return}}function Cke(e,t,n,r,i=e=>e){if(!e||e.length===0)return[];let a=fH(r,t);return e.map(e=>{let r={name:dH(e[t],a)||e[t]||`Unknown`};return n.forEach(t=>{let n=i(t);n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&(r[n]=cH(e[t]))}),r})}function pH(e,t,n,r,i,a=e=>e){if(!e||e.length===0)return{data:[],seriesKeys:[],hasDimensions:!1};let o=r||{},s=[...o.dimensions||[],...o.timeDimensions?.map(e=>e.dimension)||[]],c=o.measures||[],l=n.filter(e=>c.includes(e)),u=(i||[]).filter(e=>s.includes(e));if(u.length>0){let n={};return e.forEach(e=>{let i=fH(r,t),o=dH(e[t],i)||e[t]||`Unknown`;o!==`__proto__`&&o!==`constructor`&&o!==`prototype`&&(n[o]||(n[o]={name:String(o)}),l.forEach(t=>{let r=a(t);if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let i=cH(e[t]);if(i!==null){let e=n[o][r];n[o][r]=e==null?i:e+i}else r in n[o]||(n[o][r]=null)}),u.forEach(t=>{let r=e[t];if(r!=null){let t=String(r),i=l[0]||c.find(e=>e.includes(`totalCost`)||e.includes(`count`)||e.includes(`sum`))||c[0];if(i){if(t===`__proto__`||t===`constructor`||t===`prototype`)return;let r=cH(e[i]);if(r!==null){let e=n[o][t];n[o][t]=e==null?r:e+r}else t in n[o]||(n[o][t]=null)}}}))}),{data:Object.values(n),seriesKeys:Array.from(new Set(e.flatMap(e=>u.map(t=>{let n=e[t];return n==null?null:String(n)}).filter(e=>e!==null)))),hasDimensions:!0}}return{data:Cke(e,t,n,r,a),seriesKeys:n.map(e=>a(e)),hasDimensions:!1}}var wke=(e,t)=>e==null?[`No data`,t]:[lH(e),t];function mH({formatter:e,labelFormatter:t}){return(0,J.jsx)(bP,{formatter:e||wke,labelFormatter:t,contentStyle:{backgroundColor:`white`,border:`1px solid #e5e7eb`,borderRadius:`0.5rem`,fontSize:`0.875rem`,color:`#1f2937`,boxShadow:`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)`,padding:`8px 12px`}})}var hH=({x:e=0,y:t=0,payload:n,tickFormatter:r,index:i=0})=>{if(!n)return null;let a=r?r(n.value,i):String(n.value),o=a.length>16?`${a.slice(0,15)}\u2026`:a;return(0,J.jsx)(`g`,{transform:`translate(${e},${t})`,children:(0,J.jsx)(`text`,{x:0,y:0,dy:16,textAnchor:`end`,fill:`var(--dc-text-muted)`,fontSize:12,transform:`rotate(-45)`,children:o})})};function gH({height:e,hint:t,titleKey:n=`chart.runtime.noData`}){let{t:r}=fg();return(0,J.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:e},children:(0,J.jsxs)(`div`,{className:`dc:text-center`,children:[(0,J.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:r(n)}),t!=null&&(0,J.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:t})]})})}function _H({height:e,hint:t}){let{t:n}=fg();return(0,J.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-warning`,style:{height:e},children:(0,J.jsxs)(`div`,{className:`dc:text-center`,children:[(0,J.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:n(`chart.runtime.configError`)}),t!=null&&(0,J.jsx)(`div`,{className:`dc:text-xs`,children:t})]})})}function vH({height:e,chartType:t,error:n}){let{t:r}=fg();return(0,J.jsx)(`div`,{className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full text-dc-error dc:p-4`,style:{height:e},children:(0,J.jsxs)(`div`,{className:`dc:text-center`,children:[(0,J.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:r(`chart.runtime.chartError`,{chartType:t})}),(0,J.jsx)(`div`,{className:`dc:text-xs dc:mb-2`,children:n instanceof Error?n.message:r(`chart.runtime.unknownError`)}),(0,J.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted`,children:r(`chart.runtime.checkConfig`)})]})})}function yH(e){let t,n=[],r=[],i=null;return e?.xAxis&&e?.yAxis?(t=Array.isArray(e.xAxis)?e.xAxis[0]:e.xAxis,n=Array.isArray(e.yAxis)?e.yAxis:[e.yAxis],r=e.series||[]):e?.x&&e?.y?(t=e.x,n=Array.isArray(e.y)?e.y:[e.y]):i=`axisInvalid`,!i&&(!t||n.length===0)&&(i=`axisFields`),{xAxisField:t,yAxisFields:n,seriesFields:r,errorCode:i}}var bH=[`#3b82f6`,`#10b981`,`#f59e0b`,`#ef4444`,`#8b5cf6`,`#f97316`,`#06b6d4`,`#84cc16`],xH=[`#440154`,`#414487`,`#2a788e`,`#22a884`,`#7ad151`,`#fde725`],Tke=`#10b981`,SH={top:5,right:30,left:20,bottom:5};function CH(e){if(!e||typeof e!=`string`)return[];let t=e.trim();if(!t)return[];try{let e=t.split(`,`).map(e=>e.trim()).filter(e=>e!==``).map(e=>{let t=parseFloat(e);if(isNaN(t))throw Error(`Invalid numeric value: ${e}`);return t});return e.length>0?e:[]}catch(e){return console.warn(`Failed to parse target values:`,e),[]}}function Eke(e,t){if(e.length===0||t<=0)return[];if(e.length===1)return Array(t).fill(e[0]);let n=[],r=Math.floor(t/e.length),i=t%e.length,a=0;for(let t=0;t<e.length;t++){let o=r+ +(t<i);for(let r=0;r<o;r++)n[a++]=e[t]}return n}function Dke(e,t){return t===0?e===0?0:e>0?100:-100:(e-t)/t*100}function wH(e,t=1){return`${e>=0?`+`:``}${e.toFixed(t)}%`}function TH(e,t){return{hasRightAxis:e.some(e=>t[e]===`right`),leftAxisFields:e.filter(e=>(t[e]||`left`)===`left`),rightAxisFields:e.filter(e=>t[e]===`right`)}}function EH(e){return{...SH,left:40,right:e?40:20}}var Oke=6.6;function DH(e){let t=0;for(let n of e){if(n==null)continue;let e=String(n).length;e>t&&(t=e)}if(t===0)return 60;let n=t*Oke*Math.SQRT1_2,r=Math.ceil(n)+20;return Math.max(60,Math.min(r,96))}function OH(e){return EH(e).left+60}function kH(e,t){let n=Eke(CH(t||``),e.length);return{spreadTargets:n,enhancedChartData:n.length>0?e.map((e,t)=>({...e,__target:n[t]||null})):e}}function AH({hasRightAxis:e,leftAxisFields:t,rightAxisFields:n},r,i,a,o=!1){return(0,J.jsxs)(y.Fragment,{children:[(0,J.jsx)(Kz,{yAxisId:`left`,orientation:`left`,width:60,tick:{fontSize:12},tickFormatter:o?e=>`${(e*100).toFixed(0)}%`:i?e=>uH(e,i):void 0,domain:o?[0,1]:void 0,label:o?void 0:t.length>0?{value:i?.label||r(t[0]),angle:-90,position:`left`,style:{textAnchor:`middle`,fontSize:`12px`,fill:`var(--dc-text-muted)`}}:void 0}),e&&(0,J.jsx)(Kz,{yAxisId:`right`,orientation:`right`,tick:{fontSize:12},tickFormatter:a?e=>uH(e,a):void 0,label:n.length>0?{value:a?.label||r(n[0]),angle:90,position:`right`,style:{textAnchor:`middle`,fontSize:`12px`,fill:`var(--dc-text-muted)`}}:void 0})]})}function jH(e){return e.length===0?null:(0,J.jsxs)(y.Fragment,{children:[(0,J.jsx)(KR,{type:`monotone`,dataKey:`__target`,yAxisId:`left`,stroke:`#ffffff`,strokeWidth:2,dot:!1,activeDot:!1,connectNulls:!1}),(0,J.jsx)(KR,{type:`monotone`,dataKey:`__target`,yAxisId:`left`,name:`Target`,stroke:`#8B5CF6`,strokeWidth:2,strokeDasharray:`2 3`,dot:!1,activeDot:!1,connectNulls:!1})]})}function MH({leftYAxisFormat:e,rightYAxisFormat:t,yAxisAssignment:n,resolveField:r,isPercentStack:i=!1}){return(a,o)=>{if(a==null)return[`No data`,o];if(o===`Target`)return[uH(a,e),`Target Value`];if(i&&typeof a==`number`)return[`${(a*100).toFixed(1)}%`,o];let s=r(o);return[uH(a,(s&&n[s]===`right`?`right`:`left`)==`right`?t:e),o]}}function NH({show:e,iconType:t,paddingTop:n,onHover:r,onLeave:i}){return e?(0,J.jsx)(EC,{wrapperStyle:{fontSize:`12px`,paddingTop:`${n}px`},iconType:t,iconSize:8,layout:`horizontal`,align:`center`,verticalAlign:`bottom`,onMouseEnter:e=>r(String(e.dataKey||``)),onMouseLeave:i}):null}function kke(e){let t=e?.stackType??(e?.stacked?`normal`:`none`);return{shouldStack:t!==`none`,isPercentStack:t===`percent`}}function Ake(e,t){if(e.length===0||t.length===0)return{chartData:[],skippedCount:0};let n=e.filter(e=>t.some(t=>sH(e[t])));return{chartData:n,skippedCount:e.length-n.length}}function jke(e,t,n){let r=e.length===1&&t.some(t=>{let n=t[e[0]];return typeof n==`number`&&n<0});return{usePositiveNegativeColoring:r,useColorByCategory:e.length===1&&!r&&!n&&t.length>1}}function PH(e,t){return e?e===t?1:.3:1}function Mke({seriesKey:e,index:t,originalField:n,axisId:r,stackId:i,chartData:a,enhancedChartData:o,colorPalette:s,hoveredLegend:c,usePositiveNegativeColoring:l,useColorByCategory:u,drillEnabled:d,onDataPointClick:f}){let p=l?Tke:s?.colors&&s.colors[t%s.colors.length]||bH[t%bH.length];return(0,J.jsxs)(Tz,{dataKey:e,yAxisId:r,stackId:i,radius:i?void 0:[2,2,0,0],fill:p,fillOpacity:PH(c,e),cursor:d?`pointer`:void 0,onClick:(t,r,i)=>{f&&d&&t&&f({dataPoint:o[r]||t,clickedField:n||e,xValue:t.name,position:{x:i.clientX,y:i.clientY},nativeEvent:i})},children:[l&&a.map((t,n)=>{let r=t[e];return(0,J.jsx)(xP,{fill:typeof r==`number`&&r<0?`#ef4444`:`#10b981`,fillOpacity:PH(c,e)},`cell-${n}`)}),u&&a.map((t,n)=>{let r=s?.colors||bH;return(0,J.jsx)(xP,{fill:r[n%r.length],fillOpacity:PH(c,e)},`cat-${n}`)})]})}var FH=(0,y.createContext)(null);function IH(){let e=(0,y.useContext)(FH);if(!e)throw Error(`useCubeMeta must be used within CubeMetaProvider`);return e}function LH(){let e=(0,y.useContext)(FH);if(!e)throw Error(`useCubeFieldLabel must be used within CubeProvider`);return(0,y.useMemo)(()=>e.getFieldLabel,[e.getFieldLabel])}var Nke=y.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a,onDataPointClick:o,drillEnabled:s}){let{t:c}=fg(),[l,u]=(0,y.useState)(null),d=LH(),{shouldStack:f,isPercentStack:p}=kke(n),m={showLegend:n?.showLegend??!0,showGrid:n?.showGrid??!0,showTooltip:n?.showTooltip??!0},h=n?.showAllXLabels??!1,g=n?.leftYAxisFormat,_=n?.rightYAxisFormat,{xAxisField:v,yAxisFields:b,seriesFields:x,errorCode:S}=(0,y.useMemo)(()=>yH(t),[t]),{data:C,seriesKeys:w}=(0,y.useMemo)(()=>S||!e||e.length===0||!v?{data:[],seriesKeys:[]}:pH(e,v,b,r,x,d),[e,v,b,r,x,d,S]),T=(0,y.useMemo)(()=>t?.yAxisAssignment||{},[t?.yAxisAssignment]),E=(0,y.useMemo)(()=>{let e={};return b.forEach(t=>{let n=d(t);e[n]=t}),e},[b,d]),D=TH(b,T),{hasRightAxis:O}=D,{chartData:k,skippedCount:A}=(0,y.useMemo)(()=>Ake(C,w),[C,w]);try{if(!e||e.length===0)return(0,J.jsx)(gH,{height:i,hint:c(`chart.runtime.noDataHint.bar`)});if(S)return(0,J.jsx)(_H,{height:i,hint:c(`chart.runtime.configErrorHint.${S}`)});let t=f&&!O,r=p&&!O,v=r?`expand`:void 0,{usePositiveNegativeColoring:y,useColorByCategory:b}=jke(w,k,x.length),C=m.showLegend,j=EH(O),{spreadTargets:M,enhancedChartData:N}=kH(k,n?.target);return!k||k.length===0?(0,J.jsx)(gH,{height:i,titleKey:`chart.runtime.noValidData`,hint:`No valid data points for bar chart after transformation`}):(0,J.jsxs)(`div`,{className:`dc:relative dc:w-full`,style:{height:i},children:[(0,J.jsx)(aH,{height:A>0?`calc(100% - 20px)`:`100%`,children:(0,J.jsxs)(IV,{data:N,margin:j,stackOffset:v,accessibilityLayer:!1,children:[m.showGrid&&(0,J.jsx)(OR,{strokeDasharray:`3 3`,style:{pointerEvents:`none`}}),(0,J.jsx)(Vz,{dataKey:`name`,type:`category`,tick:(0,J.jsx)(hH,{}),height:DH(N.map(e=>e?.name)),interval:h?0:void 0}),AH(D,d,g,_,r),m.showTooltip&&(0,J.jsx)(mH,{formatter:MH({leftYAxisFormat:g,rightYAxisFormat:_,yAxisAssignment:T,resolveField:e=>E[e],isPercentStack:r})}),NH({show:C,iconType:`rect`,paddingTop:25,onHover:u,onLeave:()=>u(null)}),w.map((e,n)=>{let r=E[e],i=r&&T[r]===`right`?`right`:`left`;return(0,J.jsx)(Mke,{seriesKey:e,index:n,originalField:r,axisId:i,stackId:t?`stack`:void 0,chartData:k,enhancedChartData:N,colorPalette:a,hoveredLegend:l,usePositiveNegativeColoring:y,useColorByCategory:b,drillEnabled:s,onDataPointClick:o},e)}),jH(M)]})}),A>0&&(0,J.jsxs)(`div`,{className:`dc:text-xs text-dc-text-muted dc:text-center dc:mt-1`,children:[A,` data point`,A===1?``:`s`,` with no values hidden`]})]})}catch(e){return(0,J.jsx)(vH,{height:i,chartType:`Bar Chart`,error:e})}});function RH(e){return e.length>0&&`__periodIndex`in e[0]}function zH(e){if(!RH(e))return[];let t=new Set;for(let n of e)n.__period&&t.add(n.__period);return Array.from(t)}function Pke(e){if(!RH(e))return[];let t=new Set;for(let n of e)typeof n.__periodIndex==`number`&&t.add(n.__periodIndex);return Array.from(t).sort((e,t)=>e-t)}function BH(e,t){return t===0?`Current`:`Prior`}function Fke(e,t,n){if(e.length===0)return[];let r=[`__period`,`__periodIndex`,`__periodDayIndex`],i=e[0],a=[];for(let e of Object.keys(i))!t.includes(e)&&e!==n&&!r.includes(e)&&a.push(e);return a}function Ike(e,t){let n=new Map;for(let e of t)n.set(e,new Set);for(let r of e)for(let e of t)r[e]!==void 0&&r[e]!==null&&n.get(e).add(r[e]);return n}function Lke(e,t,n,r){if(!RH(e))return{data:e,seriesKeys:t,xAxisKey:n};let i=zH(e),a=Pke(e),o=Fke(e,t,n),s=o.length>0,c=s?Ike(e,o):null;return{data:zke(e,t,n,{dimensionFields:o,hasDimensions:s,periodLabels:i,getFieldLabel:r}),seriesKeys:Bke(t,i,a,{dimensionFields:o,uniqueDimensionValues:c,getFieldLabel:r}),xAxisKey:`__periodDayIndex`}}function Rke(e,t,n){return t.length===0?``:t.map(t=>{let r=e[t];return n?n(String(r)):String(r)}).join(` / `)}function zke(e,t,n,r){let{dimensionFields:i,hasDimensions:a,periodLabels:o,getFieldLabel:s}=r,c=new Map;for(let r of e){let e=r.__periodDayIndex,l=r.__periodIndex;c.has(e)||c.set(e,{__periodDayIndex:e,__displayDate:l===0?r[n]:void 0});let u=c.get(e);!u.__displayDate&&r[n]&&(u.__displayDate=r[n]);let d=a?Rke(r,i,s):``,f=BH(o[l]||``,l);for(let e of t){let t=s?s(e):e,n=d?`${d} - ${t} (${f})`:`${t} (${f})`;u[n]=r[e]}}return Array.from(c.values()).sort((e,t)=>e.__periodDayIndex-t.__periodDayIndex)}function Bke(e,t,n,r){let{dimensionFields:i,uniqueDimensionValues:a,getFieldLabel:o}=r,s=[],c=a?Vke(i,a,o):[``];for(let r of c)for(let i of e){let e=o?o(i):i;for(let i=0;i<n.length;i++){let n=BH(t[i]||``,i);s.push(r?`${r} - ${e} (${n})`:`${e} (${n})`)}}return s}function Vke(e,t,n){if(e.length===0)return[];if(e.length===1){let r=e[0];return Array.from(t.get(r)||[]).map(e=>n?n(String(e)):String(e))}let r=[],i=e.map(e=>Array.from(t.get(e)||[]));function a(e,t){if(e===i.length){let e=t.map(e=>n?n(String(e)):String(e));r.push(e.join(` / `))}else for(let n of i[e])a(e+1,[...t,n])}return a(0,[]),r}function Hke(e,t){if(t.length<2)return!1;for(let n=1;n<t.length;n++){let r=BH(t[n],n);if(e.includes(`(${r})`))return!0}return e.includes(`(Prior`)}function Uke(e=`dashed`){switch(e){case`solid`:return;case`dashed`:return`5 5`;case`dotted`:return`2 2`;default:return`5 5`}}function VH({props:e,color:t,drillEnabled:n,originalField:r,seriesKey:i,onDataPointClick:a,renderPlain:o}){let{cx:s,cy:c,payload:l,key:u}=e;if(s===void 0||c===void 0)return null;let d=e=>{e.stopPropagation(),e.preventDefault(),a&&a({dataPoint:l,clickedField:r||i,xValue:l.name,position:{x:e.clientX,y:e.clientY},nativeEvent:e})};return n&&a?(0,J.jsxs)(`g`,{children:[(0,J.jsx)(`circle`,{cx:s,cy:c,r:6,fill:`var(--dc-surface)`,style:{pointerEvents:`none`}}),(0,J.jsx)(`circle`,{cx:s,cy:c,r:4,fill:`var(--dc-surface)`,stroke:t,strokeWidth:2,cursor:`pointer`,onClick:e=>{d(e)}})]},u):o?(0,J.jsx)(`circle`,{cx:s,cy:c,r:3,fill:t},u):null}function HH(e,t,n,r){return e?dH(e,fH(t,n)):`Period ${r+1}`}function Wke(e,t,n,r){if(e)return(e,i)=>{let a=t[i];return HH(a?.__displayDate,n,r,Number(e))}}function Gke(e,t,n){if(e)return(e,r)=>HH((r&&r.length>0?r[0]?.payload:void 0)?.__displayDate,t,n,Number(e))}function Kke(e,t){let n=e?.stackType??(e?.stacked?`normal`:`none`),r=n!==`none`&&!t,i=n===`percent`&&!t;return{effectiveShouldStack:r,effectiveIsPercentStack:i,stackOffset:i?`expand`:void 0}}function UH(e,t){let n={};return e.forEach(e=>{n[t(e)]=e}),n}function qke(e){return t=>{if(e[t])return e[t];if(t.length>1e3)return;let n=t.replace(/\s*\((Current|Prior)\)$/,``).split(` - `);return e[n[n.length-1]]}}function WH(e,t){let n=e?.colors;return n&&n[t%n.length]||bH[t%bH.length]}function Jke(e,t,n){let{colorPalette:r,resolveField:i,yAxisAssignment:a,hoveredLegend:o,connectNulls:s,drillEnabled:c,onDataPointClick:l,hasComparisonData:u,periodLabels:d=[],priorPeriodStyle:f=`dashed`,priorPeriodOpacity:p=.5,showPoints:m=!0}=n,h=i(e),g=h&&a[h]===`right`?`right`:`left`,_=!!u&&Hke(e,d),v=_?Uke(f):void 0,y=_?p:1,b=WH(r,t),x=y;return o&&(x=o===e?1:.3),(0,J.jsx)(KR,{type:`monotone`,dataKey:e,yAxisId:g,stroke:b,strokeWidth:_?1.5:2,strokeDasharray:v,dot:_||!m?!1:t=>VH({props:t,color:b,drillEnabled:c,originalField:h,seriesKey:e,onDataPointClick:l,renderPlain:!0}),activeDot:m?!1:t=>VH({props:t,color:b,drillEnabled:c,originalField:h,seriesKey:e,onDataPointClick:l,renderPlain:!0}),strokeOpacity:x,connectNulls:s},e)}function Yke(e){return e.seriesKeys.map((t,n)=>Jke(t,n,e))}function Xke(e,t,n){let{colorPalette:r,seriesKeyToField:i,yAxisAssignment:a,hoveredLegend:o,connectNulls:s,shouldStack:c,drillEnabled:l,onDataPointClick:u,gradientIdPrefix:d,showPoints:f=!0}=n,p=i[e],m=p&&a[p]===`right`?`right`:`left`,h=WH(r,t),g=d&&!c?`url(#${d}-${t})`:h,_=.3,v=1;if(o){let t=o===e;_=t?.6:.1,v=t?1:.3}return(0,J.jsx)(uz,{type:`monotone`,dataKey:e,yAxisId:m,stackId:c?`stack`:void 0,stroke:h,fill:g,fillOpacity:_,strokeWidth:2,strokeOpacity:v,connectNulls:s,dot:f?t=>VH({props:t,color:h,drillEnabled:l,originalField:p,seriesKey:e,onDataPointClick:u,renderPlain:!0}):!1,activeDot:f?!1:t=>VH({props:t,color:h,drillEnabled:l,originalField:p,seriesKey:e,onDataPointClick:u,renderPlain:!0})},e)}function Zke(e,t,n){return(0,J.jsx)(`defs`,{children:e.map((e,r)=>{let i=WH(t,r);return(0,J.jsxs)(`linearGradient`,{id:`${n}-${r}`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,J.jsx)(`stop`,{offset:`0%`,stopColor:i,stopOpacity:1}),(0,J.jsx)(`stop`,{offset:`100%`,stopColor:i,stopOpacity:0})]},e)})})}function Qke(e){return e.seriesKeys.map((t,n)=>Xke(t,n,e))}function GH(e,t){if(!t)return!1;let n=e?.timeDimensions;return Array.isArray(n)?n.some(e=>e?.dimension===t):!1}function KH(e,t){return n=>{let r=e(n);return r&&t[r]===`right`?`right`:`left`}}function qH(e,t,n,r,i){return t.map((t,a)=>{let o=r?r(t):`left`,s=[],c;for(let n of e||[]){let e=n?.[t];if(e==null)continue;let r=typeof e==`number`?e:parseFloat(String(e));!isNaN(r)&&isFinite(r)&&(s.length===0&&(c=n),s.push(r))}let l=i?c?.[i]:void 0,u=l==null||l===``?void 0:String(l),d=WH(n,a);if(s.length===0)return{seriesKey:t,color:d,axis:o,current:null,baseline:null,absoluteChange:null,percentageChange:null};let f=s[s.length-1],p=s[0];if(s.length<2)return{seriesKey:t,color:d,axis:o,current:f,baseline:null,absoluteChange:null,percentageChange:null};let m=f-p;return{seriesKey:t,color:d,axis:o,current:f,baseline:p,absoluteChange:m,percentageChange:p===0?null:m/Math.abs(p)*100,baselineLabel:u}})}function $ke(e){let{data:t,xAxisField:n,yAxisFields:r,seriesFields:i,queryObject:a,getFieldLabel:o}=e,s=RH(t);if(s){let e=Lke(t,r,n,o);return{chartData:e.data,seriesKeys:e.seriesKeys,effectiveXAxisKey:`__periodDayIndex`,hasComparisonData:s,periodLabels:zH(t)}}let c=pH(t,n,r,a,i,o);return{chartData:c.data,seriesKeys:c.seriesKeys,effectiveXAxisKey:`name`,hasComparisonData:s,periodLabels:[]}}var JH=y.memo(function({summaries:e,getSeriesLabel:t,valueFormat:n,rightValueFormat:r,showChange:i=!0,leftOffset:a=0}){let{t:o}=fg();return e.length===0?null:(0,J.jsx)(`div`,{className:`dc:flex dc:flex-wrap dc:items-start dc:gap-x-8 dc:gap-y-2 dc:flex-shrink-0 dc:pr-1 dc:pb-2`,style:{paddingLeft:a},"data-testid":`chart-summary-header`,children:e.map(e=>{let a=i&&e.absoluteChange!==null,s=e.axis===`right`?r:n,c=(e.absoluteChange??0)>=0;return(0,J.jsxs)(`div`,{className:`dc:flex dc:flex-col dc:gap-0.5 dc:min-w-0`,children:[(0,J.jsxs)(`div`,{className:`dc:flex dc:items-center dc:gap-1.5 dc:min-w-0`,children:[(0,J.jsx)(`span`,{className:`dc:rounded-full dc:flex-shrink-0`,style:{width:8,height:8,backgroundColor:e.color}}),(0,J.jsx)(`span`,{className:`text-dc-text-secondary dc:truncate`,style:{fontSize:`12px`},children:t(e.seriesKey)})]}),(0,J.jsx)(`div`,{className:`dc:font-semibold dc:leading-none text-dc-text`,style:{fontSize:`24px`},children:e.current===null?`—`:uH(e.current,s)}),a&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:`dc:font-semibold dc:truncate`,style:{fontSize:`12px`,color:c?`#10b981`:`#ef4444`},children:[c?`+`:``,uH(e.absoluteChange,s),e.percentageChange!==null&&(0,J.jsxs)(J.Fragment,{children:[` (`,c?`+`:``,e.percentageChange.toFixed(1),`%)`]})]}),(0,J.jsx)(`div`,{className:`text-dc-text-muted dc:truncate`,style:{fontSize:`11px`},children:e.baselineLabel?o(`chart.runtime.summarySince`,{period:e.baselineLabel}):o(`chart.runtime.summarySincePeriodStart`)})]})]},e.seriesKey)})})}),eAe=y.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a,onDataPointClick:o,drillEnabled:s}){let{t:c}=fg(),[l,u]=(0,y.useState)(null),d=LH(),{xAxisField:f,yAxisFields:p,seriesFields:m,errorCode:h}=(0,y.useMemo)(()=>yH(t),[t]),g=(0,y.useMemo)(()=>t?.yAxisAssignment||{},[t?.yAxisAssignment]),_=(0,y.useMemo)(()=>UH(p,d),[p,d]);try{let t={showLegend:n?.showLegend??!0,showGrid:n?.showGrid??!0,showTooltip:n?.showTooltip??!0,connectNulls:n?.connectNulls??!1},v=n?.showAllXLabels??!1,y=n?.leftYAxisFormat,b=n?.rightYAxisFormat;if(!e||e.length===0)return(0,J.jsx)(gH,{height:i,hint:c(`chart.runtime.noDataHint.line`)});if(h)return(0,J.jsx)(_H,{height:i,hint:c(`chart.runtime.configErrorHint.${h}`)});let x=f,S=n?.priorPeriodStyle||`dashed`,C=n?.priorPeriodOpacity??.5,{chartData:w,seriesKeys:T,effectiveXAxisKey:E,hasComparisonData:D,periodLabels:O}=$ke({data:e,xAxisField:x,yAxisFields:p,seriesFields:m,queryObject:r,getFieldLabel:d}),k=qke(_),A=TH(p,g),{hasRightAxis:j}=A,M=n?.showSummary===!0&&T.length>0,N=M?qH(w,T,a,KH(k,g),D?void 0:E):[],P=t.showLegend&&!M,F=EH(j),{spreadTargets:ee,enhancedChartData:te}=kH(w,n?.target);return!w||w.length===0?(0,J.jsx)(gH,{height:i,titleKey:`chart.runtime.noValidData`,hint:`No valid data points for line chart after transformation`}):(0,J.jsxs)(`div`,{className:`dc:relative dc:w-full dc:flex dc:flex-col`,style:{height:i},children:[M&&(0,J.jsx)(JH,{summaries:N,getSeriesLabel:e=>e,valueFormat:y,rightValueFormat:b,showChange:GH(r,x),leftOffset:OH(j)}),(0,J.jsx)(`div`,{className:M?`dc:flex-1 dc:min-h-0`:`dc:contents`,children:(0,J.jsx)(aH,{height:M?`100%`:i,minHeight:M?0:void 0,children:(0,J.jsxs)(KB,{data:te,margin:F,accessibilityLayer:!1,children:[t.showGrid&&(0,J.jsx)(OR,{strokeDasharray:`3 3`,style:{pointerEvents:`none`}}),(0,J.jsx)(Vz,{dataKey:E,type:`category`,tick:(0,J.jsx)(hH,{tickFormatter:Wke(D,w,r,x)}),height:DH(te.map(e=>e?.[E])),interval:v?0:void 0}),AH(A,d,y,b),t.showTooltip&&(0,J.jsx)(mH,{formatter:MH({leftYAxisFormat:y,rightYAxisFormat:b,yAxisAssignment:g,resolveField:k}),labelFormatter:Gke(D,r,x)}),NH({show:P,iconType:`line`,paddingTop:25,onHover:u,onLeave:()=>u(null)}),Yke({seriesKeys:T,colorPalette:a,resolveField:k,yAxisAssignment:g,hoveredLegend:l,connectNulls:t.connectNulls,showPoints:n?.showPoints??!0,drillEnabled:s,onDataPointClick:o,hasComparisonData:D,periodLabels:O,priorPeriodStyle:S,priorPeriodOpacity:C}),jH(ee)]})})})]})}catch(e){return(0,J.jsx)(vH,{height:i,chartType:`Line Chart`,error:e})}}),tAe=y.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a,onDataPointClick:o,drillEnabled:s}){let{t:c}=fg(),[l,u]=(0,y.useState)(null),d=`dc-area-${(0,y.useId)().replace(/:/g,``)}`,f=LH(),{xAxisField:p,yAxisFields:m,seriesFields:h,errorCode:g}=(0,y.useMemo)(()=>yH(t),[t]),_=(0,y.useMemo)(()=>t?.yAxisAssignment||{},[t?.yAxisAssignment]),{data:v,seriesKeys:b}=(0,y.useMemo)(()=>g||!e||e.length===0||!p?{data:[],seriesKeys:[]}:pH(e,p,m,r,h,f),[e,p,m,r,h,f,g]);try{let t={showLegend:n?.showLegend??!0,showGrid:n?.showGrid??!0,showTooltip:n?.showTooltip??!0,connectNulls:n?.connectNulls??!1},h=n?.showAllXLabels??!1,y=n?.leftYAxisFormat,x=n?.rightYAxisFormat;if(!e||e.length===0)return(0,J.jsx)(gH,{height:i,hint:c(`chart.runtime.noDataHint.area`)});if(g)return(0,J.jsx)(_H,{height:i,hint:c(`chart.runtime.configErrorHint.${g}`)});let S=UH(m,f),C=TH(m,_),{hasRightAxis:w}=C,{effectiveShouldStack:T,effectiveIsPercentStack:E,stackOffset:D}=Kke(n,w),O=n?.showSummary===!0&&b.length>0,k=O?qH(v,b,a,KH(e=>S[e],_),`name`):[],A=t.showLegend&&!O,j=EH(w),{spreadTargets:M,enhancedChartData:N}=kH(v,n?.target);return!v||v.length===0?(0,J.jsx)(gH,{height:i,titleKey:`chart.runtime.noValidData`,hint:`No valid data points for area chart after transformation`}):(0,J.jsxs)(`div`,{className:`dc:relative dc:w-full dc:flex dc:flex-col`,style:{height:i},children:[O&&(0,J.jsx)(JH,{summaries:k,getSeriesLabel:e=>e,valueFormat:y,rightValueFormat:x,showChange:GH(r,p),leftOffset:OH(w)}),(0,J.jsx)(`div`,{className:O?`dc:flex-1 dc:min-h-0`:`dc:contents`,children:(0,J.jsx)(aH,{height:O?`100%`:i,minHeight:O?0:void 0,children:(0,J.jsxs)(IV,{data:N,margin:j,stackOffset:D,accessibilityLayer:!1,children:[t.showGrid&&(0,J.jsx)(OR,{strokeDasharray:`3 3`,style:{pointerEvents:`none`}}),(0,J.jsx)(Vz,{dataKey:`name`,type:`category`,tick:(0,J.jsx)(hH,{}),height:DH(N.map(e=>e?.name)),interval:h?0:void 0}),AH(C,f,y,x,E),t.showTooltip&&(0,J.jsx)(mH,{formatter:MH({leftYAxisFormat:y,rightYAxisFormat:x,yAxisAssignment:_,resolveField:e=>S[e],isPercentStack:E})}),NH({show:A,iconType:`rect`,paddingTop:10,onHover:u,onLeave:()=>u(null)}),!T&&Zke(b,a,d),Qke({seriesKeys:b,colorPalette:a,seriesKeyToField:S,yAxisAssignment:_,hoveredLegend:l,connectNulls:t.connectNulls,shouldStack:T,showPoints:n?.showPoints??!1,drillEnabled:s,onDataPointClick:o,gradientIdPrefix:d}),jH(M)]})})})]})}catch(e){return(0,J.jsx)(vH,{height:i,chartType:`Area Chart`,error:e})}});function nAe(e,t,n,r,i,a){let o;if(r.length>0){let{data:s}=pH(e,t,n,i,r,a);if(o=[],s.length>0){let e=s[0];Object.keys(e).forEach(t=>{t!==`name`&&typeof e[t]==`number`&&o.push({name:String(t),value:e[t]})})}}else{let r=fH(i,t);o=e.map(e=>{let i=dH(e[t],r)||String(e[t])||`Unknown`;return typeof e[t]==`boolean`?i=e[t]?`Active`:`Inactive`:(i===`true`||i===`false`)&&(i=i===`true`?`Active`:`Inactive`),{name:i,value:typeof e[n[0]]==`string`?parseFloat(e[n[0]]):e[n[0]]||0}})}let s=o.length;return o=o.filter(e=>e.value!=null&&!isNaN(e.value)&&e.value!==0&&e.value>0),{pieData:o,originalLength:s}}var rAe=y.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a,onDataPointClick:o,drillEnabled:s}){let{t:c}=fg(),[l,u]=(0,y.useState)(null),d=LH(),{xAxisField:f,yAxisFields:p,seriesFields:m,errorCode:h}=(0,y.useMemo)(()=>yH(t),[t]);try{let t={showLegend:n?.showLegend??!0,showTooltip:n?.showTooltip??!0,leftYAxisFormat:n?.leftYAxisFormat,innerRadius:n?.innerRadius||`0%`};if(!e||e.length===0)return(0,J.jsx)(gH,{height:i,hint:c(`chart.runtime.noDataHint.pie`)});if(h)return(0,J.jsx)(_H,{height:i,hint:c(h===`axisInvalid`?`chart.runtime.configErrorHint.pieAxis`:`chart.runtime.configErrorHint.axisFields`)});let{pieData:g,originalLength:_}=nAe(e,f,p,m,r,d);return g.length===0?(0,J.jsx)(gH,{height:i,titleKey:`chart.runtime.noValidData`,hint:_>0?`Filtered out ${_} data points (zero or invalid values)`:`No data points to display in pie chart`}):(0,J.jsx)(aH,{height:i,children:(0,J.jsxs)(uEe,{accessibilityLayer:!1,children:[(0,J.jsx)(JI,{data:g,cx:`50%`,cy:`50%`,innerRadius:t.innerRadius===`0%`?void 0:t.innerRadius,outerRadius:`70%`,dataKey:`value`,label:t.showLegend?void 0:({name:e,percent:t})=>`${e} ${((t||0)*100).toFixed(0)}%`,cursor:s?`pointer`:void 0,onClick:(e,t,n)=>{o&&s&&e&&o({dataPoint:e,clickedField:p[0],xValue:e.name,position:{x:n.clientX,y:n.clientY},nativeEvent:n})},children:g.map((e,t)=>(0,J.jsx)(xP,{fill:a?.colors&&a.colors[t%a.colors.length]||bH[t%bH.length],fillOpacity:l?l===g[t].name?1:.3:1},`cell-${t}`))}),t.showTooltip&&(0,J.jsx)(mH,{formatter:t.leftYAxisFormat?(e,n)=>[uH(e,t.leftYAxisFormat),n]:void 0}),t.showLegend&&(0,J.jsx)(EC,{wrapperStyle:{fontSize:`12px`,paddingTop:`10px`},iconType:`circle`,iconSize:8,layout:`horizontal`,align:`center`,verticalAlign:`bottom`,onMouseEnter:e=>u(String(e.value||``)),onMouseLeave:()=>u(null)})]})})}catch(e){return(0,J.jsx)(vH,{height:i,chartType:`Pie Chart`,error:e})}}),iAe=20;function aAe(e,t){let n=e?.showLegend??!0,r=t.length>1&&t.length<=iAe;return{showLegend:n&&r,showGrid:e?.showGrid??!0,showTooltip:e?.showTooltip??!0,hasSeries:r,xAxisFormat:e?.xAxisFormat,yAxisFormat:e?.leftYAxisFormat,chartMargins:{...SH,left:40}}}function oAe(e){let t,n,r=[];if(e?.xAxis&&e?.yAxis){t=Array.isArray(e.xAxis)?e.xAxis[0]:e.xAxis,n=Array.isArray(e.yAxis)?e.yAxis[0]:e.yAxis;let i=e.series;r=i?Array.isArray(i)?i:[i]:[]}else if(e?.x&&e?.y)t=e.x,n=Array.isArray(e.y)?e.y[0]:e.y;else return{xAxisField:``,yAxisField:``,seriesFields:[],errorCode:`axisInvalid`};return!t||!n?{xAxisField:``,yAxisField:``,seriesFields:[],errorCode:`axisFields`}:{xAxisField:t,yAxisField:n,seriesFields:r}}function YH(e,t,n){let r={};return t.forEach(t=>{if(e[t]){let i=fH(n,t);r[t]=dH(e[t],i)}}),r}function XH(e,t,n){let r=dH(e[t],n)||e[t];return typeof r==`string`?parseFloat(r):r}function sAe(e,t,n,r,i,a){let o=fH(a,t);if(r.length>0){let s=r[0],c={};return e.forEach(e=>{let r=String(e[s]||`Default`);c[r]||(c[r]=[]);let l=XH(e,t,o),u=cH(e[n]);sH(l)&&u!==null&&c[r].push({x:l,y:u,name:r,timeValues:YH(e,i,a),originalItem:e})}),{scatterData:Object.keys(c).flatMap(e=>c[e]),seriesGroups:c}}return{scatterData:e.map(e=>{let r=XH(e,t,o),s=cH(e[n]);return{x:r,y:s,name:`Point`,timeValues:YH(e,i,a),originalItem:e,isValid:sH(r)&&s!==null}}).filter(e=>e.isValid).map(({isValid:e,...t})=>t),seriesGroups:{}}}function cAe({active:e,payload:t,xAxisField:n,yAxisField:r,xAxisFormat:i,yAxisFormat:a,getFieldLabel:o}){if(!e||!t||t.length===0)return null;let s=t[0]?.payload;return s?(0,J.jsxs)(`div`,{style:{backgroundColor:`white`,border:`1px solid #e5e7eb`,borderRadius:`0.5rem`,fontSize:`0.875rem`,color:`#1f2937`,boxShadow:`0 4px 6px -1px rgba(0, 0, 0, 0.1)`,padding:`8px 12px`},children:[(0,J.jsx)(`div`,{style:{fontWeight:600,marginBottom:`4px`},children:s.name}),s.timeValues&&Object.keys(s.timeValues).length>0&&(0,J.jsx)(`div`,{style:{marginBottom:`4px`,color:`#6b7280`},children:Object.entries(s.timeValues).map(([e,t])=>(0,J.jsxs)(`div`,{children:[o(e),`: `,t]},e))}),(0,J.jsxs)(`div`,{children:[i?.label||o(n),`: `,uH(s.x,i)]}),(0,J.jsxs)(`div`,{children:[a?.label||o(r),`: `,uH(s.y,a)]})]}):null}function lAe(e,t){return e?.colors&&e.colors[t%e.colors.length]||bH[t%bH.length]}function uAe({hasSeries:e,seriesKeys:t,seriesGroups:n,scatterData:r,colorPalette:i,hoveredLegend:a}){return e?(0,J.jsx)(J.Fragment,{children:t.map((e,t)=>(0,J.jsx)(Nz,{name:e,data:n[e],fill:lAe(i,t),fillOpacity:a?a===e?1:.3:1},e))}):(0,J.jsx)(Nz,{name:`Data`,data:r,fill:i?.colors&&i.colors[0]||bH[0]})}var dAe=y.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a}){let{t:o}=fg(),[s,c]=(0,y.useState)(null),l=LH();try{if(!e||e.length===0)return(0,J.jsx)(gH,{height:i,hint:o(`chart.runtime.noDataHint.scatter`)});let{xAxisField:u,yAxisField:d,seriesFields:f,errorCode:p}=oAe(t);if(p)return(0,J.jsx)(_H,{height:i,hint:o(`chart.runtime.configErrorHint.${p}`)});let{scatterData:m,seriesGroups:h}=sAe(e,u,d,f,(r?.timeDimensions||[]).map(e=>e.dimension),r);if(!m||m.length===0)return(0,J.jsx)(gH,{height:i,titleKey:`chart.runtime.noValidData`,hint:`No valid data points for scatter chart after transformation`});let g=Object.keys(h),{showLegend:_,showGrid:v,showTooltip:y,hasSeries:b,xAxisFormat:x,yAxisFormat:S,chartMargins:C}=aAe(n,g);return(0,J.jsx)(aH,{height:i,children:(0,J.jsxs)(KDe,{margin:C,accessibilityLayer:!1,children:[v&&(0,J.jsx)(OR,{strokeDasharray:`3 3`}),(0,J.jsx)(Vz,{type:`number`,dataKey:`x`,name:x?.label||l(u),tick:{fontSize:12},tickFormatter:x?e=>uH(e,x):void 0}),(0,J.jsx)(Kz,{type:`number`,dataKey:`y`,name:S?.label||l(d),tick:{fontSize:12},tickFormatter:S?e=>uH(e,S):void 0,label:{value:S?.label||l(d),angle:-90,position:`left`,style:{textAnchor:`middle`,fontSize:`12px`}}}),y&&(0,J.jsx)(bP,{cursor:{strokeDasharray:`3 3`},content:({active:e,payload:t})=>(0,J.jsx)(cAe,{active:e,payload:t,xAxisField:u,yAxisField:d,xAxisFormat:x,yAxisFormat:S,getFieldLabel:l})}),_&&(0,J.jsx)(EC,{wrapperStyle:{fontSize:`12px`,paddingTop:`10px`},iconType:`circle`,iconSize:8,layout:`horizontal`,align:`center`,verticalAlign:`bottom`,onMouseEnter:e=>c(String(e.dataKey||``)),onMouseLeave:()=>c(null)}),(0,J.jsx)(uAe,{hasSeries:b,seriesKeys:g,seriesGroups:h,scatterData:m,colorPalette:a,hoveredLegend:s})]})})}catch(e){return(0,J.jsx)(vH,{height:i,chartType:`Scatter Chart`,error:e})}});cj();function ZH(e){return e?Array.isArray(e)?e[0]:e:``}function QH(e){return typeof e==`string`?parseFloat(e):e||0}function $H(e){return typeof e==`string`?parseFloat(e):e}function fAe(e,t,n,r){let i=ZH(t.xAxis),a=ZH(t.yAxis),o=Array.isArray(t.series)?t.series[0]:t.series,s=fH(n,i),c=e=>dH(e[i],s)||String(e[i])||`Unknown`;if(!o)return{treemapData:e.map((e,t)=>({name:c(e),size:QH(e[a]),fill:r?.colors&&r.colors[t%r.colors.length]||bH[t%bH.length]})),isNumericSeries:!1,seriesField:o};let l=e.map(e=>$H(e[o])).filter(e=>!isNaN(e)),u=l.length===e.length&&l.every(e=>typeof e==`number`);if(u){let t=ok().domain([Math.min(...l),Math.max(...l)]).range(xH);return{treemapData:e.map(e=>({name:c(e),size:QH(e[a]),fill:t($H(e[o])),series:String(e[o])})),isNumericSeries:u,seriesField:o}}let d=[...new Set(e.map(e=>String(e[o])))],f=CE().domain(d).range(r?.colors||bH);return{treemapData:e.map(e=>({name:c(e),size:QH(e[a]),fill:f(String(e[o])),series:String(e[o])})),isNumericSeries:u,seriesField:o}}function pAe(e){return typeof e==`boolean`?e?`Active`:`Inactive`:e===`true`||e===`false`?e===`true`?`Active`:`Inactive`:String(e)}function mAe(e,t){let n=e[0],r=Object.keys(n),i=r.find(e=>typeof n[e]==`string`||e.toLowerCase().includes(`name`)||e.toLowerCase().includes(`label`)||e.toLowerCase().includes(`category`))||r[0],a=r.find(e=>e.toLowerCase().includes(`size`))||r.find(e=>typeof n[e]==`number`&&e!==i)||r[1];return a?{treemapData:e.map((e,n)=>({name:pAe(e[i]),size:QH(e[a]),fill:t?.colors&&t.colors[n%t.colors.length]||bH[n%bH.length]})),isNumericSeries:!1,seriesField:void 0}:null}function hAe(e,t,n,r){let i=t?.xAxis&&t?.yAxis?fAe(e,t,n,r):mAe(e,r);return i?{...i,treemapData:i.treemapData.filter(e=>e.size!=null&&e.size>0)}:null}function eU(e,t){let n=e.map(e=>$H(e[t]));return{min:Math.min(...n),max:Math.max(...n)}}function tU(e,t){return t?uH(e,t):e.toFixed(2)}function gAe(e,t,n,r,i,a){if(!n||!r)return[];if(i){let{min:t,max:n}=eU(e,r);return xH.map((e,r)=>{let i=r/(xH.length-1);return{value:tU(t+(n-t)*i,a),type:`rect`,color:e}})}let o=[...new Set(t.map(e=>e.series).filter(Boolean))];return o.length>1?o.map((e,t)=>({value:e,type:`rect`,color:bH[t%bH.length]})):[]}function _Ae(e,t){return!t||typeof e==`string`&&e.includes(`%`)?e:typeof e==`number`?e+60:`calc(${e} + 60px)`}function vAe(e,t){return e===null?.8:e===t?1:.6}function yAe(e,t){return t?uH(e,t):typeof e==`number`?e.toLocaleString():String(e)}function bAe({treemapData:e,colorPalette:t,hoveredIndex:n,setHoveredIndex:r,leftYAxisFormat:i,drillEnabled:a,onDataPointClick:o,queryObject:s,chartConfig:c}){return function(l){let{x:u,y:d,width:f,height:p,index:m,name:h,size:g}=l;if(f<20||p<20)return null;let _=t=>{t.stopPropagation();let n=e[m];n&&o&&o({dataPoint:n,clickedField:s?.measures?.[0]||c?.yAxis?.[0]||``,xValue:h,position:{x:t.clientX,y:t.clientY},nativeEvent:t})},v=e[m]?.fill||t?.colors&&t.colors[m%t.colors.length]||bH[m%bH.length];return(0,J.jsxs)(`g`,{children:[(0,J.jsx)(`rect`,{x:u,y:d,width:f,height:p,style:{fill:v,fillOpacity:vAe(n,m),stroke:`#fff`,strokeWidth:2,cursor:a?`pointer`:`default`,pointerEvents:`all`},onMouseEnter:()=>r(m),onMouseLeave:()=>r(null),onClick:a&&o?_:void 0}),(0,J.jsx)(`foreignObject`,{x:u,y:d,width:f,height:p,style:{pointerEvents:`none`,overflow:`visible`},children:(0,J.jsxs)(`div`,{style:{width:`100%`,height:`100%`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,padding:`4px`,boxSizing:`border-box`,color:`#ffffff`,textShadow:`0 1px 2px rgba(0,0,0,0.8)`,fontFamily:`system-ui, -apple-system, sans-serif`,overflow:`hidden`},children:[f>40&&p>30&&(0,J.jsx)(`div`,{style:{fontSize:`${Math.max(10,Math.min(f/8,p/8,16))}px`,fontWeight:`600`,textAlign:`center`,lineHeight:`1.2`,marginBottom:f>60&&p>45?`4px`:`0`,wordBreak:`break-word`,hyphens:`auto`},children:h}),f>60&&p>45&&(0,J.jsx)(`div`,{style:{fontSize:`${Math.max(8,Math.min(f/10,p/10,14))}px`,textAlign:`center`,opacity:.9},children:yAe(g,i)})]})})]})}}function xAe({seriesLabel:e,data:t,seriesField:n,leftYAxisFormat:r}){let{min:i,max:a}=eU(t,n);return(0,J.jsxs)(`div`,{className:`dc:flex dc:flex-col dc:items-center`,children:[(0,J.jsx)(`div`,{className:`dc:text-xs dc:font-semibold text-dc-text-primary dc:mb-2`,children:e}),(0,J.jsxs)(`div`,{className:`dc:flex dc:items-center dc:gap-2`,children:[(0,J.jsx)(`span`,{className:`dc:text-xs text-dc-text-muted`,children:tU(i,r)}),(0,J.jsx)(`div`,{className:`dc:h-4 dc:rounded-sm`,style:{width:`200px`,background:`linear-gradient(to right, ${xH.join(`, `)})`}}),(0,J.jsx)(`span`,{className:`dc:text-xs text-dc-text-muted`,children:tU(a,r)})]})]})}function SAe({legendPayload:e}){return(0,J.jsx)(`div`,{className:`dc:flex dc:flex-wrap dc:justify-center dc:gap-4`,children:e.map((e,t)=>(0,J.jsxs)(`div`,{className:`dc:flex dc:items-center dc:gap-2`,children:[(0,J.jsx)(`div`,{className:`dc:w-3 dc:h-3 rounded-xs`,style:{backgroundColor:e.color}}),(0,J.jsx)(`span`,{className:`dc:text-xs text-dc-text-muted`,children:e.value})]},t))})}function CAe({isNumericSeries:e,seriesField:t,seriesLabel:n,legendPayload:r,data:i,leftYAxisFormat:a}){return(0,J.jsx)(`div`,{className:`dc:flex dc:justify-center dc:items-center dc:mt-4 dc:pb-2`,children:e&&t?(0,J.jsx)(xAe,{seriesLabel:n,data:i,seriesField:t,leftYAxisFormat:a}):(0,J.jsx)(SAe,{legendPayload:r})})}var wAe=y.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a,onDataPointClick:o,drillEnabled:s}){let{t:c}=fg(),[l,u]=(0,y.useState)(null),d=LH();try{let f={showTooltip:n?.showTooltip??!0,showLegend:n?.showLegend??!0,leftYAxisFormat:n?.leftYAxisFormat};if(!e||e.length===0)return(0,J.jsx)(gH,{height:i,hint:c(`chart.runtime.noDataHint.treemap`)});let p=hAe(e,t,r,a);if(!p)return(0,J.jsx)(_H,{height:i,hint:c(`chart.runtime.configErrorHint.treemapNumeric`)});let{treemapData:m,isNumericSeries:h,seriesField:g}=p;if(m.length===0)return(0,J.jsx)(gH,{height:i,titleKey:`chart.runtime.noValidData`,hint:`No valid data points for treemap chart after transformation`});let _=bAe({treemapData:m,colorPalette:a,hoveredIndex:l,setHoveredIndex:u,leftYAxisFormat:f.leftYAxisFormat,drillEnabled:s,onDataPointClick:o,queryObject:r,chartConfig:t}),v=gAe(e,m,f.showLegend,g,h,f.leftYAxisFormat),y=f.showLegend&&v.length>0,b=_Ae(i,y);return(0,J.jsxs)(`div`,{className:`dc:w-full`,style:{height:b},children:[(0,J.jsx)(aH,{height:y?`calc(100% - 50px)`:`100%`,children:(0,J.jsx)(QEe,{data:m,dataKey:`size`,aspectRatio:4/3,stroke:`#fff`,content:(0,J.jsx)(_,{}),children:f.showTooltip&&(0,J.jsx)(mH,{formatter:f.leftYAxisFormat?(e,t)=>[uH(e,f.leftYAxisFormat),t]:void 0})})}),y&&(0,J.jsx)(CAe,{isNumericSeries:h,seriesField:g,seriesLabel:g?d(g):``,legendPayload:v,data:e,leftYAxisFormat:f.leftYAxisFormat})]})}catch(e){return(0,J.jsx)(vH,{height:i,chartType:`TreeMap Chart`,error:e})}});function TAe(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return Object.keys(n).concat(Object.keys(r)).forEach(a),i}var nU=Object.freeze({left:0,top:0,width:16,height:16}),rU=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),iU=Object.freeze({...nU,...rU}),aU=Object.freeze({...iU,body:``,hidden:!1});function EAe(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function oU(e,t){let n=EAe(e,t);for(let r in aU)r in rU?r in e&&!(r in n)&&(n[r]=rU[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function DAe(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=oU(r[e]||i[e],a)}return o(t),n.forEach(o),oU(e,a)}function sU(e,t){let n=[];if(typeof e!=`object`||typeof e.icons!=`object`)return n;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),n.push(e)});let r=TAe(e);for(let i in r){let a=r[i];a&&(t(i,DAe(e,i,a)),n.push(i))}return n}var OAe={provider:``,aliases:{},not_found:{},...nU};function cU(e,t){for(let n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function lU(e){if(typeof e!=`object`||!e)return null;let t=e;if(typeof t.prefix!=`string`||!e.icons||typeof e.icons!=`object`||!cU(e,OAe))return null;let n=t.icons;for(let e in n){let t=n[e];if(!e||typeof t.body!=`string`||!cU(t,aU))return null}let r=t.aliases||Object.create(null);for(let e in r){let t=r[e],i=t.parent;if(!e||typeof i!=`string`||!n[i]&&!r[i]||!cU(t,aU))return null}return t}var uU=Object.create(null);function kAe(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function dU(e,t){let n=uU[e]||(uU[e]=Object.create(null));return n[t]||(n[t]=kAe(e,t))}function fU(e,t){return lU(t)?sU(t,(t,n)=>{n?e.icons[t]=n:e.missing.add(t)}):[]}function AAe(e,t,n){try{if(typeof n.body==`string`)return e.icons[t]={...n},!0}catch{}return!1}var pU=/^[a-z0-9]+(-[a-z0-9]+)*$/,mU=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!hU(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!hU(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!hU(e,n)?null:e}return null},hU=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1,gU=!1;function _U(e){return typeof e==`boolean`&&(gU=e),gU}function vU(e){let t=typeof e==`string`?mU(e,!0,gU):e;if(t){let e=dU(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function jAe(e,t){let n=mU(e,!0,gU);if(!n)return!1;let r=dU(n.provider,n.prefix);return t?AAe(r,n.name,t):(r.missing.add(n.name),!0)}function MAe(e,t){if(typeof e!=`object`)return!1;if(typeof t!=`string`&&(t=e.provider||``),gU&&!t&&!e.prefix){let t=!1;return lU(e)&&(e.prefix=``,sU(e,(e,n)=>{jAe(e,n)&&(t=!0)})),t}let n=e.prefix;return hU({prefix:n,name:`a`})?!!fU(dU(t,n),e):!1}var yU=Object.freeze({width:null,height:null}),bU=Object.freeze({...yU,...rU}),NAe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,PAe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function xU(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(NAe);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=PAe.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function FAe(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function IAe(e,t){return e?`<defs>`+e+`</defs>`+t:t}function LAe(e,t,n){let r=FAe(e);return IAe(r.defs,t+r.content+n)}var RAe=e=>e===`unset`||e===`undefined`||e===`none`;function zAe(e,t){let n={...iU,...e},r={...bU,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`)}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=LAe(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,d;o===null?(d=s===null?`1em`:s===`auto`?l:s,u=xU(d,c/l)):(u=o===`auto`?c:o,d=s===null?xU(u,l/c):s===`auto`?l:s);let f={},p=(e,t)=>{RAe(t)||(f[e]=t.toString())};p(`width`,u),p(`height`,d);let m=[i.left,i.top,c,l];return f.viewBox=m.join(` `),{attributes:f,viewBox:m,body:a}}var BAe=/\sid="(\S+)"/g,VAe=`IconifyId`+Date.now().toString(16)+(Math.random()*16777216|0).toString(16),HAe=0;function UAe(e,t=VAe){let n=[],r;for(;r=BAe.exec(e);)n.push(r[1]);if(!n.length)return e;let i=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(n=>{let r=typeof t==`function`?t(n):t+(HAe++).toString(),a=n.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+a+`)([")]|\\.[a-z])`,`g`),`$1`+r+i+`$3`)}),e=e.replace(new RegExp(i,`g`),``),e}var SU=Object.create(null);function WAe(e,t){SU[e]=t}function CU(e){return SU[e]||SU[``]}function wU(e){let t;if(typeof e.resources==`string`)t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||`/`,maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}for(var TU=Object.create(null),EU=[`https://api.simplesvg.com`,`https://api.unisvg.com`],DU=[];EU.length>0;)EU.length===1||Math.random()>.5?DU.push(EU.shift()):DU.push(EU.pop());TU[``]=wU({resources:[`https://api.iconify.design`].concat(DU)});function GAe(e,t){let n=wU(t);return n!==null&&(TU[e]=n,!0)}function OU(e){return TU[e]}var kU=(()=>{let e;try{if(e=fetch,typeof e==`function`)return e}catch{}})();function KAe(e,t){let n=OU(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let e=0;n.resources.forEach(t=>{e=Math.max(e,t.length)});let i=t+`.json?icons=`;r=n.maxURL-e-n.path.length-i.length}return r}function qAe(e){return e===404}var JAe=(e,t,n)=>{let r=[],i=KAe(e,t),a=`icons`,o={type:a,provider:e,prefix:t,icons:[]},s=0;return n.forEach((n,c)=>{s+=n.length+1,s>=i&&c>0&&(r.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=n.length),o.icons.push(n)}),r.push(o),r};function YAe(e){if(typeof e==`string`){let t=OU(e);if(t)return t.path}return`/`}var XAe={prepare:JAe,send:(e,t,n)=>{if(!kU){n(`abort`,424);return}let r=YAe(t.provider);switch(t.type){case`icons`:{let e=t.prefix,n=t.icons.join(`,`),i=new URLSearchParams({icons:n});r+=e+`.json?`+i.toString();break}case`custom`:{let e=t.uri;r+=e.slice(0,1)===`/`?e.slice(1):e;break}default:n(`abort`,400);return}let i=503;kU(e+r).then(e=>{let t=e.status;if(t!==200)setTimeout(()=>{n(qAe(t)?`abort`:`next`,t)});else return i=501,e.json()}).then(e=>{setTimeout(typeof e!=`object`||!e?()=>{e===404?n(`abort`,e):n(`next`,i)}:()=>{n(`success`,e)})}).catch(()=>{n(`next`,i)})}};function AU(e,t){e.forEach(e=>{let n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(e=>e.id!==t))})}function ZAe(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;let t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1,r=e.provider,i=e.prefix;t.forEach(t=>{let a=t.icons,o=a.pending.length;a.pending=a.pending.filter(t=>{if(t.prefix!==i)return!0;let o=t.name;if(e.icons[o])a.loaded.push({provider:r,prefix:i,name:o});else if(e.missing.has(o))a.missing.push({provider:r,prefix:i,name:o});else return n=!0,!0;return!1}),a.pending.length!==o&&(n||AU([e],t.id),t.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),t.abort))})}))}var QAe=0;function $Ae(e,t,n){let r=QAe++,i=AU.bind(null,n,r);if(!t.pending.length)return i;let a={id:r,icons:t,callback:e,abort:i};return n.forEach(e=>{(e.loaderCallbacks||=[]).push(a)}),i}function eje(e){let t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((e,t)=>e.provider===t.provider?e.prefix===t.prefix?e.name.localeCompare(t.name):e.prefix.localeCompare(t.prefix):e.provider.localeCompare(t.provider));let r={provider:``,prefix:``,name:``};return e.forEach(e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;let i=e.provider,a=e.prefix,o=e.name,s=n[i]||(n[i]=Object.create(null)),c=s[a]||(s[a]=dU(i,a)),l;l=o in c.icons?t.loaded:a===``||c.missing.has(o)?t.missing:t.pending;let u={provider:i,prefix:a,name:o};l.push(u)}),t}function tje(e,t=!0,n=!1){let r=[];return e.forEach(e=>{let i=typeof e==`string`?mU(e,t,n):e;i&&r.push(i)}),r}var nje={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function rje(e,t,n,r){let i=e.resources.length,a=e.random?Math.floor(Math.random()*i):e.index,o;if(e.random){let t=e.resources.slice(0);for(o=[];t.length>1;){let e=Math.floor(Math.random()*t.length);o.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}o=o.concat(t)}else o=e.resources.slice(a).concat(e.resources.slice(0,a));let s=Date.now(),c=`pending`,l=0,u,d=null,f=[],p=[];typeof r==`function`&&p.push(r);function m(){d&&=(clearTimeout(d),null)}function h(){c===`pending`&&(c=`aborted`),m(),f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function g(e,t){t&&(p=[]),typeof e==`function`&&p.push(e)}function _(){return{startTime:s,payload:t,status:c,queriesSent:l,queriesPending:f.length,subscribe:g,abort:h}}function v(){c=`failed`,p.forEach(e=>{e(void 0,u)})}function y(){f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function b(t,n,r){let i=n!==`success`;switch(f=f.filter(e=>e!==t),c){case`pending`:break;case`failed`:if(i||!e.dataAfterTimeout)return;break;default:return}if(n===`abort`)u=r,v();else if(i)u=r,f.length||(o.length?x():v());else{if(m(),y(),!e.random){let n=e.resources.indexOf(t.resource);n!==-1&&n!==e.index&&(e.index=n)}c=`completed`,p.forEach(e=>{e(r)})}}function x(){if(c!==`pending`)return;m();let r=o.shift();if(r===void 0){if(f.length){d=setTimeout(()=>{m(),c===`pending`&&(y(),v())},e.timeout);return}v();return}let i={status:`pending`,resource:r,callback:(e,t)=>{b(i,e,t)}};f.push(i),l++,d=setTimeout(x,e.rotate),n(r,t,i.callback)}return setTimeout(x),_}function jU(e){let t={...nje,...e},n=[];function r(){n=n.filter(e=>e().status===`pending`)}function i(e,i,a){let o=rje(t,e,i,(e,t)=>{r(),a&&a(e,t)});return n.push(o),o}function a(e){return n.find(t=>e(t))||null}return{query:i,find:a,setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}function MU(){}var NU=Object.create(null);function ije(e){if(!NU[e]){let t=OU(e);if(!t)return;NU[e]={config:t,redundancy:jU(t)}}return NU[e]}function aje(e,t,n){let r,i;if(typeof e==`string`){let t=CU(e);if(!t)return n(void 0,424),MU;i=t.send;let a=ije(e);a&&(r=a.redundancy)}else{let t=wU(e);if(t){r=jU(t);let n=CU(e.resources?e.resources[0]:``);n&&(i=n.send)}}return!r||!i?(n(void 0,424),MU):r.query(t,i,n)().abort}function PU(){}function oje(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ZAe(e)}))}function sje(e){let t=[],n=[];return e.forEach(e=>{(e.match(pU)?t:n).push(e)}),{valid:t,invalid:n}}function FU(e,t,n){function r(){let n=e.pendingIcons;t.forEach(t=>{n&&n.delete(t),e.icons[t]||e.missing.add(t)})}if(n&&typeof n==`object`)try{if(!fU(e,n).length){r();return}}catch(e){console.error(e)}r(),oje(e)}function IU(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}function cje(e,t){e.iconsToLoad=e.iconsToLoad?e.iconsToLoad.concat(t).sort():t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;let{provider:t,prefix:n}=e,r=e.iconsToLoad;if(delete e.iconsToLoad,!r||!r.length)return;let i=e.loadIcon;if(e.loadIcons&&(r.length>1||!i)){IU(e.loadIcons(r,n,t),t=>{FU(e,r,t)});return}if(i){r.forEach(r=>{IU(i(r,n,t),t=>{FU(e,[r],t?{prefix:n,icons:{[r]:t}}:null)})});return}let{valid:a,invalid:o}=sje(r);if(o.length&&FU(e,o,null),!a.length)return;let s=n.match(pU)?CU(t):null;s?s.prepare(t,n,a).forEach(n=>{aje(t,n,t=>{FU(e,n.icons,t)})}):FU(e,a,null)}))}var lje=(e,t)=>{let n=eje(tje(e,!0,_U()));if(!n.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(n.loaded,n.missing,n.pending,PU)}),()=>{e=!1}}let r=Object.create(null),i=[],a,o;return n.pending.forEach(e=>{let{provider:t,prefix:n}=e;if(n===o&&t===a)return;a=t,o=n,i.push(dU(t,n));let s=r[t]||(r[t]=Object.create(null));s[n]||(s[n]=[])}),n.pending.forEach(e=>{let{provider:t,prefix:n,name:i}=e,a=dU(t,n),o=a.pendingIcons||=new Set;o.has(i)||(o.add(i),r[t][n].push(i))}),i.forEach(e=>{let t=r[e.provider][e.prefix];t.length&&cje(e,t)}),t?$Ae(t,n,i):PU};function uje(e,t){let n={...e};for(let e in t){let r=t[e],i=typeof r;e in yU?(r===null||r&&(i===`string`||i===`number`))&&(n[e]=r):i===typeof n[e]&&(n[e]=e===`rotate`?r%4:r)}return n}var dje=/[\s,]+/;function fje(e,t){t.split(dje).forEach(t=>{switch(t.trim()){case`horizontal`:e.hFlip=!0;break;case`vertical`:e.vFlip=!0}})}function pje(e,t=0){let n=e.replace(/^-?[0-9.]*/,``);function r(e){for(;e<0;)e+=4;return e%4}if(n===``){let t=parseInt(e);return isNaN(t)?0:r(t)}if(n!==e){let t=0;switch(n){case`%`:t=25;break;case`deg`:t=90}if(t){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i/=t,i%1==0?r(i):0)}}return t}function mje(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function hje(e){return e.replace(/"/g,`'`).replace(/%/g,`%25`).replace(/#/g,`%23`).replace(/</g,`%3C`).replace(/>/g,`%3E`).replace(/\s+/g,` `)}function gje(e){return`data:image/svg+xml,`+hje(e)}function _je(e){return`url("`+gje(e)+`")`}var LU;function vje(){try{LU=window.trustedTypes.createPolicy(`iconify`,{createHTML:e=>e})}catch{LU=null}}function yje(e){return LU===void 0&&vje(),LU?LU.createHTML(e):e}var RU={...bU,inline:!1},bje={xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,"aria-hidden":!0,role:`img`},xje={display:`inline-block`},zU={backgroundColor:`currentColor`},BU={backgroundColor:`transparent`},VU={Image:`var(--svg)`,Repeat:`no-repeat`,Size:`100% 100%`},HU={WebkitMask:zU,mask:zU,background:BU};for(let e in HU){let t=HU[e];for(let n in VU)t[e+n]=VU[n]}var Sje={...RU,inline:!0};function UU(e){return e+(e.match(/^[-0-9.]+$/)?`px`:``)}var Cje=(e,t,n)=>{let r=t.inline?Sje:RU,i=uje(r,t),a=t.mode||`svg`,o={},s=t.style||{},c={...a===`svg`?bje:{}};if(n){let e=mU(n,!1,!0);if(e){let t=[`iconify`];for(let n of[`provider`,`prefix`])e[n]&&t.push(`iconify--`+e[n]);c.className=t.join(` `)}}for(let e in t){let n=t[e];if(n!==void 0)switch(e){case`icon`:case`style`:case`children`:case`onLoad`:case`mode`:case`ssr`:case`fallback`:break;case`_ref`:c.ref=n;break;case`className`:c[e]=(c[e]?c[e]+` `:``)+n;break;case`inline`:case`hFlip`:case`vFlip`:i[e]=n===!0||n===`true`||n===1;break;case`flip`:typeof n==`string`&&fje(i,n);break;case`color`:o.color=n;break;case`rotate`:typeof n==`string`?i[e]=pje(n):typeof n==`number`&&(i[e]=n);break;case`ariaHidden`:case`aria-hidden`:n!==!0&&n!==`true`&&delete c[`aria-hidden`];break;default:r[e]===void 0&&(c[e]=n)}}let l=zAe(e,i),u=l.attributes;if(i.inline&&(o.verticalAlign=`-0.125em`),a===`svg`){c.style={...o,...s},Object.assign(c,u);let e=0,n=t.id;return typeof n==`string`&&(n=n.replace(/-/g,`_`)),c.dangerouslySetInnerHTML={__html:yje(UAe(l.body,n?()=>n+`ID`+e++:`iconifyReact`))},(0,y.createElement)(`svg`,c)}let{body:d,width:f,height:p}=e,m=a===`mask`||a!==`bg`&&d.indexOf(`currentColor`)!==-1,h=mje(d,{...u,width:f+``,height:p+``});return c.style={...o,"--svg":_je(h),width:UU(u.width),height:UU(u.height),...xje,...m?zU:BU,...s},(0,y.createElement)(`span`,c)};if(_U(!0),WAe(``,XAe),typeof document<`u`&&typeof window<`u`){let e=window;if(e.IconifyPreload!==void 0){let t=e.IconifyPreload,n=`Invalid IconifyPreload syntax.`;typeof t==`object`&&t&&(t instanceof Array?t:[t]).forEach(e=>{try{(typeof e!=`object`||!e||e instanceof Array||typeof e.icons!=`object`||typeof e.prefix!=`string`||!MAe(e))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){let t=e.IconifyProviders;if(typeof t==`object`&&t)for(let e in t){let n=`IconifyProviders[`+e+`] is invalid.`;try{let r=t[e];if(typeof r!=`object`||!r||r.resources===void 0)continue;GAe(e,r)||console.error(n)}catch{console.error(n)}}}}function WU(e){let[t,n]=(0,y.useState)(!!e.ssr),[r,i]=(0,y.useState)({});function a(t){if(t){let t=e.icon;if(typeof t==`object`)return{name:``,data:t};let n=vU(t);if(n)return{name:t,data:n}}return{name:``}}let[o,s]=(0,y.useState)(a(!!e.ssr));function c(){let e=r.callback;e&&(e(),i({}))}function l(e){if(JSON.stringify(o)!==JSON.stringify(e))return c(),s(e),!0}function u(){var t;let n=e.icon;if(typeof n==`object`){l({name:``,data:n});return}let r=vU(n);if(l({name:n,data:r})){if(r===void 0){let e=lje([n],u);i({callback:e})}else r&&((t=e.onLoad)==null||t.call(e,n))}}(0,y.useEffect)(()=>(n(!0),c),[]),(0,y.useEffect)(()=>{t&&u()},[e.icon,t]);let{name:d,data:f}=o;return f?Cje({...iU,...f},e,d):e.children?e.children:e.fallback?e.fallback:(0,y.createElement)(`span`,{})}var GU=(0,y.forwardRef)((e,t)=>WU({...e,_ref:t}));(0,y.forwardRef)((e,t)=>WU({inline:!0,...e,_ref:t}));var KU={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0m9-3h.01"/><path d="M11 12h1v4h1"/></g>`};function wje(e,t,n,r){let i=Array(r).fill(0),a=n-t;e.forEach(e=>{if(a===0)i[Math.floor(r/2)]++;else{let n=Math.floor((e-t)/a*(r-1));n=Math.max(0,Math.min(r-1,n)),i[n]++}});let o=Math.max(...i),s=e.reduce((e,t)=>e+t,0)/e.length;return{buckets:i,range:a,maxBucketCount:o,average:s,averagePosition:a===0?50:(s-t)/a*100}}function qU({position:e,clamp:t=!1,color:n,zIndex:r,title:i}){return(0,J.jsx)(`div`,{className:`dc:absolute dc:top-0 dc:bottom-0 dc:pointer-events-none`,style:{left:`${t?Math.max(0,Math.min(100,e)):e}%`,transform:`translateX(-50%)`,width:`2px`,backgroundColor:n,opacity:.8,zIndex:r},title:i,children:(0,J.jsx)(`div`,{className:`dc:absolute dc:-top-1`,style:{left:`50%`,transform:`translateX(-50%)`,width:`0`,height:`0`,borderLeft:`4px solid transparent`,borderRight:`4px solid transparent`,borderTop:`6px solid ${n}`}})})}function JU({values:e,min:t,max:n,color:r=`#1f2937`,bucketCount:i=12,height:a=32,formatValue:o=e=>e.toString(),width:s,showAverageIndicator:c=!0,targetValue:l}){let{t:u}=fg(),{buckets:d,range:f,maxBucketCount:p,average:m,averagePosition:h}=wje(e,t,n,i),g=l!==void 0&&f>0?(l-t)/f*100:null,_={width:s?`${s}px`:`200px`,minWidth:`200px`};return(0,J.jsxs)(`div`,{className:`dc:flex dc:flex-col dc:items-center`,children:[(0,J.jsxs)(`div`,{className:`dc:relative dc:flex dc:items-end dc:justify-center dc:space-x-0.5`,style:{height:`${a}px`,..._},children:[d.map((e,t)=>{let n=p>0?e/p:0,i=.1;return(0,J.jsx)(`div`,{className:`dc:flex-1 dc:rounded-t-sm dc:transition-all dc:duration-300 dc:ease-out`,style:{height:`${(e>0?Math.max(i,n):i)*a}px`,backgroundColor:r,opacity:e>0?.7+n*.3:.2},title:`${e} values in this range`},t)}),c&&(0,J.jsx)(qU,{position:h,color:`#ef4444`,zIndex:10,title:`Average: ${o(m)}`}),g!==null&&l!==void 0&&(0,J.jsx)(qU,{position:g,clamp:!0,color:`#10b981`,zIndex:11,title:`Target: ${o(l)}`})]}),(0,J.jsxs)(`div`,{className:`dc:flex dc:justify-between dc:mt-2 dc:text-xs text-dc-text-muted`,style:_,children:[(0,J.jsx)(`span`,{children:o(t)}),(0,J.jsx)(`span`,{children:o(n)})]}),(0,J.jsx)(`div`,{className:`dc:text-center dc:mt-1 dc:text-xs text-dc-text-muted`,children:u(`dataHistogram.average`,{count:e.length})})]})}function Tje(e,t){let n=new Date(e);switch(t.toLowerCase()){case`day`:n.setHours(23,59,59,999);break;case`week`:{let e=6-n.getDay();n.setDate(n.getDate()+e),n.setHours(23,59,59,999);break}case`month`:n.setMonth(n.getMonth()+1,0),n.setHours(23,59,59,999);break;case`quarter`:{let e=n.getMonth(),t=Math.floor(e/3)*3+2;n.setMonth(t+1,0),n.setHours(23,59,59,999);break}case`year`:n.setMonth(11,31),n.setHours(23,59,59,999);break;default:n.setHours(23,59,59,999)}return n}function Eje(e,t,n){if(!e||!t||!n)return!0;let r=e[t];if(!r)return!0;let i=new Date(r);return isNaN(i.getTime())?!0:Tje(i,n)<=new Date}function Dje(e,t){if(!e?.timeDimensions||e.timeDimensions.length===0)return null;if(t){let n=e.timeDimensions.find(e=>e.dimension===t||e.dimension?.includes(t)||t?.includes(e.dimension));if(n?.granularity)return n.granularity}return e.timeDimensions[0]?.granularity||null}function YU(e,t,n,r,i=!1){let a={filteredData:e,excludedIncompletePeriod:!1,skippedLastPeriod:!1,granularity:null};if(e.length<2)return a;let o=Dje(n,t);if(i)return{filteredData:e.slice(0,-1),excludedIncompletePeriod:!1,skippedLastPeriod:!0,granularity:o};if(!r||!t||!n?.timeDimensions||n.timeDimensions.length===0)return{...a,granularity:o};if(!o)return a;let s=e[e.length-1];return Eje(s,t,o)?{...a,granularity:o}:{filteredData:e.slice(0,-1),excludedIncompletePeriod:!0,skippedLastPeriod:!1,granularity:o}}function Oje(e){return e?typeof e==`string`?[e]:Array.isArray(e)?e:[]:[]}function kje(e,t){if(!e||e.length===0)return[];let n=[...e];return t?n.sort((e,n)=>{let r=e[t],i=n[t];return r<i?-1:+(r>i)}):n}function Aje(e,t){return!t||e.length===0?[]:e.map(e=>{if(e[t]!==void 0)return e[t];let n=Object.keys(e).filter(t=>typeof e[t]==`number`&&!isNaN(e[t]));if(n.length>0)return e[n[0]]}).filter(e=>e!=null&&!isNaN(Number(e))).map(e=>Number(e))}function jje(e){return e.length===0?{avg:0,min:0,max:0}:{avg:e.reduce((e,t)=>e+t,0)/e.length,min:Math.min(...e),max:Math.max(...e)}}function XU(e,t){if(t.formatValue)return t.formatValue(e);if(e==null)return`—`;let n=t.decimals??0,r=t.prefix??``,i;return i=Math.abs(e)>=1e9?(e/1e9).toFixed(n)+`B`:Math.abs(e)>=1e6?(e/1e6).toFixed(n)+`M`:Math.abs(e)>=1e3?(e/1e3).toFixed(n)+`K`:e.toFixed(n),r+i}function ZU(e,t){return e&&e.length>1?e:t}function Mje(e,t){return e!==void 0&&t&&e>=0&&e<t.length?t[e]:t?.[0]||`#1f2937`}function Nje(e,t,n,r){return e===null?`#6B7280`:e>=0?r?.[t??1]||`#10B981`:r?.[n??7]||`#EF4444`}function QU({widthDivisor:e,heightDivisor:t,minFontSize:n,maxFontSize:r,measureWidth:i,deps:a}){let[o,s]=(0,y.useState)(32),[c,l]=(0,y.useState)(250),u=(0,y.useRef)(null),d=(0,y.useRef)(null);return(0,y.useEffect)(()=>{let a=()=>{if(!u.current)return;let a=u.current.getBoundingClientRect(),o=a.width,c=a.height;if(o<=0||c<=0)return;let f=o/e,p=c/t;s(Math.max(n,Math.min(Math.min(f,p),r))),setTimeout(()=>{if(d.current){let e=d.current.getBoundingClientRect().width;l(i(e,o))}},10)},o=setTimeout(a,50),c=new ResizeObserver(()=>{setTimeout(a,10)});return u.current&&c.observe(u.current),()=>{clearTimeout(o),c.disconnect()}},a),{containerRef:u,valueRef:d,fontSize:o,textWidth:c}}var Pje={muted:{},danger:{backgroundColor:`var(--dc-danger-bg)`,color:`var(--dc-danger)`,borderColor:`var(--dc-danger-border)`},warning:{backgroundColor:`var(--dc-warning-bg)`,color:`var(--dc-warning)`,borderColor:`var(--dc-warning-border)`}};function $U(e,t=`200px`){return{height:e===`100%`?`100%`:e,minHeight:e===`100%`?t:void 0}}function eW({height:e,title:t,hint:n,variant:r=`muted`,children:i}){return(0,J.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,style:{...$U(e),...Pje[r]},children:(0,J.jsxs)(`div`,{className:`dc:text-center${r===`muted`?` text-dc-text-muted`:``}`,children:[(0,J.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:t}),n!=null&&(0,J.jsx)(`div`,{className:`dc:text-xs${r===`muted`?` text-dc-text-secondary`:``}`,children:n}),i]})})}var tW=y.memo(function({label:e,labelAdornment:t,value:n,valueColor:r,suffix:i,valueAdornment:a,detail:o,containerRef:s}){return(0,J.jsxs)(`div`,{ref:s,className:`dc:flex dc:flex-col dc:justify-center dc:w-full dc:h-full dc:px-4 dc:py-3 dc:gap-1.5 dc:overflow-hidden`,style:{height:`100%`,minHeight:`80px`},children:[(0,J.jsxs)(`div`,{className:`dc:flex dc:items-center dc:gap-1 dc:font-bold text-dc-text-secondary`,style:{fontSize:`14px`,lineHeight:1.2},children:[(0,J.jsx)(`span`,{className:`dc:truncate`,children:e}),t]}),(0,J.jsxs)(`div`,{className:`dc:flex dc:items-baseline dc:gap-1.5`,children:[(0,J.jsx)(`span`,{className:`dc:font-semibold dc:leading-none dc:truncate`,style:{fontSize:`30px`,color:r||`var(--dc-text)`},children:n}),i&&(0,J.jsx)(`span`,{className:`text-dc-text-muted dc:truncate`,style:{fontSize:`14px`},children:i}),a]}),o&&(0,J.jsx)(`div`,{className:`text-dc-text-muted dc:truncate`,style:{fontSize:`12px`,lineHeight:1.4},children:o})]})}),Fje=y.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a}){let{t:o}=fg(),s=LH(),c=(0,y.useMemo)(()=>Oje(t?.yAxis),[t?.yAxis]),l=c[0]||``,u=r?.timeDimensions?.[0]?.dimension||void 0,d=(0,y.useMemo)(()=>kje(e,u),[e,u]),{useLastCompletePeriod:f=!0,skipLastPeriod:p=!1}=n,{filteredData:m,excludedIncompletePeriod:h,skippedLastPeriod:g,granularity:_}=(0,y.useMemo)(()=>d.length===0?{filteredData:[],excludedIncompletePeriod:!1,skippedLastPeriod:!1,granularity:void 0}:YU(d,u,r,f,p),[d,u,r,f,p]),v=m,b=(0,y.useMemo)(()=>Aje(v,l),[v,l]),{avg:x,min:S,max:C}=(0,y.useMemo)(()=>jje(b),[b]),w=(0,y.useCallback)(e=>XU(e,n),[n]),T=b.length===1?b[0]:x,E=b.length>1,D=(0,y.useMemo)(()=>Mje(n.valueColorIndex,a?.colors),[n.valueColorIndex,a?.colors]),O=(0,y.useMemo)(()=>CH(n?.target||``),[n?.target]),k=O.length>0?O[0]:null,A=k!==null&&b.length>0?Dke(T,k):null,j=(0,y.useMemo)(()=>Nje(A,n.positiveColorIndex,n.negativeColorIndex,a?.colors),[A,n.positiveColorIndex,n.negativeColorIndex,a?.colors]),M=n.layout===`compact`,{containerRef:N,valueRef:P,fontSize:F,textWidth:ee}=QU({widthDivisor:5,heightDivisor:4,minFontSize:24,maxFontSize:120,measureWidth:(e,t)=>Math.max(e,Math.min(t*.6,300)),deps:[e,t]});if(!e||e.length===0)return(0,J.jsx)(eW,{height:i,title:o(`chart.runtime.noData`),hint:o(`chart.runtime.noDataHint.kpi`)});if(c.length===0)return(0,J.jsx)(eW,{height:i,variant:`danger`,title:o(`chart.runtime.configError`),hint:o(`chart.runtime.configErrorHint.noMeasures`)});let te=h||g?(0,J.jsx)(`span`,{title:o(g?`chart.runtime.kpiExcludesLastPeriod`:`chart.runtime.kpiExcludesIncompletePeriod`,{period:_||o(`chart.runtime.kpiPeriodFallback`)}),className:`dc:cursor-help`,children:(0,J.jsx)(GU,{icon:KU,className:`dc:w-4 dc:h-4 text-dc-text-muted dc:opacity-70`})}):null;return M?(0,J.jsx)(tW,{containerRef:N,label:ZU(s(l),l),labelAdornment:te,value:b.length===0?`—`:w(T),valueColor:b.length===0?void 0:D,suffix:n.suffix&&!n.formatValue?n.suffix:void 0,detail:k!==null&&A!==null?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{className:`dc:font-semibold`,style:{color:j},children:wH(A,1)}),` `,o(`chart.runtime.kpiVsTarget`,{target:w(k)})]}):void 0}):b.length===0?(0,J.jsxs)(`div`,{ref:N,className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full dc:h-full dc:p-4`,style:$U(i),children:[(0,J.jsx)(`div`,{className:`text-dc-text-secondary dc:font-bold dc:text-center dc:mb-3`,style:{fontSize:`14px`,lineHeight:`1.2`},children:s(l)}),(0,J.jsx)(`div`,{className:`dc:font-bold dc:leading-none text-dc-text-muted`,style:{fontSize:`${F}px`},children:`—`}),(0,J.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted dc:mt-2`,children:o(`chart.runtime.noDataShort`)})]}):(0,J.jsxs)(`div`,{ref:N,className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full dc:h-full dc:p-4`,style:$U(i),children:[(0,J.jsxs)(`div`,{className:`text-dc-text-secondary dc:font-bold dc:text-center dc:mb-3 dc:flex dc:items-center dc:justify-center dc:gap-1`,style:{fontSize:`14px`,lineHeight:`1.2`},children:[(0,J.jsx)(`span`,{children:ZU(s(l),l)}),te]}),(0,J.jsxs)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:gap-4 dc:mb-3`,children:[(0,J.jsx)(`div`,{ref:P,className:`dc:font-bold dc:leading-none`,style:{fontSize:`${F}px`,color:D},children:w(T)}),k!==null&&A!==null&&(0,J.jsxs)(`div`,{className:`dc:flex dc:flex-col dc:items-start`,children:[(0,J.jsx)(`div`,{className:`dc:font-semibold`,style:{fontSize:`${Math.max(12,F*.3)}px`,color:j,lineHeight:`1.2`},children:wH(A,1)}),(0,J.jsx)(`div`,{className:`text-dc-text-muted dc:text-xs`,style:{opacity:.7,fontSize:`${Math.max(10,F*.2)}px`},children:o(`chart.runtime.kpiVsTarget`,{target:w(k)})})]})]}),n.suffix&&!n.formatValue&&(0,J.jsx)(`div`,{className:`text-dc-text-muted dc:text-center`,style:{fontSize:`14px`,lineHeight:`1.2`,opacity:.8},children:n.suffix}),E&&(0,J.jsx)(`div`,{className:`dc:mt-4`,children:(0,J.jsx)(JU,{values:b,min:S,max:C,color:D,formatValue:w,height:24,width:ee,targetValue:k||void 0})})]})});function nW(e){return e?Array.isArray(e)?e:[e]:[]}function Ije(e,t){let n=[...e];return t?n.sort((e,n)=>{let r=e[t],i=n[t];return r<i?-1:+(r>i)}):n}function Lje(e,t){return e.map(e=>e[t]).filter(e=>e!=null&&!isNaN(Number(e))).map(e=>Number(e))}function Rje(e){let t=e[e.length-1],n=e[e.length-2],r=t-n;return{lastValue:t,previousValue:n,absoluteChange:r,percentageChange:n===0?0:r/Math.abs(n)*100,isPositiveChange:r>=0}}function rW(e,t,n){return e!==void 0&&t&&e>=0&&e<t.length?t[e]:n}function zje({values:e,lastValue:t,positiveColor:n,negativeColor:r,formatValue:i,width:a,height:o}){let s=Math.max(10,Math.floor(a/10)),c=e.length>s?e.slice(-s):e,l=c.map(e=>e-t),u=Math.min(...l,0),d=Math.max(...l,0);if(Math.max(Math.abs(u),Math.abs(d))===0||l.length===0)return(0,J.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center bg-dc-bg-secondary dc:rounded-sm dc:border border-dc-border`,style:{width:`${a}px`,height:`${o}px`},children:(0,J.jsx)(`span`,{className:`dc:text-xs text-dc-text-muted`,children:`No variance data`})});let f=a-(c.length-1)*2,p=Math.max(4,f/c.length),m=d-u,h=m>0?d/m*100:50;return(0,J.jsxs)(`div`,{className:`dc:flex dc:items-center dc:space-x-2`,children:[(0,J.jsxs)(`div`,{className:`dc:relative`,style:{width:`${a}px`,height:`${o}px`},children:[(0,J.jsx)(`div`,{className:`dc:absolute dc:left-0 dc:right-0`,style:{height:`1px`,top:`${h}%`,backgroundColor:`var(--dc-border)`,zIndex:1}}),l.map((e,t)=>{let a=Math.abs(e)/m,s=Math.max(2,a*(o-4)),l=e>=0,u=t===c.length-1,d=l?n:r,f=t*(p+2);return(0,J.jsx)(`div`,{className:`dc:absolute dc:rounded-sm`,style:{left:`${f}px`,width:`${p}px`,height:`${s}px`,backgroundColor:d,opacity:u?1:.6,...l?{bottom:`${100-h}%`}:{top:`${h}%`},zIndex:2},title:`${i(c[t])}: ${e>=0?`+`:``}${i(e)} vs current`},t)})]}),(0,J.jsxs)(`div`,{className:`dc:flex dc:flex-col dc:justify-between dc:text-xs text-dc-text-muted`,style:{height:`${o}px`},children:[(0,J.jsxs)(`span`,{children:[`+`,i(d)]}),(0,J.jsxs)(`span`,{children:[``,i(u)]})]})]})}var Bje=y.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a}){let{t:o}=fg(),s=LH(),{containerRef:c,valueRef:l,fontSize:u,textWidth:d}=QU({widthDivisor:4,heightDivisor:4,minFontSize:28,maxFontSize:140,measureWidth:(e,t)=>{let n=t-100,r=Math.max(e,Math.min(n,t*.7));return Math.max(100,r)},deps:[e,t]});if(!e||e.length===0)return(0,J.jsx)(eW,{height:i,title:o(`chart.runtime.noData`),hint:o(`chart.runtime.noDataHint.kpi`)});let f=nW(t?.yAxis),p=nW(t?.xAxis);if(f.length===0)return(0,J.jsx)(eW,{height:i,variant:`danger`,title:o(`chart.runtime.configError`),hint:o(`chart.runtime.configErrorHint.noMeasure`)});let m=f[0],h=p[0],g=Ije(e,h),{useLastCompletePeriod:_=!0,skipLastPeriod:v=!1}=n,{filteredData:y,excludedIncompletePeriod:b,skippedLastPeriod:x,granularity:S}=YU(g,h,r,_,v),C=Lje(y,m);if(C.length<2)return(0,J.jsx)(eW,{height:i,variant:`warning`,title:o(`chart.runtime.kpiDelta.insufficientData`),hint:o(`chart.runtime.kpiDelta.requiresTwoPoints`),children:(0,J.jsx)(`div`,{className:`dc:text-xs`,children:o(`chart.runtime.kpiDelta.currentPoints`,{count:C.length})})});let{lastValue:w,previousValue:T,absoluteChange:E,percentageChange:D,isPositiveChange:O}=Rje(C),k=e=>XU(e,n),A=rW(n.positiveColorIndex,a?.colors,`#10b981`),j=rW(n.negativeColorIndex,a?.colors,`#ef4444`),M=O?A:j,N=b||x?(0,J.jsx)(`span`,{title:o(x?`chart.runtime.kpiExcludesLastPeriod`:`chart.runtime.kpiExcludesIncompletePeriod`,{period:S||o(`chart.runtime.kpiPeriodFallback`)}),className:`dc:cursor-help`,children:(0,J.jsx)(GU,{icon:KU,className:`dc:w-4 dc:h-4 text-dc-text-muted dc:opacity-70`})}):null;return n.layout===`compact`?(0,J.jsx)(tW,{containerRef:c,label:ZU(s(m),m),labelAdornment:N,value:k(w),suffix:n.suffix&&!n.formatValue?n.suffix:void 0,valueAdornment:(0,J.jsxs)(`span`,{className:`dc:font-semibold dc:whitespace-nowrap`,style:{color:M,fontSize:`15px`},children:[O?`▲`:`▼`,` `,O?`+`:``,D.toFixed(1),`%`]}),detail:n.showBaseline?`${k(T)} \u2192 ${k(w)}`:void 0}):(0,J.jsxs)(`div`,{ref:c,className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full dc:h-full dc:p-4`,style:$U(i),children:[(0,J.jsxs)(`div`,{className:`text-dc-text-secondary dc:font-bold dc:text-center dc:mb-2 dc:flex dc:items-center dc:justify-center dc:gap-1`,style:{fontSize:`14px`,lineHeight:`1.2`},children:[(0,J.jsx)(`span`,{children:ZU(s(m),m)}),N]}),(0,J.jsxs)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:space-x-4 dc:mb-2`,children:[(0,J.jsx)(`div`,{ref:l,className:`dc:font-bold dc:leading-none`,style:{fontSize:`${u}px`,color:`var(--dc-text)`},children:k(w)}),(0,J.jsxs)(`div`,{className:`dc:flex dc:items-center dc:space-x-1`,children:[(0,J.jsx)(`div`,{className:`dc:font-bold`,style:{color:M,fontSize:`${u*.35}px`},children:O?`▲`:`▼`}),(0,J.jsxs)(`div`,{className:`dc:text-left`,children:[(0,J.jsxs)(`div`,{className:`dc:font-bold dc:leading-tight`,style:{fontSize:`${u*.35}px`,color:M},children:[O?`+`:``,k(E)]}),(0,J.jsxs)(`div`,{className:`dc:font-semibold dc:leading-tight`,style:{fontSize:`${u*.28}px`,color:M,opacity:.8},children:[O?`+`:``,D.toFixed(1),`%`]})]})]})]}),n.suffix&&!n.formatValue&&(0,J.jsx)(`div`,{className:`text-dc-text-muted dc:text-center dc:mb-3`,style:{fontSize:`14px`,lineHeight:`1.2`,opacity:.8},children:n.suffix}),n.showHistogram!==!1&&C.length>2&&(0,J.jsx)(`div`,{className:`dc:mt-2 dc:w-full dc:flex dc:justify-center dc:overflow-hidden`,children:(0,J.jsx)(zje,{values:C,lastValue:w,positiveColor:A,negativeColor:j,formatValue:k,width:d,height:64})})]})});function Vje(e){return e?typeof e==`string`?[e]:Array.isArray(e)?e:[]:[]}function Hje(e,t){return e.map(e=>{if(e[t]!==void 0)return e[t];let n=Object.keys(e);if(n.length>0)return e[n[0]]}).filter(e=>e!=null)}function Uje(e){let t=e.map(e=>Number(e)).filter(e=>!isNaN(e));return t.length>0?e.length===1?{mainValue:e[0],min:null,max:null,showStats:!1}:{mainValue:t.reduce((e,t)=>e+t,0)/t.length,min:Math.min(...t),max:Math.max(...t),showStats:!0}:{mainValue:e.length===1?e[0]:e.join(`, `),min:null,max:null,showStats:!1}}function Wje(e,t){if(t.formatValue)return t.formatValue(e);if(e==null)return`—`;let n=t.decimals??2,r=Math.abs(e);return r>=1e9?(e/1e9).toFixed(n)+`B`:r>=1e6?(e/1e6).toFixed(n)+`M`:r>=1e3?(e/1e3).toFixed(n)+`K`:e.toFixed(n)}function Gje(e,t){let{value:n,valueField:r,fieldLabel:i,min:a,max:o,count:s,formatNumber:c}=t;try{let t={value:typeof n==`number`?c(n):String(n),rawValue:n,field:r,fieldLabel:i,min:a===null?``:c(a),max:o===null?``:c(o),count:s};return e.replace(/\$\{(\w+)\}/g,(e,n)=>n in t?String(t[n]):e)}catch{return String(n)}}function Kje(e,t){return e!==void 0&&t?.colors&&e>=0&&e<t.colors.length?t.colors[e]:t?.colors?.[0]||`#1f2937`}var qje=y.memo(function({data:e,chartConfig:t,displayConfig:n={},height:r=`100%`,colorPalette:i}){let{t:a}=fg(),[o,s]=(0,y.useState)(28),[c,l]=(0,y.useState)(0),u=(0,y.useRef)(null),d=(0,y.useRef)(null),f=LH();if((0,y.useEffect)(()=>{let e=()=>{if(u.current){let e=u.current.getBoundingClientRect(),t=e.width,n=e.height;if(t>0&&n>0){let e=t/8,r=n/5;s(Math.max(18,Math.min(Math.min(e,r),80)))}}if(d.current){let e=d.current.getBoundingClientRect();l(e.width)}},t=setTimeout(e,100),n=new ResizeObserver(()=>{clearTimeout(t),setTimeout(e,50)});return u.current&&n.observe(u.current),()=>{clearTimeout(t),n.disconnect()}},[e,t]),!e||e.length===0)return(0,J.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,style:{height:r===`100%`?`100%`:r,minHeight:r===`100%`?`200px`:void 0},children:(0,J.jsxs)(`div`,{className:`dc:text-center text-dc-text-muted`,children:[(0,J.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:a(`chart.runtime.noData`)}),(0,J.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:a(`chart.runtime.noDataHint.kpi`)})]})});let p=Vje(t?.yAxis);if(p.length===0)return(0,J.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,style:{height:r===`100%`?`100%`:r,minHeight:r===`100%`?`200px`:void 0,backgroundColor:`var(--dc-danger-bg)`,color:`var(--dc-danger)`,borderColor:`var(--dc-danger-border)`},children:(0,J.jsxs)(`div`,{className:`dc:text-center`,children:[(0,J.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:a(`chart.runtime.configError`)}),(0,J.jsx)(`div`,{className:`dc:text-xs`,children:a(`chart.runtime.configErrorHint.noMeasures`)})]})});let m=p[0],h=Hje(e,m);if(h.length===0)return(0,J.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,style:{height:r===`100%`?`100%`:r,minHeight:r===`100%`?`200px`:void 0,backgroundColor:`var(--dc-warning-bg)`,color:`var(--dc-warning)`,borderColor:`var(--dc-warning-border)`},children:(0,J.jsxs)(`div`,{className:`dc:text-center`,children:[(0,J.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:a(`chart.runtime.noValidData`)}),(0,J.jsx)(`div`,{className:`dc:text-xs`,children:a(`chart.runtime.noValidDataHint.kpiText`)})]})});let{mainValue:g,min:_,max:v,showStats:b}=Uje(h),x=e=>Wje(e,{formatValue:n.formatValue,decimals:n.decimals}),S=Gje(n.template||"${fieldLabel}: ${value}",{value:g,valueField:m,fieldLabel:f(m),min:_,max:v,count:h.length,formatNumber:x}),C=Kje(n.valueColorIndex,i);return(0,J.jsxs)(`div`,{ref:u,className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full dc:h-full dc:p-4`,style:{height:r===`100%`?`100%`:r,minHeight:r===`100%`?`200px`:void 0},children:[(0,J.jsx)(`div`,{ref:d,className:`dc:font-bold dc:leading-tight dc:text-center`,style:{fontSize:`${o}px`,color:C},children:S}),b&&_!==null&&v!==null&&(0,J.jsx)(`div`,{className:`dc:mt-4`,children:(0,J.jsx)(JU,{values:h,min:_,max:v,color:C,formatValue:x,height:24,width:c||200})})]})});function iW({measureCount:e,dimensionCount:t}){return e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:t<1?{available:!1,reason:`chart.availability.requiresDimension`}:{available:!0}}function aW({measureCount:e}){return e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:{available:!0}}function oW(e=`chart.option.valueFormat.description`){return{key:`leftYAxisFormat`,label:`chart.option.valueFormat.label`,type:`axisFormat`,description:e}}function sW(e){return{key:`stackType`,label:`chart.option.stacking.label`,type:`select`,defaultValue:`none`,options:[{value:`none`,label:`chart.option.accentBorder.none`},{value:`normal`,label:`chart.option.stacking.stacked`},{value:`percent`,label:`chart.option.stacking.percent`}],description:e}}function cW(e=!0){return{key:`showPoints`,label:`chart.option.showPoints.label`,type:`boolean`,defaultValue:e,description:`chart.option.showPoints.description`}}var lW,uW,dW,fW,pW,mW,hW,gW=o((()=>{lW={key:`target`,label:`chart.option.target.label`,type:`string`,placeholder:`e.g., 100 or 50,75 for spread`,description:`chart.option.target.description`},uW={key:`connectNulls`,label:`chart.option.connectNulls.label`,type:`boolean`,defaultValue:!1,description:`chart.option.connectNulls.description`},dW={key:`fillMissingDates`,label:`chart.option.fillMissingDates.label`,type:`buttonGroup`,defaultValue:`auto`,options:[{value:`auto`,label:`chart.option.fillMissingDates.auto`},{value:!0,label:`chart.option.fillMissingDates.on`},{value:!1,label:`chart.option.fillMissingDates.off`}],description:`chart.option.fillMissingDates.description`},fW={key:`leftYAxisFormat`,label:`chart.option.leftYAxisFormat.label`,type:`axisFormat`,description:`chart.option.leftYAxisFormat.description`},pW={key:`rightYAxisFormat`,label:`chart.option.rightYAxisFormat.label`,type:`axisFormat`,description:`chart.option.rightYAxisFormat.description`},mW={key:`layout`,label:`chart.option.kpiLayout.label`,type:`buttonGroup`,defaultValue:`auto`,options:[{value:`auto`,label:`chart.option.kpiLayout.auto`},{value:`compact`,label:`chart.option.kpiLayout.compact`}],description:`chart.option.kpiLayout.description`},hW={key:`showSummary`,label:`chart.option.showSummary.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showSummary.description`}})),Jje=c({barChartConfig:()=>_W}),_W,vW=o((()=>{gW(),_W={clickableElements:{bar:!0},dropZones:[{key:`xAxis`,label:`chart.dropZone.xAxis.label`,description:`chart.dropZone.xAxis.description`,mandatory:!1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.bar.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.dropZone.yAxis.label`,description:`chart.configText.measures_for_bar_heights`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.bar.dropZone.yAxis.empty`,enableDualAxis:!0},{key:`series`,label:`chart.dropZone.series.label`,description:`chart.dropZone.series.description`,mandatory:!1,acceptTypes:[`dimension`],emptyText:`chart.bar.dropZone.series.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`showAllXLabels`,`hideHeader`],displayOptionsConfig:[sW(`chart.configText.how_to_stack_multiple_bar_series`),lW,dW,fW,pW]}})),Yje=c({lineChartConfig:()=>yW}),yW,bW=o((()=>{gW(),yW={clickableElements:{point:!0},dropZones:[{key:`xAxis`,label:`chart.configText.x_axis_time_categories`,description:`chart.configText.time_dimensions_or_dimensions_for_x_axis`,mandatory:!0,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.line.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.dropZone.yAxis.label`,description:`chart.configText.measures_for_line_values`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.line.dropZone.yAxis.empty`,enableDualAxis:!0},{key:`series`,label:`chart.configText.series_multiple_lines`,description:`chart.configText.dimensions_to_create_separate_lines`,mandatory:!1,acceptTypes:[`dimension`],emptyText:`chart.line.dropZone.series.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`showAllXLabels`,`hideHeader`],displayOptionsConfig:[hW,cW(),uW,dW,lW,{key:`priorPeriodStyle`,label:`chart.option.priorPeriodStyle.label`,type:`select`,defaultValue:`dashed`,options:[{value:`dashed`,label:`chart.option.priorPeriodStyle.dashed`},{value:`dotted`,label:`chart.option.priorPeriodStyle.dotted`},{value:`solid`,label:`chart.option.priorPeriodStyle.solid`}],description:`chart.option.priorPeriodStyle.description`},{key:`priorPeriodOpacity`,label:`chart.option.priorPeriodOpacity.label`,type:`number`,defaultValue:.5,min:.1,max:1,step:.1,description:`chart.option.priorPeriodOpacity.description`},fW,pW]}})),Xje=c({areaChartConfig:()=>xW}),xW,SW=o((()=>{gW(),xW={dropZones:[{key:`xAxis`,label:`chart.configText.x_axis_time_categories`,description:`chart.configText.time_dimensions_or_dimensions_for_x_axis`,mandatory:!0,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.area.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.dropZone.yAxis.label`,description:`chart.configText.measures_for_area_values`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.area.dropZone.yAxis.empty`,enableDualAxis:!0},{key:`series`,label:`chart.configText.series_stack_areas`,description:`chart.configText.dimensions_to_create_stacked_areas`,mandatory:!1,acceptTypes:[`dimension`],emptyText:`chart.area.dropZone.series.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`showAllXLabels`,`hideHeader`],displayOptionsConfig:[hW,cW(!1),sW(`chart.configText.how_to_stack_multiple_area_series`),uW,dW,lW,fW,pW]}})),Zje=c({pieChartConfig:()=>CW}),CW,wW=o((()=>{gW(),CW={clickableElements:{slice:!0},dropZones:[{key:`xAxis`,label:`chart.configText.categories`,description:`chart.configText.dimension_for_pie_slices`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.pie.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.values`,description:`chart.configText.measure_for_slice_sizes`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.pie.dropZone.yAxis.empty`}],displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],displayOptionsConfig:[{key:`innerRadius`,label:`chart.option.innerRadius.label`,type:`select`,description:`chart.configText.hollow_center_size_0_percent_solid_pie_higher_donut_style`,defaultValue:`0%`,options:[{value:`0%`,label:`chart.configText.none_pie`},{value:`20%`,label:`chart.configText.20_percent`},{value:`40%`,label:`chart.configText.40_percent`},{value:`60%`,label:`chart.configText.60_percent`},{value:`80%`,label:`chart.configText.80_percent`}]},oW()]}})),Qje=c({scatterChartConfig:()=>TW}),TW,EW=o((()=>{TW={dropZones:[{key:`xAxis`,label:`chart.runtime.axisFormat.xAxis`,description:`chart.configText.measure_or_dimension_for_x_position`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`chart.scatter.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.y_axis`,description:`chart.configText.measure_for_y_position`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.scatter.dropZone.yAxis.empty`},{key:`series`,label:`chart.configText.series_color_groups`,description:`chart.configText.dimension_to_color_points_by_category`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.scatter.dropZone.series.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`hideHeader`],displayOptionsConfig:[{key:`xAxisFormat`,label:`chart.option.xAxisFormat.label`,type:`axisFormat`,description:`chart.option.xAxisFormat.description`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.option.yAxisFormat.description`}]}})),$je=c({bubbleChartConfig:()=>DW}),DW,OW=o((()=>{DW={dropZones:[{key:`xAxis`,label:`chart.runtime.axisFormat.xAxis`,description:`chart.configText.horizontal_axis_position`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`chart.bubble.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.y_axis`,description:`chart.configText.vertical_axis_position`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.bubble.dropZone.yAxis.empty`},{key:`sizeField`,label:`chart.configText.bubble_radius`,description:`chart.configText.size_of_bubbles_based_on_this_measure`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.bubble.dropZone.sizeField.empty`},{key:`series`,label:`chart.configText.bubble_labels`,description:`chart.configText.field_to_use_for_bubble_labels_and_identification`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.bubble.dropZone.series.empty`},{key:`colorField`,label:`chart.configText.bubble_colour`,description:`chart.configText.color_bubbles_by_this_field_optional`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`,`measure`],emptyText:`chart.bubble.dropZone.colorField.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`minBubbleSize`,`maxBubbleSize`,`bubbleOpacity`,`hideHeader`],displayOptionsConfig:[{key:`xAxisFormat`,label:`chart.option.xAxisFormat.label`,type:`axisFormat`,description:`chart.option.xAxisFormat.description`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_y_axis_and_values`}]}})),eMe=c({radarChartConfig:()=>kW}),kW,AW=o((()=>{gW(),kW={dropZones:[{key:`xAxis`,label:`chart.configText.axes_categories`,description:`chart.configText.dimensions_for_radar_axes`,mandatory:!0,acceptTypes:[`dimension`],emptyText:`chart.radar.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.values`,description:`chart.configText.measures_for_radar_values`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.radar.dropZone.yAxis.empty`},{key:`series`,label:`chart.configText.series_multiple_shapes`,description:`chart.configText.dimensions_to_create_multiple_radar_shapes`,mandatory:!1,acceptTypes:[`dimension`],emptyText:`chart.radar.dropZone.series.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`hideHeader`],displayOptionsConfig:[oW()]}})),tMe=c({radialBarChartConfig:()=>jW}),jW,MW=o((()=>{gW(),jW={dropZones:[{key:`xAxis`,label:`chart.configText.categories`,description:`chart.configText.dimensions_for_radial_segments`,mandatory:!0,acceptTypes:[`dimension`],emptyText:`chart.radialBar.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.values`,description:`chart.configText.measures_for_radial_bar_lengths`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.radialBar.dropZone.yAxis.empty`}],displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],displayOptionsConfig:[oW()]}})),nMe=c({treemapChartConfig:()=>NW}),NW,PW=o((()=>{gW(),NW={dropZones:[{key:`xAxis`,label:`chart.configText.categories`,description:`chart.configText.dimensions_for_treemap_rectangles`,mandatory:!0,acceptTypes:[`dimension`],emptyText:`chart.treemap.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.size`,description:`chart.configText.measure_for_rectangle_sizes`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.treemap.dropZone.yAxis.empty`},{key:`series`,label:`chart.configText.color_groups`,description:`chart.configText.dimension_to_color_rectangles_by_category`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.treemap.dropZone.series.empty`}],displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],displayOptionsConfig:[oW(`chart.configText.number_formatting_for_size_values`)],clickableElements:{cell:!0}}})),rMe=c({dataTableConfig:()=>FW}),FW,IW=o((()=>{FW={dropZones:[{key:`xAxis`,label:`chart.configText.columns`,description:`chart.configText.all_fields_to_display_as_columns`,mandatory:!1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`chart.table.dropZone.xAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`leftYAxisFormat`,label:`chart.option.valueFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_numeric_values`}]}})),iMe=c({recordsTableConfig:()=>LW}),LW,RW=o((()=>{LW={dropZones:[{key:`columns`,label:`chart.recordsTable.dropZone.columns.label`,description:`chart.recordsTable.dropZone.columns.description`,mandatory:!1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`chart.recordsTable.dropZone.columns.empty`},{key:`hiddenColumns`,label:`chart.recordsTable.dropZone.hiddenColumns.label`,description:`chart.recordsTable.dropZone.hiddenColumns.description`,mandatory:!1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`chart.recordsTable.dropZone.hiddenColumns.empty`,excludeFromInference:!0}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`columnFormats`,label:`chart.recordsTable.option.columnFormats.label`,type:`columnFormats`,description:`chart.recordsTable.option.columnFormats.description`,progressBands:!0},{key:`rowLink`,label:`chart.recordsTable.option.rowLink.label`,type:`rowLink`,description:`chart.recordsTable.option.rowLink.description`},{key:`pageSize`,label:`chart.recordsTable.option.pageSize.label`,type:`select`,defaultValue:25,description:`chart.recordsTable.option.pageSize.description`,options:[{value:25,label:`chart.recordsTable.option.pageSize.option.25`},{value:50,label:`chart.recordsTable.option.pageSize.option.50`},{value:100,label:`chart.recordsTable.option.pageSize.option.100`}]}],clickableElements:{row:!0},recordGrain:!0}})),aMe=c({activityGridChartConfig:()=>zW}),zW,BW=o((()=>{zW={dropZones:[{key:`dateField`,label:`chart.configText.time_dimension`,description:`chart.configText.time_field_that_determines_grid_structure_granularity_affects_layout`,mandatory:!0,maxItems:1,acceptTypes:[`timeDimension`],emptyText:`chart.activityGrid.dropZone.dateField.empty`},{key:`valueField`,label:`chart.configText.activity_measure`,description:`chart.configText.measure_used_for_activity_intensity_color_coding`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.activityGrid.dropZone.valueField.empty`}],displayOptions:[`showLabels`,`showTooltip`,`hideHeader`],displayOptionsConfig:[{key:`fitToWidth`,label:`chart.option.fitToWidth.label`,type:`boolean`,defaultValue:!1,description:`chart.option.fitToWidth.description`}],validate:e=>{let{dateField:t,valueField:n}=e;return!t||Array.isArray(t)&&t.length===0?{isValid:!1,message:`chart.activityGrid.validation.timeDimensionRequired`}:!n||Array.isArray(n)&&n.length===0?{isValid:!1,message:`chart.activityGrid.validation.measureRequired`}:{isValid:!0}},clickableElements:{cell:!0}}})),oMe=c({kpiNumberConfig:()=>VW}),VW,HW=o((()=>{gW(),VW={dropZones:[{key:`yAxis`,label:`chart.configText.value`,description:`chart.configText.measure_to_display_as_kpi_number`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.kpiNumber.dropZone.yAxis.empty`}],displayOptionsConfig:[mW,{key:`target`,label:`chart.runtime.tooltip.targetValue`,type:`string`,placeholder:`e.g., 100`,description:`chart.configText.target_value_to_compare_against_first_value_used_if_multiple_provided`},{key:`prefix`,label:`chart.option.prefix.label`,type:`string`,placeholder:`e.g., $, €, #`,description:`chart.option.prefix.description`},{key:`suffix`,label:`chart.option.suffix.label`,type:`string`,placeholder:`e.g., %, units, items`,description:`chart.option.suffix.description`},{key:`decimals`,label:`chart.option.decimals.label`,type:`number`,defaultValue:0,min:0,max:10,step:1,description:`chart.option.decimals.description`},{key:`valueColorIndex`,label:`chart.configText.value_color`,type:`paletteColor`,defaultValue:0,description:`chart.configText.color_from_the_dashboard_palette_for_the_kpi_value_text`},{key:`useLastCompletePeriod`,label:`chart.option.useLastCompletePeriod.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.exclude_current_incomplete_period_from_aggregation_e_g_partial_week_mont`},{key:`skipLastPeriod`,label:`chart.option.skipLastPeriod.label`,type:`boolean`,defaultValue:!1,description:`chart.option.skipLastPeriod.description`}],displayOptions:[`hideHeader`]}})),sMe=c({kpiDeltaConfig:()=>UW}),UW,WW=o((()=>{gW(),UW={dropZones:[{key:`yAxis`,label:`chart.configText.value`,description:`chart.configText.measure_to_track_changes_for`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.kpiDelta.dropZone.yAxis.empty`},{key:`xAxis`,label:`chart.configText.dimension_optional`,description:`chart.configText.dimension_for_ordering_data_typically_time`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.kpiDelta.dropZone.xAxis.empty`}],displayOptionsConfig:[mW,{key:`showBaseline`,label:`chart.option.showBaseline.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showBaseline.description`},{key:`prefix`,label:`chart.option.prefix.label`,type:`string`,placeholder:`e.g., $, €, #`,description:`chart.option.prefix.description`},{key:`suffix`,label:`chart.option.suffix.label`,type:`string`,placeholder:`e.g., %, units, items`,description:`chart.option.suffix.description`},{key:`decimals`,label:`chart.option.decimals.label`,type:`number`,defaultValue:1,min:0,max:10,step:1,description:`chart.option.decimals.description`},{key:`positiveColorIndex`,label:`chart.configText.positive_change_color`,type:`paletteColor`,defaultValue:2,description:`chart.configText.color_for_positive_changes_increases`},{key:`negativeColorIndex`,label:`chart.configText.negative_change_color`,type:`paletteColor`,defaultValue:3,description:`chart.configText.color_for_negative_changes_decreases`},{key:`showHistogram`,label:`chart.option.showHistogram.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showHistogram.description`},{key:`useLastCompletePeriod`,label:`chart.option.useLastCompletePeriod.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.exclude_current_incomplete_period_from_delta_calculation_e_g_partial_wee`},{key:`skipLastPeriod`,label:`chart.option.skipLastPeriod.label`,type:`boolean`,defaultValue:!1,description:`chart.option.skipLastPeriod.description`}],displayOptions:[`hideHeader`],validate:e=>!e.yAxis||Array.isArray(e.yAxis)&&e.yAxis.length===0?{isValid:!1,message:`chart.kpiDelta.validation.measureRequired`}:{isValid:!0}}})),cMe=c({kpiTextConfig:()=>GW}),GW,KW=o((()=>{GW={dropZones:[{key:`yAxis`,label:`chart.configText.value`,description:`chart.configText.measure_to_display_in_the_kpi_text_template`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.kpiText.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`template`,label:`chart.configText.text_template`,type:`string`,placeholder:"e.g., Total Revenue: ${value}",description:`chart.configText.template_for_displaying_the_text_use_value_to_insert_the_measure_value`},{key:`decimals`,label:`chart.option.decimals.label`,type:`number`,defaultValue:0,min:0,max:10,step:1,description:`chart.configText.number_of_decimal_places_to_display_for_numeric_values`},{key:`valueColorIndex`,label:`chart.configText.value_color`,type:`paletteColor`,defaultValue:0,description:`chart.configText.color_from_the_dashboard_palette_for_the_kpi_value_text`}],displayOptions:[`hideHeader`]}})),lMe=c({markdownConfig:()=>qW}),qW,JW=o((()=>{qW={skipQuery:!0,dropZones:[],displayOptionsConfig:[{key:`content`,label:`chart.configText.markdown_content`,type:`string`,placement:`chart`,rows:18,syntax:`markdownTemplate`,placeholder:`chart.markdown.contentPlaceholder`,description:`chart.markdown.contentDescription`,docsUrl:`https://knap.md/variables`,docsLabel:`chart.markdown.contentDocsLabel`},{key:`accentColorIndex`,label:`chart.configText.accent_color`,type:`paletteColor`,defaultValue:0,description:`chart.configText.color_from_the_dashboard_palette_for_headers_bullets_and_links`},{key:`fontSize`,label:`chart.option.fontSize.label`,type:`select`,defaultValue:`medium`,options:[{value:`small`,label:`chart.option.fontSize.small`},{value:`medium`,label:`chart.option.fontSize.medium`},{value:`large`,label:`chart.option.fontSize.large`}],description:`chart.configText.overall_text_size_for_the_markdown_content`},{key:`alignment`,label:`chart.option.alignment.label`,type:`select`,defaultValue:`left`,options:[{value:`left`,label:`chart.option.accentBorder.left`},{value:`center`,label:`chart.option.alignment.center`},{value:`right`,label:`chart.option.alignment.right`}],description:`chart.configText.horizontal_alignment_of_the_markdown_content`},{key:`hideHeader`,label:`chart.option.hideHeader.label`,type:`boolean`,defaultValue:!0,description:`chart.option.hideHeader.description`},{key:`transparentBackground`,label:`chart.option.transparentBackground.label`,type:`boolean`,defaultValue:!1,description:`chart.option.transparentBackground.description`},{key:`autoHeight`,label:`chart.option.autoHeight.label`,type:`boolean`,defaultValue:!0,description:`chart.option.autoHeight.description`},{key:`accentBorder`,label:`chart.option.accentBorder.label`,type:`select`,defaultValue:`none`,options:[{value:`none`,label:`chart.option.accentBorder.none`},{value:`left`,label:`chart.option.accentBorder.left`},{value:`top`,label:`chart.option.accentBorder.top`},{value:`bottom`,label:`chart.option.accentBorder.bottom`}],description:`chart.configText.add_an_accent_colored_border_on_one_side_of_the_content`}]}})),uMe=c({funnelChartConfig:()=>YW}),YW,XW=o((()=>{YW={dropZones:[{key:`xAxis`,label:`chart.configText.step_name`,description:`chart.configText.step_names_auto_populated_from_funnel_steps`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.funnel.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.step_count`,description:`chart.configText.count_at_each_step_auto_calculated`,mandatory:!1,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.funnel.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`funnelStyle`,label:`chart.option.funnelStyle.label`,type:`buttonGroup`,defaultValue:`bars`,options:[{value:`bars`,label:`chart.option.funnelStyle.bars`},{value:`funnel`,label:`chart.option.funnelStyle.funnel`}],description:`chart.configText.visualization_style`},{key:`funnelOrientation`,label:`chart.option.funnelOrientation.label`,type:`buttonGroup`,defaultValue:`horizontal`,options:[{value:`horizontal`,label:`chart.option.funnelOrientation.horizontal`},{value:`vertical`,label:`chart.option.funnelOrientation.vertical`}]},{key:`hideSummaryFooter`,label:`chart.option.hideSummaryFooter.label`,type:`boolean`,defaultValue:!1,description:`chart.option.hideSummaryFooter.description`},{key:`showFunnelConversion`,label:`chart.option.showConversion.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showConversion.description`},{key:`showFunnelAvgTime`,label:`chart.option.showAvgTime.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showAvgTime.description`},{key:`showFunnelMedianTime`,label:`chart.option.showMedianTime.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showMedianTime.description`},{key:`showFunnelP90Time`,label:`chart.option.showP90Time.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showP90Time.description`}]}})),dMe=c({sankeyChartConfig:()=>ZW}),ZW,QW=o((()=>{ZW={dropZones:[{key:`xAxis`,label:`chart.configText.event_type`,description:`chart.configText.event_dimension_that_categorizes_flow_nodes`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.sankey.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.flow_count`,description:`chart.configText.count_of_entities_following_each_path`,mandatory:!1,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.sankey.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`linkOpacity`,label:`chart.option.linkOpacity.label`,type:`buttonGroup`,defaultValue:`0.5`,options:[{value:`0.3`,label:`chart.option.linkOpacity.light`},{value:`0.5`,label:`chart.option.fontSize.medium`},{value:`0.7`,label:`chart.option.linkOpacity.dark`}],description:`chart.configText.opacity_of_flow_links`},{key:`showNodeLabels`,label:`chart.option.showNodeLabels.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showNodeLabels.description`},{key:`hideSummaryFooter`,label:`chart.option.hideSummaryFooter.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.hide_the_statistics_footer_below_the_chart`}]}})),fMe=c({sunburstChartConfig:()=>$W}),$W,eG=o((()=>{$W={dropZones:[{key:`xAxis`,label:`chart.configText.event_type`,description:`chart.configText.event_dimension_that_categorizes_flow_nodes`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.sunburst.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.flow_count`,description:`chart.configText.count_of_entities_following_each_path`,mandatory:!1,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.sunburst.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`innerRadius`,label:`chart.option.innerRadius.label`,type:`number`,defaultValue:40,min:0,max:100,step:10,description:`chart.configText.size_of_the_center_hole_0_for_full_circle`},{key:`hideSummaryFooter`,label:`chart.option.hideSummaryFooter.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.hide_the_statistics_footer_below_the_chart`}]}})),pMe=c({heatmapChartConfig:()=>tG}),tG,nG=o((()=>{tG={dropZones:[{key:`xAxis`,label:`chart.configText.columns_x_axis`,description:`chart.configText.dimension_for_column_categories`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.heatmap.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.rows_y_axis`,description:`chart.configText.dimension_for_row_categories`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.heatmap.dropZone.yAxis.empty`},{key:`valueField`,label:`chart.configText.value_color_intensity`,description:`chart.configText.measure_that_determines_cell_color`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.heatmap.dropZone.valueField.empty`}],displayOptions:[`showLegend`,`showTooltip`],displayOptionsConfig:[{key:`showLabels`,label:`chart.option.showLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showLabels.description`},{key:`cellShape`,label:`chart.option.cellShape.label`,type:`select`,defaultValue:`rect`,options:[{value:`rect`,label:`chart.option.cellShape.rectangle`},{value:`circle`,label:`chart.option.cellShape.circle`}]},{key:`xAxisFormat`,label:`chart.option.xAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_x_axis_labels`},{key:`yAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_y_axis_labels`},{key:`valueFormat`,label:`chart.option.valueFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_cell_values_and_legend`}],validate:e=>e.xAxis?.length?e.yAxis?.length?e.valueField?.length?{isValid:!0}:{isValid:!1,message:`chart.heatmap.validation.valueRequired`}:{isValid:!1,message:`chart.heatmap.validation.yAxisRequired`}:{isValid:!1,message:`chart.heatmap.validation.xAxisRequired`}}})),mMe=c({retentionHeatmapConfig:()=>rG}),rG,iG=o((()=>{rG={dropZones:[],displayOptionsConfig:[{key:`showLegend`,label:`chart.option.showLegend.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.show_the_color_intensity_legend`},{key:`showTooltip`,label:`chart.option.showTooltip.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showTooltip.description`}]}})),hMe=c({retentionCombinedConfig:()=>aG}),aG,oG=o((()=>{aG={dropZones:[],displayOptionsConfig:[{key:`retentionDisplayMode`,label:`chart.option.retentionDisplayMode.label`,type:`select`,defaultValue:`line`,options:[{value:`line`,label:`chart.option.retentionDisplayMode.lineChart`},{value:`heatmap`,label:`chart.option.retentionDisplayMode.heatmapTable`},{value:`combined`,label:`chart.option.retentionDisplayMode.combined`}],description:`chart.configText.choose_how_to_visualize_retention_data`},{key:`showLegend`,label:`chart.option.showLegend.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.show_the_legend_for_breakdown_segments`},{key:`showGrid`,label:`chart.option.showGrid.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showGrid.description`},{key:`showTooltip`,label:`chart.option.showTooltip.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showTooltip.description`}]}})),gMe=c({boxPlotChartConfig:()=>sG}),sG,cG=o((()=>{sG={displayOptions:[`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.configText.x_axis_groups`,description:`chart.configText.dimension_to_group_boxes_by_e_g_symbol_platform`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.boxPlot.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.y_axis_measures`,description:`chart.configText.drop_1_measure_for_auto_mode_3_for_avg_stddev_median_mode_or_5_for_min_q`,mandatory:!0,maxItems:5,acceptTypes:[`measure`],emptyText:`chart.boxPlot.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_value_axis`}]}})),_Me=c({dotStripChartConfig:()=>lG}),lG,uG=o((()=>{lG={displayOptions:[`showGrid`,`showTooltip`,`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.dotStrip.dropZone.xAxis.label`,description:`chart.dotStrip.dropZone.xAxis.description`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.dotStrip.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.dotStrip.dropZone.yAxis.label`,description:`chart.dotStrip.dropZone.yAxis.description`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.dotStrip.dropZone.yAxis.empty`},{key:`series`,label:`chart.dotStrip.dropZone.series.label`,description:`chart.dotStrip.dropZone.series.description`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.dotStrip.dropZone.series.empty`}],clickableElements:{point:!0},displayOptionsConfig:[{key:`showMedianMarker`,label:`chart.option.showMedianMarker.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showMedianMarker.description`},{key:`showBandStats`,label:`chart.option.showBandStats.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showBandStats.description`},{key:`showExtremeLabels`,label:`chart.option.showExtremeLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showExtremeLabels.description`},{key:`dotSize`,label:`chart.option.dotSize.label`,type:`select`,defaultValue:`medium`,options:[{value:`small`,label:`chart.option.dotSize.small`},{value:`medium`,label:`chart.option.dotSize.medium`},{value:`large`,label:`chart.option.dotSize.large`}],description:`chart.option.dotSize.description`},{key:`bandSort`,label:`chart.option.bandSort.label`,type:`select`,defaultValue:`none`,options:[{value:`none`,label:`chart.option.bandSort.none`},{value:`valueDesc`,label:`chart.option.bandSort.valueDesc`},{value:`valueAsc`,label:`chart.option.bandSort.valueAsc`},{value:`count`,label:`chart.option.bandSort.count`}],description:`chart.option.bandSort.description`},{key:`xAxisFormat`,label:`chart.option.xAxisFormat.label`,type:`axisFormat`,description:`chart.option.xAxisFormat.description`}]}})),vMe=c({waterfallChartConfig:()=>dG}),dG,fG=o((()=>{dG={clickableElements:{bar:!0},displayOptions:[`showTooltip`,`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.dropZone.xAxis.label`,description:`chart.configText.dimension_labels_for_each_bar_segment_e_g_symbol_transaction_type`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.waterfall.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.y_axis_value`,description:`chart.configText.single_measure_whose_values_are_summed_cumulatively`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.waterfall.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`showTotal`,label:`chart.option.showTotal.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showTotal.description`},{key:`showConnectorLine`,label:`chart.option.showConnectorLine.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showConnectorLine.description`},{key:`showDataLabels`,label:`chart.option.showDataLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.configText.display_the_value_above_each_bar_segment`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_y_axis`}]}})),yMe=c({candlestickChartConfig:()=>pG}),pG,mG=o((()=>{pG={clickableElements:{bar:!0},displayOptions:[`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.configText.x_axis_time_category`,description:`chart.configText.time_dimension_or_category_for_each_candle_e_g_date_symbol`,mandatory:!0,maxItems:1,acceptTypes:[`timeDimension`,`dimension`],emptyText:`chart.candlestick.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.ohlc_measures_open_close_high_low`,description:`chart.configText.drop_2_4_measures_in_order_open_close_high_low_ohlc_mode_for_range_mode_`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.candlestick.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`rangeMode`,label:`chart.option.rangeMode.label`,type:`select`,defaultValue:`ohlc`,options:[{value:`ohlc`,label:`chart.option.rangeMode.ohlc`},{value:`range`,label:`chart.option.rangeMode.range`}],description:`chart.option.rangeMode.description`},{key:`bullColor`,label:`chart.option.bullColor.label`,type:`color`,defaultValue:`#22c55e`,description:`chart.option.bullColor.description`},{key:`bearColor`,label:`chart.option.bearColor.label`,type:`color`,defaultValue:`#ef4444`,description:`chart.option.bearColor.description`},{key:`showWicks`,label:`chart.option.showWicks.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showWicks.description`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_price_axis`}]}})),bMe=c({measureProfileChartConfig:()=>hG}),hG,gG=o((()=>{hG={displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],dropZones:[{key:`yAxis`,label:`chart.configText.measures_x_axis_order`,description:`chart.configText.add_2_or_more_measures_they_become_the_x_axis_categories_in_the_order_li`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.measureProfile.dropZone.yAxis.empty`},{key:`series`,label:`chart.configText.series_split_into_multiple_lines`,description:`chart.configText.dimension_to_split_data_into_separate_profile_lines_e_g_symbol_platform`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.measureProfile.dropZone.series.empty`}],displayOptionsConfig:[{key:`showReferenceLineAtZero`,label:`chart.option.showReferenceLineAtZero.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showReferenceLineAtZero.description`},{key:`showDataLabels`,label:`chart.option.showDataLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.configText.display_value_at_each_data_point`},{key:`showLegend`,label:`chart.option.showLegend.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.show_series_legend_only_visible_with_a_series_dimension`},{key:`lineType`,label:`chart.option.lineType.label`,type:`select`,defaultValue:`monotone`,options:[{value:`monotone`,label:`chart.option.lineType.smooth`},{value:`linear`,label:`chart.option.lineType.linear`},{value:`step`,label:`chart.option.lineType.step`}],description:`chart.option.lineType.description`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_y_axis`}]}})),xMe=c({proportionBarChartConfig:()=>_G}),_G,vG=o((()=>{_G={dropZones:[{key:`xAxis`,label:`chart.configText.category`,description:`chart.configText.dimension_to_split_the_bar_into_segments`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.proportionBar.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.value`,description:`chart.configText.measure_that_determines_each_segments_share`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.proportionBar.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`showLabels`,label:`chart.option.proportionBarLabels.label`,type:`boolean`,defaultValue:!0,description:`chart.option.proportionBarLabels.description`},{key:`showPercentages`,label:`chart.option.showPercentages.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showPercentages.description`},{key:`sortSegments`,label:`chart.option.sortSegments.label`,type:`boolean`,defaultValue:!1,description:`chart.option.sortSegments.description`},{key:`decimals`,label:`chart.option.decimals.label`,type:`number`,defaultValue:0,min:0,max:2,description:`chart.option.proportionBarDecimals.description`}],validate:e=>!e?.xAxis||Array.isArray(e.xAxis)&&e.xAxis.length===0?{isValid:!1,message:`chart.proportionBar.validation.dimensionRequired`}:!e?.yAxis||Array.isArray(e.yAxis)&&e.yAxis.length===0?{isValid:!1,message:`chart.proportionBar.validation.measureRequired`}:{isValid:!0}}})),SMe=c({gaugeChartConfig:()=>yG}),yG,bG=o((()=>{yG={clickableElements:{},displayOptions:[`hideHeader`],dropZones:[{key:`yAxis`,label:`chart.configText.value_measure`,description:`chart.configText.current_value_to_display_on_the_gauge_e_g_current_equity_margin_used`,mandatory:!0,maxItems:2,acceptTypes:[`measure`],emptyText:`chart.gauge.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`minValue`,label:`chart.option.minValue.label`,type:`number`,defaultValue:0,description:`chart.option.minValue.description`},{key:`maxValue`,label:`chart.option.maxValue.label`,type:`number`,description:`chart.option.maxValue.description`},{key:`thresholds`,label:`chart.configText.threshold_bands`,type:`thresholdBands`,description:`chart.gauge.thresholds.description`},{key:`showCenterLabel`,label:`chart.option.showCentreLabel.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showCentreLabel.description`},{key:`showPercentage`,label:`chart.option.showPercentage.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showPercentage.description`},{key:`leftYAxisFormat`,label:`chart.option.valueFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_displayed_value_and_axis_labels`}]}}));vW(),bW(),SW(),wW(),EW(),OW(),AW(),MW(),PW(),IW(),RW(),BW(),HW(),WW(),KW(),JW(),XW(),QW(),eG(),nG(),iG(),oG(),cG(),uG(),fG(),mG(),gG(),vG(),bG(),gW();var xG={packageName:`recharts`,installCommand:`npm install recharts`},SG={bar:{label:`chart.bar.label`,icon:`chartBar`,description:`chart.bar.description`,useCase:`chart.bar.useCase`,isAvailable:iW,dependencies:xG,config:async()=>(await zh(async()=>{let{barChartConfig:e}=await Promise.resolve().then(()=>(vW(),Jje));return{barChartConfig:e}},void 0,import.meta.url)).barChartConfig},line:{label:`chart.line.label`,icon:`chartLine`,description:`chart.line.description`,useCase:`chart.line.useCase`,isAvailable:iW,dependencies:xG,config:async()=>(await zh(async()=>{let{lineChartConfig:e}=await Promise.resolve().then(()=>(bW(),Yje));return{lineChartConfig:e}},void 0,import.meta.url)).lineChartConfig},area:{label:`chart.area.label`,icon:`chartArea`,description:`chart.area.description`,useCase:`chart.area.useCase`,isAvailable:iW,dependencies:xG,config:async()=>(await zh(async()=>{let{areaChartConfig:e}=await Promise.resolve().then(()=>(SW(),Xje));return{areaChartConfig:e}},void 0,import.meta.url)).areaChartConfig},pie:{label:`chart.pie.label`,icon:`chartPie`,description:`chart.pie.description`,useCase:`chart.pie.useCase`,isAvailable:iW,dependencies:xG,config:async()=>(await zh(async()=>{let{pieChartConfig:e}=await Promise.resolve().then(()=>(wW(),Zje));return{pieChartConfig:e}},void 0,import.meta.url)).pieChartConfig},scatter:{label:`chart.scatter.label`,icon:`chartScatter`,description:`chart.scatter.description`,useCase:`chart.scatter.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:e<2&&t<1?{available:!1,reason:`chart.availability.scatter`}:{available:!0},dependencies:xG,config:async()=>(await zh(async()=>{let{scatterChartConfig:e}=await Promise.resolve().then(()=>(EW(),Qje));return{scatterChartConfig:e}},void 0,import.meta.url)).scatterChartConfig},bubble:{label:`chart.bubble.label`,icon:`chartBubble`,description:`chart.bubble.description`,useCase:`chart.bubble.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<2?{available:!1,reason:`chart.availability.requiresTwoMeasures`}:t<1?{available:!1,reason:`chart.availability.bubble`}:{available:!0},dependencies:xG,config:async()=>(await zh(async()=>{let{bubbleChartConfig:e}=await Promise.resolve().then(()=>(OW(),$je));return{bubbleChartConfig:e}},void 0,import.meta.url)).bubbleChartConfig},radar:{label:`chart.radar.label`,icon:`chartRadar`,description:`chart.radar.description`,useCase:`chart.radar.useCase`,isAvailable:iW,dependencies:xG,config:async()=>(await zh(async()=>{let{radarChartConfig:e}=await Promise.resolve().then(()=>(AW(),eMe));return{radarChartConfig:e}},void 0,import.meta.url)).radarChartConfig},radialBar:{label:`chart.radialBar.label`,icon:`chartRadialBar`,description:`chart.radialBar.description`,useCase:`chart.radialBar.useCase`,isAvailable:iW,dependencies:xG,config:async()=>(await zh(async()=>{let{radialBarChartConfig:e}=await Promise.resolve().then(()=>(MW(),tMe));return{radialBarChartConfig:e}},void 0,import.meta.url)).radialBarChartConfig},treemap:{label:`chart.treemap.label`,icon:`chartTreemap`,description:`chart.treemap.description`,useCase:`chart.treemap.useCase`,isAvailable:iW,dependencies:xG,config:async()=>(await zh(async()=>{let{treemapChartConfig:e}=await Promise.resolve().then(()=>(PW(),nMe));return{treemapChartConfig:e}},void 0,import.meta.url)).treemapChartConfig},table:{label:`chart.table.label`,icon:`chartTable`,description:`chart.table.description`,useCase:`chart.table.useCase`,config:async()=>(await zh(async()=>{let{dataTableConfig:e}=await Promise.resolve().then(()=>(IW(),rMe));return{dataTableConfig:e}},void 0,import.meta.url)).dataTableConfig},recordsTable:{label:`chart.recordsTable.label`,icon:`chartRecordsTable`,description:`chart.recordsTable.description`,useCase:`chart.recordsTable.useCase`,config:async()=>(await zh(async()=>{let{recordsTableConfig:e}=await Promise.resolve().then(()=>(RW(),iMe));return{recordsTableConfig:e}},void 0,import.meta.url)).recordsTableConfig},activityGrid:{label:`chart.activityGrid.label`,icon:`chartActivityGrid`,description:`chart.activityGrid.description`,useCase:`chart.activityGrid.useCase`,isAvailable:({measureCount:e,timeDimensionCount:t})=>e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:t<1?{available:!1,reason:`chart.availability.requiresTimeDimension`}:{available:!0},config:async()=>(await zh(async()=>{let{activityGridChartConfig:e}=await Promise.resolve().then(()=>(BW(),aMe));return{activityGridChartConfig:e}},void 0,import.meta.url)).activityGridChartConfig},kpiNumber:{label:`chart.kpiNumber.label`,icon:`chartKpiNumber`,description:`chart.kpiNumber.description`,useCase:`chart.kpiNumber.useCase`,isAvailable:aW,config:async()=>(await zh(async()=>{let{kpiNumberConfig:e}=await Promise.resolve().then(()=>(HW(),oMe));return{kpiNumberConfig:e}},void 0,import.meta.url)).kpiNumberConfig},kpiDelta:{label:`chart.kpiDelta.label`,icon:`chartKpiDelta`,description:`chart.kpiDelta.description`,useCase:`chart.kpiDelta.useCase`,isAvailable:iW,config:async()=>(await zh(async()=>{let{kpiDeltaConfig:e}=await Promise.resolve().then(()=>(WW(),sMe));return{kpiDeltaConfig:e}},void 0,import.meta.url)).kpiDeltaConfig},kpiText:{label:`chart.kpiText.label`,icon:`chartKpiText`,description:`chart.kpiText.description`,useCase:`chart.kpiText.useCase`,isAvailable:aW,config:async()=>(await zh(async()=>{let{kpiTextConfig:e}=await Promise.resolve().then(()=>(KW(),cMe));return{kpiTextConfig:e}},void 0,import.meta.url)).kpiTextConfig},markdown:{label:`chart.markdown.label`,icon:`chartMarkdown`,description:`chart.markdown.description`,useCase:`chart.markdown.useCase`,config:async()=>(await zh(async()=>{let{markdownConfig:e}=await Promise.resolve().then(()=>(JW(),lMe));return{markdownConfig:e}},void 0,import.meta.url)).markdownConfig},funnel:{label:`chart.funnel.label`,icon:`chartFunnel`,description:`chart.funnel.description`,useCase:`chart.funnel.useCase`,dependencies:xG,config:async()=>(await zh(async()=>{let{funnelChartConfig:e}=await Promise.resolve().then(()=>(XW(),uMe));return{funnelChartConfig:e}},void 0,import.meta.url)).funnelChartConfig},sankey:{label:`chart.sankey.label`,icon:`chartSankey`,description:`chart.sankey.description`,useCase:`chart.sankey.useCase`,dependencies:xG,config:async()=>(await zh(async()=>{let{sankeyChartConfig:e}=await Promise.resolve().then(()=>(QW(),dMe));return{sankeyChartConfig:e}},void 0,import.meta.url)).sankeyChartConfig},sunburst:{label:`chart.sunburst.label`,icon:`chartSunburst`,description:`chart.sunburst.description`,useCase:`chart.sunburst.useCase`,dependencies:xG,config:async()=>(await zh(async()=>{let{sunburstChartConfig:e}=await Promise.resolve().then(()=>(eG(),fMe));return{sunburstChartConfig:e}},void 0,import.meta.url)).sunburstChartConfig},heatmap:{label:`chart.heatmap.label`,icon:`chartHeatmap`,description:`chart.heatmap.description`,useCase:`chart.heatmap.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:t<2?{available:!1,reason:`chart.availability.requiresTwoDimensions`}:{available:!0},dependencies:{packageName:`@nivo/heatmap`,installCommand:`npm install @nivo/heatmap`},config:async()=>(await zh(async()=>{let{heatmapChartConfig:e}=await Promise.resolve().then(()=>(nG(),pMe));return{heatmapChartConfig:e}},void 0,import.meta.url)).heatmapChartConfig},retentionHeatmap:{label:`chart.retentionHeatmap.label`,icon:`chartRetention`,description:`chart.retentionHeatmap.description`,useCase:`chart.retentionHeatmap.useCase`,config:async()=>(await zh(async()=>{let{retentionHeatmapConfig:e}=await Promise.resolve().then(()=>(iG(),mMe));return{retentionHeatmapConfig:e}},void 0,import.meta.url)).retentionHeatmapConfig},retentionCombined:{label:`chart.retentionCombined.label`,icon:`chartRetention`,description:`chart.retentionCombined.description`,useCase:`chart.retentionCombined.useCase`,config:async()=>(await zh(async()=>{let{retentionCombinedConfig:e}=await Promise.resolve().then(()=>(oG(),hMe));return{retentionCombinedConfig:e}},void 0,import.meta.url)).retentionCombinedConfig},boxPlot:{label:`chart.boxPlot.label`,icon:`chartBoxPlot`,description:`chart.boxPlot.description`,useCase:`chart.boxPlot.useCase`,isAvailable:iW,config:async()=>(await zh(async()=>{let{boxPlotChartConfig:e}=await Promise.resolve().then(()=>(cG(),gMe));return{boxPlotChartConfig:e}},void 0,import.meta.url)).boxPlotChartConfig},dotStrip:{label:`chart.dotStrip.label`,icon:`chartDotStrip`,description:`chart.dotStrip.description`,useCase:`chart.dotStrip.useCase`,isAvailable:iW,config:async()=>(await zh(async()=>{let{dotStripChartConfig:e}=await Promise.resolve().then(()=>(uG(),_Me));return{dotStripChartConfig:e}},void 0,import.meta.url)).dotStripChartConfig},waterfall:{label:`chart.waterfall.label`,icon:`chartWaterfall`,description:`chart.waterfall.description`,useCase:`chart.waterfall.useCase`,isAvailable:iW,dependencies:xG,config:async()=>(await zh(async()=>{let{waterfallChartConfig:e}=await Promise.resolve().then(()=>(fG(),vMe));return{waterfallChartConfig:e}},void 0,import.meta.url)).waterfallChartConfig},candlestick:{label:`chart.candlestick.label`,icon:`chartCandlestick`,description:`chart.candlestick.description`,useCase:`chart.candlestick.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<2?{available:!1,reason:`chart.availability.requiresTwoMeasures`}:t<1?{available:!1,reason:`chart.availability.requiresDimension`}:{available:!0},config:async()=>(await zh(async()=>{let{candlestickChartConfig:e}=await Promise.resolve().then(()=>(mG(),yMe));return{candlestickChartConfig:e}},void 0,import.meta.url)).candlestickChartConfig},measureProfile:{label:`chart.measureProfile.label`,icon:`chartMeasureProfile`,description:`chart.measureProfile.description`,useCase:`chart.measureProfile.useCase`,isAvailable:({measureCount:e})=>e<2?{available:!1,reason:`chart.availability.requiresTwoMeasures`}:{available:!0},dependencies:xG,config:async()=>(await zh(async()=>{let{measureProfileChartConfig:e}=await Promise.resolve().then(()=>(gG(),bMe));return{measureProfileChartConfig:e}},void 0,import.meta.url)).measureProfileChartConfig},proportionBar:{label:`chart.proportionBar.label`,icon:`chartProportionBar`,description:`chart.proportionBar.description`,useCase:`chart.proportionBar.useCase`,isAvailable:iW,config:async()=>(await zh(async()=>{let{proportionBarChartConfig:e}=await Promise.resolve().then(()=>(vG(),xMe));return{proportionBarChartConfig:e}},void 0,import.meta.url)).proportionBarChartConfig},gauge:{label:`chart.gauge.label`,icon:`chartGauge`,description:`chart.gauge.description`,useCase:`chart.gauge.useCase`,isAvailable:aW,dependencies:{packageName:`d3-shape`,installCommand:`npm install d3-shape`},config:async()=>(await zh(async()=>{let{gaugeChartConfig:e}=await Promise.resolve().then(()=>(bG(),SMe));return{gaugeChartConfig:e}},void 0,import.meta.url)).gaugeChartConfig}},CMe=new Map;function wMe(e){return CMe.get(e)??SG[e]}function TMe(e,t){return{...t,label:e.label,description:e.description,useCase:e.useCase,isAvailable:e.isAvailable}}var EMe={bar:_W,line:yW,area:xW,pie:CW,scatter:TW,bubble:DW,radar:kW,radialBar:jW,treemap:NW,table:FW,recordsTable:LW,activityGrid:zW,kpiNumber:VW,kpiDelta:UW,kpiText:GW,markdown:qW,funnel:YW,sankey:ZW,sunburst:$W,heatmap:tG,retentionHeatmap:rG,retentionCombined:aG,boxPlot:sG,dotStrip:lG,waterfall:dG,candlestick:pG,measureProfile:hG,proportionBar:_G,gauge:yG},DMe=Object.fromEntries(Object.keys(SG).map(e=>[e,TMe(SG[e],EMe[e])]));function OMe({chartType:e,packageName:t,installCommand:n,height:r=200}){let{t:i}=fg();return(0,J.jsxs)(`div`,{className:`dc-missing-dependency-fallback`,style:{height:typeof r==`number`?`${r}px`:r,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,width:`100%`,padding:`1.5rem`,textAlign:`center`,border:`1px dashed var(--dc-border, #e5e7eb)`,borderRadius:`0.5rem`,backgroundColor:`var(--dc-surface, #f9fafb)`},children:[(0,J.jsx)(`div`,{style:{fontSize:`2.5rem`,marginBottom:`1rem`},children:`📦`}),(0,J.jsx)(`h3`,{style:{fontSize:`1.125rem`,fontWeight:600,marginBottom:`0.5rem`,color:`var(--dc-text, #111827)`},children:i(`chart.runtime.missingDep.title`)}),(0,J.jsx)(`p`,{style:{fontSize:`0.875rem`,color:`var(--dc-text-secondary, #6b7280)`,marginBottom:`1rem`,maxWidth:`28rem`},children:i(`chart.runtime.missingDep.description`,{chartType:e,packageName:t})}),(0,J.jsxs)(`div`,{style:{backgroundColor:`var(--dc-surface-secondary, #f3f4f6)`,borderRadius:`0.5rem`,padding:`0.75rem 1rem`,fontFamily:`monospace`,fontSize:`0.875rem`,color:`var(--dc-text, #111827)`},children:[(0,J.jsx)(`span`,{style:{color:`var(--dc-text-muted, #9ca3af)`,userSelect:`none`},children:`$ `}),n]}),(0,J.jsx)(`p`,{style:{fontSize:`0.75rem`,color:`var(--dc-text-muted, #9ca3af)`,marginTop:`0.75rem`},children:i(`chart.runtime.missingDep.restartHint`)})]})}var kMe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m4.5 19.5l15-15m-15 0l15 15"/>`},AMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"/>`},jMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 1 1 3.536 3.536L6.5 21.036H3v-3.572z"/>`},MMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m19 7l-.867 12.142A2 2 0 0 1 16.138 21H7.862a2 2 0 0 1-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v3M4 7h16"/>`},CG={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.5 12c0-1.232.046-2.453.138-3.662a4.006 4.006 0 0 1 3.7-3.7a48.678 48.678 0 0 1 7.324 0a4.006 4.006 0 0 1 3.7 3.7c.017.22.032.441.046.662M4.5 12l-3-3m3 3l3-3m12 3c0 1.232-.046 2.453-.138 3.662a4.006 4.006 0 0 1-3.7 3.7a48.657 48.657 0 0 1-7.324 0a4.006 4.006 0 0 1-3.7-3.7c-.017-.22-.032-.441-.046-.662M19.5 12l-3 3m3-3l3 3"/>`},NMe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192c.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"/>`},PMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7v8a2 2 0 0 0 2 2h6M8 7V5a2 2 0 0 1 2-2h4.586a1 1 0 0 1 .707.293l4.414 4.414a1 1 0 0 1 .293.707V15a2 2 0 0 1-2 2h-2M8 7H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-2"/>`},FMe={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 0 0-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 0 0-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 0 0-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 0 0-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 0 0 1.066-2.573c-.94-1.543.826-3.31 2.37-2.37c.996.608 2.296.07 2.572-1.065"/><path d="M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0"/></g>`},IMe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 3c2.755 0 5.455.232 8.083.678c.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"/>`},LMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.684 13.342C8.886 12.938 9 12.482 9 12s-.114-.938-.316-1.342m0 2.684a3 3 0 1 1 0-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 1 0 5.367-2.684a3 3 0 0 0-5.367 2.684m0 9.316a3 3 0 1 0 5.368 2.684a3 3 0 0 0-5.368-2.684"/>`},wG={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m5 15l7-7l7 7"/>`},TG={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m19 9l-7 7l-7-7"/>`},RMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m15 19l-7-7l7-7"/>`},zMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 5l7 7l-7 7"/>`},BMe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m21 21l-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"/>`},VMe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"/>`},HMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 12l2 2l4-4m6 2a9 9 0 1 1-18 0a9 9 0 0 1 18 0"/>`},UMe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 10.5v3.75m-9.303 3.376C1.83 19.126 2.914 21 4.645 21h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 4.88c-.866-1.501-3.032-1.501-3.898 0L2.697 17.626ZM12 17.25h.007v.008H12v-.008Z"/>`},WMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0"/>`},GMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143z"/>`},KMe={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0"/><path d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7s-8.268-2.943-9.542-7"/></g>`},qMe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3.98 8.223A10.477 10.477 0 0 0 1.934 12c1.292 4.338 5.31 7.5 10.066 7.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 0 1-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"/>`},JMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 9v6m4-6v6m7-3a9 9 0 1 1-18 0a9 9 0 0 1 18 0"/>`},YMe={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m14.752 11.168l-3.197-2.132A1 1 0 0 0 10 9.87v4.263a1 1 0 0 0 1.555.832l3.197-2.132a1 1 0 0 0 0-1.664"/><path d="M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0"/></g>`},XMe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"/>`},ZMe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25"/>`},QMe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h7.5c.621 0 1.125-.504 1.125-1.125m-9.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-7.5A1.125 1.125 0 0 1 12 18.375m9.75-12.75c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125m19.5 0v1.5c0 .621-.504 1.125-1.125 1.125M2.25 5.625v1.5c0 .621.504 1.125 1.125 1.125m0 0h17.25m-17.25 0h7.5c.621 0 1.125.504 1.125 1.125M3.375 8.25c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m17.25-3.75h-7.5c-.621 0-1.125.504-1.125 1.125m8.625-1.125c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M12 10.875v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125M13.125 12h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125M20.625 12c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5M12 14.625v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 14.625c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m0 1.5v-1.5m0 0c0-.621.504-1.125 1.125-1.125m0 0h7.5"/>`},$Me={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.828 10.172a4 4 0 0 0-5.656 0l-4 4a4 4 0 1 0 5.656 5.656l1.102-1.101m-.758-4.899a4 4 0 0 0 5.656 0l4-4a4 4 0 0 0-5.656-5.656l-1.1 1.1"/>`},eNe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m14 5l7 7m0 0l-7 7m7-7H3"/>`},tNe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 1 1-8 0a4 4 0 0 1 8 0"/>`},nNe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 0 1 8.646 3.646A9.003 9.003 0 0 0 12 21a9 9 0 0 0 8.354-5.646"/>`},rNe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M6.75 12a.75.75 0 1 1-1.5 0a.75.75 0 0 1 1.5 0Zm6 0a.75.75 0 1 1-1.5 0a.75.75 0 0 1 1.5 0Zm6 0a.75.75 0 1 1-1.5 0a.75.75 0 0 1 1.5 0Z"/>`},iNe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707V19a2 2 0 0 1-2 2"/>`},aNe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18s-3.332.477-4.5 1.253"/>`},oNe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M17.25 6.75L22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3l-4.5 16.5"/>`},sNe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.098 19.902a3.75 3.75 0 0 0 5.304 0l6.401-6.402M6.75 21A3.75 3.75 0 0 1 3 17.25V4.125C3 3.504 3.504 3 4.125 3h5.25c.621 0 1.125.504 1.125 1.125v4.072M6.75 21a3.75 3.75 0 0 0 3.75-3.75V8.197M6.75 21h13.125c.621 0 1.125-.504 1.125-1.125v-5.25c0-.621-.504-1.125-1.125-1.125h-4.072M10.5 8.197l2.88-2.88a1.124 1.124 0 0 1 1.59 0l3.712 3.713c.44.44.44 1.152 0 1.59l-2.879 2.88M6.75 17.25h.008v.008H6.75v-.008Z"/>`},cNe={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 9a2 2 0 0 1 2-2h.93a2 2 0 0 0 1.664-.89l.812-1.22A2 2 0 0 1 10.07 4h3.86a2 2 0 0 1 1.664.89l.812 1.22A2 2 0 0 0 18.07 7H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><path d="M15 13a3 3 0 1 1-6 0a3 3 0 0 1 6 0"/></g>`},lNe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3"/>`},uNe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5"/>`},dNe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"/>`},fNe={width:20,height:20,hidden:!0,body:`<path fill="currentColor" d="M1 8.25a1.25 1.25 0 1 1 2.5 0v7.5a1.25 1.25 0 1 1-2.5 0v-7.5ZM11 3V1.7c0-.268.14-.526.395-.607A2 2 0 0 1 14 3c0 .995-.182 1.948-.514 2.826c-.204.54.166 1.174.744 1.174h2.52c1.243 0 2.261 1.01 2.146 2.247a23.864 23.864 0 0 1-1.341 5.974C17.153 16.323 16.072 17 14.9 17h-3.192a3 3 0 0 1-1.341-.317l-2.734-1.366A3 3 0 0 0 6.292 15H5V8h.963c.685 0 1.258-.483 1.612-1.068a4.011 4.011 0 0 1 2.166-1.73c.432-.143.853-.386 1.011-.814c.16-.432.248-.9.248-1.388Z"/>`},pNe={width:20,height:20,hidden:!0,body:`<path fill="currentColor" d="M18.905 12.75a1.25 1.25 0 0 1-2.5 0v-7.5a1.25 1.25 0 1 1 2.5 0v7.5Zm-10 4.25v1.3c0 .268-.14.526-.395.607A2 2 0 0 1 5.905 17c0-.995.182-1.948.514-2.826c.204-.54-.166-1.174-.744-1.174h-2.52c-1.242 0-2.26-1.01-2.146-2.247c.193-2.08.652-4.082 1.341-5.974C2.752 3.678 3.833 3 5.005 3h3.192a3 3 0 0 1 1.342.317l2.733 1.366A3 3 0 0 0 13.613 5h1.292v7h-.963c-.684 0-1.258.482-1.612 1.068a4.012 4.012 0 0 1-2.165 1.73c-.433.143-.854.386-1.012.814c-.16.432-.248.9-.248 1.388Z"/>`},mNe={width:20,height:20,body:`<path fill="currentColor" d="M2 11a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm6-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1zm6-3a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1z"/>`},hNe={width:20,height:20,body:`<path fill="currentColor" fill-rule="evenodd" d="M17.707 9.293a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414 0l-7-7A1 1 0 0 1 2 10V5a3 3 0 0 1 3-3h5c.256 0 .512.098.707.293zM5 6a1 1 0 1 0 0-2a1 1 0 0 0 0 2" clip-rule="evenodd"/>`},gNe={width:20,height:20,body:`<path fill="currentColor" fill-rule="evenodd" d="M6 2a1 1 0 0 0-1 1v1H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-1V3a1 1 0 1 0-2 0v1H7V3a1 1 0 0 0-1-1m0 5a1 1 0 0 0 0 2h8a1 1 0 1 0 0-2z" clip-rule="evenodd"/>`},_Ne={width:20,height:20,hidden:!0,body:`<path fill="currentColor" fill-rule="evenodd" d="M2.5 3A1.5 1.5 0 0 0 1 4.5v4A1.5 1.5 0 0 0 2.5 10h6A1.5 1.5 0 0 0 10 8.5v-4A1.5 1.5 0 0 0 8.5 3h-6Zm11 2A1.5 1.5 0 0 0 12 6.5v7a1.5 1.5 0 0 0 1.5 1.5h4a1.5 1.5 0 0 0 1.5-1.5v-7A1.5 1.5 0 0 0 17.5 5h-4Zm-10 7A1.5 1.5 0 0 0 2 13.5v2A1.5 1.5 0 0 0 3.5 17h6a1.5 1.5 0 0 0 1.5-1.5v-2A1.5 1.5 0 0 0 9.5 12h-6Z" clip-rule="evenodd"/>`},vNe={width:20,height:20,body:`<path fill="currentColor" fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16a8 8 0 0 0 0 16M9.555 7.168A1 1 0 0 0 8 8v4a1 1 0 0 0 1.555.832l3-2a1 1 0 0 0 0-1.664z" clip-rule="evenodd"/>`},yNe={width:20,height:20,body:`<path fill="currentColor" fill-rule="evenodd" d="M16.707 5.293a1 1 0 0 1 0 1.414l-8 8a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 1.414-1.414L8 12.586l7.293-7.293a1 1 0 0 1 1.414 0" clip-rule="evenodd"/>`},bNe={width:20,height:20,body:`<path fill="currentColor" fill-rule="evenodd" d="M10 2a1 1 0 0 1 1 1v1.323l3.954 1.582l1.599-.8a1 1 0 0 1 .894 1.79l-1.233.616l1.738 5.42a1 1 0 0 1-.285 1.05A4 4 0 0 1 15 15a4 4 0 0 1-2.667-1.019a1 1 0 0 1-.285-1.05l1.715-5.349L11 6.477V16h2a1 1 0 1 1 0 2H7a1 1 0 1 1 0-2h2V6.477L6.237 7.582l1.715 5.349a1 1 0 0 1-.285 1.05A4 4 0 0 1 5 15a4 4 0 0 1-2.667-1.019a1 1 0 0 1-.285-1.05l1.738-5.42l-1.233-.617a1 1 0 0 1 .894-1.788l1.599.799L9 4.323V3a1 1 0 0 1 1-1m-5 8.275l-.818 2.55a2 2 0 0 0 1.636 0zm10 0l-.818 2.55a2 2 0 0 0 1.636 0z" clip-rule="evenodd"/>`},EG={width:20,height:20,hidden:!0,body:`<path fill="currentColor" fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16a8 8 0 0 0 0 16Zm.75-11.25a.75.75 0 0 0-1.5 0v4.59L7.3 9.24a.75.75 0 0 0-1.1 1.02l3.25 3.5a.75.75 0 0 0 1.1 0l3.25-3.5a.75.75 0 1 0-1.1-1.02l-1.95 2.1V6.75Z" clip-rule="evenodd"/>`},DG={width:20,height:20,hidden:!0,body:`<path fill="currentColor" fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16a8 8 0 0 0 0 16Zm-.75-4.75a.75.75 0 0 0 1.5 0V8.66l1.95 2.1a.75.75 0 1 0 1.1-1.02l-3.25-3.5a.75.75 0 0 0-1.1 0L6.2 9.74a.75.75 0 1 0 1.1 1.02l1.95-2.1v4.59Z" clip-rule="evenodd"/>`},OG={close:{icon:kMe,category:`action`},add:{icon:AMe,category:`action`},edit:{icon:jMe,category:`action`},delete:{icon:MMe,category:`action`},refresh:{icon:CG,category:`action`},copy:{icon:NMe,category:`action`},duplicate:{icon:PMe,category:`action`},settings:{icon:FMe,category:`action`},filter:{icon:IMe,category:`action`},share:{icon:LMe,category:`action`},expand:{icon:TG,category:`action`},collapse:{icon:wG,category:`action`},maximize:{icon:dNe,category:`action`},search:{icon:BMe,category:`action`},menu:{icon:VMe,category:`action`},run:{icon:vNe,category:`action`},check:{icon:yNe,category:`action`},link:{icon:$Me,category:`action`},eye:{icon:KMe,category:`action`},eyeOff:{icon:qMe,category:`action`},adjustments:{icon:XMe,category:`action`},desktop:{icon:ZMe,category:`action`},table:{icon:QMe,category:`action`},sun:{icon:tNe,category:`action`},moon:{icon:nNe,category:`action`},ellipsisHorizontal:{icon:rNe,category:`action`},documentText:{icon:iNe,category:`action`},bookOpen:{icon:aNe,category:`action`},codeBracket:{icon:oNe,category:`action`},swatch:{icon:sNe,category:`action`},camera:{icon:cNe,category:`action`},thumbUp:{icon:fNe,category:`action`},thumbDown:{icon:pNe,category:`action`},schemaGraph:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 20l-5.447-2.724A1 1 0 0 1 3 16.382V5.618a1 1 0 0 1 1.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0 0 21 18.382V7.618a1 1 0 0 0-.553-.894L15 4m0 13V4m0 0L9 7"/>`},category:`action`},cube:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m20 7l-8-4l-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"/>`},category:`action`},download:{icon:lNe,category:`action`},upload:{icon:uNe,category:`action`},pause:{icon:JMe,category:`action`},play:{icon:YMe,category:`action`},measure:{icon:mNe,category:`field`},dimension:{icon:hNe,category:`field`},timeDimension:{icon:gNe,category:`field`},segment:{icon:_Ne,category:`field`},chartBar:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 13a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm12-4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1zM9 5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1zM4 20h14"/>`},category:`chart`},chartLine:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 19h16M4 15l4-6l4 2l4-5l4 4"/>`},category:`chart`},chartArea:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m4 19l4-6l4 2l4-5l4 4v5zm0-7l3-4l4 2l5-6l4 4"/>`},category:`chart`},chartPie:{icon:{width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M10 3.2A9 9 0 1 0 20.8 14a1 1 0 0 0-1-1H13a2 2 0 0 1-2-2V4a.9.9 0 0 0-1-.8"/><path d="M15 3.5A9 9 0 0 1 20.5 9H16a1 1 0 0 1-1-1z"/></g>`},category:`chart`},chartScatter:{icon:{width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 3v18h18"/><path d="M7 15a2 2 0 1 0 4 0a2 2 0 1 0-4 0m4-10a2 2 0 1 0 4 0a2 2 0 1 0-4 0m5 7a2 2 0 1 0 4 0a2 2 0 1 0-4 0m5-9l-6 1.5m-.887 2.15l2.771 3.695M16 12.5l-5 2"/></g>`},category:`chart`},chartBubble:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 16a3 3 0 1 0 6 0a3 3 0 1 0-6 0m11 3a2 2 0 1 0 4 0a2 2 0 1 0-4 0M10 7.5a4.5 4.5 0 1 0 9 0a4.5 4.5 0 1 0-9 0"/>`},category:`chart`},chartRadar:{icon:{width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m12 3l9.5 7L18 21H6L2.5 10z"/><path d="m12 7.5l5.5 4L15 17H8.5l-2-5.5z"/><path d="m2.5 10l9.5 3l9.5-3"/><path d="M12 3v10l6 8M6 21l6-8"/></g>`},category:`chart`},chartRadialBar:{icon:{width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M11 12a1 1 0 1 0 2 0a1 1 0 1 0-2 0"/><path d="M15.51 15.56A5 5 0 1 0 12 17"/><path d="M18.832 17.86A9 9 0 1 0 12 21m0-9v9"/></g>`},category:`chart`},chartTreemap:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm8-2v16m-8-5h8m0-3h8m-4 0v8m0-4h4"/>`},category:`chart`},chartTable:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm0 5h18M10 3v18"/>`},category:`chart`},chartRecordsTable:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 5h8m-8 4h5m-5 6h8m-8 4h5M3 5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm0 10a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z"/>`},category:`chart`},chartActivityGrid:{icon:{width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M11.795 21H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4m-1 3v4h4"/><path d="M14 18a4 4 0 1 0 8 0a4 4 0 1 0-8 0m1-15v4M7 3v4m-4 4h16"/></g>`},category:`chart`},chartKpiNumber:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 17V7l7 10V7m4 10h5m-5-7a2.5 3 0 1 0 5 0a2.5 3 0 1 0-5 0"/>`},category:`chart`},chartKpiDelta:{icon:{width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m3 17l6-6l4 4l8-8"/><path d="M14 7h7v7"/></g>`},category:`chart`},chartKpiText:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 20h3m7 0h7M6.9 15h6.9m-3.6-8.7L16 20M5 20l6-16h2l7 16"/>`},category:`chart`},chartMarkdown:{icon:{width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M14 3v4a1 1 0 0 0 1 1h4"/><path d="M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2M9 9h1m-1 4h6m-6 4h6"/></g>`},category:`chart`},chartFunnel:{icon:{body:`<g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
|
194
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GOe(e,t){if(e){if(typeof e==`string`)return QV(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?QV(e,t):void 0}}function QV(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function KOe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function qOe(e){if(Array.isArray(e))return e}function $V(){return $V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$V.apply(null,arguments)}function eH(e,t){if(e==null)return{};var n,r,i=JOe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function JOe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function tH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tH(Object(n),!0).forEach(function(t){YOe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function YOe(e,t,n){return(t=XOe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XOe(e){var t=ZOe(e,`string`);return typeof t==`symbol`?t:t+``}function ZOe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var QOe=y.memo(e=>{var t=e.dataKey,n=e.nameKey,r=e.stroke,i=e.strokeWidth,a=e.fill,o=e.name,s=e.hide,c=e.tooltipType,l=e.formatter,u=e.data,d=e.trapezoids,f={dataDefinedOnItem:u,getPosition:e=>d[Number(e)]?.tooltipPosition,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,name:o,nameKey:n,hide:s,type:c,color:a,unit:``,formatter:l,graphicalItemId:e.id}};return y.createElement(wI,{tooltipEntrySettings:f})});function $Oe(e){var t=e.showLabels,n=e.trapezoids,r=e.children,i=(0,y.useMemo)(()=>{if(t)return n?.map(e=>{var t=e.labelViewBox;return nH(nH({},t),{},{value:e.name,payload:e.payload,parentViewBox:e.parentViewBox,viewBox:t,fill:e.fill})})},[t,n]);return y.createElement(hF,{value:i},r)}function eke(e){var t=e.trapezoids,n=e.allOtherFunnelProps,r=e.animationElapsedTime,i=e.isAnimating,a=e.isEntrance,o=Y(e=>KN(e,`item`,e.tooltip.settings.trigger,void 0)),s=n.onMouseEnter,c=n.onClick,l=n.onMouseLeave,u=n.shape,d=n.activeShape,f=eH(n,BOe),p=xI(s,n.dataKey,n.id),m=SI(l),h=CI(c,n.dataKey,n.id);return y.createElement(y.Fragment,null,t.map((e,t)=>{var n=!!d&&o===String(t),s=n?d:u,c=nH(nH({},e),{},{option:s,isActive:n,stroke:e.stroke,animationElapsedTime:r,isAnimating:i,isEntrance:a});c.id;var l=eH(c,VOe);return y.createElement(wg,$V({key:`trapezoid-${e?.x}-${e?.y}-${e?.name}-${e?.value}`,className:`recharts-funnel-trapezoid`},py(f,e,t),{onMouseEnter:p(e,t),onMouseLeave:m(e,t),onClick:h(e,t)}),y.createElement(FOe,l))}))}var tke=(e,t)=>e==null?[]:t===1?e.flatMap(e=>e.status===`removed`?[]:[e.next]):e.flatMap(e=>{if(e.status===`removed`)return[];if(e.status===`matched`)return[nH(nH({},e.next),{},{x:Hg(e.prev.x,e.next.x,t),y:Hg(e.prev.y,e.next.y,t),upperWidth:Hg(e.prev.upperWidth,e.next.upperWidth,t),lowerWidth:Hg(e.prev.lowerWidth,e.next.lowerWidth,t),height:Hg(e.prev.height,e.next.height,t)})];var n=e.next;return[nH(nH({},n),{},{x:Hg(n.x+n.upperWidth/2,n.x,t),y:Hg(n.y+n.height/2,n.y,t),upperWidth:Hg(0,n.upperWidth,t),lowerWidth:Hg(0,n.lowerWidth,t),height:Hg(0,n.height,t)})]});function nke(e){var t=e.previousTrapezoidsRef,n=e.props,r=n.trapezoids,i=n.isAnimationActive,a=n.animationBegin,o=n.animationDuration,s=n.animationEasing,c=n.animationInterpolateFn,l=sC(),u=PI(n.onAnimationStart,n.onAnimationEnd),d=u.isAnimating,f=u.handleAnimationStart,p=u.handleAnimationEnd;return l==null?null:y.createElement($Oe,{showLabels:!d,trapezoids:r},y.createElement(FI,{animationInput:r,animationIdPrefix:`recharts-funnel-`,items:r,previousItemsRef:t,isAnimationActive:i,animationBegin:a,animationDuration:o,animationEasing:s,onAnimationStart:f,onAnimationEnd:p,animationInterpolateFn:c,animationMatchBy:n.animationMatchBy,layout:l},(e,t,r)=>y.createElement(wg,null,y.createElement(eke,{trapezoids:e,allOtherFunnelProps:n,animationElapsedTime:t,isAnimating:d||t<1,isEntrance:r}))),y.createElement(yF,{label:n.label}),n.children)}function rke(e){var t=(0,y.useRef)(void 0);return y.createElement(nke,{props:e,previousTrapezoidsRef:t})}var ike=(e,t)=>{var n=t.width,r=t.height,i=t.left,a=t.top;return{realWidth:Bg(e,n,n),realHeight:r,offsetX:i,offsetY:a}},ake={animationBegin:400,animationDuration:1500,animationEasing:`ease`,animationInterpolateFn:tke,animationMatchBy:kI,fill:`#808080`,hide:!1,isAnimationActive:`auto`,lastShapeType:`triangle`,legendType:`rect`,nameKey:`name`,reversed:!1,shape:JV,stroke:`#fff`};function oke(e){var t=rL(),n=e.stroke,r=e.fill,i=e.legendType,a=e.hide,o=e.isAnimationActive,s=e.animationBegin,c=e.animationDuration,l=e.animationEasing,u=e.nameKey,d=e.lastShapeType,f=e.id,p=eH(e,HOe),m=vg(e),h=hI(e.children,xP),g=(0,y.useMemo)(()=>({dataKey:e.dataKey,nameKey:u,data:e.data,tooltipType:e.tooltipType,lastShapeType:d,reversed:e.reversed,customWidth:e.width,cells:h,presentationProps:m,id:f}),[e.dataKey,u,e.data,e.tooltipType,d,e.reversed,e.width,h,m,f]),_=Y(e=>zOe(e,g));if(a||!_||!_.length||!t)return null;var v=t.height,b=t.width,x=mg(`recharts-trapezoids`,e.className);return y.createElement(y.Fragment,null,y.createElement(QOe,{dataKey:e.dataKey,nameKey:e.nameKey,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,formatter:e.formatter,data:e.data,trapezoids:_,id:f}),y.createElement(wg,{className:x},y.createElement(rke,$V({},p,{id:f,stroke:n,fill:r,nameKey:u,lastShapeType:d,animationBegin:s,animationDuration:c,animationEasing:l,isAnimationActive:o,hide:a,legendType:i,height:v,width:b,trapezoids:_}))))}function ske(e){var t=e.dataKey,n=e.nameKey,r=e.displayedData,i=e.tooltipType,a=e.lastShapeType,o=e.reversed,s=e.offset,c=e.customWidth,l=e.graphicalItemId,u=ike(c,s),d=u.realHeight,f=u.realWidth,p=u.offsetX,m=u.offsetY,h=r.map(e=>{var n=hS(e,t,0);return typeof n==`number`?n:0}),g=Math.max.apply(null,h),_=r.length,v=d/_,y={x:s.left,y:s.top,width:s.width,height:s.height},b=r.map((e,o)=>{var s=hS(e,t,0),c=String(hS(e,n,o)),u=s,d;if(o!==_-1){var h=hS(r[o+1],t,0);if(typeof h==`number`)d=h;else if(Array.isArray(h)){var b=ZV(h,2),x=b[0],S=b[1];typeof x==`number`&&(u=x),typeof S==`number`&&(d=S)}}else if(s instanceof Array&&s.length===2){var C=ZV(s,2),w=C[0],T=C[1];typeof w==`number`&&(u=w),typeof T==`number`&&(d=T)}else d=a===`rectangle`?u:0;var E=g===0?p:(g-u)*f/(2*g)+p,D=v*o+m,O=g===0?0:u/g*f,k=g===0?0:d/g*f,A=[{name:c,value:u,payload:e,dataKey:t,type:i,graphicalItemId:l}],j={x:E+O/2,y:D+v/2},M={x:E,y:D,upperWidth:O,lowerWidth:k,width:Math.max(O,k),height:v};return nH(nH(nH({},M),{},{name:c,val:u,tooltipPayload:A,tooltipPosition:j},typeof e==`object`&&e?iV(e,[`width`]):{}),{},{payload:e,parentViewBox:y,labelViewBox:M})});return o&&(b=b.map((e,t)=>{var n={x:e.x-(e.lowerWidth-e.upperWidth)/2,y:e.y-t*v+(_-1-t)*v,upperWidth:e.lowerWidth,lowerWidth:e.upperWidth,width:Math.max(e.lowerWidth,e.upperWidth),height:v};return nH(nH(nH({},e),n),{},{tooltipPosition:nH(nH({},e.tooltipPosition),{},{y:e.y-t*v+(_-1-t)*v+v/2}),labelViewBox:n})})),b}function cke(e){var t=hy(e,ake),n=t.id,r=eH(t,UOe);return y.createElement(RI,{id:n,type:`funnel`},e=>y.createElement(oke,$V({},r,{id:e})))}var rH=cke;rH.displayName=`Funnel`;var lke=[`item`],uke=(0,y.forwardRef)((e,t)=>y.createElement(GB,{chartName:`FunnelChart`,defaultTooltipEventType:`item`,validateTooltipEventTypes:lke,tooltipPayloadSearcher:lP,categoricalChartProps:e,ref:t})),dke={xs:`dc:h-3 dc:w-3`,sm:`dc:h-6 dc:w-6`,md:`dc:h-8 dc:w-8`,lg:`dc:h-12 dc:w-12`};function iH({size:e=`md`,className:t=``}){return(0,J.jsx)(`div`,{className:`dc:animate-spin dc:rounded-full dc:border-b-2 ${dke[e]} ${t}`,style:{borderBottomColor:`var(--dc-primary)`},role:`status`,"aria-label":`Loading`})}function aH({children:e,height:t=`100%`,minHeight:n}){let r=n??void 0,{t:i}=fg(),a=(0,y.useRef)(null),[o,s]=(0,y.useState)(!1),[c,l]=(0,y.useState)({width:0,height:0}),u=(0,y.useRef)({width:0,height:0}),d=(0,y.useRef)(!1),f=(0,y.useRef)(null),p=(0,y.useRef)(null);(0,y.useLayoutEffect)(()=>{let e=!0,t=null,n=()=>{if(p.current=null,!e)return;let t=f.current;if(f.current=null,!t)return;let n=Math.round(t.width),r=Math.round(t.height);if(n<=0||r<=0)return;let i=u.current.width!==n||u.current.height!==r,a=!d.current;(i||a)&&(u.current={width:n,height:r},d.current=!0,(0,y.startTransition)(()=>{i&&l({width:n,height:r}),a&&s(!0)}))},r=(e,t)=>{f.current={width:e,height:t},p.current===null&&(p.current=requestAnimationFrame(n))};return t=new ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;e>0&&n>0&&r(e,n)}}),a.current&&(t.observe(a.current),(()=>{if(!e||!a.current)return;let t=a.current.getBoundingClientRect(),n=Math.max(a.current.clientWidth,t.width),i=Math.max(a.current.clientHeight,t.height);n>0&&i>0&&r(n,i)})()),()=>{e=!1,p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),t?.disconnect()}},[]);try{if(t===`100%`)return(0,J.jsx)(`div`,{ref:a,className:`dc:w-full dc:h-full dc:flex-1 dc:flex dc:flex-col dc:relative`,style:{minHeight:r??`250px`,minWidth:`100px`,overflow:`hidden`,userSelect:`none`},children:o&&c.width>0&&c.height>0?(0,J.jsx)(eC,{width:c.width,height:c.height-16,debounce:100,style:{marginTop:`16px`},children:e}):(0,J.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,children:(0,J.jsx)(iH,{size:`sm`})})});let n={height:typeof t==`number`?`${t}px`:t,width:`100%`,minHeight:r??`200px`,minWidth:`100px`,userSelect:`none`};return(0,J.jsx)(`div`,{ref:a,className:`dc:w-full dc:flex dc:flex-col dc:relative`,style:{...n,overflow:`hidden`},children:o&&c.width>0&&c.height>0?(0,J.jsx)(eC,{width:c.width,height:c.height-16,debounce:100,style:{marginTop:`16px`},children:e}):(0,J.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,children:(0,J.jsx)(iH,{size:`sm`})})})}catch(e){return(0,J.jsxs)(`div`,{className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full dc:h-full dc:p-4 dc:text-center dc:border dc:border-dashed dc:rounded-lg`,style:{height:t,borderColor:`var(--dc-border)`,backgroundColor:`var(--dc-surface)`},children:[(0,J.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1 text-dc-text-muted`,children:i(`chart.runtime.unableToDisplay`)}),(0,J.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:e instanceof Error?e.message:`Failed to create responsive container`})]})}}function fke(e){return{US:`USD`,CA:`CAD`,GB:`GBP`,UK:`GBP`,AU:`AUD`,NZ:`NZD`,EU:`EUR`,DE:`EUR`,FR:`EUR`,IT:`EUR`,ES:`EUR`,NL:`EUR`,BE:`EUR`,AT:`EUR`,IE:`EUR`,PT:`EUR`,FI:`EUR`,JP:`JPY`,CN:`CNY`,KR:`KRW`,IN:`INR`,BR:`BRL`,MX:`MXN`,CH:`CHF`,SE:`SEK`,NO:`NOK`,DK:`DKK`,PL:`PLN`,RU:`RUB`,ZA:`ZAR`,SG:`SGD`,HK:`HKD`,TW:`TWD`,TH:`THB`,MY:`MYR`,PH:`PHP`,ID:`IDR`,VN:`VND`,AE:`AED`,SA:`SAR`,IL:`ILS`,TR:`TRY`}[e.split(`-`)[1]?.toUpperCase()]||`USD`}function pke(e,t){if(!t)return{displayValue:e,abbreviationSuffix:``};let n=Math.abs(e);return n>=1e9?{displayValue:e/1e9,abbreviationSuffix:`B`}:n>=1e6?{displayValue:e/1e6,abbreviationSuffix:`M`}:n>=1e3?{displayValue:e/1e3,abbreviationSuffix:`K`}:{displayValue:e,abbreviationSuffix:``}}function mke(e,t){return e&&/^[A-Za-z]{3}$/.test(e)?e.toUpperCase():fke(t)}function hke(e){let{displayValue:t,abbreviate:n,abbreviationSuffix:r,decimals:i,locale:a}=e,o=mke(e.config.currencyCode,a);if(n&&r){let e=new Intl.NumberFormat(a,{style:`currency`,currency:o,minimumFractionDigits:i,maximumFractionDigits:i}).format(t),n=new Intl.NumberFormat(a,{style:`currency`,currency:o}).formatToParts(t);return n[n.length-1]?.type===`currency`?e.replace(/(\s*[^\d\s]+)$/,r+`$1`):e+r}return new Intl.NumberFormat(a,{style:`currency`,currency:o,minimumFractionDigits:i,maximumFractionDigits:i}).format(t)}function gke(e){let{displayValue:t,abbreviationSuffix:n,decimals:r,locale:i}=e,a=Math.abs(t)<=1&&!n?t*100:t;return new Intl.NumberFormat(i,{minimumFractionDigits:r,maximumFractionDigits:r}).format(a)+n+`%`}function _ke(e){let{displayValue:t,abbreviationSuffix:n,decimals:r,locale:i,config:a}=e,o=a.customPrefix||``,s=a.customSuffix||``;return o+new Intl.NumberFormat(i,{minimumFractionDigits:r,maximumFractionDigits:r}).format(t)+n+s}function oH(e){let{displayValue:t,abbreviationSuffix:n,decimals:r,locale:i}=e;return new Intl.NumberFormat(i,{minimumFractionDigits:r,maximumFractionDigits:r}).format(t)+n}var vke={currency:hke,percent:gke,custom:_ke,number:oH};function yke(e){return((e.config.unit?vke[e.config.unit]:void 0)||oH)(e)}function bke(e){if(!e.match(/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}:\d{2}/))return null;let t=e;e.includes(` `)&&(t=e.replace(` `,`T`).replace(`+00`,`Z`).replace(/\+\d{2}:\d{2}$/,`Z`)),!t.endsWith(`Z`)&&!t.includes(`+`)&&(t+=`Z`);let n=new Date(t);return isNaN(n.getTime())?null:{date:n,year:n.getUTCFullYear(),month:String(n.getUTCMonth()+1).padStart(2,`0`),day:String(n.getUTCDate()).padStart(2,`0`),hours:n.getUTCHours(),minutes:n.getUTCMinutes()}}function xke(e,t){let{date:n,year:r,month:i,day:a,hours:o,minutes:s}=e;switch(t.toLowerCase()){case`year`:return`${r}`;case`quarter`:return`${r}-Q${Math.floor(n.getUTCMonth()/3)+1}`;case`month`:return`${r}-${i}`;case`week`:return`${r}-${i}-${a}`;case`day`:return`${r}-${i}-${a}`;case`hour`:return`${r}-${i}-${a} ${String(o).padStart(2,`0`)}:00`;case`minute`:return`${r}-${i}-${a} ${String(o).padStart(2,`0`)}:${String(s).padStart(2,`0`)}`;default:return null}}function Ske(e){let{date:t,year:n,month:r,day:i,hours:a,minutes:o}=e,s=t.getUTCSeconds(),c=t.getUTCMilliseconds(),l=a===0&&o===0&&s===0&&c===0;return i===`01`&&l?r===`01`||r===`04`||r===`07`||r===`10`?`${n}-Q${Math.floor(t.getUTCMonth()/3)+1}`:`${n}-${r}`:l?`${n}-${r}-${i}`:o===0&&s===0&&c===0?`${n}-${r}-${i} ${String(a).padStart(2,`0`)}:00`:`${n}-${r}-${i} ${String(a).padStart(2,`0`)}:${String(o).padStart(2,`0`)}`}function sH(e){return e!=null&&!isNaN(Number(e))}function cH(e){if(e==null)return null;let t=typeof e==`string`?parseFloat(e):Number(e);return isNaN(t)?null:t}function lH(e){if(e==null)return`No data`;let t=typeof e==`number`?e:parseFloat(e);return isNaN(t)?String(e):Number.isInteger(t)?t.toLocaleString():parseFloat(t.toFixed(2)).toLocaleString()}function uH(e,t,n){if(e==null)return`No data`;let r=typeof e==`number`?e:parseFloat(String(e));if(isNaN(r))return String(e);if(!isFinite(r))return r>0?`∞`:`-∞`;let i=n||(typeof navigator<`u`?navigator.language:`en-US`);if(!t)return lH(e);let{abbreviate:a=!0,decimals:o}=t,{displayValue:s,abbreviationSuffix:c}=pke(r,a);return yke({displayValue:s,abbreviate:a,abbreviationSuffix:c,decimals:o===void 0?Number.isInteger(s)?0:2:o,locale:i,config:t})}function dH(e,t){if(!e)return`Unknown`;let n=String(e),r=bke(n);if(!r)return n;if(t){let e=xke(r,t);if(e!==null)return e}return Ske(r)}function fH(e,t){try{if(e?.timeDimensions){let n=e.timeDimensions.find(e=>t===e.dimension||t.startsWith(e.dimension.replace(`.`,`_`))||t===`${e.dimension}_${e.granularity}`);if(n?.granularity)return n.granularity}let n=t.match(/_([a-z]+)$/);if(n){let e=n[1];if([`year`,`quarter`,`month`,`week`,`day`,`hour`,`minute`,`second`].includes(e))return e}return}catch{return}}function Cke(e,t,n,r,i=e=>e){if(!e||e.length===0)return[];let a=fH(r,t);return e.map(e=>{let r={name:dH(e[t],a)||e[t]||`Unknown`};return n.forEach(t=>{let n=i(t);n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&(r[n]=cH(e[t]))}),r})}function pH(e,t,n,r,i,a=e=>e){if(!e||e.length===0)return{data:[],seriesKeys:[],hasDimensions:!1};let o=r||{},s=[...o.dimensions||[],...o.timeDimensions?.map(e=>e.dimension)||[]],c=o.measures||[],l=n.filter(e=>c.includes(e)),u=(i||[]).filter(e=>s.includes(e));if(u.length>0){let n={};return e.forEach(e=>{let i=fH(r,t),o=dH(e[t],i)||e[t]||`Unknown`;o!==`__proto__`&&o!==`constructor`&&o!==`prototype`&&(n[o]||(n[o]={name:String(o)}),l.forEach(t=>{let r=a(t);if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let i=cH(e[t]);if(i!==null){let e=n[o][r];n[o][r]=e==null?i:e+i}else r in n[o]||(n[o][r]=null)}),u.forEach(t=>{let r=e[t];if(r!=null){let t=String(r),i=l[0]||c.find(e=>e.includes(`totalCost`)||e.includes(`count`)||e.includes(`sum`))||c[0];if(i){if(t===`__proto__`||t===`constructor`||t===`prototype`)return;let r=cH(e[i]);if(r!==null){let e=n[o][t];n[o][t]=e==null?r:e+r}else t in n[o]||(n[o][t]=null)}}}))}),{data:Object.values(n),seriesKeys:Array.from(new Set(e.flatMap(e=>u.map(t=>{let n=e[t];return n==null?null:String(n)}).filter(e=>e!==null)))),hasDimensions:!0}}return{data:Cke(e,t,n,r,a),seriesKeys:n.map(e=>a(e)),hasDimensions:!1}}var wke=(e,t)=>e==null?[`No data`,t]:[lH(e),t];function mH({formatter:e,labelFormatter:t}){return(0,J.jsx)(bP,{formatter:e||wke,labelFormatter:t,contentStyle:{backgroundColor:`white`,border:`1px solid #e5e7eb`,borderRadius:`0.5rem`,fontSize:`0.875rem`,color:`#1f2937`,boxShadow:`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)`,padding:`8px 12px`}})}var hH=({x:e=0,y:t=0,payload:n,tickFormatter:r,index:i=0})=>{if(!n)return null;let a=r?r(n.value,i):String(n.value),o=a.length>16?`${a.slice(0,15)}\u2026`:a;return(0,J.jsx)(`g`,{transform:`translate(${e},${t})`,children:(0,J.jsx)(`text`,{x:0,y:0,dy:16,textAnchor:`end`,fill:`var(--dc-text-muted)`,fontSize:12,transform:`rotate(-45)`,children:o})})};function gH({height:e,hint:t,titleKey:n=`chart.runtime.noData`}){let{t:r}=fg();return(0,J.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:e},children:(0,J.jsxs)(`div`,{className:`dc:text-center`,children:[(0,J.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:r(n)}),t!=null&&(0,J.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:t})]})})}function _H({height:e,hint:t}){let{t:n}=fg();return(0,J.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-warning`,style:{height:e},children:(0,J.jsxs)(`div`,{className:`dc:text-center`,children:[(0,J.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:n(`chart.runtime.configError`)}),t!=null&&(0,J.jsx)(`div`,{className:`dc:text-xs`,children:t})]})})}function vH({height:e,chartType:t,error:n}){let{t:r}=fg();return(0,J.jsx)(`div`,{className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full text-dc-error dc:p-4`,style:{height:e},children:(0,J.jsxs)(`div`,{className:`dc:text-center`,children:[(0,J.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:r(`chart.runtime.chartError`,{chartType:t})}),(0,J.jsx)(`div`,{className:`dc:text-xs dc:mb-2`,children:n instanceof Error?n.message:r(`chart.runtime.unknownError`)}),(0,J.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted`,children:r(`chart.runtime.checkConfig`)})]})})}function yH(e){let t,n=[],r=[],i=null;return e?.xAxis&&e?.yAxis?(t=Array.isArray(e.xAxis)?e.xAxis[0]:e.xAxis,n=Array.isArray(e.yAxis)?e.yAxis:[e.yAxis],r=e.series||[]):e?.x&&e?.y?(t=e.x,n=Array.isArray(e.y)?e.y:[e.y]):i=`axisInvalid`,!i&&(!t||n.length===0)&&(i=`axisFields`),{xAxisField:t,yAxisFields:n,seriesFields:r,errorCode:i}}var bH=[`#3b82f6`,`#10b981`,`#f59e0b`,`#ef4444`,`#8b5cf6`,`#f97316`,`#06b6d4`,`#84cc16`],xH=[`#440154`,`#414487`,`#2a788e`,`#22a884`,`#7ad151`,`#fde725`],Tke=`#10b981`,SH={top:5,right:30,left:20,bottom:5};function CH(e){if(!e||typeof e!=`string`)return[];let t=e.trim();if(!t)return[];try{let e=t.split(`,`).map(e=>e.trim()).filter(e=>e!==``).map(e=>{let t=parseFloat(e);if(isNaN(t))throw Error(`Invalid numeric value: ${e}`);return t});return e.length>0?e:[]}catch(e){return console.warn(`Failed to parse target values:`,e),[]}}function Eke(e,t){if(e.length===0||t<=0)return[];if(e.length===1)return Array(t).fill(e[0]);let n=[],r=Math.floor(t/e.length),i=t%e.length,a=0;for(let t=0;t<e.length;t++){let o=r+ +(t<i);for(let r=0;r<o;r++)n[a++]=e[t]}return n}function Dke(e,t){return t===0?e===0?0:e>0?100:-100:(e-t)/t*100}function wH(e,t=1){return`${e>=0?`+`:``}${e.toFixed(t)}%`}function TH(e,t){return{hasRightAxis:e.some(e=>t[e]===`right`),leftAxisFields:e.filter(e=>(t[e]||`left`)===`left`),rightAxisFields:e.filter(e=>t[e]===`right`)}}function EH(e){return{...SH,left:40,right:e?40:20}}var Oke=6.6;function DH(e){let t=0;for(let n of e){if(n==null)continue;let e=String(n).length;e>t&&(t=e)}if(t===0)return 60;let n=t*Oke*Math.SQRT1_2,r=Math.ceil(n)+20;return Math.max(60,Math.min(r,96))}function OH(e){return EH(e).left+60}function kH(e,t){let n=Eke(CH(t||``),e.length);return{spreadTargets:n,enhancedChartData:n.length>0?e.map((e,t)=>({...e,__target:n[t]||null})):e}}function AH({hasRightAxis:e,leftAxisFields:t,rightAxisFields:n},r,i,a,o=!1){return(0,J.jsxs)(y.Fragment,{children:[(0,J.jsx)(Kz,{yAxisId:`left`,orientation:`left`,width:60,tick:{fontSize:12},tickFormatter:o?e=>`${(e*100).toFixed(0)}%`:i?e=>uH(e,i):void 0,domain:o?[0,1]:void 0,label:o?void 0:t.length>0?{value:i?.label||r(t[0]),angle:-90,position:`left`,style:{textAnchor:`middle`,fontSize:`12px`,fill:`var(--dc-text-muted)`}}:void 0}),e&&(0,J.jsx)(Kz,{yAxisId:`right`,orientation:`right`,tick:{fontSize:12},tickFormatter:a?e=>uH(e,a):void 0,label:n.length>0?{value:a?.label||r(n[0]),angle:90,position:`right`,style:{textAnchor:`middle`,fontSize:`12px`,fill:`var(--dc-text-muted)`}}:void 0})]})}function jH(e){return e.length===0?null:(0,J.jsxs)(y.Fragment,{children:[(0,J.jsx)(KR,{type:`monotone`,dataKey:`__target`,yAxisId:`left`,stroke:`#ffffff`,strokeWidth:2,dot:!1,activeDot:!1,connectNulls:!1}),(0,J.jsx)(KR,{type:`monotone`,dataKey:`__target`,yAxisId:`left`,name:`Target`,stroke:`#8B5CF6`,strokeWidth:2,strokeDasharray:`2 3`,dot:!1,activeDot:!1,connectNulls:!1})]})}function MH({leftYAxisFormat:e,rightYAxisFormat:t,yAxisAssignment:n,resolveField:r,isPercentStack:i=!1}){return(a,o)=>{if(a==null)return[`No data`,o];if(o===`Target`)return[uH(a,e),`Target Value`];if(i&&typeof a==`number`)return[`${(a*100).toFixed(1)}%`,o];let s=r(o);return[uH(a,(s&&n[s]===`right`?`right`:`left`)==`right`?t:e),o]}}function NH({show:e,iconType:t,paddingTop:n,onHover:r,onLeave:i}){return e?(0,J.jsx)(EC,{wrapperStyle:{fontSize:`12px`,paddingTop:`${n}px`},iconType:t,iconSize:8,layout:`horizontal`,align:`center`,verticalAlign:`bottom`,onMouseEnter:e=>r(String(e.dataKey||``)),onMouseLeave:i}):null}function kke(e){let t=e?.stackType??(e?.stacked?`normal`:`none`);return{shouldStack:t!==`none`,isPercentStack:t===`percent`}}function Ake(e,t){if(e.length===0||t.length===0)return{chartData:[],skippedCount:0};let n=e.filter(e=>t.some(t=>sH(e[t])));return{chartData:n,skippedCount:e.length-n.length}}function jke(e,t,n){let r=e.length===1&&t.some(t=>{let n=t[e[0]];return typeof n==`number`&&n<0});return{usePositiveNegativeColoring:r,useColorByCategory:e.length===1&&!r&&!n&&t.length>1}}function PH(e,t){return e?e===t?1:.3:1}function Mke({seriesKey:e,index:t,originalField:n,axisId:r,stackId:i,chartData:a,enhancedChartData:o,colorPalette:s,hoveredLegend:c,usePositiveNegativeColoring:l,useColorByCategory:u,drillEnabled:d,onDataPointClick:f}){let p=l?Tke:s?.colors&&s.colors[t%s.colors.length]||bH[t%bH.length];return(0,J.jsxs)(Tz,{dataKey:e,yAxisId:r,stackId:i,radius:i?void 0:[2,2,0,0],fill:p,fillOpacity:PH(c,e),cursor:d?`pointer`:void 0,onClick:(t,r,i)=>{f&&d&&t&&f({dataPoint:o[r]||t,clickedField:n||e,xValue:t.name,position:{x:i.clientX,y:i.clientY},nativeEvent:i})},children:[l&&a.map((t,n)=>{let r=t[e];return(0,J.jsx)(xP,{fill:typeof r==`number`&&r<0?`#ef4444`:`#10b981`,fillOpacity:PH(c,e)},`cell-${n}`)}),u&&a.map((t,n)=>{let r=s?.colors||bH;return(0,J.jsx)(xP,{fill:r[n%r.length],fillOpacity:PH(c,e)},`cat-${n}`)})]})}var FH=(0,y.createContext)(null);function IH(){let e=(0,y.useContext)(FH);if(!e)throw Error(`useCubeMeta must be used within CubeMetaProvider`);return e}function LH(){let e=(0,y.useContext)(FH);if(!e)throw Error(`useCubeFieldLabel must be used within CubeProvider`);return(0,y.useMemo)(()=>e.getFieldLabel,[e.getFieldLabel])}var Nke=y.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a,onDataPointClick:o,drillEnabled:s}){let{t:c}=fg(),[l,u]=(0,y.useState)(null),d=LH(),{shouldStack:f,isPercentStack:p}=kke(n),m={showLegend:n?.showLegend??!0,showGrid:n?.showGrid??!0,showTooltip:n?.showTooltip??!0},h=n?.showAllXLabels??!1,g=n?.leftYAxisFormat,_=n?.rightYAxisFormat,{xAxisField:v,yAxisFields:b,seriesFields:x,errorCode:S}=(0,y.useMemo)(()=>yH(t),[t]),{data:C,seriesKeys:w}=(0,y.useMemo)(()=>S||!e||e.length===0||!v?{data:[],seriesKeys:[]}:pH(e,v,b,r,x,d),[e,v,b,r,x,d,S]),T=(0,y.useMemo)(()=>t?.yAxisAssignment||{},[t?.yAxisAssignment]),E=(0,y.useMemo)(()=>{let e={};return b.forEach(t=>{let n=d(t);e[n]=t}),e},[b,d]),D=TH(b,T),{hasRightAxis:O}=D,{chartData:k,skippedCount:A}=(0,y.useMemo)(()=>Ake(C,w),[C,w]);try{if(!e||e.length===0)return(0,J.jsx)(gH,{height:i,hint:c(`chart.runtime.noDataHint.bar`)});if(S)return(0,J.jsx)(_H,{height:i,hint:c(`chart.runtime.configErrorHint.${S}`)});let t=f&&!O,r=p&&!O,v=r?`expand`:void 0,{usePositiveNegativeColoring:y,useColorByCategory:b}=jke(w,k,x.length),C=m.showLegend,j=EH(O),{spreadTargets:M,enhancedChartData:N}=kH(k,n?.target);return!k||k.length===0?(0,J.jsx)(gH,{height:i,titleKey:`chart.runtime.noValidData`,hint:`No valid data points for bar chart after transformation`}):(0,J.jsxs)(`div`,{className:`dc:relative dc:w-full`,style:{height:i},children:[(0,J.jsx)(aH,{height:A>0?`calc(100% - 20px)`:`100%`,children:(0,J.jsxs)(IV,{data:N,margin:j,stackOffset:v,accessibilityLayer:!1,children:[m.showGrid&&(0,J.jsx)(OR,{strokeDasharray:`3 3`,style:{pointerEvents:`none`}}),(0,J.jsx)(Vz,{dataKey:`name`,type:`category`,tick:(0,J.jsx)(hH,{}),height:DH(N.map(e=>e?.name)),interval:h?0:void 0}),AH(D,d,g,_,r),m.showTooltip&&(0,J.jsx)(mH,{formatter:MH({leftYAxisFormat:g,rightYAxisFormat:_,yAxisAssignment:T,resolveField:e=>E[e],isPercentStack:r})}),NH({show:C,iconType:`rect`,paddingTop:25,onHover:u,onLeave:()=>u(null)}),w.map((e,n)=>{let r=E[e],i=r&&T[r]===`right`?`right`:`left`;return(0,J.jsx)(Mke,{seriesKey:e,index:n,originalField:r,axisId:i,stackId:t?`stack`:void 0,chartData:k,enhancedChartData:N,colorPalette:a,hoveredLegend:l,usePositiveNegativeColoring:y,useColorByCategory:b,drillEnabled:s,onDataPointClick:o},e)}),jH(M)]})}),A>0&&(0,J.jsxs)(`div`,{className:`dc:text-xs text-dc-text-muted dc:text-center dc:mt-1`,children:[A,` data point`,A===1?``:`s`,` with no values hidden`]})]})}catch(e){return(0,J.jsx)(vH,{height:i,chartType:`Bar Chart`,error:e})}});function RH(e){return e.length>0&&`__periodIndex`in e[0]}function zH(e){if(!RH(e))return[];let t=new Set;for(let n of e)n.__period&&t.add(n.__period);return Array.from(t)}function Pke(e){if(!RH(e))return[];let t=new Set;for(let n of e)typeof n.__periodIndex==`number`&&t.add(n.__periodIndex);return Array.from(t).sort((e,t)=>e-t)}function BH(e,t){return t===0?`Current`:`Prior`}function Fke(e,t,n){if(e.length===0)return[];let r=[`__period`,`__periodIndex`,`__periodDayIndex`],i=e[0],a=[];for(let e of Object.keys(i))!t.includes(e)&&e!==n&&!r.includes(e)&&a.push(e);return a}function Ike(e,t){let n=new Map;for(let e of t)n.set(e,new Set);for(let r of e)for(let e of t)r[e]!==void 0&&r[e]!==null&&n.get(e).add(r[e]);return n}function Lke(e,t,n,r){if(!RH(e))return{data:e,seriesKeys:t,xAxisKey:n};let i=zH(e),a=Pke(e),o=Fke(e,t,n),s=o.length>0,c=s?Ike(e,o):null;return{data:zke(e,t,n,{dimensionFields:o,hasDimensions:s,periodLabels:i,getFieldLabel:r}),seriesKeys:Bke(t,i,a,{dimensionFields:o,uniqueDimensionValues:c,getFieldLabel:r}),xAxisKey:`__periodDayIndex`}}function Rke(e,t,n){return t.length===0?``:t.map(t=>{let r=e[t];return n?n(String(r)):String(r)}).join(` / `)}function zke(e,t,n,r){let{dimensionFields:i,hasDimensions:a,periodLabels:o,getFieldLabel:s}=r,c=new Map;for(let r of e){let e=r.__periodDayIndex,l=r.__periodIndex;c.has(e)||c.set(e,{__periodDayIndex:e,__displayDate:l===0?r[n]:void 0});let u=c.get(e);!u.__displayDate&&r[n]&&(u.__displayDate=r[n]);let d=a?Rke(r,i,s):``,f=BH(o[l]||``,l);for(let e of t){let t=s?s(e):e,n=d?`${d} - ${t} (${f})`:`${t} (${f})`;u[n]=r[e]}}return Array.from(c.values()).sort((e,t)=>e.__periodDayIndex-t.__periodDayIndex)}function Bke(e,t,n,r){let{dimensionFields:i,uniqueDimensionValues:a,getFieldLabel:o}=r,s=[],c=a?Vke(i,a,o):[``];for(let r of c)for(let i of e){let e=o?o(i):i;for(let i=0;i<n.length;i++){let n=BH(t[i]||``,i);s.push(r?`${r} - ${e} (${n})`:`${e} (${n})`)}}return s}function Vke(e,t,n){if(e.length===0)return[];if(e.length===1){let r=e[0];return Array.from(t.get(r)||[]).map(e=>n?n(String(e)):String(e))}let r=[],i=e.map(e=>Array.from(t.get(e)||[]));function a(e,t){if(e===i.length){let e=t.map(e=>n?n(String(e)):String(e));r.push(e.join(` / `))}else for(let n of i[e])a(e+1,[...t,n])}return a(0,[]),r}function Hke(e,t){if(t.length<2)return!1;for(let n=1;n<t.length;n++){let r=BH(t[n],n);if(e.includes(`(${r})`))return!0}return e.includes(`(Prior`)}function Uke(e=`dashed`){switch(e){case`solid`:return;case`dashed`:return`5 5`;case`dotted`:return`2 2`;default:return`5 5`}}function VH({props:e,color:t,drillEnabled:n,originalField:r,seriesKey:i,onDataPointClick:a,renderPlain:o}){let{cx:s,cy:c,payload:l,key:u}=e;if(s===void 0||c===void 0)return null;let d=e=>{e.stopPropagation(),e.preventDefault(),a&&a({dataPoint:l,clickedField:r||i,xValue:l.name,position:{x:e.clientX,y:e.clientY},nativeEvent:e})};return n&&a?(0,J.jsxs)(`g`,{children:[(0,J.jsx)(`circle`,{cx:s,cy:c,r:6,fill:`var(--dc-surface)`,style:{pointerEvents:`none`}}),(0,J.jsx)(`circle`,{cx:s,cy:c,r:4,fill:`var(--dc-surface)`,stroke:t,strokeWidth:2,cursor:`pointer`,onClick:e=>{d(e)}})]},u):o?(0,J.jsx)(`circle`,{cx:s,cy:c,r:3,fill:t},u):null}function HH(e,t,n,r){return e?dH(e,fH(t,n)):`Period ${r+1}`}function Wke(e,t,n,r){if(e)return(e,i)=>{let a=t[i];return HH(a?.__displayDate,n,r,Number(e))}}function Gke(e,t,n){if(e)return(e,r)=>HH((r&&r.length>0?r[0]?.payload:void 0)?.__displayDate,t,n,Number(e))}function Kke(e,t){let n=e?.stackType??(e?.stacked?`normal`:`none`),r=n!==`none`&&!t,i=n===`percent`&&!t;return{effectiveShouldStack:r,effectiveIsPercentStack:i,stackOffset:i?`expand`:void 0}}function UH(e,t){let n={};return e.forEach(e=>{n[t(e)]=e}),n}function qke(e){return t=>{if(e[t])return e[t];if(t.length>1e3)return;let n=t.replace(/\s*\((Current|Prior)\)$/,``).split(` - `);return e[n[n.length-1]]}}function WH(e,t){let n=e?.colors;return n&&n[t%n.length]||bH[t%bH.length]}function Jke(e,t,n){let{colorPalette:r,resolveField:i,yAxisAssignment:a,hoveredLegend:o,connectNulls:s,drillEnabled:c,onDataPointClick:l,hasComparisonData:u,periodLabels:d=[],priorPeriodStyle:f=`dashed`,priorPeriodOpacity:p=.5,showPoints:m=!0}=n,h=i(e),g=h&&a[h]===`right`?`right`:`left`,_=!!u&&Hke(e,d),v=_?Uke(f):void 0,y=_?p:1,b=WH(r,t),x=y;return o&&(x=o===e?1:.3),(0,J.jsx)(KR,{type:`monotone`,dataKey:e,yAxisId:g,stroke:b,strokeWidth:_?1.5:2,strokeDasharray:v,dot:_||!m?!1:t=>VH({props:t,color:b,drillEnabled:c,originalField:h,seriesKey:e,onDataPointClick:l,renderPlain:!0}),activeDot:m?!1:t=>VH({props:t,color:b,drillEnabled:c,originalField:h,seriesKey:e,onDataPointClick:l,renderPlain:!0}),strokeOpacity:x,connectNulls:s},e)}function Yke(e){return e.seriesKeys.map((t,n)=>Jke(t,n,e))}function Xke(e,t,n){let{colorPalette:r,seriesKeyToField:i,yAxisAssignment:a,hoveredLegend:o,connectNulls:s,shouldStack:c,drillEnabled:l,onDataPointClick:u,gradientIdPrefix:d,showPoints:f=!0}=n,p=i[e],m=p&&a[p]===`right`?`right`:`left`,h=WH(r,t),g=d&&!c?`url(#${d}-${t})`:h,_=.3,v=1;if(o){let t=o===e;_=t?.6:.1,v=t?1:.3}return(0,J.jsx)(uz,{type:`monotone`,dataKey:e,yAxisId:m,stackId:c?`stack`:void 0,stroke:h,fill:g,fillOpacity:_,strokeWidth:2,strokeOpacity:v,connectNulls:s,dot:f?t=>VH({props:t,color:h,drillEnabled:l,originalField:p,seriesKey:e,onDataPointClick:u,renderPlain:!0}):!1,activeDot:f?!1:t=>VH({props:t,color:h,drillEnabled:l,originalField:p,seriesKey:e,onDataPointClick:u,renderPlain:!0})},e)}function Zke(e,t,n){return(0,J.jsx)(`defs`,{children:e.map((e,r)=>{let i=WH(t,r);return(0,J.jsxs)(`linearGradient`,{id:`${n}-${r}`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,J.jsx)(`stop`,{offset:`0%`,stopColor:i,stopOpacity:1}),(0,J.jsx)(`stop`,{offset:`100%`,stopColor:i,stopOpacity:0})]},e)})})}function Qke(e){return e.seriesKeys.map((t,n)=>Xke(t,n,e))}function GH(e,t){if(!t)return!1;let n=e?.timeDimensions;return Array.isArray(n)?n.some(e=>e?.dimension===t):!1}function KH(e,t){return n=>{let r=e(n);return r&&t[r]===`right`?`right`:`left`}}function qH(e,t,n,r,i){return t.map((t,a)=>{let o=r?r(t):`left`,s=[],c;for(let n of e||[]){let e=n?.[t];if(e==null)continue;let r=typeof e==`number`?e:parseFloat(String(e));!isNaN(r)&&isFinite(r)&&(s.length===0&&(c=n),s.push(r))}let l=i?c?.[i]:void 0,u=l==null||l===``?void 0:String(l),d=WH(n,a);if(s.length===0)return{seriesKey:t,color:d,axis:o,current:null,baseline:null,absoluteChange:null,percentageChange:null};let f=s[s.length-1],p=s[0];if(s.length<2)return{seriesKey:t,color:d,axis:o,current:f,baseline:null,absoluteChange:null,percentageChange:null};let m=f-p;return{seriesKey:t,color:d,axis:o,current:f,baseline:p,absoluteChange:m,percentageChange:p===0?null:m/Math.abs(p)*100,baselineLabel:u}})}function $ke(e){let{data:t,xAxisField:n,yAxisFields:r,seriesFields:i,queryObject:a,getFieldLabel:o}=e,s=RH(t);if(s){let e=Lke(t,r,n,o);return{chartData:e.data,seriesKeys:e.seriesKeys,effectiveXAxisKey:`__periodDayIndex`,hasComparisonData:s,periodLabels:zH(t)}}let c=pH(t,n,r,a,i,o);return{chartData:c.data,seriesKeys:c.seriesKeys,effectiveXAxisKey:`name`,hasComparisonData:s,periodLabels:[]}}var JH=y.memo(function({summaries:e,getSeriesLabel:t,valueFormat:n,rightValueFormat:r,showChange:i=!0,leftOffset:a=0}){let{t:o}=fg();return e.length===0?null:(0,J.jsx)(`div`,{className:`dc:flex dc:flex-wrap dc:items-start dc:gap-x-8 dc:gap-y-2 dc:flex-shrink-0 dc:pr-1 dc:pb-2`,style:{paddingLeft:a},"data-testid":`chart-summary-header`,children:e.map(e=>{let a=i&&e.absoluteChange!==null,s=e.axis===`right`?r:n,c=(e.absoluteChange??0)>=0;return(0,J.jsxs)(`div`,{className:`dc:flex dc:flex-col dc:gap-0.5 dc:min-w-0`,children:[(0,J.jsxs)(`div`,{className:`dc:flex dc:items-center dc:gap-1.5 dc:min-w-0`,children:[(0,J.jsx)(`span`,{className:`dc:rounded-full dc:flex-shrink-0`,style:{width:8,height:8,backgroundColor:e.color}}),(0,J.jsx)(`span`,{className:`text-dc-text-secondary dc:truncate`,style:{fontSize:`12px`},children:t(e.seriesKey)})]}),(0,J.jsx)(`div`,{className:`dc:font-semibold dc:leading-none text-dc-text`,style:{fontSize:`24px`},children:e.current===null?`—`:uH(e.current,s)}),a&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:`dc:font-semibold dc:truncate`,style:{fontSize:`12px`,color:c?`#10b981`:`#ef4444`},children:[c?`+`:``,uH(e.absoluteChange,s),e.percentageChange!==null&&(0,J.jsxs)(J.Fragment,{children:[` (`,c?`+`:``,e.percentageChange.toFixed(1),`%)`]})]}),(0,J.jsx)(`div`,{className:`text-dc-text-muted dc:truncate`,style:{fontSize:`11px`},children:e.baselineLabel?o(`chart.runtime.summarySince`,{period:e.baselineLabel}):o(`chart.runtime.summarySincePeriodStart`)})]})]},e.seriesKey)})})}),eAe=y.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a,onDataPointClick:o,drillEnabled:s}){let{t:c}=fg(),[l,u]=(0,y.useState)(null),d=LH(),{xAxisField:f,yAxisFields:p,seriesFields:m,errorCode:h}=(0,y.useMemo)(()=>yH(t),[t]),g=(0,y.useMemo)(()=>t?.yAxisAssignment||{},[t?.yAxisAssignment]),_=(0,y.useMemo)(()=>UH(p,d),[p,d]);try{let t={showLegend:n?.showLegend??!0,showGrid:n?.showGrid??!0,showTooltip:n?.showTooltip??!0,connectNulls:n?.connectNulls??!1},v=n?.showAllXLabels??!1,y=n?.leftYAxisFormat,b=n?.rightYAxisFormat;if(!e||e.length===0)return(0,J.jsx)(gH,{height:i,hint:c(`chart.runtime.noDataHint.line`)});if(h)return(0,J.jsx)(_H,{height:i,hint:c(`chart.runtime.configErrorHint.${h}`)});let x=f,S=n?.priorPeriodStyle||`dashed`,C=n?.priorPeriodOpacity??.5,{chartData:w,seriesKeys:T,effectiveXAxisKey:E,hasComparisonData:D,periodLabels:O}=$ke({data:e,xAxisField:x,yAxisFields:p,seriesFields:m,queryObject:r,getFieldLabel:d}),k=qke(_),A=TH(p,g),{hasRightAxis:j}=A,M=n?.showSummary===!0&&T.length>0,N=M?qH(w,T,a,KH(k,g),D?void 0:E):[],P=t.showLegend&&!M,F=EH(j),{spreadTargets:ee,enhancedChartData:te}=kH(w,n?.target);return!w||w.length===0?(0,J.jsx)(gH,{height:i,titleKey:`chart.runtime.noValidData`,hint:`No valid data points for line chart after transformation`}):(0,J.jsxs)(`div`,{className:`dc:relative dc:w-full dc:flex dc:flex-col`,style:{height:i},children:[M&&(0,J.jsx)(JH,{summaries:N,getSeriesLabel:e=>e,valueFormat:y,rightValueFormat:b,showChange:GH(r,x),leftOffset:OH(j)}),(0,J.jsx)(`div`,{className:M?`dc:flex-1 dc:min-h-0`:`dc:contents`,children:(0,J.jsx)(aH,{height:M?`100%`:i,minHeight:M?0:void 0,children:(0,J.jsxs)(KB,{data:te,margin:F,accessibilityLayer:!1,children:[t.showGrid&&(0,J.jsx)(OR,{strokeDasharray:`3 3`,style:{pointerEvents:`none`}}),(0,J.jsx)(Vz,{dataKey:E,type:`category`,tick:(0,J.jsx)(hH,{tickFormatter:Wke(D,w,r,x)}),height:DH(te.map(e=>e?.[E])),interval:v?0:void 0}),AH(A,d,y,b),t.showTooltip&&(0,J.jsx)(mH,{formatter:MH({leftYAxisFormat:y,rightYAxisFormat:b,yAxisAssignment:g,resolveField:k}),labelFormatter:Gke(D,r,x)}),NH({show:P,iconType:`line`,paddingTop:25,onHover:u,onLeave:()=>u(null)}),Yke({seriesKeys:T,colorPalette:a,resolveField:k,yAxisAssignment:g,hoveredLegend:l,connectNulls:t.connectNulls,showPoints:n?.showPoints??!0,drillEnabled:s,onDataPointClick:o,hasComparisonData:D,periodLabels:O,priorPeriodStyle:S,priorPeriodOpacity:C}),jH(ee)]})})})]})}catch(e){return(0,J.jsx)(vH,{height:i,chartType:`Line Chart`,error:e})}}),tAe=y.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a,onDataPointClick:o,drillEnabled:s}){let{t:c}=fg(),[l,u]=(0,y.useState)(null),d=`dc-area-${(0,y.useId)().replace(/:/g,``)}`,f=LH(),{xAxisField:p,yAxisFields:m,seriesFields:h,errorCode:g}=(0,y.useMemo)(()=>yH(t),[t]),_=(0,y.useMemo)(()=>t?.yAxisAssignment||{},[t?.yAxisAssignment]),{data:v,seriesKeys:b}=(0,y.useMemo)(()=>g||!e||e.length===0||!p?{data:[],seriesKeys:[]}:pH(e,p,m,r,h,f),[e,p,m,r,h,f,g]);try{let t={showLegend:n?.showLegend??!0,showGrid:n?.showGrid??!0,showTooltip:n?.showTooltip??!0,connectNulls:n?.connectNulls??!1},h=n?.showAllXLabels??!1,y=n?.leftYAxisFormat,x=n?.rightYAxisFormat;if(!e||e.length===0)return(0,J.jsx)(gH,{height:i,hint:c(`chart.runtime.noDataHint.area`)});if(g)return(0,J.jsx)(_H,{height:i,hint:c(`chart.runtime.configErrorHint.${g}`)});let S=UH(m,f),C=TH(m,_),{hasRightAxis:w}=C,{effectiveShouldStack:T,effectiveIsPercentStack:E,stackOffset:D}=Kke(n,w),O=n?.showSummary===!0&&b.length>0,k=O?qH(v,b,a,KH(e=>S[e],_),`name`):[],A=t.showLegend&&!O,j=EH(w),{spreadTargets:M,enhancedChartData:N}=kH(v,n?.target);return!v||v.length===0?(0,J.jsx)(gH,{height:i,titleKey:`chart.runtime.noValidData`,hint:`No valid data points for area chart after transformation`}):(0,J.jsxs)(`div`,{className:`dc:relative dc:w-full dc:flex dc:flex-col`,style:{height:i},children:[O&&(0,J.jsx)(JH,{summaries:k,getSeriesLabel:e=>e,valueFormat:y,rightValueFormat:x,showChange:GH(r,p),leftOffset:OH(w)}),(0,J.jsx)(`div`,{className:O?`dc:flex-1 dc:min-h-0`:`dc:contents`,children:(0,J.jsx)(aH,{height:O?`100%`:i,minHeight:O?0:void 0,children:(0,J.jsxs)(IV,{data:N,margin:j,stackOffset:D,accessibilityLayer:!1,children:[t.showGrid&&(0,J.jsx)(OR,{strokeDasharray:`3 3`,style:{pointerEvents:`none`}}),(0,J.jsx)(Vz,{dataKey:`name`,type:`category`,tick:(0,J.jsx)(hH,{}),height:DH(N.map(e=>e?.name)),interval:h?0:void 0}),AH(C,f,y,x,E),t.showTooltip&&(0,J.jsx)(mH,{formatter:MH({leftYAxisFormat:y,rightYAxisFormat:x,yAxisAssignment:_,resolveField:e=>S[e],isPercentStack:E})}),NH({show:A,iconType:`rect`,paddingTop:10,onHover:u,onLeave:()=>u(null)}),!T&&Zke(b,a,d),Qke({seriesKeys:b,colorPalette:a,seriesKeyToField:S,yAxisAssignment:_,hoveredLegend:l,connectNulls:t.connectNulls,shouldStack:T,showPoints:n?.showPoints??!1,drillEnabled:s,onDataPointClick:o,gradientIdPrefix:d}),jH(M)]})})})]})}catch(e){return(0,J.jsx)(vH,{height:i,chartType:`Area Chart`,error:e})}});function nAe(e,t,n,r,i,a){let o;if(r.length>0){let{data:s}=pH(e,t,n,i,r,a);if(o=[],s.length>0){let e=s[0];Object.keys(e).forEach(t=>{t!==`name`&&typeof e[t]==`number`&&o.push({name:String(t),value:e[t]})})}}else{let r=fH(i,t);o=e.map(e=>{let i=dH(e[t],r)||String(e[t])||`Unknown`;return typeof e[t]==`boolean`?i=e[t]?`Active`:`Inactive`:(i===`true`||i===`false`)&&(i=i===`true`?`Active`:`Inactive`),{name:i,value:typeof e[n[0]]==`string`?parseFloat(e[n[0]]):e[n[0]]||0}})}let s=o.length;return o=o.filter(e=>e.value!=null&&!isNaN(e.value)&&e.value!==0&&e.value>0),{pieData:o,originalLength:s}}var rAe=y.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a,onDataPointClick:o,drillEnabled:s}){let{t:c}=fg(),[l,u]=(0,y.useState)(null),d=LH(),{xAxisField:f,yAxisFields:p,seriesFields:m,errorCode:h}=(0,y.useMemo)(()=>yH(t),[t]);try{let t={showLegend:n?.showLegend??!0,showTooltip:n?.showTooltip??!0,leftYAxisFormat:n?.leftYAxisFormat,innerRadius:n?.innerRadius||`0%`};if(!e||e.length===0)return(0,J.jsx)(gH,{height:i,hint:c(`chart.runtime.noDataHint.pie`)});if(h)return(0,J.jsx)(_H,{height:i,hint:c(h===`axisInvalid`?`chart.runtime.configErrorHint.pieAxis`:`chart.runtime.configErrorHint.axisFields`)});let{pieData:g,originalLength:_}=nAe(e,f,p,m,r,d);return g.length===0?(0,J.jsx)(gH,{height:i,titleKey:`chart.runtime.noValidData`,hint:_>0?`Filtered out ${_} data points (zero or invalid values)`:`No data points to display in pie chart`}):(0,J.jsx)(aH,{height:i,children:(0,J.jsxs)(uEe,{accessibilityLayer:!1,children:[(0,J.jsx)(JI,{data:g,cx:`50%`,cy:`50%`,innerRadius:t.innerRadius===`0%`?void 0:t.innerRadius,outerRadius:`70%`,dataKey:`value`,label:t.showLegend?void 0:({name:e,percent:t})=>`${e} ${((t||0)*100).toFixed(0)}%`,cursor:s?`pointer`:void 0,onClick:(e,t,n)=>{o&&s&&e&&o({dataPoint:e,clickedField:p[0],xValue:e.name,position:{x:n.clientX,y:n.clientY},nativeEvent:n})},children:g.map((e,t)=>(0,J.jsx)(xP,{fill:a?.colors&&a.colors[t%a.colors.length]||bH[t%bH.length],fillOpacity:l?l===g[t].name?1:.3:1},`cell-${t}`))}),t.showTooltip&&(0,J.jsx)(mH,{formatter:t.leftYAxisFormat?(e,n)=>[uH(e,t.leftYAxisFormat),n]:void 0}),t.showLegend&&(0,J.jsx)(EC,{wrapperStyle:{fontSize:`12px`,paddingTop:`10px`},iconType:`circle`,iconSize:8,layout:`horizontal`,align:`center`,verticalAlign:`bottom`,onMouseEnter:e=>u(String(e.value||``)),onMouseLeave:()=>u(null)})]})})}catch(e){return(0,J.jsx)(vH,{height:i,chartType:`Pie Chart`,error:e})}}),iAe=20;function aAe(e,t){let n=e?.showLegend??!0,r=t.length>1&&t.length<=iAe;return{showLegend:n&&r,showGrid:e?.showGrid??!0,showTooltip:e?.showTooltip??!0,hasSeries:r,xAxisFormat:e?.xAxisFormat,yAxisFormat:e?.leftYAxisFormat,chartMargins:{...SH,left:40}}}function oAe(e){let t,n,r=[];if(e?.xAxis&&e?.yAxis){t=Array.isArray(e.xAxis)?e.xAxis[0]:e.xAxis,n=Array.isArray(e.yAxis)?e.yAxis[0]:e.yAxis;let i=e.series;r=i?Array.isArray(i)?i:[i]:[]}else if(e?.x&&e?.y)t=e.x,n=Array.isArray(e.y)?e.y[0]:e.y;else return{xAxisField:``,yAxisField:``,seriesFields:[],errorCode:`axisInvalid`};return!t||!n?{xAxisField:``,yAxisField:``,seriesFields:[],errorCode:`axisFields`}:{xAxisField:t,yAxisField:n,seriesFields:r}}function YH(e,t,n){let r={};return t.forEach(t=>{if(e[t]){let i=fH(n,t);r[t]=dH(e[t],i)}}),r}function XH(e,t,n){let r=dH(e[t],n)||e[t];return typeof r==`string`?parseFloat(r):r}function sAe(e,t,n,r,i,a){let o=fH(a,t);if(r.length>0){let s=r[0],c={};return e.forEach(e=>{let r=String(e[s]||`Default`);c[r]||(c[r]=[]);let l=XH(e,t,o),u=cH(e[n]);sH(l)&&u!==null&&c[r].push({x:l,y:u,name:r,timeValues:YH(e,i,a),originalItem:e})}),{scatterData:Object.keys(c).flatMap(e=>c[e]),seriesGroups:c}}return{scatterData:e.map(e=>{let r=XH(e,t,o),s=cH(e[n]);return{x:r,y:s,name:`Point`,timeValues:YH(e,i,a),originalItem:e,isValid:sH(r)&&s!==null}}).filter(e=>e.isValid).map(({isValid:e,...t})=>t),seriesGroups:{}}}function cAe({active:e,payload:t,xAxisField:n,yAxisField:r,xAxisFormat:i,yAxisFormat:a,getFieldLabel:o}){if(!e||!t||t.length===0)return null;let s=t[0]?.payload;return s?(0,J.jsxs)(`div`,{style:{backgroundColor:`white`,border:`1px solid #e5e7eb`,borderRadius:`0.5rem`,fontSize:`0.875rem`,color:`#1f2937`,boxShadow:`0 4px 6px -1px rgba(0, 0, 0, 0.1)`,padding:`8px 12px`},children:[(0,J.jsx)(`div`,{style:{fontWeight:600,marginBottom:`4px`},children:s.name}),s.timeValues&&Object.keys(s.timeValues).length>0&&(0,J.jsx)(`div`,{style:{marginBottom:`4px`,color:`#6b7280`},children:Object.entries(s.timeValues).map(([e,t])=>(0,J.jsxs)(`div`,{children:[o(e),`: `,t]},e))}),(0,J.jsxs)(`div`,{children:[i?.label||o(n),`: `,uH(s.x,i)]}),(0,J.jsxs)(`div`,{children:[a?.label||o(r),`: `,uH(s.y,a)]})]}):null}function lAe(e,t){return e?.colors&&e.colors[t%e.colors.length]||bH[t%bH.length]}function uAe({hasSeries:e,seriesKeys:t,seriesGroups:n,scatterData:r,colorPalette:i,hoveredLegend:a}){return e?(0,J.jsx)(J.Fragment,{children:t.map((e,t)=>(0,J.jsx)(Nz,{name:e,data:n[e],fill:lAe(i,t),fillOpacity:a?a===e?1:.3:1},e))}):(0,J.jsx)(Nz,{name:`Data`,data:r,fill:i?.colors&&i.colors[0]||bH[0]})}var dAe=y.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a}){let{t:o}=fg(),[s,c]=(0,y.useState)(null),l=LH();try{if(!e||e.length===0)return(0,J.jsx)(gH,{height:i,hint:o(`chart.runtime.noDataHint.scatter`)});let{xAxisField:u,yAxisField:d,seriesFields:f,errorCode:p}=oAe(t);if(p)return(0,J.jsx)(_H,{height:i,hint:o(`chart.runtime.configErrorHint.${p}`)});let{scatterData:m,seriesGroups:h}=sAe(e,u,d,f,(r?.timeDimensions||[]).map(e=>e.dimension),r);if(!m||m.length===0)return(0,J.jsx)(gH,{height:i,titleKey:`chart.runtime.noValidData`,hint:`No valid data points for scatter chart after transformation`});let g=Object.keys(h),{showLegend:_,showGrid:v,showTooltip:y,hasSeries:b,xAxisFormat:x,yAxisFormat:S,chartMargins:C}=aAe(n,g);return(0,J.jsx)(aH,{height:i,children:(0,J.jsxs)(KDe,{margin:C,accessibilityLayer:!1,children:[v&&(0,J.jsx)(OR,{strokeDasharray:`3 3`}),(0,J.jsx)(Vz,{type:`number`,dataKey:`x`,name:x?.label||l(u),tick:{fontSize:12},tickFormatter:x?e=>uH(e,x):void 0}),(0,J.jsx)(Kz,{type:`number`,dataKey:`y`,name:S?.label||l(d),tick:{fontSize:12},tickFormatter:S?e=>uH(e,S):void 0,label:{value:S?.label||l(d),angle:-90,position:`left`,style:{textAnchor:`middle`,fontSize:`12px`}}}),y&&(0,J.jsx)(bP,{cursor:{strokeDasharray:`3 3`},content:({active:e,payload:t})=>(0,J.jsx)(cAe,{active:e,payload:t,xAxisField:u,yAxisField:d,xAxisFormat:x,yAxisFormat:S,getFieldLabel:l})}),_&&(0,J.jsx)(EC,{wrapperStyle:{fontSize:`12px`,paddingTop:`10px`},iconType:`circle`,iconSize:8,layout:`horizontal`,align:`center`,verticalAlign:`bottom`,onMouseEnter:e=>c(String(e.dataKey||``)),onMouseLeave:()=>c(null)}),(0,J.jsx)(uAe,{hasSeries:b,seriesKeys:g,seriesGroups:h,scatterData:m,colorPalette:a,hoveredLegend:s})]})})}catch(e){return(0,J.jsx)(vH,{height:i,chartType:`Scatter Chart`,error:e})}});cj();function ZH(e){return e?Array.isArray(e)?e[0]:e:``}function QH(e){return typeof e==`string`?parseFloat(e):e||0}function $H(e){return typeof e==`string`?parseFloat(e):e}function fAe(e,t,n,r){let i=ZH(t.xAxis),a=ZH(t.yAxis),o=Array.isArray(t.series)?t.series[0]:t.series,s=fH(n,i),c=e=>dH(e[i],s)||String(e[i])||`Unknown`;if(!o)return{treemapData:e.map((e,t)=>({name:c(e),size:QH(e[a]),fill:r?.colors&&r.colors[t%r.colors.length]||bH[t%bH.length]})),isNumericSeries:!1,seriesField:o};let l=e.map(e=>$H(e[o])).filter(e=>!isNaN(e)),u=l.length===e.length&&l.every(e=>typeof e==`number`);if(u){let t=ok().domain([Math.min(...l),Math.max(...l)]).range(xH);return{treemapData:e.map(e=>({name:c(e),size:QH(e[a]),fill:t($H(e[o])),series:String(e[o])})),isNumericSeries:u,seriesField:o}}let d=[...new Set(e.map(e=>String(e[o])))],f=CE().domain(d).range(r?.colors||bH);return{treemapData:e.map(e=>({name:c(e),size:QH(e[a]),fill:f(String(e[o])),series:String(e[o])})),isNumericSeries:u,seriesField:o}}function pAe(e){return typeof e==`boolean`?e?`Active`:`Inactive`:e===`true`||e===`false`?e===`true`?`Active`:`Inactive`:String(e)}function mAe(e,t){let n=e[0],r=Object.keys(n),i=r.find(e=>typeof n[e]==`string`||e.toLowerCase().includes(`name`)||e.toLowerCase().includes(`label`)||e.toLowerCase().includes(`category`))||r[0],a=r.find(e=>e.toLowerCase().includes(`size`))||r.find(e=>typeof n[e]==`number`&&e!==i)||r[1];return a?{treemapData:e.map((e,n)=>({name:pAe(e[i]),size:QH(e[a]),fill:t?.colors&&t.colors[n%t.colors.length]||bH[n%bH.length]})),isNumericSeries:!1,seriesField:void 0}:null}function hAe(e,t,n,r){let i=t?.xAxis&&t?.yAxis?fAe(e,t,n,r):mAe(e,r);return i?{...i,treemapData:i.treemapData.filter(e=>e.size!=null&&e.size>0)}:null}function eU(e,t){let n=e.map(e=>$H(e[t]));return{min:Math.min(...n),max:Math.max(...n)}}function tU(e,t){return t?uH(e,t):e.toFixed(2)}function gAe(e,t,n,r,i,a){if(!n||!r)return[];if(i){let{min:t,max:n}=eU(e,r);return xH.map((e,r)=>{let i=r/(xH.length-1);return{value:tU(t+(n-t)*i,a),type:`rect`,color:e}})}let o=[...new Set(t.map(e=>e.series).filter(Boolean))];return o.length>1?o.map((e,t)=>({value:e,type:`rect`,color:bH[t%bH.length]})):[]}function _Ae(e,t){return!t||typeof e==`string`&&e.includes(`%`)?e:typeof e==`number`?e+60:`calc(${e} + 60px)`}function vAe(e,t){return e===null?.8:e===t?1:.6}function yAe(e,t){return t?uH(e,t):typeof e==`number`?e.toLocaleString():String(e)}function bAe({treemapData:e,colorPalette:t,hoveredIndex:n,setHoveredIndex:r,leftYAxisFormat:i,drillEnabled:a,onDataPointClick:o,queryObject:s,chartConfig:c}){return function(l){let{x:u,y:d,width:f,height:p,index:m,name:h,size:g}=l;if(f<20||p<20)return null;let _=t=>{t.stopPropagation();let n=e[m];n&&o&&o({dataPoint:n,clickedField:s?.measures?.[0]||c?.yAxis?.[0]||``,xValue:h,position:{x:t.clientX,y:t.clientY},nativeEvent:t})},v=e[m]?.fill||t?.colors&&t.colors[m%t.colors.length]||bH[m%bH.length];return(0,J.jsxs)(`g`,{children:[(0,J.jsx)(`rect`,{x:u,y:d,width:f,height:p,style:{fill:v,fillOpacity:vAe(n,m),stroke:`#fff`,strokeWidth:2,cursor:a?`pointer`:`default`,pointerEvents:`all`},onMouseEnter:()=>r(m),onMouseLeave:()=>r(null),onClick:a&&o?_:void 0}),(0,J.jsx)(`foreignObject`,{x:u,y:d,width:f,height:p,style:{pointerEvents:`none`,overflow:`visible`},children:(0,J.jsxs)(`div`,{style:{width:`100%`,height:`100%`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,padding:`4px`,boxSizing:`border-box`,color:`#ffffff`,textShadow:`0 1px 2px rgba(0,0,0,0.8)`,fontFamily:`system-ui, -apple-system, sans-serif`,overflow:`hidden`},children:[f>40&&p>30&&(0,J.jsx)(`div`,{style:{fontSize:`${Math.max(10,Math.min(f/8,p/8,16))}px`,fontWeight:`600`,textAlign:`center`,lineHeight:`1.2`,marginBottom:f>60&&p>45?`4px`:`0`,wordBreak:`break-word`,hyphens:`auto`},children:h}),f>60&&p>45&&(0,J.jsx)(`div`,{style:{fontSize:`${Math.max(8,Math.min(f/10,p/10,14))}px`,textAlign:`center`,opacity:.9},children:yAe(g,i)})]})})]})}}function xAe({seriesLabel:e,data:t,seriesField:n,leftYAxisFormat:r}){let{min:i,max:a}=eU(t,n);return(0,J.jsxs)(`div`,{className:`dc:flex dc:flex-col dc:items-center`,children:[(0,J.jsx)(`div`,{className:`dc:text-xs dc:font-semibold text-dc-text-primary dc:mb-2`,children:e}),(0,J.jsxs)(`div`,{className:`dc:flex dc:items-center dc:gap-2`,children:[(0,J.jsx)(`span`,{className:`dc:text-xs text-dc-text-muted`,children:tU(i,r)}),(0,J.jsx)(`div`,{className:`dc:h-4 dc:rounded-sm`,style:{width:`200px`,background:`linear-gradient(to right, ${xH.join(`, `)})`}}),(0,J.jsx)(`span`,{className:`dc:text-xs text-dc-text-muted`,children:tU(a,r)})]})]})}function SAe({legendPayload:e}){return(0,J.jsx)(`div`,{className:`dc:flex dc:flex-wrap dc:justify-center dc:gap-4`,children:e.map((e,t)=>(0,J.jsxs)(`div`,{className:`dc:flex dc:items-center dc:gap-2`,children:[(0,J.jsx)(`div`,{className:`dc:w-3 dc:h-3 rounded-xs`,style:{backgroundColor:e.color}}),(0,J.jsx)(`span`,{className:`dc:text-xs text-dc-text-muted`,children:e.value})]},t))})}function CAe({isNumericSeries:e,seriesField:t,seriesLabel:n,legendPayload:r,data:i,leftYAxisFormat:a}){return(0,J.jsx)(`div`,{className:`dc:flex dc:justify-center dc:items-center dc:mt-4 dc:pb-2`,children:e&&t?(0,J.jsx)(xAe,{seriesLabel:n,data:i,seriesField:t,leftYAxisFormat:a}):(0,J.jsx)(SAe,{legendPayload:r})})}var wAe=y.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a,onDataPointClick:o,drillEnabled:s}){let{t:c}=fg(),[l,u]=(0,y.useState)(null),d=LH();try{let f={showTooltip:n?.showTooltip??!0,showLegend:n?.showLegend??!0,leftYAxisFormat:n?.leftYAxisFormat};if(!e||e.length===0)return(0,J.jsx)(gH,{height:i,hint:c(`chart.runtime.noDataHint.treemap`)});let p=hAe(e,t,r,a);if(!p)return(0,J.jsx)(_H,{height:i,hint:c(`chart.runtime.configErrorHint.treemapNumeric`)});let{treemapData:m,isNumericSeries:h,seriesField:g}=p;if(m.length===0)return(0,J.jsx)(gH,{height:i,titleKey:`chart.runtime.noValidData`,hint:`No valid data points for treemap chart after transformation`});let _=bAe({treemapData:m,colorPalette:a,hoveredIndex:l,setHoveredIndex:u,leftYAxisFormat:f.leftYAxisFormat,drillEnabled:s,onDataPointClick:o,queryObject:r,chartConfig:t}),v=gAe(e,m,f.showLegend,g,h,f.leftYAxisFormat),y=f.showLegend&&v.length>0,b=_Ae(i,y);return(0,J.jsxs)(`div`,{className:`dc:w-full`,style:{height:b},children:[(0,J.jsx)(aH,{height:y?`calc(100% - 50px)`:`100%`,children:(0,J.jsx)(QEe,{data:m,dataKey:`size`,aspectRatio:4/3,stroke:`#fff`,content:(0,J.jsx)(_,{}),children:f.showTooltip&&(0,J.jsx)(mH,{formatter:f.leftYAxisFormat?(e,t)=>[uH(e,f.leftYAxisFormat),t]:void 0})})}),y&&(0,J.jsx)(CAe,{isNumericSeries:h,seriesField:g,seriesLabel:g?d(g):``,legendPayload:v,data:e,leftYAxisFormat:f.leftYAxisFormat})]})}catch(e){return(0,J.jsx)(vH,{height:i,chartType:`TreeMap Chart`,error:e})}});function TAe(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return Object.keys(n).concat(Object.keys(r)).forEach(a),i}var nU=Object.freeze({left:0,top:0,width:16,height:16}),rU=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),iU=Object.freeze({...nU,...rU}),aU=Object.freeze({...iU,body:``,hidden:!1});function EAe(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function oU(e,t){let n=EAe(e,t);for(let r in aU)r in rU?r in e&&!(r in n)&&(n[r]=rU[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function DAe(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=oU(r[e]||i[e],a)}return o(t),n.forEach(o),oU(e,a)}function sU(e,t){let n=[];if(typeof e!=`object`||typeof e.icons!=`object`)return n;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),n.push(e)});let r=TAe(e);for(let i in r){let a=r[i];a&&(t(i,DAe(e,i,a)),n.push(i))}return n}var OAe={provider:``,aliases:{},not_found:{},...nU};function cU(e,t){for(let n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function lU(e){if(typeof e!=`object`||!e)return null;let t=e;if(typeof t.prefix!=`string`||!e.icons||typeof e.icons!=`object`||!cU(e,OAe))return null;let n=t.icons;for(let e in n){let t=n[e];if(!e||typeof t.body!=`string`||!cU(t,aU))return null}let r=t.aliases||Object.create(null);for(let e in r){let t=r[e],i=t.parent;if(!e||typeof i!=`string`||!n[i]&&!r[i]||!cU(t,aU))return null}return t}var uU=Object.create(null);function kAe(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function dU(e,t){let n=uU[e]||(uU[e]=Object.create(null));return n[t]||(n[t]=kAe(e,t))}function fU(e,t){return lU(t)?sU(t,(t,n)=>{n?e.icons[t]=n:e.missing.add(t)}):[]}function AAe(e,t,n){try{if(typeof n.body==`string`)return e.icons[t]={...n},!0}catch{}return!1}var pU=/^[a-z0-9]+(-[a-z0-9]+)*$/,mU=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!hU(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!hU(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!hU(e,n)?null:e}return null},hU=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1,gU=!1;function _U(e){return typeof e==`boolean`&&(gU=e),gU}function vU(e){let t=typeof e==`string`?mU(e,!0,gU):e;if(t){let e=dU(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function jAe(e,t){let n=mU(e,!0,gU);if(!n)return!1;let r=dU(n.provider,n.prefix);return t?AAe(r,n.name,t):(r.missing.add(n.name),!0)}function MAe(e,t){if(typeof e!=`object`)return!1;if(typeof t!=`string`&&(t=e.provider||``),gU&&!t&&!e.prefix){let t=!1;return lU(e)&&(e.prefix=``,sU(e,(e,n)=>{jAe(e,n)&&(t=!0)})),t}let n=e.prefix;return hU({prefix:n,name:`a`})?!!fU(dU(t,n),e):!1}var yU=Object.freeze({width:null,height:null}),bU=Object.freeze({...yU,...rU}),NAe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,PAe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function xU(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(NAe);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=PAe.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function FAe(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function IAe(e,t){return e?`<defs>`+e+`</defs>`+t:t}function LAe(e,t,n){let r=FAe(e);return IAe(r.defs,t+r.content+n)}var RAe=e=>e===`unset`||e===`undefined`||e===`none`;function zAe(e,t){let n={...iU,...e},r={...bU,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`)}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=LAe(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,d;o===null?(d=s===null?`1em`:s===`auto`?l:s,u=xU(d,c/l)):(u=o===`auto`?c:o,d=s===null?xU(u,l/c):s===`auto`?l:s);let f={},p=(e,t)=>{RAe(t)||(f[e]=t.toString())};p(`width`,u),p(`height`,d);let m=[i.left,i.top,c,l];return f.viewBox=m.join(` `),{attributes:f,viewBox:m,body:a}}var BAe=/\sid="(\S+)"/g,VAe=`IconifyId`+Date.now().toString(16)+(Math.random()*16777216|0).toString(16),HAe=0;function UAe(e,t=VAe){let n=[],r;for(;r=BAe.exec(e);)n.push(r[1]);if(!n.length)return e;let i=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(n=>{let r=typeof t==`function`?t(n):t+(HAe++).toString(),a=n.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+a+`)([")]|\\.[a-z])`,`g`),`$1`+r+i+`$3`)}),e=e.replace(new RegExp(i,`g`),``),e}var SU=Object.create(null);function WAe(e,t){SU[e]=t}function CU(e){return SU[e]||SU[``]}function wU(e){let t;if(typeof e.resources==`string`)t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||`/`,maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}for(var TU=Object.create(null),EU=[`https://api.simplesvg.com`,`https://api.unisvg.com`],DU=[];EU.length>0;)EU.length===1||Math.random()>.5?DU.push(EU.shift()):DU.push(EU.pop());TU[``]=wU({resources:[`https://api.iconify.design`].concat(DU)});function GAe(e,t){let n=wU(t);return n!==null&&(TU[e]=n,!0)}function OU(e){return TU[e]}var kU=(()=>{let e;try{if(e=fetch,typeof e==`function`)return e}catch{}})();function KAe(e,t){let n=OU(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let e=0;n.resources.forEach(t=>{e=Math.max(e,t.length)});let i=t+`.json?icons=`;r=n.maxURL-e-n.path.length-i.length}return r}function qAe(e){return e===404}var JAe=(e,t,n)=>{let r=[],i=KAe(e,t),a=`icons`,o={type:a,provider:e,prefix:t,icons:[]},s=0;return n.forEach((n,c)=>{s+=n.length+1,s>=i&&c>0&&(r.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=n.length),o.icons.push(n)}),r.push(o),r};function YAe(e){if(typeof e==`string`){let t=OU(e);if(t)return t.path}return`/`}var XAe={prepare:JAe,send:(e,t,n)=>{if(!kU){n(`abort`,424);return}let r=YAe(t.provider);switch(t.type){case`icons`:{let e=t.prefix,n=t.icons.join(`,`),i=new URLSearchParams({icons:n});r+=e+`.json?`+i.toString();break}case`custom`:{let e=t.uri;r+=e.slice(0,1)===`/`?e.slice(1):e;break}default:n(`abort`,400);return}let i=503;kU(e+r).then(e=>{let t=e.status;if(t!==200)setTimeout(()=>{n(qAe(t)?`abort`:`next`,t)});else return i=501,e.json()}).then(e=>{setTimeout(typeof e!=`object`||!e?()=>{e===404?n(`abort`,e):n(`next`,i)}:()=>{n(`success`,e)})}).catch(()=>{n(`next`,i)})}};function AU(e,t){e.forEach(e=>{let n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(e=>e.id!==t))})}function ZAe(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;let t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1,r=e.provider,i=e.prefix;t.forEach(t=>{let a=t.icons,o=a.pending.length;a.pending=a.pending.filter(t=>{if(t.prefix!==i)return!0;let o=t.name;if(e.icons[o])a.loaded.push({provider:r,prefix:i,name:o});else if(e.missing.has(o))a.missing.push({provider:r,prefix:i,name:o});else return n=!0,!0;return!1}),a.pending.length!==o&&(n||AU([e],t.id),t.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),t.abort))})}))}var QAe=0;function $Ae(e,t,n){let r=QAe++,i=AU.bind(null,n,r);if(!t.pending.length)return i;let a={id:r,icons:t,callback:e,abort:i};return n.forEach(e=>{(e.loaderCallbacks||=[]).push(a)}),i}function eje(e){let t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((e,t)=>e.provider===t.provider?e.prefix===t.prefix?e.name.localeCompare(t.name):e.prefix.localeCompare(t.prefix):e.provider.localeCompare(t.provider));let r={provider:``,prefix:``,name:``};return e.forEach(e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;let i=e.provider,a=e.prefix,o=e.name,s=n[i]||(n[i]=Object.create(null)),c=s[a]||(s[a]=dU(i,a)),l;l=o in c.icons?t.loaded:a===``||c.missing.has(o)?t.missing:t.pending;let u={provider:i,prefix:a,name:o};l.push(u)}),t}function tje(e,t=!0,n=!1){let r=[];return e.forEach(e=>{let i=typeof e==`string`?mU(e,t,n):e;i&&r.push(i)}),r}var nje={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function rje(e,t,n,r){let i=e.resources.length,a=e.random?Math.floor(Math.random()*i):e.index,o;if(e.random){let t=e.resources.slice(0);for(o=[];t.length>1;){let e=Math.floor(Math.random()*t.length);o.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}o=o.concat(t)}else o=e.resources.slice(a).concat(e.resources.slice(0,a));let s=Date.now(),c=`pending`,l=0,u,d=null,f=[],p=[];typeof r==`function`&&p.push(r);function m(){d&&=(clearTimeout(d),null)}function h(){c===`pending`&&(c=`aborted`),m(),f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function g(e,t){t&&(p=[]),typeof e==`function`&&p.push(e)}function _(){return{startTime:s,payload:t,status:c,queriesSent:l,queriesPending:f.length,subscribe:g,abort:h}}function v(){c=`failed`,p.forEach(e=>{e(void 0,u)})}function y(){f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function b(t,n,r){let i=n!==`success`;switch(f=f.filter(e=>e!==t),c){case`pending`:break;case`failed`:if(i||!e.dataAfterTimeout)return;break;default:return}if(n===`abort`)u=r,v();else if(i)u=r,f.length||(o.length?x():v());else{if(m(),y(),!e.random){let n=e.resources.indexOf(t.resource);n!==-1&&n!==e.index&&(e.index=n)}c=`completed`,p.forEach(e=>{e(r)})}}function x(){if(c!==`pending`)return;m();let r=o.shift();if(r===void 0){if(f.length){d=setTimeout(()=>{m(),c===`pending`&&(y(),v())},e.timeout);return}v();return}let i={status:`pending`,resource:r,callback:(e,t)=>{b(i,e,t)}};f.push(i),l++,d=setTimeout(x,e.rotate),n(r,t,i.callback)}return setTimeout(x),_}function jU(e){let t={...nje,...e},n=[];function r(){n=n.filter(e=>e().status===`pending`)}function i(e,i,a){let o=rje(t,e,i,(e,t)=>{r(),a&&a(e,t)});return n.push(o),o}function a(e){return n.find(t=>e(t))||null}return{query:i,find:a,setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}function MU(){}var NU=Object.create(null);function ije(e){if(!NU[e]){let t=OU(e);if(!t)return;NU[e]={config:t,redundancy:jU(t)}}return NU[e]}function aje(e,t,n){let r,i;if(typeof e==`string`){let t=CU(e);if(!t)return n(void 0,424),MU;i=t.send;let a=ije(e);a&&(r=a.redundancy)}else{let t=wU(e);if(t){r=jU(t);let n=CU(e.resources?e.resources[0]:``);n&&(i=n.send)}}return!r||!i?(n(void 0,424),MU):r.query(t,i,n)().abort}function PU(){}function oje(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ZAe(e)}))}function sje(e){let t=[],n=[];return e.forEach(e=>{(e.match(pU)?t:n).push(e)}),{valid:t,invalid:n}}function FU(e,t,n){function r(){let n=e.pendingIcons;t.forEach(t=>{n&&n.delete(t),e.icons[t]||e.missing.add(t)})}if(n&&typeof n==`object`)try{if(!fU(e,n).length){r();return}}catch(e){console.error(e)}r(),oje(e)}function IU(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}function cje(e,t){e.iconsToLoad=e.iconsToLoad?e.iconsToLoad.concat(t).sort():t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;let{provider:t,prefix:n}=e,r=e.iconsToLoad;if(delete e.iconsToLoad,!r||!r.length)return;let i=e.loadIcon;if(e.loadIcons&&(r.length>1||!i)){IU(e.loadIcons(r,n,t),t=>{FU(e,r,t)});return}if(i){r.forEach(r=>{IU(i(r,n,t),t=>{FU(e,[r],t?{prefix:n,icons:{[r]:t}}:null)})});return}let{valid:a,invalid:o}=sje(r);if(o.length&&FU(e,o,null),!a.length)return;let s=n.match(pU)?CU(t):null;s?s.prepare(t,n,a).forEach(n=>{aje(t,n,t=>{FU(e,n.icons,t)})}):FU(e,a,null)}))}var lje=(e,t)=>{let n=eje(tje(e,!0,_U()));if(!n.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(n.loaded,n.missing,n.pending,PU)}),()=>{e=!1}}let r=Object.create(null),i=[],a,o;return n.pending.forEach(e=>{let{provider:t,prefix:n}=e;if(n===o&&t===a)return;a=t,o=n,i.push(dU(t,n));let s=r[t]||(r[t]=Object.create(null));s[n]||(s[n]=[])}),n.pending.forEach(e=>{let{provider:t,prefix:n,name:i}=e,a=dU(t,n),o=a.pendingIcons||=new Set;o.has(i)||(o.add(i),r[t][n].push(i))}),i.forEach(e=>{let t=r[e.provider][e.prefix];t.length&&cje(e,t)}),t?$Ae(t,n,i):PU};function uje(e,t){let n={...e};for(let e in t){let r=t[e],i=typeof r;e in yU?(r===null||r&&(i===`string`||i===`number`))&&(n[e]=r):i===typeof n[e]&&(n[e]=e===`rotate`?r%4:r)}return n}var dje=/[\s,]+/;function fje(e,t){t.split(dje).forEach(t=>{switch(t.trim()){case`horizontal`:e.hFlip=!0;break;case`vertical`:e.vFlip=!0}})}function pje(e,t=0){let n=e.replace(/^-?[0-9.]*/,``);function r(e){for(;e<0;)e+=4;return e%4}if(n===``){let t=parseInt(e);return isNaN(t)?0:r(t)}if(n!==e){let t=0;switch(n){case`%`:t=25;break;case`deg`:t=90}if(t){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i/=t,i%1==0?r(i):0)}}return t}function mje(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function hje(e){return e.replace(/"/g,`'`).replace(/%/g,`%25`).replace(/#/g,`%23`).replace(/</g,`%3C`).replace(/>/g,`%3E`).replace(/\s+/g,` `)}function gje(e){return`data:image/svg+xml,`+hje(e)}function _je(e){return`url("`+gje(e)+`")`}var LU;function vje(){try{LU=window.trustedTypes.createPolicy(`iconify`,{createHTML:e=>e})}catch{LU=null}}function yje(e){return LU===void 0&&vje(),LU?LU.createHTML(e):e}var RU={...bU,inline:!1},bje={xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,"aria-hidden":!0,role:`img`},xje={display:`inline-block`},zU={backgroundColor:`currentColor`},BU={backgroundColor:`transparent`},VU={Image:`var(--svg)`,Repeat:`no-repeat`,Size:`100% 100%`},HU={WebkitMask:zU,mask:zU,background:BU};for(let e in HU){let t=HU[e];for(let n in VU)t[e+n]=VU[n]}var Sje={...RU,inline:!0};function UU(e){return e+(e.match(/^[-0-9.]+$/)?`px`:``)}var Cje=(e,t,n)=>{let r=t.inline?Sje:RU,i=uje(r,t),a=t.mode||`svg`,o={},s=t.style||{},c={...a===`svg`?bje:{}};if(n){let e=mU(n,!1,!0);if(e){let t=[`iconify`];for(let n of[`provider`,`prefix`])e[n]&&t.push(`iconify--`+e[n]);c.className=t.join(` `)}}for(let e in t){let n=t[e];if(n!==void 0)switch(e){case`icon`:case`style`:case`children`:case`onLoad`:case`mode`:case`ssr`:case`fallback`:break;case`_ref`:c.ref=n;break;case`className`:c[e]=(c[e]?c[e]+` `:``)+n;break;case`inline`:case`hFlip`:case`vFlip`:i[e]=n===!0||n===`true`||n===1;break;case`flip`:typeof n==`string`&&fje(i,n);break;case`color`:o.color=n;break;case`rotate`:typeof n==`string`?i[e]=pje(n):typeof n==`number`&&(i[e]=n);break;case`ariaHidden`:case`aria-hidden`:n!==!0&&n!==`true`&&delete c[`aria-hidden`];break;default:r[e]===void 0&&(c[e]=n)}}let l=zAe(e,i),u=l.attributes;if(i.inline&&(o.verticalAlign=`-0.125em`),a===`svg`){c.style={...o,...s},Object.assign(c,u);let e=0,n=t.id;return typeof n==`string`&&(n=n.replace(/-/g,`_`)),c.dangerouslySetInnerHTML={__html:yje(UAe(l.body,n?()=>n+`ID`+e++:`iconifyReact`))},(0,y.createElement)(`svg`,c)}let{body:d,width:f,height:p}=e,m=a===`mask`||a!==`bg`&&d.indexOf(`currentColor`)!==-1,h=mje(d,{...u,width:f+``,height:p+``});return c.style={...o,"--svg":_je(h),width:UU(u.width),height:UU(u.height),...xje,...m?zU:BU,...s},(0,y.createElement)(`span`,c)};if(_U(!0),WAe(``,XAe),typeof document<`u`&&typeof window<`u`){let e=window;if(e.IconifyPreload!==void 0){let t=e.IconifyPreload,n=`Invalid IconifyPreload syntax.`;typeof t==`object`&&t&&(t instanceof Array?t:[t]).forEach(e=>{try{(typeof e!=`object`||!e||e instanceof Array||typeof e.icons!=`object`||typeof e.prefix!=`string`||!MAe(e))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){let t=e.IconifyProviders;if(typeof t==`object`&&t)for(let e in t){let n=`IconifyProviders[`+e+`] is invalid.`;try{let r=t[e];if(typeof r!=`object`||!r||r.resources===void 0)continue;GAe(e,r)||console.error(n)}catch{console.error(n)}}}}function WU(e){let[t,n]=(0,y.useState)(!!e.ssr),[r,i]=(0,y.useState)({});function a(t){if(t){let t=e.icon;if(typeof t==`object`)return{name:``,data:t};let n=vU(t);if(n)return{name:t,data:n}}return{name:``}}let[o,s]=(0,y.useState)(a(!!e.ssr));function c(){let e=r.callback;e&&(e(),i({}))}function l(e){if(JSON.stringify(o)!==JSON.stringify(e))return c(),s(e),!0}function u(){var t;let n=e.icon;if(typeof n==`object`){l({name:``,data:n});return}let r=vU(n);if(l({name:n,data:r})){if(r===void 0){let e=lje([n],u);i({callback:e})}else r&&((t=e.onLoad)==null||t.call(e,n))}}(0,y.useEffect)(()=>(n(!0),c),[]),(0,y.useEffect)(()=>{t&&u()},[e.icon,t]);let{name:d,data:f}=o;return f?Cje({...iU,...f},e,d):e.children?e.children:e.fallback?e.fallback:(0,y.createElement)(`span`,{})}var GU=(0,y.forwardRef)((e,t)=>WU({...e,_ref:t}));(0,y.forwardRef)((e,t)=>WU({inline:!0,...e,_ref:t}));var KU={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0m9-3h.01"/><path d="M11 12h1v4h1"/></g>`};function wje(e,t,n,r){let i=Array(r).fill(0),a=n-t;e.forEach(e=>{if(a===0)i[Math.floor(r/2)]++;else{let n=Math.floor((e-t)/a*(r-1));n=Math.max(0,Math.min(r-1,n)),i[n]++}});let o=Math.max(...i),s=e.reduce((e,t)=>e+t,0)/e.length;return{buckets:i,range:a,maxBucketCount:o,average:s,averagePosition:a===0?50:(s-t)/a*100}}function qU({position:e,clamp:t=!1,color:n,zIndex:r,title:i}){return(0,J.jsx)(`div`,{className:`dc:absolute dc:top-0 dc:bottom-0 dc:pointer-events-none`,style:{left:`${t?Math.max(0,Math.min(100,e)):e}%`,transform:`translateX(-50%)`,width:`2px`,backgroundColor:n,opacity:.8,zIndex:r},title:i,children:(0,J.jsx)(`div`,{className:`dc:absolute dc:-top-1`,style:{left:`50%`,transform:`translateX(-50%)`,width:`0`,height:`0`,borderLeft:`4px solid transparent`,borderRight:`4px solid transparent`,borderTop:`6px solid ${n}`}})})}function JU({values:e,min:t,max:n,color:r=`#1f2937`,bucketCount:i=12,height:a=32,formatValue:o=e=>e.toString(),width:s,showAverageIndicator:c=!0,targetValue:l}){let{t:u}=fg(),{buckets:d,range:f,maxBucketCount:p,average:m,averagePosition:h}=wje(e,t,n,i),g=l!==void 0&&f>0?(l-t)/f*100:null,_={width:s?`${s}px`:`200px`,minWidth:`200px`};return(0,J.jsxs)(`div`,{className:`dc:flex dc:flex-col dc:items-center`,children:[(0,J.jsxs)(`div`,{className:`dc:relative dc:flex dc:items-end dc:justify-center dc:space-x-0.5`,style:{height:`${a}px`,..._},children:[d.map((e,t)=>{let n=p>0?e/p:0,i=.1;return(0,J.jsx)(`div`,{className:`dc:flex-1 dc:rounded-t-sm dc:transition-all dc:duration-300 dc:ease-out`,style:{height:`${(e>0?Math.max(i,n):i)*a}px`,backgroundColor:r,opacity:e>0?.7+n*.3:.2},title:`${e} values in this range`},t)}),c&&(0,J.jsx)(qU,{position:h,color:`#ef4444`,zIndex:10,title:`Average: ${o(m)}`}),g!==null&&l!==void 0&&(0,J.jsx)(qU,{position:g,clamp:!0,color:`#10b981`,zIndex:11,title:`Target: ${o(l)}`})]}),(0,J.jsxs)(`div`,{className:`dc:flex dc:justify-between dc:mt-2 dc:text-xs text-dc-text-muted`,style:_,children:[(0,J.jsx)(`span`,{children:o(t)}),(0,J.jsx)(`span`,{children:o(n)})]}),(0,J.jsx)(`div`,{className:`dc:text-center dc:mt-1 dc:text-xs text-dc-text-muted`,children:u(`dataHistogram.average`,{count:e.length})})]})}function Tje(e,t){let n=new Date(e);switch(t.toLowerCase()){case`day`:n.setHours(23,59,59,999);break;case`week`:{let e=6-n.getDay();n.setDate(n.getDate()+e),n.setHours(23,59,59,999);break}case`month`:n.setMonth(n.getMonth()+1,0),n.setHours(23,59,59,999);break;case`quarter`:{let e=n.getMonth(),t=Math.floor(e/3)*3+2;n.setMonth(t+1,0),n.setHours(23,59,59,999);break}case`year`:n.setMonth(11,31),n.setHours(23,59,59,999);break;default:n.setHours(23,59,59,999)}return n}function Eje(e,t,n){if(!e||!t||!n)return!0;let r=e[t];if(!r)return!0;let i=new Date(r);return isNaN(i.getTime())?!0:Tje(i,n)<=new Date}function Dje(e,t){if(!e?.timeDimensions||e.timeDimensions.length===0)return null;if(t){let n=e.timeDimensions.find(e=>e.dimension===t||e.dimension?.includes(t)||t?.includes(e.dimension));if(n?.granularity)return n.granularity}return e.timeDimensions[0]?.granularity||null}function YU(e,t,n,r,i=!1){let a={filteredData:e,excludedIncompletePeriod:!1,skippedLastPeriod:!1,granularity:null};if(e.length<2)return a;let o=Dje(n,t);if(i)return{filteredData:e.slice(0,-1),excludedIncompletePeriod:!1,skippedLastPeriod:!0,granularity:o};if(!r||!t||!n?.timeDimensions||n.timeDimensions.length===0)return{...a,granularity:o};if(!o)return a;let s=e[e.length-1];return Eje(s,t,o)?{...a,granularity:o}:{filteredData:e.slice(0,-1),excludedIncompletePeriod:!0,skippedLastPeriod:!1,granularity:o}}function Oje(e){return e?typeof e==`string`?[e]:Array.isArray(e)?e:[]:[]}function kje(e,t){if(!e||e.length===0)return[];let n=[...e];return t?n.sort((e,n)=>{let r=e[t],i=n[t];return r<i?-1:+(r>i)}):n}function Aje(e,t){return!t||e.length===0?[]:e.map(e=>{if(e[t]!==void 0)return e[t];let n=Object.keys(e).filter(t=>typeof e[t]==`number`&&!isNaN(e[t]));if(n.length>0)return e[n[0]]}).filter(e=>e!=null&&!isNaN(Number(e))).map(e=>Number(e))}function jje(e){return e.length===0?{avg:0,min:0,max:0}:{avg:e.reduce((e,t)=>e+t,0)/e.length,min:Math.min(...e),max:Math.max(...e)}}function XU(e,t){if(t.formatValue)return t.formatValue(e);if(e==null)return`—`;let n=t.decimals??0,r=t.prefix??``,i;return i=Math.abs(e)>=1e9?(e/1e9).toFixed(n)+`B`:Math.abs(e)>=1e6?(e/1e6).toFixed(n)+`M`:Math.abs(e)>=1e3?(e/1e3).toFixed(n)+`K`:e.toFixed(n),r+i}function ZU(e,t){return e&&e.length>1?e:t}function Mje(e,t){return e!==void 0&&t&&e>=0&&e<t.length?t[e]:t?.[0]||`#1f2937`}function Nje(e,t,n,r){return e===null?`#6B7280`:e>=0?r?.[t??1]||`#10B981`:r?.[n??7]||`#EF4444`}function QU({widthDivisor:e,heightDivisor:t,minFontSize:n,maxFontSize:r,measureWidth:i,deps:a}){let[o,s]=(0,y.useState)(32),[c,l]=(0,y.useState)(250),u=(0,y.useRef)(null),d=(0,y.useRef)(null);return(0,y.useEffect)(()=>{let a=()=>{if(!u.current)return;let a=u.current.getBoundingClientRect(),o=a.width,c=a.height;if(o<=0||c<=0)return;let f=o/e,p=c/t;s(Math.max(n,Math.min(Math.min(f,p),r))),setTimeout(()=>{if(d.current){let e=d.current.getBoundingClientRect().width;l(i(e,o))}},10)},o=setTimeout(a,50),c=new ResizeObserver(()=>{setTimeout(a,10)});return u.current&&c.observe(u.current),()=>{clearTimeout(o),c.disconnect()}},a),{containerRef:u,valueRef:d,fontSize:o,textWidth:c}}var Pje={muted:{},danger:{backgroundColor:`var(--dc-danger-bg)`,color:`var(--dc-danger)`,borderColor:`var(--dc-danger-border)`},warning:{backgroundColor:`var(--dc-warning-bg)`,color:`var(--dc-warning)`,borderColor:`var(--dc-warning-border)`}};function $U(e,t=`200px`){return{height:e===`100%`?`100%`:e,minHeight:e===`100%`?t:void 0}}function eW({height:e,title:t,hint:n,variant:r=`muted`,children:i}){return(0,J.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,style:{...$U(e),...Pje[r]},children:(0,J.jsxs)(`div`,{className:`dc:text-center${r===`muted`?` text-dc-text-muted`:``}`,children:[(0,J.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:t}),n!=null&&(0,J.jsx)(`div`,{className:`dc:text-xs${r===`muted`?` text-dc-text-secondary`:``}`,children:n}),i]})})}var tW=y.memo(function({label:e,labelAdornment:t,value:n,valueColor:r,suffix:i,valueAdornment:a,detail:o,containerRef:s}){return(0,J.jsxs)(`div`,{ref:s,className:`dc:flex dc:flex-col dc:justify-center dc:w-full dc:h-full dc:px-4 dc:py-3 dc:gap-1.5 dc:overflow-hidden`,style:{height:`100%`,minHeight:`80px`},children:[(0,J.jsxs)(`div`,{className:`dc:flex dc:items-center dc:gap-1 dc:font-bold text-dc-text-secondary`,style:{fontSize:`14px`,lineHeight:1.2},children:[(0,J.jsx)(`span`,{className:`dc:truncate`,children:e}),t]}),(0,J.jsxs)(`div`,{className:`dc:flex dc:items-baseline dc:gap-1.5`,children:[(0,J.jsx)(`span`,{className:`dc:font-semibold dc:leading-none dc:truncate`,style:{fontSize:`30px`,color:r||`var(--dc-text)`},children:n}),i&&(0,J.jsx)(`span`,{className:`text-dc-text-muted dc:truncate`,style:{fontSize:`14px`},children:i}),a]}),o&&(0,J.jsx)(`div`,{className:`text-dc-text-muted dc:truncate`,style:{fontSize:`12px`,lineHeight:1.4},children:o})]})}),Fje=y.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a}){let{t:o}=fg(),s=LH(),c=(0,y.useMemo)(()=>Oje(t?.yAxis),[t?.yAxis]),l=c[0]||``,u=r?.timeDimensions?.[0]?.dimension||void 0,d=(0,y.useMemo)(()=>kje(e,u),[e,u]),{useLastCompletePeriod:f=!0,skipLastPeriod:p=!1}=n,{filteredData:m,excludedIncompletePeriod:h,skippedLastPeriod:g,granularity:_}=(0,y.useMemo)(()=>d.length===0?{filteredData:[],excludedIncompletePeriod:!1,skippedLastPeriod:!1,granularity:void 0}:YU(d,u,r,f,p),[d,u,r,f,p]),v=m,b=(0,y.useMemo)(()=>Aje(v,l),[v,l]),{avg:x,min:S,max:C}=(0,y.useMemo)(()=>jje(b),[b]),w=(0,y.useCallback)(e=>XU(e,n),[n]),T=b.length===1?b[0]:x,E=b.length>1,D=(0,y.useMemo)(()=>Mje(n.valueColorIndex,a?.colors),[n.valueColorIndex,a?.colors]),O=(0,y.useMemo)(()=>CH(n?.target||``),[n?.target]),k=O.length>0?O[0]:null,A=k!==null&&b.length>0?Dke(T,k):null,j=(0,y.useMemo)(()=>Nje(A,n.positiveColorIndex,n.negativeColorIndex,a?.colors),[A,n.positiveColorIndex,n.negativeColorIndex,a?.colors]),M=n.layout===`compact`,{containerRef:N,valueRef:P,fontSize:F,textWidth:ee}=QU({widthDivisor:5,heightDivisor:4,minFontSize:24,maxFontSize:120,measureWidth:(e,t)=>Math.max(e,Math.min(t*.6,300)),deps:[e,t]});if(!e||e.length===0)return(0,J.jsx)(eW,{height:i,title:o(`chart.runtime.noData`),hint:o(`chart.runtime.noDataHint.kpi`)});if(c.length===0)return(0,J.jsx)(eW,{height:i,variant:`danger`,title:o(`chart.runtime.configError`),hint:o(`chart.runtime.configErrorHint.noMeasures`)});let te=h||g?(0,J.jsx)(`span`,{title:o(g?`chart.runtime.kpiExcludesLastPeriod`:`chart.runtime.kpiExcludesIncompletePeriod`,{period:_||o(`chart.runtime.kpiPeriodFallback`)}),className:`dc:cursor-help`,children:(0,J.jsx)(GU,{icon:KU,className:`dc:w-4 dc:h-4 text-dc-text-muted dc:opacity-70`})}):null;return M?(0,J.jsx)(tW,{containerRef:N,label:ZU(s(l),l),labelAdornment:te,value:b.length===0?`—`:w(T),valueColor:b.length===0?void 0:D,suffix:n.suffix&&!n.formatValue?n.suffix:void 0,detail:k!==null&&A!==null?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{className:`dc:font-semibold`,style:{color:j},children:wH(A,1)}),` `,o(`chart.runtime.kpiVsTarget`,{target:w(k)})]}):void 0}):b.length===0?(0,J.jsxs)(`div`,{ref:N,className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full dc:h-full dc:p-4`,style:$U(i),children:[(0,J.jsx)(`div`,{className:`text-dc-text-secondary dc:font-bold dc:text-center dc:mb-3`,style:{fontSize:`14px`,lineHeight:`1.2`},children:s(l)}),(0,J.jsx)(`div`,{className:`dc:font-bold dc:leading-none text-dc-text-muted`,style:{fontSize:`${F}px`},children:`—`}),(0,J.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted dc:mt-2`,children:o(`chart.runtime.noDataShort`)})]}):(0,J.jsxs)(`div`,{ref:N,className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full dc:h-full dc:p-4`,style:$U(i),children:[(0,J.jsxs)(`div`,{className:`text-dc-text-secondary dc:font-bold dc:text-center dc:mb-3 dc:flex dc:items-center dc:justify-center dc:gap-1`,style:{fontSize:`14px`,lineHeight:`1.2`},children:[(0,J.jsx)(`span`,{children:ZU(s(l),l)}),te]}),(0,J.jsxs)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:gap-4 dc:mb-3`,children:[(0,J.jsx)(`div`,{ref:P,className:`dc:font-bold dc:leading-none`,style:{fontSize:`${F}px`,color:D},children:w(T)}),k!==null&&A!==null&&(0,J.jsxs)(`div`,{className:`dc:flex dc:flex-col dc:items-start`,children:[(0,J.jsx)(`div`,{className:`dc:font-semibold`,style:{fontSize:`${Math.max(12,F*.3)}px`,color:j,lineHeight:`1.2`},children:wH(A,1)}),(0,J.jsx)(`div`,{className:`text-dc-text-muted dc:text-xs`,style:{opacity:.7,fontSize:`${Math.max(10,F*.2)}px`},children:o(`chart.runtime.kpiVsTarget`,{target:w(k)})})]})]}),n.suffix&&!n.formatValue&&(0,J.jsx)(`div`,{className:`text-dc-text-muted dc:text-center`,style:{fontSize:`14px`,lineHeight:`1.2`,opacity:.8},children:n.suffix}),E&&(0,J.jsx)(`div`,{className:`dc:mt-4`,children:(0,J.jsx)(JU,{values:b,min:S,max:C,color:D,formatValue:w,height:24,width:ee,targetValue:k||void 0})})]})});function nW(e){return e?Array.isArray(e)?e:[e]:[]}function Ije(e,t){let n=[...e];return t?n.sort((e,n)=>{let r=e[t],i=n[t];return r<i?-1:+(r>i)}):n}function Lje(e,t){return e.map(e=>e[t]).filter(e=>e!=null&&!isNaN(Number(e))).map(e=>Number(e))}function Rje(e){let t=e[e.length-1],n=e[e.length-2],r=t-n;return{lastValue:t,previousValue:n,absoluteChange:r,percentageChange:n===0?0:r/Math.abs(n)*100,isPositiveChange:r>=0}}function rW(e,t,n){return e!==void 0&&t&&e>=0&&e<t.length?t[e]:n}function zje({values:e,lastValue:t,positiveColor:n,negativeColor:r,formatValue:i,width:a,height:o}){let s=Math.max(10,Math.floor(a/10)),c=e.length>s?e.slice(-s):e,l=c.map(e=>e-t),u=Math.min(...l,0),d=Math.max(...l,0);if(Math.max(Math.abs(u),Math.abs(d))===0||l.length===0)return(0,J.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center bg-dc-bg-secondary dc:rounded-sm dc:border border-dc-border`,style:{width:`${a}px`,height:`${o}px`},children:(0,J.jsx)(`span`,{className:`dc:text-xs text-dc-text-muted`,children:`No variance data`})});let f=a-(c.length-1)*2,p=Math.max(4,f/c.length),m=d-u,h=m>0?d/m*100:50;return(0,J.jsxs)(`div`,{className:`dc:flex dc:items-center dc:space-x-2`,children:[(0,J.jsxs)(`div`,{className:`dc:relative`,style:{width:`${a}px`,height:`${o}px`},children:[(0,J.jsx)(`div`,{className:`dc:absolute dc:left-0 dc:right-0`,style:{height:`1px`,top:`${h}%`,backgroundColor:`var(--dc-border)`,zIndex:1}}),l.map((e,t)=>{let a=Math.abs(e)/m,s=Math.max(2,a*(o-4)),l=e>=0,u=t===c.length-1,d=l?n:r,f=t*(p+2);return(0,J.jsx)(`div`,{className:`dc:absolute dc:rounded-sm`,style:{left:`${f}px`,width:`${p}px`,height:`${s}px`,backgroundColor:d,opacity:u?1:.6,...l?{bottom:`${100-h}%`}:{top:`${h}%`},zIndex:2},title:`${i(c[t])}: ${e>=0?`+`:``}${i(e)} vs current`},t)})]}),(0,J.jsxs)(`div`,{className:`dc:flex dc:flex-col dc:justify-between dc:text-xs text-dc-text-muted`,style:{height:`${o}px`},children:[(0,J.jsxs)(`span`,{children:[`+`,i(d)]}),(0,J.jsxs)(`span`,{children:[``,i(u)]})]})]})}var Bje=y.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a}){let{t:o}=fg(),s=LH(),{containerRef:c,valueRef:l,fontSize:u,textWidth:d}=QU({widthDivisor:4,heightDivisor:4,minFontSize:28,maxFontSize:140,measureWidth:(e,t)=>{let n=t-100,r=Math.max(e,Math.min(n,t*.7));return Math.max(100,r)},deps:[e,t]});if(!e||e.length===0)return(0,J.jsx)(eW,{height:i,title:o(`chart.runtime.noData`),hint:o(`chart.runtime.noDataHint.kpi`)});let f=nW(t?.yAxis),p=nW(t?.xAxis);if(f.length===0)return(0,J.jsx)(eW,{height:i,variant:`danger`,title:o(`chart.runtime.configError`),hint:o(`chart.runtime.configErrorHint.noMeasure`)});let m=f[0],h=p[0],g=Ije(e,h),{useLastCompletePeriod:_=!0,skipLastPeriod:v=!1}=n,{filteredData:y,excludedIncompletePeriod:b,skippedLastPeriod:x,granularity:S}=YU(g,h,r,_,v),C=Lje(y,m);if(C.length<2)return(0,J.jsx)(eW,{height:i,variant:`warning`,title:o(`chart.runtime.kpiDelta.insufficientData`),hint:o(`chart.runtime.kpiDelta.requiresTwoPoints`),children:(0,J.jsx)(`div`,{className:`dc:text-xs`,children:o(`chart.runtime.kpiDelta.currentPoints`,{count:C.length})})});let{lastValue:w,previousValue:T,absoluteChange:E,percentageChange:D,isPositiveChange:O}=Rje(C),k=e=>XU(e,n),A=rW(n.positiveColorIndex,a?.colors,`#10b981`),j=rW(n.negativeColorIndex,a?.colors,`#ef4444`),M=O?A:j,N=b||x?(0,J.jsx)(`span`,{title:o(x?`chart.runtime.kpiExcludesLastPeriod`:`chart.runtime.kpiExcludesIncompletePeriod`,{period:S||o(`chart.runtime.kpiPeriodFallback`)}),className:`dc:cursor-help`,children:(0,J.jsx)(GU,{icon:KU,className:`dc:w-4 dc:h-4 text-dc-text-muted dc:opacity-70`})}):null;return n.layout===`compact`?(0,J.jsx)(tW,{containerRef:c,label:ZU(s(m),m),labelAdornment:N,value:k(w),suffix:n.suffix&&!n.formatValue?n.suffix:void 0,valueAdornment:(0,J.jsxs)(`span`,{className:`dc:font-semibold dc:whitespace-nowrap`,style:{color:M,fontSize:`15px`},children:[O?`▲`:`▼`,` `,O?`+`:``,D.toFixed(1),`%`]}),detail:n.showBaseline?`${k(T)} \u2192 ${k(w)}`:void 0}):(0,J.jsxs)(`div`,{ref:c,className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full dc:h-full dc:p-4`,style:$U(i),children:[(0,J.jsxs)(`div`,{className:`text-dc-text-secondary dc:font-bold dc:text-center dc:mb-2 dc:flex dc:items-center dc:justify-center dc:gap-1`,style:{fontSize:`14px`,lineHeight:`1.2`},children:[(0,J.jsx)(`span`,{children:ZU(s(m),m)}),N]}),(0,J.jsxs)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:space-x-4 dc:mb-2`,children:[(0,J.jsx)(`div`,{ref:l,className:`dc:font-bold dc:leading-none`,style:{fontSize:`${u}px`,color:`var(--dc-text)`},children:k(w)}),(0,J.jsxs)(`div`,{className:`dc:flex dc:items-center dc:space-x-1`,children:[(0,J.jsx)(`div`,{className:`dc:font-bold`,style:{color:M,fontSize:`${u*.35}px`},children:O?`▲`:`▼`}),(0,J.jsxs)(`div`,{className:`dc:text-left`,children:[(0,J.jsxs)(`div`,{className:`dc:font-bold dc:leading-tight`,style:{fontSize:`${u*.35}px`,color:M},children:[O?`+`:``,k(E)]}),(0,J.jsxs)(`div`,{className:`dc:font-semibold dc:leading-tight`,style:{fontSize:`${u*.28}px`,color:M,opacity:.8},children:[O?`+`:``,D.toFixed(1),`%`]})]})]})]}),n.suffix&&!n.formatValue&&(0,J.jsx)(`div`,{className:`text-dc-text-muted dc:text-center dc:mb-3`,style:{fontSize:`14px`,lineHeight:`1.2`,opacity:.8},children:n.suffix}),n.showHistogram!==!1&&C.length>2&&(0,J.jsx)(`div`,{className:`dc:mt-2 dc:w-full dc:flex dc:justify-center dc:overflow-hidden`,children:(0,J.jsx)(zje,{values:C,lastValue:w,positiveColor:A,negativeColor:j,formatValue:k,width:d,height:64})})]})});function Vje(e){return e?typeof e==`string`?[e]:Array.isArray(e)?e:[]:[]}function Hje(e,t){return e.map(e=>{if(e[t]!==void 0)return e[t];let n=Object.keys(e);if(n.length>0)return e[n[0]]}).filter(e=>e!=null)}function Uje(e){let t=e.map(e=>Number(e)).filter(e=>!isNaN(e));return t.length>0?e.length===1?{mainValue:e[0],min:null,max:null,showStats:!1}:{mainValue:t.reduce((e,t)=>e+t,0)/t.length,min:Math.min(...t),max:Math.max(...t),showStats:!0}:{mainValue:e.length===1?e[0]:e.join(`, `),min:null,max:null,showStats:!1}}function Wje(e,t){if(t.formatValue)return t.formatValue(e);if(e==null)return`—`;let n=t.decimals??2,r=Math.abs(e);return r>=1e9?(e/1e9).toFixed(n)+`B`:r>=1e6?(e/1e6).toFixed(n)+`M`:r>=1e3?(e/1e3).toFixed(n)+`K`:e.toFixed(n)}function Gje(e,t){let{value:n,valueField:r,fieldLabel:i,min:a,max:o,count:s,formatNumber:c}=t;try{let t={value:typeof n==`number`?c(n):String(n),rawValue:n,field:r,fieldLabel:i,min:a===null?``:c(a),max:o===null?``:c(o),count:s};return e.replace(/\$\{(\w+)\}/g,(e,n)=>n in t?String(t[n]):e)}catch{return String(n)}}function Kje(e,t){return e!==void 0&&t?.colors&&e>=0&&e<t.colors.length?t.colors[e]:t?.colors?.[0]||`#1f2937`}var qje=y.memo(function({data:e,chartConfig:t,displayConfig:n={},height:r=`100%`,colorPalette:i}){let{t:a}=fg(),[o,s]=(0,y.useState)(28),[c,l]=(0,y.useState)(0),u=(0,y.useRef)(null),d=(0,y.useRef)(null),f=LH();if((0,y.useEffect)(()=>{let e=()=>{if(u.current){let e=u.current.getBoundingClientRect(),t=e.width,n=e.height;if(t>0&&n>0){let e=t/8,r=n/5;s(Math.max(18,Math.min(Math.min(e,r),80)))}}if(d.current){let e=d.current.getBoundingClientRect();l(e.width)}},t=setTimeout(e,100),n=new ResizeObserver(()=>{clearTimeout(t),setTimeout(e,50)});return u.current&&n.observe(u.current),()=>{clearTimeout(t),n.disconnect()}},[e,t]),!e||e.length===0)return(0,J.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,style:{height:r===`100%`?`100%`:r,minHeight:r===`100%`?`200px`:void 0},children:(0,J.jsxs)(`div`,{className:`dc:text-center text-dc-text-muted`,children:[(0,J.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:a(`chart.runtime.noData`)}),(0,J.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:a(`chart.runtime.noDataHint.kpi`)})]})});let p=Vje(t?.yAxis);if(p.length===0)return(0,J.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,style:{height:r===`100%`?`100%`:r,minHeight:r===`100%`?`200px`:void 0,backgroundColor:`var(--dc-danger-bg)`,color:`var(--dc-danger)`,borderColor:`var(--dc-danger-border)`},children:(0,J.jsxs)(`div`,{className:`dc:text-center`,children:[(0,J.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:a(`chart.runtime.configError`)}),(0,J.jsx)(`div`,{className:`dc:text-xs`,children:a(`chart.runtime.configErrorHint.noMeasures`)})]})});let m=p[0],h=Hje(e,m);if(h.length===0)return(0,J.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,style:{height:r===`100%`?`100%`:r,minHeight:r===`100%`?`200px`:void 0,backgroundColor:`var(--dc-warning-bg)`,color:`var(--dc-warning)`,borderColor:`var(--dc-warning-border)`},children:(0,J.jsxs)(`div`,{className:`dc:text-center`,children:[(0,J.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:a(`chart.runtime.noValidData`)}),(0,J.jsx)(`div`,{className:`dc:text-xs`,children:a(`chart.runtime.noValidDataHint.kpiText`)})]})});let{mainValue:g,min:_,max:v,showStats:b}=Uje(h),x=e=>Wje(e,{formatValue:n.formatValue,decimals:n.decimals}),S=Gje(n.template||"${fieldLabel}: ${value}",{value:g,valueField:m,fieldLabel:f(m),min:_,max:v,count:h.length,formatNumber:x}),C=Kje(n.valueColorIndex,i);return(0,J.jsxs)(`div`,{ref:u,className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full dc:h-full dc:p-4`,style:{height:r===`100%`?`100%`:r,minHeight:r===`100%`?`200px`:void 0},children:[(0,J.jsx)(`div`,{ref:d,className:`dc:font-bold dc:leading-tight dc:text-center`,style:{fontSize:`${o}px`,color:C},children:S}),b&&_!==null&&v!==null&&(0,J.jsx)(`div`,{className:`dc:mt-4`,children:(0,J.jsx)(JU,{values:h,min:_,max:v,color:C,formatValue:x,height:24,width:c||200})})]})});function iW({measureCount:e,dimensionCount:t}){return e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:t<1?{available:!1,reason:`chart.availability.requiresDimension`}:{available:!0}}function aW({measureCount:e}){return e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:{available:!0}}function oW(e=`chart.option.valueFormat.description`){return{key:`leftYAxisFormat`,label:`chart.option.valueFormat.label`,type:`axisFormat`,description:e}}function sW(e){return{key:`stackType`,label:`chart.option.stacking.label`,type:`select`,defaultValue:`none`,options:[{value:`none`,label:`chart.option.accentBorder.none`},{value:`normal`,label:`chart.option.stacking.stacked`},{value:`percent`,label:`chart.option.stacking.percent`}],description:e}}function cW(e=!0){return{key:`showPoints`,label:`chart.option.showPoints.label`,type:`boolean`,defaultValue:e,description:`chart.option.showPoints.description`}}var lW,uW,dW,fW,pW,mW,hW,gW=o((()=>{lW={key:`target`,label:`chart.option.target.label`,type:`string`,placeholder:`e.g., 100 or 50,75 for spread`,description:`chart.option.target.description`},uW={key:`connectNulls`,label:`chart.option.connectNulls.label`,type:`boolean`,defaultValue:!1,description:`chart.option.connectNulls.description`},dW={key:`fillMissingDates`,label:`chart.option.fillMissingDates.label`,type:`buttonGroup`,defaultValue:`auto`,options:[{value:`auto`,label:`chart.option.fillMissingDates.auto`},{value:!0,label:`chart.option.fillMissingDates.on`},{value:!1,label:`chart.option.fillMissingDates.off`}],description:`chart.option.fillMissingDates.description`},fW={key:`leftYAxisFormat`,label:`chart.option.leftYAxisFormat.label`,type:`axisFormat`,description:`chart.option.leftYAxisFormat.description`},pW={key:`rightYAxisFormat`,label:`chart.option.rightYAxisFormat.label`,type:`axisFormat`,description:`chart.option.rightYAxisFormat.description`},mW={key:`layout`,label:`chart.option.kpiLayout.label`,type:`buttonGroup`,defaultValue:`auto`,options:[{value:`auto`,label:`chart.option.kpiLayout.auto`},{value:`compact`,label:`chart.option.kpiLayout.compact`}],description:`chart.option.kpiLayout.description`},hW={key:`showSummary`,label:`chart.option.showSummary.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showSummary.description`}})),Jje=c({barChartConfig:()=>_W}),_W,vW=o((()=>{gW(),_W={clickableElements:{bar:!0},dropZones:[{key:`xAxis`,label:`chart.dropZone.xAxis.label`,description:`chart.dropZone.xAxis.description`,mandatory:!1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.bar.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.dropZone.yAxis.label`,description:`chart.configText.measures_for_bar_heights`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.bar.dropZone.yAxis.empty`,enableDualAxis:!0},{key:`series`,label:`chart.dropZone.series.label`,description:`chart.dropZone.series.description`,mandatory:!1,acceptTypes:[`dimension`],emptyText:`chart.bar.dropZone.series.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`showAllXLabels`,`hideHeader`],displayOptionsConfig:[sW(`chart.configText.how_to_stack_multiple_bar_series`),lW,dW,fW,pW]}})),Yje=c({lineChartConfig:()=>yW}),yW,bW=o((()=>{gW(),yW={clickableElements:{point:!0},dropZones:[{key:`xAxis`,label:`chart.configText.x_axis_time_categories`,description:`chart.configText.time_dimensions_or_dimensions_for_x_axis`,mandatory:!0,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.line.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.dropZone.yAxis.label`,description:`chart.configText.measures_for_line_values`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.line.dropZone.yAxis.empty`,enableDualAxis:!0},{key:`series`,label:`chart.configText.series_multiple_lines`,description:`chart.configText.dimensions_to_create_separate_lines`,mandatory:!1,acceptTypes:[`dimension`],emptyText:`chart.line.dropZone.series.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`showAllXLabels`,`hideHeader`],displayOptionsConfig:[hW,cW(),uW,dW,lW,{key:`priorPeriodStyle`,label:`chart.option.priorPeriodStyle.label`,type:`select`,defaultValue:`dashed`,options:[{value:`dashed`,label:`chart.option.priorPeriodStyle.dashed`},{value:`dotted`,label:`chart.option.priorPeriodStyle.dotted`},{value:`solid`,label:`chart.option.priorPeriodStyle.solid`}],description:`chart.option.priorPeriodStyle.description`},{key:`priorPeriodOpacity`,label:`chart.option.priorPeriodOpacity.label`,type:`number`,defaultValue:.5,min:.1,max:1,step:.1,description:`chart.option.priorPeriodOpacity.description`},fW,pW]}})),Xje=c({areaChartConfig:()=>xW}),xW,SW=o((()=>{gW(),xW={dropZones:[{key:`xAxis`,label:`chart.configText.x_axis_time_categories`,description:`chart.configText.time_dimensions_or_dimensions_for_x_axis`,mandatory:!0,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.area.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.dropZone.yAxis.label`,description:`chart.configText.measures_for_area_values`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.area.dropZone.yAxis.empty`,enableDualAxis:!0},{key:`series`,label:`chart.configText.series_stack_areas`,description:`chart.configText.dimensions_to_create_stacked_areas`,mandatory:!1,acceptTypes:[`dimension`],emptyText:`chart.area.dropZone.series.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`showAllXLabels`,`hideHeader`],displayOptionsConfig:[hW,cW(!1),sW(`chart.configText.how_to_stack_multiple_area_series`),uW,dW,lW,fW,pW]}})),Zje=c({pieChartConfig:()=>CW}),CW,wW=o((()=>{gW(),CW={clickableElements:{slice:!0},dropZones:[{key:`xAxis`,label:`chart.configText.categories`,description:`chart.configText.dimension_for_pie_slices`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.pie.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.values`,description:`chart.configText.measure_for_slice_sizes`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.pie.dropZone.yAxis.empty`}],displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],displayOptionsConfig:[{key:`innerRadius`,label:`chart.option.innerRadius.label`,type:`select`,description:`chart.configText.hollow_center_size_0_percent_solid_pie_higher_donut_style`,defaultValue:`0%`,options:[{value:`0%`,label:`chart.configText.none_pie`},{value:`20%`,label:`chart.configText.20_percent`},{value:`40%`,label:`chart.configText.40_percent`},{value:`60%`,label:`chart.configText.60_percent`},{value:`80%`,label:`chart.configText.80_percent`}]},oW()]}})),Qje=c({scatterChartConfig:()=>TW}),TW,EW=o((()=>{TW={dropZones:[{key:`xAxis`,label:`chart.runtime.axisFormat.xAxis`,description:`chart.configText.measure_or_dimension_for_x_position`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`chart.scatter.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.y_axis`,description:`chart.configText.measure_for_y_position`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.scatter.dropZone.yAxis.empty`},{key:`series`,label:`chart.configText.series_color_groups`,description:`chart.configText.dimension_to_color_points_by_category`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.scatter.dropZone.series.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`hideHeader`],displayOptionsConfig:[{key:`xAxisFormat`,label:`chart.option.xAxisFormat.label`,type:`axisFormat`,description:`chart.option.xAxisFormat.description`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.option.yAxisFormat.description`}]}})),$je=c({bubbleChartConfig:()=>DW}),DW,OW=o((()=>{DW={dropZones:[{key:`xAxis`,label:`chart.runtime.axisFormat.xAxis`,description:`chart.configText.horizontal_axis_position`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`chart.bubble.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.y_axis`,description:`chart.configText.vertical_axis_position`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.bubble.dropZone.yAxis.empty`},{key:`sizeField`,label:`chart.configText.bubble_radius`,description:`chart.configText.size_of_bubbles_based_on_this_measure`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.bubble.dropZone.sizeField.empty`},{key:`series`,label:`chart.configText.bubble_labels`,description:`chart.configText.field_to_use_for_bubble_labels_and_identification`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.bubble.dropZone.series.empty`},{key:`colorField`,label:`chart.configText.bubble_colour`,description:`chart.configText.color_bubbles_by_this_field_optional`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`,`measure`],emptyText:`chart.bubble.dropZone.colorField.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`minBubbleSize`,`maxBubbleSize`,`bubbleOpacity`,`hideHeader`],displayOptionsConfig:[{key:`xAxisFormat`,label:`chart.option.xAxisFormat.label`,type:`axisFormat`,description:`chart.option.xAxisFormat.description`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_y_axis_and_values`}]}})),eMe=c({radarChartConfig:()=>kW}),kW,AW=o((()=>{gW(),kW={dropZones:[{key:`xAxis`,label:`chart.configText.axes_categories`,description:`chart.configText.dimensions_for_radar_axes`,mandatory:!0,acceptTypes:[`dimension`],emptyText:`chart.radar.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.values`,description:`chart.configText.measures_for_radar_values`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.radar.dropZone.yAxis.empty`},{key:`series`,label:`chart.configText.series_multiple_shapes`,description:`chart.configText.dimensions_to_create_multiple_radar_shapes`,mandatory:!1,acceptTypes:[`dimension`],emptyText:`chart.radar.dropZone.series.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`hideHeader`],displayOptionsConfig:[oW()]}})),tMe=c({radialBarChartConfig:()=>jW}),jW,MW=o((()=>{gW(),jW={dropZones:[{key:`xAxis`,label:`chart.configText.categories`,description:`chart.configText.dimensions_for_radial_segments`,mandatory:!0,acceptTypes:[`dimension`],emptyText:`chart.radialBar.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.values`,description:`chart.configText.measures_for_radial_bar_lengths`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.radialBar.dropZone.yAxis.empty`}],displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],displayOptionsConfig:[oW()]}})),nMe=c({treemapChartConfig:()=>NW}),NW,PW=o((()=>{gW(),NW={dropZones:[{key:`xAxis`,label:`chart.configText.categories`,description:`chart.configText.dimensions_for_treemap_rectangles`,mandatory:!0,acceptTypes:[`dimension`],emptyText:`chart.treemap.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.size`,description:`chart.configText.measure_for_rectangle_sizes`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.treemap.dropZone.yAxis.empty`},{key:`series`,label:`chart.configText.color_groups`,description:`chart.configText.dimension_to_color_rectangles_by_category`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.treemap.dropZone.series.empty`}],displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],displayOptionsConfig:[oW(`chart.configText.number_formatting_for_size_values`)],clickableElements:{cell:!0}}})),rMe=c({dataTableConfig:()=>FW}),FW,IW=o((()=>{FW={dropZones:[{key:`xAxis`,label:`chart.configText.columns`,description:`chart.configText.all_fields_to_display_as_columns`,mandatory:!1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`chart.table.dropZone.xAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`leftYAxisFormat`,label:`chart.option.valueFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_numeric_values`}]}})),iMe=c({recordsTableConfig:()=>LW}),LW,RW=o((()=>{LW={dropZones:[{key:`columns`,label:`chart.recordsTable.dropZone.columns.label`,description:`chart.recordsTable.dropZone.columns.description`,mandatory:!1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`chart.recordsTable.dropZone.columns.empty`},{key:`hiddenColumns`,label:`chart.recordsTable.dropZone.hiddenColumns.label`,description:`chart.recordsTable.dropZone.hiddenColumns.description`,mandatory:!1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`chart.recordsTable.dropZone.hiddenColumns.empty`,excludeFromInference:!0}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`columnFormats`,label:`chart.recordsTable.option.columnFormats.label`,type:`columnFormats`,description:`chart.recordsTable.option.columnFormats.description`,progressBands:!0},{key:`rowLink`,label:`chart.recordsTable.option.rowLink.label`,type:`rowLink`,description:`chart.recordsTable.option.rowLink.description`},{key:`pageSize`,label:`chart.recordsTable.option.pageSize.label`,type:`select`,defaultValue:25,description:`chart.recordsTable.option.pageSize.description`,options:[{value:25,label:`chart.recordsTable.option.pageSize.option.25`},{value:50,label:`chart.recordsTable.option.pageSize.option.50`},{value:100,label:`chart.recordsTable.option.pageSize.option.100`}]}],clickableElements:{row:!0},recordGrain:!0}})),aMe=c({activityGridChartConfig:()=>zW}),zW,BW=o((()=>{zW={dropZones:[{key:`dateField`,label:`chart.configText.time_dimension`,description:`chart.configText.time_field_that_determines_grid_structure_granularity_affects_layout`,mandatory:!0,maxItems:1,acceptTypes:[`timeDimension`],emptyText:`chart.activityGrid.dropZone.dateField.empty`},{key:`valueField`,label:`chart.configText.activity_measure`,description:`chart.configText.measure_used_for_activity_intensity_color_coding`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.activityGrid.dropZone.valueField.empty`}],displayOptions:[`showLabels`,`showTooltip`,`hideHeader`],displayOptionsConfig:[{key:`fitToWidth`,label:`chart.option.fitToWidth.label`,type:`boolean`,defaultValue:!1,description:`chart.option.fitToWidth.description`}],validate:e=>{let{dateField:t,valueField:n}=e;return!t||Array.isArray(t)&&t.length===0?{isValid:!1,message:`chart.activityGrid.validation.timeDimensionRequired`}:!n||Array.isArray(n)&&n.length===0?{isValid:!1,message:`chart.activityGrid.validation.measureRequired`}:{isValid:!0}},clickableElements:{cell:!0}}})),oMe=c({kpiNumberConfig:()=>VW}),VW,HW=o((()=>{gW(),VW={dropZones:[{key:`yAxis`,label:`chart.configText.value`,description:`chart.configText.measure_to_display_as_kpi_number`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.kpiNumber.dropZone.yAxis.empty`}],displayOptionsConfig:[mW,{key:`target`,label:`chart.runtime.tooltip.targetValue`,type:`string`,placeholder:`e.g., 100`,description:`chart.configText.target_value_to_compare_against_first_value_used_if_multiple_provided`},{key:`prefix`,label:`chart.option.prefix.label`,type:`string`,placeholder:`e.g., $, €, #`,description:`chart.option.prefix.description`},{key:`suffix`,label:`chart.option.suffix.label`,type:`string`,placeholder:`e.g., %, units, items`,description:`chart.option.suffix.description`},{key:`decimals`,label:`chart.option.decimals.label`,type:`number`,defaultValue:0,min:0,max:10,step:1,description:`chart.option.decimals.description`},{key:`valueColorIndex`,label:`chart.configText.value_color`,type:`paletteColor`,defaultValue:0,description:`chart.configText.color_from_the_dashboard_palette_for_the_kpi_value_text`},{key:`useLastCompletePeriod`,label:`chart.option.useLastCompletePeriod.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.exclude_current_incomplete_period_from_aggregation_e_g_partial_week_mont`},{key:`skipLastPeriod`,label:`chart.option.skipLastPeriod.label`,type:`boolean`,defaultValue:!1,description:`chart.option.skipLastPeriod.description`}],displayOptions:[`hideHeader`]}})),sMe=c({kpiDeltaConfig:()=>UW}),UW,WW=o((()=>{gW(),UW={dropZones:[{key:`yAxis`,label:`chart.configText.value`,description:`chart.configText.measure_to_track_changes_for`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.kpiDelta.dropZone.yAxis.empty`},{key:`xAxis`,label:`chart.configText.dimension_optional`,description:`chart.configText.dimension_for_ordering_data_typically_time`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.kpiDelta.dropZone.xAxis.empty`}],displayOptionsConfig:[mW,{key:`showBaseline`,label:`chart.option.showBaseline.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showBaseline.description`},{key:`prefix`,label:`chart.option.prefix.label`,type:`string`,placeholder:`e.g., $, €, #`,description:`chart.option.prefix.description`},{key:`suffix`,label:`chart.option.suffix.label`,type:`string`,placeholder:`e.g., %, units, items`,description:`chart.option.suffix.description`},{key:`decimals`,label:`chart.option.decimals.label`,type:`number`,defaultValue:1,min:0,max:10,step:1,description:`chart.option.decimals.description`},{key:`positiveColorIndex`,label:`chart.configText.positive_change_color`,type:`paletteColor`,defaultValue:2,description:`chart.configText.color_for_positive_changes_increases`},{key:`negativeColorIndex`,label:`chart.configText.negative_change_color`,type:`paletteColor`,defaultValue:3,description:`chart.configText.color_for_negative_changes_decreases`},{key:`showHistogram`,label:`chart.option.showHistogram.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showHistogram.description`},{key:`useLastCompletePeriod`,label:`chart.option.useLastCompletePeriod.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.exclude_current_incomplete_period_from_delta_calculation_e_g_partial_wee`},{key:`skipLastPeriod`,label:`chart.option.skipLastPeriod.label`,type:`boolean`,defaultValue:!1,description:`chart.option.skipLastPeriod.description`}],displayOptions:[`hideHeader`],validate:e=>!e.yAxis||Array.isArray(e.yAxis)&&e.yAxis.length===0?{isValid:!1,message:`chart.kpiDelta.validation.measureRequired`}:{isValid:!0}}})),cMe=c({kpiTextConfig:()=>GW}),GW,KW=o((()=>{GW={dropZones:[{key:`yAxis`,label:`chart.configText.value`,description:`chart.configText.measure_to_display_in_the_kpi_text_template`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.kpiText.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`template`,label:`chart.configText.text_template`,type:`string`,placeholder:"e.g., Total Revenue: ${value}",description:`chart.configText.template_for_displaying_the_text_use_value_to_insert_the_measure_value`},{key:`decimals`,label:`chart.option.decimals.label`,type:`number`,defaultValue:0,min:0,max:10,step:1,description:`chart.configText.number_of_decimal_places_to_display_for_numeric_values`},{key:`valueColorIndex`,label:`chart.configText.value_color`,type:`paletteColor`,defaultValue:0,description:`chart.configText.color_from_the_dashboard_palette_for_the_kpi_value_text`}],displayOptions:[`hideHeader`]}})),lMe=c({markdownConfig:()=>qW}),qW,JW=o((()=>{qW={skipQuery:!0,dropZones:[],displayOptionsConfig:[{key:`content`,label:`chart.configText.markdown_content`,type:`string`,placement:`chart`,rows:18,syntax:`markdownTemplate`,placeholder:`chart.markdown.contentPlaceholder`,description:`chart.markdown.contentDescription`,docsUrl:`https://knap.md/variables`,docsLabel:`chart.markdown.contentDocsLabel`},{key:`accentColorIndex`,label:`chart.configText.accent_color`,type:`paletteColor`,defaultValue:0,description:`chart.configText.color_from_the_dashboard_palette_for_headers_bullets_and_links`},{key:`fontSize`,label:`chart.option.fontSize.label`,type:`select`,defaultValue:`medium`,options:[{value:`small`,label:`chart.option.fontSize.small`},{value:`medium`,label:`chart.option.fontSize.medium`},{value:`large`,label:`chart.option.fontSize.large`}],description:`chart.configText.overall_text_size_for_the_markdown_content`},{key:`alignment`,label:`chart.option.alignment.label`,type:`select`,defaultValue:`left`,options:[{value:`left`,label:`chart.option.accentBorder.left`},{value:`center`,label:`chart.option.alignment.center`},{value:`right`,label:`chart.option.alignment.right`}],description:`chart.configText.horizontal_alignment_of_the_markdown_content`},{key:`hideHeader`,label:`chart.option.hideHeader.label`,type:`boolean`,defaultValue:!0,description:`chart.option.hideHeader.description`},{key:`transparentBackground`,label:`chart.option.transparentBackground.label`,type:`boolean`,defaultValue:!1,description:`chart.option.transparentBackground.description`},{key:`autoHeight`,label:`chart.option.autoHeight.label`,type:`boolean`,defaultValue:!0,description:`chart.option.autoHeight.description`},{key:`accentBorder`,label:`chart.option.accentBorder.label`,type:`select`,defaultValue:`none`,options:[{value:`none`,label:`chart.option.accentBorder.none`},{value:`left`,label:`chart.option.accentBorder.left`},{value:`top`,label:`chart.option.accentBorder.top`},{value:`bottom`,label:`chart.option.accentBorder.bottom`}],description:`chart.configText.add_an_accent_colored_border_on_one_side_of_the_content`}]}})),uMe=c({funnelChartConfig:()=>YW}),YW,XW=o((()=>{YW={dropZones:[{key:`xAxis`,label:`chart.configText.step_name`,description:`chart.configText.step_names_auto_populated_from_funnel_steps`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.funnel.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.step_count`,description:`chart.configText.count_at_each_step_auto_calculated`,mandatory:!1,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.funnel.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`funnelStyle`,label:`chart.option.funnelStyle.label`,type:`buttonGroup`,defaultValue:`bars`,options:[{value:`bars`,label:`chart.option.funnelStyle.bars`},{value:`funnel`,label:`chart.option.funnelStyle.funnel`}],description:`chart.configText.visualization_style`},{key:`funnelOrientation`,label:`chart.option.funnelOrientation.label`,type:`buttonGroup`,defaultValue:`horizontal`,options:[{value:`horizontal`,label:`chart.option.funnelOrientation.horizontal`},{value:`vertical`,label:`chart.option.funnelOrientation.vertical`}]},{key:`hideSummaryFooter`,label:`chart.option.hideSummaryFooter.label`,type:`boolean`,defaultValue:!1,description:`chart.option.hideSummaryFooter.description`},{key:`showFunnelConversion`,label:`chart.option.showConversion.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showConversion.description`},{key:`showFunnelAvgTime`,label:`chart.option.showAvgTime.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showAvgTime.description`},{key:`showFunnelMedianTime`,label:`chart.option.showMedianTime.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showMedianTime.description`},{key:`showFunnelP90Time`,label:`chart.option.showP90Time.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showP90Time.description`}]}})),dMe=c({sankeyChartConfig:()=>ZW}),ZW,QW=o((()=>{ZW={dropZones:[{key:`xAxis`,label:`chart.configText.event_type`,description:`chart.configText.event_dimension_that_categorizes_flow_nodes`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.sankey.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.flow_count`,description:`chart.configText.count_of_entities_following_each_path`,mandatory:!1,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.sankey.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`linkOpacity`,label:`chart.option.linkOpacity.label`,type:`buttonGroup`,defaultValue:`0.5`,options:[{value:`0.3`,label:`chart.option.linkOpacity.light`},{value:`0.5`,label:`chart.option.fontSize.medium`},{value:`0.7`,label:`chart.option.linkOpacity.dark`}],description:`chart.configText.opacity_of_flow_links`},{key:`showNodeLabels`,label:`chart.option.showNodeLabels.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showNodeLabels.description`},{key:`hideSummaryFooter`,label:`chart.option.hideSummaryFooter.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.hide_the_statistics_footer_below_the_chart`}]}})),fMe=c({sunburstChartConfig:()=>$W}),$W,eG=o((()=>{$W={dropZones:[{key:`xAxis`,label:`chart.configText.event_type`,description:`chart.configText.event_dimension_that_categorizes_flow_nodes`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.sunburst.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.flow_count`,description:`chart.configText.count_of_entities_following_each_path`,mandatory:!1,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.sunburst.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`innerRadius`,label:`chart.option.innerRadius.label`,type:`number`,defaultValue:40,min:0,max:100,step:10,description:`chart.configText.size_of_the_center_hole_0_for_full_circle`},{key:`hideSummaryFooter`,label:`chart.option.hideSummaryFooter.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.hide_the_statistics_footer_below_the_chart`}]}})),pMe=c({heatmapChartConfig:()=>tG}),tG,nG=o((()=>{tG={dropZones:[{key:`xAxis`,label:`chart.configText.columns_x_axis`,description:`chart.configText.dimension_for_column_categories`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.heatmap.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.rows_y_axis`,description:`chart.configText.dimension_for_row_categories`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.heatmap.dropZone.yAxis.empty`},{key:`valueField`,label:`chart.configText.value_color_intensity`,description:`chart.configText.measure_that_determines_cell_color`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.heatmap.dropZone.valueField.empty`}],displayOptions:[`showLegend`,`showTooltip`],displayOptionsConfig:[{key:`showLabels`,label:`chart.option.showLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showLabels.description`},{key:`cellShape`,label:`chart.option.cellShape.label`,type:`select`,defaultValue:`rect`,options:[{value:`rect`,label:`chart.option.cellShape.rectangle`},{value:`circle`,label:`chart.option.cellShape.circle`}]},{key:`xAxisFormat`,label:`chart.option.xAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_x_axis_labels`},{key:`yAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_y_axis_labels`},{key:`valueFormat`,label:`chart.option.valueFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_cell_values_and_legend`}],validate:e=>e.xAxis?.length?e.yAxis?.length?e.valueField?.length?{isValid:!0}:{isValid:!1,message:`chart.heatmap.validation.valueRequired`}:{isValid:!1,message:`chart.heatmap.validation.yAxisRequired`}:{isValid:!1,message:`chart.heatmap.validation.xAxisRequired`}}})),mMe=c({retentionHeatmapConfig:()=>rG}),rG,iG=o((()=>{rG={dropZones:[],displayOptionsConfig:[{key:`showLegend`,label:`chart.option.showLegend.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.show_the_color_intensity_legend`},{key:`showTooltip`,label:`chart.option.showTooltip.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showTooltip.description`}]}})),hMe=c({retentionCombinedConfig:()=>aG}),aG,oG=o((()=>{aG={dropZones:[],displayOptionsConfig:[{key:`retentionDisplayMode`,label:`chart.option.retentionDisplayMode.label`,type:`select`,defaultValue:`line`,options:[{value:`line`,label:`chart.option.retentionDisplayMode.lineChart`},{value:`heatmap`,label:`chart.option.retentionDisplayMode.heatmapTable`},{value:`combined`,label:`chart.option.retentionDisplayMode.combined`}],description:`chart.configText.choose_how_to_visualize_retention_data`},{key:`showLegend`,label:`chart.option.showLegend.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.show_the_legend_for_breakdown_segments`},{key:`showGrid`,label:`chart.option.showGrid.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showGrid.description`},{key:`showTooltip`,label:`chart.option.showTooltip.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showTooltip.description`}]}})),gMe=c({boxPlotChartConfig:()=>sG}),sG,cG=o((()=>{sG={displayOptions:[`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.configText.x_axis_groups`,description:`chart.configText.dimension_to_group_boxes_by_e_g_symbol_platform`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.boxPlot.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.y_axis_measures`,description:`chart.configText.drop_1_measure_for_auto_mode_3_for_avg_stddev_median_mode_or_5_for_min_q`,mandatory:!0,maxItems:5,acceptTypes:[`measure`],emptyText:`chart.boxPlot.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_value_axis`}]}})),_Me=c({dotStripChartConfig:()=>lG}),lG,uG=o((()=>{lG={displayOptions:[`showGrid`,`showTooltip`,`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.dotStrip.dropZone.xAxis.label`,description:`chart.dotStrip.dropZone.xAxis.description`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.dotStrip.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.dotStrip.dropZone.yAxis.label`,description:`chart.dotStrip.dropZone.yAxis.description`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.dotStrip.dropZone.yAxis.empty`},{key:`series`,label:`chart.dotStrip.dropZone.series.label`,description:`chart.dotStrip.dropZone.series.description`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.dotStrip.dropZone.series.empty`}],clickableElements:{point:!0},displayOptionsConfig:[{key:`showMedianMarker`,label:`chart.option.showMedianMarker.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showMedianMarker.description`},{key:`showBandStats`,label:`chart.option.showBandStats.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showBandStats.description`},{key:`showExtremeLabels`,label:`chart.option.showExtremeLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showExtremeLabels.description`},{key:`dotSize`,label:`chart.option.dotSize.label`,type:`select`,defaultValue:`medium`,options:[{value:`small`,label:`chart.option.dotSize.small`},{value:`medium`,label:`chart.option.dotSize.medium`},{value:`large`,label:`chart.option.dotSize.large`}],description:`chart.option.dotSize.description`},{key:`bandSort`,label:`chart.option.bandSort.label`,type:`select`,defaultValue:`none`,options:[{value:`none`,label:`chart.option.bandSort.none`},{value:`valueDesc`,label:`chart.option.bandSort.valueDesc`},{value:`valueAsc`,label:`chart.option.bandSort.valueAsc`},{value:`count`,label:`chart.option.bandSort.count`}],description:`chart.option.bandSort.description`},{key:`xAxisFormat`,label:`chart.option.xAxisFormat.label`,type:`axisFormat`,description:`chart.option.xAxisFormat.description`}]}})),vMe=c({waterfallChartConfig:()=>dG}),dG,fG=o((()=>{dG={clickableElements:{bar:!0},displayOptions:[`showTooltip`,`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.dropZone.xAxis.label`,description:`chart.configText.dimension_labels_for_each_bar_segment_e_g_symbol_transaction_type`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.waterfall.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.y_axis_value`,description:`chart.configText.single_measure_whose_values_are_summed_cumulatively`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.waterfall.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`showTotal`,label:`chart.option.showTotal.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showTotal.description`},{key:`showConnectorLine`,label:`chart.option.showConnectorLine.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showConnectorLine.description`},{key:`showDataLabels`,label:`chart.option.showDataLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.configText.display_the_value_above_each_bar_segment`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_y_axis`}]}})),yMe=c({candlestickChartConfig:()=>pG}),pG,mG=o((()=>{pG={clickableElements:{bar:!0},displayOptions:[`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.configText.x_axis_time_category`,description:`chart.configText.time_dimension_or_category_for_each_candle_e_g_date_symbol`,mandatory:!0,maxItems:1,acceptTypes:[`timeDimension`,`dimension`],emptyText:`chart.candlestick.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.ohlc_measures_open_close_high_low`,description:`chart.configText.drop_2_4_measures_in_order_open_close_high_low_ohlc_mode_for_range_mode_`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.candlestick.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`rangeMode`,label:`chart.option.rangeMode.label`,type:`select`,defaultValue:`ohlc`,options:[{value:`ohlc`,label:`chart.option.rangeMode.ohlc`},{value:`range`,label:`chart.option.rangeMode.range`}],description:`chart.option.rangeMode.description`},{key:`bullColor`,label:`chart.option.bullColor.label`,type:`color`,defaultValue:`#22c55e`,description:`chart.option.bullColor.description`},{key:`bearColor`,label:`chart.option.bearColor.label`,type:`color`,defaultValue:`#ef4444`,description:`chart.option.bearColor.description`},{key:`showWicks`,label:`chart.option.showWicks.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showWicks.description`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_price_axis`}]}})),bMe=c({measureProfileChartConfig:()=>hG}),hG,gG=o((()=>{hG={displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],dropZones:[{key:`yAxis`,label:`chart.configText.measures_x_axis_order`,description:`chart.configText.add_2_or_more_measures_they_become_the_x_axis_categories_in_the_order_li`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.measureProfile.dropZone.yAxis.empty`},{key:`series`,label:`chart.configText.series_split_into_multiple_lines`,description:`chart.configText.dimension_to_split_data_into_separate_profile_lines_e_g_symbol_platform`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.measureProfile.dropZone.series.empty`}],displayOptionsConfig:[{key:`showReferenceLineAtZero`,label:`chart.option.showReferenceLineAtZero.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showReferenceLineAtZero.description`},{key:`showDataLabels`,label:`chart.option.showDataLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.configText.display_value_at_each_data_point`},{key:`showLegend`,label:`chart.option.showLegend.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.show_series_legend_only_visible_with_a_series_dimension`},{key:`lineType`,label:`chart.option.lineType.label`,type:`select`,defaultValue:`monotone`,options:[{value:`monotone`,label:`chart.option.lineType.smooth`},{value:`linear`,label:`chart.option.lineType.linear`},{value:`step`,label:`chart.option.lineType.step`}],description:`chart.option.lineType.description`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_y_axis`}]}})),xMe=c({proportionBarChartConfig:()=>_G}),_G,vG=o((()=>{_G={dropZones:[{key:`xAxis`,label:`chart.configText.category`,description:`chart.configText.dimension_to_split_the_bar_into_segments`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.proportionBar.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.value`,description:`chart.configText.measure_that_determines_each_segments_share`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.proportionBar.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`showLabels`,label:`chart.option.proportionBarLabels.label`,type:`boolean`,defaultValue:!0,description:`chart.option.proportionBarLabels.description`},{key:`showPercentages`,label:`chart.option.showPercentages.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showPercentages.description`},{key:`sortSegments`,label:`chart.option.sortSegments.label`,type:`boolean`,defaultValue:!1,description:`chart.option.sortSegments.description`},{key:`decimals`,label:`chart.option.decimals.label`,type:`number`,defaultValue:0,min:0,max:2,description:`chart.option.proportionBarDecimals.description`}],validate:e=>!e?.xAxis||Array.isArray(e.xAxis)&&e.xAxis.length===0?{isValid:!1,message:`chart.proportionBar.validation.dimensionRequired`}:!e?.yAxis||Array.isArray(e.yAxis)&&e.yAxis.length===0?{isValid:!1,message:`chart.proportionBar.validation.measureRequired`}:{isValid:!0}}})),SMe=c({gaugeChartConfig:()=>yG}),yG,bG=o((()=>{yG={clickableElements:{},displayOptions:[`hideHeader`],dropZones:[{key:`yAxis`,label:`chart.configText.value_measure`,description:`chart.configText.current_value_to_display_on_the_gauge_e_g_current_equity_margin_used`,mandatory:!0,maxItems:2,acceptTypes:[`measure`],emptyText:`chart.gauge.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`minValue`,label:`chart.option.minValue.label`,type:`number`,defaultValue:0,description:`chart.option.minValue.description`},{key:`maxValue`,label:`chart.option.maxValue.label`,type:`number`,description:`chart.option.maxValue.description`},{key:`thresholds`,label:`chart.configText.threshold_bands`,type:`thresholdBands`,description:`chart.gauge.thresholds.description`},{key:`showCenterLabel`,label:`chart.option.showCentreLabel.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showCentreLabel.description`},{key:`showPercentage`,label:`chart.option.showPercentage.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showPercentage.description`},{key:`leftYAxisFormat`,label:`chart.option.valueFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_displayed_value_and_axis_labels`}]}}));vW(),bW(),SW(),wW(),EW(),OW(),AW(),MW(),PW(),IW(),RW(),BW(),HW(),WW(),KW(),JW(),XW(),QW(),eG(),nG(),iG(),oG(),cG(),uG(),fG(),mG(),gG(),vG(),bG(),gW();var xG={packageName:`recharts`,installCommand:`npm install recharts`},SG={bar:{label:`chart.bar.label`,icon:`chartBar`,description:`chart.bar.description`,useCase:`chart.bar.useCase`,isAvailable:iW,dependencies:xG,config:async()=>(await zh(async()=>{let{barChartConfig:e}=await Promise.resolve().then(()=>(vW(),Jje));return{barChartConfig:e}},void 0,import.meta.url)).barChartConfig},line:{label:`chart.line.label`,icon:`chartLine`,description:`chart.line.description`,useCase:`chart.line.useCase`,isAvailable:iW,dependencies:xG,config:async()=>(await zh(async()=>{let{lineChartConfig:e}=await Promise.resolve().then(()=>(bW(),Yje));return{lineChartConfig:e}},void 0,import.meta.url)).lineChartConfig},area:{label:`chart.area.label`,icon:`chartArea`,description:`chart.area.description`,useCase:`chart.area.useCase`,isAvailable:iW,dependencies:xG,config:async()=>(await zh(async()=>{let{areaChartConfig:e}=await Promise.resolve().then(()=>(SW(),Xje));return{areaChartConfig:e}},void 0,import.meta.url)).areaChartConfig},pie:{label:`chart.pie.label`,icon:`chartPie`,description:`chart.pie.description`,useCase:`chart.pie.useCase`,isAvailable:iW,dependencies:xG,config:async()=>(await zh(async()=>{let{pieChartConfig:e}=await Promise.resolve().then(()=>(wW(),Zje));return{pieChartConfig:e}},void 0,import.meta.url)).pieChartConfig},scatter:{label:`chart.scatter.label`,icon:`chartScatter`,description:`chart.scatter.description`,useCase:`chart.scatter.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:e<2&&t<1?{available:!1,reason:`chart.availability.scatter`}:{available:!0},dependencies:xG,config:async()=>(await zh(async()=>{let{scatterChartConfig:e}=await Promise.resolve().then(()=>(EW(),Qje));return{scatterChartConfig:e}},void 0,import.meta.url)).scatterChartConfig},bubble:{label:`chart.bubble.label`,icon:`chartBubble`,description:`chart.bubble.description`,useCase:`chart.bubble.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<2?{available:!1,reason:`chart.availability.requiresTwoMeasures`}:t<1?{available:!1,reason:`chart.availability.bubble`}:{available:!0},config:async()=>(await zh(async()=>{let{bubbleChartConfig:e}=await Promise.resolve().then(()=>(OW(),$je));return{bubbleChartConfig:e}},void 0,import.meta.url)).bubbleChartConfig},radar:{label:`chart.radar.label`,icon:`chartRadar`,description:`chart.radar.description`,useCase:`chart.radar.useCase`,isAvailable:iW,dependencies:xG,config:async()=>(await zh(async()=>{let{radarChartConfig:e}=await Promise.resolve().then(()=>(AW(),eMe));return{radarChartConfig:e}},void 0,import.meta.url)).radarChartConfig},radialBar:{label:`chart.radialBar.label`,icon:`chartRadialBar`,description:`chart.radialBar.description`,useCase:`chart.radialBar.useCase`,isAvailable:iW,dependencies:xG,config:async()=>(await zh(async()=>{let{radialBarChartConfig:e}=await Promise.resolve().then(()=>(MW(),tMe));return{radialBarChartConfig:e}},void 0,import.meta.url)).radialBarChartConfig},treemap:{label:`chart.treemap.label`,icon:`chartTreemap`,description:`chart.treemap.description`,useCase:`chart.treemap.useCase`,isAvailable:iW,dependencies:xG,config:async()=>(await zh(async()=>{let{treemapChartConfig:e}=await Promise.resolve().then(()=>(PW(),nMe));return{treemapChartConfig:e}},void 0,import.meta.url)).treemapChartConfig},table:{label:`chart.table.label`,icon:`chartTable`,description:`chart.table.description`,useCase:`chart.table.useCase`,config:async()=>(await zh(async()=>{let{dataTableConfig:e}=await Promise.resolve().then(()=>(IW(),rMe));return{dataTableConfig:e}},void 0,import.meta.url)).dataTableConfig},recordsTable:{label:`chart.recordsTable.label`,icon:`chartRecordsTable`,description:`chart.recordsTable.description`,useCase:`chart.recordsTable.useCase`,config:async()=>(await zh(async()=>{let{recordsTableConfig:e}=await Promise.resolve().then(()=>(RW(),iMe));return{recordsTableConfig:e}},void 0,import.meta.url)).recordsTableConfig},activityGrid:{label:`chart.activityGrid.label`,icon:`chartActivityGrid`,description:`chart.activityGrid.description`,useCase:`chart.activityGrid.useCase`,isAvailable:({measureCount:e,timeDimensionCount:t})=>e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:t<1?{available:!1,reason:`chart.availability.requiresTimeDimension`}:{available:!0},config:async()=>(await zh(async()=>{let{activityGridChartConfig:e}=await Promise.resolve().then(()=>(BW(),aMe));return{activityGridChartConfig:e}},void 0,import.meta.url)).activityGridChartConfig},kpiNumber:{label:`chart.kpiNumber.label`,icon:`chartKpiNumber`,description:`chart.kpiNumber.description`,useCase:`chart.kpiNumber.useCase`,isAvailable:aW,config:async()=>(await zh(async()=>{let{kpiNumberConfig:e}=await Promise.resolve().then(()=>(HW(),oMe));return{kpiNumberConfig:e}},void 0,import.meta.url)).kpiNumberConfig},kpiDelta:{label:`chart.kpiDelta.label`,icon:`chartKpiDelta`,description:`chart.kpiDelta.description`,useCase:`chart.kpiDelta.useCase`,isAvailable:iW,config:async()=>(await zh(async()=>{let{kpiDeltaConfig:e}=await Promise.resolve().then(()=>(WW(),sMe));return{kpiDeltaConfig:e}},void 0,import.meta.url)).kpiDeltaConfig},kpiText:{label:`chart.kpiText.label`,icon:`chartKpiText`,description:`chart.kpiText.description`,useCase:`chart.kpiText.useCase`,isAvailable:aW,config:async()=>(await zh(async()=>{let{kpiTextConfig:e}=await Promise.resolve().then(()=>(KW(),cMe));return{kpiTextConfig:e}},void 0,import.meta.url)).kpiTextConfig},markdown:{label:`chart.markdown.label`,icon:`chartMarkdown`,description:`chart.markdown.description`,useCase:`chart.markdown.useCase`,config:async()=>(await zh(async()=>{let{markdownConfig:e}=await Promise.resolve().then(()=>(JW(),lMe));return{markdownConfig:e}},void 0,import.meta.url)).markdownConfig},funnel:{label:`chart.funnel.label`,icon:`chartFunnel`,description:`chart.funnel.description`,useCase:`chart.funnel.useCase`,dependencies:xG,config:async()=>(await zh(async()=>{let{funnelChartConfig:e}=await Promise.resolve().then(()=>(XW(),uMe));return{funnelChartConfig:e}},void 0,import.meta.url)).funnelChartConfig},sankey:{label:`chart.sankey.label`,icon:`chartSankey`,description:`chart.sankey.description`,useCase:`chart.sankey.useCase`,dependencies:xG,config:async()=>(await zh(async()=>{let{sankeyChartConfig:e}=await Promise.resolve().then(()=>(QW(),dMe));return{sankeyChartConfig:e}},void 0,import.meta.url)).sankeyChartConfig},sunburst:{label:`chart.sunburst.label`,icon:`chartSunburst`,description:`chart.sunburst.description`,useCase:`chart.sunburst.useCase`,dependencies:xG,config:async()=>(await zh(async()=>{let{sunburstChartConfig:e}=await Promise.resolve().then(()=>(eG(),fMe));return{sunburstChartConfig:e}},void 0,import.meta.url)).sunburstChartConfig},heatmap:{label:`chart.heatmap.label`,icon:`chartHeatmap`,description:`chart.heatmap.description`,useCase:`chart.heatmap.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:t<2?{available:!1,reason:`chart.availability.requiresTwoDimensions`}:{available:!0},dependencies:{packageName:`@nivo/heatmap`,installCommand:`npm install @nivo/heatmap`},config:async()=>(await zh(async()=>{let{heatmapChartConfig:e}=await Promise.resolve().then(()=>(nG(),pMe));return{heatmapChartConfig:e}},void 0,import.meta.url)).heatmapChartConfig},retentionHeatmap:{label:`chart.retentionHeatmap.label`,icon:`chartRetention`,description:`chart.retentionHeatmap.description`,useCase:`chart.retentionHeatmap.useCase`,config:async()=>(await zh(async()=>{let{retentionHeatmapConfig:e}=await Promise.resolve().then(()=>(iG(),mMe));return{retentionHeatmapConfig:e}},void 0,import.meta.url)).retentionHeatmapConfig},retentionCombined:{label:`chart.retentionCombined.label`,icon:`chartRetention`,description:`chart.retentionCombined.description`,useCase:`chart.retentionCombined.useCase`,config:async()=>(await zh(async()=>{let{retentionCombinedConfig:e}=await Promise.resolve().then(()=>(oG(),hMe));return{retentionCombinedConfig:e}},void 0,import.meta.url)).retentionCombinedConfig},boxPlot:{label:`chart.boxPlot.label`,icon:`chartBoxPlot`,description:`chart.boxPlot.description`,useCase:`chart.boxPlot.useCase`,isAvailable:iW,config:async()=>(await zh(async()=>{let{boxPlotChartConfig:e}=await Promise.resolve().then(()=>(cG(),gMe));return{boxPlotChartConfig:e}},void 0,import.meta.url)).boxPlotChartConfig},dotStrip:{label:`chart.dotStrip.label`,icon:`chartDotStrip`,description:`chart.dotStrip.description`,useCase:`chart.dotStrip.useCase`,isAvailable:iW,config:async()=>(await zh(async()=>{let{dotStripChartConfig:e}=await Promise.resolve().then(()=>(uG(),_Me));return{dotStripChartConfig:e}},void 0,import.meta.url)).dotStripChartConfig},waterfall:{label:`chart.waterfall.label`,icon:`chartWaterfall`,description:`chart.waterfall.description`,useCase:`chart.waterfall.useCase`,isAvailable:iW,dependencies:xG,config:async()=>(await zh(async()=>{let{waterfallChartConfig:e}=await Promise.resolve().then(()=>(fG(),vMe));return{waterfallChartConfig:e}},void 0,import.meta.url)).waterfallChartConfig},candlestick:{label:`chart.candlestick.label`,icon:`chartCandlestick`,description:`chart.candlestick.description`,useCase:`chart.candlestick.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<2?{available:!1,reason:`chart.availability.requiresTwoMeasures`}:t<1?{available:!1,reason:`chart.availability.requiresDimension`}:{available:!0},config:async()=>(await zh(async()=>{let{candlestickChartConfig:e}=await Promise.resolve().then(()=>(mG(),yMe));return{candlestickChartConfig:e}},void 0,import.meta.url)).candlestickChartConfig},measureProfile:{label:`chart.measureProfile.label`,icon:`chartMeasureProfile`,description:`chart.measureProfile.description`,useCase:`chart.measureProfile.useCase`,isAvailable:({measureCount:e})=>e<2?{available:!1,reason:`chart.availability.requiresTwoMeasures`}:{available:!0},dependencies:xG,config:async()=>(await zh(async()=>{let{measureProfileChartConfig:e}=await Promise.resolve().then(()=>(gG(),bMe));return{measureProfileChartConfig:e}},void 0,import.meta.url)).measureProfileChartConfig},proportionBar:{label:`chart.proportionBar.label`,icon:`chartProportionBar`,description:`chart.proportionBar.description`,useCase:`chart.proportionBar.useCase`,isAvailable:iW,config:async()=>(await zh(async()=>{let{proportionBarChartConfig:e}=await Promise.resolve().then(()=>(vG(),xMe));return{proportionBarChartConfig:e}},void 0,import.meta.url)).proportionBarChartConfig},gauge:{label:`chart.gauge.label`,icon:`chartGauge`,description:`chart.gauge.description`,useCase:`chart.gauge.useCase`,isAvailable:aW,config:async()=>(await zh(async()=>{let{gaugeChartConfig:e}=await Promise.resolve().then(()=>(bG(),SMe));return{gaugeChartConfig:e}},void 0,import.meta.url)).gaugeChartConfig}},CMe=new Map;function wMe(e){return CMe.get(e)??SG[e]}function TMe(e,t){return{...t,label:e.label,description:e.description,useCase:e.useCase,isAvailable:e.isAvailable}}var EMe={bar:_W,line:yW,area:xW,pie:CW,scatter:TW,bubble:DW,radar:kW,radialBar:jW,treemap:NW,table:FW,recordsTable:LW,activityGrid:zW,kpiNumber:VW,kpiDelta:UW,kpiText:GW,markdown:qW,funnel:YW,sankey:ZW,sunburst:$W,heatmap:tG,retentionHeatmap:rG,retentionCombined:aG,boxPlot:sG,dotStrip:lG,waterfall:dG,candlestick:pG,measureProfile:hG,proportionBar:_G,gauge:yG},DMe=Object.fromEntries(Object.keys(SG).map(e=>[e,TMe(SG[e],EMe[e])]));function OMe({chartType:e,packageName:t,installCommand:n,height:r=200}){let{t:i}=fg();return(0,J.jsxs)(`div`,{className:`dc-missing-dependency-fallback`,style:{height:typeof r==`number`?`${r}px`:r,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,width:`100%`,padding:`1.5rem`,textAlign:`center`,border:`1px dashed var(--dc-border, #e5e7eb)`,borderRadius:`0.5rem`,backgroundColor:`var(--dc-surface, #f9fafb)`},children:[(0,J.jsx)(`div`,{style:{fontSize:`2.5rem`,marginBottom:`1rem`},children:`📦`}),(0,J.jsx)(`h3`,{style:{fontSize:`1.125rem`,fontWeight:600,marginBottom:`0.5rem`,color:`var(--dc-text, #111827)`},children:i(`chart.runtime.missingDep.title`)}),(0,J.jsx)(`p`,{style:{fontSize:`0.875rem`,color:`var(--dc-text-secondary, #6b7280)`,marginBottom:`1rem`,maxWidth:`28rem`},children:i(`chart.runtime.missingDep.description`,{chartType:e,packageName:t})}),(0,J.jsxs)(`div`,{style:{backgroundColor:`var(--dc-surface-secondary, #f3f4f6)`,borderRadius:`0.5rem`,padding:`0.75rem 1rem`,fontFamily:`monospace`,fontSize:`0.875rem`,color:`var(--dc-text, #111827)`},children:[(0,J.jsx)(`span`,{style:{color:`var(--dc-text-muted, #9ca3af)`,userSelect:`none`},children:`$ `}),n]}),(0,J.jsx)(`p`,{style:{fontSize:`0.75rem`,color:`var(--dc-text-muted, #9ca3af)`,marginTop:`0.75rem`},children:i(`chart.runtime.missingDep.restartHint`)})]})}var kMe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m4.5 19.5l15-15m-15 0l15 15"/>`},AMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"/>`},jMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 1 1 3.536 3.536L6.5 21.036H3v-3.572z"/>`},MMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m19 7l-.867 12.142A2 2 0 0 1 16.138 21H7.862a2 2 0 0 1-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v3M4 7h16"/>`},CG={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.5 12c0-1.232.046-2.453.138-3.662a4.006 4.006 0 0 1 3.7-3.7a48.678 48.678 0 0 1 7.324 0a4.006 4.006 0 0 1 3.7 3.7c.017.22.032.441.046.662M4.5 12l-3-3m3 3l3-3m12 3c0 1.232-.046 2.453-.138 3.662a4.006 4.006 0 0 1-3.7 3.7a48.657 48.657 0 0 1-7.324 0a4.006 4.006 0 0 1-3.7-3.7c-.017-.22-.032-.441-.046-.662M19.5 12l-3 3m3-3l3 3"/>`},NMe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192c.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"/>`},PMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7v8a2 2 0 0 0 2 2h6M8 7V5a2 2 0 0 1 2-2h4.586a1 1 0 0 1 .707.293l4.414 4.414a1 1 0 0 1 .293.707V15a2 2 0 0 1-2 2h-2M8 7H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-2"/>`},FMe={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 0 0-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 0 0-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 0 0-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 0 0-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 0 0 1.066-2.573c-.94-1.543.826-3.31 2.37-2.37c.996.608 2.296.07 2.572-1.065"/><path d="M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0"/></g>`},IMe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 3c2.755 0 5.455.232 8.083.678c.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"/>`},LMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.684 13.342C8.886 12.938 9 12.482 9 12s-.114-.938-.316-1.342m0 2.684a3 3 0 1 1 0-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 1 0 5.367-2.684a3 3 0 0 0-5.367 2.684m0 9.316a3 3 0 1 0 5.368 2.684a3 3 0 0 0-5.368-2.684"/>`},wG={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m5 15l7-7l7 7"/>`},TG={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m19 9l-7 7l-7-7"/>`},RMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m15 19l-7-7l7-7"/>`},zMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 5l7 7l-7 7"/>`},BMe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m21 21l-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"/>`},VMe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"/>`},HMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 12l2 2l4-4m6 2a9 9 0 1 1-18 0a9 9 0 0 1 18 0"/>`},UMe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 10.5v3.75m-9.303 3.376C1.83 19.126 2.914 21 4.645 21h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 4.88c-.866-1.501-3.032-1.501-3.898 0L2.697 17.626ZM12 17.25h.007v.008H12v-.008Z"/>`},WMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0"/>`},GMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143z"/>`},KMe={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0"/><path d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7s-8.268-2.943-9.542-7"/></g>`},qMe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3.98 8.223A10.477 10.477 0 0 0 1.934 12c1.292 4.338 5.31 7.5 10.066 7.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 0 1-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"/>`},JMe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 9v6m4-6v6m7-3a9 9 0 1 1-18 0a9 9 0 0 1 18 0"/>`},YMe={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m14.752 11.168l-3.197-2.132A1 1 0 0 0 10 9.87v4.263a1 1 0 0 0 1.555.832l3.197-2.132a1 1 0 0 0 0-1.664"/><path d="M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0"/></g>`},XMe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"/>`},ZMe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25"/>`},QMe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h7.5c.621 0 1.125-.504 1.125-1.125m-9.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-7.5A1.125 1.125 0 0 1 12 18.375m9.75-12.75c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125m19.5 0v1.5c0 .621-.504 1.125-1.125 1.125M2.25 5.625v1.5c0 .621.504 1.125 1.125 1.125m0 0h17.25m-17.25 0h7.5c.621 0 1.125.504 1.125 1.125M3.375 8.25c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m17.25-3.75h-7.5c-.621 0-1.125.504-1.125 1.125m8.625-1.125c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M12 10.875v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125M13.125 12h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125M20.625 12c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5M12 14.625v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 14.625c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m0 1.5v-1.5m0 0c0-.621.504-1.125 1.125-1.125m0 0h7.5"/>`},$Me={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.828 10.172a4 4 0 0 0-5.656 0l-4 4a4 4 0 1 0 5.656 5.656l1.102-1.101m-.758-4.899a4 4 0 0 0 5.656 0l4-4a4 4 0 0 0-5.656-5.656l-1.1 1.1"/>`},eNe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m14 5l7 7m0 0l-7 7m7-7H3"/>`},tNe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 1 1-8 0a4 4 0 0 1 8 0"/>`},nNe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 0 1 8.646 3.646A9.003 9.003 0 0 0 12 21a9 9 0 0 0 8.354-5.646"/>`},rNe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M6.75 12a.75.75 0 1 1-1.5 0a.75.75 0 0 1 1.5 0Zm6 0a.75.75 0 1 1-1.5 0a.75.75 0 0 1 1.5 0Zm6 0a.75.75 0 1 1-1.5 0a.75.75 0 0 1 1.5 0Z"/>`},iNe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707V19a2 2 0 0 1-2 2"/>`},aNe={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18s-3.332.477-4.5 1.253"/>`},oNe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M17.25 6.75L22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3l-4.5 16.5"/>`},sNe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.098 19.902a3.75 3.75 0 0 0 5.304 0l6.401-6.402M6.75 21A3.75 3.75 0 0 1 3 17.25V4.125C3 3.504 3.504 3 4.125 3h5.25c.621 0 1.125.504 1.125 1.125v4.072M6.75 21a3.75 3.75 0 0 0 3.75-3.75V8.197M6.75 21h13.125c.621 0 1.125-.504 1.125-1.125v-5.25c0-.621-.504-1.125-1.125-1.125h-4.072M10.5 8.197l2.88-2.88a1.124 1.124 0 0 1 1.59 0l3.712 3.713c.44.44.44 1.152 0 1.59l-2.879 2.88M6.75 17.25h.008v.008H6.75v-.008Z"/>`},cNe={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 9a2 2 0 0 1 2-2h.93a2 2 0 0 0 1.664-.89l.812-1.22A2 2 0 0 1 10.07 4h3.86a2 2 0 0 1 1.664.89l.812 1.22A2 2 0 0 0 18.07 7H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><path d="M15 13a3 3 0 1 1-6 0a3 3 0 0 1 6 0"/></g>`},lNe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3"/>`},uNe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5"/>`},dNe={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"/>`},fNe={width:20,height:20,hidden:!0,body:`<path fill="currentColor" d="M1 8.25a1.25 1.25 0 1 1 2.5 0v7.5a1.25 1.25 0 1 1-2.5 0v-7.5ZM11 3V1.7c0-.268.14-.526.395-.607A2 2 0 0 1 14 3c0 .995-.182 1.948-.514 2.826c-.204.54.166 1.174.744 1.174h2.52c1.243 0 2.261 1.01 2.146 2.247a23.864 23.864 0 0 1-1.341 5.974C17.153 16.323 16.072 17 14.9 17h-3.192a3 3 0 0 1-1.341-.317l-2.734-1.366A3 3 0 0 0 6.292 15H5V8h.963c.685 0 1.258-.483 1.612-1.068a4.011 4.011 0 0 1 2.166-1.73c.432-.143.853-.386 1.011-.814c.16-.432.248-.9.248-1.388Z"/>`},pNe={width:20,height:20,hidden:!0,body:`<path fill="currentColor" d="M18.905 12.75a1.25 1.25 0 0 1-2.5 0v-7.5a1.25 1.25 0 1 1 2.5 0v7.5Zm-10 4.25v1.3c0 .268-.14.526-.395.607A2 2 0 0 1 5.905 17c0-.995.182-1.948.514-2.826c.204-.54-.166-1.174-.744-1.174h-2.52c-1.242 0-2.26-1.01-2.146-2.247c.193-2.08.652-4.082 1.341-5.974C2.752 3.678 3.833 3 5.005 3h3.192a3 3 0 0 1 1.342.317l2.733 1.366A3 3 0 0 0 13.613 5h1.292v7h-.963c-.684 0-1.258.482-1.612 1.068a4.012 4.012 0 0 1-2.165 1.73c-.433.143-.854.386-1.012.814c-.16.432-.248.9-.248 1.388Z"/>`},mNe={width:20,height:20,body:`<path fill="currentColor" d="M2 11a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm6-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1zm6-3a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1z"/>`},hNe={width:20,height:20,body:`<path fill="currentColor" fill-rule="evenodd" d="M17.707 9.293a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414 0l-7-7A1 1 0 0 1 2 10V5a3 3 0 0 1 3-3h5c.256 0 .512.098.707.293zM5 6a1 1 0 1 0 0-2a1 1 0 0 0 0 2" clip-rule="evenodd"/>`},gNe={width:20,height:20,body:`<path fill="currentColor" fill-rule="evenodd" d="M6 2a1 1 0 0 0-1 1v1H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-1V3a1 1 0 1 0-2 0v1H7V3a1 1 0 0 0-1-1m0 5a1 1 0 0 0 0 2h8a1 1 0 1 0 0-2z" clip-rule="evenodd"/>`},_Ne={width:20,height:20,hidden:!0,body:`<path fill="currentColor" fill-rule="evenodd" d="M2.5 3A1.5 1.5 0 0 0 1 4.5v4A1.5 1.5 0 0 0 2.5 10h6A1.5 1.5 0 0 0 10 8.5v-4A1.5 1.5 0 0 0 8.5 3h-6Zm11 2A1.5 1.5 0 0 0 12 6.5v7a1.5 1.5 0 0 0 1.5 1.5h4a1.5 1.5 0 0 0 1.5-1.5v-7A1.5 1.5 0 0 0 17.5 5h-4Zm-10 7A1.5 1.5 0 0 0 2 13.5v2A1.5 1.5 0 0 0 3.5 17h6a1.5 1.5 0 0 0 1.5-1.5v-2A1.5 1.5 0 0 0 9.5 12h-6Z" clip-rule="evenodd"/>`},vNe={width:20,height:20,body:`<path fill="currentColor" fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16a8 8 0 0 0 0 16M9.555 7.168A1 1 0 0 0 8 8v4a1 1 0 0 0 1.555.832l3-2a1 1 0 0 0 0-1.664z" clip-rule="evenodd"/>`},yNe={width:20,height:20,body:`<path fill="currentColor" fill-rule="evenodd" d="M16.707 5.293a1 1 0 0 1 0 1.414l-8 8a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 1.414-1.414L8 12.586l7.293-7.293a1 1 0 0 1 1.414 0" clip-rule="evenodd"/>`},bNe={width:20,height:20,body:`<path fill="currentColor" fill-rule="evenodd" d="M10 2a1 1 0 0 1 1 1v1.323l3.954 1.582l1.599-.8a1 1 0 0 1 .894 1.79l-1.233.616l1.738 5.42a1 1 0 0 1-.285 1.05A4 4 0 0 1 15 15a4 4 0 0 1-2.667-1.019a1 1 0 0 1-.285-1.05l1.715-5.349L11 6.477V16h2a1 1 0 1 1 0 2H7a1 1 0 1 1 0-2h2V6.477L6.237 7.582l1.715 5.349a1 1 0 0 1-.285 1.05A4 4 0 0 1 5 15a4 4 0 0 1-2.667-1.019a1 1 0 0 1-.285-1.05l1.738-5.42l-1.233-.617a1 1 0 0 1 .894-1.788l1.599.799L9 4.323V3a1 1 0 0 1 1-1m-5 8.275l-.818 2.55a2 2 0 0 0 1.636 0zm10 0l-.818 2.55a2 2 0 0 0 1.636 0z" clip-rule="evenodd"/>`},EG={width:20,height:20,hidden:!0,body:`<path fill="currentColor" fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16a8 8 0 0 0 0 16Zm.75-11.25a.75.75 0 0 0-1.5 0v4.59L7.3 9.24a.75.75 0 0 0-1.1 1.02l3.25 3.5a.75.75 0 0 0 1.1 0l3.25-3.5a.75.75 0 1 0-1.1-1.02l-1.95 2.1V6.75Z" clip-rule="evenodd"/>`},DG={width:20,height:20,hidden:!0,body:`<path fill="currentColor" fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16a8 8 0 0 0 0 16Zm-.75-4.75a.75.75 0 0 0 1.5 0V8.66l1.95 2.1a.75.75 0 1 0 1.1-1.02l-3.25-3.5a.75.75 0 0 0-1.1 0L6.2 9.74a.75.75 0 1 0 1.1 1.02l1.95-2.1v4.59Z" clip-rule="evenodd"/>`},OG={close:{icon:kMe,category:`action`},add:{icon:AMe,category:`action`},edit:{icon:jMe,category:`action`},delete:{icon:MMe,category:`action`},refresh:{icon:CG,category:`action`},copy:{icon:NMe,category:`action`},duplicate:{icon:PMe,category:`action`},settings:{icon:FMe,category:`action`},filter:{icon:IMe,category:`action`},share:{icon:LMe,category:`action`},expand:{icon:TG,category:`action`},collapse:{icon:wG,category:`action`},maximize:{icon:dNe,category:`action`},search:{icon:BMe,category:`action`},menu:{icon:VMe,category:`action`},run:{icon:vNe,category:`action`},check:{icon:yNe,category:`action`},link:{icon:$Me,category:`action`},eye:{icon:KMe,category:`action`},eyeOff:{icon:qMe,category:`action`},adjustments:{icon:XMe,category:`action`},desktop:{icon:ZMe,category:`action`},table:{icon:QMe,category:`action`},sun:{icon:tNe,category:`action`},moon:{icon:nNe,category:`action`},ellipsisHorizontal:{icon:rNe,category:`action`},documentText:{icon:iNe,category:`action`},bookOpen:{icon:aNe,category:`action`},codeBracket:{icon:oNe,category:`action`},swatch:{icon:sNe,category:`action`},camera:{icon:cNe,category:`action`},thumbUp:{icon:fNe,category:`action`},thumbDown:{icon:pNe,category:`action`},schemaGraph:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 20l-5.447-2.724A1 1 0 0 1 3 16.382V5.618a1 1 0 0 1 1.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0 0 21 18.382V7.618a1 1 0 0 0-.553-.894L15 4m0 13V4m0 0L9 7"/>`},category:`action`},cube:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m20 7l-8-4l-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"/>`},category:`action`},download:{icon:lNe,category:`action`},upload:{icon:uNe,category:`action`},pause:{icon:JMe,category:`action`},play:{icon:YMe,category:`action`},measure:{icon:mNe,category:`field`},dimension:{icon:hNe,category:`field`},timeDimension:{icon:gNe,category:`field`},segment:{icon:_Ne,category:`field`},chartBar:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 13a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm12-4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1zM9 5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1zM4 20h14"/>`},category:`chart`},chartLine:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 19h16M4 15l4-6l4 2l4-5l4 4"/>`},category:`chart`},chartArea:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m4 19l4-6l4 2l4-5l4 4v5zm0-7l3-4l4 2l5-6l4 4"/>`},category:`chart`},chartPie:{icon:{width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M10 3.2A9 9 0 1 0 20.8 14a1 1 0 0 0-1-1H13a2 2 0 0 1-2-2V4a.9.9 0 0 0-1-.8"/><path d="M15 3.5A9 9 0 0 1 20.5 9H16a1 1 0 0 1-1-1z"/></g>`},category:`chart`},chartScatter:{icon:{width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 3v18h18"/><path d="M7 15a2 2 0 1 0 4 0a2 2 0 1 0-4 0m4-10a2 2 0 1 0 4 0a2 2 0 1 0-4 0m5 7a2 2 0 1 0 4 0a2 2 0 1 0-4 0m5-9l-6 1.5m-.887 2.15l2.771 3.695M16 12.5l-5 2"/></g>`},category:`chart`},chartBubble:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 16a3 3 0 1 0 6 0a3 3 0 1 0-6 0m11 3a2 2 0 1 0 4 0a2 2 0 1 0-4 0M10 7.5a4.5 4.5 0 1 0 9 0a4.5 4.5 0 1 0-9 0"/>`},category:`chart`},chartRadar:{icon:{width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m12 3l9.5 7L18 21H6L2.5 10z"/><path d="m12 7.5l5.5 4L15 17H8.5l-2-5.5z"/><path d="m2.5 10l9.5 3l9.5-3"/><path d="M12 3v10l6 8M6 21l6-8"/></g>`},category:`chart`},chartRadialBar:{icon:{width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M11 12a1 1 0 1 0 2 0a1 1 0 1 0-2 0"/><path d="M15.51 15.56A5 5 0 1 0 12 17"/><path d="M18.832 17.86A9 9 0 1 0 12 21m0-9v9"/></g>`},category:`chart`},chartTreemap:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm8-2v16m-8-5h8m0-3h8m-4 0v8m0-4h4"/>`},category:`chart`},chartTable:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm0 5h18M10 3v18"/>`},category:`chart`},chartRecordsTable:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 5h8m-8 4h5m-5 6h8m-8 4h5M3 5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm0 10a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z"/>`},category:`chart`},chartActivityGrid:{icon:{width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M11.795 21H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4m-1 3v4h4"/><path d="M14 18a4 4 0 1 0 8 0a4 4 0 1 0-8 0m1-15v4M7 3v4m-4 4h16"/></g>`},category:`chart`},chartKpiNumber:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 17V7l7 10V7m4 10h5m-5-7a2.5 3 0 1 0 5 0a2.5 3 0 1 0-5 0"/>`},category:`chart`},chartKpiDelta:{icon:{width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m3 17l6-6l4 4l8-8"/><path d="M14 7h7v7"/></g>`},category:`chart`},chartKpiText:{icon:{width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 20h3m7 0h7M6.9 15h6.9m-3.6-8.7L16 20M5 20l6-16h2l7 16"/>`},category:`chart`},chartMarkdown:{icon:{width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M14 3v4a1 1 0 0 0 1 1h4"/><path d="M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2M9 9h1m-1 4h6m-6 4h6"/></g>`},category:`chart`},chartFunnel:{icon:{body:`<g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
|
195
195
|
<rect x="2" y="3" width="20" height="4" rx="1"/>
|
|
196
196
|
<rect x="4" y="10" width="16" height="4" rx="1"/>
|
|
197
197
|
<rect x="6" y="17" width="12" height="4" rx="1"/>
|