@undp/data-viz 2.3.17 → 2.4.0

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 (440) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.d.ts +2 -0
  4. package/dist/AreaChart.js +356 -354
  5. package/dist/AreaChart.js.map +1 -1
  6. package/dist/{Axis-Jt_tmhxS.cjs → Axis-BTaS9oPQ.cjs} +2 -2
  7. package/dist/{Axis-Jt_tmhxS.cjs.map → Axis-BTaS9oPQ.cjs.map} +1 -1
  8. package/dist/{Axis-RyGdzLrG.js → Axis-CNZYWzH0.js} +2 -2
  9. package/dist/{Axis-RyGdzLrG.js.map → Axis-CNZYWzH0.js.map} +1 -1
  10. package/dist/{AxisTitle-DGjX1_2v.js → AxisTitle-CyLCqpW6.js} +2 -2
  11. package/dist/{AxisTitle-DGjX1_2v.js.map → AxisTitle-CyLCqpW6.js.map} +1 -1
  12. package/dist/{AxisTitle-DV4n0RxE.cjs → AxisTitle-DP_evhbe.cjs} +2 -2
  13. package/dist/{AxisTitle-DV4n0RxE.cjs.map → AxisTitle-DP_evhbe.cjs.map} +1 -1
  14. package/dist/BarGraph.cjs +1 -1
  15. package/dist/BarGraph.cjs.map +1 -1
  16. package/dist/BarGraph.d.ts +6 -0
  17. package/dist/BarGraph.js +1735 -1726
  18. package/dist/BarGraph.js.map +1 -1
  19. package/dist/BasicStatCard.cjs +1 -1
  20. package/dist/BasicStatCard.cjs.map +1 -1
  21. package/dist/BasicStatCard.d.ts +2 -0
  22. package/dist/BasicStatCard.js +46 -45
  23. package/dist/BasicStatCard.js.map +1 -1
  24. package/dist/BeeSwarmChart.cjs +1 -1
  25. package/dist/BeeSwarmChart.cjs.map +1 -1
  26. package/dist/BeeSwarmChart.d.ts +2 -0
  27. package/dist/BeeSwarmChart.js +266 -266
  28. package/dist/BeeSwarmChart.js.map +1 -1
  29. package/dist/BiVariateChoroplethMap.cjs +1 -1
  30. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  31. package/dist/BiVariateChoroplethMap.d.ts +2 -0
  32. package/dist/BiVariateChoroplethMap.js +300 -298
  33. package/dist/BiVariateChoroplethMap.js.map +1 -1
  34. package/dist/BulletChart.cjs +1 -1
  35. package/dist/BulletChart.cjs.map +1 -1
  36. package/dist/BulletChart.d.ts +2 -0
  37. package/dist/BulletChart.js +469 -469
  38. package/dist/BulletChart.js.map +1 -1
  39. package/dist/ButterflyChart.cjs +1 -1
  40. package/dist/ButterflyChart.cjs.map +1 -1
  41. package/dist/ButterflyChart.d.ts +2 -0
  42. package/dist/ButterflyChart.js +330 -328
  43. package/dist/ButterflyChart.js.map +1 -1
  44. package/dist/ChoroplethMap.cjs +1 -1
  45. package/dist/ChoroplethMap.cjs.map +1 -1
  46. package/dist/ChoroplethMap.d.ts +2 -0
  47. package/dist/ChoroplethMap.js +303 -301
  48. package/dist/ChoroplethMap.js.map +1 -1
  49. package/dist/CirclePackingGraph.cjs +1 -1
  50. package/dist/CirclePackingGraph.d.ts +2 -0
  51. package/dist/CirclePackingGraph.js +4 -4
  52. package/dist/ColorLegend.cjs +1 -1
  53. package/dist/ColorLegend.js +2 -2
  54. package/dist/ColorLegendWithMouseOver.cjs +1 -1
  55. package/dist/ColorLegendWithMouseOver.js +2 -2
  56. package/dist/CopyTextButton.cjs +1 -1
  57. package/dist/CopyTextButton.cjs.map +1 -1
  58. package/dist/CopyTextButton.js +7 -9
  59. package/dist/CopyTextButton.js.map +1 -1
  60. package/dist/CsvDownloadButton.cjs +1 -1
  61. package/dist/CsvDownloadButton.js +2 -2
  62. package/dist/DataCards.cjs +1 -1
  63. package/dist/DataCards.cjs.map +1 -1
  64. package/dist/DataCards.js +10 -12
  65. package/dist/DataCards.js.map +1 -1
  66. package/dist/DataTable.cjs +1 -1
  67. package/dist/DataTable.cjs.map +1 -1
  68. package/dist/DataTable.d.ts +2 -0
  69. package/dist/DataTable.js +103 -102
  70. package/dist/DataTable.js.map +1 -1
  71. package/dist/{DetailsModal-C3qlUyFK.js → DetailsModal-B2XBWR7w.js} +4 -4
  72. package/dist/{DetailsModal-C3qlUyFK.js.map → DetailsModal-B2XBWR7w.js.map} +1 -1
  73. package/dist/{DetailsModal-DIRTulvr.cjs → DetailsModal-jmmKRMRM.cjs} +2 -2
  74. package/dist/{DetailsModal-DIRTulvr.cjs.map → DetailsModal-jmmKRMRM.cjs.map} +1 -1
  75. package/dist/DifferenceLineChart.cjs +1 -1
  76. package/dist/DifferenceLineChart.cjs.map +1 -1
  77. package/dist/DifferenceLineChart.d.ts +4 -0
  78. package/dist/DifferenceLineChart.js +441 -437
  79. package/dist/DifferenceLineChart.js.map +1 -1
  80. package/dist/DonutChart.cjs +1 -1
  81. package/dist/DonutChart.cjs.map +1 -1
  82. package/dist/DonutChart.d.ts +4 -0
  83. package/dist/DonutChart.js +146 -142
  84. package/dist/DonutChart.js.map +1 -1
  85. package/dist/DotDensityMap.cjs +1 -1
  86. package/dist/DotDensityMap.cjs.map +1 -1
  87. package/dist/DotDensityMap.js +265 -268
  88. package/dist/DotDensityMap.js.map +1 -1
  89. package/dist/{DropdownSelect-NNpOs7DX.cjs → DropdownSelect-CX1yMemd.cjs} +2 -2
  90. package/dist/DropdownSelect-CX1yMemd.cjs.map +1 -0
  91. package/dist/{DropdownSelect-B2WTeedJ.js → DropdownSelect-Dz7imdTB.js} +6 -9
  92. package/dist/DropdownSelect-Dz7imdTB.js.map +1 -0
  93. package/dist/DualAxisLineChart.cjs +1 -1
  94. package/dist/DualAxisLineChart.cjs.map +1 -1
  95. package/dist/DualAxisLineChart.d.ts +4 -0
  96. package/dist/DualAxisLineChart.js +336 -332
  97. package/dist/DualAxisLineChart.js.map +1 -1
  98. package/dist/DumbbellChart.cjs +1 -1
  99. package/dist/DumbbellChart.cjs.map +1 -1
  100. package/dist/DumbbellChart.d.ts +2 -0
  101. package/dist/DumbbellChart.js +484 -484
  102. package/dist/DumbbellChart.js.map +1 -1
  103. package/dist/{EmptyState-B4c-CrXs.cjs → EmptyState-CFmiFPHz.cjs} +2 -2
  104. package/dist/{EmptyState-B4c-CrXs.cjs.map → EmptyState-CFmiFPHz.cjs.map} +1 -1
  105. package/dist/{EmptyState-B3fPoH6L.js → EmptyState-CaxXCkiN.js} +4 -4
  106. package/dist/{EmptyState-B3fPoH6L.js.map → EmptyState-CaxXCkiN.js.map} +1 -1
  107. package/dist/ExcelDownloadButton.cjs +1 -1
  108. package/dist/ExcelDownloadButton.js +2 -2
  109. package/dist/FootNote.cjs +1 -1
  110. package/dist/FootNote.js +2 -2
  111. package/dist/GeoHubCompareMaps.cjs +1 -1
  112. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  113. package/dist/GeoHubCompareMaps.js +111 -111
  114. package/dist/GeoHubCompareMaps.js.map +1 -1
  115. package/dist/GeoHubMap.cjs +1 -1
  116. package/dist/GeoHubMap.cjs.map +1 -1
  117. package/dist/GeoHubMap.js +71 -71
  118. package/dist/GeoHubMap.js.map +1 -1
  119. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  120. package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
  121. package/dist/GeoHubMapWithLayerSelection.js +83 -83
  122. package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
  123. package/dist/{GraphContainer-DwMxWRCi.js → GraphContainer-B8ZqOzKI.js} +2 -2
  124. package/dist/{GraphContainer-DwMxWRCi.js.map → GraphContainer-B8ZqOzKI.js.map} +1 -1
  125. package/dist/{GraphContainer-B1EDxJ0S.cjs → GraphContainer-Cul9b74X.cjs} +2 -2
  126. package/dist/{GraphContainer-B1EDxJ0S.cjs.map → GraphContainer-Cul9b74X.cjs.map} +1 -1
  127. package/dist/GraphDescription.cjs +1 -1
  128. package/dist/GraphDescription.js +2 -2
  129. package/dist/{GraphEl-CnJf8b50.js → GraphEl-B73N4RIA.js} +48 -10
  130. package/dist/GraphEl-B73N4RIA.js.map +1 -0
  131. package/dist/GraphEl-Lt1og0C-.cjs +2 -0
  132. package/dist/GraphEl-Lt1og0C-.cjs.map +1 -0
  133. package/dist/GraphFooter.cjs +1 -1
  134. package/dist/GraphFooter.js +2 -2
  135. package/dist/GraphHeader.cjs +1 -1
  136. package/dist/GraphHeader.js +1 -1
  137. package/dist/GraphTitle.cjs +1 -1
  138. package/dist/GraphTitle.js +2 -2
  139. package/dist/GriddedGraphs.cjs +1 -1
  140. package/dist/GriddedGraphs.d.ts +1 -0
  141. package/dist/GriddedGraphs.js +6 -6
  142. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  143. package/dist/GriddedGraphsFromConfig.d.ts +1 -0
  144. package/dist/GriddedGraphsFromConfig.js +2 -2
  145. package/dist/HeatMap.cjs +1 -1
  146. package/dist/HeatMap.cjs.map +1 -1
  147. package/dist/HeatMap.d.ts +4 -0
  148. package/dist/HeatMap.js +158 -155
  149. package/dist/HeatMap.js.map +1 -1
  150. package/dist/Histogram.cjs +1 -1
  151. package/dist/Histogram.cjs.map +1 -1
  152. package/dist/Histogram.d.ts +2 -0
  153. package/dist/Histogram.js +81 -80
  154. package/dist/Histogram.js.map +1 -1
  155. package/dist/HybridMap.cjs +1 -1
  156. package/dist/HybridMap.cjs.map +1 -1
  157. package/dist/HybridMap.d.ts +2 -0
  158. package/dist/HybridMap.js +314 -315
  159. package/dist/HybridMap.js.map +1 -1
  160. package/dist/ImageDownloadButton.cjs +1 -1
  161. package/dist/ImageDownloadButton.js +2 -2
  162. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  163. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  164. package/dist/LineChartWithConfidenceInterval.d.ts +2 -0
  165. package/dist/LineChartWithConfidenceInterval.js +367 -365
  166. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  167. package/dist/LinearColorLegend.cjs +1 -1
  168. package/dist/LinearColorLegend.cjs.map +1 -1
  169. package/dist/LinearColorLegend.d.ts +1 -0
  170. package/dist/LinearColorLegend.js +38 -37
  171. package/dist/LinearColorLegend.js.map +1 -1
  172. package/dist/{Modal-ZX55hLH-.cjs → Modal-BIErPPKT.cjs} +5 -5
  173. package/dist/{Modal-ZX55hLH-.cjs.map → Modal-BIErPPKT.cjs.map} +1 -1
  174. package/dist/{Modal-BV4rkoLM.js → Modal-CrUYln5V.js} +4 -4
  175. package/dist/{Modal-BV4rkoLM.js.map → Modal-CrUYln5V.js.map} +1 -1
  176. package/dist/MultiGraphDashboard.cjs +1 -1
  177. package/dist/MultiGraphDashboard.d.ts +1 -0
  178. package/dist/MultiGraphDashboard.js +4 -4
  179. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  180. package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
  181. package/dist/MultiGraphDashboardFromConfig.js +2 -2
  182. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  183. package/dist/MultiGraphDashboardWideToLongFormat.js +4 -4
  184. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  185. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +2 -2
  186. package/dist/MultiLineAltChart.cjs +1 -1
  187. package/dist/MultiLineAltChart.cjs.map +1 -1
  188. package/dist/MultiLineAltChart.d.ts +2 -0
  189. package/dist/MultiLineAltChart.js +419 -420
  190. package/dist/MultiLineAltChart.js.map +1 -1
  191. package/dist/MultiLineChart.cjs +1 -1
  192. package/dist/MultiLineChart.cjs.map +1 -1
  193. package/dist/MultiLineChart.d.ts +4 -0
  194. package/dist/MultiLineChart.js +410 -409
  195. package/dist/MultiLineChart.js.map +1 -1
  196. package/dist/ParetoChart.cjs +1 -1
  197. package/dist/ParetoChart.cjs.map +1 -1
  198. package/dist/ParetoChart.d.ts +2 -0
  199. package/dist/ParetoChart.js +273 -271
  200. package/dist/ParetoChart.js.map +1 -1
  201. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  202. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
  203. package/dist/PerformanceIntensiveMultiGraphDashboard.js +4 -4
  204. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  205. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
  206. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +2 -2
  207. package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
  208. package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
  209. package/dist/PerformanceIntensiveScrollStory.js +3 -3
  210. package/dist/RadarChart.cjs +1 -1
  211. package/dist/RadarChart.cjs.map +1 -1
  212. package/dist/RadarChart.d.ts +2 -0
  213. package/dist/RadarChart.js +221 -219
  214. package/dist/RadarChart.js.map +1 -1
  215. package/dist/{ReferenceLine-M9aP3dj-.cjs → ReferenceLine-CpU4G01Y.cjs} +2 -2
  216. package/dist/{ReferenceLine-M9aP3dj-.cjs.map → ReferenceLine-CpU4G01Y.cjs.map} +1 -1
  217. package/dist/{ReferenceLine-CNEjAYvv.js → ReferenceLine-D41VuUhE.js} +3 -3
  218. package/dist/{ReferenceLine-CNEjAYvv.js.map → ReferenceLine-D41VuUhE.js.map} +1 -1
  219. package/dist/{RegressionLine-Ci-Dh0w0.cjs → RegressionLine-BFoBiVJk.cjs} +2 -2
  220. package/dist/{RegressionLine-Ci-Dh0w0.cjs.map → RegressionLine-BFoBiVJk.cjs.map} +1 -1
  221. package/dist/{RegressionLine-BDrndQxo.js → RegressionLine-CuwB42I6.js} +4 -4
  222. package/dist/{RegressionLine-BDrndQxo.js.map → RegressionLine-CuwB42I6.js.map} +1 -1
  223. package/dist/SVGDownloadButton.cjs +1 -1
  224. package/dist/SVGDownloadButton.js +2 -2
  225. package/dist/SankeyChart.cjs +1 -1
  226. package/dist/SankeyChart.cjs.map +1 -1
  227. package/dist/SankeyChart.d.ts +2 -0
  228. package/dist/SankeyChart.js +404 -408
  229. package/dist/SankeyChart.js.map +1 -1
  230. package/dist/ScatterPlot.cjs +1 -1
  231. package/dist/ScatterPlot.cjs.map +1 -1
  232. package/dist/ScatterPlot.d.ts +2 -0
  233. package/dist/ScatterPlot.js +444 -445
  234. package/dist/ScatterPlot.js.map +1 -1
  235. package/dist/ScrollStory.cjs +1 -1
  236. package/dist/ScrollStory.d.ts +1 -0
  237. package/dist/ScrollStory.js +3 -3
  238. package/dist/SimpleLineChart.cjs +1 -1
  239. package/dist/SimpleLineChart.cjs.map +1 -1
  240. package/dist/SimpleLineChart.d.ts +2 -0
  241. package/dist/SimpleLineChart.js +360 -358
  242. package/dist/SimpleLineChart.js.map +1 -1
  243. package/dist/SingleGraphDashboard.cjs +1 -1
  244. package/dist/SingleGraphDashboard.d.ts +1 -0
  245. package/dist/SingleGraphDashboard.js +6 -6
  246. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  247. package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
  248. package/dist/SingleGraphDashboardFromConfig.js +2 -2
  249. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  250. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
  251. package/dist/SingleGraphDashboardGeoHubMaps.js +3 -3
  252. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  253. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
  254. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +2 -2
  255. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  256. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
  257. package/dist/SingleGraphDashboardThreeDGraphs.js +6 -6
  258. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  259. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
  260. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +2 -2
  261. package/dist/SlopeChart.cjs +1 -1
  262. package/dist/SlopeChart.cjs.map +1 -1
  263. package/dist/SlopeChart.js +259 -262
  264. package/dist/SlopeChart.js.map +1 -1
  265. package/dist/{Source-BOSAl3UX.cjs → Source-PKuwZOn3.cjs} +2 -2
  266. package/dist/{Source-BOSAl3UX.cjs.map → Source-PKuwZOn3.cjs.map} +1 -1
  267. package/dist/{Source-Djkz-7jX.js → Source-QGk8vhkS.js} +3 -3
  268. package/dist/{Source-Djkz-7jX.js.map → Source-QGk8vhkS.js.map} +1 -1
  269. package/dist/Source.cjs +1 -1
  270. package/dist/Source.js +3 -3
  271. package/dist/SparkLine.cjs +1 -1
  272. package/dist/SparkLine.js +3 -3
  273. package/dist/{Spinner-CtJETd5V.js → Spinner-B2IIKg9r.js} +2 -2
  274. package/dist/{Spinner-CtJETd5V.js.map → Spinner-B2IIKg9r.js.map} +1 -1
  275. package/dist/{Spinner-jTMOLuw_.cjs → Spinner-WHzzloYQ.cjs} +2 -2
  276. package/dist/{Spinner-jTMOLuw_.cjs.map → Spinner-WHzzloYQ.cjs.map} +1 -1
  277. package/dist/StatCardFromData.cjs +1 -1
  278. package/dist/StatCardFromData.cjs.map +1 -1
  279. package/dist/StatCardFromData.d.ts +4 -0
  280. package/dist/StatCardFromData.js +97 -95
  281. package/dist/StatCardFromData.js.map +1 -1
  282. package/dist/StripChart.cjs +1 -1
  283. package/dist/StripChart.cjs.map +1 -1
  284. package/dist/StripChart.d.ts +2 -0
  285. package/dist/StripChart.js +343 -343
  286. package/dist/StripChart.js.map +1 -1
  287. package/dist/ThreeDGlobe.cjs +1 -1
  288. package/dist/ThreeDGlobe.cjs.map +1 -1
  289. package/dist/ThreeDGlobe.d.ts +2 -0
  290. package/dist/ThreeDGlobe.js +198 -196
  291. package/dist/ThreeDGlobe.js.map +1 -1
  292. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  293. package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -1
  294. package/dist/ThresholdColorLegendWithMouseOver.d.ts +2 -0
  295. package/dist/ThresholdColorLegendWithMouseOver.js +50 -48
  296. package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
  297. package/dist/{Tooltip-CohiIbLZ.js → Tooltip-Bj-s__cI.js} +3 -3
  298. package/dist/{Tooltip-CohiIbLZ.js.map → Tooltip-Bj-s__cI.js.map} +1 -1
  299. package/dist/{Tooltip-BLa2EfMs.cjs → Tooltip-Hr46paWP.cjs} +2 -2
  300. package/dist/{Tooltip-BLa2EfMs.cjs.map → Tooltip-Hr46paWP.cjs.map} +1 -1
  301. package/dist/TreeMapGraph.cjs +1 -1
  302. package/dist/TreeMapGraph.cjs.map +1 -1
  303. package/dist/TreeMapGraph.d.ts +2 -0
  304. package/dist/TreeMapGraph.js +139 -140
  305. package/dist/TreeMapGraph.js.map +1 -1
  306. package/dist/Types.d.ts +1 -0
  307. package/dist/{Typography-DMVW6JnV.js → Typography-BO0gQDIT.js} +2 -2
  308. package/dist/{Typography-DMVW6JnV.js.map → Typography-BO0gQDIT.js.map} +1 -1
  309. package/dist/{Typography-CZZxlj1W.cjs → Typography-BqmyF1gP.cjs} +2 -2
  310. package/dist/{Typography-CZZxlj1W.cjs.map → Typography-BqmyF1gP.cjs.map} +1 -1
  311. package/dist/UnitChart.cjs +1 -1
  312. package/dist/UnitChart.cjs.map +1 -1
  313. package/dist/UnitChart.d.ts +4 -0
  314. package/dist/UnitChart.js +88 -86
  315. package/dist/UnitChart.js.map +1 -1
  316. package/dist/WaterfallChart.cjs +1 -1
  317. package/dist/WaterfallChart.cjs.map +1 -1
  318. package/dist/WaterfallChart.d.ts +2 -0
  319. package/dist/WaterfallChart.js +257 -258
  320. package/dist/WaterfallChart.js.map +1 -1
  321. package/dist/{XAxesLabels-IwjMJkYS.js → XAxesLabels-B9gkjUiC.js} +3 -3
  322. package/dist/{XAxesLabels-IwjMJkYS.js.map → XAxesLabels-B9gkjUiC.js.map} +1 -1
  323. package/dist/{XAxesLabels-C6o9jJal.cjs → XAxesLabels-C03jHniq.cjs} +2 -2
  324. package/dist/{XAxesLabels-C6o9jJal.cjs.map → XAxesLabels-C03jHniq.cjs.map} +1 -1
  325. package/dist/XTicksAndGridLines-C5DuC5oY.cjs +2 -0
  326. package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +1 -0
  327. package/dist/XTicksAndGridLines-gdbGX2rm.js +39 -0
  328. package/dist/XTicksAndGridLines-gdbGX2rm.js.map +1 -0
  329. package/dist/{YAxesLabels-BQ2aCazV.cjs → YAxesLabels-DeENFC2M.cjs} +2 -2
  330. package/dist/{YAxesLabels-BQ2aCazV.cjs.map → YAxesLabels-DeENFC2M.cjs.map} +1 -1
  331. package/dist/{YAxesLabels-DoGvgHdw.js → YAxesLabels-hWEUCTvs.js} +3 -3
  332. package/dist/{YAxesLabels-DoGvgHdw.js.map → YAxesLabels-hWEUCTvs.js.map} +1 -1
  333. package/dist/YTicksAndGridLines-CsNSq9W9.js +39 -0
  334. package/dist/YTicksAndGridLines-CsNSq9W9.js.map +1 -0
  335. package/dist/YTicksAndGridLines-DFjm8RCc.cjs +2 -0
  336. package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +1 -0
  337. package/dist/{checkIfMultiple-TOaaUwS7.cjs → checkIfMultiple-CH5tqj4q.cjs} +2 -2
  338. package/dist/checkIfMultiple-CH5tqj4q.cjs.map +1 -0
  339. package/dist/{checkIfMultiple-B97uOUVq.js → checkIfMultiple-Dpyy6BUP.js} +6 -6
  340. package/dist/checkIfMultiple-Dpyy6BUP.js.map +1 -0
  341. package/dist/{customArea-B1LWQBmM.cjs → customArea-BAcQ3pBM.cjs} +2 -2
  342. package/dist/{customArea-B1LWQBmM.cjs.map → customArea-BAcQ3pBM.cjs.map} +1 -1
  343. package/dist/{customArea-Cc2whe6P.js → customArea-D89lETG0.js} +3 -3
  344. package/dist/{customArea-Cc2whe6P.js.map → customArea-D89lETG0.js.map} +1 -1
  345. package/dist/getSliderMarks-BzrpHrHS.cjs +2 -0
  346. package/dist/getSliderMarks-BzrpHrHS.cjs.map +1 -0
  347. package/dist/{getSliderMarks-vXsR8RrR.js → getSliderMarks-X-_goqH9.js} +3 -4
  348. package/dist/getSliderMarks-X-_goqH9.js.map +1 -0
  349. package/dist/{index-CZ0elhKR.js → index-ApTBN0kp.js} +20 -10
  350. package/dist/{index-CZ0elhKR.js.map → index-ApTBN0kp.js.map} +1 -1
  351. package/dist/index-B0Awa_de.js +377 -0
  352. package/dist/index-B0Awa_de.js.map +1 -0
  353. package/dist/{index-sbKVyHS2.cjs → index-BhI7mBJx.cjs} +2 -2
  354. package/dist/{index-sbKVyHS2.cjs.map → index-BhI7mBJx.cjs.map} +1 -1
  355. package/dist/{index-D69M6klB.cjs → index-BuhBhuCq.cjs} +2 -2
  356. package/dist/{index-D69M6klB.cjs.map → index-BuhBhuCq.cjs.map} +1 -1
  357. package/dist/{index-CHPV5EwG-BCLAYDCV.js → index-CHPV5EwG-BzibaIRc.js} +5 -9
  358. package/dist/index-CHPV5EwG-BzibaIRc.js.map +1 -0
  359. package/dist/{index-CHPV5EwG-6v2a2njQ.cjs → index-CHPV5EwG-D4pAp7u0.cjs} +3 -3
  360. package/dist/index-CHPV5EwG-D4pAp7u0.cjs.map +1 -0
  361. package/dist/index-CP8cmNzt.cjs +2 -0
  362. package/dist/index-CP8cmNzt.cjs.map +1 -0
  363. package/dist/{index-Co3YGYe1.js → index-Cv_5q6Rb.js} +3 -3
  364. package/dist/{index-Co3YGYe1.js.map → index-Cv_5q6Rb.js.map} +1 -1
  365. package/dist/{index-D_dtv_T9.js → index-DHVGV8Df.js} +3 -3
  366. package/dist/{index-D_dtv_T9.js.map → index-DHVGV8Df.js.map} +1 -1
  367. package/dist/{index-CoobIWNj.cjs → index-FXfr51ZM.cjs} +2 -2
  368. package/dist/{index-CoobIWNj.cjs.map → index-FXfr51ZM.cjs.map} +1 -1
  369. package/dist/{index-D6CYcVc7-BOa7Dpvf.js → index-Scxs_wcm-BAjU0Cob.js} +16 -16
  370. package/dist/index-Scxs_wcm-BAjU0Cob.js.map +1 -0
  371. package/dist/index-Scxs_wcm-DUDU-Gll.cjs +2 -0
  372. package/dist/index-Scxs_wcm-DUDU-Gll.cjs.map +1 -0
  373. package/dist/{index-DoS4bGNa-C3DbPpy3.cjs → index-w64Zl8io-DrMm5QSb.cjs} +2 -2
  374. package/dist/index-w64Zl8io-DrMm5QSb.cjs.map +1 -0
  375. package/dist/{index-DoS4bGNa-Bgab95kx.js → index-w64Zl8io-ihagHOdP.js} +2 -2
  376. package/dist/index-w64Zl8io-ihagHOdP.js.map +1 -0
  377. package/dist/index.cjs +1 -1
  378. package/dist/index.d.ts +92 -17
  379. package/dist/index.js +3 -3
  380. package/dist/numberFormattingFunction-Cn9R7CM9.cjs +2 -0
  381. package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +1 -0
  382. package/dist/numberFormattingFunction-DqMf_v1m.js +28 -0
  383. package/dist/numberFormattingFunction-DqMf_v1m.js.map +1 -0
  384. package/dist/{proxy--_f6k3NR.js → proxy-BsxtcZKa.js} +2 -2
  385. package/dist/{proxy--_f6k3NR.js.map → proxy-BsxtcZKa.js.map} +1 -1
  386. package/dist/{proxy-C4-uo6nS.cjs → proxy-CqH8m8IQ.cjs} +2 -2
  387. package/dist/{proxy-C4-uo6nS.cjs.map → proxy-CqH8m8IQ.cjs.map} +1 -1
  388. package/dist/{string2HTML-DUYZT1L9.js → string2HTML-BrFperRM.js} +2 -2
  389. package/dist/{string2HTML-DUYZT1L9.js.map → string2HTML-BrFperRM.js.map} +1 -1
  390. package/dist/{string2HTML-xx9MzTtY.cjs → string2HTML-ZoGd08P_.cjs} +2 -2
  391. package/dist/{string2HTML-xx9MzTtY.cjs.map → string2HTML-ZoGd08P_.cjs.map} +1 -1
  392. package/dist/style.css +1 -1
  393. package/dist/{use-in-view-DqvKAveg.js → use-in-view-KOXq5Kmc.js} +2 -2
  394. package/dist/{use-in-view-DqvKAveg.js.map → use-in-view-KOXq5Kmc.js.map} +1 -1
  395. package/dist/{use-in-view-C3o_ntMv.cjs → use-in-view-dnRv_qqF.cjs} +2 -2
  396. package/dist/{use-in-view-C3o_ntMv.cjs.map → use-in-view-dnRv_qqF.cjs.map} +1 -1
  397. package/dist/utils.cjs +1 -1
  398. package/dist/utils.d.ts +9 -18
  399. package/dist/utils.js +1 -1
  400. package/dist/x-BXShoIAM-BC2sxios.cjs +2 -0
  401. package/dist/x-BXShoIAM-BC2sxios.cjs.map +1 -0
  402. package/dist/{x-BBpi7a_7-BsvWCzYM.js → x-BXShoIAM-D6VWO6z5.js} +3 -5
  403. package/dist/x-BXShoIAM-D6VWO6z5.js.map +1 -0
  404. package/package.json +2 -2
  405. package/dist/DropdownSelect-B2WTeedJ.js.map +0 -1
  406. package/dist/DropdownSelect-NNpOs7DX.cjs.map +0 -1
  407. package/dist/GraphEl-CnJf8b50.js.map +0 -1
  408. package/dist/GraphEl-D_w0Qak4.cjs +0 -2
  409. package/dist/GraphEl-D_w0Qak4.cjs.map +0 -1
  410. package/dist/XTicksAndGridLines-BDmF9etl.js +0 -38
  411. package/dist/XTicksAndGridLines-BDmF9etl.js.map +0 -1
  412. package/dist/XTicksAndGridLines-CekrPykD.cjs +0 -2
  413. package/dist/XTicksAndGridLines-CekrPykD.cjs.map +0 -1
  414. package/dist/YTicksAndGridLines-C3GW1xFG.js +0 -38
  415. package/dist/YTicksAndGridLines-C3GW1xFG.js.map +0 -1
  416. package/dist/YTicksAndGridLines-UzVC5eBM.cjs +0 -2
  417. package/dist/YTicksAndGridLines-UzVC5eBM.cjs.map +0 -1
  418. package/dist/checkIfMultiple-B97uOUVq.js.map +0 -1
  419. package/dist/checkIfMultiple-TOaaUwS7.cjs.map +0 -1
  420. package/dist/getSliderMarks-CIuSoedo.cjs +0 -2
  421. package/dist/getSliderMarks-CIuSoedo.cjs.map +0 -1
  422. package/dist/getSliderMarks-vXsR8RrR.js.map +0 -1
  423. package/dist/index-C6VwVS8W.js +0 -378
  424. package/dist/index-C6VwVS8W.js.map +0 -1
  425. package/dist/index-CHPV5EwG-6v2a2njQ.cjs.map +0 -1
  426. package/dist/index-CHPV5EwG-BCLAYDCV.js.map +0 -1
  427. package/dist/index-D6CYcVc7-BOa7Dpvf.js.map +0 -1
  428. package/dist/index-D6CYcVc7-CTEcAtiQ.cjs +0 -2
  429. package/dist/index-D6CYcVc7-CTEcAtiQ.cjs.map +0 -1
  430. package/dist/index-DoS4bGNa-Bgab95kx.js.map +0 -1
  431. package/dist/index-DoS4bGNa-C3DbPpy3.cjs.map +0 -1
  432. package/dist/index-_TlgeI_i.cjs +0 -2
  433. package/dist/index-_TlgeI_i.cjs.map +0 -1
  434. package/dist/numberFormattingFunction-02t-wJta.cjs +0 -2
  435. package/dist/numberFormattingFunction-02t-wJta.cjs.map +0 -1
  436. package/dist/numberFormattingFunction-14YCbkN2.js +0 -13
  437. package/dist/numberFormattingFunction-14YCbkN2.js.map +0 -1
  438. package/dist/x-BBpi7a_7-BsvWCzYM.js.map +0 -1
  439. package/dist/x-BBpi7a_7-DXYIEFwN.cjs +0 -2
  440. package/dist/x-BBpi7a_7-DXYIEFwN.cjs.map +0 -1
@@ -1,168 +1,169 @@
1
- import { c as Ie, j as i, m as be } from "./index-CHPV5EwG-BCLAYDCV.js";
1
+ import { c as Ie, j as a, m as ve } from "./index-CHPV5EwG-BzibaIRc.js";
2
2
  import { o as je } from "./index-BZQYSqar.js";
3
- import { f as Ne, p as He } from "./parse-Dv4of-PN.js";
4
- import { useRef as ve, useState as Ot, useEffect as De } from "react";
5
- import { g as Re, N as ze } from "./getSliderMarks-vXsR8RrR.js";
3
+ import { f as De, p as He } from "./parse-Dv4of-PN.js";
4
+ import { useRef as we, useState as It, useEffect as Ne } from "react";
5
+ import { g as Re, N as ze } from "./getSliderMarks-X-_goqH9.js";
6
6
  import { i as Te } from "./index-Bwrro8-q.js";
7
- import { n as $e } from "./numberFormattingFunction-14YCbkN2.js";
8
- import { T as Se } from "./Tooltip-CohiIbLZ.js";
9
- import { c as Bt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
10
- import { A as Fe } from "./AxisTitle-DGjX1_2v.js";
11
- import { A as qe } from "./Axis-RyGdzLrG.js";
12
- import { X as Ue } from "./XAxesLabels-IwjMJkYS.js";
13
- import { Y as Pe } from "./YTicksAndGridLines-C3GW1xFG.js";
14
- import { R as Je, a as Ke } from "./ReferenceLine-CNEjAYvv.js";
15
- import { X as Qe } from "./XTicksAndGridLines-BDmF9etl.js";
16
- import { Y as Ze } from "./YAxesLabels-DoGvgHdw.js";
17
- import { D as We } from "./DetailsModal-C3qlUyFK.js";
7
+ import { n as $e } from "./numberFormattingFunction-DqMf_v1m.js";
8
+ import { T as Se } from "./Tooltip-Bj-s__cI.js";
9
+ import { c as Yt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
10
+ import { A as Fe } from "./AxisTitle-CyLCqpW6.js";
11
+ import { A as qe } from "./Axis-CNZYWzH0.js";
12
+ import { X as Ue } from "./XAxesLabels-B9gkjUiC.js";
13
+ import { Y as We } from "./YTicksAndGridLines-CsNSq9W9.js";
14
+ import { R as Je, a as Ke } from "./ReferenceLine-D41VuUhE.js";
15
+ import { X as Qe } from "./XTicksAndGridLines-gdbGX2rm.js";
16
+ import { Y as Ze } from "./YAxesLabels-hWEUCTvs.js";
17
+ import { D as Pe } from "./DetailsModal-B2XBWR7w.js";
18
18
  import { a as Be } from "./linear-DNXM5Pdl.js";
19
19
  import { b as Xe } from "./band-DYty33LD.js";
20
- import { m as Wt } from "./proxy--_f6k3NR.js";
21
- import { u as Ye } from "./use-in-view-DqvKAveg.js";
22
- import { A as Ee } from "./index-Co3YGYe1.js";
20
+ import { m as Xt } from "./proxy-BsxtcZKa.js";
21
+ import { u as Ye } from "./use-in-view-KOXq5Kmc.js";
22
+ import { A as Ee } from "./index-Cv_5q6Rb.js";
23
23
  import { e as Le } from "./ensureCompleteData-CDIukSG6.js";
24
- import { a as _e, G as ti } from "./GraphContainer-DwMxWRCi.js";
24
+ import { a as _e, G as ti } from "./GraphContainer-B8ZqOzKI.js";
25
25
  import { GraphHeader as ei } from "./GraphHeader.js";
26
- import { P as ii, e as ni } from "./index-CZ0elhKR.js";
27
- import { GraphFooter as ai } from "./GraphFooter.js";
26
+ import { P as ii, e as ai } from "./index-ApTBN0kp.js";
27
+ import { GraphFooter as ni } from "./GraphFooter.js";
28
28
  import { ColorLegendWithMouseOver as oi } from "./ColorLegendWithMouseOver.js";
29
- import { E as si } from "./EmptyState-B3fPoH6L.js";
29
+ import { E as si } from "./EmptyState-CaxXCkiN.js";
30
30
  import { Colors as li } from "./Colors.js";
31
31
  function ri(e) {
32
- const t = Ie.c(148), {
32
+ const t = Ie.c(149), {
33
33
  data: c,
34
34
  leftMargin: qt,
35
- rightMargin: ae,
35
+ rightMargin: ne,
36
36
  topMargin: Ut,
37
37
  bottomMargin: Jt,
38
- dotColors: I,
39
- barPadding: Xt,
40
- showTicks: ct,
41
- truncateBy: Lt,
38
+ dotColors: L,
39
+ barPadding: Et,
40
+ showTicks: rt,
41
+ truncateBy: Vt,
42
42
  width: gt,
43
43
  height: bt,
44
- radius: xt,
44
+ radius: ft,
45
45
  showLabels: vt,
46
- tooltip: b,
47
- onSeriesMouseOver: st,
48
- maxValue: $t,
49
- minValue: k,
50
- onSeriesMouseClick: dt,
46
+ tooltip: y,
47
+ onSeriesMouseOver: ot,
48
+ maxValue: jt,
49
+ minValue: w,
50
+ onSeriesMouseClick: ct,
51
51
  showValues: Kt,
52
- suffix: ft,
53
- prefix: P,
54
- selectedColor: W,
55
- arrowConnector: j,
56
- connectorStrokeWidth: Yt,
52
+ suffix: pt,
53
+ prefix: S,
54
+ selectedColor: F,
55
+ arrowConnector: I,
56
+ connectorStrokeWidth: Gt,
57
57
  maxBarThickness: wt,
58
- minBarThickness: It,
58
+ minBarThickness: Dt,
59
59
  resetSelectionOnDoubleClick: Qt,
60
- detailsOnClick: V,
61
- axisTitle: B,
62
- noOfTicks: Et,
63
- valueColor: Vt,
60
+ detailsOnClick: $,
61
+ axisTitle: W,
62
+ noOfTicks: Ht,
63
+ valueColor: Nt,
64
64
  styles: o,
65
65
  classNames: n,
66
- labelOrder: y,
67
- refValues: jt,
66
+ labelOrder: p,
67
+ refValues: Tt,
68
68
  animate: f,
69
- precision: x,
70
- customLayers: H,
71
- highlightedDataPoints: X,
72
- dimmedOpacity: mt,
73
- hideAxisLine: R
74
- } = e, z = qt === void 0 ? 20 : qt, Gt = ae === void 0 ? 20 : ae, Nt = Ut === void 0 ? 20 : Ut, Ht = Jt === void 0 ? 25 : Jt, ie = ve(null);
75
- let Dt;
76
- t[0] !== f.amount || t[1] !== f.once ? (Dt = {
69
+ precision: u,
70
+ customLayers: G,
71
+ highlightedDataPoints: P,
72
+ dimmedOpacity: dt,
73
+ hideAxisLine: H,
74
+ locale: ht
75
+ } = e, R = qt === void 0 ? 20 : qt, Zt = ne === void 0 ? 20 : ne, At = Ut === void 0 ? 20 : Ut, Rt = Jt === void 0 ? 25 : Jt, oe = we(null);
76
+ let kt;
77
+ t[0] !== f.amount || t[1] !== f.once ? (kt = {
77
78
  once: f.once,
78
79
  amount: f.amount
79
- }, t[0] = f.amount, t[1] = f.once, t[2] = Dt) : Dt = t[2];
80
- const v = Ye(ie, Dt), Zt = B ? z + 30 : z;
81
- let p;
82
- t[3] !== Ht || t[4] !== Gt || t[5] !== Zt || t[6] !== Nt ? (p = {
83
- top: Nt,
84
- bottom: Ht,
85
- left: Zt,
86
- right: Gt
87
- }, t[3] = Ht, t[4] = Gt, t[5] = Zt, t[6] = Nt, t[7] = p) : p = t[7];
88
- const a = p, N = gt - a.left - a.right, q = bt - a.top - a.bottom, [Tt, _t] = Ot(void 0), [Y, te] = Ot(void 0), [ht, St] = Ot(void 0), [Ft, Pt] = Ot(void 0);
89
- let pt;
90
- if (t[8] !== c || t[9] !== y) {
91
- const m = /* @__PURE__ */ new Set(), w = c.map((h, rt) => {
92
- const s = y ? `${h.label}` : `${rt}`;
93
- return m.add(s), {
94
- ...h,
95
- id: s
80
+ }, t[0] = f.amount, t[1] = f.once, t[2] = kt) : kt = t[2];
81
+ const A = Ye(oe, kt), h = W ? R + 30 : R;
82
+ let x;
83
+ t[3] !== Rt || t[4] !== Zt || t[5] !== h || t[6] !== At ? (x = {
84
+ top: At,
85
+ bottom: Rt,
86
+ left: h,
87
+ right: Zt
88
+ }, t[3] = Rt, t[4] = Zt, t[5] = h, t[6] = At, t[7] = x) : x = t[7];
89
+ const r = x, V = gt - r.left - r.right, st = bt - r.top - r.bottom, [St, _t] = It(void 0), [B, Ft] = It(void 0), [Mt, te] = It(void 0), [yt, Wt] = It(void 0);
90
+ let Pt;
91
+ if (t[8] !== c || t[9] !== p) {
92
+ const m = /* @__PURE__ */ new Set(), g = c.map((s, ut) => {
93
+ const E = p ? `${s.label}` : `${ut}`;
94
+ return m.add(E), {
95
+ ...s,
96
+ id: E
96
97
  };
97
- }), yt = y ? y.filter((h) => !m.has(h)) : [];
98
- let C;
99
- t[11] !== c[0] ? (C = (h) => ({
100
- id: h,
101
- label: h,
98
+ }), Ot = p ? p.filter((s) => !m.has(s)) : [];
99
+ let b;
100
+ t[11] !== c[0] ? (b = (s) => ({
101
+ id: s,
102
+ label: s,
102
103
  x: Array(c[0].x.length).fill(null)
103
- }), t[11] = c[0], t[12] = C) : C = t[12], pt = [...w, ...yt.map(C)], t[8] = c, t[9] = y, t[10] = pt;
104
+ }), t[11] = c[0], t[12] = b) : b = t[12], Pt = [...g, ...Ot.map(b)], t[8] = c, t[9] = p, t[10] = Pt;
104
105
  } else
105
- pt = t[10];
106
- const O = pt;
106
+ Pt = t[10];
107
+ const M = Pt;
107
108
  let lt;
108
- t[13] !== O || t[14] !== y ? (lt = y ?? O.map(bi), t[13] = O, t[14] = y, t[15] = lt) : lt = t[15];
109
- const Rt = lt;
110
- let U, J, K, Q, Z, D, T, M, E, _, tt, et, L, $, it;
111
- if (t[16] !== f || t[17] !== j || t[18] !== B || t[19] !== Rt || t[20] !== Xt || t[21] !== n?.dataConnectors || t[22] !== n?.graphObjectValues || t[23] !== n?.xAxis?.axis || t[24] !== n?.xAxis?.labels || t[25] !== n?.yAxis?.gridLines || t[26] !== n?.yAxis?.labels || t[27] !== n?.yAxis?.title || t[28] !== Yt || t[29] !== H || t[30] !== O || t[31] !== V || t[32] !== mt || t[33] !== I || t[34] !== q || t[35] !== N || t[36] !== bt || t[37] !== R || t[38] !== X || t[39] !== v || t[40] !== z || t[41] !== a.bottom || t[42] !== a.left || t[43] !== a.right || t[44] !== a.top || t[45] !== wt || t[46] !== $t || t[47] !== It || t[48] !== k || t[49] !== Y || t[50] !== Et || t[51] !== dt || t[52] !== st || t[53] !== x || t[54] !== P || t[55] !== xt || t[56] !== jt || t[57] !== Qt || t[58] !== W || t[59] !== vt || t[60] !== ct || t[61] !== Kt || t[62] !== o?.dataConnectors || t[63] !== o?.graphObjectValues || t[64] !== o?.xAxis?.axis || t[65] !== o?.xAxis?.labels || t[66] !== o?.yAxis?.gridLines || t[67] !== o?.yAxis?.labels || t[68] !== o?.yAxis?.title || t[69] !== ft || t[70] !== Lt || t[71] !== Vt || t[72] !== gt) {
112
- const m = Be().domain([k, $t]).range([q, 0]).nice(), w = Xe().domain(Rt).range([0, It ? Math.max(N, It * O.length) : wt ? Math.min(N, wt * O.length) : N]).paddingInner(Xt), yt = m.ticks(Et);
113
- J = Wt.svg, E = `${gt}px`, _ = `${bt}px`, tt = `0 0 ${gt} ${bt}`, et = "ltr", L = ie, t[88] !== j ? ($ = j ? /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ i.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[88] = j, t[89] = $) : $ = t[89], Q = `translate(${a.left},${a.top})`;
114
- let C;
115
- t[90] !== k || t[91] !== x || t[92] !== P || t[93] !== ct || t[94] !== ft ? (C = ct ? $e(k < 0 ? 0 : k, "NA", x, P, ft) : void 0, t[90] = k, t[91] = x, t[92] = P, t[93] = ct, t[94] = ft, t[95] = C) : C = t[95];
116
- const h = n?.xAxis?.axis, rt = n?.yAxis?.labels;
117
- let s;
118
- t[96] !== h || t[97] !== rt ? (s = {
119
- axis: h,
120
- label: rt
121
- }, t[96] = h, t[97] = rt, t[98] = s) : s = t[98];
122
- const zt = o?.xAxis?.axis, kt = o?.yAxis?.labels;
123
- let ee;
124
- t[99] !== zt || t[100] !== kt ? (ee = {
125
- axis: zt,
126
- label: kt
127
- }, t[99] = zt, t[100] = kt, t[101] = ee) : ee = t[101], Z = /* @__PURE__ */ i.jsx(qe, { hideAxisLine: R, y1: m(k < 0 ? 0 : k), y2: m(k < 0 ? 0 : k), x1: 0 - z, x2: N + a.right, label: C, labelPos: {
128
- x: 0 - z,
109
+ t[13] !== M || t[14] !== p ? (lt = p ?? M.map(bi), t[13] = M, t[14] = p, t[15] = lt) : lt = t[15];
110
+ const zt = lt;
111
+ let z, q, U, J, K, j, D, k, X, Q, Z, _, C, O, tt;
112
+ if (t[16] !== f || t[17] !== I || t[18] !== W || t[19] !== zt || t[20] !== Et || t[21] !== n?.dataConnectors || t[22] !== n?.graphObjectValues || t[23] !== n?.xAxis?.axis || t[24] !== n?.xAxis?.labels || t[25] !== n?.yAxis?.gridLines || t[26] !== n?.yAxis?.labels || t[27] !== n?.yAxis?.title || t[28] !== Gt || t[29] !== G || t[30] !== M || t[31] !== $ || t[32] !== dt || t[33] !== L || t[34] !== st || t[35] !== V || t[36] !== bt || t[37] !== H || t[38] !== P || t[39] !== A || t[40] !== R || t[41] !== ht || t[42] !== r.bottom || t[43] !== r.left || t[44] !== r.right || t[45] !== r.top || t[46] !== wt || t[47] !== jt || t[48] !== Dt || t[49] !== w || t[50] !== B || t[51] !== Ht || t[52] !== ct || t[53] !== ot || t[54] !== u || t[55] !== S || t[56] !== ft || t[57] !== Tt || t[58] !== Qt || t[59] !== F || t[60] !== vt || t[61] !== rt || t[62] !== Kt || t[63] !== o?.dataConnectors || t[64] !== o?.graphObjectValues || t[65] !== o?.xAxis?.axis || t[66] !== o?.xAxis?.labels || t[67] !== o?.yAxis?.gridLines || t[68] !== o?.yAxis?.labels || t[69] !== o?.yAxis?.title || t[70] !== pt || t[71] !== Vt || t[72] !== Nt || t[73] !== gt) {
113
+ const m = Be().domain([w, jt]).range([st, 0]).nice(), g = Xe().domain(zt).range([0, Dt ? Math.max(V, Dt * M.length) : wt ? Math.min(V, wt * M.length) : V]).paddingInner(Et), Ot = m.ticks(Ht);
114
+ q = Xt.svg, X = `${gt}px`, Q = `${bt}px`, Z = `0 0 ${gt} ${bt}`, _ = "ltr", C = oe, t[89] !== I ? (O = I ? /* @__PURE__ */ a.jsx("defs", { children: /* @__PURE__ */ a.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ a.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[89] = I, t[90] = O) : O = t[90], J = `translate(${r.left},${r.top})`;
115
+ let b;
116
+ t[91] !== w || t[92] !== u || t[93] !== S || t[94] !== rt || t[95] !== pt ? (b = rt ? $e(w < 0 ? 0 : w, void 0, u, S, pt) : void 0, t[91] = w, t[92] = u, t[93] = S, t[94] = rt, t[95] = pt, t[96] = b) : b = t[96];
117
+ const s = n?.xAxis?.axis, ut = n?.yAxis?.labels;
118
+ let E;
119
+ t[97] !== s || t[98] !== ut ? (E = {
120
+ axis: s,
121
+ label: ut
122
+ }, t[97] = s, t[98] = ut, t[99] = E) : E = t[99];
123
+ const Bt = o?.xAxis?.axis, ee = o?.yAxis?.labels;
124
+ let Lt;
125
+ t[100] !== Bt || t[101] !== ee ? (Lt = {
126
+ axis: Bt,
127
+ label: ee
128
+ }, t[100] = Bt, t[101] = ee, t[102] = Lt) : Lt = t[102], K = /* @__PURE__ */ a.jsx(qe, { hideAxisLine: H, y1: m(w < 0 ? 0 : w), y2: m(w < 0 ? 0 : w), x1: 0 - R, x2: V + r.right, label: b, labelPos: {
129
+ x: 0 - R,
129
130
  dx: 0,
130
- dy: $t < 0 ? "1em" : -5,
131
- y: m(k < 0 ? 0 : k)
132
- }, classNames: s, styles: ee }), D = ct ? /* @__PURE__ */ i.jsx(Pe, { values: yt.filter(gi), y: yt.filter(yi).map((l) => m(l)), x1: 0 - z, x2: N + a.right, styles: {
131
+ dy: jt < 0 ? "1em" : -5,
132
+ y: m(w < 0 ? 0 : w)
133
+ }, classNames: E, styles: Lt }), j = rt ? /* @__PURE__ */ a.jsx(We, { values: Ot.filter(gi), y: Ot.filter(yi).map((i) => m(i)), x1: 0 - R, x2: V + r.right, styles: {
133
134
  gridLines: o?.yAxis?.gridLines,
134
135
  labels: o?.yAxis?.labels
135
136
  }, classNames: {
136
137
  gridLines: n?.yAxis?.gridLines,
137
138
  labels: n?.yAxis?.labels
138
- }, suffix: ft, prefix: P, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: x }) : null;
139
- const Mt = 0 - z - 15, r = q / 2, A = o?.yAxis?.title, F = n?.yAxis?.title;
140
- t[102] !== B || t[103] !== Mt || t[104] !== r || t[105] !== A || t[106] !== F ? (T = /* @__PURE__ */ i.jsx(Fe, { x: Mt, y: r, style: A, className: F, text: B, rotate90: !0 }), t[102] = B, t[103] = Mt, t[104] = r, t[105] = A, t[106] = F, t[107] = T) : T = t[107], t[108] !== H ? (M = H.filter(pi).map(hi), t[108] = H, t[109] = M) : M = t[109], U = Ee, it = O.map((l) => /* @__PURE__ */ i.jsxs(Wt.g, { className: "undp-viz-g-with-hover", variants: {
139
+ }, suffix: pt, prefix: S, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: u, locale: ht }) : null;
140
+ const ie = 0 - R - 15, l = st / 2, xt = o?.yAxis?.title, v = n?.yAxis?.title;
141
+ t[103] !== W || t[104] !== ie || t[105] !== l || t[106] !== xt || t[107] !== v ? (D = /* @__PURE__ */ a.jsx(Fe, { x: ie, y: l, style: xt, className: v, text: W, rotate90: !0 }), t[103] = W, t[104] = ie, t[105] = l, t[106] = xt, t[107] = v, t[108] = D) : D = t[108], t[109] !== G ? (k = G.filter(hi).map(pi), t[109] = G, t[110] = k) : k = t[110], z = Ee, tt = M.map((i) => /* @__PURE__ */ a.jsxs(Xt.g, { className: "undp-viz-g-with-hover", variants: {
141
142
  initial: {
142
- x: w(`${l.id}`) + w.bandwidth() / 2,
143
+ x: g(`${i.id}`) + g.bandwidth() / 2,
143
144
  y: 0,
144
- opacity: X.length !== 0 ? X.indexOf(l.label) !== -1 ? 0.85 : mt : 0.85
145
+ opacity: P ? P.indexOf(i.label) !== -1 ? 0.85 : dt : 0.85
145
146
  },
146
147
  whileInView: {
147
- x: w(`${l.id}`) + w.bandwidth() / 2,
148
+ x: g(`${i.id}`) + g.bandwidth() / 2,
148
149
  y: 0,
149
- opacity: X.length !== 0 ? X.indexOf(l.label) !== -1 ? 0.85 : mt : 0.85,
150
+ opacity: P ? P.indexOf(i.label) !== -1 ? 0.85 : dt : 0.85,
150
151
  transition: {
151
152
  duration: f.duration
152
153
  }
153
154
  }
154
- }, initial: "initial", animate: v ? "whileInView" : "initial", exit: {
155
+ }, initial: "initial", animate: A ? "whileInView" : "initial", exit: {
155
156
  opacity: 0,
156
157
  transition: {
157
158
  duration: f.duration
158
159
  }
159
160
  }, children: [
160
- vt ? /* @__PURE__ */ i.jsx(Ue, { value: `${l.label}`.length < Lt ? `${l.label}` : `${`${l.label}`.substring(0, Lt)}...`, y: q + 5, x: 0 - w.bandwidth() / 2, width: w.bandwidth(), height: a.bottom, style: o?.xAxis?.labels, className: n?.xAxis?.labels, alignment: "top", animate: f, isInView: v }) : null,
161
- /* @__PURE__ */ i.jsx(Wt.line, { x1: 0, x2: 0, style: {
162
- strokeWidth: Yt,
161
+ vt ? /* @__PURE__ */ a.jsx(Ue, { value: `${i.label}`.length < Vt ? `${i.label}` : `${`${i.label}`.substring(0, Vt)}...`, y: st + 5, x: 0 - g.bandwidth() / 2, width: g.bandwidth(), height: r.bottom, style: o?.xAxis?.labels, className: n?.xAxis?.labels, alignment: "top", animate: f, isInView: A }) : null,
162
+ /* @__PURE__ */ a.jsx(Xt.line, { x1: 0, x2: 0, style: {
163
+ strokeWidth: Gt,
163
164
  ...o?.dataConnectors || {},
164
- opacity: W ? 0.3 : 1
165
- }, className: be("stroke-primary-gray-600 dark:stroke-primary-gray-300", n?.dataConnectors), markerEnd: j && l.x.indexOf(Math.min(...l.x.filter(fi))) === 0 ? "url(#arrow)" : "", markerStart: j && l.x.indexOf(Math.min(...l.x.filter(xi))) === l.x.length - 1 ? "url(#arrow)" : "", exit: {
165
+ opacity: F ? 0.3 : 1
166
+ }, className: ve("stroke-primary-gray-600 dark:stroke-primary-gray-300", n?.dataConnectors), markerEnd: I && i.x.indexOf(Math.min(...i.x.filter(fi))) === 0 ? "url(#arrow)" : "", markerStart: I && i.x.indexOf(Math.min(...i.x.filter(xi))) === i.x.length - 1 ? "url(#arrow)" : "", exit: {
166
167
  opacity: 0,
167
168
  transition: {
168
169
  duration: f.duration
@@ -173,39 +174,39 @@ function ri(e) {
173
174
  y2: 0
174
175
  },
175
176
  whileInView: {
176
- y1: m(Math.min(...l.x.filter(ui))) + xt,
177
- y2: m(Math.max(...l.x.filter(mi))) - xt,
177
+ y1: m(Math.min(...i.x.filter(ui))) + ft,
178
+ y2: m(Math.max(...i.x.filter(mi))) - ft,
178
179
  transition: {
179
180
  duration: f.duration
180
181
  }
181
182
  }
182
- }, initial: "initial", animate: v ? "whileInView" : "initial" }),
183
- l.x.map((u, g) => /* @__PURE__ */ i.jsx(Wt.g, { onMouseEnter: (ne) => {
183
+ }, initial: "initial", animate: A ? "whileInView" : "initial" }),
184
+ i.x.map((T, nt) => /* @__PURE__ */ a.jsx(Xt.g, { onMouseEnter: (ae) => {
184
185
  _t({
185
- ...l,
186
- xIndex: g
187
- }), Pt(ne.clientY), St(ne.clientX), st?.({
188
- ...l,
189
- xIndex: g
186
+ ...i,
187
+ xIndex: nt
188
+ }), Wt(ae.clientY), te(ae.clientX), ot?.({
189
+ ...i,
190
+ xIndex: nt
190
191
  });
191
192
  }, onClick: () => {
192
- (dt || V) && (Te(Y, {
193
- ...l,
194
- xIndex: g
195
- }) && Qt ? (te(void 0), dt?.(void 0)) : (te({
196
- ...l,
197
- xIndex: g
198
- }), dt && dt({
199
- ...l,
200
- xIndex: g
193
+ (ct || $) && (Te(B, {
194
+ ...i,
195
+ xIndex: nt
196
+ }) && Qt ? (Ft(void 0), ct?.(void 0)) : (Ft({
197
+ ...i,
198
+ xIndex: nt
199
+ }), ct && ct({
200
+ ...i,
201
+ xIndex: nt
201
202
  })));
202
- }, onMouseMove: (ne) => {
203
+ }, onMouseMove: (ae) => {
203
204
  _t({
204
- ...l,
205
- xIndex: g
206
- }), Pt(ne.clientY), St(ne.clientX);
205
+ ...i,
206
+ xIndex: nt
207
+ }), Wt(ae.clientY), te(ae.clientX);
207
208
  }, onMouseLeave: () => {
208
- _t(void 0), St(void 0), Pt(void 0), st?.(void 0);
209
+ _t(void 0), te(void 0), Wt(void 0), ot?.(void 0);
209
210
  }, exit: {
210
211
  opacity: 0,
211
212
  transition: {
@@ -213,19 +214,19 @@ function ri(e) {
213
214
  }
214
215
  }, variants: {
215
216
  initial: {
216
- opacity: W ? I[g] === W ? 1 : 0.3 : 1
217
+ opacity: F ? L[nt] === F ? 1 : 0.3 : 1
217
218
  },
218
219
  whileInView: {
219
- opacity: W ? I[g] === W ? 1 : 0.3 : 1,
220
+ opacity: F ? L[nt] === F ? 1 : 0.3 : 1,
220
221
  transition: {
221
222
  duration: f.duration
222
223
  }
223
224
  }
224
- }, initial: "initial", animate: v ? "whileInView" : "initial", children: Bt(u) ? null : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
225
- /* @__PURE__ */ i.jsx(Wt.circle, { cx: 0, r: xt, style: {
226
- fill: I[g],
225
+ }, initial: "initial", animate: A ? "whileInView" : "initial", children: Yt(T) ? null : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
226
+ /* @__PURE__ */ a.jsx(Xt.circle, { cx: 0, r: ft, style: {
227
+ fill: L[nt],
227
228
  fillOpacity: 0.85,
228
- stroke: I[g],
229
+ stroke: L[nt],
229
230
  strokeWidth: 1
230
231
  }, exit: {
231
232
  opacity: 0,
@@ -238,17 +239,17 @@ function ri(e) {
238
239
  opacity: 0
239
240
  },
240
241
  whileInView: {
241
- cy: m(u || 0),
242
- opacity: Bt(u) ? 0 : 1,
242
+ cy: m(T || 0),
243
+ opacity: Yt(T) ? 0 : 1,
243
244
  transition: {
244
245
  duration: f.duration
245
246
  }
246
247
  }
247
- }, initial: "initial", animate: v ? "whileInView" : "initial" }),
248
- Kt ? /* @__PURE__ */ i.jsx(Wt.text, { x: 0, style: {
248
+ }, initial: "initial", animate: A ? "whileInView" : "initial" }),
249
+ Kt ? /* @__PURE__ */ a.jsx(Xt.text, { x: 0, style: {
249
250
  textAnchor: "start",
250
251
  ...o?.graphObjectValues || {}
251
- }, className: be("graph-value text-sm font-bold", Bt(u) ? "opacity-0" : "opacity-100", n?.graphObjectValues), dx: xt + 3, dy: "0.33em", exit: {
252
+ }, className: ve("graph-value text-sm font-bold", Yt(T) ? "opacity-0" : "opacity-100", n?.graphObjectValues), dx: ft + 3, dy: "0.33em", exit: {
252
253
  opacity: 0,
253
254
  transition: {
254
255
  duration: f.duration
@@ -257,52 +258,52 @@ function ri(e) {
257
258
  initial: {
258
259
  y: m(0),
259
260
  opacity: 0,
260
- fill: Vt || I[g]
261
+ fill: Nt || L[nt]
261
262
  },
262
263
  whileInView: {
263
- y: m(u || 0),
264
- fill: Vt || I[g],
264
+ y: m(T || 0),
265
+ fill: Nt || L[nt],
265
266
  opacity: 1,
266
267
  transition: {
267
268
  duration: f.duration
268
269
  }
269
270
  }
270
- }, initial: "initial", animate: v ? "whileInView" : "initial", children: $e(u, "NA", x, P, ft) }) : null
271
- ] }) }, g))
272
- ] }, l.label)), K = jt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: jt.map((l, u) => /* @__PURE__ */ i.jsx(Ke, { text: l.text, color: l.color, y: m(l.value), x1: 0 - z, x2: N + a.right, classNames: l.classNames, styles: l.styles, animate: f, isInView: v }, u)) }) : null, t[16] = f, t[17] = j, t[18] = B, t[19] = Rt, t[20] = Xt, t[21] = n?.dataConnectors, t[22] = n?.graphObjectValues, t[23] = n?.xAxis?.axis, t[24] = n?.xAxis?.labels, t[25] = n?.yAxis?.gridLines, t[26] = n?.yAxis?.labels, t[27] = n?.yAxis?.title, t[28] = Yt, t[29] = H, t[30] = O, t[31] = V, t[32] = mt, t[33] = I, t[34] = q, t[35] = N, t[36] = bt, t[37] = R, t[38] = X, t[39] = v, t[40] = z, t[41] = a.bottom, t[42] = a.left, t[43] = a.right, t[44] = a.top, t[45] = wt, t[46] = $t, t[47] = It, t[48] = k, t[49] = Y, t[50] = Et, t[51] = dt, t[52] = st, t[53] = x, t[54] = P, t[55] = xt, t[56] = jt, t[57] = Qt, t[58] = W, t[59] = vt, t[60] = ct, t[61] = Kt, t[62] = o?.dataConnectors, t[63] = o?.graphObjectValues, t[64] = o?.xAxis?.axis, t[65] = o?.xAxis?.labels, t[66] = o?.yAxis?.gridLines, t[67] = o?.yAxis?.labels, t[68] = o?.yAxis?.title, t[69] = ft, t[70] = Lt, t[71] = Vt, t[72] = gt, t[73] = U, t[74] = J, t[75] = K, t[76] = Q, t[77] = Z, t[78] = D, t[79] = T, t[80] = M, t[81] = E, t[82] = _, t[83] = tt, t[84] = et, t[85] = L, t[86] = $, t[87] = it;
271
+ }, initial: "initial", animate: A ? "whileInView" : "initial", children: $e(T, void 0, u, S, pt, ht) }) : null
272
+ ] }) }, nt))
273
+ ] }, i.label)), U = Tt ? /* @__PURE__ */ a.jsx(a.Fragment, { children: Tt.map((i, T) => /* @__PURE__ */ a.jsx(Ke, { text: i.text, color: i.color, y: m(i.value), x1: 0 - R, x2: V + r.right, classNames: i.classNames, styles: i.styles, animate: f, isInView: A }, T)) }) : null, t[16] = f, t[17] = I, t[18] = W, t[19] = zt, t[20] = Et, t[21] = n?.dataConnectors, t[22] = n?.graphObjectValues, t[23] = n?.xAxis?.axis, t[24] = n?.xAxis?.labels, t[25] = n?.yAxis?.gridLines, t[26] = n?.yAxis?.labels, t[27] = n?.yAxis?.title, t[28] = Gt, t[29] = G, t[30] = M, t[31] = $, t[32] = dt, t[33] = L, t[34] = st, t[35] = V, t[36] = bt, t[37] = H, t[38] = P, t[39] = A, t[40] = R, t[41] = ht, t[42] = r.bottom, t[43] = r.left, t[44] = r.right, t[45] = r.top, t[46] = wt, t[47] = jt, t[48] = Dt, t[49] = w, t[50] = B, t[51] = Ht, t[52] = ct, t[53] = ot, t[54] = u, t[55] = S, t[56] = ft, t[57] = Tt, t[58] = Qt, t[59] = F, t[60] = vt, t[61] = rt, t[62] = Kt, t[63] = o?.dataConnectors, t[64] = o?.graphObjectValues, t[65] = o?.xAxis?.axis, t[66] = o?.xAxis?.labels, t[67] = o?.yAxis?.gridLines, t[68] = o?.yAxis?.labels, t[69] = o?.yAxis?.title, t[70] = pt, t[71] = Vt, t[72] = Nt, t[73] = gt, t[74] = z, t[75] = q, t[76] = U, t[77] = J, t[78] = K, t[79] = j, t[80] = D, t[81] = k, t[82] = X, t[83] = Q, t[84] = Z, t[85] = _, t[86] = C, t[87] = O, t[88] = tt;
273
274
  } else
274
- U = t[73], J = t[74], K = t[75], Q = t[76], Z = t[77], D = t[78], T = t[79], M = t[80], E = t[81], _ = t[82], tt = t[83], et = t[84], L = t[85], $ = t[86], it = t[87];
275
- let nt;
276
- t[110] !== U || t[111] !== K || t[112] !== it ? (nt = /* @__PURE__ */ i.jsxs(U, { children: [
277
- it,
278
- K
279
- ] }), t[110] = U, t[111] = K, t[112] = it, t[113] = nt) : nt = t[113];
280
- let at;
281
- t[114] !== H ? (at = H.filter(di).map(ci), t[114] = H, t[115] = at) : at = t[115];
282
- let ut;
283
- t[116] !== Q || t[117] !== Z || t[118] !== D || t[119] !== T || t[120] !== M || t[121] !== nt || t[122] !== at ? (ut = /* @__PURE__ */ i.jsxs("g", { transform: Q, children: [
284
- Z,
275
+ z = t[74], q = t[75], U = t[76], J = t[77], K = t[78], j = t[79], D = t[80], k = t[81], X = t[82], Q = t[83], Z = t[84], _ = t[85], C = t[86], O = t[87], tt = t[88];
276
+ let et;
277
+ t[111] !== z || t[112] !== U || t[113] !== tt ? (et = /* @__PURE__ */ a.jsxs(z, { children: [
278
+ tt,
279
+ U
280
+ ] }), t[111] = z, t[112] = U, t[113] = tt, t[114] = et) : et = t[114];
281
+ let it;
282
+ t[115] !== G ? (it = G.filter(di).map(ci), t[115] = G, t[116] = it) : it = t[116];
283
+ let mt;
284
+ t[117] !== J || t[118] !== K || t[119] !== j || t[120] !== D || t[121] !== k || t[122] !== et || t[123] !== it ? (mt = /* @__PURE__ */ a.jsxs("g", { transform: J, children: [
285
+ K,
286
+ j,
285
287
  D,
286
- T,
287
- M,
288
- nt,
288
+ k,
289
+ et,
290
+ it
291
+ ] }), t[117] = J, t[118] = K, t[119] = j, t[120] = D, t[121] = k, t[122] = et, t[123] = it, t[124] = mt) : mt = t[124];
292
+ let N;
293
+ t[125] !== q || t[126] !== X || t[127] !== Q || t[128] !== Z || t[129] !== _ || t[130] !== C || t[131] !== O || t[132] !== mt ? (N = /* @__PURE__ */ a.jsxs(q, { width: X, height: Q, viewBox: Z, direction: _, ref: C, children: [
294
+ O,
295
+ mt
296
+ ] }), t[125] = q, t[126] = X, t[127] = Q, t[128] = Z, t[129] = _, t[130] = C, t[131] = O, t[132] = mt, t[133] = N) : N = t[133];
297
+ let Y;
298
+ t[134] !== n?.tooltip || t[135] !== Mt || t[136] !== yt || t[137] !== St || t[138] !== o?.tooltip || t[139] !== y ? (Y = St && y && Mt && yt ? /* @__PURE__ */ a.jsx(Se, { data: St, body: y, xPos: Mt, yPos: yt, backgroundStyle: o?.tooltip, className: n?.tooltip }) : null, t[134] = n?.tooltip, t[135] = Mt, t[136] = yt, t[137] = St, t[138] = o?.tooltip, t[139] = y, t[140] = Y) : Y = t[140];
299
+ let at;
300
+ t[141] !== n?.modal || t[142] !== $ || t[143] !== B ? (at = $ && B !== void 0 ? /* @__PURE__ */ a.jsx(Pe, { body: $, data: B, setData: Ft, className: n?.modal }) : null, t[141] = n?.modal, t[142] = $, t[143] = B, t[144] = at) : at = t[144];
301
+ let Ct;
302
+ return t[145] !== N || t[146] !== Y || t[147] !== at ? (Ct = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
303
+ N,
304
+ Y,
289
305
  at
290
- ] }), t[116] = Q, t[117] = Z, t[118] = D, t[119] = T, t[120] = M, t[121] = nt, t[122] = at, t[123] = ut) : ut = t[123];
291
- let S;
292
- t[124] !== J || t[125] !== E || t[126] !== _ || t[127] !== tt || t[128] !== et || t[129] !== L || t[130] !== $ || t[131] !== ut ? (S = /* @__PURE__ */ i.jsxs(J, { width: E, height: _, viewBox: tt, direction: et, ref: L, children: [
293
- $,
294
- ut
295
- ] }), t[124] = J, t[125] = E, t[126] = _, t[127] = tt, t[128] = et, t[129] = L, t[130] = $, t[131] = ut, t[132] = S) : S = t[132];
296
- let G;
297
- t[133] !== n?.tooltip || t[134] !== ht || t[135] !== Ft || t[136] !== Tt || t[137] !== o?.tooltip || t[138] !== b ? (G = Tt && b && ht && Ft ? /* @__PURE__ */ i.jsx(Se, { data: Tt, body: b, xPos: ht, yPos: Ft, backgroundStyle: o?.tooltip, className: n?.tooltip }) : null, t[133] = n?.tooltip, t[134] = ht, t[135] = Ft, t[136] = Tt, t[137] = o?.tooltip, t[138] = b, t[139] = G) : G = t[139];
298
- let ot;
299
- t[140] !== n?.modal || t[141] !== V || t[142] !== Y ? (ot = V && Y !== void 0 ? /* @__PURE__ */ i.jsx(We, { body: V, data: Y, setData: te, className: n?.modal }) : null, t[140] = n?.modal, t[141] = V, t[142] = Y, t[143] = ot) : ot = t[143];
300
- let At;
301
- return t[144] !== S || t[145] !== G || t[146] !== ot ? (At = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
302
- S,
303
- G,
304
- ot
305
- ] }), t[144] = S, t[145] = G, t[146] = ot, t[147] = At) : At = t[147], At;
306
+ ] }), t[145] = N, t[146] = Y, t[147] = at, t[148] = Ct) : Ct = t[148], Ct;
306
307
  }
307
308
  function ci(e) {
308
309
  return e.layer;
@@ -322,10 +323,10 @@ function xi(e) {
322
323
  function fi(e) {
323
324
  return e !== null;
324
325
  }
325
- function hi(e) {
326
+ function pi(e) {
326
327
  return e.layer;
327
328
  }
328
- function pi(e) {
329
+ function hi(e) {
329
330
  return e.position === "before";
330
331
  }
331
332
  function yi(e) {
@@ -338,134 +339,135 @@ function bi(e) {
338
339
  return `${e.id}`;
339
340
  }
340
341
  function vi(e) {
341
- const t = Ie.c(139), {
342
+ const t = Ie.c(140), {
342
343
  data: c,
343
344
  leftMargin: qt,
344
- rightMargin: ae,
345
+ rightMargin: ne,
345
346
  topMargin: Ut,
346
347
  bottomMargin: Jt,
347
- dotColors: I,
348
- suffix: Xt,
349
- prefix: ct,
350
- barPadding: Lt,
348
+ dotColors: L,
349
+ suffix: Et,
350
+ prefix: rt,
351
+ barPadding: Vt,
351
352
  showValues: gt,
352
353
  showTicks: bt,
353
- truncateBy: xt,
354
+ truncateBy: ft,
354
355
  width: vt,
355
- height: b,
356
- radius: st,
357
- showLabels: $t,
358
- tooltip: k,
359
- onSeriesMouseOver: dt,
356
+ height: y,
357
+ radius: ot,
358
+ showLabels: jt,
359
+ tooltip: w,
360
+ onSeriesMouseOver: ct,
360
361
  maxValue: Kt,
361
- minValue: ft,
362
- onSeriesMouseClick: P,
363
- selectedColor: W,
364
- arrowConnector: j,
365
- connectorStrokeWidth: Yt,
362
+ minValue: pt,
363
+ onSeriesMouseClick: S,
364
+ selectedColor: F,
365
+ arrowConnector: I,
366
+ connectorStrokeWidth: Gt,
366
367
  maxBarThickness: wt,
367
- minBarThickness: It,
368
+ minBarThickness: Dt,
368
369
  resetSelectionOnDoubleClick: Qt,
369
- detailsOnClick: V,
370
- axisTitle: B,
371
- noOfTicks: Et,
372
- valueColor: Vt,
370
+ detailsOnClick: $,
371
+ axisTitle: W,
372
+ noOfTicks: Ht,
373
+ valueColor: Nt,
373
374
  styles: o,
374
375
  classNames: n,
375
- labelOrder: y,
376
- refValues: jt,
376
+ labelOrder: p,
377
+ refValues: Tt,
377
378
  rtl: f,
378
- animate: x,
379
- precision: H,
380
- customLayers: X,
381
- highlightedDataPoints: mt,
382
- dimmedOpacity: R
383
- } = e, z = qt === void 0 ? 100 : qt, Gt = ae === void 0 ? 40 : ae, Nt = Ut === void 0 ? 20 : Ut, Ht = Jt === void 0 ? 10 : Jt, ie = ve(null);
384
- let Dt;
385
- t[0] !== x.amount || t[1] !== x.once ? (Dt = {
386
- once: x.once,
387
- amount: x.amount
388
- }, t[0] = x.amount, t[1] = x.once, t[2] = Dt) : Dt = t[2];
389
- const v = Ye(ie, Dt), Zt = B ? Nt + 25 : Nt;
390
- let p;
391
- t[3] !== Ht || t[4] !== z || t[5] !== Gt || t[6] !== Zt ? (p = {
392
- top: Zt,
393
- bottom: Ht,
394
- left: z,
395
- right: Gt
396
- }, t[3] = Ht, t[4] = z, t[5] = Gt, t[6] = Zt, t[7] = p) : p = t[7];
397
- const a = p, N = vt - a.left - a.right, q = b - a.top - a.bottom, [Tt, _t] = Ot(void 0), [Y, te] = Ot(void 0), [ht, St] = Ot(void 0), [Ft, Pt] = Ot(void 0);
398
- let pt;
399
- if (t[8] !== c || t[9] !== y) {
400
- const m = /* @__PURE__ */ new Set(), w = c.map((h, rt) => {
401
- const s = y ? `${h.label}` : `${rt}`;
402
- return m.add(s), {
403
- ...h,
404
- id: s
379
+ animate: u,
380
+ precision: G,
381
+ customLayers: P,
382
+ highlightedDataPoints: dt,
383
+ dimmedOpacity: H,
384
+ locale: ht
385
+ } = e, R = qt === void 0 ? 100 : qt, Zt = ne === void 0 ? 40 : ne, At = Ut === void 0 ? 20 : Ut, Rt = Jt === void 0 ? 10 : Jt, oe = we(null);
386
+ let kt;
387
+ t[0] !== u.amount || t[1] !== u.once ? (kt = {
388
+ once: u.once,
389
+ amount: u.amount
390
+ }, t[0] = u.amount, t[1] = u.once, t[2] = kt) : kt = t[2];
391
+ const A = Ye(oe, kt), h = W ? At + 25 : At;
392
+ let x;
393
+ t[3] !== Rt || t[4] !== R || t[5] !== Zt || t[6] !== h ? (x = {
394
+ top: h,
395
+ bottom: Rt,
396
+ left: R,
397
+ right: Zt
398
+ }, t[3] = Rt, t[4] = R, t[5] = Zt, t[6] = h, t[7] = x) : x = t[7];
399
+ const r = x, V = vt - r.left - r.right, st = y - r.top - r.bottom, [St, _t] = It(void 0), [B, Ft] = It(void 0), [Mt, te] = It(void 0), [yt, Wt] = It(void 0);
400
+ let Pt;
401
+ if (t[8] !== c || t[9] !== p) {
402
+ const m = /* @__PURE__ */ new Set(), g = c.map((s, ut) => {
403
+ const E = p ? `${s.label}` : `${ut}`;
404
+ return m.add(E), {
405
+ ...s,
406
+ id: E
405
407
  };
406
- }), yt = y ? y.filter((h) => !m.has(h)) : [];
407
- let C;
408
- t[11] !== c[0] ? (C = (h) => ({
409
- id: h,
410
- label: h,
408
+ }), Ot = p ? p.filter((s) => !m.has(s)) : [];
409
+ let b;
410
+ t[11] !== c[0] ? (b = (s) => ({
411
+ id: s,
412
+ label: s,
411
413
  x: Array(c[0].x.length).fill(null)
412
- }), t[11] = c[0], t[12] = C) : C = t[12], pt = [...w, ...yt.map(C)], t[8] = c, t[9] = y, t[10] = pt;
414
+ }), t[11] = c[0], t[12] = b) : b = t[12], Pt = [...g, ...Ot.map(b)], t[8] = c, t[9] = p, t[10] = Pt;
413
415
  } else
414
- pt = t[10];
415
- const O = pt;
416
+ Pt = t[10];
417
+ const M = Pt;
416
418
  let lt;
417
- t[13] !== O || t[14] !== y ? (lt = y ?? O.map(ji), t[13] = O, t[14] = y, t[15] = lt) : lt = t[15];
418
- const Rt = lt;
419
- let U, J, K, Q, Z, D, T, M, E, _, tt, et, L, $, it;
420
- if (t[16] !== x || t[17] !== j || t[18] !== B || t[19] !== Rt || t[20] !== Lt || t[21] !== n?.dataConnectors || t[22] !== n?.graphObjectValues || t[23] !== n?.xAxis?.gridLines || t[24] !== n?.xAxis?.labels || t[25] !== n?.xAxis?.title || t[26] !== n?.yAxis?.gridLines || t[27] !== n?.yAxis?.labels || t[28] !== Yt || t[29] !== X || t[30] !== O || t[31] !== V || t[32] !== R || t[33] !== I || t[34] !== q || t[35] !== N || t[36] !== b || t[37] !== mt || t[38] !== v || t[39] !== a.bottom || t[40] !== a.left || t[41] !== a.top || t[42] !== wt || t[43] !== Kt || t[44] !== It || t[45] !== ft || t[46] !== Y || t[47] !== Et || t[48] !== P || t[49] !== dt || t[50] !== H || t[51] !== ct || t[52] !== st || t[53] !== jt || t[54] !== Qt || t[55] !== f || t[56] !== W || t[57] !== $t || t[58] !== bt || t[59] !== gt || t[60] !== o?.dataConnectors || t[61] !== o?.graphObjectValues || t[62] !== o?.xAxis?.gridLines || t[63] !== o?.xAxis?.labels || t[64] !== o?.xAxis?.title || t[65] !== o?.yAxis?.gridLines || t[66] !== o?.yAxis?.labels || t[67] !== Xt || t[68] !== Nt || t[69] !== xt || t[70] !== Vt || t[71] !== vt) {
421
- const m = Be().domain([ft, Kt]).range([0, N]).nice(), w = Xe().domain(Rt).range([0, It ? Math.max(q, It * O.length) : wt ? Math.min(q, wt * O.length) : q]).paddingInner(Lt), yt = m.ticks(Et);
422
- J = Wt.svg, E = `${vt}px`, _ = `${b}px`, tt = `0 0 ${vt} ${b}`, et = "ltr", L = ie, t[87] !== j ? ($ = j ? /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ i.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[87] = j, t[88] = $) : $ = t[88], Q = `translate(${a.left},${a.top})`, Z = bt ? /* @__PURE__ */ i.jsx(Qe, { values: yt.filter(Vi), x: yt.filter(Ii).map((r) => m(r)), y1: 0 - Nt, y2: q + a.bottom, styles: {
419
+ t[13] !== M || t[14] !== p ? (lt = p ?? M.map(ji), t[13] = M, t[14] = p, t[15] = lt) : lt = t[15];
420
+ const zt = lt;
421
+ let z, q, U, J, K, j, D, k, X, Q, Z, _, C, O, tt;
422
+ if (t[16] !== u || t[17] !== I || t[18] !== W || t[19] !== zt || t[20] !== Vt || t[21] !== n?.dataConnectors || t[22] !== n?.graphObjectValues || t[23] !== n?.xAxis?.gridLines || t[24] !== n?.xAxis?.labels || t[25] !== n?.xAxis?.title || t[26] !== n?.yAxis?.gridLines || t[27] !== n?.yAxis?.labels || t[28] !== Gt || t[29] !== P || t[30] !== M || t[31] !== $ || t[32] !== H || t[33] !== L || t[34] !== st || t[35] !== V || t[36] !== y || t[37] !== dt || t[38] !== A || t[39] !== ht || t[40] !== r.bottom || t[41] !== r.left || t[42] !== r.top || t[43] !== wt || t[44] !== Kt || t[45] !== Dt || t[46] !== pt || t[47] !== B || t[48] !== Ht || t[49] !== S || t[50] !== ct || t[51] !== G || t[52] !== rt || t[53] !== ot || t[54] !== Tt || t[55] !== Qt || t[56] !== f || t[57] !== F || t[58] !== jt || t[59] !== bt || t[60] !== gt || t[61] !== o?.dataConnectors || t[62] !== o?.graphObjectValues || t[63] !== o?.xAxis?.gridLines || t[64] !== o?.xAxis?.labels || t[65] !== o?.xAxis?.title || t[66] !== o?.yAxis?.gridLines || t[67] !== o?.yAxis?.labels || t[68] !== Et || t[69] !== At || t[70] !== ft || t[71] !== Nt || t[72] !== vt) {
423
+ const m = Be().domain([pt, Kt]).range([0, V]).nice(), g = Xe().domain(zt).range([0, Dt ? Math.max(st, Dt * M.length) : wt ? Math.min(st, wt * M.length) : st]).paddingInner(Vt), Ot = m.ticks(Ht);
424
+ q = Xt.svg, X = `${vt}px`, Q = `${y}px`, Z = `0 0 ${vt} ${y}`, _ = "ltr", C = oe, t[88] !== I ? (O = I ? /* @__PURE__ */ a.jsx("defs", { children: /* @__PURE__ */ a.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ a.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[88] = I, t[89] = O) : O = t[89], J = `translate(${r.left},${r.top})`, K = bt ? /* @__PURE__ */ a.jsx(Qe, { values: Ot.filter(Vi), x: Ot.filter(Ii).map((l) => m(l)), y1: 0 - At, y2: st + r.bottom, styles: {
423
425
  gridLines: o?.xAxis?.gridLines,
424
426
  labels: o?.xAxis?.labels
425
427
  }, classNames: {
426
428
  gridLines: n?.xAxis?.gridLines,
427
429
  labels: n?.xAxis?.labels
428
- }, suffix: Xt, prefix: ct, labelType: "secondary", showGridLines: !0, precision: H }) : null;
429
- const C = N / 2, h = 0 - a.top + 15, rt = o?.xAxis?.title, s = n?.xAxis?.title;
430
- t[89] !== B || t[90] !== C || t[91] !== h || t[92] !== rt || t[93] !== s ? (D = /* @__PURE__ */ i.jsx(Fe, { x: C, y: h, style: rt, className: s, text: B }), t[89] = B, t[90] = C, t[91] = h, t[92] = rt, t[93] = s, t[94] = D) : D = t[94];
431
- const zt = o?.yAxis?.gridLines;
432
- let kt;
433
- t[95] !== zt ? (kt = {
434
- gridLines: zt
435
- }, t[95] = zt, t[96] = kt) : kt = t[96];
436
- const ee = n?.yAxis?.gridLines;
437
- let Mt;
438
- t[97] !== ee ? (Mt = {
439
- gridLines: ee
440
- }, t[97] = ee, t[98] = Mt) : Mt = t[98], T = /* @__PURE__ */ i.jsx(Pe, { y: O.map((r) => w(`${r.id}`) + w.bandwidth() / 2), x1: 0, x2: N, styles: kt, classNames: Mt, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: H }), t[99] !== X ? (M = X.filter($i).map(Li), t[99] = X, t[100] = M) : M = t[100], U = Ee, it = O.map((r) => /* @__PURE__ */ i.jsxs(Wt.g, { className: "undp-viz-g-with-hover", variants: {
430
+ }, suffix: Et, prefix: rt, labelType: "secondary", showGridLines: !0, precision: G, locale: ht }) : null;
431
+ const b = V / 2, s = 0 - r.top + 15, ut = o?.xAxis?.title, E = n?.xAxis?.title;
432
+ t[90] !== W || t[91] !== b || t[92] !== s || t[93] !== ut || t[94] !== E ? (j = /* @__PURE__ */ a.jsx(Fe, { x: b, y: s, style: ut, className: E, text: W }), t[90] = W, t[91] = b, t[92] = s, t[93] = ut, t[94] = E, t[95] = j) : j = t[95];
433
+ const Bt = o?.yAxis?.gridLines;
434
+ let ee;
435
+ t[96] !== Bt ? (ee = {
436
+ gridLines: Bt
437
+ }, t[96] = Bt, t[97] = ee) : ee = t[97];
438
+ const Lt = n?.yAxis?.gridLines;
439
+ let ie;
440
+ t[98] !== Lt ? (ie = {
441
+ gridLines: Lt
442
+ }, t[98] = Lt, t[99] = ie) : ie = t[99], D = /* @__PURE__ */ a.jsx(We, { y: M.map((l) => g(`${l.id}`) + g.bandwidth() / 2), x1: 0, x2: V, styles: ee, classNames: ie, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: G, locale: ht }), t[100] !== P ? (k = P.filter($i).map(Li), t[100] = P, t[101] = k) : k = t[101], z = Ee, tt = M.map((l) => /* @__PURE__ */ a.jsxs(Xt.g, { className: "undp-viz-g-with-hover", variants: {
441
443
  initial: {
442
444
  x: 0,
443
- y: w(`${r.id}`) + w.bandwidth() / 2,
444
- opacity: mt.length !== 0 ? mt.indexOf(r.label) !== -1 ? 0.85 : R : 0.85
445
+ y: g(`${l.id}`) + g.bandwidth() / 2,
446
+ opacity: dt ? dt.indexOf(l.label) !== -1 ? 0.85 : H : 0.85
445
447
  },
446
448
  whileInView: {
447
449
  x: 0,
448
- y: w(`${r.id}`) + w.bandwidth() / 2,
449
- opacity: mt.length !== 0 ? mt.indexOf(r.label) !== -1 ? 0.85 : R : 0.85,
450
+ y: g(`${l.id}`) + g.bandwidth() / 2,
451
+ opacity: dt ? dt.indexOf(l.label) !== -1 ? 0.85 : H : 0.85,
450
452
  transition: {
451
- duration: x.duration
453
+ duration: u.duration
452
454
  }
453
455
  }
454
- }, initial: "initial", animate: v ? "whileInView" : "initial", exit: {
456
+ }, initial: "initial", animate: A ? "whileInView" : "initial", exit: {
455
457
  opacity: 0,
456
458
  transition: {
457
- duration: x.duration
459
+ duration: u.duration
458
460
  }
459
461
  }, children: [
460
- $t ? /* @__PURE__ */ i.jsx(Ze, { value: `${r.label}`.length < xt ? `${r.label}` : `${`${r.label}`.substring(0, xt)}...`, y: 0 - w.bandwidth() / 2, x: 0 - a.left, width: a.left, height: w.bandwidth(), alignment: "right", style: o?.yAxis?.labels, className: n?.yAxis?.labels, animate: x, isInView: v }) : null,
461
- /* @__PURE__ */ i.jsx(Wt.line, { y1: 0, y2: 0, style: {
462
- strokeWidth: Yt,
462
+ jt ? /* @__PURE__ */ a.jsx(Ze, { value: `${l.label}`.length < ft ? `${l.label}` : `${`${l.label}`.substring(0, ft)}...`, y: 0 - g.bandwidth() / 2, x: 0 - r.left, width: r.left, height: g.bandwidth(), alignment: "right", style: o?.yAxis?.labels, className: n?.yAxis?.labels, animate: u, isInView: A }) : null,
463
+ /* @__PURE__ */ a.jsx(Xt.line, { y1: 0, y2: 0, style: {
464
+ strokeWidth: Gt,
463
465
  ...o?.dataConnectors || {},
464
- opacity: W ? 0.3 : 1
465
- }, className: be("stroke-primary-gray-600 dark:stroke-primary-gray-300", n?.dataConnectors), markerEnd: j && r.x.indexOf(Math.min(...r.x.filter(Oi))) === 0 ? "url(#arrow)" : "", markerStart: j && r.x.indexOf(Math.min(...r.x.filter(Ci))) === r.x.length - 1 ? "url(#arrow)" : "", exit: {
466
+ opacity: F ? 0.3 : 1
467
+ }, className: ve("stroke-primary-gray-600 dark:stroke-primary-gray-300", n?.dataConnectors), markerEnd: I && l.x.indexOf(Math.min(...l.x.filter(Oi))) === 0 ? "url(#arrow)" : "", markerStart: I && l.x.indexOf(Math.min(...l.x.filter(Ci))) === l.x.length - 1 ? "url(#arrow)" : "", exit: {
466
468
  opacity: 0,
467
469
  transition: {
468
- duration: x.duration
470
+ duration: u.duration
469
471
  }
470
472
  }, variants: {
471
473
  initial: {
@@ -473,65 +475,65 @@ function vi(e) {
473
475
  x2: 0
474
476
  },
475
477
  whileInView: {
476
- x1: m(Math.min(...r.x.filter(Mi))) + st,
477
- x2: m(Math.max(...r.x.filter(ki))) - st,
478
+ x1: m(Math.min(...l.x.filter(Mi))) + ot,
479
+ x2: m(Math.max(...l.x.filter(ki))) - ot,
478
480
  transition: {
479
- duration: x.duration
481
+ duration: u.duration
480
482
  }
481
483
  }
482
- }, initial: "initial", animate: v ? "whileInView" : "initial" }),
483
- r.x.map((A, F) => /* @__PURE__ */ i.jsx(Wt.g, { onMouseEnter: (l) => {
484
+ }, initial: "initial", animate: A ? "whileInView" : "initial" }),
485
+ l.x.map((xt, v) => /* @__PURE__ */ a.jsx(Xt.g, { onMouseEnter: (i) => {
484
486
  _t({
485
- ...r,
486
- xIndex: F
487
- }), Pt(l.clientY), St(l.clientX), dt?.({
488
- ...r,
489
- xIndex: F
487
+ ...l,
488
+ xIndex: v
489
+ }), Wt(i.clientY), te(i.clientX), ct?.({
490
+ ...l,
491
+ xIndex: v
490
492
  });
491
493
  }, onClick: () => {
492
- (P || V) && (Te(Y, {
493
- ...r,
494
- xIndex: F
495
- }) && Qt ? (te(void 0), P?.(void 0)) : (te({
496
- ...r,
497
- xIndex: F
498
- }), P && P({
499
- ...r,
500
- xIndex: F
494
+ (S || $) && (Te(B, {
495
+ ...l,
496
+ xIndex: v
497
+ }) && Qt ? (Ft(void 0), S?.(void 0)) : (Ft({
498
+ ...l,
499
+ xIndex: v
500
+ }), S && S({
501
+ ...l,
502
+ xIndex: v
501
503
  })));
502
- }, onMouseMove: (l) => {
504
+ }, onMouseMove: (i) => {
503
505
  _t({
504
- ...r,
505
- xIndex: F
506
- }), Pt(l.clientY), St(l.clientX);
506
+ ...l,
507
+ xIndex: v
508
+ }), Wt(i.clientY), te(i.clientX);
507
509
  }, onMouseLeave: () => {
508
- _t(void 0), St(void 0), Pt(void 0), dt?.(void 0);
510
+ _t(void 0), te(void 0), Wt(void 0), ct?.(void 0);
509
511
  }, exit: {
510
512
  opacity: 0,
511
513
  transition: {
512
- duration: x.duration
514
+ duration: u.duration
513
515
  }
514
516
  }, variants: {
515
517
  initial: {
516
- opacity: W ? I[F] === W ? 1 : 0.3 : 1
518
+ opacity: F ? L[v] === F ? 1 : 0.3 : 1
517
519
  },
518
520
  whileInView: {
519
- opacity: W ? I[F] === W ? 1 : 0.3 : 1,
521
+ opacity: F ? L[v] === F ? 1 : 0.3 : 1,
520
522
  transition: {
521
- duration: x.duration
523
+ duration: u.duration
522
524
  }
523
525
  }
524
- }, initial: "initial", animate: v ? "whileInView" : "initial", children: Bt(A) ? null : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
525
- /* @__PURE__ */ i.jsx(Wt.circle, { cy: 0, r: st, style: {
526
- fill: I[F],
526
+ }, initial: "initial", animate: A ? "whileInView" : "initial", children: Yt(xt) ? null : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
527
+ /* @__PURE__ */ a.jsx(Xt.circle, { cy: 0, r: ot, style: {
528
+ fill: L[v],
527
529
  fillOpacity: 0.85,
528
- stroke: I[F],
530
+ stroke: L[v],
529
531
  strokeWidth: 1,
530
- opacity: Bt(A) ? 0 : 1
532
+ opacity: Yt(xt) ? 0 : 1
531
533
  }, exit: {
532
534
  opacity: 0,
533
535
  transition: {
534
- duration: x.duration
536
+ duration: u.duration
535
537
  }
536
538
  }, variants: {
537
539
  initial: {
@@ -539,71 +541,71 @@ function vi(e) {
539
541
  opacity: 0
540
542
  },
541
543
  whileInView: {
542
- cx: m(A || 0),
543
- opacity: Bt(A) ? 0 : 1,
544
+ cx: m(xt || 0),
545
+ opacity: Yt(xt) ? 0 : 1,
544
546
  transition: {
545
- duration: x.duration
547
+ duration: u.duration
546
548
  }
547
549
  }
548
- }, initial: "initial", animate: v ? "whileInView" : "initial" }),
549
- gt ? /* @__PURE__ */ i.jsx(Wt.text, { y: 0, style: {
550
+ }, initial: "initial", animate: A ? "whileInView" : "initial" }),
551
+ gt ? /* @__PURE__ */ a.jsx(Xt.text, { y: 0, style: {
550
552
  textAnchor: "middle",
551
553
  ...o?.graphObjectValues || {}
552
- }, dx: 0, dy: 0 - st - 3, className: be("graph-value text-sm font-bold", Bt(A) ? "0opacity-0" : "opacity-100", n?.graphObjectValues), exit: {
554
+ }, dx: 0, dy: 0 - ot - 3, className: ve("graph-value text-sm font-bold", Yt(xt) ? "0opacity-0" : "opacity-100", n?.graphObjectValues), exit: {
553
555
  opacity: 0,
554
556
  transition: {
555
- duration: x.duration
557
+ duration: u.duration
556
558
  }
557
559
  }, variants: {
558
560
  initial: {
559
561
  x: m(0),
560
562
  opacity: 0,
561
- fill: Vt || I[F]
563
+ fill: Nt || L[v]
562
564
  },
563
565
  whileInView: {
564
- x: m(A || 0),
565
- fill: Vt || I[F],
566
+ x: m(xt || 0),
567
+ fill: Nt || L[v],
566
568
  opacity: 1,
567
569
  transition: {
568
- duration: x.duration
570
+ duration: u.duration
569
571
  }
570
572
  }
571
- }, initial: "initial", animate: v ? "whileInView" : "initial", children: $e(A, "NA", H, ct, Xt) }) : null
572
- ] }) }, F))
573
- ] }, r.label)), K = jt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: jt.map((r, A) => /* @__PURE__ */ i.jsx(Je, { text: r.text, color: r.color, x: m(r.value), y1: 0 - a.top, y2: q + a.bottom, textSide: m(r.value) > N * 0.75 || f ? "left" : "right", classNames: r.classNames, styles: r.styles, animate: x, isInView: v }, A)) }) : null, t[16] = x, t[17] = j, t[18] = B, t[19] = Rt, t[20] = Lt, t[21] = n?.dataConnectors, t[22] = n?.graphObjectValues, t[23] = n?.xAxis?.gridLines, t[24] = n?.xAxis?.labels, t[25] = n?.xAxis?.title, t[26] = n?.yAxis?.gridLines, t[27] = n?.yAxis?.labels, t[28] = Yt, t[29] = X, t[30] = O, t[31] = V, t[32] = R, t[33] = I, t[34] = q, t[35] = N, t[36] = b, t[37] = mt, t[38] = v, t[39] = a.bottom, t[40] = a.left, t[41] = a.top, t[42] = wt, t[43] = Kt, t[44] = It, t[45] = ft, t[46] = Y, t[47] = Et, t[48] = P, t[49] = dt, t[50] = H, t[51] = ct, t[52] = st, t[53] = jt, t[54] = Qt, t[55] = f, t[56] = W, t[57] = $t, t[58] = bt, t[59] = gt, t[60] = o?.dataConnectors, t[61] = o?.graphObjectValues, t[62] = o?.xAxis?.gridLines, t[63] = o?.xAxis?.labels, t[64] = o?.xAxis?.title, t[65] = o?.yAxis?.gridLines, t[66] = o?.yAxis?.labels, t[67] = Xt, t[68] = Nt, t[69] = xt, t[70] = Vt, t[71] = vt, t[72] = U, t[73] = J, t[74] = K, t[75] = Q, t[76] = Z, t[77] = D, t[78] = T, t[79] = M, t[80] = E, t[81] = _, t[82] = tt, t[83] = et, t[84] = L, t[85] = $, t[86] = it;
573
+ }, initial: "initial", animate: A ? "whileInView" : "initial", children: $e(xt, void 0, G, rt, Et, ht) }) : null
574
+ ] }) }, v))
575
+ ] }, l.label)), U = Tt ? /* @__PURE__ */ a.jsx(a.Fragment, { children: Tt.map((l, xt) => /* @__PURE__ */ a.jsx(Je, { text: l.text, color: l.color, x: m(l.value), y1: 0 - r.top, y2: st + r.bottom, textSide: m(l.value) > V * 0.75 || f ? "left" : "right", classNames: l.classNames, styles: l.styles, animate: u, isInView: A }, xt)) }) : null, t[16] = u, t[17] = I, t[18] = W, t[19] = zt, t[20] = Vt, t[21] = n?.dataConnectors, t[22] = n?.graphObjectValues, t[23] = n?.xAxis?.gridLines, t[24] = n?.xAxis?.labels, t[25] = n?.xAxis?.title, t[26] = n?.yAxis?.gridLines, t[27] = n?.yAxis?.labels, t[28] = Gt, t[29] = P, t[30] = M, t[31] = $, t[32] = H, t[33] = L, t[34] = st, t[35] = V, t[36] = y, t[37] = dt, t[38] = A, t[39] = ht, t[40] = r.bottom, t[41] = r.left, t[42] = r.top, t[43] = wt, t[44] = Kt, t[45] = Dt, t[46] = pt, t[47] = B, t[48] = Ht, t[49] = S, t[50] = ct, t[51] = G, t[52] = rt, t[53] = ot, t[54] = Tt, t[55] = Qt, t[56] = f, t[57] = F, t[58] = jt, t[59] = bt, t[60] = gt, t[61] = o?.dataConnectors, t[62] = o?.graphObjectValues, t[63] = o?.xAxis?.gridLines, t[64] = o?.xAxis?.labels, t[65] = o?.xAxis?.title, t[66] = o?.yAxis?.gridLines, t[67] = o?.yAxis?.labels, t[68] = Et, t[69] = At, t[70] = ft, t[71] = Nt, t[72] = vt, t[73] = z, t[74] = q, t[75] = U, t[76] = J, t[77] = K, t[78] = j, t[79] = D, t[80] = k, t[81] = X, t[82] = Q, t[83] = Z, t[84] = _, t[85] = C, t[86] = O, t[87] = tt;
574
576
  } else
575
- U = t[72], J = t[73], K = t[74], Q = t[75], Z = t[76], D = t[77], T = t[78], M = t[79], E = t[80], _ = t[81], tt = t[82], et = t[83], L = t[84], $ = t[85], it = t[86];
576
- let nt;
577
- t[101] !== U || t[102] !== K || t[103] !== it ? (nt = /* @__PURE__ */ i.jsxs(U, { children: [
578
- it,
579
- K
580
- ] }), t[101] = U, t[102] = K, t[103] = it, t[104] = nt) : nt = t[104];
581
- let at;
582
- t[105] !== X ? (at = X.filter(Ai).map(wi), t[105] = X, t[106] = at) : at = t[106];
583
- let ut;
584
- t[107] !== Q || t[108] !== Z || t[109] !== D || t[110] !== T || t[111] !== M || t[112] !== nt || t[113] !== at ? (ut = /* @__PURE__ */ i.jsxs("g", { transform: Q, children: [
585
- Z,
577
+ z = t[73], q = t[74], U = t[75], J = t[76], K = t[77], j = t[78], D = t[79], k = t[80], X = t[81], Q = t[82], Z = t[83], _ = t[84], C = t[85], O = t[86], tt = t[87];
578
+ let et;
579
+ t[102] !== z || t[103] !== U || t[104] !== tt ? (et = /* @__PURE__ */ a.jsxs(z, { children: [
580
+ tt,
581
+ U
582
+ ] }), t[102] = z, t[103] = U, t[104] = tt, t[105] = et) : et = t[105];
583
+ let it;
584
+ t[106] !== P ? (it = P.filter(Ai).map(wi), t[106] = P, t[107] = it) : it = t[107];
585
+ let mt;
586
+ t[108] !== J || t[109] !== K || t[110] !== j || t[111] !== D || t[112] !== k || t[113] !== et || t[114] !== it ? (mt = /* @__PURE__ */ a.jsxs("g", { transform: J, children: [
587
+ K,
588
+ j,
586
589
  D,
587
- T,
588
- M,
589
- nt,
590
+ k,
591
+ et,
592
+ it
593
+ ] }), t[108] = J, t[109] = K, t[110] = j, t[111] = D, t[112] = k, t[113] = et, t[114] = it, t[115] = mt) : mt = t[115];
594
+ let N;
595
+ t[116] !== q || t[117] !== X || t[118] !== Q || t[119] !== Z || t[120] !== _ || t[121] !== C || t[122] !== O || t[123] !== mt ? (N = /* @__PURE__ */ a.jsxs(q, { width: X, height: Q, viewBox: Z, direction: _, ref: C, children: [
596
+ O,
597
+ mt
598
+ ] }), t[116] = q, t[117] = X, t[118] = Q, t[119] = Z, t[120] = _, t[121] = C, t[122] = O, t[123] = mt, t[124] = N) : N = t[124];
599
+ let Y;
600
+ t[125] !== n?.tooltip || t[126] !== Mt || t[127] !== yt || t[128] !== St || t[129] !== o?.tooltip || t[130] !== w ? (Y = St && w && Mt && yt ? /* @__PURE__ */ a.jsx(Se, { data: St, body: w, xPos: Mt, yPos: yt, backgroundStyle: o?.tooltip, className: n?.tooltip }) : null, t[125] = n?.tooltip, t[126] = Mt, t[127] = yt, t[128] = St, t[129] = o?.tooltip, t[130] = w, t[131] = Y) : Y = t[131];
601
+ let at;
602
+ t[132] !== n?.modal || t[133] !== $ || t[134] !== B ? (at = $ && B !== void 0 ? /* @__PURE__ */ a.jsx(Pe, { body: $, data: B, setData: Ft, className: n?.modal }) : null, t[132] = n?.modal, t[133] = $, t[134] = B, t[135] = at) : at = t[135];
603
+ let Ct;
604
+ return t[136] !== N || t[137] !== Y || t[138] !== at ? (Ct = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
605
+ N,
606
+ Y,
590
607
  at
591
- ] }), t[107] = Q, t[108] = Z, t[109] = D, t[110] = T, t[111] = M, t[112] = nt, t[113] = at, t[114] = ut) : ut = t[114];
592
- let S;
593
- t[115] !== J || t[116] !== E || t[117] !== _ || t[118] !== tt || t[119] !== et || t[120] !== L || t[121] !== $ || t[122] !== ut ? (S = /* @__PURE__ */ i.jsxs(J, { width: E, height: _, viewBox: tt, direction: et, ref: L, children: [
594
- $,
595
- ut
596
- ] }), t[115] = J, t[116] = E, t[117] = _, t[118] = tt, t[119] = et, t[120] = L, t[121] = $, t[122] = ut, t[123] = S) : S = t[123];
597
- let G;
598
- t[124] !== n?.tooltip || t[125] !== ht || t[126] !== Ft || t[127] !== Tt || t[128] !== o?.tooltip || t[129] !== k ? (G = Tt && k && ht && Ft ? /* @__PURE__ */ i.jsx(Se, { data: Tt, body: k, xPos: ht, yPos: Ft, backgroundStyle: o?.tooltip, className: n?.tooltip }) : null, t[124] = n?.tooltip, t[125] = ht, t[126] = Ft, t[127] = Tt, t[128] = o?.tooltip, t[129] = k, t[130] = G) : G = t[130];
599
- let ot;
600
- t[131] !== n?.modal || t[132] !== V || t[133] !== Y ? (ot = V && Y !== void 0 ? /* @__PURE__ */ i.jsx(We, { body: V, data: Y, setData: te, className: n?.modal }) : null, t[131] = n?.modal, t[132] = V, t[133] = Y, t[134] = ot) : ot = t[134];
601
- let At;
602
- return t[135] !== S || t[136] !== G || t[137] !== ot ? (At = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
603
- S,
604
- G,
605
- ot
606
- ] }), t[135] = S, t[136] = G, t[137] = ot, t[138] = At) : At = t[138], At;
608
+ ] }), t[136] = N, t[137] = Y, t[138] = at, t[139] = Ct) : Ct = t[139], Ct;
607
609
  }
608
610
  function wi(e) {
609
611
  return e.layer;
@@ -638,169 +640,167 @@ function Vi(e, t) {
638
640
  function ji(e) {
639
641
  return `${e.id}`;
640
642
  }
641
- function $n(e) {
642
- const t = Ie.c(131), {
643
+ function La(e) {
644
+ const t = Ie.c(130), {
643
645
  data: c,
644
646
  graphTitle: qt,
645
- colors: ae,
647
+ colors: ne,
646
648
  sources: Ut,
647
649
  graphDescription: Jt,
648
- barPadding: I,
649
- showTicks: Xt,
650
- leftMargin: ct,
651
- rightMargin: Lt,
650
+ barPadding: L,
651
+ showTicks: Et,
652
+ leftMargin: rt,
653
+ rightMargin: Vt,
652
654
  topMargin: gt,
653
655
  bottomMargin: bt,
654
- truncateBy: xt,
656
+ truncateBy: ft,
655
657
  height: vt,
656
- width: b,
657
- footNote: st,
658
- colorDomain: $t,
659
- colorLegendTitle: k,
660
- padding: dt,
658
+ width: y,
659
+ footNote: ot,
660
+ colorDomain: jt,
661
+ colorLegendTitle: w,
662
+ padding: ct,
661
663
  backgroundColor: Kt,
662
- radius: ft,
663
- tooltip: P,
664
- showLabels: W,
665
- relativeHeight: j,
666
- onSeriesMouseOver: Yt,
664
+ radius: pt,
665
+ tooltip: S,
666
+ showLabels: F,
667
+ relativeHeight: I,
668
+ onSeriesMouseOver: Gt,
667
669
  graphID: wt,
668
- suffix: It,
670
+ suffix: Dt,
669
671
  prefix: Qt,
670
- maxValue: V,
671
- minValue: B,
672
- onSeriesMouseClick: Et,
673
- graphDownload: Vt,
672
+ maxValue: $,
673
+ minValue: W,
674
+ onSeriesMouseClick: Ht,
675
+ graphDownload: Nt,
674
676
  dataDownload: o,
675
677
  showValues: n,
676
- sortParameter: y,
677
- arrowConnector: jt,
678
+ sortParameter: p,
679
+ arrowConnector: Tt,
678
680
  connectorStrokeWidth: f,
679
- language: x,
680
- minHeight: H,
681
- theme: X,
682
- maxBarThickness: mt,
683
- maxNumberOfBars: R,
684
- minBarThickness: z,
685
- ariaLabel: Gt,
686
- resetSelectionOnDoubleClick: Nt,
687
- detailsOnClick: Ht,
688
- axisTitle: ie,
689
- noOfTicks: Dt,
690
- valueColor: v,
691
- orientation: Zt,
692
- styles: p,
693
- classNames: a,
694
- labelOrder: N,
695
- refValues: q,
696
- filterNA: Tt,
697
- animate: _t,
698
- precision: Y,
699
- showColorScale: te,
700
- customLayers: ht,
701
- highlightedDataPoints: St,
702
- dimmedOpacity: Ft,
703
- timeline: Pt,
704
- sortData: pt,
705
- hideAxisLine: O
706
- } = e, lt = ae === void 0 ? li.light.categoricalColors.colors : ae, Rt = I === void 0 ? 0.25 : I, U = Xt === void 0 ? !0 : Xt, J = xt === void 0 ? 999 : xt, K = Kt === void 0 ? !0 : Kt, Q = ft === void 0 ? 3 : ft, Z = W === void 0 ? !0 : W, D = It === void 0 ? "" : It, T = Qt === void 0 ? "" : Qt, M = Vt === void 0 ? !1 : Vt, E = o === void 0 ? !1 : o, _ = n === void 0 ? !0 : n, tt = jt === void 0 ? !1 : jt, et = f === void 0 ? 2 : f, L = x === void 0 ? "en" : x, $ = H === void 0 ? 0 : H, it = X === void 0 ? "light" : X, nt = Nt === void 0 ? !0 : Nt, at = Dt === void 0 ? 5 : Dt, ut = Zt === void 0 ? "vertical" : Zt, S = Tt === void 0 ? !0 : Tt, G = _t === void 0 ? !1 : _t, ot = Y === void 0 ? 2 : Y, At = te === void 0 ? !0 : te;
681
+ language: u,
682
+ minHeight: G,
683
+ theme: P,
684
+ maxBarThickness: dt,
685
+ maxNumberOfBars: H,
686
+ minBarThickness: ht,
687
+ ariaLabel: R,
688
+ resetSelectionOnDoubleClick: Zt,
689
+ detailsOnClick: At,
690
+ axisTitle: Rt,
691
+ noOfTicks: oe,
692
+ valueColor: kt,
693
+ orientation: A,
694
+ styles: h,
695
+ classNames: x,
696
+ labelOrder: r,
697
+ refValues: V,
698
+ filterNA: st,
699
+ animate: St,
700
+ precision: _t,
701
+ showColorScale: B,
702
+ customLayers: Ft,
703
+ highlightedDataPoints: Mt,
704
+ dimmedOpacity: te,
705
+ timeline: yt,
706
+ sortData: Wt,
707
+ hideAxisLine: Pt,
708
+ locale: M
709
+ } = e, lt = ne === void 0 ? li.light.categoricalColors.colors : ne, zt = L === void 0 ? 0.25 : L, z = Et === void 0 ? !0 : Et, q = ft === void 0 ? 999 : ft, U = Kt === void 0 ? !0 : Kt, J = pt === void 0 ? 3 : pt, K = F === void 0 ? !0 : F, j = Dt === void 0 ? "" : Dt, D = Qt === void 0 ? "" : Qt, k = Nt === void 0 ? !1 : Nt, X = o === void 0 ? !1 : o, Q = n === void 0 ? !0 : n, Z = Tt === void 0 ? !1 : Tt, _ = f === void 0 ? 2 : f, C = u === void 0 ? "en" : u, O = G === void 0 ? 0 : G, tt = P === void 0 ? "light" : P, et = Zt === void 0 ? !0 : Zt, it = oe === void 0 ? 5 : oe, mt = A === void 0 ? "vertical" : A, N = st === void 0 ? !0 : st, Y = St === void 0 ? !1 : St, at = _t === void 0 ? 2 : _t, Ct = B === void 0 ? !0 : B;
707
710
  let m;
708
- t[0] !== ht ? (m = ht === void 0 ? [] : ht, t[0] = ht, t[1] = m) : m = t[1];
709
- const w = m;
710
- let yt;
711
- t[2] !== St ? (yt = St === void 0 ? [] : St, t[2] = St, t[3] = yt) : yt = t[3];
712
- const C = yt, h = Ft === void 0 ? 0.3 : Ft;
713
- let rt;
714
- t[4] !== Pt ? (rt = Pt === void 0 ? {
711
+ t[0] !== Ft ? (m = Ft === void 0 ? [] : Ft, t[0] = Ft, t[1] = m) : m = t[1];
712
+ const g = m, Ot = te === void 0 ? 0.3 : te;
713
+ let b;
714
+ t[2] !== yt ? (b = yt === void 0 ? {
715
715
  enabled: !1,
716
716
  autoplay: !1,
717
717
  showOnlyActiveDate: !0
718
- } : Pt, t[4] = Pt, t[5] = rt) : rt = t[5];
719
- const s = rt, zt = O === void 0 ? !1 : O, [kt, ee] = Ot(0), [Mt, r] = Ot(0), [A, F] = Ot(s.autoplay);
720
- let l;
721
- if (t[6] !== c || t[7] !== s.dateFormat) {
718
+ } : yt, t[2] = yt, t[3] = b) : b = t[3];
719
+ const s = b, ut = Pt === void 0 ? !1 : Pt, E = M === void 0 ? "en" : M, [Bt, ee] = It(0), [Lt, ie] = It(0), [l, xt] = It(s.autoplay);
720
+ let v;
721
+ if (t[4] !== c || t[5] !== s.dateFormat) {
722
722
  let d;
723
- t[9] !== s.dateFormat ? (d = (Ct) => He(`${Ct.date}`, s.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[9] = s.dateFormat, t[10] = d) : d = t[10], l = [...new Set(c.filter(Ki).map(d))], l.sort(Ji), t[6] = c, t[7] = s.dateFormat, t[8] = l;
723
+ t[7] !== s.dateFormat ? (d = ($t) => He(`${$t.date}`, s.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = s.dateFormat, t[8] = d) : d = t[8], v = [...new Set(c.filter(Ki).map(d))], v.sort(Ji), t[4] = c, t[5] = s.dateFormat, t[6] = v;
724
724
  } else
725
- l = t[8];
726
- const u = l, [g, ne] = Ot(s.autoplay ? 0 : u.length - 1), [we, Ge] = Ot(void 0), Ae = ve(null), Ve = ve(null);
727
- let ue, xe;
728
- t[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ue = () => {
729
- const d = new ResizeObserver((Ct) => {
730
- ee(Ct[0].target.clientWidth || 620), r(Ct[0].target.clientHeight || 480);
725
+ v = t[6];
726
+ const i = v, [T, nt] = It(s.autoplay ? 0 : i.length - 1), [ae, Ge] = It(void 0), Ae = we(null), Ve = we(null);
727
+ let xe, fe;
728
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xe = () => {
729
+ const d = new ResizeObserver(($t) => {
730
+ ee($t[0].target.clientWidth || 620), ie($t[0].target.clientHeight || 480);
731
731
  });
732
732
  return Ae.current && d.observe(Ae.current), () => d.disconnect();
733
- }, xe = [], t[11] = ue, t[12] = xe) : (ue = t[11], xe = t[12]), De(ue, xe);
734
- let fe, he;
735
- t[13] !== A || t[14] !== s.speed || t[15] !== u ? (fe = () => {
733
+ }, fe = [], t[9] = xe, t[10] = fe) : (xe = t[9], fe = t[10]), Ne(xe, fe);
734
+ let pe, he;
735
+ t[11] !== l || t[12] !== s.speed || t[13] !== i ? (pe = () => {
736
736
  const d = setInterval(() => {
737
- ne((Ct) => Ct < u.length - 1 ? Ct + 1 : 0);
737
+ nt(($t) => $t < i.length - 1 ? $t + 1 : 0);
738
738
  }, (s.speed || 2) * 1e3);
739
- return A || clearInterval(d), () => clearInterval(d);
740
- }, he = [u, A, s.speed], t[13] = A, t[14] = s.speed, t[15] = u, t[16] = fe, t[17] = he) : (fe = t[16], he = t[17]), De(fe, he);
739
+ return l || clearInterval(d), () => clearInterval(d);
740
+ }, he = [i, l, s.speed], t[11] = l, t[12] = s.speed, t[13] = i, t[14] = pe, t[15] = he) : (pe = t[14], he = t[15]), Ne(pe, he);
741
741
  const ke = s.dateFormat || "yyyy";
742
- let pe;
743
- t[18] !== g || t[19] !== ke || t[20] !== s.showOnlyActiveDate || t[21] !== u ? (pe = Re(u, g, s.showOnlyActiveDate, ke), t[18] = g, t[19] = ke, t[20] = s.showOnlyActiveDate, t[21] = u, t[22] = pe) : pe = t[22];
744
- const ye = pe, Me = ut === "horizontal" ? vi : ri, Ce = a?.graphContainer, Oe = p?.graphContainer;
745
- let oe;
746
- t[23] !== a?.description || t[24] !== a?.title || t[25] !== c || t[26] !== E || t[27] !== Jt || t[28] !== M || t[29] !== qt || t[30] !== p?.description || t[31] !== p?.title || t[32] !== b ? (oe = qt || Jt || M || E ? /* @__PURE__ */ i.jsx(ei, { styles: {
747
- title: p?.title,
748
- description: p?.description
749
- }, classNames: {
750
- title: a?.title,
751
- description: a?.description
752
- }, graphTitle: qt, graphDescription: Jt, width: b, graphDownload: M ? Ve : void 0, dataDownload: E ? c.map(Ui).filter(qi).length > 0 ? c.map(zi).filter(Ri) : c.filter(Hi) : null }) : null, t[23] = a?.description, t[24] = a?.title, t[25] = c, t[26] = E, t[27] = Jt, t[28] = M, t[29] = qt, t[30] = p?.description, t[31] = p?.title, t[32] = b, t[33] = oe) : oe = t[33];
742
+ let ye;
743
+ t[16] !== T || t[17] !== ke || t[18] !== s.showOnlyActiveDate || t[19] !== i ? (ye = Re(i, T, s.showOnlyActiveDate, ke), t[16] = T, t[17] = ke, t[18] = s.showOnlyActiveDate, t[19] = i, t[20] = ye) : ye = t[20];
744
+ const ge = ye, Me = mt === "horizontal" ? vi : ri, Ce = x?.graphContainer, Oe = h?.graphContainer;
753
745
  let se;
754
- t[34] !== g || t[35] !== ye || t[36] !== A || t[37] !== s.enabled || t[38] !== u ? (se = s.enabled && u.length > 0 && ye ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
755
- /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
756
- F(!A);
757
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": A ? "Click to pause animation" : "Click to play animation", children: A ? /* @__PURE__ */ i.jsx(ii, {}) : /* @__PURE__ */ i.jsx(ni, {}) }),
758
- /* @__PURE__ */ i.jsx(ze, { min: u[0], max: u[u.length - 1], marks: ye, step: null, defaultValue: u[u.length - 1], value: u[g], onChangeComplete: (d) => {
759
- ne(u.indexOf(d));
746
+ t[21] !== x?.description || t[22] !== x?.title || t[23] !== c || t[24] !== X || t[25] !== Jt || t[26] !== k || t[27] !== qt || t[28] !== h?.description || t[29] !== h?.title || t[30] !== y ? (se = qt || Jt || k || X ? /* @__PURE__ */ a.jsx(ei, { styles: {
747
+ title: h?.title,
748
+ description: h?.description
749
+ }, classNames: {
750
+ title: x?.title,
751
+ description: x?.description
752
+ }, graphTitle: qt, graphDescription: Jt, width: y, graphDownload: k ? Ve : void 0, dataDownload: X ? c.map(Ui).filter(qi).length > 0 ? c.map(zi).filter(Ri) : c.filter(Hi) : null }) : null, t[21] = x?.description, t[22] = x?.title, t[23] = c, t[24] = X, t[25] = Jt, t[26] = k, t[27] = qt, t[28] = h?.description, t[29] = h?.title, t[30] = y, t[31] = se) : se = t[31];
753
+ let le;
754
+ t[32] !== T || t[33] !== ge || t[34] !== l || t[35] !== s.enabled || t[36] !== i ? (le = s.enabled && i.length > 0 && ge ? /* @__PURE__ */ a.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
755
+ /* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => {
756
+ xt(!l);
757
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": l ? "Click to pause animation" : "Click to play animation", children: l ? /* @__PURE__ */ a.jsx(ii, {}) : /* @__PURE__ */ a.jsx(ai, {}) }),
758
+ /* @__PURE__ */ a.jsx(ze, { min: i[0], max: i[i.length - 1], marks: ge, step: null, defaultValue: i[i.length - 1], value: i[T], onChangeComplete: (d) => {
759
+ nt(i.indexOf(d));
760
760
  }, onChange: (d) => {
761
- ne(u.indexOf(d));
761
+ nt(i.indexOf(d));
762
762
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
763
- ] }) : null, t[34] = g, t[35] = ye, t[36] = A, t[37] = s.enabled, t[38] = u, t[39] = se) : se = t[39];
764
- let le;
765
- t[40] !== a?.colorLegend || t[41] !== $t || t[42] !== k || t[43] !== lt || t[44] !== c.length || t[45] !== At || t[46] !== b ? (le = At && c.length > 0 ? /* @__PURE__ */ i.jsx(oi, { width: b, colorDomain: $t, colors: lt, colorLegendTitle: k, setSelectedColor: Ge, showNAColor: !1, className: a?.colorLegend }) : null, t[40] = a?.colorLegend, t[41] = $t, t[42] = k, t[43] = lt, t[44] = c.length, t[45] = At, t[46] = b, t[47] = le) : le = t[47];
763
+ ] }) : null, t[32] = T, t[33] = ge, t[34] = l, t[35] = s.enabled, t[36] = i, t[37] = le) : le = t[37];
766
764
  let re;
767
- t[48] !== c.length ? (re = c.length === 0 && /* @__PURE__ */ i.jsx(si, {}), t[48] = c.length, t[49] = re) : re = t[49];
765
+ t[38] !== x?.colorLegend || t[39] !== jt || t[40] !== w || t[41] !== lt || t[42] !== c.length || t[43] !== Ct || t[44] !== y ? (re = Ct && c.length > 0 ? /* @__PURE__ */ a.jsx(oi, { width: y, colorDomain: jt, colors: lt, colorLegendTitle: w, setSelectedColor: Ge, showNAColor: !1, className: x?.colorLegend }) : null, t[38] = x?.colorLegend, t[39] = jt, t[40] = w, t[41] = lt, t[42] = c.length, t[43] = Ct, t[44] = y, t[45] = re) : re = t[45];
768
766
  let ce;
769
- t[50] !== Me || t[51] !== G || t[52] !== tt || t[53] !== ie || t[54] !== Rt || t[55] !== bt || t[56] !== a || t[57] !== lt || t[58] !== et || t[59] !== w || t[60] !== c || t[61] !== Ht || t[62] !== h || t[63] !== S || t[64] !== zt || t[65] !== C || t[66] !== g || t[67] !== N || t[68] !== L || t[69] !== ct || t[70] !== mt || t[71] !== R || t[72] !== V || t[73] !== z || t[74] !== B || t[75] !== at || t[76] !== Et || t[77] !== Yt || t[78] !== ot || t[79] !== T || t[80] !== Q || t[81] !== q || t[82] !== nt || t[83] !== Lt || t[84] !== we || t[85] !== Z || t[86] !== U || t[87] !== _ || t[88] !== pt || t[89] !== y || t[90] !== p || t[91] !== D || t[92] !== Mt || t[93] !== kt || t[94] !== s.dateFormat || t[95] !== s.enabled || t[96] !== P || t[97] !== gt || t[98] !== J || t[99] !== u || t[100] !== v ? (ce = kt && Mt && c.length > 0 ? /* @__PURE__ */ i.jsx(Me, { hideAxisLine: zt, data: y !== void 0 ? y === "diff" ? je(Le(c, s.dateFormat || "yyyy").filter((d) => s.enabled ? `${d.date}` === Ne(new Date(u[g]), s.dateFormat || "yyyy") : d).filter((d) => S ? !d.x.every(Gi) : d), Ei, [pt || "asc"]).filter((d, Ct) => R ? Ct < R : !0) : je(Le(c, s.dateFormat || "yyyy").filter((d) => s.enabled ? `${d.date}` === Ne(new Date(u[g]), s.dateFormat || "yyyy") : d).filter((d) => S ? !d.x.every(Yi) : d), (d) => Bt(d.x[y]) ? -1 / 0 : d.x[y], [pt || "asc"]).filter((d, Ct) => R ? Ct < R : !0) : Le(c, s.dateFormat || "yyyy").filter((d) => S ? !d.x.every(Xi) : d).filter((d, Ct) => R ? Ct < R : !0), dotColors: lt, width: kt, height: Mt, radius: Q, barPadding: Rt, showTicks: U, leftMargin: ct, rightMargin: Lt, topMargin: gt, bottomMargin: bt, truncateBy: J, showLabels: Z, showValues: _, tooltip: P, suffix: D, prefix: T, onSeriesMouseOver: Yt, maxValue: Bt(V) ? Math.max(...c.map(Wi)) < 0 ? 0 : Math.max(...c.map(Fi)) : V, minValue: Bt(B) ? Math.min(...c.map(Ti)) > 0 ? 0 : Math.min(...c.map(Ni)) : B, onSeriesMouseClick: Et, selectedColor: we, arrowConnector: tt, connectorStrokeWidth: et, maxBarThickness: mt, minBarThickness: z, resetSelectionOnDoubleClick: nt, detailsOnClick: Ht, axisTitle: ie, noOfTicks: at, valueColor: v, styles: p, classNames: a, labelOrder: N, refValues: q, animate: G === !0 ? {
767
+ t[46] !== c.length ? (ce = c.length === 0 && /* @__PURE__ */ a.jsx(si, {}), t[46] = c.length, t[47] = ce) : ce = t[47];
768
+ let de;
769
+ t[48] !== Me || t[49] !== Y || t[50] !== Z || t[51] !== Rt || t[52] !== zt || t[53] !== bt || t[54] !== x || t[55] !== lt || t[56] !== _ || t[57] !== g || t[58] !== c || t[59] !== At || t[60] !== Ot || t[61] !== N || t[62] !== ut || t[63] !== Mt || t[64] !== T || t[65] !== r || t[66] !== C || t[67] !== rt || t[68] !== E || t[69] !== dt || t[70] !== H || t[71] !== $ || t[72] !== ht || t[73] !== W || t[74] !== it || t[75] !== Ht || t[76] !== Gt || t[77] !== at || t[78] !== D || t[79] !== J || t[80] !== V || t[81] !== et || t[82] !== Vt || t[83] !== ae || t[84] !== K || t[85] !== z || t[86] !== Q || t[87] !== Wt || t[88] !== p || t[89] !== h || t[90] !== j || t[91] !== Lt || t[92] !== Bt || t[93] !== s.dateFormat || t[94] !== s.enabled || t[95] !== S || t[96] !== gt || t[97] !== q || t[98] !== i || t[99] !== kt ? (de = Bt && Lt && c.length > 0 ? /* @__PURE__ */ a.jsx(Me, { hideAxisLine: ut, data: p !== void 0 ? p === "diff" ? je(Le(c, s.dateFormat || "yyyy").filter((d) => s.enabled ? `${d.date}` === De(new Date(i[T]), s.dateFormat || "yyyy") : d).filter((d) => N ? !d.x.every(Gi) : d), Ei, [Wt || "asc"]).filter((d, $t) => H ? $t < H : !0) : je(Le(c, s.dateFormat || "yyyy").filter((d) => s.enabled ? `${d.date}` === De(new Date(i[T]), s.dateFormat || "yyyy") : d).filter((d) => N ? !d.x.every(Yi) : d), (d) => Yt(d.x[p]) ? -1 / 0 : d.x[p], [Wt || "asc"]).filter((d, $t) => H ? $t < H : !0) : Le(c, s.dateFormat || "yyyy").filter((d) => N ? !d.x.every(Xi) : d).filter((d, $t) => H ? $t < H : !0), dotColors: lt, width: Bt, height: Lt, radius: J, barPadding: zt, showTicks: z, leftMargin: rt, rightMargin: Vt, topMargin: gt, bottomMargin: bt, truncateBy: q, showLabels: K, showValues: Q, tooltip: S, suffix: j, prefix: D, onSeriesMouseOver: Gt, maxValue: Yt($) ? Math.max(...c.map(Pi)) < 0 ? 0 : Math.max(...c.map(Fi)) : $, minValue: Yt(W) ? Math.min(...c.map(Ti)) > 0 ? 0 : Math.min(...c.map(Di)) : W, onSeriesMouseClick: Ht, selectedColor: ae, arrowConnector: Z, connectorStrokeWidth: _, maxBarThickness: dt, minBarThickness: ht, resetSelectionOnDoubleClick: et, detailsOnClick: At, axisTitle: Rt, noOfTicks: it, valueColor: kt, styles: h, classNames: x, labelOrder: r, refValues: V, animate: Y === !0 ? {
770
770
  duration: 0.5,
771
771
  once: !0,
772
772
  amount: 0.5
773
- } : G || {
773
+ } : Y || {
774
774
  duration: 0,
775
775
  once: !0,
776
776
  amount: 0
777
- }, precision: ot, customLayers: w, highlightedDataPoints: C, dimmedOpacity: h, rtl: L === "ar" || L === "he" }) : null, t[50] = Me, t[51] = G, t[52] = tt, t[53] = ie, t[54] = Rt, t[55] = bt, t[56] = a, t[57] = lt, t[58] = et, t[59] = w, t[60] = c, t[61] = Ht, t[62] = h, t[63] = S, t[64] = zt, t[65] = C, t[66] = g, t[67] = N, t[68] = L, t[69] = ct, t[70] = mt, t[71] = R, t[72] = V, t[73] = z, t[74] = B, t[75] = at, t[76] = Et, t[77] = Yt, t[78] = ot, t[79] = T, t[80] = Q, t[81] = q, t[82] = nt, t[83] = Lt, t[84] = we, t[85] = Z, t[86] = U, t[87] = _, t[88] = pt, t[89] = y, t[90] = p, t[91] = D, t[92] = Mt, t[93] = kt, t[94] = s.dateFormat, t[95] = s.enabled, t[96] = P, t[97] = gt, t[98] = J, t[99] = u, t[100] = v, t[101] = ce) : ce = t[101];
778
- let de;
779
- t[102] !== re || t[103] !== ce ? (de = /* @__PURE__ */ i.jsxs(_e, { ref: Ae, children: [
780
- re,
781
- ce
782
- ] }), t[102] = re, t[103] = ce, t[104] = de) : de = t[104];
777
+ }, precision: at, customLayers: g, highlightedDataPoints: Mt, dimmedOpacity: Ot, rtl: C === "ar" || C === "he", locale: E }) : null, t[48] = Me, t[49] = Y, t[50] = Z, t[51] = Rt, t[52] = zt, t[53] = bt, t[54] = x, t[55] = lt, t[56] = _, t[57] = g, t[58] = c, t[59] = At, t[60] = Ot, t[61] = N, t[62] = ut, t[63] = Mt, t[64] = T, t[65] = r, t[66] = C, t[67] = rt, t[68] = E, t[69] = dt, t[70] = H, t[71] = $, t[72] = ht, t[73] = W, t[74] = it, t[75] = Ht, t[76] = Gt, t[77] = at, t[78] = D, t[79] = J, t[80] = V, t[81] = et, t[82] = Vt, t[83] = ae, t[84] = K, t[85] = z, t[86] = Q, t[87] = Wt, t[88] = p, t[89] = h, t[90] = j, t[91] = Lt, t[92] = Bt, t[93] = s.dateFormat, t[94] = s.enabled, t[95] = S, t[96] = gt, t[97] = q, t[98] = i, t[99] = kt, t[100] = de) : de = t[100];
783
778
  let me;
784
- t[105] !== a?.footnote || t[106] !== a?.source || t[107] !== st || t[108] !== Ut || t[109] !== p?.footnote || t[110] !== p?.source || t[111] !== b ? (me = Ut || st ? /* @__PURE__ */ i.jsx(ai, { styles: {
785
- footnote: p?.footnote,
786
- source: p?.source
779
+ t[101] !== ce || t[102] !== de ? (me = /* @__PURE__ */ a.jsxs(_e, { ref: Ae, children: [
780
+ ce,
781
+ de
782
+ ] }), t[101] = ce, t[102] = de, t[103] = me) : me = t[103];
783
+ let ue;
784
+ t[104] !== x?.footnote || t[105] !== x?.source || t[106] !== ot || t[107] !== Ut || t[108] !== h?.footnote || t[109] !== h?.source || t[110] !== y ? (ue = Ut || ot ? /* @__PURE__ */ a.jsx(ni, { styles: {
785
+ footnote: h?.footnote,
786
+ source: h?.source
787
787
  }, classNames: {
788
- footnote: a?.footnote,
789
- source: a?.source
790
- }, sources: Ut, footNote: st, width: b }) : null, t[105] = a?.footnote, t[106] = a?.source, t[107] = st, t[108] = Ut, t[109] = p?.footnote, t[110] = p?.source, t[111] = b, t[112] = me) : me = t[112];
791
- let ge;
792
- return t[113] !== Gt || t[114] !== K || t[115] !== wt || t[116] !== vt || t[117] !== L || t[118] !== $ || t[119] !== dt || t[120] !== j || t[121] !== Ce || t[122] !== Oe || t[123] !== oe || t[124] !== se || t[125] !== le || t[126] !== de || t[127] !== me || t[128] !== it || t[129] !== b ? (ge = /* @__PURE__ */ i.jsxs(ti, { className: Ce, style: Oe, id: wt, ref: Ve, "aria-label": Gt, backgroundColor: K, theme: it, language: L, minHeight: $, width: b, height: vt, relativeHeight: j, padding: dt, children: [
793
- oe,
788
+ footnote: x?.footnote,
789
+ source: x?.source
790
+ }, sources: Ut, footNote: ot, width: y }) : null, t[104] = x?.footnote, t[105] = x?.source, t[106] = ot, t[107] = Ut, t[108] = h?.footnote, t[109] = h?.source, t[110] = y, t[111] = ue) : ue = t[111];
791
+ let be;
792
+ return t[112] !== R || t[113] !== U || t[114] !== wt || t[115] !== vt || t[116] !== C || t[117] !== O || t[118] !== ct || t[119] !== I || t[120] !== Ce || t[121] !== Oe || t[122] !== se || t[123] !== le || t[124] !== re || t[125] !== me || t[126] !== ue || t[127] !== tt || t[128] !== y ? (be = /* @__PURE__ */ a.jsxs(ti, { className: Ce, style: Oe, id: wt, ref: Ve, "aria-label": R, backgroundColor: U, theme: tt, language: C, minHeight: O, width: y, height: vt, relativeHeight: I, padding: ct, children: [
794
793
  se,
795
794
  le,
796
- de,
797
- me
798
- ] }), t[113] = Gt, t[114] = K, t[115] = wt, t[116] = vt, t[117] = L, t[118] = $, t[119] = dt, t[120] = j, t[121] = Ce, t[122] = Oe, t[123] = oe, t[124] = se, t[125] = le, t[126] = de, t[127] = me, t[128] = it, t[129] = b, t[130] = ge) : ge = t[130], ge;
799
- }
800
- function Ni(e) {
801
- return Math.min(...e.x.filter(Di));
795
+ re,
796
+ me,
797
+ ue
798
+ ] }), t[112] = R, t[113] = U, t[114] = wt, t[115] = vt, t[116] = C, t[117] = O, t[118] = ct, t[119] = I, t[120] = Ce, t[121] = Oe, t[122] = se, t[123] = le, t[124] = re, t[125] = me, t[126] = ue, t[127] = tt, t[128] = y, t[129] = be) : be = t[129], be;
802
799
  }
803
800
  function Di(e) {
801
+ return Math.min(...e.x.filter(Ni));
802
+ }
803
+ function Ni(e) {
804
804
  return e !== null;
805
805
  }
806
806
  function Ti(e) {
@@ -810,12 +810,12 @@ function Si(e) {
810
810
  return e !== null;
811
811
  }
812
812
  function Fi(e) {
813
- return Math.max(...e.x.filter(Pi));
813
+ return Math.max(...e.x.filter(Wi));
814
814
  }
815
- function Pi(e) {
815
+ function Wi(e) {
816
816
  return e !== null;
817
817
  }
818
- function Wi(e) {
818
+ function Pi(e) {
819
819
  return Math.max(...e.x.filter(Bi));
820
820
  }
821
821
  function Bi(e) {
@@ -828,7 +828,7 @@ function Yi(e) {
828
828
  return e == null;
829
829
  }
830
830
  function Ei(e) {
831
- return Bt(e.x[e.x.length - 1]) || Bt(e.x[0]) ? -1 / 0 : e.x[e.x.length - 1] - e.x[0];
831
+ return Yt(e.x[e.x.length - 1]) || Yt(e.x[0]) ? -1 / 0 : e.x[e.x.length - 1] - e.x[0];
832
832
  }
833
833
  function Gi(e) {
834
834
  return e == null;
@@ -855,6 +855,6 @@ function Ki(e) {
855
855
  return e.date;
856
856
  }
857
857
  export {
858
- $n as DumbbellChart
858
+ La as DumbbellChart
859
859
  };
860
860
  //# sourceMappingURL=DumbbellChart.js.map