@undp/data-viz 1.5.2 → 1.5.4

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 (244) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.js +3 -2
  4. package/dist/AreaChart.js.map +1 -1
  5. package/dist/BarGraph.cjs +1 -1
  6. package/dist/BarGraph.cjs.map +1 -1
  7. package/dist/BarGraph.js +1196 -1224
  8. package/dist/BarGraph.js.map +1 -1
  9. package/dist/BeeSwarmChart.cjs +1 -1
  10. package/dist/BeeSwarmChart.cjs.map +1 -1
  11. package/dist/BeeSwarmChart.js +130 -142
  12. package/dist/BeeSwarmChart.js.map +1 -1
  13. package/dist/BiVariateChoroplethMap.cjs +1 -1
  14. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  15. package/dist/BiVariateChoroplethMap.js +41 -41
  16. package/dist/BiVariateChoroplethMap.js.map +1 -1
  17. package/dist/BulletChart.cjs +1 -1
  18. package/dist/BulletChart.cjs.map +1 -1
  19. package/dist/BulletChart.js +484 -488
  20. package/dist/BulletChart.js.map +1 -1
  21. package/dist/ButterflyChart.cjs +1 -1
  22. package/dist/ButterflyChart.cjs.map +1 -1
  23. package/dist/ButterflyChart.js +99 -99
  24. package/dist/ButterflyChart.js.map +1 -1
  25. package/dist/ChoroplethMap.cjs +1 -1
  26. package/dist/ChoroplethMap.cjs.map +1 -1
  27. package/dist/ChoroplethMap.js +125 -125
  28. package/dist/ChoroplethMap.js.map +1 -1
  29. package/dist/CirclePackingGraph.cjs +1 -1
  30. package/dist/CirclePackingGraph.js +2 -2
  31. package/dist/DataCards.cjs +2 -2
  32. package/dist/DataCards.cjs.map +1 -1
  33. package/dist/DataCards.js +6 -6
  34. package/dist/DataCards.js.map +1 -1
  35. package/dist/DataTable.cjs +1 -1
  36. package/dist/DataTable.cjs.map +1 -1
  37. package/dist/DataTable.js +66 -68
  38. package/dist/DataTable.js.map +1 -1
  39. package/dist/DifferenceLineChart.cjs +1 -1
  40. package/dist/DifferenceLineChart.cjs.map +1 -1
  41. package/dist/DifferenceLineChart.js +3 -2
  42. package/dist/DifferenceLineChart.js.map +1 -1
  43. package/dist/DonutChart.cjs +1 -1
  44. package/dist/DonutChart.cjs.map +1 -1
  45. package/dist/DonutChart.js +205 -205
  46. package/dist/DonutChart.js.map +1 -1
  47. package/dist/DotDensityMap.cjs +1 -1
  48. package/dist/DotDensityMap.cjs.map +1 -1
  49. package/dist/DotDensityMap.js +78 -81
  50. package/dist/DotDensityMap.js.map +1 -1
  51. package/dist/DualAxisLineChart.cjs +1 -1
  52. package/dist/DualAxisLineChart.cjs.map +1 -1
  53. package/dist/DualAxisLineChart.js +3 -2
  54. package/dist/DualAxisLineChart.js.map +1 -1
  55. package/dist/DumbbellChart.cjs +1 -1
  56. package/dist/DumbbellChart.cjs.map +1 -1
  57. package/dist/DumbbellChart.js +66 -67
  58. package/dist/DumbbellChart.js.map +1 -1
  59. package/dist/GeoHubMap.cjs +1 -1
  60. package/dist/GeoHubMap.js +1 -1
  61. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  62. package/dist/GeoHubMapWithLayerSelection.js +1 -1
  63. package/dist/{GraphEl-4RUlclvW.cjs → GraphEl-BcYgMnN2.cjs} +2 -2
  64. package/dist/{GraphEl-4RUlclvW.cjs.map → GraphEl-BcYgMnN2.cjs.map} +1 -1
  65. package/dist/{GraphEl-ClIxlWa3.js → GraphEl-CMWeARJ3.js} +2 -2
  66. package/dist/{GraphEl-ClIxlWa3.js.map → GraphEl-CMWeARJ3.js.map} +1 -1
  67. package/dist/GriddedGraphs.cjs +1 -1
  68. package/dist/GriddedGraphs.js +4 -4
  69. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  70. package/dist/GriddedGraphsFromConfig.js +1 -1
  71. package/dist/HeatMap.cjs +1 -1
  72. package/dist/HeatMap.cjs.map +1 -1
  73. package/dist/HeatMap.js +83 -83
  74. package/dist/HeatMap.js.map +1 -1
  75. package/dist/Histogram.cjs +1 -1
  76. package/dist/Histogram.js +1 -1
  77. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  78. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  79. package/dist/LineChartWithConfidenceInterval.js +7 -6
  80. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  81. package/dist/MultiGraphDashboard.cjs +1 -1
  82. package/dist/MultiGraphDashboard.js +2 -2
  83. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  84. package/dist/MultiGraphDashboardFromConfig.js +1 -1
  85. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  86. package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
  87. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  88. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +1 -1
  89. package/dist/MultiLineAltChart.cjs +1 -1
  90. package/dist/MultiLineAltChart.cjs.map +1 -1
  91. package/dist/MultiLineAltChart.js +82 -91
  92. package/dist/MultiLineAltChart.js.map +1 -1
  93. package/dist/MultiLineChart.cjs +1 -1
  94. package/dist/MultiLineChart.cjs.map +1 -1
  95. package/dist/MultiLineChart.js +3 -2
  96. package/dist/MultiLineChart.js.map +1 -1
  97. package/dist/ParetoChart.cjs +1 -1
  98. package/dist/ParetoChart.js +1 -1
  99. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  100. package/dist/PerformanceIntensiveMultiGraphDashboard.js +2 -2
  101. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  102. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +1 -1
  103. package/dist/RadarChart.cjs +1 -1
  104. package/dist/RadarChart.cjs.map +1 -1
  105. package/dist/RadarChart.js +124 -130
  106. package/dist/RadarChart.js.map +1 -1
  107. package/dist/SankeyChart.cjs +1 -1
  108. package/dist/SankeyChart.cjs.map +1 -1
  109. package/dist/SankeyChart.js +200 -200
  110. package/dist/SankeyChart.js.map +1 -1
  111. package/dist/ScatterPlot.cjs +1 -1
  112. package/dist/ScatterPlot.cjs.map +1 -1
  113. package/dist/ScatterPlot.js +149 -155
  114. package/dist/ScatterPlot.js.map +1 -1
  115. package/dist/SimpleLineChart.cjs +1 -1
  116. package/dist/SimpleLineChart.cjs.map +1 -1
  117. package/dist/SimpleLineChart.js +44 -43
  118. package/dist/SimpleLineChart.js.map +1 -1
  119. package/dist/SingleGraphDashboard.cjs +1 -1
  120. package/dist/SingleGraphDashboard.js +4 -4
  121. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  122. package/dist/SingleGraphDashboardFromConfig.js +1 -1
  123. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  124. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +1 -1
  125. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  126. package/dist/SingleGraphDashboardThreeDGraphs.js +3 -3
  127. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  128. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +1 -1
  129. package/dist/SlopeChart.cjs +1 -1
  130. package/dist/SlopeChart.cjs.map +1 -1
  131. package/dist/SlopeChart.js +107 -113
  132. package/dist/SlopeChart.js.map +1 -1
  133. package/dist/SparkLine.cjs +1 -1
  134. package/dist/SparkLine.cjs.map +1 -1
  135. package/dist/SparkLine.js +3 -2
  136. package/dist/SparkLine.js.map +1 -1
  137. package/dist/StripChart.cjs +1 -1
  138. package/dist/StripChart.cjs.map +1 -1
  139. package/dist/StripChart.js +159 -159
  140. package/dist/StripChart.js.map +1 -1
  141. package/dist/ThreeDGlobe.cjs +1 -1
  142. package/dist/ThreeDGlobe.cjs.map +1 -1
  143. package/dist/ThreeDGlobe.js +3 -3
  144. package/dist/ThreeDGlobe.js.map +1 -1
  145. package/dist/TreeMapGraph.cjs +1 -1
  146. package/dist/TreeMapGraph.cjs.map +1 -1
  147. package/dist/TreeMapGraph.js +194 -200
  148. package/dist/TreeMapGraph.js.map +1 -1
  149. package/dist/XAxesLabels-Drf7M3YK.cjs +2 -0
  150. package/dist/XAxesLabels-Drf7M3YK.cjs.map +1 -0
  151. package/dist/{XAxesLabels-CaV2q-6H.js → XAxesLabels-loO78vUO.js} +19 -19
  152. package/dist/XAxesLabels-loO78vUO.js.map +1 -0
  153. package/dist/YAxesLabels-CctDydGR.cjs +2 -0
  154. package/dist/YAxesLabels-CctDydGR.cjs.map +1 -0
  155. package/dist/{YAxesLabels-CPGZjmZJ.js → YAxesLabels-DSm6I5zG.js} +16 -17
  156. package/dist/YAxesLabels-DSm6I5zG.js.map +1 -0
  157. package/dist/ensureCompleteData-DkQYPeDa.cjs +2 -0
  158. package/dist/ensureCompleteData-DkQYPeDa.cjs.map +1 -0
  159. package/dist/{ensureCompleteData-BALdOrsS.js → ensureCompleteData-DlmibgaI.js} +28 -8
  160. package/dist/ensureCompleteData-DlmibgaI.js.map +1 -0
  161. package/dist/fetchAndParseData-Ba-_CgxS.cjs +16 -0
  162. package/dist/fetchAndParseData-Ba-_CgxS.cjs.map +1 -0
  163. package/dist/fetchAndParseData-sapWbnYk.js +583 -0
  164. package/dist/fetchAndParseData-sapWbnYk.js.map +1 -0
  165. package/dist/fetchAndParseData.cjs +1 -1
  166. package/dist/fetchAndParseData.js +1 -1
  167. package/dist/getJenks-BbngDoBQ.js +19 -0
  168. package/dist/getJenks-BbngDoBQ.js.map +1 -0
  169. package/dist/getJenks-GYmdwBqm.cjs +2 -0
  170. package/dist/getJenks-GYmdwBqm.cjs.map +1 -0
  171. package/dist/getSliderMarks-9cNoRkDx.js +1023 -0
  172. package/dist/getSliderMarks-9cNoRkDx.js.map +1 -0
  173. package/dist/getSliderMarks-CRIbTGYV.cjs +6 -0
  174. package/dist/getSliderMarks-CRIbTGYV.cjs.map +1 -0
  175. package/dist/getUniqValue-DiCh_MOD.js +13 -0
  176. package/dist/getUniqValue-DiCh_MOD.js.map +1 -0
  177. package/dist/getUniqValue-RViz8tTw.cjs +2 -0
  178. package/dist/getUniqValue-RViz8tTw.cjs.map +1 -0
  179. package/dist/{index-BMgDMxKJ.js → index-37q0ULNQ.js} +44 -50
  180. package/dist/index-37q0ULNQ.js.map +1 -0
  181. package/dist/index-CVlCtJbC.cjs +2 -0
  182. package/dist/index-CVlCtJbC.cjs.map +1 -0
  183. package/dist/index.cjs +1 -1
  184. package/dist/index.d.ts +1 -1
  185. package/dist/index.js +6 -6
  186. package/dist/sort-DfK1b0F5.js +34 -0
  187. package/dist/sort-DfK1b0F5.js.map +1 -0
  188. package/dist/sort-O96oMZLb.cjs +2 -0
  189. package/dist/sort-O96oMZLb.cjs.map +1 -0
  190. package/dist/transformData.cjs +1 -1
  191. package/dist/transformData.js +3 -3
  192. package/dist/transformDataForAggregation-KXGm6flX.cjs +2 -0
  193. package/dist/{transformDataForAggregation-BVxVu4yY.cjs.map → transformDataForAggregation-KXGm6flX.cjs.map} +1 -1
  194. package/dist/{transformDataForAggregation-1BYVFqvF.js → transformDataForAggregation-sBpdlX8n.js} +40 -44
  195. package/dist/{transformDataForAggregation-1BYVFqvF.js.map → transformDataForAggregation-sBpdlX8n.js.map} +1 -1
  196. package/dist/{transformDataForGraphFromFile-BC9Ha8hF.js → transformDataForGraphFromFile-ComYvzuz.js} +3 -3
  197. package/dist/{transformDataForGraphFromFile-BC9Ha8hF.js.map → transformDataForGraphFromFile-ComYvzuz.js.map} +1 -1
  198. package/dist/{transformDataForGraphFromFile-b41aNQYY.cjs → transformDataForGraphFromFile-DVZodTHd.cjs} +2 -2
  199. package/dist/{transformDataForGraphFromFile-b41aNQYY.cjs.map → transformDataForGraphFromFile-DVZodTHd.cjs.map} +1 -1
  200. package/dist/uniqBy-BHy4I8PK.js +8 -0
  201. package/dist/uniqBy-BHy4I8PK.js.map +1 -0
  202. package/dist/uniqBy-O05lp2S5.cjs +2 -0
  203. package/dist/uniqBy-O05lp2S5.cjs.map +1 -0
  204. package/dist/utils.cjs +1 -1
  205. package/dist/utils.d.ts +1 -1
  206. package/dist/utils.js +2 -2
  207. package/package.json +1 -7
  208. package/dist/XAxesLabels-CaV2q-6H.js.map +0 -1
  209. package/dist/XAxesLabels-OjBNl_lS.cjs +0 -2
  210. package/dist/XAxesLabels-OjBNl_lS.cjs.map +0 -1
  211. package/dist/YAxesLabels-CPGZjmZJ.js.map +0 -1
  212. package/dist/YAxesLabels-D8IydyZj.cjs +0 -2
  213. package/dist/YAxesLabels-D8IydyZj.cjs.map +0 -1
  214. package/dist/ensureCompleteData-BALdOrsS.js.map +0 -1
  215. package/dist/ensureCompleteData-BU5Zlccy.cjs +0 -2
  216. package/dist/ensureCompleteData-BU5Zlccy.cjs.map +0 -1
  217. package/dist/fetchAndParseData-DBOl1Icl.js +0 -1196
  218. package/dist/fetchAndParseData-DBOl1Icl.js.map +0 -1
  219. package/dist/fetchAndParseData-Dcy7AS_0.cjs +0 -16
  220. package/dist/fetchAndParseData-Dcy7AS_0.cjs.map +0 -1
  221. package/dist/getJenks-DW96UYNE.js +0 -23
  222. package/dist/getJenks-DW96UYNE.js.map +0 -1
  223. package/dist/getJenks-vofIZmeb.cjs +0 -2
  224. package/dist/getJenks-vofIZmeb.cjs.map +0 -1
  225. package/dist/getSliderMarks-C0jptXeP.js +0 -1054
  226. package/dist/getSliderMarks-C0jptXeP.js.map +0 -1
  227. package/dist/getSliderMarks-CtsEXiLV.cjs +0 -6
  228. package/dist/getSliderMarks-CtsEXiLV.cjs.map +0 -1
  229. package/dist/getUniqValue-CfuE_l9c.cjs +0 -2
  230. package/dist/getUniqValue-CfuE_l9c.cjs.map +0 -1
  231. package/dist/getUniqValue-CttuU_wn.js +0 -20
  232. package/dist/getUniqValue-CttuU_wn.js.map +0 -1
  233. package/dist/index-AqnpA7_O.js +0 -631
  234. package/dist/index-AqnpA7_O.js.map +0 -1
  235. package/dist/index-BJOeaYTk.cjs +0 -2
  236. package/dist/index-BJOeaYTk.cjs.map +0 -1
  237. package/dist/index-BMgDMxKJ.js.map +0 -1
  238. package/dist/index-DYH8g9WA.cjs +0 -2
  239. package/dist/index-DYH8g9WA.cjs.map +0 -1
  240. package/dist/index-Da2GUKrr.cjs +0 -2
  241. package/dist/index-Da2GUKrr.cjs.map +0 -1
  242. package/dist/index-fwdktvAS.js +0 -707
  243. package/dist/index-fwdktvAS.js.map +0 -1
  244. package/dist/transformDataForAggregation-BVxVu4yY.cjs +0 -2
@@ -1,31 +1,32 @@
1
- import { j as t, m as je } from "./index-CHPV5EwG-BPSP-7Jg.js";
1
+ import { j as e, m as je } from "./index-CHPV5EwG-BPSP-7Jg.js";
2
2
  import { useState as b, useRef as ae, useEffect as pe } from "react";
3
- import { s as we, g as $e, x as Ne } from "./getSliderMarks-C0jptXeP.js";
4
- import { y as Ce } from "./Spinner-C85UF28E.js";
5
- import { p as Me, f as De } from "./parse-DlCRUFh_.js";
6
- import { u as Se } from "./index-AqnpA7_O.js";
7
- import { i as Oe } from "./index-Bwrro8-q.js";
8
- import { z as Ee, t as Pe, g as Ie, a as Le, b as ze, c as We, d as Te } from "./zoom-DAu91HKr.js";
9
- import { X as Be } from "./Modal-DVVwpKhP.js";
3
+ import { g as we, x as $e } from "./getSliderMarks-9cNoRkDx.js";
4
+ import { y as Ne } from "./Spinner-C85UF28E.js";
5
+ import { p as Ce, f as Me } from "./parse-DlCRUFh_.js";
6
+ import { i as De } from "./index-Bwrro8-q.js";
7
+ import { z as Se, t as Oe, g as Ee, a as Pe, b as Ie, c as Le, d as ze } from "./zoom-DAu91HKr.js";
8
+ import { X as We } from "./Modal-DVVwpKhP.js";
10
9
  import { u as ke } from "./Typography-Ctgfl1J5.js";
11
- import { t as Ae } from "./index-qfWCwobm.js";
12
- import { n as Ve } from "./numberFormattingFunction-14YCbkN2.js";
13
- import { T as Fe } from "./Tooltip-CVCGWyzw.js";
14
- import { s as He } from "./string2HTML-oFCROsus.js";
15
- import { c as qe } from "./checkIfNullOrUndefined-DmfiKkNw.js";
16
- import { X as Xe, P as _e, f as Ue } from "./index-BmCqpO1B.js";
17
- import { o as Ge } from "./ordinal-w9Lu4Stb.js";
18
- import { t as Re } from "./threshold-DFfqcDMa.js";
10
+ import { t as Te } from "./index-qfWCwobm.js";
11
+ import { n as Be } from "./numberFormattingFunction-14YCbkN2.js";
12
+ import { T as Ae } from "./Tooltip-CVCGWyzw.js";
13
+ import { s as Ve } from "./string2HTML-oFCROsus.js";
14
+ import { c as Fe } from "./checkIfNullOrUndefined-DmfiKkNw.js";
15
+ import { X as He, P as qe, f as Xe } from "./index-BmCqpO1B.js";
16
+ import { o as _e } from "./ordinal-w9Lu4Stb.js";
17
+ import { t as Ue } from "./threshold-DFfqcDMa.js";
19
18
  import { s as be } from "./select-DKy99ogv.js";
20
- import { u as Ye } from "./use-in-view-yS6jzJAp.js";
19
+ import { u as Ge } from "./use-in-view-yS6jzJAp.js";
21
20
  import { m as de } from "./proxy-CkpFesk1.js";
22
- import { A as Je } from "./index-CNvov0eg.js";
23
- import { GraphFooter as Ke } from "./GraphFooter.js";
24
- import { GraphHeader as Ze } from "./GraphHeader.js";
21
+ import { A as Re } from "./index-CNvov0eg.js";
22
+ import { GraphFooter as Ye } from "./GraphFooter.js";
23
+ import { GraphHeader as Je } from "./GraphHeader.js";
25
24
  import { Colors as me } from "./Colors.js";
26
- import { f as Qe } from "./fetchAndParseData-DBOl1Icl.js";
27
- import { g as et } from "./getUniqValue-CttuU_wn.js";
28
- import { g as tt } from "./getJenks-DW96UYNE.js";
25
+ import { f as Ke } from "./fetchAndParseData-sapWbnYk.js";
26
+ import { g as Ze } from "./getUniqValue-DiCh_MOD.js";
27
+ import { g as Qe } from "./getJenks-BbngDoBQ.js";
28
+ import { u as et } from "./uniqBy-BHy4I8PK.js";
29
+ import { s as tt } from "./sort-DfK1b0F5.js";
29
30
  import { c as rt } from "./init-BhZylTFx.js";
30
31
  function at(he) {
31
32
  const {
@@ -59,17 +60,17 @@ function at(he) {
59
60
  animate: j,
60
61
  dimmedOpacity: _,
61
62
  customLayers: ne
62
- } = he, [w, M] = b(void 0), J = ae(null), [K, v] = b(!(s < 680)), [D, Z] = b(void 0), [U, Q] = b(void 0), [S, $] = b(void 0), [se, ee] = b(void 0), L = ae(null), te = Ye(L, {
63
+ } = he, [w, M] = b(void 0), J = ae(null), [K, v] = b(!(s < 680)), [D, Z] = b(void 0), [U, Q] = b(void 0), [S, $] = b(void 0), [se, ee] = b(void 0), L = ae(null), te = Ge(L, {
63
64
  once: j.once,
64
65
  amount: j.amount
65
- }), le = ae(null), y = E ? Ge().domain(g).range(c) : Re().domain(g).range(c);
66
+ }), le = ae(null), y = E ? _e().domain(g).range(c) : Ue().domain(g).range(c);
66
67
  pe(() => {
67
68
  const r = be(le.current), l = be(L.current), m = (o) => {
68
69
  if (B === "noZoom") return !1;
69
70
  if (B === "button") return !o.type.includes("wheel");
70
- const n = o.type === "wheel", e = o.type.startsWith("touch"), a = o.type === "mousedown" || o.type === "mousemove";
71
- return e ? !0 : n ? B === "scroll" ? !0 : o.ctrlKey : a && !o.button && !o.ctrlKey;
72
- }, i = Ee().scaleExtent(ue).translateExtent(
71
+ const n = o.type === "wheel", t = o.type.startsWith("touch"), a = o.type === "mousedown" || o.type === "mousemove";
72
+ return t ? !0 : n ? B === "scroll" ? !0 : o.ctrlKey : a && !o.button && !o.ctrlKey;
73
+ }, i = Se().scaleExtent(ue).translateExtent(
73
74
  I || [
74
75
  [-20, -20],
75
76
  [s + 20, h + 20]
@@ -79,13 +80,13 @@ function at(he) {
79
80
  });
80
81
  l.call(i), J.current = i;
81
82
  }, [h, s, B]);
82
- const u = Pe(x), z = Ae(x), re = u[2] - u[0], ce = u[3] - u[1], A = s * 190 / 960 * 360 / re, ve = h * 190 / 678 * 180 / ce, d = oe * Math.min(A, ve), N = X === "mercator" ? Ie().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d) : X === "equalEarth" ? Le().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d) : X === "naturalEarth" ? ze().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d) : X === "orthographic" ? We().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d) : Te().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d), G = (r) => {
83
+ const u = Oe(x), z = Te(x), re = u[2] - u[0], ce = u[3] - u[1], A = s * 190 / 960 * 360 / re, ve = h * 190 / 678 * 180 / ce, d = oe * Math.min(A, ve), N = X === "mercator" ? Ee().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d) : X === "equalEarth" ? Pe().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d) : X === "naturalEarth" ? Ie().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d) : X === "orthographic" ? Le().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d) : ze().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d), G = (r) => {
83
84
  if (!L.current || !J.current) return;
84
85
  be(L.current).call(J.current.scaleBy, r === "in" ? 1.2 : 1 / 1.2);
85
86
  };
86
- return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
87
- /* @__PURE__ */ t.jsxs("div", { className: "relative", children: [
88
- /* @__PURE__ */ t.jsx(
87
+ return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
88
+ /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
89
+ /* @__PURE__ */ e.jsx(
89
90
  de.svg,
90
91
  {
91
92
  width: `${s}px`,
@@ -93,10 +94,10 @@ function at(he) {
93
94
  viewBox: `0 0 ${s} ${h}`,
94
95
  ref: L,
95
96
  direction: "ltr",
96
- children: /* @__PURE__ */ t.jsxs("g", { ref: le, children: [
97
+ children: /* @__PURE__ */ e.jsxs("g", { ref: le, children: [
97
98
  ne.filter((r) => r.position === "before").map((r) => r.layer),
98
99
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
99
- x.features.map((r, l) => k.findIndex((i) => i.id === r.properties[q]) !== -1 ? null : /* @__PURE__ */ t.jsx(
100
+ x.features.map((r, l) => k.findIndex((i) => i.id === r.properties[q]) !== -1 ? null : /* @__PURE__ */ e.jsx(
100
101
  "g",
101
102
  {
102
103
  opacity: w ? _ : H.length !== 0 ? H.indexOf(r.properties[q]) !== -1 ? 1 : _ : 1,
@@ -104,13 +105,13 @@ function at(he) {
104
105
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
105
106
  r.geometry.coordinates.map((i, o) => {
106
107
  let n = "";
107
- return i.forEach((e) => {
108
+ return i.forEach((t) => {
108
109
  let a = " M";
109
- e.forEach((p, W) => {
110
+ t.forEach((p, W) => {
110
111
  const O = N([p[0], p[1]]);
111
- W !== e.length - 1 ? a = `${a}${O[0]} ${O[1]}L` : a = `${a}${O[0]} ${O[1]}`;
112
+ W !== t.length - 1 ? a = `${a}${O[0]} ${O[1]}L` : a = `${a}${O[0]} ${O[1]}`;
112
113
  }), n += a;
113
- }), /* @__PURE__ */ t.jsx(
114
+ }), /* @__PURE__ */ e.jsx(
114
115
  "path",
115
116
  {
116
117
  d: n,
@@ -127,10 +128,10 @@ function at(he) {
127
128
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
128
129
  r.geometry.coordinates.map((i, o) => {
129
130
  let n = "M";
130
- return i.forEach((e, a) => {
131
- const p = N([e[0], e[1]]);
131
+ return i.forEach((t, a) => {
132
+ const p = N([t[0], t[1]]);
132
133
  a !== i.length - 1 ? n = `${n}${p[0]} ${p[1]}L` : n = `${n}${p[0]} ${p[1]}`;
133
- }), /* @__PURE__ */ t.jsx(
134
+ }), /* @__PURE__ */ e.jsx(
134
135
  "path",
135
136
  {
136
137
  d: n,
@@ -147,15 +148,15 @@ function at(he) {
147
148
  },
148
149
  l
149
150
  )),
150
- /* @__PURE__ */ t.jsx(Je, { children: k.map((r) => {
151
+ /* @__PURE__ */ e.jsx(Re, { children: k.map((r) => {
151
152
  const l = x.features.findIndex(
152
153
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
153
154
  (i) => r.id === i.properties[q]
154
- ), m = qe(r.x) ? R : (
155
+ ), m = Fe(r.x) ? R : (
155
156
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
156
157
  y(r.x)
157
158
  );
158
- return /* @__PURE__ */ t.jsx(
159
+ return /* @__PURE__ */ e.jsx(
159
160
  de.g,
160
161
  {
161
162
  variants: {
@@ -178,19 +179,19 @@ function at(he) {
178
179
  Q(void 0), $(void 0), ee(void 0), Y?.(void 0);
179
180
  },
180
181
  onClick: () => {
181
- (f || C) && (Oe(D, r) && fe ? (Z(void 0), f?.(void 0)) : (Z(r), f?.(r)));
182
+ (f || C) && (De(D, r) && fe ? (Z(void 0), f?.(void 0)) : (Z(r), f?.(r)));
182
183
  },
183
184
  children: l === -1 ? null : x.features[l].geometry.type === "MultiPolygon" ? x.features[l].geometry.coordinates.map(
184
185
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
185
186
  (i, o) => {
186
187
  let n = "";
187
- return i.forEach((e) => {
188
+ return i.forEach((t) => {
188
189
  let a = " M";
189
- e.forEach((p, W) => {
190
+ t.forEach((p, W) => {
190
191
  const O = N([p[0], p[1]]);
191
- W !== e.length - 1 ? a = `${a}${O[0]} ${O[1]}L` : a = `${a}${O[0]} ${O[1]}`;
192
+ W !== t.length - 1 ? a = `${a}${O[0]} ${O[1]}L` : a = `${a}${O[0]} ${O[1]}`;
192
193
  }), n += a;
193
- }), /* @__PURE__ */ t.jsx(
194
+ }), /* @__PURE__ */ e.jsx(
194
195
  de.path,
195
196
  {
196
197
  d: n,
@@ -217,10 +218,10 @@ function at(he) {
217
218
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
218
219
  (i, o) => {
219
220
  let n = "M";
220
- return i.forEach((e, a) => {
221
- const p = N([e[0], e[1]]);
221
+ return i.forEach((t, a) => {
222
+ const p = N([t[0], t[1]]);
222
223
  a !== i.length - 1 ? n = `${n}${p[0]} ${p[1]}L` : n = `${n}${p[0]} ${p[1]}`;
223
- }), /* @__PURE__ */ t.jsx(
224
+ }), /* @__PURE__ */ e.jsx(
224
225
  de.path,
225
226
  {
226
227
  d: n,
@@ -251,17 +252,17 @@ function at(he) {
251
252
  U ? x.features.filter(
252
253
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
253
254
  (r) => r.properties[q] === U.id
254
- ).map((r, l) => /* @__PURE__ */ t.jsx("g", { children: r.geometry.type === "MultiPolygon" ? (
255
+ ).map((r, l) => /* @__PURE__ */ e.jsx("g", { children: r.geometry.type === "MultiPolygon" ? (
255
256
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
256
257
  r.geometry.coordinates.map((m, i) => {
257
258
  let o = "";
258
259
  return m.forEach((n) => {
259
- let e = " M";
260
+ let t = " M";
260
261
  n.forEach((a, p) => {
261
262
  const W = N([a[0], a[1]]);
262
- p !== n.length - 1 ? e = `${e}${W[0]} ${W[1]}L` : e = `${e}${W[0]} ${W[1]}`;
263
- }), o += e;
264
- }), /* @__PURE__ */ t.jsx(
263
+ p !== n.length - 1 ? t = `${t}${W[0]} ${W[1]}L` : t = `${t}${W[0]} ${W[1]}`;
264
+ }), o += t;
265
+ }), /* @__PURE__ */ e.jsx(
265
266
  "path",
266
267
  {
267
268
  d: o,
@@ -279,10 +280,10 @@ function at(he) {
279
280
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
280
281
  r.geometry.coordinates.map((m, i) => {
281
282
  let o = "M";
282
- return m.forEach((n, e) => {
283
+ return m.forEach((n, t) => {
283
284
  const a = N([n[0], n[1]]);
284
- e !== m.length - 1 ? o = `${o}${a[0]} ${a[1]}L` : o = `${o}${a[0]} ${a[1]}`;
285
- }), /* @__PURE__ */ t.jsx(
285
+ t !== m.length - 1 ? o = `${o}${a[0]} ${a[1]}L` : o = `${o}${a[0]} ${a[1]}`;
286
+ }), /* @__PURE__ */ e.jsx(
286
287
  "path",
287
288
  {
288
289
  d: o,
@@ -301,8 +302,8 @@ function at(he) {
301
302
  ] })
302
303
  }
303
304
  ),
304
- ge === !1 ? null : /* @__PURE__ */ t.jsx("div", { className: "absolute left-4 bottom-4", children: K ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
305
- /* @__PURE__ */ t.jsx(
305
+ ge === !1 ? null : /* @__PURE__ */ e.jsx("div", { className: "absolute left-4 bottom-4", children: K ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
306
+ /* @__PURE__ */ e.jsx(
306
307
  "div",
307
308
  {
308
309
  style: {
@@ -321,10 +322,10 @@ function at(he) {
321
322
  onClick: () => {
322
323
  v(!1);
323
324
  },
324
- children: /* @__PURE__ */ t.jsx(Xe, {})
325
+ children: /* @__PURE__ */ e.jsx(He, {})
325
326
  }
326
327
  ),
327
- /* @__PURE__ */ t.jsxs(
328
+ /* @__PURE__ */ e.jsxs(
328
329
  "div",
329
330
  {
330
331
  className: "p-2",
@@ -333,7 +334,7 @@ function at(he) {
333
334
  width: E ? void 0 : "340px"
334
335
  },
335
336
  children: [
336
- V && V !== "" ? /* @__PURE__ */ t.jsx(
337
+ V && V !== "" ? /* @__PURE__ */ e.jsx(
337
338
  ke,
338
339
  {
339
340
  size: "xs",
@@ -347,7 +348,7 @@ function at(he) {
347
348
  children: V
348
349
  }
349
350
  ) : null,
350
- E ? /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-3", children: g.map((r, l) => /* @__PURE__ */ t.jsxs(
351
+ E ? /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-3", children: g.map((r, l) => /* @__PURE__ */ e.jsxs(
351
352
  "div",
352
353
  {
353
354
  className: "flex gap-2 items-center",
@@ -358,19 +359,19 @@ function at(he) {
358
359
  M(void 0);
359
360
  },
360
361
  children: [
361
- /* @__PURE__ */ t.jsx(
362
+ /* @__PURE__ */ e.jsx(
362
363
  "div",
363
364
  {
364
365
  className: "w-2 h-2 rounded-full",
365
366
  style: { backgroundColor: c[l % c.length] }
366
367
  }
367
368
  ),
368
- /* @__PURE__ */ t.jsx(ke, { size: "sm", marginBottom: "none", leading: "none", children: r })
369
+ /* @__PURE__ */ e.jsx(ke, { size: "sm", marginBottom: "none", leading: "none", children: r })
369
370
  ]
370
371
  },
371
372
  l
372
- )) }) : /* @__PURE__ */ t.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ t.jsxs("g", { children: [
373
- g.map((r, l) => /* @__PURE__ */ t.jsxs(
373
+ )) }) : /* @__PURE__ */ e.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ e.jsxs("g", { children: [
374
+ g.map((r, l) => /* @__PURE__ */ e.jsxs(
374
375
  "g",
375
376
  {
376
377
  onMouseOver: () => {
@@ -381,7 +382,7 @@ function at(he) {
381
382
  },
382
383
  className: "cursor-pointer",
383
384
  children: [
384
- /* @__PURE__ */ t.jsx(
385
+ /* @__PURE__ */ e.jsx(
385
386
  "rect",
386
387
  {
387
388
  x: l * 320 / c.length + 1,
@@ -395,21 +396,21 @@ function at(he) {
395
396
  }
396
397
  }
397
398
  ),
398
- /* @__PURE__ */ t.jsx(
399
+ /* @__PURE__ */ e.jsx(
399
400
  "text",
400
401
  {
401
402
  x: (l + 1) * 320 / c.length,
402
403
  y: 25,
403
404
  className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",
404
405
  style: { textAnchor: "middle" },
405
- children: Ve(r, "NA")
406
+ children: Be(r, "NA")
406
407
  }
407
408
  )
408
409
  ]
409
410
  },
410
411
  l
411
412
  )),
412
- /* @__PURE__ */ t.jsx("g", { children: /* @__PURE__ */ t.jsx(
413
+ /* @__PURE__ */ e.jsx("g", { children: /* @__PURE__ */ e.jsx(
413
414
  "rect",
414
415
  {
415
416
  onMouseOver: () => {
@@ -433,7 +434,7 @@ function at(he) {
433
434
  ]
434
435
  }
435
436
  )
436
- ] }) : /* @__PURE__ */ t.jsx(
437
+ ] }) : /* @__PURE__ */ e.jsx(
437
438
  "button",
438
439
  {
439
440
  type: "button",
@@ -441,11 +442,11 @@ function at(he) {
441
442
  onClick: () => {
442
443
  v(!0);
443
444
  },
444
- children: /* @__PURE__ */ t.jsx("div", { className: "items-start text-sm font-medium cursor-pointer p-2 mb-0 flex text-primary-black dark:text-primary-gray-300 bg-primary-gray-300 dark:bg-primary-gray-550 border-primary-gray-400 dark:border-primary-gray-500", children: "Show Legend" })
445
+ children: /* @__PURE__ */ e.jsx("div", { className: "items-start text-sm font-medium cursor-pointer p-2 mb-0 flex text-primary-black dark:text-primary-gray-300 bg-primary-gray-300 dark:bg-primary-gray-550 border-primary-gray-400 dark:border-primary-gray-500", children: "Show Legend" })
445
446
  }
446
447
  ) }),
447
- B === "button" && /* @__PURE__ */ t.jsxs("div", { className: "absolute left-4 top-4 flex flex-col", children: [
448
- /* @__PURE__ */ t.jsx(
448
+ B === "button" && /* @__PURE__ */ e.jsxs("div", { className: "absolute left-4 top-4 flex flex-col", children: [
449
+ /* @__PURE__ */ e.jsx(
449
450
  "button",
450
451
  {
451
452
  onClick: () => G("in"),
@@ -453,7 +454,7 @@ function at(he) {
453
454
  children: "+"
454
455
  }
455
456
  ),
456
- /* @__PURE__ */ t.jsx(
457
+ /* @__PURE__ */ e.jsx(
457
458
  "button",
458
459
  {
459
460
  onClick: () => G("out"),
@@ -463,25 +464,25 @@ function at(he) {
463
464
  )
464
465
  ] })
465
466
  ] }),
466
- C && D !== void 0 ? /* @__PURE__ */ t.jsx(
467
- Be,
467
+ C && D !== void 0 ? /* @__PURE__ */ e.jsx(
468
+ We,
468
469
  {
469
470
  open: D !== void 0,
470
471
  onClose: () => {
471
472
  Z(void 0);
472
473
  },
473
- children: /* @__PURE__ */ t.jsx(
474
+ children: /* @__PURE__ */ e.jsx(
474
475
  "div",
475
476
  {
476
477
  className: "graph-modal-content m-0",
477
- dangerouslySetInnerHTML: typeof C == "string" ? { __html: He(C, D) } : void 0,
478
+ dangerouslySetInnerHTML: typeof C == "string" ? { __html: Ve(C, D) } : void 0,
478
479
  children: typeof C == "function" ? C(D) : null
479
480
  }
480
481
  )
481
482
  }
482
483
  ) : null,
483
- U && ie && S && se ? /* @__PURE__ */ t.jsx(
484
- Fe,
484
+ U && ie && S && se ? /* @__PURE__ */ e.jsx(
485
+ Ae,
485
486
  {
486
487
  data: U,
487
488
  body: ie,
@@ -493,7 +494,7 @@ function at(he) {
493
494
  ) : null
494
495
  ] });
495
496
  }
496
- function It(he) {
497
+ function Lt(he) {
497
498
  const {
498
499
  data: k,
499
500
  mapData: g = "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json",
@@ -542,48 +543,47 @@ function It(he) {
542
543
  dimmedOpacity: te = 0.3,
543
544
  customLayers: le = [],
544
545
  timeline: y = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 }
545
- } = he, [u, z] = b(0), [re, ce] = b(0), [A, ve] = b(y.autoplay), d = we(
546
- Se(
547
- k.filter((e) => e.date !== void 0 && e.date !== null),
548
- (e) => e.date
549
- ).map((e) => Me(`${e.date}`, y.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()),
550
- (e, a) => rt(e, a)
546
+ } = he, [u, z] = b(0), [re, ce] = b(0), [A, ve] = b(y.autoplay), d = tt(
547
+ et(k, "date", !0).map(
548
+ (t) => Ce(`${t}`, y.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()
549
+ ),
550
+ (t, a) => rt(t, a)
551
551
  ), [N, G] = b(y.autoplay ? 0 : d.length - 1), [r, l] = b(void 0), m = ae(null), i = ae(null);
552
552
  pe(() => {
553
- const e = new ResizeObserver((a) => {
553
+ const t = new ResizeObserver((a) => {
554
554
  z(s || a[0].target.clientWidth || 760), ce(h || a[0].target.clientHeight || 480);
555
555
  });
556
- return m.current && (ce(m.current.clientHeight || 480), z(m.current.clientWidth || 760), s || e.observe(m.current)), () => e.disconnect();
556
+ return m.current && (ce(m.current.clientHeight || 480), z(m.current.clientWidth || 760), s || t.observe(m.current)), () => t.disconnect();
557
557
  }, [s, h]), pe(() => {
558
- typeof g == "string" ? Qe(g).then((a) => {
558
+ typeof g == "string" ? Ke(g).then((a) => {
559
559
  l(a);
560
560
  }) : l(g);
561
561
  }, [g]);
562
- const o = T || (P === "categorical" ? et(k, "x") : tt(
563
- k.map((e) => e.x),
562
+ const o = T || (P === "categorical" ? Ze(k, "x") : Qe(
563
+ k.map((t) => t.x),
564
564
  x?.length || 4
565
565
  ));
566
566
  pe(() => {
567
- const e = setInterval(
567
+ const t = setInterval(
568
568
  () => {
569
569
  G((a) => a < d.length - 1 ? a + 1 : 0);
570
570
  },
571
571
  (y.speed || 2) * 1e3
572
572
  );
573
- return A || clearInterval(e), () => clearInterval(e);
573
+ return A || clearInterval(t), () => clearInterval(t);
574
574
  }, [d, A, y.speed]);
575
- const n = $e(
575
+ const n = we(
576
576
  d,
577
577
  N,
578
578
  y.showOnlyActiveDate,
579
579
  y.dateFormat || "yyyy"
580
580
  );
581
- return /* @__PURE__ */ t.jsx(
581
+ return /* @__PURE__ */ e.jsx(
582
582
  "div",
583
583
  {
584
584
  className: `${D || "light"} flex ${s ? "w-fit grow-0" : "w-full grow"}`,
585
585
  dir: K === "he" || K === "ar" ? "rtl" : void 0,
586
- children: /* @__PURE__ */ t.jsx(
586
+ children: /* @__PURE__ */ e.jsx(
587
587
  "div",
588
588
  {
589
589
  className: je(
@@ -598,14 +598,14 @@ function It(he) {
598
598
  id: B,
599
599
  ref: i,
600
600
  "aria-label": Z || `${c ? `The graph shows ${c}. ` : ""}This is a choropleth map where geographic areas are colored in proportion to a specific variable.${E ? ` ${E}` : ""}`,
601
- children: /* @__PURE__ */ t.jsx(
601
+ children: /* @__PURE__ */ e.jsx(
602
602
  "div",
603
603
  {
604
604
  className: "flex grow",
605
605
  style: { padding: I ? Y || "1rem" : Y || 0 },
606
- children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
607
- c || E || w || M ? /* @__PURE__ */ t.jsx(
608
- Ze,
606
+ children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
607
+ c || E || w || M ? /* @__PURE__ */ e.jsx(
608
+ Je,
609
609
  {
610
610
  styles: {
611
611
  title: S?.title,
@@ -619,11 +619,11 @@ function It(he) {
619
619
  graphDescription: E,
620
620
  width: s,
621
621
  graphDownload: w ? i.current : void 0,
622
- dataDownload: M ? k.map((e) => e.data).filter((e) => e !== void 0).length > 0 ? k.map((e) => e.data).filter((e) => e !== void 0) : k.filter((e) => e !== void 0) : null
622
+ dataDownload: M ? k.map((t) => t.data).filter((t) => t !== void 0).length > 0 ? k.map((t) => t.data).filter((t) => t !== void 0) : k.filter((t) => t !== void 0) : null
623
623
  }
624
624
  ) : null,
625
- y.enabled && d.length > 0 && n ? /* @__PURE__ */ t.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
626
- /* @__PURE__ */ t.jsx(
625
+ y.enabled && d.length > 0 && n ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
626
+ /* @__PURE__ */ e.jsx(
627
627
  "button",
628
628
  {
629
629
  type: "button",
@@ -632,11 +632,11 @@ function It(he) {
632
632
  },
633
633
  className: "p-0 border-0 cursor-pointer bg-transparent",
634
634
  "aria-label": A ? "Click to pause animation" : "Click to play animation",
635
- children: A ? /* @__PURE__ */ t.jsx(_e, {}) : /* @__PURE__ */ t.jsx(Ue, {})
635
+ children: A ? /* @__PURE__ */ e.jsx(qe, {}) : /* @__PURE__ */ e.jsx(Xe, {})
636
636
  }
637
637
  ),
638
- /* @__PURE__ */ t.jsx(
639
- Ne,
638
+ /* @__PURE__ */ e.jsx(
639
+ $e,
640
640
  {
641
641
  min: d[0],
642
642
  max: d[d.length - 1],
@@ -644,33 +644,33 @@ function It(he) {
644
644
  step: null,
645
645
  defaultValue: d[d.length - 1],
646
646
  value: d[N],
647
- onChangeComplete: (e) => {
648
- G(d.indexOf(e));
647
+ onChangeComplete: (t) => {
648
+ G(d.indexOf(t));
649
649
  },
650
- onChange: (e) => {
651
- G(d.indexOf(e));
650
+ onChange: (t) => {
651
+ G(d.indexOf(t));
652
652
  },
653
653
  "aria-label": "Time slider. Use arrow keys to adjust selected time period."
654
654
  }
655
655
  )
656
656
  ] }) : null,
657
- /* @__PURE__ */ t.jsx(
657
+ /* @__PURE__ */ e.jsx(
658
658
  "div",
659
659
  {
660
660
  className: "flex flex-col grow justify-center leading-0",
661
661
  ref: m,
662
662
  "aria-label": "Map area",
663
- children: (s || u) && (h || re) && r ? /* @__PURE__ */ t.jsx(
663
+ children: (s || u) && (h || re) && r ? /* @__PURE__ */ e.jsx(
664
664
  at,
665
665
  {
666
666
  data: k.filter(
667
- (e) => y.enabled ? e.date === De(new Date(d[N]), y.dateFormat || "yyyy") : e
667
+ (t) => y.enabled ? t.date === Me(new Date(d[N]), y.dateFormat || "yyyy") : t
668
668
  ),
669
669
  mapData: J ? r : {
670
670
  ...r,
671
671
  features: r.features.filter(
672
672
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
673
- (e) => e.properties.NAME !== "Antarctica"
673
+ (t) => t.properties.NAME !== "Antarctica"
674
674
  )
675
675
  },
676
676
  colorDomain: o,
@@ -706,7 +706,7 @@ function It(he) {
706
706
  animate: L === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : L || { duration: 0, once: !0, amount: 0 },
707
707
  customLayers: le
708
708
  }
709
- ) : /* @__PURE__ */ t.jsx(
709
+ ) : /* @__PURE__ */ e.jsx(
710
710
  "div",
711
711
  {
712
712
  style: {
@@ -716,13 +716,13 @@ function It(he) {
716
716
  )}px`
717
717
  },
718
718
  className: "flex items-center justify-center",
719
- children: /* @__PURE__ */ t.jsx(Ce, { "aria-label": "Loading graph" })
719
+ children: /* @__PURE__ */ e.jsx(Ne, { "aria-label": "Loading graph" })
720
720
  }
721
721
  )
722
722
  }
723
723
  ),
724
- V || oe ? /* @__PURE__ */ t.jsx(
725
- Ke,
724
+ V || oe ? /* @__PURE__ */ e.jsx(
725
+ Ye,
726
726
  {
727
727
  styles: { footnote: S?.footnote, source: S?.source },
728
728
  classNames: {
@@ -743,6 +743,6 @@ function It(he) {
743
743
  );
744
744
  }
745
745
  export {
746
- It as ChoroplethMap
746
+ Lt as ChoroplethMap
747
747
  };
748
748
  //# sourceMappingURL=ChoroplethMap.js.map