@undp/data-viz 2.4.1 → 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 +247 -245
  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 +213 -213
  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 +279 -279
  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 +143 -143
  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,20 +1,20 @@
1
1
  import { j as o, m as Tt, c as $t } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { useMemo as St, useState as D, useRef as Le, useEffect as Ae, useEffectEvent as Mt } from "react";
2
+ import { useMemo as Nt, useState as k, useRef as Fe, useEffect as Le, useEffectEvent as St } from "react";
3
3
  import { g as Ht, N as Rt } from "./getSliderMarks-X-_goqH9.js";
4
4
  import { w as Gt } from "./Spinner-B2IIKg9r.js";
5
5
  import { f as Vt, p as Ut } from "./parse-Dv4of-PN.js";
6
6
  import { i as Xt } from "./index-Bwrro8-q.js";
7
- import { i as Nt, z as Yt, a as qt, g as Jt, b as Kt, c as Zt, d as Qt, e as eo, f as to } from "./index-CKpKc9DR.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
8
  import { i as oo } from "./index-DCsFBfJ_.js";
9
- import { _ as Ot } from "./Typography-BO0gQDIT.js";
10
- import { n as Et } from "./numberFormattingFunction-DqMf_v1m.js";
11
- import { T as ro } from "./Tooltip-Bj-s__cI.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
12
  import { c as Bt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
13
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-B2XBWR7w.js";
14
+ import { D as lo } from "./DetailsModal-GqEbGHY2.js";
15
15
  import { s as Ct } from "./select-DKy99ogv.js";
16
16
  import { t as It } from "./threshold-DFfqcDMa.js";
17
- import { m as ct } from "./proxy-BsxtcZKa.js";
17
+ import { m as dt } from "./proxy-BsxtcZKa.js";
18
18
  import { u as co } from "./use-in-view-KOXq5Kmc.js";
19
19
  import { A as mo } from "./index-Cv_5q6Rb.js";
20
20
  import { GraphHeader as po } from "./GraphHeader.js";
@@ -26,195 +26,196 @@ import { a as uo, G as fo } from "./GraphContainer-B8ZqOzKI.js";
26
26
  function go(n) {
27
27
  const {
28
28
  data: e,
29
- xDomain: d,
30
- mapData: F,
31
- xColorLegendTitle: Fe,
32
- yDomain: K,
33
- yColorLegendTitle: Z,
29
+ xDomain: l,
30
+ mapData: $,
31
+ xColorLegendTitle: Te,
32
+ yDomain: ee,
33
+ yColorLegendTitle: te,
34
34
  width: y,
35
- height: u,
36
- colors: f,
37
- scale: Te,
38
- centerPoint: k,
39
- mapBorderWidth: N,
40
- mapNoDataColor: Q,
41
- mapBorderColor: ee,
42
- tooltip: te,
35
+ height: h,
36
+ colors: u,
37
+ scale: $e,
38
+ centerPoint: C,
39
+ mapBorderWidth: O,
40
+ mapNoDataColor: oe,
41
+ mapBorderColor: re,
42
+ tooltip: ae,
43
43
  onSeriesMouseOver: ge,
44
44
  zoomScaleExtend: ye,
45
45
  zoomTranslateExtend: ve,
46
- highlightedIds: C,
47
- onSeriesMouseClick: oe,
48
- mapProperty: O,
49
- resetSelectionOnDoubleClick: $e,
50
- detailsOnClick: v,
46
+ highlightedIds: x,
47
+ onSeriesMouseClick: ne,
48
+ mapProperty: M,
49
+ resetSelectionOnDoubleClick: He,
50
+ detailsOnClick: b,
51
51
  showColorScale: xe,
52
- styles: He,
53
- classNames: T,
54
- mapProjection: $,
52
+ styles: Re,
53
+ classNames: H,
54
+ mapProjection: R,
55
55
  zoomInteraction: E,
56
56
  animate: B,
57
- dimmedOpacity: H,
58
- customLayers: re,
57
+ dimmedOpacity: I,
58
+ customLayers: ie,
59
59
  collapseColorScaleByDefault: be,
60
60
  zoomAndCenterByHighlightedIds: De,
61
- projectionRotate: R,
62
- rewindCoordinatesInMapData: V,
63
- overlayMapData: U,
64
- overlayMapBorderColor: Re,
65
- overlayMapBorderWidth: Ge,
66
- locale: ae
67
- } = n, x = St(() => V ? Nt(F, {
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
- }) : F, [F, V]), ke = St(() => !V || !U ? U : Nt(U, {
70
+ }) : $, [$, X]), c = Nt(() => !X || !Y ? Y : Ot(Y, {
70
71
  reverse: !0
71
- }), [U, V]), [m, l] = D(be === void 0 ? !(y < 680) : !be), [X, Ce] = D(void 0), [ne, ie] = D(void 0), [I, G] = D(void 0), [se, le] = D(void 0), [Y, ce] = D(void 0), c = Le(null), je = co(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
- }), j = Le(null), w = Le(null);
75
- Ae(() => {
76
- const t = Ct(j.current), r = Ct(c.current), p = (g) => {
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
79
  if (E === "button") return !g.type.includes("wheel");
79
- const M = g.type === "wheel", b = g.type.startsWith("touch"), ze = g.type === "mousedown" || g.type === "mousemove";
80
- return b ? !0 : M ? E === "scroll" ? !0 : g.ctrlKey : ze && !g.button && !g.ctrlKey;
81
- }, h = Yt().scaleExtent(ye).translateExtent(ve || [[-20, -20], [y + 20, u + 20]]).filter(p).on("zoom", ({
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", ({
82
83
  transform: g
83
84
  }) => {
84
85
  t.attr("transform", g);
85
86
  });
86
- r.call(h), w.current = h;
87
- }, [u, y, E]);
88
- const z = qt({
89
- ...x,
90
- features: De ? 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) => (C || []).length === 0 || C?.indexOf(t.properties[O]) !== -1
93
- ) : x.features
94
- }), W = oo({
95
- ...x,
96
- features: De ? 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) => (C || []).length === 0 || C?.indexOf(t.properties[O]) !== -1
99
- ) : x.features
100
- }), we = (z[2] - z[0]) * 1.15, Se = (z[3] - z[1]) * 1.15, Me = y * 190 / 960 * 360 / we, Ne = u * 190 / 678 * 180 / Se, _ = Te * Math.min(Me, Ne), Oe = $ === "mercator" ? Jt().rotate(R).center(k || W.geometry.coordinates).translate([y / 2, u / 2]).scale(_) : $ === "equalEarth" ? Kt().rotate(R).center(k || W.geometry.coordinates).translate([y / 2, u / 2]).scale(_) : $ === "naturalEarth" ? Zt().rotate(R).center(k || W.geometry.coordinates).translate([y / 2, u / 2]).scale(_) : $ === "orthographic" ? Qt().rotate(R).center(k || W.geometry.coordinates).translate([y / 2, u / 2]).scale(_) : eo().rotate(R).center(k || W.geometry.coordinates).translate([y / 2, u / 2]).scale(_), P = to().projection(Oe), de = Array.from({
101
- length: d.length
102
- }, (t, r) => r), Ee = Array.from({
103
- length: K.length
104
- }, (t, r) => r), Be = It().domain(d).range(de), Ie = It().domain(K).range(Ee), q = (t) => {
105
- if (!c.current || !w.current) return;
106
- Ct(c.current).call(w.current.scaleBy, t === "in" ? 1.2 : 1 / 1.2);
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
103
+ }, (t, r) => r), Be = Array.from({
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 ${y} ${u}`, width: `${y}px`, height: `${u}px`, ref: c, direction: "ltr", children: /* @__PURE__ */ o.jsxs("g", { ref: j, children: [
111
- re.filter((t) => t.position === "before").map((t) => t.layer),
112
- x.features.map((t, r) => {
113
- if (!t.properties?.[O]) return null;
114
- const p = P(t);
115
- return p ? /* @__PURE__ */ o.jsx(ct.g, { opacity: X ? H : C ? C.indexOf(t.properties[O]) !== -1 ? 1 : H : 1, children: /* @__PURE__ */ o.jsx("path", { d: p, style: {
116
- stroke: ee,
117
- strokeWidth: N,
118
- fill: Q,
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
123
  /* @__PURE__ */ o.jsx(mo, { children: e.map((t) => {
123
- const r = x.features.findIndex(
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 p = P(x.features[r]);
129
- if (!p) return null;
130
- const h = Bt(t.x) ? void 0 : Be(t.x), g = Bt(t.y) ? void 0 : Ie(t.y), M = h !== void 0 && g !== void 0 ? f[g][h] : Q;
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 === M ? 1 : H : C ? C.indexOf(t.id) !== -1 ? 1 : H : 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: je ? "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), ce(b.clientY), le(b.clientX), ge?.(t);
147
+ }, onMouseEnter: (D) => {
148
+ J(t), f(D.clientY), U(D.clientX), ge?.(t);
148
149
  }, onClick: () => {
149
- (oe || v) && (Xt(ne, t) && $e ? (ie(void 0), oe?.(void 0)) : (ie(t), oe?.(t)));
150
- }, onMouseMove: (b) => {
151
- G(t), ce(b.clientY), le(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), le(void 0), ce(void 0), ge?.(void 0);
154
- }, children: /* @__PURE__ */ o.jsx(ct.path, { d: p, 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: M,
157
+ fill: S,
157
158
  opacity: 0
158
159
  },
159
160
  whileInView: {
160
- fill: M,
161
+ fill: S,
161
162
  opacity: 1,
162
163
  transition: {
163
164
  duration: B.duration
164
165
  }
165
166
  }
166
- }, initial: "initial", animate: je ? "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: `${M === Q ? "stroke-primary-gray-400 dark:stroke-primary-gray-500" : "stroke-primary-white dark:stroke-primary-gray-650"}`, style: {
172
- stroke: ee,
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
- I ? x.features.filter(
178
+ z ? v.features.filter(
178
179
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
179
- (t) => t.properties[O] === I.id
180
- ).map((t, r) => /* @__PURE__ */ o.jsx("path", { d: P(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
- ke?.features.map((t, r) => {
187
- const p = P(t);
188
- return p ? /* @__PURE__ */ o.jsx("g", { children: /* @__PURE__ */ o.jsx("path", { d: p, style: {
189
- stroke: Re || ee,
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
- re.filter((t) => t.position === "after").map((t) => t.layer)
197
+ ie.filter((t) => t.position === "after").map((t) => t.layer)
197
198
  ] }) }),
198
- xe === !1 ? null : /* @__PURE__ */ o.jsx("div", { className: Tt("absolute left-4 bottom-4 map-color-legend", T?.colorLegend), children: m ? /* @__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
+ ke(!1);
201
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
- f.map((t, r) => /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${100 - r * 25})`, children: t.map((p, h) => /* @__PURE__ */ o.jsx("rect", { y: 1, x: h * 25 + 1, fill: p, width: 23, height: 23, strokeWidth: X === p ? 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
- Ce(p);
211
+ Ce(m);
211
212
  }, onMouseLeave: () => {
212
213
  Ce(void 0);
213
- } }, h)) }, r)),
214
- /* @__PURE__ */ o.jsx("g", { transform: "translate(0,125)", children: d.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, void 0, void 0, void 0, ae) }, r)) }),
215
- K.map((t, r) => /* @__PURE__ */ o.jsx("g", { transform: `translate(${Math.max(Math.min(d.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, void 0, void 0, void 0, ae) }) }, r))
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(Ot, { 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,205 +223,206 @@ function go(n) {
222
223
  writingMode: "vertical-rl",
223
224
  height: "8.5rem",
224
225
  transform: "rotate(180deg)"
225
- }, children: Z })
226
+ }, children: te })
226
227
  ] }),
227
- /* @__PURE__ */ o.jsx(Ot, { 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
+ ke(!0);
237
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: () => q("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: () => q("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
- I && te && se && Y ? /* @__PURE__ */ o.jsx(ro, { data: I, body: te, xPos: se, yPos: Y, backgroundStyle: He?.tooltip, className: T?.tooltip }) : null,
244
- v && ne !== void 0 ? /* @__PURE__ */ o.jsx(lo, { body: v, data: ne, setData: ie, className: T?.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 Zo(n) {
248
- const e = $t.c(129), {
249
- data: d,
250
- graphTitle: F,
251
- mapData: Fe,
252
- colors: K,
253
- sources: Z,
248
+ function Ko(n) {
249
+ const e = $t.c(130), {
250
+ data: l,
251
+ graphTitle: $,
252
+ mapData: Te,
253
+ colors: ee,
254
+ sources: te,
254
255
  graphDescription: y,
255
- height: u,
256
- width: f,
257
- footNote: Te,
258
- xDomain: k,
259
- yDomain: N,
260
- xColorLegendTitle: Q,
261
- yColorLegendTitle: ee,
262
- tooltip: te,
256
+ height: h,
257
+ width: u,
258
+ footNote: $e,
259
+ xDomain: C,
260
+ yDomain: O,
261
+ xColorLegendTitle: oe,
262
+ yColorLegendTitle: re,
263
+ tooltip: ae,
263
264
  scale: ge,
264
265
  centerPoint: ye,
265
266
  padding: ve,
266
- mapBorderWidth: C,
267
- mapNoDataColor: oe,
268
- backgroundColor: O,
269
- mapBorderColor: $e,
270
- relativeHeight: v,
267
+ mapBorderWidth: x,
268
+ mapNoDataColor: ne,
269
+ backgroundColor: M,
270
+ mapBorderColor: He,
271
+ relativeHeight: b,
271
272
  onSeriesMouseOver: xe,
272
- isWorldMap: He,
273
- zoomScaleExtend: T,
274
- zoomTranslateExtend: $,
273
+ isWorldMap: Re,
274
+ zoomScaleExtend: H,
275
+ zoomTranslateExtend: R,
275
276
  graphID: E,
276
277
  showColorScale: B,
277
- highlightedIds: H,
278
- onSeriesMouseClick: re,
278
+ highlightedIds: I,
279
+ onSeriesMouseClick: ie,
279
280
  mapProperty: be,
280
281
  graphDownload: De,
281
- dataDownload: R,
282
- showAntarctica: V,
283
- language: U,
284
- minHeight: Re,
285
- theme: Ge,
286
- ariaLabel: ae,
287
- resetSelectionOnDoubleClick: x,
288
- detailsOnClick: ke,
289
- styles: m,
290
- classNames: l,
291
- mapProjection: X,
292
- zoomInteraction: Ce,
293
- animate: ne,
294
- dimmedOpacity: ie,
295
- customLayers: I,
296
- timeline: G,
297
- collapseColorScaleByDefault: se,
298
- zoomAndCenterByHighlightedIds: le,
299
- projectionRotate: Y,
300
- rewindCoordinatesInMapData: ce,
301
- mapOverlay: c,
302
- locale: je
303
- } = n, j = Fe === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : Fe, w = K === void 0 ? jt.light.bivariateColors.colors05x05 : K, z = 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, W = Q === void 0 ? "X Color key" : Q, we = ee === void 0 ? "Y Color key" : ee, Se = ge === void 0 ? 0.95 : ge, Me = C === void 0 ? 0.5 : C, Ne = oe === void 0 ? jt.light.graphNoData : oe, _ = O === void 0 ? !1 : O, Oe = $e === void 0 ? jt.light.grays["gray-500"] : $e, P = He === void 0 ? !0 : He;
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;
304
306
  let de;
305
- e[0] !== T ? (de = T === void 0 ? [0.8, 6] : T, e[0] = T, e[1] = de) : de = e[1];
306
- const Ee = de, Be = B === void 0 ? !0 : B, Ie = be === void 0 ? "ISO3" : be, q = De === void 0 ? !1 : De, t = R === void 0 ? !1 : R, r = V === void 0 ? !1 : V, p = U === void 0 ? "en" : U, h = Re === void 0 ? 0 : Re, g = Ge === void 0 ? "light" : Ge, M = x === void 0 ? !0 : x, b = X === void 0 ? "naturalEarth" : X, ze = Ce === void 0 ? "button" : Ce, Ve = ne === void 0 ? !1 : ne, dt = ie === void 0 ? 0.3 : ie;
307
- let Ue;
308
- e[2] !== I ? (Ue = I === void 0 ? [] : I, e[2] = I, e[3] = Ue) : Ue = e[3];
309
- const mt = 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;
310
309
  let Xe;
311
- e[4] !== 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 ? {
312
314
  enabled: !1,
313
315
  autoplay: !1,
314
316
  showOnlyActiveDate: !0
315
- } : G, e[4] = G, e[5] = Xe) : Xe = e[5];
316
- const a = Xe, pt = le === void 0 ? !1 : le;
317
- let Ye;
318
- e[6] !== Y ? (Ye = Y === void 0 ? [0, 0] : Y, e[6] = Y, e[7] = Ye) : Ye = e[7];
319
- const ht = Ye, ut = ce === void 0 ? !0 : ce, ft = je === void 0 ? "en" : je, [J, _t] = D(0), [We, Pt] = D(0), [A, At] = D(a.autoplay);
320
- let _e;
321
- if (e[8] !== d || e[9] !== 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) {
322
324
  let i;
323
- e[11] !== a.dateFormat ? (i = (S) => Ut(`${S.date}`, a.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[11] = a.dateFormat, e[12] = i) : i = e[12], _e = [...new Set(d.filter(So).map(i))], _e.sort(wo), e[8] = d, e[9] = a.dateFormat, e[10] = _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;
324
326
  } else
325
- _e = e[10];
326
- const s = _e, [L, gt] = D(a.autoplay ? 0 : s.length - 1), [me, Lt] = D(void 0), [yt, Ft] = D(void 0), vt = Le(null), wt = Le(null);
327
- let qe, Je;
328
- e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (qe = () => {
329
- const i = new ResizeObserver((S) => {
330
- _t(S[0].target.clientWidth || 620), Pt(S[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);
331
333
  });
332
334
  return vt.current && i.observe(vt.current), () => i.disconnect();
333
- }, Je = [], e[13] = qe, e[14] = Je) : (qe = e[13], Je = e[14]), Ae(qe, Je);
335
+ }, Je = [], e[13] = Ze, e[14] = Je) : (Ze = e[13], Je = e[14]), Le(Ze, Je);
334
336
  let Ke;
335
337
  e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ke = (i) => {
336
338
  Lt(i);
337
339
  }, e[15] = Ke) : Ke = e[15];
338
- const Ze = Mt(Ke);
339
- let Qe;
340
- e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Qe = (i) => {
341
- Ft(i);
342
- }, e[16] = Qe) : Qe = e[16];
343
- const Pe = Mt(Qe);
340
+ const Qe = St(Ke);
344
341
  let et;
345
- e[17] !== j || e[18] !== Ze ? (et = () => {
346
- typeof j == "string" ? zt(j).then((S) => {
347
- Ze(S);
348
- }) : Ze(j);
349
- }, e[17] = j, e[18] = Ze, e[19] = et) : et = e[19];
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);
350
346
  let tt;
351
- e[20] !== j ? (tt = [j], e[20] = j, e[21] = tt) : tt = e[21], 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];
352
352
  let ot;
353
- e[22] !== c?.mapData || e[23] !== Pe ? (ot = () => {
354
- c?.mapData || Pe(void 0), typeof c?.mapData == "string" ? zt(c?.mapData).then((S) => {
355
- Pe(S);
356
- }) : Pe(c?.mapData);
357
- }, e[22] = c?.mapData, e[23] = Pe, e[24] = ot) : ot = e[24];
358
- const xt = c?.mapData;
353
+ e[20] !== j ? (ot = [j], e[20] = j, e[21] = ot) : ot = e[21], Le(tt, ot);
359
354
  let rt;
360
- e[25] !== xt ? (rt = [xt], e[25] = xt, e[26] = rt) : rt = e[26], Ae(ot, rt);
361
- let at, nt;
362
- e[27] !== A || e[28] !== a.speed || e[29] !== 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 = () => {
363
365
  const i = setInterval(() => {
364
- gt((S) => S < s.length - 1 ? S + 1 : 0);
366
+ gt((N) => N < s.length - 1 ? N + 1 : 0);
365
367
  }, (a.speed || 2) * 1e3);
366
- return A || clearInterval(i), () => clearInterval(i);
367
- }, nt = [s, A, a.speed], e[27] = A, e[28] = a.speed, e[29] = s, e[30] = at, e[31] = nt) : (at = e[30], nt = e[31]), Ae(at, nt);
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);
368
370
  const bt = a.dateFormat || "yyyy";
369
- let it;
370
- e[32] !== L || e[33] !== bt || e[34] !== a.showOnlyActiveDate || e[35] !== s ? (it = Ht(s, L, a.showOnlyActiveDate, bt), e[32] = L, e[33] = bt, e[34] = a.showOnlyActiveDate, e[35] = s, e[36] = it) : it = e[36];
371
- const st = it;
372
- if (k && N && (k.length !== w[0].length - 1 || N.length !== w.length - 1))
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))
373
375
  return console.error("the xDomain and yDomain array length don't match to the color array length"), null;
374
- const Dt = l?.graphContainer, kt = m?.graphContainer;
376
+ const Dt = d?.graphContainer, kt = c?.graphContainer;
375
377
  let pe;
376
- e[37] !== l?.description || e[38] !== l?.title || e[39] !== d || e[40] !== t || e[41] !== y || e[42] !== q || e[43] !== F || e[44] !== m?.description || e[45] !== m?.title || e[46] !== f ? (pe = F || y || q || t ? /* @__PURE__ */ o.jsx(po, { styles: {
377
- title: m?.title,
378
- description: m?.description
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
379
381
  }, classNames: {
380
- title: l?.title,
381
- description: l?.description
382
- }, graphTitle: F, graphDescription: y, width: f, graphDownload: q ? wt : void 0, dataDownload: t ? d.map(jo).filter(Co).length > 0 ? d.map(ko).filter(Do) : d.filter(bo) : null }) : null, e[37] = l?.description, e[38] = l?.title, e[39] = d, e[40] = t, e[41] = y, e[42] = q, e[43] = F, e[44] = m?.description, e[45] = m?.title, e[46] = f, e[47] = pe) : pe = e[47];
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];
383
385
  let he;
384
- e[48] !== L || e[49] !== st || e[50] !== A || e[51] !== a.enabled || e[52] !== s ? (he = a.enabled && s.length > 0 && st ? /* @__PURE__ */ o.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
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: [
385
387
  /* @__PURE__ */ o.jsx("button", { type: "button", onClick: () => {
386
- At(!A);
387
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": A ? "Click to pause animation" : "Click to play animation", children: A ? /* @__PURE__ */ o.jsx(io, {}) : /* @__PURE__ */ o.jsx(so, {}) }),
388
- /* @__PURE__ */ o.jsx(Rt, { min: s[0], max: s[s.length - 1], marks: st, step: null, defaultValue: s[s.length - 1], value: s[L], onChangeComplete: (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) => {
389
391
  gt(s.indexOf(i));
390
392
  }, onChange: (i) => {
391
393
  gt(s.indexOf(i));
392
394
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
393
- ] }) : null, e[48] = L, e[49] = st, e[50] = A, e[51] = a.enabled, e[52] = s, e[53] = he) : he = e[53];
395
+ ] }) : null, e[48] = T, e[49] = lt, e[50] = F, e[51] = a.enabled, e[52] = s, e[53] = he) : he = e[53];
394
396
  let ue;
395
- e[54] !== Ve || e[55] !== ye || e[56] !== l || e[57] !== se || e[58] !== w || e[59] !== mt || e[60] !== d || e[61] !== ke || e[62] !== dt || e[63] !== u || e[64] !== H || e[65] !== L || e[66] !== P || e[67] !== ft || e[68] !== Oe || e[69] !== Me || e[70] !== Ne || e[71] !== c?.mapBorderColor || e[72] !== c?.mapBorderWidth || e[73] !== b || e[74] !== Ie || e[75] !== me || e[76] !== h || e[77] !== re || e[78] !== xe || e[79] !== yt || e[80] !== ht || e[81] !== v || e[82] !== M || e[83] !== ut || e[84] !== Se || e[85] !== r || e[86] !== Be || e[87] !== m || e[88] !== We || e[89] !== J || e[90] !== a.dateFormat || e[91] !== a.enabled || e[92] !== te || e[93] !== s || e[94] !== f || e[95] !== W || e[96] !== k || e[97] !== we || e[98] !== N || e[99] !== pt || e[100] !== ze || e[101] !== Ee || e[102] !== $ ? (ue = /* @__PURE__ */ o.jsx(uo, { ref: vt, children: J && We && me ? /* @__PURE__ */ o.jsx(go, { data: d.filter((i) => a.enabled ? `${i.date}` === Vt(new Date(s[L]), a.dateFormat || "yyyy") : i), mapData: r ? me : {
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 : {
396
398
  ...me,
397
399
  features: me.features.filter(xo)
398
- }, xDomain: k || Wt(d.map(vo), w[0].length), yDomain: N || Wt(d.map(yo), w.length), width: J, height: We, scale: Se, centerPoint: ye, colors: w, xColorLegendTitle: W, yColorLegendTitle: we, mapBorderWidth: Me, mapNoDataColor: Ne, mapBorderColor: Oe, tooltip: te, onSeriesMouseOver: xe, isWorldMap: P, zoomScaleExtend: Ee, zoomTranslateExtend: $, onSeriesMouseClick: re, mapProperty: Ie, highlightedIds: H, resetSelectionOnDoubleClick: M, styles: m, showColorScale: Be, classNames: l, mapProjection: b || (P ? "naturalEarth" : "mercator"), detailsOnClick: ke, zoomInteraction: ze, overlayMapData: yt, overlayMapBorderColor: c?.mapBorderColor, overlayMapBorderWidth: c?.mapBorderWidth, animate: Ve === !0 ? {
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 ? {
399
401
  duration: 0.5,
400
402
  once: !0,
401
403
  amount: 0.5
402
- } : Ve || {
404
+ } : Ue || {
403
405
  duration: 0,
404
406
  once: !0,
405
407
  amount: 0
406
- }, dimmedOpacity: dt, customLayers: mt, collapseColorScaleByDefault: se, zoomAndCenterByHighlightedIds: pt, projectionRotate: ht, rewindCoordinatesInMapData: ut, locale: ft }) : /* @__PURE__ */ o.jsx("div", { style: {
407
- height: `${Math.max(h, u || (v ? h ? (f || J) * v > h ? (f || J) * v : h : (f || J) * v : We))}px`
408
- }, className: "flex items-center justify-center", children: /* @__PURE__ */ o.jsx(Gt, { "aria-label": "Loading graph" }) }) }), e[54] = Ve, e[55] = ye, e[56] = l, e[57] = se, e[58] = w, e[59] = mt, e[60] = d, e[61] = ke, e[62] = dt, e[63] = u, e[64] = H, e[65] = L, e[66] = P, e[67] = ft, e[68] = Oe, e[69] = Me, e[70] = Ne, e[71] = c?.mapBorderColor, e[72] = c?.mapBorderWidth, e[73] = b, e[74] = Ie, e[75] = me, e[76] = h, e[77] = re, e[78] = xe, e[79] = yt, e[80] = ht, e[81] = v, e[82] = M, e[83] = ut, e[84] = Se, e[85] = r, e[86] = Be, e[87] = m, e[88] = We, e[89] = J, e[90] = a.dateFormat, e[91] = a.enabled, e[92] = te, e[93] = s, e[94] = f, e[95] = W, e[96] = k, e[97] = we, e[98] = N, e[99] = pt, e[100] = ze, e[101] = Ee, e[102] = $, e[103] = ue) : ue = e[103];
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];
409
411
  let fe;
410
- e[104] !== l?.footnote || e[105] !== l?.source || e[106] !== z || e[107] !== Z || e[108] !== m?.footnote || e[109] !== m?.source || e[110] !== f ? (fe = Z || z ? /* @__PURE__ */ o.jsx(ho, { styles: {
411
- footnote: m?.footnote,
412
- source: m?.source
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
413
415
  }, classNames: {
414
- footnote: l?.footnote,
415
- source: l?.source
416
- }, sources: Z, footNote: z, width: f }) : null, e[104] = l?.footnote, e[105] = l?.source, e[106] = z, e[107] = Z, e[108] = m?.footnote, e[109] = m?.source, e[110] = f, e[111] = fe) : fe = e[111];
417
- let lt;
418
- return e[112] !== ae || e[113] !== _ || e[114] !== E || e[115] !== u || e[116] !== p || e[117] !== h || e[118] !== ve || e[119] !== v || e[120] !== Dt || e[121] !== kt || e[122] !== pe || e[123] !== he || e[124] !== ue || e[125] !== fe || e[126] !== g || e[127] !== f ? (lt = /* @__PURE__ */ o.jsxs(fo, { className: Dt, style: kt, id: E, ref: wt, "aria-label": ae, backgroundColor: _, theme: g, language: p, minHeight: h, width: f, height: u, relativeHeight: v, padding: ve, 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: [
419
421
  pe,
420
422
  he,
421
423
  ue,
422
424
  fe
423
- ] }), e[112] = ae, e[113] = _, e[114] = E, e[115] = u, e[116] = p, e[117] = h, e[118] = ve, e[119] = v, e[120] = Dt, e[121] = kt, e[122] = pe, e[123] = he, e[124] = ue, e[125] = fe, e[126] = g, e[127] = f, e[128] = lt) : lt = e[128], lt;
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;
424
426
  }
425
427
  function yo(n) {
426
428
  return n.y;
@@ -449,10 +451,10 @@ function jo(n) {
449
451
  function wo(n, e) {
450
452
  return n - e;
451
453
  }
452
- function So(n) {
454
+ function No(n) {
453
455
  return n.date;
454
456
  }
455
457
  export {
456
- Zo as BiVariateChoroplethMap
458
+ Ko as BiVariateChoroplethMap
457
459
  };
458
460
  //# sourceMappingURL=BiVariateChoroplethMap.js.map