@undp/data-viz 2.3.17 → 2.3.19

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 (438) 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 +1687 -1675
  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 +268 -265
  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 +526 -523
  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 +146 -146
  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 +547 -544
  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-D8WRC8-j.cjs +2 -0
  130. package/dist/GraphEl-D8WRC8-j.cjs.map +1 -0
  131. package/dist/{GraphEl-CnJf8b50.js → GraphEl-Dorm_qQE.js} +48 -10
  132. package/dist/GraphEl-Dorm_qQE.js.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 +283 -281
  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 +434 -432
  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 +398 -394
  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 +220 -218
  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 +439 -437
  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 +425 -423
  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.js +10 -10
  263. package/dist/{Source-BOSAl3UX.cjs → Source-PKuwZOn3.cjs} +2 -2
  264. package/dist/{Source-BOSAl3UX.cjs.map → Source-PKuwZOn3.cjs.map} +1 -1
  265. package/dist/{Source-Djkz-7jX.js → Source-QGk8vhkS.js} +3 -3
  266. package/dist/{Source-Djkz-7jX.js.map → Source-QGk8vhkS.js.map} +1 -1
  267. package/dist/Source.cjs +1 -1
  268. package/dist/Source.js +3 -3
  269. package/dist/SparkLine.cjs +1 -1
  270. package/dist/SparkLine.js +3 -3
  271. package/dist/{Spinner-CtJETd5V.js → Spinner-B2IIKg9r.js} +2 -2
  272. package/dist/{Spinner-CtJETd5V.js.map → Spinner-B2IIKg9r.js.map} +1 -1
  273. package/dist/{Spinner-jTMOLuw_.cjs → Spinner-WHzzloYQ.cjs} +2 -2
  274. package/dist/{Spinner-jTMOLuw_.cjs.map → Spinner-WHzzloYQ.cjs.map} +1 -1
  275. package/dist/StatCardFromData.cjs +1 -1
  276. package/dist/StatCardFromData.cjs.map +1 -1
  277. package/dist/StatCardFromData.d.ts +4 -0
  278. package/dist/StatCardFromData.js +97 -95
  279. package/dist/StatCardFromData.js.map +1 -1
  280. package/dist/StripChart.cjs +1 -1
  281. package/dist/StripChart.cjs.map +1 -1
  282. package/dist/StripChart.d.ts +2 -0
  283. package/dist/StripChart.js +360 -357
  284. package/dist/StripChart.js.map +1 -1
  285. package/dist/ThreeDGlobe.cjs +1 -1
  286. package/dist/ThreeDGlobe.cjs.map +1 -1
  287. package/dist/ThreeDGlobe.d.ts +2 -0
  288. package/dist/ThreeDGlobe.js +198 -196
  289. package/dist/ThreeDGlobe.js.map +1 -1
  290. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  291. package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -1
  292. package/dist/ThresholdColorLegendWithMouseOver.d.ts +2 -0
  293. package/dist/ThresholdColorLegendWithMouseOver.js +50 -48
  294. package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
  295. package/dist/{Tooltip-CohiIbLZ.js → Tooltip-Bj-s__cI.js} +3 -3
  296. package/dist/{Tooltip-CohiIbLZ.js.map → Tooltip-Bj-s__cI.js.map} +1 -1
  297. package/dist/{Tooltip-BLa2EfMs.cjs → Tooltip-Hr46paWP.cjs} +2 -2
  298. package/dist/{Tooltip-BLa2EfMs.cjs.map → Tooltip-Hr46paWP.cjs.map} +1 -1
  299. package/dist/TreeMapGraph.cjs +1 -1
  300. package/dist/TreeMapGraph.cjs.map +1 -1
  301. package/dist/TreeMapGraph.d.ts +2 -0
  302. package/dist/TreeMapGraph.js +219 -217
  303. package/dist/TreeMapGraph.js.map +1 -1
  304. package/dist/Types.d.ts +1 -0
  305. package/dist/{Typography-DMVW6JnV.js → Typography-BO0gQDIT.js} +2 -2
  306. package/dist/{Typography-DMVW6JnV.js.map → Typography-BO0gQDIT.js.map} +1 -1
  307. package/dist/{Typography-CZZxlj1W.cjs → Typography-BqmyF1gP.cjs} +2 -2
  308. package/dist/{Typography-CZZxlj1W.cjs.map → Typography-BqmyF1gP.cjs.map} +1 -1
  309. package/dist/UnitChart.cjs +1 -1
  310. package/dist/UnitChart.cjs.map +1 -1
  311. package/dist/UnitChart.d.ts +4 -0
  312. package/dist/UnitChart.js +88 -86
  313. package/dist/UnitChart.js.map +1 -1
  314. package/dist/WaterfallChart.cjs +1 -1
  315. package/dist/WaterfallChart.cjs.map +1 -1
  316. package/dist/WaterfallChart.d.ts +2 -0
  317. package/dist/WaterfallChart.js +243 -241
  318. package/dist/WaterfallChart.js.map +1 -1
  319. package/dist/{XAxesLabels-IwjMJkYS.js → XAxesLabels-B9gkjUiC.js} +3 -3
  320. package/dist/{XAxesLabels-IwjMJkYS.js.map → XAxesLabels-B9gkjUiC.js.map} +1 -1
  321. package/dist/{XAxesLabels-C6o9jJal.cjs → XAxesLabels-C03jHniq.cjs} +2 -2
  322. package/dist/{XAxesLabels-C6o9jJal.cjs.map → XAxesLabels-C03jHniq.cjs.map} +1 -1
  323. package/dist/XTicksAndGridLines-C5DuC5oY.cjs +2 -0
  324. package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +1 -0
  325. package/dist/XTicksAndGridLines-gdbGX2rm.js +39 -0
  326. package/dist/XTicksAndGridLines-gdbGX2rm.js.map +1 -0
  327. package/dist/{YAxesLabels-BQ2aCazV.cjs → YAxesLabels-DeENFC2M.cjs} +2 -2
  328. package/dist/{YAxesLabels-BQ2aCazV.cjs.map → YAxesLabels-DeENFC2M.cjs.map} +1 -1
  329. package/dist/{YAxesLabels-DoGvgHdw.js → YAxesLabels-hWEUCTvs.js} +3 -3
  330. package/dist/{YAxesLabels-DoGvgHdw.js.map → YAxesLabels-hWEUCTvs.js.map} +1 -1
  331. package/dist/YTicksAndGridLines-CsNSq9W9.js +39 -0
  332. package/dist/YTicksAndGridLines-CsNSq9W9.js.map +1 -0
  333. package/dist/YTicksAndGridLines-DFjm8RCc.cjs +2 -0
  334. package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +1 -0
  335. package/dist/{checkIfMultiple-TOaaUwS7.cjs → checkIfMultiple-CH5tqj4q.cjs} +2 -2
  336. package/dist/checkIfMultiple-CH5tqj4q.cjs.map +1 -0
  337. package/dist/{checkIfMultiple-B97uOUVq.js → checkIfMultiple-Dpyy6BUP.js} +6 -6
  338. package/dist/checkIfMultiple-Dpyy6BUP.js.map +1 -0
  339. package/dist/{customArea-B1LWQBmM.cjs → customArea-BAcQ3pBM.cjs} +2 -2
  340. package/dist/{customArea-B1LWQBmM.cjs.map → customArea-BAcQ3pBM.cjs.map} +1 -1
  341. package/dist/{customArea-Cc2whe6P.js → customArea-D89lETG0.js} +3 -3
  342. package/dist/{customArea-Cc2whe6P.js.map → customArea-D89lETG0.js.map} +1 -1
  343. package/dist/getSliderMarks-BzrpHrHS.cjs +2 -0
  344. package/dist/getSliderMarks-BzrpHrHS.cjs.map +1 -0
  345. package/dist/{getSliderMarks-vXsR8RrR.js → getSliderMarks-X-_goqH9.js} +3 -4
  346. package/dist/getSliderMarks-X-_goqH9.js.map +1 -0
  347. package/dist/{index-CZ0elhKR.js → index-ApTBN0kp.js} +20 -10
  348. package/dist/{index-CZ0elhKR.js.map → index-ApTBN0kp.js.map} +1 -1
  349. package/dist/index-Bdo_HXb_.cjs +2 -0
  350. package/dist/index-Bdo_HXb_.cjs.map +1 -0
  351. package/dist/{index-sbKVyHS2.cjs → index-BhI7mBJx.cjs} +2 -2
  352. package/dist/{index-sbKVyHS2.cjs.map → index-BhI7mBJx.cjs.map} +1 -1
  353. package/dist/{index-D69M6klB.cjs → index-BuhBhuCq.cjs} +2 -2
  354. package/dist/{index-D69M6klB.cjs.map → index-BuhBhuCq.cjs.map} +1 -1
  355. package/dist/index-CGrBpeUa.js +380 -0
  356. package/dist/index-CGrBpeUa.js.map +1 -0
  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-Co3YGYe1.js → index-Cv_5q6Rb.js} +3 -3
  362. package/dist/{index-Co3YGYe1.js.map → index-Cv_5q6Rb.js.map} +1 -1
  363. package/dist/{index-D_dtv_T9.js → index-DHVGV8Df.js} +3 -3
  364. package/dist/{index-D_dtv_T9.js.map → index-DHVGV8Df.js.map} +1 -1
  365. package/dist/{index-CoobIWNj.cjs → index-FXfr51ZM.cjs} +2 -2
  366. package/dist/{index-CoobIWNj.cjs.map → index-FXfr51ZM.cjs.map} +1 -1
  367. package/dist/{index-D6CYcVc7-BOa7Dpvf.js → index-Scxs_wcm-BAjU0Cob.js} +16 -16
  368. package/dist/index-Scxs_wcm-BAjU0Cob.js.map +1 -0
  369. package/dist/index-Scxs_wcm-DUDU-Gll.cjs +2 -0
  370. package/dist/index-Scxs_wcm-DUDU-Gll.cjs.map +1 -0
  371. package/dist/{index-DoS4bGNa-C3DbPpy3.cjs → index-w64Zl8io-DrMm5QSb.cjs} +2 -2
  372. package/dist/index-w64Zl8io-DrMm5QSb.cjs.map +1 -0
  373. package/dist/{index-DoS4bGNa-Bgab95kx.js → index-w64Zl8io-ihagHOdP.js} +2 -2
  374. package/dist/index-w64Zl8io-ihagHOdP.js.map +1 -0
  375. package/dist/index.cjs +1 -1
  376. package/dist/index.d.ts +92 -17
  377. package/dist/index.js +3 -3
  378. package/dist/numberFormattingFunction-Cn9R7CM9.cjs +2 -0
  379. package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +1 -0
  380. package/dist/numberFormattingFunction-DqMf_v1m.js +28 -0
  381. package/dist/numberFormattingFunction-DqMf_v1m.js.map +1 -0
  382. package/dist/{proxy--_f6k3NR.js → proxy-BsxtcZKa.js} +2 -2
  383. package/dist/{proxy--_f6k3NR.js.map → proxy-BsxtcZKa.js.map} +1 -1
  384. package/dist/{proxy-C4-uo6nS.cjs → proxy-CqH8m8IQ.cjs} +2 -2
  385. package/dist/{proxy-C4-uo6nS.cjs.map → proxy-CqH8m8IQ.cjs.map} +1 -1
  386. package/dist/{string2HTML-DUYZT1L9.js → string2HTML-BrFperRM.js} +2 -2
  387. package/dist/{string2HTML-DUYZT1L9.js.map → string2HTML-BrFperRM.js.map} +1 -1
  388. package/dist/{string2HTML-xx9MzTtY.cjs → string2HTML-ZoGd08P_.cjs} +2 -2
  389. package/dist/{string2HTML-xx9MzTtY.cjs.map → string2HTML-ZoGd08P_.cjs.map} +1 -1
  390. package/dist/style.css +1 -1
  391. package/dist/{use-in-view-DqvKAveg.js → use-in-view-KOXq5Kmc.js} +2 -2
  392. package/dist/{use-in-view-DqvKAveg.js.map → use-in-view-KOXq5Kmc.js.map} +1 -1
  393. package/dist/{use-in-view-C3o_ntMv.cjs → use-in-view-dnRv_qqF.cjs} +2 -2
  394. package/dist/{use-in-view-C3o_ntMv.cjs.map → use-in-view-dnRv_qqF.cjs.map} +1 -1
  395. package/dist/utils.cjs +1 -1
  396. package/dist/utils.d.ts +9 -18
  397. package/dist/utils.js +1 -1
  398. package/dist/x-BXShoIAM-BC2sxios.cjs +2 -0
  399. package/dist/x-BXShoIAM-BC2sxios.cjs.map +1 -0
  400. package/dist/{x-BBpi7a_7-BsvWCzYM.js → x-BXShoIAM-D6VWO6z5.js} +3 -5
  401. package/dist/x-BXShoIAM-D6VWO6z5.js.map +1 -0
  402. package/package.json +2 -2
  403. package/dist/DropdownSelect-B2WTeedJ.js.map +0 -1
  404. package/dist/DropdownSelect-NNpOs7DX.cjs.map +0 -1
  405. package/dist/GraphEl-CnJf8b50.js.map +0 -1
  406. package/dist/GraphEl-D_w0Qak4.cjs +0 -2
  407. package/dist/GraphEl-D_w0Qak4.cjs.map +0 -1
  408. package/dist/XTicksAndGridLines-BDmF9etl.js +0 -38
  409. package/dist/XTicksAndGridLines-BDmF9etl.js.map +0 -1
  410. package/dist/XTicksAndGridLines-CekrPykD.cjs +0 -2
  411. package/dist/XTicksAndGridLines-CekrPykD.cjs.map +0 -1
  412. package/dist/YTicksAndGridLines-C3GW1xFG.js +0 -38
  413. package/dist/YTicksAndGridLines-C3GW1xFG.js.map +0 -1
  414. package/dist/YTicksAndGridLines-UzVC5eBM.cjs +0 -2
  415. package/dist/YTicksAndGridLines-UzVC5eBM.cjs.map +0 -1
  416. package/dist/checkIfMultiple-B97uOUVq.js.map +0 -1
  417. package/dist/checkIfMultiple-TOaaUwS7.cjs.map +0 -1
  418. package/dist/getSliderMarks-CIuSoedo.cjs +0 -2
  419. package/dist/getSliderMarks-CIuSoedo.cjs.map +0 -1
  420. package/dist/getSliderMarks-vXsR8RrR.js.map +0 -1
  421. package/dist/index-C6VwVS8W.js +0 -378
  422. package/dist/index-C6VwVS8W.js.map +0 -1
  423. package/dist/index-CHPV5EwG-6v2a2njQ.cjs.map +0 -1
  424. package/dist/index-CHPV5EwG-BCLAYDCV.js.map +0 -1
  425. package/dist/index-D6CYcVc7-BOa7Dpvf.js.map +0 -1
  426. package/dist/index-D6CYcVc7-CTEcAtiQ.cjs +0 -2
  427. package/dist/index-D6CYcVc7-CTEcAtiQ.cjs.map +0 -1
  428. package/dist/index-DoS4bGNa-Bgab95kx.js.map +0 -1
  429. package/dist/index-DoS4bGNa-C3DbPpy3.cjs.map +0 -1
  430. package/dist/index-_TlgeI_i.cjs +0 -2
  431. package/dist/index-_TlgeI_i.cjs.map +0 -1
  432. package/dist/numberFormattingFunction-02t-wJta.cjs +0 -2
  433. package/dist/numberFormattingFunction-02t-wJta.cjs.map +0 -1
  434. package/dist/numberFormattingFunction-14YCbkN2.js +0 -13
  435. package/dist/numberFormattingFunction-14YCbkN2.js.map +0 -1
  436. package/dist/x-BBpi7a_7-BsvWCzYM.js.map +0 -1
  437. package/dist/x-BBpi7a_7-DXYIEFwN.cjs +0 -2
  438. package/dist/x-BBpi7a_7-DXYIEFwN.cjs.map +0 -1
package/dist/BarGraph.js CHANGED
@@ -1,733 +1,730 @@
1
- import { c as we, j as i, m as Me } from "./index-CHPV5EwG-BCLAYDCV.js";
2
- import { useRef as ve, useState as Zt, useEffect as Ie } from "react";
3
- import { g as Ee, N as Ge } from "./getSliderMarks-vXsR8RrR.js";
4
- import { f as Ce, p as Re } from "./parse-Dv4of-PN.js";
5
- import { o as We } from "./index-BZQYSqar.js";
6
- import { s as me } from "./index-CeVNqhMO.js";
7
- import { i as Ne } from "./index-Bwrro8-q.js";
8
- import { n as be } from "./numberFormattingFunction-14YCbkN2.js";
9
- import { T as je } from "./Tooltip-CohiIbLZ.js";
10
- import { c as ee } from "./checkIfNullOrUndefined-DmfiKkNw.js";
11
- import { Y as qe } from "./YAxesLabels-DoGvgHdw.js";
12
- import { A as Te } from "./Axis-RyGdzLrG.js";
13
- import { A as Se } from "./AxisTitle-DGjX1_2v.js";
14
- import { X as Ue } from "./XTicksAndGridLines-BDmF9etl.js";
15
- import { R as Je, a as Ke } from "./ReferenceLine-CNEjAYvv.js";
16
- import { Y as Qe } from "./YTicksAndGridLines-C3GW1xFG.js";
17
- import { X as Ze } from "./XAxesLabels-IwjMJkYS.js";
18
- import { D as Be } from "./DetailsModal-C3qlUyFK.js";
19
- import { u as Fe } from "./use-in-view-DqvKAveg.js";
20
- import { a as Pe } from "./linear-DNXM5Pdl.js";
21
- import { b as ke } from "./band-DYty33LD.js";
22
- import { m as _t } from "./proxy--_f6k3NR.js";
23
- import { A as He } from "./index-Co3YGYe1.js";
24
- import { GraphHeader as _e } from "./GraphHeader.js";
25
- import { GraphFooter as ti } from "./GraphFooter.js";
26
- import { ColorLegendWithMouseOver as ei } from "./ColorLegendWithMouseOver.js";
27
- import { Colors as pe } from "./Colors.js";
28
- import { E as ii } from "./EmptyState-B3fPoH6L.js";
29
- import { P as si, e as li } from "./index-CZ0elhKR.js";
30
- import { d as De, f as oi } from "./ensureCompleteData-CDIukSG6.js";
31
- import { a as ai, G as ni } from "./GraphContainer-DwMxWRCi.js";
32
- import { u as ri } from "./uniqBy-BHy4I8PK.js";
33
- import { g as Ye } from "./getTextColorBasedOnBgColor-CDY808zi.js";
34
- function ci(e) {
35
- const t = we.c(131), {
36
- data: l,
37
- leftMargin: X,
38
- rightMargin: Ut,
39
- topMargin: Jt,
40
- bottomMargin: Tt,
41
- barColors: Ct,
42
- barPadding: Ft,
43
- showTicks: W,
44
- truncateBy: J,
45
- width: A,
46
- height: R,
47
- suffix: ft,
48
- prefix: et,
49
- showValues: Lt,
50
- showLabels: Y,
51
- tooltip: lt,
52
- onSeriesMouseOver: Vt,
53
- refValues: zt,
1
+ import { c as $e, j as i, m as Ce } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import { useRef as Ae, useState as _t, useEffect as je } from "react";
3
+ import { g as Re, N as qe } from "./getSliderMarks-X-_goqH9.js";
4
+ import { f as Ve, p as Ue } from "./parse-Dv4of-PN.js";
5
+ import { o as Ye } from "./index-BZQYSqar.js";
6
+ import { s as he } from "./index-CeVNqhMO.js";
7
+ import { i as Te } from "./index-Bwrro8-q.js";
8
+ import { n as we } from "./numberFormattingFunction-DqMf_v1m.js";
9
+ import { T as Se } from "./Tooltip-Bj-s__cI.js";
10
+ import { c as le } from "./checkIfNullOrUndefined-DmfiKkNw.js";
11
+ import { Y as Je } from "./YAxesLabels-hWEUCTvs.js";
12
+ import { A as Be } from "./Axis-CNZYWzH0.js";
13
+ import { A as Fe } from "./AxisTitle-CyLCqpW6.js";
14
+ import { X as Ke } from "./XTicksAndGridLines-gdbGX2rm.js";
15
+ import { R as Qe, a as Ze } from "./ReferenceLine-D41VuUhE.js";
16
+ import { Y as _e } from "./YTicksAndGridLines-CsNSq9W9.js";
17
+ import { X as ti } from "./XAxesLabels-B9gkjUiC.js";
18
+ import { D as Pe } from "./DetailsModal-B2XBWR7w.js";
19
+ import { u as He } from "./use-in-view-KOXq5Kmc.js";
20
+ import { a as We } from "./linear-DNXM5Pdl.js";
21
+ import { b as Le } from "./band-DYty33LD.js";
22
+ import { m as ee } from "./proxy-BsxtcZKa.js";
23
+ import { A as Xe } from "./index-Cv_5q6Rb.js";
24
+ import { GraphHeader as ei } from "./GraphHeader.js";
25
+ import { GraphFooter as ii } from "./GraphFooter.js";
26
+ import { ColorLegendWithMouseOver as li } from "./ColorLegendWithMouseOver.js";
27
+ import { Colors as ye } from "./Colors.js";
28
+ import { E as si } from "./EmptyState-CaxXCkiN.js";
29
+ import { P as ai, e as oi } from "./index-ApTBN0kp.js";
30
+ import { d as Ne, f as ci } from "./ensureCompleteData-CDIukSG6.js";
31
+ import { a as ni, G as ri } from "./GraphContainer-B8ZqOzKI.js";
32
+ import { u as di } from "./uniqBy-BHy4I8PK.js";
33
+ import { g as Ge } from "./getTextColorBasedOnBgColor-CDY808zi.js";
34
+ function ui(e) {
35
+ const t = $e.c(132), {
36
+ data: s,
37
+ leftMargin: H,
38
+ rightMargin: Rt,
39
+ topMargin: Kt,
40
+ bottomMargin: Nt,
41
+ barColors: $t,
42
+ barPadding: Bt,
43
+ showTicks: P,
44
+ truncateBy: G,
45
+ width: O,
46
+ height: X,
47
+ suffix: dt,
48
+ prefix: Q,
49
+ showValues: Ot,
50
+ showLabels: W,
51
+ tooltip: st,
52
+ onSeriesMouseOver: Mt,
53
+ refValues: kt,
54
54
  maxValue: Xt,
55
- minValue: C,
56
- onSeriesMouseClick: K,
57
- selectedColor: B,
58
- rtl: T,
59
- labelOrder: dt,
60
- maxBarThickness: Q,
61
- resetSelectionOnDoubleClick: pt,
62
- detailsOnClick: F,
63
- barAxisTitle: Z,
64
- valueColor: it,
55
+ minValue: k,
56
+ onSeriesMouseClick: R,
57
+ selectedColor: T,
58
+ rtl: N,
59
+ labelOrder: nt,
60
+ maxBarThickness: q,
61
+ resetSelectionOnDoubleClick: ut,
62
+ detailsOnClick: S,
63
+ barAxisTitle: U,
64
+ valueColor: Z,
65
65
  noOfTicks: c,
66
- styles: s,
66
+ styles: l,
67
67
  classNames: a,
68
68
  animate: m,
69
69
  colorDomain: d,
70
- precision: p,
70
+ precision: b,
71
71
  customLayers: x,
72
72
  naLabel: at,
73
- hideAxisLine: D
74
- } = e, E = X === void 0 ? 100 : X, Yt = Ut === void 0 ? 40 : Ut, Et = Jt === void 0 ? 25 : Jt, Pt = Tt === void 0 ? 10 : Tt, Ht = ve(null);
75
- let nt;
76
- t[0] !== m.amount || t[1] !== m.once ? (nt = {
73
+ hideAxisLine: B,
74
+ locale: C
75
+ } = e, Wt = H === void 0 ? 100 : H, qt = Rt === void 0 ? 40 : Rt, Ct = Kt === void 0 ? 25 : Kt, yt = Nt === void 0 ? 10 : Nt, Yt = Ae(null);
76
+ let _;
77
+ t[0] !== m.amount || t[1] !== m.once ? (_ = {
77
78
  once: m.once,
78
79
  amount: m.amount
79
- }, t[0] = m.amount, t[1] = m.once, t[2] = nt) : nt = t[2];
80
- const ut = Fe(Ht, nt), _ = Z ? Et + 25 : Et;
81
- let u;
82
- t[3] !== Pt || t[4] !== E || t[5] !== Yt || t[6] !== _ ? (u = {
83
- top: _,
84
- bottom: Pt,
85
- left: E,
86
- right: Yt
87
- }, t[3] = Pt, t[4] = E, t[5] = Yt, t[6] = _, t[7] = u) : u = t[7];
88
- const r = u, [V, gt] = Zt(void 0), [y, L] = Zt(void 0), [Gt, ot] = Zt(void 0), [Rt, rt] = Zt(void 0), Wt = A - r.left - r.right, G = R - r.top - r.bottom;
89
- let st;
90
- if (t[8] !== l || t[9] !== dt) {
91
- const b = /* @__PURE__ */ new Set(), At = l.map((f, g) => {
92
- const Nt = dt ? `${f.label}` : `${g}`;
93
- return b.add(Nt), {
94
- ...f,
95
- id: Nt
80
+ }, t[0] = m.amount, t[1] = m.once, t[2] = _) : _ = t[2];
81
+ const D = He(Yt, _), F = U ? Ct + 25 : Ct;
82
+ let h;
83
+ t[3] !== yt || t[4] !== Wt || t[5] !== qt || t[6] !== F ? (h = {
84
+ top: F,
85
+ bottom: yt,
86
+ left: Wt,
87
+ right: qt
88
+ }, t[3] = yt, t[4] = Wt, t[5] = qt, t[6] = F, t[7] = h) : h = t[7];
89
+ const r = h, [jt, z] = _t(void 0), [y, Ft] = _t(void 0), [Tt, xt] = _t(void 0), [Ut, tt] = _t(void 0), Pt = O - r.left - r.right, Y = X - r.top - r.bottom;
90
+ let et;
91
+ if (t[8] !== s || t[9] !== nt) {
92
+ const v = /* @__PURE__ */ new Set(), Dt = s.map((g, w) => {
93
+ const Et = nt ? `${g.label}` : `${w}`;
94
+ return v.add(Et), {
95
+ ...g,
96
+ id: Et
96
97
  };
97
- }), $t = dt ? dt.filter((f) => !b.has(f)) : [];
98
- let M;
99
- t[11] !== l[0].size.length ? (M = (f) => ({
100
- id: f,
101
- label: f,
102
- size: Array(l[0].size.length).fill(null)
103
- }), t[11] = l[0].size.length, t[12] = M) : M = t[12], st = [...At, ...$t.map(M)], t[8] = l, t[9] = dt, t[10] = st;
98
+ }), At = nt ? nt.filter((g) => !v.has(g)) : [];
99
+ let A;
100
+ t[11] !== s[0].size.length ? (A = (g) => ({
101
+ id: g,
102
+ label: g,
103
+ size: Array(s[0].size.length).fill(null)
104
+ }), t[11] = s[0].size.length, t[12] = A) : A = t[12], et = [...Dt, ...At.map(A)], t[8] = s, t[9] = nt, t[10] = et;
104
105
  } else
105
- st = t[10];
106
- const k = st;
107
- let xt;
108
- t[13] !== k || t[14] !== dt ? (xt = dt ?? k.map(gi), t[13] = k, t[14] = dt, t[15] = xt) : xt = t[15];
109
- const St = xt;
110
- let yt, bt, vt, Bt, Dt, tt, S, I, It, wt, ct, mt, ht, q;
111
- if (t[16] !== m || t[17] !== Z || t[18] !== Ct || t[19] !== St || t[20] !== Ft || t[21] !== a?.graphObjectValues || t[22] !== a?.xAxis?.gridLines || t[23] !== a?.xAxis?.labels || t[24] !== a?.xAxis?.title || t[25] !== a?.yAxis?.axis || t[26] !== a?.yAxis?.labels || t[27] !== d || t[28] !== x || t[29] !== l[0].size || t[30] !== k || t[31] !== F || t[32] !== G || t[33] !== Wt || t[34] !== R || t[35] !== D || t[36] !== ut || t[37] !== r.bottom || t[38] !== r.left || t[39] !== r.top || t[40] !== Q || t[41] !== Xt || t[42] !== C || t[43] !== y || t[44] !== at || t[45] !== c || t[46] !== K || t[47] !== Vt || t[48] !== p || t[49] !== et || t[50] !== zt || t[51] !== pt || t[52] !== T || t[53] !== B || t[54] !== Y || t[55] !== W || t[56] !== Lt || t[57] !== s?.graphObjectValues || t[58] !== s?.xAxis?.gridLines || t[59] !== s?.xAxis?.labels || t[60] !== s?.xAxis?.title || t[61] !== s?.yAxis?.axis || t[62] !== s?.yAxis?.labels || t[63] !== ft || t[64] !== Et || t[65] !== J || t[66] !== it || t[67] !== A) {
112
- const b = Pe().domain([C, Xt]).range([0, Wt]).nice(), At = ke().domain(St).range([0, Q ? Math.min(G, Q * St.length) : G]).paddingInner(Ft), $t = ke().domain(l[0].size.map(pi)).range([0, At.bandwidth()]).paddingInner(0.1), M = b.ticks(c);
113
- bt = _t.svg, It = Ht, wt = `${A}px`, ct = `${R}px`, mt = `0 0 ${A} ${R}`, ht = "ltr", Dt = `translate(${r.left},${r.top})`, tt = W ? /* @__PURE__ */ i.jsx(Ue, { values: M.filter(fi), x: M.filter(hi).map((j) => b(j)), y1: 0 - Et, y2: G + r.bottom, styles: {
114
- gridLines: s?.xAxis?.gridLines,
115
- labels: s?.xAxis?.labels
106
+ et = t[10];
107
+ const M = et;
108
+ let bt;
109
+ t[13] !== M || t[14] !== nt ? (bt = nt ?? M.map(bi), t[13] = M, t[14] = nt, t[15] = bt) : bt = t[15];
110
+ const Lt = bt;
111
+ let mt, ht, ft, St, Vt, J, j, I, zt, pt, ot, rt, ct, E;
112
+ if (t[16] !== m || t[17] !== U || t[18] !== $t || t[19] !== Lt || t[20] !== Bt || t[21] !== a?.graphObjectValues || t[22] !== a?.xAxis?.gridLines || t[23] !== a?.xAxis?.labels || t[24] !== a?.xAxis?.title || t[25] !== a?.yAxis?.axis || t[26] !== a?.yAxis?.labels || t[27] !== d || t[28] !== x || t[29] !== s[0].size || t[30] !== M || t[31] !== S || t[32] !== Y || t[33] !== Pt || t[34] !== X || t[35] !== B || t[36] !== D || t[37] !== C || t[38] !== r.bottom || t[39] !== r.left || t[40] !== r.top || t[41] !== q || t[42] !== Xt || t[43] !== k || t[44] !== y || t[45] !== at || t[46] !== c || t[47] !== R || t[48] !== Mt || t[49] !== b || t[50] !== Q || t[51] !== kt || t[52] !== ut || t[53] !== N || t[54] !== T || t[55] !== W || t[56] !== P || t[57] !== Ot || t[58] !== l?.graphObjectValues || t[59] !== l?.xAxis?.gridLines || t[60] !== l?.xAxis?.labels || t[61] !== l?.xAxis?.title || t[62] !== l?.yAxis?.axis || t[63] !== l?.yAxis?.labels || t[64] !== dt || t[65] !== Ct || t[66] !== G || t[67] !== Z || t[68] !== O) {
113
+ const v = We().domain([k, Xt]).range([0, Pt]).nice(), Dt = Le().domain(Lt).range([0, q ? Math.min(Y, q * Lt.length) : Y]).paddingInner(Bt), At = Le().domain(s[0].size.map(yi)).range([0, Dt.bandwidth()]).paddingInner(0.1), A = v.ticks(c);
114
+ ht = ee.svg, zt = Yt, pt = `${O}px`, ot = `${X}px`, rt = `0 0 ${O} ${X}`, ct = "ltr", Vt = `translate(${r.left},${r.top})`, J = P ? /* @__PURE__ */ i.jsx(Ke, { values: A.filter(gi), x: A.filter(pi).map((V) => v(V)), y1: 0 - Ct, y2: Y + r.bottom, styles: {
115
+ gridLines: l?.xAxis?.gridLines,
116
+ labels: l?.xAxis?.labels
116
117
  }, classNames: {
117
118
  gridLines: a?.xAxis?.gridLines,
118
119
  labels: a?.xAxis?.labels
119
- }, suffix: ft, prefix: et, labelType: "secondary", showGridLines: !0, precision: p }) : null;
120
- const f = Wt / 2, g = 0 - r.top + 15, Nt = s?.xAxis?.title, qt = a?.xAxis?.title;
121
- t[82] !== Z || t[83] !== f || t[84] !== g || t[85] !== Nt || t[86] !== qt ? (S = /* @__PURE__ */ i.jsx(Se, { x: f, y: g, style: Nt, className: qt, text: Z }), t[82] = Z, t[83] = f, t[84] = g, t[85] = Nt, t[86] = qt, t[87] = S) : S = t[87], t[88] !== x ? (I = x.filter(mi).map(xi), t[88] = x, t[89] = I) : I = t[89], yt = He, q = k.map((j) => ee(At(j.id)) ? null : /* @__PURE__ */ i.jsxs(_t.g, { variants: {
120
+ }, suffix: dt, prefix: Q, labelType: "secondary", showGridLines: !0, precision: b, locale: C }) : null;
121
+ const g = Pt / 2, w = 0 - r.top + 15, Et = l?.xAxis?.title, Gt = a?.xAxis?.title;
122
+ t[83] !== U || t[84] !== g || t[85] !== w || t[86] !== Et || t[87] !== Gt ? (j = /* @__PURE__ */ i.jsx(Fe, { x: g, y: w, style: Et, className: Gt, text: U }), t[83] = U, t[84] = g, t[85] = w, t[86] = Et, t[87] = Gt, t[88] = j) : j = t[88], t[89] !== x ? (I = x.filter(fi).map(hi), t[89] = x, t[90] = I) : I = t[90], mt = Xe, E = M.map((V) => le(Dt(V.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { variants: {
122
123
  initial: {
123
124
  x: 0,
124
- y: At(`${j.id}`)
125
+ y: Dt(`${V.id}`)
125
126
  },
126
127
  whileInView: {
127
128
  x: 0,
128
- y: At(`${j.id}`),
129
+ y: Dt(`${V.id}`),
129
130
  transition: {
130
131
  duration: m.duration
131
132
  }
132
133
  }
133
- }, initial: "initial", animate: ut ? "whileInView" : "initial", exit: {
134
+ }, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
134
135
  opacity: 0,
135
136
  transition: {
136
137
  duration: m.duration
137
138
  }
138
139
  }, children: [
139
- j.size.map((h, w) => /* @__PURE__ */ i.jsxs(_t.g, { className: "undp-viz-g-with-hover", opacity: B ? Ct[w] === B ? 1 : 0.3 : 0.85, onMouseEnter: (n) => {
140
- gt({
141
- ...j,
142
- sizeIndex: w
143
- }), rt(n.clientY), ot(n.clientX), Vt?.({
144
- ...j,
145
- sizeIndex: w
140
+ V.size.map((u, L) => /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", opacity: T ? $t[L] === T ? 1 : 0.3 : 0.85, onMouseEnter: (o) => {
141
+ z({
142
+ ...V,
143
+ sizeIndex: L
144
+ }), tt(o.clientY), xt(o.clientX), Mt?.({
145
+ ...V,
146
+ sizeIndex: L
146
147
  });
147
- }, onMouseMove: (n) => {
148
- gt({
149
- ...j,
150
- sizeIndex: w
151
- }), rt(n.clientY), ot(n.clientX);
148
+ }, onMouseMove: (o) => {
149
+ z({
150
+ ...V,
151
+ sizeIndex: L
152
+ }), tt(o.clientY), xt(o.clientX);
152
153
  }, onMouseLeave: () => {
153
- gt(void 0), ot(void 0), rt(void 0), Vt?.(void 0);
154
+ z(void 0), xt(void 0), tt(void 0), Mt?.(void 0);
154
155
  }, onClick: () => {
155
- (K || F) && (Ne(y, {
156
- ...j,
157
- sizeIndex: w
158
- }) && pt ? (L(void 0), K?.(void 0)) : (L({
159
- ...j,
160
- sizeIndex: w
161
- }), K && K({
162
- ...j,
163
- sizeIndex: w
156
+ (R || S) && (Te(y, {
157
+ ...V,
158
+ sizeIndex: L
159
+ }) && ut ? (Ft(void 0), R?.(void 0)) : (Ft({
160
+ ...V,
161
+ sizeIndex: L
162
+ }), R && R({
163
+ ...V,
164
+ sizeIndex: L
164
165
  })));
165
166
  }, children: [
166
- ee(h) ? null : /* @__PURE__ */ i.jsx(_t.rect, { y: $t(`${w}`), variants: {
167
+ le(u) ? null : /* @__PURE__ */ i.jsx(ee.rect, { y: At(`${L}`), variants: {
167
168
  initial: {
168
169
  width: 0,
169
- x: b(0),
170
- fill: Ct[w]
170
+ x: v(0),
171
+ fill: $t[L]
171
172
  },
172
173
  whileInView: {
173
- width: ee(h) ? 0 : h >= 0 ? b(h) - b(0) : b(0) - b(h),
174
- x: h >= 0 ? b(0) : b(h),
175
- fill: Ct[w],
174
+ width: le(u) ? 0 : u >= 0 ? v(u) - v(0) : v(0) - v(u),
175
+ x: u >= 0 ? v(0) : v(u),
176
+ fill: $t[L],
176
177
  transition: {
177
178
  duration: m.duration
178
179
  }
179
180
  }
180
181
  }, exit: {
181
182
  width: 0,
182
- x: b(0),
183
+ x: v(0),
183
184
  transition: {
184
185
  duration: m.duration
185
186
  }
186
- }, height: $t.bandwidth(), initial: "initial", animate: ut ? "whileInView" : "initial" }),
187
- Lt ? /* @__PURE__ */ i.jsx(_t.text, { y: $t(`${w}`) + $t.bandwidth() / 2, style: {
188
- textAnchor: h && h < 0 ? "end" : "start",
189
- ...s?.graphObjectValues || {}
190
- }, className: Me("graph-value text-sm", a?.graphObjectValues), dx: h && h < 0 ? -5 : 5, dy: "0.33em", variants: {
187
+ }, height: At.bandwidth(), initial: "initial", animate: D ? "whileInView" : "initial" }),
188
+ Ot ? /* @__PURE__ */ i.jsx(ee.text, { y: At(`${L}`) + At.bandwidth() / 2, style: {
189
+ textAnchor: u && u < 0 ? "end" : "start",
190
+ ...l?.graphObjectValues || {}
191
+ }, className: Ce("graph-value text-sm", a?.graphObjectValues), dx: u && u < 0 ? -5 : 5, dy: "0.33em", variants: {
191
192
  initial: {
192
- x: b(0),
193
+ x: v(0),
193
194
  opacity: 0,
194
- fill: it || Ct[w]
195
+ fill: Z || $t[L]
195
196
  },
196
197
  whileInView: {
197
- x: b(h || 0),
198
+ x: v(u || 0),
198
199
  opacity: 1,
199
- fill: it || Ct[w],
200
+ fill: Z || $t[L],
200
201
  transition: {
201
202
  duration: m.duration
202
203
  }
203
204
  }
204
- }, initial: "initial", animate: ut ? "whileInView" : "initial", exit: {
205
+ }, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
205
206
  opacity: 0,
206
207
  transition: {
207
208
  duration: m.duration
208
209
  }
209
- }, children: be(h, at, p, et, ft) }) : null
210
- ] }, `${j.label}-${d[w] || w}`)),
211
- Y ? /* @__PURE__ */ i.jsx(qe, { value: `${j.label}`.length < J ? `${j.label}` : `${`${j.label}`.substring(0, J)}...`, y: 0, x: 0 - r.left, width: b(C < 0 ? 0 : C) + r.left, height: At.bandwidth(), style: s?.yAxis?.labels, className: a?.yAxis?.labels, animate: m, isInView: ut }) : null
212
- ] }, j.label));
213
- const Qt = a?.yAxis?.axis;
214
- let P;
215
- t[90] !== Qt ? (P = {
216
- axis: Qt
217
- }, t[90] = Qt, t[91] = P) : P = t[91];
218
- const N = s?.yAxis?.axis;
219
- let z;
220
- t[92] !== N ? (z = {
221
- axis: N
222
- }, t[92] = N, t[93] = z) : z = t[93], vt = /* @__PURE__ */ i.jsx(Te, { x1: b(C < 0 ? 0 : C), x2: b(C < 0 ? 0 : C), y1: -2.5, y2: G + r.bottom, classNames: P, styles: z, hideAxisLine: D }), Bt = zt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: zt.map((j, h) => /* @__PURE__ */ i.jsx(Je, { text: j.text, color: j.color, x: b(j.value), y1: 0 - r.top, y2: G + r.bottom, textSide: b(j.value) > Wt * 0.75 || T ? "left" : "right", classNames: j.classNames, styles: j.styles, animate: m, isInView: ut }, h)) }) : null, t[16] = m, t[17] = Z, t[18] = Ct, t[19] = St, t[20] = Ft, t[21] = a?.graphObjectValues, t[22] = a?.xAxis?.gridLines, t[23] = a?.xAxis?.labels, t[24] = a?.xAxis?.title, t[25] = a?.yAxis?.axis, t[26] = a?.yAxis?.labels, t[27] = d, t[28] = x, t[29] = l[0].size, t[30] = k, t[31] = F, t[32] = G, t[33] = Wt, t[34] = R, t[35] = D, t[36] = ut, t[37] = r.bottom, t[38] = r.left, t[39] = r.top, t[40] = Q, t[41] = Xt, t[42] = C, t[43] = y, t[44] = at, t[45] = c, t[46] = K, t[47] = Vt, t[48] = p, t[49] = et, t[50] = zt, t[51] = pt, t[52] = T, t[53] = B, t[54] = Y, t[55] = W, t[56] = Lt, t[57] = s?.graphObjectValues, t[58] = s?.xAxis?.gridLines, t[59] = s?.xAxis?.labels, t[60] = s?.xAxis?.title, t[61] = s?.yAxis?.axis, t[62] = s?.yAxis?.labels, t[63] = ft, t[64] = Et, t[65] = J, t[66] = it, t[67] = A, t[68] = yt, t[69] = bt, t[70] = vt, t[71] = Bt, t[72] = Dt, t[73] = tt, t[74] = S, t[75] = I, t[76] = It, t[77] = wt, t[78] = ct, t[79] = mt, t[80] = ht, t[81] = q;
210
+ }, children: we(u, at, b, Q, dt, C) }) : null
211
+ ] }, `${V.label}-${d[L] || L}`)),
212
+ W ? /* @__PURE__ */ i.jsx(Je, { value: `${V.label}`.length < G ? `${V.label}` : `${`${V.label}`.substring(0, G)}...`, y: 0, x: 0 - r.left, width: v(k < 0 ? 0 : k) + r.left, height: Dt.bandwidth(), style: l?.yAxis?.labels, className: a?.yAxis?.labels, animate: m, isInView: D }) : null
213
+ ] }, V.label));
214
+ const Jt = a?.yAxis?.axis;
215
+ let Zt;
216
+ t[91] !== Jt ? (Zt = {
217
+ axis: Jt
218
+ }, t[91] = Jt, t[92] = Zt) : Zt = t[92];
219
+ const it = l?.yAxis?.axis;
220
+ let f;
221
+ t[93] !== it ? (f = {
222
+ axis: it
223
+ }, t[93] = it, t[94] = f) : f = t[94], ft = /* @__PURE__ */ i.jsx(Be, { x1: v(k < 0 ? 0 : k), x2: v(k < 0 ? 0 : k), y1: -2.5, y2: Y + r.bottom, classNames: Zt, styles: f, hideAxisLine: B }), St = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((V, u) => /* @__PURE__ */ i.jsx(Qe, { text: V.text, color: V.color, x: v(V.value), y1: 0 - r.top, y2: Y + r.bottom, textSide: v(V.value) > Pt * 0.75 || N ? "left" : "right", classNames: V.classNames, styles: V.styles, animate: m, isInView: D }, u)) }) : null, t[16] = m, t[17] = U, t[18] = $t, t[19] = Lt, t[20] = Bt, t[21] = a?.graphObjectValues, t[22] = a?.xAxis?.gridLines, t[23] = a?.xAxis?.labels, t[24] = a?.xAxis?.title, t[25] = a?.yAxis?.axis, t[26] = a?.yAxis?.labels, t[27] = d, t[28] = x, t[29] = s[0].size, t[30] = M, t[31] = S, t[32] = Y, t[33] = Pt, t[34] = X, t[35] = B, t[36] = D, t[37] = C, t[38] = r.bottom, t[39] = r.left, t[40] = r.top, t[41] = q, t[42] = Xt, t[43] = k, t[44] = y, t[45] = at, t[46] = c, t[47] = R, t[48] = Mt, t[49] = b, t[50] = Q, t[51] = kt, t[52] = ut, t[53] = N, t[54] = T, t[55] = W, t[56] = P, t[57] = Ot, t[58] = l?.graphObjectValues, t[59] = l?.xAxis?.gridLines, t[60] = l?.xAxis?.labels, t[61] = l?.xAxis?.title, t[62] = l?.yAxis?.axis, t[63] = l?.yAxis?.labels, t[64] = dt, t[65] = Ct, t[66] = G, t[67] = Z, t[68] = O, t[69] = mt, t[70] = ht, t[71] = ft, t[72] = St, t[73] = Vt, t[74] = J, t[75] = j, t[76] = I, t[77] = zt, t[78] = pt, t[79] = ot, t[80] = rt, t[81] = ct, t[82] = E;
223
224
  } else
224
- yt = t[68], bt = t[69], vt = t[70], Bt = t[71], Dt = t[72], tt = t[73], S = t[74], I = t[75], It = t[76], wt = t[77], ct = t[78], mt = t[79], ht = t[80], q = t[81];
225
- let Ot;
226
- t[94] !== yt || t[95] !== vt || t[96] !== Bt || t[97] !== q ? (Ot = /* @__PURE__ */ i.jsxs(yt, { children: [
227
- q,
228
- vt,
229
- Bt
230
- ] }), t[94] = yt, t[95] = vt, t[96] = Bt, t[97] = q, t[98] = Ot) : Ot = t[98];
231
- let Mt;
232
- t[99] !== x ? (Mt = x.filter(ui).map(di), t[99] = x, t[100] = Mt) : Mt = t[100];
233
- let U;
234
- t[101] !== Dt || t[102] !== tt || t[103] !== S || t[104] !== I || t[105] !== Ot || t[106] !== Mt ? (U = /* @__PURE__ */ i.jsxs("g", { transform: Dt, children: [
235
- tt,
236
- S,
225
+ mt = t[69], ht = t[70], ft = t[71], St = t[72], Vt = t[73], J = t[74], j = t[75], I = t[76], zt = t[77], pt = t[78], ot = t[79], rt = t[80], ct = t[81], E = t[82];
226
+ let vt;
227
+ t[95] !== mt || t[96] !== ft || t[97] !== St || t[98] !== E ? (vt = /* @__PURE__ */ i.jsxs(mt, { children: [
228
+ E,
229
+ ft,
230
+ St
231
+ ] }), t[95] = mt, t[96] = ft, t[97] = St, t[98] = E, t[99] = vt) : vt = t[99];
232
+ let wt;
233
+ t[100] !== x ? (wt = x.filter(mi).map(xi), t[100] = x, t[101] = wt) : wt = t[101];
234
+ let K;
235
+ t[102] !== Vt || t[103] !== J || t[104] !== j || t[105] !== I || t[106] !== vt || t[107] !== wt ? (K = /* @__PURE__ */ i.jsxs("g", { transform: Vt, children: [
236
+ J,
237
+ j,
237
238
  I,
238
- Ot,
239
- Mt
240
- ] }), t[101] = Dt, t[102] = tt, t[103] = S, t[104] = I, t[105] = Ot, t[106] = Mt, t[107] = U) : U = t[107];
241
- let kt;
242
- t[108] !== bt || t[109] !== It || t[110] !== wt || t[111] !== ct || t[112] !== mt || t[113] !== ht || t[114] !== U ? (kt = /* @__PURE__ */ i.jsx(bt, { ref: It, width: wt, height: ct, viewBox: mt, direction: ht, children: U }), t[108] = bt, t[109] = It, t[110] = wt, t[111] = ct, t[112] = mt, t[113] = ht, t[114] = U, t[115] = kt) : kt = t[115];
243
- let v;
244
- t[116] !== a?.tooltip || t[117] !== Gt || t[118] !== Rt || t[119] !== V || t[120] !== s?.tooltip || t[121] !== lt ? (v = V && lt && Gt && Rt ? /* @__PURE__ */ i.jsx(je, { data: V, body: lt, xPos: Gt, yPos: Rt, backgroundStyle: s?.tooltip, className: a?.tooltip }) : null, t[116] = a?.tooltip, t[117] = Gt, t[118] = Rt, t[119] = V, t[120] = s?.tooltip, t[121] = lt, t[122] = v) : v = t[122];
239
+ vt,
240
+ wt
241
+ ] }), t[102] = Vt, t[103] = J, t[104] = j, t[105] = I, t[106] = vt, t[107] = wt, t[108] = K) : K = t[108];
242
+ let gt;
243
+ t[109] !== ht || t[110] !== zt || t[111] !== pt || t[112] !== ot || t[113] !== rt || t[114] !== ct || t[115] !== K ? (gt = /* @__PURE__ */ i.jsx(ht, { ref: zt, width: pt, height: ot, viewBox: rt, direction: ct, children: K }), t[109] = ht, t[110] = zt, t[111] = pt, t[112] = ot, t[113] = rt, t[114] = ct, t[115] = K, t[116] = gt) : gt = t[116];
245
244
  let $;
246
- t[123] !== a?.modal || t[124] !== F || t[125] !== y ? ($ = F && y !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: F, data: y, setData: L, className: a?.modal }) : null, t[123] = a?.modal, t[124] = F, t[125] = y, t[126] = $) : $ = t[126];
247
- let O;
248
- return t[127] !== kt || t[128] !== v || t[129] !== $ ? (O = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
249
- kt,
250
- v,
251
- $
252
- ] }), t[127] = kt, t[128] = v, t[129] = $, t[130] = O) : O = t[130], O;
245
+ t[117] !== a?.tooltip || t[118] !== Tt || t[119] !== Ut || t[120] !== jt || t[121] !== l?.tooltip || t[122] !== st ? ($ = jt && st && Tt && Ut ? /* @__PURE__ */ i.jsx(Se, { data: jt, body: st, xPos: Tt, yPos: Ut, backgroundStyle: l?.tooltip, className: a?.tooltip }) : null, t[117] = a?.tooltip, t[118] = Tt, t[119] = Ut, t[120] = jt, t[121] = l?.tooltip, t[122] = st, t[123] = $) : $ = t[123];
246
+ let Ht;
247
+ t[124] !== a?.modal || t[125] !== S || t[126] !== y ? (Ht = S && y !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: S, data: y, setData: Ft, className: a?.modal }) : null, t[124] = a?.modal, t[125] = S, t[126] = y, t[127] = Ht) : Ht = t[127];
248
+ let n;
249
+ return t[128] !== gt || t[129] !== $ || t[130] !== Ht ? (n = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
250
+ gt,
251
+ $,
252
+ Ht
253
+ ] }), t[128] = gt, t[129] = $, t[130] = Ht, t[131] = n) : n = t[131], n;
253
254
  }
254
- function di(e) {
255
+ function xi(e) {
255
256
  return e.layer;
256
257
  }
257
- function ui(e) {
258
+ function mi(e) {
258
259
  return e.position === "after";
259
260
  }
260
- function xi(e) {
261
+ function hi(e) {
261
262
  return e.layer;
262
263
  }
263
- function mi(e) {
264
+ function fi(e) {
264
265
  return e.position === "before";
265
266
  }
266
- function hi(e) {
267
+ function pi(e) {
267
268
  return e !== 0;
268
269
  }
269
- function fi(e) {
270
+ function gi(e) {
270
271
  return e !== 0;
271
272
  }
272
- function pi(e, t) {
273
+ function yi(e, t) {
273
274
  return `${t}`;
274
275
  }
275
- function gi(e) {
276
+ function bi(e) {
276
277
  return `${e.id}`;
277
278
  }
278
- function yi(e) {
279
- const t = we.c(140), {
280
- data: l,
281
- leftMargin: X,
282
- rightMargin: Ut,
283
- topMargin: Jt,
284
- bottomMargin: Tt,
285
- width: Ct,
286
- height: Ft,
287
- barColors: W,
288
- suffix: J,
289
- prefix: A,
290
- barPadding: R,
291
- showLabels: ft,
292
- showValues: et,
293
- showTicks: Lt,
294
- truncateBy: Y,
295
- tooltip: lt,
296
- onSeriesMouseOver: Vt,
297
- refValues: zt,
279
+ function vi(e) {
280
+ const t = $e.c(142), {
281
+ data: s,
282
+ leftMargin: H,
283
+ rightMargin: Rt,
284
+ topMargin: Kt,
285
+ bottomMargin: Nt,
286
+ width: $t,
287
+ height: Bt,
288
+ barColors: P,
289
+ suffix: G,
290
+ prefix: O,
291
+ barPadding: X,
292
+ showLabels: dt,
293
+ showValues: Q,
294
+ showTicks: Ot,
295
+ truncateBy: W,
296
+ tooltip: st,
297
+ onSeriesMouseOver: Mt,
298
+ refValues: kt,
298
299
  maxValue: Xt,
299
- minValue: C,
300
- onSeriesMouseClick: K,
301
- selectedColor: B,
302
- labelOrder: T,
303
- maxBarThickness: dt,
304
- resetSelectionOnDoubleClick: Q,
305
- detailsOnClick: pt,
306
- barAxisTitle: F,
307
- valueColor: Z,
308
- noOfTicks: it,
300
+ minValue: k,
301
+ onSeriesMouseClick: R,
302
+ selectedColor: T,
303
+ labelOrder: N,
304
+ maxBarThickness: nt,
305
+ resetSelectionOnDoubleClick: q,
306
+ detailsOnClick: ut,
307
+ barAxisTitle: S,
308
+ valueColor: U,
309
+ noOfTicks: Z,
309
310
  styles: c,
310
- classNames: s,
311
+ classNames: l,
311
312
  animate: a,
312
313
  colorDomain: m,
313
314
  precision: d,
314
- customLayers: p,
315
+ customLayers: b,
315
316
  naLabel: x,
316
- hideAxisLine: at
317
- } = e, D = X === void 0 ? 20 : X, E = Ut === void 0 ? 20 : Ut, Yt = Jt === void 0 ? 20 : Jt, Et = Tt === void 0 ? 25 : Tt, Pt = ve(null);
318
- let Ht;
319
- t[0] !== a.amount || t[1] !== a.once ? (Ht = {
317
+ hideAxisLine: at,
318
+ locale: B
319
+ } = e, C = H === void 0 ? 20 : H, Wt = Rt === void 0 ? 20 : Rt, qt = Kt === void 0 ? 20 : Kt, Ct = Nt === void 0 ? 25 : Nt, yt = Ae(null);
320
+ let Yt;
321
+ t[0] !== a.amount || t[1] !== a.once ? (Yt = {
320
322
  once: a.once,
321
323
  amount: a.amount
322
- }, t[0] = a.amount, t[1] = a.once, t[2] = Ht) : Ht = t[2];
323
- const nt = Fe(Pt, Ht), ut = F ? D + 30 : D;
324
- let _;
325
- t[3] !== Et || t[4] !== E || t[5] !== ut || t[6] !== Yt ? (_ = {
326
- top: Yt,
327
- bottom: Et,
328
- left: ut,
329
- right: E
330
- }, t[3] = Et, t[4] = E, t[5] = ut, t[6] = Yt, t[7] = _) : _ = t[7];
331
- const u = _, [r, V] = Zt(void 0), [gt, y] = Zt(void 0), [L, Gt] = Zt(void 0), [ot, Rt] = Zt(void 0), rt = Ct - u.left - u.right, Wt = Ft - u.top - u.bottom;
332
- let G;
333
- if (t[8] !== l || t[9] !== T) {
334
- const O = /* @__PURE__ */ new Set(), b = l.map((M, f) => {
335
- const g = T ? `${M.label}` : `${f}`;
336
- return O.add(g), {
337
- ...M,
338
- id: g
324
+ }, t[0] = a.amount, t[1] = a.once, t[2] = Yt) : Yt = t[2];
325
+ const _ = He(yt, Yt), D = S ? C + 30 : C;
326
+ let F;
327
+ t[3] !== Ct || t[4] !== Wt || t[5] !== D || t[6] !== qt ? (F = {
328
+ top: qt,
329
+ bottom: Ct,
330
+ left: D,
331
+ right: Wt
332
+ }, t[3] = Ct, t[4] = Wt, t[5] = D, t[6] = qt, t[7] = F) : F = t[7];
333
+ const h = F, [r, jt] = _t(void 0), [z, y] = _t(void 0), [Ft, Tt] = _t(void 0), [xt, Ut] = _t(void 0), tt = $t - h.left - h.right, Pt = Bt - h.top - h.bottom;
334
+ let Y;
335
+ if (t[8] !== s || t[9] !== N) {
336
+ const n = /* @__PURE__ */ new Set(), v = s.map((A, g) => {
337
+ const w = N ? `${A.label}` : `${g}`;
338
+ return n.add(w), {
339
+ ...A,
340
+ id: w
339
341
  };
340
- }), At = T ? T.filter((M) => !O.has(M)) : [];
341
- let $t;
342
- t[11] !== l[0].size.length ? ($t = (M) => ({
343
- id: M,
344
- label: M,
345
- size: Array(l[0].size.length).fill(null)
346
- }), t[11] = l[0].size.length, t[12] = $t) : $t = t[12], G = [...b, ...At.map($t)], t[8] = l, t[9] = T, t[10] = G;
342
+ }), Dt = N ? N.filter((A) => !n.has(A)) : [];
343
+ let At;
344
+ t[11] !== s[0].size.length ? (At = (A) => ({
345
+ id: A,
346
+ label: A,
347
+ size: Array(s[0].size.length).fill(null)
348
+ }), t[11] = s[0].size.length, t[12] = At) : At = t[12], Y = [...v, ...Dt.map(At)], t[8] = s, t[9] = N, t[10] = Y;
347
349
  } else
348
- G = t[10];
349
- const st = G;
350
- let k;
351
- t[13] !== st || t[14] !== T ? (k = T ?? st.map(ki), t[13] = st, t[14] = T, t[15] = k) : k = t[15];
352
- const xt = k;
353
- let St, yt, bt, vt, Bt, Dt, tt, S, I, It, wt, ct, mt, ht;
354
- if (t[16] !== a || t[17] !== F || t[18] !== W || t[19] !== xt || t[20] !== R || t[21] !== s?.graphObjectValues || t[22] !== s?.xAxis?.axis || t[23] !== s?.xAxis?.labels || t[24] !== s?.yAxis?.gridLines || t[25] !== s?.yAxis?.labels || t[26] !== s?.yAxis?.title || t[27] !== m || t[28] !== p || t[29] !== l[0].size || t[30] !== st || t[31] !== pt || t[32] !== Wt || t[33] !== rt || t[34] !== Ft || t[35] !== at || t[36] !== nt || t[37] !== D || t[38] !== u.bottom || t[39] !== u.left || t[40] !== u.right || t[41] !== u.top || t[42] !== dt || t[43] !== Xt || t[44] !== C || t[45] !== gt || t[46] !== x || t[47] !== it || t[48] !== K || t[49] !== Vt || t[50] !== d || t[51] !== A || t[52] !== zt || t[53] !== Q || t[54] !== B || t[55] !== ft || t[56] !== Lt || t[57] !== et || t[58] !== c?.graphObjectValues || t[59] !== c?.xAxis?.axis || t[60] !== c?.xAxis?.labels || t[61] !== c?.yAxis?.gridLines || t[62] !== c?.yAxis?.labels || t[63] !== c?.yAxis?.title || t[64] !== J || t[65] !== Y || t[66] !== Z || t[67] !== Ct) {
355
- const O = Pe().domain([C, Xt]).range([Wt, 0]).nice(), b = ke().domain(xt).range([0, dt ? Math.min(rt, dt * xt.length) : rt]).paddingInner(R), At = ke().domain(l[0].size.map(Mi)).range([0, b.bandwidth()]).paddingInner(0.1), $t = O.ticks(it);
356
- yt = _t.svg, I = `${Ct}px`, It = `${Ft}px`, wt = `0 0 ${Ct} ${Ft}`, ct = "ltr", mt = Pt, vt = `translate(${u.left},${u.top})`;
357
- let M;
358
- t[82] !== C || t[83] !== x || t[84] !== d || t[85] !== A || t[86] !== Lt || t[87] !== J ? (M = Lt ? be(C < 0 ? 0 : C, x, d, A, J) : void 0, t[82] = C, t[83] = x, t[84] = d, t[85] = A, t[86] = Lt, t[87] = J, t[88] = M) : M = t[88];
359
- const f = s?.xAxis?.axis, g = s?.yAxis?.labels;
360
- let Nt;
361
- t[89] !== f || t[90] !== g ? (Nt = {
362
- axis: f,
363
- label: g
364
- }, t[89] = f, t[90] = g, t[91] = Nt) : Nt = t[91];
365
- const qt = c?.xAxis?.axis, Qt = c?.yAxis?.labels;
366
- let P;
367
- t[92] !== qt || t[93] !== Qt ? (P = {
368
- axis: qt,
369
- label: Qt
370
- }, t[92] = qt, t[93] = Qt, t[94] = P) : P = t[94], Bt = /* @__PURE__ */ i.jsx(Te, { y1: O(C < 0 ? 0 : C), y2: O(C < 0 ? 0 : C), x1: 0 - D, x2: rt + u.right, label: M, hideAxisLine: at, labelPos: {
371
- x: 0 - D,
350
+ Y = t[10];
351
+ const et = Y;
352
+ let M;
353
+ t[13] !== et || t[14] !== N ? (M = N ?? et.map(Li), t[13] = et, t[14] = N, t[15] = M) : M = t[15];
354
+ const bt = M;
355
+ let Lt, mt, ht, ft, St, Vt, J, j, I, zt, pt, ot, rt, ct;
356
+ if (t[16] !== a || t[17] !== S || t[18] !== P || t[19] !== bt || t[20] !== X || t[21] !== l?.graphObjectValues || t[22] !== l?.xAxis?.axis || t[23] !== l?.xAxis?.labels || t[24] !== l?.yAxis?.gridLines || t[25] !== l?.yAxis?.labels || t[26] !== l?.yAxis?.title || t[27] !== m || t[28] !== b || t[29] !== s[0].size || t[30] !== et || t[31] !== ut || t[32] !== Pt || t[33] !== tt || t[34] !== Bt || t[35] !== at || t[36] !== _ || t[37] !== C || t[38] !== B || t[39] !== h.bottom || t[40] !== h.left || t[41] !== h.right || t[42] !== h.top || t[43] !== nt || t[44] !== Xt || t[45] !== k || t[46] !== z || t[47] !== x || t[48] !== Z || t[49] !== R || t[50] !== Mt || t[51] !== d || t[52] !== O || t[53] !== kt || t[54] !== q || t[55] !== T || t[56] !== dt || t[57] !== Ot || t[58] !== Q || t[59] !== c?.graphObjectValues || t[60] !== c?.xAxis?.axis || t[61] !== c?.xAxis?.labels || t[62] !== c?.yAxis?.gridLines || t[63] !== c?.yAxis?.labels || t[64] !== c?.yAxis?.title || t[65] !== G || t[66] !== W || t[67] !== U || t[68] !== $t) {
357
+ const n = We().domain([k, Xt]).range([Pt, 0]).nice(), v = Le().domain(bt).range([0, nt ? Math.min(tt, nt * bt.length) : tt]).paddingInner(X), Dt = Le().domain(s[0].size.map(Ci)).range([0, v.bandwidth()]).paddingInner(0.1), At = n.ticks(Z);
358
+ mt = ee.svg, I = `${$t}px`, zt = `${Bt}px`, pt = `0 0 ${$t} ${Bt}`, ot = "ltr", rt = yt, ft = `translate(${h.left},${h.top})`;
359
+ let A;
360
+ t[83] !== B || t[84] !== k || t[85] !== x || t[86] !== d || t[87] !== O || t[88] !== Ot || t[89] !== G ? (A = Ot ? we(k < 0 ? 0 : k, x, d, O, G, B) : void 0, t[83] = B, t[84] = k, t[85] = x, t[86] = d, t[87] = O, t[88] = Ot, t[89] = G, t[90] = A) : A = t[90];
361
+ const g = l?.xAxis?.axis, w = l?.yAxis?.labels;
362
+ let Et;
363
+ t[91] !== g || t[92] !== w ? (Et = {
364
+ axis: g,
365
+ label: w
366
+ }, t[91] = g, t[92] = w, t[93] = Et) : Et = t[93];
367
+ const Gt = c?.xAxis?.axis, Jt = c?.yAxis?.labels;
368
+ let Zt;
369
+ t[94] !== Gt || t[95] !== Jt ? (Zt = {
370
+ axis: Gt,
371
+ label: Jt
372
+ }, t[94] = Gt, t[95] = Jt, t[96] = Zt) : Zt = t[96], St = /* @__PURE__ */ i.jsx(Be, { y1: n(k < 0 ? 0 : k), y2: n(k < 0 ? 0 : k), x1: 0 - C, x2: tt + h.right, label: A, hideAxisLine: at, labelPos: {
373
+ x: 0 - C,
372
374
  dx: 0,
373
375
  dy: Xt < 0 ? "1em" : -5,
374
- y: O(C < 0 ? 0 : C)
375
- }, classNames: Nt, styles: P }), Dt = Lt ? /* @__PURE__ */ i.jsx(Qe, { values: $t.filter(Oi), y: $t.filter($i).map((w) => O(w)), x1: 0 - D, x2: rt + u.right, styles: {
376
+ y: n(k < 0 ? 0 : k)
377
+ }, classNames: Et, styles: Zt }), Vt = Ot ? /* @__PURE__ */ i.jsx(_e, { values: At.filter(ki), y: At.filter(Mi).map((L) => n(L)), x1: 0 - C, x2: tt + h.right, styles: {
376
378
  gridLines: c?.yAxis?.gridLines,
377
379
  labels: c?.yAxis?.labels
378
380
  }, classNames: {
379
- gridLines: s?.yAxis?.gridLines,
380
- labels: s?.yAxis?.labels
381
- }, suffix: J, prefix: A, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
382
- const N = 0 - D - 15, z = Wt / 2, j = c?.yAxis?.title, h = s?.yAxis?.title;
383
- t[95] !== F || t[96] !== N || t[97] !== z || t[98] !== j || t[99] !== h ? (tt = /* @__PURE__ */ i.jsx(Se, { x: N, y: z, style: j, className: h, text: F, rotate90: !0 }), t[95] = F, t[96] = N, t[97] = z, t[98] = j, t[99] = h, t[100] = tt) : tt = t[100], t[101] !== p ? (S = p.filter(Ai).map(wi), t[101] = p, t[102] = S) : S = t[102], St = He, ht = st.map((w) => ee(b(w.id)) ? null : /* @__PURE__ */ i.jsxs(_t.g, { variants: {
381
+ gridLines: l?.yAxis?.gridLines,
382
+ labels: l?.yAxis?.labels
383
+ }, suffix: G, prefix: O, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d, locale: B }) : null;
384
+ const it = 0 - C - 15, f = Pt / 2, V = c?.yAxis?.title, u = l?.yAxis?.title;
385
+ t[97] !== S || t[98] !== it || t[99] !== f || t[100] !== V || t[101] !== u ? (J = /* @__PURE__ */ i.jsx(Fe, { x: it, y: f, style: V, className: u, text: S, rotate90: !0 }), t[97] = S, t[98] = it, t[99] = f, t[100] = V, t[101] = u, t[102] = J) : J = t[102], t[103] !== b ? (j = b.filter(Oi).map($i), t[103] = b, t[104] = j) : j = t[104], Lt = Xe, ct = et.map((L) => le(v(L.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { variants: {
384
386
  initial: {
385
- x: b(`${w.id}`),
387
+ x: v(`${L.id}`),
386
388
  y: 0
387
389
  },
388
390
  whileInView: {
389
- x: b(`${w.id}`),
391
+ x: v(`${L.id}`),
390
392
  y: 0,
391
393
  transition: {
392
394
  duration: a.duration
393
395
  }
394
396
  }
395
- }, initial: "initial", animate: nt ? "whileInView" : "initial", exit: {
397
+ }, initial: "initial", animate: _ ? "whileInView" : "initial", exit: {
396
398
  opacity: 0,
397
399
  transition: {
398
400
  duration: a.duration
399
401
  }
400
402
  }, children: [
401
- w.size.map((n, H) => /* @__PURE__ */ i.jsxs(_t.g, { className: "undp-viz-g-with-hover", opacity: B ? W[H] === B ? 1 : 0.3 : 0.85, onMouseEnter: (o) => {
402
- V({
403
- ...w,
404
- sizeIndex: H
405
- }), Rt(o.clientY), Gt(o.clientX), Vt?.({
406
- ...w,
407
- sizeIndex: H
403
+ L.size.map((o, lt) => /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", opacity: T ? P[lt] === T ? 1 : 0.3 : 0.85, onMouseEnter: (p) => {
404
+ jt({
405
+ ...L,
406
+ sizeIndex: lt
407
+ }), Ut(p.clientY), Tt(p.clientX), Mt?.({
408
+ ...L,
409
+ sizeIndex: lt
408
410
  });
409
- }, onMouseMove: (o) => {
410
- V({
411
- ...w,
412
- sizeIndex: H
413
- }), Rt(o.clientY), Gt(o.clientX);
411
+ }, onMouseMove: (p) => {
412
+ jt({
413
+ ...L,
414
+ sizeIndex: lt
415
+ }), Ut(p.clientY), Tt(p.clientX);
414
416
  }, onMouseLeave: () => {
415
- V(void 0), Gt(void 0), Rt(void 0), Vt?.(void 0);
417
+ jt(void 0), Tt(void 0), Ut(void 0), Mt?.(void 0);
416
418
  }, onClick: () => {
417
- (K || pt) && (Ne(gt, {
418
- ...w,
419
- sizeIndex: H
420
- }) && Q ? (y(void 0), K?.(void 0)) : (y({
421
- ...w,
422
- sizeIndex: H
423
- }), K && K({
424
- ...w,
425
- sizeIndex: H
419
+ (R || ut) && (Te(z, {
420
+ ...L,
421
+ sizeIndex: lt
422
+ }) && q ? (y(void 0), R?.(void 0)) : (y({
423
+ ...L,
424
+ sizeIndex: lt
425
+ }), R && R({
426
+ ...L,
427
+ sizeIndex: lt
426
428
  })));
427
429
  }, children: [
428
- /* @__PURE__ */ i.jsx(_t.rect, { x: At(`${H}`), width: At.bandwidth(), variants: {
430
+ /* @__PURE__ */ i.jsx(ee.rect, { x: Dt(`${lt}`), width: Dt.bandwidth(), variants: {
429
431
  initial: {
430
432
  height: 0,
431
- y: O(0),
432
- fill: W[H]
433
+ y: n(0),
434
+ fill: P[lt]
433
435
  },
434
436
  whileInView: {
435
- height: ee(n) ? 0 : Math.abs(O(n) - O(0)),
436
- y: ee(n) ? O(0) : n > 0 ? O(n) : O(0),
437
- fill: W[H],
437
+ height: le(o) ? 0 : Math.abs(n(o) - n(0)),
438
+ y: le(o) ? n(0) : o > 0 ? n(o) : n(0),
439
+ fill: P[lt],
438
440
  transition: {
439
441
  duration: a.duration
440
442
  }
441
443
  }
442
444
  }, exit: {
443
445
  height: 0,
444
- y: O(0),
446
+ y: n(0),
445
447
  transition: {
446
448
  duration: a.duration
447
449
  }
448
- }, initial: "initial", animate: nt ? "whileInView" : "initial" }),
449
- et ? /* @__PURE__ */ i.jsx(_t.text, { x: At(`${H}`) + At.bandwidth() / 2, style: {
450
+ }, initial: "initial", animate: _ ? "whileInView" : "initial" }),
451
+ Q ? /* @__PURE__ */ i.jsx(ee.text, { x: Dt(`${lt}`) + Dt.bandwidth() / 2, style: {
450
452
  textAnchor: "middle",
451
453
  ...c?.graphObjectValues || {}
452
- }, className: Me("graph-value text-sm", s?.graphObjectValues), dy: n ? n >= 0 ? "-5px" : "1em" : "-5px", variants: {
454
+ }, className: Ce("graph-value text-sm", l?.graphObjectValues), dy: o ? o >= 0 ? "-5px" : "1em" : "-5px", variants: {
453
455
  initial: {
454
- y: O(0),
456
+ y: n(0),
455
457
  opacity: 0,
456
- fill: Z || W[H]
458
+ fill: U || P[lt]
457
459
  },
458
460
  whileInView: {
459
- y: O(n || 0),
461
+ y: n(o || 0),
460
462
  opacity: 1,
461
- fill: Z || W[H],
463
+ fill: U || P[lt],
462
464
  transition: {
463
465
  duration: a.duration
464
466
  }
465
467
  }
466
- }, initial: "initial", animate: nt ? "whileInView" : "initial", exit: {
468
+ }, initial: "initial", animate: _ ? "whileInView" : "initial", exit: {
467
469
  opacity: 0,
468
470
  transition: {
469
471
  duration: a.duration
470
472
  }
471
- }, children: be(n, x, d, A, J) }) : null
472
- ] }, `${w.label}-${m[H] || H}`)),
473
- ft ? /* @__PURE__ */ i.jsx(Ze, { value: `${w.label}`.length < Y ? `${w.label}` : `${`${w.label}`.substring(0, Y)}...`, y: O(0) + 5, x: 0, width: b.bandwidth(), height: u.bottom, style: c?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: a, isInView: nt }) : null
474
- ] }, w.label)), bt = zt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: zt.map((w, n) => /* @__PURE__ */ i.jsx(Ke, { text: w.text, color: w.color, y: O(w.value), x1: 0 - D, x2: rt + u.right, classNames: w.classNames, styles: w.styles, animate: a, isInView: nt }, n)) }) : null, t[16] = a, t[17] = F, t[18] = W, t[19] = xt, t[20] = R, t[21] = s?.graphObjectValues, t[22] = s?.xAxis?.axis, t[23] = s?.xAxis?.labels, t[24] = s?.yAxis?.gridLines, t[25] = s?.yAxis?.labels, t[26] = s?.yAxis?.title, t[27] = m, t[28] = p, t[29] = l[0].size, t[30] = st, t[31] = pt, t[32] = Wt, t[33] = rt, t[34] = Ft, t[35] = at, t[36] = nt, t[37] = D, t[38] = u.bottom, t[39] = u.left, t[40] = u.right, t[41] = u.top, t[42] = dt, t[43] = Xt, t[44] = C, t[45] = gt, t[46] = x, t[47] = it, t[48] = K, t[49] = Vt, t[50] = d, t[51] = A, t[52] = zt, t[53] = Q, t[54] = B, t[55] = ft, t[56] = Lt, t[57] = et, t[58] = c?.graphObjectValues, t[59] = c?.xAxis?.axis, t[60] = c?.xAxis?.labels, t[61] = c?.yAxis?.gridLines, t[62] = c?.yAxis?.labels, t[63] = c?.yAxis?.title, t[64] = J, t[65] = Y, t[66] = Z, t[67] = Ct, t[68] = St, t[69] = yt, t[70] = bt, t[71] = vt, t[72] = Bt, t[73] = Dt, t[74] = tt, t[75] = S, t[76] = I, t[77] = It, t[78] = wt, t[79] = ct, t[80] = mt, t[81] = ht;
473
+ }, children: we(o, x, d, O, G, B) }) : null
474
+ ] }, `${L.label}-${m[lt] || lt}`)),
475
+ dt ? /* @__PURE__ */ i.jsx(ti, { value: `${L.label}`.length < W ? `${L.label}` : `${`${L.label}`.substring(0, W)}...`, y: n(0) + 5, x: 0, width: v.bandwidth(), height: h.bottom, style: c?.xAxis?.labels, className: l?.xAxis?.labels, alignment: "top", animate: a, isInView: _ }) : null
476
+ ] }, L.label)), ht = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((L, o) => /* @__PURE__ */ i.jsx(Ze, { text: L.text, color: L.color, y: n(L.value), x1: 0 - C, x2: tt + h.right, classNames: L.classNames, styles: L.styles, animate: a, isInView: _ }, o)) }) : null, t[16] = a, t[17] = S, t[18] = P, t[19] = bt, t[20] = X, t[21] = l?.graphObjectValues, t[22] = l?.xAxis?.axis, t[23] = l?.xAxis?.labels, t[24] = l?.yAxis?.gridLines, t[25] = l?.yAxis?.labels, t[26] = l?.yAxis?.title, t[27] = m, t[28] = b, t[29] = s[0].size, t[30] = et, t[31] = ut, t[32] = Pt, t[33] = tt, t[34] = Bt, t[35] = at, t[36] = _, t[37] = C, t[38] = B, t[39] = h.bottom, t[40] = h.left, t[41] = h.right, t[42] = h.top, t[43] = nt, t[44] = Xt, t[45] = k, t[46] = z, t[47] = x, t[48] = Z, t[49] = R, t[50] = Mt, t[51] = d, t[52] = O, t[53] = kt, t[54] = q, t[55] = T, t[56] = dt, t[57] = Ot, t[58] = Q, t[59] = c?.graphObjectValues, t[60] = c?.xAxis?.axis, t[61] = c?.xAxis?.labels, t[62] = c?.yAxis?.gridLines, t[63] = c?.yAxis?.labels, t[64] = c?.yAxis?.title, t[65] = G, t[66] = W, t[67] = U, t[68] = $t, t[69] = Lt, t[70] = mt, t[71] = ht, t[72] = ft, t[73] = St, t[74] = Vt, t[75] = J, t[76] = j, t[77] = I, t[78] = zt, t[79] = pt, t[80] = ot, t[81] = rt, t[82] = ct;
475
477
  } else
476
- St = t[68], yt = t[69], bt = t[70], vt = t[71], Bt = t[72], Dt = t[73], tt = t[74], S = t[75], I = t[76], It = t[77], wt = t[78], ct = t[79], mt = t[80], ht = t[81];
477
- let q;
478
- t[103] !== St || t[104] !== bt || t[105] !== ht ? (q = /* @__PURE__ */ i.jsxs(St, { children: [
479
- ht,
480
- bt
481
- ] }), t[103] = St, t[104] = bt, t[105] = ht, t[106] = q) : q = t[106];
482
- let Ot;
483
- t[107] !== p ? (Ot = p.filter(vi).map(bi), t[107] = p, t[108] = Ot) : Ot = t[108];
484
- let Mt;
485
- t[109] !== vt || t[110] !== Bt || t[111] !== Dt || t[112] !== tt || t[113] !== S || t[114] !== q || t[115] !== Ot ? (Mt = /* @__PURE__ */ i.jsxs("g", { transform: vt, children: [
486
- Bt,
487
- Dt,
488
- tt,
489
- S,
490
- q,
491
- Ot
492
- ] }), t[109] = vt, t[110] = Bt, t[111] = Dt, t[112] = tt, t[113] = S, t[114] = q, t[115] = Ot, t[116] = Mt) : Mt = t[116];
493
- let U;
494
- t[117] !== yt || t[118] !== I || t[119] !== It || t[120] !== wt || t[121] !== ct || t[122] !== mt || t[123] !== Mt ? (U = /* @__PURE__ */ i.jsx(yt, { width: I, height: It, viewBox: wt, direction: ct, ref: mt, children: Mt }), t[117] = yt, t[118] = I, t[119] = It, t[120] = wt, t[121] = ct, t[122] = mt, t[123] = Mt, t[124] = U) : U = t[124];
495
- let kt;
496
- t[125] !== s?.tooltip || t[126] !== L || t[127] !== ot || t[128] !== r || t[129] !== c?.tooltip || t[130] !== lt ? (kt = r && lt && L && ot ? /* @__PURE__ */ i.jsx(je, { data: r, body: lt, xPos: L, yPos: ot, backgroundStyle: c?.tooltip, className: s?.tooltip }) : null, t[125] = s?.tooltip, t[126] = L, t[127] = ot, t[128] = r, t[129] = c?.tooltip, t[130] = lt, t[131] = kt) : kt = t[131];
497
- let v;
498
- t[132] !== s?.modal || t[133] !== pt || t[134] !== gt ? (v = pt && gt !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: pt, data: gt, setData: y, className: s?.modal }) : null, t[132] = s?.modal, t[133] = pt, t[134] = gt, t[135] = v) : v = t[135];
478
+ Lt = t[69], mt = t[70], ht = t[71], ft = t[72], St = t[73], Vt = t[74], J = t[75], j = t[76], I = t[77], zt = t[78], pt = t[79], ot = t[80], rt = t[81], ct = t[82];
479
+ let E;
480
+ t[105] !== Lt || t[106] !== ht || t[107] !== ct ? (E = /* @__PURE__ */ i.jsxs(Lt, { children: [
481
+ ct,
482
+ ht
483
+ ] }), t[105] = Lt, t[106] = ht, t[107] = ct, t[108] = E) : E = t[108];
484
+ let vt;
485
+ t[109] !== b ? (vt = b.filter(Ai).map(wi), t[109] = b, t[110] = vt) : vt = t[110];
486
+ let wt;
487
+ t[111] !== ft || t[112] !== St || t[113] !== Vt || t[114] !== J || t[115] !== j || t[116] !== E || t[117] !== vt ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: ft, children: [
488
+ St,
489
+ Vt,
490
+ J,
491
+ j,
492
+ E,
493
+ vt
494
+ ] }), t[111] = ft, t[112] = St, t[113] = Vt, t[114] = J, t[115] = j, t[116] = E, t[117] = vt, t[118] = wt) : wt = t[118];
495
+ let K;
496
+ t[119] !== mt || t[120] !== I || t[121] !== zt || t[122] !== pt || t[123] !== ot || t[124] !== rt || t[125] !== wt ? (K = /* @__PURE__ */ i.jsx(mt, { width: I, height: zt, viewBox: pt, direction: ot, ref: rt, children: wt }), t[119] = mt, t[120] = I, t[121] = zt, t[122] = pt, t[123] = ot, t[124] = rt, t[125] = wt, t[126] = K) : K = t[126];
497
+ let gt;
498
+ t[127] !== l?.tooltip || t[128] !== Ft || t[129] !== xt || t[130] !== r || t[131] !== c?.tooltip || t[132] !== st ? (gt = r && st && Ft && xt ? /* @__PURE__ */ i.jsx(Se, { data: r, body: st, xPos: Ft, yPos: xt, backgroundStyle: c?.tooltip, className: l?.tooltip }) : null, t[127] = l?.tooltip, t[128] = Ft, t[129] = xt, t[130] = r, t[131] = c?.tooltip, t[132] = st, t[133] = gt) : gt = t[133];
499
499
  let $;
500
- return t[136] !== U || t[137] !== kt || t[138] !== v ? ($ = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
501
- U,
502
- kt,
503
- v
504
- ] }), t[136] = U, t[137] = kt, t[138] = v, t[139] = $) : $ = t[139], $;
500
+ t[134] !== l?.modal || t[135] !== ut || t[136] !== z ? ($ = ut && z !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: ut, data: z, setData: y, className: l?.modal }) : null, t[134] = l?.modal, t[135] = ut, t[136] = z, t[137] = $) : $ = t[137];
501
+ let Ht;
502
+ return t[138] !== K || t[139] !== gt || t[140] !== $ ? (Ht = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
503
+ K,
504
+ gt,
505
+ $
506
+ ] }), t[138] = K, t[139] = gt, t[140] = $, t[141] = Ht) : Ht = t[141], Ht;
505
507
  }
506
- function bi(e) {
508
+ function wi(e) {
507
509
  return e.layer;
508
510
  }
509
- function vi(e) {
511
+ function Ai(e) {
510
512
  return e.position === "after";
511
513
  }
512
- function wi(e) {
514
+ function $i(e) {
513
515
  return e.layer;
514
516
  }
515
- function Ai(e) {
517
+ function Oi(e) {
516
518
  return e.position === "before";
517
519
  }
518
- function $i(e) {
520
+ function Mi(e) {
519
521
  return e !== 0;
520
522
  }
521
- function Oi(e) {
523
+ function ki(e) {
522
524
  return e !== 0;
523
525
  }
524
- function Mi(e, t) {
526
+ function Ci(e, t) {
525
527
  return `${t}`;
526
528
  }
527
- function ki(e) {
529
+ function Li(e) {
528
530
  return `${e.id}`;
529
531
  }
530
- function Ci(e) {
531
- const t = we.c(126), {
532
- data: l,
533
- graphTitle: X,
534
- colors: Ut,
535
- sources: Jt,
536
- graphDescription: Tt,
537
- barPadding: Ct,
538
- showTicks: Ft,
539
- truncateBy: W,
540
- height: J,
541
- width: A,
542
- footNote: R,
543
- colorDomain: ft,
544
- colorLegendTitle: et,
545
- suffix: Lt,
546
- prefix: Y,
547
- showValues: lt,
548
- showColorScale: Vt,
549
- padding: zt,
532
+ function Vi(e) {
533
+ const t = $e.c(127), {
534
+ data: s,
535
+ graphTitle: H,
536
+ colors: Rt,
537
+ sources: Kt,
538
+ graphDescription: Nt,
539
+ barPadding: $t,
540
+ showTicks: Bt,
541
+ truncateBy: P,
542
+ height: G,
543
+ width: O,
544
+ footNote: X,
545
+ colorDomain: dt,
546
+ colorLegendTitle: Q,
547
+ suffix: Ot,
548
+ prefix: W,
549
+ showValues: st,
550
+ showColorScale: Mt,
551
+ padding: kt,
550
552
  backgroundColor: Xt,
551
- leftMargin: C,
552
- rightMargin: K,
553
- topMargin: B,
554
- bottomMargin: T,
555
- showLabels: dt,
556
- relativeHeight: Q,
557
- tooltip: pt,
558
- onSeriesMouseOver: F,
559
- refValues: Z,
560
- graphID: it,
553
+ leftMargin: k,
554
+ rightMargin: R,
555
+ topMargin: T,
556
+ bottomMargin: N,
557
+ showLabels: nt,
558
+ relativeHeight: q,
559
+ tooltip: ut,
560
+ onSeriesMouseOver: S,
561
+ refValues: U,
562
+ graphID: Z,
561
563
  maxValue: c,
562
- minValue: s,
564
+ minValue: l,
563
565
  onSeriesMouseClick: a,
564
566
  graphDownload: m,
565
567
  dataDownload: d,
566
- language: p,
568
+ language: b,
567
569
  labelOrder: x,
568
570
  minHeight: at,
569
- theme: D,
570
- maxBarThickness: E,
571
- ariaLabel: Yt,
572
- resetSelectionOnDoubleClick: Et,
573
- detailsOnClick: Pt,
574
- barAxisTitle: Ht,
575
- noOfTicks: nt,
576
- valueColor: ut,
577
- styles: _,
578
- classNames: u,
579
- filterNA: r,
580
- animate: V,
581
- precision: gt,
582
- customLayers: y,
583
- timeline: L,
584
- naLabel: Gt,
585
- sortParameter: ot,
586
- sortData: Rt,
587
- orientation: rt,
588
- hideAxisLine: Wt
589
- } = e, G = Ut === void 0 ? pe.light.categoricalColors.colors : Ut, st = Ct === void 0 ? 0.25 : Ct, k = Ft === void 0 ? !0 : Ft, xt = W === void 0 ? 999 : W, St = Lt === void 0 ? "" : Lt, yt = Y === void 0 ? "" : Y, bt = lt === void 0 ? !0 : lt, vt = Vt === void 0 ? !0 : Vt, Bt = Xt === void 0 ? !1 : Xt, Dt = dt === void 0 ? !0 : dt, tt = m === void 0 ? !1 : m, S = d === void 0 ? !1 : d, I = p === void 0 ? "en" : p, It = at === void 0 ? 0 : at, wt = D === void 0 ? "light" : D, ct = Et === void 0 ? !0 : Et, mt = nt === void 0 ? 5 : nt, ht = r === void 0 ? !0 : r, q = V === void 0 ? !1 : V, Ot = gt === void 0 ? 2 : gt;
590
- let Mt;
591
- t[0] !== y ? (Mt = y === void 0 ? [] : y, t[0] = y, t[1] = Mt) : Mt = t[1];
592
- const U = Mt;
593
- let kt;
594
- t[2] !== L ? (kt = L === void 0 ? {
571
+ theme: B,
572
+ maxBarThickness: C,
573
+ ariaLabel: Wt,
574
+ resetSelectionOnDoubleClick: qt,
575
+ detailsOnClick: Ct,
576
+ barAxisTitle: yt,
577
+ noOfTicks: Yt,
578
+ valueColor: _,
579
+ styles: D,
580
+ classNames: F,
581
+ filterNA: h,
582
+ animate: r,
583
+ precision: jt,
584
+ customLayers: z,
585
+ timeline: y,
586
+ naLabel: Ft,
587
+ sortParameter: Tt,
588
+ sortData: xt,
589
+ orientation: Ut,
590
+ hideAxisLine: tt,
591
+ locale: Pt
592
+ } = e, Y = Rt === void 0 ? ye.light.categoricalColors.colors : Rt, et = $t === void 0 ? 0.25 : $t, M = Bt === void 0 ? !0 : Bt, bt = P === void 0 ? 999 : P, Lt = Ot === void 0 ? "" : Ot, mt = W === void 0 ? "" : W, ht = st === void 0 ? !0 : st, ft = Mt === void 0 ? !0 : Mt, St = Xt === void 0 ? !1 : Xt, Vt = nt === void 0 ? !0 : nt, J = m === void 0 ? !1 : m, j = d === void 0 ? !1 : d, I = b === void 0 ? "en" : b, zt = at === void 0 ? 0 : at, pt = B === void 0 ? "light" : B, ot = qt === void 0 ? !0 : qt, rt = Yt === void 0 ? 5 : Yt, ct = h === void 0 ? !0 : h, E = r === void 0 ? !1 : r, vt = jt === void 0 ? 2 : jt;
593
+ let wt;
594
+ t[0] !== z ? (wt = z === void 0 ? [] : z, t[0] = z, t[1] = wt) : wt = t[1];
595
+ const K = wt;
596
+ let gt;
597
+ t[2] !== y ? (gt = y === void 0 ? {
595
598
  enabled: !1,
596
599
  autoplay: !1,
597
600
  showOnlyActiveDate: !0
598
- } : L, t[2] = L, t[3] = kt) : kt = t[3];
599
- const v = kt, $ = Gt === void 0 ? "NA" : Gt, O = rt === void 0 ? "vertical" : rt, b = Wt === void 0 ? !1 : Wt, At = O === "horizontal" ? ci : yi, [$t, M] = Zt(0), [f, g] = Zt(0), [Nt, qt] = Zt(v.autoplay);
600
- let Qt;
601
- if (t[4] !== l || t[5] !== v.dateFormat) {
602
- let Kt;
603
- t[7] !== v.dateFormat ? (Kt = (jt) => Re(`${jt.date}`, v.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = v.dateFormat, t[8] = Kt) : Kt = t[8], Qt = [...new Set(l.filter(qi).map(Kt))], Qt.sort(Ri), t[4] = l, t[5] = v.dateFormat, t[6] = Qt;
601
+ } : y, t[2] = y, t[3] = gt) : gt = t[3];
602
+ const $ = gt, Ht = Ft === void 0 ? "NA" : Ft, n = Ut === void 0 ? "vertical" : Ut, v = tt === void 0 ? !1 : tt, Dt = Pt === void 0 ? "en" : Pt, At = n === "horizontal" ? ui : vi, [A, g] = _t(0), [w, Et] = _t(0), [Gt, Jt] = _t($.autoplay);
603
+ let Zt;
604
+ if (t[4] !== s || t[5] !== $.dateFormat) {
605
+ let Qt;
606
+ t[7] !== $.dateFormat ? (Qt = (It) => Ue(`${It.date}`, $.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = $.dateFormat, t[8] = Qt) : Qt = t[8], Zt = [...new Set(s.filter(Ji).map(Qt))], Zt.sort(Ui), t[4] = s, t[5] = $.dateFormat, t[6] = Zt;
604
607
  } else
605
- Qt = t[6];
606
- const P = Qt, [N, z] = Zt(v.autoplay ? 0 : P.length - 1), [j, h] = Zt(void 0), w = ve(null), n = ve(null);
607
- let H, o;
608
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = () => {
609
- const Kt = new ResizeObserver((jt) => {
610
- M(jt[0].target.clientWidth || 620), g(jt[0].target.clientHeight || 480);
608
+ Zt = t[6];
609
+ const it = Zt, [f, V] = _t($.autoplay ? 0 : it.length - 1), [u, L] = _t(void 0), o = Ae(null), lt = Ae(null);
610
+ let p, te;
611
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = () => {
612
+ const Qt = new ResizeObserver((It) => {
613
+ g(It[0].target.clientWidth || 620), Et(It[0].target.clientHeight || 480);
611
614
  });
612
- return w.current && Kt.observe(w.current), () => Kt.disconnect();
613
- }, o = [], t[9] = H, t[10] = o) : (H = t[9], o = t[10]), Ie(H, o);
614
- let ie, le;
615
- t[11] !== Nt || t[12] !== v.speed || t[13] !== P ? (ie = () => {
616
- const Kt = setInterval(() => {
617
- z((jt) => jt < P.length - 1 ? jt + 1 : 0);
618
- }, (v.speed || 2) * 1e3);
619
- return Nt || clearInterval(Kt), () => clearInterval(Kt);
620
- }, le = [P, Nt, v.speed], t[11] = Nt, t[12] = v.speed, t[13] = P, t[14] = ie, t[15] = le) : (ie = t[14], le = t[15]), Ie(ie, le);
621
- const ge = v.dateFormat || "yyyy";
622
- let Oe;
623
- t[16] !== N || t[17] !== ge || t[18] !== v.showOnlyActiveDate || t[19] !== P ? (Oe = Ee(P, N, v.showOnlyActiveDate, ge), t[16] = N, t[17] = ge, t[18] = v.showOnlyActiveDate, t[19] = P, t[20] = Oe) : Oe = t[20];
624
- const fe = Oe, Ae = u?.graphContainer, ye = _?.graphContainer;
625
- let he;
626
- t[21] !== u?.description || t[22] !== u?.title || t[23] !== l || t[24] !== S || t[25] !== Tt || t[26] !== tt || t[27] !== X || t[28] !== _?.description || t[29] !== _?.title || t[30] !== A ? (he = X || Tt || tt || S ? /* @__PURE__ */ i.jsx(_e, { styles: {
627
- title: _?.title,
628
- description: _?.description
615
+ return o.current && Qt.observe(o.current), () => Qt.disconnect();
616
+ }, te = [], t[9] = p, t[10] = te) : (p = t[9], te = t[10]), je(p, te);
617
+ let se, pe;
618
+ t[11] !== Gt || t[12] !== $.speed || t[13] !== it ? (se = () => {
619
+ const Qt = setInterval(() => {
620
+ V((It) => It < it.length - 1 ? It + 1 : 0);
621
+ }, ($.speed || 2) * 1e3);
622
+ return Gt || clearInterval(Qt), () => clearInterval(Qt);
623
+ }, pe = [it, Gt, $.speed], t[11] = Gt, t[12] = $.speed, t[13] = it, t[14] = se, t[15] = pe) : (se = t[14], pe = t[15]), je(se, pe);
624
+ const be = $.dateFormat || "yyyy";
625
+ let ke;
626
+ t[16] !== f || t[17] !== be || t[18] !== $.showOnlyActiveDate || t[19] !== it ? (ke = Re(it, f, $.showOnlyActiveDate, be), t[16] = f, t[17] = be, t[18] = $.showOnlyActiveDate, t[19] = it, t[20] = ke) : ke = t[20];
627
+ const ge = ke, Oe = F?.graphContainer, ve = D?.graphContainer;
628
+ let fe;
629
+ t[21] !== F?.description || t[22] !== F?.title || t[23] !== s || t[24] !== j || t[25] !== Nt || t[26] !== J || t[27] !== H || t[28] !== D?.description || t[29] !== D?.title || t[30] !== O ? (fe = H || Nt || J || j ? /* @__PURE__ */ i.jsx(ei, { styles: {
630
+ title: D?.title,
631
+ description: D?.description
629
632
  }, classNames: {
630
- title: u?.title,
631
- description: u?.description
632
- }, graphTitle: X, graphDescription: Tt, width: A, graphDownload: tt ? n : void 0, dataDownload: S ? l.map(Gi).filter(Ei).length > 0 ? l.map(Yi).filter(Xi) : l.filter(Wi) : null }) : null, t[21] = u?.description, t[22] = u?.title, t[23] = l, t[24] = S, t[25] = Tt, t[26] = tt, t[27] = X, t[28] = _?.description, t[29] = _?.title, t[30] = A, t[31] = he) : he = t[31];
633
- let ae;
634
- t[32] !== N || t[33] !== fe || t[34] !== Nt || t[35] !== v.enabled || t[36] !== P ? (ae = v.enabled && P.length > 0 && fe ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
633
+ title: F?.title,
634
+ description: F?.description
635
+ }, graphTitle: H, graphDescription: Nt, width: O, graphDownload: J ? lt : void 0, dataDownload: j ? s.map(qi).filter(Ri).length > 0 ? s.map(Gi).filter(Ei) : s.filter(Yi) : null }) : null, t[21] = F?.description, t[22] = F?.title, t[23] = s, t[24] = j, t[25] = Nt, t[26] = J, t[27] = H, t[28] = D?.description, t[29] = D?.title, t[30] = O, t[31] = fe) : fe = t[31];
636
+ let oe;
637
+ t[32] !== f || t[33] !== ge || t[34] !== Gt || t[35] !== $.enabled || t[36] !== it ? (oe = $.enabled && it.length > 0 && ge ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
635
638
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
636
- qt(!Nt);
637
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Nt ? "Click to pause animation" : "Click to play animation", children: Nt ? /* @__PURE__ */ i.jsx(si, {}) : /* @__PURE__ */ i.jsx(li, {}) }),
638
- /* @__PURE__ */ i.jsx(Ge, { min: P[0], max: P[P.length - 1], marks: fe, step: null, defaultValue: P[P.length - 1], value: P[N], onChangeComplete: (Kt) => {
639
- z(P.indexOf(Kt));
640
- }, onChange: (Kt) => {
641
- z(P.indexOf(Kt));
639
+ Jt(!Gt);
640
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Gt ? "Click to pause animation" : "Click to play animation", children: Gt ? /* @__PURE__ */ i.jsx(ai, {}) : /* @__PURE__ */ i.jsx(oi, {}) }),
641
+ /* @__PURE__ */ i.jsx(qe, { min: it[0], max: it[it.length - 1], marks: ge, step: null, defaultValue: it[it.length - 1], value: it[f], onChangeComplete: (Qt) => {
642
+ V(it.indexOf(Qt));
643
+ }, onChange: (Qt) => {
644
+ V(it.indexOf(Qt));
642
645
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
643
- ] }) : null, t[32] = N, t[33] = fe, t[34] = Nt, t[35] = v.enabled, t[36] = P, t[37] = ae) : ae = t[37];
646
+ ] }) : null, t[32] = f, t[33] = ge, t[34] = Gt, t[35] = $.enabled, t[36] = it, t[37] = oe) : oe = t[37];
644
647
  let ne;
645
- t[38] !== u?.colorLegend || t[39] !== ft || t[40] !== et || t[41] !== G || t[42] !== l.length || t[43] !== vt || t[44] !== A ? (ne = vt && l.length > 0 ? /* @__PURE__ */ i.jsx(ei, { width: A, colorDomain: ft, colors: G, colorLegendTitle: et, setSelectedColor: h, showNAColor: !1, className: u?.colorLegend }) : null, t[38] = u?.colorLegend, t[39] = ft, t[40] = et, t[41] = G, t[42] = l.length, t[43] = vt, t[44] = A, t[45] = ne) : ne = t[45];
646
- let de;
647
- t[46] !== l.length ? (de = l.length === 0 && /* @__PURE__ */ i.jsx(ii, {}), t[46] = l.length, t[47] = de) : de = t[47];
648
- let oe;
649
- t[48] !== At || t[49] !== q || t[50] !== Ht || t[51] !== st || t[52] !== T || t[53] !== u || t[54] !== ft || t[55] !== G || t[56] !== U || t[57] !== l || t[58] !== Pt || t[59] !== ht || t[60] !== b || t[61] !== N || t[62] !== x || t[63] !== I || t[64] !== C || t[65] !== E || t[66] !== c || t[67] !== s || t[68] !== $ || t[69] !== mt || t[70] !== a || t[71] !== F || t[72] !== Ot || t[73] !== yt || t[74] !== Z || t[75] !== ct || t[76] !== K || t[77] !== j || t[78] !== Dt || t[79] !== k || t[80] !== bt || t[81] !== Rt || t[82] !== ot || t[83] !== _ || t[84] !== St || t[85] !== f || t[86] !== $t || t[87] !== v.dateFormat || t[88] !== v.enabled || t[89] !== pt || t[90] !== B || t[91] !== xt || t[92] !== P || t[93] !== ut ? (oe = $t && f && l.length > 0 ? /* @__PURE__ */ i.jsx(At, { hideAxisLine: b, data: ot !== void 0 ? ot === "total" ? We(De(l, v.dateFormat || "yyyy").filter((Kt) => v.enabled ? `${Kt.date}` === Ce(new Date(P[N]), v.dateFormat || "yyyy") : Kt).filter((Kt) => ht ? !Kt.size.every(Hi) : Kt), Fi, [Rt || "asc"]) : We(De(l, v.dateFormat || "yyyy").filter((Kt) => v.enabled ? `${Kt.date}` === Ce(new Date(P[N]), v.dateFormat || "yyyy") : Kt).filter((Kt) => ht ? !Kt.size.every(Bi) : Kt), (Kt) => ee(Kt.size[ot]) ? -1 / 0 : Kt.size[ot], [Rt || "asc"]) : De(l, v.dateFormat || "yyyy").filter((Kt) => ht ? !Kt.size.every(Si) : Kt), barColors: G, width: $t, height: f, suffix: St, prefix: yt, showValues: bt, barPadding: st, showTicks: k, leftMargin: C, rightMargin: K, topMargin: B, bottomMargin: T, truncateBy: xt, showLabels: Dt, tooltip: pt, onSeriesMouseOver: F, refValues: Z, maxValue: ee(c) ? Math.max(...l.map(ji)) < 0 ? 0 : Math.max(...l.map(Ii)) : c, minValue: ee(s) ? Math.min(...l.map(zi)) >= 0 ? 0 : Math.min(...l.map(Li)) : s, onSeriesMouseClick: a, selectedColor: j, labelOrder: x, rtl: I === "he" || I === "ar", maxBarThickness: E, resetSelectionOnDoubleClick: ct, detailsOnClick: Pt, barAxisTitle: Ht, noOfTicks: mt, valueColor: ut, styles: _, classNames: u, colorDomain: ft, animate: q === !0 ? {
648
+ t[38] !== F?.colorLegend || t[39] !== dt || t[40] !== Q || t[41] !== Y || t[42] !== s.length || t[43] !== ft || t[44] !== O ? (ne = ft && s.length > 0 ? /* @__PURE__ */ i.jsx(li, { width: O, colorDomain: dt, colors: Y, colorLegendTitle: Q, setSelectedColor: L, showNAColor: !1, className: F?.colorLegend }) : null, t[38] = F?.colorLegend, t[39] = dt, t[40] = Q, t[41] = Y, t[42] = s.length, t[43] = ft, t[44] = O, t[45] = ne) : ne = t[45];
649
+ let ue;
650
+ t[46] !== s.length ? (ue = s.length === 0 && /* @__PURE__ */ i.jsx(si, {}), t[46] = s.length, t[47] = ue) : ue = t[47];
651
+ let re;
652
+ t[48] !== At || t[49] !== E || t[50] !== yt || t[51] !== et || t[52] !== N || t[53] !== F || t[54] !== dt || t[55] !== Y || t[56] !== K || t[57] !== s || t[58] !== Ct || t[59] !== ct || t[60] !== v || t[61] !== f || t[62] !== x || t[63] !== I || t[64] !== k || t[65] !== Dt || t[66] !== C || t[67] !== c || t[68] !== l || t[69] !== Ht || t[70] !== rt || t[71] !== a || t[72] !== S || t[73] !== vt || t[74] !== mt || t[75] !== U || t[76] !== ot || t[77] !== R || t[78] !== u || t[79] !== Vt || t[80] !== M || t[81] !== ht || t[82] !== xt || t[83] !== Tt || t[84] !== D || t[85] !== Lt || t[86] !== w || t[87] !== A || t[88] !== $.dateFormat || t[89] !== $.enabled || t[90] !== ut || t[91] !== T || t[92] !== bt || t[93] !== it || t[94] !== _ ? (re = A && w && s.length > 0 ? /* @__PURE__ */ i.jsx(At, { hideAxisLine: v, data: Tt !== void 0 ? Tt === "total" ? Ye(Ne(s, $.dateFormat || "yyyy").filter((Qt) => $.enabled ? `${Qt.date}` === Ve(new Date(it[f]), $.dateFormat || "yyyy") : Qt).filter((Qt) => ct ? !Qt.size.every(Xi) : Qt), Hi, [xt || "asc"]) : Ye(Ne(s, $.dateFormat || "yyyy").filter((Qt) => $.enabled ? `${Qt.date}` === Ve(new Date(it[f]), $.dateFormat || "yyyy") : Qt).filter((Qt) => ct ? !Qt.size.every(Pi) : Qt), (Qt) => le(Qt.size[Tt]) ? -1 / 0 : Qt.size[Tt], [xt || "asc"]) : Ne(s, $.dateFormat || "yyyy").filter((Qt) => ct ? !Qt.size.every(Fi) : Qt), barColors: Y, width: A, height: w, suffix: Lt, prefix: mt, showValues: ht, barPadding: et, showTicks: M, leftMargin: k, rightMargin: R, topMargin: T, bottomMargin: N, truncateBy: bt, showLabels: Vt, tooltip: ut, onSeriesMouseOver: S, refValues: U, maxValue: le(c) ? Math.max(...s.map(Si)) < 0 ? 0 : Math.max(...s.map(ji)) : c, minValue: le(l) ? Math.min(...s.map(Ii)) >= 0 ? 0 : Math.min(...s.map(zi)) : l, onSeriesMouseClick: a, selectedColor: u, labelOrder: x, rtl: I === "he" || I === "ar", maxBarThickness: C, resetSelectionOnDoubleClick: ot, detailsOnClick: Ct, barAxisTitle: yt, noOfTicks: rt, valueColor: _, styles: D, classNames: F, colorDomain: dt, animate: E === !0 ? {
650
653
  duration: 0.5,
651
654
  once: !0,
652
655
  amount: 0.5
653
- } : q || {
656
+ } : E || {
654
657
  duration: 0,
655
658
  once: !0,
656
659
  amount: 0
657
- }, precision: Ot, customLayers: U, naLabel: $ }) : null, t[48] = At, t[49] = q, t[50] = Ht, t[51] = st, t[52] = T, t[53] = u, t[54] = ft, t[55] = G, t[56] = U, t[57] = l, t[58] = Pt, t[59] = ht, t[60] = b, t[61] = N, t[62] = x, t[63] = I, t[64] = C, t[65] = E, t[66] = c, t[67] = s, t[68] = $, t[69] = mt, t[70] = a, t[71] = F, t[72] = Ot, t[73] = yt, t[74] = Z, t[75] = ct, t[76] = K, t[77] = j, t[78] = Dt, t[79] = k, t[80] = bt, t[81] = Rt, t[82] = ot, t[83] = _, t[84] = St, t[85] = f, t[86] = $t, t[87] = v.dateFormat, t[88] = v.enabled, t[89] = pt, t[90] = B, t[91] = xt, t[92] = P, t[93] = ut, t[94] = oe) : oe = t[94];
658
- let re;
659
- t[95] !== de || t[96] !== oe ? (re = /* @__PURE__ */ i.jsxs(ai, { ref: w, children: [
660
- de,
661
- oe
662
- ] }), t[95] = de, t[96] = oe, t[97] = re) : re = t[97];
663
- let ue;
664
- t[98] !== ne || t[99] !== re ? (ue = /* @__PURE__ */ i.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
665
- ne,
660
+ }, precision: vt, customLayers: K, naLabel: Ht, locale: Dt }) : null, t[48] = At, t[49] = E, t[50] = yt, t[51] = et, t[52] = N, t[53] = F, t[54] = dt, t[55] = Y, t[56] = K, t[57] = s, t[58] = Ct, t[59] = ct, t[60] = v, t[61] = f, t[62] = x, t[63] = I, t[64] = k, t[65] = Dt, t[66] = C, t[67] = c, t[68] = l, t[69] = Ht, t[70] = rt, t[71] = a, t[72] = S, t[73] = vt, t[74] = mt, t[75] = U, t[76] = ot, t[77] = R, t[78] = u, t[79] = Vt, t[80] = M, t[81] = ht, t[82] = xt, t[83] = Tt, t[84] = D, t[85] = Lt, t[86] = w, t[87] = A, t[88] = $.dateFormat, t[89] = $.enabled, t[90] = ut, t[91] = T, t[92] = bt, t[93] = it, t[94] = _, t[95] = re) : re = t[95];
661
+ let ce;
662
+ t[96] !== ue || t[97] !== re ? (ce = /* @__PURE__ */ i.jsxs(ni, { ref: o, children: [
663
+ ue,
666
664
  re
667
- ] }), t[98] = ne, t[99] = re, t[100] = ue) : ue = t[100];
665
+ ] }), t[96] = ue, t[97] = re, t[98] = ce) : ce = t[98];
668
666
  let xe;
669
- t[101] !== u?.footnote || t[102] !== u?.source || t[103] !== R || t[104] !== Jt || t[105] !== _?.footnote || t[106] !== _?.source || t[107] !== A ? (xe = Jt || R ? /* @__PURE__ */ i.jsx(ti, { styles: {
670
- footnote: _?.footnote,
671
- source: _?.source
667
+ t[99] !== ne || t[100] !== ce ? (xe = /* @__PURE__ */ i.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
668
+ ne,
669
+ ce
670
+ ] }), t[99] = ne, t[100] = ce, t[101] = xe) : xe = t[101];
671
+ let me;
672
+ t[102] !== F?.footnote || t[103] !== F?.source || t[104] !== X || t[105] !== Kt || t[106] !== D?.footnote || t[107] !== D?.source || t[108] !== O ? (me = Kt || X ? /* @__PURE__ */ i.jsx(ii, { styles: {
673
+ footnote: D?.footnote,
674
+ source: D?.source
672
675
  }, classNames: {
673
- footnote: u?.footnote,
674
- source: u?.source
675
- }, sources: Jt, footNote: R, width: A }) : null, t[101] = u?.footnote, t[102] = u?.source, t[103] = R, t[104] = Jt, t[105] = _?.footnote, t[106] = _?.source, t[107] = A, t[108] = xe) : xe = t[108];
676
- let ce;
677
- return t[109] !== Yt || t[110] !== Bt || t[111] !== it || t[112] !== J || t[113] !== I || t[114] !== It || t[115] !== zt || t[116] !== Q || t[117] !== Ae || t[118] !== ye || t[119] !== he || t[120] !== ae || t[121] !== ue || t[122] !== xe || t[123] !== wt || t[124] !== A ? (ce = /* @__PURE__ */ i.jsxs(ni, { className: Ae, style: ye, id: it, ref: n, "aria-label": Yt, backgroundColor: Bt, theme: wt, language: I, minHeight: It, width: A, height: J, relativeHeight: Q, padding: zt, children: [
678
- he,
679
- ae,
680
- ue,
681
- xe
682
- ] }), t[109] = Yt, t[110] = Bt, t[111] = it, t[112] = J, t[113] = I, t[114] = It, t[115] = zt, t[116] = Q, t[117] = Ae, t[118] = ye, t[119] = he, t[120] = ae, t[121] = ue, t[122] = xe, t[123] = wt, t[124] = A, t[125] = ce) : ce = t[125], ce;
683
- }
684
- function Li(e) {
685
- return Math.min(...e.size.filter(Vi));
686
- }
687
- function Vi(e) {
688
- return !ee(e);
676
+ footnote: F?.footnote,
677
+ source: F?.source
678
+ }, sources: Kt, footNote: X, width: O }) : null, t[102] = F?.footnote, t[103] = F?.source, t[104] = X, t[105] = Kt, t[106] = D?.footnote, t[107] = D?.source, t[108] = O, t[109] = me) : me = t[109];
679
+ let de;
680
+ return t[110] !== Wt || t[111] !== St || t[112] !== Z || t[113] !== G || t[114] !== I || t[115] !== zt || t[116] !== kt || t[117] !== q || t[118] !== Oe || t[119] !== ve || t[120] !== fe || t[121] !== oe || t[122] !== xe || t[123] !== me || t[124] !== pt || t[125] !== O ? (de = /* @__PURE__ */ i.jsxs(ri, { className: Oe, style: ve, id: Z, ref: lt, "aria-label": Wt, backgroundColor: St, theme: pt, language: I, minHeight: zt, width: O, height: G, relativeHeight: q, padding: kt, children: [
681
+ fe,
682
+ oe,
683
+ xe,
684
+ me
685
+ ] }), t[110] = Wt, t[111] = St, t[112] = Z, t[113] = G, t[114] = I, t[115] = zt, t[116] = kt, t[117] = q, t[118] = Oe, t[119] = ve, t[120] = fe, t[121] = oe, t[122] = xe, t[123] = me, t[124] = pt, t[125] = O, t[126] = de) : de = t[126], de;
689
686
  }
690
687
  function zi(e) {
691
688
  return Math.min(...e.size.filter(Di));
692
689
  }
693
690
  function Di(e) {
694
- return !ee(e);
691
+ return !le(e);
695
692
  }
696
693
  function Ii(e) {
697
- return Math.max(...e.size.filter(Ni));
694
+ return Math.min(...e.size.filter(Ni));
698
695
  }
699
696
  function Ni(e) {
700
- return !ee(e);
697
+ return !le(e);
701
698
  }
702
699
  function ji(e) {
703
700
  return Math.max(...e.size.filter(Ti));
704
701
  }
705
702
  function Ti(e) {
706
- return !ee(e);
703
+ return !le(e);
707
704
  }
708
705
  function Si(e) {
709
- return e == null;
706
+ return Math.max(...e.size.filter(Bi));
710
707
  }
711
708
  function Bi(e) {
712
- return e == null;
709
+ return !le(e);
713
710
  }
714
711
  function Fi(e) {
715
- return me(e.size.filter(Pi));
712
+ return e == null;
716
713
  }
717
714
  function Pi(e) {
718
- return !ee(e);
715
+ return e == null;
719
716
  }
720
717
  function Hi(e) {
721
- return e == null;
718
+ return he(e.size.filter(Wi));
722
719
  }
723
720
  function Wi(e) {
724
- return e !== void 0;
721
+ return !le(e);
725
722
  }
726
723
  function Xi(e) {
727
- return e !== void 0;
724
+ return e == null;
728
725
  }
729
726
  function Yi(e) {
730
- return e.data;
727
+ return e !== void 0;
731
728
  }
732
729
  function Ei(e) {
733
730
  return e !== void 0;
@@ -735,266 +732,273 @@ function Ei(e) {
735
732
  function Gi(e) {
736
733
  return e.data;
737
734
  }
738
- function Ri(e, t) {
739
- return e - t;
735
+ function Ri(e) {
736
+ return e !== void 0;
740
737
  }
741
738
  function qi(e) {
739
+ return e.data;
740
+ }
741
+ function Ui(e, t) {
742
+ return e - t;
743
+ }
744
+ function Ji(e) {
742
745
  return e.date;
743
746
  }
744
- function Ui(e) {
745
- const t = we.c(133), {
746
- data: l,
747
- barColor: X,
748
- suffix: Ut,
749
- prefix: Jt,
750
- barPadding: Tt,
751
- showValues: Ct,
752
- showTicks: Ft,
753
- truncateBy: W,
754
- width: J,
755
- height: A,
756
- colorDomain: R,
757
- topMargin: ft,
758
- bottomMargin: et,
759
- leftMargin: Lt,
760
- rightMargin: Y,
761
- showLabels: lt,
762
- tooltip: Vt,
763
- onSeriesMouseOver: zt,
747
+ function Ki(e) {
748
+ const t = $e.c(134), {
749
+ data: s,
750
+ barColor: H,
751
+ suffix: Rt,
752
+ prefix: Kt,
753
+ barPadding: Nt,
754
+ showValues: $t,
755
+ showTicks: Bt,
756
+ truncateBy: P,
757
+ width: G,
758
+ height: O,
759
+ colorDomain: X,
760
+ topMargin: dt,
761
+ bottomMargin: Q,
762
+ leftMargin: Ot,
763
+ rightMargin: W,
764
+ showLabels: st,
765
+ tooltip: Mt,
766
+ onSeriesMouseOver: kt,
764
767
  refValues: Xt,
765
- selectedColor: C,
766
- highlightedDataPoints: K,
767
- maxValue: B,
768
- minValue: T,
769
- onSeriesMouseClick: dt,
770
- labelOrder: Q,
771
- rtl: pt,
772
- maxBarThickness: F,
773
- minBarThickness: Z,
774
- resetSelectionOnDoubleClick: it,
768
+ selectedColor: k,
769
+ highlightedDataPoints: R,
770
+ maxValue: T,
771
+ minValue: N,
772
+ onSeriesMouseClick: nt,
773
+ labelOrder: q,
774
+ rtl: ut,
775
+ maxBarThickness: S,
776
+ minBarThickness: U,
777
+ resetSelectionOnDoubleClick: Z,
775
778
  detailsOnClick: c,
776
- barAxisTitle: s,
779
+ barAxisTitle: l,
777
780
  valueColor: a,
778
781
  noOfTicks: m,
779
782
  styles: d,
780
- classNames: p,
783
+ classNames: b,
781
784
  animate: x,
782
785
  dimmedOpacity: at,
783
- precision: D,
784
- customLayers: E,
785
- naLabel: Yt,
786
- trackColor: Et,
787
- hideAxisLine: Pt
788
- } = e, Ht = ft === void 0 ? 25 : ft, nt = et === void 0 ? 10 : et, ut = Lt === void 0 ? 100 : Lt, _ = Y === void 0 ? 40 : Y, u = ve(null);
786
+ precision: B,
787
+ customLayers: C,
788
+ naLabel: Wt,
789
+ trackColor: qt,
790
+ hideAxisLine: Ct,
791
+ locale: yt
792
+ } = e, Yt = dt === void 0 ? 25 : dt, _ = Q === void 0 ? 10 : Q, D = Ot === void 0 ? 100 : Ot, F = W === void 0 ? 40 : W, h = Ae(null);
789
793
  let r;
790
794
  t[0] !== x.amount || t[1] !== x.once ? (r = {
791
795
  once: x.once,
792
796
  amount: x.amount
793
797
  }, t[0] = x.amount, t[1] = x.once, t[2] = r) : r = t[2];
794
- const V = Fe(u, r), [gt, y] = Zt(void 0), [L, Gt] = Zt(void 0), [ot, Rt] = Zt(void 0), [rt, Wt] = Zt(void 0), G = s ? Ht + 25 : Ht;
795
- let st;
796
- t[3] !== nt || t[4] !== ut || t[5] !== _ || t[6] !== G ? (st = {
797
- top: G,
798
- bottom: nt,
799
- left: ut,
800
- right: _
801
- }, t[3] = nt, t[4] = ut, t[5] = _, t[6] = G, t[7] = st) : st = t[7];
802
- const k = st, xt = J - k.left - k.right, St = A - k.top - k.bottom;
803
- let yt;
804
- if (t[8] !== l || t[9] !== Q) {
805
- const f = /* @__PURE__ */ new Set(), g = l.map((qt, Qt) => {
806
- const P = Q ? `${qt.label}` : `${Qt}`;
807
- return f.add(P), {
808
- ...qt,
809
- id: P
798
+ const jt = He(h, r), [z, y] = _t(void 0), [Ft, Tt] = _t(void 0), [xt, Ut] = _t(void 0), [tt, Pt] = _t(void 0), Y = l ? Yt + 25 : Yt;
799
+ let et;
800
+ t[3] !== _ || t[4] !== D || t[5] !== F || t[6] !== Y ? (et = {
801
+ top: Y,
802
+ bottom: _,
803
+ left: D,
804
+ right: F
805
+ }, t[3] = _, t[4] = D, t[5] = F, t[6] = Y, t[7] = et) : et = t[7];
806
+ const M = et, bt = G - M.left - M.right, Lt = O - M.top - M.bottom;
807
+ let mt;
808
+ if (t[8] !== s || t[9] !== q) {
809
+ const g = /* @__PURE__ */ new Set(), w = s.map((Gt, Jt) => {
810
+ const Zt = q ? `${Gt.label}` : `${Jt}`;
811
+ return g.add(Zt), {
812
+ ...Gt,
813
+ id: Zt
810
814
  };
811
- }), Nt = Q ? Q.filter((qt) => !f.has(qt)) : [];
812
- yt = [...g, ...Nt.map(ns)], t[8] = l, t[9] = Q, t[10] = yt;
815
+ }), Et = q ? q.filter((Gt) => !g.has(Gt)) : [];
816
+ mt = [...w, ...Et.map(rl)], t[8] = s, t[9] = q, t[10] = mt;
813
817
  } else
814
- yt = t[10];
815
- const bt = yt;
816
- let vt;
817
- t[11] !== bt || t[12] !== Q ? (vt = Q ?? bt.map(as), t[11] = bt, t[12] = Q, t[13] = vt) : vt = t[13];
818
- const Bt = vt;
819
- let Dt, tt, S, I, It, wt, ct, mt, ht, q, Ot, Mt, U, kt;
820
- if (t[14] !== x || t[15] !== s || t[16] !== X || t[17] !== Bt || t[18] !== Tt || t[19] !== p?.graphObjectValues || t[20] !== p?.xAxis?.gridLines || t[21] !== p?.xAxis?.labels || t[22] !== p?.xAxis?.title || t[23] !== p?.yAxis?.axis || t[24] !== p?.yAxis?.labels || t[25] !== R || t[26] !== E || t[27] !== l || t[28] !== bt || t[29] !== c || t[30] !== at || t[31] !== St || t[32] !== xt || t[33] !== A || t[34] !== Pt || t[35] !== K || t[36] !== V || t[37] !== k.bottom || t[38] !== k.left || t[39] !== k.top || t[40] !== F || t[41] !== B || t[42] !== Z || t[43] !== T || t[44] !== L || t[45] !== Yt || t[46] !== m || t[47] !== dt || t[48] !== zt || t[49] !== D || t[50] !== Jt || t[51] !== Xt || t[52] !== it || t[53] !== pt || t[54] !== C || t[55] !== lt || t[56] !== Ft || t[57] !== Ct || t[58] !== d?.graphObjectValues || t[59] !== d?.xAxis?.gridLines || t[60] !== d?.xAxis?.labels || t[61] !== d?.xAxis?.title || t[62] !== d?.yAxis?.axis || t[63] !== d?.yAxis?.labels || t[64] !== Ut || t[65] !== Ht || t[66] !== Et || t[67] !== W || t[68] !== a || t[69] !== J) {
821
- const f = Pe().domain([T, B]).range([0, xt]).nice(), g = ke().domain(Bt).range([0, Z ? Math.max(St, Z * Bt.length) : F ? Math.min(St, F * Bt.length) : St]).paddingInner(Tt), Nt = f.ticks(m);
822
- tt = _t.svg, ht = u, q = `${J}px`, Ot = `${A}px`, Mt = `0 0 ${J} ${A}`, U = "ltr", It = `translate(${k.left},${k.top})`, wt = Ft ? /* @__PURE__ */ i.jsx(Ue, { values: Nt.filter(ls), x: Nt.filter(ss).map((n) => f(n)), y1: 0 - Ht, y2: St + k.bottom, styles: {
818
+ mt = t[10];
819
+ const ht = mt;
820
+ let ft;
821
+ t[11] !== ht || t[12] !== q ? (ft = q ?? ht.map(nl), t[11] = ht, t[12] = q, t[13] = ft) : ft = t[13];
822
+ const St = ft;
823
+ let Vt, J, j, I, zt, pt, ot, rt, ct, E, vt, wt, K, gt;
824
+ if (t[14] !== x || t[15] !== l || t[16] !== H || t[17] !== St || t[18] !== Nt || t[19] !== b?.graphObjectValues || t[20] !== b?.xAxis?.gridLines || t[21] !== b?.xAxis?.labels || t[22] !== b?.xAxis?.title || t[23] !== b?.yAxis?.axis || t[24] !== b?.yAxis?.labels || t[25] !== X || t[26] !== C || t[27] !== s || t[28] !== ht || t[29] !== c || t[30] !== at || t[31] !== Lt || t[32] !== bt || t[33] !== O || t[34] !== Ct || t[35] !== R || t[36] !== jt || t[37] !== yt || t[38] !== M.bottom || t[39] !== M.left || t[40] !== M.top || t[41] !== S || t[42] !== T || t[43] !== U || t[44] !== N || t[45] !== Ft || t[46] !== Wt || t[47] !== m || t[48] !== nt || t[49] !== kt || t[50] !== B || t[51] !== Kt || t[52] !== Xt || t[53] !== Z || t[54] !== ut || t[55] !== k || t[56] !== st || t[57] !== Bt || t[58] !== $t || t[59] !== d?.graphObjectValues || t[60] !== d?.xAxis?.gridLines || t[61] !== d?.xAxis?.labels || t[62] !== d?.xAxis?.title || t[63] !== d?.yAxis?.axis || t[64] !== d?.yAxis?.labels || t[65] !== Rt || t[66] !== Yt || t[67] !== qt || t[68] !== P || t[69] !== a || t[70] !== G) {
825
+ const g = We().domain([N, T]).range([0, bt]).nice(), w = Le().domain(St).range([0, U ? Math.max(Lt, U * St.length) : S ? Math.min(Lt, S * St.length) : Lt]).paddingInner(Nt), Et = g.ticks(m);
826
+ J = ee.svg, ct = h, E = `${G}px`, vt = `${O}px`, wt = `0 0 ${G} ${O}`, K = "ltr", zt = `translate(${M.left},${M.top})`, pt = Bt ? /* @__PURE__ */ i.jsx(Ke, { values: Et.filter(ol), x: Et.filter(al).map((o) => g(o)), y1: 0 - Yt, y2: Lt + M.bottom, styles: {
823
827
  gridLines: d?.xAxis?.gridLines,
824
828
  labels: d?.xAxis?.labels
825
829
  }, classNames: {
826
- gridLines: p?.xAxis?.gridLines,
827
- labels: p?.xAxis?.labels
828
- }, suffix: Ut, prefix: Jt, labelType: "secondary", showGridLines: !0, precision: D }) : null;
829
- const qt = xt / 2, Qt = 0 - k.top + 15, P = d?.xAxis?.title, N = p?.xAxis?.title;
830
- t[84] !== s || t[85] !== qt || t[86] !== Qt || t[87] !== P || t[88] !== N ? (ct = /* @__PURE__ */ i.jsx(Se, { x: qt, y: Qt, style: P, className: N, text: s }), t[84] = s, t[85] = qt, t[86] = Qt, t[87] = P, t[88] = N, t[89] = ct) : ct = t[89], t[90] !== E ? (mt = E.filter(is).map(es), t[90] = E, t[91] = mt) : mt = t[91], Dt = He, kt = bt.map((n) => ee(g(n.id)) ? null : /* @__PURE__ */ i.jsxs(_t.g, { className: "undp-viz-g-with-hover", variants: {
830
+ gridLines: b?.xAxis?.gridLines,
831
+ labels: b?.xAxis?.labels
832
+ }, suffix: Rt, prefix: Kt, labelType: "secondary", showGridLines: !0, precision: B, locale: yt }) : null;
833
+ const Gt = bt / 2, Jt = 0 - M.top + 15, Zt = d?.xAxis?.title, it = b?.xAxis?.title;
834
+ t[85] !== l || t[86] !== Gt || t[87] !== Jt || t[88] !== Zt || t[89] !== it ? (ot = /* @__PURE__ */ i.jsx(Fe, { x: Gt, y: Jt, style: Zt, className: it, text: l }), t[85] = l, t[86] = Gt, t[87] = Jt, t[88] = Zt, t[89] = it, t[90] = ot) : ot = t[90], t[91] !== C ? (rt = C.filter(sl).map(ll), t[91] = C, t[92] = rt) : rt = t[92], Vt = Xe, gt = ht.map((o) => le(w(o.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", variants: {
831
835
  initial: {
832
- opacity: C ? n.color && X[R.indexOf(n.color)] === C ? 1 : at : K.length !== 0 ? K.indexOf(n.label) !== -1 ? 0.85 : at : 0.85
836
+ opacity: k ? o.color && H[X.indexOf(o.color)] === k ? 1 : at : R.length !== 0 ? R.indexOf(o.label) !== -1 ? 0.85 : at : 0.85
833
837
  },
834
838
  whileInView: {
835
- opacity: C ? n.color && X[R.indexOf(n.color)] === C ? 1 : at : K.length !== 0 ? K.indexOf(n.label) !== -1 ? 0.85 : at : 0.85,
839
+ opacity: k ? o.color && H[X.indexOf(o.color)] === k ? 1 : at : R.length !== 0 ? R.indexOf(o.label) !== -1 ? 0.85 : at : 0.85,
836
840
  transition: {
837
841
  duration: x.duration
838
842
  }
839
843
  }
840
- }, initial: "initial", animate: V ? "whileInView" : "initial", exit: {
844
+ }, initial: "initial", animate: jt ? "whileInView" : "initial", exit: {
841
845
  opacity: 0,
842
846
  transition: {
843
847
  duration: x.duration
844
848
  }
845
- }, onMouseEnter: (H) => {
846
- y(n), Wt(H.clientY), Rt(H.clientX), zt?.(n);
849
+ }, onMouseEnter: (lt) => {
850
+ y(o), Pt(lt.clientY), Ut(lt.clientX), kt?.(o);
847
851
  }, onClick: () => {
848
- (dt || c) && (Ne(L, n) && it ? (Gt(void 0), dt?.(void 0)) : (Gt(n), dt?.(n)));
849
- }, onMouseMove: (H) => {
850
- y(n), Wt(H.clientY), Rt(H.clientX);
852
+ (nt || c) && (Te(Ft, o) && Z ? (Tt(void 0), nt?.(void 0)) : (Tt(o), nt?.(o)));
853
+ }, onMouseMove: (lt) => {
854
+ y(o), Pt(lt.clientY), Ut(lt.clientX);
851
855
  }, onMouseLeave: () => {
852
- y(void 0), Rt(void 0), Wt(void 0), zt?.(void 0);
856
+ y(void 0), Ut(void 0), Pt(void 0), kt?.(void 0);
853
857
  }, children: [
854
- Et && /* @__PURE__ */ i.jsx(_t.rect, { height: g.bandwidth(), variants: {
858
+ qt && /* @__PURE__ */ i.jsx(ee.rect, { height: w.bandwidth(), variants: {
855
859
  initial: {
856
- width: xt,
860
+ width: bt,
857
861
  x: 0,
858
- y: g(`${n.id}`),
859
- fill: Et
862
+ y: w(`${o.id}`),
863
+ fill: qt
860
864
  },
861
865
  whileInView: {
862
- width: xt,
866
+ width: bt,
863
867
  x: 0,
864
- y: g(`${n.id}`),
865
- fill: Et
868
+ y: w(`${o.id}`),
869
+ fill: qt
866
870
  }
867
- }, initial: "initial", animate: V ? "whileInView" : "initial", exit: {
871
+ }, initial: "initial", animate: jt ? "whileInView" : "initial", exit: {
868
872
  opacity: 0,
869
873
  transition: {
870
874
  duration: x.duration
871
875
  }
872
876
  } }),
873
- n.size ? /* @__PURE__ */ i.jsx(_t.rect, { variants: {
877
+ o.size ? /* @__PURE__ */ i.jsx(ee.rect, { variants: {
874
878
  initial: {
875
879
  width: 0,
876
- x: f(0),
877
- y: g(`${n.id}`),
878
- fill: l.filter(ts).length === 0 ? X[0] : n.color ? X[R.indexOf(n.color)] : pe.gray
880
+ x: g(0),
881
+ y: w(`${o.id}`),
882
+ fill: s.filter(il).length === 0 ? H[0] : o.color ? H[X.indexOf(o.color)] : ye.gray
879
883
  },
880
884
  whileInView: {
881
- width: n.size >= 0 ? f(n.size) - f(0) : f(0) - f(n.size),
882
- x: n.size >= 0 ? f(0) : f(n.size),
883
- y: g(`${n.id}`),
884
- fill: l.filter(_i).length === 0 ? X[0] : n.color ? X[R.indexOf(n.color)] : pe.gray,
885
+ width: o.size >= 0 ? g(o.size) - g(0) : g(0) - g(o.size),
886
+ x: o.size >= 0 ? g(0) : g(o.size),
887
+ y: w(`${o.id}`),
888
+ fill: s.filter(el).length === 0 ? H[0] : o.color ? H[X.indexOf(o.color)] : ye.gray,
885
889
  transition: {
886
890
  duration: x.duration
887
891
  }
888
892
  }
889
- }, initial: "initial", animate: V ? "whileInView" : "initial", exit: {
893
+ }, initial: "initial", animate: jt ? "whileInView" : "initial", exit: {
890
894
  width: 0,
891
- x: f(0),
895
+ x: g(0),
892
896
  transition: {
893
897
  duration: x.duration
894
898
  }
895
- }, height: g.bandwidth() }) : null,
896
- lt ? /* @__PURE__ */ i.jsx(qe, { value: `${n.label}`.length < W ? `${n.label}` : `${`${n.label}`.substring(0, W)}...`, y: g(n.id) || 0, x: (n.size || 0) < 0 ? f(0) : 0 - k.left, width: (n.size || 0) < 0 ? J - f(0) : f(0) + k.left, height: g.bandwidth(), alignment: n.size && n.size < 0 ? "left" : "right", style: d?.yAxis?.labels, className: p?.yAxis?.labels, animate: x, isInView: V }) : null,
897
- Ct ? /* @__PURE__ */ i.jsx(_t.text, { style: {
898
- textAnchor: n.size && n.size < 0 ? "end" : "start",
899
+ }, height: w.bandwidth() }) : null,
900
+ st ? /* @__PURE__ */ i.jsx(Je, { value: `${o.label}`.length < P ? `${o.label}` : `${`${o.label}`.substring(0, P)}...`, y: w(o.id) || 0, x: (o.size || 0) < 0 ? g(0) : 0 - M.left, width: (o.size || 0) < 0 ? G - g(0) : g(0) + M.left, height: w.bandwidth(), alignment: o.size && o.size < 0 ? "left" : "right", style: d?.yAxis?.labels, className: b?.yAxis?.labels, animate: x, isInView: jt }) : null,
901
+ $t ? /* @__PURE__ */ i.jsx(ee.text, { style: {
902
+ textAnchor: o.size && o.size < 0 ? "end" : "start",
899
903
  ...d?.graphObjectValues || {}
900
- }, className: Me("graph-value text-sm", !a && X.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", p?.graphObjectValues), dx: n.size && n.size < 0 ? -5 : 5, dy: "0.33em", variants: {
904
+ }, className: Ce("graph-value text-sm", !a && H.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", b?.graphObjectValues), dx: o.size && o.size < 0 ? -5 : 5, dy: "0.33em", variants: {
901
905
  initial: {
902
- x: f(0),
903
- y: g(`${n.id}`) + g.bandwidth() / 2,
906
+ x: g(0),
907
+ y: w(`${o.id}`) + w.bandwidth() / 2,
904
908
  opacity: 0,
905
- fill: a || (l.filter(Zi).length === 0 ? X[0] : n.color ? X[R.indexOf(n.color)] : pe.gray)
909
+ fill: a || (s.filter(tl).length === 0 ? H[0] : o.color ? H[X.indexOf(o.color)] : ye.gray)
906
910
  },
907
911
  whileInView: {
908
- x: n.size ? f(n.size) : f(0),
912
+ x: o.size ? g(o.size) : g(0),
909
913
  opacity: 1,
910
- y: g(`${n.id}`) + g.bandwidth() / 2,
911
- fill: a || (l.filter(Qi).length === 0 ? X[0] : n.color ? X[R.indexOf(n.color)] : pe.gray),
914
+ y: w(`${o.id}`) + w.bandwidth() / 2,
915
+ fill: a || (s.filter(_i).length === 0 ? H[0] : o.color ? H[X.indexOf(o.color)] : ye.gray),
912
916
  transition: {
913
917
  duration: x.duration
914
918
  }
915
919
  }
916
- }, initial: "initial", animate: V ? "whileInView" : "initial", exit: {
920
+ }, initial: "initial", animate: jt ? "whileInView" : "initial", exit: {
917
921
  opacity: 0,
918
922
  transition: {
919
923
  duration: x.duration
920
924
  }
921
- }, children: be(n.size, Yt, D, Jt, Ut) }) : null
922
- ] }, n.label));
923
- const z = p?.yAxis?.axis;
924
- let j;
925
- t[92] !== z ? (j = {
926
- axis: z
927
- }, t[92] = z, t[93] = j) : j = t[93];
928
- const h = d?.yAxis?.axis;
929
- let w;
930
- t[94] !== h ? (w = {
931
- axis: h
932
- }, t[94] = h, t[95] = w) : w = t[95], S = /* @__PURE__ */ i.jsx(Te, { hideAxisLine: Pt, x1: f(T < 0 ? 0 : T), x2: f(T < 0 ? 0 : T), y1: -2.5, y2: St + k.bottom, classNames: j, styles: w }), I = Xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Xt.map((n, H) => /* @__PURE__ */ i.jsx(Je, { text: n.text, color: n.color, x: f(n.value), y1: 0 - k.top, y2: St + k.bottom, textSide: f(n.value) > xt * 0.75 || pt ? "left" : "right", classNames: n.classNames, styles: n.styles, animate: x, isInView: V }, H)) }) : null, t[14] = x, t[15] = s, t[16] = X, t[17] = Bt, t[18] = Tt, t[19] = p?.graphObjectValues, t[20] = p?.xAxis?.gridLines, t[21] = p?.xAxis?.labels, t[22] = p?.xAxis?.title, t[23] = p?.yAxis?.axis, t[24] = p?.yAxis?.labels, t[25] = R, t[26] = E, t[27] = l, t[28] = bt, t[29] = c, t[30] = at, t[31] = St, t[32] = xt, t[33] = A, t[34] = Pt, t[35] = K, t[36] = V, t[37] = k.bottom, t[38] = k.left, t[39] = k.top, t[40] = F, t[41] = B, t[42] = Z, t[43] = T, t[44] = L, t[45] = Yt, t[46] = m, t[47] = dt, t[48] = zt, t[49] = D, t[50] = Jt, t[51] = Xt, t[52] = it, t[53] = pt, t[54] = C, t[55] = lt, t[56] = Ft, t[57] = Ct, t[58] = d?.graphObjectValues, t[59] = d?.xAxis?.gridLines, t[60] = d?.xAxis?.labels, t[61] = d?.xAxis?.title, t[62] = d?.yAxis?.axis, t[63] = d?.yAxis?.labels, t[64] = Ut, t[65] = Ht, t[66] = Et, t[67] = W, t[68] = a, t[69] = J, t[70] = Dt, t[71] = tt, t[72] = S, t[73] = I, t[74] = It, t[75] = wt, t[76] = ct, t[77] = mt, t[78] = ht, t[79] = q, t[80] = Ot, t[81] = Mt, t[82] = U, t[83] = kt;
925
+ }, children: we(o.size, Wt, B, Kt, Rt, yt) }) : null
926
+ ] }, o.label));
927
+ const f = b?.yAxis?.axis;
928
+ let V;
929
+ t[93] !== f ? (V = {
930
+ axis: f
931
+ }, t[93] = f, t[94] = V) : V = t[94];
932
+ const u = d?.yAxis?.axis;
933
+ let L;
934
+ t[95] !== u ? (L = {
935
+ axis: u
936
+ }, t[95] = u, t[96] = L) : L = t[96], j = /* @__PURE__ */ i.jsx(Be, { hideAxisLine: Ct, x1: g(N < 0 ? 0 : N), x2: g(N < 0 ? 0 : N), y1: -2.5, y2: Lt + M.bottom, classNames: V, styles: L }), I = Xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Xt.map((o, lt) => /* @__PURE__ */ i.jsx(Qe, { text: o.text, color: o.color, x: g(o.value), y1: 0 - M.top, y2: Lt + M.bottom, textSide: g(o.value) > bt * 0.75 || ut ? "left" : "right", classNames: o.classNames, styles: o.styles, animate: x, isInView: jt }, lt)) }) : null, t[14] = x, t[15] = l, t[16] = H, t[17] = St, t[18] = Nt, t[19] = b?.graphObjectValues, t[20] = b?.xAxis?.gridLines, t[21] = b?.xAxis?.labels, t[22] = b?.xAxis?.title, t[23] = b?.yAxis?.axis, t[24] = b?.yAxis?.labels, t[25] = X, t[26] = C, t[27] = s, t[28] = ht, t[29] = c, t[30] = at, t[31] = Lt, t[32] = bt, t[33] = O, t[34] = Ct, t[35] = R, t[36] = jt, t[37] = yt, t[38] = M.bottom, t[39] = M.left, t[40] = M.top, t[41] = S, t[42] = T, t[43] = U, t[44] = N, t[45] = Ft, t[46] = Wt, t[47] = m, t[48] = nt, t[49] = kt, t[50] = B, t[51] = Kt, t[52] = Xt, t[53] = Z, t[54] = ut, t[55] = k, t[56] = st, t[57] = Bt, t[58] = $t, t[59] = d?.graphObjectValues, t[60] = d?.xAxis?.gridLines, t[61] = d?.xAxis?.labels, t[62] = d?.xAxis?.title, t[63] = d?.yAxis?.axis, t[64] = d?.yAxis?.labels, t[65] = Rt, t[66] = Yt, t[67] = qt, t[68] = P, t[69] = a, t[70] = G, t[71] = Vt, t[72] = J, t[73] = j, t[74] = I, t[75] = zt, t[76] = pt, t[77] = ot, t[78] = rt, t[79] = ct, t[80] = E, t[81] = vt, t[82] = wt, t[83] = K, t[84] = gt;
933
937
  } else
934
- Dt = t[70], tt = t[71], S = t[72], I = t[73], It = t[74], wt = t[75], ct = t[76], mt = t[77], ht = t[78], q = t[79], Ot = t[80], Mt = t[81], U = t[82], kt = t[83];
935
- let v;
936
- t[96] !== Dt || t[97] !== S || t[98] !== I || t[99] !== kt ? (v = /* @__PURE__ */ i.jsxs(Dt, { children: [
937
- kt,
938
- S,
939
- I
940
- ] }), t[96] = Dt, t[97] = S, t[98] = I, t[99] = kt, t[100] = v) : v = t[100];
938
+ Vt = t[71], J = t[72], j = t[73], I = t[74], zt = t[75], pt = t[76], ot = t[77], rt = t[78], ct = t[79], E = t[80], vt = t[81], wt = t[82], K = t[83], gt = t[84];
941
939
  let $;
942
- t[101] !== E ? ($ = E.filter(Ki).map(Ji), t[101] = E, t[102] = $) : $ = t[102];
943
- let O;
944
- t[103] !== It || t[104] !== wt || t[105] !== ct || t[106] !== mt || t[107] !== v || t[108] !== $ ? (O = /* @__PURE__ */ i.jsxs("g", { transform: It, children: [
945
- wt,
946
- ct,
947
- mt,
948
- v,
949
- $
950
- ] }), t[103] = It, t[104] = wt, t[105] = ct, t[106] = mt, t[107] = v, t[108] = $, t[109] = O) : O = t[109];
951
- let b;
952
- t[110] !== tt || t[111] !== ht || t[112] !== q || t[113] !== Ot || t[114] !== Mt || t[115] !== U || t[116] !== O ? (b = /* @__PURE__ */ i.jsx(tt, { ref: ht, width: q, height: Ot, viewBox: Mt, direction: U, children: O }), t[110] = tt, t[111] = ht, t[112] = q, t[113] = Ot, t[114] = Mt, t[115] = U, t[116] = O, t[117] = b) : b = t[117];
940
+ t[97] !== Vt || t[98] !== j || t[99] !== I || t[100] !== gt ? ($ = /* @__PURE__ */ i.jsxs(Vt, { children: [
941
+ gt,
942
+ j,
943
+ I
944
+ ] }), t[97] = Vt, t[98] = j, t[99] = I, t[100] = gt, t[101] = $) : $ = t[101];
945
+ let Ht;
946
+ t[102] !== C ? (Ht = C.filter(Zi).map(Qi), t[102] = C, t[103] = Ht) : Ht = t[103];
947
+ let n;
948
+ t[104] !== zt || t[105] !== pt || t[106] !== ot || t[107] !== rt || t[108] !== $ || t[109] !== Ht ? (n = /* @__PURE__ */ i.jsxs("g", { transform: zt, children: [
949
+ pt,
950
+ ot,
951
+ rt,
952
+ $,
953
+ Ht
954
+ ] }), t[104] = zt, t[105] = pt, t[106] = ot, t[107] = rt, t[108] = $, t[109] = Ht, t[110] = n) : n = t[110];
955
+ let v;
956
+ t[111] !== J || t[112] !== ct || t[113] !== E || t[114] !== vt || t[115] !== wt || t[116] !== K || t[117] !== n ? (v = /* @__PURE__ */ i.jsx(J, { ref: ct, width: E, height: vt, viewBox: wt, direction: K, children: n }), t[111] = J, t[112] = ct, t[113] = E, t[114] = vt, t[115] = wt, t[116] = K, t[117] = n, t[118] = v) : v = t[118];
957
+ let Dt;
958
+ t[119] !== b?.tooltip || t[120] !== xt || t[121] !== tt || t[122] !== z || t[123] !== d?.tooltip || t[124] !== Mt ? (Dt = z && Mt && xt && tt ? /* @__PURE__ */ i.jsx(Se, { data: z, body: Mt, xPos: xt, yPos: tt, backgroundStyle: d?.tooltip, className: b?.tooltip }) : null, t[119] = b?.tooltip, t[120] = xt, t[121] = tt, t[122] = z, t[123] = d?.tooltip, t[124] = Mt, t[125] = Dt) : Dt = t[125];
953
959
  let At;
954
- t[118] !== p?.tooltip || t[119] !== ot || t[120] !== rt || t[121] !== gt || t[122] !== d?.tooltip || t[123] !== Vt ? (At = gt && Vt && ot && rt ? /* @__PURE__ */ i.jsx(je, { data: gt, body: Vt, xPos: ot, yPos: rt, backgroundStyle: d?.tooltip, className: p?.tooltip }) : null, t[118] = p?.tooltip, t[119] = ot, t[120] = rt, t[121] = gt, t[122] = d?.tooltip, t[123] = Vt, t[124] = At) : At = t[124];
955
- let $t;
956
- t[125] !== p?.modal || t[126] !== c || t[127] !== L ? ($t = c && L !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: c, data: L, setData: Gt, className: p?.modal }) : null, t[125] = p?.modal, t[126] = c, t[127] = L, t[128] = $t) : $t = t[128];
957
- let M;
958
- return t[129] !== b || t[130] !== At || t[131] !== $t ? (M = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
959
- b,
960
- At,
961
- $t
962
- ] }), t[129] = b, t[130] = At, t[131] = $t, t[132] = M) : M = t[132], M;
960
+ t[126] !== b?.modal || t[127] !== c || t[128] !== Ft ? (At = c && Ft !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: c, data: Ft, setData: Tt, className: b?.modal }) : null, t[126] = b?.modal, t[127] = c, t[128] = Ft, t[129] = At) : At = t[129];
961
+ let A;
962
+ return t[130] !== v || t[131] !== Dt || t[132] !== At ? (A = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
963
+ v,
964
+ Dt,
965
+ At
966
+ ] }), t[130] = v, t[131] = Dt, t[132] = At, t[133] = A) : A = t[133], A;
963
967
  }
964
- function Ji(e) {
968
+ function Qi(e) {
965
969
  return e.layer;
966
970
  }
967
- function Ki(e) {
971
+ function Zi(e) {
968
972
  return e.position === "after";
969
973
  }
970
- function Qi(e) {
974
+ function _i(e) {
971
975
  return e.color;
972
976
  }
973
- function Zi(e) {
977
+ function tl(e) {
974
978
  return e.color;
975
979
  }
976
- function _i(e) {
980
+ function el(e) {
977
981
  return e.color;
978
982
  }
979
- function ts(e) {
983
+ function il(e) {
980
984
  return e.color;
981
985
  }
982
- function es(e) {
986
+ function ll(e) {
983
987
  return e.layer;
984
988
  }
985
- function is(e) {
989
+ function sl(e) {
986
990
  return e.position === "before";
987
991
  }
988
- function ss(e) {
992
+ function al(e) {
989
993
  return e !== 0;
990
994
  }
991
- function ls(e) {
995
+ function ol(e) {
992
996
  return e !== 0;
993
997
  }
994
- function as(e) {
998
+ function nl(e) {
995
999
  return `${e.id}`;
996
1000
  }
997
- function ns(e) {
1001
+ function rl(e) {
998
1002
  return {
999
1003
  id: e,
1000
1004
  label: e,
@@ -1002,116 +1006,117 @@ function ns(e) {
1002
1006
  size: null
1003
1007
  };
1004
1008
  }
1005
- function os(e) {
1006
- const t = we.c(142), {
1007
- leftMargin: l,
1008
- rightMargin: X,
1009
- topMargin: Ut,
1010
- bottomMargin: Jt,
1011
- data: Tt,
1012
- width: Ct,
1013
- height: Ft,
1014
- barColor: W,
1015
- suffix: J,
1016
- prefix: A,
1017
- barPadding: R,
1018
- showLabels: ft,
1019
- showValues: et,
1020
- showTicks: Lt,
1021
- colorDomain: Y,
1022
- truncateBy: lt,
1023
- tooltip: Vt,
1024
- onSeriesMouseOver: zt,
1009
+ function cl(e) {
1010
+ const t = $e.c(144), {
1011
+ leftMargin: s,
1012
+ rightMargin: H,
1013
+ topMargin: Rt,
1014
+ bottomMargin: Kt,
1015
+ data: Nt,
1016
+ width: $t,
1017
+ height: Bt,
1018
+ barColor: P,
1019
+ suffix: G,
1020
+ prefix: O,
1021
+ barPadding: X,
1022
+ showLabels: dt,
1023
+ showValues: Q,
1024
+ showTicks: Ot,
1025
+ colorDomain: W,
1026
+ truncateBy: st,
1027
+ tooltip: Mt,
1028
+ onSeriesMouseOver: kt,
1025
1029
  refValues: Xt,
1026
- selectedColor: C,
1027
- maxValue: K,
1028
- minValue: B,
1029
- highlightedDataPoints: T,
1030
- onSeriesMouseClick: dt,
1031
- labelOrder: Q,
1032
- maxBarThickness: pt,
1033
- minBarThickness: F,
1034
- resetSelectionOnDoubleClick: Z,
1035
- detailsOnClick: it,
1030
+ selectedColor: k,
1031
+ maxValue: R,
1032
+ minValue: T,
1033
+ highlightedDataPoints: N,
1034
+ onSeriesMouseClick: nt,
1035
+ labelOrder: q,
1036
+ maxBarThickness: ut,
1037
+ minBarThickness: S,
1038
+ resetSelectionOnDoubleClick: U,
1039
+ detailsOnClick: Z,
1036
1040
  barAxisTitle: c,
1037
- valueColor: s,
1041
+ valueColor: l,
1038
1042
  noOfTicks: a,
1039
1043
  styles: m,
1040
1044
  classNames: d,
1041
- dimmedOpacity: p,
1045
+ dimmedOpacity: b,
1042
1046
  animate: x,
1043
1047
  precision: at,
1044
- customLayers: D,
1045
- naLabel: E,
1046
- trackColor: Yt,
1047
- hideAxisLine: Et
1048
- } = e, Pt = l === void 0 ? 20 : l, Ht = X === void 0 ? 20 : X, nt = Ut === void 0 ? 20 : Ut, ut = Jt === void 0 ? 25 : Jt, _ = ve(null);
1049
- let u;
1050
- t[0] !== x.amount || t[1] !== x.once ? (u = {
1048
+ customLayers: B,
1049
+ naLabel: C,
1050
+ trackColor: Wt,
1051
+ hideAxisLine: qt,
1052
+ locale: Ct
1053
+ } = e, yt = s === void 0 ? 20 : s, Yt = H === void 0 ? 20 : H, _ = Rt === void 0 ? 20 : Rt, D = Kt === void 0 ? 25 : Kt, F = Ae(null);
1054
+ let h;
1055
+ t[0] !== x.amount || t[1] !== x.once ? (h = {
1051
1056
  once: x.once,
1052
1057
  amount: x.amount
1053
- }, t[0] = x.amount, t[1] = x.once, t[2] = u) : u = t[2];
1054
- const r = Fe(_, u), V = c ? Pt + 30 : Pt;
1055
- let gt;
1056
- t[3] !== ut || t[4] !== Ht || t[5] !== V || t[6] !== nt ? (gt = {
1057
- top: nt,
1058
- bottom: ut,
1059
- left: V,
1060
- right: Ht
1061
- }, t[3] = ut, t[4] = Ht, t[5] = V, t[6] = nt, t[7] = gt) : gt = t[7];
1062
- const y = gt, [L, Gt] = Zt(void 0), [ot, Rt] = Zt(void 0), [rt, Wt] = Zt(void 0), [G, st] = Zt(void 0), k = Ct - y.left - y.right, xt = Ft - y.top - y.bottom;
1063
- let St;
1064
- if (t[8] !== Tt || t[9] !== Q) {
1065
- const M = /* @__PURE__ */ new Set(), f = Tt.map((Nt, qt) => {
1066
- const Qt = Q ? `${Nt.label}` : `${qt}`;
1067
- return M.add(Qt), {
1068
- ...Nt,
1069
- id: Qt
1058
+ }, t[0] = x.amount, t[1] = x.once, t[2] = h) : h = t[2];
1059
+ const r = He(F, h), jt = c ? yt + 30 : yt;
1060
+ let z;
1061
+ t[3] !== D || t[4] !== Yt || t[5] !== jt || t[6] !== _ ? (z = {
1062
+ top: _,
1063
+ bottom: D,
1064
+ left: jt,
1065
+ right: Yt
1066
+ }, t[3] = D, t[4] = Yt, t[5] = jt, t[6] = _, t[7] = z) : z = t[7];
1067
+ const y = z, [Ft, Tt] = _t(void 0), [xt, Ut] = _t(void 0), [tt, Pt] = _t(void 0), [Y, et] = _t(void 0), M = $t - y.left - y.right, bt = Bt - y.top - y.bottom;
1068
+ let Lt;
1069
+ if (t[8] !== Nt || t[9] !== q) {
1070
+ const A = /* @__PURE__ */ new Set(), g = Nt.map((Et, Gt) => {
1071
+ const Jt = q ? `${Et.label}` : `${Gt}`;
1072
+ return A.add(Jt), {
1073
+ ...Et,
1074
+ id: Jt
1070
1075
  };
1071
- }), g = Q ? Q.filter((Nt) => !M.has(Nt)) : [];
1072
- St = [...f, ...g.map(bs)], t[8] = Tt, t[9] = Q, t[10] = St;
1076
+ }), w = q ? q.filter((Et) => !A.has(Et)) : [];
1077
+ Lt = [...g, ...w.map(wl)], t[8] = Nt, t[9] = q, t[10] = Lt;
1073
1078
  } else
1074
- St = t[10];
1075
- const yt = St;
1076
- let bt;
1077
- t[11] !== yt || t[12] !== Q ? (bt = Q ?? yt.map(ys), t[11] = yt, t[12] = Q, t[13] = bt) : bt = t[13];
1078
- const vt = bt;
1079
- let Bt, Dt, tt, S, I, It, wt, ct, mt, ht, q, Ot, Mt, U;
1080
- if (t[14] !== x || t[15] !== c || t[16] !== W || t[17] !== vt || t[18] !== R || t[19] !== d?.graphObjectValues || t[20] !== d?.xAxis?.axis || t[21] !== d?.xAxis?.labels || t[22] !== d?.yAxis?.gridLines || t[23] !== d?.yAxis?.labels || t[24] !== d?.yAxis?.title || t[25] !== Y || t[26] !== D || t[27] !== Tt || t[28] !== yt || t[29] !== it || t[30] !== p || t[31] !== xt || t[32] !== k || t[33] !== Ft || t[34] !== Et || t[35] !== T || t[36] !== r || t[37] !== Pt || t[38] !== y.bottom || t[39] !== y.left || t[40] !== y.right || t[41] !== y.top || t[42] !== pt || t[43] !== K || t[44] !== F || t[45] !== B || t[46] !== ot || t[47] !== E || t[48] !== a || t[49] !== dt || t[50] !== zt || t[51] !== at || t[52] !== A || t[53] !== Xt || t[54] !== Z || t[55] !== C || t[56] !== ft || t[57] !== Lt || t[58] !== et || t[59] !== m?.graphObjectValues || t[60] !== m?.xAxis?.axis || t[61] !== m?.xAxis?.labels || t[62] !== m?.yAxis?.gridLines || t[63] !== m?.yAxis?.labels || t[64] !== m?.yAxis?.title || t[65] !== J || t[66] !== Yt || t[67] !== lt || t[68] !== s || t[69] !== Ct) {
1081
- const M = Pe().domain([B, K]).range([xt, 0]).nice(), f = ke().domain(vt).range([0, F ? Math.max(k, F * vt.length) : pt ? Math.min(k, pt * vt.length) : k]).paddingInner(R), g = M.ticks(a);
1082
- Dt = _t.svg, mt = _, ht = `${Ct}px`, q = `${Ft}px`, Ot = `0 0 ${Ct} ${Ft}`, Mt = "ltr", S = `translate(${y.left},${y.top})`;
1083
- let Nt;
1084
- t[84] !== B || t[85] !== E || t[86] !== at || t[87] !== A || t[88] !== Lt || t[89] !== J ? (Nt = Lt ? be(B < 0 ? 0 : B, E, at, A, J) : void 0, t[84] = B, t[85] = E, t[86] = at, t[87] = A, t[88] = Lt, t[89] = J, t[90] = Nt) : Nt = t[90];
1085
- const qt = d?.xAxis?.axis, Qt = d?.yAxis?.labels;
1086
- let P;
1087
- t[91] !== qt || t[92] !== Qt ? (P = {
1088
- axis: qt,
1089
- label: Qt
1090
- }, t[91] = qt, t[92] = Qt, t[93] = P) : P = t[93];
1091
- const N = m?.xAxis?.axis, z = m?.yAxis?.labels;
1092
- let j;
1093
- t[94] !== N || t[95] !== z ? (j = {
1094
- axis: N,
1095
- label: z
1096
- }, t[94] = N, t[95] = z, t[96] = j) : j = t[96], I = /* @__PURE__ */ i.jsx(Te, { hideAxisLine: Et, y1: M(B < 0 ? 0 : B), y2: M(B < 0 ? 0 : B), x1: 0 - Pt, x2: k + y.right, label: Nt, labelPos: {
1097
- x: 0 - Pt,
1079
+ Lt = t[10];
1080
+ const mt = Lt;
1081
+ let ht;
1082
+ t[11] !== mt || t[12] !== q ? (ht = q ?? mt.map(vl), t[11] = mt, t[12] = q, t[13] = ht) : ht = t[13];
1083
+ const ft = ht;
1084
+ let St, Vt, J, j, I, zt, pt, ot, rt, ct, E, vt, wt, K;
1085
+ if (t[14] !== x || t[15] !== c || t[16] !== P || t[17] !== ft || t[18] !== X || t[19] !== d?.graphObjectValues || t[20] !== d?.xAxis?.axis || t[21] !== d?.xAxis?.labels || t[22] !== d?.yAxis?.gridLines || t[23] !== d?.yAxis?.labels || t[24] !== d?.yAxis?.title || t[25] !== W || t[26] !== B || t[27] !== Nt || t[28] !== mt || t[29] !== Z || t[30] !== b || t[31] !== bt || t[32] !== M || t[33] !== Bt || t[34] !== qt || t[35] !== N || t[36] !== r || t[37] !== yt || t[38] !== Ct || t[39] !== y.bottom || t[40] !== y.left || t[41] !== y.right || t[42] !== y.top || t[43] !== ut || t[44] !== R || t[45] !== S || t[46] !== T || t[47] !== xt || t[48] !== C || t[49] !== a || t[50] !== nt || t[51] !== kt || t[52] !== at || t[53] !== O || t[54] !== Xt || t[55] !== U || t[56] !== k || t[57] !== dt || t[58] !== Ot || t[59] !== Q || t[60] !== m?.graphObjectValues || t[61] !== m?.xAxis?.axis || t[62] !== m?.xAxis?.labels || t[63] !== m?.yAxis?.gridLines || t[64] !== m?.yAxis?.labels || t[65] !== m?.yAxis?.title || t[66] !== G || t[67] !== Wt || t[68] !== st || t[69] !== l || t[70] !== $t) {
1086
+ const A = We().domain([T, R]).range([bt, 0]).nice(), g = Le().domain(ft).range([0, S ? Math.max(M, S * ft.length) : ut ? Math.min(M, ut * ft.length) : M]).paddingInner(X), w = A.ticks(a);
1087
+ Vt = ee.svg, rt = F, ct = `${$t}px`, E = `${Bt}px`, vt = `0 0 ${$t} ${Bt}`, wt = "ltr", j = `translate(${y.left},${y.top})`;
1088
+ let Et;
1089
+ t[85] !== Ct || t[86] !== T || t[87] !== C || t[88] !== at || t[89] !== O || t[90] !== Ot || t[91] !== G ? (Et = Ot ? we(T < 0 ? 0 : T, C, at, O, G, Ct) : void 0, t[85] = Ct, t[86] = T, t[87] = C, t[88] = at, t[89] = O, t[90] = Ot, t[91] = G, t[92] = Et) : Et = t[92];
1090
+ const Gt = d?.xAxis?.axis, Jt = d?.yAxis?.labels;
1091
+ let Zt;
1092
+ t[93] !== Gt || t[94] !== Jt ? (Zt = {
1093
+ axis: Gt,
1094
+ label: Jt
1095
+ }, t[93] = Gt, t[94] = Jt, t[95] = Zt) : Zt = t[95];
1096
+ const it = m?.xAxis?.axis, f = m?.yAxis?.labels;
1097
+ let V;
1098
+ t[96] !== it || t[97] !== f ? (V = {
1099
+ axis: it,
1100
+ label: f
1101
+ }, t[96] = it, t[97] = f, t[98] = V) : V = t[98], I = /* @__PURE__ */ i.jsx(Be, { hideAxisLine: qt, y1: A(T < 0 ? 0 : T), y2: A(T < 0 ? 0 : T), x1: 0 - yt, x2: M + y.right, label: Et, labelPos: {
1102
+ x: 0 - yt,
1098
1103
  dx: 0,
1099
- dy: K < 0 ? "1em" : -5,
1100
- y: M(B < 0 ? 0 : B)
1101
- }, classNames: P, styles: j }), It = Lt ? /* @__PURE__ */ i.jsx(Qe, { values: g.filter(gs), y: g.filter(ps).map((o) => M(o)), x1: 0 - Pt, x2: k + y.right, styles: {
1104
+ dy: R < 0 ? "1em" : -5,
1105
+ y: A(T < 0 ? 0 : T)
1106
+ }, classNames: Zt, styles: V }), zt = Ot ? /* @__PURE__ */ i.jsx(_e, { values: w.filter(bl), y: w.filter(yl).map((p) => A(p)), x1: 0 - yt, x2: M + y.right, styles: {
1102
1107
  gridLines: m?.yAxis?.gridLines,
1103
1108
  labels: m?.yAxis?.labels
1104
1109
  }, classNames: {
1105
1110
  gridLines: d?.yAxis?.gridLines,
1106
1111
  labels: d?.yAxis?.labels
1107
- }, suffix: J, prefix: A, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: at }) : null;
1108
- const h = 0 - Pt - 15, w = xt / 2, n = m?.yAxis?.title, H = d?.yAxis?.title;
1109
- t[97] !== c || t[98] !== h || t[99] !== w || t[100] !== n || t[101] !== H ? (wt = /* @__PURE__ */ i.jsx(Se, { x: h, y: w, style: n, className: H, text: c, rotate90: !0 }), t[97] = c, t[98] = h, t[99] = w, t[100] = n, t[101] = H, t[102] = wt) : wt = t[102], t[103] !== D ? (ct = D.filter(fs).map(hs), t[103] = D, t[104] = ct) : ct = t[104], Bt = He, U = yt.map((o, ie) => ee(f(o.id)) ? null : /* @__PURE__ */ i.jsxs(_t.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: r ? "whileInView" : "initial", variants: {
1112
+ }, suffix: G, prefix: O, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: at, locale: Ct }) : null;
1113
+ const u = 0 - yt - 15, L = bt / 2, o = m?.yAxis?.title, lt = d?.yAxis?.title;
1114
+ t[99] !== c || t[100] !== u || t[101] !== L || t[102] !== o || t[103] !== lt ? (pt = /* @__PURE__ */ i.jsx(Fe, { x: u, y: L, style: o, className: lt, text: c, rotate90: !0 }), t[99] = c, t[100] = u, t[101] = L, t[102] = o, t[103] = lt, t[104] = pt) : pt = t[104], t[105] !== B ? (ot = B.filter(gl).map(pl), t[105] = B, t[106] = ot) : ot = t[106], St = Xe, K = mt.map((p, te) => le(g(p.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: r ? "whileInView" : "initial", variants: {
1110
1115
  initial: {
1111
- opacity: C ? o.color && W[Y.indexOf(o.color)] === C ? 1 : p : T.length !== 0 ? T.indexOf(o.label) !== -1 ? 0.85 : p : 0.85
1116
+ opacity: k ? p.color && P[W.indexOf(p.color)] === k ? 1 : b : N.length !== 0 ? N.indexOf(p.label) !== -1 ? 0.85 : b : 0.85
1112
1117
  },
1113
1118
  whileInView: {
1114
- opacity: C ? o.color && W[Y.indexOf(o.color)] === C ? 1 : p : T.length !== 0 ? T.indexOf(o.label) !== -1 ? 0.85 : p : 0.85,
1119
+ opacity: k ? p.color && P[W.indexOf(p.color)] === k ? 1 : b : N.length !== 0 ? N.indexOf(p.label) !== -1 ? 0.85 : b : 0.85,
1115
1120
  transition: {
1116
1121
  duration: x.duration
1117
1122
  }
@@ -1121,27 +1126,27 @@ function os(e) {
1121
1126
  transition: {
1122
1127
  duration: x.duration
1123
1128
  }
1124
- }, onMouseEnter: (le) => {
1125
- Gt(o), st(le.clientY), Wt(le.clientX), zt?.(o);
1129
+ }, onMouseEnter: (se) => {
1130
+ Tt(p), et(se.clientY), Pt(se.clientX), kt?.(p);
1126
1131
  }, onClick: () => {
1127
- (dt || it) && (Ne(ot, o) && Z ? (Rt(void 0), dt?.(void 0)) : (Rt(o), dt?.(o)));
1128
- }, onMouseMove: (le) => {
1129
- Gt(o), st(le.clientY), Wt(le.clientX);
1132
+ (nt || Z) && (Te(xt, p) && U ? (Ut(void 0), nt?.(void 0)) : (Ut(p), nt?.(p)));
1133
+ }, onMouseMove: (se) => {
1134
+ Tt(p), et(se.clientY), Pt(se.clientX);
1130
1135
  }, onMouseLeave: () => {
1131
- Gt(void 0), Wt(void 0), st(void 0), zt?.(void 0);
1136
+ Tt(void 0), Pt(void 0), et(void 0), kt?.(void 0);
1132
1137
  }, children: [
1133
- Yt && /* @__PURE__ */ i.jsx(_t.rect, { width: f.bandwidth(), variants: {
1138
+ Wt && /* @__PURE__ */ i.jsx(ee.rect, { width: g.bandwidth(), variants: {
1134
1139
  initial: {
1135
- height: xt,
1140
+ height: bt,
1136
1141
  y: 0,
1137
- x: f(`${o.id}`),
1138
- fill: Yt
1142
+ x: g(`${p.id}`),
1143
+ fill: Wt
1139
1144
  },
1140
1145
  whileInView: {
1141
- height: xt,
1146
+ height: bt,
1142
1147
  y: 0,
1143
- x: f(`${o.id}`),
1144
- fill: Yt
1148
+ x: g(`${p.id}`),
1149
+ fill: Wt
1145
1150
  }
1146
1151
  }, initial: "initial", animate: r ? "whileInView" : "initial", exit: {
1147
1152
  opacity: 0,
@@ -1149,44 +1154,44 @@ function os(e) {
1149
1154
  duration: x.duration
1150
1155
  }
1151
1156
  } }),
1152
- o.size ? /* @__PURE__ */ i.jsx(_t.rect, { width: f.bandwidth(), initial: "initial", animate: r ? "whileInView" : "initial", variants: {
1157
+ p.size ? /* @__PURE__ */ i.jsx(ee.rect, { width: g.bandwidth(), initial: "initial", animate: r ? "whileInView" : "initial", variants: {
1153
1158
  initial: {
1154
1159
  height: 0,
1155
- x: f(`${o.id}`),
1156
- y: M(0),
1157
- fill: Tt.filter(ms).length === 0 ? W[0] : o.color ? W[Y.indexOf(o.color)] : pe.gray
1160
+ x: g(`${p.id}`),
1161
+ y: A(0),
1162
+ fill: Nt.filter(fl).length === 0 ? P[0] : p.color ? P[W.indexOf(p.color)] : ye.gray
1158
1163
  },
1159
1164
  whileInView: {
1160
- height: o.size ? Math.abs(M(o.size) - M(0)) : 0,
1161
- y: o.size && o.size > 0 ? M(o.size) : M(0),
1162
- x: f(`${o.id}`),
1163
- fill: Tt.filter(xs).length === 0 ? W[0] : o.color ? W[Y.indexOf(o.color)] : pe.gray,
1165
+ height: p.size ? Math.abs(A(p.size) - A(0)) : 0,
1166
+ y: p.size && p.size > 0 ? A(p.size) : A(0),
1167
+ x: g(`${p.id}`),
1168
+ fill: Nt.filter(hl).length === 0 ? P[0] : p.color ? P[W.indexOf(p.color)] : ye.gray,
1164
1169
  transition: {
1165
1170
  duration: x.duration
1166
1171
  }
1167
1172
  }
1168
1173
  }, exit: {
1169
1174
  height: 0,
1170
- y: M(0),
1175
+ y: A(0),
1171
1176
  transition: {
1172
1177
  duration: x.duration
1173
1178
  }
1174
1179
  } }) : null,
1175
- ft ? /* @__PURE__ */ i.jsx(Ze, { value: `${o.label}`.length < lt ? `${o.label}` : `${`${o.label}`.substring(0, lt)}...`, y: (o.size || 0) < 0 ? 0 : M(0) + 5, x: f(`${o.id}`), width: f.bandwidth(), height: (o.size || 0) < 0 ? M(0) - 5 : y.bottom, style: m?.xAxis?.labels, className: d?.xAxis?.labels, alignment: (o.size || 0) < 0 ? "bottom" : "top", animate: x, isInView: r }) : null,
1176
- et ? /* @__PURE__ */ i.jsx(_t.text, { style: {
1180
+ dt ? /* @__PURE__ */ i.jsx(ti, { value: `${p.label}`.length < st ? `${p.label}` : `${`${p.label}`.substring(0, st)}...`, y: (p.size || 0) < 0 ? 0 : A(0) + 5, x: g(`${p.id}`), width: g.bandwidth(), height: (p.size || 0) < 0 ? A(0) - 5 : y.bottom, style: m?.xAxis?.labels, className: d?.xAxis?.labels, alignment: (p.size || 0) < 0 ? "bottom" : "top", animate: x, isInView: r }) : null,
1181
+ Q ? /* @__PURE__ */ i.jsx(ee.text, { style: {
1177
1182
  textAnchor: "middle",
1178
1183
  ...m?.graphObjectValues || {}
1179
- }, className: Me("graph-value text-sm", !s && W.length > 1 ? "fill-primary-gray-600 dark:fill-primary-gray-300" : "", d?.graphObjectValues), dy: o.size ? o.size >= 0 ? "-5px" : "1em" : "-5px", variants: {
1184
+ }, className: Ce("graph-value text-sm", !l && P.length > 1 ? "fill-primary-gray-600 dark:fill-primary-gray-300" : "", d?.graphObjectValues), dy: p.size ? p.size >= 0 ? "-5px" : "1em" : "-5px", variants: {
1180
1185
  initial: {
1181
- x: f(`${o.id}`) + f.bandwidth() / 2,
1182
- y: M(0),
1186
+ x: g(`${p.id}`) + g.bandwidth() / 2,
1187
+ y: A(0),
1183
1188
  opacity: 0,
1184
- fill: s || (Tt.filter(us).length === 0 ? W[0] : o.color ? W[Y.indexOf(o.color)] : pe.gray)
1189
+ fill: l || (Nt.filter(ml).length === 0 ? P[0] : p.color ? P[W.indexOf(p.color)] : ye.gray)
1185
1190
  },
1186
1191
  whileInView: {
1187
- x: f(`${o.id}`) + f.bandwidth() / 2,
1188
- y: M(o.size || 0),
1189
- fill: s || (Tt.filter(ds).length === 0 ? W[0] : o.color ? W[Y.indexOf(o.color)] : pe.gray),
1192
+ x: g(`${p.id}`) + g.bandwidth() / 2,
1193
+ y: A(p.size || 0),
1194
+ fill: l || (Nt.filter(xl).length === 0 ? P[0] : p.color ? P[W.indexOf(p.color)] : ye.gray),
1190
1195
  opacity: 1,
1191
1196
  transition: {
1192
1197
  duration: x.duration
@@ -1197,73 +1202,73 @@ function os(e) {
1197
1202
  transition: {
1198
1203
  duration: x.duration
1199
1204
  }
1200
- }, children: be(o.size, E, at, A, J) }) : null
1201
- ] }, o.label)), tt = Xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Xt.map((o, ie) => /* @__PURE__ */ i.jsx(Ke, { text: o.text, color: o.color, y: M(o.value), x1: 0 - Pt, x2: k + y.right, classNames: o.classNames, styles: o.styles, animate: x, isInView: r }, ie)) }) : null, t[14] = x, t[15] = c, t[16] = W, t[17] = vt, t[18] = R, t[19] = d?.graphObjectValues, t[20] = d?.xAxis?.axis, t[21] = d?.xAxis?.labels, t[22] = d?.yAxis?.gridLines, t[23] = d?.yAxis?.labels, t[24] = d?.yAxis?.title, t[25] = Y, t[26] = D, t[27] = Tt, t[28] = yt, t[29] = it, t[30] = p, t[31] = xt, t[32] = k, t[33] = Ft, t[34] = Et, t[35] = T, t[36] = r, t[37] = Pt, t[38] = y.bottom, t[39] = y.left, t[40] = y.right, t[41] = y.top, t[42] = pt, t[43] = K, t[44] = F, t[45] = B, t[46] = ot, t[47] = E, t[48] = a, t[49] = dt, t[50] = zt, t[51] = at, t[52] = A, t[53] = Xt, t[54] = Z, t[55] = C, t[56] = ft, t[57] = Lt, t[58] = et, t[59] = m?.graphObjectValues, t[60] = m?.xAxis?.axis, t[61] = m?.xAxis?.labels, t[62] = m?.yAxis?.gridLines, t[63] = m?.yAxis?.labels, t[64] = m?.yAxis?.title, t[65] = J, t[66] = Yt, t[67] = lt, t[68] = s, t[69] = Ct, t[70] = Bt, t[71] = Dt, t[72] = tt, t[73] = S, t[74] = I, t[75] = It, t[76] = wt, t[77] = ct, t[78] = mt, t[79] = ht, t[80] = q, t[81] = Ot, t[82] = Mt, t[83] = U;
1205
+ }, children: we(p.size, C, at, O, G, Ct) }) : null
1206
+ ] }, p.label)), J = Xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Xt.map((p, te) => /* @__PURE__ */ i.jsx(Ze, { text: p.text, color: p.color, y: A(p.value), x1: 0 - yt, x2: M + y.right, classNames: p.classNames, styles: p.styles, animate: x, isInView: r }, te)) }) : null, t[14] = x, t[15] = c, t[16] = P, t[17] = ft, t[18] = X, t[19] = d?.graphObjectValues, t[20] = d?.xAxis?.axis, t[21] = d?.xAxis?.labels, t[22] = d?.yAxis?.gridLines, t[23] = d?.yAxis?.labels, t[24] = d?.yAxis?.title, t[25] = W, t[26] = B, t[27] = Nt, t[28] = mt, t[29] = Z, t[30] = b, t[31] = bt, t[32] = M, t[33] = Bt, t[34] = qt, t[35] = N, t[36] = r, t[37] = yt, t[38] = Ct, t[39] = y.bottom, t[40] = y.left, t[41] = y.right, t[42] = y.top, t[43] = ut, t[44] = R, t[45] = S, t[46] = T, t[47] = xt, t[48] = C, t[49] = a, t[50] = nt, t[51] = kt, t[52] = at, t[53] = O, t[54] = Xt, t[55] = U, t[56] = k, t[57] = dt, t[58] = Ot, t[59] = Q, t[60] = m?.graphObjectValues, t[61] = m?.xAxis?.axis, t[62] = m?.xAxis?.labels, t[63] = m?.yAxis?.gridLines, t[64] = m?.yAxis?.labels, t[65] = m?.yAxis?.title, t[66] = G, t[67] = Wt, t[68] = st, t[69] = l, t[70] = $t, t[71] = St, t[72] = Vt, t[73] = J, t[74] = j, t[75] = I, t[76] = zt, t[77] = pt, t[78] = ot, t[79] = rt, t[80] = ct, t[81] = E, t[82] = vt, t[83] = wt, t[84] = K;
1202
1207
  } else
1203
- Bt = t[70], Dt = t[71], tt = t[72], S = t[73], I = t[74], It = t[75], wt = t[76], ct = t[77], mt = t[78], ht = t[79], q = t[80], Ot = t[81], Mt = t[82], U = t[83];
1204
- let kt;
1205
- t[105] !== Bt || t[106] !== tt || t[107] !== U ? (kt = /* @__PURE__ */ i.jsxs(Bt, { children: [
1206
- U,
1207
- tt
1208
- ] }), t[105] = Bt, t[106] = tt, t[107] = U, t[108] = kt) : kt = t[108];
1209
- let v;
1210
- t[109] !== D ? (v = D.filter(cs).map(rs), t[109] = D, t[110] = v) : v = t[110];
1208
+ St = t[71], Vt = t[72], J = t[73], j = t[74], I = t[75], zt = t[76], pt = t[77], ot = t[78], rt = t[79], ct = t[80], E = t[81], vt = t[82], wt = t[83], K = t[84];
1209
+ let gt;
1210
+ t[107] !== St || t[108] !== J || t[109] !== K ? (gt = /* @__PURE__ */ i.jsxs(St, { children: [
1211
+ K,
1212
+ J
1213
+ ] }), t[107] = St, t[108] = J, t[109] = K, t[110] = gt) : gt = t[110];
1211
1214
  let $;
1212
- t[111] !== S || t[112] !== I || t[113] !== It || t[114] !== wt || t[115] !== ct || t[116] !== kt || t[117] !== v ? ($ = /* @__PURE__ */ i.jsxs("g", { transform: S, children: [
1215
+ t[111] !== B ? ($ = B.filter(ul).map(dl), t[111] = B, t[112] = $) : $ = t[112];
1216
+ let Ht;
1217
+ t[113] !== j || t[114] !== I || t[115] !== zt || t[116] !== pt || t[117] !== ot || t[118] !== gt || t[119] !== $ ? (Ht = /* @__PURE__ */ i.jsxs("g", { transform: j, children: [
1213
1218
  I,
1214
- It,
1215
- wt,
1216
- ct,
1217
- kt,
1218
- v
1219
- ] }), t[111] = S, t[112] = I, t[113] = It, t[114] = wt, t[115] = ct, t[116] = kt, t[117] = v, t[118] = $) : $ = t[118];
1220
- let O;
1221
- t[119] !== Dt || t[120] !== mt || t[121] !== ht || t[122] !== q || t[123] !== Ot || t[124] !== Mt || t[125] !== $ ? (O = /* @__PURE__ */ i.jsx(Dt, { ref: mt, width: ht, height: q, viewBox: Ot, direction: Mt, children: $ }), t[119] = Dt, t[120] = mt, t[121] = ht, t[122] = q, t[123] = Ot, t[124] = Mt, t[125] = $, t[126] = O) : O = t[126];
1222
- let b;
1223
- t[127] !== d?.tooltip || t[128] !== rt || t[129] !== G || t[130] !== L || t[131] !== m?.tooltip || t[132] !== Vt ? (b = L && Vt && rt && G ? /* @__PURE__ */ i.jsx(je, { data: L, body: Vt, xPos: rt, yPos: G, backgroundStyle: m?.tooltip, className: d?.tooltip }) : null, t[127] = d?.tooltip, t[128] = rt, t[129] = G, t[130] = L, t[131] = m?.tooltip, t[132] = Vt, t[133] = b) : b = t[133];
1219
+ zt,
1220
+ pt,
1221
+ ot,
1222
+ gt,
1223
+ $
1224
+ ] }), t[113] = j, t[114] = I, t[115] = zt, t[116] = pt, t[117] = ot, t[118] = gt, t[119] = $, t[120] = Ht) : Ht = t[120];
1225
+ let n;
1226
+ t[121] !== Vt || t[122] !== rt || t[123] !== ct || t[124] !== E || t[125] !== vt || t[126] !== wt || t[127] !== Ht ? (n = /* @__PURE__ */ i.jsx(Vt, { ref: rt, width: ct, height: E, viewBox: vt, direction: wt, children: Ht }), t[121] = Vt, t[122] = rt, t[123] = ct, t[124] = E, t[125] = vt, t[126] = wt, t[127] = Ht, t[128] = n) : n = t[128];
1227
+ let v;
1228
+ t[129] !== d?.tooltip || t[130] !== tt || t[131] !== Y || t[132] !== Ft || t[133] !== m?.tooltip || t[134] !== Mt ? (v = Ft && Mt && tt && Y ? /* @__PURE__ */ i.jsx(Se, { data: Ft, body: Mt, xPos: tt, yPos: Y, backgroundStyle: m?.tooltip, className: d?.tooltip }) : null, t[129] = d?.tooltip, t[130] = tt, t[131] = Y, t[132] = Ft, t[133] = m?.tooltip, t[134] = Mt, t[135] = v) : v = t[135];
1229
+ let Dt;
1230
+ t[136] !== d?.modal || t[137] !== Z || t[138] !== xt ? (Dt = Z && xt !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: Z, data: xt, setData: Ut, className: d?.modal }) : null, t[136] = d?.modal, t[137] = Z, t[138] = xt, t[139] = Dt) : Dt = t[139];
1224
1231
  let At;
1225
- t[134] !== d?.modal || t[135] !== it || t[136] !== ot ? (At = it && ot !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: it, data: ot, setData: Rt, className: d?.modal }) : null, t[134] = d?.modal, t[135] = it, t[136] = ot, t[137] = At) : At = t[137];
1226
- let $t;
1227
- return t[138] !== O || t[139] !== b || t[140] !== At ? ($t = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1228
- O,
1229
- b,
1230
- At
1231
- ] }), t[138] = O, t[139] = b, t[140] = At, t[141] = $t) : $t = t[141], $t;
1232
+ return t[140] !== n || t[141] !== v || t[142] !== Dt ? (At = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1233
+ n,
1234
+ v,
1235
+ Dt
1236
+ ] }), t[140] = n, t[141] = v, t[142] = Dt, t[143] = At) : At = t[143], At;
1232
1237
  }
1233
- function rs(e) {
1238
+ function dl(e) {
1234
1239
  return e.layer;
1235
1240
  }
1236
- function cs(e) {
1241
+ function ul(e) {
1237
1242
  return e.position === "after";
1238
1243
  }
1239
- function ds(e) {
1244
+ function xl(e) {
1240
1245
  return e.color;
1241
1246
  }
1242
- function us(e) {
1247
+ function ml(e) {
1243
1248
  return e.color;
1244
1249
  }
1245
- function xs(e) {
1250
+ function hl(e) {
1246
1251
  return e.color;
1247
1252
  }
1248
- function ms(e) {
1253
+ function fl(e) {
1249
1254
  return e.color;
1250
1255
  }
1251
- function hs(e) {
1256
+ function pl(e) {
1252
1257
  return e.layer;
1253
1258
  }
1254
- function fs(e) {
1259
+ function gl(e) {
1255
1260
  return e.position === "before";
1256
1261
  }
1257
- function ps(e) {
1262
+ function yl(e) {
1258
1263
  return e !== 0;
1259
1264
  }
1260
- function gs(e) {
1265
+ function bl(e) {
1261
1266
  return e !== 0;
1262
1267
  }
1263
- function ys(e) {
1268
+ function vl(e) {
1264
1269
  return `${e.id}`;
1265
1270
  }
1266
- function bs(e) {
1271
+ function wl(e) {
1267
1272
  return {
1268
1273
  id: e,
1269
1274
  label: e,
@@ -1271,417 +1276,419 @@ function bs(e) {
1271
1276
  size: null
1272
1277
  };
1273
1278
  }
1274
- function vs(e) {
1275
- const t = we.c(134), {
1276
- data: l,
1277
- graphTitle: X,
1278
- colors: Ut,
1279
- suffix: Jt,
1280
- sources: Tt,
1281
- prefix: Ct,
1282
- graphDescription: Ft,
1283
- barPadding: W,
1284
- showValues: J,
1285
- showTicks: A,
1286
- truncateBy: R,
1287
- height: ft,
1288
- width: et,
1289
- footNote: Lt,
1290
- colorDomain: Y,
1291
- colorLegendTitle: lt,
1292
- highlightedDataPoints: Vt,
1293
- padding: zt,
1279
+ function Al(e) {
1280
+ const t = $e.c(135), {
1281
+ data: s,
1282
+ graphTitle: H,
1283
+ colors: Rt,
1284
+ suffix: Kt,
1285
+ sources: Nt,
1286
+ prefix: $t,
1287
+ graphDescription: Bt,
1288
+ barPadding: P,
1289
+ showValues: G,
1290
+ showTicks: O,
1291
+ truncateBy: X,
1292
+ height: dt,
1293
+ width: Q,
1294
+ footNote: Ot,
1295
+ colorDomain: W,
1296
+ colorLegendTitle: st,
1297
+ highlightedDataPoints: Mt,
1298
+ padding: kt,
1294
1299
  backgroundColor: Xt,
1295
- topMargin: C,
1296
- bottomMargin: K,
1297
- leftMargin: B,
1298
- rightMargin: T,
1299
- showLabels: dt,
1300
- relativeHeight: Q,
1301
- tooltip: pt,
1302
- onSeriesMouseOver: F,
1303
- refValues: Z,
1304
- showColorScale: it,
1300
+ topMargin: k,
1301
+ bottomMargin: R,
1302
+ leftMargin: T,
1303
+ rightMargin: N,
1304
+ showLabels: nt,
1305
+ relativeHeight: q,
1306
+ tooltip: ut,
1307
+ onSeriesMouseOver: S,
1308
+ refValues: U,
1309
+ showColorScale: Z,
1305
1310
  graphID: c,
1306
- maxValue: s,
1311
+ maxValue: l,
1307
1312
  minValue: a,
1308
1313
  onSeriesMouseClick: m,
1309
1314
  graphDownload: d,
1310
- dataDownload: p,
1315
+ dataDownload: b,
1311
1316
  sortData: x,
1312
1317
  labelOrder: at,
1313
- language: D,
1314
- showNAColor: E,
1315
- minHeight: Yt,
1316
- theme: Et,
1317
- maxBarThickness: Pt,
1318
- maxNumberOfBars: Ht,
1319
- minBarThickness: nt,
1320
- ariaLabel: ut,
1321
- resetSelectionOnDoubleClick: _,
1322
- detailsOnClick: u,
1323
- barAxisTitle: r,
1324
- noOfTicks: V,
1325
- valueColor: gt,
1326
- styles: y,
1327
- classNames: L,
1328
- filterNA: Gt,
1329
- animate: ot,
1330
- dimmedOpacity: Rt,
1331
- precision: rt,
1332
- customLayers: Wt,
1333
- timeline: G,
1334
- naLabel: st,
1335
- orientation: k,
1336
- trackColor: xt,
1337
- hideAxisLine: St
1338
- } = e, yt = Jt === void 0 ? "" : Jt, bt = Ct === void 0 ? "" : Ct, vt = W === void 0 ? 0.25 : W, Bt = J === void 0 ? !0 : J, Dt = A === void 0 ? !0 : A, tt = R === void 0 ? 999 : R;
1339
- let S;
1340
- t[0] !== Vt ? (S = Vt === void 0 ? [] : Vt, t[0] = Vt, t[1] = S) : S = t[1];
1341
- const I = S, It = Xt === void 0 ? !1 : Xt, wt = dt === void 0 ? !0 : dt, ct = it === void 0 ? !0 : it, mt = d === void 0 ? !1 : d, ht = p === void 0 ? !1 : p, q = D === void 0 ? "en" : D, Ot = E === void 0 ? !0 : E, Mt = Yt === void 0 ? 0 : Yt, U = Et === void 0 ? "light" : Et, kt = _ === void 0 ? !0 : _, v = V === void 0 ? 5 : V, $ = Gt === void 0 ? !0 : Gt, O = ot === void 0 ? !1 : ot, b = Rt === void 0 ? 0.3 : Rt, At = rt === void 0 ? 2 : rt;
1342
- let $t;
1343
- t[2] !== Wt ? ($t = Wt === void 0 ? [] : Wt, t[2] = Wt, t[3] = $t) : $t = t[3];
1344
- const M = $t;
1345
- let f;
1346
- t[4] !== G ? (f = G === void 0 ? {
1318
+ language: B,
1319
+ showNAColor: C,
1320
+ minHeight: Wt,
1321
+ theme: qt,
1322
+ maxBarThickness: Ct,
1323
+ maxNumberOfBars: yt,
1324
+ minBarThickness: Yt,
1325
+ ariaLabel: _,
1326
+ resetSelectionOnDoubleClick: D,
1327
+ detailsOnClick: F,
1328
+ barAxisTitle: h,
1329
+ noOfTicks: r,
1330
+ valueColor: jt,
1331
+ styles: z,
1332
+ classNames: y,
1333
+ filterNA: Ft,
1334
+ animate: Tt,
1335
+ dimmedOpacity: xt,
1336
+ precision: Ut,
1337
+ customLayers: tt,
1338
+ timeline: Pt,
1339
+ naLabel: Y,
1340
+ orientation: et,
1341
+ trackColor: M,
1342
+ hideAxisLine: bt,
1343
+ locale: Lt
1344
+ } = e, mt = Kt === void 0 ? "" : Kt, ht = $t === void 0 ? "" : $t, ft = P === void 0 ? 0.25 : P, St = G === void 0 ? !0 : G, Vt = O === void 0 ? !0 : O, J = X === void 0 ? 999 : X;
1345
+ let j;
1346
+ t[0] !== Mt ? (j = Mt === void 0 ? [] : Mt, t[0] = Mt, t[1] = j) : j = t[1];
1347
+ const I = j, zt = Xt === void 0 ? !1 : Xt, pt = nt === void 0 ? !0 : nt, ot = Z === void 0 ? !0 : Z, rt = d === void 0 ? !1 : d, ct = b === void 0 ? !1 : b, E = B === void 0 ? "en" : B, vt = C === void 0 ? !0 : C, wt = Wt === void 0 ? 0 : Wt, K = qt === void 0 ? "light" : qt, gt = D === void 0 ? !0 : D, $ = r === void 0 ? 5 : r, Ht = Ft === void 0 ? !0 : Ft, n = Tt === void 0 ? !1 : Tt, v = xt === void 0 ? 0.3 : xt, Dt = Ut === void 0 ? 2 : Ut;
1348
+ let At;
1349
+ t[2] !== tt ? (At = tt === void 0 ? [] : tt, t[2] = tt, t[3] = At) : At = t[3];
1350
+ const A = At;
1351
+ let g;
1352
+ t[4] !== Pt ? (g = Pt === void 0 ? {
1347
1353
  enabled: !1,
1348
1354
  autoplay: !1,
1349
1355
  showOnlyActiveDate: !0
1350
- } : G, t[4] = G, t[5] = f) : f = t[5];
1351
- const g = f, Nt = st === void 0 ? "NA" : st, qt = k === void 0 ? "vertical" : k, Qt = St === void 0 ? !1 : St, P = qt === "horizontal" ? Ui : os, [N, z] = Zt(0), [j, h] = Zt(0), [w, n] = Zt(g.autoplay);
1352
- let H;
1353
- if (t[6] !== l || t[7] !== g.dateFormat) {
1354
- let te;
1355
- t[9] !== g.dateFormat ? (te = ($e) => Re(`${$e.date}`, g.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[9] = g.dateFormat, t[10] = te) : te = t[10], H = [...new Set(l.filter(Fs).map(te))], H.sort(Bs), t[6] = l, t[7] = g.dateFormat, t[8] = H;
1356
+ } : Pt, t[4] = Pt, t[5] = g) : g = t[5];
1357
+ const w = g, Et = Y === void 0 ? "NA" : Y, Gt = et === void 0 ? "vertical" : et, Jt = bt === void 0 ? !1 : bt, Zt = Lt === void 0 ? "en" : Lt, it = Gt === "horizontal" ? Ki : cl, [f, V] = _t(0), [u, L] = _t(0), [o, lt] = _t(w.autoplay);
1358
+ let p;
1359
+ if (t[6] !== s || t[7] !== w.dateFormat) {
1360
+ let ie;
1361
+ t[9] !== w.dateFormat ? (ie = (Me) => Ue(`${Me.date}`, w.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[9] = w.dateFormat, t[10] = ie) : ie = t[10], p = [...new Set(s.filter(Hl).map(ie))], p.sort(Pl), t[6] = s, t[7] = w.dateFormat, t[8] = p;
1356
1362
  } else
1357
- H = t[8];
1358
- const o = H, [ie, le] = Zt(g.autoplay ? 0 : o.length - 1), [ge, Oe] = Zt(void 0), fe = ve(null), Ae = ve(null);
1359
- let ye, he;
1360
- t[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ye = () => {
1361
- const te = new ResizeObserver(($e) => {
1362
- z($e[0].target.clientWidth || 620), h($e[0].target.clientHeight || 480);
1363
+ p = t[8];
1364
+ const te = p, [se, pe] = _t(w.autoplay ? 0 : te.length - 1), [be, ke] = _t(void 0), ge = Ae(null), Oe = Ae(null);
1365
+ let ve, fe;
1366
+ t[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ve = () => {
1367
+ const ie = new ResizeObserver((Me) => {
1368
+ V(Me[0].target.clientWidth || 620), L(Me[0].target.clientHeight || 480);
1363
1369
  });
1364
- return fe.current && te.observe(fe.current), () => te.disconnect();
1365
- }, he = [], t[11] = ye, t[12] = he) : (ye = t[11], he = t[12]), Ie(ye, he);
1366
- let ae, ne;
1367
- t[13] !== w || t[14] !== g.speed || t[15] !== o ? (ae = () => {
1368
- const te = setInterval(() => {
1369
- le(($e) => $e < o.length - 1 ? $e + 1 : 0);
1370
- }, (g.speed || 2) * 1e3);
1371
- return w || clearInterval(te), () => clearInterval(te);
1372
- }, ne = [o, w, g.speed], t[13] = w, t[14] = g.speed, t[15] = o, t[16] = ae, t[17] = ne) : (ae = t[16], ne = t[17]), Ie(ae, ne);
1373
- const de = g.dateFormat || "yyyy";
1374
- let oe;
1375
- t[18] !== ie || t[19] !== de || t[20] !== g.showOnlyActiveDate || t[21] !== o ? (oe = Ee(o, ie, g.showOnlyActiveDate, de), t[18] = ie, t[19] = de, t[20] = g.showOnlyActiveDate, t[21] = o, t[22] = oe) : oe = t[22];
1376
- const re = oe, ue = L?.graphContainer, xe = y?.graphContainer;
1377
- let ce;
1378
- t[23] !== L?.description || t[24] !== L?.title || t[25] !== l || t[26] !== ht || t[27] !== Ft || t[28] !== mt || t[29] !== X || t[30] !== y?.description || t[31] !== y?.title || t[32] !== et ? (ce = X || Ft || mt || ht ? /* @__PURE__ */ i.jsx(_e, { styles: {
1370
+ return ge.current && ie.observe(ge.current), () => ie.disconnect();
1371
+ }, fe = [], t[11] = ve, t[12] = fe) : (ve = t[11], fe = t[12]), je(ve, fe);
1372
+ let oe, ne;
1373
+ t[13] !== o || t[14] !== w.speed || t[15] !== te ? (oe = () => {
1374
+ const ie = setInterval(() => {
1375
+ pe((Me) => Me < te.length - 1 ? Me + 1 : 0);
1376
+ }, (w.speed || 2) * 1e3);
1377
+ return o || clearInterval(ie), () => clearInterval(ie);
1378
+ }, ne = [te, o, w.speed], t[13] = o, t[14] = w.speed, t[15] = te, t[16] = oe, t[17] = ne) : (oe = t[16], ne = t[17]), je(oe, ne);
1379
+ const ue = w.dateFormat || "yyyy";
1380
+ let re;
1381
+ t[18] !== se || t[19] !== ue || t[20] !== w.showOnlyActiveDate || t[21] !== te ? (re = Re(te, se, w.showOnlyActiveDate, ue), t[18] = se, t[19] = ue, t[20] = w.showOnlyActiveDate, t[21] = te, t[22] = re) : re = t[22];
1382
+ const ce = re, xe = y?.graphContainer, me = z?.graphContainer;
1383
+ let de;
1384
+ t[23] !== y?.description || t[24] !== y?.title || t[25] !== s || t[26] !== ct || t[27] !== Bt || t[28] !== rt || t[29] !== H || t[30] !== z?.description || t[31] !== z?.title || t[32] !== Q ? (de = H || Bt || rt || ct ? /* @__PURE__ */ i.jsx(ei, { styles: {
1385
+ title: z?.title,
1386
+ description: z?.description
1387
+ }, classNames: {
1379
1388
  title: y?.title,
1380
1389
  description: y?.description
1381
- }, classNames: {
1382
- title: L?.title,
1383
- description: L?.description
1384
- }, graphTitle: X, graphDescription: Ft, width: et, graphDownload: mt ? Ae : void 0, dataDownload: ht ? l.map(Ss).filter(Ts).length > 0 ? l.map(js).filter(Ns) : l.filter(Is) : null }) : null, t[23] = L?.description, t[24] = L?.title, t[25] = l, t[26] = ht, t[27] = Ft, t[28] = mt, t[29] = X, t[30] = y?.description, t[31] = y?.title, t[32] = et, t[33] = ce) : ce = t[33];
1385
- let Kt;
1386
- t[34] !== ie || t[35] !== re || t[36] !== w || t[37] !== g.enabled || t[38] !== o ? (Kt = g.enabled && o.length > 0 && re ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center pb-4", dir: "ltr", children: [
1390
+ }, graphTitle: H, graphDescription: Bt, width: Q, graphDownload: rt ? Oe : void 0, dataDownload: ct ? s.map(Fl).filter(Bl).length > 0 ? s.map(Sl).filter(Tl) : s.filter(jl) : null }) : null, t[23] = y?.description, t[24] = y?.title, t[25] = s, t[26] = ct, t[27] = Bt, t[28] = rt, t[29] = H, t[30] = z?.description, t[31] = z?.title, t[32] = Q, t[33] = de) : de = t[33];
1391
+ let Qt;
1392
+ t[34] !== se || t[35] !== ce || t[36] !== o || t[37] !== w.enabled || t[38] !== te ? (Qt = w.enabled && te.length > 0 && ce ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center pb-4", dir: "ltr", children: [
1387
1393
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
1388
- n(!w);
1389
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": w ? "Click to pause animation" : "Click to play animation", children: w ? /* @__PURE__ */ i.jsx(si, {}) : /* @__PURE__ */ i.jsx(li, {}) }),
1390
- /* @__PURE__ */ i.jsx(Ge, { min: o[0], max: o[o.length - 1], marks: re, step: null, defaultValue: o[o.length - 1], value: o[ie], onChangeComplete: (te) => {
1391
- le(o.indexOf(te));
1392
- }, onChange: (te) => {
1393
- le(o.indexOf(te));
1394
+ lt(!o);
1395
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": o ? "Click to pause animation" : "Click to play animation", children: o ? /* @__PURE__ */ i.jsx(ai, {}) : /* @__PURE__ */ i.jsx(oi, {}) }),
1396
+ /* @__PURE__ */ i.jsx(qe, { min: te[0], max: te[te.length - 1], marks: ce, step: null, defaultValue: te[te.length - 1], value: te[se], onChangeComplete: (ie) => {
1397
+ pe(te.indexOf(ie));
1398
+ }, onChange: (ie) => {
1399
+ pe(te.indexOf(ie));
1394
1400
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
1395
- ] }) : null, t[34] = ie, t[35] = re, t[36] = w, t[37] = g.enabled, t[38] = o, t[39] = Kt) : Kt = t[39];
1396
- let jt;
1397
- t[40] !== L?.colorLegend || t[41] !== Y || t[42] !== lt || t[43] !== Ut || t[44] !== l || t[45] !== ct || t[46] !== Ot || t[47] !== U || t[48] !== et ? (jt = ct && l.filter(Ds).length !== 0 && l.length > 0 ? /* @__PURE__ */ i.jsx(ei, { width: et, colorLegendTitle: lt, colors: Ut || pe[U].categoricalColors.colors, colorDomain: Y || ri(l, "color", !0), setSelectedColor: Oe, showNAColor: Ot, className: L?.colorLegend }) : null, t[40] = L?.colorLegend, t[41] = Y, t[42] = lt, t[43] = Ut, t[44] = l, t[45] = ct, t[46] = Ot, t[47] = U, t[48] = et, t[49] = jt) : jt = t[49];
1398
- let se;
1399
- t[50] !== l.length ? (se = l.length === 0 && /* @__PURE__ */ i.jsx(ii, {}), t[50] = l.length, t[51] = se) : se = t[51];
1400
- let Le;
1401
- t[52] !== P || t[53] !== O || t[54] !== r || t[55] !== vt || t[56] !== K || t[57] !== L || t[58] !== Y || t[59] !== Ut || t[60] !== M || t[61] !== l || t[62] !== u || t[63] !== b || t[64] !== $ || t[65] !== Qt || t[66] !== I || t[67] !== ie || t[68] !== at || t[69] !== q || t[70] !== B || t[71] !== Pt || t[72] !== Ht || t[73] !== s || t[74] !== nt || t[75] !== a || t[76] !== Nt || t[77] !== v || t[78] !== m || t[79] !== F || t[80] !== qt || t[81] !== At || t[82] !== bt || t[83] !== Z || t[84] !== kt || t[85] !== T || t[86] !== ge || t[87] !== wt || t[88] !== Dt || t[89] !== Bt || t[90] !== x || t[91] !== y || t[92] !== yt || t[93] !== j || t[94] !== N || t[95] !== U || t[96] !== g.dateFormat || t[97] !== g.enabled || t[98] !== pt || t[99] !== C || t[100] !== xt || t[101] !== tt || t[102] !== o || t[103] !== gt ? (Le = N && j && l.length > 0 ? /* @__PURE__ */ i.jsx(P, { hideAxisLine: Qt, data: x ? We(oi(l, g.dateFormat || "yyyy").filter((te) => g.enabled ? `${te.date}` === Ce(new Date(o[ie]), g.dateFormat || "yyyy") : te).filter((te) => $ ? !ee(te.size) : te), [(te) => te.size === void 0 ? x === "asc" ? (qt === "horizontal" ? 1 : -1) * (1 / 0) : (qt === "horizontal" ? -1 : 1) * (1 / 0) : te.size], [x]).filter((te, $e) => Ht ? $e < Ht : !0) : oi(l, g.dateFormat || "yyyy").filter((te) => g.enabled ? `${te.date}` === Ce(new Date(o[ie]), g.dateFormat || "yyyy") : te).filter((te) => $ ? !ee(te.size) : te).filter((te, $e) => Ht ? $e < Ht : !0), barColor: l.filter(zs).length === 0 ? Ut ? [Ut] : [pe.primaryColors["blue-600"]] : Ut || pe[U].categoricalColors.colors, colorDomain: l.filter(Vs).length === 0 ? [] : Y || ri(l, "color", !0), selectedColor: ge, trackColor: xt, width: N, height: j, suffix: yt, prefix: bt, barPadding: vt, showValues: Bt, showTicks: Dt, leftMargin: B, rightMargin: T, topMargin: C, bottomMargin: K, truncateBy: tt, showLabels: wt, tooltip: pt, onSeriesMouseOver: F, refValues: Z, maxValue: ee(s) ? Math.max(...l.filter(Ls).map(Cs)) < 0 ? 0 : Math.max(...l.filter(ks).map(Ms)) : s, minValue: ee(a) ? Math.min(...l.filter(Os).map($s)) >= 0 ? 0 : Math.min(...l.filter(As).map(ws)) : a, highlightedDataPoints: I, onSeriesMouseClick: m, labelOrder: at, rtl: q === "he" || q === "ar", maxBarThickness: Pt, minBarThickness: nt, resetSelectionOnDoubleClick: kt, detailsOnClick: u, barAxisTitle: r, noOfTicks: v, valueColor: gt, classNames: L, styles: y, animate: O === !0 ? {
1401
+ ] }) : null, t[34] = se, t[35] = ce, t[36] = o, t[37] = w.enabled, t[38] = te, t[39] = Qt) : Qt = t[39];
1402
+ let It;
1403
+ t[40] !== y?.colorLegend || t[41] !== W || t[42] !== st || t[43] !== Rt || t[44] !== s || t[45] !== ot || t[46] !== vt || t[47] !== K || t[48] !== Q ? (It = ot && s.filter(Nl).length !== 0 && s.length > 0 ? /* @__PURE__ */ i.jsx(li, { width: Q, colorLegendTitle: st, colors: Rt || ye[K].categoricalColors.colors, colorDomain: W || di(s, "color", !0), setSelectedColor: ke, showNAColor: vt, className: y?.colorLegend }) : null, t[40] = y?.colorLegend, t[41] = W, t[42] = st, t[43] = Rt, t[44] = s, t[45] = ot, t[46] = vt, t[47] = K, t[48] = Q, t[49] = It) : It = t[49];
1404
+ let ae;
1405
+ t[50] !== s.length ? (ae = s.length === 0 && /* @__PURE__ */ i.jsx(si, {}), t[50] = s.length, t[51] = ae) : ae = t[51];
1406
+ let ze;
1407
+ t[52] !== it || t[53] !== n || t[54] !== h || t[55] !== ft || t[56] !== R || t[57] !== y || t[58] !== W || t[59] !== Rt || t[60] !== A || t[61] !== s || t[62] !== F || t[63] !== v || t[64] !== Ht || t[65] !== Jt || t[66] !== I || t[67] !== se || t[68] !== at || t[69] !== E || t[70] !== T || t[71] !== Zt || t[72] !== Ct || t[73] !== yt || t[74] !== l || t[75] !== Yt || t[76] !== a || t[77] !== Et || t[78] !== $ || t[79] !== m || t[80] !== S || t[81] !== Gt || t[82] !== Dt || t[83] !== ht || t[84] !== U || t[85] !== gt || t[86] !== N || t[87] !== be || t[88] !== pt || t[89] !== Vt || t[90] !== St || t[91] !== x || t[92] !== z || t[93] !== mt || t[94] !== u || t[95] !== f || t[96] !== K || t[97] !== w.dateFormat || t[98] !== w.enabled || t[99] !== ut || t[100] !== k || t[101] !== M || t[102] !== J || t[103] !== te || t[104] !== jt ? (ze = f && u && s.length > 0 ? /* @__PURE__ */ i.jsx(it, { hideAxisLine: Jt, data: x ? Ye(ci(s, w.dateFormat || "yyyy").filter((ie) => w.enabled ? `${ie.date}` === Ve(new Date(te[se]), w.dateFormat || "yyyy") : ie).filter((ie) => Ht ? !le(ie.size) : ie), [(ie) => ie.size === void 0 ? x === "asc" ? (Gt === "horizontal" ? 1 : -1) * (1 / 0) : (Gt === "horizontal" ? -1 : 1) * (1 / 0) : ie.size], [x]).filter((ie, Me) => yt ? Me < yt : !0) : ci(s, w.dateFormat || "yyyy").filter((ie) => w.enabled ? `${ie.date}` === Ve(new Date(te[se]), w.dateFormat || "yyyy") : ie).filter((ie) => Ht ? !le(ie.size) : ie).filter((ie, Me) => yt ? Me < yt : !0), barColor: s.filter(Il).length === 0 ? Rt ? [Rt] : [ye.primaryColors["blue-600"]] : Rt || ye[K].categoricalColors.colors, colorDomain: s.filter(Dl).length === 0 ? [] : W || di(s, "color", !0), selectedColor: be, trackColor: M, width: f, height: u, suffix: mt, prefix: ht, barPadding: ft, showValues: St, showTicks: Vt, leftMargin: T, rightMargin: N, topMargin: k, bottomMargin: R, truncateBy: J, showLabels: pt, tooltip: ut, onSeriesMouseOver: S, refValues: U, maxValue: le(l) ? Math.max(...s.filter(zl).map(Vl)) < 0 ? 0 : Math.max(...s.filter(Ll).map(Cl)) : l, minValue: le(a) ? Math.min(...s.filter(kl).map(Ml)) >= 0 ? 0 : Math.min(...s.filter(Ol).map($l)) : a, highlightedDataPoints: I, onSeriesMouseClick: m, labelOrder: at, rtl: E === "he" || E === "ar", maxBarThickness: Ct, minBarThickness: Yt, resetSelectionOnDoubleClick: gt, detailsOnClick: F, barAxisTitle: h, noOfTicks: $, valueColor: jt, classNames: y, styles: z, animate: n === !0 ? {
1402
1408
  duration: 0.5,
1403
1409
  once: !0,
1404
1410
  amount: 0.5
1405
- } : O || {
1411
+ } : n || {
1406
1412
  duration: 0,
1407
1413
  once: !0,
1408
1414
  amount: 0
1409
- }, dimmedOpacity: b, precision: At, customLayers: M, naLabel: Nt }) : null, t[52] = P, t[53] = O, t[54] = r, t[55] = vt, t[56] = K, t[57] = L, t[58] = Y, t[59] = Ut, t[60] = M, t[61] = l, t[62] = u, t[63] = b, t[64] = $, t[65] = Qt, t[66] = I, t[67] = ie, t[68] = at, t[69] = q, t[70] = B, t[71] = Pt, t[72] = Ht, t[73] = s, t[74] = nt, t[75] = a, t[76] = Nt, t[77] = v, t[78] = m, t[79] = F, t[80] = qt, t[81] = At, t[82] = bt, t[83] = Z, t[84] = kt, t[85] = T, t[86] = ge, t[87] = wt, t[88] = Dt, t[89] = Bt, t[90] = x, t[91] = y, t[92] = yt, t[93] = j, t[94] = N, t[95] = U, t[96] = g.dateFormat, t[97] = g.enabled, t[98] = pt, t[99] = C, t[100] = xt, t[101] = tt, t[102] = o, t[103] = gt, t[104] = Le) : Le = t[104];
1410
- let Ve;
1411
- t[105] !== se || t[106] !== Le ? (Ve = /* @__PURE__ */ i.jsxs(ai, { ref: fe, children: [
1412
- se,
1413
- Le
1414
- ] }), t[105] = se, t[106] = Le, t[107] = Ve) : Ve = t[107];
1415
- let ze;
1416
- t[108] !== L?.footnote || t[109] !== L?.source || t[110] !== Lt || t[111] !== Tt || t[112] !== y?.footnote || t[113] !== y?.source || t[114] !== et ? (ze = Tt || Lt ? /* @__PURE__ */ i.jsx(ti, { sources: Tt, footNote: Lt, width: et, styles: {
1415
+ }, dimmedOpacity: v, precision: Dt, customLayers: A, naLabel: Et, locale: Zt }) : null, t[52] = it, t[53] = n, t[54] = h, t[55] = ft, t[56] = R, t[57] = y, t[58] = W, t[59] = Rt, t[60] = A, t[61] = s, t[62] = F, t[63] = v, t[64] = Ht, t[65] = Jt, t[66] = I, t[67] = se, t[68] = at, t[69] = E, t[70] = T, t[71] = Zt, t[72] = Ct, t[73] = yt, t[74] = l, t[75] = Yt, t[76] = a, t[77] = Et, t[78] = $, t[79] = m, t[80] = S, t[81] = Gt, t[82] = Dt, t[83] = ht, t[84] = U, t[85] = gt, t[86] = N, t[87] = be, t[88] = pt, t[89] = Vt, t[90] = St, t[91] = x, t[92] = z, t[93] = mt, t[94] = u, t[95] = f, t[96] = K, t[97] = w.dateFormat, t[98] = w.enabled, t[99] = ut, t[100] = k, t[101] = M, t[102] = J, t[103] = te, t[104] = jt, t[105] = ze) : ze = t[105];
1416
+ let De;
1417
+ t[106] !== ae || t[107] !== ze ? (De = /* @__PURE__ */ i.jsxs(ni, { ref: ge, children: [
1418
+ ae,
1419
+ ze
1420
+ ] }), t[106] = ae, t[107] = ze, t[108] = De) : De = t[108];
1421
+ let Ie;
1422
+ t[109] !== y?.footnote || t[110] !== y?.source || t[111] !== Ot || t[112] !== Nt || t[113] !== z?.footnote || t[114] !== z?.source || t[115] !== Q ? (Ie = Nt || Ot ? /* @__PURE__ */ i.jsx(ii, { sources: Nt, footNote: Ot, width: Q, styles: {
1423
+ footnote: z?.footnote,
1424
+ source: z?.source
1425
+ }, classNames: {
1417
1426
  footnote: y?.footnote,
1418
1427
  source: y?.source
1419
- }, classNames: {
1420
- footnote: L?.footnote,
1421
- source: L?.source
1422
- } }) : null, t[108] = L?.footnote, t[109] = L?.source, t[110] = Lt, t[111] = Tt, t[112] = y?.footnote, t[113] = y?.source, t[114] = et, t[115] = ze) : ze = t[115];
1423
- let Xe;
1424
- return t[116] !== ut || t[117] !== It || t[118] !== c || t[119] !== ft || t[120] !== q || t[121] !== Mt || t[122] !== zt || t[123] !== Q || t[124] !== ue || t[125] !== xe || t[126] !== ce || t[127] !== Kt || t[128] !== jt || t[129] !== Ve || t[130] !== ze || t[131] !== U || t[132] !== et ? (Xe = /* @__PURE__ */ i.jsxs(ni, { className: ue, style: xe, id: c, ref: Ae, "aria-label": ut, backgroundColor: It, theme: U, language: q, minHeight: Mt, width: et, height: ft, relativeHeight: Q, padding: zt, children: [
1425
- ce,
1426
- Kt,
1427
- jt,
1428
- Ve,
1429
- ze
1430
- ] }), t[116] = ut, t[117] = It, t[118] = c, t[119] = ft, t[120] = q, t[121] = Mt, t[122] = zt, t[123] = Q, t[124] = ue, t[125] = xe, t[126] = ce, t[127] = Kt, t[128] = jt, t[129] = Ve, t[130] = ze, t[131] = U, t[132] = et, t[133] = Xe) : Xe = t[133], Xe;
1428
+ } }) : null, t[109] = y?.footnote, t[110] = y?.source, t[111] = Ot, t[112] = Nt, t[113] = z?.footnote, t[114] = z?.source, t[115] = Q, t[116] = Ie) : Ie = t[116];
1429
+ let Ee;
1430
+ return t[117] !== _ || t[118] !== zt || t[119] !== c || t[120] !== dt || t[121] !== E || t[122] !== wt || t[123] !== kt || t[124] !== q || t[125] !== xe || t[126] !== me || t[127] !== de || t[128] !== Qt || t[129] !== It || t[130] !== De || t[131] !== Ie || t[132] !== K || t[133] !== Q ? (Ee = /* @__PURE__ */ i.jsxs(ri, { className: xe, style: me, id: c, ref: Oe, "aria-label": _, backgroundColor: zt, theme: K, language: E, minHeight: wt, width: Q, height: dt, relativeHeight: q, padding: kt, children: [
1431
+ de,
1432
+ Qt,
1433
+ It,
1434
+ De,
1435
+ Ie
1436
+ ] }), t[117] = _, t[118] = zt, t[119] = c, t[120] = dt, t[121] = E, t[122] = wt, t[123] = kt, t[124] = q, t[125] = xe, t[126] = me, t[127] = de, t[128] = Qt, t[129] = It, t[130] = De, t[131] = Ie, t[132] = K, t[133] = Q, t[134] = Ee) : Ee = t[134], Ee;
1431
1437
  }
1432
- function ws(e) {
1438
+ function $l(e) {
1433
1439
  return e.size;
1434
1440
  }
1435
- function As(e) {
1436
- return !ee(e.size);
1441
+ function Ol(e) {
1442
+ return !le(e.size);
1437
1443
  }
1438
- function $s(e) {
1444
+ function Ml(e) {
1439
1445
  return e.size;
1440
1446
  }
1441
- function Os(e) {
1442
- return !ee(e.size);
1447
+ function kl(e) {
1448
+ return !le(e.size);
1443
1449
  }
1444
- function Ms(e) {
1450
+ function Cl(e) {
1445
1451
  return e.size;
1446
1452
  }
1447
- function ks(e) {
1448
- return !ee(e.size);
1453
+ function Ll(e) {
1454
+ return !le(e.size);
1449
1455
  }
1450
- function Cs(e) {
1456
+ function Vl(e) {
1451
1457
  return e.size;
1452
1458
  }
1453
- function Ls(e) {
1454
- return !ee(e.size);
1459
+ function zl(e) {
1460
+ return !le(e.size);
1455
1461
  }
1456
- function Vs(e) {
1462
+ function Dl(e) {
1457
1463
  return e.color;
1458
1464
  }
1459
- function zs(e) {
1465
+ function Il(e) {
1460
1466
  return e.color;
1461
1467
  }
1462
- function Ds(e) {
1468
+ function Nl(e) {
1463
1469
  return e.color;
1464
1470
  }
1465
- function Is(e) {
1471
+ function jl(e) {
1466
1472
  return e !== void 0;
1467
1473
  }
1468
- function Ns(e) {
1474
+ function Tl(e) {
1469
1475
  return e !== void 0;
1470
1476
  }
1471
- function js(e) {
1477
+ function Sl(e) {
1472
1478
  return e.data;
1473
1479
  }
1474
- function Ts(e) {
1480
+ function Bl(e) {
1475
1481
  return e !== void 0;
1476
1482
  }
1477
- function Ss(e) {
1483
+ function Fl(e) {
1478
1484
  return e.data;
1479
1485
  }
1480
- function Bs(e, t) {
1486
+ function Pl(e, t) {
1481
1487
  return e - t;
1482
1488
  }
1483
- function Fs(e) {
1489
+ function Hl(e) {
1484
1490
  return e.date;
1485
1491
  }
1486
- function Ps(e) {
1487
- const t = we.c(130), {
1488
- data: l,
1489
- barColors: X,
1490
- barPadding: Ut,
1491
- showTicks: Jt,
1492
- topMargin: Tt,
1493
- bottomMargin: Ct,
1494
- leftMargin: Ft,
1495
- rightMargin: W,
1496
- truncateBy: J,
1497
- width: A,
1498
- height: R,
1499
- tooltip: ft,
1500
- onSeriesMouseOver: et,
1501
- showLabels: Lt,
1502
- suffix: Y,
1503
- prefix: lt,
1504
- showValues: Vt,
1505
- refValues: zt,
1492
+ function Wl(e) {
1493
+ const t = $e.c(131), {
1494
+ data: s,
1495
+ barColors: H,
1496
+ barPadding: Rt,
1497
+ showTicks: Kt,
1498
+ topMargin: Nt,
1499
+ bottomMargin: $t,
1500
+ leftMargin: Bt,
1501
+ rightMargin: P,
1502
+ truncateBy: G,
1503
+ width: O,
1504
+ height: X,
1505
+ tooltip: dt,
1506
+ onSeriesMouseOver: Q,
1507
+ showLabels: Ot,
1508
+ suffix: W,
1509
+ prefix: st,
1510
+ showValues: Mt,
1511
+ refValues: kt,
1506
1512
  maxValue: Xt,
1507
- onSeriesMouseClick: C,
1508
- selectedColor: K,
1509
- rtl: B,
1510
- labelOrder: T,
1511
- maxBarThickness: dt,
1512
- minBarThickness: Q,
1513
- resetSelectionOnDoubleClick: pt,
1514
- detailsOnClick: F,
1515
- barAxisTitle: Z,
1516
- valueColor: it,
1513
+ onSeriesMouseClick: k,
1514
+ selectedColor: R,
1515
+ rtl: T,
1516
+ labelOrder: N,
1517
+ maxBarThickness: nt,
1518
+ minBarThickness: q,
1519
+ resetSelectionOnDoubleClick: ut,
1520
+ detailsOnClick: S,
1521
+ barAxisTitle: U,
1522
+ valueColor: Z,
1517
1523
  noOfTicks: c,
1518
- styles: s,
1524
+ styles: l,
1519
1525
  classNames: a,
1520
1526
  animate: m,
1521
1527
  colorDomain: d,
1522
- precision: p,
1528
+ precision: b,
1523
1529
  customLayers: x,
1524
1530
  naLabel: at,
1525
- hideAxisLine: D
1526
- } = e, E = Tt === void 0 ? 25 : Tt, Yt = Ct === void 0 ? 10 : Ct, Et = Ft === void 0 ? 100 : Ft, Pt = W === void 0 ? 40 : W, Ht = ve(null);
1527
- let nt;
1528
- t[0] !== m.amount || t[1] !== m.once ? (nt = {
1531
+ hideAxisLine: B,
1532
+ locale: C
1533
+ } = e, Wt = Nt === void 0 ? 25 : Nt, qt = $t === void 0 ? 10 : $t, Ct = Bt === void 0 ? 100 : Bt, yt = P === void 0 ? 40 : P, Yt = Ae(null);
1534
+ let _;
1535
+ t[0] !== m.amount || t[1] !== m.once ? (_ = {
1529
1536
  once: m.once,
1530
1537
  amount: m.amount
1531
- }, t[0] = m.amount, t[1] = m.once, t[2] = nt) : nt = t[2];
1532
- const ut = Fe(Ht, nt), _ = Z ? E + 25 : E;
1533
- let u;
1534
- t[3] !== Yt || t[4] !== Et || t[5] !== Pt || t[6] !== _ ? (u = {
1535
- top: _,
1536
- bottom: Yt,
1537
- left: Et,
1538
- right: Pt
1539
- }, t[3] = Yt, t[4] = Et, t[5] = Pt, t[6] = _, t[7] = u) : u = t[7];
1540
- const r = u, [V, gt] = Zt(void 0), [y, L] = Zt(void 0), [Gt, ot] = Zt(void 0), [Rt, rt] = Zt(void 0), Wt = A - r.left - r.right, G = R - r.top - r.bottom;
1541
- let st;
1542
- if (t[8] !== l || t[9] !== T) {
1543
- const b = /* @__PURE__ */ new Set(), At = l.map((f, g) => {
1544
- const Nt = T ? `${f.label}` : `${g}`;
1545
- return b.add(Nt), {
1546
- ...f,
1547
- id: Nt
1538
+ }, t[0] = m.amount, t[1] = m.once, t[2] = _) : _ = t[2];
1539
+ const D = He(Yt, _), F = U ? Wt + 25 : Wt;
1540
+ let h;
1541
+ t[3] !== qt || t[4] !== Ct || t[5] !== yt || t[6] !== F ? (h = {
1542
+ top: F,
1543
+ bottom: qt,
1544
+ left: Ct,
1545
+ right: yt
1546
+ }, t[3] = qt, t[4] = Ct, t[5] = yt, t[6] = F, t[7] = h) : h = t[7];
1547
+ const r = h, [jt, z] = _t(void 0), [y, Ft] = _t(void 0), [Tt, xt] = _t(void 0), [Ut, tt] = _t(void 0), Pt = O - r.left - r.right, Y = X - r.top - r.bottom;
1548
+ let et;
1549
+ if (t[8] !== s || t[9] !== N) {
1550
+ const v = /* @__PURE__ */ new Set(), Dt = s.map((g, w) => {
1551
+ const Et = N ? `${g.label}` : `${w}`;
1552
+ return v.add(Et), {
1553
+ ...g,
1554
+ id: Et
1548
1555
  };
1549
- }), $t = T ? T.filter((f) => !b.has(f)) : [];
1550
- let M;
1551
- t[11] !== l[0] ? (M = (f) => ({
1552
- id: f,
1553
- label: f,
1554
- size: Array(l[0].size.length).fill(null)
1555
- }), t[11] = l[0], t[12] = M) : M = t[12], st = [...At, ...$t.map(M)], t[8] = l, t[9] = T, t[10] = st;
1556
+ }), At = N ? N.filter((g) => !v.has(g)) : [];
1557
+ let A;
1558
+ t[11] !== s[0] ? (A = (g) => ({
1559
+ id: g,
1560
+ label: g,
1561
+ size: Array(s[0].size.length).fill(null)
1562
+ }), t[11] = s[0], t[12] = A) : A = t[12], et = [...Dt, ...At.map(A)], t[8] = s, t[9] = N, t[10] = et;
1556
1563
  } else
1557
- st = t[10];
1558
- const k = st;
1559
- let xt;
1560
- t[13] !== k || t[14] !== T ? (xt = T ?? k.map(Us), t[13] = k, t[14] = T, t[15] = xt) : xt = t[15];
1561
- const St = xt;
1562
- let yt, bt, vt, Bt, Dt, tt, S, I, It, wt, ct, mt, ht, q;
1563
- if (t[16] !== m || t[17] !== Z || t[18] !== X || t[19] !== St || t[20] !== Ut || t[21] !== a?.graphObjectValues || t[22] !== a?.xAxis?.gridLines || t[23] !== a?.xAxis?.labels || t[24] !== a?.xAxis?.title || t[25] !== a?.yAxis?.axis || t[26] !== a?.yAxis?.labels || t[27] !== d || t[28] !== x || t[29] !== k || t[30] !== F || t[31] !== G || t[32] !== Wt || t[33] !== R || t[34] !== D || t[35] !== ut || t[36] !== r.bottom || t[37] !== r.left || t[38] !== r.top || t[39] !== dt || t[40] !== Xt || t[41] !== Q || t[42] !== y || t[43] !== at || t[44] !== c || t[45] !== C || t[46] !== et || t[47] !== p || t[48] !== lt || t[49] !== zt || t[50] !== pt || t[51] !== B || t[52] !== K || t[53] !== Lt || t[54] !== Jt || t[55] !== Vt || t[56] !== s?.graphObjectValues || t[57] !== s?.xAxis?.gridLines || t[58] !== s?.xAxis?.labels || t[59] !== s?.xAxis?.title || t[60] !== s?.yAxis?.axis || t[61] !== s?.yAxis?.labels || t[62] !== Y || t[63] !== E || t[64] !== J || t[65] !== it || t[66] !== A) {
1564
- const b = Pe().domain([0, Xt]).range([0, Wt]).nice(), At = ke().domain(St).range([0, Q ? Math.max(G, Q * St.length) : dt ? Math.min(G, dt * St.length) : G]).paddingInner(Ut), $t = b.ticks(c);
1565
- bt = _t.svg, It = Ht, wt = `${A}px`, ct = `${R}px`, mt = `0 0 ${A} ${R}`, ht = "ltr", Dt = `translate(${r.left},${r.top})`, tt = Jt ? /* @__PURE__ */ i.jsx(Ue, { values: $t.filter(qs), x: $t.filter(Rs).map((z) => b(z)), y1: 0 - E, y2: G + r.bottom, styles: {
1566
- gridLines: s?.xAxis?.gridLines,
1567
- labels: s?.xAxis?.labels
1564
+ et = t[10];
1565
+ const M = et;
1566
+ let bt;
1567
+ t[13] !== M || t[14] !== N ? (bt = N ?? M.map(Kl), t[13] = M, t[14] = N, t[15] = bt) : bt = t[15];
1568
+ const Lt = bt;
1569
+ let mt, ht, ft, St, Vt, J, j, I, zt, pt, ot, rt, ct, E;
1570
+ if (t[16] !== m || t[17] !== U || t[18] !== H || t[19] !== Lt || t[20] !== Rt || t[21] !== a?.graphObjectValues || t[22] !== a?.xAxis?.gridLines || t[23] !== a?.xAxis?.labels || t[24] !== a?.xAxis?.title || t[25] !== a?.yAxis?.axis || t[26] !== a?.yAxis?.labels || t[27] !== d || t[28] !== x || t[29] !== M || t[30] !== S || t[31] !== Y || t[32] !== Pt || t[33] !== X || t[34] !== B || t[35] !== D || t[36] !== C || t[37] !== r.bottom || t[38] !== r.left || t[39] !== r.top || t[40] !== nt || t[41] !== Xt || t[42] !== q || t[43] !== y || t[44] !== at || t[45] !== c || t[46] !== k || t[47] !== Q || t[48] !== b || t[49] !== st || t[50] !== kt || t[51] !== ut || t[52] !== T || t[53] !== R || t[54] !== Ot || t[55] !== Kt || t[56] !== Mt || t[57] !== l?.graphObjectValues || t[58] !== l?.xAxis?.gridLines || t[59] !== l?.xAxis?.labels || t[60] !== l?.xAxis?.title || t[61] !== l?.yAxis?.axis || t[62] !== l?.yAxis?.labels || t[63] !== W || t[64] !== Wt || t[65] !== G || t[66] !== Z || t[67] !== O) {
1571
+ const v = We().domain([0, Xt]).range([0, Pt]).nice(), Dt = Le().domain(Lt).range([0, q ? Math.max(Y, q * Lt.length) : nt ? Math.min(Y, nt * Lt.length) : Y]).paddingInner(Rt), At = v.ticks(c);
1572
+ ht = ee.svg, zt = Yt, pt = `${O}px`, ot = `${X}px`, rt = `0 0 ${O} ${X}`, ct = "ltr", Vt = `translate(${r.left},${r.top})`, J = Kt ? /* @__PURE__ */ i.jsx(Ke, { values: At.filter(Jl), x: At.filter(Ul).map((f) => v(f)), y1: 0 - Wt, y2: Y + r.bottom, styles: {
1573
+ gridLines: l?.xAxis?.gridLines,
1574
+ labels: l?.xAxis?.labels
1568
1575
  }, classNames: {
1569
1576
  gridLines: a?.xAxis?.gridLines,
1570
1577
  labels: a?.xAxis?.labels
1571
- }, suffix: Y, prefix: lt, labelType: "secondary", showGridLines: !0, precision: p }) : null;
1572
- const M = Wt / 2, f = 0 - r.top + 15, g = s?.xAxis?.title, Nt = a?.xAxis?.title;
1573
- t[81] !== Z || t[82] !== M || t[83] !== f || t[84] !== g || t[85] !== Nt ? (S = /* @__PURE__ */ i.jsx(Se, { x: M, y: f, style: g, className: Nt, text: Z }), t[81] = Z, t[82] = M, t[83] = f, t[84] = g, t[85] = Nt, t[86] = S) : S = t[86], t[87] !== x ? (I = x.filter(Gs).map(Es), t[87] = x, t[88] = I) : I = t[88], yt = He, q = k.map((z) => ee(At(z.id)) ? null : /* @__PURE__ */ i.jsxs(_t.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1578
+ }, suffix: W, prefix: st, labelType: "secondary", showGridLines: !0, precision: b, locale: C }) : null;
1579
+ const A = Pt / 2, g = 0 - r.top + 15, w = l?.xAxis?.title, Et = a?.xAxis?.title;
1580
+ t[82] !== U || t[83] !== A || t[84] !== g || t[85] !== w || t[86] !== Et ? (j = /* @__PURE__ */ i.jsx(Fe, { x: A, y: g, style: w, className: Et, text: U }), t[82] = U, t[83] = A, t[84] = g, t[85] = w, t[86] = Et, t[87] = j) : j = t[87], t[88] !== x ? (I = x.filter(ql).map(Rl), t[88] = x, t[89] = I) : I = t[89], mt = Xe, E = M.map((f) => le(Dt(f.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1574
1581
  initial: {
1575
1582
  x: 0,
1576
- y: At(`${z.id}`)
1583
+ y: Dt(`${f.id}`)
1577
1584
  },
1578
1585
  whileInView: {
1579
1586
  x: 0,
1580
- y: At(`${z.id}`),
1587
+ y: Dt(`${f.id}`),
1581
1588
  transition: {
1582
1589
  duration: m.duration
1583
1590
  }
1584
1591
  }
1585
- }, initial: "initial", animate: ut ? "whileInView" : "initial", exit: {
1592
+ }, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
1586
1593
  opacity: 0,
1587
1594
  transition: {
1588
1595
  duration: m.duration
1589
1596
  }
1590
1597
  }, children: [
1591
- z.size.map((j, h) => /* @__PURE__ */ i.jsxs(_t.g, { opacity: K ? X[h] === K ? 1 : 0.3 : 1, onMouseEnter: (w) => {
1592
- gt({
1593
- ...z,
1594
- sizeIndex: h
1595
- }), rt(w.clientY), ot(w.clientX), et?.({
1596
- ...z,
1597
- sizeIndex: h
1598
+ f.size.map((V, u) => /* @__PURE__ */ i.jsxs(ee.g, { opacity: R ? H[u] === R ? 1 : 0.3 : 1, onMouseEnter: (L) => {
1599
+ z({
1600
+ ...f,
1601
+ sizeIndex: u
1602
+ }), tt(L.clientY), xt(L.clientX), Q?.({
1603
+ ...f,
1604
+ sizeIndex: u
1598
1605
  });
1599
- }, onMouseMove: (w) => {
1600
- gt({
1601
- ...z,
1602
- sizeIndex: h
1603
- }), rt(w.clientY), ot(w.clientX);
1606
+ }, onMouseMove: (L) => {
1607
+ z({
1608
+ ...f,
1609
+ sizeIndex: u
1610
+ }), tt(L.clientY), xt(L.clientX);
1604
1611
  }, onMouseLeave: () => {
1605
- gt(void 0), ot(void 0), rt(void 0), et?.(void 0);
1612
+ z(void 0), xt(void 0), tt(void 0), Q?.(void 0);
1606
1613
  }, onClick: () => {
1607
- (C || F) && (Ne(y, {
1608
- ...z,
1609
- sizeIndex: h
1610
- }) && pt ? (L(void 0), C?.(void 0)) : (L({
1611
- ...z,
1612
- sizeIndex: h
1613
- }), C && C({
1614
- ...z,
1615
- sizeIndex: h
1614
+ (k || S) && (Te(y, {
1615
+ ...f,
1616
+ sizeIndex: u
1617
+ }) && ut ? (Ft(void 0), k?.(void 0)) : (Ft({
1618
+ ...f,
1619
+ sizeIndex: u
1620
+ }), k && k({
1621
+ ...f,
1622
+ sizeIndex: u
1616
1623
  })));
1617
1624
  }, children: [
1618
- j ? /* @__PURE__ */ i.jsx(_t.rect, { y: 0, style: {
1619
- fill: X[h]
1620
- }, height: At.bandwidth(), exit: {
1625
+ V ? /* @__PURE__ */ i.jsx(ee.rect, { y: 0, style: {
1626
+ fill: H[u]
1627
+ }, height: Dt.bandwidth(), exit: {
1621
1628
  width: 0,
1622
- x: b(0),
1629
+ x: v(0),
1623
1630
  transition: {
1624
1631
  duration: m.duration
1625
1632
  }
1626
1633
  }, variants: {
1627
1634
  initial: {
1628
1635
  width: 0,
1629
- x: b(0),
1630
- fill: X[h]
1636
+ x: v(0),
1637
+ fill: H[u]
1631
1638
  },
1632
1639
  whileInView: {
1633
- width: b(j || 0),
1634
- x: b(h === 0 ? 0 : me(z.size.filter((w, n) => n < h && w))),
1635
- fill: X[h],
1640
+ width: v(V || 0),
1641
+ x: v(u === 0 ? 0 : he(f.size.filter((L, o) => o < u && L))),
1642
+ fill: H[u],
1636
1643
  transition: {
1637
1644
  duration: m.duration
1638
1645
  }
1639
1646
  }
1640
- }, initial: "initial", animate: ut ? "whileInView" : "initial" }, h) : null,
1641
- Vt ? /* @__PURE__ */ i.jsx(_t.text, { y: At.bandwidth() / 2, style: {
1647
+ }, initial: "initial", animate: D ? "whileInView" : "initial" }, u) : null,
1648
+ Mt ? /* @__PURE__ */ i.jsx(ee.text, { y: Dt.bandwidth() / 2, style: {
1642
1649
  textAnchor: "middle",
1643
- ...s?.graphObjectValues || {}
1644
- }, dy: "0.33em", className: Me("graph-value text-sm", a?.graphObjectValues), exit: {
1650
+ ...l?.graphObjectValues || {}
1651
+ }, dy: "0.33em", className: Ce("graph-value text-sm", a?.graphObjectValues), exit: {
1645
1652
  opacity: 0,
1646
1653
  transition: {
1647
1654
  duration: m.duration
1648
1655
  }
1649
1656
  }, variants: {
1650
1657
  initial: {
1651
- x: b(0),
1658
+ x: v(0),
1652
1659
  opacity: 0,
1653
- fill: Ye(X[h])
1660
+ fill: Ge(H[u])
1654
1661
  },
1655
1662
  whileInView: {
1656
- x: b(h === 0 ? 0 : me(z.size.filter((w, n) => n < h && w))) + b(j || 0) / 2,
1657
- opacity: j && b(j) / be(j, at, p, lt, Y).length > 12 ? 1 : 0,
1658
- fill: Ye(X[h]),
1663
+ x: v(u === 0 ? 0 : he(f.size.filter((L, o) => o < u && L))) + v(V || 0) / 2,
1664
+ opacity: V && v(V) / we(V, at, b, st, W, C).length > 12 ? 1 : 0,
1665
+ fill: Ge(H[u]),
1659
1666
  transition: {
1660
1667
  duration: m.duration
1661
1668
  }
1662
1669
  }
1663
- }, initial: "initial", animate: ut ? "whileInView" : "initial", children: be(j, at, p, lt, Y) }) : null
1664
- ] }, `${z.label}-${d[h] || h}`)),
1665
- Lt ? /* @__PURE__ */ i.jsx(qe, { value: `${z.label}`.length < J ? `${z.label}` : `${`${z.label}`.substring(0, J)}...`, y: 0, x: 0 - r.left, width: 0 + r.left, height: At.bandwidth(), style: s?.yAxis?.labels, className: a?.yAxis?.labels, animate: m, isInView: ut }) : null,
1666
- Vt ? /* @__PURE__ */ i.jsx(_t.text, { className: Me("graph-value graph-value-total text-sm", it ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300", a?.graphObjectValues), style: {
1667
- ...it ? {
1668
- fill: it
1670
+ }, initial: "initial", animate: D ? "whileInView" : "initial", children: we(V, at, b, st, W, C) }) : null
1671
+ ] }, `${f.label}-${d[u] || u}`)),
1672
+ Ot ? /* @__PURE__ */ i.jsx(Je, { value: `${f.label}`.length < G ? `${f.label}` : `${`${f.label}`.substring(0, G)}...`, y: 0, x: 0 - r.left, width: 0 + r.left, height: Dt.bandwidth(), style: l?.yAxis?.labels, className: a?.yAxis?.labels, animate: m, isInView: D }) : null,
1673
+ Mt ? /* @__PURE__ */ i.jsx(ee.text, { className: Ce("graph-value graph-value-total text-sm", Z ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300", a?.graphObjectValues), style: {
1674
+ ...Z ? {
1675
+ fill: Z
1669
1676
  } : {},
1670
1677
  textAnchor: "start",
1671
- ...s?.graphObjectValues || {}
1672
- }, y: At.bandwidth() / 2, dx: 5, dy: "0.33em", variants: {
1678
+ ...l?.graphObjectValues || {}
1679
+ }, y: Dt.bandwidth() / 2, dx: 5, dy: "0.33em", variants: {
1673
1680
  initial: {
1674
- x: b(0),
1681
+ x: v(0),
1675
1682
  opacity: 0,
1676
- ...it ? {
1677
- fill: it
1683
+ ...Z ? {
1684
+ fill: Z
1678
1685
  } : {}
1679
1686
  },
1680
1687
  whileInView: {
1681
- x: b(me(z.size.map(Ys))),
1688
+ x: v(he(f.size.map(Gl))),
1682
1689
  opacity: 1,
1683
- ...it ? {
1684
- fill: it
1690
+ ...Z ? {
1691
+ fill: Z
1685
1692
  } : {},
1686
1693
  transition: {
1687
1694
  duration: m.duration
@@ -1692,188 +1699,189 @@ function Ps(e) {
1692
1699
  transition: {
1693
1700
  duration: m.duration
1694
1701
  }
1695
- }, initial: "initial", animate: ut ? "whileInView" : "initial", children: be(me(z.size.filter(Xs)), at, p, lt, Y) }) : null
1696
- ] }, z.label));
1697
- const qt = a?.yAxis?.axis;
1698
- let Qt;
1699
- t[89] !== qt ? (Qt = {
1700
- axis: qt
1701
- }, t[89] = qt, t[90] = Qt) : Qt = t[90];
1702
- const P = s?.yAxis?.axis;
1703
- let N;
1704
- t[91] !== P ? (N = {
1705
- axis: P
1706
- }, t[91] = P, t[92] = N) : N = t[92], vt = /* @__PURE__ */ i.jsx(Te, { hideAxisLine: D, x1: b(0), x2: b(0), y1: -2.5, y2: G + r.bottom, classNames: Qt, styles: N }), Bt = zt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: zt.map((z, j) => /* @__PURE__ */ i.jsx(Je, { text: z.text, color: z.color, x: b(z.value), y1: 0 - r.top, y2: G + r.bottom, textSide: b(z.value) > Wt * 0.75 || B ? "left" : "right", classNames: z.classNames, styles: z.styles, animate: m, isInView: ut }, j)) }) : null, t[16] = m, t[17] = Z, t[18] = X, t[19] = St, t[20] = Ut, t[21] = a?.graphObjectValues, t[22] = a?.xAxis?.gridLines, t[23] = a?.xAxis?.labels, t[24] = a?.xAxis?.title, t[25] = a?.yAxis?.axis, t[26] = a?.yAxis?.labels, t[27] = d, t[28] = x, t[29] = k, t[30] = F, t[31] = G, t[32] = Wt, t[33] = R, t[34] = D, t[35] = ut, t[36] = r.bottom, t[37] = r.left, t[38] = r.top, t[39] = dt, t[40] = Xt, t[41] = Q, t[42] = y, t[43] = at, t[44] = c, t[45] = C, t[46] = et, t[47] = p, t[48] = lt, t[49] = zt, t[50] = pt, t[51] = B, t[52] = K, t[53] = Lt, t[54] = Jt, t[55] = Vt, t[56] = s?.graphObjectValues, t[57] = s?.xAxis?.gridLines, t[58] = s?.xAxis?.labels, t[59] = s?.xAxis?.title, t[60] = s?.yAxis?.axis, t[61] = s?.yAxis?.labels, t[62] = Y, t[63] = E, t[64] = J, t[65] = it, t[66] = A, t[67] = yt, t[68] = bt, t[69] = vt, t[70] = Bt, t[71] = Dt, t[72] = tt, t[73] = S, t[74] = I, t[75] = It, t[76] = wt, t[77] = ct, t[78] = mt, t[79] = ht, t[80] = q;
1702
+ }, initial: "initial", animate: D ? "whileInView" : "initial", children: we(he(f.size.filter(El)), at, b, st, W, C) }) : null
1703
+ ] }, f.label));
1704
+ const Gt = a?.yAxis?.axis;
1705
+ let Jt;
1706
+ t[90] !== Gt ? (Jt = {
1707
+ axis: Gt
1708
+ }, t[90] = Gt, t[91] = Jt) : Jt = t[91];
1709
+ const Zt = l?.yAxis?.axis;
1710
+ let it;
1711
+ t[92] !== Zt ? (it = {
1712
+ axis: Zt
1713
+ }, t[92] = Zt, t[93] = it) : it = t[93], ft = /* @__PURE__ */ i.jsx(Be, { hideAxisLine: B, x1: v(0), x2: v(0), y1: -2.5, y2: Y + r.bottom, classNames: Jt, styles: it }), St = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((f, V) => /* @__PURE__ */ i.jsx(Qe, { text: f.text, color: f.color, x: v(f.value), y1: 0 - r.top, y2: Y + r.bottom, textSide: v(f.value) > Pt * 0.75 || T ? "left" : "right", classNames: f.classNames, styles: f.styles, animate: m, isInView: D }, V)) }) : null, t[16] = m, t[17] = U, t[18] = H, t[19] = Lt, t[20] = Rt, t[21] = a?.graphObjectValues, t[22] = a?.xAxis?.gridLines, t[23] = a?.xAxis?.labels, t[24] = a?.xAxis?.title, t[25] = a?.yAxis?.axis, t[26] = a?.yAxis?.labels, t[27] = d, t[28] = x, t[29] = M, t[30] = S, t[31] = Y, t[32] = Pt, t[33] = X, t[34] = B, t[35] = D, t[36] = C, t[37] = r.bottom, t[38] = r.left, t[39] = r.top, t[40] = nt, t[41] = Xt, t[42] = q, t[43] = y, t[44] = at, t[45] = c, t[46] = k, t[47] = Q, t[48] = b, t[49] = st, t[50] = kt, t[51] = ut, t[52] = T, t[53] = R, t[54] = Ot, t[55] = Kt, t[56] = Mt, t[57] = l?.graphObjectValues, t[58] = l?.xAxis?.gridLines, t[59] = l?.xAxis?.labels, t[60] = l?.xAxis?.title, t[61] = l?.yAxis?.axis, t[62] = l?.yAxis?.labels, t[63] = W, t[64] = Wt, t[65] = G, t[66] = Z, t[67] = O, t[68] = mt, t[69] = ht, t[70] = ft, t[71] = St, t[72] = Vt, t[73] = J, t[74] = j, t[75] = I, t[76] = zt, t[77] = pt, t[78] = ot, t[79] = rt, t[80] = ct, t[81] = E;
1707
1714
  } else
1708
- yt = t[67], bt = t[68], vt = t[69], Bt = t[70], Dt = t[71], tt = t[72], S = t[73], I = t[74], It = t[75], wt = t[76], ct = t[77], mt = t[78], ht = t[79], q = t[80];
1709
- let Ot;
1710
- t[93] !== yt || t[94] !== vt || t[95] !== Bt || t[96] !== q ? (Ot = /* @__PURE__ */ i.jsxs(yt, { children: [
1711
- q,
1712
- vt,
1713
- Bt
1714
- ] }), t[93] = yt, t[94] = vt, t[95] = Bt, t[96] = q, t[97] = Ot) : Ot = t[97];
1715
- let Mt;
1716
- t[98] !== x ? (Mt = x.filter(Ws).map(Hs), t[98] = x, t[99] = Mt) : Mt = t[99];
1717
- let U;
1718
- t[100] !== Dt || t[101] !== tt || t[102] !== S || t[103] !== I || t[104] !== Ot || t[105] !== Mt ? (U = /* @__PURE__ */ i.jsxs("g", { transform: Dt, children: [
1719
- tt,
1720
- S,
1715
+ mt = t[68], ht = t[69], ft = t[70], St = t[71], Vt = t[72], J = t[73], j = t[74], I = t[75], zt = t[76], pt = t[77], ot = t[78], rt = t[79], ct = t[80], E = t[81];
1716
+ let vt;
1717
+ t[94] !== mt || t[95] !== ft || t[96] !== St || t[97] !== E ? (vt = /* @__PURE__ */ i.jsxs(mt, { children: [
1718
+ E,
1719
+ ft,
1720
+ St
1721
+ ] }), t[94] = mt, t[95] = ft, t[96] = St, t[97] = E, t[98] = vt) : vt = t[98];
1722
+ let wt;
1723
+ t[99] !== x ? (wt = x.filter(Yl).map(Xl), t[99] = x, t[100] = wt) : wt = t[100];
1724
+ let K;
1725
+ t[101] !== Vt || t[102] !== J || t[103] !== j || t[104] !== I || t[105] !== vt || t[106] !== wt ? (K = /* @__PURE__ */ i.jsxs("g", { transform: Vt, children: [
1726
+ J,
1727
+ j,
1721
1728
  I,
1722
- Ot,
1723
- Mt
1724
- ] }), t[100] = Dt, t[101] = tt, t[102] = S, t[103] = I, t[104] = Ot, t[105] = Mt, t[106] = U) : U = t[106];
1725
- let kt;
1726
- t[107] !== bt || t[108] !== It || t[109] !== wt || t[110] !== ct || t[111] !== mt || t[112] !== ht || t[113] !== U ? (kt = /* @__PURE__ */ i.jsx(bt, { ref: It, width: wt, height: ct, viewBox: mt, direction: ht, children: U }), t[107] = bt, t[108] = It, t[109] = wt, t[110] = ct, t[111] = mt, t[112] = ht, t[113] = U, t[114] = kt) : kt = t[114];
1727
- let v;
1728
- t[115] !== a?.tooltip || t[116] !== Gt || t[117] !== Rt || t[118] !== V || t[119] !== s?.tooltip || t[120] !== ft ? (v = V && ft && Gt && Rt ? /* @__PURE__ */ i.jsx(je, { data: V, body: ft, xPos: Gt, yPos: Rt, backgroundStyle: s?.tooltip, className: a?.tooltip }) : null, t[115] = a?.tooltip, t[116] = Gt, t[117] = Rt, t[118] = V, t[119] = s?.tooltip, t[120] = ft, t[121] = v) : v = t[121];
1729
+ vt,
1730
+ wt
1731
+ ] }), t[101] = Vt, t[102] = J, t[103] = j, t[104] = I, t[105] = vt, t[106] = wt, t[107] = K) : K = t[107];
1732
+ let gt;
1733
+ t[108] !== ht || t[109] !== zt || t[110] !== pt || t[111] !== ot || t[112] !== rt || t[113] !== ct || t[114] !== K ? (gt = /* @__PURE__ */ i.jsx(ht, { ref: zt, width: pt, height: ot, viewBox: rt, direction: ct, children: K }), t[108] = ht, t[109] = zt, t[110] = pt, t[111] = ot, t[112] = rt, t[113] = ct, t[114] = K, t[115] = gt) : gt = t[115];
1729
1734
  let $;
1730
- t[122] !== a?.modal || t[123] !== F || t[124] !== y ? ($ = F && y !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: F, data: y, setData: L, className: a?.modal }) : null, t[122] = a?.modal, t[123] = F, t[124] = y, t[125] = $) : $ = t[125];
1731
- let O;
1732
- return t[126] !== kt || t[127] !== v || t[128] !== $ ? (O = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1733
- kt,
1734
- v,
1735
- $
1736
- ] }), t[126] = kt, t[127] = v, t[128] = $, t[129] = O) : O = t[129], O;
1737
- }
1738
- function Hs(e) {
1735
+ t[116] !== a?.tooltip || t[117] !== Tt || t[118] !== Ut || t[119] !== jt || t[120] !== l?.tooltip || t[121] !== dt ? ($ = jt && dt && Tt && Ut ? /* @__PURE__ */ i.jsx(Se, { data: jt, body: dt, xPos: Tt, yPos: Ut, backgroundStyle: l?.tooltip, className: a?.tooltip }) : null, t[116] = a?.tooltip, t[117] = Tt, t[118] = Ut, t[119] = jt, t[120] = l?.tooltip, t[121] = dt, t[122] = $) : $ = t[122];
1736
+ let Ht;
1737
+ t[123] !== a?.modal || t[124] !== S || t[125] !== y ? (Ht = S && y !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: S, data: y, setData: Ft, className: a?.modal }) : null, t[123] = a?.modal, t[124] = S, t[125] = y, t[126] = Ht) : Ht = t[126];
1738
+ let n;
1739
+ return t[127] !== gt || t[128] !== $ || t[129] !== Ht ? (n = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1740
+ gt,
1741
+ $,
1742
+ Ht
1743
+ ] }), t[127] = gt, t[128] = $, t[129] = Ht, t[130] = n) : n = t[130], n;
1744
+ }
1745
+ function Xl(e) {
1739
1746
  return e.layer;
1740
1747
  }
1741
- function Ws(e) {
1748
+ function Yl(e) {
1742
1749
  return e.position === "after";
1743
1750
  }
1744
- function Xs(e) {
1751
+ function El(e) {
1745
1752
  return e;
1746
1753
  }
1747
- function Ys(e) {
1754
+ function Gl(e) {
1748
1755
  return e || 0;
1749
1756
  }
1750
- function Es(e) {
1757
+ function Rl(e) {
1751
1758
  return e.layer;
1752
1759
  }
1753
- function Gs(e) {
1760
+ function ql(e) {
1754
1761
  return e.position === "before";
1755
1762
  }
1756
- function Rs(e) {
1763
+ function Ul(e) {
1757
1764
  return e !== 0;
1758
1765
  }
1759
- function qs(e) {
1766
+ function Jl(e) {
1760
1767
  return e !== 0;
1761
1768
  }
1762
- function Us(e) {
1769
+ function Kl(e) {
1763
1770
  return `${e.id}`;
1764
1771
  }
1765
- function Js(e) {
1766
- const t = we.c(138), {
1767
- data: l,
1768
- leftMargin: X,
1769
- rightMargin: Ut,
1770
- topMargin: Jt,
1771
- bottomMargin: Tt,
1772
- width: Ct,
1773
- height: Ft,
1774
- barColors: W,
1775
- barPadding: J,
1776
- showLabels: A,
1777
- showTicks: R,
1778
- truncateBy: ft,
1779
- tooltip: et,
1780
- onSeriesMouseOver: Lt,
1781
- suffix: Y,
1782
- prefix: lt,
1783
- showValues: Vt,
1784
- refValues: zt,
1772
+ function Ql(e) {
1773
+ const t = $e.c(140), {
1774
+ data: s,
1775
+ leftMargin: H,
1776
+ rightMargin: Rt,
1777
+ topMargin: Kt,
1778
+ bottomMargin: Nt,
1779
+ width: $t,
1780
+ height: Bt,
1781
+ barColors: P,
1782
+ barPadding: G,
1783
+ showLabels: O,
1784
+ showTicks: X,
1785
+ truncateBy: dt,
1786
+ tooltip: Q,
1787
+ onSeriesMouseOver: Ot,
1788
+ suffix: W,
1789
+ prefix: st,
1790
+ showValues: Mt,
1791
+ refValues: kt,
1785
1792
  maxValue: Xt,
1786
- onSeriesMouseClick: C,
1787
- selectedColor: K,
1788
- labelOrder: B,
1789
- maxBarThickness: T,
1790
- minBarThickness: dt,
1791
- resetSelectionOnDoubleClick: Q,
1792
- detailsOnClick: pt,
1793
- barAxisTitle: F,
1794
- valueColor: Z,
1795
- noOfTicks: it,
1793
+ onSeriesMouseClick: k,
1794
+ selectedColor: R,
1795
+ labelOrder: T,
1796
+ maxBarThickness: N,
1797
+ minBarThickness: nt,
1798
+ resetSelectionOnDoubleClick: q,
1799
+ detailsOnClick: ut,
1800
+ barAxisTitle: S,
1801
+ valueColor: U,
1802
+ noOfTicks: Z,
1796
1803
  styles: c,
1797
- classNames: s,
1804
+ classNames: l,
1798
1805
  animate: a,
1799
1806
  colorDomain: m,
1800
1807
  precision: d,
1801
- customLayers: p,
1808
+ customLayers: b,
1802
1809
  naLabel: x,
1803
- hideAxisLine: at
1804
- } = e, D = X === void 0 ? 20 : X, E = Ut === void 0 ? 20 : Ut, Yt = Jt === void 0 ? 20 : Jt, Et = Tt === void 0 ? 25 : Tt, Pt = ve(null);
1805
- let Ht;
1806
- t[0] !== a.amount || t[1] !== a.once ? (Ht = {
1810
+ hideAxisLine: at,
1811
+ locale: B
1812
+ } = e, C = H === void 0 ? 20 : H, Wt = Rt === void 0 ? 20 : Rt, qt = Kt === void 0 ? 20 : Kt, Ct = Nt === void 0 ? 25 : Nt, yt = Ae(null);
1813
+ let Yt;
1814
+ t[0] !== a.amount || t[1] !== a.once ? (Yt = {
1807
1815
  once: a.once,
1808
1816
  amount: a.amount
1809
- }, t[0] = a.amount, t[1] = a.once, t[2] = Ht) : Ht = t[2];
1810
- const nt = Fe(Pt, Ht), ut = F ? D + 30 : D;
1811
- let _;
1812
- t[3] !== Et || t[4] !== E || t[5] !== ut || t[6] !== Yt ? (_ = {
1813
- top: Yt,
1814
- bottom: Et,
1815
- left: ut,
1816
- right: E
1817
- }, t[3] = Et, t[4] = E, t[5] = ut, t[6] = Yt, t[7] = _) : _ = t[7];
1818
- const u = _, [r, V] = Zt(void 0), [gt, y] = Zt(void 0), [L, Gt] = Zt(void 0), [ot, Rt] = Zt(void 0), rt = Ct - u.left - u.right, Wt = Ft - u.top - u.bottom;
1819
- let G;
1820
- if (t[8] !== l || t[9] !== B) {
1821
- const O = /* @__PURE__ */ new Set(), b = l.map((M, f) => {
1822
- const g = B ? `${M.label}` : `${f}`;
1823
- return O.add(g), {
1824
- ...M,
1825
- id: g
1817
+ }, t[0] = a.amount, t[1] = a.once, t[2] = Yt) : Yt = t[2];
1818
+ const _ = He(yt, Yt), D = S ? C + 30 : C;
1819
+ let F;
1820
+ t[3] !== Ct || t[4] !== Wt || t[5] !== D || t[6] !== qt ? (F = {
1821
+ top: qt,
1822
+ bottom: Ct,
1823
+ left: D,
1824
+ right: Wt
1825
+ }, t[3] = Ct, t[4] = Wt, t[5] = D, t[6] = qt, t[7] = F) : F = t[7];
1826
+ const h = F, [r, jt] = _t(void 0), [z, y] = _t(void 0), [Ft, Tt] = _t(void 0), [xt, Ut] = _t(void 0), tt = $t - h.left - h.right, Pt = Bt - h.top - h.bottom;
1827
+ let Y;
1828
+ if (t[8] !== s || t[9] !== T) {
1829
+ const n = /* @__PURE__ */ new Set(), v = s.map((A, g) => {
1830
+ const w = T ? `${A.label}` : `${g}`;
1831
+ return n.add(w), {
1832
+ ...A,
1833
+ id: w
1826
1834
  };
1827
- }), At = B ? B.filter((M) => !O.has(M)) : [];
1828
- let $t;
1829
- t[11] !== l[0] ? ($t = (M) => ({
1830
- id: M,
1831
- label: M,
1832
- size: Array(l[0].size.length).fill(null)
1833
- }), t[11] = l[0], t[12] = $t) : $t = t[12], G = [...b, ...At.map($t)], t[8] = l, t[9] = B, t[10] = G;
1835
+ }), Dt = T ? T.filter((A) => !n.has(A)) : [];
1836
+ let At;
1837
+ t[11] !== s[0] ? (At = (A) => ({
1838
+ id: A,
1839
+ label: A,
1840
+ size: Array(s[0].size.length).fill(null)
1841
+ }), t[11] = s[0], t[12] = At) : At = t[12], Y = [...v, ...Dt.map(At)], t[8] = s, t[9] = T, t[10] = Y;
1834
1842
  } else
1835
- G = t[10];
1836
- const st = G;
1837
- let k;
1838
- t[13] !== st || t[14] !== B ? (k = B ?? st.map(ll), t[13] = st, t[14] = B, t[15] = k) : k = t[15];
1839
- const xt = k;
1840
- let St, yt, bt, vt, Bt, Dt, tt, S, I, It, wt, ct, mt, ht;
1841
- if (t[16] !== a || t[17] !== F || t[18] !== W || t[19] !== xt || t[20] !== J || t[21] !== s?.graphObjectValues || t[22] !== s?.xAxis?.axis || t[23] !== s?.xAxis?.labels || t[24] !== s?.yAxis?.gridLines || t[25] !== s?.yAxis?.labels || t[26] !== s?.yAxis?.title || t[27] !== m || t[28] !== p || t[29] !== st || t[30] !== pt || t[31] !== Wt || t[32] !== rt || t[33] !== Ft || t[34] !== at || t[35] !== nt || t[36] !== D || t[37] !== u.bottom || t[38] !== u.left || t[39] !== u.right || t[40] !== u.top || t[41] !== T || t[42] !== Xt || t[43] !== dt || t[44] !== gt || t[45] !== x || t[46] !== it || t[47] !== C || t[48] !== Lt || t[49] !== d || t[50] !== lt || t[51] !== zt || t[52] !== Q || t[53] !== K || t[54] !== A || t[55] !== R || t[56] !== Vt || t[57] !== c?.graphObjectValues || t[58] !== c?.xAxis?.axis || t[59] !== c?.xAxis?.labels || t[60] !== c?.yAxis?.gridLines || t[61] !== c?.yAxis?.labels || t[62] !== c?.yAxis?.title || t[63] !== Y || t[64] !== ft || t[65] !== Z || t[66] !== Ct) {
1842
- const O = Pe().domain([0, Xt]).range([Wt, 0]).nice(), b = ke().domain(xt).range([0, dt ? Math.max(rt, dt * xt.length) : T ? Math.min(rt, T * xt.length) : rt]).paddingInner(J), At = O.ticks(it);
1843
- yt = _t.svg, I = `${Ct}px`, It = `${Ft}px`, wt = `0 0 ${Ct} ${Ft}`, ct = "ltr", mt = Pt, vt = `translate(${u.left},${u.top})`;
1844
- let $t;
1845
- t[81] !== x || t[82] !== d || t[83] !== lt || t[84] !== R || t[85] !== Y ? ($t = R ? be(0, x, d, lt, Y) : void 0, t[81] = x, t[82] = d, t[83] = lt, t[84] = R, t[85] = Y, t[86] = $t) : $t = t[86];
1846
- const M = s?.xAxis?.axis, f = s?.yAxis?.labels;
1847
- let g;
1848
- t[87] !== M || t[88] !== f ? (g = {
1849
- axis: M,
1850
- label: f
1851
- }, t[87] = M, t[88] = f, t[89] = g) : g = t[89];
1852
- const Nt = c?.xAxis?.axis, qt = c?.yAxis?.labels;
1853
- let Qt;
1854
- t[90] !== Nt || t[91] !== qt ? (Qt = {
1855
- axis: Nt,
1856
- label: qt
1857
- }, t[90] = Nt, t[91] = qt, t[92] = Qt) : Qt = t[92], Bt = /* @__PURE__ */ i.jsx(Te, { hideAxisLine: at, y1: O(0), y2: O(0), x1: 0 - D, x2: rt + u.right, label: $t, labelPos: {
1858
- x: 0 - D,
1859
- y: O(0),
1843
+ Y = t[10];
1844
+ const et = Y;
1845
+ let M;
1846
+ t[13] !== et || t[14] !== T ? (M = T ?? et.map(os), t[13] = et, t[14] = T, t[15] = M) : M = t[15];
1847
+ const bt = M;
1848
+ let Lt, mt, ht, ft, St, Vt, J, j, I, zt, pt, ot, rt, ct;
1849
+ if (t[16] !== a || t[17] !== S || t[18] !== P || t[19] !== bt || t[20] !== G || t[21] !== l?.graphObjectValues || t[22] !== l?.xAxis?.axis || t[23] !== l?.xAxis?.labels || t[24] !== l?.yAxis?.gridLines || t[25] !== l?.yAxis?.labels || t[26] !== l?.yAxis?.title || t[27] !== m || t[28] !== b || t[29] !== et || t[30] !== ut || t[31] !== Pt || t[32] !== tt || t[33] !== Bt || t[34] !== at || t[35] !== _ || t[36] !== C || t[37] !== B || t[38] !== h.bottom || t[39] !== h.left || t[40] !== h.right || t[41] !== h.top || t[42] !== N || t[43] !== Xt || t[44] !== nt || t[45] !== z || t[46] !== x || t[47] !== Z || t[48] !== k || t[49] !== Ot || t[50] !== d || t[51] !== st || t[52] !== kt || t[53] !== q || t[54] !== R || t[55] !== O || t[56] !== X || t[57] !== Mt || t[58] !== c?.graphObjectValues || t[59] !== c?.xAxis?.axis || t[60] !== c?.xAxis?.labels || t[61] !== c?.yAxis?.gridLines || t[62] !== c?.yAxis?.labels || t[63] !== c?.yAxis?.title || t[64] !== W || t[65] !== dt || t[66] !== U || t[67] !== $t) {
1850
+ const n = We().domain([0, Xt]).range([Pt, 0]).nice(), v = Le().domain(bt).range([0, nt ? Math.max(tt, nt * bt.length) : N ? Math.min(tt, N * bt.length) : tt]).paddingInner(G), Dt = n.ticks(Z);
1851
+ mt = ee.svg, I = `${$t}px`, zt = `${Bt}px`, pt = `0 0 ${$t} ${Bt}`, ot = "ltr", rt = yt, ft = `translate(${h.left},${h.top})`;
1852
+ let At;
1853
+ t[82] !== B || t[83] !== x || t[84] !== d || t[85] !== st || t[86] !== X || t[87] !== W ? (At = X ? we(0, x, d, st, W, B) : void 0, t[82] = B, t[83] = x, t[84] = d, t[85] = st, t[86] = X, t[87] = W, t[88] = At) : At = t[88];
1854
+ const A = l?.xAxis?.axis, g = l?.yAxis?.labels;
1855
+ let w;
1856
+ t[89] !== A || t[90] !== g ? (w = {
1857
+ axis: A,
1858
+ label: g
1859
+ }, t[89] = A, t[90] = g, t[91] = w) : w = t[91];
1860
+ const Et = c?.xAxis?.axis, Gt = c?.yAxis?.labels;
1861
+ let Jt;
1862
+ t[92] !== Et || t[93] !== Gt ? (Jt = {
1863
+ axis: Et,
1864
+ label: Gt
1865
+ }, t[92] = Et, t[93] = Gt, t[94] = Jt) : Jt = t[94], St = /* @__PURE__ */ i.jsx(Be, { hideAxisLine: at, y1: n(0), y2: n(0), x1: 0 - C, x2: tt + h.right, label: At, labelPos: {
1866
+ x: 0 - C,
1867
+ y: n(0),
1860
1868
  dx: 0,
1861
1869
  dy: -5
1862
- }, classNames: g, styles: Qt }), Dt = R ? /* @__PURE__ */ i.jsx(Qe, { values: At.filter(sl), y: At.filter(il).map((h) => O(h)), x1: 0 - D, x2: rt + u.right, styles: {
1870
+ }, classNames: w, styles: Jt }), Vt = X ? /* @__PURE__ */ i.jsx(_e, { values: Dt.filter(as), y: Dt.filter(ss).map((u) => n(u)), x1: 0 - C, x2: tt + h.right, styles: {
1863
1871
  gridLines: c?.yAxis?.gridLines,
1864
1872
  labels: c?.yAxis?.labels
1865
1873
  }, classNames: {
1866
- gridLines: s?.yAxis?.gridLines,
1867
- labels: s?.yAxis?.labels
1868
- }, suffix: Y, prefix: lt, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
1869
- const P = 0 - D - 15, N = Wt / 2, z = c?.yAxis?.title, j = s?.yAxis?.title;
1870
- t[93] !== F || t[94] !== P || t[95] !== N || t[96] !== z || t[97] !== j ? (tt = /* @__PURE__ */ i.jsx(Se, { x: P, y: N, style: z, className: j, text: F, rotate90: !0 }), t[93] = F, t[94] = P, t[95] = N, t[96] = z, t[97] = j, t[98] = tt) : tt = t[98], t[99] !== p ? (S = p.filter(el).map(tl), t[99] = p, t[100] = S) : S = t[100], St = He, ht = st.map((h) => ee(b(h.id)) ? null : /* @__PURE__ */ i.jsxs(_t.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1874
+ gridLines: l?.yAxis?.gridLines,
1875
+ labels: l?.yAxis?.labels
1876
+ }, suffix: W, prefix: st, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d, locale: B }) : null;
1877
+ const Zt = 0 - C - 15, it = Pt / 2, f = c?.yAxis?.title, V = l?.yAxis?.title;
1878
+ t[95] !== S || t[96] !== Zt || t[97] !== it || t[98] !== f || t[99] !== V ? (J = /* @__PURE__ */ i.jsx(Fe, { x: Zt, y: it, style: f, className: V, text: S, rotate90: !0 }), t[95] = S, t[96] = Zt, t[97] = it, t[98] = f, t[99] = V, t[100] = J) : J = t[100], t[101] !== b ? (j = b.filter(ls).map(is), t[101] = b, t[102] = j) : j = t[102], Lt = Xe, ct = et.map((u) => le(v(u.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1871
1879
  initial: {
1872
- x: b(`${h.id}`),
1880
+ x: v(`${u.id}`),
1873
1881
  y: 0
1874
1882
  },
1875
1883
  whileInView: {
1876
- x: b(`${h.id}`),
1884
+ x: v(`${u.id}`),
1877
1885
  y: 0,
1878
1886
  transition: {
1879
1887
  duration: a.duration
@@ -1881,101 +1889,101 @@ function Js(e) {
1881
1889
  }
1882
1890
  }, transition: {
1883
1891
  duration: a.duration
1884
- }, initial: "initial", animate: nt ? "whileInView" : "initial", exit: {
1892
+ }, initial: "initial", animate: _ ? "whileInView" : "initial", exit: {
1885
1893
  opacity: 0,
1886
1894
  transition: {
1887
1895
  duration: a.duration
1888
1896
  }
1889
1897
  }, children: [
1890
- h.size.map((w, n) => /* @__PURE__ */ i.jsxs(_t.g, { opacity: K ? W[n] === K ? 1 : 0.3 : 1, onMouseEnter: (H) => {
1891
- V({
1892
- ...h,
1893
- sizeIndex: n
1894
- }), Rt(H.clientY), Gt(H.clientX), Lt?.({
1895
- ...h,
1896
- sizeIndex: n
1898
+ u.size.map((L, o) => /* @__PURE__ */ i.jsxs(ee.g, { opacity: R ? P[o] === R ? 1 : 0.3 : 1, onMouseEnter: (lt) => {
1899
+ jt({
1900
+ ...u,
1901
+ sizeIndex: o
1902
+ }), Ut(lt.clientY), Tt(lt.clientX), Ot?.({
1903
+ ...u,
1904
+ sizeIndex: o
1897
1905
  });
1898
- }, onMouseMove: (H) => {
1899
- V({
1900
- ...h,
1901
- sizeIndex: n
1902
- }), Rt(H.clientY), Gt(H.clientX);
1906
+ }, onMouseMove: (lt) => {
1907
+ jt({
1908
+ ...u,
1909
+ sizeIndex: o
1910
+ }), Ut(lt.clientY), Tt(lt.clientX);
1903
1911
  }, onMouseLeave: () => {
1904
- V(void 0), Gt(void 0), Rt(void 0), Lt?.(void 0);
1912
+ jt(void 0), Tt(void 0), Ut(void 0), Ot?.(void 0);
1905
1913
  }, onClick: () => {
1906
- (C || pt) && (Ne(gt, {
1907
- ...h,
1908
- sizeIndex: n
1909
- }) && Q ? (y(void 0), C?.(void 0)) : (y({
1910
- ...h,
1911
- sizeIndex: n
1912
- }), C && C({
1913
- ...h,
1914
- sizeIndex: n
1914
+ (k || ut) && (Te(z, {
1915
+ ...u,
1916
+ sizeIndex: o
1917
+ }) && q ? (y(void 0), k?.(void 0)) : (y({
1918
+ ...u,
1919
+ sizeIndex: o
1920
+ }), k && k({
1921
+ ...u,
1922
+ sizeIndex: o
1915
1923
  })));
1916
1924
  }, children: [
1917
- /* @__PURE__ */ i.jsx(_t.rect, { x: 0, width: b.bandwidth(), variants: {
1925
+ /* @__PURE__ */ i.jsx(ee.rect, { x: 0, width: v.bandwidth(), variants: {
1918
1926
  initial: {
1919
1927
  height: 0,
1920
- fill: W[n],
1921
- y: O(0)
1928
+ fill: P[o],
1929
+ y: n(0)
1922
1930
  },
1923
1931
  whileInView: {
1924
- height: Math.abs(O(me(h.size.filter((H, o) => o <= n && H))) - O(me(h.size.filter((H, o) => o < n && H)))),
1925
- y: O(me(h.size.filter((H, o) => o <= n && H))),
1926
- fill: W[n],
1932
+ height: Math.abs(n(he(u.size.filter((lt, p) => p <= o && lt))) - n(he(u.size.filter((lt, p) => p < o && lt)))),
1933
+ y: n(he(u.size.filter((lt, p) => p <= o && lt))),
1934
+ fill: P[o],
1927
1935
  transition: {
1928
1936
  duration: a.duration
1929
1937
  }
1930
1938
  }
1931
- }, initial: "initial", animate: nt ? "whileInView" : "initial", exit: {
1939
+ }, initial: "initial", animate: _ ? "whileInView" : "initial", exit: {
1932
1940
  height: 0,
1933
- y: O(0),
1941
+ y: n(0),
1934
1942
  transition: {
1935
1943
  duration: a.duration
1936
1944
  }
1937
1945
  } }),
1938
- Vt ? /* @__PURE__ */ i.jsx(_t.text, { x: b.bandwidth() / 2, style: {
1946
+ Mt ? /* @__PURE__ */ i.jsx(ee.text, { x: v.bandwidth() / 2, style: {
1939
1947
  textAnchor: "middle",
1940
1948
  ...c?.graphObjectValues || {}
1941
- }, className: Me("graph-value text-sm", s?.graphObjectValues), dy: "0.33em", variants: {
1949
+ }, className: Ce("graph-value text-sm", l?.graphObjectValues), dy: "0.33em", variants: {
1942
1950
  initial: {
1943
- y: O(0),
1951
+ y: n(0),
1944
1952
  opacity: 0,
1945
- fill: Ye(W[n])
1953
+ fill: Ge(P[o])
1946
1954
  },
1947
1955
  whileInView: {
1948
- y: O(me(h.size.filter((H, o) => o <= n && H))) + Math.abs(O(me(h.size.filter((H, o) => o <= n && H))) - O(me(h.size.filter((H, o) => o < n && H)))) / 2,
1949
- opacity: w && Math.abs(O(me(h.size.filter((H, o) => o <= n && H))) - O(me(h.size.filter((H, o) => o < n && H)))) > 20 ? 1 : 0,
1950
- fill: Ye(W[n]),
1956
+ y: n(he(u.size.filter((lt, p) => p <= o && lt))) + Math.abs(n(he(u.size.filter((lt, p) => p <= o && lt))) - n(he(u.size.filter((lt, p) => p < o && lt)))) / 2,
1957
+ opacity: L && Math.abs(n(he(u.size.filter((lt, p) => p <= o && lt))) - n(he(u.size.filter((lt, p) => p < o && lt)))) > 20 ? 1 : 0,
1958
+ fill: Ge(P[o]),
1951
1959
  transition: {
1952
1960
  duration: a.duration
1953
1961
  }
1954
1962
  }
1955
- }, initial: "initial", animate: nt ? "whileInView" : "initial", exit: {
1963
+ }, initial: "initial", animate: _ ? "whileInView" : "initial", exit: {
1956
1964
  opacity: 0,
1957
1965
  transition: {
1958
1966
  duration: a.duration
1959
1967
  }
1960
- }, children: be(w, x, d, lt, Y) }) : null
1961
- ] }, `${h.label}-${m[n] || n}`)),
1962
- A ? /* @__PURE__ */ i.jsx(Ze, { value: `${h.label}`.length < ft ? `${h.label}` : `${`${h.label}`.substring(0, ft)}...`, y: O(0) + 5, x: 0, width: b.bandwidth(), height: u.bottom, style: c?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: a, isInView: nt }) : null,
1963
- Vt ? /* @__PURE__ */ i.jsx(_t.text, { style: {
1968
+ }, children: we(L, x, d, st, W, B) }) : null
1969
+ ] }, `${u.label}-${m[o] || o}`)),
1970
+ O ? /* @__PURE__ */ i.jsx(ti, { value: `${u.label}`.length < dt ? `${u.label}` : `${`${u.label}`.substring(0, dt)}...`, y: n(0) + 5, x: 0, width: v.bandwidth(), height: h.bottom, style: c?.xAxis?.labels, className: l?.xAxis?.labels, alignment: "top", animate: a, isInView: _ }) : null,
1971
+ Mt ? /* @__PURE__ */ i.jsx(ee.text, { style: {
1964
1972
  textAnchor: "middle",
1965
1973
  ...c?.graphObjectValues || {}
1966
- }, x: b.bandwidth() / 2, dy: -10, className: Me("graph-value graph-value-total", Z ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm", s?.graphObjectValues), variants: {
1974
+ }, x: v.bandwidth() / 2, dy: -10, className: Ce("graph-value graph-value-total", U ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm", l?.graphObjectValues), variants: {
1967
1975
  initial: {
1968
- y: O(0),
1976
+ y: n(0),
1969
1977
  opacity: 0,
1970
- ...Z && {
1971
- fill: Z
1978
+ ...U && {
1979
+ fill: U
1972
1980
  }
1973
1981
  },
1974
1982
  whileInView: {
1975
- y: O(me(h.size.map(_s))),
1983
+ y: n(he(u.size.map(es))),
1976
1984
  opacity: 1,
1977
- ...Z && {
1978
- fill: Z
1985
+ ...U && {
1986
+ fill: U
1979
1987
  },
1980
1988
  transition: {
1981
1989
  duration: a.duration
@@ -1986,461 +1994,465 @@ function Js(e) {
1986
1994
  transition: {
1987
1995
  duration: a.duration
1988
1996
  }
1989
- }, initial: "initial", animate: nt ? "whileInView" : "initial", children: be(me(h.size.filter(Zs)), x, d, lt, Y) }) : null
1990
- ] }, h.label)), bt = zt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: zt.map((h, w) => /* @__PURE__ */ i.jsx(Ke, { text: h.text, color: h.color, y: O(h.value), x1: 0 - D, x2: rt + u.right, classNames: h.classNames, styles: h.styles, animate: a, isInView: nt }, w)) }) : null, t[16] = a, t[17] = F, t[18] = W, t[19] = xt, t[20] = J, t[21] = s?.graphObjectValues, t[22] = s?.xAxis?.axis, t[23] = s?.xAxis?.labels, t[24] = s?.yAxis?.gridLines, t[25] = s?.yAxis?.labels, t[26] = s?.yAxis?.title, t[27] = m, t[28] = p, t[29] = st, t[30] = pt, t[31] = Wt, t[32] = rt, t[33] = Ft, t[34] = at, t[35] = nt, t[36] = D, t[37] = u.bottom, t[38] = u.left, t[39] = u.right, t[40] = u.top, t[41] = T, t[42] = Xt, t[43] = dt, t[44] = gt, t[45] = x, t[46] = it, t[47] = C, t[48] = Lt, t[49] = d, t[50] = lt, t[51] = zt, t[52] = Q, t[53] = K, t[54] = A, t[55] = R, t[56] = Vt, t[57] = c?.graphObjectValues, t[58] = c?.xAxis?.axis, t[59] = c?.xAxis?.labels, t[60] = c?.yAxis?.gridLines, t[61] = c?.yAxis?.labels, t[62] = c?.yAxis?.title, t[63] = Y, t[64] = ft, t[65] = Z, t[66] = Ct, t[67] = St, t[68] = yt, t[69] = bt, t[70] = vt, t[71] = Bt, t[72] = Dt, t[73] = tt, t[74] = S, t[75] = I, t[76] = It, t[77] = wt, t[78] = ct, t[79] = mt, t[80] = ht;
1997
+ }, initial: "initial", animate: _ ? "whileInView" : "initial", children: we(he(u.size.filter(ts)), x, d, st, W, B) }) : null
1998
+ ] }, u.label)), ht = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((u, L) => /* @__PURE__ */ i.jsx(Ze, { text: u.text, color: u.color, y: n(u.value), x1: 0 - C, x2: tt + h.right, classNames: u.classNames, styles: u.styles, animate: a, isInView: _ }, L)) }) : null, t[16] = a, t[17] = S, t[18] = P, t[19] = bt, t[20] = G, t[21] = l?.graphObjectValues, t[22] = l?.xAxis?.axis, t[23] = l?.xAxis?.labels, t[24] = l?.yAxis?.gridLines, t[25] = l?.yAxis?.labels, t[26] = l?.yAxis?.title, t[27] = m, t[28] = b, t[29] = et, t[30] = ut, t[31] = Pt, t[32] = tt, t[33] = Bt, t[34] = at, t[35] = _, t[36] = C, t[37] = B, t[38] = h.bottom, t[39] = h.left, t[40] = h.right, t[41] = h.top, t[42] = N, t[43] = Xt, t[44] = nt, t[45] = z, t[46] = x, t[47] = Z, t[48] = k, t[49] = Ot, t[50] = d, t[51] = st, t[52] = kt, t[53] = q, t[54] = R, t[55] = O, t[56] = X, t[57] = Mt, t[58] = c?.graphObjectValues, t[59] = c?.xAxis?.axis, t[60] = c?.xAxis?.labels, t[61] = c?.yAxis?.gridLines, t[62] = c?.yAxis?.labels, t[63] = c?.yAxis?.title, t[64] = W, t[65] = dt, t[66] = U, t[67] = $t, t[68] = Lt, t[69] = mt, t[70] = ht, t[71] = ft, t[72] = St, t[73] = Vt, t[74] = J, t[75] = j, t[76] = I, t[77] = zt, t[78] = pt, t[79] = ot, t[80] = rt, t[81] = ct;
1991
1999
  } else
1992
- St = t[67], yt = t[68], bt = t[69], vt = t[70], Bt = t[71], Dt = t[72], tt = t[73], S = t[74], I = t[75], It = t[76], wt = t[77], ct = t[78], mt = t[79], ht = t[80];
1993
- let q;
1994
- t[101] !== St || t[102] !== bt || t[103] !== ht ? (q = /* @__PURE__ */ i.jsxs(St, { children: [
1995
- ht,
1996
- bt
1997
- ] }), t[101] = St, t[102] = bt, t[103] = ht, t[104] = q) : q = t[104];
1998
- let Ot;
1999
- t[105] !== p ? (Ot = p.filter(Qs).map(Ks), t[105] = p, t[106] = Ot) : Ot = t[106];
2000
- let Mt;
2001
- t[107] !== vt || t[108] !== Bt || t[109] !== Dt || t[110] !== tt || t[111] !== S || t[112] !== q || t[113] !== Ot ? (Mt = /* @__PURE__ */ i.jsxs("g", { transform: vt, children: [
2002
- Bt,
2003
- Dt,
2004
- tt,
2005
- S,
2006
- q,
2007
- Ot
2008
- ] }), t[107] = vt, t[108] = Bt, t[109] = Dt, t[110] = tt, t[111] = S, t[112] = q, t[113] = Ot, t[114] = Mt) : Mt = t[114];
2009
- let U;
2010
- t[115] !== yt || t[116] !== I || t[117] !== It || t[118] !== wt || t[119] !== ct || t[120] !== mt || t[121] !== Mt ? (U = /* @__PURE__ */ i.jsx(yt, { width: I, height: It, viewBox: wt, direction: ct, ref: mt, children: Mt }), t[115] = yt, t[116] = I, t[117] = It, t[118] = wt, t[119] = ct, t[120] = mt, t[121] = Mt, t[122] = U) : U = t[122];
2011
- let kt;
2012
- t[123] !== s?.tooltip || t[124] !== L || t[125] !== ot || t[126] !== r || t[127] !== c?.tooltip || t[128] !== et ? (kt = r && et && L && ot ? /* @__PURE__ */ i.jsx(je, { data: r, body: et, xPos: L, yPos: ot, backgroundStyle: c?.tooltip, className: s?.tooltip }) : null, t[123] = s?.tooltip, t[124] = L, t[125] = ot, t[126] = r, t[127] = c?.tooltip, t[128] = et, t[129] = kt) : kt = t[129];
2013
- let v;
2014
- t[130] !== s?.modal || t[131] !== pt || t[132] !== gt ? (v = pt && gt !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: pt, data: gt, setData: y, className: s?.modal }) : null, t[130] = s?.modal, t[131] = pt, t[132] = gt, t[133] = v) : v = t[133];
2000
+ Lt = t[68], mt = t[69], ht = t[70], ft = t[71], St = t[72], Vt = t[73], J = t[74], j = t[75], I = t[76], zt = t[77], pt = t[78], ot = t[79], rt = t[80], ct = t[81];
2001
+ let E;
2002
+ t[103] !== Lt || t[104] !== ht || t[105] !== ct ? (E = /* @__PURE__ */ i.jsxs(Lt, { children: [
2003
+ ct,
2004
+ ht
2005
+ ] }), t[103] = Lt, t[104] = ht, t[105] = ct, t[106] = E) : E = t[106];
2006
+ let vt;
2007
+ t[107] !== b ? (vt = b.filter(_l).map(Zl), t[107] = b, t[108] = vt) : vt = t[108];
2008
+ let wt;
2009
+ t[109] !== ft || t[110] !== St || t[111] !== Vt || t[112] !== J || t[113] !== j || t[114] !== E || t[115] !== vt ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: ft, children: [
2010
+ St,
2011
+ Vt,
2012
+ J,
2013
+ j,
2014
+ E,
2015
+ vt
2016
+ ] }), t[109] = ft, t[110] = St, t[111] = Vt, t[112] = J, t[113] = j, t[114] = E, t[115] = vt, t[116] = wt) : wt = t[116];
2017
+ let K;
2018
+ t[117] !== mt || t[118] !== I || t[119] !== zt || t[120] !== pt || t[121] !== ot || t[122] !== rt || t[123] !== wt ? (K = /* @__PURE__ */ i.jsx(mt, { width: I, height: zt, viewBox: pt, direction: ot, ref: rt, children: wt }), t[117] = mt, t[118] = I, t[119] = zt, t[120] = pt, t[121] = ot, t[122] = rt, t[123] = wt, t[124] = K) : K = t[124];
2019
+ let gt;
2020
+ t[125] !== l?.tooltip || t[126] !== Ft || t[127] !== xt || t[128] !== r || t[129] !== c?.tooltip || t[130] !== Q ? (gt = r && Q && Ft && xt ? /* @__PURE__ */ i.jsx(Se, { data: r, body: Q, xPos: Ft, yPos: xt, backgroundStyle: c?.tooltip, className: l?.tooltip }) : null, t[125] = l?.tooltip, t[126] = Ft, t[127] = xt, t[128] = r, t[129] = c?.tooltip, t[130] = Q, t[131] = gt) : gt = t[131];
2015
2021
  let $;
2016
- return t[134] !== U || t[135] !== kt || t[136] !== v ? ($ = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2017
- U,
2018
- kt,
2019
- v
2020
- ] }), t[134] = U, t[135] = kt, t[136] = v, t[137] = $) : $ = t[137], $;
2022
+ t[132] !== l?.modal || t[133] !== ut || t[134] !== z ? ($ = ut && z !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: ut, data: z, setData: y, className: l?.modal }) : null, t[132] = l?.modal, t[133] = ut, t[134] = z, t[135] = $) : $ = t[135];
2023
+ let Ht;
2024
+ return t[136] !== K || t[137] !== gt || t[138] !== $ ? (Ht = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2025
+ K,
2026
+ gt,
2027
+ $
2028
+ ] }), t[136] = K, t[137] = gt, t[138] = $, t[139] = Ht) : Ht = t[139], Ht;
2021
2029
  }
2022
- function Ks(e) {
2030
+ function Zl(e) {
2023
2031
  return e.layer;
2024
2032
  }
2025
- function Qs(e) {
2033
+ function _l(e) {
2026
2034
  return e.position === "after";
2027
2035
  }
2028
- function Zs(e) {
2036
+ function ts(e) {
2029
2037
  return e;
2030
2038
  }
2031
- function _s(e) {
2039
+ function es(e) {
2032
2040
  return e || 0;
2033
2041
  }
2034
- function tl(e) {
2042
+ function is(e) {
2035
2043
  return e.layer;
2036
2044
  }
2037
- function el(e) {
2045
+ function ls(e) {
2038
2046
  return e.position === "before";
2039
2047
  }
2040
- function il(e) {
2048
+ function ss(e) {
2041
2049
  return e !== 0;
2042
2050
  }
2043
- function sl(e) {
2051
+ function as(e) {
2044
2052
  return e !== 0;
2045
2053
  }
2046
- function ll(e) {
2054
+ function os(e) {
2047
2055
  return `${e.id}`;
2048
2056
  }
2049
- function al(e) {
2050
- const t = we.c(127), {
2051
- data: l,
2052
- graphTitle: X,
2053
- colors: Ut,
2054
- sources: Jt,
2055
- graphDescription: Tt,
2056
- barPadding: Ct,
2057
- showTicks: Ft,
2058
- truncateBy: W,
2059
- height: J,
2060
- width: A,
2061
- footNote: R,
2062
- colorDomain: ft,
2063
- colorLegendTitle: et,
2064
- padding: Lt,
2065
- backgroundColor: Y,
2066
- topMargin: lt,
2067
- bottomMargin: Vt,
2068
- leftMargin: zt,
2057
+ function ns(e) {
2058
+ const t = $e.c(128), {
2059
+ data: s,
2060
+ graphTitle: H,
2061
+ colors: Rt,
2062
+ sources: Kt,
2063
+ graphDescription: Nt,
2064
+ barPadding: $t,
2065
+ showTicks: Bt,
2066
+ truncateBy: P,
2067
+ height: G,
2068
+ width: O,
2069
+ footNote: X,
2070
+ colorDomain: dt,
2071
+ colorLegendTitle: Q,
2072
+ padding: Ot,
2073
+ backgroundColor: W,
2074
+ topMargin: st,
2075
+ bottomMargin: Mt,
2076
+ leftMargin: kt,
2069
2077
  rightMargin: Xt,
2070
- tooltip: C,
2071
- onSeriesMouseOver: K,
2072
- suffix: B,
2073
- prefix: T,
2074
- showLabels: dt,
2075
- relativeHeight: Q,
2076
- showValues: pt,
2077
- refValues: F,
2078
- graphID: Z,
2079
- maxValue: it,
2078
+ tooltip: k,
2079
+ onSeriesMouseOver: R,
2080
+ suffix: T,
2081
+ prefix: N,
2082
+ showLabels: nt,
2083
+ relativeHeight: q,
2084
+ showValues: ut,
2085
+ refValues: S,
2086
+ graphID: U,
2087
+ maxValue: Z,
2080
2088
  onSeriesMouseClick: c,
2081
- graphDownload: s,
2089
+ graphDownload: l,
2082
2090
  dataDownload: a,
2083
2091
  language: m,
2084
2092
  labelOrder: d,
2085
- minHeight: p,
2093
+ minHeight: b,
2086
2094
  theme: x,
2087
2095
  maxBarThickness: at,
2088
- sortParameter: D,
2089
- maxNumberOfBars: E,
2090
- minBarThickness: Yt,
2091
- showColorScale: Et,
2092
- ariaLabel: Pt,
2093
- resetSelectionOnDoubleClick: Ht,
2094
- detailsOnClick: nt,
2095
- barAxisTitle: ut,
2096
- noOfTicks: _,
2097
- valueColor: u,
2098
- styles: r,
2099
- classNames: V,
2100
- filterNA: gt,
2101
- animate: y,
2102
- precision: L,
2103
- customLayers: Gt,
2104
- timeline: ot,
2105
- naLabel: Rt,
2106
- sortData: rt,
2107
- orientation: Wt,
2108
- hideAxisLine: G
2109
- } = e, st = Ut === void 0 ? pe.light.categoricalColors.colors : Ut, k = Ct === void 0 ? 0.25 : Ct, xt = Ft === void 0 ? !0 : Ft, St = W === void 0 ? 999 : W, yt = Y === void 0 ? !1 : Y, bt = B === void 0 ? "" : B, vt = T === void 0 ? "" : T, Bt = dt === void 0 ? !0 : dt, Dt = pt === void 0 ? !0 : pt, tt = s === void 0 ? !1 : s, S = a === void 0 ? !1 : a, I = m === void 0 ? "en" : m, It = p === void 0 ? 0 : p, wt = x === void 0 ? "light" : x, ct = Et === void 0 ? !0 : Et, mt = Ht === void 0 ? !0 : Ht, ht = _ === void 0 ? 5 : _, q = gt === void 0 ? !0 : gt, Ot = y === void 0 ? !1 : y, Mt = L === void 0 ? 2 : L;
2110
- let U;
2111
- t[0] !== Gt ? (U = Gt === void 0 ? [] : Gt, t[0] = Gt, t[1] = U) : U = t[1];
2112
- const kt = U;
2113
- let v;
2114
- t[2] !== ot ? (v = ot === void 0 ? {
2096
+ sortParameter: B,
2097
+ maxNumberOfBars: C,
2098
+ minBarThickness: Wt,
2099
+ showColorScale: qt,
2100
+ ariaLabel: Ct,
2101
+ resetSelectionOnDoubleClick: yt,
2102
+ detailsOnClick: Yt,
2103
+ barAxisTitle: _,
2104
+ noOfTicks: D,
2105
+ valueColor: F,
2106
+ styles: h,
2107
+ classNames: r,
2108
+ filterNA: jt,
2109
+ animate: z,
2110
+ precision: y,
2111
+ locale: Ft,
2112
+ customLayers: Tt,
2113
+ timeline: xt,
2114
+ naLabel: Ut,
2115
+ sortData: tt,
2116
+ orientation: Pt,
2117
+ hideAxisLine: Y
2118
+ } = e, et = Rt === void 0 ? ye.light.categoricalColors.colors : Rt, M = $t === void 0 ? 0.25 : $t, bt = Bt === void 0 ? !0 : Bt, Lt = P === void 0 ? 999 : P, mt = W === void 0 ? !1 : W, ht = T === void 0 ? "" : T, ft = N === void 0 ? "" : N, St = nt === void 0 ? !0 : nt, Vt = ut === void 0 ? !0 : ut, J = l === void 0 ? !1 : l, j = a === void 0 ? !1 : a, I = m === void 0 ? "en" : m, zt = b === void 0 ? 0 : b, pt = x === void 0 ? "light" : x, ot = qt === void 0 ? !0 : qt, rt = yt === void 0 ? !0 : yt, ct = D === void 0 ? 5 : D, E = jt === void 0 ? !0 : jt, vt = z === void 0 ? !1 : z, wt = y === void 0 ? 2 : y, K = Ft === void 0 ? "en" : Ft;
2119
+ let gt;
2120
+ t[0] !== Tt ? (gt = Tt === void 0 ? [] : Tt, t[0] = Tt, t[1] = gt) : gt = t[1];
2121
+ const $ = gt;
2122
+ let Ht;
2123
+ t[2] !== xt ? (Ht = xt === void 0 ? {
2115
2124
  enabled: !1,
2116
2125
  autoplay: !1,
2117
2126
  showOnlyActiveDate: !0
2118
- } : ot, t[2] = ot, t[3] = v) : v = t[3];
2119
- const $ = v, O = Rt === void 0 ? "NA" : Rt, b = Wt === void 0 ? "vertical" : Wt, At = G === void 0 ? !1 : G, $t = b === "horizontal" ? Ps : Js, [M, f] = Zt(0), [g, Nt] = Zt(0), [qt, Qt] = Zt($.autoplay);
2120
- let P;
2121
- if (t[4] !== l || t[5] !== $.dateFormat) {
2122
- let jt;
2123
- t[7] !== $.dateFormat ? (jt = (se) => Re(`${se.date}`, $.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = $.dateFormat, t[8] = jt) : jt = t[8], P = [...new Set(l.filter(bl).map(jt))], P.sort(yl), t[4] = l, t[5] = $.dateFormat, t[6] = P;
2127
+ } : xt, t[2] = xt, t[3] = Ht) : Ht = t[3];
2128
+ const n = Ht, v = Ut === void 0 ? "NA" : Ut, Dt = Pt === void 0 ? "vertical" : Pt, At = Y === void 0 ? !1 : Y, A = Dt === "horizontal" ? Wl : Ql, [g, w] = _t(0), [Et, Gt] = _t(0), [Jt, Zt] = _t(n.autoplay);
2129
+ let it;
2130
+ if (t[4] !== s || t[5] !== n.dateFormat) {
2131
+ let It;
2132
+ t[7] !== n.dateFormat ? (It = (ae) => Ue(`${ae.date}`, n.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = n.dateFormat, t[8] = It) : It = t[8], it = [...new Set(s.filter(ws).map(It))], it.sort(vs), t[4] = s, t[5] = n.dateFormat, t[6] = it;
2124
2133
  } else
2125
- P = t[6];
2126
- const N = P, [z, j] = Zt($.autoplay ? 0 : N.length - 1), [h, w] = Zt(void 0), n = ve(null), H = ve(null);
2127
- let o, ie;
2128
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = () => {
2129
- const jt = new ResizeObserver((se) => {
2130
- f(se[0].target.clientWidth || 620), Nt(se[0].target.clientHeight || 480);
2134
+ it = t[6];
2135
+ const f = it, [V, u] = _t(n.autoplay ? 0 : f.length - 1), [L, o] = _t(void 0), lt = Ae(null), p = Ae(null);
2136
+ let te, se;
2137
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (te = () => {
2138
+ const It = new ResizeObserver((ae) => {
2139
+ w(ae[0].target.clientWidth || 620), Gt(ae[0].target.clientHeight || 480);
2131
2140
  });
2132
- return n.current && jt.observe(n.current), () => jt.disconnect();
2133
- }, ie = [], t[9] = o, t[10] = ie) : (o = t[9], ie = t[10]), Ie(o, ie);
2134
- let le, ge;
2135
- t[11] !== qt || t[12] !== $.speed || t[13] !== N ? (le = () => {
2136
- const jt = setInterval(() => {
2137
- j((se) => se < N.length - 1 ? se + 1 : 0);
2138
- }, ($.speed || 2) * 1e3);
2139
- return qt || clearInterval(jt), () => clearInterval(jt);
2140
- }, ge = [N, qt, $.speed], t[11] = qt, t[12] = $.speed, t[13] = N, t[14] = le, t[15] = ge) : (le = t[14], ge = t[15]), Ie(le, ge);
2141
- const Oe = $.dateFormat || "yyyy";
2142
- let fe;
2143
- t[16] !== z || t[17] !== Oe || t[18] !== $.showOnlyActiveDate || t[19] !== N ? (fe = Ee(N, z, $.showOnlyActiveDate, Oe), t[16] = z, t[17] = Oe, t[18] = $.showOnlyActiveDate, t[19] = N, t[20] = fe) : fe = t[20];
2144
- const Ae = fe, ye = V?.graphContainer, he = r?.graphContainer;
2145
- let ae;
2146
- t[21] !== V?.description || t[22] !== V?.title || t[23] !== l || t[24] !== S || t[25] !== Tt || t[26] !== tt || t[27] !== X || t[28] !== r?.description || t[29] !== r?.title || t[30] !== A ? (ae = X || Tt || tt || S ? /* @__PURE__ */ i.jsx(_e, { styles: {
2141
+ return lt.current && It.observe(lt.current), () => It.disconnect();
2142
+ }, se = [], t[9] = te, t[10] = se) : (te = t[9], se = t[10]), je(te, se);
2143
+ let pe, be;
2144
+ t[11] !== Jt || t[12] !== n.speed || t[13] !== f ? (pe = () => {
2145
+ const It = setInterval(() => {
2146
+ u((ae) => ae < f.length - 1 ? ae + 1 : 0);
2147
+ }, (n.speed || 2) * 1e3);
2148
+ return Jt || clearInterval(It), () => clearInterval(It);
2149
+ }, be = [f, Jt, n.speed], t[11] = Jt, t[12] = n.speed, t[13] = f, t[14] = pe, t[15] = be) : (pe = t[14], be = t[15]), je(pe, be);
2150
+ const ke = n.dateFormat || "yyyy";
2151
+ let ge;
2152
+ t[16] !== V || t[17] !== ke || t[18] !== n.showOnlyActiveDate || t[19] !== f ? (ge = Re(f, V, n.showOnlyActiveDate, ke), t[16] = V, t[17] = ke, t[18] = n.showOnlyActiveDate, t[19] = f, t[20] = ge) : ge = t[20];
2153
+ const Oe = ge, ve = r?.graphContainer, fe = h?.graphContainer;
2154
+ let oe;
2155
+ t[21] !== r?.description || t[22] !== r?.title || t[23] !== s || t[24] !== j || t[25] !== Nt || t[26] !== J || t[27] !== H || t[28] !== h?.description || t[29] !== h?.title || t[30] !== O ? (oe = H || Nt || J || j ? /* @__PURE__ */ i.jsx(ei, { styles: {
2156
+ title: h?.title,
2157
+ description: h?.description
2158
+ }, classNames: {
2147
2159
  title: r?.title,
2148
2160
  description: r?.description
2149
- }, classNames: {
2150
- title: V?.title,
2151
- description: V?.description
2152
- }, graphTitle: X, graphDescription: Tt, width: A, graphDownload: tt ? H : void 0, dataDownload: S ? l.map(gl).filter(pl).length > 0 ? l.map(fl).filter(hl) : l.filter(ml) : null }) : null, t[21] = V?.description, t[22] = V?.title, t[23] = l, t[24] = S, t[25] = Tt, t[26] = tt, t[27] = X, t[28] = r?.description, t[29] = r?.title, t[30] = A, t[31] = ae) : ae = t[31];
2161
+ }, graphTitle: H, graphDescription: Nt, width: O, graphDownload: J ? p : void 0, dataDownload: j ? s.map(bs).filter(ys).length > 0 ? s.map(gs).filter(ps) : s.filter(fs) : null }) : null, t[21] = r?.description, t[22] = r?.title, t[23] = s, t[24] = j, t[25] = Nt, t[26] = J, t[27] = H, t[28] = h?.description, t[29] = h?.title, t[30] = O, t[31] = oe) : oe = t[31];
2153
2162
  let ne;
2154
- t[32] !== z || t[33] !== Ae || t[34] !== qt || t[35] !== $.enabled || t[36] !== N ? (ne = $.enabled && N.length > 0 && Ae ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
2163
+ t[32] !== V || t[33] !== Oe || t[34] !== Jt || t[35] !== n.enabled || t[36] !== f ? (ne = n.enabled && f.length > 0 && Oe ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
2155
2164
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
2156
- Qt(!qt);
2157
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": qt ? "Click to pause animation" : "Click to play animation", children: qt ? /* @__PURE__ */ i.jsx(si, {}) : /* @__PURE__ */ i.jsx(li, {}) }),
2158
- /* @__PURE__ */ i.jsx(Ge, { min: N[0], max: N[N.length - 1], marks: Ae, step: null, defaultValue: N[N.length - 1], value: N[z], onChangeComplete: (jt) => {
2159
- j(N.indexOf(jt));
2160
- }, onChange: (jt) => {
2161
- j(N.indexOf(jt));
2165
+ Zt(!Jt);
2166
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Jt ? "Click to pause animation" : "Click to play animation", children: Jt ? /* @__PURE__ */ i.jsx(ai, {}) : /* @__PURE__ */ i.jsx(oi, {}) }),
2167
+ /* @__PURE__ */ i.jsx(qe, { min: f[0], max: f[f.length - 1], marks: Oe, step: null, defaultValue: f[f.length - 1], value: f[V], onChangeComplete: (It) => {
2168
+ u(f.indexOf(It));
2169
+ }, onChange: (It) => {
2170
+ u(f.indexOf(It));
2162
2171
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
2163
- ] }) : null, t[32] = z, t[33] = Ae, t[34] = qt, t[35] = $.enabled, t[36] = N, t[37] = ne) : ne = t[37];
2164
- let de;
2165
- t[38] !== V?.colorLegend || t[39] !== ft || t[40] !== et || t[41] !== st || t[42] !== l.length || t[43] !== ct || t[44] !== A ? (de = ct && l.length > 0 ? /* @__PURE__ */ i.jsx(ei, { width: A, colorDomain: ft, colors: st, colorLegendTitle: et, setSelectedColor: w, showNAColor: !1, className: V?.colorLegend }) : null, t[38] = V?.colorLegend, t[39] = ft, t[40] = et, t[41] = st, t[42] = l.length, t[43] = ct, t[44] = A, t[45] = de) : de = t[45];
2166
- let oe;
2167
- t[46] !== l.length ? (oe = l.length === 0 && /* @__PURE__ */ i.jsx(ii, {}), t[46] = l.length, t[47] = oe) : oe = t[47];
2172
+ ] }) : null, t[32] = V, t[33] = Oe, t[34] = Jt, t[35] = n.enabled, t[36] = f, t[37] = ne) : ne = t[37];
2173
+ let ue;
2174
+ t[38] !== r?.colorLegend || t[39] !== dt || t[40] !== Q || t[41] !== et || t[42] !== s.length || t[43] !== ot || t[44] !== O ? (ue = ot && s.length > 0 ? /* @__PURE__ */ i.jsx(li, { width: O, colorDomain: dt, colors: et, colorLegendTitle: Q, setSelectedColor: o, showNAColor: !1, className: r?.colorLegend }) : null, t[38] = r?.colorLegend, t[39] = dt, t[40] = Q, t[41] = et, t[42] = s.length, t[43] = ot, t[44] = O, t[45] = ue) : ue = t[45];
2168
2175
  let re;
2169
- t[48] !== $t || t[49] !== Ot || t[50] !== ut || t[51] !== k || t[52] !== Vt || t[53] !== V || t[54] !== ft || t[55] !== st || t[56] !== kt || t[57] !== l || t[58] !== nt || t[59] !== q || t[60] !== At || t[61] !== z || t[62] !== d || t[63] !== I || t[64] !== zt || t[65] !== at || t[66] !== E || t[67] !== it || t[68] !== Yt || t[69] !== O || t[70] !== ht || t[71] !== c || t[72] !== K || t[73] !== Mt || t[74] !== vt || t[75] !== F || t[76] !== mt || t[77] !== Xt || t[78] !== h || t[79] !== Bt || t[80] !== xt || t[81] !== Dt || t[82] !== rt || t[83] !== D || t[84] !== r || t[85] !== bt || t[86] !== g || t[87] !== M || t[88] !== $.dateFormat || t[89] !== $.enabled || t[90] !== C || t[91] !== lt || t[92] !== St || t[93] !== N || t[94] !== u ? (re = M && g && l.length > 0 ? /* @__PURE__ */ i.jsx($t, { hideAxisLine: At, data: D !== void 0 ? D === "total" ? We(De(l, $.dateFormat || "yyyy").filter((jt) => $.enabled ? `${jt.date}` === Ce(new Date(N[z]), $.dateFormat || "yyyy") : jt).filter((jt) => q ? !jt.size.every(xl) : jt), dl, [rt || "asc"]).filter((jt, se) => E ? se < E : !0) : We(De(l, $.dateFormat || "yyyy").filter((jt) => $.enabled ? `${jt.date}` === Ce(new Date(N[z]), $.dateFormat || "yyyy") : jt).filter((jt) => q ? !jt.size.every(cl) : jt), (jt) => ee(jt.size[D]) ? -1 / 0 : jt.size[D], [rt || "asc"]).filter((jt, se) => E ? se < E : !0) : De(l, $.dateFormat || "yyyy").filter((jt) => $.enabled ? `${jt.date}` === Ce(new Date(N[z]), $.dateFormat || "yyyy") : jt).filter((jt) => q ? !jt.size.every(rl) : jt).filter((jt, se) => E ? se < E : !0), barColors: st, width: M, height: g, barPadding: k, showTicks: xt, leftMargin: zt, rightMargin: Xt, topMargin: lt, bottomMargin: Vt, truncateBy: St, showLabels: Bt, tooltip: C, onSeriesMouseOver: K, showValues: Dt, suffix: bt, prefix: vt, refValues: F, maxValue: ee(it) ? Math.max(...l.map(nl)) : it, onSeriesMouseClick: c, selectedColor: h, rtl: I === "he" || I === "ar", labelOrder: d, maxBarThickness: at, minBarThickness: Yt, resetSelectionOnDoubleClick: mt, detailsOnClick: nt, barAxisTitle: ut, noOfTicks: ht, valueColor: u, classNames: V, styles: r, animate: Ot === !0 ? {
2176
+ t[46] !== s.length ? (re = s.length === 0 && /* @__PURE__ */ i.jsx(si, {}), t[46] = s.length, t[47] = re) : re = t[47];
2177
+ let ce;
2178
+ t[48] !== A || t[49] !== vt || t[50] !== _ || t[51] !== M || t[52] !== Mt || t[53] !== r || t[54] !== dt || t[55] !== et || t[56] !== $ || t[57] !== s || t[58] !== Yt || t[59] !== E || t[60] !== At || t[61] !== V || t[62] !== d || t[63] !== I || t[64] !== kt || t[65] !== K || t[66] !== at || t[67] !== C || t[68] !== Z || t[69] !== Wt || t[70] !== v || t[71] !== ct || t[72] !== c || t[73] !== R || t[74] !== wt || t[75] !== ft || t[76] !== S || t[77] !== rt || t[78] !== Xt || t[79] !== L || t[80] !== St || t[81] !== bt || t[82] !== Vt || t[83] !== tt || t[84] !== B || t[85] !== h || t[86] !== ht || t[87] !== Et || t[88] !== g || t[89] !== n.dateFormat || t[90] !== n.enabled || t[91] !== k || t[92] !== st || t[93] !== Lt || t[94] !== f || t[95] !== F ? (ce = g && Et && s.length > 0 ? /* @__PURE__ */ i.jsx(A, { hideAxisLine: At, data: B !== void 0 ? B === "total" ? Ye(Ne(s, n.dateFormat || "yyyy").filter((It) => n.enabled ? `${It.date}` === Ve(new Date(f[V]), n.dateFormat || "yyyy") : It).filter((It) => E ? !It.size.every(hs) : It), xs, [tt || "asc"]).filter((It, ae) => C ? ae < C : !0) : Ye(Ne(s, n.dateFormat || "yyyy").filter((It) => n.enabled ? `${It.date}` === Ve(new Date(f[V]), n.dateFormat || "yyyy") : It).filter((It) => E ? !It.size.every(us) : It), (It) => le(It.size[B]) ? -1 / 0 : It.size[B], [tt || "asc"]).filter((It, ae) => C ? ae < C : !0) : Ne(s, n.dateFormat || "yyyy").filter((It) => n.enabled ? `${It.date}` === Ve(new Date(f[V]), n.dateFormat || "yyyy") : It).filter((It) => E ? !It.size.every(ds) : It).filter((It, ae) => C ? ae < C : !0), barColors: et, width: g, height: Et, barPadding: M, showTicks: bt, leftMargin: kt, rightMargin: Xt, topMargin: st, bottomMargin: Mt, truncateBy: Lt, showLabels: St, tooltip: k, onSeriesMouseOver: R, showValues: Vt, suffix: ht, prefix: ft, refValues: S, maxValue: le(Z) ? Math.max(...s.map(rs)) : Z, onSeriesMouseClick: c, selectedColor: L, rtl: I === "he" || I === "ar", labelOrder: d, maxBarThickness: at, minBarThickness: Wt, resetSelectionOnDoubleClick: rt, detailsOnClick: Yt, barAxisTitle: _, noOfTicks: ct, valueColor: F, classNames: r, styles: h, animate: vt === !0 ? {
2170
2179
  duration: 0.5,
2171
2180
  once: !0,
2172
2181
  amount: 0.5
2173
- } : Ot || {
2182
+ } : vt || {
2174
2183
  duration: 0,
2175
2184
  once: !0,
2176
2185
  amount: 0
2177
- }, colorDomain: ft, precision: Mt, customLayers: kt, naLabel: O }) : null, t[48] = $t, t[49] = Ot, t[50] = ut, t[51] = k, t[52] = Vt, t[53] = V, t[54] = ft, t[55] = st, t[56] = kt, t[57] = l, t[58] = nt, t[59] = q, t[60] = At, t[61] = z, t[62] = d, t[63] = I, t[64] = zt, t[65] = at, t[66] = E, t[67] = it, t[68] = Yt, t[69] = O, t[70] = ht, t[71] = c, t[72] = K, t[73] = Mt, t[74] = vt, t[75] = F, t[76] = mt, t[77] = Xt, t[78] = h, t[79] = Bt, t[80] = xt, t[81] = Dt, t[82] = rt, t[83] = D, t[84] = r, t[85] = bt, t[86] = g, t[87] = M, t[88] = $.dateFormat, t[89] = $.enabled, t[90] = C, t[91] = lt, t[92] = St, t[93] = N, t[94] = u, t[95] = re) : re = t[95];
2178
- let ue;
2179
- t[96] !== oe || t[97] !== re ? (ue = /* @__PURE__ */ i.jsxs(ai, { ref: n, children: [
2180
- oe,
2181
- re
2182
- ] }), t[96] = oe, t[97] = re, t[98] = ue) : ue = t[98];
2186
+ }, colorDomain: dt, precision: wt, customLayers: $, naLabel: v, locale: K }) : null, t[48] = A, t[49] = vt, t[50] = _, t[51] = M, t[52] = Mt, t[53] = r, t[54] = dt, t[55] = et, t[56] = $, t[57] = s, t[58] = Yt, t[59] = E, t[60] = At, t[61] = V, t[62] = d, t[63] = I, t[64] = kt, t[65] = K, t[66] = at, t[67] = C, t[68] = Z, t[69] = Wt, t[70] = v, t[71] = ct, t[72] = c, t[73] = R, t[74] = wt, t[75] = ft, t[76] = S, t[77] = rt, t[78] = Xt, t[79] = L, t[80] = St, t[81] = bt, t[82] = Vt, t[83] = tt, t[84] = B, t[85] = h, t[86] = ht, t[87] = Et, t[88] = g, t[89] = n.dateFormat, t[90] = n.enabled, t[91] = k, t[92] = st, t[93] = Lt, t[94] = f, t[95] = F, t[96] = ce) : ce = t[96];
2183
2187
  let xe;
2184
- t[99] !== de || t[100] !== ue ? (xe = /* @__PURE__ */ i.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
2185
- de,
2186
- ue
2187
- ] }), t[99] = de, t[100] = ue, t[101] = xe) : xe = t[101];
2188
- let ce;
2189
- t[102] !== V?.footnote || t[103] !== V?.source || t[104] !== R || t[105] !== Jt || t[106] !== r?.footnote || t[107] !== r?.source || t[108] !== A ? (ce = Jt || R ? /* @__PURE__ */ i.jsx(ti, { styles: {
2188
+ t[97] !== re || t[98] !== ce ? (xe = /* @__PURE__ */ i.jsxs(ni, { ref: lt, children: [
2189
+ re,
2190
+ ce
2191
+ ] }), t[97] = re, t[98] = ce, t[99] = xe) : xe = t[99];
2192
+ let me;
2193
+ t[100] !== ue || t[101] !== xe ? (me = /* @__PURE__ */ i.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
2194
+ ue,
2195
+ xe
2196
+ ] }), t[100] = ue, t[101] = xe, t[102] = me) : me = t[102];
2197
+ let de;
2198
+ t[103] !== r?.footnote || t[104] !== r?.source || t[105] !== X || t[106] !== Kt || t[107] !== h?.footnote || t[108] !== h?.source || t[109] !== O ? (de = Kt || X ? /* @__PURE__ */ i.jsx(ii, { styles: {
2199
+ footnote: h?.footnote,
2200
+ source: h?.source
2201
+ }, classNames: {
2190
2202
  footnote: r?.footnote,
2191
2203
  source: r?.source
2192
- }, classNames: {
2193
- footnote: V?.footnote,
2194
- source: V?.source
2195
- }, sources: Jt, footNote: R, width: A }) : null, t[102] = V?.footnote, t[103] = V?.source, t[104] = R, t[105] = Jt, t[106] = r?.footnote, t[107] = r?.source, t[108] = A, t[109] = ce) : ce = t[109];
2196
- let Kt;
2197
- return t[110] !== Pt || t[111] !== yt || t[112] !== Z || t[113] !== J || t[114] !== I || t[115] !== It || t[116] !== Lt || t[117] !== Q || t[118] !== ye || t[119] !== he || t[120] !== ae || t[121] !== ne || t[122] !== xe || t[123] !== ce || t[124] !== wt || t[125] !== A ? (Kt = /* @__PURE__ */ i.jsxs(ni, { className: ye, style: he, id: Z, ref: H, "aria-label": Pt, backgroundColor: yt, theme: wt, language: I, minHeight: It, width: A, height: J, relativeHeight: Q, padding: Lt, children: [
2198
- ae,
2204
+ }, sources: Kt, footNote: X, width: O }) : null, t[103] = r?.footnote, t[104] = r?.source, t[105] = X, t[106] = Kt, t[107] = h?.footnote, t[108] = h?.source, t[109] = O, t[110] = de) : de = t[110];
2205
+ let Qt;
2206
+ return t[111] !== Ct || t[112] !== mt || t[113] !== U || t[114] !== G || t[115] !== I || t[116] !== zt || t[117] !== Ot || t[118] !== q || t[119] !== ve || t[120] !== fe || t[121] !== oe || t[122] !== ne || t[123] !== me || t[124] !== de || t[125] !== pt || t[126] !== O ? (Qt = /* @__PURE__ */ i.jsxs(ri, { className: ve, style: fe, id: U, ref: p, "aria-label": Ct, backgroundColor: mt, theme: pt, language: I, minHeight: zt, width: O, height: G, relativeHeight: q, padding: Ot, children: [
2207
+ oe,
2199
2208
  ne,
2200
- xe,
2201
- ce
2202
- ] }), t[110] = Pt, t[111] = yt, t[112] = Z, t[113] = J, t[114] = I, t[115] = It, t[116] = Lt, t[117] = Q, t[118] = ye, t[119] = he, t[120] = ae, t[121] = ne, t[122] = xe, t[123] = ce, t[124] = wt, t[125] = A, t[126] = Kt) : Kt = t[126], Kt;
2209
+ me,
2210
+ de
2211
+ ] }), t[111] = Ct, t[112] = mt, t[113] = U, t[114] = G, t[115] = I, t[116] = zt, t[117] = Ot, t[118] = q, t[119] = ve, t[120] = fe, t[121] = oe, t[122] = ne, t[123] = me, t[124] = de, t[125] = pt, t[126] = O, t[127] = Qt) : Qt = t[127], Qt;
2203
2212
  }
2204
- function nl(e) {
2205
- return me(e.size.filter(ol)) || 0;
2213
+ function rs(e) {
2214
+ return he(e.size.filter(cs)) || 0;
2206
2215
  }
2207
- function ol(e) {
2208
- return !ee(e);
2216
+ function cs(e) {
2217
+ return !le(e);
2209
2218
  }
2210
- function rl(e) {
2219
+ function ds(e) {
2211
2220
  return e == null;
2212
2221
  }
2213
- function cl(e) {
2222
+ function us(e) {
2214
2223
  return e == null;
2215
2224
  }
2216
- function dl(e) {
2217
- return me(e.size.filter(ul));
2225
+ function xs(e) {
2226
+ return he(e.size.filter(ms));
2218
2227
  }
2219
- function ul(e) {
2220
- return !ee(e);
2228
+ function ms(e) {
2229
+ return !le(e);
2221
2230
  }
2222
- function xl(e) {
2231
+ function hs(e) {
2223
2232
  return e == null;
2224
2233
  }
2225
- function ml(e) {
2234
+ function fs(e) {
2226
2235
  return e !== void 0;
2227
2236
  }
2228
- function hl(e) {
2237
+ function ps(e) {
2229
2238
  return e !== void 0;
2230
2239
  }
2231
- function fl(e) {
2240
+ function gs(e) {
2232
2241
  return e.data;
2233
2242
  }
2234
- function pl(e) {
2243
+ function ys(e) {
2235
2244
  return e !== void 0;
2236
2245
  }
2237
- function gl(e) {
2246
+ function bs(e) {
2238
2247
  return e.data;
2239
2248
  }
2240
- function yl(e, t) {
2249
+ function vs(e, t) {
2241
2250
  return e - t;
2242
2251
  }
2243
- function bl(e) {
2252
+ function ws(e) {
2244
2253
  return e.date;
2245
2254
  }
2246
- function _l(e) {
2247
- const t = we.c(63), {
2248
- data: l,
2249
- graphTitle: X,
2250
- colors: Ut,
2251
- barPadding: Jt,
2252
- showTicks: Tt,
2253
- leftMargin: Ct,
2254
- rightMargin: Ft,
2255
- topMargin: W,
2256
- bottomMargin: J,
2257
- truncateBy: A,
2258
- showLabels: R,
2259
- showValues: ft,
2260
- backgroundColor: et,
2261
- suffix: Lt,
2262
- prefix: Y,
2263
- sources: lt,
2264
- graphDescription: Vt,
2265
- height: zt,
2255
+ function ea(e) {
2256
+ const t = $e.c(64), {
2257
+ data: s,
2258
+ graphTitle: H,
2259
+ colors: Rt,
2260
+ barPadding: Kt,
2261
+ showTicks: Nt,
2262
+ leftMargin: $t,
2263
+ rightMargin: Bt,
2264
+ topMargin: P,
2265
+ bottomMargin: G,
2266
+ truncateBy: O,
2267
+ showLabels: X,
2268
+ showValues: dt,
2269
+ backgroundColor: Q,
2270
+ suffix: Ot,
2271
+ prefix: W,
2272
+ sources: st,
2273
+ graphDescription: Mt,
2274
+ height: kt,
2266
2275
  width: Xt,
2267
- footNote: C,
2268
- colorDomain: K,
2269
- colorLegendTitle: B,
2270
- padding: T,
2271
- relativeHeight: dt,
2272
- tooltip: Q,
2273
- onSeriesMouseOver: pt,
2274
- refValues: F,
2275
- showColorScale: Z,
2276
- graphID: it,
2276
+ footNote: k,
2277
+ colorDomain: R,
2278
+ colorLegendTitle: T,
2279
+ padding: N,
2280
+ relativeHeight: nt,
2281
+ tooltip: q,
2282
+ onSeriesMouseOver: ut,
2283
+ refValues: S,
2284
+ showColorScale: U,
2285
+ graphID: Z,
2277
2286
  maxValue: c,
2278
- minValue: s,
2287
+ minValue: l,
2279
2288
  highlightedDataPoints: a,
2280
2289
  onSeriesMouseClick: m,
2281
2290
  graphDownload: d,
2282
- dataDownload: p,
2291
+ dataDownload: b,
2283
2292
  language: x,
2284
2293
  theme: at,
2285
- sortData: D,
2286
- labelOrder: E,
2287
- showNAColor: Yt,
2288
- minHeight: Et,
2289
- maxBarThickness: Pt,
2290
- maxNumberOfBars: Ht,
2291
- minBarThickness: nt,
2292
- ariaLabel: ut,
2293
- resetSelectionOnDoubleClick: _,
2294
- detailsOnClick: u,
2295
- barAxisTitle: r,
2296
- noOfTicks: V,
2297
- valueColor: gt,
2298
- orientation: y,
2299
- styles: L,
2300
- classNames: Gt,
2301
- filterNA: ot,
2302
- animate: Rt,
2303
- dimmedOpacity: rt,
2304
- precision: Wt,
2305
- customLayers: G,
2306
- timeline: st,
2307
- naLabel: k,
2308
- trackColor: xt,
2309
- hideAxisLine: St
2310
- } = e, yt = y === void 0 ? "vertical" : y, bt = St === void 0 ? !1 : St;
2311
- let vt;
2312
- return t[0] !== Rt || t[1] !== ut || t[2] !== et || t[3] !== r || t[4] !== Jt || t[5] !== J || t[6] !== Gt || t[7] !== K || t[8] !== B || t[9] !== Ut || t[10] !== G || t[11] !== l || t[12] !== p || t[13] !== u || t[14] !== rt || t[15] !== ot || t[16] !== C || t[17] !== Vt || t[18] !== d || t[19] !== it || t[20] !== X || t[21] !== zt || t[22] !== bt || t[23] !== a || t[24] !== E || t[25] !== x || t[26] !== Ct || t[27] !== Pt || t[28] !== Ht || t[29] !== c || t[30] !== nt || t[31] !== Et || t[32] !== s || t[33] !== k || t[34] !== V || t[35] !== m || t[36] !== pt || t[37] !== yt || t[38] !== T || t[39] !== Wt || t[40] !== Y || t[41] !== F || t[42] !== dt || t[43] !== _ || t[44] !== Ft || t[45] !== Z || t[46] !== R || t[47] !== Yt || t[48] !== Tt || t[49] !== ft || t[50] !== D || t[51] !== lt || t[52] !== L || t[53] !== Lt || t[54] !== at || t[55] !== st || t[56] !== Q || t[57] !== W || t[58] !== xt || t[59] !== A || t[60] !== gt || t[61] !== Xt ? (vt = /* @__PURE__ */ i.jsx(vs, { data: l, graphTitle: X, colors: Ut, barPadding: Jt, showTicks: Tt, leftMargin: Ct, rightMargin: Ft, topMargin: W, bottomMargin: J, truncateBy: A, showLabels: R, showValues: ft, backgroundColor: et, suffix: Lt, prefix: Y, sources: lt, graphDescription: Vt, height: zt, width: Xt, footNote: C, colorDomain: K, colorLegendTitle: B, padding: T, relativeHeight: dt, tooltip: Q, onSeriesMouseOver: pt, refValues: F, showColorScale: Z, graphID: it, maxValue: c, minValue: s, highlightedDataPoints: a, onSeriesMouseClick: m, graphDownload: d, dataDownload: p, language: x, theme: at, sortData: D, labelOrder: E, showNAColor: Yt, minHeight: Et, maxBarThickness: Pt, maxNumberOfBars: Ht, minBarThickness: nt, ariaLabel: ut, resetSelectionOnDoubleClick: _, styles: L, detailsOnClick: u, barAxisTitle: r, noOfTicks: V, valueColor: gt, classNames: Gt, filterNA: ot, animate: Rt, dimmedOpacity: rt, precision: Wt, customLayers: G, timeline: st, naLabel: k, orientation: yt, trackColor: xt, hideAxisLine: bt }), t[0] = Rt, t[1] = ut, t[2] = et, t[3] = r, t[4] = Jt, t[5] = J, t[6] = Gt, t[7] = K, t[8] = B, t[9] = Ut, t[10] = G, t[11] = l, t[12] = p, t[13] = u, t[14] = rt, t[15] = ot, t[16] = C, t[17] = Vt, t[18] = d, t[19] = it, t[20] = X, t[21] = zt, t[22] = bt, t[23] = a, t[24] = E, t[25] = x, t[26] = Ct, t[27] = Pt, t[28] = Ht, t[29] = c, t[30] = nt, t[31] = Et, t[32] = s, t[33] = k, t[34] = V, t[35] = m, t[36] = pt, t[37] = yt, t[38] = T, t[39] = Wt, t[40] = Y, t[41] = F, t[42] = dt, t[43] = _, t[44] = Ft, t[45] = Z, t[46] = R, t[47] = Yt, t[48] = Tt, t[49] = ft, t[50] = D, t[51] = lt, t[52] = L, t[53] = Lt, t[54] = at, t[55] = st, t[56] = Q, t[57] = W, t[58] = xt, t[59] = A, t[60] = gt, t[61] = Xt, t[62] = vt) : vt = t[62], vt;
2313
- }
2314
- function ta(e) {
2315
- const t = we.c(58), {
2316
- data: l,
2317
- graphTitle: X,
2318
- colors: Ut,
2319
- sources: Jt,
2320
- graphDescription: Tt,
2321
- barPadding: Ct,
2322
- showTicks: Ft,
2323
- truncateBy: W,
2324
- height: J,
2325
- width: A,
2326
- footNote: R,
2327
- colorDomain: ft,
2328
- colorLegendTitle: et,
2329
- suffix: Lt,
2330
- prefix: Y,
2331
- showValues: lt,
2332
- padding: Vt,
2333
- backgroundColor: zt,
2294
+ sortData: B,
2295
+ labelOrder: C,
2296
+ showNAColor: Wt,
2297
+ minHeight: qt,
2298
+ maxBarThickness: Ct,
2299
+ maxNumberOfBars: yt,
2300
+ minBarThickness: Yt,
2301
+ ariaLabel: _,
2302
+ resetSelectionOnDoubleClick: D,
2303
+ detailsOnClick: F,
2304
+ barAxisTitle: h,
2305
+ noOfTicks: r,
2306
+ valueColor: jt,
2307
+ orientation: z,
2308
+ styles: y,
2309
+ classNames: Ft,
2310
+ filterNA: Tt,
2311
+ animate: xt,
2312
+ dimmedOpacity: Ut,
2313
+ precision: tt,
2314
+ customLayers: Pt,
2315
+ timeline: Y,
2316
+ naLabel: et,
2317
+ trackColor: M,
2318
+ hideAxisLine: bt,
2319
+ locale: Lt
2320
+ } = e, mt = z === void 0 ? "vertical" : z, ht = bt === void 0 ? !1 : bt;
2321
+ let ft;
2322
+ return t[0] !== xt || t[1] !== _ || t[2] !== Q || t[3] !== h || t[4] !== Kt || t[5] !== G || t[6] !== Ft || t[7] !== R || t[8] !== T || t[9] !== Rt || t[10] !== Pt || t[11] !== s || t[12] !== b || t[13] !== F || t[14] !== Ut || t[15] !== Tt || t[16] !== k || t[17] !== Mt || t[18] !== d || t[19] !== Z || t[20] !== H || t[21] !== kt || t[22] !== ht || t[23] !== a || t[24] !== C || t[25] !== x || t[26] !== $t || t[27] !== Lt || t[28] !== Ct || t[29] !== yt || t[30] !== c || t[31] !== Yt || t[32] !== qt || t[33] !== l || t[34] !== et || t[35] !== r || t[36] !== m || t[37] !== ut || t[38] !== mt || t[39] !== N || t[40] !== tt || t[41] !== W || t[42] !== S || t[43] !== nt || t[44] !== D || t[45] !== Bt || t[46] !== U || t[47] !== X || t[48] !== Wt || t[49] !== Nt || t[50] !== dt || t[51] !== B || t[52] !== st || t[53] !== y || t[54] !== Ot || t[55] !== at || t[56] !== Y || t[57] !== q || t[58] !== P || t[59] !== M || t[60] !== O || t[61] !== jt || t[62] !== Xt ? (ft = /* @__PURE__ */ i.jsx(Al, { data: s, graphTitle: H, colors: Rt, barPadding: Kt, showTicks: Nt, leftMargin: $t, rightMargin: Bt, topMargin: P, bottomMargin: G, truncateBy: O, showLabels: X, showValues: dt, backgroundColor: Q, suffix: Ot, prefix: W, sources: st, graphDescription: Mt, height: kt, width: Xt, footNote: k, colorDomain: R, colorLegendTitle: T, padding: N, relativeHeight: nt, tooltip: q, onSeriesMouseOver: ut, refValues: S, showColorScale: U, graphID: Z, maxValue: c, minValue: l, highlightedDataPoints: a, onSeriesMouseClick: m, graphDownload: d, dataDownload: b, language: x, theme: at, sortData: B, labelOrder: C, showNAColor: Wt, minHeight: qt, maxBarThickness: Ct, maxNumberOfBars: yt, minBarThickness: Yt, ariaLabel: _, resetSelectionOnDoubleClick: D, styles: y, detailsOnClick: F, barAxisTitle: h, noOfTicks: r, valueColor: jt, classNames: Ft, filterNA: Tt, animate: xt, dimmedOpacity: Ut, precision: tt, customLayers: Pt, timeline: Y, naLabel: et, orientation: mt, trackColor: M, hideAxisLine: ht, locale: Lt }), t[0] = xt, t[1] = _, t[2] = Q, t[3] = h, t[4] = Kt, t[5] = G, t[6] = Ft, t[7] = R, t[8] = T, t[9] = Rt, t[10] = Pt, t[11] = s, t[12] = b, t[13] = F, t[14] = Ut, t[15] = Tt, t[16] = k, t[17] = Mt, t[18] = d, t[19] = Z, t[20] = H, t[21] = kt, t[22] = ht, t[23] = a, t[24] = C, t[25] = x, t[26] = $t, t[27] = Lt, t[28] = Ct, t[29] = yt, t[30] = c, t[31] = Yt, t[32] = qt, t[33] = l, t[34] = et, t[35] = r, t[36] = m, t[37] = ut, t[38] = mt, t[39] = N, t[40] = tt, t[41] = W, t[42] = S, t[43] = nt, t[44] = D, t[45] = Bt, t[46] = U, t[47] = X, t[48] = Wt, t[49] = Nt, t[50] = dt, t[51] = B, t[52] = st, t[53] = y, t[54] = Ot, t[55] = at, t[56] = Y, t[57] = q, t[58] = P, t[59] = M, t[60] = O, t[61] = jt, t[62] = Xt, t[63] = ft) : ft = t[63], ft;
2323
+ }
2324
+ function ia(e) {
2325
+ const t = $e.c(59), {
2326
+ data: s,
2327
+ graphTitle: H,
2328
+ colors: Rt,
2329
+ sources: Kt,
2330
+ graphDescription: Nt,
2331
+ barPadding: $t,
2332
+ showTicks: Bt,
2333
+ truncateBy: P,
2334
+ height: G,
2335
+ width: O,
2336
+ footNote: X,
2337
+ colorDomain: dt,
2338
+ colorLegendTitle: Q,
2339
+ suffix: Ot,
2340
+ prefix: W,
2341
+ showValues: st,
2342
+ padding: Mt,
2343
+ backgroundColor: kt,
2334
2344
  leftMargin: Xt,
2335
- rightMargin: C,
2336
- topMargin: K,
2337
- bottomMargin: B,
2338
- showLabels: T,
2339
- relativeHeight: dt,
2340
- tooltip: Q,
2341
- onSeriesMouseOver: pt,
2342
- refValues: F,
2343
- graphID: Z,
2344
- maxValue: it,
2345
+ rightMargin: k,
2346
+ topMargin: R,
2347
+ bottomMargin: T,
2348
+ showLabels: N,
2349
+ relativeHeight: nt,
2350
+ tooltip: q,
2351
+ onSeriesMouseOver: ut,
2352
+ refValues: S,
2353
+ graphID: U,
2354
+ maxValue: Z,
2345
2355
  minValue: c,
2346
- onSeriesMouseClick: s,
2356
+ onSeriesMouseClick: l,
2347
2357
  graphDownload: a,
2348
2358
  dataDownload: m,
2349
2359
  language: d,
2350
- labelOrder: p,
2360
+ labelOrder: b,
2351
2361
  minHeight: x,
2352
2362
  theme: at,
2353
- sortParameter: D,
2354
- sortData: E,
2355
- maxBarThickness: Yt,
2356
- ariaLabel: Et,
2357
- resetSelectionOnDoubleClick: Pt,
2358
- detailsOnClick: Ht,
2359
- barAxisTitle: nt,
2360
- noOfTicks: ut,
2361
- valueColor: _,
2362
- orientation: u,
2363
- styles: r,
2364
- classNames: V,
2365
- filterNA: gt,
2366
- animate: y,
2367
- precision: L,
2368
- customLayers: Gt,
2369
- showColorScale: ot,
2370
- timeline: Rt,
2371
- naLabel: rt,
2372
- hideAxisLine: Wt
2373
- } = e, G = u === void 0 ? "vertical" : u, st = Wt === void 0 ? !1 : Wt;
2374
- let k;
2375
- return t[0] !== y || t[1] !== Et || t[2] !== zt || t[3] !== nt || t[4] !== Ct || t[5] !== B || t[6] !== V || t[7] !== ft || t[8] !== et || t[9] !== Ut || t[10] !== Gt || t[11] !== l || t[12] !== m || t[13] !== Ht || t[14] !== gt || t[15] !== R || t[16] !== Tt || t[17] !== a || t[18] !== Z || t[19] !== X || t[20] !== J || t[21] !== st || t[22] !== p || t[23] !== d || t[24] !== Xt || t[25] !== Yt || t[26] !== it || t[27] !== x || t[28] !== c || t[29] !== rt || t[30] !== ut || t[31] !== s || t[32] !== pt || t[33] !== G || t[34] !== Vt || t[35] !== L || t[36] !== Y || t[37] !== F || t[38] !== dt || t[39] !== Pt || t[40] !== C || t[41] !== ot || t[42] !== T || t[43] !== Ft || t[44] !== lt || t[45] !== E || t[46] !== D || t[47] !== Jt || t[48] !== r || t[49] !== Lt || t[50] !== at || t[51] !== Rt || t[52] !== Q || t[53] !== K || t[54] !== W || t[55] !== _ || t[56] !== A ? (k = /* @__PURE__ */ i.jsx(Ci, { orientation: G, data: l, graphTitle: X, colors: Ut, sources: Jt, graphDescription: Tt, barPadding: Ct, showTicks: Ft, truncateBy: W, height: J, width: A, footNote: R, colorDomain: ft, colorLegendTitle: et, suffix: Lt, prefix: Y, showValues: lt, padding: Vt, backgroundColor: zt, leftMargin: Xt, rightMargin: C, sortParameter: D, sortData: E, topMargin: K, bottomMargin: B, showLabels: T, relativeHeight: dt, tooltip: Q, onSeriesMouseOver: pt, refValues: F, graphID: Z, maxValue: it, minValue: c, onSeriesMouseClick: s, graphDownload: a, dataDownload: m, language: d, labelOrder: p, minHeight: x, theme: at, maxBarThickness: Yt, ariaLabel: Et, resetSelectionOnDoubleClick: Pt, styles: r, detailsOnClick: Ht, barAxisTitle: nt, noOfTicks: ut, valueColor: _, classNames: V, filterNA: gt, animate: y, precision: L, customLayers: Gt, showColorScale: ot, timeline: Rt, naLabel: rt, hideAxisLine: st }), t[0] = y, t[1] = Et, t[2] = zt, t[3] = nt, t[4] = Ct, t[5] = B, t[6] = V, t[7] = ft, t[8] = et, t[9] = Ut, t[10] = Gt, t[11] = l, t[12] = m, t[13] = Ht, t[14] = gt, t[15] = R, t[16] = Tt, t[17] = a, t[18] = Z, t[19] = X, t[20] = J, t[21] = st, t[22] = p, t[23] = d, t[24] = Xt, t[25] = Yt, t[26] = it, t[27] = x, t[28] = c, t[29] = rt, t[30] = ut, t[31] = s, t[32] = pt, t[33] = G, t[34] = Vt, t[35] = L, t[36] = Y, t[37] = F, t[38] = dt, t[39] = Pt, t[40] = C, t[41] = ot, t[42] = T, t[43] = Ft, t[44] = lt, t[45] = E, t[46] = D, t[47] = Jt, t[48] = r, t[49] = Lt, t[50] = at, t[51] = Rt, t[52] = Q, t[53] = K, t[54] = W, t[55] = _, t[56] = A, t[57] = k) : k = t[57], k;
2376
- }
2377
- function ea(e) {
2378
- const t = we.c(59), {
2379
- data: l,
2380
- graphTitle: X,
2381
- colors: Ut,
2382
- sources: Jt,
2383
- graphDescription: Tt,
2384
- barPadding: Ct,
2385
- showTicks: Ft,
2386
- leftMargin: W,
2387
- rightMargin: J,
2388
- topMargin: A,
2389
- bottomMargin: R,
2390
- truncateBy: ft,
2391
- showLabels: et,
2392
- showValues: Lt,
2393
- backgroundColor: Y,
2394
- suffix: lt,
2395
- prefix: Vt,
2396
- height: zt,
2363
+ sortParameter: B,
2364
+ sortData: C,
2365
+ maxBarThickness: Wt,
2366
+ ariaLabel: qt,
2367
+ resetSelectionOnDoubleClick: Ct,
2368
+ detailsOnClick: yt,
2369
+ barAxisTitle: Yt,
2370
+ noOfTicks: _,
2371
+ valueColor: D,
2372
+ orientation: F,
2373
+ styles: h,
2374
+ classNames: r,
2375
+ filterNA: jt,
2376
+ animate: z,
2377
+ precision: y,
2378
+ customLayers: Ft,
2379
+ showColorScale: Tt,
2380
+ timeline: xt,
2381
+ naLabel: Ut,
2382
+ hideAxisLine: tt,
2383
+ locale: Pt
2384
+ } = e, Y = F === void 0 ? "vertical" : F, et = tt === void 0 ? !1 : tt;
2385
+ let M;
2386
+ return t[0] !== z || t[1] !== qt || t[2] !== kt || t[3] !== Yt || t[4] !== $t || t[5] !== T || t[6] !== r || t[7] !== dt || t[8] !== Q || t[9] !== Rt || t[10] !== Ft || t[11] !== s || t[12] !== m || t[13] !== yt || t[14] !== jt || t[15] !== X || t[16] !== Nt || t[17] !== a || t[18] !== U || t[19] !== H || t[20] !== G || t[21] !== et || t[22] !== b || t[23] !== d || t[24] !== Xt || t[25] !== Pt || t[26] !== Wt || t[27] !== Z || t[28] !== x || t[29] !== c || t[30] !== Ut || t[31] !== _ || t[32] !== l || t[33] !== ut || t[34] !== Y || t[35] !== Mt || t[36] !== y || t[37] !== W || t[38] !== S || t[39] !== nt || t[40] !== Ct || t[41] !== k || t[42] !== Tt || t[43] !== N || t[44] !== Bt || t[45] !== st || t[46] !== C || t[47] !== B || t[48] !== Kt || t[49] !== h || t[50] !== Ot || t[51] !== at || t[52] !== xt || t[53] !== q || t[54] !== R || t[55] !== P || t[56] !== D || t[57] !== O ? (M = /* @__PURE__ */ i.jsx(Vi, { orientation: Y, data: s, graphTitle: H, colors: Rt, sources: Kt, graphDescription: Nt, barPadding: $t, showTicks: Bt, truncateBy: P, height: G, width: O, footNote: X, colorDomain: dt, colorLegendTitle: Q, suffix: Ot, prefix: W, showValues: st, padding: Mt, backgroundColor: kt, leftMargin: Xt, rightMargin: k, sortParameter: B, sortData: C, topMargin: R, bottomMargin: T, showLabels: N, relativeHeight: nt, tooltip: q, onSeriesMouseOver: ut, refValues: S, graphID: U, maxValue: Z, minValue: c, onSeriesMouseClick: l, graphDownload: a, dataDownload: m, language: d, labelOrder: b, minHeight: x, theme: at, maxBarThickness: Wt, ariaLabel: qt, resetSelectionOnDoubleClick: Ct, styles: h, detailsOnClick: yt, barAxisTitle: Yt, noOfTicks: _, valueColor: D, classNames: r, filterNA: jt, animate: z, precision: y, customLayers: Ft, showColorScale: Tt, timeline: xt, naLabel: Ut, hideAxisLine: et, locale: Pt }), t[0] = z, t[1] = qt, t[2] = kt, t[3] = Yt, t[4] = $t, t[5] = T, t[6] = r, t[7] = dt, t[8] = Q, t[9] = Rt, t[10] = Ft, t[11] = s, t[12] = m, t[13] = yt, t[14] = jt, t[15] = X, t[16] = Nt, t[17] = a, t[18] = U, t[19] = H, t[20] = G, t[21] = et, t[22] = b, t[23] = d, t[24] = Xt, t[25] = Pt, t[26] = Wt, t[27] = Z, t[28] = x, t[29] = c, t[30] = Ut, t[31] = _, t[32] = l, t[33] = ut, t[34] = Y, t[35] = Mt, t[36] = y, t[37] = W, t[38] = S, t[39] = nt, t[40] = Ct, t[41] = k, t[42] = Tt, t[43] = N, t[44] = Bt, t[45] = st, t[46] = C, t[47] = B, t[48] = Kt, t[49] = h, t[50] = Ot, t[51] = at, t[52] = xt, t[53] = q, t[54] = R, t[55] = P, t[56] = D, t[57] = O, t[58] = M) : M = t[58], M;
2387
+ }
2388
+ function la(e) {
2389
+ const t = $e.c(60), {
2390
+ data: s,
2391
+ graphTitle: H,
2392
+ colors: Rt,
2393
+ sources: Kt,
2394
+ graphDescription: Nt,
2395
+ barPadding: $t,
2396
+ showTicks: Bt,
2397
+ leftMargin: P,
2398
+ rightMargin: G,
2399
+ topMargin: O,
2400
+ bottomMargin: X,
2401
+ truncateBy: dt,
2402
+ showLabels: Q,
2403
+ showValues: Ot,
2404
+ backgroundColor: W,
2405
+ suffix: st,
2406
+ prefix: Mt,
2407
+ height: kt,
2397
2408
  width: Xt,
2398
- footNote: C,
2399
- colorDomain: K,
2400
- colorLegendTitle: B,
2401
- padding: T,
2402
- tooltip: dt,
2403
- onSeriesMouseOver: Q,
2404
- relativeHeight: pt,
2405
- refValues: F,
2406
- graphID: Z,
2407
- maxValue: it,
2409
+ footNote: k,
2410
+ colorDomain: R,
2411
+ colorLegendTitle: T,
2412
+ padding: N,
2413
+ tooltip: nt,
2414
+ onSeriesMouseOver: q,
2415
+ relativeHeight: ut,
2416
+ refValues: S,
2417
+ graphID: U,
2418
+ maxValue: Z,
2408
2419
  onSeriesMouseClick: c,
2409
- graphDownload: s,
2420
+ graphDownload: l,
2410
2421
  dataDownload: a,
2411
2422
  language: m,
2412
2423
  theme: d,
2413
- labelOrder: p,
2424
+ labelOrder: b,
2414
2425
  minHeight: x,
2415
2426
  maxBarThickness: at,
2416
- sortParameter: D,
2417
- sortData: E,
2418
- maxNumberOfBars: Yt,
2419
- minBarThickness: Et,
2420
- ariaLabel: Pt,
2421
- resetSelectionOnDoubleClick: Ht,
2422
- detailsOnClick: nt,
2423
- barAxisTitle: ut,
2424
- noOfTicks: _,
2425
- valueColor: u,
2426
- orientation: r,
2427
- styles: V,
2428
- classNames: gt,
2429
- filterNA: y,
2430
- animate: L,
2431
- precision: Gt,
2432
- customLayers: ot,
2433
- showColorScale: Rt,
2434
- timeline: rt,
2435
- naLabel: Wt,
2436
- hideAxisLine: G
2437
- } = e, st = r === void 0 ? "vertical" : r, k = G === void 0 ? !1 : G;
2438
- let xt;
2439
- return t[0] !== L || t[1] !== Pt || t[2] !== Y || t[3] !== ut || t[4] !== Ct || t[5] !== R || t[6] !== gt || t[7] !== K || t[8] !== B || t[9] !== Ut || t[10] !== ot || t[11] !== l || t[12] !== a || t[13] !== nt || t[14] !== y || t[15] !== C || t[16] !== Tt || t[17] !== s || t[18] !== Z || t[19] !== X || t[20] !== zt || t[21] !== k || t[22] !== p || t[23] !== m || t[24] !== W || t[25] !== at || t[26] !== Yt || t[27] !== it || t[28] !== Et || t[29] !== x || t[30] !== Wt || t[31] !== _ || t[32] !== c || t[33] !== Q || t[34] !== st || t[35] !== T || t[36] !== Gt || t[37] !== Vt || t[38] !== F || t[39] !== pt || t[40] !== Ht || t[41] !== J || t[42] !== Rt || t[43] !== et || t[44] !== Ft || t[45] !== Lt || t[46] !== E || t[47] !== D || t[48] !== Jt || t[49] !== V || t[50] !== lt || t[51] !== d || t[52] !== rt || t[53] !== dt || t[54] !== A || t[55] !== ft || t[56] !== u || t[57] !== Xt ? (xt = /* @__PURE__ */ i.jsx(al, { data: l, graphTitle: X, colors: Ut, sources: Jt, graphDescription: Tt, barPadding: Ct, showTicks: Ft, leftMargin: W, rightMargin: J, topMargin: A, bottomMargin: R, truncateBy: ft, showLabels: et, showValues: Lt, backgroundColor: Y, suffix: lt, prefix: Vt, height: zt, width: Xt, footNote: C, colorDomain: K, colorLegendTitle: B, padding: T, tooltip: dt, onSeriesMouseOver: Q, relativeHeight: pt, refValues: F, graphID: Z, maxValue: it, onSeriesMouseClick: c, graphDownload: s, dataDownload: a, language: m, theme: d, labelOrder: p, minHeight: x, maxBarThickness: at, sortParameter: D, sortData: E, maxNumberOfBars: Yt, minBarThickness: Et, ariaLabel: Pt, resetSelectionOnDoubleClick: Ht, styles: V, detailsOnClick: nt, barAxisTitle: ut, noOfTicks: _, valueColor: u, classNames: gt, filterNA: y, animate: L, precision: Gt, customLayers: ot, showColorScale: Rt, timeline: rt, naLabel: Wt, orientation: st, hideAxisLine: k }), t[0] = L, t[1] = Pt, t[2] = Y, t[3] = ut, t[4] = Ct, t[5] = R, t[6] = gt, t[7] = K, t[8] = B, t[9] = Ut, t[10] = ot, t[11] = l, t[12] = a, t[13] = nt, t[14] = y, t[15] = C, t[16] = Tt, t[17] = s, t[18] = Z, t[19] = X, t[20] = zt, t[21] = k, t[22] = p, t[23] = m, t[24] = W, t[25] = at, t[26] = Yt, t[27] = it, t[28] = Et, t[29] = x, t[30] = Wt, t[31] = _, t[32] = c, t[33] = Q, t[34] = st, t[35] = T, t[36] = Gt, t[37] = Vt, t[38] = F, t[39] = pt, t[40] = Ht, t[41] = J, t[42] = Rt, t[43] = et, t[44] = Ft, t[45] = Lt, t[46] = E, t[47] = D, t[48] = Jt, t[49] = V, t[50] = lt, t[51] = d, t[52] = rt, t[53] = dt, t[54] = A, t[55] = ft, t[56] = u, t[57] = Xt, t[58] = xt) : xt = t[58], xt;
2427
+ sortParameter: B,
2428
+ sortData: C,
2429
+ maxNumberOfBars: Wt,
2430
+ minBarThickness: qt,
2431
+ ariaLabel: Ct,
2432
+ resetSelectionOnDoubleClick: yt,
2433
+ detailsOnClick: Yt,
2434
+ barAxisTitle: _,
2435
+ noOfTicks: D,
2436
+ valueColor: F,
2437
+ orientation: h,
2438
+ styles: r,
2439
+ classNames: jt,
2440
+ filterNA: z,
2441
+ animate: y,
2442
+ precision: Ft,
2443
+ customLayers: Tt,
2444
+ showColorScale: xt,
2445
+ timeline: Ut,
2446
+ naLabel: tt,
2447
+ hideAxisLine: Pt,
2448
+ locale: Y
2449
+ } = e, et = h === void 0 ? "vertical" : h, M = Pt === void 0 ? !1 : Pt;
2450
+ let bt;
2451
+ return t[0] !== y || t[1] !== Ct || t[2] !== W || t[3] !== _ || t[4] !== $t || t[5] !== X || t[6] !== jt || t[7] !== R || t[8] !== T || t[9] !== Rt || t[10] !== Tt || t[11] !== s || t[12] !== a || t[13] !== Yt || t[14] !== z || t[15] !== k || t[16] !== Nt || t[17] !== l || t[18] !== U || t[19] !== H || t[20] !== kt || t[21] !== M || t[22] !== b || t[23] !== m || t[24] !== P || t[25] !== Y || t[26] !== at || t[27] !== Wt || t[28] !== Z || t[29] !== qt || t[30] !== x || t[31] !== tt || t[32] !== D || t[33] !== c || t[34] !== q || t[35] !== et || t[36] !== N || t[37] !== Ft || t[38] !== Mt || t[39] !== S || t[40] !== ut || t[41] !== yt || t[42] !== G || t[43] !== xt || t[44] !== Q || t[45] !== Bt || t[46] !== Ot || t[47] !== C || t[48] !== B || t[49] !== Kt || t[50] !== r || t[51] !== st || t[52] !== d || t[53] !== Ut || t[54] !== nt || t[55] !== O || t[56] !== dt || t[57] !== F || t[58] !== Xt ? (bt = /* @__PURE__ */ i.jsx(ns, { data: s, graphTitle: H, colors: Rt, sources: Kt, graphDescription: Nt, barPadding: $t, showTicks: Bt, leftMargin: P, rightMargin: G, topMargin: O, bottomMargin: X, truncateBy: dt, showLabels: Q, showValues: Ot, backgroundColor: W, suffix: st, prefix: Mt, height: kt, width: Xt, footNote: k, colorDomain: R, colorLegendTitle: T, padding: N, tooltip: nt, onSeriesMouseOver: q, relativeHeight: ut, refValues: S, graphID: U, maxValue: Z, onSeriesMouseClick: c, graphDownload: l, dataDownload: a, language: m, theme: d, labelOrder: b, minHeight: x, maxBarThickness: at, sortParameter: B, sortData: C, maxNumberOfBars: Wt, minBarThickness: qt, ariaLabel: Ct, resetSelectionOnDoubleClick: yt, styles: r, detailsOnClick: Yt, barAxisTitle: _, noOfTicks: D, valueColor: F, classNames: jt, filterNA: z, animate: y, precision: Ft, customLayers: Tt, showColorScale: xt, timeline: Ut, naLabel: tt, orientation: et, hideAxisLine: M, locale: Y }), t[0] = y, t[1] = Ct, t[2] = W, t[3] = _, t[4] = $t, t[5] = X, t[6] = jt, t[7] = R, t[8] = T, t[9] = Rt, t[10] = Tt, t[11] = s, t[12] = a, t[13] = Yt, t[14] = z, t[15] = k, t[16] = Nt, t[17] = l, t[18] = U, t[19] = H, t[20] = kt, t[21] = M, t[22] = b, t[23] = m, t[24] = P, t[25] = Y, t[26] = at, t[27] = Wt, t[28] = Z, t[29] = qt, t[30] = x, t[31] = tt, t[32] = D, t[33] = c, t[34] = q, t[35] = et, t[36] = N, t[37] = Ft, t[38] = Mt, t[39] = S, t[40] = ut, t[41] = yt, t[42] = G, t[43] = xt, t[44] = Q, t[45] = Bt, t[46] = Ot, t[47] = C, t[48] = B, t[49] = Kt, t[50] = r, t[51] = st, t[52] = d, t[53] = Ut, t[54] = nt, t[55] = O, t[56] = dt, t[57] = F, t[58] = Xt, t[59] = bt) : bt = t[59], bt;
2440
2452
  }
2441
2453
  export {
2442
- ta as GroupedBarGraph,
2443
- _l as SimpleBarGraph,
2444
- ea as StackedBarGraph
2454
+ ia as GroupedBarGraph,
2455
+ ea as SimpleBarGraph,
2456
+ la as StackedBarGraph
2445
2457
  };
2446
2458
  //# sourceMappingURL=BarGraph.js.map