@undp/data-viz 2.3.19 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/BarGraph.cjs +1 -1
  2. package/dist/BarGraph.cjs.map +1 -1
  3. package/dist/BarGraph.js +1360 -1363
  4. package/dist/BarGraph.js.map +1 -1
  5. package/dist/BeeSwarmChart.cjs +1 -1
  6. package/dist/BeeSwarmChart.cjs.map +1 -1
  7. package/dist/BeeSwarmChart.js +302 -305
  8. package/dist/BeeSwarmChart.js.map +1 -1
  9. package/dist/BiVariateChoroplethMap.cjs +1 -1
  10. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  11. package/dist/BiVariateChoroplethMap.js +4 -4
  12. package/dist/BiVariateChoroplethMap.js.map +1 -1
  13. package/dist/BulletChart.cjs +1 -1
  14. package/dist/BulletChart.cjs.map +1 -1
  15. package/dist/BulletChart.js +591 -594
  16. package/dist/BulletChart.js.map +1 -1
  17. package/dist/ChoroplethMap.cjs +1 -1
  18. package/dist/ChoroplethMap.cjs.map +1 -1
  19. package/dist/ChoroplethMap.js +4 -4
  20. package/dist/ChoroplethMap.js.map +1 -1
  21. package/dist/CirclePackingGraph.cjs +1 -1
  22. package/dist/CirclePackingGraph.js +1 -1
  23. package/dist/DotDensityMap.cjs +1 -1
  24. package/dist/DotDensityMap.cjs.map +1 -1
  25. package/dist/DotDensityMap.js +255 -258
  26. package/dist/DotDensityMap.js.map +1 -1
  27. package/dist/DumbbellChart.cjs +1 -1
  28. package/dist/DumbbellChart.cjs.map +1 -1
  29. package/dist/DumbbellChart.js +553 -556
  30. package/dist/DumbbellChart.js.map +1 -1
  31. package/dist/{GraphEl-Dorm_qQE.js → GraphEl-B73N4RIA.js} +2 -2
  32. package/dist/{GraphEl-Dorm_qQE.js.map → GraphEl-B73N4RIA.js.map} +1 -1
  33. package/dist/{GraphEl-D8WRC8-j.cjs → GraphEl-Lt1og0C-.cjs} +2 -2
  34. package/dist/{GraphEl-D8WRC8-j.cjs.map → GraphEl-Lt1og0C-.cjs.map} +1 -1
  35. package/dist/GriddedGraphs.cjs +1 -1
  36. package/dist/GriddedGraphs.js +1 -1
  37. package/dist/Histogram.cjs +1 -1
  38. package/dist/Histogram.js +1 -1
  39. package/dist/HybridMap.cjs +1 -1
  40. package/dist/HybridMap.cjs.map +1 -1
  41. package/dist/HybridMap.js +310 -313
  42. package/dist/HybridMap.js.map +1 -1
  43. package/dist/MultiLineAltChart.cjs +1 -1
  44. package/dist/MultiLineAltChart.cjs.map +1 -1
  45. package/dist/MultiLineAltChart.js +269 -272
  46. package/dist/MultiLineAltChart.js.map +1 -1
  47. package/dist/MultiLineChart.cjs +1 -1
  48. package/dist/MultiLineChart.cjs.map +1 -1
  49. package/dist/MultiLineChart.js +319 -322
  50. package/dist/MultiLineChart.js.map +1 -1
  51. package/dist/RadarChart.cjs +1 -1
  52. package/dist/RadarChart.cjs.map +1 -1
  53. package/dist/RadarChart.js +3 -3
  54. package/dist/RadarChart.js.map +1 -1
  55. package/dist/SankeyChart.cjs +1 -1
  56. package/dist/SankeyChart.cjs.map +1 -1
  57. package/dist/SankeyChart.js +274 -280
  58. package/dist/SankeyChart.js.map +1 -1
  59. package/dist/ScatterPlot.cjs +1 -1
  60. package/dist/ScatterPlot.cjs.map +1 -1
  61. package/dist/ScatterPlot.js +341 -344
  62. package/dist/ScatterPlot.js.map +1 -1
  63. package/dist/SingleGraphDashboard.cjs +1 -1
  64. package/dist/SingleGraphDashboard.js +1 -1
  65. package/dist/SlopeChart.cjs +1 -1
  66. package/dist/SlopeChart.cjs.map +1 -1
  67. package/dist/SlopeChart.js +251 -254
  68. package/dist/SlopeChart.js.map +1 -1
  69. package/dist/StripChart.cjs +1 -1
  70. package/dist/StripChart.cjs.map +1 -1
  71. package/dist/StripChart.js +292 -295
  72. package/dist/StripChart.js.map +1 -1
  73. package/dist/ThreeDGlobe.cjs +1 -1
  74. package/dist/ThreeDGlobe.cjs.map +1 -1
  75. package/dist/ThreeDGlobe.js +3 -3
  76. package/dist/ThreeDGlobe.js.map +1 -1
  77. package/dist/TreeMapGraph.cjs +1 -1
  78. package/dist/TreeMapGraph.cjs.map +1 -1
  79. package/dist/TreeMapGraph.js +196 -199
  80. package/dist/TreeMapGraph.js.map +1 -1
  81. package/dist/WaterfallChart.cjs +1 -1
  82. package/dist/WaterfallChart.cjs.map +1 -1
  83. package/dist/WaterfallChart.js +274 -277
  84. package/dist/WaterfallChart.js.map +1 -1
  85. package/dist/index-B0Awa_de.js +377 -0
  86. package/dist/index-B0Awa_de.js.map +1 -0
  87. package/dist/index-CP8cmNzt.cjs +2 -0
  88. package/dist/index-CP8cmNzt.cjs.map +1 -0
  89. package/dist/index.cjs +1 -1
  90. package/dist/index.js +1 -1
  91. package/package.json +1 -1
  92. package/dist/index-Bdo_HXb_.cjs +0 -2
  93. package/dist/index-Bdo_HXb_.cjs.map +0 -1
  94. package/dist/index-CGrBpeUa.js +0 -380
  95. package/dist/index-CGrBpeUa.js.map +0 -1
@@ -1,23 +1,23 @@
1
- import { c as Ve, j as p, m as Qt } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { useRef as he, useState as Ot, useEffectEvent as ze, useEffect as xe } from "react";
3
- import { s as ve } from "./index-CeVNqhMO.js";
4
- import { o as ke } from "./index-BZQYSqar.js";
5
- import { i as Ee } from "./index-Bwrro8-q.js";
6
- import { _ as Jt } from "./Typography-BO0gQDIT.js";
7
- import { n as be } from "./numberFormattingFunction-DqMf_v1m.js";
8
- import { T as Be } from "./Tooltip-Bj-s__cI.js";
9
- import { D as Ie } from "./DetailsModal-B2XBWR7w.js";
10
- import { m as le } from "./proxy-BsxtcZKa.js";
11
- import { u as Ae } from "./use-in-view-KOXq5Kmc.js";
12
- import { A as He } from "./index-Cv_5q6Rb.js";
13
- import { GraphHeader as We } from "./GraphHeader.js";
14
- import { GraphFooter as Re } from "./GraphFooter.js";
15
- import { Colors as we } from "./Colors.js";
16
- import { g as Ge } from "./generateRandomString-za3IQGfQ.js";
17
- import { E as qe } from "./EmptyState-CaxXCkiN.js";
18
- import { u as Ht } from "./uniqBy-BHy4I8PK.js";
19
- import { a as Fe, G as Xe } from "./GraphContainer-B8ZqOzKI.js";
20
- function je(e, t) {
1
+ import { c as Oe, j as p, m as Ut } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import { useRef as ue, useState as Mt, useEffectEvent as Ce, useEffect as me } from "react";
3
+ import { s as ye } from "./index-CeVNqhMO.js";
4
+ import { o as xe } from "./index-BZQYSqar.js";
5
+ import { i as De } from "./index-Bwrro8-q.js";
6
+ import { _ as Zt } from "./Typography-BO0gQDIT.js";
7
+ import { n as ve } from "./numberFormattingFunction-DqMf_v1m.js";
8
+ import { T as Te } from "./Tooltip-Bj-s__cI.js";
9
+ import { D as ze } from "./DetailsModal-B2XBWR7w.js";
10
+ import { m as re } from "./proxy-BsxtcZKa.js";
11
+ import { u as Pe } from "./use-in-view-KOXq5Kmc.js";
12
+ import { A as Ee } from "./index-Cv_5q6Rb.js";
13
+ import { GraphHeader as Be } from "./GraphHeader.js";
14
+ import { GraphFooter as Ie } from "./GraphFooter.js";
15
+ import { Colors as ke } from "./Colors.js";
16
+ import { g as Ae } from "./generateRandomString-za3IQGfQ.js";
17
+ import { E as He } from "./EmptyState-CaxXCkiN.js";
18
+ import { u as At } from "./uniqBy-BHy4I8PK.js";
19
+ import { a as We, G as Re } from "./GraphContainer-B8ZqOzKI.js";
20
+ function be(e, t) {
21
21
  let o;
22
22
  if (t === void 0)
23
23
  for (const s of e)
@@ -29,7 +29,7 @@ function je(e, t) {
29
29
  }
30
30
  return o;
31
31
  }
32
- function De(e, t) {
32
+ function Se(e, t) {
33
33
  let o;
34
34
  if (t === void 0)
35
35
  for (const s of e)
@@ -41,7 +41,7 @@ function De(e, t) {
41
41
  }
42
42
  return o;
43
43
  }
44
- function ae(e, t) {
44
+ function se(e, t) {
45
45
  let o = 0;
46
46
  if (t === void 0)
47
47
  for (let s of e)
@@ -53,47 +53,47 @@ function ae(e, t) {
53
53
  }
54
54
  return o;
55
55
  }
56
- function Ye(e) {
56
+ function Ge(e) {
57
57
  return e.target.depth;
58
58
  }
59
- function _e(e, t) {
59
+ function qe(e, t) {
60
60
  return e.sourceLinks.length ? e.depth : t - 1;
61
61
  }
62
- function ce(e) {
63
- return e.targetLinks.length ? e.depth : e.sourceLinks.length ? De(e.sourceLinks, Ye) - 1 : 0;
62
+ function le(e) {
63
+ return e.targetLinks.length ? e.depth : e.sourceLinks.length ? Se(e.sourceLinks, Ge) - 1 : 0;
64
64
  }
65
- function Kt(e) {
65
+ function Qt(e) {
66
66
  return function() {
67
67
  return e;
68
68
  };
69
69
  }
70
- function $e(e, t) {
71
- return te(e.source, t.source) || e.index - t.index;
70
+ function we(e, t) {
71
+ return Jt(e.source, t.source) || e.index - t.index;
72
72
  }
73
- function Le(e, t) {
74
- return te(e.target, t.target) || e.index - t.index;
73
+ function je(e, t) {
74
+ return Jt(e.target, t.target) || e.index - t.index;
75
75
  }
76
- function te(e, t) {
76
+ function Jt(e, t) {
77
77
  return e.y0 - t.y0;
78
78
  }
79
- function ue(e) {
79
+ function ae(e) {
80
80
  return e.value;
81
81
  }
82
- function Ue(e) {
82
+ function Fe(e) {
83
83
  return e.index;
84
84
  }
85
- function Ze(e) {
85
+ function Xe(e) {
86
86
  return e.nodes;
87
87
  }
88
- function Qe(e) {
88
+ function Ye(e) {
89
89
  return e.links;
90
90
  }
91
- function Me(e, t) {
91
+ function $e(e, t) {
92
92
  const o = e.get(t);
93
93
  if (!o) throw new Error("missing: " + t);
94
94
  return o;
95
95
  }
96
- function Se({ nodes: e }) {
96
+ function Le({ nodes: e }) {
97
97
  for (const t of e) {
98
98
  let o = t.y0, s = o;
99
99
  for (const a of t.sourceLinks)
@@ -102,18 +102,18 @@ function Se({ nodes: e }) {
102
102
  a.y1 = s + a.width / 2, s += a.width;
103
103
  }
104
104
  }
105
- function fe() {
106
- let e = 0, t = 0, o = 1, s = 1, a = 24, m = 8, h, g = Ue, x = _e, b, w, $ = Ze, z = Qe, v = 6;
105
+ function ce() {
106
+ let e = 0, t = 0, o = 1, s = 1, a = 24, m = 8, h, g = Fe, x = qe, b, w, $ = Xe, P = Ye, v = 6;
107
107
  function d() {
108
- const n = { nodes: $.apply(null, arguments), links: z.apply(null, arguments) };
109
- return S(n), R(n), j(n), D(n), X(n), Se(n), n;
108
+ const n = { nodes: $.apply(null, arguments), links: P.apply(null, arguments) };
109
+ return S(n), H(n), j(n), C(n), X(n), Le(n), n;
110
110
  }
111
111
  d.update = function(n) {
112
- return Se(n), n;
112
+ return Le(n), n;
113
113
  }, d.nodeId = function(n) {
114
- return arguments.length ? (g = typeof n == "function" ? n : Kt(n), d) : g;
114
+ return arguments.length ? (g = typeof n == "function" ? n : Qt(n), d) : g;
115
115
  }, d.nodeAlign = function(n) {
116
- return arguments.length ? (x = typeof n == "function" ? n : Kt(n), d) : x;
116
+ return arguments.length ? (x = typeof n == "function" ? n : Qt(n), d) : x;
117
117
  }, d.nodeSort = function(n) {
118
118
  return arguments.length ? (b = n, d) : b;
119
119
  }, d.nodeWidth = function(n) {
@@ -121,9 +121,9 @@ function fe() {
121
121
  }, d.nodePadding = function(n) {
122
122
  return arguments.length ? (m = h = +n, d) : m;
123
123
  }, d.nodes = function(n) {
124
- return arguments.length ? ($ = typeof n == "function" ? n : Kt(n), d) : $;
124
+ return arguments.length ? ($ = typeof n == "function" ? n : Qt(n), d) : $;
125
125
  }, d.links = function(n) {
126
- return arguments.length ? (z = typeof n == "function" ? n : Kt(n), d) : z;
126
+ return arguments.length ? (P = typeof n == "function" ? n : Qt(n), d) : P;
127
127
  }, d.linkSort = function(n) {
128
128
  return arguments.length ? (w = n, d) : w;
129
129
  }, d.size = function(n) {
@@ -140,15 +140,15 @@ function fe() {
140
140
  for (const [c, i] of l.entries()) {
141
141
  i.index = c;
142
142
  let { source: f, target: y } = i;
143
- typeof f != "object" && (f = i.source = Me(r, f)), typeof y != "object" && (y = i.target = Me(r, y)), f.sourceLinks.push(i), y.targetLinks.push(i);
143
+ typeof f != "object" && (f = i.source = $e(r, f)), typeof y != "object" && (y = i.target = $e(r, y)), f.sourceLinks.push(i), y.targetLinks.push(i);
144
144
  }
145
145
  if (w != null)
146
146
  for (const { sourceLinks: c, targetLinks: i } of n)
147
147
  c.sort(w), i.sort(w);
148
148
  }
149
- function R({ nodes: n }) {
149
+ function H({ nodes: n }) {
150
150
  for (const l of n)
151
- l.value = l.fixedValue === void 0 ? Math.max(ae(l.sourceLinks, ue), ae(l.targetLinks, ue)) : l.fixedValue;
151
+ l.value = l.fixedValue === void 0 ? Math.max(se(l.sourceLinks, ae), se(l.targetLinks, ae)) : l.fixedValue;
152
152
  }
153
153
  function j({ nodes: n }) {
154
154
  const l = n.length;
@@ -163,7 +163,7 @@ function fe() {
163
163
  r = c, c = /* @__PURE__ */ new Set();
164
164
  }
165
165
  }
166
- function D({ nodes: n }) {
166
+ function C({ nodes: n }) {
167
167
  const l = n.length;
168
168
  let r = new Set(n), c = /* @__PURE__ */ new Set(), i = 0;
169
169
  for (; r.size; ) {
@@ -177,7 +177,7 @@ function fe() {
177
177
  }
178
178
  }
179
179
  function B({ nodes: n }) {
180
- const l = je(n, (i) => i.depth) + 1, r = (o - e - a) / (l - 1), c = new Array(l);
180
+ const l = be(n, (i) => i.depth) + 1, r = (o - e - a) / (l - 1), c = new Array(l);
181
181
  for (const i of n) {
182
182
  const f = Math.max(0, Math.min(l - 1, Math.floor(x.call(null, i, l))));
183
183
  i.layer = f, i.x0 = e + f * r, i.x1 = i.x0 + a, c[f] ? c[f].push(i) : c[f] = [i];
@@ -186,8 +186,8 @@ function fe() {
186
186
  i.sort(b);
187
187
  return c;
188
188
  }
189
- function H(n) {
190
- const l = De(n, (r) => (s - t - (r.length - 1) * h) / ae(r, ue));
189
+ function A(n) {
190
+ const l = Se(n, (r) => (s - t - (r.length - 1) * h) / se(r, ae));
191
191
  for (const r of n) {
192
192
  let c = t;
193
193
  for (const i of r) {
@@ -205,49 +205,49 @@ function fe() {
205
205
  }
206
206
  function X(n) {
207
207
  const l = B(n);
208
- h = Math.min(m, (s - t) / (je(l, (r) => r.length) - 1)), H(l);
208
+ h = Math.min(m, (s - t) / (be(l, (r) => r.length) - 1)), A(l);
209
209
  for (let r = 0; r < v; ++r) {
210
210
  const c = Math.pow(0.99, r), i = Math.max(1 - c, (r + 1) / v);
211
- Y(l, c, i), G(l, c, i);
211
+ Y(l, c, i), W(l, c, i);
212
212
  }
213
213
  }
214
- function G(n, l, r) {
214
+ function W(n, l, r) {
215
215
  for (let c = 1, i = n.length; c < i; ++c) {
216
216
  const f = n[c];
217
217
  for (const y of f) {
218
- let W = 0, O = 0;
219
- for (const { source: T, value: Z } of y.targetLinks) {
220
- let F = Z * (y.layer - T.layer);
221
- W += C(T, y) * F, O += F;
218
+ let G = 0, N = 0;
219
+ for (const { source: z, value: Z } of y.targetLinks) {
220
+ let q = Z * (y.layer - z.layer);
221
+ G += T(z, y) * q, N += q;
222
222
  }
223
- if (!(O > 0)) continue;
224
- let U = (W / O - y.y0) * l;
223
+ if (!(N > 0)) continue;
224
+ let U = (G / N - y.y0) * l;
225
225
  y.y0 += U, y.y1 += U, kt(y);
226
226
  }
227
- b === void 0 && f.sort(te), q(f, r);
227
+ b === void 0 && f.sort(Jt), R(f, r);
228
228
  }
229
229
  }
230
230
  function Y(n, l, r) {
231
231
  for (let c = n.length, i = c - 2; i >= 0; --i) {
232
232
  const f = n[i];
233
233
  for (const y of f) {
234
- let W = 0, O = 0;
235
- for (const { target: T, value: Z } of y.sourceLinks) {
236
- let F = Z * (T.layer - y.layer);
237
- W += L(y, T) * F, O += F;
234
+ let G = 0, N = 0;
235
+ for (const { target: z, value: Z } of y.sourceLinks) {
236
+ let q = Z * (z.layer - y.layer);
237
+ G += L(y, z) * q, N += q;
238
238
  }
239
- if (!(O > 0)) continue;
240
- let U = (W / O - y.y0) * l;
239
+ if (!(N > 0)) continue;
240
+ let U = (G / N - y.y0) * l;
241
241
  y.y0 += U, y.y1 += U, kt(y);
242
242
  }
243
- b === void 0 && f.sort(te), q(f, r);
243
+ b === void 0 && f.sort(Jt), R(f, r);
244
244
  }
245
245
  }
246
- function q(n, l) {
246
+ function R(n, l) {
247
247
  const r = n.length >> 1, c = n[r];
248
- et(n, c.y0 - h, r - 1, l), N(n, c.y1 + h, r + 1, l), et(n, s, n.length - 1, l), N(n, t, 0, l);
248
+ et(n, c.y0 - h, r - 1, l), D(n, c.y1 + h, r + 1, l), et(n, s, n.length - 1, l), D(n, t, 0, l);
249
249
  }
250
- function N(n, l, r, c) {
250
+ function D(n, l, r, c) {
251
251
  for (; r < n.length; ++r) {
252
252
  const i = n[r], f = (l - i.y0) * c;
253
253
  f > 1e-6 && (i.y0 += f, i.y1 += f), l = i.y1 + h;
@@ -262,17 +262,17 @@ function fe() {
262
262
  function kt({ sourceLinks: n, targetLinks: l }) {
263
263
  if (w === void 0) {
264
264
  for (const { source: { sourceLinks: r } } of l)
265
- r.sort(Le);
265
+ r.sort(je);
266
266
  for (const { target: { targetLinks: r } } of n)
267
- r.sort($e);
267
+ r.sort(we);
268
268
  }
269
269
  }
270
270
  function _(n) {
271
271
  if (w === void 0)
272
272
  for (const { sourceLinks: l, targetLinks: r } of n)
273
- l.sort(Le), r.sort($e);
273
+ l.sort(je), r.sort(we);
274
274
  }
275
- function C(n, l) {
275
+ function T(n, l) {
276
276
  let r = n.y0 - (n.sourceLinks.length - 1) * h / 2;
277
277
  for (const { target: c, width: i } of n.sourceLinks) {
278
278
  if (c === l) break;
@@ -298,16 +298,16 @@ function fe() {
298
298
  }
299
299
  return d;
300
300
  }
301
- var ge = Math.PI, de = 2 * ge, Nt = 1e-6, Je = de - Nt;
302
- function pe() {
301
+ var fe = Math.PI, he = 2 * fe, Nt = 1e-6, _e = he - Nt;
302
+ function ge() {
303
303
  this._x0 = this._y0 = // start of current subpath
304
304
  this._x1 = this._y1 = null, this._ = "";
305
305
  }
306
- function Ne() {
307
- return new pe();
306
+ function Ve() {
307
+ return new ge();
308
308
  }
309
- pe.prototype = Ne.prototype = {
310
- constructor: pe,
309
+ ge.prototype = Ve.prototype = {
310
+ constructor: ge,
311
311
  moveTo: function(e, t) {
312
312
  this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
313
313
  },
@@ -332,15 +332,15 @@ pe.prototype = Ne.prototype = {
332
332
  else if ($ > Nt) if (!(Math.abs(w * g - x * b) > Nt) || !a)
333
333
  this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
334
334
  else {
335
- var z = o - m, v = s - h, d = g * g + x * x, S = z * z + v * v, R = Math.sqrt(d), j = Math.sqrt($), D = a * Math.tan((ge - Math.acos((d + $ - S) / (2 * R * j))) / 2), B = D / j, H = D / R;
336
- Math.abs(B - 1) > Nt && (this._ += "L" + (e + B * b) + "," + (t + B * w)), this._ += "A" + a + "," + a + ",0,0," + +(w * z > b * v) + "," + (this._x1 = e + H * g) + "," + (this._y1 = t + H * x);
335
+ var P = o - m, v = s - h, d = g * g + x * x, S = P * P + v * v, H = Math.sqrt(d), j = Math.sqrt($), C = a * Math.tan((fe - Math.acos((d + $ - S) / (2 * H * j))) / 2), B = C / j, A = C / H;
336
+ Math.abs(B - 1) > Nt && (this._ += "L" + (e + B * b) + "," + (t + B * w)), this._ += "A" + a + "," + a + ",0,0," + +(w * P > b * v) + "," + (this._x1 = e + A * g) + "," + (this._y1 = t + A * x);
337
337
  }
338
338
  },
339
339
  arc: function(e, t, o, s, a, m) {
340
340
  e = +e, t = +t, o = +o, m = !!m;
341
341
  var h = o * Math.cos(s), g = o * Math.sin(s), x = e + h, b = t + g, w = 1 ^ m, $ = m ? s - a : a - s;
342
342
  if (o < 0) throw new Error("negative radius: " + o);
343
- this._x1 === null ? this._ += "M" + x + "," + b : (Math.abs(this._x1 - x) > Nt || Math.abs(this._y1 - b) > Nt) && (this._ += "L" + x + "," + b), o && ($ < 0 && ($ = $ % de + de), $ > Je ? this._ += "A" + o + "," + o + ",0,1," + w + "," + (e - h) + "," + (t - g) + "A" + o + "," + o + ",0,1," + w + "," + (this._x1 = x) + "," + (this._y1 = b) : $ > Nt && (this._ += "A" + o + "," + o + ",0," + +($ >= ge) + "," + w + "," + (this._x1 = e + o * Math.cos(a)) + "," + (this._y1 = t + o * Math.sin(a))));
343
+ this._x1 === null ? this._ += "M" + x + "," + b : (Math.abs(this._x1 - x) > Nt || Math.abs(this._y1 - b) > Nt) && (this._ += "L" + x + "," + b), o && ($ < 0 && ($ = $ % he + he), $ > _e ? this._ += "A" + o + "," + o + ",0,1," + w + "," + (e - h) + "," + (t - g) + "A" + o + "," + o + ",0,1," + w + "," + (this._x1 = x) + "," + (this._y1 = b) : $ > Nt && (this._ += "A" + o + "," + o + ",0," + +($ >= fe) + "," + w + "," + (this._x1 = e + o * Math.cos(a)) + "," + (this._y1 = t + o * Math.sin(a))));
344
344
  },
345
345
  rect: function(e, t, o, s) {
346
346
  this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t) + "h" + +o + "v" + +s + "h" + -o + "Z";
@@ -349,59 +349,59 @@ pe.prototype = Ne.prototype = {
349
349
  return this._;
350
350
  }
351
351
  };
352
- function Oe(e) {
352
+ function Me(e) {
353
353
  return function() {
354
354
  return e;
355
355
  };
356
356
  }
357
- function Ke(e) {
357
+ function Ue(e) {
358
358
  return e[0];
359
359
  }
360
- function tn(e) {
360
+ function Ze(e) {
361
361
  return e[1];
362
362
  }
363
- var en = Array.prototype.slice;
364
- function nn(e) {
363
+ var Qe = Array.prototype.slice;
364
+ function Je(e) {
365
365
  return e.source;
366
366
  }
367
- function on(e) {
367
+ function Ke(e) {
368
368
  return e.target;
369
369
  }
370
- function rn(e) {
371
- var t = nn, o = on, s = Ke, a = tn, m = null;
370
+ function tn(e) {
371
+ var t = Je, o = Ke, s = Ue, a = Ze, m = null;
372
372
  function h() {
373
- var g, x = en.call(arguments), b = t.apply(this, x), w = o.apply(this, x);
374
- if (m || (m = g = Ne()), e(m, +s.apply(this, (x[0] = b, x)), +a.apply(this, x), +s.apply(this, (x[0] = w, x)), +a.apply(this, x)), g) return m = null, g + "" || null;
373
+ var g, x = Qe.call(arguments), b = t.apply(this, x), w = o.apply(this, x);
374
+ if (m || (m = g = Ve()), e(m, +s.apply(this, (x[0] = b, x)), +a.apply(this, x), +s.apply(this, (x[0] = w, x)), +a.apply(this, x)), g) return m = null, g + "" || null;
375
375
  }
376
376
  return h.source = function(g) {
377
377
  return arguments.length ? (t = g, h) : t;
378
378
  }, h.target = function(g) {
379
379
  return arguments.length ? (o = g, h) : o;
380
380
  }, h.x = function(g) {
381
- return arguments.length ? (s = typeof g == "function" ? g : Oe(+g), h) : s;
381
+ return arguments.length ? (s = typeof g == "function" ? g : Me(+g), h) : s;
382
382
  }, h.y = function(g) {
383
- return arguments.length ? (a = typeof g == "function" ? g : Oe(+g), h) : a;
383
+ return arguments.length ? (a = typeof g == "function" ? g : Me(+g), h) : a;
384
384
  }, h.context = function(g) {
385
385
  return arguments.length ? (m = g ?? null, h) : m;
386
386
  }, h;
387
387
  }
388
- function sn(e, t, o, s, a) {
388
+ function en(e, t, o, s, a) {
389
389
  e.moveTo(t, o), e.bezierCurveTo(t = (t + s) / 2, o, t, a, s, a);
390
390
  }
391
- function ln() {
392
- return rn(sn);
391
+ function nn() {
392
+ return tn(en);
393
393
  }
394
- function an(e) {
394
+ function on(e) {
395
395
  return [e.source.x1, e.y0];
396
396
  }
397
- function cn(e) {
397
+ function rn(e) {
398
398
  return [e.target.x0, e.y1];
399
399
  }
400
- function un() {
401
- return ln().source(an).target(cn);
400
+ function sn() {
401
+ return nn().source(on).target(rn);
402
402
  }
403
- function fn(e) {
404
- const t = Ve.c(139), {
403
+ function ln(e) {
404
+ const t = Oe.c(139), {
405
405
  data: o,
406
406
  showLabels: s,
407
407
  leftMargin: a,
@@ -412,35 +412,35 @@ function fn(e) {
412
412
  topMargin: b,
413
413
  bottomMargin: w,
414
414
  tooltip: $,
415
- onSeriesMouseOver: z,
415
+ onSeriesMouseOver: P,
416
416
  suffix: v,
417
417
  prefix: d,
418
418
  showValues: S,
419
- onSeriesMouseClick: R,
419
+ onSeriesMouseClick: H,
420
420
  nodePadding: j,
421
- nodeWidth: D,
421
+ nodeWidth: C,
422
422
  id: B,
423
- highlightedSourceDataPoints: H,
423
+ highlightedSourceDataPoints: A,
424
424
  highlightedTargetDataPoints: X,
425
- defaultLinkOpacity: G,
425
+ defaultLinkOpacity: W,
426
426
  sourceTitle: Y,
427
- targetTitle: q,
428
- animate: N,
427
+ targetTitle: R,
428
+ animate: D,
429
429
  sortNodes: et,
430
430
  resetSelectionOnDoubleClick: kt,
431
431
  detailsOnClick: _,
432
- styles: C,
432
+ styles: T,
433
433
  classNames: L,
434
434
  precision: n,
435
435
  customLayers: l,
436
436
  locale: r
437
- } = e, c = he(null);
437
+ } = e, c = ue(null);
438
438
  let i;
439
- t[0] !== N.amount || t[1] !== N.once ? (i = {
440
- once: N.once,
441
- amount: N.amount
442
- }, t[0] = N.amount, t[1] = N.once, t[2] = i) : i = t[2];
443
- const f = Ae(c, i), [y, W] = Ot(void 0), [O, U] = Ot(void 0), [T, Z] = Ot(void 0), [F, Ct] = Ot(void 0), [jt, V] = Ot(void 0);
439
+ t[0] !== D.amount || t[1] !== D.once ? (i = {
440
+ once: D.once,
441
+ amount: D.amount
442
+ }, t[0] = D.amount, t[1] = D.once, t[2] = i) : i = t[2];
443
+ const f = Pe(c, i), [y, G] = Mt(void 0), [N, U] = Mt(void 0), [z, Z] = Mt(void 0), [q, Ct] = Mt(void 0), [$t, V] = Mt(void 0);
444
444
  let M;
445
445
  t[3] !== w || t[4] !== a || t[5] !== m || t[6] !== b ? (M = {
446
446
  top: b,
@@ -448,23 +448,23 @@ function fn(e) {
448
448
  left: a,
449
449
  right: m
450
450
  }, t[3] = w, t[4] = a, t[5] = m, t[6] = b, t[7] = M) : M = t[7];
451
- const k = M, $t = g - k.left - k.right, lt = x - k.top - k.bottom;
452
- let bt, at, ct, Q, ut, ft, J, K, ht, gt, tt, nt, ot, it, dt, pt;
453
- if (t[8] !== N.duration || t[9] !== L?.graphObjectValues || t[10] !== l || t[11] !== o || t[12] !== G || t[13] !== _ || t[14] !== lt || t[15] !== $t || t[16] !== x || t[17] !== H || t[18] !== X || t[19] !== B || t[20] !== f || t[21] !== a || t[22] !== r || t[23] !== k.left || t[24] !== k.right || t[25] !== k.top || t[26] !== O || t[27] !== j || t[28] !== D || t[29] !== R || t[30] !== z || t[31] !== n || t[32] !== d || t[33] !== kt || t[34] !== m || t[35] !== T || t[36] !== s || t[37] !== S || t[38] !== et || t[39] !== Y || t[40] !== C?.graphObjectValues || t[41] !== v || t[42] !== q || t[43] !== h || t[44] !== g) {
454
- const Wt = et === "mostReadable" ? fe().nodeWidth(D).nodePadding(j).size([$t, lt]).nodeAlign(ce) : et === "none" ? fe().nodeWidth(D).nodePadding(j).size([$t, lt]).nodeAlign(ce).nodeSort(null).linkSort(null) : fe().nodeWidth(D).nodePadding(j).size([$t, lt]).nodeAlign(ce).nodeSort(et === "desc" ? vn : xn), {
455
- nodes: P,
456
- links: Tt
457
- } = Wt(o), Pt = un();
458
- at = le.svg, dt = `${g}px`, pt = `${x}px`, ct = `0 0 ${g} ${x}`, t[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = {
451
+ const k = M, Lt = g - k.left - k.right, st = x - k.top - k.bottom;
452
+ let bt, lt, at, Q, ct, ut, J, K, ft, ht, tt, nt, ot, it, gt, dt;
453
+ if (t[8] !== D.duration || t[9] !== L?.graphObjectValues || t[10] !== l || t[11] !== o || t[12] !== W || t[13] !== _ || t[14] !== st || t[15] !== Lt || t[16] !== x || t[17] !== A || t[18] !== X || t[19] !== B || t[20] !== f || t[21] !== a || t[22] !== r || t[23] !== k.left || t[24] !== k.right || t[25] !== k.top || t[26] !== N || t[27] !== j || t[28] !== C || t[29] !== H || t[30] !== P || t[31] !== n || t[32] !== d || t[33] !== kt || t[34] !== m || t[35] !== z || t[36] !== s || t[37] !== S || t[38] !== et || t[39] !== Y || t[40] !== T?.graphObjectValues || t[41] !== v || t[42] !== R || t[43] !== h || t[44] !== g) {
454
+ const Ht = et === "mostReadable" ? ce().nodeWidth(C).nodePadding(j).size([Lt, st]).nodeAlign(le) : et === "none" ? ce().nodeWidth(C).nodePadding(j).size([Lt, st]).nodeAlign(le).nodeSort(null).linkSort(null) : ce().nodeWidth(C).nodePadding(j).size([Lt, st]).nodeAlign(le).nodeSort(et === "desc" ? pn : dn), {
455
+ nodes: Ot,
456
+ links: Dt
457
+ } = Ht(o), Wt = sn();
458
+ lt = re.svg, gt = `${g}px`, dt = `${x}px`, at = `0 0 ${g} ${x}`, t[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = {
459
459
  marginLeft: "auto",
460
460
  marginRight: "auto"
461
- }, t[61] = Q) : Q = t[61], ut = "ltr", ft = c, t[62] !== k.left || t[63] !== k.top || t[64] !== Y ? (J = Y ? /* @__PURE__ */ p.jsx("text", { x: k.left, y: k.top - 10, className: "text-base font-bold fill-primary-gray-700 dark:fill-primary-gray-100", style: {
461
+ }, t[61] = Q) : Q = t[61], ct = "ltr", ut = c, t[62] !== k.left || t[63] !== k.top || t[64] !== Y ? (J = Y ? /* @__PURE__ */ p.jsx("text", { x: k.left, y: k.top - 10, className: "text-base font-bold fill-primary-gray-700 dark:fill-primary-gray-100", style: {
462
462
  textAnchor: "start"
463
- }, children: Y }) : null, t[62] = k.left, t[63] = k.top, t[64] = Y, t[65] = J) : J = t[65], t[66] !== k.right || t[67] !== k.top || t[68] !== q || t[69] !== g ? (K = q ? /* @__PURE__ */ p.jsx("text", { x: g - k.right, y: k.top - 10, className: "text-base font-bold fill-primary-gray-700 dark:fill-primary-gray-100", style: {
463
+ }, children: Y }) : null, t[62] = k.left, t[63] = k.top, t[64] = Y, t[65] = J) : J = t[65], t[66] !== k.right || t[67] !== k.top || t[68] !== R || t[69] !== g ? (K = R ? /* @__PURE__ */ p.jsx("text", { x: g - k.right, y: k.top - 10, className: "text-base font-bold fill-primary-gray-700 dark:fill-primary-gray-100", style: {
464
464
  textAnchor: "end"
465
- }, children: q }) : null, t[66] = k.right, t[67] = k.top, t[68] = q, t[69] = g, t[70] = K) : K = t[70], gt = `translate(${k.left},${k.top})`, t[71] !== l ? (tt = l.filter(yn).map(mn), t[71] = l, t[72] = tt) : tt = t[72];
466
- let Mt;
467
- t[73] !== L?.graphObjectValues || t[74] !== a || t[75] !== r || t[76] !== j || t[77] !== n || t[78] !== d || t[79] !== s || t[80] !== S || t[81] !== C?.graphObjectValues || t[82] !== v || t[83] !== h ? (Mt = (u, I) => /* @__PURE__ */ p.jsx("g", { onMouseEnter: () => {
465
+ }, children: R }) : null, t[66] = k.right, t[67] = k.top, t[68] = R, t[69] = g, t[70] = K) : K = t[70], ht = `translate(${k.left},${k.top})`, t[71] !== l ? (tt = l.filter(gn).map(hn), t[71] = l, t[72] = tt) : tt = t[72];
466
+ let rt;
467
+ t[73] !== L?.graphObjectValues || t[74] !== a || t[75] !== r || t[76] !== j || t[77] !== n || t[78] !== d || t[79] !== s || t[80] !== S || t[81] !== T?.graphObjectValues || t[82] !== v || t[83] !== h ? (rt = (u, F) => /* @__PURE__ */ p.jsx("g", { onMouseEnter: () => {
468
468
  Z(u);
469
469
  }, onMouseLeave: () => {
470
470
  Z(void 0);
@@ -476,20 +476,20 @@ function fn(e) {
476
476
  height: `${(u.y1 || 0) - (u.y0 || 0) + j}px`,
477
477
  overflow: "visible"
478
478
  }, children: [
479
- s ? /* @__PURE__ */ p.jsx(Jt, { marginBottom: S ? "3xs" : "none", size: "sm", leading: "none", className: Qt("sankey-right-label text-right", L?.graphObjectValues), style: {
479
+ s ? /* @__PURE__ */ p.jsx(Zt, { marginBottom: S ? "3xs" : "none", size: "sm", leading: "none", className: Ut("sankey-right-label text-right", L?.graphObjectValues), style: {
480
480
  hyphens: "auto",
481
481
  color: u.color,
482
- ...C?.graphObjectValues
482
+ ...T?.graphObjectValues
483
483
  }, children: `${u.label}`.length < h ? `${u.label}` : `${`${u.label}`.substring(0, h)}...` }) : null,
484
- S ? /* @__PURE__ */ p.jsx(Jt, { marginBottom: "none", size: "sm", leading: "none", className: Qt("sankey-right-value text-right font-bold", L?.graphObjectValues), style: {
484
+ S ? /* @__PURE__ */ p.jsx(Zt, { marginBottom: "none", size: "sm", leading: "none", className: Ut("sankey-right-value text-right font-bold", L?.graphObjectValues), style: {
485
485
  hyphens: "auto",
486
486
  color: u.color,
487
- ...C?.graphObjectValues
488
- }, children: be(u.value, void 0, n, d, v, r) }) : null
487
+ ...T?.graphObjectValues
488
+ }, children: ve(u.value, void 0, n, d, v, r) }) : null
489
489
  ] }) }) : null
490
- ] }) }, I), t[73] = L?.graphObjectValues, t[74] = a, t[75] = r, t[76] = j, t[77] = n, t[78] = d, t[79] = s, t[80] = S, t[81] = C?.graphObjectValues, t[82] = v, t[83] = h, t[84] = Mt) : Mt = t[84], nt = P.filter(pn).map(Mt);
491
- let wt;
492
- t[85] !== L?.graphObjectValues || t[86] !== r || t[87] !== j || t[88] !== D || t[89] !== n || t[90] !== d || t[91] !== m || t[92] !== s || t[93] !== S || t[94] !== C?.graphObjectValues || t[95] !== v || t[96] !== h ? (wt = (u, I) => /* @__PURE__ */ p.jsx("g", { onMouseEnter: () => {
490
+ ] }) }, F), t[73] = L?.graphObjectValues, t[74] = a, t[75] = r, t[76] = j, t[77] = n, t[78] = d, t[79] = s, t[80] = S, t[81] = T?.graphObjectValues, t[82] = v, t[83] = h, t[84] = rt) : rt = t[84], nt = Ot.filter(fn).map(rt);
491
+ let Tt;
492
+ t[85] !== L?.graphObjectValues || t[86] !== r || t[87] !== j || t[88] !== C || t[89] !== n || t[90] !== d || t[91] !== m || t[92] !== s || t[93] !== S || t[94] !== T?.graphObjectValues || t[95] !== v || t[96] !== h ? (Tt = (u, F) => /* @__PURE__ */ p.jsx("g", { onMouseEnter: () => {
493
493
  Z(u);
494
494
  }, onMouseLeave: () => {
495
495
  Z(void 0);
@@ -497,23 +497,23 @@ function fn(e) {
497
497
  /* @__PURE__ */ p.jsx("rect", { x: 0, y: 0, width: (u.x1 || 0) - (u.x0 || 0), height: (u.y1 || 0) - (u.y0 || 0), style: {
498
498
  fill: u.color
499
499
  } }),
500
- s || S ? /* @__PURE__ */ p.jsx("foreignObject", { y: 0 - j / 2, x: D, width: m - D, height: (u.y1 || 0) - (u.y0 || 0) + j, children: /* @__PURE__ */ p.jsxs("div", { className: "flex flex-col gap-0.5 justify-center py-0 px-1.5", style: {
500
+ s || S ? /* @__PURE__ */ p.jsx("foreignObject", { y: 0 - j / 2, x: C, width: m - C, height: (u.y1 || 0) - (u.y0 || 0) + j, children: /* @__PURE__ */ p.jsxs("div", { className: "flex flex-col gap-0.5 justify-center py-0 px-1.5", style: {
501
501
  height: `${(u.y1 || 0) - (u.y0 || 0) + j}px`
502
502
  }, children: [
503
- s ? /* @__PURE__ */ p.jsx(Jt, { marginBottom: S ? "3xs" : "none", size: "sm", leading: "none", className: Qt("sankey-left-label text-left", L?.graphObjectValues), style: {
503
+ s ? /* @__PURE__ */ p.jsx(Zt, { marginBottom: S ? "3xs" : "none", size: "sm", leading: "none", className: Ut("sankey-left-label text-left", L?.graphObjectValues), style: {
504
504
  hyphens: "auto",
505
505
  color: u.color,
506
- ...C?.graphObjectValues
506
+ ...T?.graphObjectValues
507
507
  }, children: `${u.label}`.length < h ? `${u.label}` : `${`${u.label}`.substring(0, h)}...` }) : null,
508
- S ? /* @__PURE__ */ p.jsx(Jt, { size: "sm", leading: "none", marginBottom: "none", className: Qt("sankey-left-value text-left font-bold", L?.graphObjectValues), style: {
508
+ S ? /* @__PURE__ */ p.jsx(Zt, { size: "sm", leading: "none", marginBottom: "none", className: Ut("sankey-left-value text-left font-bold", L?.graphObjectValues), style: {
509
509
  hyphens: "auto",
510
510
  color: u.color,
511
- ...C?.graphObjectValues
512
- }, children: be(u.value, void 0, n, d, v, r) }) : null
511
+ ...T?.graphObjectValues
512
+ }, children: ve(u.value, void 0, n, d, v, r) }) : null
513
513
  ] }) }) : null
514
- ] }) }, I), t[85] = L?.graphObjectValues, t[86] = r, t[87] = j, t[88] = D, t[89] = n, t[90] = d, t[91] = m, t[92] = s, t[93] = S, t[94] = C?.graphObjectValues, t[95] = v, t[96] = h, t[97] = wt) : wt = t[97], ot = P.filter(dn).map(wt);
515
- let St;
516
- t[98] !== B ? (St = (u, I) => /* @__PURE__ */ p.jsxs("linearGradient", { id: `${B}-gradient-${I}`, x1: "0%", y1: "0%", x2: "100%", y2: "0%", gradientUnits: "userSpaceOnUse", children: [
514
+ ] }) }, F), t[85] = L?.graphObjectValues, t[86] = r, t[87] = j, t[88] = C, t[89] = n, t[90] = d, t[91] = m, t[92] = s, t[93] = S, t[94] = T?.graphObjectValues, t[95] = v, t[96] = h, t[97] = Tt) : Tt = t[97], ot = Ot.filter(un).map(Tt);
515
+ let jt;
516
+ t[98] !== B ? (jt = (u, F) => /* @__PURE__ */ p.jsxs("linearGradient", { id: `${B}-gradient-${F}`, x1: "0%", y1: "0%", x2: "100%", y2: "0%", gradientUnits: "userSpaceOnUse", children: [
517
517
  /* @__PURE__ */ p.jsx("stop", { offset: "0%", style: {
518
518
  stopColor: u.source.color,
519
519
  stopOpacity: 1
@@ -522,37 +522,37 @@ function fn(e) {
522
522
  stopColor: u.target.color,
523
523
  stopOpacity: 1
524
524
  } })
525
- ] }, I), t[98] = B, t[99] = St) : St = t[99], it = /* @__PURE__ */ p.jsx("defs", { children: Tt.map(St) }), bt = He, ht = Tt.map((u, I) => /* @__PURE__ */ p.jsx(le.g, { className: "undp-viz-g-with-hover", onMouseEnter: (Vt) => {
526
- W(u.data), V(Vt.clientY), Ct(Vt.clientX), z?.(u);
527
- }, onMouseMove: (Vt) => {
528
- W(u.data), V(Vt.clientY), Ct(Vt.clientX);
525
+ ] }, F), t[98] = B, t[99] = jt) : jt = t[99], it = /* @__PURE__ */ p.jsx("defs", { children: Dt.map(jt) }), bt = Ee, ft = Dt.map((u, F) => /* @__PURE__ */ p.jsx(re.g, { className: "undp-viz-g-with-hover", onMouseEnter: (St) => {
526
+ G(u.data), V(St.clientY), Ct(St.clientX), P?.(u);
527
+ }, onMouseMove: (St) => {
528
+ G(u.data), V(St.clientY), Ct(St.clientX);
529
529
  }, onClick: () => {
530
- (R || _) && (Ee(O, u.data) && kt ? (U(void 0), R?.(void 0)) : (U(u.data), R?.(u.data)));
530
+ (H || _) && (De(N, u.data) && kt ? (U(void 0), H?.(void 0)) : (U(u.data), H?.(u.data)));
531
531
  }, onMouseLeave: () => {
532
- W(void 0), Ct(void 0), V(void 0), z?.(void 0);
532
+ G(void 0), Ct(void 0), V(void 0), P?.(void 0);
533
533
  }, variants: {
534
534
  initial: {
535
- opacity: T ? u.source.name === T.name || u.target.name === T.name ? 0.85 : G : (H.length !== 0 || X.length !== 0) && (H.indexOf(u.source.label) !== -1 || X.indexOf(u.target.label) !== -1) ? 0.85 : G
535
+ opacity: z ? u.source.name === z.name || u.target.name === z.name ? 0.85 : W : (A || X) && (A?.indexOf(u.source.label) !== -1 || X?.indexOf(u.target.label) !== -1) ? 0.85 : W
536
536
  },
537
537
  whileInView: {
538
- opacity: T ? u.source.name === T.name || u.target.name === T.name ? 0.85 : G : (H.length !== 0 || X.length !== 0) && (H.indexOf(u.source.label) !== -1 || X.indexOf(u.target.label) !== -1) ? 0.85 : G,
538
+ opacity: z ? u.source.name === z.name || u.target.name === z.name ? 0.85 : W : (A || X) && (A?.indexOf(u.source.label) !== -1 || X?.indexOf(u.target.label) !== -1) ? 0.85 : W,
539
539
  transition: {
540
- duration: N.duration
540
+ duration: D.duration
541
541
  }
542
542
  }
543
543
  }, initial: "initial", animate: f ? "whileInView" : "initial", exit: {
544
544
  opacity: 0,
545
545
  transition: {
546
- duration: N.duration
546
+ duration: D.duration
547
547
  }
548
- }, children: /* @__PURE__ */ p.jsx(le.path, { d: Pt(u) || "", style: {
549
- stroke: `url(#${B}-gradient-${I})`,
548
+ }, children: /* @__PURE__ */ p.jsx(re.path, { d: Wt(u) || "", style: {
549
+ stroke: `url(#${B}-gradient-${F})`,
550
550
  strokeWidth: u.width,
551
551
  fill: "none"
552
552
  }, exit: {
553
553
  opacity: 0,
554
554
  transition: {
555
- duration: N.duration
555
+ duration: D.duration
556
556
  }
557
557
  }, variants: {
558
558
  initial: {
@@ -563,68 +563,68 @@ function fn(e) {
563
563
  pathLength: 1,
564
564
  opacity: 1,
565
565
  transition: {
566
- duration: N.duration
566
+ duration: D.duration
567
567
  }
568
568
  }
569
- }, initial: "initial", animate: f ? "whileInView" : "initial" }, `${u.source}-${u.target}`) }, `${u.source}-${u.target}`)), t[8] = N.duration, t[9] = L?.graphObjectValues, t[10] = l, t[11] = o, t[12] = G, t[13] = _, t[14] = lt, t[15] = $t, t[16] = x, t[17] = H, t[18] = X, t[19] = B, t[20] = f, t[21] = a, t[22] = r, t[23] = k.left, t[24] = k.right, t[25] = k.top, t[26] = O, t[27] = j, t[28] = D, t[29] = R, t[30] = z, t[31] = n, t[32] = d, t[33] = kt, t[34] = m, t[35] = T, t[36] = s, t[37] = S, t[38] = et, t[39] = Y, t[40] = C?.graphObjectValues, t[41] = v, t[42] = q, t[43] = h, t[44] = g, t[45] = bt, t[46] = at, t[47] = ct, t[48] = Q, t[49] = ut, t[50] = ft, t[51] = J, t[52] = K, t[53] = ht, t[54] = gt, t[55] = tt, t[56] = nt, t[57] = ot, t[58] = it, t[59] = dt, t[60] = pt;
569
+ }, initial: "initial", animate: f ? "whileInView" : "initial" }, `${u.source}-${u.target}`) }, `${u.source}-${u.target}`)), t[8] = D.duration, t[9] = L?.graphObjectValues, t[10] = l, t[11] = o, t[12] = W, t[13] = _, t[14] = st, t[15] = Lt, t[16] = x, t[17] = A, t[18] = X, t[19] = B, t[20] = f, t[21] = a, t[22] = r, t[23] = k.left, t[24] = k.right, t[25] = k.top, t[26] = N, t[27] = j, t[28] = C, t[29] = H, t[30] = P, t[31] = n, t[32] = d, t[33] = kt, t[34] = m, t[35] = z, t[36] = s, t[37] = S, t[38] = et, t[39] = Y, t[40] = T?.graphObjectValues, t[41] = v, t[42] = R, t[43] = h, t[44] = g, t[45] = bt, t[46] = lt, t[47] = at, t[48] = Q, t[49] = ct, t[50] = ut, t[51] = J, t[52] = K, t[53] = ft, t[54] = ht, t[55] = tt, t[56] = nt, t[57] = ot, t[58] = it, t[59] = gt, t[60] = dt;
570
570
  } else
571
- bt = t[45], at = t[46], ct = t[47], Q = t[48], ut = t[49], ft = t[50], J = t[51], K = t[52], ht = t[53], gt = t[54], tt = t[55], nt = t[56], ot = t[57], it = t[58], dt = t[59], pt = t[60];
571
+ bt = t[45], lt = t[46], at = t[47], Q = t[48], ct = t[49], ut = t[50], J = t[51], K = t[52], ft = t[53], ht = t[54], tt = t[55], nt = t[56], ot = t[57], it = t[58], gt = t[59], dt = t[60];
572
+ let pt;
573
+ t[100] !== bt || t[101] !== ft ? (pt = /* @__PURE__ */ p.jsx("g", { children: /* @__PURE__ */ p.jsx(bt, { children: ft }) }), t[100] = bt, t[101] = ft, t[102] = pt) : pt = t[102];
572
574
  let mt;
573
- t[100] !== bt || t[101] !== ht ? (mt = /* @__PURE__ */ p.jsx("g", { children: /* @__PURE__ */ p.jsx(bt, { children: ht }) }), t[100] = bt, t[101] = ht, t[102] = mt) : mt = t[102];
575
+ t[103] !== l ? (mt = l.filter(cn).map(an), t[103] = l, t[104] = mt) : mt = t[104];
574
576
  let yt;
575
- t[103] !== l ? (yt = l.filter(gn).map(hn), t[103] = l, t[104] = yt) : yt = t[104];
576
- let xt;
577
- t[105] !== mt || t[106] !== yt || t[107] !== gt || t[108] !== tt || t[109] !== nt || t[110] !== ot || t[111] !== it ? (xt = /* @__PURE__ */ p.jsxs("g", { transform: gt, children: [
577
+ t[105] !== pt || t[106] !== mt || t[107] !== ht || t[108] !== tt || t[109] !== nt || t[110] !== ot || t[111] !== it ? (yt = /* @__PURE__ */ p.jsxs("g", { transform: ht, children: [
578
578
  tt,
579
579
  nt,
580
580
  ot,
581
581
  it,
582
- mt,
583
- yt
584
- ] }), t[105] = mt, t[106] = yt, t[107] = gt, t[108] = tt, t[109] = nt, t[110] = ot, t[111] = it, t[112] = xt) : xt = t[112];
585
- let rt;
586
- t[113] !== at || t[114] !== ct || t[115] !== Q || t[116] !== ut || t[117] !== ft || t[118] !== J || t[119] !== K || t[120] !== xt || t[121] !== dt || t[122] !== pt ? (rt = /* @__PURE__ */ p.jsxs(at, { width: dt, height: pt, viewBox: ct, style: Q, direction: ut, ref: ft, children: [
582
+ pt,
583
+ mt
584
+ ] }), t[105] = pt, t[106] = mt, t[107] = ht, t[108] = tt, t[109] = nt, t[110] = ot, t[111] = it, t[112] = yt) : yt = t[112];
585
+ let xt;
586
+ t[113] !== lt || t[114] !== at || t[115] !== Q || t[116] !== ct || t[117] !== ut || t[118] !== J || t[119] !== K || t[120] !== yt || t[121] !== gt || t[122] !== dt ? (xt = /* @__PURE__ */ p.jsxs(lt, { width: gt, height: dt, viewBox: at, style: Q, direction: ct, ref: ut, children: [
587
587
  J,
588
588
  K,
589
- xt
590
- ] }), t[113] = at, t[114] = ct, t[115] = Q, t[116] = ut, t[117] = ft, t[118] = J, t[119] = K, t[120] = xt, t[121] = dt, t[122] = pt, t[123] = rt) : rt = t[123];
589
+ yt
590
+ ] }), t[113] = lt, t[114] = at, t[115] = Q, t[116] = ct, t[117] = ut, t[118] = J, t[119] = K, t[120] = yt, t[121] = gt, t[122] = dt, t[123] = xt) : xt = t[123];
591
+ let O;
592
+ t[124] !== L?.tooltip || t[125] !== q || t[126] !== $t || t[127] !== y || t[128] !== T?.tooltip || t[129] !== $ ? (O = y && $ && q && $t ? /* @__PURE__ */ p.jsx(Te, { data: y, body: $, xPos: q, yPos: $t, backgroundStyle: T?.tooltip, className: L?.tooltip }) : null, t[124] = L?.tooltip, t[125] = q, t[126] = $t, t[127] = y, t[128] = T?.tooltip, t[129] = $, t[130] = O) : O = t[130];
591
593
  let vt;
592
- t[124] !== L?.tooltip || t[125] !== F || t[126] !== jt || t[127] !== y || t[128] !== C?.tooltip || t[129] !== $ ? (vt = y && $ && F && jt ? /* @__PURE__ */ p.jsx(Be, { data: y, body: $, xPos: F, yPos: jt, backgroundStyle: C?.tooltip, className: L?.tooltip }) : null, t[124] = L?.tooltip, t[125] = F, t[126] = jt, t[127] = y, t[128] = C?.tooltip, t[129] = $, t[130] = vt) : vt = t[130];
593
- let st;
594
- t[131] !== L?.modal || t[132] !== _ || t[133] !== O ? (st = _ && O !== void 0 ? /* @__PURE__ */ p.jsx(Ie, { body: _, data: O, setData: U, className: L?.modal }) : null, t[131] = L?.modal, t[132] = _, t[133] = O, t[134] = st) : st = t[134];
595
- let Lt;
596
- return t[135] !== rt || t[136] !== vt || t[137] !== st ? (Lt = /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
597
- rt,
598
- vt,
599
- st
600
- ] }), t[135] = rt, t[136] = vt, t[137] = st, t[138] = Lt) : Lt = t[138], Lt;
594
+ t[131] !== L?.modal || t[132] !== _ || t[133] !== N ? (vt = _ && N !== void 0 ? /* @__PURE__ */ p.jsx(ze, { body: _, data: N, setData: U, className: L?.modal }) : null, t[131] = L?.modal, t[132] = _, t[133] = N, t[134] = vt) : vt = t[134];
595
+ let wt;
596
+ return t[135] !== xt || t[136] !== O || t[137] !== vt ? (wt = /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
597
+ xt,
598
+ O,
599
+ vt
600
+ ] }), t[135] = xt, t[136] = O, t[137] = vt, t[138] = wt) : wt = t[138], wt;
601
601
  }
602
- function hn(e) {
602
+ function an(e) {
603
603
  return e.layer;
604
604
  }
605
- function gn(e) {
605
+ function cn(e) {
606
606
  return e.position === "after";
607
607
  }
608
- function dn(e) {
608
+ function un(e) {
609
609
  return e.type === "target";
610
610
  }
611
- function pn(e) {
611
+ function fn(e) {
612
612
  return e.type === "source";
613
613
  }
614
- function mn(e) {
614
+ function hn(e) {
615
615
  return e.layer;
616
616
  }
617
- function yn(e) {
617
+ function gn(e) {
618
618
  return e.position === "before";
619
619
  }
620
- function xn(e, t) {
620
+ function dn(e, t) {
621
621
  return (e.value || 0) - (t.value || 0);
622
622
  }
623
- function vn(e, t) {
623
+ function pn(e, t) {
624
624
  return (t.value || 0) - (e.value || 0);
625
625
  }
626
- function _n(e) {
627
- const t = Ve.c(99), {
626
+ function qn(e) {
627
+ const t = Oe.c(95), {
628
628
  data: o,
629
629
  graphTitle: s,
630
630
  sources: a,
@@ -635,24 +635,24 @@ function _n(e) {
635
635
  topMargin: b,
636
636
  bottomMargin: w,
637
637
  truncateBy: $,
638
- height: z,
638
+ height: P,
639
639
  width: v,
640
640
  footNote: d,
641
641
  padding: S,
642
- backgroundColor: R,
642
+ backgroundColor: H,
643
643
  tooltip: j,
644
- onSeriesMouseOver: D,
644
+ onSeriesMouseOver: C,
645
645
  suffix: B,
646
- prefix: H,
646
+ prefix: A,
647
647
  relativeHeight: X,
648
- showValues: G,
648
+ showValues: W,
649
649
  graphID: Y,
650
- onSeriesMouseClick: q,
651
- graphDownload: N,
650
+ onSeriesMouseClick: R,
651
+ graphDownload: D,
652
652
  dataDownload: et,
653
653
  fillContainer: kt,
654
654
  language: _,
655
- minHeight: C,
655
+ minHeight: T,
656
656
  theme: L,
657
657
  ariaLabel: n,
658
658
  sourceColors: l,
@@ -661,140 +661,134 @@ function _n(e) {
661
661
  targetColorDomain: i,
662
662
  nodePadding: f,
663
663
  nodeWidth: y,
664
- highlightedSourceDataPoints: W,
665
- highlightedTargetDataPoints: O,
664
+ highlightedSourceDataPoints: G,
665
+ highlightedTargetDataPoints: N,
666
666
  defaultLinkOpacity: U,
667
- sourceTitle: T,
667
+ sourceTitle: z,
668
668
  targetTitle: Z,
669
- sortNodes: F,
669
+ sortNodes: q,
670
670
  resetSelectionOnDoubleClick: Ct,
671
- detailsOnClick: jt,
671
+ detailsOnClick: $t,
672
672
  styles: V,
673
673
  classNames: M,
674
674
  animate: k,
675
- precision: $t,
676
- customLayers: lt,
675
+ precision: Lt,
676
+ customLayers: st,
677
677
  locale: bt
678
- } = e, at = h === void 0 ? !0 : h, ct = g === void 0 ? 75 : g, Q = x === void 0 ? 75 : x, ut = b === void 0 ? 30 : b, ft = w === void 0 ? 10 : w, J = $ === void 0 ? 999 : $, K = R === void 0 ? !1 : R, ht = B === void 0 ? "" : B, gt = H === void 0 ? "" : H, tt = G === void 0 ? !0 : G, nt = N === void 0 ? !1 : N, ot = et === void 0 ? !1 : et, it = kt === void 0 ? !0 : kt, dt = _ === void 0 ? "en" : _, pt = C === void 0 ? 0 : C, mt = L === void 0 ? "light" : L, yt = f === void 0 ? 5 : f, xt = y === void 0 ? 5 : y;
679
- let rt;
680
- t[0] !== W ? (rt = W === void 0 ? [] : W, t[0] = W, t[1] = rt) : rt = t[1];
681
- const vt = rt;
682
- let st;
683
- t[2] !== O ? (st = O === void 0 ? [] : O, t[2] = O, t[3] = st) : st = t[3];
684
- const Lt = st, Wt = U === void 0 ? 0.3 : U, P = F === void 0 ? "mostReadable" : F, Tt = Ct === void 0 ? !0 : Ct, Pt = k === void 0 ? !1 : k, Mt = $t === void 0 ? 2 : $t;
685
- let wt;
686
- t[4] !== lt ? (wt = lt === void 0 ? [] : lt, t[4] = lt, t[5] = wt) : wt = t[5];
687
- const St = wt, u = bt === void 0 ? "en" : bt, [I, Vt] = Ot(0), [Rt, Ce] = Ot(0), [Gt, Te] = Ot(void 0), ee = he(null), me = he(null);
688
- let qt;
689
- t[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (qt = (Dt) => {
690
- Te(Dt);
691
- }, t[6] = qt) : qt = t[6];
692
- const ne = ze(qt);
693
- let Ft;
694
- t[7] !== o || t[8] !== P || t[9] !== c || t[10] !== l || t[11] !== i || t[12] !== r || t[13] !== ne ? (Ft = () => {
695
- const Dt = Ht(o, "source", !0).map((E) => ({
678
+ } = e, lt = h === void 0 ? !0 : h, at = g === void 0 ? 75 : g, Q = x === void 0 ? 75 : x, ct = b === void 0 ? 30 : b, ut = w === void 0 ? 10 : w, J = $ === void 0 ? 999 : $, K = H === void 0 ? !1 : H, ft = B === void 0 ? "" : B, ht = A === void 0 ? "" : A, tt = W === void 0 ? !0 : W, nt = D === void 0 ? !1 : D, ot = et === void 0 ? !1 : et, it = kt === void 0 ? !0 : kt, gt = _ === void 0 ? "en" : _, dt = T === void 0 ? 0 : T, pt = L === void 0 ? "light" : L, mt = f === void 0 ? 5 : f, yt = y === void 0 ? 5 : y, xt = U === void 0 ? 0.3 : U, O = q === void 0 ? "mostReadable" : q, vt = Ct === void 0 ? !0 : Ct, wt = k === void 0 ? !1 : k, Ht = Lt === void 0 ? 2 : Lt;
679
+ let Ot;
680
+ t[0] !== st ? (Ot = st === void 0 ? [] : st, t[0] = st, t[1] = Ot) : Ot = t[1];
681
+ const Dt = Ot, Wt = bt === void 0 ? "en" : bt, [rt, Tt] = Mt(0), [jt, u] = Mt(0), [F, St] = Mt(void 0), Kt = ue(null), de = ue(null);
682
+ let Rt;
683
+ t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Rt = (Vt) => {
684
+ St(Vt);
685
+ }, t[2] = Rt) : Rt = t[2];
686
+ const te = Ce(Rt);
687
+ let Gt;
688
+ t[3] !== o || t[4] !== O || t[5] !== c || t[6] !== l || t[7] !== i || t[8] !== r || t[9] !== te ? (Gt = () => {
689
+ const Vt = At(o, "source", !0).map((E) => ({
696
690
  name: `source_${E}`,
697
691
  type: "source",
698
692
  label: `${E}`,
699
- color: typeof l == "string" || !l ? l || we.graphMainColor : l[(c || Ht(o, "source", !0)).findIndex((A) => `${A}` == `${E}`) > l.length ? l.length - 1 : (c || Ht(o, "source", !0)).findIndex((A) => `${A}` == `${E}`)],
700
- totalValue: ve(o.filter((A) => `${A.source}` == `${E}`).map(On))
701
- })), Zt = P === "asc" || P === "desc" ? ke(Dt, ["totalValue"], [P]) : Dt, ye = Ht(o, "target", !0).map((E) => ({
693
+ color: typeof l == "string" || !l ? l || ke.graphMainColor : l[(c || At(o, "source", !0)).findIndex((I) => `${I}` == `${E}`) > l.length ? l.length - 1 : (c || At(o, "source", !0)).findIndex((I) => `${I}` == `${E}`)],
694
+ totalValue: ye(o.filter((I) => `${I.source}` == `${E}`).map($n))
695
+ })), _t = O === "asc" || O === "desc" ? xe(Vt, ["totalValue"], [O]) : Vt, pe = At(o, "target", !0).map((E) => ({
702
696
  name: `target_${E}`,
703
697
  type: "target",
704
698
  label: `${E}`,
705
- color: typeof r == "string" || !r ? r || we.graphMainColor : r[(i || Ht(o, "target", !0)).findIndex((A) => `${A}` == `${E}`) > r.length ? r.length - 1 : (i || Ht(o, "target", !0)).findIndex((A) => `${A}` == `${E}`)],
706
- totalValue: ve(o.filter((A) => `${A.target}` == `${E}`).map(Sn))
707
- })), Pe = P === "asc" || P === "desc" ? ke(ye, ["totalValue"], [P]) : ye, se = [...Zt, ...Pe];
708
- ne({
709
- nodes: se,
699
+ color: typeof r == "string" || !r ? r || ke.graphMainColor : r[(i || At(o, "target", !0)).findIndex((I) => `${I}` == `${E}`) > r.length ? r.length - 1 : (i || At(o, "target", !0)).findIndex((I) => `${I}` == `${E}`)],
700
+ totalValue: ye(o.filter((I) => `${I.target}` == `${E}`).map(jn))
701
+ })), Ne = O === "asc" || O === "desc" ? xe(pe, ["totalValue"], [O]) : pe, ie = [..._t, ...Ne];
702
+ te({
703
+ nodes: ie,
710
704
  links: o.map((E) => ({
711
- source: se.findIndex((A) => A.name === `source_${E.source}`),
712
- target: se.findIndex((A) => A.name === `target_${E.target}`),
705
+ source: ie.findIndex((I) => I.name === `source_${E.source}`),
706
+ target: ie.findIndex((I) => I.name === `target_${E.target}`),
713
707
  value: E.value,
714
708
  data: {
715
709
  ...E
716
710
  }
717
711
  }))
718
712
  });
719
- }, t[7] = o, t[8] = P, t[9] = c, t[10] = l, t[11] = i, t[12] = r, t[13] = ne, t[14] = Ft) : Ft = t[14];
720
- let Xt;
721
- t[15] !== o || t[16] !== P || t[17] !== c || t[18] !== l || t[19] !== i || t[20] !== r ? (Xt = [o, P, c, l, i, r], t[15] = o, t[16] = P, t[17] = c, t[18] = l, t[19] = i, t[20] = r, t[21] = Xt) : Xt = t[21], xe(Ft, Xt);
722
- let Yt, _t;
723
- t[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Yt = () => {
724
- const Dt = new ResizeObserver((Zt) => {
725
- Vt(Zt[0].target.clientWidth || 620), Ce(Zt[0].target.clientHeight || 480);
713
+ }, t[3] = o, t[4] = O, t[5] = c, t[6] = l, t[7] = i, t[8] = r, t[9] = te, t[10] = Gt) : Gt = t[10];
714
+ let qt;
715
+ t[11] !== o || t[12] !== O || t[13] !== c || t[14] !== l || t[15] !== i || t[16] !== r ? (qt = [o, O, c, l, i, r], t[11] = o, t[12] = O, t[13] = c, t[14] = l, t[15] = i, t[16] = r, t[17] = qt) : qt = t[17], me(Gt, qt);
716
+ let Ft, Xt;
717
+ t[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ft = () => {
718
+ const Vt = new ResizeObserver((_t) => {
719
+ Tt(_t[0].target.clientWidth || 620), u(_t[0].target.clientHeight || 480);
726
720
  });
727
- return ee.current && Dt.observe(ee.current), () => Dt.disconnect();
728
- }, _t = [], t[22] = Yt, t[23] = _t) : (Yt = t[22], _t = t[23]), xe(Yt, _t);
729
- const oe = M?.graphContainer, ie = V?.graphContainer, re = it ? void 0 : v;
721
+ return Kt.current && Vt.observe(Kt.current), () => Vt.disconnect();
722
+ }, Xt = [], t[18] = Ft, t[19] = Xt) : (Ft = t[18], Xt = t[19]), me(Ft, Xt);
723
+ const ee = M?.graphContainer, ne = V?.graphContainer, oe = it ? void 0 : v;
730
724
  let zt;
731
- t[24] !== M?.description || t[25] !== M?.title || t[26] !== o || t[27] !== ot || t[28] !== m || t[29] !== nt || t[30] !== s || t[31] !== V?.description || t[32] !== V?.title || t[33] !== v ? (zt = s || m || nt || ot ? /* @__PURE__ */ p.jsx(We, { styles: {
725
+ t[20] !== M?.description || t[21] !== M?.title || t[22] !== o || t[23] !== ot || t[24] !== m || t[25] !== nt || t[26] !== s || t[27] !== V?.description || t[28] !== V?.title || t[29] !== v ? (zt = s || m || nt || ot ? /* @__PURE__ */ p.jsx(Be, { styles: {
732
726
  title: V?.title,
733
727
  description: V?.description
734
728
  }, classNames: {
735
729
  title: M?.title,
736
730
  description: M?.description
737
- }, graphTitle: s, graphDescription: m, width: v, graphDownload: nt ? me : void 0, dataDownload: ot ? o.map(Mn).filter(Ln).length > 0 ? o.map($n).filter(jn) : o.filter(wn) : null }) : null, t[24] = M?.description, t[25] = M?.title, t[26] = o, t[27] = ot, t[28] = m, t[29] = nt, t[30] = s, t[31] = V?.description, t[32] = V?.title, t[33] = v, t[34] = zt) : zt = t[34];
731
+ }, graphTitle: s, graphDescription: m, width: v, graphDownload: nt ? de : void 0, dataDownload: ot ? o.map(wn).filter(bn).length > 0 ? o.map(kn).filter(vn) : o.filter(xn) : null }) : null, t[20] = M?.description, t[21] = M?.title, t[22] = o, t[23] = ot, t[24] = m, t[25] = nt, t[26] = s, t[27] = V?.description, t[28] = V?.title, t[29] = v, t[30] = zt) : zt = t[30];
732
+ let Pt;
733
+ t[31] !== o.length ? (Pt = o.length === 0 && /* @__PURE__ */ p.jsx(He, {}), t[31] = o.length, t[32] = Pt) : Pt = t[32];
738
734
  let Et;
739
- t[35] !== o.length ? (Et = o.length === 0 && /* @__PURE__ */ p.jsx(qe, {}), t[35] = o.length, t[36] = Et) : Et = t[36];
740
- let Bt;
741
- t[37] !== Pt || t[38] !== ft || t[39] !== M || t[40] !== St || t[41] !== o.length || t[42] !== Wt || t[43] !== jt || t[44] !== it || t[45] !== vt || t[46] !== Lt || t[47] !== ct || t[48] !== u || t[49] !== yt || t[50] !== xt || t[51] !== q || t[52] !== D || t[53] !== Mt || t[54] !== gt || t[55] !== Tt || t[56] !== Q || t[57] !== Gt || t[58] !== at || t[59] !== tt || t[60] !== P || t[61] !== T || t[62] !== V || t[63] !== ht || t[64] !== Rt || t[65] !== I || t[66] !== Z || t[67] !== j || t[68] !== ut || t[69] !== J || t[70] !== v ? (Bt = I && Rt && Gt && o.length > 0 ? /* @__PURE__ */ p.jsx(fn, { data: Gt, nodePadding: yt, nodeWidth: xt, width: it || !v || I < v ? I : v, height: Rt, showLabels: at, leftMargin: ct, rightMargin: Q, topMargin: ut, bottomMargin: ft, truncateBy: J, tooltip: j, onSeriesMouseOver: D, showValues: tt, suffix: ht, prefix: gt, onSeriesMouseClick: q, id: Ge(8), highlightedSourceDataPoints: vt.map(bn), highlightedTargetDataPoints: Lt.map(kn), defaultLinkOpacity: Wt, sourceTitle: T, targetTitle: Z, sortNodes: P, resetSelectionOnDoubleClick: Tt, styles: V, classNames: M, detailsOnClick: jt, animate: Pt === !0 ? {
735
+ t[33] !== wt || t[34] !== ut || t[35] !== M || t[36] !== Dt || t[37] !== o.length || t[38] !== xt || t[39] !== $t || t[40] !== it || t[41] !== G || t[42] !== N || t[43] !== at || t[44] !== Wt || t[45] !== mt || t[46] !== yt || t[47] !== R || t[48] !== C || t[49] !== Ht || t[50] !== ht || t[51] !== vt || t[52] !== Q || t[53] !== F || t[54] !== lt || t[55] !== tt || t[56] !== O || t[57] !== z || t[58] !== V || t[59] !== ft || t[60] !== jt || t[61] !== rt || t[62] !== Z || t[63] !== j || t[64] !== ct || t[65] !== J || t[66] !== v ? (Et = rt && jt && F && o.length > 0 ? /* @__PURE__ */ p.jsx(ln, { data: F, nodePadding: mt, nodeWidth: yt, width: it || !v || rt < v ? rt : v, height: jt, showLabels: lt, leftMargin: at, rightMargin: Q, topMargin: ct, bottomMargin: ut, truncateBy: J, tooltip: j, onSeriesMouseOver: C, showValues: tt, suffix: ft, prefix: ht, onSeriesMouseClick: R, id: Ae(8), highlightedSourceDataPoints: G?.map(yn), highlightedTargetDataPoints: N?.map(mn), defaultLinkOpacity: xt, sourceTitle: z, targetTitle: Z, sortNodes: O, resetSelectionOnDoubleClick: vt, styles: V, classNames: M, detailsOnClick: $t, animate: wt === !0 ? {
742
736
  duration: 0.5,
743
737
  once: !0,
744
738
  amount: 0.5
745
- } : Pt || {
739
+ } : wt || {
746
740
  duration: 0,
747
741
  once: !0,
748
742
  amount: 0
749
- }, precision: Mt, customLayers: St, locale: u }) : null, t[37] = Pt, t[38] = ft, t[39] = M, t[40] = St, t[41] = o.length, t[42] = Wt, t[43] = jt, t[44] = it, t[45] = vt, t[46] = Lt, t[47] = ct, t[48] = u, t[49] = yt, t[50] = xt, t[51] = q, t[52] = D, t[53] = Mt, t[54] = gt, t[55] = Tt, t[56] = Q, t[57] = Gt, t[58] = at, t[59] = tt, t[60] = P, t[61] = T, t[62] = V, t[63] = ht, t[64] = Rt, t[65] = I, t[66] = Z, t[67] = j, t[68] = ut, t[69] = J, t[70] = v, t[71] = Bt) : Bt = t[71];
743
+ }, precision: Ht, customLayers: Dt, locale: Wt }) : null, t[33] = wt, t[34] = ut, t[35] = M, t[36] = Dt, t[37] = o.length, t[38] = xt, t[39] = $t, t[40] = it, t[41] = G, t[42] = N, t[43] = at, t[44] = Wt, t[45] = mt, t[46] = yt, t[47] = R, t[48] = C, t[49] = Ht, t[50] = ht, t[51] = vt, t[52] = Q, t[53] = F, t[54] = lt, t[55] = tt, t[56] = O, t[57] = z, t[58] = V, t[59] = ft, t[60] = jt, t[61] = rt, t[62] = Z, t[63] = j, t[64] = ct, t[65] = J, t[66] = v, t[67] = Et) : Et = t[67];
744
+ let Bt;
745
+ t[68] !== Pt || t[69] !== Et ? (Bt = /* @__PURE__ */ p.jsxs(We, { ref: Kt, children: [
746
+ Pt,
747
+ Et
748
+ ] }), t[68] = Pt, t[69] = Et, t[70] = Bt) : Bt = t[70];
750
749
  let It;
751
- t[72] !== Et || t[73] !== Bt ? (It = /* @__PURE__ */ p.jsxs(Fe, { ref: ee, children: [
752
- Et,
753
- Bt
754
- ] }), t[72] = Et, t[73] = Bt, t[74] = It) : It = t[74];
755
- let At;
756
- t[75] !== M?.footnote || t[76] !== M?.source || t[77] !== d || t[78] !== a || t[79] !== V?.footnote || t[80] !== V?.source || t[81] !== v ? (At = a || d ? /* @__PURE__ */ p.jsx(Re, { styles: {
750
+ t[71] !== M?.footnote || t[72] !== M?.source || t[73] !== d || t[74] !== a || t[75] !== V?.footnote || t[76] !== V?.source || t[77] !== v ? (It = a || d ? /* @__PURE__ */ p.jsx(Ie, { styles: {
757
751
  footnote: V?.footnote,
758
752
  source: V?.source
759
753
  }, classNames: {
760
754
  footnote: M?.footnote,
761
755
  source: M?.source
762
- }, sources: a, footNote: d, width: v }) : null, t[75] = M?.footnote, t[76] = M?.source, t[77] = d, t[78] = a, t[79] = V?.footnote, t[80] = V?.source, t[81] = v, t[82] = At) : At = t[82];
763
- let Ut;
764
- return t[83] !== n || t[84] !== K || t[85] !== Y || t[86] !== z || t[87] !== dt || t[88] !== pt || t[89] !== S || t[90] !== X || t[91] !== oe || t[92] !== ie || t[93] !== re || t[94] !== zt || t[95] !== It || t[96] !== At || t[97] !== mt ? (Ut = /* @__PURE__ */ p.jsxs(Xe, { className: oe, style: ie, id: Y, ref: me, "aria-label": n, backgroundColor: K, theme: mt, language: dt, minHeight: pt, width: re, height: z, relativeHeight: X, padding: S, children: [
756
+ }, sources: a, footNote: d, width: v }) : null, t[71] = M?.footnote, t[72] = M?.source, t[73] = d, t[74] = a, t[75] = V?.footnote, t[76] = V?.source, t[77] = v, t[78] = It) : It = t[78];
757
+ let Yt;
758
+ return t[79] !== n || t[80] !== K || t[81] !== Y || t[82] !== P || t[83] !== gt || t[84] !== dt || t[85] !== S || t[86] !== X || t[87] !== ee || t[88] !== ne || t[89] !== oe || t[90] !== zt || t[91] !== Bt || t[92] !== It || t[93] !== pt ? (Yt = /* @__PURE__ */ p.jsxs(Re, { className: ee, style: ne, id: Y, ref: de, "aria-label": n, backgroundColor: K, theme: pt, language: gt, minHeight: dt, width: oe, height: P, relativeHeight: X, padding: S, children: [
765
759
  zt,
766
- It,
767
- At
768
- ] }), t[83] = n, t[84] = K, t[85] = Y, t[86] = z, t[87] = dt, t[88] = pt, t[89] = S, t[90] = X, t[91] = oe, t[92] = ie, t[93] = re, t[94] = zt, t[95] = It, t[96] = At, t[97] = mt, t[98] = Ut) : Ut = t[98], Ut;
760
+ Bt,
761
+ It
762
+ ] }), t[79] = n, t[80] = K, t[81] = Y, t[82] = P, t[83] = gt, t[84] = dt, t[85] = S, t[86] = X, t[87] = ee, t[88] = ne, t[89] = oe, t[90] = zt, t[91] = Bt, t[92] = It, t[93] = pt, t[94] = Yt) : Yt = t[94], Yt;
769
763
  }
770
- function kn(e) {
764
+ function mn(e) {
771
765
  return `${e}`;
772
766
  }
773
- function bn(e) {
767
+ function yn(e) {
774
768
  return `${e}`;
775
769
  }
776
- function wn(e) {
770
+ function xn(e) {
777
771
  return e !== void 0;
778
772
  }
779
- function jn(e) {
773
+ function vn(e) {
780
774
  return e !== void 0;
781
775
  }
782
- function $n(e) {
776
+ function kn(e) {
783
777
  return e.data;
784
778
  }
785
- function Ln(e) {
779
+ function bn(e) {
786
780
  return e !== void 0;
787
781
  }
788
- function Mn(e) {
782
+ function wn(e) {
789
783
  return e.data;
790
784
  }
791
- function Sn(e) {
785
+ function jn(e) {
792
786
  return e.value;
793
787
  }
794
- function On(e) {
788
+ function $n(e) {
795
789
  return e.value;
796
790
  }
797
791
  export {
798
- _n as SankeyChart
792
+ qn as SankeyChart
799
793
  };
800
794
  //# sourceMappingURL=SankeyChart.js.map