@undp/data-viz 2.4.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.d.ts +11 -9
  4. package/dist/AreaChart.js +320 -322
  5. package/dist/AreaChart.js.map +1 -1
  6. package/dist/BarGraph.cjs +1 -1
  7. package/dist/BarGraph.cjs.map +1 -1
  8. package/dist/BarGraph.d.ts +15 -25
  9. package/dist/BarGraph.js +1694 -1694
  10. package/dist/BarGraph.js.map +1 -1
  11. package/dist/BasicStatCard.cjs +1 -1
  12. package/dist/BasicStatCard.cjs.map +1 -1
  13. package/dist/BasicStatCard.d.ts +13 -9
  14. package/dist/BasicStatCard.js +79 -81
  15. package/dist/BasicStatCard.js.map +1 -1
  16. package/dist/BeeSwarmChart.cjs +1 -1
  17. package/dist/BeeSwarmChart.cjs.map +1 -1
  18. package/dist/BeeSwarmChart.d.ts +11 -9
  19. package/dist/BeeSwarmChart.js +335 -336
  20. package/dist/BeeSwarmChart.js.map +1 -1
  21. package/dist/BiVariateChoroplethMap.cjs +1 -1
  22. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  23. package/dist/BiVariateChoroplethMap.d.ts +13 -3
  24. package/dist/BiVariateChoroplethMap.js +301 -302
  25. package/dist/BiVariateChoroplethMap.js.map +1 -1
  26. package/dist/BulletChart.cjs +1 -1
  27. package/dist/BulletChart.cjs.map +1 -1
  28. package/dist/BulletChart.d.ts +11 -5
  29. package/dist/BulletChart.js +560 -559
  30. package/dist/BulletChart.js.map +1 -1
  31. package/dist/ButterflyChart.cjs +1 -1
  32. package/dist/ButterflyChart.cjs.map +1 -1
  33. package/dist/ButterflyChart.d.ts +11 -9
  34. package/dist/ButterflyChart.js +348 -350
  35. package/dist/ButterflyChart.js.map +1 -1
  36. package/dist/ChoroplethMap.cjs +1 -1
  37. package/dist/ChoroplethMap.cjs.map +1 -1
  38. package/dist/ChoroplethMap.d.ts +11 -3
  39. package/dist/ChoroplethMap.js +264 -267
  40. package/dist/ChoroplethMap.js.map +1 -1
  41. package/dist/CirclePackingGraph.cjs +1 -1
  42. package/dist/CirclePackingGraph.d.ts +11 -9
  43. package/dist/CirclePackingGraph.js +1 -1
  44. package/dist/DataCards.cjs +1 -1
  45. package/dist/DataCards.d.ts +1 -1
  46. package/dist/DataCards.js +1 -1
  47. package/dist/DataTable.cjs +1 -1
  48. package/dist/DataTable.cjs.map +1 -1
  49. package/dist/DataTable.d.ts +4 -5
  50. package/dist/DataTable.js +114 -116
  51. package/dist/DataTable.js.map +1 -1
  52. package/dist/{DetailsModal-jmmKRMRM.cjs → DetailsModal-Du8Fr1QD.cjs} +2 -2
  53. package/dist/{DetailsModal-jmmKRMRM.cjs.map → DetailsModal-Du8Fr1QD.cjs.map} +1 -1
  54. package/dist/{DetailsModal-B2XBWR7w.js → DetailsModal-GqEbGHY2.js} +2 -2
  55. package/dist/{DetailsModal-B2XBWR7w.js.map → DetailsModal-GqEbGHY2.js.map} +1 -1
  56. package/dist/DifferenceLineChart.cjs +1 -1
  57. package/dist/DifferenceLineChart.cjs.map +1 -1
  58. package/dist/DifferenceLineChart.d.ts +11 -9
  59. package/dist/DifferenceLineChart.js +502 -504
  60. package/dist/DifferenceLineChart.js.map +1 -1
  61. package/dist/DonutChart.cjs +1 -1
  62. package/dist/DonutChart.cjs.map +1 -1
  63. package/dist/DonutChart.d.ts +14 -9
  64. package/dist/DonutChart.js +174 -179
  65. package/dist/DonutChart.js.map +1 -1
  66. package/dist/DotDensityMap.cjs +1 -1
  67. package/dist/DotDensityMap.d.ts +1 -1
  68. package/dist/DotDensityMap.js +2 -2
  69. package/dist/DualAxisLineChart.cjs +1 -1
  70. package/dist/DualAxisLineChart.cjs.map +1 -1
  71. package/dist/DualAxisLineChart.d.ts +13 -9
  72. package/dist/DualAxisLineChart.js +341 -351
  73. package/dist/DualAxisLineChart.js.map +1 -1
  74. package/dist/DumbbellChart.cjs +1 -1
  75. package/dist/DumbbellChart.cjs.map +1 -1
  76. package/dist/DumbbellChart.d.ts +11 -9
  77. package/dist/DumbbellChart.js +592 -593
  78. package/dist/DumbbellChart.js.map +1 -1
  79. package/dist/GeoHubCompareMaps.cjs +1 -1
  80. package/dist/GeoHubCompareMaps.d.ts +1 -1
  81. package/dist/GeoHubCompareMaps.js +1 -1
  82. package/dist/GeoHubMap.cjs +1 -1
  83. package/dist/GeoHubMap.d.ts +1 -1
  84. package/dist/GeoHubMap.js +1 -1
  85. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  86. package/dist/GeoHubMapWithLayerSelection.d.ts +1 -1
  87. package/dist/GeoHubMapWithLayerSelection.js +1 -1
  88. package/dist/GraphEl-B7x5ku_y.cjs +2 -0
  89. package/dist/GraphEl-B7x5ku_y.cjs.map +1 -0
  90. package/dist/GraphEl-B8tGXqWk.js +1829 -0
  91. package/dist/GraphEl-B8tGXqWk.js.map +1 -0
  92. package/dist/GriddedGraphs.cjs +1 -1
  93. package/dist/GriddedGraphs.d.ts +28 -16
  94. package/dist/GriddedGraphs.js +1 -1
  95. package/dist/GriddedGraphsFromConfig.d.ts +28 -16
  96. package/dist/HeatMap.cjs +1 -1
  97. package/dist/HeatMap.cjs.map +1 -1
  98. package/dist/HeatMap.d.ts +11 -9
  99. package/dist/HeatMap.js +203 -205
  100. package/dist/HeatMap.js.map +1 -1
  101. package/dist/Histogram.cjs +1 -1
  102. package/dist/Histogram.cjs.map +1 -1
  103. package/dist/Histogram.d.ts +11 -5
  104. package/dist/Histogram.js +88 -89
  105. package/dist/Histogram.js.map +1 -1
  106. package/dist/HybridMap.cjs +1 -1
  107. package/dist/HybridMap.cjs.map +1 -1
  108. package/dist/HybridMap.d.ts +11 -3
  109. package/dist/HybridMap.js +282 -285
  110. package/dist/HybridMap.js.map +1 -1
  111. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  112. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  113. package/dist/LineChartWithConfidenceInterval.d.ts +11 -9
  114. package/dist/LineChartWithConfidenceInterval.js +393 -395
  115. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  116. package/dist/LinearColorLegend.cjs +1 -1
  117. package/dist/LinearColorLegend.js +1 -1
  118. package/dist/MultiGraphDashboard.d.ts +28 -16
  119. package/dist/MultiGraphDashboardFromConfig.d.ts +28 -16
  120. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -1
  121. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -1
  122. package/dist/MultiLineAltChart.cjs +1 -1
  123. package/dist/MultiLineAltChart.cjs.map +1 -1
  124. package/dist/MultiLineAltChart.d.ts +11 -9
  125. package/dist/MultiLineAltChart.js +411 -413
  126. package/dist/MultiLineAltChart.js.map +1 -1
  127. package/dist/MultiLineChart.cjs +1 -1
  128. package/dist/MultiLineChart.cjs.map +1 -1
  129. package/dist/MultiLineChart.d.ts +11 -9
  130. package/dist/MultiLineChart.js +438 -440
  131. package/dist/MultiLineChart.js.map +1 -1
  132. package/dist/ParetoChart.cjs +1 -1
  133. package/dist/ParetoChart.cjs.map +1 -1
  134. package/dist/ParetoChart.d.ts +13 -13
  135. package/dist/ParetoChart.js +347 -355
  136. package/dist/ParetoChart.js.map +1 -1
  137. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +28 -16
  138. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +28 -16
  139. package/dist/PerformanceIntensiveScrollStory.d.ts +28 -16
  140. package/dist/RadarChart.cjs +1 -1
  141. package/dist/RadarChart.cjs.map +1 -1
  142. package/dist/RadarChart.d.ts +11 -5
  143. package/dist/RadarChart.js +213 -213
  144. package/dist/RadarChart.js.map +1 -1
  145. package/dist/SankeyChart.cjs +1 -1
  146. package/dist/SankeyChart.cjs.map +1 -1
  147. package/dist/SankeyChart.d.ts +11 -9
  148. package/dist/SankeyChart.js +448 -450
  149. package/dist/SankeyChart.js.map +1 -1
  150. package/dist/ScatterPlot.cjs +1 -1
  151. package/dist/ScatterPlot.cjs.map +1 -1
  152. package/dist/ScatterPlot.d.ts +13 -13
  153. package/dist/ScatterPlot.js +490 -498
  154. package/dist/ScatterPlot.js.map +1 -1
  155. package/dist/ScrollStory.d.ts +28 -16
  156. package/dist/SimpleLineChart.cjs +1 -1
  157. package/dist/SimpleLineChart.cjs.map +1 -1
  158. package/dist/SimpleLineChart.d.ts +11 -9
  159. package/dist/SimpleLineChart.js +362 -364
  160. package/dist/SimpleLineChart.js.map +1 -1
  161. package/dist/SingleGraphDashboard.cjs +1 -1
  162. package/dist/SingleGraphDashboard.d.ts +28 -16
  163. package/dist/SingleGraphDashboard.js +1 -1
  164. package/dist/SingleGraphDashboardFromConfig.d.ts +28 -16
  165. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +28 -16
  166. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +28 -16
  167. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  168. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  169. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +28 -16
  170. package/dist/SingleGraphDashboardThreeDGraphs.js +40 -39
  171. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  172. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +28 -16
  173. package/dist/SlopeChart.cjs +1 -1
  174. package/dist/SlopeChart.d.ts +1 -1
  175. package/dist/SlopeChart.js +2 -2
  176. package/dist/SparkLine.cjs +1 -1
  177. package/dist/SparkLine.d.ts +1 -1
  178. package/dist/SparkLine.js +1 -1
  179. package/dist/StatCardFromData.cjs +1 -1
  180. package/dist/StatCardFromData.cjs.map +1 -1
  181. package/dist/StatCardFromData.d.ts +11 -9
  182. package/dist/StatCardFromData.js +113 -116
  183. package/dist/StatCardFromData.js.map +1 -1
  184. package/dist/StripChart.cjs +1 -1
  185. package/dist/StripChart.cjs.map +1 -1
  186. package/dist/StripChart.d.ts +11 -9
  187. package/dist/StripChart.js +434 -435
  188. package/dist/StripChart.js.map +1 -1
  189. package/dist/ThreeDGlobe.cjs +1 -1
  190. package/dist/ThreeDGlobe.cjs.map +1 -1
  191. package/dist/ThreeDGlobe.d.ts +11 -3
  192. package/dist/ThreeDGlobe.js +150 -153
  193. package/dist/ThreeDGlobe.js.map +1 -1
  194. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  195. package/dist/ThresholdColorLegendWithMouseOver.js +1 -1
  196. package/dist/{Tooltip-Bj-s__cI.js → Tooltip-3EYDVa3w.js} +2 -2
  197. package/dist/{Tooltip-Bj-s__cI.js.map → Tooltip-3EYDVa3w.js.map} +1 -1
  198. package/dist/{Tooltip-Hr46paWP.cjs → Tooltip-C9F3uYG0.cjs} +2 -2
  199. package/dist/{Tooltip-Hr46paWP.cjs.map → Tooltip-C9F3uYG0.cjs.map} +1 -1
  200. package/dist/TreeMapGraph.cjs +1 -1
  201. package/dist/TreeMapGraph.cjs.map +1 -1
  202. package/dist/TreeMapGraph.d.ts +11 -9
  203. package/dist/TreeMapGraph.js +369 -371
  204. package/dist/TreeMapGraph.js.map +1 -1
  205. package/dist/Types.d.ts +28 -16
  206. package/dist/UnitChart.cjs +1 -1
  207. package/dist/UnitChart.cjs.map +1 -1
  208. package/dist/UnitChart.d.ts +11 -5
  209. package/dist/UnitChart.js +118 -119
  210. package/dist/UnitChart.js.map +1 -1
  211. package/dist/WaterfallChart.cjs +1 -1
  212. package/dist/WaterfallChart.cjs.map +1 -1
  213. package/dist/WaterfallChart.d.ts +11 -9
  214. package/dist/WaterfallChart.js +306 -308
  215. package/dist/WaterfallChart.js.map +1 -1
  216. package/dist/XTicksAndGridLines-B4UhDVyU.cjs +2 -0
  217. package/dist/XTicksAndGridLines-B4UhDVyU.cjs.map +1 -0
  218. package/dist/XTicksAndGridLines-CkYwVshF.js +40 -0
  219. package/dist/XTicksAndGridLines-CkYwVshF.js.map +1 -0
  220. package/dist/YTicksAndGridLines-BbujwxOB.js +40 -0
  221. package/dist/YTicksAndGridLines-BbujwxOB.js.map +1 -0
  222. package/dist/YTicksAndGridLines-sT3zdCs6.cjs +2 -0
  223. package/dist/YTicksAndGridLines-sT3zdCs6.cjs.map +1 -0
  224. package/dist/index-BPyj_6hG.js +375 -0
  225. package/dist/index-BPyj_6hG.js.map +1 -0
  226. package/dist/index-DuLvdHo2.cjs +2 -0
  227. package/dist/index-DuLvdHo2.cjs.map +1 -0
  228. package/dist/index.cjs +1 -1
  229. package/dist/index.d.ts +105 -245
  230. package/dist/index.js +2 -2
  231. package/dist/numberFormattingFunction-BUUV_luR.js +28 -0
  232. package/dist/numberFormattingFunction-BUUV_luR.js.map +1 -0
  233. package/dist/numberFormattingFunction-u2iNHL_c.cjs +2 -0
  234. package/dist/numberFormattingFunction-u2iNHL_c.cjs.map +1 -0
  235. package/dist/{string2HTML-ZoGd08P_.cjs → string2HTML-30nfIm8R.cjs} +2 -2
  236. package/dist/{string2HTML-ZoGd08P_.cjs.map → string2HTML-30nfIm8R.cjs.map} +1 -1
  237. package/dist/{string2HTML-BrFperRM.js → string2HTML-DL-pInUB.js} +2 -2
  238. package/dist/{string2HTML-BrFperRM.js.map → string2HTML-DL-pInUB.js.map} +1 -1
  239. package/dist/utils.cjs +1 -1
  240. package/dist/utils.d.ts +1 -1
  241. package/dist/utils.js +1 -1
  242. package/package.json +2 -2
  243. package/dist/GraphEl-B73N4RIA.js +0 -1906
  244. package/dist/GraphEl-B73N4RIA.js.map +0 -1
  245. package/dist/GraphEl-Lt1og0C-.cjs +0 -2
  246. package/dist/GraphEl-Lt1og0C-.cjs.map +0 -1
  247. package/dist/XTicksAndGridLines-C5DuC5oY.cjs +0 -2
  248. package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +0 -1
  249. package/dist/XTicksAndGridLines-gdbGX2rm.js +0 -39
  250. package/dist/XTicksAndGridLines-gdbGX2rm.js.map +0 -1
  251. package/dist/YTicksAndGridLines-CsNSq9W9.js +0 -39
  252. package/dist/YTicksAndGridLines-CsNSq9W9.js.map +0 -1
  253. package/dist/YTicksAndGridLines-DFjm8RCc.cjs +0 -2
  254. package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +0 -1
  255. package/dist/index-B0Awa_de.js +0 -377
  256. package/dist/index-B0Awa_de.js.map +0 -1
  257. package/dist/index-CP8cmNzt.cjs +0 -2
  258. package/dist/index-CP8cmNzt.cjs.map +0 -1
  259. package/dist/numberFormattingFunction-Cn9R7CM9.cjs +0 -2
  260. package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +0 -1
  261. package/dist/numberFormattingFunction-DqMf_v1m.js +0 -28
  262. package/dist/numberFormattingFunction-DqMf_v1m.js.map +0 -1
@@ -1,220 +1,221 @@
1
- import { j as o, m as Ht, c as Rt } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { useMemo as Nt, useState as k, useRef as Le, useEffect as Ae, useEffectEvent as Ot } from "react";
3
- import { g as Gt, N as Vt } from "./getSliderMarks-X-_goqH9.js";
4
- import { w as Ut } from "./Spinner-B2IIKg9r.js";
5
- import { f as Xt, p as Yt } from "./parse-Dv4of-PN.js";
6
- import { i as qt } from "./index-Bwrro8-q.js";
7
- import { i as Et, z as Jt, a as Kt, g as Zt, b as Qt, c as eo, d as to, e as oo, f as ro } from "./index-CKpKc9DR.js";
8
- import { i as ao } from "./index-DCsFBfJ_.js";
9
- import { _ as Bt } from "./Typography-BO0gQDIT.js";
10
- import { n as It } from "./numberFormattingFunction-DqMf_v1m.js";
11
- import { T as no } from "./Tooltip-Bj-s__cI.js";
12
- import { c as zt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
13
- import { X as io, E as so, P as lo, e as co } from "./index-ApTBN0kp.js";
14
- import { D as mo } from "./DetailsModal-B2XBWR7w.js";
15
- import { s as wt } from "./select-DKy99ogv.js";
16
- import { t as Wt } from "./threshold-DFfqcDMa.js";
17
- import { m as ct } from "./proxy-BsxtcZKa.js";
18
- import { u as po } from "./use-in-view-KOXq5Kmc.js";
19
- import { A as ho } from "./index-Cv_5q6Rb.js";
20
- import { GraphHeader as uo } from "./GraphHeader.js";
21
- import { GraphFooter as fo } from "./GraphFooter.js";
22
- import { Colors as St } from "./Colors.js";
23
- import { f as _t } from "./fetchAndParseData-BAXhgTDM.js";
24
- import { g as Pt } from "./getJenks-DTCcQSDi.js";
25
- import { a as go, G as yo } from "./GraphContainer-B8ZqOzKI.js";
26
- function vo(n) {
1
+ import { j as o, m as Tt, c as $t } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import { useMemo as Nt, useState as k, useRef as Fe, useEffect as Le, useEffectEvent as St } from "react";
3
+ import { g as Ht, N as Rt } from "./getSliderMarks-X-_goqH9.js";
4
+ import { w as Gt } from "./Spinner-B2IIKg9r.js";
5
+ import { f as Vt, p as Ut } from "./parse-Dv4of-PN.js";
6
+ import { i as Xt } from "./index-Bwrro8-q.js";
7
+ import { i as Ot, z as Yt, a as qt, g as Zt, b as Jt, c as Kt, d as Qt, e as eo, f as to } from "./index-CKpKc9DR.js";
8
+ import { i as oo } from "./index-DCsFBfJ_.js";
9
+ import { _ as Mt } from "./Typography-BO0gQDIT.js";
10
+ import { n as Et } from "./numberFormattingFunction-BUUV_luR.js";
11
+ import { T as ro } from "./Tooltip-3EYDVa3w.js";
12
+ import { c as Bt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
13
+ import { X as ao, E as no, P as io, e as so } from "./index-ApTBN0kp.js";
14
+ import { D as lo } from "./DetailsModal-GqEbGHY2.js";
15
+ import { s as Ct } from "./select-DKy99ogv.js";
16
+ import { t as It } from "./threshold-DFfqcDMa.js";
17
+ import { m as dt } from "./proxy-BsxtcZKa.js";
18
+ import { u as co } from "./use-in-view-KOXq5Kmc.js";
19
+ import { A as mo } from "./index-Cv_5q6Rb.js";
20
+ import { GraphHeader as po } from "./GraphHeader.js";
21
+ import { GraphFooter as ho } from "./GraphFooter.js";
22
+ import { Colors as jt } from "./Colors.js";
23
+ import { f as zt } from "./fetchAndParseData-BAXhgTDM.js";
24
+ import { g as Wt } from "./getJenks-DTCcQSDi.js";
25
+ import { a as uo, G as fo } from "./GraphContainer-B8ZqOzKI.js";
26
+ function go(n) {
27
27
  const {
28
28
  data: e,
29
- xDomain: m,
30
- mapData: T,
31
- xColorLegendTitle: Fe,
32
- yDomain: J,
33
- yColorLegendTitle: K,
34
- width: g,
29
+ xDomain: l,
30
+ mapData: $,
31
+ xColorLegendTitle: Te,
32
+ yDomain: ee,
33
+ yColorLegendTitle: te,
34
+ width: y,
35
35
  height: h,
36
36
  colors: u,
37
- scale: Te,
37
+ scale: $e,
38
38
  centerPoint: C,
39
- mapBorderWidth: N,
40
- mapNoDataColor: Z,
41
- mapBorderColor: Q,
42
- tooltip: ee,
43
- onSeriesMouseOver: ye,
44
- zoomScaleExtend: ve,
45
- zoomTranslateExtend: xe,
46
- highlightedIds: j,
47
- onSeriesMouseClick: te,
48
- mapProperty: O,
49
- resetSelectionOnDoubleClick: $e,
50
- detailsOnClick: v,
51
- showColorScale: be,
52
- styles: He,
53
- classNames: $,
54
- mapProjection: H,
39
+ mapBorderWidth: O,
40
+ mapNoDataColor: oe,
41
+ mapBorderColor: re,
42
+ tooltip: ae,
43
+ onSeriesMouseOver: ge,
44
+ zoomScaleExtend: ye,
45
+ zoomTranslateExtend: ve,
46
+ highlightedIds: x,
47
+ onSeriesMouseClick: ne,
48
+ mapProperty: M,
49
+ resetSelectionOnDoubleClick: He,
50
+ detailsOnClick: b,
51
+ showColorScale: xe,
52
+ styles: Re,
53
+ classNames: H,
54
+ mapProjection: R,
55
55
  zoomInteraction: E,
56
56
  animate: B,
57
57
  dimmedOpacity: I,
58
- customLayers: oe,
59
- collapseColorScaleByDefault: De,
60
- zoomAndCenterByHighlightedIds: ke,
61
- projectionRotate: R,
62
- rewindCoordinatesInMapData: V,
63
- overlayMapData: U,
64
- overlayMapBorderColor: Re,
65
- overlayMapBorderWidth: Ge,
66
- locale: re
67
- } = n, x = Nt(() => V ? Et(T, {
58
+ customLayers: ie,
59
+ collapseColorScaleByDefault: be,
60
+ zoomAndCenterByHighlightedIds: De,
61
+ projectionRotate: G,
62
+ rewindCoordinatesInMapData: X,
63
+ overlayMapData: Y,
64
+ overlayMapBorderColor: Ge,
65
+ overlayMapBorderWidth: Ve,
66
+ xNumberDisplayOptions: q,
67
+ yNumberDisplayOptions: se
68
+ } = n, v = Nt(() => X ? Ot($, {
68
69
  reverse: !0
69
- }) : T, [T, V]), Ce = Nt(() => !V || !U ? U : Et(U, {
70
+ }) : $, [$, X]), c = Nt(() => !X || !Y ? Y : Ot(Y, {
70
71
  reverse: !0
71
- }), [U, V]), [p, l] = k(De === void 0 ? !(g < 680) : !De), [X, je] = k(void 0), [ae, ne] = k(void 0), [z, G] = k(void 0), [ie, se] = k(void 0), [Y, le] = k(void 0), c = Le(null), we = po(c, {
72
+ }), [Y, X]), [d, ke] = k(be === void 0 ? !(y < 680) : !be), [Z, Ce] = k(void 0), [le, V] = k(void 0), [z, J] = k(void 0), [je, U] = k(void 0), [we, f] = k(void 0), W = Fe(null), ce = co(W, {
72
73
  once: B.once,
73
74
  amount: B.amount
74
- }), w = Le(null), S = Le(null);
75
- Ae(() => {
76
- const t = wt(w.current), r = wt(c.current), d = (f) => {
75
+ }), j = Fe(null), w = Fe(null);
76
+ Le(() => {
77
+ const t = Ct(j.current), r = Ct(W.current), m = (g) => {
77
78
  if (E === "noZoom") return !1;
78
- if (E === "button") return !f.type.includes("wheel");
79
- const y = f.type === "wheel", b = f.type.startsWith("touch"), ze = f.type === "mousedown" || f.type === "mousemove";
80
- return b ? !0 : y ? E === "scroll" ? !0 : f.ctrlKey : ze && !f.button && !f.ctrlKey;
81
- }, D = Jt().scaleExtent(ve).translateExtent(xe || [[-20, -20], [g + 20, h + 20]]).filter(d).on("zoom", ({
82
- transform: f
79
+ if (E === "button") return !g.type.includes("wheel");
80
+ const S = g.type === "wheel", D = g.type.startsWith("touch"), We = g.type === "mousedown" || g.type === "mousemove";
81
+ return D ? !0 : S ? E === "scroll" ? !0 : g.ctrlKey : We && !g.button && !g.ctrlKey;
82
+ }, p = Yt().scaleExtent(ye).translateExtent(ve || [[-20, -20], [y + 20, h + 20]]).filter(m).on("zoom", ({
83
+ transform: g
83
84
  }) => {
84
- t.attr("transform", f);
85
+ t.attr("transform", g);
85
86
  });
86
- r.call(D), S.current = D;
87
- }, [h, g, E]);
88
- const W = Kt({
89
- ...x,
90
- features: ke ? x.features.filter(
87
+ r.call(p), w.current = p;
88
+ }, [h, y, E]);
89
+ const _ = qt({
90
+ ...v,
91
+ features: De ? v.features.filter(
91
92
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
92
- (t) => (j || []).length === 0 || j?.indexOf(t.properties[O]) !== -1
93
- ) : x.features
94
- }), _ = ao({
95
- ...x,
96
- features: ke ? x.features.filter(
93
+ (t) => (x || []).length === 0 || x?.indexOf(t.properties[M]) !== -1
94
+ ) : v.features
95
+ }), P = oo({
96
+ ...v,
97
+ features: De ? v.features.filter(
97
98
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
98
- (t) => (j || []).length === 0 || j?.indexOf(t.properties[O]) !== -1
99
- ) : x.features
100
- }), Se = (W[2] - W[0]) * 1.15, Me = (W[3] - W[1]) * 1.15, Ne = g * 190 / 960 * 360 / Se, Oe = h * 190 / 678 * 180 / Me, P = Te * Math.min(Ne, Oe), Ee = H === "mercator" ? Zt().rotate(R).center(C || _.geometry.coordinates).translate([g / 2, h / 2]).scale(P) : H === "equalEarth" ? Qt().rotate(R).center(C || _.geometry.coordinates).translate([g / 2, h / 2]).scale(P) : H === "naturalEarth" ? eo().rotate(R).center(C || _.geometry.coordinates).translate([g / 2, h / 2]).scale(P) : H === "orthographic" ? to().rotate(R).center(C || _.geometry.coordinates).translate([g / 2, h / 2]).scale(P) : oo().rotate(R).center(C || _.geometry.coordinates).translate([g / 2, h / 2]).scale(P), A = ro().projection(Ee), ce = Array.from({
101
- length: m.length
99
+ (t) => (x || []).length === 0 || x?.indexOf(t.properties[M]) !== -1
100
+ ) : v.features
101
+ }), Ne = (_[2] - _[0]) * 1.15, Se = (_[3] - _[1]) * 1.15, Oe = y * 190 / 960 * 360 / Ne, Me = h * 190 / 678 * 180 / Se, A = $e * Math.min(Oe, Me), Ee = R === "mercator" ? Zt().rotate(G).center(C || P.geometry.coordinates).translate([y / 2, h / 2]).scale(A) : R === "equalEarth" ? Jt().rotate(G).center(C || P.geometry.coordinates).translate([y / 2, h / 2]).scale(A) : R === "naturalEarth" ? Kt().rotate(G).center(C || P.geometry.coordinates).translate([y / 2, h / 2]).scale(A) : R === "orthographic" ? Qt().rotate(G).center(C || P.geometry.coordinates).translate([y / 2, h / 2]).scale(A) : eo().rotate(G).center(C || P.geometry.coordinates).translate([y / 2, h / 2]).scale(A), L = to().projection(Ee), de = Array.from({
102
+ length: l.length
102
103
  }, (t, r) => r), Be = Array.from({
103
- length: J.length
104
- }, (t, r) => r), Ie = Wt().domain(m).range(ce), de = Wt().domain(J).range(Be), me = (t) => {
105
- if (!c.current || !S.current) return;
106
- wt(c.current).call(S.current.scaleBy, t === "in" ? 1.2 : 1 / 1.2);
104
+ length: ee.length
105
+ }, (t, r) => r), Ie = It().domain(l).range(de), ze = It().domain(ee).range(Be), K = (t) => {
106
+ if (!W.current || !w.current) return;
107
+ Ct(W.current).call(w.current.scaleBy, t === "in" ? 1.2 : 1 / 1.2);
107
108
  };
108
109
  return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
109
110
  /* @__PURE__ */ o.jsxs("div", { className: "relative", children: [
110
- /* @__PURE__ */ o.jsx(ct.svg, { viewBox: `0 0 ${g} ${h}`, width: `${g}px`, height: `${h}px`, ref: c, direction: "ltr", children: /* @__PURE__ */ o.jsxs("g", { ref: w, children: [
111
- oe.filter((t) => t.position === "before").map((t) => t.layer),
112
- x.features.map((t, r) => {
113
- if (!t.properties?.[O]) return null;
114
- const d = A(t);
115
- return d ? /* @__PURE__ */ o.jsx(ct.g, { opacity: X ? I : j ? j.indexOf(t.properties[O]) !== -1 ? 1 : I : 1, children: /* @__PURE__ */ o.jsx("path", { d, style: {
116
- stroke: Q,
117
- strokeWidth: N,
118
- fill: Z,
111
+ /* @__PURE__ */ o.jsx(dt.svg, { viewBox: `0 0 ${y} ${h}`, width: `${y}px`, height: `${h}px`, ref: W, direction: "ltr", children: /* @__PURE__ */ o.jsxs("g", { ref: j, children: [
112
+ ie.filter((t) => t.position === "before").map((t) => t.layer),
113
+ v.features.map((t, r) => {
114
+ if (!t.properties?.[M]) return null;
115
+ const m = L(t);
116
+ return m ? /* @__PURE__ */ o.jsx(dt.g, { opacity: Z ? I : x ? x.indexOf(t.properties[M]) !== -1 ? 1 : I : 1, children: /* @__PURE__ */ o.jsx("path", { d: m, style: {
117
+ stroke: re,
118
+ strokeWidth: O,
119
+ fill: oe,
119
120
  vectorEffect: "non-scaling-stroke"
120
121
  } }) }, r) : null;
121
122
  }),
122
- /* @__PURE__ */ o.jsx(ho, { children: e.map((t) => {
123
- const r = x.features.findIndex(
123
+ /* @__PURE__ */ o.jsx(mo, { children: e.map((t) => {
124
+ const r = v.features.findIndex(
124
125
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
125
- (b) => t.id === b.properties[O]
126
+ (D) => t.id === D.properties[M]
126
127
  );
127
128
  if (r === -1) return null;
128
- const d = A(x.features[r]);
129
- if (!d) return null;
130
- const D = zt(t.x) ? void 0 : Ie(t.x), f = zt(t.y) ? void 0 : de(t.y), y = D !== void 0 && f !== void 0 ? u[f][D] : Z;
131
- return /* @__PURE__ */ o.jsx(ct.g, { className: "undp-map-shapes", variants: {
129
+ const m = L(v.features[r]);
130
+ if (!m) return null;
131
+ const p = Bt(t.x) ? void 0 : Ie(t.x), g = Bt(t.y) ? void 0 : ze(t.y), S = p !== void 0 && g !== void 0 ? u[g][p] : oe;
132
+ return /* @__PURE__ */ o.jsx(dt.g, { className: "undp-map-shapes", variants: {
132
133
  initial: {
133
134
  opacity: 0
134
135
  },
135
136
  whileInView: {
136
- opacity: X ? X === y ? 1 : I : j ? j.indexOf(t.id) !== -1 ? 1 : I : 1,
137
+ opacity: Z ? Z === S && (!x || x.indexOf(t.id) !== -1) ? 1 : I : x ? x.indexOf(t.id) !== -1 ? 1 : I : 1,
137
138
  transition: {
138
139
  duration: B.duration
139
140
  }
140
141
  }
141
- }, initial: "initial", animate: we ? "whileInView" : "initial", exit: {
142
+ }, initial: "initial", animate: ce ? "whileInView" : "initial", exit: {
142
143
  opacity: 0,
143
144
  transition: {
144
145
  duration: B.duration
145
146
  }
146
- }, onMouseEnter: (b) => {
147
- G(t), le(b.clientY), se(b.clientX), ye?.(t);
147
+ }, onMouseEnter: (D) => {
148
+ J(t), f(D.clientY), U(D.clientX), ge?.(t);
148
149
  }, onClick: () => {
149
- (te || v) && (qt(ae, t) && $e ? (ne(void 0), te?.(void 0)) : (ne(t), te?.(t)));
150
- }, onMouseMove: (b) => {
151
- G(t), le(b.clientY), se(b.clientX);
150
+ (ne || b) && (Xt(le, t) && He ? (V(void 0), ne?.(void 0)) : (V(t), ne?.(t)));
151
+ }, onMouseMove: (D) => {
152
+ J(t), f(D.clientY), U(D.clientX);
152
153
  }, onMouseLeave: () => {
153
- G(void 0), se(void 0), le(void 0), ye?.(void 0);
154
- }, children: /* @__PURE__ */ o.jsx(ct.path, { d, variants: {
154
+ J(void 0), U(void 0), f(void 0), ge?.(void 0);
155
+ }, children: /* @__PURE__ */ o.jsx(dt.path, { d: m, variants: {
155
156
  initial: {
156
- fill: y,
157
+ fill: S,
157
158
  opacity: 0
158
159
  },
159
160
  whileInView: {
160
- fill: y,
161
+ fill: S,
161
162
  opacity: 1,
162
163
  transition: {
163
164
  duration: B.duration
164
165
  }
165
166
  }
166
- }, initial: "initial", animate: we ? "whileInView" : "initial", exit: {
167
+ }, initial: "initial", animate: ce ? "whileInView" : "initial", exit: {
167
168
  opacity: 0,
168
169
  transition: {
169
170
  duration: B.duration
170
171
  }
171
- }, className: `${y === Z ? "stroke-primary-gray-400 dark:stroke-primary-gray-500" : "stroke-primary-white dark:stroke-primary-gray-650"}`, style: {
172
- stroke: Q,
173
- strokeWidth: N,
172
+ }, className: `${S === oe ? "stroke-primary-gray-400 dark:stroke-primary-gray-500" : "stroke-primary-white dark:stroke-primary-gray-650"}`, style: {
173
+ stroke: re,
174
+ strokeWidth: O,
174
175
  vectorEffect: "non-scaling-stroke"
175
176
  } }, `${t.id}`) }, t.id);
176
177
  }) }),
177
- z ? x.features.filter(
178
+ z ? v.features.filter(
178
179
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
179
- (t) => t.properties[O] === z.id
180
- ).map((t, r) => /* @__PURE__ */ o.jsx("path", { d: A(t) || "", className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
180
+ (t) => t.properties[M] === z.id
181
+ ).map((t, r) => /* @__PURE__ */ o.jsx("path", { d: L(t) || "", className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
181
182
  fill: "none",
182
183
  fillOpacity: 0,
183
184
  strokeWidth: "0.5",
184
185
  vectorEffect: "non-scaling-stroke"
185
186
  } }, r)) : null,
186
- Ce?.features.map((t, r) => {
187
- const d = A(t);
188
- return d ? /* @__PURE__ */ o.jsx("g", { children: /* @__PURE__ */ o.jsx("path", { d, style: {
189
- stroke: Re || Q,
190
- strokeWidth: Ge || N + 1,
187
+ c?.features.map((t, r) => {
188
+ const m = L(t);
189
+ return m ? /* @__PURE__ */ o.jsx("g", { children: /* @__PURE__ */ o.jsx("path", { d: m, style: {
190
+ stroke: Ge || re,
191
+ strokeWidth: Ve || O + 1,
191
192
  fill: "none",
192
193
  pointerEvents: "none",
193
194
  vectorEffect: "non-scaling-stroke"
194
195
  } }) }, r) : null;
195
196
  }),
196
- oe.filter((t) => t.position === "after").map((t) => t.layer)
197
+ ie.filter((t) => t.position === "after").map((t) => t.layer)
197
198
  ] }) }),
198
- be === !1 ? null : /* @__PURE__ */ o.jsx("div", { className: Ht("absolute left-4 bottom-4 map-color-legend", $?.colorLegend), children: p ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
199
+ xe === !1 ? null : /* @__PURE__ */ o.jsx("div", { className: Tt("absolute left-4 bottom-4 map-color-legend", H?.colorLegend), children: d ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
199
200
  /* @__PURE__ */ o.jsx("div", { className: "color-legend-close-button bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)] border border-[var(--gray-400)] rounded-full w-6 h-6 p-[3px] cursor-pointer z-10 absolute right-[-0.75rem] top-[-0.75rem]", onClick: () => {
200
- l(!1);
201
- }, children: /* @__PURE__ */ o.jsx(io, {}) }),
201
+ ke(!1);
202
+ }, children: /* @__PURE__ */ o.jsx(ao, {}) }),
202
203
  /* @__PURE__ */ o.jsxs("div", { className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]", style: {
203
204
  width: "175px"
204
205
  }, children: [
205
206
  /* @__PURE__ */ o.jsxs("div", { className: "flex gap-1 items-center", children: [
206
207
  /* @__PURE__ */ o.jsx("svg", { width: "136px", viewBox: "0 0 136 136", className: "shrink-0", children: /* @__PURE__ */ o.jsxs("g", { children: [
207
- u.map((t, r) => /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${100 - r * 25})`, children: t.map((d, D) => /* @__PURE__ */ o.jsx("rect", { y: 1, x: D * 25 + 1, fill: d, width: 23, height: 23, strokeWidth: X === d ? 2 : 0.25, style: {
208
+ u.map((t, r) => /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${100 - r * 25})`, children: t.map((m, p) => /* @__PURE__ */ o.jsx("rect", { y: 1, x: p * 25 + 1, fill: m, width: 23, height: 23, strokeWidth: Z === m ? 2 : 0.25, style: {
208
209
  cursor: "pointer"
209
210
  }, onMouseOver: () => {
210
- je(d);
211
+ Ce(m);
211
212
  }, onMouseLeave: () => {
212
- je(void 0);
213
- } }, D)) }, r)),
214
- /* @__PURE__ */ o.jsx("g", { transform: "translate(0,125)", children: m.map((t, r) => /* @__PURE__ */ o.jsx("text", { y: 10, x: (r + 1) * 25, fontSize: 10, textAnchor: "middle", children: typeof t == "string" || t < 1 ? t : It(t, void 0, void 0, void 0, void 0, re) }, r)) }),
215
- J.map((t, r) => /* @__PURE__ */ o.jsx("g", { transform: `translate(${Math.max(Math.min(m.length + 1, 5), 4) * 25 + 10},${100 - r * 25})`, children: /* @__PURE__ */ o.jsx("text", { x: 0, transform: "rotate(-90)", y: 0, fontSize: 10, textAnchor: "middle", children: typeof t == "string" || t < 1 ? t : It(t, void 0, void 0, void 0, void 0, re) }) }, r))
213
+ Ce(void 0);
214
+ } }, p)) }, r)),
215
+ /* @__PURE__ */ o.jsx("g", { transform: "translate(0,125)", children: l.map((t, r) => /* @__PURE__ */ o.jsx("text", { y: 10, x: (r + 1) * 25, fontSize: 10, textAnchor: "middle", children: typeof t == "string" || t < 1 ? t : Et(t, void 0, q?.precision ?? 2, void 0, void 0, q?.locale || "en", q?.padZeros || !1) }, r)) }),
216
+ ee.map((t, r) => /* @__PURE__ */ o.jsx("g", { transform: `translate(${Math.max(Math.min(l.length + 1, 5), 4) * 25 + 10},${100 - r * 25})`, children: /* @__PURE__ */ o.jsx("text", { x: 0, transform: "rotate(-90)", y: 0, fontSize: 10, textAnchor: "middle", children: typeof t == "string" || t < 1 ? t : Et(t, void 0, se?.precision ?? 2, void 0, void 0, se?.locale || "en", se?.padZeros || !1) }) }, r))
216
217
  ] }) }),
217
- /* @__PURE__ */ o.jsx(Bt, { marginBottom: "none", size: "xs", className: "leading-normal text-center shrink-0", style: {
218
+ /* @__PURE__ */ o.jsx(Mt, { marginBottom: "none", size: "xs", className: "leading-normal text-center shrink-0", style: {
218
219
  display: "-webkit-box",
219
220
  WebkitLineClamp: "1",
220
221
  WebkitBoxOrient: "vertical",
@@ -222,240 +223,238 @@ function vo(n) {
222
223
  writingMode: "vertical-rl",
223
224
  height: "8.5rem",
224
225
  transform: "rotate(180deg)"
225
- }, children: K })
226
+ }, children: te })
226
227
  ] }),
227
- /* @__PURE__ */ o.jsx(Bt, { marginBottom: "none", size: "xs", className: "mt-1 leading-normal text-center", style: {
228
+ /* @__PURE__ */ o.jsx(Mt, { marginBottom: "none", size: "xs", className: "mt-1 leading-normal text-center", style: {
228
229
  display: "-webkit-box",
229
230
  WebkitLineClamp: "1",
230
231
  width: "8.5rem",
231
232
  WebkitBoxOrient: "vertical",
232
233
  overflow: "hidden"
233
- }, children: Fe })
234
+ }, children: Te })
234
235
  ] })
235
236
  ] }) : /* @__PURE__ */ o.jsx("button", { type: "button", className: "p-1 border-0 rounded-[2px] text-primary-gray-700 bg-primary-gray-300 dark:bg-primary-gray-500 map-legend-button", onClick: () => {
236
- l(!0);
237
- }, children: /* @__PURE__ */ o.jsx(so, {}) }) }),
237
+ ke(!0);
238
+ }, children: /* @__PURE__ */ o.jsx(no, {}) }) }),
238
239
  E === "button" && /* @__PURE__ */ o.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
239
- /* @__PURE__ */ o.jsx("button", { onClick: () => me("in"), className: "leading-0 px-2 py-3.5 border text-primary-gray-700 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "+" }),
240
- /* @__PURE__ */ o.jsx("button", { onClick: () => me("out"), className: "leading-0 px-2 py-3.5 border text-primary-gray-700 border-t-0 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "–" })
240
+ /* @__PURE__ */ o.jsx("button", { onClick: () => K("in"), className: "leading-0 px-2 py-3.5 border text-primary-gray-700 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "+" }),
241
+ /* @__PURE__ */ o.jsx("button", { onClick: () => K("out"), className: "leading-0 px-2 py-3.5 border text-primary-gray-700 border-t-0 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "–" })
241
242
  ] })
242
243
  ] }),
243
- z && ee && ie && Y ? /* @__PURE__ */ o.jsx(no, { data: z, body: ee, xPos: ie, yPos: Y, backgroundStyle: He?.tooltip, className: $?.tooltip }) : null,
244
- v && ae !== void 0 ? /* @__PURE__ */ o.jsx(mo, { body: v, data: ae, setData: ne, className: $?.modal }) : null
244
+ z && ae && je && we ? /* @__PURE__ */ o.jsx(ro, { data: z, body: ae, xPos: je, yPos: we, backgroundStyle: Re?.tooltip, className: H?.tooltip }) : null,
245
+ b && le !== void 0 ? /* @__PURE__ */ o.jsx(lo, { body: b, data: le, setData: V, className: H?.modal }) : null
245
246
  ] });
246
247
  }
247
- function er(n) {
248
- const e = Rt.c(131), {
249
- data: m,
250
- graphTitle: T,
251
- mapData: Fe,
252
- colors: J,
253
- sources: K,
254
- graphDescription: g,
248
+ function Ko(n) {
249
+ const e = $t.c(130), {
250
+ data: l,
251
+ graphTitle: $,
252
+ mapData: Te,
253
+ colors: ee,
254
+ sources: te,
255
+ graphDescription: y,
255
256
  height: h,
256
257
  width: u,
257
- footNote: Te,
258
+ footNote: $e,
258
259
  xDomain: C,
259
- yDomain: N,
260
- xColorLegendTitle: Z,
261
- yColorLegendTitle: Q,
262
- tooltip: ee,
263
- scale: ye,
264
- centerPoint: ve,
265
- padding: xe,
266
- mapBorderWidth: j,
267
- mapNoDataColor: te,
268
- backgroundColor: O,
269
- mapBorderColor: $e,
270
- relativeHeight: v,
271
- onSeriesMouseOver: be,
272
- isWorldMap: He,
273
- zoomScaleExtend: $,
274
- zoomTranslateExtend: H,
260
+ yDomain: O,
261
+ xColorLegendTitle: oe,
262
+ yColorLegendTitle: re,
263
+ tooltip: ae,
264
+ scale: ge,
265
+ centerPoint: ye,
266
+ padding: ve,
267
+ mapBorderWidth: x,
268
+ mapNoDataColor: ne,
269
+ backgroundColor: M,
270
+ mapBorderColor: He,
271
+ relativeHeight: b,
272
+ onSeriesMouseOver: xe,
273
+ isWorldMap: Re,
274
+ zoomScaleExtend: H,
275
+ zoomTranslateExtend: R,
275
276
  graphID: E,
276
277
  showColorScale: B,
277
278
  highlightedIds: I,
278
- onSeriesMouseClick: oe,
279
- mapProperty: De,
280
- graphDownload: ke,
281
- dataDownload: R,
282
- showAntarctica: V,
283
- language: U,
284
- minHeight: Re,
285
- theme: Ge,
286
- ariaLabel: re,
287
- resetSelectionOnDoubleClick: x,
288
- detailsOnClick: Ce,
289
- styles: p,
290
- classNames: l,
291
- mapProjection: X,
292
- zoomInteraction: je,
293
- animate: ae,
294
- dimmedOpacity: ne,
295
- customLayers: z,
296
- timeline: G,
297
- collapseColorScaleByDefault: ie,
298
- zoomAndCenterByHighlightedIds: se,
299
- projectionRotate: Y,
300
- rewindCoordinatesInMapData: le,
301
- mapOverlay: c,
302
- locale: we
303
- } = n, w = Fe === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : Fe, S = J === void 0 ? St.light.bivariateColors.colors05x05 : J, W = Te === void 0 ? "The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries." : Te, _ = Z === void 0 ? "X Color key" : Z, Se = Q === void 0 ? "Y Color key" : Q, Me = ye === void 0 ? 0.95 : ye, Ne = j === void 0 ? 0.5 : j, Oe = te === void 0 ? St.light.graphNoData : te, P = O === void 0 ? !1 : O, Ee = $e === void 0 ? St.light.grays["gray-500"] : $e, A = He === void 0 ? !0 : He;
304
- let ce;
305
- e[0] !== $ ? (ce = $ === void 0 ? [0.8, 6] : $, e[0] = $, e[1] = ce) : ce = e[1];
306
- const Be = ce, Ie = B === void 0 ? !0 : B;
279
+ onSeriesMouseClick: ie,
280
+ mapProperty: be,
281
+ graphDownload: De,
282
+ dataDownload: G,
283
+ showAntarctica: X,
284
+ language: Y,
285
+ minHeight: Ge,
286
+ theme: Ve,
287
+ ariaLabel: q,
288
+ resetSelectionOnDoubleClick: se,
289
+ detailsOnClick: v,
290
+ styles: c,
291
+ classNames: d,
292
+ mapProjection: ke,
293
+ zoomInteraction: Z,
294
+ animate: Ce,
295
+ dimmedOpacity: le,
296
+ customLayers: V,
297
+ timeline: z,
298
+ collapseColorScaleByDefault: J,
299
+ zoomAndCenterByHighlightedIds: je,
300
+ projectionRotate: U,
301
+ rewindCoordinatesInMapData: we,
302
+ mapOverlay: f,
303
+ xNumberDisplayOptions: W,
304
+ yNumberDisplayOptions: ce
305
+ } = n, j = Te === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : Te, w = ee === void 0 ? jt.light.bivariateColors.colors05x05 : ee, _ = $e === void 0 ? "The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries." : $e, P = oe === void 0 ? "X Color key" : oe, Ne = re === void 0 ? "Y Color key" : re, Se = ge === void 0 ? 0.95 : ge, Oe = x === void 0 ? 0.5 : x, Me = ne === void 0 ? jt.light.graphNoData : ne, A = M === void 0 ? !1 : M, Ee = He === void 0 ? jt.light.grays["gray-500"] : He, L = Re === void 0 ? !0 : Re;
307
306
  let de;
308
- e[2] !== I ? (de = I === void 0 ? [] : I, e[2] = I, e[3] = de) : de = e[3];
309
- const me = de, t = De === void 0 ? "ISO3" : De, r = ke === void 0 ? !1 : ke, d = R === void 0 ? !1 : R, D = V === void 0 ? !1 : V, f = U === void 0 ? "en" : U, y = Re === void 0 ? 0 : Re, b = Ge === void 0 ? "light" : Ge, ze = x === void 0 ? !0 : x, dt = X === void 0 ? "naturalEarth" : X, mt = je === void 0 ? "button" : je, Ve = ae === void 0 ? !1 : ae, pt = ne === void 0 ? 0.3 : ne;
310
- let Ue;
311
- e[4] !== z ? (Ue = z === void 0 ? [] : z, e[4] = z, e[5] = Ue) : Ue = e[5];
312
- const ht = Ue;
307
+ e[0] !== H ? (de = H === void 0 ? [0.8, 6] : H, e[0] = H, e[1] = de) : de = e[1];
308
+ const Be = de, Ie = B === void 0 ? !0 : B, ze = be === void 0 ? "ISO3" : be, K = De === void 0 ? !1 : De, t = G === void 0 ? !1 : G, r = X === void 0 ? !1 : X, m = Y === void 0 ? "en" : Y, p = Ge === void 0 ? 0 : Ge, g = Ve === void 0 ? "light" : Ve, S = se === void 0 ? !0 : se, D = ke === void 0 ? "naturalEarth" : ke, We = Z === void 0 ? "button" : Z, Ue = Ce === void 0 ? !1 : Ce, mt = le === void 0 ? 0.3 : le;
313
309
  let Xe;
314
- e[6] !== G ? (Xe = G === void 0 ? {
310
+ e[2] !== V ? (Xe = V === void 0 ? [] : V, e[2] = V, e[3] = Xe) : Xe = e[3];
311
+ const pt = Xe;
312
+ let Ye;
313
+ e[4] !== z ? (Ye = z === void 0 ? {
315
314
  enabled: !1,
316
315
  autoplay: !1,
317
316
  showOnlyActiveDate: !0
318
- } : G, e[6] = G, e[7] = Xe) : Xe = e[7];
319
- const a = Xe, ut = se === void 0 ? !1 : se;
320
- let Ye;
321
- e[8] !== Y ? (Ye = Y === void 0 ? [0, 0] : Y, e[8] = Y, e[9] = Ye) : Ye = e[9];
322
- const ft = Ye, gt = le === void 0 ? !0 : le, yt = we === void 0 ? "en" : we, [q, At] = k(0), [We, Lt] = k(0), [L, Ft] = k(a.autoplay);
323
- let _e;
324
- if (e[10] !== m || e[11] !== a.dateFormat) {
317
+ } : z, e[4] = z, e[5] = Ye) : Ye = e[5];
318
+ const a = Ye, ht = je === void 0 ? !1 : je;
319
+ let qe;
320
+ e[6] !== U ? (qe = U === void 0 ? [0, 0] : U, e[6] = U, e[7] = qe) : qe = e[7];
321
+ const ut = qe, ft = we === void 0 ? !0 : we, [Q, _t] = k(0), [_e, Pt] = k(0), [F, At] = k(a.autoplay);
322
+ let Pe;
323
+ if (e[8] !== l || e[9] !== a.dateFormat) {
325
324
  let i;
326
- e[13] !== a.dateFormat ? (i = (M) => Yt(`${M.date}`, a.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[13] = a.dateFormat, e[14] = i) : i = e[14], _e = [...new Set(m.filter(No).map(i))], _e.sort(Mo), e[10] = m, e[11] = a.dateFormat, e[12] = _e;
325
+ e[11] !== a.dateFormat ? (i = (N) => Ut(`${N.date}`, a.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[11] = a.dateFormat, e[12] = i) : i = e[12], Pe = [...new Set(l.filter(No).map(i))], Pe.sort(wo), e[8] = l, e[9] = a.dateFormat, e[10] = Pe;
327
326
  } else
328
- _e = e[12];
329
- const s = _e, [F, vt] = k(a.autoplay ? 0 : s.length - 1), [pe, Tt] = k(void 0), [xt, $t] = k(void 0), bt = Le(null), Mt = Le(null);
330
- let qe, Je;
331
- e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (qe = () => {
332
- const i = new ResizeObserver((M) => {
333
- At(M[0].target.clientWidth || 620), Lt(M[0].target.clientHeight || 480);
327
+ Pe = e[10];
328
+ const s = Pe, [T, gt] = k(a.autoplay ? 0 : s.length - 1), [me, Lt] = k(void 0), [yt, Ft] = k(void 0), vt = Fe(null), wt = Fe(null);
329
+ let Ze, Je;
330
+ e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ze = () => {
331
+ const i = new ResizeObserver((N) => {
332
+ _t(N[0].target.clientWidth || 620), Pt(N[0].target.clientHeight || 480);
334
333
  });
335
- return bt.current && i.observe(bt.current), () => i.disconnect();
336
- }, Je = [], e[15] = qe, e[16] = Je) : (qe = e[15], Je = e[16]), Ae(qe, Je);
334
+ return vt.current && i.observe(vt.current), () => i.disconnect();
335
+ }, Je = [], e[13] = Ze, e[14] = Je) : (Ze = e[13], Je = e[14]), Le(Ze, Je);
337
336
  let Ke;
338
- e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ke = (i) => {
339
- Tt(i);
340
- }, e[17] = Ke) : Ke = e[17];
341
- const Ze = Ot(Ke);
342
- let Qe;
343
- e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Qe = (i) => {
344
- $t(i);
345
- }, e[18] = Qe) : Qe = e[18];
346
- const Pe = Ot(Qe);
337
+ e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ke = (i) => {
338
+ Lt(i);
339
+ }, e[15] = Ke) : Ke = e[15];
340
+ const Qe = St(Ke);
347
341
  let et;
348
- e[19] !== w || e[20] !== Ze ? (et = () => {
349
- typeof w == "string" ? _t(w).then((M) => {
350
- Ze(M);
351
- }) : Ze(w);
352
- }, e[19] = w, e[20] = Ze, e[21] = et) : et = e[21];
342
+ e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (et = (i) => {
343
+ Ft(i);
344
+ }, e[16] = et) : et = e[16];
345
+ const Ae = St(et);
353
346
  let tt;
354
- e[22] !== w ? (tt = [w], e[22] = w, e[23] = tt) : tt = e[23], Ae(et, tt);
347
+ e[17] !== j || e[18] !== Qe ? (tt = () => {
348
+ typeof j == "string" ? zt(j).then((N) => {
349
+ Qe(N);
350
+ }) : Qe(j);
351
+ }, e[17] = j, e[18] = Qe, e[19] = tt) : tt = e[19];
355
352
  let ot;
356
- e[24] !== c?.mapData || e[25] !== Pe ? (ot = () => {
357
- c?.mapData || Pe(void 0), typeof c?.mapData == "string" ? _t(c?.mapData).then((M) => {
358
- Pe(M);
359
- }) : Pe(c?.mapData);
360
- }, e[24] = c?.mapData, e[25] = Pe, e[26] = ot) : ot = e[26];
361
- const Dt = c?.mapData;
353
+ e[20] !== j ? (ot = [j], e[20] = j, e[21] = ot) : ot = e[21], Le(tt, ot);
362
354
  let rt;
363
- e[27] !== Dt ? (rt = [Dt], e[27] = Dt, e[28] = rt) : rt = e[28], Ae(ot, rt);
364
- let at, nt;
365
- e[29] !== L || e[30] !== a.speed || e[31] !== s ? (at = () => {
355
+ e[22] !== f?.mapData || e[23] !== Ae ? (rt = () => {
356
+ f?.mapData || Ae(void 0), typeof f?.mapData == "string" ? zt(f?.mapData).then((N) => {
357
+ Ae(N);
358
+ }) : Ae(f?.mapData);
359
+ }, e[22] = f?.mapData, e[23] = Ae, e[24] = rt) : rt = e[24];
360
+ const xt = f?.mapData;
361
+ let at;
362
+ e[25] !== xt ? (at = [xt], e[25] = xt, e[26] = at) : at = e[26], Le(rt, at);
363
+ let nt, it;
364
+ e[27] !== F || e[28] !== a.speed || e[29] !== s ? (nt = () => {
366
365
  const i = setInterval(() => {
367
- vt((M) => M < s.length - 1 ? M + 1 : 0);
366
+ gt((N) => N < s.length - 1 ? N + 1 : 0);
368
367
  }, (a.speed || 2) * 1e3);
369
- return L || clearInterval(i), () => clearInterval(i);
370
- }, nt = [s, L, a.speed], e[29] = L, e[30] = a.speed, e[31] = s, e[32] = at, e[33] = nt) : (at = e[32], nt = e[33]), Ae(at, nt);
371
- const kt = a.dateFormat || "yyyy";
372
- let it;
373
- e[34] !== F || e[35] !== kt || e[36] !== a.showOnlyActiveDate || e[37] !== s ? (it = Gt(s, F, a.showOnlyActiveDate, kt), e[34] = F, e[35] = kt, e[36] = a.showOnlyActiveDate, e[37] = s, e[38] = it) : it = e[38];
374
- const st = it;
375
- if (C && N && (C.length !== S[0].length - 1 || N.length !== S.length - 1))
368
+ return F || clearInterval(i), () => clearInterval(i);
369
+ }, it = [s, F, a.speed], e[27] = F, e[28] = a.speed, e[29] = s, e[30] = nt, e[31] = it) : (nt = e[30], it = e[31]), Le(nt, it);
370
+ const bt = a.dateFormat || "yyyy";
371
+ let st;
372
+ e[32] !== T || e[33] !== bt || e[34] !== a.showOnlyActiveDate || e[35] !== s ? (st = Ht(s, T, a.showOnlyActiveDate, bt), e[32] = T, e[33] = bt, e[34] = a.showOnlyActiveDate, e[35] = s, e[36] = st) : st = e[36];
373
+ const lt = st;
374
+ if (C && O && (C.length !== w[0].length - 1 || O.length !== w.length - 1))
376
375
  return console.error("the xDomain and yDomain array length don't match to the color array length"), null;
377
- const Ct = l?.graphContainer, jt = p?.graphContainer;
378
- let he;
379
- e[39] !== l?.description || e[40] !== l?.title || e[41] !== m || e[42] !== d || e[43] !== g || e[44] !== r || e[45] !== T || e[46] !== p?.description || e[47] !== p?.title || e[48] !== u ? (he = T || g || r || d ? /* @__PURE__ */ o.jsx(uo, { styles: {
380
- title: p?.title,
381
- description: p?.description
376
+ const Dt = d?.graphContainer, kt = c?.graphContainer;
377
+ let pe;
378
+ e[37] !== d?.description || e[38] !== d?.title || e[39] !== l || e[40] !== t || e[41] !== y || e[42] !== K || e[43] !== $ || e[44] !== c?.description || e[45] !== c?.title || e[46] !== u ? (pe = $ || y || K || t ? /* @__PURE__ */ o.jsx(po, { styles: {
379
+ title: c?.title,
380
+ description: c?.description
382
381
  }, classNames: {
383
- title: l?.title,
384
- description: l?.description
385
- }, graphTitle: T, graphDescription: g, width: u, graphDownload: r ? Mt : void 0, dataDownload: d ? m.map(So).filter(wo).length > 0 ? m.map(jo).filter(Co) : m.filter(ko) : null }) : null, e[39] = l?.description, e[40] = l?.title, e[41] = m, e[42] = d, e[43] = g, e[44] = r, e[45] = T, e[46] = p?.description, e[47] = p?.title, e[48] = u, e[49] = he) : he = e[49];
386
- let ue;
387
- e[50] !== F || e[51] !== st || e[52] !== L || e[53] !== a.enabled || e[54] !== s ? (ue = a.enabled && s.length > 0 && st ? /* @__PURE__ */ o.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
382
+ title: d?.title,
383
+ description: d?.description
384
+ }, graphTitle: $, graphDescription: y, width: u, graphDownload: K ? wt : void 0, dataDownload: t ? l.map(jo).filter(Co).length > 0 ? l.map(ko).filter(Do) : l.filter(bo) : null }) : null, e[37] = d?.description, e[38] = d?.title, e[39] = l, e[40] = t, e[41] = y, e[42] = K, e[43] = $, e[44] = c?.description, e[45] = c?.title, e[46] = u, e[47] = pe) : pe = e[47];
385
+ let he;
386
+ e[48] !== T || e[49] !== lt || e[50] !== F || e[51] !== a.enabled || e[52] !== s ? (he = a.enabled && s.length > 0 && lt ? /* @__PURE__ */ o.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
388
387
  /* @__PURE__ */ o.jsx("button", { type: "button", onClick: () => {
389
- Ft(!L);
390
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": L ? "Click to pause animation" : "Click to play animation", children: L ? /* @__PURE__ */ o.jsx(lo, {}) : /* @__PURE__ */ o.jsx(co, {}) }),
391
- /* @__PURE__ */ o.jsx(Vt, { min: s[0], max: s[s.length - 1], marks: st, step: null, defaultValue: s[s.length - 1], value: s[F], onChangeComplete: (i) => {
392
- vt(s.indexOf(i));
388
+ At(!F);
389
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": F ? "Click to pause animation" : "Click to play animation", children: F ? /* @__PURE__ */ o.jsx(io, {}) : /* @__PURE__ */ o.jsx(so, {}) }),
390
+ /* @__PURE__ */ o.jsx(Rt, { min: s[0], max: s[s.length - 1], marks: lt, step: null, defaultValue: s[s.length - 1], value: s[T], onChangeComplete: (i) => {
391
+ gt(s.indexOf(i));
393
392
  }, onChange: (i) => {
394
- vt(s.indexOf(i));
393
+ gt(s.indexOf(i));
395
394
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
396
- ] }) : null, e[50] = F, e[51] = st, e[52] = L, e[53] = a.enabled, e[54] = s, e[55] = ue) : ue = e[55];
397
- let fe;
398
- e[56] !== Ve || e[57] !== ve || e[58] !== l || e[59] !== ie || e[60] !== S || e[61] !== ht || e[62] !== m || e[63] !== Ce || e[64] !== pt || e[65] !== h || e[66] !== me || e[67] !== F || e[68] !== A || e[69] !== yt || e[70] !== Ee || e[71] !== Ne || e[72] !== Oe || e[73] !== c?.mapBorderColor || e[74] !== c?.mapBorderWidth || e[75] !== dt || e[76] !== t || e[77] !== pe || e[78] !== y || e[79] !== oe || e[80] !== be || e[81] !== xt || e[82] !== ft || e[83] !== v || e[84] !== ze || e[85] !== gt || e[86] !== Me || e[87] !== D || e[88] !== Ie || e[89] !== p || e[90] !== We || e[91] !== q || e[92] !== a.dateFormat || e[93] !== a.enabled || e[94] !== ee || e[95] !== s || e[96] !== u || e[97] !== _ || e[98] !== C || e[99] !== Se || e[100] !== N || e[101] !== ut || e[102] !== mt || e[103] !== Be || e[104] !== H ? (fe = /* @__PURE__ */ o.jsx(go, { ref: bt, children: q && We && pe ? /* @__PURE__ */ o.jsx(vo, { data: m.filter((i) => a.enabled ? `${i.date}` === Xt(new Date(s[F]), a.dateFormat || "yyyy") : i), mapData: D ? pe : {
399
- ...pe,
400
- features: pe.features.filter(Do)
401
- }, xDomain: C || Pt(m.map(bo), S[0].length), yDomain: N || Pt(m.map(xo), S.length), width: q, height: We, scale: Me, centerPoint: ve, colors: S, xColorLegendTitle: _, yColorLegendTitle: Se, mapBorderWidth: Ne, mapNoDataColor: Oe, mapBorderColor: Ee, tooltip: ee, onSeriesMouseOver: be, isWorldMap: A, zoomScaleExtend: Be, zoomTranslateExtend: H, onSeriesMouseClick: oe, mapProperty: t, highlightedIds: me, resetSelectionOnDoubleClick: ze, styles: p, showColorScale: Ie, classNames: l, mapProjection: dt || (A ? "naturalEarth" : "mercator"), detailsOnClick: Ce, zoomInteraction: mt, overlayMapData: xt, overlayMapBorderColor: c?.mapBorderColor, overlayMapBorderWidth: c?.mapBorderWidth, animate: Ve === !0 ? {
395
+ ] }) : null, e[48] = T, e[49] = lt, e[50] = F, e[51] = a.enabled, e[52] = s, e[53] = he) : he = e[53];
396
+ let ue;
397
+ e[54] !== Ue || e[55] !== ye || e[56] !== d || e[57] !== J || e[58] !== w || e[59] !== pt || e[60] !== l || e[61] !== v || e[62] !== mt || e[63] !== h || e[64] !== I || e[65] !== T || e[66] !== L || e[67] !== Ee || e[68] !== Oe || e[69] !== Me || e[70] !== f?.mapBorderColor || e[71] !== f?.mapBorderWidth || e[72] !== D || e[73] !== ze || e[74] !== me || e[75] !== p || e[76] !== ie || e[77] !== xe || e[78] !== yt || e[79] !== ut || e[80] !== b || e[81] !== S || e[82] !== ft || e[83] !== Se || e[84] !== r || e[85] !== Ie || e[86] !== c || e[87] !== _e || e[88] !== Q || e[89] !== a.dateFormat || e[90] !== a.enabled || e[91] !== ae || e[92] !== s || e[93] !== u || e[94] !== P || e[95] !== C || e[96] !== W || e[97] !== Ne || e[98] !== O || e[99] !== ce || e[100] !== ht || e[101] !== We || e[102] !== Be || e[103] !== R ? (ue = /* @__PURE__ */ o.jsx(uo, { ref: vt, children: Q && _e && me ? /* @__PURE__ */ o.jsx(go, { data: l.filter((i) => a.enabled ? `${i.date}` === Vt(new Date(s[T]), a.dateFormat || "yyyy") : i), mapData: r ? me : {
398
+ ...me,
399
+ features: me.features.filter(xo)
400
+ }, xDomain: C || Wt(l.map(vo), w[0].length), yDomain: O || Wt(l.map(yo), w.length), width: Q, height: _e, scale: Se, centerPoint: ye, colors: w, xColorLegendTitle: P, yColorLegendTitle: Ne, mapBorderWidth: Oe, mapNoDataColor: Me, mapBorderColor: Ee, tooltip: ae, onSeriesMouseOver: xe, isWorldMap: L, zoomScaleExtend: Be, zoomTranslateExtend: R, onSeriesMouseClick: ie, mapProperty: ze, highlightedIds: I, resetSelectionOnDoubleClick: S, styles: c, showColorScale: Ie, classNames: d, mapProjection: D || (L ? "naturalEarth" : "mercator"), detailsOnClick: v, zoomInteraction: We, overlayMapData: yt, overlayMapBorderColor: f?.mapBorderColor, overlayMapBorderWidth: f?.mapBorderWidth, animate: Ue === !0 ? {
402
401
  duration: 0.5,
403
402
  once: !0,
404
403
  amount: 0.5
405
- } : Ve || {
404
+ } : Ue || {
406
405
  duration: 0,
407
406
  once: !0,
408
407
  amount: 0
409
- }, dimmedOpacity: pt, customLayers: ht, collapseColorScaleByDefault: ie, zoomAndCenterByHighlightedIds: ut, projectionRotate: ft, rewindCoordinatesInMapData: gt, locale: yt }) : /* @__PURE__ */ o.jsx("div", { style: {
410
- height: `${Math.max(y, h || (v ? y ? (u || q) * v > y ? (u || q) * v : y : (u || q) * v : We))}px`
411
- }, className: "flex items-center justify-center", children: /* @__PURE__ */ o.jsx(Ut, { "aria-label": "Loading graph" }) }) }), e[56] = Ve, e[57] = ve, e[58] = l, e[59] = ie, e[60] = S, e[61] = ht, e[62] = m, e[63] = Ce, e[64] = pt, e[65] = h, e[66] = me, e[67] = F, e[68] = A, e[69] = yt, e[70] = Ee, e[71] = Ne, e[72] = Oe, e[73] = c?.mapBorderColor, e[74] = c?.mapBorderWidth, e[75] = dt, e[76] = t, e[77] = pe, e[78] = y, e[79] = oe, e[80] = be, e[81] = xt, e[82] = ft, e[83] = v, e[84] = ze, e[85] = gt, e[86] = Me, e[87] = D, e[88] = Ie, e[89] = p, e[90] = We, e[91] = q, e[92] = a.dateFormat, e[93] = a.enabled, e[94] = ee, e[95] = s, e[96] = u, e[97] = _, e[98] = C, e[99] = Se, e[100] = N, e[101] = ut, e[102] = mt, e[103] = Be, e[104] = H, e[105] = fe) : fe = e[105];
412
- let ge;
413
- e[106] !== l?.footnote || e[107] !== l?.source || e[108] !== W || e[109] !== K || e[110] !== p?.footnote || e[111] !== p?.source || e[112] !== u ? (ge = K || W ? /* @__PURE__ */ o.jsx(fo, { styles: {
414
- footnote: p?.footnote,
415
- source: p?.source
408
+ }, dimmedOpacity: mt, customLayers: pt, collapseColorScaleByDefault: J, zoomAndCenterByHighlightedIds: ht, projectionRotate: ut, rewindCoordinatesInMapData: ft, xNumberDisplayOptions: W, yNumberDisplayOptions: ce }) : /* @__PURE__ */ o.jsx("div", { style: {
409
+ height: `${Math.max(p, h || (b ? p ? (u || Q) * b > p ? (u || Q) * b : p : (u || Q) * b : _e))}px`
410
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ o.jsx(Gt, { "aria-label": "Loading graph" }) }) }), e[54] = Ue, e[55] = ye, e[56] = d, e[57] = J, e[58] = w, e[59] = pt, e[60] = l, e[61] = v, e[62] = mt, e[63] = h, e[64] = I, e[65] = T, e[66] = L, e[67] = Ee, e[68] = Oe, e[69] = Me, e[70] = f?.mapBorderColor, e[71] = f?.mapBorderWidth, e[72] = D, e[73] = ze, e[74] = me, e[75] = p, e[76] = ie, e[77] = xe, e[78] = yt, e[79] = ut, e[80] = b, e[81] = S, e[82] = ft, e[83] = Se, e[84] = r, e[85] = Ie, e[86] = c, e[87] = _e, e[88] = Q, e[89] = a.dateFormat, e[90] = a.enabled, e[91] = ae, e[92] = s, e[93] = u, e[94] = P, e[95] = C, e[96] = W, e[97] = Ne, e[98] = O, e[99] = ce, e[100] = ht, e[101] = We, e[102] = Be, e[103] = R, e[104] = ue) : ue = e[104];
411
+ let fe;
412
+ e[105] !== d?.footnote || e[106] !== d?.source || e[107] !== _ || e[108] !== te || e[109] !== c?.footnote || e[110] !== c?.source || e[111] !== u ? (fe = te || _ ? /* @__PURE__ */ o.jsx(ho, { styles: {
413
+ footnote: c?.footnote,
414
+ source: c?.source
416
415
  }, classNames: {
417
- footnote: l?.footnote,
418
- source: l?.source
419
- }, sources: K, footNote: W, width: u }) : null, e[106] = l?.footnote, e[107] = l?.source, e[108] = W, e[109] = K, e[110] = p?.footnote, e[111] = p?.source, e[112] = u, e[113] = ge) : ge = e[113];
420
- let lt;
421
- return e[114] !== re || e[115] !== P || e[116] !== E || e[117] !== h || e[118] !== f || e[119] !== y || e[120] !== xe || e[121] !== v || e[122] !== Ct || e[123] !== jt || e[124] !== he || e[125] !== ue || e[126] !== fe || e[127] !== ge || e[128] !== b || e[129] !== u ? (lt = /* @__PURE__ */ o.jsxs(yo, { className: Ct, style: jt, id: E, ref: Mt, "aria-label": re, backgroundColor: P, theme: b, language: f, minHeight: y, width: u, height: h, relativeHeight: v, padding: xe, children: [
416
+ footnote: d?.footnote,
417
+ source: d?.source
418
+ }, sources: te, footNote: _, width: u }) : null, e[105] = d?.footnote, e[106] = d?.source, e[107] = _, e[108] = te, e[109] = c?.footnote, e[110] = c?.source, e[111] = u, e[112] = fe) : fe = e[112];
419
+ let ct;
420
+ return e[113] !== q || e[114] !== A || e[115] !== E || e[116] !== h || e[117] !== m || e[118] !== p || e[119] !== ve || e[120] !== b || e[121] !== Dt || e[122] !== kt || e[123] !== pe || e[124] !== he || e[125] !== ue || e[126] !== fe || e[127] !== g || e[128] !== u ? (ct = /* @__PURE__ */ o.jsxs(fo, { className: Dt, style: kt, id: E, ref: wt, "aria-label": q, backgroundColor: A, theme: g, language: m, minHeight: p, width: u, height: h, relativeHeight: b, padding: ve, children: [
421
+ pe,
422
422
  he,
423
423
  ue,
424
- fe,
425
- ge
426
- ] }), e[114] = re, e[115] = P, e[116] = E, e[117] = h, e[118] = f, e[119] = y, e[120] = xe, e[121] = v, e[122] = Ct, e[123] = jt, e[124] = he, e[125] = ue, e[126] = fe, e[127] = ge, e[128] = b, e[129] = u, e[130] = lt) : lt = e[130], lt;
424
+ fe
425
+ ] }), e[113] = q, e[114] = A, e[115] = E, e[116] = h, e[117] = m, e[118] = p, e[119] = ve, e[120] = b, e[121] = Dt, e[122] = kt, e[123] = pe, e[124] = he, e[125] = ue, e[126] = fe, e[127] = g, e[128] = u, e[129] = ct) : ct = e[129], ct;
427
426
  }
428
- function xo(n) {
427
+ function yo(n) {
429
428
  return n.y;
430
429
  }
431
- function bo(n) {
430
+ function vo(n) {
432
431
  return n.x;
433
432
  }
434
- function Do(n) {
433
+ function xo(n) {
435
434
  return n.properties?.NAME !== "Antarctica";
436
435
  }
437
- function ko(n) {
436
+ function bo(n) {
438
437
  return n !== void 0;
439
438
  }
440
- function Co(n) {
439
+ function Do(n) {
441
440
  return n !== void 0;
442
441
  }
443
- function jo(n) {
442
+ function ko(n) {
444
443
  return n.data;
445
444
  }
446
- function wo(n) {
445
+ function Co(n) {
447
446
  return n !== void 0;
448
447
  }
449
- function So(n) {
448
+ function jo(n) {
450
449
  return n.data;
451
450
  }
452
- function Mo(n, e) {
451
+ function wo(n, e) {
453
452
  return n - e;
454
453
  }
455
454
  function No(n) {
456
455
  return n.date;
457
456
  }
458
457
  export {
459
- er as BiVariateChoroplethMap
458
+ Ko as BiVariateChoroplethMap
460
459
  };
461
460
  //# sourceMappingURL=BiVariateChoroplethMap.js.map