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.
Files changed (278) hide show
  1. package/dist/adapters/ActivityGridChart.config-BDe2_qYC.js +1 -0
  2. package/dist/adapters/ActivityGridChart.config-BY3cUifC.cjs +1 -0
  3. package/dist/adapters/AreaChart.config-CaLEu4WZ.cjs +1 -0
  4. package/dist/adapters/AreaChart.config-upS1qK9z.js +1 -0
  5. package/dist/adapters/BarChart.config-CSbClrlz.cjs +1 -0
  6. package/dist/adapters/BarChart.config-GlYPKS8R.js +1 -0
  7. package/dist/adapters/BoxPlotChart.config-BIxjwA1O.cjs +1 -0
  8. package/dist/adapters/BoxPlotChart.config-DybpbTEl.js +1 -0
  9. package/dist/adapters/BubbleChart.config-CREi46jt.cjs +1 -0
  10. package/dist/adapters/BubbleChart.config-Di8lOOga.js +1 -0
  11. package/dist/adapters/CandlestickChart.config-BrbgDZcn.cjs +1 -0
  12. package/dist/adapters/CandlestickChart.config-CTHDWBM7.js +1 -0
  13. package/dist/adapters/DataTable.config-BpzbJKOY.cjs +1 -0
  14. package/dist/adapters/DataTable.config-DbPDoKSt.js +1 -0
  15. package/dist/adapters/DotStripChart.config-Bkj53d85.cjs +1 -0
  16. package/dist/adapters/DotStripChart.config-Xxte1OgG.js +1 -0
  17. package/dist/adapters/FunnelChart.config-CRbPp-7K.js +1 -0
  18. package/dist/adapters/FunnelChart.config-DfaMSLui.cjs +1 -0
  19. package/dist/adapters/GaugeChart.config-CKKMCRn4.js +1 -0
  20. package/dist/adapters/GaugeChart.config-CN7S1OEB.cjs +1 -0
  21. package/dist/adapters/HeatMapChart.config-BloGhLrU.js +1 -0
  22. package/dist/adapters/HeatMapChart.config-C94iqzfw.cjs +1 -0
  23. package/dist/adapters/KpiDelta.config-CMGQIfsy.cjs +1 -0
  24. package/dist/adapters/KpiDelta.config-qC8_1W29.js +1 -0
  25. package/dist/adapters/KpiNumber.config-CnYoD9WM.js +1 -0
  26. package/dist/adapters/KpiNumber.config-jxzFzY71.cjs +1 -0
  27. package/dist/adapters/KpiText.config--11XBVEz.js +1 -0
  28. package/dist/adapters/KpiText.config-DOYHINgD.cjs +1 -0
  29. package/dist/adapters/LineChart.config-Bt6XKzQj.js +1 -0
  30. package/dist/adapters/LineChart.config-nwC-IWRL.cjs +1 -0
  31. package/dist/adapters/MarkdownChart.config-Br1jAwCf.js +1 -0
  32. package/dist/adapters/MarkdownChart.config-CeqYtwrd.cjs +1 -0
  33. package/dist/adapters/MeasureProfileChart.config-B0G_11c9.js +1 -0
  34. package/dist/adapters/MeasureProfileChart.config-_ZC5pb_I.cjs +1 -0
  35. package/dist/adapters/PieChart.config-CZc5LcmR.js +1 -0
  36. package/dist/adapters/PieChart.config-D1tFIodJ.cjs +1 -0
  37. package/dist/adapters/ProportionBarChart.config-9zHgirKR.cjs +1 -0
  38. package/dist/adapters/ProportionBarChart.config-BMIYtg7Q.js +1 -0
  39. package/dist/adapters/RadarChart.config-CYPyOMbT.js +1 -0
  40. package/dist/adapters/RadarChart.config-mPXx8Moz.cjs +1 -0
  41. package/dist/adapters/RadialBarChart.config-EzhjUjvA.cjs +1 -0
  42. package/dist/adapters/RadialBarChart.config-l9yaKru1.js +1 -0
  43. package/dist/adapters/RecordsTable.config-BNKcGGjX.cjs +1 -0
  44. package/dist/adapters/RecordsTable.config-CbtJMaVG.js +1 -0
  45. package/dist/adapters/RetentionCombinedChart.config-CtJ-q7Gr.js +1 -0
  46. package/dist/adapters/RetentionCombinedChart.config-Y47OjDeH.cjs +1 -0
  47. package/dist/adapters/RetentionHeatmap.config-BqLV6f6o.cjs +1 -0
  48. package/dist/adapters/RetentionHeatmap.config-DPNhEK1p.js +1 -0
  49. package/dist/adapters/SankeyChart.config-Dipd6fNz.cjs +1 -0
  50. package/dist/adapters/SankeyChart.config-DpK5pFy5.js +1 -0
  51. package/dist/adapters/ScatterChart.config-BfDDAH83.cjs +1 -0
  52. package/dist/adapters/ScatterChart.config-C90xKdE-.js +1 -0
  53. package/dist/adapters/SunburstChart.config-CacceE1E.cjs +1 -0
  54. package/dist/adapters/SunburstChart.config-MoFnOy0s.js +1 -0
  55. package/dist/adapters/TreeMapChart.config-BYHi-dzk.js +1 -0
  56. package/dist/adapters/TreeMapChart.config-CWSspab0.cjs +1 -0
  57. package/dist/adapters/WaterfallChart.config-CiOnjcsk.cjs +1 -0
  58. package/dist/adapters/WaterfallChart.config-TNtq-2mo.js +1 -0
  59. package/dist/adapters/{cors-headers-g45-9YKF.cjs → cors-headers-D0ofhz3k.cjs} +1 -1
  60. package/dist/adapters/{cors-headers-1y1YYuKm.js → cors-headers-DPNvO_6o.js} +4 -1
  61. package/dist/adapters/cors-headers.d.ts +10 -2
  62. package/dist/adapters/express/index.cjs +2 -2
  63. package/dist/adapters/express/index.d.ts +18 -2
  64. package/dist/adapters/express/index.js +42 -29
  65. package/dist/adapters/fastify/index.cjs +1 -1
  66. package/dist/adapters/fastify/index.js +6 -6
  67. package/dist/adapters/{handler-C3oYSaVM.cjs → handler-CRAPq8xB.cjs} +1 -1
  68. package/dist/adapters/{handler-C9ZFhsv6.js → handler-Dqe0_Uvx.js} +29 -34
  69. package/dist/adapters/hono/index.cjs +1 -1
  70. package/dist/adapters/hono/index.js +6 -6
  71. package/dist/adapters/mcp-app-html.cjs +1 -1
  72. package/dist/adapters/mcp-app-html.js +1 -1
  73. package/dist/adapters/nextjs/index.cjs +1 -1
  74. package/dist/adapters/nextjs/index.js +8 -3
  75. package/dist/cjs/adapters/cors-headers.d.ts +10 -2
  76. package/dist/cjs/adapters/express/index.d.ts +18 -2
  77. package/dist/client/charts.js +12 -12
  78. package/dist/client/chunks/{ActivityGridChart-BpA0H20k.js → ActivityGridChart-CmboSrmc.js} +2 -2
  79. package/dist/client/chunks/{ActivityGridChart-BpA0H20k.js.map → ActivityGridChart-CmboSrmc.js.map} +1 -1
  80. package/dist/client/chunks/{BubbleChart-Va-bRr3Y.js → BubbleChart-DiloeKCW.js} +2 -2
  81. package/dist/client/chunks/{BubbleChart-Va-bRr3Y.js.map → BubbleChart-DiloeKCW.js.map} +1 -1
  82. package/dist/client/chunks/{ChartStates-DV1Jtonz.js → ChartStates-oCfgZumF.js} +2 -2
  83. package/dist/client/chunks/{ChartStates-DV1Jtonz.js.map → ChartStates-oCfgZumF.js.map} +1 -1
  84. package/dist/client/chunks/{ChartSummaryHeader-DSmXm_lT.js → ChartSummaryHeader-nx-4H-in.js} +2 -2
  85. package/dist/client/chunks/{ChartSummaryHeader-DSmXm_lT.js.map → ChartSummaryHeader-nx-4H-in.js.map} +1 -1
  86. package/dist/client/chunks/{DashboardEditModal-CnbCHKtu.js → DashboardEditModal-6N8H3lXW.js} +7 -7
  87. package/dist/client/chunks/{DashboardEditModal-CnbCHKtu.js.map → DashboardEditModal-6N8H3lXW.js.map} +1 -1
  88. package/dist/client/chunks/{DataHistogram-zBz4Opmm.js → DataHistogram-DbQbA-Pi.js} +2 -2
  89. package/dist/client/chunks/{DataHistogram-zBz4Opmm.js.map → DataHistogram-DbQbA-Pi.js.map} +1 -1
  90. package/dist/client/chunks/{DotStripChart-D6o5DpPf.js → DotStripChart-HcSCkYDs.js} +4 -4
  91. package/dist/client/chunks/{DotStripChart-D6o5DpPf.js.map → DotStripChart-HcSCkYDs.js.map} +1 -1
  92. package/dist/client/chunks/{FunnelViews-DwvKEzU7.js → FunnelViews-SjgYxngb.js} +2 -2
  93. package/dist/client/chunks/{FunnelViews-DwvKEzU7.js.map → FunnelViews-SjgYxngb.js.map} +1 -1
  94. package/dist/client/chunks/{HeatMapChart-DqOZawm3.js → HeatMapChart-B9pj-KQi.js} +3 -3
  95. package/dist/client/chunks/{HeatMapChart-DqOZawm3.js.map → HeatMapChart-B9pj-KQi.js.map} +1 -1
  96. package/dist/client/chunks/{KpiDelta-CUqF9vVH.js → KpiDelta-1BfMFygT.js} +2 -2
  97. package/dist/client/chunks/{KpiDelta-CUqF9vVH.js.map → KpiDelta-1BfMFygT.js.map} +1 -1
  98. package/dist/client/chunks/{KpiText-Dply9kb4.js → KpiText-DzPeryRS.js} +2 -2
  99. package/dist/client/chunks/{KpiText-Dply9kb4.js.map → KpiText-DzPeryRS.js.map} +1 -1
  100. package/dist/client/chunks/{MarkdownChart-BlL5h7nK.js → MarkdownChart-_aif5Ye3.js} +3 -3
  101. package/dist/client/chunks/{MarkdownChart-BlL5h7nK.js.map → MarkdownChart-_aif5Ye3.js.map} +1 -1
  102. package/dist/client/chunks/{PortletAnalysisModal-CDw3uit7.js → PortletAnalysisModal-C0MLoJTP.js} +5 -5
  103. package/dist/client/chunks/{PortletAnalysisModal-CDw3uit7.js.map → PortletAnalysisModal-C0MLoJTP.js.map} +1 -1
  104. package/dist/client/chunks/{ProportionBarChart-CK0FlfTr.js → ProportionBarChart-B9Rgyhbc.js} +4 -4
  105. package/dist/client/chunks/{ProportionBarChart-CK0FlfTr.js.map → ProportionBarChart-B9Rgyhbc.js.map} +1 -1
  106. package/dist/client/chunks/{RecordsTable-DURm8ypj.js → RecordsTable-DRovI83Z.js} +4 -4
  107. package/dist/client/chunks/{RecordsTable-DURm8ypj.js.map → RecordsTable-DRovI83Z.js.map} +1 -1
  108. package/dist/client/chunks/{RetentionCombinedChart-90MBVuS7.js → RetentionCombinedChart-D_vAvtIb.js} +3 -3
  109. package/dist/client/chunks/{RetentionCombinedChart-90MBVuS7.js.map → RetentionCombinedChart-D_vAvtIb.js.map} +1 -1
  110. package/dist/client/chunks/{RetentionHeatmap-ChwWtk6j.js → RetentionHeatmap-CVEmxbg9.js} +2 -2
  111. package/dist/client/chunks/{RetentionHeatmap-ChwWtk6j.js.map → RetentionHeatmap-CVEmxbg9.js.map} +1 -1
  112. package/dist/client/chunks/{SchemaVisualization-RWq1-GVI.js → SchemaVisualization-DE8WBbNZ.js} +1 -1
  113. package/dist/client/chunks/{TextPortletModal-Fvuzf3mT.js → TextPortletModal-Bg5hFfZg.js} +3 -3
  114. package/dist/client/chunks/{TextPortletModal-Fvuzf3mT.js.map → TextPortletModal-Bg5hFfZg.js.map} +1 -1
  115. package/dist/client/chunks/{analysis-builder-4WfT396_.js → analysis-builder-BMoycXCE.js} +10 -10
  116. package/dist/client/chunks/{analysis-builder-4WfT396_.js.map → analysis-builder-BMoycXCE.js.map} +1 -1
  117. package/dist/client/chunks/{analysis-builder-shared-DQCAOl8f.js → analysis-builder-shared-D1KnOXT2.js} +8 -8
  118. package/dist/client/chunks/{analysis-builder-shared-DQCAOl8f.js.map → analysis-builder-shared-D1KnOXT2.js.map} +1 -1
  119. package/dist/client/chunks/{chart-activity-grid-C0V6erx3.js → chart-activity-grid-CiqEnzs_.js} +4 -4
  120. package/dist/client/chunks/{chart-activity-grid-C0V6erx3.js.map → chart-activity-grid-CiqEnzs_.js.map} +1 -1
  121. package/dist/client/chunks/{chart-area-D93yaXt_.js → chart-area-BgKyGty4.js} +6 -6
  122. package/dist/client/chunks/{chart-area-D93yaXt_.js.map → chart-area-BgKyGty4.js.map} +1 -1
  123. package/dist/client/chunks/{chart-bar-Cm5gacSp.js → chart-bar-BKTQ6zyq.js} +5 -5
  124. package/dist/client/chunks/{chart-bar-Cm5gacSp.js.map → chart-bar-BKTQ6zyq.js.map} +1 -1
  125. package/dist/client/chunks/{chart-box-plot-XWfiRDvb.js → chart-box-plot-FD8d8S_Y.js} +2 -2
  126. package/dist/client/chunks/{chart-box-plot-XWfiRDvb.js.map → chart-box-plot-FD8d8S_Y.js.map} +1 -1
  127. package/dist/client/chunks/{chart-bubble-B5eN2Ass.js → chart-bubble-BbmLUynL.js} +4 -4
  128. package/dist/client/chunks/{chart-bubble-B5eN2Ass.js.map → chart-bubble-BbmLUynL.js.map} +1 -1
  129. package/dist/client/chunks/{chart-candlestick-DkjqHZaS.js → chart-candlestick-DeDZSkhF.js} +2 -2
  130. package/dist/client/chunks/{chart-candlestick-DkjqHZaS.js.map → chart-candlestick-DeDZSkhF.js.map} +1 -1
  131. package/dist/client/chunks/{chart-config-area-BAQ3OOX8.js → chart-config-area-CiUGyEFe.js} +2 -2
  132. package/dist/client/chunks/{chart-config-area-BAQ3OOX8.js.map → chart-config-area-CiUGyEFe.js.map} +1 -1
  133. package/dist/client/chunks/{chart-config-bar-BI_fdiHp.js → chart-config-bar-CgnxLwWK.js} +2 -2
  134. package/dist/client/chunks/{chart-config-bar-BI_fdiHp.js.map → chart-config-bar-CgnxLwWK.js.map} +1 -1
  135. package/dist/client/chunks/{chart-config-kpi-delta-B_RTgzlg.js → chart-config-kpi-delta-Bb-SdLfu.js} +2 -2
  136. package/dist/client/chunks/{chart-config-kpi-delta-B_RTgzlg.js.map → chart-config-kpi-delta-Bb-SdLfu.js.map} +1 -1
  137. package/dist/client/chunks/{chart-config-kpi-number-DJAk5ijx.js → chart-config-kpi-number-DrgZOOSX.js} +2 -2
  138. package/dist/client/chunks/{chart-config-kpi-number-DJAk5ijx.js.map → chart-config-kpi-number-DrgZOOSX.js.map} +1 -1
  139. package/dist/client/chunks/{chart-config-line-IvPzwe7J.js → chart-config-line-SZnp_5gb.js} +2 -2
  140. package/dist/client/chunks/{chart-config-line-IvPzwe7J.js.map → chart-config-line-SZnp_5gb.js.map} +1 -1
  141. package/dist/client/chunks/{chart-config-pie-XmiWQBnz.js → chart-config-pie-DgM8pgZ3.js} +2 -2
  142. package/dist/client/chunks/{chart-config-pie-XmiWQBnz.js.map → chart-config-pie-DgM8pgZ3.js.map} +1 -1
  143. package/dist/client/chunks/{chart-config-radar-DgJ6MjX5.js → chart-config-radar-Bz7e2iJu.js} +2 -2
  144. package/dist/client/chunks/{chart-config-radar-DgJ6MjX5.js.map → chart-config-radar-Bz7e2iJu.js.map} +1 -1
  145. package/dist/client/chunks/{chart-config-radial-bar-XtEyL4I7.js → chart-config-radial-bar-Cq-77n9m.js} +2 -2
  146. package/dist/client/chunks/{chart-config-radial-bar-XtEyL4I7.js.map → chart-config-radial-bar-Cq-77n9m.js.map} +1 -1
  147. package/dist/client/chunks/{chart-config-tree-map-BPkeTgk_.js → chart-config-tree-map-CoeS1GRn.js} +2 -2
  148. package/dist/client/chunks/{chart-config-tree-map-BPkeTgk_.js.map → chart-config-tree-map-CoeS1GRn.js.map} +1 -1
  149. package/dist/client/chunks/{chart-data-table-LvjMZByO.js → chart-data-table-DLwFKymv.js} +3 -3
  150. package/dist/client/chunks/{chart-data-table-LvjMZByO.js.map → chart-data-table-DLwFKymv.js.map} +1 -1
  151. package/dist/client/chunks/{chart-funnel-B_YO8r5g.js → chart-funnel-BirEW77o.js} +3 -3
  152. package/dist/client/chunks/{chart-funnel-B_YO8r5g.js.map → chart-funnel-BirEW77o.js.map} +1 -1
  153. package/dist/client/chunks/{chart-gauge-BbcdeJ5v.js → chart-gauge-C4yS5138.js} +4 -4
  154. package/dist/client/chunks/{chart-gauge-BbcdeJ5v.js.map → chart-gauge-C4yS5138.js.map} +1 -1
  155. package/dist/client/chunks/{chart-heat-map-C35lzmXC.js → chart-heat-map-DvGcfud9.js} +4 -4
  156. package/dist/client/chunks/{chart-heat-map-C35lzmXC.js.map → chart-heat-map-DvGcfud9.js.map} +1 -1
  157. package/dist/client/chunks/{chart-kpi-delta-DB4S3nWz.js → chart-kpi-delta-BeReVMyn.js} +4 -4
  158. package/dist/client/chunks/{chart-kpi-delta-DB4S3nWz.js.map → chart-kpi-delta-BeReVMyn.js.map} +1 -1
  159. package/dist/client/chunks/{chart-kpi-number-D_NrcF-S.js → chart-kpi-number-CuYpI5LO.js} +4 -4
  160. package/dist/client/chunks/{chart-kpi-number-D_NrcF-S.js.map → chart-kpi-number-CuYpI5LO.js.map} +1 -1
  161. package/dist/client/chunks/{chart-kpi-text-CnaJn4Dj.js → chart-kpi-text-D3dha9Dn.js} +5 -5
  162. package/dist/client/chunks/{chart-kpi-text-CnaJn4Dj.js.map → chart-kpi-text-D3dha9Dn.js.map} +1 -1
  163. package/dist/client/chunks/{chart-line-B2R3wnGP.js → chart-line-EzYdBDdL.js} +6 -6
  164. package/dist/client/chunks/{chart-line-B2R3wnGP.js.map → chart-line-EzYdBDdL.js.map} +1 -1
  165. package/dist/client/chunks/{chart-markdown-DGPf7O38.js → chart-markdown-B1AZcI8Y.js} +3 -3
  166. package/dist/client/chunks/{chart-markdown-DGPf7O38.js.map → chart-markdown-B1AZcI8Y.js.map} +1 -1
  167. package/dist/client/chunks/{chart-measure-profile-CYli1HVY.js → chart-measure-profile-DaL9c2jy.js} +4 -4
  168. package/dist/client/chunks/{chart-measure-profile-CYli1HVY.js.map → chart-measure-profile-DaL9c2jy.js.map} +1 -1
  169. package/dist/client/chunks/{chart-pie-CsO68YHG.js → chart-pie-Dw3W8Qjg.js} +5 -5
  170. package/dist/client/chunks/{chart-pie-CsO68YHG.js.map → chart-pie-Dw3W8Qjg.js.map} +1 -1
  171. package/dist/client/chunks/{chart-radar-C17iNC8c.js → chart-radar-BhySlY7t.js} +4 -4
  172. package/dist/client/chunks/{chart-radar-C17iNC8c.js.map → chart-radar-BhySlY7t.js.map} +1 -1
  173. package/dist/client/chunks/{chart-radial-bar-ftFfZ-ob.js → chart-radial-bar-DXc37T3I.js} +4 -4
  174. package/dist/client/chunks/{chart-radial-bar-ftFfZ-ob.js.map → chart-radial-bar-DXc37T3I.js.map} +1 -1
  175. package/dist/client/chunks/{chart-sankey-BUSpiTBN.js → chart-sankey-Xi0rQvx-.js} +2 -2
  176. package/dist/client/chunks/{chart-sankey-BUSpiTBN.js.map → chart-sankey-Xi0rQvx-.js.map} +1 -1
  177. package/dist/client/chunks/{chart-scatter-Btk1kofc.js → chart-scatter-D7mMgM6E.js} +5 -5
  178. package/dist/client/chunks/{chart-scatter-Btk1kofc.js.map → chart-scatter-D7mMgM6E.js.map} +1 -1
  179. package/dist/client/chunks/{chart-sunburst-BoaobkAb.js → chart-sunburst-t3Qb3HI7.js} +2 -2
  180. package/dist/client/chunks/{chart-sunburst-BoaobkAb.js.map → chart-sunburst-t3Qb3HI7.js.map} +1 -1
  181. package/dist/client/chunks/{chart-tree-map-DL_NEnww.js → chart-tree-map-C0EZEE0y.js} +5 -5
  182. package/dist/client/chunks/{chart-tree-map-DL_NEnww.js.map → chart-tree-map-C0EZEE0y.js.map} +1 -1
  183. package/dist/client/chunks/{chart-waterfall-FXv1uwLV.js → chart-waterfall-C4rt-_iE.js} +4 -4
  184. package/dist/client/chunks/{chart-waterfall-FXv1uwLV.js.map → chart-waterfall-C4rt-_iE.js.map} +1 -1
  185. package/dist/client/chunks/{chartComponentRegistry-D5I9EH9T.js → chartComponentRegistry-lrQVhpz2.js} +4 -4
  186. package/dist/client/chunks/{chartComponentRegistry-D5I9EH9T.js.map → chartComponentRegistry-lrQVhpz2.js.map} +1 -1
  187. package/dist/client/chunks/{chartPlugin-BHp3WRCj.js → chartPlugin-QJVPr2DC.js} +12 -12
  188. package/dist/client/chunks/{chartPlugin-BHp3WRCj.js.map → chartPlugin-QJVPr2DC.js.map} +1 -1
  189. package/dist/client/chunks/{chartRegistry-Bmubf4iX.js → chartRegistry-C6U441qz.js} +10 -15
  190. package/dist/client/chunks/chartRegistry-C6U441qz.js.map +1 -0
  191. package/dist/client/chunks/{charts-core-CII8LhSd.js → charts-core-USDYqnlX.js} +2 -2
  192. package/dist/client/chunks/{charts-core-CII8LhSd.js.map → charts-core-USDYqnlX.js.map} +1 -1
  193. package/dist/client/chunks/{charts-loader-B6kvPaGV.js → charts-loader-i4Fe3mAw.js} +32 -32
  194. package/dist/client/chunks/{charts-loader-B6kvPaGV.js.map → charts-loader-i4Fe3mAw.js.map} +1 -1
  195. package/dist/client/chunks/{providers-jeBitA9w.js → providers-Bn1iccjx.js} +4 -4
  196. package/dist/client/chunks/{providers-jeBitA9w.js.map → providers-Bn1iccjx.js.map} +1 -1
  197. package/dist/client/chunks/{schema-visualization-D8DYZY2B.js → schema-visualization-D5HMwXPe.js} +5 -5
  198. package/dist/client/chunks/{schema-visualization-D8DYZY2B.js.map → schema-visualization-D5HMwXPe.js.map} +1 -1
  199. package/dist/client/chunks/{useCubeFieldLabel-CFIn-5yX.js → useCubeFieldLabel-CYdABa_m.js} +2 -2
  200. package/dist/client/chunks/{useCubeFieldLabel-CFIn-5yX.js.map → useCubeFieldLabel-CYdABa_m.js.map} +1 -1
  201. package/dist/client/chunks/{useCubeMetaQuery-CoYktIQn.js → useCubeMetaQuery-BQRQjE8r.js} +2 -2
  202. package/dist/client/chunks/{useCubeMetaQuery-CoYktIQn.js.map → useCubeMetaQuery-BQRQjE8r.js.map} +1 -1
  203. package/dist/client/chunks/{useDirtyStateTracking-BRiIxFzz.js → useDirtyStateTracking-DvlGcFpU.js} +2 -2
  204. package/dist/client/chunks/{useDirtyStateTracking-BRiIxFzz.js.map → useDirtyStateTracking-DvlGcFpU.js.map} +1 -1
  205. package/dist/client/chunks/{useExplainAI-Cxzacka-.js → useExplainAI-DGXJ0Rcg.js} +3 -3
  206. package/dist/client/chunks/{useExplainAI-Cxzacka-.js.map → useExplainAI-DGXJ0Rcg.js.map} +1 -1
  207. package/dist/client/chunks/{useTranslation-DiobqdOI.js → useTranslation-F7BGje95.js} +2 -2
  208. package/dist/client/chunks/{useTranslation-DiobqdOI.js.map → useTranslation-F7BGje95.js.map} +1 -1
  209. package/dist/client/components.js +4 -4
  210. package/dist/client/hooks.js +3 -3
  211. package/dist/client/icons.js +1 -1
  212. package/dist/client/index.js +11 -11
  213. package/dist/client/providers.js +1 -1
  214. package/dist/client/schema.js +1 -1
  215. package/dist/client-bundle-stats.html +1 -1
  216. package/dist/mcp-app/mcp-app.html +1 -1
  217. package/dist/server/index.cjs +1 -1
  218. package/dist/server/index.js +0 -5
  219. package/package.json +1 -1
  220. package/dist/adapters/ActivityGridChart.config-BSTVDQG3.js +0 -1
  221. package/dist/adapters/ActivityGridChart.config-D2oLDJki.cjs +0 -1
  222. package/dist/adapters/AreaChart.config-CaZVNqn-.cjs +0 -1
  223. package/dist/adapters/AreaChart.config-HUr9G5_c.js +0 -1
  224. package/dist/adapters/BarChart.config-BhYrmQ9W.js +0 -1
  225. package/dist/adapters/BarChart.config-BolWSYuN.cjs +0 -1
  226. package/dist/adapters/BoxPlotChart.config-DUxYeOWV.js +0 -1
  227. package/dist/adapters/BoxPlotChart.config-DxfUywRi.cjs +0 -1
  228. package/dist/adapters/BubbleChart.config-CNkdZMOF.cjs +0 -1
  229. package/dist/adapters/BubbleChart.config-DYtZIaKF.js +0 -1
  230. package/dist/adapters/CandlestickChart.config-C9ilaGM6.js +0 -1
  231. package/dist/adapters/CandlestickChart.config-CwOt677r.cjs +0 -1
  232. package/dist/adapters/DataTable.config-Br-X1vrT.js +0 -1
  233. package/dist/adapters/DataTable.config-BvuVZ9Jj.cjs +0 -1
  234. package/dist/adapters/DotStripChart.config-Beuh7di8.js +0 -1
  235. package/dist/adapters/DotStripChart.config-DViEbi8S.cjs +0 -1
  236. package/dist/adapters/FunnelChart.config-BnjD49Wp.js +0 -1
  237. package/dist/adapters/FunnelChart.config-DQob2fw6.cjs +0 -1
  238. package/dist/adapters/GaugeChart.config-4f1JNOsS.cjs +0 -1
  239. package/dist/adapters/GaugeChart.config-sHuMiR0R.js +0 -1
  240. package/dist/adapters/HeatMapChart.config-DGkFw6IU.js +0 -1
  241. package/dist/adapters/HeatMapChart.config-DUM2mA2Z.cjs +0 -1
  242. package/dist/adapters/KpiDelta.config-C3lTkG4L.js +0 -1
  243. package/dist/adapters/KpiDelta.config-KCvw480l.cjs +0 -1
  244. package/dist/adapters/KpiNumber.config-Bbt4Jk-l.cjs +0 -1
  245. package/dist/adapters/KpiNumber.config-DpVzsbkJ.js +0 -1
  246. package/dist/adapters/KpiText.config-B_wDkvrC.cjs +0 -1
  247. package/dist/adapters/KpiText.config-BpbC9fM8.js +0 -1
  248. package/dist/adapters/LineChart.config-C0JcDxH6.js +0 -1
  249. package/dist/adapters/LineChart.config-C2Xvxvxn.cjs +0 -1
  250. package/dist/adapters/MarkdownChart.config-5EolVJ3p.js +0 -1
  251. package/dist/adapters/MarkdownChart.config-YvMw-Ve_.cjs +0 -1
  252. package/dist/adapters/MeasureProfileChart.config-DYH3OLCF.cjs +0 -1
  253. package/dist/adapters/MeasureProfileChart.config-DxwRbnb1.js +0 -1
  254. package/dist/adapters/PieChart.config-DOkkTRV7.cjs +0 -1
  255. package/dist/adapters/PieChart.config-me-OCnBU.js +0 -1
  256. package/dist/adapters/ProportionBarChart.config--rJi1BjU.cjs +0 -1
  257. package/dist/adapters/ProportionBarChart.config-DAyp-gwk.js +0 -1
  258. package/dist/adapters/RadarChart.config-BA0Qep8F.cjs +0 -1
  259. package/dist/adapters/RadarChart.config-BMusTmHu.js +0 -1
  260. package/dist/adapters/RadialBarChart.config-CpN-rQQV.js +0 -1
  261. package/dist/adapters/RadialBarChart.config-CqKrOZ31.cjs +0 -1
  262. package/dist/adapters/RecordsTable.config-D1oll1Av.cjs +0 -1
  263. package/dist/adapters/RecordsTable.config-tQAxFn8Y.js +0 -1
  264. package/dist/adapters/RetentionCombinedChart.config-CfPPOzHw.js +0 -1
  265. package/dist/adapters/RetentionCombinedChart.config-DDX-9tjM.cjs +0 -1
  266. package/dist/adapters/RetentionHeatmap.config-DzmrQBgA.cjs +0 -1
  267. package/dist/adapters/RetentionHeatmap.config-sdYuBcId.js +0 -1
  268. package/dist/adapters/SankeyChart.config-BFkz9AUb.js +0 -1
  269. package/dist/adapters/SankeyChart.config-BKbMaV-d.cjs +0 -1
  270. package/dist/adapters/ScatterChart.config-D5tbnMBt.js +0 -1
  271. package/dist/adapters/ScatterChart.config-DlDcvEw6.cjs +0 -1
  272. package/dist/adapters/SunburstChart.config-Bb8nbyu6.cjs +0 -1
  273. package/dist/adapters/SunburstChart.config-CTRj2x0y.js +0 -1
  274. package/dist/adapters/TreeMapChart.config-DB99vBJS.cjs +0 -1
  275. package/dist/adapters/TreeMapChart.config-DviTwv0e.js +0 -1
  276. package/dist/adapters/WaterfallChart.config-CEOy3p3L.js +0 -1
  277. package/dist/adapters/WaterfallChart.config-DNBLGLpY.cjs +0 -1
  278. package/dist/client/chunks/chartRegistry-Bmubf4iX.js.map +0 -1
@@ -820,7 +820,7 @@ type RetentionQuery = {
820
820
  `)}function _f(e){return e.messages.map(e=>e.content.text).join(`
821
821
 
822
822
  `)}function vf(e){return[`# Drizzle Cube Analytics Agent`,``,`You are an analytics agent that helps users explore and visualize data.`,`You have access to a semantic layer with cubes (data models) that you can query.`,``,`## Your Workflow`,``,`For EACH insight, follow this cycle — do NOT batch all queries first:`,``,"1. **Discover** available cubes using `discover_cubes` (once at the start)",`2. **For each analysis point**, repeat this cycle:`," a. `execute_query` — get the data"," b. `add_markdown` — explain the results and insight"," c. `add_portlet` — visualize the results",``,`Call all three (query → markdown → portlet) in a single turn before moving on to the next analysis.`,`Do NOT run multiple queries first and add charts later — the user sees results in real-time.`,``,`## Important Guidelines`,``,`- ALWAYS discover cubes first before attempting queries`,"- Field names MUST be EXACTLY `CubeName.fieldName` — two parts separated by a single dot. Examples: `PullRequests.count`, `Teams.name`, `Employees.department`."," WRONG patterns that WILL FAIL: `Teams.Teams.name` (double-prefixed), `PullRequests.PullRequests.count` (double-prefixed), `PullRequests` (bare cube), `Teams_count` (underscore). Use the EXACT field names from discover results — copy them verbatim, do not prefix them again.",`- Order keys MUST be one of the measures or dimensions already listed in that query. You CANNOT order by a field that is not in measures or dimensions — add it to measures first, or remove it from order.`,"- After EVERY `execute_query`, IMMEDIATELY call `add_markdown` and `add_portlet` in the SAME turn — never defer visualizations to a later turn",`- Choose the chart type from the Chart Selection Guide below — match the chart to the question being asked, and vary chart types across the notebook`,`- If a query fails, explain the error and try an alternative approach`,``,`## Output Format Rules`,``,`### CRITICAL: Always think before acting`,`- EVERY single turn MUST begin with a text message (1-2 sentences) BEFORE any tool calls. This is your #1 rule — never violate it.`,`- This applies to EVERY turn, including turns where you are adding visualizations or explanations to the notebook.`,`- Even when adding multiple charts in sequence, each turn must start with a brief status like "Now I'll chart the productivity breakdown." or "Next, let me show the department comparison."`,`- Example good turn: "Let me see what data is available." → discover_cubes`,`- Example good turn: "I'll add a chart showing the top employees." → add_markdown → add_portlet`,`- Example bad turn: (no text) → add_portlet ← NEVER do this`,``,`### Text vs Notebook`,"- ALL analysis, findings, methodology, and insights MUST go through `add_markdown` tool calls — never in your text responses",`- Your text responses must be 1-2 short sentences (under 50 words) summarizing what you are about to do next — status updates only`,`- Never use markdown formatting (headers, bullets, bold, code blocks) in text responses — plain sentences only`,`- Write text responses as a friendly analyst would — use plain business language the user understands`,`- NEVER mention internal terms like "cube", "query syntax", "field names", "measures", "dimensions", "portlet", "prefix format", or tool names in text responses`,`- Instead of "Let me correct the query syntax and retry" → "Let me fix that and try again"`,`- Instead of "I'll query the PullRequests cube" → "I'll look at the pull request data"`,`- Instead of "Adding a portlet with the results" → "Here's a chart of the results"`,``,`### Notebook content rules`,"- Before each `add_portlet`, ALWAYS call `add_markdown` first to explain WHY you are adding this visualization and what it shows","- Before calling `add_portlet`, verify the query is valid: all fields in `order` must also appear in `measures` or `dimensions`",'- Never put data tables in markdown blocks — use `add_portlet` with chartType "table" instead',"- If a chart you already added is wrong, or the user asks to change one, call `update_portlet` with its id — do NOT add a second chart of the same data","- Think out loud in the notebook: use `add_markdown` to share your reasoning at each step so users can follow along",`- NEVER use emojis in text responses or markdown content — no 📊, 📈, ✅, 🔍, etc. Write in plain, professional language.`,``,`### Analysis Depth and Layout`,``,`- A good notebook answers the question and then earns its keep: aim for 4-6 distinct insights unless the user asked something narrow.`,`- Vary the angle, not just the chart: overall level → breakdown by a dimension → trend over time → outliers or concentration → a caveat about the data.`,`- Actively look for the surprising thing: the biggest mover, the outlier, the category carrying most of the total, the segment moving against the trend. Say so in the markdown, plainly.`,`- Never add a chart that restates the previous chart with a different chart type.`,`- Structure the notebook like a short report: a scene-setting markdown block, then alternating markdown/chart pairs, then a closing block with the takeaways and what you could NOT determine from the available data.`,`- If a result is boring — flat, evenly distributed, or too few rows to mean anything — say that in the markdown and move to a different angle rather than charting it.`,``,`## Chart Selection Guide`,``,`Pick the chart that answers the question, not the one that is easiest. Consider how many rows came back, whether the values are categorical or temporal, and whether the user is comparing, trending, or summarising. Do NOT default to the first option in this table.`,``,"`execute_query` returns a `dataShape` summary alongside the rows — use it. `distinctCount` on the dimension you are charting is the single most useful signal: 2-7 favours a part-of-whole treatment, 8-25 a ranking, and above that take a top-N with `order` + `limit` or show a table instead. Widely different `min`/`max` across measures means you need `yAxisAssignment`.",``,"Only the first rows are returned to you. When `truncated` is true the chart is still correct — the portlet re-runs the query itself — but do NOT state totals, counts or extremes you cannot see; use `rowCount` and `dataShape`, or run a narrower query.",``,`| Question the user is asking | Chart |`,`|---|---|`,"| Compare discrete categories or rankings | `bar` |","| Trend over time (one or few series) | `line` |","| Trend over time showing volume/magnitude | `area` |","| Part-of-whole breakdown | `pie` (2-7 slices) or `proportionBar` (one stacked bar, easier to read) |","| Contributions summing to a total, with signed ups and downs | `waterfall` (deltas only, never raw totals) |","| Long tail or nested breakdown, many categories | `treemap` |","| Categories as compact circular progress | `radialBar` |","| Correlation between two measures | `scatter` |","| Correlation with size/colour third dimension | `bubble` |","| Intensity across two categorical dimensions | `heatmap` (set `valueField`) |","| Activity per day across weeks or months | `activityGrid` (needs a `day`-granularity time dimension; set `dateField` and `valueField`) |","| Multi-variable comparison across categories | `radar` |","| Distribution/spread, summarised | `boxPlot` |","| Distribution/spread, every individual value | `dotStrip` |","| A shape across ordered measures (e.g. -2m, at event, +2h) | `measureProfile` (2+ measures on a comparable scale) |","| Detailed row-level data or many columns | `table` (aggregates) or `recordsTable` (one row per record) |","| Progress toward a known target or limit | `gauge` (ALWAYS set `maxValue`, or it scales to the data and reads as 100%) |","| Open/high/low/close price or range data | `candlestick` (put the measures in `yAxis` in OHLC order) |","| Narrative, caveats, methodology | `markdown` |","| Single headline number — ONLY when user explicitly asks for a KPI card or single number | `kpiNumber` |","| Headline metric with period-over-period change — ONLY when user asks about change in a single metric | `kpiDelta` |","| Headline number inside a sentence — same restraint as kpiNumber | `kpiText` |",``,`Analysis-mode-specific chart types (require the corresponding analysis mode):`,``,`| Analysis Mode | Chart Type | Description |`,`|---|---|---|`,"| Funnel | `funnel` | Sequential step conversion bars with conversion rates |","| Flow | `sankey` | Flow diagram showing paths between states/steps |","| Flow | `sunburst` | Radial rings showing forward paths from a starting event |","| Retention | `retentionHeatmap` | Cohort × period retention matrix |","| Retention | `retentionCombined` | Retention with line chart, heatmap, or combined modes |",``,"**Vary the chart types across a notebook.** A notebook of nothing but bars and tables is a failure even when every chart is individually valid. `kpiNumber`/`kpiDelta`/`kpiText` are a last resort — use them only when the user explicitly asks for a single headline number, never for a multi-row result.",``,'`recordsTable` lists one row per record, so its query MUST set `"ungrouped": true` — which also means one cube plus its to-one joins, since an ungrouped query cannot span a hasMany relationship.',``,`## Chart Axis Configuration Rules`,``,"**Bar charts need an xAxis dimension.** A bar chart over a measures-only query has no category axis to label its bars; if you send one it is converted to a `table` (or `kpiNumber` for a single measure) and you are told so. To get a real bar chart, put the category in the query's `dimensions` and use a single measure. To compare several measures as an ordered shape, use `measureProfile`.",``,"**Never duplicate xAxis in series.** Putting the same dimension in both `xAxis` and `series` creates a sparse, broken-looking chart. The `series` field is ONLY for splitting bars into grouped/stacked sub-series by a SECOND dimension.",``,`Correct bar chart examples:`,'- Categories only: `xAxis: ["Cube.category"], yAxis: ["Cube.count"]` — no series needed','- Grouped bars: `xAxis: ["Cube.category"], yAxis: ["Cube.count"], series: ["Cube.status"]` — series is a DIFFERENT dimension','- Multiple measures: `xAxis: ["Cube.category"], yAxis: ["Cube.count", "Cube.total"]` — each measure becomes a bar group',``,`Wrong:`,'- `xAxis: [], yAxis: ["Cube.avg1", "Cube.avg2"]` — missing xAxis, bars have no labels','- `xAxis: ["Cube.size"], series: ["Cube.size"]` — same field in both, creates sparse chart',``,"**Dual Y-axis for multi-measure charts.** When a `bar`, `line`, or `area` chart has 2+ measures with different scales (e.g. revenue in thousands vs conversion rate as a percentage), use `chartConfig.yAxisAssignment` to put them on separate axes:","```json",`{`,` "xAxis": ["Sales.month"],`,` "yAxis": ["Sales.revenue", "Sales.conversionRate"],`,` "yAxisAssignment": { "Sales.revenue": "left", "Sales.conversionRate": "right" }`,`}`,"```",`Only use dual axis when measures have genuinely different scales. If both measures share the same unit/scale, keep them on the same (left) axis — omit yAxisAssignment entirely.`,``,`## Analysis Mode Decision Tree`,``,`The default mode is **query** (standard measures/dimensions). Switch to a special mode only when the user's question matches:`,``,`- **Funnel mode** — "What is the conversion rate from step A → B → C?"`," - Requires: an event-stream cube with `capabilities.funnel = true` from `discover_cubes`"," - Execute: `execute_query` with `funnel` param:",' `{ bindingKey: "Events.userId", timeDimension: "Events.timestamp", steps: [{ name: "Signup", filter: { member: "Events.eventName", operator: "equals", values: ["signup"] }}, { name: "Purchase", filter: { member: "Events.eventName", operator: "equals", values: ["purchase"] }}] }`',' - Visualize: `add_portlet` with `chartType: "funnel"` and `query` as JSON string containing `{ "funnel": { ... } }`',``,`- **Flow mode** — "What paths do users take after signup?"`," - Requires: `capabilities.flow = true` from `discover_cubes`"," - Execute: `execute_query` with `flow` param:",' `{ bindingKey: "Events.userId", timeDimension: "Events.timestamp", eventDimension: "Events.eventName", startingStep: { name: "Signup", filter: { member: "Events.eventName", operator: "equals", values: ["signup"] }}, stepsBefore: 0, stepsAfter: 3 }`',' - Visualize: `add_portlet` with `chartType: "sankey"` (or `"sunburst"`) and `query` as JSON string containing `{ "flow": { ... } }`',``,`- **Retention mode** — "What % of users come back after 7 days?"`," - Requires: `capabilities.retention = true` from `discover_cubes`"," - Execute: `execute_query` with `retention` param:",' `{ timeDimension: "Events.timestamp", bindingKey: "Events.userId", dateRange: { start: "2024-01-01", end: "2024-03-31" }, granularity: "week", periods: 8, retentionType: "classic" }`',' - Visualize: `add_portlet` with `chartType: "retentionCombined"` (or `"retentionHeatmap"`) and `query` as JSON string containing `{ "retention": { ... } }`',``,"Before using funnel/flow/retention, check the `capabilities` object returned by `discover_cubes`. If the required capability is `false`, explain to the user that the data model does not support that analysis mode.",``,`Event-stream cubes are marked in the Available Cubes section below with **Event Stream: Yes** and list their binding key and time dimension.`,``,`---`,``,df,``,`---`,``,_f(lf),``,`---`,``,_f(uf),``,`---`,``,`## Save as Dashboard`,``,"ONLY call `save_as_dashboard` when the user EXPLICITLY asks to save, export, or convert the notebook into a dashboard. NEVER save a dashboard on your own initiative — wait for the user to request it.",``,`### Layout Rules`,`- Dashboard grid is 12 columns wide`,`- KPI cards: w=3, h=3 — place at the top in a row of 4`,`- Overview charts (bar, line, area): w=6, h=4`,`- Wide charts (heatmap, table, recordsTable): w=12, h=5`,`- Section headers (markdown): w=12, h=1`,``,`### Section Headers`,'Use `chartType: "markdown"` portlets as section headers to organize the dashboard:',"```json",`{`,` "id": "header-overview",`,` "title": "Overview",`,` "chartType": "markdown",`,` "displayConfig": {`,` "content": "## Overview",`,` "hideHeader": true,`,` "transparentBackground": true,`,` "autoHeight": true`,` },`,` "w": 12, "h": 1, "x": 0, "y": 0`,`}`,"```",``,`### Dashboard Filters`,"- ALWAYS include a universal date filter with `isUniversalTime: true`",'- A universal date filter only reaches portlets through their `timeDimensions`. For KPI or breakdown portlets without a time dimension, map it as `{ filterId, member: "<Cube.timeField>" }` so it filters that field instead of leaving the portlet unfiltered',`- Add dimension filters for key fields used across portlets (e.g., department, status, region)`,`- Use human-readable labels (e.g., "Department" not "Employees.departmentName")`,"- Map filters to portlets using `dashboardFilterMapping` — list the filter IDs that apply","- To apply a filter to a different field for one portlet, use `{ filterId, member }` instead of a plain ID (e.g. remap a Customer filter to `Invoices.customerId`); the target field must be join-reachable from the portlet query",`- When promoting a hardcoded filter to a dashboard filter, REMOVE that filter from the portlet query`,``,`### Analysis Types`,'- Standard query portlets: `analysisType: "query"` (default)','- Funnel portlets: `analysisType: "funnel"`, query contains `{ "funnel": {...} }`, chartType `"funnel"`','- Flow portlets: `analysisType: "flow"`, query contains `{ "flow": {...} }`, chartType `"sankey"` or `"sunburst"`','- Retention portlets: `analysisType: "retention"`, query contains `{ "retention": {...} }`, chartType `"retentionHeatmap"` or `"retentionCombined"`',``,`### CRITICAL: Only use portlets from the notebook`,"- ONLY include portlets that you already added to the notebook via `add_portlet` during this conversation",`- Do NOT invent new queries or charts that were not part of the analysis — the dashboard is a direct conversion of the notebook`,`- Reuse the exact same queries, chart types, and chart configs from the notebook portlets`,`- Arrange the existing portlets in a sensible layout (KPIs at top, charts in middle, tables at bottom)`,`- You may add section header markdown portlets to organize the layout, but do not add new data portlets`,``,`---`,``,gf(e)].join(`
823
- `)}var yf={funnel:{description:`Track conversion through sequential steps. Entities (identified by bindingKey) move through ordered steps.`,structure:{funnel:{bindingKey:`Cube.dimension - identifies entities moving through funnel`,timeDimension:`Cube.dimension - time field for ordering events`,steps:[{name:`string - human readable step name`,filter:`{ member, operator, values } or array of filters. Put inDateRange ONLY on step 0.`,timeToConvert:`optional - ISO 8601 duration e.g. "P7D" for 7 days, "PT1H" for 1 hour`}],includeTimeMetrics:`optional boolean - include avg/median/p90 time-to-convert`,globalTimeWindow:`optional - ISO 8601 duration, all steps must complete within this window`}}},flow:{description:`Analyze paths users take before/after a specific event. Shows event sequences as Sankey/sunburst.`,structure:{flow:{bindingKey:`Cube.dimension - identifies entities`,timeDimension:`Cube.dimension - time field for ordering`,eventDimension:`Cube.dimension - the event type field (values become node labels)`,startingStep:{name:`string - display name for the starting step`,filter:`{ member, operator, values } - filter identifying the starting event`},stepsBefore:`number (0-5) - how many steps to show before starting step`,stepsAfter:`number (0-5) - how many steps to show after starting step`,entityLimit:`optional number - max entities to process (performance)`,outputMode:`optional "sankey" | "sunburst" (default: sankey)`}}},retention:{description:`Measure how many users return over time periods after initial activity.`,structure:{retention:{timeDimension:`Cube.dimension - time field for cohort assignment`,bindingKey:`Cube.dimension - identifies entities`,dateRange:{start:`YYYY-MM-DD - cohort start date`,end:`YYYY-MM-DD - cohort end date`},granularity:`day | week | month - period size`,periods:`number - how many periods to analyze`,retentionType:`"classic" (returned in period N) | "rolling" (returned in N or later)`,cohortFilters:`optional - filters on cohort entry events`,activityFilters:`optional - filters on return activity events`,breakdownDimensions:`optional string[] - segment by these dimensions`}}}};function bf(e,t,n){let r=0,i=t.name.split(`.`).pop()||t.name;return r=Math.max(r,n.fuzzyMatchScore(e,i)),r=Math.max(r,n.fuzzyMatchScore(e,t.title)),t.description&&(r=Math.max(r,n.fuzzyMatchScore(e,t.description)*.8)),t.synonyms&&(r=Math.max(r,n.matchAgainstArray(e,t.synonyms))),r}function xf(e,t,n,r,i){let a=0;for(let o of t){let t=bf(e,o,n);if(t>.4){a+=t,i.hit=!0;let e=r.get(o.name)||0;r.set(o.name,Math.max(e,t))}}return a}function Sf(e,t){return Array.from(e.entries()).sort((e,t)=>t[1]-e[1]).slice(0,t).map(([e])=>e)}function Cf(e){return e.toLowerCase().replace(/[^a-z0-9]/g,``)}function wf(e,t){let n=new Set(t),r={};for(let t of e)n.has(t.name)&&t.title&&Cf(t.name.split(`.`).pop()||t.name)!==Cf(t.title)&&(r[t.name]=t.title);return Object.keys(r).length>0?r:void 0}function Tf(e,t,n){let r=t.name.split(`.`).pop()||t.name,i=n.fuzzyMatchScore(e,r);return i=Math.max(i,n.fuzzyMatchScore(e,t.title)),t.synonyms&&(i=Math.max(i,n.matchAgainstArray(e,t.synonyms))),i}function Ef(e,t){if(e.length>500||t.length>500)return e.length+t.length;let n=[];for(let e=0;e<=t.length;e++)n[e]=[e];for(let t=0;t<=e.length;t++)n[0][t]=t;for(let r=1;r<=t.length;r++)for(let i=1;i<=e.length;i++)t.charAt(r-1)===e.charAt(i-1)?n[r][i]=n[r-1][i-1]:n[r][i]=Math.min(n[r-1][i-1]+1,n[r][i-1]+1,n[r-1][i]+1);return n[t.length][e.length]}function Df(e,t){let n=e.toLowerCase().trim(),r=t.toLowerCase().trim();if(n===r)return 1;if(r.includes(n))return .9;let i=r.split(/[\s_-]+/);for(let e of i){if(e===n)return .85;if(e.startsWith(n))return .75}let a=1-Ef(n,r)/Math.max(n.length,r.length);return a>.5?a*.7:0}function Of(e,t){let n=0;for(let r of t){let t=Df(e,r);t>n&&(n=t)}return n}function kf(e){let t=new Set(`a.an.the.is.are.was.were.be.been.being.have.has.had.do.does.did.will.would.could.should.may.might.must.can.and.or.but.if.then.else.when.where.why.how.what.which.who.this.that.these.those.i.me.my.we.our.you.your.he.she.it.they.them.their.in.on.at.to.for.of.with.by.from.up.down.out.over.under.about.into.through.during.before.after.above.below.between.show.me.get.find.list.give.tell.display.want.need.see.know`.split(`.`));return e.toLowerCase().replace(/[^\w\s]/g,` `).split(/\s+/).filter(e=>e.length>2&&!t.has(e))}var Af={fuzzyMatchScore:Df,matchAgainstArray:Of};function jf(e,t,n){let r=0,i=Df(e,t.name);i>.5&&(r+=i*2,n.includes(`name`)||n.push(`name`));let a=Df(e,t.title);if(a>.5&&(r+=a*1.5,n.includes(`title`)||n.push(`title`)),t.description){let i=Df(e,t.description);i>.3&&(r+=i,n.includes(`description`)||n.push(`description`))}if(t.exampleQuestions)for(let i of t.exampleQuestions){let t=Df(e,i);t>.3&&(r+=t*1.5,n.includes(`exampleQuestions`)||n.push(`exampleQuestions`))}return r}function Mf(e,t){let n=0,r=[],i=new Map,a=new Map;for(let o of t){n+=jf(o,e,r);let t={hit:!1};n+=xf(o,e.measures,Af,i,t),t.hit&&!r.includes(`measures`)&&r.push(`measures`);let s={hit:!1};n+=xf(o,e.dimensions,Af,a,s),s.hit&&!r.includes(`dimensions`)&&r.push(`dimensions`)}return{score:Math.min(1,n/(t.length*2)),matchedOn:r,suggestedMeasures:Sf(i,5),suggestedDimensions:Sf(a,5)}}function Nf(e){let t=!!e.meta?.eventStream,n=e.dimensions.some(e=>e.type===`time`),r=e.dimensions.some(t=>t.name.toLowerCase().includes(`id`)||t.type===`number`||e.meta?.eventStream?.bindingKey&&t.name===e.meta.eventStream.bindingKey),i=t||n&&r;return{query:!0,funnel:i,flow:i,retention:i}}function Pf(e){let t=Nf(e);if(!t.funnel&&!t.flow&&!t.retention)return;let n=[];if(e.meta?.eventStream?.bindingKey){let t=e.dimensions.find(t=>t.name===e.meta?.eventStream?.bindingKey);n.push({dimension:e.meta.eventStream.bindingKey,description:t?.description||`Configured binding key`})}for(let t of e.dimensions)(t.name.split(`.`).pop()?.toLowerCase()||``).includes(`id`)&&!n.some(e=>e.dimension===t.name)&&n.push({dimension:t.name,description:t.description||`Potential entity identifier`});let r=[];if(e.meta?.eventStream?.timeDimension){let t=e.dimensions.find(t=>t.name===e.meta?.eventStream?.timeDimension);r.push({dimension:e.meta.eventStream.timeDimension,description:t?.description||`Configured time dimension`})}for(let t of e.dimensions)t.type===`time`&&!r.some(e=>e.dimension===t.name)&&r.push({dimension:t.name,description:t.description});let i=[];for(let t of e.dimensions){let e=t.name.split(`.`).pop()?.toLowerCase()||``;t.type===`string`&&(e.includes(`type`)||e.includes(`event`)||e.includes(`status`)||e.includes(`state`)||e.includes(`action`))&&i.push({dimension:t.name,description:t.description||`Potential event type dimension`})}return{candidateBindingKeys:n,candidateTimeDimensions:r,candidateEventDimensions:i}}function Ff(e,t){let n=[];if(!t)return n;if(t.candidateBindingKeys.length>1&&n.push(`Choose bindingKey based on what entity to track through the analysis`),t.candidateEventDimensions.length>0){let e=t.candidateEventDimensions[0].dimension;n.push(`Query ${e} dimension to discover available values for funnel steps`)}return n.push(`Use /mcp/load with a standard query to discover dimension values before building analysis queries`),n}function If(e,t={}){let{topic:n,intent:r,limit:i=10,minScore:a=.1}=t,o=[n,r].filter(Boolean).join(` `);if(!o.trim())return e.slice(0,i).map(e=>{let t=Nf(e),n=Pf(e),r=Ff(e,n),i=t.funnel||t.flow||t.retention,a=e.measures.slice(0,5).map(e=>e.name),o=e.dimensions.slice(0,5).map(e=>e.name);return{cube:e.name,title:e.title,description:e.description,relevanceScore:1,matchedOn:[],suggestedMeasures:a,suggestedDimensions:o,fieldTitles:wf([...e.measures,...e.dimensions],[...a,...o]),capabilities:t,analysisConfig:n,hints:r.length>0?r:void 0,querySchemas:i?yf:void 0}});let s=kf(o);if(s.length===0)return[];let c=[];for(let t of e){let{score:e,matchedOn:n,suggestedMeasures:r,suggestedDimensions:i}=Mf(t,s);if(e>=a){let a=Nf(t),o=Pf(t),s=Ff(t,o),l=a.funnel||a.flow||a.retention;c.push({cube:t.name,title:t.title,description:t.description,relevanceScore:e,matchedOn:n,suggestedMeasures:r,suggestedDimensions:i,fieldTitles:wf([...t.measures,...t.dimensions],[...r,...i]),capabilities:a,analysisConfig:o,hints:s.length>0?s:void 0,querySchemas:l?yf:void 0})}}return c.sort((e,t)=>t.relevanceScore-e.relevanceScore).slice(0,i)}function Lf(e,t,n){let r=null,i=(e,n,i)=>{for(let a of n){let n=Tf(t,a,Af);n>.5&&(!r||n>r.score)&&(r={field:a.name,cube:e.name,score:n,type:i})}};for(let t of e)(!n||n===`measure`)&&i(t,t.measures,`measure`),(!n||n===`dimension`)&&i(t,t.dimensions,`dimension`);return r}var Rf=uf.messages[0]?.content.text??``;async function zf(e,t,n){return{cubes:If(e.getMetadata(t),{topic:n.topic,intent:n.intent,limit:n.limit,minScore:n.minScore}),queryLanguageReference:cf,dateFilteringGuide:Rf}}function Bf(e){let t=e.split(`.`);return t.length===3&&t[0]===t[1]?`${t[0]}.${t[2]}`:e}function Vf(e){let t=e=>{if(Array.isArray(e))return e.map(e=>typeof e==`string`?Bf(e):e)};if(Array.isArray(e.measures)&&(e.measures=t(e.measures)),Array.isArray(e.dimensions)&&(e.dimensions=t(e.dimensions)),Array.isArray(e.filters))for(let t of e.filters)typeof t.member==`string`&&(t.member=Bf(t.member));if(Array.isArray(e.timeDimensions))for(let t of e.timeDimensions)typeof t.dimension==`string`&&(t.dimension=Bf(t.dimension));return Array.isArray(e.order)&&(e.order=Hf(e.order)),e.order&&typeof e.order==`object`&&!Array.isArray(e.order)&&(e.order=Gf(e.order,e)),e}function Hf(e){let t={};for(let n of e)n&&typeof n==`object`&&Object.assign(t,n);return t}function Uf(e){return new Set([...Array.isArray(e.measures)?e.measures:[],...Array.isArray(e.dimensions)?e.dimensions:[]])}function Wf(e,t){let n=Bf(e);if(t.has(n))return n;if(!e.includes(`.`)&&e.includes(`_`)){let n=Bf(e.replace(/_/g,`.`));if(t.has(n))return n;let r=[...t].find(t=>{let n=t.split(`.`)[1];return n&&(e.endsWith(`_${n}`)||e.endsWith(`.${n}`))});if(r)return r}return t.size>0&&!t.has(n)?null:n}function Gf(e,t){let n=Uf(t),r={};for(let[t,i]of Object.entries(e)){let e=Wf(t,n);e!==null&&(r[e]=i)}if(Object.keys(r).length===0&&n.size>0){let e=Array.isArray(t.measures)?t.measures[0]:void 0;e&&(r[e]=`desc`)}return r}async function Kf(e,t,n){let r=Vf(n.query),i=e.validateQuery(r,t);if(!i.isValid)throw Error(`Query validation failed: ${i.errors.join(`, `)}`);let a=await e.executeMultiCubeQuery(r,t);return{data:a.data,annotation:a.annotation,query:r,...a.total===void 0?{}:{total:a.total}}}var qf=e.n({barChartConfig:()=>Jf}),Jf={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:[t.u(`chart.configText.how_to_stack_multiple_bar_series`),t.d,t.n,t.i,t.s]},Yf=e.n({lineChartConfig:()=>Xf}),Xf={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:[t.l,t.c(),t.t,t.n,t.d,{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`},t.i,t.s]},Zf=e.n({areaChartConfig:()=>Qf}),Qf={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:[t.l,t.c(!1),t.u(`chart.configText.how_to_stack_multiple_area_series`),t.t,t.n,t.d,t.i,t.s]},$f=e.n({pieChartConfig:()=>ep}),ep={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`}]},t.f()]},tp=e.n({scatterChartConfig:()=>np}),np={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`}]},rp=e.n({bubbleChartConfig:()=>ip}),ip={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`}]},ap=e.n({radarChartConfig:()=>op}),op={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:[t.f()]},sp=e.n({radialBarChartConfig:()=>cp}),cp={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:[t.f()]},lp=e.n({treemapChartConfig:()=>up}),up={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:[t.f(`chart.configText.number_formatting_for_size_values`)],clickableElements:{cell:!0}},dp=e.n({dataTableConfig:()=>fp}),fp={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`}]},pp=e.n({recordsTableConfig:()=>mp}),mp={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},hp=e.n({activityGridChartConfig:()=>gp}),gp={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}},_p=e.n({kpiNumberConfig:()=>vp}),vp={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:[t.r,{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`]},yp=e.n({kpiDeltaConfig:()=>bp}),bp={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:[t.r,{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}},xp=e.n({kpiTextConfig:()=>Sp}),Sp={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`]},Cp=e.n({markdownConfig:()=>wp}),wp={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`}]},Tp=e.n({funnelChartConfig:()=>Ep}),Ep={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`}]},Dp=e.n({sankeyChartConfig:()=>Op}),Op={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`}]},kp=e.n({sunburstChartConfig:()=>Ap}),Ap={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`}]},jp=e.n({heatmapChartConfig:()=>Mp}),Mp={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`}},Np=e.n({retentionHeatmapConfig:()=>Pp}),Pp={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`}]},Fp=e.n({retentionCombinedConfig:()=>Ip}),Ip={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`}]},Lp=e.n({boxPlotChartConfig:()=>Rp}),Rp={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`}]},zp=e.n({dotStripChartConfig:()=>Bp}),Bp={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`}]},Vp=e.n({waterfallChartConfig:()=>Hp}),Hp={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`}]},Up=e.n({candlestickChartConfig:()=>Wp}),Wp={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`}]},Gp=e.n({measureProfileChartConfig:()=>Kp}),Kp={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`}]},qp=e.n({proportionBarChartConfig:()=>Jp}),Jp={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}},Yp=e.n({gaugeChartConfig:()=>Xp}),Xp={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`}]},Q={packageName:`recharts`,installCommand:`npm install recharts`},Zp={bar:{label:`chart.bar.label`,icon:`chartBar`,description:`chart.bar.description`,useCase:`chart.bar.useCase`,isAvailable:t.o,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>qf)).barChartConfig},line:{label:`chart.line.label`,icon:`chartLine`,description:`chart.line.description`,useCase:`chart.line.useCase`,isAvailable:t.o,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>Yf)).lineChartConfig},area:{label:`chart.area.label`,icon:`chartArea`,description:`chart.area.description`,useCase:`chart.area.useCase`,isAvailable:t.o,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>Zf)).areaChartConfig},pie:{label:`chart.pie.label`,icon:`chartPie`,description:`chart.pie.description`,useCase:`chart.pie.useCase`,isAvailable:t.o,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>$f)).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:Q,config:async()=>(await Promise.resolve().then(()=>tp)).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:Q,config:async()=>(await Promise.resolve().then(()=>rp)).bubbleChartConfig},radar:{label:`chart.radar.label`,icon:`chartRadar`,description:`chart.radar.description`,useCase:`chart.radar.useCase`,isAvailable:t.o,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>ap)).radarChartConfig},radialBar:{label:`chart.radialBar.label`,icon:`chartRadialBar`,description:`chart.radialBar.description`,useCase:`chart.radialBar.useCase`,isAvailable:t.o,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>sp)).radialBarChartConfig},treemap:{label:`chart.treemap.label`,icon:`chartTreemap`,description:`chart.treemap.description`,useCase:`chart.treemap.useCase`,isAvailable:t.o,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>lp)).treemapChartConfig},table:{label:`chart.table.label`,icon:`chartTable`,description:`chart.table.description`,useCase:`chart.table.useCase`,config:async()=>(await Promise.resolve().then(()=>dp)).dataTableConfig},recordsTable:{label:`chart.recordsTable.label`,icon:`chartRecordsTable`,description:`chart.recordsTable.description`,useCase:`chart.recordsTable.useCase`,config:async()=>(await Promise.resolve().then(()=>pp)).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 Promise.resolve().then(()=>hp)).activityGridChartConfig},kpiNumber:{label:`chart.kpiNumber.label`,icon:`chartKpiNumber`,description:`chart.kpiNumber.description`,useCase:`chart.kpiNumber.useCase`,isAvailable:t.a,config:async()=>(await Promise.resolve().then(()=>_p)).kpiNumberConfig},kpiDelta:{label:`chart.kpiDelta.label`,icon:`chartKpiDelta`,description:`chart.kpiDelta.description`,useCase:`chart.kpiDelta.useCase`,isAvailable:t.o,config:async()=>(await Promise.resolve().then(()=>yp)).kpiDeltaConfig},kpiText:{label:`chart.kpiText.label`,icon:`chartKpiText`,description:`chart.kpiText.description`,useCase:`chart.kpiText.useCase`,isAvailable:t.a,config:async()=>(await Promise.resolve().then(()=>xp)).kpiTextConfig},markdown:{label:`chart.markdown.label`,icon:`chartMarkdown`,description:`chart.markdown.description`,useCase:`chart.markdown.useCase`,config:async()=>(await Promise.resolve().then(()=>Cp)).markdownConfig},funnel:{label:`chart.funnel.label`,icon:`chartFunnel`,description:`chart.funnel.description`,useCase:`chart.funnel.useCase`,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>Tp)).funnelChartConfig},sankey:{label:`chart.sankey.label`,icon:`chartSankey`,description:`chart.sankey.description`,useCase:`chart.sankey.useCase`,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>Dp)).sankeyChartConfig},sunburst:{label:`chart.sunburst.label`,icon:`chartSunburst`,description:`chart.sunburst.description`,useCase:`chart.sunburst.useCase`,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>kp)).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 Promise.resolve().then(()=>jp)).heatmapChartConfig},retentionHeatmap:{label:`chart.retentionHeatmap.label`,icon:`chartRetention`,description:`chart.retentionHeatmap.description`,useCase:`chart.retentionHeatmap.useCase`,config:async()=>(await Promise.resolve().then(()=>Np)).retentionHeatmapConfig},retentionCombined:{label:`chart.retentionCombined.label`,icon:`chartRetention`,description:`chart.retentionCombined.description`,useCase:`chart.retentionCombined.useCase`,config:async()=>(await Promise.resolve().then(()=>Fp)).retentionCombinedConfig},boxPlot:{label:`chart.boxPlot.label`,icon:`chartBoxPlot`,description:`chart.boxPlot.description`,useCase:`chart.boxPlot.useCase`,isAvailable:t.o,config:async()=>(await Promise.resolve().then(()=>Lp)).boxPlotChartConfig},dotStrip:{label:`chart.dotStrip.label`,icon:`chartDotStrip`,description:`chart.dotStrip.description`,useCase:`chart.dotStrip.useCase`,isAvailable:t.o,config:async()=>(await Promise.resolve().then(()=>zp)).dotStripChartConfig},waterfall:{label:`chart.waterfall.label`,icon:`chartWaterfall`,description:`chart.waterfall.description`,useCase:`chart.waterfall.useCase`,isAvailable:t.o,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>Vp)).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 Promise.resolve().then(()=>Up)).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:Q,config:async()=>(await Promise.resolve().then(()=>Gp)).measureProfileChartConfig},proportionBar:{label:`chart.proportionBar.label`,icon:`chartProportionBar`,description:`chart.proportionBar.description`,useCase:`chart.proportionBar.useCase`,isAvailable:t.o,config:async()=>(await Promise.resolve().then(()=>qp)).proportionBarChartConfig},gauge:{label:`chart.gauge.label`,icon:`chartGauge`,description:`chart.gauge.description`,useCase:`chart.gauge.useCase`,isAvailable:t.a,dependencies:{packageName:`d3-shape`,installCommand:`npm install d3-shape`},config:async()=>(await Promise.resolve().then(()=>Yp)).gaugeChartConfig}};function Qp(e,t){return{...t,label:e.label,description:e.description,useCase:e.useCase,isAvailable:e.isAvailable}}var $p={bar:Jf,line:Xf,area:Qf,pie:ep,scatter:np,bubble:ip,radar:op,radialBar:cp,treemap:up,table:fp,recordsTable:mp,activityGrid:gp,kpiNumber:vp,kpiDelta:bp,kpiText:Sp,markdown:wp,funnel:Ep,sankey:Op,sunburst:Ap,heatmap:Mp,retentionHeatmap:Pp,retentionCombined:Ip,boxPlot:Rp,dotStrip:Bp,waterfall:Hp,candlestick:Wp,measureProfile:Kp,proportionBar:Jp,gauge:Xp},em=Object.fromEntries(Object.keys(Zp).map(e=>[e,Qp(Zp[e],$p[e])]));function tm(e){return em[e]?.recordGrain===!0}function nm(e){return Array.isArray(e)?e.length>0:!!e}function rm(e){let t=e.timeDimensions??[];return e.ungrouped?t:t.filter(e=>!!e.granularity)}function im(e,t,n,r){for(let i of e.dropZones){if(!i.mandatory||nm(n?.[i.key]))continue;let e=i.acceptTypes?.join(`/`)??`fields`;r.push(w(`server.validation.chart.dropZoneRequired`,{key:i.key,chartType:t,label:i.label,acceptDesc:e}))}}function am(e,t,n){if(nm(e?.xAxis))return;let r=t.dimensions??[],i=rm(t),a=r.length>0||i.length>0;n.push(w(a?`server.validation.chart.barXAxisRequired`:`server.validation.chart.barNeedsDimension`))}function om(e){return Array.isArray(e)?e:[e]}function sm(e,t){if(!e?.xAxis||!e?.series)return;let n=new Set(om(e.xAxis)),r=om(e.series).filter(e=>n.has(e));r.length>0&&t.push(w(`server.validation.chart.seriesDuplicatesXAxis`,{duplicates:r.join(`, `)}))}function cm(e,t,n){tm(e)&&t.ungrouped!==!0&&n.push(w(`server.validation.chart.recordGrainNeedsUngrouped`,{chartType:e}))}function lm(e,t,n){let r=em[e];if(!r||r.skipQuery)return{isValid:!0,errors:[]};let i=[];return im(r,e,t,i),cm(e,n,i),e===`bar`&&am(t,n,i),sm(t,i),{isValid:i.length===0,errors:i}}function um(e,t,n){if(e!==`bar`||nm(t?.xAxis))return{chartType:e};let r=n.dimensions??[],i=rm(n);if(r.length>0||i.length>0)return{chartType:e};let a=(n.measures??[]).length===1?`kpiNumber`:`table`;return{chartType:a,note:`Note: chartType was changed from "bar" to "${a}" because the query has no dimension, so a bar chart would have no category axis to label its bars. For a real bar chart, put the category in the query's dimensions and use a single measure. To plot several measures as an ordered profile instead, use "measureProfile".`}}function dm(e,t,n,r){if(!(e.acceptTypes??[]).includes(`measure`))return;let i=new Set;for(let r of t.dropZones){if(r.key===e.key)continue;let t=n[r.key];Array.isArray(t)?t.forEach(e=>i.add(e)):typeof t==`string`&&i.add(t)}let a=r.filter(e=>!i.has(e));a.length>0&&(n[e.key]=a[0])}function fm(e,t){let n=new Set;for(let[r,i]of Object.entries(e))if(r!==t){if(Array.isArray(i))for(let e of i)typeof e==`string`&&n.add(e);else typeof i==`string`&&n.add(i)}return n}function pm(e,t,n){let r=e.acceptTypes??[],i=[];if(r.includes(`dimension`)&&i.push(...n.dimensions),r.includes(`timeDimension`)&&i.push(...n.timeDimFields),r.includes(`measure`)&&i.push(...n.measures),i.length===0)return;let a=fm(t,e.key),o=i.filter(e=>!a.has(e));if(o.length===0)return;let s=e.maxItems??1/0,c=o.slice(0,s);c.length>0&&(t[e.key]=c)}function mm(e,t,n){let r=em[e];if(!r)return t??{};let i={...t},a=rm(n),o={measures:n.measures??[],dimensions:n.dimensions??[],timeDimFields:a.map(e=>e.dimension)};for(let e of r.dropZones)e.excludeFromInference||nm(i[e.key])||(e.key===`sizeField`||e.key===`colorField`?dm(e,r,i,o.measures):pm(e,i,o));return i}function hm(e){return e?ct(e)?w(e):e:``}function gm(e){let t=[`
823
+ `)}var yf={funnel:{description:`Track conversion through sequential steps. Entities (identified by bindingKey) move through ordered steps.`,structure:{funnel:{bindingKey:`Cube.dimension - identifies entities moving through funnel`,timeDimension:`Cube.dimension - time field for ordering events`,steps:[{name:`string - human readable step name`,filter:`{ member, operator, values } or array of filters. Put inDateRange ONLY on step 0.`,timeToConvert:`optional - ISO 8601 duration e.g. "P7D" for 7 days, "PT1H" for 1 hour`}],includeTimeMetrics:`optional boolean - include avg/median/p90 time-to-convert`,globalTimeWindow:`optional - ISO 8601 duration, all steps must complete within this window`}}},flow:{description:`Analyze paths users take before/after a specific event. Shows event sequences as Sankey/sunburst.`,structure:{flow:{bindingKey:`Cube.dimension - identifies entities`,timeDimension:`Cube.dimension - time field for ordering`,eventDimension:`Cube.dimension - the event type field (values become node labels)`,startingStep:{name:`string - display name for the starting step`,filter:`{ member, operator, values } - filter identifying the starting event`},stepsBefore:`number (0-5) - how many steps to show before starting step`,stepsAfter:`number (0-5) - how many steps to show after starting step`,entityLimit:`optional number - max entities to process (performance)`,outputMode:`optional "sankey" | "sunburst" (default: sankey)`}}},retention:{description:`Measure how many users return over time periods after initial activity.`,structure:{retention:{timeDimension:`Cube.dimension - time field for cohort assignment`,bindingKey:`Cube.dimension - identifies entities`,dateRange:{start:`YYYY-MM-DD - cohort start date`,end:`YYYY-MM-DD - cohort end date`},granularity:`day | week | month - period size`,periods:`number - how many periods to analyze`,retentionType:`"classic" (returned in period N) | "rolling" (returned in N or later)`,cohortFilters:`optional - filters on cohort entry events`,activityFilters:`optional - filters on return activity events`,breakdownDimensions:`optional string[] - segment by these dimensions`}}}};function bf(e,t,n){let r=0,i=t.name.split(`.`).pop()||t.name;return r=Math.max(r,n.fuzzyMatchScore(e,i)),r=Math.max(r,n.fuzzyMatchScore(e,t.title)),t.description&&(r=Math.max(r,n.fuzzyMatchScore(e,t.description)*.8)),t.synonyms&&(r=Math.max(r,n.matchAgainstArray(e,t.synonyms))),r}function xf(e,t,n,r,i){let a=0;for(let o of t){let t=bf(e,o,n);if(t>.4){a+=t,i.hit=!0;let e=r.get(o.name)||0;r.set(o.name,Math.max(e,t))}}return a}function Sf(e,t){return Array.from(e.entries()).sort((e,t)=>t[1]-e[1]).slice(0,t).map(([e])=>e)}function Cf(e){return e.toLowerCase().replace(/[^a-z0-9]/g,``)}function wf(e,t){let n=new Set(t),r={};for(let t of e)n.has(t.name)&&t.title&&Cf(t.name.split(`.`).pop()||t.name)!==Cf(t.title)&&(r[t.name]=t.title);return Object.keys(r).length>0?r:void 0}function Tf(e,t,n){let r=t.name.split(`.`).pop()||t.name,i=n.fuzzyMatchScore(e,r);return i=Math.max(i,n.fuzzyMatchScore(e,t.title)),t.synonyms&&(i=Math.max(i,n.matchAgainstArray(e,t.synonyms))),i}function Ef(e,t){if(e.length>500||t.length>500)return e.length+t.length;let n=[];for(let e=0;e<=t.length;e++)n[e]=[e];for(let t=0;t<=e.length;t++)n[0][t]=t;for(let r=1;r<=t.length;r++)for(let i=1;i<=e.length;i++)t.charAt(r-1)===e.charAt(i-1)?n[r][i]=n[r-1][i-1]:n[r][i]=Math.min(n[r-1][i-1]+1,n[r][i-1]+1,n[r-1][i]+1);return n[t.length][e.length]}function Df(e,t){let n=e.toLowerCase().trim(),r=t.toLowerCase().trim();if(n===r)return 1;if(r.includes(n))return .9;let i=r.split(/[\s_-]+/);for(let e of i){if(e===n)return .85;if(e.startsWith(n))return .75}let a=1-Ef(n,r)/Math.max(n.length,r.length);return a>.5?a*.7:0}function Of(e,t){let n=0;for(let r of t){let t=Df(e,r);t>n&&(n=t)}return n}function kf(e){let t=new Set(`a.an.the.is.are.was.were.be.been.being.have.has.had.do.does.did.will.would.could.should.may.might.must.can.and.or.but.if.then.else.when.where.why.how.what.which.who.this.that.these.those.i.me.my.we.our.you.your.he.she.it.they.them.their.in.on.at.to.for.of.with.by.from.up.down.out.over.under.about.into.through.during.before.after.above.below.between.show.me.get.find.list.give.tell.display.want.need.see.know`.split(`.`));return e.toLowerCase().replace(/[^\w\s]/g,` `).split(/\s+/).filter(e=>e.length>2&&!t.has(e))}var Af={fuzzyMatchScore:Df,matchAgainstArray:Of};function jf(e,t,n){let r=0,i=Df(e,t.name);i>.5&&(r+=i*2,n.includes(`name`)||n.push(`name`));let a=Df(e,t.title);if(a>.5&&(r+=a*1.5,n.includes(`title`)||n.push(`title`)),t.description){let i=Df(e,t.description);i>.3&&(r+=i,n.includes(`description`)||n.push(`description`))}if(t.exampleQuestions)for(let i of t.exampleQuestions){let t=Df(e,i);t>.3&&(r+=t*1.5,n.includes(`exampleQuestions`)||n.push(`exampleQuestions`))}return r}function Mf(e,t){let n=0,r=[],i=new Map,a=new Map;for(let o of t){n+=jf(o,e,r);let t={hit:!1};n+=xf(o,e.measures,Af,i,t),t.hit&&!r.includes(`measures`)&&r.push(`measures`);let s={hit:!1};n+=xf(o,e.dimensions,Af,a,s),s.hit&&!r.includes(`dimensions`)&&r.push(`dimensions`)}return{score:Math.min(1,n/(t.length*2)),matchedOn:r,suggestedMeasures:Sf(i,5),suggestedDimensions:Sf(a,5)}}function Nf(e){let t=!!e.meta?.eventStream,n=e.dimensions.some(e=>e.type===`time`),r=e.dimensions.some(t=>t.name.toLowerCase().includes(`id`)||t.type===`number`||e.meta?.eventStream?.bindingKey&&t.name===e.meta.eventStream.bindingKey),i=t||n&&r;return{query:!0,funnel:i,flow:i,retention:i}}function Pf(e){let t=Nf(e);if(!t.funnel&&!t.flow&&!t.retention)return;let n=[];if(e.meta?.eventStream?.bindingKey){let t=e.dimensions.find(t=>t.name===e.meta?.eventStream?.bindingKey);n.push({dimension:e.meta.eventStream.bindingKey,description:t?.description||`Configured binding key`})}for(let t of e.dimensions)(t.name.split(`.`).pop()?.toLowerCase()||``).includes(`id`)&&!n.some(e=>e.dimension===t.name)&&n.push({dimension:t.name,description:t.description||`Potential entity identifier`});let r=[];if(e.meta?.eventStream?.timeDimension){let t=e.dimensions.find(t=>t.name===e.meta?.eventStream?.timeDimension);r.push({dimension:e.meta.eventStream.timeDimension,description:t?.description||`Configured time dimension`})}for(let t of e.dimensions)t.type===`time`&&!r.some(e=>e.dimension===t.name)&&r.push({dimension:t.name,description:t.description});let i=[];for(let t of e.dimensions){let e=t.name.split(`.`).pop()?.toLowerCase()||``;t.type===`string`&&(e.includes(`type`)||e.includes(`event`)||e.includes(`status`)||e.includes(`state`)||e.includes(`action`))&&i.push({dimension:t.name,description:t.description||`Potential event type dimension`})}return{candidateBindingKeys:n,candidateTimeDimensions:r,candidateEventDimensions:i}}function Ff(e,t){let n=[];if(!t)return n;if(t.candidateBindingKeys.length>1&&n.push(`Choose bindingKey based on what entity to track through the analysis`),t.candidateEventDimensions.length>0){let e=t.candidateEventDimensions[0].dimension;n.push(`Query ${e} dimension to discover available values for funnel steps`)}return n.push(`Use /mcp/load with a standard query to discover dimension values before building analysis queries`),n}function If(e,t={}){let{topic:n,intent:r,limit:i=10,minScore:a=.1}=t,o=[n,r].filter(Boolean).join(` `);if(!o.trim())return e.slice(0,i).map(e=>{let t=Nf(e),n=Pf(e),r=Ff(e,n),i=t.funnel||t.flow||t.retention,a=e.measures.slice(0,5).map(e=>e.name),o=e.dimensions.slice(0,5).map(e=>e.name);return{cube:e.name,title:e.title,description:e.description,relevanceScore:1,matchedOn:[],suggestedMeasures:a,suggestedDimensions:o,fieldTitles:wf([...e.measures,...e.dimensions],[...a,...o]),capabilities:t,analysisConfig:n,hints:r.length>0?r:void 0,querySchemas:i?yf:void 0}});let s=kf(o);if(s.length===0)return[];let c=[];for(let t of e){let{score:e,matchedOn:n,suggestedMeasures:r,suggestedDimensions:i}=Mf(t,s);if(e>=a){let a=Nf(t),o=Pf(t),s=Ff(t,o),l=a.funnel||a.flow||a.retention;c.push({cube:t.name,title:t.title,description:t.description,relevanceScore:e,matchedOn:n,suggestedMeasures:r,suggestedDimensions:i,fieldTitles:wf([...t.measures,...t.dimensions],[...r,...i]),capabilities:a,analysisConfig:o,hints:s.length>0?s:void 0,querySchemas:l?yf:void 0})}}return c.sort((e,t)=>t.relevanceScore-e.relevanceScore).slice(0,i)}function Lf(e,t,n){let r=null,i=(e,n,i)=>{for(let a of n){let n=Tf(t,a,Af);n>.5&&(!r||n>r.score)&&(r={field:a.name,cube:e.name,score:n,type:i})}};for(let t of e)(!n||n===`measure`)&&i(t,t.measures,`measure`),(!n||n===`dimension`)&&i(t,t.dimensions,`dimension`);return r}var Rf=uf.messages[0]?.content.text??``;async function zf(e,t,n){return{cubes:If(e.getMetadata(t),{topic:n.topic,intent:n.intent,limit:n.limit,minScore:n.minScore}),queryLanguageReference:cf,dateFilteringGuide:Rf}}function Bf(e){let t=e.split(`.`);return t.length===3&&t[0]===t[1]?`${t[0]}.${t[2]}`:e}function Vf(e){let t=e=>{if(Array.isArray(e))return e.map(e=>typeof e==`string`?Bf(e):e)};if(Array.isArray(e.measures)&&(e.measures=t(e.measures)),Array.isArray(e.dimensions)&&(e.dimensions=t(e.dimensions)),Array.isArray(e.filters))for(let t of e.filters)typeof t.member==`string`&&(t.member=Bf(t.member));if(Array.isArray(e.timeDimensions))for(let t of e.timeDimensions)typeof t.dimension==`string`&&(t.dimension=Bf(t.dimension));return Array.isArray(e.order)&&(e.order=Hf(e.order)),e.order&&typeof e.order==`object`&&!Array.isArray(e.order)&&(e.order=Gf(e.order,e)),e}function Hf(e){let t={};for(let n of e)n&&typeof n==`object`&&Object.assign(t,n);return t}function Uf(e){return new Set([...Array.isArray(e.measures)?e.measures:[],...Array.isArray(e.dimensions)?e.dimensions:[]])}function Wf(e,t){let n=Bf(e);if(t.has(n))return n;if(!e.includes(`.`)&&e.includes(`_`)){let n=Bf(e.replace(/_/g,`.`));if(t.has(n))return n;let r=[...t].find(t=>{let n=t.split(`.`)[1];return n&&(e.endsWith(`_${n}`)||e.endsWith(`.${n}`))});if(r)return r}return t.size>0&&!t.has(n)?null:n}function Gf(e,t){let n=Uf(t),r={};for(let[t,i]of Object.entries(e)){let e=Wf(t,n);e!==null&&(r[e]=i)}if(Object.keys(r).length===0&&n.size>0){let e=Array.isArray(t.measures)?t.measures[0]:void 0;e&&(r[e]=`desc`)}return r}async function Kf(e,t,n){let r=Vf(n.query),i=e.validateQuery(r,t);if(!i.isValid)throw Error(`Query validation failed: ${i.errors.join(`, `)}`);let a=await e.executeMultiCubeQuery(r,t);return{data:a.data,annotation:a.annotation,query:r,...a.total===void 0?{}:{total:a.total}}}var qf=e.n({barChartConfig:()=>Jf}),Jf={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:[t.u(`chart.configText.how_to_stack_multiple_bar_series`),t.d,t.n,t.i,t.s]},Yf=e.n({lineChartConfig:()=>Xf}),Xf={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:[t.l,t.c(),t.t,t.n,t.d,{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`},t.i,t.s]},Zf=e.n({areaChartConfig:()=>Qf}),Qf={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:[t.l,t.c(!1),t.u(`chart.configText.how_to_stack_multiple_area_series`),t.t,t.n,t.d,t.i,t.s]},$f=e.n({pieChartConfig:()=>ep}),ep={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`}]},t.f()]},tp=e.n({scatterChartConfig:()=>np}),np={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`}]},rp=e.n({bubbleChartConfig:()=>ip}),ip={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`}]},ap=e.n({radarChartConfig:()=>op}),op={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:[t.f()]},sp=e.n({radialBarChartConfig:()=>cp}),cp={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:[t.f()]},lp=e.n({treemapChartConfig:()=>up}),up={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:[t.f(`chart.configText.number_formatting_for_size_values`)],clickableElements:{cell:!0}},dp=e.n({dataTableConfig:()=>fp}),fp={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`}]},pp=e.n({recordsTableConfig:()=>mp}),mp={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},hp=e.n({activityGridChartConfig:()=>gp}),gp={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}},_p=e.n({kpiNumberConfig:()=>vp}),vp={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:[t.r,{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`]},yp=e.n({kpiDeltaConfig:()=>bp}),bp={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:[t.r,{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}},xp=e.n({kpiTextConfig:()=>Sp}),Sp={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`]},Cp=e.n({markdownConfig:()=>wp}),wp={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`}]},Tp=e.n({funnelChartConfig:()=>Ep}),Ep={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`}]},Dp=e.n({sankeyChartConfig:()=>Op}),Op={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`}]},kp=e.n({sunburstChartConfig:()=>Ap}),Ap={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`}]},jp=e.n({heatmapChartConfig:()=>Mp}),Mp={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`}},Np=e.n({retentionHeatmapConfig:()=>Pp}),Pp={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`}]},Fp=e.n({retentionCombinedConfig:()=>Ip}),Ip={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`}]},Lp=e.n({boxPlotChartConfig:()=>Rp}),Rp={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`}]},zp=e.n({dotStripChartConfig:()=>Bp}),Bp={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`}]},Vp=e.n({waterfallChartConfig:()=>Hp}),Hp={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`}]},Up=e.n({candlestickChartConfig:()=>Wp}),Wp={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`}]},Gp=e.n({measureProfileChartConfig:()=>Kp}),Kp={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`}]},qp=e.n({proportionBarChartConfig:()=>Jp}),Jp={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}},Yp=e.n({gaugeChartConfig:()=>Xp}),Xp={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`}]},Q={packageName:`recharts`,installCommand:`npm install recharts`},Zp={bar:{label:`chart.bar.label`,icon:`chartBar`,description:`chart.bar.description`,useCase:`chart.bar.useCase`,isAvailable:t.o,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>qf)).barChartConfig},line:{label:`chart.line.label`,icon:`chartLine`,description:`chart.line.description`,useCase:`chart.line.useCase`,isAvailable:t.o,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>Yf)).lineChartConfig},area:{label:`chart.area.label`,icon:`chartArea`,description:`chart.area.description`,useCase:`chart.area.useCase`,isAvailable:t.o,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>Zf)).areaChartConfig},pie:{label:`chart.pie.label`,icon:`chartPie`,description:`chart.pie.description`,useCase:`chart.pie.useCase`,isAvailable:t.o,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>$f)).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:Q,config:async()=>(await Promise.resolve().then(()=>tp)).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 Promise.resolve().then(()=>rp)).bubbleChartConfig},radar:{label:`chart.radar.label`,icon:`chartRadar`,description:`chart.radar.description`,useCase:`chart.radar.useCase`,isAvailable:t.o,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>ap)).radarChartConfig},radialBar:{label:`chart.radialBar.label`,icon:`chartRadialBar`,description:`chart.radialBar.description`,useCase:`chart.radialBar.useCase`,isAvailable:t.o,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>sp)).radialBarChartConfig},treemap:{label:`chart.treemap.label`,icon:`chartTreemap`,description:`chart.treemap.description`,useCase:`chart.treemap.useCase`,isAvailable:t.o,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>lp)).treemapChartConfig},table:{label:`chart.table.label`,icon:`chartTable`,description:`chart.table.description`,useCase:`chart.table.useCase`,config:async()=>(await Promise.resolve().then(()=>dp)).dataTableConfig},recordsTable:{label:`chart.recordsTable.label`,icon:`chartRecordsTable`,description:`chart.recordsTable.description`,useCase:`chart.recordsTable.useCase`,config:async()=>(await Promise.resolve().then(()=>pp)).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 Promise.resolve().then(()=>hp)).activityGridChartConfig},kpiNumber:{label:`chart.kpiNumber.label`,icon:`chartKpiNumber`,description:`chart.kpiNumber.description`,useCase:`chart.kpiNumber.useCase`,isAvailable:t.a,config:async()=>(await Promise.resolve().then(()=>_p)).kpiNumberConfig},kpiDelta:{label:`chart.kpiDelta.label`,icon:`chartKpiDelta`,description:`chart.kpiDelta.description`,useCase:`chart.kpiDelta.useCase`,isAvailable:t.o,config:async()=>(await Promise.resolve().then(()=>yp)).kpiDeltaConfig},kpiText:{label:`chart.kpiText.label`,icon:`chartKpiText`,description:`chart.kpiText.description`,useCase:`chart.kpiText.useCase`,isAvailable:t.a,config:async()=>(await Promise.resolve().then(()=>xp)).kpiTextConfig},markdown:{label:`chart.markdown.label`,icon:`chartMarkdown`,description:`chart.markdown.description`,useCase:`chart.markdown.useCase`,config:async()=>(await Promise.resolve().then(()=>Cp)).markdownConfig},funnel:{label:`chart.funnel.label`,icon:`chartFunnel`,description:`chart.funnel.description`,useCase:`chart.funnel.useCase`,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>Tp)).funnelChartConfig},sankey:{label:`chart.sankey.label`,icon:`chartSankey`,description:`chart.sankey.description`,useCase:`chart.sankey.useCase`,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>Dp)).sankeyChartConfig},sunburst:{label:`chart.sunburst.label`,icon:`chartSunburst`,description:`chart.sunburst.description`,useCase:`chart.sunburst.useCase`,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>kp)).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 Promise.resolve().then(()=>jp)).heatmapChartConfig},retentionHeatmap:{label:`chart.retentionHeatmap.label`,icon:`chartRetention`,description:`chart.retentionHeatmap.description`,useCase:`chart.retentionHeatmap.useCase`,config:async()=>(await Promise.resolve().then(()=>Np)).retentionHeatmapConfig},retentionCombined:{label:`chart.retentionCombined.label`,icon:`chartRetention`,description:`chart.retentionCombined.description`,useCase:`chart.retentionCombined.useCase`,config:async()=>(await Promise.resolve().then(()=>Fp)).retentionCombinedConfig},boxPlot:{label:`chart.boxPlot.label`,icon:`chartBoxPlot`,description:`chart.boxPlot.description`,useCase:`chart.boxPlot.useCase`,isAvailable:t.o,config:async()=>(await Promise.resolve().then(()=>Lp)).boxPlotChartConfig},dotStrip:{label:`chart.dotStrip.label`,icon:`chartDotStrip`,description:`chart.dotStrip.description`,useCase:`chart.dotStrip.useCase`,isAvailable:t.o,config:async()=>(await Promise.resolve().then(()=>zp)).dotStripChartConfig},waterfall:{label:`chart.waterfall.label`,icon:`chartWaterfall`,description:`chart.waterfall.description`,useCase:`chart.waterfall.useCase`,isAvailable:t.o,dependencies:Q,config:async()=>(await Promise.resolve().then(()=>Vp)).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 Promise.resolve().then(()=>Up)).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:Q,config:async()=>(await Promise.resolve().then(()=>Gp)).measureProfileChartConfig},proportionBar:{label:`chart.proportionBar.label`,icon:`chartProportionBar`,description:`chart.proportionBar.description`,useCase:`chart.proportionBar.useCase`,isAvailable:t.o,config:async()=>(await Promise.resolve().then(()=>qp)).proportionBarChartConfig},gauge:{label:`chart.gauge.label`,icon:`chartGauge`,description:`chart.gauge.description`,useCase:`chart.gauge.useCase`,isAvailable:t.a,config:async()=>(await Promise.resolve().then(()=>Yp)).gaugeChartConfig}};function Qp(e,t){return{...t,label:e.label,description:e.description,useCase:e.useCase,isAvailable:e.isAvailable}}var $p={bar:Jf,line:Xf,area:Qf,pie:ep,scatter:np,bubble:ip,radar:op,radialBar:cp,treemap:up,table:fp,recordsTable:mp,activityGrid:gp,kpiNumber:vp,kpiDelta:bp,kpiText:Sp,markdown:wp,funnel:Ep,sankey:Op,sunburst:Ap,heatmap:Mp,retentionHeatmap:Pp,retentionCombined:Ip,boxPlot:Rp,dotStrip:Bp,waterfall:Hp,candlestick:Wp,measureProfile:Kp,proportionBar:Jp,gauge:Xp},em=Object.fromEntries(Object.keys(Zp).map(e=>[e,Qp(Zp[e],$p[e])]));function tm(e){return em[e]?.recordGrain===!0}function nm(e){return Array.isArray(e)?e.length>0:!!e}function rm(e){let t=e.timeDimensions??[];return e.ungrouped?t:t.filter(e=>!!e.granularity)}function im(e,t,n,r){for(let i of e.dropZones){if(!i.mandatory||nm(n?.[i.key]))continue;let e=i.acceptTypes?.join(`/`)??`fields`;r.push(w(`server.validation.chart.dropZoneRequired`,{key:i.key,chartType:t,label:i.label,acceptDesc:e}))}}function am(e,t,n){if(nm(e?.xAxis))return;let r=t.dimensions??[],i=rm(t),a=r.length>0||i.length>0;n.push(w(a?`server.validation.chart.barXAxisRequired`:`server.validation.chart.barNeedsDimension`))}function om(e){return Array.isArray(e)?e:[e]}function sm(e,t){if(!e?.xAxis||!e?.series)return;let n=new Set(om(e.xAxis)),r=om(e.series).filter(e=>n.has(e));r.length>0&&t.push(w(`server.validation.chart.seriesDuplicatesXAxis`,{duplicates:r.join(`, `)}))}function cm(e,t,n){tm(e)&&t.ungrouped!==!0&&n.push(w(`server.validation.chart.recordGrainNeedsUngrouped`,{chartType:e}))}function lm(e,t,n){let r=em[e];if(!r||r.skipQuery)return{isValid:!0,errors:[]};let i=[];return im(r,e,t,i),cm(e,n,i),e===`bar`&&am(t,n,i),sm(t,i),{isValid:i.length===0,errors:i}}function um(e,t,n){if(e!==`bar`||nm(t?.xAxis))return{chartType:e};let r=n.dimensions??[],i=rm(n);if(r.length>0||i.length>0)return{chartType:e};let a=(n.measures??[]).length===1?`kpiNumber`:`table`;return{chartType:a,note:`Note: chartType was changed from "bar" to "${a}" because the query has no dimension, so a bar chart would have no category axis to label its bars. For a real bar chart, put the category in the query's dimensions and use a single measure. To plot several measures as an ordered profile instead, use "measureProfile".`}}function dm(e,t,n,r){if(!(e.acceptTypes??[]).includes(`measure`))return;let i=new Set;for(let r of t.dropZones){if(r.key===e.key)continue;let t=n[r.key];Array.isArray(t)?t.forEach(e=>i.add(e)):typeof t==`string`&&i.add(t)}let a=r.filter(e=>!i.has(e));a.length>0&&(n[e.key]=a[0])}function fm(e,t){let n=new Set;for(let[r,i]of Object.entries(e))if(r!==t){if(Array.isArray(i))for(let e of i)typeof e==`string`&&n.add(e);else typeof i==`string`&&n.add(i)}return n}function pm(e,t,n){let r=e.acceptTypes??[],i=[];if(r.includes(`dimension`)&&i.push(...n.dimensions),r.includes(`timeDimension`)&&i.push(...n.timeDimFields),r.includes(`measure`)&&i.push(...n.measures),i.length===0)return;let a=fm(t,e.key),o=i.filter(e=>!a.has(e));if(o.length===0)return;let s=e.maxItems??1/0,c=o.slice(0,s);c.length>0&&(t[e.key]=c)}function mm(e,t,n){let r=em[e];if(!r)return t??{};let i={...t},a=rm(n),o={measures:n.measures??[],dimensions:n.dimensions??[],timeDimFields:a.map(e=>e.dimension)};for(let e of r.dropZones)e.excludeFromInference||nm(i[e.key])||(e.key===`sizeField`||e.key===`colorField`?dm(e,r,i,o.measures):pm(e,i,o));return i}function hm(e){return e?ct(e)?w(e):e:``}function gm(e){let t=[`
824
824
  Chart config requirements by type:`];for(let n of e){let e=em[n];if(!e)continue;let r=[hm(e.description),hm(e.useCase)].filter(Boolean).join(`. `),i=r?` — ${r}.`:``,a=tm(n)?` Query MUST set "ungrouped": true, which also means one cube plus its to-one joins — an ungrouped query cannot span a hasMany relationship.`:``,o=e.dropZones.filter(e=>e.mandatory);if(o.length===0&&!e.skipQuery){t.push(` ${n}${i}${a} chartConfig auto-inferred from query.`);continue}if(e.skipQuery){t.push(` ${n}${i} Query optional: omit it for static text, or supply one to render displayConfig.content as a data template.`);continue}let s=o.map(e=>{let t=e.acceptTypes?.join(`/`)??`any`,n=e.maxItems?` (max ${e.maxItems})`:``;return`${e.key}=[${t}]${n}`});t.push(` ${n}${i}${a} Requires ${s.join(`, `)}.`)}return t.join(`
825
825
  `)}function _m(e,t,n,r){let i=new Set,a=0,o,s,c=!0;for(let n of e){let e=n[t];if(e==null){a++;continue}i.add(e);let r=typeof e==`number`?e:Number(e);typeof e==`boolean`||Number.isNaN(r)?c=!1:(o=o===void 0||r<o?r:o,s=s===void 0||r>s?r:s)}return{field:t,kind:n,...r?{type:r}:{},distinctCount:i.size,nullCount:a,...c&&o!==void 0?{min:o,max:s}:{}}}function vm(e,t){if(e.length===0)return[];let n=[],r=new Set,i=[[`dimension`,t?.dimensions],[`timeDimension`,t?.timeDimensions],[`measure`,t?.measures]];for(let[t,a]of i)for(let[i,o]of Object.entries(a??{}))r.add(i),n.push(_m(e,i,t,o?.type));for(let t of Object.keys(e[0]))r.has(t)||n.push(_m(e,t,`dimension`,void 0));return n}var ym={valueField:{type:`array`,items:{type:`string`},description:`heatmap and activityGrid: single measure driving cell colour intensity. Required for both — the chart renders empty without it.`},dateField:{type:`array`,items:{type:`string`},description:`activityGrid only: single time dimension laying out the grid. Query it with day granularity over several months, or the grid has nothing to show.`}},bm={minValue:{type:`number`,description:`gauge only: scale minimum (defaults to 0).`},maxValue:{type:`number`,description:`gauge only: scale maximum. ALWAYS set this — without it the gauge scales to the data it was given, so a single value always reads as 100%.`},template:{type:`string`,description:'kpiText only: sentence template around the value, e.g. "${fieldLabel}: ${value}". Defaults to that if omitted.'}},xm={columns:{type:`array`,items:{type:`string`},description:`recordsTable only: fields to render as columns, in this order. Omit to show every field the query returns, in query order.`},hiddenColumns:{type:`array`,items:{type:`string`},description:`recordsTable only: fields fetched for row context or rowLink tokens but never displayed (e.g. an id used in the URL template). Leave empty unless a field is genuinely only needed behind the scenes — anything listed here disappears from the table.`}},Sm={columnFormats:{type:`object`,description:`recordsTable only: how each column renders, keyed by field name (e.g. "Employees.salary"). Formats are never inferred from the data — a column is plain text unless you say otherwise, so set this for any numeric, date, status or ratio column.`,additionalProperties:{type:`object`,required:[`kind`],properties:{kind:{type:`string`,enum:[`text`,`number`,`date`,`badge`,`progress`,`link`],description:`Required on every entry. text: as-is. number: formatted numeric. date: formatted date. badge: coloured pill for statuses/categories. progress: bar or ring for a bounded value. link: the value as a link to linkTemplate. Use "text" when you only want to set a label.`},numberFormat:{type:`object`,description:`kind "number": { unit: "currency"|"percent"|"number"|"custom", decimals, abbreviate (K/M/B), currencyCode, customPrefix, customSuffix }.`},dateGranularity:{type:`string`,description:`kind "date": granularity to render at (e.g. "day", "month", "year").`},badgeColors:{type:`array`,description:`kind "badge": an ARRAY of { value, colorIndex } entries, not an object keyed by value. colorIndex is a number index into the dashboard palette (0, 1, 2, …), never a colour name like "green" — the palette is themed, so names would not follow it. A value with no entry renders neutral rather than being assigned a guessed colour.`,items:{type:`object`,required:[`value`,`colorIndex`],properties:{value:{type:`string`,description:`Cell value to colour, matched exactly`},colorIndex:{type:`number`,description:`Index into the dashboard colour palette`}}}},progressMin:{type:`number`,description:`kind "progress": lower bound (default 0). Values are clamped.`},progressMax:{type:`number`,description:`kind "progress": upper bound (default 100). Values are clamped.`},progressStyle:{type:`string`,enum:[`bar`,`circle`],description:`kind "progress": full-width bar, or a compact ring for narrow columns.`},progressBands:{type:`array`,description:`kind "progress": colour bands, as an ARRAY of { value, colorIndex } entries. A cell takes the colour of the highest band whose value is at or below the cell value, so { value: 0, colorIndex: 3 }, { value: 50, colorIndex: 2 }, { value: 80, colorIndex: 1 } reads red below 50, then yellow, then green from 80. Below every band the bar keeps its default colour. colorIndex is a number index into the dashboard palette, never a colour name.`,items:{type:`object`,required:[`value`,`colorIndex`],properties:{value:{type:`number`,description:`Where the band starts, in the column's own units`},colorIndex:{type:`integer`,minimum:0,description:`Index into the dashboard colour palette`}}}},label:{type:`string`,description:`Header override; defaults to the field title from the cube metadata.`},align:{type:`string`,enum:[`left`,`right`],description:`Cell alignment. Numbers usually read better right-aligned.`},linkTemplate:{type:`string`,description:`kind "link": URL with {Cube.field} tokens substituted from the row, including hidden columns (e.g. "/employees/{Employees.id}"). Relative paths and http(s) URLs only. The cell link wins over rowLink for that cell.`}}}},rowLink:{type:`object`,description:`recordsTable only: makes each row a link.`,required:[`urlTemplate`],properties:{urlTemplate:{type:`string`,description:`URL with {Cube.field} tokens substituted from the row, including hidden columns (e.g. "/employees/{Employees.id}"). Relative paths and http(s) URLs only.`},target:{type:`string`,enum:[`self`,`blank`],description:`Open in the same tab (default) or a new one.`}}},pageSize:{type:`number`,enum:[25,50,100],description:`recordsTable only: rows per page (default 25).`}};function Cm(e){if(!e||typeof e!=`object`)return!1;let t=e=>Array.isArray(e)?e.length:0;return t(e.measures)>0||t(e.dimensions)>0||t(e.timeDimensions)>0}var wm='With a query attached, `content` is rendered as a Knap template over the result rows. Variables: `rows` (rows keyed by snake_case alias, so Employees.avgSalary becomes employees_avg_salary), `labelled` (same rows keyed by field label — use this for `{{ labelled | table }}` so column headers read well), `data` (raw rows, addressed as `{{ data[0]["Employees.count"] }}`), `rowCount`, `first` and `last`. Filters include sum, map, join, length, sort, reverse, slice, round, number_format, date and table. Example: `We employ {{ rows | map:"employees_count" | sum }} people across {{ rowCount }} teams.` A template cannot sort and then index, so rely on the query\'s own order via `first` and `last`.',Tm=`bar.line.area.pie.scatter.radar.bubble.table.kpiNumber.kpiDelta.kpiText.funnel.heatmap.sankey.sunburst.retentionHeatmap.retentionCombined.boxPlot.markdown.recordsTable.treemap.radialBar.proportionBar.dotStrip.waterfall.measureProfile.activityGrid.gauge.candlestick`.split(`.`);function Em(){return[{name:`discover_cubes`,description:`Search for available data cubes by topic or intent. Call this FIRST to understand what data is available. Returns cube names, measures, dimensions, and relationships.`,parameters:{type:`object`,properties:{topic:{type:`string`,description:`Keyword to search (e.g., "sales", "employees")`},intent:{type:`string`,description:`Natural language goal (e.g., "analyze productivity trends")`},limit:{type:`number`,description:`Max results (default: 10)`},minScore:{type:`number`,description:`Min relevance 0-1 (default: 0.1)`}}}},{name:`get_cube_metadata`,description:`Get full metadata for all registered cubes including all measures, dimensions, types, and relationships. Use this for detailed schema information.`,parameters:{type:`object`,properties:{}}},{name:`execute_query`,description:`Execute a semantic query and return data results. Supports standard queries (measures/dimensions) and analysis modes (funnel/flow/retention). Only provide ONE mode per call.`,parameters:{type:`object`,properties:sf}},{name:`add_portlet`,description:`Add a chart visualization to the notebook.
826
826
  `+gm(Tm)+`
@@ -16984,7 +16984,6 @@ var Ap = /* @__PURE__ */ e({ barChartConfig: () => jp }), jp = {
16984
16984
  available: !1,
16985
16985
  reason: "chart.availability.bubble"
16986
16986
  } : { available: !0 },
16987
- dependencies: Q,
16988
16987
  config: async () => (await Promise.resolve().then(() => Bp)).bubbleChartConfig
16989
16988
  },
16990
16989
  radar: {
@@ -17194,10 +17193,6 @@ var Ap = /* @__PURE__ */ e({ barChartConfig: () => jp }), jp = {
17194
17193
  description: "chart.gauge.description",
17195
17194
  useCase: "chart.gauge.useCase",
17196
17195
  isAvailable: r,
17197
- dependencies: {
17198
- packageName: "d3-shape",
17199
- installCommand: "npm install d3-shape"
17200
- },
17201
17196
  config: async () => (await Promise.resolve().then(() => Mm)).gaugeChartConfig
17202
17197
  }
17203
17198
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-cube",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Drizzle ORM-first semantic layer with Cube.js compatibility. Type-safe analytics and dashboards with SQL injection protection.",
5
5
  "main": "./dist/server/index.js",
6
6
  "types": "./dist/server/index.d.ts",
@@ -1 +0,0 @@
1
- export { v as activityGridChartConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.activityGridChartConfig=e.v;
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.areaChartConfig=e.D;
@@ -1 +0,0 @@
1
- export { D as areaChartConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- export { k as barChartConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.barChartConfig=e.k;
@@ -1 +0,0 @@
1
- export { s as boxPlotChartConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.boxPlotChartConfig=e.s;
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.bubbleChartConfig=e.w;
@@ -1 +0,0 @@
1
- export { w as bubbleChartConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- export { i as candlestickChartConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.candlestickChartConfig=e.i;
@@ -1 +0,0 @@
1
- export { b as dataTableConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.dataTableConfig=e.b;
@@ -1 +0,0 @@
1
- export { o as dotStripChartConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.dotStripChartConfig=e.o;
@@ -1 +0,0 @@
1
- export { p as funnelChartConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.funnelChartConfig=e.p;
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.gaugeChartConfig=e.t;
@@ -1 +0,0 @@
1
- export { t as gaugeChartConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- export { u as heatmapChartConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.heatmapChartConfig=e.u;
@@ -1 +0,0 @@
1
- export { g as kpiDeltaConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.kpiDeltaConfig=e.g;
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.kpiNumberConfig=e._;
@@ -1 +0,0 @@
1
- export { _ as kpiNumberConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.kpiTextConfig=e.h;
@@ -1 +0,0 @@
1
- export { h as kpiTextConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- export { O as lineChartConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.lineChartConfig=e.O;
@@ -1 +0,0 @@
1
- export { m as markdownConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.markdownConfig=e.m;
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.measureProfileChartConfig=e.r;
@@ -1 +0,0 @@
1
- export { r as measureProfileChartConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.pieChartConfig=e.E;
@@ -1 +0,0 @@
1
- export { E as pieChartConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.proportionBarChartConfig=e.n;
@@ -1 +0,0 @@
1
- export { n as proportionBarChartConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.radarChartConfig=e.C;
@@ -1 +0,0 @@
1
- export { C as radarChartConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- export { S as radialBarChartConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.radialBarChartConfig=e.S;
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.recordsTableConfig=e.y;
@@ -1 +0,0 @@
1
- export { y as recordsTableConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- export { c as retentionCombinedConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.retentionCombinedConfig=e.c;
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.retentionHeatmapConfig=e.l;
@@ -1 +0,0 @@
1
- export { l as retentionHeatmapConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- export { f as sankeyChartConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.sankeyChartConfig=e.f;
@@ -1 +0,0 @@
1
- export { T as scatterChartConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.scatterChartConfig=e.T;
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.sunburstChartConfig=e.d;
@@ -1 +0,0 @@
1
- export { d as sunburstChartConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.treemapChartConfig=e.x;
@@ -1 +0,0 @@
1
- export { x as treemapChartConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- export { a as waterfallChartConfig } from "./handler-C9ZFhsv6.js";
@@ -1 +0,0 @@
1
- const e=require("./handler-C3oYSaVM.cjs");exports.waterfallChartConfig=e.a;